query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
4705c4bd106114b88c0fe1af41b685fd
Add shared catalog filter.
[ { "docid": "01f1402d3f67ae6b98be05677445d1b0", "score": "0.6143988", "text": "private function addSharedCatalogFilter($catalogId)\n {\n $currentCatalog = $this->getCurrentSharedCatalog();\n if ($catalogId == $currentCatalog->getId()) {\n return $this->addIsCurrentFilter(true);\n }\n\n $catalogCompanies = array_diff(\n $this->getCatalogCompaniesIds($catalogId),\n $this->storage->getAssignedCompaniesIds()\n );\n\n if ($catalogId == $this->catalogManagement->getPublicCatalog()->getId()) {\n $catalogCompanies = array_merge($catalogCompanies, $this->storage->getUnassignedCompaniesIds());\n }\n\n /** @var \\Magento\\SharedCatalog\\Ui\\DataProvider\\Collection\\Company $collection */\n $collection = $this->getCollection();\n $collection->addIdFilter($catalogCompanies);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "8a2cad0489bfcb361e9a07a28b940b71", "score": "0.5683228", "text": "private function addCustomerFilter()\n {\n $customerFilter = $this->filterBuilder\n ->setField('customer_id')\n ->setValue($this->customerSession->getCustomerId())\n ->setConditionType('eq')\n ->create();\n\n parent::addFilter($customerFilter);\n }", "title": "" }, { "docid": "9af93374912a2c4bdd8f677a697ce18e", "score": "0.5674203", "text": "private function addFilters()\n {\n if (empty($this->filters)) {\n return;\n }\n foreach ($this->filters as $filter) {\n if (!class_exists($filter)) {\n continue;\n }\n $scope = app($filter);\n $this->addScope($scope);\n }\n\n return;\n }", "title": "" }, { "docid": "560166e9ea8db58f188776a537b1b035", "score": "0.5660559", "text": "public function add_filters() {\n\n\t}", "title": "" }, { "docid": "f36126b079055e6e072e8b1adacc47d1", "score": "0.5610785", "text": "protected function addFilters()\n { \n $filters = [\n 'hash_encode' => function($value) { return \\hashEncode($value); },\n 'hash_decode' => function($value) { return \\hashDecode($value); },\n ];\n foreach ($filters as $name => $filter)\n $this->environment->addFilter(new \\Twig\\TwigFilter($name, $filter));\n }", "title": "" }, { "docid": "bb3092f8150d186995eea0e31d02f341", "score": "0.55388254", "text": "public function addFilter(DB_StatFilter $filter) {\n\t\t$this->filters[] = $filter;\n\t}", "title": "" }, { "docid": "8be45e88369edf1a0955b0dcf0d094b0", "score": "0.5530475", "text": "final public function addFilter($filter)\n {\n $this->_filters[] = $filter;\n }", "title": "" }, { "docid": "dba52fcc5053645d91a91432823dd596", "score": "0.55176234", "text": "public function addFilter($var, $value) {\n $this->filters[$var] = $value;\n }", "title": "" }, { "docid": "722321ede0874489f444b9b28544760f", "score": "0.5396329", "text": "public function addFilter($filter) {\r\n\t\t$this->chain[] = $filter;\r\n\t}", "title": "" }, { "docid": "a25d57af9547b428efe295c8dfe2689e", "score": "0.5346658", "text": "public function addAction() {\n $params = $this->getFilteredParams();\n\n if (array_key_exists('cart', $params)) {\n foreach ($params['cart'] as $key => $value) {\n $this->addFilterAction($value);\n }\n } else {\n $this->addFilterAction($params);\n }\n }", "title": "" }, { "docid": "da906f29cfde03c104da8999f02ece07", "score": "0.53318816", "text": "public function addFilter(callable $filter);", "title": "" }, { "docid": "66014202247ef5c6f04e64e13c9ef22f", "score": "0.5296507", "text": "private function registerFilter() {\n $this->Filter = new Filter($this->getCollections(), $this->Config);\n }", "title": "" }, { "docid": "2ba0901551a7893ea75bf4485eef7578", "score": "0.52684456", "text": "public function addFilter(Closure $filter)\r\n\t{\r\n\t\t$this->filters[] = $filter;\r\n\t}", "title": "" }, { "docid": "aea2091c13367ccdb102ca7c259b4d6f", "score": "0.5259309", "text": "function addFilter(&$args, &$request) {\n\t\t// Calling editFilter() to edit a new filter.\n\t\treturn $this->editFilter($args, $request, true);\n\t}", "title": "" }, { "docid": "0dcf45c46029885bb558899cc764bd4c", "score": "0.52375925", "text": "public function addFilter(\\api\\services\\datastore\\Filter $value){\n return $this->_add(2, $value);\n }", "title": "" }, { "docid": "91a828cf12ba02b612a7d1dc379fa81f", "score": "0.5232116", "text": "public function addFilter(FilterInterface $filter): void;", "title": "" }, { "docid": "ba377e67e54bf517509411ef459a1d28", "score": "0.52291656", "text": "public function addFilter(Fynd_Model_Filter $filter)\r\n {\r\n $this->_filters->add($filter);\r\n }", "title": "" }, { "docid": "43c0525e2611e897d8326dc03bac3c30", "score": "0.51945883", "text": "public function addFilter(FilterInterface $filter);", "title": "" }, { "docid": "faae164092bbca62ced626823fed6020", "score": "0.5190938", "text": "public function addFilter(\\Zend\\Filter\\Filter $filter)\n\t{\n\t\t$this->_filters[] = $filter;\n\t}", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.51778334", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.5177092", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.5177092", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "fcc2e2e05c38a9ec40151e352785b0ca", "score": "0.51191205", "text": "public function filtersCatalog($filterKey = null, $operator = null)\n {\n $this->filterBy($filterKey, $operator);\n return $this->refreshCatalog(null, 1); //filtering works for it's own catalog only\n }", "title": "" }, { "docid": "72017f88c4a69d895c13cc10fe85625a", "score": "0.51112425", "text": "private function _add_filters() {\n\t\t// Change SM post type label to include \"Pro\" in name and to support editor.\n\t\tadd_filter(\n\t\t\t'sm_register_post_type_wpfc_sermon',\n\t\t\tfunction ( $args ) {\n\t\t\t\t$args['labels']['menu_name'] .= ' Pro';\n\n\t\t\t\t$args['supports'][] = 'editor';\n\n\t\t\t\treturn $args;\n\t\t\t}\n\t\t);\n\n\t\t// Add SM Pro screen ids.\n\t\tadd_filter(\n\t\t\t'sm_screen_ids',\n\t\t\tfunction ( $screen_ids ) {\n\t\t\t\t$screen_ids_pro = array(\n\t\t\t\t\t'edit-wpfc_sm_template',\n\t\t\t\t\t'wpfc_sm_template',\n\t\t\t\t\t'edit-wpfc_sm_podcast',\n\t\t\t\t\t'wpfc_sm_podcast',\n\t\t\t\t);\n\n\t\t\t\treturn array_merge( $screen_ids, $screen_ids_pro );\n\t\t\t}\n\t\t);\n\n\t\t// Add SM Pro classes.\n\t\tadd_filter(\n\t\t\t'sm_templates_additional_classes',\n\t\t\tfunction ( $classes ) {\n\t\t\t\tif ( is_archive() ) {\n\t\t\t\t\t$classes[] = 'smpro-items';\n\t\t\t\t}\n\n\t\t\t\treturn $classes;\n\t\t\t}\n\t\t);\n\n\t\t// Add Divi Builder compatibility.\n\t\tadd_filter(\n\t\t\t'et_builder_third_party_post_types',\n\t\t\tfunction ( $post_types ) {\n\t\t\t\tif ( ! isset( $post_types['wpfc_sermon'] ) ) {\n\t\t\t\t\t$post_types[] = 'wpfc_sermon';\n\t\t\t\t}\n\n\t\t\t\treturn $post_types;\n\t\t\t}\n\t\t);\n\n\t\t/**\n\t\t * Don't modify post_content.\n\t\t *\n\t\t * @param array $data An array of slashed post data.\n\t\t * @param array $data An array of slashed post data.\n\t\t */\n\t\tadd_filter(\n\t\t\t'wp_insert_post_data',\n\t\t\tfunction ( $data, $postarr ) {\n\t\t\t\tglobal $wpdb;\n\n\t\t\t\t$data = wp_unslash( $data );\n\t\t\t\tif ( 'wpfc_sermon' !== $data['post_type'] ) {\n\t\t\t\t\treturn wp_slash( $data );\n\t\t\t\t}\n\n\t\t\t\t$data['post_content'] = $wpdb->get_var( $wpdb->prepare( \"SELECT `post_content` FROM $wpdb->posts WHERE ID = %d\", $postarr['ID'] ) );\n\t\t\t\t$data['post_content_filtered'] = $data['post_content'];\n\n\t\t\t\t// Backup.\n\t\t\t\tupdate_post_meta( $postarr['ID'], 'post_content_temp', $data['post_content'] );\n\n\t\t\t\treturn wp_slash( $data );\n\t\t\t},\n\t\t\t10,\n\t\t\t2\n\t\t);\n\n\t\tadd_filter(\n\t\t\t'plugin_row_meta',\n\t\t\tfunction ( $links, $file ) {\n\t\t\t\tif ( SMP_BASENAME == $file ) {\n\t\t\t\t\t$row_meta = array(\n\t\t\t\t\t\t'support' => '<a href=\"' . esc_url( 'https://wpforchurch.com/my/knowledgebase/19/Sermon-Manager-Pro' ) . '\" aria-label=\"' . esc_attr__( 'Visit support area', 'sermon-manager-pro' ) . '\">' . esc_html__( 'Support', 'sermon-manager-pro' ) . '</a>',\n\t\t\t\t\t);\n\n\t\t\t\t\treturn array_merge( $links, $row_meta );\n\t\t\t\t}\n\n\t\t\t\t// remove Get Sermon Manager Pro link.\n\t\t\t\tunset( $links['smp'] );\n\n\t\t\t\treturn (array) $links;\n\t\t\t},\n\t\t\t10,\n\t\t\t2\n\t\t);\n\n\t\t// Disable Gutenberg until we add Guten-blocks.\n\t\tadd_filter(\n\t\t\t'use_block_editor_for_post_type',\n\t\t\tfunction ( $can_edit, $post_type ) {\n\t\t\t\tif ( 'wpfc_sermon' === $post_type ) {\n\t\t\t\t\t$can_edit = false;\n\t\t\t\t}\n\n\t\t\t\treturn $can_edit;\n\t\t\t},\n\t\t\t10,\n\t\t\t2\n\t\t);\n\n\t\t// Disable Gutenberg until we add Guten-blocks (for old version).\n\t\tadd_filter(\n\t\t\t'gutenberg_can_edit_post_type',\n\t\t\tfunction ( $can_edit, $post_type ) {\n\t\t\t\tif ( 'wpfc_sermon' === $post_type ) {\n\t\t\t\t\t$can_edit = false;\n\t\t\t\t}\n\n\t\t\t\treturn $can_edit;\n\t\t\t},\n\t\t\t10,\n\t\t\t2\n\t\t);\n\n\t\t// Add custom enclosure tag to the feed item.\n\t\tadd_filter(\n\t\t\t'wpfc-podcast-feed-custom-enclosure',\n\t\t\tfunction ( $output, $post_id, $settings ) {\n\t\t\t\tunset( $output );\n\n\t\t\t\t$video_url = get_post_meta( $post_id, 'sermon_video_link', true );\n\n\t\t\t\tif ( empty( $video_url ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t$mime_type = array(\n\t\t\t\t\t'mov' => 'video/quicktime',\n\t\t\t\t\t'wmv' => 'video/wmv',\n\t\t\t\t\t'mp4' => 'video/mp4',\n\t\t\t\t);\n\n\t\t\t\t$head = array_change_key_case( get_headers( $video_url, 1 ) );\n\t\t\t\t$length = ! empty( $head['content-length'] ) ? intval( $head['content-length'] ) : 0;\n\n\t\t\t\t$ext = pathinfo( $video_url, PATHINFO_EXTENSION );\n\n\t\t\t\t// Audio sermons only.\n\t\t\t\tif ( empty( $settings['sermons_to_show'] ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Audio sermons priority.\n\t\t\t\tif ( 'audio_priority' === $settings['sermons_to_show'] && ! empty( $ext ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tob_start();\n\t\t\t\t?>\n\t\t\t\t<!--suppress CheckEmptyScriptTag -->\n\t\t\t\t<enclosure url=\"<?php echo esc_url( $video_url ); ?>\"\n\t\t\t\t\t\tlength=\"<?php echo esc_attr( $length ); ?>\"\n\t\t\t\t\t\ttype=\"<?php echo esc_attr( $mime_type[ $ext ] ); ?>\"/>\n\t\t\t\t<?php\n\t\t\t\treturn ob_get_clean();\n\n\t\t\t},\n\t\t\t10,\n\t\t\t3\n\t\t);\n\t}", "title": "" }, { "docid": "6bc7f9da2f6358056d1c5d00afb57600", "score": "0.50873923", "text": "private function addFilter(Filter $filter)\n {\n // Start with an empty AND composite filter\n if (!isset($this->filter)) {\n $this->filter = Filter::_and();\n }\n\n $this->checkFilter($filter);\n $this->filter->add($filter);\n }", "title": "" }, { "docid": "5b841575da487633269f5aba7530b24b", "score": "0.50757176", "text": "function filtered_catalogue(){\n\tadd_options_page (\n\t\t'filtered Catalogue Plugin',\n\t\t'filtered Catalogue Settings',\n\t\t'manage_options',\n\t\t'filtered_catalogue',\n\t\t'filtered_catalogue_options_page'\n\t);\n}", "title": "" }, { "docid": "10b1becc3003896cfeb5e87c56ae21f6", "score": "0.50375295", "text": "public function addFilter($name, FilterInterface $filter);", "title": "" }, { "docid": "969ed6d5f552c785e4609ca2fef9f5d6", "score": "0.5035125", "text": "public function filter(FilterContract $filter)\n {\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "cad68eadc3a08743a8c6d5065d0dfd5e", "score": "0.50002503", "text": "public static function addFilter($name, $function) {\n static::$filters[$name] = $function;\n }", "title": "" }, { "docid": "e0c770e79a22592d467fbb19fda35f64", "score": "0.4977554", "text": "public function addFilter(string $attribute, $text = \"\")\n {\n if ($text == null) {\n $text = \"\";\n }\n array_push($this->filterAttributes, $attribute);\n array_push($this->filterTexts, $text);\n }", "title": "" }, { "docid": "4f32d6070fb445a80ca87679cc3a065c", "score": "0.49638176", "text": "public function register_filters() {\n\t\t}", "title": "" }, { "docid": "9a02f5ce1a375eba7a487b7f76a608ab", "score": "0.49492466", "text": "public function addFilter(QueryFilter $filter)\n {\n $this->filters->push($filter);\n }", "title": "" }, { "docid": "2628f877e2d7334c347fdf3577c73fde", "score": "0.49465382", "text": "protected function collect_filters()\n {\n }", "title": "" }, { "docid": "e6aef44a7b9550fd963dfc1ec7530d50", "score": "0.49380675", "text": "public function addFilters() {\n\t\t$this->subscriber->addFilter( 'eventorganiser_venue_address_fields', [$this, 'add_eo_venue_meta'] );\n\t\t$this->subscriber->addFilter( 'wp_query_engine_args_raw', [$this, 'reorder_event_queries'] );\n\t\t$this->subscriber->addFilter( 'term_link', [$this, 'replace_venue_url'], 10, 3 );\n\t\t$this->subscriber->addFilter( 'post_type_link', [$this, 'replace_event_url'], 10, 4 );\n\t}", "title": "" }, { "docid": "ad188e2e9284bbcdf3c7db809ae1245a", "score": "0.4924815", "text": "protected function _addAttributesToFilter()\n {\n $this->setData('filter_successful',false);\n $product = $this->getCurrentProduct();\n //Add brand Filter to collection\n\n if($product && $this->_getConfig('filter_brand') && ($brandAttribute = $this->_getConfig('filter_brand_attribute'))){\n if($brand = $product->getData($brandAttribute)){\n $this->_collection->addAttributeToFilter($brandAttribute,$brand);\n $this->setData('filter_successful',true);\n }\n }\n return parent::_addAttributeToSelect();\n }", "title": "" }, { "docid": "3f04a5d2cf8c49716213a38befbcabd1", "score": "0.48823693", "text": "function appendFilterChain()\n { \n // do nothing\n }", "title": "" }, { "docid": "9a9911709d385473ea839ecf55fc1db0", "score": "0.4876936", "text": "public function addFilterSecure()\n {\n return new Form\\Filters\\Secure();\n }", "title": "" }, { "docid": "4b9de62463ab795588dbe35e80786676", "score": "0.48765066", "text": "public function register_filters() {\n\t}", "title": "" }, { "docid": "e0becd3af6782b0b87e442486fd69065", "score": "0.4869424", "text": "public function add_filter($filter, $object, $method)\n {\n $this->filters = $this->add($this->filters, $filter, $object, $method); \n }", "title": "" }, { "docid": "8872efb1f7564b06c6de2a06505d8155", "score": "0.4845779", "text": "function addFacetFilter($field, $value) {\n\t}", "title": "" }, { "docid": "694717df42033729f07d2a785f3754b6", "score": "0.48206097", "text": "public static function bootStoreFilter()\n {\n static::addGlobalScope(new StoreFilterScope);\n }", "title": "" }, { "docid": "c1d16795723ad90f6386badebd1e666f", "score": "0.4809087", "text": "protected function add_filter($tag, $func_to_add) {\r\n if (!isset($this->filter_hooks[$tag])) $this->filter_hooks[$tag] = array();\r\n array_push($this->filter_hooks[$tag], array('func_name'=>$func_to_add));\r\n return $this;\r\n }", "title": "" }, { "docid": "a13cf1dcaa606a659ad21792a022b923", "score": "0.480684", "text": "public function add_filter_links()\n {\n }", "title": "" }, { "docid": "8a59a9b4cf7e8924ef402fff9484d0ca", "score": "0.4803935", "text": "public function registerFilterBindings()\n {\n\t\t$this->app->bindShared('oPheme\\Classes\\OAuth2\\Filters\\OphemeOAuthOwnerFilter', function ($app) {\n return new OphemeOAuthOwnerFilter($app['oauth2-server.authorizer']);\n });\n $this->app->bindShared('oPheme\\Classes\\OAuth2\\Filters\\OphemeOAuthFilter', function ($app) {\n $httpHeadersOnly = $app['config']->get('oauth2-server-laravel::oauth2.http_headers_only');\n return new OphemeOAuthFilter($app['oauth2-server.authorizer'], $httpHeadersOnly);\n });\n }", "title": "" }, { "docid": "a737e222cd61d1d356f3198ff2b5e0ac", "score": "0.4794986", "text": "public function addTagFilter($tag)\n {\n $filter = $tag[0]['eq'];\n if (!$this->getFlag('tag_filter_added')) {\n if ($tag instanceof Category) {\n\n } else {\n if(is_int($filter)){\n $this->getSelect()->where('tag.tag_id = '.$filter);\n }\n if(is_string($filter)){\n $this->getSelect()->where('tag.identifier = ?', $filter);\n }\n }\n }\n $this->setFlag('tag_filter_added', true);\n return $this;\n }", "title": "" }, { "docid": "50527dc87409e1aefae459230326549a", "score": "0.47766072", "text": "public function addFilters() {\n\t\t$this->subscriber->addFilter( 'mce_buttons_2', [$this, 'register_style_select'], 99999 );\n\t\t$this->subscriber->addFilter( 'tiny_mce_before_init', [$this, 'register_style_formats'], 99999 );\n\t}", "title": "" }, { "docid": "6799d4ec888474e32bfceb1720b78946", "score": "0.47679076", "text": "function add_main_filters() {\n\t\t$is_admin = is_admin();\n\t\t$is_administrator = is_content_administrator_rs();\n\t\t$disable_queryfilters = defined('DISABLE_QUERYFILTERS_RS');\n\t\t$frontend_admin = false;\n\t\t\n\t\tif ( ! defined('DOING_CRON') ) {\n\t\t\tif ( $this->is_front() ) {\n\t\t\t\tif ( ! $disable_queryfilters )\n\t\t\t\t\trequire_once( dirname(__FILE__).'/query-interceptor-front_rs.php');\n\t\n\t\t\t\tif ( ! $is_administrator ) {\n\t\t\t\t\trequire_once( dirname(__FILE__).'/qry-front_non-administrator_rs.php');\n\t\t\t\t\t$GLOBALS['feed_interceptor'] = new FeedInterceptor_RS(); // file already required in role-scoper.php\n\t\t\t\t}\n\t\n\t\t\t\trequire_once( dirname(__FILE__).'/template-interceptor_rs.php');\n\t\t\t\t$GLOBALS['template_interceptor'] = new TemplateInterceptor_RS();\n\t\n\t\t\t\t$frontend_admin = ! scoper_get_option('no_frontend_admin'); // potential performance enhancement\t\n\n\t\t\t\tif ( ! empty($_REQUEST['s']) && function_exists('relevanssi_query') ) {\n\t\t\t\t\trequire_once( dirname(__FILE__).'/relevanssi-helper-front_rs.php' );\n\t\t\t\t\t$rel_helper_rs = new Relevanssi_Search_Filter_RS();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ===== Filters which are always loaded (except on plugin scripts), for any access type\n\t\t\tinclude_once( dirname(__FILE__).'/hardway/wp-patches_agp.php' ); // simple patches for WP\n\t\t\t\n\t\t\tif ( $this->is_front() || ( 'edit.php' == $GLOBALS['pagenow'] ) ) {\n\t\t\t\trequire_once( dirname(__FILE__).'/query-interceptor-base_rs.php');\n\t\t\t\t$GLOBALS['query_interceptor_base'] = new QueryInterceptorBase_RS(); // listing filter used for role status indication in edit posts/pages and on front end by template functions\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ===== Filters which support automated role maintenance following content creation/update\n\t\t// Require an explicitly set option to skip these for front end access, just in case other plugins modify content from the front end.\n\t\tif ( ( $is_admin || defined('XMLRPC_REQUEST') || $frontend_admin || defined('DOING_CRON') ) ) {\n\t\t\trequire_once( dirname(__FILE__).'/admin/cache_flush_rs.php' );\n\t\t\trequire_once( dirname(__FILE__).'/admin/filters-admin_rs.php' );\n\t\t\t$GLOBALS['scoper_admin_filters'] = new ScoperAdminFilters();\n\t\t\t\n\t\t\tif ( defined( 'RVY_VERSION' ) ) // Support Revisionary references to $scoper->filters_admin (TODO: eventually phase this out)\n\t\t\t\t$this->filters_admin =& $GLOBALS['scoper_admin_filters'];\n\t\t}\n\t\t// =====\n\t}", "title": "" }, { "docid": "3d49ab3570bd37aa43492d2a559dd5e7", "score": "0.47374323", "text": "public function addFilter(FilterInterface $filter): Collection\n {\n $this->filters[] = $filter;\n\n return $this;\n }", "title": "" }, { "docid": "a36a2358b89522f7b7530f7ef6c7f381", "score": "0.47127363", "text": "public function addToFilters($key, $value, $filterNamespace = '')\n {\n $this->addToSessionValues($key, $value, self::FILTER_KEY, $filterNamespace);\n }", "title": "" }, { "docid": "6d9e1ad525cdd68c73355811d37e8631", "score": "0.47056368", "text": "public function addFilter($fieldId, $formId, $private, $transientId);", "title": "" }, { "docid": "bdd3d7539dcf0b291406ee124355c7ac", "score": "0.46991077", "text": "function add_filter( $tag, $function_to_add, $priority = WP_FS__DEFAULT_PRIORITY, $accepted_args = 1 ) {\n $this->_logger->entrance( $tag );\n\n add_filter( $this->get_action_tag( $tag ), $function_to_add, $priority, $accepted_args );\n }", "title": "" }, { "docid": "f632bd13ced1a2f96da3887b1642ca38", "score": "0.46979505", "text": "public function processFilter()\n {\n parent::processFilter(); \n $prefix = str_replace(array('admin', 'controller'), '', Tools::strtolower(get_class($this)));\n $filtersFamily = $this->context->cookie->getFamily($prefix.$this->list_id.'Filter_');\n $aFilters = $this->helperList->getFilters($filtersFamily, $prefix, $this->list_id);\n $this->setFilters($aFilters);\n \n }", "title": "" }, { "docid": "c4e3c4b847fd086233c72563359e228a", "score": "0.46666935", "text": "public function addFilter($filter)\n {\n if ($this->_isMock) {\n $callBack = $this->_getCallback($filter);\n $this->_filters[] = $callBack[1];\n } elseif (!function_exists('add_filter')) {\n throw new RuntimeException('WordPress add_filter() not detected, '\n . 'cannot execute Vulnero outside of WordPress environment.'\n );\n } else {\n add_filter($filter, $this->_getCallback($filter));\n }\n\n return $this;\n }", "title": "" }, { "docid": "45ca22caaba70fee0b0b08474c5c7cbd", "score": "0.46594957", "text": "public function addFilter($filter)\n {\n $this->filters[] = $filter;\n\n return $this;\n }", "title": "" }, { "docid": "bedf02e6b05f0f0a7f85782825d79906", "score": "0.4653345", "text": "protected function registerFilters() {\n\t\tJSpaceLog::add( 'JSpaceRepositoryDriver: registerFilters', JLog::DEBUG, JSpaceLog::CAT_REPOSITORY );\n\t\t$this->_filters = array();\n\t\t\n\t\t$path = JPATH_LIBRARIES . DIRECTORY_SEPARATOR . 'jspace' . DIRECTORY_SEPARATOR . 'repository' . DIRECTORY_SEPARATOR . 'dspace' . DIRECTORY_SEPARATOR . 'filters' . DIRECTORY_SEPARATOR;\n\t\t$config = array(\n\t\t\t'classPrefix'\t=> 'JSpaceRepositoryDspaceFilters',\n\t\t\t'basePath'\t\t=> $path,\n\t\t\t'driver'\t\t=> 'DSpace',\n\t\t);\n\t\t$this->registerFilter('popular', $config);\n\t\t$this->registerFilter('latest', $config);\n\t\t\n\t\t/*\n\t\t * Trigger event. \n\t\t */\n\t\t$filters = JSpaceFactory::getJSpace()->trigger('onJSpaceRegisterFilters');\n\t\tforeach( $filters as $list ) {\n\t\t\tforeach( $list as $key => $options ) {\n\t\t\t\ttry {\n\t\t\t\t\tJSpaceLog::add('registerFilters: registering ' . $key, JLog::DEBUG, JSpaceLog::CAT_REPOSITORY);\n\t\t\t\t\t$this->registerFilter($key, $options);\n\t\t\t\t}\n\t\t\t\tcatch( Exception $e ) {\n\t\t\t\t\tJSpaceLog::add('registerFilters: registering ' . $key . ' failed with exception: ' . $e->getMessage(), JLog::ERROR, JSpaceLog::CAT_REPOSITORY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJSpaceLog::add( 'JSpaceRepositoryDriver: registerFilters done', JLog::DEBUG, JSpaceLog::CAT_REPOSITORY );\n\t}", "title": "" }, { "docid": "e2d3bf6373138671206196100732ecd2", "score": "0.464963", "text": "function add_filter( $tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1 ) {\n\t\tif( !is_callable($function_to_add) ) return;\n\n\t\t// append\n\t\t$tag = \"sapwood/template/{$tag}/name={$this->name}\";\n\n\n\t\t// add\n\t\tadd_filter( $tag, $function_to_add, $priority, $accepted_args );\n\n\t}", "title": "" }, { "docid": "6245d7b310591ac99dd8610af2d91995", "score": "0.46449238", "text": "protected function getAssetic_FilterManagerService()\n {\n return $this->services['assetic.filter_manager'] = new \\Symfony\\Bundle\\AsseticBundle\\FilterManager($this, array('cssrewrite' => 'assetic.filter.cssrewrite', 'yui_css' => 'assetic.filter.yui_css'));\n }", "title": "" }, { "docid": "86f7316ac39507bd173e5ab7262db3b1", "score": "0.46264645", "text": "private function RegisterFilters(){\n CreteElement::CreateMethodIntoRegistry('RegisterFilters');\n }", "title": "" }, { "docid": "8c68374d48bb5e62e49f084e6729bb38", "score": "0.46258906", "text": "public function addFilter(ProjectFilterInterface $filter){\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "51a24b33067369d0cd2c2690fd66ee89", "score": "0.46134588", "text": "protected function getAssetic_FilterManagerService()\n {\n return $this->services['assetic.filter_manager'] = new \\Symfony\\Bundle\\AsseticBundle\\FilterManager($this, array('cssrewrite' => 'assetic.filter.cssrewrite'));\n }", "title": "" }, { "docid": "d2d838af9904f2b11c1d6e3cffdd3af7", "score": "0.4598885", "text": "public function add_functional($twig)\n {\n $twig->addFilter(new Twig_SimpleFilter('filter', [$this, 'filter_filter']));\n $twig->addFilter(new Twig_SimpleFilter('obj_merge', [$this, 'filter_obj_merge']));\n $twig->addFilter(new Twig_SimpleFilter('map', [$this, 'filter_map']));\n $twig->addFilter(new Twig_SimpleFilter('values', [$this, 'filter_values']));\n $twig->addFilter(new Twig_SimpleFilter('keys', [$this, 'filter_keys']));\n $twig->addFilter(new Twig_SimpleFilter('group_by_term', [$this, 'filter_group_by_term']));\n $twig->addFilter(new Twig_SimpleFilter('tel', [$this, 'filter_tel']));\n $twig->addFilter(new Twig_SimpleFilter('bool', 'boolval'));\n $twig->addFilter(new Twig_SimpleFilter('int', 'intval'));\n\n return $twig;\n }", "title": "" }, { "docid": "f4032ce92b3a8fbc555f22aa77a1d9b8", "score": "0.45908895", "text": "public function addFilter($tag, $callback, $priority = null, $accepted_args = null);", "title": "" }, { "docid": "4580288b538c07d213085fd78f096922", "score": "0.45904973", "text": "public function addAclToDi()\n {\n $this->di->setShared('acl', $this->acl);\n }", "title": "" }, { "docid": "2257ecd54efce78dde775fedac0400bb", "score": "0.45880705", "text": "function fn_add_filter_to_hash($features_hash, $filter_id, $variant = '')\n{\n $filters = fn_parse_filters_hash($features_hash);\n\n if (!isset($filters[$filter_id]) || !in_array($variant, $filters[$filter_id])) {\n $filters[$filter_id][] = $variant;\n }\n\n return fn_generate_filter_hash($filters);\n}", "title": "" }, { "docid": "65fbc9144de527af30c12dbcebf367d9", "score": "0.45792222", "text": "public function filters() {\n return array(\n array('CrugeAccessControlFilter'),\n );\n }", "title": "" }, { "docid": "65a18cef0f94ced4f82f14537658be3a", "score": "0.45789626", "text": "public function addFilter($type, FilterInterface $filter)\n {\n switch ($type) {\n case 'css':\n $this->cssFilter = $filter;\n return;\n break;\n case 'js':\n $this->jsFilter = $filter;\n return;\n break;\n }\n throw new \\RuntimeException(sprintf('There is no %s filter type in asset collection', $type));\n }", "title": "" }, { "docid": "9e199ac848827a716c1d812d8d7d8a5d", "score": "0.4574085", "text": "function filtered_catalogue_includes () {\n\twp_enqueue_style( 'filtered_catalogue_frontend_css', plugins_url( '/filtered_product_catalogue/assets/css/filtered_catalogue_styles.min.css' ));\n\twp_enqueue_script( 'filtered_catalogue_frontend_list_js', plugins_url( '/filtered_product_catalogue/assets/js/list.min.js' ), array(), '', true );\n\twp_enqueue_script( 'filtered_catalogue_frontend_js', plugins_url( '/filtered_product_catalogue/assets/js/filtered_catalogue_js.js' ), array('jquery'), '', true );\n\n}", "title": "" }, { "docid": "cbab0fe41c94150a1c89083c0283bd6a", "score": "0.45732474", "text": "public function addFilterQuery($fq) {\n\t}", "title": "" }, { "docid": "f0c849c75ac4d84faf9f697eb2869ff2", "score": "0.45623758", "text": "public function addFilter($filterArray) {\n $clone = clone $this;\n return $clone->setDataList($this->dataList->addFilter($filterArray));\n }", "title": "" }, { "docid": "dfbda4d1100960610c42e2d088754682", "score": "0.45623678", "text": "public function addAttributesFilters() {\n\t\trequire_once vc_path_dir( 'PARAMS_DIR', 'vc_grid_item/attributes.php' );\n\t}", "title": "" }, { "docid": "2e3a2207daaa5f34610a181434e3bfdc", "score": "0.45621648", "text": "public function append($filter, $config = array())\n\t{\n\t\t$this->filters[$filter] = new Filter($filter, $config);\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c7b4b27c649acc8727228d10b6ec9725", "score": "0.45584667", "text": "private function add_filter( $tag = NULL, $method = NULL, $priority = 10, $accepted_args = NULL ) {\n\t\t\n\t\tif( isset($tag,$method) ) {\n\t\t\t//Check that action has not already been added\n\t\t\t\tadd_filter( $tag, array($this, $method), $priority, $accepted_args );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ac560bee670dbf459e0446f7d4044af7", "score": "0.455545", "text": "public function setup_filters() {\n\n\t}", "title": "" }, { "docid": "3f1529b1fa5d57bb832e2d8d04cd4264", "score": "0.45515257", "text": "public static function globalFrontendFilters(MCFCriteria &$c, $params = array()) {\n\n }", "title": "" }, { "docid": "04f5cca00d8736c094ff26636b5b4eee", "score": "0.4548976", "text": "private function product_filter_bar( ){\n\t\tif( file_exists( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option( 'ec_option_base_layout' ) . '/ec_product_filter_bar.php' ) )\t\n\t\t\tinclude( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option('ec_option_base_layout') . '/ec_product_filter_bar.php' );\n\t\telse\n\t\t\tinclude( WP_PLUGIN_DIR . \"/\" . EC_PLUGIN_DIRECTORY . '/design/layout/' . get_option('ec_option_latest_layout') . '/ec_product_filter_bar.php' );\n\t}", "title": "" }, { "docid": "982458330d44f3836e1eb3e8f31915d4", "score": "0.4548319", "text": "public function addFilter($filter)\n\t{\n\t\tif (is_array($filter)) {\n\t\t\tforeach ($filter as $f) {\n\t\t\t\t$this->filters[] = $f;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->filters[] = $filter;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9177d37893af9094f4e0993a704cc4ee", "score": "0.45462933", "text": "protected function add_filter ($tag, $function_to_add, $priority = 10, $accepted_args = 1) {\n \t\n \t return add_filter($tag, array( $this, $function_to_add ), $priority, $accepted_args);\n \t \n }", "title": "" }, { "docid": "5b4a042d89025b3adf7bdf3c758c7838", "score": "0.45377448", "text": "function report_filters_load_existing(array $readAuth, $sharing, $caching = FALSE) {\n if (function_exists('hostsite_get_user_field')) {\n $userId = hostsite_get_user_field('indicia_user_id');\n if ($userId === NULL) {\n return [];\n }\n }\n else {\n $userId = $_SESSION['auth_user']->id;\n }\n if (function_exists('iform_load_helpers')) {\n iform_load_helpers(['report_helper']);\n }\n else {\n // When running on warehouse we don't have iform_load_helpers.\n require_once DOCROOT . 'client_helpers/report_helper.php';\n }\n $filters = report_helper::get_report_data([\n 'dataSource' => 'library/filters/filters_list_minimal',\n 'readAuth' => $readAuth,\n 'caching' => $caching,\n 'extraParams' => [\n 'filter_sharing_mode' => $sharing === 'M' ? 'R' : $sharing,\n 'defines_permissions' => '',\n 'filter_user_id' => $userId,\n ],\n ]);\n return $filters;\n}", "title": "" }, { "docid": "135c23033a664d6d0d06dc27dc636359", "score": "0.4536398", "text": "public function externFilter(){\r\n\t\t\t$this->externQuery = true;\r\n\t\t\t$this->isPesistance = false;\r\n\t\t\t$this->filter();\r\n\t\t}", "title": "" }, { "docid": "ca41d902536f6974dfbe295a2e4327db", "score": "0.45329094", "text": "public function use(AbstractFilter $filter)\n {\n return $this->addFilter($filter);\n }", "title": "" }, { "docid": "9c753af525683cfe748f22e67953db08", "score": "0.45319387", "text": "public function registerFilter($key, $filter);", "title": "" }, { "docid": "111649fd1116e967bfcb742f45296e88", "score": "0.4526597", "text": "public function addFilter(AbstractQuery $filter, string $name): self\n {\n return $this->addParam('filters', $filter, $name);\n }", "title": "" }, { "docid": "24f1269f351560ff21fcc7aac32d618c", "score": "0.45247176", "text": "public function add_filter() \n\t{\n\t\t$params = $this->get_params(func_get_args());\n\n\t\t/**\n\t\t * Cargo los atributos para los filtros en un array\n\t\t */\n\t\t$attributes = array();\n\t\tforeach($params as $attr => $value) {\n\t\t\tif(!is_numeric($attr)) {\n\t\t\t\t$attributes[$attr] = $value;\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Agrego los filtros\n\t\t */\n\t\tfor($i=0; isset($params[$i]); $i++) {\n\t\t\t//si es un filtro apartir de un objeto\n\t\t\tif(is_object($params[$i])) {\n\t\t\t\tforeach($attributes as $attr => $value) {\n\t\t\t\t\tif(preg_match(\"/([a-z_0-9]+)\\.([a-z_0-9]+)/\", $attr, $regs)) {\n\t\t\t\t\t\t$filter = ucfirst(camelize($regs[1])).'Filter';\n\t\t\t\t\t\tif($params[$i] instanceof $filter) {\n\t\t\t\t\t\t\t$params[$i]->$regs[2] = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$params[$i]->$attr = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tarray_push($this->_filters, $params[$i]);\n\n\t\t\t} else { //es un filtro atraves de nombre\n\t\t\t\t$filter = ucfirst(camelize($params[$i])).'Filter';\n\t\t\t\tif(class_exists($filter)) {\n\t\t\t\t\t$obj =new $filter();\n\t\t\t\t\tforeach($attributes as $attr => $value) {\n\t\t\t\t\t\tif(preg_match(\"/([a-z_0-9]+)\\.([a-z_0-9]+)/\", $attr, $regs)) {\n\t\t\t\t\t\t\t$filter = ucfirst(camelize($regs[1])).'Filter';\n\t\t\t\t\t\t\tif($obj instanceof $filter) {\n\t\t\t\t\t\t\t\t$obj->$regs[2] = $value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$obj->$attr = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarray_push($this->_filters, $obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "772f2ab09cf7b01049c5d42d2406cdac", "score": "0.45219806", "text": "private function add_filter( $tag = NULL, $method = NULL, $priority = 10, $accepted_args = NULL ) {\n\t\t\n\t\tif( isset($tag,$method) ) {\n\t\t\t//Check that action has not already been added\n\t\t\t\tadd_filter( $tag, array(&$this, $method), $priority, $accepted_args );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "287ba0bfbf8558450167353c0660a904", "score": "0.45216578", "text": "protected function createFilter() {\n return FALSE;\n }", "title": "" }, { "docid": "f5b2b42d8699a9a057a94e84d709d2e8", "score": "0.45191666", "text": "public function register_filters() {\n\t\t\tadd_filter( 'tribe-events-bar-filters', array( $this, 'remove_search_from_bar' ), 1000, 1 );\n\t\t\tadd_filter( 'tribe-events-bar-filters', array( $this, 'update_geolocation_event_bar_filter' ), 1000, 1 );\n\t\t}", "title": "" }, { "docid": "834c60f95233adbce3510ef56633a49b", "score": "0.45056033", "text": "function addFilter(FilterInterface $filter, $name = NULL)\n {\n\n //Generate an appropriate name if none\n while($name == NULL)\n {\n $name = 'autofilter_'.rand(1111, 9999);\n if($this->hasFilter($name))\n {\n $name = NULL;\n }\n }\n\n //Check if the name exists\n if($this->hasFilter($name))\n {\n throw new FilterAlreadyExistsException($name);\n }\n\n //Add the filter to the container\n $this->filters[$name] = $filter;\n\n //Return the name/new name\n return $name;\n\n }", "title": "" }, { "docid": "e420524298a37fc5de795fb268c6a7b8", "score": "0.45046434", "text": "public function addFilterSecure($secure = false,$storeId = null)\r\n\t{\r\n\t if($storeId === null) {\r\n\t $storeId = Mage::app()->getStore()->getId();\r\n\t }\r\n\r\n\t $this->getSelect()\r\n\t ->joinLeft(\r\n\t array('secure'=>$this->getTable('payline/contract_status')),\r\n\t '`main_table`.`id`=`secure`.`contract_id` AND `secure`.`store_id`='.$storeId,\r\n\t array());\r\n\r\n\t if($secure) {\r\n\t $this->getSelect()->where('secure.is_secure = 1 or (secure.is_secure is null and main_table.is_secure = 1)');\r\n\t } else {\r\n\t $this->getSelect()->where('secure.is_secure = 0 or (secure.is_secure is null and main_table.is_secure = 0)');\r\n\t }\r\n\r\n\t $this->getSelect()->reset(Zend_Db_Select::COLUMNS)\r\n\t ->columns('id', 'main_table')\r\n\t ->columns('name', 'main_table')\r\n\t ->columns('number', 'main_table')\r\n\t ->columns('contract_type', 'main_table')\r\n\t ->columns('is_secure', 'main_table')\r\n\t ->columns('is_included_wallet_list', 'main_table')\r\n\t ->distinct();\r\n\r\n\t return $this;\r\n\t}", "title": "" }, { "docid": "d621039d1735b7841106166089d64e18", "score": "0.4504067", "text": "public function addFilterAction($params) {\n // set the qty to 1 if it is empty\n if ($params['qty'] == '' || !is_numeric($params['qty'])) {\n $params['qty'] = 1;\n }\n\n /**\n * if addAction is called from cart or quote page\n * from cart/quote page, the parameter is serialized string and is passed as base64 encoded form\n * hence, we have to decode it\n */\n if (array_key_exists('attributeEncode', $params)) {\n // $superAttribute = base64_decode($params['attributeEncode']);\n\n /**\n * unsetting 'uenc' key which is present in array when it is moved from cart to quote\n * uenc contains url of the product in base64_decode form\n */\n $testParams = unserialize(base64_decode($params['attributeEncode']));\n unset($testParams['uenc']);\n $superAttribute = serialize($testParams);\n }\n\n /**\n * if addAction is called from product detail page\n * from product detail page, parameter is passed as an array\n * hence, we have to serialize the array and make it string\n */ else {\n $superAttribute = serialize($params);\n }\n\n // if the product is Grouped Product\n if ($this->getRequest()->getParam('super_group')) {\n $superGroup = $this->getRequest()->getParam('super_group');\n\n if (array_sum($superGroup) > 0) {\n // adding each super group product separately as simple product\n foreach ($superGroup as $key => $value) {\n // don't add product if it have quantity value 0\n if ($value != 0 && is_numeric($value)) {\n $groupParams['product'] = $key;\n $groupParams['qty'] = (int) $value;\n $this->addDataAction($groupParams, $superAttribute);\n }\n }\n } else {\n $this->getCoreSession()->addNotice($this->__('Please specify product quantity.'));\n $this->_redirectReferer(Mage::getUrl('*/*'));\n }\n } else {\n $this->addDataAction($params, $superAttribute);\n }\n }", "title": "" }, { "docid": "eabe53869644c547e158aa2ad978f6ff", "score": "0.45035636", "text": "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}", "title": "" }, { "docid": "1171a5ddcec29e55d9775fb298691c09", "score": "0.45023778", "text": "public function addShared(string $shared)\n {\n $this->shared[] = $shared;\n\n return $this;\n }", "title": "" }, { "docid": "60e41412521db9b41ba1a3d2f0fa92e9", "score": "0.45004427", "text": "function add_to_twig( $twig ) {\n $twig->addExtension( new Twig_Extension_StringLoader() );\n $twig->addFilter('myfoo', new Twig_SimpleFilter('myfoo', array($this, 'myfoo')));\n return $twig;\n }", "title": "" }, { "docid": "8228f90d4e3eba038339e22684082592", "score": "0.44977155", "text": "public function addToTwig($twig)\n\t{\n\t\t$twig->addExtension(new Twig_Extension_StringLoader());\n\t\t$twig->addFilter('cfs', new Twig_SimpleFilter('cfs', [$this, 'cfs']));\n\t\t$twig->addFilter('post', new Twig_SimpleFilter('post', [$this, 'post']));\n\t\t$twig->addFilter('dump', new Twig_SimpleFilter('dump', [$this, 'dump']));\n\t\t$twig->addFilter('image', new Twig_SimpleFilter('image', [$this, 'image']));\n\t\t$twig->addFilter('target', new Twig_SimpleFilter('target', [$this, 'target']));\n\t\t$twig->addFilter('webalize', new Twig_SimpleFilter('webalize', [$this, 'webalize']));\n\t\treturn $twig;\n\t}", "title": "" }, { "docid": "6c8d5a60ab712a26659d82c2d2332ee8", "score": "0.44959247", "text": "protected function addFilterByCrossRelation(CrossRelation $crossRelation)\n {\n $relationName = $this->getRefRelationPhpName($crossRelation->getIncomingRelation(), true);\n\n foreach ($crossRelation->getRelations() as $relation) {\n $queryClass = $this->getQueryClassName();\n $foreignEntity = $relation->getForeignEntity();\n $fkPhpName = $foreignEntity->getFullName();\n $relName = $this->getRelationPhpName($relation, false);\n $objectName = '$' . NamingTool::toCamelCase($foreignEntity->getName());\n\n $description = \"Filter the query by a related $fkPhpName object\nusing the {$relation->getEntity()->getName()} entity as cross reference\";\n\n $body = \"\nreturn \\$this\n ->use{$relationName}Query()\n ->filterBy{$relName}($objectName, \\$comparison)\n ->endUse();\n\";\n\n $methodName = \"filterBy$relName\";\n $variableParameter = new PhpParameter(NamingTool::toCamelCase($foreignEntity->getName()));\n\n// if ($relation->isComposite()) {\n $variableParameter->setType('\\\\'.$fkPhpName);\n $variableParameter->setTypeDescription(\"The related object to use as filter\");\n// } else {\n// $variableParameter->setType(\"$fkPhpName|ObjectCollection\");\n// $variableParameter->setTypeDescription(\"The related object(s) to use as filter\");\n// }\n\n $this->addMethod($methodName)\n ->addParameter($variableParameter)\n ->addSimpleDescParameter(\n 'comparison',\n 'string',\n 'Operator to use for the column comparison, defaults to Criteria::EQUAL',\n null\n )\n ->setDescription($description)\n ->setType(\"\\$this|\" . $queryClass)\n ->setTypeDescription(\"The current query, for fluid interface\")\n ->setBody($body);\n }\n }", "title": "" }, { "docid": "9c52bf1412fb8148e7bd4f081bdbbf2e", "score": "0.44953543", "text": "function add_to_twig($twig){\n $twig->addExtension(new Twig_Extension_StringLoader());\n $twig->addFilter('myfoo', new Twig_Filter_Function('myfoo'));\n $twig->addFilter('toRGB', new Twig_Filter_Function('toRGB'));\n return $twig;\n }", "title": "" }, { "docid": "aab88eb8a5bbdfe2ec7f06064869bedd", "score": "0.44875425", "text": "protected static function defineFilters()\n\t{\n\t\treturn parent::defineFilters()\n\t\t\t->add('genres', function(\\go\\core\\db\\Criteria $criteria, $value, \\go\\core\\orm\\Query $query, array $filter){\n\t\t\t\tif(!empty($value)) {\n\t\t\t\t\t$query->join('music_album', 'album', 'album.artistId = artist.id')\n\t\t\t\t\t\t->groupBy(['artist.id'])\n\t\t\t\t\t\t->where(['album.genreId' => $value]);\n\t\t\t\t}\n\t\t\t});\n\t}", "title": "" }, { "docid": "d5714d479fbf1c419141881413b9e534", "score": "0.4486309", "text": "public function addFilter($type, $name)\n {\n $this->exclude[$type][] = $name;\n }", "title": "" }, { "docid": "1775640ae74cd1da2fc33783e8c52a78", "score": "0.4475271", "text": "public function initFilter(): void\n {\n $gname = new ilTextInputGUI($this->lng->txt('rep_robj_xtov_membership_list_flt_grp_name'), 'flt_grp_name');\n $gname->setSubmitFormOnEnter(true);\n\n $this->addFilterItem($gname);\n $gname->readFromSession();\n $this->filter['flt_grp_name'] = $gname->getValue();\n }", "title": "" }, { "docid": "acf007fc67ad93a373d1241f430b3dcf", "score": "0.4473794", "text": "function add_query_arg_product_cats_for_filters($cat_slug) {\n // set the query arg url for product_cat from the product_cat->slug\n $query_arg_product_cats_args = array(\n 'product_cat' => $cat_slug,\n );\n $the_url = add_query_arg($query_arg_product_cats_args);\n // parse the url into an array\n $parsed_url = wp_parse_url($the_url);\n // get the page path from the array\n $url_path = $parsed_url['path'];\n // the value we will use to search for in string\n $key_value = 'category'; \n // find key_value string in the page path\n $found = strpos_recursive($url_path, $key_value);\n // if the 'category' exists in the current page path\n if($found) {\n // before new path\n $new_path = get_permalink(woocommerce_get_page_id('shop'));\n // remove the current url page path from url string & set new path\n $new_path .= str_replace($url_path,'/',$the_url);\n } else {\n // if 'category' doesnt exist in current page url, set the add_query_arg url to the default state abouve\n $new_path = $the_url;\n }\n // return the new path\n return esc_url($new_path);\n}", "title": "" }, { "docid": "3a725ac74bef7d0fe93e033083502f33", "score": "0.44682914", "text": "public function addDynamicFilters($collection, $currentCategory = false, $useIndex = true, $checkForCatFilter = false) {\n $layer = Mage::getSingleton('catalog/layer');\n $oldCurrentCategory = FALSE;\n if (!$currentCategory) {\n $currentCategory = Mage::registry('current_category');\n } else if (is_numeric($currentCategory) & !$checkForCatFilter) {\n $currentCategory = Mage::getModel('catalog/category')->load($currentCategory);\n } else if (!empty($_GET['cat']) && is_numeric($_GET['cat'])) {\n $currentCategory = Mage::getModel('catalog/category')->load((int) $_GET['cat']);\n $oldCurrentCategory = Mage::registry('current_category');\n Mage::unregister('current_category');\n Mage::register('current_category', $currentCategory, true); // override current category\n $layer->setCurrentCategory($currentCategory);\n $collection->setFlag('remove_cat_filter', $_GET['cat']);\n } else if (is_numeric($currentCategory)) {\n $currentCategory = Mage::getModel('catalog/category')->load($currentCategory);\n $oldCurrentCategory = Mage::registry('current_category');\n Mage::unregister('current_category');\n Mage::register('current_category', $currentCategory, true); // override current category\n $layer->setCurrentCategory($currentCategory);\n }\n if (is_object($currentCategory)) {\n if ($currentCategory->getDynamicAttributes() || strlen(trim($currentCategory->getDynamicAttributes())) > 0) {\n // check for indexed result, else do the long way\n // Prefer a direct sql query here, as it is faster\n if ($useIndex && Mage::getStoreConfig('dyncatprod/index/disabled') == 0) {\n try {\n $readAdapter = Mage::getSingleton('core/resource')->getConnection('core_read');\n $select = $readAdapter->select()->from($collection->getTable('dyncatprod/catalog_category_dynamic_product_index'))\n ->where(\"category_id= {$currentCategory->getId()} AND store_id = {$currentCategory->getStoreId()}\");\n $indexedData = $readAdapter->fetchAll($select);\n if (is_array($indexedData) && count($indexedData) > 0) {\n $data = array_shift($indexedData);\n $collection->addFieldToFilter('entity_id', array('in' => array(explode(',', $data['product_ids']))));\n $collection->getSelect()->distinct(true);\n $collection->setFlag('is_dynamic', true);\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return true;\n }\n } catch (Exception $e) {\n // there was an issue, so go the non indexed way.\n Mage::logException($e);\n }\n }\n $filterList = $this->buildDynamicProductCollection($currentCategory->getDynamicAttributes());\n if (count($filterList) > 0) {\n $orFilter = array();\n foreach ($filterList as $key => $filter) {\n try {\n if (is_object($filter['attribute']) && $filter['attribute']->getAttributeCode() == 'category_id') {\n if (Mage::app()->getStore()->isAdmin()) {\n //is there a + at the right side, if so include all child categories\n $setCategories = explode(',', $filter['value']['eq']);\n $rebuiltCategories = array();\n $subCats = array();\n foreach ($setCategories as $categoryId) {\n $rightMost = substr($categoryId, -1, 1);\n if ($rightMost == '+') {\n // get all child category ids.\n $categoryId = substr($categoryId, 0, strlen($categoryId) - 1);\n $categoryModel = Mage::getModel('catalog/category')->load($categoryId);\n if ($categoryModel) {\n $subCats = explode(',', $categoryModel->getChildren());\n }\n }\n $rebuiltCategories = array_merge($rebuiltCategories, $subCats, array($categoryId));\n }\n $filter['value']['eq'] = implode(',', array_unique(array_filter($rebuiltCategories)));\n $conditions = array(\n 'cat_index.product_id=e.entity_id',\n $collection->getConnection()->quoteInto('cat_index.category_id IN (' . $filter['value']['eq'] . ')', \"\")\n );\n $joinCond = join(' AND ', $conditions);\n $fromPart = $collection->getSelect()->getPart(Zend_Db_Select::FROM);\n\n if (isset($fromPart['cat_index'])) {\n $fromPart['cat_index']['joinCondition'] = $joinCond;\n $collection->getSelect()->setPart(Zend_Db_Select::FROM, $fromPart);\n } else {\n $collection->getSelect()->join(\n array('cat_index' => $collection->getTable('catalog/category_product_index')), $joinCond, array('cp_category_id' => 'category_id')\n );\n }\n } else {\n $collection->setFlag('category_ids', $filter['value']['eq']);\n $collection->setFlag('store_id', $currentCategory->getStoreId());\n }\n continue;\n }\n if ($filter['link'] == 'OR') {\n $orFilter[] = array('attribute' => $filter['attribute']->getAttributeCode(), key($filter['value']) => $filter['value']);\n //Mage::log(\"cat_add:\".$collection->getSelect());\n } else {\n $collection->addAttributeToFilter($filter['attribute'], $filter['value'], $filter['join']);\n }\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n if (count($orFilter) > 0) {\n $collection->addAttributeToFilter($orFilter, null, 'left');\n //Mage::log(\"after:\".$collection->getSelect());\n }\n $collection->getSelect()->distinct(true);\n $collection->getSelect()->group('e.entity_id');\n $collection->setFlag('is_dynamic', true);\n }\n //Mage::log(\"after:\" . $collection->getSelect());\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return $collection;\n }\n }\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return false;\n }", "title": "" }, { "docid": "55bfd54f5fd9a8a05f5851865980b7a6", "score": "0.4467739", "text": "static function add_filters(): void {\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_group']);\r\n\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_status']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_roles']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_year']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_division']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_role']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_alias']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_preferred']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_interim']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_start']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_end']);\r\n\r\n\t\t// Validate values\r\n\t\tadd_action(sprintf('acf/validate_value/key=%s',\r\n\t\t\tself::qualify_field(self::start)), [__CLASS__, 'validate_start'],\r\n\t\t\t99, 4);\r\n\r\n\t\tadd_action(sprintf('acf/validate_value/key=%s',\r\n\t\t\tself::qualify_field(self::end)), [__CLASS__, 'validate_end'],\r\n\t\t\t99, 4);\r\n\t}", "title": "" } ]
badac5d85787b9cd95f3e35a85f680bc
check to see if username or email are already taken
[ { "docid": "924d0d8457ff39a7d3c43a34b1a8caf0", "score": "0.0", "text": "public function p_signup() {\n $user_exists = DB::instance(DB_NAME)->select_field(\"SELECT user_name FROM users WHERE user_name = '\" . $_POST['user_name'] . \"'\");\n $email_exists = DB::instance(DB_NAME)->select_field(\"SELECT email FROM users WHERE email = '\" . $_POST['email'] . \"'\");\n\n //check that all form fields are valid\n $formErrors = array();\n foreach($_POST as $k=>$v) {\n if(!$this->validateFields($k, $v)){\n array_push($formErrors, $k);\n } \n }\n\n if ($user_exists || $email_exists) {\n echo 'The e-mail or username you have selected is already in use.';\n }\n elseif (!empty($formErrors)) {\n echo 'There were errors with some of your entries. Please observe the requirements above. OBSERVE THEM!';\n }\n else {\n # More data we want stored with the user\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n # Encrypt the password \n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']); \n\n # Create an encrypted token for user's sessions\n $_POST['token'] = sha1(TOKEN_SALT.$_POST['user_name'].Utils::generate_random_string()); \n\n # Insert this user into the database\n $user_id = DB::instance(DB_NAME)->insert('users', $_POST); \n echo '<p class=\"success\">Your account has been created. Huzzah. Please login to get started.</p>';\n \n }\n }", "title": "" } ]
[ { "docid": "a6adb82e0f67d6a679a649ee5fcbef64", "score": "0.78080064", "text": "function hasDuplicateUsername ($username, $email) {\n\t\n\t\tprintErr(1, $username, $email);\n\t}", "title": "" }, { "docid": "4e4aaa5070a15ef538d7c40f6a3ad520", "score": "0.7679315", "text": "function checkExistUser() {\n\t\tglobal $db;\n\t\t$email = FSInput::get ( 'email' );\n\t\t$username = FSInput::get ( 'username' );\n\t\n\t}", "title": "" }, { "docid": "e9ee798274bf9fe8c0bebcf76bf5ee2f", "score": "0.75422513", "text": "function hasDuplicateEmail ($username, $email) {\n\t\n\t\tprintErr(2, $username, $email);\n\t}", "title": "" }, { "docid": "1696b2f30d7423ad95c09fbffa9f0ed1", "score": "0.75058895", "text": "public function _unique_username()\n\t{\n\t\t// Unless it's the email for the current user\t\n\t\t\n\t\t//dump($id); exit(1);\t\n\t\t$this->db->where('username', $this->input->post('username'));\n\t\t\t!$id || $this->db->where('id !=', $id);\n\t\t\t$user = $this->user_m->get();\n\t\t\n\t\t\tif (count($user)) {\n\t\t\t\t$this->form_validation->set_message('_unique_username', '%s already exists. Please type another username');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\treturn TRUE;\n\t}", "title": "" }, { "docid": "75464c253e5687418822028e15bb7d2e", "score": "0.7293317", "text": "function isUniqueUsername()\n {\n $req = SGL_Request::singleton();\n $username = $req->get('username');\n $ok = $this->da->isUniqueUsername($username);\n if ($ok) {\n $msg = 'Selected username is available';\n $ret = array(\n 'type' => 'info',\n 'message' => SGL_Output::translate($msg)\n );\n } else {\n $msg = 'This username already exist in the DB, please choose another';\n $ret = array(\n 'type' => 'error',\n 'message' => SGL_Output::translate($msg)\n );\n }\n return $ret;\n }", "title": "" }, { "docid": "643a8e5e3e5b8384ac303579b9e3a930", "score": "0.72827786", "text": "function username_exists($username) {\n $this->form_validation->set_message('username_exists', 'The Username is already in use. Please try another Username.');\n if ($this->m_user->isDuplicateUsername($username)) {\n return FALSE;\n } else {\n return TRUE;\n }\n }", "title": "" }, { "docid": "2849cd0796b0fc629207bc94c0cb1659", "score": "0.72349083", "text": "function exists_username()\n {\n if ($this->Hotel_model->isUserexist($this->input->post('email')))\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "title": "" }, { "docid": "9aaf1ec97d4fdc429bf06c12e5dfac82", "score": "0.72150344", "text": "public function checkCredentials($username, $email){\n $db = $this->_getGateway();\n $query = $db->query(\"SELECT * FROM users WHERE `username`='$username' OR `email`='$email'\");\n if($query->num_rows() == 0){\n //Username and email dont exist\n return true;\n }else{\n //Username or email already exist\n return false;\n }\n }", "title": "" }, { "docid": "67a7f6748df3bda4b5af3a521cb3c46a", "score": "0.71900547", "text": "function check_unique_username() {\n if ($user_name = $this->input->post('user_name')) {\n $exists = $this->traineemodel->check_duplicate_user_name($user_name);\n if (!$exists) {\n $this->form_validation->set_message('check_unique_username', \"Username $user_name already exists.\");\n return FALSE;\n }\n return TRUE;\n }\n }", "title": "" }, { "docid": "67988e17731b1fcbb105ddc2ff9d2e88", "score": "0.717239", "text": "public function check_duplicateEntry($email, $username) {\r\n $sqli_username = \"SELECT * FROM customer WHERE username='$username'\";\r\n\t\t $sqli_email = \"SELECT * FROM customer WHERE email_address='$email'\";\r\n\r\n $result_username = $this->sql->query($sqli_username);\r\n\t\t $result_email = $this->sql->query($sqli_email);\r\n\r\n if (mysqli_num_rows($result_username) > 0) {\r\n return $this->errNo = 'Username Already exist, Please try again.';\r\n } else if (mysqli_num_rows($result_email) > 0) {\r\n return $this->errNo = 'Email already exist!, Please try again.';\r\n }\r\n }", "title": "" }, { "docid": "1721dd7fd30bf6c01966ee6ab9f92408", "score": "0.7169244", "text": "public function _unique_email()\n\t{\n\t\t// Unless it's the email for the current user\n\n\t\t$this->db->where('email', $this->input->post('email'));\n\t\t!$id || $this->db->where('id !=', $id);\n\t\t$user = $this->user_m->get();\n\t\t\t\n\t\tif (count($user)) {\n\t\t\t$this->form_validation->set_message('_unique_email', '%s already exists. Please type another email address');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "f4e2c1e672a4d272f176a90aa1970ac7", "score": "0.70338976", "text": "function usernameExists($username =''){\n\t\t$conn = Doctrine_Manager::connection();\n\t\t# validate unique username and email\n\t\t$id_check = \"\";\n\t\tif(!isEmptyString($this->getID())){\n\t\t\t$id_check = \" AND id <> '\".$this->getID().\"' \";\n\t\t}\n\t\n\t\tif(isEmptyString($username)){\n\t\t\t$username = $this->getUsername();\n\t\t}\n\t\t\n\t\t// list of reserved usernames\n\t\t$reservednames = getInvalidSubdomains();\n\t\t$reservednames = array_combine($reservednames, $reservednames);\n\t\tif(!isArrayKeyAnEmptyString($username, $reservednames)){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$query = \"SELECT id FROM company WHERE username = '\".$username.\"' AND status = '1' AND username <> '' \".$id_check;\n\t\t// debugMessage($query);\n\t\t$result = $conn->fetchOne($query);\n\t\t// debugMessage('>'.$result);\n\t\tif(isEmptyString($result)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "000e8a0c140c06ccc2e8f72dd782d1c7", "score": "0.70098895", "text": "function checkUsernameTaken($username){\n\tglobal $error;\n\t\n\t\n\tif(checkUserNameExists($username)){\n\t\t\n\t\t$message = \"Username \".$username.\" is already taken\";\n\t\t$error->addFlag($message);\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "4257b1cc36cc7ee026d0717d5cadc43a", "score": "0.7005344", "text": "private function isUserExist($username, $email) {\n\t\t $stmt = $this->con->prepare(\" SELECT id FROM user WHERE username = ? OR\n\t\t\t email = ?\");\n\t\t $stmt->bind_param(\"ss\", $username, $email);\n\t\t $stmt->execute();\n\t\t $stmt->store_result();\n\t\t return $stmt->num_rows > 0; //this values\n\n\t }", "title": "" }, { "docid": "2e6f0201a46ca5a15604ff728a3bfb23", "score": "0.69986254", "text": "function create_account_check($email) {\n\n //make sure the email account is available\n $account = $this->model->get_one_where('email', $email, 'members');\n\n if ($account !== false) {\n //this email must be in use!\n $error = 'The email address that you submitted appears to be in use.';\n return $error;\n } else {\n\n //the email address is available\n\n $pword = $this->input('pword');\n $pword_repeat = $this->input('pword_repeat');\n\n if ($pword !== $pword_repeat) {\n $error = 'The repeat password field must match the password field.';\n return $error;\n } else {\n return true;\n }\n\n }\n\n }", "title": "" }, { "docid": "52455f4c8570ca0808b2b17696aefffd", "score": "0.69686395", "text": "function user_exists($email, $scrname, $con) {\r\n\t$exists = false;\r\n\t\t\r\n\tif (email_exists($email, $con)) {\r\n\t\t$exists = true;\r\n\t}\r\n\t\r\n\tif (scrname_exists($scrname, $con)) {\r\n\t\t$exists = true;\r\n\t}\r\n\t\r\n\treturn $exists;\r\n}", "title": "" }, { "docid": "4fda7ad27a35aebdd2d543272a39688e", "score": "0.69421965", "text": "function username_check($username)\n\t{\n\t\t$result = $this->CI->dx_auth->is_username_available($username);\n\t\tif ( ! $result)\n\t\t{\n\t\t\t$this->set_message('username_check', $this->CI->lang->line('Username already exist. Please choose another username.'));\n\t\t}\n\t\t\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "413c93e132d8518d2858a6eb23b762b0", "score": "0.6941926", "text": "function checkUniqueEmail ($email=null) {\n\t\t//TODO: some alphanumeric validation of email\n\n\t\tdebugPrint(\"email: $email\");\n\n\t\t$query = \"SELECT * FROM users WHERE email = '$email'\";\n\t\t$accountInfo = executeQuery($query);\n\n\t\tif (!empty($accountInfo)) {\n\t\t\tdebugPrint(\"Error: Email is already taken\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "bad0ce5e6a37a2ca67ec44eae71dfc04", "score": "0.6931183", "text": "public function checkUniqueUsername($data, $fieldName) {\r\n\t\tif (isset($this->data['User']['id']) && !empty($this->data['User']['id'])) {\r\n\t\t\tif ($data[$fieldName] == $this->field($fieldName, \"user_name='\" . $this->data['User']['user_name'] . \"' AND id != '\" . $this->data['User']['id'] . \"'\")) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\t//$valid = false;\r\n\t\t\t\tif (isset($fieldName) && $this->hasField($fieldName)) {\r\n\t\t\t\t\t$valid = $this->isUnique(array($fieldName => $data));\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn $valid;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif ($data[$fieldName] == $this->field($fieldName, \"user_name='\" . $this->data['User']['email'] . \"'\")) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\t//$valid = false;\r\n\t\t\t\tif (isset($fieldName) && $this->hasField($fieldName)) {\r\n\t\t\t\t\t$valid = $this->isUnique(array($fieldName => $data));\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn $valid;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "edf2abcac7163d1568dfeb28f88338ec", "score": "0.69253135", "text": "function check_username_exists($username){\r\n\t\t$this->form_validation->set_message('check_username_exists', 'That username is taken. Please choose another one');\r\n\r\n\t\tif($this->User->check_username_exists($username)){\r\n\t\t\treturn true;\r\n\t\t} else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "092b41325595b890b031b089c95f43fc", "score": "0.6905144", "text": "public function usernameExists()\n\t{\n\t\t$result = array( 'result' => 'ok' );\n\t\t\n\t\t/* The value comes urlencoded so we need to decode so length is correct (and not using a percent-encoded value) */\n\t\t$name = urldecode( \\IPS\\Request::i()->input );\n\t\t\n\t\t/* Check is valid */\n\t\tif ( !$name )\n\t\t{\n\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack('form_required') );\n\t\t}\n\t\telseif ( mb_strlen( $name ) < \\IPS\\Settings::i()->min_user_name_length )\n\t\t{\n\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack( 'form_minlength', FALSE, array( 'pluralize' => array( \\IPS\\Settings::i()->min_user_name_length ) ) ) );\n\t\t}\n\t\telseif ( mb_strlen( $name ) > \\IPS\\Settings::i()->max_user_name_length )\n\t\t{\n\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack( 'form_maxlength', FALSE, array( 'pluralize' => array( \\IPS\\Settings::i()->max_user_name_length ) ) ) );\n\t\t}\n\t\telseif ( \\IPS\\Settings::i()->username_characters and !preg_match( '/^[' . str_replace( '\\-', '-', preg_quote( \\IPS\\Settings::i()->username_characters, '/' ) ) . ']*$/i', $name ) )\n\t\t{\n\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack('form_bad_value') );\n\t\t}\n\n\t\t/* Check if it exists */\n\t\telse\n\t\t{\n\t\t\tforeach ( \\IPS\\Login::handlers( TRUE ) as $k => $handler )\n\t\t\t{\n\t\t\t\tif ( $handler->usernameIsInUse( $name ) === TRUE )\n\t\t\t\t{\n\t\t\t\t\tif ( \\IPS\\Member::loggedIn()->isAdmin() )\n\t\t\t\t\t{\n\t\t\t\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack('member_name_exists_admin', FALSE, array( 'sprintf' => array( $k ) ) ) );\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$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack('member_name_exists') );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* Check it's not banned */\n\t\tif ( $result == array( 'result' => 'ok' ) )\n\t\t{\n\t\t\tforeach( \\IPS\\Db::i()->select( 'ban_content', 'core_banfilters', array(\"ban_type=?\", 'name') ) as $bannedName )\n\t\t\t{\n\t\t\t\tif( preg_match( '/^' . str_replace( '\\*', '.*', preg_quote( $bannedName, '/' ) ) . '$/i', $name ) )\n\t\t\t\t{\n\t\t\t\t\t$result = array( 'result' => 'fail', 'message' => \\IPS\\Member::loggedIn()->language()->addToStack('form_name_banned') );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\\IPS\\Output::i()->json( $result );\t\n\t}", "title": "" }, { "docid": "7c1bdecc8697f186bf58fc45424aff2f", "score": "0.689708", "text": "public function CheckDuplicate() {\n\t\t\n\t\t$pass = true;\n\t\tforeach( $this->users as $user => $data ) {\n\t\t\t\n\t\t\tif( $data['username'] == $this->username ) {\n\t\t\t\t\n\t\t\t\t$pass = false;\n\t\t\t}\n\t\t}\n\t\treturn $pass;\n\t}", "title": "" }, { "docid": "bff79a1aa1fc2bf287acf63148d35ed4", "score": "0.68900883", "text": "function checkDuplicateEmail ()\n {\n $query = $this->db->where( array('user_email' => $this->user_email, 'user_type' => $this->user_type))\n ->get($this->my_conf->user_tbl);\n $count_rows = $query->num_rows();\n if($count_rows > 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a1dac22ce3c29fcdc69eca632b7781f9", "score": "0.6878166", "text": "public function validateUsername() {\n // if username exists in database\n if($this->identity = $this->findIdentity(['username' => $this->username])) {\n return true;\n // username does not exist in database\n } else {\n $this->addError('username', 'Dieser Username existiert nicht!');\n return false;\n }\n }", "title": "" }, { "docid": "bb40296b6666df0fb29df2e1657778d5", "score": "0.68756676", "text": "function checkIfUsernameOrEmailExist($conn, $uname, $uemail){\n\t\tglobal $same_name_email_error;\n\t\ttry{\n\t\t\t$user_db_check = $conn->prepare(\"SELECT COUNT(*) FROM User WHERE `username` = '$uname' or `email` = '$uemail'\");\n\t\t\t$user_db_check->execute();\n\t\t\t$count = $user_db_check->fetchColumn();\n\t\t\tif($count >= 1){\n\t\t\t\t$same_name_email_error .= \"<br>Valitsemasi käyttäjätunnus tai sähköpostiosoite on jo käytössä.\";\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(PDOException $e){\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "title": "" }, { "docid": "1ac77d330911e1115266145fa4f94f5a", "score": "0.6871675", "text": "public function validateUsername()\n {\n global $_CORELANG;\n\n if (empty($this->username)) {\n return true;\n }\n if (self::isValidUsername($this->username)) {\n if (self::isUniqueUsername($this->username, $this->id)) {\n return true;\n } else {\n $this->error_msg[] = $_CORELANG['TXT_ACCESS_USERNAME_ALREADY_USED'];\n }\n } else {\n $this->error_msg[] = $_CORELANG['TXT_ACCESS_INVALID_USERNAME'];\n }\n\n return false;\n }", "title": "" }, { "docid": "e2ad490eb34dc3b8ed438ca4a8ea0e8b", "score": "0.6854638", "text": "public function action_unique()\n\t{\t\n\n\t\t$data = $_POST['data'];\n\n\t\tif (!isset($data)) return Resp::exec(Resp::invalid_request);\n\n\t\t$email = User::where_email($data)->first();\n\n\t\tif ($email) return false;\n\t\telse return true;\n\t}", "title": "" }, { "docid": "2f3d9d1313388378204c7d1ffd0e49ee", "score": "0.6842097", "text": "public function chkEmailDuplicate() {\n $this->load->model('register_model');\n $user_email = $this->input->post('user_email');\n $table_to_pass = 'mst_users';\n $fields_to_pass = array('user_id', 'user_email');\n $condition_to_pass = array(\"user_email\" => $user_email);\n $arr_login_data = $this->register_model->getUserInformation($table_to_pass, $fields_to_pass, $condition_to_pass, $order_by_to_pass = '', $limit_to_pass = '', $debug_to_pass = 0);\n if (count($arr_login_data)) {\n echo 'false';\n } else {\n echo 'true';\n }\n }", "title": "" }, { "docid": "d4ed681cb12a7aa5b1ab0cec858ef022", "score": "0.6836886", "text": "public function isExistingUserName($userName);", "title": "" }, { "docid": "1a3e193e0f76bdb88aedf86311e7636f", "score": "0.6832711", "text": "function user_already_exists($username) {\r\n $status = $this->Users_model->userAlreadyExists($username);\r\n if(!$status){\r\n // the user doesn't yet exist\r\n return TRUE;\r\n } else {\r\n $this->form_validation->set_message('user_already_exists', \"Hey, this user already exists in our system!\");\r\n return FALSE;\r\n }\r\n }", "title": "" }, { "docid": "fcc8bf32d6f27f41563c19349cfdfadf", "score": "0.6826694", "text": "public function validateUnique() {\n $email = $this->myRequest[\"CustEmail\"];\n $dB = new DB('travelexperts');\n $query = \"SELECT CustEmail FROM `customers` WHERE CustEmail='\" . $email . \"'\";\n $customer = $dB->get($query);\n\n //If we get a row in the result, then the email address has already been used.\n if ( !($customer===0) ) {\n //Custom Message\n return false;\n } else {\n return true;\n }\n\n }", "title": "" }, { "docid": "5529adec19cba68732e39628b4e6b6cd", "score": "0.6821557", "text": "public function _username_unique($username){\r\n $query = $this->db->get_where('members',array('username' => $username, 'id != ' => $this->input->post('id')));\r\n if($query->num_rows()>0){\r\n $this->form_validation->set_message('_username_unique', '%s is already taken'); \r\n return FALSE;\r\n }\r\n else{\r\n return TRUE;\r\n }\r\n }", "title": "" }, { "docid": "d16e17aad94133a5b70a9789bd432f69", "score": "0.681851", "text": "public function fail_validation_on_duplicate_email_and_username()\n {\n $user = factory(User::class)->create();\n $user = factory(User::class)->raw( [\n 'email'=> $user->email,\n 'username'=> $user->username\n ]);\n\n $this->postJson(route('register'), $user)\n ->assertStatus(422);\n\n $this->assertDatabaseMissing('users', [\n 'name'=> $user['name']\n ]);\n }", "title": "" }, { "docid": "0fe6e5f60339c685c38fd9c55073b143", "score": "0.6805807", "text": "public function username_validation($username,$email)\n\t{\n\t\t$query = $this->ci->db->where(array($this->username_field=>$username,$this->email_field=>$email))->get($this->user_table);\n\n\t\t// If there are users\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\t// Username is not available\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// No users were found\n\t\treturn FALSE;\n\n\t}", "title": "" }, { "docid": "ca9f1e9777176984347c2f265d5f99af", "score": "0.6797803", "text": "public function checkUniqueUserUpdate()\n\t{\n\t\tif( $this->scenario == 'update' )\n\t\t{\n\t\t\t$user = Members::model()->exists('username=:username AND id!=:id', array(':username'=>$this->username, ':id'=>$this->id));\n\t\t\tif( $user )\n\t\t\t{\n\t\t\t\t$this->addError('username', Yii::t('adminmembers', 'Sorry, That username is already in use by another member.'));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d5c841b2e0e338a13a66856deceb5652", "score": "0.67920494", "text": "public function check_username_exists($username) {\n $this->form_validation->set_message('check_username_exists','Username is already taken, pick another one');\n \n if($this->admin_model->check_username_exists($username)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2bdacb1ded604a0880162c25cde153ed", "score": "0.67917985", "text": "public function check_duplicate_user_name($username) {\n $exists = $this->db->select('user_id')->get_where('tms_users', array('user_name' => $username), 1)->num_rows();\n if ($exists) {\n return FALSE;\n }\n return TRUE;\n }", "title": "" }, { "docid": "671e6ffa5a0f4ee4f37fee685638859a", "score": "0.6787254", "text": "function username_is_unique($username){\n\tglobal $connection;\n\t$query = \"SELECT * FROM users WHERE username = '{$username}' \";\n\t$users = mysql_query($query, $connection);\n\t// test if query failed using function in functions.php\n\tconfirm_query($users);\n\tif (mysql_num_rows($users) >= 1){\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "edd3c6bf54c244ace12cf9c098ce6fb6", "score": "0.6775303", "text": "private function checkUserName()\r\n {\r\n if(!isset($this->m_arrInputFields['username']))\r\n return 0;\r\n\r\n if($this->m_arrInputFields['username'] == \"\")\r\n return 0;\r\n\r\n $username = $this->m_arrInputFields['username'];\r\n $pUser = new CDataUser(0, false, $this->m_envs);\r\n $bFound = $pUser->getIDByUsername($username);\r\n\r\n if($bFound)\r\n return 1;\r\n\r\n return 2;\r\n }", "title": "" }, { "docid": "c639adab53b5d2a7ace765f7da0461dd", "score": "0.6769759", "text": "public function validate_user_name($user_name){ // use get_user_id function. if empty then it doesn't exist\n // if all good return true, other return false\n return true;\n }", "title": "" }, { "docid": "c5185b6e4b9f1e89f3ecfb769ee219af", "score": "0.67635334", "text": "function username_exists($username)\n\t{\n\t\t$user_data=$this->ion_auth->get_user_by_username($username);\n\t\t\n\t\tif (!$user_data)\n\t\t{\n\t\t\tRETURN TRUE;\n\t\t}\n\n\t\t//check if editing user, exclude the current user\n\t\t$userid=$this->input->post(\"id\");\n\t\t\n\t\tif ($userid==$user_data->id)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\tif ($user_data)\n\t\t{\n\t\t\t$this->form_validation->set_message('username_exists', t('callback_username_exists') );\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "e5f94e58b8023fcf8cf013439f7901f1", "score": "0.6763352", "text": "public function username_exists() \n\t{\n\t\t$users_name = trim($this->input->post ( 'username' ));\n\n\t\t$where = array ('users_username' => trim ( $users_name ));\n\t\t\n\t\t$result = $this->Mydb->get_record ( 'users_id', $this->table, $where );\n\t\tif (! empty ( $result )) \n\t\t{\n\t\t\t$this->form_validation->set_message ( 'username_exists', get_label('username_exists') );\n\t\t\treturn false;\n\t\t} \n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "2e3cadb6e4df622cc134a81d5192cc26", "score": "0.6745418", "text": "public function validateUserName()\n\t{\n\t\t$this->connectToDatabase();\n\n\t\t$query = \"SELECT id FROM `site_user` \".\n\t\t\t\"WHERE (`login` = \".$this->uname->escapeSQL($this->mysqli).\") \";\n\t\tif ($this->id->value>0)\n\t\t{\n\t\t\t$query .= \"AND (id != {$this->id->value})\";\n\t\t}\n\n\t\t$rs = $this->fetchRecords($query);\n\t\tif (count($rs) > 0) {\n\t\t\tthrow new ContentValidationException(\"User name already exists.\");\n\t\t}\n\t}", "title": "" }, { "docid": "936afe364575c7f55a800143edd148ea", "score": "0.67422867", "text": "function checkUserNameEmail( $username, $email, $phone )\n\n { \n\n\t\t\n\n \t$sql = \"SELECT * FROM customers\"\n\n \t. \" WHERE customers.username = '$username' OR customers.email = '$email' OR customers.phone = '$phone'\";\n\n \t\n\n \t$this->query( $sql );\n\n }", "title": "" }, { "docid": "07f5a5c10e1eb52323a5fb3adbaed939", "score": "0.67422837", "text": "public function avoidDuplicateEmail()\n {\n $query = \"select * from `user` where `email`=:email\";\n $query_category = Yii::app()->db->createCommand($query);\n $query_category->bindParam( ':email', $this->email);\n $results = $query_category->queryAll();\n\n if(count($results)>0)\n {\n $this->addError('email','This email already exists in database');\n return false;\n }\n else return true;\n }", "title": "" }, { "docid": "37ee745f47b9ac87dcbb24beb41402b1", "score": "0.67405814", "text": "function usernameTaken($username) {\n\t\t$username = mysql_real_escape_string($username);\n\t\tif(mysql_num_rows($this->db->query(\"SELECT id FROM \".TBL_USERS.\" WHERE username = '$username' LIMIT 1\")) == 1)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ccadb85881909f322d9d40be92d0e92d", "score": "0.67329395", "text": "private function checkIsUserExists($nickname, $email) {\n\t\tif(sizeof($this->getUserByName($nickname)) == 0 && sizeof($this->getUserByEmail($email)) == 0)\n\t\t\treturn 1;\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "28aa3ee67100b34d8ee6301b4f7e37ee", "score": "0.6726529", "text": "function username_check($email_address)\n{\n\tif(($email==$friend_email1) || ($email==$friend_email2))\n\t{\n\t\t$this->form_validation->set_message('username_check', 'You can not refer your self.');\n\t\treturn false;\n\t}\n\telse\n\t\treturn true;\n}", "title": "" }, { "docid": "f429438feede174ea78b800a948691e6", "score": "0.6718454", "text": "private function isDatasAlreadyInDb(string $username, string $email) : bool\n {\n $sql = \"SELECT * FROM user WHERE username = :username OR email = :email\";\n $result = $this->pdo->prepare($sql);\n $result->execute(['username'=> $username, 'email'=> $email]);\n $data = $result->fetch();\n return (!$data) ? true : false;\n }", "title": "" }, { "docid": "06602487ff13518b73c15b62a54e0f33", "score": "0.6697342", "text": "public function checkUserEmailExistence($email);", "title": "" }, { "docid": "a8f0b73352e1c43236f7c82679577aa2", "score": "0.6695865", "text": "public function check_unique_username($email) {\n\n $this->db->select('*');\n $this->db->from('tbl_users');\n $this->db->where('email', $email);\n $this->db->where('delete_status', '0');\n $this->db->limit(1);\n $query = $this->db->get();\n\n if ($query->num_rows() == 0) {\n return TRUE;\n } else {\n return false;\n } \n }", "title": "" }, { "docid": "41d5feba4f5235ab59524630b7456ffc", "score": "0.66954714", "text": "public function alreadyRegister()\r\n\t{\r\n \t$conn = DBConnection::createConnection();\r\n\t\t$check = true;\r\n\t\t\r\n \tif($conn !== null) //successfully connected to database\r\n \t{\t\t\r\n\t\t\t//prepare statement\t\t\t\t\r\n\t\t\tif ($statement = $conn->prepare('Select email from user where email = ?'))\r\n\t\t\t{\r\n\t\t\t\t$statement->bind_param(\"s\", $this->email);\r\n\t\t\t\t$statement->execute();\r\n \t\t$statement->store_result();\r\n\t\t\t\t\r\n\t\t\t\t// If the user exists\r\n\t\t\t\tif($statement->num_rows == 1) $check=true;\r\n\t\t\t\telse $check=false; \r\n\t\t\t}\r\n\t\t\telse echo \"Failed to prepare statement\";\t\r\n\t\t}\r\n\r\n\t\t//close connection\r\n\t\tDBConnection::closeConnection();\r\n\t\treturn $check;\r\n\t}", "title": "" }, { "docid": "ec4e88286214cf6705af120fb1d10686", "score": "0.6694195", "text": "function allowUsername($username, $checkDuplicate=TRUE){\r\n if (!PHPWS_Text::isValidInput($username, 'cn-gb')){\r\n//echo 'Improperly formatted username';\r\n $this->error[] = \"用户名格式不正确: <b>$username</b>\";\r\n return FALSE;\r\n }\r\n\r\n if($checkDuplicate && PHPWS_User::getUserId($username)){\r\n//echo 'Username already in use';\r\n $this->error[] = \"用户名与他人重复: <b>$username</b>\";\r\n return FALSE;\r\n }\r\n\r\n return TRUE;\r\n }", "title": "" }, { "docid": "d026ff36f14924868d5a5d1f2fd11415", "score": "0.66938335", "text": "function checkUserExsit()\n{\n global $db;\n global $username;\n global $fullname;\n\n $userQuery = \"SELECT * FROM userData WHERE username ='$username'\";\n $sendingQuery = mysqli_query($db, $userQuery);\n $checkQuery = mysqli_num_rows($sendingQuery);\n\n if ($checkQuery == 1) {\n // if Username is already registered\n tryLogin();\n } else {\n\n if (empty($fullname)) {\n echoData('Type Full Name');\n } else {\n trySignup();\n }\n\n }\n\n}", "title": "" }, { "docid": "d47337e6e42e548f28e71402857b2552", "score": "0.66813284", "text": "public function username_existe() {\n $table = Usuario::find()->where(\"usu_username=:usu_username\", [\":usu_username\" => $this->usu_username]);\n\n //Si el username existe mostrar el error\n if ($table->count() == 1) {\n $this->addError('usu_username', \"El usuario seleccionado existe\");\n }\n }", "title": "" }, { "docid": "c1cd5f4e7097cff70f0e315aed2d2c40", "score": "0.6674332", "text": "function isDuplicateEmail($value, $empty, &$params, &$formvars) {\n\n if (empty($formvars['email'])) return false;\n\n $tmp = $this->user->getByEmail($formvars['email']);\n if ($tmp === false ) return true; // No duplicate found\n\n if($this->mode == 'edit') {\n $u = $this->user->getByID($this->users_id);\n if ($formvars['email'] == $u['email']) {\n // This is a user editing themseleves, this is OK\n return true;\n }\n }\n\n return false; // Fail\n\n }", "title": "" }, { "docid": "95179fd15e7356924270029e5edea2f1", "score": "0.6654826", "text": "function check_if_username_exists($requested_username){\n\t\t\n\t\t$this->load->model('membership_model');\n\t\t\n\t\t$username_available = $this->membership_model->check_if_username_exists($requested_username);\n\t\tif ($username_available){\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "87e53d31bc29d90d99b3adc1fcd3e5b9", "score": "0.66518754", "text": "public function _unique_email ($str){\n\t\t// Do NOT validate if email already exists\n\t\t// UNLESS it's the email for the current user\n\t\t\n\t\t$id = $this->uri->segment(5);\n\t\t$this->db->where('email', $this->input->post('email'));\n\t\t!$id || $this->db->where('id !=', $id);\n\t\t$user = $this->user_m->get();\n\t\t\n\t\tif (count($user)) {\n\t\t\t$this->form_validation->set_message('_unique_email', $this->lang->line('error_is_unique'));\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "7a0bf5adad7dddc862ff9d1cb31e8d1b", "score": "0.6648238", "text": "public function username_check($username)\r\n\t{\r\n\t $check = $this->redux_auth_model->username_check($username);\r\n\t \r\n\t if ($check)\r\n\t {\r\n\t $this->form_validation->set_message('username_check', 'The username \"'.$username.'\" already exists.');\r\n\t return false;\r\n\t }\r\n\t else\r\n\t {\r\n\t return true;\r\n\t }\r\n\t}", "title": "" }, { "docid": "3326445bb37191daab376f3d8f86f9f4", "score": "0.6642345", "text": "function username_check() {\n\t\t\t\t$username = $this->input->post('username');\n\t\t\tif ($this->Blogger->checkField('username', $username) == false) {\n\t\t\t\t\t\t$this->form_validation->set_message('username_check', 'This username is already taken');\n\t\t\t\tif($this->input->post('test')) echo \"false\";\n\t\t\t\t\t\treturn false;\n\t\t\t}else { \n\t\t\t\t\tif($this->input->post('test')) echo \"true\";\t\t \n\t\t\t\t\treturn true;\n\t\t\t} \n\n\t\t}", "title": "" }, { "docid": "96123cef70a448bc3fe9686d5d6ae789", "score": "0.66337454", "text": "function check_username($username){\n require_once \"model/dbManager.php\";\n\n if(isset(select('username', 'users', array('username' => $username))[0]['username'])){\n return 'Please, try another username, this one is already signed up.';\n }\n\n $result = check_text_length($username, 2, 32);\n if($result !== true){return $result;}\n\n return true;\n}", "title": "" }, { "docid": "fd757120121e7d5a6daa64441e646255", "score": "0.6629987", "text": "public function _check_username($value)\n\t{\n\t $user = $this->_get_user_info();\n\t if (model('customer')->get_info_rule(array('username' => $value, 'user_id' => $user->id))) {\n\t $this->form_validation->set_message(__FUNCTION__, lang('notice_already_used'));\n\t return FALSE;\n\t }\n\t\n\t return TRUE;\n\t}", "title": "" }, { "docid": "96151d46c6ae2981820d11f6ba772b2d", "score": "0.6629497", "text": "public function check_username_exist($username){\n\t\t\t$this->form_validation->set_message('check_username_exist', 'That username is already taken. Please choose a diffrent one');\n\n\t\t\tif($this->user_model->check_username_exist($username)){\n\t\t\t\treturn true;\n\t\t\t} else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4c72cc71f41feae6cbc5e72b993836e9", "score": "0.6627095", "text": "function username_check( $user )\n\t{\n\t\t$this->db->where('username',$user);\n\t\t$result = $this->db->get('users');\n\t\tif( $result->num_rows() > 0 ) {\n\t\t\t$this->form_validation->set_message('username_check', 'This username is already in use');\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "30587ebfe29a67087597f175ff187aea", "score": "0.6623615", "text": "function sumo_verify_email_exist($email='')\n{\n\tGLOBAL $SUMO;\n\n\t$query1 = \"SELECT email FROM \".SUMO_TABLE_USERS.\"\n\t\t WHERE email='\".$email.\"'\";\n\t$query2 = \"SELECT email FROM \".SUMO_TABLE_USERS_TEMP.\"\n\t\t WHERE email='\".$email.\"'\";\n\n\t$rs1 = $SUMO['DB']->Execute($query1);\n\t$rs2 = $SUMO['DB']->Execute($query2);\n\n\t$num_users = ($rs1->PO_RecordCount() + $rs2->PO_RecordCount());\n\n\treturn ($num_users != 0) ? true : false;\n}", "title": "" }, { "docid": "8c06317686bed5c49652d1853e4f211f", "score": "0.66038316", "text": "protected function usernamevalidate() {\n\t\t$user = new User($this->db);\n\t\t\n\t\t$user->checkUsernameAvailability(); \n\t}", "title": "" }, { "docid": "e83a8aa4de53932a0704fcfb41d6622f", "score": "0.66022325", "text": "public function is_unique_email($email)\n\t{\t\t\n\t\t// get logged-in user id\n\t\t$user_id = $this->session->userdata('auth_user');\n\n\t\t// fire query\n\t\t$this->db->where('id != ',$user_id);\n\t\t$this->db->where('email',$email);\n $query = $this->db->get('users');\n\n if($query->num_rows() > 0) \n {\n \t$this->form_validation->set_message('is_unique_email', '%s is already in use.');\n return false;\n }\n\n return true;\t \n\t}", "title": "" }, { "docid": "fd5500df78f83db26cc2fdd3845f9b3d", "score": "0.65987027", "text": "public function checkDuplicateUsername($username){ \n try { \n $query = $this->link->query(\"SELECT * FROM user WHERE username = '$username'\");\n $row = $query->rowCount();\n if($row == 0){\n return false;\n }else{\n return true;\n }\n }catch(Exception $ex) {\n return $ex->getMessage();\n }\n }", "title": "" }, { "docid": "1e4936d395b0f5a89fa05c4cc98d035c", "score": "0.6596628", "text": "private function isUserExists($email) {\r\n $stmt = $this->conn->prepare(\"SELECT * from users WHERE username = ?\");\r\n $stmt->bind_param(\"s\",$email);\r\n $stmt->execute();\r\n $stmt->store_result();\r\n $num_rows = $stmt->num_rows;\r\n $stmt->close();\r\n return $num_rows > 0;\r\n }", "title": "" }, { "docid": "7757834578c6cb834d36327bcef2e093", "score": "0.65944606", "text": "function isDuplicateNickname($value, $empty, &$params, &$formvars) {\n\n if (empty($formvars['nickname'])) return false;\n\n $tmp = $this->user->getByNickname($formvars['nickname']);\n if ($tmp === false ) return true; // No duplicate found\n\n if($this->mode == 'edit') {\n $u = $this->user->getByID($this->users_id);\n if ($formvars['nickname'] == $u['nickname']) {\n // This is a user editing themseleves, this is OK\n return true;\n }\n }\n\n return false; // Fail\n\n }", "title": "" }, { "docid": "6beb32b438854d6f7dcdb490748085aa", "score": "0.6592937", "text": "function emailTaken($email){\r\n\t\t\tif(!get_magic_quotes_gpc()){\r\n\t\t\t\t$email = addslashes($email);\r\n\t\t\t}\r\n\t\t\t$q = sprintf(\"SELECT email FROM \".TBL_USERS.\" WHERE email = '%s'\",\r\n mysql_real_escape_string($email));\r\n\t\t\t$result = mysql_query($q, $this->connection);\r\n\t\t\treturn (mysql_num_rows($result) > 0);\r\n\t\t}", "title": "" }, { "docid": "ebc35626cba3620d8005a20e6937c0cf", "score": "0.65921754", "text": "function check_input($username, $password, $password_again, $email) {\n\t//if($password != $password_again || ! $username || ! $email) return false;\n\tif($password != $password_again || ! $username) return false;\n\treturn true;\n}", "title": "" }, { "docid": "a57dc1e047ef29c2e0a2e3a480f5ed68", "score": "0.65921235", "text": "public function check_username_exists($username)\n {\n // call message when false\n $this->form_validation->set_message('check_username_exists', 'Username pernah digunakan. Silahkan gunakan username berbeda');\n if ($this->M_doors->check_username_exists($username)) {\n return true;\n }else {\n return false;\n\t\t\t}\n\t\t\techo 'email';\n }", "title": "" }, { "docid": "816e10390ab83841b5b6f22440ebfa7d", "score": "0.6587473", "text": "public function email_is_unique()\n {\n $response = $response = $this->register();\n\n $response = $response = $this->register();\n\n $response->assertStatus(400);\n $response->assertJSON(['result' => 0]);\n $this->assertCount(1, User::all());\n }", "title": "" }, { "docid": "4d8bc8dfd87c4538a8d91078df93e333", "score": "0.658296", "text": "function emailExist ($email) {\n\t\t$email = addslashes ($email);\n\t\t$result = $this->genDB->query (\"SELECT username FROM \".TBL_USERS . \" WHERE email='$email'\");\n\t\tif ($this->genDB->num_rows ($result) != 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a3b914f75dfcbee71eaa7f7731d72c76", "score": "0.65800065", "text": "public function check_username_exists($username){\n\t\t$this->form_validation->set_message('check_username_exists', 'That username is taken. Please choose a different one');\n\t\tif($this->researcher_model->check_username_exists($username)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "defeaf2eb3422a8eab6815ffb7ecac1d", "score": "0.65772897", "text": "public function check_duplicate_user_name_edit($username, $username_edit) {\n $exists = $this->db->select('user_id')->where('user_name !=', $username_edit)->get_where('tms_users', array('user_name' => $username), 1)->num_rows();\n if ($exists) {\n return FALSE;\n }\n return TRUE;\n }", "title": "" }, { "docid": "34f66ebd530641507c80658c7dab1d77", "score": "0.6576302", "text": "public function test()\n\t{\n\t\t// Check if it passes email validation rules\n\t\tif ( !$this->isValid() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Make sure it isn't already in the database\n\t\tif ( !$this->isUnique( 'users', 'email', $this->value ) ) {\n\t\t\t$this->valid = false;\n\t\t\t$this->error = 'This email is already registered. Please try another.';\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// It's OK\n\t\treturn true;\n\t}", "title": "" }, { "docid": "07cbe6c646843f81d7edc577280c0c83", "score": "0.65633005", "text": "function checkemail($email)\n{\n //Database object\n global $user_exists_error;\n $obj = new Database;\n //write sql\n $sqlemail = \"SELECT * from user where email = '$email'\";\n //execute querry\n $user = $obj->query($sqlemail);\n\n //if the return table is empty\n if ($user && empty($obj->fetch()))\n return true;\n //registernewuser();\n else {\n $user_exists_error = \"We already have a user with this email\";\n return false;\n }\n}", "title": "" }, { "docid": "8672b7f97f35e794642d8b25e822f470", "score": "0.65632313", "text": "public function isUserExisted($email) {\r\r\n $result = mysql_query(\"SELECT client_id from oauth_clients WHERE client_id = '$email'\");\r\r\n $no_of_rows = mysql_num_rows($result);\r\r\n if ($no_of_rows > 0) {\r\r\n // user existed\r\r\n return true;\r\r\n } else {\r\r\n // user not existed\r\r\n return false;\r\r\n }\r\r\n }", "title": "" }, { "docid": "8f0bde12cfe82f877c9ce5f1a72adf0f", "score": "0.6562624", "text": "public function isUserExist($name, $email)\n {\n $query = $this->db->prepare(\"SELECT id FROM tbl_user WHERE email=:email OR name=:name\");\n $query->bindParam(\"email\", $email, PDO::PARAM_STR);\n $query->bindParam(\"name\", $name, PDO::PARAM_STR);\n $query->execute();\n\n return $query->rowCount() > 0;\n }", "title": "" }, { "docid": "aee644d36330c2786a6b05c73fa719b8", "score": "0.6561137", "text": "static function userexists($control) { \n // get all usernames \n $db_users = \\Nette\\Environment::getService('usersmanager');\n $users = $db_users->getUsers();\n \n $usernamesArray = array();\n foreach ($users as $user) {\n $usernamesArray[] = $user->username;\n }\n \n $text = $control->value;\n $text = trim($text);\n if ($text !== '') {\n if (in_array($text, $usernamesArray)) {\n return false;\n } else {\n return true;\n }\n } \n// return true;\n }", "title": "" }, { "docid": "3ee7fcd86a60af0ab665e13f4f950a3c", "score": "0.65564495", "text": "function email_exists($email) {\n $this->form_validation->set_message('email_exists', 'The Email-address is already in use. Please try another Email.');\n if ($this->m_user->isDuplicateEmail($email)) {\n return FALSE;\n } else {\n return TRUE;\n }\n }", "title": "" }, { "docid": "32bdb1ccfa6e7e0d3fe585610cfd4d9a", "score": "0.6556198", "text": "public function doesUserExist($username);", "title": "" }, { "docid": "496ce6492cbfa2c7b8ee0ab3677d8c07", "score": "0.65560365", "text": "public function isUserExisted($email) {\n $result = mysql_query(\"SELECT mail from personne WHERE mail = '$email'\");\n $no_of_rows = mysql_num_rows($result);\n if ($no_of_rows > 0) {\n // user existed \n return true;\n } else {\n // user not existed\n return false;\n }\n }", "title": "" }, { "docid": "5593db89754052a1b627e4b235360770", "score": "0.65546006", "text": "public function chk_user_exists($username){\n\t\t$user_chk_qry = \"SELECT user_id FROM yourls_users WHERE email='\".$username.\"'\";\n\t\t$result = mysql_query($user_chk_qry);\n\t\tif(mysql_num_rows($result) ==0){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "d6878925a9791b4c8d62201f86eef528", "score": "0.6551159", "text": "public static function checkUsername(Request $request){\n return $unique = User::isUnique($request->column,$request->value);\n }", "title": "" }, { "docid": "b878b93d995b35fa6b2746c65b15fb5a", "score": "0.65500766", "text": "public function check_register_email_exists_or_not($str) {\n $this->form_validation->set_message('check_register_email_exists_or_not', 'Email already exists.');\n $post_data = $_POST;\n $where_array = array('email' => $_POST['email'], 'user_type' => 'P', \"row_status\" => 1);\n if ($post_data['page_type'] == \"Edit\")\n $where_array['id != '] = $post_data['user_id'];\n $user_data = $this->auth_model->get_user_info($where_array);\n if (count($user_data) > 0)\n return false;\n return true;\n }", "title": "" }, { "docid": "84fffd29cdadaf85077d61f90bd5f633", "score": "0.6549527", "text": "public function testUsernameAlreadyTakenRegister()\n {\n factory(App\\User::class)->create([\n 'username' => 'ivonight',\n 'email' => '[email protected]',\n ]);\n $userData = [\n 'email' => '[email protected]',\n 'password' => 'essaEraAPeçaQueVcQueria',\n 'password_confirmation' => 'essaEraAPeçaQueVcQueria',\n 'username' => 'ivonight',\n 'description' => 'Ivonei',\n ];\n $responseData = [\n 'error' => 'USERNAME_ALREADY_TAKEN'\n ];\n $response = $this->json('POST', '/register', $userData);\n $response->assertResponseStatus(409);\n $response->seeJsonContains($responseData);\n }", "title": "" }, { "docid": "0f6e07845f4d44a12de0a4776999f69f", "score": "0.6547899", "text": "public function checkUser() {\r\n \t\r\n if (isset($_POST) && count($_POST) > 0) {\r\n \trequire_once(\"../model/classes.register.php\");\r\n $check = new Register();\r\n $check->setUserName($_POST [\"u_name\"]);\r\n $get=$check->checkUnique();\r\n \r\n if($get){\r\n echo \"User name already exists\";\r\n }\r\n else{\r\n echo \"<img src='http://localhost/Open/trunk/mvc/images/check.jpg' height='30px' width='30px'>\";\r\n }\r\n \r\n }\r\n }", "title": "" }, { "docid": "f9635c2d02f9d5067b53e108562d9ef9", "score": "0.6544237", "text": "private function userIsMember() {\n\t$checkEmailSql = \"SELECT email FROM CITIZEN WHERE email = '$this->email'\";\n\t$checkEmailQuery = new Query($checkEmailSql, $this->db->getConnectionID());\n\n\tif($checkEmailQuery->error()) {\n\t header('HTTP/1.1 500 Sorry. Try Again!');\n\t die();\n\t}\n\n\t//check if email exists in records\n\tif($checkEmailQuery->numRows() > 0) {\n\t header('HTTP/1.1 500 Such email is already in our database.');\n\t die();\n\t}\n }", "title": "" }, { "docid": "a2e0c596ab135c177bf1076e53e8b42c", "score": "0.6541184", "text": "function member_details_check() {\n //make sure no other account has same email or username\n $params['member_id'] = $this->_get_member_id();\n $params['email'] = $this->input('email');\n\n $sql1 = 'select * from members where email=:email and id!=:member_id';\n $rows1 = $this->model->query_bind($sql1, $params, 'object');\n\n if (count($rows1)>0) {\n $error_msg = 'The email address that you submitted is being used by another member.';\n return $error_msg;\n }\n\n unset($params['email']);\n $params['username'] = $this->input('username');\n\n $sql2 = 'select * from members where username=:username and id!=:member_id';\n $rows2 = $this->model->query_bind($sql2, $params, 'object');\n\n if (count($rows2)>0) {\n $error_msg = 'The username that you submitted is being used by another member.';\n return $error_msg;\n }\n\n return true;\n\n }", "title": "" }, { "docid": "b6a20188d9380dfdc144eaa35aca856f", "score": "0.6540569", "text": "public function userUniqueEmail($value){\n if ($this->Registration_model->userUniqueEmail($value)) {\n return TRUE;\n }else{\n $this->form_validation->set_message('userUniqueEmail', 'Unfortunately, the email-address is taken by someone!');\n return FALSE;\n }\n }", "title": "" }, { "docid": "48c7de09ae7cdcb95e0776944b69e292", "score": "0.65351576", "text": "function check_email($email){\n require_once \"model/dbManager.php\";\n\n // Check if email is already registered in DB.\n if(isset(select('email', 'users', array('email' => $email))[0]['email'])){\n return 'Please, try another email, this one is already signed up.';\n }\n return true;\n}", "title": "" }, { "docid": "30c6b5356a1b06eb99555578c6d12bd9", "score": "0.6528732", "text": "function chckusername($useremail, $userpass){\n $check = \"SELECT * FROM accounts WHERE email='$useremail'\";\n $check_q = runQuery($check); \n if (count($check_q) == 1) {\n chcklogin($useremail, $userpass);\n }\n else{\n echo \"<div id='loginmsg'>This email does not exist. Please try again or create an account.</div>\";\n }\n }", "title": "" }, { "docid": "9fecedd9e03fc16eba1f1fbfd0e793b8", "score": "0.6527476", "text": "public function usernameExists($username);", "title": "" }, { "docid": "b7f60c1b5ae19386a00ab956ebaa386d", "score": "0.6519723", "text": "private function __is_email_exists():bool\n {\n return\n $this->__is_exists(\n \"user\",\n [\n \"col\" => \"email\",\n \"ope\" => \"=\",\n \"target\" => $this->__requested_data[\"email\"]\n ]\n )\n ;\n }", "title": "" }, { "docid": "b58a1672c2ea6c2beb6a5cf29abe1ff5", "score": "0.6513849", "text": "public function isUsernameEmpty();", "title": "" }, { "docid": "1c0e11bb24508ddb49b194a2a3f0abc1", "score": "0.6511607", "text": "function check_exits_username()\n\t\t{\n\t\t\tglobal $db ;\n\t\t\t$username = FSInput::get(\"username\");\n\t\t\tif(!$username){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$sql = \" SELECT count(*) \n\t\t\t\t\tFROM fs_users \n\t\t\t\t\tWHERE \n\t\t\t\t\t\tusername = '$username'\n\t\t\t\t\t\";\n\t\t\t$db -> query($sql);\n\t\t\t$count = $db->getResult();\n\t\t\treturn $count;\n\t\t}", "title": "" }, { "docid": "a3d8d2187b8efca1119d1687283f3934", "score": "0.6504714", "text": "function is_unique_username($number) {\r\n\t\t\r\n\t\tif(!preg_match('/[A-Za-z0-9]+/i',$number)){\r\n\t\t\t\t$this->validation->set_message('is_unique_username', 'Username must only include numbers and letters but no other characters');\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->account_model->get_user('dealer_no', $number) == false) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t$this->validation->set_message('is_unique_username', 'This Username is already in use, please try with a different Username.');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7792402329a9347e0739493e9032d517", "score": "0.64976346", "text": "private function verify_username_uniqueness($username) {\n // If the username does not exist yet, we're golden\n return !$this->verify_username_exists($username);\n }", "title": "" } ]
76a0bb4c52c626be497bbb840aaa3129
/ Insert user data
[ { "docid": "ec3e19eba173b2c11acc55c47e3a24cd", "score": "0.6938896", "text": "public function insert($data){\n //add created and modified date if not exists\n if(!array_key_exists(\"created\", $data)){\n $data['created'] = date(\"Y-m-d H:i:s\");\n }\n if(!array_key_exists(\"modified\", $data)){\n $data['modified'] = date(\"Y-m-d H:i:s\");\n }\n \n //insert user data to users table\n $insert = $this->db->insert($this->userTbl, $data);\n \n //return the status\n return $insert?$this->db->insert_id():false;\n }", "title": "" } ]
[ { "docid": "946ea8c752fd3b217d59fce2760cd78c", "score": "0.82424796", "text": "private function insertData(){\n $un = $this->_username; $pw = $this->_password; $em = $this->_email;\n $ut = $this->_userType; $st = $this->_salt; $dt = $this->_date;\n $this->_dbObj->query_insert(\"INSERT INTO users (username, password, salt, email, userType, dateCreated) \".\n \"VALUES('$un','$pw','$st','$em', '$ut', '$dt')\");\n }", "title": "" }, { "docid": "244bf7f9ea0f22160488956ea2de1851", "score": "0.7605715", "text": "public function insertUser($data){\n $data = $this->handleCommonConstraints($data);\n return $this->create($data);\n }", "title": "" }, { "docid": "21d2cd4c8f5b1636a5d847233c2e308e", "score": "0.7447102", "text": "function add_user($data) {\n\t\t$this->db->insert('user', $data);\n\t}", "title": "" }, { "docid": "1df1c4a9c7576649caf615bb5ea6737f", "score": "0.72951543", "text": "public static function userAdd( $datas ) {}", "title": "" }, { "docid": "99d15882caf8ee4cfdc63afbf6d08894", "score": "0.7204372", "text": "public function insert_user($data){\n return $this->db->table('user')->insert($data);\n \n }", "title": "" }, { "docid": "2f0db3b372a1b21c821038220e4cff24", "score": "0.71799386", "text": "private function insert(){\n\t\t$db = getPDOInstance();\n\n\t\t$query = oci_parse($db, User::INSERT);\n\n\t\toci_bind_by_name($query, \":user_name\", $this->user_name);\n\t\toci_bind_by_name($query, \":class\", $this->class);\n\t\toci_bind_by_name($query, \":person_id\", $this->person_id);\n\t\toci_bind_by_name($query, \":password\", $this->password);\n\t\t\n\t\treturn @oci_execute($query);\n\t}", "title": "" }, { "docid": "b3519f2f820e925e0c2d0c123ee763aa", "score": "0.7147628", "text": "public function adddata()\n\n\t{\t\n\n\t\t$supllier = new User;\n\n\t\t$supllier->name = Input::get('name');\n\n\t\t$supplier->save();\n\n\t}", "title": "" }, { "docid": "67569c58b3684825b78ce2a1acdc49df", "score": "0.71165556", "text": "function insert_user($data)\n\t{\n\t\t$result = $this->db->query(\"INSERT INTO tb_user(id_karyawan, username, password_user, level, active)\n\t\t\t\t\t\t\t\t\tVALUES('\".$data['id_karyawan'].\"', '\".$data['username'].\"', MD5('\".$data['password_user'].\"'), '\".$data['level'].\"', '1')\");\n\t\treturn;\n\t}", "title": "" }, { "docid": "3516e46eb0ea0e15a5f6d5e65aaf4b7a", "score": "0.7112666", "text": "public function insert()\n\t\t{\n\t\t\t$sql = new Sql();\n\t\t\t/* \n\t\t\t * Utilisa de uma procedures nome:sp_usuarios_insert(:LOGIN,:PASSWORD)\n\t\t\t * pre definida no banco para devolver o id registrado apos o insert\n\t\t\t*/\n\t\t\t$result = $sql->select(\"CALL sp_usuarios_insert(:LOGIN, :PASSWORD)\",\n\t\t\t\tarray(\n\t\t\t\t\t':LOGIN' => $this->getDesLogin(),\n\t\t\t\t\t':PASSWORD' => $this->getDesSenha()\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif(count($result) > 0)\n\t\t\t{\n\t\t\t\t$this->setData($result[0]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0000433aee8f4f55e826e086a68814d9", "score": "0.7111563", "text": "public function saveUserInDatabase()\n {\n $conn = Utility::pdoConnect();\n\n $insert_user = $conn->prepare(\"INSERT INTO user (id, email, geslacht, leeftijdsgroep, naam, telefoon,\n medicatie, gezondheidsklachten, extra_info) \n VALUES(:id, :email, :sex, :age_range, :name, \n :phone_number, :medication, :health_issues, :extra_info)\");\n $insert_user->bindParam(':id', $this->user_id);\n $insert_user->bindParam(':email', $this->email);\n $insert_user->bindParam(':sex', $this->sex);\n $insert_user->bindParam(':age_range', $this->age_range);\n $insert_user->bindParam(':name', $this->name);\n $insert_user->bindParam(':phone_number', $this->phone_number);\n $insert_user->bindParam(':medication', $this->medication);\n $insert_user->bindParam(':health_issues', $this->health_issues);\n $insert_user->bindParam(':extra_info', $this->extra_info);\n $insert_user->execute();\n }", "title": "" }, { "docid": "d8054a09c463e138540d1fd69d9a277e", "score": "0.7097471", "text": "public function Insert()\n {\n $db = new Database();\n $db->Connect();\n\n $db->Run(\"INSERT INTO \". UWA_Config::$USERS_TABLE .\"( \n name, username, password, email, ip, last_action, display_name, display_pic)\n VALUES(:uname, :username, :password, :email, :ip, :last_action, :display_name, :display_pic)\",\n [\":uname\" => $this->Name,\n \":username\" => $this->Username,\n \":password\" => $this->Password,\n \":email\" => $this->Email,\n \":ip\" => $this->Ip,\n \":last_action\" => $this->LastAction,\n \":display_name\" => $this->DisplayName,\n \":display_pic\" => $this->DisplayPic]);\n\n $this->Id = $db->InsertId();\n\n $this->Address->UserId = $this->Id;\n $this->Role->UserId = $this->Id;\n $this->PhoneNumber->UserId = $this->Id;\n\n $this->PhoneNumber->Insert();\n $this->Address->Insert();\n $this->Role->Insert();\n }", "title": "" }, { "docid": "43c35f34d705c2e3591d916f7a6f5a1c", "score": "0.70933145", "text": "public function insert()\n\t{\n\t\t$statement = new ConnectionPDO();\n\n\t\t//CAll Procedure\n\t\t$sql = \"CALL sp_users_insert(:NAME, :LOGIN, :PASSWORD);\";\n\n\t\t$params = [\n\t\t\t'NAME' => $this->getName(),\n\t\t\t'LOGIN' => $this->getLogin(),\n\t\t\t'PASSWORD' => $this->getPassword()\n\t\t];\n\n\t\t$result = $statement->select($sql, $params);\n\n\t\tif (!isset($result[0] )) {\n\t\t\tthrow new Exception(\"Não foi possivel persistir dados do usuário!\", 1);\n\t\t}\n\n\t\t$row = $result[0];\n\n\t\t$this->setData($row);\t\n\t}", "title": "" }, { "docid": "71bfc03f1aafb11a25e1481849c1f765", "score": "0.708714", "text": "function insert_data($data)\n\t{\n //$this is for search in this project\n\t\t$this->db->insert(\"tbl_user\", $data);\n\t}", "title": "" }, { "docid": "3b7d9820d7b49aac3afc5861659de9cf", "score": "0.7073903", "text": "public function insertUser($data){\n \n return $this->db->insert('user_table',$data);\n \n }", "title": "" }, { "docid": "bd5563d8fd271edd7bae6eae8d61444f", "score": "0.7066791", "text": "public static function createData()\n {\n \\App\\Model\\User::query()->create([\n 'user_name' => 'admin',\n 'email' => '[email protected]',\n 'password' => md5('123456'),\n 'email_verify_date' => Carbon\\Carbon::now(),\n 'status' => 0\n ]);\n }", "title": "" }, { "docid": "4f3f7fbc08c22c87d818037b77450f71", "score": "0.70371443", "text": "public function insert_into_db( array $data ):int {\n if ( !isset( $data['user_id'] ) ||\n !isset( $data['first_name'] ) ||\n !isset( $data['last_name'] )\n ) {\n dump($data);\n die( 'Entity->insert_into_db requires user_id, first_name, last_name' );\n }\n \n $title = community_directory_generate_display_name_from_user_name(\n $data['first_name'], $data['last_name']\n );\n\n $meta = array();\n \n if ( isset( $data['location_id'] ) ||\n isset( $data['location_display_name'] )\n ) {\n $meta[self::$post_meta_loc_id] = $data['location_id'];\n $meta[self::$post_meta_loc_name] = $data['location_display_name'];\n }\n\n $args = array(\n 'post_author' => $data['user_id'],\n 'post_title' => $title,\n 'post_name' => strtolower( $title ),\n 'post_type' => self::$post_type,\n 'meta_input' => $meta,\n );\n\n if ( isset( $data['location_post_id'] ) )\n $args['post_parent'] = $data['location_post_id'];\n \n $entity_post_id = wp_insert_post( $args );\n\n // Save user meta to ACF\n do_action( 'community_directory_acf_initiate_entity', array(\n 'entity_id' => $entity_post_id,\n 'first_name' => $data['first_name'],\n 'last_name' => $data['last_name'],\n ) );\n\n return $entity_post_id;\n }", "title": "" }, { "docid": "ae580fef9d87b60487cb3620386df55e", "score": "0.7032785", "text": "public function InsertUser(){\n\t\tinclude 'connect.php';\n\t\t$req = $bdd->prepare(\"INSERT into user(FullName,Avatar,FacebookId,Email,Password,Notification,Status) VALUES(:FullName,:Avatar,:FacebookId,:Email,:Password,:Notification,'enable') \");\n\t\t$req->execute(array(\n\t\t\t\"FullName\"=>$this->getFullName(),\n\t\t\t\"Avatar\"=>$this->getAvatar(),\n\t\t\t\"FacebookId\"=>$this->getFacebookId(),\n\t\t\t\"Email\"=>$this->getEmail(),\n\t\t\t\"Password\"=>$this->getPassword(),\n\t\t\t\"Notification\"=>0\n\t\t));\t\n\t\techo \"success\";\n\t}", "title": "" }, { "docid": "61eed4cb52c45a9b4d71055575f9b692", "score": "0.70162594", "text": "public function createNewUser(array $data);", "title": "" }, { "docid": "2691219f28430b0705c5300207f87aa3", "score": "0.7010658", "text": "function insertUser($data)\n {\n return $this->db->insert('user', $data);\n }", "title": "" }, { "docid": "8f6c09837e42e2772da7bb7bc9807380", "score": "0.70071214", "text": "public function user_data_insert($data)\n {\n global $kernel;\n $helper = $kernel->getContainer()->get('app.global_helper_service');\n\n $password = $helper->encodePassword('UserPass', $data->password);\n $activeCode = md5($data->email.time());\n\n $entity = new UsersEntity();\n $entity->setFullname($helper->cleanDataInput($data->fullname));\n $entity->setEmail($helper->cleanDataInput($data->email));\n $entity->setPassword($password);\n $entity->setPhone($helper->cleanDataInput($data->phone));\n $entity->setAddress($helper->cleanDataInput($data->address));\n $entity->setGender($helper->cleanIntInput($data->gender));\n $entity->setStatus(0);\n $entity->setactiveCode($activeCode);\n $entity->setactiveDate(0);\n $entity->setCreatedDate(time());\n\n $em = $this->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $entity->getID();\n }", "title": "" }, { "docid": "c727996ba53095cd97cc4afea54e84fb", "score": "0.6997854", "text": "public function insert_user($data)\r\n {\r\n $this->db->insert('customers',$data);\r\n }", "title": "" }, { "docid": "9bf5277675c067898a81d7f7590fe920", "score": "0.69260466", "text": "function insert_user_information($first_name,$last_name,$email,$password,$user_type){\n\t\techo \"<br> insert user info\";\n\t\t$user_status=\"new\";\n\t\t$active_status=\"active\";\n\t\t$database=new Database();\n\t\t$sql=\"INSERT INTO `user` (`id`, `first_name`, `last_name`, `email`, `password`, `user_type`,`user_status`, `active_status`) VALUES (NULL, '$first_name', '$last_name', '$email', '$password', '$user_type', '$user_status','$active_status')\";\n\t\t$stmt=$database->connect()->prepare($sql);\n\t\t$stmt->execute();\n\t\t\n\t}", "title": "" }, { "docid": "651ab04cf99f150176f4fc07cdacda48", "score": "0.692018", "text": "public function create($user_input)\n {\n $this->db->insert($this->db->user_table, $user_input);\n }", "title": "" }, { "docid": "2d4b8c4f34c88025a9ef2030e7aa56a3", "score": "0.6901323", "text": "public function addUser($data)\n {\n $this->db->insert('tbl_users', $data);\n }", "title": "" }, { "docid": "3dbcac19625689bb84907d52a2dc6e4b", "score": "0.6880363", "text": "function enterUserDetails ($fname, $lname, $dob, $gender, $mobile, $email, $id, $user, $pswd) {\n\t $conn = new mysqli(DB_HOST, DB_USER, DB_PSWD, DB_NAME);\n\t $query = \"INSERT INTO logbookUsers (driver_id, fname, lname, dob, gender, email, phone, username, password)\n\t VALUES ('$id', '$fname', '$lname', '$dob', '$gender', '$email', '$mobile', '$user', '$pswd')\";\n\t $conn->query($query);\n\t $conn->close();\n }", "title": "" }, { "docid": "eafab3f1f6f06324187803a51fe24c9c", "score": "0.6878292", "text": "public function insert(){\n\t\t\n\t\t$token = 'sadkjeawhijwajdilhasilfjaehioryweapirjpway9uprpjrpewahjrej23136513123q08192383431';\n\t\t$token = str_shuffle($token);\n\t\t$token= substr($token,0,10);\n\t\t$hash = password_hash($this->user_password,PASSWORD_DEFAULT);\n\t\t$conn = new PDO(DB_DSN,DB_USERNAME,DB_PASSWORD);\n\t\t$sql = \"INSERT INTO users(users.user_name,users.user_contact,users.user_email_address,users.user_password,users.user_lvl,users.user_joined,users.user_unique)VALUES(:user_name,:user_contact,:user_email_address,:user_password,:user_lvl,NOW(),:user_unique)\";\n\t\t$stmt = $conn->prepare($sql);\n\t\t$stmt->bindValue(\":user_name\",$this->user_name,PDO::PARAM_STR);\n\t\t$stmt->bindValue(\":user_contact\",$this->user_contact,PDO::PARAM_STR);\n\t\t$stmt->bindValue(\":user_email_address\",$this->user_email_address,PDO::PARAM_STR);\n\t\t$stmt->bindValue(\":user_password\",$hash,PDO::PARAM_STR);\n\t\t$stmt->bindValue(\":user_lvl\",$this->user_lvl,PDO::PARAM_INT);\n\t\t$stmt->bindValue(\":user_unique\",$token,PDO::PARAM_STR);\n\t\t$stmt->execute();\n\t\t$this->user_id = $conn->lastInsertId();\n\t\t$conn = null;\n\t}", "title": "" }, { "docid": "1a74c9871a9cf55afbbe1a1d61c1c30f", "score": "0.68755186", "text": "protected function insertUser($data) {\n $sql = \"INSERT INTO users (uid, nick, email) VALUES(:uid, :nick, :email) \" .\n \"ON DUPLICATE KEY UPDATE email=:email\";\n\n try {\n $sth = $this->conn->prepare($sql);\n\n $nickname = isset($data['sso_nickname']) ? $data['sso_nickname'] : $data['user_name'];\n\n $sth->execute(array(':uid' => $data['user_name'], ':nick' => $nickname, ':email' => $data['sso_email']));\n $sth->fetchAll();\n } catch (PDOException $e) {\n die('unable to insert user in the db');\n }\n }", "title": "" }, { "docid": "a0e75944720a6e29e965a9cd1d5ff243", "score": "0.68670446", "text": "function storeUser()\n {\n global $TYPO3_DB;\n\n // some additional values:\n $this->fe_usersValues['pid'] = $this->conf['usersPid'];\n\n // if there is no username defined in constants, set email as username (if existent), else Facebook id\n if (!isset($this->fe_usersValues['username'])) $this->fe_usersValues['username'] = $this->fe_usersValues['mail'] ? $this->fe_usersValues['mail'] : $this->facebookUserId;\n $this->fe_usersValues['tstamp'] = time();\n $this->fe_usersValues['usergroup'] = $this->conf['userGroup'];\n\n $where = 'tx_facebook2t3_id=' . $TYPO3_DB->quoteStr($this->fe_usersValues['tx_facebook2t3_id'], $this->tableName);\n\n $result = $TYPO3_DB->exec_SELECTquery('uid', $this->tableName, $where, '', '', '');\n if ($TYPO3_DB->sql_num_rows($result) > 0) $TYPO3_DB->exec_UPDATEquery($this->tableName, $where, $this->fe_usersValues);\n else\n {\n $this->fe_usersValues['password'] = md5($this->fe_usersValues['name'] . time());\n $this->fe_usersValues['crdate'] = time();\n $TYPO3_DB->exec_INSERTquery($this->tableName, $this->fe_usersValues);\n }\n\n $this->loginUser();\n }", "title": "" }, { "docid": "25ae9c5351b86dfde489cddc25514a94", "score": "0.68596953", "text": "public function registerUser()\n {\n\n $this->app->db->table($this->_table)->data([\n 'first_name' => cleanInput($this->app->request->post('first_name')),\n 'last_name' => cleanInput($this->app->request->post('last_name')),\n 'email' => cleanInput($this->app->request->post('email')),\n 'password' => password_hash(cleanInput($this->app->request->post('password')) , PASSWORD_DEFAULT),\n 'birthday' => cleanInput(strtotime($this->app->request->post('birthday'))),\n 'users_group_id'=> cleanInput($this->app->request->post('user_group')),\n 'gender' => cleanInput($this->app->request->post('gender')),\n 'status' => cleanInput($this->app->request->post('status')),\n 'created' => time(),\n 'image' => $this->uploadImage(),\n 'code' => generateCode(),\n 'ip' => $this->app->request->getIP(),\n 'confirm_id' => uniqueCode(),\n ])->insert();\n }", "title": "" }, { "docid": "53ec060e09adb042164149e886fb0125", "score": "0.6836022", "text": "public function insert($userInfo){\r\n\t\t$sql = 'INSERT INTO user_info (username, password, account_type) VALUES (?, ?, ?)';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\t\n\t\t$sqlQuery->set($userInfo->username);\n\t\t$sqlQuery->set($userInfo->password);\n\t\t$sqlQuery->set($userInfo->accountType);\n\r\n\t\t$id = $this->executeInsert($sqlQuery);\t\r\n\t\t$userInfo->id = $id;\r\n\t\treturn $id;\r\n\t}", "title": "" }, { "docid": "419a8a5b7422e7fc487c8b15c2138107", "score": "0.6831114", "text": "abstract public function insert($data);", "title": "" }, { "docid": "3e0ba8323b42e98565124d77571db2b6", "score": "0.68267107", "text": "public function enterData($user_name,$key){\r\n\r\n $this->connection=new Connection();\r\n $conn =$this->connection->createConnection(\"user_information\");\r\n\r\n $query=\"INSERT INTO 'gcm_info'('index_number', 'key') VALUES ('$user_name','$key')\";\r\n\r\n $result=mysqli_query($conn,$query);\r\n \r\n $this->connection->endConnection($conn);\r\n }", "title": "" }, { "docid": "8d93733029c3a1507354377647fc20d3", "score": "0.6825857", "text": "public function run()\n {\n User::insert([\n \t['name' => 'client account', 'usertype_id' => '1', 'password' => 'asdf1234*'],\n \t['name' => 'Employee account', 'usertype_id' => '2', 'password' => 'asdf1234*'],\n \t['name' => 'Owner account', 'usertype_id' => '3', 'password' => 'asdf1234*'],\n \t['name' => 'Super User account', 'usertype_id' => '4', 'password' => 'asdf1234*']\n ]);\n }", "title": "" }, { "docid": "dcec1dba975d5f32e4fd45c88274d186", "score": "0.6820637", "text": "public function createUser( $data ){\n\t\tSWPLogManager::log(\"Create new user\",array(\"data\"=>$data),TLogger::INFO,$this,\"createUser\",\"SWP\");\n\t\tif( isset($data['user_id'] ) ){\n\t\t\textract( $data);\n\t\t\t\n\t\t\t//Checking the role passed by the bss and placeing the respective value in the user_has_roles table\n\t\t\tif( empty( $role ) ){\n\t\t\t\t$role =3; // deafult student\n\t\t\t}else{\n\t\t\t\tif( $role =='instructor' ){\n\t\t\t\t\t$role =24; //instructur role\n\t\t\t\t}else if($role =='Creator' || $role =='creator'){ //201405300834\n\t\t\t\t\t$role =35;\n\t\t\t\t}else{\n\t\t\t\t\t$role =3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!($user = UserRecord::finder()->findByUsername($data['user_id']))) {\n\t\t\t\t$user = new UserRecord;\t\t\t\t\n\t\t\t\t$user->Username = $data['user_id'];\n\t\t\t\t$user->Name = $data['user_name'];\n\t\t\t\t$user->Email = $email;\n\t\t\t\tif ($zoneids !== null)\n\t\t\t\t\t$user->zoneIDs = $zoneids;\n\t\t\t\t$user->Password = '';\n\t\t\t\t$user->Created = time();\n\t\t\t\t$user->Updated = time();\n\t\t\t\t$user->LastDate = time();\n\t\t\t\t$user->LastIP = Prado::getApplication()->Request->UserHostAddress;\n\t\t\t\t$user->setUpdateRoles(true);\n\t\t\t\t$user->rolesAsList = array($role);\n\t\t\t\t$user->photo = ( empty( $photo) ? './images/noimage.png' : $photo );\n\t\t\t\t$company_id = $data['company_id'];\n\t\t\t\tif($company_id != 0) {\n\t\t\t\t $user->company_id = $company_id;\n\t\t\t\t}\n\t\t\t\t$user->company_level = $data['company_level'];\n\t\t\t\t\n\t\t\t\t// Here we are checking for the existence of new users time zone value, if not exist\n\t\t\t\t// then inserting the server time zone value as the users time zone.\n\t\t\t\t\n\t\t\t\tif ( empty( $timezone) ){\n\t\t\t\t\n\t\t\t\t\t// Get the server time zone\n\t\t\t\t\t$dt = new DateTime();\n\t\t\t\t\t$timezone = $dt->getTimeZone()->getName();\n\t\t\t\t}\n\t\t\t\t$user->timezone = $timezone;\n\t\t\t\tSWPLogManager::log(\"New user object\",$user,TLogger::DEBUG,$this,\"createUser\",\"SWP\");\n\t\t\t\t$user->save();\n\t\t\t\t$this->createUsetSettings($user->Uid);\n\t\t\t\tSWPLogManager::log(\"Returns when user created\",array('success'=>true ,'Message'=> ' User created sucessfully '),TLogger::INFO,$this,\"createUser\",\"SWP\");\n\t\t\t\treturn array('success'=>true ,'Message'=> ' User created sucessfully ');\n\t\t\n\t\t\t}else{\n\t\t\t\tSWPLogManager::log(\"Returns if user already exist\",array('success'=>false ,'Message'=> ' user Already exists '),TLogger::INFO,$this,\"createUser\",\"SWP\");\n\t\t\t\treturn array('success'=>false ,'Message'=> ' user Already exists ');\n\t\t\t}\n\t\t\t\t\n\t\t}else{\n\t\t\tSWPLogManager::log(\"Returns if user id does not exist\",array('success'=>false ,'Message'=> ' user_id is mandatory '),TLogger::INFO,$this,\"createUser\",\"SWP\");\t\n\t\t\treturn array('success'=>false ,'Message'=> 'user_id is mandatory');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c38eaac57748be27801188c814976c21", "score": "0.68190527", "text": "public function insertUser(array $data): int;", "title": "" }, { "docid": "c6a9f40055711ef3290e212aad37ce2b", "score": "0.68174726", "text": "public function insert_values()\n {\n\n $firstname = readline(\"Enter your firstname \");\n $name = readline(\"Enter your Lastname \");\n $this->firstname = $firstname;\n $this->name = $name;\n if (file_exists($this->save)) {\n $json_already = file_get_contents($this->save);\n }\n $json = json_decode($json_already);\n\n $array[] = array(\n\n 'firstname' => $this->firstname,\n 'name' => $this->name\n\n );\n\n $json[] = $array;\n $json_decoded = json_encode($json);\n\n file_put_contents($this->save, $json_decoded);\n echo \"Registerd new user \". $this->firstname;\n }", "title": "" }, { "docid": "5a3bd1e227fc3a771d5e2de088acfd99", "score": "0.6816808", "text": "public function insert($user){\n //Connecting to database\n $this->connection = DBConnection::connect();\n if($this->connection!=null){\n //Prepare and bind\n $stmt = $this->connection->prepare(\"INSERT INTO users(name, nickname, pwd, email) VALUES (?,?,?,?)\");\n $stmt->bind_param(\"ssss\", $n, $nn, $pwd, $e);\n \n //Set and execute\n //user ID is auto_increment, so I don't need to add it here\n $n = $user->getName();\n $nn = $user->getNickname();\n $pwd = $user->getPassword();\n $e = $user->getEmail();\n $stmt->execute();\n\n echo \"Added successfully! <br/>\";\n $stmt->close();\n $this->connection->close();\n }else{\n echo \"ERROR to connect to database\";\n }\n }", "title": "" }, { "docid": "67951e8a585ee32aabfd30cfcfbe8efb", "score": "0.68154156", "text": "public function add_user($user_data){\n $data = array(\n 'first_name' => $user_data['first_name'],\n 'surname' => $user_data['surname'], \n 'username' => $user_data['username'], \n 'password' => $user_data['password'],\n 'email' => $user_data['email'],\n 'type' => $user_data['type']\n );\n\n $this->db->insert('users', $data);\n }", "title": "" }, { "docid": "19e4cc75b5f7e1b862dd103dc8cc87db", "score": "0.6811482", "text": "function insert_user($user_name, $user_password, $user_type)\n{\n\tif(is_user_exist($user_name))\n\t{\n\t\treturn \"ERROR_USER_EXIST\";\n\t}\n\t$hash_user_password=md5($user_password);\n\t\n\t$sql= \"INSERT INTO users(user_name,user_password,user_type) VALUES ('$user_name', '$hash_user_password', '$user_type')\";\n\t\n\tinsert_through_sqlCommand($sql);\n\n}", "title": "" }, { "docid": "f94eff31cfe0aeef3578f649d1b1831d", "score": "0.6811219", "text": "public function save()\n {\n $user = $this->valores();\n unset($user['idUser']);\n if (empty($this->idUser)) {\n $this->insert($user);\n $this->idUser = self::$conn->lastInsertId();\n } else {\n $this->update($this->idUser, $user);\n }\n }", "title": "" }, { "docid": "da6622de2523e54058a9d394e36fdce9", "score": "0.677827", "text": "public function add($data){\n\t\t$this->db->insert(\"users\",$data); \n\t}", "title": "" }, { "docid": "8331c812ea8ef68b66efc3e3166edeea", "score": "0.67760396", "text": "public function run()\n {\n DB::table('user_data')->insert(['first_name' => 'elif', 'last_name' => 'tam',\n 'user_photo_path' => 'http://placeimg.com/640/480', 'id_number' => '42876543189',\n 'uuid' => \\Faker\\Provider\\Uuid::uuid()]);\n }", "title": "" }, { "docid": "36825e46d5954718143c190298da9c8e", "score": "0.6762974", "text": "public function addUser($user_data){\n \treturn $this->insert($this->_table,$user_data);\n }", "title": "" }, { "docid": "170e36d6e787766112ce6e98b93b1ea8", "score": "0.67436355", "text": "function insert_user_data($con, $username, $password, $email, $rank)\n\t{\n\t\t$query = \"INSERT INTO users (username, password, email, rank) VALUES(\\\"$username\\\", \\\"$password\\\", \\\"$email\\\", \\\"$rank\\\");\";\n\t\t$result = mysql_query($query, $con) or die(mysql_error());\n\t\tif($result) return \"Success\";\n\t\telse return \"Fail\";\n\t}", "title": "" }, { "docid": "67e3298b53fdcdcd2413bc2933a8196c", "score": "0.6741827", "text": "public function insert_new_user(){\n \n $data = array(\n 'K_ID_DOCUMENT' => $this->input->post('K_ID_DOCUMENT'),\n 'N_NAME' => $this->input->post('N_NAME'),\n 'N_LAST_NAME' => $this->input->post('N_LAST_NAME'),\n 'D_START_DAY' => $this->input->post('D_START_DAY'),\n 'D_END_DAY' => $this->input->post('D_END_DAY'),\n 'I_TIME_WORKED' => $this->input->post('I_TIME_WORKED'),\n 'D_TRIAL_PERIOD' => $this->input->post('D_TRIAL_PERIOD'),\n 'K_ID_POSITION' => $this->input->post('K_ID_POSITION'),\n 'K_ID_PROJECT' => $this->input->post('K_ID_PROJECT'),\n 'I_STATUS' => 1,\n 'K_ID_ROLE' => 2 \n );\n\n $this->Dao_user_model->new_person($data);\n $this->v_modulo_person();\n }", "title": "" }, { "docid": "4c8e21a15abe518f73178f00797b5251", "score": "0.6740169", "text": "public static function store($userData)\n\t{\n\t\treturn DB::table('users')->insert($userData);\n\t}", "title": "" }, { "docid": "6545b97e7704e02ff8b101f106c56198", "score": "0.6740152", "text": "function addUserToDatabase()\n{\n $forename = $_POST['forename'];\n $surname = $_POST['surname'];\n $username = $_POST['username'];\n\n $sql = \"INSERT INTO users (userForename, userSurname, username, userPassword, userType, userActive)\r\n\t\t\tVALUES ('$forename', '$surname', '$username', '$username', 'student', 1)\";\n doSQL($sql);\n $studentID = getStudentID();\n}", "title": "" }, { "docid": "7c7beaf58c7bf264049b8d2429adce98", "score": "0.673953", "text": "public function addUser() {\n $sql = 'insert into user(username, password, level, gender, email, tel, birthday, address, avatar) values(\"' .$this->username. '\", \"' .$this->password. '\", ' .$this->level. ', ' .$this->gender. ', \"' .$this->email. '\", \"' .$this->tel. '\", \"' .$this->birthday. '\", \"' .$this->address. '\", \"' .$this->avatar. '\")';\n $this->query($sql);\n }", "title": "" }, { "docid": "d2db438b98b790d03715ac5691f8f84f", "score": "0.6736506", "text": "function insert_user($data = array())\n {\n $this->db->insert($this->table,$data);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "7cffa4836842045ef56d27d2415c0d72", "score": "0.67263484", "text": "public function create() {\n /*$id = json_decode($_POST['id']);\n $name = json_decode($_POST['name']);\n $usr = User();\n $usr->id = $id;\n $usr->name = $name;\n $usr->save();*/\n }", "title": "" }, { "docid": "7cffa4836842045ef56d27d2415c0d72", "score": "0.67263484", "text": "public function create() {\n /*$id = json_decode($_POST['id']);\n $name = json_decode($_POST['name']);\n $usr = User();\n $usr->id = $id;\n $usr->name = $name;\n $usr->save();*/\n }", "title": "" }, { "docid": "8f687dae6bb6c4e0e90c7aed96f27026", "score": "0.672343", "text": "public function run()\n {\n DB::table('tipo_users')->insert([\n \t'tipo_user'\t=> 'company' \n \t]);\n }", "title": "" }, { "docid": "8e782b4c2900960194d849061b67f924", "score": "0.6718727", "text": "public function insert() {\n $conn = parent::connect();\n $sql = \"INSERT INTO \" . TBL_MEMBERS . \" (\n username,\n password,\n firstName,\n lastName,\n joinDate,\n gender,\n favoriteActivity,\n emailAddress,\n otherInterests\n ) VALUES (\n :username,\n password(:password),\n :firstName,\n :lastName,\n :joinDate,\n :gender,\n :favoriteActivity,\n :emailAddress,\n :otherInterests\n )\";\n // bind values and handle any errors encountered\n try {\n $st = $conn->prepare( $sql );\n $st->bindValue( \":username\", $this->data[\"username\"], PDO::PARAM_STR );\n $st->bindValue( \":password\", $this->data[\"password\"], PDO::PARAM_STR );\n $st->bindValue( \":firstName\", $this->data[\"firstName\"], PDO::PARAM_STR );\n $st->bindValue( \":lastName\", $this->data[\"lastName\"], PDO::PARAM_STR );\n $st->bindValue( \":joinDate\", $this->data[\"joinDate\"], PDO::PARAM_STR );\n $st->bindValue( \":gender\", $this->data[\"gender\"], PDO::PARAM_STR );\n $st->bindValue( \":favoriteActivity\", $this->data[\"favoriteActivity\"], PDO::PARAM_STR );\n $st->bindValue( \":emailAddress\", $this->data[\"emailAddress\"], PDO::PARAM_STR );\n $st->bindValue( \":otherInterests\", $this->data[\"otherInterests\"], PDO::PARAM_STR );\n $st->execute();\n parent::disconnect( $conn );\n } catch ( PDOException $e ) {\n parent::disconnect( $conn );\n die( \"Query failed: \" . $e->getMessage() );\n }\n }", "title": "" }, { "docid": "7287f9aa2453fe0a78116c36858182ba", "score": "0.67144156", "text": "public function insertNewUser(){\n //first get all the value of the input from \n //views\n $username = $this->input->post('username');\n $password = $this->input->post('password');\n\n //create array from the obtained data\n $data_array = array(\n 'customer_username' => $username,\n 'customer_password' => $password,\n\n );\n\n //insert to the database\n $this->db->insert('customer_tb',$data_array);\n }", "title": "" }, { "docid": "b1589eacb96bfe3487582eef95cddb5c", "score": "0.6698549", "text": "public function create_user($data = array()) {\n \n //insert user data to users table\n $insert = $this->db->insert($this->table, $data);\n //return the status\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "b25a2178d11d544d2453b7243db2894e", "score": "0.669292", "text": "public function insert()\n\t{\n\t\t/** to get data from url*/\n\t\t$params = Input::all();\n\t\t/** Data from query string */\n\t\t$emailId = $params['emailId'];\n\t\t/** Data for user as array*/\n\t\t$userData = array( 'name'=>'Test Name','email'=>$emailId);\n\t\t/** used to insert data into user table*/\n\t\tUser::create($userData);\n\t\t/** Returning data as JSON*/\n\t\treturn Response::json($userData,200);\n\t}", "title": "" }, { "docid": "7cd3497ed0bcc011bf45acc76991812e", "score": "0.667251", "text": "public function insert($data = array()) {\n //add created and modified data if not included\n if(!array_key_exists(\"created\", $data)){\n $data['created'] = date(\"Y-m-d H:i:s\");\n }\n if(!array_key_exists(\"modified\", $data)){\n $data['modified'] = date(\"Y-m-d H:i:s\");\n }\n \n //insert user data to users table\n $insert = $this->db->insert($this->userTbl, $data);\n \n //return the status\n if($insert){\n return $this->db->insert_id();;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "823aba81cf74c093da0407fb50c5dff0", "score": "0.66720647", "text": "public function preInsert()\n {\n $user = Registry::getUser();\n $this->userId = $user->id;\n $this->dateInsert = date(\"Y-m-d H:i:s\");\n }", "title": "" }, { "docid": "f6b896b4a1bb90bb022fc8f5ae4631a7", "score": "0.66714406", "text": "public function insertIntoUserActivityInfo($userInfo) {\r\n $user_id = $userInfo->getUserIdInfo();\r\n $objUserActivityInfo['user_id'] = $user_id['id'];\r\n $this->db->Fields($objUserActivityInfo);\r\n $this->db->From(\"user_activity_info\");\r\n $this->db->Insert();\r\n }", "title": "" }, { "docid": "366fd8ee4145df866bd06dcf63353e27", "score": "0.66669804", "text": "function register_user($register_data) {\n\t$fields = implode(', ', array_keys($register_data));\n\t$placeholders = ':' . implode(', :', array_keys($register_data));\n\n foreach ($register_data as $key => $val) {\n $register_data[':'.$key] = $val;\n unset($register_data[$key]);\n }\n \n\t//insert the array of info into server table gj_users\n\t$stmt = $GLOBALS['gjdb']->prepare(\"INSERT INTO gj_users ($fields) VALUES ($placeholders)\");\n foreach($register_data as $key=>&$value) {\n $stmt->bindParam($key, $value, PDO::PARAM_STR);\n }\n $stmt->execute();\n}", "title": "" }, { "docid": "affc830b9df596f2f0221fe2e80043f9", "score": "0.6660951", "text": "function agregarRegistro($user) {\n $con= new MySQL();\n $res= $user->retrieve();\n $query = \"('\".$res[0].\"', '\".$res[1].\"')\";\n $con->insert(\"humans (name, password)\", $query); \n $con->close(); \n }", "title": "" }, { "docid": "129e2f1e5f9639627b839c5ada5fcfd8", "score": "0.66498214", "text": "function insert_user()\n\t{\n\t global $connection;\n\t\t$user_ID = $_POST['user_ID'];\n\t $displayname=$_POST['displayname'];\n\t $profilepic=$_POST['profilepic'];\n\t\t$admin=$_POST['admin'];\n\n\t $query=$connection->prepare('INSERT INTO users(user_ID, displayname, profilepic, admin) VALUES (:user_ID, :displayname, :profilepic, :admin)');\n\t\t$query->bindParam(':user_ID',$user_ID);\n\t $query->bindParam(':displayname',$displayname);\n\t $query->bindParam(':profilepic',$profilepic);\n\t\t$query->bindParam(':admin',$admin);\n\n\t if($query->execute()){\n\t $response=array('info' =>'user added.');\n\t }\n\t else{\n\t $response=array('info' =>'Addition failed, please try again.');\n\t }\n\n\t header('Content-Type: application/json');\n\t echo json_encode($response);\n\t}", "title": "" }, { "docid": "a2098962b98b5bfdeaf0cb3e5322bc39", "score": "0.66482115", "text": "public function createUser($user_info);", "title": "" }, { "docid": "5a78126e1f68f75f02adcc0ee0d0cb57", "score": "0.66307086", "text": "public function insert() {\n $conexion = StorianDB::connectDB();\n $insercion = \"INSERT INTO `Storian`.`usuario` (`nombreUser`, `email`, `password`, `lugarNacimiento`, `fechNac`, `fechAlta`) VALUES ('\" . $this->nombreUser . \"','\" . $this->email . \"', '\" . $this->password . \"','\" . $this->lugarNac . \"','\" . $this->fechaNac . \"',CURRENT_TIMESTAMP);\";\n $conexion->exec($insercion);\n }", "title": "" }, { "docid": "bf8d4b6d209544319880ef6c5bf0c872", "score": "0.6630146", "text": "function newUser($data){\n\n try{\n $base = Connector::getDatabase();\n\n $first = $data['first_name'];\n $last = $data['last_name'];\n $email = $data['email'];\n $pass = $data['password'];\n\n\tif(isset($data['sales'])){\n\t\t$sales = 'SALES';\n\t}\n\telse{\n\t\t$sales = 'USER';\n\t}\n\n $sql = \"INSERT INTO user (\n first_name,\n last_name,\n email,\n password,\n\t\t role\n ) VALUES (\n '$first',\n '$last',\n '$email',\n '$pass',\n\t\t '$sales');\";\n $stmt = $base->prepare($sql);\n $stmt->execute();\n\n $sql = \"SELECT UID FROM user WHERE email = '$email';\";\n $stmt = $base->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetch();\n return $result['UID'];\n }catch(Exception $e){\n return $e;\n }\n}", "title": "" }, { "docid": "0e9f93736a1d821dcc704fc8b2f18b48", "score": "0.6625983", "text": "function createUser($db, $userData, $geoClass)\n {\n $userData[\"skola_GPS\"] = $geoClass->getGeoJson($userData[\"skola_adresa\"]);\n\n $userData[\"bydlisko_GPS\"] = $geoClass->getGeoJson($userData[\"bydlisko_adresa\"].\", \".$userData[\"bydlisko\"]);\n\n $sql = \"INSERT INTO members (password, email, created, personType, active, resetToken, resetComplete)\n VALUES (\n '\" . $userData[\"password\"] . \"', '\" . $userData[\"email\"] . \"', \n '\" . date(\"Y-m-d h:i:s\") . \"', '1', \n '\" . $userData[\"active\"] . \"', '\" . $userData[\"resetToken\"] . \"', \n '\" . $userData[\"resetComplete\"]\n . \"')\";\n\n $stmt = $db->prepare($sql);\n\n $stmt->execute();\n\n $id = $db->lastInsertId('id');\n\n $sql = \"INSERT INTO memberData (FK_Members, meno, priezvisko, skola, bydlisko, skola_adresa, bydlisko_adresa, skola_GPS, bydlisko_GPS)\n VALUES (\n '\" . $id . \"', '\" . $userData[\"meno\"] . \"', \n '\" . $userData[\"priezvisko\"] . \"', '\" . $userData[\"skola\"] . \"', \n '\" . $userData[\"bydlisko\"] . \"', '\" . $userData[\"skola_adresa\"] . \"', \n '\" . $userData[\"bydlisko_adresa\"] . \"', '\" . $userData[\"skola_GPS\"] . \"', \n '\" . $userData[\"bydlisko_GPS\"]\n . \"')\";\n\n $stmt = $db->prepare($sql);\n\n $stmt->execute();\n }", "title": "" }, { "docid": "5f690da1fe718b993c137efe4a69f390", "score": "0.66238713", "text": "public function createUser($data = array())\r\n\t\t{\r\n\r\n\t\t return $this->db->insert(\"user\", $data );\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "4176c10f91a53742c16eb9c653d49d86", "score": "0.6619624", "text": "public function add_user($data){\n $name = $data['name'];\n $email = $data['email'];\n $password = $data['password'];\n $created = $data['created'];\n $modified = $data['modified'];\n $sql = \"INSERT INTO users(name, email, password, created, modified) VALUES('$name', '$email', '$password', '$created', '$modified')\";\n $query = $this->db->query($sql);\n return $query;\n }", "title": "" }, { "docid": "13a9bb7b40a2860129cf7110426d98f4", "score": "0.66136825", "text": "function insertUserData ($db, $data){\r\n $email=$data->email;\r\n $name=$data->name;\r\n $surname=$data->surname;\r\n $username=$data->username;\r\n $language=$data->language;\r\n $valCode=$data->valCode;\r\n\r\n $sql2=\"INSERT INTO users(username,password,email,name, surname, language, user_account_status, user_validation_code)VALUES(:username,:password,:email,:name,:surname,:language, :user_account_status,:user_validation_code)\";\r\n $stmt2 = $db->prepare($sql2);\r\n $stmt2->bindParam(\"username\", $username,PDO::PARAM_STR);\r\n $password=hash('sha256',$data->password);\r\n $stmt2->bindParam(\"password\", $password,PDO::PARAM_STR);\r\n $stmt2->bindParam(\"email\", $email,PDO::PARAM_STR);\r\n $stmt2->bindParam(\"name\", $name,PDO::PARAM_STR);\r\n $stmt2->bindParam(\"surname\", $surname,PDO::PARAM_STR);\r\n $stmt2->bindParam(\"language\", $language,PDO::PARAM_STR);\r\n $accountStatus = \"registered\";\r\n $stmt2->bindParam(\"user_account_status\", $accountStatus,PDO::PARAM_STR);\r\n $stmt2->bindParam(\"user_validation_code\", $valCode,PDO::PARAM_INT);\r\n $stmt2->execute();\r\n}", "title": "" }, { "docid": "3cdde85108be3bcbd615deaa1e21458e", "score": "0.6611564", "text": "public function valideAddUser()\n {\n $user = new UserEntity();\n $user->setUserNickname(htmlspecialchars($_POST['nicknameInscriptionInput']));\n $user->setUserPassword($_POST['passwordInscriptionInput']);\n\n $myAdmin = new UserManager();\n $myAdmin->addUser($user);\n\n $_SESSION['nickname'] = $_POST['nicknameInscriptionInput'];\n $_SESSION['password'] = $_POST['passwordInscriptionInput'];\n\n header('Location: ./index.php?newUserSuccessMessage=1');\n }", "title": "" }, { "docid": "9307d47d771047bcfa84eda4dad5eef8", "score": "0.6601166", "text": "function insertUser($name,$age,$gender,$bloodgrp,$country,$city,$address,$uname,$email,$pass){\n\t\t$query = \"INSERT INTO `users`(`name`, `age`, `gender`, `bloodgrp`, `country`, `city`, `address`, `username`, `email`, `password`) VALUES ('$name','$age','$gender','$bloodgrp','$country','$city','$address','$uname','$email','$pass')\";\n\t\treturn execute($query);\n\t}", "title": "" }, { "docid": "54a6a41b13d15cb537d95dc5de842152", "score": "0.6589935", "text": "private function addNewUser()\n\t{\n\t\t$databaseAdapter = new Database();\n\t\t$userMapper = new UserMapper($databaseAdapter);\n\t\t$image = $this->Upload();\n\t\tif($image)\n {\n\t\t\t$user = new UserEntity($this->view->getUsername(), $this->view->getEmail(), $this->view->getPassword(), $image, 2);\n\t\t\t$this->view->responseAjaxCall($userMapper->insert($user));\n\t\t}\n\t\telse {\n\t\t\t$this->view->responseAjaxCall(false);\n\t\t}\n\n\t}", "title": "" }, { "docid": "dd9529c98d38d4c5cf12cf43300ff285", "score": "0.6589562", "text": "public function run()\n {\n $datetime=date('Y-m-d H:i:s');\n\n $data = ['name' => 'admin', 'email' => '[email protected]', 'password' => 'admin','created_at' => $datetime];\n\n $this->insertUser($data);\n }", "title": "" }, { "docid": "f133490bfad8708f58dacf8dd4eb690c", "score": "0.6583982", "text": "function insert_user($values) {\r\n\t$userid = $values['userid'];\r\n\t$passwd = $values['passwd'];\r\n $hashed_passwd = password_hash($passwd, PASSWORD_DEFAULT);\r\n\t$type = $values['type'];\r\n\t$sql = \"INSERT INTO ll04dohm_users (userid, passwd, type) VALUES ('$userid','$hashed_passwd','$type')\";\r\n\trun_query($sql);\r\n}", "title": "" }, { "docid": "f991644cfcb83307e518176ed20f4f23", "score": "0.6582789", "text": "public function storeShinticketUser(){\n \n $data = array('userId' => $this->userId,\n 'idCustomer' => $this->idCustomer,\n );\n \n if(empty($this->oldUserId) && empty($this->oldCustomerId)) {\n SHIN_Core::$_db[SHIN_Core::$_shdb->active_group]->insert($this->table_name, $data);\n } else {\n \n SHIN_Core::$_db[SHIN_Core::$_shdb->active_group]->where('userId', $this->oldUserId);\n SHIN_Core::$_db[SHIN_Core::$_shdb->active_group]->where('idCustomer', $this->oldCustomerId);\n SHIN_Core::$_db[SHIN_Core::$_shdb->active_group]->update($this->table_name, $data); \n }\n \n }", "title": "" }, { "docid": "1befa49f4166a6a8430882fb13c4bbe7", "score": "0.6581081", "text": "function create_user($data){\n $data['FirstVisit'] = date('Y-m-d H:i:s');\n $data['FailedLoginCount'] = 0;\n $data['IsEnabled'] = 1;\n if($this->db->insert('User',$data)) {\n return $this->db->insert_id();\n }\n return FALSE;\n }", "title": "" }, { "docid": "5f7c2bc61a6cb007b42c69fb056aa980", "score": "0.65775526", "text": "function create_user($data = array()){\n var_dump($data);\n $fname = $data['user_first_name'];\n $lname = $data['user_last_name'];\n $picture = $data['user_image'];\n $gender = $data['gender'];\n $email = $data['user_email_address'];\n $uid = $data['access_token'];\n \n\n $stmt = \"INSERT INTO users (oauth_uid,first_name,last_name,email,picture,gender,created,modified)\";\n $stmt .= \" VALUES (?,?,?,?,?,?,?,?)\";\n $data = [$uid,$fname,$lname,$email,$picture,$gender,date(\"y-m-d h:i:s\"),date(\"y-m-d h:i:s\")];\n try{\n $query = $this->pdo->prepare($stmt)->execute($data);\n }catch(PDOException $e){\n echo $e->getMessage();\n\n }catch(Exception $e){\n echo $e->getMEssage();\n\n }\n\n // if($this->pdo->query($query)){\n // $msg = \"user successfully created\";\n // return $msg;\n // }else{\n // $msg = \"error\";\n // return $msg;\n // }\n\n }", "title": "" }, { "docid": "5fbecb778e3352e2029e6b273e0e9caf", "score": "0.65753484", "text": "function registerUser($userData) {\n if (!isset($userData['id'])) {\n return false;\n }\n\n // get the user from the database\n $user = dbRow('SELECT * FROM users WHERE fbid = :fbid', ['fbid' => $userData['id']]);\n if (!$user) {\n $res = dbExec(\n 'INSERT INTO users (name, email, fbid, date_created) VALUES (:name, :email, :fbid, :date_created)',\n [\n 'name' => $userData['name'],\n 'email' => ($userData['email']??''),\n 'fbid' => $userData['id'],\n 'date_created' => time(),\n ]\n );\n if (!$res) {\n _exit('Cannot register the user');\n }\n }\n}", "title": "" }, { "docid": "3165019377a69e86ec6aa8113b0515e7", "score": "0.65742755", "text": "public static function add_user() {\n $db = Db::getInstance();\n if(isset($_REQUEST['submit'])) {\n $sql= $db->query(\"Insert into users(first_name, last_name, email,password,created_date, created_time) values('\".$_REQUEST['first_name'].\"', '\".$_REQUEST['last_name'].\"', '\".$_REQUEST['email'].\"','\".$_REQUEST['password'].\"',NOW(),CURRENT_TIMESTAMP())\");\n }\n }", "title": "" }, { "docid": "9868eb540330f10773a05b53da2b7176", "score": "0.65659", "text": "function insertUser($username, $name, $password, $phone_number, $email, $location) {\n $db = Database::instance()->db();\n\n $options = ['cost' => 12];\n\n $stmt = $db->prepare('INSERT INTO UserEntities(username, name, password, location, phoneNumber, email) VALUES(?, ?, ?, ?, ?, ?)');\n $stmt->execute(array($username, $name, password_hash($password, PASSWORD_DEFAULT, $options),$location, $phone_number, $email));\n\n $userId = $db->lastInsertId();\n\n $stmt = $db->prepare('INSERT INTO UserPhotos(idUser,idPhoto) VALUES(?, ?)');\n $stmt->execute(array($userId,1));\n }", "title": "" }, { "docid": "463fe37a31ebf7c0bb52519173abe820", "score": "0.6562699", "text": "function register_user( $name_param, $email_param,$dept_param,$contact_param, $password_param ,$user_type_param,$parent_contact_param){\n\t\t\t$new_user_query = \"INSERT INTO user_table (NAME, EMAIL,DEPARTMENT, CONTACT_NUMBER, PASSWORD, USER_TYPE, PARENT_CONTACT) VALUES ('$name_param', '$email_param','$dept_param', '$contact_param', '$password_param','$user_type_param','$parent_contact_param')\";\n\t\t\tif ($this->conn->query($new_user_query) === TRUE) {\n\t\t\t\t $_SESSION['user_email'] = $email_param;\n\t\t\t\t $_SESSION['user_name'] = $name_param;\n\t\t\t\t $_SESSION['user_type'] = $user_type_param;\n\t\t\t\t} else {\n\t\t\t\t echo \"Error: \" . $new_user_query . \" \" . $conn->error;\n\t\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "32c555a9039ef88ae217519fbfc6a38d", "score": "0.6562302", "text": "public function create($user, array $data);", "title": "" }, { "docid": "b2767697d337a6ca4777e66d138aa173", "score": "0.6556446", "text": "public function insert_into_db() {\n\t\t\t$data = array(\n\t\t\t\t'username'\t\t=> $this->input->post('reg_username'),\n\t\t\t\t'password'\t\t=> md5($this->input->post('reg_password')),\n\t\t\t\t'email'\t\t\t=> $this->input->post('email'),\n\t\t\t\t'ip_of_reg'\t\t=> $_SERVER['REMOTE_ADDR'],\n\t\t\t\t'date_of_reg'\t=> date(\"Y-m-d\")\n\t\t\t);\n\t\t\t$this->db->insert('accounts', $data);\n\t\t\t/* INSERTS USER's ID INTO USERS CONDIONS */\n\t\t\t$this->db->insert('user_conditions', array('uc_user_id' => $this->db->insert_id()));\n\t\t}", "title": "" }, { "docid": "a3edbbd21e5ed20bafcdcb09b8491763", "score": "0.65517277", "text": "public function insertAdminUser($data = array()) {\n if(!array_key_exists(\"accessLevel\", $data)){\n $data['accessLevel'] = 2;\n }\n if(!array_key_exists(\"created\", $data)){\n $data['createdAt'] = date(\"Y-m-d H:i:s\");\n }\n if(!array_key_exists(\"modified\", $data)){\n $data['updatedAt'] = date(\"Y-m-d H:i:s\");\n }\n print_r($this->users);\n //insert user data to users table\n $insert = $this->db->insert($this->users, $data);\n\n //return the status\n if($insert){\n return $this->db->insert_id();\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "058d274e0a769ca0ef566a87c9eb5b91", "score": "0.65473557", "text": "function insert_identity_data($data)\n\t{\n\t\t$this->db->insert(\"identity\", $data);\n\t}", "title": "" }, { "docid": "bd1d0738b4fc76b8cbd94417383d6dfc", "score": "0.6537363", "text": "public function add_new_user($data){\n return $this->db->insert('users', $data);\n }", "title": "" }, { "docid": "2f80083cec7fb4c01730391c38aeea9f", "score": "0.6532512", "text": "public function insertGetUser($request);", "title": "" }, { "docid": "dda7568dc16507920946a29b41c62148", "score": "0.65303063", "text": "function index_post()\n\t{\n\t\t$data = array(\n\t\t\t'username' => $this->post('username'),\n\t\t\t'password' => $this->post('password'),\n\t\t\t'name' => $this->post('name'),\n\t\t\t'email' => $this->post('email'),\n\t\t\t'phone' => $this->post('phone'),\n\t\t\t'gender' => $this->post('gender'),\n\t\t\t'address' => $this->post('address'),\n\t\t\t'role_id' => $this->post('role_id')\n\t\t);\n\t\t$insert = $this->db->insert('users', $data);\n\t\tif ($insert) {\n\t\t\t$this->response($data, 200);\n\t\t} else {\n\t\t\t$this->response(array('status' => 'fail', 502));\n\t\t}\n\t}", "title": "" }, { "docid": "4142c7d2a7403e361a21c5e51a67658b", "score": "0.6527666", "text": "public function insertIntoUserProfessional($userInfo) {\r\n $objProfessionalInfo = $userInfo->getUserProfessionalInfo();\r\n $user_id = $userInfo->getUserIdInfo();\r\n $objProfessionalInfo['user_id'] = $user_id['id'];\r\n $this->db->Fields($objProfessionalInfo);\r\n $this->db->From(\"user_professional_info\");\r\n $this->db->Insert();\r\n }", "title": "" }, { "docid": "0282e09d630b6a5287c7320a7943d8b4", "score": "0.6527117", "text": "public function addUser() {\r\n $this->index[$this->usrLabel] = array(\r\n 'rdf:type' => array(\r\n 'foaf:Person'\r\n ),\r\n 'foaf:nick' => array(\r\n $this->nomeUtente\r\n ),\r\n );\r\n $this->writeInUsers();\r\n }", "title": "" }, { "docid": "e734ed6e60236d5b06ceab0e677f7816", "score": "0.65265006", "text": "public function insert_user( ){\n foreach($this->CI->input->post() as $item => $value){\n ${$item} = $value;\n }\n \n $insert = array(\n 'level' => $level,\n 'email' => $email,\n 'name' => $name,\n 'password' => $password,\n 'user_up'\t=> $this->CI->session->userdata('id')\n );\n \n $this->CI->db->insert('login', $insert);\n \n return $this->CI->db->insert_id();\n }", "title": "" }, { "docid": "0e2d3d759493aed5d69d33632126e3d8", "score": "0.6519488", "text": "public function do_insert_user(){\n\t$id_user = $_POST['id_user'];\n\t$username = $_POST['username'];\n\t$password = $_POST['password'];\n\t$nama = $_POST['nama'];\n\t$email = $_POST['email'];\n\t$data = array(\n\t\t\t'id_user' => $id_user,\n\t\t\t'username' => $username,\n\t\t\t'password' => $password,\n\t\t\t'nama' => $nama,\n\t\t\t'email' => $email\n\t);\n\t$where = array(\"id_user\"=>$id_user);\n\t\t$tambah = $this->Model->insertdata('tb_user', $data,$where);\n\t\tif($tambah>0){\n\t\t\t$this->session->set_flashdata(\"pesan\",\"Data Berhasil Dimasukkan\");\n\t\t\tredirect('Admin/datauser');\n\t\t}else{\n\t\t\techo 'Gagal disimpan';\n\t\t}\n\t}", "title": "" }, { "docid": "d9138fe2465f0b2e23dc4b66e9771fa6", "score": "0.65174913", "text": "public function ADDnewUser($data){\n $hashpwd=password_hash($data['pwd'],PASSWORD_DEFAULT);\n $sql=\"INSERT INTO users (fname, lname, username, email, year, pwd) VALUE(:fname, :lname, :username, :email, :year, :pwd)\";\n $this->db->query($sql);\n\n $this->db->bind(':fname',$data['fname']);\n $this->db->bind(':lname',$data['lname']);\n $this->db->bind(':username',$data['uname']);\n $this->db->bind(':email',$data['email']);\n $this->db->bind(':year',$data['godina']);\n $this->db->bind(':pwd',$hashpwd);\n\n if($this->db->execute()){\n return true;\n }else{\n return false;\n }\n\n }", "title": "" }, { "docid": "9b1a99601bbc66e0dac115e73650e699", "score": "0.6516085", "text": "public function AddUser()\n {\n $newdetails = $_POST;\n $details = require_once(\"userarray.php\");\n foreach ($newdetails as $key => $value) {\n if (array_key_exists($key, $details)) {\n $details[$key] = $value;\n }\n }\n $query = \"INSERT INTO address (fname,lname,mob) VALUES('\" . $details[\"fname\"] . \"','\" . $details[\"lname\"] . \"',\" . $details[\"mob\"] . \")\";\n //echo $query ;\n $this->queryRun($query);\n\n }", "title": "" }, { "docid": "9581c9013de0c399dedb236083e1714d", "score": "0.6512477", "text": "public function dbAddUser($table, $data)\n {\n $this->execute(\"INSERT INTO $table (email, password)\n VALUES (:email, :password)\",\n array(\n ':password' => strval($data['password']),\n ':email' => strval($data['email'])\n ));\n }", "title": "" }, { "docid": "64545428195b67da6e1eeca08aca2c5a", "score": "0.65027875", "text": "function insert($user_object) {\r\n\t\t$query=\"INSERT INTO user_info\r\n\t\t\t\t\t (i_user_id,\r\n\t\t\t\t\t vc_name ,\r\n\t\t\t\t\t vc_email,\r\n\t\t\t\t\t vc_key,\r\n\t\t\t\t\t vc_netflex_userid,\r\n\t\t\t\t\t vc_netflex_secret,\r\n\t\t\t\t\t b_netflex,\r\n\t\t\t\t\t i_status)\r\n\t\t\t\t\t VALUES \r\n\t\t\t\t\t ('0', \r\n\t\t\t\t\t '\".$user_object->vc_name.\"',\r\n\t\t\t\t\t '\".$user_object->vc_email.\"',\r\n\t\t\t\t\t '\".$user_object->vc_key.\"',\r\n\t\t\t\t\t '\".$user_object->vc_netflex_userid.\"',\r\n\t\t\t\t\t '\".$user_object->vc_netflex_secret.\"',\r\n\t\t\t\t\t '\".$user_object->b_netflex.\"',\r\n\t\t\t\t\t '\".$user_object->i_status.\"')\" ;\r\n\t\tmysql_query($query) or die(\"Exception During Inserting Data Into Table m_City the Mysql\");\r\n\t}", "title": "" }, { "docid": "1033fc0dccb8874d32be89ddf467255e", "score": "0.65000874", "text": "public function run()\n {\n\n\t\tDB::table('user')->insert([\n\t\t\t[\n\t\t\t\t'id' => 1,\n\t\t\t\t'email' => '[email protected]',\n\t\t\t\t'password' => encode_password(\"123123\"),\n\t\t\t\t'name' => 'Nguyễn Khánh',\n\t\t\t\t'fb_id' => '1402203609912995',\n\t\t\t\t'avatar' => 'https://graph.facebook.com/1402203609912995/picture?type=large',\n\t\t\t\t'status' => 1,\n\t\t\t],\n\t\t]);\n }", "title": "" }, { "docid": "3a467d8bc3adbd049309f60109641c84", "score": "0.64959604", "text": "public function insert_new_user($data)\n {\n $this->db->insert('doctor_new_user',$data);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "d6fe25135325b80c3584ddd790e25edf", "score": "0.64833784", "text": "public function log_new_user_information() {\n\n\t\t\t$first_name = $_POST['first_name'];\n\t\t\t$last_name = $_POST['last_name'];\n\t\t\t$email = $_POST['email'];\n\t\t\t$password = $_POST['password'];\n\t\t\t//options for encrypting\n\t\t\t$options = [\n\t\t\t\t//cost is basically a way to slow down brute force attacks. It takes more resources to do a brute force attack. 10 is the recommended value\n\t\t\t 'cost' => 11,\n\t\t\t //used to salt the password.\n\t\t\t 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM)\n\t\t\t];\n\t\t\t\n\n\n\t\t\t//deal with encrypting the password. password_hash is a php function.\n\t\t\t$password = password_hash($password, PASSWORD_BCRYPT, $options);\n\n\t\t\t//create query\n\t\t\t$query = \"INSERT INTO users (user_firstname, \t user_lastname, user_email, user_pw, user_salt)\n\t\t\t\t\t VALUES (:first_name, :last_name, :email, :password, :salt)\";\n\t\t\t//bind values\n\t\t\t$statement = $this->db->prepare($query);\n\t\t\t$statement->bindValue( ':first_name', $first_name );\n\t\t\t$statement->bindValue( ':last_name', $last_name );\n\t\t\t$statement->bindValue( ':email', $email );\n\t\t\t$statement->bindValue( ':password', $password );\n\t\t\t$statement->bindValue( ':salt', $options['salt'] );\n\t\t\t//execute statement and report an error if you weren't added to the database\n\t\t\tif( !$statement->execute() ) {\n\t\t\t\t$errors[] = \"I am sorry, your input was not able to be added. Please try again.\";\n\t\t\t}\n\t\t\t//close the cursor\n\t\t\t$statement->closeCursor();\n\t\t}", "title": "" } ]
63f305ba9ce0962ef9a7801b8c89dc4b
Returns an array of Image objects for the nodes in the list.
[ { "docid": "7fc652021b67ccbb5692b85d1819f35d", "score": "0.76534545", "text": "public function images(): array\n {\n $images = [];\n foreach ($this as $node) {\n if (!$node instanceof \\DOMElement) {\n throw new \\InvalidArgumentException(sprintf('The current node list should contain only DOMElement instances, \"%s\" found.', get_debug_type($node)));\n }\n\n $images[] = new Image($node, $this->baseHref);\n }\n\n return $images;\n }", "title": "" } ]
[ { "docid": "02c7fc6b35a63376e1a456218578a225", "score": "0.7389362", "text": "function getImages($data) {\n $images = [];\n foreach($data as $img) {\n $images[] = new UbernodeImage($img);\n }\n return $images;\n }", "title": "" }, { "docid": "f493b83f88b6759c7fa254d717a9d375", "score": "0.66380155", "text": "private function toObjectArray($items)\n {\n $results = array();\n foreach ($items as $item) {\n $results[] = new Image($item);\n }\n\n return $results;\n }", "title": "" }, { "docid": "b12d31ee46880c5546c23424c74bd7c7", "score": "0.65241843", "text": "public function images(): array\n {\n return $this->_images;\n }", "title": "" }, { "docid": "0387c2440ab27ade79dd116be84dbd22", "score": "0.6411296", "text": "protected function getImages()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "1a5557ac543d8ebf2483d53270cb5806", "score": "0.63419974", "text": "public function getImages(): array\n {\n $this->checkInitialization();\n\n $images = [];\n $imageTags = $this->dom->getElementsByTagName('img');\n /** @var DOMElement $imageTag */\n foreach ($imageTags as $imageTag) {\n $src = $imageTag->getAttribute('src');\n if (StringUtility::isAbsoluteImageUrl($src)) {\n $pathAndFilename = $this->getNewImagePathAndFilename($src);\n $embedName = $this->getEmbedNameForPathAndFilename($pathAndFilename);\n if (!isset($images[$embedName]) && file_exists($pathAndFilename)) {\n $images[$embedName] = $pathAndFilename;\n }\n }\n }\n return $images;\n }", "title": "" }, { "docid": "8d1b50f4e49b1a55d65d51c97a14699a", "score": "0.6304161", "text": "public function getImages()\n\t{\n\t if ($this->_images === null) {\n\t $this->_images = array();\n\t $images = $this->getXpath()->query(\"//img[@src]\");\n\t \n\t foreach ($images as $img) {\n\t $this->_images[] = $img->getAttribute('src');\n\t }\n\t }\n\t \n\t return $this->_images;\n\t}", "title": "" }, { "docid": "565cfbedbd26c54aeb82a22de4bd240f", "score": "0.62953705", "text": "public function getImages();", "title": "" }, { "docid": "c4750e9efee806cc669e04a755e3a555", "score": "0.6284139", "text": "public function getImages() : array\n {\n return $this->images;\n }", "title": "" }, { "docid": "3c62c165aca481171e85fe94fa257e59", "score": "0.62734205", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'imagable')->orderBy('ordering', 'asc')->orderBy('id', 'asc');\n }", "title": "" }, { "docid": "2eeeb4137ced1290b92a843c2feb1799", "score": "0.62322956", "text": "public function get_cs_images()\n\t\t{\n\t\t\t$content = $this->content;\t\n\t\t\t$files = $this->create_filepath_arr();\t\n\t\t\t$cc = count($content);\n\t\t\t$result = [];\n\t\t\t\n\t\t\tfor($i=0; $i < $cc; $i++){\n\t\t\t\t$content[$i]['files'] = $files[$i];\n\t\t\t\t$image = new Image($content[$i]);\n\t\t\t\t$result[] = $image->cs_image();;\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "a60da35baa9d936ff21612d1f8841247", "score": "0.62213445", "text": "public function listImages(){\n\n return $results;\n }", "title": "" }, { "docid": "e7f65c222d2fd5be50bb054577e6d29a", "score": "0.6086477", "text": "function &images()\r\n {\r\n $return_array = array();\r\n $image_array = array();\r\n\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $image_array, \"SELECT ID, ImageID, Placement FROM eZTrade_ProductImageLink WHERE ProductID='$this->ID' ORDER BY Created\" );\r\n\r\n // convert the database if placement is not set\r\n if ( count( $image_array ) > 0 )\r\n {\r\n if ( $image_array[0][$db->fieldName(\"Placement\")] == \"0\" )\r\n {\r\n $placement=1;\r\n for ( $i=0; $i < count($image_array); $i++ )\r\n {\r\n $imageLinkID = $image_array[$i][$db->fieldName(\"ID\")];\r\n $db->query( \"UPDATE eZTrade_ProductImageLink SET Placement='$placement' WHERE ID='$imageLinkID'\" );\r\n\r\n $image_array[$i][$db->fieldName(\"Placement\")] = $placement;\r\n $placement++;\r\n }\r\n }\r\n }\r\n\r\n for ( $i=0; $i < count($image_array); $i++ )\r\n {\r\n $return_array[$i][\"Image\"] = new eZImage( $image_array[$i][$db->fieldName(\"ImageID\")] );\r\n $return_array[$i][\"Placement\"] = $image_array[$i][$db->fieldName(\"Placement\")];\r\n }\r\n\r\n return $return_array;\r\n }", "title": "" }, { "docid": "cbad6b0c09e59e968ce5158701d3e388", "score": "0.6043702", "text": "public function imagesInstance();", "title": "" }, { "docid": "8f937fa57a638a31e84d248899070623", "score": "0.60388947", "text": "public function getImages()\n {\n return Image::model()->findAllByAttributes(array('entity_type' => get_class($this), 'entity_id' => $this->id));\n }", "title": "" }, { "docid": "5a2a04d1f693110f12b605c9bf678e88", "score": "0.6025351", "text": "public function imagesInstance()\n {\n $this->adapterResult = $this->rackspace->listImages(true);\n if ($this->adapterResult===false) {\n return false;\n }\n\n $images= $this->adapterResult->toArray();\n $result= [];\n\n foreach ($images as $image) {\n if (strtolower($image['status'])==='active') {\n if (strpos($image['name'],'Windows')!==false) {\n $platform = Zend_Cloud_Infrastructure_Image::IMAGE_WINDOWS;\n } else {\n $platform = Zend_Cloud_Infrastructure_Image::IMAGE_LINUX;\n }\n if (strpos($image['name'],'x64')!==false) {\n $arch = Zend_Cloud_Infrastructure_Image::ARCH_64BIT;\n } else {\n $arch = Zend_Cloud_Infrastructure_Image::ARCH_32BIT;\n }\n $result[]= [\n Zend_Cloud_Infrastructure_Image::IMAGE_ID => $image['id'],\n Zend_Cloud_Infrastructure_Image::IMAGE_NAME => $image['name'],\n Zend_Cloud_Infrastructure_Image::IMAGE_DESCRIPTION => $image['name'],\n Zend_Cloud_Infrastructure_Image::IMAGE_ARCHITECTURE => $arch,\n Zend_Cloud_Infrastructure_Image::IMAGE_PLATFORM => $platform,\n ];\n }\n }\n return new Zend_Cloud_Infrastructure_ImageList($result,$this->adapterResult);\n }", "title": "" }, { "docid": "4feab5e034be2d5fcce7fc3bafc34291", "score": "0.59927493", "text": "public function images()\n {\n if ($this->images === null) {\n $data = $this->rawData();\n $images = [];\n if (isset($data['entities']['media'])) {\n foreach ($data['entities']['media'] as $media) {\n if (!isset($media['type']) || $media['type'] !== self::ENTITY_TYPE_PHOTO) {\n continue;\n }\n\n if (!isset($media['media_url_https'])) {\n continue;\n }\n\n $images[] = $media['media_url_https'];\n }\n }\n\n $this->images = $images;\n }\n\n return $this->images;\n }", "title": "" }, { "docid": "08c20f44f36de3cf811b4efab89f3813", "score": "0.59925884", "text": "private function getImages(DOMDocument $dom, DOMXPath $xPath): array\n {\n $images = [];\n $selectors = [\n \"#altImages\",\n \"#imageBlock_feature_div\",\n \"#imageBlockNew_feature_div\",\n \"#imageBlock\",\n '#ebooksImageBlock'\n ];\n if (($imagesDiv = DomParserUtils::findParentDiv($dom, $xPath, $selectors)) === null) {\n throw CouldNotProcessProduct::parentDivNotFound(\"images\", $selectors, $this->userAgent);\n }\n $imagesDiv = $imagesDiv->getElementsByTagName('img');\n\n foreach ($imagesDiv as $key => $div) {\n $image = $div->attributes->getNamedItem('src');\n if (!$image) {\n $image = $div->attributes->getNamedItem('data-old-hires');\n }\n $image = $image->textContent;\n\n if ($image &&\n (strstr($image, \"/images/I/\") ||\n strstr($image, \"base64\"))) {\n $image = str_replace(\"S40_\", \"S300_\", $image);\n $images[] = $image;\n }\n }\n\n return $images;\n }", "title": "" }, { "docid": "dc1e775c2b5df6ffe98d655fbf70ab02", "score": "0.5986854", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'model');\n }", "title": "" }, { "docid": "dc1e775c2b5df6ffe98d655fbf70ab02", "score": "0.5986854", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'model');\n }", "title": "" }, { "docid": "7ad85daf6c3f9904324351c3f169f7db", "score": "0.59734154", "text": "public function getImages()\n {\n $finder = $this->getImagesFinder();\n\n $imageQuery = Image::find()\n ->where($finder);\n $imageQuery->orderBy(['position' => SORT_DESC]);\n $imageRecords = $imageQuery->all();\n\n if(!$imageRecords){\n return [$this->getModule()->getPlaceHolder()];\n }\n return $imageRecords;\n }", "title": "" }, { "docid": "e18e1362a807ea2a2e88c4f51cee3ed0", "score": "0.59603757", "text": "public function getListImages(): array\n {\n $images = $this->findImagesByType(Image::LISTING_IMAGE);\n\n if (count($images) > 0) {\n return $images;\n }\n\n return [$this->getMainImage()];\n }", "title": "" }, { "docid": "f9515a8ad1273fb0e7b7560ae18d87ef", "score": "0.59271955", "text": "public function get_images() {\n\t\treturn $this->images;\n\t}", "title": "" }, { "docid": "c2bbd1d80bcb3242e1b9532cca279155", "score": "0.5926322", "text": "private function _build_image_list()\n\t{\n\t\t$images = $this->post_raw(WPSiteSync_BeaverBuilder::DATA_IMAGE_REFS, array());\n\t\t$this->_sync_model();\n\t\t$this->_images = array();\n\n\t\t// look up each image and find it's Target ID\n\t\tforeach ($images as $source_id => $img_ref) {\n\t\t\t// use type 'post' because attachment post types are still stored in the wp_posts table\n\t\t\t$sync_data = $this->_sync_model->get_sync_data($source_id, $this->_source_site_key);\n\t\t\tif (NULL !== $sync_data) {\n\t\t\t\t$entry = new stdClass();\n\t\t\t\t$entry->img_ref = $img_ref;\n\t\t\t\t$entry->target_id = abs($sync_data->target_content_id);\n\t\t\t\t$this->_images[$source_id] = $entry;\n\t\t\t}\n\t\t\t// TODO: if an image can't be found, return an error before processing starts\n\t\t}\nSyncDebug::log(__METHOD__.'():' . __LINE__ . ' image data=' . var_export($this->_images, TRUE));\n\t}", "title": "" }, { "docid": "72830ff9ee954d417754d46dc5a498c8", "score": "0.5914512", "text": "public function getImages()\n {\n if (empty($this->images)) {\n if ($this->productHasImageGallery()) {\n $productPictures = $this->getProductData()->ProductGallery->ProductPicture;\n // Make sure $productPictures is an array.\n if (!is_array($productPictures)){\n $productPictures = [$productPictures];\n }\n\n foreach ($productPictures as $img) {\n $attr = $img->{'@attributes'};\n $this->images[] = [\n 'high' => $attr->Pic,\n 'low' => $attr->LowPic,\n 'thumb' => $attr->ThumbPic,\n ];\n }\n }\n if ($this->productHasMainImage()) {\n $this->images[] = [\n 'high' => $this->getProductData()->{'@attributes'}->HighPic,\n 'low' => $this->getProductData()->{'@attributes'}->LowPic,\n 'thumb' => $this->getProductData()->{'@attributes'}->ThumbPic,\n ];\n }\n }\n\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5911921", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5911921", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5911921", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5911921", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5911921", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "e28ca8d61f526f2dfd830933ed2ff31e", "score": "0.58972794", "text": "public function images()\n {\n return $this->morphMany(Image::class, \"imageable\");\n }", "title": "" }, { "docid": "372baf5b6dd06f1eb1777c5e83f4543e", "score": "0.58932817", "text": "public function images()\n {\n $images = Image::wherePostId($this->id);\n return $images;\n\n }", "title": "" }, { "docid": "e173256db87456fc10713091a6b90e12", "score": "0.58841205", "text": "abstract public function get_images_to_render();", "title": "" }, { "docid": "3e83f1643f80d4b93f3f93d637d5756d", "score": "0.5880377", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'imageable');\n }", "title": "" }, { "docid": "3e83f1643f80d4b93f3f93d637d5756d", "score": "0.5880377", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'imageable');\n }", "title": "" }, { "docid": "3e83f1643f80d4b93f3f93d637d5756d", "score": "0.5880377", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'imageable');\n }", "title": "" }, { "docid": "680bc16eb1217618c6c7ddd8ed520aeb", "score": "0.5874604", "text": "function getImages() { return $this->_images; }", "title": "" }, { "docid": "b9852d496f2abe97289cc70a0b1f891b", "score": "0.5869774", "text": "public function getImages() {\r\n $this->images = [];\r\n \r\n // Construct the table cell with card image string and put it in the array\r\n foreach ($this->hand as $card) {\r\n $this->images[] = \"<td class=\\\"card_img\\\"><img src=\" . $card->callImage() . \"></td>\";\r\n }\r\n \r\n // Return images array\r\n return $this->images;\r\n }", "title": "" }, { "docid": "264cde5513699b77007007f553b9ccac", "score": "0.58624995", "text": "public function getImagesArray()\n {\n if ($this->_imagesArray === null) {\n $this->_imagesArray = $this->getQueryCacheHelper((new Query())->from('{{%admin_storage_image}}')->select(['id', 'file_id', 'filter_id', 'resolution_width', 'resolution_height'])->indexBy('id'), self::CACHE_KEY_IMAGE);\n }\n\n return $this->_imagesArray;\n }", "title": "" }, { "docid": "bfe28bccb01af7564b1827e63c22d139", "score": "0.5855945", "text": "public function getImageData($object)\n {\n $data = [];\n foreach ($object as $node) {\n $data[] = [\n 'fullsize' => $node->getAttribute('href'),\n 'thumb' => $node->getElementsByTagName('img')[0]->getAttribute('src')\n ];\n }\n return $data;\n }", "title": "" }, { "docid": "1c9da486b4726d253c8800773fe5ae17", "score": "0.5852956", "text": "public function getAllImages()\n {\n $sql = 'select IMG_PATH as path,'\n . ' USER_LOGIN as login'\n . ' from T_IMAGES';\n\n $images = $this->executerRequete($sql);\n return $images->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "8ed0824f7dc4745a2708add85306758e", "score": "0.5850484", "text": "public function images()\n {\n return $this->morphToMany(Image::class, 'imageable');\n }", "title": "" }, { "docid": "e742b2557efbe1124ad4aa06bd38da14", "score": "0.58416927", "text": "public function getNodes();", "title": "" }, { "docid": "e742b2557efbe1124ad4aa06bd38da14", "score": "0.58416927", "text": "public function getNodes();", "title": "" }, { "docid": "e686c04f7aa69df2f81fd0f5ee8b3d83", "score": "0.58337283", "text": "public function images()\n {\n return $this->morphMany('App\\Image', 'imageable');\n }", "title": "" }, { "docid": "80e8a5792bbc15332efd2d3dcc9dca36", "score": "0.58172315", "text": "public function getAllImages()\n {\n // first, lets get all the paths of where to look\n $pathsToSearch = array($this->getImagePath());\n $theme = $this;\n while (isset($theme->parentTheme) && SugarThemeRegistry::get($theme->parentTheme) instanceOf SugarTheme ) {\n $theme = SugarThemeRegistry::get($theme->parentTheme);\n $pathsToSearch[] = $theme->getImagePath();\n }\n $pathsToSearch[] = $this->getDefaultImagePath();\n\n // now build the array\n $imageArray = array();\n foreach($pathsToSearch as $path) {\n // $path goes before custom here, so not using existingCustomOne\n $paths = SugarAutoLoader::existing(\"custom/$path\", $path);\n if($paths) {\n $path = array_pop($paths);\n } else {\n continue;\n }\n foreach(SugarAutoLoader::getDirFiles($path) as $file) {\n $file = basename($file);\n if (!isset($imageArray[$file]))\n \t$imageArray[$file] = $this->getImageURL($file,false);\n }\n }\n\n ksort($imageArray);\n return $imageArray;\n }", "title": "" }, { "docid": "4917a65d84c78f6f4684c163bcc8334e", "score": "0.5798718", "text": "public function fetchNodesAsObjects(){\r\n $nodes=array();\r\n foreach($this->xml as $node){\r\n $nodes[]=$node;\r\n }\r\n return $nodes;\r\n }", "title": "" }, { "docid": "59c40a670ac3f5a344a94a2632e8b48d", "score": "0.57767826", "text": "public function getAllImages() {\n $directory = \"bilder/\";\n $images = glob($directory . \"*.jpg\");\n\n $imageList = \"\";\n foreach($images as $image)\n {\n $imageList .= \"<li><img src=\" . $image . \"></li>\";\n }\n\n return $imageList;\n }", "title": "" }, { "docid": "f3e7088cf9e13d41d05142c5de8dd776", "score": "0.5773548", "text": "public function getImages() {\n \n $conditions = array(\n 'post_id' => $this->id\n );\n \n $images = Image::all(array('conditions' => $conditions));\n return $images;\n }", "title": "" }, { "docid": "1586eafcba4bd33956bf10673c9ab70c", "score": "0.5771793", "text": "public function getImage() {\n $images = array();\n foreach ($this->productImages as $img) {\n if ($img->is_default == 1) {\n $images[] = array('id' => $img->id,\n 'image_large' => $img->image_url['image_large'],\n 'image_small' => $img->image_url['image_small'],\n );\n break;\n } else {\n $images[] = array('id' => $img->id,\n 'image_large' => $img->image_url['image_large'],\n 'image_small' => $img->image_url['image_small'],\n );\n break;\n }\n }\n\n return $images;\n }", "title": "" }, { "docid": "5e9385d20a67ba889b18bc540cf33a41", "score": "0.5760243", "text": "public function getImagesProperty()\n {\n return ['image'];\n }", "title": "" }, { "docid": "3cd631af5c80a7dd9e3c53ea4ecef3e3", "score": "0.574551", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "6981407c1d5d030ef4c0ca24667d1030", "score": "0.5732383", "text": "public function flattenImages () {}", "title": "" }, { "docid": "864098965bbff43342058beadb5b6399", "score": "0.572931", "text": "public function getImages() {\n\t\t\t$query = 'select image_id, image_name, image_blob from picture;';\n\t\t\t$this->connect();\n\t\t\t$result = $this->doQuery($query);\n\t\t\n\t\t\n\t\t\t// process the results placing them in an array of students\n\t\t\t$imageArray = array();\n\t\t\twhile($row = $result->fetch()) {\n\t\t\t\t$image=new image($row['image_id'], $row['image_name'], $row['image_blob']);\n\t\t\t\t$imageArray[]=$image;\n\t\t\t}\n\t\t\n\t\t\n\t\t$this->disconnect();\n return $imageArray;\n\t\t}", "title": "" }, { "docid": "dcfe5391951d95e0587d138af16e8e02", "score": "0.57279", "text": "public function getNodes(): array\n {\n return $this->instances;\n }", "title": "" }, { "docid": "f0a5904c3b55b86517a8a02a192ac216", "score": "0.5712042", "text": "public function getImageData($object)\n {\n $data = [];\n foreach ($object as $node) {\n $data[] = [\n 'fullsize' => $node->getAttribute('data-original-image-url'),\n 'thumb' => '',\n ];\n }\n return $data;\n }", "title": "" }, { "docid": "143ba2de359200a300e802ccf57160c5", "score": "0.5698403", "text": "protected function getGroupImages( $item )\n\t{\n\t\t$ret = array(\n\t\t\t'ImageSets' => array(\n\t\t\t\t'ImageSet' => array(),\n\t\t\t),\n\t\t);\n\n\t\tif ( null === $item ) {\n\t\t\treturn $ret;\n\t\t}\n\n\t\t$Images = $item->getImages();\n\t\t$ImageTypes = array('Primary', 'Variants');\n\t\t$ImageSizes = array('Small', 'Medium', 'Large');\n\n\t\t$imgs = array();\n\t\t$imgsize = array();\n\t\t$cc = 0;\n\n\t\tif ( null === $Images ) {\n\t\t\treturn $ret;\n\t\t}\n\n\t\t// foreach main\n\t\tforeach ( $ImageTypes as $ImageType ) {\n\n\t\t\t$__ = $Images->{\"get{$ImageType}\"}();\n\t\t\t//var_dump('<pre>', \"get{$ImageType}\", '</pre>');\n\t\t\tif ( null === $__ ) {\n\t\t\t\tcontinue 1;\n\t\t\t}\n\n\t\t\t//var_dump('<pre>',getType($__) ,'</pre>');\n\t\t\t// Primary = returns an object\n\t\t\t// Variants = returns an array numerical (of objects)\n\t\t\tif ( 'object' === getType($__) ) {\n\t\t\t\t$__ = array( $__ );\n\t\t\t}\n\n\t\t\tif ( ! is_array($__) ) {\n\t\t\t\tcontinue 1;\n\t\t\t}\n\n\t\t\t// foreach sub-main\n\t\t\tforeach ( $__ as $ImageValue ) {\n\n\t\t\t\tforeach ( $ImageSizes as $ImageSize ) {\n\n\t\t\t\t\t$__2 = $ImageValue->{\"get{$ImageSize}\"}();\n\t\t\t\t\tif ( null === $__2 ) {\n\t\t\t\t\t\tcontinue 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t$img_url = $__2->getURL();\n\t\t\t\t\t$img_w = $__2->getWidth();\n\t\t\t\t\t$img_h = $__2->getHeight();\n\t\t\t\t\t//var_dump('<pre>', $img_url, $img_w, $img_h, '</pre>');\n\n\t\t\t\t\tif ( null === $img_url || null === $img_h || null === $img_w ) {\n\t\t\t\t\t\tcontinue 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t$img_val = array(\n\t\t\t\t\t\t'URL' => $img_url,\n\t\t\t\t\t\t'Height' => array(\n\t\t\t\t\t\t\t'_' => (string) $img_h,\n\t\t\t\t\t\t\t'Units' => 'pixels',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'Width' => array(\n\t\t\t\t\t\t\t'_' => (string) $img_w,\n\t\t\t\t\t\t\t'Units' => 'pixels',\n\t\t\t\t\t\t),\n\t\t\t\t\t);\n\t\t\t\t\t//var_dump('<pre>',$img_val ,'</pre>');\n\n\t\t\t\t\t$imgs[$cc][\"{$ImageSize}Image\"] = $img_val;\n\n\t\t\t\t\t// first found image resource => the main product image\n\t\t\t\t\tif ( ! isset($imgsize[\"{$ImageSize}Image\"])\n\t\t\t\t\t\t|| ! is_array($imgsize[\"{$ImageSize}Image\"])\n\t\t\t\t\t\t|| empty($imgsize[\"{$ImageSize}Image\"])\n\t\t\t\t\t) {\n\t\t\t\t\t\t$imgsize[\"{$ImageSize}Image\"] = $img_val;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$cc++;\n\t\t\t}\n\t\t\t// end foreach sub-main\n\t\t}\n\t\t// end foreach main\n\t\t$imgs = array_values( $imgs ); // reset numerical keys if necessary\n\t\t//var_dump('<pre>', $imgsize, $imgs, '</pre>'); echo __FILE__ . \":\" . __LINE__;die . PHP_EOL;\n\n\t\t$ret = array_replace_recursive( $ret, $imgsize, array(\n\t\t\t'ImageSets' => array(\n\t\t\t\t'ImageSet' => $imgs,\n\t\t\t),\n\t\t));\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "053e9d595bfa428a927006fcc09b9255", "score": "0.569543", "text": "static function getImages($resource_items) {\n $resource_items = self::checkGetArray($resource_items);\n $images = array();\n foreach ($resource_items as $item) {\n $images[] = new ImgurImage(json_encode($item));\n }\n return $images;\n }", "title": "" }, { "docid": "7f6b3867e5c2bead6139f921ce02cb25", "score": "0.56935525", "text": "function getImages($match = \"\", $up = 0) {\n\t\t$l = $this->document->getElementsByTagName(\"img\");\n\t\t$ll = array();\n\t\tforeach ($l as $link) {\n\t\t\t$src = $link->getAttribute(\"src\");\n\t\t\tif ($match == \"\" || ($src && strstr($src, $match))) {\n\t\t\t\tif ($up > 0) {\n\t\t\t\t\t$c = $up;\n\t\t\t\t\t$el = $link;\n\t\t\t\t\twhile ($c > 0 && $el->parentNode) {\n\t\t\t\t\t\t$el = $el->parentNode;\n\t\t\t\t\t\t$c --;\n\t\t\t\t\t}\n\t\t\t\t\t$pp = new PageParser();\n\t\t\t\t\t$pp->deriveDom($this, $el);\n\t\t\t\t\t$ll[] = $pp;\n\t\t\t\t} else {\n\t\t\t\t\t$pp = new PageParser();\n\t\t\t\t\t$pp->deriveDom($this, $link);\n\t\t\t\t\t$ll[] = $pp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ll;\n\t}", "title": "" }, { "docid": "e658543a825dadd4f9de85566849f260", "score": "0.5683265", "text": "public function images(): Image\n {\n return RokkaClientFactory::getImageClient($this->organization, $this->apiKey, $this->requestOptions);\n }", "title": "" }, { "docid": "28b67341b62cb7f331b4182481dd1c5b", "score": "0.56804925", "text": "public function nodes()\n\t{\n\t\tif( $this->cachedNodes === NULL )\n\t\t{\n\t\t\t$this->cachedNodes = array();\n\t\t\t\n\t\t\tforeach ( \\IPS\\Db::i()->select( '*', 'core_clubs_node_map', array( 'club_id=?', $this->id ) ) as $row )\n\t\t\t{\n\t\t\t\t$class\t\t= $row['node_class'];\n\t\t\t\t$classBits\t= explode( '\\\\', $class );\n\n\t\t\t\tif( !\\IPS\\Application::load( $classBits[1] )->_enabled )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->cachedNodes[ $row['id'] ] = array(\n\t\t\t\t\t'name'\t\t\t=> $row['name'],\n\t\t\t\t\t'url'\t\t\t=> \\IPS\\Http\\Url::internal( $class::$urlBase . $row['node_id'], 'front', $class::$urlTemplate, array( \\IPS\\Http\\Url\\Friendly::seoTitle( $row['name'] ) ) ),\n\t\t\t\t\t'node_class'\t=> $row['node_class'],\n\t\t\t\t\t'node_id'\t\t=> $row['node_id'],\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->cachedNodes;\n\t}", "title": "" }, { "docid": "97b8302e872f7a0719af33a524b79635", "score": "0.56724113", "text": "public function images(): Relation;", "title": "" }, { "docid": "884871e45bc30da409702dc4ddda2c04", "score": "0.56722474", "text": "function get_images(){\n\t\t\t$images = $this->images;\n\t\t\tif ( empty($images) || !is_array($images ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn $images;\n\t\t}", "title": "" }, { "docid": "279ccc9356c09ae60cb459eef372eaf9", "score": "0.5667301", "text": "public function getGalleryImages(): SS_List {\n \t$list = new ArrayList();\n \tforeach ($this->SortedImages() as $image) {\n \t\t$list->add(new GalleryImage($image));\n\t\t}\n\n \treturn $list;\n\t}", "title": "" }, { "docid": "434b7fe6175e82aba888ebc9863020b9", "score": "0.5661621", "text": "public function images()\n {\n return $this->morphOne(Image::class,'ref');\n }", "title": "" }, { "docid": "4edf5bed126b59155fc410e8b320090f", "score": "0.56608266", "text": "public function images (){\n return $this->morphOne(Image::class, 'images');\n }", "title": "" }, { "docid": "b2591ef351e79393619e2dc5febc7281", "score": "0.5654931", "text": "public function getChildren()\n {\n $parentImgObj = $this;\n return Image::where('parent_id', $parentImgObj->id)->get();\n }", "title": "" }, { "docid": "f53857cc19286f014807d21430951a56", "score": "0.56207436", "text": "public function getImgs()\n {\n return $this->imgs;\n }", "title": "" }, { "docid": "21bf2f112022097495511267d0c1d30a", "score": "0.5617414", "text": "public function getImages()\n {\n return \\Storage::disk('image-manager')->files();\n }", "title": "" }, { "docid": "e007fa6ce3ef62aa2ebe897423bb5e5e", "score": "0.56153536", "text": "public function images()\n {\n return $this->morphToMany('App\\Images', 'imageable');\n }", "title": "" }, { "docid": "5bbddd375504d2f316609e4c2e58aab3", "score": "0.5600724", "text": "private function getImagesArray($entity){\n \t \n \t$imagesDir = __DIR__.'/../../../../web/uploads/awworxshare/'.$entity->getFolder();\n \t//$images = scandir($imagesDir);\n \t$em = $this->getDoctrine()->getManager('worxshare');\n \t\n \t$imagesFiles = array();\n \t\n \t$images = $em->getRepository('AWWorxShareBundle:ProjectsImages')->findBy(array('projectId' => $entity->getId()));\n \tforeach($images as $file)\n \t{\n \t\t//if (!is_dir(\"$imagesDir/$file\"))\n \t\t//{\n \t\t$image = array();\t\n \t\t\n \t\t$image[\"id\"] = $file->getId();\n \t\t$image[\"name\"] = $file->getName();\n \t\t$image[\"unique_name\"] = $file->getUniqueName();\n \t\t$image[\"info\"] = $file->getInfo();\n \t\t\n \t\tarray_push($imagesFiles, $image);\n \t\t//}\n \t}\n \t\n \t$entity->images = $imagesFiles;\n \t\n \treturn $entity;\n }", "title": "" }, { "docid": "ae6894f419b61dc8f75b74a93be3c06f", "score": "0.55995953", "text": "protected\n function images($content)\n {\n $crawler = new Crawler($content);\n $images = $crawler->filter('img')->each(function (Crawler $node, $i) {\n return $node->attr('src');\n });\n\n return $images;\n }", "title": "" }, { "docid": "d29265bb1545f9fa49ae68f055921ac4", "score": "0.5597213", "text": "function flattenImages(){}", "title": "" }, { "docid": "ed8f96ca99d56c7f2eedfd2c705e4faa", "score": "0.5587797", "text": "function getImages() {\n $db = phpmotorsConnect();\n $sql = 'SELECT imgId, imgPath, imgName, imgDate, inventory.invId, invMake, invModel FROM images JOIN inventory ON images.invId = inventory.invId';\n $stmt = $db->prepare($sql);\n $stmt->execute();\n $imageArray = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n\n return $imageArray;\n }", "title": "" }, { "docid": "abc595df8028b8f4c00d9f23e93f2ce7", "score": "0.5586728", "text": "public function resultListToArray(Collection $list): array\n {\n $images = [];\n foreach ($list as $image) {\n $images[$image->id] = $this->imageToArray($image);\n }\n return $images;\n }", "title": "" }, { "docid": "dad2d17482cfa7e818750fb4af63f2f0", "score": "0.5584847", "text": "private function nodeArray()\n {\n $sql = \"\n SELECT t1.node_id, t1.parent_node_id\n FROM _db_core_node_items as t1\n ORDER BY t1.rank\n ASC\n \";\n\n $db = $this->db;\n $main_query = $db->queryFAR($sql);\n\n foreach ($main_query as $main_query_array) {\n $parent_node_id = (string)$main_query_array['parent_node_id'];\n $node_id = (string)$main_query_array['node_id'];\n\n // Collect all root node items.\n if (!$parent_node_id) {\n $this->rootNodeFamily[] = (string)$node_id;\n } // Collect all root parents node items.\n else {\n $this->parentNodeFamily[] = (string)$parent_node_id;\n }\n // Save node items per group.\n $this->groupedNodeItems[\"$parent_node_id\"][] = (string)$node_id;\n }\n\n // Structure start point.\n $this->divideRootNodeItems();\n }", "title": "" }, { "docid": "245bed6742459c655fdc15a26b24c004", "score": "0.5579277", "text": "public function images()\n {\n return $this->hasMany('App\\Models\\Admin\\BranchImage')->orderBy('order', 'ASC');\n }", "title": "" }, { "docid": "b38918f974c2e68b4f41e460016319b9", "score": "0.5572928", "text": "private function getImages()\n {\n $photos = $this->event->get('attachments');\n $images = [];\n\n foreach ($photos as $photo) {\n\n if (!isset($photo['photo'])) {\n continue;\n }\n\n $firstPhoto = $photo;\n $sizes = $firstPhoto['photo']['sizes'];\n\n $biggest = null;\n $sizeb = 0;\n\n foreach ($sizes as $size) {\n if ($size['height'] > $sizeb) {\n $biggest = $size;\n $sizeb = $size['height'];\n }\n }\n\n $image = new Image($biggest['url'], $biggest);\n $images[] = $image;\n }\n\n return $images;\n }", "title": "" }, { "docid": "999382c5648c7bc5fa1b6ed1f3eea846", "score": "0.5531324", "text": "public function getImageTypes()\r\n {\r\n return [\r\n 'image' => [\r\n 'code' => 'images',\r\n 'value' => $this->getElement()->getDataObject()->getImages(),\r\n 'label' => 'Template Images',\r\n 'scope' => 'Template Images',\r\n 'name' => 'template-images',\r\n ]\r\n ];\r\n }", "title": "" }, { "docid": "13d5618a8d9d95540a99ebe33b83f336", "score": "0.55153257", "text": "public function actionImageList() {\n $images = array();\n $handler = opendir(Yii::app()->basePath . '/../userdata/' . Yii::app()->session['uid'] . '/image');\n while ($file = readdir($handler)) {\n if ($file != \".\" && $file != \"..\")\n $images[] = $file;\n }\n closedir($handler);\n\n $jsonArray = array();\n\n foreach ($images as $image)\n $jsonArray[] = array(\n 'thumb' => Yii::app()->baseUrl . '/mailer/userdata/' . Yii::app()->session['uid'] . '/image/' . $image,\n 'image' => Yii::app()->baseUrl . '/mailer/userdata/' . Yii::app()->session['uid'] . '/image/' . $image,\n );\n\n header('Content-type: application/json');\n echo CJSON::encode($jsonArray);\n }", "title": "" }, { "docid": "5dac82fbb2e8153befd3bee870614eff", "score": "0.54970056", "text": "public function getImages($params, $context)\n {\n $this->validateMethodContext(\n $context,\n array(\"role\" => OMV_ROLE_ADMINISTRATOR)\n );\n $settings=$this->database->getAssoc($this->dataModelPath);\n\n $objects = array();\n if ($settings['enabled']) {\n if ($settings[\"showDanglingImages\"]) {\n $incDangling = false;\n } else {\n $incDangling = true;\n }\n\n $objects = OMVModuleDockerUtil::getImageList(\n $settings['apiPort'],\n $incDangling\n );\n }\n return $objects;\n }", "title": "" }, { "docid": "e8016e9405d2bffef7a13ed465c4a414", "score": "0.54557455", "text": "public function getImages() {\r\n\t\t$tmpImgArr = array();\r\n\t\tif( $this->images ) {\r\n\t\t\t$tmpImgArr = explode( ',', $this->images );\r\n\t\t\t\r\n\t\t\tfor( $i = 0; $i < sizeof( $tmpImgArr ); $i++ ) {\r\n\t\t\t\t$tmpImgArr[$i] = 'uploads/pics/' . $tmpImgArr[$i]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $tmpImgArr;\r\n\t}", "title": "" }, { "docid": "28fb12ec7bc323ac19db2544de3e2270", "score": "0.54519826", "text": "function get_images() {\n\n\t// open the connection to the database.\n\t$connection = mysql_open();\n\t\t\t\t\t\n\t//all the values can be loaded into the Item data.\t\t\t\n\t$query = \"select image_name, image from leaf_images where image_name like 'images/leaf100/t6/t%.jpg' order by image_id\";\n\t\n\t//use the msql command to search using query and connection\n\t$results = mysql_query($query,$connection) or showerror();\n\t\n\t//Create an array and and put the items in it.\n $images = array();\n while ($image = mysql_fetch_assoc($results)) {\n $images[] = $image;\n //echo $image['image'];\n \t}\n\t\n\t//print out the JSON values\n\t/*echo \"[\";\n foreach($images as $image_name){\n \tprint(json_encode($image_name));\n \techo \",\";\n }\n echo \"]\";*/\n \n //echo sizeof($images);\n \n\tmysql_close($connection) or showerror();\n\t\n\tforeach($images as $key=>$value){\n \t$newArrData[$key] = $images[$key];\n \t$newArrData[$key]['image'] = base64_encode($images[$key]['image']);\n\t}\n\theader('Content-type: application/json');\n\techo json_encode($newArrData);\n}", "title": "" }, { "docid": "dcb65222de78c865812d41979fd8f2cb", "score": "0.54491794", "text": "public function getPictures() {\n\n $spl = new SplObjectStorage();\n\n $pictures = $this->getTable()->getPictures();\n foreach ($pictures as $p) {\n try {\n $picture = new Yourdelivery_Model_Satellite_Picture($p['id']);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $spl->attach($picture);\n }\n return $spl;\n }", "title": "" }, { "docid": "9821c8f0b5ed607305ce5367a0160d92", "score": "0.54444736", "text": "function createImage($svg){\n\t//elemID, image url\n\t$image = array();\n\t//ElemID, in this case, is 5\n\tarray_push($image, 5);\n\t//urls are of the form pid_eid.png\n\tarray_push($image, \"1_5.png\");\n\treturn $image;\n}", "title": "" }, { "docid": "db193635aef316af5136dbe4090b08c3", "score": "0.54399353", "text": "function goods_list_pics($goodslist){\n\t$pics = array();\n\tforeach($goodslist as $gtp=>$gt) {\n\t\t$pic = get_the_post_thumbnail($gtp, array(47,47));\n\t\tif(empty($pic))\n\t\t\t$pic = \"<img src='\".get_template_directory_uri().\"/img/default.png' width='47' height='47'>\";\n\t\t$pics[$gtp] = $pic;\n\t}\n\treturn $pics;\n}", "title": "" }, { "docid": "c12e38b28ffafc0cba9e30749c2fb9ab", "score": "0.5438889", "text": "public function childNodes(): array;", "title": "" }, { "docid": "606efe25ecab75f8987cecd4f5ea2672", "score": "0.54305387", "text": "function get_images($object,$position,$base_url){\n \n $images_array=array();\n $count=0;\n $div2=$object->item($position);\n $images=$div2->getElementsByTagName('img');\n for($i = 0; $i < $images->length; $i++){\n $image = $images->item($i);\n $img = $image->getAttribute('src');\n if( strcmp(\"http://\",substr($img, 0,7)) && strcmp(\"https://\",substr($img, 0,8)) && !empty($img)){\n \n $img_link = $base_url.$img;\n if(!in_array($img_link, $images_array)){\n $images_array[$count] = $base_url.$img;\n $count++;\n }\n }\n else\n if( !strcmp($base_url , substr($img, 0 , strlen($base_url))) && !empty($img) && !in_array($img, $images_array)){\n $images_array[$count] = $img;\n $count++;\n }\n } \n \n return $images_array;\n}", "title": "" }, { "docid": "2209b8f2e42e074d7a99b579a4b538a3", "score": "0.5428731", "text": "function get_rotator_images()\n {\n $rotator_name = Params::get(\"rotator_name\");\n\n $result = array();\n\n $d = new Dir(self::ROTATOR_GALLERIES_ROOT_PATH.$rotator_name);\n\n if ($d->exists())\n {\n $all_files = $d->listFiles();\n\n foreach ($all_files as $f)\n {\n $result[] = $f->getFilename();\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "2eeb07a621942cc016dd7ee4e69a300a", "score": "0.5424044", "text": "public function getImages()\n {\n if (is_null($this->images)) {\n /** @psalm-var ?list<stdClass> $data */\n $data = $this->raw(self::FIELD_IMAGES);\n if (is_null($data)) {\n return null;\n }\n $this->images = ImageCollection::fromArray($data);\n }\n\n return $this->images;\n }", "title": "" }, { "docid": "2eeb07a621942cc016dd7ee4e69a300a", "score": "0.5424044", "text": "public function getImages()\n {\n if (is_null($this->images)) {\n /** @psalm-var ?list<stdClass> $data */\n $data = $this->raw(self::FIELD_IMAGES);\n if (is_null($data)) {\n return null;\n }\n $this->images = ImageCollection::fromArray($data);\n }\n\n return $this->images;\n }", "title": "" }, { "docid": "05ecc378e67e83eda95732d0c076eac1", "score": "0.5423955", "text": "function getImages() {\n\t\treturn array_keys( self::$images );\n\t}", "title": "" }, { "docid": "7e4896e5016652c643b6cc74328deb5b", "score": "0.5419409", "text": "public function getImagesBlob () {}", "title": "" }, { "docid": "87480cefeedc83d18c0a87e4dc6cf2cd", "score": "0.5417184", "text": "private function setNodes($nodes=null){\n $this->nodes = $nodes !== null? $nodes : array(\n array( // Row\n array('name'=>'Shrine', 'type'=>'shrine building', 'url'=>'shrine', 'image'=>'shrine.png', 'tile_image'=>'concentric_shrine.png', 'xcoord'=>0, 'ycoord'=>0, 'id'=>1)\n , array('name'=>'', 'type'=>'rice-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>12)\n , array('name'=>'Road', 'type'=>'north-south-road', 'url'=>'', 'tile_image'=>'north-south-road.png', 'xcoord'=>2, 'ycoord'=>0, 'id'=>3)\n , array('name'=>'', 'type'=>'rice-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>12)\n , array('name'=>'Doshin', 'type'=>'doshin building', 'url'=>'doshin', 'image'=>'doshin.png', 'tile_image'=>'doshin_building.png', 'xcoord'=>1, 'ycoord'=>0, 'id'=>2)\n\n ),\n\n array( // Row\n array('name'=>'', 'type'=>'wheat-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>15)\n , array('name'=>'Dojo', 'type'=>'dojo building', 'url'=>'dojo', 'tile_image'=>'concentric_leaf.png', 'xcoord'=>1, 'ycoord'=>1, 'id'=>7)\n , array('name'=>'Road', 'type'=>'north-south-road', 'url'=>'', 'tile_image'=>'north-south-road.png', 'xcoord'=>2, 'ycoord'=>0, 'id'=>3)\n , array('name'=>'Shop', 'type'=>'weapons-shop building', 'url'=>'shop', 'tile_image'=>'concentric_star.png', 'xcoord'=>0, 'ycoord'=>1, 'id'=>6)\n , array('name'=>'', 'type'=>'rice-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>12)\n\n ),\n\n array(// Row\n array('name'=>'Rice Paddy', 'type'=>'wheat-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>10)\n , array('name'=>'Road', 'type'=>'east-west-road', 'url'=>'', 'xcoord'=>2, 'ycoord'=>1, 'id'=>8)\n , array('name'=>'Village Square', 'type'=>'village-square', 'url'=>'village', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>12)\n , array('name'=>'Road', 'type'=>'east-west-road', 'url'=>'', 'xcoord'=>2, 'ycoord'=>1, 'id'=>8)\n , array('name'=>'Fields', 'type'=>'rice-field', 'url'=>'work', 'tile_image'=>'concentric_field.png', 'xcoord'=>2, 'ycoord'=>14, 'id'=>14)\n // Unnamed node.\n ),\n\n array(// Row\n array('name'=>'', 'type'=>'wheat-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>15)\n , array('name'=>'Casino', 'type'=>'casino building', 'url'=>'casino', 'tile_image'=>'elemental_coin.png', 'xcoord'=>0, 'ycoord'=>2, 'id'=>11)\n , array('name'=>'Road', 'type'=>'north-south-road', 'url'=>'', 'tile_image'=>'north-south-road.png', 'xcoord'=>2, 'ycoord'=>1, 'id'=>17)\n , array('name'=>'Bath House', 'type'=>'bath-house building', 'url'=>'duel', 'tile_image'=>'concentric_star.png', 'xcoord'=>2, 'ycoord'=>13, 'id'=>19)\n , array('name'=>'Fields', 'type'=>'rice-field', 'url'=>'work', 'tile_image'=>'concentric_field.png', 'xcoord'=>2, 'ycoord'=>14, 'id'=>14)\n ),\n\n array(// Row\n array('name'=>'Rice Paddy', 'type'=>'wheat-field', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>10)\n , array('name'=>'Grassy Knoll', 'type'=>'grass', 'url'=>'', 'tile_image'=>null, 'xcoord'=>0, 'ycoord'=>2, 'id'=>11)\n , array('name'=>'Road', 'type'=>'north-south-road', 'url'=>'', 'tile_image'=>'north-south-road.png', 'xcoord'=>2, 'ycoord'=>1, 'id'=>17)\n , array('name'=>'Fields', 'type'=>'rice-field', 'url'=>'work', 'tile_image'=>'concentric_field.png', 'xcoord'=>2, 'ycoord'=>13, 'id'=>13)\n , array('name'=>'Fields', 'type'=>'rice-field', 'url'=>'work', 'tile_image'=>'concentric_field.png', 'xcoord'=>2, 'ycoord'=>14, 'id'=>14)\n )\n );\n }", "title": "" }, { "docid": "50db8fd90b0e14b6d7f0426caf96e057", "score": "0.5406797", "text": "public function images(){\n return $this->morphMany(Image::class,\"imageable\");\n }", "title": "" }, { "docid": "4fbe956cbe18ae70f4fc0fc2dfa384f5", "score": "0.53973395", "text": "public function getImages()\n {\n \treturn $this->getFilesByPattern('/.*\\.(jpeg|jpg|gif|png)/');\n }", "title": "" }, { "docid": "2ee4c6d96ba511fc008e7eada9c07546", "score": "0.53822386", "text": "public function getSideBarImages(){\n \t$images = new Image();\n \t$images = $this->where('type', IMAGE::SIDE_BAR)\n \t->where('active', true)\n \t->orderBy('order', 'asc')\n \t->get();\n \treturn $images;\n }", "title": "" }, { "docid": "b7ac019e2852e2124231c49c6c2c2610", "score": "0.537421", "text": "private function getImages() {\n\n\t\t$sql = 'SELECT p.file_name, p.alt_text FROM product_images as p JOIN product_to_images \n ON p.file_name = product_to_images.file_name \n WHERE product_to_images.pid = :pid \n ORDER BY product_to_images.sort_order DESC';\n \n\t\t$db = DB::getInstance();\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute(array('pid' => $this->pid));\n\t\t$results = $query->fetchAll(\\PDO::FETCH_ASSOC);\n\t\tif(!empty($results)) {\n\n for ($i=0;$i<count($results);$i++) {\n $results[$i]['file_name'] = $results[$i]['file_name'];\n $results[$i]['alt_text'] = $results[$i]['alt_text'];\n }\n\n\t\t\t$this->images = $results;\n\t\t}\n\t\telse { \n\t\t\t$this->images = false;\t\n\t\t}\n\t}", "title": "" }, { "docid": "dfb4dd6a6a34ee1dbdb5eea2abb22ee4", "score": "0.5370523", "text": "public function getImages()\n {\n $path = $this->config['uploadPath'];\n $allowExt = implode(',', $this->config['allowExt']);\n $images = glob(\"{$path}*.{{$allowExt}}\", GLOB_BRACE);\n if (empty($images)) {\n return array();\n }\n foreach ($images as &$image) {\n $image = static::getImageInfo($image);\n }\n usort($images, function ($a, $b) { return $a['date'] - $b['date']; });\n return $images;\n }", "title": "" }, { "docid": "f28cbe6da3fc6862c5feb3a16aef76bd", "score": "0.53671974", "text": "public function getAllNodes()\n {\n $db = new Database();\n $sql = \"SELECT * FROM nodes WHERE ID != 1\";\n $db->executeWithoutParam($sql);\n $resultSet = $db->resultset();\n $db = null;\n $nodeList = array();\n foreach ($resultSet as $value) {\n array_push($nodeList, $value);\n }\n return $nodeList;\n }", "title": "" }, { "docid": "cea1b05e7d4cbcae997521838f36f98d", "score": "0.5362318", "text": "public function images()\n {\n return $this->hasMany(Image::class, 'item_id')\n ->where('type', 'images')\n ->orderBy('orderBy','ASC');\n }", "title": "" } ]
c9de66208d80ffb3d60242daa4701a63
Get the aggregates of an payment.
[ { "docid": "ddedd43279cb5aa8f545e2a89c49ff6d", "score": "0.74931717", "text": "private function get_aggregates(array $payment)\n\n {\n\n $payment['service'] = $this->db->get_where('wb_services',\n\n ['id' => $payment['id_services']])->row_array();\n\n $payment['provider'] = $this->db->get_where('wb_users',\n\n ['id' => $payment['id_users_provider']])->row_array();\n\n $payment['customer'] = $this->db->get_where('wb_users',\n\n ['id' => $payment['id_users_customer']])->row_array();\n\n return $payment;\n\n }", "title": "" } ]
[ { "docid": "4fe29e55b8a38f4cd186c29ac2624277", "score": "0.6609518", "text": "public function sumOfPayments(){\n return BillEntryPayment::where([\n 'idBillEntry' => $this->idBillEntry\n ])->sum('amount');\n }", "title": "" }, { "docid": "e08d4fa30283f356cf6c9a9d3f56b78e", "score": "0.65791696", "text": "public static function getSummary($year, $payments=TRUE) {\n\n\t\n\n\t\tif(!is_numeric($year)){\n\n\t\t\treturn array();\n\n\t\t}\n\n\t\n\n\t\t$records = Doctrine_Query::create ()\n\n\t\t->select ( \"o.order_id,\n\n\t\t\t\tMONTH(i.invoice_date) as month,\n\n\t\t\t\tdate_format(i.invoice_date,'%M') as monthname,\n\n\t\t\t\tYEAR(i.invoice_date) as yearnum,\n\n\t\t\t\tSUM(o.total) as total,\n\n\t\t\t\tSUM(o.vat) as vat,\n\n\t\t\t\tSUM(o.grandtotal) as grandtotal\" )\n\n\t\t\t\t->from ( 'Orders o' )\n\n\t\t\t\t->leftJoin ( 'o.Invoices i' )\n\n\t\t\t\t->where('YEAR(i.invoice_date) = ?', $year)\n\n\t\t\t\t->andWhere('o.invoice_id <> ?', '')\n\n\t\t\t\t->andWhere('o.status_id = ?', Statuses::id(\"complete\", \"orders\"))\n\n\t\t\t\t->groupBy('YEAR(i.invoice_date)')\n\n\t\t\t\t->addGroupBy('MONTH(i.invoice_date)')\n\n\t\t\t\t->execute ( array (), Doctrine_Core::HYDRATE_ARRAY );\n\n\t\tif($payments){\n\n\t\t\tfor ($i=0;$i<count($records);$i++) {\n\n\t\t\t\t$records[$i]['subrecords'] = Payments::getAllPaymentsbyMonthYear($records[$i]['month'], $year);\n\n\t\t\t}\n\n\t\t}\n\n\t\t \n\n\t\treturn $records;\n\n\t}", "title": "" }, { "docid": "286c3347827e152f579c6dac7db25c9d", "score": "0.6568382", "text": "function getAllPayments() {\n\t\t$q = Doctrine_Query::create()->from('Payment p')->where(\"p.farmgroupid = '\".$this->getID().\"'\")->orderby(\"p.trxdate desc\");\n\t\t$result = $q->execute();\n\t\t// debugMessage($result->toArray());\n\t\tif(!$result){\n\t\t\t$result = $payment = new Payment();\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "7e915ac869937a913750a9dafe6cdfdc", "score": "0.640842", "text": "public function getPayments();", "title": "" }, { "docid": "cc0bd8bb2f11533c97ac7acc7aef96db", "score": "0.62899226", "text": "public function totalPayments(): Payments\n {\n return new Payments($this->conn->query('SELECT SUM(amount) as `amount`, COUNT(*) as `count` FROM payments')->fetch(PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "b302e00b573f8e8c69251878b074b6ae", "score": "0.6120022", "text": "public function getPayments() {\n $sql = \"SELECT * FROM Payment\";\n $stmt = $this->db->query($sql);\n $results = [];\n while($row = $stmt->fetch()) {\n $results[] = new PaymentEntity($row);\n }\n return $results;\n }", "title": "" }, { "docid": "965d4b396da08ca1a098f01a1e5817dc", "score": "0.6109122", "text": "public function getPayments(){\n $payment = [];\n foreach ($this->data as $payment) {\n $newPayment = [];\n $newPayment['accounting_id'] = IndexSanityCheckHelper::indexSanityCheck('PaymentID', $payment);\n $newPayment['status'] = IndexSanityCheckHelper::indexSanityCheck('Status', $payment);\n $newPayment['updated_at'] = IndexSanityCheckHelper::indexSanityCheck('UpdatedDateUTC', $payment);\n array_push($payment, $newPayment);\n }\n\n return $payment;\n }", "title": "" }, { "docid": "c2a44de66a9d9f119343910615fba8d1", "score": "0.6095601", "text": "public function payments()\n {\n return DB::select()\n ->from('orders_orderpayments')\n ->where('order_id', '=', $this->id)\n ->order_by('created', 'DESC')\n ->execute()\n ->as_array();\n }", "title": "" }, { "docid": "d37a11ce0222474eee8a52496eda1be9", "score": "0.602599", "text": "public function getStatistics()\n {\n if (!request()->user()->hasRole('superadmin')) {\n abort(403, 'Unauthorized action.');\n }\n \n $currency = System::getBusinessCurrency('currency_id');\n\n //payment status\n $transaction = Transaction::OfTransaction('invoice')\n ->where('status', 'final');\n\n if (!empty(request()->get('project_id'))) {\n $transaction->where('transactions.project_id', request()->get('project_id'));\n }\n\n $payment_stats = $transaction->select(\n 'payment_status',\n DB::raw('count(id) as payment_status_count')\n )\n ->groupBy('payment_status')\n ->get();\n\n //transaction Amount calculation\n $paid_amount = Transaction::OfTransaction('invoice')\n ->where('status', 'final')\n ->leftjoin('transaction_payment_lines as tpl', 'transactions.id', '=', 'tpl.transaction_id');\n\n if (!empty(request()->get('project_id'))) {\n $paid_amount->where('transactions.project_id', request()->get('project_id'));\n }\n\n $paid_amount = $paid_amount->select(DB::raw(\"SUM(amount * conversion_rate) as paid_amount\"))\n ->first();\n\n $data = ['payment_stats' => $payment_stats, 'currency' => $currency, 'paid_amount' => $paid_amount];\n \n return $this->respond($data);\n }", "title": "" }, { "docid": "571a00b1ed5c0c141251737d9475f5b1", "score": "0.596", "text": "public function getPayments()\n {\n return $this->hasMany(Payment::className(), ['ext_id' => 'ext_id']);\n }", "title": "" }, { "docid": "056320ce03462436b43b1b933a4de650", "score": "0.59554726", "text": "public function getPaymentHistories() {\n //get information of the logged-in customer\n $customer_id = Mage::getSingleton('customer/session')->getCustomerId();\n $member_id = Mage::helper('membership')->getMemberId($customer_id);\n\n //get payment history colletion\n $payment_history_collection = Mage::getModel('membership/paymenthistory')->getCollection()\n ->addFieldToFilter('member_id', $member_id)\n ->setOrder('start_time', 'DESC');\n\n return $payment_history_collection;\n }", "title": "" }, { "docid": "57e57bed8c71873ca81d32916dc8f851", "score": "0.5864267", "text": "public function getPayments()\n {\n return $this->payments;\n }", "title": "" }, { "docid": "8f8220e0700898bdd577ae40c2149d62", "score": "0.58606875", "text": "protected function paymentsData()\n {\n $charges = $this->filterUnuccessfulCharges();\n\n return $this->days()->mapToGroups(function ($day) use ($charges) {\n return [$day->format('M Y') => $charges->filter(function ($charge) use ($day) {\n return $charge->created >= $day->startOfDay()->getTimestamp()\n && $charge->created <= $day->endOfDay()->getTimestamp();\n })->count()];\n });\n }", "title": "" }, { "docid": "c3f2fe29b77ba4c07b686e63cae73c23", "score": "0.5848976", "text": "public function aggregatedFields(): array;", "title": "" }, { "docid": "ff3e7797bad4f6994421aba184d8b46d", "score": "0.5847806", "text": "public function getPayments()\n {\n return $this->hasMany(Payments::className(), ['customerId' => 'customerId']);\n }", "title": "" }, { "docid": "a68636f8493f133db88a34e5ac94abcb", "score": "0.58444303", "text": "public function sumPayment()\n {\n $queryString=\"SELECT SUM(prix) as nb\n FROM payment\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }", "title": "" }, { "docid": "4c715951ff34eee4e6a3fedeeaece955", "score": "0.5832459", "text": "public function getPayments()\n {\n return $this->Payments;\n }", "title": "" }, { "docid": "214723c09adc90b50cab9efa71af5ce5", "score": "0.5819097", "text": "public function payments() {\n return $this->hasMany(\n lydia()->config('models.payment'), 'transaction_id'\n ) ;\n }", "title": "" }, { "docid": "ac0bf4f5d510cf4a6a005b3f99040299", "score": "0.57507247", "text": "public function totalUserPayments(): Payments\n {\n $statement = $this->conn->prepare('SELECT SUM(amount) as `amount`, COUNT(*) as `count` FROM payments WHERE payer = :payer');\n $statement->bindParam(':payer', $this->payer);\n $statement->execute();\n return new Payments($statement->fetch(PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "e38ccd8c9c7ae317533b7f4888b9126c", "score": "0.5736501", "text": "public function aggs() :Aggregation\n {\n return new Aggregation();\n }", "title": "" }, { "docid": "b79c312e6a3fd788b7e4bcc16cfde897", "score": "0.57287765", "text": "public function getPayments(){\n $payments = [];\n foreach ($this->data['Items'] as $payment) {\n $newPayment = [];\n $newPayment['accounting_id'] = IndexSanityCheckHelper::indexSanityCheck('UID', $payment);\n $newPayment['date'] = IndexSanityCheckHelper::indexSanityCheck('Date', $payment);\n $newPayment['amount'] = IndexSanityCheckHelper::indexSanityCheck('AmountReceived', $payment);\n $newPayment['reference_id'] = IndexSanityCheckHelper::indexSanityCheck('Memo', $payment);\n $newPayment['type'] = IndexSanityCheckHelper::indexSanityCheck('PaymentMethod', $payment);\n\n if (array_key_exists('Account', $payment)) {\n if ($payment['Account']) {\n $newPayment = $this->parseAccount($newPayment, $payment['Account']);\n }\n }\n\n if (array_key_exists('Invoices', $payment)) {\n if ($payment['Invoices']) {\n $newPayment = $this->parseInvoices($newPayment, $payment['Invoices']);\n }\n }\n\n\n if (array_key_exists('ReceiptNumber', $payment)) {\n if ($payment['ReceiptNumber']) {\n $newPayment['is_reconciled'] = true;\n }\n }\n array_push($payments, $newPayment);\n }\n\n return $payments;\n }", "title": "" }, { "docid": "873d85f61af9c56b20f7b802d95806c6", "score": "0.5686992", "text": "public function payments()\n {\n return $this\n ->hasMany(Payment::class);\n }", "title": "" }, { "docid": "577c6158dc2c6a330b48d649e0b7ddec", "score": "0.5657805", "text": "public function payments()\n\t{\n\t\treturn $this->hasMany('App\\Payment');\n\t}", "title": "" }, { "docid": "6cbcec680ec6854b1ef39f5d504a8948", "score": "0.56326354", "text": "public function _aggregate(){\n }", "title": "" }, { "docid": "85640662f8784e876feb4633e8a5d547", "score": "0.5629003", "text": "public function getOrderPaymentCollection(){\n $db = JFactory::getDBO();\n\n $query = \"SELECT * FROM \" . $db->quoteName('#__jeproshop_order_payment') . \" WHERE order_reference = \";\n $query .= $db->quote($this->reference);\n\n $db->setQuery($query);\n return $db->loadObjectList();\n }", "title": "" }, { "docid": "f6768abcb083c17b20c7032a24feff66", "score": "0.5613181", "text": "function get_payments($bill_id)\n {\n\t\t//System::debug($hi);\n\t\treturn $payments = DB::fetch_all('\n\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\t(payment.payment_type_id || \\'_\\' || payment.credit_card_id || \\'_\\' || payment.currency_id || \\'_\\' || payment.bill_id || \\'_\\' || payment.type_dps) as id\n\t\t\t\t\t\t\t,SUM(amount) as total\n\t\t\t\t\t\t\t,SUM(amount*payment.exchange_rate) as total_vnd\n\t\t\t\t\t\t\t,CONCAT(payment.payment_type_id,CONCAT(\\'_\\',payment.currency_id)) as name\n\t\t\t\t\t\t\t,payment.bill_id\n\t\t\t\t\t\t\t,payment.payment_type_id\n\t\t\t\t\t\t\t,payment.credit_card_id\n\t\t\t\t\t\t\t,payment.currency_id\n\t\t\t\t\t\t\t,payment.type_dps\n\t\t\t\t\t\tFROM payment\n\t\t\t\t\t\t\tinner join bar_reservation on payment.bill_id = bar_reservation.id\n\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t('.$bill_id.') AND payment.type=\\'BAR\\'\n\t\t\t\t\t\tGROUP BY payment.payment_type_id,payment.currency_id,payment.bill_id\n\t\t\t\t\t\t,payment.currency_id,payment.type_dps,payment.credit_card_id\n\t\t\t\t');\t\n\t}", "title": "" }, { "docid": "d3da02a421ec5c5ddd810b12f37fc79b", "score": "0.56095546", "text": "public function payments()\n {\n return $this->hasMany(Payment::class);\n }", "title": "" }, { "docid": "6130df46748973dc32a8af2ed7eafbc3", "score": "0.5606441", "text": "public function listPayments(){\n return new ObtieneListadoDePagosRealizadosApi($this->client, $this->config, $this->headerSelector);\n }", "title": "" }, { "docid": "4e0ade64f5e41e967e3b297cd32b7916", "score": "0.5578858", "text": "public static function getAllDefaultPayment()\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\t$data = DB::table('facoop')\n\t\t\t\t\t\t\t->join('chg_app', 'facoop.chgapp_id', '=', 'chg_app.chgapp_id')\n\t\t\t\t\t\t\t->join('charges', 'chg_app.chg_code', '=', 'charges.chg_code')\n\t\t\t\t\t\t\t->join('hfaci_grp', 'facoop.facid', '=', 'hfaci_grp.hgpid')\n\t\t\t\t\t\t\t->join('orderofpayment', 'facoop.oop_id', '=', 'orderofpayment.oop_id')\n\t\t\t\t\t\t\t->join('hfaci_serv_type', 'facoop.hfser_id', '=', 'hfaci_serv_type.hfser_id')\n\t\t\t\t\t\t\t->join('apptype', 'facoop.aptid', '=', 'apptype.aptid')\n\t\t\t\t\t\t\t->get();\n\t\t\t\treturn $data;\n\t\t\t} \n\t\t\tcatch (Exception $e) \n\t\t\t{\n\t\t\t\tAjaxController::SystemLogs($e->getMessage());\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cc54d796ba0a2a2d3628f641911ca110", "score": "0.5568733", "text": "function getAggregateExtract($with_count_all = false){\n $result = array();\n $aggregates = $this->getAggregateDefaults($with_count_all);\n foreach ($aggregates as $name => $val) {\n $result[$name] = $name;\n }\n return $result;\n }", "title": "" }, { "docid": "8a37d25c7efb5ee1d9f80ad6f6365832", "score": "0.5565973", "text": "public function countAllPayment()\n {\n $queryString=\"SELECT COUNT(payment_id) as nb\n FROM payment\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }", "title": "" }, { "docid": "21a1ffa3826bc14dc65a158aad99ff2c", "score": "0.55362505", "text": "protected function getAggregateRows() {\n\n\t\ttx_pttools_assert::isInstanceOf($this->pager, 'tx_ptlist_pager', array('message' => 'No pager object found!'));\n\t\ttx_pttools_assert::isInstanceOf($this->getCurrentListObject(), 'tx_ptlist_list', array('message' => 'No list object found!'));\n\n\t\t$markerArray = array();\n\n\t\tif (!(method_exists($this->getCurrentListObject(), 'getAggregateRowInfo') && method_exists($this->getCurrentListObject(), 'getAllAggregates'))) {\n\t\t\treturn $markerArray; // return empty marker array\n\t\t}\n\n\t\t$aggregateRowsConfig = $this->getCurrentListObject()->getAggregateRowInfo();\n\n\t\tif (is_array($aggregateRowsConfig) && !empty($aggregateRowsConfig)) {\n\n\t\t\t$aggregateData = $this->pager->getAggregateDataForPage(); // this calls listObject's getAllAggregates() method\n\n\t\t\tif (TYPO3_DLOG) t3lib_div::devLog('Aggregated data', 'pt_list', 0, $aggregateData);\n\n\t\t\ttx_pttools_assert::isNotEmptyArray($aggregateData, array('message' => sprintf('No aggregated data found for list \"%s\"!', $this->getCurrentListObject()->get_listId())));\n\n\t\t\t$columnDescriptionCollection = $this->getCurrentListObject()->getAllColumnDescriptions(true)->removeHiddenColumns();\n\n\t\t\tforeach ($aggregateRowsConfig as $rowKey => $row) {\n\t\t\t\t$markerArray[$rowKey] = array();\n\n\t\t\t\t// iterate over all available columns\n\t\t\t\tforeach ($columnDescriptionCollection->keys() as $columnDescriptionIdentifier) { /* @var $columnDescriptionIdentifier string */\n\n\t\t\t\t\t// check if we have an aggrate entry for this field\n\t\t\t\t\tif (is_array($row[$columnDescriptionIdentifier])) {\n\n\t\t\t\t\t\t// retrieve all aggregates referenced in \"aggregateDataDescriptionIdentifier\"\n\t\t\t\t\t\t$values = array(); // array(<aggregateDataDescriptionIdentifier> => <rawAggregateDataDescriptionValue>)\n\t\t\t\t\t\tforeach (t3lib_div::trimExplode(',', $row[$columnDescriptionIdentifier]['aggregateDataDescriptionIdentifier'], 1) as $aggregateDataDescriptionIdentifier) { /* @var $aggregateDataDescriptionIdentifier string */\n\t\t\t\t\t\t\tif (!isset($aggregateData[$aggregateDataDescriptionIdentifier])) {\n\t\t\t\t\t\t\t\tthrow new tx_pttools_exception(sprintf('Could not find aggregate value for \"%s\"', $aggregateDataDescriptionIdentifier));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$values[$aggregateDataDescriptionIdentifier] = $aggregateData[$aggregateDataDescriptionIdentifier];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// render field content\n\t\t\t\t\t\t$markerArray[$rowKey][$columnDescriptionIdentifier] = tx_ptlist_div::renderValues($values, $aggregateRowsConfig[$rowKey][$columnDescriptionIdentifier]);\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// there is now aggregate defined for this field in this row\n\t\t\t\t\t\t$markerArray[$rowKey][$columnDescriptionIdentifier] = '';\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $markerArray;\n\t}", "title": "" }, { "docid": "6bbe81ebd96824a4f2b9dd95c4b9d134", "score": "0.55229217", "text": "protected function getOrderPayments() {\n $payment_storage = $this->entityTypeManager->getStorage('commerce_payment');\n return $payment_storage->loadMultipleByOrder($this->entity);\n }", "title": "" }, { "docid": "0ad74b47d18ef64720afb66a81d8c5ee", "score": "0.55177563", "text": "public static function getAllOrderOfPayment()\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\t$data = DB::table('orderofpayment')->get();\n\t\t\t\treturn $data;\n\t\t\t} \n\t\t\tcatch (Exception $e) \n\t\t\t{\n\t\t\t\tAjaxController::SystemLogs($e->getMessage());\n\t\t\t\treturn 'ERROR';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6aaca57aaca746b92f7f63c665d22bc9", "score": "0.55174893", "text": "public function getAmounts();", "title": "" }, { "docid": "194724de039dafadb3a7344bc137c43a", "score": "0.5511196", "text": "public function payments()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = bill_id, localKey = bill_id)\n return $this->hasMany('App\\Payment','bill_id','bill_id');\n }", "title": "" }, { "docid": "79cd0f1038f2897ec903d1f3eec85e05", "score": "0.55066895", "text": "function aggregate(){\n\n\t\t}", "title": "" }, { "docid": "07d59d97789a948ecc5a33831cdf1166", "score": "0.5475778", "text": "function getOrders()\n{\n $pdo = getPDO();\n $sql = \"SELECT `order`.*, SUM(meal.price) as total FROM `order`\n INNER JOIN order_meal ON `order`.id = order_meal.order_id\n INNER JOIN meal ON meal.id = order_meal.meal_id\n GROUP BY `order`.id\"; \n\n $query = $pdo->prepare($sql);\n $query->execute();\n $resultats = $query->fetchAll(PDO::FETCH_ASSOC);\n \n return $resultats;\n}", "title": "" }, { "docid": "e0673fc018d010697f219ad5eb779f7d", "score": "0.5467723", "text": "public function getAll(): PaymentDumpCollection\n {\n return new PaymentDumpCollection($this->service->all());\n }", "title": "" }, { "docid": "0023ab226af64516adb6e2971e6e7729", "score": "0.54651666", "text": "public function payments() {\n \n return $this->hasMany(Payment::class);\n \n }", "title": "" }, { "docid": "711cb072a109d6adc7ae80cfd158a3ea", "score": "0.5450071", "text": "public function getAggregateValue() {}", "title": "" }, { "docid": "df6f5844c57d6fee800296c72638cd1a", "score": "0.5447738", "text": "private function sales()\n {\n /**\n * Transaction PPOB\n * \n * @return array\n */\n $countPPOB = transactionPPOB::select('price')->sum('price');\n $countSosmed = transactionSosmed::select('price')->sum('price');\n \n /**\n * Addition of both\n * \n * @return integer\n */\n $countOfBoth = $countPPOB + $countSosmed;\n\n /**\n * Transform to array\n * \n * @return array\n */\n $sales = \n [\n 'allSales' => currencyIDR::beCalculated($countOfBoth),\n 'ppobSales' => currencyIDR::beCalculated($countPPOB),\n 'sosmedSales' => currencyIDR::beCalculated($countSosmed),\n ];\n\n /**\n * Print data\n * \n * @return array\n */\n return $sales;\n\n }", "title": "" }, { "docid": "303fd9c317e53d88feb32a7a703289ff", "score": "0.54345745", "text": "public function getAggregations() : ?array\n {\n return $this->aggregations;\n }", "title": "" }, { "docid": "93cd96788437f26369325a473ecd323f", "score": "0.5434561", "text": "public function payments()\n {\n return $this->hasMany('App\\Payment');\n }", "title": "" }, { "docid": "93cd96788437f26369325a473ecd323f", "score": "0.5434561", "text": "public function payments()\n {\n return $this->hasMany('App\\Payment');\n }", "title": "" }, { "docid": "93cd96788437f26369325a473ecd323f", "score": "0.5434561", "text": "public function payments()\n {\n return $this->hasMany('App\\Payment');\n }", "title": "" }, { "docid": "be9d6f21870138ed1c338a04afbcfbcd", "score": "0.5421974", "text": "public function payments()\n {\n return $this->hasMany(TransactionPayment::class);\n }", "title": "" }, { "docid": "a25a87275da92f98d0477b7b1dc5721d", "score": "0.54173887", "text": "public function get_expence_payments($filters)\n {\n // get payment summary\n $this->db->select_sum('amount');\n $this->db->from('expenses');\n $this->db->where('deleted', 0);\n $this->db->where('cash_exp_status', 0);\n\n if (isset($filters['only_debit']) && $filters['only_cash'] != false) {\n $this->db->like('payment_type', $this->lang->line('expenses_cash'));\n }\n\n if (isset($filters['only_debit']) && $filters['only_due'] != false) {\n $this->db->like('payment_type', $this->lang->line('expenses_due'));\n }\n\n if (isset($filters['only_debit']) && $filters['only_check'] != false) {\n $this->db->like('payment_type', $this->lang->line('expenses_check'));\n }\n\n if (isset($filters['only_debit']) && $filters['only_credit'] != false) {\n $this->db->like('payment_type', $this->lang->line('expenses_credit'));\n }\n\n if (isset($filters['only_debit']) && $filters['only_debit'] != false) {\n $this->db->like('payment_type', $this->lang->line('expenses_debit'));\n }\n\n // $this->db->group_by('payment_type');\n\n $payments = $this->db->get()->row();\n\n return $payments;\n }", "title": "" }, { "docid": "2e146f10d570d2e9f4989435fffe09e7", "score": "0.54137456", "text": "public function paymentsByCounry() \n {\n $payments = Payment::with('client')->get()->groupBy('client.country');\n foreach ($payments as $country => $countryPayments) {\n $avarage = [];\n foreach ($countryPayments as $payment) {\n $avarage[] = $payment->amount;\n }\n $result[$country] = intval(array_sum($avarage)/count($avarage));\n }\n return $this->sendResponse($result, 'Avarage income by counries retrieved successfully!');\n }", "title": "" }, { "docid": "f7439c0615e1674a801b60f83ea73c7a", "score": "0.5411146", "text": "public function payments()\n {\n return $this->morphMany(Payment::class, 'paymentable');\n }", "title": "" }, { "docid": "529dde2062ba6f27d0dbdb09edb666fe", "score": "0.54002315", "text": "function getNewsAggregation(){\n\t\t$fields = array();\n\t\t$url = 'news_aggregation';\n\t\t$response = $this->getData($url, $fields);\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "822499d2d0865ba1cf507ab3fedc6de1", "score": "0.53838867", "text": "public function getSchoolOverAllPaymentData(){ \n $payments = $this->schoolPayment::where('status',1)->where('is_deleted',0)->get();\n return $payments;\n }", "title": "" }, { "docid": "4d9b43875d0fcef8b009f6c16f2d5d79", "score": "0.53804576", "text": "public function userTransaction(){\n return $this->select(DB::raw('sum(price) as total'), 'date' )->groupBy(DB::raw('month(date)'))->get();\n }", "title": "" }, { "docid": "90abc53c05e2c142c2530a13f0185f30", "score": "0.53731334", "text": "public function getExpenseSums($period) {\n\t\t$sql = (\"SELECT ecat.name, ecat.id, SUM(ex.amount) sum\n\t\tFROM expenses ex\n\t\tINNER JOIN expenses_category_assigned_to_users ecat\n\t\tON ex.expense_category_assigned_to_user_id = ecat.id\n\t\tAND (ex.date_of_expense BETWEEN :start AND :end)\n\t\tAND ecat.id IN (\n\t\t\tSELECT ecat.id FROM expenses_category_assigned_to_users ecat\n\t\t\tINNER JOIN users\n\t\t\tON users.id = ecat.user_id\n\t\t\tAND users.id = :id\n\t\t)\n\t\tGROUP BY ecat.id\n\t\tORDER BY sum DESC;\");\n\t\t$id = Auth::getUserId();\n\t\treturn Data::dbQuery($sql, $id,$period);\n\t}", "title": "" }, { "docid": "7448483812d5897fe7a1d5946cd0008d", "score": "0.5371505", "text": "public function getAggregate($params = [])\n {\n if ($this->getMultipipeline()) {\n $pipelines = [];\n foreach ($this->class as $name => $className) {\n if (!class_exists($className)) {\n throw new \\LogicException(\"Analytics class '\" . $className . \"' does not exist!\");\n }\n $class = new $className();\n $class->setParams($params);\n $pipelines[$name] = $class->get();\n }\n return $pipelines;\n } else {\n $className = $this->class;\n if (!class_exists($className)) {\n throw new \\LogicException(\"Analytics class '\" . $className . \"' does not exist!\");\n }\n $class = new $className();\n $class->setParams($params);\n return $class->get();\n }\n }", "title": "" }, { "docid": "10bec94262e391921f43315aca5d5169", "score": "0.5360819", "text": "public function getPayments(array $parameters = []): PaymentResponseModelCollection;", "title": "" }, { "docid": "5b92fdfe81c150e8118d448e36b77d6f", "score": "0.53171015", "text": "public function getAggregator()\n {\n return Mage::getSingleton('catalogindex/aggregation');\n }", "title": "" }, { "docid": "fdaff0f74322bbe305968a0565ca3200", "score": "0.5314049", "text": "public function getIncomeSums($period) {\n\t\t$sql = (\"\n\t\t\tSELECT icat.name, icat.id, SUM(ic.amount) sum\n\t\t\tFROM incomes ic\n\t\t\tINNER JOIN incomes_category_assigned_to_users icat\n\t\t\tON ic.income_category_assigned_to_user_id = icat.id\n\t\t\tAND (ic.date_of_income BETWEEN :start AND :end)\n\t\t\tAND icat.id IN (\n\t\t\t\tSELECT icat.id FROM incomes_category_assigned_to_users icat\n\t\t\t\tINNER JOIN users\n\t\t\t\tON users.id = icat.user_id\n\t\t\t\tAND users.id = :id\n\t\t\t)\n\t\t\tGROUP BY icat.id\n\t\t\tORDER BY sum DESC;\");\n\t\t$id = Auth::getUserId();\n\t\treturn Data::dbQuery($sql, $id,$period);\n\t}", "title": "" }, { "docid": "fd983f6f2520c0c6c58889394ce9697f", "score": "0.531376", "text": "public function getPaymentList(){\n \t\t\t$payments = $this->getList('payment_methods', 'all');\n \t\t\treturn $payments;\n \t\t}", "title": "" }, { "docid": "5ac2c50ccbda3ebf3d499a31f67582a5", "score": "0.5310371", "text": "abstract protected function getAggregates(ContainerInterface $container, QueryBuilder $queryBuilder, Request $request);", "title": "" }, { "docid": "f473d17649cc5325d04afa6ba754bd7a", "score": "0.5287272", "text": "public function index()\n {\n return new PaymentDetailCollection(\n PaymentDetailResource::collection(\n PaymentDetail::all()\n )\n );\n }", "title": "" }, { "docid": "b0b299bcb65f6e2d27d5d8b69fce0f06", "score": "0.52693784", "text": "public function getRevenue()\n {\n $revenueThisDay = Order::where('status', Order::ORDER_STATUS['DELIVERED'])->where('delivered_at', Carbon::now()->format('Y-m-d'))->sum('total_amount');\n $revenueThisWeek = Order::where('status', Order::ORDER_STATUS['DELIVERED'])->whereBetween('delivered_at', [Carbon::now()->startOfWeek()->format('Y-m-d'), Carbon::now()->endOfWeek()->format('Y-m-d')])->sum('total_amount');\n $revenueThisMonth = Order::where('status', Order::ORDER_STATUS['DELIVERED'])->whereBetween('delivered_at', [Carbon::now()->startOfMonth()->format('Y-m-d'), Carbon::now()->endOfMonth()->format('Y-m-d')])->sum('total_amount');\n $revenueThisYear = Order::where('status', Order::ORDER_STATUS['DELIVERED'])->whereBetween('delivered_at', [Carbon::now()->startOfYear()->format('Y-m-d'), Carbon::now()->endOfYear()->format('Y-m-d')])->sum('total_amount');\n return [\n 'revenueThisDay' => $revenueThisDay,\n 'revenueThisWeek' => $revenueThisWeek,\n 'revenueThisMonth' => $revenueThisMonth,\n 'revenueThisYear' => $revenueThisYear,\n ];\n }", "title": "" }, { "docid": "6d8999ba0d8fed1aec7d5ea592f98ec4", "score": "0.5258419", "text": "public function payments($id){\n $payments = DB::table('payments')\n ->select('payments.description as description',\n 'payments.id as id',\n 'payments.type as type',\n 'payments.total as total',\n 'payments.created_at as created_at',\n 'payments.updated_at as updated_at')\n ->where('payments.rent_id','=',$id)\n ->get();\n return $payments;\n }", "title": "" }, { "docid": "668013ea6a065d065ef9c08ced8b5f02", "score": "0.5256174", "text": "public function getAccountPaymentList()\n {\n $currency = $this->em->getRepository('CorporateBundle:CorpoPaymentType')->getAccountPaymentList();\n return $currency;\n }", "title": "" }, { "docid": "44ac8f95b18e71159a9ac06ed2458b9c", "score": "0.52529633", "text": "function getMonthlyRevenue() {\n return Invoice::select(DB::raw('sum(total) as total_amount'), DB::raw('YEAR(created_at) year, MONTH(created_at) month'))\n ->whereYear('created_at', '=', 2018)\n ->groupBy('year', 'month')\n ->get();\n }", "title": "" }, { "docid": "96d3fe2e67112850d6595260c71a459a", "score": "0.52313584", "text": "public function getTotals()\n {\n return $this->totals;\n }", "title": "" }, { "docid": "2efd6a5f98075134eefbd3c6b2538fe8", "score": "0.52231", "text": "abstract public function getPayment();", "title": "" }, { "docid": "5ae6a05cedd80b486e319c26f2668ddd", "score": "0.52191967", "text": "public function getAll() {\r\n\t\t$sql = 'SELECT *\r\n\t\t\tFROM payment_type\r\n\t\t\tORDER BY description ASC';\r\n\r\n\t\t$stmt = $this->pdo->prepare($sql);\r\n\t\t$stmt->execute();\r\n\r\n\t\t$results = $stmt->fetchAll();\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "dea606c6bc44e323d7df2287ca90afa2", "score": "0.5215542", "text": "abstract public function resolveExtendedAggregates(): array;", "title": "" }, { "docid": "3350d44f33ee634755423665f26b1003", "score": "0.521482", "text": "public function getAggregatedDataSet()\n {\n $newDataSet = $this->OrderByCategory($this->dataSet);\n $newDataSet = $this->OrderBySubCategory($newDataSet);\n $newDataSet = $this->sumUpAmountBySubCategory($newDataSet);\n $newDataSet = $this->addTotalRow($newDataSet);\n return $newDataSet;\n }", "title": "" }, { "docid": "a5da707b083ea8dd8fae300fc341ca44", "score": "0.521347", "text": "public function get_payments_summary($search, $filters)\n\t{\n\t\t// get payment summary\n\t\t$this->db->select('payment_type, count(*) AS count, SUM(payment_amount) AS payment_amount', FALSE);\n\t\t$this->db->from('sales');\n\t\t$this->db->join('sales_payments', 'sales_payments.sale_id=sales.sale_id');\n\t\t$this->db->join('people', 'people.person_id = sales.customer_id', 'left');\n\n\t\tif (empty($search))\n\t\t{\n\t\t\t$this->db->where('DATE(sale_time) BETWEEN '. $this->db->escape($filters['start_date']). ' AND '. $this->db->escape($filters['end_date']));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($filters['is_valid_receipt'])\n\t\t\t{\n\t\t\t\t$pieces = explode(' ',$search);\n\t\t\t\t$this->db->where('sales.sale_id', $pieces[1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->like('last_name', $search);\n\t\t\t\t$this->db->or_like('first_name', $search);\n\t\t\t\t$this->db->or_like('CONCAT(first_name, \" \", last_name)', $search);\n\t\t\t}\n\t\t}\n\n\t\tif ($filters['sale_type'] == 'sales')\n\t\t{\n\t\t\t$this->db->where('payment_amount > 0');\n\t\t}\n\t\telseif ($filters['sale_type'] == 'returns')\n\t\t{\n\t\t\t$this->db->where('payment_amount < 0');\n\t\t}\n\n\t\tif ($filters['only_invoices'] != FALSE)\n\t\t{\n\t\t\t$this->db->where('invoice_number <> ', 'NULL');\n\t\t}\n\t\t\n\t\tif ($filters['only_cash'] != FALSE)\n\t\t{\n\t\t\t$this->db->like('payment_type ', $this->lang->line('sales_cash'), 'after');\n\t\t}\n\n\t\t$this->db->group_by('payment_type');\n\n\t\t$payments = $this->db->get()->result_array();\n\n\t\t// consider Gift Card as only one type of payment and do not show \"Gift Card: 1, Gift Card: 2, etc.\" in the total\n\t\t$gift_card_count = 0;\n\t\t$gift_card_amount = 0;\n\t\tforeach($payments as $key=>$payment)\n\t\t{\n\t\t\tif( strstr($payment['payment_type'], $this->lang->line('sales_giftcard')) != FALSE )\n\t\t\t{\n\t\t\t\t$gift_card_count += $payment['count'];\n\t\t\t\t$gift_card_amount += $payment['payment_amount'];\n\n\t\t\t\t// remove the \"Gift Card: 1\", \"Gift Card: 2\", etc. payment string\n\t\t\t\tunset($payments[$key]);\n\t\t\t}\n\t\t}\n\n\t\tif( $gift_card_count > 0 )\n\t\t{\n\t\t\t$payments[] = array('payment_type' => $this->lang->line('sales_giftcard'), 'count' => $gift_card_count, 'payment_amount' => $gift_card_amount);\n\t\t}\n\n\t\treturn $payments;\n\t}", "title": "" }, { "docid": "bc524c85daa70443332396a705882d6b", "score": "0.5200568", "text": "public function index(Payment $payment)\n {\n if (!User::searchPermitOnArray([\"M\", \"SCO\"])) return $this->errorResponse(\"No tienes permitido realizar esta acción.\", 401);\n $history_payment = $payment->history_payments()->get();\n for ($i=0; $i < count($history_payment); $i++) { \n if ($i == 0) {\n $history_payment[$i]['up_down_payment'] = 0;\n } else {\n $history_payment[$i]['payment'] > $history_payment[$i - 1]['payment'] ? $history_payment[$i]['up_down_payment'] = 0 : $history_payment[$i]['up_down_payment'] = 1;\n }\n }\n return $this->showAll($history_payment);\n }", "title": "" }, { "docid": "8f4b5e5abb35e1042973a39d98823c76", "score": "0.51842666", "text": "public function query($payment);", "title": "" }, { "docid": "bb4a52a1f4be95e5e7eded02bc2fe6ba", "score": "0.5150368", "text": "function get_sales_manage_payments_summary($payments, $sales)\n{\n\t$CI =& get_instance();\n\t$table = '<div id=\"report_summary\">';\n\n\tforeach($payments as $key=>$payment)\n\t{\n\t\t$amount = $payment['payment_amount'];\n\n\t\t// WARNING: the strong assumption here is that if a change is due it was a cash transaction always\n\t\t// therefore we remove from the total cash amount any change due\n\t\tif( $payment['payment_type'] == $CI->lang->line('sales_cash') )\n\t\t{\n\t\t\tforeach($sales->result_array() as $key=>$sale)\n\t\t\t{\n\t\t\t\t$amount -= $sale['change_due'];\n\t\t\t}\n\t\t}\n\t\t$table .= '<div class=\"summary_row\">' . $payment['payment_type'] . ': ' . to_currency($amount) . '</div>';\n\t}\n\t$table .= '</div>';\n\n\treturn $table;\n}", "title": "" }, { "docid": "dd702278d2dd9e8cf7cbc3ed5318a29b", "score": "0.51463234", "text": "public function getPayments(Filter\\PaymentFilter $filter = null)\n {\n return $this->execute(__FUNCTION__, new Mapper\\PaymentMapper(), [\n $filter,\n ]);\n }", "title": "" }, { "docid": "867bf3ff761ba28f8b1907cfc1768f12", "score": "0.51415443", "text": "public static function getOrdersStatistic(){\n \t\t$sql = \"SELECT order_id as 'orderId', subtotal, total, \n \t\t\t\tYEAR(crt_date) as 'year', MONTH(crt_date) as 'month', DAY(crt_date) as `day`, crt_date\nFROM orders\nWHERE is_del=0\";\n \t\t$query = DataBaseHelper::query($sql);\n \t\t\n \t\t//get totalOrdersByYear\n \t\t$totalOrdersByYear = array();\n \t\tforeach ($query as $v){\n \t\t\t$year = $v->year;\n \t\t\t$totalOrdersByYear[$year] += $v->total;\n \t\t}\n \t\t//get totalOrdersByMonth\n \t\t$totalOrdersByMonth = array();\n \t\tforeach ($query as $v){\n \t\t\t$month = $v->month;\n \t\t\t$year = $v->year;\n \t\t\t$totalOrdersByMonth[$year][$month] += $v->total;\n \t\t}\n \t\t//get totalOrdersByDay\n \t\t$totalOrdersByDay = array();\n \t\tforeach ($query as $v){\n \t\t\t$day = $v->day;\n \t\t\t$month = $v->month;\n \t\t\t$year = $v->year;\n \t\t\t$totalOrdersByDay[$year][$month][$day] += $v->total;\n \t\t}\n \t\t\n \t\t$minYear = DateHelper::getCurentYear();\n \t\t$maxYear = DateHelper::getCurentYear();\n \t\tforeach ($totalOrdersByYear as $k => $v){\n \t\t\tif($maxYear < $k) $maxYear = $k;\n \t\t\tif($minYear > $k) $minYear = $k;\n \t\t}\n \t\t\n \t\t$ordersStatistic = array(\n \t\t\t'totalOrdersByYear' => $totalOrdersByYear,\n \t\t\t'totalOrdersByMonth' => $totalOrdersByMonth,\n \t\t\t'totalOrdersByDay' => $totalOrdersByDay,\n \t\t\t'minYear' => $minYear,\n \t\t\t'maxYear' => $maxYear,\n \t\t);\n \t\t\t\n \t\treturn $ordersStatistic;\n \t}", "title": "" }, { "docid": "c9ce44a217082ef62bceab1e1efc3dfb", "score": "0.513876", "text": "public function get_sales_report_general(){\r\n $connect=parent::connection();\r\n parent::set_names();\r\n $sql=\"SELECT MONTHname(sale_date) as month, MONTH(sale_date) as number_month, YEAR(sale_date) as year, SUM(total) as total_sale, currency\r\n FROM sales where status='1' GROUP BY YEAR(sale_date) desc, month(sale_date) desc\";\r\n $sql=$connect->prepare($sql);\r\n $sql->execute();\r\n return $result=$sql->fetchAll(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "d8aca228d4fa42ad0943c0cba99b86a7", "score": "0.51374173", "text": "protected function _getDataPayments($merchantOrder)\n {\n $data = array();\n foreach ($merchantOrder['payments'] as $payment) {\n $response = $this->coreModel->getPayment($payment['id']);\n $payment = $response['response']['collection'];\n $data = $this->_statusHelper->formatArrayPayment($data, $payment, self::LOG_NAME);\n }\n return $data;\n }", "title": "" }, { "docid": "155bb03c693b9cc14c15709983575f2d", "score": "0.51242256", "text": "public function aggregates($value)\n {\n return $this->setProperty('aggregates', $value);\n }", "title": "" }, { "docid": "6070b9912fd97e667130e4fe9bcf3ea2", "score": "0.51145", "text": "public function getTotal() {\n $gastos = $this->getGastos();\n $total = 0;\n foreach ($gastos as $objGasto) {\n $total += $objGasto->getCantidad();\n }\n return $total;\n }", "title": "" }, { "docid": "80a036dbf833f4b7885f5b6fd051e5a1", "score": "0.5114259", "text": "public function payments(){\n return $this->hasMany('App\\Models\\Payment');\n }", "title": "" }, { "docid": "1472f81cb9ad92daeb4dacb35195c302", "score": "0.51133263", "text": "public function payments()\n {\n return $this->hasMany(Payment::class, 'user_created_id');\n }", "title": "" }, { "docid": "fe3d76c918f04f3333232245b7ab7eee", "score": "0.5106874", "text": "public function getPayments($payment_id)\n {\n $params = ['payment_id' => $payment_id];\n $body = [\n 'method' => 'get_payments',\n 'params'=> $params\n ];\n return $this->_request($body);\n }", "title": "" }, { "docid": "fe3d76c918f04f3333232245b7ab7eee", "score": "0.5106874", "text": "public function getPayments($payment_id)\n {\n $params = ['payment_id' => $payment_id];\n $body = [\n 'method' => 'get_payments',\n 'params'=> $params\n ];\n return $this->_request($body);\n }", "title": "" }, { "docid": "57bccec3fc47b5d5d17a4a8fb915e500", "score": "0.5105249", "text": "public function totals() {\n return $this->totals;\n }", "title": "" }, { "docid": "3fa214fc13994284f1ec5887e1988755", "score": "0.5103771", "text": "public function getTotal()\n {\n $totalOrder = Order::count();\n $totalProduct = Product::count();\n $totalUser = User::count();\n $totalComment = Comment::count();\n return [\n 'totalOrder' => $totalOrder,\n 'totalProduct' => $totalProduct,\n 'totalUser' => $totalUser,\n 'totalComment' => $totalComment,\n ];\n }", "title": "" }, { "docid": "ffe4502b21dc8e2deaa50917b9de284b", "score": "0.51016617", "text": "public function getGrandTotal();", "title": "" }, { "docid": "c34f88d00890352043cb73ac2d68400a", "score": "0.5095665", "text": "public function GetPaymentTypeValues($paymentType){\n $qb = $this->createQueryBuilder('t');\n $qb->select('t.id', 't.brutto', 't.netto')\n ->join('t.paymentMethodId', 'm', 'WITH', 't.paymentMethodId = m.id')\n ->where('m.type = :type')\n ->setParameter('type', $paymentType)\n ->orderBy('t.brutto', 'ASC');\n $query = $qb->getQuery();\n return $query->getArrayResult();\n }", "title": "" }, { "docid": "b101e1e9dcc9909d8a97e2d58c5d0ba4", "score": "0.5082869", "text": "function get_expenses_manage_payments_summary($payments, $expenses)\n{\n\t$CI =& get_instance();\n\t$table = '<div id=\"report_summary\">';\n\n\tforeach($payments as $key=>$payment)\n\t{\n\t\t$amount = $payment['amount'];\n\t\t$table .= '<div class=\"summary_row\">' . $payment['payment_type'] . ': ' . to_currency($amount) . '</div>';\n\t}\n\t$table .= '</div>';\n\n\treturn $table;\n}", "title": "" }, { "docid": "d491c9258e75b47178c22c487b411ae5", "score": "0.5077275", "text": "public function paymentTotal()\n {\n return $this->payments->total();\n }", "title": "" }, { "docid": "ae12a4b2cdfb5e0a31f6ada31f73bd0d", "score": "0.506432", "text": "public function getPaymentTypes()\n {\n if ($this->_oPaymentTypes == null) {\n\n // all paymenttypes\n $this->_oPaymentTypes = oxNew(\"oxlist\");\n $this->_oPaymentTypes->init(\"oxpayment\");\n $oListObject = $this->_oPaymentTypes->getBaseObject();\n $oListObject->setLanguage(oxRegistry::getLang()->getObjectTplLanguage());\n $this->_oPaymentTypes->getList();\n }\n\n return $this->_oPaymentTypes;\n }", "title": "" }, { "docid": "0fe245285c9f230e505537217ac238d3", "score": "0.50553906", "text": "public function payments()\n {\n return $this->hasOne(\"App\\Payment\");\n }", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.50513756", "text": "public function getTotal();", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.50513756", "text": "public function getTotal();", "title": "" }, { "docid": "8f49a2d7f5ea00151bb44544e0a9b3b6", "score": "0.50385183", "text": "public function getAggregateRating();", "title": "" }, { "docid": "d57fc623a6faf775488369bd2f1ab272", "score": "0.503199", "text": "public function summary(){\r\n\t\t$summary = new Summary();\r\n\t\treturn $summary->getAccounts();\r\n\t}", "title": "" }, { "docid": "fb7a8bb9651af7ee8a847df39fa91f25", "score": "0.50299096", "text": "public function getOrderPayments() {\n return JeproshopOrderPaymentModelOrderPayment::getByOrderReference($this->reference);\n }", "title": "" }, { "docid": "142410ba5551e334e29fc82971d9cdd4", "score": "0.5025038", "text": "public function aggs()\n {\n return $this->hasMany('App\\Models\\VoteAgg', 'proposal_id');\n }", "title": "" }, { "docid": "e451c2a87eaf46c1eb193ca5b5df9425", "score": "0.50236195", "text": "public function getSummarizedHoldings() {\n return $this->getRecordDriver()->tryMethod('getSummarizedHoldings');\n }", "title": "" }, { "docid": "3d626a9f331f1045f3250c8139add288", "score": "0.5023", "text": "public function sumFieldsDataProvider(): array\n {\n $obj1 = new \\stdClass();\n $obj1->foo = 1;\n\n $obj2 = new \\stdClass();\n $obj2->foo = 2;\n\n $obj3 = new \\stdClass();\n $obj3->foo = 3;\n\n $data1 = [\n $obj1,\n $obj2,\n $obj3\n ];\n\n $data2 = [\n $obj1,\n [\n $obj2,\n $obj3\n ]\n ];\n\n return [\n [\n $data1,\n 6\n ],\n [\n $data2,\n 6\n ],\n [\n [\n [\n 'foo' => 1\n ],\n [\n 'foo' => 2\n ]\n ],\n 3\n ]\n ];\n }", "title": "" } ]
e9c0fe459b8c8f483f560b0fabe83e2a
The registing new user api.
[ { "docid": "c3f7918e5d5de34efb2170256a369600", "score": "0.0", "text": "public function register($username, $password)\n {\n $model = \\Model\\User::Instance();\n\n if ($error = $model->validate(array('username'=>$username, 'password'=>$password)) != \"\") { \n $this->response['error'] = $error;\n return $this->response;\n }\n\n $newUser = array(\n 'username' => $username,\n 'password' => $password,\n 'created' => time(),\n 'user_role_id' => 0, // the default user role is normal.\n );\n\n $userId = $model->addNew($newUser);\n\n $newUser['user_id'] = $userId; \n\n $this->response['data'] = $newUser;\n return $this->response;\n }", "title": "" } ]
[ { "docid": "39ea6d40e0a2d5dd2bb6aa14c2d0fa31", "score": "0.77329206", "text": "private function RegisterNewUser(){\n $RegisterUserName = $this -> rv -> getRequestUserName();\n $this -> rm -> Register($RegisterUserName, $this -> rv -> getRequestPassword(), $this -> rv -> getRequestPasswordCheck());\n\n $_SESSION[\"newUser\"] = $RegisterUserName;\n \n //redirects user to index page\n header(\"Location: /Login_1DV608-master/\");\n }", "title": "" }, { "docid": "72a43b4aad58835eeaea3162c61cee98", "score": "0.7600052", "text": "private function user_register() {\n\t $this->functions->userRegister();\n\t }", "title": "" }, { "docid": "0a847b54b8599d5a68c9ffc3b6741c14", "score": "0.7472261", "text": "function new_reg(){\n\t\t$user=$this->getUserInfo('arkademy_'.$this->id_user);\n\t\t$user_isExist=($user==true);\n\t\tif($user_isExist){\n\t\t\t\n\t\t\t$data=$this->information();\n\t\t\t$data['token']=$user->token;\n\n\t\t\t$data['seo']=\"Arkana API Documentation\";\n\t\t\t$data['body']=\"Docs/api-devices-teacher/new_reg\";\n\t\t\t$this->load->view(\"template/front/core\",$data);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "de5a0772195634d3ba8308a2793757c6", "score": "0.7458832", "text": "public function register_user()\r\n\t{\r\n\t\t\r\n\t\treturn \"test\";\r\n\t}", "title": "" }, { "docid": "adda965010445b864dad990cb633c9af", "score": "0.71045303", "text": "public function registerNewUser() {\n\n if ($this->registerView->didUserPressSubmit() == true) {\n \n $errors = 0;\n \n //Get the new user data registered.\n $username = $this->registerView->getUsr(); \n $password = $this->registerView->getPass();\n $confirmPassword = $this->registerView->getConfirmPass();\n\n //Validates the new user input (lenght of username).\n if($this->validateUsername->validateUsernameLength($username) == false) {\n $errors++;\n $msgId = 8;\n \n $this->model->setMsg($msgId);\n $this->setMsg();\n }\n else {\n //Validates the new user input (chars of username).\n if($this->validateUsername->validateCharacters($username) == false) {\n $errors++;\n $msgId = 4;\n \n $this->model->setMsg($msgId);\n $this->setMsg(); \n }\n }\n\n //Validates the new user input (lenght of password).\n if($this->validatePassword->validatePasswordLength($password, $confirmPassword) == false) {\n $errors++;\n $msgId = 7;\n \n\n $this->model->setMsg($msgId);\n $this->setMsg();\n }\n else {\n //Validates the new user input (match of password).\n if($this->validatePassword->validateIfSamePassword($password, $confirmPassword) == false) {\n $errors++;\n $msgId = 6;\n \n\n $this->model->setMsg($msgId);\n $this->setMsg();\n }\n }\n\n //If all validation passed..\n if($errors == 0) {\n\n\n $hash = $this->hash->crypt($password);\n $newUser = new User($username, $hash);\n\n //Store new data with cryptes pass in database if username don´t already exists. \n if ($this->userRepository->userExists($username) == false) {\n $msgId = 12;\n $this->model->setMsg($msgId);\n $this->setMsg();\n\n $this->userRepository->addUser($newUser);\n $this->loginView->setRegister($username); \n\n //Disable register page.\n $this->displayRegisterPage = false; \n }\n\n else {\n\n $msgId = 5;\n $this->model->setMsg($msgId);\n $this->setMsg();\n } \n }\n\n }\n }", "title": "" }, { "docid": "5df419d06723f41833754d164b416d93", "score": "0.705446", "text": "public function register($user);", "title": "" }, { "docid": "5e116aa3c74565c5db52516d8f7272b0", "score": "0.70432633", "text": "function _register_user() {\n\n\t\tglobal $gSession;\n\t\tglobal $gConfig;\n\n\t\tif (isset($this->email) || isset($this->ap_id))\n\t\t\t$gSession->_put(\"userobj\", $this);\n\t}", "title": "" }, { "docid": "bc03f123c7338642ea4bcd14bc7e25b0", "score": "0.70185095", "text": "public function register(){\n\t\ttry{\n \t$this->service->make(Input::all());\n \treturn $this->api->respondSuccessWithDetails(\n\t \t'User has been successfully registered.', $this->transformer->transform($this->service->getUserDetails())\n\t );\n }catch(ValidationException $e){\n \treturn $this->api->respondInvalidParameters($e->getMessage());\n }\n\t}", "title": "" }, { "docid": "e2f034719e8bc9e7ae732694da74a196", "score": "0.70053124", "text": "public static function register()\n {\n // If User Logged Not Allow Register\n if (is_user_logged_in()) {\n WordPress_Rewrite_API_Request::not_permission();\n }\n\n // Check Require Params\n if (!isset($_REQUEST['user_login']) and !isset($_REQUEST['user_email'])) {\n WordPress_Rewrite_API_Request::missing_params();\n }\n\n // Prepare Params\n $user_login = '';\n if(isset($_REQUEST['user_login'])) {\n $user_login = sanitize_text_field($_REQUEST['user_login']);\n\n // Check empty user_login\n if (empty($user_login)) {\n WordPress_Rewrite_API_Request::empty_param(apply_filters('wordpress_acl_user_login_name', __('username', 'wordpress-acl')));\n }\n\n // Check Before Get UserLogin\n if (username_exists($user_login) != false) {\n wp_send_json_error(array(\n 'code' => 'already_register_login',\n 'message' => apply_filters('wordpress_acl_exists_username_error', __('This username is already registered.', 'wordpress-acl'))\n ), 400);\n }\n }\n\n // Generate UserData\n $user_data = array();\n $user_data['user_login'] = $user_login;\n\n // Email\n if (isset($_REQUEST['user_email']) and !empty($_REQUEST['user_email'])) {\n $user_email = sanitize_text_field($_REQUEST['user_email']);\n\n // Check Valid\n if (is_email($user_email) === false) {\n wp_send_json_error(array(\n 'code' => 'invalid_email',\n 'message' => __('Invalid email address.', 'wordpress-acl')\n ), 400);\n }\n\n // Check Exist Before\n if (email_exists($user_email) != false) {\n wp_send_json_error(array(\n 'code' => 'already_register__email',\n 'message' => __('This email is already registered.', 'wordpress-acl')\n ), 400);\n }\n\n // Push to Data\n $user_data['user_email'] = $user_email;\n\n // Set user_login same user_email\n if(empty($user_login)) {\n $user_data['user_login'] = $user_email;\n }\n }\n\n // Password\n $user_data['user_pass'] = wp_generate_password(8, false);\n if (isset($_REQUEST['user_pass']) and !empty($_REQUEST['user_pass'])) {\n $user_data['user_pass'] = sanitize_text_field($_REQUEST['user_pass']);\n }\n\n // Password Confirm\n if (isset($_REQUEST['user_pass_confirm']) and !empty($_REQUEST['user_pass_confirm'])) {\n if($_REQUEST['user_pass'] !=$_REQUEST['user_pass_confirm']) {\n wp_send_json_error(array(\n 'code' => 'match_password',\n 'message' => __('Passwords Don\\'t Match', 'wordpress-acl')\n ), 400);\n }\n }\n\n // First Name and Last Name\n $user_data['first_name'] = '';\n if (isset($_REQUEST['first_name']) and !empty($_REQUEST['first_name'])) {\n $user_data['first_name'] = sanitize_text_field($_REQUEST['first_name']);\n }\n $user_data['last_name'] = '';\n if (isset($_REQUEST['last_name']) and !empty($_REQUEST['last_name'])) {\n $user_data['last_name'] = sanitize_text_field($_REQUEST['last_name']);\n }\n\n // Display Name\n $user_data['display_name'] = $user_data['first_name'] . \" \" . $user_data['last_name'];\n\n // User Role\n $user_data['role'] = get_option('default_role');\n\n // Custom Error Check\n do_action('wordpress_acl_user_register_custom_fields', $user_login);\n\n // Register in Site\n // Use add_action('user_register', For After action Registered\n $user_id = wp_insert_user($user_data);\n\n // After Register Success\n do_action('wordpress_acl_user_register_success', $user_id);\n\n // Return\n wp_send_json_success(Helper::get($user_id), 200);\n }", "title": "" }, { "docid": "0c1801344f68063ac3ae9fd0ab7d06cd", "score": "0.69976974", "text": "public function register()\n {\n $flag=0; \n /**\n * @var string\n * @range(4, 128)\n * @label('Name of user')\n */\n $name=$_POST['username'];\n // assertEquals($name,'prashant');\n \n /**\n * @var integer\n * @range(4,8)\n * @label('password')\n */\n\n $pass=$_POST['password'];\n\n /**\n * @var integer\n *@label('phone number')\n */\n $phone=$_POST['phone'];\n \n \n $mail=$_POST['email'];\n \n return $this->ref->register($name, $pass, $phone, $mail,$flag);\n\n \n }", "title": "" }, { "docid": "febd8f210a45cfa543f046f005a38d80", "score": "0.6978917", "text": "function newRegister() {\n $app = \\Slim\\Slim::getInstance();\n\n //verifikasi data yang masuk\n verifyRequiredParams(array('username', 'name', 'email', 'password','role'));\n\n //membaca input data\n $response = array();\n $username = $app->request->post('username');\n $name = $app->request->post('name');\n $email = $app->request->post('email');\n $password = $app->request->post('password');\n $role = $app->request->post('role');\n\n //insert data ke database\n $db = new FunctionDB();\n $res = $db->createUser($username, $name, $email, $password, $role);\n\n //response dari database\n if ($res == 0 ) {\n $response[\"message\"] = \"Kamu Berhasil terdaftar\";\n } else if ($res == 1) {\n $response[\"message\"] = \"Eror saat mendaftar\";\n } else if ($res == 2) {\n $response[\"message\"] = \"Email kamu sudah terdaftar\";\n }\n\n echoRespnse(201, $response);\n}", "title": "" }, { "docid": "fbb0d9503b23e322ced5a38394ec34e0", "score": "0.69726723", "text": "public function Register()\r\n {\r\n $entity = new mUsers();\r\n $entity->Map();\r\n $entity->id=0;\r\n\r\n if (empty($entity->email))\r\n {\r\n $this->ResponseJSON(null,400);\r\n }\r\n if (empty($_POST[\"pass\"]))\r\n {\r\n $this->ResponseJSON(null,400);\r\n }\r\n\r\n $pwd =$this->EncryptPWD($_POST[\"pass\"]);\r\n\r\n $entity->hash=$pwd[\"hash\"];\r\n $entity->salt=$pwd[\"salt\"];\r\n if (!$entity->Create()){\r\n $this->ResponseJSON(null,400);\r\n }\r\n\r\n $this->ResponseJSON($_POST);\r\n }", "title": "" }, { "docid": "5596682e86f5f29faf288c86716be05f", "score": "0.6969351", "text": "public function register_user() {\r\n\t\t$this->login->register_user($this->input->post());\r\n\t\tredirect (\"/\");\r\n\t}", "title": "" }, { "docid": "6c2be57e5b935110121176c94cbb986f", "score": "0.6944215", "text": "function register()\n\t{\n\t\tif ($this->ci->config->item(\"site_user_register\")==='no' || $this->ci->config->item(\"site_password_protect\")==='yes')\n\t\t{\n\t\t\tshow_404();\n\t\t}\n\n\t\t$this->_create_user();\n\t}", "title": "" }, { "docid": "e09a728b8edee05f38e2c89658241cdf", "score": "0.6943865", "text": "public function register() {\n if (Request::isMethod('post')) {\n // creates a user record\n User::create([\n 'name' => Request::get('name'),\n 'email' => Request::get('email'),\n 'password' => bcrypt(Request::get('password')),\n ]);\n } \n \n // redirects the user to the login page after creating the user \n return Redirect::away('login');\n }", "title": "" }, { "docid": "5539d89388ca86e25f4699203b6e345d", "score": "0.6941983", "text": "public function register()\n {\n $email = CommonUtility::filterInputPost(\"email\");\n\n $userInfo = UserModel::getUserByEmail($email);\n if ($userInfo != null) {\n $this->notification = CommonUtility::showNotification('This email address exists.', 'warning');\n\n } else if ($_POST[\"pass\"] != $_POST[\"re_pass\"]) {\n $this->notification = CommonUtility::showNotification('Password and repeat are not the same.', 'danger');\n } else {\n $pass = CommonUtility::test_input($_POST[\"pass\"]);\n $data[\"pass\"] = CommonUtility::hashPassword($pass);\n $data[\"email\"] = CommonUtility::test_input($_POST[\"email\"]);\n UserModel::addUser($data);\n $this->notification = CommonUtility::showNotification('You have been registered successfully.', 'success');\n }\n $this->showLoginRegister();\n }", "title": "" }, { "docid": "94b01c6b9e88a4302c97a566056fe37d", "score": "0.69026124", "text": "public function register() {\n if($this->validate()) {\n $id = DB::lastInsertId('users') + 1;\n $this->_userParams = [\n 'id' => $id,\n 'username' => $this->username,\n 'password' => password_hash($this->password, PASSWORD_DEFAULT),\n 'authKey' => 'test' . $id . 'key',\n 'accessToken' => $id . '-token'\n ];\n DB::insert('users', $this->_userParams);\n return Yii::$app->user->login(new User($this->_userParams), 3600*24*30);\n }\n return false;\n }", "title": "" }, { "docid": "f3c9f86c84599a3f318c671ab7f933d3", "score": "0.68768054", "text": "public function newRegistration()\n {\n try {\n $registerUser = $this->registerView->getUserRegistration();\n $this->validation->validateRegisterInput($registerUser);\n $this->databaseModel->checkIfUsernameIsFree($registerUser->getUsername());\n $registerUser->hashPassword();\n $this->databaseModel->saveUserToDatabase($registerUser);\n header(\"Location: ?\");\n } catch (ShortUsernameAndPassword $error) {\n $this->registerView->setRegisterMessage(Messages::$toShortUsernameAndPassword);\n } catch (ShortPassword $error) {\n $this->registerView->setRegisterMessage(Messages::$toShortPassword);\n } catch (ShortUsername $error) {\n $this->registerView->setRegisterMessage(Messages::$toShortUsername);\n } catch (UsernameAlreadyExists $error) {\n $this->registerView->setRegisterMessage(Messages::$userAlreadyExists);\n } catch (InvalidCharactersInUsername $error) {\n $this->registerView->setRegisterMessage(Messages::$invalidCharactersInUsername);\n } catch (PasswordsDoNotMatch $error) {\n $this->registerView->setRegisterMessage(Messages::$passwordsDoNotMatch);\n } finally {\n $this->registerView->setUsernameValue(strip_tags($this->registerView->getUsername()));\n }\n }", "title": "" }, { "docid": "58cec4aefb0447f6f29e6fdd0dff46e7", "score": "0.68733305", "text": "public function new_user($request, $response, $args) {\n $data = $request->getParsedBody();\n $login = $data['user_name'];\n $email = $data['email'];\n $password = $data['password'];\n $language = substr($_SERVER && array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)?$_SERVER['HTTP_ACCEPT_LANGUAGE']:'en', 0, 2);\n if (array_key_exists('userinfo', $data)) {\n $userinfo = $data['userinfo'];\n } else {\n $userinfo = '';\n }\n if ($this->settings['settings']['moderated_registration']) {\n $active = 0;\n } else {\n $active = 1;\n }\n if (strlen($login) == 0 || strlen($password) == 0 || strlen($email) == 0) {\n return $this->view->render($response, 'register.html', array('error' => $this->translator->trans(\"Empty user or pass. Don't do that!\"),\n 'user_name' => $login, 'email' => $email, 'userinfo' => $userinfo));\n }\n if (!$this->checkPasswordQuality($password)) {\n return $this->view->render($response, 'register.html', array('error' => $this->translator->trans(\"password_policy_violated\"),\n 'user_name' => $login, 'email' => $email, 'userinfo' => $userinfo, 'moderated_registration' => $this->settings['settings']['moderated_registration']));\n }\n if ($this->dbo->checkForUser($login, $email)) {\n # user already exist\n return $this->view->render($response, 'register.html', array('error' => $this->translator->trans(\"User already exists\"),\n 'user_name' => $login, 'email' => $email, 'userinfo' => $userinfo));\n }\n else {\n $token = bin2hex(random_bytes(16));\n $id = $this->dbo->addUser($login, $email, $password, $language, $userinfo, $active, $token);\n if (!is_numeric($id) && $id !== true) {\n error_log($id);\n die('error creating user');\n }\n\n if ($this->settings['settings']['moderated_registration']) {\n $subject = $this->translator->trans(\"Please confirm your email address\");\n $accept_link = \"https://\".$this->site.\"/confirm_user?email=\".urlencode($email).\"&token=\".$token;\n $body_html = $this->translator->trans(\"email_confirm_user\", ['%site%' => $this->site, '%login%' => $login, '%link%' => $accept_link]);\n $body = str_replace(\"<br/>\", \"\\n\", $body_html);\n $this->sendEmail($email, $subject, $body_html, $body);\n\n return $this->view->render($response, 'login.html', array('message' => $this->translator->trans('Please confirm your email address by visiting the link sent to your email address.')));\n }\n\n return $this->signin($response, $login, $id);\n }\n }", "title": "" }, { "docid": "9ccf54234ec23b404555cc2fd8cf9674", "score": "0.6856918", "text": "private function registerUser()\n\t{\n\t\t$this->setData();\n\t\t\n\t\tif ( $this->error ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( ! $this->createUser() || ! $this->addUserRole() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setSessionData();\n\t\t$this->sendVerificationEmail();\n $this->sendAdminNotificationEmail();\n\t\t$this->redirect('signup/success');\n\t}", "title": "" }, { "docid": "0038c14114b74ad77569d682e473e844", "score": "0.6854766", "text": "public function add_user()\n {\n //\n }", "title": "" }, { "docid": "48edcfc2034ac25bb3881123af1e30c7", "score": "0.68406004", "text": "static function register() {\n // check if account already exists\n try {\n $functions = DIC::get(CONF_CLASS_FUNCTIONS);\n $login = $functions::formatPostInput(\"username\");\n $email = $functions::formatPostInput(\"email\");\n $password = $functions::formatPostInput(\"password\");\n $passwordConfirm = $functions::formatPostInput(\"password_confirm\");\n\n $userDTO = DIC::get(CONF_CLASS_USERDTO);\n $user = new $userDTO();\n \n $vars = array();\n $user->setLogin($login);\n $vars[\"login\"] = $login;\n $user->setEmail($email);\n $vars[\"email\"] = $email;\n \n if ($password != $passwordConfirm) {\n $userException = CONF_CLASS_USER_EXCEPTION;\n throw new $userException(\"Passwords does not match\");\n }\n $crypto = DIC::get(CONF_CLASS_CRYPTO);\n $user->setPassword($crypto::hashPassword($password));\n $frontUser = DIC::get(CONF_CLASS_FRONTUSER);\n $frontUser::registerUser($user);\n unset($_POST);\n Controller::render('ContentPages/void');\n }catch (Exception $ex) {\n $log = DIC::get(CONF_CLASS_LOG);\n $log::logEvent($log::CRITICAL, $ex);\n if(isset($vars)){\n Controller::render('UserPages/register', $vars);\n }else{\n Controller::render('UserPages/register');\n }\n }\n }", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.68295026", "text": "public function createUser();", "title": "" }, { "docid": "9e4aef1403a4c5eb9ab8c3203f15b69c", "score": "0.6826507", "text": "public function register() {\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->User->create();\n\t\t\t$this->User->set('role','user');\n\t\t\tif ($this->User->save($this->request->data)) {\n\t\t\t\t$this->Session->setFlash(__('Welcome! Your login details have been recorded.'));\n\t\t\t\t$this->Auth->login();\n\t\t\t\t\n\t\t\t\t$this->redirect(array('plugin' => 'standard_profile_module', 'controller' => 'profile', 'action'=>'addProfile'));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('There was a problem with your registration. Please, try again.'));\n\t\t\t}\n\t\t\t$this->set('title_for_layout', 'Registration'); \n\t\t}\n\t}", "title": "" }, { "docid": "47e421db0f9a93a4db01f719340111f6", "score": "0.6823257", "text": "public function registerAction()\n {\n $data = $this->_initRequiredData($this->_getParam('service'));\n\n // set default clock in time\n $data['clock_in_at'] = '9';\n\n // pre-popuplate form\n $form = new User_Form_User();\n $form->populate($data);\n\n if ($this->_request->isPost()) {\n $post = $this->_request->getPost();\n\n // form validation\n if ($form->isValid($post)) {\n // merge service data with post value\n $data = array_merge($data, $form->getValues());\n\n // create user object\n $users = App_Model_Users::getInstance();\n $user = new App_Model_User($data);\n $users->insert($user);\n\n // success callback\n $this->_authSuccess($user);\n }\n }\n\n // assign view variables\n $this->view->form = $form;\n $this->view->user = new App_Model_User($data);\n }", "title": "" }, { "docid": "5b43c896591e08ba7168329da56213e4", "score": "0.67940485", "text": "public function newUser()\n {\n if ($this->currentUserBuilder === null) {\n $this->currentUserBuilder = new UserBuilder();\n }\n $this->vue->makeSigInPage($this->currentUserBuilder);\n }", "title": "" }, { "docid": "d8235ee16fc17fee7eb85b2cf9d8bab5", "score": "0.67916423", "text": "public function registerAction()\n {\n $customer = Mage::getSingleton('customer/session')->getCustomer();\n $helper = Mage::helper('multipunkty');\n \n try {\n $postData = $this->getRequest()->getPost();\n \n $customer->setMultipunktyUserid($postData['mpid']);\n $customer->setMultipunktyUserlogin($postData['login']);\n $customer->setMultipunktyActive(1);\n $customer->save();\n \n $this->_getSession()->setCustomer($customer)\n ->addSuccess($helper->__('User was successfully registered.'));\n }catch (Exception $e) {\n $this->_getSession()->setCustomer($customer)\n ->addException($e, $helper->__('There was an error when processing your request, try again.'));\n }\n \n $this->_redirect('multipunkty/customer');\n }", "title": "" }, { "docid": "eba9696e9c6f312d3339087e08c5b431", "score": "0.67907035", "text": "public function register()\n {\n $newUserData['password'] = filter_input(INPUT_POST, 'password');\n $newUserData['confirmPassword'] = filter_input(INPUT_POST, 'confirmPassword');\n $newUserData['email'] = filter_input(INPUT_POST, 'email');\n $newUserData['pseudo'] = filter_input(INPUT_POST, 'pseudo');\n $newUserData['firstName'] = filter_input(INPUT_POST, 'firstName');\n $newUserData['lastName'] = filter_input(INPUT_POST, 'lastName');\n if(isset($newUserData['password']))\n {\n if ($newUserData['password'] === $newUserData['confirmPassword']) {\n $user = new UserManager();\n $emailAlreadyTaken = $user->checkEmail($newUserData['email']);\n $loginAlreadyTaken = $user->checkLogin($newUserData['pseudo']);\n if ($emailAlreadyTaken) {\n $this->showMessage('Erreur : Email est déjà utilisé');\n } elseif ($loginAlreadyTaken) {\n $this->showMessage('Erreur ce pseudo est déjà pris');\n } else {\n $newUserData['password'] = password_hash($newUserData['password'], PASSWORD_BCRYPT);\n $userAddSucceed = $user->addUser($newUserData);\n if ($userAddSucceed) {\n $this->index();\n $this->showMessage('Utilisateur bien enrégistré !');\n }\n }\n } else {\n $this->showMessage('Erreur Les mots de passe ne correspondent pas');\n }\n }\n else\n {\n $page = $this->twig->render('register.html.twig');\n $this->viewPage($page);\n }\n }", "title": "" }, { "docid": "0a50d4252a1f82308ff33290a9467c73", "score": "0.6785791", "text": "public function register(){\n $this->messageList = $this->validateRegister->validateResult();\n\n if( count($this->messageList)==0){\n $this->messageList['registerResult'] = $this->dbRepo->updateUser(Request::getRequestData() );\n }\n\n }", "title": "" }, { "docid": "915e15fe013a96b12be6e55e9ecf9585", "score": "0.6753447", "text": "function registerUser()\n {\n $_SESSION[\"view\"] = \"auth\";\n $email = $newPassword = $repeatPassword = $role = $result = null;\n if (isset($_POST[\"email\"])) {\n $email = $_POST[\"email\"];\n }\n if (isset($_POST[\"newPassword\"]))\n $newPassword = $_POST[\"newPassword\"];\n if (isset($_POST[\"repeatPassword\"]))\n $repeatPassword = $_POST[\"repeatPassword\"];\n if ($email || $newPassword || $repeatPassword) {\n $result = $this->authModel->register($email, $newPassword, $repeatPassword);\n $email = null;\n }\n $menu = \"register\";\n\n require CONFIG_DIR. '/view/common/header.php';\n if (!isset($result['error']) || $result['error'])\n require CONFIG_DIR. '/view/auth/registerUser.php';\n else require CONFIG_DIR. '/view/common/notify.php';\n require CONFIG_DIR. '/view/common/footer.php';\n }", "title": "" }, { "docid": "d6e2c1fb2b466ff18c9d6cacee3f51e5", "score": "0.67409307", "text": "public function registerAction(){\n $newUser = new Users();\n if($this->request->isPost()){\n // Check the token for csrf protection\n $this->request->csrfCheck();\n // Assign post forms values to the object $newUser\n $newUser ->assign($this->request->get());\n unset($newUser->phone);\n unset($newUser->address);\n unset($newUser->city);\n unset($newUser->region);\n unset($newUser->postal_code);\n unset($newUser->country);\n unset($newUser->acl);\n // Validate data\n // Set password confirmation \n $newUser->setConfirm($this->request->get('confirm'));\n $newUser->validator();\n if($newUser->validationPassed()){\n $newUser->hashPassword();\n if($newUser->save()){\n Router::redirect('register/login');\n }\n }\n }\n // Send the newUser object data to the view\n $this->view->newUser = $newUser;\n $this->view->displayErrors = $newUser->getErrorMessages();\n $this->view->render('register/register');\n }", "title": "" }, { "docid": "b45faa708d83df6f4f56198ec8453bbb", "score": "0.6735486", "text": "public function register()\n\t{\n\t\t$_user = new Users;\n\t\t$_user->firstname = $this->firstname;\n\t\t$_user->lastname = $this->lastname;\n\t\t$_user->emailaddress = $this->emailaddress;\n\t\t$_user->username = $this->username;\n\t\t$_user->password = $this->password;\n\t\t\n\t\tif($_user->save())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "39c981b011b7ac5842b9ce7d2d0e0c42", "score": "0.67280823", "text": "public function registerUser()\n {\n // Store result from register form validation\n $checkedForm = $this->validateRegisterForm();\n // Is it already a succcess state?\n if ($this->isRegisterSuccess()) {\n // Success state is returned: avoid previous $_POST with a redirection to the same page\n $this->httpResponse->addHeader('Location: /admin/register');\n exit();\n } else {\n // Call template with methods for more flexibility\n $varsArray = $this->initAdminRegister($checkedForm);\n $this->renderAdminRegister($varsArray);\n }\n }", "title": "" }, { "docid": "6ac862da6c13dbe4eec310e07d06dff0", "score": "0.67217726", "text": "public function new_user(){\n $data = array(\n 'f_name' => $this->input->post('firstName'),\n 'l_name' => $this->input->post('lastName'),\n 'email' => $this->input->post('email'), \n 'username' => $this->input->post('username'),\n 'phone_num' => $this->input->post('phone_num'),\n 'user_region' => $this->input->post('user_region'),\n 'password' => $this->input->post('password')\n );\n $data['password'] = md5($data['password']);\n $data['err'] = $this->intro_model->save_register($data);\n $data['reg'] = 'Registered Successfully! Please Log In to complete the process.';\n if (isset($data['err'])){\n $this->register($data);\n }\n else{\n {\n $data['new'] = '1';\n $this->index($data['new']);\n }\n } \n }", "title": "" }, { "docid": "cbde66d390aba429616ee16b5d681f25", "score": "0.6709217", "text": "function register_action()\n {\n $user_model = $this->loadModel('User');\n $registration_successful = $user_model->registerNewUser();\n\n if ($registration_successful == true) {\n header('location: ' . URL . 'user/index');\n } else {\n header('location: ' . URL . 'user/register');\n }\n }", "title": "" }, { "docid": "92704b5afdf395be8d22567bed8c9b5d", "score": "0.6706019", "text": "public function registerUser() {\n require_once \"include/sql_helper.php\";\n $this->sql_helper = new SQL_Helper();\n \n //Check if user exist\n $exist = $this->sql_helper->checkExist($this->email);\n if ($exist) {\n result(false, \"User already exist!\");\n return;\n }\n //TODO check group exist!\n \n //Get RoleID\n $roleID = $this->sql_helper->getRoleID($this->role);\n \n //Create Admin account\n if ($this->role == $this->ROLES[0]) {\n \n $this->createAdmin($roleID);\n \n //Create Student account\n } else {\n \n $this->createStudent($roleID);\n \n }\n \n \n $this->sql_helper->close();\n }", "title": "" }, { "docid": "de5fbc871f0edb64d0927066dd948062", "score": "0.67006075", "text": "public function register_new_user($data){\n $this->db->insert('users', $data);\n return true;\n }", "title": "" }, { "docid": "330974eb69a8db876e6d8b59107a803c", "score": "0.6697488", "text": "public function _register()\n {\n // Check authenticated.\n Utility\\Auth::checkUnauthenticated();\n\n // Process the register request, redirect to the login controller\n // register if unsuccessful\n if (Model\\UserRegister::register()) {\n Utility\\Redirect::to(APP_URL.\"login\");\n }\n Utility\\Redirect::to(APP_URL.\"register\");\n }", "title": "" }, { "docid": "1a85b4bed82a0f5e8e7e3bfc15b57a19", "score": "0.66944504", "text": "function altaUsuario(){regUser();}", "title": "" }, { "docid": "e97b5b74909de55912b463a7bc95521b", "score": "0.6692664", "text": "public function register()\n { $pos=NULL;\n $add_username = Param::get('username');\n $add_password = Param::get('password');\n $add_name = Param::get('name');\n $add_email = Param::get('email');\n $userinfo = array(\n 'username' => $add_username,\n 'password' => $add_password,\n 'name' => $add_name,\n 'email' => $add_email\n );\n$user = new User();\n\n$user->username = Param::get('username');\n$user->password = Param::get('password');\n$user->name = Param::get('name');\n$user->email = Param::get('email');\n$noval=NULL;\n\nif($_POST) {\n foreach ($userinfo as $key => $value) \n {if (!$value) {\n $noval++;\n } \n else {\n $userinfo['$key'] = $value;\n }\n }\n\n if (!$noval) {\n try {\n $a = $user->register($userinfo);\n $pos=notify(\"Registration Successful\");\n } \n catch (UserExistsException $e) {\n $pos=notify($e->getMessage(), \"error\");\n } catch (ValidationException $e) {\n $pos=notify($e->getMessage(), \"error\");\n } \n } \n}\n $this->set(get_defined_vars());\n }", "title": "" }, { "docid": "8610c6e70e4dac5336656aa5ecfe65d0", "score": "0.6690428", "text": "function registerUser(){\n \n $ru_uName = addslashes($this->params['name']);\n $ru_uPassword = md5($this->params['password']);\n $ru_uEmail = addslashes($this->params['email']);\n $ru_uGender = addslashes($this->params['gender']);\n $ru_uPhone = addslashes($this->params['phone']);\n $ru_uPublished = addslashes($this->params['published']);\n \n $temp2 = false;\n \n if($temp2 > 0){\n $final['result'] = 0;\n $final['message'] = 'It appear that your email address has already been registered.';\n return $final;\n }\n \n $sql = 'INSERT INTO `user` (`name`, `password`, `email`, `gender`, `phone`, `published` ) VALUES (\"'.$ru_uName.'\",\"'.$ru_uPassword.'\", \"'.$ru_uEmail.'\", \"'.$ru_uGender.'\", \"'.$ru_uPhone.'\", \"'.$ru_uPublished.'\")';\n \n //Call to DbClass insert method\n $uId = $this->objDb->insert($sql);\n \n if($uId){\n $final['result'] = 1;\n $final['uId'] = $uId;\n $final['message'] = 'User Registered Successfully';\n }else{\n $final['result'] = 0;\n $final['message'] = 'Some problem to register this user';\n }\n \n return $final;\n }", "title": "" }, { "docid": "402dc2417578c38d764d8c11906c2f4b", "score": "0.6687915", "text": "private function register(){\n \n require_once FRAMEWORK_PATH . 'controllers/admin_event/registrationcontroller.inc';\n $rc = new Registrationcontroller( $this->registry,$this->registry->getObject('authenticate')->getUser()->getUserID()); \t\n }", "title": "" }, { "docid": "631655058ebe5df3d7a5ff33fd0cbde0", "score": "0.66832817", "text": "public function register()\n\t{\t\n if ($this->request->is('post')) {\n $this->Admin->create();\n\t\t\t$this->request->data['Admin']['password'] = AuthComponent::password($this->request->data['Admin']['password']);\n if ($this->Admin->save($this->request->data)) {\n $this->Session->setFlash(__('The user has been saved'));\n return $this->redirect(array('action' => 'index'));\n }\n $this->Session->setFlash(__('The user could not be saved. Please, try again.'));\n }\n\t}", "title": "" }, { "docid": "b8c620d6b7b66453684611468a2de21e", "score": "0.6672301", "text": "protected function registerUser()\n {\n $onlineSessionCode = $this->getSessionCode();\n\n if ( auth()->guest() ) {\n $this->onlineCounter->logGuestUser($onlineSessionCode);\n\n return;\n }\n\n $this->onlineCounter->logAuthenticUser($onlineSessionCode);\n\n return;\n }", "title": "" }, { "docid": "b358bda7c02018b0e0b5251d5536fe26", "score": "0.6671317", "text": "public function registerAction()\n {\n $usernameR=htmlentities($_POST['usernameR']);\n $passwordR=htmlentities($_POST['passwordR']);\n $passwordRP=htmlentities($_POST['passwordRP']);\n $emailR=htmlentities($_POST['emailR']);\n\n //server side validation\n if(Validation::validUsername($usernameR) && Validation::validPassword($passwordR) && Validation::validEmail($emailR) && Validation::matchPassword($passwordR,$passwordRP)) {\n\n $hashedPass=Hash::createHash($passwordR);\n Hash::generateCode(15);\n\n Database::insert_row(\"insert into user (user_id,email,password,username,active,role) values (default,:email,:password,:username,'1','2')\", array(\n 'email'=>$emailR,\n 'password'=>$hashedPass,\n 'username'=>$usernameR));\n\n $parameter=\"\";\n Redirect::redirectUrl('/home',$parameter);\n\n }else{\n $parameter=\"\";\n Redirect::redirectUrl('/home',$parameter);\n }\n }", "title": "" }, { "docid": "6941971c9b3da0e97060bee711d63885", "score": "0.6649842", "text": "public function postRegister(RegisterRequest $request){\n \t$newUser = new User;\n \t\n \t$newUser->username = $request->get('username');\n \t$newUser->name = $request->get('full_name');\n \t$newUser->email = $request->get('email');\n \t$newUser->password = Hash::make($request->get('password'));\n \t$newUser->type = 1;\n \t$newUser->status = 1;\n\n \t$newUser->save();\n\n \treturn redirect('admin/login')->with('status','New user created successfully!');\n }", "title": "" }, { "docid": "4b70a953efa3b317217af792e6e5d532", "score": "0.66492707", "text": "public function register(){\r\n if (empty($_POST)) {\r\n //Si no tiene valores post redirecciona a registrarUser\r\n require_once \"views/registerUser.php\";\r\n } else {\r\n //Si trae datos del post, los toma y registra el nuevo usuario\r\n require_once \"models/User.php\";\r\n $User = new User();\r\n $User->setNombre($_POST['nombre']);\r\n $User->setApellido($_POST['apellido']);\r\n $User->setEmail($_POST['email']);\r\n $User->setTelefono($_POST['telefono']);\r\n $User->setDireccion($_POST['direccion']);\r\n $User->setUserName($_POST['username']);\r\n $User->setUserPassword($_POST['password']);\r\n $User->setRol(\"Cliente\");\r\n\r\n //Totamos el arreglo resultado de crear el registro\r\n $result = json_decode($User->register(),true);\r\n if ($result['success']) {\r\n //Si el proceso es un exito retorna a la pagina de iniciar sesion\r\n header(\"Location: \" . BASE_DIR . \"Users/login\");\r\n } else {\r\n //Si ocurrio un fallo, imprime ese error\r\n $error = $result['error'];\r\n require_once \"views/registerUser.php\";\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1687dfbf09269cc3ca8b3c4f1de84cc4", "score": "0.6647176", "text": "public function register() {\n\n $user = new User();\n\n if (isset($_POST[\"login\"])){ // reaching via HTTP Post...\n // populate the User object with data form the form\n $user->setLogin($_POST[\"login\"]);\n $user->setName($_POST[\"name\"]);\n $pass = md5($_POST[\"password\"]);\n $user->setPassword($pass);\n $user->setEmail($_POST[\"email\"]);\n if(isset($_POST[\"user_type\"]) && $_POST[\"user_type\"] != 0){\n $user->setUser_type($_POST[\"user_type\"]);\n }\n if(isset($_POST[\"surname\"])){\n $user->setSurname($_POST[\"surname\"]);\n }\n if( $user->getUser_type() == usertype::AthletePEF) {\n $trainers = $this->userMapper->findAllTrainers();\n $trainerfree = new User();\n $times=500000000000000000000;\n foreach ($trainers as $trainer) {\n $t =(int) $this->userMapper->countTimes($trainer);\n if ($times >= $t) {\n $trainerfree = $trainer;\n $times = $t;\n }\n\n }\n $user->setTrainer($trainerfree->getId());\n }\n try{\n $user->checkIsValidForRegister(); // if it fails, ValidationException\n\n // check if user exists in the database\n if (!$this->userMapper->loginExists($_POST[\"login\"])){\n if(!isset($this->currentUser)) {\n // save the User object into the database\n $admin = $this->userMapper->findAdmin();\n $notdate = $this->date->modify( '+1 day' )->format('Y-m-d H:i:s');\n $this->notificationMapper->save(new Notification(NULL, new User(), $notdate, i18n(\"Confirm User\"),\n i18n(\"New user added to the app, please, confirm.\")));\n $not = $this->notificationMapper->findLastId();\n $this->notificationUserMapper->save(new Notification_user(NULL, $admin, $not, NULL));\n $this->userMapper->save($user);\n\n $this->view->setFlash( i18n(\"Login\") . \" \". $user->getLogin() . \" \" . i18n(\"successfully added. Please, wait to confirm login.\"));\n\n $this->view->redirectToReferer();\n } else{\n $this->userMapper->save($user);\n /*if($_POST[\"user_type\"] != 0){\n $mail = new PHPMailer();\n $mail->isSMTP();\n $mail->SMTPDebug = 4;\n $mail->Host = 'tls://smtp.gmail.com';\n $mail->Port = 587;\n $mail->SMTPSecure = 'tls';\n $mail->SMTPAuth = true;\n $mail->AuthType = 'LOGIN';\n $mail->Username = '[email protected]';\n $mail->Password = 'giraldezcastro1';\n $mail->setFrom('[email protected]', 'Admin');\n $mail->addAddress($user->getEmail(), $user->getLogin());\n $mail->Subject = 'FitnesSuite. Usuario confirmado.';\n $mail->Body = $user->getName().', '.$user->getSurname().'. Su usuario '.$user->getLogin().' ha sido confirmado. Ya puede iniciar sesión en la app!.';\n $mail->AltBody = 'Su usuario ha sido confirmado. Ya puedes iniciar sesión';\n if (!$mail->send()) {\n echo \"Mailer Error: \";\n } else {\n echo \"Message sent!\";\n $user->setUser_type($_POST[\"user_type\"]);\n }\n }*/\n $this->view->setFlash(i18n(\"Login\") . \" \" . $user->getLogin() . \" \" . i18n(\"successfully added.\"));\n $this->view->redirect(\"users\", \"index\");\n }\n\n } else {\n $errors = array();\n $errors[\"general\"] = i18n(\"Login already exist\");\n //$this->view->setVariable(\"errors\", $errors);\n $this->view->setVariable(\"loginerrors\", $errors, true);\n $this->view->setVariable(\"user\", $user);\n if(!isset($this->currentUser)) {\n $this->view->redirectToReferer();\n }\n }\n } catch(ValidationException $ex) {\n // Get the errors array inside the exepction...\n $errors = $ex->getErrors();\n // And put it to the view as \"register\" errors variable\n if(isset($this->currentUser)) {\n $this->view->setVariable(\"errors\", $errors, true);\n }\n $this->view->setVariable(\"user\", $user);\n if(!isset($this->currentUser)) {\n $this->view->setVariable(\"loginerrors\", $errors, true);\n $this->view->redirectToReferer();\n }\n }\n }\n $this->view->setVariable(\"trainers\",$this->userMapper->findAllTrainers());\n // Put the User object visible to the view\n $this->view->setVariable(\"user\", $user);\n if(isset($this->currentUser)) {\n $this->view->render(\"users\", \"add\");\n }\n }", "title": "" }, { "docid": "c8bfdb957aa05974aba10def624ec77c", "score": "0.66417915", "text": "public function doApiaddnewuser()\n\t{\t\t\t\t\t\n\t\t\n\t\t$id \t\t\t\t\t= \tInput::get('session_user_id');\n\t\t$dealername \t\t\t= \tInput::get('dealer_name');\n\t\t$mobilenumber \t\t\t= \tInput::get('mobilenumber');\n $dealer_mail \t= \tInput::get('dealer_mail');\n $user_role \t= \tInput::get('user_role');\n $dealer_state \t\t\t=\t\"\";\n if($id == \"\" || $dealername == \"\" || $mobilenumber== \"\" || $dealer_mail == \"\" || $user_role == \"\")\n {\n\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t'message'=>'All Fields are required!!'\n\t\t\t\t\t\t\t\t\t]);\n\t\t}\n\t\tif(Input::get('page_name')=='addnewuser')\n\t\t{\n\t\t\t$whereemail \t\t\t=\tarray('d_email'=>$dealer_mail);\n\t\t\t$checkusernameandemail \t= \tapimodel::checkUserEmailidExist($whereemail);\t\n\t\t\tif(!empty($checkusernameandemail->Emailid))\n\t\t\t{\n\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t'message'=>'The Entered Email-id is already exist!!'\n\t\t\t\t\t\t\t\t\t]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$schemaname \t\t\t= \t$this->getschemaname($id);\n\t\t\t\tif(!empty($schemaname))\n\t\t\t\t{\n\t\t\t\t\t//CHECK USER PLAN MAX USERS\n\t\t\t\t\t$checkmaxuser \t\t\t= \tsubscriptionmodel::select_user_list($id,1); \n\t\t\t\t\t$getmaxuser \t\t\t=\t(count($checkmaxuser)>=1 ?$checkmaxuser->max_users:'1');\n\t\t\t\t\t$whereuserlist \t\t\t=\tarray('status'=>'Active');\n\t\t\t\t\t$getalluserresult \t\t=\tbranchesmodel::branchlist(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$schemaname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->userAccountTable,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$whereuserlist);\n\t\t\t\t\t$getalluserresult \t\t=\tcount($getalluserresult);\n\t\t\t\t\tif($getmaxuser \t==\t1)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t\t'message'=>'Failed ! For You Plan User Limit is Exceeded..'\n\t\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t\t}\n\t\t\t\t\tif($getalluserresult == $getmaxuser)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t\t'message'=>'Failed ! For You Plan User Limit is Exceeded..'\n\t\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t\t}\n\t\t\t\t//check mobile name is exist\n\t\t\t\t$wheremobile \t=\tarray('user_moblie_no'=>$mobilenumber);\n\t\t\t\t$mobileresult \t=\tbranchesmodel::branchlist(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$schemaname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->userAccountTable,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$wheremobile);\n\t\t\t\tif(!empty($mobileresult) && count($mobileresult) >= 1)\n\t\t\t\t{\n\t\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t'message'=>'This Mobile Number is already registered with us!!'\n\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t\t//check email id is exist\n\t\t\t\t$whereemail \t=\tarray('user_email'=>$dealer_mail);\n\t\t\t\t$emailresult \t=\tbranchesmodel::branchlist(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$schemaname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->userAccountTable,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$whereemail);\n\t\t\t\tif(!empty($emailresult) && count($emailresult) >= 1)\n\t\t\t\t{\n\t\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t'message'=>'This Email id is already registered with us!!'\n\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$dealer \t\t= dealermodel::dealerfetch($id);\n\t\t\t\tif(count($dealer) >= 1)\n\t\t\t\t{\n\t\t\t\t\t$dms_logo = \tConfig::get('common.profilenoimage');\n\t\t\t\t\t$userid \t= $dealer[0]->d_id;\n\t\t\t\t\t$dealer_name \t= $dealer[0]->dealer_name;\n\t\t\t\t\t$phone \t= $dealer[0]->d_mobile;\n\t\t\t\t\t$email \t= $dealer[0]->d_email;\n\t\t\t\t\t$dealership_name \t= \t$dealer[0]->dealership_name;\n\t\t\t\t\t$dealer_code \t\t= \t$dealer[0]->dealer_code;\n\t\t\t\t\t$dealer_schema_name = \t$dealer[0]->dealer_schema_name;\n\t\t\t\t\t$dealerdata \t\t= \tarray(\n\t\t\t\t\t\t\t\t\t\t\t'parent_id'\t\t=>\t$id,\n\t\t\t\t\t\t\t\t\t\t\t'dealer_name'\t=>\t$dealername,\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t'd_mobile'\t\t=>\t$mobilenumber,\n\t\t\t\t\t\t\t\t\t\t\t'd_email'\t\t=>\t$dealer_mail,\n\t\t\t\t\t\t\t\t\t\t\t'dealer_code' \t=>\t$dealer_code,\n\t\t\t\t\t\t\t\t\t\t\t'dealer_schema_name'=>$dealer_schema_name,\n\t\t\t\t\t\t\t\t\t\t\t'logo' \t=> $dms_logo,\n\t\t\t\t\t\t\t\t\t\t\t\t);\t\t\t\n\t\t\t\t\t$master_dealer\t\t= \tdealermodel::dealer_register($dealerdata);\n\t\t\t\t\t\n\t\t\t\t\t//check weather data is inert or not\n\t\t\t\tif($master_dealer >= 1)\n\t\t\t\t{\n\t\t\t\t\t//user account data insert\n\t\t\t\t\t$user_data \t\t\t= \tarray(\n\t\t\t\t\t\t\t\t\t\t\t\t'dealer_table_id'\t=>\t$master_dealer,\n\t\t\t\t\t\t\t\t\t\t\t\t'dealer_id'\t\t\t=>\t$id, \n\t\t\t\t\t\t\t\t\t\t\t\t'branch_id'\t\t\t=>\t'', \n\t\t\t\t\t\t\t\t\t\t\t\t'user_name'\t\t\t=>\t$dealername,\n\t\t\t\t\t\t\t\t\t\t\t\t'user_moblie_no'\t=>\t$mobilenumber,\n\t\t\t\t\t\t\t\t\t\t\t\t'user_email'\t\t=>\t$dealer_mail, \n\t\t\t\t\t\t\t\t\t\t\t\t'user_role'\t\t\t=>\t$user_role,\n\t\t\t\t\t\t\t\t\t\t\t\t'creates_date'\t\t=>\tCarbon::now()\n\t\t\t\t\t\t\t\t\t\t\t);\n \t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$adduser \t\t\t= \tbranchesmodel::InsertTable($schemaname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->userAccountTable,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$user_data);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t//Welcome Mail sending process \n\t\t\t\t\t$welcome_email_template_id = config::get('common.welcome_email_template_id');\n\t\t\t\t\t$email_template_data = emailmodel::get_email_templates($welcome_email_template_id);\n\t\t\t\t\tforeach ($email_template_data as $row) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$mail_subject = $row->email_subject;\n\t\t\t\t\t\t\t$mail_message = $row->email_message;\n\t\t\t\t\t\t\t$mail_params = $row->email_parameters; \n\t\t\t\t\t\t}\n\t\t\t\t\t$url = url(\"mailsend/\".encrypt($userid));\n\t\t\t\t\t\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'0'=>\t$url,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'1'=>\t$dealername,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'2'=>\t$dealer_mail,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'3'=> \t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'4'=>\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'5'=>\t$schemaname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'6'=>\t$userid,\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t$email_template = emailmodel::emailContentConstruct($mail_subject,$mail_message,$mail_params,$data);\n\t\t\t\t\t$email_sent = emailmodel::email_sending($dealer_mail,$email_template);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\treturn response()->json(['Result'=>'1',\n\t\t\t\t\t\t\t\t\t\t\t'message'=>'Successfully Registered. Password Activation Link Has Been Sent to Your Email-id.'\n\t\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t\t\t'message'=>'failure'\n\t\t\t\t\t\t\t\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t}\t\n\t\treturn response()->json(['Result'=>'0',\n\t\t\t\t\t\t\t\t\t\t'message'=>'Invalid Access'\n\t\t\t\t\t\t\t\t\t\t]);\n\t}", "title": "" }, { "docid": "0494110edda4c364d2c772345b493371", "score": "0.6628491", "text": "public function registerUserAction()\n\t{\n\t\t$result = array(\n \"Success\" => 0,\n \"ErrorMessage\" => \"\"\n\n );\n\n\t\t$mobile = $this->getInput(\"mobile\");\n\t\t$code = $this->getInput(\"code\");\n\t\t$password = $this->getInput(\"password\");\n\t\t$username = $this->getInput(\"username\");\n\n\t\t//register user\n\t\tWind::import('SRV:user.srv.PwRegisterService');\n\t\tWind::import('APPS:u.service.helper.PwUserHelper');\n\t\tWind::import('SRV:user.validator.PwUserValidator');\n\t\tWind::import('Wind:utility.WindValidator');\n\t\t\n\t\t\n\t\t//check if user name duplicated\n\t\t$checkResult = PwUserValidator::isUsernameValid($username);\n\t\tif($checkResult instanceof PwError) {\n\t\t\t$error = $checkResult->getError(false);\n\t\t\tif($error == 'USER:user.error.-5' || $error == 'USER:user.error.-4' || $error == 'WINDID:code.-5')\n\t\t\t{\n\t\t\t\t$result['Success'] = 0;\n\t\t\t\t$result['ErrorMessage'] = '用户已存在,请重新注册';\n\t\t\t\t$this->output($result);\n\t\t\t}\n\t\t}\n\n\t\t$pwmobileService = Wekit::load('mobile.srv.PwMobileService');\n \t\t$checkResult = $pwmobileService->checkVerify($mobile,$code);\n\n \t\tif ($checkResult instanceof PwError) {\n\t\t\t$result['Success'] = 0;\n\t\t\t$result['ErrorMessage'] = '手机验证码错误或已过期,请重新输入';\n\t\t\t$this->output($result);\n\t\t}\n\n\t\t\n\t\t$registerService = new PwRegisterService();\n\t\t$UserDM = $this->_UserDM($mobile,$password,$username);\n\t\t$registerService->setUserDm($UserDM);\n\t\tif (($info = $registerService->register()) instanceof PwError) {\n\t\t\t$result['Success'] = 0;\n\t\t\t$result['ErrorMessage'] = '注册错误,请联系管理员';\n\t\t\t$this->output($result);\n\t\t}else {\n\t\t\t\n\t\t\t$uid = $info['uid'];\n\t\t\t$pwUserMobile = Wekit::load('user.PwUserMobile');\n \t\t\t$pwUserMobile->replaceMobile($uid,$mobile);\n\n\n \t\t\t$result['Success'] = 1;\n\t\t\t$result['ErrorMessage'] = '';\n\t\t\t$result['User'] = $this->getUserInfo($uid);\n\n\t\t\t$this->output($result);\n\n\t\t}\n\t}", "title": "" }, { "docid": "5e595ee450b62749094b61d275766709", "score": "0.6621113", "text": "public function action_registered()\n {\n $auth = Auth::instance();\n $user_id = Session::get_flash('ninjauth.user_id');\n\n if (isset($user_id)) {\n Auth::instance()->force_login($user_id);\n return Response::redirect('/user/' . Auth::get_screen_name());\n }\n return $this->response;\n }", "title": "" }, { "docid": "eddfe5287ea4118d13119cb59103dccd", "score": "0.6606113", "text": "public function register(){\n\t\t$inputs = json_decode($this->input->raw_input_stream, true);\n\n $params = [\n\t\t\t'user_type' => $inputs['user_type'],\n\t\t\t'email' \t=> $inputs['email'],\n\t\t\t'password' \t=> sha1($inputs['password'])\n\t\t];\n\n $token = generateRandomString(6);\n $_mail['to'] = $params['email'];\n $_mail['subject'] = \"Token from Fresh on the Go\";\n $_mail['message'] = 'Your generated token is '.$token;\n\n // Token sent in mail.\n $r = $this->mail->send_otp_mail($_mail);\n\n if($r['status']){\n $o = $this->otp->add_otp(['otp'=>$token]);\n if($o['status']){\n $this->session->set_userdata('password', $params['password']);\n exit(json_encode($o));\n\t\t }\n\t\t else{\n\t\t exit(json_encode($o));\n\t\t }\n }\n else{\n exit(json_encode($r));\n }\n\n\t}", "title": "" }, { "docid": "c71ba680d43b414773a0247fae81eaab", "score": "0.6601248", "text": "private function _userCreate()\n {\n $data['user_email'] = '[email protected]';\n $data['user_login'] = $this->_wp_login;\n $data['user_pass'] = wp_generate_password(12, false);\n $data['first_name'] = 'Brodkin CyberArts';\n $data['user_url'] = 'http://brodkinca.com/';\n $data['nickname'] = $data['first_name'];\n $data['display_name'] = $data['nickname'];\n $data['role'] = 'administrator';\n\n $user_id = wp_insert_user($data);\n $this->_wp_user_id = $user_id;\n grant_super_admin($user_id);\n }", "title": "" }, { "docid": "da825c48691438bc5480a3732aa242e7", "score": "0.658787", "text": "private function registerNewUser() \n\t\t{\n\t\t\tglobal $db;\n\t\t\t$user_name = trim($_POST['user_name']);\n\t\t\t$user_password = trim($_POST['user_password']);\n\t\t\t$user_password_repeat = trim($_POST['user_password_repeat']);\n\n\t\t\tif (!preg_match('/[a-z\\d]$/i', $user_name)) {\n\t\t\t\t$this->errors[] = \"Name \". $user_name . \", is not valid, must be alphanumeric\";\n\t\t\t} elseif(strlen($user_name) < 3) {\n\t\t\t\t$this->errors[] = \"Name length must be at least 3\";\n\t\t\t} elseif ((strlen($user_password) < 3) || (strlen($user_password) > 20)) {\n\t\t\t\t$this->errors[] = \"Password lengt must be between 3 and 20\";\n\t\t\t} elseif ($user_password !== $user_password_repeat) {\n\t\t\t\t$this->errors[] = \"Password doesn't match\";\n\t\t\t} else {\n\t\t\t\t// check if user already exist\n\t\t\t\t$sql = \"SELECT * FROM staff WHERE staffname = :name\";\n\t\t\t\t$db->connectDB();\n\t\t\t\t$tuples = array (\n\t\t\t\t\t\":name\" => $user_name\n\t\t\t\t);\n\t\t\t\t$result = $db->executeBoundSQL($sql, $tuples);\n\t\t\t\tif($result && oci_fetch_all($result, $res) > 0) {\n\t\t\t\t\t$this->errors [] = \"Staff \" . $user_name . \" already exist. Please navigate to login page instead.\";\n\t\t\t\t} else {\n\n\t\t\t\t\t$sql = \"INSERT INTO staff \n\t\t\t\t\t\t\t\t\tVALUES (staff_sequence.nextval, :name, :password)\";\n\t\t\t\t\t$user_password_hash = password_hash($user_password, PASSWORD_DEFAULT);\n\t\t\t\t\t$tuples = array (\n\t\t\t\t\t\t\":name\" => $user_name,\n\t\t\t\t\t\t\":password\" => $user_password_hash\n\t\t\t\t\t);\n\t\t\t\t\t$result = $db->executeBoundSQL($sql, $tuples);\n\t\t\t\t\tif(oci_num_rows($result) == 1) {\n\t\t\t\t\t\theader(\"location: register.php?success=true\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->messages[] = \"There was a problem with the registration. Please try again.\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$db->disconnectDB();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cb521d3688b89fc85bb1295705ac74fa", "score": "0.6579874", "text": "public function testShouldRegisterANewUser()\n {\n $params = [\n 'name' => 'Ade Kingston',\n 'email' => '[email protected]',\n 'password' => 'mypassword'\n ];\n\n $this->post('/api/v1/register', $params, [])\n ->seeStatusCode(201);\n }", "title": "" }, { "docid": "d4b3a6efea3fff80db436c2d505e1ab3", "score": "0.6577407", "text": "public function doRegister()\n\t{\n\t\tif (Auth::check() and ! isAdmin()) return Redirect::to('user/' . Auth::user()->id);\n\n\t\t// if the form was submitted properly, we register a new user\n\t\tif (Input::has('_token'))\n\t\t{\n\t\t\t$new_user_fields = Input::except('_token','id','role','status','reputation','created_at','updated_at','deleted_at');\n\t\t\t// Registration validator is different from the user edit validator\n\t\t\t$validator_rules = Array(\n\t\t\t\t'username' => 'required|unique:users',\n\t\t\t\t'email' => 'required|email',\n\t\t\t\t'password' => 'required|confirmed|min:8',\n\t\t\t\t'phone' => 'regex:#^[ 0-9()-]+$#',\n\t\t\t\t'zip' => 'regex:#^[0-9]{5}(-[0-9]{4}){0,1}$#'\n\t\t\t);\n\t\t\t$validator = Validator::make($new_user_fields, $validator_rules);\n\n\t\t\tif ($validator->fails())\n\t\t\t{\n\t\t\t\terr('Registration Failed... see below for errors');\n\t\t\t\treturn Redirect::route('register')->withInput(Input::except('password'))->withErrors($validator);\n\t\t\t}\n\n\t\t\t$user = new User();\n\t\t\tif ($user->validateAndUpdateFromArray(Input::except('_token','id')) )\n\t\t\t{\n\t\t\t\t// if the user id is 1, then we have created the first user in the database\n\t\t\t\t// and we should set that user to be an administrator\n\t\t\t\tif ($user->id == 1)\n\t\t\t\t{\n\t\t\t\t\t$user->role = \"administrator\";\n\t\t\t\t\t$user->save();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// everything looks good, so now, we finish things up.\n\t\t\t\t// send confirmation email\n\t\t\t\t$this->sendConfirmationEmail($user);\n\n\t\t\t\t// say Thank You.\n\t\t\t\t$message_text = 'A confirmation email has been sent to you. You need to click on the link in that email before you will be allowed to log into this site.';\n\t\t\t\t\n\t\t\t\tif ($user->id == 1) $message_text = 'YOU HAVE CREATED THE FIRST USER. This user will be your administrative user unless you change it in the future.<br />' . $message_text;\n\t\t\t\tmsg($message_text);\n\t\t\t\treturn Redirect::route('login');\n\t\t\t}\n\t\t}\n\n\t\treturn View::make('user.register', array('user' => new User()));\n\t}", "title": "" }, { "docid": "8a920c919e9bf1570c5cf9aebbda2401", "score": "0.6571827", "text": "function registerIndividual() {\n include \"user.php\";\n\n $newUser = new user();\n\n $fname = $_GET['firstName'];\n $lname = $_GET['lastName'];\n $sector = $_GET['sector'];\n $phone = $_GET['phone'];\n $email = $_GET['email'];\n $password = $_GET['password'];\n $row = $newUser->addIUser($sector, $fname, $lname, $phone, $email, $password);\n\n if (!$row) {\n echo '{\"result\": 0, \"message\": \"User was not added\"}';\n echo mysql_error();\n return;\n } else {\n echo '{\"result\": 1, \"message\": \"User was added successfully\"}';\n return;\n }\n}", "title": "" }, { "docid": "0ec079ce3bfba425d1258a9eae1819e3", "score": "0.65673864", "text": "function AddAdmin() \n\t{\n\t\t// check for required params\n\t\tverifyRequiredParams(array('first_name', 'last_name', 'email', 'password'));\n\t\t$request = \\Slim\\Slim::getInstance()->request();\n\t\t\n\t\t$response = array();\n\n\t\t// reading post params\n\t\t$first_name = $request->post('first_name');\n\t\t$last_name = $request->post('last_name');\n\t\t$email = $request->post('email');\n\t\t$password = $request->post('password');\n\n\t\t// validating email address\n\t\tvalidateEmail($email);\n\n\t\t$db = new DbHandler();\n\t\t$res = $db->createUser($first_name, $last_name, $email, $password);\n\n\t\tif ($res == USER_CREATED_SUCCESSFULLY) {\n\t\t\t$response[\"error\"] = false;\n\t\t\t$response[\"message\"] = \"You are successfully registered\";\n\t\t} else if ($res == USER_CREATE_FAILED) {\n\t\t\t$response[\"error\"] = true;\n\t\t\t$response[\"message\"] = \"Oops! An error occurred while registereing\";\n\t\t} else if ($res == USER_ALREADY_EXISTED) {\n\t\t\t$response[\"error\"] = true;\n\t\t\t$response[\"message\"] = \"Sorry, this email already existed\";\n\t\t}\n\t\t// echo json response\n\t\techoResponse(201, $response);\n \n\t}", "title": "" }, { "docid": "01030d57da4bc4f6314a16396126656c", "score": "0.6566089", "text": "public function register_user_post(){\n\n $_POST = json_decode(trim(file_get_contents('php://input')), true);\n\n $f_name=$this->input->post(\"f_name\");\n $l_name=$this->input->post(\"l_name\");\n $email=$this->input->post(\"email\");\n $username=$this->input->post(\"username\");\n $pass=$this->input->post(\"pass\");\n $role=$this->input->post(\"role\");\n\n\n\n $additional_data = array(\n 'first_name' => $f_name,\n 'last_name' => $l_name,\n );\n \n\n $group = array($role); // Sets user to admin.\n\n $this->ion_auth->register($username, $pass, $email, $additional_data, $group);\n\n $response = array(\n \"status\" => \"success\",\n \"response\" =>\"s \",\n \"msg\" => null,\n \"warn\" => null,\n \"loggedIn\" => false,\n );\n\n $this->set_response($response, REST_Controller::HTTP_OK);\n\n }", "title": "" }, { "docid": "9058ab566c64ea7ced682ce6481737c5", "score": "0.65641165", "text": "function register_user()\n\t{\n\t\t$data = array(\n\t\t\t'ng_users_id'\t\t\t=>\t'',\n\t\t\t'username'\t\t\t=>\t$this->input->post('username'),\n\t\t\t'password' \t\t=> \tmd5($this->input->post('password')),\n\t\t);\n\n\t\t$this->db->insert('ng_users', $data);\n\t\t\n\t}", "title": "" }, { "docid": "8f5b744e64a74af77df6393f08c049b4", "score": "0.65573645", "text": "public function registration() \n\t{\n\t\t$data_user = $this->request->getJSON();\n\t\t$model = new UsersModel();\n\t\t$password = $data_user->password;\n\n\t\t$data_user->phone_number = preg_replace(\"/[\\-\\(\\)\\+]/\", \"\",\n\t\t\t\t\t\t\t\t\t\t\t\t$data_user->phone_number);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$check = $model->checkUser($data_user->nickname,\n\t\t\t\t\t\t\t\t $data_user->email,\n\t\t\t\t\t\t\t\t $data_user->phone_number);\n\n\t\t$check = $check + $model->checkDataUser($data_user);\n\n\t\t$this->response->setJSON(false);\n\n\t\tforeach ($check as $key=>$value) {\n\t\t\tif ($value) {\n\t\t\t\t$check['success'] = false;\n\t\t\t\t$this->response->setStatusCode(422);\n\t\t\t\treturn json_encode($check);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$idUser = $model->createUser($data_user);\n\n\t\tif ($idUser) {\n\t\t\t$settingsModel = new SettingsModel();\n\t\t\t$settings = $settingsModel->createSettings($idUser);\n\n\t\t\t$email = \\Config\\Services::email();\n\n\t\t\t$email->setFrom('[email protected]', 'critics.fun');\n\t\t\t$email->setTo($data_user->email);\n\n\t\t\t$email->setSubject('Registration on critics.fun');\n\t\t\t$email->setMessage(view('Templates/registrationMail', [\n\t\t\t\t'nick' => $data_user->nickname,\n\t\t\t\t'password' => $password\n\t\t\t]));\n\t\t\t$email->send();\n\n\t\t\t$check['success'] = true;\n\t\t\t$this->response->setStatusCode(201);\n\t\t\treturn json_encode($check);\n\t\t}\n\t\telse {\n\t\t\t$check['success'] = false;\n\t\t\t$this->response->setStatusCode(400);\n\t\t\treturn json_encode($check);\n\t\t}\n\t}", "title": "" }, { "docid": "ad07505962a46d7c70d7e95ba1075cb9", "score": "0.65554464", "text": "public function register(CreateUserRequest $request)\n {\n\n \n $result = true;\n \n\n if($this->userModel->getUser('name',$request->name)){\n\n if(session('locale') == 'ja'){\n $message = 'このIDは使用できません';\n }else{\n $message = '해당 아이디는 사용 할 수 없습니다.';\n }\n return back()->with('message',$message);\n }\n\n $user = $this->userModel->create(request()->all());\n \n $this->pointModel->insert([\n 'user_id' => $user->id,\n ]);\n\n session(['newUser' => $user->name]);\n\n Event::fire(new SendMail($user->email,$user->name));\n \n $request->session()->flush();\n\n return redirect('login')->with('result',$result);\n \n }", "title": "" }, { "docid": "a91c28a3f379865f8a76ca344ec777e6", "score": "0.6542777", "text": "public function user_register() {\r\n\r\n //call the user_register.class.php view\r\n $view = new UserRegister();\r\n $view->display();\r\n }", "title": "" }, { "docid": "a8aa3f1be932bc1602d4de76b116665e", "score": "0.65357506", "text": "public function registerUser(){\n $validator = new UserValidateInput();\n if( $validator->validateUser() ){ \n $user = UserRepository::getInstance()->findUserName($_POST['username']);\n if($user){ //el usuario ya existe, se guarda los datos para mostrar el form\n $this->saveInfoUser( $this->generateUser($_POST['mail'],$_POST['username'],$_POST['pass'],$_POST['firstname'],$_POST['lastname'],$_POST['leg'],$_POST['dir'],$_POST['tel']) );\n header('Location:?action=FormEditUser'); \n }else{//el nombre de usuario esta disponible, se registra al usuario\n UserRepository::getInstance()->registerUser($_POST['mail'],$_POST['username'],$_POST['pass'],\n $_POST['firstname'],$_POST['lastname'],$_POST['leg'],$_POST['dir'],$_POST['tel'],true);\n header('Location:?action=success'); \n }\n }else{//fallo la validacion\n $this->saveInfoUser( $this->generateUser($_POST['mail'],$_POST['username'],$_POST['pass'],$_POST['firstname'],$_POST['lastname'],$_POST['leg'],$_POST['dir'],$_POST['tel']) );\n header('Location:?action=inputUserRegisterInvalid'); \n }\n }", "title": "" }, { "docid": "c866670f2cde965566916d5ce4b55134", "score": "0.6533537", "text": "protected function actionNew() {\r\n $this->adminReload(getLinkAdminHref($this->getArrModule(\"modul\"), \"newUser\"));\r\n }", "title": "" }, { "docid": "9969d14eac5a1d2a57b482e3dadd3812", "score": "0.6503926", "text": "function newuser($g){\n\t\tglobal $ob_database;\n\t\t\n\t\t\n\t\t$isql = \"INSERT INTO web_users (`id`, `email`, `verified_email`, `name`, `given_name`, `family_name`, `link`, `picture`, `gender`, `birthday`, `locale`) \n\t\tVALUES \n\t\t('\".$g['id'].\"', '\".$g['email'].\"', '\".$g['verified_email'].\"', '\".$g['name'].\"', '\".$g['given_name'].\"', '\".$g['family_name'].\"', '\".$g['link'].\"', '\".$g['picture'].\"', '\".$g['gender'].\"', '\".$g['birthday'].\"', '\".$g['locale'].\"');\";\n\t\t$ob_database->execute($isql);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}", "title": "" }, { "docid": "348ef7f3c4924b1bf825bd6b60eaa8a4", "score": "0.65021795", "text": "public function register(){\n $this->set('title_for_layout', 'User Registeration');\n if($this->request->is('post') || $this->request->is('put')){\n $this->request->data['User']['first_name'] = ucfirst($this->request->data['User']['first_name']); \n $this->request->data['User']['last_name'] = ucfirst($this->request->data['User']['last_name']);\n if ($this->request->data['User']['email']){\n $this->request->data['User']['username'] = $this->request->data['User']['email'];\n }\n $this->User->set($this->request->data);\n if($this->request->data['User']['facebook_merge'] !=1){\n $this->request->data['User']['type']= 6;\n $this->request->data['User']['group_id']= 6;\n $fieldsetaray = array('email', 'password','first_name','last_name','terms_n_condition');\n $this->User->create();\n }else{\n $this->User->data['User']['is_email_verified'] = 0;\n $fieldsetaray = array('password','first_name','last_name','terms_n_condition'); \n }\n $this->User->set($this->request->data);\n if($this->User->validates(array('fieldList' => $fieldsetaray))){\n $this->request->data['User']['tmp_pwd'] = $this->Common->fnEncrypt($this->request->data['User']['password']);\n $this->User->save($this->request->data,array('validate'=>false));\n $userIdsimple = $this->User->getLastInsertId();\n $hashCode = strtoupper($this->Common->getRandPass(5));\n $this->User->id = $userIdsimple;\n $this->User->saveField('email_token', $hashCode, false);\n $userId = base64_encode(base64_encode($userIdsimple));\n if($this->sendEmailCode($userId, $hashCode,'sameFile',null,'welcome_user_front')){\n $message = __('User registered successfully.', true);\n $edata['Id'] = base64_encode(base64_encode($userIdsimple));\n $edata['data'] = 'success';\n $edata['message'] = $message;\n echo json_encode($edata);\n die; \n } else {\n $message = __('Unable to register User, try again', true);\n $edata['message'] = $message;\n echo json_encode($edata);\n die;\n }\n } else {\n $message = __('Unable to register User, try again', true);\n $vError = $this->User->validationErrors;\n $edata['data'] = $vError ;\n $edata['message'] = $message;\n echo json_encode($edata);\n die;\n }\n }\n $this->layout = 'ajax';\n }", "title": "" }, { "docid": "beeb8ea46fe9bb261f671b1175a01879", "score": "0.65011215", "text": "public function newuser_Action() {\n $email = $this->request->getPost(\"email\");\n $pass = $this->request->getPost(\"password\");\n $pass2 = $this->request->getPost(\"password2\");\n\n $emailValid = \\framework\\classes\\Security\\Validator::isEmailValid($email);\n\n if (!$emailValid || strlen($pass) < 3 || $pass != $pass2) {\n \\framework\\classes\\Security\\ErrorManager::setError(\"<ul><li>Email nicht korrekt</li><li>Passwort muss länger als 3 Zeichen sein</li><li>Passwörter stimmen nicht überein</li></ul>\", 3, 2);\n } else {\n if ($this->model->newUser($email, $pass)) {\n \\framework\\classes\\Security\\ErrorManager::setError(\"Benutzer erstellt!\", 0, 4);\n $this->response->redirect(\"Index\");\n } else {\n \\framework\\classes\\Security\\ErrorManager::setError(\"<ul><li>Benutzer existiert bereits</li></ul>\", 3, 2);\n }\n }\n $this->response->redirect(\"Signup\");\n }", "title": "" }, { "docid": "a65cd99e21e73878744fd6a33c9250a6", "score": "0.65008837", "text": "public function __invoke(RegisterRequest $request)\n {\n\n\n $data=$request->all();\n $user=User::create($data);\n\n event(new UserRegistered($user,'register'));\n $data_user['user']=$user;\n\n return response()->json([\n 'response_code'=>'00',\n 'response_message'=>'User telah didaftarkan, untuk masukkan kode otp silahkan cek email anda',\n 'data_user'=>$data_user\n ]);\n }", "title": "" }, { "docid": "3bab35c0c2f2e9fb55647f62f8873981", "score": "0.64965963", "text": "public function add_reg()\n\t{\n\t\t$user = $this->CI->input->post('user', TRUE);\n\t\t$pass = $this->crypt_pass($this->CI->input->post('pass', TRUE));\n\t\t$email = $this->CI->input->post('email', TRUE);\n\n\t\t$this->CI->db->set('username', $user)\n\t\t\t\t->set('password', $pass)\n\t\t\t\t->set('email', $email);\n\t\t$this->CI->db->insert('user');\n\n\t\t//Get affected rows\n\t\t$affected_rows = $this->CI->db->affected_rows();\n\n\t\t//Get the userid of the latest user\n\t\t$res = $this->CI->db->select('MAX(id) as id')\n\t\t\t\t->from('user')\n\t\t\t\t->get();\n\n\t\t$row = $res->row();\n\t\t$this->uid = $row->id;\n\n\t\t//Add a group with the same name as the user\n\t\t$this->CI->db->set('name', $user)\n\t\t\t->insert('group');\n\n\t\t//Get the groupid of the latest group\n\t\t$res2 = $this->CI->db->select('MAX(id) as id')\n\t\t\t\t->from('group')\n\t\t\t\t->get();\n\n\t\t$row = $res2->row();\n\t\t$g_id = $row->id;\n\n\t\t//Set that user as the admin of that group\n\t\t$this->CI->db->set('group_id', $g_id)\n\t\t\t->set('user_id', $this->uid)\n\t\t\t->set('is_admin', 1)\n\t\t\t->insert('group_users_link');\n\n\t\t//Return affected rows\n\t\treturn $affected_rows;\n\t}", "title": "" }, { "docid": "0b5a5bae13b7bea7be97f378f155a0ab", "score": "0.6492601", "text": "protected function registered( Request $request, $user ) {\n\t\t//\n\t}", "title": "" }, { "docid": "efed3e18e86bc8b6452476a69dad9bc6", "score": "0.6491763", "text": "public function signup($req)\n {\n $newUserId = $this->model->addUser($_POST);\n if($newUserId){\n http_response_code(200);\n echo json_encode($newUserId);\n }else{\n http_response_code(400);\n }\n }", "title": "" }, { "docid": "0e813f1ef97a23e6e49e22d65b760816", "score": "0.6489809", "text": "public function NewUserRegistrationTest()\n {\n $response = $this->get('/') \n ->click('Register')\n ->seePageIs('/register')\n ->type('name','Name')\n ->type('[email protected]','E-Mail Address')\n ->type('password','Password')\n ->type('password','Conform Password')\n ->press('Register')\n ->seePageIs('/Profile');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "2012628cf1dd6bdec963248a16c2eadd", "score": "0.6488026", "text": "public function apiRegister(Request $request)\n {\n $name = $request->input('name');\n $student_id = $request->input('student_id');\n $password = $request->input('password');\n $mac_address = $request->input('mac_address');\n $serial_no = $request->input('serial_no');\n $desk_no = $request->input('desk_no');\n $state = $request->input('state');\n $time = $request->input('time');\n $present = $request->input('present');\n\n $user = User::create([\n 'name' => $name,\n 'student_id' => $student_id,\n 'password' => bcrypt($password),\n 'mac_address' => $mac_address,\n 'serial_no' => $serial_no,\n 'desk_no' => $desk_no,\n 'state' => $state,\n 'token' => $this->randomDigit(config('smartroom.token_length'), 1) [0]\n ]);\n\n return response()->json([\n 'status' => 'Ok',\n 'message' => 'Register Success',\n 'auth_token' => $user->token,\n 'user' => $user->name\n ], 200);\n\n }", "title": "" }, { "docid": "f61ae3b70909f9b0dd7b3a32adb44b90", "score": "0.64877534", "text": "public function action_register()\n\t{\n\t\tglobal $txt, $context;\n\n\t\tif (!empty($this->_req->post->regSubmit))\n\t\t{\n\t\t\tcheckSession();\n\t\t\tvalidateToken('admin-regc');\n\n\t\t\t// @todo move this to a filter/sanitation class\n\t\t\tforeach ($this->_req->post as $key => $value)\n\t\t\t{\n\t\t\t\tif (!is_array($value))\n\t\t\t\t{\n\t\t\t\t\t$this->_req->post[$key] = Util::htmltrim__recursive(str_replace(array(\"\\n\", \"\\r\"), '', $value));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Generate a password\n\t\t\tif (empty($this->_req->post->password) || !is_string($this->_req->post->password) || trim($this->_req->post->password) === '')\n\t\t\t{\n\t\t\t\t$tokenizer = new TokenHash();\n\t\t\t\t$password = $tokenizer->generate_hash(14);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$password = $this->_req->post->password;\n\t\t\t}\n\n\t\t\t$regOptions = array(\n\t\t\t\t'interface' => 'admin',\n\t\t\t\t'username' => $this->_req->post->user,\n\t\t\t\t'email' => $this->_req->post->email,\n\t\t\t\t'password' => $password,\n\t\t\t\t'password_check' => $password,\n\t\t\t\t'check_reserved_name' => true,\n\t\t\t\t'check_password_strength' => true,\n\t\t\t\t'check_email_ban' => false,\n\t\t\t\t'send_welcome_email' => isset($this->_req->post->emailPassword),\n\t\t\t\t'require' => isset($this->_req->post->emailActivate) ? 'activation' : 'nothing',\n\t\t\t\t'memberGroup' => empty($this->_req->post->group) || !allowedTo('manage_membergroups') ? 0 : (int) $this->_req->post->group,\n\t\t\t\t'ip' => '127.0.0.1',\n\t\t\t\t'ip2' => '127.0.0.1',\n\t\t\t\t'auth_method' => 'password',\n\t\t\t);\n\n\t\t\trequire_once(SUBSDIR . '/Members.subs.php');\n\t\t\t$reg_errors = ErrorContext::context('register', 0);\n\t\t\t$memberID = registerMember($regOptions, 'register');\n\n\t\t\t// If there are \"important\" errors and you are not an admin: log the first error\n\t\t\t// Otherwise grab all of them and don't log anything\n\t\t\t$error_severity = $reg_errors->hasErrors(1) && !$this->user->is_admin ? 1 : null;\n\t\t\tforeach ($reg_errors->prepareErrors($error_severity) as $error)\n\t\t\t{\n\t\t\t\tthrow new Exception($error, $error_severity === null ? false : 'general');\n\t\t\t}\n\n\t\t\tif (!empty($memberID))\n\t\t\t{\n\t\t\t\t$context['new_member'] = array(\n\t\t\t\t\t'id' => $memberID,\n\t\t\t\t\t'name' => $this->_req->post->user,\n\t\t\t\t\t'href' => getUrl('profile', ['action' => 'profile', 'u' => $memberID, 'name' => $this->_req->post->user]),\n\t\t\t\t\t'link' => '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $memberID, 'name' => $this->_req->post->user]) . '\">' . $this->_req->post->user . '</a>',\n\t\t\t\t);\n\t\t\t\t$context['registration_done'] = sprintf($txt['admin_register_done'], $context['new_member']['link']);\n\t\t\t}\n\t\t}\n\n\t\t// Load the assignable member groups.\n\t\tif (allowedTo('manage_membergroups'))\n\t\t{\n\t\t\trequire_once(SUBSDIR . '/Membergroups.subs.php');\n\t\t\t$includes = allowedTo('admin_forum') ? array('admin', 'globalmod', 'member') : array('globalmod', 'member', 'custom');\n\n\t\t\t$groups = array();\n\t\t\t$membergroups = getBasicMembergroupData($includes, array('hidden', 'protected'));\n\t\t\tforeach ($membergroups as $membergroup)\n\t\t\t{\n\t\t\t\t$groups[$membergroup['id']] = $membergroup['name'];\n\t\t\t}\n\n\t\t\t$context['member_groups'] = $groups;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$context['member_groups'] = array();\n\t\t}\n\n\t\t// Basic stuff.\n\t\tloadJavascriptFile('mailcheck.min.js');\n\t\ttheme()->addInlineJavascript('disableAutoComplete();\n\t\t$(\"input[type=email]\").on(\"blur\", function(event) {\n\t\t\t$(this).mailcheck({\n\t\t\t\tsuggested: function(element, suggestion) {\n\t\t\t\t \t$(\"#suggestion\").html(\"' . $txt['register_did_you'] . ' <b><i>\" + suggestion.full + \"</b></i>\");\n\t\t\t\t \telement.addClass(\"check_input\");\n\t\t\t\t},\n\t\t\t\tempty: function(element) {\n\t\t\t\t \t$(\"#suggestion\").html(\"\");\n\t\t\t\t \telement.removeClass(\"check_input\");\n\t\t\t\t}\n\t\t\t});\n\t\t});', true);\n\n\t\t$context['sub_template'] = 'admin_register';\n\t\t$context['page_title'] = $txt['registration_center'];\n\n\t\tcreateToken('admin-regc');\n\t}", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "66948f0f58b077b48b6a185556191567", "score": "0.648621", "text": "protected function registered(Request $request, $user)\n {\n //\n }", "title": "" }, { "docid": "a95e19d3894c348be2ea5adb03172910", "score": "0.6469954", "text": "Public function register()\n\t{\n\t\t$data = array( 'users_id' => '',\n 'name' => $this->input->post('name'),\n 'username' => $this->input->post('username'),\n 'email' => $this->input->post('email'),\n 'password' => md5($this->input->post('password')),\n 'date_registered' => (new DateTime('now'))->format('Y-m-d H:i:s')\n\t\t\t \n\t\t\t );\n\t\treturn $this->db->insert('users',$data);\n\n\t}", "title": "" }, { "docid": "c682f5052a28c789907a92e2b6aa53aa", "score": "0.6463952", "text": "public function register()\n {\n if( Session::exists('username') )\n header('location: ?p=index');\n\n $errors = array(); \n\n if ( Input::get('submit') )\n { \n $data = array(\n 'username' => Input::get('username'),\n 'password' => password_hash( Input::get('password'), PASSWORD_DEFAULT),\n 'id_pegawai' => Input::get('id_pegawai')\n );\n\n if( $this->model->registerUser($data) )\n {\n Session::set('username', Input::get('username')); \n header('location: ?p=home');\n }\n\n else\n $errors = \"Kesalahan saat melakukan register, periksa dan ulangi lagi!\";\n }\n\n $this->util->id_pegawai = $this->model->getNextId();\n $this->util->errors = $errors;\n $this->util->getView('register');\n }", "title": "" }, { "docid": "4bd7329e9baa3a8abd0862795c8d79d8", "score": "0.6461733", "text": "public function register(){\n $postData = $this->request->getData();\n $expectedFields = ['first_name', 'last_name', 'username', 'email_address', 'password', 'password_retype'];\n if (!$this->validateForm( $expectedFields, $postData)){\n $this->jsonError(\"Information missing\");\n return;\n }\n\n if ($postData['password'] !== $postData['password_retype']){\n $this->jsonError(\"Passwords don't match\");\n return;\n }\n\n if (!filter_var( $postData['email_address'], FILTER_VALIDATE_EMAIL)) {\n $this->jsonError(\"Invalid email address\");\n return;\n }\n\n //We don't want to clean/alter passwords, this could lead to mistake in future\n unset($postData['password']);\n unset($postData['password_retype']);\n $this->encode($postData);\n\n $digest = password_hash ($this->request->getData('password'), PASSWORD_BCRYPT );\n $user = new Entity([\n 'username' => $postData['username'],\n 'first_name' => $postData['first_name'],\n 'last_name' => $postData['last_name'],\n 'email_address' => $postData['email_address'],\n 'password' => $digest\n ]);\n // When username or e-mail are already in use, insert will fail (which is good)\n // TODO: let user know what went wrong on fail, but don't expose database error directly to client.\n if ($this->Users->save($user))\n $this->jsonSuccess(\"Registered !\");\n else\n $this->jsonError(\"Something went wrong\");\n }", "title": "" }, { "docid": "3536f16fbe05dc63be0e7017e115c4b0", "score": "0.6449312", "text": "public function addNewUser($data){\n\t\t$this->idBranch \t= $data->branch;\n\t\tif($data->pass_gen){ /*Si el usuario escogio autogenerar contraseña*/\n\t\t\t$password = Helper::randomPassword(10);\n\t\t\t$this->password = Hash::make($password);\n\t\t}else{\n\t\t\t$this->password = Hash::make($data->password);\n\t\t}\n\t\tif($data->admin_user){ /* Si el usuario a crear es de rol administrador */\n\t\t\t$this->idBranch = null;\n\t\t\t$this->idRole = null;\n\t\t}else{\n\t\t\t$this->idBranch = $data->branch;\n\t\t\t$this->idRole = $data->user_role;\n\t\t}\n\t\t$this->idCommerce \t= Commerce::getCommerceID()->id;\n\t\t$this->email \t\t= $data->email;\n\t\t$this->nombre\t\t= $data->nombre;\n\t\tif($this->save()){\n\t\t\t/*Se manda el email con el user y password, si el usuario escogio autogenerar contraseña*/\n\t\t\tif($data->pass_gen){\n\t\t\t\tMail::send('emails.password_gen', array('user'=>$this->nombre,'password'=>$password), function($message){\n\t\t\t\t\t$message->to($this->email,'credenciales')->subject('Su credenciales generadas');\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn $this->id;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5c8aa8bccce13d9d4136e26d71a892ac", "score": "0.6449165", "text": "private function registerNewUser()\n {\n\n if (empty($_POST['user_name'])) {\n\n $this->errors[] = \"Трябва да въведете потребителско име!\";\n\n } elseif (empty($_POST['user_password_new']) || empty($_POST['user_password_repeat'])) {\n\n $this->errors[] = \"Трябва да въведете парола!\";\n\n } elseif ($_POST['user_password_new'] !== $_POST['user_password_repeat']) {\n\n $this->errors[] = \"Двете въведени пароли се различават!\";\n\n } elseif (strlen($_POST['user_password_new']) < 6) {\n\n $this->errors[] = \"Паролата трябва да се състои от поне 6 символа!\";\n\n } elseif (strlen($_POST['user_name']) > 64 || strlen($_POST['user_name']) < 2) {\n\n $this->errors[] = \"Потребителското име не може да е по-късо от 2 символа или по-дълго от 64 символа!\";\n\n } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])) {\n\n $this->errors[] = \"Въведеното потребителско име не отговаря на изискванията: допускат се само символите a-Z и числа 0-9d, общо от 2 до 64 символа!\";\n\n } elseif (empty($_POST['user_email'])) {\n\n $this->errors[] = \"Трябва да въведете email!\";\n\n } elseif (strlen($_POST['user_email']) > 64) {\n\n $this->errors[] = \"Email-ът Ви не може да има повече от 64 символа!\";\n\n } elseif (!filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)) {\n\n $this->errors[] = \"Въведеният email адрес не е валиден!\";\n\n } elseif (!empty($_POST['user_name'])\n && strlen($_POST['user_name']) <= 64\n && strlen($_POST['user_name']) >= 2\n && preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])\n && !empty($_POST['user_email'])\n && strlen($_POST['user_email']) <= 64\n && filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)\n && !empty($_POST['user_password_new'])\n && !empty($_POST['user_password_repeat'])\n && ($_POST['user_password_new'] === $_POST['user_password_repeat'])\n ) {\n\n // TODO: the above check is redundant, but from a developer's perspective it makes clear\n // what exactly we want to reach to go into this if-block\n\n // creating a database connection\n $this->db_connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n // if no connection errors (= working database connection)\n if (!$this->db_connection->connect_errno) {\n\n // escapin' this, additionally removing everything that could be (html/javascript-) code\n $this->user_name = $this->db_connection->real_escape_string(htmlentities($_POST['user_name'], ENT_QUOTES));\n $this->user_email = $this->db_connection->real_escape_string(htmlentities($_POST['user_email'], ENT_QUOTES));\n\n $this->user_password = $_POST['user_password_new'];\n\n // crypt the user's password with the PHP 5.5's password_hash() function, results in a 60 character hash string\n // the PASSWORD_DEFAULT constant is defined by the PHP 5.5, or if you are using PHP 5.3/5.4, by the password hashing\n // compatibility library \n $this->user_password_hash = crypt($this->user_password, \"vladi\");\n\n // check if user already exists\n $query_check_user_name = $this->db_connection->query(\"SELECT * FROM users WHERE user_name = '\" . $this->user_name . \"';\");\n\n if ($query_check_user_name->num_rows == 1) {\n\n $this->errors[] = \"Въведеното потребителко име е заето. Моля изберете си друго.\";\n\n } else {\n\n // write new users data into database\n $query_new_user_insert = $this->db_connection->query(\"INSERT INTO users (user_name, user_password_hash, user_email) VALUES('\" . $this->user_name . \"', '\" . $this->user_password_hash . \"', '\" . $this->user_email . \"');\");\n\n if ($query_new_user_insert) {\n\n $this->messages[] = \"Регистрирахте се успешно.\";\n $this->registration_successful = true;\n\n } else {\n\n $this->errors[] = \"Вашата регистрация е неуспешна. Моля опитайте отново.\";\n\n }\n }\n\n } else {\n\n $this->errors[] = \"Няма връзка с базата данни.\";\n\n }\n\n } else {\n\n $this->errors[] = \"Нямам идея какво стана.\";\n\n }\n\n }", "title": "" }, { "docid": "d29fd11078b490726ea202a79c0b4862", "score": "0.6448926", "text": "public function createNewUser($user);", "title": "" }, { "docid": "5a15986f2e127bee1a44d634a245123c", "score": "0.6442066", "text": "public function registernewuser()\r\n\t{\r\n\t\t$GetStateList\t\t\t\t= $this->common_model->GetStateList();\r\n\t\t$Result['ScriptPage']\t\t= 'PageScripts';\r\n\t\t$Result['StateList']\t\t= $GetStateList;\r\n\t\t$Result['DisplayTitle']\t\t= '';\r\n\t\t$Result['RemoveAboutUs']\t= \"Remove\";\r\n\t\t$Result['RemoveGoToTop']\t= \"Remove\";\r\n\t\t$Result['DisplayPage']\t\t= \"FormAddNewUser\";\r\n\t\t$Result['RemoveQuickSearch']\t= \"Remove\";\r\n\t\t// Get registered users list\r\n\t\t$Result['UserList']\t\t\t= $this->mumodel->GetDisplayUsers();\r\n\t\t// Get user level list\r\n\t\t$Result['UserLevels']\t\t= $this->common_model->GetUserLevel(true);\r\n\t\tif($this->input->post('BtnAddNewUser') != '')\r\n\t\t{\r\n\t\t\t$this->load->library('form_validation');\r\n\t\t\t$this->form_validation->set_rules('TxtUserName','lang:ErrUserName','requried|xss_clean|alpha');\r\n\t\t\t$this->form_validation->set_rules('TxtLoginName','lang:ErrLoginName','requried|xss_clean|callback_checkloginname');\r\n\t\t\t$this->form_validation->set_rules('TxtUserEmail','lang:ErrUserEmail','required|xss_clean|valid_email|callback_checknewuseremail');\r\n\t\t\t$this->form_validation->set_rules('SltUserLevel','lang:ErrUserLevel','requried');\r\n\t\t\t$this->form_validation->set_rules('NewPassword','lang:ErrUserPassword','requried|xss_clean');\r\n\t\t\t$this->form_validation->set_rules('CofirmNewPassword','lang:ErrUserConfirmPassword','requried|xss_clean|matches[NewPassword]');\r\n\t\t\t$this->form_validation->set_rules('TxtUserSendEmail');\r\n\t\t\tif($this->form_validation->run($this))\r\n\t\t\t{\r\n\t\t\t\t$this->mumodel->InsertNewUserDetails();\r\n\t\t\t\tredirect(\"viewusers\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->load->view('index',$Result);\r\n\t}", "title": "" }, { "docid": "101703b07c0762cee877d783caec8545", "score": "0.64389485", "text": "function restauth_form_user_register_form_alter(&$form, $form_state) {\n if (variable_get('restauth_server')) {\n $form['#validate'][] = 'restauth_validate_new_user';\n $form['#submit'] = array('restauth_user_register_submit');\n }\n}", "title": "" }, { "docid": "cca7f62a40bd9ade031a83eb64d4120a", "score": "0.6435813", "text": "public function registerNewUser($args)\n {\n if (!SecurityUtil::checkPermission('Users::', '::', ACCESS_READ)) {\n throw new Zikula_Exception_Forbidden();\n }\n\n $isAdmin = $this->currentUserIsAdmin();\n $isAdminOrSubAdmin = $this->currentUserIsAdminOrSubAdmin();\n\n if (!$isAdmin && !$this->getVar('reg_allowreg', false)) {\n $registrationUnavailableReason = $this->getVar('reg_noregreasons', $this->__('New user registration is currently disabled.'));\n $this->registerError($registrationUnavailableReason, 403, System::getHomepageUrl());\n return false;\n }\n\n if (!isset($args['reginfo']) || empty($args['reginfo']) || !is_array($args['reginfo'])) {\n $this->registerError(LogUtil::getErrorMsgArgs());\n return false;\n }\n $reginfo = $args['reginfo'];\n\n $adminWantsVerification = $isAdminOrSubAdmin && ((isset($args['usermustverify']) ? (bool)$args['usermustverify'] : false)\n || !isset($reginfo['pass']) || empty($reginfo['pass']));\n $reginfo['isverified'] = ($isAdminOrSubAdmin && !$adminWantsVerification) || (!$isAdminOrSubAdmin && ($this->getVar('reg_verifyemail') == Users_Constant::VERIFY_NO));\n $reginfo['isapproved'] = $isAdminOrSubAdmin || !$this->getVar('moderation', false);\n $createRegistration = !$reginfo['isapproved'] || !$reginfo['isverified'];\n\n // Notification flags\n $userNotification = isset($args['usernotification']) ? $args['usernotification'] : true;\n $adminNotification = isset($args['adminnotification']) ? $args['adminnotification'] : true;\n\n // Handle password\n $sendPassword = $isAdminOrSubAdmin && isset($args['sendpass']) ? $args['sendpass'] : false;\n\n if ($sendPassword) {\n // Function called by admin adding user/reg, administrator created the password; no approval needed, so must need verification.\n $passwordCreatedForUser = $reginfo['pass'];\n } else {\n $passwordCreatedForUser = '';\n }\n\n if (isset($reginfo['pass']) && !empty($reginfo['pass']) && ($reginfo['pass'] != Users_Constant::PWD_NO_USERS_AUTHENTICATION)) {\n $reginfo['pass'] = UserUtil::getHashedPassword($reginfo['pass']);\n }\n\n // Dispatch to the appropriate function, depending on whether a registration record or a full user record is needed.\n if ($createRegistration) {\n // We need a registration record\n $registeredObj = $this->createRegistration($reginfo, $userNotification, $adminNotification, $passwordCreatedForUser);\n } else {\n // Everything is in order for a full user record\n $registeredObj = $this->createUser($reginfo, $userNotification, $adminNotification, $passwordCreatedForUser);\n }\n\n return $registeredObj;\n }", "title": "" }, { "docid": "443056b9adc2f3cc8c2bca2c51f5832a", "score": "0.6430337", "text": "public function createUser() \n {\n if (isset($_POST[\"submit_add_user\"])) {\n\n // make sure the username or email is not already taken.\n $user = $this->userModel->getExistingUser(\n $_POST[\"email\"],\n $_POST[\"uname\"]\n );\n if ($user && $user->email == $_POST[\"email\"]) {\n $emailError = \"This email address is already registered. \";\n $emailError .= \"Please use a different email address.\";\n }\n if ($user && $user->user_name == $_POST[\"uname\"]) {\n $userError = \"Username already exists. Please use a different username.\";\n }\n if ($user) {\n $form_fname = $_POST[\"fname\"];\n $form_lname = $_POST[\"lname\"];\n $form_email = $_POST[\"email\"];\n $form_user_name = $_POST[\"uname\"];\n require APP . 'view/_templates/header.php';\n require APP . 'view/register/index.php';\n require APP . 'view/_templates/footer.php';\n }\n else {\n $this->userModel->addUser(\n $_POST[\"fname\"],\n $_POST[\"lname\"],\n $_POST[\"uname\"],\n $_POST[\"password\"],\n $_POST[\"email\"],\n 0\n );\n // where to go after user has been registered\n header('location: ' . URL . 'login/index');\n }\n } else {\n header('location: ' . URL . 'register/index');\n \n }\n }", "title": "" }, { "docid": "1125dd2b949d63f73ada4d07b80a6013", "score": "0.64296865", "text": "public function newcostumer(){\n $modelData = array(\n 'firstname' => $_REQUEST['u_firstname'],\n 'lastname' => $_REQUEST['u_lastname'],\n 'gender' => $_REQUEST['u_gender'],\n 'country' => $_REQUEST['u_country'],\n 'town' => $_REQUEST['u_town'],\n 'place' => $_REQUEST['u_place'],\n 'dob' => $_REQUEST['u_dob'],\n 'job_title' => $_REQUEST['u_job_title'],\n );\n $modelHandler = $this->UsersModel->register($modelData);\n if ( $modelHandler == FALSE ) {\n # no data\n $this->prolib->jsonOutput('error', 'Customer', 'Registering customer fail', []);\n } else {\n # we have informations\n $this->prolib->jsonOutput('success', 'Customer', 'Registering customer succeed', []);\n }\n }", "title": "" }, { "docid": "e0089d1e3c7f9a5075e3c10aac3615a9", "score": "0.6422328", "text": "public function createNewUser()\n {\n $data = $this->exportToHash();\n $query = $this->db->getInsertQuery(\"gcUsers\", $data);\n $createOK = $this->db->runQuery($query);\n if ($createOK)\n {\n $this->msgCenter->addAlert(\"New user added successfully!\");\n $this->id = $this->db->getNewRowID();\n // remove the skip prop for ID, we will want to include it in the form.\n $this->removeSkipProp(\"id\");\n $this->db->close_result($createOK);\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "e6a53d4341044d7d15768506b6baff91", "score": "0.6420001", "text": "public function newUser() {\n //$count = $user->getNextId();\n $this->view(\"UserCreate\", array(\n //\"user\" => $user,\n //\"count\" => $count,\n \"title\" => \"Sport Management\"\n ));\n\n //$this->view(\"CreateUser\");\n }", "title": "" }, { "docid": "69000d8ef487f16d3a170bd33e218d48", "score": "0.64119977", "text": "public function admin_add() {\r\n $form = new Form_Manager('User.register');\r\n if ($data = $form->result()) {\r\n $user = new User_Object(FALSE);\r\n $user->object($data);\r\n $user->hashPassword();\r\n $user->save();\r\n info('User was successfully registered!', 'Registration succeed.');\r\n }\r\n else\r\n append('content', $form->render());\r\n }", "title": "" }, { "docid": "ea107af22555c28fa5d163092d62bea8", "score": "0.6409372", "text": "public function p_signup() {\n $_POST['created'] = Time::now();\n //$_POST['modified'] = Time::now();\n\n # Encrypt the password \n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']); \n\n # Create an encrypted token via their email address and a random string\n $_POST['token'] = sha1(TOKEN_SALT.$_POST['email'].Utils::generate_random_string()); \n\n # Insert this user into the database \n $user_id = DB::instance(DB_NAME)->insert(\"users\", $_POST);\n\n # Now route the user to the login page\n //Router::redirect('/users/login')\n\n # For now, just confirm they've signed up - \n # You should eventually make a proper View for this\n Router::redirect(\"/users/login\");\n\n }", "title": "" }, { "docid": "c4370a707028b0a7060a969bce9c057d", "score": "0.6402466", "text": "public function api_register_user()\n {\n $data=\"\";\n $dataParsing = array(\n \"id_user\"=>\"\",\n\n //andri diganti dengan $this->input->post('namauser');\n \"nama_user\"=>\"Tesningsih\",\n \"email_user\"=>\"[email protected]\",\n \"password_user\"=>\"uyauyauya\",\n \"telepon_user\"=>\"085399250048\",\n \"alamat_user\"=>\"Jakarta\",\n \"gender_user\"=>\"Perempuan\",\n \"ttl_user\"=> date('y-m-d'),\n \"role_user\"=> 2\n );\n\n $cekemail = $this->Manufriend_model->mm_cek_email($dataParsing['email_user']);\n\n if ($dataParsing!=null && $cekemail<1) {\n $data[\"response\"] = 200;\n $data[\"message\"] = \"Data Anda berhasil didaftarkan\";\n $this->Manufriend_model->mm_insert_new_user($dataParsing);\n } elseif ($cekemail>0) {\n $data[\"response\"] = 403;\n $data[\"message\"] = \"Data Anda sudah pernah didaftarkan\";\n } else {\n $data[\"response\"] = 404;\n $data[\"message\"] = \"Koneksi gagal\";\n }\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "b083b198c31d921ba5cd7cda7df20869", "score": "0.6400871", "text": "protected function registered(Request $request, $user)\n\t\t\t{\n\t\t\t\t//\n\t\t\t}", "title": "" }, { "docid": "32018ae1f3362d75a12d7f875f8490d4", "score": "0.6398034", "text": "function register() {\n $data = array (\n 'email' => $this->input->post ( 'email' ),\n 'username' => $this->input->post ( 'username' ),\n 'users_groups_id' => 12,\n 'password' => sha1 ( $this->input->post ( 'password' ) )\n );\n $this->db->insert ( $this->TABLENAME, $data );\n }", "title": "" }, { "docid": "0025b00241dc057797ad2596419e996b", "score": "0.63979346", "text": "public function createUser()\n {\n $this->checkLoggedIn();\n if ($this->vEmpty->validate($_POST['username']) or $this->vEmpty->validate($_POST['password'])) {\n header(\"HTTP/1.1 500 Benutzername oder Passwort leer\");\n exit;\n }\n \n if (!v::notEmpty()->alnum()->length(1, 40)->validate($_POST['username'])) {\n header(\"HTTP/1.1 500 username invalid\");\n echo \"Benutzername ungültig. Nur Buchstaben von A bis Z und Zahlen zulässig.\";\n exit;\n }\n try {\n $newUsername = $_POST['username'];\n $newPassword = $_POST['password'];\n $userdata = $this->conn->where('username', $newUsername)->getOne(\"users\");\n if ($userdata) {\n header(\"HTTP/1.1 500 user already exists\");\n echo \"Benutzer existiert bereits\";\n exit;\n }\n $hashAndSalt = password_hash($newPassword, PASSWORD_BCRYPT);\n $this->conn->insert(\"users\", array('username' => $newUsername, 'hashed_password' => $hashAndSalt));\n }\n catch (Exception $e) {\n header(\"HTTP/1.1 500 Internal Server Error\");\n exit;\n }\n }", "title": "" } ]
f441a7dc932a49256843b3cd954a8ecf
Create a kernel from a builtin in kernel. See for examples. Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2");
[ { "docid": "354bd1894034d6914ed2fd142694aba6", "score": "0.66232497", "text": "public static function fromBuiltin($kernelType, $kernelString) { }", "title": "" } ]
[ { "docid": "94347ae99f2745c8a95e5a0399692878", "score": "0.57793427", "text": "public function getKernel();", "title": "" }, { "docid": "0cba8361d32728b8f9917ded22ca4065", "score": "0.509454", "text": "static public function defaultKernel()\n {\n return DefaultKernel::class;\n }", "title": "" }, { "docid": "f6946336ac26cc87b4333e9d38bcf00c", "score": "0.5056538", "text": "public function addKernel(ImagickKernel $imagickKernel) { }", "title": "" }, { "docid": "f35b8f5b6ec12758cd8116fd0fc5df59", "score": "0.50175405", "text": "function getCommandFactory();", "title": "" }, { "docid": "f7c4ce917c5a7257c2e0acb099387cc1", "score": "0.50035965", "text": "public function provide_kernel_names()\n\t{\n\t\treturn [\n\t\t\t'kernel name \\'foo\\'' => [\n\t\t\t\t'foo',\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t],\n\t\t\t'kernel name \\'foo_bar\\'' => [\n\t\t\t\t'foo_bar',\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t],\n\t\t\t'kernel name \\'1foo_bar\\'' => [\n\t\t\t\t'1foo_bar',\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "24c95e1ca67e6c1fa62fc126677d8ef0", "score": "0.4841848", "text": "function getKernel(&$errors)\n{\n if (!($kernel = shell_exec('/bin/uname -r'))) {\n $kernel = 'N/A';\n\n array_push($errors, \"Name of kernel could not be determined\");\n }\n\n return $kernel;\n}", "title": "" }, { "docid": "e0398fcd49e0c3e3478c5a24da76b8ce", "score": "0.4832927", "text": "Protected function Kernel(){ \n $Kernel = str_replace(\"\\\\\", \"/\", IPS_GetKernelDir());\n return $Kernel;\n }", "title": "" }, { "docid": "532100ee876878efda057f1e00ef9f68", "score": "0.4697096", "text": "public function getKernels();", "title": "" }, { "docid": "a50eb7ff7797c343db7273ff7e4ea2cf", "score": "0.44262636", "text": "abstract public static function getKernelVersion();", "title": "" }, { "docid": "5efe253d220ed5cb62b6b6d89c6a342c", "score": "0.44000146", "text": "function operator($op) {\n static $bin = array('+', '-', '*', '/', '%', '&', '|', '^', '>>', '<<', '&&', '||', 'and', 'or', 'xor');\n static $uno = array('_', '~', '!', 'not');\n static $fns = array();\n\n if(isset($fns[$op]))\n return $fns[$op];\n\n if(in_array($op, $bin)) {\n return $fns[$op] = create_function('$a,$b', \"return \\$a $op \\$b;\");\n }\n\n if(in_array($op, $uno)) {\n $fop = $op;\n if($op == '_') $fop = '-';\n if($op == 'not') $fop = '!';\n\n return $fns[$op] = create_function('$a', \"return $fop \\$a;\");\n }\n\n throw new ValueError('invalid operator', $op);\n\n}", "title": "" }, { "docid": "3e2fac81fd7faaa627c0144afe0f91c1", "score": "0.43778342", "text": "public function getBuiltinName();", "title": "" }, { "docid": "d4d0c178559f86afdb73227112a6b762", "score": "0.43718836", "text": "public function getBuiltIn()\n {\n return $this->builtIn;\n }", "title": "" }, { "docid": "37ca681bc0f480c4ad7e93d5efdea7e2", "score": "0.43276036", "text": "public static function getInstance() : Kernel\n {\n if(is_null(self::$_instance))\n {\n self::$_instance = new Kernel(); \n }\n \n return self::$_instance;\n }", "title": "" }, { "docid": "eec1879e452043548c98eec284871788", "score": "0.4327424", "text": "protected function createImagickDriver()\n {\n return new \\Imagine\\Imagick\\Imagine();\n }", "title": "" }, { "docid": "735db0fb91c5596bae03c1fcab215518", "score": "0.43150243", "text": "public function create_widget() {\n $widget = new KP_Widget_Shell( $this->label, $this->machine_name, $this->description );\n \n register_widget( $widget );\n }", "title": "" }, { "docid": "d0c845a644a47fbd72d8479adc520d9c", "score": "0.43012425", "text": "function CLCFG_hideKernelWarnings()\n{\necho (\"\n\nkernel=`uname -r`\n\nmkdir -p /lib/modules/\\$kernel\n\ntouch /lib/modules/\\$kernel/modules.dep\n\n\");\n}", "title": "" }, { "docid": "6177ffded069c4ba44798edf1879884d", "score": "0.42831272", "text": "function KT_image() {\n\t\t$this->arrCommands = array(\n\t\t\t\t\t\t\t\t\"C:\\\\PROGRA~1\\\\IMAGEM~1\\\\\",\n\t\t\t\t\t\t\t\t'/usr/bin/X11/',\n\t\t\t\t\t\t\t\t'/usr/X11R6/bin/'\n\t\t\t\t\t\t\t );\n\t\t$this->orderLib = array('imagemagick','gd');\n\t\t$this->getVersionGd();\n\t}", "title": "" }, { "docid": "fb7bdcc214455667f6fd966f8e6745a4", "score": "0.42729497", "text": "function CLCFG_createBootDeviceNode()\n{\n\tCLCFG_aptGet(\"install\",\"udev\");\n\nreturn(\"\n\tmount /proc 2> /dev/null\n\tmount devpts /dev/pts -t devpts 2> /dev/null\n\n\t#make sure, sysfs is fstab (otherwise mounting it will not work)\n\tif [ `grep -c sysfs /etc/fstab` ]\n\tthen\n\t\techo \\\"sys /sys sysfs defaults 0 0\\\" >> /etc/fstab\n\tfi\n\n\t#make needed device nodes for MD\n\tfor i in `seq 0 15`\n\tdo\n\t\tmknod /dev/md\\$i b 9 \\$i 2> /dev/null\n\tdone\n\n\t#Re-create the mtab file\n\tgrep -v rootfs /proc/mounts > /etc/mtab\n\n\t#make sure the devices are created\n\tmount /sys 2> /dev/null\n\t/etc/init.d/udev start 2> /dev/null\n\n\t#Check if udev runs\n\tif [ `ps -A | grep udevd -c` -gt 0 ]\n\tthen\n\t\tx=1\n\telse\n\t\t\".CLCFG_makeDev().\"\n\tfi\n\");\n}", "title": "" }, { "docid": "a0ff993ac500fab1758fc2d99931e030", "score": "0.42582038", "text": "protected function createGdDriver()\n {\n return new \\Imagine\\Gd\\Imagine();\n }", "title": "" }, { "docid": "ce995e9e3cfc2311c145a196643195b2", "score": "0.42470923", "text": "private function registerCommands()\n {\n WP_CLI::add_command('zeus', Kernel::class);\n }", "title": "" }, { "docid": "2af1632cf5871f844b0024ee0f156073", "score": "0.424125", "text": "protected function inputFactory(): Input\n\t{\n\t\t$argv = $_SERVER['argv'];\n\n\t\tarray_shift($argv); // Remove the script name\n\n\t\treturn new Input(new Reader, new ArgvParser($argv));\n\t}", "title": "" }, { "docid": "57ddbff86fba6f15d0084b566555e547", "score": "0.42274636", "text": "public static function newAdapter()\n {\n return new LibImage_Gd();\n\n }", "title": "" }, { "docid": "1a0ad6d512b44e09b762aec871506a60", "score": "0.4212698", "text": "public static function factory($command,$path = null) {\n $commandclass = 'Command_'.$command;\n class_exists($commandclass) || self::_load_command($command, $path);\n return new $commandclass;\n }", "title": "" }, { "docid": "56c0b1aee879dd0cfe479cd2b955a413", "score": "0.41396105", "text": "public function setKernelId($value) \n {\n $this->_fields['KernelId']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "2d89c3218ba28193599c82bcd7b2ebed", "score": "0.41275373", "text": "function CLCFG_genFstab($bootDevice, $rootDevice, $bootloader, $ignoreErrors = false)\n{\n\techo(\"\n#Deactivate init\nmv /sbin/init /sbin/init.deactivated\n\t\n#make proc mount directory\nmkdir -p /proc\n\n#set correct access rights\nchmod 555 /proc/\n\n#make temporary fstab, so we can mount proc\necho \\\"proc /proc proc defaults 0 0\\\" > /etc/fstab\n\n#mount it\nmount /proc\n\n#delete temporary fstab\nrm /etc/fstab 2> /dev/null\n\nmkdir -p /usr/m23/skel/Desktop\n\nchmod -R 555 /usr/m23\n\nmkdir -p /mnt/floppy\nchmod 755 /mnt/floppy\n\n#get kernel name of the in root installed kernel\nKERNEL_NAME=`ls -l /vmlinuz | awk -v FS='/' '{print \\$NF}' | sed s/vmlinuz-//`\n#ls -l /vmlinuz | cut -d'>' -f2 | cut -d'/' -f2 | sed s/vmlinuz-//\n\n#if the previous line gets \\\"boot\\\" as kernel name try to fix it\nif [ -n \\\"\\$KERNEL_NAME\\\" ]\nthen\n\tif [ \\\"\\$KERNEL_NAME\\\" ] && [ \\\"\\$KERNEL_NAME\\\" == \\\"boot\\\" ]\n\tthen\n\t\tKERNEL_NAME=`ls -l /vmlinuz | cut -d'>' -f2 | cut -d'/' -f3 | sed s/vmlinuz-//`\n\tfi\nfi\n\n#alternative way to get the kernel version: used by Debian\nif test -z \\\"\\$KERNEL_NAME\\\"\nthen\n\tolddir=`pwd`\n\tcd /boot/\n\tfor i in `ls vmlinuz* | grep \\\"\\\\.\\\" | sort -r | sed 's/vmlinuz-//'`\n\tdo\n\t\tKERNEL_NAME=\\$i\n\t\tln -s /boot/vmlinuz-\\$KERNEL_NAME /vmlinuz\n\t\tln -s /boot/initrd.img-\\$KERNEL_NAME /initrd.img\n\t\tbreak\n\tdone\n\tcd \\$olddir\nfi\n\nln -s `find /lib -name libparted* -type f | sort | tail -1` /usr/lib/libparted-1.6.so.13 2> /dev/null\nln -s `find /lib -name libparted* -type f | sort | tail -1` /usr/lib/libparted-1.7.so.1 2> /dev/null\nln -s `find /lib -name libparted* -type f | sort | tail -1` /usr/lib/libparted-1.8.so.6 2> /dev/null\nln -s `find /lib -name libparted* -type f | sort | tail -1` /usr/lib/libparted-1.8.so.7 2> /dev/null\n\nmount /proc\");\n\nCLCFG_aptGet(\"install\",\"pciutils\");\n\necho(\"\n\n#check, if the m23 hardware scanner is installed\n#Normally it should be there, but on newer Ubuntu versions m23hwscanner-ubuntu is not installable, but m23hwscanner\nif [ ! -e /bin/m23hwscanner ]\nthen\n\t#try to install m23hwscanner (on some Ubuntu versions needed)\");\n\tCLCFG_aptGet(\"install\",\"m23hwscanner\");\necho (\"\nfi\n\n#generate fstab automatical\nif /bin/m23hwscanner $bootDevice $rootDevice\nthen\n\t\".sendClientLogStatus(\"Running m23hwscanner\",true).\"\nelse\n\t\".sendClientLogStatus(\"Running m23hwscanner\",false,true).\"\nfi\n\n#Add some lines to the fstab\necho 'none\t/dev/pts\tdevpts\tdefaults,auto\t0 0\n/dev/fd0\t/mnt/floppy\tauto\tuser,noauto\t0 0' >>/etc/fstab\n\n#/dev/pts is needed to allow logins by SSH\nmkdir -p /dev/pts\n\n#check for the programm to create the initrd\nif test `whereis mkinitrd | wc -w` -gt 1\nthen\n\tinitrdPath=\\\"mkinitrd\\\"\nelse\n\tif test `whereis mkinitramfs | wc -w` -gt 1\n\tthen\n\t\tinitrdPath=\\\"mkinitramfs\\\"\n\tfi\nfi\n\n#check if mkinitrd.yaird is used\nyairdCount=`whereis mkinitrd | grep yaird | wc -l`\n\n#get names of the loaded modules\nlsmod | cut -d' ' -f1 | grep -v Module > /etc/modules\n\n#add all mouse modules to the modules file to load them on system start\nfind /lib/modules/ | grep mouse | grep ko | awk -vFS='/' '{print(\\$NF)}' | sed 's#\\.ko##' | sort -u | grep mouse >> /etc/modules\n\nif [ -f /etc/\\$initrdPath/modules ]\nthen\n\tcp /etc/modules /etc/\\$initrdPath/modules\nfi\n\nupdate-modules 2> /dev/null\n\n#remove eventual existing old initrd image\nif [ \\$yairdCount -eq 0 ]\nthen\n\trm /boot/initrd.img-\\$KERNEL_NAME 2> /dev/null\nfi\n\n#create needed devices\n\".CLCFG_makeDev().\"\n\n#make new initrd, that includes needed drivers for booting the client\nif [ \\$yairdCount -eq 0 ]\nthen\n\t/usr/sbin/\\$initrdPath -r $rootDevice -o /boot/initrd.img-\\$KERNEL_NAME /lib/modules/\\$KERNEL_NAME/ 2> /dev/null\nfi\n\n\");\n\n\nif ($bootloader == \"grub\")\n\t{\n\t\tCLCFG_aptGet(\"remove\", \"lilo\");\n\t\tCLCFG_aptGet(\"install\", \"grub m23-grub-splash\");\n\n\t\techo (\"\n\t\t\t#write Grub\n\t\t\tif /usr/sbin/grub-install $bootDevice\n\t\t\tthen\n\t\t\t\t\".sendClientLogStatus(\"Grub installation\",true).\"\n\t\t\telse\n\t\t\t\t\".CLCFG_createBootDeviceNode().\"\n\n\t\t\t\t#Re-check the device.map\n\t\t\t\t/usr/sbin/grub-install --recheck $bootDevice\n\n\t\t\t\t#Re-run the grub installer again\n\t\t\t\tif /usr/sbin/grub-install --recheck --force $bootDevice\n\t\t\t\tthen\n\t\t\t\t\t\".sendClientLogStatus(\"Grub installation\",true).\"\n\t\t\t\telse\n\t\t\t\t\tgrubRoot=$(echo \\\"find /boot/grub/stage1\\\" | grub --batch | grep hd | tr -d '[:blank:]')\n\t\t\t\t\tgrubBoot=$(echo \\$grubRoot | sed 's/,[0-9]*//')\n\n\t\t\t\t\terr=0\n\t\t\t\t\techo \\\"root \\$grubRoot\\\" | grub --batch\n\t\t\t\t\terr=$(expr \\$err + $?)\n\n\t\t\t\t\techo \\\"setup \\$grubBoot\\\" | grub --batch\n\t\t\t\t\terr=$(expr \\$err + $?)\n\n\t\t\t\t\tif [ \\$err -eq 0 ]\n\t\t\t\t\tthen\n\t\t\t\t\t\t\".sendClientLogStatus(\"Grub installation (Fallback)\",true).\"\n\t\t\t\t\telse\n\t\t\t\t\t\");\n\t\t\t\t\t\tif (!$ignoreErrors)\n\t\t\t\t\t\t\techo(sendClientLogStatus(\"Grub installation\",false,true));\n\t\t\t\t\t\techo(\"\n\t\t\t\t\tfi\n\t\t\t\tfi\n\t\t\tfi\n\n\t\t\t#write menu.lst\n\t\t\t/usr/sbin/update-grub -y\n\n\t\t\t#Some versions need it without \\\"-y\\\"\n\t\t\tif [ $? -ne 0 ]\n\t\t\tthen\n\t\t\t\t/usr/sbin/update-grub\n\t\t\tfi\n\n\t\t\t#Make sure the root device is correct in menu.lst (if update-grub could not determine the root device /dev/hda1 is assumed)\n\t\t\t[ -f /boot/grub/menu.lst ] && sed -i 's#/dev/hda1#$rootDevice#g' /boot/grub/menu.lst\n\n\t\t\t#Check if there are kernels listed in menu.lst\n\n\t\t\tkernelsInGrub()\n\t\t\t{\n\t\t\t\tkernels=0\n\t\t\t\t[ -f /boot/grub/menu.lst ] && kernels=$( expr \\$kernels + $(grep ^title /boot/grub/menu.lst -c))\n\t\t\t\t[ -f /boot/grub/grub.cfg ] && kernels=$( expr \\$kernels + $(grep menuentry /boot/grub/grub.cfg -c))\n\t\t\t\techo \\\"++++Kerneleintraege: \\$kernels\\\" > /dev/stderr\n\t\t\t\t\n\t\t\t\techo \\$kernels\n\t\t\t}\n\n\t\t\t#No kernels found?\n\t\t\tif [ \\$(kernelsInGrub) -eq 0 ]\n\t\t\tthen\n\t\t\t\t#Delete menu.lst and try to create it new\n\t\t\t\trm /boot/grub/menu.lst 2> /dev/null\n\t\t\t\t/usr/sbin/update-grub -y\n\n\t\t\t\t#Some versions need it without \\\"-y\\\"\n\t\t\t\tif [ $? -ne 0 ]\n\t\t\t\tthen\n\t\t\t\t\t/usr/sbin/update-grub\n\t\t\t\tfi\n\t\t\tfi\n\n\t\t\tif [ \\$(kernelsInGrub) -gt 0 ]\n\t\t\tthen\n\t\t\t\t\".sendClientLogStatus(\"Grub: Kernels found in menu.lst\",true).\"\n\t\t\telse\n\t\t\t\t\");\n\t\t\t\tif (!$ignoreErrors)\n\t\t\t\t\techo(sendClientLogStatus(\"Grub: Kernels found in menu.lst\",false,true));\n\t\t\t\techo(\"\n\t\t\tfi\n\t\t\");\n\n\t\tCLCFG_lilo2Grub();\n\t\tCLCFG_addGrubPassword();\n\t}\nelse\n\t{\n\t\tCLCFG_addLiloPassword();\n\t\techo (\"\n\t\t\t#write lilo\n\t\t\tif /sbin/lilo\n\t\t\tthen\n\t\t\t\t\".sendClientLogStatus(\"LILO installation ok\",true).\"\n\t\t\telse\n\t\t\t\t\".CLCFG_createBootDeviceNode().\"\n\n\t\t\t\t#awk -vORS='*': replace newlines by *\n\t\t\t\t#sed 's/*$//': remove the * at the end\n\t\t\t\t#sed 's/\\*\\*/\\\\n/g: convert back the double newline (**) to single newline\n\t\t\t\tawk -vORS='*' {print} /etc/lilo.conf | sed 's/*$//' | sed 's/\\*\\*/\\\\n/g' | awk '\n\t\t\t\tBEGIN {\n\t\t\t\told=muh\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\tif (old != $0)\n\t\t\t\t\t{\n\t\t\t\t\t\tprint($0\\\"\\\\n\\\");\n\t\t\t\t\t\told=$0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t' | sed 's/*/\\\\n/g' > /tmp/lilo.conf\n\n\t\t\t\tcat /tmp/lilo.conf > /etc/lilo.conf\n\n\n\t\t\t\tif /sbin/lilo\n\t\t\t\tthen\n\t\t\t\t\t\".sendClientLogStatus(\"LILO installation ok\",true).\"\n\t\t\t\telse\n\t\t\t\t\");\n\t\t\t\t\tif (!$ignoreErrors)\n\t\t\t\t\t\techo(sendClientLogStatus(\"LILO installation ok\",false,true).\"\n\t\t\t\tfi\n\t\t\t\t\n\t\t\t\t#find all \\\"update-grub\\\" files\n\t\t\t\tfor updategrub in `whereis update-grub | sed 's/ /\\\\n/g' | grep -v ':'` /usr/bin/update-grub\n\t\t\t\tdo\n\t\t\t\t\t#Delete the original update-grub\n\t\t\t\t\trm \\\"\\$updategrub\\\" 2> /dev/null\n\t\t\t\t\t#Write a script that calls lilo\n\t\t\t\t\techo \\\"#!/bin/sh\nlilo\\\" > \\\"\\$updategrub\\\"\n\t\t\t\t\t#Make it executable\n\t\t\t\t\tchmod +x \\\"\\$updategrub\\\"\n\t\t\t\tdone\n\t\t\tfi\n\n#\t\t\t/sbin/lilo -b $rootDevice\n\t\t\t\");\n\t}\n\nCLCFG_activateBOOT_DEGRADED();\n\necho (\"\n#Reactivate init\nmv /sbin/init.deactivated /sbin/init\n\n#check if the fstab file exists\nif test -f /etc/fstab\nthen\n\t\".sendClientLogStatus(\"/etc/fstab was written\",true).\"\nelse\n\");\n\tif (!$ignoreErrors)\n\t\techo(sendClientLogStatus(\"/etc/fstab was written\",false,true));\necho(\"\nfi\n\n#activate swap\nif swapon -a\nthen\n\t\".sendClientLogStatus(\"activating swap\",true).\"\nelse\n\t\".sendClientLogStatus(\"activating swap\",false).\"\nfi\\n\n\");\n\n}", "title": "" }, { "docid": "7b69e2c521ba8839b994a293d9efc4f0", "score": "0.41230237", "text": "protected function createGmagickDriver()\n {\n return new \\Imagine\\Gmagick\\Imagine();\n }", "title": "" }, { "docid": "e96d6efafb624439259c8e5f5009af72", "score": "0.40986028", "text": "private function loadKernel($adapterName, $configName, $debug, ContainerBuilder $container)\n {\n $definition = new Definition(\n Utility::getLibraryClass('Rest\\RestKernel'),\n [\n new Reference($adapterName),\n new Reference($configName),\n ]\n );\n $definition->addMethodCall('enableDebug', [$debug]);\n $container->setDefinition(Utility::getAliasedName('rest.kernel'), $definition);\n }", "title": "" }, { "docid": "b490c7bc61360a2736b8940358f850a9", "score": "0.40973312", "text": "public function withKernelId($value)\n {\n $this->setKernelId($value);\n return $this;\n }", "title": "" }, { "docid": "afe5191da949079c7ce81a3e36c56585", "score": "0.4097035", "text": "protected static function createKernel(array $options = array())\n {\n if (null === static::$class) {\n static::$class = static::getKernelClass();\n }\n\n return new static::$class(\n isset($options['environment']) ? $options['environment'] : 'test',\n isset($options['debug']) ? $options['debug'] : true\n );\n }", "title": "" }, { "docid": "75da9a5f0e2a5986f2cc197b7cfab012", "score": "0.40683737", "text": "public function newStandard() {\n return $this->newComponent( util::$LCSTANDARD );\n }", "title": "" }, { "docid": "9e01f220320bd35ad1b3508ec617c9a1", "score": "0.40626916", "text": "protected function _getImgLib() {\n\t\tif (extension_loaded ( 'imagick' )) {\n\t\t\treturn 'imagick';\n\t\t} elseif (function_exists ( 'exec' )) {\n\t\t\texec ( 'mogrify --version', $o, $c );\n\t\t\tif ($c == 0) {\n\t\t\t\treturn 'mogrify';\n\t\t\t}\n\t\t}\n\t\treturn function_exists ( 'gd_info' ) ? 'gd' : '';\n\t}", "title": "" }, { "docid": "d60e4ba6193cb6fd79148558bd0678cc", "score": "0.40390053", "text": "public function getKernelId() \n {\n return $this->_fields['KernelId']['FieldValue'];\n }", "title": "" }, { "docid": "943a262b6c60820989335f3771f26843", "score": "0.40072772", "text": "public static function factory(array $config = array())\n {\n if (!isset($config['cmd'])) {\n throw new Exception\\InvalidArgumentException(\"No shell command specified in config\");\n }\n\n if (!isset($config['cwd'])) {\n throw new Exception\\InvalidArgumentException(\"No cwd specified in config\");\n }\n\n if (!is_readable($config['cwd']) || !is_dir($config['cwd'])) {\n throw new Exception\\InvalidArgumentException(\"The cwd needs to be a readable directory\");\n }\n\n if (!isset($config['name'])) {\n throw new Exception\\InvalidArgumentException(\"No friendly name specified for this command\");\n }\n\n //generate an id to use\n $id = isset($config['id']) ? $config['id'] : uniqid();\n\n return new self(\n $config['cmd'],\n $config['cwd'],\n $config['name'],\n isset($config['args']) ? $config['args'] : array(),\n $id\n );\n }", "title": "" }, { "docid": "2d20a3f00aeba62559aeb0b90ddc55ab", "score": "0.40017658", "text": "static function kernel( $region )\n {\n if ( !array_key_exists( $region, xrowCloudInfo::$kernels ) )\n {\n throw new \\Exception( \"Kernel in region $region not found.\" );\n }\n return xrowCloudInfo::$kernels[ $region ];\n }", "title": "" }, { "docid": "b01d9dd1da7c529866c25e912dd40123", "score": "0.3999726", "text": "private function getKernel($level, $methods = array(), $debug = false)\n {\n $mockMethods = array('getBootedLevel', 'getRootDir');\n if (!empty($methods)) {\n $mockMethods = array_merge($mockMethods, $methods);\n }\n $kernel = $this->getMockBuilder('Insulin\\Console\\Kernel')\n ->setMethods($mockMethods)\n ->setConstructorArgs(array($debug))\n ->getMock();\n\n $kernel->expects($this->any())->method('getBootedLevel')->will(\n $this->returnValue($level)\n );\n $kernel->expects($this->any())->method('getRootDir')->will(\n $this->returnValue(dirname(__DIR__))\n );\n\n return $kernel;\n }", "title": "" }, { "docid": "83b92fadf68ca7a7bb81aac62d1a638d", "score": "0.39671743", "text": "private function getCommand($command)\n {\n return ShellCommand::create($command);\n }", "title": "" }, { "docid": "e0c4af0c3ef747bd3d1b79ccec02a1d2", "score": "0.3964894", "text": "abstract protected function getSupportedCommands();", "title": "" }, { "docid": "7d2086dc45c3054b867a1159217ee9ba", "score": "0.39574158", "text": "public function getKernel()\n {\n return $this->client;\n }", "title": "" }, { "docid": "359f5d3707a652d8de68899982978a29", "score": "0.3936461", "text": "static public function factory($options = array(), $adapter = 'gd')\n {\n $hasGd = function_exists('gd_info');\n $hasImagick = class_exists('Imagick', false);\n if( !$hasGd && !$hasImagick ) {\n throw new Engine_Image_Exception('No available adapter for image operations');\n }\n\n if( $hasImagick ) {\n $adapter = 'imagick';\n } elseif( $hasGd ) {\n $adapter = 'gd';\n }\n\n $class = 'Engine_Image_Adapter_' . ucfirst($adapter);\n Engine_Loader::loadClass($class);\n if( !class_exists($class, false) ) {\n throw new Engine_Image_Exception(sprintf('Missing class for adapter \"%s\"', $adapter));\n }\n \n return new $class($options);\n }", "title": "" }, { "docid": "c2dfc8887587363481b216146c98575d", "score": "0.39240414", "text": "protected function _getImgLib()\n\t{\n\t\tif (extension_loaded('imagick')) {\n\t\t\treturn 'imagick';\n\t\t} elseif (function_exists('exec')) {\n\t\t\texec('mogrify --version', $o, $c);\n\t\t\tif ($c == 0) {\n\t\t\t\treturn 'mogrify';\n\t\t\t}\n\t\t}\n\t\treturn function_exists('gd_info') ? 'gd' : '';\n\t}", "title": "" }, { "docid": "496edc1206c4d787ffbcdb8f00ba1d35", "score": "0.3915736", "text": "static public function mathOp($strOperation, $param1/** ... */)\n {\n $args = func_get_args();\n $strFunc = array_shift($args);\n return new Node\\Math($strFunc, $args);\n }", "title": "" }, { "docid": "2a59d21ca398a9f7a088aebf134d9bf1", "score": "0.38928592", "text": "protected function getKernel($isWebSocket = false)\n {\n $kernel = $this->app[IlluminateHttpKernel::class];\n\n if (! $isWebSocket) {\n return $kernel;\n }\n\n $class = get_class($kernel);\n\n return new $class($this->app, $this->app['shadowfax.websocket']);\n }", "title": "" }, { "docid": "1c34f5f4475c952eba225eda8d862d90", "score": "0.3871428", "text": "private function createRegisterCommand($applicationMatcher, $kernelManipulatorMatcher, $input = \"\", $installationReturn = 0){\n RegisterCommand::setRootDir(__DIR__.'/../../');\n // mock the Kernelmanipulator\n RegisterCommand::setKernelManipulator($this->getKernelManipulatorMock($kernelManipulatorMatcher));\n\n $command = new RegisterCommand();\n $command->setComposer($this->getComposerMock());\n\n // set path to fixtures\n RegisterCommand::setRootDir(__DIR__.'/../Fixtures/');\n\n $application = $this->getApplicationMock($applicationMatcher[0], $applicationMatcher[1], $installationReturn);\n $application->setHelperSet($this->getHelperSet($input));\n\n $command->setApplication($application);\n //$command->setHelperSet($this->getHelperSet($input));\n\n return $command;\n }", "title": "" }, { "docid": "2837e374649a0d809cacd29020281d66", "score": "0.3868032", "text": "public function buildCommand();", "title": "" }, { "docid": "b5a5b54422902db5c0ce4859ebf69275", "score": "0.385391", "text": "public static function get() : Kernel\n {\n if (null === self::$classKernel) {\n global $kernel;\n\n if ('AppKernel' == get_class($kernel)) {\n return $kernel;\n }\n\n throw new \\Exception(\"AppKernel not found\");\n }\n\n return self::$classKernel;\n }", "title": "" }, { "docid": "30bcafe6f67e837c47d7d2c4ba1c7d56", "score": "0.38531685", "text": "public function createNode($label = NULL) {\n\t\treturn new ForOp($this->getMockLiteral(),\n\t\t $this->getMockLiteral(),\n\t\t $this->getMockLiteral(),\n\t\t $this->getMockLiteral(),\n\t\t $label);\n\t}", "title": "" }, { "docid": "c675a5e7accc2b583ea4343a6d4e3097", "score": "0.38323253", "text": "protected function getKernelService()\n {\n throw new RuntimeException('You have requested a synthetic service (\"kernel\"). The DIC does not know how to construct this service.');\n }", "title": "" }, { "docid": "b3c06ed7dc92a0d9b2d434cc24110bae", "score": "0.3829917", "text": "function getCommand($name, array $args = array());", "title": "" }, { "docid": "0cb1aa0147917fba7febefebc32dceba", "score": "0.38262793", "text": "public function Create()\n {\n parent::Create();\n\n //We need to call the RegisterHook function on Kernel READY\n $this->RegisterMessage(0, IPS_KERNELMESSAGE);\n }", "title": "" }, { "docid": "bffa3f691c5f21c68b04ba87554f2333", "score": "0.38217387", "text": "public function createDefaultCommand($a_command)\n\t{\n\t\treturn $a_command;\n\t}", "title": "" }, { "docid": "ea73c61cda5189e86586d15f44173911", "score": "0.38080388", "text": "protected function findConsoleKernel($loader)\n {\n $classmap = $loader->getClassMap();\n $classes = array_keys($classmap);\n\n // Find the first console kernel that implements the console contract. Hopefully this works well.\n $name = array_reduce($classes, function (&$result, $class_name) {\n if (!$result &&\n is_subclass_of($class_name, '\\Illuminate\\Contracts\\Console\\Kernel') &&\n ($class_name !== '\\Illuminate\\Foundation\\Console\\Kernel' ||\n $class_name !== '\\Radcliffe\\Larama\\Console\\Kernel')) {\n $result = $class_name;\n }\n return $result;\n }, false);\n\n // Fallback to a sensible default.\n if (!$name) {\n $name = '\\Radcliffe\\Larama\\Console\\Kernel';\n }\n\n return $name;\n }", "title": "" }, { "docid": "3f58cc1799eca3168b3fc9bb34878bbc", "score": "0.37912184", "text": "final public static function KernelVersion()\n {\n if (function_exists('exec') == false) {\n return false;\n }\n\n exec('uname -r', $kernel);\n\n return reset($kernel);\n }", "title": "" }, { "docid": "c5584204cb4fc8ac8c5b02079958b187", "score": "0.37853017", "text": "protected function instantiateInput()\n {\n $GLOBALS['IN'] =& load_class('Input', 'core');\n }", "title": "" }, { "docid": "07ce3c18d58ae7ece934e80bba9d3adf", "score": "0.37829888", "text": "protected static function getBuiltIn()\n\t{\n\t\tif (self::$built_in === null) {\n\t\t\tself::$built_in = require(dirname(__DIR__) . '/mime.types.php');\n\t\t}\n\t\treturn self::$built_in;\n\t}", "title": "" }, { "docid": "1e4ff94dd7d37b87e5777b0bd1ad062d", "score": "0.37705657", "text": "function platform();", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.37650132", "text": "public function getCommand();", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.37650132", "text": "public function getCommand();", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.37650132", "text": "public function getCommand();", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.37650132", "text": "public function getCommand();", "title": "" }, { "docid": "e6d513f275aa2683220cbcf76ff28732", "score": "0.37631327", "text": "function load_command($name) {\n $path = TERMINUS_ROOT . \"/php/commands/$name.php\";\n\n if (is_readable($path)) {\n include_once $path;\n }\n}", "title": "" }, { "docid": "c07fb597e9b073ab11fc92f43f1cdeb6", "score": "0.3758497", "text": "public function getDefaultOperatorInputByType()\n {\n if (null === $this->_defaultOperatorInputByType) {\n $this->_defaultOperatorInputByType = array(\n 'string' => array('==', '!=', '>=', '>', '<=', '<', '{}', '!{}', '()', '!()'),\n 'numeric' => array('==', '!=', '>=', '>', '<=', '<', '()', '!()'),\n 'date' => array('==', '>=', '<='),\n 'datetime' => array('==', '>=', '<='),\n 'select' => array('==', '!='),\n 'boolean' => array('==', '!='),\n 'multiselect' => array('[]', '![]', '()', '!()'),\n 'grid' => array('()', '!()'),\n );\n $this->_arrayInputTypes = array('multiselect', 'grid');\n }\n return $this->_defaultOperatorInputByType;\n }", "title": "" }, { "docid": "3c9614bc4607316373df8a9c3abe9e40", "score": "0.374177", "text": "public function newClassifyCreateHelper()\n {\n return $this->classifyHanlder->getClassifyCreateHelper();\n }", "title": "" }, { "docid": "b828437c460908e3194eda78d086f8d2", "score": "0.37363666", "text": "abstract protected function createPlatform();", "title": "" }, { "docid": "90d7c2573b89457a126d9131996e2114", "score": "0.37338278", "text": "public function getDefaultOperatorInputByType()\n {\n if (null === $this->_defaultOperatorInputByType) {\n parent::getDefaultOperatorInputByType();\n $this->_defaultOperatorInputByType['numeric'] = array('==', '!=', '>=', '>', '<=', '<');\n $this->_defaultOperatorInputByType['string'] = array('==', '!=', '{}', '!{}');\n }\n return $this->_defaultOperatorInputByType;\n }", "title": "" }, { "docid": "e53da0f63ac6ab558e02d29e0feeb163", "score": "0.37278083", "text": "public static function cmd($name=null)\n {\n return new static($name);\n }", "title": "" }, { "docid": "542c489194d6ad4c317a749b91f8c784", "score": "0.37267613", "text": "public function raw($command);", "title": "" }, { "docid": "860ef4efb9d1a33c32f6fc898bc32351", "score": "0.36913484", "text": "function KDE_prepare()\n{\necho(\"\nexport DEBIAN_FRONTEND=noninteractive\\n\n\nrm /etc/rc2.d/S99kdm\\n\n\n\n#create device files to make the istaller quiet\n\nmknod /dev/raw1394 c 171 0 2> /dev/null\n\nchown root.disk /dev/raw1394\n\nchmod 660 /dev/raw1394\n\n\");\n}", "title": "" }, { "docid": "04ba26a8e6541112f3e0097dec8495d1", "score": "0.36862165", "text": "function actionTree($legacy)\n{\n return \"<span onclick='createLegacy(\".$legacy->legacy_code.\")' class='pointer glyphicon glyphicon-plus-sign'></span>\n <span onclick='editLegacy(\".$legacy->id.\")' class='pointer glyphicon glyphicon-edit'></span>\n \";\n}", "title": "" }, { "docid": "e8a06576724225b5de98cb5bd8d58fc2", "score": "0.36809883", "text": "public function getOperationsProviderClass();", "title": "" }, { "docid": "1c4febda5f1f6dc3f66ef9e8541c9307", "score": "0.36767235", "text": "function bbp_new_converter($platform = '')\n{\n}", "title": "" }, { "docid": "5393d87a74d5bd5339f5b454430db173", "score": "0.36754602", "text": "private function createCommand(string $command) {\n if (!isset($this->executers[$command])) {\n switch ($command) {\n case \"PLACE\" :\n $this->executers[$command] = new PlaceCommand();\n break;\n case \"MOVE\" :\n $this->executers[$command] = new MoveCommand();\n break;\n case \"REPORT\" :\n $this->executers[$command] = new ReportCommand();\n break;\n case \"LEFT\" :\n $this->executers[$command] = new LeftCommand();\n break;\n case \"RIGHT\" :\n $this->executers[$command] = new RightCommand();\n break;\n }\n }\n }", "title": "" }, { "docid": "37d7402ca5cda87d66c4cd4e9a7227c8", "score": "0.36730146", "text": "protected static function newFactory()\n {\n return TagFactory::new();\n }", "title": "" }, { "docid": "1d87b4e77056c8e696d4c8729b0c7bce", "score": "0.36695537", "text": "function cmis_drush_command() {\n $items = array();\n // the key in the $items array is the name of the command.\n $items['cmis-phplib'] = array(\n 'callback' => 'drush_cmis_library',\n 'description' => dt(\"Downloads the CMIS PHP library.\"),\n 'bootstrap' => DRUSH_BOOTSTRAP_DRUSH, // No bootstrap.\n 'arguments' => array(\n 'path' => dt('Optional. A path where to install the PHP CMIS Library plugin. If omitted Drush will use the default location.'),\n ),\n 'aliases' => array('cmisphplib'),\n );\n return $items;\n}", "title": "" }, { "docid": "70495fa8b82535cce3037f9893a0a1ef", "score": "0.36689883", "text": "public static function suite(): KernelTestSuite\n {\n return new static('kernel', 'Kernel');\n }", "title": "" }, { "docid": "dfaddf90f9a2ac151726e2970b9d186c", "score": "0.3665231", "text": "function CLCFG_lilo2Grub()\n{\necho(\"\nrm /sbin/lilo2grub 2> /dev/null\ncat >> /sbin/lilo2grub << \\\"LILO2GRUBEOF\\\"\n\n#!/bin/sh\n\ndevice_map=/boot/grub/device.map\nmenu_lst=/boot/grub/menu.lst\n\n\n#clears all global set variables\nclearVars()\n{\n\ttitle=\\\"\\\"\n\troot=\\\"\\\"\n\tkernel=\\\"\\\"\n\tinitrd=\\\"\\\"\n\ttype=\\\"\\\"\n\tother=\\\"\\\"\n\tparamcnt=0\n}\n\n\n\n\n\n#converts a standard device name to the grub's naming schema\n#e.g. grubdev=`convert /dev/hda1`\nconvert () {\n\t# Break the device name into the disk part and the partition part\n\ttmp_disk=\\$(echo \\\"\\$1\\\" | sed -e 's%\\\\(\\\\(s\\\\|h\\\\|v\\\\|xv\\\\)d[a-z]\\\\)[0-9]*\\$%\\\\1%' \\\\\n\t\t\t\t-e 's%\\\\(fd[0-9]*\\\\)\\$%\\\\1%' \\\\\n\t\t\t\t-e 's%/part[0-9]*\\$%/disc%' \\\\\n\t\t\t\t-e 's%\\\\(c[0-7]d[0-9]*\\\\).*\\$%\\\\1%' \\\\\n\t\t\t\t-e 's%\\\\(/mapper/mpath[0-9]\\\\+\\\\)-part[0-9]\\\\+\\$%\\\\1%')\n\ttmp_part=\\$(echo \\\"\\$1\\\" | sed -e 's%.*/\\\\(s\\\\|h\\\\|v\\\\|xv\\\\)d[a-z]\\\\([0-9]*\\\\)\\$%\\\\2%' \\\\\n\t\t\t\t-e 's%.*/fd[0-9]*\\$%%' \\\\\n\t\t\t\t-e 's%.*/floppy/[0-9]*\\$%%' \\\\\n\t\t\t\t-e 's%.*/\\\\(disc\\\\|part\\\\([0-9]*\\\\)\\\\)\\$%\\\\2%' \\\\\n\t\t\t\t-e 's%.*c[0-7]d[0-9]*p*%%' \\\\\n\t\t\t\t-e 's%.*/mapper/mpath[0-9]\\\\+-part\\\\([0-9]\\\\+\\\\)%\\\\1%')\n\n\t# Get the drive name\n\ttmp_drive=\\$(grep -v '^#' \\$device_map | grep \\\"\\$tmp_disk *\\$\\\" | \\\\\n\t\tsed 's%.*\\\\(([hf]d[0-9][a-g0-9,]*)\\\\).*%\\\\1%')\n\n\t# If not found, print an error message and exit\n\tif [ -z \\\"\\$tmp_drive\\\" ]; then\n\t\techo \\\"\\$1 does not have any corresponding BIOS drive.\\\" 1>&2\n\t\texit 1\n\tfi\n\n\tif [ -n \\\"\\$tmp_part\\\" ]; then\n\t\t# If a partition is specified, we need to translate it into the\n\t\t# GRUB's syntax\n\t\techo \\\"\\$tmp_drive\\\" | sed \\\"s%)\\$%,`expr \\$tmp_part - 1`)%\\\"\n\telse\n\t\t# If no partition is specified, just print the drive name\n\t\techo \\\"\\$tmp_drive\\\"\n\tfi\n}\n\n\n\n\n\n#write a windows boot menu entry\nwriteWindows()\n{\n\t#only write if all four needed information were found\n\tif [ \\$paramcnt -eq 3 ] && [ \\$type = \\\"w\\\" ]\n\tthen\n\t\techo \\\"title=\\$title\nroot \\$root\nsavedefault\nchainloader +1\n\\\" >> \\$menu_lst\n\n\tclearVars\n\t\n\techo \\\"Adding Windows* to Grub's boot menu\\\"\n\tfi\n}\n\n\n\n\nclearVars\n#scan the lilo.conf for windows entries and add them to menu.lst\ncat /etc/lilo.conf | while read line\ndo\n\tcmd=`echo \\$line | cut -d'=' -f1`\n\tparam=`echo \\$line | cut -d'=' -f2`\n\n\tcase \\$cmd in\n\t\tlabel)\n\t\t\ttitle=\\$param\n\t\t\tparamcnt=`expr \\$paramcnt \\+ 1`\n\t\t;;\n\t\ttable)\n\t\t\tparamcnt=`expr \\$paramcnt \\+ 1`\n\t\t;;\n\t\tother)\n\t\t\troot=`convert \\$param`\n\t\t\ttype=\\\"w\\\"\n\t\t\tparamcnt=`expr \\$paramcnt \\+ 1`\n\t\t;;\n\t\t\\\"\\\")\n\t\t\tclearVars\n\t\t;;\n\tesac\n\t\twriteWindows\ndone\nLILO2GRUBEOF\n\nchmod +x /sbin/lilo2grub\n\n/sbin/lilo2grub\n\n#add default kernel to start and timeout for user selection\necho \\\"default 0\ntimeout 3\n\\\" > /tmp/menu.lst1.m23\ncp /boot/grub/menu.lst /tmp/menu.lst2.m23\ncat /tmp/menu.lst1.m23 /tmp/menu.lst2.m23 > /boot/grub/menu.lst\nrm /tmp/menu.lst1.m23 /tmp/menu.lst2.m23\n\n\");\n}", "title": "" }, { "docid": "a52cc16ce1cafe48fa1d300d21c3175a", "score": "0.36628523", "text": "public function command($name)\n {\n switch (trim($name)) {\n case 'branch':\n $command = new Command\\GitBranchCommand($this);\n break;\n case 'tag':\n $command = new Command\\GitTagCommand($this);\n break;\n case 'commit':\n $command = new Command\\GitCommitCommand($this);\n break;\n case 'diff':\n $command = new Command\\GitDiffCommand($this);\n break;\n case 'files':\n $command = new Command\\GitFilesCommand($this);\n break;\n case 'init':\n $command = new Command\\GitInitCommand($this);\n break;\n case 'log':\n $command = new Command\\GitLogCommand($this);\n break;\n case 'status':\n $command = new Command\\GitStatusCommand($this);\n break;\n case 'sync':\n $command = new Command\\GitSyncCommand($this);\n break;\n case 'undo':\n $command = new Command\\GitUndoCommand($this);\n break;\n default:\n throw new InvalidArgumentException(sprintf('Unknown command instance called: \"%s\"', $name));\n }\n\n return $command;\n }", "title": "" }, { "docid": "abd939b46ab3998affa366d626097d5d", "score": "0.36600927", "text": "private static function buildCommand($cmd, array $args, $inputRedir='', $outputRedir='', $errorRedir='') {\n $cmd = self::getInstance()->getOSSpecificCommand($cmd);\n foreach ($args as $arg) {\n $cmd .= ' ' . $arg;\n }\n\n if ($inputRedir)\n $cmd .= ' < '.$inputRedir;\n if ($outputRedir)\n $cmd .= ' > '.$outputRedir;\n if ($errorRedir)\n $cmd .= ' 2> '.$errorRedir;\n\n return $cmd;\n }", "title": "" }, { "docid": "d0675c24e20a35c494b1f07d5fe75c4a", "score": "0.36523208", "text": "function widget($name) \r\n{\r\n\treturn Modules::run('wi_'.$name);\r\n}", "title": "" }, { "docid": "91944ef543fe4fb26b1a6373044d2923", "score": "0.36510596", "text": "public static function define($tokens = null)\n {\n return new Command($tokens);\n }", "title": "" }, { "docid": "f6640cae1cd68f8cf5fb9a391100f86c", "score": "0.3649967", "text": "public function getDefaultOperatorInputByType()\n {\n if (null === $this->_defaultOperatorInputByType) {\n parent::getDefaultOperatorInputByType();\n /*\n * '{}' and '!{}' are left for back-compatibility and equal to '==' and '!='\n */\n $this->_defaultOperatorInputByType['category'] = array('==', '!=', '{}', '!{}', '()', '!()');\n $this->_arrayInputTypes[] = 'category';\n }\n return $this->_defaultOperatorInputByType;\n }", "title": "" }, { "docid": "7e727d8e04b6e517dbfbdf1a9f531d45", "score": "0.36486238", "text": "public static function newFactory()\n {\n return ItemDimensionFactory::new();\n }", "title": "" }, { "docid": "0d80844d31b59820d70aa2d6c16ef0d0", "score": "0.3648301", "text": "protected function registerAddCommand() {\n $this->app->bindShared('command.compleet.add', function($app) {\n return new AddCommand($app['compleet']);\n });\n\n $this->commands('command.compleet.add');\n }", "title": "" }, { "docid": "773a3a5d3fbe140c02eba431d8d4df6b", "score": "0.36458108", "text": "protected function createBootstrapGridsystem()\n {\n $return = (string) $this->class($this->bootstrapContainerDivElementAttributes)->div($this->getBootstrapGridsystem());\n\n $this->bootstrapGridsystemRow = '';\n\n return $return;\n }", "title": "" }, { "docid": "f1bf094d2a1c238ec6a585ed5300d2f3", "score": "0.3640237", "text": "abstract public function getCmd($vname,$default = false, $method = 'any');", "title": "" }, { "docid": "7fe419f2dd74577d23ddf7167d475dea", "score": "0.3638305", "text": "public static function factory() {\n\t\treturn call_user_func_array( array( '\\Carbon_Fields\\Container\\Container', 'factory' ), func_get_args() );\n\t}", "title": "" }, { "docid": "e373b12566ecc861ff169f2f48a601ee", "score": "0.36327326", "text": "public function getMongoCmd()\n {\n trigger_error('MongoDB command prefix option is no longer used', E_USER_DEPRECATED);\n return $this->attributes['mongoCmd'];\n }", "title": "" }, { "docid": "a1419bd877848a588f40f82fd39b19eb", "score": "0.36321467", "text": "function filesystem()\n {\n return dan('filesystem');\n }", "title": "" }, { "docid": "7af39631a1d33873a172141cfaf6e748", "score": "0.36312497", "text": "public function getKernel(): HttpKernelInterface\n {\n return $this->kernel;\n }", "title": "" }, { "docid": "17d8efd15f9a2ff1e5d91e74efbf54cc", "score": "0.3630523", "text": "function find_imagemagick()\n{\n $imagemagick = '/usr/bin/convert';\n if (!@file_exists($imagemagick)) {\n $imagemagick = '/usr/local/bin/convert';\n }\n if (!@file_exists($imagemagick)) {\n $imagemagick = '/opt/local/bin/convert';\n }\n if (!@file_exists($imagemagick)) {\n $imagemagick = '/opt/cloudlinux/bin/convert';\n }\n if (!@file_exists($imagemagick)) {\n return null;\n }\n return $imagemagick;\n}", "title": "" }, { "docid": "06ac8e2fb0eb0d130c35b35e88e63d86", "score": "0.36290434", "text": "public static function console()\n {\n return (\n ModulusCLI::boot()\n ->load(__DIR__ . DS . 'Commands')\n );\n }", "title": "" }, { "docid": "69d41ed539491b3f0b48bdbf75082e4e", "score": "0.36063755", "text": "protected static function factory()\n {\n return Factory\\UnixPathFactory::instance();\n }", "title": "" }, { "docid": "36258a5ff008420651da65620b31874f", "score": "0.3587265", "text": "public function __construct (Imagick $wand) {}", "title": "" }, { "docid": "21e79c4b704ea87fd757855f363878bc", "score": "0.35869727", "text": "public function createCommand(string $name, array $params = [])\n\t{\n\t\t$namespaces = $this->container->get('config')->get('command_namespaces');\n\n\t\t$reflector = null;\n\n\t\t$partialCommandName = ucfirst($name) . 'Command';\n\n\t\t$commandName = '';\n\n\t\tforeach ($namespaces as $namespace)\n\t\t{\n\t\t\t$commandName = $namespace . $partialCommandName;\n\n\t\t\tif (class_exists($commandName))\n\t\t\t{\n\t\t\t\t$reflector = new ReflectionClass($commandName);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($reflector === null)\n\t\t{\n\t\t\tthrow new RuntimeException('Command not found: ' . $commandName);\n\t\t}\n\n\t\treturn $reflector->newInstanceArgs($params);\n\t}", "title": "" }, { "docid": "18edae91a11c71c4c7b6d15a926e5aca", "score": "0.35824123", "text": "protected function createInputSvg()\n {\n $input = $this->createRunResourceURI(uniqid('input_')) . '.svg';\n copy(dirname(__FILE__) . '/_input/pyramid.svg', $input);\n\n return $input;\n }", "title": "" }, { "docid": "344d0eff70c1c4c5e330c863f4145d6d", "score": "0.35822234", "text": "public function newIKEGateway($name, $ikev2 = false )\n {\n $gateway = new IKEGateway( $name, $this);\n if( $ikev2 )\n $xmlElement = DH::importXmlStringOrDie($this->owner->xmlroot->ownerDocument, IKEGateway::$templatexml_ikev2);\n else\n $xmlElement = DH::importXmlStringOrDie($this->owner->xmlroot->ownerDocument, IKEGateway::$templatexml);\n\n $gateway->load_from_domxml($xmlElement);\n\n $gateway->owner = null;\n $gateway->setName($name);\n\n $this->addGateway( $gateway );\n\n return $gateway;\n }", "title": "" }, { "docid": "a9b8e69e2581246de88c8490585726da", "score": "0.35763916", "text": "private function loadCommand($class): cli\\Command\n {\n $controller = new $class();\n if (!is_a($controller, cli\\Command::class)) {\n $this->critical('Command `' . $class . '` must extend ' . cli\\Command::class . '!', array(\n 'requestedController' => $this->request()->getController(),\n 'requestedModule' => $this->request()->getModule()\n ));\n return null;\n }\n return $controller;\n }", "title": "" }, { "docid": "16c443a74d9f55f7ba017d5db8a837c4", "score": "0.3567818", "text": "function gliffy_create_macro($diagram_id, $diagram_size = \"M\") {\r\n return \"#gliffydiagram($diagram_id, $diagram_size)#\";\r\n}", "title": "" }, { "docid": "a50cc23d263f5d0a899142ec6233cc2a", "score": "0.35658345", "text": "public function withCli(bool $bool): BootstrapInterface;", "title": "" }, { "docid": "113e4885e6dab1ea44ded7ac1a149a59", "score": "0.35647282", "text": "function islandora_ocr_from_hocr_drush_command() {\n $items = array();\n\n $items['islandora_ocr_from_hocr'] = array(\n 'description' => \"Reads a csv file first column is pid. \n Currently requires Drupal7 Islandora with Tuque. \n Each pid in the txt/csv file should represent an object with an hocr, the\n script will then strip the tags from the hocr and save it as a plain ocr\n stream. This is faster then rerunning tesseract (especially on newspaper\n type pages).\",\n 'arguments' => array(\n 'csv_file' => 'The path to a csv file that contains columns as described in the description.',\n 'interactive' => 'if TRUE then you will be asked to confirm the update for each object',\n ),\n 'examples' => array(\n 'drush -u 1 --uri=http://137.149.200.19/scholardev islandora_ocr_f_hocr /var/www/html/drupal/sites/137.149.200.19.scholardev/files/csv.txt TRUE',\n ),\n 'aliases' => array('islandora_ocr_f_hocr'),\n 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN, // we can pass in users id on the command line using drush -u.\n );\n\n return $items;\n}", "title": "" }, { "docid": "39da4717f0ba3f90a72529605443da09", "score": "0.35637358", "text": "public function __construct() {\n $this->code = '';\n\n $this->stdin = null;\n\n $this->have_readline = function_exists('readline');\n\n if ($this->have_readline) {\n readline_completion_function('__shell_readline_complete');\n }\n\n $this->use_readline = true;\n\n $cmd = PHP_Shell_Commands::getInstance();\n\n $cmd->registerCommand('#^quit$#', $this, 'cmdQuit', 'quit', 'leaves the shell');\n $cmd->registerCommand('#^\\?$#', $this, 'cmdHelp', '?', 'show this help');\n $cmd->registerCommand('#^\\?\\s+license$#', $this, 'cmdLicense', '? license', 'show license of the shell');\n }", "title": "" } ]
a85e260dd2e6e462a217a94383d34f85
Register any application services.
[ { "docid": "da4db02d00021ab37bb38e5ef5b756c5", "score": "0.0", "text": "public function register()\n {\n\n }", "title": "" } ]
[ { "docid": "d70c37ddb88a852efcfd8b23f16a6080", "score": "0.78882134", "text": "public function register()\n {\n // Register any bindings or services here\n }", "title": "" }, { "docid": "bf07a6ccbc1940e2be8abff91e94a2f6", "score": "0.7879658", "text": "public function register()\n {\n $this->registerServices();\n }", "title": "" }, { "docid": "bf07a6ccbc1940e2be8abff91e94a2f6", "score": "0.7879658", "text": "public function register()\n {\n $this->registerServices();\n }", "title": "" }, { "docid": "f70d8ed816e1156cec094ddb6d5d1e6f", "score": "0.7652205", "text": "public function register()\n\t{\n\t\t$this->registerServices();\n\t}", "title": "" }, { "docid": "c768ccc5d210c060f9397c11f3e08a43", "score": "0.7504075", "text": "public function register()\n { \t\n \t$this->registerArretService();\t\n \t$this->registerAnalyseService();\t\n \t$this->registerSeminaireService();\t\n \t$this->registerSubjectService();\t\n \t$this->registerAuteurService();\t\n \t$this->registerCategorieService();\n \t$this->registerBSCategorieService();\t \t\t\t\n }", "title": "" }, { "docid": "a1b47fbaafde6c789337321ea0ed35da", "score": "0.74701923", "text": "public function register()\n {\n $this->defineServices();\n }", "title": "" }, { "docid": "9ecb8f965303ffa0f4c237d34c3bcbb1", "score": "0.7450847", "text": "public function register()\n {\n $this->registerService();\n }", "title": "" }, { "docid": "9ecb8f965303ffa0f4c237d34c3bcbb1", "score": "0.7450847", "text": "public function register()\n {\n $this->registerService();\n }", "title": "" }, { "docid": "9ecb8f965303ffa0f4c237d34c3bcbb1", "score": "0.7450847", "text": "public function register()\n {\n $this->registerService();\n }", "title": "" }, { "docid": "ff2e87df5f8fe1995a7f566a66029a9a", "score": "0.7373759", "text": "public function register()\n {\n $this->registerConfig();\n $this->registerService();\n }", "title": "" }, { "docid": "fbf745c5826f86c4c823fe56841976ec", "score": "0.73706204", "text": "public function register()\n {\n $this->registerSeoMetaService();\n $this->registerSeoOpenGraphService();\n $this->registerSeoTwitterService();\n }", "title": "" }, { "docid": "b5585067d9f260015063e06f97fd199e", "score": "0.7294904", "text": "public function register()\n {\n $this->registerTailwindService();\n\n if ($this->app->runningInConsole()) {\n $this->registerResources();\n }\n }", "title": "" }, { "docid": "e10ce6dcc700e5192b2732ba48acbc04", "score": "0.727807", "text": "public function register()\n {\n $this->registerPasswordBroker();\n\n $this->registerTokenRepository();\n }", "title": "" }, { "docid": "f5f3f84b78f65540e54e1171a6d19495", "score": "0.72768116", "text": "public function register()\n {\n $this->app->make('Exdeliver\\Marketplace\\Controllers\\MarketplaceController');\n\n $this->app->bind('marketplaceservice', 'Exdeliver\\Marketplace\\Services\\MarketplaceService'); // bind service\n\n $this->loadViewsFrom(__DIR__.'/Views', 'marketplace');\n $this->loadMigrationsFrom(__DIR__.'/Migrations');\n\n }", "title": "" }, { "docid": "4eda3e1dba7047d11a9185d19899a33c", "score": "0.7270899", "text": "public function register()\n {\n if ($this->app->environment() !== 'production') {\n $this->app->register(IdeHelperServiceProvider::class);\n }\n\n // $this->app->bind(BaseService::class, UserService::class);\n // $this->app->bind(BaseService::class, CompanyService::class);\n }", "title": "" }, { "docid": "c9bc6cfd69a60feee0745325044d378e", "score": "0.7268026", "text": "public function register()\n {\n $this->registerRepositories();\n }", "title": "" }, { "docid": "294b64101d8d64a5ad7b8810628ae2de", "score": "0.724781", "text": "public function register()\n {\n // Account\n\n $this->app->bind(\n 'Mobilozophy\\MZCAPILaravel\\Services\\Api\\MZCAPI\\MessageCenter\\DeviceAPIService',\n function () {\n return new DeviceAPIService($this->app['GuzzleHttp\\Client']);\n }\n );\n\n $this->app->bind(\n 'Mobilozophy\\MZCAPILaravel\\Services\\Api\\MZCAPI\\MessageCenter\\SubscriptionAPIService',\n function () {\n return new SubscriptionAPIService(\n $this->app['GuzzleHttp\\Client']\n );\n }\n );\n\n $this->app->bind(\n 'Mobilozophy\\MZCAPILaravel\\Services\\Api\\MZCAPI\\MessageCenter\\TriggeredSendAPIService',\n function () {\n return new TriggeredSendAPIService(\n $this->app['GuzzleHttp\\Client']\n );\n }\n );\n\n $this->app->bind(\n 'Mobilozophy\\MZCAPILaravel\\Services\\Api\\MZCAPI\\MessageCenter\\TriggeredSendProfileAPIService',\n function () {\n return new TriggeredSendProfileAPIService(\n $this->app['GuzzleHttp\\Client']\n );\n }\n );\n }", "title": "" }, { "docid": "00f133a1ea16305d53d0bc40d354894e", "score": "0.7237675", "text": "public function register()\n {\n $this->app->register(ConsoleServiceProvider::class);\n $this->app->register(WebSocketServiceProvider::class);\n }", "title": "" }, { "docid": "498b52609b28a7945490ca3e8d705db5", "score": "0.7218538", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/laralastica.php', 'laralastica');\n\n $this->registerClient();\n $this->registerCommands();\n }", "title": "" }, { "docid": "3b29493e307a4cb1b6e6a510302c2946", "score": "0.7206262", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/filesystems.php', 'disks');\n $this->mergeConfigFrom(__DIR__.'/../config/volcator.php', 'volcator');\n $this->mergeConfigFrom(__DIR__.'/../config/prefix.php', 'prefix');\n $this->mergeConfigFrom(__DIR__.'/../config/languages.php', 'languages');\n $this->app->register(VolcatorRouteServiceProvider::class);\n $this->app->register(VolcatorMailServiceProvider::class);\n $this->app->register(VolcatorEventServiceProvider::class);\n $this->app->register(VolcatorTranslationServiceProvider::class);\n $this->app->register(VolcatorGuardServiceProvider::class);\n $this->app->register(VolcatorEventServiceProvider::class);\n $this->registerVolcator();\n $this->registerCommands();\n }", "title": "" }, { "docid": "9be2e59030125ec07ee7c56c1627e733", "score": "0.72031647", "text": "public function register() {\n\n $this->registerFaceBook();\n $this->registerGoogleClient();\n $this->registerGithubClient();\n }", "title": "" }, { "docid": "4e47ba6bee848a4d803b1825e06da0dc", "score": "0.7195809", "text": "public function register()\n {\n // ユーザー登録サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\UserRegisterServiceInterface::class,\n \\App\\Services\\Api\\UserRegisterService::class\n );\n // ユーザーログインサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\UserLoginServiceInterface::class,\n \\App\\Services\\Api\\UserLoginService::class\n );\n // ユーザーログアウトサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\UserLogoutServiceInterface::class,\n \\App\\Services\\Api\\UserLogoutService::class\n );\n // バインダー一覧情報取得サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderListSelectServiceInterface::class,\n \\App\\Services\\Api\\BinderListSelectService::class\n );\n // バインダー検索サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderSearchServiceInterface::class,\n \\App\\Services\\Api\\BinderSearchService::class\n );\n // バインダー作成サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderSaveServiceInterface::class,\n \\App\\Services\\Api\\BinderSaveService::class\n );\n // バインダー削除サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderDeleteServiceInterface::class,\n \\App\\Services\\Api\\BinderDeleteService::class\n );\n // バインダー情報取得サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderDetailSelectServiceInterface::class,\n \\App\\Services\\Api\\BinderDetailSelectService::class\n );\n // バインダーお気に入りサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\BinderFavoriteServiceInterface::class,\n \\App\\Services\\Api\\BinderFavoriteService::class\n );\n // 画像追加サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageAddServiceInterface::class,\n \\App\\Services\\Api\\ImageAddService::class\n );\n // 画像削除サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageDeleteServiceInterface::class,\n \\App\\Services\\Api\\ImageDeleteService::class\n );\n // 画像リネームサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageRenameServiceInterface::class,\n \\App\\Services\\Api\\ImageRenameService::class\n );\n // 画像並び順更新サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageSortServiceInterface::class,\n \\App\\Services\\Api\\ImageSortService::class\n );\n // 画像検索サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageSearchServiceInterface::class,\n \\App\\Services\\Api\\ImageSearchService::class\n );\n // 画像ダウンロードサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\ImageDownloadServiceInterface::class,\n \\App\\Services\\Api\\ImageDownloadService::class\n );\n // ラベル保存サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\LabelSaveServiceInterface::class,\n \\App\\Services\\Api\\LabelSaveService::class\n );\n // ラベル削除サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\LabelDeleteServiceInterface::class,\n \\App\\Services\\Api\\LabelDeleteService::class\n );\n // ラベル並び順更新サービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\LabelSortServiceInterface::class,\n \\App\\Services\\Api\\LabelSortService::class\n );\n // ラベリングサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\LabelingServiceInterface::class,\n \\App\\Services\\Api\\LabelingService::class\n );\n // 一括ラベリングサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\MultipleLabelingServiceInterface::class,\n \\App\\Services\\Api\\MultipleLabelingService::class\n );\n // パスワードリセットサービス\n $this->app->bind(\n \\App\\Services\\Api\\Interfaces\\PasswordResetServiceInterface::class,\n \\App\\Services\\Api\\PasswordResetService::class\n );\n }", "title": "" }, { "docid": "f7078315af9b48af27dc0081f0bb2d25", "score": "0.7195688", "text": "public function register()\n {\n $this->registerRepository();\n\n $this->registerPasswordService();\n\n $this->registerLoginThrottleService();\n\n $this->registerUserValidator();\n\n $this->registerConfide();\n\n $this->registerCommands();\n }", "title": "" }, { "docid": "7e3cb6415935ad012bc096695895311a", "score": "0.7191818", "text": "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n\n $this->registerCommands();\n $this->registerMiddleware();\n $this->registerSms();\n $this->registerOss();\n }", "title": "" }, { "docid": "8711c1e1f3b85bbfc5cb6694b3936e8c", "score": "0.71872747", "text": "public function register()\r\n {\r\n $this->app->booting(function()\r\n {\r\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\r\n $loader->alias('EggLog', 'EggDigital\\Service\\Facades\\EggLog');\r\n $loader->alias('PcsClient', 'EggDigital\\Service\\Facades\\PcsClient');\r\n });\r\n\r\n $this->app['service\\egglog'] = $this->app->share(function($app)\r\n {\r\n return new Provider\\EggLogProvider;\r\n });\r\n\r\n $this->app['service\\pcsclient'] = $this->app->share(function($app)\r\n {\r\n return new Provider\\PcsClientProvider;\r\n });\r\n }", "title": "" }, { "docid": "a1acff972959d28d63b989930ef331bc", "score": "0.7183288", "text": "public function register()\n {\n $this->registerCommands();\n $this->registerMiddleware();\n }", "title": "" }, { "docid": "61e65ee702f02ee14fd20b90c63007b9", "score": "0.7173724", "text": "public function register(): void\n {\n $this->app->register(AdmEventServiceProvider::class);\n// $this->app->register(AuthServiceProvider::class);\n }", "title": "" }, { "docid": "ba2c799823b7021e7135323e94af6eb2", "score": "0.716557", "text": "public function register()\n {\n $this->app->register(L5SwaggerServiceProvider::class);\n $this->app->register(ValidatorProvider::class);\n }", "title": "" }, { "docid": "cd21a20fc32e98ad0e6e47d9739c78df", "score": "0.7158182", "text": "public function register()\n {\n $this->mergeConfig();\n $this->registerService();\n }", "title": "" }, { "docid": "e9ad4fee4cd41d753962dcadf9300989", "score": "0.7156002", "text": "public function register()\n {\n // Bind any implementations.\n $this->app->register('Yajra\\Datatables\\DatatablesServiceProvider');\n }", "title": "" }, { "docid": "dbd3a1daf5f3f41e27551967413c7351", "score": "0.71554124", "text": "public function register()\n {\n //Blog\n $this->app->bind(\n 'BlogService', BlogService::class\n );\n\n //Match\n $this->app->bind(\n \\App\\Repositories\\Match\\MatchRepositoryInterface::class,\n \\App\\Repositories\\Match\\MatchRepository::class\n );\n }", "title": "" }, { "docid": "720e69666e277d737e44f1a2387f7361", "score": "0.71511674", "text": "public function register()\n {\n $this->registerVaahIndexer();\n\n $this->app->alias('indexer', \\WebReinvent\\VaahIndexer\\Indexer::class);\n\n $this->mergeConfigFrom(\n __DIR__.'/config/config.php', 'indexer'\n );\n }", "title": "" }, { "docid": "0fdc41058c3a9ff8e3d89d7b1b27c0c9", "score": "0.7149695", "text": "public function register()\r\n {\r\n $this->registerRateLimiting();\r\n\r\n $this->registerHttpValidation();\r\n\r\n $this->registerHttpParsers();\r\n\r\n $this->registerResponseFactory();\r\n\r\n $this->registerMiddleware();\r\n }", "title": "" }, { "docid": "57c3d51e68337e7c5d69e676ec4f0593", "score": "0.7147116", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/laravel-vidible.php', 'laravel-vidible');\n\n $this->mergeConfig();\n\n $this->registerRepository();\n\n $this->registerService();\n }", "title": "" }, { "docid": "898c9b38b71877bcd735fb7cf13ef57d", "score": "0.71459216", "text": "public function register()\n {\n $this->app->bind(CoinbaseService::class, function ($app) {\n return new CoinbaseService();\n });\n $this->app->bind(UserPaymentService::class, function ($app) {\n return new UserPaymentService();\n });\n }", "title": "" }, { "docid": "d27f1acbc477e8459b0072c1207d9499", "score": "0.714219", "text": "public function register()\n {\n $this->app->register(CoreServiceProvider::class);\n $this->app->register(FleetOpsServiceProvider::class);\n }", "title": "" }, { "docid": "8eca91e8dab25620f4164dd34b17d380", "score": "0.7138682", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/laravel-velo-api.php', 'laravel-velo-api');\n\n $this->app->bind(VeloStations::class);\n\n if (app()->environment('testing')) {\n $this->app->bind('velo-stations', function () {\n return new VeloStations(new VeloClientMock());\n });\n } else {\n $this->app->bind('velo-stations', function () {\n return new VeloStations(new VeloClient());\n });\n }\n }", "title": "" }, { "docid": "5c919a614732afcf707ebae5e2a47393", "score": "0.71363944", "text": "public function register()\n {\n $this->registerConfig();\n $this->registerPreConfiguredApiClients();\n }", "title": "" }, { "docid": "eb2f4a3a7acbeb81156db5c950b1a6bd", "score": "0.71333814", "text": "public function register()\n {\n $this->registerProviders();\n\n $this->registerFacades();\n\n $this->registerRoutes();\n }", "title": "" }, { "docid": "6afc53633335550e9e9b6020b782d721", "score": "0.7133341", "text": "public function register()\n\t{\n $this->registerCommandTranslator();\n $this->registerCommandBus();\n }", "title": "" }, { "docid": "1aabfb48903552bd6b83772b797fa2fd", "score": "0.71279067", "text": "public function register()\n {\n // Khai báo cái repository ở đây\n //$this->app->singleton(ServiceGroupRepositoryInterface::class, ServiceGroupRepository::class);\n }", "title": "" }, { "docid": "24faaaea05c7ee4728ce4afbbd5e6409", "score": "0.7124383", "text": "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/config/services.php', 'services'\n );\n }", "title": "" }, { "docid": "6e011b8ee340f504fa73f8b092762bd5", "score": "0.7122692", "text": "public function register()\n\t{\n\n\t\t$this->registerRoleService();\n\t\t$this->registerResourceActionDataProvider();\n\t\t$this->registerPermService();\n\t\t$this->registerPermitService();\n\t}", "title": "" }, { "docid": "864a9f90fa2a4425128a9b6de2199edb", "score": "0.7122022", "text": "public function register()\n {\n $this->app->bind('App\\Services\\PessoaService', function ($app){\n return new PessoaService();\n });\n }", "title": "" }, { "docid": "7c2d0c8e8752a24a1af90580fc063bfb", "score": "0.7118542", "text": "public function register()\n {\n $this->registerService();\n\n $this->app->bind('Modules\\Search\\SearchServiceInterface', 'Modules\\Search\\SearchService');\n\n $this->registerCommands();\n }", "title": "" }, { "docid": "54c888e03d980f34a1cad6546d509652", "score": "0.71171767", "text": "public function register()\n {\n $this->app->bind('Matthewbdaly\\LaravelCart\\Contracts\\Services\\Cart', 'Matthewbdaly\\LaravelCart\\Services\\Cart');\n $this->app->bind('Matthewbdaly\\LaravelCart\\Contracts\\Services\\UniqueId', 'Matthewbdaly\\LaravelCart\\Services\\UniqueId');\n }", "title": "" }, { "docid": "98fe8affc950dc5b156e569d09e04ee4", "score": "0.7117026", "text": "public function register()\n\t{\n\t\t$this->registerAppBindings();\n\t}", "title": "" }, { "docid": "7350737a0324d9bcc0b8c54e50d9a0c0", "score": "0.7114688", "text": "public function register()\n {\n $this->app->register(BaumServiceProvider::class);\n }", "title": "" }, { "docid": "09d85a9bfadd8ea99fdc1ba74e4601d5", "score": "0.7112727", "text": "public function register()\n {\n $this->registerAppBindings();\n }", "title": "" }, { "docid": "3b2ac8229eff3e59213768b7ccadf9b6", "score": "0.7110834", "text": "public function register()\n {\n $this->app['laravel-dreamfactory'] = $this->app->share(function($app)\n {\n return new LaravelDreamfactory($app['router']);\n });\n\n $this->app['gdce'] = $this->app->share(function($app)\n {\n return new GDCE();\n });\n }", "title": "" }, { "docid": "dcfc45a0a5f45a230baa8492d6e15d8e", "score": "0.7109655", "text": "public function register()\n {\n //\n\n $this->app->bind(IUserService::class, UserService::class);\n $this->app->bind(IUserRepository::class, UserRepository::class);\n $this->app->bind(IPizzaService::class, PizzaService::class);\n $this->app->bind(IPizzaRepository::class, PizzaRepository::class);\n $this->app->bind(IOrderService::class, OrderService::class);\n $this->app->bind(IOrderRepository::class, OrderRepository::class);\n }", "title": "" }, { "docid": "87645e0fa0a7dccf36744ff035691afe", "score": "0.71094", "text": "public function register()\n {\n // Automatically apply the package configuration\n $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-notion-api');\n\n $this->app->singleton(Notion::class, function () {\n return new Notion(config('laravel-notion-api.notion-api-token'), config('laravel-notion-api.version'));\n });\n\n if ($this->app->runningInConsole()) {\n PestHttpRecorder::register();\n }\n }", "title": "" }, { "docid": "a2938fa22f84e99e0a456a083e6a32b2", "score": "0.71043277", "text": "public function register()\n {\n // $this->register(BaseAuthServiceProvider::class);\n }", "title": "" }, { "docid": "e97451de10235d467ba77c4a27cf6f32", "score": "0.70957905", "text": "public function register()\n {\n $this->registerProductRepository($this->app);\n $this->registerCategoryRepository($this->app);\n }", "title": "" }, { "docid": "79490f1d0dadc7c1a053fa47b0bc4cc7", "score": "0.70946366", "text": "public function register()\n {\n $this->app->register('ProAI\\Datamapper\\Providers\\MetadataServiceProvider');\n\n $this->registerEntityScanner();\n\n $this->registerSchemaBuilder();\n\n $this->registerModelGenerator();\n\n $this->registerCommands();\n }", "title": "" }, { "docid": "6c4803387dfe758755a4896ad1079f7a", "score": "0.7094242", "text": "public function register()\n {\n /*REGISTER SWAGGER INTEGRATION*/\n $this->app->register(\\L5Swagger\\L5SwaggerServiceProvider::class);\n }", "title": "" }, { "docid": "a847a96b05a26b9e302c2a2e9d5dc89c", "score": "0.7092194", "text": "public function register()\n {\n $this->registerPublishables();\n $this->registerCommands();\n }", "title": "" }, { "docid": "da1bc636f5076a61e905c37509fbd72f", "score": "0.70815176", "text": "public function register()\n {\n $this->app->register(RepositoryServiceProvider::class);\n }", "title": "" }, { "docid": "da1bc636f5076a61e905c37509fbd72f", "score": "0.70815176", "text": "public function register()\n {\n $this->app->register(RepositoryServiceProvider::class);\n }", "title": "" }, { "docid": "da1bc636f5076a61e905c37509fbd72f", "score": "0.70815176", "text": "public function register()\n {\n $this->app->register(RepositoryServiceProvider::class);\n }", "title": "" }, { "docid": "7f8694f681d935116737924b47467e75", "score": "0.70803225", "text": "public function register()\n {\n //$this->app->make('tchoblond59\\ssrollershutter');\n }", "title": "" }, { "docid": "08553f585017a086b923667963887805", "score": "0.70789444", "text": "public function register()\n {\n $this->registerCommands();\n $this->registerAlias();\n $this->registerMiddleware();\n }", "title": "" }, { "docid": "8c59617e567cf26d8701d09d0014e2ea", "score": "0.70764685", "text": "public function register()\n {\n $guzzleClient = new Client(['timeout' => 1200, 'read_timeout' => 1200]);\n\n $this->app->bind(ConsultaEmpresaService::class, function ($app) use ($guzzleClient) {\n return new ConsultaEmpresaService($guzzleClient);\n });\n\n $this->app->bind(ConsultaSociosService::class, function ($app) use ($guzzleClient) {\n return new ConsultaSociosService($guzzleClient);\n });\n\n\n }", "title": "" }, { "docid": "f1daec42e01ba370c87c45d8575346fd", "score": "0.7074053", "text": "public function register()\n {\n // REPOSITORIES\n $this->app->bind(\"App\\Http\\Repositories\\Interfaces\\UserRepositoryInterface\", \"App\\Http\\Repositories\\UserRepository\");\n $this->app->bind(\"App\\Http\\Repositories\\Interfaces\\RoleRepositoryInterface\", \"App\\Http\\Repositories\\RoleRepository\");\n $this->app->bind(\"App\\Http\\Repositories\\Interfaces\\ExpenseRepositoryInterface\", \"App\\Http\\Repositories\\ExpenseRepository\"); \n $this->app->bind(\"App\\Http\\Repositories\\Interfaces\\ExpenseCategoryRepositoryInterface\", \"App\\Http\\Repositories\\ExpenseCategoryRepository\"); \n \n }", "title": "" }, { "docid": "e858d7be63a3ba1b754acdd9771da5f6", "score": "0.7073267", "text": "public function register()\n {\n\t if ($this->app->environment() !== 'production') {\n\t\t $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n\t }\n\t\t$this->app->register('Collective\\Html\\HtmlServiceProvider');\n\t\t$this->app->register('Joselfonseca\\ImageManager\\ImageManagerServiceProvider');\n }", "title": "" }, { "docid": "17060aab9a1367de6767bfa7f37e3941", "score": "0.7071299", "text": "public function register()\n {\n $this->registerRepositoryInterface();\n $this->registerServiceInterface();\n //\n }", "title": "" }, { "docid": "806f458840a1879493d8d3ef24f42bd6", "score": "0.70694697", "text": "public function register()\n {\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\CategoryRepository',\n 'DOLucasDelivery\\Repositories\\CategoryRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\ClientRepository',\n 'DOLucasDelivery\\Repositories\\ClientRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\OrderItemRepository',\n 'DOLucasDelivery\\Repositories\\OrderItemRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\OrderRepository',\n 'DOLucasDelivery\\Repositories\\OrderRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\ProductRepository',\n 'DOLucasDelivery\\Repositories\\ProductRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\UserRepository',\n 'DOLucasDelivery\\Repositories\\UserRepositoryEloquent'\n );\n $this->app->bind(\n 'DOLucasDelivery\\Repositories\\CouponRepository',\n 'DOLucasDelivery\\Repositories\\CouponRepositoryEloquent'\n );\n }", "title": "" }, { "docid": "b4586e87990525c38da1f23e5ac1d94a", "score": "0.7065518", "text": "public function register()\n {\n $this->registerUploadService();\n }", "title": "" }, { "docid": "c377bf3dad455df93faf8d9e6e872efc", "score": "0.70642203", "text": "public function register()\n {\n\n $this->app->singleton(ExceptionHandler::class, Handler::class);\n $this->app->singleton(KernelContract::class, Kernel::class);\n\n $this->app->middleware([HandleCors::class]);\n\n // Mathrix Lumen Zero Providers\n $this->app->register(ObserverServiceProvider::class);\n $this->app->register(PolicyServiceProvider::class);\n $this->app->register(RegistrarServiceProvider::class);\n\n $this->app->register(CorsServiceProvider::class);\n }", "title": "" }, { "docid": "f59c0e77a226acc33c5285d84a049f48", "score": "0.706125", "text": "public function register()\n {\n $this->app->bind(LeagueService::class, function () {\n return new LeagueService(\n new LeagueRepository(new League()),\n new LeaguePlayerRepository(new LeaguePlayer())\n );\n });\n }", "title": "" }, { "docid": "149a1f09d9db3d673d7f9e37da83a09f", "score": "0.7059463", "text": "public function register()\n {\n $this->registerAliases();\n\n $this->registerGuzzle();\n\n $this->registerApi();\n\n $this->registerAuth();\n\n $this->registerUserProvider();\n\n $this->registerGuard();\n\n $this->registerEncrypter();\n\n $this->registerCaptcha();\n\n $this->aliasMiddleware('scope', \\App\\Support\\Middleware\\Scope::class);\n $this->aliasMiddleware('group', \\App\\Support\\Middleware\\Group::class);\n $this->aliasMiddleware('api.debugbar', \\App\\Support\\Middleware\\ApiDebugbar::class);\n }", "title": "" }, { "docid": "ea35651997bcc337bc7c577f67c913cd", "score": "0.7057708", "text": "public function register()\n {\n\n /** Register Services */\n collect($this->getServices())->each(function($service){\n $this->app->singleton(class_basename($service), function($app) use ($service){\n return new $service();\n });\n });\n }", "title": "" }, { "docid": "655015c995aaeb1e2b4e8606872e2482", "score": "0.70575196", "text": "public function register()\n {\n $this->app->bind(VisitorServiceContract::class, VisitorService::class);\n $this->app->bind(SiteLinkServiceContract::class, SiteLinkService::class);\n $this->app->bind(SiteServiceContract::class, SiteService::class);\n\n }", "title": "" }, { "docid": "52b751787621d7cff3213984084eb435", "score": "0.70562744", "text": "public function register()\n {\n $this->registerEvents();\n $this->registerAuthMiddleware();\n }", "title": "" }, { "docid": "aaad779ab117f4ceb6bce4391d5bf03b", "score": "0.70553434", "text": "public function register()\r\n\t{\r\n\t\t$this->app->register(OdemeSistemiEventServiceProvider::class);\r\n\t}", "title": "" }, { "docid": "5f4e6333fab0d02385b022aa04d4d66a", "score": "0.70547795", "text": "public function register()\n {\n $this->registerMiddlewares();\n\n //\n }", "title": "" }, { "docid": "59b834fd2a18cfa624585553a983c343", "score": "0.7051233", "text": "public function register()\n {\n // Register the app\n $this->registerLarablog();\n\n // Register Commands\n $this->registerCommands();\n }", "title": "" }, { "docid": "8d67e2dfac65e450c1e707031a081914", "score": "0.7045259", "text": "public function register()\n {\n $this->registerConfigurationFiles();\n\n $this->registerMediaboxSingleton();\n\n $this->registerRoutes();\n }", "title": "" }, { "docid": "514ce1a5f5103bddaa5eae945984092c", "score": "0.70448357", "text": "public function register()\n {\n App::singleton('models\\\\oauth2\\\\IResourceServerContext', 'models\\\\oauth2\\\\ResourceServerContext');\n App::singleton('App\\Models\\ResourceServer\\IAccessTokenService', 'App\\Models\\ResourceServer\\AccessTokenService');\n App::singleton('App\\Models\\ResourceServer\\IApi', 'models\\\\resource_server\\\\Api');\n App::singleton('App\\Models\\ResourceServer\\IApiEndpoint', 'models\\\\resource_server\\\\ApiEndpoint');\n App::singleton('App\\Models\\ResourceServer\\IApiScope', 'models\\\\resource_server\\\\ApiScope');\n }", "title": "" }, { "docid": "565959d5b1ff161cf2a2c5c888740e21", "score": "0.70444924", "text": "public function register()\n {\n // Register main classes\n $this->app->make('CoreSolutions\\CoreAdmin\\Controllers\\CoreAdminController');\n $this->app->make('CoreSolutions\\CoreAdmin\\Controllers\\UserActionsController');\n $this->app->make('CoreSolutions\\CoreAdmin\\Controllers\\CoreAdminMenuController');\n $this->app->make('CoreSolutions\\CoreAdmin\\Cache\\QuickCache');\n $this->app->make('CoreSolutions\\CoreAdmin\\Builders\\MigrationBuilder');\n $this->app->make('CoreSolutions\\CoreAdmin\\Builders\\ModelBuilder');\n $this->app->make('CoreSolutions\\CoreAdmin\\Builders\\RequestBuilder');\n $this->app->make('CoreSolutions\\CoreAdmin\\Builders\\ControllerBuilder');\n $this->app->make('CoreSolutions\\CoreAdmin\\Builders\\ViewsBuilder');\n $this->app->make('CoreSolutions\\CoreAdmin\\Events\\UserLoginEvents');\n // Register dependency packages\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Intervention\\Image\\ImageServiceProvider');\n $this->app->register('Yajra\\Datatables\\DatatablesServiceProvider');\n // Register dependancy aliases\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n $loader->alias('HTML', 'Collective\\Html\\HtmlFacade');\n $loader->alias('Form', 'Collective\\Html\\FormFacade');\n $loader->alias('Image', 'Intervention\\Image\\Facades\\Image');\n $loader->alias('Datatables', 'Yajra\\Datatables\\Datatables');\n }", "title": "" }, { "docid": "0400d0b841121aeb0463542307b86b6e", "score": "0.70440096", "text": "public function register()\n {\n $this->app->bind(RandomGenerator::class, RandomGeneratorService::class);\n $this->app->bind(CarSharing::class, CarSharingService::class);\n $this->app->bind(Repository::class, CarRepository::class);\n }", "title": "" }, { "docid": "b310e936a32a1a8aab0472d76357cfdd", "score": "0.70401716", "text": "public function register()\n {\n $this->app->bind(IProjectService::class, ProjectService::class);\n $this->app->bind(ITodoService::class, TodoService::class);\n }", "title": "" }, { "docid": "16deb41babe80835a0b94e6dc5da3573", "score": "0.7039949", "text": "public function register()\n {\n\n $this->app->bind(\n ILogger::class,\n Logger::class\n );\n\n $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'uniexlogger');\n\n }", "title": "" }, { "docid": "81674a6a1bb9eb9a1acc14023042517b", "score": "0.7038738", "text": "public function register()\n {\n $this->app->bind(\\App\\Services\\EventReport\\IEventReportService::class, \\App\\Services\\EventReport\\EventReportService::class);\n }", "title": "" }, { "docid": "3b1f3492480c36b8e987334dc72d9c6e", "score": "0.7036467", "text": "public function register()\n {\n //check that app is local\n if ($this->app->isLocal()) {\n //if local register your services you require for development\n $this->app->register('Barryvdh\\Debugbar\\ServiceProvider');\n } else {\n //else register your services you require for production\n $this->app['request']->server->set('HTTPS', true);\n }\n }", "title": "" }, { "docid": "ff0d5543fe533fb95142672e97ebe7d2", "score": "0.7034839", "text": "public function register(): void\n {\n $this->mergeConfigFrom(__DIR__ . '/../config/larapress.php', 'larapress');\n $this->mergeConfigFrom(__DIR__ . '/../config/model-status.php', 'model-status');\n $this->mergeConfigFrom(__DIR__ . '/../config/medialibrary.php', 'medialibrary');\n\n $this->app->register(ModelStatusServiceProvider::class);\n $this->app->register(MediaLibraryServiceProvider::class);\n $this->app->register(QueryBuilderServiceProvider::class);\n }", "title": "" }, { "docid": "dfd54e63f903ce7617b114a3ac08f690", "score": "0.7033221", "text": "public function register()\n {\n //\n $this->app->bind(\n MoneyInterface::class,\n MoneyService::class\n );\n $this->app->bind(\n SnackInterface::class,\n SnackService::class\n );\n $this->app->bind(\n VendingMachineInterface::class,\n VendingMachineService::class\n );\n $this->app->bind(\n CurrencyInterface::class,\n CurrencyService::class\n );\n }", "title": "" }, { "docid": "9f19a061c256794c8ce45fded4532661", "score": "0.7029003", "text": "public function register()\n {\n $this->app->singleton(\\Laragrad\\Largent\\Services\\OperationService::class, function ($app) {\n return new \\Laragrad\\Largent\\Services\\OperationService();\n });\n\n $this->app->singleton(\\Laragrad\\Largent\\Services\\EntryService::class, function ($app) {\n return new \\Laragrad\\Largent\\Services\\EntryService();\n });\n }", "title": "" }, { "docid": "c404b06688de10839da765628fc19e7b", "score": "0.70282733", "text": "public function register()\n {\n // Register the app\n $this->registerApp();\n\n // Register Commands\n $this->registerCommands();\n }", "title": "" }, { "docid": "131cc17d3d1eb96b8fe13880be03bd79", "score": "0.7028227", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__ . '/config/http_logger.php', 'http_logger');\n\n if (config('http_logger.is_enabled')) {\n $this->app['router']->pushMiddlewareToGroup('web', HttpLogger::class);\n $this->app['router']->pushMiddlewareToGroup('api', HttpLogger::class);\n }\n\n $this->app->register(HttpLoggerRouteServiceProvider::class);\n\n $this->app->register(HttpLoggerAuthServiceProvider::class);\n }", "title": "" }, { "docid": "80823d6ca7c9581e725444f7ed45076d", "score": "0.70265925", "text": "public function register()\n {\n\n if (config('app.env')=='local' && class_exists(\\Barryvdh\\Debugbar\\ServiceProvider::class))\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n\n if (class_exists(\\Laravel\\Cashier\\CashierServiceProvider::class))\n $this->app->register(\\Laravel\\Cashier\\CashierServiceProvider::class);\n\n if (class_exists(\\ErpNET\\Bot\\Providers\\ErpnetBotServiceProvider::class))\n $this->app->register(\\ErpNET\\Bot\\Providers\\ErpnetBotServiceProvider::class);\n\n if (class_exists(\\ErpNET\\Migrates\\Providers\\ErpnetMigratesServiceProvider::class))\n $this->app->register(\\ErpNET\\Migrates\\Providers\\ErpnetMigratesServiceProvider::class);\n\n if (class_exists(\\ErpNET\\Models\\Providers\\ErpnetModelsServiceProvider::class))\n $this->app->register(\\ErpNET\\Models\\Providers\\ErpnetModelsServiceProvider::class);\n\n if (class_exists(\\ErpNET\\Delivery\\Providers\\ErpnetDeliveryServiceProvider::class))\n $this->app->register(\\ErpNET\\Delivery\\Providers\\ErpnetDeliveryServiceProvider::class);\n\n if (class_exists(\\ErpNET\\Auth\\Providers\\ErpnetAuthServiceProvider::class))\n $this->app->register(\\ErpNET\\Auth\\Providers\\ErpnetAuthServiceProvider::class);\n\n if (class_exists(\\ErpNET\\WidgetResource\\Providers\\ErpnetWidgetResourceServiceProvider::class))\n $this->app->register(\\ErpNET\\WidgetResource\\Providers\\ErpnetWidgetResourceServiceProvider::class);\n\n if (class_exists(\\ErpNET\\SocialAuth\\Providers\\ErpnetSocialAuthServiceProvider::class))\n $this->app->register(\\ErpNET\\SocialAuth\\Providers\\ErpnetSocialAuthServiceProvider::class);\n\n }", "title": "" }, { "docid": "299189b147d839d078bbddc5cd813f8a", "score": "0.7021252", "text": "public function register()\n {\n $this->app->bind(\n IProduto::class,\n ProdutoRepository::class\n );\n\n $this->app->bind(\n IEstoque::class,\n EstoqueRepository::class\n );\n\n $this->app->bind(\n IEstoqueServices::class,\n EstoqueServices::class\n );\n\n }", "title": "" }, { "docid": "4144c3d789410d254c2b4bbe78dd14f0", "score": "0.70184", "text": "public function register()\n {\n\n $this->setupOauthRedirects();\n\n }", "title": "" }, { "docid": "e8551da6c48babca3c4dc5328885e5a0", "score": "0.70151865", "text": "public function register()\n {\n //\n $this->app->singleton(ArticlesRepository::class, function($app) {\n // ...\n });\n\n $this->bindSearchClient();\n }", "title": "" }, { "docid": "398484ed8053020aad5abe39ca4b882b", "score": "0.7015066", "text": "public function register()\n {\n include __DIR__.'/../routes/api.php';\n include __DIR__.'/../routes/web.php';\n\n $this->app->register(EventServiceProvider::class);\n\n }", "title": "" }, { "docid": "c9f1682d37edb234face96c8cf37a7b0", "score": "0.70137614", "text": "public function register()\n {\n $this->app->bind(App\\Services\\ConvertService::class, function ($app) {\n return new ConvertService();\n });\n }", "title": "" }, { "docid": "91e276d4d27717b0e0a40e1ad82a7f8b", "score": "0.7013136", "text": "public function register()\n {\n $this->app->singleton(CodifierService::class, function () {\n return new CodifierService();\n });\n }", "title": "" }, { "docid": "b4e1d9a1b47a254f633028263c047bca", "score": "0.70125127", "text": "public function register()\n {\n $this->app->bind(FriendshipInterface::class, FriendshipService::class);\n $this->app->bind(PostRepositoryInterface::class, PostRepository::class);\n }", "title": "" }, { "docid": "1783b12bc9f137bd88dac3acea04a4e4", "score": "0.70123285", "text": "public function register()\n {\n $this->registerConfig();\n $this->registerBeamFacade();\n $this->registerActivationTokenRepository();\n }", "title": "" }, { "docid": "6d7abe34cba1e62811b72a8de0bb2983", "score": "0.70104986", "text": "public function register()\n {\n $this->app->bind(\n 'App\\Services\\IUserService',\n 'App\\Services\\Implementation\\UserService'\n );\n $this->app->bind(\n 'App\\Services\\IArticleService',\n 'App\\Services\\Implementation\\ArticleService'\n );\n }", "title": "" }, { "docid": "c702ae56a6d615c2a838f8ca156a46e8", "score": "0.7010262", "text": "public function register()\r\n {\r\n //rutas\r\n $this->registerRoutes();\r\n //controlador\r\n $this->app->make('Reddatasrd\\Conver\\Controllers\\MainController');\r\n\r\n //Resources \r\n $this->registerResources();\r\n //Migrations \r\n $this->registerMigrations();\r\n //clase broma\r\n $this->app->bind('Conver', function($app){\r\n return new Conver();\r\n });\r\n }", "title": "" } ]
966d34a42088a2e7094b901397570d3e
/$this>fmt>get>validar_get ( $_GET['estado'] ); $this>fmt>get>validar_get ( $_GET['id'] );
[ { "docid": "7342592c0737b05470b96dc6dbd79bc6", "score": "0.0", "text": "function activar($id,$estado){\n\n\t\t$sql=\"update modulo set\n\t\t\t\tmod_activar='\".$this->id_estado.\"' where mod_id='\".$this->id_item.\"'\";\n\t\t$this->fmt->query->consulta($sql,__METHOD__);\n\t\t$this->fmt->class_modulo->script_location($this->id_mod,\"busqueda\");\n\t\t//header(\"location: modulos.adm.php?id_mod=\".$this->id_mod);\n\t}", "title": "" } ]
[ { "docid": "136c520512b08481e75f5f4252e6e029", "score": "0.6079022", "text": "function consultar_eventos() {\n if ($this->input(\"estado\")) {\n $estado = intval($_POST[\"estado\"]);\n echo $this->modelo->consultar_eventos($estado);\n }\n }", "title": "" }, { "docid": "44ae1173cab08356db4170ff17725d78", "score": "0.5940835", "text": "public function index($estado)\n {\n\t\t$exito = strpos($_SERVER['REQUEST_URI'], 'exito') !== false;\n\t\t\n\t\tif ($exito)\n\t\t{\n\t\t\t// Paso 2: obtenemos lo datos del id de pago y pagador\n\t\t\t$payment_id = $_GET['paymentId'];\n\t\t\t$payer_id = $_GET['PayerID'];\n\t\t\t$token = $_GET['token'];\n\t\t\t\n\t\t\t// Paso 3: ocupamos la API de paypal para ejecutar pago\n\t\t\t$pago = $this->paypal->ejecutar_pago($payment_id, $payer_id);\n\t\t\t\n\t\t\t// Paso 4: extraemos el sku y el estado para terminar de corroborar\n\t\t\t$estado = $pago->state;\n\t\t\t$id_pago = $pago->transactions[0]->item_list->items[0]->sku;\n\t\t\t\n\t\t\t// Paso 5: extraer id de pago y terminar de corroborar\n\t\t\t$id_pago = explode('_', $id_pago)[1];\n\t\t\t\n\t\t\tif ($estado == 'approved')\n\t\t\t{\n\t\t\t\t$this->Pago_model->efectuar_pago($id_pago, $payment_id, $token, $payer_id);\n\t\t\t\techo var_dump(\"Transaccion aprovada y lista para poner en la DB\");\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "2d9ad7fff63a5f03e68ac07141f78335", "score": "0.59247655", "text": "public function entrega_status_get() {\n $status_entrega = $this->uri->segment(3);\n $seq_entrega = $this->uri->segment(4);\n $romaneio = $this->uri->segment(5);\n\n $this->load->model('model/Entrega_model');\n $entregas = $this->Entrega_model->entrega_status($status_entrega, $seq_entrega, $romaneio);\n\n if($entregas) {\n $this->response($entregas, REST_Controller::HTTP_OK);\n } else {\n $this->response([\n 'status' => FALSE,\n 'message' => 'Nenhum Romaneio foi encontrado.'\n ], REST_Controller::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "34a3bf389b29e09ac3843870b1685b8a", "score": "0.58788425", "text": "public function edit()\n\t\t{\n\t\t\tif(isset($_REQUEST['id'])) {\n\t\t\t\t$id = $_REQUEST['id'];\n\t\t\t\t$data = $this->model->getStatusById($id);\n\t\t\t\n\t\t\t} else {\n\t\t\t\techo \"Error\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fc3662c957d6e5d84fbbec99c5b90e46", "score": "0.58355844", "text": "private function GetValidateGET() {\n // Get parameters\n $this->genre = isset($_GET['genre']) ? $_GET['genre'] : null;\n $this->hits = isset($_GET['hits']) ? $_GET['hits'] : 8;\n $this->page = isset($_GET['page']) ? $_GET['page'] : 1;\n $this->title = isset($_GET['title']) ? $_GET['title'] : null;\n $this->year1 = isset($_GET['year1']) && !empty($_GET['year1']) ? $_GET['year1'] : null;\n $this->year2 = isset($_GET['year2']) && !empty($_GET['year2']) ? $_GET['year2'] : null;\n $this->order = isset($_GET['order']) ? strtolower($_GET['order']) : 'asc';\n $this->orderby = isset($_GET['orderby']) ? strtolower($_GET['orderby']) : 'id';\n\n // Check that incoming parameters are valid\n is_numeric($this->hits) or die('Check: Hits must be numeric.');\n is_numeric($this->page) or die('Check: Page must be numeric.');\n is_numeric($this->year1) || !isset($this->year1) or die('Check: Year must be numeric or not set.');\n is_numeric($this->year2) || !isset($this->year2) or die('Check: Year must be numeric or not set.');\n }", "title": "" }, { "docid": "be3b861618565c14ac843f553e1ca607", "score": "0.5825009", "text": "private function initGET(){\n\tif (isset($_GET['tbLivroAutoresIdlivro'])){\n\t\t$this->tbLivroAutoresIdlivro = $_GET['tbLivroAutoresIdlivro'];\n\t}\n\tif (isset($_GET['tbLivroAutoresIdautor'])){\n\t\t$this->tbLivroAutoresIdautor = $_GET['tbLivroAutoresIdautor'];\n\t}\n\tif (isset($_GET['tbLivroAutoresIdtradutor'])){\n\t\t$this->tbLivroAutoresIdtradutor = $_GET['tbLivroAutoresIdtradutor'];\n\t}\n}", "title": "" }, { "docid": "4b762a86eefca920cec8e0c159a2d3c3", "score": "0.57801133", "text": "public function validar()\n\t{\n\t\t$this->_validarperfil();\n\t\t//=======================\n\t\t$id_solicitacao = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);\n\t\t$user_id_solicitacao = $this->solicitacao->getbyID($id_solicitacao)['users_id'];\n\t\t$dados['solicitacao'] = $this->solicitacao->getbyID($id_solicitacao);\n\t\t$dados['user_solicitante'] = $this->user->getById($user_id_solicitacao)['username'];\n\n\t\t$this->loadTemplate('solicitacao/validar', $dados);\n\t}", "title": "" }, { "docid": "56c072b1579b524ce1ff84aa68794199", "score": "0.5730752", "text": "function acaoGetDeletar() {\n deletaRegistro($_GET[CODIGO]);\n alteraUrl();\n}", "title": "" }, { "docid": "b0b37338d2f1940df2b92eb2c33b137d", "score": "0.5723976", "text": "public function getById($id, $status = 1)\n {\n }", "title": "" }, { "docid": "3140f32077a3a2623bfebc196542a399", "score": "0.57135475", "text": "private function initGET(){\n\tif (isset($_GET['tbCidadeId'])){\n\t\t$this->tbCidadeId = $_GET['tbCidadeId'];\n\t}\n\tif (isset($_GET['tbCidadePais'])){\n\t\t$this->tbCidadePais = $_GET['tbCidadePais'];\n\t}\n\tif (isset($_GET['tbCidadeNome'])){\n\t\t$this->tbCidadeNome = $_GET['tbCidadeNome'];\n\t}\n}", "title": "" }, { "docid": "39836f55cf2104ae0a96e9a6dfca42e8", "score": "0.5663688", "text": "public function ver_get( $id ){\n\n // Comprobar que recibimos un id\n if( !$id ){\n $this->response( null, 400 );\n }\n\n // Devolver la revista correspondiente al id\n $revista = $this->revistas_model->get( $id );\n\n // Comprobar que la respuesta no sea null\n if( !is_null($revista) ){\n $this->response( array( $revista ), 200 );\n } else{\n $this->response( array( 'error' => \"revista no encontrado...\"), 404 );\n }\n\n }", "title": "" }, { "docid": "bf22de1260374b1eccf379c005f9f6e5", "score": "0.56051266", "text": "function getid(){\n $id = $_GET['id'];\n return $id;\n}", "title": "" }, { "docid": "1ba8b812dd815b999e05933698aeaadb", "score": "0.5589591", "text": "private static function validarParametrosUnidad($id_unidad = null, $nombre = null, $descripcion = null, $es_entero = null, $activa = null)\n {\n //valida que la unidad exista y que este activa\n /*if (!is_null($id_unidad)) {\n $unidad = UnidadDAO::getByPK($id_unidad);\n if (is_null($unidad))\n return \"La unidad con id \" . $id_unidad . \" no existe\";\n \n if (!$unidad->getActiva())\n return \"La unidad esta desactivada\";\n } //!is_null($id_unidad)*/\n \n //valida que el nombre este en el rango y que no se repita\n if (!is_null($nombre)) {\n $e = self::validarString($nombre, 100, \"nombre\");\n if (is_string($e))\n return $e;\n if (!is_null($id_unidad)) {\n $unidades = array_diff(UnidadDAO::search(new Unidad(array(\n \"nombre\" => trim($nombre)\n ))), array(\n UnidadDAO::getByPK($id_unidad)\n ));\n } //!is_null($id_unidad)\n else {\n $unidades = UnidadDAO::search(new Unidad(array(\n \"nombre\" => trim($nombre)\n )));\n }\n foreach ($unidades as $unidad) {\n if ($unidad->getActiva())\n return \"El nombre (\" . $nombre . \") ya esta siendo usado por la unidad \" . $unidad->getIdUnidad();\n } //$unidades as $unidad\n } //!is_null($nombre)\n \n //valida que la descripcion este en rango\n if (!is_null($descripcion)) {\n $e = self::validarString($descripcion, 255, \"descripcion\");\n if (is_string($e))\n return $e;\n } //!is_null($descripcion)\n \n //valida el boleano es_entero\n if (!is_null($es_entero)) {\n $e = self::validarNumero($es_entero, 1, \"es entero\");\n if (is_string($e))\n return $e;\n } //!is_null($es_entero)\n \n //valida el boleano activa\n if (!is_null($activa)) {\n $e = self::validarNumero($activa, 1, \"activa\");\n if (is_string($e))\n return $e;\n } //!is_null($activa)\n \n //No se encontro error, regresa true\n return true;\n }", "title": "" }, { "docid": "d99a675a35decb466fb3303f6d32d763", "score": "0.5583649", "text": "public function show() {\r\n // si no recibimos el id redireccionamos a la página de error\r\n if (!isset($_GET['id'])) {\r\n return call('pages', 'error');\r\n }\r\n // mediante el id mostraremos la cita que toca\r\n $citas = Cita::find($_GET['id']);\r\n require_once('views/citas/show.php');\r\n }", "title": "" }, { "docid": "d8b9269c29c343f49a59ebc7842e586d", "score": "0.5565265", "text": "function estudiante(){\n $data=NULL;\n if(isset($_REQUEST['id'])){\n $data=$this->model_e->get_id($_REQUEST['id']); \n }\n $query=$this->model_e->get();\n include_once('vistas/header.php');\n include_once('vistas/estudiante.php');\n include_once('vistas/footer.php');\n }", "title": "" }, { "docid": "7fe1cdea6689cf695c3ccfb77d20cce5", "score": "0.5558063", "text": "public function index_get($id = 0)\n {\n if(!empty($id)){\n $data = $this->Abonnement_model->get_abonnement_by_id($id)->row_array();\n }else{\n $data = $this->Abonnement_model->get_all_abonnement()->result_array();\n }\n $this->response($data, REST_Controller::HTTP_OK);\n }", "title": "" }, { "docid": "aeab577f18e9807f810422feb449a311", "score": "0.5549151", "text": "public function get($id){ }", "title": "" }, { "docid": "bfa02fc06c918b1fb2f7a05361b723c5", "score": "0.5525521", "text": "function index_get($id=null){\n\t\t$response['SUCCESS'] = array('status' => TRUE, 'message' => 'success get fasilitas' , 'data' => null );\n\t\t\n\t\t#Set response API if Not Found\n\t\t$response['NOT_FOUND']=array('status' => FALSE, 'message' => 'no fasilitas were found' , 'data' => null );\n \n\t\t#\n\t\tif (!empty($this->get('ID_FASILITAS')))\n\t\t\t$id=$this->get('ID_FASILITAS');\n \n\n\t\tif ($id==null) {\n\t\t\t#Call methode get_all from m_fasilitas model\n\t\t\t$fasilitass=$this->m_fasilitas->get_all();\n\t\t\n\t\t}\n\n\n\t\tif ($id!=null) {\n\t\t\t\n\t\t\t#Check if id <= 0\n\t\t\tif ($id<=0) {\n\t\t\t\t$this->response($response['NOT_FOUND'], REST_Controller::HTTP_BAD_REQUEST); // BAD_REQUEST (400) being the HTTP response code\n\t\t\t}\n\n\t\t\t#Call methode get_by_id from m_fasilitas model\n\t\t\t$fasilitass=$this->m_fasilitas->get_by_id($id);\n\t\t}\n\n\n # Check if the fasilitass data store contains fasilitass\n\t\tif ($fasilitass) {\n\t\t\t$response['SUCCESS']['data']=$fasilitass;\n\n\t\t\t#if found fasilitass\n\t\t\t$this->response($response['SUCCESS'] , REST_Controller::HTTP_OK);\n\n\t\t}else{\n\n\t #if Not found fasilitass\n\t $this->response($response['NOT_FOUND'], REST_Controller::HTTP_NOT_FOUND); # NOT_FOUND (404) being the HTTP response code\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "613bfa0fcef0eed38ab1059fef54e8e1", "score": "0.5524908", "text": "public function index_get($id = 0)\r\n\t{\r\n if(!empty($id)){\r\n $data = $this->dbO->get_where(\"DESCUENTOS\", ['IDDESCUENTO' => $id])->row_array();\r\n }else{\r\n $data = $this->dbO->get(\"DESCUENTOS\")->result();\r\n }\r\n \r\n $this->response($data, REST_Controller::HTTP_OK);\r\n\t}", "title": "" }, { "docid": "16f2153e175233ce5edf47cbe0506dc5", "score": "0.55181634", "text": "public static function validar(){\r\n\r\n if(isset($_GET[\"nombre\"]) && isset($_GET[\"password\"])){\r\n $nombre = $_GET[\"nombre\"];\r\n $password = $_GET[\"password\"];\r\n \r\n\r\n $db = Database::getInstance();\r\n\r\n $db->doQuery(\"SELECT * FROM usuario WHERE nombre=:nombre AND password=:password;\",\r\n [\":nombre\" => $nombre,\r\n \":password\" => $password]);\r\n \r\n $resultado = $db->getRow();\r\n \r\n \r\n if ($resultado!== false) {\r\n\r\n session_start();\r\n //Usuario normal de la aplicacion\r\n if($nombre !== \"admin\"){\r\n $_SESSION[\"nombre\"]=$nombre;\r\n header(\"Location: controlador.php?mod=producto&ope=principal\");\r\n \r\n }else{\r\n //Administrador de la aplicacion\r\n \r\n $_SESSION[\"nombre\"]=$nombre;\r\n header(\"Location: controlador.php?mod=producto&ope=index\");\r\n }\r\n \r\n }else{\r\n //Redireccion al formulario de logue si no concuerda los datos con la bd\r\n require_once \"vista/index.login.php\";\r\n \r\n }\r\n } else{\r\n require_once \"vista/index.login.php\";\r\n }\r\n }", "title": "" }, { "docid": "54d0b76dfa7aaa8d13488ea69163cce3", "score": "0.5512383", "text": "function kontak_get(){\n $id = $this->get('id');\n if($id == ''){\n $kontak = $this->db2->get('t_outlet')->result();\n }else{\n $this->db2->where('id', $id);\n $kontak = $this->db2->get('t_outlet')->result();\n }\n $this->response($kontak, 200);\n }", "title": "" }, { "docid": "ac7d750261d0d22bdb444e37f814e77a", "score": "0.5479969", "text": "public function processGet($get) {\r\n\t\t//a lot of things. So double check everything.\r\n\t\ttry {\r\n\t\t\t$this->region = new Region();\r\n\t\t\t$this->region->load(intval($get['id']));\r\n\t\t} catch (Exception $e) {\r\n\t\t\tDispatcher::notFound();\r\n\t\t}\r\n\t\t\r\n\t\tif(isset($get['confirm'])) {\r\n\t\t\ttry {\r\n\t\t\t\t$this->region->delete();\r\n\t\t\t\tDispatcher::header('/regions');\r\n\t\t\t} catch (Exception $e) {\r\n\t\t\t\t$_SESSION['error'] = 'Kan geselecteerde regio niet verwijderen. Er is een ander region of partij daarvan afhankelijk is!';\r\n\t\t\t\tDispatcher::header('/regions/?region='.$get['id']);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "652c476d746831b8661c2863139f9030", "score": "0.54734296", "text": "public function actionGetasistencias(){\n\t\t//$data = json_decode($_POST['Data']);\n\t\t$model = new Calculo;\n\t\t\n\t\tif ( isset ($_REQUEST['fechaini']) and isset ($_REQUEST['fechafin']) ){\n\t\t\t$model->fechaini = $_REQUEST['fechaini'];\n\t\t\t$model->fechafin = $_REQUEST['fechafin'];\n\t\t}else{\n\t\t\t\n\t\t$model->fechaini = '2015-01-01';\n\t\t$model->fechafin = date('Y-m-d');\n\t\t\t\n\t\t}\n\n\t\t// $id =$model->getOperadoresMaquinado();\n\t\t$id =$model->getAsistencias();\n\t\t\n\t\treturn $this->goBack();\n\t\t\n\t}", "title": "" }, { "docid": "7c42c86d10c02b7fa6798a911129b4cd", "score": "0.5465652", "text": "public function obtenerRegistro_get($id){\n\t\t\tparent::logueado();\n\t\t\t$this->response($this->ContactoModel->obtenerRegistro($id), 200); \n }", "title": "" }, { "docid": "e0bf7a795c0205184bc9a6bc1b668747", "score": "0.5458745", "text": "public function show( $id )//ok\n {\n $this->autorizacao($this->strAutorizacaoModulo.'VISUALIZAR');\n\n try{\n\n //verifica se cargo existe, se nao existe retorna uma exception\n $cargo = $this->repository->find($id, [\n 'id', \n 'departamento_id', \n 'nome', \n 'descricao', \n 'funcionario_id',\n 'usuario_inclusao_id', \n 'usuario_alteracao_id', \n 'updated_at', \n 'created_at'\n ])->makeHidden( [\n 'departamento_id', \n 'funcionario_id',\n 'usuario_inclusao_id',\n 'usuario_alteracao_id'\n ]); \n \n $departamento = $this->departamentosRepository->find($cargo->departamento_id);\n\n $usuarioInclusao = $this->usuarioRepository->scopeQuery(function($query){\n return $query->first();\n })->findWhere([ ['id', '=', $cargo->usuario_inclusao_id] ], ['nome']);\n\n $usuarioAlteracao = $this->usuarioRepository->scopeQuery(function($query){\n return $query->first(); \n })->findWhere([ ['id', '=', $cargo->usuario_alteracao_id] ], ['nome']);\n\n $cargo->__set(\"departamento\", $departamento->nome); \n\n $usuario_inclusao = '';\n if( isset( $usuarioInclusao[0]->nome ) ){ \n $usuario_inclusao = ' ('.$usuarioInclusao[0]->nome.')'; \n }\n $data_inclusao = date_format(date_create($cargo->created_at), 'd/m/Y H:i:s') . $usuario_inclusao;\n\n $usuario_alteracao = '';\n if( isset( $usuarioAlteracao[0]->nome ) ){ \n $usuario_alteracao = ' ('.$usuarioAlteracao[0]->nome.')';\n }\n $data_alteracao = date_format(date_create($cargo->updated_at), 'd/m/Y H:i:s') . $usuario_alteracao;\n\n if(!is_null( $cargo->funcionario_id )) {\n $funcionario = $this->funcionariosRepository->find($cargo->funcionario_id, ['nome']);\n $cargo->__set(\"funcionario\", $funcionario->nome);\n } else {\n $cargo->__set(\"funcionario\", '-');\n }\n\n }\n catch(\\Exception $e)\n {\n return response()->view( 'erros.naoEncontrado', [\n 'titulo' => $this->entidade, \n 'descricao' => $this->errors->descricaoVisualizar( $this->entidade ), \n 'mensagem' => $this->errors->mensagem( $this->entidade, $e->getMessage() ), \n 'migalhas' => $this->migalhaDePao()\n ], 404 );\n }\n\n return view('rh.cargo.visualizar', \n [ \n 'id' => $cargo->id,\n 'nome' => $cargo->nome, \n 'departamento' => $cargo->departamento, \n 'funcionario' => $cargo->funcionario, \n 'descricao' => $cargo->descricao, \n 'data_inclusao' => $data_inclusao, \n 'data_alteracao' => $data_alteracao, \n 'migalhas' => $this->migalhaDePao() \n ]); \n }", "title": "" }, { "docid": "9efca6efa6a94cf685b2da25a9ffca32", "score": "0.54489106", "text": "public function estado(){\n Utils::isAdmin();\n \n if(isset($_POST['pedido_id']) && isset($_POST['estado'])){\n //recoger los datos del formulario\n $id=$_POST['pedido_id'];\n $estado=$_POST['estado'];\n //hacer un update\n $pedido=new Pedido();\n $pedido->setId($id);\n $pedido->setEstado($estado);\n \n //ejecutamos el metodo\n $pedido->edit();\n header(\"Location:\".base_url.\"pedido/detalle&id=\".$id);\n }else{\n header(\"Location:\".base_url);\n }\n }", "title": "" }, { "docid": "db3a075b986ae98117c05d13f007ab91", "score": "0.5439731", "text": "function nuevoestado($estado)\n{\n switch($estado)\n {\n case \"pago\":\n return(\"pago pendiente\");\n break;\n case \"cursos\":\n return(\"pago completado\");\n break;\n default:\n return($estado);\n break;\n }\n}", "title": "" }, { "docid": "fe018c95efb23477446ea80b8d8b06b2", "score": "0.5434746", "text": "public function edit()\n {\n if (isset($_REQUEST['id'])) {\n $id = $_REQUEST['id'];\n $data = $this->model->getStatusById($id);\n $type_statuses = $this->type_status->getAll();\n require 'views/layout.php';\n require 'views/status/edit.php'; \n\n\n }else{\n echo \"Error :(\";\n }\n \n }", "title": "" }, { "docid": "dce40278e86f672ffba0f04738ece06b", "score": "0.54165035", "text": "public function actionInfo_estu($id_estudiante)\n {\n $model = new BusquedaForm();\n $rescate_id_estu = $model->datos_estu_proy($id_estudiante);\n //$rescate_id_estu = $model->rescate_datos_estu($id_estudiante);\n return $this->render('info_estu',['rescate_id_estu'=>$rescate_id_estu, 'model'=>$model]);\n\n }", "title": "" }, { "docid": "92488c58cfcbc4165da8c836cd801382", "score": "0.54123896", "text": "public function romaneio_status_get() {\n $status = $this->uri->segment(3);\n $romaneio = $this->uri->segment(4);\n $motorista = $this->uri->segment(5);\n\n $this->load->model('model/Romaneio_model');\n $romaneios = $this->Romaneio_model->romaneio_status($status, $romaneio, $motorista);\n\n if($romaneios) {\n $this->load->model('model/Motorista_model');\n $this->Motorista_model->disponibilidade(TRUE, $motorista);\n $this->response($romaneios, REST_Controller::HTTP_OK);\n } else {\n $this->response([\n 'status' => FALSE,\n 'message' => 'Nenhum Romaneio foi encontrado.'\n ], REST_Controller::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "3684fbe36eb7edd0f25eccd6da1134a1", "score": "0.5407162", "text": "public function get($id){\r\n try{\r\n $stm = $this->conn->prepare(\"SELECT * FROM establiment WHERE id_establiment=:id_establiment\");\r\n $stm->bindValue(':id_establiment', $id);\r\n $stm->execute();\r\n $tupla=$stm->fetch();\r\n\r\n return $tupla;\r\n\r\n }catch(Exception $e){\r\n echo $e->getMessage();\r\n return \"No ha pogut tornar les dades solicitades\";\r\n }\r\n }", "title": "" }, { "docid": "82b49e81e8eeb0444418c993bd2a9568", "score": "0.53971666", "text": "public function index_get($id = 0)\n\t{\n if(!empty($id)){\n\t\t\n $data = $this->db->get_where(\"filter.mi_filter\", array('id' => $id))->row_array();\n }\n\t\telse{\n\t\t\n $data = $this->db->get_where(\"filter.mi_filter\", array('deleted' => 'false'))->result();\n }\n \n $this->response($data, REST_Controller::HTTP_OK);\n\t}", "title": "" }, { "docid": "49049bde70894af96e5e3122601d05fa", "score": "0.539569", "text": "public function index_get($id = null)\n\t{\n\t\t$type = false;\n\t\t\n\n\t\tif ($this->get('type')) {\n\t\t\t$type = $this->get('type');\n\t\t}\n\t\t\n\t\tif ($this->get('id')) {\n\t\t\t$data = $this->mrg->get($this->get('id'));\n\t\t} elseif ($type) {\n\t\t\t$data = $this->mrg->get_all($type);\n\t\t} else {\n\t\t\t$data = false;\n\t\t}\n\t\t\n\t\tif ($data) {\n\t\t\t$res = [\n\t\t\t\t'status' => 200,\n\t\t\t\t'message' => 'Berhasil mendapatkan data',\n\t\t\t\t'data' => $data\n\t\t\t];\n\t\t} else {\n\t\t\t$res = [\n\t\t\t\t'status' => 404,\n\t\t\t\t'message' => 'Data tidak ditemukan',\n\t\t\t\t'data' => []\n\t\t\t];\n\t\t}\n\t\t\n\t\t$this->response($res, $res['status']);\n\t}", "title": "" }, { "docid": "9d4807c205eed5733fbd35d0d507fc84", "score": "0.5395474", "text": "public function mostrar($id_salida)\n {\n $sql = \"SELECT * from tbl_salida WHERE id_salida='$id_salida'\";\n return ejecutarConsultaSimpleFila($sql); \n }", "title": "" }, { "docid": "8080903986554045aed7c0328e880a77", "score": "0.5393033", "text": "function mostrar_contacto(){\n\t\tif (isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$sql=\"SELECT * FROM contacto WHERE id_con='$id'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t$resultado = mysql_fetch_array($consulta);\n\t\t\t$this->id=$id;\n\t\t\t$this->fecha=$this->convertir_fecha($resultado['fecha_con']);\n\t\t\t$this->hora=$resultado['hora_con'];\n\t\t\t$this->nombre=$resultado['nombre_con'];\n\t\t\t$this->apellido=$resultado['apellido_con'];\n\t\t\t$this->correo=$resultado['correo_con'];\n\t\t\t$this->telefono=$resultado['telefono_con'];\n\t\t\t$this->comentario=$resultado['comentario_con'];\n\t\t\t$this->estado=$resultado['estado_con'];\n\t\t\t$this->operador=$resultado['operador_con'];\n\t\t} \n\t}", "title": "" }, { "docid": "6685d6aa336c8ce015d7779975d3af4c", "score": "0.5392589", "text": "function getHalamanStatis(){\n \ttry {\n\t\t$sql = \"SELECT * FROM halamanstatis WHERE id_halaman = :id\";\n\t\t$get = $_GET['id'];\n\t\t$stmt = $this->pdo->prepare($sql);\n\t\t$stmt->bindParam(\":id\",$get);\n\t\t$stmt->execute();\n\t\t\n\t\t$result = $stmt->fetch();\n\t\t$this->tpl->assign('id_halaman_statis',$result[0]);\n\t\t$this->tpl->assign('judul_halaman_statis',$result[1]);\n\t\t$this->tpl->assign('judul_halaman_seo_statis',$result[2]);\n\t\t$this->tpl->assign('isi_halaman_statis',$result[3]);\n\t\t$this->tpl->assign('gambar_halaman_statis',$result[5]);\n\t\t\n\t}\n\tcatch(PDOException $e)\n\t{\n\t\t\techo\"Error\".$e->getmessage();\n\t}\n }", "title": "" }, { "docid": "90ccacd95bef5dd3510f284991d09886", "score": "0.53915244", "text": "public function get($id,$name)\n {\n\t\techo \"get\";\t\t\n }", "title": "" }, { "docid": "b81553b5e7da6252cbeba28888477558", "score": "0.5365137", "text": "public function get_proveedor_por_id_estado($id_proveedor,$estado){\n\n $conectar= parent::conexion();\n\n //declaramos que el estado esté activo, igual a 1\n\n $estado=1;\n\n\n $sql=\"select * from proveedor where id_proveedor=? and estado=?\";\n\n $sql=$conectar->prepare($sql);\n\n $sql->bindValue(1, $id_proveedor);\n $sql->bindValue(2, $estado);\n $sql->execute();\n\n return $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n\n\n }", "title": "" }, { "docid": "3cd1e0d4a55731bacfc408669bec0be8", "score": "0.5358157", "text": "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "title": "" }, { "docid": "3cd1e0d4a55731bacfc408669bec0be8", "score": "0.5358157", "text": "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "title": "" }, { "docid": "f49ee5bbb527f8aad6aae8286d5685bb", "score": "0.5357401", "text": "public function ver_editar($id){\n\t\t\t// utilizar la variable $id en la consulta SQL\n\t\t\t// $sql = \"SELECT ID,IDSERVICIO,CODIGO,DESCRIPCION_ITEM,UNIDAD_MEDIDA,CANTIDAD,COSTO,ESTADO FROM tabla_servicios where idservicio=$id\";\n\n\t\t\t/*$sql=\"SELECT ts.ID as ID,ts.IDSERVICIO as IDSERVICIO,@idc:=ts.CODIGO as CODIGO, IF(ts.TIPO_ITEM='ARTICULO',(SELECT a.NOM_ARTICULO from articulos a where a.CODIGO =@idc ),(SELECT tps.NOMBRE_TIPO from tipo_servicio tps where tps.COD_TIPO =@idc ))AS DESCRIPCION_ITEM,ts.UNIDAD_MEDIDA as UNIDAD_MEDIDA, ts.CANTIDAD as CANTIDAD,ts.COSTO as COSTO,ts.ESTADO FROM tabla_servicios ts where idservicio=$id\";*/\n\n\t\t\t$sql=\"SELECT ts.ID as ID,ts.IDSERVICIO as IDSERVICIO,@idc:=ts.CODIGO as CODIGO, IF(ts.TIPO_ITEM='ARTICULO',(SELECT a.NOM_ARTICULO from articulos a where a.CODIGO =@idc ),(SELECT tps.NOMBRE_TIPO from tipo_servicio tps where tps.COD_TIPO =@idc ))AS DESCRIPCION_ITEM,ts.UNIDAD_MEDIDA as UNIDAD_MEDIDA, ts.CANTIDAD as CANTIDAD,ts.COSTO as COSTO,ts.ESTADO,cli.NOMBRE_CLIENTE,cli.TIPO_DOC,cli.DIRECCION,cli.CORREO,cli.NUM_DOC FROM tabla_servicios ts join servicio s on ts.IDSERVICIO=s.IDSERVICIO join clientes cli on s.IDCLIENTE=cli.IDCLIENTE where ts.idservicio=$id\";\n\t\t\t foreach ($this->con->query($sql) as $filas) {\n\t\t\t\t\t$this->servicios[] = $filas;\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\treturn $this->servicios;\n\t\t\n\t\t\t\t\n\t\t}", "title": "" }, { "docid": "7a445737d009be49904d116f7c0c6209", "score": "0.53489214", "text": "function trae_nombre_estado($id){\n\t$sql = \"select * from TB_ESTADO where ES_CODIGO = '$id'\";\n\t$rs = mysql_query($sql);\n\twhile ($fila = mysql_fetch_assoc($rs)) {\n\t $nombre = $fila['ES_DESCRIP'];\n\t}\n\treturn $nombre;\n}", "title": "" }, { "docid": "75f60fd680b327f4f40e193e5098e588", "score": "0.53466094", "text": "function ObtenerEstadoCopia($id_doc,$tipo){\r\n\t\t// tipo = 2 ; si es de atencion de documentos\r\n\t\t\r\n\t\tif($tipo == 1){\r\n\t\t\t$area = new Area($_SESSION['session'][5]);\r\n\t\t\t$n_area = $area->getNombre();\r\n\t\t\t\r\n\t\t\t$sql = \"SELECT\r\n\t\t\t\t\tm.estado\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\tmovimientos AS m\r\n\t\t\t\t\tInner Join documentos_reporte AS dr ON dr.id_documento_reporte = m.id_documento_reporte\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\tdr.id_documento = '\".$id_doc.\"' AND\r\n\t\t\t\t\tm.categoria = '2' AND\r\n\t\t\t\t\tm.destino = '\".$n_area.\"'\r\n\t\t\t\t\tORDER BY\r\n\t\t\t\t\tm.id_movimiento DESC\r\n\t\t\t\t\tLIMIT 0, 1\";\r\n\t\t}else{\r\n\t\t\t$usuario = new Usuario($_SESSION['session'][0]);\r\n\t\t\t$nusuario = $usuario->GetNombreCompleto();\r\n\t\t\t$sql = \"SELECT\r\n\t\t\t\t\tm.estado\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\tmovimientos AS m\r\n\t\t\t\t\tInner Join documentos_reporte AS dr ON dr.id_documento_reporte = m.id_documento_reporte\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\tdr.id_documento = '\".$id_doc.\"' AND\r\n\t\t\t\t\tm.categoria = '2' AND\r\n\t\t\t\t\tm.destino = '\".$nusuario.\"'\r\n\t\t\t\t\tORDER BY\r\n\t\t\t\t\tm.id_movimiento DESC\r\n\t\t\t\t\tLIMIT 0, 1\";\r\n\t\t}\r\n\t\t\r\n\t\t$query = new Consulta($sql);\r\n\t\t$row = $query->VerRegistro();\r\n\t\t$estado = $row[\"estado\"];\r\n\t\t\r\n\t\t$sql_est = \"SELECT\r\n\t\t\t\t\te.abrev_nombre_estado AS abreviatura\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\testados AS e\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\te.nombre_estado = '$estado'\";\r\n\t\t\t\t\t\r\n\t\t$query_est = new Consulta($sql_est);\r\n\t\t$row_est = $query_est->VerRegistro();\r\n\t\t\r\n\t\treturn $row_est[\"abreviatura\"];\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a9b22bdf8d376e3491d329d29270cea7", "score": "0.53381896", "text": "public static function buscar($id, $tipo){ //\n $s =\\App\\sucursal::find($id);\n switch ($tipo) {\n case 'nombre':\n return $s['nombre'];\n break;\n\n case 'direccion':\n return $s['direccion'];\n break;\n \n default:\n return \"sin datos\";\n break;\n }\n return $t;\n }", "title": "" }, { "docid": "c26ea1f1b092a567c9f7b000236d9588", "score": "0.5324119", "text": "function prin_err(){\n if(isset($_GET['code_retour'])){\n echo $_GET['code_retour'];\n }\n}", "title": "" }, { "docid": "01ef1bdabf980935130c0a2323c73770", "score": "0.53143543", "text": "function iniciarFiltro(&$filtro) \n {\n \n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n\n $filtro->nombres[] = 'Estado';\n $filtro->valores[] = array ('select','estado' ,$filtro->filtro('estado'),\n array('' ,'AC' ,'NC' ,'IN' ,'DE' ),\n array('Todos' ,'Confirmados','No Confirmado','Desctivado' ,'Eliminado' ));\n $filtro->nombres[] = 'Nombre';\n $filtro->valores[] = array ('input' ,'nombre',$filtro->filtro('nombre'));\n $filtro->nombres[] = 'Apellidos';\n $filtro->valores[] = array ('input' ,'apellidos',$filtro->filtro('apellidos'));\n $filtro->nombres[] = 'Login';\n $filtro->valores[] = array ('input' ,'login',$filtro->filtro('login'));\n $filtro->nombres[] = 'Email';\n $filtro->valores[] = array ('input' ,'email',$filtro->filtro('email'));\n }", "title": "" }, { "docid": "9ed883e1143cbdf6718f67f1633993f8", "score": "0.53116375", "text": "function empleados_get()\n {\n // return data = echo format_response($data);\n }", "title": "" }, { "docid": "3c12ea87b4b7426e69aea3399f8c6bfd", "score": "0.5302447", "text": "function prepareGet()\r\n\t{\r\n\t\tglobal $rlDb, $geo_format;\r\n\r\n\t\tif( !$_GET['page'] && !isset($_GET['reset_location']))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif( strlen($_GET['page']) == 2 )\r\n\t\t{\r\n\t\t\t$lang = $_GET['page'];\r\n\r\n\t\t\t$tmp = explode(\"/\", $_GET['rlVareables']);\r\n\t\t\t$page = array_splice($tmp, 0, 1);\r\n\r\n\t\t\tif( $rlDb -> getOne(\"Key\", \"`Path` = '\".$page[0].\"'\", 'data_formats') )\r\n\t\t\t{\r\n\t\t\t\t$_GET['page'] = $page[0];\r\n\t\t\t\t$_GET['rlVareables'] = implode(\"/\", $tmp);\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif( $_GET['page'] && $location[0] = $rlDb -> getOne(\"Key\", \"`Path` = '\".$_GET['page'].\"'\", 'data_formats') )\r\n\t\t{\r\n\t\t\t$page_old = $_GET['page'];\r\n\t\t\t$tmp_vars = $tmp_vars_old = explode(\"/\", trim( $_GET['rlVareables'], \"/\" ));\r\n\t\t\t$tmp_vars = $this -> prepareGetVars( $geo_format, $_GET['page'], $tmp_vars, 1, $location );\r\n\r\n\t\t\t$tmp_vars = array_values( $tmp_vars );\r\n\r\n\t\t\tif( $lang )\r\n\t\t\t{\r\n\t\t\t\t$_GET['page'] = $lang;\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\t$_GET['page'] = $tmp_vars[0];\r\n\t\t\t\tunset($tmp_vars[0]);\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$loc_url = $page_old . \"/\". implode(\"/\", array_diff( $tmp_vars_old, array_merge( array(0 => $_GET['page']), $tmp_vars ) ));\r\n\r\n\t\t\t$_GET['rlVareables'] = '';\r\n\t\t\tforeach( $tmp_vars as $key => $value )\r\n\t\t\t{\r\n\t\t\t\t$_GET['rlVareables'] .= $value.\"/\";\r\n\t\t\t}\r\n\t\r\n\t\t\t$_GET['rlVareables'] = trim( $_GET['rlVareables'], \"/\");\r\n\t\t}elseif( $lang )\r\n\t\t{\r\n\t\t\t$_GET['page'] = $lang;\r\n\t\t}\r\n\r\n\t\t$lfields = $rlDb -> fetch( array(\"Key\"), array('Condition' => $geo_format, 'Status' => 'active'), \"ORDER BY `Key`\", null, 'listing_fields' );\r\n\t\tforeach( $lfields as $key => $field )\r\n\t\t{\r\n\t\t\t$out['lfields_list'][] = $field['Key'];\r\n\r\n\t\t\tpreg_match('/(.*)(_level([0-9]))/si', $field['Key'], $match);\r\n\t\t\t\r\n\t\t\tif( !$match[3] && $location[0])\r\n\t\t\t{\r\n\t\t\t\t$out['lfields'][$field['Key']] = $location[0];\r\n\t\t\t}elseif( $location[$match[3]] )\r\n\t\t \t{\r\n\t\t\t\t$out['lfields'][$field['Key']] = $location[$match[3]];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$afields = $rlDb -> fetch( array(\"Key\"), array('Condition' => $geo_format, 'Status' => 'active'), \"ORDER BY `Key`\", null, 'account_fields' );\r\n\t\tforeach( $afields as $key => $field )\r\n\t\t{\r\n\t\t\tpreg_match('/(.*)(_level([0-9]))/si', $field['Key'], $match);\r\n\r\n\t\t\tif( !$match[3] && $location[0])\r\n\t\t\t{\r\n\t\t\t\t$out['afields'][$field['Key']] = $location[0];\r\n\t\t\t}elseif( $location[$match[3]] )\r\n\t\t\t{\r\n\t\t\t\t$out['afields'][$field['Key']] = $location[$match[3]];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tforeach( $rlDb -> fetch(array(\"Path\"), array(\"Geo_exclude\" => '1'), null, null, 'pages') as $page )\r\n\t\t{\r\n\t\t\t$out['clean_pages'][] = $page['Path'];\r\n\t\t}\r\n\r\n\t\t$out['order_type'] = $rlDb -> getOne(\"Order_type\", \"`Key` = '\".$geo_format.\"'\", \"data_formats\");\r\n\t\t$out['location'] = $location[0] ? $location : $_SESSION['geo_location'];\r\n\t\t$out['geo_url'] = trim($loc_url, \"/\");\r\n\r\n\t\tif( isset($_GET['reset_location']) )\r\n\t\t{\r\n\t\t\tunset($_SESSION['geo_url']);\r\n\t\t\tunset($_SESSION['geo_location']);\r\n\t\t\t$out['geo_url'] = '';\r\n\t\t\t$out['location'] = '';\r\n\t\t}\r\n\t\telseif( !$out['geo_url'] && !isset($_GET['reset_location']))\r\n\t\t{\r\n\t\t\t$out['geo_url'] = $_SESSION['geo_url'];\r\n\t\t}else\r\n\t\t{\r\n\t\t\t$_SESSION['geo_url'] = $out['geo_url'];\r\n\t\t\t$_SESSION['geo_location'] = $out['location'];\r\n\t\t}\r\n\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "9bca25c03d16834276448a0159b650ac", "score": "0.5295833", "text": "public function Financeiros_VencimentoEdit($id=false){\r\n if($id===false){\r\n throw new \\Exception('Financeiro não especificado: '.$id,404);\r\n }\r\n $where = Array('id'=> $id);\r\n $editar = $this->_Modelo->db->Sql_Select('Financeiro_Pagamento_Interno',$where);\r\n if($editar===false){\r\n throw new \\Exception('Financeiro não existe: '.$id,404);\r\n }\r\n // Carrega Config\r\n $titulo1 = 'Mudar Vencimento (#'.$id.')';\r\n $titulo2 = $titulo1;\r\n $formid = 'form_Sistema_AdminC_Financeiros_VencimentoEdit';\r\n $formbt = $titulo1;\r\n $formlink = 'Financeiro/Pagamento/Financeiros_VencimentoEdit2/'.$id;\r\n $campos = Financeiro_Pagamento_Interno_DAO::Get_Colunas();\r\n // Retira Outros\r\n self::DAO_Campos_Retira($campos, 'dt_vencimento',1);\r\n // Puxa controler\r\n \\Framework\\App\\Controle::Gerador_Formulario_Janela($titulo1,$titulo2,$formlink,$formid,$formbt,$campos,$editar,'Popup');\r\n }", "title": "" }, { "docid": "01877d6ca82657ee4688f7ee11540d76", "score": "0.5293708", "text": "public function show($id)\n {\n $comprobante_pago = Comprobante_pago::find($id);\n if($comprobante_pago != NULL){\n return $comprobante_pago;\n }\n else{\n return \"Comprobante de pago no existe.\";\n }\n }", "title": "" }, { "docid": "fb5bcd7ccd8aefe06be15b625a40c06e", "score": "0.52921575", "text": "public function get($id)\n {\n }", "title": "" }, { "docid": "6e0d9968e6ac8b5bcb2db15ec906f252", "score": "0.52897245", "text": "public function validar_action()\n\t{\n\t\t$this->_validarperfil();\n\t\t//=======================\n\t\t$email_usuario = filter_input(INPUT_POST, 'email_usuario');\n\t\t$solicitacao_id = filter_input(INPUT_POST, 'solicitacao_id');\n\t\t$usuario_aprovador = $_SESSION['global_user_info']['id'];\n\t\t$select_status = intval(filter_input(INPUT_POST, 'select_status'));\n\n\t\t$motivo = filter_input(INPUT_POST, 'motivo', FILTER_SANITIZE_STRING);\n\n\t\t// debugar\n\t\t// $teste = compact('email_usuario', 'solicitacao_id', 'usuario_aprovador', 'select_status', 'motivo');\n\t\t// print_r($teste);\n\t\t// exit;\n\n\t\t//montar o email para ser enviado\n\t\t$assunto_email = '[IDEMA] Alteração no Status da sua solicitação #' . $solicitacao_id;\n\t\tif ($select_status === 1) {\n\t\t\t$nome_status = 'APROVADO';\n\t\t} elseif ($select_status === 2) {\n\t\t\t$nome_status = 'REJEITADA';\n\t\t} else {\n\t\t\t$nome_status = 'STATUS INVALIDO';\n\t\t}\n\n\t\t$corpo_email = \"Sua solicitação teve o status mudado para :{$nome_status}</p>\n\t\t<p>Motivo:{$motivo}</p> \n\t\t<a href='http://linkparaacessardocumentos.com.br/?id={$solicitacao_id}'>Acessar Documentos</a>\";\n\t\tif ($this->servicemail->enviarEmail($email_usuario, $assunto_email, $corpo_email)) {\n\t\t\t$this->solicitacao->togglestatus($solicitacao_id, $usuario_aprovador, $select_status, $motivo);\n\t\t} else {\n\t\t\t$this->solicitacao->togglestatus($solicitacao_id, $usuario_aprovador, 0, '');\n\t\t\t$_SESSION['semnet'] = '<div class=\"alert alert-danger\" role=\"alert\">\n\t\t\tNão Foi possivel enviar o email e alterar o status da solicitação , tente novamente!\n\t\t</div>';\n\t\t\theader(\"Location:\" . BASE_URL . \"solicitacao\");\n\t\t}\n\t}", "title": "" }, { "docid": "7f9a727848c5f36621987e9de4b5538d", "score": "0.52879524", "text": "public function index_get($id = 0) {\n $is_valid_token = $this->authorization_token->validateToken();\n if (!empty($is_valid_token) AND $is_valid_token['status'] === TRUE) {\n if (!empty($id)) {\n $data = $this->complaints_model->find(array('idcomplaint' => $id));\n } else {\n $data = $this->complaints_model->getAll();\n }\n $this->response($data, REST_Controller::HTTP_OK);\n } else {\n $this->response(['status' => FALSE, 'message' => $is_valid_token['message']], REST_Controller::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "aa383ee76d724aaa28dc05c279f63419", "score": "0.5284977", "text": "public function buscaPorId($id){\n\n\t\tif (! is_numeric($id)) {\n\t\t\t$this->objStatus->setStatus(ObjStatus::COD_STATUS_ERRO);\n\t\t\t$this->objStatus->addRet('msg', 'id inválido para busca!');\n\t\t\treturn $this->objStatus;\n\t\t}\n\t\t\n\t\t$sql = 'SELECT ata_id, ata_nome, ata_fa_icone, ata_controller, ata_action, ata_ativo\n \t\t\t\tFROM tb_atalho\n\t\t\t\tWHERE ata_id = ?';\n\t\t$this->objConn->setSQL($sql);\n\t\t$this->objConn->addParameter($id);\n\t\t$rs = $this->objConn->selectRow();\n\t\t\n\t\tif (! count($rs) > 0) {\n\t\t\t$this->objStatus->setStatus(ObjStatus::COD_STATUS_ERRO);\n\t\t\t$this->objStatus->addRet('msg', 'Nenhum registro encontrado com esse id (' . $id . ')');\n\t\t\treturn $this->objStatus;\n\t\t}\n\t\telse {\n\t\t\t$ata_id = $rs ['ata_id'];\n\t\t\t$ata_nome = $rs ['ata_nome'];\n\t\t\t$ata_fa_icone = $rs ['ata_fa_icone'];\n\t\t\t$ata_controller = $rs ['ata_controller'];\n\t\t\t$ata_action = $rs ['ata_action'];\n\t\t\t$ata_ativo = $rs ['ata_ativo'];\n\t\t\t\n\t\t\t$atalho = new Atalho($ata_id, $ata_nome, $ata_fa_icone, $ata_controller, $ata_action, $ata_ativo);\n\t\t\t\n\t\t\t$this->objStatus->setStatus(ObjStatus::COD_STATUS_OK);\n\t\t\t$this->objStatus->addRet('ent', $atalho);\n\t\t\treturn $this->objStatus;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "96b6950b476a682b8a9c93392658632c", "score": "0.5278607", "text": "public function buscarDinamicamente(){\r\n\t\t\r\n\t\t$filtro \t= isset($_GET['filtro']) ? $_GET['filtro'] : '';\r\n\t\t$parametro \t= isset($_GET['term']) ? trim($_GET['term']) : '';\t\r\n\t\t\r\n\t\ttry{\r\n\t\t\r\n\t\t\tif(($filtro == 'nome') || ($filtro == 'razao_social')) {\r\n\t\t\t\t\r\n\t\t\t\t$retorno = $this->dao->retornarPesquisaDinamicaNome($filtro, $parametro);\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(($filtro == 'cpf') || ($filtro == 'cnpj')){\r\n\t\t\t\t\r\n\t\t\t\t$retorno = $this->dao->retornarPesquisaDinamicaCpfCnpj($filtro, $parametro);\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\t\t$retorno = $this->dao->retornarPesquisaDinamicaIdVivo($filtro, $parametro);\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\techo json_encode($retorno);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}catch(Exception $e){\r\n\t\t\t\r\n\t\t\t//$msg = $e->getMessage();\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1ee0581b73457d37291cc2e82be7c804", "score": "0.52737993", "text": "function get_propuesta_estado($ID)\n{\n\t$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Error al conectar. Verifique sus configuraciones.');\n\t$db_selected = mysql_select_db(DB_NAME, $link) or die('Error al conectar. Verifique sus configuraciones.');\n\t$query='SELECT estado FROM propuestas WHERE id=\"'.$ID.'\";';\n\t$result = mysql_query($query)or die('Error al conectar. Verifique sus configuraciones.');\n\t$row = mysql_fetch_assoc($result);\n\treturn htmlentities($row['estado'],ENT_QUOTES);\n}", "title": "" }, { "docid": "41374a5525e2929bc03642e875c861c0", "score": "0.5272424", "text": "function action_get() {\n\n $em = FW::getEM();\n if ($studId = $this->request->params('id')) {\n $students = $em->getRepository('Entity\\Student')->find($studId);\n $students = $students ? $students->as_array() : null;\n } else {\n $q = $em->createQuery('SELECT s , g, d, dt FROM Entity\\Student s LEFT JOIN s.group g LEFT JOIN g.department d LEFT JOIN d.faculty f LEFT JOIN s.depts dt ORDER BY s.name');\n $students = $q->getArrayResult();\n }\n\n\n\n $view = View::create(array(\"FW\", \"json\"), array());\n if ($students) {\n array_walk($students, array($this, 'preFormat'));\n $view->setData($students);\n } elseif ($studId) {\n $view->setHttpResponseCode(404);\n } else {\n $view->setData(array());\n }\n $view->display();\n }", "title": "" }, { "docid": "504fb447b71817911fc693bab2dfe162", "score": "0.52713156", "text": "public function edit($id){\n //(pressupoe a apresentar dados do estudante no formulario)\n\n }", "title": "" }, { "docid": "bbb87b5d4fdb2e33fe907dbcec5f2d2a", "score": "0.5265379", "text": "function show( Request $request , $id ) \n\t{\n\t\t$task =$id ;\n\t\tswitch( $task)\n\t\t{\n\t\t\tcase 'search':\n\t\t\t\treturn $this->getSearch();\n\t\t\t\tbreak;\n\n\t\t\tcase 'comboselect':\n\t\t\t\treturn $this->getComboselect( $request );\n\t\t\t\tbreak;\n\t\t\tcase 'import':\n\t\t\t\treturn $this->getImport( $request );\n\t\t\t\tbreak;\n\t\t\tcase 'export':\n\t\t\t\treturn $this->getExport( $request );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->hook( $request , $id );\n\t\t\t\tif(!isset($this->data['row']))\n\t\t\t\t\treturn redirect($this->module)->with('message','Record Not Found !')->with('status','error');\n\n\t\t\t\tif($this->access['is_detail'] ==0) \n\t\t\t\t\treturn redirect('dashboard')->with('message', __('core.note_restric'))->with('status','error');\n\t\t\t\treturn view( 'core.'. $this->module.'.view',$this->data);\n\t\t\t\tbreak;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "d715f3e0726d5890880a30d672d9995f", "score": "0.5263457", "text": "public function show()\n\t{\n\t\t$parametros=Input::get();\t\t\n\t\t$reglas = \n\t\t\tarray(\n\t\t\t 'id' => 'required|integer'\n\t\t\t);\n \t$validator = Validator::make($parametros,$reglas);\n\n\t\tif (!$validator->fails())\n\t\t{\n\t\t\t$res['data']=Tipo_adeudo::find($parametros['id']);\n\t\t\t$respuesta = json_encode(array('error' =>false,'mensaje'=>'', 'respuesta'=>$res));\n\t\t} else {\n\t\t\t$respuesta = json_encode(array('error' =>true,'mensaje'=>'No hay parametros o estan mal.', 'respuesta'=>null ));\n\t\t}\n\t\t$final_response = Response::make($respuesta, 200);\n $final_response->header('Content-Type', \"application/json; charset=utf-8\");\n\n return $final_response;\n\t}", "title": "" }, { "docid": "854c52415264e1a34f0b1b51c0ed9265", "score": "0.5263274", "text": "public function Validar()\n {\n $ficha_sisben = new Sisben();\n $ficha_ciudadano = new Ciudadano();\n\n //Valida que se este recibiendo una cedula para validar\n if (isset($_REQUEST['cedula'])) {\n $ficha_sisben = $this->modelSisben->consultar($_REQUEST['cedula']);\n $ficha_ciudadano = $this->modelCiudadano->consultar($_REQUEST['cedula']);\n\n require_once 'view/header.view.php';\n require_once 'view/navbar.view.php';\n require_once 'view/preinscripcion/validar.view.php';\n require_once 'view/footer.view.php';\n }\n }", "title": "" }, { "docid": "c1bea69aa6df02691cd872e89c9f877b", "score": "0.5262257", "text": "function ObtenerXDepaSinAsignar($cens_id, $depa_id)\r\n {\r\n # GET Para obtener datos del servicio\r\n $parametros[\"http\"][\"method\"] = 'GET';\r\n $parametros[\"http\"][\"header\"] = 'Accept: application/json';\r\n $param = stream_context_create($parametros);\r\n $resource = '/listaareas/censo/'.$cens_id.'/dep/'.$depa_id;\r\n $url = REST.$resource;\r\n #Envio MSJ GET\r\n $array = file_get_contents($url, false, $param);\r\n log_message(\"DEBUG\", \"#Areas/ObtenerXDepartamentos\".json_encode($array));\r\n return json_decode($array);\r\n }", "title": "" }, { "docid": "d8c7048a9eab3a30ac0b9560a70cab7e", "score": "0.5260904", "text": "function FormaPagamento(){\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.$conSgSistema.' - Listagem das formas de pagamentos</TITLE>');\r\n Estrutura_CSS($w_cliente);\r\n if ($O=='') $O='L';\r\n if ($w_troca>'' && $O!='E') {\r\n // Se for recarga da página\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_sigla = $_REQUEST['w_sigla'];\r\n $w_codigo_externo = $_REQUEST['w_codigo_externo'];\r\n $w_ativo = $_REQUEST['w_ativo'];\r\n } elseif ($O=='L') {\r\n $sql = new db_getFormaPagamento; $RS = $sql->getInstanceOf($dbms,$w_cliente,null,null,'REGISTRO',null,null);\r\n if (Nvl($p_ordena,'') > '') {\r\n $lista = explode(',',str_replace(' ',',',$p_ordena));\r\n $RS = SortArray($RS,$lista[0],$lista[1]);\r\n } else {\r\n $RS = SortArray($RS,'nome','asc'); \r\n }\r\n } elseif (!(strpos('AEVT',$O)===false && $w_troca=='')) {\r\n $sql = new db_getFormaPagamento; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,null,'REGISTRO',$w_ativo,null);\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n $w_chave = f($RS,'chave');\r\n $w_nome = f($RS,'nome');\r\n $w_sigla = f($RS,'sigla');\r\n $w_ativo = f($RS,'ativo');\r\n $w_codigo_externo = f($RS,'codigo_externo');\r\n } \r\n if (!(strpos('IAET',$O)===false)) {\r\n ScriptOpen('JavaScript');\r\n modulo();\r\n ValidateOpen('Validacao'); \r\n if (strpos('IA',$O)!==false) {\r\n Validate('w_nome','Nome','1','1','3','30','1','1');\r\n Validate('w_sigla','Sigla','1','1','2','10','1','1');\r\n Validate('w_codigo_externo','Código Externo','1','','','60','1','1');\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n } elseif ($O=='E') {\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n ShowHTML(' if (confirm(\"Confirma a exclusão deste registro?\")) ');\r\n ShowHTML(' { return (true); }; ');\r\n ShowHTML(' { return (false); }; ');\r\n }\r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n ShowHTML('</HEAD>');\r\n if ($w_troca>'') BodyOpen('onLoad=\"document.Form.'.$w_troca.'.focus();\"');\r\n elseif ($O=='I' || $O=='A') BodyOpen('onLoad=\"document.Form.w_nome.focus();\"');\r\n elseif ($O=='L') BodyOpen(null);\r\n else BodyOpen('onLoad=\"document.Form.w_assinatura.focus();\"');\r\n Estrutura_Topo_Limpo();\r\n Estrutura_Menu();\r\n Estrutura_Corpo_Abre();\r\n Estrutura_Texto_Abre();\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($O=='L') {\r\n ShowHTML('<tr>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td><a accesskey=\"I\" class=\"ss\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\"><u>I</u>ncluir</a>&nbsp;');\r\n }\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>'.LinkOrdena('Nome','nome').'</td>');\r\n ShowHTML(' <td><b>'.LinkOrdena('Sigla','sigla').'</td>');\r\n ShowHTML(' <td><b>'.LinkOrdena('Código externo','codigo_externo').'</td>');\r\n ShowHTML(' <td><b>'.LinkOrdena('Ativo','nm_ativo').'</td>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td class=\"remover\"><b> Operações </td>');\r\n }\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=4 align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n $RS1 = array_slice($RS, (($P3-1)*$P4), $P4);\r\n foreach ($RS1 as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"left\">'.f($row,'nome').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'sigla').'</td>');\r\n ShowHTML(' <td>'.nvl(f($row,'codigo_externo'),\"&nbsp;\").'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_ativo').'</td>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td class=\"remover\">');\r\n ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_chave='.f($row,'chave').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\" Title=\"Nome\">AL </A>&nbsp');\r\n ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=E&w_chave='.f($row,'chave').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">EX </A>&nbsp');\r\n ShowHTML(' </td>');\r\n }\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n if ($R>'') MontaBarra($w_dir.$w_pagina.$par.'&R='.$R.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_chave='.$w_chave,ceil(count($RS)/$P4),$P3,$P4,count($RS));\r\n else MontaBarra($w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_chave='.$w_chave,ceil(count($RS)/$P4),$P3,$P4,count($RS));\r\n ShowHTML('</tr>');\r\n //Aqui começa a manipulação de registros\r\n } elseif (strpos('IAEV',$O)!==false) {\r\n if (strpos('EV',$O)!==false) $w_Disabled=' DISABLED ';\r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$w_pagina.$par,$O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_cliente\" value=\"'.$w_cliente.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table width=\"97%\" border=\"0\"><tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>N</u>ome:</b><br><input '.$w_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_nome\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_nome.'\"></td>');\r\n ShowHTML(' <td><b><u>S</u>igla:</b><br><input '.$w_Disabled.' accesskey=\"S\" type=\"text\" name=\"w_sigla\" class=\"sti\" SIZE=\"15\" MAXLENGTH=\"15\" VALUE=\"'.$w_sigla.'\"></td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td colspan=\"2\"><b><U>C</U>odigo externo:<br><INPUT ACCESSKEY=\"C\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"w_codigo_externo\" size=\"60\" maxlength=\"60\" value=\"'.$w_codigo_externo.'\"></td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Ativo</b>?',$w_ativo,'w_ativo');\r\n\r\n $sql = new DB_GetMenuFormaPag; $RS = $sql->getInstanceOf($dbms, $w_chave, null);\r\n $i=0;\r\n foreach($RS as $row) {\r\n if ($i==0) $w_vinculo = f($row,'sq_menu');\r\n else $w_vinculo .= ','.f($row,'sq_menu');\r\n $i=1;\r\n }\r\n ShowHTML(' <tr><td><b>Vinculações:</b><br>');\r\n $sql = new db_getMenuList; $RS1 = $sql->getInstanceOf($dbms, $w_cliente, 'X', $chaveAux, null);\r\n $RS1 = SortArray($RS1, 'nm_modulo', 'asc', 'nome', 'asc');\r\n ShowHTML(' <tr>');\r\n if (count($RS1) > 0) {\r\n $i = 2;\r\n foreach ($RS1 as $row) {\r\n if (strpos('FN,CO,AC,PD',f($row,'sg_modulo'))!==false) {\r\n if (!($i % 2)) ShowHTML(' <tr>');\r\n $l_marcado = 'N';\r\n $l_chave = $w_vinculo . ',';\r\n while (!(strpos($l_chave, ',') === false)) {\r\n $l_item = trim(substr($l_chave, 0, strpos($l_chave, ',')));\r\n $l_chave = trim(substr($l_chave, (strpos($l_chave, ',') + 1), 100));\r\n if ($l_item > '') {\r\n if (f($row, 'sq_menu') == $l_item) $l_marcado = 'S';\r\n }\r\n }\r\n ShowHTML(' <td><input '.$w_Disabled.' type=\"checkbox\" name=\"w_vinculo[]\" value=\"' . f($row, 'sq_menu') . '\"'.(($l_marcado == 'S') ? ' checked' : '').'>' . f($row, 'nome') . '<br>');\r\n $i += 1;\r\n }\r\n }\r\n }\r\n\r\n ShowHTML(' <tr><td align=\"LEFT\" colspan=2><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\r\n ShowHTML(' <tr><td align=\"center\" colspan=2><hr>'); \r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,f($RS_Menu,'link').'&O=L&w_chave='.$_REQUEST['w_chave'].'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.f($RS_Menu,'sigla').MontaFiltro('GET')).'\\';\" name=\"Botao\" value=\"Abandonar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>'); \r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n } \r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Estrutura_Texto_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Rodape();\r\n}", "title": "" }, { "docid": "4250f1f1b61cf86387f68a15bce7c8dd", "score": "0.5255089", "text": "function validarEstadoEmpleo($id = 0) {\n $con = getConnection();\n $id = intval($id);\n if($con !== null && $id > 0) {\n $sql = \"SELECT * FROM empleos where idempleos = '$id' AND estado = 1\";\n $result = $con->query($sql);\n if($result && $result->num_rows>0){\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "03f7308dd7bb6438420dcd00144991b1", "score": "0.52522063", "text": "private function validar_estado($datos)\r\n {\r\n $res_val = $this->obtener_datos($datos);\r\n\r\n if (!$res_val)\r\n return $this->respuesta_clase(false);\r\n\r\n if ($res_val->field(\"bopEstado\") == \"I\")\r\n return $this->respuesta_clase(false, \"B002\");\r\n if ($res_val->field(\"bopEstado\") == \"C\")\r\n return $this->respuesta_clase(false, \"B003\");\r\n if ($res_val->field(\"bopEstado\") == \"F\")\r\n return $this->respuesta_clase(false, \"B004\");\r\n\r\n // if ($res_val->field(\"VENC\"))\r\n // return $this->respuesta_clase(false,\"B007\");\r\n\r\n if ($res_val->field(\"bopEstado\") == \"N\" || $res_val->field(\"bopEstado\") == \"U\")\r\n return $this->respuesta_clase();\r\n else\r\n return $this->respuesta_clase(false, \"B005\");\r\n }", "title": "" }, { "docid": "edbca091194cfa4306bbe7794510a04c", "score": "0.52482665", "text": "public function versolicitacao()\n\t{\n\t\t$this->_validarperfil();\n\t\t//=======================\n\t\t$id_solicitacao = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);\n\t\t$user_id_solicitacao = $this->solicitacao->getbyID($id_solicitacao)['users_id'];\n\t\t$dados['solicitacao'] = $this->solicitacao->getbyID($id_solicitacao);\n\t\t$dados['user_solicitante'] = $this->user->getById($user_id_solicitacao)['username'];\n\t\t$id_user_que_aprovou = $this->solicitacao->getbyID($id_solicitacao)['user_id_aprovacao'];\n\t\t$user_que_aprovou = $this->user->getById($id_user_que_aprovou)['username'];\n\t\tif ($user_que_aprovou != null) {\n\t\t\t$dados['username_aprovacao'] = $user_que_aprovou;\n\t\t}\n\n\t\t$this->loadTemplate('solicitacao/versolicitacao', $dados);\n\t}", "title": "" }, { "docid": "080b2a20c1b589782c4b48e3b2ce94f2", "score": "0.5245915", "text": "public function edit($id)\n {\n $this->autorizacao($this->strAutorizacaoModulo.'EDITAR');\n\n try{\n\n $cargo = $this->repository->find($id, ['id', 'nome', 'descricao', 'funcionario_id', 'departamento_id']); \n $func_selected = $this->funcionariosRepository->findWhere([ ['id', '=', $cargo['funcionario_id'] ] ], ['id', 'nome']);\n $depart_selected = $this->departamentosRepository->findWhere([ ['id', '=', $cargo['departamento_id'] ] ], ['id', 'nome']);\n\n //lista para o select options\n $departamentos = $this->departamentoClass();\n $funcionarios = $this->funcionarioClass(); \n\n }\n catch(\\Exception $e)\n {\n return response()->view( 'erros.naoEncontrado', [\n 'titulo' => $this->entidade,\n 'descricao' => $this->errors->descricaoEditar( $this->entidade ), \n 'mensagem' => $this->errors->mensagem( $this->entidade, $e->getMessage() ), \n 'migalhas' => $this->migalhaDePao()\n ], 404 );\n } \n \n return view('rh.cargo.editar', [\n 'id' => $id, \n 'nome' => json_encode($cargo->nome), \n 'descricao' => json_encode($cargo->descricao),\n 'funcionarios' => json_encode($funcionarios), \n 'func_selected' => $func_selected, \n 'departamentos' => json_encode($departamentos),\n 'depart_selected' => $depart_selected,\n 'migalhas' => $this->migalhaDePao()\n ]);\n\n }", "title": "" }, { "docid": "36dd0e09e22381697fba87a87f2e4cff", "score": "0.5242478", "text": "public function estado($id)\r\n {\r\n parent::conectar();\r\n parent::salvar($id);\r\n $estado = parent::consultaArreglo('select estado from usuario where id=\"'.$id.'\"');\r\n return $estado['estado'];\r\n parent::cerrar();\r\n }", "title": "" }, { "docid": "a7af2a550e18a6f40b2acca23f6244a9", "score": "0.5237074", "text": "public function ver(){\n\n if(isset($_GET['id'])){\n\n $id = $_GET['id'];\n\n /* Conseguir la categoria */\n $categoria = new Categoria();\n $categoria->setId($id);\n $categoria = $categoria->getOne();\n \n /* Conseguir vehiculo */\n $vehiculo = new Vehiculo();\n $vehiculo->setCategoria_id($id);\n $vehiculos = $vehiculo->getAllCategory();\n }\n require_once 'views/categoria/ver.php';\n }", "title": "" }, { "docid": "e3ebdf5a5d8b836c82a25c46c6a30f15", "score": "0.5233188", "text": "public function show($id)\n {\n ///\n $rtn = Provider::where(\"name\",'LIKE',\"%$busca%\")->get();\n\n \n if($rtn->count() > 0){\n \n echo json_encode([\"status\"=>true,\"msg\"=>'Achamos!', \"rtn\"=> $rtn]);exit; \n }else{\n \n echo json_encode([\"status\"=>false,\"msg\"=>'Não encontramos resultados para a busca: '.$busca.\"<br> Por favor revise e tente novamente...\"]);exit; \n\n } \n }", "title": "" }, { "docid": "a21b02e9502b7c45ec2913d20d9c76d9", "score": "0.52296454", "text": "public function estandar(){\n\n if(Route::input('tarifas')->id == 1)\n return $this->cerrarPopUp();\n }", "title": "" }, { "docid": "bfdc5d9441c3821d27e790eaa076d9fe", "score": "0.52251744", "text": "function clientesFacturacion($filtro, $nameSelect = '', $idSelect = '') {\n if ($nameSelect == '')\n $nameSelect = $_GET['nameselect'];\n if ($idSelect == '')\n $idSelect = $_GET['idselect'];\n\n // En el filtro viene separado por @ el id de la sucursal y el rango de fechas\n $valores = explode(\"@\", $filtro);\n $idSucursal = $valores[0];\n $desdeFecha = $valores[1];\n $hastaFecha = $valores[2];\n\n $cliente = new Clientes();\n $rows = $cliente->fetchConPendienteDeFacturar($idSucursal, $desdeFecha, $hastaFecha);\n unset($cliente);\n\n if (count($rows) == 0) {\n $ch = \"<div style='margin-top: 20px; font-weight: bold;'>No hay ningún cliente con albaranes pendientes en ese período</div>\";\n } else {\n $ch .= \"<div>Clientes con pendiente de facturar:</div>\";\n $ch .= \"<div><select name='\" . $nameSelect . \"' id='\" . $idSelect . \"' class='Select' style='width:310px;' onchange='submit();'>\";\n foreach ($rows as $row) {\n $ch .= \"<option value='\" . $row['Id'] . \"'>\" . $row['Value'] . \" (\" . $row['Total'] . \")</option>\";\n }\n $ch .= \"</select>\";\n $ch .= \"<input type='submit' value='Ver Albaranes' class='Comando'/></div>\";\n }\n\n return $ch;\n}", "title": "" }, { "docid": "0d11b8b284dd6fbece6dde335d061a1c", "score": "0.5223269", "text": "public static function idFormAction() {\n $vin_id = $_GET['id'];\n $results = ModelVin::read($vin_id);\n require '../view/vin/ViewVinList.php';\n }", "title": "" }, { "docid": "a7327193197c1c0f968fe30c69ffa144", "score": "0.5221194", "text": "function cambiarEstado($estado) {\n \n }", "title": "" }, { "docid": "71375baafbbd68d2949005971744efbb", "score": "0.5220665", "text": "function proveedoresFacturacion($filtro, $nameSelect = '', $idSelect = '') {\n if ($nameSelect == '')\n $nameSelect = $_GET['nameselect'];\n if ($idSelect == '')\n $idSelect = $_GET['idselect'];\n\n // En el filtro viene separado por @ el id de la sucursal y el rango de fechas\n $valores = explode(\"@\", $filtro);\n $idSucursal = $valores[0];\n $desdeFecha = $valores[1];\n $hastaFecha = $valores[2];\n\n $proveedor = new Proveedores();\n $rows = $proveedor->fetchConPendienteDeFacturar($idSucursal, $desdeFecha, $hastaFecha);\n unset($proveedor);\n\n if (count($rows) == 0) {\n $ch = \"<div style='margin-top: 20px; font-weight: bold;'>No hay ningún proveedor con pedidos pendientes en ese período</div>\";\n } else {\n $ch .= \"<div>Proveedores con pendiente de facturar:</div>\";\n $ch .= \"<div><select name='\" . $nameSelect . \"' id='\" . $idSelect . \"' class='Select' style='width:310px;' onchange='submit();'>\";\n foreach ($rows as $row) {\n $ch .= \"<option value='\" . $row['Id'] . \"'>\" . $row['Value'] . \" (\" . $row['Total'] . \")</option>\";\n }\n $ch .= \"</select>\";\n $ch .= \"<input type='submit' value='Ver Pedidos' class='Comando'/></div>\";\n }\n\n return $ch;\n}", "title": "" }, { "docid": "02873e1cf327c68f7dd8697859cb72d5", "score": "0.5220458", "text": "static public function controlerEditarTipoGestion()\n {\n if(isset($_POST[\"idEditar\"]))\n {\n /*vuelvo a hacer la validación de la entrada de caracteres\n que permito */\n if(preg_match('/^[a-zA-Z-ñÑáéíóúÁÉÍÓÚ ]+$/',$_POST[\"nombreEditar\"]) &&\n preg_match('/^[0-9]+$/',$_POST[\"idEditar\"]))\n {\n /*con las validaciones anteriores, ya podré enviar\n los campos actualizados al modelo */\n $nuevaTupla=array(\"ID\"=> $_POST[\"idEditar\"],\n \"NOMBRES\"=> $_POST[\"nombreEditar\"],\n \"CLASE_GESTION\"=> $_POST[\"TipoGestionE\"],\n \"NIP_ULT_USR_MODIFICADOR\"=> $_SESSION[\"NIP\"],\n \"ROL\"=>$_SESSION[\"DESCRIPCION\"]\n );\n /*solicitando respuesta al modelo */\n $ans=ModelTipoGestion::mdlEditarTipoGestion($nuevaTupla);\n /*si la actualización se realizó con éxito, lanzo una \n notificación para informarle al tipoGestion */\n if($ans==true)\n {\n echo\n '<script>\n \n Swal.fire({\n position: \"center\",\n icon: \"success\",\n title: \"Datos actualizados exitosamente\",\n showConfirmButton: false,\n timer: 2000\n }).then((result)=>{\n window.location=\"tipoGestion\";\n }); \n </script>';\n\n }\n else\n {\n echo'<script>\n swal.fire({\n type:\"error\",\n icon: \"error\",\n title: \"'.$Ex->getMessage().'\",\n }).then((result)=>{\n window.location=\"tipoGestion\";\n }); \n </script>';\n }\n\n\n } else\n {\n echo\n '<script>\n swal.fire({\n type:\"error\",\n icon: \"error\",\n title: \"solo se aceptan letras y vocales en los campos, intente de nuevo\"\n }).then((result)=>{\n window.location=\"tipoGestion\";\n }); \n </script>';\n }\n }\n }", "title": "" }, { "docid": "f9efcee7c8e9e3dda69db07b32eeacb3", "score": "0.5218445", "text": "function process_gets($request) {\n\n\tif (empty($_GET)) {\n\t\techo json_encode(array(\"message\" => \"Inn reservations expect parameters of action (request or confirm). \".\n\t\t\t\"Requests also requires guests and bags and optional night. \".\n\t\t\t\"Confirm needs a name and room number and optional night.\"));\n\t\treturn 1;\n\t}\n\n\t$action = isset($_GET['action']) ? $_GET['action'] : NULL;\n\tif (empty($action)) { // missing argument, so stop now\n\t // set response code - 400 Bad request\n\t\thttp_response_code(400);\n \t\techo json_encode(array(\"message\" => \"Missing action in URI (request or confirm)\"));\n\t\treturn 0;\n\t}\n\telseif (! in_array($action, [\"request\", \"confirm\", \"cleaning\"]) ) {\n\t\thttp_response_code(400);\n\t\techo json_encode(array(\"message\" => \"Invalid action in URI (expecting request, confirm, cleaning)\"));\n\t\treturn 0;\n\t}\n\telse\n\t\t$response = array(\"message\" => \"action sent was $action\");\n\n\t// Have a valid action, now check the rest of input\n\tif ($action == \"request\") {\n\t\tif (! Reservation::validate($_GET, ['guests','bags']) ) {\n\t\t\thttp_response_code(400);\n\t\t\t$response['message'] = \"Required parameters for request are guests and bags\";\n\t\t\t$response['data'] = $_GET; // debug\n\t\t\techo json_encode($response);\n\t\t\treturn 0;\n\t\t}\n\t\t$inn = new Inn;\n\t\t// don't use extract $_GET, not sure what's in it, could overwrite something important\n\t\t$guests = (int)$_GET['guests'];\n\t\t$bags = (int)$_GET['bags'];\n\t\t$night = isset($_GET['night']) ? $_GET['night'] : 'tonight';\n\t\t\n\t\t$room = $inn->availableRoom($guests, $bags, $night);\n\t\tif ($room) {\n\t\t\t$response['room'] = $room;\n\t\t\t$response['message'] = \"Room $room is available for $guests guests and $bags bags\";\n\t\t}\n\t\telse {\n\t\t\thttp_response_code(404); // best simulator of unavailable resource\n\t\t\t$response['message'] = \"That reservation request is not available. Please try another.\";\n\t\t}\n\t\techo json_encode($response);\n\t\treturn;\n\t}\n\telseif ($action == 'confirm') {\n\t\tif (! Reservation::validate($_GET, ['room','name']) ) {\n\t\t\t$response['message'] = \"Required parameters for request are room and guest name\";\n\t\t\techo json_encode($response);\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t$_GET['night'] = isset($_GET['night']) ? $_GET['night'] : 'tonight';\n\t\t$inn = new Inn;\n\t\t$conf = $inn->confirmReservation($_GET);\n\t\tif (is_bool($conf)) { // false\n\t\t\thttp_response_code(400); // 404?\n\t\t\t$response['message'] = \"No matching reservation found :(\";\n\t\t} else { // object\n\t\t\t$response['message'] = \"Matching reservation found!\";\n\t\t\t$response['reservation'] = $conf; // optional?\n\t\t}\n\t}\n\telseif ($action == 'cleaning') {\n\t\t$inn = new Inn;\n\t\t$time = $inn->cleaningTime();\n\t\t$response['cleaningTime'] = $time / 60;\n\t\t$response['message'] = \"It will take \". $time / 60 .\" hours to clean the inn tomorrow. \";\n\t\tif ($inn->cleaningFinish())\n\t\t\t$response['message'] .= \"This is enough time to clean all the rooms.\";\n\t\telse\n\t\t\t$response['message'] .= \"This is not enough time to clean all the rooms!\";\n\t}\n\t\n\techo json_encode($response);\n\treturn 1;\n}", "title": "" }, { "docid": "2ce1275ef5d1ad382248ac481c5bdf3a", "score": "0.5218264", "text": "public function index_get($id = 0)\n {\n\n if(!empty($id)){\n\n $row = $this->plantillas->GetRow($id);\n\n if($row){\n $response = array(\n \"status\"=>200,\n \"message\"=>\"Success\",\n \"data\"=>$row,\n );\n $this->response($response, REST_Controller::HTTP_OK);\n }else{\n $response = array(\n \"status\"=>400,\n \"message\"=>\"Plantilla no existe\",\n \"data\"=>array(),\n );\n $this->response($response, REST_Controller::HTTP_BAD_REQUEST);\n }\n\n }\n else{\n\n $id_categoria = $this->input->get(\"id_categoria\");\n\n $row = $this->plantillas->RowsList($id_categoria);\n\n if($row){\n $response = array(\n \"status\"=>200,\n \"message\"=>\"Success\",\n \"data\"=>$row,\n );\n $this->response($response, REST_Controller::HTTP_OK);\n }else{\n $response = array(\n \"status\"=>400,\n \"message\"=>\"No Plantillas Disponibles\",\n \"data\"=>array(),\n );\n $this->response($response, REST_Controller::HTTP_BAD_REQUEST);\n }\n }\n\n\n }", "title": "" }, { "docid": "3f7fa6088ff1595040709253eccfe740", "score": "0.5217046", "text": "public function show($id){\n //EL CONTROLADOR DE VIAJE SE VA A ENCARGAR DE CARGAR\n //SUS RESPECTIVOS COMENTARIOS\n }", "title": "" }, { "docid": "70a2b33a76eb2a724fb6236199fb495d", "score": "0.5211833", "text": "public function show($id)\n {\n //--funcao descontinuada\n }", "title": "" }, { "docid": "f3d64699f20b119d5b976966ec630baf", "score": "0.5206004", "text": "public function editar()\n {\n if (isset($_GET[\"id\"])) {\n $id = (int)$_GET[\"id\"];\n\n\n //traemos todos los datos del usuario para mostrarlos en el formulario\n $cliente = new Cliente($this->adapter);\n $cliente = $cliente->getById($id);\n\n //Cargamos la vista para mostrar formulario de insert\n $this->view(\"Cliente/actualizar\", array(\n \"i\" => $cliente\n ));\n }\n }", "title": "" }, { "docid": "1ec30840ff88c54cc210f1940fa9ef82", "score": "0.5204509", "text": "public function show($id) {\n $request = \\Config\\Services::request();\n $validation = \\Config\\Services::validation();\n $headers = $request->getHeaders();\n\n $registroModel = new RegistrosModel($db);\n $registro = $registroModel->where('estado', 1)\n ->findAll();\n\n foreach ($registro as $key => $value) {\n //verificacion del toquen de seguridad \n if (array_key_exists('Authorization', $headers) && !empty($headers['Authorization'])) {\n\n if ($request->getHeader('Authorization') == 'Authorization: Basic ' . base64_encode($value[\"cliente_id\"] . \":\" . $value[\"llave_secreta\"])) {\n \n $Planilla = new PlanillaModel();\n $prendas = $Planilla->getdetalle_pedido_prenda($id);\n if (!empty($prendas)) {\n\n $data = array(\n \"Status\" => 200,\n \"Número Registro\" =>$id,\n \"Detalle\" => $prendas\n );\n return json_encode($data, true);\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"No hay ningún prendas registrado\"\n );\n }\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"El token es inválido\"\n );\n }\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"No está autorizado para recibir los registros\"\n );\n }\n }\n\n return json_encode($data, true);\n }", "title": "" }, { "docid": "7b5c62c4d515105634515fa0334b553b", "score": "0.5204101", "text": "public function show(Estado $cliente)\n {\n //\n }", "title": "" }, { "docid": "06736ff5368df86043fe6ccc94622683", "score": "0.520065", "text": "function bookById_get(){\n\t\t\t$id = $this->input->get('id');\n\n\t\t\tif(!$id){\n\t\t\t\t$this->response(array('status' => \"false\", 'message' => \"No Book Id was specified\"),400);\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t$result = $this->book_model->getbookbyId($id);\n\n\t\t\tif($result){\n\t\t\t\t$this->response($result, 200);\n\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\telse{\n\t\t\t\t$this->response(array('status' => \"false\", 'message' => \"Invalid Book Id\"),404);\n\t\t\t\t\n\t\t\t\texit;\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "940e932583b63df998e7049614920b12", "score": "0.51998043", "text": "public function getEdit($id) {\n //-------------------------------------------------------------------------------------------\n $consulta = DB::table('funcionarios')\n ->join('cargos', 'cargos.id', '=', 'funcionarios.id_cargo')\n ->where('funcionarios.id', $id)->get();\n\n $consulta[0]->id = $id;\n $calcula_idade = new DataController($consulta[0]->data_nasc);\n $consulta[0]->idade = $calcula_idade->getIdade();\n //---------------------------------------------------------------------------------------------- \n\n\n $login = DB::table('logons')->where(\"id_funcionario\", $id)->get();\n if ($login) {\n $consulta[0]->login = $login;\n $obj->valor['login'] = true;\n } else {\n $obj->valor['login'] = false;\n }\n\n //----------------------------------------------------------------------------------------------- \n\n $historico = DB::table('logons')->where('id_funcionario', $id)->get();\n $cargos = DB::table('cargos')->orderBy('id', 'desc')->get();\n\n //-----------------------------------------------------------------------------------------------\n $obj->status = true;\n $obj->valor['funcionario'] = $consulta;\n $obj->valor['historico'] = $historico;\n $obj->valor['cargos'] = $cargos;\n\n $obj->valor['issetFuncionario'] = true;\n \n return view('funcionarios.cadastro_funcionario', compact('obj'));\n }", "title": "" }, { "docid": "1debb05c7b76ff7082ffd56c1f666ef6", "score": "0.5198245", "text": "public function get( $id );", "title": "" }, { "docid": "5373e83e24889b12e34796f09c9f5b58", "score": "0.51982355", "text": "public function show_get(string $id): void\n {\n // Build the SQL data\n $this->data = $this->model->where('id', $id)->as_array()->get();\n\n // Generate the response\n $this->data\n ? $this->response($this->data)\n : $this->response([\n 'message' => 'Record Not Found',\n 'success' => false,\n 'status' => HTTP_NOT_FOUND,\n ], HTTP_NOT_FOUND);\n }", "title": "" }, { "docid": "5537359330f0733921815b28afa03f5f", "score": "0.5197358", "text": "public function actionValidate() \n\t{\n\t\t$this->layout = 'validate';\n\t\tif(isset($_GET['q'])){\n\t\t$id = $_GET['q'];\n\t\t} else { \n\t\t\t$id = null; \n\t\t}\n\t\tif($id == null)\n\t\t{\n\t\t\techo \"<script>alert('No direct access allowed ! Go to Hell !');</script>\";\t\t\t\n\t\t\texit;\n\t\t} \n\t\t//print_r($id);// \n\t\t//$model = Aksi::getValidate($id);\n\t\t$model=Archive::model()->findByPk($id);\n\t\tif($model===null) {\n\t\t\t//throw new CHttpException(404,'The requested page does not exist.');\n\t\t\techo \"<script>alert('No View Data for this code ! Might be you have not valid code or your code was deleted by Administrator !');</script>\";\n\t\t} \n\t\telse\n\t\t$this->render('validate/_form',array('model'=>$model));\n\n\t}", "title": "" }, { "docid": "b0959382bc493a557d50ba6d4da96417", "score": "0.5192945", "text": "public function mostrar($id)\n {\n //\n }", "title": "" }, { "docid": "b0959382bc493a557d50ba6d4da96417", "score": "0.5192945", "text": "public function mostrar($id)\n {\n //\n }", "title": "" }, { "docid": "883086cdac56281e97a1ada2af2e1820", "score": "0.5188954", "text": "function get($field, $option = null) {\n\t\n\tif (gettype($field) != 'string') {\n\t\tjsonStatus(2, \"function post() {, o parâmetro 'field' deve ser uma string\");\n\t\texit;\n\t}\n\n\tif ($_SERVER['REQUEST_METHOD'] != 'GET') {\n\t\tjsonStatus(2, \"Método deve ser 'GET'\");\n\t\texit;\n\t}\n\t\n\tif (!isset($_GET[$field])) {\n\t\treturn \"\";\n\t}\n\n\tif ($option == \"checked\") {\n\t\treturn \"checked\";\n\t} else {\n\t\treturn $_GET[$field];\n\t}\n\n}", "title": "" }, { "docid": "8340ec49bd9c2caf2752aa07f3591aff", "score": "0.51888496", "text": "public function index_get()\n {\n $id = $this->get('id');\n $data = $this->auth->getWherenull('akun', $id);\n\n if ($id === null) {\n\n if ($data) {\n $this->response($data, 200);\n } else {\n $this->response([\n 'status' => false,\n 'message' => 'data not found',\n 'data' => $data\n ], 404);\n }\n } else {\n if ($data) {\n $this->response($data, 200);\n } else {\n $this->response([\n 'status' => false,\n 'message' => 'data not found'\n ], 404);\n }\n }\n }", "title": "" }, { "docid": "32f96e5a2fe9201775173e65e989cef3", "score": "0.518855", "text": "public function getOfertasProvAction() {\n $request = $this->getRequest();\n $slug_prov = $request->request->get('slug', '');\n if (!$request->isXmlHttpRequest() || $slug_prov == '') {\n return new RedirectResponse($this->generateUrl('frontend_iniciopage'));\n }\n $em = $this->getDoctrine()->getEntityManager();\n\n $oferBus = new OfertaBusqueda();\n $formulario = $this->createForm(new BuscarOfertaType(), $oferBus);\n $formulario->bind($request);\n $data_json = array('list' => array());\n $errors = array();\n if ($formulario->isValid()) {\n $page = $request->request->get('page', 1) - 1;\n if ($page < 0)\n $page = 0;\n $ofertas_obj = $em->getRepository('FrontendBundle:Oferta')\n ->findByUserSearch($oferBus, $slug_prov, $this->container->getParameter('ganguera.cant_ofertas_prov'), $page);\n\n $data_json['list'] = $this->listOfertasToShow($ofertas_obj['ofertas_list']);\n\n $data_json['page'] = $ofertas_obj['page'] + 1;\n $inicio = $data_json['page'] - 4;\n if ($inicio < 0)\n $inicio = 1;\n $fin = $data_json['page'] + 4;\n if ($fin > $ofertas_obj['cant_paginas'])\n $fin = $ofertas_obj['cant_paginas'];\n $data_json['start_index'] = $inicio;\n $data_json['end_index'] = $fin;\n }\n else {\n // *** Sacando los errores a pepe y cojincillos\n //$errors[] = 'Anie hay errores y no sabemos por el momento como atraparlos';\n $vista = $formulario->createView();\n\n foreach ($vista->children as $children) {\n foreach ($children->vars['errors'] as $err) :\n $errors[] = $err->getMessage();\n endforeach;\n }\n \n foreach ($vista->vars['errors'] as $err)\n $errors[] = $err->getMessage();\n // $vista['children']['costo_min']['vars']['errors']['message']\n }\n $data_json['errors'] = $errors;\n return new Response(json_encode($data_json));\n }", "title": "" }, { "docid": "aab5e8c60616562bc2f031d50889c7b8", "score": "0.5187296", "text": "public function show($id) {\n $request = \\Config\\Services::request();\n $validation = \\Config\\Services::validation();\n $headers = $request->getHeaders();\n\n $registroModel = new RegistrosModel($db);\n $registro = $registroModel->where('estado', 1)\n ->findAll();\n\n foreach ($registro as $key => $value) {\n //verificacion del toquen de seguridad \n if (array_key_exists('Authorization', $headers) && !empty($headers['Authorization'])) {\n\n if ($request->getHeader('Authorization') == 'Authorization: Basic ' . base64_encode($value[\"cliente_id\"] . \":\" . $value[\"llave_secreta\"])) {\n \n $PrendasModel = new PrendasModel();\n $prendas = $PrendasModel->find($id);\n if (!empty($prendas)) {\n\n $data = array(\n \"Status\" => 200,\n \"Número Registro\" =>$id,\n \"Detalle\" => $prendas\n );\n return json_encode($data, true);\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"No hay ningún prendas registrado\"\n );\n }\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"El token es inválido\"\n );\n }\n } else {\n\n $data = array(\n \"Status\" => 404,\n \"Detalle\" => \"No está autorizado para recibir los registros\"\n );\n }\n }\n\n return json_encode($data, true);\n }", "title": "" }, { "docid": "8818b344f9a301b02be5b66862ed38bf", "score": "0.5184543", "text": "function GET() {\n }", "title": "" }, { "docid": "8818b344f9a301b02be5b66862ed38bf", "score": "0.5184543", "text": "function GET() {\n }", "title": "" }, { "docid": "553d72c618fd13d12539fdb16022fac9", "score": "0.51829624", "text": "public function obteneFormaPag($id_usuario){\r\n\t\t$sql = \"SELECT * FROM tbl_tarjj WHERE id_usuario = $id_usuario\";\r\n\t\treturn ejecutarConsulta($sql);\r\n\t}", "title": "" }, { "docid": "1448455fa9a1134ac1178e3962e6b85b", "score": "0.5176803", "text": "public function estado($id)\n {\n //mostrar datos de una sola persona\n $persona = new persona();\n $persona = persona::find($id);\n return $persona->estado;\n }", "title": "" }, { "docid": "141ea94a5e59e2f2ead923eed557117f", "score": "0.5176252", "text": "public function editarGrupoController(){\r\n\r\n\t\t$datosController = $_GET[\"id\"];\r\n\t\t$respuesta = Datos::editarGrupoModel($datosController, \"grupo\");\r\n\r\n\t\techo'<input type=\"hidden\" value=\"'.$respuesta[\"id\"].'\" name=\"idEditar\">\r\n\r\n\t\t\t <input type=\"text\" value=\"'.$respuesta[\"cuatrimestre\"].'\" name=\"cuatrimestreEditar\" required>\r\n\r\n\r\n\t\t\t <input type=\"submit\" value=\"Actualizar\">';\r\n\r\n\t}", "title": "" }, { "docid": "cf893cf30105ea0114f01a37927156e8", "score": "0.5174893", "text": "public function editarCarreraController(){\r\n\r\n\t\t$datosController = $_GET[\"id\"];\r\n\t\t$respuesta = Datos::editarCarreraModel($datosController, \"carrera\");\r\n\r\n\t\techo'<input type=\"hidden\" value=\"'.$respuesta[\"id\"].'\" name=\"idEditar\">\r\n\r\n\t\t\t <input type=\"text\" value=\"'.$respuesta[\"nombre\"].'\" name=\"nombreEditar\" required>\r\n\r\n\r\n\t\t\t <input type=\"submit\" value=\"Actualizar\">';\r\n\r\n\t}", "title": "" }, { "docid": "0f073c155eeece27def442fbe233d8ef", "score": "0.5172991", "text": "public function estado($id_estado, $id_user) {\n $sql = \"SELECT s.id, s.padre,s.hijo,s.id_seguimiento,s.nur, s.nombre_emisor,UPPER(s.cargo_emisor) as cargo_emisor,s.de_oficina,\n s.fecha_emision as fecha,s.fecha_recepcion as fecha2, a.accion, s.oficial, s.hijo, s.proveido,s.adjuntos,s.archivos\n , d.codigo, d.nombre_destinatario, d.cargo_destinatario,UPPER(d.referencia) as referencia,d.id as id_doc,s.prioridad\n FROM \n (SELECT *\n FROM seguimiento WHERE derivado_a='$id_user' and estado='$id_estado') as s \n INNER JOIN documentos as d ON s.nur=d.nur\n INNER JOIN acciones a ON s.accion=a.id\n WHERE d.original='1' ORDER BY s.fecha_emision DESC\"; // important\n return $this->_db->query(Database::SELECT, $sql, TRUE);\n }", "title": "" } ]
c0d695e91c8aa7cdefdb180dab8df924
Delete this record from the database.
[ { "docid": "5d8dc3c9a2c97254322b1347f6075a38", "score": "0.0", "text": "public function delete() {\n if(!is_null($this->id)) {\n db_exec(\"DELETE FROM acl_ip_bans WHERE ip_id = ?\", array($this->id));\n db_exec(\"DELETE FROM acl_ips WHERE id = ?\", array($this->id));\n }\n $this->id = null;\n $this->ipstring = \"\";\n $this->maskstring = \"\";\n $this->note = null;\n $this->bans = array();\n }", "title": "" } ]
[ { "docid": "dfcd3d8fcdc15376064f77d1431f1376", "score": "0.8352142", "text": "public function delete() {\n $this->record->delete();\n }", "title": "" }, { "docid": "cc2b702ea0cbc3d7571ba519f3e90985", "score": "0.8032458", "text": "public function delete()\n\t{\n\t\tif (!$this->exists()) return;\n\t\t$table = $this->table();\n\t\t$table->delete($this->where());\n\t\t$this->_id = null;\n\t}", "title": "" }, { "docid": "acc96e0f60685860185c882035d00f3b", "score": "0.79916424", "text": "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "title": "" }, { "docid": "9568e3a84e648eba54f936714a6a2298", "score": "0.7927144", "text": "public function delete(){\n\t\t$this->db->delete($this::DB_TABLE, array(\n\t\t\t$this::DB_TABLE_PK => $this->{$this::DB_TABLE_PK},\n\t\t));\n\t\tunset($this->{$this::DB_TABLE_PK});\n\t}", "title": "" }, { "docid": "6b1e1b9ea0f268025fe04ebd5bbbc420", "score": "0.79118156", "text": "public function delete() {\n $this->db->delete($this->table, array(\n $this->id => $this->{$this->id}, \n ));\n unset($this->{$this->id});\n }", "title": "" }, { "docid": "3d554fcd65e88b9e3fd639922b799d1a", "score": "0.7873285", "text": "public function\r\n\t\tdelete()\r\n\t{\r\n\t\tif (isset($this->id)) {\r\n\t\t\tDatabase_TableHelper\r\n\t\t\t\t::delete_row(\r\n\t\t\t\t\t$this->id,\r\n\t\t\t\t\t$this->get_table_name()\r\n\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\tunset($this);\r\n\t}", "title": "" }, { "docid": "fa6f3b58316dd13adda6529f43fa2d9f", "score": "0.77941555", "text": "public function delete() {\r\n\t\t\tif (isset($this->{static::primaryKey()})) {\r\n\t\t\t\t$dbh->query(\r\n\t\t\t\t\t\"DELETE FROM \".\r\n\t\t\t\t\tstatic::dbtable().\r\n\t\t\t\t\t\" WHERE \".\r\n\t\t\t\t\tstatic::primaryKey().\r\n\t\t\t\t\t\" = :id\"\r\n\t\t\t\t);\r\n\t\t\t\t$stmt->bindParam(\r\n\t\t\t\t\t':id', \r\n\t\t\t\t\t$this->{static::primaryKey()}, \r\n\t\t\t\t\tPDO::PARAM_INT\r\n\t\t\t\t);\r\n\t\t\t\t$stmt->execute();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9820da93fe7f0fc7335c1ddd73d12d39", "score": "0.7790383", "text": "public function delete()\n {\n $tableName = $this->getTableName();\n $sql = \"DELETE FROM $tableName WHERE id = :id\";\n $this->bd->exec($sql, [':id' => $this->id]);\n }", "title": "" }, { "docid": "c3f785a4bb5a7a484375fdc22449b508", "score": "0.7769164", "text": "public function delete()\n {\n $db = Application::getInstance()->databaseConnection()->pdo();\n\n $stmt = $db->prepare('DELETE FROM ' . static::$table . ' WHERE ' . $this->idColumn . ' = ' . $this->{$this->idColumn});\n $stmt->execute();\n }", "title": "" }, { "docid": "80c32b3e09a554c1017596e5397efc61", "score": "0.7761499", "text": "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "title": "" }, { "docid": "edc0dad3f7c10fa6d84096d80c32a0ea", "score": "0.7761343", "text": "public function destroy() {\r\n $table = \\DenDad\\libs\\Support::getClassName($this);\r\n $record = $this->{$this->_primaryKey};\r\n if (!isset($this->_primaryKey)) {\r\n throw new \\DenDad\\exceptions\\ModelException('Primary key not set for' .\r\n 'model ' . get_class($this), \r\n \\DenDad\\exceptions\\ModelException::MISSING_PRIMARY_KEY);\r\n }\r\n if (!$this->recordExists()) {\r\n throw new \\DenDad\\exceptions\\ModelException('Record ' . $record .\r\n ' does not exists in table ' . $table, \r\n \\DenDad\\exceptions\\ModelException::MISSING_PRIMARY_KEY);\r\n }\r\n \r\n $db_comm = self::connect()->prepare('DELETE FROM ' . $table . ' WHERE ' .\r\n $this->_primaryKey . '=:' . $this->_primaryKey);\r\n if (!$db_comm->execute(array(':' . $this->_primaryKey => $record))) {\r\n throw new \\DenDad\\exceptions\\ModelException('Unable to destroy record ' .\r\n $record . ' from table ' . $table, \\DenDad\\exceptions\\ModelException::DELETE_FAILED);\r\n }\r\n }", "title": "" }, { "docid": "a7dcc86f14d194f39d7812998dbc6092", "score": "0.77319074", "text": "final public function delete() {\n if (method_exists($this, 'onDelete')) {\n $this->onDelete();\n }\n\n $class = get_called_class();\n\n __db()->delete(\n $this->getTableName(),\n array(\n $class::getPrimaryName() => $this->_id\n )\n );\n }", "title": "" }, { "docid": "67eb09150f1212c625be430e11da44fc", "score": "0.7695964", "text": "public function delete() {\n $this->query = \"DELETE FROM {$this->query}\";\n self::run($this->query, $this->params);\n }", "title": "" }, { "docid": "144b5d903baf3418531faf8f23894670", "score": "0.76657337", "text": "public function delete()\n {\n static::getCollection()\n ->deleteOne([self::INTERNAL_PRIMARY_KEY => $this->_id]);\n }", "title": "" }, { "docid": "578d2a916602fc3a0523d6852ed8d52d", "score": "0.76530457", "text": "public function delete()\n {\n try {\n $sql = 'DELETE FROM '.static::$tableName.' WHERE id = ?';\n $result = $this->db->prepare($sql);\n $result->bindValue(1, $this->id, PDO::PARAM_INT);\n $result->execute();\n } catch (Exception $e) {\n die('Error removing from database.');\n }\n }", "title": "" }, { "docid": "f1329226d7271385e718358c71b389ab", "score": "0.76477706", "text": "public function delete()\n {\n $this->prepareExecute('DELETE FROM '. $this->database . '.'.$this->table.' WHERE id=?',array( $this->id ));\n }", "title": "" }, { "docid": "734ac7f9f5c0547ca83476c3d240e5a0", "score": "0.7632008", "text": "public function delete ()\r\n {\r\n if ($this->isNew())\r\n throw new \\Exception('Unable to delete object, record is new (and therefore doesn\\'t exist in the database).');\r\n \r\n // build sql statement\r\n $sql = sprintf(\"DELETE FROM `%s`.`%s` WHERE `%s` = ?\", self::getDatabaseName(), self::getTableName(), self::getTablePk());\r\n\r\n // prepare, bind & execute\r\n $stmt = self::getConnection()->prepare($sql);\r\n\r\n if (!$stmt)\r\n throw new \\Exception(self::getConnection()->error);\r\n \r\n $id = $this->id();\r\n $stmt->bind_param('i', $id);\r\n $stmt->execute();\r\n\r\n if ($stmt->error)\r\n throw new \\Exception($stmt->error.\"\\n\\n\".$sql);\r\n }", "title": "" }, { "docid": "8057f50dc363a36f3476e30dacfdf176", "score": "0.7613841", "text": "public function delete()\n {\n $this->db->where($this->where);\n $this->db->delete($this->table_name);\n }", "title": "" }, { "docid": "21a6ba0962bd236b11ccd0f740437c9d", "score": "0.75849277", "text": "public function delete()\n\t{\n\t\t$primary_key = self::getPrimaryKey();\n\t\t$table = self::getTableNameInternal();\n\t\t$id = $this->$primary_key;\n\t\treturn db_delete($table)\n\t\t\t->condition($primary_key, $id)\n\t\t\t->execute();\n\t}", "title": "" }, { "docid": "6d7e8cd3fde652d1628f25160d355c0f", "score": "0.75356543", "text": "public function delete()\n {\n $sql = 'DELETE FROM '. static::TABLE .' WHERE id = :id';\n $db = new \\App\\Dbconnect\\Db;\n $db->execute($sql, [':id' => $this->id]);\n }", "title": "" }, { "docid": "c644367a7b08de7f8ad3e0f9d4630a80", "score": "0.75354826", "text": "public function delete()\n {\n $key = $this->getKey();\n $repo = static::defaultRepo();\n $repo->beforeDelete($this);\n $repo->deleteByPrimaryKey($key);\n $repo->afterDelete($this);\n return Result::success('Record deleted', [ 'type' => Result::TYPE_DELETE ]);\n }", "title": "" }, { "docid": "72ab895934a62f8077a6b4d1bb67e4fa", "score": "0.75299895", "text": "public function delete()\r\n {\r\n $array = get_object_vars($this);\r\n $sql = \"DELETE FROM \" . $this->tableName . \" WHERE id = \" . $this->id;\r\n $db = dbConn::getConnection();\r\n self::$statement = $db->prepare($sql);\r\n self::$statement->execute();\r\n }", "title": "" }, { "docid": "72ab895934a62f8077a6b4d1bb67e4fa", "score": "0.75299895", "text": "public function delete()\r\n {\r\n $array = get_object_vars($this);\r\n $sql = \"DELETE FROM \" . $this->tableName . \" WHERE id = \" . $this->id;\r\n $db = dbConn::getConnection();\r\n self::$statement = $db->prepare($sql);\r\n self::$statement->execute();\r\n }", "title": "" }, { "docid": "8503d2b6dc79cbe61b9e9536247800ba", "score": "0.7510899", "text": "public function delete()\n\t{\n\t\tif (empty($this->primary_key) || empty($this->table_name))\n\t\t\tdie('cannot uset class Table without tablename and primary key setted');\n\n\t\t$pk_getter = \"get_\".$this->primary_key;\n\n\t\t$query = \"delete from `\".$this->table_name.\"`\".\n\t\t\"where `\".$this->primary_key.\"`='\".$this->$pk_getter().\"'\";\n\t\n\t\tdbQuery($query);\n\t}", "title": "" }, { "docid": "0814abf8dde9a8066f54be6e9996f4f5", "score": "0.7475814", "text": "public function delete(){\n\t\t//Llama al metodo estatico de borrar y le pasa el id del objeto actual\n\t\tself::__delete($this->id);\n\t}", "title": "" }, { "docid": "ec39a5adf470d769a003bef28939d4b5", "score": "0.74629813", "text": "public function delete()\n\t{\n\t\t$this->__delete();\n\t}", "title": "" }, { "docid": "ec39a5adf470d769a003bef28939d4b5", "score": "0.74629813", "text": "public function delete()\n\t{\n\t\t$this->__delete();\n\t}", "title": "" }, { "docid": "47d0be3614546a9025c0b667488f2494", "score": "0.7435337", "text": "function delete()\n {\n $class = get_called_class();\n $query = \"DELETE FROM \" . static::$tableName . \" WHERE \" . static::$primaryKey . \"=:id LIMIT 1\";\n $statement = Connection::make(App::get('config')['database'])->prepare($query);\n $statement->execute(array(':id' => $this->columns[static::$primaryKey]));\n }", "title": "" }, { "docid": "ce9bdc986f6127b8b7e83d6c19b2011f", "score": "0.7380592", "text": "public function delete()\n\t{\n\t\t$sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $this->id . ' = :' . $this->id . ' LIMIT 1;';\n\t\t$input_parameters[':' . $this->id] = $this->record[$this->id];\n\n\t\treturn $this->db->execute($sql, $input_parameters);\n\t}", "title": "" }, { "docid": "2f4af1ea9c03ee463249c0d98eab48fe", "score": "0.73729074", "text": "public function delete()\n {\n $this->sql = \"DELETE FROM {$this->table} WHERE {$this->pk} = '{$this->{$this->pk}}'\";\n\n $this->db->query($this->sql);\n $data = $this->getLoadedData($this);\n\n foreach ($data as $key => $value) {\n unset($this->{$key});\n }\n $this->editable = false;\n $this->resetVars();\n\n return true;\n }", "title": "" }, { "docid": "7ef228a02e3ea53c8a96d738726bb983", "score": "0.73608166", "text": "public function delete(){\r\n self::$operation = \"Delete\";\r\n $sql = 'delete from '.static::$tableName.' where id =' .$this->id;\r\n $this->runQuery($sql);\r\n }", "title": "" }, { "docid": "e062dc09d5bc8681f70969c914fd972c", "score": "0.7347769", "text": "public function destroy() {\n\t\t$db = DB::instance();\n\t\t$res = $db->exec( \"delete from $this->table where $this->id = \".$this->getId() );\n\t\tif( $res === false )\n\t\t\t$this->addError( \"Could not delete record.\" );\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "d7b4c8529af8dff2d930fd692288f5ba", "score": "0.7331443", "text": "public function delete () {\n $this->db->delete($this->config()->table_name, array('id_'.$this->config()->class_name => $this->{'id_'.$this->config()->class_name}));\n }", "title": "" }, { "docid": "327dc2065eac9f43d5c3c4a278d1b1e8", "score": "0.7325623", "text": "public function delete() {\n if (!ObjectModel::$db)\n ObjectModel::$db = Db::getInstance();\n\n if (!$this->_db)\n $this->_db = ObjectModel::$db;\n\n\n $this->clearCache();\n\n $result = $this->_db->delete($this->def['table'], '`' . pSQL($this->def['primary']) . '` = ' . (int) $this->id);\n\n if (!$result)\n return false;\n\n $this->id = null;\n\n return $result;\n }", "title": "" }, { "docid": "8f067b956b8bae3cdf091ba66cd62d31", "score": "0.7302634", "text": "function __delete_record() {\n\t\t$keys = self::__pk();\n\t\t$table = self::__table();\n\n\t\tforeach($keys AS $field) {\n\t\t\t$request[] = \"{$field} = :{$field}\";\n\t\t\t$execut_values[':'.$field] = $this->{$field};\n\t\t}\n\n\t\tD::$db->exec(\"DELETE FROM {$table} WHERE \".implode(' AND ', $request).\" LIMIT 1\", $execut_values);\n\t}", "title": "" }, { "docid": "f925cbf54a54e5d89f03165e76554ac5", "score": "0.72981817", "text": "function delete() {\n\t\treturn $this->getModule()->deleteRecord($this);\n\t}", "title": "" }, { "docid": "2fee01f8b5c28ccfd0a94cf1fe0b666a", "score": "0.72812164", "text": "function delete()\n\t{\n\t\tglobal $sql;\n\t\t$sql->Query(\"DELETE FROM $this->tablename WHERE id = '$this->id'\");\n\t}", "title": "" }, { "docid": "2a57aacdc18cead00b4d7ab99184332a", "score": "0.7265015", "text": "public function delete()\n\t{\n\t\t$this->clean();\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "8dfe50f74b194e0312b8ce277937bedf", "score": "0.72540504", "text": "public function delete()\r\n\t{\r\n\t\tglobal $db;\r\n\r\n\t\t$id = $this->data['id'];\r\n\r\n\t\tif(isset(static::$cache[$id]))\r\n\t\t\tunset(static::$cache[$id]);\r\n\r\n\t\t$db->delete_query(static::$table, \"id='{$id}'\");\r\n\t}", "title": "" }, { "docid": "4f664863e37ceb0f9d4bf2ce31572d21", "score": "0.7251756", "text": "public function delete() {\n return $this->getDao()->delete($this->id);\n }", "title": "" }, { "docid": "463aa4f5b54e593843ddbd412fa572b2", "score": "0.72418123", "text": "function delete()\r\n\t{\r\n\t\tglobal $sql;\r\n\t\t$sql->Query(\"DELETE FROM $this->tablename WHERE id = '$this->id'\");\r\n\t}", "title": "" }, { "docid": "f5322c364abfb1514c16af9e8aa15d9e", "score": "0.7222642", "text": "function delete(){\n\n // SQL query to delete given record\n $query = \"DELETE FROM {$this->tableName} WHERE id=:id\";\n \n // Prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // Santize and bind property\n $this->id = parent::sanitize($this->id);\n $stmt->bindParam(\":id\", $this->id);\n \n // Execute query\n if($stmt->execute()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "93c0171379ad596c911e124be9dbd6d7", "score": "0.7222383", "text": "public function delete(){\r\n $sql_statement = \"DELETE FROM \".$this->table.\" WHERE id = ? \";\r\n return $this->executeQuery( $sql_statement, 'i', array($this->id), true );\r\n }", "title": "" }, { "docid": "31b72266c3a186afec5fd9fa1a6d955b", "score": "0.72197634", "text": "protected function _delete()\n\t{\n\t//\tconect to db\n\t\t$db = database::connect($this->get_env());\n\t\t$preparedData['id'] = $this['id']->get();\n\t//\tdelete main table entry\n\t\t$db->stack('DELETE FROM `'.$this->get_table().'` WHERE `id` = :id LIMIT 1', $preparedData);\n\t//\tdelete relations\n\t\t$db->stack('DELETE FROM `'.attrRel::table.'` WHERE `item` = \"'.$this->get_table().'\" AND `itemid` = :id', $preparedData);\n }", "title": "" }, { "docid": "fb3e1cde6b1cfcb50b1cdcc1091a6685", "score": "0.72147083", "text": "public function deleteRecord() {\n\t\t$db = getPDOInstance();\n\n\t\t$query = oci_parse($db, FamilyDoctor::DELETE);\n\n\t\toci_bind_by_name($query, \":patient_id\", $this->patient_id);\n\t\toci_bind_by_name($query, \":doctor_id\", $this->doctor_id);\n\t\t\n\t\toci_execute($query);\n\t}", "title": "" }, { "docid": "feaf738226dbf1bbeb79eea50e2aa52a", "score": "0.7172514", "text": "function delete() {\n global $db;\n mb_debugMessage(\"Deleting a record\");\n\n //Prioritize using the primary key if one is set.\n if($this->mb_primary_key != \"\" && $this->{$this->mb_primary_key} != \"\") {\n $this->mb_wc = \"WHERE \" . $this->mb_primary_key . \"=?\";\n $values[] = $this->{$this->mb_primary_key};\n }\n //No primary key? Okay.\n else {\n if(!$this->wc_type == ModelBuddyModel::wc_use_key) {\n foreach($this->mb_custom_wc_values as $wc_value) {\n $values[] = $wc_value; //How convenient we built this array for the constructor's select statement ;)\n }\n }\n else {\n $values[] = $this->{$this->mb_primary_key};\n }\n }\n\n //The query...\n $query = \"DELETE FROM {$this->mb_class} {$this->mb_wc} LIMIT 1\";\n\n //Execute the query\n try {\n mb_debugMessage($query);\n mb_debugMessage($values);\n $stmt = $db->prepare($query);\n $stmt->execute($values);\n }\n catch(PDOException $e) {\n die(\"Error deleting \" . $this->mb_class . \" record.<br/><br/>\" . $e);\n }\n\n /*\n * Wipe WC data so we can re-insert the record later in program execution if needed.\n */\n $this->{$this->mb_primary_key} = \"\";\n $this->mb_wc = \"\";\n $this->mb_custom_wc_values = \"\";\n $this->wc_type = \"\";\n }", "title": "" }, { "docid": "0108b03b11de9f546700066dd79011ba", "score": "0.7152918", "text": "public function delete()\n {\n // Determine the key name\n $key_name = $this->_get_key_name();\n\n // Attempt to remove the Kyoto Tycoon record\n $this->_db->remove($key_name);\n\n // Remove any alternate primary keys\n $this->_remove_alternate_primary_keys();\n\n // Return the reference to this class instance\n return $this;\n }", "title": "" }, { "docid": "53d0b251ad74d81a55068a7f4af24324", "score": "0.7119153", "text": "public function delete() {\n\t\t$dbh = static::getInstance();\t\t\n\t\t$sth = $dbh->prepare(\"DELETE FROM \" . static::$table . \" WHERE \" . \n\t\t\tstatic::$id_name . \" = :id\");\n\t\t$sth->bindValue(\":id\", $this->{$class::$id_name});\n\t\treturn $sth->execute();\n\t}", "title": "" }, { "docid": "5cedc485052d0e915264c29b95ddf6f6", "score": "0.71187377", "text": "public function delete()\n {\n try {\n \n // Begin transaction \n // -if no erros, will commit entire transaction at bottom \n // -else rollback\n $db->beginTransaction(); #begin transaction\n \n $db = Database::getDb();\n $table = $this->getTable();\n \n $sth = $db->prepare(\"DELETE FROM $table WHERE id = :id\");\n $sth->execute(array(':id' => $this->id));\n \n // If nothing has gone wrong, commit the entire transaction to the database\n $db->commit(); #commit transaction\n \n }catch (PDOException $e) {\n // There was an error during the transaction, so the database will be rolled back\n // to previous state, and an error thrown\n $db->rollback(); #rollback the database\n throw new PDOException(\"Database Error: $sqlComplete\\nCode: \".$sth->errorCode().\"\\nInfo: \". $sth->errorInfo());\n }\n }", "title": "" }, { "docid": "3a2fa374d4fa144b0fe47c3f8a00641d", "score": "0.7082988", "text": "public function delete()\n {\n $this->deleted_at = date('Y-m-d H:i:s');\n $this->save();\n }", "title": "" }, { "docid": "0a5867910ca74234248f9927b8bd5125", "score": "0.70616794", "text": "public function delete()\n {\n if(!isset($this->id)){\n return false;\n }\n return $this->execute(\"DELETE FROM \".$this::$table.\" WHERE id = $this->id\");\n }", "title": "" }, { "docid": "a95a251bba7e18cff952c09482c1626d", "score": "0.70611477", "text": "public function _dbDelete()\n\t{\n\t\t$keys = array_keys($this->data);\n\t\t$id_n = $keys[0];\n\t\t$id_v = $this->$keys[0];\n\t\t$table_name = Config::$map_tables[$this->model_type];\n\t\t$sql = \"DELETE FROM $table_name WHERE $id_n = $id_v\";\n\t\t\n\t\t$this->db->exec($sql);\n\t}", "title": "" }, { "docid": "34aac990fea03616a31a472df256c0dc", "score": "0.70606095", "text": "public function delete() {\n if ($this->id) {\n $db = new DBConnection();\n\n return $db->delete($this->convert_to_table_name($this->className)\n , $this->id);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "0db69365dde0f1c0f3f2fcd406276e47", "score": "0.70568895", "text": "public function delete()\n { if (is_null($this->id))\n trigger_error(\"Spectra::delete(): Attempt to delete a Spectra object that does not have its ID property set.\", E_USER_ERROR);\n\n // Delete the Spectra\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $st = $conn->prepare(\"DELETE FROM spectra WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "5bb29e2d62ce3e5fe8c24e5be4a6f6d1", "score": "0.70511365", "text": "public function delete() {\n\t\tglobal $database;\n\n\t\t$pk_string = static::$pk_field;\n\n\t\t$delete_query = \"DELETE FROM \" . static::$db_table . \" WHERE {$pk_string} = :{$pk_string}\";\n\t\t// $delete_query .= \" LIMIT 1 OFFSET 0\";\n\n\t\t$prepared_query = $database->pgsql_ob->prepare($delete_query);\n\n\t\t$prepared_query->bindValue(\":{$pk_string}\", $this->$pk_string);\n\n\t\t$prepared_query->execute();\n\n\t\treturn $prepared_query->rowCount() == 1 ? true : false;\n\t\t\n\t}", "title": "" }, { "docid": "3ee94c1436ca5382e4b4b74176675755", "score": "0.70389205", "text": "public function deleteRecord()\n {\n $sql = \"DELETE FROM `contact_us` WHERE id = :id\";\n $db = static::getDB();\n $stmt = $db->prepare($sql);\n\n\n $stmt->bindValue(':id', $this->id, PDO::PARAM_INT);\n \n return $stmt->execute();\n }", "title": "" }, { "docid": "ca6774ab4504c89de9f10f65bbb79558", "score": "0.7031882", "text": "public function delete()\n {\n global $databaseHandler;\n\n $statement = $databaseHandler->prepare('DELETE FROM `game` WHERE `id` = :id');\n $statement->execute([ ':id' => $this->id ]);\n\n $this->id = null;\n }", "title": "" }, { "docid": "055d8346037bccf9566eb6bcf8b537fd", "score": "0.70267254", "text": "public function delete()\r\n {\r\n if(!$this->id) {\r\n trigger_error(\"Deleting requires id\", E_USER_ERROR);\r\n }\r\n $prefix= confGet('DB_TABLE_PREFIX');\r\n $query= \"update {$prefix}{$this->_type} SET state=-1 WHERE id= $this->id\";\r\n $dbh = new DB_Mysql;\r\n $dbh->prepare($query)->execute();\r\n\r\n #--- deleting yourself? ----\r\n unset($this);\r\n return true;\r\n }", "title": "" }, { "docid": "dd9ed86e6c7b5a687e1e8814cb89b16f", "score": "0.7003201", "text": "public function delete() {\n // delete auch als statische Methode anlegbar $seminar::delete(5)\n // und sofort mit Parameterübergabe\n // ohne Parameter (wie hier) muss man zuerst das Objekt holen und dann löschen\n\n $sql = 'DELETE FROM '. self::$tableName .' WHERE id = ?';\n $statement = self::$db->prepare($sql);\n $statement->execute(array($this->getId()));\n\n // id auf 0 setzen, da der Datensatz in seminare nicht mehr existiert\n $this->id = 0;\n }", "title": "" }, { "docid": "3c91c642d62c969c158b37413a399fd7", "score": "0.69939864", "text": "public function delete(){\n if($this->id > 0){\n SQL::delete($this::STORAGE, [\"id\" => $this->id]);\n }\n }", "title": "" }, { "docid": "edb573d5a13c3067f80b73396f9065e9", "score": "0.69659525", "text": "public function DeleteObject()\n {\n $arrayWhere = array(array($this->getColumn(), \"=\", null));\n $Data = array($this->{$this->getColumn()});\n $Query= $this->Delete($arrayWhere, $Data);\n $this->ClearData();\n }", "title": "" }, { "docid": "4f43fbf14adb9db5f486e2b35d57c3c4", "score": "0.6962543", "text": "public function deleteRecord()\n {\n $domainId = $this->getDomainId();\n $where = Filter::addFilterCondition([\n 'id = ' . intval($this->getParamsFetcher()->getParam('id'))\n ]);\n\n return $this->model->deleteFiltered($domainId, $where);\n }", "title": "" }, { "docid": "924b6b9a83394dfaaa321b7ac3587172", "score": "0.6959745", "text": "public function delete()\n\t{\n\t \tif (!Validate::isTableOrIdentifier($this->identifier) || !Validate::isTableOrIdentifier($this->table))\n\t \t\tdie(Tools::displayError());\n\n\t\t/* Database deletion */\n\t\t$result = DB::Execute('DELETE FROM `'.$this->table.'` WHERE `'.$this->identifier.'` = '.intval($this->id));\n\t\tif (!$result)\n\t\t\treturn false;\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "cf5431f512cbada593ea80e020c1ac62", "score": "0.6953962", "text": "public function delete() {\n\n // catch errors\n $opt = array(\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC\n );\n\n // Does an object have ID?\n if ( is_null( $this->id ) ) trigger_error ( \n \"Person::delete(): Attempt to delete an Person object that does not have its ID property set.\", E_USER_ERROR );\n\n // Remove person\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD, $opt );\n $st = $conn->prepare ( \"DELETE FROM person WHERE id = :id LIMIT 1\" );\n $st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "a4d6b7d822db25797e4f513eb945148c", "score": "0.6949892", "text": "public function delete() {\n\t\t\treturn (new Actions\\Delete($this->getPDO(), $this->getTable()))->addOperations($this->getOperations('*'))->execute();\n\t\t}", "title": "" }, { "docid": "9729fb122be0d6a0e0993829a6f636fe", "score": "0.6945583", "text": "public function delete()\n {\n\t// look at the object this is called with, get its properties\n\t$properties = get_object_vars($this);\n\t$currentProperties = $properties['values'];\n\n\t$ci = &get_instance();\n\t$ci->db->delete($this->table,$currentProperties);\n }", "title": "" }, { "docid": "65f699b1341bdcef79c955b373119b6e", "score": "0.69451344", "text": "public function delete()\n {\n self::$dbh = DbConnect::getConnection();\n $table = static::$tableName;\n\n $query = \"DELETE FROM $table WHERE id=\" . $this->params['id'];\n $sth = self::$dbh->prepare($query);\n\n return $this->execQuery($sth);\n }", "title": "" }, { "docid": "f1e2a007f264dc5bba33b3eeeec1c656", "score": "0.69432807", "text": "function TableDeleteRecord() {\n $this->TableUpdateDatabase(\"DELETE FROM \".$this->Tables[$this->MainTbl]->TblName.$this->TableKeyWhereClause(), \"deleted\");\n }", "title": "" }, { "docid": "fcd82869c6d38bd4a9a2fe27cb948a44", "score": "0.6938294", "text": "public function delete()\n {\n $this->queryString = 'DELETE FROM ' . $this->table . ' ';\n return $this;\n }", "title": "" }, { "docid": "e288f39b7db55bc888985ff905c075ad", "score": "0.69310135", "text": "public function delete() {\n global $DB;\n $query = \"DELETE FROM students WHERE id = {$this->id}\";\n $result = $DB->query($query);\n Student::checkResult($result);\n }", "title": "" }, { "docid": "67f65b88e0433e19a032532225389cbf", "score": "0.6930064", "text": "public function delete() {\n\t\treturn Database::queryDelete($this);\n\t}", "title": "" }, { "docid": "7030861fc4130cea72c43295d327525d", "score": "0.6923271", "text": "public function delete()\r\n\t{\r\n\t\treturn $this->getMapper()->delete($this);\r\n\t}", "title": "" }, { "docid": "0228292d77d23d023265245f2f935c4d", "score": "0.6905621", "text": "public function delete() {\n $table = $this->getTableName();\n $mysql = $this->getMySQL();\n\n try {\n if (isset($this->id) && !is_nan($this->id) && $this->id > 0) {\n // TODO: recursively delete all relationships\n $relationships = $this->getRelationships();\n foreach ($relationships as $relation) {\n if ($relation instanceof OneToOne) {\n // This is a child-side relationship so skip it\n continue;\n }\n\n $relation->deleteAll();\n }\n\n $mysql->deleteRow($table, $this->uuid);\n\n // Unset the id, beccause the row is no longer attached\n unset($this->id);\n }\n }\n catch (DBException $exception) {\n throw $exception;\n }\n }", "title": "" }, { "docid": "1f5269732eb72122890806fc9b220658", "score": "0.69023645", "text": "public function delete()\n {\n return self::createMapper()->delete($this);\n }", "title": "" }, { "docid": "45708c2f34d207aeba7e0fe1affa01ae", "score": "0.68827415", "text": "public function delete()\n\t{\n\t\t$table = $this->table();\n\t\t$table->delete($table->getAdapter()->quoteInto('id = ?', $this->_id));\n\t\t// titik dan table diurus oleh foreign constraint postgresql\n\t\t// lastly: update durasi cb\n\t\tstatic::updateDurasi($this->_cbId);\n\t}", "title": "" }, { "docid": "3f002555c0595c26a6068ca3a26b336c", "score": "0.6880028", "text": "public function delete() {\n $this->query = \"DELETE FROM \";\n return $this;\n }", "title": "" }, { "docid": "2405b60e1921d839377ba810b0d3ba64", "score": "0.6866419", "text": "public function delete()\n\t{\n\t\tLMongo::collection($this->collection)->where('_id', $this->_id)->remove();\n\t}", "title": "" }, { "docid": "74d5c24a161ce9227e32b0a7db328339", "score": "0.68639433", "text": "public function delete()\n\t{\n\t\t$table = $this->table();\n\t\t$table->delete($table->getAdapter()->quoteInto('id = ?', $this->_id));\n\t\t// titik dan table diurus oleh foreign constraint postgresql\n\t\t// lastly: update durasi cb\n\t\tself::updateDurasi($this->_cbOperasionalId);\n\t}", "title": "" }, { "docid": "20b936cd00fe32951f5dfd1985ad720f", "score": "0.684588", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "1f3d07c6f0efd155ea58ccec61acbe1e", "score": "0.6844231", "text": "protected function delete()\n {\n $this->DNS_FieldObject->deleteDNSRecord($this);\n //Allow to delete this DNS_Record to the list_DNSRecords of Domain.\n $this->domainObject->deleteDNSRecord($this);\n }", "title": "" }, { "docid": "aaf30b369d8f0d7ffa70a6fd5f9981a7", "score": "0.6841113", "text": "public function delete()\n {\n if (!$this->isCreated())\n {\n return true;\n }\n \n return $this->getDatabase()->delete($this->sTable, $this->id);\n }", "title": "" }, { "docid": "2bc2e902265f8451c049e6d39bc0e138", "score": "0.68400365", "text": "public function delete() {\n $this->con_do(\"drop table {$this->db_table}\");\n }", "title": "" }, { "docid": "be0756047a7c1f1d53358f5459ab2064", "score": "0.68305224", "text": "public function delete()\n { if (is_null($this->id))\n trigger_error(\"Reaction::delete(): Attempt to delete a Reference object that does not have its ID property set.\", E_USER_ERROR);\n\n // Delete the Reaction\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $st = $conn->prepare(\"DELETE FROM reaction WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "bd3f354ff4514ac674aa9f9f7c3bf42e", "score": "0.6825374", "text": "function delRecord()\n {\n if ($this->data['Board']['id'] != '') {\n $this->Board->delete($this->data['Board']['id']);\n }\n $this->redirect('.');\n }", "title": "" }, { "docid": "af7816841883ee60dbfe00fd78547e06", "score": "0.68245846", "text": "public function delete() {\r\n \r\n // Does the Article object have an ID?\r\n if ( is_null( $this->id ) ) trigger_error ( \"Article::delete(): Attempt to delete an Article object that does not have its ID property set.\", E_USER_ERROR );\r\n \r\n // Delete the Article\r\n $conn = new PDO(DB_DSN);\r\n $st = $conn->prepare ( \"DELETE FROM articles WHERE id = :id\" );\r\n $st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n $st->execute();\r\n $conn = null;\r\n }", "title": "" }, { "docid": "00a92b43ed089e0a7e16cc76191c680d", "score": "0.6816244", "text": "public function delete()\n {\n $this->deleted = true;\n }", "title": "" }, { "docid": "9e6d587ff709c1b5fc5804c62cb4af44", "score": "0.68160653", "text": "public function delete()\n\t\t{\n\t\t\t$this->activerecord['delete'] = true;\n\t\t\treturn $this->query();\n\t\t}", "title": "" }, { "docid": "b8dc28a871a39daa37db96740e15a3f3", "score": "0.6815975", "text": "public function delete() {\n\t\t$this->getRequest()->request($this->getUri().'delete.json', 'DELETE', [\n\t\t\t'id' => $this->getId(),\n\t\t]);\n\n\t\t$this->data = null;\n\t}", "title": "" }, { "docid": "34bb2154a288f3aaa752ef81009f0bf0", "score": "0.68126047", "text": "public function delete() {\n\n // Does the Todo object have an ID?\n if ( is_null( $this->id ) ) trigger_error ( \"Todo::delete(): Attempt to delete a Todo object that does not have its ID property set.\", E_USER_ERROR );\n\n // Delete the Todo\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare( \"DELETE FROM todos WHERE id = :id LIMIT 1\" );\n $st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "540cbe8cea7ca2269b89e664fc667521", "score": "0.68113375", "text": "public function delete()\n {\n global $DB;\n $this->deleted = 1;\n $DB->update_record('certif', $this);\n }", "title": "" }, { "docid": "f2ea2e21e11585078e32ad7c882a8848", "score": "0.68069005", "text": "public function Delete()\n\t{\tif ($this->CanDelete())\n\t\t{\t$sql = 'DELETE FROM ' . $this->tablename . ' WHERE ' . $this->idfield . '=' . (int)$this->id;\n\t\t\tif ($result = $this->db->Query($sql))\n\t\t\t{\tif ($this->db->AffectedRows())\n\t\t\t\t{\t$this->DeleteExtra();\n\t\t\t\t\t$this->Reset();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} //else echo '<p>', $sql, ': ', $this->db->Error(), '</p>';\n\t\t} //else echo 'cant delete';\n\t}", "title": "" }, { "docid": "a56f513ae5bceb86907ef24f5ead5f1e", "score": "0.68002963", "text": "public function delete(){\r\n $this->sql = \"DELETE \";\r\n return $this;\r\n }", "title": "" }, { "docid": "808ead44668bd68ad20f9a3b26c9aa98", "score": "0.6789786", "text": "public function delete(){\n\n\t\tif ( isset($this->fields) ){\n\t\t\tDataAccessLayer::delete( get_called_class(), $this->as_array() );\n\t\t} else {\n\t\t\tthrow new Exception('This is not a populated model instance');\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "849372e907a6f62f56e335a3e67083bc", "score": "0.67865425", "text": "public function delete(){}", "title": "" }, { "docid": "849372e907a6f62f56e335a3e67083bc", "score": "0.67865425", "text": "public function delete(){}", "title": "" }, { "docid": "501c01610d2af37637111ec46a3682d8", "score": "0.678314", "text": "public function delete() {\n\t\t\tglobal $database;\n\t\t\t\n\t\t\t$sql = \"DELETE FROM \" . self::$table . \" \";\n\t\t\t$sql .= \"WHERE id = \" . $database->escape_value($this->id) . \" \";\n\t\t\t$sql .= \"LIMIT 1\";\n\t\t\t\n\t\t\t$database->query($sql);\n\t\t\treturn ($database->affected_rows() == 1) ? true : false;\n\t\t}", "title": "" }, { "docid": "49c6799246a5e776fc5afa53455ba090", "score": "0.67798144", "text": "public function delete()\n {\n if ($this->beforeDelete()) {\n $table = $this->getTableName();\n Core::$app->db->delete($table, ['id' => $this->{'id'}]);\n $this->afterDelete();\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "571ab31c7fd3c2623d2e34603083e275", "score": "0.6772863", "text": "public function delete()\n {\n $collection = self::getCollection();\n $collection->deleteOne(array('_id' => $this->attributes['_id']));\n $this->attributes = [];\n return true;\n }", "title": "" }, { "docid": "e523adf7245d7b7b1bc91863c0f8ff95", "score": "0.6772147", "text": "public function delete(){\n\t\t$this->addType('DELETE');\n\t\treturn $this->prepare();\n\t}", "title": "" }, { "docid": "0d3d506cf3a6d55d9fa4cf7e555a4195", "score": "0.67711943", "text": "public function delete() {\n \treturn $this->data_delete_record();\n }", "title": "" }, { "docid": "531190440150acb20073d9e4ad7cafa4", "score": "0.6742404", "text": "public function delete()\n\t{\n\t\t$table = self::get_table();\n\t\t$where_array = array();\n\t\t$query = \"DELETE FROM $table WHERE \";\n\t\t$columns = self::get_columns();\n\t\t$id = array_shift($columns);\n\t\t$query .= $id.\" = \".$this->$id;\n\n\t\ttry \n\t\t{\n\t\t\tDatabase::query($query);\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" } ]
1d139b4d11f0020ce9de316cae95f370
Returns true if the provided function returns true for at least one element fo the collection, false otherwise.
[ { "docid": "4170b646991b67d59f62f31f1e98606b", "score": "0.6683006", "text": "final public static function validateAny(array $collection, $method): bool\n {\n return count(self::filter($collection, $method)) > 0;\n }", "title": "" } ]
[ { "docid": "d57719a226625ca32e14139f9ef35efa", "score": "0.747833", "text": "public function hasAny()\n\t{\n\t\treturn $this->count() >= 1;\n\t}", "title": "" }, { "docid": "bfcdd9c0cc1e011b6399e6a9bb234a31", "score": "0.7220716", "text": "function any($callback, $iterable)\n{\n if ($callback === null) {\n $callback = function ($item) {\n return (bool) $item;\n };\n }\n foreach ($iterable as $it) {\n if ($callback($it)) {\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "ef082c7ee542dad44d100a230f84b1f0", "score": "0.71823734", "text": "public function any()\n {\n return $this->count() > 0;\n }", "title": "" }, { "docid": "27a4e8bb6b913a0b76eac3a4d80aec1c", "score": "0.70771116", "text": "function any(iterable $iterable, Closure $predicate): bool\n{\n foreach ($iterable as $value) {\n if ($predicate($value)) {\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "078b5b224f1d370b23716cef5784873a", "score": "0.6990933", "text": "public function any(): bool\n {\n return $this->count() > 0;\n }", "title": "" }, { "docid": "22e6ba3bd0cc055ff520a81fb5c135ac", "score": "0.69801134", "text": "public function isAny()\n {\n return ( count($this->o) == 0 );\n }", "title": "" }, { "docid": "0921c6f78af4edcd46a7c668ad87162e", "score": "0.69280803", "text": "function all($callback, $iterable)\n{\n if ($callback === null) {\n $callback = function ($item) {\n return (bool) $item;\n };\n }\n foreach ($iterable as $it) {\n if (! $callback($it)) {\n return false;\n }\n }\n\n return true;\n}", "title": "" }, { "docid": "a95765438bbed48832a3e5cf724a5b77", "score": "0.68679273", "text": "public function hasItems(){\r\n if(count($this->collection) > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "c2172e2bda3319aafab4fdb7e9a60068", "score": "0.68533826", "text": "function all(callable $fn, iterable $coll): bool\n{\n return !some(not($fn), $coll);\n}", "title": "" }, { "docid": "1c3caa6dfd8289919811cc9d6220a9b5", "score": "0.6825121", "text": "function is_all(callable $func, ...$values) : bool {\n foreach ($values as $value) {\n if (!(bool)call_user_func($func, $value)) {\n return false;\n }\n }\n return count($values) > 0;\n }", "title": "" }, { "docid": "a112b7c813e3869c7d7f45e2aeb0f8bc", "score": "0.67720056", "text": "public function has()\n {\n return !empty($this->collection);\n }", "title": "" }, { "docid": "4f38e95caf1d4a1ef0b0186059ce0e2d", "score": "0.676147", "text": "function any(array $list, $tester_callback=NULL)\n{\n\tif(is_null($tester_callback))\n\t{\n\t\tforeach($list as $l)\n\t\t\tif($l)\n\t\t\t\treturn true;\n\t}\n\telse\n\t{\n\t\tforeach($list as $l)\n\t\t\tif(call_user_func($tester_callback,$l))\n\t\t\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "9703ea070da23a221bddd949afdcd68d", "score": "0.6738251", "text": "public function containsAll (Collection $collection) : bool;", "title": "" }, { "docid": "67385b292addb4b62afa6b6bfcc5011e", "score": "0.66558874", "text": "function is_any(callable $func, ...$values) : bool {\n foreach ($values as $value) {\n if ((bool)call_user_func($func, $value)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "d8b2adbac01bd7a0378465507f8d64cf", "score": "0.66429675", "text": "public final function areThere()\n {\n \n return $this->size() >= 1;\n }", "title": "" }, { "docid": "31d4846019f0885907d99070cc4dc930", "score": "0.6641006", "text": "public static function all(Common\\Mutable\\ISet $xs, callable $predicate) {\n\t\t\tforeach ($xs as $i => $x) {\n\t\t\t\tif (!$predicate($x, $i)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true; // yes, empty returns \"true\"\n\t\t}", "title": "" }, { "docid": "7149485ea22301a2bdf38eae57268311", "score": "0.64881796", "text": "public static function any(Common\\Mutable\\ISet $xs, callable $predicate) {\n\t\t\tforeach ($xs as $i => $x) {\n\t\t\t\tif ($predicate($x, $i)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "d49fa8f165c21e41af0e6b24d418c436", "score": "0.6487915", "text": "function some(callable $callback, iterable $iterable): bool\n{\n return Tools::some($callback, $iterable);\n}", "title": "" }, { "docid": "298d680a1749efd3384f1faa996341d7", "score": "0.64861417", "text": "public function exists(callable $exists): bool\n {\n foreach ($this as $element) {\n if (true === $exists($element)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "8c16f89f3474c747490a7710e46a5043", "score": "0.64701426", "text": "function every(callable $callback, iterable $iterable): bool\n{\n return Tools::every($callback, $iterable);\n}", "title": "" }, { "docid": "1e9adc5f787280e3e91bcfccb32e9ea8", "score": "0.64540845", "text": "function is_empty_any(...$values) : bool {\n return is_any(\n function ($value) {\n return empty($value);\n },\n ...$values\n );\n }", "title": "" }, { "docid": "b92ac2c7ea7b89f2d0d55e9d1010ebe0", "score": "0.64318943", "text": "public function allAny();", "title": "" }, { "docid": "9b02db2edf8e302ff354d46c5aa96365", "score": "0.6415223", "text": "function is_true_any(...$values) : bool {\n return is_any(\n function ($value) {\n return $value === true;\n },\n ...$values\n );\n }", "title": "" }, { "docid": "4c8d504e8d4b9be9b0815da73893f23c", "score": "0.6385286", "text": "public function collectionExists ($collection) {\r\n return isset($this->data[$collection]);\r\n }", "title": "" }, { "docid": "3d008251db8976f1d1cbe8f63e06514d", "score": "0.63566935", "text": "function aempty() {\n foreach(func_get_args() as $arg){\n if(empty($arg)) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "3211662b0f9a21fad7e3291489f60abb", "score": "0.62997526", "text": "function has()\n\t{\n\t\t$args=func_get_args();\n\t\t\n\t\tforeach($args as $arg)\n\t\t\tif (isset($this->_data[$arg]))\n\t\t\t\treturn true;\n\t\t\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "494a4c3fc09fca6e6fd852b8c4c18de2", "score": "0.6296069", "text": "public function hasAnyItems($itemList) {\n foreach ($itemList as $i)\n if ($this -> hasItem($i))\n return true;\n\n return false;\n }", "title": "" }, { "docid": "b54115782bbb4fa239f1db22fc01fe22", "score": "0.628743", "text": "function mempty() {\n foreach(func_get_args() as $arg)\n if(empty($arg))\n continue;\n else\n return false;\n return true;\n}", "title": "" }, { "docid": "52367f917f5a850f874bf23034fc77bb", "score": "0.6283127", "text": "public function hasElements()\n {\n return (count($this->_elements) > 0) ? true : false;\n }", "title": "" }, { "docid": "7c8b3061bba933e05c96f14d5f220cbb", "score": "0.6266635", "text": "public function shouldBeHandledAsCollection(): bool;", "title": "" }, { "docid": "7ba9805dd453db09aed9c007d7795633", "score": "0.6235459", "text": "public function isEmpty() : bool\n {\n return $this->getInternalCollection()->isEmpty();\n }", "title": "" }, { "docid": "cf12f12e534109777b2781d97053dd95", "score": "0.6232176", "text": "public function hasCollection($collection)\n {\n return in_array($collection, $this->listCollections());\n }", "title": "" }, { "docid": "5ad424e931e91f622cbad1ad4c0a70c2", "score": "0.6231357", "text": "function every(array $list, $tester_callback=NULL)\n{\n\tif(is_null($tester_callback))\n\t{\n\t\tforeach($list as $l)\n\t\t\tif(!$l)\n\t\t\t\treturn false;\n\t}\n\telse\n\t{\n\t\tforeach($list as $l)\n\t\t\tif(!call_user_func($tester_callback,$l))\n\t\t\t\treturn false;\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "610b53abf8cf247003dbe3710b63939e", "score": "0.62269765", "text": "public function hasItems();", "title": "" }, { "docid": "09e6d72445a93580f4e082ae61e42677", "score": "0.6221574", "text": "public function hasItems()\n {\n return (count($this->getItems()) > 0);\n }", "title": "" }, { "docid": "6b2933b73aa2785747e1d23578d50f7b", "score": "0.62167925", "text": "public function isEmpty()\n\t{\n\t\treturn $this->count() == 0;\n\t}", "title": "" }, { "docid": "7a5425ce375501ed82e3c4a5c0f9a591", "score": "0.6195004", "text": "public function exists()\n\t{\n\t\treturn $this->one() !== null;\n\t}", "title": "" }, { "docid": "396e2167cce5c1e48506ce5618513488", "score": "0.61933583", "text": "public function containsAll(CollectionInterface $collection): bool\n {\n return $this->containsAllArray($collection->toArray());\n }", "title": "" }, { "docid": "301edb53773e1a15409b1950027d70a1", "score": "0.6186657", "text": "public function isEmpty()\n\t{\n\t\treturn $this->count() === 0;\n\t}", "title": "" }, { "docid": "4353f84db561c5f51edcd13a7912857c", "score": "0.6182695", "text": "function all() {\n $predicates = func_get_args();\n return _curry_one(function($value) use(&$predicates) {\n foreach ($predicates as $predicate) {\n if (! $predicate($value))\n return false;\n }\n return true;\n });\n}", "title": "" }, { "docid": "b54d59f13ff38035ca27510f4a0ecd9c", "score": "0.61602724", "text": "public final function isEmpty()\n {\n return $this->size() == 0;\n }", "title": "" }, { "docid": "8a2191a45f0e82e16e4094f532bcddb0", "score": "0.6154246", "text": "public function isEmpty()\n {\n return count($this->set) === 0;\n }", "title": "" }, { "docid": "486bbeebd86f363e322839e7f17356f8", "score": "0.61416614", "text": "public function exists()\n {\n return $this->clone()->keysOnly()->take(1)->get('*')->count() > 0;\n }", "title": "" }, { "docid": "58774a48dacf15075a3337a388550374", "score": "0.61397535", "text": "public function isEmpty(){\n if (count($this->arrayList)==0){\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "0d5ce6faf28e614d2f9913b4280c2d0d", "score": "0.6133138", "text": "public static function any()\n {\n return static::instance()->any();\n }", "title": "" }, { "docid": "3249f83235060705a2ae09e9fe98e0ae", "score": "0.61244965", "text": "public function some(callable $callback): bool\n {\n return Arr::some($this->data, $callback);\n }", "title": "" }, { "docid": "6ef84efe23dd9b529a01f5c800db90ca", "score": "0.61218065", "text": "public function some(callable $fn): bool\n {\n return $this->match($fn, false);\n }", "title": "" }, { "docid": "7f6b3d63f66c57279f466bdf28c81c64", "score": "0.6118995", "text": "public function hasAny( string ...$option ) : bool;", "title": "" }, { "docid": "4bea3729686f42a499e3baf9d2a65d4b", "score": "0.61091024", "text": "function any(&$var)\n\t{\n\t\treturn !empty($var);\n\t}", "title": "" }, { "docid": "b511e239920a9daf0cd9672623b2b97e", "score": "0.61016816", "text": "private function isCoreCollection($collection)\n {\n $result = $this->definition->getByCollection($collection);\n\n return !empty($result);\n }", "title": "" }, { "docid": "4e5e77faca1165497227eba6235d1a33", "score": "0.609881", "text": "public function valid()\n {\n return isset($this->collection[$this->position]);\n }", "title": "" }, { "docid": "2f2cc2a3f46d4bbe15bb4d8cef88e071", "score": "0.6098093", "text": "public function isSatisfiedByAny(array $objects) : bool;", "title": "" }, { "docid": "1ce42070cd8ffc3e79378597de149b0a", "score": "0.6097729", "text": "public function isNotEmpty(): bool;", "title": "" }, { "docid": "1ce42070cd8ffc3e79378597de149b0a", "score": "0.6097729", "text": "public function isNotEmpty(): bool;", "title": "" }, { "docid": "6087136820cc8f150fd95c7013d81f71", "score": "0.6096712", "text": "public function isEmpty(): bool\n {\n return count($this) === 0;\n }", "title": "" }, { "docid": "f51588d2629ffbf8c2e95424ac0350c9", "score": "0.6093647", "text": "public function exists()\n\t\t{\n $numArgs = func_num_args();\n\n if ( $numArgs === 1 ) {\n $this->equal( func_get_arg(0) );\n } else if ( $numArgs === 2 ) {\n $this->equal( func_get_arg(0), func_get_arg(1) );\n }\n\n\t\t\t$this->limit(1);\n\t\t\treturn $this->count() > 0;\n\t\t}", "title": "" }, { "docid": "077f6be8d4d2534957b39809da76029d", "score": "0.6089888", "text": "public function hasItems(): bool\n {\n return $this->count() > 0;\n }", "title": "" }, { "docid": "dcb33f715d9292a7c87549d1841fa23c", "score": "0.60857695", "text": "public function containsAllArray(array $collection): bool\n {\n foreach ($collection as $element) {\n if (!$this->contains($element)) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "674c28a22c697cce6770e29099c4e027", "score": "0.6085738", "text": "public function every(callable $predicate): bool;", "title": "" }, { "docid": "19275b972fa5c9348c5fd3ae8acc97fd", "score": "0.6084529", "text": "public function is_empty(){\n foreach ( $this as $this1 ) {\n return ! isset( $this1 );\n }\n return true;\n }", "title": "" }, { "docid": "84cc738a40274962e788122caef25f6e", "score": "0.608136", "text": "public function every(callable $callback): bool\n {\n return Arr::every($this->data, $callback);\n }", "title": "" }, { "docid": "f444b5b54b8a8ec447d335c29d13a0dc", "score": "0.60719246", "text": "public function check()\n {\n return $this->any();\n }", "title": "" }, { "docid": "6117c0ed058bfbe3fd4940d9139c5884", "score": "0.60714906", "text": "public function every(callable $fn): bool\n {\n return $this->match($fn, true);\n }", "title": "" }, { "docid": "38363f8bc024f008b9dcabdb4dc032d2", "score": "0.60713375", "text": "public function isEmpty()\n {\n return $this->count() == 0;\n }", "title": "" }, { "docid": "5b9dd6c504575bc2e9a47329ede91a43", "score": "0.6062913", "text": "public function isEmpty(): bool {\n return empty($this->elements);\n }", "title": "" }, { "docid": "bdf53fe9213748f68a273abeff2c6fbc", "score": "0.6056106", "text": "public function isEmpty() {\n return 0 === $this->size();\n }", "title": "" }, { "docid": "3d5afe639c70817f62c1b5de2059240b", "score": "0.60455406", "text": "public function isEmpty(): bool\n\t{\n\t\treturn empty($this->list);\n\t}", "title": "" }, { "docid": "a9d47e413b74083df2aed7487fad5c1d", "score": "0.60409033", "text": "public function isEmpty() {\n return $this->count() == 0;\n }", "title": "" }, { "docid": "823dec412fc1127e1788bcef1e20756f", "score": "0.603565", "text": "public function isEmpty() {\n\n\t\treturn empty($this->elements);\n\t\n\t}", "title": "" }, { "docid": "a1f5bbfbdd25753f9ce36e00b24882a2", "score": "0.60345685", "text": "public function isEmpty()\n {\n $result = true;\n foreach ($this as $key => $value) {\n if (!empty($value)) {\n return false;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "5bde8e28077c39f187865ab36b95b5b1", "score": "0.60321265", "text": "public function exists()\n\t{\n\t\t$this->select = array(new Expression('1'));\n\t\treturn $this->value() !== false;\n\t}", "title": "" }, { "docid": "8214e5d7818a36dc61c7bb12cbf5b0d1", "score": "0.60268235", "text": "public function isEmpty()\n {\n return $this->count() === 0;\n }", "title": "" }, { "docid": "f1ebd9f8990b04ae90c0b3610d3b0f7b", "score": "0.60178274", "text": "public function isEmpty() : bool\n {\n return !$this->list;\n }", "title": "" }, { "docid": "f080968b24bc2d1f67ae3c098f9a9df0", "score": "0.60177153", "text": "public static function any(array $subjects, $callable) {\n foreach ($subjects as $subject) {\n if (call_user_func($callable, $subject)) {\n return TRUE;\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "ba9da8c5bb3be565df46174f3f797961", "score": "0.60155106", "text": "public function containsAll(self $collection): bool\n {\n $status = false;\n foreach ($collection as $item) {\n if ($this->contains($item)) {\n $this->remove($item);\n $status = true;\n }\n }\n\n return $status;\n }", "title": "" }, { "docid": "84a74e2255959a272beaaae776ff18df", "score": "0.59999883", "text": "public function isEmpty() {\n return $this->count() === 0;\n }", "title": "" }, { "docid": "9daded6025cf12fcc556efff8c4639e5", "score": "0.59994715", "text": "public function isEmpty()\n {\n return ($this->size() == 0);\n }", "title": "" }, { "docid": "fc76e6e7f2e3039a645f6eaaa7f330da", "score": "0.59981316", "text": "function is_true_all(...$values) : bool {\n return is_all(\n function ($value) {\n return $value === true;\n },\n ...$values\n );\n }", "title": "" }, { "docid": "276b669ed09e6d10ff53377502be4650", "score": "0.59873486", "text": "public function isEmpty() {\n return ($this->size() == 0);\n }", "title": "" }, { "docid": "4425227ebea050f2b870676951240a29", "score": "0.5982412", "text": "public function hasItems()\n\t{\n\t\treturn count( $this->items ) > 0;\n\t}", "title": "" }, { "docid": "ae3bafde4db54ef2b679ad29ff88cec7", "score": "0.5962807", "text": "function some($callback, $recursive=false){\r\n\t\tif (!is_callable($callback)){\r\n\t\t\tthrow new UnexpectedValueException(\"Invalid datatype expected\");\r\n\t\t}\r\n\t\tforeach ($this as $key => $value) { //void too much recursion and server crashes\r\n\t\t\tif ($recursive && $value instanceof ArrayExt && $value!=$this){\r\n\t\t\t\tif ($value->some($callback, $recursive)){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (call_user_func($callback,$value,$key,$this)){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e2304d2772ee4cf6d3c764ac76acb846", "score": "0.59507656", "text": "public function hasData()\n {\n if ($this->isOne()) {\n return null !== $this->getData();\n }\n return 0 < count($this->getData());\n }", "title": "" }, { "docid": "b8970dfeb69910339545372470af07a2", "score": "0.59507066", "text": "function isDefined()\n {\n return $this->_isDefined(func_get_args());\n }", "title": "" }, { "docid": "2e968ff40360f96ac16c60e810dc2226", "score": "0.5950082", "text": "public function exists(): bool {\n\t\treturn !!$this->count(1);\n\t}", "title": "" }, { "docid": "42ba163e1d115116d4e8e49717b3d2c5", "score": "0.594328", "text": "public function existsOrSet($key, \\Closure $fn) : bool\n {\n $key = $this->getCompositeKey($key);\n if (!ArrayHelper::key_exists($this->storage, $key)) {\n if ($fn instanceof \\Closure) {\n $value = $fn($this);\n $this->set($key, $value);\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "31addfecce44e09a7f28ea66abba06ba", "score": "0.59419894", "text": "public function isEmpty() {\n return 0 === $this->size();\n }", "title": "" }, { "docid": "02c7febb8ede5b80c711311c7ed99ebc", "score": "0.59375393", "text": "function exists()\n\t{\n\t\t$args=func_get_args();\n\t\t\n\t\tif (count($args)==1)\n\t\t\treturn isset($this->_data[$args[0]]);\n\t\t\t\n\t\tforeach($args as $arg)\n\t\t\tif (!isset($this->_data[$arg]))\n\t\t\t\treturn false;\n\t\t\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" }, { "docid": "98899ee690580c3559830294faf8d01b", "score": "0.5936567", "text": "public function isEmpty(): bool;", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "af56dfa770095b9a9c1e85819c68ee89", "score": "0.0", "text": "public function store(Request $request)\n {\n $request->validate(\n [\n 'code' => 'unique:tour_promotion',\n ],\n $message =\n [\n 'code.unique' => 'Code đã tồn tại!',\n ]\n );\n// dd($request->all());\n $this->serve->create($request);\n return redirect('admin/tour_promotion')->with('status', 'Thêm mới voucher thành công!');\n }", "title": "" } ]
[ { "docid": "79da2146a3794a65b80951c7ea2a2404", "score": "0.66189355", "text": "public function save()\n {\n $this->storage->save();\n }", "title": "" }, { "docid": "f934191a4b4b75a1fb96952dd934d298", "score": "0.65084946", "text": "public function store()\n {\n $this->validate(\n $this->request,\n $this->validationRules('create'),\n [],\n $this->getLabelFields('create')\n );\n\n if ($new = $this->model()->create($this->request->all())) {\n return $this->afterStored($new);\n }\n\n return\n back()\n ->withInput()\n ->with(\n 'error',\n __(\n 'Error when creating :resource_name.',\n ['resource_name' => static::$title]\n )\n );\n\n }", "title": "" }, { "docid": "29b26d3072dbf3730f945274190fe8af", "score": "0.6508279", "text": "public function store(StoreResourceRequest $request)\n {\n abort_if(\n $request->user()->cannot('create', Resource::class),\n 403\n );\n\n // course not found\n Course::where('program_id', auth()->user()->program_id)->findOrFail($request->course_id);\n\n try {\n $batchId = Str::uuid();\n foreach ($request->file as $file) {\n $temporaryFile = TemporaryUpload::firstWhere('folder_name', $file);\n\n if ($temporaryFile) {\n $r = Resource::create([\n 'course_id' => $request->course_id,\n 'user_id' => auth()->id(),\n 'batch_id' => $batchId,\n 'description' => $request->description\n ]);\n\n $r->users()->attach($r->user_id, ['batch_id' => $batchId]);\n\n $r->addMedia(storage_path('app/public/resource/tmp/' . $temporaryFile->folder_name . '/' . $temporaryFile->file_name))\n ->toMediaCollection();\n rmdir(storage_path('app/public/resource/tmp/' . $file));\n\n // event(new ResourceCreated($r));\n\n $temporaryFile->delete();\n }\n }\n\n if ($request->check_stay) {\n return redirect()\n ->route('resources.create')\n ->with('success', 'Resource was created successfully');\n }\n\n return redirect()\n ->route('resources.index')\n ->with('success', 'Resource was created successfully');\n } catch (\\Throwable $th) {\n throw $th;\n }\n }", "title": "" }, { "docid": "195678750c701128998da1a792face59", "score": "0.648484", "text": "public function store()\n\t{\n\t\t$input = Input::only('link', 'description', 'level', 'title', 'categorie_id');\n\t\t$rules = [\n\t\t\t'title' => 'required',\n\t\t\t'link' => 'required|url',\n\t\t\t'description' => 'required',\n\t\t\t'level' => 'required|integer',\n\t\t\t'categorie_id' => 'required|integer'\n\t\t];\n\t\t\n\t\t$validator = Validator::make($input, $rules);\n\n\t\tif($validator->passes())\n\t\t{\n\t\t\t$resource = new Resource($input);\n\t\t\t$user = Auth::user();\n\t\t\t$user->resources()->save($resource);\n\t\t\t$user->save();\n\t\t\treturn Redirect::route('resources.show', ['id' => $resource->id])->withFlashMessage('Your resource was successfully created!');\n\t\t}\n\t\t\n\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t}", "title": "" }, { "docid": "20369ffaffacb701b25ed702ed26d8a3", "score": "0.64388657", "text": "public function save(): void\n {\n $this->handler->write($this->getId(), $this->prepareForStorage(\n serialize($this->attributes)\n ));\n\n $this->started = false;\n }", "title": "" }, { "docid": "3d9eb044ff6d55a39b2aa1f967b0a444", "score": "0.64074874", "text": "public function store()\n {\n $this->beginAction('store');\n $this->applyHooks(AuthorizeAction::class);\n $this->gatherInput();\n $this->validateInput();\n $this->createResource();\n $this->formatResource();\n\n return $this->makeResponse();\n }", "title": "" }, { "docid": "ca58ec6302f4412d3ed2c815a424ff00", "score": "0.63988084", "text": "public function store()\n\t{\n\t\t// not yet required!\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
48ad4114a8bfd63ded17b57170aa30bb
Create the event listener.
[ { "docid": "e0b04e672070d25c63b228ecce652174", "score": "0.0", "text": "public function __construct()\n {\n //\n }", "title": "" } ]
[ { "docid": "e9dd5b0a0258c5132cbb15c92a812fc9", "score": "0.7140134", "text": "public function eventListener();", "title": "" }, { "docid": "a5d250280ebda46b4f21503f488d59a7", "score": "0.6941563", "text": "protected abstract function createEvent();", "title": "" }, { "docid": "a068692653dc3b3e9a691e9c1f09cfd9", "score": "0.6398367", "text": "public function registerEventCallback(){\n\n\t\t}", "title": "" }, { "docid": "030f31517138cef135945ce3e8cc2a3a", "score": "0.62650883", "text": "public static function registerListeners();", "title": "" }, { "docid": "f3eaebe1745b7bcd17cb2f66b95650de", "score": "0.61637264", "text": "public function addOneTimeListener($event, $listener);", "title": "" }, { "docid": "d14ea24e8b004b8bf07e563530b24084", "score": "0.6086784", "text": "public function create($vEvent);", "title": "" }, { "docid": "610aa38aa514d865c990780131177f4f", "score": "0.60498434", "text": "private function createEvents()\n {\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatch_Backend_Article',\n 'loadArticleBackendModule'\n );\n $this->subscribeEvent(\n 'Enlight_Controller_Dispatcher_ControllerPath_Backend_SwagAccessory',\n 'onGetControllerPathBackend'\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatch_Frontend_Detail',\n 'onPostDispatchDetail'\n );\n\n $this->subscribeEvent(\n 'Theme_Compiler_Collect_Plugin_Less',\n 'addLessFiles'\n );\n\n $this->subscribeEvent(\n 'Theme_Compiler_Collect_Plugin_Javascript',\n 'addJsFiles'\n );\n }", "title": "" }, { "docid": "951d2329eee7ab1d9cf5f9dc89efc702", "score": "0.60335654", "text": "public function on_create() {}", "title": "" }, { "docid": "1806e6ce36d02ee1fb732ea8af7ba5f3", "score": "0.6017363", "text": "public function whenBuilt(callable $listener);", "title": "" }, { "docid": "420d1a46e32b37e46f885f063f4092f5", "score": "0.59638673", "text": "public function __construct()\n {\n $this->_observers_storage = new EventObserverStorage();\n $this->setEventClass(self::EVENT_CLASSNAME);\n }", "title": "" }, { "docid": "1f904db9d56b8683538fc4d72851cd18", "score": "0.595769", "text": "public function __construct() {\n $this->e = new EventManager($this);\n }", "title": "" }, { "docid": "2275556fee66c0c8489bc05a6cd49271", "score": "0.5945388", "text": "public static function newListener($eventname_str, $callback, $callback_args=self::NO_ARGS, $subject_obj = null)\r\n {\r\n if(!isset(self::$_listener[$eventname_str]))\r\n self::$_listener[$eventname_str] = array();\r\n \r\n self::$_listener[$eventname_str][] = array('call'=>$callback,'args'=>$callback_args, 'subject'=>$subject_obj);\r\n }", "title": "" }, { "docid": "cd1fbb1ba082a1a7874f4ae07e5422a7", "score": "0.5903841", "text": "public function addListener($event, $listener);", "title": "" }, { "docid": "7d9a5dc80ccee272ebf2d2b1ef945e91", "score": "0.58933824", "text": "public function create(Event $event);", "title": "" }, { "docid": "b6520cbdcabaeb7629fe6dc6b7f55e37", "score": "0.58930993", "text": "public function addTargetCreatedListener(callable $listener): SubscriptionInterface;", "title": "" }, { "docid": "3a758de0c192ed3a345b9ef1434b951b", "score": "0.5892551", "text": "public function create_listener() {\n\n\t\t$http_origin = function_exists('get_http_origin') ? get_http_origin() : (empty($_SERVER['HTTP_ORIGIN']) ? '' : $_SERVER['HTTP_ORIGIN']);\n\n\t\t// Create the WP actions to handle incoming commands, handle built-in commands (e.g. ping, create_keys (authenticate with admin creds)), dispatch them to the right place, and die\n\t\tif ((!empty($_POST) && !empty($_POST['udrpc_message']) && !empty($_POST['format'])) || (!empty($_SERVER['REQUEST_METHOD']) && 'OPTIONS' == $_SERVER['REQUEST_METHOD'] && $http_origin)) {\n\t\t\tadd_action('wp_loaded', array($this, 'wp_loaded'));\n\t\t\tadd_action('wp_loaded', array($this, 'wp_loaded_final'), 10000);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "02c20011ddd6564ac05f90c9114768fe", "score": "0.58912325", "text": "public function __construct()\n {\n // dump(\"listener call\"); exit();\n }", "title": "" }, { "docid": "86c9735cf3663c60eb5554fa29a7ca2e", "score": "0.58581805", "text": "public function on($event_name, $callback) {}", "title": "" }, { "docid": "49c1339aaaae4eb09a68802d45921f29", "score": "0.5765443", "text": "public function __construct(Listener $listener)\n {\n parent::__construct();\n\n $this->listener = $listener;\n }", "title": "" }, { "docid": "6b1f555929d2d356a85bbf1d85c5cc6d", "score": "0.5764325", "text": "public function attachListener($event, $listener, $priority = 1);", "title": "" }, { "docid": "81a982a884ece2d22e5a796a277822a7", "score": "0.5748482", "text": "private function listeners()\r\n {\r\n $this->app['director']->addListener('on_page_view', function($event) {\r\n /** @var PageView $listener */\r\n $listener = $this->app->make(PageView::class);\r\n $listener->handle($event);\r\n });\r\n }", "title": "" }, { "docid": "e9e475b429a2e173b822d1efb54bb0b2", "score": "0.5744472", "text": "public function __construct()\n\t{\n\t\t$this->delegate = Delegate_1::fromMethod($this, 'onEvent');\n\t}", "title": "" }, { "docid": "a1f665007a2deccbabefd98232546622", "score": "0.56985015", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "995f1144b3122c23c80878ba590d32eb", "score": "0.56764686", "text": "public function events();", "title": "" }, { "docid": "2f6faa265c1155aece6f9443c204df91", "score": "0.56554914", "text": "public function on(string $event, callable $listener): void {\n $event = $this->getName($event);\n $listener = $listener instanceOf Emitter\\Listener\n ? $listener : new Emitter\\Listener\\On($this, $event, $listener);\n $this->_events[$event][] = $listener;\n $this->emit('new-listener', $listener);\n }", "title": "" }, { "docid": "c430852012ada0af93d9cf01901e5ed8", "score": "0.5647164", "text": "public function __construct()\n {\n $this->registerEvent( '004', 'onConnect' );\n $this->registerEvent( 'public', 'onPublic' );\n $this->registerEvent( 'private', 'onMessage' );\n $this->registerEvent( 'JOIN', 'onJoin' );\n $this->registerEvent( 'NOTICE', 'onNotice');\n $this->registerEvent( 'MODE', 'onMode');\n }", "title": "" }, { "docid": "1feb9ab5ba73190a9e75167b5e38e4e6", "score": "0.5645372", "text": "public function createEvent()\n {\n if ($this->eventPrototype === null) {\n $this->eventPrototype = new $this->eventClass;\n }\n\n return clone $this->eventPrototype;\n }", "title": "" }, { "docid": "d3e12537b6d01ec906ffab15f1bea2c8", "score": "0.56434846", "text": "protected function addEventListener ( $name, $callback, $priority = null )\n {\n if ( is_null ( $priority ) ) {\n $this->events->listen ( $name, $callback );\n } else {\n $this->events->listen ( $name, $callback, $priority );\n }\n }", "title": "" }, { "docid": "3c72820f69aa104f0dc308c5c1feafd9", "score": "0.5638587", "text": "function addEventListener(string $type, callable $listener): void\n {\n if(!isset($this->listeners[$type])) {\n $this->listeners[$type] = [];\n }\n\n $this->listeners[$type][] = $listener;\n }", "title": "" }, { "docid": "11e8e6c97093ae8e0b2c2bd7a18eb9e2", "score": "0.5628214", "text": "protected function listenForEvents()\n {\n $this->events->listen(MessageProcessing::class, function ($event) {\n $this->writeOutput($event->message, 'starting');\n });\n\n $this->events->listen(MessageProcessed::class, function ($event) {\n $this->writeOutput($event->message, 'success');\n });\n\n $this->events->listen(ImapConnectionFailed::class, function (ImapConnectionFailed $event) {\n $this->error($event->exception->getMessage());\n });\n\n $this->events->listen(MessageFailed::class, function ($event) {\n $this->writeOutput($event->message, 'failed');\n\n $this->logFailedJob($event);\n });\n }", "title": "" }, { "docid": "e82632152950322256e12a8512e0f34f", "score": "0.56273484", "text": "public function registerEventListeners(): void\n {\n foreach ($this->listens() as $event => $listeners) {\n foreach ($listeners as $listener) {\n Event::listen($event, $listener);\n }\n }\n }", "title": "" }, { "docid": "ead3d8e959fbc822e94268762394788b", "score": "0.5614457", "text": "public function addBuilderListener( \n MyFusesApplicationBuilderListener $listener );", "title": "" }, { "docid": "57da3f504c60b75f3d243389b580216c", "score": "0.56102276", "text": "public function __construct() {\n \n // add listener\n $this->addListener(\"processSpawner.getPluginProcesses\",\"addProcess\");\n \n }", "title": "" }, { "docid": "882ec3f69e63c090bd428cb4ec300a5e", "score": "0.5603874", "text": "public function subscribe(EventListenerInterface $eventListener);", "title": "" }, { "docid": "059d5a1f2f1cbd40800fcd492b88fd60", "score": "0.5601995", "text": "public function run()\n {\n $dispatcher = EventDispatcher::getInstance();\n $dispatcher->attachListener(Events::THREAD_CREATE, $this, 'sendTelegramNotification');\n }", "title": "" }, { "docid": "a5f26a1055c0b38f2d93e612d6f845f8", "score": "0.55893403", "text": "public function webhookListener();", "title": "" }, { "docid": "cbdcd478b438fe05e736190f2767879c", "score": "0.5586723", "text": "private function bindEventListenersEvents()\n\t{\n\t\tif ($this->_eventListeners && !$this->_listenerInstances) {\n\t\t\tforeach ($this->_eventListeners as $listener) {\n \n\t\t\t\t$listener = static::getListener($listener);\n\t\t\t\t\n\t\t\t\t$events = $listener->events();\n\t\t\t\t\n\t\t\t\tif ($events) foreach ($events as $name => $handler) {\n\t\t\t\t\tstatic::on($name, is_string($handler) ? [$listener, $handler] : $handler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "03ef981e98960d60fbba759de671fb22", "score": "0.5540995", "text": "public function init()\n {\n parent::init();\n foreach($this->getAllEvents() as $event_value)\n {\n $this->on($event_value, [$this, 'handleEvent']);\n }\n }", "title": "" }, { "docid": "6b4f2731a57ee214d926e5e786c53804", "score": "0.5524411", "text": "private function createDispatcher()\n {\n $this->dispatcher = new EventDispatcher();\n }", "title": "" }, { "docid": "6bb223f6654c0d39b1688d11e23868bf", "score": "0.5519692", "text": "abstract public function events();", "title": "" }, { "docid": "f616dedb93277b55495ffcc05d5d531d", "score": "0.55184793", "text": "protected function registerListener()\n {\n $this->registerListenCommand();\n\n $this->app->singleton('queue.daemon.listener', function ($app) {\n return new Listener($app->basePath());\n });\n }", "title": "" }, { "docid": "be5cd3950c786520c98bae4a9b71c786", "score": "0.5511595", "text": "function defineHandlers()\n {\n EventsManager::listen('on_main_menu', 'on_main_menu');\n EventsManager::listen('on_project_tabs', 'on_project_tabs');\n EventsManager::listen('on_available_project_tabs', 'on_available_project_tabs');\n EventsManager::listen('on_object_options', 'on_object_options');\n EventsManager::listen('on_quick_add', 'on_quick_add');\n }", "title": "" }, { "docid": "fa2e868ae9d01e6ec87834f964d8e568", "score": "0.55082655", "text": "function addEvent($event);", "title": "" }, { "docid": "fa2e868ae9d01e6ec87834f964d8e568", "score": "0.55082655", "text": "function addEvent($event);", "title": "" }, { "docid": "0b0d4de6bd4504405edfe1e35dce4681", "score": "0.5491346", "text": "public function addListener( $eventName, IListener $listener, $priority = 0 );", "title": "" }, { "docid": "1934fd10e04221fca6bfeac324d9c433", "score": "0.5480439", "text": "public function registerListener(EventListenerInterface $eventListener) : EventDispatcher;", "title": "" }, { "docid": "c980a3575d6d8ee15c3b5e6dd6b3e432", "score": "0.5473226", "text": "public function addEventListener(PHPCR_Observation_EventListenerInterface $listener, $eventTypes, $absPath, $isDeep, array $uuid, array $nodeTypeName, $noLocal);", "title": "" }, { "docid": "48d7780680272fdcc574a8a65e68d2d8", "score": "0.5472878", "text": "public function addListener() {\n if($this->hasPermission(\"backend\")) {\n $this->addEventListener(\"backend\", \"defineBackend\");\n }\n }", "title": "" }, { "docid": "a8e270c4c0f824f1add6990e4feecdcd", "score": "0.5461155", "text": "protected function init()\n {\n // here implement your own event logic\n }", "title": "" }, { "docid": "38047dac30f9b48eda993caad6adbf5b", "score": "0.5453797", "text": "public function eventCreate($params = array())\n\t{\n\t\treturn $this->run(array(\"event\",\"create\"), $params );\n\t}", "title": "" }, { "docid": "52ef2631a1fad3bb76334b76a1a703b6", "score": "0.5446952", "text": "public function run()\n {\n $dispatcher = EventDispatcher::getInstance();\n $dispatcher->attachListener('visitorTrack', $this, 'inviteVisitor');\n $dispatcher->attachListener('invitationAccept', $this, 'markThreadAsOrphaned');\n $dispatcher->attachListener('invitationReject', $this, 'forgetThread');\n $dispatcher->attachListener('invitationIgnore', $this, 'forgetThread');\n }", "title": "" }, { "docid": "d62236460acbdb6e245609207237ab50", "score": "0.54446816", "text": "public function listen ($eventName, $callbackName);", "title": "" }, { "docid": "4186ae2101d4e6d455e1829d494ab9cf", "score": "0.5428307", "text": "public function registerListeners(array $eventListeners = []);", "title": "" }, { "docid": "c756b81f773110040d8c99b42c46af54", "score": "0.54176444", "text": "public function listen(string $event, \\Closure $callback): self;", "title": "" }, { "docid": "4f9c9b8904cdfa8080dc002400c35c94", "score": "0.5414929", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n\t\t$this->events[\"BeforeProcessAdd\"]=true;\n\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n\t}", "title": "" }, { "docid": "34daca8484c4fa269469bbd2f2470151", "score": "0.5404372", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\n\t}", "title": "" }, { "docid": "e20afd0b410de3647fd86082f30253e1", "score": "0.53975576", "text": "protected function ensureEventListeners()\n\t{\n\t\tif ($this->_eventListeners === null) {\n\t\t\t$this->_eventListeners = [];\n\t\t\tif (method_exists($this, 'eventListeners')) {\n\t\t\t\t$this->setEventListeners($this->eventListeners());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ac949bf5e56b4cf7ebf318a5fcc1f058", "score": "0.5381799", "text": "public function HookEvents() {\n // $this->addHooks(\n // array (\n // )\n // );\n }", "title": "" }, { "docid": "e217d6e37239a2659c2cc24e66ccd32b", "score": "0.5366298", "text": "public static function getSubscribedEvents()\n {\n }", "title": "" }, { "docid": "e217d6e37239a2659c2cc24e66ccd32b", "score": "0.5366298", "text": "public static function getSubscribedEvents()\n {\n }", "title": "" }, { "docid": "669a65ed4ccfb72ac61fc322100a09d9", "score": "0.5361443", "text": "function defineHandlers()\n {\n EventsManager::listen('on_admin_panel', 'on_admin_panel');\n EventsManager::listen('on_object_deleted', 'on_object_deleted');\n EventsManager::listen('on_object_options', 'on_object_options');\n // EventsManager::listen('on_post_install', 'on_post_install');\n }", "title": "" }, { "docid": "1943cf2aac7137a97fcdaa1b55bae421", "score": "0.5349521", "text": "public function listenToEvents()\n {\n $this->app['events']->listen('clockwork.controller.start', function () {\n $this->timeline->startEvent('controller', 'Request processing');\n });\n\n $this->app['events']->listen('clockwork.controller.end', function () {\n $this->timeline->endEvent('controller');\n });\n\n $this->app['events']->listen('clockwork.running.end', function () {\n $this->timeline->endEvent('running');\n });\n\n// $this->app['events']->listen('composing:*', function ($view, $data = null) {\n// if (!$this->collectViews) {\n// return;\n// }\n//\n// if (is_string($view) && is_array($data)) { // Laravel 5.4 wildcard event\n// $view = $data[0];\n// }\n//\n// $time = microtime(true);\n// $data = $view->getData();\n// unset($data['__env']);\n//\n// $this->views->addEvent(\n// 'view '.$view->getName(),\n// 'Rendering a view',\n// $time,\n// $time,\n// ['name' => $view->getName(), 'data' => (new Serializer())->normalize($data)]\n// );\n// });\n }", "title": "" }, { "docid": "890db721c18eeda6f5baf0f995dbdf15", "score": "0.5344173", "text": "protected function listenForEvents()\n {\n $callback = function ($event) {\n foreach ($this->logWriters as $writer) {\n $writer->log($event);\n }\n };\n\n $this->laravel['events']->listen(JobProcessing::class, $callback);\n $this->laravel['events']->listen(JobProcessed::class, $callback);\n $this->laravel['events']->listen(JobFailed::class, $callback);\n }", "title": "" }, { "docid": "84ab76603a7973f6043eadbfb3d55966", "score": "0.5342688", "text": "public function getRegisteredEventListeners();", "title": "" }, { "docid": "31e9a21a628b5bbcb9951c1a30245a30", "score": "0.5330971", "text": "protected function bindBaseEvent() {\n $this->server->on('start', [$this, 'onStart']);\n $this->server->on('shutdown', [$this, 'onShutdown']);\n $this->server->on('managerStart', [$this, 'onManagerStart']);\n $this->server->on('managerStop', [$this, 'onManagerStop']);\n $this->server->on('workerStart', [$this, 'onWorkerStart']);\n $this->server->on('workerStop', [$this, 'onWorkerStop']);\n }", "title": "" }, { "docid": "3d186a54d07db3e968da5d2c5665a047", "score": "0.53302854", "text": "public function makeApiEvents()\n {\n }", "title": "" }, { "docid": "0cb1aa0147917fba7febefebc32dceba", "score": "0.532679", "text": "public function Create()\n {\n parent::Create();\n\n //We need to call the RegisterHook function on Kernel READY\n $this->RegisterMessage(0, IPS_KERNELMESSAGE);\n }", "title": "" }, { "docid": "9b2fde4aaf64d6325cee9b28dda393f9", "score": "0.5324544", "text": "function defineHandlers() {\n\t\tEventsManager::listen ( 'on_daily', 'on_daily' );\n\t\tEventsManager::listen ( 'on_reports_panel', 'on_reports_panel' );\n\t\tEventsManager::listen ( 'on_am_reports_panel', 'on_am_reports_panel' );\n\t\tEventsManager::listen ( 'on_system_permissions', 'on_system_permissions' );\n\t\tEventsManager::listen ( 'on_admin_panel', 'on_admin_panel' );\n\t\tEventsManager::listen ( 'on_main_menu', 'on_main_menu' );\n\t\tEventsManager::listen ( 'on_inline_tabs', 'on_inline_tabs' );\n\t\tEventsManager::listen ( 'on_phone_homescreen', 'on_phone_homescreen' );\n\t\tEventsManager::listen ( 'on_custom_user_permissions', 'on_custom_user_permissions' );\n\t\tEventsManager::listen ( 'on_initial_javascript_assign', 'on_initial_javascript_assign' );\n\t\t// EventsManager::listen ( 'on_wireframe_updates', 'on_wireframe_updates' );\n\t\t// EventsManager::listen ( 'on_shutdown', 'on_shutdown' );\n\t\t\n\t\t//Time Reports Plus\n\t\tEventsManager::listen ( 'on_homescreen_tab_types', 'on_homescreen_tab_types' );\n\t\tEventsManager::listen ( 'on_project_overview_sidebars', 'on_project_overview_sidebars' );\n\t}", "title": "" }, { "docid": "be2b80c071ae6cebecbdf44cf23a23fb", "score": "0.5319355", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\n\t}", "title": "" }, { "docid": "0fdad23b084c8a9c1b91d9044cd67d3d", "score": "0.5315298", "text": "function __construct()\n\t{\n\t\t$this->events[\"IsRecordEditable\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n\t\t$this->events[\"AfterDelete\"]=true;\n\n\t\t$this->events[\"BeforeEdit\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "2412bffc55ed1e59c046b1d705ae4161", "score": "0.5309975", "text": "function listen($events, $listener) : void\n {\n app()->getEventDispatcher()->listen($events, $listener);\n }", "title": "" }, { "docid": "bfe2ed217b733ae9b5c970ee40a8fefe", "score": "0.5306602", "text": "function events(){\n\t\t}", "title": "" }, { "docid": "2c50c682849785b585bf36b68d7f5250", "score": "0.5305907", "text": "public function addTargetInfoChangedListener(callable $listener): SubscriptionInterface;", "title": "" }, { "docid": "e4e8a69765131387872101294ec029c3", "score": "0.5293118", "text": "public function attachListeners(EventManager $events);", "title": "" }, { "docid": "bc05e648bf24fada49ac754733e7c153", "score": "0.5291539", "text": "public function created(Event $event)\n {\n //\n }", "title": "" }, { "docid": "ea66954191e8aa7c945a03b423eb0e4f", "score": "0.5287836", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n\t}", "title": "" }, { "docid": "3f74094a78ffaac03eb1aef245f6a713", "score": "0.52862304", "text": "public function __construct()\n {\n $this->listnerCode = config('settings.listener_code.DeletingSaleEventListener');\n }", "title": "" }, { "docid": "1f3882982049dd829057e0879934740c", "score": "0.52775246", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowList\"]=true;\n\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\n\t}", "title": "" }, { "docid": "ea88a813a9a4e588effffdd9ef5a1a8f", "score": "0.5274468", "text": "public function bind() {\r\n $listeners = $this->cache->get('app-listeners', function () {\r\n foreach ($this->resolver->getListeners() as $file) {\r\n try {\r\n $binding = $this;\r\n require_once($file);\r\n } catch (\\Throwable $e) {\r\n $this->logger->warn(\"Unable to include $file: \" . $e->getMessage());\r\n }\r\n }\r\n\r\n $listeners = $this->getListeners();\r\n\r\n if ($this->database->isConnected()) {\r\n /** @var ModelEx $eventModel */\r\n if ($eventModel = $this->resolver->getModel('Event', true)) {\r\n try {\r\n foreach ($eventModel::all() as $item) {\r\n $attrs = $item->attributesToArray();\r\n list($class, $func) = @explode('@', $attrs['handler']);\r\n $event = array_merge($attrs, ['event' => $attrs['name'], 'handler' => [sprintf('\\\\%s', ltrim($class, '\\\\')), $func ?? 'index']]);\r\n\r\n $listeners[] = $event;\r\n }\r\n } catch (\\Exception $e) {\r\n }\r\n }\r\n }\r\n\r\n return $listeners;\r\n }, 300);\r\n\r\n foreach ($listeners as $listener) {\r\n $this->dispatcher->listen($listener['event'], $listener['handler'], $listener['priority'] ?? 99, $listener['data'] ?? '');\r\n }\r\n }", "title": "" }, { "docid": "91c198e887057b0324aa21c29655add4", "score": "0.52616614", "text": "public function attachEventListener($eventType, $handler);", "title": "" }, { "docid": "207e70e6d5fb1ad51e177751def19c5d", "score": "0.52605647", "text": "public function addListener($eventName, $listenerClassName, $priority = 0);", "title": "" }, { "docid": "c2ace4523de1045ee89d703b6aa0e11c", "score": "0.5253808", "text": "public function listen($event, callable $callback);", "title": "" }, { "docid": "1d8db3f3f76783f3e901446333d55bfd", "score": "0.52406734", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeEdit\"]=true;\n\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\n\t\t$this->events[\"IsRecordEditable\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "c6abbccbb8d3c525e75416d8af3931a3", "score": "0.5238973", "text": "public function addListener($eventName, ListenerInterface $listener, $priority = 0);", "title": "" }, { "docid": "3b01a3ca32c2fd4437173f7429826bd5", "score": "0.52388495", "text": "public static function __registar_callback() {\n \n }", "title": "" }, { "docid": "ea698f6dfea442958750d2ec676f57d3", "score": "0.5232022", "text": "protected function registerEvents()\n {\n $events = $this->app->make(Dispatcher::class);\n\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n $events->listen($event, $listener);\n }\n }\n }", "title": "" }, { "docid": "7629d6047cdbf17159d30a0b819950de", "score": "0.52302444", "text": "function wine_create_event_listener($event, $object_type, $object) {\n\t$ac_name = elgg_echo('wine:wine') . \": \" . $object->name;\n\t$wine_id = create_access_collection($ac_name, $object->guid);\n\tif ($wine_id) {\n\t\t$object->group_acl = $group_id;\n\t} else {\n\t\t// delete wine if access creation fails\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "6484fa75874417704ee99a7d3f9ea3f1", "score": "0.5222511", "text": "public function on($event, $listener)\n {\n if (!isset($this->listeners[$event])) {\n $this->listeners[$event] = [];\n }\n $this->listeners[$event][] = $listener;\n }", "title": "" }, { "docid": "3d168602ec8b7b5f4c447a222af30789", "score": "0.5222031", "text": "public function __construct(CreateUser $event)\n {\n //\n }", "title": "" }, { "docid": "9eae04276f93bff86c99529940635927", "score": "0.5220196", "text": "protected function registerPersistentEventHandlers()\n {\n // core -> \n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'api.method_not_found', array('Pdfviewer_Listener_Core', 'apiMethodNotFound'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'core.preinit', array('Pdfviewer_Listener_Core', 'preInit'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'core.init', array('Pdfviewer_Listener_Core', 'init'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'core.postinit', array('Pdfviewer_Listener_Core', 'postInit'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'controller.method_not_found', array('Pdfviewer_Listener_Core', 'controllerMethodNotFound'));\n \n // front controller -> Pdfviewer_Listener_FrontController\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'frontcontroller.predispatch', array('Pdfviewer_Listener_FrontController', 'preDispatch'));\n \n // installer -> Pdfviewer_Listener_Installer\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'installer.module.installed', array('Pdfviewer_Listener_Installer', 'moduleInstalled'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'installer.module.upgraded', array('Pdfviewer_Listener_Installer', 'moduleUpgraded'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'installer.module.uninstalled', array('Pdfviewer_Listener_Installer', 'moduleUninstalled'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'installer.subscriberarea.uninstalled', array('Pdfviewer_Listener_Installer', 'subscriberAreaUninstalled'));\n \n // modules -> Pdfviewer_Listener_ModuleDispatch\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module_dispatch.postloadgeneric', array('Pdfviewer_Listener_ModuleDispatch', 'postLoadGeneric'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module_dispatch.preexecute', array('Pdfviewer_Listener_ModuleDispatch', 'preExecute'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module_dispatch.postexecute', array('Pdfviewer_Listener_ModuleDispatch', 'postExecute'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module_dispatch.custom_classname', array('Pdfviewer_Listener_ModuleDispatch', 'customClassname'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module_dispatch.service_links', array('Pdfviewer_Listener_ModuleDispatch', 'serviceLinks'));\n \n // mailer -> Pdfviewer_Listener_Mailer\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.mailer.api.sendmessage', array('Pdfviewer_Listener_Mailer', 'sendMessage'));\n \n // page -> Pdfviewer_Listener_Page\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'pageutil.addvar_filter', array('Pdfviewer_Listener_Page', 'pageutilAddvarFilter'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'system.outputfilter', array('Pdfviewer_Listener_Page', 'systemOutputfilter'));\n \n // errors -> Pdfviewer_Listener_Errors\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'setup.errorreporting', array('Pdfviewer_Listener_Errors', 'setupErrorReporting'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'systemerror', array('Pdfviewer_Listener_Errors', 'systemError'));\n \n // theme -> Pdfviewer_Listener_Theme\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'theme.preinit', array('Pdfviewer_Listener_Theme', 'preInit'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'theme.init', array('Pdfviewer_Listener_Theme', 'init'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'theme.load_config', array('Pdfviewer_Listener_Theme', 'loadConfig'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'theme.prefetch', array('Pdfviewer_Listener_Theme', 'preFetch'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'theme.postfetch', array('Pdfviewer_Listener_Theme', 'postFetch'));\n \n // view -> Pdfviewer_Listener_View\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'view.init', array('Pdfviewer_Listener_View', 'init'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'view.postfetch', array('Pdfviewer_Listener_View', 'postFetch'));\n \n // user login -> Pdfviewer_Listener_UserLogin\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.login.started', array('Pdfviewer_Listener_UserLogin', 'started'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.login.veto', array('Pdfviewer_Listener_UserLogin', 'veto'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.login.succeeded', array('Pdfviewer_Listener_UserLogin', 'succeeded'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.login.failed', array('Pdfviewer_Listener_UserLogin', 'failed'));\n \n // user logout -> Pdfviewer_Listener_UserLogout\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.logout.succeeded', array('Pdfviewer_Listener_UserLogout', 'succeeded'));\n \n // user -> Pdfviewer_Listener_User\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.gettheme', array('Pdfviewer_Listener_User', 'getTheme'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.account.create', array('Pdfviewer_Listener_User', 'create'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.account.update', array('Pdfviewer_Listener_User', 'update'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.account.delete', array('Pdfviewer_Listener_User', 'delete'));\n \n // registration -> Pdfviewer_Listener_UserRegistration\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.registration.started', array('Pdfviewer_Listener_UserRegistration', 'started'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.registration.succeeded', array('Pdfviewer_Listener_UserRegistration', 'succeeded'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.ui.registration.failed', array('Pdfviewer_Listener_UserRegistration', 'failed'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.registration.create', array('Pdfviewer_Listener_UserRegistration', 'create'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.registration.update', array('Pdfviewer_Listener_UserRegistration', 'update'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'user.registration.delete', array('Pdfviewer_Listener_UserRegistration', 'delete'));\n \n // users module -> Pdfviewer_Listener_Users\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.users.config.updated', array('Pdfviewer_Listener_Users', 'configUpdated'));\n \n // group -> Pdfviewer_Listener_Group\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'group.create', array('Pdfviewer_Listener_Group', 'create'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'group.update', array('Pdfviewer_Listener_Group', 'update'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'group.delete', array('Pdfviewer_Listener_Group', 'delete'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'group.adduser', array('Pdfviewer_Listener_Group', 'addUser'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'group.removeuser', array('Pdfviewer_Listener_Group', 'removeUser'));\n \n // special purposes and 3rd party api support -> Pdfviewer_Listener_ThirdParty\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'get.pending_content', array('Pdfviewer_Listener_ThirdParty', 'pendingContentListener'));\n EventUtil::registerPersistentModuleHandler('Pdfviewer', 'module.content.gettypes', array('Pdfviewer_Listener_ThirdParty', 'contentGetTypes'));\n }", "title": "" }, { "docid": "d7a87d0b41b03b68f7bf36f077aaac24", "score": "0.52106524", "text": "function eventclass_stage2() {\n\t\t\n\t\t// onscreen events\n\t}", "title": "" }, { "docid": "c162e06d6d4b231d4101c3b1dfdc0d7e", "score": "0.5201117", "text": "public function __construct ($app, $event);", "title": "" }, { "docid": "fc00c1f8f795f0c46985932a903679a0", "score": "0.5200995", "text": "public function initialize(CakeEvent $e)\n\t{\n\t\t$listeners = $this->config('listeners');\n\t\tif (!is_array($listeners)) {\n\t\t\t$listeners = (array) $listeners;\n\t\t}\n\n\t\t$listeners = Hash::normalize($listeners);\n\t\tforeach ($listeners as $name => $config) {\n\t\t\tlist($plugin, $className) = pluginSplit($name);\n\n\t\t\tif (in_array($plugin, AppModule::getEnabledModules())) {\n\t\t\t\tif (!is_array($config)) {\n\t\t\t\t\t$config = (array) $config;\n\t\t\t\t}\n\n\t\t\t\t$e->subject->crud->addListener($className, $name, $config);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ade0c6de1d1c19411105863805bd3107", "score": "0.51951957", "text": "public function addListener(EventListener $listener)\n {\n $this->listeners[] = $listener;\n }", "title": "" }, { "docid": "b9f60cf6766f9b9846fac50ea4a61b57", "score": "0.5184911", "text": "public function listenToEvents()\n\t{\n\t\t$this->eventDispatcher->listen(\\Illuminate\\Redis\\Events\\CommandExecuted::class, function ($event) {\n\t\t\t$this->registerCommand([\n\t\t\t\t'command' => $event->command,\n\t\t\t\t'parameters' => $event->parameters,\n\t\t\t\t'duration' => $event->time,\n\t\t\t\t'connection' => $event->connectionName,\n\t\t\t\t'time' => microtime(true) - $event->time / 1000\n\t\t\t]);\n\t\t});\n\t}", "title": "" }, { "docid": "64baca587db27658b34b65e4d038c757", "score": "0.5177494", "text": "public function getListener()\n {\n return $this->listener;\n }", "title": "" }, { "docid": "d835cd9f85b3dc247c87efc39145c653", "score": "0.51733905", "text": "public static function getSubscribedEvents();", "title": "" }, { "docid": "77e2bca8c89bcc6e4b9d437e98adcb7b", "score": "0.51653254", "text": "public function addListener($listener)\n {\n $this->listeners[] = $listener;\n }", "title": "" }, { "docid": "30ad7e7706be7d11f6bfdd3c984f55c8", "score": "0.5164962", "text": "abstract public function listen(Event $event, ...$data);", "title": "" }, { "docid": "6a4bc26e43a4fded52d2588a28c55bf6", "score": "0.51604986", "text": "public function __construct() {\n\t\t$this->createHandles();\n\t\t$this->registerOnchangeEvents();\n\t}", "title": "" }, { "docid": "5674a037eb4a43f07125fdc8848517f6", "score": "0.51558745", "text": "public function getListener(){\n\t\treturn array($this->type => $this->action);\n\t}", "title": "" } ]
d42b5b5f46bfa4d465805bb0701d9d6f
Get the last updated date/time.
[ { "docid": "467bca2c235ea0ad48c97b5b02c9223e", "score": "0.0", "text": "public function getLastUpdatedDateTime($dateFormat = false)\n\t{\n\t\tif (!$dateFormat)\n\t\t\t$dateFormat = Fractal::getDateTimeFormat();\n\n\t\treturn Fractal::dateTimeSet($this->updated_at) ? date($dateFormat, strtotime($this->updated_at)) : date($dateFormat, strtotime($this->created_at));\n\t}", "title": "" } ]
[ { "docid": "b5733238957483c2efccadc1cfeeaeda", "score": "0.8603074", "text": "public function getLastUpdateTime()\n {\n return $this->last_update_time;\n }", "title": "" }, { "docid": "626956f6ad385e06246328901caf02a1", "score": "0.83946157", "text": "public static function getLastUpdatedTime()\n {\n include_once 'Libs/String/String.inc';\n $lastUpdated = 'N/A';\n $config = Patching::getPatchingConfig();\n if ($config['last_updated'] !== 0) {\n $lastUpdated = String::easyDatetime($config['last_updated']);\n }\n\n return $lastUpdated;\n\n }", "title": "" }, { "docid": "8b79faf4448bc068eb9773ed5976d3f9", "score": "0.83629674", "text": "public function getLastUpdateAt()\n {\n return $this->LastUpdateAt;\n }", "title": "" }, { "docid": "d0ce2934fae2338bfca032b6e185bd17", "score": "0.8306772", "text": "public function lastUpdated()\n\t{\n\t\treturn $this->data[ 'last-updated' ];\n\t}", "title": "" }, { "docid": "927ae949c2e1b40f3cc9a12d86bf80fa", "score": "0.8274397", "text": "public function getLastUpdated()\n {\n return $this->lastUpdated;\n }", "title": "" }, { "docid": "927ae949c2e1b40f3cc9a12d86bf80fa", "score": "0.8274397", "text": "public function getLastUpdated()\n {\n return $this->lastUpdated;\n }", "title": "" }, { "docid": "1f5d6ad2e643841261affb38d57215cf", "score": "0.8268369", "text": "public function getLastUpdateTime()\r\n\t{\r\n return empty($this->lastUpdateTime) ? time() : $this->lastUpdateTime;\r\n\t}", "title": "" }, { "docid": "b3e0d3fc9dd48099778f862153a88789", "score": "0.82666713", "text": "public function getLastUpdated()\n {\n $lastUpdated = $this->owner->hasAttribute($this->lastUpdatedAttribute) ? $this->owner->getAttribute($this->lastUpdatedAttribute) : null;\n return $this->formatLocalizedDateTime($lastUpdated);\n }", "title": "" }, { "docid": "93253772e6ce08bdfe64b13723ed83e9", "score": "0.8259208", "text": "public function getLastUpdated() {\n return $this->lastUpdated;\n }", "title": "" }, { "docid": "b5de4bd9c2d172d932f03944e20d2e43", "score": "0.81899625", "text": "public function getLastUpdatedDateTime()\n {\n if (array_key_exists(\"lastUpdatedDateTime\", $this->_propDict)) {\n return $this->_propDict[\"lastUpdatedDateTime\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "633ab5f09f55dd283ad9385193c1085a", "score": "0.81844765", "text": "public function getUpdatedTime() {\r\n\t\treturn $this->updatedTime;\r\n\t}", "title": "" }, { "docid": "803b1aca831b32c6f4a7085e108dcf57", "score": "0.8182019", "text": "public function getLastUpdate()\n {\n return $this->last_update;\n }", "title": "" }, { "docid": "a906db21795c844b1824ca4b04b421c7", "score": "0.8147133", "text": "public function getLastUpdateDatetime()\n {\n return $this->getValue('nb_site_last_update_datetime');\n }", "title": "" }, { "docid": "75788ba596c8465278405cfa3edee1f5", "score": "0.8068554", "text": "public function getLastUpdate()\n {\n return $this->lastUpdate;\n }", "title": "" }, { "docid": "c06e06c358b4d02dec22adc1b02db408", "score": "0.80617714", "text": "public function getLast_Update()\n {\n return $this->last_update;\n }", "title": "" }, { "docid": "017d7ff06e8ce1b8c64a410505945492", "score": "0.8037403", "text": "public function getLastModified()\n {\n return $this->getMTime();\n }", "title": "" }, { "docid": "b531aad9f3a9c0551e45b67af26a78d6", "score": "0.8031899", "text": "public function getLastUpdateDate();", "title": "" }, { "docid": "5e8e59520bb1ca5f39bc2631561e1350", "score": "0.7989474", "text": "public function getTimeUpdated()\n {\n return $this->time_updated;\n }", "title": "" }, { "docid": "1b430314dffc2fcced91f1b560c5ce33", "score": "0.79664564", "text": "public function getUpdated()\n {\n return $this->updated ? DateTime::createFromFormat('Y-m-d H:i:s', $this->updated) : null;\n }", "title": "" }, { "docid": "e453d1ca22e274d855711e2deffcd03f", "score": "0.79531646", "text": "public function getUpdateTime()\n {\n return isset($this->update_time) ? $this->update_time : null;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7940061", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "7b25416ee310629a581b5f391b4be64d", "score": "0.79270947", "text": "public function getUpdated() : \\DateTime\n {\n return $this->updated;\n }", "title": "" }, { "docid": "814286ca72134c39f67c714c1ea253d6", "score": "0.79051685", "text": "public function LastUpdate() {\r\n\t\t$result = mysql_query(\"SELECT `iTimestamp` FROM `z_pricing` WHERE `marketGroupID` = '\" . $this->DatabaseId() . \"' ORDER BY `iTimestamp` DESC LIMIT 1;\");\r\n\t\twhile ($row = mysql_fetch_object($result)) {\r\n\t\t\t$timestamp = $row->iTimestamp;\r\n\t\t}\r\n\t\treturn $timestamp;\r\n\t}", "title": "" }, { "docid": "0457c6c4f4d00d53482814ee3013172f", "score": "0.7792514", "text": "public function getLastTimeModified()\n {\n return $this->lastTimeModified;\n }", "title": "" }, { "docid": "50dd859162afd90418143b1597c3bf10", "score": "0.7790827", "text": "public function updated_at()\n\t{\n return $this->date($this->updated_at);\n\t}", "title": "" }, { "docid": "50dd859162afd90418143b1597c3bf10", "score": "0.7790827", "text": "public function updated_at()\n\t{\n return $this->date($this->updated_at);\n\t}", "title": "" }, { "docid": "50dd859162afd90418143b1597c3bf10", "score": "0.7790827", "text": "public function updated_at()\n\t{\n return $this->date($this->updated_at);\n\t}", "title": "" }, { "docid": "f408ce98b9cf0102c23638f26e5750b4", "score": "0.77626294", "text": "public function getDateUpdated() {\n return $this->dateUpdated;\n }", "title": "" }, { "docid": "a7c9923f011ff6fe7fac90e589b1bdf2", "score": "0.77574134", "text": "public function getUpdateDateTime()\n {\n return $this->getRawValue('Update');\n }", "title": "" }, { "docid": "7a70d4f70eea00d76b83db4efd6a43b7", "score": "0.7747507", "text": "public function getUpdated()\n {\n return new DateTime($this->xml->updated->__toString());\n }", "title": "" }, { "docid": "fa8f6b192fbc048447f4ede3ff783f27", "score": "0.77424943", "text": "public function updated_at()\n {\n return $this->date($this->updated_at);\n }", "title": "" }, { "docid": "578809e59403d7409322c73568427bb6", "score": "0.770532", "text": "public function getUpdatedDate()\n\t {\n\t return $this->updated_date;\n\t }", "title": "" }, { "docid": "e57fd375e0ddda9cb27da1cd60ee3fd5", "score": "0.77051246", "text": "public function getUpdated_at()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "e57fd375e0ddda9cb27da1cd60ee3fd5", "score": "0.77051246", "text": "public function getUpdated_at()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "6cca149dcd6fa8c7e06dfe7a18818f54", "score": "0.7685506", "text": "public function getLastModifiedAt()\n {\n return $this->lastModifiedAt;\n }", "title": "" }, { "docid": "89965b0ed9166c8dbd25983b3e077211", "score": "0.7643746", "text": "public function get_date_update()\n\t{\n\t\treturn $this->date_update;\n\t}", "title": "" }, { "docid": "044daea62ed297ceba746a6c12b08e31", "score": "0.7633625", "text": "public function getTimeUpdate()\n {\n return $this->time_update;\n }", "title": "" }, { "docid": "bcf78d2175896a47e9da83795ac748e5", "score": "0.76333857", "text": "public function getLastModifiedTime()\n\t {\n\n\t\t return $this->lastModifiedTime;\n\t }", "title": "" }, { "docid": "b386d6ef0477982c9e3055af1694d9b8", "score": "0.76057345", "text": "public function updated_at()\n {\n return (new Date($this->wrappedObject->updated_at))\n ->setTimezone($this->setting->get('app_timezone'))->toDateTimeString();\n }", "title": "" }, { "docid": "53a775027ea33e2c857738d464725485", "score": "0.75845", "text": "public static function OverallLastUpdate() {\r\n\t\t$result = mysql_query(\"SELECT `iTimestamp` FROM `z_pricing` ORDER BY `iTimestamp` DESC LIMIT 1;\");\r\n\t\twhile ($row = mysql_fetch_object($result)) {\r\n\t\t\t$timestamp = $row->iTimestamp;\r\n\t\t}\r\n\t\treturn $timestamp;\r\n\t}", "title": "" }, { "docid": "57d007c2e51d5de343bb7786d33a29ce", "score": "0.7581364", "text": "public function getDateUpdate() {\n return $this->date_update;\n }", "title": "" }, { "docid": "84caa03194af94dac72247ec763854b9", "score": "0.75743294", "text": "public function getLastSeenTime()\n {\n return $this->last_seen_time;\n }", "title": "" }, { "docid": "7d848c2838072a6f0c622625f9188898", "score": "0.75694287", "text": "public function lastUpdated()\n {\n $query = \"SELECT `date` FROM `new_case` ORDER BY `id` DESC LIMIT 1\";\n $result = $this->getQry($query);\n\n if ($result->rowCount() > 0) {\n $row = $result->fetch(PDO::FETCH_ASSOC);\n\n $updatedDate = date(\"l, F d\", strtotime($row['date']));\n $atDate = date(\"H:i\", strtotime($row['date']));\n\n return \"Updated \" . $updatedDate . \" at \" . $atDate . \"CST\";\n }\n\n return \"\";\n }", "title": "" }, { "docid": "e7773f8be5361143888c463c4f979482", "score": "0.756424", "text": "function getLastModified() {\n\t\treturn $this->getData('lastModified');\n\t}", "title": "" }, { "docid": "33c792314a06f7fb24c5c18848d2d1ac", "score": "0.75328934", "text": "public function getLastUpdated()\n {\n //TODO percorrer todos projs, devolver ultimos 4\n }", "title": "" }, { "docid": "9ac5495167b0ac30928e1c78cc1485e0", "score": "0.75262696", "text": "public function getUpdatedAt()\r\n {\r\n return $this->updated_at;\r\n }", "title": "" }, { "docid": "3422ca34d86966e7c8193ef65e4a94ef", "score": "0.75235623", "text": "public function getLastModified()\n {\n return $this->get(self::RESULT_LAST_MODIFIED);\n }", "title": "" }, { "docid": "fca415c5f738ee984843e405f0628cea", "score": "0.75081366", "text": "public function getUpdateAt() {\n return $this->update_at;\n }", "title": "" }, { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.7505349", "text": "public function getUpdateAt()\n {\n return $this->update_at;\n }", "title": "" }, { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.7505349", "text": "public function getUpdateAt()\n {\n return $this->update_at;\n }", "title": "" }, { "docid": "f64f5db4de61583f3aee6f8de2c1c7f4", "score": "0.7495737", "text": "public function getYt_last_update(){\n return $this->yt_last_update;\n }", "title": "" }, { "docid": "8feb740af1141aca04dfb98838242428", "score": "0.7491836", "text": "public function getLastModifiedDate()\n {\n return $this->lastModifiedDate;\n }", "title": "" }, { "docid": "7ef0ce646ea2721b416bc5f222fe586a", "score": "0.7490026", "text": "public function getLastModified() \n {\n $obj = Directory::getObject($this->path);\n return strtotime($obj[\"last_modified\"]);\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "0a476a41fbe277fe44f1a54113cb057d", "score": "0.74824035", "text": "public function getUpdatedAt()\n {\n return $this->updated_at;\n }", "title": "" }, { "docid": "7894fe85bef8dde211b5ea83df9b3350", "score": "0.7481172", "text": "public function getDateUpdate()\n {\n return $this->date_update;\n }", "title": "" }, { "docid": "d7923b251a5d8d0c1fac7a5744a7fe54", "score": "0.74715793", "text": "function getLastUpdated() {\n\t\tif (!empty($this->id)) {\n\t\t\tglobal $log;\n\t\t\treturn $log->getLastUpdated(blogPostContentId, $this->id);\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9ba0fe92f4392791b083126332227947", "score": "0.7470808", "text": "protected function getObjectUpdatedDate()\n {\n $attribute = 'modifytimestamp';\n\n if ($this->object instanceof ActiveDirectory) {\n $attribute = 'whenchanged';\n }\n\n $timestamp = $this->object->{$attribute};\n\n return $timestamp instanceof Carbon ?\n $timestamp->setTimezone(config('app.timezone')) :\n now();\n }", "title": "" }, { "docid": "7f3dac4c93ec9b0e0b3dfd39cfdae2c8", "score": "0.7455966", "text": "public function getLastUpdatedAt()\r\n {\r\n $log = $this->logFactory->create()->getCollection()\r\n ->addFieldToFilter('zohocrm_table', Queue::TYPE_PRODUCT)\r\n ->addFieldToFilter('id_magento', $this->getProductId())\r\n ->getLastItem();\r\n return $log->getData('datetime') ? $this->formatDate($log->getData('datetime'), \\IntlDateFormatter::MEDIUM, true) : 'Never';\r\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" }, { "docid": "0b7a3257364453e4642861d14640b039", "score": "0.7449154", "text": "public function getUpdatedAt()\n {\n return $this->updatedAt;\n }", "title": "" } ]
2801561a571493dc8a7358494844ebed
Resets the queue order of the menus
[ { "docid": "0dd60d98568d05fc04cb6436a9004189", "score": "0.80702", "text": "private function resetMenu()\n {\n $db = \\phpws2\\Database::newDB();\n $m = $db->addTable('menus');\n $m->addField('id');\n $m->addOrderBy('queue');\n $result = $db->select();\n\n if (empty($result)) {\n return;\n }\n\n $queue = 1;\n foreach ($result as $row) {\n $db->clearConditional();\n $m->resetValues();\n $m->addValue('queue', $queue);\n $m->addFieldConditional('id', $row['id']);\n $db->update();\n $queue++;\n\n $this->reorderLinks($row['id'], 0);\n }\n }", "title": "" } ]
[ { "docid": "0d533f24b2cb65cb1e1abe1dd33deaff", "score": "0.6685369", "text": "protected function reset()\n {\n $this->state->reset();\n $this->commands = new SplQueue();\n }", "title": "" }, { "docid": "f78adf0052d6567ef5f03599e7c6eac6", "score": "0.66578466", "text": "public function clearMenus()\n {\n $this->collMenus = null; // important to set this to NULL since that means it is uninitialized\n }", "title": "" }, { "docid": "fd90b0a05d42656889b6558a54245250", "score": "0.66457665", "text": "public function reset() {\n $this->_queue = array();\n }", "title": "" }, { "docid": "c8e540d15892d7995959124ea0e53ff9", "score": "0.6571963", "text": "public function resetOrder();", "title": "" }, { "docid": "ff53ea487dccbac195f36ea83d1c8b97", "score": "0.6540995", "text": "public function reset()\n\t{\n\t\t// reset the queue\n\t\t$this->_queue = array();\n\t}", "title": "" }, { "docid": "4a3e39553e93956b7bb2a54c1d76519a", "score": "0.64234954", "text": "public function clearClassMenus()\n {\n $this->menus = null;\n }", "title": "" }, { "docid": "55fa82dcf58ac1ae49c8b924c96165c6", "score": "0.60998523", "text": "function Reset()\n\t{\n\t\t$this->trave_stack = array();\n\t\t$this->trave_index = -1;\n\t}", "title": "" }, { "docid": "55fa82dcf58ac1ae49c8b924c96165c6", "score": "0.60998523", "text": "function Reset()\n\t{\n\t\t$this->trave_stack = array();\n\t\t$this->trave_index = -1;\n\t}", "title": "" }, { "docid": "768fbe7d4bdc6d9fbb8d1bb8eeb8cba0", "score": "0.60944647", "text": "public function clearQueue()\n {\n $this->actions = [];\n }", "title": "" }, { "docid": "e789671b5ebb4657bfdf364be5d969a7", "score": "0.6071843", "text": "private function resetStack()\n\t{\n\t\t$this->container->platform->setSessionVar('cleantmp_stack', '', 'admintools');\n\t\t\n\t\t$this->folderStack = array();\n\t\t$this->filesStack = array();\n\t\t$this->totalFolders = 0;\n\t\t$this->doneFolders = 0;\n\t}", "title": "" }, { "docid": "8b1adebabdfbfd22555eed78ab7e212a", "score": "0.60211366", "text": "private function clearQueue()\n {\n $this->queue = array();\n }", "title": "" }, { "docid": "746297fcf7dffeb4cbcd0be9ad55be3a", "score": "0.59882814", "text": "function Reset()\n\t{\t$this->details = array();\n\t\t$this->submenu = false;\n\t\t$this->id = 0;\n\t}", "title": "" }, { "docid": "2b7b8908e051561f7378b19cc1335d1d", "score": "0.5979427", "text": "public function restore_wp_menu() {\r\n global $menu, $submenu;\r\n $menu = $this->old_wp_menu;\r\n $submenu = $this->old_wp_submenu;\r\n }", "title": "" }, { "docid": "c717b1b35e6b636aca5ea961c7705f05", "score": "0.59791416", "text": "protected function menuFlush()\n {\n if (Yii::$app->get('menu', false)) {\n Yii::$app->menu->flushCache();\n }\n }", "title": "" }, { "docid": "8a45669ae8609fd810d96fabaaf3613d", "score": "0.597373", "text": "public function reset()\n\t{\n\t\t$this->commands = [];\n\t}", "title": "" }, { "docid": "664aee803d41e1ba4c6d8b90cc9333f9", "score": "0.5943014", "text": "public function resetActions();", "title": "" }, { "docid": "41783909eaca5e2e16e07e79b39c9f2a", "score": "0.59330666", "text": "public function clearMenuCache()\n {\n $this->clear(CacheConfig::MENU);\n $this->clear(CacheConfig::MENU_PAGES);\n }", "title": "" }, { "docid": "aa8c5d622fb8f7e06e76fd9c7e2f2860", "score": "0.5882887", "text": "function bbp_admin_repair_reply_menu_order()\n{\n}", "title": "" }, { "docid": "e750d2bf803eb431b70613fb3d60ee57", "score": "0.5848668", "text": "public function destroy()\n {\n $this->menus = array();\n }", "title": "" }, { "docid": "342808d25c0551df79ad9bc2e7039544", "score": "0.56876683", "text": "public function reset()\n\t{\n\t\t$this->_current = array();\n\t\tforeach ( $this->_defaults as $k => $v ){\n\t\t\t$this->_current[$k] = $v;\n\t\t}\n\t\t$this->global_cfg['setting'] = $this->_defaults;\n\t\t$this->global_cfg['elements'] = [];\n\t\t$this->items = array();\n\t\t$this->id = \\bbn\\str\\text::genpwd(20,15);\n\t}", "title": "" }, { "docid": "94511a757d167a74ae5706c7187cd7d5", "score": "0.5654344", "text": "public function clearMenuCache() {\n\n $cache = Zend_Registry::get('Zend_Cache');\n $levels = Engine_Api::_()->getDbtable('levels', 'authorization')->getLevelsAssoc();\n foreach ($levels as $level_id => $level_name) {\n $cache->remove('main_menu_html_for_' . $level_id);\n $cache->remove('main_menu_cache_level_' . $level_id);\n }\n\n $cache->remove('footer_menu_cache');\n }", "title": "" }, { "docid": "be0272c4722fe902aad49a36aa98d86c", "score": "0.56441015", "text": "public function clear_queue() {\n\t\t$this->data = array();\n\t}", "title": "" }, { "docid": "a4e69ed6dc4b372ace7aeef38236dd04", "score": "0.5639857", "text": "public function reset()\r\n {\r\n if (self::hasItems()) {\r\n self::resetItems();\r\n }\r\n self::changeStatus(self::STATUS_PENDING);\r\n self::resetDateTimes();\r\n }", "title": "" }, { "docid": "c4acd699703a51a8c0addb4934d4c523", "score": "0.56098634", "text": "private function refreshQueue() : void {\n if (!empty($this->queue)) {\n unset($this->queue);\n }\n $this->queue = $queue = $this->getQueueFactory()->get('govdelivery_bulletins');\n }", "title": "" }, { "docid": "4e1c092090a1b613f7311eed52050ede", "score": "0.5608066", "text": "protected function resetItems()\n {\n foreach ($this->options as $op => $junk) {\n if (preg_match('#Items#', $op)) {\n unset($this->options[$op]);\n }\n }\n }", "title": "" }, { "docid": "6e4accd2a6b34059ba758e8c03aa3db8", "score": "0.5596683", "text": "public function resetf()\r\n {\r\n $this->initialState = current($this->states); // si le pongo states[0] no sirve xq no tiene esa key, como no uso iteradores, current me da siempre el primero del array.\r\n $this->currentState = current($this->states);\r\n $this->model = array();\r\n }", "title": "" }, { "docid": "8d2faaf748b7af8d60990cc78ff2e063", "score": "0.5588791", "text": "function reset() {\n\t\t$this->_resetSet();\n\t}", "title": "" }, { "docid": "b03e815d5367c132ea95a48195740212", "score": "0.5577207", "text": "public function reset()\n {\n $this->blockStack = [];\n $this->blocks = [];\n }", "title": "" }, { "docid": "718b7d26973ec12448a9a57757337a8b", "score": "0.55364984", "text": "public function clear()\r\n\t{\r\n\t\t$this->screens = array(); \t\t\r\n\t}", "title": "" }, { "docid": "a044912494e8fdb3c812055a686bee95", "score": "0.5518555", "text": "public function resetAll();", "title": "" }, { "docid": "97c6336db045372a85db63ef6f4e0767", "score": "0.5518325", "text": "public function reset() {\r\n\t\t$this->children[] = \"\";\r\n\t}", "title": "" }, { "docid": "cadca9941ff1e671c1bc5bccdad9ab0a", "score": "0.54905987", "text": "protected function reset()\n {\n $this->current = null;\n }", "title": "" }, { "docid": "56c8a68be928ee56c9d7eacd336baf76", "score": "0.5483626", "text": "function alfred_unset_menus() {\n\tremove_menu_page( 'edit.php' );\n\tremove_menu_page( 'link-manager.php' );\n}", "title": "" }, { "docid": "c3102f80660df5be088c8def47ca1803", "score": "0.5470438", "text": "public function reset()\n {\n $this->m_position = false;\n $this->m_latestParams = null;\n $this->_reset();\n }", "title": "" }, { "docid": "8d8996f33378e30119223e47d27d2bbd", "score": "0.546749", "text": "private function refreshQueue() {\n if (!empty($this->queue)) {\n unset($this->queue);\n }\n $this->queue = $queue = $this->getQueueFactory()->get('govdelivery_bulletins');\n }", "title": "" }, { "docid": "4e6dc8aae22a538732e43fcf9945c7cd", "score": "0.54622793", "text": "public function resetOrders();", "title": "" }, { "docid": "8edec8b6513a5b73e8473de230b8ca41", "score": "0.54517484", "text": "public function reset() {\n\t\t$this->opa_requests = array();\n\t}", "title": "" }, { "docid": "ebe4503995fcbf1e682881b77d27e714", "score": "0.5442404", "text": "public function reset () {\n\t\t$this->index = -1;\n\t}", "title": "" }, { "docid": "40b7306e672115d6fa2a279c911e22ec", "score": "0.54393446", "text": "function deshabilitaBarraMenu(){\n\t}", "title": "" }, { "docid": "7ede0c3e3d115c716dd592f46100e1f3", "score": "0.5439101", "text": "public function clear() {\n unset($this->commands);\n $this->commands = array();\n }", "title": "" }, { "docid": "91113c2df9d7d19d02263a0df20dd58b", "score": "0.5421971", "text": "public function reset(): void\n {\n $this->list = [];\n }", "title": "" }, { "docid": "334775e706ac0ec4867aae4b13a6658d", "score": "0.5418141", "text": "function reset()\n\t{\n\t\t$this->contribs = array();\n\t\t$this->size = 0;\n\t}", "title": "" }, { "docid": "de44b2a200afe20c83ebaa6738831c78", "score": "0.540721", "text": "public function clear() {\r\n\t\t\t$this->items = array();\r\n\t\t}", "title": "" }, { "docid": "06b1ae37c97ecfb59aa6ed1090fdc23c", "score": "0.54016", "text": "public function render_menu(){\n if (!current_user_can('publish_posts')) {\n wp_die(__('You do not have sufficient permissions to access this page.'));\n }\n if (isset($_POST['_wpnonce'])) {\n if (!check_admin_referer(\"stt_menu_form\")) { ?>\n <div class=\"error\"><p>Your session has timed out. Please try again.</p></div><?php\n } else {\n $operation = $this->process_action(@$_POST[\"stt_menu_action\"]);\n if (is_wp_error($operation)) { ?>\n <div class=\"error\"><p><strong>An error occurred: <?php echo $operation->get_error_message(); ?></strong></p></div><?php\n } else { ?>\n <div class=\"updated\"><p><strong><?php echo (is_string($operation) ? $operation : 'Finished.'); ?></strong></p></div><?php\n }\n }\n }\n\n ?>\n <div class=\"wrap\">\n <div id=\"icon-tools\" class=\"icon32\"><br /></div>\n <h2>Send to Top</h2>\n <p>Use this page to reset order schemas</p>\n <form method=\"post\" name=\"stt_menu_form\">\n <?php wp_nonce_field(\"stt_menu_form\"); ?>\n <select name=\"stt_menu_action\" id=\"stt_menu_dropdown\">\n <option value=\"NULL\" disabled=\"disabled\" selected=\"selected\">Select an option</option>\n <option value=\"NULL\" disabled=\"disabled\"></option>\n <?php\n foreach ($this->get_schemas() as $schema_key => $schema){\n echo '<option value =\"' . esc_attr($schema_key) . '\">' . esc_html($schema['readable']) . '</option>';\n }\n ?>\n </select>\n <input class=\"button button-primary\" type=\"submit\" value=\"Reset Ordering\"/>\n </form>\n </div>\n <?php\n\n }", "title": "" }, { "docid": "30477d0ac19fb2ac979e0c4c3142adba", "score": "0.53956443", "text": "public function clearState();", "title": "" }, { "docid": "3736bb7061e27c2c4e87af8b3561267c", "score": "0.5388272", "text": "public function resetCurrent() {\n if(isset($_SESSION[$this->ss_name]['current'])) unset($_SESSION[$this->ss_name]['current']);\n foreach($this->arrItems as $ind=>$arItem){\n if($arItem['def4show']){\n $_SESSION[$this->ss_name]['current'] = $this->arCurrent = $arItem;\n break;\n }\n }\n }", "title": "" }, { "docid": "2312a6553fd3990794e8932d6bfb6106", "score": "0.53841186", "text": "public function resetToDefaults()\n\t{\n\t\t$this->resetOffset();\n\t\t$this->setOrderField('type_sortable');\n\t\t$this->setOrderDirection('asc');\n\t}", "title": "" }, { "docid": "d80cacc0f8896781eadc8616b292cde2", "score": "0.53728044", "text": "function reset()\n\t{\n\t\tif($this->q_ar_cache['on'] == true)\n\t\t{\n\t\t\t// merge with what we have and save it to the cache\n\t\t\t$this->q_ar_cache['end'] = array_merge($this->q_ar_cache['end'], $this->save_cache());\n\t\t}\n\t\t\n\t\tunset($this->q_to_prefix);\n\t\t\n\t\t$this->q_select = '*';\n\t\t$this->q_distinct = false;\n\t\t$this->q_from = array();\n\t\t$this->q_join = array();\n\t\t$this->q_where = array();\n\t\t$this->q_having = array();\n\t\t$this->q_group_by = array();\n\t\t$this->q_order_by = array();\n\t\t$this->q_offset = false;\n\t\t$this->q_limit = false;\n\t\t$this->q_as = null;\n\t\t$this->q_only_where = false;\n\t\t$this->q_set_data = array();\n\t\t$this->q_to_prefix = array();\n\t\t\n\t\t// update cache\n\t\tif($this->q_ar_cache['on'] == true)\n\t\t{\n\t\t\t$this->q_ar_cache['end'] = $this->array_diff_assoc_values($this->q_ar_cache['end'], $this->q_ar_cache['start']);\n\t\t\t$this->q_ar_cache['start'] = array();\n\t\t}\n\t}", "title": "" }, { "docid": "d98e5d1a83a614014563ef790f337daa", "score": "0.5357355", "text": "public function reorder()\n {\n // Ensure the correct sidemenu is active\n BackendMenu::setContext('BenFreke.MenuManager', 'menumanager', 'reorder');\n\n $this->pageTitle = Lang::get('benfreke.menumanager::lang.menu.reordermenu');\n\n $toolbarConfig = $this->makeConfig();\n $toolbarConfig->buttons = '$/benfreke/menumanager/controllers/menus/_reorder_toolbar.htm';\n\n $this->vars['toolbar'] = $this->makeWidget('Backend\\Widgets\\Toolbar', $toolbarConfig);\n $this->vars['records'] = Menu::make()->getEagerRoot();\n }", "title": "" }, { "docid": "51b15f2276cfa9163c68af34bbc0f914", "score": "0.5356694", "text": "public function setupMenus() {\n foreach ($this->menus as $menu) {\n $menu['link'] = st($menu['title']);\n menu_save($menu);\n }\n // Create the main menu links.\n $this->buildMenu($this->menu_items);\n menu_rebuild();\n }", "title": "" }, { "docid": "70ff30984c104e4ac5f60fd1814617da", "score": "0.5352489", "text": "function Reset()\n\t{\t$this->id = 0;\n\t\t$this->details = array();\n\t\t$this->subpages = array();\n\t\t$this->parentpage = false;\n\t}", "title": "" }, { "docid": "45ad6971c0ec6f0a3a2a29c57c950d15", "score": "0.5351518", "text": "public function clear(){\n $this->items = array();\n }", "title": "" }, { "docid": "b3495636d9ea6c1452413fd657e4e06e", "score": "0.5350559", "text": "public function clear() {\n $this->_items = array();\n }", "title": "" }, { "docid": "5067e262148f687f5540010febab047f", "score": "0.533942", "text": "function reset_unasked () {\n\t\tforeach ( $this->entries as $entry )\n\t\t\t$entry->set_has_been_asked( FALSE );\n\t}", "title": "" }, { "docid": "c3fac5a934dd7ae073386ebf965220a7", "score": "0.53344315", "text": "public function reset($items);", "title": "" }, { "docid": "8b270762d7f262edebd1f259d1220140", "score": "0.5323396", "text": "public function reset()\n {\n $this->routes = array();\n $this->group = null;\n self::$names = array();\n self::$areas = array();\n }", "title": "" }, { "docid": "61070fac445116939d0e83959857bf69", "score": "0.53226954", "text": "public function reset()\n {\n $this->stack = [];\n $this->pointer = 0;\n }", "title": "" }, { "docid": "079f91d6a158ccdb044356a91a3f8e6c", "score": "0.53126156", "text": "public function clear()\n {\n $this->_items = array();\n }", "title": "" }, { "docid": "548cbb915fa7476b4d7609572093eb07", "score": "0.52998906", "text": "function clearCommandButtons()\n\t{\n\t\t$this->buttons = array();\n\t}", "title": "" }, { "docid": "32f419d6f6f851118221f08641384661", "score": "0.52980185", "text": "private function initializeQueue()\n {\n for ($i = 0; $i < $this->maxProcs; $i++) {\n $this->back();\n }\n }", "title": "" }, { "docid": "d10672d14ae959c9ed3eee454e43839d", "score": "0.5274011", "text": "protected function clearNav() {\n if($this->interactive && !empty($GLOBALS['XSHELL'])) {\n $GLOBALS['XSHELL']->clear_navbar();\n }\n }", "title": "" }, { "docid": "69adc48824f7829a3571833515184c01", "score": "0.5269058", "text": "public function reset() {\n $this->values[self::ROUTES] = array();\n }", "title": "" }, { "docid": "87a7be8ed17bda27c05cef69874eee93", "score": "0.52521294", "text": "public function clearQueue()\n\t{\n\t\t$this->queued->clear();\n\t}", "title": "" }, { "docid": "20a362ecf7e84d68a19a2c204f97ec6f", "score": "0.5251657", "text": "function RearrangeMenus ($parent_id)\r\n{\r\n\tglobal $db;\r\n\t$query=\"SELECT id FROM menus_items WHERE parent_menu = '\".$parent_id.\"'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY position ASC\";\r\n\t$db->query($query);\r\n\t$y = 0;\r\n\t$ids = array();\r\n\twhile ($db->next_record())\r\n\t{\r\n\t\t$ids[$y] = $db->f('id');\r\n\t\t$y++;\r\n\t}\r\n\t$i = 20;\r\n\tforeach ($ids as $key => $val)\r\n\t{\r\n\t\tUpdateMenusOrder($val, $i);\r\n\t\t$i+=10;\r\n\t}\r\n}", "title": "" }, { "docid": "15f14b416a15ddfe45d7c8e768118e4b", "score": "0.5245802", "text": "function ResetCmd() {\n global $avance_producto;\n\n // Get reset cmd\n if (@$_GET[\"cmd\"] <> \"\") {\n $sCmd = $_GET[\"cmd\"];\n\n // Reset sort criteria\n if (strtolower($sCmd) == \"resetsort\") {\n $sOrderBy = \"\";\n $avance_producto->setSessionOrderBy($sOrderBy);\n $avance_producto->idConsultoria->setSort(\"\");\n $avance_producto->idCronograma->setSort(\"\");\n }\n\n // Reset start position\n $this->lStartRec = 1;\n $avance_producto->setStartRecordNumber($this->lStartRec);\n }\n }", "title": "" }, { "docid": "93767530d2da21dae69f0a036917998f", "score": "0.5242774", "text": "public function reset() {\n $this->free();\n $this->init();\n }", "title": "" }, { "docid": "48aea4eaab4bdd7433fc5ec58379a763", "score": "0.5237974", "text": "public function control_menu_items_shown() {\n\t\tremove_submenu_page( 'index.php', 'update-core.php' );\n\n\n\t\t//\tremove_menu_page( 'jetpack' ); //Jetpack*\n\t\t//\tremove_menu_page( 'edit.php' ); //Posts\n\t\t//\tremove_menu_page( 'upload.php' ); //Media\n\t\t//\tremove_menu_page( 'edit.php?post_type=page' ); //Pages\n\t\tremove_menu_page( 'edit-comments.php' ); //Comments\n\t\tremove_menu_page( 'themes.php' ); //Appearance\n\t\t//\tremove_menu_page( 'plugins.php' ); //Plugins\n\t\t//\tremove_menu_page( 'users.php' ); //Users\n\t\tremove_menu_page( 'tools.php' ); //Tools\n\t\tremove_menu_page( 'options-general.php' ); //Settings\n\t\tremove_menu_page( 'general-ad-management' );\n\t\t// remove_menu_page( 'sucuriscan' );\n\t\t// remove_menu_page( 'w3tc_dashboard' );\n\t\tremove_menu_page( 'amazon-web-services' );\n\t\t// remove_submenu_page( 'options-general.php', 'wpmandrill' );\n\t\t// remove_submenu_page( 'plugins.php', 'cloudflare' );\n\n\t}", "title": "" }, { "docid": "feb5186405b7940348cddfddb4c225b9", "score": "0.52344096", "text": "public function remove_menus() {\n\t\t// remove_menu_page( 'jetpack' ); //Jetpack*\n\t\t// remove_menu_page( 'edit.php' ); //Posts\n\t\t// remove_menu_page( 'upload.php' ); //Media\n\t\t// remove_menu_page( 'edit.php?post_type=page' ); //Pages\n\t\t// remove_menu_page( 'edit-comments.php' ); //Comments\n\t\t// remove_menu_page( 'themes.php' ); //Appearance\n\t\t// remove_menu_page( 'plugins.php' ); //Plugins\n\t\t// remove_menu_page( 'users.php' ); //Users\n\t\t// remove_menu_page( 'tools.php' ); //Tools\n\t\t// remove_menu_page( 'options-general.php' ); //Settings\n\t\t// remove_menu_page( 'edit.php?post_type=acf-field-group' );\t //ACF\n\t}", "title": "" }, { "docid": "bea7b1837c90e97204858b316f943452", "score": "0.52341115", "text": "function orderup( ) {\r\n\tCLMControllerMannschaften::order( -1 );\r\n}", "title": "" }, { "docid": "d08d0c899485aa32ab76d7f374d0d389", "score": "0.5230557", "text": "public function resumeQueue()\n {\n }", "title": "" }, { "docid": "9aceeb69fa4a493ca5922bcba1ad7032", "score": "0.5230125", "text": "public function clear() {\n\t\t$this->commands = array();\n\t\t$this->error = false;\n\t}", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "21624fce68e6e9ac86a42b3189d65bc8", "score": "0.52232796", "text": "public function reset();", "title": "" }, { "docid": "b353a503658d7b06542f05408c2479dc", "score": "0.5221642", "text": "public function reset(){\n reset($this->array);\n }", "title": "" }, { "docid": "6b5115b661ec841f606db0e06429fc93", "score": "0.52187216", "text": "public function resetPickedTargets()\n\t{\n\t\t$this->picked = array();\n\t}", "title": "" }, { "docid": "748f54919e52368afb955a035f5f6ab2", "score": "0.5211166", "text": "protected function reset()\n {\n $this->valid = true;\n $this->fetchmore = true;\n $this->elements = array();\n $this->position = -1;\n $this->current = null;\n }", "title": "" }, { "docid": "1d248fe1088baff5c0af0caaa8075402", "score": "0.52082324", "text": "public function clear(){\r\n\t\t\t$this->css_list = $this->js_list = array();\r\n\t\t\t$this->compress_displayed = false;\r\n\t\t}", "title": "" }, { "docid": "8d8bacc3589f49b5f58fdfc4dd55b205", "score": "0.5205975", "text": "function clear() {\n $this->items = [];\n }", "title": "" }, { "docid": "82f91e79cf5f1f09004d11d6c7469117", "score": "0.5201858", "text": "function orderMenu($uid, $inc, $option) {\r\n\t$database = database::getInstance();\r\n\r\n\t$row = new mosMenu($database);\r\n\t$row->load($uid);\r\n\t$row->move($inc, \"menutype = \" . $database->Quote($row->menutype) . \" AND parent = \" . (int) $row->parent);\r\n\r\n\t// clean any existing cache files\r\n\tmosCache::cleanCache('com_content');\r\n\r\n\tmosRedirect('index2.php?option=' . $option . '&menutype=' . $row->menutype);\r\n}", "title": "" }, { "docid": "4e3f7132a55d11ee656b030c25d5b861", "score": "0.5199246", "text": "function orderMenu( $uid, $inc, $option ) {\n\tglobal $database;\n\n\t$row = new mosMenu( $database );\n\t$row->load( $uid );\n\t$row->move( $inc, \"menutype = \" . $database->Quote( $row->menutype ) . \" AND parent = \" . (int) $row->parent );\n\t\n\t// clean any existing cache files\n\tmosCache::cleanCache( 'com_content' );\n\n\tmosRedirect( 'index2.php?option='. $option .'&menutype='. $row->menutype );\n}", "title": "" }, { "docid": "d95fb2f642fbdcb4002f3da7a038b452", "score": "0.51969826", "text": "public function clear_commands()\n {\n $this->commands = array();\n }", "title": "" }, { "docid": "10a1b12d984471bb8ebe1b0f665eeaf8", "score": "0.51892626", "text": "function ubermenu_sandbox_remove_all_styles() {\n global $wp_styles;\n //uberp($wp_styles->queue);\n foreach( $wp_styles->queue as $i => $sheet ){\n if( strpos( $sheet , 'ubermenu' ) !== 0 ){\n unset( $wp_styles->queue[$i] );\n }\n }\n //uberp($wp_styles->queue);\n //$wp_styles->queue = array();\n\n}", "title": "" }, { "docid": "aaea03399dc13f81d8e787b44062bd60", "score": "0.51813173", "text": "public function remove_menu_items() {\n remove_menu_page(\"edit-comments.php\");\n remove_menu_page(\"edit.php\");\n }", "title": "" }, { "docid": "417afa7cf2e6b5db89368fc3a355057b", "score": "0.51685476", "text": "protected function reset()\n {\n $this->collectionLoaded = false;\n $this->uowAttach = array();\n $this->uowDetach = array();\n $this->collection = array();\n \n }", "title": "" }, { "docid": "8fe60229257f6a4c9547faab27ea1b5e", "score": "0.5165754", "text": "public function clearItems() {\n \n $this->itemsArr = array();\n \n }", "title": "" }, { "docid": "c78a48c64277f904a6d871c196b4ab86", "score": "0.51610625", "text": "public function reset()\n\t{\n\t\t$this->headers = array();\n\t\t$this->rows = array();\n\t\t$this->_actions = array();\n\t}", "title": "" }, { "docid": "6070404dbd0d3d503e8e6263d3c4d9ac", "score": "0.51523226", "text": "public function reset()\n\t{\n\t\t$this->index = $this->original_index;\n\t}", "title": "" }, { "docid": "ea03a1f05c7786f5a64eaf90854da316", "score": "0.51509523", "text": "public function resetUI()\n {\n $this->nombre = '';\n $this->telefono = '';\n $this->localidad = '';\n $this->direccion = '';\n $this->email = '';\n $this->search = '';\n $this->selected_id = 0;\n }", "title": "" }, { "docid": "d6620cf50ca8993df5d27f11a4c654a9", "score": "0.51457095", "text": "function orderdown( ) {\r\n\tCLMControllerMannschaften::order( 1 );\r\n}", "title": "" }, { "docid": "d4275bb2fb0bfe5c1bcc6fabb1471b52", "score": "0.51456904", "text": "function clear_menus_cache_on_update( $nav_menu_selected_id ) {\n\n\t\t$this->clear_cache( 'menu' );\n\n\t}", "title": "" }, { "docid": "53f7e131e3ea2ab594492787c5573436", "score": "0.5127535", "text": "function ResetCmd() {\r\n\t\tglobal $master_siswa;\r\n\r\n\t\t// Get reset command\r\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\r\n\t\t\t$sCmd = $_GET[\"cmd\"];\r\n\r\n\t\t\t// Reset search criteria\r\n\t\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\")\r\n\t\t\t\t$this->ResetSearchParms();\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$master_siswa->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$master_siswa->no_absen->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_nis_nasional->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_nama_Lengkap->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_nama_panggilan->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_jenis_kelamin->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_tempat_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_tanggal_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_agama->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_kewarganegaraan->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_anak_keberapa->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_jumlah_saudara_kandung->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_jumlah_saudara_tiri->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_jumlah_saudara_angkat->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_status_yatim->setSort(\"\");\r\n\t\t\t\t$master_siswa->A_bahasa->setSort(\"\");\r\n\t\t\t\t$master_siswa->B_alamat->setSort(\"\");\r\n\t\t\t\t$master_siswa->B_telepon_rumah->setSort(\"\");\r\n\t\t\t\t$master_siswa->B_tinggal->setSort(\"\");\r\n\t\t\t\t$master_siswa->B_jarak->setSort(\"\");\r\n\t\t\t\t$master_siswa->B_hp->setSort(\"\");\r\n\t\t\t\t$master_siswa->C_golongan_darah->setSort(\"\");\r\n\t\t\t\t$master_siswa->C_penyakit->setSort(\"\");\r\n\t\t\t\t$master_siswa->C_jasmani->setSort(\"\");\r\n\t\t\t\t$master_siswa->C_tinggi->setSort(\"\");\r\n\t\t\t\t$master_siswa->C_berat->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_tamatan_dari->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_sttb->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_tanggal_sttb->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_danum->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_tanggal_danum->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_lama_belajar->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_dari_sekolah->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_alasan->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_kelas->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_kelompok->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_tanggal->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_saat_ini_tingkat->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_saat_ini_kelas->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_saat_ini_kelompok->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_no_psb->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_nilai_danum_sd->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_jumlah_pelajaran_danum->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_nilai_ujian_psb->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_tahun_psb->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_diterima->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_spp->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_spp_potongan->setSort(\"\");\r\n\t\t\t\t$master_siswa->D_status_lama_baru->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_nama_ayah->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_tempat_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_tanggal_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_agama->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_kewarganegaraan->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_pendidikan->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_pekerjaan->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_pengeluaran->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_alamat->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_telepon->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_hp->setSort(\"\");\r\n\t\t\t\t$master_siswa->E_hidup->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_nama_ibu->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_tempat_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_tanggal_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_agama->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_kewarganegaraan->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_pendidikan->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_pekerjaan->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_pengeluaran->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_alamat->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_telepon->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_hp->setSort(\"\");\r\n\t\t\t\t$master_siswa->F_hidup->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_nama_wali->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_tempat_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_tanggal_lahir->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_agama->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_kewarganegaraan->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_pendidikan->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_pekerjaan->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_pengeluaran->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_alamat->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_telepon->setSort(\"\");\r\n\t\t\t\t$master_siswa->G_hp->setSort(\"\");\r\n\t\t\t\t$master_siswa->H_kesenian->setSort(\"\");\r\n\t\t\t\t$master_siswa->H_olahraga->setSort(\"\");\r\n\t\t\t\t$master_siswa->H_kemasyarakatan->setSort(\"\");\r\n\t\t\t\t$master_siswa->H_lainlain->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tanggal_meninggalkan->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_alasan->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tanggal_lulus->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_sttb->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_danum->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_nilai_danum_smp->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tahun1->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tahun2->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tahun3->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tk1->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tk2->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_tk3->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_dari1->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_dari2->setSort(\"\");\r\n\t\t\t\t$master_siswa->I_dari3->setSort(\"\");\r\n\t\t\t\t$master_siswa->J_melanjutkan->setSort(\"\");\r\n\t\t\t\t$master_siswa->J_tanggal_bekerja->setSort(\"\");\r\n\t\t\t\t$master_siswa->J_nama_perusahaan->setSort(\"\");\r\n\t\t\t\t$master_siswa->J_penghasilan->setSort(\"\");\r\n\t\t\t\t$master_siswa->kode_otomatis->setSort(\"\");\r\n\t\t\t\t$master_siswa->apakah_valid->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$master_siswa->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "49d7c3f49125345a4c8c5f1d105b9f61", "score": "0.51172376", "text": "function ResetCmd() {\n\t\tglobal $acc_setting_coa;\n\n\t\t// Get reset cmd\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t\t// Reset sort criteria\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$acc_setting_coa->setSessionOrderBy($sOrderBy);\n\t\t\t\t$acc_setting_coa->id->setSort(\"\");\n\t\t\t\t$acc_setting_coa->description->setSort(\"\");\n\t\t\t\t$acc_setting_coa->coa->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->lStartRec = 1;\n\t\t\t$acc_setting_coa->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "4708c03751ea4cd84b2df3bc094f299a", "score": "0.51137805", "text": "public function clearItem() {\n $this->current_item = NULL;\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "69b151fa66a73a39e0853fbb303335f2", "score": "0.0", "text": "public function destroy(Request $request, Conversation $conversation)\n {\n $user = $request->user();\n $this->authorize('delete', $conversation);\n $messages = $conversation->messages()->where(\"deleted_by->$user->id\", null)->get();\n $messages->map(function($msg) use($user){\n $msg->deletedBy($user);\n });\n\n return ['status' => true, 'msg' => trans('msg.deleted'), 'conversation' => $conversation];\n\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "6ffd51684d27200dd20bb77ae5392465", "score": "0.65282005", "text": "public function dispatchOnPostRemoveResource($resource);", "title": "" }, { "docid": "20340ae69f46965449dc508b639c84e9", "score": "0.6511765", "text": "public function remove_storage()\n\t{\n\t\t$this->_storage->destroy_storage();\n\t}", "title": "" }, { "docid": "052edc379f178da3bc9936ef223b6ef8", "score": "0.64856714", "text": "public function remove() {\n Storage::disk('public')->delete($this->getPath());\n $this->delete(); //Remove db record\n }", "title": "" }, { "docid": "8566de5772ba8f11471da580f8907d09", "score": "0.64848197", "text": "public static function remove(string $resourcePath): void\n {\n $file = self::generatePath(\n self::generateHash($resourcePath)\n );\n\n if (\\is_file($file)) {\n \\unlink($file);\n }\n }", "title": "" }, { "docid": "b9b85ab47af2f085664ea4fb3f54b26d", "score": "0.6444909", "text": "public function dispatchOnPreRemoveResource($resource);", "title": "" }, { "docid": "7c8424d31eaa624067dc5241abfb9372", "score": "0.6257354", "text": "public function deleteStorage($storageId);", "title": "" }, { "docid": "5881486a94aded91c41895b5d1b51444", "score": "0.6238561", "text": "public function delete($resource) {\r\n\t\t\t\r\n\t\t$url = $this->_path . '/api/v2' . $resource;\r\n\t\t\r\n\t\t$curl = curl_init();\r\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $this->_headers);\r\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($curl, CURLOPT_VERBOSE, 1);\r\n\t\tcurl_setopt($curl, CURLOPT_HEADER, 1);\r\n\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\r\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\r\n\t\t$response = curl_exec($curl);\r\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\r\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\r\n\t\t$headers = substr($response, 0, $header_size);\r\n\t\t$body = substr($response, $header_size);\r\n\t\tself::http_parse_headers($headers);\t \r\n\t\tcurl_close ($curl);\r\n\t\tif ($http_status == 204) {\r\n\t \treturn $http_status . ' DELETED';\r\n\t\t } else {\r\n\t\t \t$this->error($body, $url, null, 'DELETE');\r\n\t\t }\r\n\t}", "title": "" }, { "docid": "71cdf2c8771b0884ed0346cbff1672a0", "score": "0.62021154", "text": "abstract protected function destroyResource(): void;", "title": "" }, { "docid": "8c0ed41f8673fd843b7ffdb22bce5eb0", "score": "0.611688", "text": "public function afterDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "77d39170a9748d8eca11f292068832c6", "score": "0.6077847", "text": "public function delete($storageName, $key);", "title": "" }, { "docid": "ece2955e505228c5979763b54ea0ee46", "score": "0.6066214", "text": "public function remove(\n int $right,\n $resource,\n IUser $user,\n ?IResource $parentResource = null\n ): void\n {\n $hash = $this->hash($right, $resource, $user, $parentResource);\n $this->storage->remove($hash);\n }", "title": "" }, { "docid": "43dc6df10818b4435103bc0ee31fc8d1", "score": "0.6045101", "text": "public function destroy($id)\n {\n $record = Resource::where('id', $id)->get();\n\n if (!empty($record[0])) {\n DB::beginTransaction();\n\n $isRemoved = self::remove($record);\n }\n }", "title": "" }, { "docid": "db4382353b96e87cb5a70c801383930a", "score": "0.603214", "text": "public function delete($resourceId = null, $options = []);", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "a2014b07fec4eb27432905d903e64664", "score": "0.59784347", "text": "public function destroy($id)\n {\n $storage = Storage::find($id);\n if($storage->item())\n {\n $storage->item()->detach();\n if( $storage->delete() )\n {\n return response('Deleted.',200);\n }\n }\n return response('Error.',400);\n }", "title": "" }, { "docid": "f23ad90184663348cc9db3cf44d0b0a5", "score": "0.595982", "text": "public function destroy(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json([\n\t\t\t\t\t'destroyed'=>$resource->delete()\n\t\t\t\t]);\n }", "title": "" }, { "docid": "462a710c39c75c675bfe433bce80e2fe", "score": "0.5951811", "text": "public function destroy()\n {\n if ($this->instance instanceof Storage) {\n $this->instance->destroy();\n }\n $this->instance = null;\n }", "title": "" }, { "docid": "c39bd1cfb71eb924026011c0e976a9d4", "score": "0.5933563", "text": "public function delete(string $resourceType, $modelOrResourceId): void;", "title": "" }, { "docid": "31f350f911a74d37fb3a78e6981becb5", "score": "0.5921418", "text": "public function removeStorage()\n\t{\n\t\t$this->taskExec('docker rm chrome-print-storage')->run();\n\t}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "e03265a289855852afd2372dcb1d8daa", "score": "0.58933157", "text": "public function remove($path, $hard = false);", "title": "" }, { "docid": "7a7d76b4d53301e7ae6922b772849358", "score": "0.5886972", "text": "public function destroy($file)\n {\n $file = File::where('id', $file)->first();\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', 'ok');\n }", "title": "" }, { "docid": "3f6a8794d81fc01347d2f3307ac44d78", "score": "0.58504206", "text": "public function destroy($id)\n {\n //\n\n $contratista= contratistas::findOrFail($id);\n\n if (Storage::delete('public/'.$contratista->Foto)){\n Contratistas::destroy($id);\n\n }\n\n \n \n return redirect('contratistas')->with('Mensaje','Contratista eliminado');\n }", "title": "" }, { "docid": "a85763dd50ac74b8d2b8124b1c0e3e7b", "score": "0.5850285", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return back()->with('info', 'Resource deleted');\n }", "title": "" }, { "docid": "02a5bc50f3aa8ecd04834387832bc77c", "score": "0.5844418", "text": "public function destroy($id)\n {\n // $this->authorize('haveaccess','producto.destroy');\n $producto= Producto::findOrFail($id);\n\n if(Storage::delete('public/'.$producto->imagen)){\n\n Producto::destroy($id); \n }\n\n return redirect('producto');\n }", "title": "" }, { "docid": "8f406917023a0110d93d6350033a3ab5", "score": "0.58313775", "text": "public function removeItem($id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "title": "" }, { "docid": "a193f7ebf258b5fb63b8919a07678081", "score": "0.5821789", "text": "public function removeAll ($storage) {}", "title": "" }, { "docid": "dc36a581460d40a22ac889b4e61a4ab9", "score": "0.58165264", "text": "public function removeResource($resourceID)\n {\n $resourceID = db::escapechars($resourceID);\n $sql = \"DELETE FROM kidschurchresources WHERE resourceID='$resourceID' LIMIT 1\";\n $result = db::execute($sql);\n if($result){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "83da6d00e9ec003d7115d52e8eaed9e7", "score": "0.5812055", "text": "public function del($path);", "title": "" }, { "docid": "c603e0ea04551111c5de9c6585b2815e", "score": "0.5802033", "text": "public function delete()\n {\n $this->repository->git('rm %s', escapeshellarg($this->getRelativePathname())\n );\n }", "title": "" }, { "docid": "f35aaf17008b130a60b3962b50777f92", "score": "0.5800284", "text": "public function unlink();", "title": "" }, { "docid": "818914cdd28df643181e6a2330bc11c4", "score": "0.5789049", "text": "public function destroy($id)\n {\n $supplier=Supplier::find($id);\n $photo=$supplier->photo;\n if($photo){\n unlink($photo);\n }\n $supplier->delete();\n }", "title": "" }, { "docid": "8f1b5736b25701e2b67e4f655f581689", "score": "0.57634306", "text": "public function testResourceRemoveOne()\n {\n $resourceArea = new Zend_Acl_Resource('area');\n $this->_acl->add($resourceArea)\n ->remove($resourceArea);\n $this->assertFalse($this->_acl->has($resourceArea));\n }", "title": "" }, { "docid": "5cc9f2ec9efb9c5303b848052688e6c4", "score": "0.5744329", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $filename = $product->image;\n $product->delete();\n Storage::delete($filename);\n }", "title": "" }, { "docid": "d1f7c96fed94f01bef33d5bc03b96940", "score": "0.5735748", "text": "public function hardDelete();", "title": "" }, { "docid": "fec8d4881ffc82e41c0642f366a1a75a", "score": "0.5726655", "text": "public function delete($resource)\n {\n return DB::transaction(function () use ($resource) {\n $resource = $this->beforeDelete($resource);\n\n $resource->delete();\n\n return $this->afterDelete($resource);\n });\n }", "title": "" }, { "docid": "7b06ca498cebb34097bee47d0def61eb", "score": "0.5718601", "text": "public function delete() {\n if (unlink($this->fullPath)) {\n $this->fullPath = '';\n $this->mimeType = '';\n $this->simpleName = '';\n $this->size = 0;\n } else {\n throw new Exception('Check write Access to delete file!');\n }\n }", "title": "" }, { "docid": "8c0c11de31899ddf1bbfd6c29f1c19a7", "score": "0.571522", "text": "public function deleteImage(){\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "40f1e1a14810f5eceacb200ffe7aeb20", "score": "0.5696079", "text": "public function destroy(Request $request)\n {\n $slider=Slider::where('id', '=', $request->id)->first();\n if($slider!=null){\n $mi_imagen = public_path().'/'.$slider->url;\n unlink($mi_imagen);\n $slider->delete();\n return 1;\n }else{\n return 0;\n }\n// Lo eliminamos de la base de datos\n\n\n\n }", "title": "" }, { "docid": "60a2181c36b7592447d90a90fcadbe74", "score": "0.5695835", "text": "public function delete($record) {\n $this->fileDataSource->delete($this->resourceName, $record->id);\n $this->afterDelete($record);\n }", "title": "" }, { "docid": "7ef5024136aac86c4c004ee1e7edea43", "score": "0.56815386", "text": "public function drop(): void {\n $disk = Storage::disk($this->scope);\n if ($disk->exists($this->filepath)) {\n $disk->delete($this->filepath);\n }\n }", "title": "" }, { "docid": "c4f845a8d7bbb2425211bda284218817", "score": "0.56762695", "text": "function destroy() {\n\t\tunlink($this->get_file_name());\n\t\tself::remove_from_cache($this);\n\t}", "title": "" }, { "docid": "af7a37a01e344ca75b406caaaa916b45", "score": "0.56741655", "text": "private function removeOldIcon($resource)\n {\n $icon = $resource->getIcon();\n\n if ($icon->getIconType()->getIconType() == IconType::CUSTOM_ICON) {\n $pathName = $this->container->getParameter('claroline.param.thumbnails_directory')\n . DIRECTORY_SEPARATOR . $icon->getIconLocation();\n if (file_exists($pathName)) {\n unlink($pathName);\n }\n }\n }", "title": "" }, { "docid": "cb1740d372b49263432bcc5cf39f97d8", "score": "0.56595594", "text": "public function destroy($id)\n {\n $emp = Employee::where('id',$id)->first();\n $photo = $emp->image;\n if($photo){\n unlink($photo);\n $emp->delete();\n }else{\n $emp->delete();\n }\n\n }", "title": "" }, { "docid": "7567af40a4901dd5dd42113b0bbccb95", "score": "0.56567484", "text": "public function removeResource($name)\n {\n unset($this->resources[$name]);\n if ($name === 'file') {\n $this->resources['file'] = array(\n 'class' => 'Dwoo\\Template\\File',\n 'compiler' => null\n );\n }\n }", "title": "" }, { "docid": "d261281fcf3d7ca08f9b610eb6c3b1f0", "score": "0.56346554", "text": "public function destroy($id)\n {\n $photo = Photo::findOrFail($id);\n unlink(public_path() . $photo->image_url);\n $photo->delete();\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "5e46d09ef2d1d9f143d6831260992e3f", "score": "0.56248415", "text": "public function destroy($id)\n {\n $pres=Prescription::find($id);\n $fileName=$pres->item;\n unlink(storage_path().'/'.'app'.'/'.'public' .'/'.'prescriptions'.'/'. $fileName);\n $pres->delete();\n }", "title": "" }, { "docid": "0428848b8d6110c6be21d9479ece2192", "score": "0.56237406", "text": "public function removeImage()\n {\n if (!empty($this->image) && !empty($this->id)) {\n $path = storage_path($this->image);\n if (is_file($path)) {\n unlink($path);\n }\n if (is_file($path.'.thumb.jpg')) {\n unlink($path.'.thumb.jpg');\n }\n }\n }", "title": "" }, { "docid": "81b2a149b82ad070a8fc5640c23cb4c5", "score": "0.56235874", "text": "public function deleteResource($resourceId)\n {\n $req = new RESTRequest();\n $data = $req->adminGet('LearningObject/delete/' . $resourceId)->getData();\n return $data;\n }", "title": "" }, { "docid": "1ed1ac142686a23f0827e755ecbc86db", "score": "0.5618705", "text": "public function delete($resource, array $args = [], array $options = []) {\n return $this->do('DELETE', $resource, $args, $options);\n\n }", "title": "" }, { "docid": "c0ac500c5b367ee589c3c33143eb832b", "score": "0.5617002", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['success' => 'borrado correctamente']);\n }", "title": "" }, { "docid": "a9c212129736f6a4e7fd4eddbccc6f2f", "score": "0.56163317", "text": "public function destroy($id)\n {\n $delete = Supplier::where(\"id\", $id)->first();\n $img = $delete->photo;\n if($img){\n unlink('backend/assets/images/supplier/'.$img);\n $delete->delete();\n toast('Supplier Information Delete Successfully','success');\n return redirect()->route('index.supplier');\n }else{\n toast('Supplier Not Deleted','success');\n return redirect()->route('index.supplier');\n }\n }", "title": "" }, { "docid": "6b5dbac631e37705e1c7cf319db2d7e6", "score": "0.56112254", "text": "public function deleteFromDisk()\n {\n return Storage::disk($this->getLocalDiskName())->delete($this->getStoragePath(true));\n }", "title": "" }, { "docid": "14d4df02668a2d07f51666ab31e093b8", "score": "0.5609148", "text": "public function destroy($id)\n {\n $store = Store::findorFail($id);\n $product = Product::firstorfail()->where('store_id', $id);\n // unlink(public_path() . '/img/' . $product->image);\n $product->delete();\n unlink(public_path() . '/str_img/' . $store->image);\n $store->delete();\n return redirect()->back()->withDelete(\"Store Deleted Succesfully\");\n\n\n \n }", "title": "" }, { "docid": "ea306158775b698c5435960d49c257ab", "score": "0.56042147", "text": "public function delete()\n {\n $this->remote->delete($this->file);\n }", "title": "" }, { "docid": "f7e25a0f3411ba82d9ef10dbdff68bb4", "score": "0.5600532", "text": "public function beforeDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "6fbcf9a59c7f34ed85fd172cdf3d3c38", "score": "0.5595493", "text": "public function remove(){}", "title": "" }, { "docid": "5f7b880d9042e6af83f1343c11f66a8e", "score": "0.5595085", "text": "public function destroy($record);", "title": "" }, { "docid": "eb90c146961dd680727f52741dd87d78", "score": "0.55930966", "text": "public function delete($key) {\n $this->assertKey($key);\n \n unset($this->storage[$key]);\n }", "title": "" }, { "docid": "13866f5828119bb8aae429440b86e949", "score": "0.55884856", "text": "public function destroy($id)\n {\n\n $imga = Image::find($id);\n Storage::disk('public')->delete('img/' . $imga->src);\n $imga->delete();\n\n\n return redirect()->back();\n }", "title": "" }, { "docid": "24ef05d1335abf0bd48387e294875133", "score": "0.5576293", "text": "public function delete($fireStorageEvents = true);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "268c30c6782025503083fc7ba52c1d0a", "score": "0.557298", "text": "public function delete() {\n $this->dataStoreAdapter->deleteObject($this->getUuid());\n }", "title": "" }, { "docid": "2d72bcdac1bcdd14301b9a6ad301fae7", "score": "0.5572793", "text": "public function actionPatientremove() {\n\n $id = $_POST['id'];\n $name = $_POST['name'];\n\n $root_path = Yii::$app->basePath . '/../uploads/patient';\n $path = $root_path . '/' . $id . '/' . $name;\n\n\n if (file_exists($path)) {\n\n if (unlink($path)) {\n\n }\n }\n }", "title": "" }, { "docid": "65ec7f8ef3c165ae2d123008792c4d10", "score": "0.55707175", "text": "public function delete()\n {\n \\File::delete([\n $this->path,\n $this->thumbnail_path,\n\n ]);\n\n parent::delete();\n }", "title": "" }, { "docid": "8179dc9b6bd99410fef7c74e3b56208a", "score": "0.5570384", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n @unlink($file); \n \n }", "title": "" }, { "docid": "ead6a9412215d17945f8769860e1b262", "score": "0.5569038", "text": "public function remove($file) {\n\t\t$this->emitCache('put', $file);\n\t\tparent::remove($file);\n\t}", "title": "" }, { "docid": "4aff284263b8a4a2b80b972accc89eb6", "score": "0.55585116", "text": "public function removeFile($file_obj)\n\t{\n\t\t$fs = new Filesystem();\n\t\tif($fs->exists($file_obj->getUrlStorage()))\n\t\t{\n\t\t\t$fs->remove($file_obj->getUrlStorage());\n\t\t}\n\t}", "title": "" }, { "docid": "ec1b691c67eb4c9111f82f370bc46ab2", "score": "0.55521524", "text": "public function removeAction ()\n { \n if (!empty ($this->params ['file']) AND file_exists (UPLOAD_PATH.$this->params ['file']))\n unlink (UPLOAD_PATH.$this->params ['file']); \n if (!empty ($this->params ['media_id']))\n {\n $model = new Model_DbTable_MediaData ();\n $model->delete_media ($this->params ['media_id']);\n } \n }", "title": "" }, { "docid": "cf67810bc53f9cd6c02a127c0ee780e0", "score": "0.55445576", "text": "public function remove()\n\t{\n\t\tFile::remove($this->tempName);\n\t}", "title": "" }, { "docid": "94cb51fff63ea161e1d8f04215cfe7bf", "score": "0.55422723", "text": "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "9ac57f5d74d74f050136ae1e642ec949", "score": "0.5532133", "text": "public function delete($path) {\n $absPath = $this->_getAbsPath($path);\n $status = @unlink($absPath);\n\n if (!$status) {\n if (file_exists($absPath)) {\n throw new Scalar_Storage_Exception('Unable to delete file.');\n } else {\n $this->_log(\"Scalar_Storage_Adapter_Filesystem: Tried to delete missing file '$path'.\");\n }\n }\n }", "title": "" }, { "docid": "584dea86c95ee49398418c499126a231", "score": "0.55317944", "text": "public function forgetUsed()\n {\n if ($this->app['files']->exists($this->getUsedStoragePath())) {\n $this->app['files']->delete($this->getUsedStoragePath());\n }\n }", "title": "" }, { "docid": "52c48eff326d035cdfe9e0df0c79a23f", "score": "0.55300117", "text": "public function removeFromStorage()\n {\n if ( ! $this->is_raw ) {\n return MediaStorage::adapterByDisk($this->disk)->delete($this->path);\n }\n\n return true;\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
f8202417481ad31e58009361fdc51d7b
Returns A List of select framework.
[ { "docid": "69d66ff5c55b224a9750bcbdc54c3a66", "score": "0.70284003", "text": "function wponion_select_frameworks() {\n\t\treturn apply_filters( 'wponion/js/select_frameworks', array( 'selectize', 'select2', 'chosen' ) );\n\t}", "title": "" } ]
[ { "docid": "6599cfafed37f9a127b9649a2cb8566e", "score": "0.6918748", "text": "public function getSelect();", "title": "" }, { "docid": "c607a8c51102c2c0e72ffbe423671032", "score": "0.6827361", "text": "public static function selectList() {\n\t\treturn ArrayHelper::map( self::find()->select( [\n\t\t\t'id',\n\t\t\t'title'\n\t\t] )->asArray()->all(), 'id', 'title' );\n\t}", "title": "" }, { "docid": "85e8c05def526bb29a6236874e5d92bd", "score": "0.6823226", "text": "public function getSelect()\n {\n $select = array();\n $modules = $this->getModules();\n\n foreach ($modules as $module) {\n $select[$module->getId()] = $module->getName();\n }\n\n return $select;\n }", "title": "" }, { "docid": "30a503381152ad44ea3747dd1ee4b884", "score": "0.6663577", "text": "public function selectAll();", "title": "" }, { "docid": "ada10b4559aad0306e27e0cd140818fb", "score": "0.66123414", "text": "public function selectAllForms();", "title": "" }, { "docid": "f770d8c395e31706d4bfa375d055e254", "score": "0.65833724", "text": "public static function select_options()\n {\n $options = array();\n\n // Get all the rows and make a Form::select() friendly array\n foreach (static::fetch_all() as $row) {\n $options[] = array('label' => $row->name, 'value' => $row->id);\n }\n\n return $options;\n }", "title": "" }, { "docid": "7accc139d32a21eb2746b85b2c97329f", "score": "0.6366352", "text": "public static function selectOptions()\n {\n $options = array();\n foreach( static::all()->toArray() as $key => $value )\n {\n $options[$value['id']] = $value['title'];\n }\n\n //$options = (new static())->buildSelectOptions();\n return collect($options)->all();\n }", "title": "" }, { "docid": "ef3af6550ec6acce29923c3568ebd5b9", "score": "0.63610774", "text": "public function getSelectionList()\n\t{\n\t\treturn $this->model->active()->orderBy('name', 'asc')->get();\n\t}", "title": "" }, { "docid": "00be767f7d623d5b131578dfe768c53b", "score": "0.63482046", "text": "public function getForSelect()\n {\n return $this->all()->lists('full_name', 'id')->all();\n }", "title": "" }, { "docid": "f812720b12b0bb20b29d6efd225f7ed1", "score": "0.63070107", "text": "function scm_select_options()\n{\n $options = array();\n foreach (scm_types() as $scm => $name) {\n $options[] = array('label' => $name, 'value' => $scm);\n }\n return $options;\n}", "title": "" }, { "docid": "ba1544685e7e858ef00e717bd17c61bb", "score": "0.6233494", "text": "public static function getOptionsForSelect(): array {\n return self::$selection;\n }", "title": "" }, { "docid": "9932d08d5cb3866e6881ec2ea34deb0b", "score": "0.6185206", "text": "public function selectAll() {\n\t\treturn $this->act->all(['name', 'id']);\n\t}", "title": "" }, { "docid": "84c77213ac9dd2bd782847ed620035a3", "score": "0.6173414", "text": "private function get_dropdowns() {\n\n $this->load->helper('dropdowns');\n\n $dropdowns = array(\n 'companies' => $this->company_model->get_customer_list(),\n 'divisions' => $this->division_model->get_dropdown(),\n 'status_codes' => unserialize(CODES_STATUS_CODES)\n );\n\n return $dropdowns;\n }", "title": "" }, { "docid": "1786e172b0a5d3a87b7e7146ec3231b8", "score": "0.6129784", "text": "public static function selectAll() {\n $select = self::select(Option::getTableName());\n\n return self::getInstanceData($select);\n }", "title": "" }, { "docid": "8df9960deb77c029e30b3496ece4d0ad", "score": "0.611944", "text": "public function component_select_options()\n {\n return Component::select_options($this->id);\n }", "title": "" }, { "docid": "be5e20f59cdf746124ce85e97f1323cf", "score": "0.61091286", "text": "protected function set_models_for_selects() {\n $this->consoles_for_select = Console::all_for_select_with('name', true);\n $this->games_for_select = Game::all_for_select_with('name', true);\n $this->accessories_for_select = Accessory::all_for_select_with('name', true);\n\n $all_cities = Ad::all_cities();\n $this->cities_for_select = ['' => ''] + array_combine($all_cities, $all_cities);\n }", "title": "" }, { "docid": "c86780fd771273f24e23c2650bed8854", "score": "0.6102079", "text": "public static function getSelectList($ignore = array()) {\n\t\tif (self::$templatePackStructure === null) {\n\t\t\tself::$templatePackStructure = array();\n\t\t\t$sql = \"SELECT\t\ttemplatePackID, templatePackName, parentTemplatePackID\n\t\t\t\tFROM\t\twcf\".WCF_N.\"_template_pack\n\t\t\t\tORDER BY\ttemplatePackName\";\n\t\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t\tself::$templatePackStructure[$row['parentTemplatePackID']][] = new TemplatePack(null, $row);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tself::$selectList = array();\n\t\tself::makeSelectList(0, 0, $ignore);\n\t\t\n\t\treturn self::$selectList;\n\t}", "title": "" }, { "docid": "0d69b65ab5baced429a10f8a7555a317", "score": "0.60620195", "text": "public function listadoSelect(){\n\t\t$hoteles = $this->repo->listado();\n\t\t$customerSelect = array();\n\n\t\tforeach ( $hoteles as $registro ) {\n\t\t\t$customerSelect[$registro->getId()] = $registro->getName();\n\t\t}\n\n\t\treturn $customerSelect;\n\t}", "title": "" }, { "docid": "eeed43fd26f96c541de24c5bf209076b", "score": "0.59955335", "text": "public function fetchOptionsSelect()\n {\n $especies = $this->fetchAll();\n $optionsSelect = [];\n foreach ($especies as $especie) {\n $optionsSelect[$especie->id] = $especie->nome;\n }\n return $optionsSelect;\n }", "title": "" }, { "docid": "ebdd220b98149284eed7d101365d8a52", "score": "0.5961965", "text": "public function getSelects() {\n\t\t$sql = \"\";\n\n\t\tif (count($this->fields) > 0) {\n\t\t\tforeach ($this->fields as $field) {\n\t\t\t\t$sql .= $field[0];\n\t\t\t\tif ($field[1] != null) {\n\t\t\t\t\t$sql .= \" AS `{$field[1]}`\";\n\t\t\t\t}\n\t\t\t\t$sql .= \", \";\n\t\t\t}\n\t\t}\n\n\n\n\t\tif (count($this->join) > 0) {\n\t\t\tforeach ($this->join as $jo) {\n\t\t\t\t$j = $jo[2];\n\t\t\t\t$s = $j->getSelects();\n\t\t\t\tif ($s != \"\") {\n\t\t\t\t\t$sql .= \" \".$s.\", \";\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t $j = $jo[1];\n\t\t\t\tif (count($j->fields) == 0) {\n\t\t\t\t$j->fields[] = \"*\";\n\t\t\t\t}\n\t\t\t\tforeach ($j->fields as $field) {\n\t\t\t\tif ($field != \"*\") {\n\t\t\t\t$field = \"`\".$field.\"`\";\n\t\t\t\t}\n\t\t\t\t$sql .= \"`\".$j->getTable().\"`.\".$field.\", \";\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t}\n\n\t\tif (substr($sql, -2) == \", \") {\n\t\t\t$sql = substr($sql, 0, strlen($sql)-2);\n\t\t}\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "1bf4c407971f7cf002941798e96d8c1e", "score": "0.59209824", "text": "public function selectAll()\n {\n $statement = $this->pdo->prepare(\"select * from {$this->table}\");\n\n $statement->execute();\n return $this->bind_class_to_collection(get_called_class(),$statement->fetchAll(PDO::FETCH_CLASS));\n }", "title": "" }, { "docid": "6be44e6477d4659cd957e2e635c920c0", "score": "0.5885116", "text": "private function getSelectOptions() {\n $result = \"\";\n if($this->pleaseSelectEnabled) {\n $result .= '<option value=\"null\"> -- Please Select --</option>';\n }\n foreach($this->itemList as $key => $val) {\n $selectedText = \"\";\n if(in_array($key, $this->selectedItems)) {\n $selectedText = 'selected=\"selected\"';\n }\n $result .= '<option value=\"'.$key.'\" '.$selectedText.'>'.$val.'</option>'.\"\\n \\t\";\n }\n return $result;\n }", "title": "" }, { "docid": "c0e3857731a18728fb8ae7da86d4aec1", "score": "0.58728445", "text": "public static function selectQueryFields()\n {\n $selectFields = \"<select id='selectQueryFields' name='selectQueryFields[]' multiple class='form-control' style='height: 12.5em'>\";\n foreach (self::$fields as $fieldId => $field) {\n $selectFields .= \"<option value='{$fieldId}'>{$field['label']}</option>\";\n }\n $selectFields .= \"</select>\";\n return $selectFields;\n }", "title": "" }, { "docid": "caa8b29b3e1b77486bf6e28dcc889184", "score": "0.5867908", "text": "public function getAllRegionsSelectList();", "title": "" }, { "docid": "a3b99e37430574501b00f57e774ffcb1", "score": "0.586569", "text": "public function getAllShopToSelect()\n {\n return $this->all()->toSelect('id', 'translation.name', $this->getCurrentLanguage());\n }", "title": "" }, { "docid": "82d7bd1d8592a33c8ff469737237765f", "score": "0.5865393", "text": "public function getSelectedList() {}", "title": "" }, { "docid": "6d33604a191a18c7b5d92ff2119d5571", "score": "0.58611166", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM learnable_language_options';\r\n\t\t$sqlQuery = new SqlQuery2($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "68b4c0be193f07e7d31c6702a4dae80d", "score": "0.5856544", "text": "public function getSelectSearchTypes()\n {\n return $this->selectSearchTypes;\n }", "title": "" }, { "docid": "4881f831e6f7f6353d9a2e3de7d5d0a5", "score": "0.58557534", "text": "static function get_dropdown_options()\n {\n $rows = ORM::factory('actor')->where('parent_id=0')->orderby('actor')->find_all();\n \n foreach ($rows as $row){\n $hijos = array();\n $_t = ORM::factory('actor')->where('parent_id',$row->id)->orderby('actor')->select_list('id','actor');\n\n foreach($_t as $_id => $_n) {\n\n $_hijos = ORM::factory('actor')->where('parent_id',$_id)->orderby('actor')->select_list('id','actor');\n $hijos[] = array('id' => $_id, 'n' => $_n, 'h' => $_hijos);\n \n /* \n foreach($_hijos as $_idn => $_nn) {\n $_h[] = array('id' => $_idn, 'n' => $_nn, 'h' => ORM::factory('actor')->where('parent_id',$_idn)->select_list('id','actor'));\n }\n \n $hijos[] = array('id' => $_id, 'n' => $_n, 'h' => $_h);\n */\n }\n \n $opts[] = array('id' => $row->id, 'n' => $row->actor, 'h' => $hijos);\n }\n return $opts;\n }", "title": "" }, { "docid": "f9f94874a262e967eb8934866ee296e7", "score": "0.58412266", "text": "public function selectAll() {\n return $this->selectByFilter([]);\n }", "title": "" }, { "docid": "3f8c142942db428e9197d5367b647e4a", "score": "0.58314675", "text": "public function selectAll() {\n $result = array();\n $statement = 'SELECT idTechnologyCategory AS id, name, visible, description FROM TechnologyCategory';\n $query = Connection::getConnection()->prepare($statement);\n\n //Get the results as TechnologyCategory instance array and return it\n $query->execute();\n $query->setFetchMode(PDO::FETCH_ASSOC);\n while($line = $query->fetch())\n $result[] = TechnologyCategory::parseArray($line);\n return $result;\n }", "title": "" }, { "docid": "44dd6097388d0b53acbdd084bae0f8c4", "score": "0.5830648", "text": "protected function allowedTypes()\n {\n return ['select'];\n }", "title": "" }, { "docid": "6d22b76902591efbcfe591407431deaf", "score": "0.5816111", "text": "public function Listar(){\n $dica_saude = new Exame();\n\n //Chama o método para selecionar os registros\n return $dica_saude::Select();\n }", "title": "" }, { "docid": "8b1dddf406748e9e1b954ffa7211200d", "score": "0.58032376", "text": "public static function getCombo() {\n $conn = self::connect();\n $getQuery = self::getQuery(self::baseQuery());\n $string = $conn['query'].\"fetch_array\";\n while($result = $string($getQuery)) {\n $all[] = $result;\n }\n return @$all;\n }", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5793871", "text": "public function select();", "title": "" }, { "docid": "a1f31e44c624c54ea6eb30fbe04c9ef5", "score": "0.5780277", "text": "public function selectItemTypeSelectds()\n {\n \n // $itemTypeIds = !empty($_GET['itemTypeIds']) ? $_GET['itemTypeIds'] : '';\n \n\n // if (!empty($itemTypeIds)) {\n\n $getItemTypeIdDatas = DB::select('SELECT * FROM item_type_master WHERE is_deleted_status = \"N\"');\n\n if (!empty($getItemTypeIdDatas)) {\n\n foreach ($getItemTypeIdDatas as $itemTypes) {\n\n $itemTpyesListHtml = '<option value=\"'.$itemTypes->id.'\"';\n \n \n\n $itemTpyesListHtml .= '>'.$itemTypes->name.'</option>';\n\n echo $itemTpyesListHtml; \n\n }\n\n }\n // }\n }", "title": "" }, { "docid": "2e68a943363e9021b44e4010ba8321d7", "score": "0.57597995", "text": "protected function getRecursiveSelectOptions() {}", "title": "" }, { "docid": "70c21bb14a66c0e411291b56f1665602", "score": "0.572862", "text": "public function getSelectors() {\n return $this->_selectors;\n }", "title": "" }, { "docid": "bacf28cffd2da9e9be7bb81346c76511", "score": "0.57186216", "text": "public function selecUnitdSelectds()\n {\n \n // $itemTypeIds = !empty($_GET['itemTypeIds']) ? $_GET['itemTypeIds'] : '';\n \n\n // if (!empty($itemTypeIds)) {\n\n $getUnitsIdData = DB::select('SELECT * FROM unit_master WHERE is_deleted_status = \"N\"');\n\n if (!empty($getUnitsIdData)) {\n\n foreach ($getUnitsIdData as $units) {\n\n $unitsListHtml = '<option value=\"'.$units->id.'\"';\n $unitsListHtml .= '>'.$units->unit.'</option>';\n\n echo $unitsListHtml; \n\n }\n\n }\n // }\n }", "title": "" }, { "docid": "db5eb30a5ea987a8522900a0622b66a9", "score": "0.5699896", "text": "public function getColumns()\n {\n return $this->select_list;\n }", "title": "" }, { "docid": "805aaf67b49a8aba4a7bba2fe2b0484d", "score": "0.5699715", "text": "private function _initSelectList()\n {\n $features = $this->Feature->getAllFeaturesKeyValue();\n $this->set('features', $features);\n $categories = $this->Category->getAllCategoryPair();\n $this->set('categories', $categories);\n }", "title": "" }, { "docid": "de270371524dc51e7f00397275674e6b", "score": "0.5692204", "text": "function wponion_select_classes( $framework = false ) {\n\t\t$return = '';\n\t\tif ( false !== $framework ) {\n\t\t\tswitch ( $framework ) {\n\t\t\t\tcase 'select2':\n\t\t\t\t\t$return = ( is_rtl() ) ? 'wpo-select2 select2-rtl' : 'wpo-select2';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'chosen':\n\t\t\t\t\t$return = ( is_rtl() ) ? 'wpo-chosen chosen-rtl' : 'wpo-chosen';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'selectize':\n\t\t\t\t\t$return = 'wpo-selectize';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn apply_filters( 'wponion/js/select_frameworks/html_class', explode( ' ', $return ), $framework );\n\t}", "title": "" }, { "docid": "82971aa94eae12b04c1af09cf431e1bd", "score": "0.5689474", "text": "function dropdownpoblaciones($name) {\r\n $str .= \"select mlpo_cod, mlpo_descripcion from mlpo_poblaciones order by mlpo_descripcion\";\r\n $str_res = db_query($str);\r\n $a_str_res = array();\r\n while ($row = db_fetch($str_res)) {\r\n $a_str_res[$row['MLPO_COD']] = $row['MLPO_DESCRIPCION'];\r\n }\r\n return dropdown($name, $a_str_res, '0', ' id=\"' . $name . '\" class=\"arc90_multiselect\" multiple=\"multiple\"');\r\n}", "title": "" }, { "docid": "7693a58423560e5aad01ce826a7a9af2", "score": "0.5685685", "text": "public function selectAll() {\n $conn = $this->conex->connectDatabase();\n $sql = \"select * from tbl_menu\";\n $stm = $conn->prepare($sql);\n $success = $stm->execute();\n if ($success) {\n $listMenu = [];\n foreach ($stm->fetchAll(PDO::FETCH_ASSOC) as $result) {\n $Menu = new MenuFuncionario();\n $Menu->setId($result['id_menu']);\n $Menu->setPaginas($result['paginas']);\n array_push($listMenu, $Menu);\n }\n $this->conex -> closeDataBase();\n return $listMenu;\n } else {\n return \"Erro\";\n }\n }", "title": "" }, { "docid": "a4054c2ecf241a740fc10b98d34e021d", "score": "0.5679883", "text": "public function getAllForDropDownList()\n {\n $items = (new Query())\n ->select('emails_templates.id, emails_templates.name')\n ->from(['emails_templates' => 'emails_templates'])\n ->orderBy(['emails_templates.name' => SORT_ASC])\n ->all();\n\n return ArrayHelper::map($items, 'id', 'name');\n }", "title": "" }, { "docid": "1cc33341f045b86688f8fd80829efe2e", "score": "0.56792307", "text": "static function getSelect():array {\n $weekdays = Weekday::pluck('name', 'id')->toArray();\n foreach ($weekdays as &$weekday) {\n $weekday = __( $weekday);\n }\n return $weekdays;\n }", "title": "" }, { "docid": "9ebf87d4b4580105f40a40bd2b6831c5", "score": "0.5668337", "text": "public function options() {\n return $this->model->orderBy('name')->lists('name', 'id');\n }", "title": "" }, { "docid": "ecaf827622f7b8e56a2c1a0769959f1e", "score": "0.5656477", "text": "function SelectAll()\n {\n }", "title": "" }, { "docid": "5b2b3d557926ac24804a9ade2d56a825", "score": "0.56446415", "text": "public function selectAll()\n {\n $query = $this->db->get('product');\n return $query;\n }", "title": "" }, { "docid": "486bd052187d8f7ee813415e167d88ba", "score": "0.5638603", "text": "public function getSelect2()\n {\n return SelectResource::collection(ProductType::select('id', 'name')->get());\n }", "title": "" }, { "docid": "8d5148b073fc43bfea5fd5d351d3fc60", "score": "0.56346905", "text": "function bls_sf_selectForTypes() {\n\tbls_ut_backTrace(\"bls_sf_selectForTypes\");\n\tglobal $bls_sf_location;\n\n\techo \"<select name=\\\"s_pkg_srctype\\\">\";\n\tforeach ($bls_sf_location as $key => $val) {\n\t\techo \"<option value=\\\"$key\\\">$val</option>\";\n\t}\n\techo \"</select>\";\n}", "title": "" }, { "docid": "64934e1683b2745b7f17d96cfd71c467", "score": "0.5631985", "text": "function dropdownpaises($name) {\r\n $str .= \"select mlpa_cod, mlpa_descripcion from mlpa_paises order by mlpa_descripcion\";\r\n $str_res = db_query($str);\r\n $a_str_res = array();\r\n while ($row = db_fetch($str_res)) {\r\n $a_str_res[$row['MLPA_COD']] = $row['MLPA_DESCRIPCION'];\r\n }\r\n return dropdown($name, $a_str_res, '0', ' id=\"' . $name . '\" class=\"arc90_multiselect\" multiple=\"multiple\"');\r\n}", "title": "" }, { "docid": "99056361c9f4646aa8059f6cd52c2ab9", "score": "0.56174135", "text": "public function getDriversList(){\n\t\t$conn = Connection::getInstance();\n\t\t$sql = \"SELECT FormatName(a.first_name,a.middle_name,a.last_name) emp_name, \n\t\t\t\t\tb.employee_no driver_id\n\t\t\t\t\tFROM ipc_central.personal_information_tab a INNER JOIN ipc_central.employee_masterfile_tab b ON a.employee_id = b.id \n\t\t\t\tUNION\n\t\t\t\tSELECT CONCAT(last_name,', ',first_name,' ',LEFT(middle_name,1),'.') emp_name, driver_no driver_id\n\t\t\t\t\tFROM sys_vehicle_monitoring.company_drivers_master\t\n\t\t\t\tORDER BY emp_name ASC\";\n\t\t$results = $conn->query($sql,false);\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "36d1a822767c802ab1f7d798aeff362f", "score": "0.56006855", "text": "public function listForms();", "title": "" }, { "docid": "1a79f639da65e02965d09968bd509342", "score": "0.5597172", "text": "public function country_list()\n {\n $result = common_select_values('id, name', 'ad_countries', '', 'result');\n return $result; \n }", "title": "" }, { "docid": "bc1df7de52ac2eb9fe3b0ef9b1b30860", "score": "0.55958635", "text": "public function select($fields = []);", "title": "" }, { "docid": "8dc321e9d476215e7e53b0b906e49948", "score": "0.55929804", "text": "public static function getForDropdown()\n {\n return self::orderBy('type')->select(['type', 'id'])->get();\n }", "title": "" }, { "docid": "ede22e8776304097dbb4c1c0357bdf79", "score": "0.5589574", "text": "public function selectAll() \n { \n return $this->model->fetchAll();\n }", "title": "" }, { "docid": "2b21cfe1cc0ec7551c33b68e345a18e1", "score": "0.55882365", "text": "public function getOptions()\n {\n ?>\n<strong><?php echo jgettext('Include Fields');?></strong>\n<table>\n\t<tr>\n\t\t<td><?php echo jgettext('Id');?></td>\n\t\t<td><?php echo JHTML::_('select.booleanlist', 'pack_mat_id', 'readonly; disabled=true', 1);?></td>\n\t</tr>\n\t<tr>\n\t\t<td><?php echo jgettext('Title');?></td>\n\t\t<td><?php echo JHTML::_('select.booleanlist', 'pack_mat_title', 'readonly; disabled=true', 1);?></td>\n\t</tr>\n\t<tr>\n\t\t<td><?php echo jgettext('Description');?></td>\n\t\t<td><?php echo JHTML::_('select.booleanlist', 'pack_mat_description', '', 1);?></td>\n\t</tr>\n\t<tr>\n\t\t<td><?php echo jgettext('Published');?></td>\n\t\t<td><?php echo JHTML::_('select.booleanlist', 'pack_mat_published', '', 1);?></td>\n\t</tr>\n\t<tr>\n\t\t<td><?php echo jgettext('Ordering');?></td>\n\t\t<td><?php echo JHTML::_('select.booleanlist', 'pack_mat_ordering', '', 1);?></td>\n\t</tr>\n</table>\n <?php\n EcrHtml::drawSelectName();\n EcrHtml::drawLoggingOptions();\n\n $requireds = array('element_name');\n EcrHtml::drawSubmitParts($requireds);\n }", "title": "" }, { "docid": "19b529aebddc0c341edc4ce01859101f", "score": "0.5582891", "text": "public function get_all_forms() {\r\n\t\treturn $this->get_option();\r\n\t}", "title": "" }, { "docid": "3b12021dd5c4e64d2c4c331f0e1a13ab", "score": "0.5578082", "text": "function dropdowntratamientos($name) {\r\n $str .= \"select mltr_cod, mltr_descripcion from mltr_tratamientos order by mltr_descripcion\";\r\n $str_res = db_query($str);\r\n $a_str_res = array();\r\n while ($row = db_fetch($str_res)) {\r\n $a_str_res[$row['MLTR_COD']] = $row['MLTR_DESCRIPCION'];\r\n }\r\n return dropdown($name, $a_str_res, '0', ' id=\"' . $name . '\" class=\"arc90_multiselect\" multiple=\"multiple\"');\r\n}", "title": "" }, { "docid": "71edb36e922475eb6329449ec8fb89b3", "score": "0.55778456", "text": "public function findAllSelect() {\n $query = new Query();\n $query->addSortable(new Sortable('acronym'));\n $blocksAll = $this->findAll($query);\n $blocks = ['None'];\n foreach ($blocksAll as $block) {\n $blocks[$block['id']] = $block['acronym'];\n }\n return $blocks;\n }", "title": "" }, { "docid": "56ff7ff28e275d0619899f6a591705ff", "score": "0.5575417", "text": "private function selectFields()\n {\n collect($this->request->get('fields', []))->each(function($expression, $key) {\n $fields = explode(',', $expression);\n $this->builder->select($fields);\n });\n }", "title": "" }, { "docid": "3b7c9bfbe4445fbd8d6a4815681d8674", "score": "0.5571797", "text": "public function selectMultiple() {\n $suffix = $this->formQuerySuffix();\n $select = $this->outerJoin ? $this->tableName : null;\n $arrs = $this->table->selectMultiple($suffix, $select);\n $class = $this->className;\n $result = array();\n\n foreach ($arrs as $key => $arr) {\n DBRecord::$fromPostData = false;\n $obj = new $class($arr);\n DBRecord::$fromPostData = true;\n\n $pass = true;\n foreach ($this->filters as $filterMethod => $params) {\n if (!call_user_func_array(array($obj, $filterMethod), $params)) $pass = false;\n }\n if ($this->indexBy) {\n $index = $this->indexBy;\n if (method_exists($obj, $index)) {\n $key = call_user_func(array($obj, $index));\n } else {\n $key = $obj->$index;\n }\n }\n if ($this->map) {\n $index = $this->map;\n if (method_exists($obj, $index)) {\n $obj = call_user_func(array($obj, $index));\n } else {\n $obj = $obj->$index;\n }\n }\n if ($pass) $result[$key] = $obj;\n }\n\n\n return $result;\n }", "title": "" }, { "docid": "292f16913cc7c20418a11f3cff5f67c2", "score": "0.55704683", "text": "public static function getSelect()\n {\n $institutions = Institution::all();\n $foramated = [];\n foreach ($institutions as $institution) {\n $foramated[$institution->id] = $institution->name;\n }\n return $foramated;\n }", "title": "" }, { "docid": "3f54973507708f1045e835a70f30168c", "score": "0.55687577", "text": "public function getSelectFields() {\r\n\t\t$f = array();\r\n\t\tforeach($this->_salt_fields as $field) {\r\n\t\t\t$f[]=last($field);\r\n\t\t}\r\n\t\treturn $f;\r\n\t}", "title": "" }, { "docid": "bd30e53147edd8ee05d2e5bc1ea3fcfc", "score": "0.5566067", "text": "function servicios_select()\r\n {\r\n $query = \"select * from servicios\";\r\n $rows = $this->db->query($query);\r\n $rows = $rows->result_array();\r\n return $rows;\r\n }", "title": "" }, { "docid": "319809ae9f85c2f9df0842cad1246a53", "score": "0.5564396", "text": "public function widget_select($data){\n $settings = new PluginWfArray($GLOBALS['sys']['settings']);\n \n $flags = new PluginWfArray($settings->get('plugin/i18n/select_v1/data/flags'));\n \n $languages = wfI18n::getLanguages();\n $language = wfI18n::getLanguage();\n $item = array();\n foreach ($languages as $key => $value) {\n $active = '';\n if($value == $language){\n $active = ' active';\n }\n $item[] = wfDocument::createHtmlElement('a', array(\n wfDocument::createHtmlElement('img', null, array('src' => $flags->get($value), 'style' => 'width:30px')),\n wfDocument::createHtmlElement('span', 'language_'.$value),\n ), array('class' => 'list-group-item'.$active, 'href' => '/'.$settings->get('default_class').'/'.$settings->get('default_method').'/'.PluginI18nSelect_v1::$param_name .'/'.$value));\n }\n $list_group = wfDocument::createHtmlElement('div', $item, array('class' => 'list-group'));\n wfDocument::renderElement(array($list_group));\n }", "title": "" }, { "docid": "83d182198a2f82d826e650d6f91f4e46", "score": "0.55622476", "text": "private function all_consoles_for_select() {\n $consoles = Console::all();\n\n return array_combine(\n array_pluck($consoles, 'id'),\n array_pluck($consoles, 'name')\n );\n }", "title": "" }, { "docid": "1328c255eedebcab5b07f857248cba09", "score": "0.5561619", "text": "function GetAllServices()\n\t{\n\t\t$sql=\"SELECT concat(hopital,'-', service_lib) as urm,concat(service_lib, '-(',hopital,')') as service_lib from structure_gh where service_lib is not null and service_lib<>'' \n\t\t\t\t\tgroup by hopital,service_lib order by service_lib\"; \n\t\treturn parent::select($sql);\n\t\t\n\t}", "title": "" }, { "docid": "a575220356c0e355b2a27487df2b3bc5", "score": "0.555385", "text": "function getAllOptions()\r\n\t{\r\n\t\t $arrOptions = $this->SelectMultiTable('mm_option, mm_module_file', \r\n\t\t\t\t\t\t\t\t\t\t\t'mm_option.option_id, mm_option.name, mm_option.param, mm_module_file.name', \r\n\t\t\t\t\t\t\t\t\t\t\t'mm_option.module_file_id = mm_module_file.module_file_id');\r\n\r\n\t \tif ($this->hasError() || count($arrOptions) == 0 || $arrOptions[0]['mm_option.name']==null) {\r\n \t\t\t$ret_val = null;\r\n \t\t} else {\r\n\t\t\t\tfor ($i=0; $i<count($arrOptions); $i++) {\r\n\t\t\t\t\t$ret_val[$i]['name'] = $arrOptions[$i]['mm_option.name'];\r\n\t\t\t\t\t$ret_val[$i]['param'] = $arrOptions[$i]['mm_option.param'];\r\n\t\t\t\t\t$ret_val[$i]['option_id'] = $arrOptions[$i]['mm_option.option_id'];\r\n\t\t\t\t\t$ret_val[$i]['module_name'] = $arrOptions[$i]['mm_module_file.name'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n \treturn ($ret_val);\r\n\t}", "title": "" }, { "docid": "f29ea63d27241187013167d5614274c9", "score": "0.5552772", "text": "public static function getExtensionTypes()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('DISTINCT type')\n\t\t\t->from('#__extensions')\n\t\t\t->where(\"type != 'library'\",'AND')\n\t\t\t->where(\"type != 'file'\",'AND')\n\t\t\t->where(\"type != 'package'\",'AND')\n\t\t\t->where(\"type != 'language'\");\n\t\t$db->setQuery($query);\n\t\t$types = $db->loadColumn();\n\n\t\t$options = array();\n\n\t\tforeach ($types as $type)\n\t\t{\n\t\t\t$options[] = JHtml::_('select.option', $type, 'COM_EXTENSIONEXPORTIIB_TYPE_' . strtoupper($type));\n\t\t}\n\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "1cc4f2d0b93120e008702ebea3360aaa", "score": "0.5550867", "text": "public function selectAllstudio() {\n\t\t$this->dbAdapter->dbOpen();\n\t\t$result = $this->dbAdapter->studioSelectAll();\n\t\t$this->dbAdapter->dbClose();\n\t\t$this->error = $this->dbAdapter->lastError();\n\t\t\n\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "68dc9f3fde0c290e5df971bc0312ca34", "score": "0.55476755", "text": "public function getWarehouseSelectList()\n {\n return Warehouse::all()->pluck('whsName', 'id');\n }", "title": "" }, { "docid": "5c1eeb31bbaece9e45db366dfa23d922", "score": "0.5539537", "text": "public function getControlList(): array;", "title": "" }, { "docid": "a667dc4d045bda68bff78d53f8d6bfb4", "score": "0.5539086", "text": "public function getData()\n {\n $options = new TechDivision_Collections_ArrayList;\n \n $true = new TDProject_Report_Model_Widget_SelectOption(\n new TechDivision_Lang_String('true'), \n new TechDivision_Lang_String('1')\n );\n $options->add($true);\n \n $false = new TDProject_Report_Model_Widget_SelectOption(\n new TechDivision_Lang_String('false'), \n new TechDivision_Lang_String('0')\n );\n $options->add($false);\n \n return $options;\n }", "title": "" }, { "docid": "23d85d74ae33056a6f257bbd688534aa", "score": "0.55364996", "text": "public function _get_picker_dropdown_choices() {\n\t\t$this->load_data();\n\t\t$result = array();\n\t\tforeach ( $this->data as $unique_key => $item ) {\n\t\t\t$result[ $unique_key ] = $item['label'];\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "2eaac94a13fe50edfb375ed76c51e6cc", "score": "0.55351746", "text": "public function getThemeList ()\n {\n return $this->getBasicIdSelectList('cms_theme_data');\n }", "title": "" }, { "docid": "0a1d24af12c0f7979e0c2d9d01a84d66", "score": "0.55329925", "text": "private function getListOptions(){\n return $this->listOptions;\n }", "title": "" }, { "docid": "bf4381fe25efa62618703acb01b008b4", "score": "0.5530372", "text": "protected function CatalogOptionsList() {\n\treturn $this->GetFieldValue('ItOptions');\n }", "title": "" }, { "docid": "9c73395d8a427ee683aad33fc44458de", "score": "0.5529979", "text": "function get_driver_list()\n {\n $this->company_db->select(\"*\");\n $this->company_db->from('tbl_driver');\n // $this->company_db->where('void','No');\n /*$this->company_db->where($where);*/\n $query = $this->company_db->get();\n\n if($query->num_rows() >= 1)\n {\n return $query->result_array();\n }\n else\n {\n return array();\n }\n }", "title": "" }, { "docid": "68709bc3d2e077a4259730a3eb72a12a", "score": "0.55190194", "text": "public function select($perifericos);", "title": "" }, { "docid": "d5eba48b8e608b36c2acce0b51d4aca7", "score": "0.5517312", "text": "abstract protected function getOptionList(): array;", "title": "" }, { "docid": "7f7a93f44a1cdd579bf5b41dd57b3dbb", "score": "0.55148745", "text": "protected function _extract_selects(DOMElement $src)\n {\n $selects = array();\n\n foreach ($this->_extract_usable_elements($src, 'select') as $select) {\n $name = $select->getAttribute('name');\n\n $is_multiple = $select->hasAttribute('multiple');\n if ($is_multiple) {\n $selects[$name] = array();\n }\n\n foreach ($select->getElementsByTagName('option') as $i => $option) {\n $value = $option->hasAttribute('value')\n ? $option->getAttribute('value')\n : $option->textContent;\n\n $is_selected = $option->hasAttribute('selected');\n if (!$i || $is_selected) {\n if ($is_multiple) {\n $selects[$name][] = $value;\n } else {\n $selects[$name] = $value;\n if ($is_selected) {\n break;\n }\n }\n }\n }\n }\n\n return $selects;\n }", "title": "" }, { "docid": "9b7aac818d4add69b22d81dcab1f9e4e", "score": "0.5514145", "text": "public function getSelect()\n {\n $select = parent::getSelect();\n $permissions = new Omeka_Db_Select_PublicPermissions('Items');\n $permissions->apply($select, 'items');\n\n return $select;\n }", "title": "" }, { "docid": "6fdd87335520a2efc7dc5fd438ba259e", "score": "0.5512329", "text": "public function elements(): array\n {\n return [\n new Select(\n '_field', \n [\n 'label' => 'Add new field',\n 'items' => $this->availableFields,\n 'allowNoValue' => false\n ]\n ),\n new Submit(\n 'submit',\n [\n 'label' => 'Submit'\n ]\n )\n ];\n }", "title": "" }, { "docid": "7f5882fce533697e0f80e808576f41a9", "score": "0.55062085", "text": "protected function _buildListSelect($options)\n\t{\n\t\t$select = array();\n\n\t\t// get options\n\t\t$select[] = ' select *';\n\n\t\t// add from clause\n\t\t$select[] = 'from ' . $this->_getTableName();\n\n\t\t// aggregate clauses\n\t\t$select = (count($select) ? implode(' ', $select) : '');\n\n\t\treturn $select;\n\t}", "title": "" }, { "docid": "27cfa55a1f6265bd8d1b4dc3ea7facb1", "score": "0.54980075", "text": "public function fewSelection()\n {\n $selection = func_num_args() > 0 ? func_get_args() : $this->fewSelection;\n\n return call_user_func_array([$this, 'select'], $selection);\n }", "title": "" }, { "docid": "af4e7b3fa9757a8309c4647193d48bd0", "score": "0.54953873", "text": "public function getFuelTypeOptions()\n\t{\n\t\t$fuelType = FuelType::model()->findAll();\n\t\treturn CHtml::listData($fuelType, 'fuelTypeId', 'fuelTypeName');\n\t}", "title": "" }, { "docid": "256014dbef4ee7a76f9daddcdbc5afb0", "score": "0.5494766", "text": "public function get_all() {\n\n\t\t\t$meta_fields = jet_engine()->meta_boxes->get_fields_for_select( 'plain' );\n\t\t\tunset( $meta_fields[''] );\n\t\t\t$meta_fields = array_values( $meta_fields );\n\n\t\t\treturn apply_filters( 'jet-engine/listings/macros-list', array(\n\t\t\t\t'title' => array(\n\t\t\t\t\t'label' => esc_html__( 'Title', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_title' ),\n\t\t\t\t),\n\t\t\t\t'field_value' => array(\n\t\t\t\t\t'label' => esc_html__( 'Field value', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_field_value' ),\n\t\t\t\t),\n\t\t\t\t'current_id' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current ID', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_id' ),\n\t\t\t\t),\n\t\t\t\t'current_tags' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current tags', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_tags' ),\n\t\t\t\t),\n\t\t\t\t'current_terms' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current terms', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_terms' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'taxonomy' => array(\n\t\t\t\t\t\t\t'label' => __( 'Taxonomy', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => jet_engine()->listings->get_taxonomies_for_options(),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'current_categories' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current categories', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_categories' ),\n\t\t\t\t),\n\t\t\t\t'current_meta' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current meta', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_meta' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'meta_key' => array(\n\t\t\t\t\t\t\t'label' => __( 'Meta field', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'current_meta_string' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current meta string', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_current_meta_string' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'meta_key' => array(\n\t\t\t\t\t\t\t'label' => __( 'Meta field', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'related_parents_from' => array(\n\t\t\t\t\t'label' => esc_html__( 'Related parents from', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_related_parents' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'post_type' => array(\n\t\t\t\t\t\t\t'label' => __( 'Post type', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => jet_engine()->listings->get_post_types_for_options(),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'related_children_from' => array(\n\t\t\t\t\t'label' => esc_html__( 'Related children from', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_related_children' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'post_type' => array(\n\t\t\t\t\t\t\t'label' => __( 'Post type', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => jet_engine()->listings->get_post_types_for_options(),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'related_children_between' => array(\n\t\t\t\t\t'label' => esc_html__( 'Related children between', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_related_children_between' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'post_type_1' => array(\n\t\t\t\t\t\t\t'label' => __( 'Post type 1', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => jet_engine()->listings->get_post_types_for_options(),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'post_type_2' => array(\n\t\t\t\t\t\t\t'label' => __( 'Post type 2', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => jet_engine()->listings->get_post_types_for_options(),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'queried_term' => array(\n\t\t\t\t\t'label' => esc_html__( 'Queried term', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_queried_term' ),\n\t\t\t\t),\n\t\t\t\t'author_id' => array(\n\t\t\t\t\t'label' => esc_html__( 'Post author ID', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_post_author_id' ),\n\t\t\t\t),\n\t\t\t\t'current_user_id' => array(\n\t\t\t\t\t'label' => esc_html__( 'Current user ID', 'jet-engine' ),\n\t\t\t\t\t'cb' => 'get_current_user_id',\n\t\t\t\t),\n\t\t\t\t'queried_user_id' => array(\n\t\t\t\t\t'label' => esc_html__( 'Queried user ID', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_queried_user_id' ),\n\t\t\t\t),\n\t\t\t\t'query_var' => array(\n\t\t\t\t\t'label' => esc_html__( 'Query Variable', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_query_var' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'var_name' => array(\n\t\t\t\t\t\t\t'label' => __( 'Variable Name', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'today' => array(\n\t\t\t\t\t'label' => esc_html__( 'Today', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'get_today_timestamp' ),\n\t\t\t\t),\n\t\t\t\t'str_to_time' => array(\n\t\t\t\t\t'label' => esc_html__( 'String to timestamp', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'string_to_time' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'str' => array(\n\t\t\t\t\t\t\t'label' => __( 'String to convert', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'jet_engine_field_name' => array(\n\t\t\t\t\t'label' => esc_html__( 'JetEngine meta field', 'jet-engine' ),\n\t\t\t\t\t'cb' => array( $this, 'field_name' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'str' => array(\n\t\t\t\t\t\t\t'label' => __( 'Field', 'jet-engine' ),\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'groups' => $meta_fields,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t) );\n\n\t\t}", "title": "" }, { "docid": "819e653f5f76b38fa89691e84f4bfbbc", "score": "0.5490045", "text": "function generateSelect($data)\n{\n $options = [];\n foreach ($data as $key => $value) {\n $options[] = ['text' => $value, 'value' => $key];\n }\n\n return $options;\n}", "title": "" }, { "docid": "d55fcbe0f4ea7bdd610c8c1cace72da0", "score": "0.54844254", "text": "static function selector() {\n\t\treturn [\n\t\t\t'iListingID' => 'id',\n\t\t\t'szPassword' => 'password',\n\t\t\t'szFirstName' => 'firstName',\n\t\t\t'UPPER(szLastName)' => 'lastName', // <-- Note: MySQL applayed function on selector.\n\t\t\t'szOwnerName' => 'ownerName',\n\t\t];\n\t}", "title": "" }, { "docid": "7904bf34702251af8ffe3c1ad2a1dab8", "score": "0.5484289", "text": "public function select($f, $v = array(), $o = array()) { $o['as'] = 'select'; $o['collection'] = $v; return $this->input($f, $o); }", "title": "" }, { "docid": "e8724fda186a342dee024b878238a361", "score": "0.54841167", "text": "public function selectAll() {\n\t\treturn $this->academic_session->all(['name', 'id']);\n\t}", "title": "" }, { "docid": "40d0e09bbb4243d36b847c818f4ec604", "score": "0.54835004", "text": "public function getTypesOptions()\n {\n $criteria = new CDbCriteria();\n\t\t$criteria->order='type';\n $criteria->condition='active=0';\n\t\treturn Type::model()->findAll($criteria);\n }", "title": "" } ]
2b93cff5bb1c661e324ea675dd263934
Requests the Zabbix API and returns the response of the method "application.update". The $params Array can be used, to pass parameters to the Zabbix API. For more information about these parameters, check the Zabbix API documentation at The $arrayKeyProperty can be used to get an associative instead of an indexed array as response. A valid value for the $arrayKeyProperty is is any property of the returned JSON objects (e.g. "name", "host", "hostid", "graphid", "screenitemid").
[ { "docid": "93c0b6fd1631b9d3b651d3a37bb9d717", "score": "0.8522058", "text": "public function applicationUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('application.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" } ]
[ { "docid": "0f00e1e41fd1df7c503d66bf710aea54", "score": "0.80934256", "text": "public function applicationUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('application.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "f300d8309f20a0f48f86f6ccbb484ed5", "score": "0.774691", "text": "public function update( $params)\n {\n return $this->httpPostJson('microapp/update', $params);\n }", "title": "" }, { "docid": "539b3c0c98c2ac5f1318cc36236e1cb9", "score": "0.75290275", "text": "public function actionUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('action.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f976c9a60704e067609e8c5afd5ebdd6", "score": "0.7367704", "text": "public function moduleUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('module.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "8fe0835aa7c5470f48da00b3a5f61682", "score": "0.72797", "text": "public function itemUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('item.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "c45388b32bf73c8fde19430206f60d90", "score": "0.7213166", "text": "public function screenitemUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('screenitem.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "8cb8ba11cf2e9ade58277d5cdbcda69b", "score": "0.71222043", "text": "public function hostUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('host.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "9d00c2654d8ee657de338cbe80cb7427", "score": "0.70870864", "text": "public function actionUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('action.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "7f4ea5f3e348d62752a9dc4a65a27a0b", "score": "0.70640695", "text": "public function dashboardUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('dashboard.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f76dbf243b120f184f4ca318072d062b", "score": "0.7008439", "text": "public function screenUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('screen.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "db8904108793db75137997390c81c261", "score": "0.69355065", "text": "public function proxyUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('proxy.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f4a30349449e21ca83d5c85326c949e5", "score": "0.6929645", "text": "public function mapUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('map.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f699f83640138ddf59d9d3125ea271fb", "score": "0.6920799", "text": "public function scriptUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('script.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "b2316028ee14c9d6143d331ba8a49d1f", "score": "0.691289", "text": "public function serviceUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('service.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "a916432a1f3b908d1de9c13283684326", "score": "0.68933886", "text": "public function httptestUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('httptest.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "64a9a4b64bb85aecfb0895b6c4561bbb", "score": "0.689059", "text": "public function triggerUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('trigger.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "48327c79ccecd8bff95245bbb4069a70", "score": "0.68809026", "text": "public function maintenanceUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('maintenance.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f77c71d8b11df17addd1bc03e499deaa", "score": "0.68586975", "text": "public function itemUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('item.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "2ba03faae7f59f0817cd8680a3d69462", "score": "0.6844858", "text": "public function screenitemUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('screenitem.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "99e45ffae65325bbabb0169f52eba203", "score": "0.6748561", "text": "public function hostUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('host.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "6b7247a9d3be5ba068d0dd39cf32a1ca", "score": "0.6727137", "text": "public function userUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('user.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "54d57c9e8e516f9d22f628d558a16249", "score": "0.66921586", "text": "public function hostMassUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('host.massUpdate', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "762079bf454e7e0fc8fef300d9b7e295", "score": "0.6671185", "text": "public function hostinterfaceUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('hostinterface.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "9cfb2da1cd3abb321086dc0e9a5fada9", "score": "0.6625706", "text": "public function screenUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('screen.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "2d828aa69722bb9a758f7ce4d0688466", "score": "0.6553434", "text": "public function hostprototypeUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('hostprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "d8c24df6202e0584e4ae5504cbfe0636", "score": "0.6551405", "text": "public function scriptUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('script.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "ecef49a78c7763a930e4366124416eee", "score": "0.6548042", "text": "public function maintenanceUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('maintenance.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "a35130c9d57afc0d02076ca0a3cbf26c", "score": "0.65465444", "text": "public function mapUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('map.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "2ee2d19e421df2ec50160043adc0dbb3", "score": "0.65349174", "text": "public function triggerUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('trigger.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "af33088b7610d923c3ed09ce03d5c827", "score": "0.65121686", "text": "public function autoregistrationUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('autoregistration.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "34be3b5e69b1c665e16643788e23991b", "score": "0.6509859", "text": "public function iconmapUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('iconmap.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "700c24f9030814dc8e6af940bcc3572a", "score": "0.6508526", "text": "public function serviceUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('service.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "c1eac52fc42d566aee0d69a5fc382efb", "score": "0.64968693", "text": "public function discoveryruleUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('discoveryrule.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "309533947eab982e91bc33a2fa5c0a6a", "score": "0.64709145", "text": "public function imageUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('image.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "34a3c2bf82b4fca9eb889ab8243eb54b", "score": "0.6448795", "text": "public function druleUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('drule.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "df2b11f5c6cf1dc2220f764307ca196f", "score": "0.6441273", "text": "public function proxyUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('proxy.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "e3dd1f39d2c0aaa46dd2b419ad8473d7", "score": "0.64346886", "text": "public function httptestUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('httptest.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "e894c911c2dede6d21174a23e7606aa3", "score": "0.6423167", "text": "public function hostMassUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('host.massupdate', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "2b9f9a851bc768ba7859b161e9650110", "score": "0.64199275", "text": "public function itemprototypeUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('itemprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "ead9c2c304ab659648462456b4416b41", "score": "0.64125854", "text": "public function update($params) {\n\t\t$this->build_session();\n\t\t$fields_string = json_encode($params);\n\t\tcurl_setopt($this->ch, CURLOPT_POSTFIELDS, $fields_string);\n\t\tcurl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, 'PATCH');\n\t\tcurl_setopt($this->ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\n\t\t$this->exec_session();\n\t\treturn $this->session_result();\n\t}", "title": "" }, { "docid": "b1b2f63f5159af08492bdc9ba6149598", "score": "0.63870054", "text": "public function valuemapUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('valuemap.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "39328e7148adc1149d9d1ea612cca93e", "score": "0.63709563", "text": "public function screenitemUpdateByPosition($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('screenitem.updateByPosition', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "cded94797e4da6e5a39eeea1fa2ce9bc", "score": "0.6361852", "text": "public function triggerprototypeUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('triggerprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "95c5fab27add023bab24c7d76c5e0284", "score": "0.63224053", "text": "public function serviceValidateUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('service.validateUpdate', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "f4fb74605b81744dbb14813bca27229f", "score": "0.6300326", "text": "public function graphUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('graph.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "41eddc280aec2ea7a768e52118148b45", "score": "0.62684584", "text": "public function templatescreenUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('templatescreen.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "58c7a74847106f89df65a99634bc85b7", "score": "0.62256014", "text": "public function hostinterfaceUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('hostinterface.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "0dfe00b8dd5ea0d04d17f3df10535bc6", "score": "0.62086535", "text": "public function updateApp(string $vendor, string $id, array $params): array\n {\n return $this->authRequest('PATCH', sprintf('vendors/%s/apps/%s', $vendor, $id), $params);\n }", "title": "" }, { "docid": "9668f91ceda3a00867ddc173a6a9ee6d", "score": "0.6207067", "text": "public function hostgroupUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('hostgroup.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "48538a87bc8bb437e91cc16bc21a0bc9", "score": "0.6197346", "text": "public function usermacroUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('usermacro.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "0262f8759fd1f91e9b2758c20ad33ab4", "score": "0.61818343", "text": "public function iconmapUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('iconmap.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "afbdcfa1ea77ff3ed6c749ad0d9a82f8", "score": "0.6176886", "text": "public function userUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('user.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "fce9f86c2b86e44d61a1a5c3b11fa17d", "score": "0.6168717", "text": "public function update($params = array())\n\t{\n\t\t$response = $this->api->request('POST', $this->getUrl(), $params, $this->toXML(), $this->format);\n\t\treturn $this->parseResponse($response) ? true : false;\n\t}", "title": "" }, { "docid": "ce202aab955b00913326016066728328", "score": "0.61612535", "text": "public function update($params = null) {\n $this->autoRender = false;\n $params = $this->request->data; \n if (isset($params['id'])) {\n $status = $this->user_update($params['id'], $params, 'bullhorn_id');\n if(isset($params['updatedByUserId'])){\n unset($params['updatedByUserId']);\n } \n if ($status != 1 && is_array($status)) {\n $error_msg = $this->format_validation_message($status);\n echo json_encode(array('result' => 0, 'error' => $error_msg));\n exit;\n }\n } \n $this->BullhornConnection->BHConnect();\n $url = $_SESSION['BH']['restURL'] . '/entity/ClientContact/' . $params['id'] . '?BhRestToken=' . $_SESSION['BH']['restToken']; \n $post_params = json_encode($params);\n $req_method = 'POST'; \n $this->BullhornCurl->curlFunction($url, $post_params, $req_method);\n $response['result']=1;\n $response['message']='Updated successfully!';\n echo json_encode($response);\n }", "title": "" }, { "docid": "8bcc6d6889023e569f110d6e498d4209", "score": "0.61602366", "text": "public function imageUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('image.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "7a59679b8ff0cf517ea20605915b9234", "score": "0.6108957", "text": "public function hostprototypeUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('hostprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "e312e931a66430cb4e18bc7828fb3228", "score": "0.6095277", "text": "public function graphprototypeUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('graphprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "d1c850212360717dbc960830aec0db60", "score": "0.6078711", "text": "public function discoveryruleUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('discoveryrule.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "076332ace6f9b9c48c226952aa20f01f", "score": "0.6076256", "text": "public function templateUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('template.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "004c98a5c67bbe383d7f73675737c5d7", "score": "0.6067211", "text": "public function usergroupUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('usergroup.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "14422587238b9347eaaeaf103c20bb4e", "score": "0.6054082", "text": "public function mediatypeUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('mediatype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "71ad24617fcd7b80f6b1d4bdb684791a", "score": "0.6039344", "text": "public function screenitemUpdateByPosition($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('screenitem.updatebyposition', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "a6d5ad21d28310f7392fa914e532b11e", "score": "0.6020092", "text": "public function druleUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('drule.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "29ed5ca27f1ed56c9db91e202211ca8e", "score": "0.5994477", "text": "public function serviceValidateUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('service.validateupdate', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "64571a261ad7e31cebee97e98e29e5b8", "score": "0.5985519", "text": "public function correlationUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('correlation.update', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "83cf843355229a1da2b01570b5d41632", "score": "0.59817886", "text": "public function itemprototypeUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('itemprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "e3426b23558cad8b1e1711983145dca5", "score": "0.59519553", "text": "public function triggerprototypeUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('triggerprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "76b749f6aae95e5bd80383309def661a", "score": "0.5912345", "text": "public function graphUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('graph.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "e22fce695adac69c2f88221a7d66b2cd", "score": "0.58887076", "text": "public function valuemapUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('valuemap.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "653221089229203f182a65dcfb027bf4", "score": "0.58723056", "text": "public function update($params = array()) { \n $response = $this->send_request('HostUpdate', $params);\n if (isset($response->HostDetails)) {\n return $response->HostDetails;\n } else {\n return $this->api_errors($response);\n }\n }", "title": "" }, { "docid": "a799c342de5f0a828a6f99091e20f307", "score": "0.5828331", "text": "public function hostgroupUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('hostgroup.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "bae54e51e835992ad3490d29490b7ff3", "score": "0.5826614", "text": "public function templatescreenUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('templatescreen.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "5fcd4c20be827626a9084d57f3ef1f94", "score": "0.5823929", "text": "public function modify(array $params)\n {\n $options = [\n 'json' => $params\n ];\n\n return $this->put(\n $this->app,\n $this->client,\n self::PATH,\n $options\n );\n }", "title": "" }, { "docid": "60349bad7e866f553958ac772b305ab3", "score": "0.57696134", "text": "public function apiinfoVersion($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('apiinfo.version', $this->getRequestParamsArray($params), $arrayKeyProperty, false);\n }", "title": "" }, { "docid": "ae9e6f60824e93c452a5b88be45d82de", "score": "0.5745965", "text": "public function update($params) {\r\n $query = '';//SQL query\r\n $data = parent::update($query);\r\n return $data;\r\n }", "title": "" }, { "docid": "7a16649830c964f0968fe58ba4cbd3db", "score": "0.57267827", "text": "public function usermacroUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('usermacro.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "b84533675c9f4dd291fdb830929b03dd", "score": "0.57002574", "text": "public function graphprototypeUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('graphprototype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "97d1d7b3406a24cdeef86f6c66d030da", "score": "0.5691654", "text": "public function mediatypeUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('mediatype.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "32ff369a49ca6d766375569c421da91a", "score": "0.5672948", "text": "public function hostgroupMassUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('hostgroup.massUpdate', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "192ed18a3ed505f4dae6514c71bb1027", "score": "0.56653243", "text": "public function usermacroUpdateGlobal($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('usermacro.updateGlobal', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "520609a808d727113ed57a5d22a3cd9e", "score": "0.56419015", "text": "public function update($params)\t{\n\t\t$this->log->write('Started with parameters: ' . print_r($params, true));\n\t\t\n\t\t$this->update_date = 'now';\n\t\t\n\t\t//update organizations\n\t\tif (isset($params['update_organizations']))\n\t\t $this->updateCentralOrganizations();\n\t\t\n\t\t//update regions\n\t\tif (isset($params['update_regions']))\n\t\t $this->updateRegions();\n\t\t\n\t\t//update chapters\n\t\tif (isset($params['update_chapters']))\n\t\t $this->updateChapters();\n\t\t\n\t\t//update memberships\n\t\tif (isset($params['update_memberships']))\n\t\t $this->updateOrganizationInGroup();\n\t}", "title": "" }, { "docid": "b76c00c954fa925b95e405388774d441", "score": "0.5594125", "text": "public function templateUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('template.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "204ee2d0752d5eb49bf780214aef8f28", "score": "0.5593742", "text": "public function applicationDelete($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('application.delete', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "fece7e190d5c3718148e76d274786d3b", "score": "0.5576637", "text": "public function update(array $params = array())\n {\n if ($this->_definition['_links']['self']['class'] == 'page') {\n include_once 'Desk/Exception.php';\n throw new Desk_Exception(\n 'Pages can not be updated.'\n );\n }\n\n foreach ($params as $key => $value) {\n $this->__set($key, $value);\n }\n\n $self = $this->_definition['_links']['self']['href'];\n $response = $this->_client->patch($self, $this->_changes);\n\n if ($response->isSuccessful()) {\n $this->_definition = Zend_Json::decode($response->getBody());\n $this->_changes = array();\n $this->_setup();\n return $this;\n } else {\n return $response;\n }\n }", "title": "" }, { "docid": "eba491e17082dae06af0323f6f4a208a", "score": "0.5573524", "text": "public function usergroupUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('usergroup.update', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "ee8a899f44eaecd01049814e7c5840d2", "score": "0.555027", "text": "public function update(): mixed\n {\n return $this->apiCall('update');\n }", "title": "" }, { "docid": "83c80c83dd050ebc1253f3a746751c66", "score": "0.5533172", "text": "public function applicationMassAdd($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('application.massAdd', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "b67645143b82f13a62ca8ad13a467c02", "score": "0.5531935", "text": "public function templateMassUpdate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('template.massUpdate', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "e96d422613cb73ddb52f2dd3477c4c77", "score": "0.54914576", "text": "public function apiinfoVersion($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('apiinfo.version', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, false);\n }", "title": "" }, { "docid": "3dd5fa1215ab9d55596845e2e4eabb7e", "score": "0.54912364", "text": "public function applicationGet($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('application.get', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" }, { "docid": "9b6d5d612528fc87bc18a4ccda5e546d", "score": "0.54742104", "text": "static function updateVersion($params){\n $response = [\"status\" => null, \"message\" => null, \"data\" => null];\n $result = DbMethods::updateVersion($params);\n $error = strpos($result, 'mysql_Error:-');\n if($error === 0){\n $response[\"status\"] = 500;\n $response[\"message\"] = \"Your device has lost connection due to database error.\";\n $response[\"data\"] = $result;\n header(\"HTTP/1.1 500\");\n }\n else{\n if($result != \"\"){\n $response[\"message\"] = 'Data';\n $response[\"data\"] = $result;\n $response[\"status\"] = 200;\n header(\"HTTP/1.1 200\");\n }\n else{\n return json_encode($response);\n }\n }\n return json_encode($response);\n }", "title": "" }, { "docid": "c6a2b6ad6a666258cb9e0769debc7f1e", "score": "0.5463255", "text": "public function update(array $params = [])\n {\n return $this->handleMiddleware('update', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $data = $params;\n $response = $this->apiInstance->videosUpdate($data);\n return $this->handleResponse($response);\n });\n }", "title": "" }, { "docid": "82bf5f2db5e10479451d251a38e32e40", "score": "0.54605126", "text": "public function update($params = array())\n {\n validateAccess();\n\n switch ($_SERVER['REQUEST_METHOD']) \n {\n case 'POST':\n $userId = $this->userId;\n $apiKey = $this->apiKey;\n $id = $_POST['id'];\n $description = $_POST['description'];\n\n try \n {\n $response = $this->composerClient->request(\"PUT\", $this->url, \n ['form_params'=>\n [\n 'id'=>$id,\n 'description'=>$description,\n 'apiKey'=>$apiKey\n ]\n ]);\n \n $response_body = $response->getBody();\n $task = json_decode($response_body);\n }\n catch (RequestException $ex)\n {\n echo \"HTTP Request failed\\n\";\n echo \"<pre>\";\n print_r($ex->getRequest());\n echo \"</pre>\";\n \n if ($ex->hasResponse()) \n {\n echo $ex->getResponse();\n } \n }\n\n parent::view(\"update.php\", $task);\n break;\n\n case 'GET':\n extract($params);\n $userId = $this->userId;\n $apiKey = $this->apiKey;\n\n if (empty($id)) {\n header(\"location:/\". HOST .\"tasks/list\");\n }\n\n try \n {\n $response = $this->composerClient->request(\"GET\", $this->url, \n ['query'=> [\n 'id'=>$id,\n 'apiKey'=>$apiKey,\n 'type'=>\"tasks\"]\n ]);\n \n $response_body = $response->getBody();\n $task = json_decode($response_body);\n }\n catch (RequestException $ex)\n {\n echo \"HTTP Request failed\\n\";\n echo \"<pre>\";\n print_r($ex->getRequest());\n echo \"</pre>\";\n \n if ($ex->hasResponse()) \n {\n echo $ex->getResponse();\n } \n }\n\n parent::view(\"update.php\", $task, $params);\n break;\n\n default:\n break;\n }\n }", "title": "" }, { "docid": "802e7c173953ccbcf31f2cddca167939", "score": "0.5376274", "text": "public function userUpdateProfile($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('user.updateprofile', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "0a9425c0d8a01bba280693b21e213c99", "score": "0.53452957", "text": "public function hostgroupMassUpdate($params = [], $arrayKeyProperty = null, $assoc = true)\n {\n return $this->request('hostgroup.massupdate', $this->getRequestParamsArray($params), $arrayKeyProperty, $assoc, true);\n }", "title": "" }, { "docid": "8f19d820a409cfdc470f0692ef0ffbcd", "score": "0.53315246", "text": "public function update($event, $params);", "title": "" }, { "docid": "8068148b05cbf9f0e5040a080a1c2fee", "score": "0.5320474", "text": "public function update($params, $data)\n\t{\n\t\treturn $this->attribute->update($params, $data);\n\t}", "title": "" }, { "docid": "2018c03188454d9db3a210c3ec9be73c", "score": "0.53044426", "text": "public function updateAction()\n {\n $host = new Host(\n $this->params->getRequired('host')\n );\n $updatename = $this->params->getRequired('update');\n $required = $this->params->get('required');\n\n if(!$host->exist() || !$host->approved()) {\n exit($this->exitUnknown($host));\n }\n\n if ($required == null) {\n $required = true;\n } else {\n $required = boolval($required);\n }\n\n $updatename = strtolower($updatename);\n $DBUpdateName = $updatename;\n\n $exitcode = Service::STATE_UNKNOWN;\n\n $updates = new Updates($host->name());\n\n $updatelist = $updates->loadUpdateHistoryFromDB();\n $installed = false;\n\n foreach($updatelist as $index => $update) {\n $name = strtolower($update->getName());\n\n if (strpos($name, $updatename) !== false) {\n $installed = true;\n $DBUpdateName = $update->getName();\n break;\n }\n }\n\n if ($installed == false && $required == true) {\n $exitcode = Service::STATE_CRITICAL;\n } else if ($installed == true && $required == false) {\n $exitcode = Service::STATE_CRITICAL;\n } else {\n $exitcode = Service::STATE_OK;\n }\n\n Tools::getInstance()->getCliOutputMessage(\n 'Update \"' . $DBUpdateName . '\" is' . ($installed == false ? ' not' : '') . ' installed on this system.',\n $exitcode\n );\n\n exit($exitcode);\n }", "title": "" }, { "docid": "0667bd372200b0dc322194a944fcb6ae", "score": "0.53026336", "text": "static function update($arr) {\n $db = self::get_connection();\n $query = $db->prepare(static::SQL_UPDATE);\n static::bind_params_update($query, $arr);\n $query->execute();\n if ($query->errno) {\n return $query->error;\n }\n $query->close();\n return static::get_by_id($arr['id']);\n }", "title": "" }, { "docid": "9e7c0ca99e7deb10425ea9f701cc9d1e", "score": "0.52996117", "text": "public function applicationCreate($params = array(), $arrayKeyProperty = '')\n {\n return $this->request('application.create', $this->getRequestParamsArray($params), $arrayKeyProperty, true);\n }", "title": "" } ]
978ab0b9d0597c955095978af74a3d00
/! Accepted values are: raised, plain
[ { "docid": "6ef524ebd9f8fc7df38355ff0491eb9e", "score": "0.0", "text": "function SetImageBorderType($sibt) \n {\n $this->image_border_type = $this->CheckOption($sibt, 'raised, plain', __FUNCTION__);\n }", "title": "" } ]
[ { "docid": "fe2f38eaa496ec7ad3104a35536f20f1", "score": "0.67787194", "text": "public function throwNotAcceptable();", "title": "" }, { "docid": "186bcff739943bb71033e20c58f6bdc1", "score": "0.5977942", "text": "abstract protected function error();", "title": "" }, { "docid": "97b8a0cf9a65d4ed45572cc26f8ddf04", "score": "0.58698714", "text": "abstract public function error();", "title": "" }, { "docid": "ff121d73b3325c3721a582f60c0fe1ef", "score": "0.58492225", "text": "public function error();", "title": "" }, { "docid": "9ed10eff289a97d7959271dab4d30a0b", "score": "0.5846738", "text": "public function throwBadRequest();", "title": "" }, { "docid": "6fc332fb74b0d5f361f9136c86ba77ea", "score": "0.5732894", "text": "protected static function error () {\n\t\t/*\n\t\t¯\\_(ツ)_/¯\n\t\t*/\n\t}", "title": "" }, { "docid": "ad28e55b89adde7b5e6c84e46d0aa871", "score": "0.5644247", "text": "public function invalidFastTypeMessage(): void\n {\n $this->output->write(\n $this->output_decorator->decorateRed(\"Please enter one of the types specified above.\")\n );\n }", "title": "" }, { "docid": "8acd4dc95eb7c8b7aa0caf15098405bf", "score": "0.56434083", "text": "function user_error($messsage, $error_type = null) {}", "title": "" }, { "docid": "93f3d9b66d959ff28541b38a6b3cb419", "score": "0.5625986", "text": "public function errors();", "title": "" }, { "docid": "93f3d9b66d959ff28541b38a6b3cb419", "score": "0.5625986", "text": "public function errors();", "title": "" }, { "docid": "a53ca57383c6c64eb392fc26cd32a398", "score": "0.5608902", "text": "public abstract function error($e);", "title": "" }, { "docid": "637ff13d9e3d1a9b569fb4306620d5ce", "score": "0.5608862", "text": "private function genericErrorHandler()\n\t{\n\t\tif ( !(empty($this->errors)) )\n\t\t{\n\t\t\thttp_response_code(400);\n\t\t\techo json_encode(array(\"errors\" => $this->errors));\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "7b1f40db34d4a796a47e74b2e81fcb9b", "score": "0.5595613", "text": "public abstract function reason();", "title": "" }, { "docid": "6d69340f976cf6ddef9adf7184ab4517", "score": "0.5555202", "text": "protected function error(){ \n }", "title": "" }, { "docid": "83bcb11524ff7e16f45f22b9302aee31", "score": "0.5507922", "text": "public function error(){\r\n\t}", "title": "" }, { "docid": "dc3309b21b52805fed037a56a7a20fa2", "score": "0.5496559", "text": "public function throwForbidden();", "title": "" }, { "docid": "0edb60277d010e7d94e39de6bcfea0f2", "score": "0.5484567", "text": "public function get_reason()\n {\n }", "title": "" }, { "docid": "c58a4b2987945a27fd5425376999997a", "score": "0.5482749", "text": "abstract protected function handleNotDetectableException();", "title": "" }, { "docid": "7407d2e265bb5f5339b368b220cb1325", "score": "0.54648304", "text": "function exception_for($reason)\n {\n }", "title": "" }, { "docid": "c437f4a9c54b2b532f9d2569eaa47839", "score": "0.545495", "text": "public function error()\n {\n }", "title": "" }, { "docid": "3311ce7096b93c23ed6c659c5e32cc17", "score": "0.54417247", "text": "public function invalidRequest()\n {\n return \"Whoops, something went wrong. Are you sure this is the right command? If so, you can contact me. \";\n }", "title": "" }, { "docid": "0de131e97d6ff539cd7dcb89e66621eb", "score": "0.54356104", "text": "private function _methodNotAllowError() {\n trigger_error($this->input->method(TRUE).\" is method not allowed\", E_USER_ERROR);\n exit(0);\n }", "title": "" }, { "docid": "09aeace5969c2a0ff1ebc2a5e0406224", "score": "0.54330397", "text": "abstract protected function getInvalidFormDataMessage();", "title": "" }, { "docid": "e347ab42bc9c43b4104ad815e291243f", "score": "0.5429197", "text": "public function getReason();", "title": "" }, { "docid": "e347ab42bc9c43b4104ad815e291243f", "score": "0.5429197", "text": "public function getReason();", "title": "" }, { "docid": "e347ab42bc9c43b4104ad815e291243f", "score": "0.5429197", "text": "public function getReason();", "title": "" }, { "docid": "4e104e2cbb0c9043fdead0f76887f14a", "score": "0.5424851", "text": "abstract public function getErro();", "title": "" }, { "docid": "41653c5b7addada379f1c0a1d7c746b8", "score": "0.5405641", "text": "function broken() { }", "title": "" }, { "docid": "78ebd4a5ba81685056b529494d55daa0", "score": "0.5390763", "text": "protected function handle_failure() { }", "title": "" }, { "docid": "320bc1aab5b5db88772c9cbe376c04fd", "score": "0.53899276", "text": "private function throwErrorForUnknownFormat() {\n\t\t$this->Errors[] = __('This file is not supported. Supported producers of kml-files: '.self::$ALLOWED_PRODUCER.'.');\n\t}", "title": "" }, { "docid": "bf576d0014249f19af66f8f836d723bc", "score": "0.53873914", "text": "protected function getType() {\n return \"bad\";\n }", "title": "" }, { "docid": "39630f045bb084289065138e17363456", "score": "0.53864074", "text": "public function propagateLike(){;}", "title": "" }, { "docid": "869426da50af07022c0f4bae68b557d9", "score": "0.5378279", "text": "public function baseError(){\n }", "title": "" }, { "docid": "9219f9c1a674db565903c1e6f044bef0", "score": "0.5376912", "text": "abstract protected function _unimplemented() : Exception;", "title": "" }, { "docid": "9219f9c1a674db565903c1e6f044bef0", "score": "0.5376912", "text": "abstract protected function _unimplemented() : Exception;", "title": "" }, { "docid": "9219f9c1a674db565903c1e6f044bef0", "score": "0.5376912", "text": "abstract protected function _unimplemented() : Exception;", "title": "" }, { "docid": "9219f9c1a674db565903c1e6f044bef0", "score": "0.5376912", "text": "abstract protected function _unimplemented() : Exception;", "title": "" }, { "docid": "9219f9c1a674db565903c1e6f044bef0", "score": "0.5376912", "text": "abstract protected function _unimplemented() : Exception;", "title": "" }, { "docid": "a50bef07b699f6c468b00b6d8c3f8687", "score": "0.5375616", "text": "public function getInvalidValue()\r\n {\r\n }", "title": "" }, { "docid": "1883e267e4349af4a11109884cbfba12", "score": "0.53610486", "text": "abstract protected function catchConcreteResponseError();", "title": "" }, { "docid": "da5eac13fb152a2c4a7bf4dbccc985ac", "score": "0.53412604", "text": "public static function responseException() {\n return ['#plain_text' => BigPipeTestSubscriber::CONTENT_TRIGGER_EXCEPTION];\n }", "title": "" }, { "docid": "5faa7aea9ad088f59d9b3515a7549d55", "score": "0.533687", "text": "public function throwConflict();", "title": "" }, { "docid": "0ed218a23fe99d8531434f3fe665ebcf", "score": "0.533153", "text": "public function bad()\n {\n return $this->make('BAD_REQUEST');\n }", "title": "" }, { "docid": "d6e6726eb67eee159185de6933029cce", "score": "0.53269625", "text": "public function failed($data)\n {\n }", "title": "" }, { "docid": "d6e6726eb67eee159185de6933029cce", "score": "0.53269625", "text": "public function failed($data)\n {\n }", "title": "" }, { "docid": "ff2f8f99cb79733b424a8f310b9356b1", "score": "0.5326344", "text": "public function getExpectedText()\n {\n return \"Method Not Allowed\";\n }", "title": "" }, { "docid": "30486fc11f1f568d5783aa7004c56c7f", "score": "0.53253436", "text": "public function errormessage() {\n \n }", "title": "" }, { "docid": "2323da0583e82659a2efc0d04114cc8b", "score": "0.53111976", "text": "function rejection_for($reason)\n {\n }", "title": "" }, { "docid": "bc2d750f167c1e0aaefacdbbe13c7d87", "score": "0.53098905", "text": "public function error():string;", "title": "" }, { "docid": "5a1481231c0d88434d6763458a523ac4", "score": "0.52996266", "text": "function trigger_error($messsage, $error_type = null) {}", "title": "" }, { "docid": "217388a064d34abe869d5406e97e6c31", "score": "0.5296584", "text": "function newrelic_notice_error($messageOrUnused = null, $exceptionOrMessage = null, $unused2 = null, $unused3 = null, $unused4 = null) {}", "title": "" }, { "docid": "d9a1e607f55961e7754096dae880efd7", "score": "0.5285241", "text": "public function errorCode()\n {\n }", "title": "" }, { "docid": "e650a5f75600e562f199303a1f26cfef", "score": "0.5281662", "text": "public function onFailure()\n {\n }", "title": "" }, { "docid": "b839987f21a761c43c73ccb60fe48ee8", "score": "0.527889", "text": "public function failures();", "title": "" }, { "docid": "7eacf7a6a6ba019a2ee30b82592bd6b4", "score": "0.5268589", "text": "protected function badRequest()\n {\n exit(http_response_code(400));\n }", "title": "" }, { "docid": "1baccb8ba7f6c2bcfb1c0ccc719d78ec", "score": "0.52680594", "text": "abstract protected function allowUpdateExceptions();", "title": "" }, { "docid": "766163c0a14c124fce6dfab163d35c31", "score": "0.5267497", "text": "private function distinguishSignatureErrors()\n {\n if ($this->result->getRequest()\n && Stringy::contains($this->errorMessage, $this->result->getRequest()->stringToSign())) {\n $this->errorCode = 'InvalidAccessKeySecret';\n $this->errorMessage = 'Specified Access Key Secret is not valid.';\n }\n }", "title": "" }, { "docid": "e4a0fc20344660fa39f1dfd49745ddc9", "score": "0.5262844", "text": "function diff() {\n\t\t\tthrow new Exception(EXTEND_ME);\n\t\t}", "title": "" }, { "docid": "a20e4c717d444ecd2f5584f66c083224", "score": "0.52466595", "text": "public function handel():mixed;", "title": "" }, { "docid": "8ebe96cf986b0b4637aa56f94b9c317d", "score": "0.5244538", "text": "public static function httpErrors()\n {\n }", "title": "" }, { "docid": "5160ada6e6d7ed7914078f5ed48e7b13", "score": "0.5239068", "text": "function testInvalidTypeArgCausesExceptionFailure()\n {\n try {\n $filter = new T_Response_ClientCache(60*60,'notatype');\n $this->fail();\n } catch (InvalidArgumentException $e) { }\n }", "title": "" }, { "docid": "529950b3a08b9feeb132166347ca35ab", "score": "0.5232514", "text": "public function errorCode ( );", "title": "" }, { "docid": "ee2eec035cdcd32284052dfe23990dae", "score": "0.52297336", "text": "public function errorInfo ( );", "title": "" }, { "docid": "f3147af3cdb0ff64fd1063eaa44d560a", "score": "0.5219036", "text": "public function testInvalidProperty() {\n\t\t$str = new \\Scrivo\\Str(\"test\");\n\t\t$tmp = $str->hatseFlatse;\n\t}", "title": "" }, { "docid": "8657e8ea687eef8ecd71df94d816359c", "score": "0.5214004", "text": "public function errorInfo()\n {\n }", "title": "" }, { "docid": "638525f050dfec75d3500fa8288363d5", "score": "0.52086806", "text": "public function getReason()\n {\n }", "title": "" }, { "docid": "1c16853a157e0d803f1ef6f80e723648", "score": "0.5204459", "text": "public function onFail()\n {\n }", "title": "" }, { "docid": "d33ecd1550874431d2ff343c4384dd17", "score": "0.51970124", "text": "public function verifyError();", "title": "" }, { "docid": "55ec6544641ce43825298feef5b3e526", "score": "0.5194653", "text": "abstract public function getErrorMessage();", "title": "" }, { "docid": "b7254918f11aa828b3b0c6fdfa83440f", "score": "0.5182082", "text": "public function testSolarGenericException()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "d4e9d4260ee3c188a2d65394f667a626", "score": "0.5181879", "text": "protected abstract function throwUnableToCreate();", "title": "" }, { "docid": "25a87cbb12fbd8b691b9e808bac3c6f3", "score": "0.5180496", "text": "public function has_reason()\n {\n }", "title": "" }, { "docid": "85be2293832d4a35fad36f0c6824118a", "score": "0.517902", "text": "function returnWithError( $err )\r\n\t{\r\n\t\t$retValue = '{\"active\":\"\", \"archived\":\"\", \"error\":\"' . $err . '\"}';\r\n\t\tsendAsJson( $retValue );\r\n\t}", "title": "" }, { "docid": "ad2020c60c9295a56cbca1032f1e85da", "score": "0.51741076", "text": "public function getSusceptibleUsage();", "title": "" }, { "docid": "0a3de2322493bd8f36df78466d7fa04e", "score": "0.51717013", "text": "public function errorInfo();", "title": "" }, { "docid": "0a3de2322493bd8f36df78466d7fa04e", "score": "0.51717013", "text": "public function errorInfo();", "title": "" }, { "docid": "0a3de2322493bd8f36df78466d7fa04e", "score": "0.51717013", "text": "public function errorInfo();", "title": "" }, { "docid": "1e20846bc208d198e9b64c9187c744d5", "score": "0.51653886", "text": "public function reasons();", "title": "" }, { "docid": "fc4ccb204c5a4db95138dd17ed7e135a", "score": "0.51628745", "text": "function yaz_errno($id) {}", "title": "" }, { "docid": "e51d431b8551c21ae4372633513004a3", "score": "0.5155956", "text": "public function testResponseExpectedException()\n {\n $http = new Http($this->getGuzzleWithResponse(json_encode(['errcode' => '40010', 'errmsg' => '不合法的语音文件大小'])));\n $http->setExpectedException('OvertrueException');\n $http->request('http://overtrue.me', 'GET');\n }", "title": "" }, { "docid": "9ae3d333d7c2afd73c6fc422cb20f3c2", "score": "0.5155635", "text": "function verificationfailed(){\n\t\theader(\"HTTP/1.1 400 (Bad Request)\");\n\t}", "title": "" }, { "docid": "7bc2f9da6e50b10fee13379e972aacc4", "score": "0.51494634", "text": "private function isOk()\n {\n }", "title": "" }, { "docid": "990285d6a407b97e5cabb98c23428a3b", "score": "0.5149109", "text": "public function anyUnsupported()\n {\n $this->app->response->sendJson([\"message\" => \"404. The api/ does not support that.\"], 404);\n exit;\n }", "title": "" }, { "docid": "26d2c122168c758796ff7d87a0daead0", "score": "0.5147456", "text": "function fourohfour() {\n\t\tstatus_header( 404 );\n\t\texit( 'Invalid request.' );\n\t}", "title": "" }, { "docid": "4cc1dbcb82de0b8fb0d6c812418d7bdf", "score": "0.51462764", "text": "public function testValidationCaseForSettingInvalidPropertyType()\n {\n $structure = new ExchangeInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $structure->prime = ['1234'];\n } else {\n $hasThrown = null;\n\n try {\n $structure->prime = ['1234'];\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 }", "title": "" }, { "docid": "2f827a6abba7dc707030ac03bab67deb", "score": "0.51380813", "text": "public function invalidAction()\n {\n $this->setResponse(100);\n }", "title": "" }, { "docid": "161373350ac5a2ed94288ff03f2f4f0d", "score": "0.5134876", "text": "abstract public function dataSystemInvalid();", "title": "" }, { "docid": "96bb80fcf40a20a3306292b073ac168f", "score": "0.5131419", "text": "private function fail($d, $type) {\n \tnew Error(\"Ein oder mehrere Felder enthalten ung&uuml;ltige Werte. ($type / $d)\");\n }", "title": "" }, { "docid": "ceba99b5f1a9363fe6b586325bd0b9ef", "score": "0.5125531", "text": "public function errorCode();", "title": "" }, { "docid": "ceba99b5f1a9363fe6b586325bd0b9ef", "score": "0.5125531", "text": "public function errorCode();", "title": "" }, { "docid": "ceba99b5f1a9363fe6b586325bd0b9ef", "score": "0.5125531", "text": "public function errorCode();", "title": "" }, { "docid": "495b3e0a4cabf6edd2d10b5cb6598341", "score": "0.51228595", "text": "public function wrongParameters()\n {\n\n return $this->setStatusCode(406)\n ->setStatusText('fail')\n ->setErrorCode(5406)\n ->respondWithMessage();\n\n }", "title": "" }, { "docid": "d8e43c2fa5803a38334523e8cbf9de39", "score": "0.51208705", "text": "function warning_handler($errno, $errstr, $errfile, $errline, array $errcontext) {\n\t//throw new \\ErrorException($errstr, 0, $errno, $errfile, $errline);\n\t//echo $errstr;\n\t\t$errstr=str_replace('.php','',$errstr);\n\t$e=new \\ErrorException($errstr, 0, $errno, $errfile, $errline);\n\techo get_view('error.php',['url'=>$url,'error_no'=>404,'exception'=>$e ]);\n\texit;\n}", "title": "" }, { "docid": "bb60490ea8b2efd687cab7d7358dfb3b", "score": "0.5119778", "text": "abstract public function getResultMessage();", "title": "" }, { "docid": "4cbd9ed20c35e86f34bcd55dfe842479", "score": "0.5119754", "text": "public abstract function getLastError();", "title": "" }, { "docid": "3f4570dfac39eccab8810eb9eecbb09c", "score": "0.51187146", "text": "public function testExceptionMessageForceOverride(): void\n {\n // HAVING exception handler configured to use user provided message string\n $api_code = BaseApiCodes::EX_HTTP_NOT_FOUND();\n $http_code = HttpResponse::HTTP_SERVICE_UNAVAILABLE;\n $msg_key = Generator::getRandomString('key');\n $cfg = [\n 'map' => [\n 'default' => [\n 'api_code' => $api_code,\n 'http_code' => $http_code,\n 'msg_key' => $msg_key,\n 'msg_force' => true,\n ],\n ],\n ];\n Config::set(RB::CONF_KEY_EXCEPTION_HANDLER, $cfg);\n\n // GIVEN exception that should be handled\n $ex = new \\RuntimeException('this message should be ignored');\n\n /** @var HttpResponse $http_response */\n $http_response = Lockpick::call(ExceptionHandlerHelper::class, 'error', [\n $ex,\n $api_code,\n $http_code,\n $msg_key,\n ]\n );\n\n $api = ApiResponse::fromJson($this->getResponseContent($http_response));\n\n // however thre's no message matching $msg_key, but Lang::get() would return\n // the key if no string exists, which is sufficient\n $this->assertEquals($msg_key, $api->getMessage());\n\n $this->assertEquals($http_code, $http_response->getStatusCode());\n $this->assertEquals($api_code, $api->getCode());\n }", "title": "" }, { "docid": "9c53584d24b2f1b2949c0913e07e6746", "score": "0.5118046", "text": "public function respondWhenBadMethod()\n {\n return $this->respondWithError(12);\n }", "title": "" }, { "docid": "de68450076de6af2d64000facc55f106", "score": "0.5115591", "text": "private function bodyAsErrorMessage()\n {\n $body = (string)$this->result->getBody();\n if ($this->errorMessage === SDK::RESPONSE_EMPTY && $body) {\n $this->errorMessage = $body;\n }\n }", "title": "" }, { "docid": "c677c44f85e7dbd065e9736b35444709", "score": "0.51129603", "text": "public function fails()\n\t{\n\t\treturn $this->invalid();\n\t}", "title": "" }, { "docid": "35e134ffc9b9abdcc23005be62da85d8", "score": "0.51059765", "text": "function JpGraphErrObject() {\n }", "title": "" }, { "docid": "fb4d26a154b12238ad6027618619ce0b", "score": "0.5104563", "text": "function __call($name, $arguments)\n\t\t{\n//---if were calling unknown method throw an exception\n\t\ttry\n\t\t\t{\n\t\t\tthrow new Error(ERROR_VIEW_URL.$name);\n\t\t\t}\n\t\tcatch (Error $e)\n\t\t\t{\n\t\t\t$e->Error();\n\t\t\t}\t\n\t\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "dac4f757d150076b76055f65b8325de5", "score": "0.0", "text": "public function run()\n {\n $list = [\n [\n 'name' => 'Bachiller',\n 'short' => 'Bach.',\n ], [\n 'name' => 'Licenciado',\n 'short' => 'Lic.',\n ], [\n 'name' => 'Magister',\n 'short' => 'Msg.',\n ], [\n 'name' => 'Doctor',\n 'short' => 'Dr.',\n ], [\n 'name' => 'Doctor en Filosofía', // No es un grado academico\n 'short' => 'Ph.D.',\n ],\n ];\n\n foreach ($list as $degree) {\n Degree::factory()->create($degree);\n }\n }", "title": "" } ]
[ { "docid": "5a2cd3aba17d761d018ca18fe576b099", "score": "0.8065376", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding book category\n */\n DB::table('book_category')->insert([\n ['name' => 'Novel'],\n ['name' => 'Non-Fiction'],\n ['name' => 'Fiction'],\n ['name' => 'Comic'],\n ['name' => 'Biography'],\n ['name' => 'Kids'],\n ]);\n /**\n * Make Admin Account\n */\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin')\n ]);\n }", "title": "" }, { "docid": "11f457d79f8912cc87ec2d4e53032d61", "score": "0.7992732", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // user type\n $names = ['Admin', 'Member', 'Seller'];\n foreach($names as $n){\n DB::table('user_types')->insert([\n 'id' => Str::random(5),\n 'name' => $n\n ]);\n }\n\n // Category\n $categories = ['Electronic', 'Furniture', 'Cosmetics','Clothes','Sport'];\n // 1 2 3 4 5\n $i = 1;\n foreach($categories as $cat){\n DB::table('categories')->insert([\n 'id' => $i,\n 'name' => $cat\n ]); \n $i++;\n }\n\n\n // city\n $cities = ['Phnom Penh', 'Siem Reap', 'Kampong Thom','Kampong Cham','Kampot'];\n foreach($cities as $city){\n DB::table('cities')->insert([\n 'id' => Str::random(5),\n 'name' => $city\n ]); \n }\n }", "title": "" }, { "docid": "543a8d6019d0da6404b53619bcfcf539", "score": "0.79456615", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n //App\\Category::truncate();\n //App\\Todo::truncate();\n App\\User::query()->delete();\n\n $faker = \\Faker\\Factory::create();\n\n $password = Hash::make('toptal');\n $user = App\\User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => $password,\n ]); \n\n \n for ($i = 1; $i <= 3; $i++) {\n $cat = App\\Category::create([\n 'category' => 'Cat_'.$i,\n 'user_id' => $user->id\n ]);\n // And now, let's create a few todos in our database:\n for ($a = 1; $a <= 3; $a++) {\n $due = ($a * 10) - $i;\n $duestring = ($due < 10) ? '2018-08-0'.$due : '2018-08-'.$due;\n App\\Todo::create([\n 'todo' => $faker->sentence,\n 'category_id' => $cat->id,\n 'user_id' => $user->id,\n 'due' => $duestring\n ]);\n }\n }\n }", "title": "" }, { "docid": "e0c3d828ba1bff35183042b29039c593", "score": "0.79318094", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $movies = [\n ['title' => 'Zielona mila', 'alt' => 'Zielona mila poster', 'director_id' => 1],\n ['title' => 'Skazani na Shawshank', 'alt' => 'Skazani na Shawshank poster', 'director_id' => 1],\n ['title' => 'Forrest Gump', 'alt' => 'Forrest Gump poster', 'director_id' => 2],\n ['title' => 'Leon Zawodowiec', 'alt' => 'Leon Zawodowiec poster', 'director_id' => 3],\n ['title' => 'Matrix', 'alt' => 'Matrix poster', 'director_id' => 4]\n ];\n\n $directors = [\n ['name' => 'Frank Darabont'],\n ['name' => 'Robert Zemeckis'],\n ['name' => 'Luc Besson'],\n ['name' => 'Lilly Wachowski']\n ];\n\n DB::table('directors')->insert($directors);\n\n DB::table('movies')->insert($movies);\n }", "title": "" }, { "docid": "15d92bee78a2cd733cb39a2ac034c784", "score": "0.79141736", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $user = new User();\n\t\t$user->name = 'Admin';\n\t\t$user->email = '[email protected]';\n\t\t$user->password = Hash::make( '1234' );\n\t\t$user->is_admin = true;\n $user->save();\n\n for ( $i = 1; $i <= 7; $i ++ ) {\n\n $users = new User();\n $users->name = 'user'.$i;\n $users->email = '$user'.$i.'@local.com';\n $users->password = Hash::make( '1234' );\n $users->is_admin = false;\n $users->save();\n \n }\n \n $faker = Faker\\Factory::create();\n\n for ( $i = 1; $i <= 7; $i ++ ) {\n\n $prod = new Product();\n $prod->prodname = 'Product'.$i;\n $prod->description = str_random(20);\n $prod->price = $faker->randomDigit;\n $prod->cateid = rand(1, 3);\n $prod->picture = $faker->imageUrl($width = 200, $height = 200);\n $prod->save();\n \n }\n\n for ( $i = 1; $i <= 3; $i ++ ) {\n \n $cate = new Category();\n $cate->catename = 'Cate'.$i;\n $cate->save();\n \n }\n\n }", "title": "" }, { "docid": "b600ed0e4e2d7dc9e74a5a10fb23bc64", "score": "0.79065317", "text": "public function run()\n {\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\App\\Models\\Article::truncate();\n \\App\\Models\\Article::unguard();\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\n $faker = \\Faker\\Factory::create();\n\n \\App\\Models\\User::all()->each(function ($user) use ($faker) {\n foreach (range(1, 5) as $i) {\n \\App\\Models\\Article::create([\n 'user_id' => $user->id,\n 'title' => $faker->sentence,\n 'content' => $faker->paragraphs(3, true),\n ]);\n }\n });\n }", "title": "" }, { "docid": "7aedb5fc5c60c181268cae1cf284de8f", "score": "0.79059935", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n \t'id' => '1',\n 'name' => 'Administrator',\n 'password' => Hash::make('admin'),\n 'email' => '[email protected]',\n 'admin' => '1',\n 'aktif' => 'y'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '1',\n \t'name' => 'Sayur'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '2',\n \t'name' => 'Plastik'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '3',\n \t'name' => 'Buah'\n \t]);\n\n DB::table('kategori')->insert([\n \t'id' => '1',\n \t'nama' => 'Kubis',\n \t'satuan' => 'Kg',\n \t'kat' => 'Sayur',\n \t'qty' => '1',\n \t'tipe_a' => '15.000',\n 'tipe_b' => '16.000',\n 'tipe_c' => '17.000'\n \t]);\n }", "title": "" }, { "docid": "a662dc08480b90008afb88c03521a6d6", "score": "0.79023117", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('roles')->insert([\n 'name' => 'Administrador',\n ],\n [\n 'name' => 'Profesor' ,\n ]);\n\n DB::table('categories')->insert([\n 'name' => 'Nombrado',\n 'hours' => 35,\n ],\n [\n 'name' => 'No nombrado',\n 'hours' => 20,\n ]);\n\n DB::table('faculties')->insert([\n 'name' => 'Sistemas e informática',\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Administrador',\n 'email' => '[email protected]',\n 'role_id' => 1,\n 'password' => bcrypt('12345678')\n ]);\n\n DB::table('schools')->insert([\n 'name' => 'Ingenieria de sistemas',\n 'faculty_id' => 1,\n ],\n [\n 'name' => 'Ingenieria de software',\n 'faculty_id' => 1\n ]);\n }", "title": "" }, { "docid": "e6499609f9cf3766274c709b6c8f42a6", "score": "0.78937787", "text": "public function run()\n {\n factory(\\App\\Models\\Tag::class, 50)->create();\n factory(\\App\\Models\\Category::class, 10)->create();\n factory(\\App\\Models\\User::class)->create(['role_id' => 1, 'email' => '[email protected]']);\n factory(\\App\\Models\\User::class, 10)->create();\n// $this->call([\n// UsersTableSeeder::class,\n// TagsCategoriesSeeder::class,\n// ]);\n }", "title": "" }, { "docid": "8e4192e71767c2fd3d0d320b2ee1d9da", "score": "0.78887534", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n $items = [];\n for ($i = 0; $i < config('seed.thematicsCount'); $i++) {\n $items[] = [\n 'name' => 'thematic ' . $faker->word,\n 'status' => rand(0, 1),\n 'user_id' => rand(1, config('seed.usersCount')),\n 'created_at' => \\Illuminate\\Support\\Carbon::now()->toDateTimeString(),\n 'updated_at' => \\Illuminate\\Support\\Carbon::now()->toDateTimeString(),\n ];\n }\n DB::table('thematics')->insert($items);\n }", "title": "" }, { "docid": "6806e0ae39a39e44f8d5c7a7bc531473", "score": "0.78880966", "text": "public function run()\n {\n // Volver migraciones atras y rellenar tablas\n // php artisan migrate:refresh --seed\n \n // Rellenar poco a poco\n // php artisan db:seed\n \n //$this->call(UsersTableSeeder::class);\n $this->call([\n UsersTableSeeder::class,\n WorksTableSeeder::class,\n SkillsTableSeeder::class,\n MiniSkillsTableSeeder::class,\n ArticlesTableSeeder::class,\n ContactsTableSeeder::class,\n ]);\n \n \n factory(User::class, 1000)->create();\n factory(Skill::class, 30)->create();\n factory(MiniSkill::class, 30)->create();\n factory(Work::class, 15)->create();\n factory(Article::class, 30)->create();\n }", "title": "" }, { "docid": "80d98ce7df32bc368406cbd8149fe780", "score": "0.78794247", "text": "public function run()\n {\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n AudioFile::truncate();\n Project::truncate();\n Track::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n factory(Project::class, 10)->create();\n\n $projects = Project::all()->pluck('id')->toArray();\n foreach(range(1,50) as $index){\n $track = Track::create([\n 'name' => $faker->catchPhrase,\n 'slug' => $faker->slug,\n 'user_id' => factory(App\\User::class)->create()->id,\n 'project_id' => $faker->randomElement($projects),\n ]);\n\n $hash = $faker->md5;\n\n $file = AudioFile::create([\n 'filename' => $faker->randomDigit . '_' . $hash . '.mp3',\n 'hash' => $hash,\n 'track_id' => $track->id,\n ]);\n }\n // $this->call(UserTableSeeder::class);\n\n }", "title": "" }, { "docid": "d54ffbd639a44d52588ca943525e66b9", "score": "0.7878056", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \n foreach (range(1, 10) as $index) {\n DB::table('products')->insert([\n 'sku' => $faker->unique()->md5,\n 'Name' => $faker->word,\n 'price' => $faker->numberBetween($min = 1, $max = 1000),\n 'description' => $faker->text,\n 'Category' => $faker->word,\n 'UnitsInStock' => $faker->numberBetween($min = 1, $max = 50),\n ]);\n }\n }", "title": "" }, { "docid": "a83416f4b4e97e515ca58d755fe3dacf", "score": "0.78747964", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n factory(User::class,200)->create();\n factory(Category::class,50)->create();\n factory(Product::class,200)->create()->each(function ($producto){\n // obtiene las categorias y selecciona el id de 5,\n $categories=Category::all()->random(mt_rand(1,5))->pluck('id');\n // categories del modelo\n $producto->categories()->attach($categories);\n });\n factory(Transaction::class,100)->create();\n }", "title": "" }, { "docid": "8f92cdb4a527f7ab60d4f39736095d4e", "score": "0.7874296", "text": "public function run()\n {\n // Disable foreign key checks!\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n /*\n * Category Seed\n * ------------------\n */\n // DB::table('categories')->truncate();\n factory(Category::class, 5)->create();\n\n /*\n * Tags Seed\n * ------------------\n */\n // DB::table('post_tag')->truncate();\n // DB::table('tags')->truncate();\n factory(Tag::class, 10)->create();\n $tags = Tag::all();\n\n /*\n * Posts Seed\n * ------------------\n */\n // DB::table('posts')->truncate();\n\n // Populate the pivot table\n factory(Post::class, 25)->create()->each(function ($post) use ($tags) {\n $post->tags()->attach(\n $tags->random(rand(1, 3))->pluck('id')->toArray()\n );\n });\n\n // Artisan::call('auth:permission', [\n // 'name' => 'posts',\n // ]);\n // Artisan::call('auth:permission', [\n // 'name' => 'categories',\n // ]);\n // Artisan::call('auth:permission', [\n // 'name' => 'tags',\n // ]);\n\n // Enable foreign key checks!\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "1055ad608b2a3d954d872c571d31b65e", "score": "0.786034", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('users')-> insert([\n 'name' => 'Mulkis',\n 'email' => '[email protected]',\n 'password' => Hash::make('uoj'),\n ]);\n\n $faker = Faker::create();\n $authors = 10;\n $publishers = 10;\n $books = 100;\n \n foreach (range(1, $authors) as $_) {\n DB::table('authors')-> insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n 'portrait' => $faker->imageUrl(180, 340),\n ]);\n }\n foreach (range(1, $publishers) as $_) {\n DB::table('publishers')-> insert([\n 'title' => $faker->company(),\n ]);\n }\n foreach (range(1, $books) as $_) {\n DB::table('books')-> insert([\n 'title' => str_replace(['.', \"'\", '\"', '`', '(', ')'], '',$faker->realText(rand(10, 64))),\n 'isbn' => $faker->isbn10(),\n 'pages' => rand(12, 1499),\n 'about' => $faker->realText(300, 4),\n 'author_id' => rand(1, $authors),\n 'publisher_id' => rand(1, $publishers),\n ]);\n }\n }", "title": "" }, { "docid": "caac1c1fa998259212e976ca6479e7e9", "score": "0.7859339", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('statuses')->insert([\n \t['name' => 'Новый'],\n \t['name' => 'Ожидает оплаты'],\n \t['name' => 'Оплачен']\n ]);\n DB::table('products')->insert([\n \t['name' => 'Книга', 'price' => 100],\n \t['name' => 'Стол', 'price' => 150],\n \t['name' => 'Ручка', 'price' => 10],\n \t['name' => 'Карандаш', 'price' => 15],\n \t['name' => 'Линейка', 'price' => 25],\n \t['name' => 'Тетрадь', 'price' => 30]\n ]);\n }", "title": "" }, { "docid": "187405472e72053a0e5f31b6c0f357bf", "score": "0.7858601", "text": "public function run()\n {\n $this->call([\n //CountriesSeeder::class,\n //StatesSeeder::class,\n //CitiesSeeder::class,\n ActivitiesSeeder::class,\n ApisSeeder::class,\n RolesSeeder::class,\n UsersSeeder::class,\n CategoriesSeeder::class,\n ProductsSeeder::class, \n ]);\n \n \n // Product::factory()->count(20)->create();\n // Category::factory()->count(5)->create();\n \n // $categories = Category::all();\n \n // Product::all()->each(function($product) use ($categories) {\n // $product->categories()->attach(\n // $categories->random(2)->pluck('id')->toArray()\n // );\n // });\n \n }", "title": "" }, { "docid": "a73c57e191e7317e44fec250f1761bfd", "score": "0.78535104", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Category::class,10)->create();\n factory(Product::class,200)->create();\n factory(Review::class,500)->create();\n }", "title": "" }, { "docid": "9219ade5602125c3663c190c51c52a34", "score": "0.78439575", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Role::create(['name' => 'Admin']);\n Role::create(['name' => 'Manager']);\n Role::create(['name' => 'Editor']);\n\n $user = User::create([\n 'role_id' => 1,\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n $user = User::create([\n 'role_id' => 2,\n 'name' => 'Manager',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n $user = User::create([\n 'role_id' => 3,\n 'name' => 'Editor',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n for($i=1; $i<=10; $i++){\n Post::create([\n 'user_id' => rand(1,3),\n 'title'=> str_random(10),\n 'post_text' => str_random(200)\n ]);\n }\n\n // $user->roles()->attach(1, ['approved' => 1]);\n // $user->roles()->attach(2);\n\n // foreach($user->approvedRoles as $role){\n // //info($role->name . '(time: ' . $role->pivot->created_at . ', approved: '. $role->pivot->approved . ')');\n // info($role->name);\n // }\n\n factory(Author::class, 50)->create();\n factory(Book::class, 100)->create();\n }", "title": "" }, { "docid": "b3ff8caf8eab3866fb6b144f366dbcb0", "score": "0.7841588", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n \n // for($i=0;$i<100;$i++){\n // DB::table('news')->insert([\n // 'name' => Str::random(10),\n // 'title' => Str::random(10),\n // 'photo' => Str::random(10),\n // 'content'=>'This is paragraph' \n // ]);\n // }\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('Admin123'),\n 'isAdmin' => '1',\n 'isPremium' => '1'\n ]);\n }", "title": "" }, { "docid": "ff1b418e1d7040c23abe580ce94a5a3d", "score": "0.78405744", "text": "public function run()\n {\n $this->call(SettingsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n\n Product::factory(50)->create();\n Cart::factory(15)->create();\n CartItem::factory(13)->create();\n Order::factory(15)->create();\n OrderItem::factory(15)->create();\n\n }", "title": "" }, { "docid": "29eca3fbda4bb9727a856b9f84828e78", "score": "0.7839851", "text": "public function run()\n {\n //seed api_user table\n factory(App\\ApiUser::class, 1)->create();\n\n //seed tag table\n factory(App\\Tag::class, 10)->create();\n\n //seed user table\n factory(App\\User::class, 10)->create()->each(function ($user) {\n //seed question table\n $questionCount = rand(10, 50);\n factory(App\\Question::class, $questionCount)->create(['user_id'=>$user->id])->each(function ($question) use ($user){\n //seed answer table\n $answerCount = rand(0, 10);\n factory(App\\Answer::class, $answerCount)->create(['question_id' => $question->id, 'user_id' => $user->id]);\n });\n });\n\n //seed question_tag pivot table\n $tags = App\\Tag::all();\n App\\Question::all()->each(function ($question) use ($tags) {\n $question->tags()->attach(\n $tags->random(rand(1, 5))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "b2efef38eb3df86e0d3d9f1cd22c5c87", "score": "0.7836786", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 3)->create();\n Topic::create(['name'=>'References','slug'=>'references']);\n Topic::create(['name'=>'Tutorial','slug'=>'tutorial']);\n Topic::create(['name'=>'Usefull Links','slug'=>'links']);\n\n factory(Post::class, 20)->create();\n }", "title": "" }, { "docid": "2f81096f97f8a259aea26be9d695e84e", "score": "0.78322875", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n factory(App\\Tag::class, 30)->create();\n factory(App\\Category::class, 10)->create();\n factory(App\\Post::class, 50)->create();\n factory(App\\subscriber::class, 50)->create();\n factory(App\\PostTag::class, 200)->create();\n factory(App\\PostCategory::class, 50)->create();\n factory(App\\ParentCategory::class, 10)->create();\n factory(App\\ChildCategory::class, 10)->create();\n \n }", "title": "" }, { "docid": "353a1d9192ac2ee05dd43ba589fef572", "score": "0.7830354", "text": "public function run()\n {\n $this->call([RolesTableSeeder::class,DishTypesTableSeeder::class,IngredientSampleTableSeeder::class]);\n \n factory(App\\User::class, 5)->create()\n ->each(function($item){\n $item->mealBook()->saveMany(factory(App\\MealBook::class,rand(1,10))->make());\n $item->cookingRecipe()->saveMany(factory(App\\CookingRecipe::class,rand(1,10))->make());\n $item->post()->saveMany(factory(App\\Post::Class,rand(1,10))->make());\n $item->comment()->saveMany(factory(App\\Comment::class,rand(1,20))->make());\n $item->point()->saveMany(factory(App\\Point::class,rand(1,20))->make());\n });\n }", "title": "" }, { "docid": "6cf1729d133b80f0ba4205112d73b5b7", "score": "0.78286344", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t/*Survey::create([\n\t\t\t'title'=>'Encuesta de salida',\n\t\t\t'description'=>'Esta encuesta será aplicada a todos los pacientes'\n\t\t]);*/\n\n\t\t$faker = \\Faker\\Factory::create();\n\t\tforeach(range(1,5) as $index) {\n\t\t\tSurvey::create([\n\t\t\t\t'title'=>$faker->sentence(10),\n\t\t\t\t'description'=>$faker->sentence(40)\n\t\t\t]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "58deeaabeebb62de3e978537814ab4e3", "score": "0.7827373", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Restaurant::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n Restaurant::create([\n 'google_places_id' => $faker->sha256,\n 'yelp_id' => $faker->sha256,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "322840873bcbb30c449f9f96a377723e", "score": "0.7821602", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Role::truncate();\n User::truncate();\n Profile::truncate();\n\n $this->call(RoleSeeder::class);\n\n $roles = ['admin', 'author', 'editor', 'employee'];\n //for Admin\n $admin = factory(User::class)->create([\n 'first_name' => 'Admin',\n 'last_name' => '',\n 'email' => '[email protected]',\n ]);\n $admin->assignRoles($roles);\n\n $admin->profile()->create([\n 'dob' => '1994-09-25',\n 'gender' => 1,\n 'address' => 'Mirpur 1, Dhaka Bangladesh',\n ]);\n\n $users = factory(User::class, 50)->create();\n\n $users->each(function ($user) use ($roles) {\n factory(Profile::class)->create(['user_id'=> $user->id]);\n $user->roles()->sync(mt_rand(2,4));\n });\n }", "title": "" }, { "docid": "02e74cf1e122f3a2c37d634a29cdfc31", "score": "0.78150123", "text": "public function run()\n {\n Category::factory(10)->create();\n $tags = Tag::factory(20)->create();\n $posts = Post::factory(100)->create();\n\n foreach ($posts as $post)\n {\n $tagsIds = $tags->random(5)->pluck('id');\n $post->tags()->attach($tagsIds);\n }\n\n Role::insert([\n ['name' => 'user'],\n ['name' => 'manager'],\n ['name' => 'admin'],\n ]);\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'role' => '3',\n 'password' => Hash::make('11223344'),\n ]);\n }", "title": "" }, { "docid": "6960da9ec4442edcbfd113533d6ef120", "score": "0.781237", "text": "public function run()\n {\n $this->call([CategorySeeder::class]);\n \\App\\Models\\User::factory([\n 'email' => '[email protected]',\n ])->create();\n \\App\\Models\\User::factory(2)->create();\n \\App\\Models\\Topic::factory(40)->create();\n \\App\\Models\\Answer::factory(150)->create();\n }", "title": "" }, { "docid": "f864816e80b0e7603a1e8ae5700c57a6", "score": "0.7807138", "text": "public function run()\n {\n// $this->call(UsersTableSeeder::class);\n factory(App\\Country::class, 5)->create();\n factory(App\\Member::class, 10)->create();\n\n foreach ($this->items() as $item) {\n Category::create($item);\n }\n\n factory(App\\Category_movie::class, 10)->create();\n// factory(App\\Movie::class, 10)->create();\n factory(App\\Rank::class, 10)->create();\n\n }", "title": "" }, { "docid": "5157c9e6f7445f30d17910d0f9167d7e", "score": "0.7806952", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // $faker = Faker;\n // factory(App\\User::class, 50)->create()->each(function ($user) {\n // factory(App\\Tema::class, 150)->create()->each(function($tema, Faker $faker){\n // $tema->user_id = $user->id;\n // $tema->nombre = $faker->title();\n // $tema->descripcion = $faker->paragraph(100);\n\n // $tema->save();\n\n // });\n // });\n\n\n factory(App\\User::class, 50)->create();\n factory(App\\Tema::class, 6)->create();\n factory(App\\Pregunta::class, 200)->create();\n factory(App\\Respuesta::class, 500)->create();\n\n }", "title": "" }, { "docid": "c888a724a89893fc16eaf9b1e5cf4dee", "score": "0.7804738", "text": "public function run()\n {\n User::truncate();\n Project::truncate();\n\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 50)->create();\n factory(Project::class, 50)->create();\n }", "title": "" }, { "docid": "74e6046c336e626f913a122d01772dbf", "score": "0.7803743", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Harry Selkirk',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n ]);\n \n factory(App\\User::class, 15)->create()->each(function($u) {\n $u->posts()\n ->saveMany(factory(App\\Post::class, rand(1,10))->make())\n ->each(function($post){\n $post->tags()->saveMany(factory(App\\PostTag::class, rand(0, 5))->make());\n $post->comments()->saveMany(factory(App\\Comment::class, rand(3, 15))->make());\n });\n });\n // $this->call(UsersTableSeeder::class);\n // $this->call(PostsTableSeeder::class);\n }", "title": "" }, { "docid": "3773026723bc4e3d2f6d992aad9feeb4", "score": "0.77933013", "text": "public function run()\n {\n Book::create([\n 'id' => 1,\n 'name' => 'Rat i mir',\n 'author_id' => 1\n ]);\n\n Book::create([\n 'id' => 2,\n 'name' => 'Na Drini cuprija',\n 'author_id' => 1\n ]);\n\n Book::create([\n 'id' => 3,\n 'name' => 'Poezija',\n 'author_id' => 2\n ]);\n Book::create([\n 'id' => 4,\n 'name' => 'Bleja na brdu',\n 'author_id' => 2\n ]);\n\n Book::create([\n 'id' => 5,\n 'name' => 'Put do kuce',\n 'author_id' => 2\n ]);\n }", "title": "" }, { "docid": "8645d58ad69c417ec234c3b092223da5", "score": "0.7784692", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Nokib',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin@123'),\n ]);\n\n DB::table('settings')->insert([\n 'company_name' => 'Test Company',\n 'company_address' => 'ABC, House #5, Road #10',\n 'company_city' => 'Uttara, Dhaka',\n 'phone' => '000000000',\n 'email' => '[email protected]',\n 'invoice_prefix' => '#INV',\n ]);\n\n DB::table('customers')->insert([\n 'name' => 'Walk-in Customer',\n 'mobile' => '0000000000',\n ]);\n }", "title": "" }, { "docid": "18a4acc45dd7538fb4ee59fb3e9a3fa1", "score": "0.7784293", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(User::class, 10)->create();\n // factory(Titulo::class, 25)->create();\n factory(Interes::class, 20)->create();\n }", "title": "" }, { "docid": "87a95114b3ac984335a7c632d8f42616", "score": "0.7778835", "text": "public function run()\n {\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // First, clear tables\n DB::table('users')->truncate();\n DB::table('roles')->truncate();\n DB::table('divisions')->truncate();\n DB::table('sports')->truncate();\n// DB::table('stadia')->truncate();\n// DB::table('athletes')->truncate();\n// DB::table('teams')->truncate();\n// DB::table('seasons')->truncate();\n// DB::table('championships')->truncate();\n// DB::table('matchdays')->truncate();\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(DivisionsTableSeeder::class);\n $this->call(SportsTableSeeder::class);\n\n// factory(App\\Athlete::class, 50)->create();\n// factory(App\\Stadium::class, 50)->create();\n// factory(App\\Team::class, 50)->create();\n// factory(App\\Matchday::class, 20)->create();\n }", "title": "" }, { "docid": "b2cbffda63d1ab3314805039a3f745c2", "score": "0.77745605", "text": "public function run()\n {\n // add the faker for creating the seeder\n // Truncate the table \n Article::truncate();\n \n $faker = \\Faker\\Factory::create();\n\n // loop through the \n for($i=0;$i<=100;$i++){\n // create the instance\n Article::create([\n \"title\" => $faker->sentence,\n \"body\" => $faker->paragraph\n ]);\n }\n }", "title": "" }, { "docid": "76470a80c7aaebd7837c5c0687a0a745", "score": "0.7771726", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Product::truncate();\n Category::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Product::flushEventListeners();\n Category::flushEventListeners();\n Transaction::flushEventListeners();\n\n $this->call(RoleSeeder::class);\n\n User::factory(100)->create();\n\n $productos = Product::factory(300)->create();\n Transaction::factory(200)->create();\n Category::factory(30)->create();\n\n foreach($productos as $producto){\n $producto->categories()->attach(\n rand(1,5)\n );\n } \n \n \n }", "title": "" }, { "docid": "3c4ecec7d95903372a3612473f7d28ae", "score": "0.7769814", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n $this->call(VideoCategorySeeder::class);\n\n $users = factory(App\\Models\\User::class, 10)->create();\n\n foreach ($users as $user) {\n $user->assign('user');\n }\n $trainingContent = factory(App\\Models\\TrainingContent::class, 100)->create();\n }", "title": "" }, { "docid": "0c36bf7d012f016fd62ff407dca131fc", "score": "0.7768416", "text": "public function run()\n {\n// $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Category::truncate();\n Post::truncate();\n Tag::truncate();\n Forum::truncate();\n\n factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n ]);\n\n factory(User::class)->create([\n 'name' => 'User',\n 'email' => '[email protected]',\n ]);\n\n factory(Category::class, 5)->create();\n factory(Post::class, 15)->create();\n factory(Tag::class, 50)->create();\n factory(Forum::class, 15)->create();\n }", "title": "" }, { "docid": "8f5b2b13145d60ef4c64e80ad859c8c0", "score": "0.77621996", "text": "public function run()\n {\n\n $this->call([\n RoleSeeder::class,\n CategoriesSeeder::class\n ]);\n\n factory(App\\User::class, 150)->create();\n factory(App\\Portfolio::class, 150)->create();\n factory(App\\Project::class, 150)->create();\n factory(App\\Transaction::class, 1000)->create();\n // factory(App\\Message::class, 100)->create();\n factory(App\\Rate::class, 1000)->create();\n\n $this->call([\n SkillsSeeder::class,\n portfolio_tagSeeder::class,\n tag_userSeeder::class,\n PortfolioImageSeeder::class,\n ProjectAttachmentSeeder::class,\n ProjectOfferSeeder::class,\n project_tagSeeder::class,\n adminUserSeeder::class\n ]);\n\n\n }", "title": "" }, { "docid": "ced000ec376a75849db5549df35c6236", "score": "0.77621984", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('users')->delete();\n \n $users = array(\n ['id' => 1, 'name' => 'navi', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['id' => 2, 'name' => 'john', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['id' => 3, 'name' => 'tom', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n );\n \n // Uncomment the below to run the seeder\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "5f854a27580e06e10dc4b25277a11e57", "score": "0.77609193", "text": "public function run()\n {\n $genres=['action','horror','drama','triler','comedy','romance'];\n foreach ($genres as $genre) {\n Genre::create(['name'=>$genre]);\n }\n $this->call(UsersTableSeeder::class);\n $this->call(MovieTableSeeder::class);\n \n\n\n }", "title": "" }, { "docid": "f5247262479a26f9216251d08dd24cf7", "score": "0.7758224", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n usuaris::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n usuaris::create([\n 'idusuari' => $faker->shuffle(array(1,2,3,4,5,6,7,8,9,10)),\n 'nom' => $faker->name,\n 'descripcio' => $faker->text($maxNbChars = 200),\n 'DataNaixement' => $faker->date,\n 'correu_electronic' => $faker->freeEmail,\n 'telefon' => $faker->phoneNumber,\n 'data_alta' => $faker->date,\n 'data_baixa' => $faker->date,\n 'rol' => $faker->word,\n 'password' => $faker->name,\n ]);\n }\n }", "title": "" }, { "docid": "a31eec437c3c359c0350e5dd29d66e98", "score": "0.7757912", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Item::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($j=1; $j < 4; $j++) { \n for ($i = 0; $i < 10; $i++) {\n Item::create([\n 'title' => 'Item-'.$j.'.'.($i+1),\n 'description' => $faker->text,\n 'index' => $i,\n 'expire_date' => date( \"Y-m-d\", strtotime( date('Y-m-d').\" +1 day\" ) ),\n 'list_id' => $j,\n ]);\n }\n }\n }", "title": "" }, { "docid": "95d848af3bfe57106748ced287b6a3a6", "score": "0.7757277", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 10)->create();\n factory(Category::class, 10)->create();\n factory(Subcategory::class, 20)->create();\n factory(Country::class, 4)->create();\n factory(City::class, 20)->create();\n factory(Annonce::class, 50)->create();\n factory(Image::class, 150)->create();\n factory(Profil::class, 10)->create();\n factory(Like::class, 15)->create();\n factory(Message::class, 130)->create();\n }", "title": "" }, { "docid": "0fadad943f810e9f816dff85d7fcc82f", "score": "0.7754066", "text": "public function run()\n {\n // Truncate existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Room::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // Create Rooms in our database:\n for ($i = 1; $i < 11; $i++) {\n Room::create([\n 'hotel_id' => Hotel::all()->random()->id,\n 'room_name' => $faker->text,\n 'room_type' => RoomType::all()->random()->id,\n 'image' => $faker->Image,\n ]);\n }\n }", "title": "" }, { "docid": "a52e2d935fe1a6f1552b319437199638", "score": "0.7753583", "text": "public function run()\n\t{\n\t\t//\n\t\t// Let's truncate our existing records to start from scratch.\n\t\tUserRole::truncate();\n\t\t\n\t\t$faker = \\Faker\\Factory::create();\n\t\t\n\t\t// And now, let's create a few articles in our database:\n\t\t\n\t\t$userRoles = [\n\t\t\t[\n\t\t\t\t'role' => 'admin',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'role' => 'employee',\n\t\t\t]\n\t\t\n\t\t];\n\t\t\n\t\t\n\t\tforeach($userRoles as $userRole) {\n\t\t\tUserRole::create([\n\t\t\t\t'role' => $userRole['role'],\n\t\t\t]);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "32ceb87c0b0901a9ca7b03eff203eb22", "score": "0.77495295", "text": "public function run()\n {\n $this->call(CategoriaSeed::class);\n $this->call(UbicacionesSeed::class);\n $this->call(EstadoSeed::class);\n $this->call(RolesSeed::class);\n $this->call(UsuarioSeed::class);\n factory(App\\Models\\Usuario::class, 80)->create();\n factory(App\\Models\\Producto::class, 50)->create();\n $this->call(VentaSeed::class);\n $this->call(CompraSeed::class);\n }", "title": "" }, { "docid": "5987a41e6798b6576c0d4bfd213b111b", "score": "0.7746713", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n App\\User::create([\n 'name' => 'Christian Tambo C',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456')\n ]);\n\n factory(App\\Post::class, 24)->create();\n\n App\\Camara::create([\n 'user_id' => 1,\n 'title' => 'Camara Laptop',\n 'height' => '2 metros',\n 'angle' => '100 grados',\n 'url' => '0',\n 'location' => 'Poste #1, Av.Costanera, La Paz', \n ]);\n App\\Camara::create([\n 'user_id' => 1,\n 'title' => 'Camara IP Celular',\n 'height' => 'Indefinido',\n 'angle' => 'Indefinido',\n 'url' => 'http://192.168.0.8:8080/video',\n 'location' => 'Celular de Christian Tambo', \n ]);\n \n \n\n //factory(App\\Camara::class, 10)->create();\n }", "title": "" }, { "docid": "19da69e4087929e658a5c983a8ae429a", "score": "0.7745691", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// factory(App\\Models\\User::class)->create();\n// factory(App\\Models\\User::class)->create(['email' => '[email protected]']);\n// factory(App\\Models\\Wedding::class, 20)->create();\n// factory(App\\Models\\Vendor::class, 20)->create();\n// factory(App\\Models\\Event::class, 20)->create();\n// factory(App\\Models\\Guest::class, 20)->create();\n// factory(App\\Models\\Profession::class, 5)->create();\n factory(App\\Models\\Product::class, 50)->create();\n }", "title": "" }, { "docid": "47a9ab206264a007fe390308b63644dd", "score": "0.77454555", "text": "public function run()\n {\n App\\User::create(\n [\n 'name' => 'Sid',\n 'email' => '[email protected]',\n 'role' => 'admin',\n 'password' => bcrypt(env('TESTPASS')),\n ]\n );\n\n // vogliamo 10 utenti\n factory(App\\User::class, 9)->create();\n\n\n $users = App\\User::all();\n\n\n $categories = factory(App\\Category::class, 20)->create();\n\n $tags = factory(App\\Tag::class, 40)->create();\n\n foreach ($users as $user) {\n // per ciascun utente vogliamo 15 post\n // ciascun post vogliamo assegnarlo a una categoria random (ESISTENTE)\n $posts = factory(App\\Post::class, 15)->create(\n [\n 'user_id' => $user->id,\n 'category_id' => collect($categories)->random()->id,\n ]\n );\n\n foreach ($posts as $post) {\n // ciascun post vogliamo assegnarlo 3 tags random (ESISTENTI)\n $randomTags = collect($tags)->random(3)->pluck('id')->toArray();\n $post->tags()->sync($randomTags);\n }\n }\n }", "title": "" }, { "docid": "feb2b76432de65887f9c368e7596f7f4", "score": "0.7744374", "text": "public function run()\n {\n //DB::table('products')->truncate();\n\n $discountables = array(\n array('discount_id' => 1, 'discountable_id' => 1, 'discountable_type' => 'Product'),\n array('discount_id' => 2, 'discountable_id' => 2, 'discountable_type' => 'Product'),\n );\n\n // Uncomment the below to run the seeder\n DB::table('discountables')->insert($discountables);\n }", "title": "" }, { "docid": "53418ed70c952b849d800cfb91d5085d", "score": "0.77430356", "text": "public function run()\n {\n // Article::factory(50)->create();\n // User::factory(50)->create();\n $this->call([\n ModelcategoriesTableSeeder::class,\n ArticlesTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "a109b92af084d0529a07b66f6fd4e7aa", "score": "0.77386874", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('games')->insert([['name'=>'God of war','genero'=>'Ação', 'idade_indicativa'=>12,'preco'=> 10.0]]);\n DB::table('animes')->insert([['name'=>'Dragon Ball','genero'=>'Ação', 'idade_indicativa'=>1,'episodios' => 220]]);\n }", "title": "" }, { "docid": "ccbabc0a54dd57b26acab36bce44bc6c", "score": "0.77383316", "text": "public function run()\n {\n DB::table('schedules')->delete();\n $faker = Faker::create();\n echo \"[Seed] Table 'schedules'\\n\";\n foreach(range(1, 65) as $i) { \n Schedule::create([\n 'purpose' => $faker->word,\n 'details' => $faker->text,\n 'doctor' => Doctor::inRandomOrder()->first()->id,\n 'patient' => Patient::inRandomOrder()->first()->id,\n 'created_by' => factory(App\\Models\\User::class)->create()->id,\n 'date' => $faker->dateTimeBetween($startDate = '-6 months', $max = '+2 months'),\n 'time' => $faker->time($format = 'H:00', $max = 'now')\n ]);\n }\n }", "title": "" }, { "docid": "3380c225be4966fa530271b9caadaa76", "score": "0.77340096", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n DB::table('books')->insert([\n 'title' => $faker->sentence,\n 'pages' => rand(100, 200),\n 'price' => rand(100, 200),\n 'id_user' => rand(1, 100)\n ]);\n }\n\n }", "title": "" }, { "docid": "2e2baa34c720ee452aa6d82693a693a0", "score": "0.7733996", "text": "public function run()\n {\n $seeds = [\n [ 'id' => 1, 'name' => \"Meja\", 'price'=> 20],\n [ 'id' => 2, 'name' => \"Almari\", 'price'=> 30],\n [ 'id' => 3, 'name' => \"Kerusi\", 'price'=> 40],\n [ 'id' => 4, 'name' => \"Katil\", 'price'=> 50],\n [ 'id' => 5, 'name' => \"Rak Kasut\", 'price'=> 60], \n ];\n\n foreach($seeds as $seed) {\n DB::table('products')->insert($seed);\n }\n }", "title": "" }, { "docid": "c10d49c6dcff444dde2db0bb9b0596fb", "score": "0.7730497", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /* seed user admin */\n User::create([\n 'username' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n ]);\n\n /* seed category */\n foreach (dummy::categories() as $category) {\n Category::create([\n 'name' => $category\n ]);\n }\n\n /* seed brand */\n foreach (dummy::brands() as $brand) {\n Brand::create([\n 'name' => $brand\n ]);\n }\n\n /* seed color */\n foreach (dummy::colorNames() as $color) {\n Color::create([\n 'color' => $color\n ]);\n }\n\n /* seed size */\n for ($i = 15; $i <= 50; $i++) {\n Size::create([\n 'size' => $i,\n ]);\n }\n\n factory(Customer::class, 100)->create()->each(function ($customer) {\n /* seed address */\n $address = factory(Address::class, 4)->make();\n $customer->addresses()->saveMany($address);\n /* seed order */\n $order = factory(Order::class, 5)->make();\n $customer->orders()->saveMany($order);\n /* seed review */\n $review = factory(Review::class, 10)->make();\n $customer->reviews()->saveMany($review);\n });\n\n factory(Item::class, 200)->create()->each(function ($item) {\n /* seed photo */\n $photo = factory(Photo::class, 3)->make();\n $item->photos()->saveMany($photo);\n });\n /* get all order attaching */\n $order = Order::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($order) {\n $item->orders()->attach(\n $order->random(rand(1, $order->count()))->pluck('id')->toArray()\n );\n });\n /* get all color attaching */\n $color = Color::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($color) {\n $item->colors()->attach(\n $color->random(rand(1, $color->count()))->pluck('id')->toArray()\n );\n });\n /* get all size attaching */\n $size = Size::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($size) {\n $item->sizes()->attach(\n $size->random(rand(1, $size->count()))->pluck('id')->toArray()\n );\n });\n /* get all review attaching */\n $review = Review::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($review) {\n $item->reviews()->attach(\n $review->random(rand(1, $review->count()))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "18840cf61a94ff67d82e77efc8e99af2", "score": "0.7729479", "text": "public function run()\n {\n \t\t// $this->call(UsersTableSeeder::class);\n \t\tfactory(App\\User::class)->times(15)->create();\n\n \t\t$products = factory(App\\Product::class)->times(150)->create();\n \t\t$brands = factory(App\\Brand::class)->times(8)->create();\n \t\t$categories = factory(App\\Category::class)->times(9)->create();\n \t\t$status = factory(App\\Status::class)->times(4)->create();\n\n \t\tforeach ($products as $oneProduct) {\n \t\t\t$oneProduct->brand()->associate($brands->random(1)->first()->id);\n \t\t\t$oneProduct->category()->associate($categories->random(1)->first()->id);\n $oneProduct->status()->associate($status->random(1)->first()->id);\n \t\t\t$oneProduct->save();\n \t\t}\n }", "title": "" }, { "docid": "8617a1987579f9b1ee27802bb9a1f2c9", "score": "0.7724194", "text": "public function run()\n {\n //initialisation de faker\n $faker = \\Faker\\Factory::create();\n\n //tableau vite des categories\n $categories = [];\n\n //boucle creant 10 categories\n for ($i= 0; $i < 10; $i++) {\n $categories[] = [\n 'name' => $faker->sentence(4),\n 'slug' => $faker->slug\n ];\n }\n\n //un tableau initial de post vide\n $posts = [];\n\n //creons 100 posts en bouclant\n for ($i=0; $i < 100; $i++) {\n $timestamp = $faker->unixTime('now');\n $posts[] = [\n 'name' => $faker->sentence(3),\n 'slug' => $faker->slug,\n 'description' => $faker->text(300),\n 'created_at' => date('Y-m-d H:i:s', $timestamp),\n 'updated_at' => date('Y-m-d H:i:s', $timestamp),\n 'category_id' => rand(1, 10)\n ];\n }\n\n //on insert les categories en db\n $this->insert('categories', $categories);\n\n //on insert les posts en db\n $this->insert('posts', $posts);\n }", "title": "" }, { "docid": "5d65069c373876a3bf83601f496d2940", "score": "0.7723117", "text": "public function run()\n {\n $faker = Faker\\Factory::create('fr_FR');\n\n $seeds = [];\n for ($i = 0; $i < 10; $i++) {\n $seeds[] = [\n 'name' => $faker->sentence(rand(1, 4)),\n 'slug' => $faker->slug(4, true),\n 'content' => $faker->paragraph(5, true)\n ];\n }\n\n $this->table('test')->insert($seeds)->saveData();\n }", "title": "" }, { "docid": "1160cd1a533510c8072d65b166365884", "score": "0.77230316", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 20) as $index) {\n DB::table('students')->insert([\n 'name' => $faker->name,\n 'gender' => $faker->randomElement(['m', 'f']),\n 'dept_id' => $faker->randomElement([1, 2, 3, 4])\n ]);\n }\n }", "title": "" }, { "docid": "e2165f654f90d8ca7583b6d1a431e752", "score": "0.7720623", "text": "public function run()\n {\n DB::table('ex_alunos')->delete();\n\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n ExAluno::create([\n 'nome' => strtoupper($faker->name),\n 'matricula' => str_random(20),\n 'cpf' => str_random(11),\n 'email' => $faker->unique()->safeEmail,\n 'password' => bcrypt('123456'),\n 'status' => 1,\n 'sexo' => 'M',\n 'curso_id' => 1\n ]);\n }\n\n $roleAluno = Role::whereName('EX-ALUNO')->first();\n $users = ExAluno::all();\n foreach ($users as $key => $user) {\n $user->setRole($roleAluno);\n }\n }", "title": "" }, { "docid": "bf514d7274a50aace9bdc4eb0f7a37cb", "score": "0.7719297", "text": "public function run()\n {\n $faker = Factory::create('id_ID');\n\n DB::table('users')->insert([\n 'role_id' => 1,\n 'name' => 'Admin',\n 'username' => 'admin',\n 'password' => bcrypt('654321'),\n 'email' => '[email protected]',\n 'about' => 'Hello, this is admin bio',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n\n DB::table('users')->insert([\n 'role_id' => 2,\n 'name' => 'Staff',\n 'username' => 'staff',\n 'password' => bcrypt('123456'),\n 'email' => '[email protected]',\n 'about' => 'Hi, this is staff bio',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n }", "title": "" }, { "docid": "5256d8621255fdb25e62eaaeef3015e9", "score": "0.77190244", "text": "public function run()\n {\n User::truncate();\n Category::truncate();\n Post::truncate();\n\n User::factory()->create([\n 'name' => 'Gattsu Berserk',\n 'username' => 'gattsu',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n\n User::factory(9)->create();\n\n Category::factory(10)->create();\n\n Post::factory(100)->create();\n }", "title": "" }, { "docid": "39303b9168b93ca252d041cc23081eba", "score": "0.77173394", "text": "public function run()\n {\n $faker = Faker::create('ru_RU');\n foreach (range(1,10) as $i) {\n DB::table('authors')->insert([\n 'name' => $faker->firstNameMale,\n 'surname' => $faker->lastName\n ]);\n }\n\n\n $genres = ['драма','боевик','детектив','фантастика','ужасы','история'];\n foreach (range(1,5) as $k => $i) {\n DB::table('genres')->insert([\n 'name' => $genres[$k]\n ]);\n }\n\n $faker = Faker::create('ru_RU');\n foreach (range(1,20) as $i) {\n DB::table('books')->insert([\n 'name' => $faker->jobTitle,\n 'author_id' => $faker->numberBetween($min = 1, $max = 10),\n 'genre_id' => $faker->numberBetween($min = 1, $max = 5),\n 'rating' => $faker->numberBetween($min = 1, $max = 10)\n ]);\n }\n }", "title": "" }, { "docid": "f9fe6e1bc501818e8c5b14df3d2d9e09", "score": "0.77165025", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $divisions = factory(\\App\\Division::class, 5)->create();\n $divisions->each(function ($division) {\n $division\n ->employees()\n ->saveMany(\n factory(App\\Employee::class, rand(1,10))->make()\n );\n });\n\n // Role comes before User seeder here.\n $this->call(RoleTableSeeder::class);\n // User seeder will use the roles above created.\n $this->call(UserTableSeeder::class);\n }", "title": "" }, { "docid": "354da75ca11e7acc09740fdcff92d8f1", "score": "0.77156013", "text": "public function run()\n {\n //Seed some initial users with roles\n $role_student = Role::where('name', 'student')->first();\n $role_teacher = Role::where('name', 'teacher')->first();\n $role_admin = Role::where('name', 'admin')->first();\n //Seed students\n $student = new User();\n $student->name = 'student Name';\n $student->email = '[email protected]';\n $student->password = bcrypt('secret');\n $student->save();\n $student->roles()->attach($role_student);\n //Seed teachers\n $teacher = new User();\n $teacher->name = 'teacher Name';\n $teacher->email = '[email protected]';\n $teacher->password = bcrypt('secret');\n $teacher->save();\n $teacher->roles()->attach($role_teacher);\n //Seed Admin\n $admin = new User();\n $admin->name = 'admin Name';\n $admin->email = '[email protected]';\n $admin->password = bcrypt('secret');\n $admin->save();\n $admin->roles()->attach($role_admin);\n }", "title": "" }, { "docid": "210e8e2e64c261d3e918c70b52d05cc6", "score": "0.7713595", "text": "public function run()\n {\n $this->call(GenreSeeder::class);\n $this->call(ContinentSeeder::class);\n $this->call(EquipeSeeder::class);\n Equipe::factory(20)->create();\n\n $joueurs = 100;\n\n $this->call(RoleSeeder::class);\n Joueur::factory($joueurs)->create(); \n\n Photo::factory($joueurs)->create();\n }", "title": "" }, { "docid": "0f6c53011f6ab5bb11b6068e6d28c755", "score": "0.77127576", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $usuarios= factory(Usuario::class, 25)->create();\n \n foreach ($usuarios as $user){\n $publicaciones= factory(Publicacion::class, rand(0,10))->create(\n ['usuario_id'=>$user->id]);\n \n }\n \n $publicaciones = Publicacion::all();\n \n \n \n foreach ($usuarios as $user){\n $hasta= rand(5,42);\n for($i=0;$i<$hasta;$i++){\n factory(Seguidor::class)->create(\n ['usuario_id'=>$user->id,\n 'publicacion_id'=>rand(1,$publicaciones->count())]); \n }\n \n }\n }", "title": "" }, { "docid": "5d8c781d991c39cee21560f8e0d34f32", "score": "0.7711816", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::create([\n 'name' => 'Demo of GM',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n ]);\n\n Quote::create([\n 'body' => 'In delay there lies no plenty.',\n 'quotee' => 'William Shakespeare'\n ]);\n\n Quote::create([\n 'body' => 'Do anything but let it produce joy.',\n 'quotee' => 'Walt Whitman'\n ]);\n\n Quote::create([\n 'body' => 'Wheresoever you go, go with all your heart.',\n 'quotee' => 'Confucius'\n ]);\n\n Quote::create([\n 'body' => 'In the faces of men and women, I see God',\n 'quotee' => 'Walt Whitman'\n ]);\n\n\n }", "title": "" }, { "docid": "b989d2d24dc84c94605c874d9fc41662", "score": "0.7708211", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory(App\\Model\\Adress::class,3)->create();\n //factory(App\\Model\\Contact::class,9)->create();\n //factory(App\\Model\\Category::class,3)->create();\n\n //factory(App\\Model\\Product::class,30)->create();\n //factory(App\\Model\\ProductImage::class,30)->create();\n //factory(App\\Model\\store::class,1)->create();\n\n factory(App\\Model\\Review::class,100)->create();\n\n\n\n\n\n\n }", "title": "" }, { "docid": "e9c0d0e393079070634613c861afae38", "score": "0.7707709", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CampusesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n\n factory(\\App\\User::class, 5)->create();\n factory(\\App\\Feedback::class, 30)->create();\n factory(\\App\\Comment::class, 60)->create();\n for($i = 2; $i <= 6; $i++) {\n DB::table('user_has_roles')->insert([\n 'role_id' => 2,\n 'user_id' => $i\n ]);\n }\n }", "title": "" }, { "docid": "ad8095e515b037c12537e0e26cd96bda", "score": "0.77054197", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Role::create([\n 'role' => 'Administrator'\n ])->users()->create([\n 'name' => 'Administrator',\n 'surname' => 'Tracking',\n 'phone' => '',\n 'address' => '',\n 'email' => '[email protected]',\n 'password' => '123456'\n ]);\n Role::create([\n 'role' => 'Client'\n ])->users()->create([\n 'name' => 'Cliente',\n 'surname' => 'Tracking',\n 'phone' => '123456789',\n 'address' => 'Calle 1, col Abc, Ciudad, Estado',\n 'email' => '[email protected]',\n 'password' => '123456'\n ]);\n Role::create([\n 'role' => 'Worker'\n ]);\n\n Status::create([\n 'status' => 'Esperando'\n ]);\n Status::create([\n 'status' => 'Reparando'\n ]);\n Status::create([\n 'status' => 'Almacenado'\n ]);\n Status::create([\n 'status' => 'Entregado'\n ]);\n Status::create([\n 'status' => 'Finalizado'\n ]);\n }", "title": "" }, { "docid": "c7fccacf518f86f03865d2d9cfdffffc", "score": "0.77052426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n for($a=0;$a<10;$a++){\n DB::table('professionals')->insert([\n 'name' => 'TuNombre'.($a+1),\n 'lastname' => 'TuApellido'.($a+1),\n 'type' => 'Ingeniero'.($a+1),\n 'qualification' => 1\n ]);\n DB::table('services')->insert([\n 'id_professionals' => ($a+1),\n 'qualification' => 3,\n 'commentary' => 'Soy un Comentario',\n 'month' => ($a+1)\n ]);\n }\n }", "title": "" }, { "docid": "f432bb8e1f614aa638193bf7c40d8b0d", "score": "0.77018327", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $faker = Faker::create();\n $gender = $faker->randomElement(['male', 'female']);\n foreach (range(1, 15) as $index) {\n DB::table('employees')->insert([\n 'name' => $faker->name($gender),\n 'email' => $faker->email\n ]);\n }\n }", "title": "" }, { "docid": "166f652bb040d1504069bc8e0510ba95", "score": "0.7700588", "text": "public function run()\n {\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n DB::table('event_assignments')->truncate();\n\n Assignment::create([\n 'eventId' => 2,\n 'volunteerId' => 2,\n 'startingDate'\t\t => Carbon::now(),\n 'endingDate' => Carbon::now()->addWeeks(2)\n ]);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "ba7c8e49633eb68c7a2b6c8ba05aa3da", "score": "0.76986605", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n DB::table('users')->delete();\n\n $users = array(\n ['name' => 'Saad Hassan', 'email' => '[email protected]', 'mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Chris Sevilleja', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Holly Lloyd', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Adnan Kukic', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n );\n\n // Loop through each user above and create the record for them in the database\n $user = new User();\n $user->name = \"admin\";\n $user->email = \"[email protected]\";\n $user->mobile = \"9560401880\";\n $user->password = Hash::make('password');\n $user->save();\n $user->roles()->attach(1);\n\n foreach ($users as $user)\n {\n User::create($user);\n }\n }", "title": "" }, { "docid": "087fed479872a104a0fe90228724ec30", "score": "0.7697585", "text": "public function run()\n {\n \t//factory(App\\User::class, 20)->create();\n // $this->call(UsersTableSeeder::class);\n //DB::table('badgets')\n // ->insert(['libelle' => 'php']);\n\n DB::table('niveaus')->insert(['niveau' => 'facile']);\n DB::table('niveaus')->insert(['niveau' => 'difficile']);\n DB::table('niveaus')->insert(['niveau' => 'moyenne']);\n }", "title": "" }, { "docid": "b88c095e7f9f5b6ea1684fdb90bc98e7", "score": "0.7696775", "text": "public function run()\n {\n $this->call([\n //SIN LLAVES FORÁNEAS\n EscolaridadeSeeder::class,\n UserSeeder::class,\n //USA LLAVES FORÁNEAS\n ]);\n // \\App\\Models\\User::factory(10)->create();\n Beneficiario::factory(15)->create();\n Jornada::factory(15)->create();\n Notas::factory(30)->create();\n\n \n }", "title": "" }, { "docid": "36e2b8b4e2455f59a63c583df1a391a9", "score": "0.76936", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'lastname' => \"admin\",\n 'firstname' => \"admin\",\n 'group_id' => \"1\",\n 'email' => '[email protected]',\n 'password' => Hash::make('12345'),\n ]);\n DB::table('user_groups')->insert([\n 'name' => \"admin\",\n 'status' => \"1\",\n\n ]);\n DB::table('user_groups')->insert([\n 'name' => \"customer\",\n 'status' => \"0\",\n\n ]);\n DB::table('introduces')->insert([\n 'title' => 'This is introduce about my team',\n 'summary' => 'This is summary about my team',\n 'image' => 'upload/debug_team.jpg',\n 'content' => 'This is content about my team',\n 'slug' => Str::slug('This is introduce about my team', '-')\n ]);\n\n //price ticker\n DB::table('price_tickets')->insert([\n 'name' => \"Người lớn\",\n 'price' => \"60000\",\n\n ]);\n DB::table('price_tickets')->insert([\n 'name' => \"Trẻ em\",\n 'price' => \"30000\",\n\n ]);\n DB::table('price_tickets')->insert([\n 'name' => \"HS-SV\",\n 'price' => \"45000\",\n\n ]);\n }", "title": "" }, { "docid": "cc128e93e33511b2ef1ba05964e7ab76", "score": "0.7693494", "text": "public function run()\n {\n DB::table('user_tags')->delete();\n\n\t$faker = Faker\\Factory::create('fr_FR');\n\t$faker->addProvider(new Faker\\Provider\\fr_FR\\Address($faker));\n\n\t//if we want to create the SAME seed generated data every time we run, instead of \n\t//making file, just use the Faker->seed() call:\n\t$faker->seed(1234);\n\n\t$records = DB::table('users')->select('id')->get();\n\t\n\t$tag_list = array(\n\t 'anglais','allemand','espagnol'\n\t);\n\t\n\t//now, make our data array:\n\tfor ($i=0; $i < ($size = sizeof($records))*3; $i++) {\n\t $key = array_rand($tag_list);\n\t $tag = array(\n\t\t'id' => $records[$i%$size]->id,\n\t\t'info_tags' => $tag_list[$key]\n\t );\n\t $tags[] = $tag;\n\t}\n\t\n //// Uncomment the below to run the seeder\n DB::table('user_tags')->insert($tags);\n }", "title": "" }, { "docid": "adfb7b36c0f4cf9f8966236fe3c4601d", "score": "0.76932347", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('items')->insert([\n \t[\n 'name' => 'Espresso',\n 'price' => '2000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Blueberry Muffin',\n 'price' => '2000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Cafe Latte',\n 'price' => '3000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Extra Hot',\n 'price' => '10000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Upsize',\n 'price' => '5000',\n 'is_itemset' => '0',\n ],\n ]);\n }", "title": "" }, { "docid": "8581d5932c10ae369822f385e0546d32", "score": "0.76930207", "text": "public function run()\n {\n //\n $faker=Faker::create();\n for($i=0;$i<3;$i++){\n \tvendedor::create(\n \t\t[\n \t\t\t'nombre'=>$faker->name(),\n \t\t\t'apellidos'=>$faker->firstName()\n \t\t]\n \t);\n }\n }", "title": "" }, { "docid": "1289e2b6ab8584618582d08fb4dd0eef", "score": "0.76908034", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /* ----------------------------------------------\n * Create 10 users and for each user it will create\n * 5 to 30 questions and for each question there will be\n * 3 to 15 answers\n ------------------------------------------------*/\n factory(App\\User::class, 10)->create()->each(function($u) {\n $u->questions()->saveMany(\n factory(App\\Question::class, rand(5, 30))->make()\n )\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(3, 15))->make());\n });\n });\n\n }", "title": "" }, { "docid": "931bc5da856255fe423779a30df97f7c", "score": "0.768858", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n // $this->call(ModelosTableSeeder::class);\n factory(App\\Model\\Marca::class,30)->create();\n factory(App\\Model\\Modelo::class,90)->create();\n }", "title": "" }, { "docid": "dcf670c829f2356856972e0a09d9a42f", "score": "0.7686464", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //sedder\n //$this->call(UserSeeder::class);\n //$this->call(DirectionSeeder::class);\n //$this->call(CategorySeeder::class);\n //$this->call(BrandSeeder::class);\n\n //factory // usar el nombre de modelo\n /*Direction::factory(20)->create();\n User::factory(20)->create();\n Category::factory(6)->create();\n Brand::factory(20)->create();\n Product::factory(20)->create();\n Order::factory(20)->create();\n\n //seeder\n $this->call(Category_ProductSeeeder::class);\n $this->call(Order_ProductSeeeder::class);*/\n Brand::factory(20)->create();\n Product::factory(20)->create();\n //Category::factory(6)->create();\n $this->call(CategorySeeder::class);\n $this->call(CategoryProductSeeder::class);\n\n\n $this->call(CartSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(CartProductSeeder::class);\n\n\n }", "title": "" }, { "docid": "fd40d38e5dadc7d486cef808875889ba", "score": "0.7685538", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //Tipo de aeronave\n $tipo = new Tipo([\n \"tipo\" => \"C440\"\n ]);\n\n $tipo->save();\n\n //Aeronave\n $aeronave = new Aeronave([\n \"matricula\" => \"PT-4888\",\n \"tipo_id\" => $tipo->id\n ]);\n\n $aeronave->save();\n \n //Aeroporto de origem\n $origem = new Aeroporto([\n \"nome\" => \"SPMG\"\n ]);\n\n $origem->save();\n\n //Aeroporto de destino\n $destino = new Aeroporto([\n \"nome\" => \"SPMS\"\n ]);\n\n $destino->save();\n\n //Voo\n $voo = new Voo([\n \"numero\" => \"TAM4855\",\n \"data\" => date('Y-m-d'),\n \"hora\" => date('H:i:s'),\n \"aeronave_id\" => $aeronave->id,\n \"origem_id\" => $origem->id,\n \"destino_id\" => $destino->id\n ]);\n\n $voo->save();\n }", "title": "" }, { "docid": "0ec7b9a91ca47201ce6aca6cac3a028b", "score": "0.76842654", "text": "public function run()\n {\n $faker = Faker::create();\n\n DB::table('demos')->delete();\n\n foreach (range(1,20) as $index)\n {\n $language = ($index % 3) == 0 ? \"Deutsch\" : (($index % 5) == 0 ? \"UK\" : \"North America\");\n // $enterpriseVersion = ($index % 3) == 0 ? \"10.4\" : \"11\";\n $enterpriseVersion = ($index % 2) == 0 ? \"11\" : \"10.4\";\n Demo::create(array(\n \"title\" => $faker->catchPhrase(),\n \"description\" => $faker->paragraph(), //$faker->realText($faker->numberBetween(10,20))\n \"enterprise_version\" => $enterpriseVersion,\n \"language\" => $language,\n \"demo_code\" => $faker->sentence(),\n \"related_content_code\" => $faker->sentence()\n ));\n }\n }", "title": "" }, { "docid": "f7bfac8aba6b6a622f4e0eec11a4d9fc", "score": "0.76830846", "text": "public function run()\n {\n //create example of content\n // factory(App\\Model\\Author::class, 5)->create()->each(function ($author) {\n // $author->posts()->save(factory(App\\Model\\Post::class)->make());\n // });\n // $this->call(UsersTableSeeder::class);\n $this->call([\n AuthorsTableSeeder::class,\n PostsTableSeeder::class,\n TagsTableSeeder::class,\n PostsTagsTableSeeder::class\n ]);\n }", "title": "" }, { "docid": "14e4182f11fd59a58db6d09e1c48f83e", "score": "0.7681982", "text": "public function run()\n {\n $seed = [\n [\n 'slug' => 'eljazera',\n 'production' => '2014',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '17+',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ],\n [\n 'slug' => 'alf-mabrook',\n 'production' => '2015',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '13',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ],\n [\n 'slug' => 'bdl-faqed',\n 'production' => '2013',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '14',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ]\n ];\n DB::table('movies')->insert($seed);\n }", "title": "" }, { "docid": "52c06df07ab060cd1e8468e059bdf62a", "score": "0.76781607", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('categories')->truncate();\n $categories = [\n ['id' => '1', 'category' => 'RPG'],\n ['id' => '2', 'category' => 'アクション'],\n ['id' => '3', 'category' => 'シミュレーション'],\n ['id' => '4', 'category' => 'シューティング'],\n ['id' => '5', 'category' => 'レーシング'],\n ['id' => '6', 'category' => '格闘ゲーム'],\n ['id' => '7', 'category' => 'スポーツゲーム'],\n ['id' => '8', 'category' => 'ホラー']\n ];\n\n DB::table('categories')->insert($categories);\n }", "title": "" }, { "docid": "e80c8ecd2cca8e1ca5da687fe8a40bdf", "score": "0.76775956", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n // Не смог сделать нормальный Seeder :)\n\n for($i=1;$i<200;$i++){\n DB::table('news')->insert(\n [\n 'userid' => 1,\n 'title' => Str::random(10),\n 'description' => Str::random(40),\n 'likes' => 0,\n ]\n );\n }\n }", "title": "" }, { "docid": "16b48d13aaecf8a9050093212752a42b", "score": "0.7676737", "text": "public function run()\n {\n \t//seeder de usuarios\n // $this->call(UsersTableSeeder::class);\n \t//seeder de titulares\n \t$this->call(PeopleTableSeeder::class);\n //seeder de beneficiarios\n $this->call(BeneficiariesTableSeeder::class);\n \n }", "title": "" }, { "docid": "0399fbc56b35925511720a5b0b0fa04d", "score": "0.7675503", "text": "public function run()\n {\n //\n # リセット\n DB::table('students')->delete();\n\n # 日本語設定\n // $faker = Faker\\Factory::create('ja_JP');\n $faker = Faker::create('ja_JP'); //修正版\n\n # サンプルデータの挿入\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Student::create([\n 'name' => $faker->name(),\n 'email' => $faker->email(),\n 'tel' => $faker->phoneNumber(),\n 'message' => $faker->text()\n ]);\n }\n }", "title": "" }, { "docid": "bf9877bcc45a8fe8774b6792575d99b2", "score": "0.7671322", "text": "public function run()\n {\n //Truncate entries if exist to start from scratch\n ExpensesModel::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // Create random entries for our expenses table:\n for ($i = 0; $i < 50; $i++) {\n ExpensesModel::create([\n 'description' => $faker->realText(),\n 'cost' => $faker->numberBetween(1, 10000),\n 'currency' => 'RON',\n 'date' => $faker->dateTimeBetween('-30days','now')->format('y-m-d')\n\n ]);\n }\n }", "title": "" }, { "docid": "20321412da56f09f3af5a63398db1b8c", "score": "0.76710236", "text": "public function run()\n {\n $faker = Faker::create();\n $contents = [\n 'customer',\n 'supplier',\n 'admin'\n ];\n\n foreach($contents as $content) {\n DB::table('roles')->insert([\n 'id' => $faker->uuid,\n 'name' => $content,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ]);\n }\n }", "title": "" } ]
7c2af605d7cae16498949ca55c393725
Export the stored private encryption key.
[ { "docid": "b647e3d56bb8a68ecdfe547468fef143", "score": "0.75870246", "text": "public function exportPrivateKey($passphrase = null);", "title": "" } ]
[ { "docid": "4283dde6ea0d4ec770c789ffaf2d7f1b", "score": "0.7467963", "text": "public function exportPrivateKey(PrivateKeyInterface $privateKey, $password = '');", "title": "" }, { "docid": "bedd61fc48c334c38f2041b422141e06", "score": "0.69045836", "text": "public function exportPublicKey();", "title": "" }, { "docid": "706805c145d1d923810bcfb5bbf27bd6", "score": "0.6678278", "text": "public function savePrivateKey(string $filename, string $passphrase)\n {\n return openssl_pkey_export_to_file ($this->getPrivateKey(), $filename, $passphrase);\n\n }", "title": "" }, { "docid": "1f7dd23b00c0f68f915a193d33427e32", "score": "0.66274154", "text": "public function getPrivateKey(): string;", "title": "" }, { "docid": "627ad18df7538d8260256d5be88c11cb", "score": "0.6591673", "text": "public function dumpKey();", "title": "" }, { "docid": "ca04dbfd5b578c20ab2e180aa2f6fb2a", "score": "0.6485044", "text": "public function importPrivateKey(BufferInterface $exportedPrivateKey, $password = '');", "title": "" }, { "docid": "d4dbdd2cd4d4560bef373439078426a8", "score": "0.64243346", "text": "public function getPrivKeyFile()\n {\n return $this->getKey('PrivKeyFile');\n }", "title": "" }, { "docid": "196916efbe8d41d2b5b7433bcd39c623", "score": "0.63574666", "text": "abstract public function getConsumerPrivateKey();", "title": "" }, { "docid": "c3d5c0b33f9fa5ec2d433a9934704960", "score": "0.6354039", "text": "public function getPrivateKey(){\r\n return $this->k;\r\n }", "title": "" }, { "docid": "9a9481e9bbd4e9eda7c55bfb4a0aa3f6", "score": "0.6337738", "text": "public function ExportKeys() {\n\t\treturn array('ekey' => $this->ekey, 'nkey' => $this->nkey);\n\t}", "title": "" }, { "docid": "900c0b0c55adccd8399c7327278e15b7", "score": "0.6332839", "text": "public function exportPublicSignKey()\n\t{\n\t\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\t\t// Get the public sign key\n\t\t$publicKeyASC = MAIL_gpgGettKey($this->getGPGID());\n\n\t\t// Check, if it was fetched\n\t\tif (is_bool($publicKeyASC)) return(false);\n\n\t\t// Check, if the key has a valid length\n\t\tif (strlen($publicKeyASC) < 1000) return(false);\n\n\t\t// Write it to the webserver directory\n\t\tSERVER_putFileContents(CGPGSign::POOLSIGNKEYFILE, $publicKeyASC, '555', HELPER_getApacheUser());\n\n\t\t$this->addInfoMessage($I18N_publicPoolGPGSignKeyExported);\n\n\t\treturn(true);\n\t}", "title": "" }, { "docid": "afbbc159974a2c57767d80979016a0a4", "score": "0.6222779", "text": "private static function getPrivateKey(){\n \n $privKey = self::$PRIVATE_KEY;\n \n return openssl_pkey_get_private($privKey); \n }", "title": "" }, { "docid": "34ae113a206b4990d88e78fa9aa2dc60", "score": "0.6203581", "text": "public static function getEncryptionKey()\n {\n $key = 'billys';\n if (is_file('key')) {\n $key = file_get_contents('key');\n } else {\n file_put_contents('key', $key);\n }\n return $key;\n }", "title": "" }, { "docid": "fa41fc5926cd7ec94b9d20af8a94eec2", "score": "0.61936957", "text": "public function getPrivateKey()\n {\n return file_get_contents($this->_privateKeyPath);\n }", "title": "" }, { "docid": "9d2987623d64da561c3728aed02fc403", "score": "0.61284363", "text": "public function getPrivateKey() : string {\n return $this->privateKey;\n }", "title": "" }, { "docid": "cc704d2c4d4dfe25c04617f6fe68b9b5", "score": "0.6115166", "text": "public function getPrivateKey() : string\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "8ddd8a83a40842836b9884d07055a3d8", "score": "0.6047867", "text": "public function getPrivateKeyData()\n {\n return $this->private_key_data;\n }", "title": "" }, { "docid": "7ba092af6d389bc91a55389dac5fe802", "score": "0.60343087", "text": "function getPrivateKey()\r\n {\r\n return $this->_private_key;\r\n }", "title": "" }, { "docid": "7a32ae06b20ae2d7c69425561c2d719a", "score": "0.6022147", "text": "public function getPrivateSharedKey() {\r\n return (string) $this->getValue(self::KEY_PRIVATE_SHARED_KEY);\r\n }", "title": "" }, { "docid": "722c5a4866a4b6b48b7756ae4ae2855c", "score": "0.59972894", "text": "public function getDiskEncryptionKey()\n {\n return $this->disk_encryption_key;\n }", "title": "" }, { "docid": "cae607729de1b6c148cd54c1ebfa7761", "score": "0.59925324", "text": "public function generatePrivatePublicKey()\n {\n try {\n $rsa = new RSA();\n $rsa->setPrivateKeyFormat(RSA::PUBLIC_FORMAT_OPENSSH);\n $rsa->setPublicKeyFormat(RSA::PUBLIC_FORMAT_OPENSSH);\n $rsa->setComment('autopilot-host-' . $this->id . '@sitepilot.io');\n $keys = $rsa->createKey(4096);\n\n Storage::put($this->getPrivateKeyPath(), $keys[\"privatekey\"]);\n Storage::put($this->getPublicKeyPath(), $keys[\"publickey\"]);\n\n chmod($this->getPrivateKeyPath(false), 0600);\n chmod($this->getPublicKeyPath(false), 0600);\n\n $this->setVar('ansible_ssh_private_key_file', $this->getPrivateKeyPath())->save();\n $this->setVar('ansible_ssh_public_key_file', $this->getPublicKeyPath())->save();\n } catch (Exception $e) {\n throw new Exception($e->getMessage());\n }\n }", "title": "" }, { "docid": "4b31e798ff232eb7d931177405ea25f9", "score": "0.5974432", "text": "public function getPrivateKey()\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "4b31e798ff232eb7d931177405ea25f9", "score": "0.5974432", "text": "public function getPrivateKey()\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "4b31e798ff232eb7d931177405ea25f9", "score": "0.5974432", "text": "public function getPrivateKey()\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "4b31e798ff232eb7d931177405ea25f9", "score": "0.5974432", "text": "public function getPrivateKey()\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "4b31e798ff232eb7d931177405ea25f9", "score": "0.5974432", "text": "public function getPrivateKey()\n {\n return $this->privateKey;\n }", "title": "" }, { "docid": "345b8f2c66f9d717e03cec2675c7a8d3", "score": "0.5946333", "text": "function privateKey() {\r\n\t\tglobal $filename;\r\n\r\n\t\tif ($filename == \"codex.php\") {//WHY IS THIS DIFFERENT FOR CODEX???\r\n\t\t\treturn \"123\";\r\n\t\t} else {\r\n\t\t\treturn \"INSERT PRIVATE KEY\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b34662c7ba6ac619754225479b2d4578", "score": "0.59259915", "text": "public function generate_private_key()\n {\n // generating private key\n $this->private = gmp_random_bits(self::PRIVATE_KEY_LENGTH);\n }", "title": "" }, { "docid": "83b659c04257dab2278d2f3785c7fd5f", "score": "0.5921752", "text": "public function makePrivateKey() {\n $row = $this->load_config();\n $user = $this->getUser(1);\n $gmdate = gmdate(\"YmdHis\", time());\n $private_key = sha1($row->default_email . '|' . $this->Cms_model->base_link() . '|' . $user->password . '|cms|' . $gmdate);\n $this->db->set('bf_private_key', $private_key);\n $this->db->set('timestamp_update', 'NOW()', FALSE);\n $this->db->where(\"login_security_config_id\", 1);\n $this->db->update('login_security_config');\n $this->Cms_model->clear_file_cache('loadBFconfig');\n }", "title": "" }, { "docid": "e30939244110b66906c26c108f9ef58b", "score": "0.5910752", "text": "public function getPrivateKey() : PrivateKey\n {\n return $this->private;\n }", "title": "" }, { "docid": "06736aa7d3972608bb0ed12de86841be", "score": "0.58588827", "text": "public function importPrivateKey($key, $passphrase = null);", "title": "" }, { "docid": "0dd10ea16544bb9987b6cdcc46dd573b", "score": "0.58058476", "text": "private function initPrivateKey(): void\n {\n // Private Key handling / config updates\n $privateKey = $this->pemManager->readPrivateKey($this->config->getPrivateKey());\n if (!$privateKey) {\n throw new FintectureException('Cannot get private key.');\n }\n\n $pemResults = $this->pemManager->formatPrivateKey($privateKey);\n\n $finalPrivateKey = $pemResults['encrypted'] ? $privateKey : $pemResults['privateKey'];\n if ($this->pemManager->isPemString($finalPrivateKey)) {\n $this->config->setFinalPrivateKey($finalPrivateKey);\n } else {\n throw new FintectureException('The private key is not well formatted. Please verify it.');\n }\n\n if ($this->config->getEncryptionDir()) {\n // Store encrypted private key for developers\n if ($pemResults['encrypted']) {\n $this->config->setEncryptedPrivateKey($pemResults['privateKey']); // newly encrypted key (to save)\n } else {\n $this->config->setEncryptedPrivateKey($privateKey); // original key\n }\n }\n }", "title": "" }, { "docid": "0948e35e695fa8f2e33c2a7ac8412558", "score": "0.57905024", "text": "public function getSnapshotEncryptionKey()\n {\n return $this->snapshot_encryption_key;\n }", "title": "" }, { "docid": "60a431a087edb8b62cb76684a4fa3136", "score": "0.5787901", "text": "protected function getEncryptKey()\n {\n //\n }", "title": "" }, { "docid": "d5594cafd1f7cb97b941c011a4281b1f", "score": "0.5774555", "text": "public function exportPublicKey(PublicKeyInterface $publicKey);", "title": "" }, { "docid": "f51a6befd0aecaa0dbbbed310c15af68", "score": "0.57626367", "text": "public static function export()\n\t{\n\t\tself::init();\n\t\treturn self::$Hash->export();\n\t}", "title": "" }, { "docid": "b5eceb54ce26847e95ff799e99af27bd", "score": "0.57598567", "text": "private function _getRsaKey($private = false) {\n $table = 'Crypt';\n\n $select = 'publicHex, publicHash, date';\n\n if($private) {\n $select = 'private, publicHex, publicHash, date';\n }\n\n $date = date('Y:m:d');\n $where['_id'] = hash('sha256', base64_encode('rsa' . $date));\n\n $key = $this->Auth_model->select($table, $select, $where);\n\n if(!count($key['result'])) {\n $rsa = $this->_rsaInit();\n $insert = $this->Auth_model->insert($table, $rsa);\n\n if($insert) {\n $key = array(\n 'publicHex' => $rsa['publicHex'],\n 'publicHash' => $rsa['publicHash'],\n 'date' => $date\n );\n }\n }else {\n $key = $key['result'][0];\n }\n\n return $key;\n }", "title": "" }, { "docid": "15a0a87342ce1ff941cf6f41c8c39bb6", "score": "0.5752772", "text": "private function Encryption_Key() {\n $string = 'd0a7e7997b6d5fcd55f4b5c32611b87cd923e88837b63bf2941ef819dc8ca282';\n return $string;\n }", "title": "" }, { "docid": "77809a96212da2c53154a6a9f7b343a6", "score": "0.5746563", "text": "public function keyData() { }", "title": "" }, { "docid": "d9b7d16099f1d8720c3a92d01876b486", "score": "0.5732977", "text": "public function getPrivateApiKey()\n {\n $storeId = $this->getCurrentStoreId();\n $currentCurrency = $this->storeManager->getStore()\n ->getCurrentCurrencyCode();\n $region_suffix = $this->getApiKeyNameByCurrency($currentCurrency);\n return ($this->getMode() == 'sandbox') ?\n $this->getValue(self::KEY_PRIVATE_KEY_SANDBOX . $region_suffix, $storeId) :\n $this->getValue(self::KEY_PRIVATE_KEY_PRODUCTION . $region_suffix, $storeId);\n }", "title": "" }, { "docid": "81b2e83361fdccabae3bcf737bd324e6", "score": "0.5731657", "text": "public function z_exportKey(string $zAddr)\n {\n return $this->__call('z_exportkey', [$zAddr]);\n }", "title": "" }, { "docid": "7d3c9f376132de2c62b4b4d6bd946c5b", "score": "0.5730529", "text": "public static function generateNewPrivateKeyEd25519(): Ed25519\\PrivateKey\n {\n return new Ed25519\\PrivateKey(substr(ParagonIE_Sodium_Compat::crypto_sign_keypair(), 0, 64));\n }", "title": "" }, { "docid": "ae4a737d3b28de970cc40c6336547482", "score": "0.56588197", "text": "private function getPrivateKey() {\n\t\t$private_key = $this->setting('private_key');\n\n\t\t// Null check the private key, and generate it should it not exist\n\t\tif (is_null($private_key)) {\n\t\t\t$this->log('info', $this->language->get('log_no_private_key'));\n\t\t\treturn $this->generateId();\n\t\t}\n\n\t\t$this->log('debug', $this->language->get('log_private_key_found'));\n\t\t$private_key = @unserialize($this->encryption->decrypt($private_key));\n\n\t\t// Check for key integrity\n\t\tif (!($private_key instanceof Bitpay\\PrivateKey)) {\n\t\t\t$this->log('error', sprintf($this->language->get('log_private_key_wrong_type'), gettype($private_key)));\n\t\t\t$this->log('trace', sprintf($this->language->get('log_encrypted_key'), $private_key));\n\t\t\t$this->log('trace', sprintf($this->language->get('log_decrypted_key'), $this->encryption->decrypt($private_key)));\n\t\t\tthrow new UnexpectedValueException();\n\t\t}\n\n\t\treturn $private_key;\n\t}", "title": "" }, { "docid": "77ebcbce8aca7ae6dd590f2ac4349a8a", "score": "0.5654534", "text": "public function getPrivateKey()\n {\n return $this->getParameter('privateKey');\n }", "title": "" }, { "docid": "77ebcbce8aca7ae6dd590f2ac4349a8a", "score": "0.5654534", "text": "public function getPrivateKey()\n {\n return $this->getParameter('privateKey');\n }", "title": "" }, { "docid": "96382b5dcb6b0753be382a5e0c72f691", "score": "0.56125355", "text": "public function getKey()\n {\n $this->publicKey = Config::get('lazerpay.publicKey');\n $this->secretKey = Config::get('lazerpay.secretKey');\n }", "title": "" }, { "docid": "823882272c5d752e49189f7a890754b7", "score": "0.5603368", "text": "function generateNewKey(){\n$key = fopen(\"cipherKey.key\", \"w\");\nfwrite($key, bin2hex(random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES)));\nfclose($key);\n}", "title": "" }, { "docid": "260d07d85cf70c3db0d791e8a61ee7aa", "score": "0.5597439", "text": "protected function initPrivateKey()\r\n {\r\n if ( !isset( $config[ 'private-key' ][ 'file' ] ) || !file_exists( $config[ 'private-key' ][ 'file' ] ) )\r\n {\r\n $this->privateKey = openssl_pkey_new();\r\n openssl_pkey_export_to_file( $this->privateKey, $config[ 'private-key' ][ 'file' ] );\r\n }\r\n else\r\n {\r\n $this->privateKey = openssl_pkey_new( $config[ 'private-key' ][ 'file' ] );\r\n }\r\n }", "title": "" }, { "docid": "ab4c10c7b43fae6b0614bc99d0529bf4", "score": "0.5524798", "text": "function secretKey();", "title": "" }, { "docid": "118678a6152374c8f3e1f85bf1ec5015", "score": "0.5504102", "text": "public function generateKey()\n {\n if (! $this->doesKeyExist()) {\n $fs = new Filesystem();\n $key = Key::createNewRandomKey();\n $fs->dumpFile($this->getPath(), $key->saveToAsciiSafeString());\n }\n\n return $key ?? null;\n }", "title": "" }, { "docid": "100da8b722166c0a8164402b486767f0", "score": "0.548461", "text": "public function savePublicKey(string $filename)\n {\n file_put_contents($filename, $this->getPublicKey());\n }", "title": "" }, { "docid": "9dbb29ba7243fcbc9ec25905251ea0d3", "score": "0.5483181", "text": "public function getPrivateKey() {\n\n $path = base_url();\n $url = $path . 'api/Admin_api/getPrivateKey?setting_name=pass_privateKey';\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HTTPGET, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response_json = curl_exec($ch);\n curl_close($ch);\n $response = json_decode($response_json, true);\n return $response;\n }", "title": "" }, { "docid": "7c1d78f91a006938e8772065a59a6850", "score": "0.54735553", "text": "public function getCryptKey ()\n {\n return $this->getVendorPassword();\n }", "title": "" }, { "docid": "3769bd3a2580bc747e54f6a415386293", "score": "0.54694074", "text": "public function key();", "title": "" }, { "docid": "6285e9495ff0d01df8ce58d4a8094930", "score": "0.5448788", "text": "function ca_make_key($keylen) {\n $config = array(\n \"private_key_bits\" => $keylen\n );\n $pkey = openssl_pkey_new($config);\n openssl_pkey_export($pkey, $privkey);\n return $privkey;\n }", "title": "" }, { "docid": "491b37fbc171ff405d63a5bbe71b88ee", "score": "0.5448547", "text": "public static function generateKey() {}", "title": "" }, { "docid": "5f623173b038d7238ce5ca9c0491c7ef", "score": "0.54310477", "text": "public function encryptKeyWithPassword()\r\n {\r\n\r\n }", "title": "" }, { "docid": "2220a6a56cdc952d58166fbbd19c5c7f", "score": "0.5420687", "text": "public function exportCredentials()\n {\n \t$this->authenticate();\n \t\n $array = array();\n \n foreach ($this->getExportItems() as $key) {\n $array[$key] = $this->$key;\n }\n \n return $array;\n }", "title": "" }, { "docid": "cfa575d7d5aa9518d16a656579970454", "score": "0.5415894", "text": "public function getCryptoKey() : string\n {\n return $this->cipher->getPublicKey()->getBase64UrlEncodedString();\n }", "title": "" }, { "docid": "091bf6531f4cde469f83217cd023453a", "score": "0.5397368", "text": "public function generateId() {\n\t\t// Generate new keys\n\t\t$private_key = new Bitpay\\PrivateKey();\n\t\t$private_key->generate();\n\t\t$public_key = $private_key->getPublicKey();\n\n\t\t// Persist the keys to the database\n\t\t$this->setting('private_key', $this->encryption->encrypt(serialize($private_key)));\n\t\t$this->setting('public_key', $this->encryption->encrypt(serialize($public_key)));\n\t\t$this->setting('connection', 'disconnected');\n\t\t$this->setting('token', null);\n\n\t\treturn $private_key;\n\t}", "title": "" }, { "docid": "611b46e9530d0bb3ca5f881a8b853fc9", "score": "0.5395995", "text": "public function z_exportViewingKey(string $zAddr)\n {\n return $this->__call('z_exportviewingkey', [$zAddr]);\n }", "title": "" }, { "docid": "a8f864baca6aca06fbe75c953d5d233d", "score": "0.53831214", "text": "public function getPrivateKey()\n {\n return trim($this->scopeConfig->getValue(static::XML_PATH_PRIVATE_KEY));\n }", "title": "" }, { "docid": "ec1ed56f1a9860cabd0348f835bf3c3c", "score": "0.53811026", "text": "public function getPrivateKey()\n {\n if (!$this->isPrivate()) {\n throw new \\Exception('This is not a private key');\n }\n\n return $this->privateKey;\n }", "title": "" }, { "docid": "70be8f060a5e225b78d826a88680ed27", "score": "0.53767323", "text": "public function getEncryptedPrivateKey(): ?string\n {\n Fintecture::setCurrentClient($this->identifier);\n return $this->config->getEncryptedPrivateKey();\n }", "title": "" }, { "docid": "f47f6d68f84866ecd1201985785c87c7", "score": "0.53510416", "text": "abstract public function generateKeyPair();", "title": "" }, { "docid": "e3f6907e858be991f743ec4eed17a948", "score": "0.5348841", "text": "public function generateKeyPairCommand() {\n\t\t$publicKeyFingerprint = $this->rsaWalletService->generateNewKeypair();\n\t\t$this->outputLine('Created key with fingerprint: ' . $publicKeyFingerprint);\n\t}", "title": "" }, { "docid": "f6fc74fe1574ba54db169909d051ef75", "score": "0.5329342", "text": "public function getSourceDiskEncryptionKey()\n {\n return $this->source_disk_encryption_key;\n }", "title": "" }, { "docid": "a7e995bb80718eda42de7716cf31691b", "score": "0.5328296", "text": "abstract public function derivePublicKey($privateKey);", "title": "" }, { "docid": "52b6c5cc1bb02cb8f97bb889e03f2a1e", "score": "0.5323467", "text": "private function getPrivateKeyPassword()\n {\n if (DEBUG) {\n return CERTIFICATE_PASSPHRASE_DEVELOP;\n } else {\n return CERTIFICATE_PASSPHRASE;\n }\n }", "title": "" }, { "docid": "6b676f37235c76ceb98c1e1669824879", "score": "0.53202814", "text": "public static function apiPrivateKeyPath()\n {\n Pingpp::$privateKeyPath = __DIR__ . \"/../res/privatekey.key\";\n }", "title": "" }, { "docid": "47b58f05cb8391ea1a0234ae0b94b4b5", "score": "0.53008974", "text": "function generate_private($public = \"\")\n {\n if ($public == \"\")\n $public = $this->public_key;\n return substr(md5($this->key . $public), 16 - $this->long / 2, $this->long);\n }", "title": "" }, { "docid": "02a5bb4d042a7b224f575e45b59a053c", "score": "0.5297184", "text": "public function setPrivateKey(CryptKey $privateKey) {\n\n }", "title": "" }, { "docid": "2685006b36ebe0769915863ab9c87fce", "score": "0.529203", "text": "public function outputKey()\n\t{\n\t\t//Generate the key and store it inside the class\n\t\t$this->formKey = $this->generateKey();\n\t\t//Store the form key in the session\n\t\t$_SESSION['form_key'] = $this->formKey;\n\t\t//Output the form key\n\t\techo \"<input type='hidden' name='form_key' id='form_key' value='\".$this->formKey.\"' />\";\n\t}", "title": "" }, { "docid": "1066367bfe7a3d2e2b6a500d26ce92ac", "score": "0.5239194", "text": "public function createSessionKeys()\n {\n $keyArray = $this->createKeys();\n $_SESSION['RSA_Private_key'] = $keyArray['rsaPrivateKey'];\n $_SESSION['RSA_Public_key'] = $keyArray['rsaPublicKeyHex'];\n }", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.5237436", "text": "public function getSecretKey();", "title": "" }, { "docid": "214c63f4c252ff71269ffad316177545", "score": "0.5237436", "text": "public function getSecretKey();", "title": "" }, { "docid": "dc24fdf20b03a26bc14a68b687d37d7c", "score": "0.5234215", "text": "public function license_key() { \n if ( class_exists( 'GMW_License_Key' ) ) {\n $gjm_license_key = new GMW_License_Key( $this->_full_path, $this->_title, $this->_license_name );\n $gjm_license_key->license_key_output(); \n } \n }", "title": "" }, { "docid": "5ef4965f8aba6d9bc34692d7148ed4fd", "score": "0.5233632", "text": "function setKeyPair($public, $private)\n\t{\n\t\t$this->_pubkey = $public;\n\t\t$this->_privkey = $private;\n\t}", "title": "" }, { "docid": "6a19ce48aac0fd22452583d520d15c4b", "score": "0.52321094", "text": "public function downloadExample()\n {\n return response()->download(storage_path() . '/files/key_code/example_keys.txt', 'file.txt');\n }", "title": "" }, { "docid": "3cd6690ab6ccec94ce10cae9c0ebca0d", "score": "0.523125", "text": "public function getPrivateKeyAttribute(string $encryptedKey)\n {\n return $this->decrypt($encryptedKey);\n }", "title": "" }, { "docid": "763c54db785bdcbaaeea1bcf00343f58", "score": "0.5226094", "text": "final private function saveKeypair( $keypair = array() ) {\n\n\t\ttry {\n\n\t\t\tclearstatcache();\n\n\t\t\t$filename = $this->get( 'defaultSaveFile' );\n\t\t\t$directory = trim( $this->get( 'keyfile_dir' ) );\n\n\t\t\tif ( trim( $filename ) == '' || is_null( $filename ) ||\n\t\t\t\ttrim( $directory ) == '' || is_null( $directory ) ) {\n\n\t\t\t\t\t/* we have no directory or filename information */\n\t\t\t\t\t$this->addError( 'Error in saveKeypair(): No filename or directory name provided. ' .\n\t\t\t\t\t\t\t\t\t'Cannot save key data.' );\n\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif ( substr( $directory, -1 ) != '/' )\n\t\t\t\t\t$directory .= '/';\n\n\t\t\t\tif ( !is_writable( $directory ) ) {\n\t\t\t\t\t$this->addError( 'Error in saveKeypair(): Directory \"' .\n\t\t\t\t\t\t\t\t\t$directory . '\" is not writable. Cannot save key data.' );\n\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t$savefile = $directory . $filename;\n\n\t\t\t\t$data = '524d524d524d3002' .\n\t\t\t\t\t\t\t$keypair['private_key_hex'] . '02' .\n\t\t\t\t\t\t\t$keypair['public_key']\t . '02';\n\n\t\t\t\tif ( file_put_contents( $savefile,\n\t\t\t\t\t\t\t\t\t\t\t\tbase64_encode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->gmp_binconv( $data . hash( 'sha256', $data ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t LOCK_EX ) === false ) {\n\n\t\t\t\t\t/* could not save our keypair data */\n\t\t\t\t\t$this->addError( 'Error in saveKeypair(): Error writing keyfile data to disk. Check file permissions and disk space.' );\n\t\t\t\t\treturn false;\n\n\t\t\t\t} else {\n\t\t\t\t\t$this->addNotice( 'Successfully wrote keypair data to \"' . $savefile . '\".' );\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t} catch ( Exception $e ) {\n\t\t\t$this->addError( 'Error in saveKeypair(): ' . $e->getMessage() );\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4c619c89535f0100323a7964fbab2ac7", "score": "0.5218072", "text": "public function getKeyPair();", "title": "" }, { "docid": "020b5b951c2b1e4acca50e8fe360182a", "score": "0.52174944", "text": "public static function getEncryptedKey() {\n $randomKey = 0;\n $randomKey2 = 0;\n do {\n $randomKey = CommonHelper::randomKey();\n $randomKey2 = CommonHelper::randomKey();\n } while ($randomKey == $randomKey2);\n\n return md5($randomKey2 . time());\n }", "title": "" }, { "docid": "0acd5fa4013b62601411eb2547ccd2a9", "score": "0.52131164", "text": "public function generateKeyPairCommand() {\n\t\t$keyUuid = $this->rsaWalletService->generateNewKeypair();\n\t\t$this->outputLine('Created key with uuid: ' . $keyUuid);\n\t}", "title": "" }, { "docid": "7386dc0099c2c746573dd2dade2bfea3", "score": "0.520418", "text": "public function getPrivateKey() {\n $this->db->select('bf_private_key');\n $this->db->where(\"login_security_config_id\", '1');\n $this->db->limit(1, 0);\n $query = $this->db->get(\"login_security_config\");\n if(!empty($query) && $query->num_rows() !== 0){\n $private_key = $query->row()->bf_private_key;\n if(!empty($private_key) && $private_key != NULL){\n return $private_key;\n }else{\n return '-';\n }\n }else{\n return '-';\n }\n }", "title": "" }, { "docid": "49540a174bb61b53f22c983815c6fe39", "score": "0.5202375", "text": "public function generateSecretKey(): string;", "title": "" }, { "docid": "f9df7b6709d1c898d2374758a7dd4b3a", "score": "0.52015525", "text": "public function getExtendedPrivateKey()\n {\n if (!$this->isPrivate()) {\n throw new \\Exception('This is not a private key');\n }\n\n $bytes = new Parser();\n $bytes = $bytes\n ->writeBytes(4, $this->getNetwork()->getHDPrivByte())\n ->writeInt(1, $this->getDepth())\n ->writeBytes(4, $this->getFingerprint())\n ->writeInt(4, $this->getSequence())\n ->writeBytes(32, $this->getChainCode()->serialize('hex'))\n ->writeBytes(1, '00')\n ->writeBytes(32, $this->getPrivateKey()->serialize('hex'))\n ->getBuffer()\n ->serialize('hex');\n\n $base58 = Base58::encodeCheck($bytes);\n\n return $base58;\n }", "title": "" }, { "docid": "31833d33e047e3acd96f2762c12a35d0", "score": "0.5200265", "text": "static function get_decrypt_key() {\n $cfgkey = i2config_get('key', null, 'sso');\n if($cfgkey == null) return null;\n return $cfgkey;\n }", "title": "" }, { "docid": "0f4875583d122f45e3a3c7b543ec11f7", "score": "0.5183989", "text": "public function getEncryptedSettingKeys(): array;", "title": "" }, { "docid": "a3a84144784601c1f717a1f53b2147aa", "score": "0.5179776", "text": "public static function generateKey() {\r\n\t\t$key = C\\Key::createNewRandomKey();\r\n\t\treturn $key->saveToAsciiSafeString();\r\n\t}", "title": "" }, { "docid": "a41a7237d424220a0c5b164192854e52", "score": "0.5178624", "text": "public static function generateKey() : string;", "title": "" }, { "docid": "a893d4ed24d552dbf893f7d8b1eef9f5", "score": "0.51587903", "text": "function fetch_public_key()\n\t{\n\t\t$this->publickey = bi_powmod($this->generator, $this->privatekey, $this->prime);\n\t\treturn $this->publickey;\n\t}", "title": "" }, { "docid": "95ba96801310295b39e8ea538f8b16f6", "score": "0.5154449", "text": "protected static function wrapPrivateKey(string $publicKey, string $privateKey, $password, array $options): string\n {\n [, $checkint] = unpack('N', Random::string(4));\n\n $comment = $options['comment'] ?? self::$comment;\n $paddedKey = Strings::packSSH2('NN', $checkint, $checkint) .\n $privateKey .\n Strings::packSSH2('s', $comment);\n\n $usesEncryption = !empty($password) && is_string($password);\n\n /*\n from http://tools.ietf.org/html/rfc4253#section-6 :\n\n Note that the length of the concatenation of 'packet_length',\n 'padding_length', 'payload', and 'random padding' MUST be a multiple\n of the cipher block size or 8, whichever is larger.\n */\n $blockSize = $usesEncryption ? 16 : 8;\n $paddingLength = (($blockSize - 1) * strlen($paddedKey)) % $blockSize;\n for ($i = 1; $i <= $paddingLength; $i++) {\n $paddedKey .= chr($i);\n }\n if (!$usesEncryption) {\n $key = Strings::packSSH2('sssNss', 'none', 'none', '', 1, $publicKey, $paddedKey);\n } else {\n $rounds = $options['rounds'] ?? 16;\n $salt = Random::string(16);\n $kdfoptions = Strings::packSSH2('sN', $salt, $rounds);\n $crypto = new AES('ctr');\n $crypto->setPassword($password, 'bcrypt', $salt, $rounds, 32);\n $paddedKey = $crypto->encrypt($paddedKey);\n $key = Strings::packSSH2('sssNss', 'aes256-ctr', 'bcrypt', $kdfoptions, 1, $publicKey, $paddedKey);\n }\n $key = \"openssh-key-v1\\0$key\";\n\n return \"-----BEGIN OPENSSH PRIVATE KEY-----\\n\" .\n chunk_split(Strings::base64_encode($key), 70, \"\\n\") .\n \"-----END OPENSSH PRIVATE KEY-----\\n\";\n }", "title": "" }, { "docid": "df837ab7b87de4a96196740838ea0361", "score": "0.5149201", "text": "public function serialize()\n {\n return $this->getEncrypted();\n }", "title": "" }, { "docid": "24b554e822393032f5b58f4fce29d4bd", "score": "0.51434165", "text": "function store_new_rsa_keypair($numbits = 2048, $publicexponent = 10001) {\n\t\t\tif ($this->generate_keys_via_alt_method()) {\n\t\t\t\trequire_once(dirname(__FILE__).'/SemisecureLoginReimagined_RsaKeys_Alt.php');\n\t\t\t\t$rsakeys = new SemisecureLoginReimagined_RsaKeys_Alt($numbits);\n\t\t\t\t$this->debug_info[] = sprintf(__('The alternative method used: %s', $this->text_domain), $this->get_openssl_version());\n\t\t\t\t$debug_info = sprintf(__('OpenSSL might not have been <a href=\"%s\" target=\"_blank\">installed correctly</a>.', $this->text_domain), 'http://www.php.net/manual/en/openssl.installation.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(dirname(__FILE__).'/SemisecureLoginReimagined_RsaKeys.php');\n\t\t\t\t$rsakeys = new SemisecureLoginReimagined_RsaKeys($numbits, $publicexponent);\n\t\t\t}\n\t\t\t$keys_array = $rsakeys->get_keys_array();\n\n\t\t\t$successful = (is_array($keys_array) && is_string($keys_array['modulus']) && !empty($keys_array['modulus']) && is_int($keys_array['publicexponent']) && is_string($keys_array['publickey']) && !empty($keys_array['publickey']) && is_string($keys_array['privatekey']) && !empty($keys_array['privatekey']) && is_int($keys_array['numbits']));\n\t\t\tif ($successful) {\n\t\t\t\t$keys_array['publickey'] = $this->convert_to_php_eol($keys_array['publickey']);\n\t\t\t\t$keys_array['privatekey'] = $this->convert_to_php_eol($keys_array['privatekey']);\n\n\t\t\t\t// add/update the array to the database (WordPress takes care of serializing the array)\n\t\t\t\t$this->update_option('rsa_keys', $keys_array);\n\t\t\t}\n\t\t\telse if( isset($debug_info) ) {\n\t\t\t\t$this->debug_info[] = $debug_info;\n\t\t\t}\n\n\t\t\treturn $successful;\n\t\t}", "title": "" }, { "docid": "9693e893acff33a78ad31f9a57197d49", "score": "0.5139571", "text": "public function getPublicKey(): string;", "title": "" }, { "docid": "9693e893acff33a78ad31f9a57197d49", "score": "0.5139571", "text": "public function getPublicKey(): string;", "title": "" }, { "docid": "d055af15eb3a695a77d9c51543b091c2", "score": "0.513646", "text": "public function getNewKey();", "title": "" }, { "docid": "452b727d851229e977cbbf3f2132a4ca", "score": "0.51364267", "text": "public function importPublicKey($key);", "title": "" }, { "docid": "9a08d263c220a9c290744b53acf8bfcb", "score": "0.513559", "text": "final private function readKeypair( $location = '' ) {\n\n\t\ttry {\n\n\t\t\tclearstatcache();\n\n\t\t\tif ( trim( $location ) == '' || is_null( $location ) ) {\n\t\t\t\t/* we have no directory information */\n\t\t\t\t$this->addError( 'Error in readKeypair(): No directory name provided. Cannot read key data.' );\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$filename = $this->get( 'defaultSaveFile' );\n\t\t\t$directory = $location;\n\t\t\t$private_key_hex = '';\n\t\t\t$public_key_hex = '';\n\t\t\t$data = '';\n\n\t\t\tif ( trim( $filename ) == '' || is_null( $filename ) ||\n\t\t\t\ttrim( $directory ) == '' || is_null( $directory ) ) {\n\n\t\t\t\t\t/* we have no directory or filename information */\n\t\t\t\t\t$this->addError( 'Error in readKeypair(): No filename or directory name provided. Cannot read key data.' );\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\tif ( substr( $directory, -1 ) != '/' )\n\t\t\t\t$directory .= '/';\n\n\t\t\t$savefile = $directory . $filename;\n\n\t\t\tif ( !file_exists( $savefile ) && !is_readable( $savefile ) ) {\n\t\t\t\t$this->addError( 'Error in readKeypair(): Keypair data filename \"' .\n\t\t\t\t\t\t\t\t$savefile . '\" does not exist or is not readable. Cannot read key data.' );\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$data = file_get_contents( $savefile );\n\n\t\t\tif ( $data === false ) {\n\t\t\t\t$this->addError( 'Error in readKeypair(): Keypair data filename \"' .\n\t\t\t\t\t\t\t\t$savefile . '\" does not contain any data or is not readable.' );\n\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\t$this->addNotice( 'Keypair data successfully read from filename \"' . $savefile . '\".' );\n\t\t\t\t$data = bin2hex( base64_decode( $data ) );\n\t\t\t}\n\n\t\t\tif ( strtoupper( substr( $data, 0, 12 ) ) == '524d524d524d'\t&&\n\t\t\t\thash( 'sha256', substr( $data, 0, -64 ) ) == substr( $data, 148 ) &&\n\t\t\t\tstrlen( $data ) == 212 ) {\n\n\t\t\t\t\t/* check to ensure our data is good and hasn't been tampered with */\n\t\t\t\t\t$this->addNotice( 'Keypair data passed security checks. Appears to be valid.' );\n\n\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t\t'private_key_hex' => substr( $data, 15, 64 ),\n\t\t\t\t\t\t\t\t'public_key' => substr( substr( $data, 81, 64 ) )\n\t\t\t\t\t\t\t\t );\n\n\t\t\t} else {\n\t\t\t\t\t/* our keydata is corrupt/invalid */\n\t\t\t\t\t$this->addError( 'Error in readKeypair(): Keypair data is invalid. The file is corrupt and the data cannot be used.' );\n\n\t\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} catch ( Exception $e ) {\n\t\t\t$this->addError( 'Error in readKeypair(): ' . $e->getMessage() );\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" } ]
1eaec2b18ea28208eb8ae59cd42a74c0
Method returning the class name
[ { "docid": "fd5a3e667575567526859490cb453cb0", "score": "0.0", "text": "public function __toString()\n {\n return __CLASS__;\n }", "title": "" } ]
[ { "docid": "4d8924e94a8a2d564512afb30b05a3c2", "score": "0.889671", "text": "public function getClassname()\n {\n return get_class();\n }", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.8751826", "text": "public function getClassName();", "title": "" }, { "docid": "dd0e79d6f93b4f82af290c2713a13b1c", "score": "0.8711684", "text": "public final function getClassname(){\n $reflection = new \\ReflectionClass(get_called_class());\n return $reflection->getShortName();\n }", "title": "" }, { "docid": "10e29d4a39768c4d53d8ac0a04521807", "score": "0.868747", "text": "public function getClassName() : string\n {\n return $this->class;\n }", "title": "" }, { "docid": "da6d1ae8c871d202d2d6398d1741b7b9", "score": "0.8686066", "text": "public static function getClassName();", "title": "" }, { "docid": "99d7c3aba4181d4c9c814f6b474a3b5a", "score": "0.86592454", "text": "protected abstract function getClassname();", "title": "" }, { "docid": "ad8caa700498859e1a4d7c1bbd635a1c", "score": "0.8583503", "text": "public static function className(): string\n\t{\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "c8d9fb0fcd1629aac26d37ad4aaf83c8", "score": "0.85547686", "text": "public static function getClassName()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "73b6de012e4c14d5e2c8e59cf7e03926", "score": "0.85391426", "text": "public function getClassName()\n {\n return substr(strrchr(static::getClass(), '\\\\'), 1);\n }", "title": "" }, { "docid": "d2a8215bf40685266c440d74fc8969d1", "score": "0.85379523", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "ea96e7453aaa35be13879efdef4d6c40", "score": "0.8533229", "text": "public function getName()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "9655cfa1e1db3fb165cab725fcaa8ae7", "score": "0.852386", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "2e7c157208ac60434adec93f27e49ee6", "score": "0.85214597", "text": "final public static function className()\n\t{\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "df5aa21d7debb7e57d4e545cb1c7de10", "score": "0.8510257", "text": "protected static function _getClassName()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "08bfd1cbe8c2e656c32423fd85d0227e", "score": "0.84848446", "text": "public function getClass()\n {\n $str = get_class($this);\n $name = substr(strrchr($str,'\\\\'),1);\n return $name;\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.842587", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.842587", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.842587", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "3a65638bafaf45402e1f5ec25b32b851", "score": "0.84057397", "text": "public function get_class_name()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "07d414353dc731d150dbfeb21825201f", "score": "0.839962", "text": "public static function getClassName() {\n return self::$className;\n }", "title": "" }, { "docid": "de976041cee68b13cde39b973ade81bd", "score": "0.83940613", "text": "public function getClassName(): string;", "title": "" }, { "docid": "22646fd24a9767f0a7e584d6e6541489", "score": "0.8378198", "text": "public static function className() {\n return get_called_class();\n }", "title": "" }, { "docid": "172c1bb7a83c7711fcc10aa580d93cfb", "score": "0.8377468", "text": "static function classname()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "07740a79716099e521cf78bf83935f5b", "score": "0.83547884", "text": "public function getClassName(): string\n {\n return $this->className;\n }", "title": "" }, { "docid": "ccd2a56b05cf16cda769235dbe2ad3d8", "score": "0.832642", "text": "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "title": "" }, { "docid": "4bcaaa19a9ecd70fcb10f85ea52b5498", "score": "0.83199215", "text": "public function getName()\n {\n $className = get_called_class();\n\n return preg_replace('/[^\\w]/', '', $className);\n }", "title": "" }, { "docid": "c9e898430c810c37c50f12ead9c9bc20", "score": "0.83107644", "text": "public function getClassName() {\r\n\t\treturn $this->className; \r\n\t}", "title": "" }, { "docid": "5db04ca9ba5ad87ba4f32c170b97753c", "score": "0.82873", "text": "public function getClassName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.82723767", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.82723767", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.82723767", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.82723767", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "dcaa502da1b781beb62aae18ab31a04c", "score": "0.8258774", "text": "public function getName(): string\n {\n return get_called_class();\n }", "title": "" }, { "docid": "3f45084730a27b0b1327f9ffe82f66de", "score": "0.82478315", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "c9a1b5a8b9ba2aef4ea88d98f38c96ee", "score": "0.82474595", "text": "public static function staticGetClassName()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "e1a263835209aa278160c040fa8125ff", "score": "0.8242594", "text": "public function getClassName() {\n return $this->className;\n }", "title": "" }, { "docid": "3b2743e628ae7853910519e5bf28ee20", "score": "0.8240572", "text": "function getClassName() {\n if ($this->_className == '')\n return get_class($this);\n else\n return $this->_className;\n }", "title": "" }, { "docid": "882d8e42dc92dba29a73aeebb6a460b4", "score": "0.8216659", "text": "public function getClassName()\n {\n trigger_error('Not implemented', E_WARNING);\n\n return '';\n }", "title": "" }, { "docid": "49df58ef0b6394657411dc8662f77ba1", "score": "0.81827426", "text": "public function getClassName() {\n return $this->className;\n }", "title": "" }, { "docid": "6905ea1addccb5d80dda7f383a36451a", "score": "0.8170577", "text": "protected abstract function getClassName(): string;", "title": "" }, { "docid": "1745ebde105a5b2fe47747bbf39bef5d", "score": "0.81689745", "text": "public function getClassName()\n {\n return (new ReflectionClass($this))->getShortName();\n }", "title": "" }, { "docid": "ca622bd6f0493d485bea0e7e4f9d5071", "score": "0.8166769", "text": "protected static function getClassName() {\n\t\t$reflector = new ReflectionClass(static::class);\n\t\treturn $reflector->getShortName();\n\t}", "title": "" }, { "docid": "798697eb217048d0bb1502591d289316", "score": "0.81647563", "text": "public function getClassName()\n {\n $cNamespaceInfo = (array)explode('\\\\', get_called_class());\n return end($cNamespaceInfo);\n }", "title": "" }, { "docid": "9270bfbb19a87094508d3abe1b37d90b", "score": "0.81629294", "text": "public static function className()\n {\n $x = explode('\\\\', get_called_class());\n return end($x);\n }", "title": "" }, { "docid": "76ce6e81d7dfbc91e0f3a03def0e0144", "score": "0.81625545", "text": "public function getClassName()\n\t{\n\t\treturn $this->get('ClassRef FullName');\n\t}", "title": "" }, { "docid": "cfc58e61e706b7891eba32a3fb175797", "score": "0.8131588", "text": "public function className();", "title": "" }, { "docid": "8a09352d9e005be82ef85731d32b56da", "score": "0.8113793", "text": "public static function getClassName()\n {\n return strtolower(array_slice(explode('\\\\', static::class), -1, 1)[0]);\n }", "title": "" }, { "docid": "add7a5345805902bb99cfe5b9ad762b2", "score": "0.80785877", "text": "public function getClassName()\n {\n return stubClassLoader::getFullQualifiedClassName(get_class($this));\n }", "title": "" }, { "docid": "3a540ff98da957fcb0afe8b3362505ec", "score": "0.8077396", "text": "public function className() {\n return $this->reflection()->getName();\n }", "title": "" }, { "docid": "426c9ab0279350bc8424fa44230563eb", "score": "0.80426514", "text": "abstract public function getClassName(): string;", "title": "" }, { "docid": "426c9ab0279350bc8424fa44230563eb", "score": "0.80426514", "text": "abstract public function getClassName(): string;", "title": "" }, { "docid": "44e2f9297117fd9b39f0d727eb71be2c", "score": "0.8019749", "text": "protected static function className(): string\n\t{\n\t\t$reflection = new \\ReflectionClass(static::class);\n\t\treturn mb_strtoupper($reflection->getShortName());\n\t}", "title": "" }, { "docid": "7fbeb26a1f1659079c8551083b53ad94", "score": "0.80097586", "text": "public function getFullClassName()\n {\n return str_replace('\\\\', '', get_called_class());\n }", "title": "" }, { "docid": "f0b4a4c4f5e757fb7ccdddb0968d5957", "score": "0.8007939", "text": "public function clazz_name() {\n\t\treturn $this->clazz;\n\t}", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.79777026", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.79777026", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "9f1730fb3ffcf1683d20a243b9ddfac3", "score": "0.79634786", "text": "public function get_name() { return get_class($this); }", "title": "" }, { "docid": "84e6f495a10d62e9af944e8e2f32a66f", "score": "0.7958596", "text": "public function getName() {\n\t\treturn $this->className;\n\t}", "title": "" }, { "docid": "28a0b37f876b3eb7eeeab54386d2fefe", "score": "0.7945775", "text": "public function name()\n {\n $className = class_basename($this);\n\n if (substr($className, -6) === 'Source') {\n $className = substr($className, 0, -6);\n }\n\n return Str::snake($className);\n }", "title": "" }, { "docid": "fee2d8e4baff3427d3afaf74efd7a999", "score": "0.7945422", "text": "abstract protected function getClassName(): string;", "title": "" }, { "docid": "c6289f909aaaf4788a56bfc53c4aef56", "score": "0.79383403", "text": "public function type()\n\t{\n\t\t$className = get_class($this);\n\t\t$lastSlash = strrpos($className, '\\\\');\n\n\t\tif ($lastSlash)\n\t\t{\n\t\t\t$className = substr($className, $lastSlash + 1);\n\t\t}\n\n\t\treturn strtolower($className);\n\t}", "title": "" }, { "docid": "c55a4cd199f035f6bf933623c4fbc631", "score": "0.7934142", "text": "private function getClassName()\n {\n return (new \\ReflectionClass($this->model))->getShortName();\n }", "title": "" }, { "docid": "ffeba375d5c31ee356ad7ca8ea8b1bcc", "score": "0.79220945", "text": "public function getClass()\n {\n return $this->className;\n }", "title": "" }, { "docid": "0c0567826fca9232476d8b25b303b4e0", "score": "0.79054004", "text": "public function __getClass() : string {\n\t\t\treturn get_called_class();\n\t\t}", "title": "" }, { "docid": "1e28ddcad38c0e6501458bd7f898b89c", "score": "0.7862466", "text": "public function getClassName(): string\n {\n return $this->getWrapped()->{__FUNCTION__}(...func_get_args());\n }", "title": "" }, { "docid": "94bb6bdcb9775a2dfa4480a562dc6374", "score": "0.78579766", "text": "public function name()\n {\n $className = $this->generateClassName();\n\n if (!class_exists($className)) {\n eval($this->code());\n }\n\n return $className;\n }", "title": "" }, { "docid": "c222a795c707024158cd8e04550420cd", "score": "0.7847086", "text": "public static function className()\n\t{\n\t\treturn static::class;\n\t}", "title": "" }, { "docid": "18c484336de2fb419dfd1d3eae97ac54", "score": "0.78054357", "text": "function get_class_name(string $class): string {\n return (new ReflectionClass($class))->getShortName();\n}", "title": "" }, { "docid": "6d962e5db1099644a96a97143411fe18", "score": "0.7798017", "text": "protected function getClassName(){\n\n $modelClass = new ReflectionClass($this);\n\n return strtolower($modelClass->getShortName());\n }", "title": "" }, { "docid": "9121d42897939fbc75e361db85b04215", "score": "0.77927613", "text": "function getClass() {\n return $this->className;\n }", "title": "" }, { "docid": "b3769b5bbb5b6fabf79f15c5e7fc51ec", "score": "0.7782412", "text": "function getName()\n {\n return get_class($this);\n }", "title": "" }, { "docid": "0f1df7487a0505a621d674117677e492", "score": "0.77629346", "text": "private function pullClassName(): string\n {\n return $this->getClassNode()->getAttribute('name');\n }", "title": "" }, { "docid": "4e0c92befa06043241067b8744672557", "score": "0.7762256", "text": "protected static function _name($class) {\n\t\treturn basename(str_replace('\\\\', '/', $class));\n\t}", "title": "" }, { "docid": "de4c93afc00f3db7bdf12e623a2d4f45", "score": "0.7743823", "text": "public function getName()\n {\n return get_class($this);\n }", "title": "" }, { "docid": "8de47f63307e78f5c007d11b06bde44c", "score": "0.76969033", "text": "public function getType(): string\n {\n $fullClassName = get_called_class();\n $classNameParts = explode('\\\\', $fullClassName);\n\n // Return class name without namespace in it (if it's present)\n return isset($classNameParts[count($classNameParts) - 1])\n ? $classNameParts[count($classNameParts) - 1]\n : $fullClassName;\n }", "title": "" }, { "docid": "9e6cf5a0d77f191d01a10711faf5c735", "score": "0.76902294", "text": "public function getName()\n\t{\n\t\treturn get_class($this);\n\t}", "title": "" }, { "docid": "9e6cf5a0d77f191d01a10711faf5c735", "score": "0.76902294", "text": "public function getName()\n\t{\n\t\treturn get_class($this);\n\t}", "title": "" }, { "docid": "b0e9c936a79f12b9bbdac77dce0ef85f", "score": "0.763557", "text": "public function getClassName(): string\n {\n return $this->namingStrategy->getBeanClassName($this->foreignKey->getForeignTableName());\n }", "title": "" }, { "docid": "a45174ac2abd363590b49021150b8906", "score": "0.7617912", "text": "public function getClass()\n {\n $nsClass = get_class($this);\n\n $class = substr($nsClass, strrpos($nsClass, \"\\\\\") + 1);\n\n return $class;\n }", "title": "" }, { "docid": "9c5e3c60f4f0f2fda992e10058fd1c00", "score": "0.7617725", "text": "public static function getClassName( $class ){\n\t\tif( ARMValidation::isString($class) )\n\t\t\treturn $class;\n\n\t\t$ref = new ReflectionClass($class);\n\t\treturn $ref->getName() ;\n\t}", "title": "" }, { "docid": "bfd7ec16eaec50ea25c73cebdfa1bd5c", "score": "0.757437", "text": "public function getAMFClassName();", "title": "" }, { "docid": "fa038fbf02ccd696b9fc96eafe79ceae", "score": "0.7568462", "text": "protected function getClassNamePlaceHolder(): string\n {\n return \"{class}\";\n }", "title": "" }, { "docid": "dfd87a71f4624d433eea51a4c814740f", "score": "0.7550842", "text": "public function getClass(){\r\n\t\treturn __CLASS__;\r\n\t}", "title": "" }, { "docid": "154b5109c5d79b53e4e68e3d0f24670e", "score": "0.75482124", "text": "public function getClassName()\n {\n return get_class($this->product);\n }", "title": "" }, { "docid": "7c9fdf07acee5346dea1e5a98086e3f5", "score": "0.75434625", "text": "public function getClass()\n {\n return substr(strrchr($this->type, '\\\\'), 1);\n }", "title": "" }, { "docid": "0bfec24a538c0a0ce2d836ec1ae3221e", "score": "0.7541643", "text": "public function type()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "c5a6f6ade32ad01eb4d051c551543707", "score": "0.7535645", "text": "function __toString()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "179a96c1151cad893387a31fde816d3c", "score": "0.7525236", "text": "public static function label()\n {\n return Str::singular(class_basename(get_called_class()));\n }", "title": "" }, { "docid": "179a96c1151cad893387a31fde816d3c", "score": "0.7525236", "text": "public static function label()\n {\n return Str::singular(class_basename(get_called_class()));\n }", "title": "" }, { "docid": "8aa0855d070ad6f41676499ddce49a55", "score": "0.75216836", "text": "public function get_class($class);", "title": "" }, { "docid": "5c064a70e99cd762fd68045011e5bd8d", "score": "0.751674", "text": "public function getBaseClassName()\n {\n $className = get_class($this);\n $nameSpaces = Core_Model_Loader::getNameSpaces();\n $parts = explode('_', $className);\n\n foreach ($nameSpaces as $nameSpace) {\n if ($parts[0] === $nameSpace) {\n unset($parts[0]);\n break;\n }\n }\n\n return implode('_', $parts);\n }", "title": "" }, { "docid": "00e283ea16e0775e190e0a1de75c7448", "score": "0.7514887", "text": "public function getName()\n {\n return str_replace(\"\\\\\", \"_\", get_class($this));\n }", "title": "" }, { "docid": "704b3bcef2ef98e37feeec6a456b56d6", "score": "0.74951893", "text": "protected function getFileName(): string\n {\n return $this->getClassName() . \".php\";\n }", "title": "" }, { "docid": "e516cf64af508b729275a1fbf3b62828", "score": "0.749138", "text": "public function getClassName()\n\t\t\t\t{\n\t\t\t\t\t\treturn get_class($this->product);\n\t\t\t\t}", "title": "" }, { "docid": "274f8d9c450f6d60e26c405e5c78c379", "score": "0.74824655", "text": "public function getCamelCaseName()\n {\n $class_name = get_class($this);\n $class_name = substr($class_name, 0, -4);\n \n return $class_name;\n }", "title": "" }, { "docid": "ab03b8d5174486f7a07ae7f99df226a9", "score": "0.7474704", "text": "public function __toString()\n {\n return __CLASS__;\n }", "title": "" } ]
443790fe4eff68bbf234e55549642de1
Get a post parameter
[ { "docid": "a38f9dbca503533d8d1d82a7ba2ad462", "score": "0.0", "text": "public function post(string $key)\n {\n return $_POST[$key] ?? NULL;\n }", "title": "" } ]
[ { "docid": "c4b067f086ab690554bf6a271d1f04e0", "score": "0.7692516", "text": "private function getPost($param) {\n return Tools::getValue($param);\n }", "title": "" }, { "docid": "8e4ad6be07cff4657862b0be6f789cf5", "score": "0.71959573", "text": "public static function getPostParameter($parameter){\n if(isset($_POST[$parameter])) {\n return $_POST[$parameter];\n }\n else\n return '';\n }", "title": "" }, { "docid": "b19f9b35a3ece5da6ea81808a0572b76", "score": "0.69965786", "text": "function get_post($name){\n\t\t\tif(isset($_POST[$name])){\n\t\t\t\treturn $_POST[$name];\n\t\t\t}else{\n\t\t\t\treturn $_GET[$name];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "29120334edf84361b1dcda2bc042cd21", "score": "0.69911426", "text": "public function getParameter()\n {\n return $this->parameter;\n }", "title": "" }, { "docid": "29120334edf84361b1dcda2bc042cd21", "score": "0.69911426", "text": "public function getParameter()\n {\n return $this->parameter;\n }", "title": "" }, { "docid": "3b4baf93ad44141ee3393b3992f93394", "score": "0.69214743", "text": "public function getParameter() {\n return $this->parameter;\n }", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6906413", "text": "public function getParameter();", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6906413", "text": "public function getParameter();", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6906413", "text": "public function getParameter();", "title": "" }, { "docid": "bb947763093a8281210529a80a0e9513", "score": "0.682241", "text": "public function getParameter($name);", "title": "" }, { "docid": "5101640c01dfda8eae57f4b58d55b7a8", "score": "0.6798649", "text": "public function getParam($param) {\n if ($this->isParamExist($param))\n return $this->request['params'][$param];\n else\n $this->setError('Parameter', \"This param $param=value not posted in URL !\");\n }", "title": "" }, { "docid": "685d37ddcc30c005555f8e616b88eb81", "score": "0.6788082", "text": "function get_post_get_param()\n{\n\t$this->get_post_get_action();\n\t$this->get_post_get_query();\n\t$this->get_post_get_andor();\n\t$this->get_post_get_uid();\n\t$this->get_post_get_mid();\n\t$this->get_post_get_start();\n\t$this->get_post_get_mids();\n\t$this->get_post_get_showcontext();\n}", "title": "" }, { "docid": "2108d88ee8a68a8274e45a733a350196", "score": "0.67268443", "text": "function getPost($name){\n return $_POST[$name];\n }", "title": "" }, { "docid": "f6336d535f9a1bd3cc2ddba3f9c35cb0", "score": "0.67040455", "text": "public function getPostParameters()\n {\n return $this->postParameter;\n }", "title": "" }, { "docid": "e80c227c4e22d9b28d1586b04b6391ef", "score": "0.66922003", "text": "public function getParameter($name) {\n\t\treturn isset($_REQUEST[$name]) ? $_REQUEST[$name] : null;\n\t}", "title": "" }, { "docid": "cb41634b7d19d0d06d368fe6c8213b91", "score": "0.65917987", "text": "public function getPostParams();", "title": "" }, { "docid": "307b9c184da6417374208d15c07a2181", "score": "0.65852404", "text": "function get_param($key){\n return $this->params[$key];\n }", "title": "" }, { "docid": "65d05490a2607344e25c9cd8be3b46b7", "score": "0.6560701", "text": "public function getParameter($parameter) {\n $value = NULL;\n if ($parameter != NULL) {\n if (isset($this->params[$parameter])) {\n $value = $this->params[$parameter];\n }\n }\n if (is_null($value)) {\n if (isset($_POST[$parameter])) {\n $value = $_POST[$parameter];\n }\n }\n if (is_null($value)) {\n if (isset($_GET[$parameter])) {\n $value = $_GET[$parameter];\n }\n }\n if (is_string($value)) {\n $value = urldecode($value);\n }\n return $value;\n }", "title": "" }, { "docid": "9951ea57f7527aa914854a7de484a3e1", "score": "0.6540114", "text": "private function getParameter($name)\n {\n return $this->parameters[$name];\n }", "title": "" }, { "docid": "68e81c0d1867630f748e354bcc47f7f2", "score": "0.64953405", "text": "public function getPostVariable($key, $defaultValue = null);", "title": "" }, { "docid": "de10e835db8240b08d2aabd675e8af30", "score": "0.64762694", "text": "public function param($name)\n\t{\n\t\tif(isset($_POST[$name]))\n\t\t{\n\t\t\treturn $_POST[$name];\n\t\t}\n\t\tif(isset($_GET[$name]))\n\t\t{\n\t\t\treturn $_GET[$name];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6bd6442af17ef92cb1049e90490052c8", "score": "0.64708614", "text": "public function getParameter($name)\n {\n return $this->helper->getParameter($name);\n }", "title": "" }, { "docid": "7157f815cdd63b0ebe0841a1ef20f610", "score": "0.6470649", "text": "public static function getPost($name,$defaultValue=''){\n return Yii::app()->request->getPost($name,$defaultValue);\n \n }", "title": "" }, { "docid": "ab6a74be824d34ca9f7c2250a77a8be5", "score": "0.64651203", "text": "public function getParameter($name)\n {\n if (isset($_REQUEST[$name])) {\n return $_REQUEST[$name];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "7f0c35878e50d12c99d2f5980632797c", "score": "0.64614934", "text": "public function getRouteParameter()\n {\n return $this->request->attributes->get('_route_params');\n }", "title": "" }, { "docid": "2e90225ac762d019a162a2517224409b", "score": "0.64375836", "text": "public function getParameter($parameterName){\n return $this->params->get($parameterName);\n }", "title": "" }, { "docid": "c37a82c5080f9c249a44e78ddb764d59", "score": "0.643746", "text": "function get_parameter($name)\r\n {\r\n return $this->parameters[$name];\r\n }", "title": "" }, { "docid": "ce0c562ef9995b3127c69c0c869c1839", "score": "0.6427361", "text": "private function get_post($name) {\n\t\tif(isset($_POST[$name])) {\n\t\t\treturn $_POST[$name];\n\t\t}\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "ca89e38dc7df590030180d580d22038a", "score": "0.6411476", "text": "public function getParameter($name)\n {\n if (isset($this->parameters[$name])) {\n return $this->parameters[$name];\n }\n }", "title": "" }, { "docid": "173e1811c500f0bc0ddf769e98a07430", "score": "0.63934726", "text": "function getParameter($name, $default = null)\r\n{\r\n return isset($_GET[$name]) ? $_GET[$name] : $default;\r\n}", "title": "" }, { "docid": "841e4dcc5295a2478ca858926e9a2360", "score": "0.63821465", "text": "function getPost(string $key = null);", "title": "" }, { "docid": "fa61c427e000282a1388af7a929b389a", "score": "0.63630474", "text": "public function getParam($name)\n {\n return $this->url->getParam($name);\n }", "title": "" }, { "docid": "aa332ce3ced0988eace1232301b9916e", "score": "0.636083", "text": "public function getParameter($name)\n {\n return (isset($this->routeParams[$name])) ? $this->routeParams[$name] : null;\n }", "title": "" }, { "docid": "7b630904d4d7d97fe2e32f0e4813f9b1", "score": "0.63601816", "text": "public function getParam(string $name);", "title": "" }, { "docid": "e54eea7f4ab0be10c06237964894de2e", "score": "0.63533425", "text": "function getParameter( $sParameterName )\n{\n\n\t$sRequestMethod = $_SERVER['REQUEST_METHOD'];\n\n\t//* Find out what request method we are using\n\tif ( $sRequestMethod == \"POST\" )\n\t{\n\t\t//* We are using POST\n\t\tlog_debug(\"getParameter( $sParameterName ) = $_POST[$sParameterName]\");\n\t\treturn $_POST[$sParameterName];\n\t}\n\telse\n\t{\n\t\t//* We are using GET\n\t\tlog_debug(\"getParameter( $sParameterName ) = $_GET[$sParameterName]\");\n\t\treturn $_GET[$sParameterName];\n\t}\n\n}", "title": "" }, { "docid": "2b4adb509cad736ee9610560b1d32b56", "score": "0.63496155", "text": "public function getParam($place) {\n\t\treturn Val::safe($this->getParamRaw($place));\n\t}", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.6348678", "text": "public function getParam($name);", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.6348678", "text": "public function getParam($name);", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.6348678", "text": "public function getParam($name);", "title": "" }, { "docid": "52ae2274ae45b0c9e490fa38cee7cabd", "score": "0.6345028", "text": "public static function getParameter($fieldName,$defaultValue=\"\") {\n\t\treturn isset($_GET[$fieldName]) ? $_GET[$fieldName] : $defaultValue;\n\t}", "title": "" }, { "docid": "5aba2bb30f2509966d0ee6085a71f848", "score": "0.6334229", "text": "public function getParam($p, $default=false){\n $param = \"\";\n\n\n if (isset($_GET[$p])){\n $param = trim($_GET[$p]);\n } else {\n if (isset($_POST[$p])){\n $param = trim($_POST[$p]);\n } else {\n // Check if there is a $p in out inputs\n if (isset($this->input->$p)){\n if (!is_array($this->input->$p)){\n $param = trim($this->input->$p);\n } else {\n $param = $this->input->$p;\n }\n }\n } \n }\n\n if ($param == \"\"){\n if ($default){\n return $default;\n } else {\n return false;\n }\n } else {\n return $param;\n }\n }", "title": "" }, { "docid": "490e22f576453a7c09abbe3fecf6bb03", "score": "0.6332357", "text": "function getarg($key){\n global $args;\n $res=(isset($_POST[$key])) ? $_POST[$key] :\n (\n (isset($_GET[$key])) ? $_GET[$key] :\n (\n (isset($args[$key])) ? $args[$key] : null\n )\n );\n return $res;\n}", "title": "" }, { "docid": "4215df4810b99720fce34dfb30f92d31", "score": "0.63263494", "text": "public static function getPostVar($name) {\n\t\tif(isset($_POST[$name])){\n\t\t\treturn $_POST[$name];\n\t\t} \n\n\t\treturn false;\t\n\t}", "title": "" }, { "docid": "6bcd8c209e5c83b72e624c10f9f60a39", "score": "0.63210815", "text": "public static function getParam($name,$defaultValue=''){\n return Yii::app()->request->getParam($name,$defaultValue);\n }", "title": "" }, { "docid": "35bd0a90508790a118529eb6c00065fd", "score": "0.6303651", "text": "public function getParameter($key) {\n return $this->has($key) ? $this->parameters[$key] : null;\n }", "title": "" }, { "docid": "f2051ce3f434ea1f1dbefd0e72d15103", "score": "0.62997425", "text": "public function getParameter() {\n if ($this->parameter instanceof RouteParameter) {\n return $this->parameter->getName();\n }\n return null;\n }", "title": "" }, { "docid": "089cda2f0720e1ed9ce33b364de85f61", "score": "0.6296162", "text": "public function getParameter($name)\n {\n $parameters = $this->getParameters();\n return isset($parameters[$name]) ? $parameters[$name] : null;\n }", "title": "" }, { "docid": "9f43b2b5154dfe7b41af99a831629fb5", "score": "0.62931573", "text": "function getParam($name)\n\t{\n\t\tif(isset($_REQUEST[$name]))\n\t\t\treturn $_REQUEST[$name];\n\t\treturn '';\n\t}", "title": "" }, { "docid": "e7e2ee2b6b99404e8d7372f76d161fca", "score": "0.6290009", "text": "public function getParameter($key);", "title": "" }, { "docid": "b1c4af787bad351635d3cfc49fbead70", "score": "0.62819934", "text": "function getPostValue(...$list)\n{\n\tforeach($list as $param)\n\t{\n\t\tif (isset($_POST[$param])) return $_POST[$param];\n\t}\n\treturn NULL;\n}", "title": "" }, { "docid": "50e920bce753b24c9c3d2edd88e8ad62", "score": "0.62815714", "text": "function getParam($name)\n {\n return $this->parameters[$name];\n }", "title": "" }, { "docid": "88dd9ea45d92b314b36c990b0abb15cb", "score": "0.6278559", "text": "public function getParameter($field)\n {\n return $this->parameters[$field];\n }", "title": "" }, { "docid": "fc65bf8c5b1853bd94f0fada258cda49", "score": "0.6278084", "text": "public final function getParameter($index)\n {\n return array_key_exists($index, $this->parameters) ? $this->parameters[$index] : null;\n }", "title": "" }, { "docid": "340dc1984f389a70d7cfad4a50830bd9", "score": "0.6258969", "text": "function getParam($key, $default = null)\n {\n if (isset($this->_params[$key])) {\n return $this->_params[$key];\n } elseif (isset($_GET[$key])) {\n return $_GET[$key];\n } elseif (isset($_POST[$key])) {\n return $_POST[$key];\n } elseif (isset($_REQUEST[$key])) {\n return $_REQUEST[$key];\n } else {\n return $default;\n }\n }", "title": "" }, { "docid": "0e21887f0c021feca3d8d19f7f528d68", "score": "0.6228859", "text": "public function getParam(string $key);", "title": "" }, { "docid": "660fbd60daabaccd44ff716d7f35c7a0", "score": "0.6226772", "text": "public function GetPassByPost( $nomVar =\"\" ){\n $UnId = 0;\n\t\n $nomVar = str_replace(\" \", \"\",$nomVar );\n\t\n if ( $nomVar != \"\" )\n\t if ( $_SERVER['REQUEST_METHOD'] == 'POST') \n $UnId= ( isset($_POST[$nomVar]) ) ? $_POST[$nomVar] :0; \n \n $UnId=utf8_decode($UnId);\n \n return $UnId; \n \n}", "title": "" }, { "docid": "0b3fb8fa42867457e442802ac97883e8", "score": "0.622271", "text": "protected function getParameter(string $name)\n {\n return $this->data[$name] ?? null;\n }", "title": "" }, { "docid": "8ccc0ce5da5fed54be22c21872decc1e", "score": "0.62177444", "text": "function _getParameter( $name, $default='' ) {\r\n $return = \"\";\r\n $return = $this->params->get( $name, $default );\r\n return $return;\r\n }", "title": "" }, { "docid": "6bd62728c8bc54aa9088f9487f0f9322", "score": "0.62096095", "text": "public function getPost(): Parameters\n\t{\n\t\treturn $this->post;\n\t}", "title": "" }, { "docid": "b31d694567fcf82fceb81670633c506d", "score": "0.6202414", "text": "function getValue($key) {\n\t$value = $_GET[$key];\n\tif (empty($value)){\n\t\t$value = $_POST[$key];\n\t}\n\treturn $value; \n}", "title": "" }, { "docid": "39dbff3d948d678c2cd916af54a2bd23", "score": "0.61985505", "text": "function getParam($index)\n {\n return $this->params[$index];\n }", "title": "" }, { "docid": "557f0ae6d0fc0dd116b00f53096639fd", "score": "0.61907566", "text": "public function getParameter(string $name): ?string { }", "title": "" }, { "docid": "7ba3b75d09a3cb81f41866132c9858d6", "score": "0.618044", "text": "function get_parameter($param)\n{\n if (isset($_POST[$param])) {\n //if the phone field exists the value will always be returned\n if ($param === 'phone') {\n return $_POST[$param];\n }\n // if these fields exist they MUST have input (ie can't be empty)\n if (!empty($_POST[$param])) {\n return $_POST[$param];\n } else {\n return false;\n }\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "a2bb4d165ae3b38a3e5a6c53d8d083cc", "score": "0.6169181", "text": "public function getParam($key);", "title": "" }, { "docid": "db59b0039d09d8e18c9e9cca590d4f90", "score": "0.6164058", "text": "function fc_get_form_value($name, $default = ''){\n\tglobal $wp_query;\n\t$p = $_POST;\n\t$g = $_GET;\n\tif(empty($p)) $p = $_SESSION['old_post'];\n\tif(empty($g)) $g = $_SESSION['old_get'];\n\tif(is_array($p) && isset($p[$name]))\n\t\t$value = $p[$name];\n\telseif(is_array($g) && isset($g[$name]))\n\t\t$value = $g[$name];\n\telseif(isset($wp_query->query_vars[$name]))\n\t\t$value = $wp_query->query_vars[$name];\n\telse\n\t\t$value = $default;\n\treturn $value;\n}", "title": "" }, { "docid": "7c156d3a23bb9e02399baf35dbff6c27", "score": "0.6163784", "text": "public function getParameter($name)\n {\n if (!isset($this->params[$name])) {\n return null;\n }\n\n return $this->params[$name];\n }", "title": "" }, { "docid": "999709fefc89ae24292ac178aa04659b", "score": "0.6150807", "text": "public function getParam($name) {\n $val = null;\n if ($this->paramExists($name)) {\n $val = $this->components['query'][$name];\n }\n return $val;\n }", "title": "" }, { "docid": "f785c44452ef1a5208e4c7709404d217", "score": "0.6150293", "text": "public function parameter($parameter)\n {\n return request($parameter) ?: ($this->parameters[$parameter] ?? null);\n }", "title": "" }, { "docid": "df68fba26fb2728bde78e5accb3b5ff9", "score": "0.6139298", "text": "function getParam($key) \n\t\t{\n\t\t\tif(array_key_exists($key, $this->_params)) {\n\t\t\t\treturn $this->_params[$key];\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "77d9ebfe6d8f906e61bf3b4021534d3a", "score": "0.6129288", "text": "private function postValue($key)\r\n {\r\n return (isset($this->request->post[$key]) ? $this->request->post[$key] : null);\r\n }", "title": "" }, { "docid": "0f10518c4dd475fa7fa640b0aedbddba", "score": "0.61264044", "text": "private function retrievePOSTParams()\n {\n $postParams = new stdClass();\n\n if (isset($uriParams[1])) {\n foreach ($_POST as $key => $param) {\n $postParams->$key = $param;\n }\n\n return $postParams;\n }\n\n return $postParams = null;\n }", "title": "" }, { "docid": "bea0f3e6338526f608f6ef2333c3c528", "score": "0.6123493", "text": "function getFieldValue($field) {\n return $_POST($field);\n}", "title": "" }, { "docid": "25663c50bcf4f4974c6c8791cdcc8ece", "score": "0.6122287", "text": "final public function getParam($param_name){}", "title": "" }, { "docid": "0fc0470363c9f6d827633c5196948097", "score": "0.6117567", "text": "private function getParam($param_name) {\n return $this->_request->getParam($param_name, FALSE);\n }", "title": "" }, { "docid": "8b9ce1981e7f2c3c966d7a2ea6bfd92d", "score": "0.61102825", "text": "function get_post_data($key = '')\n\t{\n\t\tif (isset($_POST[$key])) {\n\t\t\treturn $_POST[$key];\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "3ca838d82bbb23a5ddf02fd77586d6e0", "score": "0.61087316", "text": "public function getFromPost(string $name, $default = null);", "title": "" }, { "docid": "cb92b48b0aa97ed58b2b98fabfa47acc", "score": "0.60937506", "text": "private function getParam($param) {\n\t\treturn craft()->request->getParam($param) \n\t\t\t?: (array_key_exists($param,$this->twigAtts) ? $this->twigAtts[$param] : $this->settings[$param]);\n\t}", "title": "" }, { "docid": "81093bda6d545d6341f89183d4b892e8", "score": "0.6088575", "text": "public function getParam($key) {\n return (array_key_exists($key, $this->params)) ? $this->params[$key] : null;\n }", "title": "" }, { "docid": "50bbb1425902d57e7677faaf3fa6406f", "score": "0.607273", "text": "function getParam($key) {\r\n return ($this->getProperties()->get($key));\r\n }", "title": "" }, { "docid": "d4a36b271401c7ce05975cd285b05b54", "score": "0.6061611", "text": "protected function getParameter($name, $default = null)\n\t{\n\t\treturn isset($this->parameters[$name]) ? $this->parameters[$name] : $default;\n\t}", "title": "" }, { "docid": "59777c6a3904e02ac370e69eeb24824a", "score": "0.6060785", "text": "public function get($param = null) {\n if (!empty($param) && array_key_exists($param, $this->parameters)) {\n return $this->parameters[$param];\n }\n return false;\n }", "title": "" }, { "docid": "ad8b4c27a4409a24505d6924ceccbb03", "score": "0.6060459", "text": "function post($key, $default=null) { \n\t\treturn getval($key,$_POST,$default);\n\t}", "title": "" }, { "docid": "6690615caab9c4243b95c5e5fb7a13ac", "score": "0.6058439", "text": "function get_var($name, $default = 'none') {\n return (isset($_GET[$name])) ? $_GET[$name] : ((isset($_POST[$name])) ? $_POST[$name] : $default);\n}", "title": "" }, { "docid": "abb4adbf643ea7d67745b94076ae5b45", "score": "0.60481584", "text": "function getRequestValue($name, $method = 1){\n\t$value = '';\n\tif($method == 1){\n\t\t$value = isset($_GET[$name]) == true ? $_GET[$name] : \"\";\n\t}else{\n\t\t$value = isset($_POST[$name]) == true ? $_POST[$name] : \"\";\n\t}\n\treturn $value;\n}", "title": "" }, { "docid": "190c6763c5045cde2c8c36598017c955", "score": "0.60457295", "text": "protected function getValue()\n {\n $value = $this->getCurrentRequest()->query->get($this->name);\n\n if (null === $value) {\n return $this->getOption('default_value');\n }\n\n return $value;\n }", "title": "" }, { "docid": "a76d5b1c14fe4b41f893ff355a2e69d5", "score": "0.6045029", "text": "public function GetPost($pKey, $pDefaultValue = NULL)\n {\n if (isset($_POST[$pKey])) {\n return $_POST[$pKey];\n }\n return $pDefaultValue;\n }", "title": "" }, { "docid": "42136144ec35c3f80c7a27fbb070a2c7", "score": "0.6042239", "text": "public function getParameter()\r\n {\r\n if ($this->_parameter === null) {\r\n /** @see Zend_Di_Parameter **/\r\n require_once 'Zend/Di/Parameter.php';\r\n $this->setParameter(new Zend_Di_Parameter());\r\n }\r\n return $this->_parameter;\r\n }", "title": "" }, { "docid": "4ece0687f5a7e89ae757c0e5b0d99251", "score": "0.60374147", "text": "function GetUrlParameterValue( $name, $def = null )\n\t{\n\t\t$result = $def;\n\t\tif ( $this->IsUrlParameterExists( $name ) )\n\t\t{\n\t\t\t$result = $this->parameters[ $name ] ;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "5696fbbb5d61ae554974480c094dcd46", "score": "0.60298294", "text": "public function getPageParam()\n {\n return $this->pageParam;\n }", "title": "" }, { "docid": "d8fdb41bec011023cb35fe3b042bacb7", "score": "0.602475", "text": "public function getParam($index) {\n return isset($this->params[$index]) ? $this->params[$index] : null;\n }", "title": "" }, { "docid": "cc07fd3687bc762de6ebb98c81edd135", "score": "0.6020757", "text": "public function getParameter($id);", "title": "" }, { "docid": "9ffa7b3cff48dfe3a8764289c54c5ee0", "score": "0.6013246", "text": "public function getParameter(): Parameter\n {\n return $this->parameter;\n }", "title": "" }, { "docid": "b4e4f71703a798893c21c0dffe5f5667", "score": "0.60108143", "text": "public function param($key, $def){\n \n $param = isset($_GET[$key]) ? $_GET[$key] : $def;\n if (empty($param)){\n $param = isset($_POST[$key]) ? $_POST[$key] : $def;\n }\n \n return $param;\n }", "title": "" }, { "docid": "1222ddedeb874a065d23ff365017f630", "score": "0.6005213", "text": "public function getParameter($key, $default = null)\n {\n return isset($this->parameters[$key]) ? $this->parameters[$key] : $default;\n }", "title": "" }, { "docid": "21605177968fb20db1bd3f3471ec8adb", "score": "0.6002411", "text": "public function getParameterIdent() {\r\n\t\treturn $this->parameterIdent;\r\n\t}", "title": "" }, { "docid": "fe4d80fdb1c0a527ca4dbe7c9983fd3a", "score": "0.59714735", "text": "public function get_param(string $param_name) {\r\n\t\t$record = $this->field(['*'])->table(['gift_default_params'])->where(['id'=>1])->one();\r\n\t\treturn $record[$param_name] ?? null;\r\n\t}", "title": "" }, { "docid": "37465c60ef97b8b09fc95474adf1fef2", "score": "0.59704345", "text": "public function getParam(string $key): string;", "title": "" }, { "docid": "a15cef02a65bf1604cb810ac133f58d5", "score": "0.5969731", "text": "function getParam($name)\r\n {\r\n return $this->arr_param[$name];\r\n }", "title": "" }, { "docid": "ad123a4ae1e0903b431dfe83b034bd50", "score": "0.59674555", "text": "public function getParam($key, $default = null)\n\t{\n\t\treturn $this->_request->getParam($key, $default);\n\t}", "title": "" }, { "docid": "30675e097fbf99c5b7a8d8ec596598f1", "score": "0.5961316", "text": "public static function getGetParameter($parameter){\n if(isset($_GET[$parameter])) {\n return $_GET[$parameter];\n }\n else\n return '';\n }", "title": "" }, { "docid": "7ccec67db7836e2ead951dff43b22114", "score": "0.5950886", "text": "public static function postVar($post_key)\n {\n\n if (!isset($post_key)) {\n return false;\n }\n\n if (!isset($_POST[$post_key])) {\n return false;\n }\n\n return $_POST[$post_key];\n\n }", "title": "" } ]
b6314ba5f9e79732bbc6323b7606a322
Refresh the thread's post count.
[ { "docid": "d6a8c611ce436ceee571f6c64c196b75", "score": "0.0", "text": "public function refreshLikeCount()\n {\n $this->like_count = $this->likedUsers()->count();\n\n return $this;\n }", "title": "" } ]
[ { "docid": "3ad527978a021c716bbc90a150f5a009", "score": "0.6870435", "text": "public function updateCount()\n {\n $this->count = $this->posts()->count();\n\n $this->save();\n }", "title": "" }, { "docid": "9e012a42d3b861b49840dc3cc8c4bcff", "score": "0.625619", "text": "function better_the_post(){\r\n\r\n\t\t// If count customized\r\n\t\tif( better_get_prop( 'posts-count', null ) != null ){\r\n\t\t\tbetter_set_prop( 'posts-counter', absint( better_get_prop( 'posts-counter', 1 ) ) + 1 );\r\n\t\t}\r\n\r\n\t\t// Do default the_post\r\n\t\tbetter_get_query()->the_post();\r\n\r\n\t}", "title": "" }, { "docid": "afdf04244f2f61fe4da667f910d56006", "score": "0.61372584", "text": "public function increase_post_views($post) {\n\t\t$views = $this->get_post_views($post);\n\t\tupdate_post_meta($post, '_jk_views_count', $views + 1 );\n\t}", "title": "" }, { "docid": "69311de61d7f357f0465fe1d036e4ad3", "score": "0.6131338", "text": "function sync_post_count($offset, $limit)\n{\n\tglobal $db;\n\t$sql = 'SELECT COUNT(post_id) AS num_posts, poster_id\n\t\t\tFROM ' . POSTS_TABLE . '\n\t\t\tWHERE post_postcount = 1\n\t\t\t\tAND post_visibility = ' . ITEM_APPROVED . '\n\t\t\tGROUP BY poster_id\n\t\t\tORDER BY poster_id';\n\t$result = $db->sql_query_limit($sql, $limit, $offset);\n\n\twhile ($row = $db->sql_fetchrow($result))\n\t{\n\t\t$db->sql_query('UPDATE ' . USERS_TABLE . \" SET user_posts = {$row['num_posts']} WHERE user_id = {$row['poster_id']}\");\n\t}\n\t$db->sql_freeresult($result);\n}", "title": "" }, { "docid": "64076d8b3132198c1d406b07df8d887f", "score": "0.6118207", "text": "public function countPopularPost()\n\t{\n\t\t$postViewCount = get_option('post_view_count');\n\n\t\tif(empty($postViewCount)) $postViewCount = [];\n\n\t\t$postId = intval($_POST['postId']);\n\n\t\t$postViewCount = $this->countView($postViewCount, $postId);\n\n\t\tupdate_option('post_view_count', $postViewCount);\n\t}", "title": "" }, { "docid": "16f06b1e6e2d902972a0f18d6c5e638f", "score": "0.60859156", "text": "function tp_count_post_views () { \n // Garante que vamos tratar apenas de posts\n if ( is_single() ) {\n \n // Precisamos da variável $post global para obter o ID do post\n global $post;\n \n // Se a sessão daquele posts não estiver vazia\n if ( empty( $_SESSION[ 'tp_post_counter_' . $post->ID ] ) ) {\n \n // Cria a sessão do posts\n $_SESSION[ 'tp_post_counter_' . $post->ID ] = true;\n \n // Cria ou obtém o valor da chave para contarmos\n $key = 'tp_post_counter';\n $key_value = get_post_meta( $post->ID, $key, true );\n \n // Se a chave estiver vazia, valor será 1\n if ( empty( $key_value ) ) { // Verifica o valor\n $key_value = 1;\n update_post_meta( $post->ID, $key, $key_value );\n } else {\n // Caso contrário, o valor atual + 1\n $key_value += 1;\n update_post_meta( $post->ID, $key, $key_value );\n } // Verifica o valor\n \n } // Checa a sessão\n \n } // is_single\n \n return;\n \n }", "title": "" }, { "docid": "cc25b0973a941f8f89c4578c055807f7", "score": "0.6072518", "text": "function mts_update_view_count( $post_id ) {\n\t$count = get_post_meta( $post_id, '_mts_view_count', true );\n\tupdate_post_meta( $post_id, '_mts_view_count', ++$count );\n\t\n\tdo_action( 'mts_view_count_after_update', $post_id, $count );\n\n\treturn $count;\n}", "title": "" }, { "docid": "2f9110fd6806f1a5799e2d7292ca1867", "score": "0.60436773", "text": "public function getPostCount() {\n\t\treturn $this->postCount;\n\t}", "title": "" }, { "docid": "2f9110fd6806f1a5799e2d7292ca1867", "score": "0.60436773", "text": "public function getPostCount() {\n\t\treturn $this->postCount;\n\t}", "title": "" }, { "docid": "65d9f2b9d19eb15f79aed0d9461dc019", "score": "0.60036993", "text": "public function wd_dpvc_set_post_view() {\n\t\t$key = 'post_views_count';\n\t\tif( is_single() ) {\n\t\t\t$post_id = get_the_ID();\n\t\t\t$count = (int) get_post_meta( $post_id, $key, true );\n\t\t\t$count++;\n\t\t\tupdate_post_meta( $post_id, $key, $count );\n\t\t}\n\t}", "title": "" }, { "docid": "432808330c1464c03c54d6b1a993b595", "score": "0.59910566", "text": "public function update_views($post_id ,$counter_data) {\n $this->db->query(\"UPDATE posts SET views = $counter_data+1 WHERE id = $post_id\");\n \n \n }", "title": "" }, { "docid": "ee7cde58ea706cd84eddc8ef53cc2b34", "score": "0.5973929", "text": "function getPostCount() {\n\t\tif ($this->postCount < 0) {\n\t\t\t$db = DB::getHandle();\n\t\t\t$db->query(\n\t\t\t\tClassForum_Queries::getQuery('replyCountForum',\n\t\t\t\t\tarray($this->_dao->getPrimaryKey())\n\t\t\t\t)\n\t\t\t);\n\t\t\t$db->nextRecord();\n\t\t\t$this->postCount = $db->record['num'];\n\t\t}\n\t\treturn $this->postCount;\n\t}", "title": "" }, { "docid": "3ee00605cb9ef1337736fe2f7ac55bb3", "score": "0.5928471", "text": "function bbp_bump_forum_reply_count($forum_id = 0, $difference = 1, $update_ancestors = \\true)\n{\n}", "title": "" }, { "docid": "608aa159b70e1a1b7a5dd402e31caf32", "score": "0.59198606", "text": "function bbp_increase_forum_reply_count($forum_id = 0)\n{\n}", "title": "" }, { "docid": "94b7dda2465067753b30f9443aa9b25a", "score": "0.5890261", "text": "function bbp_update_forum_reply_count($forum_id = 0)\n{\n}", "title": "" }, { "docid": "d4989192f35595c7dcfe77f2c59a93a7", "score": "0.5884222", "text": "public function refresh_comments_count($postid) {\n global $DB;\n\n if ($post = $DB->get_record('format_mypdchat_posts', array('id' => $postid))) {\n\n $post->countcomments = $DB->count_records('format_mypdchat_comments', array('postid' => $postid, 'replycommentid' => '0'));\n\n $DB->update_record('format_mypdchat_posts', $post);\n return $post;\n }\n return false;\n }", "title": "" }, { "docid": "f643d2c9fb01712b98f7178eb3007fc4", "score": "0.5830406", "text": "function observePostViews_zxc($postID)\n{\n$count_key = 'post_views_count';\n$count = get_post_meta($postID, $count_key, true);\nif($count=='')\n\t{\n\t$count = 0;\n\tdelete_post_meta($postID, $count_key);\n\tadd_post_meta($postID, $count_key, '0');\n\t}\nelse\n\t{\n\t$count++;\n\tupdate_post_meta($postID, $count_key, $count);\n\t}\n}", "title": "" }, { "docid": "a87100a6be789281c397afc42a4fe93d", "score": "0.58063537", "text": "public function refreshReplyCount()\n {\n $this->reply_count = $this->newQuery()\n ->where('reply_post_id', $this->id)\n ->where('is_approved', Post::APPROVED)\n ->whereNull('deleted_at')\n ->whereNotNull('user_id')\n ->count();\n\n return $this;\n }", "title": "" }, { "docid": "7ce2bec00d4d8856a740479bc6130599", "score": "0.5796815", "text": "public function created(Post $post)\n {\n $discussion = $post->discussion;\n $discussion->update(['posts_count' => ($discussion->posts_count + 1)]);\n }", "title": "" }, { "docid": "f47e0bd2b058f6179b4f7e70060097be", "score": "0.57891774", "text": "protected function _get_num_new_forum_posts()\n {\n return $this->connection->query_value_if_there('SELECT COUNT(*) FROM ' . $this->connection->get_table_prefix() . 'messages WHERE posterTime>' . strval(time() - 60 * 60 * 24));\n }", "title": "" }, { "docid": "fc2e26d81d4383347948c2300b87c8aa", "score": "0.57648146", "text": "function revu_comments_number($count) {\r\n global $post;\r\n\r\n return $count;\r\n}", "title": "" }, { "docid": "48dc3e57add491796360e75310a0c6b8", "score": "0.57602596", "text": "public function postViewCount(Post $post)\n {\n $post->viewed += 1;\n $post->timestamps = false;\n return $post->save();\n }", "title": "" }, { "docid": "e832f147899977011a008aeab8fdbfec", "score": "0.57236487", "text": "public function incrementCount()\n {\n $this->count++;\n }", "title": "" }, { "docid": "e832f147899977011a008aeab8fdbfec", "score": "0.57236487", "text": "public function incrementCount()\n {\n $this->count++;\n }", "title": "" }, { "docid": "c3c55c8afbe4758e668ebb59de2223e6", "score": "0.5722443", "text": "public function deleting(Post $post)\n {\n $discussion = $post->discussion;\n $discussion->update(['posts_count' => ($discussion->posts_count - 1)]);\n }", "title": "" }, { "docid": "3e6c25b5b52c492fa3987db239a988b1", "score": "0.5719669", "text": "function forum_count_replies($post, $children = true) {\n global $USER;\n debugging('forum_count_replies has been deprecated. Please use the Post vault instead.', DEBUG_DEVELOPER);\n\n if (!$children) {\n return $DB->count_records('forum_posts', array('parent' => $post->id));\n }\n\n $entityfactory = mod_forum\\local\\container::get_entity_factory();\n $postentity = $entityfactory->get_post_from_stdclass($post);\n\n $vaultfactory = mod_forum\\local\\container::get_vault_factory();\n $postvault = $vaultfactory->get_post_vault();\n\n return $postvault->get_reply_count_for_post_id_in_discussion_id(\n $USER,\n $postentity->get_id(),\n $postentity->get_discussion_id(),\n true\n );\n}", "title": "" }, { "docid": "499f9dc623dc115ba078e475a0823e84", "score": "0.57124454", "text": "function update_posts_count( $deprecated = '' ) {\n\tglobal $wpdb;\n\tupdate_option( 'post_count', (int) $wpdb->get_var( \"SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_status = 'publish' and post_type = 'post'\" ) );\n}", "title": "" }, { "docid": "b94bf0677c986a0a6d3f41df76c170a5", "score": "0.5711124", "text": "function setPostViews( $postID )\r\n{\r\n\t$count_key = 'post_views_count';\r\n\t$count = get_post_meta( $postID, $count_key, TRUE );\r\n\tif ( $count == '' )\r\n\t{\r\n\t\t$count = 0;\r\n\t\tdelete_post_meta( $postID, $count_key );\r\n\t\tadd_post_meta( $postID, $count_key, '0' );\r\n\t} else\r\n\t{\r\n\t\t$count++;\r\n\t\tupdate_post_meta( $postID, $count_key, $count );\r\n\t}\r\n}", "title": "" }, { "docid": "45a44b714f4e4ba7af7f1badb09319f0", "score": "0.5709923", "text": "protected function updateFullCount()\n {\n $total = Bookmark::count();\n Cache::forever('totalBookmarks', $total);\n }", "title": "" }, { "docid": "2684dd531afad1b32f6dceaefc4679bf", "score": "0.5705812", "text": "function mts_ajax_mts_view_count() {\n\t// do count\n\t$post_id = absint( $_POST['id'] );\n\tmts_update_view_count( $post_id );\n}", "title": "" }, { "docid": "d8bb8a164ed6717e09e0223d3af1c5da", "score": "0.5699614", "text": "function setPostViews( $postID ) {\n\t$count_key = 'post_views_count';\n\t$count = get_post_meta( $postID, $count_key, true );\n\tif ( $count == '' ) {\n\t\t$count = 0;\n\t\tdelete_post_meta( $postID, $count_key );\n\t\tadd_post_meta( $postID, $count_key, '0' );\n\t} else {\n\t\t$count ++;\n\t\tupdate_post_meta( $postID, $count_key, $count );\n\t}\n}", "title": "" }, { "docid": "fe122d1bb109fd9f83188f1f810c6cfa", "score": "0.5698634", "text": "function setPostViews($postID) {\r\n $count_key = 'post_views_count';\r\n $count = get_post_meta($postID, $count_key, true);\r\n if($count==''){\r\n $count = 0;\r\n delete_post_meta($postID, $count_key);\r\n add_post_meta($postID, $count_key, '0');\r\n }else{\r\n $count++;\r\n update_post_meta($postID, $count_key, $count);\r\n }\r\n}", "title": "" }, { "docid": "e1fe91e0f5a0dece763aa661f807145c", "score": "0.5671913", "text": "private function getNumberOfPosts() {\n \treturn $this->properties->getWidgetProperty(self::PROPERTY_POSTS, self::DEFAULT_POSTS);\n }", "title": "" }, { "docid": "9c01de050e578768fc9c9170faa43eb0", "score": "0.5664225", "text": "public function appendCommentCounts($posts)\n {\n $posts = $this->getValidTricks($posts);\n\n $request = $this->prepareQuery($this->client->get(), $posts);\n $response = $this->getResponse($request);\n\n if (is_null($response)) {\n foreach ($posts as $post) {\n $post->comment_count = 0;\n }\n } else {\n foreach ($response as $comment) {\n foreach ($posts as $post) {\n if ($post->id == $comment['identifiers'][0]) {\n $post->comment_count = $comment['posts'];\n break;\n }\n }\n }\n }\n\n return $posts instanceof Collection ? $posts : $posts[0];\n }", "title": "" }, { "docid": "176e4ba8a9bbb99d480be68093bbabc2", "score": "0.5660741", "text": "function UpdatePostStatistics($post_id) {\n // NumFavorites\n if (sql_query_into($result, \"SELECT count(*) FROM \".GALLERY_USER_FAVORITES_TABLE.\" WHERE PostId=$post_id;\", 1)) {\n $num_favorites = $result->fetch_assoc()['count(*)'];\n } else {\n $num_favorites = 0;\n }\n // NumComments\n if (sql_query_into($result, \"SELECT count(*) FROM \".GALLERY_COMMENT_TABLE.\" WHERE PostId=$post_id;\", 1)) {\n $num_comments = $result->fetch_assoc()['count(*)'];\n } else {\n $num_comments = 0;\n }\n\n // Update all fields.\n sql_query(\"UPDATE \".GALLERY_POST_TABLE.\" SET NumFavorites=$num_favorites, NumComments=$num_comments WHERE PostId=$post_id;\");\n}", "title": "" }, { "docid": "67f8135e9e659c2ef03d14ede1a0af93", "score": "0.5658404", "text": "function update_doc_count() {\n\t\tglobal $bp;\n\n\t\t// If this is not a group Doc, skip it\n\t\tif ( !bp_is_group() )\n\t\t\treturn;\n\n\t\t// Get a fresh doc count for the group\n\n\t\t// Set up the arguments\n\t\t$doc_count \t\t= new BP_Docs_Query;\n\t\t$query \t\t\t= $doc_count->build_query();\n\n\t\t// Fire the query\n\t\t$this_group_docs \t= new WP_Query( $query );\n\t\t$this_group_docs_count = $this_group_docs->found_posts;\n\n\t\t// BP has a stupid bug that makes it delete groupmeta when it equals 0. We'll save\n\t\t// a string instead of zero to work around this\n\t\tif ( !$this_group_docs_count )\n\t\t\t$this_group_docs_count = '0';\n\n\t\t// Save the count\n\t\tgroups_update_groupmeta( $bp->groups->current_group->id, 'bp-docs-count', $this_group_docs_count );\n\t}", "title": "" }, { "docid": "369ba012999a524e9e1c86e2dd78871d", "score": "0.56563216", "text": "function setPostViews($postID) {\n $countKey = 'post_views_count';\n $count = get_post_meta($postID, $countKey, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $countKey);\n add_post_meta($postID, $countKey, '0');\n }else{\n $count++;\n update_post_meta($postID, $countKey, $count);\n }\n }", "title": "" }, { "docid": "c56aa328220a15e1dc5d44f99f5a679f", "score": "0.5655626", "text": "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "c56aa328220a15e1dc5d44f99f5a679f", "score": "0.5655626", "text": "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "89e877c81bc2f70cf2bfc9bf03570456", "score": "0.56554615", "text": "function update_post()\r\n\t{\r\n\t\tglobal $db, $mybb, $plugins;\r\n\r\n\t\t// Yes, validating is required.\r\n\t\tif($this->get_validated() != true)\r\n\t\t{\r\n\t\t\tdie(\"The post needs to be validated before inserting it into the DB.\");\r\n\t\t}\r\n\t\tif(count($this->get_errors()) > 0)\r\n\t\t{\r\n\t\t\tdie(\"The post is not valid.\");\r\n\t\t}\r\n\r\n\t\t$post = &$this->data;\r\n\r\n\t\t$post['pid'] = intval($post['pid']);\r\n\r\n\t\t$existing_post = get_post($post['pid']);\r\n\t\t$post['tid'] = $existing_post['tid'];\r\n\r\n\t\t// take the original uid of the author\r\n\t\t$post['uid'] = $existing_post['uid'];\r\n\r\n\t\t$forum = get_forum($post['fid']);\r\n\t\t\r\n\t\t\r\n\t\t// Decide on the visibility of this post.\r\n\t\tif(isset($post['visible']) && $post['visible'] != $existing_post['visible'])\r\n {\r\n if($forum['mod_edit_posts'] == 1 && !is_moderator($post['fid'], \"\", $post['uid']))\r\n {\r\n if($existing_post['visible'] == 1)\r\n {\r\n update_thread_data($existing_post['tid']);\r\n update_thread_counters($existing_post['tid'], array('replies' => '-1', 'unapprovedposts' => '+1'));\r\n update_forum_counters($existing_post['fid'], array('unapprovedthreads' => '+1', 'unapprovedposts' => '+1'));\r\n \r\n // Subtract from the users post count\r\n // Update the post count if this forum allows post counts to be tracked\r\n if($forum['usepostcounts'] != 0)\r\n {\r\n $db->write_query(\"UPDATE \".TABLE_PREFIX.\"users SET postnum=postnum-1 WHERE uid='{$existing_post['uid']}'\");\r\n }\r\n }\r\n $visible = 0;\r\n }\r\n else\r\n {\r\n if($existing_post['visible'] == 0)\r\n {\r\n update_thread_data($existing_post['tid']);\r\n update_thread_counters($existing_post['tid'], array('replies' => '+1', 'unapprovedposts' => '-1'));\r\n update_forum_counters($existing_post['fid'], array('unapprovedthreads' => '-1', 'unapprovedposts' => '-1'));\r\n \r\n // Update the post count if this forum allows post counts to be tracked\r\n if($forum['usepostcounts'] != 0)\r\n {\r\n $db->write_query(\"UPDATE \".TABLE_PREFIX.\"users SET postnum=postnum+1 WHERE uid='{$existing_post['uid']}'\");\r\n }\r\n }\r\n $visible = 1;\r\n }\r\n }\r\n else\r\n {\r\n\t\t\t$visible = 0;\r\n\t\t\tif($forum['mod_edit_posts'] != 1 || is_moderator($post['fid'], \"\", $post['uid']))\r\n\t\t\t{\r\n\t\t\t\t$visible = 1;\r\n\t\t\t}\r\n }\r\n\r\n\t\t// Check if this is the first post in a thread.\r\n\t\t$options = array(\r\n\t\t\t\"order_by\" => \"dateline\",\r\n\t\t\t\"order_dir\" => \"asc\",\r\n\t\t\t\"limit_start\" => 0,\r\n\t\t\t\"limit\" => 1\r\n\t\t);\r\n\t\t$query = $db->simple_select(\"posts\", \"pid\", \"tid='\".intval($post['tid']).\"'\", $options);\r\n\t\t$first_post_check = $db->fetch_array($query);\r\n\t\tif($first_post_check['pid'] == $post['pid'])\r\n\t\t{\r\n\t\t\t$first_post = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$first_post = false;\r\n\t\t}\r\n\t\t\r\n\t\tif($existing_post['visible'] == 0)\r\n\t\t{\r\n\t\t\t$visible = 0;\r\n\t\t}\r\n\t\t\r\n\t\t// Update the thread details that might have been changed first.\r\n\t\tif($first_post)\r\n\t\t{\t\t\t\r\n\t\t\t$this->tid = $post['tid'];\r\n\r\n\t\t\t$this->thread_update_data['visible'] = $visible;\r\n\t\t\t\r\n\t\t\tif(isset($post['prefix']))\r\n\t\t\t{\r\n\t\t\t\t$this->thread_update_data['prefix'] = intval($post['prefix']);\r\n\t\t\t}\r\n\r\n\t\t\tif(isset($post['subject']))\r\n\t\t\t{\r\n\t\t\t\t$this->thread_update_data['subject'] = $db->escape_string($post['subject']);\r\n\t\t\t}\r\n\r\n\t\t\tif(isset($post['icon']))\r\n\t\t\t{\r\n\t\t\t\t$this->thread_update_data['icon'] = intval($post['icon']);\r\n\t\t\t}\r\n\t\t\tif(count($this->thread_update_data) > 0)\r\n\t\t\t{\r\n\t\t\t\t$plugins->run_hooks_by_ref(\"datahandler_post_update_thread\", $this);\r\n\r\n\t\t\t\t$db->update_query(\"threads\", $this->thread_update_data, \"tid='\".intval($post['tid']).\"'\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$this->pid = $post['pid'];\r\n\r\n\t\t$this->post_update_data['uid'] = $post['uid'];\r\n\r\n\t\tif(isset($post['subject']))\r\n\t\t{\r\n\t\t\t$this->post_update_data['subject'] = $db->escape_string($post['subject']);\r\n\t\t}\r\n\r\n\t\tif(isset($post['message']))\r\n\t\t{\r\n\t\t\t$this->post_update_data['message'] = $db->escape_string($post['message']);\r\n\t\t}\r\n\r\n\t\tif(isset($post['icon']))\r\n\t\t{\r\n\t\t\t$this->post_update_data['icon'] = intval($post['icon']);\r\n\t\t}\r\n\t\tif(isset($post['options']['remove_notice'])) {\r\n\t\t\t$this->post_update_data['modnotice'] = '';\r\n\t\t\t$this->post_update_data['modedituid'] = 0;\r\n\t\t\t$this->post_update_data['modedittime'] = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(isset($post['modnotice'])) {\r\n\t\t\t\t$this->post_update_data['modnotice'] = $db->escape_string($post['modnotice']);\r\n\t\t\t\t$this->post_update_data['modedituid'] = $mybb->user['uid'];\r\n\t\t\t\t$this->post_update_data['modedittime'] = time();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$plugins->run_hooks_by_ref(\"datahandler_moderate_update\", $this);\r\n\r\n\t\t$db->update_query(\"posts\", $this->post_update_data, \"pid='\".intval($post['pid']).\"'\");\r\n\r\n\t\treturn array(\r\n\t\t\t\t'first_post' => $first_post\r\n\t\t\t);\r\n\t}", "title": "" }, { "docid": "9af78d5a4ae45780076de6660c9f7b02", "score": "0.564285", "text": "public function refresh_likes_count($postid) {\n global $DB;\n\n if ($post = $DB->get_record('format_mypdchat_posts', array('id' => $postid))) {\n\n $post->countlikes = $DB->count_records('format_mypdchat_likes', array('postid' => $postid));\n\n $DB->update_record('format_mypdchat_posts', $post);\n return $post->countlikes;\n }\n return 0;\n }", "title": "" }, { "docid": "097f684e38e26baa8ad461c7308c2eb3", "score": "0.5626718", "text": "function setPostViews($postID) {\n $countKey = 'post_views_count';\n $count = get_post_meta($postID, $countKey, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $countKey);\n add_post_meta($postID, $countKey, '0');\n }else{\n $count++;\n update_post_meta($postID, $countKey, $count);\n }\n}", "title": "" }, { "docid": "1b527d8d217039f2fed3186d98e2572d", "score": "0.5608573", "text": "function setPostViews($postID)\n{\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if ($count == '') {\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n } else {\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "14f8d32d65359477c8f34bcd49c2d39a", "score": "0.56019205", "text": "function fastway_set_post_views( $postID ) {\r\n\t$countKey = 'post_views_count';\r\n\t$count = get_post_meta( $postID, $countKey, true );\r\n\tif ( $count == '' ) {\r\n\t\t$count = 0;\r\n\t\tdelete_post_meta( $postID, $countKey );\r\n\t\tadd_post_meta( $postID, $countKey, '0' );\r\n\t} else {\r\n\t\t$count ++;\r\n\t\tupdate_post_meta( $postID, $countKey, $count );\r\n\t}\r\n}", "title": "" }, { "docid": "b764a5dc9abacc8b38f5bc0d121eb14b", "score": "0.55505675", "text": "function bbps_increament_post_count(){\n\tglobal $current_user;\n\t\n\t$post_type = get_post_type();\n\t//bail unless we are creating topics or replies\n\tif ( $post_type == 'topic' || $post_type == 'reply' ){\n\t\n\t\t$current_user = wp_get_current_user();\n\t\t$user_id = $current_user->ID;\n\t\t$user_rank = get_user_meta($user_id, '_bbps_rank_info');\n\t\t\n\t\t //if this is their first post\n\t\tif ( empty($user_rank[0]) )\n\t\t\tbbps_create_user_ranking_meta($user_id);\n\n\t\tbbps_check_ranking($user_id);\n\t\t\n\t}\n\treturn;\n\t\t\n}", "title": "" }, { "docid": "d523ad43df5c49ee5255da3250258317", "score": "0.5550326", "text": "public function getNumPosts() {\n return $this->numposts;\n }", "title": "" }, { "docid": "4a73740127edd93c4b4ed21a9d2ef245", "score": "0.5543191", "text": "protected function updateGlobalCountVariable(): void {\n }", "title": "" }, { "docid": "2573d5e2b0897a18dc69a8e403d045a2", "score": "0.5512249", "text": "function update(){\r\n\tglobal $NUMBER_OF_POSTS;\r\n\t$posts = getPosts();\r\n\r\n\tprintPosts($posts);\r\n\r\n\t$prev_post = getNewestFromDb();\r\n\r\n\t$added_posts=0;\r\n\t\r\n\t// check each of the posts we received from fb, starting with the newest-created\r\n\tforeach($posts['data'] as $post){\r\n\t\t\r\n\t\t//if given post has same id as newest in db, we know we can stop\r\n\t\t//looking through posts\r\n\t\tif($prev_post != NULL && $post['id'] == $prev_post['idpost']){\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t// break if we have added max # of posts\r\n\t\t}elseif($added_posts == $NUMBER_OF_POSTS){\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t// post is still a potential 'new post'\r\n\t\t}else{\r\n\t\t\r\n\t\t\t// filter out non-status updates (pictures, changing info, friend-accepts)\r\n\t\t\tif(checkPost($post)){\r\n\t\t\t\t// format the time for mysql DATETIME datatype\r\n\t\t\t\t$time = str_replace(\"T\", \" \", substr($post['created_time'], 0, 19));\r\n\r\n\t\t\t\t// sql statement for insert\r\n\t\t\t\t$sql = \"INSERT INTO `facebook` VALUES ('\".$post['id'].\"','\".$post['message'].\r\n\t\t\t\t\t\"','\".$time.\"');\";\r\n\r\n\t\t\t\t// execute insert\r\n\t\t\t\tinsert($sql);\r\n\t\t\t\t$added_posts++;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}\r\n\t// after we're done adding posts to database, we must clear the old ones out\r\n\tclearOldPosts();\r\n}", "title": "" }, { "docid": "efa190c10248ed638c10283820abe17f", "score": "0.5506172", "text": "function bbp_approved_unapproved_topic_update_forum_reply_count($topic_id = 0)\n{\n}", "title": "" }, { "docid": "fcbc324260469e39a3dda0e6732feaae", "score": "0.5506108", "text": "function reactforum_count_unrated_posts() {\n throw new coding_exception(__FUNCTION__ . '() can not be used any more.');\n}", "title": "" }, { "docid": "21630d48bf07ab68fd39ce295137f54f", "score": "0.55026084", "text": "public function resetPost()\n {\n $this->post_cached = false;\n }", "title": "" }, { "docid": "a567a8376392daaeccc3ecdebeef8618", "score": "0.54945225", "text": "public function getPostCount()\r\n {\r\n return Yii::app()->db->createCommand()\r\n ->select('count(*) as num')\r\n ->from(Post::model()->tableName() .' p')\r\n ->join(Thread::model()->tableName() .' t', 't.id=p.thread_id')\r\n ->where('t.forum_id=:id', array(':id'=>$this->id))\r\n ->queryScalar();\r\n }", "title": "" }, { "docid": "e532385c2691154503d9e6d9c853c850", "score": "0.54875165", "text": "function forum_count_unrated_posts() {\n throw new coding_exception(__FUNCTION__ . '() can not be used any more.');\n}", "title": "" }, { "docid": "57ebd451398ab9ea5fd4016e9f17f649", "score": "0.5479264", "text": "static function action_reset_posttype_counters( $post_id ) {\n\n\t\t// Only if menu counters are enabled\n\t\tif ( ! Clientside_Options::get_saved_option( 'enable-menu-counters' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$post_type = get_post_type( $post_id );\n\t\t$transient = get_transient( 'clientside-posttype-count' );\n\t\t$transient = is_array( $transient ) ? $transient : array();\n\t\t$transient[ $post_type ] = array();\n\t\tset_transient( 'clientside-posttype-count', $transient, WEEK_IN_SECONDS );\n\n\t}", "title": "" }, { "docid": "65b7bb48d20932ac4931172118336218", "score": "0.5447115", "text": "public function updated(MessageThread $messageThread)\n {\n //\n }", "title": "" }, { "docid": "f538e5f17542bde58b1ab87e49ed8e33", "score": "0.5445222", "text": "function an_post_view_count($postID) { \n$count_key = 'wpb_post_views_count'; \n$count = get_post_meta($postID, $count_key, true); \nif($count ==''){ \n$count = 1; \ndelete_post_meta($postID, $count_key); \nadd_post_meta($postID, $count_key, '1'); \n} else { \n$count++; \nupdate_post_meta($postID, $count_key, $count); \n}\n}", "title": "" }, { "docid": "35808310e2956404514b0378546c191e", "score": "0.54293394", "text": "public function testUserPostCountIncremented()\n {\n $GLOBALS['FIXTURE_USERS_TOTAL'] = 1;\n $GLOBALS['FIXTURE_BOARDS_TOTAL'] = 1;\n $GLOBALS['FIXTURE_POSTS_TOTAL'] = 2;\n\n $this->_loadFixtures(array(\n 'PW\\UserBundle\\DataFixtures\\MongoDB\\TestUsers',\n 'PW\\CategoryBundle\\DataFixtures\\MongoDB\\TestCategories',\n 'PW\\BoardBundle\\DataFixtures\\MongoDB\\TestBoards',\n 'PW\\PostBundle\\DataFixtures\\MongoDB\\TestPosts',\n ), false);\n\n /* @var $user \\PW\\UserBundle\\Document\\User */\n $user = $this->_dm->getRepository('PWUserBundle:User')->findOneByName('User #1');\n $this->assertEquals(4, $user->getCounts()->getPosts());\n\n return $user;\n }", "title": "" }, { "docid": "949144ffd6e002d949089558ef1efd91", "score": "0.5423162", "text": "public function getPostCount()\n {\n return count($this->post);\n }", "title": "" }, { "docid": "e85a3aa63ae9291502f124cf0aaf69a2", "score": "0.5409266", "text": "public function getNumPosts()\n {\n return $this->getConfigValue(self::CONFIG_NUM_POSTS);\n }", "title": "" }, { "docid": "f01abec7942ce79f343bdc75ee96c9a6", "score": "0.5390626", "text": "function bbp_bump_forum_topic_count($forum_id = 0, $difference = 1, $update_ancestors = \\true)\n{\n}", "title": "" }, { "docid": "26b3ba552338e364075ff04ba569fbdc", "score": "0.5363661", "text": "function get_rename_posts_count() {\n\t\treturn $this->get_import_posts_count();\n\t}", "title": "" }, { "docid": "d0caac68016252ddaf986f213046d75a", "score": "0.53599906", "text": "public function increment_thread_views($thread_id, $amount = 1)\n {\n $sql = \"UPDATE forum_posts SET views = views + :amount WHERE id = :id\";\n return $this->db->query($sql, array(':amount' => $amount, ':id' => $thread_id));\n }", "title": "" }, { "docid": "8532b2656e7a4f8381ccac2c225c6cb2", "score": "0.53576463", "text": "function bbp_bump_topic_reply_count($topic_id = 0, $difference = 1)\n{\n}", "title": "" }, { "docid": "d465df2740674577d18f76ead6f031f3", "score": "0.5357008", "text": "function bbp_decrease_forum_reply_count($forum_id = 0)\n{\n}", "title": "" }, { "docid": "b95214ea4282b0000989691aa61190e5", "score": "0.5352109", "text": "function bbp_insert_reply_update_counts($reply_id = 0, $topic_id = 0, $forum_id = 0)\n{\n}", "title": "" }, { "docid": "bacae9c609e455cef956d5f4e2c861e9", "score": "0.53388435", "text": "function set_count_when_post( $post_id ) {\n\n $count_key = 'social_count';\n $count = get_post_meta($post_id, $count_key, true);\n if ($count =='') {\n delete_post_meta($post_id, $count_key);\n add_post_meta($post_id, $count_key, '0');\n }\n\n $count_key = 'post_views_count';\n $count = get_post_meta($post_id, $count_key, true);\n if ($count =='') {\n delete_post_meta($post_id, $count_key);\n add_post_meta($post_id, $count_key, '0');\n }\n}", "title": "" }, { "docid": "cb0451ef9c3daa4a3ae1bc2a32c87ea7", "score": "0.53339636", "text": "public function actionBump()\n\t{\n\t\t$threadId = $this->_input->filterSingle('thread_id', XenForo_Input::UINT);\n\n\t\t$ftpHelper = $this->getHelper('ForumThreadPost');\n\t\tlist($threadFetchOptions, $forumFetchOptions) = $this->_getThreadForumFetchOptions();\n\t\tlist($thread, $forum) = $ftpHelper->assertThreadValidAndViewable($threadId, $threadFetchOptions, $forumFetchOptions);\n\n\t\t$visitor = XenForo_Visitor::getInstance();\n\t\t$perms = $visitor->getNodePermissions($thread['node_id']);\n\t if (!KomuKu_BumpThread_Helper_Permissions::canBump($thread, $perms))\n \t{\n \t\treturn $this->responseNoPermission();\n \t}\n \t\n \t$this->checkForBumpTimeLimit($perms);\n\n\t\t/* @var $dw XenForo_DataWriter_Discussion_Thread */\n\t\t$dwThread = XenForo_DataWriter::create(\"XenForo_DataWriter_Discussion_Thread\");\n\t\t$dwThread->setExistingData($threadId);\n\t\t$dwThread->set('last_post_date', XenForo_Application::$time);\n\t\t$dwThread->save();\n\n\t\t/* @var $dwPost XenForo_DataWriter_DiscussionMessage_Post */\n\t\t$dwPost = XenForo_DataWriter::create(\"XenForo_DataWriter_DiscussionMessage_Post\");\n\t\t$dwPost->setExistingData($thread['last_post_id']);\n\t\t$dwPost->set('post_date', XenForo_Application::$time);\n\t\t$dwPost->save();\n\t\t\n\t\t// let's also log the bump\n\t\t/* @var $bumpModel KomuKu_BumpThread_Model_BumpThread */\n\t\t$bumpModel = XenForo_Model::create('KomuKu_BumpThread_Model_BumpThread');\n\t\t$bumpModel->insertBumpData($visitor->get('user_id'), $thread['thread_id']);\n\n\t\t// and into the moderator log\n\t\tXenForo_Model_Log::logModeratorAction('thread', $thread, 'bump');\n\t\t\n\t\t// if we bumped from the thread list, redirect to the forum, else, redirect to the thread itself\n\t\t$fromList = (boolean) $this->_input->filterSingle('from_list', XenForo_Input::UINT);\n\t\tif ($fromList)\n\t\t{\n\t\t\t$redirectTo = XenForo_Link::buildPublicLink('forums', $forum);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$redirectTo = XenForo_Link::buildPublicLink('threads', $thread);\n\t\t}\n\n\t\treturn $this->responseRedirect(\n\t\t\tXenForo_ControllerResponse_Redirect::SUCCESS,\n\t\t\t$redirectTo,\n\t\t\tnew XenForo_Phrase('kmk_bump_thread_has_been_bumped'),\n\t\t\tarray ( 'fromList' => $fromList )\n\t\t);\n\t}", "title": "" }, { "docid": "dfa85f7a45cbe2c180e8902b1c6157e6", "score": "0.53159684", "text": "static public function update_counter($user_id, $type = 'thread'){\n\t\tglobal $wpdb;\n\n\t\t$type \t= $type == 'thread' ? 'thread' : 'reply';\n\t\t$sql \t= \" SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_author = {$user_id} AND post_status = 'publish' AND post_type = '{$type}' \";\n\t\t$number = $wpdb->get_var($sql);\n\n\t\tif ( $type == 'thread' )\n\t\t\tupdate_user_meta( $user_id, 'et_thread_count', $number );\n\t\telse\n\t\t\tupdate_user_meta( $user_id, 'et_reply_count', $number );\n\t}", "title": "" }, { "docid": "f9c78e9505e2cc6804cd550fddbe8682", "score": "0.53136885", "text": "function fpr_theme_save_post_views( $postID ){\r\r\n\r\r\n $metaKey = 'fpr_theme_post_views';\r\r\n $views = get_post_meta( $postID, $metaKey, true );\r\r\n\r\r\n $count = ( empty( $views ) ? '0' : $views );\r\r\n $count++;\r\r\n\r\r\n update_post_meta( $postID, $metaKey, $count );\r\r\n\r\r\n}", "title": "" }, { "docid": "c20039b9a55ee06bed648bfbc0e0e7ad", "score": "0.52793914", "text": "public function getPostCountAttribute()\n {\n\n return \\Cache::remember(sprintf('user.%s.postcount', $this->id), 60, function(){\n return $this->getPosts()->count();\n });\n }", "title": "" }, { "docid": "97f9a91048b3bb34ae05256de2ed67da", "score": "0.52786416", "text": "public function store_like_count()\n {\n\n global $Article_Reaction_DB;\n $like_count = $Article_Reaction_DB->get_data($_POST['postId']);\n \n if($like_count == null){\n $Article_Reaction_DB->insert_data(1, $_POST['postId']);\n\n }elseif($like_count != null){\n $like_count+=1;\n $Article_Reaction_DB->update_data($like_count, $_POST['postId']);\n }else{\n return;\n }\n \n }", "title": "" }, { "docid": "d7f474d603bf04c3c8f3e31d272eb47f", "score": "0.5268987", "text": "public function incrementPageviewCount($postId)\n {\n\n $ip = $_SERVER['REMOTE_ADDR'];\n $ips = get_post_meta($postId, self::META_NAME_IPS_LOG, true);\n\n // if there no ips stored or the ip is has not seen the page before\n if (!$ips || (is_array($ips) && !in_array($ip, $ips))) {\n\n if (!$ips) {\n $ips = array();\n }\n\n $ips[] = $ip;\n\n update_post_meta($postId, self::META_NAME_IPS_LOG, $ips);\n\n // default is 1\n $newTotal = 1;\n\n // if we have an existing pageview count, simply add one to the total\n if ($old_total = get_post_meta($postId, self::META_NAME_PAGEVIEW_TOTAL, true)) {\n $newTotal = $old_total + 1;\n }\n\n // store the total\n update_post_meta($postId, self::META_NAME_PAGEVIEW_TOTAL, $newTotal);\n\n }\n\n }", "title": "" }, { "docid": "fd1b9db82d66b133825b0c192716b459", "score": "0.5263489", "text": "private function resetLastPost() { \n\t\t$forum = YBoardForum::find()->where(['last_post_id'=>$this->id])->one();\n\t\t$topic = YBoardTopic::find()->where(['last_post_id'=>$this->id])->one();\n\n\t\tif($forum !== null) { \n\t\t\t$post = YBoardPost::find()\n ->where(['forum_id'=>$forum->id, 'approved'=>1])\n ->orderBy('id DESC')\n ->limit(1) \n ->one();\n \n\t\t\tif($post === null) {\n\t\t\t\t$forum->last_post_id = null;\n\t\t\t} else {\n\t\t\t\t$forum->last_post_id = $post->id;\n\t\t\t}\n\t\t\t$forum->update();\n\t\t}\n \n\t\tif($topic !== null) {\n\t\t\t$post = YBoardPost::find()\n ->where(['topic_id'=>$topic->id, 'approved'=>1])\n ->orderBy('id DESC')\n ->limit(1) \n ->one();\n \n\t\t\tif($post === null) {\n\t\t\t\t$topic->last_post_id = null;\n\t\t\t} else {\n\t\t\t\t$topic->last_post_id = $post->id;\n\t\t\t}\n\t\t\t$topic->update();\n\t\t}\n\t}", "title": "" }, { "docid": "e364ed8b219d75568e77ae63dbd2dc82", "score": "0.52586585", "text": "public static function clear_post() { self::$post = array(); }", "title": "" }, { "docid": "8321ad26c50383261f789d259115ef13", "score": "0.5257008", "text": "public function planner_update_a_post() {\n \n // Delete the selected post\n (new MidrubBaseUserAppsCollectionPlannerHelpers\\Posts)->planner_update_a_post();\n \n }", "title": "" }, { "docid": "d072a9b2920c56a5b365c0453ecfad60", "score": "0.52552897", "text": "public function getPostCountAttribute() {\n $post_count = Cache::remember(\n 'post_count.group_'.$this->id,\n now()->addSeconds(30),\n function () {\n return $this->posts()->count();\n }\n );\n return $post_count;\n }", "title": "" }, { "docid": "3bfffe7b2235db6308d33c773206d415", "score": "0.5241736", "text": "private function _updateViewCount($postid, $dao) {\n // if user has already been here\n if ($this->_user->hasVisited($postid))\n return;\n // else add the post to the session and update count\n $this->_user->addVisited($postid);\n $dao->updateViewCount($postid);\n }", "title": "" }, { "docid": "8f656851af86ad43fe96bdf8b711188b", "score": "0.5238688", "text": "function postCount(){\n\t\t\n\t\t\t$user = Auth::User(); \n\t\t\t$userId = $user->id; \n \n\t\t\t$expired_posts = Posts::where('user_id', '=', $userId)->where('remaining_posts', '0')->get();\n\t\t\t$active_posts = Posts::where('user_id', '=', $userId)->where('remaining_posts', '!=', '0')->get();\n\t\t\t$scheduled_posts = Posts::where('user_id', '=', $userId)->where('remaining_posts', '!=', '0')->where('schedule_option', '=', '2')->get();\n\t\t\t\n\t\t\t$dataArr = array();\n\t\t\t$dataArr['expired_posts_count'] = count($expired_posts);\n\t\t\t$dataArr['active_posts_count'] = count($active_posts);\n\t\t\t$dataArr['scheduled_posts_count'] = count($scheduled_posts);\n\t\t\t\n\t\t\treturn (object)$dataArr;\n\t}", "title": "" }, { "docid": "f4c4642e4cad3a58a5a423ba6104f594", "score": "0.522989", "text": "function as_like_post(){\n\t\t$data = $_REQUEST['content'];\n\t\t$count = get_post_meta( $data['id'], 'as_like_count', true );\n\t\t$count++;\n\t\t$result = update_post_meta( $data['id'], 'as_like_count', $count );\n\t\tif(!is_wp_error($result)){\n\t\t\t$response = array(\n\t\t\t\t'success' => true,\n\t\t\t\t'count'\t => get_post_meta( $data['id'], 'as_like_count', true ),\n\t\t\t);\n\t\t} else {\n\t\t\t$response = array(\n\t\t\t\t'success' => false,\n\t\t\t\t'count'\t => 0,\n\t\t\t);\n\t\t}\n\t\twp_send_json( $response );\n\t}", "title": "" }, { "docid": "b63c3ea2c5c43374d95a712f0bdecefb", "score": "0.5228639", "text": "public function increase_download_count() {\n\t\t// File download_count\n\t\t$this->download_count = absint( get_post_meta( $this->id, '_download_count', true ) ) + 1;\n\t\tupdate_post_meta( $this->id, '_download_count', $this->download_count );\n\n\t\t// Parent download download_count\n\t\t$parent_download_count = absint( get_post_meta( $this->download_id, '_download_count', true ) ) + 1;\n\t\tupdate_post_meta( $this->download_id, '_download_count', $parent_download_count );\n\t}", "title": "" }, { "docid": "16aa197e89dc014dd20eca045de936ba", "score": "0.52285075", "text": "private function update_process_count() {\n\t\t$status = $this->status();\n\t\t$status['processed_jobs'] += 1;\n\t\t$this->update_status( $status );\n\t}", "title": "" }, { "docid": "1cc193e90554106e6fc3b9a30a89e5d8", "score": "0.5226563", "text": "public function incrementInstanceCount ()\n\t{\n\t $this->setInstanceCount($this->getInstanceCount() + 1);\n\t $this->save();\n\t}", "title": "" }, { "docid": "f49dcd3caeada9976ed950abd92c4d54", "score": "0.52262217", "text": "function bbp_increase_topic_reply_count($topic_id = 0)\n{\n}", "title": "" }, { "docid": "549a9aa83fe180123e8aa1bd6581627b", "score": "0.52245235", "text": "private function increase_view_count($question_id)\r\n {//TODO: This should belong in Post_Model\r\n //-- Initialise Model\r\n $question = ORM::factory('post', $question_id);\r\n\r\n //--NOTE: Currently using linear incremental on view count, which means every refresh will increase this count\r\n $question->view_count += 1;\r\n $question->save();\r\n }", "title": "" }, { "docid": "ddc89036a04a94028af0f55b4f9a8e4f", "score": "0.5211966", "text": "function bbp_update_forum_topic_count($forum_id = 0)\n{\n}", "title": "" }, { "docid": "f44018fe03c4063a9220155858dad163", "score": "0.52083", "text": "function zaxu_set_pageview($post_id) {\n $count_key = 'zaxu_pageview_count';\n $count = get_post_meta($post_id, $count_key, true);\n if ($count == '') {\n $count = 1;\n delete_post_meta($post_id, $count_key);\n add_post_meta($post_id, $count_key, '1');\n } else {\n $count++;\n update_post_meta($post_id, $count_key, $count);\n }\n }", "title": "" }, { "docid": "c5f1191040c929edc3fec30a03397148", "score": "0.5201169", "text": "private function updateCountPages()\n {\n $this->countPages++;\n if ($this->countPages % 10 == 0) {\n $this->snapshot->updateAttributes(['count_pages' => $this->countPages]);\n }\n }", "title": "" }, { "docid": "c36ce115813959d6fc68a8438a93bc5e", "score": "0.5199088", "text": "public function repost(PostReaction $request)\n {\n $userId = Auth::user()->id;\n\n DB::beginTransaction();\n Repost::create([\n 'user_id' => $userId,\n 'post_id' => $request->post_id\n ]);\n\n $post = Post::find($request->post_id);\n $post->num_reposts++;\n $post->save();\n DB::commit();\n\n return redirect()->back();\n }", "title": "" }, { "docid": "edbcc552e16fb67e642bf24dd48e5501", "score": "0.5198998", "text": "public function user_preview_post( $post_id )\r\n\t\t{\r\n\t\t\tglobal $cont;\r\n\t\t\t\r\n\t\t\t$initial_count = 1;\r\n\t\t\t$stmt = $cont->prepare( \"SELECT * FROM admin_post WHERE post_id = :post_id\" );\r\n\t\t\t$stmt->bindParam( 'post_id', $post_id, PDO::PARAM_INT );\r\n\t\t\tif( $stmt->execute() )\r\n\t\t\t{\r\n\t\t\t\twhile( $row = $stmt->fetch() )\r\n\t\t\t\t{\r\n\t\t\t\t\t/** initial store 0 in DB and nex stap store 1, 2, 3,...n */\r\n\t\t\t\t\t$post_count = $row['post_view_count'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * when call on-index.php page\r\n\t\t\t * @return $count = 0 and $post_count = 0; otherwise return post from BD.\r\n\t\t\t */\r\n\t\t\tif( isset($post_count) )\r\n\t\t\t\t$count = $post_count + $initial_count;\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$count = 0; \r\n\t\t\t\t$post_count = 0; \r\n\t\t\t}\r\n\r\n\t\t\t$stmt = $cont->prepare( \"UPDATE admin_post SET post_view_count = $count WHERE post_id = :post_id\" );\r\n\t\t\t$stmt->bindParam( 'post_id', $post_id, PDO::PARAM_INT );\r\n\t\t\t$stmt->execute();\r\n\r\n\t\t\t/** initial check */\r\n\t\t\tif( $post_count == 0 )\r\n\t\t\t{\r\n\t\t\t\treturn $initial_count;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $post_count;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "ff7edd138dfa31bd306f273b7ddb0073", "score": "0.5197073", "text": "function update_user_post_count( $user_id , $type = 'all' ) {\n\n\t// Only do this for registered users\n\tif ( 0 >= $user_id ) \n\t\treturn;\n\t\n\t// Get existing post count\n\t$posts = get_user_meta( $user_id , 'post_count' , true );\n\tif ( empty( $posts ) ) \n\t\t$type == 'all';\n\n\t// Update the counts\n\tif ( 'all' == $type || 'articles' == $type )\n\t\t$posts['articles']\t= get_user_article_count( $user_id );\n\t\n\tif ( 'all' == $type || 'forums' == $type ) {\n\t\t$posts['topics'] \t= bbp_get_user_topic_count_raw( $user_id ) ;\n\t\t$posts['replies'] \t= bbp_get_user_reply_count_raw( $user_id ) ;\n\t}\n\t\n\tif ( 'all' == $type || 'comments' == $type ) \n\t\t$posts['comments'] \t= get_user_comment_count( $user_id );\n\t\t\n\t$posts['total'] = $posts['articles'] + $posts['topics'] + $posts['replies'] + $posts['comments'];\n\t\n\t// Save it\n\tupdate_user_meta( $user_id , 'post_count' , $posts );\n}", "title": "" }, { "docid": "31fc196e921738e215d2addc1d21eeac", "score": "0.5191797", "text": "function postView($postID) {\n $count_key = 'view';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n return $count; /* so you can show it */\n}", "title": "" }, { "docid": "27a54389145353523a8747876ad064ea", "score": "0.5187874", "text": "public function update_topic ()\n {\n // Update the lastpost information\n $db = new PHPWS_DB('comments_items');\n $db->addColumn('comments_items.id');\n $db->addColumn('comments_items.create_time');\n $db->addColumn('comments_items.author_id');\n $db->addColumn('comments_items.anon_name');\n $db->addColumn('comments_threads.total_comments');\n $db->addWhere('thread_id', $this->id);\n $db->addWhere('comments_threads.id', 'comments_items.thread_id');\n $db->addWhere('comments_items.approved', 1);\n $db->addOrder('create_time desc');\n $row = $db->select('row');\n if (PHPWS_Error::logIfError($row))\n return;\n if (empty($row)) { // Topic is either empty or full of unapproved comments\n $this->total_posts = 0;\n return;\n }\n $this->total_posts = $row['total_comments'];\n $this->lastpost_post_id = $row['id'];\n $this->lastpost_date = $row['create_time'];\n if ($row['author_id']) {\n $this->lastpost_author_id = $row['author_id'];\n $user = new PHPWS_User($row['author_id']);\n $this->lastpost_author = $user->getUsername();\n }\n else {\n $this->lastpost_author_id = 0;\n $this->lastpost_author = $row['anon_name'];\n }\n }", "title": "" }, { "docid": "939f6a4ca132683d16964e977478cf99", "score": "0.518005", "text": "public function created(Post $post)\n {\n Circle::query()->where('id',$post->circle_id)->increment('post_count');\n }", "title": "" }, { "docid": "3603cc7e0174ed899b52c9e69f37df32", "score": "0.5175518", "text": "function KRS_STG_stt2_db_get_number_of_posts()\r\n\t{\r\n\t\t// wp_die($post_count);\r\n\t\tglobal $id;\r\n\t\tif (!isset($post_count)) {\r\n\t\t\tglobal $wpdb;\r\n\t\t\t$sql = \"SELECT count(`ID`) FROM $wpdb->posts WHERE `post_status` = 'publish' AND `post_type` = 'post';\";\r\n\t\t\t$post_count = $wpdb->get_var($sql);\r\n\t\t\twp_cache_set('stt2_get_number_of_posts' . $id, $post_count, 3600);\r\n\t\t} else\r\n\t\t\t$post_count = wp_cache_get('stt2_get_number_of_posts' . $id);\r\n\t\treturn $post_count;\r\n\t}", "title": "" }, { "docid": "8c78adbb0b8d147400d757cd94500626", "score": "0.516887", "text": "public function c_counter() {\n\t\tglobal $post;\n\n\t\t$comment_count = get_comments( array(\n\t\t\t'post_id' => $post->ID,\n\t\t\t'count' => true,\n\t\t) );\n\n\t\t$link = get_permalink( $post ) . '#comments';\n\n\t\techo \"<span class='comment_counter'><a href='$link'>コメント<span class='num'>$comment_count</span></a></span>\";\n\t}", "title": "" }, { "docid": "21e590ff0235d74c39402be934572190", "score": "0.51653343", "text": "function update_smush_count( $key = 'bulk_sent_count' ) {\n\n\t\t\t$transient_name = WP_SMUSH_PREFIX . $key;\n\n\t\t\t$bulk_sent_count = get_transient( $transient_name );\n\n\t\t\t//If bulk sent count is not set\n\t\t\tif ( false === $bulk_sent_count ) {\n\n\t\t\t\t//start transient at 0\n\t\t\t\tset_transient( $transient_name, 1, 200 );\n\n\t\t\t} else if ( $bulk_sent_count < $this->max_free_bulk ) {\n\n\t\t\t\t//If lte $this->max_free_bulk images are sent, increment\n\t\t\t\tset_transient( $transient_name, $bulk_sent_count + 1, 200 );\n\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5e2c93bc890cacadef7c0b31fbf4aa75", "score": "0.5165136", "text": "public function incrementQueryCount() {\r\n\t\t$this->queryCount++;\r\n\t}", "title": "" }, { "docid": "7d1ca9c50209f8b1cca9bb1d22250302", "score": "0.5159921", "text": "public function update_post_vote($post_id)\n {\n $query = \"Update forum Set vote=vote+1 where forum_id=?\";\n $this->db->query($query, $post_id);\n }", "title": "" }, { "docid": "da26e0779365a580e5eff77ea82e6acb", "score": "0.5140628", "text": "public function run()\n {\n \\App\\Post::all()->each(\n function ($post) {\n $post->total_comments = \\App\\Comment::where('post_id', $post->id)->count();\n $post->total_views = \\App\\PostView::where('post_id', $post->id)->count();\n $post->total_ratings= \\App\\Rating::where('post_id', $post->id)->count();\n $post->avg_rating = \\App\\Rating::where('post_id', 1)->avg('rating');\n $post->save();\n }\n );\n }", "title": "" }, { "docid": "8f50e243c0d336e7f8a1fcb03589cb75", "score": "0.51362395", "text": "function inkpro_ajax_view() {\r\n\t\textract( $_POST );\r\n\t\tif ( isset( $_POST['postId'] ) ){\r\n\t\t\t$post_id = absint( $_POST['postId'] );\r\n\t\t\t$views = absint( get_post_meta( $post_id , '_inkpro_views', true ) );\r\n\t\t\t$new_views = $views + 1;\r\n\t\t\tupdate_post_meta( $post_id, '_inkpro_views', $new_views );\r\n\t\t\techo absint( $new_views );\r\n\t\t\texit;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "36eb3c8ae63936e789b5f1bf6e68c5c4", "score": "0.5109049", "text": "function bbp_update_topic_reply_count($topic_id = 0, $reply_count = \\false)\n{\n}", "title": "" } ]
6763e5896e92528be77caadfd7aecd38
Password recovery new Password process
[ { "docid": "f9faa76ebc7f59f2f8e87d7c237dd482", "score": "0.0", "text": "public function newPasswordView()\n\t{\n\t\tif(Session::get('token'))\n\t\t{\n\t\t\treturn View::make('password.reset');\n\t\t}\n\t\tApp::abort(403);\t\t\n\t}", "title": "" } ]
[ { "docid": "cd32b6966acd1e43117d10e06b675506", "score": "0.7781909", "text": "function recovery_password(){\n\t\t//ModelMember.recoveryPassword()\n\t}", "title": "" }, { "docid": "9a14ca0f528806dd4ac8033c292bcbd3", "score": "0.7532569", "text": "public function newpasswordOperation() : void\n\t\t{\n\t\t\tif ($this->password !== $this->password_repeat)\n\t\t\t\tdie(\\json_encode(['error' => 'Passwords do not match!']));\n\n\t\t\t$user_id = $this->query('SELECT user_id FROM restore WHERE hash = ? ', [$_POST['restore_hash']]);\n\t\t\tif ($user_id == false)\n\t\t\t\tdie(\\json_encode(['error' => 'Wrong link!']));\n\n\t\t\t$new_password = \\crypt($this->password_repeat, \\password_hash($this->password_repeat, PASSWORD_DEFAULT));\n\n\t\t\t$this->query('UPDATE users SET password = ? WHERE id = ? ', [$new_password, $user_id[0]['user_id']]);\n\n\t\t\t$this->query('DELETE FROM restore WHERE user_id = ?', [$user_id[0]['user_id']]);\n\n\t\t\tdie(\\json_encode('Password successfully changed'));\n\t\t}", "title": "" }, { "docid": "f5840b0460d9ab365da207d7bf25d53e", "score": "0.73431164", "text": "protected function changePassword() {}", "title": "" }, { "docid": "56c0f1112ae9fd7ae4e982b6f9f0752d", "score": "0.7321403", "text": "public function recoverPassword() {\n\t\tif(!check($this->_email)) throw new Exception(lang('error_4',true));\n\t\t\n\t\t$accountData = $this->getAccountData();\n\t\tif(!is_array($accountData)) throw new Exception(lang('error_12',true));\n\t\t$this->setUserid($accountData['_id']);\n\t\t$this->setUsername($accountData['accountName']);\n\t\t$this->setNewPassword($this->_generateRandomPassword($this->_recoveryRandomPasswordLength));\n\t\t\n\t\t// password email verification\n\t\tif(is_array($this->_getPasswordChangeRequestData())) throw new Exception(lang('error_19',true));\n\t\t$changePasswordRequest = $this->_createPasswordChangeRequest();\n\t\tif(!$changePasswordRequest) throw new Exception(lang('error_21',true));\n\t\tif(!$this->_sendPasswordRecoveryVerificationEmail()) throw new Exception(lang('error_20',true));\n\t}", "title": "" }, { "docid": "3ffa08cdc1726206b0f72fead663f863", "score": "0.72419643", "text": "public function password_recovery()\n {\n $data['body']='page/password_recovery';\n $data['page_title']=$this->lang->line(\"password recovery\");\n $this->_front_viewcontroller($data);\n }", "title": "" }, { "docid": "e1322475f77e8d8f40be09783a41630a", "score": "0.710443", "text": "function recover_password()\n {\n require_once(dirname(__FILE__) . '/../db.php');\n \n\n // probably the producer has no access to the database. In such case this \n // should probably move to the consumer's api instead. \n $result = mysqli_query(\n $con,\n \"INSERT INTO queue(`action`,`data`) VALUES ('recover_password','$this->username')\");\n\n return 1;\n }", "title": "" }, { "docid": "249b4ebede1630cf3153ac84b600326c", "score": "0.6950471", "text": "public function recovery(){\n\t\t$idUser = trim(strtolower($_POST['idUser']));\n\t\t$newPass ='1234';\n\t\t\n\t\t// consultas a la BD\n\t\t$objuser = $this->loadModel('user');\n\t\t$email =$objuser->getEmail($idUser);\n\t\t$objuser->updatePass($idUser,$newPass);\n\t\t\n\t\tif ($email!=''){\n\t\t\t$mensaje = \"Se realizo cambnio de contraseña \\r\\nUsuario : $idUser\\r\\nPassword: $newPass\";\n\t\t\tmail($email, 'Cambio de Contraseña', $mensaje);\n\t\t}\n\t\t\n\t\t$this->redireccionar('index/index');\n\t}", "title": "" }, { "docid": "cf6f5092643c5a3994314274e1302c5b", "score": "0.68844223", "text": "private function passwordVerify(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6653449ce7d858c0bfaeb3fe556021cc", "score": "0.6824828", "text": "function Login_Password_Recovery_Start()\n {\n $user=$this->SelectUniqueHash\n (\n $this->AuthHash[ \"Table\" ],\n array\n (\n \"Email\" => $this->GetPOST(\"Recover_Login\")\n ),\n TRUE\n );\n\n if (\n preg_match('/^\\d+$/',$user[ \"ID\" ])\n &&\n $user[ \"ID\" ]>0\n )\n {\n $this->AddRecoverEntry($user);\n $this->Login_Password_Mail_Recover($user);\n }\n\n echo \n $this->H(3,$this->GetMessage($this->LoginMessages,\"Recover_Password_Mail_Message\"));\n }", "title": "" }, { "docid": "c283401b8fa5067910abaa1572933332", "score": "0.68227947", "text": "public function set_new_pass()\n {\n $data = $this->input->post(null, true);\n\n // Check if we have a valid recovery.\n\t $result = $this->login_model->get_id_and_mail($data['recovery']);\n\n\t if ($result === false) {\n error('Deze recovery is onbekend.');\n\t\t redirect('inloggen/reset/' . $data['recovery']);\n }\n\n\t $update = [\n 'wachtwoord' => password_hash($data['wachtwoord1'], PASSWORD_DEFAULT),\n 'recovery_valid' => null,\n 'recovery' => null,\n ];\n\n\t if ($this->profile_model->update($result->id, $update) > 0) {\n success('Wachtwoord succesvol opgeslagen');\n } else {\n error('Er is iets mis gegaan bij het opslaan van je wachtwoord. Probeer het later opnieuw.');\n }\n\n redirect('/inloggen');\n }", "title": "" }, { "docid": "f0da76b9316fe5e6c27d26db46e1f769", "score": "0.6792314", "text": "public function recover(){\n\t\t\t$this->view(\"login/recoverPassword\");\n\t\t}", "title": "" }, { "docid": "aa936e701ecf99edb9df8ab5a9420287", "score": "0.67193115", "text": "public function recovery_password_change()\n\t{\n\t\t$this->load->library('form_validation');\n\n\t\t// Load form validation rules\n\t\t$this->load->model('validation_callables');\n\t\t$this->form_validation->set_rules([\n\t\t\t[\n\t\t\t\t'field' => 'passwd',\n\t\t\t\t'label' => 'NEW PASSWORD',\n\t\t\t\t'rules' => [\n\t\t\t\t\t'trim',\n\t\t\t\t\t'required',\n\t\t\t\t\t'matches[passwd_confirm]',\n\t\t\t\t\t[\n\t\t\t\t\t\t'_check_password_strength',\n\t\t\t\t\t\t[$this->validation_callables, '_check_password_strength']\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'passwd_confirm',\n\t\t\t\t'label' => 'CONFIRM NEW PASSWORD',\n\t\t\t\t'rules' => 'trim|required'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'recovery_code'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'user_identification'\n\t\t\t]\n\t\t]);\n\n\t\tif( $this->form_validation->run() !== FALSE )\n\t\t{\n\t\t\t$this->load->vars( ['validation_passed' => 1] );\n\n\t\t\t$this->_change_password(\n\t\t\t\t$this->input->post('passwd'),\n\t\t\t\t$this->input->post('passwd_confirm'),\n\t\t\t\tset_value('user_identification'),\n\t\t\t\tset_value('recovery_code')\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->load->vars( ['validation_errors' => validation_errors()] );\n\t\t}\n\t}", "title": "" }, { "docid": "d2a34984ba7b27671a27a5ce519b47a6", "score": "0.67075044", "text": "public function testCanGeneratePasswordRecoveryCode()\n {\n $this->uzytkownik->forgottenPassword();\n\n $this->assertEquals(32, strlen($this->uzytkownik->getKodZapomnianeHaslo()));\n }", "title": "" }, { "docid": "f8c96d8f390fc5cc448c356f82a7ecb8", "score": "0.66809034", "text": "public function resetpass() {\n\t \n\t\t $userid = $_REQUEST['userid'];\n\t\t $cpass = $_REQUEST['cpass'];\n\t\t $hashpassword = AuthComponent::password($cpass);\n\t\t $npass = $_REQUEST['npass'];\n\t\t $r_npass = $_REQUEST['r_npass'];\n\t\t $n_hashpassword = AuthComponent::password($npass);\n\n\t if($npass != $r_npass)\n\t\t\t\t {\n\t\t\t\t\t$msg = '[{\"msg\":\"Sorry!! new passwords fields does not matches.\"}]';\n\t\t\t echo $msg;\n\t\t\t\t\tdie();\n\t\t\t\t }\n\n $id_pass = $this->Customer->find('count', array('conditions' => array('Customer.id' => $userid,'Customer.password' => $hashpassword)));\t\t\t\t \n \n\t\t\t\t if($id_pass == 1)\n\t\t\t\t {\n\t\t\t\t\t$this->Customer->create();\n\t\t\t\t $this->request->data['Customer']['id'] = $userid;\n\t\t\t\t $this->request->data['Customer']['password'] = $n_hashpassword;\n\t\t\t\t\t if($this->Customer->save($this->request->data))\n\t\t\t\t { \n\t\t\t\t\t\t \n\t\t\t\t\t\t $msg = '[{\"msg\":\"Your password changed successfully\"}]';\n\t\t\t echo $msg;\n } \n\t\t\t\t else \n\t\t\t\t { \n\t\t\t\t\t\t$msg = '[{\"msg\":\"failure\"}]';\n\t\t\t echo $msg;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t { \n\t\t\t\t\t$msg = '[{\"msg\":\"Sorry!! your current password does not matches.\"}]';\n\t\t\t echo $msg;\n\t\t\t\t }\n\n\t die();\n\t}", "title": "" }, { "docid": "7d28d3bb7f23776dcfc4ecda95c06c63", "score": "0.6667396", "text": "function procForgotPass(){\n global $dbase, $session, $mailer, $form;\n /* Username error checking */\n $subusername = $_POST['username'];\n $field = \"username\"; //Use field name for usernamename\n if(!$subusername || strlen($subusername = trim($subusername)) == 0){\n $form->setError($field, \"* Username not entered<br>\");\n }\n else{\n /* Make sure usernamename is in database */\n $subusername = stripslashes($subusername);\n if(strlen($subusername) < 5 || strlen($subusername) > 30 || !eregi(\"^([0-9a-z])+$\", $subusername) || (!$dbase->usernameTaken($subusername))){\n $form->setError($field, \"* Username does not exist<br>\");\n }\n }\n \n /* Errors exist, have username correct them */\n if($form->num_errors > 0){\n $form->values = $_POST;\n $form->errors = $form->getErrorArray();\n }\n /* Generate new passwordword and email it to username */\n else{\n /* Generate new passwordword */\n $newpassword = $session->generateRandStr(8);\n \n /* Get email of username */\n $usrinf = $dbase->getUserInfo($subusername);\n $email = $usrinf['email'];\n \n /* Attempt to send the email with new passwordword */\n if($mailer->sendNewPass($subusername,$email,$newpassword)){\n /* Email sent, update database */\n $dbase->updateUserField($subusername, \"password\", md5($newpassword));\n $_SESSION['forgotpassword'] = true;\n }\n /* Email failure, do not change passwordword */\n else{\n $_SESSION['forgotpassword'] = false;\n }\n }\n \n }", "title": "" }, { "docid": "ca80bc52a6468e45ba15b85eddc4c124", "score": "0.6652397", "text": "protected function setNewPassword()\n {\n\n $time = time();\n\n $objUser = $this->Database->prepare(\"SELECT * FROM tl_user WHERE activation=? AND disable='' AND (start='' OR start<$time) AND (stop='' OR stop>$time)\")->limit(1)->execute(\\Input::get('token'));\n\n if (!$objUser->numRows)\n {\n header('HTTP/1.1 404 Not Found');\n die('Not found');\n }\n\n if (\\Input::post('FORM_SUBMIT') == 'tl_password')\n {\n $pw = \\Input::postUnsafeRaw('password');\n $cnf = \\Input::postUnsafeRaw('confirm');\n\n // Do not allow special characters\n if (preg_match('/[#\\(\\)\\/<=>]/', html_entity_decode(\\Input::post('password'))))\n {\n $_SESSION['PW_ERROR'][] = $GLOBALS['TL_LANG']['ERR']['extnd'];\n }\n // Passwords do not match\n elseif ($pw != $cnf)\n {\n $_SESSION['PW_ERROR'][] = $GLOBALS['TL_LANG']['ERR']['passwordMatch'];\n }\n // Password too short\n elseif (utf8_strlen($pw) < $GLOBALS['TL_CONFIG']['minPasswordLength'])\n {\n $_SESSION['PW_ERROR'][] = sprintf($GLOBALS['TL_LANG']['ERR']['passwordLength'], $GLOBALS['TL_CONFIG']['minPasswordLength']);\n }\n // Password and username are the same\n elseif ($pw == $objUser->username)\n {\n $_SESSION['PW_ERROR'][] = $GLOBALS['TL_LANG']['ERR']['passwordName'];\n }\n // Save the data\n else\n {\n list($strPassword, $strSalt) = explode(':', $objUser->password);\n $strPassword = ($strSalt == '') ? sha1(\\Input::postUnsafeRaw('password')) : sha1($strSalt . \\Input::postUnsafeRaw('password'));\n\n // Make sure the password has been changed\n if ($strPassword . ':' . $strSalt == $objUser->password)\n {\n $_SESSION['PW_ERROR'][] = $GLOBALS['TL_LANG']['MSC']['pw_change'];\n }\n else\n {\n $strSalt = substr(md5(uniqid(mt_rand(), true)), 0, 23);\n $strPassword = sha1($strSalt . $pw);\n\n $this->Database->prepare(\"UPDATE tl_user SET password=?, activation='', loginCount=3, locked=0 WHERE id=?\")->execute($strPassword . ':' . $strSalt, $objUser->id);\n\n \\Message::addConfirmation($GLOBALS['TL_LANG']['MSC']['pw_changed']);\n $this->redirect('contao/index.php');\n }\n }\n\n $this->reload();\n }\n\n $this->Template = new \\BackendTemplate('be_password');\n\n $this->Template->theme = $this->getTheme();\n $this->Template->messages = $this->getPasswordMessages();\n $this->Template->base = $this->Environment->base;\n $this->Template->language = $GLOBALS['TL_LANGUAGE'];\n $this->Template->title = $GLOBALS['TL_CONFIG']['websiteTitle'];\n $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet'];\n $this->Template->action = ampersand($this->Environment->request);\n $this->Template->headline = $GLOBALS['TL_LANG']['MSC']['pw_change'];\n $this->Template->submitButton = specialchars($GLOBALS['TL_LANG']['MSC']['continue']);\n $this->Template->password = $GLOBALS['TL_LANG']['MSC']['newPassword'];\n $this->Template->confirm = $GLOBALS['TL_LANG']['MSC']['confirm'][0];\n $this->Template->disableCron = $GLOBALS['TL_CONFIG']['disableCron'];\n\n return $this->Template->parse();\n }", "title": "" }, { "docid": "ce16db70b6f85d4b3907931a2caf4a56", "score": "0.66355157", "text": "public function change_password(){\n change_password();\n }", "title": "" }, { "docid": "0e60dda384c2a0d94d38450410cd3eaa", "score": "0.6611535", "text": "public function create_new_password(){\r\n $reqs = new \\Required_Parameters(array(),array(\"user_id\"=>\\Types::Int,\"reset_pw_code\"=>\\Types::String,\"user_password\"=>\\Types::String,\"confirm_password\"=>\\Types::String));\r\n return $this->validate_output($reqs,false,null,array($this,\"create_new_password_callback\"),false);\r\n }", "title": "" }, { "docid": "5ab899dbfb3a85260ec3da6189218db0", "score": "0.66099817", "text": "public function newPassword()\n\t{\n\t\t$valid = HomeModel::newPassword();\n\n\t\tif($valid['validator']->passes() AND $valid['status']==true)\n\t\t{\n\t\t\tSession::flash('recovery_message','Your password has been reset, so try and login now!');\n\t\t\treturn Redirect::to('/signin/password-recovery/status');\n\t\t}\n\t\telseif($valid['validator']->passes() AND $valid['status']==false)\n\t\t{\n\t\t\tSession::flash('recovery_message','Something went wrong, click the reset link from your email');\n\t\t\treturn Redirect::to('/signin/password-recovery/status');\n\t\t}\n\t\telseif ($valid['validator']->fails() AND $valid['status']==false)\n\t\t{\n\t\t\treturn Redirect::to('/signin/password-recovery/new-password')->withErrors($valid['validator']);\n\t\t}\n\t}", "title": "" }, { "docid": "030c73776e277e3fb21207038429d895", "score": "0.65897304", "text": "public function actionRecoverPassword()\n\t{\n\t\t$model = new AccountRecoverPasswordForm();\n\n\t\tif ($model->load(Yii::$app->request->post())) {\n\t\t\tif ($model->validate()) {\n\t\t\t\t$model->recoverPassword();\n\t\t\t}\n\t\t}\n\n\t\treturn $this->render('recoverPassword', ['model' => $model]);\n\t}", "title": "" }, { "docid": "b9a0e913a1da8dd5516711dc1ff85869", "score": "0.65846467", "text": "public function recoverOperation() : void\n\t\t{\n\t\t\tif ($this->checkEmail($this->email) != false)\n\t\t\t\tdie(json_encode(['error' => 'Email not found!']));\n\n\t\t\t$hash = \\password_hash($this->email, PASSWORD_DEFAULT);\n\t\t\t$user_id = $this->query('SELECT id FROM users WHERE email = ?', [$this->email])[0]['id'];\n\n\t\t\t$recovery_query = 'INSERT INTO restore(user_id, hash, datetime_restore) VALUES(?, ?, ?)';\n\n\t\t\t$values = [$user_id, $hash, \\date(\"Y-m-d H:i:s\")];\n\n\t\t\t$this->query($recovery_query, $values);\n\n\t\t\t$message = \"Use the following link to reset your password: <br>\";\n\t\t\t$message .= \"http://quiz-constructor/?recovery=$hash <br>\";\n\t\t\t$message .= \"If you don’t use this link within 3 hours, it will expire. <br>\";\n\n\t\t\t#\tWe return the answer to the client before the completion\n\t\t\t#\tof all operations to reduce the waiting time\n\t\t\tif (explode('/', $_SERVER['SERVER_SOFTWARE'])[0] == 'nginx'){\n\n\t\t\t\t# Some response to the client\n\t\t\t\techo \\json_encode('Mail sent');\n\n\t\t\t\t#\tSave session data and close it\n\t\t\t\t\\session_write_close();\n\n\t\t\t\t#\tWe send all the requested data to the client\n\t\t\t\t\\fastcgi_finish_request();\n\t\t\t}\n\n\t\t\t#\tSending letter\n\t\t\tSendingMail::SendMail($this->email, 'Password recovery', $message);\n\n\t\t\tdie(\\json_encode('Mail sent'));\n\t\t}", "title": "" }, { "docid": "9208b8bffc8b2148e9ee0c39e32ef96f", "score": "0.65832007", "text": "function procForgotPass(){\r\n global $database, $session, $mailer, $form;\r\n $database->postToLog(\"Helping user \". $_POST['user'] .\" retrieve password.\");\r\n /* Username error checking */\r\n $subuser = $_POST['user'];\r\n $field = \"user\"; //Use field name for username\r\n if(!$subuser || strlen($subuser = trim($subuser)) == 0){\r\n $form->setError($field, \"* Username not entered<br>\");\r\n }\r\n else{\r\n /* Make sure username is in database */\r\n $subuser = stripslashes($subuser);\r\n if(strlen($subuser) < 5 || strlen($subuser) > 30 ||\r\n !eregi(\"^([0-9a-z])+$\", $subuser) ||\r\n (!$database->usernameTaken($subuser))){\r\n $form->setError($field, \"* Username does not exist<br>\");\r\n }\r\n }\r\n \r\n /* Errors exist, have user correct them */\r\n if($form->num_errors > 0){\r\n $_SESSION['value_array'] = $_POST;\r\n $_SESSION['error_array'] = $form->getErrorArray();\r\n }\r\n /* Generate new password and email it to user */\r\n else{\r\n /* Generate new password */\r\n $newpass = $session->generateRandStr(8);\r\n \r\n /* Get email of user */\r\n $usrinf = $database->getUserInfo($subuser);\r\n $email = $usrinf['email'];\r\n \r\n /* Attempt to send the email with new password */\r\n if($mailer->sendNewPass($subuser,$email,$newpass)){\r\n /* Email sent, update database */\r\n $database->updateUserField($subuser, \"password\", md5($newpass));\r\n $_SESSION['forgotpass'] = true;\r\n }\r\n /* Email failure, do not change password */\r\n else{\r\n $_SESSION['forgotpass'] = false;\r\n }\r\n }\r\n \r\n header(\"Location: \".$session->referrer);\r\n }", "title": "" }, { "docid": "624c5e0328c1c7ae79aa84e73cbe247c", "score": "0.65779203", "text": "function sumo_request_pwdlost() \r\n{\t\r\n\tGLOBAL $SUMO, $sumo_lang_login, $sumo_reg_data;\r\n\t\r\n\t$new_pwd = sumo_get_rand_string(8);\r\n\t$reg_code = sumo_get_simple_rand_string(40);\t\r\n\t$user = sumo_get_user_info($sumo_reg_data['reg_email'], 'email');\r\n\t\t\r\n\tsumo_delete_user_temp(); // Delete old temp users\r\n\tsumo_delete_user_temp($sumo_reg_data['reg_email'], 9); // delete all previous requests\r\n\t\t\r\n\t$query = \"INSERT INTO \".SUMO_TABLE_USERS_TEMP.\" \r\n\t\t\t (username, action, email, language, password, reg_group, reg_code, time)\r\n\t\t\t VALUES (\r\n\t\t\t\t '\".$user['user'].\"', 2, \r\n\t\t\t\t '\".$sumo_reg_data['reg_email'].\"', \r\n\t\t\t\t '\".$user['language'].\"', \r\n\t\t\t\t '\".sha1($new_pwd).\"', \r\n\t '\".$SUMO['page']['reg_group'].\"', \r\n\t '\".$sumo_reg_data['reg_email'].\"', \r\n\t\t\t\t '\".$reg_code.\"',\r\n\t\t\t\t \".$SUMO['server']['time'].\"\r\n\t\t\t\t )\";\r\n\t\r\n\t$SUMO['DB']->Execute($query);\r\n\t\r\n\t$link = $_SERVER['HTTPS'] ? 'https://' : 'http://';\r\n\t\r\n\t$link .= $_SERVER[\"HTTP_HOST\"].$_SERVER[\"PHP_SELF\"].'?sumo_action=changepwd&reg_code='.$reg_code;\r\n\t\r\n\t$name = sumo_get_accesspoint_name($SUMO['page']['name'], $_COOKIE['language']);\r\n\t\r\n\t$message = sumo_get_message('I00104M', array($user['user'], \r\n\t\t\t\t\t\t $sumo_reg_data['reg_email'],\r\n\t\t\t\t\t\t date($SUMO['config']['server']['date_format'].\" \".$SUMO['config']['server']['time_format'], $SUMO['server']['time']),\r\n\t\t\t\t\t\t \"\\\"\".$name.\"\\\"\",\r\n\t\t\t\t\t\t intval($SUMO['config']['accounts']['registration']['life']),\r\n\t\t\t\t\t\t $link,\r\n\t\t\t\t\t\t $new_pwd));\t\t\r\n\t// Send e-mail to confirm\r\n\tif(!$SUMO['config']['server']['admin']['email'])\r\n\t{\r\n\t\tsumo_write_log('E06000X', '', '0,1', 2, 'system', FALSE);\r\n\t}\r\n\telse {\r\n\t\t$m = new Mail; \r\n\t\t$m->From($SUMO['config']['server']['admin']['email']);\r\n\t\t$m->To($sumo_reg_data['reg_email']);\t\r\n\t\t$m->Subject($sumo_lang_login['PasswordLost']); \r\n\t\t$m->Body($message, SUMO_CHARSET); \r\n\t\t$m->Priority(3);\r\n\t\t$m->Send();\r\n\t}\r\n}", "title": "" }, { "docid": "f99dadc8ff0f90218a06d81f6319d80e", "score": "0.65266097", "text": "public function action_changepwd(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a2868a535f9a09dcbbbe739a869e7432", "score": "0.6518691", "text": "protected function sendPasswordLink()\n {\n\n $time = time();\n\n $objUser = $this->Database->prepare(\"SELECT * FROM tl_user WHERE (email=? OR username=?) AND disable='' AND (start='' OR start<$time) AND (stop='' OR stop>$time)\")->limit(1)->execute(\\Input::post('emailOrUsername'), \\Input::post('emailOrUsername'));\n\n if ($objUser->numRows)\n {\n $confirmationId = md5(uniqid(mt_rand(), true));\n\n $this->Database->prepare(\"UPDATE tl_user SET activation=? WHERE id=?\")->execute($confirmationId, $objUser->id);\n\n $strLink = $this->Environment->base . $this->Environment->script . '?pwrecovery=1&token=' . $confirmationId;\n\n // Send mail\n $objEmail = new \\Email();\n $objEmail->from = $GLOBALS['TL_ADMIN_EMAIL'];\n $objEmail->subject = sprintf($GLOBALS['TL_LANG']['MSC']['pwrecoveryText'][0], $this->Environment->base);\n $objEmail->text = sprintf($GLOBALS['TL_LANG']['MSC']['pwrecoveryText'][1], $this->Environment->base, $strLink);\n $objEmail->sendTo($objUser->email);\n\n $this->log('Password for user ' . $objUser->username . ' has been reset.', __METHOD__, TL_GENERAL);\n\n \\Message::addConfirmation($GLOBALS['TL_LANG']['MSC']['pwrecoverySuccess']);\n $this->redirect($this->Environment->script);\n }\n else\n {\n $_SESSION['PW_ERROR'][] = $GLOBALS['TL_LANG']['ERR']['pwrecoveryFailed'];\n }\n\n $this->reload();\n }", "title": "" }, { "docid": "99127fd967c947366171af8d0c0af5d6", "score": "0.6511342", "text": "private function validateAdditionalPassword() {\n }", "title": "" }, { "docid": "00b842ca8dfb6564e1b79f50b52e0232", "score": "0.65094876", "text": "public function resetPassword()\n {\n /** @var PassWord $newPassword */\n $newPassword = \\PassGen::generate(4);\n $hash = \\Hash::make($newPassword->getPlainText(), ['rounds' => 12]);\n $this->password = $hash;\n $this->must_change_pass = true;\n return $newPassword;\n }", "title": "" }, { "docid": "69ff2042cc49492363a82b44d47d3589", "score": "0.65068144", "text": "public function resetpass() {\n\t \n\t\t $userid = $_POST['userid'];\n\t\t $cpass = $_POST['cpass'];\n\t\t $hashpassword = AuthComponent::password($cpass);\n\t\t $npass = $_POST['npass'];\n\t\t $r_npass = $_POST['r_npass'];\n\t\t $n_hashpassword = AuthComponent::password($npass);\n\n\t if($npass != $r_npass)\n\t\t\t\t {\n\t\t\t\t\t$msg = '[{\"msg\":\"Sorry!! new passwords fields does not matches.\"}]';\n\t\t\t echo $msg;\n\t\t\t\t\tdie();\n\t\t\t\t }\n\n $id_pass = $this->Customer->find('count', array('conditions' => array('Customer.id' => $userid,'Customer.password' => $hashpassword)));\t\t\t\t \n \n\t\t\t\t if($id_pass == 1)\n\t\t\t\t {\n\t\t\t\t\t$this->Customer->create();\n\t\t\t\t $this->request->data['Customer']['id'] = $userid;\n\t\t\t\t $this->request->data['Customer']['password'] = $n_hashpassword;\n\t\t\t\t\t if($this->Customer->save($this->request->data))\n\t\t\t\t { \n\t\t\t\t\t\t \n\t\t\t\t\t\t $msg = '[{\"msg\":\"Your password changed successfully\"}]';\n\t\t\t echo $msg;\n } \n\t\t\t\t else \n\t\t\t\t { \n\t\t\t\t\t\t$msg = '[{\"msg\":\"failure\"}]';\n\t\t\t echo $msg;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t { \n\t\t\t\t\t$msg = '[{\"msg\":\"Sorry!! your current password does not matches.\"}]';\n\t\t\t echo $msg;\n\t\t\t\t }\n\n\t die();\n\t}", "title": "" }, { "docid": "1f9d6c18223ce3fecc7234fd64e21eee", "score": "0.6500407", "text": "public function action_resetpwd(){\n\t\t\t//echo \"Hi! I'm resetting your password\";\n\t\t\t\n\t\t}", "title": "" }, { "docid": "1178789e0245fbccf1388c7af35a45d5", "score": "0.6480041", "text": "function getPassword();", "title": "" }, { "docid": "d8ce2175eccaaea588cca2ac2e2428dc", "score": "0.6479146", "text": "public function actionDone()\n\t{\n\t\t$passwordLength = 10;\n\t\t// Word\n\t\t$dictionary = explode(\"\\n\", trim(file_get_contents('../dictionary.txt')));\n\t\t$randomKey = array_rand($dictionary);\n\t\t$passwordWord = $dictionary[$randomKey];\n\t\t// Number\n\t\t$numberLength = rand(1, 4);\n\t\t$passwordNumber = '';\n\t\tfor ($i=0; $i<$numberLength; $i++) {\n\t\t\t$passwordNumber .= rand(0, 9);\n\t\t}\n\t\t// Final password\n\t\t$newPassword = $passwordWord.$passwordNumber;\n\n\t\t/** Connect to WP DB **/\n\t\tmysql_connect(Yii::app()->params['wordpress_db']['host'], \n\t\t\tYii::app()->params['wordpress_db']['user'],\n\t\t\tYii::app()->params['wordpress_db']['pass']);\n\t\tmysql_select_db(Yii::app()->params['wordpress_db']['name']);\n\t\t$table_prefix = Yii::app()->params['wordpress_db']['prefix'];\n\n\t\t/** Grab the user's ID **/\n\t\t$callerID = Yii::app()->session['caller_id'];\n\t\t$query = mysql_query(\n\t\t\t\"SELECT ID FROM {$table_prefix}users\n\t\t\tJOIN {$table_prefix}usermeta \n\t\t\t\tON {$table_prefix}usermeta.user_id = {$table_prefix}users.ID\n\t\t\tWHERE {$table_prefix}usermeta.meta_key = 'vault_phone' \n\t\t\t\tAND {$table_prefix}usermeta.meta_value='$callerID'\"\n\t\t);\n\t\t$userRow = mysql_fetch_row($query);\n\t\t$userID = $userRow[0];\n\n\t\t/** Update the user's password **/\n\t\t$query = mysql_query(\n\t\t\t\"UPDATE {$table_prefix}users \n\t\t\tSET user_pass = MD5('$newPassword')\n\t\t\tWHERE ID = $userID\"\n\t\t);\n\n\t\t$passwordLetters = implode('<break time=\\'.5s\\' />', str_split($passwordWord));\n\n\t\t$this->_handler->say(\n\t\t\t\"<speak>You have been assigned a new password. \"\n\t\t\t.\"Your new password is $passwordWord \"\n\t\t\t.\"<say-as interpret-as='vxml:digits'>\"\n\t\t\t\t.$passwordNumber\n\t\t\t.\"</say-as> \"\n\t\t\t.\"<break time='1s' />\"\n\t\t\t.\"Your new password is $passwordLetters \"\n\t\t\t.\"<say-as interpret-as='vxml:digits'>\"\n\t\t\t\t.$passwordNumber\n\t\t\t.\"</say-as> \"\n\t\t\t.\"<break time='1s' />\"\n\t\t\t.\"Your new password is $passwordLetters \"\n\t\t\t.\"<say-as interpret-as='vxml:digits'>\"\n\t\t\t\t.$passwordNumber\n\t\t\t.\"</say-as> \"\n\t\t\t.\"<break time='1s' />\"\n\t\t\t.\"Your new password is $passwordLetters \"\n\t\t\t.\"<say-as interpret-as='vxml:digits'>\"\n\t\t\t\t.$passwordNumber\n\t\t\t.\"</say-as></speak>\"\n\t\t);\n\t\t$this->_handler->output();\n\t}", "title": "" }, { "docid": "8a8215d2a05f1d504118ea4c99d81988", "score": "0.6467449", "text": "function procForgotPass(){\r\n global $database, $session, $mailer, $form;\r\n /* Username error checking */\r\n $subuser = $_POST['user'];\r\n $field = \"user\"; //Use field name for username\r\n if(!$subuser || strlen($subuser = trim($subuser)) == 0){\r\n $form->setError($field, \"* Username not entered<br>\");\r\n }\r\n else{\r\n /* Make sure username is in database */\r\n $subuser = stripslashes($subuser);\r\n if(strlen($subuser) < 5 || strlen($subuser) > 30 ||\r\n !eregi(\"^([0-9a-z])+$\", $subuser) ||\r\n (!$database->usernameTaken($subuser))){\r\n $form->setError($field, \"* Username does not exist<br>\");\r\n }\r\n }\r\n \r\n /* Errors exist, have user correct them */\r\n if($form->num_errors > 0){\r\n $_SESSION['value_array'] = $_POST;\r\n $_SESSION['error_array'] = $form->getErrorArray();\r\n }\r\n /* Generate new password and email it to user */\r\n else{\r\n /* Generate new password */\r\n $newpass = $session->generateRandStr(8);\r\n \r\n /* Get email of user */\r\n $usrinf = $database->getUserInfo($subuser);\r\n $email = $usrinf['email'];\r\n \r\n /* Attempt to send the email with new password */\r\n if($mailer->sendNewPass($subuser,$email,$newpass)){\r\n /* Email sent, update database */\r\n $database->updateUserField($subuser, \"password\", md5($newpass));\r\n $_SESSION['forgotpass'] = true;\r\n }\r\n /* Email failure, do not change password */\r\n else{\r\n $_SESSION['forgotpass'] = false;\r\n }\r\n }\r\n \r\n header(\"Location: \".$session->referrer);\r\n }", "title": "" }, { "docid": "2e9f047ff2190d62949c14436ee9759c", "score": "0.6459826", "text": "public function redefinePassword() \n\t{\n\t\tglobal $link_id, $link_error; // PHP Globals\r\n\r\n\t\t$CTM_HTML = NULL;\n\t\t$CTM_HTML .= \" \".(empty($link_error) ? \"<script type=\\\"text/javascript\\\">\r\n\t$(function()\r\n\t{\r\n\t\t$(\\\"#NewPassword\\\").keyup(function()\r\n {\r\n return CTM.PasswordLevel(\\\"NewPassword\\\", \\\"PassResult\\\");\r\n });\r\n $(\\\"#CNewPassword\\\").blur(function()\r\n {\r\n if($(this).val().length < 1)\r\n\t\t\t\tCTM.setFieldHover(\\\"CNewPassword\\\", \\\"CPassResult\\\", \\\"{$this->lang->words['Recovery']['Process']['FieldCheck']['Void']}\\\", \\\"#EFDC75\\\", \\\"exclamation\\\");\r\n else if($(\\\"#NewPassword\\\").val() != $(this).val())\r\n\t\t\t\tCTM.setFieldHover(\\\"CNewPassword\\\", \\\"CPassResult\\\", \\\"{$this->lang->words['Recovery']['Process']['FieldCheck']['PassConfirm']}\\\", \\\"#FF0000\\\", \\\"cross\\\");\r\n else\r\n\t\t\t\tCTM.setFieldHover(\\\"CNewPassword\\\", \\\"CPassResult\\\", \\\"{$this->lang->words['Recovery']['Process']['FieldCheck']['PassConfirmed']}\\\", \\\"#093\\\", \\\"tick\\\");\r\n });\r\n\t});\r\n </script>\" : NULL).\"\r\n <div class=\\\"box-content\\\">\r\n \t<div class=\\\"header\\\"><span>{$this->lang->words['Recovery']['Process']['Title']}</span></div>\r\n \".(empty($link_error) ? \"<form name=\\\"RedefinePassword\\\" id=\\\"RedefinePassword\\\" class=\\\"frm\\\">\r\n \t<table width=\\\"100%\\\" border=\\\"0\\\">\r\n \t<tr>\r\n \t<td><label>{$this->lang->words['Recovery']['Process']['NewPassword']}</label></td>\r\n <td>\r\n \t<input type=\\\"password\\\" name=\\\"NewPassword\\\" id=\\\"NewPassword\\\" onkeyup=\\\"this.value = this.value.toLowerCase();\\\" maxlength=\\\"10\\\" size=\\\"32\\\" />\r\n <span id=\\\"PassResult\\\"></span>\r\n \t\t\t</td>\r\n </tr>\r\n <tr>\r\n \t<td><label>{$this->lang->words['Recovery']['Process']['CNewPassword']}</label></td>\r\n <td>\r\n \t<input type=\\\"password\\\" name=\\\"CNewPassword\\\" id=\\\"CNewPassword\\\" onkeyup=\\\"this.value = this.value.toLowerCase();\\\" maxlength=\\\"10\\\" size=\\\"32\\\" />\r\n <span id=\\\"CPassResult\\\"></span>\r\n \t\t\t</td>\r\n \t\t</tr>\r\n \".(empty($link_id) ? \"<tr>\r\n \t<td><label>{$this->lang->words['Recovery']['Process']['Code']}</label></td>\r\n <td>\r\n \t<input type=\\\"text\\\" name=\\\"RedefineCode\\\" id=\\\"RedefineCode\\\" onkeyup=\\\"this.value = this.value.toUpperCase();\\\" maxlength=\\\"23\\\" size=\\\"32\\\" />\r\n \t\t\t</td>\r\n \t\t</tr>\" : NULL).\"\r\n \t</table>\r\n \t<input type=\\\"button\\\" value=\\\"{$this->lang->words['Recovery']['Process']['Button']}\\\" onclick=\\\"CTM.AjaxLoad('?app=core&module=recovery&do=process&write=true\".(!empty($link_id) ? \"&id={$link_id}\" : NULL).\"','Command','RedefinePassword');\\\" class=\\\"btn\\\" />\r\n </form>\" : \"<div class=\\\"error-box\\\">{$link_error}</div>\").\"\r\n </div>\r\n <div id=\\\"Command\\\"></div>\";\n\t\treturn $CTM_HTML;\n\t}", "title": "" }, { "docid": "45fd16c2ecdb8031031ab100b1d87f74", "score": "0.64585423", "text": "public function password_recovery($task = null) {\n $data['task'] = 'password_recovery';\n $data['action'] = $this->encrypt->encode('password_recovery');\n if ($task == 'recoverPassword' && $_SERVER['REQUEST_METHOD'] === 'POST') {\n $email = safe($_POST['email']);\n $this->form_validation->set_rules('email', $this->lang->line('RECOVERY_EMAIL_REGISTERED_LABEL'), 'trim|xss_clean|required|valid_email|callback_checkEmail');\n $this->form_validation->set_error_delimiters('<div class=\"alert alert-danger\">', '</div>');\n if ($this->form_validation->run()) {\n $this->load->model('login');\n $token = do_hash(random_string('alnum', 5));\n $link = site_url() . 'home/changePassword/' . $this->encrypt->encode($token . '/' . $email);\n $check = $this->login->addToken($token, $email);\n if ($check == TRUE) {\n $sendEmail = array(\n 'Subject' => $this->lang->line('RECOVERY_EMAIL_SUBJECT'),\n 'Message' => sprintf($this->lang->line('RECOVERY_EMAIL_MESSAGE'), $this->record[0]->FirstName, $email, $link),\n 'To' => $email,\n 'From' => ''\n );\n $msg = sprintf('<div class=\"alert alert-success\"><i class=\"fa fa-check-circle\"></i>' . $this->lang->line('RECOVERY_EMAIL_SUCCESS') . '</div>', $email);\n if (sendEmail($sendEmail)) {\n $this->session->set_flashdata('loginMessage', $msg);\n setRedirect(site_url());\n } else {\n $msg = '<div class=\"alert alert-danger\">' . $this->lang->line('UNEXPECTED_ERROR_OCCURED') . '</div>';\n $this->session->set_flashdata('otherMessage', $msg);\n }\n } else {\n $msg = '<div class=\"alert alert-danger\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i>' . $this->lang->line('UNEXPECTED_ERROR_OCCURED') . '</div>';\n $this->session->set_flashdata('otherMessage', $msg);\n }\n setRedirect(site_url() . 'home/password_recovery');\n }\n } else {\n $this->load->view('others', $data);\n }\n }", "title": "" }, { "docid": "fc861e9f2f902a2b99cc3f9a1a4f6126", "score": "0.644705", "text": "function ChangeAccountPassword($p)\n {\n errlog(\"INFO: ChangeAccountPassword $p = \", $p);\n $rspA = array();\n }", "title": "" }, { "docid": "8cdd46b9fb70c079d67dbb5859dcb17e", "score": "0.6436065", "text": "public function generatePasswordRecoverKey()\n\t{\n\t\tdo\n\t\t{\n\t\t\t$key = stringGenerator::generate();\n\t\t\t$key = sha1($key);\n\n\t\t\t// make sure that key isn't in use elsewhere..\n\t\t\t$c = new Criteria();\n\t\t\t$c->add(UserPeer::PASSWORD_RECOVER_KEY, $key);\n\t\t\t$count = UserPeer::doCount($c);\n\n\t\t\t$failure = ($count > 0);\n\t\t}\n\t\twhile ($failure);\n\n\t\t$this->setPasswordRecoverKey($key);\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "18362f3216a1b92e2ad130d97274a331", "score": "0.6434067", "text": "public function manualPasswordChange() {\n\t\tif(!check($this->_userid)) throw new Exception(lang('error_4',true));\n\t\tif(!check($this->_username)) throw new Exception(lang('error_4',true));\n\t\tif(!check($this->_newPassword)) throw new Exception(lang('error_4',true));\n\t\t\n\t\tif(!Validator::AccountPassword($this->_newPassword)) throw new Exception(lang('error_7',true));\n\t\t\n\t\t$accountData = $this->getAccountData();\n\t\tif(!is_array($accountData)) throw new Exception(lang('error_12',true));\n\t\t$this->setEmail($accountData['email']);\n\t\t\n\t\t// update password\n\t\t$this->_updatePassword();\n\t\t\n\t\t// send new password email\n\t\tif($this->_changePasswordSendNewPasswordEmail) $this->_sendNewPasswordEmail();\n\t}", "title": "" }, { "docid": "0d3219113657649e66c7cd578316a234", "score": "0.64234155", "text": "function updatePassword($password) {\n #should force to enter old password before changing!\n }", "title": "" }, { "docid": "cdca8cfb36097e0b63198d00566f7e92", "score": "0.6423263", "text": "public function invalidatePassword()\n {\n $this->update([\n 'password' => Hash::make(Str::random(16)),\n ]);\n }", "title": "" }, { "docid": "e8c996c6182df35f1790aa152284a572", "score": "0.6409723", "text": "function lost_password(){\n\t\t//ModelMember.lostPassword()\n\t}", "title": "" }, { "docid": "6aa8a0e982f301af9fcce831470a20d2", "score": "0.6398153", "text": "public function restore_password(){\n $this->db->where('hash', $this->input->post('hash'))->delete('reset_request');\n return $this->db->where('id', $this->input->post('user'))\n ->set('password', password_hash($this->input->post('password'), PASSWORD_DEFAULT))\n ->update('users');\n\n\n }", "title": "" }, { "docid": "15791c3b3515763633134e94ab92e290", "score": "0.63771945", "text": "public function setForcePasswordReset();", "title": "" }, { "docid": "1c512f24d8230a529161fccec8e06c43", "score": "0.63748723", "text": "function Retrieve_Password()\n{\n\n}", "title": "" }, { "docid": "4906907ad6db883eb03e0e32d5200902", "score": "0.6357665", "text": "public function actionChangePasswordProcess() {\n\t\ttry {\n\t\t\treturn $this->getService('Setting')->changePassword();\n\t\t} catch (Exception $e) {\n\t\t\treturn $this->sendError('System error happened');\n\t\t}\n\t}", "title": "" }, { "docid": "82de57b65df772d77b457738da103fac", "score": "0.6348996", "text": "public function passwordChangeOperation() : void\n\t\t{\n\t\t\tif ($this->password !== $this->password_repeat)\n\t\t\t\tdie(\\json_encode(['error' => 'Passwords do not match!']));\n\n\t\t\t$query = $this->query('SELECT password FROM users WHERE id = ?', [$_SESSION['user']['id']]);\n\n\t\t\tif (!\\password_verify($this->oldpassword, $query[0]['password']))\n\t\t\t\tdie(\\json_encode(['error' => 'Invalid old password entered!']));\n\n\t\t\t$new_password = \\crypt($this->password_repeat, \\password_hash($this->password_repeat, PASSWORD_DEFAULT));\n\n\t\t\t$this->query('UPDATE users SET password = ? WHERE id = ? ', [$new_password, $_SESSION['user']['id']]);\n\n\t\t\tdie(\\json_encode('Password successfully changed'));\n\t\t}", "title": "" }, { "docid": "ddef9b4fbed49f1d8d02745a4a5a8779", "score": "0.63406813", "text": "public function newPassword($key)\n\t{\n\t\ttry {\n\t\t\t$key = base64_decode($key);\n\t\t\t$key = explode('/', $key); // key[0] = id, $key[1] = activationkey\n\n\t\t\t// Find the user using ID\n\t\t\t$user = Sentry::findUserById($key[0]);\n\n\t\t\t// Check if the reset password code is valid\n\t\t\tif ($user->checkResetPasswordCode($key[1]) == false) {\n Notification::error('key_not_found');\n return redirect('home');\n }\n\n return view('start.misc.reset_password');\n\t\t} catch (\\Cartalyst\\Sentry\\Users\\UserNotFoundException $e) {\n\t\t\tEvent::fire('log.event', ['Versuchte Vergabe eines neuen Passworts. Nutzer nicht gefunden.']);\n\t\t\tNotification::error('key_not_found');\n\n\t\t\treturn redirect('home');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "113c9e0b2561bdb75706e00d8771b0b9", "score": "0.6322848", "text": "function _resetPassword()\n {\n global $_CORELANG;\n\n $objFWUser = \\FWUser::getFWUserObject();\n // if email is passed over $_GET, we have to replace whitespaces with +, because urldecode decodes + white a withescape. And in emails are never whitespaces, so this must be +\n $email = isset($_POST['email']) ? contrexx_stripslashes($_POST['email']) : (isset($_GET['email']) ? str_replace(' ','+', contrexx_stripslashes($_GET['email'])) : '');\n $restoreKey = isset($_POST['restore_key']) ? contrexx_stripslashes($_POST['restore_key']) : (isset($_GET['restoreKey']) ? contrexx_stripslashes($_GET['restoreKey']) : '');\n $password = isset($_POST['password']) ? trim(contrexx_stripslashes($_POST['password'])) : '';\n $confirmedPassword = isset($_POST['password2']) ? trim(contrexx_stripslashes($_POST['password2'])) : '';\n $statusMessage = '';\n\n if (isset($_POST['reset_password'])) {\n if ($objFWUser->resetPassword($email, $restoreKey, $password, $confirmedPassword, true)) {\n $statusMessage = $_CORELANG['TXT_PASSWORD_CHANGED_SUCCESSFULLY'];\n if ($this->_objTpl->blockExists('login_reset_password')) {\n $this->_objTpl->hideBlock('login_reset_password');\n }\n // automaticly login the user after setting the password successfully.\n $userFilter = array(\n 'active' => 1,\n 'email' => $email,\n );\n $objFWUser->loginUser($objFWUser->objUser->getUsers($userFilter, null, null, null, 1));\n\n // get the url to the welcome page\n $homeUrl = \\Cx\\Core\\Routing\\Url::fromModuleAndCmd('Home', '', FRONTEND_LANG_ID);\n\n $statusMessage .= '<br />' . sprintf($_CORELANG['TXT_LOGIN_WELCOME_PAGE'], $homeUrl);\n } else {\n $statusMessage = $objFWUser->getErrorMsg();\n\n $this->_objTpl->setVariable(array(\n 'TXT_EMAIL'\t\t\t\t\t\t => $_CORELANG['TXT_EMAIL'],\n 'TXT_PASSWORD'\t\t\t\t\t\t=> $_CORELANG['TXT_PASSWORD'],\n 'TXT_VERIFY_PASSWORD'\t\t\t\t=> $_CORELANG['TXT_VERIFY_PASSWORD'],\n 'TXT_PASSWORD_MINIMAL_CHARACTERS'\t=> $_CORELANG['TXT_PASSWORD_MINIMAL_CHARACTERS'],\n 'TXT_SET_PASSWORD_TEXT'\t\t\t\t=> $_CORELANG['TXT_SET_PASSWORD_TEXT'],\n 'TXT_SET_NEW_PASSWORD'\t\t\t\t=> $_CORELANG['TXT_SET_NEW_PASSWORD'],\n ));\n\n $this->_objTpl->parse('login_reset_password');\n }\n } elseif (!$objFWUser->resetPassword($email, $restoreKey, $password, $confirmedPassword)) {\n $statusMessage = $objFWUser->getErrorMsg();\n if ($this->_objTpl->blockExists('login_reset_password')) {\n $this->_objTpl->hideBlock('login_reset_password');\n }\n } else {\n $this->_objTpl->setVariable(array(\n 'TXT_EMAIL'\t\t\t\t\t\t => $_CORELANG['TXT_EMAIL'],\n 'TXT_PASSWORD'\t\t\t\t\t\t=> $_CORELANG['TXT_PASSWORD'],\n 'TXT_VERIFY_PASSWORD'\t\t\t\t=> $_CORELANG['TXT_VERIFY_PASSWORD'],\n 'TXT_PASSWORD_MINIMAL_CHARACTERS'\t=> $_CORELANG['TXT_PASSWORD_MINIMAL_CHARACTERS'],\n 'TXT_SET_PASSWORD_TEXT'\t\t\t\t=> $_CORELANG['TXT_SET_PASSWORD_TEXT'],\n 'TXT_SET_NEW_PASSWORD'\t\t\t\t=> $_CORELANG['TXT_SET_NEW_PASSWORD'],\n ));\n\n $this->_objTpl->parse('login_reset_password');\n }\n\n $this->_objTpl->setVariable(array(\n 'LOGIN_STATUS_MESSAGE'\t=> $statusMessage,\n 'LOGIN_USERNAME'\t\t=> htmlentities($email, ENT_QUOTES, CONTREXX_CHARSET),\n 'LOGIN_RESTORE_KEY'\t\t=> htmlentities($restoreKey, ENT_QUOTES, CONTREXX_CHARSET)\n ));\n\n return $this->_objTpl->get();\n }", "title": "" }, { "docid": "ecf9cb172c28fe4ef3e409029c174562", "score": "0.6315891", "text": "public static function process_lost_password() {\n\t\tif ( isset( $_POST['cs_reset_password'], $_POST['user_login'] ) ) {\n\t\t\t$nonce_value = cs_get_var( $_REQUEST['communityservice-lost-password-nonce'], cs_get_var( $_REQUEST['_wpnonce'], '' ) ); // @codingStandardsIgnoreLine.\n\n\t\t\tif ( ! wp_verify_nonce( $nonce_value, 'lost_password' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$success = CS_Shortcode_My_Account::retrieve_password();\n\n\t\t\t// If successful, redirect to my account with query arg set.\n\t\t\tif ( $success ) {\n\t\t\t\twp_redirect( add_query_arg( 'reset-link-sent', 'true', cs_get_account_endpoint_url( 'lost-password' ) ) );\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "670546ad6cd6556cbe343cb622a86849", "score": "0.62913465", "text": "function Login_Password_Recover_Handle()\n {\n $this->MyApp_Interface_Head();\n\n if (\n ($this->CGI_GETOrPOSTint(\"Update\")!=1)\n ||\n $this->CGI_GETOrPOST(\"Recover_Login\")==\"\"\n )\n {\n if (\n $this->Login_Password_Recover_Has_Login()\n &&\n $this->Login_Password_Recover_Has_Code()\n )\n {\n $this->Login_Password_Recovery_Form_Final();\n }\n else\n {\n $this->Login_Password_Recovery_Form_Init();\n }\n }\n else\n {\n $this->Login_Password_Recovery_Start();\n }\n\n exit();\n\n }", "title": "" }, { "docid": "c12507fd647931cb90790bbed26884b5", "score": "0.6290325", "text": "public function passwordAction()\n\t{\n\t\tif ($this->request->isPost()) {\n\t\t\t$user = \\Users\\Module::session()->getUser();\n\t\t\t$currentPassword = $this->request->getParam(\"currentPassword\");\n\t\t\t$newPassword = $this->request->getParam(\"newPassword\");\n\t\t\t$newPasswordConfirm = $this->request->getParam(\"newPasswordConfirm\");\n\t\t\t\n\t\t\tif ($newPassword !== $newPasswordConfirm) {\n\t\t\t\tthrow new \\Exception(\"New password and confirmation do not match\");\n\t\t\t}\n\t\t\t\n\t\t\t$userStorage = new UserStorage($this->database);\n\t\t\t$passwordChanger = new PasswordChanger($user, $userStorage);\n\t\t\t$passwordChanger->change($currentPassword, $newPassword);\n\t\t}\n\t}", "title": "" }, { "docid": "edc00b9b5f7d2a993b166063b5273f9c", "score": "0.62863505", "text": "public function lost_password()\n\t{\n\t\t$viewData = [\n 'page_title' => 'Recover password'\n\t\t];\n\t\t$this->set( $viewData );\n\n\t\t$this->view->render( 'frontend/auth/lost_password', $this->layout, $this->vars );\n\t}", "title": "" }, { "docid": "44f6558f91ca05aa1a4fa18a226e8d87", "score": "0.6278577", "text": "public function resetPassword()\n\t{\n\n\t\t// generate new password\n\t\t$generator = Idea_Password_Generator_Adapter::getGenerator(array(\n\t\t\t'length' => 10,\n\t\t\t'includeLowerCaseChars' => true,\n\t\t\t'includeUpperCaseChars' => true,\n\t\t\t'includeDigits' => true,\n\t\t));\n\n\t\t$password = $generator->generate();\n\n\t\t$this->setRawPassword($password);\n\n\t\treturn $password;\n\n\t}", "title": "" }, { "docid": "e9eb2434054e1cffbaf571c66c0e62dc", "score": "0.6274505", "text": "public function getPasswordNeedsReHash();", "title": "" }, { "docid": "339e5f221f0a95be9d9b95d98027e89e", "score": "0.6256272", "text": "public function change_password()\n {\n $user_id = null;\n $username = null;\n \n try\n {\n if($this->user_exists() && !RightsHandler::has_user_right(\"CHANGE_PASSWORD\"))\n {\n throw new Exception(\"INSUFFICIENT_RIGHTS\");\n }\n\n if(func_num_args() != 3 && func_num_args() != 4) {\n throw new Exception ();\n }\n \n $password_reset = func_num_args() == 4 || !$this->user_exists();\n $new_password = $password_reset ? func_get_args()[2] : func_get_args()[1];\n $new_password_copy = $password_reset ? func_get_args()[3] : func_get_args()[2];\n \n\n if(empty($new_password) || empty($new_password_copy)){\n throw new Exception (\"USER_EMPTY_FORM\");\n }\n \n if($new_password != $new_password_copy) {\n throw new Exception (\"USER_PASSWORDS_DOES_NOT_MATCH\");\n }\n \n if(strlen($new_password) < 6) {\n throw new Exception (\"USER_PASSWORD_TOO_SHORT\");\n }\n \n if($password_reset && !$this->user_exists()) {\n $user_id = func_get_args()[0];\n $validation_code = func_get_args()[1];\n \n if(!is_numeric($user_id)) {\n throw new Exception (\"USER_INVALID_ID\");\n }\n \n $userData = DbHandler::get_instance()->return_query(\"SELECT username FROM users WHERE id = :user_id AND validation_code = :validation_code\", $user_id, $validation_code);\n if(empty($userData)) {\n throw new Exception (\"USER_INVALID_PASSWORD_RESET\");\n }\n \n $username = reset($userData)[\"username\"];\n }\n \n if(!$password_reset && $this->user_exists()) {\n $old_password = func_get_args()[0];\n $username = $this->_user->username;\n \n if(empty($old_password)) {\n throw new Exception (\"USER_EMPTY_FORM\");\n }\n \n if(DbHandler::get_instance()->count_query(\"SELECT id FROM users WHERE id = :id AND password = :password LIMIT 1\", $this->_user->id, hash(\"sha256\", $old_password . \" \" . $this->_user->username)) < 1) {\n throw new Exception (\"USER_INVALID_OLD_PASSWORD\");\n }\n }\n \n $user_id = !$password_reset && $this->user_exists() ? $this->_user->id : $user_id;\n DbHandler::get_instance()->query(\"UPDATE users SET password = :password, validation_code = :validation_code WHERE id = :id\", hash(\"sha256\", $new_password . \" \" . $username), null, $user_id);\n \n return true;\n }\n catch (Exception $ex)\n {\n $this->error = ErrorHandler::return_error($ex->getMessage());\n return false;\n }\n \n }", "title": "" }, { "docid": "6b82b3dcc69b1c80175da18a778e136a", "score": "0.6250805", "text": "public function updatePassword()\n {\n $sNewPass = oxRegistry::getConfig()->getRequestParameter('password_new', true);\n $sConfPass = oxRegistry::getConfig()->getRequestParameter('password_new_confirm', true);\n\n $oUser = oxNew('oxuser');\n\n /** @var oxInputValidator $oInputValidator */\n $oInputValidator = oxRegistry::get('oxInputValidator');\n if (($oExcp = $oInputValidator->checkPassword($oUser, $sNewPass, $sConfPass, true))) {\n return oxRegistry::get(\"oxUtilsView\")->addErrorToDisplay($oExcp->getMessage(), false, true);\n }\n\n // passwords are fine - updating and loggin user in\n if ($oUser->loadUserByUpdateId($this->getUpdateId())) {\n\n // setting new pass ..\n $oUser->setPassword($sNewPass);\n\n // resetting update pass params\n $oUser->setUpdateKey(true);\n\n // saving ..\n $oUser->save();\n\n // forcing user login\n oxRegistry::getSession()->setVariable('usr', $oUser->getId());\n\n return 'forgotpwd?success=1';\n } else {\n // expired reminder\n $oUtilsView = oxRegistry::get(\"oxUtilsView\");\n\n return $oUtilsView->addErrorToDisplay('ERROR_MESSAGE_PASSWORD_LINK_EXPIRED', false, true);\n }\n }", "title": "" }, { "docid": "7924d2d455f5bae4d86c536fbdf64016", "score": "0.62459713", "text": "public function recoveryPasswordViaEmail(){\n\t\t$uniqid = md5(uniqid(rand(), true));\n\t\t$tm = new DateTime();\n\t\t$now = $tm->format(\"Y-m-d H:i:s\");\n\t\t$due = $tm->add(new DateInterval('P1D'));\n\t\t$area = null;\n\t\tif ($this->user_ instanceof SchoolUserBean){\n\t\t\t$area = 3;\n\t\t}\n\t\telse if ($this->user_ instanceof ParentBean){\n\t\t\t$area = 1;\n\t\t}\n\t\telse {\n\t\t\t$area = 2;\n\t\t}\n\n\t\t$smt = $this->datasource_->prepare(\"INSERT INTO rb_recupero_password (utente, gruppo, token, data_richiesta, data_scadenza_token) VALUES (?, ?, ?, ?, ?)\");\n\t\t$id = $this->user_->getUid();\n\t\t$dt = $due->format(\"Y-m-d H:i:s\");\n\t\t$smt->bind_param(\"iisss\", $id, $area, $uniqid, $now, $dt);\n\t\t$smt->execute();\n\n\t\t/*\n\t\t * send email\n\t\t */\n\t\t$to = $this->user_->getUsername();\n\t\t$subject = \"Richiesta nuova password\";\n\t\t$from = \"[email protected]\";\n\t\t$headers = \"From: {$from}\\r\\n\".\"Reply-To: {$from}\\r\\n\" .'X-Mailer: PHP/' . phpversion();\n\t\t$message = \"Gentile utente,\\nabbiamo ricevuto la sua richiesta di una nuova password di accesso al Registro Elettronico.\\n \";\n\t\t$message .= \"Per modificare la password, clicchi sul link seguente entro 24 ore:\\n\\n\";\n\t\t$message .= $_SESSION['__config__']['root_site'].\"/change_password.php?token=\".$uniqid.\"&area=\".$area.\"\\n\";\n\t\t$message .= \"Per qualunque problema, non esiti a contattarci.\\n\\n\";\n\t\t$message .= \"Si prega di non rispondere a questa mail, in quanto inviata da un programma automatico.\\n\\n\";\n\t\tmail($to, $subject, $message, $headers);\n\t}", "title": "" }, { "docid": "0e1cd4eba19de89a9398bdd845182041", "score": "0.62396234", "text": "function validPassword() {\r\n\t}", "title": "" }, { "docid": "123a7a859be7ac903c24af5ed5190d58", "score": "0.6232795", "text": "function setNewPassword()\n {\n $login_model = $this->loadModel('Login');\n // try the password reset (user identified via hidden form inputs ($user_name, $verification_code)), see\n // verifyPasswordReset() for more\n $login_model->setNewPassword();\n // regardless of result: go to index page (user will get success/error result via feedback message)\n header('location: ' . URL . 'login/index');\n }", "title": "" }, { "docid": "0b282611b33efd9775aaacf9fe2559de", "score": "0.6228646", "text": "public function resetPassword($input);", "title": "" }, { "docid": "bb2259e95153a4c99b4c93d2ec43b48c", "score": "0.62200636", "text": "private function _change_user_password(){\n\t\t\t$result_of_all_processing = array();\n\t\t\t\n\t\t\t//CHECK FOR OLD PASSWORD\n\t\t\tif( isset( $_POST[ $this->table_fields['oldpassword'] ] ) ){\n\t\t\t\t\n\t\t\t\tif( $_POST[ $this->table_fields['oldpassword'] ] ){\n\t\t\t\t\n\t\t\t\t\t//TEST OLD PASSWORD TO ENSURE IT MATCHES STORED PASSWORD\n\t\t\t\t\t$query = \"SELECT * FROM `\" . $this->class_settings['database_name'] . \"`.`\" . $this->table_name . \"` WHERE `\".$this->table_name.\"`.`id`='\" . $this->class_settings['user_id'] . \"' AND `\" . $this->table_name . \"`.`\".$this->table_fields['oldpassword'].\"`='\" . md5( $_POST[ $this->table_fields['oldpassword'] ] . get_websalter() ) . \"' AND `\" . $this->table_name . \"`.`record_status`='1' \";\n\t\t\t\t\t$query_settings = array(\n\t\t\t\t\t\t'database' => $this->class_settings['database_name'] ,\n\t\t\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t\t\t'query' => $query,\n\t\t\t\t\t\t'query_type' => 'SELECT',\n\t\t\t\t\t\t'set_memcache' => 1,\n\t\t\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t\t\t);\n\t\t\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\t\t\n\t\t\t\t\tif( isset( $sql_result[0] ) && is_array( $sql_result[0] ) && ! empty ( $sql_result[0] ) ){\n\t\t\t\t\t\t//DESTROY OLD PASSWORD FIELD\n\t\t\t\t\t\tunset( $_POST[ $this->table_fields['oldpassword'] ] );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$processing_status = $this->_save_changes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( is_array( $processing_status ) && !empty( $processing_status ) ){\n\t\t\t\t\t\t\t$result_of_all_processing = $processing_status;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( isset( $result_of_all_processing['typ'] ) && $result_of_all_processing['typ'] == 'saved' ){\n\t\t\t\t\t\t\t\t//TRANSFORM SUCCESS MESSAGE\n\t\t\t\t\t\t\t\t$err = new cError(010008);\n\t\t\t\t\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\t\t\t\t$err->class_that_triggered_error = 'cSite_users.php';\n\t\t\t\t\t\t\t\t$err->method_in_class_that_triggered_error = '_change_user_password';\n\t\t\t\t\t\t\t\t$err->additional_details_of_error = 'successful password change';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$result_of_all_processing = $err->error();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//RETURN NON-MATCHING OLD PASSWORD ERROR\n\t\t\t\t$err = new cError(000103);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t$err->class_that_triggered_error = 'cSite_users.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_change_user_password';\n\t\t\t\t\n\t\t\t\tif( isset( $query ) && $query ){\n\t\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 138';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$result_of_all_processing = $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t//SET VARIABLES FOR EDIT MODE\n\t\t\t$_POST['id'] = $this->class_settings['user_id'];\n\t\t\t$_POST['mod'] = 'edit-'.md5( $this->table_name );\n\t\t\t\n\t\t\t//GENERATE REGISTRATION FORM WITH USER DETAILS\n\t\t\t//Disable appearance of all headings on forms\n\t\t\t$this->class_settings['do_not_show_headings'] = true;\n\t\t\t\t\n\t\t\t$this->class_settings[\"hidden_records\"] = array();\n\t\t\t$this->class_settings[\"hidden_records_css\"] = array();\n\t\t\t\t\n\t\t\tforeach( $this->table_fields as $k => $v ){\n\t\t\t\t$this->class_settings[\"hidden_records\"][ $v ] = 1;\n\t\t\t}\n\t\t\t\n\t\t\tunset( $this->class_settings['hidden_records'][ $this->table_fields[\"oldpassword\"] ] );\n\t\t\t\n\t\t\tunset( $this->class_settings['hidden_records'][ $this->table_fields[\"password\"] ] );\n\t\t\tunset( $this->class_settings['hidden_records'][ $this->table_fields[\"confirmpassword\"] ] );\n\t\t\t\n\t\t\t//Form button caption\n\t\t\t$this->class_settings[ 'form_submit_button' ] = 'Change Password';\n\t\t\t\n\t\t\t$returned_data = $this->_generate_new_data_capture_form();\n\t\t\t\n\t\t\tif( ! empty ( $result_of_all_processing ) && isset( $result_of_all_processing['html'] ) ){\n\t\t\t\t$result_of_all_processing['html'] = $returned_data['html'];\n\t\t\t\t\n\t\t\t\treturn $result_of_all_processing;\n\t\t\t}\n\t\t\t\n\t\t\treturn $returned_data;\n\t\t}", "title": "" }, { "docid": "d96c262fc198bd6d5babd324cc00cf02", "score": "0.6209744", "text": "function save_new_password() {\n try {\n $email = add_quote($_REQUEST[\"email\"]);\n $password = add_quote($_REQUEST[\"txtPassword\"]);\n $sql = \"UPDATE \" . DBPREFIX . \"fgusers SET `password` = '\" . md5($password) . \"' WHERE `email` ='\" . $email . \"'\";\n $result = $this->Query($sql);\n header(\"Location: success_reset_password.php\");\n die;\n } catch (Exception $e) {\n return \"Error in save_new_password - \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "649bcdcf72f14a5daecb49d889b5d059", "score": "0.62095684", "text": "public function passwordrecovery($step=1){\n\t\tif($step !=1 && !isset($_SESSION['recovery'])){\n\t\t\tredirect(site_url('employee/passwordrecovery/1'));\n\t\t}\n\n\t\t$data['noLoginRequired']=true;\n\t\t$data['title']=\"Mot de passe oublié\";\n\t\t$data['step']=$step;\n\n\t\t$this->form_validation->set_error_delimiters('<small class=\"alert alert-danger p-1 ml-1 \">', '</small>');\n\n\t\tif ($this->form_validation->run() === TRUE) {\n\n\n\n\t\t\tif($step == 1) {\n\n\t\t\t\t$user=$this->Employee_model->getByEmail($_POST['mail']);\n\n\t\t\t\tif ( !empty($user) ){\n\n\t\t\t\t\t//generate recovery code\n\t\t\t\t\t$token = substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&#!?') , 0 , 8 );\n\n\t\t\t\t\t//send mail\n\t\t\t\t\t$this->email->send_recovery_token($user,$token);\n\n\t\t\t\t\t//store email and recovery code hash in session\n\t\t\t\t\t$_SESSION['recovery']['mail'] = $_POST['mail'];\n\t\t\t\t\t$_SESSION['recovery']['token'] = password_hash($token, PASSWORD_DEFAULT);\n\n\t\t\t\t\tredirect(site_url('employee/passwordrecovery/2'));\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//check if sent recovery hash matches the hash in session\n\t\t\t\tif (password_verify($_POST['token'], $_SESSION['recovery']['token'])){\n\n\t\t\t\t\t//update user password\n\t\t\t\t\t$user=$this->Employee_model->getByEmail($_SESSION['recovery']['mail']);\n\t\t\t\t\t$this->Employee_model->update_password($user->id);\n\n\t\t\t\t\t//suppression des variables de session\n\t\t\t\t\tunset($_SESSION['recovery']);\n\n\t\t\t\t\t$this->session->set_flashdata('validation_message', 'Votre mot de passe a bien été modifié');\n\t\t\t\t\tredirect(site_url('login'));\n\n\t\t\t\t}else{\n\t\t\t\t\t$data['tokenError'] = \"Le code de sécurité est invalide.\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\n\t\t$this->load->view('common/_header', $data);\n\t\t$this->load->view('employee/passwordrecovery', $data);\n\t\t$this->load->view('common/_footer', $data);\n\t}", "title": "" }, { "docid": "15f2b55a0056b8718dec6588a6f7d174", "score": "0.6203812", "text": "function change_password ($dn, $password, $mode=FALSE, $hash= \"\", $old_password = \"\", &$message = \"\")\n{\n global $config;\n $newpass= \"\";\n\n // Not sure, why this is here, but maybe some encryption methods require it.\n mt_srand((double) microtime()*1000000);\n\n // Get a list of all available password encryption methods.\n $methods = new passwordMethod(session::get('config'),$dn);\n $available = $methods->get_available_methods();\n\n // Fetch the current object data, to be able to detect the current hashing method\n // and to be able to rollback changes once has an error occured.\n $ldap = $config->get_ldap_link();\n $ldap->cat ($dn, array(\"shadowLastChange\", \"userPassword\",\"sambaNTPassword\",\"sambaLMPassword\", \"uid\"));\n $attrs = $ldap->fetch ();\n $initialAttrs = $attrs;\n\n // If no hashing method is enforced, then detect what method we've to use.\n $hash = strtolower($hash);\n if(empty($hash)){\n\n // Do we need clear-text password for this object?\n if(isset($attrs['userPassword'][0]) && !preg_match (\"/^{([^}]+)}(.+)/\", $attrs['userPassword'][0])){\n $hash = \"clear\";\n $test = new $available[$hash]($config,$dn);\n $test->set_hash($hash);\n }\n\n // If we've still no valid hashing method detected, then try to extract if from the userPassword attribute.\n elseif(isset($attrs['userPassword'][0]) && preg_match (\"/^{([^}]+)}(.+)/\", $attrs['userPassword'][0], $matches)){\n $test = passwordMethod::get_method($attrs['userPassword'][0],$dn);\n $hash = $test->get_hash_name();\n }\n\n // No current password was found and no hash is enforced, so we've to use the config default here.\n $hash = $config->get_cfg_value('core','passwordDefaultHash');\n $test = new $available[$hash]($config,$dn);\n $test->set_hash($hash);\n }else{\n $test = new $available[$hash]($config,$dn);\n $test->set_hash($hash);\n }\n\n // We've now a valid password-method-handle and can create the new password hash or don't we?\n if(!$test instanceOf passwordMethod){\n $message = _(\"Cannot detect password hash!\");\n }else{\n\n // Feed password backends with object information. \n $test->dn = $dn;\n $test->attrs = $attrs;\n $newpass= $test->generate_hash($password);\n\n // Do we have to append samba attributes too?\n // - sambaNTPassword / sambaLMPassword\n $tmp = $config->get_cfg_value('core','sambaHashHook');\n $attrs= array();\n if (!$mode && !empty($tmp)){\n $attrs= generate_smb_nt_hash($password);\n if(!count($attrs) || !is_array($attrs)){\n msg_dialog::display(_(\"Error\"),_(\"Cannot generate SAMBA hash!\"),ERROR_DIALOG);\n return(FALSE); \n }else{\n $shadow = (isset($attrs[\"shadowLastChange\"][0]))?(int)(date(\"U\") / 86400):0;\n if ($shadow != 0){\n $attrs['shadowLastChange']= $shadow;\n }\n }\n }\n\n // Write back the new password hash \n $ldap->cd($dn);\n $attrs['userPassword']= $newpass;\n\n // Prepare a special attribute list, which will be used for event hook calls\n $attrsEvent = array();\n foreach($initialAttrs as $name => $value){\n if(!is_numeric($name))\n $attrsEvent[$name] = escapeshellarg($value[0]);\n }\n $attrsEvent['dn'] = escapeshellarg($initialAttrs['dn']);\n foreach($attrs as $name => $value){\n $attrsEvent[$name] = escapeshellarg($value);\n }\n $attrsEvent['current_password'] = escapeshellarg($old_password);\n $attrsEvent['new_password'] = escapeshellarg($password);\n\n // Call the premodify hook now\n $passwordPlugin = new password($config,$dn);\n plugin::callHook($passwordPlugin, 'PREMODIFY', $attrsEvent, $output,$retCode,$error, $directlyPrintError = FALSE);\n if($retCode === 0 && count($output)){\n $message = sprintf(_(\"Pre-event hook reported a problem: %s. Password change canceled!\"),implode($output));\n return(FALSE);\n }\n\n // Perform ldap operations\n $ldap->modify($attrs);\n\n // Check if the object was locked before, if it was, lock it again!\n $deactivated = $test->is_locked($config,$dn);\n if($deactivated){\n $test->lock_account($config,$dn);\n }\n\n // Check if everything went fine and then call the post event hooks.\n // If an error occures, then try to rollback the complete actions done.\n $preRollback = FALSE;\n $ldapRollback = FALSE;\n $success = TRUE;\n if (!$ldap->success()) {\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - ldap modifications! - FAILED\");\n $success =FALSE;\n $message = msgPool::ldaperror($ldap->get_error(), $dn, LDAP_MOD);\n $preRollback =TRUE;\n } else {\n\n // Now call the passwordMethod change mechanism.\n if(!$test->set_password($password)){\n $ldapRollback = TRUE;\n $preRollback =TRUE;\n $success = FALSE;\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - set_password! - FAILED\");\n $message = _(\"Password change failed!\");\n }else{\n \n // Execute the password hook\n plugin::callHook($passwordPlugin, 'POSTMODIFY', $attrsEvent, $output,$retCode,$error, $directlyPrintError = FALSE);\n if($retCode === 0){\n if(count($output)){\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - Post modify hook reported! - FAILED!\");\n $message = sprintf(_(\"Post-event hook reported a problem: %s. Password change canceled!\"),implode($output));\n $ldapRollback = TRUE;\n $preRollback = TRUE;\n $success = FALSE;\n }else{\n #new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - successfull!\");\n }\n }else{\n $ldapRollback = TRUE;\n $preRollback = TRUE;\n $success = FALSE;\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - postmodify hook execution! - FAILED\");\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),$error);\n\n // Call password method again and send in old password to \n // keep the database consistency\n $test->set_password($old_password);\n }\n }\n }\n\n // Setting the password in the ldap database or further operation failed, we should now execute \n // the plugins pre-event hook, using switched passwords, new/old password.\n // This ensures that passwords which were set outside of GOsa, will be reset to its \n // starting value.\n if($preRollback){\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Rolling back premodify hook!\");\n $oldpass= $test->generate_hash($old_password);\n $attrsEvent['current_password'] = escapeshellarg($password);\n $attrsEvent['new_password'] = escapeshellarg($old_password);\n foreach(array(\"userPassword\",\"sambaNTPassword\",\"sambaLMPassword\") as $attr){\n if(isset($initialAttrs[$attr][0])) $attrsEvent[$attr] = $initialAttrs[$attr][0];\n }\n \n plugin::callHook($passwordPlugin, 'PREMODIFY', $attrsEvent, $output,$retCode,$error, $directlyPrintError = FALSE);\n if($retCode === 0 && count($output)){\n $message = sprintf(_(\"Pre-event hook reported a problem: %s. Password change canceled!\"),implode($output));\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Rolling back premodify hook! - FAILED!\");\n }\n }\n \n // We've written the password to the ldap database, but executing the postmodify hook failed.\n // Now, we've to rollback all password related ldap operations.\n if($ldapRollback){\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Rolling back ldap modifications!\");\n $attrs = array();\n foreach(array(\"userPassword\",\"sambaNTPassword\",\"sambaLMPassword\") as $attr){\n if(isset($initialAttrs[$attr][0])) $attrs[$attr] = $initialAttrs[$attr][0];\n }\n $ldap->cd($dn);\n $ldap->modify($attrs);\n if(!$ldap->success()){\n $message = msgPool::ldaperror($ldap->get_error(), $dn, LDAP_MOD);\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Rolling back ldap modifications! - FAILED\");\n }\n }\n\n // Log action.\n if($success){\n stats::log('global', 'global', array('users'), $action = 'change_password', $amount = 1, 0, $test->get_hash());\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - successfull!\");\n }else{\n new log(\"modify\",\"users/passwordMethod\",$dn,array(),\"Password change - FAILED!\");\n }\n\n return($success);\n }\n}", "title": "" }, { "docid": "e37ffd6c773ca7daeaa9f361da1a315e", "score": "0.619855", "text": "function pippin_reset_password() {\n\tif(isset($_POST['pippin_action']) && $_POST['pippin_action'] == 'reset-password') {\n\n\t\tglobal $user_ID;\n\t\tif(!is_user_logged_in())\n\t\t\treturn;\n\t\tif(wp_verify_nonce($_POST['pippin_password_nonce'], 'rcp-password-nonce')) {\n\t\t\tif($_POST['pippin_user_pass'] == '' || $_POST['pippin_user_pass_confirm'] == '') {\n // password(s) field empty\n\t\t\t\tpippin_errors()->add('password_empty', __('الرجاء إدخال كلمة السر، وتأكيد ذلك', 'pippin'));\n\t\t\t}\n\t\t\tif($_POST['pippin_user_pass'] != $_POST['pippin_user_pass_confirm']) {\n // passwords do not match\n\t\t\t\tpippin_errors()->add('password_mismatch', __('كلمات المرور غير متطابقة', 'pippin'));\n\t\t\t}\n // retrieve all error messages, if any\n\t\t\t$errors = pippin_errors()->get_error_messages();\n\t\t\tif(empty($errors)) {\n // change the password here\n\t\t\t\t$user_data = array(\n\t\t\t\t\t'ID' => $user_ID,\n\t\t\t\t\t'user_pass' => $_POST['pippin_user_pass']\n\t\t\t\t\t);\n\t\t\t\twp_update_user($user_data);\n // send password change email here (if WP doesn't)\n\t\t\t\twp_redirect(add_query_arg('password-reset', 'true', $_POST['pippin_redirect']));\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t} \n}", "title": "" }, { "docid": "7e416c5f015dd7b1813db78fc169fa9d", "score": "0.6197549", "text": "static function modificaPassword(){\n if(!static::verificalogin())header('Location: /Progetto/Utente/homepagedef');\n else{\n session_start();\n if($_SERVER['REQUEST_METHOD'] == \"GET\")header('Location: /Progetto/Utente/homepagedef');\n else{\n $utenteDB = FPersistentManager::loadLoginPWHash($_SESSION['utente']->getUsername(), $_POST[\"PwPassword\"]);\n if($utenteDB != null) {\n $hashPW = password_hash($_POST[\"NewPassword\"], PASSWORD_DEFAULT);\n FPersistentManager::update(\"password\", $hashPW, \"username\", $_SESSION['utente']->getUsername(), \"FUtente\");\n $_SESSION['utente']->setPassword($hashPW);\n $_SESSION['pwedit']=true;\n\n }\n else $_SESSION['pwedit']=false;\n\n header('Location: /Progetto/Utente/user?id='.$_SESSION['utente']->getUsername());\n }\n }\n }", "title": "" }, { "docid": "24fade2c15912ce768591d2fdb59d925", "score": "0.6195846", "text": "public function request_new_password(){\r\n $reqs = new \\Required_Parameters(array(),array(\"user_email_address\"));\r\n return $this->validate_output($reqs,false,null,array($this,\"request_new_password_callback\"),false);\r\n }", "title": "" }, { "docid": "d23c98b0356d97c962431d4c30e0c261", "score": "0.6195722", "text": "function password_save($curpass, $passwd)\n{\n $rcmail = rcmail::get_instance();\n\n $sql = \"UPDATE `mail_users` SET `mail_pass` = %p , `status` = 'change' WHERE `mail_addr` = %u AND `mail_pass` = %o LIMIT 1\";\n\n if ($dsn = $rcmail->config->get('password_db_dsn')) {\n\t // #1486067: enable new_link option\n\t if (is_array($dsn) && empty($dsn['new_link']))\n\t $dsn['new_link'] = true;\n\t else if (!is_array($dsn) && !preg_match('/\\?new_link=true/', $dsn))\n\t $dsn .= '?new_link=true';\n\n $db = new rcube_mdb2($dsn, '', FALSE);\n $db->set_debug((bool)$rcmail->config->get('sql_debug'));\n $db->db_connect('w');\n } else {\n $db = $rcmail->get_dbh();\n }\n\n if ($err = $db->is_error()) {\n return PASSWORD_CONNECT_ERROR;\n }\n \n // Make special ispCP things \n if ($rcmail->config->get('ispcp_db_pass_key') == \"\" || $rcmail->config->get('ispcp_db_pass_iv') == \"\") {\n return PASSWORD_CONNECT_ERROR;\n }\n else {\n $passwd = encrypt_db_password($passwd);\n $curpass = encrypt_db_password($curpass);\n } \n\n // at least we should always have the local part\n $sql = str_replace('%u', $db->quote($_SESSION['username'],'text'), $sql);\n $sql = str_replace('%p', $db->quote($passwd,'text'), $sql);\n $sql = str_replace('%o', $db->quote($curpass,'text'), $sql);\n\n $res = $db->query($sql);\n\n if (!$db->is_error()) {\n\t if (strtolower(substr(trim($query),0,6))=='select') {\n \t if ($result = $db->fetch_array($res))\n send_request();\n\t\t return PASSWORD_SUCCESS;\n\t } else { \n \t if ($db->affected_rows($res) == 1)\n send_request();\n\t\t return PASSWORD_SUCCESS; // This is the good case: 1 row updated\n\t }\n }\n\n return PASSWORD_ERROR;\n}", "title": "" }, { "docid": "ab061c4b2a6c3790b533c13c2ddf03f9", "score": "0.61850035", "text": "private function readPassword(): void\n {\n $length = self::getUInt2d($this->data, $this->pos + 2);\n $recordData = $this->readRecordData($this->data, $this->pos + 4, $length);\n\n // move stream pointer to next record\n $this->pos += 4 + $length;\n\n if (!$this->readDataOnly) {\n // offset: 0; size: 2; 16-bit hash value of password\n $password = strtoupper(dechex(self::getUInt2d($recordData, 0))); // the hashed password\n $this->phpSheet->getProtection()->setPassword($password, true);\n }\n }", "title": "" }, { "docid": "2272fa28b606848dc0174a9b3c207fd6", "score": "0.61826783", "text": "function _lostPassword()\n {\n global $_CORELANG;\n\n // set language variables\n $this->_objTpl->setVariable(array(\n 'TXT_LOST_PASSWORD_TEXT' => $_CORELANG['TXT_LOST_PASSWORD_TEXT'],\n 'TXT_EMAIL'\t\t\t\t\t=> $_CORELANG['TXT_EMAIL'],\n 'TXT_RESET_PASSWORD' => $_CORELANG['TXT_RESET_PASSWORD']\n ));\n\n if (isset($_POST['email'])) {\n $objFWUser = \\FWUser::getFWUserObject();\n $email = contrexx_stripslashes($_POST['email']);\n\n if (($objFWUser->restorePassword($email))) {\n $statusMessage = str_replace(\"%EMAIL%\", $email, $_CORELANG['TXT_LOST_PASSWORD_MAIL_SENT']);\n if ($this->_objTpl->blockExists('login_lost_password')) {\n $this->_objTpl->hideBlock('login_lost_password');\n }\n } else {\n $statusMessage = $objFWUser->getErrorMsg();\n }\n\n $this->_objTpl->setVariable(array(\n 'LOGIN_STATUS_MESSAGE' => $statusMessage\n ));\n }\n\n return $this->_objTpl->get();\n }", "title": "" }, { "docid": "5a2954899382bd73e59e020879477d64", "score": "0.61805975", "text": "public function getPassword() {}", "title": "" }, { "docid": "28a017500653c74874b00d614c0c68ac", "score": "0.6180348", "text": "public static function recover_password_form() {\r\n\r\n /*\r\n * Username or Email\r\n */\r\n if( isset( $_POST['pms_username_email'] ) ) {\r\n\r\n //Check recover password form nonce;\r\n if( !isset( $_POST['pmstkn'] ) || ( !wp_verify_nonce( $_POST['pmstkn'], 'pms_recover_password_form_nonce') ) )\r\n return;\r\n\r\n $username_email = sanitize_text_field( $_POST['pms_username_email'] );\r\n\r\n if( empty( $username_email ) )\r\n pms_errors()->add( 'pms_username_email', __( 'Please enter a username or email address.', 'paid-member-subscriptions' ) );\r\n else {\r\n\r\n $user = '';\r\n // verify if it's a username and a valid one\r\n if ( !is_email($username_email) ) {\r\n if ( username_exists($username_email) ) {\r\n $user = get_user_by('login',$username_email);\r\n }\r\n else pms_errors()->add('pms_username_email',__( 'The entered username doesn\\'t exist. Please try again.', 'paid-member-subscriptions'));\r\n }\r\n\r\n //verify if it's a valid email\r\n if ( is_email( $username_email ) ){\r\n if ( email_exists($username_email) ) {\r\n $user = get_user_by('email', $username_email);\r\n }\r\n else pms_errors()->add('pms_username_email',__( 'The entered email wasn\\'t found in our database. Please try again.', 'paid-member-subscriptions'));\r\n }\r\n\r\n }\r\n\r\n // Extra validation\r\n do_action( 'pms_recover_password_form_validation' );\r\n\r\n //If entered username or email is valid (no errors), email the password reset confirmation link\r\n if ( count( pms_errors()->get_error_codes() ) == 0 ) {\r\n\r\n if (is_object($user)) { //user data is set\r\n $requestedUserID = $user->ID;\r\n $requestedUserLogin = $user->user_login;\r\n $requestedUserEmail = $user->user_email;\r\n\r\n //search if there is already an activation key present, if not create one\r\n $key = pms_retrieve_activation_key( $requestedUserLogin );\r\n\r\n //Confirmation link email content\r\n $recoveruserMailMessage1 = sprintf(__('Someone requested that the password be reset for the following account: <b>%1$s</b><br/><br/>If this was a mistake, just ignore this email and nothing will happen.<br/>To reset your password, visit the following link: %2$s', 'paid-member-subscriptions'), $username_email, '<a href=\"' . esc_url(add_query_arg(array('loginName' => urlencode( $requestedUserLogin ), 'key' => $key), pms_get_current_page_url())) . '\">' . esc_url(add_query_arg(array('loginName' => urlencode( $requestedUserLogin ), 'key' => $key), pms_get_current_page_url())) . '</a>');\r\n $recoveruserMailMessage1 = apply_filters('pms_recover_password_message_content_sent_to_user1', $recoveruserMailMessage1, $requestedUserID, $requestedUserLogin, $requestedUserEmail);\r\n\r\n //Confirmation link email title\r\n $recoveruserMailMessageTitle1 = sprintf(__('Password Reset from \"%s\"', 'paid-member-subscriptions'), $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES));\r\n $recoveruserMailMessageTitle1 = apply_filters('pms_recover_password_message_title_sent_to_user1', $recoveruserMailMessageTitle1, $requestedUserLogin);\r\n\r\n //we add this filter to enable html encoding\r\n add_filter('wp_mail_content_type', create_function('', 'return \"text/html\"; '));\r\n\r\n //send mail to the user notifying him of the reset request\r\n if (trim($recoveruserMailMessageTitle1) != '') {\r\n $sent = wp_mail($requestedUserEmail, $recoveruserMailMessageTitle1, $recoveruserMailMessage1);\r\n if ($sent === false)\r\n pms_errors()->add('pms_username_email',__( 'There was an error while trying to send the activation link.', 'paid-member-subscriptions'));\r\n }\r\n\r\n // add option to store all user $id => $key and timestamp values that reset their passwords every 24 hours\r\n if ( false === ( $activation_keys = get_option( 'pms_recover_password_activation_keys' ) ) ) {\r\n $activation_keys = array();\r\n }\r\n $activation_keys[$user->ID]['key'] = $key;\r\n $activation_keys[$user->ID]['time'] = time();\r\n update_option( 'pms_recover_password_activation_keys', $activation_keys );\r\n\r\n }\r\n }\r\n\r\n } // isset($_POST[pms_username_email])\r\n\r\n\r\n // If the user clicked the email confirmation link, make the verifications and change password\r\n if ( !empty($_GET['loginName']) && !empty($_GET['key']) ) {\r\n\r\n //Check new password form nonce;\r\n if( !isset( $_POST['pmstkn'] ) || ( !wp_verify_nonce( $_POST['pmstkn'], 'pms_new_password_form_nonce') ) )\r\n return;\r\n\r\n //check if the new password form was submitted\r\n if ( !empty($_POST['pms_new_password']) && !empty($_POST['pms_repeat_password']) ) {\r\n\r\n $new_pass = trim($_POST['pms_new_password']);\r\n $repeat_pass = trim($_POST['pms_repeat_password']);\r\n\r\n if ($new_pass != $repeat_pass )\r\n pms_errors()->add('pms_repeat_password',__( 'The entered passwords don\\'t match! Please try again.', 'paid-member-subscriptions'));\r\n\r\n $loginName = sanitize_user( $_GET['loginName'] );\r\n $key = sanitize_text_field( $_GET['key'] );\r\n $user = get_user_by('login', $loginName);\r\n\r\n if ( ( count( pms_errors()->get_error_codes() ) == 0 ) && is_object($user) && ($user->user_activation_key == $key) ) {\r\n do_action( 'pms_password_reset', $user->ID, $new_pass );\r\n // update the new password\r\n wp_set_password( $new_pass, $user->ID );\r\n //delete the user activation key\r\n update_user_meta($user->ID, 'user_activation_key', '' );\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "281c715f56e777663485f5fde97f1f4f", "score": "0.61799234", "text": "function Password_Change(){\r\n\t#print \"<br>\".$line.\"<br>\";\r\n\t#writeFile($_POST['PaTh'],$line);\r\n\texec(\"htpasswd -b \".$_POST['PaTh'].\" \".$_POST['user'].\" \".$_POST['pswd1'],$output);\r\n\tarray_table($output);\r\n}", "title": "" }, { "docid": "a9d7e5768c4b2ced7a9bde8a724bed4b", "score": "0.61675847", "text": "public function postPasswordReminder()\n\t{\n\t\treturn $this->OpenCmsManagerService->remindPassword( $this->Input->json()->all() );\n\t}", "title": "" }, { "docid": "86acc63bf9f7293b4f1aca431af51cfd", "score": "0.61665744", "text": "public function recovery();", "title": "" }, { "docid": "089084288fb28cba8a89c8542ec76204", "score": "0.6165058", "text": "public function forgotpasswordAction()\n\t{\n\t\t\n\t\t$retrieve = new User_Library_Implementation_RetrievalBo();\n\t\t$retrieve->setDao(new User_Library_Implementation_RetrieveDao());\n\t\t$retrieve->setUserDao(new User_Library_Implementation_Dao());\n\t\t$form = $retrieve->getForgotPasswordForm();\n\t\tif( $this->getRequest()->isPost() and $form->isValid($this->getRequest()->getParams()) )\n\t\t{\n\t\t\t$retrieve->setEmailAgent(new Zend_Mail_Transport_Sendmail());\n\t\t\t$recovered = $retrieve->recoverPassword($this->getRequest()->getParams());\n\t\t\tif(true==$recovered)\n\t\t\t{\n\t\t\t\t$this->setMessage($retrieve->getMessageState());\n\t\t\t\t$this->_redirect('user/index/index');\n\t\t\t}\n\t\t}\n\t\t$this->setMessage($retrieve->getMessageState());\n\t\t$this->view->form = $form;\n\t}", "title": "" }, { "docid": "66c6142a1815fa66fc5236ac3936a40d", "score": "0.61646414", "text": "function issuePassword($username) {\n $user = array();\n $user = $this->fetchByUsername($username);\n\n $passwd = $this->encrypt->decode($user['passwd']);\n\n //Email to Password Member\n $emailData = array();\n $emailData['DATE'] = date(\"jS F, Y\");\n $emailData['BASE_URL'] = base_url();\n $emailData['USERNAME'] = $user['username'];\n $emailData['PASSWORD'] = $passwd;\n\n $emailBody = $this->parser->parse('user/emails/lostpasswd', $emailData, TRUE);\n //print_r($emailBody); exit();\n\n $this->email->initialize($this->config->item('EMAIL_CONFIG'));\n $this->email->from(DWS_EMAIL_NOREPLY, DWS_EMAIL_FROM);\n $this->email->to($user['email']);\n $this->email->subject('Password Recovery');\n $this->email->message($emailBody);\n $this->email->send();\n }", "title": "" }, { "docid": "3e119fcd1d3fcf3abdab36978add4882", "score": "0.61536884", "text": "protected function generateHashedPassword() {}", "title": "" }, { "docid": "988013076029f3881d8622b43c04ff1c", "score": "0.6152389", "text": "public function changePasswordAction(){\n $this->title = 'Change Password';\n $objLog = new Log();\n $user = Zend_Auth::getInstance()->getIdentity();\n $form = new ChangePasswordForm();\n $agentModel = new AgentUser();\n \n \n if($this->getRequest()->isPost()){\n if($form->isValid($this->getRequest()->getPost())){\n \n $isPasswordDuplicate = true;\n /**** checking new password with last 4 passwords for non duplicacy of password ****/\n try{\n $passwordParam = array('agent_id'=>$user->id, 'password'=>BaseUser::hashPassword($form->getValue('password')));\n $isPasswordDuplicate = $agentModel->checkPasswordDuplicate($passwordParam);\n \n } catch (Exception $e) {\n App_Logger::log($e->getMessage(), Zend_Log::ERR);\n $msg = $e->getMessage();\n $this->_helper->FlashMessenger(array('msg-error' => $msg,));\n }\n \n /**** checking new password with last 4 passwords for non duplicacy of password over here ****/\n \n if($isPasswordDuplicate==false){\n \n $agentModel->changePassword($form->getValue('password'));\n \n /**** updating in change password log ****/\n\n $logParam = array(\n 'agent_id'=>$user->id,\n 'ip'=>$agentModel->formatIpAddress(Util::getIP()),\n 'password'=>BaseUser::hashPassword($form->getValue('password'))\n );\n $objLog->insertlog($logParam, DbTable::TABLE_LOG_CHANGE_PASSWORD);\n\n /**** updating in change password log ends here ****/\n \n \n // Send new password email\n $resArr = $agentModel->findById($user->id);\n \n $detailArr = array(\n 'first_name'=>$resArr->first_name,\n 'last_name'=>$resArr->last_name,\n 'email'=>$resArr->email,\n 'password'=>$form->getValue('password'),\n //'agent_code'=> $resArr->agent_code,\n );\n //echo '<pre>'; print_r($detailArr);exit;\n $m = new App\\Messaging\\MVC\\Axis\\Agent();\n $m->updatePasswordEmail($detailArr);\n \n $this->_helper->FlashMessenger(\n array(\n 'msg-success' => 'Your password was successfully changed',\n )\n );\n $user = Zend_Auth::getInstance()->getIdentity(); \n //Password is successfully Updated So Removing the validation\n $user->passwordUpdateRequired = 0;\n \n// $this->_redirect('/profile/');\n $this->_redirect($this->formatURL('/profile/index/'));\n }\n }\n }\n \n \n $this->view->form = $form;\n \n }", "title": "" }, { "docid": "6c4251b13f840b7c7ae50170e1d37e4e", "score": "0.6150307", "text": "public function processNewPassword(NewPasswordRequest $request, $key)\n\t{\n\t\ttry {\n\t\t\t$key = base64_decode($key);\n\t\t\t$key = explode('/', $key); // key[0] = id, $key[1] = activationkey\n\n\t\t\t// Find the user using ID\n\t\t\t$user = Sentry::findUserById($key[0]);\n\n\t\t\t// Check if the reset password code is valid and attempt to reset the user password\n\t\t\tif ($user->checkResetPasswordCode($key[1]) == false || $user->attemptResetPassword($key[1], Input::get('password')) == false) {\n Notification::error('reset_password_unsuccessful');\n return redirect('home');\n }\n\n Event::fire('log.event', [$user->username .': Neues Passwort vergeben.']);\n\n Notification::success('reset_password_successful');\n return redirect('home');\n\n } catch (\\Cartalyst\\Sentry\\Users\\UserNotFoundException $e) {\n\t\t\tEvent::fire('log.event', ['Versuchte Vergabe eines neuen Passworts. Nutzer nicht gefunden.']);\n\n\t\t\tNotification::error('reset_password_unsuccessful');\n\t\t\treturn redirect('home');\n\t\t}\n\t}", "title": "" }, { "docid": "d361a00f4e7620283fa142eb741e38ff", "score": "0.6148598", "text": "public static function checkPassword()\r\n {\r\n if(strlen(self::$_registrationData['password']) < 5 || strlen(self::$_registrationData['password']) > 10)\r\n {\r\n self::$_failure['passwordF'] = \"e\";\r\n }\r\n //password must match with the retyped password\r\n else if (!(self::$_registrationData['password'] == self::$_registrationData['retypePassword']))\r\n {\r\n self::$_failure['passwordF'] = \"e\";\r\n }\r\n else\r\n {\r\n self::$_success['passwordS'] = self::$_registrationData['password'];\r\n self::$_success['retypePasswordS'] = self::$_registrationData['retypePassword'];\r\n }\r\n }", "title": "" }, { "docid": "4ca1b78a3eb3c2734d5e105cb46867a8", "score": "0.61473495", "text": "public function resetpass() {\n\n\t\t$this->set('title_for_layout', __d('webzash', 'Reset Password'));\n\n\t\t$this->Wzuser->useDbConfig = 'wz';\n\n\t\tif (empty($this->passedArgs['userid'])) {\n\t\t\t$this->Session->setFlash(__d('webzash', 'User account not specified.'), 'danger');\n\t\t\treturn $this->redirect(array('plugin' => 'webzash', 'controller' => 'wzusers', 'action' => 'index'));\n\t\t}\n\n\t\t$userid = $this->passedArgs['userid'];\n\n\t\t$wzuser = $this->Wzuser->findById($userid);\n\t\tif (!$wzuser) {\n\t\t\t$this->Session->setFlash(__d('webzash', 'User account not found.'), 'danger');\n\t\t\treturn $this->redirect(array('plugin' => 'webzash', 'controller' => 'wzusers', 'action' => 'index'));\n\t\t}\n\n\t\t$this->set('username', $wzuser['Wzuser']['username']);\n\n\t\tif ($this->request->is('post') || $this->request->is('put')) {\n\t\t\t/* Check length of password */\n\t\t\tif (strlen($this->request->data['Wzuser']['new_password']) < 4) {\n\t\t\t\t$this->Session->setFlash(__d('webzash', 'Password should be atleast 4 characters.'), 'danger');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->Wzuser->id = $wzuser['Wzuser']['id'];\n\n\t\t\t/* Update user password */\n\t\t\t$ds = $this->Wzuser->getDataSource();\n\t\t\t$ds->begin();\n\n\t\t\tif ($this->Wzuser->saveField('password', Security::hash($this->request->data['Wzuser']['new_password'], 'sha1', true))) {\n\t\t\t\t$ds->commit();\n\n\t\t\t\t/* Sending email */\n\t\t\t\t$viewVars = array(\n\t\t\t\t\t'username' => $wzuser['Wzuser']['username'],\n\t\t\t\t\t'fullname' => $wzuser['Wzuser']['fullname'],\n\t\t\t\t\t'password' => $this->request->data['Wzuser']['new_password'],\n\t\t\t\t);\n\t\t\t\t$email_status = $this->Generic->sendEmail(\n\t\t\t\t\t$wzuser['Wzuser']['email'],\n\t\t\t\t\t'Password changed by admin',\n\t\t\t\t\t'user_resetpass', $viewVars, true, true\n\t\t\t\t);\n\n\t\t\t\tif ($email_status) {\n\t\t\t\t\t$this->Session->setFlash(__d('webzash', 'User password updated. Email sent to user with the new password.'), 'success');\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash(__d('webzash', 'User password updated.'), 'success');\n\t\t\t\t}\n\t\t\t\treturn $this->redirect(array('plugin' => 'webzash', 'controller' => 'wzusers', 'action' => 'index'));\n\t\t\t} else {\n\t\t\t\t$ds->rollback();\n\t\t\t\t$this->Session->setFlash(__d('webzash', 'Failed to update user password. Please, try again.'), 'danger');\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "94ec624e4c7f4ee3499be4e365e2e70f", "score": "0.61463076", "text": "public static function fgt_password() {\n\t\t$new_pass = User::getPassword();\n\n\t\t$email = Input::get('email');\n\t\t$users = User::where('email', $email)->first();\n\n\t\t$users->password = Hash::make($new_pass);\n\t\t\n\t\tMail::send('container.mail', array('username'=>$users->username, 'password'=>$new_pass), function($message) {\n\t\t\t$message->to(Input::get('email'))->subject('Forgot Password');\n\t\t});\n\t\t$users->save();\n\t\treturn Redirect::to('/');\n\t}", "title": "" }, { "docid": "517aee8ac1070e57c5ef8d31659e1964", "score": "0.613658", "text": "function cambiodepassword()\n\t{\n\t\t\n\t\tif ($_SESSION[\"parametro1\"]==\"\")\n \t{\n \t echo \"<error>No esta definido el usuario en cambio de password</error>\";\n \t return; \n \t}\t\t\t\t\t\t\n\n\t\tif ($_SESSION[\"parametro2\"]==\"\")\n \t{\n \t echo \"<error>No esta definido el password en cambio de password</error>\";\n \t return; \n \t}\t\t\t\t\t\t \t\n \t\t\t\n\t\tif ($this->argumentos[\"wl_passwordnuevo\"]==\"\")\n \t{\n \t echo \"<error>No esta definido el password nuevo</error>\";\n \t return; \n \t}\t\t\t\t\n\n\t\tif ($this->argumentos[\"wl_passwordanterior\"]==\"\")\n \t{\n \t echo \"<error>No esta definido el password anterior</error>\";\n \t return; \n \t}\t\t\t\t\n \t \t \t\n\t\tif ($this->argumentos[\"wl_tecleedenuevopassword\"]==\"\")\n \t{\n \t echo \"<error>El pwd retecleado no esta definido</error>\";\n \t return; \n \t}\t\t\t\n \t\n\t\tif ($this->argumentos[\"wl_usename\"]==\"\")\n \t{\n \t echo \"<error>No esta definido el usuario</error>\";\n \t return; \n \t}\n \t\n \t$wlmensaje=$this->pwd_tecleado($this->argumentos[\"wl_passwordanterior\"],$_SESSION[\"parametro2\"],$_SESSION[\"parametro1\"]);\n \tif ($wlmensaje!=\"Se bloqueo el usuario\" && $wlmensaje!=\"\")\n \t{\n \t\techo \"<error>\".$wlmensaje.\"</error>\";\n \t\treturn;\n\t\t}\n \tif ($wlmensaje==\"Se bloqueo el usuario\")\n \t{\n\t \t$this->salida($wlmensaje);\n \t\treturn;\n\t\t}\n\t\t\n \t$wlrespuesta=$this->checa_nuevopwd($this->argumentos[\"wl_usename\"],$this->argumentos[\"wl_tecleedenuevopassword\"],$this->argumentos[\"wl_passwordnuevo\"]);\n \tif ($wlrespuesta!=\"\")\n \t{\n \t\techo $wlrespuesta;\n \t\treturn;\n\t\t}\n\t\t\n \t$wlrespuesta=$this->cambia_password($this->argumentos[\"wl_usename\"],$this->argumentos[\"wl_passwordnuevo\"],$this->argumentos[\"wl_passwordanterior\"]);\n \t\n \tif ($wlrespuesta==\"SE CAMBIO PASSWORD\")\n \t{\n// \t\techo \"<salida>\".$wlrespuesta.\"</salida>\";\n//\t\t\tsession_destroy();\n\t\t\t$this->salida($wlrespuesta);\n \t\treturn;\t \t\n \t}\n \telse\n \t{\n \techo \"<error>\".$wlrespuesta.\"</error>\";\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "5bdf2d7049d6f04f167b7c20264d519b", "score": "0.6126412", "text": "public function actionRecoverPassword()\n {\n $model = new AccountRecoverPassword();\n\n if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->recover()) {\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('recoverPassword_modal_success', array('model' => $model));\n }\n return $this->render('recoverPassword_success', array('model' => $model));\n }\n\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('recoverPassword_modal', array('model' => $model));\n }\n return $this->render('recoverPassword', array('model' => $model));\n }", "title": "" }, { "docid": "c3c8829c09f31d41a92fd0258f1d3907", "score": "0.6123162", "text": "public static function resetPw() {\n \n try {\n $db = DBConnection::getConnection();\n $mysqli = $db->getConnection();\n\n $stmt = $mysqli->prepare(\"SELECT * FROM institute WHERE Email = ?\");\n $stmt->bind_param('s', $email);\n $email = $_POST['email'];\n $stmt->execute();\n $institute = $stmt->get_result()->fetch_object(\"model\\Institute\");\n $stmt->close();\n\n // creates random pw with 8 caracters containing a-z, 0-9 \n $newPassword = bin2hex(openssl_random_pseudo_bytes(4));\n\n // check if email exists in DB \n if ($institute) {\n\n $subject = \"SWISSEDU Support\";\n $htmlData = \"New Password: \" . $newPassword;\n\n // send new pw to user\n EmailServiceClient::sendEmail($email, $subject, $htmlData);\n\n // update database\n $stmt = $mysqli->prepare(\"UPDATE institute SET `Password` = ? WHERE `Email` = ?\");\n $stmt->bind_param('ss', $encryption, $email);\n $encryption = password_hash($newPassword, PASSWORD_DEFAULT);\n $email = $_POST['email'];\n $stmt->execute();\n\n header(\"Location: \" . $GLOBALS[\"ROOT_URL\"] . \"/login\");\n\n echo \" <script type=\\\"text/javascript\\\">\n alert('Check your E-Mail');\n </script>\n \";\n } else {\n echo \"\n <script type=\\\"text/javascript\\\">\n alert('Username does not exist');\n </script>\n \";\n }\n \n } catch (Exception $ex) {\n echo $ex->getMessage;\n }\n }", "title": "" }, { "docid": "7a11c302aaf2c36fc463f48a1983e4d5", "score": "0.6118525", "text": "protected function _accountContactDetailsEmailPassword()\r\n\t{\r\n\t}", "title": "" }, { "docid": "ecd71a15e95e6f60dc96e852add0f042", "score": "0.61103773", "text": "public function store() {\n\n $credentials = array('password' => Input::get('oldpassword'));\n $user = Auth::user()->ma_so_the;\n $password = Input::get('newpassword');\n if (Hash::check($password, Auth::user()->password)) {\n Auth::user()->password = Hash::make($password);\n Auth::user()->save();\n return Redirect::back()->with('flash', 'Your password has been reset');\n }\n else{\n \n return Redirect::back()->with('reason', 'Your password has not been reset');\n }\n }", "title": "" }, { "docid": "6b99c3f7e241e1e819bf8014aa3e3725", "score": "0.6098425", "text": "abstract protected function change_password($old_password, $new_password, $confirm_password);", "title": "" }, { "docid": "1ce5e0019b03d8056cf2df6629b4f300", "score": "0.6091673", "text": "public function postPasswordRestoreNew($hash)\n {\n //get data\n $input = $request->input('password');\n $password = Hash::make($input);\n //get from db\n $request = $this->requestRepository->getPasswordByHash($hash);\n $request->delete();\n //\n $this->userRepository->setPassword($request->email,$password);\n //output\n return $this->redirect\n ->route('auth.get_login');\n }", "title": "" }, { "docid": "eda867ab122d4a619eeeaf7815d34c08", "score": "0.60797495", "text": "public function changePasswordProcess()\n\t\t{\n\n\t\t\t$this->form_validation->set_rules('newpass', 'Password', 'trim|required');\n\t\t\t$this->form_validation->set_rules('cpass', 'Confirm Password', 'trim|required|matches[newpass]');\n\n\t\t\tif ($this->form_validation->run() == FALSE) {\n\t\t\t$this->session->set_flashdata('error_message', 'Password Do Not Match Required !');\n\t\t\tredirect($_SERVER['HTTP_REFERER']);\n\t\t\t}\n\n\t\t\t$newpass = $this->input->post('newpass');\n\t\t\t$cpass = $this->input->post('cpass');\n\t\t\t$userName = $this->input->post('userNameOrEmail');\n\n\t\t\t\n\t\t\n\t\t\t\t$sql = 'SELECT userID, hashKey from user_master where userName=\"'.$userName.'\" or email=\"'.$userName.'\" and userType = 2';\n\t\t\t\t$userData = $this->Mod_Common->customQuery($sql);\n\t\t\tif (count($userData)>0) {\n\t\t\t\t$userData = current($userData);\n\t\t\t\t$encData = $this->encryptPassword($newpass);\n\t\t\t\t$d = array(\n\t\t\t\t\t\t\t'password'=> $encData['cipherText'],\n\t\t\t\t\t\t\t'hashKey'=> $encData['HashKey']\n\t\t\t\t\t\t);\n\t\t\t\t$this->Mod_Common->updateData('user_master', array('userID'=>$userData->userID), $d);\n\n\t\t\t\t$this->session->set_flashdata('success_massage', 'Password Changed Succesfully !');\n\n\t\t\t\tredirect(ADMIN_URL);\n\n\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('error_message', 'User Not Found !');\n\t\t\t\tredirect($_SERVER['HTTP_REFERER']);\n\t\t\t}\n\t\t \n\t\t}", "title": "" }, { "docid": "272b5a78d5408daa713eab3d361e5462", "score": "0.6079288", "text": "function fn_settings_actions_emails_mailer_smtp_password($new_value, $old_value)\n{\n Registry::isExist('smtp_settings') or register_shutdown_function('fn_check_smtp_settings_and_restore_on_fail');\n Registry::set('smtp_settings.mailer_smtp_password', $old_value);\n}", "title": "" }, { "docid": "4d3f37181401fbaf73cdf684081ec6b2", "score": "0.6074046", "text": "function updatePassword($email, $newPwd) {\n\n\t}", "title": "" }, { "docid": "22b21a354dbe8eba8e5185b4ed155833", "score": "0.6070857", "text": "function forgotpassword() {\n\t$a = array(\n\t\t'status' => 'system-error'\n\t);\n\n\t// get raw inputs\n\t$taint_both = isset($_POST['both']) ? $_POST['both'] : 0;\n\n\t// validate inputs\n\t$both = validateBoth($taint_both);\n\n\t// validate parameter set\n\tif (!$both){\n\t\tLog::write(LOG_WARNING, 'attempt with invalid parameter set');\n\t\treturn $a;\n\t}\n\n\t// get db connection\n\t$conn = getConnection();\n\tif (!$conn) {\n\t\treturn $a;\n\t}\n\n\t// get requesting user\n\t$result = getUserByBoth($conn, $both);\n\tif (!$result) {\n\t\treturn $a;\n\t}\n\n\t// get user data\n\t$row = pg_fetch_array($result, 0, PGSQL_ASSOC);\n\t$userid = $row['id'];\n\t$uname = $row['username'];\n\t$auth = $row['auth'];\n\t$access = $row['access'];\n\t$email = $row['email'];\n\n\t// get TIC\n\t$publicTic = generateTic();\n\t$hashTic = hashTic($publicTic);\n\n\t// send TIC to user by email\n\t$boo = sendAuthenticationEmail($email, $publicTic, 'reset');\n\tif (!$boo) {\n\t\t$a['status'] = 'send-email-failed';\n\t\treturn $a;\n\t}\n\n\t// set new auth\n\t$auth = DB::$auth_resetpending;\n\n\t// update user record\n\t$name = 'change-user-auth';\n\t$sql = \"update account.user set auth = $1, hashtic=$3 where id = $2\";\n\t$params = array($auth, $userid, $hashTic);\n\t$result = execSql($conn, $name, $sql, $params, true);\n\tif (!$result) {\n\t\treturn $a;\n\t}\n\n\t// write a new session id token\n\t$si = writeToken($conn, $userid);\n\tif (!$si) {\n\t\treturn $a;\n\t}\n\n\t// success\n\t$a['status'] = 'ok';\n\t$a['si'] = $si;\n\t$a['auth'] = $auth;\n\t$a['access'] = $access;\n\t$a['uname'] = $uname;\n\treturn $a;\n}", "title": "" }, { "docid": "6946233c07549100b557cc7f8502c626", "score": "0.60675484", "text": "public function generatePassword(){\n\t\t$password = bin2hex(random_bytes(12));\n\t\t$pass = password_hash($hex, PASSWORD_DEFAULT, ['cost'=>12]);\n\t\t$field['password'] = $pass; \n\t\t$this->update($field, $this->id); \n\t\treturn $password;\n\t}", "title": "" }, { "docid": "388064bcb2c70b15e92aff9a9b2e0cb1", "score": "0.6066979", "text": "public function resetPassword($password);", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.6065956", "text": "public function getPassword();", "title": "" } ]
5afc77b257454ad5b7af7a5c43eeb659
this up() migration is autogenerated, please modify it to your needs
[ { "docid": "26af1d6cfb3ad202cd65f40407045688", "score": "0.0", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE articles ADD title VARCHAR(255) NOT NULL, CHANGE slug slug VARCHAR(128) NOT NULL, CHANGE updated_at updated_at DATETIME DEFAULT NULL');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_BFDD3168989D9B62 ON articles (slug)');\n $this->addSql('ALTER TABLE categories CHANGE slug slug VARCHAR(128) NOT NULL');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_3AF34668989D9B62 ON categories (slug)');\n $this->addSql('ALTER TABLE commentaires CHANGE updated_at updated_at DATETIME DEFAULT NULL');\n $this->addSql('ALTER TABLE keyword CHANGE slug slug VARCHAR(128) NOT NULL');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_5A93713B989D9B62 ON keyword (slug)');\n $this->addSql('ALTER TABLE users CHANGE roles roles JSON NOT NULL');\n $this->addSql('ALTER TABLE users_blog CHANGE avatar avatar VARCHAR(255) DEFAULT NULL');\n }", "title": "" } ]
[ { "docid": "20b3078116cca0d8f0cbce1a8d663632", "score": "0.79145706", "text": "abstract public function up();", "title": "" }, { "docid": "20b3078116cca0d8f0cbce1a8d663632", "score": "0.79145706", "text": "abstract public function up();", "title": "" }, { "docid": "2b6b08a052405f52f7571399eebafe14", "score": "0.7805854", "text": "abstract function up();", "title": "" }, { "docid": "db15cd39e9f5f1d11c314e7a40b1d354", "score": "0.7605587", "text": "public function up()\n {\n // @todo: develop migration up features\n $this->getSchema()->table('profiles', function ($table){\n $table->text('about')->nullable()->after('url');\n });\n parent::up();\n }", "title": "" }, { "docid": "6bb8bf1b1ffd742a90c171c8d71d3102", "score": "0.75946134", "text": "public function safeUp()\n {\n $this->createTable('product_pictures', [\n 'id' => Schema::TYPE_PK,\n 'title' => Schema::TYPE_STRING . '(150)',\n 'file' => Schema::TYPE_STRING .'(50)',\n 'product_id' => Schema::TYPE_INTEGER,\n ]);\n $this->addForeignKey('fk_pp_product_id', 'product_pictures', 'product_id', 'products', 'id');\n }", "title": "" }, { "docid": "cc1bc4187aa8deb43b3e84aac322e3ef", "score": "0.75131655", "text": "public function safeUp()\n {\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN owner_name character varying(255);\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN contact_no character varying(255);\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN present_use text;\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN construction_date_age character varying(255);\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN renovation_history text;\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n $sql = <<<SQL\nALTER TABLE heritage_assessment.heritage\n ADD COLUMN architectural_style character varying(255);\nSQL;\n Yii::$app->db->createCommand($sql)->execute();\n\n }", "title": "" }, { "docid": "d7077d27ee1f30736d0ea56bd056a5a7", "score": "0.7444492", "text": "public function up()\n {\n foreach (HojaRutaSubClases::all() as $sub) {\n $sigla = $this->siglas[$sub->getKey()] ?? null;\n if ($sigla) {\n $sub->sigla = $sigla;\n $sub->save();\n }\n }\n foreach (HojaRutaSubClases::all() as $sub) {\n foreach (HojaRuta::where('subtipo_tarea', $sub->sub_clase_id)->get() as $hoja) {\n DB::table('hoja_ruta')->where('hr_id', $hoja->getKey())->update([\n 'nro_clasificacion' => $sub->sigla . '-' . $hoja->contador_clasificacion,\n ]);\n }\n }\n }", "title": "" }, { "docid": "6779c2251748fceb57bfce22aea93014", "score": "0.74421406", "text": "abstract public function up(): void;", "title": "" }, { "docid": "a16413a1ff35a09266010528db442c7b", "score": "0.7439455", "text": "public function safeUp()\n\t{\n $this->createTable('project_template_tasks', array(\n 'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n 'project_template_id' => 'INT(11) NOT NULL',\n 'source_lang_id' => 'INT(11) UNSIGNED NOT NULL',\n 'subtitle_provided' => 'TINYINT(1) DEFAULT 0',\n 'job_type_id' => 'INT(11) NOT NULL',\n 'estimated_duration' => 'INT(10) UNSIGNED NOT NULL',\n ), 'DEFAULT CHARSET=\"utf8\" collate utf8_unicode_ci');\t \n\t}", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "0bf78dda082d5d749f42e583eec883e6", "score": "0.7430092", "text": "public function up()\n {\n }", "title": "" }, { "docid": "1ecae68b3a02c3c199ffafaa5577c436", "score": "0.7417879", "text": "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY',\n 'lft' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n 'rgt' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n 'level' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n 'label' => Schema::TYPE_STRING. ' NOT NULL COMMENT \"Название\"',\n 'alias' => Schema::TYPE_STRING. ' NOT NULL COMMENT \"Алиас\"',\n 'description' => Schema::TYPE_TEXT. ' DEFAULT NULL COMMENT \"Описание\"',\n 'visible' => Schema::TYPE_SMALLINT. '(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"Отображать\"',\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n }", "title": "" }, { "docid": "c9b1e733f60bdbf1f783c18e39eda156", "score": "0.74144465", "text": "public function safeUp()\n {\n $this->createTable('service2tag',[\n 'service_id'=>Schema::TYPE_INTEGER,\n 'tag_id'=>Schema::TYPE_INTEGER,\n ]);\n $this->addPrimaryKey('index','service2tag',['service_id','tag_id']);\n $this->addForeignKey('service','service2tag','service_id','service','id','CASCADE','NO ACTION');\n $this->addForeignKey('tag','service2tag','tag_id','tag','id','CASCADE','NO ACTION');\n }", "title": "" }, { "docid": "d918fc205c59582b9be4cb52cd74dfb6", "score": "0.7403463", "text": "public function up() : void\n\t{\n\t $this->forge->addField(self::FIELDS);\n $this->forge->createTable(self::TABLE);\n\t}", "title": "" }, { "docid": "cac377d888f7a6b1877e89210b7445a5", "score": "0.7397895", "text": "public function up()\n\t{\n\t\t$fields = array(\n\t\t\t'otm_defect_df_seq' => array('type' => 'int(11)','null' => TRUE)\n\t\t);\n\t\t$this->dbforge->add_column('otm_testcase_result', $fields,'otm_testcase_link_tl_seq');\n\t\n\t\t/**\n\t\t* OTM New Table\n\t\t*/\n\n\t\t$this->migration_data();\n\t}", "title": "" }, { "docid": "16974e00a07a2b4aece8c8b92142217c", "score": "0.73915005", "text": "public function up()\n {\n Yii::$app->db->createCommand('update {{%vendor}} SET vendor_name_ar=\"بائع\" where vendor_name_ar=\"\" OR vendor_name_ar IS NULL')->execute();\n\n //arabic values for vendor_item - item_name_ar\n Yii::$app->db->createCommand('update {{%vendor_item}} SET item_name_ar=\"منتج\" where item_name_ar=\"\" OR item_name_ar IS NULL')->execute();\n }", "title": "" }, { "docid": "fc7569d7c95c545dfcd32e26af661015", "score": "0.7388743", "text": "public function up()\n {\n $fields = array(\n 'created_at' => array('type' => 'TIMESTAMP'),\n 'updated_at' => array('type' => 'TIMESTAMP'),\n );\n $this->dbforge->add_column('users', $fields);\n }", "title": "" }, { "docid": "e0703246f29449ab1bfea3f02e2f7d3c", "score": "0.7379194", "text": "public function safeUp()\n {\n $this->alterColumn('device', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n /* Tambah Field */\n $this->addColumn('device', 'paper_autocut', 'TINYINT NULL AFTER `lf_setelah`');\n $this->addColumn('device', 'cashdrawer_kick', 'TINYINT NULL AFTER `paper_autocut`');\n }", "title": "" }, { "docid": "366cf61a12a2d07cfc7f4de238a7676c", "score": "0.7371666", "text": "public function preUp()\n {\n }", "title": "" }, { "docid": "f08efa336ec7eba9842eab5738e35d42", "score": "0.73637235", "text": "public function up()\n {\n // `users_fields`\n $fields = $this->table('users_fields');\n $fields->changeColumn(\n 'type',\n 'enum',\n ['values' => ['string','number','date','text'], 'default' => 'string', 'comment' => 'Field Type', 'null' => false]\n )->update();\n\n // `users_field_text`\n $this->table('users_field_text')\n ->addColumn('user_id', 'integer', ['limit' => MysqlAdapter::INT_MEDIUM, 'signed' => false])\n ->addColumn('field_id', 'integer')\n ->addColumn('value', 'text', ['limit' => TEXT_MEDIUM, 'null' => false])\n ->addIndex(['user_id', 'field_id'], ['unique' => true])\n ->addForeignKey('user_id', 'users', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->addForeignKey('field_id', 'users_fields', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->create();\n }", "title": "" }, { "docid": "c5688557eb25157321d6da75d94949f9", "score": "0.735898", "text": "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY',\n 'entity_model_name' => Schema::TYPE_STRING. ' NOT NULL',\n 'entity_model_id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n 'file_id' => Schema::TYPE_INTEGER. ' NOT NULL',\n 'temp_sign' => Schema::TYPE_STRING. ' NOT NULL',\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey(\n 'fk_entity_file_id_to_fpm_file_table',\n $this->tableName,\n 'file_id',\n '{{%fpm_file}}',\n 'id',\n 'CASCADE',\n 'CASCADE'\n );\n }", "title": "" }, { "docid": "8ca98b8587c7bf6792e277c0f8fd53da", "score": "0.7339693", "text": "public function up()\n {\n\n $this->table('users')\n ->addColumn('language', 'string', [\n 'after' => 'course',\n 'default' => 'de',\n 'length' => 10,\n 'null' => false,\n ])\n ->update();\n }", "title": "" }, { "docid": "e805a7092cc4bc6a13cd92660f62f30f", "score": "0.7338972", "text": "public function up()\n {\n// $sql = \"ALTER TABLE `t_hjsuscriptor` CHANGE `id_hjsuscriptor` `id_hjsuscriptor` INT( 11 ) NOT NULL AUTO_INCREMENT\";\n// $this->_db->query($sql);\n// $sql = \"ALTER TABLE `t_suscriptor_direccion` CHANGE `Id_Dir_Suc` `id_Dir_Susc` INT( 11 ) NOT NULL AUTO_INCREMENT\";\n// $this->_db->query($sql);\n// $sql = \"ALTER TABLE `t_suscriptor_producto` CHANGE `Id_Prod_Susc` `id_Prod_Susc` INT( 11 ) NOT NULL AUTO_INCREMENT\";\n// $this->_db->query($sql);\n return true;\n }", "title": "" }, { "docid": "03f8469ad706f78903a11f3c7b7d8494", "score": "0.73324406", "text": "public static function up()\n {\n DB::table(self::NAME)\n ->create(function (DBTableBuilder $table) {\n $table->field('id')->int()->increment();\n $table->field('userid')->int();\n $table->field('orgid')->int();\n $table->field('transaction_id')->varchar();\n $table->field('status')->varchar();\n $table->field('amount')->varchar();\n $table->field('pay_type')->varchar();\n $table->field('trans_type')->varchar();\n $table->field('naration')->varchar();\n });\n }", "title": "" }, { "docid": "f95897a0fb823e419d22f0567662c0a0", "score": "0.72823274", "text": "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY',\n 'product_id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n 'similar_product_id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL',\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey(\n 'fk_store_similar_product_product_id_to_store_product_id',\n $this->tableName,\n 'product_id',\n '{{%store_product}}',\n 'id',\n 'CASCADE',\n 'CASCADE'\n );\n\n $this->addForeignKey(\n 'fk_store_similar_product_similar_product_id_to_store_product_id',\n $this->tableName,\n 'similar_product_id',\n '{{%store_product}}',\n 'id',\n 'CASCADE',\n 'CASCADE'\n );\n }", "title": "" }, { "docid": "b6d132c2d6d904c1a905be1009d3ce39", "score": "0.7275374", "text": "public static function up()\n {\n DB::table(self::NAME)\n ->create(function (DBTableBuilder $table) {\n $table->field('id')->int()->increment();\n $table->field('userid')->int();\n $table->field('orgid')->int();\n $table->field('warehouseid')->int();\n $table->field('productid')->int();\n $table->field('number')->int();\n $table->field('type')->int();\n });\n }", "title": "" }, { "docid": "739d028f9020d3edc234b338b20a86ef", "score": "0.72707427", "text": "public function up()\n { \n /*\n Schema::table('users', function (Blueprint $table) {\n $table->date('dob')->nullable(false)->change(); //CHANGED dob FROM STRING TO DATE\n $table->integer('sex_uuid')->nullable(false)->change();//CHANGED sex FROM STRING TO INTEGER SO IT BECOMES A LOOKUP TO A tSex TABLE - DB NORMALISATION \n $table->string('email')->unique()->nullable(false)->change(); \n $table->string('mobile')->unique()->nullable(false)->change();\n $table->renameColumn('secret_question', 'security_question');\n $table->renameColumn('secret_answer', 'security_answer'); \n $table->integer('status_uuid')->nullable(false);//ADDED THIS AS A LOOKUP TO A tStaus TABLE\n });*/\n }", "title": "" }, { "docid": "ee40edd73acbed8cc15ddcc74069d28b", "score": "0.72550213", "text": "public function safeUp()\n\t{\n\t\t$this->createTable($this->table,array(\n\t\t\t'id'=>'pk',\n\t\t\t'title'=>'string null',\n\t\t\t'caption'=>'text null',\n\t\t\t'tags'=>'text null',\n\t\t\t'file_name'=>'string not null',\n\t\t\t'active'=>'integer default 1',\n\t\t));\n\t\t$this->createIndex('slider_title_idx',$this->table,'title',true);\n\t\t\n\t}", "title": "" }, { "docid": "9dfaeeeeff5454647a5c3a507f5f221b", "score": "0.7248677", "text": "public function up() {\n $this->dbforge->drop_table('vacancies', TRUE); \n \n \n $this->dbforge->add_field(array(\n 'id' => array(\n 'type' => 'INT',\n 'constraint' => 11,\n 'auto_increment' => TRUE\n ),\n 'vacancy_name' => array(\n 'type' => 'VARCHAR',\n 'constraint' => 100\n ),\n 'vacancy_desc' => array(\n 'type' => 'VARCHAR',\n 'constraint' => 100\n ),\n 'dept_id' => array(\n 'type' => 'INT',\n 'constraint' => 11\n ),\n 'pos_id' => array(\n 'type' => 'INT',\n 'constraint' => 11\n ),\n 'last_appl_dt' => array(\n 'type' => 'DATETIME'\n ),\n 'date_updated' =>array(\n 'type'=>'DATETIME'\n ),\n 'date_created' => array(\n 'type'=>'DATETIME'\n ),\n 'updated_from_ip' => array(\n 'type' => 'VARCHAR',\n 'constraint' => 100\n ),\n 'created_from_ip' => array(\n 'type' => 'VARCHAR',\n 'constraint' => 100\n )\n ));\n $this->dbforge->add_key('id', TRUE);\n $this->dbforge->create_table('vacancies');\n }", "title": "" }, { "docid": "bdab4157e3ab998684d202cef8c1b361", "score": "0.72406167", "text": "public function safeUp()\r\n {\r\n $this->createTable('tbl_jobs', array(\r\n 'id' => 'pk',\r\n 'user_id' => 'integer NOT NULL',\r\n 'category_id' => 'integer NOT NULL',\r\n 'title' => 'text NOT NULL',\r\n 'job_category' => 'text NOT NULL',\r\n 'image_url' => 'text NOT NULL',\r\n 'description' => 'text NOT NULL',\r\n 'salary' => 'string NOT NULL',\r\n 'salary_type' => 'tinyint NOT NULL COMMENT \"1=fixed,2=range,3=negotiable\"',\r\n 'deadline' => 'datetime NOT NULL',\r\n 'job_type' => 'string NOT NULL',\r\n 'additional' => 'text NULL',\r\n 'job_location' => 'string NOT NULL',\r\n 'create_date' => 'date NOT NULL',\r\n 'update_date' => 'date NULL',\r\n 'active' => 'tinyint NOT NULL default 0'\r\n ));\r\n }", "title": "" }, { "docid": "690094c86bf110d309cd2ef542ac085a", "score": "0.7233391", "text": "public function up()\n {\n if (!Schema::hasTable($this->table)) \n {\n Schema::create($this->table, function (Blueprint $table) \n {\n $table->increments('id');\n $table->string('title', 1060)->nullable();\n $table->string('description', 1060)->nullable();\n $table->string('path',1060)->nullable();\n // if it's not organic category, the storage_category_id can be null\n $table->unsignedInteger('parent_category_id')->nullable()->comment('parent category id');\n $table->unsignedInteger('storage_category_id')->nullable()->comment('reference to the corresponding storage record for Organic Categories - storage_categories.id');\n $table->timestamps();\n });\n }\n }", "title": "" }, { "docid": "7553078deb5003db10fa302510f72d95", "score": "0.7233064", "text": "public function safeUp()\n {\n $this->alterColumn('stock_opname', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n $this->addColumn('stock_opname', 'input_selisih', 'TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER `status`');\n }", "title": "" }, { "docid": "b03e67c23ec094f4ae6060e3b37da2b7", "score": "0.7227995", "text": "public function up()\n {\n $this->createTable('user_to_category', [\n 'user_id' => $this->integer(),\n 'category_id' => $this->integer(),\n 'PRIMARY KEY(user_id, category_id)',\n ]);\n $this->addForeignKey(\n 'user_id',\n 'user_to_category',\n 'user_id',\n 'user',\n 'user_id',\n 'CASCADE'\n );\n $this->addForeignKey(\n 'category_id',\n 'user_to_category',\n 'category_id',\n 'category',\n 'category_id',\n 'CASCADE'\n );\n\n }", "title": "" }, { "docid": "2d787ebe5db20cf50b93219d5ccc55f5", "score": "0.72269183", "text": "public function up() {\n if (!Schema::hasColumn('lessons', 'generated')) {\n Schema::table('lessons', function(Blueprint $table) {\n $table->boolean('generated')->default(false);\n });\n }\n\n if (!Schema::hasColumn('rooms', 'shortname')) {\n Schema::table('rooms', function(Blueprint $table) {\n $table->string('shortname', 10)->nullable()->unique();\n });\n }\n }", "title": "" }, { "docid": "66e92e64a879f3669beb288a515b9a4f", "score": "0.72262466", "text": "public function up()\n {\n $this->table('category_costs')\n -> addColumn('name', 'string')\n ->addColumn('created_at', 'datetime')\n ->addColumn('updated_at', 'datetime')\n ->save();\n }", "title": "" }, { "docid": "d9b960285f2c8abd6b9ad7bfbeacfc12", "score": "0.7219979", "text": "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY',\n 'label' => Schema::TYPE_STRING. ' NOT NULL COMMENT \"Название\"',\n 'code' => Schema::TYPE_STRING. ' NOT NULL COMMENT \"Код\"',\n 'rate_to_default' => Schema::TYPE_DECIMAL. '(6,2) NOT NULL COMMENT \"Курс к главной валюте\"',\n 'is_default' => Schema::TYPE_SMALLINT. '(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT \"Главная валюта\"',\n 'visible' => Schema::TYPE_SMALLINT. '(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"Отображать\"',\n 'position' => Schema::TYPE_INTEGER. ' UNSIGNED NOT NULL DEFAULT 0 COMMENT \"Позиция\"',\n 'created' => Schema::TYPE_DATETIME. ' NOT NULL COMMENT \"Создано\"',\n 'modified' => Schema::TYPE_DATETIME. ' NOT NULL COMMENT \"Обновлено\"',\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->insert($this->tableName, [\n 'label' => 'Доллар',\n 'code' => 'USD',\n 'rate_to_default' => 1,\n 'is_default' => 1,\n 'position' => 1,\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ]);\n\n $this->insert($this->tableName, [\n 'label' => 'Гривна',\n 'code' => 'UAH',\n 'rate_to_default' => 22.55,\n 'is_default' => 0,\n 'position' => 2,\n 'created' => date('Y-m-d H:i:s'),\n 'modified' => date('Y-m-d H:i:s'),\n ]);\n }", "title": "" }, { "docid": "b264f53ca2c640e24c4ccc7e99b126de", "score": "0.7214909", "text": "public function up()\n {\n $this->createTable('tb_faculty', [\n 'id' => $this->primaryKey(),\n 'name' => $this->string(50),\n 'description' => $this->text()->null(),\n 'created_at' => $this->timestamp()->defaultExpression('now()'),\n 'updated_at' => $this->timestamp()->defaultExpression('now()')//->append('ON UPDATE now()')\n ]);\n }", "title": "" }, { "docid": "af413c55f18d221e7453e2d67485b8e0", "score": "0.72110265", "text": "public function safeUp()\n\t{\n\t\t$this->createTable('currencies',[\n\t\t\t'id' => 'pk',\n\t\t\t'name' => 'varchar(32) NOT NULL',\n\t\t\t'price' => 'decimal(11,6) NOT NULL',\n\t\t\t'symbol' => 'varchar(16) NOT NULL',\n\t\t\t'ts' => 'integer NOT NULL',\n\t\t\t'type' => 'integer(3) NOT NULL',\n\t\t\t'utctime' => 'datetime',\n\t\t\t'volume' => 'integer',\n\t\t\t'classname' => 'varchar(64) NOT NULL',\n\t\t\t'created_at' => 'timestamp DEFAULT CURRENT_TIMESTAMP',\n\t\t\t'updated_at' => 'datetime',\n\t\t], 'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n\t}", "title": "" }, { "docid": "00f393441984255bd5687e7b2f5bb1ca", "score": "0.7210776", "text": "public function up()\n {\n Schema::table('anm_target_data', function (Blueprint $table) {\n $table->dropColumn('subcenter_name');\n });\n }", "title": "" }, { "docid": "04b971252a7c368f65970aace8383ecc", "score": "0.7199424", "text": "public function up(){\n //TODO: ADD relationship role-permissions\n Schema::create($this->table, function (Blueprint $table) {\n $table->increments('id');\n });\n\n $this->baseMigration();\n $this->auditMigration();\n\n Schema::table($this->table, function (Blueprint $table) {\n $table->unique('title');\n });\n }", "title": "" }, { "docid": "e731158e1c11b68cd556315989c1bf8f", "score": "0.71956545", "text": "public function up()\n\t{\n\t\t$fields = array(\n\t\t\t'fechaFinal' => array('type' => 'DATETIME')\n\t\t);\n\t\t$this->dbforge->add_column('orden', $fields);\n\n\t\t//copiar los datos de las siguientes columnas de vehiculo a orden\n\t\t$this->db->simple_query(\"UPDATE orden SET fechaFinal = fecha_hora\");\n\t\n\t}", "title": "" }, { "docid": "3388ae219ec37550cf9e62ffbba9efa0", "score": "0.71951675", "text": "public function up()\n {\n //foreign key and cascade on delete for table relations and column:\n // the startnode\n $this->execute(\"ALTER TABLE relations ADD CONSTRAINT startnode_fk_constraint FOREIGN KEY (startnode) REFERENCES nodes(id) ON DELETE CASCADE\");\n //nodevalue\n $this->execute(\"ALTER TABLE relations ADD CONSTRAINT nodevalue_fk_constraint FOREIGN KEY (nodevalue) REFERENCES nodes(id) ON DELETE CASCADE\");\n //geometry value\n $this->execute(\"ALTER TABLE relations ADD CONSTRAINT geometryvalue_fk_constraint FOREIGN KEY (geometryvalue) REFERENCES geometries(id) ON DELETE CASCADE\");\n //property\n $this->execute(\"ALTER TABLE relations ADD CONSTRAINT property_fk_constraint FOREIGN KEY (property) REFERENCES properties(id) ON DELETE CASCADE\");\n\n }", "title": "" }, { "docid": "6df89abc6b5fc9403922ab92431153b3", "score": "0.7183965", "text": "public function up()\n\t{\n\t\tDB::table('user_types')->insert(array(\n\t\t\t\t'name'=> 'admin',\n\t\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t\t));\n\t\tDB::table('user_types')->insert(array(\n\t\t\t\t'name'=> 'student',\n\t\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t\t));\n\t\tDB::table('user_types')->insert(array(\n\t\t\t\t'name'=> 'advisor',\n\t\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t\t));\n\t}", "title": "" }, { "docid": "e40b5557e9de42bb634e47103bbcec62", "score": "0.7180171", "text": "public function up()\n\t{\n\t\t$this->execute(\"\n CREATE TABLE `ppxs_person_x_setting`( \n `ppxs_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,\n `ppxs_pprs_id` SMALLINT UNSIGNED NOT NULL,\n `ppxs_psty_id` SMALLINT UNSIGNED,\n `ppxs_value` VARCHAR(256),\n `ppxs_notes` TEXT,\n `ppxs_hidded` TINYINT UNSIGNED NOT NULL DEFAULT 0,\n PRIMARY KEY (`ppxs_id`)\n ) ENGINE=INNODB CHARSET=utf8;\n\n \");\n\t}", "title": "" }, { "docid": "f7420717d83086ff4df51eac66a0d1f1", "score": "0.71764714", "text": "public function up()\n {\n $fields = array(\n 'experience_id'=> array(\n 'type' => 'INT',\n 'constraint' => 5,\n 'unsigned' => true,\n 'auto_increment' => true\n ),\n\n 'user_id' => array(\n 'type' => 'INT',\n 'unsigned' => true,\n 'constraint' => 5\n ),\n\n 'company_name' => array(\n 'type' => 'TEXT'\n ),\n 'description' => array(\n 'type' => 'TEXT'\n ),\n 'date_added' => array(\n 'type' => 'DATE',\n 'default' => NULL\n )\n\n );\n $this->dbforge->add_field($fields);\n $this->dbforge->add_key('experience_id', TRUE);\n $this->dbforge->create_table('user_experiences');\n $this->dbforge->add_column('user_experiences',[\n 'CONSTRAINT user_experience_id FOREIGN KEY(user_id) REFERENCES users(user_id)',\n ]);\n }", "title": "" }, { "docid": "fbae56e8b88af45080ea034f703270b8", "score": "0.7173111", "text": "public function safeUp()\n {\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('attributes_types', [\n 'id' => $this->primaryKey()->unsigned(),\n 'name' => $this->string(100)->notNull(),\n 'description' => $this->string(),\n ], $tableOptions);\n\n $this->addcommentOnColumn('attributes_types','name','Уникальное имя для типа ');\n\n $this->addCommentOnTable('attributes_types', 'Список типов(текст, список и тд) для аттрибутов, которые указываются при подаче объявления');\n }", "title": "" }, { "docid": "8fcc048a3556fb56a3089608fdd87473", "score": "0.71718276", "text": "public function up()\n {\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n $this->createTable('{{%tbl_product}}', [\n 'Pro_id' => $this->primaryKey(),\n 'Pro_name' => $this->string()->notNull()->unique(),\n 'Price' => $this->integer()->notNull(),\n 'SaleOf' => $this->integer()->notNull(),\n 'StartSale' => $this->date()->notNull(),\n 'EndSale' => $this->date()->notNull(),\n 'PriceSale' => $this->integer()->notNull(),\n 'Quanlity' => $this->integer()->notNull(),\n 'Size' => $this->string()->notNull(),\n 'Color' => $this->string()->notNull(),\n 'Evaluation' => $this->string()->notNull(),\n 'Tags' => $this->string()->notNull(),\n 'Image' => $this->string()->notNull(),\n 'Keywords' => $this->string()->notNull(),\n 'Description' => $this->string()->notNull(),\n 'Keywords' => $this->string()->notNull(),\n 'Content' => $this->string()->notNull(),\n 'GroupID' => $this->integer()->notNull(),\n 'Status' => $this->smallInteger()->notNull()->defaultValue(1),\n 'CateID' => $this->integer()->notNull(),\n 'SuppliresID' => $this->integer()->notNull(),\n 'UserID' => $this->integer()->notNull(),\n 'CreatedAt' => $this->date()->notNull(),\n 'UpdateAt' => $this->date()->notNull(),\n ], $tableOptions);\n }", "title": "" }, { "docid": "611528d15ec375bb26088db548239b79", "score": "0.7163193", "text": "public function up()\r\n {\r\n $this -> executeSQL(\"ALTER TABLE `esq_client_messages` ADD `deleted_at` DATETIME AFTER `is_deleted`;\");\r\n $this -> executeSQL(\"UPDATE `esq_client_messages` SET `deleted_at` = `updated_at` WHERE `is_deleted` = 1;\");\r\n $this -> executeSQL(\"ALTER TABLE `esq_client_messages` DROP `is_deleted`;\");\r\n }", "title": "" }, { "docid": "2d437ccd29f53b565d338baa1b4038f9", "score": "0.7162905", "text": "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "title": "" }, { "docid": "8dc0faca52ebbd1ed8be3800c6b482ce", "score": "0.7158267", "text": "public function up()\n {\n $table = $this->table('city');\n $table->removeColumn('transitScore')\n ->update();\n $table->addColumn('transitScore', 'integer', array('after' => 'walkScore'))\n ->update();\n $table->changeColumn('avgTemp', 'decimal', array('precision' => 5, 'scale' => 1))\n ->update();\n }", "title": "" }, { "docid": "7d9c4349fea0bf833e0e8caa52c16175", "score": "0.71530116", "text": "public function safeUp() {\n\t$this->createTable('NeighborRent', array(\n \"neighbor\"=>\"int(11) NOT NULL\",\n \"rent\"=>\"int(11) NOT NULL\",\n \"PRIMARY KEY (`neighbor`,`rent`)\",\n \"KEY `neighbor` (`neighbor`)\",\n \"KEY `rent` (`rent`)\",\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "title": "" }, { "docid": "1ab03ad18313e4aaa12e4a071f9229f4", "score": "0.7152924", "text": "public function up()\n {\n $this->addColumn('ott_main_class','one_month_price', 'decimal(8,2) default 0.00');\n $this->addColumn('ott_main_class','three_month_price', 'decimal(8,2) default 0.00');\n $this->addColumn('ott_main_class','six_month_price', 'decimal(8,2) default 0.00');\n $this->addColumn('ott_main_class','one_year_price', 'decimal(8,2) default 0.00');\n }", "title": "" }, { "docid": "982ca4c1fb7fee8573f77056055b9feb", "score": "0.7150632", "text": "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'id' => $this->bigPrimaryKey(),\n 'user_id' => $this->bigInteger()->notNull(),\n 'source' => $this->string()->notNull(),\n 'source_id' => $this->string()->notNull(),\n ]);\n\n $this->addForeignKey('auth_user_id_fk', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n\n $this->createIndex('auth_source_idx', $this->tableName, 'source');\n $this->createIndex('auth_source_id_idx', $this->tableName, 'source_id');\n }", "title": "" }, { "docid": "3e9500d1cb62ec6f3f10ca8aaad532c0", "score": "0.71438473", "text": "public function up()\n {\n\n $this->execute('UPDATE `strack_base` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_dir_template` SET `pattern`=\"\" WHERE `pattern` is null');\n\n $this->execute('UPDATE `strack_dir_variable` SET `record`=\"\" WHERE `record` is null');\n\n $this->execute('UPDATE `strack_download` SET `path`=\"\" WHERE `path` is null');\n\n $this->execute('UPDATE `strack_entity` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_file` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_file_commit` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_media` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_media` SET `thumb`=\"\" WHERE `thumb` is null');\n\n $this->execute('UPDATE `strack_project` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_timelog` SET `description`=\"\" WHERE `description` is null');\n\n $this->execute('UPDATE `strack_variable_value` SET `value`=\"\" WHERE `value` is null');\n\n }", "title": "" }, { "docid": "38bcadc4a8eb64a91ab043b5da6f5a38", "score": "0.71411765", "text": "public function up()\n {\n $this->alterColumn('resume', 'employment', $this->smallInteger()->unsigned());\n $this->alterColumn('resume', 'schedule', $this->smallInteger()->unsigned());\n }", "title": "" }, { "docid": "fa7b55aa1772240f5bce8b943b0b211e", "score": "0.71357673", "text": "public function up()\n {\n $this->schema->create('inv_items_precios_alquiler', function(Illuminate\\Database\\Schema\\Blueprint $table) {\n $table->increments('id');\n $table->integer('id_item');\n $table->integer('id_inv_precio');\n $table->decimal('hora',15,2);\n $table->decimal('diario',15,2);\n $table->decimal('semanal',15,2);\n $table->decimal('mensual',15,2);\n $table->decimal('tarifa_4_horas',15,2);\n $table->decimal('tarifa_15_dias',15,2);\n $table->decimal('tarifa_28_dias',15,2);\n $table->decimal('tarifa_30_dias',15,2);\n });\n }", "title": "" }, { "docid": "a995f59fef23b2059ccfce44f2573472", "score": "0.7133347", "text": "public function up()\n {\n $this->dropColumn(\"whitebook_auth_item\", \"created_datetime\");\n $this->addColumn('whitebook_auth_item', 'created_at', $this->integer());\n\n $this->dropColumn(\"whitebook_auth_item\", \"modified_datetime\");\n $this->addColumn('whitebook_auth_item', 'updated_at', $this->integer());\n\n //Fix columns in `whitebook_auth_assignment` with issues\n $this->dropColumn(\"whitebook_auth_assignment\", \"created_datetime\");\n $this->addColumn('whitebook_auth_assignment', 'created_at', $this->integer());\n\n $this->dropColumn(\"whitebook_auth_assignment\", \"modified_datetime\");\n $this->addColumn('whitebook_auth_assignment', 'updated_at', $this->integer());\n }", "title": "" }, { "docid": "fd68faeb9d5da92b954c0359bf40d139", "score": "0.71200055", "text": "public function safeUp()\n\t{\n $this->createTable(\n '{{user_user_auth_item_child}}', array(\n 'parent' => \"char(64) NOT NULL\",\n 'child' => \"char(64) NOT NULL\",\n ), $this->getOptions()\n\n );\n\n $this->addPrimaryKey(\"pk_{{user_user_auth_item_child}}_parent_child\", '{{user_user_auth_item_child}}', 'parent,child');\n $this->addForeignKey(\"fk_{{user_user_auth_item_child}}_child\", '{{user_user_auth_item_child}}', 'child', '{{user_user_auth_item}}', 'name', 'CASCADE', 'CASCADE');\n $this->addForeignKey(\"fk_{{user_user_auth_itemchild}}_parent\", '{{user_user_auth_item_child}}', 'parent','{{user_user_auth_item}}', 'name', 'CASCADE', 'CASCADE');\n\t}", "title": "" }, { "docid": "47bf2937475bffe61f9d9a95bd757920", "score": "0.7118869", "text": "public function safeUp()\n\t{\n\t\t$this->up();\n\t}", "title": "" }, { "docid": "ebe26483a6bea141f44607edd034a20c", "score": "0.7112643", "text": "public function up()\r\n {\r\n $this -> executeSQL(\"DROP TABLE `esq_coupons_to_websites`;\");\r\n }", "title": "" }, { "docid": "348ef1c6c702f5aa73db68173d79997e", "score": "0.71117806", "text": "public function up()\n\t{\n\t\t$rows[]=array(\n\t\t\t\t\t\t\t\"id\"=>1,\n\t\t\t\t\t\t\t\"interface\"=>\"Admin\",\n\t\t\t\t\t\t\t'enable'=>1\n\t\t\t\t\t\t);\n\t\t$rows[]=array(\n\t\t\t\t\t\t\t\"id\"=>2,\n\t\t\t\t\t\t\t\"interface\"=>\"User\",\n\t\t\t\t\t\t\t'enable'=>1\n\t\t\t\t\t\t);\n\n\t\t//ingresamos el registro en la base de datos\n\t\t\n\t\tforeach ($rows as $row) {\n\n\t\t\t$this->db->insert($this->table, $row);\t\n\t\t}\n\t\t\n \n\t}", "title": "" }, { "docid": "d1a8cd0694ccea1447b4b0a6b1254293", "score": "0.7089239", "text": "public function up()\n {\n $this->execute('ALTER TABLE flag DROP FOREIGN KEY flag_ibfk_1');\n $this->execute('ALTER TABLE flag DROP FOREIGN KEY flag_ibfk_2');\n\n $this->execute('ALTER TABLE report DROP FOREIGN KEY report_ibfk_1');\n $this->execute('ALTER TABLE report DROP FOREIGN KEY report_ibfk_2');\n\n $this->execute('ALTER TABLE vote DROP FOREIGN KEY vote_ibfk_1');\n $this->execute('ALTER TABLE vote DROP FOREIGN KEY vote_ibfk_2');\n\n $this->table('flag')->drop()->save();\n $this->table('report')->drop()->save();\n $this->table('vote')->drop()->save();\n\n $this->table('archive')\n ->renameColumn('is_directory', 'directory')\n ->renameColumn('is_accepted', 'pending')\n ->renameColumn('is_visible', 'deleted')\n ->save();\n }", "title": "" }, { "docid": "8fe23ffd3fe81e28cb68dd161f2e05a1", "score": "0.70829403", "text": "public function safeUp() {\n\t$this->createTable('DBVariables', array(\n 'name'=>\"varchar(20) NOT NULL\",\n 'value'=>\"varchar(50) NOT NULL\",\n \"PRIMARY KEY (`name`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "title": "" }, { "docid": "a7780e4ab59d9f63516e1270cc916662", "score": "0.70818114", "text": "public function safeUp()\n\t{\n\t\t$this->createTable('sub_categoria', array(\n\t\t\t'id' => 'serial NOT NULL primary key',\n\t\t\t'nome' => 'varchar',\n\t\t\t'categoria_id' => 'integer references categoria (id)',\n\t\t));\n\t}", "title": "" }, { "docid": "983ed41b385e89a425a08045bfdcc757", "score": "0.7079131", "text": "public function up()\n {\n $this->dbforge->add_field(\n array(\n 'id' => array(\n 'type' => 'INT',\n 'constraint' => 11,\n 'unsigned' => true,\n 'auto_increment' => true\n ),\n 'nome' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '255',\n ),\n 'clima' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '255',\n ),\n 'terreno' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '255',\n ),\n 'filmes' => array(\n 'type' => 'INT',\n 'constraint' => 11,\n 'null' => true,\n ),\n 'created_at' => array(\n 'type' => 'DATETIME', \n 'default' => 'CURRENT_TIMESTAMP'\n ),\n 'updated_at' => array(\n 'type' => 'DATETIME', \n 'null' => true,\n 'default' => 'CURRENT_TIMESTAMP'\n ),\n )\n );\n \n $this->dbforge->add_key('id', TRUE);\n $this->dbforge->create_table('planets');\n }", "title": "" }, { "docid": "8e72d8e53513ba400b12d48bb0caaf69", "score": "0.7079118", "text": "public function up()\n {\n\n if(!TableExists::tableExists('pricefalls_payment'))\n {\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('{{%pricefalls_payment}}', [\n 'id' => $this->primaryKey(),\n 'merchant_id' => $this->integer()->notNull(),\n 'plan_type' => $this->string()->notNull(),\n 'status' =>$this->string()->notNull(),\n 'payment_data' =>$this->text()->notNull(),\n 'order_data' =>$this->text()->notNull(),\n 'billing_on' =>$this->dateTime()->notNull(),\n 'archived_on' => $this->dateTime()->notNull(),\n ], $tableOptions);\n\n $this->addForeignKey('fk-pricefalls_payment-merchant_id',\n 'pricefalls_payment',\n 'merchant_id',\n 'merchant_db',\n 'merchant_id',\n 'CASCADE',\n 'CASCADE');\n\n\n }\n else\n {\n echo \"table already exists\";\n }\n }", "title": "" }, { "docid": "010c4823db943aa3b7198bddf2125cce", "score": "0.707617", "text": "public function up()\n\t{\n\t\t//Your schema to migrate\n\t\tSchema::instance(\n $this,\n function ($table) {\n $table->tableName = 'shopping_product';\n $table->create(\n array(\n array('name'=> 'id', 'type' => 'int', 'length' => 11,\n 'increment' => true, 'key' => 'primary'),\n array('name'=> 'name', 'type' => 'string', 'length' =>'100'),\n array('name'=> 'description', 'type' => 'string', 'length' =>'255'),\n\t\t\t\t\tarray('name'=> 'price', 'type' => 'float', 'length' =>'10,2'),\n array(\n 'name'=> 'created_at',\n 'type' => 'datetime',\n 'length' =>\"DEFAULT '0000-00-00 00:00:00'\"\n ),\n array(\n 'name'=> 'updated_at',\n 'type' => 'datetime',\n 'length' =>\"DEFAULT '0000-00-00 00:00:00'\"\n ),\n ),\n 'InnoDB',\n 'latin1'\n )->run();\n }\n ); \n\t\t\n\t}", "title": "" }, { "docid": "c1e43d9103542cddf9f5c26e5573b27f", "score": "0.707392", "text": "public function up()\n\t{\n\t\t//Categorias\n\t\tSchema::table('categorias', function($table)\n\t\t{\n\t\t $table->create();\n\n\t\t $table->increments('id');\n $table->integer('cod');\n \t$table->string('nome');\n\t\t $table->timestamps();\n\t\t});\n\t\t//Subcategorias\n\t\tSchema::table('subcategorias', function($table)\n\t\t{\n\t\t $table->create();\n\n\t\t $table->increments('id');\n $table->integer('cod');\n \t$table->string('nome');\n\t\t $table->timestamps();\n\t\t});\n\t\t//Rel subcategoria com categoria\n\t\tSchema::table('subcategoria_categorias', function($table)\n\t\t{\n\t\t $table->create();\n\n\t\t $table->increments('id');\n\t\t $table->integer('id_categoria');\n\t\t $table->integer('id_subcategoria');\n\t\t $table->timestamps();\n\t\t});\n\t}", "title": "" }, { "docid": "33d70189d5e642c66e226c23c9331f00", "score": "0.7073589", "text": "public function up()\n {\n $table = $this->table('status_consultations');\n $table->addColumn('name', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true])\n ->create();\n\n\n $data = [ \n ['name' => 'Nova', 'modified' => false],\n ['name' => 'Em Análise', 'modified' => false],\n ['name' => 'Cancelada', 'modified' => false],\n ['name' => 'Aprovada', 'modified' => false],\n ['name' => 'Reprovada', 'modified' => false],\n ];\n \n $statusSonsultationsTable = TableRegistry::get('status_consultations');\n foreach ($data as $value) {\n $statusSonsultationsTable->save($statusSonsultationsTable->newEntity($value));\n }\n\n }", "title": "" }, { "docid": "19976f07122bae00ae038cf4c025f5fb", "score": "0.70734215", "text": "public function up()\n\t{\n\t\techo $this->migration('up');\n\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::generate~cli', 'Scaffolding', 'Cli Cli Scaffolding Generate', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::generate~cli', 'Scaffolding', 'Cli Cli Scaffolding Generate', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::create_columns~cli', 'Scaffolding', 'Cli Cli Scaffolding Create Columns');\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::create_missing_columns~cli', 'Scaffolding', 'Cli Cli Scaffolding Create Missing Columns', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::create_files~cli', 'Scaffolding', 'Cli Cli Scaffolding Create Files', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::create_missing_files~cli', 'Scaffolding', 'Cli Cli Scaffolding Create Missing Files', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/cli/scaffolding::display_permissions~cli', 'Scaffolding', 'Cli Cli Scaffolding Display Permissions', $this->hash());\n\t\t\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/columns::index~get', 'Scaffolding', 'Scaffolding Get Columns Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/columns::details~get', 'Scaffolding', 'Scaffolding Get Columns Details', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/columns::index~post', 'Scaffolding', 'Scaffolding Post Columns Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/columns::index~patch', 'Scaffolding', 'Scaffolding Patch Columns Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/columns::index~delete', 'Scaffolding', 'Scaffolding Delete Columns Index', $this->hash());\n\t\t\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/regenerate::button_regenerate_all_files~get', 'Scaffolding', 'Scaffolding Get Regenerate Button Regenerate All Files', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/regenerate::button_regenerate_missing_files~get', 'Scaffolding', 'Scaffolding Get Regenerate Button Regenerate Missing Files', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/regenerate::button_regenerate_all_columns~get', 'Scaffolding', 'Scaffolding Get Regenerate Button Regenerate All Columns', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/regenerate::button_regenerate_missing_columns~get', 'Scaffolding', 'Scaffolding Get Regenerate Button Regenerate Missing Columns', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/regenerate::index~get', 'Scaffolding', 'Scaffolding Get Regenerate Index');\n\t\t\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/tables::index~get', 'Scaffolding', 'Scaffolding Get Tables Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/tables::details~get', 'Scaffolding', 'Scaffolding Get Tables Details', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/tables::index~post', 'Scaffolding', 'Scaffolding Post Tables Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/tables::index~patch', 'Scaffolding', 'Scaffolding Patch Tables Index', $this->hash());\n\t\tci('o_permission_model')->migration_add('url::/scaffolding/tables::index~delete', 'Scaffolding', 'Scaffolding Delete Tables Index', $this->hash());\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ef60c095a90f9fd9ca6fe524a45f5a14", "score": "0.7071793", "text": "public function up()\n {\n return MysqlStatements::alter_table_add_field($this->db_table(), $this->fields);\n }", "title": "" }, { "docid": "d40ec04310024f4bc8e6ec43c37680b2", "score": "0.7068452", "text": "public function up()\n {\n $this->alterColumn(\"filefly_hashmap\",\"access_owner\", $this->string(255));\n }", "title": "" }, { "docid": "83723b032cdb8cf48301f11134762a3b", "score": "0.7067296", "text": "public function up()\n {\n $this->addColumn('products_reviews', 'plus', $this->string(512));\n $this->addColumn('products_reviews', 'minus', $this->string(512));\n }", "title": "" }, { "docid": "4802accd036fba27a7ee93a1c7a2a588", "score": "0.7061278", "text": "public function safeUp()\n\t{\n\t $this->addColumn('project_supported_files', 'is_image_based', 'binary(1) DEFAULT \"0\"');\n\t $this->addColumn('project_supported_files', 'image_size', 'enum(\"NONE\",\"CROPPED\",\"FULL_SCREEN\") DEFAULT \"NONE\"');\n\t}", "title": "" }, { "docid": "3e86e7453381041854ae857465bf7059", "score": "0.7037801", "text": "public function safeUp() {\n $this->createTable('{{speciality}}', array(\n 'id' => 'INT(10) NOT NULL AUTO_INCREMENT', \n 'name'=>'VARCHAR(255) DEFAULT NULL',\n 'PRIMARY KEY (id)',\n ),\n 'ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci'\n );\n $this->insert('{{speciality}}', array('name'=>'Специализация 1'));\n $this->insert('{{speciality}}', array('name'=>'Специализация 2'));\n $this->insert('{{speciality}}', array('name'=>'Специализация 3'));\n \n $this->addColumn('{{tenders}}', 'speciality', 'INT(11) DEFAULT NULL');\n\t}", "title": "" }, { "docid": "5b8f9ce7256dd895fcde8c3e27afa1fc", "score": "0.70374274", "text": "public function getUpSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `company` CHANGE `company_added_by` `company_added_by` INTEGER;\n\nDROP INDEX `user_FI_2` ON `user`;\n\nALTER TABLE `user` CHANGE `user_user_role` `user_age` INTEGER;\n\nALTER TABLE `user` CHANGE `user_gender` `user_gender` VARCHAR(6);\n\nALTER TABLE `user` CHANGE `user_company_key` `user_company_key` VARCHAR(40) NOT NULL;\n\nALTER TABLE `user`\n ADD `user_role` VARCHAR(20) NOT NULL AFTER `user_company_key`;\n\nCREATE INDEX `user_FI_2` ON `user` (`user_role`);\n\nALTER TABLE `user_level` CHANGE `ul_status` `ul_status` VARCHAR(10);\n\nALTER TABLE `user_level`\n ADD `ul_date_added` DATETIME AFTER `ul_added_by`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "title": "" }, { "docid": "dea6e658a18ff0da0b7940ff4db703a0", "score": "0.7036836", "text": "public function up()\n {\n Schema::dropIfExists('kind_of_space_lang');\n Schema::create('kind_of_space_lang', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('kind_of_space_id')->unsigned();\n $table->foreign('kind_of_space_id')->references('id')->on('kind_of_space');\n $table->string('name', 35);\n $table->string('lang_code',5);\n $table->timestamps();\n });\n }", "title": "" }, { "docid": "8321df0f0477acf0e979ce66d0c283ac", "score": "0.70367384", "text": "public function safeUp()\n {\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('{{%calendar}}', [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer()->defaultValue(null),\n 'project_id' => $this->integer()->notNull(),\n 'estimated_time' => $this->integer()->defaultValue(null),\n 'estimate_approval' => $this->boolean()->notNull()->defaultValue(false),\n 'actual_time' => $this->integer()->defaultValue(null),\n 'start_at' => $this->integer()->defaultValue(null),\n 'end_at' => $this->integer()->defaultValue(null),\n 'created_by' => $this->integer()->notNull(),\n 'created_at' => $this->integer()->defaultValue(null),\n 'updated_at' => $this->integer()->defaultValue(null),\n 'description' => $this->text()->defaultValue(null),\n ],$tableOptions);\n\n $this->addForeignKey('fk_calendar_user', '{{%calendar}}', 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('fk_calendar_created_by', '{{%calendar}}', 'created_by', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('fk_calendar_project', '{{%calendar}}', 'project_id', '{{%project}}', 'id', 'CASCADE', 'CASCADE');\n }", "title": "" }, { "docid": "7bf54dc3e1d63605612062931544dded", "score": "0.7033679", "text": "public function up(){\n// $this->execute($sql);\n\n }", "title": "" }, { "docid": "13e622767b011695246fc7ff5e5cec60", "score": "0.7032807", "text": "public function safeUp()\n {\n $this->createTable('{{failed_logins}}', [\n 'id' => 'pk',\n 'username' => 'string NOT NULL',\n 'ip_address' => 'varchar(45) NOT NULL',\n 'occurred_at_utc' => 'datetime NOT NULL',\n ], 'ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci');\n $this->createIndex(\n 'idx_failed_logins_username',\n '{{failed_logins}}',\n 'username',\n false\n );\n $this->createIndex(\n 'idx_failed_logins_ip_address',\n '{{failed_logins}}',\n 'ip_address',\n false\n );\n }", "title": "" }, { "docid": "16f85de080892a8f4b719f62c691e10e", "score": "0.7025838", "text": "public function safeUp()\n {\n $this->addColumn($this->tableName, 'is_new', Schema::TYPE_SMALLINT.'(1) NOT NULL DEFAULT 0');\n $this->addColumn($this->tableName, 'is_top_50', Schema::TYPE_SMALLINT.'(1) NOT NULL DEFAULT 0');\n $this->addColumn($this->tableName, 'is_top_50_category', Schema::TYPE_SMALLINT.'(1) NOT NULL DEFAULT 0');\n }", "title": "" }, { "docid": "14afb99aa0f3dce49172e0b0f445abe2", "score": "0.70254046", "text": "public function up()\n {\n $table = $this->table('model_modifications');\n\n if (!$table->exists()) {\n $table\n ->addPrimaryKey('id')\n ->addColumn('vehicle_id', 'integer', ['null'=> false])\n ->addColumn('vehicle_model_id', 'integer', ['null'=> false])\n ->addColumn('modification', 'char', ['null'=>false])\n ->addColumn('engine', 'char', ['null'=> false])\n ->addColumn('engine_model', 'char', ['null'=> false])\n ->addColumn('engine_volume', 'char', ['null'=> false])\n ->addColumn('power', 'char', ['null'=> false])\n ->addTimestamps()\n ->addColumn('deleted_at', 'datetime', ['null' => true])\n ->create();\n }\n }", "title": "" }, { "docid": "578e1557a2820347d1f8059709b3e376", "score": "0.7009653", "text": "public function safeUp()\n {\n $this->createTable('contract_attachment', array(\n 'contract_id' => self::MYSQL_TYPE_UINT,\n 'file' => 'string NOT NULL',\n ));\n\n $this->addForeignKey('contract_attachment_contract_id', 'contract_attachment', 'contract_id', 'contract', 'id', 'CASCADE', 'RESTRICT');\n }", "title": "" }, { "docid": "5b8d6df478fecc0e3bded264d5eb422a", "score": "0.700881", "text": "public function up()\n {\n $this->getSchema()->create('weathers', function ($table){\n $table->increments('id');\n $table->text('name');\n $table->string('latin_name');\n $table->string('country')->nullable();\n $table->binary('data')->nullable();\n $table->binary('short')->nullable();\n $table->binary('today')->nullable();\n $table->timestamps();\n });\n parent::up();\n }", "title": "" }, { "docid": "36ab59f548a9a309708a7fd3d2f9dc1f", "score": "0.7006172", "text": "public function safeUp() {\n\t$this->createTable('Currency', array(\n 'id'=>\" int(11) NOT NULL AUTO_INCREMENT\",\n 'full_name' =>\"varchar(50) NOT NULL\",\n 'short_name' =>\"char(4) NOT NULL\",\n 'symbol' =>\"char(1) DEFAULT NULL\",\n 'rate'=>\"float NOT NULL DEFAULT '1'\",\n 'image' =>\"varchar(10) NOT NULL\",\n \"PRIMARY KEY (`id`)\",\n \"UNIQUE KEY `full_name` (`full_name`,`short_name`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "title": "" }, { "docid": "8efd5a0e9a248d8de5d73299278b2e04", "score": "0.70053893", "text": "public function up()\n {\n DB::table('courses')->insert(array(\n 'id' => 106,\n 'name' => 'Fundamentals of Computer Science I',\n 'credit_hours' => 3\n ));\n \n DB::table('courses')->insert(array(\n 'id' => 110,\n 'name' => 'Fundamentals of Computer Science II',\n 'credit_hours' => 3\n ));\n\n DB::table('courses')->insert(array(\n 'id' => 210,\n 'name' => 'Digital Logic Design',\n 'credit_hours' => 3\n ));\n\n DB::table('courses')->insert(array(\n 'id' => 218,\n 'name' => 'Digital Logic Design Lab',\n 'credit_hours' => 1\n ));\n DB::table('courses')->insert(array(\n 'id' => 233,\n 'name' => 'Diffirential Equations',\n 'credit_hours' => 3\n ));\n }", "title": "" }, { "docid": "94af3c85b1675e5c5797037f6e49faaf", "score": "0.70012844", "text": "public function up()\r\n {\r\n $this -> executeSQL(\"ALTER TABLE esq_domain_names DROP `max_emails`, \r\n ADD `last_renewal_date` DATE NULL DEFAULT NULL AFTER expiration_date,\r\n ADD `is_auto_renew` TINYINT(1) NOT NULL DEFAULT 1 AFTER `is_a_record_only`;\");\r\n }", "title": "" }, { "docid": "eb9d87c5d572448b52509449615521b7", "score": "0.69948524", "text": "public function safeUp()\n {\n $fields = [];\n foreach ($this->fields as $field => $type){\n $fields[$field] = $this->$type();\n }\n\n $this->createTable($this->tableName, $fields);\n\n $this->addForeignKey('product_category_fk', $this->tableName, 'category', '{{%products_category}}', 'id', 'CASCADE', 'CASCADE');\n\n foreach ($fields as $field => $type){\n if(in_array($field, $this->noIndexFields)){\n continue;\n }\n $this->createIndex('product_'.$field.'_idx', $this->tableName, $field);\n }\n }", "title": "" }, { "docid": "c81035dc77b8bb270b7552baf897081e", "score": "0.69928724", "text": "public function up()\n {\n Schema::table('users', function (Blueprint $table) {\n Schema::table('users', function (Blueprint $table) {\n $table->unsignedBigInteger('role_id')->after('id')->nullable(); // make role id nullable\n });\n\n Schema::table('users', function (Blueprint $table) {\n $table->unsignedBigInteger('role_id')->nullable(false)->change(); // modify the column to not be nullable\n $table->foreign('role_id')->references('id')->on('roles'); // add foreign key constraints\n });\n });\n }", "title": "" }, { "docid": "1d8152e42c81f2ffca32b4946b9a72af", "score": "0.69918716", "text": "public function up()\n\t{\n // Insert each of the permissions and retrieve the inserted ID\n\t\t$rolePermissionsData = array();\n foreach ($this->permissions as $permission) {\n $this->db->insert($this->tablePermissions, $permission);\n $insertedId = $this->db->insert_id();\n\n // Add the inserted ID (and each role's ID) to the data for the\n // role/permissions table\n foreach ($this->defaultRoles as $defaultRole) {\n $rolePermissionsData[] = array(\n $this->keyRole => $defaultRole,\n $this->keyPermission => $insertedId,\n );\n }\n }\n\n // Insert the role/permissions data\n $this->db->insert_batch($this->tableRolePermissions, $rolePermissionsData);\n\t}", "title": "" }, { "docid": "fc33f2704fac5b6a98a8ce933ef974e5", "score": "0.6988548", "text": "public function up() {\n $fields = array(\n 'typeID' => array(\n 'type' => 'INT',\n 'constraint' => 11,\n 'default' => NULL,\n 'after' => 'addressID'\n )\n );\n $this->dbforge->add_column('orgs_safety', $fields);\n\n // add key\n $this->db->query('ALTER TABLE `' . $this->db->dbprefix('orgs_safety') . '` ADD INDEX (`typeID`)');\n\n // set foreign key\n $this->db->query('ALTER TABLE `' . $this->db->dbprefix('orgs_safety') . '` ADD CONSTRAINT `fk_orgs_safety_typeID` FOREIGN KEY (`typeID`) REFERENCES `' . $this->db->dbprefix('lesson_types') . '`(`typeID`) ON DELETE NO ACTION ON UPDATE CASCADE');\n }", "title": "" }, { "docid": "37e998724d53e971712fec625fb26a36", "score": "0.69870466", "text": "public function up()\n {\n $this->addColumn('{{%shop_products}}', 'units', $this->string(11)->defaultValue('шт'));\n $this->update('{{%shop_products}}', ['units' => 'шт']);\n }", "title": "" }, { "docid": "71d63bc7ffbd789333f684e02df489c0", "score": "0.6983684", "text": "public function up()\n {\n $view_name = self::$table_name;\n $sql = <<<EOF\ncreate or replace view $view_name as\nselect\n\tvd_video.video_id,\n\tvd_video.name as video_name,\n\tvd_video.description as video_description,\n\tvd_video.url_link as video_url_link,\n\tvd_video.video_specific_id\nfrom vd_video\nEOF;\n\n DB::statement($sql);\n }", "title": "" }, { "docid": "3738aae8433b48765a20ff3f4ce24519", "score": "0.6983315", "text": "public function up()\n {\n /* Schema::create($this->tableName, function (Blueprint $table) {\n\n $this->_addPrimaryKey($table, 'CompanyAddressId');\n $this->_addUUID($table, 'CompanyId');\n $this->_addUUID($table, 'AddressId');\n $table->foreign('CompanyId', 'CompanyAddress_Company_CompanyId')->references('CompanyId')->on('Company')->onDelete('cascade');\n $table->foreign('AddressId', 'CompanyAddress_Address_AddressId')->references('AddressId')->on('Address')->onDelete('cascade');\n }); */\n Schema::create($this->tableName, function (Blueprint $table) {\n\n $table->increments('CompanyAddressId');\n $table->bigInteger('CompanyId');\n $table->bigInteger('AddressId');\n // $table->foreign('CompanyId', 'CompanyAddress_Company_CompanyId')->references('CompanyId')->on('Company')->onDelete('cascade');\n //$table->foreign('AddressId', 'CompanyAddress_Address_AddressId')->references('AddressId')->on('Address')->onDelete('cascade');\n });\n }", "title": "" }, { "docid": "60a1e8db5692ca7c5d62eee30f213f78", "score": "0.6974865", "text": "public function safeUp()\n\t{\n\t\t$this->createTable('ssm_sm', array(\n\t\t\t\t'id' => 'pk',\n\t\t\t\t'sm_id' => 'int NOT NULL',\n\t\t\t\t'ssm_id' => 'int NOT NULL' )\n\t\t);\n\t}", "title": "" }, { "docid": "247e657060065127059f8580cf4bb432", "score": "0.69680685", "text": "public function up()\n {\n\n $CREATE_SQL=\"CREATE TRIGGER {{%tad_player}} AFTER DELETE ON {{%player}} FOR EACH ROW\n BEGIN\n IF (select memc_server_count()<1) THEN\n select memc_servers_set('127.0.0.1') INTO @memc_server_set_status;\n END IF;\n SELECT memc_delete(CONCAT('player_type:',OLD.id)) INTO @devnull;\n SELECT memc_delete(CONCAT('player:',OLD.id)) INTO @devnull;\n SELECT memc_delete(CONCAT('team_player:',OLD.id)) INTO @devnull;\n DELETE FROM player_score WHERE player_id=OLD.id;\n DELETE FROM profile WHERE player_id=OLD.id;\n DELETE FROM player_last WHERE id=OLD.id;\n END\";\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($CREATE_SQL)->execute();\n }", "title": "" }, { "docid": "46271462a4149f3404586270fc891c71", "score": "0.6964423", "text": "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'user_id' => $this->bigPrimaryKey(),\n 'sex' => $this->string(1)->notNull()->defaultValue('f'),\n 'name' => $this->string(),\n 'surname' => $this->string(),\n 'birth_date' => $this->date(),\n 'country' => $this->string(),\n 'city' => $this->string(),\n 'avatar' => $this->string(),\n 'info' => $this->text(),\n 'signature' => $this->string(),\n 'last_visit' => $this->integer()->notNull()->defaultValue(0),\n 'last_ip' => $this->string()\n ]);\n\n $this->addForeignKey('user_profile_user_id_fk', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n\n $this->createIndex('user_profile_sex_idx', $this->tableName, 'sex');\n $this->createIndex('user_profile_name_idx', $this->tableName, 'name');\n $this->createIndex('user_profile_birth_date_idx', $this->tableName, 'birth_date');\n $this->createIndex('user_profile_country_idx', $this->tableName, 'country');\n $this->createIndex('user_profile_last_visit_idx', $this->tableName, 'last_visit');\n }", "title": "" } ]
f87a2127635cd0e7925af65e3dd1ccda
Provides test data for the testAccessors test.
[ { "docid": "34cc56e9f9e0debcc8b99d17824828b1", "score": "0.0", "text": "public function getExceptionDataProvider()\n {\n $data = [];\n\n for ($i = 0; $i < 1000; $i += 100) {\n $data[] = [\n 'message-' . $i,\n $i,\n ];\n }\n\n return $data;\n }", "title": "" } ]
[ { "docid": "50d7d40ebe116bef6afaabb0acbb5a12", "score": "0.69928527", "text": "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "title": "" }, { "docid": "e3664b18c15d55d9c8b6294962c2d4e8", "score": "0.68257385", "text": "abstract protected function getTestData() : array;", "title": "" }, { "docid": "edb74ec41676fc5a099488511b2fa1f9", "score": "0.6776905", "text": "public function readTestData()\n {\n return $this->testData->get();\n }", "title": "" }, { "docid": "927f5750caefaec8d7e65695008b54d9", "score": "0.67233247", "text": "abstract public function getTestData(): array;", "title": "" }, { "docid": "968f988917128b90f86196e7c63719b3", "score": "0.6689558", "text": "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "title": "" }, { "docid": "727415147f6e1887cd31adfbba8f2dae", "score": "0.66146284", "text": "private function getTestData()\n {\n return [\n 'url' => 'http://www.mystore.com',\n 'access-token' => 'thisisaccesstoken',\n 'integration-token' => 'thisisintegrationtoken',\n 'method' => \\Magento\\Framework\\HTTP\\ZendClient::POST,\n 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'],\n ];\n }", "title": "" }, { "docid": "58e73bebc38573e7a287bff2f5edb47c", "score": "0.63587356", "text": "protected function getTestData(){\n\t\treturn \"application/testdata/Pagers.php\" ;\n\t}", "title": "" }, { "docid": "e6e6fc774cd3ae0b1fb79f9edea5d825", "score": "0.63098997", "text": "public function getTestAddAndGetData()\n {\n return [\n ['namespace_1', 'key_11'],\n ['namespace_2', 'key_21'],\n ];\n }", "title": "" }, { "docid": "1972d6673df13ebabfbb03c733ab7d6c", "score": "0.6284117", "text": "public function jsonViewTestData() {}", "title": "" }, { "docid": "991890585e3f8def28aab1e3060f97b1", "score": "0.61942685", "text": "public function testData()\n {\n $output = $this->primer->getPatterns(array('components/test-group/data-autoload'), false);\n\n $this->assertEquals($output, '1.2');\n }", "title": "" }, { "docid": "016f8d4c4fa04afdaddc1a4ee94fb882", "score": "0.6192412", "text": "public static function get_tests()\n {\n }", "title": "" }, { "docid": "c67d8a60e31c048cea6be3fe7c4e2e20", "score": "0.6136841", "text": "public function test() {\n $results = [];\n $results[\"testAddUser\"] = $this->testAddUser();\n\n return $results;\n }", "title": "" }, { "docid": "6690bacbc8ee2e3afdabb8c25a319384", "score": "0.61101913", "text": "public function provideTestData(): array\n {\n return [\n 'Role may handle the command' => [new FakeCommand(), 'ROLE_ADMIN'],\n 'Test role hierarchy' => [new FakeCommand(), 'ROLE_SUPER_ADMIN'],\n 'Role may not handle the command' => [new FakeCommand(), 'ROLE_USER', AccessDeniedException::class],\n 'Deny access if command is not in the mapping' => [new stdClass(), 'ROLE_SUPER_ADMIN', AccessDeniedException::class],\n ];\n }", "title": "" }, { "docid": "86e584045f2a9f5453e8c5f800a7fd64", "score": "0.6107231", "text": "protected function setUp()\n {\n parent::setUp();\n $this->testData = ['test' => 'test'];\n }", "title": "" }, { "docid": "e2402eb1cf87267b773d17a29066d217", "score": "0.60998636", "text": "public function provideTestData()\n {\n return [\n ['9141405', true],\n ['1709107983', true],\n ['0122116979', true],\n ['0121114867', true],\n ['9030101192', true],\n ['9245500460', true],\n\n ['9141406', false],\n ['1709107984', false],\n ['0122116970', false],\n ['0121114868', false],\n ['9030101193', false],\n ['9245500461', false],\n ];\n }", "title": "" }, { "docid": "a8bfc4d3ec1c38cf06e5cab730aba349", "score": "0.6094978", "text": "public function provideTestData()\n {\n return [\n // variant one\n ['1197423162', true],\n ['1000000606', true],\n\n // variant one\n ['8137423260', false],\n ['600000606', false],\n ['51234309', false],\n\n // variant two\n ['1000000406', true],\n ['1035791538', true],\n ['1126939724', true],\n ['1197423460', true],\n\n // variant two\n ['1000000405', false],\n ['1035791539', false],\n ['8035791532', false],\n ['535791830', false],\n ['51234901', false],\n ];\n }", "title": "" }, { "docid": "f08d0b6fdb2d058f97c0aef52016ae25", "score": "0.6072407", "text": "public function dataProviderTestInit()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "f58af1bc5f1ba1a24ff2053927138655", "score": "0.606773", "text": "public function testGetters()\n {\n $this->entity->fromArray($this->testData);\n\n foreach ($this->expectedGetters as $method => $expectedResult) {\n //var_dump($this->testData, $expectedResult, $this->entity->$method());\n if (is_array($expectedResult)) {\n $this->assertArraysAreSimilar($expectedResult, $this->entity->$method(), $method);\n } elseif (is_object($expectedResult)) {\n $actualObject = var_export($this->entity->$method(), true);\n $expectedObject = var_export($expectedResult, true);\n $this->assertSame($expectedObject, $actualObject, $method);\n } else {\n $this->assertSame($expectedResult, $this->entity->$method(), $method);\n }\n }\n }", "title": "" }, { "docid": "85625de5fdd0ca581bb04754aaaa6904", "score": "0.6063164", "text": "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }", "title": "" }, { "docid": "0e44fa0e3e969da78f95c7fbe0af26d5", "score": "0.602672", "text": "protected function provided_sample_data() {\n return ['user', 'context'];\n }", "title": "" }, { "docid": "725643ebdf88821193092b223b002c73", "score": "0.6020976", "text": "public function unitTestDataProvider()\n {\n\n return [\n 'test1' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n\n 'test2' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc2>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL\n .'<abc2>'.PHP_EOL,\n ],\n\n 'test3' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n ];\n }", "title": "" }, { "docid": "190bcd38d0d4d32bd8dce9ea5d0134c6", "score": "0.5991706", "text": "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "title": "" }, { "docid": "ca787f4564d877cbd738998b42faa371", "score": "0.5982449", "text": "protected function get_tests() {\r\n return array(\r\n \"connect\",\r\n \"select\"\r\n );\r\n }", "title": "" }, { "docid": "68e0722233bfa7614ed863da82b35010", "score": "0.59677035", "text": "public function getTests();", "title": "" }, { "docid": "5d9db4cce52df8f69018c6845765c848", "score": "0.5954376", "text": "protected function viewsData() {\n $data = parent::viewsData();\n $data['views_test_data']['uid'] = [\n 'title' => 'UID',\n 'help' => 'The test data UID',\n 'relationship' => [\n 'id' => 'standard',\n 'base' => 'users_field_data',\n 'base field' => 'uid',\n ],\n ];\n\n // Create a dummy field with no help text.\n $data['views_test_data']['no_help'] = $data['views_test_data']['name'];\n $data['views_test_data']['no_help']['field']['title'] = 'No help';\n $data['views_test_data']['no_help']['field']['real field'] = 'name';\n unset($data['views_test_data']['no_help']['help']);\n\n return $data;\n }", "title": "" }, { "docid": "168c5f9255f637a3a6ef89cd3e1621d9", "score": "0.59397584", "text": "public static function getMockData() {\n\n return [\n 'page' => 'http://redumbrella.com.ua',\n 'ip' => \"\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255),\n 'open' => time(),\n 'location' => [],\n 'close' => time() + mt_rand(0, 1000),\n 'language' => array_rand(['RU', 'UA', 'DE', 'US'], 1)[0],\n 'ua' => 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0'\n ];\n }", "title": "" }, { "docid": "8d947602770444d8722c6fe84c646538", "score": "0.59257996", "text": "public function objectIdentifierExposureTestData() {}", "title": "" }, { "docid": "3d89b0b117ebe3355f524eddfb2d34c9", "score": "0.5900934", "text": "public function testGetData()\n {\n $this->getWeather->setUrl();\n $result = $this->getWeather->getData();\n\n $this->assertIsArray($result);\n }", "title": "" }, { "docid": "0a5bbcded43fa0c98d15f6cab1e8c96d", "score": "0.58979034", "text": "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "title": "" }, { "docid": "3109beb7b9d4df04a02735693bec8d78", "score": "0.5896209", "text": "public function provideTestData()\n {\n return [\n // variant 1\n ['1016', true],\n ['26260', true],\n ['242243', true],\n ['242248', true],\n ['18002113', true],\n ['1821200043', true],\n ['1011', false],\n ['26265', false],\n ['18002118', false],\n ['6160000024', false],\n\n // variant 2\n ['1015', true],\n ['26263', true],\n ['242241', true],\n ['18002116', true],\n ['1821200047', true],\n ['3456789012', true],\n ['242249', false],\n ['1234567890', false],\n ];\n }", "title": "" }, { "docid": "76362fdaf4868db3c141b73983632adb", "score": "0.5848048", "text": "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "title": "" }, { "docid": "8c8437ea4eda5d8d875838567a2fcc52", "score": "0.58383405", "text": "public function providerTestAccess() {\n $data = [];\n $data[] = [TRUE, TRUE, AccessResult::allowed()];\n $data[] = [FALSE, TRUE, AccessResult::neutral()];\n $data[] = [TRUE, FALSE, AccessResult::neutral()];\n $data[] = [FALSE, FALSE, AccessResult::neutral()];\n\n return $data;\n }", "title": "" }, { "docid": "c2ed8454315e5c2709d6ebebeb4c8e1c", "score": "0.5835122", "text": "public function getTestData()\n {\n yield [false, false, '-5 days', '+5 days', true];\n // changing before last dockdown period is not allowed with grace permission\n yield [false, true, '-5 days', '+5 days', true];\n // changing before last dockdown period is allowed with full permission\n yield [true, true, '-5 days', '+5 days', false];\n yield [true, false, '-5 days', '+5 days', false];\n // changing a value in the last lockdown period is allowed during grace period\n yield [false, false, '+5 days', '+5 days', false];\n // changing outside grace period is not allowed\n yield [false, false, '+5 days', '+11 days', true];\n // changing outside grace period is allowed with grace and full permission\n yield [false, true, '+5 days', '+11 days', false];\n yield [true, false, '+5 days', '+11 days', false];\n yield [true, true, '+5 days', '+11 days', false];\n }", "title": "" }, { "docid": "dae08f2b004c925b4995c610768173a9", "score": "0.58033526", "text": "public function conversionTestingDataProvider() {}", "title": "" }, { "docid": "593ba875c98b2d18b68468788b04c192", "score": "0.5800705", "text": "public function dataProvider()\n {\n $mockTaxableBuilder = $this->getMockBuilder('CommerceGuys\\Tax\\TaxableInterface');\n $physicalTaxable = $mockTaxableBuilder->getMock();\n $physicalTaxable->expects($this->any())\n ->method('isPhysical')\n ->will($this->returnValue(true));\n $digitalTaxable = $mockTaxableBuilder->getMock();\n\n $mockAddressBuilder = $this->getMockBuilder('CommerceGuys\\Addressing\\Address');\n $serbianAddress = $mockAddressBuilder->getMock();\n $serbianAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('RS'));\n $frenchAddress = $mockAddressBuilder->getMock();\n $frenchAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('FR'));\n $germanAddress = $mockAddressBuilder->getMock();\n $germanAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('DE'));\n $usAddress = $mockAddressBuilder->getMock();\n $usAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('US'));\n\n $date1 = new \\DateTime('2014-02-24');\n $date2 = new \\DateTime('2015-02-24');\n $notApplicable = EuTaxTypeResolver::NO_APPLICABLE_TAX_TYPE;\n\n return [\n // German customer, French store, VAT number provided.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress, '123'), 'eu_ic_vat'],\n // French customer, French store, VAT number provided.\n [$physicalTaxable, $this->getContext($frenchAddress, $frenchAddress, '123'), 'fr_vat'],\n // German customer, French store, physical product.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress), 'fr_vat'],\n // German customer, French store registered for German VAT, physical product.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress, '', ['DE']), 'de_vat'],\n // German customer, French store, digital product before Jan 1st 2015.\n [$digitalTaxable, $this->getContext($germanAddress, $frenchAddress, '', [], $date1), 'fr_vat'],\n // German customer, French store, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $frenchAddress, '', [], $date2), 'de_vat'],\n // German customer, US store, digital product\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '', [], $date2), []],\n // German customer, US store registered in FR, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '', ['FR'], $date2), 'de_vat'],\n // German customer with VAT number, US store registered in FR, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '123', ['FR'], $date2), $notApplicable],\n // Serbian customer, French store, physical product.\n [$physicalTaxable, $this->getContext($serbianAddress, $frenchAddress), []],\n // French customer, Serbian store, physical product.\n [$physicalTaxable, $this->getContext($frenchAddress, $serbianAddress), []],\n ];\n }", "title": "" }, { "docid": "e6a3cc53f2a48957fd9e011c15cf91c2", "score": "0.578168", "text": "public function testGetData()\n {\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\FaqCategoryController@getData');\n $this->assertResponseStatus(200, $response->status());\n $this->assertInstanceOf('Illuminate\\Http\\JsonResponse', $response);\n\n $actual = $response->getContent();\n $responseJsonData = json_decode($actual, true);\n\n $this->assertArrayHasKey('draw', $responseJsonData);\n $this->assertArrayHasKey('recordsTotal', $responseJsonData);\n $this->assertArrayHasKey('recordsFiltered', $responseJsonData);\n $this->assertArrayHasKey('data', $responseJsonData);\n $this->assertArrayHasKey('input', $responseJsonData);\n if (!empty($responseJsonData['data'])) {\n $keys = ['id', 'name', 'position', 'status', 'created_by', 'action'];\n\n foreach ($keys as $key) {\n $this->assertArrayHasKey($key, $responseJsonData['data'][0]);\n }\n }\n }", "title": "" }, { "docid": "3849c9503fcf5652e4f63e718fe93b71", "score": "0.5781517", "text": "public function testIndexData(){\n $allPrice = PriceModel::all();\n\n /*\n * Testing by comaparing the Model data\n * */\n $this->visit(\"admin/price\")->assertEquals($allPrice,$allPrice);\n }", "title": "" }, { "docid": "69f1247aed793be189b5bc8594565323", "score": "0.57658726", "text": "protected function provided_sample_data() {\n return array('course', 'context');\n }", "title": "" }, { "docid": "6ad444b8e8a466ce8e68435938b6e786", "score": "0.5743552", "text": "function _getCoverageData() {\n\t\t$coverageData = array();\n\t\t$dump = xdebug_get_code_coverage();\n\n\t\tif ($this->groupTest) {\n\t\t\t$testObjectFile = $this->__testObjectFilesFromGroupFile($this->testCaseFile, $this->appTest);\n\t\t\tforeach ($testObjectFile as $file) {\n\t\t\t\tif (!file_exists($file)) {\n\t\t\t\t\ttrigger_error(sprintf(__('This test object file is invalid: %s', true), $file));\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach ($testObjectFile as $file) {\n\t\t\t\tif (isset($dump[$file])) {\n\t\t\t\t\t$coverageData[$file] = $dump[$file];\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$testObjectFile = $this->__testObjectFileFromCaseFile($this->testCaseFile, $this->appTest);\n\n\t\t\tif (!file_exists($testObjectFile)) {\n\t\t\t\ttrigger_error(sprintf(__('This test object file is invalid: %s', true), $testObjectFile));\n\t\t\t\treturn ;\n\t\t\t}\n\n\t\t\tif (isset($dump[$testObjectFile])) {\n\t\t\t\t$coverageData = $dump[$testObjectFile];\n\t\t\t}\n\t\t}\n\t\treturn array($coverageData, $testObjectFile);\n\t}", "title": "" }, { "docid": "5cc0c978f673f92a8bf2b252f471d6fe", "score": "0.5741515", "text": "public static function getExampleResponseDataStore()\n {\n return array (\n 'id' => 1,\n 'name' => 'Tester Tesrov',\n 'email' => '[email protected]',\n 'email_verified_at' => '',\n 'role' => '0',\n 'api_token' => '733260741c131187810bc1a0a6446628653f9e5c4cc9f17402d6131b619cc5fb',\n 'created_at' => '2019-09-14 23:36:27',\n 'updated_at' => '2019-09-15 00:04:14',\n 'deleted_at' => '',\n );\n }", "title": "" }, { "docid": "33672f937a94a203d894be8f90518ff3", "score": "0.57218504", "text": "protected static function getDataFixtures()\n {\n return array(\n new LoadTestUser(),\n new LoadSuperUser(),\n );\n }", "title": "" }, { "docid": "edf57e5645da345634efa15c9d77fd20", "score": "0.57160074", "text": "protected static function getData()\n {\n }", "title": "" }, { "docid": "d0cd6b5253b26d927ec838d5a723c185", "score": "0.5713766", "text": "private function mockedData()\n {\n $evens = [\n [3,9,10,6,7,8,1,5,2,4],\n [5,5,5,5],\n [4,5,5,3],\n [8,3,1,9,0,4]\n ];\n\n $odds = [\n [9,5,6],\n [0,5,7,8,4],\n [6,3,1,0,8,4,9]\n ];\n\n $invalids = [\n [],\n ['abcd_something_happenned'],\n ['a',5,'c',8],\n ['*','$','€'],\n [3,9,10,6,7,8,1,5,2,'*'],\n ];\n\n return (array) [\n 'evens' => $evens,\n 'odds' => $odds,\n 'invalids' => $invalids\n ];\n }", "title": "" }, { "docid": "98362f749c54f9943a02c9a33288953c", "score": "0.57136613", "text": "public function setGetTest()\n {\n $this->_model->setData('test=foo&foo[bar1]=test1&foo[bar2]=test2');\n $this->_model->setType('creditcard');\n $this->_model->setAction(Checksum::ACTION_TRANSACTION);\n $this->_model->setChecksum('foo-checksum');\n $this->_model->setAppId('app_123');\n $this->_model->setId('chk_123');\n $this->_model->setCreatedAt(23423142314);\n $this->_model->setUpdatedAt(23423142314);\n\n $this->assertEquals($this->_model->getData(), 'test=foo&foo[bar1]=test1&foo[bar2]=test2');\n $this->assertEquals($this->_model->getDataAsArray(), array(\n 'test' => 'foo',\n 'foo' => array(\n 'bar1' => 'test1',\n 'bar2' => 'test2'\n )\n ));\n $this->assertEquals($this->_model->getType(), 'creditcard');\n $this->assertEquals($this->_model->getAction(), Checksum::ACTION_TRANSACTION);\n $this->assertEquals($this->_model->getChecksum(), 'foo-checksum');\n $this->assertEquals($this->_model->getAppId(), 'app_123');\n $this->assertEquals($this->_model->getId(), 'chk_123');\n $this->assertEquals($this->_model->getCreatedAt(), 23423142314);\n $this->assertEquals($this->_model->getUpdatedAt(), 23423142314);\n }", "title": "" }, { "docid": "8e9ed7e189a91fca3bedd91f28c30d6c", "score": "0.56976587", "text": "public function stringsTestDataProvider() {}", "title": "" }, { "docid": "7206e833b18f2f71d4f198a468859176", "score": "0.5669478", "text": "public function testListServiceDatas()\n {\n\n }", "title": "" }, { "docid": "ced8d3ae022a80eddc014597fc9bc275", "score": "0.5663943", "text": "protected function getData() { }", "title": "" }, { "docid": "bc1aea0667a414d4c7c22c9c955dacab", "score": "0.566074", "text": "public function test_data() {\n\t\t$omnikassa = new Client();\n\n\t\t$omnikassa->set_amount( 55 );\n\t\t$omnikassa->set_currency_numeric_code( 978 );\n\t\t$omnikassa->set_merchant_id( '011223744550001' );\n\t\t$omnikassa->set_normal_return_url( 'http://www.normalreturnurl.nl' );\n\t\t$omnikassa->set_automatic_response_url( 'http://www.automaticresponseurl.nl' );\n\t\t$omnikassa->set_transaction_reference( '534654' );\n\t\t$omnikassa->set_order_id( '201208345' );\n\t\t$omnikassa->set_key_version( 1 );\n\n\t\t$string = 'amount=55|currencyCode=978|merchantId=011223744550001|normalReturnUrl=http://www.normalreturnurl.nl|automaticResponseUrl=http://www.automaticresponseurl.nl|transactionReference=534654|orderId=201208345|keyVersion=1';\n\n\t\t$expected = Client::parse_piped_string( $string );\n\n\t\t$actual = $omnikassa->get_data_array();\n\n\t\t$this->assertEquals( $expected, $actual );\n\t}", "title": "" }, { "docid": "6e90c7bbf50b2cf80de13dbf9a1786cb", "score": "0.5656414", "text": "public function dataProviderTestGenerate()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 4,\n 'format' => [\n [-1, 2],\n [-1, -1],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "dd5c3db412437ffa14ac357a8458297b", "score": "0.5622829", "text": "public function testPropertyApiKeyDataProvider()\n {\n $testData = [];\n\n $testModelKeys = ['apiKey', 'api_key', 'apikey','key','consumerKey','consumer_key','AGAVE_CLIENT_KEY',];\n\n foreach ($testModelKeys as $testModelKey) {\n $testData[] = [$testModelKey, self::DEFAULT_CLIENT_KEY_VALUE. $testModelKey];\n }\n\n return $testData;\n }", "title": "" }, { "docid": "12a865806fd6f32be282a59b88748319", "score": "0.56201994", "text": "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "title": "" }, { "docid": "0daa2338717ce9113fc88dd2d47f7bc6", "score": "0.56164134", "text": "public function addModulePositionTestsDataProvider() {}", "title": "" }, { "docid": "5f3f7010873c9066e0a7e7470a05edd5", "score": "0.56161684", "text": "public function testCanBeCreatedFromGetData(): void\n {\n $this->assertEquals(\n 'C:\\Documents\\Word\\Work\\Current\\1\\2\\3<br>',\n (new Read)->getData('current')\n );\n $this->assertIsString((new Read)->getData('current'));\n\n $this->assertEquals(\n 'C:\\Documents\\Software Engineer\\Projects\\AnnualReport.xls<br>',\n (new Read)->getData('software engineer')\n );\n $this->assertIsString((new Read)->getData('software engineer'));\n\n $this->assertEquals(\n 'C:\\Documents\\Salary\\Accounting\\Accounting.xls<br>',\n (new Read)->getData('accounting')\n );\n $this->assertIsString((new Read)->getData('accounting'));\n }", "title": "" }, { "docid": "f8f98e0da2614f20deef3fd8c8c521f4", "score": "0.5614781", "text": "public function providerTestConstructor() {\n return [\n ['test1234', 'test1234', 'sites/simpletest/1234'],\n ['test123456test234567', 'test123456test234567', 'sites/simpletest/234567'],\n ];\n }", "title": "" }, { "docid": "ef367c7e925649b46ce927af521d3f85", "score": "0.5608988", "text": "public function testDataResponse()\n {\n $driverPassesEndpoint = new DriverPassesEndpoint(getenv('MRP_API_KEY'));\n $data = $driverPassesEndpoint->setClassId(1000)\n ->setScheduleId(5508)\n ->setDataOrder('nameAsc')\n ->setDriverId(1023)\n ->setEndDate('8/21/2016')\n ->setStartDate('8/21/2015')\n ->getRequest();\n\n $this->assertNotEmpty($data);\n $this->assertTrue(is_object($data));\n $this->assertEquals(1, $data->RequestValid);\n }", "title": "" }, { "docid": "fe1d3d97f18190af612fc879c0f9abd9", "score": "0.5604738", "text": "public function _getDefaultModelTestData()\n {\n /** @var integer $ts */\n $ts = strtotime('now');\n\n return [\n 'apiKey' => self::DEFAULT_CLIENT_KEY_VALUE,\n 'apiSecret' => self::DEFAULT_CLIENT_SECRET_VALUE,\n 'clientName' => self::DEFAULT_CLIENT_NAME_VALUE,\n 'expiresIn' => self::DEFAULT_TOKEN_EXPIRES_IN_VALUE,\n 'expiresAt' => date('Y-m-d H:i:s', $ts + self::DEFAULT_TOKEN_EXPIRES_IN_VALUE),\n 'createdAt' => date('Y-m-d H:i:s', $ts),\n 'accessToken' => self::DEFAULT_TOKEN_ACCESS_TOKEN_VALUE,\n 'refreshToken' => self::DEFAULT_TOKEN_REFRESH_TOKEN_VALUE,\n 'username' => self::DEFAULT_USERNAME_VALUE,\n \"tenantId\" => self::DEFAULT_TENANT_ID_VALUE,\n \"baseUrl\" => self::DEFAULT_BASE_URL_VALUE,\n \"devUrl\" => self::DEFAULT_DEV_URL_VALUE,\n ];\n }", "title": "" }, { "docid": "41208796edc8a809ef6ce953aa182f72", "score": "0.560369", "text": "public function testDataResponse()\n {\n $driversEndpoint = new DriverClassesEndpoint(getenv('MRP_API_KEY'));\n $data = $driversEndpoint->setDriverCount(1)\n ->setOrder('name')\n ->setIncludeStats('true')\n ->setScheduleYear(2016)\n ->setFeaturedOnly('true')\n ->setForcePic('false')\n ->setIncludeDrivers('true')\n ->getRequest();\n\n $this->assertNotEmpty($data);\n $this->assertTrue(is_object($data));\n $this->assertEquals(1, $data->RequestValid);\n }", "title": "" }, { "docid": "13761a8ad16e5003229f09f4352eec4d", "score": "0.5600854", "text": "public function correctDataProvider(): array\n {\n return [\n 'default values' => $this->prepareDefaultValuesTestData(),\n 'overridden_values' => $this->prepareOverriddenValuesTestData(),\n 'multi_results' => $this->prepareMultiResultTestData(),\n ];\n }", "title": "" }, { "docid": "56078485f71f4e04bd99cd38a01ef65e", "score": "0.56005853", "text": "public function testAllData()\n {\n Runner::truncate();\n Runner::factory()->count(15)->create();\n\n $headers['Accept'] = 'application/json';\n\n $response = $this->get('/api/v1/runner/1/form-data', $headers);\n\n $response->assertStatus(200)->assertJsonStructure(['success', 'data', 'status']);\n }", "title": "" }, { "docid": "8183bf77d075e65d497d15b9a490d536", "score": "0.55969507", "text": "public function testGetData() {\r\n $action = $this->_action;\r\n $this->assertEquals(null, $action->getData());\r\n\r\n $action->setData(array());\r\n $this->assertEquals(array(), $action->getData());\r\n }", "title": "" }, { "docid": "92bc066cb4c4323812da07161a57fd3c", "score": "0.559218", "text": "public function getTests()\n {\n return array();\n }", "title": "" }, { "docid": "92bc066cb4c4323812da07161a57fd3c", "score": "0.559218", "text": "public function getTests()\n {\n return array();\n }", "title": "" }, { "docid": "97836ca620de8e9e95e03c5e27e2ed52", "score": "0.55865765", "text": "public function test_get_row() {\n }", "title": "" }, { "docid": "ed1171e4ebba8962bbded39ab48718c0", "score": "0.5580854", "text": "public function testGetters(): void\n {\n $user = new User(['id' => 'external-user-id']);\n $ewallet = new Ewallet([]);\n $contract = new Contract([\n 'action' => 'debit',\n 'currency' => 'AUD',\n 'ewallet' => $ewallet,\n 'group' => 'mastercard',\n 'fixed_fee' => '0.02',\n 'type' => 'contract',\n 'user' => $user,\n 'variable_rate' => '0.10',\n ]);\n\n self::assertSame('debit', $contract->getAction());\n self::assertSame('mastercard', $contract->getGroup());\n self::assertSame('AUD', $contract->getCurrency());\n self::assertSame($ewallet, $contract->getEwallet());\n self::assertSame('0.02', $contract->getFixedFee());\n self::assertSame('0.10', $contract->getVariableRate());\n self::assertSame($user, $contract->getUser());\n }", "title": "" }, { "docid": "bd9d657f14d5595e19cd3effc12d30aa", "score": "0.55769706", "text": "public function testConstruct()\n {\n $this->assertAttributeSame($this->clientMock, 'client', $this->indexer);\n $this->assertAttributeSame('test_index', 'indexName', $this->indexer);\n $this->assertAttributeSame($this->eventDispatcherMock, 'eventDispatcher', $this->indexer);\n }", "title": "" }, { "docid": "391019866abbc6f028f6e7f1901a9c79", "score": "0.5572317", "text": "public function testPropertyAccessTokenDataProvider()\n {\n $testData = [];\n\n $testModelKeys = ['accessToken', 'access_token','AGAVE_ACCESS_TOKEN', ];\n\n foreach ($testModelKeys as $testModelKey) {\n $testData[] = [$testModelKey, self::DEFAULT_TOKEN_ACCESS_TOKEN_VALUE . $testModelKey];\n $testData[] = [$testModelKey, null];\n }\n\n return $testData;\n }", "title": "" }, { "docid": "0b8cb68e7071bd6b27b8b3e0955aa0ca", "score": "0.55514807", "text": "protected function setUp()\n {\n $this->getData();\n $this->getDefaultValue();\n\n parent::setUp(); // TODO: Change the autogenerated stub\n }", "title": "" }, { "docid": "277378745fae3b413224ac4ffe4d4630", "score": "0.55324334", "text": "public function testGetPluginDataDefaults()\n {\n /** Input */\n $runtime_data = new stdClass();\n $plugin_data = new stdClass();\n\n $row = new stdClass();\n $field_c = new stdClass();\n $field_c->field_a = 'a';\n $field_c->field_b = 'b';\n $field_c->field_c = 'c';\n $row->field_c = $field_c;\n $query_results = array();\n $query_results[] = $row;\n\n $model_registry = new stdClass();\n $model_registry->field_a = 'a1';\n $model_registry->field_b = 'b1';\n $model_registry->field_c = 'c1';\n\n $plugin_data->collection = new stdClass();\n $plugin_data->collection->data = $query_results;\n $plugin_data->collection->model_registry = $model_registry;\n $plugin_data->collection->parameters = new stdClass();\n $plugin_data->collection->parameters->a = 'a';\n\n $plugin_data->render = new stdClass();\n $plugin_data->render->extension = new stdClass();\n $plugin_data->render->extension->parameters = new stdClass();\n\n $options = array();\n $options['query_results'] = $query_results;\n $options['runtime_data'] = $runtime_data;\n $options['plugin_data'] = $plugin_data;\n\n $token = new stdClass();\n $token->name = 'collection';\n $token->attributes = array();\n\n /** Get Data */\n $data = $this->data_resource->getData($token, $options);\n\n /** Results */\n $this->assertEquals($data->parameters->model_type, 'plugin_data');\n $this->assertEquals($data->parameters->model_name, 'collection');\n $this->assertEquals($data->query_results[0]->field_c, $field_c);\n $this->assertEquals($data->model_registry, $model_registry);\n $this->assertEquals($data->parameters->token, $token);\n\n return $this;\n }", "title": "" }, { "docid": "96e862ae91f282ff55f7bb0c3f7a2540", "score": "0.5527779", "text": "public function getValueTestDataProvider() {\n $t = 1400000000;\n $f = 'Y-m-d H:i:s';\n return [\n 'timestamp' => [$t, $t],\n 'string timestamp' => [\"$t\", $t],\n 'float timestamp' => [$t + 0.12, $t],\n 'date string' => [gmdate($f, $t), $t],\n 'date string with timezone' => [date($f . 'P', $t), $t],\n ];\n }", "title": "" }, { "docid": "c72148bc407d7053998eaf710a8e05ad", "score": "0.5523233", "text": "public function testGetUserrecordings()\n {\n }", "title": "" }, { "docid": "d0643a6785e7db1ad623645d86ec6c3b", "score": "0.5521071", "text": "protected function _initTest(){\n }", "title": "" }, { "docid": "bf837b6d922fefc5e9b1dd506887ca00", "score": "0.5519152", "text": "function testGetDataArray()\r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t$cust = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\t\t$cust->setValue(\"first_name\", \"UnitTest-testGetDataArray\");\r\n\t\t$grp = $cust->addGroupingEntry(\"groups\", \"Unit Test Group\", \"e3e3e3\");\r\n\t\t$cust->setMValue(\"groups\", $grp['id']);\r\n\r\n\t\t$cust->debug = true;\r\n\t\t$data = $cust->getDataArray();\r\n\r\n\t\t$this->assertEquals($data['first_name'], \"UnitTest-testGetDataArray\");\r\n\t\t$this->assertEquals($data['groups_fval'][$grp['id']], \"Unit Test Group\");\r\n\r\n\t\t// Test delete\r\n\t\t$ret = $cust->deleteGroupingEntry(\"groups\", $grp['id']);\r\n\t\t$this->assertTrue($ret);\r\n\t}", "title": "" }, { "docid": "e9372d1fcd6486dec0ad7cecc8b24b4d", "score": "0.55062956", "text": "public function testGetCustom()\n {\n $response = $this->call('GET', '/graphql/custom', [\n 'query' => $this->queries['examplesCustom']\n ]);\n\n $content = $response->getData(true);\n $this->assertArrayHasKey('data', $content);\n $this->assertEquals($content['data'], [\n 'examplesCustom' => $this->data\n ]);\n }", "title": "" }, { "docid": "363bb402d214f044272dfe6165ff7c32", "score": "0.5504056", "text": "public function testSetters()\n {\n foreach ($this->expectedSetters as $method => $parameter) {\n $this->entity->$method($parameter);\n }\n\n $actualResult = $this->entity->toArray();\n\n $this->assertArraysAreSimilar($this->testData, $actualResult, 'toArray');\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.55023503", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.55023503", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.55023503", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.55013096", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "1e64e1270dba351ceb178a0f27cd0235", "score": "0.54924756", "text": "public function testSampleData()\n {\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n $types = [\n 'boolean' => 'false',\n 'integer' => self::INT_NUMBER,\n 'double' => self::INT_NUMBER,\n 'int' => self::INT_NUMBER,\n 'tinyint' => self::TINY_INT_NUMBER,\n 'string' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'text' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'varchar' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'character varying' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'tinytext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'char' => \"'f'\",\n 'timestamp' => 'NOW()',\n 'timestamp with time zone' => 'NOW()',\n 'null' => null,\n 'longtext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'randomness' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\"\n ];\n\n // Assert\n foreach ($types as $type => $val) {\n // Execute\n $result = $this->testObject->sampleData($type);\n\n $this->assertEquals($val, $result);\n }\n }", "title": "" }, { "docid": "393f0cfc05a30a5962799453bceae4c0", "score": "0.54911995", "text": "public function testGetUserrecordingsSummary()\n {\n }", "title": "" }, { "docid": "dbb876c37c74461143c433b2a37b189d", "score": "0.5490362", "text": "public function testGettersAndSetters()\n {\n $array = $this->getDummyHmacData();\n\n $this->entity->setData($array['data']);\n $this->entity->setKey($array['key']);\n $this->entity->setTime($array['time']);\n $this->entity->setHmac($array['hmac']);\n\n $this->assertTrue($array['data'] === $this->entity->getData());\n $this->assertTrue($array['key'] === $this->entity->getKey());\n $this->assertTrue($array['time'] === $this->entity->getTime());\n $this->assertTrue($array['hmac'] === $this->entity->getHmac());\n }", "title": "" }, { "docid": "f01f6a3628a63b9ff5b962e2d00a403d", "score": "0.5488771", "text": "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "3c675319ae41fa4748d79382287c3770", "score": "0.5486451", "text": "public function testGetStoreDetails()\n {\n\n }", "title": "" }, { "docid": "9f066c6e3912db9eba57e542b366c4e5", "score": "0.54801667", "text": "abstract public function testConstructorAndProperties(): void;", "title": "" }, { "docid": "c3257c6f3aef148e5d3043d50bcd3f62", "score": "0.5467755", "text": "private function setMockDataConfig() {\n\n }", "title": "" }, { "docid": "b7be82957de47e16443f89b399ef86ac", "score": "0.5465891", "text": "public function DataForTestNonScalarsProvider()\n {\n $tests = array();\n $tests[] = array(array('do' => 're'));\n $tests[] = array((object) array('do' => 're'));\n\n return $tests;\n }", "title": "" }, { "docid": "0fdce6dbbb7d7c7a2d3c254e162025d5", "score": "0.5462349", "text": "public function testGets()\n {\n $date = new \\DateTime();\n \n $actual = new DataPoint('uniqueId', 'an offense', $date, 'Gotham', ['lat' => 0, 'lon' => 0], 'FELONY', '1');\n \n $this->assertEquals('uniqueId', $actual->getId());\n $this->assertEquals('an offense', $actual->getOffense());\n $this->assertEquals('FELONY', $actual->getCategory());\n $this->assertEquals('1', $actual->getClass());\n $this->assertEquals($date->format('Y-m-d H:i:s'), $actual->getOccured());\n $this->assertEquals('Gotham', $actual->getCity());\n $this->assertEquals(['lat' => 0, 'lon' => 0], $actual->getLocation());\n }", "title": "" }, { "docid": "873ae9908480fcea29ab9caaa23d7f30", "score": "0.54606915", "text": "public function testGettersSetters()\n {\n $this->assertEquals('my category', $this->question->getCategory());\n $this->assertEquals('my question', $this->question->getQuestion());\n\n $this->assertEquals($this->answers, $this->question->getAnswers());\n\n $this->assertEquals(\n ['my first answer', 'my second answer', 'my third answer', 'my fourth answer'],\n $this->question->getAnswersLabels(),\n 'Question should return all available answers labels'\n );\n $this->assertEquals(\n ['my first answer', 'my second answer'],\n $this->question->getCorrectAnswersValues(),\n 'Question should return all correct answers values'\n );\n }", "title": "" }, { "docid": "eebcd827720b72ea0cc00353bb492096", "score": "0.54576236", "text": "abstract protected function constructTestHelper();", "title": "" }, { "docid": "c4ef870131d9231160892612ab66516e", "score": "0.54555565", "text": "public function get_data()\n\t\t{\t\t// Should there be a common method for this?\n\t\t}", "title": "" }, { "docid": "f1ba454f2cd5383225e2090e0e5ecc52", "score": "0.545236", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "1f2b7cf61d0b94ac2f9eebf43ae7e457", "score": "0.54517764", "text": "public function setUp()\n {\n $this->data = array(\n 'folder_name_1' => array(\n 'src' => 'source_1',\n 'dst' => 'destination_1',\n ),\n 'folder_name_2' => array(\n 'src' => 'source_2',\n 'dst' => 'destination_2',\n 'client' => 'test'\n )\n );\n }", "title": "" }, { "docid": "12e482bf568ac9d21b1853372ed03d4e", "score": "0.54458326", "text": "public function constructDataProvider()\n {\n return [\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n 'error_handler.config' => [\n 'type' => 'email',\n 'to' => '[email protected]',\n ],\n ],\n null,\n null,\n ],\n [\n [\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'Mandatory application config parameter missing: app_base_path',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'routing' => new \\stdClass(),\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'The \"routing\" service must implement the RouterInterface',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'templating' => new \\stdClass(),\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'The \"templating\" service must implement the TemplatingInterface',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'security.checker' => new \\stdClass(),\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'The \"security.checker\" service must implement the SecurityCheckerInterface',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'orm.config' => [\n 'type' => 'mfw',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n ],\n '\\\\RuntimeException',\n 'The \"security.config\" application parameter is missing.',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'orm.config' => [\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'The \"orm.config.type\" must be set.',\n ],\n [\n [\n 'app_base_path' => __DIR__ . '/test_app',\n 'orm.config' => [\n 'type' => 'something-unknown',\n 'host' => 'db',\n 'database' => 'mfw',\n 'username' => 'mfw',\n 'password' => 'mfw',\n 'mapping' => [\n 'test' => 'Smatyas\\\\Mfw\\\\Tests\\\\Orm\\\\TestEntity',\n ],\n ],\n 'security.config' => [],\n ],\n '\\\\RuntimeException',\n 'Unknown orm type: something-unknown',\n ],\n ];\n }", "title": "" }, { "docid": "52cc1b641f558a0b15b7fdd852d19e12", "score": "0.5442251", "text": "protected function setUp()\n {\n global $testCase;\n $testCase = 'table_for_test';\n\n $this->container = include './config/container.php';\n $this->store = $this->container->get(StoreFactory::KEY);\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.5439654", "text": "public function getData()\n {\n }", "title": "" } ]
d2a67e1bc8e2195a52cc3c6304cbbf7d
Inserts new password reset into DB.
[ { "docid": "dc7e416519b1e397dbf9d01f874c9167", "score": "0.5416712", "text": "public function savePasswordReset(array $data)\n {\n if (empty($data)\n || empty($data['user_id'])\n || empty($data['token'])\n || empty($data['expires_at'])\n || !isset($data['used'])\n ) {\n return false;\n }\n\n try {\n return $this->table->insert([\n 'user_id' => $data['user_id'],\n 'token' => $data['token'],\n 'expires_at' => $data['expires_at'],\n 'used' => $data['used']\n ]);\n } catch (\\Exception $e) {\n $this->logService->addError(__CLASS__, [$e]);\n return false;\n }\n }", "title": "" } ]
[ { "docid": "7749883339202f4b85f85d8224434416", "score": "0.6333331", "text": "public function insert()\n {\n $query = 'INSERT INTO users (email, password, role, updated) VALUES (:email, :password, :role, NOW())';\n $rowCount = $this->db->insert($query, [\n ':email' => $this->getEmail(),\n ':password' => $this->getPassword(),\n ':role' => $this->getRole()\n ]);\n }", "title": "" }, { "docid": "d2cc6ed31cbe8e61bd1469327a3ca669", "score": "0.62705106", "text": "public function add(ResetPasswordToken $token): void\n {\n $this->insert(self::SQL_TABLE, [\n 'user_id' => $token->getUser()->getId(),\n 'selector' => $token->getSelector(),\n 'hashed_token' => $token->getHashedToken(),\n 'requested_at' => $token->getRequestedAt()->format('Y-m-d H:i:s'),\n 'expired_at' => $token->getExpiredAt()->format('Y-m-d H:i:s'),\n ]);\n }", "title": "" }, { "docid": "364ccf7aa35d5d6ab9c477034d15d517", "score": "0.5977875", "text": "public function insert() {\r\n $this->pw = md5($this->pw);\r\n return DB::insertQuery(self::TABLE_NAME, $this->toArray());\r\n }", "title": "" }, { "docid": "4806e636f10d75fce33de4c8b0e87b9e", "score": "0.5957979", "text": "protected function startPasswordReset()\n {\n $token = new Token();\n $hashed_token = $token->getHash();\n $this->password_reset_token = $token->getToken();\n\n $expiry_timestamp = time() + 60 * 60 * 24; // 1 day\n $format = date('Y-m-d H:i:s', $expiry_timestamp);\n\n\n $sql = 'UPDATE USERACC\n SET UA_PASSWORD_RESET_HASH = :token_hash,\n UA_PASSWORD_RESET_EXPIRY = :expires_at\n WHERE UA_USER_ID = :id';\n\n $db = static::getDB();\n\n $stmt = $db->prepare($sql);\n\n $stmt->bindParam(':token_hash', $hashed_token, PDO::PARAM_STR);\n $stmt->bindParam(':expires_at', $format, PDO::PARAM_STR );\n $stmt->bindParam(':id', $this->UA_USER_ID, PDO::PARAM_INT);\n\n return $stmt->execute();\n }", "title": "" }, { "docid": "b19f368d65d2881739a5f3ccc1b05ef1", "score": "0.5923902", "text": "protected function insert()\n\t{\n\t\t$stmt = self::$dbc->prepare('INSERT INTO users (name, email, password) VALUES (:name, :email, :password)');\n\n\t\t$stmt->bindValue(':name', $this->attributes['name'], PDO::PARAM_STR);\n\t\t$stmt->bindValue(':email', $this->attributes['email'], PDO::PARAM_STR);\n\t\t$stmt->bindValue(':password', $this->attributes['password'], PDO::PARAM_STR);\n\n\t\t$stmt->execute();\n\t\t\n\t\t$this->id = self::$dbc->lastInsertId();\n\t}", "title": "" }, { "docid": "f536353d3b78f1c448b1b02d1c7d97fa", "score": "0.5884505", "text": "protected function startPasswordReset()\n {\n $token = new Token();\n $hashed_token = $token->getHash();\n $this->password_reset_token = $token->getValue();\n $expiry_timestamp = time() + 60 * 60 * 2; // 2 hours from now\n\n $sql = 'UPDATE users\n SET password_reset_hash = :token_hash,\n password_reset_expires_at = :expires_at\n WHERE id = :id';\n\n $db = static::getDB();\n $stmt = $db->prepare($sql);\n\n $stmt->bindValue(':token_hash', $hashed_token, PDO::PARAM_STR);\n $stmt->bindValue(':expires_at', date('Y-m-d H:i:s', $expiry_timestamp), PDO::PARAM_STR);\n $stmt->bindValue(':id', $this->id, PDO::PARAM_INT);\n\n return $stmt->execute();\n }", "title": "" }, { "docid": "f30a27cc714f9c4b7d5ebb32d00d5830", "score": "0.5839539", "text": "public function ensureOneTokenInDatabase(ResetPasswordToken $token): void\n {\n $this->deleteByUserId($token->getUser()->getId());\n $this->add($token);\n }", "title": "" }, { "docid": "a493d29c380e5da3eb0699028f98f3db", "score": "0.5824696", "text": "public static function insert_into_database($post)\n\t\t{\n\t\t\tglobal $database;\n\t\t\tdate_default_timezone_set(\"Europe/Amsterdam\");\n\t\t\t$datum = date('Y-m-d H:i:s');\n\t\t\t$wachtwoord = ($post['email'].date('Y-m-d H:i:s'));\n\t\t\t$query = \"INSERT INTO `user` ( `email`,\n\t\t\t\t\t\t\t\t\t\t `surname`,\n\t\t\t\t\t\t\t\t\t\t `prefix`,\n\t\t\t\t\t\t\t\t\t\t `lastname`, \n `address`,\n `zipcode`,\n `residence`,\n `activated`,\n `role`,\n `password`)\n\t\t\t\t\t VALUES\t\t\t ( '\".$post['email'].\"',\n\t\t\t\t\t\t\t\t\t\t '\".$post['surname'].\"',\n '\".$post['prefix'].\"',\n '\".$post['lastname'].\"',\n '\".$post['address'].\"',\n '\".$post['zipcode'].\"',\n '\".$post['residence'].\"',\n FALSE,\n 'customer',\n '\".$post['password'].\"')\";\n\t\t\t$database->fire_query($query);\n\t\t\t$last_id = mysqli_insert_id($database->getDb_connection());\n\t\t\t//self::send_email($email, $post, $password);\n\t\t\techo \"Uw gegevens zijn verwerkt.\";\n\t\t\t //header(\"refresh:3;url=index.php?content=algemeneHomepage\");\n\t\t}", "title": "" }, { "docid": "b3b713652ac3414c9ca1e2daec844a28", "score": "0.5790477", "text": "public function save() {\n $db = DB::make();\n $statement = $db->prepare(\n 'INSERT INTO users ' .\n ' (first_name, last_name, email, company_name, password)' .\n \"VALUES ((:first_name), (:last_name), (:email), (:company_name), (:password));\"\n );\n $statement->bindParam(\":first_name\", $this->first_name);\n $statement->bindParam(\":last_name\", $this->last_name);\n $statement->bindParam(\":email\", $this->email);\n $statement->bindParam(\":company_name\", $this->company_name);\n $statement->bindParam(\":password\", $this->password);\n $statement->execute();\n $db = null;\n }", "title": "" }, { "docid": "23ed116a3c9a30710983282074337e35", "score": "0.575895", "text": "public function StoreEmailToken($email, $token, $selector, $expires){\r\n\t$sql = \"INSERT INTO pass_reset (email,token,selector,expires) VALUES (?, ?, ?, ?)\";\r\n\tif($stmt = $this->conn->prepare($sql)){\r\n\t\ttry {\r\n\t\t\t$stmt->bind_param(\"ssss\", $param_email, $param_token, $param_selector, $param_expires);\r\n\t\t\t$param_email = $email;\r\n\t\t\t//encrypt token;\r\n\t\t\t$param_token= password_hash($token, PASSWORD_DEFAULT);\r\n\t\t\t$param_selector = $selector;\r\n\t\t\t$param_expires = $expires;\r\n\t\t} catch (\\Exception $e) {\r\n\t\t\techo $e->getMessage();\r\n\t\t}\r\n\t\t\tif($stmt->execute()){\r\n\t\t\t\treturn true; // token and email saved to the database\r\n\t\t\t} else{\r\n\t\t\t\treturn false; // did not save\r\n\t\t\t}\r\n\r\n}\r\n}", "title": "" }, { "docid": "4766ee53f727685110033f74ce309304", "score": "0.57563174", "text": "private function saveToDB() {\n\n $this->db = new Database();\n\n try {\n\n $this->db->createUser($this->username, $this->password);\n $message = 'Registered new user.';\n\n $this->session->setSessionVariable(self::$sessionUsername, $this->username);\n $this->session->setSessionVariable(self::$sessionMessage, $message);\n $this->session->regenerateId();\n\n $this->server->redirectToSelf();\n\n } catch (UserExistsException $e) {\n $this->addMessage('User exists, pick another username.');\n } catch(Exception $e) {\n $this->addMessage('There was a problem connecting to the database.');\n }\n\n }", "title": "" }, { "docid": "3a44c2c35e7b0bc2d7b9b537cf15709a", "score": "0.5743987", "text": "public function post_resetpassword()\n\t{\n $input = Input::all();\n\n $user = User::find(Auth::user()->userid);\n\n if (Hash::check($input['oldpassword'], $user->password) && $input['password'] == $input['repassword']) {\n $user->password = Hash::make($input['password']);\n $user->save();\n\n Log::write('User', 'Reset Password User '.$user->userprofile->icno);\n }\n }", "title": "" }, { "docid": "902a894d2633ed2c166192ff9632d0ac", "score": "0.5634332", "text": "function passwordReset()\r\n\t{\r\n\t\t$this->tablename = passwordReset::tablename;\r\n\t}", "title": "" }, { "docid": "7962ac8d4a49cb5ca59c1d3b1a7efc33", "score": "0.56200135", "text": "function userpassword_post()\r\n\t{\r\n\t\t$password = $this->encrypt->encode($this->post('password'));\r\n\r\n\t\t// Build the array of values to send to the db\r\n\t\t$values = array('password' => $password);\r\n\r\n\t\t// Here we determine if we are inserting a new record ($id = NULL), or \r\n\t\t// if we are updating an existing record ($id != '');\r\n\t\t$id = ($this->post('id-hidden') != '') ? $this->post('id-hidden') : '';\r\n\r\n\t\t// Update the record\r\n\t\t$value = $this->Users->put($id, $values);\r\n\t\tif ($value)\r\n\t\t{\r\n\t\t\t$this->response($value, 200); \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->response($value, 404);\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "41456a465871bd936121d667ae725b7f", "score": "0.5615132", "text": "protected function insertInDB()\n\t{\n\t\t$backtrace = print_r(debug_backtrace(),true);\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t$date = date(\"Y-m-d H:i:s\");\n\t\tDataBaseManager::query('INSERT INTO error_logs (back_trace,ip) VALUES\n\t\t(\"'.$backtrace.'\",\"'.$ip.'\")');\n\t\t//TODO a new column that shows the error code\n\t}", "title": "" }, { "docid": "35f5fc6afd649739c38f151648ec1a07", "score": "0.5609908", "text": "public function commitToDB($userName,$password,$email)\n {\n $passwordHash = hash(\"md5\",$password);\n //echo $passwordHash;\n //$date = date(\"y-m-d\"); //gets todays date //replaced by NOW() -mysql function\n //echo $date;\n //inserts userName,pwHash,dateJoined and email into Users\n $this->database->update(\"INSERT INTO Users (userName, pwHash, dateJoined, email) VALUES (\\\"$userName\\\",\\\"$passwordHash\\\",NOW(),\\\"$email\\\");\");\n }", "title": "" }, { "docid": "3362583e83a1592dba2160d19893a012", "score": "0.5605846", "text": "protected function _postInsert()\n {\n \t$userTable = new \\User\\User();\n \t$wishlistTable = new \\Wishlist\\Wishlist();\n \t\n \t$userTable->updateInfo($this->user_id);\n \t$wishlistTable->updateInfo($this->id);\n }", "title": "" }, { "docid": "d93478bdbd8b965ee6cbebc99b3ea962", "score": "0.55808276", "text": "function insert() {\n\t\t$sql = \"INSERT INTO umuser (UsID, UsName, UsLogin, UsPassword, UsPsCode, UsWgID, UsQsID, UsAnswer, UsEmail, UsActive, UsAdmin, UsDesc, UsPwdExpDt, UsUpdDt, UsUpdUsID, UsSessionID,UsDpID)\n\t\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?)\";\n\t\t \n\t\t$this->ums->query($sql, array($this->UsID, $this->UsName, $this->UsLogin, $this->UsPassword, $this->UsPsCode, $this->UsWgID, $this->UsQsID, $this->UsAnswer, $this->UsEmail, $this->UsActive, $this->UsAdmin, $this->UsDesc, $this->UsPwdExpDt, $this->UsUpdDt, $this->UsUpdUsID, $this->UsSessionID, $this->UsDpID));\n\t\t$this->last_insert_id = $this->ums->insert_id();\n\t\t\n\t}", "title": "" }, { "docid": "cc459f3feb1a5e54d85ef7f15a9a6107", "score": "0.5513721", "text": "public function addAction()\n {\n $password = new Password();\n /*change to your favorite login_name and passord*/\n //$password->login_name = \"adminuser\";// should be [a-zA-Z0-9] ('min' => 4, 'max' => 20)\n //$password->password = \"adminpassword\";// should be [a-zA-Z0-9] ('min' => 8, 'max' => 16)\n $this->getPasswordTable()->savePassword( $password );\n }", "title": "" }, { "docid": "1e04137135f32cbeb6c264a17c50a41f", "score": "0.54951346", "text": "public function add_reset_password_token($token){\n\t\t\t\t# get email\n\t\t\t\t$email = $this->data['User']['email'];\n\t\t\t\t$this->updateAll(array('User.reset_password_token' => '\"'.$token.'\"'), array('User.email' => $email));\n\t\t\t}", "title": "" }, { "docid": "04e98b0bbad154699634a0a60a93e626", "score": "0.5494333", "text": "public function PasswordQueries(){\n\n\t$pas = PasswordReset :: create([\n 'email' => '[email protected]',\n 'token' => '0002145214',\n ]);\n\t}", "title": "" }, { "docid": "e6900b9170b4c3fd658b8ad5b452376b", "score": "0.5460552", "text": "public function save(){\n if($this->id){\n if($this->idExistsInTable($this->id)){\n $this->update();\n }else{\n $this->insert();\n }\n }else{\n $this->insert(); //only insert from registration\n }\n }", "title": "" }, { "docid": "7bfd9ad523150b84238d4c23cd454e3c", "score": "0.5437592", "text": "public function writeToDb() {\n $sql_query = null;\n \n // Ensure non-null fields are created\n if ($this->user_email && $this->user_password)\n {\n $db_connection = new DbConnection();\n $db_connection->dbConnect();\n \n if ($this->user_id)\n {\n // Try updating the user \n $data = $db_connection->selectEquals('users', 'user_id', $this->user_id);\n $record = mysql_fetch_assoc($data);\n if ($record) {\n // TODO: DEBUG( echo 'USER ALREADY EXISTS!! <br />' );\n // TODO: DEBUG( echo 'UPDATING USER... ' );\n $primary_keys = array( array('user_id', $this->user_id) );\n $values = array(\n array('user_email', $this->user_email),\n array('user_password', $this->user_password),\n array('user_fname', $this->user_fname),\n array('user_lname', $this->user_lname),\n array('user_pic', $this->user_pic),\n array('role_id', $this->role_id)\n );\n $sql_query = $db_connection->updateRecord('users', $primary_keys, $values);\n // TODO: DEBUG( echo 'DONE <br />' );\n }\n else {\n $db_connection->dbDisconnect();\n throw new Exception('User ID is invalid');\n }\n }\n else {\n // Create new user only if the email address isn't already registered\n $data = $db_connection->selectEquals('users', 'user_email', $this->user_email);\n $record = mysql_fetch_assoc($data);\n if ($record) {\n $db_connection->dbDisconnect();\n throw new Exception('User email already exists');\n }\n else {\n $this->setUserRegistrationDate();\n $values = array(\n array('user_email',$this->user_email),\n array('user_password',$this->user_password),\n array('user_fname',$this->user_fname),\n array('user_lname',$this->user_lname),\n array('user_pic',$this->user_pic),\n array('user_registration',$this->user_registration),\n array('role_id',$this->role_id)\n );\n $sql_query = $db_connection->insertInto('users', $values);\n $this->user_id = $db_connection->getInsertId();\n }\n }\n \n $db_connection->dbDisconnect();\n }\n else {\n throw new Exception('User email or password is null');\n }\n \n return $sql_query;\n }", "title": "" }, { "docid": "a7bd89b86feae0a26f048794bf8a39a4", "score": "0.5423238", "text": "public function save() {\n try{\n $query = $this->con->prepare('INSERT INTO users (username, password) values (?,?)');\n $query->bindParam(1, $this->username, PDO::PARAM_STR);\n $query->bindParam(2, $this->password, PDO::PARAM_STR);\n $query->execute();\n $this->con->close();\n }\n catch(PDOException $e) {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "833c121d02926f0c20b4944e9e8de010", "score": "0.54226696", "text": "public function save()\n {\n $query = \"INSERT INTO \" . $this->table . \" (login, password_hash, email) VALUES ('\" .\n $this->login . \"', '\" .\n password_hash($this->password, PASSWORD_DEFAULT) . \"', '\" .\n $this->email . \"');\";\n return $this->mysqli->query($query);\n }", "title": "" }, { "docid": "3c91e8d6b58508e5fd49bed717ff43b4", "score": "0.5415475", "text": "public function recovery_submit(){\n $token = $this->input->post('token');\n $newpassword = $this->input->post('password');\n $userdata = array(\n 'password' => md5($newpassword),\n 'security_code' => ''\n );\n $this->db->where('password_reset_token',$token)\n ->update('user',$userdata);\n redirect(base_url()); \n}", "title": "" }, { "docid": "8b09cecb7e6d754e74f56e0b1a7f3c62", "score": "0.5407686", "text": "public function run()\n {\n $data = [\n [\n 'login' => '[email protected]',\n 'senha' => password_hash('1234', PASSWORD_BCRYPT)\n ],\n ];\n $ufs = $this->table('usuarios');\n $ufs->insert($data)->save();\n }", "title": "" }, { "docid": "ab9e1e9bdbccdad9ec5078d12bd70e31", "score": "0.54053986", "text": "public function run()\n {\n DB::table('users')->insert([\n 'password' => bcrypt('Admin@01'),\n 'email' => \"[email protected]\",\n 'nom' => \"Administrateur\",\n ]);\n }", "title": "" }, { "docid": "615a636588fb1be36e50919363225392", "score": "0.5391741", "text": "private function insert()\n {\n // Connect to database\n $this->connect();\n\n // Build enquiries table\n $this->migrate_up();\n\n // Prepare SQL statement\n $this->prepare('INSERT INTO enquiries(enquiry_name, enquiry_email, enquiry_message, enquiry_timestamp) VALUES(?, ?, ?, ?);');\n\n // Execute\n $this->execute(array($this->contactName, $this->contactEmail, $this->contactMessage, time()));\n }", "title": "" }, { "docid": "98753718f17df85ddc0cd8de4b2ab097", "score": "0.53566295", "text": "public function run(){\n $defaultPassword = md5('griever87');\n DB::table('users')->insert([\n 'first_name' => 'Son',\n 'last_name' => 'Tran',\n 'email' => '[email protected]',\n 'password' => \\Hash::make($defaultPassword),\n 'activate' => true\n ]);\n }", "title": "" }, { "docid": "aa0e0db54e287fdfad4d0512b923fb5d", "score": "0.53539735", "text": "function insertRecovery($id, $time, $uid)\n{\n\t$now = new \\DWDateTime();\n\t$sql = '\n\t\tINSERT INTO dw_lostpw\n\t\tSET mailid = '.\\util\\mysql\\sqlval($id).',\n\t\t\tsent_datetime = '.\\util\\mysql\\sqlval($now->format()).',\n\t\t\tuid = '.\\util\\mysql\\sqlval($uid).'\n\t';\n\treturn \\util\\mysql\\query($sql);\n}", "title": "" }, { "docid": "abe17c4d0ace1c1ee3c2f78e5f2fa355", "score": "0.53511167", "text": "public function save() {\n\t\t$reset_key = Auth::getNewResetKey();\n\t\ttry {\n\t\t\t$pdo = DB::getHandle();\n\t\t\t$stmt = $pdo->prepare(\"UPDATE users SET username = :username, email = :email, employee_id = :employee, admin_status = :admin, reset_key = :resetkey WHERE pid = :pid\");\n\t\t\t$stmt->bindParam(\":username\", $this->username);\n\t\t\t$stmt->bindParam(\":email\", $this->email);\n\t\t\t$stmt->bindParam(\":employee\", $this->employee);\n\t\t\t$stmt->bindParam(\":admin\", $this->admin_status);\n\t\t\t$stmt->bindParam(\":resetkey\", $reset_key);\n\t\t\t$stmt->bindParam(\":pid\", $this->pid);\n\t\t\t$stmt->execute();\n\t\t\treturn true;\n\t\t} catch (PDOException $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "6f458e0894dc603f85f84b83b372bb2d", "score": "0.5346489", "text": "public function run()\n {\n DB::table('tb_users')->insert([\n [\n 'user_id' => 1,\n 'group_id' => 1,\n 'username' => 'superadmin',\n 'password' => '$2y$10$t1CRReZ0iLbygI9KC.ccguNEVVaMOYPIYZpfEmKyfdNN8Rs3LRKJy', //*k3l3mumuR\n 'email' => '[email protected]',\n 'fullname' => 'Super Admin',\n 'active' => 1,\n 'created_at' => Carbon::now()\n ]\n ]);\n }", "title": "" }, { "docid": "304f2627aef16a6fd3beac3465357274", "score": "0.5344018", "text": "function writeToDb($email, $password) {\r\n\t\t// Obtain the mysql database connection object\r\n\t\t$mysqli = connectToDb();\r\n\r\n\t\t// Check for a connection error\r\n\t\tif ($mysqli->connect_error) \r\n\t\t{\r\n\t\t\t// Close the connection on an error\r\n\t\t\tdie(\"Connection failed: \" . $mysqli->connect_error);\r\n\t\t}\r\n\t\t// Continue with the operation\r\n\t\telse {\r\n\t\r\n\r\n\t\t\t// Create our insert sql\r\n\t\t\t$sql = \"INSERT INTO login_table ( email, password) VALUES ('{$mysqli->real_escape_string($email)}', '{$mysqli->real_escape_string($password)}')\";\r\n\r\n\t\t\t// insert it into the database\r\n\t\t\t$insert = $mysqli->query($sql);\r\n\r\n\t\t\t// Check for an error\r\n\t\t\tif ($mysqli->errno == 1062) {\r\n\t\t\t\t// Look for a duplicate error\r\n\t\t\t\t$GLOBALS['isDuplicate'] = true;\r\n\t\t\t}\r\n\t\t\telse if ($mysqli->error){\r\n\t\t\t\tdie(\"error: {$mysqli->errno} : {$mysqli->error}\");\r\n\t\t\t\t\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Redirect to login.php\r\n\t\t\t\techo \"<script type='text/javascript'>\r\n\t\t\t\talert('Account has been created');\r\n\t\t\t\tlocation='index.php';</script>\";\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Close the connection\r\n\t\t\t$mysqli->close();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce8e466e769f846461a048a325174f46", "score": "0.5339499", "text": "public function commit() {\n\t\t$db = Gears_Db::getDb ( );\n\t\t$sql = 'UPDATE ANNUAIRE_USER SET ';\n\t\t$sql .= ' USER_PASSWORD = ?,';\n\t\t$sql .= ' USER_ACTIVE = ?,';\n\t\t$sql .= ' USER_LOGIN = ?,';\n\t\t$sql .= ' USER_MAIL = ?,';\n\t\t$sql .= ' USER_IP = ?,';\n\t\t$sql .= ' USER_NAME = ?,';\n\t\t$sql .= ' USER_FIRSTNAME = ?,';\n\t\t$sql .= ' USER_SECRET = ?';\n\t\t$sql .= ' WHERE USER_ID = ?';\n\t\t\n\t\t$values = Array ( $this->_password,\n\t\t\t\t\t\t\t$this->_active,\n\t\t\t\t\t\t\t$this->_login,\n\t\t\t\t\t\t\t$this->_mail,\n\t\t\t\t\t\t\t$this->_lastConnectIp,\n\t\t\t\t\t\t\t$this->_name,\n\t\t\t\t\t\t\t$this->_firstName,\n\t\t\t\t\t\t\t$this->_secret,\n\t\t\t\t\t\t\t$this->_id );\n\n\t\t$db->query ( $sql, $values );\n\t}", "title": "" }, { "docid": "1d03f5101249bbfe153cc894070a5361", "score": "0.53388786", "text": "public function newPassword()\n {\n $errorMsg= '';\n $this->view->setTemplate('userAuth/newPassword');\n if (isset($_POST['submitNewPw'])) {\n $errorMsg = $this->newPasswordStage2();\n if (is_null($errorMsg)) {\n $this->showSuccessMessage(tr('newpw_info_send'));\n }\n }\n $username = (isset($_POST['email'])) ? $_POST['email'] : '';\n $username = ($this->isUserLogged()) ? $this->loggedUser->getUserName() : '';\n $this->view->setVar('username', $username);\n $this->view->setVar('errorMsg', $errorMsg);\n $this->view->loadJQuery();\n $this->view->addLocalCss(\n Uri::getLinkWithModificationTime('/tpl/stdstyle/userAuth/userAuth.css'));\n $this->view->buildView();\n }", "title": "" }, { "docid": "c22a6a62211519010c8528cd1483dfd1", "score": "0.53376263", "text": "public function setNewPassword()\n\t{\n\t\tif(isset($_GET['token'])|| isset($_POST['new-password'])){\n\t\t\t//si c une requete post\n\t\t\tif(isset($_POST['new-password'])){\n\t\t\t\t//je récupere les password1 et 2\n\t\t\t\t$pass1 = $_POST['password1'];\n\t\t\t\t$pass2 = $_POST['password2'];\n\t\t\t\t//je recupere l'id\n\t\t\t\t$id=$_GET['id'];\n\n\t\t\t\t/*----verificztion mot de passe------*/\n\t\t\t\tif (!empty($pass1)) {\n\t\t\t\t\tif (strlen($pass1) < 8 || strlen($pass1) > 30) {\n\t\t\t\t\t\t$errors['pass1']['size'] = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t// Si on a pas précisé de mot de passe\n\t\t\t\t\t$errors['pass1']['empty'] = true;\n\t\t\t\t}\n\n\t\t\t\tif (!empty($pass2)) {\n\t\t\t\t\tif (!empty($pass1) && ($pass1 !== $pass2)) {\n\n\t\t\t\t\t\t// Si le mot de passe a été rempli, la confirmation aussi,\n\t\t\t\t\t\t// mais les deux sont différents\n\t\t\t\t\t\t$errors['pass2']['notSame'] = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t// On a pas renseigné la confirmation de mot de passe\n\t\t\t\t\t$errors['pass2']['empty'] = true;\n\t\t\t\t}\n\t\t\t\t/*-------------------------------------------------------*/\n\t\t\t\tif(isset($errors)){\n\t\t\t\t\t$this->show('default/new-password',['errors'=>$errors]);\n\t\t\t\t}else{\n\t\t\t\t\t//pas d'erreurs on enregistre le nouveau password\n\t\t\t\t\t$bddManager = new \\Manager\\ConnectManager();\n\t\t\t\t\t$data=['password'=>password_hash($pass1, PASSWORD_DEFAULT)];\n\t\t\t\t\t$bddManager->update($data,$id);\n\t\t\t\t\t//et on supprime le token\n\t\t\t\t\t$controller = new \\Manager\\ConnectManager();\n\t\t\t\t\t$pdo = $controller->connectPdo();\n\t\t\t\t\t$bddManager->setTable('recovery_token');\n\t\t\t\t\t$bddManager->deleteToken($pdo,$id);\n\t\t\t\t\t$this->show('default/new-password',['validationPassword'=>true]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//si c une requete get\n\t\t\tif(isset($_GET['token'])){\n\t\t\t\t$token = $_GET['token'];\n\t\t\t\t$controller = new \\Manager\\ConnectManager();\n\t\t\t\t$pdo = $controller->connectPdo();\n\t\t\t\t$authentificationManager = new \\Manager\\AuthentificationManager();\n\t\t\t\tif($user = $authentificationManager->tokenExist($pdo,$token)){\n\t\t\t\t\t//si le token existe dans la bdd j'affiche le formulaire nouveau mot de passe\n\t\t\t\t\t$this->show('default/new-password',['user'=>$user]);\n\t\t\t\t}else{\n\t\t\t\t\t$this->redirectToRoute('home');\n\t\t\t\t}\n\t\t\t}\n\n\t\t}else{\n\t\t\t// Pas de requete je renvoi vers la page recovery-password\n\t\t\t$this->redirectToRoute('recovery-password');\n\t\t}\n\t}", "title": "" }, { "docid": "45151fce9fa29fe564c13707a4713662", "score": "0.5335821", "text": "public function createPasswordRecoveryToken()\n {\n $token = Str::random(64);\n\n $created = DB::table('password_resets')->updateOrInsert(\n ['email' => $this->email],\n ['email' => $this->email, 'token' => $token]\n );\n\n return $created ? $token : false;\n }", "title": "" }, { "docid": "3cd8d81a5233b2ae33b57c7219b583dc", "score": "0.53298193", "text": "public function testSubmitPasswordReset()\n {\n $user = factory(User::class)->create([\n 'password' => bcrypt(self::USER_ORIGINAL_PASSWORD),\n ]);\n\n $token = Password::broker()->createToken($user);\n\n $password = str_random();\n\n $this\n ->followingRedirects()\n ->from(route(self::ROUTE_PASSWORD_RESET, [\n 'token' => $token,\n ]))\n ->post(route(self::ROUTE_PASSWORD_UPDATE), [\n 'token' => $token,\n 'email' => $user->email,\n 'password' => $password,\n 'password_confirmation' => $password,\n ])\n ->assertSuccessful();\n\n $user->refresh();\n\n $this->assertFalse(Hash::check(self::USER_ORIGINAL_PASSWORD,\n $user->password));\n\n $this->assertTrue(Hash::check($password, $user->password));\n }", "title": "" }, { "docid": "a113ebc50b3c0ebaa36d93cd863b86c2", "score": "0.53264695", "text": "public function new_password()\n\t{\n\t\t$this->load->model('users/m_users');\n\t\t$data['email'] \t\t\t\t= $this->input->get('e');\n\t\t$data['remember_token'] \t= $this->input->get('t');\n\t\t\n\t\t$user = $this->m_users->get_user_bytoken($data['email'], $data['remember_token']);\n\n\t\tif (!empty($user)) {\n\t\t\tparent::display_no_theme('confirm_reset_pass',$data);\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "8e11d7ecba1c8dbf2bb2e350be5b2bd7", "score": "0.53261405", "text": "public function _insert()\n {\n $this->created = date(\"Y-m-d h:i:s\");\n\n if (!$this->userId) {\n $identity = Zend_Auth::getInstance()->getIdentity();\n $this->userId = $identity->id;\n }\n $this->_update();\n \n $this->incComments();\n }", "title": "" }, { "docid": "48f1653b99615d04a158a8879b96e025", "score": "0.5315203", "text": "private function temp()\n {\n DB::connection($this->mainDB)->table($this->table)->insert($this->data);\n }", "title": "" }, { "docid": "e4ef34193fc8c7897215a473bc762117", "score": "0.53122425", "text": "private function save():void\n {\n $this->signup->save();\n }", "title": "" }, { "docid": "619952bce7727e4d6e211b32b7c9ff25", "score": "0.53117365", "text": "public function add()\n\t{\n\t\tdump(Db::name('user')->insertGetId(['username' => 'jiankun', 'password' => md5(654321), 'create_time' => time()]));\n\t\tif($result)\n\t\t{\n\t\t\t//$this->success('插入成功!');\n\t\t}else{\n\t\t\t//$this->error('写入失败!');\n\t\t}\n\t}", "title": "" }, { "docid": "ba7fe021e4abb5f534897ac09011d4e0", "score": "0.53035414", "text": "public function storeToken($users_id, $email, $token) {\n\t\ttry{\n\t\t\t$sql=\"INSERT INTO reset_password(user_account_id, email, token) values (?,?,?)\";\n\n\t\t\t$stmt= $this->dbObj->dbconn->prepare($sql);\n\t\t\t$result = $stmt->execute(array($users_id, $email, $token ));\n\t\t\treturn $result;\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t\techo($e->getMessage());\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "79dbaceb41efb073058a01b1d50446a1", "score": "0.52984464", "text": "public function save()\r\n {\r\n // password not required.\r\n if (!empty($_POST[\"id\"])) {\r\n $this->setPropDefAttribute('password_hash', 'required', false);\r\n }\r\n \r\n // if no password is sent in via POST, don't update it.\r\n if (empty($_POST[\"password_hash\"])) {\r\n $this->setPropDefAttribute('password_hash', 'source', 'non-db');\r\n }\r\n \r\n parent::save();\r\n }", "title": "" }, { "docid": "aae0190688f4091475544c2aa74a78cc", "score": "0.5290292", "text": "function Save(){\n $rowsAffected = 0;\n if(isset($this->id)){\n $rowsAffected = $this->UpdateSQL([\"id = \".$this->id]);\n }else{\n $rowsAffected = $this->InsertSQL();\n if($rowsAffected > 0){\n $this->id = $this->Max(\"id\");\n }\n }\n if($rowsAffected == 0){\n throw new \\Exception(\"Error al guardar Usuario\");\n }else{\n $this->Refresh();\n }\n }", "title": "" }, { "docid": "9a0b841641c600a471a322d9ef98cb4e", "score": "0.5281995", "text": "function insertNew ($username, $email, $password) {\n\t\tglobal $BobiJumpDB;\n\t\t$user = $BobiJumpDB->sqlInjectionFilter($username);\n\t\t$mail = $BobiJumpDB->sqlInjectionFilter($email);\n\t\t$pwd = $BobiJumpDB->sqlInjectionFilter($password);\n\t\t$query = 'INSERT INTO `user` VALUES(\\'' . $user . '\\', \\'' . $mail . '\\', \\'' . $pwd . '\\', 0, DEFAULT)';\n\t\t$BobiJumpDB->performQuery($query);\n\t\t$query = 'INSERT INTO unlocked VALUES(\\'' . $user . '\\', 1, 0)';\n\t\t$BobiJumpDB->performQuery($query);\n\t\t$BobiJumpDB->closeConnection();\n\t}", "title": "" }, { "docid": "e2da2d6f6b18357317a7596322b6ca7a", "score": "0.52761114", "text": "public function run()\n {\n $data = [];\n\t\t\n\t\t$data [] = [\n\t\t\t'email'=>'[email protected]',\n\t\t\t'password'=>bcrypt('qwerty1234'),\n\t\t];\n\t\t\n\t\tfor($i = 2; $i<=5; $i++){\n\t\t\t$data [] = [\n\t\t\t\t'email'=>'ueser'.$i.'@testmailg.ru',\n\t\t\t\t'password'=>bcrypt(str_random(16)),\n\t\t\t];\n\t\t}\n\t\t\n\t\tDB::table('users')->insert($data);\n }", "title": "" }, { "docid": "969036677724ffcac0abcf6ce02809c3", "score": "0.52675843", "text": "public function save()\n {\n $sql = $this->dbConnection->prepare(\"INSERT INTO paciente (documento, nombre, direccion, telefono, fecha_nacimiento, estado, genero, eps, email, password) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\");\n\n $documento = $this->getDocumento();\n $nombre = $this->getNombre();\n $direccion = $this->getDireccion();\n $telefono = $this->getTelefono();\n $fecha_nac = $this->getFecha_nacimiento();\n $estado = $this->getEstado();\n $genero = $this->getGenero();\n $eps = $this->getEps();\n $email = $this->getEmail();\n $pass = $this->getPassword();\n\n $option = ['cost'=> 12];\n $contra = password_hash($pass, PASSWORD_BCRYPT,$option);\n\n\n $sql->bindParam(1, $documento);\n $sql->bindParam(2, $nombre);\n $sql->bindParam(3, $direccion);\n $sql->bindParam(4, $telefono);\n $sql->bindParam(5, $fecha_nac);\n $sql->bindParam(6, $estado);\n $sql->bindParam(7, $genero);\n $sql->bindParam(8, $eps);\n $sql->bindParam(9, $email);\n $sql->bindParam(10, $contra);\n // Excecute\n $sql->execute();\n }", "title": "" }, { "docid": "66b14f031b0ff810ef8abbc4ceaa96c3", "score": "0.52641004", "text": "public function run()\n {\n DB::table('teams')->insert([\n 'name' => 'ImnTeam',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n 'verified' => true,\n ]);\n }", "title": "" }, { "docid": "448faa93c93a22a4db2875790dd9de73", "score": "0.52640337", "text": "function saveNew()\r\n\t{\r\n\t\tglobal $sql;\r\n\t\t$key = sql::Escape($this->key);\r\n\t\t$sql->Query(\"INSERT INTO $this->tablename SET\r\n\t\t\t\t\tuser = '$this->user',\r\n\t\t\t\t\trequestkey = '$key',\r\n\t\t\t\t\trequest = NOW()\r\n\t\t\t\t\t\");\r\n\t\t$this->id=$sql->GetLastId();\r\n\t}", "title": "" }, { "docid": "2d90f65894a6f96b087de2920e78eea4", "score": "0.5262035", "text": "public function insert_rand_no($rand_no,$user_id){\r\n\t\t$this->_dbh->exec(\"INSERT INTO password_reset set random_no='\".$rand_no.\"',user_id='\".$user_id.\"'\");\r\n\t}", "title": "" }, { "docid": "e52127a2f90313fbff3404fc520c1358", "score": "0.52510583", "text": "function addNewAdmin($userInfo){\n echo \"insert new Admin user to admin users table <br>\";\n echo \"Email: \".$userInfo['email'] . \"<br>\";\n echo \"Password: \".$userInfo['password']. \"<br>\";\n $userInfo['password'] = getHashedPassword($userInfo['password']);\n $this->db->trans_start();\n $this->db->insert('tbl_users', $userInfo);\n $insert_id = $this->db->insert_id();\n $this->db->trans_complete();\n }", "title": "" }, { "docid": "352b047ff158f3f97ff1344f6a0dedbd", "score": "0.5246273", "text": "public function run()\n {\n DB::table('admins')->insert([\n [\n 'first_name' => 'Valys',\n 'last_name' => 'Pav',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456')\n ]\n ]);\n }", "title": "" }, { "docid": "9187b2c69fdfeb0963fb524c96808e26", "score": "0.5244172", "text": "public function postReset()\n {\n $credentials = Input::only(\n 'email', 'password', 'password_confirmation', 'token'\n );\n\n $response = Password::reset($credentials, function($user, $password)\n {\n $user->password = Hash::make($password);\n\n $user->save();\n });\n\n switch ($response)\n {\n case Password::INVALID_PASSWORD:\n case Password::INVALID_TOKEN:\n case Password::INVALID_USER:\n return Redirect::back()->with('error', Lang::get($response));\n\n case Password::PASSWORD_RESET:\n return Redirect::to('/');\n }\n }", "title": "" }, { "docid": "362cdaf2ae2444b679d4e9a96344f616", "score": "0.5240197", "text": "public function mot_de_passe_new(){\r\n\t\tglobal $conn;\r\n\t\t$query = $conn->prepare(\"INSERT INTO mot_de_passe(id_users, mdp) VALUES (:id_users, :mdp)\");\r\n\t\t$query->execute(array(\"id_users\" => $this->id_users, \"mdp\" => $this->mdp));\r\n\t}", "title": "" }, { "docid": "af55464c427ae40304d0e64976feaed3", "score": "0.5226321", "text": "public function setpasswordAction() {\n\t\ttry{\n\t\t\t\n\t\t\t$this->_helper->layout->setLayout($this->session->emptylayout);\n\t\t\t\n\t\t\t$config = Zend_Registry::get('config');\n\t\t\t\n $this->view->reusepassword = $config->user->reusepassword;\n\t\t\t$fields = $this->_getAllParams();\n\t\t\t\n\t\t\tif(isset($fields['signup']) && isset($fields['new_password'])) {\n\t\t\t\tif($this->users->savechangepassword($fields)){\n\t\t\t\t\t$this->_redirect('admin/index/logout');\n\t\t\t\t} else {\n\t\t\t\t\t//$this->_redirect('usermanagement/index/success');\n\t\t\t\t}\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}", "title": "" }, { "docid": "0c3e327b4fa2e65b03b8724dbea2b6a2", "score": "0.5226221", "text": "public function flushToDB($pwd=null) {\n if ($pwd && $this->isdirty) {\n try {\n $qSuccess = user::updateUser($this->email, \n $this->nickname, \n $this->biography, \n $this->gravatar,\n $pwd, null, null, \n $this->DBConn()); \n $this->isdirty = false;\n return $qSuccess;\n \n } catch (\\Exception $e) {\n $errmsg = \"Error flushing to DB (\".$e->getCode().\")\";\n Logger::log($errmsg, $e->getMessage()); \n throw new \\Exception($errmsg, $e->getCode());\n }\n } else {\n return false; \n }\n }", "title": "" }, { "docid": "52b60a177c4889c4adaf8b3fa629fb47", "score": "0.5222742", "text": "function insert() {\n\t\t$sql = \"INSERT INTO umtemplate (temID, StID, HeadIcon, HeightHeadTop, MarginHeadTop, ColorHeadTop, ColorHeadBottom, ColorTopButton, ColorBottomButton)\n\t\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?)\";\n\t\t\n\t\t \n\t\t$this->ums->query($sql, array($this->temID, $this->StID, $this->HeadIcon, $this->HeightHeadTop, $this->MarginHeadTop, $this->ColorHeadTop, $this->ColorHeadBottom, $this->ColorTopButton, $this->ColorBottomButton));\n\t\t$this->last_insert_id = $this->ums->insert_id();\n\t\t\n\t}", "title": "" }, { "docid": "9c9fae68f92a9cadee40effa39fb046c", "score": "0.52197576", "text": "private function dbInsert() {\n global $db, $database;\n\n $db->query('INSERT INTO '.$database['tbl_prefix'].'dev_modules (name, description, status, type, version, author, email, site, datarelease, depends, xmlrpc) VALUES (\\''.$this->info['name'].'\\', \\''.$this->info['description'].'\\', 1, 1, \\''.$this->info['version'].'\\', \\''.$this->info['author'].'\\', \\''.$this->info['email'].'\\', \\''.$this->info['site'].'\\', \\''.$this->info['datarelease'].'\\', \\''.$this->info['depends'].'\\', \\''.$this->info['xmlrpc'].'\\' )');\n\t\t$db->delete_cache();\n\t}", "title": "" }, { "docid": "4902b94c100e834f8d482e3948bd72a8", "score": "0.5217985", "text": "public function save() {\n\t\t$groups = \"\";\n\t\tif(count($this->group_ids) > 0) {\n\t\t\t$groups = \"|\". implode(\"|\", $this->group_ids) .\"|\";\n\t\t}\n\t\t$email = $this->email;\n\t\tif(filter_var($email, FILTER_VALIDATE_EMAIL) === false) {\n\t\t\t$email = \"\";\n\t\t}\n\t\t$createdate = \"0\";\n\t\tif($this->createdate > 0) {\n\t\t\t$createdate = $this->createdate;\n\t\t}\n\t\t$activationdate = \"0\";\n\t\tif($this->activationdate > 0) {\n\t\t\t$activationdate = $this->activationdate;\n\t\t}\n\t\t$query = $this->table_prefix .'375_user SET '\n\t\t\t\t.'email = \"'. strtolower(trim($this->email)) .'\", '\n\t\t\t\t.'grad = \"'. addslashes($this->grad) .'\", '\n\t\t\t\t.'firstname = \"'. addslashes($this->firstname) .'\", '\n\t\t\t\t.'lastname = \"'. addslashes($this->lastname) .'\", '\n\t\t\t\t.'title = '. $this->title .', '\n\t\t\t\t.'clang_id = '. $this->clang_id .', '\n\t\t\t\t.'`status` = '. $this->status .', '\n\t\t\t\t.'group_ids = \"'. $groups .'\", '\n\t\t\t\t.'send_archive_id = '. $this->send_archive_id .', '\n\t\t\t\t.'createdate = '. $createdate .', '\n\t\t\t\t.'createip = \"'. htmlspecialchars($this->createIP) .'\", '\n\t\t\t\t.'activationdate = '. $activationdate .', '\n\t\t\t\t.'activationip = \"'. htmlspecialchars($this->activationIP) .'\", '\n\t\t\t\t.'updatedate = '. time() .', '\n\t\t\t\t.'updateip = \"'. filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP) .'\", '\n\t\t\t\t.'subscriptiontype = \"'. $this->subscriptiontype .'\", '\n\t\t\t\t.'activationkey = \"'. htmlspecialchars($this->activationkey) .'\" ';\n\t\tif($this->user_id == 0) {\n\t\t\t$query = \"INSERT INTO \". $query;\n\t\t}\n\t\telse {\n\t\t\t$query = \"UPDATE \". $query .\" WHERE user_id = \". $this->user_id;\n\t\t}\n\n\t\t$result = new rex_sql();\n\t\t$result->setQuery($query);\t\t\n\t}", "title": "" }, { "docid": "e84bba6a4cdabf87b6dc955d11e5e2f1", "score": "0.52176976", "text": "public function updatePassword(){\n $r = Admin::find(1);\n $r->password=Hash::make('123');\n $r->save();\n }", "title": "" }, { "docid": "ab3318eddeec9a5048e607357e7679fd", "score": "0.52169734", "text": "public function postRegister(){\n $name = $_POST['name'];\n $email = $_POST['email'];\n $password = $_POST['password'];\n\n //insert to table\n $user = new \\Model\\User(null, $name, $email, $password);\n $user->save();\n header(\"Location: ?route=users\");\n }", "title": "" }, { "docid": "5984aa82807eda29744e5e02692bce3a", "score": "0.52141494", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name'=>'khairul',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('anwar1234'),\n ]);\n }", "title": "" }, { "docid": "884a6c45ce1cd2f9d035f2651ce1fe6b", "score": "0.52133405", "text": "public function run()\n {\n DB::table('questions')->insert([\n 'name' => 'test ques',\n 'questio_code' => Hash::make('password'),\n ]);\n }", "title": "" }, { "docid": "9e6eb38bcd50c5d98dbfb00e9a8aa6c4", "score": "0.5210562", "text": "public function insert($data)\r\n\t{\r\n\t\t$data['password'] = md5($data['password']);\r\n\t\t\t\t\t\r\n\t\treturn parent::insert($data);\t\t\t\r\n\t}", "title": "" }, { "docid": "5015b519a61e472295d405487b492a5b", "score": "0.5209817", "text": "public function run()\n {\n DB::table('users2')->insert(array(\n array(\n 'name' => 'Arslan',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456')\n ),\n ));\n }", "title": "" }, { "docid": "cddd37b901f615d2f5a7bbbc60b4bcc0", "score": "0.5209511", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'user1',\n 'email' => '[email protected]',\n 'password' => password_hash('password', PASSWORD_BCRYPT),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => password_hash('password', PASSWORD_BCRYPT),\n ]);\n }", "title": "" }, { "docid": "3473fcb50e047a9ec10624b49061ce79", "score": "0.5208516", "text": "public function insert() {\n $conn = DataObject::connect();\n $sql = \"INSERT INTO \" . TBL_USER . '(email, password) VALUES (:email, :password)';\n \n \n try {\n $st = $conn->prepare($sql);\n $st->bindValue(\":email\", $this->data[\"email\"], PDO::PARAM_STR);\n $st->bindValue(\":password\", $this->data[\"password\"], PDO::PARAM_STR);\n $st->execute();\n $lastInsertId = $conn->lastInsertId();\n DataObject::disconnect($conn);\n } catch(PDOException $e) {\n die(\"Query failed: \" . $e->getMessage());\n }\n \n return intval($lastInsertId);\n \n \n }", "title": "" }, { "docid": "64b8175412a438f1933023da07302f22", "score": "0.52049863", "text": "public function createPasswordToken($email)\n\t{\n\t\t$token = str_random(64);\n\t\t$date = Carbon::now();\n\n\t\tif($this->existsPasswordToken($email))\n\t\t{\n\t\t\tDB::table('password_resets')\n\t\t\t\t->where('email', $email)\n\t\t\t\t->update([\n\t\t\t\t\t'token' => $token,\n\t\t\t\t\t'created_at' => $date\n\t\t\t\t]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tDB::table('password_resets')\n\t\t\t\t->insert([\n\t\t\t\t\t'email' => $email,\n\t\t\t\t\t'token' => $token,\n\t\t\t\t\t'created_at' => $date\n\t\t\t\t]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "3acf17a0569e19458375af86b116818b", "score": "0.51952666", "text": "public function register(){\r\n $symbol = ['0','1','2','3','4','5','6','7','8','9','q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','0','1','2','3','4','5','6','7','8','9'];\r\n $lic = '';\r\n for ($i=0; $i<32; $i++):\r\n $rand_symbol = $symbol[rand(0,45)];\r\n $lic = $lic.$rand_symbol;\r\n endfor;\r\n if($this->db->get_var(\"show tables like '$this->table_name'\") == $this->table_name) {\r\n if($_POST['name'] && $_POST['name'] != '')\r\n {\r\n $name = $_POST['name'];\r\n if($_POST['email'] && $_POST['email'] != '')\r\n {\r\n $email = $_POST['email'];\r\n $user = $this->db->get_results(\r\n \"\r\n SELECT *\r\n FROM $this->table_name\r\n \"\r\n );\r\n $base_email = '';\r\n foreach($user as $us){\r\n $base_email .= $us -> email;\r\n }\r\n if(strpos($base_email, $email) == false && strpos($base_email, $email) !== 0) {\r\n $this->db->insert($this->table_name, array('time' => current_time('Y-m-d'), 'name' => $name, 'email' => $email, 'keygen' => $lic));\r\n echo 'Thank you for subscribing';\r\n }\r\n else\r\n echo '<span style=\"color:red\">Your Email was subscribed</span>';\r\n exit;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a6d237378cb1b6852b430e013608608b", "score": "0.519502", "text": "public function postReset()\n\t{\n\t\t$user_email = Input::get('user_email');\n\t\t$password = Input::get('user_password');\n\t\t$token = Input::get('token');\n\t\t/*$credentials = Input::only(\n\t\t\t'email', 'password', 'password_confirmation', 'token'\n\t\t);*/\n\n\t\t$response = Password::reset(['strUserEmail' => $user_email,'password' => $password,'password_confirmation' => $password,'token' => $token ], function($user, $password)\n\t\t{\n\t\t\t$user->strUserPassword = Hash::make($password);\n\n\t\t\t$user->save();\n\t\t});\n\n\t\tswitch ($response)\n\t\t{\n\t\t\tcase Password::INVALID_PASSWORD:\n\t\t\tcase Password::INVALID_TOKEN:\n\t\t\tcase Password::INVALID_USER:\n\t\t\t\treturn $this->respondBadRequest('Invalid User.');\n\n\t\t\tcase Password::PASSWORD_RESET:\n\t\t\t\treturn $this->respondOk('Reminder reset.');\n\t\t}\n\t}", "title": "" }, { "docid": "94d43f835eeb472e00c3f0a921ac5034", "score": "0.51931036", "text": "public function run()\n {\n $data = array(\n array('name'=>'Marco', 'email'=>'[email protected]', 'password'=>bcrypt('todos'),'isAdmin'=>1)\n );\n\n DB::table('users')->insert($data);\n }", "title": "" }, { "docid": "eb11d4946f9e8b8a10fd250676a964a4", "score": "0.51924616", "text": "public function registerNewUser($data)\n{\n $alphabet = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789\";\n $hash = array(); //remember to declare $hash as an array\n $email_hash = array(); //remember to declare $hash as an array\n $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache\n for ($i = 0; $i < 32; $i++) {\n $eh = rand(0, $alphaLength);\n $n = rand(0, $alphaLength);\n $hash[] = $alphabet[$n];\n $email_hash[] = $alphabet[$eh];\n }\n $hash_value = implode($hash);\n $newsletter = implode($email_hash);\n $rand_id = rand(100,999);\n $wallet_value = $data['email'].$rand_id;\n\t\t$response = $this->bitcoinSetting->createWallet($wallet_value);\n // if(true) {\n // $wallet_adress = 'asdae123123asda';\n // $wallet_xpub = '19231moasmio123m1i23j1j039130913';\n\n if($response['status'] == true) {\n\t $wallet_adress = $response['wallet_address']['user_wallet_address'];\n\t $wallet_xpub = $response['wallet_address']['wallet_xpub'];\n\t\n $password = md5($data['password']);\n $dbQuery = \"INSERT INTO `members` \n (`ibm`, `first_name`, `last_name`, `user_password`, `user_email`, `refer_ibm`, `passad_up_to`, `4_by_4` ,`wallet_number` , `wallet_email`, `wallet_xpub`, `hash` , `newsletter_hash`) \n VALUES ('\".$data['my_ibm'].\"', '\".$data['firstname'].\"', '\".$data['lastname'].\"', '\".$password.\"', '\".$data['email'].\"', '\".$data['ibm'].\"', '\".$data['passad_up_to'].\"', '\".$data['4_by_4'].\"', '\".$wallet_adress.\"' , '\".$wallet_value.\"', '\".$wallet_xpub.\"', '\".$hash_value.\"','\".$newsletter.\"')\"; \n \n \n try {\n \n $results = mysqli_query($this->dbCon, $dbQuery);\n \n if ($results) {\n \n $last_id = mysqli_insert_id($this->dbCon);\n $ibm = $data['my_ibm'];\n $page = 3;\n $addPage = \"INSERT INTO `tbl_member_landingpage` \n (`member_id`, `member_ibm`, `page_id`)\n VALUES ('\".$last_id.\"','\".$ibm.\"','\".$page.\"')\";\n \n \n \n $addresult = mysqli_query($this->dbCon, $addPage);\n \n \n $query = \"SELECT `first_name` ,`user_email`, `hash`\n FROM `members`\n WHERE `u_id` = '\" . $last_id . \"' Limit 1\";\n $result = mysqli_query($this->dbCon, $query);\n if (($result) && (mysqli_num_rows($result) == 1)) \n {\n $user_data = mysqli_fetch_array($result);\n \n \n \n $template = file_get_contents('email-templates/signup_verification_email.php');\n $message = str_replace('{{$name}}', $user_data['first_name'], $template);\n $message = str_replace('{{$email}}', $user_data['user_email'], $message);\n $message = str_replace('{{$hash}}', $user_data['hash'], $message);\n $message = str_replace('{{$support_url}}', $this->base_url, $message);\n\t\t\t \n\t\t $headers = 'MIME-Version: 1.0'.\"\\r\\n\";\n\t $headers .= 'Content-type: text/html; charset=iso-8859-1'.\"\\r\\n\";\n $headers .= \"From: [email protected]\"; \n\t\t\t \n\t\t\t\n\t if(mail($user_data['user_email'], 'The Viral Marketer Signup | Email Verification', $message, $headers)) {\n \n $_SESSION['register_new_user'] = array(\n 'email' => $user_data['user_email'] ,\n 'hash' => $user_data['hash'],\n 'first_name' => $user_data['first_name'],\n 'base_url' => $this->base_url,\n );\n $this->redirectMe('new_user.php');\n \n }\n $_SESSION['register_new_user'] = array(\n 'email' => $user_data['user_email'] ,\n 'hash' => $user_data['hash'],\n 'first_name' => $user_data['first_name'],\n 'base_url' => $this->base_url,\n );\n $this->redirectMe('new_user.php');\n \n \n }\n }\n } \n catch (Exception $e) {\n echo $e->getMessage();\n die;\n }\n\n $this->redirectMe('new_user.php');\n }\n}", "title": "" }, { "docid": "5d99c403fa6bd502687d7860b873a457", "score": "0.51875204", "text": "public function run()\n {\n DB::table('users')->delete();\n\n DB::table('users')->insert([\n\t\t [\n\t \t'name' => 'admin',\n\t \t'email' => '[email protected]',\n\t \t'password' => Hash::make( 'p@ssword' ) \t\n \t]\n\t\t]); \n }", "title": "" }, { "docid": "b18698399045b8e28570f560f81af3d2", "score": "0.5183773", "text": "public function register(){\n if($this->isLoggedIn()){\n redirect('posts');\n }\n\n // Check if POST\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n // Sanitize POST\n $_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n\n $data = [\n 'name' => trim($_POST['name']),\n 'email' => trim($_POST['email']),\n 'password' => trim($_POST['password']),\n 'confirm_password' => trim($_POST['confirm_password']),\n 'email_verified' => 'n',\n 'name_err' => '',\n 'email_err' => '',\n 'password_err' => '',\n 'confirm_password_err' => ''\n ];\n\n // Validate email\n if(empty($data['email'])){\n $data['email_err'] = 'Please enter an email';\n // Validate name\n if(empty($data['name'])){\n $data['name_err'] = 'Please enter a name';\n }\n } else{\n // Check Email\n if($this->userModel->findUserByEmail($data['email'])){\n $data['email_err'] = 'Email is already taken.';\n }\n }\n\n // Validate password\n if(empty($data['password'])){\n $password_err = 'Please enter a password.'; \n } elseif(strlen($data['password']) < 6){\n $data['password_err'] = 'Password must have atleast 6 characters.';\n }\n\n // Validate confirm password\n if(empty($data['confirm_password'])){\n $data['confirm_password_err'] = 'Please confirm password.'; \n } else{\n if($data['password'] != $data['confirm_password']){\n $data['confirm_password_err'] = 'Password do not match.';\n }\n }\n \n // Make sure errors are empty\n if(empty($data['name_err']) && empty($data['email_err']) && empty($data['password_err']) && empty($data['confirm_password_err'])){\n // SUCCESS - Proceed to insert\n\n // Hash Password\n $data['password'] = password_hash($data['password'], PASSWORD_DEFAULT);\n // Make sure / is not included in the hashed password so it can be parsed through the URL\n $data['password'] = str_replace(\"/\",\"A\",$data['password']);\n\n //Execute\n if($this->userModel->register($data)){\n // Send email and redirect to login\n\n $emailBody = \"<h3>To register for Shareposts click the link below</h3>\n <h2><a href=\" . URLROOT . \"/users/confirmRegistration/\" . $data['email'] . \"/\" . $data['password'] . \">Click here to register for Shareposts</a></h2><BR>\";\n\n if (mail($data['email'], \"Welcome to the sharepost community\",$emailBody,\"MIME-Version: 1.0\\r\\nContent-type: text/html; charset=charset=ISO-8859-1\\r\\nFrom: Do not reply\")) {\n flash('register_success', 'Click the link in the email we sent you and then login');\n } else {\n flash('register_success', 'Email did not work. Try again!');\n }\n redirect('users/login');\n } else {\n die('Something went wrong');\n }\n \n } else {\n // Load View\n $this->view('users/register', $data);\n }\n } else {\n // IF NOT A POST REQUEST\n\n // Init data\n $data = [\n 'name' => '',\n 'email' => '',\n 'password' => '',\n 'confirm_password' => '',\n 'name_err' => '',\n 'email_err' => '',\n 'password_err' => '',\n 'confirm_password_err' => ''\n ];\n\n // Load View\n $this->view('users/register', $data);\n }\n }", "title": "" }, { "docid": "c66b7290e0794e81f5a8afc9c7292fb6", "score": "0.51824206", "text": "public function resetDb()\n {\n $this->db->execute('drop table if exists users');\n $this->db->execute(get_db_query('create-users-table'));\n\n for ($i = 1; $i < 12; $i++) {\n $this->db->execute(get_db_query('insert_user'), [\n 'first_name' => $i . '-First',\n 'last_name' => $i . '-Last',\n 'email' => $i . '[email protected]',\n 'phone' => '+40721 000 ' . str_pad($i, 3, '0', STR_PAD_LEFT),\n ]);\n }\n\n return true;\n }", "title": "" }, { "docid": "ec54fb823965b7f1029ae9ebba38b645", "score": "0.5181438", "text": "public function forgotPasswordAction()\n {\n if (empty($_POST)) {\n return;\n }\n\n $errorMessage = __('Unable to reset password. Please verify that the information is correct and contact an administrator if necessary.');\n\n $email = $_POST['email'];\n\n if (!Zend_Validate::is($email, 'EmailAddress')) {\n $this->_helper->flashMessenger($errorMessage, 'error');\n return;\n }\n\n $user = $this->_helper->db->findByEmail($email);\n\n if (!$user || $user->active != 1) {\n $this->_helper->flashMessenger($errorMessage, 'error');\n return;\n }\n\n //Create the activation url\n $ua = new UsersActivations;\n $ua->user_id = $user->id;\n $ua->save();\n\n $this->_sendResetPasswordEmail($email, $ua->url);\n }", "title": "" }, { "docid": "6e4b904516e3b3f693ea72557a55a758", "score": "0.5180285", "text": "public function setNotificationChangePassword()\n\t\t{\n\t\t\t$this->load->database();\n\t\t\t$query = $this->db->query\n\t\t\t(\"\n\t\t\t\tINSERT INTO notifikasi (Nama, TahunLulus, Lembaga, LinkFoto, User, Notifikasi, Waktu, Tanggal)\n\t\t\t\tSELECT alumni.NamaLengkap, alumni.TahunLulus, alumni.Lembaga, alumni.LinkFoto, 'Alumni' ,'Telah Ganti Password', NOW(), NOW() \n\t\t\t\tFROM alumni\n\t\t\t\tWHERE alumni.Username='$this->Username'\n\t\t\t\t\");\n\t\t\t$this->db->close();\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "75d7c78f1f6a8b69b936e418ce108db3", "score": "0.51797456", "text": "function insert()\n {\n \t// Load data for insert\n \t$data = array(\n \t\t// post('form_field', Boolean), Boolean = TRUE enables\n \t\t// XSS Filtering to sanitize data\n \t\t'username' => $this->input->post('username', TRUE),\n \t\t'password' => $this->pass_hash($this->input->post('username', TRUE), $this->input->post('password', TRUE)),\n \t\t'pin'\t => $this->input->post('pin', TRUE),\n \t\t'balance' => 0,\n \t\t'group'\t => 1\n \t\t);\n\n \t// Add new member\n \t$this->db->insert('members', $data);\n }", "title": "" }, { "docid": "9a4e35c9f429cff29afd748265487d06", "score": "0.51794034", "text": "function new_account($email, $password) {\r\n global $conn;\r\n\r\n $created_date = date(\"Ymd\");\r\n $hashed_password = hash(\"SHA256\", $password);\r\n\r\n $sql = \"INSERT INTO Account VALUES (NULL, '$hashed_password', '$email', $created_date, 0)\";\r\n if (mysqli_query($conn, $sql)) {\r\n error_log(\"New user successfully added.\");\r\n }\r\n else {\r\n error_log(\"Error: \").$sql.(\"<br>\").$conn->error;\r\n }\r\n}", "title": "" }, { "docid": "924ece8b17bdd7451ed92d32f0836ecf", "score": "0.5179112", "text": "public function pwdReset(){\n\n\n $post = [];\n $errors = [];\n $formValid = false;\n\n\n if(!empty($_POST)){\n // Permet de nettoyer les données\n foreach($_POST as $key => $value){\n $post[$key] = trim(strip_tags($value));\n }\n\n if(!v::notEmpty()->email()->validate($post['email'])){\n $errors[] = 'Cet email n\\'est pas valide.';\n }\n\n\n if(count($errors) === 0){\n\n $usersModel = new UsersModel(); \n $emailExist = $usersModel->emailExists($post['email']);\n\n if($emailExist = true){ // Si l'email existe \n\n $token = md5(uniqid(rand(), true));// on génère un token\n\n $usersModel = new UsersModel(); \n $userInfo = $usersModel->getUserByUsernameOrEmail($post['email']); // on va chercher l'id qui correspond au mail\n\n $data = [\n\n 'token' => $token,\n 'id_user' => $userInfo['id'],\n\n ];\n\n $resetPwdModel = new ResetPasswordModel(); // on insère\n $insert = $resetPwdModel->insert($data);\n\n if(!empty($insert)){// si l'insertion s'est bien passé on envoie le mail\n\n\n $mail = new \\PHPMailer();\n\n $mail->isSMTP();\n $mail->Host = 'smtp.gmail.com';\n $mail->SMTPAuth = true;\n\n $mail->Username = getApp()->getConfig('smtp_email_ident');\n $mail->Password = getApp()->getConfig('smtp_email_pass');\n\n $mail->SMTPSecure = 'ssl';\n $mail->Port = 465;\n\n $mail->SetFrom('[email protected]', 'GroomAtlantic');\n $mail->addAddress($post['email']);\n $mail->isHTML(true);\n\n\n $mail->Subject = 'Sujet';\n $mail->Body = '<a href=\"http://localhost/Back/groomatlantic/public/users/traitementReset?idUser=' . $userInfo['id'] . '&token=' . $token . '\">Changer le mot de passe</a>';\n\n\n if(!$mail->Send()){\n $this->flash('Une erreer est survenue lors de l\\'envoi de l\\'email', 'danger');\n //echo 'Erreur : ' . $mail->ErrorInfo; // uniquement pour les dev, l'utilisateur s'en cague :-)\n }\n else {\n $formValid = true;\n } \n }\n\n }\n } \n else {\n $this->flash('Email inconnu', 'danger');\n }\n }\n\n $params = [\n 'formValid' => $formValid,\n 'errors' => $errors,\n ];\n\n $this->show('users/pwdReset', $params);\n\n }", "title": "" }, { "docid": "10b31de08dde5c1b0e96dd80ba74a257", "score": "0.51787007", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name'=>'Administrador',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('cbtis2014$')\n ]);\n }", "title": "" }, { "docid": "c8f5a61a2262d58e560b65977cfb4eb7", "score": "0.5178399", "text": "public function changepasswordinsert($password,$token) // start of changepasswordinsert function \n\t{\n\t\tif($token!=''){\n\t\t\t$sql_validtoken = DB::table('tbl_app_user')->select('user_uniqueid')\n\t\t\t\t\t\t\t->where('app_user_forgot_token', $token)->get();\n\t\tif(count($sql_validtoken)>0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$sql_chgpass = DB::table('tbl_app_user')\n\t\t\t\t->where('app_user_forgot_token',$token)\n\t\t\t\t->update([\n\t\t\t\t'app_user_password'=> md5($password),\n\t\t\t\t'app_user_forgot_token_status'=>0\n\t\t\t\t]); \n\n\t\t\t\treturn ([\n\t\t\t\t'status' =>'200',\n\t\t\t\t'msg' => 'your password has been successfully changed.'\n\t\t\t\t]);\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t return ([\n\t\t\t\t'status' =>'401',\n\t\t\t\t'msg' => 'Something went wrong, Please try again later.'\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn ([\n\t\t\t'status' =>'401',\n\t\t\t'msg' => 'Sorry! invalid token'\n\t\t\t]); \n\t\t}// check for invalid token\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn ([\n\t\t\t\t'status' =>'401',\n\t\t\t\t'msg' => 'Something went wrong,Please try again later.'\n\t\t\t\t]); \n\t\t}\n\t}", "title": "" }, { "docid": "10831bfffa0d241bdc5534acd70ccf7a", "score": "0.5177158", "text": "function insert_new_user($id,$username,$password){\n $sql = $this->pdo->query(\"INSERT INTO users (id_user,email_number,pass) VALUES ('$id','$username','$password')\");\n $sql->execute();\n }", "title": "" }, { "docid": "122aeb5d6ba45a4ec816c240df5bdc36", "score": "0.5166826", "text": "protected static function users()\n {\n Seed::insert(static::$table, [\n 'username' => 'admin',\n 'password' => md5('admin'),\n 'salt' => 'ht4h4',\n 'email' => '[email protected]',\n 'active' => 1,\n ])->execute();\n\n }", "title": "" }, { "docid": "9fb6ac649c51d1aee3392fa8120c11d4", "score": "0.5165947", "text": "function reset_password ( $post) {\n\n\t$return_data = array();\n\n\t# retrieve user record with supplied trs\n\t$sql = \"SELECT * FROM tbl_member WHERE temporary_random_string = ?\";\n\t$params = array( $post['resetpass-trs'] ); //if no params then must be \"array()\", otherwise values comma separated\n\t$pdo_return_data = pdo_db_call ( __FUNCTION__, 1, '', $sql, $params, 'fetch', 2 );\n\tif ( $pdo_return_data['rc'] == '1' ) {\n\t\tif ( $pdo_result = $pdo_return_data['result'] ) { // row returned - match\n\t\t\t# hash new password & store in database\n\t\t\tif ( $new_hash = password_hash( $post['resetpassnew'], PASSWORD_DEFAULT ) ) { # password successfully hashed\n\t\t\t\t# store new hash in db\n\t\t\t\t$sql = \"UPDATE tbl_member SET password = ? WHERE id = ?\";\n\t\t\t\t$params = array( $new_hash, $pdo_result['id'] );\n\t\t\t\t$pdo_return_data = pdo_db_call ( __FUNCTION__, 2, '', $sql, $params, 'rowCount', '' );\n\t\t\t\tif ( $pdo_return_data['rc'] == '1' ){ # query executed successfully\n\t\t\t\t\t$return_data['rc'] = '1';\n\t\t\t\t\t$return_data['errmsg'] = 'Password reset successfully.';\n\t\t\t\t} else {\n\t\t\t\t\t$return_data['rc'] = '0';\n\t\t\t\t\t$return_data['errmsg'] = 'Catastrophic System Error 6.<br>Shut down your computer and run away!';\n\t\t\t\t}\n\t\t\t} else { # password_hash() function returned false\n\t\t\t\t$return_data['rc'] = '0';\n\t\t\t\t$return_data['errmsg'] = 'Catastrophic System Error 5.<br>Shut down your computer and run away!';\n\t\t\t} # /if password successfully hashed\n\t\t} else {\n\t\t\t$return_data['rc'] = '0';\n\t\t\t$return_data['errmsg'] = 'Invalid Security String.<br>Try to make a new request.';\n\t\t}\n\t} else {\n\t\t$return_data['rc'] = '0';\n\t\t$return_data['errmsg'] = 'System Error.\\nCould not retrieve user record.';\n\t}\n\n\treturn $return_data;\n\n}", "title": "" }, { "docid": "9a2e138863a96298ac3c9fdba29b5d47", "score": "0.51617336", "text": "function encrypt_user_password_then_insert($post_array)\r\n\t{\r\n\t\t$pw = $post_array['password'];\r\n\t\t\r\n\t\tunset($post_array['password']);\r\n\t\tunset($post_array['passconf']);\r\n\t\t\r\n\t\t$res = $this->db->insert('users',$post_array);\r\n\t\t\r\n\t\tif (!empty($pw)) { \r\n\t\t\t$this->User_model->set_password($post_array['username'], $pw);\r\n\t\t}\r\n\t\t\r\n\t\treturn $res; \r\n\t}", "title": "" }, { "docid": "1cd7b74ab073d72d8409bdb5bb53d88d", "score": "0.5161145", "text": "public function insert() {\n\n\t\t$data = $this->input->stream();\n\n\t\t$this->tickets_model->insert($data);\n\t}", "title": "" }, { "docid": "116c6a263d48cda26d4e08cbf07c7a1e", "score": "0.5156934", "text": "public function userPasswordUpdate()\n {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n [\"user_id\", '=', $this->request->input(\"user_id\")]\n ];\n $this->usersModel->setTableName(\"users\");\n $this->usersModel->setInsertUpdateData($updateArray);\n $this->usersModel->setWhere($whereArray);\n $this->usersModel->updateData();\n }", "title": "" }, { "docid": "9c8fa923c9d663828a8f1e3df74f0c0d", "score": "0.5156526", "text": "public function run()\n {\n //\n\t\tDb::table('nusers')->insert([\n\t\t\t['name'=>'admin', 'password'=>md5('123456'), 'tel'=>'13312345678', 'token'=>'', 'addtime'=>time()]\n\t\t]);\n }", "title": "" }, { "docid": "854d86ab935c1d3646e056c255560f53", "score": "0.5151184", "text": "public function run()\n {\n //DB::table('users')->insert([\n // 'name'=>'rafael',\n //'email'=>'[email protected]',\n //'password'=>'123456'\n //]);\n DB::table('users')->insert([\n 'name'=>'maria',\n 'email'=>'[email protected]',\n 'password'=>md5('12345678')\n ]);\n }", "title": "" }, { "docid": "d091f9d87c65caf197e275e35f7781f4", "score": "0.515031", "text": "public function run()\n {\n DB::table('users')->insert([\n 'codigo' => '000000000',\n 'nombres' => 'Sebastian',\n 'apellidos' => 'Florez Guerrero',\n 'fecha_nacimiento' => '1975-11-30',\n 'email' => '[email protected]',\n 'tipo' => 'admin',\n 'password' => bcrypt('admin'),\n ]);\n \n }", "title": "" }, { "docid": "24939e27906f7168ce59b25355642757", "score": "0.51479566", "text": "public function run()\n\t{\n\t\t$data = [\n\t\t\t['name' => 'Admin', 'email' => '[email protected]', 'password' => 'password', 'role' => 'admin'],\n\t\t\t['name' => 'Agent', 'email' => '[email protected]', 'password' => 'password', 'role' => 'agent'],\n\t\t\t['name' => 'Customer', 'email' => '[email protected]', 'password' => 'password', 'role' => 'customer']\n\t\t];\n\t\t$hash = function ($value) {\n\t\t\treturn array_merge($value, ['password' => Hash::make($value['password'])]);\n\t\t};\n\t\t$withPassword = array_map($hash, $data);\n\t\tDB::table('users')->insert($withPassword);\n\t}", "title": "" }, { "docid": "52b23b80bceb38fec7215548134a8786", "score": "0.51400346", "text": "public function testSubmitPasswordReset()\n {\n $user = User::factory()->create([\n 'password' => bcrypt(self::USER_ORIGINAL_PASSWORD),\n ]);\n\n $token = Password::broker()->createToken($user);\n\n $password = $this->faker()->password;\n\n $this\n ->followingRedirects()\n ->from(route(self::ROUTE_PASSWORD_RESET, [\n 'token' => $token,\n ]))\n ->post(route(self::ROUTE_PASSWORD_RESET_SUBMIT), [\n 'token' => $token,\n 'email' => $user->email,\n 'password' => $password,\n 'password_confirmation' => $password,\n ])\n ->assertSuccessful()\n ->assertSee(__('passwords.reset'));\n\n $user->refresh();\n\n $this->assertFalse(Hash::check(self::USER_ORIGINAL_PASSWORD,\n $user->password));\n\n $this->assertTrue(Hash::check($password, $user->password));\n }", "title": "" }, { "docid": "a45a8091d7974c719dc51d72faab0755", "score": "0.5137047", "text": "function addPrivateCorkboard()\n{\n $query = \"INSERT INTO `PrivateCorkboard` (`corkboardID`,`password`) \n VALUES(LAST_INSERT_ID(),'$this->password');\n\";\n\n // prepare query\n $stmt = $this->conn->prepare($query);\n\n // execute query\n if ($stmt->execute()) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "9e207bd35aefa10196022c8233a71c60", "score": "0.51360106", "text": "public function insert()\r\n\t{\r\n\r\n\t\trequire_once 'Database.php';\r\n\t $db = Database::getInstancia() ;\r\n\r\n\r\n\t //insertamos nuestros datos de registro a ls bbdd\r\n\t\t$sql = \"INSERT INTO usuario (usuario, password, nombre, email) VALUES (:usuario, :password, :nombre, :email)\" ;\r\n\r\n\t\t$consulta=$db->prepare($sql);\r\n\t\t$consulta->bindParam(':usuario',$this->usuario);\r\n\t\t$consulta->bindParam(':password',$this->password);\r\n\t\t$consulta->bindParam(':nombre',$this->nombre);\r\n\t\t$consulta->bindParam(':email',$this->email);\r\n\t\t//comprobamos si hay error en la consulta\r\n\t\tif(!$consulta){\r\n\t\t\techo \"error\";\r\n\t\t}else{\r\n\t\t\t$consulta->execute();\r\n\t\t\techo \"gg ez\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "80171b5bfbeb43a23fe37e5e9dd9c150", "score": "0.51357", "text": "public function insert()\n\t{\n // insert data ke dalam table komisariat\n $data = array(\n 'email_subscribe' => $this->input->post('txt_email'),\n );\n \n $this->db->insert($this->_table, $data);\n }", "title": "" }, { "docid": "e38e5868935036084e912ebcc49a3e3d", "score": "0.51337814", "text": "public function run(){\n $defaultPassword = md5('griever87');\n for($i=0;$i<30;$i++){\n DB::table('admins')->insert([\n 'first_name' => \"Son $i\",\n 'last_name' => 'Tran',\n 'email' => \"[email protected]\",\n 'password' => \\Hash::make($defaultPassword)\n ]);\n }\n }", "title": "" } ]
e8068f277a9edd6f5fc4c7875b12d460
Payment update status order to custom status
[ { "docid": "37030afd75b550f5e98bf93d86e6993b", "score": "0.6870773", "text": "public function paymentUpdateStatus($status, $reason = '')\n {\n if (!in_array($this->order->get_status(), array('completed'), true)) {\n $this->order->update_status($status, $reason);\n }\n }", "title": "" } ]
[ { "docid": "320d374412c35121c0825f80e3eaf246", "score": "0.8440997", "text": "public function updateOrderPaymentStatus($order);", "title": "" }, { "docid": "c4249875116c5821a1a51a37054b8b07", "score": "0.80943197", "text": "public function updateOrderPayment(OnlineShop_Framework_Payment_IStatus $status);", "title": "" }, { "docid": "909f7aa5e380b3690edcfa36f9befa95", "score": "0.769221", "text": "function ammado_update_order_status($status) {\n if($this->order_id == $status['orderId']){\n $this->order_status = $status['orderStatus'];\n $this->order_date = $status['orderDate'];\n $this->donation_amount = isset($status['donationAmount'])?$status['donationAmount']:0.00;\n $this->currency_code = isset($status['currencyCode'])?$status['currencyCode']:'USD';\n $this->beneficiary_array = isset($status['beneficiaryId'])?\n (is_array($status['beneficiaryId'])?$status['beneficiaryId']:array($status['beneficiaryId']))\n :array();\n\n $this->ammado_update_db_record();\n $this->save();\n } else return false;\n\n return $this;\n}", "title": "" }, { "docid": "10b139f30e70340059c8bb69aeb0724c", "score": "0.7542149", "text": "public function update_order_status()\r\n {\r\n if ($this->ion_auth->logged_in() && $this->ion_auth->is_admin()) {\r\n if (print_msg(!has_permissions('update', 'orders'), PERMISSION_ERROR_MSG, 'orders')) {\r\n return false;\r\n }\r\n\r\n $res = validate_order_status($_GET['id'], $_GET['status']);\r\n if ($res['error']) {\r\n $this->response['error'] = true;\r\n $this->response['message'] = $res['message'];\r\n $this->response['csrfName'] = $this->security->get_csrf_token_name();\r\n $this->response['csrfHash'] = $this->security->get_csrf_hash();\r\n $this->response['data'] = array();\r\n print_r(json_encode($this->response));\r\n return false;\r\n }\r\n\r\n $order_id = fetch_details(['id' => $_GET['id']], 'order_items', 'order_id');\r\n $order_method = fetch_details(['id' => $order_id[0]['order_id']], 'orders', 'payment_method');\r\n if($order_method[0]['payment_method'] == 'bank_transfer'){\r\n $bank_receipt = fetch_details(['order_id' => $order_id[0]['order_id']], 'order_bank_transfer');\r\n $transaction_status = fetch_details(['order_id' => $order_id[0]['order_id']], 'transactions','status');\r\n if(empty($bank_receipt) || strtolower($transaction_status[0]['status']) != 'success'){\r\n $this->response['error'] = true;\r\n $this->response['message'] = \"Order Status can not update, Bank verification is remain from transactions.\";\r\n $this->response['csrfName'] = $this->security->get_csrf_token_name();\r\n $this->response['csrfHash'] = $this->security->get_csrf_hash();\r\n $this->response['data'] = array();\r\n print_r(json_encode($this->response));\r\n return false;\r\n }\r\n }\r\n\r\n $order_item_res = $this->db->select(' * , (Select count(id) from order_items where order_id = oi.order_id ) as order_counter ,(Select count(active_status) from order_items where active_status =\"cancelled\" and order_id = oi.order_id ) as order_cancel_counter , (Select count(active_status) from order_items where active_status =\"returned\" and order_id = oi.order_id ) as order_return_counter,(Select count(active_status) from order_items where active_status =\"delivered\" and order_id = oi.order_id ) as order_delivered_counter , (Select count(active_status) from order_items where active_status =\"processed\" and order_id = oi.order_id ) as order_processed_counter , (Select count(active_status) from order_items where active_status =\"shipped\" and order_id = oi.order_id ) as order_shipped_counter , (Select status from orders where id = oi.order_id ) as order_status ')\r\n ->where(['id' => $_GET['id']])\r\n ->get('order_items oi')->result_array();\r\n\r\n if ($this->Order_model->update_order(['status' => $_GET['status']], ['id' => $order_item_res[0]['id']], true, 'order_items')) {\r\n $this->Order_model->update_order(['active_status' => $_GET['status']], ['id' => $order_item_res[0]['id']], false, 'order_items');\r\n process_refund($order_item_res[0]['id'], $_GET['status']);\r\n if (trim($_GET['status']) == 'cancelled' || trim($_GET['status']) == 'returned') {\r\n $data = fetch_details(['id' => $_GET['id']], 'order_items', 'product_variant_id,quantity');\r\n update_stock($data[0]['product_variant_id'], $data[0]['quantity'], 'plus');\r\n }\r\n if (($order_item_res[0]['order_counter'] == intval($order_item_res[0]['order_cancel_counter']) + 1 && $_GET['status'] == 'cancelled') || ($order_item_res[0]['order_counter'] == intval($order_item_res[0]['order_return_counter']) + 1 && $_GET['status'] == 'returned') || ($order_item_res[0]['order_counter'] == intval($order_item_res[0]['order_delivered_counter']) + 1 && $_GET['status'] == 'delivered') || ($order_item_res[0]['order_counter'] == intval($order_item_res[0]['order_processed_counter']) + 1 && $_GET['status'] == 'processed') || ($order_item_res[0]['order_counter'] == intval($order_item_res[0]['order_shipped_counter']) + 1 && $_GET['status'] == 'shipped')) {\r\n if ($this->Order_model->update_order(['status' => $_GET['status']], ['id' => $order_item_res[0]['order_id']], true)) {\r\n $this->Order_model->update_order(['active_status' => $_GET['status']], ['id' => $order_item_res[0]['order_id']]);\r\n /* process the refer and earn */\r\n $user = fetch_details(['id' => $order_item_res[0]['order_id']], 'orders', 'user_id');\r\n $user_id = $user[0]['user_id'];\r\n $response = process_referral_bonus($user_id, $order_item_res[0]['order_id'], $_GET['status']);\r\n\r\n $settings = get_settings('system_settings', true);\r\n $app_name = isset($settings['app_name']) && !empty($settings['app_name']) ? $settings['app_name'] : '';\r\n $user_res = fetch_details(['id' => $user_id], 'users', 'username,fcm_id');\r\n $fcm_ids = array();\r\n if (!empty($user_res[0]['fcm_id'])) {\r\n $fcmMsg = array(\r\n 'title' => \"Order status updated\",\r\n 'body' => 'Hello Dear ' . $user_res[0]['username'] . ' order status updated to ' . $_GET['status'] . ' for your order ID #' . $order_item_res[0]['id'] . ' please take note of it! Thank you for shopping with us. Regards ' . $app_name . '',\r\n 'type' => \"order\"\r\n );\r\n\r\n $fcm_ids[0][] = $user_res[0]['fcm_id'];\r\n send_notification($fcmMsg, $fcm_ids);\r\n }\r\n }\r\n }\r\n $this->response['error'] = false;\r\n $this->response['message'] = 'Status Updated Successfully';\r\n $this->response['csrfName'] = $this->security->get_csrf_token_name();\r\n $this->response['csrfHash'] = $this->security->get_csrf_hash();\r\n $this->response['data'] = array();\r\n print_r(json_encode($this->response));\r\n return false;\r\n }\r\n } else {\r\n $this->response['error'] = true;\r\n $this->response['message'] = 'Unauthorized access not allowed!';\r\n $this->response['csrfName'] = $this->security->get_csrf_token_name();\r\n $this->response['csrfHash'] = $this->security->get_csrf_hash();\r\n $this->response['data'] = array();\r\n print_r(json_encode($this->response));\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "5dcf49135186c582822773a87cb72cdc", "score": "0.74700105", "text": "public function updateStatusForOrderDetail()\n\t{\n\t\t$this->orderDetails()->update(['status' => 1]);\n\t}", "title": "" }, { "docid": "cb13d857a52368e4538b0fd751d2b143", "score": "0.74538594", "text": "function wc_admin_update_280_order_status()\n {\n }", "title": "" }, { "docid": "9ac669cc3fddaf443d6728c32ee75dc0", "score": "0.7413364", "text": "protected function _update($order, $status) {\n\n\t}", "title": "" }, { "docid": "d675ebb0e2a1f554420f5c350e781dd1", "score": "0.73699564", "text": "private function updatePaymentStatus(Order $order)\n {\n $orderUtil = new Utils\\ConnectOrderUtil();\n if (!$orderUtil->hasLocalOrderConnectProducts($order->getId())) {\n return;\n }\n\n $paymentStatusMapper = new Utils\\OrderPaymentStatusMapper();\n $paymentStatus = $paymentStatusMapper->getPaymentStatus($order);\n\n $this->generateChangeForPaymentStatus($paymentStatus);\n }", "title": "" }, { "docid": "d711403a17eb7b60168956cb6ab47458", "score": "0.7322878", "text": "function idealcheckout_update_order_status($oRecord, $sView)\n\t{\n\t\t$aDatabaseSettings = idealcheckout_getDatabaseSettings();\n\n\t\t$aOrderParams = idealcheckout_unserialize($oRecord['order_params']);\n\n\t\tif(strcasecmp($oRecord['transaction_status'], 'SUCCESS') === 0)\n\t\t{\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"virtuemart_orders` SET `order_status` = 'C' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"virtuemart_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['success']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"vm_orders` SET `order_status` = 'C' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"vm_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['success']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\t\t}\n\t\telseif(strcasecmp($oRecord['transaction_status'], 'PENDING') === 0)\n\t\t{\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"virtuemart_orders` SET `order_status` = '\" . ($aOrderParams['status']['pending']) . \"' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"virtuemart_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['pending']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"vm_orders` SET `order_status` = '\" . ($aOrderParams['status']['pending']) . \"' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"vm_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['pending']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\t\t}\n\t\telse // Failed\n\t\t{\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"virtuemart_orders` SET `order_status` = '\" . ($aOrderParams['status']['cancelled']) . \"' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"virtuemart_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['cancelled']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"UPDATE `\" . $aDatabaseSettings['prefix'] . \"vm_orders` SET `order_status` = '\" . ($aOrderParams['status']['cancelled']) . \"' WHERE (`order_number` = '\" . $oRecord['order_id'] . \"') LIMIT 1;\";\n\t\t\tidealcheckout_database_query($sql);\n\n\t\t\t$sql = \"INSERT INTO `\" . $aDatabaseSettings['prefix'] . \"vm_order_histories` SET `virtuemart_order_history_id` = NULL, `virtuemart_order_id` = '\" . $oRecord['order_id'] . \"', `order_status_code` = '\" . ($aOrderParams['status']['cancelled']) . \"', `customer_notified` = '0', `comments` = '\" . idealcheckout_getTranslation('nl', 'virtuemart', 'Payment status recieved from PSP: {status}', array('status' => $oRecord['transaction_status'])) . \"', `published` = '1', `created_on` = '\" . time() . \"', `created_by` = '0', `modified_on` = '\" . time() . \"', `modified_by` = '0';\";\n\t\t\tidealcheckout_database_query($sql);\n\t\t}\n\t}", "title": "" }, { "docid": "2de60dcd178973afd19815260ba9b38d", "score": "0.7312302", "text": "function bbloomer_get_custom_order_status_bulk( $bulk_actions ) {\n $bulk_actions['mark_custom-status'] = 'Change status to paid';\n return $bulk_actions;\n}", "title": "" }, { "docid": "e07228727451a1b474aba686111b3351", "score": "0.728919", "text": "function orderUpdate($status = 'final_order_status', $override = 0) {\r\n //Find the paid_unconfirmed status id\r\n $results = $this->getOrderStatusId('order_status_paid_unconfirmed');\r\n $paidUnconfirmedStatusId = $results?$results:0;\r\n //Find the final order status id\r\n $results = $this->getOrderStatusId($status);\r\n $finalStatusId = $results?$results:0;\r\n $reference = $this->request->gethtml('ref');\r\n //Get Order Id\r\n\t\t$res = $this->modelPayment->get_order_id($reference);\r\n $order_id = $res['order_id'];\r\n //Update order only if state in paid unconfirmed OR override is set\r\n if ($order_id) {\r\n if ($override) {\r\n // Update order status\r\n $result = $this->modelPayment->update_order_status_override($finalStatusId,$reference);\r\n // Update order_history\r\n if ($result) {\r\n\t\t\t\t\t$this->modelPayment->update_order_history($order_id, $finalStatusId, 'override');\r\n }\r\n } else {\r\n // Update order status only if status is currently paid_unconfirmed\r\n\t\t\t\t$result = $this->modelPayment->update_order_status_paidunconfirmed($finalStatusId, $reference, $paidUnconfirmedStatusId);\r\n // Update order_history\r\n if ($result) {\r\n\t\t\t\t\t//$this->modelPayment->update_order_history($order_id, $finalStatusId, 'PDT/IPN');\r\n\t\t\t\t\t$this->modelPayment->update_order_history($order_id, $finalStatusId, $this->notification);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "adf643433a9b52cd659f260e71286638", "score": "0.7239081", "text": "public function postOrderChangeStatus(){\n\t\t$order_id = Input::get('order_id');\n\t\t$order = Order::find($order_id);\n\t\t$order->status = Input::get('status');\n\t\t$order->save();\n\t}", "title": "" }, { "docid": "252c2c8e0d87eee385e25b8901cb6d7b", "score": "0.7198971", "text": "public function Update_Status_Orders($status,$id)\n {\n\n $Confirm_status = ($status == '0') ? $status = '1' : $status = '0' ;\n\n $change_status = Orders::where('order_id', $id )->first(); \n\n $change_status->order_status = $Confirm_status;\n $change_status->save();\n \n \n \n return redirect()->back()->with('success','Order Confirm bY Pharmacy Owner');\n }", "title": "" }, { "docid": "6c476e7d3cb15ebf540e2e2fe01d3d1c", "score": "0.7178876", "text": "public function one_click_status_update() {\n\n\t\t\tif ( ! empty( $_POST['status'] ) && ! empty( $_POST['order'] ) ) {\n\t\t\t\t$status = $_POST['status'];\n\t\t\t\t$order_id = $_POST['order'];\n\n\n\t\t\t\t// api order\n\t\t\t\tinclude_once( dirname( __FILE__ ) . '/class-wc-oyst-api.php' );\n\n\t\t\t\t$oystClient = WC_Oyst_API::get_order_api();\n\n\t\t\t\tswitch ( $status ) {\n\t\t\t\t\tcase 'accepted':\n\t\t\t\t\t\t$oystClient->accept( $order_id );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'denied':\n\t\t\t\t\t\t$oystClient->deny( $order_id );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\texit();\n\n\t\t}", "title": "" }, { "docid": "f23b4a60e0580b51527f60e0560f11f4", "score": "0.7171521", "text": "function edit_status($order=false){\n\t\textract($order);\n\t\tif($purchlog_data['gateway'] == 'wpec_auth_net'){\n\t\t\t$auth_net = new wpec_auth_net($purchlog_id);\n\t\t\tif(!$auth_net->beenCaptured($purchlog_id)){\n\t\t\t\tif($auth_net->capturePreAuth($order)){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{ \n\t\t\t\t\t//Kill THis processes so this order status can't get updated\n\t\t\t\t\tdie('Failed to capture payment');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c7809a4d84820ee7fd68f02cf14a8b9d", "score": "0.7159397", "text": "function change_status($new_status, $extra='')\r\n{\t\r\n\t$old_status_description = PayageHelper::getPaymentDescription($this->data->pg_status_code);\r\n\t$new_status_description = PayageHelper::getPaymentDescription($new_status);\r\n\t\r\n\t$result = $this->ladb_execute(\"UPDATE `#__payage_payments` \r\n\t\tSET `pg_status_code` = '$new_status',\r\n\t\t\t`pg_status_text` = '',\r\n\t\t\t`gw_pending_reason` = '',\r\n\t\t `pg_history` = \".$this->_db->Quote($this->data->pg_history.\"\\n\".$this->data->now.\" - \".$extra.$old_status_description.\" -> \".$new_status_description).\r\n\t\t\" WHERE `id` = \".$this->_db->Quote($this->data->id));\r\n\t\t\r\n\tif ($result === false)\r\n\t\t{\r\n\t\tLAPG_trace::trace($this->ladb_error_text);\r\n\t\treturn false;\r\n\t\t}\r\n\r\n\treturn true;\r\n}", "title": "" }, { "docid": "e120bd8807adcaaf6a5df51e729a19cf", "score": "0.71315694", "text": "public static function mark_order_status()\n {\n }", "title": "" }, { "docid": "afa1d9387d972c34e29a6d90488504d1", "score": "0.7093308", "text": "function bbloomer_register_custom_order_status( $order_statuses ){\n $order_statuses['wc-custom-status'] = array( \n 'label' => _x( 'Paid', 'Order status', 'woocommerce' ),\n 'public' => false, \n 'exclude_from_search' => false, \n 'show_in_admin_all_list' => true, \n 'show_in_admin_status_list' => true, \n 'label_count' => _n_noop( 'Paid <span class=\"count\">(%s)</span>', 'Paid <span class=\"count\">(%s)</span>', 'woocommerce' ), \n ); \n return $order_statuses;\n}", "title": "" }, { "docid": "61d37b98a9e08188d327843531b9fc23", "score": "0.70828557", "text": "public function changeStatus(){\n\t\t$status = $this->input->post_get('status');\n\t\t$order_number = $this->input->post_get('order_number');\n\t\t$admin_id = $this->input->post_get('admin_id');\n\t\t//$id = '1';\n\t\t//exit();\n\t\t$success = $this->Ordersmodel->updateStatus($order_number,$status,$admin_id);\n\t\tif($success){\n\t\t\techo 'order updated successfully';\n\t\t}else{\n\t\t\techo 'update failed';\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f01e92f0a88c9065d91c368747525623", "score": "0.7073204", "text": "public function updateOnlyPaymentStatus($quote);", "title": "" }, { "docid": "8cb7c1856f762e372777f899abc0f266", "score": "0.70702505", "text": "public abstract function changeOrderStatus($status);", "title": "" }, { "docid": "95ce5e8d0a022aacd430ad48dc1d3e10", "score": "0.7057528", "text": "function orderPayManually($order_id)\n {\n $status = false;\n $order = Order::findOrFail($order_id);\n\n if( $order->where('order_id', $order_id)->update(['online_paid' => 3]) )\n {\n $status = true;\n }\n\n return response()->json(['status' => $status, 'order' => $order]);\n }", "title": "" }, { "docid": "1ecdb461f195c3e22a1318b7f37088a0", "score": "0.7031525", "text": "public function check_payment_status() {\n\t\t\t// get post data\n\t\t\t$body = file_get_contents('php://input');\n\t\t\tif ( $body ) {\n\t\t\t\t$response\t= json_decode( $body ); \n\t\t\t\t$order_id \t= $response->order_id;\n\t\t\t\t$order \t\t= wc_get_order( $order_id );\n\n\t\t\t\t// success\n\t\t\t\tif ( $response->status_code == '200' ) {\n\t\t\t\t\t// note\n\t\t\t\t\t$order->add_order_note( \n\t\t\t\t\t\tsprintf( '%s: %s [%s]. %s', \n\t\t\t\t\t\t\t__( 'Midtrans HTTP notifications received', 'ms-midtrans-core' ),\n\t\t\t\t\t\t\t$response->transaction_status,\n\t\t\t\t\t\t\t$response->status_code,\n\t\t\t\t\t\t\t$this->method_title\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t// processing with note\n\t\t\t\t\twc_reduce_stock_levels( $order_id );\n\n\t\t\t\t\t// $order->payment_complete(); with note\n\t\t\t\t\t$order->update_status( 'processing' );\n\n\t\t\t\t\t// completed with note\n\t\t\t\t\t$order->update_status( 'completed' );\n\t\t\t\t} \n\n\t\t\t\t// pending payent\n\t\t\t\telse if ( $response->status_code == '201' ) {\n\t\t\t\t\t// note\n\t\t\t\t\t$order->add_order_note( \n\t\t\t\t\t\tsprintf( '%s: %s [%s]. %s', \n\t\t\t\t\t\t\t__( 'Midtrans HTTP notifications received', 'ms-midtrans-core' ),\n\t\t\t\t\t\t\t$response->transaction_status,\n\t\t\t\t\t\t\t$response->status_code,\n\t\t\t\t\t\t\t$this->method_title\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t} \n\n\t\t\t\t// failed or denied payment\n\t\t\t\telse {\n\t\t\t\t\t// note\n\t\t\t\t\t$order->add_order_note( \n\t\t\t\t\t\tsprintf( '%s: %s [%s]. %s', \n\t\t\t\t\t\t\t__( 'Midtrans HTTP notifications received', 'ms-midtrans-core' ),\n\t\t\t\t\t\t\t$response->transaction_status,\n\t\t\t\t\t\t\t$response->status_code,\n\t\t\t\t\t\t\t$this->method_title\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t// cancelled\n\t\t\t\t\t$order->update_status( 'cancelled', __( 'The order was cancelled due to no payment from customer.', 'ms-midtrans-core') );\n\t\t\t\t\t\n\t\t\t\t\t// note\n\t\t\t\t\t$order->add_order_note( __( 'Order status changed from Pending payment to Cancelled.', 'ms-midtrans-core' ) );\n\t\t\t\t}\n\n\t\t\t\t// save payment status notifications\n\t\t\t\tupdate_post_meta( $order_id, '_ms_midtrans_payment_status', maybe_serialize( json_decode( $body, true ) ) );\n\n\t\t\t\t/**\n\t\t\t\t * $this->write_log( 'Ping from midtrans' );\n\t\t\t\t * $this->write_log( $response );\n\t\t\t\t */\n\t\t\t}\n\t\t\texit;\n\t\t}", "title": "" }, { "docid": "89566286eca949740ab42338b58b957c", "score": "0.7025796", "text": "public function hookActionOrderStatusUpdate($params)\n {\n\t if (Configuration::get('TOKOPINI_ENABLE_APPLY_VOUCHER') == '1')\n\t {\n\t\t\t$new_status = $params['newOrderStatus'];\n\t\t\t// Execute request to add beans points to the user card.\n\t\t\tif($new_status->paid){\n\t\t\t\t//$order = new Order($params['id_order']);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "b7f5cb0d60c90ae1d07a376e6376da71", "score": "0.70025814", "text": "public function setOrderPaymentStatusComplete() {\n $orders = Mage::getmodel('sales/order')->getCollection()\n ->addFieldToFilter('status', 'complete')\n ->addFieldToFilter('softss_afterbuy_synced', 0)\n ->addFieldToFilter('state', array('neq', 'canceled'));\n\n foreach ($orders as $order) {\n $amount = number_format($order->getGrandTotal(), 2, ',', '');\n $orderIncrementId = $order->getIncrementId();\n\n $afterbuyOrderID = Mage::getModel('afterbuycheckout/afterbuycheckout')->getAfterbuyId($orderIncrementId);\n $aResponse = $this->setAfterbuyStatus($afterbuyOrderID, $amount);\n\n // if error...\n if (preg_match(\"/<CallStatus>Success<\\/CallStatus>/\", $aResponse['response'])) {\n // set flag afterbuy synced to true\n $order->setSoftssAfterbuySynced('1')->save();\n }else{\n try {\n $mail_content = 'Magento Order Increment ID : ' . $orderIncrementId . ', AfterBuy OrderId : ' . $afterbuyOrderID . '. Fehler bei &Uuml;bertragung der Bestellung an Afterbuy: ' . chr(13) . chr(10) .\n 'Folgende Fehlermeldung wurde gemeldet:' . chr(13) . chr(10) . $aResponse['response'] . chr(13) . chr(10).' Request: '.$aResponse['request'].chr(13) . chr(10);\n\n $mail = new Zend_Mail();\n $mail->setBodyText($mail_content);\n $mail->setFrom('[email protected]', 'Magento');\n $mail->addTo('[email protected]', 'Admin');\n $mail->setSubject('Afterbuy setOrderPaymentStatusComplete Fehler');\n $mail->send();\n } catch (exception $e) {\n Mage::log($e->getMessage());\n }\n }\n }\n }", "title": "" }, { "docid": "ff721134f5675b20a1d75ca8a2e6f788", "score": "0.6986623", "text": "public function actionUpdateStatus()\n {\n $this->requireAjaxRequest();\n $orderId = craft()->request->getParam('orderId');\n $orderStatusId = craft()->request->getParam('orderStatusId');\n $message = craft()->request->getParam('message');\n\n $order = craft()->commerce_orders->getOrderById($orderId);\n $orderStatus = craft()->commerce_orderStatuses->getOrderStatusById($orderStatusId);\n\n if (!$order or !$orderStatus)\n {\n $this->returnErrorJson(Craft::t('Bad Order or Status'));\n }\n\n $order->orderStatusId = $orderStatus->id;\n $order->message = $message;\n\n if (craft()->commerce_orders->saveOrder($order))\n {\n $this->returnJson(['success' => true]);\n }\n }", "title": "" }, { "docid": "f095075838bd3d7ca5067505507a0570", "score": "0.6986258", "text": "function hookUpdateOrderStatus($params) {\n /*if (CreditCard_OrderState::isDeleteOnState(intval($params['newOrderStatus']->id)))\n CreditCard_Order::removeDataString($params['id_order']);*/\n }", "title": "" }, { "docid": "602deaf3b26896c74d785482aa272e06", "score": "0.69858193", "text": "function change_order_custom_status_on_update( $post_id ){\n\tif ( empty( $_POST['acf'] ) ) {\n\t\treturn;\n\t}\n\n\t$prev_value = get_field('dms_order_status', $post_id);\n\n\t// Check if rest has accepted\n\t$acf = $_POST['acf'];\n\t$current_time = current_time( 'Y-m-d H:i:s' );\n\n\tif( ( $new_driver_id = $acf['field_57d15d29a6b98'] ) !== ( $old_driver_id = get_post_meta( $post_id, \"dms_order_driver\", true ) ) ){\n\n\t\tif( $new_driver_id && $old_driver_id ){\n\t\t\t$title \t\t= \"Te han asignado nuevo pedido\";\n\t\t\t$message \t= \"Nuevo pedido: #\" . $post_id;\n\t\t\tpush_notification_to_single_driver( $new_driver_id, $message, $title );\n\t\t}\n\t}\n\n\tif( $acf['field_5747129addb9f'] == \"problem\" && $prev_value != \"problem\" ){\n\t\t$_POST['acf']['field_576a57d7aa7c9'] = $current_time;\n\t\t$title \t\t= \"Incidencia\";\n\t\t$message \t= \"Incidencia con tu pedido\";\n\t\t$driver_id \t= $acf['field_57d15d29a6b98'];\n\t\tpush_notification_to_single_driver( $driver_id, $message, $title );\n\t\treturn;\n\t}\n\n\tif( ( $acf['field_5747129addb9f'] == \"cancelled_return_money\" && $prev_value != \"cancelled_return_money\" ) || ( $acf['field_5747129addb9f'] == \"order_cancelled\" && $prev_value != \"order_cancelled\" ) ){\n\t\t$_POST['acf']['field_580a0ea69b9cb'] = $current_time;\n\t\treturn;\n\t}\n\n\tif( $acf['field_5747129addb9f'] == \"rest_has_accepted\" ){\n\n\t\tif( $prev_value != \"rest_has_accepted\" ){\n\t\t\t$_POST['acf']['field_576a56edaa7c4'] = $current_time;\n\n\t\t\tdms_send_mail_to_customer_on_rest_accepted( $post_id );\n\t\t}\n\n\t\t$order \t\t\t\t= wc_get_order( $post_id );\n\t\t$shipping_items \t= $order->get_items( 'shipping' );\n\t\t$shipping_id \t\t= $shipping_items[0]['method_id'];\n\n\t\tif( $shipping_id != \"local_pickup\" ){\n\t\t\t$notification_sent = get_post_meta( $post_id, \"dms_order_notification_sent\", true );\n\n\t\t\tif( $notification_sent != 1 ){\n\t\t\t\t$driver_id \t= $acf['field_57d15d29a6b98'];\n\n\t\t\t\tif( $driver_id != \"\" ){\n\t\t\t\t\t$_POST['acf']['field_5747129addb9f'] = \"driver_has_accepted\";\n\t\t\t\t\t$_POST['acf']['field_576a574daa7c5'] = $current_time;\n\t\t\t\t\t$title \t\t= \"Te han asignado nuevo pedido\";\n\t\t\t\t\t$message \t= \"Nuevo pedido: #\" . $post_id;\n\t\t\t\t\tpush_notification_to_single_driver( $driver_id, $message, $title );\n\t\t\t\t}else{\n\t\t\t\t\t$title \t\t= \"Nuevo pedido\";\n\t\t\t\t\t$message \t= \"Nuevo pedido: #\" . $post_id;\n\t\t\t\t\tpush_notification_to_all_drivers( $post_id, $message, $title );\n\t\t\t\t}\n\n\t\t\t\tupdate_post_meta( $post_id, \"dms_order_notification_sent\", 1 );\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif( $acf['field_5747129addb9f'] == \"order_delivered\" && $prev_value != \"order_delivered\" ){\n\t\t$_POST['acf']['field_576a57bcaa7c8'] = $current_time;\n\t\treturn;\n\t}\n}", "title": "" }, { "docid": "4b223503f677a89a0d1a2ecd73a92eab", "score": "0.69185525", "text": "public function update($id, UpdateOrderRequest $request)\r\n {\r\n \r\n \r\n $this->orderRepository->pushCriteria(new OrdersOfUserCriteria(auth()->id()));\r\n $oldOrder = $this->orderRepository->findWithoutFail($id);\r\n if (empty($oldOrder)) {\r\n Flash::error(__('lang.not_found', ['operator' => __('lang.order')]));\r\n return redirect(route('orders.index'));\r\n }\r\n $oldStatus = $oldOrder->payment->status;\r\n $input = $request->all();\r\n \r\n \r\n \r\n \r\n if($input['order_status_id']=='5')\r\n {\r\n \r\n \r\n \r\n $user_ID=$input['user_id'];\r\n \r\n $usersD = DB::table('users')\r\n ->select('applied_used_id')\r\n ->where('id', $user_ID)\r\n ->get();\r\n if(!empty($usersD))\r\n {\r\n\r\n $allowrefer = DB::table('orders')->where('user_id', $user_ID )->where('order_status_id',5)->first();\r\n \r\n \r\n \r\n $sendersUSerID=$usersD[0]->applied_used_id;\r\nif($sendersUSerID!=0)\r\n{\r\n if(empty($allowrefer))\r\n {\r\n $allowreferD = DB::table('app_settings')->where('id', 184 )->get();\r\n \r\n$ammounttoadd=$allowreferD[0]->value;\r\n\r\n $ref=\"Referral code\";\r\n $this->wallet_add($user_ID,$ammounttoadd,$ref);\r\n \r\n \r\n $this->wallet_add($sendersUSerID,$ammounttoadd,$ref); \r\n\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n\r\n}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->orderRepository->model());\r\n try {\r\n\r\n $order = $this->orderRepository->update($input, $id);\r\n\r\n// print_r($order);\r\n// exit;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n if (setting('enable_notifications', false)) {\r\n if (isset($input['order_status_id']) && $input['order_status_id'] != $oldOrder->order_status_id) {\r\n Notification::send([$order->user], new StatusChangedOrder($order));\r\n }\r\n\r\n if (isset($input['driver_id']) && ($input['driver_id'] != $oldOrder['driver_id'])) {\r\n $driver = $this->userRepository->findWithoutFail($input['driver_id']);\r\n if (!empty($driver)) {\r\n Notification::send([$driver], new AssignedOrder($order));\r\n }\r\n }\r\n }\r\n\r\n $this->paymentRepository->update([\r\n \"status\" => $input['status'],\r\n ], $order['payment_id']);\r\n \r\n // print_r($order);\r\n // exit;\r\n\r\n event(new OrderChangedEvent($oldStatus, $order));\r\n\r\n foreach (getCustomFieldsValues($customFields, $request) as $value) {\r\n $order->customFieldsValues()\r\n ->updateOrCreate(['custom_field_id' => $value['custom_field_id']], $value);\r\n }\r\n } catch (ValidatorException $e) {\r\n Flash::error($e->getMessage());\r\n }\r\n\r\n Flash::success(__('lang.updated_successfully', ['operator' => __('lang.order')]));\r\n\r\n return redirect(route('orders.index'));\r\n }", "title": "" }, { "docid": "1177ebf2771c18396ffbdb65746af119", "score": "0.6877157", "text": "public function update_status( Pronamic_Pay_Payment $payment ) {\n\t\t$result = $this->client->get_payment_status( $payment->get_id() );\n\n\t\tif ( $result ) {\n\t\t\t$payment->set_status( Pronamic_WP_Pay_Gateways_PayDutch_States::transform( $result->state ) );\n\t\t\t$payment->set_consumer_name( $result->consumername );\n\t\t\t$payment->set_consumer_account_number( $result->consumeraccount );\n\t\t\t$payment->set_consumer_city( $result->consumercity );\n\t\t\t// $payment->set_consumer_country( $result->consumercountry );\n\t\t} else {\n\t\t\t$this->error = $this->client->get_error();\n\t\t}\n\t}", "title": "" }, { "docid": "60f3d31981681ee0d356cbae871d2286", "score": "0.68700206", "text": "function wc_admin_update_0201_order_status_index()\n {\n }", "title": "" }, { "docid": "9b3c0bfcf238902d8c371678d9e5653a", "score": "0.6851743", "text": "public function statusUpdateAction() {\r\n\r\n\t\t// init variables\r\n\t\t$request = $this->getRequest();\r\n\t\t$user = $this->loggedInUser();\r\n\t\t$result = array('errcode' => 0, 'errmsg' => 'Ok.'); // default response\r\n\r\n\t\t// get the order object\r\n\t\t$order_id = $request->getParam('id');\r\n\t\t$ordModel = Base::getModel('Common_Orders');\r\n\t\t$order = $ordModel->fetchById($order_id);\r\n\r\n\t\t// validate the new status\r\n\t\t$status = $request->getParam('status');\r\n\t\tif (!in_array($status, $this->_statuses)) {\r\n\t\t\t$result['errcode'] = 1;\r\n\t\t\t$result['errmsg' ] .= \" - Invalid status<br />\";\r\n\t\t}\r\n\r\n\t\t$note = $request->getParam('note');\r\n\t\tif (empty($note)) {\r\n\t\t\t$result['errcode'] = 1;\r\n\t\t\t$result['errmsg' ] .= \" - Missing note<br />\";\r\n\t\t}\r\n\t\t\r\n\t\tif ($result['errcode'] == 0) {\r\n\t\t\t$order->changeStatus($status, $note, $user->id);\r\n\t\t\t$due_date = date('d-M-Y', strtotime($order->date_due));\r\n\t\t\tif (empty($order->date_due)) {\r\n\t\t\t\t$due_date = 'n/a';\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t$start_date = $order->firstActiveStatusDate() \r\n\t\t\t\t\t\t ? date('d-M-Y', strtotime($order->firstActiveStatusDate())) : 'n/a';\r\n\t\t\t\r\n\t\t\t$result['data'] = array(\r\n\t\t\t\t'start_date' => $start_date,\r\n\t\t\t\t'due_date' => $due_date,\r\n\t\t\t\t'remaining_days' => $order->daysToDueNice(),\r\n\t\t\t\t'status'\t => $order->status(),\r\n\t\t\t\t'itemStatusDominant' => $order->itemStatusDominant(),\r\n\t\t\t\t'statusColor' => $order->statusColor(),\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\t$this->_helper->viewRenderer->setNoRender(true);\r\n\t\t$this->getResponse()->setHeader('Content-Type','text/html');\r\n\t\t$this->getResponse()->setBody(Zend_Json::encode($result));\r\n\t}", "title": "" }, { "docid": "00c2b631b28eb93dd2658d314ac204df", "score": "0.6845689", "text": "function update_payment_status($app_reference, $ref)\t\r\n\t{\t\r\n\t\t$cond['app_reference'] = $app_reference;\t\r\n\t\t$cond['payment_history_ref'] = $ref;\t\r\n\t\t$data['status'] = 'accepted';\t\r\n\t\t\t\r\n\t\t$cond1['enquiry_reference_no'] = $app_reference;\t\r\n\t\t$cond1['id'] = $ref;\t\r\n\t\t$data1['status'] = 'SUCCESS';\t\r\n\t\t$this->custom_db->update_record('payment_gateway_details', $data, $cond);\t\r\n\t\t$this->custom_db->update_record('tour_payment_slab_details', $data1, $cond1);\t\r\n\t}", "title": "" }, { "docid": "43ebe5783630cc0cd0f216048e165892", "score": "0.6841482", "text": "public function orderStatusUpdate(Request $request) {\n if (Auth::user()->can('orders', 'write') && Auth::user()->role_id == 1) {\n $order = Orders::where('id', $request->id)->first();\n if ($order != null) {\n // $dataArray = [\"name\" => $activity->merchant->name , \"email\" => $activity->merchant->email , \"activityname\" => $activity->title ,'resondecline' => $reasonDecline];\n if ($request->status == \"pending\") {\n $order->status = '0';\n // $template = EmailTemplate::where('name', 'approve-activity')->first();\n } elseif ($request->status == \"canceled\") {\n $order->status = '1';\n // $template = EmailTemplate::where('name', 'decline-activity')->first();\n } elseif ($request->status == \"confirmed\") {\n $order->status = '2';\n // $template = EmailTemplate::where('name', 'decline-activity')->first();\n } elseif ($request->status == \"expired\") {\n $order->status = '3';\n // $template = EmailTemplate::where('name', 'decline-activity')->first();\n }\n // Mail::send([], [], function($message) use ($template,$dataArray) {\n // $data = [\n // 'toMerchantName' => $dataArray['name'],\n // 'activityName' => $dataArray['activityname'],\n // 'resonDecline' => $dataArray['resondecline'],\n // ];\n // $message->to($dataArray['email'], $dataArray['name'])\n // ->subject($template->subject)\n // ->setBody($template->parse($data), 'text/html');\n // });\n $order->save();\n\n Session::flash('success', 'Order has been ' . $request->status . '.');\n return redirect()->route('Orders');\n } else {\n Session::flash('error', 'Something went wrong please try again later.');\n return redirect()->route('Orders');\n }\n } else {\n Session::flash('error', 'You are not authorized to access this feature');\n return redirect()->route('merchantdashboard');\n }\n }", "title": "" }, { "docid": "502d329529dc2df1a1808c23f3b1235c", "score": "0.6837381", "text": "public function hookActionOrderStatusUpdate($params)\n {\n $apiKey = '';\n $transactionStatus = '';\n $requestHelper = new RequestHelper();\n $bayonetOrder = Db::getInstance()->getRow('SELECT * FROM `' . _DB_PREFIX_ . 'bayonet_antifraud_orders`\n WHERE `order_id` = ' . (int) $params['id_order']);\n\n if (isset($bayonetOrder) && false !== $bayonetOrder) {\n if (null !== $bayonetOrder['bayonet_tracking_id'] && null !== $bayonetOrder['current_status']) {\n $updateRequest = [\n 'bayonet_tracking_id' => $bayonetOrder['bayonet_tracking_id'],\n ];\n\n if (1 === (int) $bayonetOrder['api_mode']) {\n $apiKey = Configuration::get('BAYONET_AF_API_LIVE_KEY');\n }\n\n if ('pending' === $bayonetOrder['current_status']) {\n if (1 === (int) $params['newOrderStatus']->paid) {\n $transactionStatus = 'success';\n } elseif (false !== strpos(Tools::strtolower($params['newOrderStatus']->template), 'cancel')) {\n $transactionStatus = 'cancelled';\n }\n } elseif ('success' === $bayonetOrder['current_status']) {\n if (false !== strpos(Tools::strtolower($params['newOrderStatus']->template), 'cancel') ||\n false !== strpos(Tools::strtolower($params['newOrderStatus']->template), 'refund')) {\n $transactionStatus = 'cancelled';\n } elseif (1 !== (int) $params['newOrderStatus']->paid) {\n $transactionStatus = 'pending';\n }\n } elseif ('cancelled' === $bayonetOrder['current_status']) {\n if (1 === (int) $params['newOrderStatus']->paid) {\n $transactionStatus = 'success';\n }\n }\n\n if ('' !== $transactionStatus && '' !== $apiKey) {\n $updateRequest['transaction_status'] = $transactionStatus;\n $updateRequest['auth']['api_key'] = $apiKey;\n $response = $requestHelper->updateTransaction($updateRequest);\n\n if (isset($response)) {\n if (isset($response->reason_code) && (int) $response->reason_code === 0) {\n Db::getInstance()->update(\n 'bayonet_antifraud_orders',\n [\n 'feedback_api' => 1,\n 'feedback_api_response' => json_encode(\n [\n 'reason_code' => (int) $response->reason_code,\n 'reason_message' => pSQL($response->reason_message),\n ]\n ),\n 'current_status' => pSQL($transactionStatus),\n ],\n 'order_id = ' . (int) $params['id_order']\n );\n } elseif (isset($response->reason_code) && (int) $response->reason_code !== 0) {\n $message = str_replace(\"'\", '-', $response->reason_message);\n Db::getInstance()->update(\n 'bayonet_antifraud_orders',\n [\n 'feedback_api' => 0,\n 'feedback_api_response' => json_encode(\n [\n 'reason_code' => (int) $response->reason_code,\n 'reason_message' => pSQL($message),\n ]\n ),\n 'current_status' => pSQL($transactionStatus),\n ],\n 'order_id = ' . (int) $params['id_order']\n );\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "1b91ad588fa7494876b8b9327cadcb1f", "score": "0.68277776", "text": "function fn_mobile_app_change_order_status(\n $status_to,\n $status_from,\n $order_info,\n $force_notification,\n $order_statuses,\n $place_order\n) {\n $status_params = $order_statuses[$status_to]['params'];\n\n if ($place_order\n || $force_notification === false\n || isset($force_notification['C']) && $force_notification['C'] === false\n || empty($status_params['notify'])\n || $status_params['notify'] != 'Y'\n || empty($order_info['user_id'])\n || $status_to == STATUS_INCOMPLETED_ORDER\n || $order_info['status'] == STATUS_PARENT_ORDER\n ) {\n return;\n }\n\n $order_id = $order_info['order_id'];\n $user_id = $order_info['user_id'];\n $notification_language = isset($order_info['lang_code'])\n ? $order_info['lang_code']\n : CART_LANGUAGE;\n\n $title = __('change_order_status_default_subj', array(\n '[order]' => $order_id,\n '[status]' => $order_statuses[$status_to]['description'],\n ), $notification_language);\n $message = __('change_order_status_default_text', array(\n '[status]' => $order_statuses[$status_to]['description'],\n ), $notification_language);\n\n fn_mobile_app_notify_user(\n $user_id,\n $title,\n $message,\n Registry::get('config.customer_index') . '?dispatch=orders.details&order_id=' . $order_id\n );\n}", "title": "" }, { "docid": "ae4bf6c924a4b944387f14a18f905766", "score": "0.6820634", "text": "function add_subscription_paid_to_order_statuses( $order_statuses ) {\r\n \r\n $new_order_statuses = array();\r\n \r\n // add new order status after processing\r\n foreach ( $order_statuses as $key => $status ) {\r\n \r\n $new_order_statuses[ $key ] = $status;\r\n \r\n if ( 'wc-processing' === $key ) {\r\n $new_order_statuses['wc-subscription-paid'] = 'MP Subscription Paid';\r\n }\r\n }\r\n \r\n return $new_order_statuses;\r\n}", "title": "" }, { "docid": "41820bec82f30b60300a3e8d85796c8d", "score": "0.6816783", "text": "public function approved_orders_status($order_no){\n $data = array();\n\n $data['status'] = 1;\n $order_status = DB::table('order_infos')->where('order_no', $order_no)->update($data);\n return back()->with('message', 'Order Approved Successfully');\n }", "title": "" }, { "docid": "e894be45a085f80a8ec20040426fc3c4", "score": "0.6812925", "text": "public function update_status( Pronamic_Pay_Payment $payment ) {\n\t\tif ( filter_has_var( INPUT_GET, 'status' ) ) {\n\t\t\t$status = filter_input( INPUT_GET, 'status', FILTER_SANITIZE_STRING );\n\n\t\t\t$payment->set_status( $status );\n\t\t}\n\t}", "title": "" }, { "docid": "11135088de4aca6ae313441db9eeecc2", "score": "0.6812035", "text": "function update_order_status($dat){\n\t\tif(isset($_SESSION[\"user_id\"])){\n\t\t\tif(isset($dat[\"order_id\"]) && isset($dat[\"status\"])){\n\t\t\t $or_dat=array(); \n\t\t\t\t $or_dat[\"status\"]=$dat[\"status\"];\n\t\t\t\t $or_dat[\"update_on\"]=timestamp();\n\t\t\t\t $or_dat[\"completed_date\"]=timestamp();\n\t\t\t\t $or_dat[\"completedby\"]=$_SESSION[\"user_id\"];\n\t\t\t $res=update(\"snax_orders\",$or_dat,\"order_id=\".$dat[\"order_id\"]) ;\n\t\t\t $res=array();\n\t\t\t\t $res[\"status\"]=1;\n\t\t\t\t $res[\"message\"]=\"Status Updated Successfully\";\t\n\t\t\t\t return $res;\n\t\t\t}\n\t\t\telse{\n\t\t\t $res=array();\n\t\t\t $res[\"status\"]=0;\n\t\t\t $res[\"message\"]=\"Either Status or Order Id is missing\";\t\n\t\t\t return $res;\n\t\t\t}\n\t\t}\n else{\n\t\t $res=array();\n\t\t\t $res[\"status\"]=0;\n\t\t\t $res[\"message\"]=\"Login to do update Order Status\";\t\n\t\t\t return $res;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "63226d2935595e03d5c7fce38ef18844", "score": "0.6798218", "text": "private function updateOrderStatus(Order $order)\n {\n $attribute = $order->getAttribute();\n if (!$attribute || !$attribute->getConnectShopId()) {\n return;\n }\n\n $orderStatusMapper = new Utils\\OrderStatusMapper();\n $orderStatus = $orderStatusMapper->getOrderStatusStructFromOrder($order);\n $tracking = new Tracking();\n $tracking->id = $order->getTrackingCode();\n $orderStatus->tracking = $tracking;\n try {\n $this->sdk->updateOrderStatus($orderStatus);\n } catch (\\Exception $e) {\n // if sn is not available, proceed without exception\n }\n }", "title": "" }, { "docid": "ad567f8cbcc3f9e578ee4fc935e948dd", "score": "0.67978925", "text": "public function actionChangeStatus() {\n // grabbing order id and status from post request\n $id=Yii::app()->request->getParam('id',0);\n $status=Yii::app()->request->getParam('status',0);\n $success=false;\n $msg='';\n\n // if either the order id or status in the post request is empty stop here\n if ( empty($id) || empty($status) ) die;\n\n // convert encrypted values to data values\n $id = FilingGenerics::decryptKey($id);\n $status = FilingGenerics::decryptKey($status);\n\n //Get the current status\n $model=$this->loadModel($id);\n date_default_timezone_set('America/Los_Angeles');\n $curTime = date(\"m/d/Y H:i:s a\");\n\n // insert order history\n $oldStatus = GlobalTrackerOrder::$arrStatus[$model->status];\n $newStatus = GlobalTrackerOrder::$arrStatus[$status];\n $this->insertHistoryO($model->id,'Status',$oldStatus,$newStatus,$curTime,$model->created_by);\n\n $model->status=$status;\n\n if($model->validate()) {\n $model->save();\n $success=true;\n $msg='Status updated successfully';\n } else {\n $success=false;\n $msg='Status could not be updated';\n }\n echo CJSON::encode(array('success'=>$success,'msg'=>$msg));\n }", "title": "" }, { "docid": "bbce1f6d6d1558271af93e7628c9908e", "score": "0.6795966", "text": "public function update_payment() {\r\n \r\n }", "title": "" }, { "docid": "980d042095cee93fb44efb86e541686c", "score": "0.6765087", "text": "function update_status() {\n if (is_array($this->modules)) {\n if (strpos($this->selected_module, '\\\\') !== false) {\n $code = 'Payment_' . str_replace('\\\\', '_', $this->selected_module);\n\n if (Registry::exists($code)) {\n $OSCOM_PM = Registry::get($code);\n\n if (method_exists($OSCOM_PM, 'update_status')) {\n $OSCOM_PM->update_status();\n }\n }\n } else {\n if (is_object($GLOBALS[$this->selected_module])) {\n if (method_exists($GLOBALS[$this->selected_module], 'update_status')) {\n $GLOBALS[$this->selected_module]->update_status();\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a7475a3da4c0a36688b2c03ad15c7874", "score": "0.67478096", "text": "function update_status($save_status = true)\n {\n $old_status = $this->status_text;\n\n\n if ($this->approval_is_approved == 1) {\n $this->set('status_text', Language::get('estimate.status_approved'));\n }\n else if ($this->approval_is_rejected == 1) {\n $this->set('status_text', Language::get('estimate.status_rejected'));\n }\n else if (isset($this->date_sent)) {\n $this->set('status_text', Language::get('estimate.status_sent'));\n\n } else {\n $this->set('status_text', Language::get('estimate.status_draft'));\n\n }\n//if the old status and the new status do not match, then we need to save this invoice back to the database.\n if (($save_status == true) && ($old_status != (string)$this->status_text)) {\n $this->unset_params_not_saved_to_db();\n call_user_func(array('Model', 'save'));\n }\n }", "title": "" }, { "docid": "47dbcea45bcf42cb5c4e1f46a1397717", "score": "0.6738174", "text": "public function update_status( Pronamic_Pay_Payment $payment ) {\n\t\t$input_data = filter_input( INPUT_POST, 'Data', FILTER_SANITIZE_STRING );\n\t\t$input_seal = filter_input( INPUT_POST, 'Seal', FILTER_SANITIZE_STRING );\n\n\t\t$data = Pronamic_Gateways_OmniKassa_OmniKassa::parse_piped_string( $input_data );\n\n\t\t$seal = Pronamic_Gateways_OmniKassa_OmniKassa::compute_seal( $input_data, $this->config->secret_key );\n\n\t\t// Check if the posted seal is equal to our seal\n\t\tif ( strcasecmp( $input_seal, $seal ) === 0 ) {\n\t\t\t$response_code = $data['responseCode'];\n\n\t\t\t$status = Pronamic_WP_Pay_OmniKassa_ResponseCodes::transform( $response_code );\n\n\t\t\t// Set the status of the payment\n\t\t\t$payment->set_status( $status );\n\n\t\t\t$labels = array(\n\t\t\t\t'amount' \t => __( 'Amount', 'pronamic_ideal' ),\n\t\t\t\t'captureDay' => _x( 'Capture Day', 'creditcard', 'pronamic_ideal' ),\n\t\t\t\t'captureMode' => _x( 'Capture Mode', 'creditcard', 'pronamic_ideal' ),\n\t\t\t\t'currencyCode' => __( 'Currency Code', 'pronamic_ideal' ),\n\t\t\t\t'merchantId' => __( 'Merchant ID', 'pronamic_ideal' ),\n\t\t\t\t'orderId' => __( 'Order ID', 'pronamic_ideal' ),\n\t\t\t\t'transactionDateTime' => __( 'Transaction Date Time', 'pronamic_ideal' ),\n\t\t\t\t'transactionReference' => __( 'Transaction Reference', 'pronamic_ideal' ),\n\t\t\t\t'keyVersion' => __( 'Key Version', 'pronamic_ideal' ),\n\t\t\t\t'authorisationId' => __( 'Authorisation ID', 'pronamic_ideal' ),\n\t\t\t\t'paymentMeanBrand' => __( 'Payment Mean Brand', 'pronamic_ideal' ),\n\t\t\t\t'paymentMeanType' => __( 'Payment Mean Type', 'pronamic_ideal' ),\n\t\t\t\t'responseCode' => __( 'Response Code', 'pronamic_ideal' ),\n\t\t\t);\n\n\t\t\t$note = '';\n\n\t\t\t$note .= '<p>';\n\t\t\t$note .= __( 'OmniKassa transaction data in response message:', 'pronamic_ideal' );\n\t\t\t$note .= '</p>';\n\n\t\t\t$note .= '<dl>';\n\n\t\t\tforeach ( $labels as $key => $label ) {\n\t\t\t\tif ( isset( $data[ $key ] ) ) {\n\t\t\t\t\t$note .= sprintf( '<dt>%s</dt>', esc_html( $label ) );\n\t\t\t\t\t$note .= sprintf( '<dd>%s</dd>', esc_html( $data[ $key ] ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$note .= '</dl>';\n\n\t\t\t$payment->add_note( $note );\n\t\t}\n\t}", "title": "" }, { "docid": "55892cd58f545c2178be4834e96284a1", "score": "0.6734272", "text": "public function statusUpdate(Request $request)\n {\n //\n $updateOrder = Order::where('id', $request->id)\n ->update(['status' => $request->status]);\n\n if($request->status == 0)\n {\n return response()->json(array('success' => true, 'message' => 'Order Pending'));\n }\n else\n {\n return response()->json(array('success' => true, 'message' => 'Order Confirmed'));\n }\n\n \n }", "title": "" }, { "docid": "2b61bc02ed349b2a979764716b218646", "score": "0.67269963", "text": "public function update_cart_status_by_order($status, $orderId)\n {\n $this->update_cart(['status' => $status], ['orderId' => $orderId]);\n }", "title": "" }, { "docid": "ac73a3d1e65e3a8b7ab6ed44dc4f838b", "score": "0.67009854", "text": "function set_order_status ($order_status ){\n $this->order_status = $order_status ;\n return $this->order_status ;\n }", "title": "" }, { "docid": "9084c8228c7e130c1b917ff876f1f42b", "score": "0.66966784", "text": "public static function updatePartnerOrderStatus()\n {\n if(Data::arrayHasEmptyValue($_POST)){\n return trigger_error(Data::arrayHasEmptyValue($_POST));\n }\n $partner_order_id = $_POST['partner_order_id'];\n $admin_id = self::fetchOrder($partner_order_id)['admin_id'];\n $new_status = $_POST['new_status'];\n $partner = Partners::fetchPartner($_SESSION['partner_id']);\n $partner_name = $partner['first_name'].\" \".$partner['last_name'];\n $sql = \"UPDATE partner_orders SET status = '$new_status' WHERE partner_order_id = '$partner_order_id'\";\n if(mysqli_query(DB::connect(), $sql)){\n Admins::contactAdmin($admin_id, \"Partner Order #\".$partner_order_id.\" \".$new_status, \"Partner Order #\".$partner_order_id.\" status changed to : \".$new_status.\". By: \".$partner_name);\n return null;\n } else {\n return trigger_error(mysqli_error(DB::connect()));\n }\n }", "title": "" }, { "docid": "73c24aaeb9a355ffbd1662eeaf42fa62", "score": "0.6694892", "text": "function orderStatus($id, $status){\n $data = array(\n 'order_status' => $status\n );\n\n $this->db->where('order_id', $id);\n $query = $this->db->update('bt_order', $data);\n return $query;\n }", "title": "" }, { "docid": "aa9047f5b934cf5584dd4200f875c407", "score": "0.6679785", "text": "function raffle_woocommerce_order_status_completed( $order_id ) {\n global $wpdb;\n $order = wc_get_order( $order_id );\n $table_name = $wpdb->prefix . 'tickets';\n $items = $order->get_items();\n foreach ($order->get_items() as $item_key => $item_values) {\n \t$item_id = $item_values->get_id();\n $item_name = $item_values->get_name(); // Name of the product\n $item_type = $item_values->get_type(); // Type of the order item (\"line_item\")\n $product_id = $item_values->get_product_id(); // the Product id\n $wc_product = $item_values->get_product(); \n $item_data = $item_values->get_data();\n\n \t$ticket_numbers = $item_data['meta_data'][1]->value;\n $count = (int)count($ticket_numbers);\n $tickets_left = (int)get_post_meta( $product_id, $key = '_ticket_quantity', $single = false );\n $newQuantity = $tickets_left - $count;\n\n update_post_meta($product_id, '_ticket_quantity', $newQuantity);\n foreach ($ticket_numbers as $ticket => $value) {\n $value = (int)$value;\n $wpdb->get_results(\"UPDATE {$table_name} SET ticket_status = 'sold' WHERE product_id = {$product_id} AND ticket_number = {$value}\");\n }\n\n }\n\n}", "title": "" }, { "docid": "7d7cd85790b983bf25fc945a7bb9e2fd", "score": "0.66764134", "text": "public static function updateOrder($order, $status, $callbackid)\n {\n if (!Komfortkasse_Config::getConfig(Komfortkasse_Config::activate_update, $order)) {\n return;\n }\n\n $orderArray = $order;\n $orderArray['status'] = $status;\n\n // Hint: PAID and CANCELLED are supported as of now.\n\n if (substr($order ['number'], 11) == 'ricardo.ch:') {\n // magnalister bestellung von ricardo.ch, 'echte' nummer ermitteln\n\n $transaction = substr($order ['number'], strpos($order ['number'], '-'));\n\n $resource = Mage::getSingleton('core/resource');\n $tableOrderHistory = $resource->getTableName('sales/order_status_history');\n $query = \"SELECT o.parent_id, o.comment FROM $tableOrderHistory o where o.comment like '%magnalister%ricardo%: $transaction<br%'\";\n\n $readConnection = $resource->getConnection('core_read');\n $results = $readConnection->fetchAll($query);\n $first = true;\n foreach ($results as $result) {\n if (!$first)\n return 'Error: more than 1 orders found for ' . $order ['number'];\n $order = Mage::getModel('sales/order')->load($result['parent_id']);\n $first = false;\n }\n\n } else {\n // normale bestellnummer\n $order = Mage::getModel('sales/order')->loadByIncrementId($order ['number']);\n }\n\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' START');\n Mage::dispatchEvent('komfortkasse_change_order_status_before', array ('order' => $order,'status' => $status,'callbackid' => $callbackid\n ));\n\n $stateCollection = Mage::getModel('sales/order_status')->getCollection()->joinStates();\n $stateCollection->addFieldToFilter('main_table.status', array ('like' => $status\n ));\n $state = $stateCollection->getFirstItem()->getState();\n\n if (self::isPaid($orderArray)) {\n self::setPaidInternal($order, $callbackid);\n $order = Mage::getModel('sales/order')->loadByIncrementId($order->getIncrementId());\n\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' add status history ' . $status . ' / ' . $callbackid);\n $history = $order->addStatusHistoryComment('' . $callbackid, $status);\n $order->setStatus($status);\n $order->save();\n\n } else if (self::isCancelled($orderArray)) {\n if ($callbackid) {\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' add status history ' . $status . ' / ' . $callbackid);\n $history = $order->addStatusHistoryComment('' . $callbackid, $status);\n }\n if ($order->canCancel()) {\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' cancel');\n $order->cancel();\n }\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' set status ' . $status);\n $order->setStatus($status);\n $order->save();\n } else {\n\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' add status history ' . $status . ' / ' . $callbackid);\n $history = $order->addStatusHistoryComment('' . $callbackid, $status);\n $order->save();\n }\n\n Mage::dispatchEvent('komfortkasse_change_order_status_after', array ('order' => $order,'status' => $status,'callbackid' => $callbackid\n ));\n\n Komfortkasse_Config::log('Komfortkasse: update order ' . $order->getIncrementId() . ' END. Status: ' . $order->getStatus());\n\n }", "title": "" }, { "docid": "326242667c4b7f663b1cd89f75d0e184", "score": "0.6673018", "text": "public function confirmAction()\n {\n $order_id = Request::input('orderid');\n\n if ($order_id !== null && Auth::check()) {\n $order = Order::where('id', $order_id)->first();\n if (isset($order) && $order->type == 'jsonapi') {\n $transaction_id = Request::input('transaction_id');\n\n if ($order->statuspayment && $order->datepayment == null) {\n\n $order->datepayment = Carbon::now();\n\n if($transaction_id !== null){\n $order->statuspayment = 5;\n }\n else{\n $order->statuspayment = -1;\n }\n\n $order->save();\n\n\n Log::channel('order_payment_success')->info('successfully updated order payment status for - ' . $order->id);\n return response()->json(['message' => 'successfully updated','success' => 0]);\n } else {\n return response()->json(['message' => 'updated before','success' => 1]);\n }\n\n } else {\n Log::channel('order_payment_failed')->info('order not found');\n return response()->json(['message' => 'order not found','success' => 1]);\n }\n }\n\n\n return parent::confirmAction();\n\n }", "title": "" }, { "docid": "d2da511a9f7bbc539a49a50f4ee20189", "score": "0.66705483", "text": "private function sendOrderUpdate($order) {\n if (!$order || !$order->getId()) return;\n\n $data = array(\n 'refund_status' => 'not_refunded',\n 'total_refunded' => 0,\n 'ip_address' => Mage::helper('core/http')->getRemoteAddr(),\n 'user_agent' => $_SERVER['HTTP_USER_AGENT']\n );\n\n if ($order->getBaseTotalDue() == $order->getBaseGrandTotal()) {\n $data['payment_status'] = 'not_paid';\n $data['total_paid'] = 0;\n } else if ($order->getBaseTotalDue() == 0) {\n $data['payment_status'] = 'paid';\n $data['total_paid'] = $order->getBaseGrandTotal();\n } else {\n $data['payment_status'] = 'partially_paid';\n $data['total_paid'] = $order->getBaseTotalPaid();\n }\n\n $data['cancellation_status'] = $order->getState() == 'canceled' ? 'cancelled' : 'not_cancelled';\n\n $total_refunded = $order->getBaseTotalRefunded();\n\n if ($total_refunded > 0) {\n if ($total_refunded < $order->getBaseGrandTotal()) {\n $data['refund_status'] = 'partially_refunded';\n $data['total_refunded'] = $total_refunded;\n } else {\n // assume full refund. this should be fine as magento appears to only allow refunding up to\n // the amount paid\n $data['refund_status'] = 'refunded';\n $data['total_refunded'] = $order->getBaseGrandTotal();\n }\n }\n\n $data['$magento_payload'] = $order->toArray();\n $data['$magento_payload']['order_items'] = $this->getItems($order->getId());\n $data['$magento_payload']['order_comments'] = $this->getComments($order->getId());\n $data['$magento_payload']['addresses'] = $this->getAddresses($order->getId());\n $data = array_merge($data, $this->getVersionInfo());\n\n $client = $this->getClient();\n $response = $client->orders->update($order->getId(), $data);\n\n if ($response->success) {\n Mage::log('[LoyaltyLion] Updated order OK');\n } else if ($response->status != 404) {\n // sometimes this will get fired before the order has been created, so we'll get a 404 back - no reason to\n // error, because this is expected behaviour\n Mage::log('[LoyaltyLion] Failed to update order - status: ' . $response->status . ', error: ' . $response->error,\n Zend_Log::ERR);\n }\n }", "title": "" }, { "docid": "cd3d0fb422e16dc2cb97a68eab296767", "score": "0.66700804", "text": "public function updateStatus(Request $request) {\n $order = Order::find($request->order);\n if($order) {\n $order->status = $request->status;\n $order->save();\n return response()->json(['status' => 'ok', 'new_status' => $order->status]);\n } else {\n return response()->json(['status' => 'error']);\n }\n }", "title": "" }, { "docid": "da8c5b142aedfac501d05ef180e1ef0d", "score": "0.6668943", "text": "public function update($id)\n { \n \n $order=Order::find($id);\n $status_order=[\n 0=>'Processing',1=>'Accept',2=>'Successful',3=>'Refuse'\n ];\n $statuRequest=request()->order_status;\n $checkStatus=0;\n if (Carbon::parse($order->updated_at)->addMinutes(5)->isPast()) {\n $checkStatus=2;\n if ( $order->order_status==2) {\n \n for ($i=$order->order_status; $i <count($status_order)-1 ; $i++) { \n if ($i== (int) request()->order_status) {\n $checkStatus=1;\n break;\n }\n }\n }else{\n for ($i=$order->order_status; $i <count($status_order) ; $i++) {\n \n if ($i== (int) request()->order_status) {\n $checkStatus=1;\n break;\n }\n }\n }\n \n }\n if ($checkStatus==2) {\n return redirect()->back()->with('error','Update not success!');\n }\n $order->setQuantityProduct();\n $order->update([\n 'order_status'=>request()->order_status,\n ]);\n \n return redirect()->route('order.indexProgress')->with('success','Update success');\n\n }", "title": "" }, { "docid": "5ef1ddaeb54859f3e277a676928490e9", "score": "0.6663119", "text": "public function set_order_status($uid, $oid, $status) {\n $update_fields = array(\n 'status' => $status, \n 'changed' => time()\n );\n \n return db_update('demorati_order')\n ->fields($update_fields)\n ->condition('uid', $uid)\n ->condition('oid', $oid)\n ->execute();\n }", "title": "" }, { "docid": "85cdfebc0245fa198617d2b2980bed2e", "score": "0.66624355", "text": "public function orderUpdate()\n {\n // terima inputan perintah\n $input = $this->request->getVar();\n $idorder = $input['id_order'];\n // $statusl = $input['statusl'];\n $status = $input['status'];\n\n // kalau batal\n if ($status == \"Batal\") {\n $this->orderModel->update($idorder, ['status' => 'Batal']);\n }\n\n // update status tunggu ke berlangsung\n if ($status == \"Berlangsung\") {\n $this->orderModel->update($idorder, ['status' => 'Berlangsung']);\n }\n\n // update status berlangsung ke konfirmasi\n if ($status == \"Konfirmasi2\") {\n $this->orderModel->update($idorder, ['status' => 'Konfirmasi2']);\n }\n\n // balikin ke halaman order\n return redirect()->to('/penyewa/order');\n }", "title": "" }, { "docid": "a6f2f36615dac6b3e188309122323ee0", "score": "0.66518795", "text": "public function updateOrderItemStatus ($arr = array())\n {\t\n $shipment = [];\n $order_item_log_id = $l2 = $sub_order_log_id = $order_log_id = false;\n extract($arr);\n $comments = (isset($comments) && !empty($comments)) ? $comments : '';\n $OID = $this->orderItemDetails(['order_item_code'=>$order_item_code]);\n if (!empty($OID))\n {\n $update_order_particulars_fields = array();\n $update_order_particulars_fields['order_item_status_id'] = $order_item_status_id;\n $update_order_particulars_fields['updated_on'] = date('Y-m-d H:i:s');\n $update_order_particulars_fields['updated_by'] = $account_id;\t\t\t\t\t\t\n DB::beginTransaction();\n $update_order_particulars = DB::table(Config::get('tables.ORDER_ITEMS'))\n ->where('order_item_id', $OID->order_item_id);\n switch ($order_item_status_id)\n {\n case Config::get('constants.ORDER_STATUS.PLACED'):\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n if ($upstatus)\n {\n DB::table(Config::get('tables.SUPPLIER_PRODUCT_STOCK_MANAGEMENT'))\n ->increment('commited_stock', $OID->qty)\n ->where('supplier_product_id', $OID->supplier_product_id);\n }\n break;\n case Config::get('constants.ORDER_STATUS.APPROVED'):\t\t\t\t\t\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.PLACED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.PACKED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.APPROVED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.DISPATCHED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.PACKED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n if ($upstatus)\n {\n DB::table(Config::get('tables.ORDER_SHIPMENT_COURIER_LOG'))\n ->insert($shipment);\n DB::table(Config::get('tables.SUPPLIER_PRODUCT_STOCK_MANAGEMENT'))\n ->where('supplier_product_id', $OID->supplier_product_id)\n ->update(array(\n 'stock_on_hand'=>DB::raw('stock_on_hand - '.$OID->qty),\n 'commited_stock'=>DB::raw('commited_stock - '.$OID->qty),\n 'sold_items'=>DB::raw('sold_items + '.$OID->qty)));\n }\n\n break;\n case Config::get('constants.ORDER_STATUS.IN_SHIPPING'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.DISPATCHED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REACHED_HUB'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.IN_SHIPPING')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.DELIVERED'):\n $update_order_particulars_fields['replacement_due_date'] = date('Y-m-d H:i:s', strtotime('+'.$OID->replacement_due_days.' days'));\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REACHED_HUB')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.SERVICE_IN_PROGRESS'):\n $update_order_particulars_fields['replacement_due_date'] = date('Y-m-d H:i:s', strtotime('+'.$OID->replacement_due_days.' days'));\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.DELIVERED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.SERVICE_COMPLETED'):\n $update_order_particulars_fields['replacement_due_date'] = date('Y-m-d H:i:s', strtotime('+'.$OID->replacement_due_days.' days'));\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.SERVICE_IN_PROGRESS')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.CANCELLED'):\n $update_order_particulars->whereIn('order_item_status_id', Config::get('constants.ORDER_STATUS_CANCELABLE_STATUS'));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n if ($upstatus)\n {\n $stock = [];\n if (in_array($OID->order_item_status_id, [Config::get('constants.ORDER_STATUS.PLACED'), Config::get('constants.ORDER_STATUS.APPROVED'), Config::get('constants.ORDER_STATUS.PACKED')]))\n {\n $stock['commited_stock'] = DB::raw('commited_stock + '.$OID->qty);\n }\n else\n {\n $stock['stock_on_hand'] = DB::raw('stock_on_hand + '.$OID->qty);\n $stock['sold_items'] = DB::raw('sold_items - '.$OID->qty);\n }\n DB::table(Config::get('tables.SUPPLIER_PRODUCT_STOCK_MANAGEMENT'))\n ->where('supplier_product_id', $OID->supplier_product_id)\n ->update($stock);\n DB::table(Config::get('tables.SUB_ORDERS'))\n ->where('sub_order_id', $OID->sub_order_id)\n ->update(array('qty'=>DB::table(Config::get('tables.ORDER_ITEMS'))->where('sub_order_id', $OID->sub_order_id)->where('is_deleted', Config::get('constants.OFF'))->where('order_item_status_id', '<>', Config::get('constants.ORDER_STATUS.CANCELLED'))->sum('qty')));\n DB::table(Config::get('tables.ORDERS'))\n ->where('order_id', $OID->order_id)\n ->update(array('qty'=>DB::table(Config::get('tables.ORDER_ITEMS'))->where('order_id', $OID->order_id)->where('is_deleted', Config::get('constants.OFF'))->where('order_item_status_id', '<>', Config::get('constants.ORDER_STATUS.CANCELLED'))->sum('qty')));\n }\n break;\n case Config::get('constants.ORDER_STATUS.RETURN_REFUND'):\n case Config::get('constants.ORDER_STATUS.RETURN_REPLACE'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.DELIVERED'), Config::get('constants.ORDER_STATUS.SERVICE_IN_PROGRESS'), Config::get('constants.ORDER_STATUS.SERVICE_COMPLETED')))\n ->whereRaw('TIMESTAMPDIFF(SECOND,date(replacement_due_date),NOW())>=0');\n $update_order_particulars_fields['replacement_due_date'] = date('Y-m-d H:i:s', strtotime('+'.$OID->replacement_due_days.' days'));\n $update_order_particulars_fields['replacement_time'] = $OID->replacement_time + 1;\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REFUND_APPROVED'):\n case Config::get('constants.ORDER_STATUS.REFUND_REJECTED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.RETURN_REFUND')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REFUND_PICKED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REFUND_APPROVED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REFUND_DISPATCHED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REFUND_PICKED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REFUNDED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REFUND_DISPATCHED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REPLACE_APPROVED'):\n case Config::get('constants.ORDER_STATUS.REPLACE_REJECTED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.RETURN_REPLACE')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REPLACE_PICKED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REPLACE_APPROVED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REPLACE_DISPATCHED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REPLACE_PICKED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n break;\n case Config::get('constants.ORDER_STATUS.REPLACED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.REPLACE_DISPATCHED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n case Config::get('constants.ORDER_STATUS.CANCEL_RETURN_DISPATCHED'):\n $update_order_particulars->whereIn('order_item_status_id', array(Config::get('constants.ORDER_STATUS.CANCELLED')));\n $upstatus = $update_order_particulars->update($update_order_particulars_fields);\n default :\n $upstatus = false;\n }\n if ($upstatus)\n {\n $log = [];\n $log['order_item_id'] = $OID->order_item_id;\n $log['replacement_time'] = $OID->replacement_time;\n $log['from_order_status_id'] = $OID->order_item_status_id;\n $log['to_order_status_id'] = $order_item_status_id;\n $log['updated_by'] = $account_id;\n $log['comments'] = $comments;\n $order_item_log_id = DB::table(Config::get('tables.ORDER_STATUS_LOG'))\n ->insertGetId($log);\n $sub_order_status = DB::table(Config::get('tables.ORDER_ITEMS'))\n ->where('sub_order_id', $OID->sub_order_id)\n ->where('is_deleted', Config::get('constants.OFF'))\n ->groupby('order_item_status_id')\n ->selectRaw('(sum(qty)-sum(if(order_item_status_id='.Config::get('constants.ORDER_STATUS.CANCELLED').',qty,0))) as total_qty,order_item_status_id')\n ->orderby('total_qty', 'DESC')\n ->lists('total_qty', 'order_item_status_id');\n if (!empty($sub_order_status))\n {\n $sub_order_status_ids = array_keys($sub_order_status);\n if (in_array(Config::get('constants.ORDER_STATUS.CANCELLED'), $sub_order_status_ids) && $sub_order_status_ids[0] == Config::get('constants.ORDER_STATUS.CANCELLED'))\n {\n $sub_order_status_id = $sub_order_status_ids[1];\n $qty = $sub_order_status[$sub_order_status_id];\n }\n else\n {\n $sub_order_status_id = $sub_order_status_ids[0];\n $qty = $sub_order_status[$sub_order_status_id];\n }\n if (DB::table(Config::get('tables.SUB_ORDERS'))\n ->where('sub_order_id', $OID->sub_order_id)\n ->where('qty', $qty)\n ->update(array('updated_on'=>date('Y-m-d H:i:s'), 'sub_order_status_id'=>$sub_order_status_id)))\n {\n $log = [];\n $log['sub_order_id'] = $OID->sub_order_id;\n $log['replacement_time'] = $OID->replacement_time;\n $log['from_order_status_id'] = $OID->sub_order_status_id;\n $log['to_order_status_id'] = $sub_order_status_id;\n $log['comments'] = $comments;\n $log['updated_by'] = $account_id;\n $sub_order_log_id = DB::table(Config::get('tables.ORDER_STATUS_LOG'))\n ->insertGetId($log);\n }\n }\n $order_status = DB::table(Config::get('tables.SUB_ORDERS'))\n ->where('order_id', $OID->order_id)\n ->where('is_deleted', Config::get('constants.OFF'))\n ->groupby('sub_order_status_id')\n ->selectRaw('(sum(qty)-sum(if(sub_order_status_id='.Config::get('constants.ORDER_STATUS.CANCELLED').',qty,0))) as total_qty,sub_order_status_id')\n ->orderby('total_qty', 'DESC')\n ->lists('total_qty', 'sub_order_status_id');\n if (!empty($order_status))\n {\n $order_status_ids = array_keys($order_status);\n if (in_array(Config::get('constants.ORDER_STATUS.CANCELLED'), $order_status_ids) && $order_status_ids[0] == Config::get('constants.ORDER_STATUS.CANCELLED'))\n {\n $order_status_id = $order_status_ids[1];\n $qty = $order_status[$order_status_id];\n }\n else\n {\n $order_status_id = $order_status_ids[0];\n $qty = $order_status[$order_status_id];\n }\n if (DB::table(Config::get('tables.ORDERS'))\n ->where('order_id', $OID->order_id)\n ->where('qty', $qty)\n ->update(array('updated_on'=>date('Y-m-d H:i:s'), 'order_status_id'=>$order_status_id)))\n {\n $log = [];\n $log['order_id'] = $OID->order_id;\n $log['replacement_time'] = $OID->replacement_time;\n $log['from_order_status_id'] = $OID->order_status_id;\n $log['to_order_status_id'] = $order_status_id;\n $log['comments'] = $comments;\n $log['updated_by'] = $account_id;\n $order_log_id = DB::table(Config::get('tables.ORDER_STATUS_LOG'))\n ->insertGetId($log);\n }\n }\n\n if ($order_item_log_id || $sub_order_log_id || $order_log_id)\n {\n $emailData = [];\n $order_item_details = $this->orderItemDetails(['order_item_id'=>$OID->order_item_id]);\n $notify_status = DB::table(Config::get('tables.ORDER_STATUS_LOG').' as log')\n ->join(Config::get('tables.ORDER_STATUS_SETTINGS').' as oss', function($oss) use($account_type_id)\n {\n $oss->on('oss.from_order_status_id', '=', 'log.from_order_status_id')\n ->on('oss.to_order_status_id', '=', 'log.to_order_status_id')\n ->where('oss.account_type_id', '=', $account_type_id);\n })\n ->leftJoin(Config::get('tables.ORDER_STATUS_NOTIFICATIONS').' as osn', 'osn.oss_id', '=', 'oss.oss_id')\n ->leftJoin(Config::get('tables.ORDER_STATUS_LOOKUP').' as fos', 'fos.order_status_id', '=', 'oss.from_order_status_id')\n ->leftJoin(Config::get('tables.ORDER_STATUS_LOOKUP').' as tos', 'tos.order_status_id', '=', 'oss.to_order_status_id')\n ->join(Config::get('tables.ACCOUNT_TYPES').' as at', 'at.id', '=', 'osn.account_type_id')\n ->where('log.status_log_id', ($order_log_id ? $order_log_id : ($sub_order_log_id ? $sub_order_log_id : $order_item_log_id)))\n ->select('fos.status_key as from_key', 'tos.status_key as to_key', 'osn.account_type_id', 'at.account_type_key', 'osn.sms', 'osn.email', 'osn.notification')\n ->get();\n if ($notify_status)\n {\n $t = '';\n if ($order_log_id)\n {\n $emailData['order_details'] = $this->getOrderDetails(['order_id'=>$order_item_details->order_id, 'account_type_id'=>$account_type_id]);\n $t = 'ORDER';\n }\n else if ($sub_order_log_id)\n {\n $emailData['sub_order_details'] = $this->sub_order_details($order_item_details->sub_order_id);\n $t = 'SUB_ORDER';\n }\n else if ($order_item_log_id)\n {\n $emailData['order_item_details'] = $order_item_details;\n $t = 'ORDER_ITEM';\n }\n foreach ($notify_status as $n)\n {\n if ($n->account_type_id == Config::get('constants.ACCOUNT_TYPE.ADMIN'))\n {\n $id = Config::get('constants.ADMIN_ACCOUNT_ID');\n }\n elseif ($n->account_type_id == Config::get('constants.ACCOUNT_TYPE.USER'))\n {\n $id = $order_item_details->account_id;\n }\n elseif ($n->account_type_id == Config::get('constants.ACCOUNT_TYPE.SUPPLIER'))\n {\n $id = $order_item_details->supplier_id;\n }\n elseif ($n->account_type_id == Config::get('constants.ACCOUNT_TYPE.PARTNER'))\n {\n $id = $order_item_details->partner_id;\n }\n //ShoppingPortal::notify($t.'.'.$n->from_key.'_TO_'.$n->to_key.'.'.$n->account_type_key, $id, $n->account_type_id, $emailData, $n->email, $n->sms, $n->notification);\n }\n }\n DB::commit();\n return $order_item_details;\n }\n }\n }\n DB::rollback();\n return false;\n }", "title": "" }, { "docid": "1f1f10eb2cda7d0421c3f663c99d8144", "score": "0.66486543", "text": "public static function update($order, string $status): void\n {\n $order->status = $status;\n\n $order->save();\n }", "title": "" }, { "docid": "4c0beb5cc6d0b5b7858dbe9bc1605dff", "score": "0.6635854", "text": "public function update_new_status_order($id) {\n $data['access_token'] = $this->interface->decrypt($_COOKIE[$this->cookieName]);\n $data['status'] = 3;\n $result = $this->interface->request('api/orders/edit/' . $id . '.json', 'post', $data);\n return $result;\n }", "title": "" }, { "docid": "6c2174f3b23d22fa9ecb94b55829316d", "score": "0.6633163", "text": "public function updateStatusAfterPayment($id,$value1,$value2,$value3)\r\n\t{\r\n\t ///////////////\r\n\t $q = Doctrine_Query::create()\r\n\t ->UPDATE('BusinessApplicationStatus')\r\n\t ->SET('application_status', '?' , $value1)\r\n\t ->SET('comment', '?' , $value2)\r\n\t ->SET('percentage', '?' , $value3)\r\n\t ->WHERE('business_id = ?', $id);\r\n\t $q->execute();\r\n\t //////////////////\r\n\t/* $q = Doctrine_Query::create()\r\n\t ->UPDATE('BusinessApplicationStatus')\r\n\t ->SET('comment', '?' , $value)\r\n\t ->WHERE('business_id = ?', $id);\r\n\t $q->execute();\r\n\t /////////\r\n\t $q = Doctrine_Query::create()\r\n\t ->UPDATE('BusinessApplicationStatus')\r\n\t ->SET('percentage', '?' , $value)\r\n\t ->WHERE('business_id = ?', $id);\r\n\t $q->execute(); */\r\n\t ///////////\r\n\t return \"success\";\r\n\t}", "title": "" }, { "docid": "0c0571545cccde8435a25083d4c14118", "score": "0.6625971", "text": "public function updatestatus(){\n $id \t= $this->uri->segment(4);\n $status = $this->uri->segment(5);\n\t\t\n\t\t$data_to_store = array(\n\t\t\t'status' => $status\n\t\t);\n\t\t//if the insert has returned true then we show the flash message\n\t\tif($this->order_model->update_order($id, $data_to_store) == TRUE){\n\t\t\t$this->session->set_flashdata('flash_message', 'updated');\n\t\t\tredirect('admin/order/');\n\t\t\tdie;\n\t\t}\n//\t\techo $id.\"---\".$status;\n\t}", "title": "" }, { "docid": "45a336a3fcd35a8537b75a5aad8ec040", "score": "0.66095686", "text": "public function update_order_item_status($order_item_id,$data){\n\t\t$this->db->where('order_item_id',$order_item_id);\n\t\treturn $this->db->update('lab_order_items',$data);\n\t}", "title": "" }, { "docid": "34c8bd5f391ebbb74933806c098be130", "score": "0.6606425", "text": "public function update_paypal_order() {\n\t\t$timestamp = strtotime($this->CI->input->post('payment_date')); \n\t\t$payment_date = date(\"Y-m-d H:i:s\",$timestamp);\n\t\t\n\t\t\n\t\t// custom is the user id in the production database\n\t\t//$this->CI->input->post('custom')\n\t\t\n\t\t// order id\n\t\t//$this->CI->input->post('invoice') is the orders.id \n\t\t\n\t\t//$query = \"insert into order_address(order_id, user_id, country, country_code, address_zip, address_state, address_city, address_street, created_date, modified_date) values(?, ?, ?, ?,?,?,?,?,NOW(), NOW())\";\n\t\t//$result = $this->db->query($query, array($this->CI->input->post('invoice'), $this->CI->input->post('custom'), $this->CI->input->post('address_country'), $this->CI->input->post('address_country_code'), $this->CI->input->post('address_zip'), $this->CI->input->post('address_state'), $this->CI->input->post('address_city'), $this->CI->input->post('address_street')));\n\n\t\t$query = \"update orders set txn_id = ?, total_amount=?, currency=?, status = ?, payment_date=?, modified_date = NOW() where id = ? and user_id = ?\";\n\t\t$result = $this->db->query($query, array($this->CI->input->post('txn_id'), $this->CI->input->post('mc_gross'), $this->CI->input->post('mc_currency'), $this->CI->input->post('payment_status'), $payment_date, $this->CI->input->post('invoice'), $this->CI->input->post('custom')));\n\t\t\n\t\t$query = \"update orders_items set txn_id = ?, modified_date = NOW() where order_id = ?\";\n\t\t$result = $this->db->query($query, array($this->CI->input->post('txn_id'), $this->CI->input->post('invoice')));\n\t}", "title": "" }, { "docid": "046ca1b262d577e1db0f73534572cbd1", "score": "0.66036534", "text": "function update(&$order){\r\n\t\t//code to update billing info on a recurring subscription at the gateway and test results would go here\r\n\r\n\t\t//simulate a successful billing update\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "ab7968aa6cbd73ea03bf17148ece8a37", "score": "0.66032195", "text": "function _active($info)\n\t{\n\t // Gan trang thai xac thuc\n\t $data = array();\n\t $data['status'] = mod('order')->status('completed');\n\t\n\t // Cap nhat du lieu vao data\n\t model('topup_offline')->update($info->id, $data);\n\t \n\t $data = array();\n\t $data['order_status'] = 'completed';\n\t model('invoice_order')->update($info->invoice_order_id, $data);\n\t \n\t // Gui thong bao\n\t set_message(lang('notice_update_success'));\n\t return TRUE;\n\t}", "title": "" }, { "docid": "22aa599e6463a943ce99174e9cf60dc5", "score": "0.6599712", "text": "public function updateOrderStatusAction()\n\t{\n\t\t$orderid = $this->getInput('orderid','post');\n\t\t$status = 2;\n\t\t$returnData = array(\n\t\t\t\"success\"\t=> true,\n\t\t\t\"data\"\t=> \"更新成功,页面会刷新\"\n\t\t\t);\n\n\t\t//choosen item\n\t\t// $checkeditem = $this->getInput(\"checkeditem\",\"post\");\n\n\t\t//choosen user\n\t\t// $status = $this->getInput(\"orderstatus\",\"post\");\n\t\t// if($status < -1) //-1已经被占用\n\t\t// {\n\t\t// \t$returnData['success']\t= false;\n\t\t// \t$returnData['data']\t= $status;\n\t\t// \tprint_r(json_encode($returnData));\n\t\t// \tdie;\n\t\t// }\n\n\t\t$userid = $this->loginUser->uid;\n\n\t\t// foreach($checkeditem as $key => $value)\n\t\t// {\n\t\t// \t//update the order status\n\t\t// \t$this->_getMyOrderDS()->updateOrderStatus($key,$status,$userid);\n\n\t\t// \t//insert order log\n\t\t// \t$this->_getMyOrderDS()->insertOrderLog($key,$this->loginUser->username,\"负责人更新了状态: $status\");\n\t\t// }\n\n\t\tif(empty($orderid) || empty($status))\n {\n $returnData = array(\n\t\t\t\"success\"\t=> false,\n\t\t\t\"data\"\t=> \"更新失败1\"\n\t\t\t);\n\t\t\tprint_r(json_encode($returnData));\n\t\t\tdie;\n }\n\n $result = $this->_getMyOrderDS()->updateOrderStatus($orderid,$status);\n\n if($result)\n {\n $returnData = array(\n\t\t\t\"success\"\t=> true,\n\t\t\t\"data\"\t=> \"客户已确定\"\n\t\t\t);\n\t\t\tprint_r(json_encode($returnData));\n\t\t\tdie;\n }\n else\n {\n $returnData = array(\n\t\t\t\"success\"\t=> false,\n\t\t\t\"data\"\t=> \"更新失败2\"\n\t\t\t);\n\t\t\tprint_r(json_encode($returnData));\n\t\t\tdie;\n }\n\t}", "title": "" }, { "docid": "56450108ebd8f88ff3c59c073e5f3b9e", "score": "0.6592457", "text": "public function update_buy_status_post(){\n $data = $this->security->xss_clean($_POST);\n $data = $this->DeviceBuyReq_model->update_buy_status($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 }", "title": "" }, { "docid": "edc7c4c4dcb21bba90d8529c79d899ac", "score": "0.6589862", "text": "function commerce_expay_update_order_transactions($order, $status) {\n $options = array(\n 'order_id' => $order->order_id,\n 'status' => $status,\n 'payment_method' => 'commerce_expay'\n );\n\n $transactions = commerce_payment_transaction_load_multiple(array(), $options);\n $geteway_status = TRUE;\n if (!empty($transactions)) {\n foreach ($transactions as $transaction) {\n $payload = $transaction->payload;\n if (empty($payload['expay_payment'])) {\n continue;\n }\n $expay_payment = $payload['expay_payment'];\n $remote_payment_order = $expay_payment['order'];\n $geteway_status = commerce_expay_transaction_status_update($transaction, $remote_payment_order, $force_save = TRUE);\n }\n }\n if (!$geteway_status) {\n drupal_set_message(t('During update statuses of orders from gateway Expay has been errors'), 'error');\n }\n}", "title": "" }, { "docid": "82238021188c83fca1eadd37cdc23062", "score": "0.6586414", "text": "public function change_order_status(Request $request)\n\t\t{\n\t\t\t$lang \t\t= $request->lang;\n\t\t\t$status \t= $request->status;\n\t\t\t$order_id \t= $request->order_id;\n\t\t\t//$cus_id\t\t= $request->customer_id; \n\t\t\t$store_id \t= $request->store_id;\n\t\t\t$reason \t= $request->reason;\n\t\t\t/*$latitude \t= $request->latitude;\n\t\t\t$longitude \t= $request->longitude;*/\n\t\t\t//$pay_type \t= $request->pay_type;\n\t\t\t$otp \t\t= $request->otp;\n\t\t\t//$received_amt\t= $request->received_amt;\n\t\t\t$details\t \t= JWTAuth::user();\n\t\t\t$agent_id\t\t= $details->deliver_agent_id;\n\t\t\t$deliver_id\t\t= $details->deliver_id;\n\t\t\t$fare_charge\t= ($details->deliver_fare_type == 'per_km') ? $details->deliver_perkm_charge : $details->deliver_permin_charge;\n\t\t\t//$travel_duration = $request->travel_duration;\n\t\t\t//$travel_distance = $request->travel_distance;\n\t\t\t$arr = array();\n\t\t\t$msg = '';\n\t\t\t//$get_details = Delivery_person::get_otp_status($order_id,$deliver_id,$store_id);\n\t\t\t//print_r($get_details); exit;\n\t\t\t\n\t\t\t/* validation */\n\t\t\t$orderId_req_err_msg\t= MobileModel::get_lang_text($lang,'API_ENTER_ORDER_ID','Please enter order ID!');\n\t\t\t$orderId_valid_err_msg\t= MobileModel::get_lang_text($lang,'API_OR_ID_NT_EXIST','Order id does not exist'); \n $storeId_req_err_msg\t= MobileModel::get_lang_text($lang,'API_ENTER_STOREREST_ID','Please enter store/restaurant ID!'); \n $storeId_valid_err_msg\t= MobileModel::get_lang_text($lang,'API_ENTER_VALID_STOREREST_ID','Please enter valid store/restaurant ID!');\n $orderStatus_valid_err_msg\t= MobileModel::get_lang_text($lang,'API_SL_OR_STATUS','Please select order status');\n $reason_req_err_msg\t= MobileModel::get_lang_text($lang,'API_FAIL_REASON','Please enter delivery failed reason');\n $dur_req_err_msg\t= MobileModel::get_lang_text($lang,'API_ENTR_TRAVEL_DUR','Please enter travel duration');\n $dis_req_err_msg\t= MobileModel::get_lang_text($lang,'API_ENTR_TRAVEL_DIS','Please enter travel distance');\n\t\t\t$validator = Validator::make($request->all(),[ 'store_id'\t=> ['required',\n\t\t\tRule::exists('gr_order','ord_rest_id')->where(function ($query) use($deliver_id,$order_id) { $query->where('ord_delivery_memid','=',$deliver_id)->where('ord_transaction_id','=',$order_id); })\n\t\t\t],\n\t\t\t'order_id'\t=> ['required',\n\t\t\tRule::exists('gr_order','ord_transaction_id')->where(function ($query) use($deliver_id) { $query->where('ord_delivery_memid','=',$deliver_id); })\n\t\t\t],\n\t\t\t/*'customer_id'\t=> ['required',\n\t\t\t\tRule::exists('gr_order','ord_cus_id')->where(function ($query) use($deliver_id) { $query->where('ord_delivery_memid','=',$deliver_id); })\n\t\t\t],*/\n\t\t\t'status'\t=> ['required','integer',\n\t\t\tRule::in([6,7,8,9])],\n\t\t\t//'latitude'\t=> 'required',\n\t\t\t//'longitude'\t=> 'required',\n\t\t\t//'pay_type'\t\t=> 'required', \n\t\t\t//'received_amt'\t=> 'required_if:pay_type,COD|required_if:status,9', \n\t\t\t'reason'\t=> 'required_if:status,9', \n\t\t\t'otp'\t\t=> 'required_if:status,8',\n\t\t\t//'travel_duration'\t=> 'required_if:status,8|required_if:status,9',\n\t\t\t//'travel_distance'\t=> 'required_if:status,8|required_if:status,9',\n\t\t\t\n\t\t\t],[ 'store_id.required'\t=> $storeId_req_err_msg,\n\t\t\t'store_id.exists'\t=> $storeId_valid_err_msg,\n\t\t\t'order_id.required'\t=> $orderId_req_err_msg,\n\t\t\t'order_id.exists'\t=> $orderId_valid_err_msg,\n\t\t\t//'orderId.integer'\t=> $orderId_valid_err_msg,\n\t\t\t'status.required'\t=> $orderStatus_valid_err_msg,\n\t\t\t'status.integer'\t=> $orderStatus_valid_err_msg,\n\t\t\t'reason.required_if'\t=> $reason_req_err_msg,\n\t\t\t'travel_duration.required_if'\t=> $dur_req_err_msg,\n\t\t\t'travel_distance.required_if'\t=> $dis_req_err_msg,\n\t\t\t] \n\t\t\t);\n\t\t\t/*$validator->sometimes('received_amt', 'required', function($request) {\n\t\t\t\treturn ($request->pay_type == 'COD' && $request->status == '8');\n\t\t\t});*/\n\t\t\t\n if($validator->fails())\n {\n\t\t\t\t$message = $validator->messages()->first();\n\t\t\t\t$encode = [ 'code' => 400,'message' => $message,'data' => $this->empty_data];\n\t\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\"); \n\t\t\t}\n\t\t\t/* get old order status */\n\t\t\t$get_status = get_details('gr_order',['ord_transaction_id' => $order_id,'ord_delivery_memid' => $deliver_id,'ord_rest_id' =>$store_id],'ord_status');\n\t\t\t$got_message = '';\n\t\t\t$notification = '';\n\t\t\t$code = 200;\n\t\t\t$travel_duration = 0;\n\t\t\t$travel_distance = 0;\n\t\t\tif($get_status->ord_status >= $status)\n\t\t\t{\n\t\t\t\t$encode = [ 'code' => 400,'message' => MobileModel::get_lang_text($lang,'API_CANT_CH_PREVIOUS','Can\\'t change to previous status'),'data' => $this->empty_data];\n\t\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\");\n\t\t\t} \n\t\t\tif(($get_status->ord_status == '5' && $status > 6) || ($get_status->ord_status == '6' && $status > 7)) //can update status one by one\n\t\t\t{\n\t\t\t\t$encode = [ 'code' => 400,'message' => MobileModel::get_lang_text($lang,'API_UPDATE_STATUS_ONE','Please update status one by one'),'data' => $this->empty_data];\n\t\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\");\n\t\t\t} \n\t\t\tif($status == 6)\t/* delivery boy pickup the item and started to deliver */\n\t\t\t{\n\t\t\t\t$arr = ['ord_status' => $status,'ord_started_on' => date('Y-m-d H:i:s')];\n\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_START','Started to deliver');\n\t\t\t\t$got_message = MobileModel::get_lang_text($lang,'API_OUT_DELI','Order(:transaction_id) is out of delivery');\n\t\t\t}\n\t\t\telseif($status == 7)\t/* delivery boy arrived to customer location */\n\t\t\t{ \n\t\t\t\t$arr = ['ord_status' => $status,'ord_arrived_on' => date('Y-m-d H:i:s')];\n\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_ARRIVED','Arrived to customer location');\n\t\t\t\t$got_message = MobileModel::get_lang_text($lang,'API_ARR','Order(:transaction_id) has been arrived');\n\t\t\t}\n\t\t\telseif($status == 8)\t/* order is delivered */\n\t\t\t{\t\n\t\t\t\t/* check otp */\n\t\t\t\t//echo $order_id.\"/\".$cus_id.\"/\".$deliver_id.\"/\".$store_id;\n\t\t\t\t$get_details = Delivery_person::get_otp_status($order_id,$deliver_id,$store_id);\n\t\t\t\t//print_r($get_details); exit;\n\t\t\t\t\n\t\t\t\tif(empty($get_details) === false)\n\t\t\t\t{\t\n\t\t\t\t\t/* get agent fare details */\n\t\t\t\t\t$agent_details = Delivery_person::get_basic_details('gr_delivery_member',['deliver_id' => $deliver_id],['deliver_base_fare','deliver_fare_type','deliver_perkm_charge','deliver_permin_charge']);\t\t\t\n\t\t\t\t\t/* get delivery fee and wallet */\n\t\t\t\t\t$cal = Delivery_person::get_receivable_amount($order_id,$get_details->order_amount);\n\t\t\t\t\t//echo $walletFee; echo $delFee; exit;\n\t\t\t\t\t$explode = explode('~',$cal); /* $explode[0] = del_fee,$explode[1] = wallet */\n\t\t\t\t\t$totalReceivable = $get_details->order_amount-$explode[1]+$explode[0];\n\t\t\t\t\t// echo $get_details->order_amount; \n\t\t\t\t\t// echo $totalReceivable;\n\t\t\t\t\tif($get_details->ord_otp == $otp)\n\t\t\t\t\t{\t\n\t\t\t\t\t\t/*if($totalReceivable == $received_amt)\n\t\t\t\t\t\t{*/\n\t\t\t\t\t\t$arr = ['ord_status' \t\t=> $status,\n\t\t\t\t\t\t'ord_delivered_on' => date('Y-m-d H:i:s')];\n\t\t\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_DELIVERED','Order delivered successfully');\n\t\t\t\t\t\t$got_message = MobileModel::get_lang_text($lang,'API_DELI','Order(:transaction_id) has been delivered');\n\t\t\t\t\t\t$get_order_details = Delivery_person::get_ord_details($order_id,$store_id,$deliver_id,$lang); \n\t\t\t\t\t\t$get_cus_details = Delivery_person::get_customer_details($order_id);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//print_r($get_cus_details); exit;\n\t\t\t\t\t\t/* send mail to customer */\n\t\t\t\t\t\t$cus_mail = $get_cus_details->order_ship_mail;\n\t\t\t\t\t\t$admin_mail = $this->admin_mail;\n\t\t\t\t\t\t$mer_mail = $get_details->mer_email; \n\t\t\t\t\t\t//echo $cus_mail.'/'.$admin_mail.'/'.$mer_mail; exit;\n\t\t\t\t\t\t$send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t\t\t'lang'\t\t\t\t\t=> $lang \n\t\t\t\t\t\t);\t\t\t\t\t\t\t\n\t\t\t\t\t\tMail::send('email.mobile_order_delivered_customer', $send_mail_data, function($message) use($cus_mail,$lang)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_DELIVER','Order has been delivered');\n\t\t\t\t\t\t\t$message->to($cus_mail)->subject($msg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t/* send mail to admin */\n\t\t\t\t\t\t$send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t\t\t'customer_details'\t\t=> $get_cus_details ,\n\t\t\t\t\t\t'lang'\t\t\t\t\t=> $lang \t\n\t\t\t\t\t\t);\n\t\t\t\t\t\tMail::send('email.mobile_order_delivered_admin', $send_mail_data, function($message) use($admin_mail,$lang)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_DELIVER','Order has been delivered');\n\t\t\t\t\t\t\t$message->to($admin_mail)->subject($msg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t/* send mail to merchant */\n\t\t\t\t\t\t$send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t\t\t'customer_details'\t\t=> $get_cus_details,\n\t\t\t\t\t\t'lang'\t\t\t\t\t=> $lang \t\n\t\t\t\t\t\t);\n\t\t\t\t\t\tMail::send('email.mobile_order_delivered_admin', $send_mail_data, function($message) use($mer_mail,$lang)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_DELIVER','Order has been delivered');\n\t\t\t\t\t\t\t$message->to($mer_mail)->subject($msg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* add commission to delivery boy */\n\t\t\t\t\t\t$total_comm = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$dist = GetDrivingDistance($get_order_details[0]->st_latitude,$get_cus_details->order_ship_latitude,$get_order_details[0]->st_longitude,$get_cus_details->order_ship_longitude);\n\t\t\t\t\t\t//print_r($dist); exit;\n\t\t\t\t\t\tif(!empty($dist))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$travel_distance = round(($dist['distance'] / 1000),2);\n\t\t\t\t\t\t\t$travel_duration = round($dist['time'] / 60);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($details->deliver_fare_type == 'per_km')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_distance;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($details->deliver_fare_type == 'per_min')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_duration;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$insertArr = ['de_deliver_id' => $deliver_id,\n\t\t\t\t\t\t'de_agent_id'\t => $agent_id,\n\t\t\t\t\t\t'de_transaction_id'\t=> $order_id,\n\t\t\t\t\t\t'de_shop_id'\t=> $store_id,\n\t\t\t\t\t\t'de_merchant_id'\t=>\t$get_details->ord_merchant_id,\n\t\t\t\t\t\t'de_base_fare'\t=> $details->deliver_base_fare,\n\t\t\t\t\t\t'de_unit_type'\t=> $details->deliver_fare_type,\n\t\t\t\t\t\t'de_unit_fare'\t=> ($details->deliver_fare_type == 'per_km') ? $details->deliver_perkm_charge : $details->deliver_permin_charge,\n\t\t\t\t\t\t'de_travel_duration'=>$travel_duration,\n\t\t\t\t\t\t'de_travel_distance'=>$travel_distance,\n\t\t\t\t\t\t'de_total_amount' => ($details->deliver_base_fare + $total_comm),\n\t\t\t\t\t\t'de_ord_sub_total'\t=> $get_details->order_amount,\n\t\t\t\t\t\t'de_ord_wallet'\t\t=> $explode[1],\n\t\t\t\t\t\t'de_ord_delfee'\t\t=> $explode[0],\n\t\t\t\t\t\t'de_order_total'\t=> $totalReceivable,\n\t\t\t\t\t\t'de_ord_status'\t\t=> '1',\n\t\t\t\t\t\t'de_rcd_amt'\t\t=> ($get_details->ord_pay_type ==\"COD\") ? \"0.00\" : $totalReceivable,\n\t\t\t\t\t\t'de_ord_currency'\t=> $get_details->ord_currency,\n\t\t\t\t\t\t'de_ord_currcode'\t=> $this->default_curr_code,\n\t\t\t\t\t\t'de_pay_type'\t\t=> $get_details->ord_pay_type,\n\t\t\t\t\t\t'de_updated_at'\t\t=> date('Y-m-d H:i:s')\n\t\t\t\t\t\t];\n\t\t\t\t\t\t//print_r($insertArr); exit;\n\t\t\t\t\t\tinsertvalues('gr_delivery_person_earnings',$insertArr);\n\t\t\t\t\t\t/* add commission to agent */\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(empty($agent_details) === false && $this->agent_module==1)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$total_comm = 0;\n\t\t\t\t\t\t\t$fare_charge = ($agent_details->agent_fare_type == 'per_km') ? $agent_details->agent_perkm_charge : $agent_details->agent_permin_charge;\n\t\t\t\t\t\t\tif($agent_details->agent_fare_type == 'per_km')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_distance;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($agent_details->agent_fare_type == 'per_min')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_duration;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$insertArr = ['ae_agent_id'\t=>$agent_id,\n\t\t\t\t\t\t\t'ae_deliver_id'\t=> $deliver_id,\n\t\t\t\t\t\t\t'ae_transaction_id'\t=> $order_id,\n\t\t\t\t\t\t\t'ae_shop_id'\t=> $store_id,\n\t\t\t\t\t\t\t'ae_merchant_id'\t=>$get_details->ord_merchant_id,\n\t\t\t\t\t\t\t'ae_base_fare'\t=>\t$agent_details->agent_base_fare,\n\t\t\t\t\t\t\t'ae_unit_type'\t=> $agent_details->agent_fare_type,\n\t\t\t\t\t\t\t'ae_unit_fare'\t=> ($agent_details->agent_fare_type == 'per_km') ? $agent_details->agent_perkm_charge : $agent_details->agent_permin_charge,\n\t\t\t\t\t\t\t'ae_travel_duration' => $travel_duration,\n\t\t\t\t\t\t\t'ae_travel_distance' => $travel_distance,\n\t\t\t\t\t\t\t'ae_total_amount'\t=> ($agent_details->agent_base_fare + $total_comm),\n\t\t\t\t\t\t\t'ae_ord_sub_total'\t=> $get_details->order_amount,\n\t\t\t\t\t\t\t'ae_ord_wallet'\t\t=> $explode[1],\n\t\t\t\t\t\t\t'ae_ord_delfee'\t\t=> $explode[0],\n\t\t\t\t\t\t\t'ae_order_total'\t=> $totalReceivable,\n\t\t\t\t\t\t\t'ae_ord_status'\t\t=> '1',\n\t\t\t\t\t\t\t'ae_rcd_amt'\t\t=>\t($get_details->ord_pay_type ==\"COD\") ? \"0.00\" : $totalReceivable,\n\t\t\t\t\t\t\t'ae_ord_currency'\t=> $get_details->ord_currency,\n\t\t\t\t\t\t\t'ae_pay_type'\t\t=> $get_details->ord_pay_type,\n\t\t\t\t\t\t\t'ae_updated_at'\t\t=> date('Y-m-d H:i:s')\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\tinsertvalues('gr_agent_earnings',$insertArr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn response()->json(array('code'=>400,\"message\"=>MobileModel::get_lang_text($lang,'API_INVALID_AMT','Invalid Amount')));\n\t\t\t\t\t\t}*/\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$encode = ['code'=>400,\"message\"=>MobileModel::get_lang_text($lang,'API_WR_OTP','Wrong otp'),'data' => $this->empty_data];\n\t\t\t\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$encode = ['code'=>400,\"message\"=>MobileModel::get_lang_text($lang,'API_NT_OTP_SENT','Otp not sent'),'data' => $this->empty_data];\n\t\t\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($status == 9) \t/* order delivery failed */\n\t\t\t{\t\n\t\t\t\t$code = 400;\n\t\t\t\t$arr = ['ord_status' \t\t=> $status,\n\t\t\t\t'ord_failed_reason'\t=> $reason,\n\t\t\t\t'ord_failed_on' \t=> date('Y-m-d H:i:s')];\n\t\t\t\t$msg = MobileModel::get_lang_text($lang,'API_OR_FAILED','Order failed');\n\t\t\t\t$got_message = MobileModel::get_lang_text($lang,'API_DEL_FAIL','Order(:transaction_id) has been failed');\n\t\t\t\t$get_details = Delivery_person::get_otp_status($order_id,$deliver_id,$store_id);\n\t\t\t\t$get_order_details = Delivery_person::get_ord_details($order_id,$store_id,$deliver_id,$lang); \n\t\t\t\t$get_cus_details = Delivery_person::get_customer_details($order_id);\n\t\t\t\t$provide_commission\t= Delivery_person::get_basic_details('gr_delivery_manager',['dm_id'=> $get_details->ord_delmgr_id],'dm_commission_status');\n\t\t\t\t//print_r($get_cus_details); exit;\n\t\t\t\t/* send mail to customer */\n\t\t\t\t$cus_mail = $get_cus_details->order_ship_mail;\n\t\t\t\t$admin_mail = $this->admin_mail;\n\t\t\t\t$mer_mail = $get_details->mer_email;\n\t\t\t\t$send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t'lang'\t\t\t\t\t=> $lang,\n\t\t\t\t'reason'\t\t\t\t=> $reason \n\t\t\t\t);\t\t\t\t\t\t\t\n Mail::send('email.mobile_order_failed_customer', $send_mail_data, function($message) use($cus_mail,$lang)\n {\t\n \t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_FAIL','Order has been failed');\n \t$message->to($cus_mail)->subject($msg);\n\t\t\t\t});\n /* send mail to admin */\n $send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t'customer_details'\t\t=> $get_cus_details ,\n\t\t\t\t'lang'\t\t\t\t\t=> $lang,\n\t\t\t\t'reason'\t\t\t\t=> $reason \t\n\t\t\t\t);\n Mail::send('email.mobile_order_failed_admin', $send_mail_data, function($message) use($admin_mail,$lang)\n {\t\n \t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_FAIL','Order has been failed');\n \t$message->to($admin_mail)->subject($msg);\n\t\t\t\t});\n /* send mail to merchant */\n $send_mail_data = array('order_details'\t\t=> $get_order_details,\n\t\t\t\t'transaction_id'\t\t=> $order_id,\n\t\t\t\t'customer_details'\t\t=> $get_cus_details,\n\t\t\t\t'lang'\t\t\t\t\t=> $lang,\n\t\t\t\t'reason'\t\t\t\t=> $reason \t\n\t\t\t\t);\n Mail::send('email.mobile_order_failed_admin', $send_mail_data, function($message) use($mer_mail,$lang)\n {\t\n \t$msg = MobileModel::get_lang_text($lang,'API_OR_HAS_FAIL','Order has been failed');\n \t$message->to($mer_mail)->subject($msg);\n\t\t\t\t});\n /* get agent fare details */\n\t\t\t\t$agent_details = Delivery_person::get_basic_details('gr_agent',['agent_id' => $agent_id],['agent_base_fare','agent_fare_type','agent_perkm_charge','agent_permin_charge']);\t\n /* get delivery fee and wallet */\n\t\t\t\t$cal = Delivery_person::get_receivable_amount($order_id,$get_details->order_amount);\n\t\t\t\t//echo $walletFee; echo $delFee; exit;\n\t\t\t\t$explode = explode('~',$cal); /* $explode[0] = del_fee,$explode[1] = wallet */\n\t\t\t\t$totalReceivable = $get_details->order_amount-$explode[1]+$explode[0];\n\t\t\t\t\n /* If delveiry manager accept to provide commission even delivery failed, update commission for delivery boy and agent */\n if($provide_commission->dm_commission_status == '1')\n {\t\n\n\t\t\t\t\t$dist = GetDrivingDistance($get_order_details[0]->st_latitude,$get_cus_details->order_ship_latitude,$get_order_details[0]->st_longitude,$get_cus_details->order_ship_longitude);\n\t\t\t\t\t//print_r($dist); exit;\n\t\t\t\t\tif(!empty($dist))\n\t\t\t\t\t{\n\t\t\t\t\t\t$travel_distance = round(($dist['distance'] / 1000),2);\n\t\t\t\t\t\t$travel_duration = round($dist['time'] / 60);\n\t\t\t\t\t}\n \t/* add commission to delivery boy */\n\t\t\t\t\t$total_comm = 0;\n\t\t\t\t\tif($details->deliver_fare_type == 'per_km')\n\t\t\t\t\t{\n\t\t\t\t\t\t$total_comm = $fare_charge * $travel_distance;\n\t\t\t\t\t}\n\t\t\t\t\telseif($details->deliver_fare_type == 'per_min')\n\t\t\t\t\t{\n\t\t\t\t\t\t$total_comm = $fare_charge * $travel_duration;\n\t\t\t\t\t}\t\n\t\t\t\t\t$insertArr = ['de_deliver_id' => $deliver_id,\n\t\t\t\t\t'de_agent_id'\t => $agent_id,\n\t\t\t\t\t'de_transaction_id'\t=> $order_id,\n\t\t\t\t\t'de_shop_id'\t=> $store_id,\n\t\t\t\t\t'de_merchant_id'\t=>\t$get_details->ord_merchant_id,\n\t\t\t\t\t'de_base_fare'\t=> $details->deliver_base_fare,\n\t\t\t\t\t'de_unit_type'\t=> $details->deliver_fare_type,\n\t\t\t\t\t'de_unit_fare'\t=> ($details->deliver_fare_type == 'per_km') ? $details->deliver_perkm_charge : $details->deliver_permin_charge,\n\t\t\t\t\t'de_travel_duration'=>$travel_duration,\n\t\t\t\t\t'de_travel_distance'=>$travel_distance,\n\t\t\t\t\t'de_total_amount' => ($details->deliver_base_fare + $total_comm),\n\t\t\t\t\t'de_ord_sub_total'\t=> $get_details->order_amount,\n\t\t\t\t\t'de_ord_wallet'\t\t=> $explode[1],\n\t\t\t\t\t'de_ord_delfee'\t\t=> $explode[0],\n\t\t\t\t\t'de_order_total'\t=> $totalReceivable,\n\t\t\t\t\t'de_ord_status'\t\t=> '2',\n\t\t\t\t\t'de_rcd_amt'\t\t=> ($get_details->ord_pay_type ==\"COD\") ? \"0.00\" : $totalReceivable,\n\t\t\t\t\t'de_ord_currency'\t=> $get_details->ord_currency,\n\t\t\t\t\t'de_ord_currcode'\t=> $this->default_curr_code,\n\t\t\t\t\t'de_pay_type'\t\t=> $get_details->ord_pay_type,\n\t\t\t\t\t'de_updated_at'\t\t=> date('Y-m-d H:i:s')\n\t\t\t\t\t];\n\t\t\t\t\tinsertvalues('gr_delivery_person_earnings',$insertArr);\n\t\t\t\t\t/* add commission to agent */\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(empty($agent_details) === false && $this->agent_module==1)\n\t\t\t\t\t{\t\n\t\t\t\t\t\t$total_comm = 0;\n\t\t\t\t\t\t$fare_charge = ($agent_details->agent_fare_type == 'per_km') ? $agent_details->agent_perkm_charge : $agent_details->agent_permin_charge;\n\t\t\t\t\t\tif($agent_details->agent_fare_type == 'per_km')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_distance;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($agent_details->agent_fare_type == 'per_min')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$total_comm = $fare_charge * $travel_duration;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$insertArr = ['ae_agent_id'\t=>$agent_id,\n\t\t\t\t\t\t'ae_deliver_id'\t=> $deliver_id,\n\t\t\t\t\t\t'ae_transaction_id'\t=> $order_id,\n\t\t\t\t\t\t'ae_shop_id'\t=> $store_id,\n\t\t\t\t\t\t'ae_merchant_id'\t=>$get_details->ord_merchant_id,\n\t\t\t\t\t\t'ae_base_fare'\t=>\t$agent_details->agent_base_fare,\n\t\t\t\t\t\t'ae_unit_type'\t=> $agent_details->agent_fare_type,\n\t\t\t\t\t\t'ae_unit_fare'\t=> ($agent_details->agent_fare_type == 'per_km') ? $agent_details->agent_perkm_charge : $agent_details->agent_permin_charge,\n\t\t\t\t\t\t'ae_travel_duration' => $travel_duration,\n\t\t\t\t\t\t'ae_travel_distance' => $travel_distance,\n\t\t\t\t\t\t'ae_total_amount'\t=> ($agent_details->agent_base_fare + $total_comm),\n\t\t\t\t\t\t'ae_ord_sub_total'\t=> $get_details->order_amount,\n\t\t\t\t\t\t'ae_ord_wallet'\t\t=> $explode[1],\n\t\t\t\t\t\t'ae_ord_delfee'\t\t=> $explode[0],\n\t\t\t\t\t\t'ae_order_total'\t=> $totalReceivable,\n\t\t\t\t\t\t'ae_ord_status'\t\t=> '2',\n\t\t\t\t\t\t'ae_rcd_amt'\t\t=> ($get_details->ord_pay_type ==\"COD\") ? \"0.00\" : $totalReceivable,\n\t\t\t\t\t\t'ae_ord_currency'\t=> $get_details->ord_currency,\n\t\t\t\t\t\t'ae_pay_type'\t\t=> $get_details->ord_pay_type,\n\t\t\t\t\t\t'ae_updated_at'\t\t=> date('Y-m-d H:i:s')\n\t\t\t\t\t\t];\n\t\t\t\t\t\tinsertvalues('gr_agent_earnings',$insertArr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*$arr['ord_deliver_latitude'] = $latitude;\n\t\t\t$arr['ord_deliver_longitude'] = $longitude;*/\n\t\t\tupdatevalues('gr_order',$arr,['ord_transaction_id' => $order_id,'ord_rest_id' => $store_id,'ord_delivery_memid' => $deliver_id]);\n\t\t\t/* send notification */\t\n\t\t\t$searchReplaceArray = array(':transaction_id' => $order_id);\n\t\t\t$result = str_replace(array_keys($searchReplaceArray),array_values($searchReplaceArray),$got_message);\t\t\t \n\t\t\t$req_details = Delivery_person::get_related_details($order_id,$store_id);\n\t\t\t//1)admin\n\t\t\t$message_link = 'admin-track-order/'.base64_encode($order_id);\n\t\t\tpush_notification($deliver_id,$this->admin_id,'gr_delivery_member','gr_admin',$result,$order_id,$message_link);\n\t\t\t\n\t\t\tif(empty($req_details) === false)\n\t\t\t{\n\t\t\t\t//2)merchant\n\t\t\t\t$message_link1 = 'mer-order-details/'.base64_encode($order_id);\n\t\t\t\tpush_notification($deliver_id,$req_details->ord_merchant_id,'gr_delivery_member','gr_merchant',$result,$order_id,$message_link1);\n\t\t\t\t\n\t\t\t\t//3)delivery manager\n\t\t\t\t\n\t\t\t\t$message_link2 = 'delivery-track-order/'.base64_encode($order_id).'/'.base64_encode($req_details->ord_merchant_id);\n\t\t\t\tpush_notification($deliver_id,$req_details->ord_delmgr_id,'gr_delivery_member','gr_delivery_manager',$result,$order_id,$message_link2);\t\n\t\t\t\t\n\t\t\t\t//4)customer\n\t\t\t\t\n\t\t\t\t$message_link3 = 'track-order/'.base64_encode($order_id);\n\t\t\t\tpush_notification($deliver_id,$req_details->ord_cus_id,'gr_delivery_member','gr_customer',$result,$order_id,$message_link3);\t\n\t\t\t\t/* send notification to customer mobile */\n\t\t\t\t\n\t\t\t\tif($req_details->cus_andr_fcm_id != '' || $req_details->cus_ios_fcm_id != '')\n\t\t\t\t{\n\t\t\t\t\tif($req_details->cus_andr_fcm_id !='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$parse_fcm=json_decode($req_details->cus_andr_fcm_id,true);\n\t\t\t\t\t\t$reg_id = array();\n\t\t\t\t\t\tif(count($parse_fcm) > 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($parse_fcm as $parsed)\n\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tarray_push($reg_id,$parsed['fcm_id']);\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$json_data = [\n\t\t\t\t\t\t\t\t\t\t\"registration_ids\" => $reg_id,\n\t\t\t\t\t\t\t\t\t\t\"notification\" => [\"body\" => $result,\"title\" => \"Order Notification\"],\n\t\t\t\t\t\t\t\t\t\t\"data\"\t\t=> ['order_id' => $order_id,'store_id' => $store_id]\n\t\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t$notify = $this->sendPushNotification($json_data,ANDR_FIREBASE_API_KEY_CUS);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif($req_details->cus_ios_fcm_id !='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$parse_fcm=json_decode($req_details->cus_ios_fcm_id,true);\n\t\t\t\t\t\t$reg_id = array();\n\t\t\t\t\t\tif(count($parse_fcm) > 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($parse_fcm as $parsed)\n\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tarray_push($reg_id,$parsed['fcm_id']);\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$json_data = [\n\t\t\t\t\t\t\t\t\t\t\"registration_ids\" => $reg_id,\n\t\t\t\t\t\t\t\t\t\t\"notification\" => [\"body\" => $result,\"title\" => \"Order Notification\",\"sound\"=> \"default\"],\n\t\t\t\t\t\t\t\t\t\t\"data\"\t\t\t=> ['order_id' => $order_id,'store_id' => $store_id]\n\t\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t$notify = $this->sendPushNotification($json_data,IOS_FIREBASE_API_KEY_CUS);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* send notification to customer mobile ends */\n\t\t\t}\n\t\t\t//5)agent\n\t\t\tif($this->agent_module == 1)\n\t\t\t{\n\t\t\t\tpush_notification($deliver_id,$agent_id,'gr_delivery_member','gr_agent',$result,$order_id,'');\t\n\t\t\t}\n\t\t\t\n\t\t\t/* send notification ends */\n\t\t\t\n\t\t\t$encode = ['code'=>$code,\"message\"=>$msg,'data' => $this->empty_data];\n\t\t\treturn Response::make(json_encode($encode,JSON_PRETTY_PRINT|JSON_FORCE_OBJECT))->header('Content-Type',\"application/json\");\n\t\t}", "title": "" }, { "docid": "5bc41c31ac679e143b67a921f26cee3e", "score": "0.6584046", "text": "public function updateOrderStatus(Request $request){\n if(!$this->requiredParams($request, ['key'])){\n return response()->json(['status' => 'error' , 'message' => 'missing params' ] , 400);\n }\n $order= Order::find($request->id);\n $order->order_status_id = $request->status_id;\n \n \n $order->save();\n return response()->json(['status' => 'success' , 'message' => 'OK' , 'data' => $order] , 200);\n \n \n }", "title": "" }, { "docid": "00d8033fa077ef1ecbe540ede6f0a20d", "score": "0.65774983", "text": "public function updatePaymentOrder($order_id, $payment_method, $response = 'success', $status = 1) {\n\n $payment = PaymentOrder::where('order_id', $order_id)->where('payment_method', $payment_method)->limit(1)->first();\n\n // $payment->order_id = $order_id;\n if(!empty($payment)) {\n\n if($payment->status !== 1) {\n\n $details = json_decode($payment->details, true);\n\n $payment->attempts = $payment->attempts + 1;\n\n $details[$payment->attempts + 1] = $response;\n\n $payment->details = $details;\n\n $payment->status = $status;\n\n $payment->save();\n }\n }\n else {\n\n $attempts = 1;\n\n $details = [ 1 => $response ];\n\n $this->createOrderPaymentMethodeRecord($order_id, $payment_method, $attempts, $details, $status);\n }\n }", "title": "" }, { "docid": "c48cb1ed5b951f969496e0f6939cf9f0", "score": "0.6576831", "text": "function fn_avatax_tax_calculation_change_return_status($return_info, $order_info)\n{\n \n $change_return_status = $_REQUEST['change_return_status'];\n $status_from = $change_return_status['status_from'];\n \n \n if (Registry::get('addons.avatax_tax_calculation.avatax_tax_calculation') == 1) {\n if(Registry::get('addons.avatax_tax_calculation.avatax_tax_savedoc') == 1)\n {\n Switch ($return_info['status']) {\n case 'A': //Accepted\n fn_return_state_committed($return_info, $order_info,$status_from);\n break;\n case 'C': //Complete\n fn_return_state_committed($return_info, $order_info,$status_from);\n break;\n case 'R': //Requested\n fn_return_state_uncommitted($return_info, $order_info,$status_from);\n break;\n case 'D': //Declined\n fn_return_state_voided($return_info, $order_info,$status_from);\n break;\n }\n }\n else\n {\n\n }\n }\n}", "title": "" }, { "docid": "1a6cd13b20339de164e788d04b0c9a1e", "score": "0.6574477", "text": "private static function _updateStatus($id, $data) {\n global $lC_Database, $lC_Language, $lC_Vqmod;\n\n $lC_Language->loadIniFile('orders.php');\n\n // build the order status array\n require_once($lC_Vqmod->modCheck('includes/classes/order.php'));\n $lC_Order = new lC_Order($id);\n\n $orders_status_array = array();\n\n $Qstatuses = $lC_Database->query('select orders_status_id, orders_status_name from :table_orders_status where language_id = :language_id');\n $Qstatuses->bindTable(':table_orders_status', TABLE_ORDERS_STATUS);\n $Qstatuses->bindInt(':language_id', $lC_Language->getID());\n $Qstatuses->execute();\n\n while ($Qstatuses->next()) {\n $orders_status_array[$Qstatuses->valueInt('orders_status_id')] = $Qstatuses->value('orders_status_name');\n }\n\n // update order status\n $error = false;\n\n $lC_Database->startTransaction();\n\n $Qorder = $lC_Database->query('select customers_name, customers_email_address, orders_status, date_purchased from :table_orders where orders_id = :orders_id');\n $Qorder->bindTable(':table_orders', TABLE_ORDERS);\n $Qorder->bindInt(':orders_id', $id);\n $Qorder->execute();\n\n $Qupdate = $lC_Database->query('update :table_orders set orders_status = :orders_status, last_modified = now() where orders_id = :orders_id');\n $Qupdate->bindTable(':table_orders', TABLE_ORDERS);\n $Qupdate->bindInt(':orders_status', $data['status_id']);\n $Qupdate->bindInt(':orders_id', $id);\n $Qupdate->setLogging($_SESSION['module'], $id);\n $Qupdate->execute();\n\n if ( !$lC_Database->isError() ) {\n if ( $data['notify_customer'] === true ) {\n $email_body = sprintf($lC_Language->get('email_body'), STORE_NAME) . \"\\n\" . $lC_Language->get('email_underline') . \"\\n\";\n $email_body .= sprintf($lC_Language->get('email_order_number'), $id) . \"\\n\";\n $email_body .= sprintf($lC_Language->get('email_detailed_invoice'), lc_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $id, 'SSL', false, false, true)) . \"\\n\";\n $email_body .= sprintf($lC_Language->get('email_date_ordered'), lC_DateTime::getLong($Qorder->value('date_purchased'))) . \"\\n\\n\";\n $email_body .= sprintf($lC_Language->get('email_order_status'), $orders_status_array[$data['status_id']]) . \"\\n\\n\";\n\n if ( $data['append_comment'] === true ) {\n $email_body .= sprintf($lC_Language->get('email_order_comment'), $data['comment']) . \"\\n\" . $lC_Language->get('email_underline') . \"\\n\\n\";\n }\n $email_body .= $lC_Language->get('email_body_contact');\n\n lc_email($Qorder->value('customers_name'), $Qorder->value('customers_email_address'), sprintf($lC_Language->get('email_subject'), STORE_NAME), $email_body, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);\n }\n\n $Qupdate = $lC_Database->query('insert into :table_orders_status_history (orders_id, orders_status_id, date_added, customer_notified, comments) values (:orders_id, :orders_status_id, now(), :customer_notified, :comments)');\n $Qupdate->bindTable(':table_orders_status_history', TABLE_ORDERS_STATUS_HISTORY);\n $Qupdate->bindInt(':orders_id', $id);\n $Qupdate->bindInt(':orders_status_id', $data['status_id']);\n $Qupdate->bindInt(':customer_notified', ( $data['notify_customer'] === true ? '1' : '0'));\n $Qupdate->bindValue(':comments', $data['comment']);\n $Qupdate->setLogging($_SESSION['module'], $id);\n $Qupdate->execute();\n\n if ( $lC_Database->isError() ) {\n $error = true;\n }\n } else {\n $error = true;\n }\n\n if ( $error === false ) {\n $lC_Database->commitTransaction();\n // build and return the udpated status history\n $history = '';\n $result = array();\n foreach ( $lC_Order->getStatusHistory() as $status_history ) {\n $history .= '<tr>\n <td align=\"left\" valign=\"top\">' . lC_DateTime::getShort($status_history['date_added'], true) . '</td>\n <td align=\"left\" valign=\"top\">' . $status_history['status'] . '</td>\n <td align=\"left\" valign=\"top\">' . nl2br($status_history['comment']) . '</td>\n <td align=\"center\" valign=\"top\"><span class=\"' . (($status_history['customer_notified'] === 1) ? 'icon-tick icon-green' : 'icon-cross icon-red') . '\"><span></td>\n </tr>';\n }\n $result['orderStatusHistory'] = $history;\n\n return $result;\n }\n\n $lC_Database->rollbackTransaction();\n\n return false;\n }", "title": "" }, { "docid": "9b18a6ab90f3df1ce0d31fe55a7e9657", "score": "0.65737957", "text": "public function updateOrderStatus($order, $status = null){\n if($status !== null) {\n $order->Status = $status;\n }\n return $this->callApi('Order_UpdateStatus', ['OrderId' =>$order->Id, 'Status' =>$order->Status]);\n }", "title": "" }, { "docid": "1f0144887ceb77fd015bdee955092be8", "score": "0.6570202", "text": "public function setStatus($orderId, $status)\n {\n $data = array('status' => $status);\n\n $this->db->where('orderId', $orderId);\n $this->db->update('orders', $data); \n }", "title": "" }, { "docid": "a84c3fb674917fe736cacc2ce5a02991", "score": "0.65650034", "text": "function updateOrderDetailStatus(Request $request) {\n $orderDetail = OrderDetail::where('id', $request->id)\n ->update(['is_new' => 0]);\n\n if($orderDetail) {\n return response()->json(['status' => 'success', 'data'=>'Updated Successfully.']); \n }\n }", "title": "" }, { "docid": "f529e2da3fbef75e9148a0a2a28b373d", "score": "0.6563767", "text": "protected function _updatePostStatus(){\n\t\tglobal $wpdb;\n\t\t$tblRelationShip = $wpdb->prefix . AlterTablePaymentRelationships::$tblName;\n\t\t$tblPaymentHistory = $wpdb->prefix . AlterTablePaymentHistory::$tblName;\n\n\t\t$aResults = $wpdb->get_results(\n\t\t\t$wpdb->prepare(\n\t\t\t\t\"SELECT $tblRelationShip.object_ID FROM $tblRelationShip INNER JOIN $tblPaymentHistory ON ($tblRelationShip.payment_ID = $tblPaymentHistory.ID) WHERE $tblPaymentHistory.package_ID=%d AND $tblPaymentHistory.ID=%d\",\n\t\t\t\t$this->_packageID, $this->_paymentID\n\t\t\t)\n\t\t);\n\n\t\tif ( !empty($aResults) ){\n\t\t\tforeach ( $aResults as $oResult ){\n\t\t\t\tif ( get_post_field('post_status', $oResult->object_ID) === 'processing' ){\n\t\t\t\t\twp_update_post(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'ID' => $oResult->object_ID,\n\t\t\t\t\t\t\t'post_status' => 'pending'\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "48093c44bfee4a4389b257a55ef0ffbf", "score": "0.65573186", "text": "function add_delivered_to_order_statuses( $order_statuses ) {\n \n $new_order_statuses = array();\n \n // add new order status after processing\n foreach ( $order_statuses as $key => $status ) {\n \n $new_order_statuses[ $key ] = $status;\n \n if ( 'wc-processing' === $key ) {\n $new_order_statuses['wc-delivered'] = 'Delivered';\n }\n }\n \n return $new_order_statuses;\n}", "title": "" }, { "docid": "c24a9f214d81cfa53c837bd9645e213b", "score": "0.6554081", "text": "public function change_payment_complete_order_status($status, $order_id = 0, $order = \\false)\n {\n }", "title": "" }, { "docid": "03e79300e324b46cd4f771ce29fae754", "score": "0.65513223", "text": "public function testUpdateOrderSuccess()\n {\n echo \"\\n <<<<<< Update Order Positive Success >>>>>> \\n\";\n \n $this->patch('/orders/'.self::$orderId, [\"status\" => \"TAKEN\"])\n ->assertJson(['status'=>'SUCCESS']);\n }", "title": "" }, { "docid": "7a091de25d0154f0ed902e15d8ac7b50", "score": "0.65440065", "text": "function get_status ($payment)\n\t{\n\t\t// Default pending status.\n\t\t$status = 'pending';\n\t\t\n\t\t// Adjust status based on certain event dates.\n\t\tif (in_array($payment['status'], array('pending', 'sent', 'paid', 'cancelled', 'overdue')))\n\t\t{\n\t\t\tif ($payment['date_sent'])\n\t\t\t{\n\t\t\t\t$status = 'sent';\n\t\t\t}\n\t\t\tif ($payment['date_paid'])\n\t\t\t{\n\t\t\t\t$status = 'paid';\n\t\t\t}\n\t\t\telseif ($payment['date_due'] && strtotime($payment['date_due']) < time())\n\t\t\t{\n\t\t\t\t$status = 'overdue';\n\t\t\t}\n\t\t}\n\t\tif ($payment['date_cancelled'])\n\t\t{\n\t\t\t$status = 'cancelled';\n\t\t}\n\t\t\n\t\t// Update status?\n\t\tif ($payment['id'] && $payment['status'] != $status)\n\t\t{\n\t\t\t// Put or remove overdue flag on order.\n\t\t\tif ($status == \"overdue\")\n\t\t\t{\n\t\t\t\tput(\"/orders/{$payment['order_id']}\", array('overdue' => true));\n\t\t\t}\n\t\t\telseif ($payment['status'] == \"overdue\")\n\t\t\t{\n\t\t\t\tput(\"/orders/{$payment['order_id']}\", array('overdue' => false));\n\t\t\t}\n\t\t\t\n\t\t\tput(\"/payments/{$payment['id']}/status\", $status);\n\t\t}\n\t\t\n\t\treturn $status;\n\t}", "title": "" }, { "docid": "6d829798ddc84f6c32e39a788527050d", "score": "0.65422964", "text": "public function updateOrderSuccess( Request $request, Orders $order )\n {\n $order->setState( Orders::STATE_PAYMENT_OK );\n $order->setAttribute( 'paytype' , 'payment', 'gothia' );\n // Fee is handled in the checkout controller, as we need the information in the summery\n $order->save();\n }", "title": "" }, { "docid": "f60b456cc485a1261653f7a703efd020", "score": "0.6537369", "text": "public function updated(Order $order)\n {\n $modelChanges = $order->getChanges();\n\n if (isset($modelChanges['status'])) {\n\n if ($modelChanges['status'] == 'CANCELLED') {\n // Cancelled - Administrator\n $administrators = User::whereRole('ADMINISTRATOR')->get();\n Notification::send($administrators, new \\App\\Notifications\\OrderCancelled($order));\n } else if ($modelChanges['status'] == 'DECLINED') {\n // Declined - Customer\n $customerUser = $order->customer->user;\n Notification::send([$customerUser], new \\App\\Notifications\\OrderDeclined($order));\n } else if ($modelChanges['status'] == 'ON-THE-WAY') {\n // OnTheWay - Customer\n $customerUser = $order->customer->user;\n Notification::send([$customerUser], new \\App\\Notifications\\OrderOnTheWay($order));\n } else if ($modelChanges['status'] == 'DELIVERED') {\n // Delivered - Customer\n $customerUser = $order->customer->user;\n Notification::send([$customerUser], new \\App\\Notifications\\OrderDelivered($order));\n }\n }\n }", "title": "" }, { "docid": "87c6a400e72320be31de7b17fa928c5f", "score": "0.6536697", "text": "public function changeStatus(Request $request, $order_id)\n {\n Order::where('order_id',$order_id)->update([\n 'status' => \"Delivered\"\n ]);\n return redirect('admin/show/order/'.$order_id)->with('success', 'Status Successfully Change to Delivered');\n }", "title": "" }, { "docid": "88ec815be5ed114a414f807563cbb315", "score": "0.652554", "text": "public function addOrdeStatus($order_id,$data) {\n\t\t$sql=\"update \" . DB_PREFIX . \"vendor_order_product set\n\t\torder_status_id='\".$data['order_status_id'].\"',\n\t\tdate_modified=now() where order_id='\".$order_id.\"'\";\n\t\t\n\t\t$this->db->query($sql);\n\t\t/* 30-01-2019 */\n\t\t$this->db->query(\"UPDATE `\" . DB_PREFIX . \"order` SET order_status_id='\".$data['order_status_id'].\"',\n\t\tdate_modified=now() WHERE order_id = '\" . (int)$order_id . \"'\");\n\t\t/* 30-01-2019 */\n\t\t\n\t\t/// Seller Order Status To Mail ///\n\t\t$this->load->model('vendor/mail');\n\t\t$this->load->model('vendor/vendor');\n\t\t$sellertype = 'seller_order_status_update_email';\n\t\t\n\t\t$mailinfo = $this->model_vendor_mail->getMailInfo($sellertype);\n\t\t\n\t\t$sellerorder_info = $this->model_vendor_vendor->getSellerOrder($order_id);\n\t\t$seller_info = $this->model_vendor_vendor->getVendor($sellerorder_info['vendor_id']);\n\t\t//print_r($seller_info);die();\n\t\t/*Status Enabled*/\n\t\tif(isset($mailinfo['status'])){\n\t\t\t$find = array(\n\t\t\t\t'{emails}',\t\t\t\t\t\t\t\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\tif(isset($seller_info['email'])) {\n\t\t\t\t$emails = $seller_info['email'];\n\t\t\t} else {\n\t\t\t\t$emails='';\n\t\t\t}\n\t\t\t\n\t\t\t$replace = array(\n\t\t\t\t'email' \t=> $emails,\n\t\t\t);\n\t\t\t\n\n\t\t\t$subject = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), '', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), '', trim(str_replace($find, $replace, $mailinfo['subject']))));\n\n\t\t\t$message = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), '', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), '', trim(str_replace($find, $replace, $mailinfo['message']))));\n\t\t\t\n\t\t\t$mail = new Mail();\n\t\t\t$mail->protocol = $this->config->get('config_mail_protocol');\n\t\t\t$mail->parameter = $this->config->get('config_mail_parameter');\n\t\t\t$mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');\n\t\t\t$mail->smtp_username = $this->config->get('config_mail_smtp_username');\n\t\t\t$mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');\n\t\t\t$mail->smtp_port = $this->config->get('config_mail_smtp_port');\n\t\t\t$mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');\n\n\t\t\t$mail->setTo($emails);\n\t\t\t$mail->setFrom($this->config->get('config_email'));\n\t\t\t$mail->setSender(html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'));\n\t\t\t$mail->setSubject($subject);\n\t\t\t$mail->setHtml(html_entity_decode($message));\n\t\t\t$mail->send();\n\t\t\t\t\t\n\t\t}\n\t\treturn $order_id;\n\t\t\n\t}", "title": "" }, { "docid": "b4edce4e980c0a6fdd785092f2302416", "score": "0.65253556", "text": "function updateOrder($basicid, $userid, $grpid, $queueid, $amt, $Received, $coincode, $status){\n try {\n db_update('payment_cc')\n ->fields(array(\n\t\t\t\t\t\t'pay_status' => $status,\n\t\t\t\t\t\t'queue_id' => $queueid,\n\t\t\t\t\t\t'coin_amount' => $amt,\n\t\t\t\t\t\t'pay_amount' => $Received,\n\t\t\t\t\t\t'coin_code' => $coincode,\n ))\n ->condition('order_id', $basicid, '=')\n ->condition('user_id', $userid, '=')\n ->condition('grp_id', $grpid, '=')\n ->execute();\n } catch (exception $e) {\n watchdog('payment_cc', 'Could not update pending_otp: !fault', $e->getMessage());\n return FALSE;\n }\n}", "title": "" }, { "docid": "4b3d698409bafa1830779cecc057f2c0", "score": "0.65165216", "text": "public function update_buying_status_post(){\n $data = $this->security->xss_clean($_POST);\n $data = $this->DeviceBuyReq_model->update_buying_status($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 }", "title": "" }, { "docid": "d348f3919449e605bce12aedbd399706", "score": "0.65125155", "text": "function register_subscription_paid_order_status() {\r\n register_post_status( 'wc-subscription-paid', array(\r\n 'label' => 'MP Subscription Paid',\r\n 'public' => true,\r\n 'exclude_from_search' => false,\r\n 'show_in_admin_all_list' => true,\r\n 'show_in_admin_status_list' => true,\r\n 'label_count' => _n_noop( 'MP Subscription Paid (%s)', 'MP Subscription Paid (%s)' )\r\n ) );\r\n}", "title": "" }, { "docid": "61dc430e73cf9adb78dfd9bac7a05e0c", "score": "0.6506056", "text": "function wpbc_add_payment_status_ok__ipay88( $payment_status ){\n $payment_status = array_merge( $payment_status, \n array(\n 'ipay88:OK'\n ) \n ); \n return $payment_status; \n }", "title": "" }, { "docid": "9dcdd9f3786c830f98e44260f7de194e", "score": "0.6487892", "text": "public function updateStatusAction()\n\t{\n\t\t// (1)\n\t\t$trxid = GeneralUtility::_GP('trxid');\n\t\t$entranceCode = GeneralUtility::_GP('ec');\n\n\t\t// (2)\n\t\t/** @var IdealTransaction $idealTransaction */\n\t\t$idealTransaction = $this->idealTransactionRepository->findByTxId($trxid)->getFirst();\n\t\tif (empty($idealTransaction)) {\n\t\t\tdebug('Transaction '.$trxid.' not found in IdealTransactionRepository.');\n\t\t\texit(1);\n\t\t}\n\n\t\t// (3)\n\t\t$response = $this->idealService->getTransactionStatus($trxid);\n\t\t\n\t\t// (4)\n\t\t$idealTransaction->setAcquirerId($response->getAcquirerId());\n\t\t$idealTransaction->setTxStatus($response->getStatus());\n\t\t$idealTransaction->setTxStatusTimestamp($response->getStatusTimestamp());\n\t\t$idealTransaction->setTxConsumerName($response->getConsumerName());\n\t\t$idealTransaction->setTxConsumerIban($response->getConsumerIban());\n\t\t$idealTransaction->setTxConsumerBic($response->getConsumerBic());\n\t\t$idealTransaction->setAmount($response->getAmount());\n\t\t$idealTransaction->setCurrency($response->getCurrency());\n\n\t\t// update registration because we have no way of transferring $trxid\n\t\t$idealTransaction->getRegistration()->setPaymentReference($trxid);\n\n\t\t// update and persistAll\n\t\t$this->idealTransactionRepository->update($idealTransaction);\n\t\t$persistenceManager = $this->objectManager->get(\"TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager\");\n\t\t$persistenceManager->persistAll();\n\n\t\t// redirect naar Pipayment::successAction / cancelAction / failureAction - depending on $response.status\n\t\tswitch($response->getStatus()) {\n\t\tdefault:\t// fall through\n\t\t\t$actionName = 'failure';\n\t\t\tbreak;\n\t\tcase 'Success':\n\t\t\t$actionName = 'success';\n\t\t\tbreak;\n\t\tcase 'Cancelled':\n\t\t\t$actionName = 'cancel';\n\t\t\tbreak;\n\t\t}\n\t\t$registration = $idealTransaction->getRegistration();\n $paymentReturnPid = $this->pluginSettings->getPaymentReturnPid();\n\t\t$this->uriBuilder->reset()\n\t\t\t->setTargetPageUid($paymentReturnPid)\n\t\t\t->setUseCacheHash(false);\n\t\t$uri = $this->uriBuilder->uriFor(\n\t\t\t$actionName,\n\t\t\t[\n\t\t\t\t'registration' => $registration,\n\t\t\t\t'hmac' => $this->hashService->generateHmac($actionName.'Action-' . $registration->getUid())\n\t\t\t],\n\t\t\t'Payment',\n\t\t\t'sfeventmgt',\n\t\t\t'Pipayment'\n\t\t);\n\t\t$this->redirectToUri($uri);\n\n\t\t// (5)\n\t\t$this->view->assign('idealTransaction',$idealTransaction);\n\t}", "title": "" }, { "docid": "4d7ebbc0405457a8bf12be891faf318a", "score": "0.64848816", "text": "public function addUpdateOrderStatuses()\n {\n $orderManager = new OrderManager();\n $translationKeys = $orderManager::ORDER_STATE_TRANSLATION_KEY_MAP;\n foreach (array_keys($translationKeys) as $translationKey) {\n $orderManager->createOrderState($translationKey);\n }\n }", "title": "" }, { "docid": "cc44158a9d0a166898e233c982533cbd", "score": "0.6479061", "text": "public function change_status_order($where=array(),$data=array())\n {\n json_encode($this->db->where($where)->update($this->orders,$data));\n }", "title": "" }, { "docid": "b8a5a14d8e1396de2ae3f3de08120b7c", "score": "0.64774084", "text": "public function testShopgateStatusSet()\n {\n $this->setPaidStatusFixture('processing');\n $order = Mage::getModel('sales/order');\n $payment = Mage::getModel('sales/order_payment');\n $payment->setTransactionAdditionalInfo('raw_details_info', array('payment_status' => 'completed'));\n $order->setPayment($payment);\n $this->class->setOrderStatus($order);\n $this->assertTrue($order->getShopgateStatusSet());\n }", "title": "" }, { "docid": "0c85fbc3db696b47e10289cbf1dc52b0", "score": "0.645972", "text": "public function updateOrderStatus(Request $request)\n\t{\n\t\t$order = Order::where('id', $request->id)->first();\n\t\t$order->status = $request->status;\n\t\t$order->save();\n\t\treturn back();\n\t}", "title": "" }, { "docid": "0bda5816ccdf954acce484b788d2213f", "score": "0.6453932", "text": "function updatePurchaseOrder($con, $json){\n\n\t\t$po = $json->data->{'po'};\n\n\t\t$product_id = $json->data->{'product_id'};\n\n\t\t$type = $json->data->{'type'};\n\n\t\t$label = $json->data->{'label'};\n\n\t\t$serial_number = $json->data->{'serial_number'};\n\n\t\t$expiry_date = $json->data->{'expiry_date'};\n\n\t\t$quantity_receipt = $json->data->{'quantity_receipt'};\n\t\t\n\t\t$purchase_detail_id = $json->data->{'purchase_detail_id'};\n\n\t\tif($po!=\"\" && $product_id!=\"\" && $type!=\"\"){\n\n\t\t\tif($type==1){\n\n\t\t\t\t//update label here\n\n\t\t\t\t$query = \"UPDATE product_receipt_details SET label = '\".$label.\"' WHERE receipt_id = \".$po.\" AND product_id=\".$product_id.\" AND purchase_detail_id = '\".$purchase_detail_id.\"'\";\n\n\t\t\t\t$update = mysqli_query($con, $query);\n\n\t\t\t\tif(mysqli_affected_rows($update)>0){\n\n\t\t\t\t\t$response['data'] = array(\"status\"=>\"true\",\"message\"=>'Updated Successfully');\n\n\t\t\t\t}else{\n\n\t\t\t\t\t$response['data'] = array(\"status\"=>\"false\",\"message\"=>'Not updated');\n\n\t\t\t\t}\n\n\t\t\t}elseif($type==2){\n\n\t\t\t\t//update lott, serial number and expiry date here\n\n\t\t\t}else{\n\n\t\t\t\t//nothing to do\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t$response['data'] = array(\"status\"=>\"false\",\"message\"=>'Request parameter Required');\n\n\t\t}\n\n\t\treturn $response;\n\n\t}", "title": "" }, { "docid": "65b205da95f60b2992730685c9509ac8", "score": "0.645229", "text": "public function update_status($status)\n {\n }", "title": "" }, { "docid": "779c614e80ae8d8ea00a8df47610ca38", "score": "0.6446537", "text": "function cpgwwc_add_order_statuses( $order_statuses )\n{\n $order_statuses['wc-pay_au'] = _x( 'Платеж авторизован', 'WooCommerce Order status', 'text_domain' );\n $order_statuses['wc-pay_delivered'] = _x( 'Доставлен', 'WooCommerce Order status', 'text_domain' );\n return $order_statuses;\n}", "title": "" } ]
d161fc4f80532bf8a17f6c7dd2759e61
Get the description of the device.
[ { "docid": "728d63bcd87463e10cfef67f60f6453b", "score": "0.0", "text": "public function getDescription() {\n\t\t$cmd = \"/lib/udev/zvol_id \\\"\" . $this->getDeviceFile() . \"\\\"\";\n\t\tOMVModuleZFSUtil::exec($cmd,$out,$res);\n\t\t$name = $out[0];\n return sprintf(gettext(\"Zvol %s [%s, %s]\"),\n $name, $this->getDeviceFile(), binary_format($this->getSize()));\n }", "title": "" } ]
[ { "docid": "9869c653b90aa18db2f364fb210437cd", "score": "0.73784536", "text": "public function getDescription() : string\n {\n return $this->description;\n }", "title": "" }, { "docid": "9869c653b90aa18db2f364fb210437cd", "score": "0.73784536", "text": "public function getDescription() : string\n {\n return $this->description;\n }", "title": "" }, { "docid": "2a4296647953a5715730957226c2a8af", "score": "0.73685855", "text": "function getDescription() : string {\r\n return $this->description;\r\n }", "title": "" }, { "docid": "f5b411fb28a4ef10c3ef76aece9fa793", "score": "0.7364259", "text": "public function getDescription()\n {\n return $this->getData('description');\n }", "title": "" }, { "docid": "3a9e8a33110657e1ab55b034524bc944", "score": "0.73630404", "text": "public function getDescription ()\n {\n return $this->description;\n }", "title": "" }, { "docid": "3a9e8a33110657e1ab55b034524bc944", "score": "0.73630404", "text": "public function getDescription ()\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e87f3d0785ed2fe6f46fe4276adde811", "score": "0.7358004", "text": "public function getDescription(): string\n {\n return $this->description;\n }", "title": "" }, { "docid": "e3b624545e06518b50181d2940d2e05b", "score": "0.7354469", "text": "public function getDescription(): string {\n return $this->description;\n }", "title": "" }, { "docid": "6e2956431e29d3c8f15fd9e862594d61", "score": "0.735269", "text": "public function getDescription(): string\n\t{\n\t\treturn $this->description;\n\t}", "title": "" }, { "docid": "6381befc8e426c349ad9122b25acc552", "score": "0.73508686", "text": "public function getDescription() {\n return $this->data->description;\n }", "title": "" }, { "docid": "fabc1747eec4bd2938d612216397a61c", "score": "0.73484993", "text": "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "title": "" }, { "docid": "fabc1747eec4bd2938d612216397a61c", "score": "0.73484993", "text": "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" }, { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.7346555", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" } ]
d2fd3a71aebb21862c752865ee20a689
/ $returnRaw = will return the raw number after it cleans it. That's the number to save in db $trim to: to cut it to a specific number $convert: to change letters into numbers
[ { "docid": "0d3b1be924e4a841ba9caf35e1e2e3a6", "score": "0.6013849", "text": "public static function formatPhoneNumber($phone = '',$returnRaw=false,$trim = true,$convert = false){\n\t$phone = preg_replace(\"/[^0-9A-Za-z]/\",\"\", $phone);\n\n\tif (empty($phone)) return '';\n\n\tif($returnRaw) return $phone;\n\n\n //Convert Letters to #s\n\t// Samples are: 1-800-TERMINIX, 1-800-FLOWERS, 1-800-Petmeds\n\tif ($convert == true) {\n\t\t$replace = array(\n\t\t\t\t '2'=>array('a','b','c'),\n\t\t\t\t\t\t '3'=>array('d','e','f'),\n\t\t\t\t\t '4'=>array('g','h','i'),\n\t\t\t\t\t\t '5'=>array('j','k','l'),\n\t\t '6'=>array('m','n','o'),\n\t\t\t\t\t\t '7'=>array('p','q','r','s'),\n\t\t\t\t\t\t '8'=>array('t','u','v'),\n\t\t\t\t\t\t '9'=>array('w','x','y','z')\n\t\t\t\t );\n\n\t\t// Replace each letter with a number. str_ireplace instead of str_replace = case incensitive\n\t\tforeach($replace as $digit=>$letters) {\n\t\t\t$phone = str_ireplace($letters, $digit, $phone);\n\t\t}\n\t}\n\n\t// If we have a number longer than 11 digits cut the string down to only 11\n\t// This is also only ran if we want to limit only to 11 characters\n\tif ($trim == true && strlen($phone)>11) $phone = substr($phone, 0, 11);\n\n\n\n\t// Perform phone number formatting here\n\tif (strlen($phone) == 7) return preg_replace(\"/([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"$1-$2\", $phone);\n\n\telse if (strlen($phone) == 10)return preg_replace(\"/([0-9a-zA-Z]{3})([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"($1) $2-$3\", $phone);\n\n else if (strlen($phone) == 11) return preg_replace(\"/([0-9a-zA-Z]{1})([0-9a-zA-Z]{3})([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"$1($2) $3-$4\", $phone);\n\n\telse return $phone;\n}", "title": "" } ]
[ { "docid": "e605d2e5f38e1176a11ea9652e62524b", "score": "0.6154479", "text": "private function normalize() {\n if (!$this->raw) return;\n return $this->normalized ?? $this->normalized = ltrim(preg_replace_callback(\"/^(?:(?:(?:\\+386|00386|386)\\s*(?:\\(0\\))?(\\d{1,2})\\s*([\\d ]{7,}))|(?:(\\d{2,3})(?:[\\s\\/])([\\d -]+)))$/\", function ($matches) {\n if (!$this->blank($matches[1]) and !$this->blank($matches[2])) {\n return '0'.$matches[1].trim(str_replace([' ', '-'], '', $matches[2]));\n }\n else if (!$this->blank($matches[3]) and !$this->blank($matches[4])) {\n return $matches[3].trim(str_replace([' ', '-'], '', $matches[4]));\n }\n else {\n return null;\n }\n }, $this->raw), '0');\n }", "title": "" }, { "docid": "0100d526e1e09cde08d427a4b311f882", "score": "0.60596925", "text": "function clean_int ( $data ) {\n return preg_replace ( '/\\D/', '', $data );\n}", "title": "" }, { "docid": "c93f661c010b0149504831556dcf38da", "score": "0.60570234", "text": "function activello_sanitize_number($input) {\n if ( isset( $input ) && is_numeric( $input ) ) {\n return $input;\n }\n}", "title": "" }, { "docid": "25d075ff770fdfb3b5f91968231eef3f", "score": "0.59586585", "text": "function fn_soneritics_buckaroo_get_afterpay_phonenumber(string $rawPhoneNr): string\n{\n return str_replace('.', '', str_replace('+', '00', str_replace(' ', '', trim($rawPhoneNr))));\n}", "title": "" }, { "docid": "983d21ee5b9ceece90d4fb56e6e74062", "score": "0.59229", "text": "public function trim($num) {}", "title": "" }, { "docid": "972266d292baeaa5d3a995557d8c7b5a", "score": "0.5867652", "text": "public static function cleanupNum($in)\r\n {\r\n return strtr(trim($in), ['-' => '', '.' => '', ' ' => '', '_' => '']);\r\n }", "title": "" }, { "docid": "0f04ab06eb3ab0c42241dffd1e7633c1", "score": "0.5863084", "text": "function clean_int( $input ){\n global $db;\n $output = filter_var($input, FILTER_SANITIZE_NUMBER_INT);\n $output = mysqli_real_escape_string( $db, $output );\n\n return $output;\n}", "title": "" }, { "docid": "c0f2b47f24bb8e96f2524c4e52f49fd9", "score": "0.58607405", "text": "public function sanitizeNumber($data){\n $data = filter_var($data, FILTER_SANITIZE_NUMBER_INT);\n return $data;\n }", "title": "" }, { "docid": "c0f2b47f24bb8e96f2524c4e52f49fd9", "score": "0.58607405", "text": "public function sanitizeNumber($data){\n $data = filter_var($data, FILTER_SANITIZE_NUMBER_INT);\n return $data;\n }", "title": "" }, { "docid": "9f73a1c5b628db890063502bb2a5ebe2", "score": "0.584954", "text": "public function CleanNumber($STR)\r {\r return preg_replace('/[^0-9]+/', '', $STR);\r }", "title": "" }, { "docid": "da32c51853da861305fb52ce9d0b0cbe", "score": "0.58483255", "text": "public function sanitizer($number){\n\t\t$number = preg_replace('/\\s+/', '', $number);\n\n\t\t// remove all the dashes\n\t\t$number = str_replace(\"-\", \"\", $number);\n\n\t\t// append 254\n\t\t$number = \"+2547\". substr($number, 1);\n\n \treturn $number;\t\n\t}", "title": "" }, { "docid": "e85923e4a70beed2092b1a67737034df", "score": "0.5832738", "text": "function clean_phone($num) \n {\n $clean_phone = strtolower($num);\n $clean_phone = trim($clean_phone);\n //check if value have alphabet\n $clean_phone = preg_replace('/[^0-9]+/', \"\" ,$clean_phone);\n if($clean_phone != \"\") {\n //check value if start from 0 and it will replace with +62\n $clean_phone = 0 == substr($clean_phone, 0, 1) ? '+62'.substr($clean_phone, 1, strlen($clean_phone)) : '+'.$clean_phone ;\n }\n \n return $clean_phone;\n }", "title": "" }, { "docid": "8bf20f61df9a564cff4bcc354d4ecba7", "score": "0.58307815", "text": "public function toNumeric(): Utility\n {\n return $this->replaceNonNumeric('', true);\n }", "title": "" }, { "docid": "588fa894a7d736a4c3a9be82f3be5f63", "score": "0.5824937", "text": "function chg_int($num) {\n $decimal=strchr($num,'.'); //$decimal = .30\n // $decimal = substr($decimal_1,1,2);\n if ($decimal != \"\") {\n $num = strrev($num); //$num 03.002\n $num=strchr($num,'.');//$num .002\n $num=strrev($num);\n\t }\n\n $numleng = strlen($num);\n $i = 0;\n while ($i < $numleng) {\n $str = substr($num,$i,1);\n\t if (ereg(\"[0-9]\",$str)) {\n $newnum =$newnum.$str; \n\t }\n\t $i++;\n\t }\n\t if ($decimal !=\"\"){\n\t $newnum = $newnum.$decimal;\n\t\t }\n\t return $newnum;\n\t}", "title": "" }, { "docid": "f7160e7b73aed1891486e53da432496e", "score": "0.5810809", "text": "function CleanI($param){\n\treturn intval(CleanS($param));\n}", "title": "" }, { "docid": "f7160e7b73aed1891486e53da432496e", "score": "0.5810809", "text": "function CleanI($param){\n\treturn intval(CleanS($param));\n}", "title": "" }, { "docid": "3a54fbb9d2e25384e5656e46de2a82a9", "score": "0.5799766", "text": "function strip_all_non_digits($input)\n {\n return intval(preg_replace('#[^\\d]#', '', $input));\n }", "title": "" }, { "docid": "1e218f969e6fa1586444d54c8dd429b4", "score": "0.57748425", "text": "function getNumero($num) {\r\n\t$num = str_replace(\".\", \"\", $num);\r\n\t$num = str_replace(\",\", \".\", $num);\r\n\t$numero = ($num);\r\n\treturn $numero;\r\n}", "title": "" }, { "docid": "7db99b88e3c06249f3d52c3de43d0a7d", "score": "0.5735099", "text": "public function onlyNumber($string) {\n\t\t$string = strtolower($string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace(\"`\", \"\", $string);\n\t\t$string = str_replace(\"/\", \"\", $string);\n\t\t$string = str_replace(\"\\\\\", \"\", $string);\n\t\t$string = str_replace(\"'\", \"\", $string);\n\t\t$string = str_replace(\"(\", \"\", $string);\n\t\t$string = str_replace(\")\", \"\", $string);\n\t\t$string = str_replace(\"-\", \"\", $string);\n\t\t$string = str_replace(\".\", \"\", $string);\n\t\t$string = str_replace('___' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\t \n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace(\"`\", \"\", $string);\n\t\t$string = str_replace(\"/\", \"\", $string);\n\t\t$string = str_replace(\"\\\\\", \"\", $string);\n\t\t$string = str_replace(\"'\", \"\", $string);\n\t\t$string = str_replace(\"(\", \"\", $string);\n\t\t$string = str_replace(\")\", \"\", $string);\n\t\t$string = str_replace(\"-\", \"\", $string);\n\t\t$string = str_replace(\".\", \"\", $string);\n\t\t$string = str_replace(\"–\", \"\", $string);\t\n\t\t$string = str_replace(\"#\", \"\", $string);\t\n\t\t$string = str_replace(\"$\", \"\", $string);\t\n\t\t$string = str_replace(\"@\", \"\", $string);\t\n\t\t$string = str_replace(\"!\", \"\", $string);\t\n\t\t$string = str_replace(\"&\", \"\", $string);\t\n\t\t$string = str_replace(';' , '' , $string);\t\t\n\t\t$string = str_replace(':' , '' , $string);\t\t\n\t\t$string = str_replace('[' , '' , $string);\t\t\n\t\t$string = str_replace(']' , '' , $string);\t\t\n\t\t$string = str_replace('|' , '' , $string);\t\t\n\t\t$string = str_replace('\\\\' , '' , $string);\t\t\n\t\t$string = str_replace('%' , '' , $string);\t\n\t\t$string = str_replace(';' , '' , $string);\t\t\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\t\n\t\t$string = str_replace('-' , '' , $string);\t\n\t\t$string = str_replace('+27' , '0' , $string);\t\n\t\t$string = str_replace('(0)' , '' , $string);\t\n\t\t$string = preg_replace('/^00/', '0', $string);\n\t\t$string = preg_replace('/^27/', '0', $string);\n\t\t$string = preg_replace('!\\s+!',\"\", strip_tags($string));\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "554436b602f8774051ba45158ab422a3", "score": "0.5687745", "text": "public function CleanMoney($STR)\r {\r return preg_replace('/[^0-9.]+/', '', $STR); \r }", "title": "" }, { "docid": "8ca9bcc8ca0a946af00c4bb05061c42e", "score": "0.5656961", "text": "function unformatValue($value) {\n \t$value = str_replace('$','',$value);\n \t$value = str_replace(',','',$value);\n \t\n \tif (is_numeric($value)) $value *= 1; //Convert to a number\n \t\n \treturn $value; \n }", "title": "" }, { "docid": "df49ecfecf85f4956cd6130eb2bc5617", "score": "0.564125", "text": "function corta_valor($valor)\n{\n $valor=substr($valor,0,-1);\n return $valor;\n}", "title": "" }, { "docid": "6a96305b61d64701493d12cee464b4ea", "score": "0.5616511", "text": "function standardize_amount($amount)\n{\n $CI =& get_instance();\n $thousands_separator = $CI->mdl_settings->setting('thousands_separator');\n $decimal_point = $CI->mdl_settings->setting('decimal_point');\n\n $amount = str_replace($thousands_separator, '', $amount);\n $amount = str_replace($decimal_point, '.', $amount);\n\n return $amount;\n}", "title": "" }, { "docid": "055a899834f01796018e5c9ffc8d9014", "score": "0.5613384", "text": "function trim($collection, $num) {}", "title": "" }, { "docid": "b3f929ffcbe904db302b89bf1dc56d72", "score": "0.5575186", "text": "function extratcNumber($cadena)\r\n{\r\n\t//return $cadena;\r\n\t$cadena = strtolower($cadena);\r\n $numero = \"\";\r\n for( $index = 0; $index < strlen($cadena); $index++ )\r\n {\r\n if( is_numeric($cadena[$index]) || $cadena[$index] == \".\")\r\n {\r\n $numero .= $cadena[$index];\r\n }\r\n }\r\n\tif ($numero===\"\")\r\n\t$numero = 0;\r\n\treturn $numero; \r\n\t\t\r\n}", "title": "" }, { "docid": "6eb376e3b0e77162ab27da0cd481d174", "score": "0.5567174", "text": "function let_to_num($v){\n $l = substr($v, -1);\n $ret = substr($v, 0, -1);\n switch(strtoupper($l)){\n case 'P':\n $ret *= 1024;\n case 'T':\n $ret *= 1024;\n case 'G':\n $ret *= 1024;\n case 'M':\n $ret *= 1024;\n case 'K':\n $ret *= 1024;\n break;\n }\n return $ret;\n}", "title": "" }, { "docid": "6c35904efd3444c1171e8584bc57aa3c", "score": "0.55347717", "text": "function rm_number($t, $int_min = 2, $int_max = 7)\r\n\t{\r\n\t\tif ($int_max == \"0\") { return $t; }\r\n\t\tif ($int_min < 0) { $int_min = 1; }\r\n\t\tif (($int_max != '')&&($int_max < $int_min)) { $int_max = $int_min + 1; }\r\n/*\t\t\r\n\t\tprint('[0-9]{'. $int_min .','. $int_max .'}');\r\n*/\r\n\t\treturn preg_replace(\"/ [0-9]{\". $int_min .','. $int_max .\"}\\b/u\", ' ', $t);\r\n\t}", "title": "" }, { "docid": "003bf96e5c2e1042fa70358fd6d6c507", "score": "0.55259115", "text": "function toBill_3($n) {\n // first strip any formatting;\n // $n = (0+str_replace(\".\",\"\",$n));\n \n // is this a number?\n if(!is_numeric($n)) return false;\n \n // now filter it;\n if($n>1000000000000) return round(($n/1000000000000),1).' T';\n else if($n>1000000000) return round(($n/1000000000),1).' M';\n else if($n>1000000) return round(($n/1000000),1).' Jt';\n else if($n>1000) return round(($n/1000),1).' Rb';\n \n return number_format($n);\n}", "title": "" }, { "docid": "d35ed18975593f75deb177dca83afb0b", "score": "0.55239636", "text": "public function prepareNumber($localNumber){\n\t\t\tif(strlen($localNumber) == 10 && is_int((int)$localNumber) && $localNumber[0] == 0){\n\t\t\t\t$preparedNumber = str_replace($localNumber[0], \"94\", $localNumber);\n\t\t\t\treturn $preparedNumber;\n\n\t\t\t}else if(strlen($localNumber) == 0){\n\t\t\t\techo \"<script> alert(\\\" Please enter a number ! \\\"); </script>\";\n\t\t\t}else{\n\t\t\t\techo '<div class=\"col-md-6\">\n <div class=\"alert alert-warning\">\n You entered invalid mobile number!\n </div>\n </div>';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "834630ffbf23b2cad3524480e8bd6d18", "score": "0.55043817", "text": "public function stripNumeric($string)\n { \n return filter_var($string, FILTER_SANITIZE_NUMBER_INT);\n //return preg_replace('/[^0-9]/', '', $string);\n }", "title": "" }, { "docid": "2172a545ff22b7712c60ed275020212d", "score": "0.5492552", "text": "function processPhone($phone) {\n\t$newPhone=0;\n\t//if the first character is 0, replace with 256\n\tif(substr($phone,0,1)==\"0\" || substr($phone,0,1)==\"\\+0\") {\n\t\t//pre-pend\n\t\t$newPhone=\"+256\".$phone;\n\t} else {\n\t\t$newPhone=$phone;\n\t}\n\t//clean up the number\n\t$newPhone=preg_replace(\"/\\+256+0/is\",\"256\",$newPhone);\n\t$newPhone=preg_replace(\"/\\+2560/is\",\"256\",$newPhone);\n\t$newPhone=preg_replace(\"/\\+256/is\",\"256\",$newPhone);\n\t//return\n\treturn $newPhone;\n}", "title": "" }, { "docid": "f28c323789c51abde26155c162accf02", "score": "0.5479259", "text": "function sanitize_track($array) {\n $array[0] = intval($array[0]);\n return $array;\n}", "title": "" }, { "docid": "e7b3d053083d6f34b8dc3135a3503a49", "score": "0.54686457", "text": "static public function trimMsisdn($_msisdn){\n\n \t// Sanitize Input MSISDN before further processing\n \t$_msisdn = filter_var($_msisdn, FILTER_SANITIZE_NUMBER_INT);\n\n \t$check = substr($_msisdn, 0,3);\n \t// First 3 characters are not 234\n \tif ($check == '234') {\n \t\t# code...\n \t\t$_msisdn = substr($_msisdn, 3,10);\n \t\t// echo $_msisdn;\n\n \t} else {\n \t\t# code...\n \t\t$_msisdn = substr(trim($_msisdn), -10);\n \t}\n\n \tif ( strlen($_msisdn) != 10) {\n \t\t# code...\n \t\treturn 500;\n \t}\n\n \treturn \"200:\" . $_msisdn;\n }", "title": "" }, { "docid": "db8201f4fc903af30e9af9f51edc68ee", "score": "0.5465807", "text": "public function cleanNumber($number) {\r\n\t\tif ($pos_of_dp = strpos($number, '.') !== false) {\r\n\t\t\t// Remove cents (if decimal point found)\r\n\t\t\t$value = substr($number, 0, $pos_of_dp);\r\n\t\t}\r\n\t\treturn preg_replace('/\\D/', '', $number);\r\n\t}", "title": "" }, { "docid": "fb128395fb07a0da827b3688311ba944", "score": "0.54372686", "text": "function unTranslateNum($num)\n{\n static $dec_sep;\n static $num_grp_sep;\n global $current_user, $sugar_config;\n\n if ($dec_sep == null) {\n $user_dec_sep = $current_user->getPreference('dec_sep');\n $dec_sep = (empty($user_dec_sep) ? $sugar_config['default_decimal_seperator'] : $user_dec_sep);\n }\n if ($num_grp_sep == null) {\n $user_num_grp_sep = $current_user->getPreference('num_grp_sep');\n $num_grp_sep = (empty($user_num_grp_sep) ? $sugar_config['default_number_grouping_seperator'] : $user_num_grp_sep);\n }\n\n $num = preg_replace(\"'\" . preg_quote($num_grp_sep) . \"'\", '', $num);\n $num = preg_replace(\"'\" . preg_quote($dec_sep) . \"'\", '.', $num);\n\n return $num;\n}", "title": "" }, { "docid": "29cfe93aab30e7fd81640331230882ff", "score": "0.54248196", "text": "function numeric($value)\n {\n return preg_replace(\"/[^0-9]/\", \"\", $value);\n }", "title": "" }, { "docid": "979f79d0d4b6c1bd4a5212b8d945f32d", "score": "0.53920674", "text": "function value_cleanse($value)\n {\n return (str_replace([',', '.'], '', value_format(round(value_cleanse($value)))));\n }", "title": "" }, { "docid": "b52a4fcf7c9501efa791c819bb560dca", "score": "0.5369153", "text": "function numbers($str){\n$result = preg_replace(\"/[^0-9.-]/\",\"\", $str); \nif($str===\"\"){\ndie(\"Missing input!\");\n}\nreturn($result);\n}", "title": "" }, { "docid": "864990b3277e1bcd67c7425f8732617b", "score": "0.5346177", "text": "function stripInvalid (\n\n $phone\n\n ) {\n\n $ret = \"\";\n\n for ($i = 0; $i < strlen ($phone); $i++) {\n\n $c = substr ($phone, $i, 1);\n\n\n\n if (($c >= '0' && $c <= '9') || ($ret == \"\" && $c == \"V\"))\n\n $ret .= $c;\n\n else if ($c == '+' && ($ret == \"\" || $ret == \"V\"))\n\n $ret .= '+';\n\n }\n\n\n\n if (strlen ($ret) == 12 && substr ($ret, 0, 4) == \"6104\")\n\n $ret = \"614\" . substr ($ret, 4, 8);\n\n\n\n return $ret;\n\n }", "title": "" }, { "docid": "d667b7a2d34d1d8ce642968aea65d3f2", "score": "0.5332007", "text": "function riiskit_trim_phonenr($string) {\n\treturn absint( str_replace( array(\" \", \"-\"), \"\", $string ) );\n}", "title": "" }, { "docid": "e8a8fddaf88c863531f7f6986acf39c3", "score": "0.5328349", "text": "function preparePhone($phone)\n{\n\treturn preg_replace('/[^+\\d]+/', '', $phone);\n}", "title": "" }, { "docid": "767aa1597db9bce088fd0b8678a18bd5", "score": "0.5311653", "text": "function salient_customizer_sanitize_number ( $input, $setting ) {\n $sanitized_text = sanitize_text_field( $input );\n\n // If the input is an number, return it; otherwise, return the default\n return ( is_numeric( $sanitized_text ) ? $sanitized_text : $setting->default );\n }", "title": "" }, { "docid": "80b3daa39138c3195ad8d4d8319e9a17", "score": "0.5311012", "text": "function setNumero($num) {\r\n\t$num = str_replace(\".\", \"\", $num);\r\n\t$num = str_replace(\",\", \".\", $num);\r\n\t$numero = floatval($num);\r\n\treturn $numero;\r\n}", "title": "" }, { "docid": "80b3daa39138c3195ad8d4d8319e9a17", "score": "0.5311012", "text": "function setNumero($num) {\r\n\t$num = str_replace(\".\", \"\", $num);\r\n\t$num = str_replace(\",\", \".\", $num);\r\n\t$numero = floatval($num);\r\n\treturn $numero;\r\n}", "title": "" }, { "docid": "56d5e7c73564a9888bd6703e6eb0adca", "score": "0.53038764", "text": "function ExtractNumber($sku) {\n return substr($sku,12);\n}", "title": "" }, { "docid": "47c1a7bd06405009351012a082ab5307", "score": "0.5287058", "text": "public static function removeNonNumeric($value_in)\n {\n $value_out = preg_replace('/[^0-9.]*/', \"\", $value_in);\n\n return $value_out;\n }", "title": "" }, { "docid": "ebf8ea2e54af47cab3403710a2f01819", "score": "0.5268958", "text": "function extratcRUT($cadena)\r\n{\r\n //$cadena = \"asdasd7234\";\r\n\t$cadena = strtolower($cadena);\r\n $numero = \"\";\r\n for( $index = 0; $index < strlen($cadena); $index++ )\r\n {\r\n if( is_numeric($cadena[$index]) || $cadena[$index] == \"k\")\r\n {\r\n $numero .= $cadena[$index];\r\n }\r\n }\r\n\treturn $numero; \r\n}", "title": "" }, { "docid": "2333e2c5a141916a8f6b695c7b211ec1", "score": "0.5268933", "text": "static function normalizeTelephone($tel)\n\t{\n\t\t$tel = strtolower(iconv('UTF-8', 'ASCII//TRANSLIT', $tel));\n\t\t$tel = preg_replace('/[^0-9]/', '', $tel);\n\t\treturn $tel;\n\t}", "title": "" }, { "docid": "940122b48aab917772b7e99707425c1e", "score": "0.52536887", "text": "function clean_digits($str){\n\n $newstr = preg_replace('/,/','',$str);\n\n return $newstr;\n }", "title": "" }, { "docid": "9f0da77c80138dcef659f28e2a4f3075", "score": "0.52477646", "text": "static public function sanitizeInteger($integer) {\n\t\t\t$output = is_numeric($integer) ? $integer : 0;\n\t\t\treturn $output;\n\t\t}", "title": "" }, { "docid": "f46bcb9eb705a53f0396458ca0633aa9", "score": "0.5234278", "text": "function formatPhone($phone = '', $convert = false, $trim = true) {\r\n\tif (empty($phone)) {\r\n\t\treturn '';\r\n\t}\r\n\t\r\n\t// Strip out any extra characters that we do not need only keep letters and numbers\r\n\t$phone = preg_replace(\"/[^0-9A-Za-z]/\", \"\", $phone);\r\n\t\r\n\t// Do we want to convert phone numbers with letters to their number equivalent?\r\n\t// Samples are: 1-800-TERMINIX, 1-800-FLOWERS, 1-800-Petmeds\r\n\tif ($convert == true) {\r\n\t\t$replace = array('2'=>array('a','b','c'),\r\n\t\t\t\t '3'=>array('d','e','f'),\r\n\t\t\t '4'=>array('g','h','i'),\r\n\t\t\t\t '5'=>array('j','k','l'),\r\n '6'=>array('m','n','o'),\r\n\t\t\t\t '7'=>array('p','q','r','s'),\r\n\t\t\t\t '8'=>array('t','u','v'),\t\t\t\t\t\t\t\t '9'=>array('w','x','y','z'));\r\n\t\t\r\n\t\t// Replace each letter with a number\r\n\t\t// Notice this is case insensitive with the str_ireplace instead of str_replace \r\n\t\tforeach($replace as $digit=>$letters) {\r\n\t\t\t$phone = str_ireplace($letters, $digit, $phone);\r\n\t\t}\r\n\t}\r\n\t\r\n\t// If we have a number longer than 11 digits cut the string down to only 11\r\n\t// This is also only ran if we want to limit only to 11 characters\r\n\tif ($trim == true && strlen($phone)>11) {\r\n\t\t$phone = substr($phone, 0, 11);\r\n\t}\t\t\t\t\t\t \r\n\t\r\n\t// Perform phone number formatting here\r\n\tif (strlen($phone) == 7) {\r\n\t\treturn preg_replace(\"/([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"$1-$2\", $phone);\r\n\t} elseif (strlen($phone) == 10) {\r\n\t\treturn preg_replace(\"/([0-9a-zA-Z]{3})([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"($1) $2-$3\", $phone);\r\n\t} elseif (strlen($phone) == 11) {\r\n\t\treturn preg_replace(\"/([0-9a-zA-Z]{1})([0-9a-zA-Z]{3})([0-9a-zA-Z]{3})([0-9a-zA-Z]{4})/\", \"$1($2) $3-$4\", $phone);\r\n\t}\r\n\t\r\n\t// Return original phone if not 7, 10 or 11 digits long\r\n\treturn $phone;\r\n}", "title": "" }, { "docid": "857622503a7e0cfa066574e19ea83a5c", "score": "0.52202976", "text": "function bd_nice_number($n, $lit = true) {\n $n = (0 + str_replace(\",\", \"\", $n));\n\n // is this a number?\n if (!is_numeric($n)) {\n return false;\n }\n\n // now filter it;\n if ($lit) {\n if ($n >= 1000000000000) {\n return round(($n / 1000000000000), 1) . ' trillion';\n } elseif ($n >= 1000000000) {\n return round(($n / 1000000000), 1) . ' billion';\n } elseif ($n >= 1000000) {\n return round(($n / 1000000), 1) . ' million';\n } elseif ($n >= 1000) {\n return round(($n / 1000), 1) . ' thousand';\n }\n } else {\n if ($n >= 1000000000000) {\n return round(($n / 1000000000000), 1) . 't';\n } elseif ($n >= 1000000000) {\n return round(($n / 1000000000), 1) . 'b';\n } elseif ($n >= 1000000) {\n return round(($n / 1000000), 1) . 'm';\n } elseif ($n >= 1000) {\n return round(($n / 1000), 1) . 'k';\n }\n }\n\n return number_format($n);\n}", "title": "" }, { "docid": "c4c6f88b53ee8b8d4a10f6919d07cef8", "score": "0.5216343", "text": "static function phones($numb){\r\n\t\t$numb=preg_replace(\"/[^0-9.\\s,\\-+]/\", \"\", $numb);\r\n\t\treturn $numb;\r\n\t}", "title": "" }, { "docid": "0173302b2d029b1fb282cfe568ec84a1", "score": "0.52047086", "text": "function RemoveCountry($Tel) {\r\n $Country = \"39\";\r\n $RetVal = \"\";\r\n //Se il numero inizia con il country selezionato elimino il country \r\n if (isset($_POST['country_file']))\r\n $Country = str_replace(\"+\", \"\", $_POST['country_file']); //Tolgo eventuale '+'\r\n $TelCountry = mb_substr($Tel, 0, strlen($Country));\r\n if ($TelCountry == $Country)\r\n $RetVal = mb_substr($Tel, strlen($Country));\r\n else\r\n $RetVal = $Tel;\r\n//\tlogWrite(\"info\",\"RemoveCountry ritorna: $RetVal\");\r\n\r\n return (string) $RetVal;\r\n}", "title": "" }, { "docid": "f454a844d0b736fbabe22b4137abe08d", "score": "0.5200587", "text": "private function fix($number)\n {\n if (strlen($number) == 11 && (int)$number == 0) {\n $number = substr($number, 3);\n }\n return $number;\n }", "title": "" }, { "docid": "d24bbbd8f588a74e91774bb39c7f9120", "score": "0.5193784", "text": "function util_gsmnumber($number){\n $replacefrom = array('-', '(',')', '.', ',', '+', ' ');\n $number = str_replace($replacefrom, '', $number);\n\n return $number;\n }", "title": "" }, { "docid": "9bdf51b0630f46890d8fa0841444670a", "score": "0.5184841", "text": "function filterInt($val){\r\n\t\treturn filter_var($val, FILTER_SANITIZE_NUMBER_INT);\t\r\n\t}", "title": "" }, { "docid": "d5666f590ee03e57a1eed9f23f7fafd8", "score": "0.51834524", "text": "private static function convert($numString, $fromBase, $toBase)\n {\n $chars = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n $toString = substr($chars, 0, $toBase);\n $length = strlen($numString);\n $result = '';\n $number = array();\n\n for ($i = 0; $i < $length; $i++) {\n $number[$i] = strpos($chars, $numString{$i});\n }\n do {\n $divide = 0;\n $newLength = 0;\n for ($i = 0; $i < $length; $i++) {\n $divide = $divide * $fromBase + $number[$i];\n if ($divide >= $toBase) {\n $number[$newLength++] = (int)($divide / $toBase);\n $divide = $divide % $toBase;\n } elseif ($newLength > 0) {\n $number[$newLength++] = 0;\n }\n }\n $length = $newLength;\n $result = $toString{$divide} . $result;\n } while ($newLength != 0);\n return $result;\n }\n\n /**\n * @param int $encoding\n */\n public static function setEncoding($encoding)\n {\n self::$encoding = $encoding;\n }\n\n /**\n * @param float $hash\n */\n public static function setHash($hash)\n {\n self::$hash = $hash;\n }\n\n /**\n * @param int $precision\n */\n public static function setPrecision($precision)\n {\n self::$precision = $precision;\n }\n\n /**\n * @param float $salt\n */\n public static function setSalt($salt)\n {\n self::$salt = $salt;\n }\n\n}", "title": "" }, { "docid": "f5ba257f5a12484cf596774bbba7ceef", "score": "0.5162401", "text": "function cleanse_refcode($refcode)\n{\n\t$refcode = substr($refcode,0,6);\n\t$refcode = str_pad($refcode,'0',STR_PAD_LEFT);\n\t$refcode = strtolower($refcode);\n\t$refcode = preg_replace('/[^0-9a-z]/','_',$refcode);\n\treturn $refcode;\n}", "title": "" }, { "docid": "7ed794dce4c022117f837e3f912a5f29", "score": "0.51599085", "text": "function unpadeudra($val)\r\n\t{\r\n\t\t$eudra_number = substr($val, strpos($val, 'EudraCT Number: ') + strlen('EudraCT Number: '));\r\n\t\treturn $eudra_number;\r\n\t}", "title": "" }, { "docid": "cd9dc0c6a12719fef395415468670dce", "score": "0.5151672", "text": "function ui_numbersOnly($text) {\r\n\treturn preg_replace(\"/[^0-9]/i\", '', $text);\r\n}", "title": "" }, { "docid": "a8b40bc5207e6a12c43871ca0a600d01", "score": "0.5141245", "text": "function save_phone_number() {\n\t\t$this->phone_number = preg_replace(\"/[^0-9]/\", \"\", $this->phone_number);\n\t}", "title": "" }, { "docid": "2f434f2e453d3dd15f31bac11ad5fd75", "score": "0.5132226", "text": "function convert_phone_to_sa_format($phone)\n{\n $withoutZero = ltrim($phone, '0');\n $filter_zero = ltrim($withoutZero, '9660');\n $filter_code = ltrim($filter_zero, '966');\n $full_phone = '966' . $filter_code;\n return $full_phone;\n}", "title": "" }, { "docid": "36003286456ee59d08e88bad4f2b9435", "score": "0.5130692", "text": "function utilgsmnumber($number){\n return $number;\n }", "title": "" }, { "docid": "afd478bb444e28a8e543a90248475c98", "score": "0.51274425", "text": "function str2num($z) {\r\n settype($z,'integer');\r\n return $z;\r\n}", "title": "" }, { "docid": "fb26f43637c05ca694830f7b7b2533be", "score": "0.5119145", "text": "function quote_smart($value)\n{\n // 数値以外をクオートする\n if (!is_numeric($value)) {\n// $value = \"'\" . mysql_real_escape_string($value) . \"'\";\n }\n return $value;\n}", "title": "" }, { "docid": "d96bcc959e2321f0350180a4093a8f47", "score": "0.510364", "text": "function divideNumber($txt) {\n // ----------------------------------------\n // $txt = <string>\n // ----------------------------------------\n // RETURNS: <string> With numbers separated with space, eg \"kurs1\" -> \"kurs 1\"\n // ----------------------------------------\n $out = \"\";\n $n = 0;\n while($n < strlen($txt)) {\n $ch = substr($txt, $n, 1);\n $flag = is_numeric($ch);\n if($n++ == 0) { $out = $ch; }\n elseif($memo == $flag) { $out = $out.$ch; }\n elseif($previous != \" \") { $out = $out.\" \".$ch; };\n $memo = $flag;\n\t\t\t$previous = $ch;\n };\n return $out;\n }", "title": "" }, { "docid": "9b908a5bcda71e7e66de7579561c79ea", "score": "0.5094337", "text": "private function convertToNumeric($val) {\n\t\t\t$ret = \"\";\n\t\t\t$len = strlen($val);\n\t\t\tif($len) {\n\t\t\t\tfor ($i = 0; $i < $len; $i++) {\n\t\t\t\t\t$z = $val[$i];\n\t\t\t\t\tif (ctype_digit($z)) {\n\t\t\t\t\t\t$ret .= $z;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"\" != $ret) {\n\t\t\t\t\t\t\tif (strcmp($z, \" \") != 0) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // if\n\t\t\t\t\t} // if-else\n\t\t\t\t} // for\n\t\t\t} else {\n\t\t\t\t$ret = \"0\";\n\t\t\t} // if-else\n\t\t\t\n\t\t\tif ($ret == \"\") return \"0\";\n\t\t\t\n\t\t\treturn $ret;\n\t\t}", "title": "" }, { "docid": "0f1b2304564396d7844db64ea492dea0", "score": "0.50877196", "text": "function filterInput($data){\n if(!empty($data)){\n $data = preg_replace('/,/', '', $data); # remove the commas in case number input with commas\n $data = preg_replace(\"/'/\", '', $data); # remove the quote\n $data = preg_replace('/\"/', '', $data); # remove the quote\n $data = preg_replace('/</', '', $data); \n $data = preg_replace('/\\+/', '', $data); \n $data = preg_replace(\"/>/\", '', $data); \n $data = preg_replace('/\\?/', '', $data); \n }\n return $data; \n}", "title": "" }, { "docid": "06d3987f91b6bae67caca978246c1707", "score": "0.508689", "text": "function normalizedBalanceCurrency($baseCurrency)\n{\n return 'BTC';\n}", "title": "" }, { "docid": "3882bde303a2eb35e0cb4fdd5f218607", "score": "0.50836307", "text": "public function reformat_number ($number) {\n\t\t$length = strlen($number);\n\t\t$pos\t= $length - 3;\n\n\t\tif ($length > 8) {\n\t\t\t$number = \"~\". substr($number, 0, $length - $pos) . \"&middot;10^<sup>\". $pos .\"</sup>\";\n\t\t}\n\t\treturn $number;\n\t}", "title": "" }, { "docid": "afeb663ad279f27a78881fe3c1d65770", "score": "0.5083424", "text": "function fraci($num) {\n $num = explode('.', strtr(filter_nf($num), array(','=>'.')));\n $r = $num[0]*100 + (isset($num[1]) ? substr($num[1].'00',0,2) : 0);\n return $r;\n }", "title": "" }, { "docid": "61c0747b1beb3a05efbb06ea35b6f4fc", "score": "0.5076793", "text": "function mask_format($nric) { \n if(is_numeric($nric) == 1){\n return $nric;\n }else{\n $new_nric = substr_replace($nric,'XXXXX',0,5); \n //$new_nric = substr_replace($nric,'XXXX',5); \n return $new_nric;\n } \n}", "title": "" }, { "docid": "e2e2f8c2f153257958bb5c801b0b6f75", "score": "0.50741166", "text": "private function normalizeUser($raw)\n {\n return $raw;\n }", "title": "" }, { "docid": "3f7c8cb356e99e4e54406696811aa59c", "score": "0.50723946", "text": "function quote_smart($value)\n{\n // 数値以外をクオートする\n if (!is_numeric($value)) {\n $value = \"'\" . mysql_real_escape_string($value) . \"'\";\n }\n return $value;\n}", "title": "" }, { "docid": "7dac77fc4b471545c113eaca5bd73832", "score": "0.5070218", "text": "function short_number($n) {\n \t$n = (0+str_replace(\",\", \"\", $n));\n\n \t// is this a number?\n \tif (!is_numeric($n)) return false;\n\n \t// now filter it;\n \tif ($n > 999999999999) return round(($n/1000000000000), 2).' T';\n \telseif ($n > 999999999) return round(($n/1000000000), 2).' B';\n \telseif ($n > 999999) return round(($n/1000000), 2).' M';\n \telseif ($n > 1000) return round(($n/1000), 2).' K';\n\n \treturn number_format($n);\n }", "title": "" }, { "docid": "81fda927fbeb71602bccb3d5253e20c7", "score": "0.50652504", "text": "public function sanitize_number_field( $value ) {\r\n\t\treturn (int) $value;\r\n\t}", "title": "" }, { "docid": "5dbb1f64c888b7ee59d20c20bc1832bc", "score": "0.50602764", "text": "function util_gsmnumber($number,$sender){\n /* In this function i have removed special chars and\n * controlled number if it is real?\n * All numbers in Turkey starts with 0905 */\n $replacefrom = array('-', '(',')', '.', '+', ' ');\n $number = str_replace($replacefrom, '', $number);\n if (strlen($number) < 10) {\n $this->addLog(\"Number format is not correct: \".$number);\n $this->addError(\"Number format is not correct: \".$number);\n return null;\n }\n\n if($sender == \"ClickAtell\"){\n\n }elseif($sender == \"UcuzSmsAl\"){\n\n if (strlen($number) == 10) {\n\n } elseif (strlen($number) == 11) {\n $number = substr($number,1,strlen($number));\n } elseif (strlen($number) == 12) {\n $number = substr($number,2,strlen($number));\n }\n\n if (substr($number, 0, 1) != \"5\") {\n $this->addLog(\"Number format is not correct: \".$number);\n $this->addError(\"Number format is not correct: \".$number);\n return null;\n }\n }elseif($sender == \"NetGsm\"){\n if (strlen($number) == 10) {\n $number = '90' . $number;\n } elseif (strlen($number) == 11) {\n $number = '9' . $number;\n }\n\n if (substr($number, 0, 3) != \"905\") {\n $this->addLog(\"Number format is not correct: \".$number);\n $this->addError(\"Number format is not correct: \".$number);\n return null;\n }\n }\n\n return $number;\n }", "title": "" }, { "docid": "fa943b9a40599a68bc03e08473bb76a5", "score": "0.50563645", "text": "function cash_format($cash_format)\n{\n $cash_format = (0 + str_replace(\",\", \"\", $cash_format));\n \n // is this a number?\n if (!is_numeric($cash_format))\n return false;\n \n // now filter it;\n if ($cash_format > 1000000000000)\n return round(($cash_format / 1000000000000), 1) . 'T';\n else if ($cash_format > 1000000000)\n return round(($cash_format / 1000000000), 1) . 'B';\n else if ($cash_format > 1000000)\n return round(($cash_format / 1000000), 1) . 'M';\n else if ($cash_format > 1000)\n return round(($cash_format / 1000), 1) . 'K';\n \n \n return number_format($cash_format);\n}", "title": "" }, { "docid": "4848026e41e9453a359ea2b3ae4a7665", "score": "0.5050902", "text": "function strip_numbers( $text )\n{\n $urlchars = '\\.,:;\\'=+\\-_\\*%@&\\/\\\\\\\\?!#~\\[\\]\\(\\)';\n $notdelim = '\\p{L}\\p{M}\\p{N}\\p{Pc}\\p{Pd}' . $urlchars;\n $predelim = '((?<=[^' . $notdelim . '])|^)';\n $postdelim = '((?=[^' . $notdelim . '])|$)';\n \n $fullstop = '\\x{002E}\\x{FE52}\\x{FF0E}';\n $comma = '\\x{002C}\\x{FE50}\\x{FF0C}';\n $arabsep = '\\x{066B}\\x{066C}';\n $numseparators = $fullstop . $comma . $arabsep;\n $plus = '\\+\\x{FE62}\\x{FF0B}\\x{208A}\\x{207A}';\n $minus = '\\x{2212}\\x{208B}\\x{207B}\\p{Pd}';\n $slash = '[\\/\\x{2044}]';\n $colon = ':\\x{FE55}\\x{FF1A}\\x{2236}';\n $units = '%\\x{FF05}\\x{FE64}\\x{2030}\\x{2031}';\n $units .= '\\x{00B0}\\x{2103}\\x{2109}\\x{23CD}';\n $units .= '\\x{32CC}-\\x{32CE}';\n $units .= '\\x{3300}-\\x{3357}';\n $units .= '\\x{3371}-\\x{33DF}';\n $units .= '\\x{33FF}';\n $percents = '%\\x{FE64}\\x{FF05}\\x{2030}\\x{2031}';\n $ampm = '([aApP][mM])';\n \n $digits = '[\\p{N}' . $numseparators . ']+';\n $sign = '[' . $plus . $minus . ']?';\n $exponent = '([eE]' . $sign . $digits . ')?';\n $prenum = $sign . '[\\p{Sc}#]?' . $sign;\n $postnum = '([\\p{Sc}' . $units . $percents . ']|' . $ampm . ')?';\n $number = $prenum . $digits . $exponent . $postnum;\n $fraction = $number . '(' . $slash . $number . ')?';\n $numpair = $fraction . '([' . $minus . $colon . $fullstop . ']' .\n $fraction . ')*';\n \n return preg_replace(\n array(\n // Match delimited numbers\n '/' . $predelim . $numpair . $postdelim . '/u',\n // Match consecutive white space\n '/ +/u',\n ),\n ' ',\n $text );\n}", "title": "" }, { "docid": "933bead8c9451e4ee036dc8704fcfd47", "score": "0.5042457", "text": "public function sanitize_value(){\n $this->value = $this->get_sanitized_value($this->value);\n }", "title": "" }, { "docid": "1f53a5ce1502846a297a9a7a3266b9c4", "score": "0.5042185", "text": "private function _getIngredientRaw()\r\n {\r\n $ingredient = $this->_rawData;\r\n if($this->getQuantity() !== false)$ingredient = preg_replace('/' . str_replace('/', '\\/', ($this->getQuantity())) . '/', \"\", $ingredient, 1); \r\n if($this->getMeasurementRaw())$ingredient = preg_replace('/' . $this->getMeasurementRaw() . '/', \"\", $ingredient, 1);\r\n return trim($ingredient);\r\n }", "title": "" }, { "docid": "f6c4ab8336842fa0659b53d51090b9ff", "score": "0.5038666", "text": "private function _clean_input( $dirty, $is_num = FALSE, $is_tx = FALSE )\n\t{\n\t\t$high = FALSE;\n\t\tif ( $is_num )\n\t\t{\n\t\t\t$allow = '0123456789.';\n\t\t}\n\t\telseif ( $is_tx )\n\t\t{\n\t\t\t$allow = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$high = TRUE;\n\t\t\t$allow = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,\\'/{}@():?-_&�$=%~<>*+\"';\n\t\t}\n\t\t\n\t\t$clean = '';\n\t\t$alen = strlen($allow);\n\n\t\tfor ( $i=0; $i < strlen($dirty); $i++ )\n\t\t{\n\t\t\t$char = substr($dirty,$i,1);\n\t\t\tif ( strspn($char, $allow, 0, $alen) > 0 )\n\t\t\t{\n\t\t\t\t$clean .= $char;\n\t\t\t}\n\t\t\telseif ( $high AND (bin2hex($char) > 190) )\n\t\t\t{\n\t\t\t\t$clean .= $char;\n\t\t\t}\n\t\t}\n\n\t\treturn ltrim($clean);\n\t}", "title": "" }, { "docid": "a0f86aa6f2d656264573933da6270c9e", "score": "0.5034592", "text": "function convertir($numero){\r\n $es_entero=$this->validar_numero($numero);\r\n if ($es_entero==TRUE){\r\n\r\n //se comprueba si numero es mayor a la longitud de enteros\r\n if ($numero>2147483647){\r\n $this->session->set_userdata('error', \"El número debe ser menor que 2147483647\");\r\n return NULL;\r\n }\r\n else{\r\n //si es 0\r\n if ($numero==0){\r\n $data[1]=0;\r\n }\r\n else{\r\n $multiplo=0;\r\n $num=(int)$numero;\r\n\r\n //encontrar multiplo:\r\n while ($numero>=20){\r\n $multiplo++;\r\n $numero=(int)($numero/20);\r\n }\r\n if ($numero>0)\r\n $multiplo++;\r\n \r\n //calcular numeros por nivel:\r\n for ($i=$multiplo-1; $i >=1 ; $i--) { \r\n $nivel=(int)($num/(exp($i*log(20))));\r\n $num=(int)($num-($nivel*(exp($i*log(20)))));\r\n $data[$i+1]=$nivel;\r\n }\r\n if ($num>=0){\r\n $data[1]=$num;\r\n }\r\n }\r\n }\r\n return $data;\r\n }\r\n else{ //si el numero no es entero\r\n $this->session->set_userdata('error', \"Ingresa un número válido\");\r\n return NULL;\r\n }\r\n\r\n }", "title": "" }, { "docid": "b6d3e623cd90968eddb19207918aa0cc", "score": "0.5034523", "text": "abstract protected function _normalizeInt($value);", "title": "" }, { "docid": "bdfb53a45678486c20f0997637489705", "score": "0.50330305", "text": "function nicenumber($n) {\n $n = (0+str_replace(\",\",\"\",$n));\n\n // is this a number?\n if(!is_numeric($n)) return false;\n\n // now filter it;\n if($n>1000000000) return round(($n/1000000000),1).'B';\n else if($n>1000000) return round(($n/1000000),1).'M';\n else if($n>1000) return round(($n/1000),1).'K';\n\n return number_format($n);\n}", "title": "" }, { "docid": "f772279079c243b725e240c1bb489e36", "score": "0.50158995", "text": "public function sanitiseMessage($message){\n $newMessage = str_replace(\"98*\", \"\", $message);\n $newMessage = str_replace(\"0*\", \"\", $newMessage);\n return $newMessage;\n }", "title": "" }, { "docid": "3c09696b5410449469bdb9ab704f86b9", "score": "0.50082564", "text": "private function _clean_input($dirty, $is_num=FALSE, $is_tx=FALSE)\n {\n $high = FALSE;\n if ($is_num)\n {\n $allow = '0123456789.';\n }\n else\n {\n if ($is_tx)\n {\n $allow = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.';\n }\n else\n {\n $high = TRUE;\n $allow = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,\\'/{}@():?-_&�$=%~<>*+\"';\n }\n }\n $clean = '';\n $alen = strlen($allow);\n for ($i=0;$i<strlen($dirty);$i++)\n {\n $char = substr($dirty,$i,1);\n if (strspn($char,$allow,0,$alen)>0)\n {\n $clean .= $char;\n }\n elseif ($high&&(bin2hex($char)>190))\n {\n $clean .= $char;\n }\n }\n return ltrim($clean);\n }", "title": "" }, { "docid": "0f42ab99c1c5910cda84598c65d40d2f", "score": "0.50002795", "text": "function PhoneDigits($phone)\n{\n return ereg_replace('[^0-9]','',$phone);\n}", "title": "" }, { "docid": "629719306b1c8a35ccb3af5fc8316898", "score": "0.49948892", "text": "function normalize_integer($number)\n {\n return \\Veloxia\\Helpers\\Normalizer::normalizeInteger($number);\n }", "title": "" }, { "docid": "f6a2f6f682434b72181343375d4df67a", "score": "0.49846032", "text": "function getPrice($string)\n{\n return preg_replace('/[^0-9,.]/', '', $string);\n}", "title": "" }, { "docid": "689862148fbb8951114551bee2427558", "score": "0.49840528", "text": "protected function doClean($value)\n {\n $value = str_replace('(', '', $value);\n $value = str_replace(')', '', $value);\n $value = str_replace('/', ' ', $value);\n \n // remove all dashes except the last one (extension)\n \n // replace the last dash with a replacement string\n $pattern = '/(.+)(-)([0-9]+$)/'; \n $value = preg_replace($pattern, '$1TheLastDash$3', $value);\n // cleanup remaining dashes\n $value = str_replace('-', ' ', $value);\n // recreate the last dash\n $value = str_replace('TheLastDash', '-', $value);\n\n // normalize alternative \"00\" country code notation\n if (substr($value, 0, 2) == '00')\n {\n $value = '+' . substr($value, 2);\n }\n\n // handle default country code \n $parts = explode(' ', $value);\n if ((substr($value, 0, 1) != '+') && $this->getOption('default_country_code'))\n {\n $value = $this->getOption('default_country_code') . ' ';\n }\n else\n {\n $value = array_shift($parts) . ' ';\n }\n $value .= ltrim(array_shift($parts), '0') . ' ' . implode('', $parts);\n\n $validatedValue = parent::doClean($value);\n\n return $validatedValue;\n }", "title": "" }, { "docid": "111de1f1005431ec0c84603468a70d0d", "score": "0.49727944", "text": "function changeNumberUnicode($value=NULL,$mode=0)\n {\n //2406\n /*\n &#2406 is also return 0 number\n &#1086; return bigger 0 then &#2406;\n */\n $length=strlen($value);\n $arrayNumber=array(\"-\"=>\"&#45;\",\"(\"=>\"&#40;\",\")\"=>\"&#41;\",\"0\"=>\"&#2406;\",\"1\"=>\"&#2407;\",\"2\"=>\"&#2408;\",\"3\"=>\"&#2409;\",\"4\"=>\"&#2410;\",\"5\"=>\"&#2411;\",\"6\"=>\"&#2412;\",\"7\"=>\"&#2413;\",\"8\"=>\"&#2414;\",\"9\"=>\"&#2415;\",\"+\"=>\"&#043;\",\",\"=>\"&#044;\");\n if($mode==1){ \n $length=mb_strlen($value,\"utf-8\");\n foreach($arrayNumber as $key=>$val){\n $newArrayNumber[asciiToUtf8($val)]=$key; \n } \n } \n\n $newStr=NULL;\n for($i=0;$i<$length;$i++){\n if($mode==\"1\"){\n if(isset($newArrayNumber[mb_substr($value,$i,1,\"utf-8\")])){\n $newStr.=$newArrayNumber[mb_substr($value,$i,1,\"utf-8\")];\n }else{\n $newStr.=mb_substr($value,$i,1,\"utf-8\");\n\n }\n }else{\n if($arrayNumber[substr($value,$i,1)])\n \n $newStr.=$arrayNumber[substr($value,$i,1)];\n\n else\n $newStr.=substr($value,$i,1);\n }\n }\n return $newStr;\n\n}", "title": "" }, { "docid": "2b77cd31262d2a795fd81e96b0d78884", "score": "0.49701634", "text": "function sq_trim_value ( &$value ) {\n $value = trim($value);\n}", "title": "" }, { "docid": "39f5aa1cd248e34401d8b909bb41c2f8", "score": "0.4959299", "text": "function ctrl_phone($phone){\r\n $phone=preg_replace('/\\D/','',$phone);\r\n $phone = preg_replace(\"/(\\d+)(\\d{3}+)(\\d{4})$/\",'($1)$2-$3',$phone);\r\n $phone = preg_replace(\"/(\\d+)(\\d{4})$/\",'$1-$2',$phone);\r\nreturn $phone;}", "title": "" }, { "docid": "89be507b8386ac2b186a1a2ad61e4e27", "score": "0.4956805", "text": "function bd_nice_number($n)\n{\n $n = (0 + str_replace(\",\", \"\", $n));\n\n // is this a number?\n if (!is_numeric($n)) return false;\n\n // now filter it;\n if ($n > 1000000000000) return number_format(round(($n / 1000000000000), 1)) . ' trillion';\n else if ($n >= 1000000000) return number_format(round(($n / 1000000000), 1)) . ' billion';\n else if ($n >= 999999) return number_format(round(($n / 1000000), 1)) . ' million';\n else if ($n >= 9999) return number_format(round(($n), 1)) . ' ';\n else if ($n >= 999) return number_format(round(($n), 1)) . '';\n\n return number_format($n);\n}", "title": "" }, { "docid": "b7a8a7ea3f13c38cab86966e67d16539", "score": "0.49554232", "text": "function _smart(&$value)\n\t{\n\t\t// stripslashes\n\t\t$value = stripslashes($value);\n\n\t\tif ( is_numeric($value) )\n\t\t{\n\t\t\treturn ( is_float($value) ) ? doubleval($value) : intval($value);\n\t\t}\n\t\tif ( is_string($value) || empty($value) )\n\t\t{\n\t\t\treturn '\\'' . $this->sql_escape_string(htmlspecialchars($value)) . '\\'';\n\t\t}\n\n\t\t// uncastable var : let's do a basic protection on it to prevent sql injection attempt\n\t\treturn '\\'' . $this->sql_escape_string(htmlspecialchars($value)) . '\\'';\n\t}", "title": "" }, { "docid": "65dde8f0a815154fcc36ddf9795434e5", "score": "0.49544606", "text": "function numeric_input_formater($int)\n\t{\n\t\t$int = str_replace(',', '.', $int);\n\t\t$int = str_replace(\"'\", '', $int);\n\t \treturn $int;\n\t}", "title": "" }, { "docid": "d24834342759fd799a5562af719fc3b7", "score": "0.49540767", "text": "function utl_format_bank_no($nr) {\n\t$formatted = substr($nr, 0, 2);\n\t$split = str_split(substr($nr, 2), 4);\n\tforeach ($split as $four)\n\t\t$formatted .= ' ' . $four;\n\treturn $formatted;\n}", "title": "" }, { "docid": "827ae00816ca941e8c57db0fc13ab1df", "score": "0.49527594", "text": "function currencyToDb($value)\n{\n if ($value != \"\")\n return str_replace(\",\", \".\", filter_var($value, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_THOUSAND));\n return 0;\n}", "title": "" } ]
50833c3943524eb2b5bb759bd83f49f8
Show a list of all the blog posts.
[ { "docid": "9e5e6f546fd665157d1940eba1de1692", "score": "0.0", "text": "public function getIndex()\n {\n // Title\n $title = Lang::get('admin/accounts/title.account_management');\n\n // Grab all the blog posts\n $accounts = $this->accounts;\n\n // Show the page\n return View::make('admin/accounts/index', compact('accounts', 'title'));\n }", "title": "" } ]
[ { "docid": "4453cbdc0873a2dc4654b2567ed2a5ed", "score": "0.8423613", "text": "public function index() {\n\t\t\t//Get tags list\n\t\t\t$this->loadModel('tag');\n\t\t\t$tags = $this->tag->getAllWithCountBlogPost();\n\n\t\t\t//Get last visible posts\n\t\t\t$lastVisiblePosts = $this->blogpost->getAllVisible();\n\n\t\t\t$this->render('blogposts.twig.html', ['posts' => $lastVisiblePosts, 'tags' => $tags]);\n\t\t}", "title": "" }, { "docid": "446d988b6ae419615ce237fed4287a41", "score": "0.840198", "text": "public function index()\n {\n App::getInstance()->setTitle(\"Blog\");\n $this->paginator->setPerPage(6);\n $perPage = $this->paginator->getPerPage();\n $count = $this->post->countTable();\n $posts = $this->post->lastPublished($perPage, $this->paginator->setOffset($perPage, $count[0]->id));\n if ($this->paginator->isError()) {\n $this->notFound();\n }\n $categories = App::getInstance()->getTable('Category')->all();\n $printCommands = $this->paginator->printCommands('?p=blog.index');\n $this->render('blog.index', compact('posts', 'categories', 'printCommands'));\n }", "title": "" }, { "docid": "cad0dfc4ef3b57da4f88c4ae06c4f60a", "score": "0.837142", "text": "public function index()\n {\n $posts = PostBlog::all();\n return view('admin.blog.posts.index',compact('posts'));\n }", "title": "" }, { "docid": "38e324badfe7089a8a7f30442453194f", "score": "0.83195966", "text": "public function index()\n {\n //\n $posts = $this->blogPostRepository->getPostsList(6, 1, 0);\n\n return view(env('THEME').'.admin.posts.posts', compact('posts'));\n\n }", "title": "" }, { "docid": "e56b187610d013aeebc27b10cba3def9", "score": "0.82693815", "text": "public function list(){\n //Éléments du header\n $title = \"Blog\";\n $authors_num = $this->getTable()->authorsNumber()[0];\n $lastDate = $this->getTable()->lastInsertDate()->getDate();\n\n //Liste des posts\n $posts = $this->getTable()->all();\n\n\t\t$this->render('Public/List', compact('title', 'authors_num', 'lastDate', 'posts'));\n\n\t}", "title": "" }, { "docid": "5e443a8d8ab0bdabcd5e2b0de9e9473b", "score": "0.82070446", "text": "public function index()\n {\n if(!$this->user->hasPermission('blog_access'))\n {\n $array = $this->model->list_posts();\n\n\t\t\tif(empty($array))\n\t\t\t{\n\t\t\t\t$this->variables(array(\n\t\t\t\t 'site_title' => 'Design Develop Realize :: View Blog Posts',\n\t\t\t\t 'post_title' => 'Sorry but there are no posts to display'\n\t\t\t\t));\n\t\t\t} else {\n $this->variables(array(\n 'site_title' => 'Design Develop Realize :: View Blog Posts',\n 'list' => $array[0],\n 'post_title' => $array[0]['entry_title'],\n 'link' => str_replace(' ', '_',$array[0]['entry_title']),\n ));\n\t\t\t}\n } else {\n $this->variables(array(\n 'site_title' => 'Error :: Design Develop Realize',\n 'body' => 'Sorry, but you do not have permission to access this',\n ));\n }\n\n $this->parse('blog/list', $this->toParse);\n }", "title": "" }, { "docid": "ad7f8782f35542fa9b950ceca1366685", "score": "0.81767285", "text": "public function index()\n {\n $items = BlogPost::simplePaginate(10);\n return view('blog.posts.index', compact('items'));\n }", "title": "" }, { "docid": "b093fbdd61fed9aa3ee5c31a02e7e9fe", "score": "0.8113296", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $posts = $em->getRepository('AcmeUserBundle:Post')->findAll();\n\n return $this->render('admin/blog/index.html.twig', array('posts' => $posts));\n }", "title": "" }, { "docid": "75c0a5757f6bb6215dcfeeea93b7c0f6", "score": "0.8103447", "text": "public function index()\n {\n $posts = $this->posts->with(['author', 'tags'])->paginate(5);\n $tags = $this->tags->all();\n\n return view('frontend.pages.blog.index', compact('posts', 'tags'));\n }", "title": "" }, { "docid": "be72c65d8db868444bda30fb8cbd5e21", "score": "0.8102737", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $BlogPosts = $em->getRepository('AppBundle:Post')->findAll();\n\n return $this->render('post/index.html.twig', array(\n 'BlogPosts' => $BlogPosts,\n ));\n }", "title": "" }, { "docid": "7a47437ed6b0831edfa504943798b604", "score": "0.8098866", "text": "public function index() {\n\t\t$data['posts'] = $this->post_model->get_all_posts_with_paginate();\n\t\t$data['categories'] = $this->category_model->get_categories();\n\t\t$data['social_media'] = $this->social_media_model->get_six();\n\t\t$this->render('public/blog/index',$data);\n\t}", "title": "" }, { "docid": "559d893fc16240db0729be0ec3e95122", "score": "0.8060953", "text": "public function index()\n {\n $post = Post::paginate();\n return view('owner.blog.post.index', ['post' => $post]);\n }", "title": "" }, { "docid": "cbd72d5cadc045e6cdce73da514df3cf", "score": "0.80584216", "text": "public function index()\n {\n $posts = Blog::paginate(5);\n\n return view('admin.blog.index', compact('posts'));\n }", "title": "" }, { "docid": "92e9deb8ae867588856cc83c0f5db7e9", "score": "0.8034665", "text": "public function index()\n {\n return view('blog', ['posts' => Post::where('visible', true)->orderBy('created_at', 'DESC')->paginate(15)]);\n }", "title": "" }, { "docid": "a01a34e1cf293bccf2c25fed4de9d426", "score": "0.8027718", "text": "public function index()\n {\n // $posts = Blog::where('published_at', '<=', Carbon::now())\n // ->orderBy('published_at', 'desc')\n // ->paginate(config('blog.posts_per_page'));\n\n // return view('index', compact('posts'));\n // $posts = Blog::All();\n // $post = Blog::find(1);\n // return view('index');\n \n\n $posts = Blog::all();\n\n // foreach ($posts as $post) {\n // echo $post->title;\n // }\n\n return View::make('index')->with('posts', $posts);\n\n }", "title": "" }, { "docid": "54d49a1a6392c11ac373bb16b52e41f9", "score": "0.8007594", "text": "public function index()\n {\n $posts = BlogPosts::paginate(12);\n return view('blog.index', compact('posts'));\n }", "title": "" }, { "docid": "d0128573e5a955b20be02fc9dda4a600", "score": "0.7992863", "text": "public function index()\n {\n $postList = new PostListWithCategoryTitle(\n new PostListWithUserName(\n new PostListWithPagination(\n new PostListSort(\n new PostListSort(\n new PostQueryWithTrashed(),\n 'updated_at',\n 'desc'\n ),\n 'deleted_at'\n ),\n 15\n ),\n ),\n );\n return view ( 'blog.admin.posts.index', [\n 'posts' => $postList->content()\n ] );\n }", "title": "" }, { "docid": "6fe22086bcd0d05a95b108417e05bdf7", "score": "0.7966243", "text": "public function showAllPosts() {\n $posts = Post::where('status', '=', 'published')->orderBy('created_at', 'desc')->get();\n \n return view('front.posts', compact('posts'));\n }", "title": "" }, { "docid": "8c47d72f0c9a67687190b2bc33354715", "score": "0.7957896", "text": "public function index()\n\t{\n\t\t$posts = Post::paginate(10);\n// dd($posts->toArray());\n\n return view('site.blog.index')->with('posts', $posts);\n\t}", "title": "" }, { "docid": "7e5ae96eae3a6841e69d29a18c09280c", "score": "0.7956773", "text": "public function index()\n {\n $posts = $this->postsRepository->all();\n\n $this->render(\"post/index\", [\n 'posts' => $posts\n ]);\n }", "title": "" }, { "docid": "8bc38decdcbc05a34f862a62b19b2b97", "score": "0.79194623", "text": "public function blog_index()\n {\n $posts = Post::where('status', 'PUBLISHED')->orderBy('id', 'desc')->paginate(2);\n\n $categories = Categories::all();\n\n $postModel = new Post();\n $postsByDates = $postModel->archive();\n\n return view('blog', ['posts' => $posts,\n 'categories' => $categories,\n 'postsByDates' => $postsByDates]);\n }", "title": "" }, { "docid": "8bf7e5d1ae4def08760d36e839d13fae", "score": "0.7899067", "text": "public function actionIndex()\n {\n $query = BlogPostType::find();\n\n $dataprovider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 10,\n ],\n ]);\n return $this->render('index', [\n 'dataprovider' => $dataprovider\n ]);\n }", "title": "" }, { "docid": "4a4b4393b3df0612275f070d77473e26", "score": "0.78921026", "text": "public function listblog()\n\t{\n\t\t \n\n\t\t$blogpost = Blog::getEntries(null, null, null, null, 'true');\n\t\t$blogcategories = Category::getBlogCategories(null, 11, 'false');\n\t\t\n \n \n\t\t$this->layout->description = 'Stipino';\n\n\t\t$this->layout->keywords = 'Stipino';\n\n\t\t$this->layout->bodyclass = 'bg-grain';\n\n\t\t$this->layout->title = 'Blog | Stipino';\n\n\t\t$this->layout->css_files = array(\n\t\t\t \n\t\t);\n\n\t\t$this->layout->js_footer_files = array(\n\t\t\t \n\t\t);\n\n\t\t$this->layout->content = View::make('frontend.blog.list', array('blogpost' => $blogpost['entries'], 'blogcategories' => $blogcategories['entries']));\n\t}", "title": "" }, { "docid": "a258f7d3f4e365f9fd9f5dbca9118277", "score": "0.78822976", "text": "public function index()\n {\n $data = array(\n 'posts' => Post::orderBy('created_at', 'desc')->where('active', true)->paginate(10),\n );\n\n return view('pages.post.list')->with($data);\n }", "title": "" }, { "docid": "2791352b3684a37e1de04c7c6a93f920", "score": "0.7880262", "text": "public function index ()\n {\n $listPosts = Post::paginate(15);\n return view('admin.post.list', compact('listPosts'));\n }", "title": "" }, { "docid": "56e05338dea3e0378aaec13997d7ef3a", "score": "0.7878826", "text": "public function index()\n {\n $posts = Post::where('publicado', 1)->orderBy('id', 'desc')->simplePaginate(3);\n\n return view('blog', ['posts' => $posts]);\n }", "title": "" }, { "docid": "16f088f801e809099af1879ffd89b2b6", "score": "0.7872994", "text": "public function index()\n {\n $page = Input::get('page', 0);\n\n $posts = $this->postRepository->all($page);\n\n return $this->render('pulse::backend.posts.index', compact('posts'));\n }", "title": "" }, { "docid": "63e09d852e121fd9634a4a06161a0ea0", "score": "0.7871409", "text": "public function index()\n {\n return BlogPost\n ::latest()\n ->published()\n ->paginate(10);\n }", "title": "" }, { "docid": "496894949b1fa3974cf750df20df21be", "score": "0.7862211", "text": "public function index()\n {\n $blogposts = BlogPost::paginate(3);\n return view('blog')->withBlogposts($blogposts);\n }", "title": "" }, { "docid": "060228b2eb5c95c0912243f5a4304096", "score": "0.7849175", "text": "public function index()\n\t{\n\t\t$posts = $this->postRepository->all();\n\n\t\treturn view('admin.posts.index')->with('posts', $posts);\n\t}", "title": "" }, { "docid": "74460b6f679432528a8c9b298648a9b0", "score": "0.784196", "text": "public function index()\n\t{\n\t\t$articles = Post::where('publie', '=', true)->orderBy('created_at', 'desc')->paginate(5);\n\t\t$articles->setPath('blog');\n\t\treturn view('blog')->with(['articles' => $articles]);\n\t}", "title": "" }, { "docid": "bf955645135bef84a5c3dfc37d7d556e", "score": "0.7838052", "text": "public function index() \n {\n\n /* retrieves and returns a sampling of each blog post */\n $posts = Post::orderBy('created_at', 'desc')->paginate(5);\n $categories = Category::all();\n $tags = Tag::all();\n\n return view('blog.index')->with(['posts'=>$posts, 'categories'=>$categories, 'tags'=>$tags]);\n }", "title": "" }, { "docid": "2a792c6d9a47375660a70f84062a5068", "score": "0.7837546", "text": "public function index()\n {\n $blog = Blog::all();\n return view('blog.list', compact('blog'));\n }", "title": "" }, { "docid": "8e39e03aae22c337302dfedbb69a19bf", "score": "0.78318185", "text": "public function getPosts() {\n $posts = Post::orderBy('id', 'desc')->paginate(self::PAGE_NUMBER);\n $this->layout->title = '所有帖子';\n $this->layout->content = View::make('admin.posts')->with(array(\n 'posts' => $posts\n ));\n }", "title": "" }, { "docid": "15ced075b51a2d0e07ad8b9180b4ead4", "score": "0.78296566", "text": "public function indexAction()\n {\n $posts = Post::getAll();\n\n View::renderTemplate('Posts/index.html', [\n 'posts' => $posts\n ]);\n }", "title": "" }, { "docid": "2fdc955806d6c781d74232ca5184ffe3", "score": "0.7826157", "text": "public function index()\n\t{\n\t\t$posts = $this->post->all();\n\n\t\treturn View::make('admin.posts.index', compact('posts'));\n\t}", "title": "" }, { "docid": "aacc5bee505b1c843addc7a74dac0068", "score": "0.7806668", "text": "public function index ()\n {\n // loads the view | shows 10 pages at a time and then displays arrow for the option for more\n // $posts = Post::orderBy('created_at', 'desc');\n // $posts = Post::orderBy('created_at', 'desc')->paginate(10); \n $posts = Post::orderBy('id', 'desc')->paginate(10);\n // $posts = Post::all(); // eloquent fetches all the data in an array\n // $postRow = Post::orderBy('title', 'desc')->get();\n // $postRow = Post::orderBy('title', 'desc')->take(1)->get();\n // $postRow = Post::DB(\"SELECT * FROM posts\"); | Can be used if use App\\DB is imported\n\n return view('blog.index')->with(\"posts\", $posts);\n // return view('posts.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "09e0a3d74211e3a971d37ed27fba2c78", "score": "0.78014815", "text": "public function index()\n {\n $data = Post::orderby('publish_at', 'desc')->orderby('created_at', 'desc')->where('is_published', 1)->get();\n\n return view('frontend.post.index', compact(['data']));\n }", "title": "" }, { "docid": "881826b4a6bf77468b14b495bbd6b944", "score": "0.7796173", "text": "public function index()\n {\n //\n $posts = Post::orderBy('id', 'desc')->paginate(2);\n\n foreach ($posts as $post) {\n $post->author_name = User::findOrFail($post->author_id)->name;\n $post->published_at = Carbon::parse($post->published_at)->diffForHumans();\n $post->answer_count = $post->meta('answer_count')->first();\n }\n\n return view('blog.index')\n ->with('posts', $posts);\n }", "title": "" }, { "docid": "11ac651d82a868d26834dedbd106e661", "score": "0.7787725", "text": "public function index()\n {\n\n $posts = \\Canvas\\Post::published()->orderByDesc('published_at')->get();\n\n return view('posts.index', [\n 'posts' => $posts,\n ]);\n }", "title": "" }, { "docid": "6c8fefcba6d070475d910c13cd495580", "score": "0.7780763", "text": "public function index()\n {\n $posts = Post::latest()->paginate(10);\n return view('post.postlist', compact('posts'));\n }", "title": "" }, { "docid": "399c072eac637e08a674264955092b8f", "score": "0.7776999", "text": "public function showAll()\n {\n Utils::view('posts/showAll.html');\n }", "title": "" }, { "docid": "8c8096432b212a7bf7e0901566753467", "score": "0.77698165", "text": "public function index()\n {\n $posts = Post::orderby('id', 'desc')->paginate(10);\n\n return \\view('admin.posts.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "3555758004bb0b48985e03dc78ba8da0", "score": "0.7769506", "text": "public function indexAction()\r\n {\r\n $posts = Post::getAll();\r\n View::renderTemplate('Posts/index.html', ['posts' => $posts]);\r\n }", "title": "" }, { "docid": "81051d3619d39802e2781511f64c1b6b", "score": "0.77689904", "text": "public function index()\n {\n return view('backpanel.posts.index')\n ->with('posts', Post::all());\n }", "title": "" }, { "docid": "cdc7052fe8d5be92badf086ac658d601", "score": "0.77673817", "text": "public function index()\n {\n //passing posts with number of comments\n return view(\"posts.index\",[\n 'posts' => BlogPost::withAll()->get(),\n ]);\n }", "title": "" }, { "docid": "3e75fbfe95f18f3a7d9d14e008c43b70", "score": "0.7759845", "text": "public function index()\n {\n return view('post.all')->withPosts(Post::latest()->getAll());\n }", "title": "" }, { "docid": "96a1d66259972ac206e05de3935e06d1", "score": "0.7749705", "text": "public function index()\n {\n $posts = $this->Post->last();\n $categories = $this->Category->all();\n $this->render('posts.index', compact('posts', 'categories'));\n }", "title": "" }, { "docid": "94f4bea8b3cf0eb8a20a9532a126d81e", "score": "0.77464515", "text": "public function index()\n {\n return view('blog::admin.posts.index');\n }", "title": "" }, { "docid": "0fca6f9bb0d8392e802cc1692e39a3cb", "score": "0.77376324", "text": "public function index()\n {\n $posts = Post::where('id', '>', 0)\n ->orderBy('updated_at', 'DESC')\n ->get();\n\n return View::make('admin.posts.index')\n ->with('title', 'All Posts')\n ->with('posts', $posts);\n }", "title": "" }, { "docid": "8d6d4256a4941f925158214112c8ed46", "score": "0.7731318", "text": "public function index() {\n $this->set('_posts', $this->Post->GetAll(15));\n }", "title": "" }, { "docid": "bffa6d395f812e8b54d5fdca774fc5cd", "score": "0.7723935", "text": "public function index()\n {\n $posts = $this->postRepository->getAll();\n\n // $posts = $posts->withGoogleAsTitle();\n\n // return PostResource::collection($posts);\n\n return view('posts.index', compact('posts'));\n }", "title": "" }, { "docid": "3d10f65e0bddc1e80b9301af56679103", "score": "0.7715252", "text": "public function ShowPosts(){\n\t\tglobal $langmessage;\n\n\t\t$this->Heading('Admin_Blog');\n\n\t\t$post_ids\t\t\t= SimpleBlogCommon::AStrToArray('str_index');\n\t\t$post_titles\t\t= SimpleBlogCommon::AStrToArray('titles');\n\t\t$post_times\t\t\t= SimpleBlogCommon::AStrToArray('post_times');\n\t\t$post_comments\t\t= SimpleBlogCommon::AStrToArray('comment_counts');\n\t\t$post_drafts\t\t= SimpleBlogCommon::AStrToArray('drafts');\n\t\t$total_posts\t\t= count($post_ids);\n\t\t$per_page\t\t\t= 20;\n\t\t$total_pages\t\t= ceil($total_posts/$per_page);\n\t\t$offset\t\t\t\t= 0;\n\n\n\t\t//offset\n\t\tif( isset($_REQUEST['offset']) && ctype_digit($_REQUEST['offset']) && $_REQUEST['offset'] > 0 ){\n\t\t\t$offset\t\t= $_REQUEST['offset'];\n\t\t}\n\t\t$post_ids\t\t\t= array_slice($post_ids, $offset, $per_page);\n\n\n\t\t//pagination links\n\t\techo '<div style=\"float:right;margin:20px 0;\">';\n\t\techo '<span class=\"page_count\">';\n\t\techo ($offset+1).' to '.min($total_posts,$offset+$per_page).' of '.$total_posts;\n\t\techo '</span>';\n\t\techo '<ul class=\"pagination\">';\n\n\t\tif( $total_posts > $per_page ){\n\t\t\tfor($i = 0; $i < $total_pages; $i++){\n\t\t\t\t$_offset = $i*$per_page;\n\t\t\t\t$class = '';\n\t\t\t\tif( $_offset == $offset ){\n\t\t\t\t\t$class = ' class=\"active\"';\n\t\t\t\t}\n\t\t\t\techo '<li '.$class.'>'.common::Link('Admin_Blog',$i+1,'offset='.($_offset)).'</li>';\n\t\t\t}\n\t\t}\n\t\techo '</ul>';\n\t\techo '</div>';\n\n\n\n\t\techo '<table class=\"bordered full_width striped\">';\n\t\techo '<thead><tr><th></th><th>Posts ('.number_format($total_posts).')';\n\t\techo '</th><th>Publish Time</th><th>Comments</th>';\n\t\techo '<th>Options</th>';\n\t\techo '</tr></thead>';\n\t\techo '<tbody>';\n\t\tforeach($post_ids as $i => $post_id){\n\n\t\t\t//draft/pending\n\t\t\techo '<tr><td width=\"1%\">';\n\t\t\tif( isset($post_drafts[$post_id]) ){\n\t\t\t\techo 'Draft';\n\t\t\t}elseif( $post_times[$post_id] > time() ){\n\t\t\t\techo 'Pending';\n\t\t\t}\n\n\t\t\t//title\n\t\t\techo '</td><td>';\n\t\t\t$title = $post_titles[$post_id];\n\t\t\techo SimpleBlogCommon::PostLink($post_id,$title);\n\n\t\t\t//post time\n\t\t\techo '</td><td>';\n\t\t\tif( isset($post_times[$post_id]) ){\n\t\t\t\techo strftime(SimpleBlogCommon::$data['strftime_format'],$post_times[$post_id]);\n\t\t\t}\n\n\t\t\t//comments\n\t\t\techo '</td><td>';\n\t\t\techo '<span style=\"display:inline-block;min-width:30px\">';\n\t\t\tif( isset($post_comments[$post_id]) ){\n\t\t\t\techo number_format($post_comments[$post_id]);\n\t\t\t}else{\n\t\t\t\techo '0';\n\t\t\t}\n\t\t\techo '</span>';\n\n\n\t\t\tif( SimpleBlogCommon::$data['allow_comments'] ){\n\t\t\t\t$comments_closed\t= SimpleBlogCommon::AStrGet('comments_closed',$post_id);\n\t\t\t\t$open\t\t\t\t= gpOutput::SelectText('Open');\n\t\t\t\t$close\t\t\t\t= gpOutput::SelectText('Close');\n\n\t\t\t\tif( $comments_closed ){\n\t\t\t\t\techo common::Link('Admin_Blog',$open,'cmd=opencomments&id='.$post_id,'name=\"cnreq\"');\n\t\t\t\t\techo ' &nbsp; ';\n\t\t\t\t\techo gpOutput::SelectText('Closed');\n\t\t\t\t}else{\n\t\t\t\t\techo $open;\n\t\t\t\t\techo ' &nbsp; ';\n\t\t\t\t\techo common::Link('Admin_Blog',$close,'cmd=closecomments&id='.$post_id,'name=\"cnreq\"');\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\techo common::Link('Admin_BlogConfig','Disabled');\n\t\t\t}\n\n\n\t\t\techo '</td><td>';\n\t\t\techo SimpleBlogCommon::PostLink($post_id,'View Post');\n\t\t\techo ' &nbsp; ';\n\t\t\techo common::Link('Admin_Blog/'.$post_id,$langmessage['edit'],'cmd=edit_post');\n\t\t\techo ' &nbsp; ';\n\t\t\techo common::Link('Admin_Blog',$langmessage['delete'],'cmd=deleteentry&del_id='.$post_id,array('class'=>'delete gpconfirm','data-cmd'=>'cnreq','title'=>$langmessage['delete_confirm']));\n\n\t\t\techo '</td></tr>';\n\t\t}\n\t\techo '</tbody>';\n\t\techo '</table>';\n\t}", "title": "" }, { "docid": "0b5618131e61b2f2257abf7642a6990d", "score": "0.7699557", "text": "public function index()\n {\n //create a variale to store all the blog post in the variablle\n $posts = Post::orderBY('id', 'desc')->paginate(5);\n\n //return a view and paa in the above variablle\n return view('posts.index')->withPosts($posts);\n }", "title": "" }, { "docid": "977015e3ba2589b0f1cb05e8507c0977", "score": "0.7694302", "text": "public function showAllBlogRecords()\n\t{\n\t\t$object = new PostModel();\n \n\t\t$records=$object->showallblogrecords();\n \n\t\treturn view('viewlist', array('records' => $records));\n\t}", "title": "" }, { "docid": "19a083422cd53ccb653081ea30651498", "score": "0.7682514", "text": "public function index()\n {\n return view('admin.posts.index')->with('posts', Post::all());\n }", "title": "" }, { "docid": "efd893c8bbc83fb82163c5b536223aff", "score": "0.7676718", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $posts = $em->getRepository('AppBundle:Post')->findAll();\n\n return $this->render('post/index.html.twig', array(\n 'posts' => $posts,\n ));\n }", "title": "" }, { "docid": "d99be03dd0983566d405bf37022564c9", "score": "0.7675638", "text": "public function index()\n {\n return view('dashboard.posts.list');\n }", "title": "" }, { "docid": "bd306593994ab07683ee4d6e72540dd5", "score": "0.76727974", "text": "public function index()\n {\n $posts = Post::all();\n return view('admin.pages.posts.index', compact('posts'));\n }", "title": "" }, { "docid": "7ef8075f7847020f117607b0d14a9e47", "score": "0.766989", "text": "public function index()\n {\n $posts = Post::all();\n\n return view('backEnd.admin.posts.index', compact('posts'));\n }", "title": "" }, { "docid": "8b1210551fd623588a9f334abf0ab2bc", "score": "0.76661867", "text": "public function index()\n {\n $posts= Post::with('category', 'user', 'tags')->paginate(10);\n return view('front.blog.index', compact('posts'));\n }", "title": "" }, { "docid": "7f7b410c6f4387e868575410791be391", "score": "0.7660497", "text": "public function index()\n {\n $posts = Post::paginate(10);\n return view('admin.posts.index', compact('posts'));\n }", "title": "" }, { "docid": "e533ce670594111a3f90b7c106ace929", "score": "0.7653183", "text": "public function index()\n {\n $posts = Post::all();\n\n return view('admin.posts.index')\n ->with('posts', $posts);\n }", "title": "" }, { "docid": "a109341ec582e35b49ac7b0194b2dc35", "score": "0.7641553", "text": "public function index()\n {\n $contents = Content::with('author')->latestBy(Content::CREATED_AT)->post()->paginate();\n\n set_meta('title', 'List of Posts');\n\n return view('orchestra/story::admin.index', [\n 'contents' => $contents,\n 'create' => Gate::allows('create', Content::newPostInstance()),\n 'type' => 'post',\n ]);\n }", "title": "" }, { "docid": "9846a6c03f8a54c38a26db6f87c1e32c", "score": "0.76353145", "text": "public function index()\n {\n $posts = Post::where('user_id', '=', \\Auth::id())->get();\n\n return view('post.show_all')->with(compact(['posts']));\n }", "title": "" }, { "docid": "6c7a4d907dbf81912466fa291f07eda2", "score": "0.7634532", "text": "public function index()\n {\n if (\\request()->exists('blog'))\n {\n return Post::with([\n 'comments.user',\n 'status',\n 'postLike',\n 'postDislike',\n 'category',\n 'user'])\n ->whereHas('status', function($q) {\n $q->where('name', '=', 'published');\n })\n ->latest()\n ->limit(6)\n ->get();\n }\n return Post::with([\n 'comments',\n 'status',\n 'postLike',\n 'postDislike',\n 'category',\n 'user'])\n ->whereHas('status', function($q) {\n $q->where('name', '=', 'published');\n })\n ->latest()\n ->paginate(10);\n }", "title": "" }, { "docid": "be7c7d27ca2cadbf2f6bf2c7f4242067", "score": "0.76279104", "text": "public function index()\n {\n $posts = DB::table('posts')->orderByDesc('created_at')->simplePaginate(15);\n return view('backend.pages.post.index', [\"posts\" => $posts]);\n }", "title": "" }, { "docid": "9d27b22dfaa5286536df2d2a3cdf4f7b", "score": "0.76226187", "text": "public function index()\n {\n $posts = Post::all();\n\n return view('admin.posts.index',compact('posts'));\n }", "title": "" }, { "docid": "4affe67a1376ed3b57a8ff70115ca57d", "score": "0.76224625", "text": "public function index()\n {\n $posts = Post::latest()->paginate(9);\n return view('admin.posts.index', compact('posts'));\n \n }", "title": "" }, { "docid": "22f67daa3743b199d0e9518219b36b66", "score": "0.7621725", "text": "public function index()\n {\n return view('admin.post.index')->with('posts', Post::all());\n }", "title": "" }, { "docid": "2515ec9c79945f8e829a80ec136a23d3", "score": "0.761834", "text": "public function blog()\n {\n $posts = BlogPost::orderBy('created_at','desc')->paginate(10);\n return view('pages.blog')->with('posts', $posts);\n }", "title": "" }, { "docid": "b4c9e2ddcb38e2f4b476d026478f37e3", "score": "0.76161873", "text": "public function index()\n {\n $posts = Post::orderby('id', 'desc')->simplePaginate(5);\n\n return view('post.index', compact('posts'));\n }", "title": "" }, { "docid": "2b863937a3cbfb3194b0bfe6dd0ff7f0", "score": "0.76142395", "text": "public function index()\n {\n return view('post.index')->with([\n 'posts' => $this->postService->getPosts(),\n ]);\n }", "title": "" }, { "docid": "05bc84c7af872bbb4a6e9dafc7aaa7a7", "score": "0.7611565", "text": "public function index() {\n $posts = Post::visible()->latest('published_at')->get();\n\n return view('posts.index', compact('posts'));\n }", "title": "" }, { "docid": "32101201f9a4033315e5f73e8b3388ab", "score": "0.76080513", "text": "public function index()\n\t{\n\t\t$posts = Post::all();\n\t\treturn view('admin.post.index')\n\t\t\t->with('posts', $posts);\n\t}", "title": "" }, { "docid": "6180d84d6a5338dcb5a96a5b8a5ca1b8", "score": "0.76064926", "text": "public function index()\n {\n $listPost = Post::all();\n return view('post.index', compact('listPost'));\n }", "title": "" }, { "docid": "85d6efee88caafcf1f40e697ffb80adc", "score": "0.76025784", "text": "public function list()\n {\n if ($this->isConnected()) {\n if (Auth::isAdmin()) {\n $table = $this->table('posts');\n $trad = new App();\n $pageTitle = $trad->translate('posts');\n $posts = $table->findNotTrash();\n foreach ($posts as $post) {\n $infos = new UserTable();\n $post->author = $infos->author($post->author);\n }\n $this->render('posts', ['pageTitle' => $pageTitle, 'posts' => $posts], 'backend');\n }\n }\n }", "title": "" }, { "docid": "80de7207d8687551f415c65ee632e06d", "score": "0.76007557", "text": "public function index()\n {\n return view('posts.index', [\n 'posts' => Post::latest()\n ->filter(\n request(['search', 'category', 'author'])\n )\n ->paginate(6)\n ->withQueryString(),\n ]);\n }", "title": "" }, { "docid": "652633654f127cc848f900ed96f2b367", "score": "0.7599454", "text": "public function index()\n {\n $posts = Auth::user()->posts()->orderBy('published_at', 'desc')->paginate(5);\n\n return view('posts.showAll', compact('posts'));\n }", "title": "" }, { "docid": "5eabacf79a6064c039dd82f3df402c14", "score": "0.7596766", "text": "public function index()\n {\n $posts = Post::all();\n return view('pages.posts.index', compact('posts'));\n }", "title": "" }, { "docid": "bf90b5a4f7a020c9e66ed6ff91c06efa", "score": "0.759651", "text": "public function index()\n {\n $blogs = Blog::orderBy('id', 'desc')->paginate(3);\n\n return view('blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "34e62ecdb59a91cf2424a4faf7e2571e", "score": "0.7591332", "text": "public function index()\n {\n $this->set('posts', $this->Post->find('all'));\n }", "title": "" }, { "docid": "4edde81ddd24e521c5db0dd0b83ff521", "score": "0.7591039", "text": "public function index()\n {\n return posts::all();\n }", "title": "" }, { "docid": "d224bf595c2c0f910d593d805077c946", "score": "0.75887626", "text": "public function index()\n {\n $blogs = Blog::all();\n return view('admin.blog.index',compact('blogs'));\n }", "title": "" }, { "docid": "67717e49cc3112b485e994404e9a9786", "score": "0.75882834", "text": "public function index()\n {\n Paginator::useBootstrap();\n $post = Post::with(['user', 'tags'])\n ->where('post_type', 'post')\n ->where('post_status', 'publish')\n ->latest()->simplePaginate(10);\n return view('post.index', ['post' => $post, 'latest' => $post]);\n }", "title": "" }, { "docid": "5c6b77300077dce14915086c65fd3833", "score": "0.7585043", "text": "public function blogpost()\n {\n $db = App::getInstance()->getDb();\n $auth = new Auth($db, Session::getInstance());\n $posts = $this->Post->last();\n $categories = $this->Category->all();\n $this->render('posts.blogposts', compact('posts', 'categories','auth'));\n }", "title": "" }, { "docid": "b3490b320ca2e8d4f25cd676d08dad8c", "score": "0.7585038", "text": "public function index()\n {\n \n\n $posts = $this->postRepository->getAll();\n\n \n \n return view('site.index',compact('posts'));\n }", "title": "" }, { "docid": "44d6fe1a2d31a414d9a070523f59244a", "score": "0.7584488", "text": "public function index(){\n\n\t\t$blogPosts = BlogPosts::scopeGetTwoRecentPosts();\n\t\treturn view('blog.index',compact('blogPosts'));\n\t}", "title": "" }, { "docid": "f1ec15026d4c1c2fe3054114e776af06", "score": "0.75754154", "text": "public function index() {\n $posts = $this->post->orderby('id', 'desc')->paginate(5);\n return view('posts.index', compact('posts'));\n }", "title": "" }, { "docid": "5fdabce4ab6f4d1a1f7ccb8c19484c8f", "score": "0.7570968", "text": "public function index()\n {\n $search = isset($_GET['search']) ? \\Request::get('search') : null;\n $config = BlogConfig::firstOrFail(); // get first config record.\n\n if ( !isset($search) ) {\n // show all posts\n $posts = Post::latest()->orderBY('created_at', 'DESC')->paginate($config->pagination);\n } else {\n $posts = Post::latest()->where('title', 'like', '%' . $search . '%')->paginate($config->pagination);\n }\n // Return view\n return view('templates.myappblog.index', compact('posts', 'config'));\n }", "title": "" }, { "docid": "662fc2ff33dec69bca06e5d7eece7f37", "score": "0.75686437", "text": "public function index()\n\t{\n\t\t$posts = Post::all();\n\t\t$this->layout->content = View::make('private.postViews.index')->with(compact('posts'));\n\t}", "title": "" }, { "docid": "dd8e0b49d2ac9b88022fbd09056880ef", "score": "0.75683945", "text": "public function index()\n {\n $posts = Post::all();\n\n return view('admin.post.index', compact('posts')) ;\n }", "title": "" }, { "docid": "a72610fcfc1508c83e461e67caba01ac", "score": "0.7563269", "text": "public function index()\n {\n $posts = Post::latest()->paginate(20);\n return view('posts.index')->withPosts($posts);\n }", "title": "" }, { "docid": "e2e3ddabda196a71a1fb6a3522b64010", "score": "0.7562953", "text": "function index()\n {\n $data['query'] = $this->Blog_model->get_all_posts();\n $this->load->view('blog/index',$data);\n }", "title": "" }, { "docid": "f676580b1e88e9b0a2821c2eac0aaf75", "score": "0.7560921", "text": "public function index()\n {\n $result = Blog::all();\n return $result;\n }", "title": "" }, { "docid": "f86348dbb7e7bcd4f38a25870cdf9c61", "score": "0.7558568", "text": "public function index(){\n $posts = Post::all();\n\n dd($posts);\n // todo return view('post.index');\n }", "title": "" }, { "docid": "1ad487eadfc30263915efc053966522c", "score": "0.7556078", "text": "public function getBlogIndex() {\n\n\t\t$posts = Post::paginate(5);\n\n\t\t\t/*We are here overwriting longer text with the shorten as created below in private function \n\t\t\tshortenText below: Start*/ \n\n\t\tforeach ($posts as $post) {\n\t\t\t$post->body = $this->shortenText($post->body, 20);\t/*First 20 character will be visible*/\n\t\t}\n\n\t\t\t/*We are here overwriting longer text with the shorten as created below in private function \n\t\t\tshortenText below: End*/\n\n\t\treturn view('frontend.blog.index', ['posts' => $posts]);\n\t}", "title": "" }, { "docid": "50895388697584aa09ec3a0cc9082659", "score": "0.7548776", "text": "public function ShowPostsList()\r\n\t{\t\t\t\r\n\t\t$this->Render('Posts/postsliste.html', array('posts' => $this->model->getLastPost()));\r\n\t}", "title": "" }, { "docid": "2dd8723b5d52f693ab1ac437ed2cbcfb", "score": "0.75428253", "text": "function index()\n {\n $post = new PostModel();\n $postRepo = new PostRepository();\n $d['post'] = $postRepo->getAll();\n $this->set($d);\n $this->render(\"index\");\n }", "title": "" }, { "docid": "79746a3cf90819847281d6d6837817cb", "score": "0.7541754", "text": "public function index()\n {\n $columns = [\n '#','Titolo','Categoria','Descrizione','Tags','Aggiorna','Cancella'\n ];\n $posts = Post::all();\n\n return view('posts.index', compact('posts','columns'));\n \n \n }", "title": "" }, { "docid": "96ebe3c90e8f6ea684d4fafb38310597", "score": "0.7536129", "text": "public function index()\n\t{\n\t\t$posts = Post::all();\n\n\t\treturn view('posts.index', compact('posts'));\n\t}", "title": "" } ]
d8c7d31b997c037a82a660069f6e5633
Builds the necessary info to execute the query.
[ { "docid": "eae73ebe0db9f669f834e8dd59752b35", "score": "0.0", "text": "public function build(ViewExecutable $view) {\n // Make the query distinct if the option was set.\n if (!empty($this->options['distinct'])) {\n $this->setDistinct(TRUE);\n }\n\n // Store the view in the object to be able to use it later.\n $this->view = $view;\n\n $view->initPager();\n\n // Let the pager modify the query to add limits.\n $view->pager->query();\n\n $view->build_info['query'] = $this->query();\n $view->build_info['count_query'] = $this->query(TRUE);\n }", "title": "" } ]
[ { "docid": "dc8d004cce80473d93e543d1758b7164", "score": "0.71229", "text": "protected function _buildQuery()\n {\n $db = $this->_db();\n $query = 'SELECT i.accessionNumber FROM iph i ';\n $i = 0;\n\n // HACK ALERT: querying prog1=* is a flag that returns everything in \n // the database.\n if ($this->current_query['prog1'] != '*') {\n $query .= ' WHERE ';\n\n foreach ($this->params as $column => $value) {\n $op = $i > 0 ? 'AND' : '';\n $value = $db->escape($value);\n $query .= \" $op $column='$value'\";\n $i++;\n }\n\n $query = $this->_buildKeywordQuery($query, $i);\n }\n\n $this->countq = \"SELECT COUNT(*) FROM iph WHERE accessionNumber IN ($query);\";\n $this->query = \"SELECT * FROM iph WHERE accessionNumber IN ($query) ORDER BY accessionNumber\";\n }", "title": "" }, { "docid": "08205f2c8f1778dbf1f8a5fb596f7580", "score": "0.71038127", "text": "protected function buildQuery()\n {\n $this->prepareTableAliases();\n $this->prepareColumnAliases();\n\n $this->addSelectStatement();\n $this->addFromStatements();\n $this->addJoinStatements();\n $this->addWhereStatement();\n $this->addGroupByStatement();\n $this->addOrderByStatement();\n\n $this->saveTableAliases($this->tableAliases);\n $this->saveColumnAliases($this->columnAliases);\n }", "title": "" }, { "docid": "223fc87b0dae462d49cfed062ff3161a", "score": "0.6988193", "text": "abstract function buildQuery();", "title": "" }, { "docid": "51b5d972f9f5d8f8c3e59c5043597e0b", "score": "0.66135097", "text": "public function buildQuery()\n {\n foreach ($this->fields as $_nextRow) {\n $this->columns[$_nextRow['name']] = $this->buildNextField($_nextRow);\n }\n }", "title": "" }, { "docid": "5bf62705a5d7948d44f5ae0608f03971", "score": "0.65486395", "text": "public function buildQuery();", "title": "" }, { "docid": "0e0fab72837fb4e2da185819955b0fbd", "score": "0.6440113", "text": "private function buildQuery()\n {\n return $this\n ->setTermColumnJoin()\n ->setPostColumnJoin()\n ->setPostFeaturedImageColumn()\n ->setTaxonomyConditions()\n ->setPostConditions()\n ->addColumnSQL()\n ->addFromSQL()\n ->addConditionSQL()\n ->addOrderBySQL();\n }", "title": "" }, { "docid": "6c62a451dbc6f59ebdf1f5ab6e3da09b", "score": "0.6427879", "text": "public function build() {\n\t\tif ($table = $this->_database->get_table($this->table)) {\n\t\t\t$query = \"SELECT SQL_CALC_FOUND_ROWS `$table->name`.*\";\n\n\t\t\t$joins = [];\n\t\t\t$where = [];\n\t\t\t$order = [];\n\n\t\t\t$params = [];\n\n\t\t\tif ($rel = $table->get_relation($this->bridge)) {\n\t\t\t\t$bridge = $table->name == $rel->ptable ? $rel->ftable : $rel->ptable;\n\t\t\t\t$bridge = $this->_database->get_table($bridge);\n\n\t\t\t\t$query .= \", `$bridge->name`.*\";\n\n\t\t\t\tif (is_scalar($rel->pkey) && is_scalar($rel->fkey)) {\n\t\t\t\t\t$match = \"`$rel->ftable`.`$rel->fkey` = `$rel->ptable`.`$rel->pkey`\";\n\t\t\t\t} elseif (is_array($rel->pkey) && is_array($rel->fkey)) {\n\t\t\t\t\t$match = [];\n\n\t\t\t\t\tfor ($i = 0, $n = count($rel->pkey); $i < $n; $i++) {\n\t\t\t\t\t\t$match[] = \"`$rel->ftable`.`{$rel->fkey[$i]}` = `$rel->ptable`.`{$rel->pkey[$i]}`\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$match = implode(\" AND \", $match);\n\t\t\t\t}\n\n\t\t\t\t$joins[] = \"`$bridge->name` ON $match\";\n\t\t\t} else {\n\t\t\t\t$bridge = new bridge_table('');\n\t\t\t}\n\n\t\t\t$query .= \" FROM `$table->name`\";\n\n\t\t\tforeach ($this->args as $field => $value) {\n\t\t\t\tif ($rel = $bridge->get_relation($field)) {\n\t\t\t\t\tif ($join = $this->_join($bridge, $rel, $field))\n\t\t\t\t\t\t$joins[] = $join;\n\t\t\t\t} elseif ($rel = $table->get_relation($field)) {\n\t\t\t\t\tif ($join = $this->_join($table, $rel, $field))\n\t\t\t\t\t\t$joins[] = $join;\n\t\t\t\t}\n\n\t\t\t\tif (is_scalar($value)) {\n\t\t\t\t\t$where[] = \"`$field` = ?\";\n\t\t\t\t\t$params[] = $value;\n\t\t\t\t} elseif (is_array($value) && count($value)) {\n\t\t\t\t\t$places = array_fill(0, count($value), '?');\n\n\t\t\t\t\t$where[] = \"`$field` IN (\" . implode(\", \", $places) . \")\";\n\n\t\t\t\t\tforeach ($value as $subvalue)\n\t\t\t\t\t\t$params[] = $subvalue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($joins))\n\t\t\t\t$query .= \" INNER JOIN \" . implode(\" INNER JOIN \", $joins);\n\n\t\t\tif (count($where))\n\t\t\t\t$query .= \" WHERE \" . implode(\" AND \", $where);\n\n\t\t\tif (count($this->sort)) {\n\t\t\t\tforeach ($this->sort as $field => $value) {\n\t\t\t\t\t$value = strtoupper($value) == 'DESC' ? 'DESC' : 'ASC';\n\t\t\t\t\t$order[] = \"`$field` $value\";\n\t\t\t\t}\n\n\t\t\t\t$query .= \" ORDER BY \" . implode(\", \", $order);\n\t\t\t}\n\n\t\t\tif ($limit = intval($this->limit)) {\n\t\t\t\t$query .= \" LIMIT ?\";\n\t\t\t\t$params[] = $limit;\n\t\t\t}\n\n\t\t\tif ($offset = intval($this->offset)) {\n\t\t\t\t$query .= \" OFFSET ?\";\n\t\t\t\t$params[] = $offset;\n\t\t\t}\n\n\t\t\t$this->_query = $query;\n\t\t\t$this->_params = $params;\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "eff8e75d20ed7ae150144c18686d1522", "score": "0.64127964", "text": "protected function _buildQuery() {\n\t\t$query = new Query($this->connection());\n\t\treturn $query->repository($this);\n\t}", "title": "" }, { "docid": "a07b450d507161ea6f94116e74253976", "score": "0.63915676", "text": "abstract protected function buildQuery() : string;", "title": "" }, { "docid": "d6ac4c08ba13fcdfca0f64e2a9b5f399", "score": "0.63644874", "text": "public function buildQuery() {\n\t\t\t// First check what to do with ORDER BY fields\n\t\t$this->preprocessOrderByFields();\n\t\t\t// Start assembling the query\n\t\t$query = 'SELECT ';\n\t\tif ($this->queryObject->structure['DISTINCT']) {\n\t\t\t$query .= 'DISTINCT ';\n\t\t}\n\t\t$query .= implode(', ', $this->queryObject->structure['SELECT']) . ' ';\n\t\t$query .= 'FROM ' . $this->queryObject->structure['FROM']['table'];\n\t\tif (!empty($this->queryObject->structure['FROM']['alias'])) {\n\t\t\t$query .= ' AS ' . $this->queryObject->structure['FROM']['alias'];\n\t\t}\n\t\t$query .= ' ';\n\t\tif (isset($this->queryObject->structure['JOIN'])) {\n\t\t\tforeach ($this->queryObject->structure['JOIN'] as $theJoin) {\n\t\t\t\t$query .= strtoupper($theJoin['type']) . ' JOIN ' . $theJoin['table'];\n\t\t\t\tif (!empty($theJoin['alias'])) {\n\t\t\t\t\t$query .= ' AS ' . $theJoin['alias'];\n\t\t\t\t}\n\t\t\t\tif (!empty($theJoin['on'])) {\n\t\t\t\t\t$query .= ' ON ' . $theJoin['on'];\n\t\t\t\t}\n\t\t\t\t$query .= ' ';\n\t\t\t}\n\t\t}\n\t\tif (count($this->queryObject->structure['WHERE']) > 0) {\n\t\t\t$whereClause = '';\n\t\t\tforeach ($this->queryObject->structure['WHERE'] as $clause) {\n\t\t\t\tif (!empty($whereClause)) {\n\t\t\t\t\t$whereClause .= ' AND ';\n\t\t\t\t}\n\t\t\t\t$whereClause .= '(' . $clause . ')';\n\t\t\t}\n\t\t\t$query .= 'WHERE ' . $whereClause . ' ';\n\t\t}\n\t\tif (count($this->queryObject->structure['GROUP BY']) > 0) {\n\t\t\t$query .= 'GROUP BY ' . implode(', ', $this->queryObject->structure['GROUP BY']) . ' ';\n\t\t}\n\t\t\t// Add order by clause if defined and if applicable (see preprocessOrderByFields())\n\t\tif ($this->processOrderBy && count($this->queryObject->structure['ORDER BY']) > 0) {\n\t\t\t$query .= 'ORDER BY ' . implode(', ', $this->queryObject->structure['ORDER BY']) . ' ';\n\t\t}\n\t\tif (isset($this->queryObject->structure['LIMIT'])) {\n\t\t\t$query .= 'LIMIT ' . $this->queryObject->structure['LIMIT'];\n\t\t\tif (isset($this->queryObject->structure['OFFSET'])) {\n\t\t\t\t$query .= ' OFFSET ' . $this->queryObject->structure['OFFSET'];\n\t\t\t}\n\t\t}\n//t3lib_utility_Debug::debug($query);\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "390c17f13e0f577ec092c4c65cddf115", "score": "0.63631284", "text": "protected abstract function build_sql();", "title": "" }, { "docid": "faf4fcc35d01c5b0ef88f3bf93d62236", "score": "0.6328513", "text": "public function build()\n\t\t{\n\n\t\t\t$fields = array();\n\t\t\t$wheres = array();\n\t\t\t$orders = array();\n\t\t\t$options = array();\n\t\t\t$query = '';\n\n\t\t\tforeach ( $this->_fields as $field )\n\t\t\t{\n\t\t\t\tif ( !isset( $field['field'] ) OR !is_string( $field['field'] ) )\n\t\t\t\t{\n\t\t\t\t\tnext;\n\t\t\t\t}\n\t\t\t\tif ( isset( $field['alias'] ) AND is_string( $field['alias'] ) )\n\t\t\t\t{\n\t\t\t\t\t$fields[] = sprintf( \"%s AS %s\", $field['field'], $field['alias'] );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$fields[] = sprintf( \"%s\", $field['field'] );\n\t\t\t\t}\n\t\t\t}\n\t\t\tunset( $field );\n\n\t\t\tif ( is_string( $this->_search ) )\n\t\t\t{\n\t\t\t\t$wheres[] = sprintf( \"MATCH('%s')\", addslashes( $this->_search ) );\n\t\t\t}\n\n\t\t\tforeach ( $this->_wheres as $where )\n\t\t\t{\n\t\t\t\t$wheres[] = sprintf( \"%s %s %s\", $where['field'], $where['operator'], $where['value'] );\n\t\t\t}\n\t\t\tunset( $where );\n\n\t\t\tforeach ($this->_sql_parts as $where)\n\t\t\t{\n\t\t\t\t$wheres[] = $where;\n\t\t\t}\n\t\t\tunset($where);\n\n\t\t\tforeach ( $this->_orders as $order )\n\t\t\t{\n\t\t\t\t$orders[] = sprintf( \"%s %s\", $order['field'], $order['sort'] );\n\t\t\t}\n\t\t\tunset( $order );\n\n\t\t\tforeach ( $this->_options as $option )\n\t\t\t{\n\t\t\t\t$options[] = sprintf( \"%s=%s\", $option['name'], $option['value'] );\n\t\t\t}\n\t\t\tunset( $option );\n\n\t\t\t$query .= sprintf( 'SELECT %s ', count( $fields ) ? implode( ', ', $fields ) : '*' );\n\t\t\t$query .= sprintf( 'FROM %s ', implode( ',', $this->_indexes ) );\n\t\t\tif ( count( $wheres ) > 0 )\n\t\t\t{\n\t\t\t\t$query .= sprintf( 'WHERE %s ', implode( ' AND ', $wheres ) );\n\t\t\t}\n\t\t\tif ( is_string( $this->_group ) )\n\t\t\t{\n\t\t\t\t$query .= sprintf( 'GROUP BY %s ', $this->_group );\n\t\t\t}\n\t\t\tif ( is_array( $this->_group_order ) )\n\t\t\t{\n\t\t\t\t$query .= sprintf( 'WITHIN GROUP ORDER BY %s %s ', $this->_group_order['field'], $this->_group_order['sort'] );\n\t\t\t}\n\t\t\tif ( count( $orders ) > 0 )\n\t\t\t{\n\t\t\t\t$query .= sprintf( 'ORDER BY %s ', implode( ', ', $orders ) );\n\t\t\t}\n\t\t\t$query .= sprintf( 'LIMIT %d, %d ', $this->_offset, $this->_limit );\n\t\t\tif ( count( $options ) > 0 )\n\t\t\t{\n\t\t\t\t$query .= sprintf( 'OPTION %s ', implode( ', ', $options ) );\n\t\t\t}\n\t\t\twhile ( substr( $query, -1, 1 ) == ' ' )\n\t\t\t{\n\t\t\t\t$query = substr( $query, 0, -1 );\n\t\t\t}\n\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "52fda75a4c2857ca6accb37cecc736a6", "score": "0.6262159", "text": "protected function _buildQuery()\r\n\t{\r\n\t\treturn parent::_buildQuery();\r\n\t}", "title": "" }, { "docid": "48dbad5bf4bc818f9d3276a5bb839446", "score": "0.62612575", "text": "private function build_queries()\n {\n $this->queries = array();\n $this->types = array();\n\n // Get all of the query builder methods\n $methods = get_class_methods($this);\n foreach ($methods as $method) {\n if (substr_compare($method, '_build', 0, 6) === 0) {\n call_user_func(array($this, $method));\n }\n }\n }", "title": "" }, { "docid": "859c8c456092ac36eda11ecda1e18eab", "score": "0.62298024", "text": "protected function analyzeQuery() {\n\t\t\t// Loop on all query fields to assemble additional information structures\n\t\tforeach ($this->queryObject->structure['SELECT'] as $index => $fieldInfo) {\n\t\t\t\t// Assemble list of fields per table\n\t\t\t\t// The name of the field is used both as key and value, but the value will be replaced by the fields' labels in getLocalizedLabels()\n\t\t\tif (!isset($this->queryFields[$fieldInfo['tableAlias']])) {\n\t\t\t\t$this->queryFields[$fieldInfo['tableAlias']] = array('name' => $fieldInfo['table'], 'table' => $fieldInfo['tableAlias'], 'fields' => array());\n\t\t\t}\n\t\t\t$this->queryFields[$fieldInfo['tableAlias']]['fields'][] = array('name' => $fieldInfo['field'], 'function' => $fieldInfo['function']);\n\n\t\t\t\t// Assemble full names for each field\n\t\t\t\t// The full name is:\n\t\t\t\t//\t1) the name of the table or its alias\n\t\t\t\t//\t2) a dot\n\t\t\t\t//\t3) the name of the field\n\t\t\t\t//\n\t\t\t\t// => If it's the main table and there's an alias for the field\n\t\t\t\t//\n\t\t\t\t//\t4a) AS and the field alias\n\t\t\t\t//\n\t\t\t\t//\t4a-2)\tif the alias contains a dot (.) it means it contains a table name (or alias)\n\t\t\t\t//\t\t\tand a field name. So we use this information\n\t\t\t\t//\n\t\t\t\t// This means something like foo.bar AS hey.you will get transformed into foo.bar AS hey$you\n\t\t\t\t//\n\t\t\t\t// In effect this means that you can \"reassign\" a value from one table (foo) to another (hey)\n\t\t\t\t//\n\t\t\t\t// => If it's not the main table, all fields get an alias using either their own name or the given field alias\n\t\t\t\t//\n\t\t\t\t//\t4b) AS and $ and the field or its alias\n\t\t\t\t//\n\t\t\t\t// So something like foo.bar AS boink will get transformed into foo.bar AS foo$boink\n\t\t\t\t//\n\t\t\t\t//\t4b-2)\tlike 4a-2) above, but for subtables\n\t\t\t\t//\n\t\t\t\t// The $ sign is used in class tx_dataquery_wrapper for building the data structure\n\t\t\t\t// Initialize values\n\t\t\t$mappedField = '';\n\t\t\t$mappedTable = '';\n\t\t\t$fullField = $fieldInfo['tableAlias'] . '.' . $fieldInfo['field'];\n\t\t\tif ($fieldInfo['function']) {\n\t\t\t\t$fullField = $fieldInfo['field'];\n\t\t\t}\n\t\t\t$theField = $fieldInfo['field'];\n\t\t\t\t// Case 4a\n\t\t\tif ($fieldInfo['tableAlias'] == $this->queryObject->mainTable) {\n\t\t\t\tif (empty($fieldInfo['fieldAlias'])) {\n\t\t\t\t\t$theAlias = $theField;\n\t\t\t\t} else {\n\t\t\t\t\t$fullField .= ' AS ';\n\t\t\t\t\tif (strpos($fieldInfo['fieldAlias'], '.') === FALSE) {\n\t\t\t\t\t\t$theAlias = $fieldInfo['fieldAlias'];\n\t\t\t\t\t\t$mappedTable = $fieldInfo['tableAlias'];\n\t\t\t\t\t\t$mappedField = $fieldInfo['fieldAlias'];\n\t\t\t\t\t}\n\t\t\t\t\t\t// Case 4a-2\n\t\t\t\t\telse {\n\t\t\t\t\t\tlist($mappedTable, $mappedField) = explode('.', $fieldInfo['fieldAlias']);\n\t\t\t\t\t\t$theAlias = str_replace('.', '$', $fieldInfo['fieldAlias']);\n\t\t\t\t\t}\n\t\t\t\t\t$fullField .= $theAlias;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$fullField .= ' AS ';\n\t\t\t\tif (empty($fieldInfo['fieldAlias'])) {\n\t\t\t\t\t$theAlias = $fieldInfo['tableAlias'] . '$' . $fieldInfo['field'];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\t// Case 4b\n\t\t\t\t\tif (strpos($fieldInfo['fieldAlias'], '.') === FALSE) {\n\t\t\t\t\t\t$theAlias = $fieldInfo['tableAlias'] . '$' . $fieldInfo['fieldAlias'];\n\t\t\t\t\t}\n\t\t\t\t\t\t// Case 4b-2\n\t\t\t\t\telse {\n\t\t\t\t\t\tlist($mappedTable, $mappedField) = explode('.', $fieldInfo['fieldAlias']);\n\t\t\t\t\t\t$theAlias = str_replace('.', '$', $fieldInfo['fieldAlias']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$fullField .= $theAlias;\n\t\t\t}\n\t\t\tif (empty($mappedTable)) {\n\t\t\t\t$mappedTable = $fieldInfo['tableAlias'];\n\t\t\t\t$mappedField = $theField;\n\t\t\t}\n\t\t\t$this->fieldTrueNames[$theAlias] = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'table' => $fieldInfo['table'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t'aliasTable' => $fieldInfo['tableAlias'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t'field' => $theField,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'mapping' => array('table' => $mappedTable, 'field' => $mappedField)\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t$this->queryObject->structure['SELECT'][$index] = $fullField;\n }\n\t}", "title": "" }, { "docid": "7ce95c6f7f27f569b19d6733d329e9a4", "score": "0.61819005", "text": "protected function build()\n\t{\n\t\t$query = '';\n\n\t\tif ($this->join)\n\t\t{\n\t\t\t$query .= ' ' . $this->join;\n\t\t}\n\n\t\tif ($this->conditions)\n\t\t{\n\t\t\t$query .= ' WHERE ' . implode(' AND ', $this->conditions);\n\t\t}\n\n\t\tif ($this->group)\n\t\t{\n\t\t\t$query .= ' GROUP BY ' . $this->group;\n\n\t\t\tif ($this->having)\n\t\t\t{\n\t\t\t\t$query .= ' HAVING ' . $this->having;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->order)\n\t\t{\n\t\t\t$query .= ' ORDER BY ' . $this->order;\n\t\t}\n\n\t\tif ($this->offset && $this->limit)\n\t\t{\n\t\t\t$query .= \" LIMIT $this->offset, $this->limit\";\n\t\t}\n\t\telse if ($this->offset)\n\t\t{\n\t\t\t$query .= \" LIMIT $this->offset, 18446744073709551615\";\n\t\t}\n\t\telse if ($this->limit)\n\t\t{\n\t\t\t$query .= \" LIMIT $this->limit\";\n\t\t}\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "041d75fbcaa53fa7354850549e3112f0", "score": "0.6181702", "text": "protected function generate_sql_queries() {\n $result = \"\";\n // SQL structure columns\n $user_fields = array(\"uid\",\"name\",\"value\");\n $clan_fields = array(\"cid\",\"short\",\"name\",\"motd\",\"creation_time\");\n $clan_member_fields = array(\"uid\",\"cid\",\"status\",\"join_time\");\n $team_fields = array(\n \"teamid\",\"size\",\"clienttag\",\"lastgame\",\n \"member1\",\"member2\",\"member3\",\"member4\",\n \"wins\",\"losses\",\"xp\",\"level\",\"rank\"\n );\n if(!empty($this->parsed_data)) {\n // Sort data\n if($this->sort_output_data) {\n // Users\n if(!empty($this->parsed_data[\"users\"])) {\n uasort($this->parsed_data[\"users\"],function($a,$b) {\n $a = $a['BNET']['acct\\\\userid']['value'];\n $b = $b['BNET']['acct\\\\userid']['value'];\n return ($a - $b);\n });\n }\n // Clans\n if(!empty($this->parsed_data[\"clans\"])) {\n uasort($this->parsed_data[\"clans\"],function($a,$b) {\n return ($a['cid'] - $b['cid']);\n });\n }\n // Teams\n if(!empty($this->parsed_data[\"teams\"])) {\n uasort($this->parsed_data[\"teams\"],function($a,$b) {\n return ($a['teamid'] - $b['teamid']);\n });\n }\n }\n // Generate queries\n foreach($this->parsed_data as $type => $entries) {\n if(!empty($entries)) {\n $result .= \"/* \" . strtoupper($type) . \" */\\r\\n\";\n foreach($entries as $entry) {\n // Users\n if($type == \"users\") {\n if(!empty($entry)) {\n foreach($entry as $table => $data) {\n $result .= $this->generate_sql_query($table,$user_fields,$data,false);\n }\n $result .= \"\\r\\n\";\n }\n }\n // Clans\n elseif($type == \"clans\") {\n $result .= $this->generate_sql_query(\"clan\",$clan_fields,$entry);\n if(!empty($entry['members'])) {\n $result .= $this->generate_sql_query(\n \"clanmember\",$clan_member_fields,$entry['members'],false\n );\n }\n $result .= \"\\r\\n\";\n }\n // Teams\n elseif($type == \"teams\") {\n $result .= $this->generate_sql_query(\"arrangedteam\",$team_fields,$entry);\n $result .= \"\\r\\n\";\n }\n }\n }\n }\n // Connection encoding\n if(!empty($result)) {\n $result = (\"SET NAMES `utf8`;\\r\\n\\r\\n\" . $result);\n }\n }\n return $result;\n }", "title": "" }, { "docid": "dbfef54a9b5a09e8a6c0b21838e8db31", "score": "0.6152167", "text": "public function buildQuery()\r\n\t{\r\n\t return $this->raw ?\r\n \t $this->raw :\r\n \t $this->type .\r\n \t $this->getSelect() .\r\n \t $this->getFrom() .\r\n \t $this->getValues() .\r\n \t $this->getJoin() .\r\n \t $this->getSet() .\r\n \t $this->getWhere() .\r\n \t $this->getGroup() .\r\n \t $this->getHaving() .\r\n \t $this->getOrderBy() .\r\n \t $this->getLimit();\r\n\t}", "title": "" }, { "docid": "2940bdf701d43caf84b9d46e9ba07b7d", "score": "0.61095685", "text": "function prepareQuery() {\n // for this version\n $this->applyEntityTokens();\n $this->applySettings();\n if (count($this->featureid) == 0) {\n // @todo: proper error message here \n return FALSE;\n }\n if ( (trim($this->year) == '') or ($this->year == 0)) {\n $this->year = $this->entity_defaults['year'];\n }\n // be cool with a date and just extract the year\n list($this->year) = explode('-', $this->year);\n $ei = $this->getTSEntityInfo();\n //dpm($ei,'e info');\n $entity_pkcol = ($ei['entity keys']['id']) ? $ei['entity keys']['id'] : 'hydroid';\n $entity_tbl = $ei['base table'];\n $q = \" select mp.$entity_pkcol as featureid, \";\n $q .= \" '$this->year-01-01'::timestamp as tstime, \";\n $q .= \" '$this->year-12-31'::timestamp as tsendtime, \";\n $q .= \" meterloc_var.hydroid as meterloc_varid, meterloc_data.tid as meterloc_tid, \";\n $q .= \" meterloc_var.varunits as meterloc_units, meterloc_data.tscode as meterloc_tscode, \";\n $q .= \" method_var.hydroid as method_varid, method_data.tid as method_tid, \";\n $q .= \" method_var.varunits as method_units, method_data.tscode as method_tscode, \";\n $q .= \" maxday_var.hydroid as maxday_varid, maxday_data.tid as maxday_tid, \";\n $q .= \" maxday_data.tsvalue as maxday_tsvalue, maxday_data.tscode as maxday_tscode, \";\n $q .= \" maxday_var.varunits as maxday_units, maxday_data.tstime as maxday_tstime \";\n $q .= \" from $entity_tbl as mp \";\n // join in meter location variable and value\n $q .= \" left outer join dh_variabledefinition as meterloc_var \";\n $q .= \" on (meterloc_var.varkey = '$this->meterloc_varkey') \";\n $q .= \" left outer join dh_timeseries as meterloc_data \";\n $q .= \" on ( \";\n $q .= \" meterloc_data.varid = meterloc_var.hydroid \";\n $q .= \" and to_timestamp(meterloc_data.tstime) >= to_timestamp($this->year || '-01-01', 'YYYY-MM-DD' ) \";\n $q .= \" and to_timestamp(meterloc_data.tstime) <= to_timestamp($this->year || '-12-31', 'YYYY-MM-DD' ) \";\n $q .= \" and meterloc_data.featureid = mp.$entity_pkcol \";\n $q .= \" and meterloc_data.entity_type = '$this->ts_entity_type' \";\n $q .= \" ) \";\n // join in meter method variable and value\n $q .= \" left outer join dh_variabledefinition as method_var \";\n $q .= \" on (method_var.varkey = '$this->method_varkey') \";\n $q .= \" left outer join dh_timeseries as method_data \";\n $q .= \" on ( \";\n $q .= \" method_data.varid = method_var.hydroid \";\n $q .= \" and to_timestamp(method_data.tstime) >= to_timestamp($this->year || '-01-01', 'YYYY-MM-DD' ) \";\n $q .= \" and to_timestamp(method_data.tstime) <= to_timestamp($this->year || '-12-31', 'YYYY-MM-DD' ) \";\n $q .= \" and method_data.featureid = mp.$entity_pkcol \";\n $q .= \" and method_data.entity_type = '$this->ts_entity_type' \";\n $q .= \" ) \";\n // join in max day location variable and value\n $q .= \" left outer join dh_variabledefinition as maxday_var \";\n $q .= \" on (maxday_var.varkey = '$this->maxday_varkey') \";\n $q .= \" left outer join dh_timeseries as maxday_data \";\n $q .= \" on ( \";\n $q .= \" maxday_data.varid = maxday_var.hydroid \";\n $q .= \" and to_timestamp(maxday_data.tstime) >= to_timestamp($this->year || '-01-01', 'YYYY-MM-DD' ) \";\n $q .= \" and to_timestamp(maxday_data.tstime) <= to_timestamp($this->year || '-12-31', 'YYYY-MM-DD' ) \";\n $q .= \" and maxday_data.featureid = mp.$entity_pkcol \";\n $q .= \" and maxday_data.entity_type = '$this->ts_entity_type' \";\n $q .= \" ) \";\n $features = implode(\", \", $this->featureid);\n $q .= \" where mp.$entity_pkcol in ($features) \";\n if ($this->singular) {\n $q .= \" limit 1 \";\n }\n $this->query = $q;\n //dpm($this->query, 'query');\n return TRUE;\n }", "title": "" }, { "docid": "b43e91482162305d6189e678cd07cf3f", "score": "0.6072358", "text": "function buildQuery()\r\n\t{\r\n\t\t$ftype = $this->mainObject->getFieldType($this->dimension1);\r\n\t\t$this->dimension1_type = $ftype['type'];\t\r\n\t\tif ($this->dimension2)\r\n\t\t{\r\n\t\t\t$ftype = $this->mainObject->getFieldType($this->dimension2);\r\n\t\t\t$this->dimension2_type = $ftype['type'];\t\r\n\t\t}\r\n\r\n\t\t$tbl = $this->mainObject->object_table;\r\n\r\n\t\t$query .= \"select \";\r\n\r\n\t\t$strDimCols = \"\";\r\n\t\tif ($this->dimension1)\r\n\t\t{\r\n\t\t\t$ftype = $this->mainObject->getFieldType($this->dimension1);\r\n\t\t\tswitch ($ftype['type'])\r\n\t\t\t{\r\n\t\t\tcase 'date':\r\n\t\t\tcase 'timestamp':\r\n\t\t\t\tswitch ($this->dimension1_group)\r\n\t\t\t\t{\r\n\t\t\t\tcase 'month':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'YYYYMM Mon') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'quarter':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'YYYY Q') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'year':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'YYYY') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'day':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'MM/DD/YYYY') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'hour':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'HH24') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'minute':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension1.\", 'MI') as d1_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$strDimCols .= $this->dimension1.\" as d1\";;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($this->dimension2)\r\n\t\t{\r\n\t\t\t$strDimCols .= \", \";\r\n\t\t\t$ftype = $this->mainObject->getFieldType($this->dimension2);\r\n\t\t\tswitch ($ftype['type'])\r\n\t\t\t{\r\n\t\t\tcase 'date':\r\n\t\t\tcase 'timestamp':\r\n\t\t\t\tswitch ($this->dimension2_group)\r\n\t\t\t\t{\r\n\t\t\t\tcase 'month':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'YYYYMM Mon') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'quarter':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'YYYY Q') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'year':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'YYYY') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'day':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'MM/DD/YYYY') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'hour':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'HH24') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'minute':\r\n\t\t\t\t\t$strDimCols .= \"to_char(\".$this->dimension2.\", 'MI') as d2_str\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$strDimCols .= $this->dimension2.\" as d2\";;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$query .= $strDimCols.\" \";\r\n\r\n\t\t// Add measures\r\n\t\t$strMeas = \" \";\r\n\t\tforeach ($this->measures as $field=>$perform)\r\n\t\t{\r\n\t\t\tif ($strMeas) $strMeas .= \", \";\r\n\t\t\t$strMeas .= $perform.\"(\".$field.\") as $field\";\r\n\t\t}\r\n\t\t$query .= $strMeas;\r\n\r\n\t\t// Add table\r\n\t\t$query .= \" from $tbl \";\r\n\r\n\t\t// Add condition\r\n\t\tif ($this->strCondition)\r\n\t\t\t$query .= \" where id is not null and \".$this->strCondition;\r\n\r\n\t\t// Add group by dimensions\r\n\t\t$query .= \" group by \";\r\n\t\t// D1\r\n\t\t$query .= \"d1\";\r\n\t\tif ($this->dimension1_type == \"timestamp\" || $this->dimension1_type == \"date\")\r\n\t\t\t$query .= \"_str\";\r\n\t\t// D2\r\n\t\tif ($this->dimension2)\r\n\t\t{\r\n\t\t\t$query .= \", d2\";\r\n\t\t\tif ($this->dimension2_type == \"timestamp\" || $this->dimension2_type == \"date\")\r\n\t\t\t\t$query .= \"_str\";\r\n\t\t}\r\n\r\n\t\t//echo $query;\r\n\t\t$this->query = $query;\r\n\t\treturn $query;\r\n\t}", "title": "" }, { "docid": "201b9da3f479f6e8e40dea927e589da5", "score": "0.6069925", "text": "public function build(): void\n {\n $query_params = [\n self::PARAMETER_QUERY => $this->queryString,\n ];\n\n if ($this->boost > 1) {\n $query_params[self::PARAMETER_BOOST] = $this->boost;\n }\n\n if (count($this->fields)) {\n $query_params[self::PARAMETER_FIELDS] = $this->fields;\n }\n\n $this->query->must[] = [\n \"query_string\" => $query_params,\n ];\n }", "title": "" }, { "docid": "2fde3dc9f1da93df99738b04ad385fc7", "score": "0.59931517", "text": "public function build() {\n\t\t\tlist($query, $params) = parent::build();\n\n\t\t\t$query = sprintf('DELETE FROM %s %s', $this->getTable(), $query);\n\n\t\t\t// Return the query and it's params!\n\t\t\treturn [$query, $params];\n\t\t}", "title": "" }, { "docid": "fc9859e605b43f0fbf0283f09009fd9d", "score": "0.59512573", "text": "public function build() {\r\n $query = $this->_buildSelect();\r\n\r\n if (count($this->_where)) {\r\n $query .= ' WHERE ' . $this->_buildWhere();\r\n }\r\n\r\n if (count($this->_sort)) {\r\n $query .= ' ORDER BY ' . $this->_buildSort();\r\n }\r\n\r\n return $query;\r\n }", "title": "" }, { "docid": "2257bb0d1bb4939e146274656f714cf0", "score": "0.5941313", "text": "public function build(): object {\n\n $this->searchIds();\n $this->searchStates();\n $this->searchTopicsOrBoards();\n $this->searchAuthors();\n $this->searchArticleTitle();\n $this->searchFullTextRetrieved();\n $this->searchJournal();\n $this->searchPubDate();\n $this->searchCycle();\n $this->searchArticleReviewer();\n $this->searchReviewerResponse();\n $this->searchComments();\n $this->searchTags();\n $this->searchImportDate();\n $this->searchModifiedDate();\n $this->searchOnAgenda();\n $this->searchDecision();\n $this->excludeInternalArticles();\n\n // Add sorting and return the query.\n $this->searchOrder();\n ebms_debug_log((string) $this->query, 3);\n return $this->query;\n }", "title": "" }, { "docid": "583e63cb030b6f626f75c644ee36fa94", "score": "0.59199214", "text": "public function buildTableQueryParts()\n {\n $columns = $this->settings['columns'];\n $from = ' FROM '.$this->settings['from'];\n\n $groupBy = ''; // This may be added in future\n\n $sOrder = $this->buildSorting(); // sorting\n $sWhere = $this->buildGlobalSearch(); // global search\n\n // Clear the clause and statement builders\n $this->whereClauseBuilder->clauses = null;\n $this->whereStmtBuilder->clauses = null;\n $this->whereStmtBuilder->wheres = null;\n\n // Column search\n $colSearch = $this->buildColumnSearch();\n if ($colSearch) {\n $sWhere = (($sWhere) ? '('.$sWhere . ') AND ' : \"\") . $colSearch;\n }\n\n // Build select\n $select = 'SELECT';\n foreach ($columns as $key => $value) {\n $select .= ' '.$value.' AS `'.$key.'`,';\n }\n $select = rtrim($select, ',');\n\n // prepend sWhere with WHERE if set\n if ($sWhere != \"\") {\n $sWhere = \"WHERE \" . $sWhere;\n }\n\n // If using GROUP BY then switch to HAVING\n $having = '';\n if ($groupBy != '') {\n if ($sWhere != \"\") {\n $having = \"HAVING \" . $sWhere;\n }\n $sWhere = ''; // remove sWhere\n }\n\n return array(\n 'select' => $select,\n 'from' => $from,\n 'sWhere' => $sWhere,\n 'groupBy' => $groupBy,\n 'having' => $having,\n 'sOrder' => $sOrder\n );\n }", "title": "" }, { "docid": "b39975d8bd2c2fdc088fc840b0c98787", "score": "0.59040475", "text": "private function build_get_all_query()\n {\n $table = $this->get_instance_table_name();\n return \"SELECT * FROM {$table};\";\n }", "title": "" }, { "docid": "c909905c027869662b7c3c4a28a46599", "score": "0.5900405", "text": "public function MakeQueryParts()\n {\n $className = $this->className;\n $table = $className::Table();\n\n // What a pain to have to do field aliases in the SQL. ugh\n $table = \\Norma\\Norma::PrepareField($table);\n $sql = 'SELECT ' . $table . '.* FROM ' . $table;\n\n /*\n Thinking I can support all I need by identifying the type of where clause\n 4 elements - join\n 3 elements - table, field, scalar\n 2 elements - string clause, parameters\n */\n\n $where_pairs = array();\n foreach ($this->joins as $where) {\n $sz = sizeof($where);\n if ($sz == 4) {\n $sql .= ' LEFT JOIN ' . \\Norma\\Norma::PrepareField($where[0]) . ' ON ('\n . \\Norma\\Norma::PrepareField($where[0], $where[1])\n . '='\n . \\Norma\\Norma::PrepareField($where[2], $where[3])\n . ')';\n } elseif ($sz == 3) {\n $sql .= ' LEFT JOIN ' . \\Norma\\Norma::PrepareField($where[0]);\n // Wish there was a nice way to let dbFacile wrap ticks around Table.Field later so we don't have to worry about it\n $where_pairs[] = $where[0] . '.' . $where[1] . '=';\n $where_pairs[] = $where[2];\n }\n }\n // need to add where IN support to dbFacile\n\n // Where hash too\n foreach ($this->whereHash as $key => $value) {\n if (is_array($value)) {\n $where_pairs[] = $key . ' IN ';\n $where_pairs[] = $value;\n } else {\n $where_pairs[] = $key . '=';\n $where_pairs[] = $value;\n }\n }\n\n $parts = array();\n if ($where_pairs) {\n $sql .= ' WHERE ';\n while ($where_pairs) {\n $parts[] = $sql . array_shift($where_pairs);\n $parts[] = array_shift($where_pairs); // shift off the value that will be quoted+escaped\n $sql = ' AND ';\n }\n $sql = '';\n }\n\n if ($this->_orderBy) $sql .= ' ORDER BY ' . implode(',', $this->_orderBy);\n if ($this->_limit) $sql .= ' LIMIT ' . $this->_limit;\n if ($sql) {\n $parts[] = $sql;\n }\n\n return $parts;\n }", "title": "" }, { "docid": "f29c658f969f7fd4fe8404910c3f9266", "score": "0.58688116", "text": "private function build_query_by_properties()\n {\n $l_sql = '';\n\n foreach ($this->m_view_properties AS $l_category_type_id => $l_categories)\n {\n foreach ($l_categories AS $l_category_id => $l_properties)\n {\n if (isset($l_properties['table']))\n {\n $l_table = $l_properties['table'];\n $l_obj_field = $l_properties['obj_id'];\n\n $l_sql .= 'LEFT JOIN ' . $l_table . ' ON ' . $l_obj_field . ' = main.isys_obj__id ';\n\n if (isset($l_properties['join']))\n {\n $l_sql .= $l_properties['join']['join_type'] . ' JOIN ' . $l_properties['join']['table'] . ' AS ' . $l_properties['join']['alias'] . ' ON ';\n $l_sql .= $l_properties['join']['join_field'] . ' = ' . $l_properties['join']['alias'] . '.' . $l_properties['join']['field'] . ' ';\n } // if\n\n foreach ($l_properties['properties'] AS $l_property_key => $l_property_info)\n {\n $this->m_headers[$l_property_key] = $l_property_info;\n } // foreach\n\n if (isset($l_properties['helper']))\n {\n foreach ($l_properties['helper'] AS $l_field => $l_helper)\n {\n $this->m_helpers[$l_field] = $l_helper;\n } // foreach\n } // if\n }\n else\n {\n // Dynamic property.\n foreach ($l_properties['properties'] AS $l_property_key => $l_property_info)\n {\n $this->m_dynamic_headers[$l_property_key] = $l_property_info;\n } // foreach\n\n if (isset($l_properties['helper']))\n {\n foreach ($l_properties['helper'] AS $l_field => $l_helper)\n {\n $this->m_helpers[$l_field] = $l_helper;\n } // foreach\n } // if\n } // if\n } // foreach\n } // foreach\n\n $l_selection = '*';\n\n if (count($this->m_headers) > 0)\n {\n $l_selection = '';\n foreach ($this->m_headers AS $l_field_alias => $l_field)\n {\n $l_selection .= $l_field . ' AS ' . $l_field_alias . ',';\n } // foreach\n\n $l_selection = rtrim($l_selection, ',');\n } // if\n\n $this->m_headers = array_merge_recursive($this->m_headers, $this->m_dynamic_headers);\n\n $l_sql_main = 'SELECT ' . $l_selection . ', main.isys_obj__id AS __objid__ FROM isys_obj AS main ' . 'INNER JOIN isys_obj_type ON main.isys_obj__isys_obj_type__id = isys_obj_type__id ' . $l_sql;\n\n $this->m_sql = $l_sql_main;\n }", "title": "" }, { "docid": "d1a8c2128c7c481813696ecf99b067ad", "score": "0.5842261", "text": "private function build_get_query()\n {\n $table = $this->get_instance_table_name();\n return \"SELECT * FROM {$table} WHERE {$table}.id = ?;\";\n }", "title": "" }, { "docid": "696b5a29cdb644a10fa62e75cc43bb5d", "score": "0.58145195", "text": "function build_query() {\n // default: report lookup\n $query = $this->query_specifications($this->search_input, $this->sort_by, $this->functional_area, $this->access_restrictions);\n\n if (0 == strcmp($this->data_type, 'dashboardsReports')) {\n $query = $this->query_specifications($this->search_input, $this->sort_by, $this->functional_area, $this->access_restrictions);\n }\n else if (0 == strcmp($this->data_type, 'dataDefinitions')) {\n $query = $this->query_definitions($this->search_input, $this->sort_by, $this->functional_area);\n }\n\n return $query;\n }", "title": "" }, { "docid": "ea03d0d0d6a6b3d07e8a500800b7150e", "score": "0.5810472", "text": "private function constructSelectSQL () {\n $sql = \"\"; \n \n if (isset ($this->data[\"columns\"])) {\n $select_string = \"SELECT \";\n foreach ($this->data[\"columns\"] as $column) {\n if($column == \"*\") {\n $select_string .= $column . \", \";\n } else {\n if (preg_match (\"/count/i\", $column)) {\n $count = explode (\":\", $column);\n if (count ($count) == 2) {\n if ($count[1] == \"*\") {\n $select_string .= \"COUNT(*), \";\n } else {\n $select_string .= \"COUNT(`\" . $count[1] . \"`), \";\n }\n } else {\n if ($count[1] == \"*\") {\n $select_string .= \"COUNT(*) AS `\" . $count[2] . \"`, \";\n } else {\n $select_string .= \"COUNT(`\" . $count[1] . \"`) AS `\" . $count[2] . \"`, \";\n }\n }\n } else {\n $select_string .= \"`\" . $column . \"`, \";\n }\n }\n }\n $sql .= rtrim ($select_string, \", \") . \" \";\n } else {\n return array (\"success\" => false, \"message\" => \"No SELECT object found.\");\n }\n \n if (isset ($this->data[\"from\"])) {\n $from_string = \"FROM \";\n foreach ($this->data[\"from\"] as $table) {\n $from_string .= \"`\" . $table . \"`, \";\n }\n $sql .= rtrim ($from_string, \", \") . \" \";\n } else {\n return array (\"success\" => false, \"message\" => \"No FROM object found.\");\n }\n \n if (isset ($this->data[\"where\"])) {\n $where_string = \"WHERE \";\n $where_string .= $this->constructWhereStatement ();\n $sql .= $where_string . \" \";\n }\n \n if (isset ($this->data[\"orderby\"])) {\n $order_string = \"ORDER BY \";\n $keys = array_keys($this->data[\"orderby\"]);\n foreach ($keys as $key) {\n $order_string .= \"`\" . $key . \"` \" . $this->data[\"orderby\"][$key] . \", \";\n }\n $sql .= rtrim ($order_string, \", \") . \" \";\n }\n\n return rtrim ($sql, \" \") . \";\";\n }", "title": "" }, { "docid": "d9f4c5a7e82a7578d3611f58f89ea1a1", "score": "0.5808456", "text": "function _buildQuery()\n\t{\n\n\t\tif (isset($this->_active['predefined']))\n\t\tswitch($this->_active['predefined'])\n\t\t{\n\t\t\tcase 'default': return $this->_buildQuery_default(); break;\n\n\t\t}\n\n\n\n\t\t$query = ' SELECT a.*'\n\n\t\t\t. $this->_buildQuerySelect()\n\n\t\t\t. ' FROM `#__zefaniabible_zefaniacomment` AS a '\n\n\t\t\t. $this->_buildQueryJoin() . ' '\n\n\t\t\t. $this->_buildQueryWhere()\n\n\n\t\t\t. $this->_buildQueryOrderBy()\n\t\t\t. $this->_buildQueryExtra()\n\t\t;\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "0f4afb81ff68f5f7490ef1de6b5a86bb", "score": "0.58031064", "text": "public function build() {\n $tmp = $this->i_build();\n //echo $tmp;\n return $this->query($tmp);\n }", "title": "" }, { "docid": "ddb71e41e2b51a105382540335e9e48f", "score": "0.58008164", "text": "public function getQuery()\n {\n if (false !== $this->noConstructorNoFun())\n {\n $this->sqlToArray();\n \n $this->parsedQuery['join'] = array();\n \n if ( !empty($_POST['joins']))\n {\n foreach ($_POST['joins'] as $k => $v)\n {\n if ('undefined' != $v)\n {\n $this->parsedQuery['join'][$k] = $v;\n }\n else\n {\n $this->idAndAlias = $_POST['idAndAlias'];\n }\n }\n }\n $this->patchQueryArray();\n \n $return = $this->reparsedSelect . $this->reparsedFrom . $this->reparsedJoin . $this->reparsedWhere;\n }\n else\n {\n $return = \"Error Notifier\";\n }\n\n print_r($return);\n }", "title": "" }, { "docid": "9697e9a5183a28c73d2419ae1c98720b", "score": "0.5783925", "text": "public function buildQuery($params);", "title": "" }, { "docid": "89780ef2442de8315e201ab75e4420c2", "score": "0.5777095", "text": "private function buildQuery()\n {\n // TODO: These tag codes are guessed. this bit of documentation is behind a login which we don't have access to.\n $query = null;\n if (!empty($this->opts['isbn'])) {\n $query = $this->buildTagQuery('i', $this->opts['isbn']);\n } elseif (!empty($this->opts['lcn'])) {\n $query = $this->buildTagQuery('l', $this->opts['lcn']);\n }\n return $query;\n }", "title": "" }, { "docid": "fc144054efc2d807754dad9bc59488e8", "score": "0.5771551", "text": "function buildQuery($task)\r\n\t\t{\r\n\t\t\t$sql = \"\";\r\n\t\t\tif ($task == 'insert')\r\n\t\t\t{\r\n\t\t\t\t\t$keys = \"\";\r\n\t\t\t\t\t$values = \"\";\r\n\t\t\t\t\t$classVars = get_class_vars(get_class($this)); // getting the (dynamic) variables we created in our class pass our className of object\r\n\t\t\t\t\t// get the variables of whatever class I am\r\n\t\t\t\t\t$sql .= \"Insert into {$this->table}\"; // whatever the table name is we're going to be inserting our record into it\r\n\t\t\t\t\tforeach ($classVars as $key=>$value) //Create an associative array of all the variables that we have in the class\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($key == \"table\")\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcontinue; //skip it cause we don't want to be storing the table name inside of the table\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//it will be a comma separated list\r\n\t\t\t\t\t\t$keys.= \"{$key},\";\r\n\t\t\t\t\t\t$values .= \"'{$this->$key}',\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Strip off commas .substr()\r\n\t\t\t\t\t$sql .= \"(\".substr($keys,0,-1).\") Values(\".substr($values,0,-1).\")\";\r\n\t\t\t\t\t//Insert into table (attributes/fields) Values ('','','');\r\n\t\t\t}\r\n\t\t\telseif($task == 'select')\r\n\t\t\t{\r\n\r\n\t\t\t\t$sql = \"select * from {$this->table} where idUser = '{$this->idUser}'\";\r\n\t\t\t}\r\n\t\t\telseif ($task == 'update')\r\n\t\t\t\t{ // Update the database entry and overwrite what's in that record\r\n\t\t\t\t\t$classVars = get_class_vars(get_class($this));\r\n\t\t\t\t\t$sql .= \"UPDATE {$this->table} SET \";\r\n\t\t\t\t\tforeach($classVars as $key=>$value)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif($key == \"idUser\"|| $key == \"table\") // ignore primary key and the name of leh table\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcontinue; // skip over table name and primary key\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$sql .= \"{$key} = '{$this->$key}', \";\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// strip off comma and space .substr() fro/ those values\r\n\t\t\t\t\t$sql = substr($sql,0,-2).\" WHERE idUser = '{$this->idUser}'\"; // update only the record located at the primary key loaded into this object\r\n\r\n\t\t\t\t} //UPDATE FUNCTION\r\n\r\n\t\t\treturn $sql;\r\n\r\n\t\t}", "title": "" }, { "docid": "c1ea2d321ade03b221cc04c90e412b13", "score": "0.57511467", "text": "function make_query($execute=TRUE, $log=TRUE)\n {\n //Tables: Can never be empty.\n if($this->tables == '') die (\"Data Abstraction Error: Please indicate what table(s) you wish to query.\");\n\n //Query type: SELECT, INSERT, UPDATE, or DELETE\n //For robustness, if query type is invalid, it defaults to \"SELECT\" instead of just dying.\n //Also convert to uppercase to make the query type passed case-insensitive.\n $this->query_type = strtoupper($this->query_type);\n if($this->query_type != \"SELECT\" && $this->query_type != \"INSERT\" && $this->query_type != \"UPDATE\" && $this->query_type != \"DELETE\")\n $this->query_type = \"SELECT\";\n\n //Fields: Can only be empty for SELECT or DELETE, must have a value for INSERT queries.\n //If empty in a SELECT statement, default to '*'.\n if( $this->selected_fields==\"\")\n {\n if($this->query_type==\"SELECT\") $this->selected_fields='*';\n elseif($this->query_type==\"INSERT\") \n die('Data Abstraction Error: Please indicate the field(s) to work with in an INSERT query.');\n }\n\n //Where clause: Can always be empty, but we generally don't want that in an UPDATE or DELETE query. \n if($this->where_clause==\"\" && ($this->query_type==\"UPDATE\" || $this->query_type==\"DELETE\")) \n die('Data Abstraction Error: Please set a WHERE clause for an UPDATE or DELETE query.');\n\n //Values: Only for INSERT queries, and must not be empty;\n if($this->query_type=='INSERT' && $this->values=='')\n die('Data Abstraction Error: Please set the values to be inserted for an INSERT query.');\n\n //Update clause: Only used in UPDATE queries and must not be empty.\n if($this->query_type=='UPDATE' && $this->update_clause=='')\n die('Data Abstraction Error: Please set the update clause in an UPDATE query.');\n\n //Join clause: only for SELECT statements, can be empty;\n //Order clause: only for SELECT statements, can be empty;\n //Limit clause: only for SELECT statements, can be empty;\n //Group By clause: only for SELECT statements, can be empty;\n //Having clause: only for SELECT statements, can be empty;\n\n $this->query = $this->query_type . ' ';\n switch($this->query_type)\n {\n case \"SELECT\":\t$this->query .= $this->selected_fields . ' FROM ' . $this->tables;\n if($this->where_clause != '') $this->query .= ' WHERE ' . $this->where_clause;\n \tif($this->group_by != '') $this->query .= ' GROUP BY ' . $this->group_by . ' ';\n \tif($this->having != '') $this->query .= ' HAVING ' . $this->having . ' ';\n \tif($this->order_clause != '') $this->query .= ' ORDER BY ' . $this->order_clause;\n \tif($this->limit_clause != '') $this->query .= ' LIMIT ' . $this->limit_clause;\n break;\n \n case \"INSERT\":\t$this->query .= 'INTO ' . $this->tables . '(' . $this->selected_fields . ') VALUES(' . $this->values . ')';\n break;\n\n case \"UPDATE\":\t$this->query .= $this->tables . ' SET ' . $this->update_clause . ' WHERE ' . $this->where_clause;\n break;\n\n case \"DELETE\":\t$this->query .= 'FROM ' . $this->tables;\n if($this->where_clause != '') $this->query .= ' WHERE ' . $this->where_clause;\n break;\n }\n\n if($execute)\n {\n $result = $this->execute_query();\n }\n\n if($log && $this->query_type != 'SELECT')\n {\n log_action('Query executed: <br> ' . $this->query, $_SERVER[PHP_SELF]);\n }\n\n return $result;\n }", "title": "" }, { "docid": "73eabb5013116e9f82fae0d078d2fb4b", "score": "0.57367563", "text": "public function assemble(array $info, array $query = null){ }", "title": "" }, { "docid": "1f3eb7dc5753b16b5f4f29e027d88564", "score": "0.57017213", "text": "abstract protected function defineQuery();", "title": "" }, { "docid": "c9ac3a54e016d100e6284f0301f0da60", "score": "0.5696786", "text": "protected function _buildSql()\n {\n if ($this->_db === null || is_string($this->_db)) {\n $this->_db = $this->_di->getShared($this->_db ?: 'db');\n }\n\n if ($this->_union) {\n return $this->_getUnionSql();\n }\n\n if (!$this->_tables) {\n /** @noinspection ExceptionsAnnotatingAndHandlingInspection */\n throw new RuntimeException('at least one model is required to build the query');\n }\n\n $params = [];\n if ($this->_distinct) {\n $params['distinct'] = true;\n }\n\n if ($this->_fields !== null) {\n $fields = $this->_fields;\n } else {\n if (count($this->_tables) === 1) {\n $fields = '*';\n } else {\n $fields = '';\n $selectedFields = [];\n foreach ($this->_tables as $alias => $table) {\n $selectedFields[] = '[' . (is_int($alias) ? $table : $alias) . '].*';\n }\n $fields .= implode(', ', $selectedFields);\n }\n }\n $params['fields'] = $fields;\n\n $selectedTables = [];\n\n foreach ($this->_tables as $alias => $table) {\n if ($table instanceof $this) {\n if (is_int($alias)) {\n /** @noinspection ExceptionsAnnotatingAndHandlingInspection */\n throw new NotSupportedException('if using SubQuery, you must assign an alias for it');\n }\n\n $selectedTables[] = '(' . $table->getSql() . ') AS [' . $alias . ']';\n /** @noinspection SlowArrayOperationsInLoopInspection */\n $this->_bind = array_merge($this->_bind, $table->getBind());\n } else {\n if (is_string($alias)) {\n $selectedTables[] = '[' . $table . '] AS [' . $alias . ']';\n } else {\n $selectedTables[] = '[' . $table . ']';\n }\n }\n }\n\n $params['from'] = implode(', ', $selectedTables);\n\n $joinSQL = '';\n /** @noinspection ForeachSourceInspection */\n foreach ($this->_joins as $join) {\n list($joinTable, $joinCondition, $joinAlias, $joinType) = $join;\n\n if ($joinAlias !== null) {\n $this->_tables[$joinAlias] = $joinTable;\n } else {\n $this->_tables[] = $joinTable;\n }\n\n if ($joinType !== null) {\n $joinSQL .= ' ' . $joinType;\n }\n\n if ($joinTable instanceof $this) {\n $joinSQL .= ' JOIN (' . $joinTable->getSql() . ')';\n /** @noinspection SlowArrayOperationsInLoopInspection */\n $this->_bind = array_merge($this->_bind, $joinTable->getBind());\n if ($joinAlias === null) {\n throw new NotSupportedException('if using SubQuery, you must assign an alias for it');\n }\n } else {\n $joinSQL .= ' JOIN [' . $joinTable . ']';\n }\n\n if ($joinAlias !== null) {\n $joinSQL .= ' AS [' . $joinAlias . ']';\n }\n\n if ($joinCondition) {\n $joinSQL .= ' ON ' . $joinCondition;\n }\n }\n $params['join'] = $joinSQL;\n\n $wheres = [];\n foreach ($this->_conditions as $v) {\n $wheres[] = stripos($v, ' or ') ? \"($v)\" : $v;\n }\n\n if ($wheres) {\n $params['where'] = implode(' AND ', $wheres);\n }\n\n if ($this->_group !== null) {\n $params['group'] = $this->_group;\n }\n\n if ($this->_having !== null) {\n $params['having'] = $this->_having;\n }\n\n if ($this->_order !== null) {\n $params['order'] = $this->_order;\n }\n\n if ($this->_limit !== null) {\n $params['limit'] = $this->_limit;\n }\n\n if ($this->_offset !== null) {\n $params['offset'] = $this->_offset;\n }\n\n if ($this->_forUpdate) {\n $params['forUpdate'] = $this->_forUpdate;\n }\n\n $sql = $this->_db->buildSql($params);\n //compatible with other SQL syntax\n $replaces = [];\n foreach ($this->_bind as $key => $_) {\n $replaces[':' . $key . ':'] = ':' . $key;\n }\n\n $sql = strtr($sql, $replaces);\n\n foreach ($this->_tables as $table) {\n if (!$table instanceof $this) {\n $source = $table;\n if (strpos($source, '.')) {\n $source = '[' . implode('].[', explode('.', $source)) . ']';\n } else {\n $source = '[' . $source . ']';\n }\n $sql = str_replace('[' . $table . ']', $source, $sql);\n }\n }\n\n return $sql;\n }", "title": "" }, { "docid": "b5ea627b18d960a9e20a93a3c82fe7e2", "score": "0.5685424", "text": "public function buildQuery(): self\r\n {\r\n if (!empty($this->getSelect()) || !empty($this->getCount())) {\r\n $query = $this->buildSelect();\r\n } else if (!empty($this->getInsert())) {\r\n $query = $this->buildInsert();\r\n } else if (!empty($this->getUpdate())) {\r\n $query = $this->buildUpdate();\r\n } else if (!empty($this->getDelete())) {\r\n $query = $this->buildDelete();\r\n } else {\r\n $date = new \\DateTime();\r\n $log['date'] = $date->format('Y-m-d H:i:s');\r\n $log[\"requestType\"] = 'No request type found';\r\n error_log(json_encode($log) . \"\\n\", 3, $GLOBALS['MBO']['log']['error.log']);\r\n return $this;\r\n }\r\n $this->setQuery($query);\r\n return $this;\r\n }", "title": "" }, { "docid": "6a65c125707be1c81d7fa75e485e579b", "score": "0.5685215", "text": "private function _buildMetaData()\n {\n $metadata = MQF_Registry::instance()->getDatabaseById($this->dbid)->getMetaDataForTable($this->table);\n\n $this->primarykeys = array();\n $this->metadata = array();\n\n foreach ($metadata as $m) {\n $m->name = trim(strtoupper($m->name));\n\n $this->metadata[$m->name]['field'] = $m->name;\n $this->metadata[$m->name]['datatype'] = $m->type;\n $this->metadata[$m->name]['size'] = $m->max_length;\n\n if (isset($m->has_default) and $m->has_default == 1) {\n $this->metadata[$m->name]['default'] = $m->default_value;\n } else {\n $this->metadata[$m->name]['default'] = null;\n }\n\n if (isset($m->primarykey) and $m->primarykey == 1) {\n $this->primarykeys[$m->name] = $m->name;\n }\n }\n }", "title": "" }, { "docid": "85ea9e7c6dd03410e561e1af9be395c9", "score": "0.56800747", "text": "protected function build()\n {\n $this->query\n ->select($this->selects)\n ->leftJoin(\n $this->dueDatesTable,\n $this->ticketsTable . '.id',\n $this->dueDatesTable . '.ticket_id'\n );\n }", "title": "" }, { "docid": "c72bebc8692bacaae782fc46cd359697", "score": "0.567399", "text": "public function PreparePerformSQLquery() {\n // Prepare the query based on incoming arguments\n $sqlOrig = '\n\t\tSELECT \n\t\tM.*,\n\t\tGROUP_CONCAT(G.name) AS genre\n\t\tFROM Movie AS M\n\t\tLEFT OUTER JOIN Movie2Genre AS M2G\n\t\tON M.id = M2G.idMovie\n\t\tINNER JOIN Genre AS G\n\t\tON M2G.idGenre = G.id\n\t\t';\n $where = null;\n $groupby = ' GROUP BY M.id';\n $limit = null;\n $sort = \" ORDER BY $this->orderby $this->order\";\n $params = array();\n\n // Select by title\n if ($this->title) {\n $where .= ' AND title LIKE ?';\n $params[] = $this->title;\n }\n\n // Select by year\n if ($this->year1) {\n $where .= ' AND year >= ?';\n $params[] = $this->year1;\n }\n if ($this->year2) {\n $where .= ' AND year <= ?';\n $params[] = $this->year2;\n }\n\n // Select by genre\n if ($this->genre) {\n $where .= ' AND G.name = ?';\n $params[] = $this->genre;\n }\n\n // Pagination\n if ($this->hits && $this->page) {\n $limit = \" LIMIT $this->hits OFFSET \" . (($this->page - 1) * $this->hits);\n }\n\n // Complete the sql statement\n $where = $where ? \" WHERE 1 {$where}\" : null;\n $sql = $sqlOrig . $where . $groupby . $sort . $limit;\n $res['qryres'] = $this->db->ExecuteSelectQueryAndFetchAll($sql, $params);\n\n\n // Get max pages for current query, for navigation\n $sql = \"\n\t\tSELECT\n\t\tCOUNT(id) AS rows\n\t\tFROM \n\t\t(\n\t\t\t$sqlOrig $where $groupby\n\t\t\t) AS Movie\n\t\t\";\n $resPage = $this->db->ExecuteSelectQueryAndFetchAll($sql, $params);\n $res['rows'] = $resPage[0]->rows;\n $res['max'] = ceil($res['rows'] / $this->hits);\n\n return $res;\n }", "title": "" }, { "docid": "023dcb75b9863854f6ab35f97bfe3b8c", "score": "0.5654802", "text": "public function test__BuildQueryInfo() {\n\t\t// Form query info\n\t\t$queryInfo = $this->tester->invokeMethod( $this->_behavior, \"buildQueryInfo\", array( array( \"route\" => \"foo\" ) ) );\n\n\t\t// Verify calling buildQueryInfo sets up routes\n\t\tverify( $queryInfo )->equals( array(\n\t\t\t\"routeType\" => \"\",\n\t\t\t\"route\" => \"foo/bar\",\n\t\t\t\"params\" => array(),\n\t\t\t\"headers\" => array(),\n\t\t\t\"method\" => \"GET\",\n\t\t\t\"data\" => null,\n\t\t) );\n\t}", "title": "" }, { "docid": "2ec03b4b0e1deee66067d9e7c232d684", "score": "0.5649658", "text": "private function _buildSqlQuery()\n {\n $sql_query = 'SELECT ';\n\n // If only distinct values are needed\n $is_distinct = (isset($_POST['distinct'])) ? 'true' : 'false';\n if ($is_distinct == 'true') {\n $sql_query .= 'DISTINCT ';\n }\n\n // if all column names were selected to display, we do a 'SELECT *'\n // (more efficient and this helps prevent a problem in IE\n // if one of the rows is edited and we come back to the Select results)\n if (isset($_POST['zoom_submit']) || ! empty($_POST['displayAllColumns'])) {\n $sql_query .= '* ';\n } else {\n $sql_query .= implode(\n ', ',\n Util::backquote($_POST['columnsToDisplay'])\n );\n } // end if\n\n $sql_query .= ' FROM '\n . Util::backquote($_POST['table']);\n $whereClause = $this->_generateWhereClause();\n $sql_query .= $whereClause;\n\n // if the search results are to be ordered\n if (isset($_POST['orderByColumn']) && $_POST['orderByColumn'] != '--nil--') {\n $sql_query .= ' ORDER BY '\n . Util::backquote($_POST['orderByColumn'])\n . ' ' . $_POST['order'];\n } // end if\n return $sql_query;\n }", "title": "" }, { "docid": "d8a119fd4a9048064a895d2bf4520ca9", "score": "0.5618213", "text": "private function _buildInfo()\n {\n // Sort options\n $sort = array();\n foreach ($this->response->AvailableSearchCriteria->AvailableSorts->AvailableSort as $element) {\n $sort[] = array(\n 'Id' => (string) $element->Id,\n 'Label' => (string) $element->Label,\n 'Action' => (string) $element->AddAction\n );\n }\n\n // Search fields\n $search = array();\n foreach ($this->response->AvailableSearchCriteria->AvailableSearchFields->AvailableSearchField as $element) {\n $search[] = array(\n 'Label' => (string) $element->Label,\n 'Code' => (string) $element->FieldCode\n );\n }\n\n // Expanders\n $expanders = array();\n foreach ($this->response->AvailableSearchCriteria->AvailableExpanders->AvailableExpander as $element) {\n $expanders[] = array(\n 'Id' => (string) $element->Id,\n 'Label' => (string) $element->Label,\n 'Action' => (string) $element->AddAction\n );\n }\n\n // Limiters\n $limiters = array();\n foreach ($this->response->AvailableSearchCriteria->AvailableLimiters->AvailableLimiter as $element) {\n $values = array();\n if ($element->LimiterValues) {\n $items = $element->LimiterValues->LimiterValue; \n foreach ($items as $item) {\n $values[] = array(\n 'Value' => (string) $item->Value,\n 'Action' => (string) $item->AddAction\n );\n }\n }\n $limiters[] = array(\n 'Id' => (string) $element->Id,\n 'Label' => (string) $element->Label,\n 'Action' => (string) $element->AddAction,\n 'Type' => (string) $element->Type,\n 'values' => $values\n );\n }\n\n $result = array(\n 'sort' => $sort,\n 'search' => $search,\n 'expanders' => $expanders,\n 'limiters' => $limiters\n );\n\n return $result;\n }", "title": "" }, { "docid": "2150f5fe9e6c81de7165f63cf11d7978", "score": "0.5612065", "text": "public function build(): string\n {\n if (\\count($this->parameters) === 0) {\n return '';\n }\n\n $queryString = '';\n foreach ($this->parameters as $name => $value) {\n $queryString .= $this->buildQuery($name, $value);\n }\n\n return \\substr($queryString, 1);\n }", "title": "" }, { "docid": "cf7cdd59f837ab0d8abd711ed703b752", "score": "0.56114566", "text": "protected function _buildResultQuery()\n\t{\n\t\t//$query = new J2StoreQuery();\n\t\t$query = $this->_db->getQuery(true);\n\t\t$query->select( $this->getState( 'select', 'COUNT(*)' ) );\n\n\t\t$this->_buildQueryFrom($query);\n\t\t$this->_buildQueryJoins($query);\n\t\t$this->_buildQueryWhere($query);\n\t\t$this->_buildQueryGroup($query);\n\t\t$this->_buildQueryHaving($query);\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "79faa298d4e5df204c3ff058c62e3687", "score": "0.56095237", "text": "public function makeQuery() {\n\t\t$this->query = $this->modx->newQuery($this->classKey);\n\t\t$this->writeLog('xPDO query object created');\n\t}", "title": "" }, { "docid": "add925ab85f131e1961f7a6edd40d741", "score": "0.55962414", "text": "abstract protected function query();", "title": "" }, { "docid": "add925ab85f131e1961f7a6edd40d741", "score": "0.55962414", "text": "abstract protected function query();", "title": "" }, { "docid": "a210a2887f23a28cb2e336e5b9f6490d", "score": "0.55786896", "text": "protected function buildQuery()\n {\n list($finder, $options) = $this->_extractFinder();\n $query = $this->_table()->find($finder, $options);\n $limit = $this->_controller()->request->getQuery('limit', 100);\n $query->order(['visits' => 'DESC']);\n $query->limit($limit);\n return $query;\n }", "title": "" }, { "docid": "57d2a9676e06f497e03690dae168cbbc", "score": "0.55756277", "text": "protected function _buildQuery()\r\n {\r\n \t\r\n $db = JFactory::getDBO();\r\n $query = $db->getQuery(TRUE);\r\n\r\n $query->select('umem.ddc_user_membership_id');\r\n $query->select('umem.title');\r\n $query->select('umem.alias');\r\n $query->select('DATE_FORMAT(umem.expiry_date, \"%d/%m/%Y\") as ed');\r\n $query->select('umem.expiry_date');\r\n $query->select('umem.membership_number');\r\n $query->select('umem.user_id');\r\n $query->select('umem.state');\r\n $query->select('umem.created');\r\n $query->select('umem.modified');\r\n $query->from('#__ddc_user_membership as umem');\r\n $query->order('umem.expiry_date ASC');\r\n\r\n return $query;\r\n \r\n }", "title": "" }, { "docid": "eb5221bd4c829750df859e7717c59913", "score": "0.5565192", "text": "public function build()\n\t{\n\t\tif (isset($this->properties)) {\n\t\t\t$sql_columns = '';\n\t\t\t$first_property = true;\n\t\t\tforeach ($this->properties as $key_path => $path) {\n\t\t\t\tif ($path instanceof Func\\Column) {\n\t\t\t\t\t$sql_columns .= $this->buildDaoSelectFunction($key_path, $path, $first_property);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$join = $this->joins->add($path);\n\t\t\t\t\t$sql_columns .= ($join && ($join->type !== Join::LINK))\n\t\t\t\t\t\t? $this->buildObjectColumns($path, $join, $first_property)\n\t\t\t\t\t\t: $this->buildNextColumn($path, $join, $first_property);\n\t\t\t\t}\n\t\t\t\t$sql_columns .= $this->append(is_numeric($key_path) ? $path : $key_path);\n\t\t\t}\n\t\t}\n\t\telseif ($this->joins->getJoins()) {\n\t\t\t$class_name = $this->joins->getStartingClassName();\n\t\t\t/** @var $properties Reflection_Property[] */\n\t\t\t$properties = [];\n\t\t\t$column_names = [];\n\t\t\tforeach (\n\t\t\t\t(new Reflection_Class($class_name))->getProperties([T_EXTENDS, T_USE]) as $property\n\t\t\t) {\n\t\t\t\t$storage = $property->getAnnotation('storage')->value;\n\t\t\t\t$type = $property->getType();\n\t\t\t\tif (!$property->isStatic() && !($type->isClass() && $type->isMultiple())) {\n\t\t\t\t\t$column_names[$property->name] = $storage;\n\t\t\t\t\t$properties[$property->name] = $property;\n\t\t\t\t\tif ($storage !== $property->name) {\n\t\t\t\t\t\t$has_storage = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sql_columns = '';\n\t\t\tforeach ($this->joins->getLinkedJoins() as $join) {\n\t\t\t\tif (isset($has_storage)) {\n\t\t\t\t\tforeach (\n\t\t\t\t\t\t(new Reflection_Class($join->foreign_class))->getProperties([T_EXTENDS, T_USE])\n\t\t\t\t\t\tas $property\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!$property->isStatic()\n\t\t\t\t\t\t\t&& isset($column_names[$property->name])\n\t\t\t\t\t\t\t&& !isset($already[$property->name])\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tif (!$sql_columns) {\n\t\t\t\t\t\t\t\t$sql_columns .= $join->foreign_alias . '.id, ';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$column_name = $column_names[$property->name];\n\t\t\t\t\t\t\t$id = $property->getType()->isClass() ? 'id_' : '';\n\t\t\t\t\t\t\t$already[$property->name] = true;\n\t\t\t\t\t\t\t$sql_columns .= $join->foreign_alias . DOT . BQ . $id . $column_name . BQ;\n\t\t\t\t\t\t\tif (($column_name !== $property->name) && $this->resolve_aliases) {\n\t\t\t\t\t\t\t\t$sql_columns .= ' AS ' . BQ . $id . $property->name . BQ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_columns .= ', ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$sql_columns .= $join->foreign_alias . '.*, ';\n\t\t\t\t}\n\t\t\t}\n\t\t\t// the main table comes last, as fields with the same name must have the main value (ie 'id')\n\t\t\tif (isset($has_storage)) {\n\t\t\t\tif (!(new Link_Class($this->joins->getStartingClassName()))->getAnnotation('link')->value) {\n\t\t\t\t\t$sql_columns .= 't0.id, ';\n\t\t\t\t}\n\n\t\t\t\tforeach ($column_names as $property_name => $column_name) {\n\t\t\t\t\tif (!isset($already[$property_name])) {\n\t\t\t\t\t\t$already[$property_name] = true;\n\t\t\t\t\t\t$id = $properties[$property_name]->getType()->isClass() ? 'id_' : '';\n\t\t\t\t\t\t$sql_columns .= 't0.' . BQ . $id . $column_name . BQ;\n\t\t\t\t\t\tif (($column_name !== $property_name) && $this->resolve_aliases) {\n\t\t\t\t\t\t\t$sql_columns .= ' AS ' . BQ . $id . $property_name . BQ;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$sql_columns .= ', ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$sql_columns = substr($sql_columns, 0, -2);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$sql_columns .= 't0.*';\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$sql_columns = '*';\n\t\t}\n\t\treturn $sql_columns;\n\t}", "title": "" }, { "docid": "0562a8969837ecd15ac4cc97cb71a1c0", "score": "0.5562269", "text": "public function buildQuery()\n {\n $select = array();\n foreach ($this->columns as $link) {\n $select[] = $link->getName();\n }\n $query = 'SELECT id, '.implode(',',$select).' FROM '\n .$this->table->getSqlName();\n return $query;\n }", "title": "" }, { "docid": "53d6e687e69992cbaf0599fd2ba6e640", "score": "0.55609494", "text": "protected function _buildQuery()\n {\n // Create a new query object\n $query = $this->_db->getQuery(true);\n\n // Select the required fields from the table\n $query->select('a.*')\n ->from(_JOOM_TABLE_IMAGES.' AS a');\n\n // Join over the categories\n $query->select('c.cid AS category, c.name AS category_name')\n ->leftJoin(_JOOM_TABLE_CATEGORIES.' AS c ON c.cid = a.catid');\n\n // Join over the access levels\n $query->select('v.title AS access_level')\n ->leftJoin('#__viewlevels AS v ON v.id = a.access');\n\n // Join over the users\n $query->leftJoin('#__users AS u ON u.id = a.owner');\n\n // Join over the categories again in order to check access levels\n if(!$this->_user->authorise('core.admin'))\n {\n $query->leftJoin(_JOOM_TABLE_CATEGORIES.' AS p ON c.lft BETWEEN p.lft AND p.rgt')\n ->select('c.level')\n ->where('p.access IN ('.implode(',', $this->_user->getAuthorisedViewLevels()).')')\n ->group('a.id')\n ->having('COUNT(p.cid) > c.level')\n\n // Access level check for the image and the category the image is in\n ->where('a.access IN ('.implode(',', $this->_user->getAuthorisedViewLevels()).')')\n ->where('c.access IN ('.implode(',', $this->_user->getAuthorisedViewLevels()).')');\n }\n\n // Filter by access level\n if($access = $this->getState('filter.access'))\n {\n $query->where('a.access = '.(int) $access);\n }\n\n // Filter by owner\n if($owner = $this->getState('filter.owner'))\n {\n $query->where('a.owner = '.(int) $owner);\n }\n\n // Filter by category\n if($category = $this->getState('filter.category'))\n {\n $query->where('a.catid = '.(int) $category);\n }\n\n // Filter by state\n $published = $this->getState('filter.state');\n switch($published)\n {\n case 1:\n // Published\n $query->where('a.published = 1');\n break;\n case 2:\n // Not published\n $query->where('a.published = 0');\n break;\n case 3:\n // Approved\n $query->where('a.approved = 1');\n break;\n case 4:\n // Not approved\n $query->where('a.approved = 0');\n break;\n case 5:\n // Rejected\n $query->where('a.approved = -1');\n break;\n case 6:\n // Featured\n $query->where('a.featured = 1');\n break;\n case 7:\n // Not featured\n $query->where('a.featured = 0');\n break;\n default:\n // No filter by state\n break;\n }\n\n // Filter by type\n $type = $this->getState('filter.type');\n switch($type)\n {\n case 1:\n // User images\n $query->where('a.owner != 0');\n break;\n case 2:\n // Administrator images\n $query->where('a.owner = 0');\n break;\n default:\n // No filter by type\n break;\n }\n\n // Filter by search\n $search = $this->getState('filter.search');\n if(!empty($search))\n {\n if(stripos($search, 'id:') === 0)\n {\n $query->where('a.id = '.(int) substr($search, 3));\n }\n else\n {\n if(stripos($search, 'author:') === 0)\n {\n $search = $this->_db->Quote('%'.$this->_db->escape(substr($search, 7), true).'%');\n $query->where('(u.name LIKE '.$search.' OR u.username LIKE '.$search.')');\n }\n else\n {\n $search = $this->_db->Quote('%'.$this->_db->escape($search, true).'%');\n $query->where('(a.imgtitle LIKE '.$search.' OR a.alias LIKE '.$search.' OR LOWER(a.imgtext) LIKE '.$search.')');\n }\n }\n }\n\n // Add the order clause\n $orderCol = $this->state->get('list.ordering');\n $orderDirn = $this->state->get('list.direction');\n if($orderCol == 'a.ordering' || $orderCol == 'category_name')\n {\n $orderCol = 'category_name '.$orderDirn.', a.ordering';\n }\n $query->order($this->_db->escape($orderCol.' '.$orderDirn));\n\n return $query;\n }", "title": "" }, { "docid": "0a0d14fa95d0e01b140f78bcb66a5a61", "score": "0.55561095", "text": "public function runQuery($query){\n\t\tif(!isset($this->query_count)){\n\t\t\t$this->query_count = 0;\n\t\t}else{\n\t\t\t$this->query_count++;\n\t\t}\n\t\t\n\t\t//for debug\n\t\t$this->query_log[$this->query_count]['query'] = $query;\n\t\t\n\t\t$this->q_info = '';\n\t\t\n\t\t//query\n\t\tif(isset($query) && !empty($query)){\n\t\t\t$this->result = mysqli_query($this->dbc, $query);\n\t\t\t$this->q_info['result'] = $this->result;\n\t\t}\n\t\t\n\t\t//num rows\n\t\t$this->q_info['num_rows'] = isset($this->result->num_rows) ? $this->result->num_rows : '';\n\t\t//affected rows\n\t\t$this->q_info['affected_rows'] = isset($this->dbc->affected_rows) ? $this->dbc->affected_rows : '';\n\t\t//insert id\n\t\t$this->q_info['insert_id'] = isset($this->dbc->insert_id) ? $this->dbc->insert_id : '';\n\t\t//errors\n\t\t$this->q_info['errors'] = isset($this->dbc->error) ? $this->dbc->error : '';\n\t\t\n\t\t//log result in object\n\t\t$this->query_log[$this->query_count]['query_results'] = $this->q_info;\n\t\t\n\t\treturn $this->q_info;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6f8f61bdd6300e4dd10e272c55f4314a", "score": "0.55463636", "text": "function queryData($paramDict)\n{\n\tglobal $dbconn;\n\n\t$q_select =\t\"SELECT DISTINCT ON (event_occurrence.start, event_occurrence.end) \";\n\t$q_select .=\t\"event_type.type_id, event_type.measurand_id, source.source_id, unit.unit_id, \";\n\t$q_select .=\t\"event_type.medium_id, event_type.transform_id, event_type.condition_id, location.location_id, \";\n\t$q_select .=\t\"location.z_value, event_occurrence.instance_id, event_occurrence.start, event_occurrence.end, \";\n\t$q_select .=\t\"event_occurrence.magnitude \";\n\n\t$q_from = \t\"FROM event_occurrence, generic_event, location, event_type, source, unit \";\n\n\t$q_where = \t\"WHERE generic_event.event_id = event_occurrence.event_id AND generic_event.location_id = location.location_id \";\n\t$q_where .=\t\t\"AND generic_event.type_id = event_type.type_id AND event_type.source_id = source.source_id \";\n\t$q_where .=\t\t\"AND event_type.unit_id = unit.unit_id AND group_id IN \";\n\t$q_where .=\t\t\"(SELECT user_group.group_id \";\n\t$q_where .=\t\t\t\"FROM user_group, user_name \";\n\t$q_where .=\t\t\t\"WHERE user_group.user_id = user_name.user_id AND user_name.name = (SELECT current_user)) \";\n\t\t\n\tif ($paramDict[\"type\"]) {\n\t\t$q_where .= \" AND event_type.type_id IN (\" . $paramDict[\"type\"] . \") \";\n\t}\n\tif ($paramDict[\"measurand\"]) {\n\t\t$q_where .= \" AND event_type.measurand_id IN (\" . $paramDict[\"measurand\"] . \") \";\n\t}\n\tif ($paramDict[\"source\"]) {\n\t\t$q_where .= \" AND source.source_id IN (\" . $paramDict[\"source\"] . \") \";\n\t}\n\tif ($paramDict[\"unit\"]) {\n\t\t$q_where .= \" AND unit.unit_id IN (\" . $paramDict[\"unit\"] . \") \";\n\t}\n\tif ($paramDict[\"medium\"]) {\n\t\t$q_where .= \" AND event_type.medium_id IN (\" . $paramDict[\"medium\"] . \") \";\n\t}\n\tif ($paramDict[\"transform\"]) {\n\t\t$q_where .= \" AND event_type.transform_id IN (\" . $paramDict[\"transform\"] . \") \";\n\t}\n\tif ($paramDict[\"condition\"]) {\n\t\t$q_where .= \" AND event_type.condition_id IN (\" . $paramDict[\"condition\"] . \") \";\n\t}\n\tif ($paramDict[\"location\"]) {\n\t\t$q_where .= \" AND generic_event.location_id IN (\" . $paramDict[\"location\"] . \") \";\n\t}\n\tif ($paramDict[\"height\"]) {\n\t\t$q_where .= \" AND location.z_value IN (\" . $paramDict[\"height\"] . \") \";\n\t}\n\tif ($paramDict[\"year\"]) {\n\t\t$q_where .= \" AND date_part('year', event_occurrence.start) IN (0,\" . $paramDict[\"year\"] . \") \";\n\t} \n\tif ($paramDict[\"month\"]) {\n\t\t$q_where .= \" AND date_part('month', event_occurrence.start) IN (0,\" . $paramDict[\"month\"] . \") \";\n\t} \n\tif ($paramDict[\"day\"]) {\n\t\t$q_where .= \" AND date_part('day', event_occurrence.start) IN (0,\" . $paramDict[\"day\"] . \") \";\n\t} \n\tif ($paramDict[\"start\"] || $paramDict[\"end\"]) {\n\t\t$q_starts = explode(',',$paramDict[\"start\"]);\n\t\t$q_ends = explode(',',$paramDict[\"end\"]);\n\t\tif($paramDict[\"start\"] && $paramDict[\"end\"] && (count($q_starts) == count($q_ends))) {\n\t\t\t$q_where .= \" AND ( FALSE\";\n\t\t\tfor($i = 0;$i < count($q_starts); $i++) {\n\t\t\t\t$q_where .= \" OR \";\t\n\t\t\t\t$q_where .= \"(event_occurrence.start >= '\".AS3ToMySql($q_starts[$i]).\")'\";\n\t\t\t\t$q_where .= \" AND event_occurrence.end <= '\".AS3ToMySql($q_ends[$i]).\"')\";\n\t\t\t}\n\t\t\t$q_where = $q_where.\")\";\t\n\t\t} else if ($paramDict[\"start\"] && (count($q_starts) == 1)) {\n\t\t\t$q_where = $q_where.\" AND event_occurrence.start >= '\".AS3ToMySql($paramDict[\"start\"],\"FIRST\").\"'\";\n\t\t} else if ($paramDict[\"end\"] && (count($q_ends) == 1)) {\n\t\t\t$q_where = $q_where.\" AND event_occurrence.end <= '\".AS3ToMySql($paramDict[\"end\"],\"LAST\").\"'\";\n\t\t} else {\n\t\t\t//Error of some kind\n\t\t}\n\t}\n\n\t$q_order = \" ORDER BY event_occurrence.start ASC, event_occurrence.end ASC \";\n\n\t$q_count = $q_select . $q_from . $q_where . $q_order;\n\n\t// Legacy; this *may* be broken\n\tif ($paramDict[\"season\"]) {\n\t\n\t\t$drop = \"DROP TABLE temp;\";\n\t\tpg_query($dbconn, $drop);\n\t\t\n\t\t$q_select = \t\"CREATE TEMP TABLE temp AS \";\n\t\t$q_select .=\t\"SELECT event_type.type_id, event_type.measurand_id, source.source_id, unit.unit_id, \";\n\t\t$q_select .=\t\t\"event_type.medium_id, event_type.transform_id, event_type.condition_id, location.location_id, \";\n\t\t$q_select .=\t\t\"location.z_value, event_occurrence.instance_id, event_occurrence.start, event_occurrence.end, event_occurrence.magnitude, \";\n\t\t$q_select .=\t\t\"CASE WHEN to_char(event_occurrence.start, 'MMDD') BETWEEN '0621' AND '0920' THEN 'summer' \";\n\t\t$q_select .=\t\t\t\"WHEN to_char(event_occurrence.start, 'MMDD') BETWEEN '0921' AND '1220' THEN 'fall' \";\n\t\t$q_select .=\t\t\t\"WHEN to_char(event_occurrence.start, 'MMDD') BETWEEN '1221' AND '1231' THEN 'winter' \";\n\t\t$q_select .=\t\t\t\"WHEN to_char(event_occurrence.start, 'MMDD') BETWEEN '0101' AND '0320' THEN 'winter' \";\n\t\t$q_select .=\t\t\t\"WHEN to_char(event_occurrence.start, 'MMDD') BETWEEN '0321' AND '0620' THEN 'spring' \";\n\t\t$q_select .=\t\"END AS season\";\n\n\t\t$temp = $q_select . $q_from . $q_where;\n\t\tpg_query($dbconn, $temp);\n\t\t$v = array(split(',', $paramDict[\"season\"]));\n\t\t\n\t\t$q_count = \t\"SELECT temp.type_id, temp.measurand_id, temp.source_id, temp.unit_id, temp.medium_id, \";\n\t\t$q_count .= \t\"temp.transform_id, temp.condition_id, temp.location_id, temp.z_value, temp.instance_id, \";\n\t\t$q_count .=\t\t\"temp.start, temp.end, temp.magnitude \";\n\t\t$q_count .=\t\"FROM temp \";\n\t\t$q_count .=\t\"WHERE season IN ('\".multi_implode(\"','\",$v).\"');\";\n\t}\n\t\t\n\t$tuples = pg_fetch_all(pg_query($dbconn, $q_count));\n\t\n\tif ($tuples) {\n\t\t$i = 0;\n\t\t$heads = array ('type_id', 'measurand_id', 'source_id', 'unit_id', 'medium_id', 'transform_id', 'condition_id', 'location_id', 'z_value');\n\t\t$tails = array ('instance_id', 'start', 'end', 'magnitude');\n\t\tforeach ($tuples as $tuple => $keys) {\n\t\t\tif ($i == 0) {\n\t\t\t\t$header = array ();\n\t\t\t\tforeach ($heads as $head) {\n\t\t\t\t\tforeach ($keys as $key => $value) {\n\t\t\t\t\t\tif ($head == $key) {\n\t\t\t\t\t\t\t$header[$head] = $value;\n\t\t\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$tailer = array();\n\t\t\t\tforeach ($tails as $tail) {\n\t\t\t\t\tforeach ($keys as $key => $value) {\n\t\t\t\t\t\tif ($key == 'start') {\n\t\t\t\t\t\t\t$tailer[$tail] = $value;\n\t\t\t\t\t\t\t$keywords = preg_split(\"/ /\", $value);\n\t\t\t\t\t\t\t$date = preg_split(\"/-/\", $keywords[0]);\n\t\t\t\t\t\t\t$tailer['year'] = $date[0];\n\t\t\t\t\t\t\t$tailer['month'] = $date[1];\n\t\t\t\t\t\t\t$tailer['day'] = $date[2];\n\t\t\t\t\t\t} else if ($tail == $key) {\n\t\t\t\t\t\t\t$tailer[$tail] = $value;\n\t\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$data[$i]['header'] = $header;\n\t\t\t\t$data[$i]['occurrence'][] = $tailer;\n\t\t\t\t$i = $i + 1;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$header = array ();\n\t\t\t\tforeach ($heads as $head) {\n\t\t\t\t\tforeach ($keys as $key => $value) {\n\t\t\t\t\t\tif ($head == $key) {\n\t\t\t\t\t\t\t$header[$head] = $value;\n\t\t\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$tailer = array();\n\t\t\t\tforeach ($tails as $tail) {\n\t\t\t\t\tforeach ($keys as $key => $value) {\n\t\t\t\t\t\tif ($key == 'start') {\n\t\t\t\t\t\t\t$tailer[$tail] = $value;\n\t\t\t\t\t\t\t$keywords = preg_split(\"/ /\", $value);\n\t\t\t\t\t\t\t$date = preg_split(\"/-/\", $keywords[0]);\n\t\t\t\t\t\t\t$tailer['year'] = $date[0];\n\t\t\t\t\t\t\t$tailer['month'] = $date[1];\n\t\t\t\t\t\t\t$tailer['day'] = $date[2];\n\t\t\t\t\t\t} else if ($tail == $key) {\n\t\t\t\t\t\t\t$tailer[$tail] = $value;\n\t\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$found = 0;\n\t\t\t\t\n\t\t\t\tfor ($j=0; $j < $i; $j++) {\n\t\t\t\t\tif ( $data[$j]['header'] == $header) {\n\t\t\t\t\t\t$data[$j]['occurrence'][] = $tailer;\n\t\t\t\t\t\t$found = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ($found == 0) {\n\t\t\t\t\t$data[$i]['header'] = $header;\n\t\t\t\t\t$data[$i]['occurrence'][] = $tailer;\n\t\t\t\t\t$i = $i + 1; \n\t\t\t\t}\n\t\t\t} \n\t\t}\n\n\t\t//return json_encode($data);\n\t\treturn $data;\n\t}\t\n}", "title": "" }, { "docid": "4238d21ef48e00331aa9f1ab67572999", "score": "0.55247205", "text": "public function query() {\n $this->addAdditionalFields();\n }", "title": "" }, { "docid": "14bd5b9c035e2db48dc8a216634614b8", "score": "0.5503001", "text": "function buildQuery(){\n\t\tif ( $this->invalidQuery() )\n\t\t\t$this->options['query'] = 'hello%20world';\n\n\t\t$queries = array(\n\t\t\t'q' => $this->options['query'],\n\t\t\t'-' => $this->options['ignore'],\n\t\t\t'from' => $this->options['user'],\n\t\t\t'results_type' => $this->options['type'],\n\t\t\t'rpp' => $this->options['limit']);\n\n\t\t$query_string = self::URL;\n\t\t$query_first = true;\n\n\t\tforeach ($queries as $key => $query) {\n\t\t\tif ( $query != '' ){\n\t\t\t\t$query_string .= ( $query_first ? '?' : '&' ) . (($key != '-' ) ? $key . '=' . $query : ( $queries['q'] == '' ? 'q=' : '' ) . $key . $query);\n\t\t\t\t$query_first = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn str_replace(' ', '%20', $query_string );\n\t}", "title": "" }, { "docid": "6998909ee3c5d915a15bd4625da949d6", "score": "0.5487411", "text": "protected function _buildQuery()\n {\n \t\n $db = JFactory::getDBO();\n $query = $db->getQuery(TRUE);\n\n $query->select('holpl.*');\n $query->from('#__ddct_holidayplannner as holpl');\n return $query;\n \n }", "title": "" }, { "docid": "dda32e29405aa6aa85fa99f09d3aceef", "score": "0.546255", "text": "protected function buildProperties(){\n if(empty($this->propertiesInfo)){\n $properties = DBManager::getInstance()->describe($this->table);\n $this->propertiesInfo = $properties['fields-info']?? [];\n $this->attributes = $properties['fields']?? [];\n $this->pk = $properties['primary']?? null;\n } else {\n $this->fetchProperties();\n }\n $this->tableColumns = array_keys($this->attributes);\n }", "title": "" }, { "docid": "3e72b01d796f8d11417ea97f2615856a", "score": "0.54358727", "text": "public function createQuery(): void\n\t{\n\t\t$this->queryGenerator = new \\App\\QueryGenerator($this->controller->request->getModule());\n\t\t$this->queryGenerator->initForDefaultCustomView();\n\t\t$limit = 1000;\n\t\tif ($requestLimit = $this->controller->request->getHeader('x-row-limit')) {\n\t\t\t$limit = (int) $requestLimit;\n\t\t}\n\t\tif ($orderField = $this->controller->request->getHeader('x-row-order-field')) {\n\t\t\t$this->queryGenerator->setOrder($orderField, $this->controller->request->getHeader('x-row-order'));\n\t\t}\n\t\t$offset = 0;\n\t\tif ($requestOffset = $this->controller->request->getHeader('x-row-offset')) {\n\t\t\t$offset = (int) $requestOffset;\n\t\t}\n\t\t$this->queryGenerator->setLimit($limit);\n\t\t$this->queryGenerator->setOffset($offset);\n\t\tif ($requestFields = $this->controller->request->getHeader('x-fields')) {\n\t\t\tif (!\\App\\Json::isJson($requestFields)) {\n\t\t\t\tthrow new \\Api\\Core\\Exception('Incorrect json syntax: x-fields', 400);\n\t\t\t}\n\t\t\t$this->queryGenerator->clearFields();\n\t\t\tforeach (\\App\\Json::decode($requestFields) as $field) {\n\t\t\t\tif (\\is_array($field)) {\n\t\t\t\t\t$this->queryGenerator->addRelatedField($field);\n\t\t\t\t} else {\n\t\t\t\t\t$this->queryGenerator->setField($field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->fields = $this->queryGenerator->getListViewFields();\n\t\tforeach ($this->queryGenerator->getRelatedFields() as $fieldInfo) {\n\t\t\t$this->relatedFields[$fieldInfo['relatedModule']][$fieldInfo['sourceField']][] = $fieldInfo['relatedField'];\n\t\t}\n\t\tif ($conditions = $this->controller->request->getHeader('x-condition')) {\n\t\t\t$conditions = \\App\\Json::decode($conditions);\n\t\t\tif (isset($conditions['fieldName'])) {\n\t\t\t\t$this->queryGenerator->addCondition($conditions['fieldName'], $conditions['value'], $conditions['operator'], $conditions['group'] ?? true, true);\n\t\t\t} else {\n\t\t\t\tforeach ($conditions as $condition) {\n\t\t\t\t\t$this->queryGenerator->addCondition($condition['fieldName'], $condition['value'], $condition['operator'], $condition['group'] ?? true, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b7a8d96baf7a33d972f0d2f0383b0cc1", "score": "0.5430445", "text": "protected function buildQueryExtra()\n\t{\n\t\tif (count($this->_extra) > 0)\n\t\t{\n\t\t\treturn ' ' . implode(' ', $this->_extra) . \"\\n\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t}", "title": "" }, { "docid": "792a1d2051ccf0d97c8b1ef2984c0720", "score": "0.54302293", "text": "abstract public function createQuery();", "title": "" }, { "docid": "166938ecfc64593a3870dc23695fec66", "score": "0.5429203", "text": "private function build_update_query()\n {\n $table = $this->get_instance_table_name();\n\n $model = $this->get_model_props();\n\n $columns = array();\n foreach ($model[\"props\"] as $key => $value) {\n $columns[] = \"{$table}.{$key} = ?\";\n }\n $updates = implode(', ', $columns);\n return \"UPDATE {$table} SET {$updates}, {$table}.updated_at = ? WHERE {$table}.id = ?;\";\n }", "title": "" }, { "docid": "08a828564b6dc07f86f6cb3fab51b036", "score": "0.54232776", "text": "private function build_from_query(){\r\n\t\r\n\t\r\n\t\t$sql = \" FROM {$this->dbtablename}\"; \r\n\t\t\r\n\t\t\r\n\t\tif(is_array($this->join_includefields)){\r\n\t\t\t$sql .= \" JOIN {$this->jointable} ON {$this->dbtablename}.{$this->id_field} = {$this->jointable}.{$this->joinkey}\";\r\n\t\t}\r\n\t\t\r\n\t\t// phasing in for version 3 - Aug 31, 2012\r\n\t\tif(is_array($this->jointables) && count($this->jointables) > 0 ){\r\n\t\t\r\n\t\t\tforeach($this->jointables AS $jointable){\r\n\t\t\t\t\t\t\r\n\t\t\t\t$sql .= \" LEFT JOIN {$jointable['table']} ON {$this->dbtablename}.{$this->id_field} = {$jointable['table']}.{$jointable['key']}\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn $sql;\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "2a7a8ab3f3cbe153d3dc1e279c12523b", "score": "0.5418926", "text": "function query() {\r\n $this->ensure_my_table();\r\n $this->add_additional_fields();\r\n }", "title": "" }, { "docid": "d3f5e922fd391458d0e513ea79325a8d", "score": "0.5412358", "text": "abstract function createQuery();", "title": "" }, { "docid": "db7e573f23aec192b312098592f716bb", "score": "0.54099625", "text": "protected function buildQuery($query = '')\n\t{\n\t\t// Get the WHERE clauses for the query\n\t\t$where = $this->buildQueryWhere();\n\n\t\t// Get the ORDER BY clauses for the query\n\t\t$orderby = ($this->isSingular()) ? null : $this->buildQueryOrderBy();\n\n\t\t// Get the GROUP BY clauses for the query\n\t\t$groupby = $this->buildQueryGroupBy();\n\n\t\t// Get the extra segments for the query\n\t\t$extra = $this->buildQueryExtra();\n\n\t\t// Get the LIMIT segments for the query\n\t\t$limitString = null;\n\t\tif ($this->_limit_query == true)\n\t\t{\n\t\t\t$limitstart = $this->getState('limitstart');\n\t\t\t$limit = $this->getState('limit');\n\t\t\tif (!(empty($limit) && empty($limitStart)))\n\t\t\t{\n\t\t\t\t$limitString = ' LIMIT ' . $limitstart . ',' . $limit;\n\t\t\t}\n\t\t}\n\n\t\t// Build the default query if not set\n\t\tif (empty($query))\n\t\t{\n\n\t\t\t// Skip certain fields in frontend\n\t\t\t$skipFrontendFields = array(\n\t\t\t\t'locked',\n\t\t\t\t'published',\n\t\t\t\t'published_up',\n\t\t\t\t'published_down',\n\t\t\t\t'checked_out',\n\t\t\t\t'checked_out_time');\n\n\t\t\t// Build the fields-string to avoid a *\n\t\t\t$fields = $this->_tbl->getDatabaseFields();\n\t\t\t$fieldsStrings = array();\n\t\t\tforeach ($fields as $field)\n\t\t\t{\n\t\t\t\tif ($this->app->isSite() && in_array($field, $skipFrontendFields))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$fieldsStrings[] = '`{tableAlias}`.`' . $field . '`';\n\t\t\t}\n\n\t\t\t// Append extra fields\n\t\t\tif (!empty($this->_extraFields))\n\t\t\t{\n\t\t\t\tforeach ($this->_extraFields as $extraField)\n\t\t\t\t{\n\t\t\t\t\t$fieldsStrings[] = $extraField;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$fieldsString = implode(',', $fieldsStrings);\n\n\t\t\t// Frontend or backend query\n\t\t\tif ($this->_checkout == true && $this->app->isAdmin())\n\t\t\t{\n\t\t\t\t$query = \"SELECT \" . $fieldsString . \", `editor`.`name` AS `editor` FROM `{table}` AS `{tableAlias}`\\n\";\n\t\t\t\t$query .= \" LEFT JOIN `#__users` AS `editor` ON `{tableAlias}`.`checked_out` = `editor`.`id`\\n\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$query = \"SELECT \" . $fieldsString . \" FROM `{table}` AS `{tableAlias}`\\n\";\n\t\t\t}\n\t\t}\n\n\t\t// Add-in access-details\n\t\tif (strstr($query, '{access}'))\n\t\t{\n\t\t\t$query = str_replace('{access}', '`viewlevel`.`title` AS `accesslevel`', $query);\n\t\t\t$query .= \" LEFT JOIN `#__viewlevels` AS `viewlevel` ON `viewlevel`.`id`=`\" . $this->_tbl_alias . \"`.`access`\\n\";\n\t\t}\n\n\t\t// Add-in editor-details\n\t\tif (strstr($query, '{editor}'))\n\t\t{\n\t\t\t$query = str_replace('{editor}', '`user`.`name` AS `editor`', $query);\n\t\t\t$query .= \" LEFT JOIN `#__users` AS `user` ON `user`.`id`=`\" . $this->_tbl_alias . \"`.`checked_out`\\n\";\n\t\t}\n\n\t\t// Return the query including WHERE and ORDER BY and LIMIT\n\t\t$query = $query . $extra . $where . $groupby . $orderby . $limitString;\n\t\t$query = str_replace('{table}', $this->_tbl_name, $query);\n\t\t$query = str_replace('{tableAlias}', $this->_tbl_alias, $query);\n\t\t$query = str_replace('{primary}', $this->_tbl_key, $query);\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "54d63b3ded04893ff8ef5a9d9a158a1d", "score": "0.5401765", "text": "function readQuery() {\n\t\t$this->DoelID = $this->queryHelper(\"DoelID\", 0);\n\t\t$this->Omschrijving = $this->queryHelper(\"Omschrijving\", 0);\n\t\t$this->GewijzigdDoor = $this->queryHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->queryHelper(\"GewijzigdOp\", \"\");\n\t}", "title": "" }, { "docid": "605e85310eebfe089443daf961481b85", "score": "0.5397878", "text": "protected function _buildQuery($numRows = NULL, $tableData = false)\n {\n $hasTableData = null;\n\n if(gettype($tableData) === 'array'){\n $hasTableData = true;\n }\n\n // We need to ask if the user did call the where method\n if( !empty($this->_where)) {\n $keys = array_keys($this->_where);\n $where_prop = $keys[0];\n $where_value = $this->_where[$where_prop];\n\n // If data was passed, filter through and create the sql query accordingly.\n if ($hasTableData) {\n $i = 1;\n foreach ($tableData as $prop => $value) {\n echo $prop .\" -> \". $value. '<br>';\n }\n\n } else {\n // no table data was passed. It's a select statement.\n $this->_paramTypeList = $this->_determineType($where_value);\n $this->_query .= \" WHERE \" . $where_prop . \" = ?\";\n }\n }\n\n //determine if it's insert query (7)\n if($hasTableData){\n $pos = strpos($this->_query, 'INSERT');\n }\n\n if($pos == false){\n // is insert statement\n $keys = array_keys($tableData);\n $values = array_values($tableData);\n $num = count($keys);\n\n // wrap the values in quotes\n foreach($values as $key => $val){\n $values[$key] = \"'{$val}'\";\n $this->_paramTypeList .= $this->_determineType($val);\n }\n $this->_query .= '('. implode($keys, ',') .')';\n $this->_query .= ' VALUES(';\n\n while($num !== 0){\n ($num !== 1) ? $this->_query .= '?, ' : $this->_query .= '?)';\n $num--;\n }\n\n }\n\n // If the number of rows are given by the user\n if(isset($numRows)){\n $this->_query .= \" LIMIT \". (int)$numRows;\n }\n\n $stmt = $this->prepareQuery();\n\n // Bind the parameters\n if($hasTableData){\n $args = [];\n $args[] = $this->_paramTypeList;\n foreach($tableData as $prop => $val){\n $args[] = &$tableData[$prop];\n }\n call_user_func_array( array($stmt, 'bind_param'),$args );\n }\n else if($this->_where){\n $stmt->bind_param($this->_paramTypeList, $where_value);\n }\n return $stmt;\n }", "title": "" }, { "docid": "57f8231d255deb9f6e5348ec6f1a03ed", "score": "0.5389412", "text": "function readQuery() {\n\t\t$this->NetBeheerderID = $this->queryHelper(\"NetBeheerderID\", 0);\n\t\t$this->NetBeheerderEAN = $this->queryHelper(\"NetBeheerderEAN\", \"\");\n\t\t$this->NetBeheerderNaam = $this->queryHelper(\"NetBeheerderNaam\", 0);\n\t\t$this->NetBeheerderContactPersoon = $this->queryHelper(\"NetBeheerderContactPersoon\", 0);\n\t\t$this->NetBeheerderTelefoonNummer = $this->queryHelper(\"NetBeheerderTelefoonNummer\", 0);\n\t\t$this->GewijzigdDoor = $this->queryHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->queryHelper(\"GewijzigdOp\", \"\");\n\t}", "title": "" }, { "docid": "da31ee5d13090653af0c2bfe378f2e61", "score": "0.53711027", "text": "public function compile()\n {\n $sql = array();\n\n if (isset($this->select)) {\n $sql[] = 'SELECT ' . implode(',', $this->select);\n }\n\n if (isset($this->update)) {\n $sql[] = 'UPDATE';\n $sql[] = $this->update['table'];\n $sql[] = 'SET';\n\n $blocks = array();\n foreach ($this->update['values'] as $key => $value) {\n $blocks[] = $key . ' = ' . $value;\n }\n\n $sql[] = implode(',', $blocks);\n }\n\n if (isset($this->delete)) {\n $sql[] = \"DELETE \";\n }\n\n if (isset($this->insert)) {\n $sql[] = 'INSERT INTO';\n $sql[] = $this->insert['table'];\n\n $fields = array();\n $replaces = array();\n\n foreach ($this->insert['values'] as $key => $value) {\n $fields[] = '`' . $key . '`';\n $replaces[] = $value;\n }\n\n $sql[] = '(' . implode(',', $fields) . ')';\n $sql[] = (count($this->insert['values']) > 1) ? 'VALUES' : 'VALUE';\n $sql[] = '(' . implode(',', $replaces) . ')';\n }\n\n if (isset($this->replace)) {\n $sql[] = 'REPLACE INTO';\n $sql[] = $this->replace['table'];\n\n $fields = array();\n $replaces = array();\n\n foreach ($this->replace['values'] as $key => $value) {\n $fields[] = '`' . $key . '`';\n $replaces[] = $value;\n }\n\n $sql[] = '(' . implode(',', $fields) . ')';\n $sql[] = (count($this->replace['values']) > 1) ? 'VALUES' : 'VALUE';\n $sql[] = '(' . implode(',', $replaces) . ')';\n }\n\n if (isset($this->from)) {\n $sql[] = 'FROM ' . implode(',', $this->from);\n }\n\n foreach ($this->where as $index => $where) {\n\n if (!is_string($where['column'])) {\n throw new \\OtherCode\\Database\\Exceptions\\QueryException(\"The column field is not a string in where clause.\");\n }\n\n if (!is_string($where['operator']) || !in_array($where['operator'], $this->operators)) {\n throw new \\OtherCode\\Database\\Exceptions\\QueryException(\"Invalid operator in where clause.\");\n }\n\n if (gettype($where['value']) == 'string' && $where['quoted'] === true) {\n $where['value'] = '\"' . $where['value'] . '\"';\n }\n\n unset($where['quoted']);\n\n $sentence = ($index == 0) ? \"WHERE \" : \"AND \";\n $sql[] = $sentence . implode(\" \", $where);\n\n }\n\n if (isset($this->group)) {\n $sql[] = 'GROUP BY ' . $this->group;\n }\n\n foreach ($this->order as $index => $order) {\n\n if (!in_array($order[1], array('ASC', 'DESC'))) {\n throw new \\OtherCode\\Database\\Exceptions\\QueryException('Invalid order by value, must be ASC or DESC.');\n }\n\n $sql[] = 'ORDER BY ' . implode(\" \", $order);\n }\n\n if (isset($this->limit)) {\n $sql[] = 'LIMIT ' . implode(\" \", $this->limit);\n }\n\n return trim(implode(\" \", $sql));\n }", "title": "" }, { "docid": "6e5bbfb152bae67e7cee59cf5bc57f89", "score": "0.5369127", "text": "protected function _buildCalcRows()\n\t{\n\t\treturn \"\";\n\n\t\t/* For other engines */\n\t\t/*if ( $this->cur_query )\n\t\t{\n\t\t\t$_query = preg_replace( \"#SELECT\\s{1,}(.+?)\\s{1,}FROM\\s{1,}#i\", \"SELECT count(*) as count FROM \", $this->cur_query );\n\n\t\t\t$this->query( $_query );\n\t\t\t$count = $this->fetch();\n\n\t\t\t$this->_calcRows = intval( $count['count'] );\n\t\t}*/\n\t}", "title": "" }, { "docid": "bd02d8ae4b3e0fccc7e57de00acff1ae", "score": "0.5366814", "text": "public function build()\n { \n if($this->case) {\n return empty($this->conditions) ? '' : ' '.implode('', $this->conditions);\n } else {\n return empty($this->conditions) ? '' : ' WHERE '.implode('', $this->conditions);\n }\n }", "title": "" }, { "docid": "d1b8ff0a3b6905776070281f98c9dfb4", "score": "0.53620315", "text": "final public function build() {\n\t\t$return = new \\stdClass();\n\t\t$return->sql = array('REPLACE');\n\t\t$return->bindings = array();\n\t\t\n\t\t// process tables\n\t\t\t$return->sql[] = 'INTO ' . implode(', ', $this->tables);\n\t\t\n\t\t// process columns\n\t\t\t$columns = array_keys($this->values);\n\t\t\t$return->sql[] = '(' . implode(', ', $columns) . ') VALUES (:' . implode(', :', $columns) . ')';\n\t\t\tunset($columns);\n\t\t\n\t\t// process values\n\t\t\t$return->bindings = $this->values;\n\t\t\n\t\t$return->sql = implode(' ', $return->sql);\n\t\t\n\t\tforeach($return->bindings as $binding => $parameter) {\n\t\t\tif(is_object($parameter) && get_class($parameter) === 'Glue\\Entity\\Query\\Expression') {\n\t\t\t\t$return->sql = preg_replace('/:' . $binding . '(?!\\w)/', (string) $parameter, $return->sql);\n\t\t\t\tunset($return->bindings[$binding]);\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "4a316fdfc9b4c3067c1a6ebf002b8db1", "score": "0.53535146", "text": "function _buildQuery()\n\t{\n\t\t$where\t\t= $this->_buildContentWhere();\n\t\t$orderby\t= $this->_buildContentOrderBy();\n\n\t\t$query = ' SELECT a.* '\n\t\t\t. ' FROM #__k2store_product_optionvalues AS a '\n\t\t\t. $where\n\t\t\t. $orderby\n\t\t;\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "d8667d147f4369e33a0b9195426f6815", "score": "0.5349114", "text": "protected function _buildTableQuery () {\n\t\t$this->_parseToolsParams();\n\t\t$sTableName\t= $this->getTableName();\n\t\t$sQuery\t\t= \"\";\n\t\t\n\t\t\n\t\tif (!empty($sTableName)) {\n\t\t\t$oDB\t\t= $this->getDb();\n\t\t\t$sQuery\t\t= \"SELECT * FROM `\".Contenido_Security::escapeDB($sTableName, $oDB).\"` \";\n\t\t\t$oTools\t\t= $this->getTableTools(TRUE);\n\t\t\t$aFields\t= $this->_getDbTableColumns(TRUE);\n\t\t\tif ( !empty($oTools->searchData) && empty($oTools->filterData) ) {\n\t\t\t\t$oTools->filterCol = '*'; $oTools->filterData = trim($oTools->searchData);\n\t\t\t}\n\t\t\tif ( !empty($oTools->filterCol) && !empty($oTools->filterData) && array_key_exists($oTools->filterCol, $aFields) ) {\n\t\t\t\tif ( ($oTools->filterCol != '*') ) {\n\t\t\t\t\tif ( !empty($aFields[$oTools->filterCol][\"Collation\"]) || ($aFields[$oTools->filterCol][\"Type\"] == 'timestamp') ) {\n\t\t\t\t\t\t$op\t= \"LIKE\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$op\t= \"=\";\n\t\t\t\t\t}\n\t\t\t\t\t$sQuery\t\t.= \"WHERE\" .\" (\". \n\t\t\t\t\t\t\t\t\t\t(\"`\".Contenido_Security::escapeDB($oTools->filterCol, $oDB).\"`\") .\"\". \n\t\t\t\t\t\t\t\t (\" \".$op.\" \").\n\t\t\t\t\t\t\t\t \t\t(\"'\".\"%\".Contenido_Security::escapeDB($oTools->filterData, $oDB).\"%\".\"'\") .\") \" ;\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t} else if ( ($oTools->filterCol == '*') && !empty($oTools->filterData) ) {\n\t\t\t\t\t$sQuery \t.= \"WHERE\" .\" (\". $this->_buildEqualLikeWhere($aFields, $oTools->filterData) . \") \";\n\t\t\t} else {\n\t\t\t\t$sQuery\t\t.= \"WHERE\" .\" \" .\"1\" .\" \";\n\t\t\t}\n\t\t\tif ( ($oTools->onlyActive == 'true') ) {\n\t\t\t\t$sQuery\t\t.= \"AND (`active`='1') \";\n\t\t\t}\n\t\t\tif ( !empty($oTools->orderField) && !empty($oTools->sortOrder) ) {\n\t\t\t\t$sQuery\t\t.= \"ORDER BY \".\n\t\t\t\t\t\t\t\t\t(\"`\".Contenido_Security::escapeDB($oTools->orderField, $oDB).\"`\") . \" \" . \n\t\t\t\t\t\t\t\t\t(($oTools->sortOrder == 'asc') ? \"ASC\" : \"DESC\") . \" \";\n\t\t\t}\n\t\t\tif ( !empty($oTools->page) && !empty($oTools->pageCount) && ($oTools->pageCount != 'all') ) {\n\t\t\t\t$sCountQuery = str_replace(\"SELECT *\", \"SELECT count(`active`) AS `numRows`\", $sQuery);\n\t\t\t\t$oDB->query($sCountQuery);\n\t\t\t\twhile ( $oDB->next_record() ) {\n\t\t\t\t\t$iRows = $oDB->f('numRows');\n\t\t\t\t}\n\t\t\t\t$oTools->pages = (int)($iRows / $oTools->pageCount) + ( (($iRows % $oTools->pageCount) > 0) ? 1 : 0);\n\t\t\t\t$lStart = ( (int)$oTools->page - 1 ) * (int)$oTools->pageCount;\n\t\t\t\tif ($oTools->page > $oTools->pageCount) {\n\t\t\t\t\t$lStart = 0;\n\t\t\t\t}\n\t\t\t\t$sQuery\t\t.= \"LIMIT \" . $lStart . \", \" . (int)$oTools->pageCount;\n\t\t\t}\n\t\t}\n\t\t$this->setQuery($sQuery);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "774eb0fbcd59929c7b60b5672501d6d4", "score": "0.53457206", "text": "public function buildQuery() {\n $data = self::prepareUrlData(array('arPath'=>$this->arPath, 'arParams'=>$this->arParams), $this->page, false, $this->copyFilters());\n return parent::RequestToUrl(array(), $this->incSuffix, $this->suffix, $data['arParams'], $this->anchor, false, false);\n }", "title": "" }, { "docid": "5690d1bb8631919b68ab4bee1e3fc3c5", "score": "0.5336889", "text": "function build() {\r\n $query = new genericQuery( $this->conn );\r\n\r\n $sql = $this->getSQL();\r\n $query->TQuery( $sql );\r\n\r\n $retval = array();\r\n\r\n // Adiciona um item personalizado na primeira posicao da lista.\r\n if ( trim($this->useCustomItem) != \"\" ){\r\n $key = \"X\" . $this->customItemKey;\r\n $value = $this->customItemValue;\r\n $retval[$key] = $value;\r\n }\r\n \r\n if( $this->getAgruparColumn() ){\r\n\t while( $row = $query->fetchrow() ) {\r\n\t $key = \"X\" . $row[mb_strtoupper($this->keyColumn)];\r\n\t $nivel \t\t = $row[\"NIVEL\"];\r\n\t $value = $row[mb_strtoupper($this->valueColumn)];\r\n\t $retval[$nivel][$key] = $value;\r\n\t }\r\n }else{\r\n \twhile( $row = $query->fetchrow() ) {\r\n\t $key = \"X\" . $row[mb_strtoupper($this->keyColumn)];\r\n\t $value = $row[mb_strtoupper($this->valueColumn)];\r\n\t $retval[$key] = $value;\r\n\t }\r\n }\r\n $this->options = $retval;\r\n }", "title": "" }, { "docid": "a382f24ffabf99cd0b8fa3c0cd7c06ed", "score": "0.53331786", "text": "private function prepareConditions()\n {\n $subquery = 'SELECT p.id FROM products as p ';\n\n if (!empty($this->size)) {\n $subquery .= 'INNER JOIN product_sizes as ps ON p.id = ps.product_id AND ps.size_id = ' . $this->size;\n }\n\n if (!empty($this->searchText)) {\n preg_match_all('/(\\pL{3,})/iu', $this->searchText, $matches);\n\n $subquery .= ' INNER JOIN product_keywords AS pk ON p.id = pk.product_id\n INNER JOIN keywords AS k ON pk.word_id = k.id AND k.word IN (\"' . implode('\",\"', $matches[0]) . '\")';\n }\n\n if (!empty($this->brand)) {\n $subquery .= ' WHERE p.brand_id = ' . $this->brand;\n }\n\n if (!empty($this->searchText)) {\n $subquery .= ' GROUP BY p.id\n ORDER BY count(frequency) DESC';\n }\n\n return $subquery;\n }", "title": "" }, { "docid": "6ce919bd9b2cd9e60e2d52301b7b7615", "score": "0.5326584", "text": "public function buildSql();", "title": "" }, { "docid": "4066a7a6af0e8ac74ade4a9c0c6ff88d", "score": "0.5318532", "text": "protected function buildSelectQuery()\n\t{\n\t\t$sql = \"SELECT\\n\\t\"\n\t\t\t. $this->columns . \"\\n\"\n\t\t\t. $this->from . \"\\n\"\n\t\t\t. ($this->where ? $this->where . \"\\n\" : null)\n\t\t\t. \";\";\n\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "a90965d5b4c31a466347082866e20c84", "score": "0.53144354", "text": "abstract public function Query();", "title": "" }, { "docid": "8abcb4187c649032484e75029bcb2d08", "score": "0.5301413", "text": "public function createQuery()\n {\n }", "title": "" }, { "docid": "f1e5a8ead44637f066793c406c704591", "score": "0.52957654", "text": "private function buildQuery() {\n $query = $set = null;\n if ($this->_table == \"dog\") {\n switch ($this->_column) {\n case 'name':\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.age AS age,\n t2.name AS breed,\n t3.name AS shelter,\n t1.id AS id\n FROM `dog` AS t1 \n LEFT JOIN `breed` AS t2 ON t1.breed_id = t2.id \n LEFT JOIN `shelter` AS t3 ON t1.shelter_id = t3.id\n WHERE t1.name LIKE '%$this->_term%' \n ORDER BY t1.name ASC\n_STRING;\n break;\n case 'breed':\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.age AS age,\n t2.name AS breed,\n t3.name AS shelter,\n t1.id AS id \n FROM `dog` AS t1 \n LEFT JOIN `breed` AS t2 ON t1.breed_id = t2.id \n LEFT JOIN `shelter` AS t3 ON t1.shelter_id = t3.id\n WHERE t2.name LIKE '%$this->_term%' \n ORDER BY t2.name ASC\n_STRING;\n\n break;\n case 'shelter':\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.age AS age,\n t2.name AS breed,\n t3.name AS shelter,\n t1.id AS id \n FROM `dog` AS t1 \n LEFT JOIN `breed` AS t2 ON t1.breed_id = t2.id \n LEFT JOIN `shelter` AS t3 ON t1.shelter_id = t3.id\n WHERE t3.name LIKE '%$this->_term%' \n ORDER BY t3.name ASC\n_STRING;\n break;\n default:\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.age AS age,\n t2.name AS breed,\n t3.name AS shelter,\n t1.id AS id \n FROM `dog` AS t1 \n LEFT JOIN `breed` AS t2 ON t1.breed_id = t2.id \n LEFT JOIN `shelter` AS t3 ON t1.shelter_id = t3.id\n ORDER BY t1.name ASC\n_STRING;\n break;\n }\n } else if ($this->_table == \"breed\") {\n switch ($this->_column) {\n case 'name':\n $query = <<<_STRING\n SELECT\n t1.name AS name,\n t1.image AS image,\n t1.type AS type,\n t1.id AS id\n FROM `breed` AS t1\n WHERE t1.name LIKE '%$this->_term%'\n ORDER BY t1.name ASC\n_STRING;\n break;\n case 'type':\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.image AS image,\n t1.type AS type,\n t1.id AS id\n FROM `breed` AS t1 \n WHERE t1.type LIKE '%$this->_term%' \n ORDER BY t1.type ASC\n_STRING;\n break;\n default:\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.image AS image,\n t1.type AS type,\n t1.id AS id\n FROM `breed`\n ORDER BY t1.name ASC\n_STRING;\n break;\n }\n } else if ($this->_table == \"shelter\") {\n switch ($this->_column) {\n case 'name': \n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.address AS address,\n t2.city AS city,\n t1.phone AS phone,\n t1.id AS id \n FROM `shelter` AS t1 \n LEFT JOIN `city` AS t2 ON t1.city_id = t2.id \n WHERE t1.name LIKE '%$this->_term%' \n ORDER BY t1.name ASC \n_STRING;\n break;\n case 'city':\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.address AS address,\n t2.city AS city,\n t1.phone AS phone,\n t1.id AS id\n FROM `shelter` AS t1 \n LEFT JOIN `city` AS t2 ON t1.city_id = t2.id \n WHERE t2.city LIKE '%$this->_term%' \n ORDER BY t2.city ASC\n_STRING;\n\n break;\n default:\n $query = <<<_STRING\n SELECT \n t1.name AS name,\n t1.address AS address,\n t2.city AS city,\n t1.phone AS phone,\n t1.id AS id\n FROM `shelter` AS t1 \n LEFT JOIN `city` AS t2 ON t1.city_id = t2.id \n ORDER BY t1.name ASC \n_STRING;\n break;\n }\n }\n \n return $query;\n }", "title": "" }, { "docid": "ecca07941fd0f31416b90aa466a96277", "score": "0.5292667", "text": "public function queries() {\n $queries = '';\n\n foreach ($this->entity_types as $entity_type) {\n $queries .= $this->buildEntityTypeQueries($entity_type);\n }\n foreach ($this->dependant_entity_types as $entity_type) {\n $queries .= $this->buildEntityTypeQueries($entity_type);\n }\n\n $extra_queries = drush_command_invoke_all('shrinkdb_extra_queries');\n foreach ($extra_queries as $query) {\n $queries .= $query . \";\\n\";\n }\n\n return $queries;\n }", "title": "" }, { "docid": "3e52a91604e0ec88d04a4c2323c953f4", "score": "0.5279961", "text": "public function build()\n {\n if (is_null($this->selectFields)) {\n throw new RuntimeException('The `select()` function must be' .\n ' called prior to this function');\n }\n\n $awql = $this->buildSelectClause();\n $awql = $this->appendWhereClause($awql);\n $awql = $this->appendOrderByClause($awql);\n\n if (is_null($this->startIndex) && is_null($this->pageSize)) {\n return new ServiceQuery($awql);\n }\n return new ServiceQuery(\n $awql,\n $this->startIndex,\n $this->pageSize\n );\n }", "title": "" }, { "docid": "9a764b9a52e439a8ebd4cc928ff00573", "score": "0.5277462", "text": "function _buildQuery()\n\t{\n\t\t// Get the WHERE and ORDER BY clauses for the query\n\t\t$where\t\t= $this->_buildContentWhere();\n\t\t$orderby\t= $this->_buildContentOrderBy();\n\t\t$query = 'SELECT a.* FROM #__eb_categories AS a '\t\t\t\t\t\t\t\t\t\t\n\t\t\t. $where\t\t\t\n\t\t\t. $orderby\n\t\t;\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "87c067298b473c1eee272b86a1980d46", "score": "0.52769023", "text": "public function performQuery() {\n $whois_server = $this->fetchWhoisServer();\n if ($this->skip_detail) {\n return $whois_server;\n } else {\n return $this->fetchWhoisDetails();\n }\n }", "title": "" }, { "docid": "40b468d513f6bd01a7c875a86207b783", "score": "0.5261072", "text": "public function setQuery() {\r\n\t\t$query = \" select distinct \";\r\n\t\t$query .= \" i.table_schema \t\t\t\t\tas schema_name, \";\r\n\t\t$query .= \" i.table_name \t\t\t\t\tas table_name, \";\r\n\t\t$query .= \" i.column_name as column_name , \";\r\n\t\t$query .= \" i.udt_name as udt_name , \";\r\n\t\t$query .= \" i.data_type as data_type , \";\r\n\t\t$query .= \" i.numeric_precision\t as numeric_precision , \";\r\n\t\t$query .= \" i.numeric_scale\t as numeric_scale , \";\r\n\t\t$query .= \" i.character_maximum_length\t as character_maximum_length\t, \";\r\n\t\t$query .= \" i.datetime_precision\t as datetime_precision\t, \";\r\n\t\t$query .= \" i.interval_type\t as interval_type\t, \";\r\n\t\t$query .= \" i.is_nullable\t as is_nullable\t, \";\r\n\t\t$query .= \" i.column_default\t as column_default \";\r\n\t\t$query .= \" from \";\r\n\t\t$query .= \" pg_namespace nm , \";\r\n\t\t$query .= \" pg_class cl , \";\r\n\t\t$query .= \" information_schema.columns i \";\r\n\t\t$query .= \" where nm.nspname != 'information_schema' \";\r\n\t\t$query .= \" and nm.nspname not like 'pg_%' \";\r\n\t\t$query .= \" and cl.relkind ='r' \";\r\n\t\t$query .= \" and cl.relname = i.table_name \";\r\n\t\t$query .= \" and i.table_schema = nm.nspname \";\r\n\t\t$query .= \" and cl.relnamespace = nm.oid \";\r\n\t\t$query .= \" and cl.oid not in (select inhrelid from pg_inherits ) \";\r\n\t\t$query .= \" order by 1\t \";\r\n\t\t$this->query = $query;\r\n\t}", "title": "" }, { "docid": "41b4c15b87b44c78454ca0787180f78f", "score": "0.52609414", "text": "function initialize_sql_data() {//sql\n //\n //Building of fields is not necessary if the fields are already\n //defined\n if (isset($this->fields) && !is_null($this->fields)) {\n //\n return;\n }\n //\n //Derive the fields from this sql's statement\n //\n //We assume that the statement must be set\n //\n //Execute this query \n $query = $this->query();\n //\n //Retrieve the columns. The resullyig array is not indexed\n $fields = $query->fetch_fields();\n //\n //Initialize this sql's fields\n foreach ($fields as $field) {\n /*\n Indexes of the fetched field\n name\tThe name of the column\n orgname\tOriginal column name if an alias was specified\n table\tThe name of the table this field belongs to (if not calculated)\n orgtable\tOriginal table name if an alias was specified\n max_length\tThe maximum width of the field for the result set.\n length\tThe width of the field, in bytes, as specified in the table definition. Note that this number (bytes) might differ from your table definition value (characters), depending on the character set you use. For example, the character set utf8 has 3 bytes per character, so varchar(10) will return a length of 30 for utf8 (10*3), but return 10 for latin1 (10*1).\n charsetnr\tThe character set number (id) for the field.\n flags\tAn integer representing the bit-flags for the field.\n type\tThe data type used for this field\n decimals\tThe number of decimals used (for integer fields) */\n //\n //Create a new column from the given standard field of a fetched \n //record, leaving out the optional fields\n $col = new column(\n //\n //Use the oroginal table of as the tname\n $field->orgtable,\n //\n $field->name,\n //\n //Pass the restof the field\n $field);\n //\n //Set this query's fields indexed by the field name\n $this->fields[$field->name] = $col;\n }\n }", "title": "" }, { "docid": "abdda0d5ccebef75189780cca57f3bed", "score": "0.52570605", "text": "function query() {\r\n $this->get_query_fields();\r\n $this->table = $this->query_fields[0]['field']['table_name'];\r\n $this->ensure_my_table();\r\n if (!empty($this->query_fields)) {\r\n foreach ((array) $this->query_fields as $query_field) {\r\n $field = $query_field['field'];\r\n $query_field['field']['fullname'] = $this->table_alias. '.' .$field['field_name'];\r\n $sql = '';\r\n $sql_parts = array();\r\n switch ($this->operator) {\r\n case 'between':\r\n $sql_parts[] = $this->date_filter('min', $query_field, '>=');\r\n $sql_parts[] = $this->date_filter('max', $query_field, '<=');\r\n $sql = implode(' AND ', array_filter($sql_parts));\r\n break;\r\n case 'not between':\r\n $sql_parts[] = $this->date_filter('min', $query_field, '<');\r\n $sql_parts[] = $this->date_filter('max', $query_field, '>');\r\n $sql = implode(' OR ', array_filter($sql_parts));\r\n break;\r\n default:\r\n $sql = $this->date_filter('value', $query_field, $this->operator);\r\n break;\r\n }\r\n if (!empty($sql)) {\r\n // Use set_where_group() with the selected date_method \r\n // of 'AND' or 'OR' to combine the field WHERE clauses.\r\n $this->query->set_where_group($this->options['date_method'], 'date');\r\n $this->query->add_where('date', $sql);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "516e6d3c077d4b37cdf2e0904d2fd4f2", "score": "0.52393156", "text": "abstract protected function getMYSQLQuery();", "title": "" }, { "docid": "ffdf17044335a73bbba8f1a339b73bd6", "score": "0.5238534", "text": "public function GetSQL()\n {\n\t$where_array = [];\n\n\t$class_id = $this->getCode();\n\n\tif(is_null($class_id)){ \n\t\t//then this is the class-level summary..\n\n\t $sql = \"\nSELECT \n\tclassofc_name AS creature_class_name,\n\tCOUNT(DISTINCT(creature.id)) AS creature_type_count,\n\tCOUNT(DISTINCT(oracle_id)) AS card_count,\n\t(COUNT(DISTINCT(IF(cardface.is_color_green,oracle_id,NULL)))/COUNT(DISTINCT(oracle_id))) AS green_percent,\n\t(COUNT(DISTINCT(IF(cardface.is_color_red,oracle_id,NULL)))/COUNT(DISTINCT(oracle_id))) AS red_percent,\n\t(COUNT(DISTINCT(IF(cardface.is_color_blue,oracle_id,NULL)))/COUNT(DISTINCT(oracle_id))) AS blue_percent,\n\t(COUNT(DISTINCT(IF(cardface.is_color_black,oracle_id,NULL)))/COUNT(DISTINCT(oracle_id))) AS black_percent,\n\t(COUNT(DISTINCT(IF(cardface.is_color_white,oracle_id,NULL)))/COUNT(DISTINCT(oracle_id))) AS white_percent,\n\tclassofc.id AS class_id\nFROM lore.classofc \nJOIN lore.classofc_creature ON \n\tclassofc_id =\n\tclassofc.id\nJOIN lore.creature ON \n\tcreature.id =\n\tclassofc_creature.creature_id\nJOIN lore.classofc_cardface ON \n\tclassofc_cardface.classofc_id =\n\tclassofc.id\nJOIN lore.cardface ON \n\tcardface.id =\n\tclassofc_cardface.cardface_id\nJOIN lore.card ON \n\tcard_id =\n\tcard.id\nGROUP BY classofc.id\n\n\";\n\t}else{\n\t\tif(!is_numeric($class_id)){\n\t\t\techo \"Error class_id must be numeric\\n\";\n\t\t\texit();\n\t\t}\n\n\t\t$sql = \"\nSELECT \n\tclassofc_name AS creature_class_name,\n\tcreature_name AS creature_name\nFROM lore.classofc\nJOIN lore.classofc_creature ON\n classofc_id =\n classofc.id\nJOIN lore.creature ON\n creature.id =\n classofc_creature.creature_id\nWHERE classofc.id = '$class_id'\n\";\n\t\n\n\t}\n\n\n\t$is_debug = false;\n\tif($is_debug){\n\t\techo \"<pre>$sql\";\n\t\texit();\n\t}\n\n \treturn $sql;\n }", "title": "" }, { "docid": "0d7079b4f572f20d664c381b7266bef5", "score": "0.5236498", "text": "function buildAmazonQuery() {\n \n // Make sure we actually have our necessary param\n // \n if ($this->options['secret_access_key'] == '') return false;\n \n // Set a last minute timestamp\n //\n $this->options['Timestamp'] = date('c'); \n \n // Map pre-set driver options into the request parameter array\n //\n $request_parameters = array();\n foreach ($this->request_params as $amazon_key => $option_key) {\n if (isset($this->options[$option_key]) && \n $this->options[$option_key] != '' ) {\n $request_parameters[$amazon_key] = $this->options[$option_key];\n }\n }\n \n // Amazon requires the keys to be sorted\n //\n ksort($request_parameters);\n \n // We'll be using this string to generate our signature\n $query = http_build_query($request_parameters);\n $hash_string = \"GET\\n\" . $this->options['amazon_site'] . \"\\n/onca/xml\\n\" . \n $query;\n \n // Generate a sha256 HMAC using the private key\n $hash = base64_encode(\n hash_hmac(\n 'sha256', \n $hash_string, \n $this->options['secret_access_key'], \n true\n )\n );\n \n // Put together the final query\n return 'http://' . $this->options['amazon_site'] . '/onca/xml?' . \n $query . '&Signature=' . urlencode($hash);\n }", "title": "" }, { "docid": "698afbe63a01486775348430c620298d", "score": "0.5223057", "text": "public function _buildQuery()\n {\n // added order by -- id desc for a defacto recent date sort\n $query = 'SELECT ` od.id as id, o.id as office_id, o.name as name, eo.published as published, eo.ordering as ordering '.\n 'FROM `#__pv_live_offices` `o`, `#__pv_live_election_offices` `eo` '.\n 'WHERE `o`.`id` = `eo`.`offices_id` and `eo`.`election_id` = '.(int) $this->_id.' '.\n $this->_order.' ';\n\n return $query;\n }", "title": "" }, { "docid": "16185bf217b33c59d61286b139f4e6b8", "score": "0.52205884", "text": "private function composeFinalQuery()\n {\n $finalQuery = array();\n\n if (!isset($this->params['query']) || count($this->params['query']) == 0)\n throw new \\Sherlock\\common\\exceptions\\RuntimeException(\"Search query cannot be empty.\");\n\n foreach ($this->params['query'] as $query) {\n if ($query instanceof \\Sherlock\\components\\QueryInterface)\n $finalQuery[] = '\"query\":'.$query->toJSON();\n }\n\n foreach ($this->params['filter'] as $query) {\n if ($query instanceof \\Sherlock\\components\\FilterInterface)\n $finalQuery[] = '\"filter\":'.$query->toJSON();\n }\n\n if (isset($this->params['from']))\n $finalQuery[] = '\"from\":\"'.$this->params['from'].'\"';\n\n if (isset($this->params['to']))\n $finalQuery[]= '\"to\":\"'.$this->params['to'];\n\n if (isset($this->params['timeout']))\n $finalQuery[] = '\"timeout\":\"'.$this->params['timeout'];\n\n $finalQuery = '{'.implode(',', $finalQuery).'}';\n\n return $finalQuery;\n }", "title": "" } ]
796d83444a8e38b71ed89e3488840568
find list of pages based on Subject ID
[ { "docid": "d557c79d2d1300ede6073f53cc52ec7d", "score": "0.7188762", "text": "function findPagesForSubject($subject_id){\n\tglobal $connection;\n\n\t$query = \" SELECT * FROM pages\n\t\t\t\t WHERE subject_id = {$subject_id}\n\t\t\t\t AND visible = 1\n\t\t\t\t ORDER BY position ASC\";\n\t$pages_q = mysqli_query($connection, $query);\n\tconfirmQuery($pages_q);\n\treturn $pages_q;\n}", "title": "" } ]
[ { "docid": "8985fc79d2b5d09bdf8960d82031138c", "score": "0.7063715", "text": "function has_unused_subject_id($subject) {\n // still using the passed-in subject's id value\n\n $page_names = [];\n\n // Make sure $id value is an int since it's\n // possible it came from a post request\n $id = (int) $subject[\"id\"];\n\n $result = find_all_pages();\n\n // Loop through all the pages and check all their subject_ids\n while ($page = mysqli_fetch_assoc($result)) {\n // Make sure $subject_id value is an int\n $subject_id = (int) $page[\"subject_id\"];\n\n // Append menu_name of page still using the passed-in\n // subject's id into 'page_names' array\n if ($id === $subject_id) {\n $page_names[] = $page[\"menu_name\"];\n }\n }\n\n mysqli_free_result($result);\n return $page_names;\n\n }", "title": "" }, { "docid": "aa6c19d491b8ac91b5476a2f8913a0dd", "score": "0.67748725", "text": "function findSelectedSubject_Page(){\n\tglobal $current_subject;\n\tglobal $current_page;\n\n\tif(isset($_GET[\"subject\"])){\n\t\t$current_subject = findSelectedSubjectById($_GET[\"subject\"]);\n\t\t$current_page = null;\n\t} elseif (isset($_GET[\"page\"])){\n\t\t$current_subject = null;\n\t\t$current_page = findSelectedPageById($_GET[\"page\"]);\n\t} else{\n\t\t$current_subject = null;\n\t\t$current_page = null;\n\t}\n}", "title": "" }, { "docid": "20c611c737df656fa16efa5ff1211a8e", "score": "0.6678971", "text": "function get_pages($page_id){\n global $connection;\n\n $query_list = \"SELECT * \";\n $query_list .= \"FROM pages \";\n // $query_list .= \"WHERE visible = 1 \";\n $query_list .= \"WHERE subject_id = {$page_id} \";\n $query_list .= \"ORDER BY position ASC\";\n $result_list = mysqli_query($connection,$query_list);\n\n return $result_list;\n }", "title": "" }, { "docid": "41080982561b0ac0f28c9688f8d6b27a", "score": "0.6565181", "text": "function findPages ($uid, &$v1, &$tpT, &$pC) {\r\n $GLOBALS['TYPO3_DB']->sql_free_result($subpages);\r\n $subpages = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\r\n 'uid, pid, title',\r\n 'pages',\r\n 'deleted = 0 AND hidden = 0'\r\n . ' AND pid = ' . $uid\r\n );\r\n if ($subpages) {\r\n while($row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($subpages)) {\r\n $v1[$pC] = $row['uid'];\r\n $tpT[$pC] = $row['title'];\r\n $pC++;\r\n $id = $row['uid'];\r\n $this->findPages ($id, $v1, $tpT, $pC);\r\n }\r\n } else {\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "568f7326a83b24981eacb19f78916803", "score": "0.6400022", "text": "function get_pages_public($page_id){\n global $connection;\n\n $query_list = \"SELECT * \";\n $query_list .= \"FROM pages \";\n $query_list .= \"WHERE visible = 1 \";\n $query_list .= \"AND subject_id = {$page_id} \";\n $query_list .= \"ORDER BY position ASC\";\n $result_list = mysqli_query($connection,$query_list);\n\n return $result_list;\n }", "title": "" }, { "docid": "14e4541e12625cef080acb55c66de574", "score": "0.6222869", "text": "public function getPages();", "title": "" }, { "docid": "14e4541e12625cef080acb55c66de574", "score": "0.6222869", "text": "public function getPages();", "title": "" }, { "docid": "5726bd62387aba7b0d24118c58fcf94a", "score": "0.6166365", "text": "function find_all_pages($id,$admin=true)\n{\n\tglobal $conn;\n\t$query=\"select * from pages where \";\n if(!$admin)\n $query.=\"visible=1 and \";\n $query.=\"subject_id=\".$id;\n $res=mysqli_query($conn,$query);\n return $res;\n}", "title": "" }, { "docid": "d5b5a4b9e09930952fafef95587338c5", "score": "0.61343706", "text": "function GetPagesList( $sFormId )\n {\n global $CNK;\n $aIds = $aTitles = array();\n\n $CNK->__oDb->ExecQuery(\"SELECT pg_id, pg_title FROM pf_pages WHERE pg_frm_id='{$sFormId}' ORDER BY pg_num ASC\");\n while ( $aRes = $CNK->__oDb->Fetch() )\n {\n $aIds[] = $aRes['pg_id']; $aTitles[] = $aRes['pg_title'];\n }\n return array( $aIds, $aTitles );\n }", "title": "" }, { "docid": "a906241e493aa364cf4de126b0ebae4d", "score": "0.6079971", "text": "public function subjectsList($subject)\n {\n\n $subjects = SubjectTb::where(['degree_id'=>$subject,'is_active'=>1])\n ->orderBy('semester_id', 'ASC')\n ->paginate(15)->onEachSide(5); \n \n if($subjects)\n {\n return view('front.secrecyusers.subject-list')->with(['subjects'=>$subjects]);\n }\n else\n {\n Session::flash('error','No subject found in this degree.');\n return redirect()->back();\n }\n }", "title": "" }, { "docid": "6b514f19c63d5af663ac1c73d1145360", "score": "0.599256", "text": "public function getSearchablePages($arrPages, $intRoot=0)\r\r\n\t{\r\r\n\t\t$arrRoot = array();\r\r\n\r\r\n\t\tif ($intRoot > 0)\r\r\n\t\t{\r\r\n\t\t\t$arrRoot = $this->getChildRecords($intRoot, 'tl_page', true);\r\r\n\t\t}\r\r\n\r\r\n\t\t$objNewsletter = $this->Database->execute(\"SELECT id, jumpTo FROM tl_newsletter_channel\");\r\r\n\r\r\n\t\t// Walk through each channel\r\r\n\t\twhile ($objNewsletter->next())\r\r\n\t\t{\r\r\n\t\t\tif (is_array($arrRoot) && count($arrRoot) > 0 && !in_array($objNewsletter->jumpTo, $arrRoot))\r\r\n\t\t\t{\r\r\n\t\t\t\tcontinue;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\t// Get default URL\r\r\n\t\t\t$objParent = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=? AND (start=? OR start<?) AND (stop=? OR stop>?) AND published=?\")\r\r\n\t\t\t\t\t\t\t\t\t\t->limit(1)\r\r\n\t\t\t\t\t\t\t\t\t\t->execute($objNewsletter->jumpTo, '', time(), '', time(), 1);\r\r\n\r\r\n\t\t\tif ($objParent->numRows < 1)\r\r\n\t\t\t{\r\r\n\t\t\t\tcontinue;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\t$strUrl = $this->generateFrontendUrl($objParent->fetchAssoc(), '/items/%s');\r\r\n\r\r\n\t\t\t// Get items\r\r\n\t\t\t$objItem = $this->Database->prepare(\"SELECT * FROM tl_newsletter WHERE pid=? AND sent=? ORDER BY date DESC\")\r\r\n\t\t\t\t\t\t\t\t\t ->execute($objNewsletter->id, 1);\r\r\n\r\r\n\t\t\t// Add items to the indexer\r\r\n\t\t\twhile ($objItem->next())\r\r\n\t\t\t{\r\r\n\t\t\t\t$arrPages[] = sprintf($strUrl, ((strlen($objItem->alias) && !$GLOBALS['TL_CONFIG']['disableAlias']) ? $objItem->alias : $objItem->id));\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\treturn $arrPages;\r\r\n\t}", "title": "" }, { "docid": "222f18305caba2e85d73ed6cf46e4271", "score": "0.59524953", "text": "public function getPageList() {\n\t\tglobal $TYPO3_DB;\n\t\tglobal $LANG;\n\n\t\t$records[] = array('', $LANG->getLL('selectpage'), '');\n\t\t$dbres = $TYPO3_DB->exec_SELECTquery('DISTINCT pid', 'tx_devlog', '', 'pid ASC');\n\n\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres)) {\n\n\t\t\t\t// Retrieve the stored page information\n\t\t\t$page = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getRecord('pages', $row['pid']);\n\t\t\t$elementTitle = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getRecordTitle('pages', $page, 1);\n\t\t\t$records[] = array($row['pid'], $row['pid'] . ' - ' . $elementTitle, 'page');\n\t\t}\n\t\treturn $records;\n\t}", "title": "" }, { "docid": "339c7dd2356120810d9aaec719ceb2c8", "score": "0.5842557", "text": "function GetPagesIds( $sFormId )\n {\n global $CNK;\n $aResult = array();\n\n $mQRid = $CNK->__oDb->ExecQuery(\"SELECT pg_id FROM pf_pages WHERE pg_frm_id='{$sFormId}' ORDER BY pg_num ASC\");\n while ( $aRes = $CNK->__oDb->Fetch($mQRid) )\n $aResult[] = $aRes['pg_id'];\n return $aResult;\n }", "title": "" }, { "docid": "819d304afa49a6933d1c6af504dc31ca", "score": "0.58413184", "text": "public function getPagesEntries()\n {\n $sql='SELECT idpages, title, published FROM pages';\n return $this->_db->fetchAll($sql);\n }", "title": "" }, { "docid": "3feb30d13ad310f147bb01f7b16a01c6", "score": "0.5840881", "text": "function generatePageArray() {\n\t\t// Get pages\n\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t'title,uid,author,author_email',\n\t\t\t'pages',\n\t\t\t'uid IN (' . $this->pid_list . ')');\n\n\t\t$this->pageArray = array();\n\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t$this->pageArray[$row['uid']] = $row;\n\t\t}\n\t}", "title": "" }, { "docid": "c870eaed433c690d4149d0a86b910f6c", "score": "0.5836061", "text": "function get_subject_resources($subject_id, $order_by = \"title asc\", $numrecs = 1000000)\n\t{\n\t\t$qry = \"SELECT R.id, R.title from gh_resource R, gh_subject S, gh_resource_subject RS \n\t\t\t\tWHERE S.id = RS.subject_id AND RS.resource_id = R.id AND S.id = \" . $subject_id . \" \n\t\t\t\tORDER BY \" . $order_by . \" LIMIT \" . $numrecs;\n\t\t$query = $this -> db -> query ($qry);\n\t\treturn $query;\t\n\t}", "title": "" }, { "docid": "c567daa81ed89df23f5e2aac8278ec36", "score": "0.5829753", "text": "public function get_pages(){\n return $this->StaticPage->find('all', array('order'=>array('StaticPage.ordered'=>'ASC'),'fields'=>array('StaticPage.id', 'StaticPage.title', 'StaticPage.slug'), 'conditions'=>array('StaticPage.published'=>1)));\n }", "title": "" }, { "docid": "a1c8b0704637ceadb7eebca1e17e2a4b", "score": "0.57452655", "text": "function getSubjectList()\n{\n return array(\n 1 => \"MATH\",\n 2 => \"CHEMIST\",\n 3 => \"PHYSIC\",\n 4 => \"BIO\",\n );\n}", "title": "" }, { "docid": "53a4d4784f496468e93e4e2b2c431958", "score": "0.555896", "text": "function navigation($subject_array, $page_array){\n\t$output = \"<ul class=\\\"subjects\\\">\";\n\t$subjects = findAllSubjects();\n\twhile($subject_f = mysqli_fetch_assoc($subjects)){\n\t\t$output .= \"<li \";\n\t\t// check to find the selected subject\n\t\tif($subject_f[\"id\"] == $subject_array[\"id\"] ){\n\t\t\t$output .= \"class=\\\"selected\\\"\";\n\t\t} \n\t\t$output .= \">\";\n\t\t$output .= \"<a href=\\\"manage_content.php?subject=\".urlencode($subject_f[\"id\"]).\"\\\">\". $subject_f[\"menu_name\"].\"</a></li>\";\n\n\t\t$pages = findPagesForSubject($subject_f[\"id\"]);\n\t\t$output .= \"<ul class=\\\"pages\\\">\";\n\t\t\twhile($pages_f = mysqli_fetch_assoc($pages)){\n\t\t\t\t$output .= \"<li \";\n\n\t\t\t// check to find the selected page\n\t\t\tif($pages_f[\"id\"] == $page_array[\"id\"] ){\n\t\t\t\t$output .= \"class=\\\"selected\\\" \";\n\t\t\t} \n\t\t\t$output .= \"><a href=\\\"manage_content.php?page=\".urlencode($pages_f[\"id\"]).\"\\\">\". $pages_f[\"menu_name\"].\"</a></li>\";\n\t\t\t}\n\t\t$output .= \"</ul>\";\n\t}\n\n\t$output .= \"</ul>\";\n\treturn $output;\n}", "title": "" }, { "docid": "c110c24831109ff3cd83fe5e3151d1c3", "score": "0.55584085", "text": "public function list(){\n\t\t$list = Array();\n\t\t$query = sfCore::$db->query(\"SELECT `id` FROM `swoosh_pages`\");\n\t\tforeach($query as $page){\n\t\t\tarray_push($list, $page);\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "07457a43be58f13f3eff1e6cb0b395cf", "score": "0.5535129", "text": "private function getPages() {\n $pages = array();\n $start = $this->_pageId - 2;\n $end = $this->_pageId + 2;\n \n if ($end > $this->_totalPages) {\n $end = $this->_totalPages;\n }\n \n for ($i = $start; $i <= $end ;$i++) {\n if ($i >= 1) {\n $pages[] = array(\n 'url' => '/projecten/' . $i . '/',\n 'name' => $i\n );\n }\n }\n \n return $pages;\n }", "title": "" }, { "docid": "55fa7ae1861fcb7649fb42384d8551ef", "score": "0.5529552", "text": "public function listPagesWithCampaignComponent()\n {\n $result = [];\n $pages = Page::withComponent('campaignTemplate')->sortBy('baseFileName')->all();\n\n foreach ($pages as $page) {\n $baseName = $page->getBaseFileName();\n $result[$baseName] = $page;\n }\n\n return $result;\n }", "title": "" }, { "docid": "2730273c589d5a248cb5d45026ff0428", "score": "0.54832983", "text": "public static function getList()\n {\n $db = Loader::db();\n $r = $db->query(\"select Pages.cID from Pages inner join Collections on Pages.cID = Collections.cID where cFilename is not null order by cDateModified desc\");\n $pages = array();\n while ($row = $r->fetch()) {\n $c = Page::getByID($row['cID']);\n $pages[] = $c;\n }\n\n return $pages;\n }", "title": "" }, { "docid": "4342a7204bdae20f6edd73693c68f121", "score": "0.5475191", "text": "public function getDocumentsByCaseIdAndSubject($caseId, $subject) {\n $documents = array();\n\n $dao = new CRM_Documents_DAO_Document();\n $sql = \"SELECT DISTINCT `doc`.`id`, `doc`.* FROM `civicrm_document` `doc` INNER JOIN `civicrm_document_case` `doc_case` ON `doc`.`id` = `doc_case`.`document_id` WHERE `doc_case`.`case_id` = %1 AND `subject` = %2\";\n $docsDao = $dao->executeQuery(\n $sql, array(\n '1' => array($caseId, 'Integer'),\n '2' => array($subject, 'String'),\n )\n );\n while($docsDao->fetch()) {\n $doc = new CRM_Documents_Entity_Document();\n $this->loadDocByDao($doc, $docsDao);\n $documents[] = $doc;\n }\n\n return $documents;\n }", "title": "" }, { "docid": "54cbf2ac07e6266984bc119e02365b18", "score": "0.54698664", "text": "function get_all_subjects($params = array())\n {\n $this->db->order_by('id', 'asc');\n if (isset($params) && !empty($params)) {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('subjects')->result_array();\n }", "title": "" }, { "docid": "36e478ace6c7f6caf74b72f57c38b3c9", "score": "0.54559314", "text": "public function get_pages()\r\n {\r\n $result=$this->db->query(\"select cms_title from \".$this->prefix.\"cms \");\r\n return $result;\r\n }", "title": "" }, { "docid": "9ac78b7c861bb3f7614718ea1e68535f", "score": "0.5445371", "text": "public function getBySubjectId($subjectId) : array;", "title": "" }, { "docid": "0520203412e2a855bf8c6607c3376914", "score": "0.5442996", "text": "public function getAllPageObjects($searchFrom) {\n unset($this->listOfPages);\n $this->listOfPages[$this->homepage->getID()] = $this->homepage;\n\t // putt all dbID to Object in a sessionmapping for recovery \n SESSION::get_session()->dbmapping[$this->homepage->getID()] = $this->homepage;\n $this->getAllPageObjectsRecursive($searchFrom);\n return $this->listOfPages;\n }", "title": "" }, { "docid": "904119272abb9700ab200f50bd9ffb8e", "score": "0.5438501", "text": "function getChapter($subject_id){\n \t$query = \"SELECT chapter.chapter_id, chapter.chapter_name FROM chapter WHERE chapter.subject_id = {$subject_id}\";\n\t\n\t\t$pdoconn = new PdoConnection();\n\t\t$pdo = $pdoconn->connectPdo();\n\t\t$rs = $pdo->query($query);\n\t\t\n\t\t$chapters = array();\n\t\twhile($row = $rs->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$chapters[$row[\"chapter_id\"]] = $row[\"chapter_name\"];\n\t\t}\n\t\treturn $chapters;\n\t}", "title": "" }, { "docid": "438fa24269875cd3b8bdce5564feb692", "score": "0.5428498", "text": "public function betterGetPage($id) {}", "title": "" }, { "docid": "e22d799841a687c90157a653f65e2af9", "score": "0.54281205", "text": "public function getDocumentsByContactIdAndSubject($contactId, $subject) {\n $documents = array();\n\n $dao = new CRM_Documents_DAO_Document();\n $sql = \"SELECT DISTINCT `doc`.`id`, `doc`.* FROM `civicrm_document` `doc` INNER JOIN `civicrm_document_contact` `doc_contact` ON `doc`.`id` = `doc_contact`.`document_id` LEFT JOIN `civicrm_document_case` `doc_case` ON `doc`.`id` = `doc_case`.`document_id` WHERE `doc_case`.`id` IS NULL AND (`doc`.`added_by` = %1 OR `doc`.`updated_by` = %1 OR `doc_contact`.`contact_id` = %1) AND `subject` = %2\";\n $docsDao = $dao->executeQuery(\n $sql, array(\n '1' => array($contactId, 'Integer'),\n '2' => array($subject, 'String'),\n )\n );\n while($docsDao->fetch()) {\n $doc = new CRM_Documents_Entity_Document();\n $this->loadDocByDao($doc, $docsDao);\n $documents[] = $doc;\n }\n\n return $documents;\n }", "title": "" }, { "docid": "a7ce019fc01197a27fb9d494f6921735", "score": "0.5424554", "text": "public function getPagesData($id=false)\n\t{\n\t\t\tif($id)\n\t\t\t{\n\t\t\t$rows\t=$this->db->get_row('tbl_cms',array('cms_id'=>$id));\n\t\t\t}else\n\t\t\t{\n\t\t\t$this->db->tail=\" order by cms_id desc\";\n\t\t\t$rows\t=$this->db->get_rows('tbl_cms');\n\t\t\t$this->db->tail=\"\";\n\t\t\t}\n\t\t\treturn $rows;\n\t}", "title": "" }, { "docid": "82250a66e80ea7ac5da1179343eb34bc", "score": "0.5412839", "text": "public function showPages()\n {\n $sql = 'SELECT *, CASE WHEN (deleted <= NOW()) THEN \"isDeleted\" WHEN (published <= NOW()) THEN \"isPublished\" ELSE \"notPublished\" END AS status FROM content WHERE type=?;';\n $this->db->connect();\n $resultset = $this->db->executeFetchAll($sql, [\"page\"]);\n return $resultset;\n }", "title": "" }, { "docid": "a581b6cb6aed026ae3525cc82ba82c24", "score": "0.5405829", "text": "public function indexAction()\r\n {\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n \r\n // Get subject and check auth\r\n $subject = Engine_Api::_()->core()->getSubject('page');\r\n }", "title": "" }, { "docid": "bb556ee507ecb8f08bb832ba622019ba", "score": "0.5394016", "text": "function navigation($subject_id,$page_id,$layout)\n{\n\tglobal $conn;\n\t$subject_id=mysqli_real_escape_string($conn,$subject_id);\n\t$page_id=mysqli_real_escape_string($conn,$page_id);\n if($page_id!=null)\n\t{$current_page=find_page_by_id($page_id);}\n //echo $current_page['subject_id'];}\n //$current_page=mysqli_fetch_assoc($current_page);}\nelse\n{\n $current_page=null;\n}\nif($layout==\"admin\")\n\t$res2=find_all_subjects();\nelse\n{\n $res2=find_all_subjects(false);\n}\n\t//echo $res2;\n confirm_query($res2,$conn);\n $output =\"<ul class='subjects'>\";\n if($layout==\"admin\")\n{\n while($row=mysqli_fetch_assoc($res2))\n {\n if($layout==\"public\")\n $output .=\"<a href='index.php?subject_id=\".urlencode($row[\"id\"]).\"'>\".\"<li \";\n else\n {\n $output .=\"<a href='manage_content.php?subject_id=\".urlencode($row[\"id\"]).\"'>\".\"<li \";\n }\n if($row[\"id\"]==$subject_id)\n $output .=\"class='selected'\";\n $output .=\">\".$row[\"menu_name\"].\"</a></li>\";\n $res=find_all_pages($row[\"id\"]);\n confirm_query($res,$conn);\n //if($row[\"id\"]==$subject_id || $row[\"id\"]==$current_page['subject_id'])\n $output .=\"<ul class='pages'>\";\n while($row1=mysqli_fetch_assoc($res))\n {\n if($layout==\"public\")\n $output .=\"<a href='index.php?page_id=\".urlencode($row1[\"id\"]).\"'>\".\"<li \";\n else\n {\n $output .=\"<a href='manage_content.php?page_id=\".urlencode($row1[\"id\"]).\"'>\".\"<li \";\n }\n \n if($row1[\"id\"]==$page_id)\n $output .=\"class='selected'\";\n $output .=\">\".$row1[\"menu_name\"].\"</li>\".\"</a>\";\n }\n $output .=\"</ul>\";\n }\n $output .=\"</ul>\";\n }\n else\n {\n while($row=mysqli_fetch_assoc($res2))\n {\n $output .=\"<a href='index.php?subject_id=\".urlencode($row[\"id\"]).\"'>\".\"<li \";\n if($row[\"id\"]==$subject_id)\n $output .=\"class='selected'\";\n $output .=\">\".$row[\"menu_name\"].\"</a></li>\";\n $res=find_all_pages($row[\"id\"]);\n confirm_query($res,$conn);\n if($row[\"id\"]==$subject_id || $row[\"id\"]==$current_page['subject_id'])\n {$output .=\"<ul class='pages'>\";\n while($row1=mysqli_fetch_assoc($res))\n {\n $output .=\"<a href='index.php?page_id=\".urlencode($row1[\"id\"]).\"'>\".\"<li \";\n if($row1[\"id\"]==$page_id)\n $output .=\"class='selected'\";\n $output .=\">\".$row1[\"menu_name\"].\"</li>\".\"</a>\";\n}\n$output .=\"</ul>\";}\n}\n$output .=\"</ul>\";\n }\n//echo $output;\nreturn $output;\n}", "title": "" }, { "docid": "e5d01f3104127683b984ca9e277785fa", "score": "0.53861195", "text": "public function GetFooterPages(){\n\t\t$stmt = $this->Conn->prepare(\"SELECT Id, TitleDutch, TitleEnglish FROM Pages\");\n\t\t$stmt->execute();\n\t\t$stmt->store_result();\n\t\t$stmt-> bind_result($Id, $TitleDutch, $TitleEnglish); \n\t\t$pages = array();\n\t\twhile ($stmt -> fetch()) { \n\t\t\t$page = array(\"ID\"=>$Id, \"EnglishTitle\"=>$TitleEnglish, \"DutchTitle\"=>$TitleDutch);\n\t\t\t$pages[] = $page;\n\t\t}\n\t\treturn $pages;\n\t}", "title": "" }, { "docid": "e59175c7666d60c04546ec2b18332dd0", "score": "0.53826934", "text": "public function fetchAllPublishedPages()\n {\n $results = $this->fetchAllAsArray(\n array(\n 'where' => array(\n 'status = ? AND content_type = ?' => array(1, 2)\n ),\n 'order' => array (\n 'id DESC'\n ),\n 'eager' => array(\n 'comments' => array(\n 'eager' => array(\n 'commentinfo'\n )\n ),\n 'tags',\n 'postinfo',\n 'users',\n ),\n )\n );\n Foresmo::dateFilter($results);\n Foresmo::escape($results);\n return $results;\n }", "title": "" }, { "docid": "5d0d87d8e494bfe28ffe79ec79060fe9", "score": "0.5371687", "text": "private function getSubjectContent($year,$month,$subject){\n $url = \"{$this->main_url}/{$this->listName}/{$year}-{$month}/{$subject}.html\";\n return $this->simplePostRequest($url);\n }", "title": "" }, { "docid": "706756e12a06910f107262684efd6919", "score": "0.53691393", "text": "function ft_pageLookup($id, $pageonly = true) {\r\n global $conf, $rootFolder;\r\n $id = preg_quote($id, '/');\r\n $pages = file($rootFolder . '/data/index' . '/page.idx');\r\n if ($id) $pages = array_values(preg_grep('/' . $id . '/', $pages));\r\n $cnt = count($pages);\r\n for ($i = 0;$i < $cnt;$i++) {\r\n if ($pageonly) {\r\n if (!preg_match('/' . $id . '/', noNS($pages[$i]))) {\r\n unset($pages[$i]);\r\n continue;\r\n }\r\n }\r\n if (!page_exists($pages[$i])) {\r\n unset($pages[$i]);\r\n continue;\r\n }\r\n }\r\n $pages = array_filter($pages, 'isVisiblePage'); // discard hidden pages\r\n if (!count($pages)) return array();\r\n // check ACL permissions\r\n foreach (array_keys($pages) as $idx) {\r\n if (auth_quickaclcheck($pages[$idx]) < AUTH_READ) {\r\n unset($pages[$idx]);\r\n }\r\n }\r\n $pages = array_map('trim', $pages);\r\n sort($pages);\r\n return $pages;\r\n}", "title": "" }, { "docid": "4c3df5524dabede7b8de38d63212e94d", "score": "0.53637135", "text": "protected function getPages($ids)\n {\n // Check empty set\n if (empty($ids)) {\n return new ArrayList();\n }\n\n $recordClass = $this->recordClass;\n\n // Bypass versioned filter\n if ($recordClass::has_extension(Versioned::class)) {\n // Workaround for get_including_deleted not supporting byIDs filter very well\n // Ensure we select both stage / live records\n $pages = Versioned::get_including_deleted($recordClass)->byIDs($ids);\n } else {\n $pages = DataObject::get($recordClass)->byIDs($ids);\n }\n\n return $pages;\n }", "title": "" }, { "docid": "bb0230f85475b0fa1890104d2aae40b6", "score": "0.53449446", "text": "public function getPageOfStudents($students, $studentid=0) {\n $currentpagemembers=[];\n $pages=[];\n $studentpage=-1;\n //build array of 3 student pages\n foreach($students as $student){\n if(count($currentpagemembers)>2){\n $pages[]=$currentpagemembers;\n $currentpagemembers=[];\n }\n $currentpagemembers[]=$student->userid;\n if($studentid>0 && $student->userid ==$studentid ){\n $studentpage=count($pages);\n }\n }\n if(count($currentpagemembers)>0){\n $pages[]=$currentpagemembers;\n }\n //return page details\n $ret = [$pages,$studentpage];\n return $ret;\n }", "title": "" }, { "docid": "8a95e96cac54aad08e8e8871b109e99b", "score": "0.5341463", "text": "protected function getSubpages() {\n\t\treturn $this->title->getSubpages();\n\t}", "title": "" }, { "docid": "eb7e91a30e02d9d0bef7e1fe7828e246", "score": "0.53355664", "text": "public function fetchPublishedPages()\n {\n $results = $this->fetchAllAsArray(\n array(\n 'where' => array(\n 'status = ? AND content_type = ?' => array(1, 2)\n ),\n 'order' => array (\n 'id DESC'\n ),\n 'paging' => $this->posts_per_page,\n 'page' => 1,\n 'eager' => array(\n 'comments' => array(\n 'eager' => array(\n 'commentinfo'\n )\n ),\n 'tags',\n 'postinfo',\n 'users',\n ),\n )\n );\n Foresmo::dateFilter($results);\n Foresmo::escape($results);\n return $results;\n }", "title": "" }, { "docid": "112754ad19d06f5ea25bd154b6744fda", "score": "0.5332343", "text": "public function findAuthorshipsOfPage($pageId);", "title": "" }, { "docid": "859a6d43e44461caf61ebebcca2ba929", "score": "0.5328481", "text": "function scrapeSubjects($decodedResponse) {\n\t$array = array();\n\t\n\tforeach ($decodedResponse[\"data\"] as $info => $value) {\n\t\t$item = $value[\"subject\"];\n\t\n\t\tif (! in_array($item, $array)) {\n\t\t\tarray_push($array, $item);\n\t\t}\n\t}\n\t\n\treturn $array;\n}", "title": "" }, { "docid": "2e0e49afb579f4042c2d8d57f1defd07", "score": "0.53221583", "text": "public abstract function getPageInfos();", "title": "" }, { "docid": "7b6378374250e947beef83059ad822af", "score": "0.53082293", "text": "public function readPages(): array{\n\n $req = (\"\n SELECT\n p.id AS p_id,\n p.name AS p_name\n FROM \n page p\n \");\n\n $res = $this::$conn->query($req);\n\n while ($row = $res->fetch(PDO::FETCH_OBJ))\n {\n\n /*if ($pages[$row->p_id] == null)\n {\n $pages[$row->p_id] = new Page($row->p_id, new TextElement($row->p_name));\n }\n \n $pages[$row->p_id] = new Page($row->p_id, new TextElement($row->p_name));\n $pages[$row->p_id]->addArticle($row->a_id);*/\n $page = new Page($row->p_id, new TextElement($row->p_name));\n $this->pages[$row->p_id] = $page;\n\n }\n return $this->pages;\n }", "title": "" }, { "docid": "c55a07ae80d7e257b50c788fffb3808e", "score": "0.5305502", "text": "function get_pages(){\n $pages = get_pages();\n $page_arr = array();\n if(is_array($pages)){\n foreach($pages as $k=>$v){\n $page_arr[$v->ID] = $v->post_title;\n }\n }\n return $page_arr;\n }", "title": "" }, { "docid": "b6ba754eeaeaaa333729d05562b914b3", "score": "0.53034335", "text": "function get_pages() {\n $pageRepository = new PageRepository();\n $pages = $pageRepository->getAll('', 0, 1);\n return $pages;\n}", "title": "" }, { "docid": "7ed076bab9b6ca1bfa21649e6e0f1b6a", "score": "0.5300388", "text": "function get_subject($id)\n {\n return $this->db->get_where('subjects', array('id' => $id))->row_array();\n }", "title": "" }, { "docid": "c47cfd909b91a95a6ba4b9a7c46405a8", "score": "0.52978176", "text": "private function loadSubjects() {\n $res = $this->subjectRepository->findAll();\n\n foreach($res as $row){ \n $this->ezb_to_t3_subjects[$row->getEzbnotation()]['ezbnotation'] = $row->getEzbnotation();\n $this->ezb_to_t3_subjects[$row->getEzbnotation()]['title'] = $row->getTitle();\n $this->ezb_to_t3_subjects[$row->getEzbnotation()]['uid'] = $row->getUid();\n \n $this->t3_to_ezb_subjects[$row->getUid()]['uid'] = $row->getUid();\n $this->t3_to_ezb_subjects[$row->getUid()]['ezbnotation'] = $row->getEzbnotation();\n $this->t3_to_ezb_subjects[$row->getUid()]['title'] = $row->getTitle();\n }\n }", "title": "" }, { "docid": "25fb1fabf6fd861b6eac62d26365510f", "score": "0.52840704", "text": "function find_default_page($subject_id){\r\n\t $page_set = find_pages_for_subject($subject_id, true);\r\n\t if($first_page = mysqli_fetch_assoc($page_set)){\r\n\t\t return $first_page;\r\n\t }else{\r\n\t\t return null;\r\n\t }\r\n }", "title": "" }, { "docid": "bf6e0c442c7425725fa3150932dd1d0f", "score": "0.5275548", "text": "public function getInfoPages() {\n $query = $this->db->prepare(\"SELECT * FROM `info_pages` WHERE `public` = 1 ORDER BY `id`\");\n $query->execute();\n $result = $query->get_result();\n $query->close();\n\n $data = [];\n\n while($row = $result->fetch_assoc()) {\n $data[$row['url']]['title'] = $row['title'];\n $data[$row['url']]['url'] = $row['url'];\n }\n\n return $data;\n }", "title": "" }, { "docid": "e5765239f20dd93dfa36ffed9083613a", "score": "0.52737993", "text": "public function getPage();", "title": "" }, { "docid": "0fb5afe245591358d1f2bc76def5b9d9", "score": "0.52727306", "text": "private function resultPages () {\n\t\t\n\t}", "title": "" }, { "docid": "33f30353ae41b84b8314e08087e079dd", "score": "0.5268624", "text": "public function fetchAllPages()\n {\n $results = $this->fetchAllAsArray(\n array(\n 'where' => array(\n 'content_type = ?' => array(2)\n ),\n 'order' => array (\n 'id DESC'\n ),\n 'eager' => array(\n 'comments' => array(\n 'eager' => array(\n 'commentinfo'\n )\n ),\n 'tags',\n 'postinfo',\n 'users',\n ),\n )\n );\n Foresmo::dateFilter($results);\n Foresmo::escape($results);\n return $results;\n }", "title": "" }, { "docid": "697dc0d05a8e18f24b2698279e07dbf2", "score": "0.5263603", "text": "public function listForPageAction()\n {\n $pageUid = 0;\n /** @var PageRepository $repository */\n $repository = $this->objectManager->get(PageRepository::class);\n $search = $this->processSearch();\n $this->view->assign('search', $search);\n //\n // Page uid is passed by a link through other statistic views\n if ($this->request->hasArgument('uid')) {\n $pageUid = (int)$this->request->getArgument('uid');\n }\n //\n // Page uid is passed by search form\n if ($pageUid === 0 && (int)$search['uid'] > 0) {\n $pageUid = (int)$search['uid'];\n }\n //\n // Try to read page - is it accessible?\n if($pageUid > 0) {\n if(in_array($pageUid, $this->accessiblePages) || $this->isAdmin) {\n $page = $repository->findByUid($pageUid);\n //\n // Page found - read related tracking data\n if ($page) {\n $this->view->assign('page', $page);\n $type = 'pageview';\n $tracks = $this->trackRepository->findByTypeAndUid($type, $pageUid);\n $count = $this->trackRepository->countByTypeAndUid($type, $pageUid);\n $this->view->assign('count', $count);\n try {\n $dataByDate = DataTransformer::transform($tracks, 'day');\n $this->view->assign('dataByDate', $dataByDate);\n $dataByFrontendUser = DataTransformer::transform($tracks, 'feuser');\n $this->view->assign('dataByFrontendUser', $dataByFrontendUser);\n } catch (Exception $e) {\n $messageTitle = 'Error';\n $messageBody = 'DataTransformer: ' . $e->getMessage();\n $this->addFlashMessage($messageBody, $messageTitle, FlashMessage::ERROR);\n }\n } else {\n $this->view->assign('notFound', 1);\n }\n }\n else {\n $messageTitle = 'Error';\n $messageBody = 'Page authorization denied!';\n $this->addFlashMessage($messageBody, $messageTitle, FlashMessage::ERROR);\n }\n }\n else {\n // Search for pages\n if (isset($search['submit'])) {\n // ..but only accessible pages\n if(!$this->isAdmin) {\n $items = $repository->searchByTitle($search['title'], $this->accessiblePages);\n }\n else{\n $items = $repository->searchByTitle($search['title']);\n }\n if(count($items) === 0) {\n $messageTitle = 'Information';\n $messageBody = 'No pages found!';\n $this->addFlashMessage($messageBody, $messageTitle, FlashMessage::INFO);\n }\n $this->view->assign('items', $items);\n }\n }\n }", "title": "" }, { "docid": "fd9e9ae1a352cf554eea6690d7186449", "score": "0.52626354", "text": "protected function getAllPages()\r\n\t{\r\n\t\treturn $this->documentHelper->getElementsByRole('div', 'page', true);\r\n\t}", "title": "" }, { "docid": "54518e421a1f283f8f61f111c40eab1d", "score": "0.52599823", "text": "function fn_twigmo_get_pages(\n &$params,\n &$join,\n &$condition,\n &$fields,\n &$group_by,\n &$sortings,\n &$lang_code\n) {\n if (!empty($params['page_types'])) {\n $condition['twg_pages_page_type'] = db_quote(\n \" AND ?:pages.page_type IN (?a)\",\n $params['page_types']\n );\n }\n}", "title": "" }, { "docid": "0d9081607727dae449be8f2773ab4019", "score": "0.5258799", "text": "function subject($param1 = '', $param2 = '') {\n\t\t\n\t\t\n\n\n if ($this->session->userdata('parent_login') != 1)\n redirect(base_url(), 'refresh');\n\n\n\n $parent_profile = $this->db->get_where('student', array(\n 'student_id' => $this->session->userdata('student_id')\n ))->row();\n\n $parent_class_id = $parent_profile->class_id;\n\n $page_data['subjects'] = $this->db->get_where('subject', array(\n 'class_id' => $parent_class_id\n ))->result_array();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t$login_type = $this->session->userdata('login_type');\n $user_id = $this->session->userdata($login_type . '_id');\n\t\t\n\t\t$this->db->select('student.class_id,class.name as cname,subject.name as sname,teacher.name as tname');\n\t\t$this->db->from('student,class,subject,teacher');\n\t\t$this->db->where('student.student_id',$user_id);\n\t\t$this->db->where('class.class_id =student.class_id and subject.class_id = student.class_id and teacher.teacher_id = subject.teacher_id');\n\t\t$query = $this->db->get_where();\n\t\t\n\t\t$page_data['psdata']= $query->result_array();\n\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\n $page_data['page_name'] = 'subject';\n\n $page_data['page_title'] = get_phrase('subjects_list');\n\n $this->load->view('index', $page_data);\n }", "title": "" }, { "docid": "b913106c008f56b6d2836c1f6d9e71c7", "score": "0.5235615", "text": "public function GetAllPages() {\n $sql = \"SELECT * FROM `pages` WHERE `page_parent` = '0' ORDER BY `page_type` ASC\";\n $result = $this->_mysqli->query($sql);\n if ($result->num_rows > 0) {\n\n while ($rows = $result->fetch_array(MYSQLI_ASSOC)) {\n\n $this->pages[] = $rows;\n }\n }\n }", "title": "" }, { "docid": "6fb564b046eef13010f0fd7a8d00ef13", "score": "0.52192473", "text": "public function getCmsPages(Zend_Db_Adapter_Pdo_Mysql $db)\n {\n $rows = $db->fetchAll(\n $db\n ->select()\n ->from($this->getCmsPageTableName())\n );\n $cmsPages = array();\n foreach ($rows as $r) {\n $cmsPages[$r['identifier']] = $r;\n }\n return $cmsPages;\n }", "title": "" }, { "docid": "5aae82520d3f3e152260f083f69342c4", "score": "0.5211002", "text": "function vgt_db_get_all_squeeze_page($wpdb)\n {\n $query = \"SELECT post_id FROM \" . $wpdb->prefix. \"postmeta\" . \" WHERE meta_value = 'vgt_page_template.php'\";\n $posts = $wpdb->get_results($query);\n\n $pages = array();\n for ($i = 0; $i < count($posts); $i++)\n {\n if (get_post_status($posts[$i]->post_id) == \"publish\")\n {\n $pages[] = $posts[$i]->post_id;\n }\n\n }\n\n return $pages;\n\n }", "title": "" }, { "docid": "e702b2d9e104d283788f0d1aca81509c", "score": "0.5201491", "text": "public function getHTMLSimplePageSubjectTest()\n {\n $html = '<h4 id=\"simple_pagesubject_test_title\">'\n . _t('SEO.SEOSubjectCheckIntro', 'Your page subject was found in:') . '</h4>';\n $html .= '<ul id=\"simple_pagesubject_test\">';\n $html .= '<li class=\"subjtest_pagetitle\">' . _t('SEO.SEOSubjectCheckPageTitle', 'Page title:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n $html .= '<li class=\"subjtest_firstpar\">' . _t('SEO.SEOSubjectCheckFirstParagraph', 'First paragraph:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n $html .= '<li class=\"subjtest_pagecontent\">' . _t('SEO.SEOSubjectCheckPageContent', 'Page content:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n $html .= '<li class=\"subjtest_pageurl\">' . _t('SEO.SEOSubjectCheckPageURL', 'Page URL:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n $html .= '<li class=\"subjtest_metatitle\">'\n . _t('SEO.SEOSubjectCheckPageMetaTitle', 'Page meta title:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n $html .= '<li class=\"subjtest_metadescr\">'\n . _t('SEO.SEOSubjectCheckPageMetaDescription', 'Page meta description:') . ' ';\n $html .= '<span class=\"subjtest subjtest_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>';\n $html .= '<span class=\"subjtest subjtest_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n $html .= '</li>';\n\n $html .= '</ul>';\n\n return $html;\n }", "title": "" }, { "docid": "e880aeed5bb469ba8bbe40cb40fd26be", "score": "0.5196629", "text": "public function list_pages($params=array()){\n $this->_name = \"page\";\n $select = $this->select()->from(\"page\",array(\"id\",\"name\"));\n if (isset($params['query']) && isset($params['qtype'])){\n $select->where($params['qtype'].\" LIKE ? \",\"%\".$params['query'].\"%\");\n }\n $subselect = clone $select;\n if (isset($params['sortname']) && isset($params['sortorder'])){\n $select->order($params['sortname'].\" \".$params['sortorder']);\n }\n $select->limitPage($params['page'],$params['rp']);\n return array(\n \t\"data\" => $select->query()->fetchAll(),\n \"total\" => $subselect->query()->rowCount(),\n \"page\"\t => $params['page'],\n \"column\" => array(\"name\"),\n \"defaultId\"=> \"id\"\n );\n }", "title": "" }, { "docid": "01ccb252549807c0cfae30d3b452b3c2", "score": "0.5186796", "text": "function get_page($id, $pages){\n\tforeach($pages as $page){\n\t\tif($page->id == $id){\n\t\t\treturn $page;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "bcac4332fedfdce610b849433e13ecf8", "score": "0.5186595", "text": "function GetPages($id)\r\n {\r\n $data = $this->db\r\n ->where('id_page', $id)\r\n ->limit(1)\r\n ->get('pages')\r\n ->row_array();\r\n\r\n if ($data) {\r\n $locales = $this->db\r\n ->select('id_localization, title, teaser, description')\r\n ->where('id_page', $id)\r\n ->order_by('id_localization', 'asc')\r\n ->get('pages_detail')\r\n ->result_array();\r\n foreach ($locales as $row => $local) {\r\n $data['locales'][$local['id_localization']]['title'] = $local['title'];\r\n $data['locales'][$local['id_localization']]['teaser'] = $local['teaser'];\r\n $data['locales'][$local['id_localization']]['description'] = $local['description'];\r\n }\r\n }\r\n return $data;\r\n }", "title": "" }, { "docid": "9f2669fdbfa0a2884b21fa00c6a38895", "score": "0.5177579", "text": "public static function getSubjects($limit = 10, $page = 1)\n {\n $result = [\n 'subjects' => []\n ];\n $skip = 0;\n // Updating the page offset\n if ($page != 1) {\n $skip = ($page - 1) * $limit;\n }\n\n $result['limit'] = (int) $limit;\n $result['page'] = (int) $page;\n try {\n $subjects = Subject::orderBy('id', 'asc')->take($limit)->offset($skip)->get();\n\n $result['totalInPage'] = sizeof($subjects);\n\n foreach ($subjects as $subjects) {\n $result['subjects'][] = self::generateFromModel($subjects);\n }\n } catch (ModelNotFoundException $e) {\n PushApi::log(__METHOD__ . \" - Error: \" . PushApiException::NOT_FOUND, Log::DEBUG);\n return false;\n }\n\n return $result;\n }", "title": "" }, { "docid": "746b05809b6a3859d1cf75d3f32e192f", "score": "0.5174762", "text": "public function get_subject_slug_list()\n {\n $query = $this->db->select('slug, subject')\n ->from('subjects')\n ->order_by('subject ASC')\n ->where('approved', 1)\n ->get();\n\n $data = [];\n\n foreach ($query->result() as $row) {\n $data[$row->slug] = $row->subject;\n }\n\n return $data;\n }", "title": "" }, { "docid": "f44fd71ce4e47084d37c6959161cb308", "score": "0.5152817", "text": "function CheckSubjectAllocated ($Term, $id, $Subjectcode) {\n $query_result_array = array(); \n\n $dbconn = DB_Connect_Direct(); \n if ($dbconn != false) {\n\n $query = \"SELECT * FROM studentsubjects WHERE id = '\" . $id . \"' AND term = '\" . $Term . \"' AND subjectcode = '\" . $Subjectcode . \"';\";\n //echo $query;\n $result = DB_Query($dbconn, $query);\n if ($result != false) {\n while ($obj = DB_FetchObject($result)) { //Build Array from result\n $query_result_array[] = $obj;\n } // end while ($obj = DB_FetchObject($result));\n }\n DB_FreeResult($result);\n DB_Close($dbconn);\n\n return $query_result_array;\n }\n }", "title": "" }, { "docid": "e993a4214ee70e6d34fd59071bd6e9a6", "score": "0.5151769", "text": "public function userPagesArray()\n {\n \t$pages = array();\n\t\t$data = $this->getUserPagesFromRedirect();\n\n\t\tforeach ($data as $page) {\n\t\t\tif ($page->getField('category') == 'Musician/Band')\n\t\t\t\t$pages[] = $page;\n\t\t}\n \treturn $pages;\n }", "title": "" }, { "docid": "39760a59c9ed12ff2f5ea78ec8e5da90", "score": "0.5135897", "text": "public function getAllItems()\n {\n $sql = 'SELECT *\n FROM pages\n ORDER BY id ASC';\n $pages = $this->dbConnect($sql);\n return $pages;\n }", "title": "" }, { "docid": "f5429e17c3be22c4e48bac744ed2221f", "score": "0.5126474", "text": "public static function listClassSubject($course, $term, $id_subject){\n $db = new Database;\n $table1 = DB_TABLE_PREFIX.'class_subject';\n $table2 = DB_TABLE_PREFIX.'class_subject_details';\n $query = \"SELECT cs.id, cs.name, COUNT(csd.id_student) total FROM {$table1} cs, {$table2} csd WHERE cs.id = csd.id_class_subject AND cs.id_course = :id_course AND cs.term = :term AND cs.id_subject = :id_subject\";\n $result = $db->queryAll($query, array(':id_course' => $course, ':term' => $term, ':id_subject' => $id_subject), PDO::FETCH_OBJ);\n return $result;\n }", "title": "" }, { "docid": "9baa77bd48dc09ccfcb79c0eb305489e", "score": "0.51228833", "text": "function hw_getchildcoll($link, $objid) {}", "title": "" }, { "docid": "ea89e9b5d6f681621adbf6aa825f19e0", "score": "0.5122799", "text": "function get_pages($link_template, $spacer=\" \", $s, $e){ \r\n\r\n $page_links = array();\r\n \r\n for ($x=1; $x <= $this->pages; $x++){ \r\n $num_title = ($this->zero_padding != -1 && ($this->zero_padding - strlen($x)) > 0) ? str_repeat('0', $this->zero_padding - strlen($x)) . $x : $x;\r\n $link = str_replace('%pg', $x, $link_template); \r\n $link = str_replace('%title', $num_title, $link); \r\n $link = ($x == $this->current_page) ? $s.$link.$e : $link; \r\n $page_links[] = $link; \r\n }\r\n \r\n $page_links = implode($spacer, $page_links);\r\n \r\n return $page_links; \r\n }", "title": "" }, { "docid": "abb3203186125637081c3289bbe21ab6", "score": "0.5122384", "text": "private function getLinkBySubject($subject) {\n \n $slug = strtolower($this->getSlugBySubject($subject));\n \n //slug not found\n if (!$slug) {\n \n return false;\n }\n \n $title = $this->getTitleBySubject($subject);\n \n #todo: reformat link by maildate\n $tld = ($slug == 'talk-ch') ? 'ch' : 'org'; #TODO dirty fix\n $link = 'http://lists.openstreetmap.' . $tld . '/pipermail/'.$slug.'/'.date('Y', time()).'-'.date('F', time()).'';\n $threadLink = $link . '/thread.html';\n \n $html = file_get_contents($threadLink);\n \n $crawler = new \\Symfony\\Component\\DomCrawler\\Crawler($html);\n \n $nodes = $crawler->filterXPath('//a[contains(text(), \"'.$title.'\")]');\n \n foreach ($nodes as $node) {\n \n $fileName = $node->getAttribute('href');\n break;\n }\n \n //message not found\n if (!isset($fileName)) {\n \n $this->sendError('A message with the title \"' . $title . '\" could not be found in the archive of the month ' . date('F', time()) . '/' . date('Y', time()) . '');\n \n return false;\n }\n \n return $link . '/' . $fileName;\n }", "title": "" }, { "docid": "b40b5a18b389ddaf2c273e4fd8d238c4", "score": "0.5115913", "text": "function list_pages_of_section($arguments = '&title_li=') {\n $root = wpp::get_pages_root();\n return wp_list_pages($arguments . \"&child_of=\" . $root['page']->ID);\n }", "title": "" }, { "docid": "c6023d2259f03d4cf2ac8e537b7a5a78", "score": "0.5107088", "text": "function ep_get_page2( $page_id, & $pages ){\r\r\r\n\t$length = count($pages);\r\r\r\n\tfor ( $i=0; $i<$length; $i++ ) {\r\r\r\n\t\t$page = & $pages[$i];\r\r\r\n\t\tif ( $page->ID == $page_id ) return $page;\r\r\r\n\t}\r\r\r\n\treturn false;\r\r\r\n}", "title": "" }, { "docid": "a35f863f99e0c8e0376e6d9f1b9dee86", "score": "0.51047385", "text": "public function pagesBySlug()\n {\n\n $this->validateRequired(array('slug'));\n\n $slug = $this->request->data['slug'];\n\n\n $data = array();\n $this->loadModel('Pages');\n\n $row = $this->Pages->find()\n ->select(['slug','title','description'])\n ->where(['slug' => $slug,'status'=>1])\n ->first();\n\n if($row){\n $dt['slug'] = $row->slug;\n $dt['title'] = $row->title;\n $dt['description'] = $row->description;\n $data = $this->removenull($dt);\n }\n\n $response = array();\n $response[\"code\"] = 0;\n $response[\"error\"] = false;\n $response[\"message\"] = 'Privacy Policy Page';\n $response[\"data\"] = $data;\n $this->echoRespnse($response);\n }", "title": "" }, { "docid": "5e8d6dad10b5cc45186dacef4cf8bb02", "score": "0.5100923", "text": "public function fetch_pages()\r\r\n\t{\r\r\n\t\t$query = $this->db->get($this->tbl_page);\r\r\n\t\t$results=$query->result_array();\r\r\n\t\treturn $results;\r\r\n\t}", "title": "" }, { "docid": "71e0bbc12701823b9238481db2c53d8c", "score": "0.51000875", "text": "function menu_pages_id($groupId){\n\t\t\t\t\t\n\t\t\t\t\t$sql=\"SELECT group_pages FROM $this->table WHERE group_id=:groupId\";\n\t\t\t\t\t$stmt = $this->dbConn->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(\":groupId\",$groupId);\n\t\t\t\t\tif ($stmt->execute()) {\n\t\t\t\t\t\t$results = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\t\t\t\t$pages = json_decode($results[\"group_pages\"]);\n\t\t\t\t\t\treturn $pages;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tdie();\n\t\t\t\t\t\t}\n\n\t\t\t\t}", "title": "" }, { "docid": "abaf6fdda7e3face6c0d95f5518126ae", "score": "0.50825644", "text": "public function getStaticPages() {\r\n\r\n\t\t//Declare resulting array\r\n $query = NULL;\r\n\t\t$pages = array();\r\n\t\t$helppages = array();\r\n\r\n\t\t//Query database to get pages\r\n\t\t$stmt = \"SELECT\r\n\t\t\t\t t.pagetype AS type,\r\n\t\t\t\t c.id AS id,\r\n\t\t\t\t n.nickname AS nickname,\r\n\t\t\t\t IF(COUNT(c.id) > 0, TRUE, FALSE) AS validity,\r\n\t\t\t\t c.name AS name,\r\n\t\t\t\t u.url AS short_url,\r\n\t\t\t\t c.secure AS secure,\r\n\t\t\t\t NULL AS slug,\r\n\t\t\t\t c.filename AS filename,\r\n\t\t\t\t c.id AS canonical,\r\n\t\t\t\t c.title AS title,\r\n\t\t\t\t c.meta_description AS meta_description,\r\n\t\t\t\t c.meta_keywords AS meta_keywords,\r\n\t\t\t\t c.heading AS heading,\r\n\t\t\t\t c.allow_target AS allow_target,\r\n\t\t\t\t c.requires_login AS requires_login,\r\n\t\t\t\t c.disallow_guests AS disallow_guests,\r\n\t\t\t\t c.sitemap_show AS visibility,\r\n\t\t\t\t c.sitemap_page_priority AS priority,\r\n\t\t\t\t c.sitemap_page_change_frequency AS change_frequency\r\n\t\t\t\tFROM bs_pages c\r\n\t\t\t\tJOIN bs_pagetypes t\r\n\t\t\t\tLEFT JOIN bs_page_urls u ON (u.id = c.canonical_page_url AND u.pagetype = t.pagetype AND u.pageid = c.id)\r\n\t\t\t\tLEFT JOIN bs_page_nicknames n ON (t.pagetype = n.pagetype AND c.id = n.pageid)\r\n\t\t\t\tWHERE t.pagetype = 'page'\r\n\t\t\t\tGROUP BY c.id\";\r\n\r\n $query = Connection::getHandle()->prepare($stmt);\r\n\r\n if( $query->execute() ) {\r\n\r\n //Loop through each result\r\n while ( $row = $query->fetch(PDO::FETCH_ASSOC) ) {\r\n\r\n //Instantiate page class for pagetype\r\n $static_page = new Page('page', $row['id'], $row);\r\n\r\n //Check for sitemap visibility\r\n if( $static_page->getVisibility() ) {\r\n\r\n //Insert values to output array\r\n $pages[] = array (\r\n \"name\" => $static_page->getName(),\r\n \"url\" => $static_page->getUrl(),\r\n \"changefreq\" => $static_page->getChangeFrequency(),\r\n \"priority\" => $static_page->getPriority()\r\n );\r\n\r\n }\r\n\r\n }\r\n }\r\n\t\t//Query database to get help pages\r\n\t\t$stmt = \"SELECT\r\n\t\t\t\t t.pagetype AS type,\r\n\t\t\t\t h.id AS id,\r\n\t\t\t\t n.nickname AS nickname,\r\n\t\t\t\t IF(COUNT(h.id) > 0, TRUE, FALSE) AS validity,\r\n\t\t\t\t h.name AS name,\r\n\t\t\t\t u.url AS short_url,\r\n\t\t\t\t t.template_secure AS secure,\r\n\t\t\t\t h.slug AS slug,\r\n\t\t\t\t t.template_filename AS filename,\r\n\t\t\t\t h.id AS canonical,\r\n\t\t\t\t h.page_title AS title,\r\n\t\t\t\t h.meta_description AS meta_description,\r\n\t\t\t\t h.meta_keywords AS meta_keywords,\r\n\t\t\t\t h.page_heading AS heading,\r\n\t\t\t\t t.allow_target AS allow_target,\r\n\t\t\t\t t.requires_login AS requires_login,\r\n\t\t\t\t t.disallow_guests AS disallow_guests,\r\n\t\t\t\t h.sitemap_show AS visibility,\r\n\t\t\t\t h.sitemap_page_priority AS priority,\r\n\t\t\t\t h.sitemap_page_change_frequency AS change_frequency\r\n\t\t\t\tFROM bs_help h\r\n\t\t\t\tJOIN bs_pagetypes t\r\n\t\t\t\tLEFT JOIN bs_page_urls u ON (u.id = h.canonical_page_url AND u.pagetype = t.pagetype AND u.pageid = h.id)\r\n\t\t\t\tLEFT JOIN bs_page_nicknames n ON (t.pagetype = n.pagetype AND h.id = n.pageid)\r\n\t\t\t\tWHERE t.pagetype = 'help'\r\n\t\t\t\tGROUP BY h.id\";\r\n\r\n $query = Connection::getHandle()->prepare($stmt);\r\n\r\n if( $query->execute() ) {\r\n\r\n //Loop through each result\r\n while ( $row = $query->fetch(PDO::FETCH_ASSOC) ) {\r\n\r\n //Instantiate page class for pagetype\r\n $help = new Page('help', $row['id'], $row);\r\n\r\n //Check for sitemap visibility\r\n if( $help->getVisibility() ) {\r\n\r\n //Insert values to output array\r\n $helppages[] = array (\r\n \"name\" => $help->getName(),\r\n \"url\" => $help->getUrl(),\r\n \"changefreq\" => $help->getChangeFrequency(),\r\n \"priority\" => $help->getPriority()\r\n );\r\n }\r\n }\r\n }\r\n\r\n\t\t$merged=array_merge($pages, $helppages);\r\n\t\tsort($merged);\r\n\r\n\t\treturn $merged;\r\n\r\n\t}", "title": "" }, { "docid": "da0767d41c869bc489ac3d370f34db28", "score": "0.50807863", "text": "function find_all_subjects($admin=true)\n{\n\tglobal $conn;\n\t $query2=\"select * from subjects \";\n if(!$admin)\n {$query2.=\"where visible=1 \";}\n $query2.=\"order by position asc\";\n $res2=mysqli_query($conn,$query2);\n return $res2;\n}", "title": "" }, { "docid": "649d01aec6c6c5c443880cf51fc201a8", "score": "0.5078898", "text": "public function actionPages($id)\n {\n $chapter = $this->loadBookChapter($id);\n\n return $chapter->pages;\n }", "title": "" }, { "docid": "057ed30a3bf9b131273f346b7da1f0ad", "score": "0.50782484", "text": "public static function pages()\n\t{\n\t\tstatic $pages;\n\n\t\tif (!$pages)\n\t\t{\n\t\t\t// Get all pages in the crm_tree table\n\t\t\t$sql = \"SELECT *\n\t\t\t FROM `crm_tree`\n\t\t\t ORDER BY `order`, `model`, `page`\";\n\t\t\t$data = self::s_query($sql)->res;\n\n\t\t\twhile ($row = mysql_fetch_assoc($data))\n\t\t\t{\n\t\t\t\t// Ignore parents for global pages\n\t\t\t\tif ($row['area'] === '*')\n\t\t\t\t{\n\t\t\t\t\t$row['parent'] = NULL;\n\t\t\t\t}\n\n\t\t\t\t// Set default alias if no alias is given\n\t\t\t\tif (!$row['alias'])\n\t\t\t\t{\n\t\t\t\t\t$row['alias'] = \"{$row['model']}:{$row['page']}\";\n\t\t\t\t}\n\n\t\t\t\t// Divide alias into module alias and regular alias (\"mod|reg\")\n\t\t\t\tlist($row['m_alias'], $row['alias'])\n\t\t\t\t\t= explode('|', \"{$row['alias']}|{$row['alias']}\");\n\n\t\t\t\t// Add the page's uri (clean url from alias)\n\t\t\t\t$row['uri'] = self::uri($row['alias']);\n\n\t\t\t\t// Add images (not saved in database)\n\t\t\t\t$imguri = strtolower(\"{$row['model']}_{$row['page']}.png\");\n\t\t\t\t$imgpath = PATH_UPLOADS . \"/pages/{$imguri}\";\n\t\t\t\t$row['image'] = is_file($imgpath) ? $imguri : '__missing__.gif';\n\n\t\t\t\t$pages[$row['id']] = $row;\n\t\t\t}\n\n\t\t\tif (!$pages)\n\t\t\t{\n\t\t\t\t$msg = \"No se han encontrado páginas en la base de datos\";\n\t\t\t\tthrow new PublicException($msg);\n\t\t\t}\n\t\t}\n\n\t\treturn $pages;\n\t}", "title": "" }, { "docid": "01821785362ce52bafc2704956cf3531", "score": "0.5073287", "text": "function getFrontendPages()\n {\n $pageRepo = \\Env::get('em')->getRepository('Cx\\Core\\ContentManager\\Model\\Entity\\Page');\n $pages = $pageRepo->findBy(array(\n 'module' => 'Data',\n 'lang' => $this->_intLanguageId,\n 'type' => \\Cx\\Core\\ContentManager\\Model\\Entity\\Page::TYPE_APPLICATION,\n ));\n $pagesArr = array();\n foreach ($pages as $page) {\n $pagesArr[] = array(\n 'id' => $page->getId(),\n 'name' => $page->getTitle(),\n 'cmd' => $page->getCmd(),\n );\n }\n return $pagesArr;\n }", "title": "" }, { "docid": "f20ae9e74f9777cdfbeabf3211c4997e", "score": "0.50722605", "text": "private function get_current_page_page_ids($pages)\n {\n }", "title": "" }, { "docid": "c24ee2784e48419595a862e19415d78d", "score": "0.5062925", "text": "public static function getPageSubscribers($page_id) {\r\n\t\t$sql_pdo = \"select distinct p.user_id from social_page_favorites as p, social_notifications_user_preferences as up where up.user_id=p.user_id and up.page_activity=1 and p.page_id=:page_id\";\r\n\t\t\t\t\r\n\t\t$output = array();\r\n\t\t\r\n\t\tif (!isset($db)) {\r\n\t\t\t$debug_conexio = 'no estava definida db (getPageSubscribers)';\r\n\t\t\trequire(SCRIPT_DIR . \"connect.php\");\t\t\t\t\t// con require_ONCE no funciona (porque db_connect lo 'machaca').\r\n\t\t}\r\n\t\t\r\n\t\t$stmt = $db->prepare($sql_pdo);\r\n\t\ttry{\r\n\t\t\t$debug_conexio .= 'dins de try (getPageSubscribers)';\r\n\t\t\t//$stmt->execute();\r\n\t\t\t$stmt->execute( array(\r\n\t\t\t\t\t':page_id' => $page_id\r\n\t\t\t\t\t));\r\n\t\t\t$result = $stmt->fetchAll();\r\n\t\t\tif ( count($result) ) { \r\n\t\t\t\tforeach($result as $row) {\r\n\t\t\t\t\t//print_r($row);\r\n\t\t\t\t\t$debug_pagesphp = 'estoy en getPageSubscribers if query';\r\n\r\n\t\t\t\t\t//$std = new stdClass();\r\n\t\t\t\t\t//$std->user_id = $row['user_id'];\r\n\t\t\t\t\t//$std->debug = 'getPageSubscribers if query ok. debug_pagesphp: '.$debug_pagesphp. '. count(result)='.count($result);\r\n\r\n\t\t\t\t\t//$output[] = $std;\r\n\t\t\t\t\t$output[] = $row['user_id'];\r\n\t\t\t\t}\r\n\t\t\t }\r\n\t\t}\r\n\t\tcatch(PDOException $e){\r\n\t\t\techo 'catch en socialphp - getPageSubscribers!!, y debug_conexio: ' . $debug_conexio;\r\n\t\t\techo 'Error: ' . $e->getMessage();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn $output;\r\n\t}", "title": "" }, { "docid": "50dcff05107e255f5415fdbb77182384", "score": "0.5054202", "text": "private function get_child_page_ids(&$children_pages, &$count, $parent, $start, $end, &$to_display, &$pages_map)\n {\n }", "title": "" }, { "docid": "e45d5dea1f3f7606c897860f772ccb87", "score": "0.5051814", "text": "private function getSubjectOptions(){\n\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t$query=\"SELECT distinct s.subject_id, s.subject_name FROM subjects s order by s.subject_id desc\";\n\t\t\t$r = $this->mysqli->query($query) or die($this->mysqli->error.__LINE__);\n\n\t\t\tif($r->num_rows > 0){\n\t\t\t\t$result = array();\n\t\t\t\twhile($row = $r->fetch_assoc()){\n\t\t\t\t\t$result[] = $row;\n\t\t\t\t}\n\t\t\t\t$this->response($this->json($result), 200); // send user details\n\t\t\t}\n\t\t\t$this->response('',204);\t// If no records \"No Content\" status\n\t\t\n\t\t}", "title": "" }, { "docid": "94d66573e904c45ba2fa3f2ed906dc70", "score": "0.504597", "text": "function find_all_pages() {\n // page table of the globe_bank database\n\n // Since $db is a global variable and not defined inside this function,\n // must declare it \"global\" so that this function can use it\n global $db;\n\n // Creates the SQL query which will return the\n // pages table from the globe_bank database\n $sql = \"SELECT * FROM pages \";\n $sql .= \"ORDER BY subject_id ASC, position ASC;\";\n\n // Uses our database connection and the above sql query\n // to return the page table from the globe_bank database\n $result = mysqli_query($db, $sql);\n\n // Checks the sql query used by result_set for errors or problems\n confirm_query_result_set($result, $sql);\n\n return $result;\n }", "title": "" }, { "docid": "21c190357b0dc427ab26b6b77083e8f0", "score": "0.5045321", "text": "public function allPaged();", "title": "" }, { "docid": "fb0a12747c64ff59268c9fbe9c32382e", "score": "0.5043756", "text": "function get_subject_record($id)\n\t{\n\t\t$this -> db -> where ('id', $id);\n\t\t$query = $this -> db -> get(\"gh_subject\");\n\t\treturn $query; \n\t}", "title": "" }, { "docid": "668077c11430ff92aca706380716fa0f", "score": "0.50383633", "text": "function print_subjects( $book )\n{\n\n $sql = \"SELECT * FROM subject, subject_link \" .\n\t\t\"WHERE subject_id=n AND book_id=?\";\n $result = db_query( $sql, $book['n'] );\n if ($n = $result->rowCount())\n {\n\techo \"<tr><td rowspan=$n valign=center>Subject</td>\\n\";\n\t$first_row = 1;\n }\n\n while ($row = $result->fetch())\n {\n\t$fields = array( 'topic', 'subordinate', 'location', 'date',\n\t\t\t 'title', 'affiliation', 'geographic',\n\t\t\t 'chronological', 'general', 'form' );\n\t$subject = array();\n\n\tforeach ($fields as $f) if ($row[$f]) $subject[] = $row[$f];\n\n\tif (!$first_row) echo \"<tr>\";\n\t$first_row = 0;\n\n\techo \"<td colspan=3>\", join( ' -- ', $subject ), \"</td></tr>\\n\";\n }\n}", "title": "" }, { "docid": "f5f55a6b240ec03f390a379bf197e168", "score": "0.50375164", "text": "function getSubjectStructure($entry)\n{\n $html = \"\";\n // Decide if we are in ROLE space\n if (filter_input(INPUT_GET, \"widget\") == 'true') {\n $html = \"&widget=true\";\n }\n\n // id used to derive course id (from database) connected to clicked link\n return \"<li><a href='course_list.php?id=$entry[id]\" . $html . \"' id='a_img$entry[id]'>\n <img src=$entry[img_url] alt=$entry[name] class='img-responsive img-fit'>\n <p style='font-weight: bold;'>$entry[name]</p>\n</a></li>\";\n}", "title": "" }, { "docid": "c97fb27934b0e4fef22ea40321b9e557", "score": "0.5036435", "text": "public function fetchPages()\n {\n $qb = $this->connection->createQueryBuilder();\n\n // Find all pages that need indexing\n $query = $qb\n ->select('p.cID')\n ->from('Pages', 'p')\n ->leftJoin('p', 'CollectionSearchIndexAttributes', 'a', 'p.cID = a.cID')\n ->where('cIsActive = 1')\n ->andWhere($qb->expr()->orX(\n 'a.ak_exclude_search_index is null',\n 'a.ak_exclude_search_index = 0'\n ))->execute();\n\n while ($id = $query->fetchColumn()) {\n yield $id;\n }\n }", "title": "" }, { "docid": "1d8fbc90d4b72dc8f192e5d72b9022b4", "score": "0.50362545", "text": "function getArrayListpage() {\n $xBuffResul = array();\n $xStr = \"SELECT \" .\n \"idx\" . \",title\" .\n \",description\" .\n \",date\" .\n \",image\" .\n \",istampil\" .\n \",keyword\" .\n \",idmetatag\" .\n \",idkategoripage\" .\n \",idbahasa\" .\n \",idimage\" .\n \",`update`\" .\n \",iduser\" .\n \" FROM page order by idx ASC \";\n $query = $this->db->query($xStr);\n foreach ($query->result() as $row) {\n $xBuffResul[$row->idx] = $row->idx;\n }\n return $xBuffResul;\n }", "title": "" }, { "docid": "34782e0d81ad38dcaf854fb70cb81063", "score": "0.5035697", "text": "public function getCorePageList(){\n $site_core_pages = Cache::read('site_core_pages_list');\n\n if ( empty($site_core_pages) )\n {\n $site_core_pages = $this->find('list', array( 'fields' => array( 'Page.id', 'Page.title')));\n Cache::write('site_core_pages_list', $site_core_pages);\n }\n\n return $site_core_pages;\n }", "title": "" }, { "docid": "8d19f2c5f0cf5103102372d986aeee33", "score": "0.5032543", "text": "public function getpagebyid($page_id){\n\t\t\n\t\t$result = $this->findOneBy(array(\n\t\t\t\"Id\" => $page_id\n\t\t),'webpages');\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "4d402dcd35e507fb21f5898a97a7d24a", "score": "0.5031511", "text": "public function index()\n {\n return Subject::all();\n }", "title": "" } ]
e269894fbb3b259bd17a6fa09756b9a7
funciones para convertir px>mm
[ { "docid": "a54e1585149500690217c2d6ac17cfde", "score": "0.73787135", "text": "function mmtopx($d){\n\t$fc=96/25.4;\n\t$n=$d*$fc;\n\treturn $n.\"px\";\n}", "title": "" } ]
[ { "docid": "a4f26cf31080a1c0de4b846255997900", "score": "0.832978", "text": "function px2mm($px)\n{\n return $px * 25.4 / 72;\n}", "title": "" }, { "docid": "dd53bc5c6c70502eccc6f80928c4c165", "score": "0.83091366", "text": "function px2mm($px) {\n return $px * 25.4 / 72;\n}", "title": "" }, { "docid": "cd99938f0bf063d75194211642b5351c", "score": "0.8247656", "text": "function px2mm($px){\n\treturn $px*25.4/72;\n}", "title": "" }, { "docid": "b93dbea398ecb442a827a059837d8a94", "score": "0.7907247", "text": "private function _px2mm($px){\n return $px*25.4/72;\n }", "title": "" }, { "docid": "bc7dd9161f73528f541e89052e828e35", "score": "0.75109917", "text": "function mmtopx($d){\n $fc=96/25.4;\n $n=$d*$fc;\n return $n.\"px\";\n}", "title": "" }, { "docid": "0b90c5743480bcc3600ebc5d5888b867", "score": "0.7366433", "text": "function mmtopx($d) {\r\n $fc = 96 / 25.4;\r\n $n = $d * $fc;\r\n return $n . \"px\";\r\n}", "title": "" }, { "docid": "0b90c5743480bcc3600ebc5d5888b867", "score": "0.7366433", "text": "function mmtopx($d) {\r\n $fc = 96 / 25.4;\r\n $n = $d * $fc;\r\n return $n . \"px\";\r\n}", "title": "" }, { "docid": "c2a4b81068f74e5c50da177649b76e2b", "score": "0.65510017", "text": "private function _pxToCm($value) {\n return $value * 0.264583333; //($value*25.4)/150;\n }", "title": "" }, { "docid": "65cf770114bda0525549892e056759e8", "score": "0.64222306", "text": "function convert_mm_to_inches($mmsize)\n{\n if (strpos($mmsize, \"x\")!==false)\n {\n // separated by x\n $sizes = explode(\"x\", $mmsize);\n $sep = 'x';\n }\n elseif (strpos($mmsize, \"&\")!==false)\n {\n // separated by &\n $sizes = explode(\"&\", $mmsize);\n $sep = '&';\n }\n elseif (strpos($mmsize, \"-\")!==false)\n {\n // separated by -\n $sizes = explode(\"-\", $mmsize);\n $sep = '-';\n }\n elseif (strpos($mmsize, \"or\")!==false)\n {\n // separated by or\n $sizes = explode(\"or\", $mmsize);\n $sep = 'or';\n }\n else\n {\n $sizes[] = $mmsize;\n $sep = \"\";\n }\n\n\n foreach ($sizes as $size)\n {\n if (intval($size)<4)\n {\n return $mmsize . \"mm\";\n }\n\n $decimal = (($size/10)/2.54);\n $decimal = round($decimal / 0.125) * 0.125;\n $newsize[] = \" \" . decimal_to_fraction($decimal) . \" inch \";\n $newmm[] = \" \".trim($size).\"mm \";\n }\n\n return implode($sep, $newsize) . \" (\" . trim(implode($sep, $newmm)) . \") \";\n}", "title": "" }, { "docid": "fd3a01b603bacac5139482fb024275b3", "score": "0.59694517", "text": "function puntos_cm ($medida, $resolucion=72){\n\t\t//// 2.54 cm / pulgada\n\t\treturn ($medida/(2.54))*$resolucion;\n\t}", "title": "" }, { "docid": "92d54a3d8fce7a20ecd00e0d96c62370", "score": "0.5889128", "text": "public function convertToMM($css, $old=0.)\n {\n $css = trim($css);\n if (preg_match('/^[0-9\\.\\-]+$/isU', $css)) $css.= 'px';\n if (preg_match('/^[0-9\\.\\-]+px$/isU', $css)) $css = 25.4/96. * str_replace('px', '', $css);\n else if (preg_match('/^[0-9\\.\\-]+pt$/isU', $css)) $css = 25.4/72. * str_replace('pt', '', $css);\n else if (preg_match('/^[0-9\\.\\-]+in$/isU', $css)) $css = 25.4 * str_replace('in', '', $css);\n else if (preg_match('/^[0-9\\.\\-]+mm$/isU', $css)) $css = 1.*str_replace('mm', '', $css);\n else if (preg_match('/^[0-9\\.\\-]+%$/isU', $css)) $css = 1.*$old*str_replace('%', '', $css)/100.;\n else $css = null;\n\n return $css;\n }", "title": "" }, { "docid": "46092a22badd606f2eb12e2e46c09b53", "score": "0.5878672", "text": "function puntos_cm ($medida, $resolucion=72)\r\n {\r\n return ($medida/(2.54))*$resolucion;\r\n }", "title": "" }, { "docid": "68ba8e6253218e1c13690ad8ff4697f4", "score": "0.5777075", "text": "function convertK2M($mph)\n{\n return number_format($mph * 1.609344, 1);\n}", "title": "" }, { "docid": "5701c96b0227d84e43149f8d04184ad8", "score": "0.55993974", "text": "function mi_to_ft($milesUnit) {\n return $milesUnit * 5280;\n }", "title": "" }, { "docid": "e0eb5c2a66f4155f678960a946b283ba", "score": "0.5522806", "text": "function carton_get_dimension( $dim, $to_unit ) {\n\n\t$from_unit \t= strtolower( get_option( 'carton_dimension_unit' ) );\n\t$to_unit\t= strtolower( $to_unit );\n\n\t// Unify all units to cm first\n\tif ( $from_unit !== $to_unit ) {\n\n\t\tswitch ( $from_unit ) {\n\t\t\tcase 'in':\n\t\t\t\t$dim *= 2.54;\n\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\t$dim *= 100;\n\t\t\tbreak;\n\t\t\tcase 'mm':\n\t\t\t\t$dim *= 0.1;\n\t\t\tbreak;\n\t\t\tcase 'yd':\n\t\t\t\t$dim *= 0.010936133;\n\t\t\tbreak;\n\t\t}\n\n\t\t// Output desired unit\n\t\tswitch ( $to_unit ) {\n\t\t\tcase 'in':\n\t\t\t\t$dim *= 0.3937;\n\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\t$dim *= 0.01;\n\t\t\tbreak;\n\t\t\tcase 'mm':\n\t\t\t\t$dim *= 10;\n\t\t\tbreak;\n\t\t\tcase 'yd':\n\t\t\t\t$dim *= 91.44;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn ( $dim < 0 ) ? 0 : $dim;\n}", "title": "" }, { "docid": "85bce8697ae3eeac049514b134d0a300", "score": "0.55187815", "text": "function ttfmake_convert_px_to_rem( $px, $base = 0 ) {\n\treturn (float) $px / 10;\n}", "title": "" }, { "docid": "8011233e5022466578fd8fc1332e37b1", "score": "0.54264545", "text": "function calculationPDF($imgWpx, $imgHpx) \n{ \n $imgWmm = round( ($imgWpx * 25.4) / 72 );\n $imgHmm = round( ($imgHpx * 25.4) / 72 );\n\n $fixWmm = 361; // 361 (mm) equals to 1200 px\n $fixHmm = 270; // 270 (mm) equals to 800 px 260.83\n\n if ( $imgWmm>$fixWmm || $imgHmm>$fixHmm ) \n {\n\tif ( $imgWmm>$fixWmm && $imgHmm>$fixHmm ) \n\t{\n\t\t// IF W and H is bigger than expected (calculate based on HEIGHT only)\n\t\t$selisihHeight = ($imgHmm - $fixHmm);\n\t\t$HeightRatio = ($selisihHeight / $imgHmm) * 100;\n\t\t$WxR = ($imgWmm * $HeightRatio)/100; // Width x Ratio (%)\n\t\t$wReal = ($imgWmm - $WxR);\n\t\t$jarakDariKiri = round( ($fixWmm - $wReal)/2 ); \n\t\t//echo 'Hidden WIDTH as (3) : '.$imgWmm.'<br />';\n\t\t//echo 'WRITE HEIGHT as (3) : '.$fixHmm.'<br />';\n\t\t//echo 'WRITE Position From Left : '.$jarakDariKiri.'<br />';\n\t\t$outputResult = array($fixHmm, $jarakDariKiri);\n\t}\n\telse if ( $imgWmm > $fixWmm ) \n\t{\n\t\t// IF only W is bigger than expected (H should be resized though)\n\t\t$selisihWidth = ($imgWmm - $fixWmm);\n\t\t$WidthRatio = ($selisihWidth / $imgWmm) * 100;\n\t\t$HxR = ($imgHmm * $WidthRatio)/100; // Height x Ratio (%)\n\t\t$HReal = round($imgHmm - $HxR);\n\t\t$jarakDariKiri = 0; \n\t\t//echo 'Hidden WIDTH as (2) : '.$fixWmm.'<br />';\n\t\t//echo 'WRITE HEIGHT as (2) : '.$HReal.'<br />'; \n\t\t//echo 'WRITE Position From Left : '.$jarakDariKiri.'<br />';\n\t\t$outputResult = array($HReal, $jarakDariKiri);\n\t}\n\telse if ( $imgHmm > $fixHmm ) \n\t{\n\t\t// IF only H is bigger than expected (W should be resized though)\n\t\t$selisihHeight = ($imgHmm - $fixHmm);\n\t\t$HeightRatio = ($selisihHeight / $imgHmm) * 100;\n\t\t$WxR = ($imgWmm * $HeightRatio)/100; // Width x Ratio (%)\n\t\t$wReal = ($imgWmm - $WxR);\n\t\t$jarakDariKiri = round( ($fixWmm - $wReal)/2 ); \n\t\t//echo 'Hidden WIDTH as (3) : '.$imgWmm.'<br />';\n\t\t//echo 'WRITE HEIGHT as (3) : '.$fixHmm.'<br />';\n\t\t//echo 'WRITE Position From Left : '.$jarakDariKiri.'<br />';\n\t\t$outputResult = array($fixHmm, $jarakDariKiri);\n\t}\n } \n else \n {\n\t// Image do not need to be resized\n\t$jarakDariKiri = round( ($fixWmm - $imgWmm)/2 );\n\t//echo 'Hidden WIDTH as (4) : '.$imgWmm.'<br />';\n\t//echo 'Write HEIGHT as (4) : '.$imgHmm.'<br />';\n\t//echo 'WRITE Position From Left : '.$jarakDariKiri.'<br />'; \n\t$outputResult = array($imgHmm, $jarakDariKiri);\n }\n\n return $outputResult;\n}", "title": "" }, { "docid": "5e414663258cbe659fb07f0d24bc855d", "score": "0.52693915", "text": "protected function ii2mm($intel)\n\t{\n\t\t$mm = \"\";\n\t\tfor ($i = 0; $i <= strlen($intel); $i += 2) \n\t\t{\n\t\t\t$mm .= substr($intel, (strlen($intel) - $i), 2);\n\t\t}\n\t\treturn $mm;\n\t}", "title": "" }, { "docid": "43a6ff00adee03ea1b47a975764f97b0", "score": "0.5257554", "text": "function measurement_unit_types() {\n return apply_filters( 'measurement_unit_types', array(\n 'px' => 'px',\n '%' => '%',\n 'em' => 'em',\n 'pt' => 'pt'\n ) );\n}", "title": "" }, { "docid": "baf99ec451cf8a6d49931e918cd0b660", "score": "0.52559626", "text": "private function getMeasures() {\n list($width, $height) = getimagesize($this->file);\n // Compara no eixo X\n $cmp_x = $width / $this->width;\n // Compara no eixo Y\n $cmp_y = $height / $this->height;\n\n if ($cmp_x > $cmp_y):\n $this->src_w = round($width / $cmp_x * $cmp_y);\n $this->src_x = round(($width - ($width / $cmp_x * $cmp_y)) / 2);\n elseif ($cmp_y > $cmp_x):\n $this->src_h = round($height / $cmp_y * $cmp_x);\n $this->src_y = round(($height - ($height / $cmp_y * $cmp_x)) / 2);\n endif;\n\n $this->getPositioning($width, $height);\n }", "title": "" }, { "docid": "8292f31257d6cb3550a780dfc1ef8c58", "score": "0.52385515", "text": "public static function EMUToPixels($pValue = 0)\n {\n if ($pValue != 0) {\n return round($pValue / 9525);\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "b94d939cf5ac3a080291a0467addf684", "score": "0.52317727", "text": "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}", "title": "" }, { "docid": "abb1c5a9d45e40974ba2f4d759160aaa", "score": "0.52278453", "text": "function wp_exif_frac2dec($str)\n {\n }", "title": "" }, { "docid": "da7b85933d4259cae4bb5dae5322aba5", "score": "0.51483", "text": "protected function _convertDimension($size) \n {\n if($this->commerceDimensionUnit === 'mm')\n {\n return $size/10;\n }\n\n if($this->commerceDimensionUnit === 'm')\n {\n return $size*100;\n } \n \n if($this->commerceDimensionUnit === 'ft')\n {\n return $size*30.48;\n }\n\n if($this->commerceDimensionUnit === 'in')\n {\n return $size*2.54;\n }\n\n // centimeters\n return $size;\n }", "title": "" }, { "docid": "b1128f85718060143fc6e50f8283fa7b", "score": "0.49889466", "text": "function mskPoints($points){\n\tif($points<20000000){\n\t\t$len=strlen($points);\n\t\tif($points>=999&&$len<7)\n\t\t\treturn round(($points/1000),2).' '.CONST_UNITMIL;\n\t\tif($len>=7)\n\t\t\treturn round(($points/1000000),2).' '.CONST_UNITMILLON;\n\t\treturn $points;\n\t}\n\treturn 0;\n}", "title": "" }, { "docid": "b85231b8a2cfe5305363e8eef0532e51", "score": "0.49856508", "text": "public function getTransformation($ctm)\n {\n $this->ctm[$this->ctmid][] = $ctm;\n return sprintf('%F %F %F %F %F %F cm'.\"\\n\", $ctm[0], $ctm[1], $ctm[2], $ctm[3], $ctm[4], $ctm[5]);\n }", "title": "" }, { "docid": "019c094d363868443ed62ddc9b4a4b4f", "score": "0.49735174", "text": "function multipurpose_magazine_min_max( $short, $long, $short_max, $long_max, $percent, $min ){\n\t$ratio = ( $long / $short );\n\t$max['long'] = ( $long_max >= $long ) ? $long : $long_max;\n\t$max['short'] = ( $short_max >= ( $max['long'] / $ratio ) ) ? floor( $max['long'] / $ratio ) : $short_max;\n\n\t$ppp = ( $max['short'] - $min ) / 100;\n\n\t$size['short'] = round( $min + ( $percent * $ppp ) );\n\t$size['long'] = round( $size['short'] / ( $short / $long ) );\n\n\treturn $size;\n}", "title": "" }, { "docid": "7d2e265670d7bfcd7c5fc612c0fac4b1", "score": "0.49337795", "text": "function convert($size)\n {\n $unit=array('b','kb','mb','gb','tb','pb');\n return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];\n }", "title": "" }, { "docid": "db20de6e49cb2f084dec4c7f064dd95c", "score": "0.4914056", "text": "static function kmToMile($km=0)\n {\n return ($km/1.5);\n }", "title": "" }, { "docid": "39987b7995a3fd77beb3256f6ae036ac", "score": "0.48738095", "text": "function ncurses_mvinch($y, $x)\n{\n}", "title": "" }, { "docid": "d2b90386ecae7e9c7dfe667097724936", "score": "0.48726457", "text": "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}", "title": "" }, { "docid": "ee4da779cd779c3c57ebf075a64cf03a", "score": "0.48497197", "text": "public function px_to_em( $px ) {\n\n\t\t$em_value = (int) $px / (int) $this->font_size_base;\n\n\t\treturn $em_value . 'em';\n\t}", "title": "" }, { "docid": "4410b4d2eedb139717f9fb6e48c71a3e", "score": "0.48297146", "text": "public static function transformatorUscatJT(){\n $joasaTensiune=array(\n \"loj\" => Converter::from('length.mm')->to('length.m')->convert(1.5)->getValue(),\n \"g_oj\" => Converter::from('length.mm')->to('length.m')->convert(1)->getValue(),\n //2*0.5carton mm\n \"aoj\" => Converter::from('length.mm')->to('length.m')->convert(10)->getValue(),\n );\n return $joasaTensiune;\n }", "title": "" }, { "docid": "b66380c6648bf0dccd84a164d6269b1f", "score": "0.48215443", "text": "function getGps($exifCoord, $hemi) \n{\n $degrees = count($exifCoord) > 0 ? gps2Num($exifCoord[0]) : 0;\n $minutes = count($exifCoord) > 1 ? gps2Num($exifCoord[1]) : 0;\n $seconds = count($exifCoord) > 2 ? gps2Num($exifCoord[2]) : 0;\n\n $flip = ($hemi == 'W' or $hemi == 'S') ? -1 : 1;\n\n return $flip * ($degrees + $minutes / 60 + $seconds / 3600);\n\n}", "title": "" }, { "docid": "adbf329c9c868c1333e4e7463935f0f4", "score": "0.4810245", "text": "function convmonedaabono($porpagar, $porpagarconv, $abono, $abonoconv){\n\t$abonoconv = ($porpagar*$abono) / $porpagarconv;\n\treturn $abonoconv;\n}", "title": "" }, { "docid": "0db3c5a08d05ac6f0a3e61313d10d4a3", "score": "0.48080388", "text": "function metersToYards($meterValue) {\n $yardValue = $meterValue * 1.093613;\n\n echo \"$meterValue meters is equal to $yardValue yards.<br>\";\n}", "title": "" }, { "docid": "ac2670dbb8f992bba979a4fa7daf126f", "score": "0.4785622", "text": "function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}", "title": "" }, { "docid": "c94e7e984ed76feb9fa3865c788bb8c8", "score": "0.47770038", "text": "function map($x, $in_min, $in_max, $out_min, $out_max)\n {\n return ($x - $in_min) * ($out_max - $out_min) / ($in_max - $in_min) + $out_min;\n }", "title": "" }, { "docid": "e51bbbc9e4e172d4a56ea96c2a89daa2", "score": "0.47671282", "text": "function mms($number='',$options=array()){\n\t\treturn $this->Html->image($this->base_url . urlencode('mms:'.$number).$this->_optionsString($options));\n\t}", "title": "" }, { "docid": "581b10ffe3960e82879a421930edf905", "score": "0.47554302", "text": "function convert_cm_to_feet($cm_value)\n{\n\t//TODO: Convert cm to feet eg. 5'7\n\treturn $cm_value;\n}", "title": "" }, { "docid": "bf47153e3f63646716a5a0b772c9a7d1", "score": "0.4745468", "text": "function convertCoord($opcao, $valor01, $valor02, $valor03)\n{\n if ($opcao === 'GRAUS') \n {\n $grausLat = (int) (strstr($valor01, '.', true));\n $grausLon = (int) (strstr($valor02, '.', true));\n $minutosLat = (float) ('0' . strstr($valor01, '.', false));\n $minutosLon = (float) ('0' . strstr($valor02, '.', false));\n $auxLat = ($minutosLat * 60);\n $auxLon = ($minutosLon * 60);\n $minutosLat = (int) (strstr($auxLat, '.', true));\n $minutosLon = (int) (strstr($auxLon, '.', true));\n $segundosLat = (float) ('0' . strstr($auxLat, '.', false));\n $segundosLon = (float) ('0' . strstr($auxLon, '.', false));\n $segundosLat = round(($segundosLat * 60), 1);\n $segundosLon = round(($segundosLon * 60), 1);\n if ($grausLat < 0) \n {\n $auxLat = ($grausLat * -1) . \"&#176;\" . $minutosLat . \"'\" . $segundosLat . '\"S';\n } \n else \n {\n $auxLat = ($grausLat * -1) . \"&#176;\" . $minutosLat . \"'\" . $segundosLat . '\"N';\n }\n \n if ($grausLon < 0) \n {\n $auxLon = ($grausLon * -1) . \"&#176;\" . $minutosLon . \"'\" . $segundosLon . '\"W';\n } \n else \n {\n $auxLon = ($grausLon * -1) . \"&#176;\" . $minutosLon . \"'\" . $segundosLon . '\"E';\n }\n $coords = array\n (\n 'latitude' => $auxLat, \n 'longitude' => $auxLon\n );\n \n return $coords;\n }\n else if($opcao === 'DECIMAIS_LAT')\n {\n $auxLat = (($valor01 + round(((($valor03 / 60) + $valor02) / 60), 6)) * -1);\n \n return $auxLat;\n }\n else if($opcao === 'DECIMAIS_LON')\n {\n $auxLon = (($valor01 + round(((($valor03 / 60) + $valor02) / 60), 6)) * -1);\n \n return $auxLon;\n }\n else\n {\n return NULL;\n }\n}", "title": "" }, { "docid": "afdb1358eb182a5ab643332ddb192d6d", "score": "0.47364148", "text": "function getResizePercent($in_width, $in_height, $from, $save){\n\t\n\t\tif($from==NULL || $from==\"\") return false;\n\t\t\n\t\t$file_info = getimagesize($from);\n\t\t\n\t\tif($file_info[\"2\"] == 3){//PNG\n\t\t\t$image = imagecreatefrompng($from);\n\t\t}else if ($file_info[\"2\"] == 1){//GIF\n\t\t\t$image = imagecreatefromgif($from);\n\t\t}else if ($file_info[\"2\"] == 2){//JPG\n\t\t\t$image = imagecreatefromjpeg($from);\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$width = $file_info[\"0\"];\n\t\t$height = $file_info[\"1\"];\n\n\t\tif($width < $in_width && $height < $in_height){\n\t\t\t$percent = 1; // Percent = 1, 如果都比預計縮圖的小就不用縮\n\t\t}else{\n\t\t\t$w_percent = $in_width / $width;\n\t\t\t$h_percent = $in_height / $height;\n\t\t\t$percent = ($w_percent > $h_percent) ? $h_percent : $w_percent;\n\t\t}\n\n\t\t$new_width = $width * $percent;\n\t\t$new_height = $height * $percent;\n\t\t\n\t\tif($file_info[\"2\"] == 1){//gif\n\t\t\t$rs = copy($from,$save);\n\t\t\treturn $rs;\n\t\t}elseif($file_info[\"2\"] == 3){//PNG\n\t\t\timagesavealpha($image,true);\n\t\t\t$image_new = imagecreatetruecolor($new_width, $new_height);\n\t\t\timagealphablending($image_new,false);\n\t\t\timagesavealpha($image_new,true);\n\t\t\timagecopyresampled($image_new, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\n\t\t\t$rs = imagepng($image_new, $save);\n\t\t\treturn $rs;\n\t\t}else{\n\t\t\t$image_new = imagecreatetruecolor($new_width, $new_height);\n\n\t\t\timagecopyresampled($image_new, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\n\t\t\t$rs = imagejpeg($image_new, $save, 90);\n\t\t\treturn $rs;\n\t\t}\n\t}", "title": "" }, { "docid": "d74c037778ac7e351b3d8828aa89a6ae", "score": "0.47353637", "text": "protected static function as_css_measure($value) {\n\t\tif (!isset($value) || $value === false) {\n\t\t\treturn false;\n\t\t} elseif (is_numeric($value)) {\n\t\t\treturn $value.'px';\n\t\t} elseif (preg_match('#^(?:(?:(?:0|[1-9][0-9]*)(?:[.][0-9]+)?(?:%|in|[cm]m|e[mx]|p[tcx])|0)\\\\b\\\\s*){1,4}$#', $value)) { // \"1px\" or \"1px 2em\" or \"1px 2em 3pt\" or \"1px 2em 3pt 4cm\" or \"1px 0 0 4cm\"\n\t\t\treturn $value;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "ad7fc51e1b3cd7e09277dde7f8920727", "score": "0.4728324", "text": "public function wpf_units( $units ) {\r\n $units['g'] = __( 'g', 'wpf' );\r\n $units['kg'] = __( 'kg', 'wpf' );\r\n $units['mm'] = __( 'mm', 'wpf' );\r\n $units['cm'] = __( 'cm', 'wpf' ); \r\n $units['m'] = __( 'm', 'wpf' );\r\n $units['lbs'] = __( 'lbs', 'wpf' );\r\n $units['oz'] = __( 'oz', 'wpf' );\r\n $units['in'] = __( 'in', 'wpf' );\r\n $units['yd'] = __( 'yd', 'wpf' );\r\n return $units;\r\n }", "title": "" }, { "docid": "d8b6e46f504baf06d76a8ec063adc803", "score": "0.47119245", "text": "public static function centimetersToPixels($pValue = 0)\n {\n if ($pValue != 0) {\n return $pValue / 0.028;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "d81e3fc8b9a3c43fc2c58ad45be6f45a", "score": "0.47073802", "text": "function montanteStx($c, $vf, $t)\n{\n $tx = ($vf - $c) / ($c * $t);\n return $tx;\n\n}", "title": "" }, { "docid": "d608abde3bef5bf3df985254da0be906", "score": "0.46924272", "text": "public function imc(){\n return$this->peso / ($this->altura * $this->altura);\n }", "title": "" }, { "docid": "d7be3505802bf1e24eda0ae2f40c43c3", "score": "0.46882775", "text": "function get_dpi($filename){\n\t\t\t$a = fopen($filename,'r'); \n\t\t\t$string = fread($a,20); \n\t\t\tfclose($a); \n\t\t \n\t\t\t// get the value of byte 14th up to 18th \n\t\t\t$data = bin2hex(substr($string,14,4)); \n\t\t\t$x = substr($data,0,4); \n\t\t\t$y = substr($data,4,4); \n\t\t\treturn array(hexdec($x),hexdec($y)); \n\t\t}", "title": "" }, { "docid": "352b183066d464933e41655cf00d9ea1", "score": "0.4682455", "text": "function pixelsToPoints($pixels)\n {\n $points = 0.75 * floatval($pixels);\n return number_format($points, 2);\n }", "title": "" }, { "docid": "baed55a573cdee39df228260855a4f14", "score": "0.4680859", "text": "function convertMoeda(&$valorMoeda){\r\n\t\t$valorMoedaAux = explode('.' , $valorMoeda);\r\n\t\tif(isset ($valorMoedaAux[1])){\r\n\t\t\t$valorMoeda= \"R$ \".$valorMoedaAux[0].','.$valorMoedaAux[1];\r\n\t\t}else{\r\n\t\t\t$valorMoeda = \"R$ \".$valorMoedaAux[0].','.'00';\r\n\t\t}\r\n\t\treturn $valorMoeda;\r\n\t}", "title": "" }, { "docid": "33bb72630a69d7c9b71474fda0b960bc", "score": "0.4676215", "text": "function opaljob_areasize_unit_format( $value='' ){\n return $value . ' ' . '<span>'.'m2'.'</span>';\n}", "title": "" }, { "docid": "9d1683de41f1f55a6c6a8113efbf7db7", "score": "0.46707043", "text": "function convert($size)\n {\n $unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb'];\n\n return @round($size / pow(1024, ($i = floor(log($size, 1024)))), 2).' '.$unit[$i];\n }", "title": "" }, { "docid": "028d1eca3a4bb9e903c3e78a25afcda7", "score": "0.46476522", "text": "public function sqMetersFormatted(){\n\n return floatval($this->sq_meters) .'m2';\n\n }", "title": "" }, { "docid": "a5d8cc43f1d059981a8ff48d55402941", "score": "0.4646047", "text": "function revisaPrecio($minimo,$maximo,$valor){\n $numero=1000*strtr(substr($valor,1),',','.');\n if($numero>=(1*$minimo) && $numero<=(1*$maximo)){\n return true;\n } \n return false;\n}", "title": "" }, { "docid": "a46115ebd861ff5f52efbd9b83c24009", "score": "0.46175063", "text": "function mojaFunkcija($m)/*ovde definisemo naziv parametra*/ {\n echo \"<br>Zdravo svete!<br>\";\n $n=$m*10;\n echo \"<br>\".$n;\n}", "title": "" }, { "docid": "4baa6d77eb26569e520031b13dd1f81e", "score": "0.46137998", "text": "function amap_ma_get_map_width() {\n $mapwidth = trim(elgg_get_plugin_setting('map_width', AMAP_MA_PLUGIN_ID));\n if (strripos($mapwidth, '%') === false) {\n if (is_numeric($mapwidth))\n $mapwidth = $mapwidth . 'px';\n else\n $mapwidth = '100%';\n }\n\n return $mapwidth;\n}", "title": "" }, { "docid": "db96a455cdabfa5cea01661d950e66bc", "score": "0.46058628", "text": "function fileSizeConvert($bytes)\n{\n $bytes = floatval($bytes);\n $arBytes = array(\n 0 => array(\n \"UNIT\" => \"tb\",\n \"VALUE\" => pow(1024, 4)\n ),\n 1 => array(\n \"UNIT\" => \"gb\",\n \"VALUE\" => pow(1024, 3)\n ),\n 2 => array(\n \"UNIT\" => \"mb\",\n \"VALUE\" => pow(1024, 2)\n ),\n 3 => array(\n \"UNIT\" => \"kb\",\n \"VALUE\" => 1024\n ),\n 4 => array(\n \"UNIT\" => \"b\",\n \"VALUE\" => 1\n ),\n );\n\n foreach ($arBytes as $arItem) {\n if ($bytes >= $arItem[\"VALUE\"]) {\n $result = $bytes / $arItem[\"VALUE\"];\n $result = str_replace(\n \".\", \n \".\", \n strval(round($result, 0))\n ).$arItem[\"UNIT\"];\n break;\n }\n }\n return $result;\n}", "title": "" }, { "docid": "0c1e3aad2c06dea78dc31f281fcdafe4", "score": "0.4587486", "text": "function\nats2phppre_abs_int0($x) { return abs($x); }", "title": "" }, { "docid": "05ca1dcf482f675e16b2129f67f48abb", "score": "0.45768413", "text": "private function displayDimensions() {\n\t\t$w = intval($this->width);\n\t\t$h = intval($this->height);\n\t\tif ($h < 1 || $w < 1 || !$this->aspectratio) {\n\t\t\treturn; // bad input\n\t\t}\n\t\t\n\t\t$ar = explode(\":\", $this->aspectratio);\n\t\tif (count($ar) > 1) {\n\t\t\t$ar = $ar[0] / $ar[1]; // e.g. 4:3 becomes 1.333...\n\t\t} else {\n\t\t\t$ar = $ar[0];\n\t\t}\n\t\t\n\t\t$calcw = intval($h * $ar);\n\t\t$calch = intval($w / $ar);\n\t\t$output = $calcw . \"x\" . $h;\n\t\t$outputAlt = $w . \"x\" . $calch;\n\t\t\n\t\t$chk = 27;\n\t\t$chkw = $calcw > ($w-$chk) && $calcw < ($w+$chk);\n\t\t$chkh = $calch > ($h-$chk) && $calch < ($h+$chk);\n\t\tif ($chkw && $chkh) {\n\t\t\t// calculated dimensions are +/-$chk pixels of source dimensions, return null\n\t\t\treturn; \n\t\t}\n\t\t\n\t\tif ( ($w * $calch) > ($calcw * $h) ) { // pick greater overall size\n\t\t\t$tmp = $output;\n\t\t\t$output = $outputAlt;\n\t\t\t$outputAlt = $tmp;\n\t\t}\n\t\t\n\t\treturn \"~&gt;&nbsp;<span title='Alternatively \"\n\t\t\t. $outputAlt . \"'>\" . $output . \"</span>\";\n\t}", "title": "" }, { "docid": "e08fb040a495c5a7df80621b2cfbe1bb", "score": "0.4575371", "text": "function coordinatesFromDmsToDecimal($coordinate) {\n\t$matches = array();\n\tpreg_match('/(\\d\\d)(\\w)(\\d\\d)(\\d\\d).*/', $coordinate, $matches);\n\t\n\t$deg = $matches[1];\n\t$min = $matches[3];\n\t$sec = $matches[4];\n\t\n\t$decimalCoordinate = $deg + ((($min*60) + ($sec)) / 3600); \n\t\n\tif ($matches[2] == 'S' || $matches[2] == 'W') {\n\t\t$decimalCoordinate = (0 - $decimalCoordinate);\n\t}\n\t \n return $decimalCoordinate;\n}", "title": "" }, { "docid": "4ac31311b36d05136aaa737a545e6896", "score": "0.45683375", "text": "function megapixel() {\n\t\treturn (integer)($this->width() * $this->height() / 1000000);\n\t}", "title": "" }, { "docid": "06e26029a210549d122b1a246a6a81e5", "score": "0.45666668", "text": "function mobileFormat() {\n $prefixes = [\n 813, 817, 900,\n 905, 906, 907,\n 908, 909, 910,\n 911, 912, 915,\n 916, 917, 918,\n 919, 920, 921,\n 922, 923, 925,\n 926, 927, 928,\n 929, 930, 931,\n 932, 933, 934,\n 935, 936, 937,\n 938, 939, 940,\n 942, 943, 944,\n 946, 947, 948,\n 949, 971, 973,\n 974, 975, 977,\n 978, 979, 980,\n 989, 994, 996,\n 997, 998, 999\n ];\n\n return $prefixes[mt_rand(0, 56)] . '#######';\n}", "title": "" }, { "docid": "2d28215d8d683836e2f3c00f0dc745df", "score": "0.45624492", "text": "function amap_ma_get_unit_of_measurement_string() {\n $unitmeas = trim(elgg_get_plugin_setting('unitmeas', AMAP_MA_PLUGIN_ID));\n if ($unitmeas === 'meters') {\n return elgg_echo(\"amap_maps_api:search:radius:meters\");\n } else if ($unitmeas === 'km') {\n return elgg_echo(\"amap_maps_api:search:radius:km\");\n } else if ($unitmeas === 'miles') {\n return elgg_echo(\"amap_maps_api:search:radius:miles\");\n }\n\n return elgg_echo(\"amap_maps_api:settings:unitmeas:meters\"); // default value is for meters\n}", "title": "" }, { "docid": "6f861a5f8262a45e3a65ea1107c60103", "score": "0.45581785", "text": "public function m() : ?float\n {\n return $this->m;\n }", "title": "" }, { "docid": "15c7dc7c7255dcca696898f01b4d5981", "score": "0.45483303", "text": "private function readPointM()\n {\n return $this->createPoint($this->readXY() + $this->readM());\n }", "title": "" }, { "docid": "1df240fb33d5ece00f7e07f45e358c3b", "score": "0.45421395", "text": "function milToAMPM($hour){\n $temp = explode(':', $hour);\n $AMPM = 'am';\n if(intval($temp[1]) > 11){\n $AMPM = 'pm';\n if(intval($temp[1]) > 12){\n $temp[1] = intval($temp[1]) % 12; \n }\n }\n return $temp[1] . ':' . $temp[2] . $AMPM;\n}", "title": "" }, { "docid": "1c0bea2ee30888ec64a479afa07165a3", "score": "0.45415983", "text": "function convert($from,$to,$size,$quality = 75)\n{\n\tglobal $CONF_XTRA;\n\t$output = array();\n\t$return = false;\n\t$args = \"-strip -resize \\\"$size\\\" -colorspace RGB -quality $quality\";\n\t$cmd = \"convert\";\n\tpassthru(\"$cmd $args \\\"$from\\\" \\\"$to\\\"\", $output);\n/*\n\tpre($_FILES);\n\techo \"$cmd $args \\\"$from\\\" \\\"$to\\\"\";\n\tpre($return, \"return\");\n\tpre($output, \"output\");\n*/\n\tif(substr(phpversion(),0,1) > 4 && $return || (!is_file($to) || (time() - filectime($to) > 2)))\n//\tif(!is_file($to) || (time() - filectime($to) > 2))\n\t{\n\t\tlogit(\"error\",\"convert: argument -strip nefunguje.\");\n\n/*\t\t// uz nepotrebuju navic nejak blbnul :(\n\t\t// patch pro starej imagemagic, aby neresizoval obrazky pokud jsou mensi nez je pozadavek\n\t\t$size_test = getimagesize($from);\n\t\t$size_request = explode(\"x\",$size);\n\t\tif(substr($size,-1) == \">\" && ($size_test[0] <= $size_request[0] || $size_test[1] <= substr($size_request[1],0,-1)))\n\t\t{\n\t\t\techo $from.\" | \".$to;\n\t\t\tif(!copy($from, $to)) {\n\t\t\t\tlogit(3,\"Nepodařilo se zkopirovat $from > $to!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$args = \" -resize \\\"$size\\\" -colorspace RGB -quality $quality\";\n\t\t\texec(\"convert $args $from $to\", $output,$return);\n\t\t}\n*/\t\t\n\t\t$args = \" -resize \\\"$size\\\" -colorspace RGB -quality $quality\";\n\t\texec(\"convert $args $from $to\", $output,$return);\n\t}\n\t// v PHP 4 vraci \n\t// TODO: v php 4. exec vraci $return = 1, i kdyz probehne v poradku :( v php 5 vyhodit z podminky && $return !=1\n\tif(substr(phpversion(),0,1) > 4 && $return || (is_file($to) && (time() - filectime($to) < 2)))\n\t{\n\t\treturn true;\n\t}\n\telse {\n\t\tlogit(3,\"Nepodařilo se vytvořit thumbs $from > $to! convert returned $return \".serialize($output));\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "bcdafb4173d04728bc327d9b2ab3438b", "score": "0.45411435", "text": "function amap_ma_get_unit_of_measurement_string_simple() {\n $unitmeas = trim(elgg_get_plugin_setting('unitmeas', AMAP_MA_PLUGIN_ID));\n if ($unitmeas === 'meters') {\n return elgg_echo(\"amap_maps_api:search:meters\");\n } else if ($unitmeas === 'km') {\n return elgg_echo(\"amap_maps_api:search:km\");\n } else if ($unitmeas === 'miles') {\n return elgg_echo(\"amap_maps_api:search:miles\");\n }\n\n return elgg_echo(\"amap_maps_api:search:meters\"); // default value is for meters\n}", "title": "" }, { "docid": "ee7290ee18ee9d18514cbc10c1cdd7bf", "score": "0.4540741", "text": "function calc_fontsizes_PT($basefontsize) {\n $return = array();\n $return['0.33'] = round($basefontsize * 0.33, 2);\n $return['0.5'] = round($basefontsize * 0.5, 2);\n $return['0.6'] = round($basefontsize * 0.6, 2);\n $return['0.66'] = round($basefontsize * 0.66, 2);\n $return['0.7'] = round($basefontsize * 0.7, 2);\n $return['0.8'] = round($basefontsize * 0.8, 2);\n $return['0.9'] = round($basefontsize * 0.9, 2);\n $return['1'] = $basefontsize;\n $return['1.1'] = round($basefontsize * 1.1, 2);\n $return['1.2'] = round($basefontsize * 1.2, 2);\n $return['1.3'] = round($basefontsize * 1.3, 2);\n $return['1.33'] = round($basefontsize * 1.33, 2);\n $return['1.4'] = round($basefontsize * 1.4, 2);\n $return['1.5'] = round($basefontsize * 1.5, 2);\n $return['1.66'] = round($basefontsize * 1.66, 2);\n $return['1.8'] = round($basefontsize * 1.8, 2);\n $return['2'] = round($basefontsize * 2, 2);\n $return['2.33'] = round($basefontsize * 2.33, 2);\n $return['2.5'] = round($basefontsize * 2.5, 2);\n $return['2.66'] = round($basefontsize * 2.66, 2);\n $return['3'] = round($basefontsize * 3, 2);\n $return['3.33'] = round($basefontsize * 3.33, 2);\n $return['3.5'] = round($basefontsize * 3.5, 2);\n $return['3.66'] = round($basefontsize * 3.66, 2);\n $return['4'] = round($basefontsize * 4, 2);\n $return['4.33'] = round($basefontsize * 4.33, 2);\n $return['4.5'] = round($basefontsize * 4.5, 2);\n $return['4.66'] = round($basefontsize * 4.66, 2);\n $return['5'] = round($basefontsize * 5, 2);\n $return['5.5'] = round($basefontsize * 5.5, 2);\n $return['6'] = round($basefontsize * 6, 2);\n $return['6.5'] = round($basefontsize * 6.5, 2);\n $return['7'] = round($basefontsize * 7, 2);\n /**/\n //print \"<pre>\";print_r($return);print \"</pre>\"; //???\n ksort($return);\n return $return;\n}", "title": "" }, { "docid": "d628450b0dd980733fae1e9d16f7059c", "score": "0.45403254", "text": "protected function calculateMediaWidthsAndHeights() {}", "title": "" }, { "docid": "5524d272050413b11c4a88c911a2e14b", "score": "0.4538365", "text": "public static function pointsToPixels($pValue = 0)\n {\n if ($pValue != 0) {\n return $pValue * 1.333333333;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "857ff95b15272439721239f5ab5aeb3e", "score": "0.45251966", "text": "function estcalc85equiv($width,$length) {\n $one=floor($width/8.5)*floor($length/11);\n $two=floor($length/8.5)*floor($width/11);\n if (!$one&&!$two) { //if sheet is < 8.5x11\n $small=1;\n $one=floor(8.5/$width)*floor(11/$length);\n $two=floor(8.5/$length)*floor(11/$width);\n };\n if ($two>$one) $two=$one;\n if ($small) $one=1/$one;\n return $one;\n }", "title": "" }, { "docid": "aad32cfca98d9ede9cc491dd8b480f62", "score": "0.4516212", "text": "function rgb_xyz($r,$g,$b) {\n\n\t$r /= 255;\n\t$g /= 255;\n\t$b /= 255;\n\n\t$r=(( $r > 0.04045 )?pow(( $r + 0.055 ) / 1.055,2.4):($r/12.92))*100;\n\t$g=(( $g > 0.04045 )?pow(( $g + 0.055 ) / 1.055,2.4):($g/12.92))*100;\n\t$b=(( $b > 0.04045 )?pow(( $b + 0.055 ) / 1.055,2.4):($b/12.92))*100;\n\t\n\t//Observer. = 2°, Illuminant = D65\n\t$x = $r * 0.4124 + $g * 0.3576 + $b * 0.1805;\n\t$y = $r * 0.2126 + $g * 0.7152 + $b * 0.0722;\n\t$z = $r * 0.0193 + $g * 0.1192 + $b * 0.9505;\n\t\n\treturn array($x,$y,$z);\n}", "title": "" }, { "docid": "01981740e822039fcb2b6737700137b0", "score": "0.4514284", "text": "private function _calculateBitmap() {\n $tmp\t= sprintf(\"%064d\", 0);\n $tmp2\t= sprintf(\"%064d\", 0);\n foreach ($this->_data as $key=>$val) {\n if ($key<65) {\n $tmp[$key-1]\t= 1;\n }\n else {\n $tmp[0]\t= 1;\n $tmp2[$key-65]\t= 1;\n }\n }\n\n $result\t= \"\";\n if ($tmp[0]==1) {\n while ($tmp2!='') {\n $result\t.= base_convert(substr($tmp2, 0, 4), 2, 16);\n $tmp2\t= substr($tmp2, 4, strlen($tmp2)-4);\n }\n }\n $main\t= \"\";\n while ($tmp!='') {\n $main\t.= base_convert(substr($tmp, 0, 4), 2, 16);\n $tmp\t= substr($tmp, 4, strlen($tmp)-4);\n }\n $this->_bitmap\t= strtoupper($main. $result);\n\n return $this->_bitmap;\n }", "title": "" }, { "docid": "8829cc1703154df606649123b7b73780", "score": "0.45131633", "text": "function mms($number = '', $options = array()) {\n\t\treturn $this->Html->image($this->base_url . urlencode('mms:' . $number) . $this->_optionsString($options));\n\t}", "title": "" }, { "docid": "4ddb1eee57eb40774974fd24c1adf0e8", "score": "0.45124745", "text": "function resampleimage(&$image_content, $to_width = 1024, $to_height = 960, $bgcolor = array('R'=>255,'G'=>255,'B'=>255) ){\n if(gettype($image_content) !== 'string') return;\n \n $img = imagecreatefromstring($image_content);\n $width = imagesx($img);\n $height = imagesy($img);\n $x = 0;\n $y = 0;\n $new_x = 0;\n $new_y = 0;\n \n if($width > $to_width && $height > $to_height){\n if($width/$height > $to_width/$to_height){\n $new_width = ($to_height / $height) * $width; \n $new_height = $to_height;\n $x = ($new_width - $to_width) / 2;\n }else{\n $new_width = $to_width;\n $new_height = ($to_width / $width) * $height;\n $y = ($new_height - $to_height) / 2;\n }\n }elseif($width > $to_width && $height < $to_height){\n $new_width = $to_width;\n $new_height = $height;\n $new_y = ($to_height - $height) /2 ;\n $x = ($width - $to_width) / 2;\n }elseif($width < $to_width && $height > $to_height){\n $new_x = ($to_width - $width)/2;\n $y = ($height - $to_height)/2;\n \n $new_width = $width;\n $new_height = $to_height;\n }else{\n \n $new_x = ($to_width - $width)/2;\n $new_y = ($to_height - $height)/2;\n \n $new_width = $width ;\n $new_height = $height ;\n }\n \n \n $new_img = imagecreatetruecolor($to_width, $to_height);\n $color = imagecolorallocate($new_img, $bgcolor['R'], $bgcolor['G'], $bgcolor['B']);\n imagefill($new_img, 0, 0, $color);\n //imagesavealpha($new_img, TRUE);\n \n if(!imagecopyresampled($new_img, $img, $new_x, $new_y, $x, $y, $new_width, $new_height, $width, $height)) \n return false;\n \n ob_start(); imagejpeg($new_img);\n return ob_get_clean();\n}", "title": "" }, { "docid": "b575fa92c0f35491de3370c691f1b638", "score": "0.45123324", "text": "public function getMonoImageResolution()\n {\n $value = $this->getArgumentValue('-dMonoImageResolution');\n if (null === $value) {\n switch ($this->getPdfSettings()) {\n case PdfSettings::PRINTER:\n case PdfSettings::PREPRESS:\n return 1200;\n default:\n return 300;\n }\n }\n\n return intval($value);\n }", "title": "" }, { "docid": "94bd9a53c756772af66c6b7f45484ce6", "score": "0.4510473", "text": "function pxToLatLng(array $px, $zoom) {\n global $Bc, $Cc, $zc;\n $zoomDenominator = $zc[$zoom];\n $g = ($px[1] - $zoomDenominator) / (-$Cc[$zoom]);\n $lat = ($px[0] - $zoomDenominator) / $Bc[$zoom];\n $lng = RAD_TO_DEG * (2 * atan(exp($g)) - 0.5 * M_PI);\n return [$lat, $lng];\n}", "title": "" }, { "docid": "8a0135eae25e3f9b5789a1c779d0fa0a", "score": "0.44992852", "text": "public function fromPt($value)\n {\n return ($value / $this->scaleFactor);\n }", "title": "" }, { "docid": "6f4782005ed037d97d5117b5bc780f80", "score": "0.4494062", "text": "private function readMRange()\n {\n $values = [\n 'mmin' => $this->parseM($this->readDoubleL(Shapefile::FILE_SHP)),\n 'mmax' => $this->parseM($this->readDoubleL(Shapefile::FILE_SHP)),\n ];\n return $this->getOption(Shapefile::OPTION_SUPPRESS_M) ? [] : $values;\n }", "title": "" }, { "docid": "a01e37fa070ce06bcd5e4e139bca1944", "score": "0.44936845", "text": "function parse_size($size) {\n $unit = preg_replace('/[^bkmgtpezy]/i', '', $size); // Remove the non-unit characters from the size.\n $size = preg_replace('/[^0-9\\.]/', '', $size); // Remove the non-numeric characters from the size.\n if ($unit) {\n // Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.\n return round($size * pow(1024, stripos('bkmgtpezy', $unit[0])));\n }\n else {\n return round($size);\n }\n}", "title": "" }, { "docid": "478fee742c3d5d3ad359de64f2309566", "score": "0.4486318", "text": "static function scale($sx, $sy, $sz)\r\n {\r\n self::$m_scale[0] = $sx;\r\n self::$m_scale[5] = $sy;\r\n self::$m_scale[10] = $sz;\r\n return self::$m_scale;\r\n }", "title": "" }, { "docid": "397f42c79bffa36b7ada3381d13cff64", "score": "0.44851857", "text": "abstract public function toMilliseconds();", "title": "" }, { "docid": "d1677a98c67ec9204444f43dbba7d676", "score": "0.4482572", "text": "function convertToBytes($from){\n $number=substr($from,0,-1);\n switch(strtoupper(substr($from,-1))){\n case \"K\":\n return $number*1024;\n case \"M\":\n return $number*pow(1024,2);\n case \"G\":\n return $number*pow(1024,3);\n default:\n return $from;\n }\n}", "title": "" }, { "docid": "be6e75f8104cbe96e50d1db1333684ce", "score": "0.4474525", "text": "function Convert($gA, $Op)\r\n {\r\n $ans;\r\n if ($Op == \"ConversionToMi\")\r\n {\r\n $ans = $gA * 0.62137;\r\n $ans = $ans.\" mi\";\r\n }\r\n else if ($Op == \"ConversionToKm\")\r\n {\r\n $ans = $gA * 1.60934;\r\n $ans = $ans.\" km\";\r\n }\r\n return $ans;\r\n }", "title": "" }, { "docid": "4285018e59808be9d8b0c0c4ce6e5304", "score": "0.44586313", "text": "public function toPt($value)\n {\n return ($value * $this->scaleFactor);\n }", "title": "" }, { "docid": "4604d1374b8412ae890c694474c1453d", "score": "0.44575852", "text": "function area_unit($radius ,$cm=true ){\r\n $pie = 3.142;\r\n $area = $pie *radius *$radius;\r\n if(cm){\r\n echo \"area is $area cm\";\r\n }else{\r\n echo \"area is $area m\";\r\n }\r\n}", "title": "" }, { "docid": "8af718ca3308a91efab366f898a96b5f", "score": "0.44501144", "text": "public function toString() {\n\t return ($this->units == 'px' ? floor($this->value) :\n\t \t\tround($this->value, self::PRECISION)) .\n\t \t$this->units;\n\t}", "title": "" }, { "docid": "e6e844b5b6f2b73f2747705813c06331", "score": "0.44463295", "text": "function carton_get_weight( $weight, $to_unit ) {\n\n\t$from_unit \t= strtolower( get_option('carton_weight_unit') );\n\t$to_unit\t= strtolower( $to_unit );\n\n\t//Unify all units to kg first\n\tif ( $from_unit !== $to_unit ) {\n\n\t\tswitch ( $from_unit ) {\n\t\t\tcase 'g':\n\t\t\t\t$weight *= 0.001;\n\t\t\tbreak;\n\t\t\tcase 'lbs':\n\t\t\t\t$weight *= 0.4536;\n\t\t\tbreak;\n\t\t\tcase 'oz':\n\t\t\t\t$weight *= 0.0283;\n\t\t\tbreak;\n\t\t}\n\n\t\t// Output desired unit\n\t\tswitch ( $to_unit ) {\n\t\t\tcase 'g':\n\t\t\t\t$weight *= 1000;\n\t\t\tbreak;\n\t\t\tcase 'lbs':\n\t\t\t\t$weight *= 2.2046;\n\t\t\tbreak;\n\t\t\tcase 'oz':\n\t\t\t\t$weight *= 35.274;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn ( $weight < 0 ) ? 0 : $weight;\n}", "title": "" }, { "docid": "2c29d78498c7b5b77f8a5f8aa934915b", "score": "0.44353443", "text": "function extract1($trkpt){\n\n $attrs = $trkpt ->attributes();\n\n $lat = (float)$attrs[\"lat\"];\n $lon = (float)$attrs[\"lon\"];\n\n $latInRad = pi() / 180 * $lat;\n\n $lonInRad= pi() / 180 * $lon;\n\n return array((float)$latInRad,(float)$lonInRad);\n\n}", "title": "" }, { "docid": "477a06d9544ed3a9b343d44c3c260192", "score": "0.44336194", "text": "function shwe_16_pell_to_15_pell($kyat){\n $ans = $kyat * 17;\n $ans = $ans / 16;\n return $ans;\n}", "title": "" }, { "docid": "b04e13083ded505eddca17ba48341c2b", "score": "0.443066", "text": "function mp_meta_viewport(){\n $viewport = '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable = yes\">'.\"\\n\";\n echo apply_filters('mp_meta_viewport', $viewport);\n}", "title": "" }, { "docid": "734bc36a0b8342d5164fa792419c8b22", "score": "0.4430457", "text": "function distanceCalculation($point1_lat, $point1_long, $point2_lat, $point2_long, $unit = 'km' ,$decimals = 2){\n\n $degrees = rad2deg(acos((sin(deg2rad($point1_lat))*sin(deg2rad($point2_lat))) + (cos(deg2rad($point1_lat))*cos(deg2rad($point2_lat))*cos(deg2rad($point1_long-$point2_long)))));\n\n switch($unit){\n \n case 'km':\n $distance = $degrees * 111.13384;\n break;\n\n case 'mi':\n $distance = $degrees * 69.05482;\n break;\n\n case 'nmi':\n $distance = $degrees * 59.97662;\n\n }\n\n //echo \"la distancia entre lat: \".$point1_lat.\" long: \".$point1_long. \" y lat2: \".$point2_lat.\" long: \".$point2_long.\"es de \". round($distance,$decimals) . \"\\n\";\n\n return round($distance, $decimals);\n\n\n}", "title": "" }, { "docid": "e49425f5dd012e645752ec822c01e143", "score": "0.44302902", "text": "function formatMBytes( $bytes, $precision = 2 )\n{\n $units = array('Mb', 'Gb', 'Tb');\n $bytes = max($bytes, 0);\n $pow = floor(($bytes ? log($bytes) : 0) / log(1024));\n $pow = min($pow, count($units) - 1);\n $bytes /= pow(1024, $pow);\n return round($bytes, $precision) . ' ' . $units[$pow];\n}", "title": "" }, { "docid": "0bfb15af84fd107bfabda52d40e7fe83", "score": "0.44197035", "text": "function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}", "title": "" }, { "docid": "48d4b54d2d5873b2af68ea0cee7c7354", "score": "0.4415865", "text": "function shwe_15_pell_to_16_pell($kyat){\n $ans = $kyat * 16;\n $ans = $ans / 17;\n return $ans;\n}", "title": "" }, { "docid": "d461c80241859bef7d4a2905d44f5a24", "score": "0.44127288", "text": "function getMonthPixels( &$data ) {\n\t\t$month_total_edits = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\tforeach( $tmp['months'] as $month => $newdata ) {\n\t\t\t\t$month_total_edits[ $month.'/'.$year ] = $newdata['all'];\n\t\t\t}\n\t\t}\n\t\n\t\t$max_width = max( $month_total_edits );\n\t\t\n\t\t$pixels = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\tforeach( $tmp['months'] as $month => $newdata ) {\n\t\t\t\tif( $tmp['all'] == 0 ) $pixels[$year][$month] = array();\n\t\t\t\t\n\t\t\t\t$processarray = array( 'all' => $newdata['all'], 'anon' => $newdata['anon'], 'minor' => $newdata['minor'] );\n\t\t\t\t\n\t\t\t\tasort( $processarray );\n\t\t\t\t\n\t\t\t\tforeach( $processarray as $type => $count ) {\n\t\t\t\t\t$newtmp = ceil( ( 500 * ( $count ) / $max_width ) );\n\t\t\t\t\t$pixels[$year][$month][$type] = $newtmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $pixels;\n\t}", "title": "" }, { "docid": "1b94700a35b03a198ef398b9d481a6bd", "score": "0.44098487", "text": "function getMatrixX() {\n // width\n return 15;\n }", "title": "" }, { "docid": "ab344738c8a82431757feb36e4e5f2fd", "score": "0.44066504", "text": "function plugin_TimeTracking_hhmm_to_minutes( $p_hhmm) {\n\tsscanf($p_hhmm, \"%d:%d\", $hours, $minutes); \n\treturn $hours * 60 + $minutes;\n}", "title": "" } ]
b125bb31f718f42e305eb967c6f2b715
entre un compte et verifie qu'il existe
[ { "docid": "9ee55e089b73a4d5b9f8fdc92b4fc0b9", "score": "0.54864025", "text": "function check_compte($tablecompte=[]){\n $i=0; // verifie l'existence d'un element\n\n foreach($tablecompte as $v){ // verifie l'existence du compte\n if($v!=null){\n if($v!=$tablecompte[0]){\n $i++;\n }\n }\n }\n\n if($i==0){ // verifie si un compte pour le client selectionne existe\n echo(\"Aucun compte n'est repertorie actuellement pour ce client...\\n\");\n return;\n }\n\n while(1){\n\n echo(\"Voici les comptes de ce client:\\n\\n\");\n feach2d($tablecompte);\n \n $z=readline(\"Entrez le numero du compte: \");\n\n foreach($tablecompte as $v){ // verifie l'existence du compte\n if($v!=null){\n if($v[2]==$z){\n unset($v);\n $i=0;\n return $z;\n }\n }\n }\n\n unset($v);\n\n echo(\"Ce compte n'existe pas. Veuillez reesayer.\\n\\n\");\n }\n}", "title": "" } ]
[ { "docid": "232d57fa05d2230db1bb90e8eb4d3664", "score": "0.75213534", "text": "public function verificaExistencia() {}", "title": "" }, { "docid": "d3cf13cdb7eebc511efffd954684623e", "score": "0.6953437", "text": "private function isExist(){\n }", "title": "" }, { "docid": "74e8ffbc399f85a89d8608f635405152", "score": "0.68273443", "text": "function opcion__verifica_existencia()\n {\n $id_instancia = $this->get_id_instancia_actual();\n $this->consola->titulo( 'INSTANCIA: ' . $id_instancia );\n $this->consola->enter();\n\n //Chequeo existencia de la carpeta (sin eso no deberia haber modelo)\n if (! toba_modelo_instancia::existe_carpeta_instancia($id_instancia) ) {\n $this->consola->error( 'Instancia inexistente o carpeta no accesible' );\n exit(-1);\n }\n\n //Chequeo existencia de la bd (si no hay bd... no hay instancia)\n if (! $this->get_instalacion()->hay_bases()) {\n $this->consola->error( 'Base de datos inexistente' );\n exit(-1);\n }\n\n //Chequeo que este el schema y que haya al menos una tabla\n if (! $this->get_instancia($id_instancia)->existe_modelo()) {\n $this->consola->error( 'Instancia inexistente o identificador erroneo' );\n exit(-1);\n }\n $this->consola->progreso_fin();\n }", "title": "" }, { "docid": "77ab319f1ec98a354327d94ceddfb1c5", "score": "0.63770276", "text": "function check_cursus_label() {\n $sql_cursus_label_exist = \"SELECT * FROM `cursus` WHERE `etu` =\" . $_GET['id'] . \"\";\n $result = $GLOBALS['conn']->query($sql_cursus_label_exist);\n if (!$result->num_rows) {\n echo (\"Le cursus de \" . $_GET['id'] . \" n'existe pas<br>\");\n new_cursus();\n } else {\n echo (\"Le cursus de \" . $_GET['id'] . \" existe\");\n }\n }", "title": "" }, { "docid": "558ebdcafddb05b95473ef5c6d006004", "score": "0.6322509", "text": "function entravaux_check_verrou($nom, $force=false){\r\n\tif (!isset($GLOBALS['meta'][$m='entravaux_'.$nom]) OR $force){\r\n\t\tecrire_meta($m,file_exists(_DIR_VAR.$m.\".lock\")?\"oui\":\"non\",'non');\r\n\t}\r\n\treturn $GLOBALS['meta'][$m]==\"oui\"; // si oui : verrou pose\r\n}", "title": "" }, { "docid": "65278c3d3e5453191f15c98bd12e8350", "score": "0.6301047", "text": "function comprobarExistenciaTrabajo(){\n\t\n\n\t$sql = \"SELECT * FROM TRABAJO WHERE ( IdTrabajo = '$this->IdTrabajo')\";\n\n\t//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows == 1){//si hay 1 tupla es que existe algun trabajo\n\t\t\treturn true; //existe el trabajo\n\t\t}else{ //no existe ningun trabajo\n\t\t\treturn false;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "dab86c9fb9f04c9ae680e333cdd9762c", "score": "0.6184602", "text": "function isExists()\n\t\t{\n\t\t}", "title": "" }, { "docid": "2e6dad9d0f04ee35a338a0decf6906b8", "score": "0.6164864", "text": "function buscar_pres() //funcion para ver si el registro existe \r\n\t{\r\n\t$sql=\"select * from slc_empresa_pres where nom_empresa='$this->nom'\"; \r\n\t $result=mysql_query($sql,$this->conexion);\r\n\t $n=mysql_num_rows($result);\r\n\t if($n==0)\r\n\t\t\t return 'false';\r\n\t\t\telse\r\n\t\t\t return 'true';\r\n\t}", "title": "" }, { "docid": "b6390a7854f44fbd2e9b44d123a7e41a", "score": "0.6154047", "text": "function comprobarExistenciaHistoria(){\n\n\t$sql = \"SELECT * FROM HISTORIA WHERE (\n \t\t\t\t\t\t\t(IdTrabajo = '$this->IdTrabajo') AND \n \t\t\t\t\t\t\t(IdHistoria = '$this->IdHistoria'))\"; //comprobar que existe la historia en el trabajo\n\t//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows > 0){ //si hay mas de 0 tuplas es que existe alguna entrega\n\t\t\treturn true; //devolvemos que existe alguna entrega\n\t\t}else{ //si es 0\n\t\t\treturn false; // no existe ninguna entrega\n\t\t}\n\t}\n}", "title": "" }, { "docid": "90ec23e29475816cf91b38220538baf5", "score": "0.6112619", "text": "public function DisplayAlreadyExists();", "title": "" }, { "docid": "5ffcf5fb5e3254da936e3e178482baaf", "score": "0.6107545", "text": "function comprobarExistenciaEntrega(){\n\n\t$sql = \"SELECT * FROM ENTREGA WHERE (login = '$this->login' AND IdTrabajo = '$this->IdTrabajo' )\";\n\t//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows > 0){ //si hay mas de 0 tuplas es que existe alguna entrega\n\t\t\treturn true; //devolvemos que existe alguna entrega\n\t\t}else{ //si es 0\n\t\t\treturn false; // no existe ninguna entrega\n\t\t}\n\t}\n}", "title": "" }, { "docid": "7bb5a8f2a4c160d7917f831f190003bf", "score": "0.60926664", "text": "public function DocumentExist()\n {\n \treturn \\File::exists(public_path('images/cover/').$this->image);\n }", "title": "" }, { "docid": "041aa569c93e08e646da594ff51b78d2", "score": "0.6092398", "text": "public function exists(){\n\treturn false;\n\t}", "title": "" }, { "docid": "927aece8d685df94e12c9056d05c1e6c", "score": "0.6061811", "text": "public function comprobarExiste()\n {\n $user = $_GET['usuario'];\n $user = strtolower($user);\n $this->load->model(\"Usuarios_m\");\n\n echo $this->Usuarios_m->existeEnDB($user);\n }", "title": "" }, { "docid": "aa7cf3018071a6d29efbf76ae953148d", "score": "0.6021338", "text": "public function allreadyExist(){\n\t\tif(file_exists($this->getPath('info'))&&file_exists($this->getPath('dir'))){\n\t\t\treturn true;\n\t\t}\n\t\t$this->Log('table allready exist...',\"error\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c02c588aebd9f42070b2b03c04cd9b11", "score": "0.59990185", "text": "function existe($arq,$retorno){\n\t//1 - proprio arquivo testado\n\t//2 - true ou false\n\t//3 - retorna um arquivo informado para retorno\n\t$obj = @controle(\"dirbase\").\"/$arq\";\n\t#$_SESSION[obj] = $obj;\n\tif(file_exists($obj)){\n\t\tif($retorno){\n\t\t\treturn $arq;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}else{\n\t\tif($retorno){\n\t\t\tif(strlen($retorno)>1){\n\t\t\t\treturn $retorno;\n\t\t\t}else{\n\t\t\t\t#return $obj;\n\t\t\t\treturn \"images/bt_excluir.png\";\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "fcff01597c0a180552d34ec96065315f", "score": "0.5994101", "text": "function existsCourse($name, $fid) {\n\tglobal $db;\n\t$consulta=$db->query(\"SELECT cid FROM cursos WHERE code='\".$name.\"' and fid='\".$fid.\"'\");\n\t$num=$db->num_rows($consulta);\n\tif($num>0) {\n\t\treturn true;\n\t} else {\t\n\t\treturn false;\n\t}\t\n}", "title": "" }, { "docid": "dcc16ac7030cc8662ec512ae3c4544be", "score": "0.598551", "text": "function checarCenarioExistente($projeto, $titulo) {\n \n //tests if the variable is not null\n assert($projeto != NULL);\n assert($titulo != NULL);\n \n //tests if the variable has the correct type\n assert(is_string($projeto));\n assert(is_string($titulo));\n \n $naoexiste = false;\n\n $r = bd_connect() or die(\"Erro ao conectar ao SGBD<br>\" . mysql_error() . \"<br>\" . __FILE__ . __LINE__);\n $q = \"SELECT * FROM cenario WHERE id_projeto = $projeto AND titulo = '$titulo' \";\n $qr = mysql_query($q) or die(\"Erro ao enviar a query de select no cenario<br>\" . mysql_error() . \"<br>\" . __FILE__ . __LINE__);\n $resultArray = mysql_fetch_array($qr);\n if ($resultArray == false) {\n $naoexiste = true;\n }\n\n return $naoexiste;\n}", "title": "" }, { "docid": "2fc3bb4f55ae49747d9e0d1412fc2430", "score": "0.5969108", "text": "function comprobarExisteParticipante($dni)\n\t\t{\n\t\t\t$mysqli=$this->conexionBD();\n\t\t\t$query=\"SELECT * FROM participante where `dni` ='$dni'\";\n\t\t\t$resultado=$mysqli->query($query);\n\t\t\tif(mysqli_num_rows($resultado)){\n\t\t\t\t$mysqli->close();\n\t\t\t\treturn TRUE;\n\t\t\t}else{\n\t\t\t\t$mysqli->close();\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b6940166391059734b45605a27bde962", "score": "0.5951077", "text": "private function checkExist(){\n if (empty($this->name)) {\n $this->reset();\n throw new Exception('Пустое имя зоны.');\n }\n $domain = new self(['name' => $this->name]);\n if (isset($domain->id)) {\n $this->reset();\n throw new Exception('Зона уже существует.');\n }\n }", "title": "" }, { "docid": "cfdd49402be6b11d3fb9f77b2019368a", "score": "0.5939451", "text": "public function ExisteGuia ($num){\n $consulta = $this->db->query('SELECT * FROM GdespachoC WHERE codnumero = \"'.$num.'\"');\n if($filas = $consulta->fetch_assoc()){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "849ff75d2f5c31d3980b4943ef7a6de0", "score": "0.59302074", "text": "function yaExiste($anio,$mes) {\r\n\t$sql = \"select idadministrativo from lcdd_administrativo where anio = \".$anio.\" and mes = \".$mes;\r\n\t$res\t=\t$this->query($sql,0);\r\n\tif (mysql_num_rows($res) > 0) {\r\n\t\treturn true;\r\n\t} else {\r\n\t\treturn false;\r\n\t}\r\n}", "title": "" }, { "docid": "2b1ea81dfe2f4f83c54b4a690b3502bf", "score": "0.5918383", "text": "function comprobarExistenciaAlias(){\n\n\t$sql = \"SELECT * FROM ENTREGA WHERE (Alias = '$this->AliasEvaluado' AND IdTrabajo = '$this->IdTrabajo')\";\n\t//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows > 0){ //si hay mas de 0 tuplas es que existe alguna entrega\n\t\t\treturn true; //devolvemos que existe alguna entrega\n\t\t}else{ //si es 0\n\t\t\treturn false; // no existe ninguna entrega\n\t\t}\n\t}\n}", "title": "" }, { "docid": "aff66d6ed00f5461d450efc5ee58d83f", "score": "0.59094346", "text": "function comprobarExistenciaAlias(){\n\n\t$sql = \"SELECT * FROM ENTREGA WHERE (Alias = '$this->Alias' AND IdTrabajo = '$this->IdTrabajo')\";\n\t//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows > 0){ //si hay mas de 0 tuplas es que existe alguna entrega\n\t\t\treturn true; //devolvemos que existe alguna entrega\n\t\t}else{ //si es 0\n\t\t\treturn false; // no existe ninguna entrega\n\t\t}\n\t}\n}", "title": "" }, { "docid": "5bafce91ab4f9396352580a2eb19a192", "score": "0.5901166", "text": "public function comp_check($comp){\n\t\t// $comp_name = $comp['company'];\n\t\t// $comp_id = $comp['cm_id'];\n\t\t$query = $this->db->query(\"SELECT id AS cm_id\n\t\t\t\t\tFROM company\n\t\t\t\t\tWHERE name = '$comp[name]' AND id != '$comp[id]'\");\n\t\tif($query->num_rows()>0){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "7350e0261996453d84858c9187b3b5ef", "score": "0.5897012", "text": "public function yaexisteNomen($bscr) {\n $dbh4 = mdlconection::connect();\n $queryYaexiste2 = \"SELECT*FROM nomenclature WHERE id_nomenclature='\" . $bscr . \"';\";\n $resultado = $dbh4->query($queryYaexiste2);\n return mysqli_affected_rows($dbh4);\n $dbh4->close();\n }", "title": "" }, { "docid": "a6a5902e5d4a71c69072826bd25caebf", "score": "0.58888835", "text": "function isExist($nameTypeProduct) {\n $info = array('Database' => $this->db, 'UID' => $this->user, 'PWD' => $this->password);\n $conn = sqlsrv_connect($this->server, $info);\n $query = \"select count(nombre_tipo_producto) as total from tb_tipo_producto where nombre_tipo_producto='\" . $nameTypeProduct.\"';\";\n $resultID = sqlsrv_query($conn, $query);\n //Se consulta por el ultimo id registrado para generar el consecutivo\n $exist = 'NoExiste';\n while($total = sqlsrv_fetch_array($resultID)){\n \n if ($total['total'] >= 1) {\n $exist = 'Existe';\n } \n }\n return $exist;\n }", "title": "" }, { "docid": "d0854c3d0c89b36e5b4971cb5bf2ed50", "score": "0.5885794", "text": "function comp_exist($compname){\n global $link;\n $query = \"SELECT * FROM company WHERE compname = '$compname'\";\n $query_run = mysqli_query($link, $query);\n \n if(mysqli_num_rows($query_run) == 1){\n //the company exist\n return true;\n }else{\n //go ahead and registered the company\n return false;\n }\n \n}", "title": "" }, { "docid": "0aac76405eb01bd2e058c5f75ddf2ded", "score": "0.58738905", "text": "function check_verify_bundle() {\n\t$success = true;\n\t$repo = $_GET['p'];\n\t$what = $_FILES['bundle_file']['tmp_name'];\n\t$out1 = array();\n\tif ($success) {\n\t\t$success = $success && check_new_head_in_bundle($what, $out1);\n\t}\n\tif ($success) {\n\t\t$success = $success && save_bundle();\n\t}\n\thtml_spacer();\n\tif ($success){\n\t\thtml_title(\"REGISTERED\");\n\t} else {\n\t\thtml_title(\"!!! ERROR !!!\");\n\t}\n\thtml_spacer();\n\techo \"<table>\\n\";\n\tforeach ($out1 as $out) {\n\t\techo \"<tr><td>{$out}</td></tr>\\n\";\n\t}\n\techo \"</table>\\n\";\n\treturn $status;\n}", "title": "" }, { "docid": "a4cc1866bd4ec3c11e77a4e4c8313283", "score": "0.58564657", "text": "public function getExiste(){\n\t\treturn $this->existe;\n\t}", "title": "" }, { "docid": "84bbfebb6eed68e1e83a595407023d02", "score": "0.5847415", "text": "function dispExiste($dirname)\n{\n $dirname = strtolower($dirname);\n\n if (\n file_exists($dirname . \"/nome.txt\") &&\n file_exists($dirname . \"/valor.txt\") &&\n file_exists($dirname . \"/hora.txt\") &&\n file_exists($dirname . \"/estado.txt\") &&\n file_exists($dirname . \"/log.txt\")\n ) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "2fb9d6780e0bf73b262098fc266a18c9", "score": "0.5838664", "text": "public function verifProduit()\n {\n return false;\n }", "title": "" }, { "docid": "e8eb3a64d7e1467ece75096aeb2fc433", "score": "0.5830849", "text": "function comprobarExistenciaNota(){\n\n\t$sql = \"SELECT * FROM ENTREGA E, USUARIO U, TRABAJO T, NOTA_TRABAJO N \n\t\t\tWHERE (U.login = '$this->login' AND\n\t\t\t\t\tT.IdTrabajo = '$this->IdTrabajo' AND\n\t\t\t\t\tE.login = '$this->login' AND E.IdTrabajo = '$this->IdTrabajo' AND\n\t\t\t\t\tN.login = '$this->login' AND N.IdTrabajo = '$this->IdTrabajo'\n\t\t\t\t\t\t\t)\";\n\n\t\tif (!($result = $this->mysqli->query($sql))){\n\t\t//return 'ERROR'; \n\t\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos \n\n\t\treturn $num_rows;\n\t}\n}", "title": "" }, { "docid": "b9a1955656efac65cd6b8c9581ab9922", "score": "0.58291775", "text": "abstract public function exist($name);", "title": "" }, { "docid": "4da2d8e5a552aa0f4ed5778a46513779", "score": "0.58169115", "text": "function comprobarExistenciaUsuario(){\n\n\t$sql = \"SELECT * FROM USUARIO WHERE ( login = '$this->login')\";\n\t\n//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows == 1){ //si hay 1 tupla es que existe algun usuario\n\t\t\treturn true; //existe el usuario\n\t\t}else{\n\t\t\treturn false; //no existe el usuario\n\t\t}\n\t}\n}", "title": "" }, { "docid": "2512184c9e5e11211906d5c39cd04bcf", "score": "0.58111453", "text": "function Existe($conn, $nombreHorario)\n {\n\t// Consulto cuantos nombres de horarios hay en la tabla\n\t$sqlSelectId = \"SELECT count(*) as existe FROM horarios WHERE NombreHorario = '\".$nombreHorario.\"'\"; \n\t$result = mysqli_fetch_assoc($conn->query($sqlSelectId));\n\t$existe = $result['existe'];\n\tif ($existe == 1)\n\t\treturn TRUE; \n\telse\n\t\treturn FALSE;\n }", "title": "" }, { "docid": "a568d3a0590b780e0dca465f1441e40e", "score": "0.5804681", "text": "function posee_informacion_completa()\r\n\t{\r\n\t\t$datos_molde = $this->dr_molde->tabla('molde')->get();\t\r\n\t\tif (isset($datos_molde['carpeta_archivos']) && isset($datos_molde['prefijo_clases'])) {\r\n\t\t\treturn true;\t\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "69723ad67cd7d0d84a7c754e113be9bf", "score": "0.5801087", "text": "function existe($usu){\r\n\t}", "title": "" }, { "docid": "d660df2c4b27a94feeb55b675dfed08d", "score": "0.5779461", "text": "public function CheckDuplicate(){\r\n $pass = true;\r\n foreach($this->projects as $project=>$data){\r\n if($data['path']==$this->path){\r\n $pass = false;\r\n }\r\n }\r\n return $pass;\r\n }", "title": "" }, { "docid": "2569b930951ceb752f30afae30f60052", "score": "0.5767169", "text": "function fileexist()\n\t{\n\t\tif(file_exists($this->filename)){\n\t\t\t$this->result = 1;\n\t\t} else {\n\t\t\t$this->result = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "9ef5485e1432eb93965dc6689f20f489", "score": "0.5766406", "text": "public function ifDomaine_programmeexiste($nom_domaine_programme){\n\t\t\t\t\t$sql = \"SELECT * FROM domaine_programme WHERE nom_domaine_programme='\".$nom_domaine_programme.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t {\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t } \n\t\t\t\t\treturn false;\n\t\t\t\t\t }", "title": "" }, { "docid": "0541fec31c9a9beb669f969d805c429a", "score": "0.5765124", "text": "function urciExistenciTabulekVDB(){\r\n\t\t$tabulkyOK = false;\r\n\t\t\r\n\t\t$pripojeni = new mysqli(servername, username, password, databasename);\r\n\t\t\r\n\t\t$dotaz = \"SELECT * FROM tabUzivatele LIMIT 1;\";\t\r\n\t\t\r\n\t\t//$dotaz = \"SHOW TABLES LIKE 'tabUzivatele'\"; \r\n\r\n\t\t$tabUzivateleOK = mysqli_query($pripojeni,$dotaz);\r\n\t\t\r\n\t\tif($tabUzivateleOK == false){\r\n\t\t\techo \"ERROR: V DB neni tabulka tabUzivatele.\";\r\n\t\t\techo \"<br>\";\r\n\t\t}\t\r\n\t\t\r\n\t\t$dotaz = \"SELECT 1 FROM tabObrazky LIMIT 1;\";\r\n\t\t//$dotaz = \"SHOW TABLES LIKE 'tabObrazky'\"; \r\n\t\t\r\n\t\t$tabObrazkyOK = mysqli_query($pripojeni,$dotaz);\r\n\t\t\r\n\t\tif($tabObrazkyOK == false){\r\n\t\t\techo \"ERROR: V DB neni tabulka tabObrazky.\";\r\n\t\t\techo \"<br>\";\r\n\t\t}\r\n\t\t\r\n\t\tif(($tabObrazkyOK != false) and ($tabUzivateleOK != false)){\r\n\t\t\t$tabulkyOK = true;\t\r\n\t\t}\r\n\t\treturn $tabulkyOK;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "db96bca255492368bea121d02dd0e6ef", "score": "0.5761527", "text": "function comprobarExistenciaUsuario(){\n\n\t$sql = \"SELECT * FROM USUARIO WHERE ( login = '$this->LoginEvaluador')\";\n\t\n//Si se produce un error en la consulta\n if (!($result = $this->mysqli->query($sql))){\n \treturn 'ERROR'; \n\t}else{//si no se produce un error\n\t\t$num_rows = mysqli_num_rows($result);//cogemos el numero de tuplas que coinciden con la consulta\n\t\tif($num_rows == 1){ //si hay 1 tupla es que existe algun usuario\n\t\t\treturn true; //existe el usuario\n\t\t}else{\n\t\t\treturn false; //no existe el usuario\n\t\t}\n\t}\n}", "title": "" }, { "docid": "0578a3fda1c70331c2d242bf83ffd6ee", "score": "0.57562345", "text": "function verificationNouveauteC($nom,$prenom){\r\n\t// var_dump($nom);\r\n\t// var_dump($prenom);\r\n\t// connexion à la base de données\r\n\t$base=connect();\r\n\t// requete auprès de la base \r\n\t$requete=$base->prepare('SELECT * FROM `coloriste` \r\n WHERE `nom_coloriste` = :nomauteur ');\r\n\t// On exécute en passant les valeurs pour chaque token\r\n $requete->execute([\r\n\t\t\":nomauteur\" => $nom]);\r\n\t// \":prenomauteur\" => $prenom\r\n\t$resultat=$requete->fetch();\r\n $existence= (empty($resultat)) ? 'ko' : 'ok';\r\n \t// var_dump($existence);\r\n\treturn $existence;\r\n }", "title": "" }, { "docid": "4c5652dd251a704d27fcb8f2a7de630a", "score": "0.5718786", "text": "function comprueba_si_comercial($link, $hash){\n\t\t$id_usuario = devuelve_id_usuario($link, $hash);\n\t\t$comercial = coger_campo_misma_tabla($link, 'comercial', '4887_usuarios', 'id_usuario', $id_usuario);\n\n\t\treturn $comercial == 1;\n\n\t}", "title": "" }, { "docid": "c18dc6726d3ae5beb1de0e2824d2d14a", "score": "0.57129323", "text": "public function ifProgrammeexiste($nom_programme){\n\t\t\t\t\t$sql = \"SELECT * FROM programme WHERE nom_programme='\".$nom_programme.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t {\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t } \n\t\t\t\t\treturn false;\n\t\t\t\t\t }", "title": "" }, { "docid": "71fcfcfb1a38fef47b8bd10d2574e941", "score": "0.571273", "text": "function existeArch($nombre){\n if(!file_exists('\"'.$nombre.'\"'))\n throw new exception('El archivo \"'.$nombre.'\" no ha sido encontrado');\n }", "title": "" }, { "docid": "8f95ee10835abb38b79570f1843d2b3c", "score": "0.57125896", "text": "function te_guardat_titol_pagina($id){\n global $wpdb;\n $assignacio = $wpdb->get_row( \"select id, url from gd_pluguin_carpetesAssignades where id_pagina=\".$id);\n if ($assignacio->url == ''){\n return false;\n }else{return true;}\n }", "title": "" }, { "docid": "32a821adcc8e36d5b7de6894066cb884", "score": "0.5711339", "text": "public function ifTacheexiste($id_projet){\n\t\t\t\t\t$sql = \"SELECT * FROM tache WHERE id_projet='\".$id_projet.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t {\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t } \n\t\t\t\t\treturn false;\n\t\t\t\t\t }", "title": "" }, { "docid": "0c094e16d8f8b702dcdf1ee4f6ece3f7", "score": "0.57061046", "text": "public function comprobardocumento($cc)\n {\n if (isset($cc) && !empty($cc)) {\n\n //preparamos consulta\n $this->db->query(\"SELECT * FROM users WHERE Numero_Documento=:cc\");\n //Vinculamos consulta\n $this->db->bind(':cc', $cc);\n $this->db->execute();\n $this->result = $this->db->rowCount();\n if ($this->result == 1) {\n //Existe\n return true;\n } else {\n //No existe\n return false;\n }\n }\n }", "title": "" }, { "docid": "8fb6d57c7ef5e007496639b2e86bbdce", "score": "0.57016534", "text": "function verificationNouveauteE($nom){\r\n\t// var_dump($nom);\r\n\t// connexion à la base de données\r\n\t$base=connect();\r\n\t// requete auprès de la base \r\n\t$requete=$base->prepare('SELECT * FROM `editeur` \r\n WHERE `nom` = :nom');\r\n\t// On exécute en passant les valeurs pour chaque token\r\n $requete->execute([\r\n\t\t\":nom\" => $nom]);\r\n\t$resultat=$requete->fetch();\r\n $existence= (empty($resultat)) ? 'ko' : 'ok';\r\n \t// var_dump($existence);\r\n\treturn $existence;\r\n }", "title": "" }, { "docid": "78a784d6a1d44accd54c2e3e817a101f", "score": "0.569094", "text": "function existeix_assignacio_pagina($id){\n global $wpdb;\n $assignacions = $wpdb->get_row( \"select count(id) numIds from gd_pluguin_carpetesAssignades where id_pagina=\".$id);\n if($assignacions->numIds == 1){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "ba4bb38e663eb3a65f94f5d2faa98813", "score": "0.5682421", "text": "function exist() {\n\t\t\t$exist = $this->db->prepare(\"SELECT 1 FROM VIDEO WHERE titleFile = ? AND idArt = ?\");\n\t\t\t$exist->execute(array($this->titleFile, $this->idArt));\n\t\t\treturn count($exist->fetchAll()) >= 1;\n\t\t}", "title": "" }, { "docid": "7953f6f017430471645c5de524791001", "score": "0.5654387", "text": "function check_exist_car($id_car)\r\n{\r\n\tmysql_select_db(BD, connect_db());\r\n\t$query = mysql_query(\"select * from car where placa_car='$id_car'\")or error_connect(mysql_error());\r\n\tif($q = mysql_fetch_array($query))\r\n\t\treturn 1;\r\n\telse\r\n\t\treturn 0;\r\n}", "title": "" }, { "docid": "fb67342ba89c1600f41e80b3ab485fc0", "score": "0.5640378", "text": "private function clientWorking($id){\n return file_exists('clientworking'.$id.'.lock');\n \n }", "title": "" }, { "docid": "7300428e39927aa790b053b968dc60fb", "score": "0.56375426", "text": "public function existPage() {\n\t\treturn file_exists( $this->getCompletePath() );\n\t}", "title": "" }, { "docid": "6195462cd52e3fa80a411089ad022fc1", "score": "0.5635994", "text": "public function getFileExists()\n {\n return Yii::$app->storage->fileSystemExists($this->name_new_compound);\n }", "title": "" }, { "docid": "b7cbb51a2bc08a3a2c26553de6a6549a", "score": "0.56222975", "text": "public function existTemplate(): bool;", "title": "" }, { "docid": "59940153c0482885a1a338e00121b537", "score": "0.56211233", "text": "function comprobarUsuario($conexionBD, $nombre_usuario){\n $sql = \"SELECT * FROM erabiltzailea WHERE erabiltzaile_iz='$nombre_usuario'\";\n foreach ($conexionBD->query($sql) as $row) {\n echo \"<h3>Nombre de usuario -- $nombre_usuario -- ya existe</h3>\";\n return true;\n }\n echo \"<h3>Nombre de usuario -- $nombre_usuario -- NO existe</h3>\";\n return false;\n }", "title": "" }, { "docid": "a3c9bc8861b35c37272d1521baf132c4", "score": "0.5606793", "text": "function existeSuivre ($cx, $email,$emailtrouve)\r\n{\r\n $sqlesuivre = \"SELECT s.* \r\n FROM Suivre AS s,Membres AS m1 \r\n WHERE m1.CodeM = s.CodeMS AND m1.EmailM = '$email' \r\n AND s.CodeMestS = \r\n (SELECT m2.CodeM\r\n FROM Membres AS m2\r\n WHERE m2.EmailM ='$emailtrouve')\";\r\n \r\n $curseur = mysqli_query($cx, $sqlesuivre);\r\n if ($curseur == FALSE){\r\n die(\"erreur fonction trouver like\");\r\n }else{\r\n if (mysqli_num_rows($curseur) != 0){ //s'il y a de résultat\r\n return TRUE; //l'utilisateur a déjà suivi ce membre\r\n }else{\r\n return FALSE;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "7660b6ae2e37b5ae6637ca456faca5b8", "score": "0.5606482", "text": "function verificaEliminacionLibro($nombre){\n if(($id = consultaExistenciaParametro(\"nombre_libro\", $nombre, false, \"id_libro\", \"libro\"))!= null){\n $query = new Query();\n $query->delete(\"libro\", \"id_libro = $id\");\n }\n }", "title": "" }, { "docid": "085878dab8bb443e1f0d19832e263991", "score": "0.55963933", "text": "function existeCodigoEstablecimiento() {\n\n $_02 = $_REQUEST['txt_cod_establecimiento'];\n $_01 = $_REQUEST['id_empleador'];\n\n $dao = new EstablecimientoDao();\n $rpta = $dao->numeroDeCodigoEstablecimientoPorIdEmpleador($_01, $_02);\n \n if ($rpta >= 1) {\n $r = true;\n } else if ($rpta == 0) {\n $r = false;\n }\n return $r;\n}", "title": "" }, { "docid": "5b202571449066dc3ab9043a63cebc92", "score": "0.5589656", "text": "function existeOperadorUbicacion($idOperador,$idUbicacion,$rol){\t\t\n\t\t\t$Operador_ubicacion = new ModeloOperador_ubicacion();\n\t\t \t$result = $Operador_ubicacion->existeOperadorUbicacion($idOperador, $idUbicacion);\n\t\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "9aafffec7d876076363dc09a4ad503c4", "score": "0.55787283", "text": "function check_etuID() {\n $sql_etuID_exist = \"SELECT * FROM `etudiant` WHERE `id` =\" . $_GET['id'] . \"\";\n $result = $GLOBALS['conn']->query($sql_etuID_exist);\n if (!$result->num_rows) {\n exit(\"L'étudiant \" . $_GET['id'] . \" n'existe pas\");\n } else {\n echo (\"L'étudiant \" . $_GET['id'] . \" existe\");\n }\n }", "title": "" }, { "docid": "876f7b8a7bf21a6bf5ac42b5181ff743", "score": "0.5572684", "text": "private function alreadyExist()\n {\n $wherePrestashopIdExist = '1';\n $wherePaypalIdExist = '1';\n\n if (null !== $this->id_order_prestashop) {\n $wherePrestashopIdExist = 'pom.id_order_prestashop = \"' . (int) $this->id_order_prestashop . '\"';\n }\n\n if (null !== $this->id_order_paypal) {\n $wherePaypalIdExist = 'pom.id_order_paypal = \"' . pSQL($this->id_order_paypal) . '\"';\n }\n\n $query = 'SELECT id_order_matrice\n FROM `' . _DB_PREFIX_ . 'pscheckout_order_matrice` pom\n WHERE ' . $wherePrestashopIdExist . ' OR ' . $wherePaypalIdExist;\n\n return (bool) \\Db::getInstance()->getValue($query);\n }", "title": "" }, { "docid": "89afa51acb2a25e38a1ad93ab25ad478", "score": "0.5572299", "text": "public function ifProduitexiste($IDC){\n\t\t\t\t\t$sql = \"SELECT * FROM produit WHERE IDC='\".$IDC.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t {\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t } \n\t\t\t\t\treturn false;\n\t\t\t\t\t }", "title": "" }, { "docid": "9fb49ad2360a699c4b247591fdc4de40", "score": "0.556892", "text": "function fileExists()\n {\n if($this->loaded)\n {\n \t$fileName = explode('.', $this->remote_filename);\n $fileExt = array_pop($fileName);\n return file_exists($this->doc_dir . '/' .\n $this->remote_filename[0] . '/' .\n $this->remote_filename[1].'/'.$this->id.'.'.$fileExt);\n }\n else\n return false;\n }", "title": "" }, { "docid": "42e9fa40c759d068ed5f3d737bde5727", "score": "0.5557919", "text": "public function exists()\n {\n }", "title": "" }, { "docid": "42e9fa40c759d068ed5f3d737bde5727", "score": "0.55570924", "text": "public function exists()\n {\n }", "title": "" }, { "docid": "b6f578c094f4b5827297143891b60ed7", "score": "0.5556957", "text": "public function doExist() {\n $cols = array(); array_push($cols, \"origin\", \"num_access\");\n $conditions = array(); array_push($conditions, array(\"num_access\", $this->numaccess), array(\"origin\", $this->origin));\n if($this->saveload->checkAsDB(\"article\", $cols, $conditions)) { \n $this->article = $this->saveload->loadAsDB(\"article\", array(\"*\"), $conditions, null)[0];\n return true;\n } else {\n $errorCode = 404;\n $this->printError(\"danger\", 'Couldn\\'t find article with NUMACCESS='.$this->numaccess.' from '.$this->origin.' in the database.', $errorCode);\n http_response_code($errorCode); \n return false;\n }\n }", "title": "" }, { "docid": "c2d1564608aa3ce171df2de97ede7b67", "score": "0.5554173", "text": "public function CompCif() {\n $existecif = $this->Model_emp->CompruebaCif($this->input->post('cif'));\n $this->form_validation->set_message('CompCif', 'El CIF introducido ya existe');\n if ($existecif) {\n return false;\n } else\n {return true;}\n }", "title": "" }, { "docid": "998ddd331eca4d73600c1844d333c222", "score": "0.55471134", "text": "function es_compuesto()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "26abd69eab4cd83f8a0fa1477f05264b", "score": "0.55395544", "text": "public function isExists(): bool;", "title": "" }, { "docid": "e33a43aa054ae5cfae819136014d13ef", "score": "0.55342543", "text": "function check_traslate_exists_indb($id,$id_lingua,$table,$field){\r\n\t$db=&Th::getDb();\r\n\t$varReturn=false;\r\n\t$query_rs_1 = \"SELECT \".$field.\" FROM \".$table.\" WHERE \".$field.\" = '\".$id.\"' AND ID_LINGUA = \".$id_lingua.\" LIMIT 1\";\r\n\tif(!$db->query($query_rs_1)){\r\n\t\ttraceLog(__CLASS__.'::'.__METHOD__.' Errore query SQLERROR:'.$db->errore,2);\r\n\t\t$varReturn =true;\r\n\t}else{\r\n\t\tif($db->numrows!=0) $varReturn=true;\r\n\t}\r\n\treturn $varReturn;\r\n }", "title": "" }, { "docid": "92c166dca35f639718be817537fcd18e", "score": "0.55328494", "text": "function checkWithExistUniqueID($rec){\n $sql = \"SELECT schoolnew_computerindent.id FROM schoolnew_computerindent WHERE isactive = 1 AND schoolnew_computerindent.unique_supply = '\".$rec.\"'\";\n $query = $this->db->query($sql);\n if($query->num_rows() == 0){\n return 0;\n }\n else{\n return 1;\n }\n }", "title": "" }, { "docid": "37362eb3600799aa894f39edea388733", "score": "0.55280304", "text": "public function existencia($nome, $id = null) {\n $sql = \"SELECT * FROM $this->table WHERE nome = :nome\";\n $stmt = Conexao::prepare($sql);\n $stmt->bindValue(':nome', $nome);\n $stmt->execute();\n // caso exista\n if ($stmt->rowCount() > 0) {\n $data = $stmt->fetch();\n // verifica se id do registro localizado é diferente do que está sendo editado\n if ($data->id != $id) {\n return true;\n }\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "c56a230ee2ddce217232e0320e2ee268", "score": "0.55261475", "text": "function does_file_exist($table, $file) {\n\n $sql = \"SELECT name FROM $table WHERE name='$file'\";\n\n if ($result = mysqli_query($GLOBALS['mysqli'], $sql))\n {\n if(mysqli_num_rows($result) > 0)\n {\n echo $file . \" already exists. Please rename/remove the file and try again.\";\n return true;\n }\n else\n {\n return false;\n }\n }\n else\n {\n echo \"ERROR: \" . mysqli_error($GLOBALS['mysqli']);\n return true;\n }\n }", "title": "" }, { "docid": "db3a04aad6cde812f6d34ee477a30c44", "score": "0.552611", "text": "function devolucion($id_compra){\n \n echo \"Se ha devuelto el dinero de la compra {$id_compra} al usuario\";\n \n }", "title": "" }, { "docid": "f26bdcd4750aecd66646484d42ea85e9", "score": "0.55231524", "text": "function ExistsInDatabase() {\r\n\t\t\tif (self::FLAG_NO_ICON == $this->GetFaviconUri())\r\n\t\t\t{\r\n\t\t\t\treturn self::FLAG_NO_ICON;\r\n\t\t\t}\r\n\t\t\telse\r\n\r\n\t\t\t{\r\n\t\t\t\treturn $this->_db_found;\r\n\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "79eea0e5005cd1ba03e66e7b280444af", "score": "0.5522065", "text": "function verificarExistenciaPlanPrevencion($variable){\n\t\t\t//verifica si ya existe un pais con dicho nombre\n\t\t\ttry {\n\t\t\t\t$nombrePrevencion=trim($variable,\" \\t\\n\\r\\0\\x0B\");\n\t\t\t\t$result = $this->db->ExecutePersonalizado(\"SELECT nombre FROM PREVENCION WHERE nombre='$nombrePrevencion'\");\n\t\t\t\twhile ($row = mysqli_fetch_array($result, MYSQL_NUM)){\n\t\t\t\t\tif(strcasecmp(str_replace(\"'\",\"''\",$row[0]),$nombrePrevencion)==0){\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (Exception $e) {\n\t\t\t\techo 'Error: ' .$e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "38539980b8e18e2adda55c841995b686", "score": "0.5518316", "text": "function checkExist($conn,$name,$x,$y){\n\t\n\n\t //sql command\n $sql = 'SELECT '.$x.' FROM '.$y;\n \n \n //Prepare sql using conn and returns the statement identifier\n $stid = oci_parse($conn, $sql);\n \n //Execute a statement returned from oci_parse()\n $res=oci_execute($stid); \n \n //if error, retrieve the error using the oci_error() function & output an error\n if (!$res) {\n\t\t$err = oci_error($stid);\n\t\techo htmlentities($err['message']);\n }\n \n \t\n //Display extracted rows\n\t while ($row = oci_fetch_array($stid, OCI_ASSOC)) {\n\t \t\n\t\tforeach ($row as $item) {\n\t\t\tif ($item == $name){\n\t\t\t\t\treturn true;\t\t\t\n\t\t\t}\n\t\t}\n\t }\n\t \n\t\n \t\n \n\n}", "title": "" }, { "docid": "318845b63fb4ef9d9122384dae143a1d", "score": "0.551419", "text": "public function exists() {}", "title": "" }, { "docid": "318845b63fb4ef9d9122384dae143a1d", "score": "0.5513699", "text": "public function exists() {}", "title": "" }, { "docid": "e86ec652bca81a0a11c6bf0786e1c3a0", "score": "0.55061805", "text": "function demande_existe(){\n\t\tglobal $db;\n\t\t$query=$db->query(\"SELECT id_invitation FROM amis WHERE (pseudo_exp='{$_SESSION['pseudo']}' AND pseudo_dest='{$_GET['pseudo']}')\n\t\t\tOR\n\t\t\t(pseudo_exp='{$_GET['pseudo']}' AND pseudo_dest='{$_SESSION['pseudo']}')\");\n\t\t$count=$query->rowCount();\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "06531a4d35e92d41d3dbc7610cde843e", "score": "0.54989195", "text": "function chech_user_exist($campo,$valore,$tabella){\r\n\t$sql =Th::getDb();\r\n\t\r\n\t\t$query = \"SELECT \".$campo.\" FROM \".$tabella.\" WHERE \".$campo.\" = '\" . $valore . \"' \";\r\n\t\t$sql->query($query);\r\n\t\t if ($sql->numrows!=0) {\r\n\t\t\t$varReturn=true;\r\n\t\t}else{\r\n\t\t\t$varReturn=false;\r\n\t\t}\r\n\treturn $varReturn;\r\n\r\n }", "title": "" }, { "docid": "7a9b114d2559a25451fbbe3b1ac9afe2", "score": "0.5494232", "text": "public function ExisteCliente ($nombre){\n $consulta = $this->db->query('SELECT * FROM `cliente` WHERE `nomcliente` = \"'.$nombre.'\" ');\n if($filas = $consulta->fetch_assoc()){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "d7317bb9a88c3cadf086569301da46c4", "score": "0.54931015", "text": "public function chekExistProduct($productName){\n $db = JFactory::getDbo(); \n $tbl_cat_productslp = $db->getPrefix().'cat_productslp';\n \n $query = \" \n SELECT productId FROM $tbl_cat_productslp \n WHERE productName = '$productName' \n \";\n $db->setQuery($query);\n $db->query(); \n $rows = $db->loadResult();\n \n //en caso de que el nombre de producto ya exista en tabla\n if($rows!=null){\n $idProduct = $rows;\n }else{ //en caso de no existir crearlo \n $queryIns = \"\n INSERT INTO $tbl_cat_productslp (productName, active, dateCreation) \n VALUES ('$productName', '1', CURDATE())\n \"; \n \n $db->setQuery($queryIns); \n $db->query();\n $idProduct = $db->insertid(); \n }\n \n return $idProduct;\n }", "title": "" }, { "docid": "b652721155543318094ff0893852dc07", "score": "0.5483691", "text": "function check_order_exist($id_o){\r\n\t$sql =Th::getDb();\r\n\t\r\n\t$vr=0;// ordine non trovato \r\n\t$query = \"SELECT ID_ORDINE,CONFERMATO,ANNULLATO FROM ordini_id WHERE ID_ORDINE = '\".$id_o.\"'\";\r\n\t$sql->query($query);\r\n\t\t if ($sql->numrows!=0) {\r\n\t\t \t$sql->inrecord(0);\r\n\t\t\t$vr=1;//ordine presente\r\n\t\t\tif($sql->record[\"CONFERMATO\"]==1){\r\n\t\t\t\t$vr=2;/// ordine gi� confermato\r\n\t\t\t}\r\n\t\t\tif($sql->record[\"ANNULLATO\"]==1){\r\n\t\t\t\t$vr=0;/// ordine gi� confermato\r\n\t\t\t}\r\n\t\t}\r\n\treturn $vr;\r\n }", "title": "" }, { "docid": "ea5785c12ce420601769a88e6e491826", "score": "0.54812396", "text": "private function __checkExistence($id){\n\t\tif (! is_null($id) && $id != '') {\n \t\t$product = Product::withTrashed()->find($id);\n \t\tif (is_null($product)) {\n \t\t\treturn false;\n \t\t}\n\t\t\treturn $product;\n \t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e609167fb9be67075da1eb6e52087fe9", "score": "0.54677856", "text": "function bookExists($code) {\n\t\tif (file_exist($this->path_save.$code)) {\n\t\t\treturn(true);\n\t\t} else {\n\t\t\treturn(false);\n\t\t}\n\t}", "title": "" }, { "docid": "c7d528347150f380df2c786bdbc981c2", "score": "0.546585", "text": "static function existNPUser($nom,$prenom){\n\t \tglobal $cnx;\n\t \t$a=array(':nom'=>$nom,':prenom'=>$prenom);\n\t\t\t$sql='SELECT * from utilisateurs where nomUtilisateurs=:nom and prenomUtilisateurs=:prenom';\n\t\t\t$req=$cnx->prepare($sql);\n\t\t\t$req->execute($a);\n\t\t\t$count=count($req);\n\t\t\tif($count==1){\t\n\t \t\treturn true;\n\t \t}\n\t \telse{\n\t \t\treturn false;\n\t \t}\n\t }", "title": "" }, { "docid": "f9f9e9e327773bcb18b709329633c07e", "score": "0.54654384", "text": "function referentiel_certificat_user_exists($userid, $referentiel_id){\r\nglobal $DB;\r\n\tif (isset($userid) && ($userid>0) && isset($referentiel_id) && ($referentiel_id>0)){\r\n\t\t$r=$DB->get_record_sql(\"SELECT * FROM {referentiel_certificat} WHERE ref_referentiel=$referentiel_id AND userid=$userid \");\r\n\t\tif ($r){\r\n\t\t\t// echo \"<br />\\n\";\r\n\t\t\t// print_r($r);\r\n\t\t\t// MODIF JF 2009/11/28\r\n\t\t\t// controler la completude du certificat post version 4.1.1\r\n\t\t\tif (($r->competences_certificat!='') || ($r->competences_activite=='')){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn ($r->id);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn 0;\r\n}", "title": "" }, { "docid": "9f2e2d6a640424326cfb986b8d3d6464", "score": "0.54605407", "text": "function chdbcomp_complaint_exists($company_id,\n\t\t\t\t $property_id, $lot_id,\n\t\t\t\t $complaint_id, $active = TRUE) {\n $entry = chdbcomp_get_complaint($company_id,\n\t\t\t\t $property_id, $lot_id,\n\t\t\t\t $complaint_id, $active);\n if (sizeof($entry) > 0) {\n return 1;\n }\n return 0;\n}", "title": "" }, { "docid": "8ac480688220abe122d9369e1ae679f8", "score": "0.54561514", "text": "function verificationNouveauteD($nom,$prenom){\r\n\t// var_dump($nom);\r\n\t// var_dump($prenom);\r\n\t// connexion à la base de données\r\n\t$base=connect();\r\n\t// requete auprès de la base \r\n\t$requete=$base->prepare('SELECT * FROM `dessinateur` \r\n WHERE `nom_dessinateur` = :nomauteur ');\r\n\t// On exécute en passant les valeurs pour chaque token\r\n $requete->execute([\r\n\t\t\":nomauteur\" => $nom]);\r\n\t// \":prenomauteur\" => $prenom\r\n\t$resultat=$requete->fetch();\r\n $existence= (empty($resultat)) ? 'ko' : 'ok';\r\n \t// var_dump($existence);\r\n\treturn $existence;\r\n }", "title": "" }, { "docid": "27a06fa40eb05356913b1d3e647f151d", "score": "0.54559433", "text": "function alreadyExists($data, $table, $attrib) // FUNCIÓN PARA COMPROBAR SI EXISTE UN DATO EN UNA TABLA (devuelve bool)\n{\n $con = conectar($GLOBALS['db']);\n\n $query = \"SELECT $attrib FROM $table WHERE $attrib = '\".mysqli_real_escape_string($con, $data).\"'\";\n if($res = mysqli_query($con, $query))\n {\n desconectar($con);\n return mysqli_num_rows($res) > 0;\n }\n else\n {\n errorConsulta($con);\n desconectar($con);\n }\n}", "title": "" }, { "docid": "f5d0ea555dc0dedecf893841b0193b13", "score": "0.5455713", "text": "private function verifica() {\n\t\t\t\n\t\t\ttry {\n\t\t\t\n\t\t\t\t// Passivo\n\t\t\t\t$sql = \"select i.c_invoice_id\"\n\t\t\t\t\t . \"\t\tfrom c_invoice i \"\n\t\t\t\t\t . \"\t\t join C_DOCTYPE d on i.C_DOCTYPE_ID = d.C_DOCTYPE_ID \"\n\t\t\t\t\t . \"\t where i.DOCSTATUS = 'CO' \"\n\t\t\t\t\t . \"\t\t and i.ad_client_id = \" . Config::ad_client_id\n\t\t\t\t\t . \"\t\t and i.ad_org_id = \" . Config::ad_org_id\n\t\t\t\t\t . \"\t\t and to_char(i.vatledgerdate, 'yyyy') = \".Config::year_storage\n\t\t\t\t\t . \"\t\t and i.C_DOCTYPE_ID NOT IN (1000050)\"\n\t\t\t\t\t . \"\t\t and d.docbasetype in ('APC', 'API')\"\n\t\t\t\t\t . \"\t\t and i.vatledgerno is not null\"\n\t\t\t\t\t . \" order by 1\";\n\t\t\t\n\t\t\t\tforeach(DB::query($sql) as $row) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$i = DB::getInvoice($row[\"C_INVOICE_ID\"]);\n\t\t\t\t\t$b = DB::getBPartner($i[\"C_BPARTNER_ID\"]);\n\t\t\t\t\t\n\t\t\t\t\t$fileSource = $this->getNomeFileSource($i, $b);\n\t\t\t\t\t\n\t\t\t\t\t$description = \"archiviati\\n\" . $fileSource;\n\t\t\t\t\t\n\t\t\t\t\tif ($i[\"DESCRIPTION\"] != $description) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tUtil::addError(\"La descrizione differisce dal nome del file generato [{$i[\"DOCUMENTNO\"]}]\\n\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$source = Util::getArchivio($i[\"C_DOCTYPE_ID\"], substr($i[\"VATLEDGERDATE\"], 0, 4));\n\t\t\t\t\t\n\t\t\t\t\tif (!file_exists(\"$source/$fileSource\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tUtil::addError(\"[{$i[\"DOCUMENTNO\"]}] File non esistente: $source/$fileSource\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Attivo\n\t\t\t\t$sql = \"select i.c_invoice_id\"\n\t\t\t\t\t\t. \"\t\tfrom c_invoice i \"\n\t\t\t\t\t\t. \"\t\t join C_DOCTYPE d on i.C_DOCTYPE_ID = d.C_DOCTYPE_ID \"\n\t\t\t\t\t\t. \"\t where i.DOCSTATUS = 'CO' \"\n\t\t\t\t\t\t. \"\t\t and i.ad_client_id = \" . Config::ad_client_id\n\t\t\t\t\t\t. \"\t\t and i.ad_org_id = \" . Config::ad_org_id\n\t\t\t\t\t\t. \"\t\t and to_char(i.vatledgerdate, 'yyyy') = \".Config::year_storage\n\t\t\t\t\t\t. \"\t\t and i.C_DOCTYPE_ID NOT IN (1000053, 1000052)\"\n\t\t\t\t\t\t. \"\t\t and d.docbasetype in ('ARC', 'ARI')\"\n\t\t\t\t\t\t. \"\t\t and i.vatledgerno is not null\"\n\t\t\t\t\t\t. \" order by 1\";\n\t\t\t\t\n\t\t\t\tforeach(DB::query($sql) as $row) {\n\t\t\t\t\t\n\t\t\t\t\t$i = DB::getInvoice($row[\"C_INVOICE_ID\"]);\n\t\t\t\t\t\n\t\t\t\t\t$source = Util::getArchivio($i[\"C_DOCTYPE_ID\"], substr($i[\"VATLEDGERDATE\"], 0, 4));\n\t\t\t\t\t$fileSource = $i[\"DOCUMENTNO\"] . \".pdf\";\n\t\t\t\t\t\n\t\t\t\t\tif (!file_exists(\"$source/$fileSource\")) {\n\t\t\t\t\t\n\t\t\t\t\t\tUtil::addError(\"[{$i[\"DOCUMENTNO\"]}] File non esistente: $source/$fileSource\");\n\t\t\t\t\t\n\t\t\t\t\t}\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// Verifica buchi note credito\n\t\t\t\t$sql = \"select min(documentno) min_documentno, max(documentno) max_documentno\"\n\t\t\t\t\t\t. \"\t\tfrom c_invoice i \"\n\t\t\t\t\t\t. \"\t\t join C_DOCTYPE d on i.C_DOCTYPE_ID = d.C_DOCTYPE_ID \"\n\t\t\t\t\t\t. \"\t where i.DOCSTATUS = 'CO' \"\n\t\t\t\t\t\t. \"\t\t and i.ad_client_id = \" . Config::ad_client_id\n\t\t\t\t\t\t. \"\t\t and i.ad_org_id = \" . Config::ad_org_id\n\t\t\t\t\t\t. \"\t\t and to_char(i.vatledgerdate, 'yyyy') = \".Config::year_storage\n\t\t\t\t\t\t. \"\t\t and i.C_DOCTYPE_ID IN (1000004)\"\n\t\t\t\t\t\t. \"\t\t and d.docbasetype in ('ARC', 'ARI')\"\n\t\t\t\t\t\t. \"\t\t and i.vatledgerno is not null\";\n\t\t\t\t\n\t\t\t\t$row = DB::query($sql)->fetch();\n\t\t\t\t\n\t\t\t\t$prefix = \"N\".substr(Config::year_storage, 2, 2).\"-\";\n\t\t\t\t$min = str_replace($prefix, \"\", $row[\"MIN_DOCUMENTNO\"]);\n\t\t\t\t$max = str_replace($prefix, \"\", $row[\"MAX_DOCUMENTNO\"]);\n\t\t\t\t\n\t\t\t\t$source = Util::getArchivio(1000004, Config::year_storage);\n\t\t\t\t\n\t\t\t\tfor ($i=$min;$i<=$max;$i++) {\n\t\t\t\t\t\n\t\t\t\t\t$fileSource = $prefix.str_pad($i, 5, \"0\", STR_PAD_LEFT).\".pdf\";\n\t\t\t\t\t\n\t\t\t\t\tif (!file_exists(\"$source/$fileSource\"))\t\t\t\t\t\t\t\n\t\t\t\t\t\tUtil::addError(\"[BUCHI] File non esistente: $source/$fileSource\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Verifica buchi fatture\n\t\t\t\t$sql = \"select min(documentno) min_documentno, max(documentno) max_documentno\"\n\t\t\t\t\t\t. \"\t\tfrom c_invoice i \"\n\t\t\t\t\t\t. \"\t\t join C_DOCTYPE d on i.C_DOCTYPE_ID = d.C_DOCTYPE_ID \"\n\t\t\t\t\t\t. \"\t where i.DOCSTATUS = 'CO' \"\n\t\t\t\t\t\t. \"\t\t and i.ad_client_id = \" . Config::ad_client_id\n\t\t\t\t\t\t. \"\t\t and i.ad_org_id = \" . Config::ad_org_id\n\t\t\t\t\t\t. \"\t\t and to_char(i.vatledgerdate, 'yyyy') = \".Config::year_storage\n\t\t\t\t\t\t. \"\t\t and i.C_DOCTYPE_ID IN (1000002)\"\n\t\t\t\t\t\t. \"\t\t and d.docbasetype in ('ARC', 'ARI')\"\n\t\t\t\t\t\t. \"\t\t and i.vatledgerno is not null\";\n\n\t\t\t\t$row = DB::query($sql)->fetch();\n\n\t\t\t\t$prefix = substr(Config::year_storage, 2, 2).\"-\";\n\t\t\t\t$min = str_replace($prefix, \"\", $row[\"MIN_DOCUMENTNO\"]);\n\t\t\t\t$max = str_replace($prefix, \"\", $row[\"MAX_DOCUMENTNO\"]);\n\n\t\t\t\t$source = Util::getArchivio(1000002, Config::year_storage);\n\n\t\t\t\tfor ($i=$min;$i<=$max;$i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t$fileSource = $prefix.str_pad($i, 5, \"0\", STR_PAD_LEFT).\".pdf\";\n\t\t\t\t\t\t\n\t\t\t\t\tif (!file_exists(\"$source/$fileSource\"))\t\t\t\t\t\t\t\n\t\t\t\t\t\tUtil::addError(\"[BUCHI] File non esistente: $source/$fileSource\");\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Verifica buchi fatture ecommerce\n\t\t\t\t$sql = \"select min(documentno) min_documentno, max(documentno) max_documentno\"\n\t\t\t\t\t\t. \"\t\tfrom c_invoice i \"\n\t\t\t\t\t\t. \"\t\t join C_DOCTYPE d on i.C_DOCTYPE_ID = d.C_DOCTYPE_ID \"\n\t\t\t\t\t\t. \"\t where i.DOCSTATUS = 'CO' \"\n\t\t\t\t\t\t. \"\t\t and i.ad_client_id = \" . Config::ad_client_id\n\t\t\t\t\t\t. \"\t\t and i.ad_org_id = \" . Config::ad_org_id\n\t\t\t\t\t\t. \"\t\t and to_char(i.vatledgerdate, 'yyyy') = \".Config::year_storage\n\t\t\t\t\t\t. \"\t\t and i.C_DOCTYPE_ID IN (1000042)\"\n\t\t\t\t\t\t. \"\t\t and d.docbasetype in ('ARC', 'ARI')\"\n\t\t\t\t\t\t. \"\t\t and i.vatledgerno is not null\";\n\n\t\t\t\t\t$row = DB::query($sql)->fetch();\n\n\t\t\t\t\t$prefix = 'EC'.Config::year_storage.\"-\";\n\t\t\t\t\t$min = str_replace($prefix, \"\", $row[\"MIN_DOCUMENTNO\"]);\n\t\t\t\t\t$max = str_replace($prefix, \"\", $row[\"MAX_DOCUMENTNO\"]);\n\n\t\t\t\t\t$source = Util::getArchivio(1000042, Config::year_storage);\n\n\t\t\t\t\tfor ($i=$min;$i<=$max;$i++) {\n\n\t\t\t\t\t\t$fileSource = $prefix.str_pad($i, 5, \"0\", STR_PAD_LEFT).\".pdf\";\n\n\t\t\t\t\t\tif (!file_exists(\"$source/$fileSource\"))\n\t\t\t\t\t\t\tUtil::addError(\"[BUCHI] File non esistente: $source/$fileSource\");\n\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t\tUtil::addError(e);\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "45ac4f07549f11f1722221c36934c31b", "score": "0.5451678", "text": "function is_duplicate_project($p_name)\n{\n global $g_mantis_project_table;\n\n $query = \"SELECT COUNT(*)\n\t\t\t\tFROM $g_mantis_project_table\n\t\t\t\tWHERE name='$p_name'\";\n $result = db_query($query);\n if (0 == db_result($result, 0, 0)) {\n return false;\n } else {\n return true;\n }\n}", "title": "" }, { "docid": "45a45680c4b3827f7131975827651cff", "score": "0.5451296", "text": "protected function cacheExist()\n\t{\n\t\tif($this->fullyCached==false)\n\t\t\treturn false;\n\t\t\t\n\t\t$this->poCacheObj = new CacheFace();\n\t\tif($this->fullyCachedTime!=false){\n\t\t\t$this->poCacheObj->setCacheTime($this->fullyCachedTime);\n\t\t}\n\t\tif(!($data = $this->poCacheObj->get(!is_null($this->cacheKey)?$this->cacheKey:'PO_fullcache_'.$this->poId)))\n\t\t\treturn false;\n\n\t\t$this->HTML = $data;\n\t\treturn true;\t\n\t}", "title": "" }, { "docid": "89e1d707dfee0def21e110fc64bf953d", "score": "0.5446798", "text": "function verificarExistenciaPais($variable){\n\t\t\ttry {\n\t\t\t\t$nombrePais=trim($variable,\" \\t\\n\\r\\0\\x0B\");\n\t\t\t\t$result = $this->db->ExecutePersonalizado(\"SELECT nombre FROM PAIS WHERE nombre='$nombrePais'\");\n\t\t\t\twhile ($row = mysqli_fetch_array($result, MYSQL_NUM)){\n\t\t\t\t\tif(strcasecmp($row[0],$nombrePais)==0){\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (Exception $e) {\n\t\t\t\techo 'Error: ' .$e->getMessage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d860957cfa09756762c5d36a1f83e494", "score": "0.5445103", "text": "static function checkExtension($nome){\n $estensione = substr($nome, Utils::backwardStrpos($nome, \".\",0)+1, strlen($nome));\n $estensione = strtolower($estensione);\n //recupero da properties le estensioni autorizzate all'upload e\n //le metto in un array per scorrerle tutte\n $ext = explode(\",\", initConfig::getInstance()-> getSettings()['file_allowed_ext']);\n\n for($i = 0; $i < count($ext) ; $i++)\n {\n //se trovo l'estensione da controllare tra le estensioni autorizzare all'upload ritorno true\n //echo \"estensione : \".$ext[$i].\" \".$estensione.\"<br>\";\n if($ext[$i] == $estensione)\n {\n return true;\n }\n }\n //se non la trovo ritorno false\n return false;\n\n }", "title": "" } ]
beaaaceac0fd38f51a99ee09efbfc46c
more fragment stuff Make sure to store any changes you made to fragment variables first!!!
[ { "docid": "d52da31083480850e4f03ac195e9a1c1", "score": "0.6421929", "text": "public function loadAdditionalFragments()\n\t{\n\t\tif(!empty($this->mAdditionalFragments))\n\t\t\treturn $this->mAdditionalFragments;\n\t\t\n\t\t//TODO: put it in or take it out???\t\n\t\t$this->store();\n\t\t\t\n\t\t$tbl = $this->getTableName();\n\t\t$query = \"SELECT * FROM `{$tbl}_fragment` WHERE {$tbl}_id = '{$this->id}'\";\n\t\t$this->mAdditionalFragments = SqlQuery::getInstance()->assocQuery($query,array('language_id'),$this->fragment_vars);\n\t\treturn $this->mAdditionalFragments;\n\t}", "title": "" } ]
[ { "docid": "7d13ac305c4b3904ffbc3d68c4f2502d", "score": "0.72013766", "text": "protected function addFragment()\n\t{\n\t\tnotice('add fragment '.$this->language_id);\n\t\t$res2 = SqlQuery::getInstance()->insertQuery($this->getTableName().FRAGMENT_SUF,array_merge($this->getFragmentValues(),array($this->getTableName().'_id'=>$this->id,'language_id'=>$this->language_id)));\n\t}", "title": "" }, { "docid": "6e19c136f0a9574c0cab1496f64a7395", "score": "0.6647434", "text": "public function getFragment() {\n\t}", "title": "" }, { "docid": "f622223a6c0179f0d297c94eff4007aa", "score": "0.60454017", "text": "function getFragment()\n {\n return $this->fragment;\n }", "title": "" }, { "docid": "8ba71f2af7ad4fcc065af6c49862eedc", "score": "0.6042658", "text": "public function getFragment(): string;", "title": "" }, { "docid": "ab53f00c3f5c2daa2e79870b7158fb6b", "score": "0.60256135", "text": "function outputFragment($fragment, $variables = array()) {\n if (is_file(\"themes/{$this->theme}/fragments/{$fragment}.php\")) {\n $fragmentfile = \"themes/{$this->theme}/fragments/{$fragment}.php\";\n } elseif (is_file(\"themes/default/fragments/{$fragment}.php\")) {\n $fragmentfile = \"themes/default/fragments/{$fragment}.php\";\n } else {\n return FALSE;\n }\n extract($variables, EXTR_SKIP | EXTR_REFS);\n extract($this->router->variables, EXTR_SKIP | EXTR_REFS);\n include $fragmentfile;\n }", "title": "" }, { "docid": "72673db86cc211c30373afd7eaae475e", "score": "0.59708184", "text": "public function getFragment() : string;", "title": "" }, { "docid": "44892ad2cf72eeaed8f1827232e78661", "score": "0.5966235", "text": "public function first(): Fragment;", "title": "" }, { "docid": "0ea260a35a4bc260bdf3f2b4c35d14da", "score": "0.59565836", "text": "public function fragment()\n {\n return $this->fragment;\n\n // getFragment\n // withFragment\n }", "title": "" }, { "docid": "c557bffe72fb91a1b75520baadc2b777", "score": "0.5866152", "text": "public function getFragments(){\n// if (!$this->canI(self::PERMISSION_READ)){\n// throw new SecurityException(\"Missing permission PERMISSION_READ\");\n// }\n return DL::arrayOf('Fragment', \"\n SELECT #COLUMNS\n FROM fragment\n WHERE idpage = '$this->idpage'\n \");\n }", "title": "" }, { "docid": "6b0abc130bcf00f8346ff2e1bd8abb66", "score": "0.5845958", "text": "public function getFragment()\n {\n return $this -> _fragment;\n }", "title": "" }, { "docid": "f852382d0f6be347ffc90a6101d4f363", "score": "0.5835787", "text": "public function setFragmentName(string $name)\n {\n $this->fragment = $name;\n }", "title": "" }, { "docid": "c7e83276bcd7c2222b77e7e800605520", "score": "0.5637585", "text": "public function getFragment()\n {\n return $this->fragment;\n }", "title": "" }, { "docid": "c7e83276bcd7c2222b77e7e800605520", "score": "0.5637585", "text": "public function getFragment()\n {\n return $this->fragment;\n }", "title": "" }, { "docid": "225ec4a05c1279e02acaf13aa803b945", "score": "0.5529128", "text": "public function get($name): Fragment;", "title": "" }, { "docid": "b9faec86fd1943800cbf0a8b92e7aea8", "score": "0.55269474", "text": "public function getFragment()\n {\n return $this->fragment;\n }", "title": "" }, { "docid": "eee311e9dd112ea032b97c42adbb0edf", "score": "0.5476778", "text": "public function getFragment()\n {\n return $this->getPart('fragment');\n }", "title": "" }, { "docid": "eee311e9dd112ea032b97c42adbb0edf", "score": "0.5476778", "text": "public function getFragment()\n {\n return $this->getPart('fragment');\n }", "title": "" }, { "docid": "16c1e09ccf79dd6a3f1912306a097fa5", "score": "0.54084986", "text": "public function addFragment( $value ) {\n\t\t$this->fragment = $value;\n\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "bd3c4ca0e2a7c5d71c8af1e0f3f5a3bf", "score": "0.53028506", "text": "protected function addAdditionalFragment($lang_id,$frag_values)\n\t{\n\t\t$tbl = $this->getTableName();\n\t\t\n\t\tif(isset($this->mAdditionalFragments[$lang_id]))\n\t\t\tthrow new Exception('Additional Fragment exists already');\n\t\t\t\n\t\t$this->mAdditionalFragments[$lang_id] = $frag_values;\n\t\tnotice($this->id.' add additional fragment '.$lang_id);\n\t\t$res2 = SqlQuery::getInstance()->insertQuery($tbl.FRAGMENT_SUF,array_merge($frag_values,array($this->getTableName().'_id'=>$this->id,'language_id'=>$lang_id)));\n\t\n\t}", "title": "" }, { "docid": "d20765b9ca6fb785866f4d9bc8e58d8a", "score": "0.52728426", "text": "public function onTwigSiteVariables()\n {\n $twig = $this->grav['twig'];\n //can be used for links in the form page content area\n $twig->twig_vars['querystring'] = '?p='.$this->grav['uri']->query('p');\n $twig->twig_vars['pageedit'] = $this->grav['pages']->dispatch($this->grav['uri']->query('p')); \n \n // The simplemde editor for edit page. \n // CSS and JS Assets\n $assets = $this->grav['assets'];\n // Add jQuery library\n $assets->add('jquery', 101);\n\n // Add SimpleMDE Markdown Editor\n $assets->addCss('//cdn.jsdelivr.net/simplemde/latest/simplemde.min.css', 1);\n $assets->addJs('//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js', 1);\n\n // Load SimpleMDE inline Javascript code from configuration file\n $assets->addInlineJs(file_get_contents('plugin://jacpageadmin/assets/js/simplemde_config.js'), 1);\n }", "title": "" }, { "docid": "c40d423aaae6dc7de24be5e90062c0b2", "score": "0.5258736", "text": "function _callback_document_fragment(&$result, $document) {\n\t\tprofiler_enter(__METHOD__);\n\n\t\t$content = $document->toString();\n\t\tif (preg_match_all('/\\b\\d{2}((?:\\d{2})?[\\-:]\\d{2}[\\-:]\\d{2}(?=\\b|T)|\\/\\d{2}\\/(?:\\d{2}|\\d{4})\\b)/i', \n\t\t\tstrlen($content) < 32768 ? $content : substr($content, 0, 32768), $matches)) {\n\n\t\t\t$docid = $this->_index->getCurrentDocumentId();\n\t\t\t$wdw = $this->_index->getWithinDocumentWeight($document);\n\t\t\t\n\t\t\tforeach ($matches[0] as $date) {\n\t\t\t\tif (-1 != ($timestamp = strtotime(strtr($date, ':', '-')))) {\n\t\t\t\t\t$this->_index->runHook('index_posting', \n\t\t\t\t\t\tarray($docid, date('Ymd', $timestamp), 0, 0, $wdw));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tprofiler_leave(__METHOD__);\n\t}", "title": "" }, { "docid": "3efc41b52be527881c0a92af492096f9", "score": "0.52400845", "text": "protected function writeFragment($fragment) {\r\n\t\techo $fragment;\r\n\t}", "title": "" }, { "docid": "4fb26e02a0c1dea1b0a7c73b44bcec6c", "score": "0.52320826", "text": "public function setFragment( $key, $view );", "title": "" }, { "docid": "887ee134609e2dc0a280b07a651c2c01", "score": "0.5225958", "text": "function _fragment($fragment) {\n if ( strstr($fragment, '/') )\n $template = preg_replace('|(.*)/([^/]*)$|', '\\1/_\\2', $fragment);\n else \n $template = '_' . $fragment;\n return $this->_template($template);\n \t}", "title": "" }, { "docid": "f68b3bebec2e6c7d8b7bced44a89b778", "score": "0.5224817", "text": "public function getFragmentName() : string\n {\n return $this->fragment;\n }", "title": "" }, { "docid": "d419e48935e801fba2db35b9809c00b1", "score": "0.5203146", "text": "protected function buildFragment()\n {\n return $this->fragment ? '#'.$this->fragment : '';\n }", "title": "" }, { "docid": "6a7b98df50b9e4ec86668348afb8b52f", "score": "0.5199535", "text": "public function getFragment()\n {\n return '';\n }", "title": "" }, { "docid": "0c16268987a3c15961a6a126495a1ad6", "score": "0.51894784", "text": "public function getFragment($frag){\n\t\t\n\t\t//Gets unix name of the plugin\n\t\t$unix = $this->getUnix();\n\t\t\n\t\tif(is_dir(\"modules/\".$unix.\"/fragments\")){\n\t\t\tif(file_exists(\"modules/\".$unix.\"/fragments/\".$frag.\".phtml\")){\n\t\t\t\treturn $this->openFile(\"modules/\".$unix.\"/fragments/\".$frag.\".phtml\");\t\n\t\t\t}else{\n\t\t\t\treturn \"\";\t\n\t\t\t}\n\t\t}else{\n\t\t\treturn \"\";\t\n\t\t}\n\t}", "title": "" }, { "docid": "cddaaab26625cf5fe4b150e1fed49f9e", "score": "0.51832503", "text": "public function last(): Fragment;", "title": "" }, { "docid": "59db91c1cb762947064be3e7582ea7fb", "score": "0.5118004", "text": "public function getFragment(): string\n {\n return trim($this->fragment, '#');\n }", "title": "" }, { "docid": "76db2abfa6629cd9b78d7c069e555ad0", "score": "0.5089599", "text": "public function getFragment()\n {\n return strlen($this->_fragment) > 0 ? $this->_fragment : false;\n }", "title": "" }, { "docid": "6dd6888458ce0d11183baad3d5bdf836", "score": "0.5038371", "text": "function setFragment($fragment)\n {\n $this->fragment = (string) $fragment;\n return $this;\n }", "title": "" }, { "docid": "9105a45d7636ee57069ff989cb7e314e", "score": "0.49608555", "text": "public function testAddFields()\n {\n $fragment1 = Fragment::create('articleFragment', 'article', [\n 'id',\n 'title',\n 'image' => Query::create()->fields([\n 'width',\n 'height',\n 'filename',\n 'size',\n ]),\n ]);\n\n $fragment2 = Fragment::create('articleFragment', 'article')->fields([\n 'id',\n 'title',\n 'image' => Query::create()->fields([\n 'width',\n 'height',\n 'filename',\n 'size',\n ]),\n ]);\n\n $expected =\n 'fragment articleFragment on article {\n id\n image {\n filename\n height\n size\n width\n }\n title\n}\n';\n $this->assertEquals($expected, (string) $fragment1);\n $this->assertEquals($expected, (string) $fragment2);\n }", "title": "" }, { "docid": "61c07fdf52d13c37aa3e6e8ca52521e3", "score": "0.49250388", "text": "function orcp_header_add_to_cart_fragment( $fragments ) {\n\n global $woocommerce;\n\n ob_start();\n\n ?>\n <a class=\"cart-contents\" id=\"mini-cart-trigger\" href=\"#\" title=\"<?php _e( 'View your shopping cart', 'orcp' ); ?>\"><?php echo sprintf( __( 'Cart (%d)', 'orcp' ), $woocommerce->cart->cart_contents_count); ?></a>\n <?php\n\n $fragments['a.cart-contents'] = ob_get_clean();\n\n return $fragments;\n\n }", "title": "" }, { "docid": "c8ec9914e7425e013bdcdca23c6cfc51", "score": "0.49222445", "text": "public function getFragment()\r\n {\r\n return $this->tokens[UrlParts::FRAGMENT];\r\n }", "title": "" }, { "docid": "7a593d8c4977a9318823c8509737bee7", "score": "0.49131775", "text": "public function view() {\n\t\t$b = $this->getBlockObject();\n\t\t$bid = $b->getBlockID();\n\t\t$this->set('bid',$bid);\n\t}", "title": "" }, { "docid": "a0fbaef45cc31e1b70f607a12dfd662e", "score": "0.48768666", "text": "public function userFragment()\n {\n return [\n 'id',\n 'name',\n 'email',\n 'profile' => $this->profileFragment()\n ];\n }", "title": "" }, { "docid": "ded9c1cadba957c54e00f5069799d48c", "score": "0.4854312", "text": "public function renderFragment($aViewName=null) {\n\t\tif (!$this->bHasBeenSetup) throw new BadMethodCallException(__CLASS__.'::setup() must be called first.');\n\t\tif (empty($aViewName))\n\t\t\t$aViewName = $this->action;\n\t\t$recite =& $this->scene; $v =& $recite; //$this->scene, $recite, $v are all the same\n\t\t$myView = $recite->getViewPath($recite->actor_view_path.$aViewName);\n\t\t//$this->debugLog(__METHOD__.' myView=\"'.$myView.'\", args='.$this->debugStr(func_get_args()));\n\t\tif (file_exists($myView)) {\n\t\t\tob_start();\n\t\t\tinclude($myView);\n\t\t\treturn ob_get_clean();\n\t\t}\n\t}", "title": "" }, { "docid": "f438b5fde4985d58c026e212832a5acc", "score": "0.485083", "text": "function guifi_zone_view($node, $teaser = FALSE, $page = FALSE, $block = FALSE) {\n\n node_prepare($node);\n if ($teaser)\n return $node;\n if ($block)\n return $node;\n\n $node->content['data']= array(\n '#value' => theme_table(\n NULL,\n array(\n array(\n array(\n 'data' => '<small>'.theme_guifi_zone_data($node, FALSE).'</small>'.\n theme_guifi_contacts($node),\n 'width' => '35%'\n ),\n array(\n 'data' => guifi_zone_simple_map($node),\n 'width' => '65%'\n )\n )\n ),\n array('width' => '100%')\n ),\n '#weight' => 1);\n $node->content['graph']=array(\n '#value' => theme_guifi_zone_stats($node, FALSE),\n '#weight' => 2);\n $node->content['nodes']= array(\n '#value' => theme_guifi_zone_nodes($node, FALSE),\n '#weight' => 3);\n\n return $node;\n}", "title": "" }, { "docid": "b1ba2aa58549d358915bec0ed833156c", "score": "0.4846656", "text": "public static function query_fragment($fragment='')\n {\n if (!empty($fragment)) {\n $fragment = '#' . $fragment;\n }\n\n return $fragment;\n }", "title": "" }, { "docid": "de8ec4dbc700d6f91f2c49d8f955f689", "score": "0.48036724", "text": "public function isAjaxFragment()\n {\n return !!$this->getParam('__ajax_load_page');\n }", "title": "" }, { "docid": "d60f39303784ab011161043e7fe1f84f", "score": "0.47949094", "text": "public function cart_menu_fragment($fragments)\n\t{\n\t\t$fragments['a.cart-link'] = $this->cart_menu_link();\n\t\t\t\n\t\treturn $fragments;\t\n\t}", "title": "" }, { "docid": "8ba25150915cfecdb6f0e0e88463cbce", "score": "0.479272", "text": "public function getFragment()\n {\n if (!isset($this->fragment)) {\n $this->fragment = $this->getDOMDocument()->createDocumentFragment();\n }\n\n return $this->fragment;\n }", "title": "" }, { "docid": "a0d519a7a22a42f06909792950cbbd66", "score": "0.47904164", "text": "function faktura(){\n $this->data['mainTab'] = 'faktura';\n $this->data['activeTab'] = 'faktura_overview';\n $data_previlize = $this->check_member_type_previlize();\n if($this->session->userdata('mem_type')==\"Admin\" || $data_previlize['access_faktura']) {\n //$this->data['query1'] = $this->info_model->get_org_registered_member($this->session->userdata('member_org'));\n $this->data['dynamicView'] = 'pages/organization/faktura/faktura_overview';\n }\n else{\n $this->data['dynamicView'] = 'pages/organization/faktura/faktura_no_access';\n }\n $data_mem_type['mem_type'] = $this->session->userdata('mem_type');\n $this->load->vars($data_previlize);\t \n $this->load->vars($data_mem_type);\t\n $this->_commonPageLayout('frontend_viewer'); \n}", "title": "" }, { "docid": "2e4d8e3f769188fc27c06679157dae5d", "score": "0.47896183", "text": "protected function onUrlFragmentMatched(Request $request, $currentUrlFragment = \"\")\n {\n\n }", "title": "" }, { "docid": "354ed30a01ee9c1376b3d7449b3b50a7", "score": "0.47413194", "text": "protected function subfragment($filename, array $params = [])\n {\n $fragment = new self(array_merge($this->vars, $params));\n echo $fragment->parse($filename);\n }", "title": "" }, { "docid": "9ecc233a10d8be156aa83e0ce76aa693", "score": "0.47272256", "text": "public function requestFragment($route,$params) {\n list($controllerName,$actionName) = $this->getRouteArrayFromString($route);\n \n $Controller =$this->getControllerObject($controllerName);\n $Controller->invoke($actionName,$params);\n \n $View = new View();\n $scriptFile = $View->getScript($actionName,$controllerName);\n return $View->render($scriptFile,$Controller->getData());\n }", "title": "" }, { "docid": "90d0abdafde68b391da8e1ca3016a2a3", "score": "0.47004822", "text": "function org_members(){\n $this->data['mainTab'] = 'members';\n $this->data['activeTab'] = 'members';\n $data_previlize = $this->check_member_type_previlize();\n if($this->session->userdata('mem_type')==\"Admin\") {\n $this->data['query1'] = $this->info_model->get_org_registered_member($this->session->userdata('member_org'));\n $this->data['dynamicView'] = 'pages/organization/members/org_members';\n }\n else{\n $this->data['dynamicView'] = 'pages/organization/members/org_members_no_access';\n }\n $data_mem_type['mem_type'] = $this->session->userdata('mem_type');\n $this->load->vars($data_previlize);\t \n $this->load->vars($data_mem_type);\t\n $this->_commonPageLayout('frontend_viewer'); \n}", "title": "" }, { "docid": "2cb102543945f75cc079c70233eb779a", "score": "0.46996883", "text": "public function afterView()\n {\n }", "title": "" }, { "docid": "47b21259505ba9af978b3be7bb7958de", "score": "0.46909535", "text": "function alchemists_insertqv($vars) {\n\t\tarray_push($vars, 'fpage');\n\t\treturn $vars;\n\t}", "title": "" }, { "docid": "8760a11858827b7106cd9810de1510ec", "score": "0.4683934", "text": "function hvp_set_instance(&$block) {\n global $CFG, $COURSE, $PAGE, $OUTPUT;\n\n if (!empty($block->moduleinstance->displayname)) {\n $block->hideheader = false;\n $block->title = $block->moduleinstance->name;\n } else {\n $block->hideheader = true;\n }\n\n if (has_capability('mod/hvp:view', context_module::instance($block->cm->id))) {\n\n require_once($CFG->dirroot.'/mod/hvp/locallib.php');\n $pms[$block->cm->id] = $block->cm;\n\n // Set up view assets.\n // $view = new \\mod_hvp\\view_assets($block->cm, $COURSE, 'div');\n $view = new page_view_assets($block->cm, $COURSE, 'div');\n $content = $view->getcontent();\n $view->validatecontent();\n\n $view->logviewed();\n $view->addassetstopage();\n\n // Print any messages.\n ob_start();\n\n // Output introduction.\n if ($block->cm->showdescription) {\n if (trim(strip_tags($content['intro']))) {\n echo $OUTPUT->box_start('mod_introbox', 'hvpintro');\n echo format_module_intro('hvp', (object) array(\n 'intro' => $content['intro'],\n 'introformat' => $content['introformat'],\n ), $block->cm->id);\n echo $OUTPUT->box_end();\n }\n }\n\n \\mod_hvp\\framework::printMessages('info', \\mod_hvp\\framework::messages('info'));\n \\mod_hvp\\framework::printMessages('error', \\mod_hvp\\framework::messages('error'));\n\n $view->outputview();\n $content = ob_get_clean();\n\n $block->content->text = $content;\n }\n\n return true;\n}", "title": "" }, { "docid": "eeac6b425c423102e5f123dca051a9f8", "score": "0.46765652", "text": "public function getBlockContent($layout, $id) {\r\n \r\n }", "title": "" }, { "docid": "93ff2909bcad657245cd927e61e74ea7", "score": "0.46543553", "text": "function index()\n\t{\t\t\n\t\t//$this->up_templater->assign('comments', $comment_block);\n\t\t$this->up_templater->render('admin/main_page');\n\t}", "title": "" }, { "docid": "10ea6d67495ddbe8597dccc2cca3cc0d", "score": "0.46317375", "text": "protected function setBlocks(): void\n {\n //Sets the meta tag for RSS posts\n if (getConfig('default.rss_meta')) {\n $this->Html->meta(__d('me_cms', 'Latest posts'), '/posts/rss', ['type' => 'rss']);\n }\n\n //Sets scripts for Shareaholic\n if (getConfig('shareaholic.site_id')) {\n echo $this->Library->shareaholic(getConfig('shareaholic.site_id'));\n }\n\n //Sets some Facebook's tags\n $this->Html->meta(['content' => $this->getTitleForLayout(), 'property' => 'og:title']);\n $this->Html->meta(['content' => Router::url(null, true), 'property' => 'og:url']);\n\n //Sets the app ID for Facebook\n if (getConfig('default.facebook_app_id')) {\n $this->Html->meta(['content' => getConfig('default.facebook_app_id'), 'property' => 'fb:app_id']);\n }\n }", "title": "" }, { "docid": "ac94c9478aef37261acaf4372069aa9c", "score": "0.46295083", "text": "private function restore_html_fragments( $html ) {\n\t\t$pattern = '<!-- wpml:html_fragment (.*?) -->';\n\t\t$html = mb_ereg_replace_callback( $pattern, array( $this, 'restore_html_fragment_callback' ), $html, 'msri' );\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "4bd5d3e4cf4aa300db8a38a1918f0581", "score": "0.46267667", "text": "function get_form_fragment($title,$name){\n $str_form_fragment = \"<div id ='content'><strong>{$title}:</strong><br><input type='text' name={$name}></div>\";\n\n return $str_form_fragment;\n\n}", "title": "" }, { "docid": "ff4f3b263e01a6a9b18d09bd0e5ae299", "score": "0.46210992", "text": "private function performTagReplacement($content, BlockParams $params){\n // ended up with problems due to the annoying DOM API and braindead stuff\n // like no getDocumentElement() or getElementByID() not working even though\n // loadHTML clearly knows that the content is in fact HTML.\n //\n // So, let's go back to good old regexps :-)\n\n if ($this->getDebugMode($params) == 1 ){\n return $content;\n }\n\n $fragment_cache = $this->config->getFragmentCache();\n\n if (null !== ($version_id = $params->get('cache_version_id'))){\n $cache_key = sha1(join('', ['full-fragment', $version_id, $content]));\n $fragment = $fragment_cache->get($cache_key);\n if (!!$fragment) return $fragment;\n }\n\n $tag_pattern = '#\\s*<\\s*T(?:\\s+(.*))?\\s*(?:/>|>(.*)</T>)\\s*#Uims';\n $tags = array();\n\n $aindex = 0;\n\n // first assembling all work. The idea is that, if sorted by descending\n // location offset, we can selectively remove tags.\n //\n // We'll need that to conditionally handle tags (like jTemplate's\n // <script type=\"text/html\" that should remain)\n foreach(array('link', 'style', 'script') as $tag){\n $p = str_replace('T', preg_quote($tag), $tag_pattern);\n if(preg_match_all($p, $content, $ms, PREG_OFFSET_CAPTURE)){\n foreach($ms[1] as $i => $m){\n $tags[] = array(\n 'tag' => $tag,\n 'attrdata' => $m[0],\n 'index' => $ms[0][$i][1],\n 'tagdata' => $ms[0][$i][0],\n 'content' => $ms[2][$i][0] ?? '',\n 'page_order' => $aindex++\n );\n }\n }\n }\n\n // now sort task list by descending location offset\n usort($tags, function($a, $b){\n if ($a['index'] == $b['index']) return 0;\n return ($a['index'] < $b['index']) ? 1 : -1;\n });\n $ex = new WorkUnitExtractor($this->config, $params);\n $work_units = $ex->getAcceptedWorkUnits($tags);\n\n $renderer = new CacheRenderer($this->config, $params, $this->config->getServerParams()['SCRIPT_FILENAME'], $fragment_cache);\n $patched_content = $content;\n\n $render = array();\n $category = function($work_unit){\n return implode('', array($work_unit['group'] ?? null, $work_unit['tag'] ?? null, !empty($work_unit['file'])));\n };\n $curr_cat = $category($work_units[0] ?? null);\n\n $entry = null;\n $res = null;\n foreach($work_units as $i => $entry){\n $cg = $category($entry);\n\n // the moment the category changes, render all we have so far\n // this makes it IMPERATIVE to keep links of the same category\n // together.\n if ($curr_cat != $cg || ($this->getDebugMode($params) == 3 && $renderer->allowMergedTransformOnly($work_units[$i-1]['tag']) && count($render))){\n $render_order = array_reverse($render);\n $res = $renderer->renderWorkUnits($work_units[$i-1]['tag'], $work_units[$i-1]['group'], $render_order);\n if ($res === false){\n // rendering failed.\n // because we don't know which one, we just enter emergency mode\n // and return the initial content unharmed:\n return $content;\n }\n // add rendered stuff to patched content\n $m = null;\n foreach($render as $r){\n if ($m == null) $m = $r['position'];\n if ($r['position'] < $m) $m = $r['position'];\n // remove tag\n $patched_content = substr_replace($patched_content, '', $r['position'], $r['length']);\n }\n // splice in replacement\n $patched_content = substr_replace($patched_content, $res, $m, 0);\n $curr_cat = $cg;\n $render = array($entry);\n }else{\n $render[] = $entry;\n }\n }\n $render_order = array_reverse($render);\n if ($work_units){\n $res = $renderer->renderWorkUnits($entry['tag'], $entry['group'], $render_order);\n if ($res === false){\n // see last comment\n return $content;\n }\n }\n $m = null;\n foreach($render as $r){\n if ($m == null) $m = $r['position'];\n if ($r['position'] < $m) $m = $r['position'];\n // remove tag\n $patched_content = substr_replace($patched_content, '', $r['position'], $r['length']);\n }\n $patched_content = substr_replace($patched_content, $res, $m, 0);\n\n if (null !== ($version_id = $params->get('cache_version_id'))){\n $cache_key = sha1(join('', ['full-fragment', $version_id, $content]));\n $fragment_cache->set($cache_key, $patched_content);\n }\n\n return $patched_content;\n }", "title": "" }, { "docid": "b2b17a3861c1b83b1532e5f16c53510c", "score": "0.46188083", "text": "public function onTwigSiteVariables()\n {\n // Variables\n $this->theme = $this->config->get('plugins.diagrams.theme');\n $this->font_size = $this->config->get('plugins.diagrams.font.size');\n $this->font_color = $this->config->get('plugins.diagrams.font.color');\n $this->line_color = $this->config->get('plugins.diagrams.line.color');\n $this->element_color = $this->config->get('plugins.diagrams.line.color');\n $this->condition_yes = $this->config->get('plugins.diagrams.condition.yes');\n $this->condition_no = $this->config->get('plugins.diagrams.condition.no');\n $this->gantt_axis = $this->config->get('plugins.diagrams.gantt.axis');\n\n // Resources for the conversion\n $this->grav['assets']->addJs('plugin://diagrams/js/underscore-min.js');\n $this->grav['assets']->addJs('plugin://diagrams/js/lodash.min.js');\n $this->grav['assets']->addJs('plugin://diagrams/js/raphael-min.js');\n $this->grav['assets']->addJs('plugin://diagrams/js/sequence-diagram-min.js');\n $this->grav['assets']->addJs('plugin://diagrams/js/flowchart-latest.js');\n $this->grav['assets']->addJs('plugin://diagrams/js/mermaid.min.js');\n $this->grav['assets']->addCss('plugin://diagrams/css/mermaid.css');\n\n // Used to start the conversion of the div \"diagram\" when the page is loaded\n $init = \"$(document).ready(function() {\n mermaid.initialize({startOnLoad:true});\n mermaid.ganttConfig = {\n axisFormatter: [[\\\"\".$this->gantt_axis.\"\\\", function (d){return d.getDay() == 1;}]]\n };\n\n $(\\\".diagram\\\").sequenceDiagram({theme: '\".$this->theme.\"'});\n\n var parent = document.getElementsByClassName(\\\"flow\\\");\n for(var i=0;i<parent.length;i++) {\n var data = parent[i].innerHTML.replace(/&lt;/g, '<').replace(/&gt;/g, '>');\n parent[i].innerHTML = \\\"\\\";\n var chart = flowchart.parse(data);\n chart.drawSVG('canvas_'+i, {\n 'font-size': \".$this->font_size.\",\n 'font-color': '\".$this->font_color.\"',\n 'line-color': '\".$this->line_color.\"',\n 'element-color': '\".$this->element_color.\"',\n 'yes-text': '\".$this->condition_yes.\"',\n 'no-text': '\".$this->condition_no.\"',\n\n // More informations : http://flowchart.js.org\n 'flowstate' : {\n 'simple': {'fill' : '#FFFFFF'},\n 'positive': {'fill' : '#387EF5'},\n 'success': { 'fill' : '#9FF781'},\n 'invalid': {'fill' : '#FA8258'},\n 'calm': {'fill' : '#11C1F3'},\n 'royal': {'fill' : '#CF86E9'},\n 'energized': {'fill' : 'F3FD60'},\n }\n });\n }\n });\";\n $this->grav['assets']->addInlineJs($init);\n }", "title": "" }, { "docid": "0bd0d86ebbf65b8d640c9da811e4b562", "score": "0.46138456", "text": "protected function _run()\n {\n include func_get_arg(0); //'view://'.func_get_arg(0);\n }", "title": "" }, { "docid": "10e5b33d58f2d0c4289bb19456a0e54f", "score": "0.46129444", "text": "public function fragment($fragment = null)\n {\n if (is_null($fragment)) return $this->fragment;\n\n $this->fragment = $fragment;\n\n return $this;\n }", "title": "" }, { "docid": "5148f5f5b263ad048d4da35f7c4271d0", "score": "0.46026728", "text": "public function flushVariables() : ViewInterface;", "title": "" }, { "docid": "ec25749df323a643ca69138612e86e49", "score": "0.45988697", "text": "public function restore_html_fragment_callback( $matches ) {\n\t\treturn $matches[1];\n\t}", "title": "" }, { "docid": "64f6929ce74c7da334422962695345ca", "score": "0.4579291", "text": "function moduleContentTab4() {\n\t\t\tif (($this->t3dkptw['page']['1'] && !$this->t3dkptw['createNew']) || $this->t3dkptw['createNew']) {\n\t\t\t\t$xmlArray = $this->t3dkptw;\n\t\t\t\tunset($xmlArray['createNew']);\n\t\t\t\tunset($xmlArray['gotoStep3']);\n\t\t\t\tunset($xmlArray['gotoStep4']);\n\t\t\t\tunset($xmlArray['parentPage']);\n\t\t\t\tunset($xmlArray['xmlContent']);\n\t\t\t\t$this->tab4Content .= '<div class=\"tabscreenback1\"><!--BACKGROUND--></div><div class=\"tabcontent tabscreen_left\">\n\t\t\t\t\t'.$this->doc->header('Save this tree as a new custom preset').'<hr />\n\t\t\t\t\t<p><label>Label for this custom preset:</label>\n\t\t\t\t\t<input class=\"xmlFileName\" type=\"text\" name=\"t3dkptw[xmlFileName]\" /></p><hr />\n\t\t\t\t\t<p><label>Description for this custom preset:</label></p>\n\t\t\t\t\t<textarea class=\"description\" name=\"t3dkptw[xmlFileDesc]\"></textarea><hr />\n\t\t\t\t\t<p><label>Preview:</label></p>\n\t\t\t\t\t<textarea class=\"xmlcontent\" name=\"t3dkptw[xmlContent]\" readonly=\"readonly\">'.str_replace(chr(9), ' ', t3lib_div::array2xml($xmlArray)).'</textarea>';\n\t\t\t\t$this->tab4Content .= '\n\t\t\t\t\t<div class=\"stepsubmit\">\n\t\t\t\t\t<input type=\"submit\" class=\"submit\" name=\"t3dkptw[saveXML]\" value=\"Save a new custom preset\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>';\n\t\t\t\t$this->tab4Content .= '<img class=\"counterimage\" src=\"icons/level4.gif\" />\n\t\t\t\t\t<div class=\"tabscreenback2\"><!--BACKGROUND--></div><div class=\"tabcontent tabscreen_right\">\n\t\t\t\t\t'.$this->doc->header('Insert the tree into the Database').'<hr />';\n\t\t\t\t$this->makeStatistics($xmlArray['page']);\n\t\t\t\tif (is_array($this->pageTypeCounter)) {\n\t\t\t\t\t$allPages = intval(array_sum($this->pageTypeCounter))+1+count($xmlArray['page']);\n\t\t\t\t}\n\t\t\t\t$this->tab4Content .= $this->pageTypeCounter[1] ? '\n\t\t\t\t\t<table class=\"t3dkptw_statistics\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"2\">Statistics</th>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>Root-Pages:</th><td>'.intval(count($xmlArray['page'])).'/'.$allPages.'</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>Standard-Pages:</th><td>'.intval($this->pageTypeCounter[1]).'/'.$allPages.'</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>Shortcut-Pages:</th><td>'.intval($this->pageTypeCounter[4]).'/'.$allPages.'</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>SysFolders:</th><td>'.intval($this->pageTypeCounter[254]+1).'/'.$allPages.'</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>Levels:</th><td>'.count($this->levelArray).'</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>' :\n\t\t\t\t'';\n\t\t\t\t \n\t\t\t\tif (intval(count($xmlArray['page']) > 1)) {\n\t\t\t\t\t$this->tab4Content .= '<hr /><p>You are going to create more than one root site. If you want, you can enter the domain(s) for each of them here, separated by comma, and TYPO3 will create the necessary domain records for you:</p><hr />\n\t\t\t\t\t\t<dir id=\"domainrecords\">\n\t\t\t\t\t\t';\n\t\t\t\t\t$language = $GLOBALS['LANG']->lang;\n\t\t\t\t\tforeach($xmlArray['page'] as $rootPageNumber => $rootPageArray) {\n\t\t\t\t\t\t$this->tab4Content .= '<li><label>'.$rootPageArray['title']['lang'][$language].'</label><br /><input type=\"text\" name=\"t3dkptw[domains]['.$rootPageNumber.']\" /></li>';\n\t\t\t\t\t}\n\t\t\t\t\t$this->tab4Content .= '</dir>\n\t\t\t\t\t\t';\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t$this->tab4Content .= '\n\t\t\t\t\t<div class=\"stepsubmit\">\n\t\t\t\t\t<input type=\"submit\" class=\"submit\" name=\"t3dkptw[save]\" value=\"Create this tree now\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>';\n\t\t\t}\n\t\t\treturn $this->tab4Content;\n\t\t}", "title": "" }, { "docid": "db9f7155c5ce725c7c4fc4822416ccd6", "score": "0.45789164", "text": "public function partial()\n {\n $this->cache()->deactivate();\n $view = $this->makeView('sandbox/partial');\n $view->nav = with(new Cinnebar_Menu)->add('back', $view->url('/sandbox/index/token'));\n echo $view->render();\n }", "title": "" }, { "docid": "10338b17746e7b289288f2e4afab9266", "score": "0.4577389", "text": "public function testSortFields()\n {\n $fragment1 = Fragment::create('articleFragment', 'article', [\n 'id',\n 'title',\n 'image',\n ]);\n\n $fragment2 = Fragment::create('articleFragment', 'article')->fields([\n 'title',\n 'image',\n 'id',\n ]);\n\n $this->assertEquals((string) $fragment1, (string) $fragment2);\n }", "title": "" }, { "docid": "d1c38861d9ab4e94db0fef52fd679a30", "score": "0.45674297", "text": "public function run()\n {\n $member_id_viewing = get_member();\n $member_id_of = get_param_integer('member_id');\n\n $hook = filter_naughty_harsh(get_param_string('tab'));\n\n require_code('urls2');\n\n $keep_get = array();\n foreach (array_keys($_GET) as $key) {\n if (in_array($key, array('snippet', 'tab', 'url', 'title', 'member_id', 'utheme'))) {\n continue;\n }\n $keep_get[$key] = get_param_string($key, null, true);\n }\n $former_context = set_execution_context(array('page' => 'members', 'type' => 'view', 'id' => $member_id_of) + $keep_get, get_module_zone('members'));\n\n require_code('hooks/systems/profiles_tabs/' . $hook, true);\n $ob = object_factory('Hook_profiles_tabs_' . $hook);\n if ($ob->is_active($member_id_of, $member_id_viewing)) {\n // We need to minimise the dependency stuff that comes out, we don't need any default values\n push_output_state(false, true);\n\n // Cleanup dependencies that will already have been handled\n global $CSSS, $JAVASCRIPTS;\n unset($CSSS['global']);\n unset($CSSS['no_cache']);\n unset($JAVASCRIPTS['global']);\n unset($JAVASCRIPTS['staff']);\n\n // And, go\n $ret = $ob->render_tab($member_id_of, $member_id_viewing);\n $out = new Tempcode();\n $eval = $ret[1]->evaluate();\n $out->attach(symbol_tempcode('CSS_TEMPCODE'));\n $out->attach(symbol_tempcode('JS_TEMPCODE'));\n $out->attach($eval);\n $out->attach(symbol_tempcode('JS_TEMPCODE', array('footer')));\n\n call_user_func_array('set_execution_context', $former_context);\n\n return $out;\n }\n\n // Very likely a session was lost\n if (is_guest()) {\n $login_url = build_url(array('page' => 'login', 'type' => 'login'), '_SELF');\n require_css('login');\n $passion = form_input_hidden('redirect', static_evaluate_tempcode($GLOBALS['FORUM_DRIVER']->member_profile_url($member_id_of, true, true)));\n $ret = do_template('LOGIN_SCREEN', array('_GUID' => 'f401d48a9d2a70af6c2976d396207fc1', 'EXTRA' => '', 'USERNAME' => $GLOBALS['FORUM_DRIVER']->get_username($member_id_of), 'JOIN_URL' => $GLOBALS['FORUM_DRIVER']->join_url(), 'TITLE' => '', 'LOGIN_URL' => $login_url, 'PASSION' => $passion));\n $out = new Tempcode();\n $eval = $ret->evaluate();\n $out->attach(symbol_tempcode('CSS_TEMPCODE'));\n $out->attach(symbol_tempcode('JS_TEMPCODE'));\n $out->attach($eval);\n $out->attach(symbol_tempcode('JS_TEMPCODE', array('footer')));\n return $out;\n }\n\n call_user_func_array('set_execution_context', $former_context);\n\n return do_template('INLINE_WIP_MESSAGE', array('_GUID' => 'aae58043638dac785405a42e9578202b', 'MESSAGE' => do_lang_tempcode('INTERNAL_ERROR')));\n }", "title": "" }, { "docid": "84e2fdb8847ea8a617333f41db35750e", "score": "0.45673782", "text": "public function profileFragment()\n {\n return [\n 'firstname',\n 'lastname'\n ];\n }", "title": "" }, { "docid": "66b94706b9c6fcda6f854f02f8ad36c6", "score": "0.45588616", "text": "public function populateMemberDetail($side_bar_option)\n\t{\n\t\tglobal $smartyObj;\n\t\tif($side_bar_option == 'article')\n\t\t\t$allowed_pages_array = array('viewArticle.php');\n\n\t\tif(displayBlock($allowed_pages_array))\n\t\t\treturn;\n\n\t\t$this->_currentPage = strtolower($this->CFG['html']['current_script_name']);\n\t\t$this->_navigationArr['left_'.$this->_currentPage] = $this->_clsActiveLink;\n\t\t$pg = (isset($_REQUEST['pg']))?$_REQUEST['pg']:'';\n\t\t$block = (isset($_REQUEST['block']))?$_REQUEST['block']:'';\n\t\tif($block != '')\n\t\t\t{\n\t\t\t\t$page = $this->_currentPage.'_'.strtolower($block);\n\t\t\t\t$this->_navigationArr['left_'.$page] = $this->_clsActiveLink;\n\t\t\t}\n\t\t$flag = false;\n\t\tif($pg != '')\n\t\t{\n\t\t\t$flag = true;\n\t\t\t$this->_navigationArr['left_'.$this->_currentPage] = $this->_clsInActiveLink;\n\t\t\t$page = $this->_currentPage.'_'.strtolower($pg);\n\t\t\t$this->_navigationArr['left_'.$page] = $this->_clsActiveLink;\n\t\t}\n\n\t\t$populateMemberDetail_arr = array();\n\t\t$populateMemberDetail_arr['memberProfileUrl'] = getMemberProfileUrl($this->CFG['user']['user_id'], $this->CFG['user']['user_name']);\n\t\t$populateMemberDetail_arr['name'] = $this->CFG['user']['user_name'];\n\t\t$populateMemberDetail_arr['icon'] = getMemberAvatarDetails($this->CFG['user']['user_id']);\n\n\t\t//TOTAL article //\n\t\t$sql = 'SELECT COUNT( a.article_id ) AS total_article '.\n\t\t\t'FROM '.$this->CFG['db']['tbl']['article'].' AS a '.\n\t\t\t'WHERE article_status=\\'Ok\\' AND user_id = '.$this->dbObj->Param('user_id');\n\n\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t$rs = $this->dbObj->Execute($stmt, array($this->CFG['user']['user_id']));\n\t\tif (!$rs)\n\t\t\ttrigger_db_error($this->dbObj);\n\n\t\t$result_set = $rs->FetchRow();\n\t\t$populateMemberDetail_arr['total_article'] = $result_set['total_article'];\n\t\t$smartyObj->assign('populateMemberDetail_arr', $populateMemberDetail_arr);\n\t\t$smartyObj->assign('opt', $side_bar_option);\n\t\t$smartyObj->assign('flag', $flag);\n\t\t$smartyObj->assign('cid', isset($_GET['cid'])?$_GET['cid']:'0');\n\t\tsetTemplateFolder('general/', 'article');\n\t\t$smartyObj->display('populateMemberBlock.tpl');\n\t}", "title": "" }, { "docid": "32f15ad4df21ef21403c140309a3c73c", "score": "0.45578784", "text": "public function fragment ($value = null)\n\t{\n\t\tif ($value === null)\n\t\t{\n\t\t\treturn $this->fragment;\n\t\t}\n\n\t\tif ($this->is_readonly())\n\t\t{\n\t\t\tthrow new \\Core\\Exceptions\\URLReadonly();\n\t\t}\n\n\t\t$this->fragment = $value;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e731fac0cf644dcbe1007f923142974f", "score": "0.45565066", "text": "function fsp_insertqv($vars)\n {\n array_push($vars, 'fpage');\n return $vars;\n }", "title": "" }, { "docid": "4f7f086045ece01c3e69e5c56439f160", "score": "0.45538464", "text": "function validateFragment($html)\n {\n $this->fragment = $html;\n $this->buildRequest('fragment');\n if ($this->sendRequest()) {\n return $this->parseSOAP12Response($this->request->getResponseBody());\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "35b5fd770daa1b7922460f502a8aed85", "score": "0.45449886", "text": "public function authFragment()\n {\n return [\n 'access_token',\n 'user' => $this->userFragment()\n ];\n }", "title": "" }, { "docid": "21dc462517931cc5b5e76cca28a3d532", "score": "0.45437407", "text": "public function builder_block_callback () {\r\n\t\t$block_type = $_GET['block_type'];\r\n\t\t$block_id = $_GET['block_id'];\r\n\t\t$row_id = $_GET['row_id'];\r\n\t\t$row_layout = $_GET['row_layout'];\r\n\r\n\t\t$class = $this->construct_block_class_name($block_type);\r\n\r\n\t\t/**\r\n\t\t * @var $block \\ExtraPageBuilder\\AbstractBlock\r\n\t\t */\r\n\t\t$block = new $class($this, $block_type);\r\n\t\tif (strpos($block_type, 'meta_block_') === 0) {\r\n\t\t\t$meta_blocks_properties = $this->get_meta_box_properties($block_type);\r\n\t\t\t$block->extract_properties($meta_blocks_properties);\r\n\t\t}\r\n\r\n\t\t// This is a hack to imitate wpalchemy group behavior\r\n\t\t$this->id = $row_id;\r\n\t\t$this->in_template = TRUE;\r\n\t\t$this->the_block_wrapper($block, $block_id, $this->get_block_width($row_layout, $block_id));\r\n\r\n\t\tdie;\r\n\t}", "title": "" }, { "docid": "768101af564121bde774e1c208565fa0", "score": "0.45398563", "text": "protected function __post_render()\n {\n\n }", "title": "" }, { "docid": "452bb0ae1fe49b3722fe49380b9208d5", "score": "0.45287582", "text": "private function setUrlFragments($url)\n\t{\n\t\t$decomposer = new UrlDecomposer($url);\n\n\t\t$this->url->scheme = $decomposer->getScheme();\n\t\t$this->url->host = $decomposer->getHost();\n\t\t$this->url->port = $decomposer->getPort();\n\t\t$this->url->user = $decomposer->getUser();\n\t\t$this->url->pass = $decomposer->getPass();\n\t\t$this->url->path = $decomposer->getPath();\n\t\t$this->url->query = $decomposer->getQuery();\n\t\t$this->url->fragment = $decomposer->getFragment();\n\t}", "title": "" }, { "docid": "fbd840a4ee1524c93a953d0953c2c160", "score": "0.4513401", "text": "function wordofthehour_block_view($delta) {\n $block = array();\n\n switch ($delta) {\n case 'quick_contribution':\n drupal_add_css(drupal_get_path('module', 'wordofthehour') . '/css/wordofthehour.css');\n\n $block['subject'] = NULL;\n $block['content'] = ngpvanquickforms_block_quick_contribution();\n break;\n }\n return $block;\n\n}", "title": "" }, { "docid": "27b98f6df5770743989aa07e0ae7a2d7", "score": "0.45058435", "text": "private function _prep_view_data()\n {\n $this->view_data = array(); \n }", "title": "" }, { "docid": "294d999010fd1ac6aa6a7577203420f6", "score": "0.44894552", "text": "public function testFragmentLink() {\n $session = $this->getSession();\n $web_assert = $this->assertSession();\n $ckeditor_class = '.ck-editor';\n $ckeditor_id = '#cke_edit-body-0-value';\n\n $this->drupalGet('node/add/page');\n\n // Only enter a title in the node add form and leave the body field empty.\n $edit = ['edit-title-0-value' => 'Test inline form error with CKEditor 5'];\n\n $this->submitForm($edit, 'Save');\n\n $this->assertSession()->waitForElement('css', '#cke_edit-body-0-value');\n // Add a bottom margin to the title field to be sure the body field is not\n // visible.\n $session->executeScript(\"document.getElementById('edit-title-0-value').style.marginBottom = window.innerHeight*2 + 'px';\");\n\n // Check that the CKEditor5-enabled body field is currently not visible in\n // the viewport.\n $web_assert->assertNotVisibleInViewport('css', $ckeditor_class, 'topLeft', 'CKEditor5-enabled body field is not visible.');\n\n // Check if we can find the error fragment link within the errors summary\n // message.\n\n $errors_link = $this->assertSession()->waitForElementVisible('css', 'a[href$=\"#edit-body-0-value\"]');\n $this->assertNotEmpty($errors_link, 'Error fragment link is visible.');\n\n $errors_link->click();\n\n // Check that the CKEditor5-enabled body field is visible in the viewport.\n // The hash change adds an ID to the CKEditor 5 instance so check its visibility using the ID now.\n $web_assert->assertVisibleInViewport('css', $ckeditor_id, 'topLeft', 'CKEditor5-enabled body field is visible.');\n }", "title": "" }, { "docid": "5b148fb3fa9f7c132a57ab640eceff7d", "score": "0.44886446", "text": "function my_header_add_to_cart_fragment( $fragments ) {\n \n ob_start();\n $count = WC()->cart->cart_contents_count;\n ?><a class=\"cart-contents\" href=\"<?php echo WC()->cart->get_cart_url(); ?>\" title=\"<?php _e( 'View your shopping cart' ); ?>\"><?php\n if ( $count > 0 ) {\n ?>\n <span class=\"cart-contents-count\"><?php echo esc_html( $count ); ?></span>\n <?php \n }\n ?></a><?php\n\n $fragments['a.cart-contents'] = ob_get_clean();\n \n return $fragments;\n }", "title": "" }, { "docid": "e0b58e74b06af1195403e4a72a02b75c", "score": "0.44791615", "text": "protected function beforeRefresh()\n {\n }", "title": "" }, { "docid": "362d5bc4755a4b04eb599f08dd46e865", "score": "0.447758", "text": "private function _loadBlock(){\n if($this->_pageBlock){\n return $this->_pageBlock;\n }\n\n $staticBlockId = $this->getHelper()->getConfig('pageStaticBlock', $this->_storeCode);\n $this->_pageBlock = $this->getLayout()->createBlock('cms/block')->setBlockId($staticBlockId);\n\n $this->append($this->_pageBlock);\n }", "title": "" }, { "docid": "c388b6b175f27828570347800ad3556d", "score": "0.44674367", "text": "public function saveInBlockPart( $block_part, $remove_vars = FALSE )\n\t\t{\n\t\t\t\n\t\t\t//use the vars in the plugins\n\t\t\t$this->usePluginVars();\n\t\t\t\n\t\t\t//$html = $remove_vars? $this->getHtml() : $this->html;\n\t\t\t//$this->layout->block->html = str_replace( '{%'.$block_part.'%}', $html.'{%'.$block_part.'%}', $this->layout->block->html );\t\n\t\t\t\n\t\t\t$this->html = str_replace( array_keys($this->assigned_vars), array_values($this->assigned_vars), $this->html );\n\t\t\t$this->html = $this->html . $this->delimiter;\n\t\t\t\n\t\t\tif( $remove_vars ){\t\n\t\t\t\t//moved above\n\t\t\t\t//$this->html = str_replace( array_keys($this->assigned_vars), array_values($this->assigned_vars), $this->html );\n\t\t\t\t//$this->html = $this->html . $this->delimiter;\n\t\t\t\t\n\t\t\t\t$this->plugin_manager->invalidateSpecific($this->assigned_vars); //test\n\t\t\t\t$this->removeTemplateVars();\n\t\t\t}\n\t\t\t\n\t\t\t$this->layout->block->html = str_replace( '{%'.$block_part.'%}', $this->html.'{%'.$block_part.'%}', $this->layout->block->html );\n\t\t\t\n\t\t\t$this->invalidateVars();//new thing \n\t\t\t\n\t\t\t$this->layout->destroyBlock( $this->block_type );\n\t\t}", "title": "" }, { "docid": "b051d3efda1b76c40da97aebf9a2eca6", "score": "0.4463447", "text": "protected function mamber_content(){\n\n }", "title": "" }, { "docid": "24fb7c1281bfe4a9e7810943b9f1fcf8", "score": "0.44618243", "text": "function article_details($article_id){\n $this->data['mainTab'] = 'mainboard';\n $this->data['activeTab'] = 'mainboard';\n $this->data['article_details'] = $this->info_model->get_article_details_by_article_id($article_id,$this->session->userdata('member_org'));\n $this->data['article_comments'] = $this->info_model->get_article_comments_by_article_id($article_id,$this->session->userdata('member_org'));\n //print_r($this->data['article_comments']);exit;\n $this->data['dynamicView'] = 'pages/organization/mainboard/article_details';\n $this->_commonPageLayout('frontend_viewer');\n}", "title": "" }, { "docid": "d9c80688ee9ebf3339143553b1300c0a", "score": "0.44613594", "text": "public function appendIDForRegion()\n {\n $layouts = $this->dao->select('*')->from(TABLE_LAYOUT)->fetchAll();\n foreach($layouts as $layout)\n {\n $blocks = json_decode($layout->blocks);\n foreach($blocks as $block)\n {\n if(!isset($block->children)) continue;\n $regionID = $this->loadModel('block')->createRegion($layout->template, $layout->page, $layout->region);\n $block->id = $regionID;\n }\n $blocks = helper::jsonEncode($blocks);\n if($blocks == $layout->blocks) continue;\n\n $layout->blocks = $blocks;\n $this->dao->replace(TABLE_LAYOUT)->data($layout)->exec();\n }\n }", "title": "" }, { "docid": "83947e322e1138f825fa9056ca8303a1", "score": "0.44560537", "text": "public function html($_escaped_fragment_ = NULL){\n $vars = array();\n $vars['css'] = self::css();\n $vars['js'] = '';\n if(!$_escaped_fragment_){\n $vars['js'] = self::js();}\n $vars['menu_languages'] = self::lang_menu(); \n $vars['menu_start'] = self::menu_start();\n $vars['menu_left'] = self::menu_left();\n $vars['menu_right'] = self::menu_right();\n $vars = array_merge($vars,\\SYSTEM\\PAGE\\text::tag(\\SYSTEM\\SQL\\system_text::TAG_SAI_DEFAULT),\n array( 'project' => \\SYSTEM\\CONFIG\\config::get(\\SYSTEM\\CONFIG\\config_ids::SYS_SAI_CONFIG_PROJECT),\n 'project_url' => \\SYSTEM\\CONFIG\\config::get(\\SYSTEM\\CONFIG\\config_ids::SYS_CONFIG_PATH_BASEURL)));\n return \\SYSTEM\\PAGE\\replace::replaceFile((new \\SYSTEM\\PSAI('page/tpl/sai.tpl'))->SERVERPATH(), $vars); \n }", "title": "" }, { "docid": "fac028f8b89bffde3884189925d34ff1", "score": "0.44522992", "text": "function content_function(){ load_show(); }", "title": "" }, { "docid": "61ab4684f4b763de860cfcef0c61e842", "score": "0.44381604", "text": "function content_block()\r\n {\r\n\t $this->add_head_css(new DefaultGUIDataListCSS) ;\r\n\r\n // This allows passing arguments eithers as a GET or a POST\r\n\r\n $scriptargs = array_merge($_GET, $_POST) ;\r\n\r\n // The swimmeetid is the argument which must be\r\n // dealt with differently for GET and POST operations\r\n\r\n if (array_key_exists(\"swimmeetid\", $scriptargs))\r\n $swimmeetid = $scriptargs[\"swimmeetid\"] ;\r\n else if (array_key_exists(\"_swimmeetid\", $scriptargs))\r\n $swimmeetid = $scriptargs[\"_swimmeetid\"] ;\r\n else if (array_key_exists(FT_DB_PREFIX . \"radio\", $scriptargs))\r\n $swimmeetid = $scriptargs[FT_DB_PREFIX . \"radio\"][0] ;\r\n else\r\n $swimmeetid = null ;\r\n\t \r\n $container = container() ;\r\n\r\n $it = new SwimMeetInfoTable(\"Swim Meet Details\") ;\r\n $it->setSwimMeetId($swimmeetid) ;\r\n $it->BuildInfoTable() ;\r\n\r\n $container->add($it) ;\r\n $container->add(FlipTurnGUIButtons::getBackHomeButtons()) ;\r\n\r\n\t return $container ;\r\n }", "title": "" }, { "docid": "00e8c64b6b98b0d0d34d72c7b108677e", "score": "0.44379595", "text": "function showPageContent() {}", "title": "" }, { "docid": "fe030683194b39f2067b51799d6b78ce", "score": "0.44357455", "text": "function view()\n\t{\n\t}", "title": "" }, { "docid": "dc90fc553a3c00dbad19102b0c8c95f0", "score": "0.44354266", "text": "public abstract function prepareView($nextView);", "title": "" }, { "docid": "2c4593bafa2b3b2546eb917e658dea32", "score": "0.4423196", "text": "static function getContentBlock( $section_name )\n\t{\n\t\t$model[$section_name] = ContentBlockModel::getSectionVariables( $section_name );\n\n\t\t// pull in partials based on layout type\n\t\trequire get_template_directory() . '/templates/views/' . $section_name . '.php';\n\t}", "title": "" }, { "docid": "583c984ec811e15e6e705bfb13b34ca1", "score": "0.44143167", "text": "private function render_example_block($block)\n {\n }", "title": "" }, { "docid": "29c010d08ead50b2c3bda39251057384", "score": "0.4408012", "text": "public function mainContent() {\r\n // now follows html:\r\n ?>\r\n <ul>\r\n <li>This is a nested view, under the &QUOT;sample&quot; folder</li>\r\n <li>You can nest it as deep as you want</li>\r\n <li>Loaded without any controller</li>\r\n </ul>\r\n \r\n <?php\r\n if(isset($_REQUEST['id']))\r\n echo \"parameter passed via get method: \" . $_REQUEST['id'];\r\n }", "title": "" }, { "docid": "daabcba82cbd5925477788f5fa79370b", "score": "0.44055828", "text": "public function setFragment($fragment = '')\r\n {\r\n $fragment = rawurlencode(urldecode($fragment));\r\n\r\n $this->tokens[UrlParts::FRAGMENT] = $fragment;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "6e06c44420b496a0a9061a37a0486719", "score": "0.44052306", "text": "function batanaweb_woocommerce_cart_link_fragment($fragments)\n {\n ob_start();\n batanaweb_woocommerce_cart_link();\n $fragments['a.cart-contents'] = ob_get_clean();\n\n return $fragments;\n }", "title": "" }, { "docid": "0f5a3377f168f81de28df34f8b581747", "score": "0.440466", "text": "public function onTwigVariables()\n {\n $twig = $this->grav['twig'];\n $twig->twig_vars['slack_active_users'] = $this->active_members;\n $twig->twig_vars['slack_total_users'] = $this->total_members;\n }", "title": "" }, { "docid": "d46a9a5fb4e0c9ae90ce73551f21a8eb", "score": "0.43959123", "text": "public function page()\n {\n $this->set('user', $this->current_user);\n $this->set('blocks', $this->DEFAULT_LAYOUT);\n # @blocks = @user.pref[:my_page_layout] || DEFAULT_LAYOUT\n }", "title": "" }, { "docid": "c7d3226c6c3dc64056591faace7312af", "score": "0.43948156", "text": "function fn_social_buttons_before_dispatch()\n{\n if (isset($_REQUEST['_escaped_fragment_'])) {\n fn_redirect($_REQUEST['_escaped_fragment_'], true, true);\n }\n}", "title": "" }, { "docid": "779a95da674ce58c583280efea951862", "score": "0.43906093", "text": "protected function initView()\n {\n \n }", "title": "" } ]
4e8f3b53fb9e2eea0beaa75d8d3c7a43
/ FUNCTION PARA SABER CUAL ES LA LETRA
[ { "docid": "be0458e80b19a4bfeae7d32ead06f852", "score": "0.6406532", "text": "function letras($numeroletra){\n\t$devuelve = \"A\";\n\tif($numeroletra == 1){ $devuelve = \"A\"; }\n\tif($numeroletra == 2){ $devuelve = \"B\"; }\n\tif($numeroletra == 3){ $devuelve = \"C\"; }\n\tif($numeroletra == 4){ $devuelve = \"D\"; }\n\tif($numeroletra == 5){ $devuelve = \"E\"; }\n\tif($numeroletra == 6){ $devuelve = \"F\"; }\n\tif($numeroletra == 7){ $devuelve = \"G\"; }\n\tif($numeroletra == 8){ $devuelve = \"H\"; }\n\tif($numeroletra == 9){ $devuelve = \"I\"; }\n\tif($numeroletra == 10){ $devuelve = \"J\"; }\n\tif($numeroletra == 11){ $devuelve = \"K\"; }\n\tif($numeroletra == 12){ $devuelve = \"L\"; }\n\tif($numeroletra == 13){ $devuelve = \"M\"; }\n\tif($numeroletra == 14){ $devuelve = \"N\"; }\n\tif($numeroletra == 15){ $devuelve = \"O\"; }\n\tif($numeroletra == 16){ $devuelve = \"P\"; }\n\tif($numeroletra == 17){ $devuelve = \"Q\"; }\n\tif($numeroletra == 18){ $devuelve = \"R\"; }\n\tif($numeroletra == 19){ $devuelve = \"S\"; }\n\tif($numeroletra == 20){ $devuelve = \"T\"; }\n\tif($numeroletra == 21){ $devuelve = \"U\"; }\n\tif($numeroletra == 22){ $devuelve = \"V\"; }\n\tif($numeroletra == 23){ $devuelve = \"W\"; }\n\tif($numeroletra == 24){ $devuelve = \"X\"; }\n\tif($numeroletra == 25){ $devuelve = \"Y\"; }\n\tif($numeroletra == 26){ $devuelve = \"Z\"; }\n\n\treturn $devuelve;\n}", "title": "" } ]
[ { "docid": "0f1c8e7aa127ce7bf41810e43cd293b9", "score": "0.7481371", "text": "public function fabricaSuco();", "title": "" }, { "docid": "4be80bdb0623f589dcd44e854da30ed9", "score": "0.6843467", "text": "function subtraiAcertaPlacar(){\n\t\t$this->acertosPlacar--;\n\t\t$this->pontosCampeonato-=10;\n\t}", "title": "" }, { "docid": "30ad8b60c5d0ae4ee90147ca0d743b78", "score": "0.67743874", "text": "public function esFeriado();", "title": "" }, { "docid": "30ad8b60c5d0ae4ee90147ca0d743b78", "score": "0.67743874", "text": "public function esFeriado();", "title": "" }, { "docid": "7f6770fb01771e4de4dc4f9cf960cea8", "score": "0.675402", "text": "function desplegar() {\n leerClase('Area');\n leerClase('Sub_area');\n leerClase('Usuario');\n leerClase('Tutor');\n leerClase('Semestre');\n leerClase('Modalidad');\n leerClase('Proyecto');\n leerClase('Institucion');\n leerClase('Estudiante');\n if (!isset($_GET['estudiante_id']) && !is_numeric($_GET['estudiante_id'])) {\n return;\n }\n $estudiante = new Estudiante($_GET['estudiante_id']);\n $proyecto = $estudiante->getProyecto();\n $proyecto->getAllObjects();\n $usuario = new Usuario($estudiante->usuario_id);\n\n\n // TUTORES\n $tutores = '';\n $tutor_responsable = '';\n foreach ($proyecto->proyecto_tutor_objs as $proyecto_tutor) {\n if (! isset($proyecto_tutor->tutor_id) || !$proyecto_tutor->tutor_id ) continue;\n $tutor = new Tutor($proyecto_tutor->tutor_id);\n $tutores .= $tutor->getNombreCompleto().', ';\n if ($tutor_responsable == ''){\n $tutor_responsable = $tutor->getNombreCompleto();\n }\n }\n $tutores = rtrim($tutores,', ');\n\n //exit('todo bien');\n //CARRERA\n $carrera = 'Licenciatura en Ingeniería de Sistemas ';\n $proyecto->trabajo_conjunto = ($proyecto->trabajo_conjunto==Proyecto::TRABAJO_CONJUNTO_SI)?'SI':'NO';\n\n //SEMESTRE ACTIVO @todo get el semestre del proyecto\n $semestre = new Semestre(0,1);\n $cambio_tema = $estudiante->numero_cambio_total?'SI':'NO';\n\n //AREA\n $area = '';\n foreach ($proyecto->proyecto_area_objs as $proyecto_area){\n $area_obj = new Area($proyecto_area->area_id);\n $area .= $area_obj->nombre.'<br>';\n }\n $area = rtrim($area, '<br>');\n\n //Subarea\n $subarea = '';\n\n foreach ($proyecto->proyecto_sub_area_objs as $proyecto_sub_area){\n $subarea_obj = new Sub_area($proyecto_sub_area->sub_area_id);\n $subarea .= $subarea_obj->nombre.'<br>';\n }\n \n //$subarea = rtrim($subarea, '<br>');\n\n //MODALIDAD\n $modalidad = new Modalidad($proyecto->modalidad_id);\n // ESPECIFICOS\n switch (count($proyecto->objetivo_especifico_objs)) {\n case 10:case 9:case 8:case 7:\n $font_esp = '9';\n break;\n case 6:case 5:\n $font_esp = '11';\n break;\n case 4:case 3:case 2:case 1:\n $font_esp = '12';\n break;\n default:\n $font_esp = '8';\n break;\n }\n //DESCRIPCION\n if (strlen($proyecto->descripcion)>1000){\n $font_des = '8';\n }elseif (strlen($proyecto->descripcion)>750){\n $font_des = '9';\n }elseif (strlen($proyecto->descripcion)>500){\n $font_des = '10';\n }elseif (strlen($proyecto->descripcion)>500){\n $font_des = '11';\n }else{\n $font_des = '12';\n }\n\n if(isset($_GET['test'])){\n var_dump($usuario);\n var_dump($estudiante);\n var_dump($proyecto);\n exit();\n }\n\n $formulario = <<<FORMULARIO\n<p lang=\"es-ES\" style=\"text-align:right;width:600;\"></p>\n<table lang=\"es-ES\" width=\"700\" cellpadding=\"3\" cellspacing=\"0\" style=\"page-break-before: always\">\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" colspan=\"2\" style=\"text-align:right;\">\n\t\t\t<b>SELLO</b>\n\t\t</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\">Nombre estudiante:</td>\n\t\t<td width=\"23%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\">{$usuario->apellido_paterno}</td>\n\t\t<td width=\"23%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: none; border-right: none;\">{$usuario->apellido_materno}</td>\n\t\t<td width=\"24%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: none; border-right: none;\">{$usuario->nombre}</td>\n\t\t<td width=\"10%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-left: none;\">\n\t\t\tNo. {$proyecto->numero_asignado}\n\t\t</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"></td>\n\t\t<td width=\"23%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Ap. Paterno</b></td>\n\t\t<td width=\"23%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Ap. Materno</b></td>\n\t\t<td width=\"34%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Nombres</b></td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"43%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Teléfono:</b> {$usuario->telefono}</td>\n\t\t<td width=\"57%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>E-mail:</b> {$usuario->email}</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Tutores:</b><span style=\"font-size:$font_esp;\">{$tutores}</span></td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"60%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Carrera:</b> {$carrera}</td>\n\t\t<td width=\"40%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Trabajo Conjunto:</b> {$proyecto->trabajo_conjunto}</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"60%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Gestión de aprobación:</b> {$semestre->codigo}</td>\n\t\t<td width=\"40%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Cambio de tema:</b> {$cambio_tema}</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"\">&nbsp;</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border: 1px solid #000000;\"><b>Título:</b> {$proyecto->nombre}</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"50%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Área:</b> {$area}</td>\n\t\t<td width=\"50%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Subárea:</b><span style=\"font-size:$font_esp;\"> {$subarea}</span></td>\n\t</tr>\nFORMULARIO;\n \n \n if ($modalidad->datos_adicionales){\n $institucion = new Institucion($proyecto->institucion_id);\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"50%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Modalidad:</b> {$modalidad->nombre}</td>\n\t\t<td width=\"50%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Institución participante:</b> {$institucion->nombre}</td>\n\t</tr>\nFORMULARIO;\n \n }\n else{\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border: 1px solid #000000;\"><b>Modalidad:</b> {$modalidad->nombre}</td>\n\t</tr>\nFORMULARIO;\n \n }\n\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border: 1px solid #000000;\"><b>Objetivo general:</b> {$proyecto->objetivo_general}</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border: 1px solid #000000;margin:0;padding:0;\"><b>Objetivos específicos:</b><ul style=\"margin:0;padding:0;font-size:$font_esp;\">\nFORMULARIO;\n\n // OBJETIVOS ESPECIFICOS\n foreach ($proyecto->objetivo_especifico_objs as $especifico){\n $formulario .= <<<FORMULARIO\n<li>{$especifico->descripcion}</li>\nFORMULARIO;\n }\n \n $formulario .= <<<FORMULARIO\n </ul>\n </td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"border: 1px solid #000000;font-size:$font_des;\"><b>Descripción:</b> {$proyecto->descripcion}</td>\n\t</tr>\nFORMULARIO;\n if ($modalidad->datos_adicionales){\n $institucion = new Institucion($proyecto->institucion_id);\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"></td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"></td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"></td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"></td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"></td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"20%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Director de Carrera</td>\n\t\t<td width=\"20%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Docente Materia</td>\n\t\t<td width=\"20%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Tutor</td>\n\t\t<td width=\"20%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Responsable</td>\n\t\t<td width=\"20%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;\">Estudiante</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"20%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$proyecto->director_carrera}</td>\n\t\t<td width=\"20%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$proyecto->docente_materia}</td>\n\t\t<td width=\"20%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$tutor_responsable}</td>\n\t\t<td width=\"20%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$proyecto->responsable}</td>\n\t\t<td width=\"20%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;font-size:9\">{$estudiante->getNombreCompleto()}</td>\n\t</tr>\nFORMULARIO;\n \n }\n else{\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;\"></td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\"></td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;font-size:9\"></td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Director de Carrera</td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Docente Materia</td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: none;text-align:center;\">Tutor</td>\n\t\t<td width=\"25%\" style=\"border-bottom: none; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;\">Estudiante</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$proyecto->director_carrera}</td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$proyecto->docente_materia}</td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: none;text-align:center;font-size:9\">{$tutor_responsable}</td>\n\t\t<td width=\"25%\" style=\"border-bottom: 1px solid #000000; border-top: none; border-left: 1px solid #000000; border-right: 1px solid #000000;text-align:center;font-size:9\">{$estudiante->getNombreCompleto()}</td>\n\t</tr>\nFORMULARIO;\n \n }\n\n $formulario .= <<<FORMULARIO\n\t<tr valign=\"top\">\n\t\t<td width=\"100%\" style=\"\">&nbsp;</td>\n\t</tr>\n\t<tr valign=\"top\">\n\t\t<td width=\"60%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Registrado por:</b>{$proyecto->registrado_por}</td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none;\"><b>Firma:</b></td>\n\t\t<td width=\"20%\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000;\"><b>Fecha:</b>{$proyecto->fecha_registro}</td>\n\t</tr>\n\n</table>\nFORMULARIO;\n return $formulario;\n}", "title": "" }, { "docid": "c14a80ad4ac6b2076f486eae86e26302", "score": "0.67126644", "text": "function Cuerpo($acceso,$id_orden)\n\t{\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_orden where id_orden='$id_orden' LIMIT 1 offset 0\");\n\t\tif($row=row($acceso)){\n\t\t\t$nombre_tipo_orden=utf8_decode(trim($row['nombre_tipo_orden']));\n\t\t\t$nombre_det_orden=utf8_decode(trim($row['nombre_det_orden']));\n\t\t\t$detalle_orden=utf8_decode(trim($row['detalle_orden']));\n\t\t\t$this->Titulo($nombre_tipo_orden);\n\t\t\t$fecha_orden=formatofecha(trim($row['fecha_orden']));\n\t\t\t//$=trim($row['']);\n\t\t\t$nombre_tec=utf8_decode(trim($row['nombre']).\" \".trim($row['apellido']));\n\t\t\t\n\t\t\t$nombre_tipo_orden=utf8_decode(trim($row['nombre_tipo_orden']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']).\" \".trim($row['apellidocli']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedulacli']));\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre_zona,nombre_sector,nombre_calle,numero_casa,telefono,telf_casa,direc_adicional,\n\t\t(select sum(deuda) from vista_deudacli where vista_deudacli.id_contrato='$id_contrato') as deuda\n\t\tFROM vista_contrato where id_contrato='$id_contrato' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\t\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t$deuda=number_format($deuda+0, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t\n\t\t}\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT postel,taps,pto,edificio,\n\t\tFROM contrato where id_contrato='$id_contrato' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t\n\t\t\n\t\t$fecha=date(\"d/m/Y\");\n\t\t$x_izq=10;\n\t\t$x_medio=100;\n\t\t$x_der=150;\n\t\t$this->Ln();\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_izq);\n\t\t$this->Cell(30,6,'FECHA DE EMISION: '.$fecha_orden,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(28,6,'SALDO A LA FECHA: '.$deuda,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_der);\n\t\t$this->Cell(16,6,'CEDULA: '.$cedulacli,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_izq);\n\t\t$this->Cell(15,6,'CLIENTE: '.$nombrecli,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,'CONTRATO: '.$nro_contrato,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_der);\n\t\t$this->Cell(16,6,'TAG NRO: '.$etiqueta,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_izq);\n\t\t$this->Cell(15,5,'DIRECCIÓN:',\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,\"TELEFONO: $telefono / $telf_casa\",\"0\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(10,6,'ZONA: '.$nombre_zona,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,'SECTOR: '.$nombre_sector,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(10,6,'CALLE: '.$nombre_calle,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,'NRO CASA: '.$numero_casa,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(10,6,'EDIFICIO: '.$edificio,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,'NRO PISO: '.$numero_piso,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(10,6,'POSTEL: '.$postel,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(16,6,'TAPS: '.$taps,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_der);\n\t\t$this->Cell(16,6,'PTO: '.$pto,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(20,6,'REFERENCIA: '.$direc_adicional ,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t$this->Cell(25,6,'DETALLE ORDEN: '.$nombre_det_orden,\"0\",0,\"J\");\n\t\t\n\t\t$this->SetFont('arial','',9);\n\t\t$this->SetX($x_medio);\n\t\t$this->Cell(25,6,'COMENTARIO: '.$detalle_orden,\"0\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX($x_izq);\n\t\t$this->SetFont('arial','',9);\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM orden_grupo where id_orden='$id_orden' LIMIT 1 offset 0\");\n\t\tif($row=row($acceso)){\n\t\t\t$id_gt=utf8_decode(trim($row['id_gt']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM grupo_trabajo where id_gt='$id_gt' LIMIT 1 offset 0\");\n\t\tif($row=row($acceso)){\n\t\t\t$nombre_grupo=utf8_decode(trim($row['nombre_grupo']));\n\t\t}\n\t\t$this->Cell(20,6,'ASIGNADA A: '.$nombre_grupo,\"0\",0,\"J\");\n\t\t\n\t\t\n\t\treturn $cad;\n\t}", "title": "" }, { "docid": "4a77b4d24427b4d6812c5aad1b2496d4", "score": "0.6690456", "text": "function Mesa() {\r\n extract($GLOBALS);\r\n \r\n // Variável para decidir se exibe link para a rotina de tesouraria\r\n $w_tesouraria = false;\r\n\r\n // Recupera os dados do cliente\r\n $sql = new db_getCustomerData; $RS_Cliente = $sql->getInstanceOf($dbms,$w_cliente);\r\n\r\n if ($O==\"L\") {\r\n // Verifica se o cliente tem o módulo de telefonia contratado\r\n $sql = new db_getSiwCliModLis; $RS = $sql->getInstanceOf($dbms, $w_cliente, null, null);\r\n foreach($RS as $row) {\r\n if (f($row,'sigla')=='TT') $w_telefonia = f($row,'nome');\r\n if ($_SESSION['INTERNO']=='S') {\r\n if (f($row,'sigla')=='GP') $w_pessoal = f($row,'nome');\r\n if (f($row,'sigla')=='FN') $w_financeiro = f($row,'nome');\r\n if (f($row,'sigla')=='PD') $w_viagem = f($row,'nome');\r\n if (f($row,'sigla')=='CO') $w_compras = f($row,'nome');\r\n }\r\n $w_user[f($row,'sigla')] = false;\r\n }\r\n\r\n // Apenas para usuários internos da organização\r\n if ($_SESSION['INTERNO']=='S') {\r\n // Verifica se há algum indicador com aferição\r\n $sql = new db_getIndicador; $RS_Indicador = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,null,null,null,null,null,'S',null,null,null,null,null,null,null,null,null,'TIPOINDIC');\r\n $RS_Indicador = SortArray($RS_Indicador,'nome','asc');\r\n if (count($RS_Indicador)>0) $w_indicador='S'; else $w_indicador='N';\r\n \r\n // Verifica os módulos que o usuário seja gestor\r\n $sql = new db_getUserModule; $RS = $sql->getInstanceOf($dbms, $w_cliente, $w_usuario);\r\n foreach($RS as $row) {\r\n $w_user[f($row,'sigla')] = true;\r\n }\r\n \r\n if ($w_user['FN']) $w_tesouraria = true;\r\n else {\r\n $sql = new db_getLinkDataUser; $RS = $sql->getInstanceOf($dbms, $w_cliente, $w_usuario, 'TESOURARIA');\r\n if (count($RS)) $w_tesouraria = true;\r\n }\r\n }\r\n }\r\n Cabecalho();\r\n head();\r\n ShowHTML('<meta http-equiv=\"Refresh\" content=\"'.$conRefreshSec.';\">');\r\n if (nvl($w_financeiro,'')!='') {\r\n ScriptOpen('Javascript');\r\n ValidateOpen('Validacao');\r\n Validate('w_codigo','Código lançamento','','1','8','90','1','1');\r\n ValidateClose();\r\n ScriptClose();\r\n }\r\n ShowHTML('</HEAD>');\r\n if (nvl($w_financeiro,'')!='') {\r\n BodyOpen('onLoad=\"document.Form.w_codigo.focus()\";');\r\n } else {\r\n BodyOpen('onLoad=\\'this.focus()\\';'); \r\n }\r\n AbreForm('Form',$w_pagina.'Consulta','POST','return(Validacao(this));',null,$P1,$P2,$P3,null,$TP,$SG,$R,'L');\r\n ShowHTML('<table border=\"0\" width=\"100%\">');\r\n ShowHTML('<tr><td><b><FONT COLOR=\"#000000\"><font size=2>'.$w_TP.'</font></b>');\r\n ShowHTML(' <td align=\"right\" valign=\"top\" NOWRAP>');\r\n \r\n // Se o módulo financeiro estiver habilitado e o usuário for gestor desse módulo, exibe link para a tela de tesouraria\r\n if (nvl($w_financeiro,'')!='' && $_SESSION['DBMS']!=8) {\r\n ShowHTML('Buscar pagamento: <INPUT CLASS=\"sti\" TYPE=\"text\" NAME=\"w_codigo\" size=\"18\" maxlength=\"18\" VALUE=\"\" title=\"Informe o código do pagamento ou recebimento desejado.\">');\r\n ShowHTML('<input type=\"image\" name=\"submit\" src=\"images/Folder/Explorer.gif\" style=\"vertical-align:middle;width:15px;height:15px\" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n \r\n if ($w_tesouraria) {\r\n ShowHTML(' <A HREF=\"mod_fn/tesouraria.php?par=inicial&O=L&TP='.$TP.' - Tesouraria\" title=\"Clique para acessar a tela da tesouraria.\"><img src=\"'.$conImgFin.'\" style=\"vertical-align:middle;width:15px;height:15px\" border=0></a></font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n }\r\n }\r\n \r\n // Se o módulo de pessoal estiver habilitado para o cliente, exibe link para acesso à folha de ponto\r\n if (nvl($w_pessoal,'')!='' && $_SESSION['DBMS']!=8) {\r\n // Verifica se o usuário tem contrato de trabalho \r\n $sql = new db_getGPContrato; $RS1 = $sql->getInstanceOf($dbms,$w_cliente,null,$w_usuario,null,null,null,null,null,null,null,null,null,null);\r\n \r\n // Verifica se é chefe de unidade\r\n $sql = new db_getUserResp; $RS2 = $sql->getInstanceOf($dbms,$w_usuario,null);\r\n \r\n if (count($RS1) || count($RS2)) {\r\n $w_erro = false;\r\n if (count($RS1)) {\r\n //Verifica se os horários da jornada diária foram preenchidos\r\n foreach($RS1 as $row) { $RS1 = $row; break; }\r\n if (nvl(f($row,'entrada_manha'),'')=='' && nvl(f($row,'entrada_tarde'),'')=='' && nvl(f($row,'entrada_noite'),'')=='') {\r\n $w_erro = true;\r\n }\r\n }\r\n \r\n if ($w_erro) {\r\n ShowHTML(' <a HREF=\"javascript:this.status.value;\" onClick=\"alert(\\'Jornada diária não informada no contrato. Entre em contato com os gestores de pessoal!\\');\" title=\"Pendente gestores de pessoal informarem jornada diária de trabalho no contrato.\"><img src=\"'.$conRootSIW.'images/relogio.gif\" style=\"vertical-align:middle;width:15px;height:15px\" border=0></a></font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n } else {\r\n ShowHTML(' <a HREF=\"javascript:this.status.value;\" onClick=\"javascript:window.open(\\''.montaURL_JS($w_dir,'mod_rh/folha.php?par=inicial&O=L&SG=COINICIAL&TP='.$TP.' - Folha de ponto').'\\',\\'Folha\\',\\'toolbar=no,resizable=yes,width=780,height=550,top=20,left=10,scrollbars=yes\\');\" title=\"Clique para acessar a folha de ponto.\"><img src=\"'.$conRootSIW.'images/relogio.gif\" style=\"vertical-align:middle;width:15px;height:15px\" border=0></a></font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n }\r\n }\r\n }\r\n\r\n // Se o georeferenciamento estiver habilitado para o cliente, exibe link para acesso à visualização\r\n if (f($RS_Cliente,'georeferencia')=='S') {\r\n ShowHTML(' <a HREF=\"javascript:this.status.value;\" onClick=\"javascript:window.open(\\''.montaURL_JS($w_dir,'mod_gr/exibe.php?par=inicial&O=L&TP='.$TP.' - Georeferenciamento').'\\',\\'Folha\\',\\'toolbar=no,resizable=yes,width=780,height=550,top=20,left=10,scrollbars=yes\\');\" title=\"Clique para visualizar os mapas georeferenciados.\"><img src=\"'.$conImgGeo.'\" style=\"vertical-align:middle;width:15px;height:15px\" border=0></a></font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n }\r\n\r\n // Link para a tela de alertas\r\n //ShowHTML(' <a href=\"'.$w_pagina.'alerta&O=L&TP='.$TP.' - Alertas\" title=\"Clique para ver alertas de atraso e proximidade da data de conclusão.\"><img src=\"'.$conImgAlLow.'\" style=\"vertical-align:middle;width:15px;height:15px\" border=0></a></font></b>');\r\n\r\n ShowHTML('<tr><td colspan=2><hr>');\r\n ShowHTML('</table>');\r\n ShowHtml('</form>');\r\n ShowHTML('<table border=\"0\" width=\"100%\">');\r\n if ($O==\"L\") {\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor='.$conTableBgColor.' BORDER='.$conTableBorder.' CELLSPACING='.$conTableCellSpacing.' CELLPADDING='.$conTableCellPadding.' BorderColorDark='.$conTableBorderColorDark.' BorderColorLight='.$conTableBorderColorLight.'>');\r\n ShowHTML(' <tr bgcolor='.$conTrBgColor.' align=\"center\">');\r\n if ($_SESSION['INTERNO']=='S') {\r\n ShowHTML(' <td rowspan=2><b>Módulo</td>');\r\n ShowHTML(' <td rowspan=2><b>Serviço</td>');\r\n ShowHTML(' <td colspan=2><b>Em andamento</td>');\r\n ShowHTML(' <tr bgcolor='.$conTrBgColor.' align=\"center\">');\r\n ShowHTML(' <td><b>Consultar</td>');\r\n ShowHTML(' <td><b>Intervir</td>');\r\n } else {\r\n ShowHTML(' <td><b>Módulo</td>');\r\n ShowHTML(' <td><b>Serviço</td>');\r\n ShowHTML(' <td><b>Em andamento</td>');\r\n }\r\n ShowHTML(' </tr>');\r\n\r\n if ($_SESSION['DBMS']!=8) {\r\n $sql = new db_getDeskTop_Recurso; $RS = $sql->getInstanceOf($dbms, $w_cliente, $w_usuario);\r\n foreach ($RS as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\">');\r\n ShowHTML(' <td colspan=2 align=\"right\"><b>'.f($row,'nm_opcao').'&nbsp;&nbsp;&nbsp;&nbsp;</b></td>');\r\n ShowHTML(' <td align=\"right\"><A class=\"HL\" HREF=\"'.f($row,'link').'&R='.$w_pagina.$par.'&O=L&P1='.f($row,'p1').'&P2='.f($row,'p2').'&P3='.f($row,'p3').'&P4='.f($row,'p4').'&TP='.f($row,'nm_opcao').'&SG='.f($row,'sigla').'&p_volta=mesa&p_acesso=T'.montaFiltro('GET').'\">'.f($row,'qt_visao').'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n if (f($row,'qt_gestao')>0) {\r\n ShowHTML(' <td align=\"right\"><A class=\"HL\" HREF=\"'.f($row,'link').'&R='.$w_pagina.$par.'&O=L&P1='.f($row,'p1').'&P2='.f($row,'p2').'&P3='.f($row,'p3').'&P4='.f($row,'p4').'&TP='.f($row,'nm_opcao').'&SG='.f($row,'sigla').'&p_volta=mesa&p_acesso=I'.montaFiltro('GET').'\">'.f($row,'qt_gestao').'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n } else {\r\n ShowHTML(' <td align=\"right\">&nbsp;</td>');\r\n }\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n }\r\n }\r\n\r\n // Verifica se é necessário colocar as ligações telefônicas\r\n if ($w_telefonia>'' && $_SESSION['INTERNO']=='S') {\r\n $sql = new db_getDeskTop_TT; $RS = $sql->getInstanceOf($dbms, $w_usuario);\r\n foreach ($RS as $row) $w_telefonia_qtd=f($row,'existe');\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n if ($w_telefonia_qtd>0) $w_negrito='<b>'; else $w_negrito='';\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\">');\r\n ShowHTML(' <td>'.$w_telefonia.'</td>');\r\n ShowHTML(' <td>Ligações</td>');\r\n if ($_SESSION['INTERNO']=='S') {\r\n ShowHTML(' <td align=\"right\">---&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>');\r\n }\r\n ShowHTML(' <td align=\"right\"><A class=\"HL\" HREF=\"tarifacao.php?par=Informar&R='.$w_pagina.$par.'&O=L&P1=1&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'- Ligações&SG=LIGACAO'.montaFiltro('GET').'\">'.$w_telefonia_qtd.'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n }\r\n\r\n // Monta a mesa de trabalho para os outros serviços do SIW\r\n $sql = new db_getDeskTop; $RS = $sql->getInstanceOf($dbms, $w_cliente, $w_usuario, $w_ano);\r\n $w_nm_modulo='-';\r\n foreach ($RS as $row) {\r\n if ($w_nm_modulo!=f($row,'nm_modulo')) $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n \r\n ShowHTML(' <tr valign=\"top\" bgcolor='.$w_cor.'>');\r\n\r\n // Evita que o nome do módulo seja repetido\r\n if ($w_nm_modulo!=f($row,'nm_modulo')) {\r\n ShowHTML(' <td>'.f($row,'nm_modulo').'</td>');\r\n $w_nm_modulo=f($row,'nm_modulo');\r\n } else {\r\n ShowHTML(' <td>&nbsp;</td>');\r\n }\r\n\r\n ShowHTML(' <td>'.f($row,'nm_servico').'</td>');\r\n if ($_SESSION['INTERNO']=='S') {\r\n ShowHTML(' <td align=\"right\"><A CLASS=\"HL\" HREF=\"'.lower(f($row,'link')).'&O=L&P1=6&P2='.f($row,'p2').'&P3='.f($row,'p3').'&P4='.f($row,'p4').'&TP='.$TP.' - '.f($row,'nm_servico').'&SG='.f($row,'sg_servico').montaFiltro('GET').'\">'.formatNumber(f($row,'qtd_solic'),0).'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n }\r\n if (f($row,'qtd')>0) {\r\n if ($_SESSION['INTERNO']=='S') {\r\n ShowHTML(' <td align=\"right\"><A CLASS=\"HL\" HREF=\"'.lower(f($row,'link')).'&P1=2&P2='.f($row,'p2').'&P3='.f($row,'p3').'&P4='.f($row,'p4').'&TP='.$TP.' - '.f($row,'nm_servico').'&SG='.f($row,'sg_servico').montaFiltro('GET').'\">'.formatNumber(f($row,'qtd'),0).'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n } else {\r\n ShowHTML(' <td align=\"right\"><A CLASS=\"HL\" HREF=\"'.lower(f($row,'link')).'&O=L&P1=6&P2='.f($row,'p2').'&P3='.f($row,'p3').'&P4='.f($row,'p4').'&TP='.$TP.' - '.f($row,'nm_servico').'&SG='.f($row,'sg_servico').montaFiltro('GET').'\">'.formatNumber(f($row,'qtd'),0).'</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');\r\n }\r\n } else {\r\n ShowHTML(' <td align=\"right\">&nbsp;</td>');\r\n }\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n }\r\n\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n flush();\r\n\r\n // Exibe o calendário da organização\r\n include_once($w_dir_volta.'classes/sp/db_getDataEspecial.php');\r\n $sql = new db_getDataEspecial; \r\n for ($i=$w_ano1;$i<=$w_ano3;$i++) {\r\n $RS_Ano[$i] = $sql->getInstanceOf($dbms,$w_cliente,null,$i,'S',null,null,null);\r\n $RS_Ano[$i] = SortArray($RS_Ano[$i],'data_formatada','asc');\r\n }\r\n \r\n $w_datas = array();\r\n\r\n if ($_SESSION['DBMS']!=8) {\r\n // Recupera os dados da unidade de lotação do usuário\r\n include_once($w_dir_volta.'classes/sp/db_getUorgData.php');\r\n $sql = new db_getUorgData; $RS_Unidade = $sql->getInstanceOf($dbms,$_SESSION['LOTACAO']);\r\n \r\n if (nvl($w_compras,'')!='') {\r\n $sql = new db_getLinkData; $RSMenu_Compras = $sql->getInstanceOf($dbms,$w_cliente,'CLLCCAD');\r\n $sql = new db_getSolicCL; $RS_Compras = $sql->getInstanceOf($dbms,f($RSMenu_Compras,'sq_menu'),$w_usuario,'MESA',2,\r\n formataDataEdicao($w_inicio),formataDataEdicao($w_fim),null,null,null,null,null,null,null,null,null, null, null, null, null, \r\n null, null,null, null, null, null, null, null, null, null, null, null, null, null,null,null,null,null,null,null,null,null);\r\n $RS_Compras = SortArray($RS_Compras,'codigo_interno', 'asc');\r\n\r\n // Cria arrays com cada dia do período, definindo o texto e a cor de fundo para exibição no calendário\r\n foreach($RS_Compras as $row) {\r\n if (nvl(f($row,'data_abertura'),'')!='') retornaArrayDias(f($row,'phpdt_data_abertura'), f($row,'phpdt_data_abertura'), $w_datas, f($row,'codigo_interno').': Recebimento propostas'.((date('H:i',f($row,'phpdt_data_abertura'))!='00:00') ? ' ('.date('H:i',f($row,'phpdt_data_abertura')).')' : ''), 'S');\r\n if (nvl(f($row,'envelope_1'),'')!='') retornaArrayDias(f($row,'phpdt_envelope_1'), f($row,'phpdt_envelope_1'), $w_datas, f($row,'codigo_interno').': Abertura envelope 1 '.((date('H:i',f($row,'phpdt_envelope_1'))!='00:00') ? ' ('.date('H:i',f($row,'phpdt_envelope_1')).')' : ''), 'S');\r\n if (nvl(f($row,'envelope_2'),'')!='') retornaArrayDias(f($row,'phpdt_envelope_2'), f($row,'phpdt_envelope_2'), $w_datas, f($row,'codigo_interno').': Abertura envelope 2 '.((date('H:i',f($row,'phpdt_envelope_2'))!='00:00') ? ' ('.date('H:i',f($row,'phpdt_envelope_2')).')' : ''), 'S');\r\n if (nvl(f($row,'envelope_3'),'')!='') retornaArrayDias(f($row,'phpdt_envelope_3'), f($row,'phpdt_envelope_3'), $w_datas, f($row,'codigo_interno').': Abertura envelope 3 '.((date('H:i',f($row,'phpdt_envelope_3'))!='00:00') ? ' ('.date('H:i',f($row,'phpdt_envelope_3')).')' : ''), 'S');\r\n }\r\n reset($RS_Compras);\r\n foreach($RS_Compras as $row) {\r\n if (nvl(f($row,'data_abertura'),'')!='') retornaArrayDias(f($row,'data_abertura'), f($row,'data_abertura'), $w_cores, $conTrBgColorLightBlue2, 'S');\r\n if (nvl(f($row,'envelope_1'),'')!='') retornaArrayDias(f($row,'envelope_1'), f($row,'envelope_1'), $w_cores, $conTrBgColorLightBlue2, 'S');\r\n if (nvl(f($row,'envelope_2'),'')!='') retornaArrayDias(f($row,'envelope_2'), f($row,'envelope_2'), $w_cores, $conTrBgColorLightBlue2, 'S');\r\n if (nvl(f($row,'envelope_3'),'')!='') retornaArrayDias(f($row,'envelope_3'), f($row,'envelope_3'), $w_cores, $conTrBgColorLightBlue2, 'S');\r\n }\r\n }\r\n\r\n if (nvl($w_viagem,'')!='') {\r\n $sql = new db_getLinkData; $RSMenu_Viagem = $sql->getInstanceOf($dbms,$w_cliente,'PDINICIAL');\r\n \r\n // Pendências de prestação de contas\r\n $sql = new db_getSolicList; $RS_Pendencia = $sql->getInstanceOf($dbms,f($RSMenu_Viagem,'sq_menu'),$w_usuario,'PDMESA',4,\r\n null,null,null,null,'S',null,null,null,null,null,null,\r\n null, null, null, null, null, null, null,null, null, null, null, null, null, null, $w_usuario);\r\n $RS_Pendencia = SortArray($RS_Pendencia,'inicio', 'desc', 'fim', 'desc');\r\n \r\n // Viagens no período do calendário da mesa de trabalho\r\n $sql = new db_getSolicList; $RS_Viagem = $sql->getInstanceOf($dbms,f($RSMenu_Viagem,'sq_menu'),$w_usuario,'PDMESA',4,\r\n formataDataEdicao($w_inicio),formataDataEdicao($w_fim),null,null,null,null,null,null,null,null,null,\r\n null, null, null, null, null, null, null,null, null, null, null, null, null, null, $w_usuario);\r\n $RS_Viagem = SortArray($RS_Viagem,'inicio', 'desc', 'fim', 'desc');\r\n\r\n // Cria arrays com cada dia do período, definindo o texto e a cor de fundo para exibição no calendário\r\n foreach($RS_Viagem as $row) {\r\n $w_saida = f($row,'phpdt_saida');\r\n $w_chegada = f($row,'phpdt_chegada');\r\n if (f($row,'concluida')=='S') {\r\n retornaArrayDias(f($row,'phpdt_saida'), f($row,'phpdt_chegada'), $w_datas, 'Viagem a serviço\\r\\nSituação: Finalizada', 'N');\r\n } elseif (f($row,'sg_tramite')=='AE' ||f($row,'sg_tramite')=='EE') {\r\n retornaArrayDias(f($row,'phpdt_saida'), f($row,'phpdt_chegada'), $w_datas, 'Viagem a serviço\\r\\nSituação: Confirmada', 'N');\r\n } else {\r\n retornaArrayDias(f($row,'phpdt_saida'), f($row,'phpdt_chegada'), $w_datas, 'Viagem a serviço\\r\\nSituação: Prevista', 'N');\r\n }\r\n $w_datas[formataDataEdicao($w_saida)]['valor']= str_replace('serviço','serviço (saída às '.date('H:i',$w_saida).'h)',$w_datas[formataDataEdicao($w_saida)]['valor']);\r\n $w_datas[formataDataEdicao($w_chegada)]['valor']= str_replace('serviço','serviço (chegada às '.date('H:i',$w_chegada).'h)',$w_datas[formataDataEdicao($w_chegada)]['valor']);\r\n }\r\n reset($RS_Viagem);\r\n foreach($RS_Viagem as $row) {\r\n $w_saida = f($row,'phpdt_saida');\r\n $w_chegada = f($row,'phpdt_chegada');\r\n retornaArrayDias(f($row,'phpdt_saida'), f($row,'phpdt_chegada'), $w_cores, $conTrBgColorLightRed1, 'N');\r\n if (date('H',$w_saida)>13) $w_cores[formataDataEdicao($w_saida)]['valor'] = $conTrBgColorLightRed2;\r\n if (date('H',$w_chegada)<14) $w_cores[formataDataEdicao($w_chegada)]['valor'] = $conTrBgColorLightRed2;\r\n }\r\n }\r\n\r\n if (nvl($w_pessoal,'')!='') {\r\n $sql = new db_getAfastamento; $RS_Afast = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,null,null,null,formataDataEdicao($w_inicio),formataDataEdicao($w_fim),null,null,null,null);\r\n $RS_Afast = SortArray($RS_Afast,'inicio_data','desc','inicio_periodo','asc','fim_data','desc','inicio_periodo','asc'); \r\n // Cria arrays com cada dia do período, definindo o texto e a cor de fundo para exibição no calendário\r\n foreach($RS_Afast as $row) retornaArrayDias(f($row,'inicio_data'), f($row,'fim_data'), $w_datas, f($row,'nm_tipo_afastamento'), 'S');\r\n foreach($RS_Afast as $row) retornaArrayDias(f($row,'inicio_data'), f($row,'fim_data'), $w_cores, $conTrBgColorLightRed1, 'S');\r\n }\r\n }\r\n \r\n // Verifica a quantidade de colunas a serem exibidas\r\n $w_colunas = 1;\r\n if ($w_indicador=='S' || nvl($w_viagem ,'')!='' || nvl($w_compras ,'')!='' || nvl($w_pessoal,'')!='') $w_colunas += 1;\r\n\r\n // Configura a largura das colunas\r\n switch ($w_colunas) {\r\n case 1: $width = \"100%\"; break;\r\n case 2: $width = \"50%\"; break;\r\n case 3: $width = \"33%\"; break;\r\n case 4: $width = \"25%\"; break;\r\n default: $width = \"100%\";\r\n }\r\n\r\n ShowHTML(' <tr><td colspan=3><p>&nbsp;</p>');\r\n ShowHTML(' <table width=\"100%\" border=\"0\" align=\"center\" CELLSPACING=0 CELLPADDING=0 BorderColorDark='.$conTableBorderColorDark.' BorderColorLight='.$conTableBorderColorLight.'><tr valign=\"top\">');\r\n \r\n // Exibe calendário e suas ocorrências ==============\r\n ShowHTML(' <td width=\"'.$width.'\" align=\"center\"><table border=\"1\" cellpadding=0 cellspacing=0>');\r\n ShowHTML(' <tr><td colspan=3 width=\"100%\"><table width=\"100%\" border=0 cellpadding=0 cellspacing=0><tr>');\r\n ShowHTML(' <td bgcolor=\"'.$conTrBgColor.'\"><A class=\"hl\" HREF=\"'.$w_pagina.$par.'&R='.$w_pagina.$par.'&O='.$O.'&w_mes='.$w_mes1.'&w_ano='.$w_ano1.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.' &SG='.$SG.MontaFiltro('GET').'\"><<<</A>');\r\n ShowHTML(' <td align=\"center\" bgcolor=\"'.$conTrBgColor.'\"><b>Calendário '.f($RS_Cliente,'nome_resumido').' ('.f($RS_Unidade,'nm_cidade').')</td>');\r\n ShowHTML(' <td align=\"right\" bgcolor=\"'.$conTrBgColor.'\"><A class=\"hl\" HREF=\"'.$w_pagina.$par.'&R='.$w_pagina.$par.'&O='.$O.'&w_mes='.$w_mes3.'&w_ano='.$w_ano3.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.' &SG='.$SG.MontaFiltro('GET').'\">>>></A>');\r\n ShowHTML(' </table>');\r\n // Variáveis para controle de exibição do cabeçalho das datas especiais\r\n $w_detalhe1 = false;\r\n $w_detalhe2 = false;\r\n $w_detalhe3 = false;\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.montaCalendario($RS_Ano[$w_ano1],$w_mes1.$w_ano1,$w_datas,$w_cores,$w_detalhe1).' </td>');\r\n ShowHTML(' <td align=\"center\">'.montaCalendario($RS_Ano[$w_ano],$w_mes.$w_ano,$w_datas,$w_cores,$w_detalhe2).' </td>');\r\n ShowHTML(' <td align=\"center\">'.montaCalendario($RS_Ano[$w_ano3],$w_mes3.$w_ano3,$w_datas,$w_cores,$w_detalhe3).' </td>');\r\n \r\n if ($w_detalhe1 || $w_detalhe2 || $w_detalhe3) {\r\n ShowHTML(' <tr><td colspan=3 bgcolor=\"'.$conTrBgColor.'\">');\r\n if ((count($RS_Viagem)>0 && nvl($w_viagem ,'')!='') || (count($RS_Afast)>0 && nvl($w_pessoal,'')!='')) {\r\n ShowHTML(' <b>Observações:<ul>');\r\n ShowHTML(' <li>Clique sobre o dia em destaque para ver detalhes.');\r\n ShowHTML(' <li>A cor vermelha indica ausências de '.$_SESSION['NOME_RESUMIDO'].'.');\r\n ShowHTML(' </ul>');\r\n } else {\r\n ShowHTML(' <b>Clique sobre o dia em destaque para ver detalhes.</b>');\r\n }\r\n }\r\n\r\n // Exibe informações complementares sobre o calendário\r\n ShowHTML(' <tr valign=\"top\" bgcolor=\"'.$conTrBgColor.'\">');\r\n ShowHTML(' <td colspan=3 align=\"center\">');\r\n if ($w_detalhe1 || $w_detalhe2 || $w_detalhe3) {\r\n ShowHTML(' <table width=\"100%\" border=\"0\" cellspacing=1>');\r\n if (count($RS_Ano)==0) {\r\n ShowHTML(' <tr valign=\"top\"><td align=\"center\">&nbsp;');\r\n } else {\r\n ShowHTML(' <tr valign=\"top\"><td align=\"center\"><b>Data<td><b>Ocorrências');\r\n reset($RS_Ano);\r\n for ($i=$w_ano1;$i<=$w_ano3;$i++) {\r\n $RS_Ano_Atual = $RS_Ano[$i];\r\n foreach($RS_Ano_Atual as $row_ano) {\r\n // Exibe apenas as ocorrências do trimestre selecionado\r\n if (f($row_ano,'data_formatada') >= $w_inicio && f($row_ano,'data_formatada') <= $w_fim) {\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.date(d.'/'.m,f($row_ano,'data_formatada')));\r\n ShowHTML(' <td>'.f($row_ano,'nome'));\r\n }\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n // Final da exibição do calendário e suas ocorrências ==============\r\n if ($w_indicador=='S' || nvl($w_viagem ,'')!='' || nvl($w_compras ,'')!='' || nvl($w_pessoal,'')!='') {\r\n ShowHTML(' <td width=\"'.$width.'\" align=\"center\">');\r\n\r\n // Exibição de indicadores que tenham alguma aferição ==============\r\n if ($w_indicador=='S') {\r\n // Recupera o menu da página de indicadorees\r\n ShowHTML(' <table border=0 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n ShowHTML(' <tr><td><b>INDICADORES</b>');\r\n foreach($RS_Indicador as $row) ShowHTML(' <tr><td><A class=\"HL\" HREF=\"mod_pe/indicador.php?par=FramesAfericao&R='.$w_pagina.$par.'&O=L&w_troca=p_indicador&p_tipo_indicador='.f($row,'chave').'&p_pesquisa=livre&p_volta=mesa&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\" title=\"Exibe os indicadores deste tipo.\">'.f($row,'nome').'</a></td></tr>');\r\n ShowHTML(' </table><br>');\r\n }\r\n // Final da exibição de indicadores ================================\r\n\r\n $w_nome_mes1 = upper(mesAno(date('F',toDate('01/'.$w_mes1.'/'.$w_ano1)),'resumido'));\r\n $w_nome_mes3 = upper(mesAno(date('F',toDate('01/'.$w_mes3.'/'.$w_ano3)),'resumido').'/'.$w_ano3);\r\n\r\n // Pendências de prestação de contas de viagens\r\n if (count($RS_Pendencia)>0 && nvl($w_viagem ,'')!='') {\r\n ShowHTML(' <P>');\r\n ShowHTML(' <table border=1 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n ShowHTML(' <tr><td><table border=0 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n ShowHTML(' <tr><td align=\"center\"><b>PENDÊNCIAS DE PRESTAÇÃO DE CONTAS DE VIAGENS</b><br>');\r\n ShowHTML(' <b><font color=\"red\">ATENÇÃO: <u>Preste contas das viagens abaixo e envie para a fase seguinte</u> para evitar bloqueio dos adiantamentos de diárias!</font></b>');\r\n ShowHTML(' <tr><td>');\r\n ShowHTML(' <table width=\"100%\" border=\"1\" cellspacing=0 bgcolor=\"'.$conTrBgColor.'\">');\r\n ShowHTML(' <tr align=\"center\" valign=\"middle\">');\r\n ShowHTML(' <td><b>Início</td>');\r\n ShowHTML(' <td><b>Término</td>');\r\n ShowHTML(' <td><b>Nº</td>');\r\n ShowHTML(' <td><b>Destinos</td>');\r\n ShowHTML(' <td><b>Operação</td>');\r\n reset($RS_Pendencia);\r\n $w_cor = $w_cor=$conTrBgColor;\r\n $i = 0;\r\n foreach($RS_Pendencia as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.Nvl(date(d.'/'.m.', '.H.':'.i,f($row,'phpdt_saida')),'-').'</td>');\r\n ShowHTML(' <td align=\"center\">'.Nvl(date(d.'/'.m.', '.H.':'.i,f($row,'phpdt_chegada')),'-').'</td>');\r\n ShowHTML(' <td nowrap>');\r\n ShowHTML(ExibeImagemSolic(f($row,'sigla'),f($row,'inicio'),f($row,'fim'),f($row,'inicio_real'),f($row,'fim_real'),f($row,'aviso_prox_conc'),f($row,'aviso'),f($row,'sg_tramite'), null));\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.substr(f($RSMenu_Viagem,'link'),0,strpos(f($RSMenu_Viagem,'link'),'=')).'=Visual&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'sq_siw_solicitacao').'&w_tipo=Volta&P1='.f($RSMenu_Viagem,'p1').'&P2='.f($RSMenu_Viagem,'p2').'&P3='.f($RSMenu_Viagem,'p3').'&P4='.f($RSMenu_Viagem,'p4').'&TP='.$TP.'&SG='.f($RSMenu_Viagem,'sigla').MontaFiltro('GET').'\" title=\"Exibe as informações deste registro.\">'.f($row,'codigo_interno').'&nbsp;</a>');\r\n ShowHTML(' <td>'.f($row,'trechos').'&nbsp;</td>');\r\n if (!$i) ShowHTML(' <td rowspan=\"'.count($RS_Pendencia).'\"><A class=\"hl\" HREF=\"'.f($RSMenu_Viagem,'link').'&O=L&p_atraso=S&P1=2&P2='.f($RSMenu_Viagem,'p2').'&P3='.f($RSMenu_Viagem,'p3').'&P4='.f($RSMenu_Viagem,'p4').'&TP='.$TP.'&SG='.f($RSMenu_Viagem,'sigla').MontaFiltro('GET').'\" title=\"Informar os dados da prestação de contas.\">Prestar contas</A>&nbsp</td>');\r\n ShowHTML(' </tr>');\r\n $i++;\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </P>');\r\n }\r\n // Final da exibição das pendências de prestação de contas de viagens\r\n \r\n // Exibição de datas de licitações ==============\r\n if (count($RS_Compras)>0 && nvl($w_compras ,'')!='') {\r\n // Cria array ordenado por data, a partir do cursor\r\n unset($w_array);\r\n foreach($RS_Compras as $row) {\r\n if (nvl(f($row,'data_abertura'),'')!='') {\r\n $w_array[date(Ymd,f($row,'data_abertura')).'-'.f($row,'codigo_interno').'A'] = $row;\r\n $w_array[date(Ymd,f($row,'data_abertura')).'-'.f($row,'codigo_interno').'A']['data'] = f($row,'phpdt_data_abertura');\r\n $w_array[date(Ymd,f($row,'data_abertura')).'-'.f($row,'codigo_interno').'A']['evento'] = 'Receb.prop.';\r\n }\r\n if (nvl(f($row,'envelope_1'),'')!='') {\r\n $w_array[date(Ymd,f($row,'envelope_1')).'-'.f($row,'codigo_interno').'E1'] = $row;\r\n $w_array[date(Ymd,f($row,'envelope_1')).'-'.f($row,'codigo_interno').'E1']['data'] = f($row,'phpdt_envelope_1');\r\n $w_array[date(Ymd,f($row,'envelope_1')).'-'.f($row,'codigo_interno').'E1']['evento'] = 'Abert.env.1';\r\n }\r\n if (nvl(f($row,'envelope_2'),'')!='') {\r\n $w_array[date(Ymd,f($row,'envelope_2')).'-'.f($row,'codigo_interno').'E2'] = $row;\r\n $w_array[date(Ymd,f($row,'envelope_2')).'-'.f($row,'codigo_interno').'E2']['data'] = f($row,'phpdt_envelope_2');\r\n $w_array[date(Ymd,f($row,'envelope_2')).'-'.f($row,'codigo_interno').'E2']['evento'] = 'Abert.env.2';\r\n }\r\n if (nvl(f($row,'envelope_3'),'')!='') {\r\n $w_array[date(Ymd,f($row,'envelope_3')).'-'.f($row,'codigo_interno').'E3'] = $row;\r\n $w_array[date(Ymd,f($row,'envelope_3')).'-'.f($row,'codigo_interno').'E3']['data'] = f($row,'phpdt_envelope_3');\r\n $w_array[date(Ymd,f($row,'envelope_3')).'-'.f($row,'codigo_interno').'E3']['evento'] = 'Abert.env.3';\r\n }\r\n }\r\n\r\n if (count($w_array)) {\r\n // Ordena o array pela data\r\n $w_array = SortArray($w_array,'data','asc','codigo_interno','asc'); \r\n \r\n ShowHTML(' <table border=1 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n ShowHTML(' <tr><td><table border=0 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n if ($w_ano1!=$w_ano3) {\r\n ShowHTML(' <tr><td align=\"center\"><b>LICITAÇÕES ('.$w_nome_mes1.'/'.$w_ano1.' - '.$w_nome_mes3.')</b><br>');\r\n } else {\r\n ShowHTML(' <tr><td align=\"center\"><b>LICITAÇÕES ('.$w_nome_mes1.'-'.$w_nome_mes3.')</b><br>');\r\n }\r\n // Exibe as licitações permitidas ao usuário logado\r\n ShowHTML(' <tr><td>');\r\n ShowHTML(' <table width=\"100%\" border=\"1\" cellspacing=0 bgcolor=\"'.$conTrBgColor.'\">');\r\n ShowHTML(' <tr align=\"center\" valign=\"middle\">');\r\n ShowHTML(' <td><b>Data</td>');\r\n ShowHTML(' <td><b>Evento</td>');\r\n ShowHTML(' <td><b>Número</td>');\r\n ShowHTML(' <td width=\"1\">&nbsp;</td>');\r\n ShowHTML(' <td><b>Vinculação</td>');\r\n ShowHTML(' <td><b>Solicitante</td>');\r\n ShowHTML(' <td><b>Executor</td>');\r\n $w_cor = $w_cor=$conTrBgColor;\r\n // Exibe o array com as datas\r\n foreach($w_array as $row) {\r\n if (nvl(f($row,'data_abertura'),'')!='' || nvl(f($row,'envelope_1'),'')!='' || nvl(f($row,'envelope_2'),'')!='' || nvl(f($row,'envelope_3'),'')!='') {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td nowrap align=\"center\">&nbsp;'.formataDataEdicao(f($row,'data'),5).((date('H:i',f($row,'data'))!='00:00') ? ' '.date('H:i',f($row,'data')) : '').'&nbsp;</td>');\r\n ShowHTML(' <td>'.f($row,'evento').'</td>');\r\n ShowHTML(' <td nowrap width=\"1%\">');\r\n ShowHTML(ExibeImagemSolic(f($row,'sigla'),f($row,'inicio'),f($row,'fim'),f($row,'data_abertura'),f($row,'data_homologacao'),f($row,'aviso_prox_conc'),f($row,'aviso'),f($row,'sg_tramite'), null));\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.substr(f($RSMenu_Compras,'link'),0,strpos(f($RSMenu_Compras,'link'),'=')).'=Visual&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'sq_siw_solicitacao').'&w_tipo=Volta&P1='.f($RSMenu_Compras,'p1').'&P2='.f($RSMenu_Compras,'p2').'&P3='.f($RSMenu_Compras,'p3').'&P4='.f($RSMenu_Compras,'p4').'&TP='.$TP.'&SG='.f($RSMenu_Compras,'sigla').MontaFiltro('GET').'\" title=\"Exibe as informações deste registro.\">'.f($row,'codigo_interno').'&nbsp;</a>');\r\n ShowHTML(' </td>');\r\n ShowHTML(' <td width=\"1\">'.ExibeAnotacao('../',$w_cliente,null,f($row,'sq_siw_solicitacao'),f($row,'codigo_interno')).'</td>');\r\n if ($_SESSION['INTERNO']=='S') {\r\n if ($w_cliente==6881) ShowHTML(' <td>'.f($row,'sg_cc').'</td>');\r\n elseif (Nvl(f($row,'dados_pai'),'')!='') ShowHTML(' <td>'.exibeSolic($w_dir,f($row,'sq_solic_pai'),f($row,'dados_pai')).'</td>');\r\n else ShowHTML(' <td>---</td>');\r\n }\r\n ShowHTML(' <td>&nbsp;'.ExibeUnidade('../',$w_cliente,f($row,'sg_unidade_resp'),f($row,'sq_unidade'),$TP).'&nbsp;</td>');\r\n ShowHTML(' <td>'.Nvl(f($row,'nm_exec'),'---').'</td>');\r\n ShowHTML(' </tr>');\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </table>');\r\n \r\n }\r\n }\r\n // Final da exibição de licitações ================================\r\n \r\n if ((count($RS_Viagem)>0 && nvl($w_viagem ,'')!='') || (count($RS_Afast)>0 && nvl($w_pessoal,'')!='')) {\r\n ShowHTML(' <P>');\r\n ShowHTML(' <table border=1 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n ShowHTML(' <tr><td><table border=0 cellpadding=0 cellspacing=0 width=\"100%\">');\r\n if ($w_ano1!=$w_ano3) {\r\n ShowHTML(' <tr><td align=\"center\"><b>AUSÊNCIAS ('.$w_nome_mes1.'/'.$w_ano1.' - '.$w_nome_mes3.')</b><br>');\r\n } else {\r\n ShowHTML(' <tr><td align=\"center\"><b>AUSÊNCIAS ('.$w_nome_mes1.'-'.$w_nome_mes3.')</b><br>');\r\n }\r\n // Exibe as viagens a serviço do usuário logado\r\n if (count($RS_Viagem)>0 && nvl($w_viagem ,'')!='') {\r\n ShowHTML(' <tr><td>');\r\n ShowHTML(' <b>VIAGENS A SERVIÇO</b>');\r\n ShowHTML(' <table width=\"100%\" border=\"1\" cellspacing=0 bgcolor=\"'.$conTrBgColor.'\">');\r\n ShowHTML(' <tr align=\"center\" valign=\"middle\">');\r\n ShowHTML(' <td><b>Início</td>');\r\n ShowHTML(' <td><b>Término</td>');\r\n ShowHTML(' <td><b>Nº</td>');\r\n ShowHTML(' <td><b>Destinos</td>');\r\n reset($RS_Viagem);\r\n $w_cor = $w_cor=$conTrBgColor;\r\n if (count($RS_Viagem)==0) {\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\"><td colspan=4 align=\"center\"><b>Não foram encontrados registros.');\r\n } else {\r\n foreach($RS_Viagem as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.Nvl(date(d.'/'.m.', '.H.':'.i,f($row,'phpdt_saida')),'-').'</td>');\r\n ShowHTML(' <td align=\"center\">'.Nvl(date(d.'/'.m.', '.H.':'.i,f($row,'phpdt_chegada')),'-').'</td>');\r\n ShowHTML(' <td nowrap>');\r\n ShowHTML(ExibeImagemSolic(f($row,'sigla'),f($row,'inicio'),f($row,'fim'),f($row,'inicio_real'),f($row,'fim_real'),f($row,'aviso_prox_conc'),f($row,'aviso'),f($row,'sg_tramite'), null));\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.substr(f($RSMenu_Viagem,'link'),0,strpos(f($RSMenu_Viagem,'link'),'=')).'=Visual&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'sq_siw_solicitacao').'&w_tipo=Volta&P1='.f($RSMenu_Viagem,'p1').'&P2='.f($RSMenu_Viagem,'p2').'&P3='.f($RSMenu_Viagem,'p3').'&P4='.f($RSMenu_Viagem,'p4').'&TP='.$TP.'&SG='.f($RSMenu_Viagem,'sigla').MontaFiltro('GET').'\" title=\"Exibe as informações deste registro.\">'.f($row,'codigo_interno').'&nbsp;</a>');\r\n ShowHTML(' <td>'.f($row,'trechos').'&nbsp;</td>');\r\n ShowHTML(' </tr>');\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n }\r\n\r\n // Exibe afastamentos do usuário logado\r\n if (count($RS_Afast)>0 && nvl($w_pessoal,'')!='') {\r\n ShowHTML(' <tr><td><br>');\r\n // Mostra os períodos de indisponibilidade\r\n ShowHTML(' <b>AFASTAMENTOS</b>');\r\n ShowHTML(' <table width=\"100%\" border=\"1\" cellspacing=0 bgcolor=\"'.$conTrBgColor.'\">');\r\n ShowHTML(' <tr align=\"center\" valign=\"top\"><td><b>Início<td><b>Término<td><b>Dias<td><b>Tipo');\r\n reset($RS_Afast);\r\n $w_cor = $w_cor=$conTrBgColor;\r\n if (count($RS_Afast)==0) {\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\"><td colspan=6 align=\"center\"><b>Não foram encontrados registros.');\r\n } else {\r\n foreach($RS_Afast as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.date(d.'/'.m,f($row,'inicio_data')).' ('.f($row,'nm_inicio_periodo').')');\r\n ShowHTML(' <td align=\"center\">'.date(d.'/'.m,f($row,'fim_data')).' ('.f($row,'nm_fim_periodo').')');\r\n ShowHTML(' <td align=\"center\">'.crlf2br(f($row,'dias')));\r\n ShowHTML(' <td>'.f($row,'nm_tipo_afastamento'));\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </P>');\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </table>');\r\n } else {\r\n ScriptOpen(\"JavaScript\");\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n }\r\n ShowHTML('</table>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "84a355798afbb7fb82443f993fc0c3ff", "score": "0.65934867", "text": "function gestione_iva($_cosa, $_castiva, $_totiva, $_imponibile, $_spese, $dati, $_datareg)\n{\n global $conn;\n global $IVAMULTI;\n global $ivasis;\n global $dec;\n global $DATAIVA;\n global $_percorso;\n require_once \"motore_anagrafiche.php\";\n\n /* CASTELLETTO DELL'IVA..\n * \tPOSSO VEDERE se all'inerno del castelletto c'è l'aliquota di sistema..\n * di cui inserire l'imponibile delle spese da far la somma.\n * altrimenti devo verificare la presenza dell'aliquota differente dal sistema\n * che è associata la cliente, ed inserire le spese.. \n * A questo punto io devo verificare che il cliente non sia esente come esportatore\n * abituale, perche in questo caso devo togliere all'iva associata del cliente\n * \tl'importo delle spese ed ricalcolarle con l'iva del sistema, e quindi anche \n * esporre sia l'imponibile che l'aliquota di sistema ed anche l'imposta\n * dopo di che si può fare le somme.\n * \n * Mettiamo che ci sia una fornitura con iva al dieci.. di un solo articolo\n * con spedizione a mezzo corriere.. \n * qui bisognerebbe inserire all'interno del castelletto l'aliquota di sistema\n * \tcon il valore delle spese per poi calcolare l'imposta corretta.\n * \n * quindi..\n * primo passo..\n * Verifica se all'interno del castelletto c'è l'iva sistema..\n * SE \n * SI aggiungiamo all'imposnibile le spese nell'iva sistema e passiamo a fare i conti.\n * SE NO\n * Verifichiamo c'è una aliquota associata al cliente..\n * SE NO \n * il cliente non ha aliquota, vuol dire che nel documento che si stà\n * generando ci sono articoli non apparteneti all'iva di sistema, quindi bisogna\n * inserire a mano nell'array del castelletto la riga con aliquota = iva sistema\n * imponibile, ( perche l'imposta la colcoliamo dopo.\n * chiuso\n * SE SI\n * Vuo dire che il cliente ha una forma di esenzione, che poterbbe essere\n * una esenzione totale o parziale, quindi esso poterbbe essere un cliente estero di cui la \n * forma di esenzione è totale oppure un semplice esportatore abituale di cui\n * gli articoli o prestazioni sono esenti iva, ma l'importo delle spese come il trasporto \n * va calcolata l'iva di sistma ed addebitata.\n * - Prendiamo l'iva associata al cliente\n * Domanda l'iva è esennte con causale = 2\n * SI SI\n * Bisogna calcola l'iva delle spese separatamente all'esenzione del cliente\n * quindi inseriamo inseriamo a mano una riga con codice aliquota l'iva sistema (21)\n * ed l'imponibile delle spese, per poi passarla alla funzione di calcolo dell'iva.\n * chiuso\n * SE NO\n * Vuol dire che il cliente è completamente esente dall'iva come un cliente estero\n * e quindi l'imponibile delle spese va inserito in somma all'imponibile degli\n * Articoli venduti.. Quindi va aggiunto all'array con lo stesso codice di appartenenza.\n * e mandato a calcolare alla funzione.\n * chiuso\n * chiuso\n * chiuso\n * \n * \n */\n\n\n //global $_impostaspese;\n //verifichiamo iva di sistema..\n\n if ($_datareg < $DATAIVA)\n {\n $ivasis = $ivasis - 1;\n }\n\n\n if ($_cosa == \"iva_corpo\")\n {\n //programma che mi serve a visualizzare il totale dell'iva sul corpo del programma\n // guardo la gestione dell'iva\n if (($IVAMULTI == \"NO\") AND ( $_totiva != \"0.00\"))\n {\n $_totiva = number_format((($_imponibile * $ivasis) / 100), $dec, '.', '');\n }\n else\n {\n // Visualizzo tatali iva diverse\n while (@list($indice, $valore) = each($_castiva))\n {\n $_aliquota = tabella_aliquota(\"singola_aliquota\", $indice, $_percorso);\n\n $_ivasep = number_format((($valore * $_aliquota) / 100), $dec, '.', '');\n\n echo \"<font size=\\\"2\\\"> Aliq.: <b> $indice </b> - Imponibile: $valore Iva: $_ivasep<br>\";\n $_totiva = $_totiva + $_ivasep;\n }\n }\n $_return = $_totiva;\n }\n elseif ($_cosa == \"iva_documenti\")\n {\n {\n $_totiva = \"\";\n\n // inizio calcolo iva cliente per il corpo dei documenti.\n // verifichiamo se nel castelletto c'è iva sistema..\n\n if ($_castiva[$ivasis] != \"\")\n {\n //visto che qui è diversa da vuoto sommiamo direttamente le proprie spese..\n $_castiva[$ivasis] = $_castiva[$ivasis] + $_spese;\n #echo \"ivasis\";\n }\n else\n {\n\n //cerchiamo se il cliente ha una aliquota associata nell'arrey dati.\n //vedendo se è diverso da vuoto..\n\n if ($dati['iva'] != \"\")\n {\n #echo $dati['iva'];\n // vuo dire che il cliente ha una forma di esenzione..\n // vediamo qual'è\n //prendiamo l'arrey dell'iva\n $dati_iva = tabella_aliquota(\"singola\", $dati['iva'], $_percorso);\n\n //verifichiamo se è esente livello 2\n\n if ($dati_iva['eseniva'] == \"3\")\n {\n //vuol dire che il cliente e un esportatore abituale e quindi \n //bisogna inserire a mano..\n $_castiva[$ivasis] = $_spese;\n\n #echo \"ciao_2\";\n }\n else\n {\n // vuol dire che il cliente è completamente esente dall'iva..\n\n $_castiva[$dati['iva']] = $_castiva[$dati['iva']] + $_spese;\n\n #echo \"ciao_3\";\n }\n }\n else\n {\n // no il cliente non ha nessuna iva associata quindi inseriamo \n //una riga a mano dentro l'array..\n #echo \"ciao\";\n $_castiva[$ivasis] = $_spese;\n }\n }\n\n // ora possiamo passare a processare l'importo..\n // Visualizzo tatali iva diverse\n while (@list($indice, $valore) = each($_castiva))\n {\n if ($indice != \"\")\n {\n //inanzi tutto creiamo un indice..\t\t\n $nr = $nr + 1;\n\n //prendiamoci l'aliquota di riferimento..\n $_aliquota = tabella_aliquota(\"singola_aliquota\", $indice, $_percorso);\n\n //inseriamo l'aliquota nel array..\n $_imponibili[$nr]['aliquota'] = $indice;\n $_imponibili[$nr]['imponibile'] = $valore;\n\n\n if ($indice == $ivasis)\n {\n //mi serve per richiamare l'iva globale all'uscita della funzione.\n $_imponibili['numero'] = $nr;\n }\n\n //calcoliamo l'va\n $_ivasep = number_format((($valore * $_aliquota) / 100), $dec, '.', '');\n //inseriamo ..\t\t\n $_imponibili[$nr]['imposta'] = $_ivasep;\n\n #echo $_ivasep;\n //somma di riporto\n $_totiva = $_totiva + $_ivasep;\n $_totimpo = $_totimpo + $valore;\n\n if ($indice == $ivasis)\n {\n //se l'iva è uguale all'iva del sistema inseriesco le spese..\n\n $_imponibili[$nr]['imposta'] = $_imponibili[$nr]['imposta'] + $_impostaspese;\n }\n }\n }\n\n $_imponibili['totimpo'] = $_totimpo;\n $_imponibili['totiva'] = $_totiva;\n\n $_return = $_imponibili;\n }\n }\n else// iva fatture\n {\n $_totiva = \"\";\n\n // inizio calcolo iva cliente per il corpo dei documenti.\n // verifichiamo se nel castelletto c'è iva sistema..\n\n if ($_castiva[$ivasis] != \"\")\n {\n //visto che qui è diversa da vuoto sommiamo direttamente le proprie spese..\n $_castiva[$ivasis] = $_castiva[$ivasis] + $_spese;\n #echo \"ivasis\";\n }\n else\n {\n\n //cerchiamo se il cliente ha una aliquota associata nell'arrey dati.\n //vedendo se è diverso da vuoto..\n\n if ($dati['iva'] != \"\")\n {\n #echo $dati['iva'];\n // vuo dire che il cliente ha una forma di esenzione..\n // vediamo qual'è\n //prendiamo l'arrey dell'iva\n $dati_iva = tabella_aliquota(\"singola\", $dati['iva'], $_percorso);\n\n //verifichiamo se è esente livello 2\n\n if ($dati_iva['eseniva'] == \"3\")\n {\n //vuol dire che il cliente e un esportatore abituale e quindi \n //bisogna inserire a mano..\n $_castiva[$ivasis] = $_spese;\n\n #echo \"ciao_2\";\n }\n else\n {\n // vuol dire che il cliente è completamente esente dall'iva..\n\n $_castiva[$dati['iva']] = $_castiva[$dati['iva']] + $_spese;\n\n #echo \"ciao_3\";\n }\n }\n else\n {\n // no il cliente non ha nessuna iva associata quindi inseriamo \n //una riga a mano dentro l'array..\n #echo \"ciao\";\n $_castiva[$ivasis] = $_spese;\n }\n }\n\n // ora possiamo passare a processare l'importo..\n // Visualizzo tatali iva diverse\n while (@list($indice, $valore) = each($_castiva))\n {\n if ($indice != \"\")\n {\n //inanzi tutto creiamo un indice..\t\t\n $nr = $nr + 1;\n\n //prendiamoci l'aliquota di riferimento..\n $_aliquota = tabella_aliquota(\"singola_aliquota\", $indice, $_percorso);\n\n //inseriamo l'aliquota nel array..\n $_imponibili[$nr]['aliquota'] = $indice;\n $_imponibili[$nr]['imponibile'] = $valore;\n\n\n if ($indice == $ivasis)\n {\n //mi serve per richiamare l'iva globale all'uscita della funzione.\n $_imponibili['numero'] = $nr;\n }\n\n //calcoliamo l'va\n $_ivasep = number_format((($valore * $_aliquota) / 100), $dec, '.', '');\n //inseriamo ..\t\t\n $_imponibili[$nr]['imposta'] = $_ivasep;\n\n #echo $_ivasep;\n //somma di riporto\n $_totiva = $_totiva + $_ivasep;\n $_totimpo = $_totimpo + $valore;\n\n if ($indice == $ivasis)\n {\n //se l'iva è uguale all'iva del sistema inseriesco le spese..\n\n $_imponibili[$nr]['imposta'] = $_imponibili[$nr]['imposta'] + $_impostaspese;\n }\n }\n }\n\n $_imponibili['totimpo'] = $_totimpo;\n $_imponibili['totiva'] = $_totiva;\n\n $_return = $_imponibili;\n }\n\n return $_return;\n}", "title": "" }, { "docid": "f858a2df404d4621d4fa7b868aef9069", "score": "0.6561755", "text": "function subtraiAcertaPlacarInvertido(){\n\t\t$this->acertosPlacarInvertido--;\n\t\t$this->pontosCampeonato-=2;\n\t}", "title": "" }, { "docid": "b621b2144f7d36367889d1078864c8d5", "score": "0.6477533", "text": "function lapso_mes_novedad($mes, $idestudiantegeneral, $objetobase, $nombrecorto, $fechainicio, $fechafinal) {\n $fechainiciomes = \"01/\" . $mes;\n $fechafinalmes = final_mes_fecha(\"01/\" . $mes);\n //if($datos_novedad=datos_novedad_vigente($mes,$idestudiantegeneral,$objetobase,$nombrecorto)){\n $fechainicionovedad = formato_fecha_defecto($fechainicio);\n $fechafinalnovedad = formato_fecha_defecto($fechafinal);\n\n if ($nombrecorto == 'REA' || $nombrecorto == 'RET')\n if ($fechainicionovedad == $fechafinalmes) {\n $diafinal = (($fechainicionovedad[0] . $fechainicionovedad[1]) + 1);\n $vectorfechafinal = vector_fecha($fechainicionovedad);\n //echo \"ENTRO PAPA:\";\n $fechainicionovedad = $diafinal . \"/\" . $vectorfechafinal[\"mes\"] . \"/\" . $vectorfechafinal[\"anio\"];\n //echo \"<br>\";\n }\n//echo \"diferencia_fechas($fechainiciomes, $fechainicionovedad, 'dias', 0);<br>\";\n $dias_diferencia_inicio = diferencia_fechas($fechainiciomes, $fechainicionovedad, \"dias\", 0);\n if ($dias_diferencia_inicio <= 0) {\n $lapso['inicio'] = $fechainiciomes;\n } else {\n $lapso['inicio'] = $fechainicionovedad;\n }\n\n $aniofinalnovedad=$fechafinalnovedad[6].$fechafinalnovedad[7].$fechafinalnovedad[8].$fechafinalnovedad[9];\n // echo \"diferencia_fechas($fechafinalnovedad, $fechafinalmes, 'dias', 0); $aniofinalnovedad<br>\";\n \n $dias_diferencia_final = diferencia_fechas($fechafinalnovedad, $fechafinalmes, \"dias\", 0);\n //echo \"---\".$dias_diferencia_final.\"----\";\n \n if (($dias_diferencia_final <= 0) || ($aniofinalnovedad == '2099')) {\n $lapso['final'] = $fechafinalmes;\n } else {\n $lapso['final'] = $fechafinalnovedad;\n }\n //echo $nombrecorto.\"--\";\n //}\n return $lapso;\n}", "title": "" }, { "docid": "70e8f0238bac18d919e8bc6a28e91fa8", "score": "0.64568686", "text": "public function compras()\n {\n }", "title": "" }, { "docid": "6f91cae9e5d5b223a809bb8337f95331", "score": "0.64484155", "text": "function TraerAcumulados(){\r\n $this->procedimiento = 'vef.ft_traer_acumulados_ime';\r\n $this->transaccion = 'VF_TRAER_ACUMUL_IME';\r\n $this->tipo_procedimiento = 'IME';//tipo de transaccion\r\n\r\n $this->setParametro('comisionistas_traer', 'comisionistas_traer', 'varchar');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n //echo($this->consulta); exit;\r\n $this->ejecutarConsulta();\r\n //var_dump(\"aqui repuesta\",$this->respuesta);\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "bd8ce521ba4ceac28a442b2da8a68e88", "score": "0.6414367", "text": "function SubValLetra($numero) \n{\n $Ptr=\"\";\n $n=0;\n $i=0;\n $x =\"\";\n $Rtn =\"\";\n $Tem =\"\";\n\n $x = trim(\"$numero\");\n $n = strlen($x);\n\n $Tem = $this->Void;\n $i = $n;\n \n while( $i > 0)\n {\n $Tem = $this->Parte(intval(substr($x, $n - $i, 1). \n str_repeat($this->Zero, $i - 1 )));\n If( $Tem != \"Cero\" )\n $Rtn .= $Tem . $this->SP;\n $i = $i - 1;\n }\n\n \n //--------------------- GoSub FiltroMil ------------------------------\n $Rtn=str_replace(\" Mil Mil\", \" Un Mil\", $Rtn );\n while(1)\n {\n $Ptr = strpos($Rtn, \"Mil \"); \n If(!($Ptr===false))\n {\n If(! (strpos($Rtn, \"Mil \",$Ptr + 1) === false ))\n $this->ReplaceStringFrom($Rtn, \"Mil \", \"\", $Ptr);\n Else\n break;\n }\n else break;\n }\n\n //--------------------- GoSub FiltroCiento ------------------------------\n $Ptr = -1;\n do{\n $Ptr = strpos($Rtn, \"Cien \", $Ptr+1);\n if(!($Ptr===false))\n {\n $Tem = substr($Rtn, $Ptr + 5 ,1);\n if( $Tem == \"M\" || $Tem == $this->Void)\n ;\n else \n $this->ReplaceStringFrom($Rtn, \"Cien\", \"Ciento\", $Ptr);\n }\n }while(!($Ptr === false));\n\n //--------------------- FiltroEspeciales ------------------------------\n $Rtn=str_replace(\"Diez Un\", \"Once\", $Rtn );\n $Rtn=str_replace(\"Diez Dos\", \"Doce\", $Rtn );\n $Rtn=str_replace(\"Diez Tres\", \"Trece\", $Rtn );\n $Rtn=str_replace(\"Diez Cuatro\", \"Catorce\", $Rtn );\n $Rtn=str_replace(\"Diez Cinco\", \"Quince\", $Rtn );\n $Rtn=str_replace(\"Diez Seis\", \"Dieciseis\", $Rtn );\n $Rtn=str_replace(\"Diez Siete\", \"Diecisiete\", $Rtn );\n $Rtn=str_replace(\"Diez Ocho\", \"Dieciocho\", $Rtn );\n $Rtn=str_replace(\"Diez Nueve\", \"Diecinueve\", $Rtn );\n $Rtn=str_replace(\"Veinte Un\", \"Veintiun\", $Rtn );\n $Rtn=str_replace(\"Veinte Dos\", \"Veintidos\", $Rtn );\n $Rtn=str_replace(\"Veinte Tres\", \"Veintitres\", $Rtn );\n $Rtn=str_replace(\"Veinte Cuatro\", \"Veinticuatro\", $Rtn );\n $Rtn=str_replace(\"Veinte Cinco\", \"Veinticinco\", $Rtn );\n $Rtn=str_replace(\"Veinte Seis\", \"Veintiseís\", $Rtn );\n $Rtn=str_replace(\"Veinte Siete\", \"Veintisiete\", $Rtn );\n $Rtn=str_replace(\"Veinte Ocho\", \"Veintiocho\", $Rtn );\n $Rtn=str_replace(\"Veinte Nueve\", \"Veintinueve\", $Rtn );\n\n //--------------------- FiltroUn ------------------------------\n If(substr($Rtn,0,1) == \"M\") $Rtn = \"Un \" . $Rtn;\n //--------------------- Adicionar Y ------------------------------\n for($i=65; $i<=88; $i++)\n {\n If($i != 77)\n $Rtn=str_replace(\"a \" . Chr($i), \"* y \" . Chr($i), $Rtn);\n }\n $Rtn=str_replace(\"*\", \"a\" , $Rtn);\n return($Rtn);\n}", "title": "" }, { "docid": "a4e2d76d31387e8b9b96cc0ba031879b", "score": "0.63984776", "text": "function control_pago($nua,$nombre,$carrera,$semestre,$correo,$fecha,$motivo){ //funcion para pasar los parametros al modelo\n $objeto=new modelo_pago(); //Objeto de la clase modelo_pago\n $resul=$objeto->ingresardatos($nua,$nombre,$carrera,$semestre,$correo,$fecha,$motivo);//llamada a la funcion ingresar datos\n if($resul==1){// compara el resultado de la consulta a la base de dato\n $datos=1;\n return $datos;\n }else{\n $datos=0;\n return $datos;\n }\n \n}", "title": "" }, { "docid": "4e5f893317c4e64b4ad2e71b84691bec", "score": "0.6394989", "text": "public function pensar()\n {\n }", "title": "" }, { "docid": "72a616e57b982f72696fc2d6fd95a344", "score": "0.6394137", "text": "function alta_texto($parametros)\n\n/*-------------------------------------------------------------------------------------------------\n Funcion de alta de texto.\n\n ENT: $parametros: Lista de los parametros. Por orden, son: \n\t $h_title - titulo del texto\n\t $edition_stmt - formato del texto\n\t $f_bytes - numero de bytes que ocupa el fichero con el texto\n\t $lang_usage - idioma\n\t $id_tipo - tipo del texto\n\t $id_campo - campo del texto\n\t $f_temp - descriptor del fichero con el texto\n\t $texto_relacionado - texto existente y relacionado con el nuevo texto\n\t $fuente_relacionada - fuente existente que se relaciona con el texto\n \t$fuente_id_fuente - isbn de la nueva fuente \n \t$fuente_edition - tipo de fuente\n \t$fuente_h_title - titulo de la nueva fuente\n \t$fuente_h_author - autor de la nueva fuente\n \t$fuente_pub_place - luegar de publicacion de la nueva fuente\n \t$fuente_publisher - editor de la nueva fuente\n \t$pub_date - fecha de edicion de la nueva fuente\n SAL: -\n-------------------------------------------------------------------------------------------------*/\n\n{\n // Conexion con la base de datos\n include (\"../../comun/conexion.php\");\n \n if(isset($_GET['lg']))\n\t{\n\t\t$lg = $_GET['lg'];\n\t\t$_SESSION['lg'] = $lg;\n\t\tinclude (\"../../idioma/\".$lg.\".php\");\n\t}\n\telse if(isset($_SESSION['lg']))\n\t{\n\t\t$lg = $_SESSION['lg'];\n\t\tinclude (\"../../idioma/\".$lg.\".php\");\n\t}\n\n // Miramos si existe la fuente, en cuyo caso se crea.\n if ($parametros[8] == \"\") {\n\t\t// Consulta a la base de datos\n\t\t$consulta = \"SELECT id_fuente FROM fuente WHERE id_fuente = '$parametros[9]'\";\n\t\t$res = mysql_query($consulta) or die($lectura_fuente_incorrecta);\n\n\t\tif(mysql_num_rows($res) != 0)\n\t\t{\n\t\t\techo \"<p class=\\\"Alerta\\\"><img border=\\\"0\\\" src=\\\"../../imagenes/alerta2.gif\\\"><br>\".$fuente_ya_existe.\"<br><br>\";\n\t\t\techo $no_creacion_fuente.\"<br><b>$parametros[9]</b></p>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$consulta = \"INSERT INTO fuente (id_fuente, edition, h_title, h_author, pub_place, publisher, pub_date) VALUES (\";\n\t\t\t$consulta .= \"'$parametros[10]', '$parametros[9]', '$parametros[11]', '$parametros[12]', '$parametros[13]', '$parametros[14]'\";\n\t\t\t$consulta .= \", '$parametros[15]')\";\n\t\t\t\n\t\t\t$resultado = mysql_query($consulta) or die($no_creacion_fuente . mysql_error());\n\t\t\talta_historico (\"alta\", $_SESSION['username'], \"fuente\", \"ISBN/ISSN: \".$parametros[10].\"<br>Tipo: \".$parametros[9].\"<br>T&iacute;tulo: \".$parametros[11].\"<br>Autor: \".$parametros[12].\n\t\t\t\"<br>Lugar/URL: \".$parametros[13].\"<br>Editorial/N&ordm; Revista: \".$parametros[14].\"<br>Fecha: \".$parametros[15]);\n\t\t\t\n\t\t\t$id_fuente = $parametros[10]; \n\t\t}\n } else {\n \t\t$id_fuente = $parametros[8];\n }\n \n \n $consulta = \"INSERT INTO texto (h_title, edition_stmt, word_count, byte_count, lang_usage, id_tipo, id_campo, id_fuente, fecha_alta,\";\n $consulta .= \"usuario_alta, texto_relacionado) VALUES ('$parametros[0]', '$parametros[1]', 0, '$parametros[2]', '$parametros[3]', '\";\n $consulta .= \"$parametros[4]', '$parametros[5]', '$id_fuente',now(),'\".$_SESSION['username'].\"','$parametros[7]')\";\n \n $res = mysql_query($consulta) or die($no_creacion_tipo_texto . mysql_error());\n\n /* Se obtiene el identificador del texto */\n $consulta = \"SELECT MAX(id_texto) FROM texto\";\n $codigo = mysql_query($consulta) or die ($maximo_fallo);\n $nombre_fichero = mysql_result($codigo,0);\n\n alta_historico (\"alta\", $_SESSION['username'], \"texto\", \"Identificador:\".$nombre_fichero.\"<br>T&iacute;tulo: \".$parametros[0].\"<br>Formato: \".$parametros[1].\"<br>Num Palabras: 0<br>Idioma: \".$parametros[2].\"<br>Tipo: \".$parametros[3].\n \"<br>Campo: \".$parametros[4].\"<br>Fuente: \".$id_fuente.\"<br>Texto relacionado:\".$parametros[7]);\n\necho \"<p class=\\\"Resultado\\\"><img border=\\\"0\\\" src=\\\"../../imagenes/info.gif\\\"><br>\".$el_texto.\"<br><b>$parametros[0] </b><br>\".$mensaje47.\"<br><b>\" . $_SESSION['username'] . \"</b></p>\";\n $body = \"\"; // -> cuerpo del texto que se almacena en una tabla de la BD\n \n if($parametros[1] == 'html') // Contar palabras, formato HTML\n {\n $fd = fopen($parametros[6],\"r\");\n $num_palabras = 0;\n $ini_body = 0; // Se activa cuando se encuentra la etiqueta <body>\n $fin_body = 0; // Se activa cuando se ha leido completamente la etiqueta <body>\n $etiq_abierta = 0;\n while($linea = fgets($fd, 1024))\n {\n $longitud = strlen($linea); \n for($i = 0; $i < $longitud; $i++)\n {\n $c = $linea[$i];\n if(!$fin_body) //-- Localizacion de la etiqueta <body>\n {\n if($ini_body)\n {\n if($c == '>'){ $fin_body = 1; }\n }\n else\n {\n if( ($c == '<') && ($linea[$i+1] == 'b' || $linea[$i+1] == 'B') ){ $ini_body = 1; }\n }\n }\n else //-- Contar palabras del texto\n {\n if($etiq_abierta) // Se esta leyendo una etiqueta\n {\n if($c == '>')\n {\n $etiq_abierta = 0;\n }\n }\n else // Se esta leyendo texto\n {\n if($c == '<')\n {\n $etiq_abierta = 1;\n }\n else\n {\n if(esCaracterSeparador($linea[$i]))\n {\n if($hay_palabra)\n {\n $num_palabras ++;\n $hay_palabra = 0;\n }\n }\n else\n {\n $hay_palabra = 1;\n }\n $body .= $c;//$linea[$i];\n }\n }\n }\n }\n }\n fclose($fd);\n } \n else\n //if($edition_stmt == 'texto') // Contar palabras, formato Texto\n {\n $fd = fopen($parametros[6],\"r\");\n $num_palabras = 0;\n $hay_palabra = 0;\n while($linea = fgets($fd, 1024))\n {\n $longitud = strlen($linea);\n for($i = 0; $i < $longitud; $i++)\n {\n if(esCaracterSeparador($linea[$i]))\n {\n if($hay_palabra)\n {\n $num_palabras ++;\n $hay_palabra = 0;\n }\n }\n else\n {\n $hay_palabra = 1;\n }\n $body .= $linea[$i];\n }\n }\n $num_palabras++; // La ultima palabra no se cuenta porque el fin de fichero no se cuenta como\n\t\t // caracter separador => incrementamos $num_palabras\n fclose($fd);\n }\n\n // Actualizar numero de palabras\n $body = str_replace(\"'\",\"''\",$body);\n $consulta = \"UPDATE texto SET word_count='$num_palabras', body='$body', fecha_modificacion=now(), usuario_modificacion='\".$_SESSION['username'].\"' WHERE id_texto = '$nombre_fichero'\";\n $resultado = mysql_query($consulta) or die($modificacion_fallo . mysql_error() ); \n alta_historico (\"modificar\", $_SESSION['username'], \"texto\", \"Identificador:\".$nombre_fichero.\"<br>Num Palabras: \".$num_palabras);\n mysql_close($enlace);\n\n unlink($parametros[6]);\n\n /* Creacion de la lista de palabras */\n listaPalabras($nombre_fichero, $body, $parametros[1], $parametros[3]);\n\n /* Creacion de nuevos contextos para terminos del glosario */\n $vector = extraerElementos($body);\n \n // Conexion con la base de datos \n include (\"../../comun/conexion.php\");\n\n $i = 0;\n foreach($vector as $x)\n {\n $mx = convertirMinusculas($x);\n\n $consulta= \"SELECT id_glosario FROM glosario WHERE (id_glosario='$mx' OR termino_plural='$mx')\";\n $resultado = mysql_query($consulta);\n\n if (mysql_num_rows($resultado) != 0) \n {\n $obj = mysql_fetch_object($resultado);\n\n // Se reemplazan las comillas simples ya que producen fallos en el sql.\n $contexto = str_replace(\"'\",\"''\",crearContexto($vector, $i));\n\n $consulta = \"INSERT INTO contexto (contexto, id_texto, id_glosario,fecha_alta,usuario_alta) VALUES ('$contexto', '$nombre_fichero', '$obj->id_glosario',now(),'\".$_SESSION['username'].\"')\";\n $res = mysql_query($consulta) or die($no_creacion_contexto. $consulta);\n\n alta_historico (\"alta\", $_SESSION['username'], \"contexto\", \"Identificador texto: \".$nombre_fichero.\"<br>T&eacute;rmino: \".$obj->id_glosario.\"<br>Contexto: \".$contexto);\n // Incrementar el numero de ocurrencias del termino \n $consulta = \"SELECT termino,ocurrencias FROM glosario WHERE (termino='$mx' OR termino_plural='$mx')\";\n $res = mysql_query($consulta);\n\n $obj = mysql_fetch_object($res);\n $ocurrencias = $obj->ocurrencias;\n $ocurrencias++;\n\n $consulta = \"UPDATE glosario SET ocurrencias='$ocurrencias' WHERE id_termino='$obj->termino'\"; \n $res = mysql_query($consulta);\n }\n $i++;\n }\n\n mysql_close($enlace);\n\n echo \"<p align=\\\"center\\\"><input type=\\\"button\\\" class=\\\"boton long_93 boton_aceptar\\\" value=\\\" \".$boton_aceptar.\" \\\" onclick=\\\"document.location='menu_admin_textos.php';\\\" /></p>\";\n}", "title": "" }, { "docid": "fdf963d12ba7b9a50958873fd3fc1150", "score": "0.63806564", "text": "function prezzi_cliente($_cosa, $_utente, $_articolo, $_nlv, $_parametri)\n{\n\n global $conn;\n global $_percorso;\n global $dec;\n\n $result = tabella_prezzi_cliente(\"singola\", $_utente, $_articolo, $_parametri);\n\n if ($result['presenza'] != \"NO\")\n {\n $_descrizione = $result['descrizione'];\n $_listino = $result['listino'];\n\n // AVVISO CHE UTILIZZO IL PREZZO NETTO TROVATO\n $_messaggio = \"<font color=yellow>ATTENZIONE PREZZO NETTO PERSONALIZZATO DEL CLIENTE</font>\";\n\n\n $_descrizione = $result['descrizione'];\n $_listino = $result['listino'];\n $_sca = \"\";\n $_scb = \"\";\n $_scc = \"\";\n }\n else\n {\n// ecco se non trovo niente\n// ASSOCIO IL LISTINO CLIENTE AL PREZZO\n// SE TROVO IL LISTINO ASSOCIATO AL CLIENTE AVVISO!\n\n $result = tabella_listini(\"singola\", $_articolo, $_nlv, $_parametri);\n\n //vediamo se ha trovato il listino\n if ($result['presenza'] != \"NO\")\n {\n\n $_listino = $result['listino'];\n // Opzione ripristino sconti automatica\n $_sca = $_parametri['scontocli'];\n $_scb = $_parametri['scontocli2'];\n $_scc = $_parametri['scontocli3'];\n\n if ($_sca == \"0.00\")\n {\n $_sca = \"\";\n }\n if ($_scb == \"0.00\")\n {\n $_scb = \"\";\n }\n if ($_scc == \"0.00\")\n {\n $_scc = \"\";\n }\n }\n else\n {\n $result = tabella_listini(\"singola\", $_articolo, \"1\", $_parametri);\n\n //vediamo se ha trovato il listino\n\n if ($result['presenza'] != \"NO\")\n {\n $_messaggio = \"<h3>ATTENZIONE! PREZZO LISTINO ASSOCIATO MANCANTE o PREZZO NON TROVATO !!! <BR> IN USO IL LISTINO 1!</h3>\";\n\n $_listino = $result['listino'];\n // Opzione ripristino sconti automatica\n $_sca = $_parametri['scontocli'];\n $_scb = $_parametri['scontocli2'];\n $_scc = $_parametri['scontocli3'];\n\n if ($_sca == \"0.00\")\n {\n $_sca = \"\";\n }\n if ($_scb == \"0.00\")\n {\n $_scb = \"\";\n }\n if ($_scc == \"0.00\")\n {\n $_scc = \"\";\n }\n }\n }\n }\n\n //in caso che l'articolo abbia l'esenzione allo sconto\n //'\n //'\n if ($_esco == \"SI\")\n {\n $_sca = \"\";\n $_scb = \"\";\n $_scc = \"\";\n $_messaggio = \"<font color=blue>ATTENZIONE Articolo esente sconti</font>\";\n }\n\n $return['descrizione'] = $_descrizione;\n $return['listino'] = $_listino;\n $return['sca'] = $_sca;\n $return['scb'] = $_scb;\n $return['scc'] = $_scc;\n $return['messaggio'] = $_messaggio;\n\n\n return $return;\n}", "title": "" }, { "docid": "acec52586b86249cb2480db0c9f2b45f", "score": "0.6375657", "text": "public function lucesTechoPasilloBajar( ) {\n $this->luces->bajarLucesTechoPasillo();\n AccesoGui::$guiLuces->luzTechoPasilloNivel();\n }", "title": "" }, { "docid": "b1878da2a4a21c3118b7ea5a8cd75dcb", "score": "0.6364388", "text": "function OutraParte() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n if ($O=='') $O='P';\r\n $w_erro='';\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_chave_aux = $_REQUEST['w_chave_aux'];\r\n $w_cpf = $_REQUEST['w_cpf'];\r\n $w_cnpj = $_REQUEST['w_cnpj'];\r\n $w_sq_pessoa = $_REQUEST['w_sq_pessoa'];\r\n $w_pessoa_atual = $_REQUEST['w_pessoa_atual'];\r\n $sql = new db_getSolicData; $RS1 = $sql->getInstanceOf($dbms,$w_chave,f($RS_Menu,'sigla'));\r\n $w_dados_pai = explode('|@|',f($RS1,'dados_pai'));\r\n $w_sigla_pai = $w_dados_pai[5];\r\n \r\n if ($w_sq_pessoa=='' && (strpos($_REQUEST['Botao'],'Selecionar')===false)) {\r\n $w_sq_pessoa =f($RS1,'pessoa');\r\n $w_pessoa_atual =f($RS1,'pessoa');\r\n } elseif (strpos($_REQUEST['Botao'],'Selecionar')===false) {\r\n $w_sq_banco = f($RS1,'sq_banco');\r\n $w_sq_agencia = f($RS1,'sq_agencia');\r\n $w_operacao = f($RS1,'operacao_conta');\r\n $w_nr_conta = f($RS1,'numero_conta');\r\n $w_sq_pais_estrang = f($RS1,'sq_pais_estrang');\r\n $w_aba_code = f($RS1,'aba_code');\r\n $w_swift_code = f($RS1,'swift_code');\r\n $w_endereco_estrang = f($RS1,'endereco_estrang');\r\n $w_banco_estrang = f($RS1,'banco_estrang');\r\n $w_agencia_estrang = f($RS1,'agencia_estrang');\r\n $w_cidade_estrang = f($RS1,'cidade_estrang');\r\n $w_informacoes = f($RS1,'informacoes');\r\n $w_codigo_deposito = f($RS1,'codigo_deposito');\r\n } \r\n $w_forma_pagamento = f($RS1,'sg_forma_pagamento');\r\n $w_tipo_pessoa = f($RS1,'sq_tipo_pessoa');\r\n \r\n if (Nvl($w_sq_pessoa,0)==0) { $O='I'; } else { $O='A'; }\r\n // Verifica se há necessidade de recarregar os dados da tela a partir\r\n // da própria tela (se for recarga da tela) ou do banco de dados (se não for inclusão)\r\n if ($w_troca>'') {\r\n // Se for recarga da página\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_chave_aux = $_REQUEST['w_chave_aux'];\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_nome_resumido = $_REQUEST['w_nome_resumido'];\r\n $w_sq_pessoa_pai = $_REQUEST['w_sq_pessoa_pai'];\r\n $w_nm_tipo_pessoa = $_REQUEST['w_nm_tipo_pessoa'];\r\n $w_sq_tipo_vinculo = $_REQUEST['w_sq_tipo_vinculo'];\r\n $w_nm_tipo_vinculo = $_REQUEST['w_nm_tipo_vinculo'];\r\n $w_sq_banco = $_REQUEST['w_sq_banco'];\r\n $w_sq_agencia = $_REQUEST['w_sq_agencia'];\r\n $w_operacao = $_REQUEST['w_operacao'];\r\n $w_nr_conta = $_REQUEST['w_nr_conta'];\r\n $w_sq_pais_estrang = $_REQUEST['w_sq_pais_estrang'];\r\n $w_aba_code = $_REQUEST['w_aba_code'];\r\n $w_swift_code = $_REQUEST['w_swift_code'];\r\n $w_endereco_estrang = $_REQUEST['w_endereco_estrang'];\r\n $w_banco_estrang = $_REQUEST['w_banco_estrang'];\r\n $w_agencia_estrang = $_REQUEST['w_agencia_estrang'];\r\n $w_cidade_estrang = $_REQUEST['w_cidade_estrang'];\r\n $w_informacoes = $_REQUEST['w_informacoes'];\r\n $w_codigo_deposito = $_REQUEST['w_codigo_deposito'];\r\n $w_interno = $_REQUEST['w_interno'];\r\n $w_vinculo_ativo = $_REQUEST['w_vinculo_ativo'];\r\n $w_sq_pessoa_telefone = $_REQUEST['w_sq_pessoa_telefone'];\r\n $w_ddd = $_REQUEST['w_ddd'];\r\n $w_nr_telefone = $_REQUEST['w_nr_telefone'];\r\n $w_sq_pessoa_celular = $_REQUEST['w_sq_pessoa_celular'];\r\n $w_nr_celular = $_REQUEST['w_nr_celular'];\r\n $w_sq_pessoa_fax = $_REQUEST['w_sq_pessoa_fax'];\r\n $w_nr_fax = $_REQUEST['w_nr_fax'];\r\n $w_email = $_REQUEST['w_email'];\r\n $w_sq_pessoa_endereco = $_REQUEST['w_sq_pessoa_endereco'];\r\n $w_logradouro = $_REQUEST['w_logradouro'];\r\n $w_complemento = $_REQUEST['w_complemento'];\r\n $w_bairro = $_REQUEST['w_bairro'];\r\n $w_cep = $_REQUEST['w_cep'];\r\n $w_sq_cidade = $_REQUEST['w_sq_cidade'];\r\n $w_co_uf = $_REQUEST['w_co_uf'];\r\n $w_sq_pais = $_REQUEST['w_sq_pais'];\r\n $w_pd_pais = $_REQUEST['w_pd_pais'];\r\n $w_cpf = $_REQUEST['w_cpf'];\r\n $w_nascimento = $_REQUEST['w_nascimento'];\r\n $w_rg_numero = $_REQUEST['w_rg_numero'];\r\n $w_rg_emissor = $_REQUEST['w_rg_emissor'];\r\n $w_rg_emissao = $_REQUEST['w_rg_emissao'];\r\n $w_passaporte_numero = $_REQUEST['w_passaporte_numero'];\r\n $w_sq_pais_passaporte = $_REQUEST['w_sq_pais_passaporte'];\r\n $w_sexo = $_REQUEST['w_sexo'];\r\n $w_cnpj = $_REQUEST['w_cnpj'];\r\n $w_inscricao_estadual = $_REQUEST['w_inscricao_estadual'];\r\n } elseif (strpos($_REQUEST['Botao'],'Alterar')===false && strpos($_REQUEST['Botao'],'Procurar')===false && ($O=='A' || $w_sq_pessoa>'' || $w_cpf>'' || $w_cnpj>'')) {\r\n // Recupera os dados do beneficiário em co_pessoa\r\n $sql = new db_getBenef; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_sq_pessoa,null,$w_cpf,$w_cnpj,null,null,null,null,null,null,null,null,null, null, null, null, null);\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n if (count($RS) > 0) {\r\n $w_sq_pessoa = f($RS,'sq_pessoa');\r\n $w_nome = f($RS,'nm_pessoa');\r\n $w_nome_resumido = f($RS,'nome_resumido');\r\n $w_sq_pessoa_pai = f($RS,'sq_pessoa_pai');\r\n $w_nm_tipo_pessoa = f($RS,'nm_tipo_pessoa');\r\n $w_sq_tipo_vinculo = f($RS,'sq_tipo_vinculo');\r\n $w_nm_tipo_vinculo = f($RS,'nm_tipo_vinculo');\r\n $w_interno = f($RS,'interno');\r\n $w_vinculo_ativo = f($RS,'vinculo_ativo');\r\n $w_sq_pessoa_telefone = f($RS,'sq_pessoa_telefone');\r\n $w_ddd = f($RS,'ddd');\r\n $w_nr_telefone = f($RS,'nr_telefone');\r\n $w_sq_pessoa_celular = f($RS,'sq_pessoa_celular');\r\n $w_nr_celular = f($RS,'nr_celular');\r\n $w_sq_pessoa_fax = f($RS,'sq_pessoa_fax');\r\n $w_nr_fax = f($RS,'nr_fax');\r\n $w_email = f($RS,'email');\r\n $w_sq_pessoa_endereco = f($RS,'sq_pessoa_endereco');\r\n $w_logradouro = f($RS,'logradouro');\r\n $w_complemento = f($RS,'complemento');\r\n $w_bairro = f($RS,'bairro');\r\n $w_cep = f($RS,'cep');\r\n $w_sq_cidade = f($RS,'sq_cidade');\r\n $w_co_uf = f($RS,'co_uf');\r\n $w_sq_pais = f($RS,'sq_pais');\r\n $w_pd_pais = f($RS,'pd_pais');\r\n $w_cpf = f($RS,'cpf');\r\n $w_nascimento = FormataDataEdicao(f($RS,'nascimento'));\r\n $w_rg_numero = f($RS,'rg_numero');\r\n $w_rg_emissor = f($RS,'rg_emissor');\r\n $w_rg_emissao = FormataDataEdicao(f($RS,'rg_emissao'));\r\n $w_passaporte_numero = f($RS,'passaporte_numero');\r\n $w_sq_pais_passaporte = f($RS,'sq_pais_passaporte');\r\n $w_sexo = f($RS,'sexo');\r\n $w_cnpj = f($RS,'cnpj');\r\n $w_inscricao_estadual = f($RS,'inscricao_estadual');\r\n if (strpos('CREDITO,DEPOSITO',$w_forma_pagamento)!==false) {\r\n if (Nvl($w_nr_conta,'')=='') {\r\n $w_sq_banco = f($RS,'sq_banco');\r\n $w_sq_agencia = f($RS,'sq_agencia');\r\n $w_operacao = f($RS,'operacao');\r\n $w_nr_conta = f($RS,'nr_conta');\r\n } \r\n } elseif ($w_forma_pagamento=='EXTERIOR') {\r\n if (Nvl($w_banco_estrang,'')=='' || nvl($w_troca,'-')!='w_sq_tipo_lancamento') {\r\n $w_nr_conta = f($RS_Benef,'nr_conta');\r\n $w_sq_pais_estrang = nvl($_REQUEST['w_sq_pais_estrang'],nvl(f($RS_Benef,'sq_pais_estrang'),$w_sq_pais_estrang));\r\n $w_aba_code = nvl($_REQUEST['w_aba_code'],nvl(f($RS_Benef,'aba_code'),$w_aba_code));\r\n $w_swift_code = nvl($_REQUEST['w_swift_code'],nvl(f($RS_Benef,'swift_code'),$w_swift_code));\r\n $w_endereco_estrang = nvl($_REQUEST['w_endereco_estrang'],nvl(f($RS_Benef,'endereco_estrang'),$w_endereco_estrang));\r\n $w_banco_estrang = nvl($_REQUEST['w_banco_estrang'],nvl(f($RS_Benef,'banco_estrang'),$w_banco_estrang));\r\n $w_agencia_estrang = nvl($_REQUEST['w_agencia_estrang'],nvl(f($RS_Benef,'agencia_estrang'),$w_agencia_estrang));\r\n $w_cidade_estrang = nvl($_REQUEST['w_cidade_estrang'],nvl(f($RS_Benef,'cidade_estrang'),$w_cidade_estrang));\r\n $w_informacoes = nvl($_REQUEST['w_informacoes'],nvl(f($RS_Benef,'informacoes'),$w_informacoes));\r\n } \r\n } \r\n } \r\n } \r\n\r\n // Recupera informação do campo operação do banco selecionado\r\n if (nvl($w_sq_banco,'')>'') {\r\n $sql = new db_getBankData; $RS_Banco = $sql->getInstanceOf($dbms, $w_sq_banco);\r\n $w_exige_operacao = f($RS_Banco,'exige_operacao');\r\n }\r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.$conSgSistema.' - Pessoa</TITLE>');\r\n Estrutura_CSS($w_cliente);\r\n // Monta o código JavaScript necessário para validação de campos e preenchimento automático de máscara,\r\n // tratando as particularidades de cada serviço\r\n ScriptOpen('JavaScript');\r\n Modulo();\r\n FormataCPF();\r\n FormataCNPJ();\r\n FormataCEP();\r\n CheckBranco();\r\n FormataData();\r\n SaltaCampo();\r\n ValidateOpen('Validacao');\r\n if (($w_cpf=='' && $w_cnpj=='') || (!(strpos($_REQUEST['Botao'],'Procurar')===false)) || (!(strpos($_REQUEST['Botao'],'Alterar')===false))) {\r\n // Se o beneficiário ainda não foi selecionado\r\n ShowHTML(' if (theForm.Botao.value == \"Procurar\") {');\r\n Validate('w_nome','Nome','','1','4','20','1','');\r\n ShowHTML(' theForm.Botao.value = \"Procurar\";');\r\n ShowHTML('}');\r\n ShowHTML('else {');\r\n if ($w_tipo_pessoa==1) Validate('w_cpf','CPF','CPF','1','14','14','','0123456789-.');\r\n else Validate('w_cnpj','CNPJ','CNPJ','1','18','18','','0123456789/-.');\r\n ShowHTML(' theForm.w_sq_pessoa.value = \\'\\';');\r\n ShowHTML('}');\r\n } elseif ($O=='I' || $O=='A') {\r\n ShowHTML(' if (theForm.w_troca.value.indexOf(\\'Alterar\\') >= 0) { return true; }');\r\n if (Nvl($w_sq_pessoa,'')=='') {\r\n Validate('w_nome','Nome','1',1,5,60,'1','1');\r\n Validate('w_nome_resumido','Nome resumido','1',1,2,21,'1','1');\r\n } \r\n if ($w_tipo_pessoa==1) {\r\n Validate('w_sexo','Sexo','SELECT',1,1,1,'MF','');\r\n if ($w_sigla_pai=='FNDFIXO') {\r\n Validate('w_rg_numero','Identidade','1','',2,30,'1','1');\r\n Validate('w_rg_emissor','Órgão expedidor','1','',2,30,'1','1');\r\n } else {\r\n Validate('w_rg_numero','Identidade','1',1,2,30,'1','1');\r\n Validate('w_rg_emissor','Órgão expedidor','1',1,2,30,'1','1');\r\n }\r\n } else {\r\n Validate('w_inscricao_estadual','Inscrição estadual','1','',2,20,'1','1');\r\n } \r\n if ($w_sigla_pai=='FNDFIXO') {\r\n Validate('w_ddd','DDD','1','',2,4,'','0123456789');\r\n Validate('w_nr_telefone','Telefone','1','',7,25,'1','1');\r\n Validate('w_nr_fax','Fax','1','',7,25,'1','1');\r\n Validate('w_nr_celular','Celular','1','',7,25,'1','1');\r\n ShowHTML(' if (theForm.w_ddd.value==\"\" && (theForm.w_nr_telefone.value!=\"\" || theForm.w_nr_fax.value!=\"\" || theForm.w_nr_celular.value!=\"\")) {');\r\n ShowHTML(' alert(\"Se telefone, fax ou celular forem indicados, é obrigatório informar seu DDD!\");');\r\n ShowHTML(' document.Form.w_ddd.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' } else if (theForm.w_ddd.value!=\"\" && (theForm.w_nr_telefone.value==\"\" && theForm.w_nr_fax.value==\"\" && theForm.w_nr_celular.value==\"\")) {');\r\n ShowHTML(' alert(\"Se DDD for indicado, informe pelo menos o telefone. Fax e celular são opcionais!\");');\r\n ShowHTML(' document.Form.w_nr_telefone.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n Validate('w_logradouro','Logradouro','1','',4,60,'1','1');\r\n Validate('w_complemento','Complemento','1','',2,20,'1','1');\r\n Validate('w_bairro','Bairro','1','',2,30,'1','1');\r\n Validate('w_sq_pais','País','SELECT','',1,10,'1','1');\r\n Validate('w_co_uf','UF','SELECT','',1,10,'1','1');\r\n Validate('w_sq_cidade','Cidade','SELECT','',1,10,'','1');\r\n Validate('w_cep','CEP','1','',9,9,'','0123456789-');\r\n ShowHTML(' if (theForm.w_logradouro.value==\"\" && (theForm.w_complemento.value!=\"\" || theForm.w_bairro.value!=\"\" || theForm.w_cep.value!=\"\" || theForm.w_sq_pais.selectedIndex>0 || theForm.w_co_uf.valueselectedIndex>0 || theForm.w_sq_cidade.valueselectedIndex>0)) {');\r\n ShowHTML(' alert(\"Se pais, estado ou cidade forem indicados, é obrigatório informar o logradouro!\");');\r\n ShowHTML(' document.Form.w_logradouro.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' } else if (theForm.w_logradouro.value!=\"\" && (theForm.w_sq_pais.selectedIndex==0 || theForm.w_co_uf.selectedIndex==0 || theForm.w_sq_cidade.selectedIndex==0)) {');\r\n ShowHTML(' alert(\"Se logradouro for indicado, informe pais, estado e cidade!\");');\r\n ShowHTML(' document.Form.w_logradouro.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n } else {\r\n Validate('w_ddd','DDD','1','1',2,4,'','0123456789');\r\n Validate('w_nr_telefone','Telefone','1',1,7,25,'1','1');\r\n Validate('w_nr_fax','Fax','1','',7,25,'1','1');\r\n Validate('w_nr_celular','Celular','1','',7,25,'1','1');\r\n if (f($RS_Menu,'sigla')=='FNDVIA') {\r\n Validate('w_logradouro','Logradouro','1','',4,60,'1','1');\r\n ShowHTML(' if (theForm.w_logradouro.value!=\"\" && (theForm.w_sq_pais.selectedIndex==0 || theForm.w_co_uf.selectedIndex==0 || theForm.w_sq_cidade.selectedIndex==0)) {');\r\n ShowHTML(' alert(\"Se logradouro for indicado, informe pais, estado e cidade!\");');\r\n ShowHTML(' document.Form.w_logradouro.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n } else {\r\n Validate('w_logradouro','Logradouro','1',1,4,60,'1','1');\r\n }\r\n Validate('w_complemento','Complemento','1','',2,20,'1','1');\r\n Validate('w_bairro','Bairro','1','',2,30,'1','1');\r\n Validate('w_sq_pais','País','SELECT',1,1,10,'1','1');\r\n Validate('w_co_uf','UF','SELECT',1,1,10,'1','1');\r\n Validate('w_sq_cidade','Cidade','SELECT',1,1,10,'','1');\r\n if (Nvl($w_pd_pais,'S')=='S') Validate('w_cep','CEP','1','',9,9,'','0123456789-');\r\n else Validate('w_cep','CEP','1',1,5,9,'','0123456789');\r\n }\r\n Validate('w_email','E-Mail','1','',4,60,'1','1');\r\n ShowHTML(' if (theForm.w_email.value!=\"\" && (theForm.w_sq_pais.selectedIndex==0 || theForm.w_co_uf.selectedIndex==0 || theForm.w_sq_cidade.selectedIndex==0)) {');\r\n ShowHTML(' alert(\"Se e-mail for indicado, informe pais, estado e cidade!\");');\r\n ShowHTML(' document.Form.w_email.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n if (substr(f($RS1,'sigla'),0,3)=='FND') {\r\n if (!(strpos('CREDITO,DEPOSITO',$w_forma_pagamento)===false)) {\r\n Validate('w_sq_banco','Banco','SELECT',1,1,10,'1','1');\r\n Validate('w_sq_agencia','Agencia','SELECT',1,1,10,'1','1');\r\n if ($w_exige_operacao=='S') Validate('w_operacao','Operação','1','1',1,6,'','0123456789');\r\n Validate('w_nr_conta','Número da conta','1','1',2,30,'ZXAzxa','0123456789-');\r\n } elseif ($w_forma_pagamento=='ORDEM') {\r\n Validate('w_sq_banco','Banco','SELECT',1,1,10,'1','1');\r\n Validate('w_sq_agencia','Agencia','SELECT',1,1,10,'1','1');\r\n } elseif ($w_forma_pagamento=='EXTERIOR') {\r\n Validate('w_banco_estrang','Banco de destino','1','1',1,60,1,1);\r\n Validate('w_aba_code','Código ABA','1','',1,12,1,1);\r\n Validate('w_swift_code','Código SWIFT','1','1',1,30,'',1);\r\n Validate('w_endereco_estrang','Endereço da agência destino','1','',3,100,1,1);\r\n ShowHTML(' if (theForm.w_aba_code.value == \\'\\' && theForm.w_swift_code.value == \\'\\' && theForm.w_endereco_estrang.value == \\'\\') {');\r\n ShowHTML(' alert(\\'Informe código ABA, código SWIFT ou endereço da agência!\\');');\r\n ShowHTML(' document.Form.w_aba_code.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n Validate('w_agencia_estrang','Nome da agência destino','1','1',1,60,1,1);\r\n Validate('w_nr_conta','Número da conta','1',1,1,30,1,1);\r\n Validate('w_cidade_estrang','Cidade da agência','1','1',1,60,1,1);\r\n Validate('w_sq_pais_estrang','País da agência','SELECT','1',1,18,1,1);\r\n Validate('w_informacoes','Informações adicionais','1','',5,200,1,1);\r\n }\r\n } \r\n ShowHTML(' disAll();');\r\n } \r\n ValidateClose();\r\n ScriptClose();\r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n ShowHTML('</head>');\r\n if (($w_cpf=='' && $w_cnpj=='') || !(strpos($_REQUEST['Botao'],'Alterar')===false) || !(strpos($_REQUEST['Botao'],'Procurar')===false)) {\r\n // Se o beneficiário ainda não foi selecionado\r\n if (!(strpos($_REQUEST['Botao'],'Procurar')===false)) {\r\n // Se está sendo feita busca por nome\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } else {\r\n if ($w_tipo_pessoa==1) BodyOpen('onLoad=\\'document.Form.w_cpf.focus()\\';');\r\n else BodyOpen('onLoad=\\'document.Form.w_cnpj.focus()\\';');\r\n } \r\n } elseif ($w_troca>'') {\r\n BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } else {\r\n if (Nvl($w_sq_pessoa,'')>'') {\r\n if ($w_tipo_pessoa==1) {\r\n BodyOpen('onLoad=\\'document.Form.w_sexo.focus()\\';');\r\n } else {\r\n BodyOpen('onLoad=\\'document.Form.w_inscricao_estadual.focus()\\';');\r\n } \r\n } else {\r\n BodyOpen('onLoad=\\'document.Form.w_nome.focus()\\';');\r\n } \r\n } \r\n Estrutura_Texto_Abre();\r\n ShowHTML('<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n ShowHTML('<tr><td colspan=3 bgcolor=\"#FAEBD7\"><table border=1 width=\"100%\"><tr><td>');\r\n ShowHTML(' <TABLE WIDTH=\"100%\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr><td colspan=3><b>'.upper(f($RS1,'nome')).' '.f($RS1,'codigo_interno').' ('.$w_chave.')</b></td>');\r\n ShowHTML(' <tr><td colspan=\"3\">Finalidade: <b>'.CRLF2BR(f($RS1,'descricao')).'</b></td></tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Forma de pagamento:<br><b>'.f($RS1,'nm_forma_pagamento').' </b></td>');\r\n ShowHTML(' <td>Vencimento:<br><b>'.FormataDataEdicao(f($RS1,'vencimento')).' </b></td>');\r\n ShowHTML(' <td>Valor:<br><b>'.formatNumber(Nvl(f($RS1,'valor'),0)).' </b></td>');\r\n ShowHTML(' </TABLE>');\r\n ShowHTML('</TABLE>');\r\n ShowHTML(' <tr><td>&nbsp;');\r\n if (strpos('IA',$O)!==false) {\r\n if (($w_cpf=='' && $w_cnpj=='') || (strpos($_REQUEST['Botao'],'Alterar')!==false) || !(strpos($_REQUEST['Botao'],'Procurar')===false)) {\r\n // Se o beneficiário ainda não foi selecionado\r\n ShowHTML('<FORM action=\"'.$w_dir.$w_pagina.$par.'\" method=\"POST\" name=\"Form\" onSubmit=\"return(Validacao(this));\">');\r\n } else {\r\n ShowHTML('<FORM action=\"'.$w_dir.$w_pagina.'Grava\" method=\"POST\" name=\"Form\" onSubmit=\"return(Validacao(this));\">');\r\n if (Nvl($w_sq_pessoa,'')>'') {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_nome\" value=\"'.$w_nome.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_nome_resumido\" value=\"'.$w_nome_resumido.'\">');\r\n } \r\n } \r\n ShowHTML('<INPUT type=\"hidden\" name=\"P1\" value=\"'.$P1.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P2\" value=\"'.$P2.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P3\" value=\"'.$P3.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P4\" value=\"'.$P4.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"TP\" value=\"'.$TP.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"SG\" value=\"'.$SG.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"R\" value=\"'.$w_pagina.$par.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"O\" value=\"'.$O.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_menu\" value=\"'.$w_menu.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave_aux\" value=\"'.$w_cliente.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_pessoa\" value=\"'.$w_sq_pessoa.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_pessoa_atual\" value=\"'.$w_pessoa_atual.'\">');\r\n if (($w_cpf=='' && $w_cnpj=='') || !(strpos($_REQUEST['Botao'],'Alterar')===false) || !(strpos($_REQUEST['Botao'],'Procurar')===false)) {\r\n $w_nome=$_REQUEST['w_nome'];\r\n if (!(strpos($_REQUEST['Botao'],'Alterar')===false)) {\r\n $w_cpf='';\r\n $w_cnpj='';\r\n $w_nome='';\r\n } \r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table border=\"0\">');\r\n ShowHTML(' <tr><td colspan=4><font size=2>Informe os dados abaixo e clique no botão \"Selecionar\" para continuar.</TD>');\r\n if ($w_tipo_pessoa==1) ShowHTML(' <tr><td colspan=4><b><u>C</u>PF:<br><INPUT ACCESSKEY=\"C\" TYPE=\"text\" class=\"sti\" NAME=\"w_cpf\" VALUE=\"'.$w_cpf.'\" SIZE=\"14\" MaxLength=\"14\" onKeyDown=\"FormataCPF(this, event);\">');\r\n else ShowHTML(' <tr><td colspan=4><b><u>C</u>NPJ:<br><INPUT ACCESSKEY=\"C\" TYPE=\"text\" class=\"sti\" NAME=\"w_cnpj\" VALUE=\"'.$w_cnpj.'\" SIZE=\"18\" MaxLength=\"18\" onKeyDown=\"FormataCNPJ(this, event);\">');\r\n ShowHTML(' <INPUT class=\"stb\" TYPE=\"submit\" NAME=\"Botao\" VALUE=\"Selecionar\" onClick=\"Botao.value=this.value; document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'\">');\r\n if ($P2==1) {\r\n ShowHTML(' <INPUT class=\"stb\" type=\"button\" onClick=\"parent.$.fancybox.close();\" name=\"Botao\" value=\"Cancelar\">');\r\n } else {\r\n ShowHTML(' <INPUT class=\"stb\" type=\"button\" onClick=\"window.close(); opener.focus();\" name=\"Botao\" value=\"Cancelar\">');\r\n }\r\n ShowHTML(' <tr><td colspan=4><p>&nbsp</p>');\r\n ShowHTML(' <tr><td colspan=4 heigth=1 bgcolor=\"#000000\">');\r\n ShowHTML(' <tr><td colspan=4>');\r\n ShowHTML(' <b><u>P</u>rocurar pelo nome:</b> (Informe qualquer parte do nome SEM ACENTOS)<br><INPUT ACCESSKEY=\"P\" TYPE=\"text\" class=\"sti\" NAME=\"w_nome\" VALUE=\"'.$w_nome.'\" SIZE=\"20\" MaxLength=\"20\">');\r\n ShowHTML(' <INPUT class=\"stb\" TYPE=\"submit\" NAME=\"Botao\" VALUE=\"Procurar\" onClick=\"Botao.value=this.value; document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'\">');\r\n ShowHTML(' </table>');\r\n if ($w_nome>'') {\r\n $sql = new db_getBenef; $RS = $sql->getInstanceOf($dbms,$w_cliente,null,null,null,null,$w_nome,$w_tipo_pessoa,null,null,null,null,null,null,null, null, null, null, null);\r\n $RS = SortArray($RS,'nm_pessoa','asc');\r\n ShowHTML('<tr><td colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>Nome</td>');\r\n ShowHTML(' <td><b>Nome resumido</td>');\r\n if ($w_tipo_pessoa==1) ShowHTML(' <td><b>CPF</td>');\r\n else ShowHTML(' <td><b>CNPJ</td>');\r\n ShowHTML(' <td><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=4 align=\"center\"><b>Não há pessoas que contenham o texto informado.</b></td></tr>');\r\n } else {\r\n foreach($RS as $row) {\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" valign=\"top\">');\r\n ShowHTML(' <td>'.f($row,'nm_pessoa').'</td>');\r\n ShowHTML(' <td>'.f($row,'nome_resumido').'</td>');\r\n if ($w_tipo_pessoa==1) ShowHTML(' <td align=\"center\">'.Nvl(f($row,'cpf'),'---').'</td>');\r\n else ShowHTML(' <td align=\"center\">'.Nvl(f($row,'cnpj'),'---').'</td>');\r\n ShowHTML(' <td nowrap>');\r\n if ($w_tipo_pessoa==1) ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$R.'&O=A&w_cpf='.f($row,'cpf').'&w_menu='.$w_menu.'&w_sq_pessoa='.f($row,'sq_pessoa').'&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'&Botao=Selecionar\">Selecionar</A>&nbsp');\r\n else ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$R.'&O=A&w_cnpj='.f($row,'cnpj').'&w_menu='.$w_menu.'&w_sq_pessoa='.f($row,'sq_pessoa').'&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'&Botao=Selecionar\">Selecionar</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } \r\n } else {\r\n if (Nvl($w_sq_pais,'')=='' && $w_sigla_pai!='FNDFIXO') {\r\n // Carrega os valores padrão para país, estado e cidade\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms,$w_cliente);\r\n $w_sq_pais = f($RS,'sq_pais');\r\n $w_co_uf = f($RS,'co_uf');\r\n $w_sq_cidade = f($RS,'sq_cidade_padrao');\r\n } \r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\"><font color=\"#BC5151\"><b>ATENÇÃO: Para garantir a gravaçao dos dados bancários, clique sobre o botão \"Gravar\".</b></font></td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Identificação</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><table border=\"0\" width=\"100%\">');\r\n ShowHTML(' <tr valign=\"top\">');\r\n if ($w_tipo_pessoa==1) {\r\n ShowHTML(' <td>CPF:<br><b><font size=2>'.$w_cpf);\r\n ShowHTML(' <INPUT type=\"hidden\" name=\"w_cpf\" value=\"'.$w_cpf.'\">');\r\n } else {\r\n ShowHTML(' <td>CNPJ:<br><b><font size=2>'.$w_cnpj);\r\n ShowHTML(' <INPUT type=\"hidden\" name=\"w_cnpj\" value=\"'.$w_cnpj.'\">');\r\n } \r\n if (Nvl($w_sq_pessoa,'')>'') {\r\n ShowHTML(' <td>Nome completo:<b><br>'.$w_nome.'</td>');\r\n ShowHTML(' <td>Nome resumido:<b><br>'.$w_nome_resumido.'</td>');\r\n } else {\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>N</u>ome completo:</b><br><input '.$w_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_nome\" class=\"sti\" SIZE=\"45\" MAXLENGTH=\"60\" VALUE=\"'.$w_nome.'\"></td>');\r\n ShowHTML(' <td><b><u>N</u>ome resumido:</b><br><input '.$w_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_nome_resumido\" class=\"sti\" SIZE=\"15\" MAXLENGTH=\"21\" VALUE=\"'.$w_nome_resumido.'\"></td>');\r\n } \r\n if ($w_tipo_pessoa==1) {\r\n ShowHTML(' <tr valign=\"top\">');\r\n SelecaoSexo('Se<u>x</u>o:','X',null,$w_sexo,null,'w_sexo',null,null);\r\n ShowHTML(' <td><b><u>I</u>dentidade:</b><br><input '.$w_Disabled.' accesskey=\"I\" type=\"text\" name=\"w_rg_numero\" class=\"sti\" SIZE=\"14\" MAXLENGTH=\"80\" VALUE=\"'.$w_rg_numero.'\"></td>');\r\n ShowHTML(' <td><b>Ór<u>g</u>ão emissor:</b><br><input '.$w_Disabled.' accesskey=\"G\" type=\"text\" name=\"w_rg_emissor\" class=\"sti\" SIZE=\"10\" MAXLENGTH=\"30\" VALUE=\"'.$w_rg_emissor.'\"></td>');\r\n } else {\r\n ShowHTML(' <tr><td colspan=\"3\"><b><u>I</u>nscrição estadual:</b><br><input '.$w_Disabled.' accesskey=\"I\" type=\"text\" name=\"w_inscricao_estadual\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"'.$w_inscricao_estadual.'\"></td>');\r\n } \r\n ShowHTML(' </table>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n if ($w_tipo_pessoa==1) ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Endereço comercial, Telefones e e-Mail</td></td></tr>');\r\n else ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Endereço principal, Telefones e e-Mail</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><table border=0 width=\"100%\" cellspacing=0>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>D</u>DD:</b><br><input '.$w_Disabled.' accesskey=\"D\" type=\"text\" name=\"w_ddd\" class=\"sti\" SIZE=\"4\" MAXLENGTH=\"4\" VALUE=\"'.$w_ddd.'\"></td>');\r\n ShowHTML(' <td><b>Te<u>l</u>efone:</b><br><input '.$w_Disabled.' accesskey=\"L\" type=\"text\" name=\"w_nr_telefone\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"40\" VALUE=\"'.$w_nr_telefone.'\"> '.consultaTelefone($w_cliente).'</td>');\r\n ShowHTML(' <td title=\"Se a pessoa informar um número de fax, informe-o neste campo.\"><b>Fa<u>x</u>:</b><br><input '.$w_Disabled.' accesskey=\"X\" type=\"text\" name=\"w_nr_fax\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"'.$w_nr_fax.'\"></td>');\r\n ShowHTML(' <td title=\"Se a pessoa informar um celular institucional, informe-o neste campo.\"><b>C<u>e</u>lular:</b><br><input '.$w_Disabled.' accesskey=\"E\" type=\"text\" name=\"w_nr_celular\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"'.$w_nr_celular.'\"></td>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td colspan=2><b>En<u>d</u>ereço:</b><br><input '.$w_Disabled.' accesskey=\"D\" type=\"text\" name=\"w_logradouro\" class=\"sti\" SIZE=\"50\" MAXLENGTH=\"50\" VALUE=\"'.$w_logradouro.'\"></td>');\r\n ShowHTML(' <td><b>C<u>o</u>mplemento:</b><br><input '.$w_Disabled.' accesskey=\"O\" type=\"text\" name=\"w_complemento\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"'.$w_complemento.'\"></td>');\r\n ShowHTML(' <td><b><u>B</u>airro:</b><br><input '.$w_Disabled.' accesskey=\"B\" type=\"text\" name=\"w_bairro\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_bairro.'\"></td>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n SelecaoPais('<u>P</u>aís:','P',null,$w_sq_pais,null,'w_sq_pais',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_co_uf\\'; document.Form.submit();\"');\r\n ShowHTML(' <td>');\r\n SelecaoEstado('E<u>s</u>tado:','S',null,$w_co_uf,$w_sq_pais,null,'w_co_uf',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_sq_cidade\\'; document.Form.submit();\"');\r\n SelecaoCidade('<u>C</u>idade:','C',null,$w_sq_cidade,$w_sq_pais,$w_co_uf,'w_sq_cidade',null,null);\r\n ShowHTML(' <tr valign=\"top\">');\r\n if (Nvl($w_pd_pais,'S')=='S') {\r\n ShowHTML(' <td><b>C<u>E</u>P:</b><br><input '.$w_Disabled.' accesskey=\"E\" type=\"text\" name=\"w_cep\" class=\"sti\" SIZE=\"9\" MAXLENGTH=\"9\" VALUE=\"'.$w_cep.'\" onKeyDown=\"FormataCEP(this,event);\"></td>');\r\n } else {\r\n ShowHTML(' <td><b>C<u>E</u>P:</b><br><input '.$w_Disabled.' accesskey=\"E\" type=\"text\" name=\"w_cep\" class=\"sti\" SIZE=\"9\" MAXLENGTH=\"9\" VALUE=\"'.$w_cep.'\"></td>');\r\n } \r\n ShowHTML(' <td colspan=3 title=\"Se a pessoa informar um e-mail institucional, informe-o neste campo.\"><b>e-<u>M</u>ail:</b><br><input '.$w_Disabled.' accesskey=\"M\" type=\"text\" name=\"w_email\" class=\"sti\" SIZE=\"50\" MAXLENGTH=\"60\" VALUE=\"'.$w_email.'\"></td>');\r\n ShowHTML(' </table>');\r\n if (substr(f($RS_Menu,'sigla'),0,3)!='FNR') {\r\n // Se não for lançamento de receita\r\n if (!(strpos('CREDITO,DEPOSITO',$w_forma_pagamento)===false)) {\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Dados bancários</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><table border=0 width=\"100%\" cellspacing=0>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n SelecaoBanco('<u>B</u>anco:','B','Selecione o banco onde deverão ser feitos os pagamentos referentes ao lançamento.',$w_sq_banco,null,'w_sq_banco',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_sq_agencia\\'; document.Form.submit();\"');\r\n SelecaoAgencia('A<u>g</u>ência:','A','Selecione a agência onde deverão ser feitos os pagamentos referentes ao lançamento.',$w_sq_agencia,Nvl($w_sq_banco,-1),'w_sq_agencia',null,null);\r\n ShowHTML(' <tr valign=\"top\">');\r\n if ($w_exige_operacao=='S') ShowHTML(' <td title=\"Alguns bancos trabalham com o campo \"Operação\", além do número da conta. A Caixa Econômica Federal é um exemplo. Se for o caso,informe a operação neste campo; caso contrário, deixe-o em branco.\"><b>O<u>p</u>eração:</b><br><input '.$w_Disabled.' accesskey=\"O\" type=\"text\" name=\"w_operacao\" class=\"sti\" SIZE=\"6\" MAXLENGTH=\"6\" VALUE=\"'.$w_operacao.'\"></td>');\r\n ShowHTML(' <td title=\"Informe o número da conta bancária, colocando o dígito verificador, se existir, separado por um hífen. Exemplo: 11214-3. Se o banco não trabalhar com dígito verificador, informe apenas números. Exemplo: 10845550.\"><b>Número da con<u>t</u>a:</b><br><input '.$w_Disabled.' accesskey=\"T\" type=\"text\" name=\"w_nr_conta\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_nr_conta.'\"></td>');\r\n ShowHTML(' </table>');\r\n } elseif ($w_forma_pagamento=='ORDEM') {\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Dados para Ordem Bancária</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><table border=0 width=\"100%\" cellspacing=0>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n SelecaoBanco('<u>B</u>anco:','B','Selecione o banco onde deverão ser feitos os pagamentos referentes ao lançamento.',$w_sq_banco,null,'w_sq_banco',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_sq_agencia\\'; document.Form.submit();\"');\r\n SelecaoAgencia('A<u>g</u>ência:','A','Selecione a agência onde deverão ser feitos os pagamentos referentes ao lançamento.',$w_sq_agencia,Nvl($w_sq_banco,-1),'w_sq_agencia',null,null);\r\n } elseif ($w_forma_pagamento=='EXTERIOR') {\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" bgcolor=\"#D0D0D0\"><b>Dados da conta no exterior</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><b><font color=\"#BC3131\">ATENÇÃO:</font></b> É obrigatório o preenchimento de um destes campos: Swift Code, ABA Code ou Endereço da Agência.</td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><table border=0 width=\"100%\" cellspacing=0>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td title=\"Banco onde o crédito deve ser efetuado.\"><b><u>B</u>anco de crédito:</b><br><input '.$w_Disabled.' accesskey=\"B\" type=\"text\" name=\"w_banco_estrang\" class=\"sti\" SIZE=\"40\" MAXLENGTH=\"60\" VALUE=\"'.$w_banco_estrang.'\"></td>');\r\n ShowHTML(' <td title=\"Código ABA da agência destino.\"><b>A<u>B</u>A code:</b><br><input '.$w_Disabled.' accesskey=\"B\" type=\"text\" name=\"w_aba_code\" class=\"sti\" SIZE=\"12\" MAXLENGTH=\"12\" VALUE=\"'.$w_aba_code.'\"></td>');\r\n ShowHTML(' <td title=\"Código SWIFT da agência destino.\"><b>S<u>W</u>IFT code:</b><br><input '.$w_Disabled.' accesskey=\"W\" type=\"text\" name=\"w_swift_code\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_swift_code.'\"></td>');\r\n ShowHTML(' <tr><td colspan=3 title=\"Endereço da agência.\"><b>E<u>n</u>dereço da agência:</b><br><input '.$w_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_endereco_estrang\" class=\"sti\" SIZE=\"80\" MAXLENGTH=\"100\" VALUE=\"'.$w_endereco_estrang.'\"></td>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td colspan=2 title=\"Nome da agência destino.\"><b>Nome da a<u>g</u>ência:</b><br><input '.$w_Disabled.' accesskey=\"C\" type=\"text\" name=\"w_agencia_estrang\" class=\"sti\" SIZE=\"40\" MAXLENGTH=\"60\" VALUE=\"'.$w_agencia_estrang.'\"></td>');\r\n ShowHTML(' <td title=\"Número da conta destino.\"><b>Número da con<u>t</u>a:</b><br><input '.$w_Disabled.' accesskey=\"C\" type=\"text\" name=\"w_nr_conta\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_nr_conta.'\"></td>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td colspan=2 title=\"Cidade da agência destino.\"><b><u>C</u>idade:</b><br><input '.$w_Disabled.' accesskey=\"C\" type=\"text\" name=\"w_cidade_estrang\" class=\"sti\" SIZE=\"40\" MAXLENGTH=\"60\" VALUE=\"'.$w_cidade_estrang.'\"></td>');\r\n SelecaoPais('<u>P</u>aís:','P','Selecione o país de destino',$w_sq_pais_estrang,null,'w_sq_pais_estrang',null,null);\r\n ShowHTML(' </table>');\r\n ShowHTML(' <tr><td colspan=2 title=\"Se necessário, escreva informações adicionais relevantes para o pagamento.\"><b>Info<u>r</u>mações adicionais:</b><br><textarea '.$w_Disabled.' accesskey=\"R\" name=\"w_informacoes\" class=\"sti\" ROWS=3 cols=75 >'.$w_informacoes.'</TEXTAREA></td>');\r\n } \r\n } \r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\" height=\"1\" bgcolor=\"#000000\"></TD></TR>');\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\">');\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Gravar\" onClick=\"Botao.value=this.value;\">');\r\n if (strpos(f($RS_Menu,'sigla'),'CONT')===false && strpos(f($RS_Menu,'sigla'),'VIA')===false) {\r\n // Se não for lançamento para parcela de contrato\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Alterar pessoa\" onClick=\"Botao.value=this.value; document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.submit();\">');\r\n } \r\n if ($P2==1) {\r\n ShowHTML(' <INPUT type=\"button\" class=\"stb\" onClick=\"javascript:parent.$.fancybox.close();\" name=\"Botao\" value=\"Cancelar\">');\r\n } else {\r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"window.close(); opener.focus();\" name=\"Botao\" value=\"Cancelar\">');\r\n }\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n } \r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Estrutura_Texto_Fecha();\r\n}", "title": "" }, { "docid": "3053d2409de923e3530bb831b028d55b", "score": "0.6353184", "text": "function jugar($letra){\n\t$valor; $estado=false;$valida=true;\n\n\tif (ctype_alpha($letra)==false && utf8_encode($letra)) {\n\t\techo \"No has metido ninguna letra.\";\n\t\t$valida=false;\n\t}elseif (yajugada($letra)) {\n\t\t$valor=0;\n\t}else{\n\t\tfor ($i=0; $i <count($_SESSION{'cifrado'}) ; $i++) { \n\t\t\tif ($_SESSION['palabras'][$i]==$letra || $_SESSION['palabras'][$i]==strtoupper($letra)) {\n\t\t\t\t$_SESSION['cifrado'][$i]=$letra;\n\t\t\t\t$_SESSION['aciertos']+=1;\n\t\t\t\t$estado=true;\n\t\t\t}else{\n\t\t\t\t$valor=2;\n\t\t\t}\n\t\t}\n\t\t//compruebo la letra.\n\t\tif ($estado==false) {$_SESSION['errores']+=1; $_SESSION['fallos'].=$letra;}\n\t\tif ($estado==true) {$valor=1;}\n\t\tif ($_SESSION['errores']==strlen('ahorcado')) {$valor=3;}\n\t\tif ($_SESSION['aciertos']==$_SESSION['posiciones'][' _ ']) {$valor=4;}\n\t}\n\tif ($valida) {\n\t\tsacarResultado($valor,$letra);\n\t}\n}", "title": "" }, { "docid": "ac0f787181eaa8eed00e619c9fc1fa76", "score": "0.63480467", "text": "function lapso_resultado_novedad($mes, $idestudiantegeneral, $objetobase, $nombrecorto) {\n $fechainiciomes = \"01/\" . $mes;\n $fechafinalmes = final_mes_fecha(\"01/\" . $mes);\n if ($datos_novedad = datos_novedad_vigente($mes, $idestudiantegeneral, $objetobase, $nombrecorto)) {\n $fechainicionovedad = formato_fecha_defecto($datos_novedad['fechainicio']);\n $fechafinalnovedad = formato_fecha_defecto($datos_novedad['fechafinal']);\n $dias_diferencia_inicio = diferencia_fechas($fechainiciomes, $fechainicionovedad, \"dias\", 0);\n if ($dias_diferencia_inicio <= 0) {\n $lapso['inicio'] = $fechainiciomes;\n } else {\n $lapso['inicio'] = $fechainicionovedad;\n }\n\n $dias_diferencia_final = diferencia_fechas($fechafinalnovedad, $fechafinalmes, \"dias\", 0);\n if ($dias_diferencia_final <= 0) {\n $lapso['final'] = $fechafinalmes;\n } else {\n $lapso['final'] = $fechafinalnovedad;\n }\n //echo $nombrecorto.\"--\";\n }\n return $lapso;\n}", "title": "" }, { "docid": "2414e8afb5d82763ca814f3708bbc5cf", "score": "0.6340766", "text": "public function lucesSueloPasilloBajar( ) {\n $this->luces->bajarLucesSueloPasillo();\n AccesoGui::$guiLuces->luzSueloPasilloNivel();\n }", "title": "" }, { "docid": "c14413046d986e2f025ad3e55544fa61", "score": "0.63257205", "text": "function ImprimeLinha($l_solic,$l_cad,$l_tram,$l_conc,$l_atraso,$l_aviso,$l_valor,$l_custo,$l_acima,$l_chave) {\r\n extract($GLOBALS);\r\n if($w_tipo == 'PDF' || $w_tipo == 'WORD'){\r\n $w_embed = 'WORD'; \r\n }\r\n\r\n if ($w_embed != 'WORD') ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"javascript:lista(\\''.$l_chave.'\\', -1, -1, -1, -1);\" onMouseOver=\"window.status=\\'Exibe as demandas.\\'; return true\" onMouseOut=\"window.status=\\'\\'; return true\">'.formatNumber($l_solic,0).'</a>&nbsp;</td>'); else ShowHTML(' <td align=\"right\">'.formatNumber($l_solic,0).'&nbsp;</td>');\r\n if ($l_cad>0 && $w_embed != 'WORD' && $p_sq_menu>'') ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"javascript:lista(\\''.$l_chave.'\\', 0, -1, -1, -1);\" onMouseOver=\"window.status=\\'Exibe as demandas.\\'; return true\" onMouseOut=\"window.status=\\'\\'; return true\">'.formatNumber($l_cad,0).'</a>&nbsp;</td>'); else ShowHTML(' <td align=\"right\">'.formatNumber($l_cad,0).'&nbsp;</td>');\r\n if ($l_tram>0 && $w_embed != 'WORD' && $p_sq_menu>'') ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"javascript:lista(\\''.$l_chave.'\\', -1, 0, -1, -1);\" onMouseOver=\"window.status=\\'Exibe as demandas.\\'; return true\" onMouseOut=\"window.status=\\'\\'; return true\">'.formatNumber($l_tram,0).'</a>&nbsp;</td>'); else ShowHTML(' <td align=\"right\">'.formatNumber($l_tram,0).'&nbsp;</td>');\r\n if ($l_conc>0 && $w_embed != 'WORD' && $p_sq_menu>'') ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"javascript:lista(\\''.$l_chave.'\\', -1, -1, 0, -1);\" onMouseOver=\"window.status=\\'Exibe as demandas.\\'; return true\" onMouseOut=\"window.status=\\'\\'; return true\">'.formatNumber($l_conc,0).'</a>&nbsp;</td>'); else ShowHTML(' <td align=\"right\">'.formatNumber($l_conc,0).'&nbsp;</td>');\r\n if ($l_atraso>0 && $w_embed != 'WORD') ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"javascript:lista(\\''.$l_chave.'\\', -1, -1, -1, 0);\" onMouseOver=\"window.status=\\'Exibe as demandas.\\'; return true\" onMouseOut=\"window.status=\\'\\'; return true\"><font color=\"red\"><b>'.formatNumber($l_atraso,0).'</a>&nbsp;</td>'); else ShowHTML(' <td align=\"right\"><b>'.$l_atraso.'&nbsp;</td>');\r\n if ($l_aviso>0 && $w_embed != 'WORD') ShowHTML(' <td align=\"right\"><font color=\"red\"><b>'.formatNumber($l_aviso,0).'&nbsp;</td>'); else ShowHTML(' <td align=\"right\"><b>'.$l_aviso.'&nbsp;</td>');\r\n if ($_SESSION['INTERNO']=='S') {\r\n ShowHTML(' <td align=\"right\">'.formatNumber($l_valor,2).'&nbsp;</td>');\r\n //ShowHTML(' <td align=\"right\">'.formatNumber($l_custo,2).'&nbsp;</td>');\r\n //if ($l_acima>0) ShowHTML(' <td align=\"right\"><font color=\"red\"><b>'.formatNumber($l_acima,0).'&nbsp;</td>'); else ShowHTML(' <td align=\"right\"><b>'.$l_acima.'&nbsp;</td>');\r\n } \r\n ShowHTML(' </tr>');\r\n}", "title": "" }, { "docid": "18b6470b47db1c155ba275bfd28384e9", "score": "0.63211477", "text": "public function buscarVacaEstado($nombre) {\n echo \"<script type=\\\"text/javascript\\\">alert(\\\"escoja una vaca \\\");</script>\";\n if ($nombre == 'ninguno') {\n return $this->guiActualizarEstado();\n }\n\n\n $fachada = new Fachada();\n //obtiene los registros de la base de datos\n ob_start();\n //realiza consulta al modelo\n $ts1 = $fachada->cargarEtapaProximaVaca($nombre);\n $ts = $fachada->cargarVacaNoEstadoNinguno();\n\n if (empty($ts1)) {\n echo \"<script type=\\\"text/javascript\\\">alert(\\\"hay un error \\\");</script>\";\n return $this->guiIngresarProceso();\n }\n $pagina = $this->load_template(\"ACTUALIZAR ESTADO\");\n //carga la tabla de la seccion de VIEW\n include 'Vista/seccion/reproduccion/sActualizarEstadoR.html';\n $section = ob_get_clean();\n //realiza el parseado \n $pagina = $this->replace_content('/\\#section\\#/ms', $section, $pagina);\n $this->view_page($pagina);\n }", "title": "" }, { "docid": "1f885765f86a8ebf713fdea49f0cff4b", "score": "0.63169634", "text": "function trocarmarcha() {\n echo 'trocar marcha com a pé';\n }", "title": "" }, { "docid": "d5d871398d22cc64f99d35e696ac5e6a", "score": "0.63048524", "text": "public function lucesApagarSala( ) {\n\n $this->luces->apagarSala();\n AccesoGui::$guiLuces->luzSalaApagarTodo();\n\n }", "title": "" }, { "docid": "e96f0e599e162a8ad1c371c81a96da0f", "score": "0.6302338", "text": "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda categoria argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "070c46f40b3dceb82783355c0d9c32f4", "score": "0.6300137", "text": "function imp_datos_gestion($txt_contacto,$lista,$cant_lista,$cod_ges,$txt_mov,$txt_vendedor,$cod_fac_asi,$cod_fac_pen,$continuar_fac,$inicial){\r\n\t\t\r\n\t$txt_contacto = strtolower($txt_contacto); \t\t\r\n\t$txt_contacto = ucwords($txt_contacto);\r\n\t\r\n\t$txt_mov = strtolower($txt_mov); \t\t\r\n\t$txt_mov = ucwords($txt_mov);\r\n\t\r\n\t$txt_vendedor = strtolower($txt_vendedor); \t\t\r\n\t$txt_vendedor = ucwords($txt_vendedor);\r\n\t\r\n\t$pos1\t=\t0;\r\n\t$pos2\t=\t1;\r\n\r\n\tfor($cont=1; $cont<=$cant_lista; $cont++){\r\n\t\t\r\n\t\tif ($lista[$pos1][$pos2][0] == $cod_ges){\r\n\t\t\t\t\r\n\t\t\t$nombre_gestion \t= $lista[$pos1][$pos2][1];\r\n\t\t\t$num_registro_tri\t= $lista[$pos1][$pos2][6];\r\n\t\t\t$dir_gestion\t\t= $lista[$pos1][$pos2][7];\r\n\t\t\t$num_telefono\t\t= $lista[$pos1][$pos2][3];\r\n\t\t\t$n_ciu\t\t\t\t= $lista[$pos1][$pos2][2];\r\n\t\t\t$n_dep\t\t\t\t= $lista[$pos1][$pos2][8];\r\n\t\t\t$n_pai\t\t\t\t= $lista[$pos1][$pos2][9];\r\n\t\t\t$num_telefono2\t\t= $lista[$pos1][$pos2][10];\r\n\t\t\t$num_fax\t\t\t= $lista[$pos1][$pos2][11];\r\n\t\t\t$contacto\t\t\t= $lista[$pos1][$pos2][4];\r\n\t\t\t$num_celular\t\t= $lista[$pos1][$pos2][12];\t\r\n\t\t\t$num_ventas\t\t\t= $lista[$pos1][$pos2][5];\r\n\t\t\t$suma_total\t\t\t= $lista[$pos1][$pos2][13];\r\n\t\t\t$num_factura_ve\t\t= $lista[$pos1][$pos2][14];\r\n\t\t\t$fec_factura_ve\t\t= $lista[$pos1][$pos2][15];\r\n\t\t\t$nom_vendedor\t\t= $lista[$pos1][$pos2][16];\r\n\t\t\t//Textos \r\n\t\t\t$txt_columna4\t\t= \"No. \".$txt_mov;\r\n\t\t\t$txt_col4_fil3\t\t= \"Valor de \".$txt_mov;\r\n\t\t\t$txt_col4_fil4\t\t= \"Telefonos\";\r\n\t\t\t$txt_col4_fil5\t\t= \"Fax\";\r\n\t\t\t$txt_col4_fil6\t\t= \"Celular\";\r\n\t\t\t$car_barra\t\t\t= \"/\";\r\n\t\t\t$sim_din\t\t\t= \"$\";\r\n\t\t\t$valor_total\t\t= $sim_din.\" \".$suma_total;\r\n\t\t\t//Estilo\r\n\t\t\t$var_estilo1\t\t= \"Estilo12\";\r\n\t\t\t$var_estilo6\t\t= \"Estilo6\";\r\n\t\t\t$var_estilo8\t\t= \"Estilo6\";\r\n\t\t}\r\n\t\t$pos1++;\r\n\t\t$pos2++;\r\n\t}\r\n\tif($inicial>0){\r\n\t\t$num_factura_ve\t\t= $cod_fac_pen;\r\n\t\t$fec_factura_ve\t\t= $txt_mov;\r\n\t}\r\n\tif($continuar_fac>0){\r\n\t\t$cod_fac_asi = $continuar_fac;\r\n\t}\r\n\tif($cod_fac_asi>0 or $cod_fac_pen>0){\r\n\t\t$txt_columna4 \t\t= \"Fecha Factura\";\r\n\t\t$txt_col4_fil3 \t\t= $fec_factura_ve;\r\n\t\t$txt_col4_fil4 \t\t= \" \";\r\n\t\t$txt_col4_fil5 \t\t= \" \";\r\n\t\t$txt_col4_fil6\t\t= \" \";\r\n\t\t$num_ventas\t\t\t= \" \";\r\n\t\t$num_telefono\t\t= \" \";\r\n\t\t$num_telefono2\t\t= \" \";\r\n\t\t$car_barra\t\t\t= \" \";\r\n\t\t$sim_din\t\t\t= \" \";\r\n\t\t$tab_num_fac\t\t= \"\r\n\t\t<table border='1' bordercolor='#FF0000'>\r\n <tr>\r\n <td>\r\n\t\t <div align='center'>\r\n <label>\r\n <input type='vr' name='vr2' value='$num_factura_ve' \r\n size='3' readonly style='font-family: \r\n Arial; font-size: 24px; color:#FF0000; font-weight: bold; background-color: #CCCCCC'>\r\n </label>\r\n </div>\r\n\t\t </td>\r\n </tr>\r\n </table>\r\n\t\t\";\r\n\t\t$valor_total \t\t=\t\"No. Factura\";\r\n\t\t//Estilo\r\n\t\t$var_estilo1\t\t= \"Estilo6\";\r\n\t\t$var_estilo6\t\t= \"Estilo6\";\r\n\t\t$var_estilo8\t\t= \" \";\r\n\t}\r\n\tif($cod_fac_pen>0){\r\n\t\t$txt_pendiente \t\t= \"FACTURA PENDIENTE\";\r\n\t}\r\n\t$datos_gestion = \"\r\n\t\r\n\t<table width='800' border='1' bordercolor='#000000'>\r\n <tr>\r\n <td>\r\n <table border='0'>\r\n <tr>\r\n <td width='400' colspan='4'>\r\n\t\t\t\t<div align='left'>\r\n\t\t\t\t<span class='Estilo8'>\r\n\t\t\t\t $nombre_gestion\r\n\t\t\t\t</span>\r\n\t\t\t\t</div>\t\t\t\t \r\n\t\t\t</td>\r\n <td width='100'>&nbsp;</td>\r\n <td width='150'>&nbsp;</td>\r\n <td width='150'><span class='Estilo15'>$txt_pendiente</span></td>\r\n </tr>\r\n <tr>\r\n\t\t\t<td colspan='4'>\r\n\t\t\t\t<div align='left'><span class='Estilo7'>$num_registro_tri</span></div>\t\t\t\t \r\n\t\t\t</td>\r\n <td><span class='$var_estilo6'>$txt_columna4</span></td>\r\n <td><span class='Estilo12'>$num_ventas</span></td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n <tr>\r\n\t\t\t<td colspan='4' class='Estilo7'>\r\n\t\t\t\t<div align='left'>$dir_gestion</div>\t\t\t\t \r\n\t\t\t</td>\r\n <td><span class='$var_estilo8'>$txt_col4_fil3</span></td>\r\n <td><span class='$var_estilo1'>$valor_total</span></td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n <tr>\r\n\t\t\t<td colspan='4' class='Estilo7'>\r\n\t\t\t\t<div align='left'>$n_ciu - $n_dep - $n_pai</div>\t\t\t\t \r\n\t\t\t</td>\r\n <td><span class='Estilo6'>$txt_col4_fil4</span></td>\r\n <td>$tab_num_fac $num_telefono $car_barra $num_telefono2</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td colspan='2'><span class='Estilo6'>$txt_vendedor</span></td>\r\n <td>$nom_vendedor</td>\r\n <td>&nbsp;</td>\r\n <td><span class='Estilo6'>$txt_col4_fil5</span></td>\r\n <td>$num_fax</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n <tr>\r\n\t\t\t<td colspan='2'><span class='Estilo6'>$txt_contacto</span></td>\r\n <td colspan='2'>$contacto</td>\r\n <td><span class='Estilo6'>$txt_col4_fil6</span></td>\r\n <td>$num_celular</td>\r\n <td>&nbsp;</td>\r\n </tr>\r\n\t\t</table>\r\n\t\t</td>\r\n </tr>\r\n </table>\r\n\t\r\n\t\";\r\n\techo $datos_gestion;\r\n\t}", "title": "" }, { "docid": "c2467fc7956b539d380dc4bd957fb17f", "score": "0.62689596", "text": "function centrotrabajo($mes, $codigoestudiante, $objetobase) {\n\n $fechainiciomes = formato_fecha_mysql(\"01/\" . $mes);\n $condicion = \"and cc.idcentrotrabajoarp=ct.idcentrotrabajoarp\n\t\t\t\tand cc.codigocarrera=e.codigocarrera\n\t\t\t\tand ct.codigoestado like '1%'\n\t\t\t\tand ('$fechainiciomes' between ct.fechainiciocentrotrabajoarp and ct.fechafinalcentrotrabajoarp)\";\n $datoscentrotrabajo = $objetobase->recuperar_datos_tabla(\"carreracentrotrabajoarp cc, centrotrabajoarp ct, estudiante e\", \"e.codigoestudiante\", $codigoestudiante, $condicion, '', 0);\n //echo \"<br>\";\n return $datoscentrotrabajo;\n}", "title": "" }, { "docid": "2b7c5c15a210f2317e3c93f0ba94bff6", "score": "0.6267323", "text": "function Ficha($id_contrato_arrendamiento)\n\t{\n\t\t// Conexión Base de datos\n\t\t$DB = new Model();\t\t\n\t\t// Consulta\n\t\t$consulta = $DB->Execute(\"SELECT * FROM contratos_arrendamiento_inmueble WHERE id_contrato_arrendamiento=\". $id_contrato_arrendamiento) or die($DB->ErrorMsg());\n\t\t$row_consulta = $consulta->FetchRow();\n\t\t$totalRows_consulta = $consulta->RecordCount();\n\t\t// Comprobaciones\n\t\t$this->ComprobarContratoArrendamientoBD($id_contrato_arrendamiento,$datos['cliente_vendedor'],$datos['inmueble']);\t\n\t\t// Formateo de datos\n\t\t$datos=$row_consulta;\n\t\t$fecha_separada=explode(\"-\",$datos['fecha']);\n\t\t$datos['dia_fecha']=$fecha_separada[2];\n\t\t$datos['mes_fecha']=obtener_mes((int)$fecha_separada[1]);\n\t\t$datos['anio_fecha']=$fecha_separada[0];\n\t\t$datos['nombre_completo']=$datos['nombre'].\" \".$datos['apellidos'];\n\t\t$datos['poblacion']=formatear_poblacion($datos['poblacion']);\n\t\t$datos['provincia']=formatear_provincia($datos['provincia']);\t\t\n\t\t$datos['nombre_completo_comprador']=$datos['nombre_comprador'].\" \".$datos['apellidos_comprador'];\n\t\t$datos['poblacion_comprador']=formatear_poblacion($datos['poblacion_comprador']);\n\t\t$datos['provincia_comprador']=formatear_provincia($datos['provincia_comprador']);\n\t\t$datos['poblacion_vivienda']=formatear_poblacion($datos['poblacion_vivienda']);\n\t\t$datos['provincia_vivienda']=formatear_provincia($datos['provincia_vivienda']);\n\t\t$enletras=new EnLetras();\n\t\t$datos['cuota_total_texto']=strtoupper($enletras->ValorEnLetras($datos['cuota_total'],\"euros\"));\n\t\t$datos['cuota_total']=number_format($datos['cuota_total'], 2, ',', '.');\n\t\t$datos['cuota_mensual_texto']=strtoupper($enletras->ValorEnLetras($datos['cuota_mensual'],\"euros\"));\n\t\t$datos['cuota_mensual']=number_format($datos['cuota_mensual'], 2, ',', '.');\n\t\t$fecha_separada=explode(\"-\",$datos['fecha_inicio_contrato']);\n\t\t$datos['dia_fecha_inicio_contrato']=$fecha_separada[2];\n\t\t$datos['mes_fecha_inicio_contrato']=obtener_mes((int)$fecha_separada[1]);\n\t\t$datos['anio_fecha_inicio_contrato']=$fecha_separada[0];\t\t\n\t\t$fecha_separada=explode(\"-\",$datos['fecha_fin_contrato']);\n\t\t$datos['dia_fecha_fin_contrato']=$fecha_separada[2];\n\t\t$datos['mes_fecha_fin_contrato']=obtener_mes((int)$fecha_separada[1]);\n\t\t$datos['anio_fecha_fin_contrato']=$fecha_separada[0];\n\t\t// Sección principal\n\t\t$this->CuerpoFicha($datos);\n\t\t// Salida del PDF\n\t\treturn $this->pdf->Output(PATHINCLUDE_FRAMEWORK_DOC. \"clientes/cliente_\".$datos['cliente_vendedor'].\"/inmueble_\".$datos['inmueble'].\"/contrato_arrendamiento_\".$id_contrato_arrendamiento.\".pdf\");\n\t}", "title": "" }, { "docid": "f705051f61b4f53d627c5fb36a022afe", "score": "0.62600887", "text": "function acertaPlacarInvertido(){\n\t\t$this->acertosPlacarInvertido++;\n\t}", "title": "" }, { "docid": "1a929b6df95476a8481bafcc48743b31", "score": "0.62589484", "text": "function getCabezaLevante($arregloDatos) {\n \t$sede = $_SESSION['sede'];\n $sql = \"SELECT imm.codigo AS num_levante,imm.lev_sia,lev_cant_declaraciones AS lev_cant,lev_bultos,\n imm.fecha,imm.destinatario,imm.direccion,imm.obs,imm.fmm,imm.lev_cuenta_grupo,prefactura,\n clientes.razon_social,imm.producto,camiones.conductor_nombre,camiones.codigo AS id_camion,\n\t\t\t\t\tclientes.correo_electronico as email,\n camiones.placa,referencias.nombre AS nombre_producto,imm.cantidad,imm.cantidad_nac,\n imm.cantidad_ext,imm.doc_tte,imm.peso,imm.valor,imm.unidad,imm.bodega,imm.orden,\n imm.cierre,imm.pos_arancelaria,imm.tip_movimiento,imm.tipo_retiro,imm.posicion,\n imm.pedido,imm.destinatario,imm.ciudad AS codigo_ciudad,posiciones.nombre AS nombre_ubicacion,\n\t\t\t\t\timm.peso_ext,imm.peso_nac,\n\t\t\t\t\t\n posiciones.nombre AS nombre_posicion,ciudades.nombre AS nombre_ciudad,posiciones.nombre AS nombre_bodega, \n destinatarios.razon_social AS nombre_destinatario\n FROM inventario_maestro_movimientos imm\n LEFT JOIN clientes ON imm.lev_sia = clientes.numero_documento\n LEFT JOIN camiones ON imm.id_camion = camiones.codigo\n LEFT JOIN referencias ON imm.producto = referencias.codigo\n \n LEFT JOIN posiciones ON imm.posicion = posiciones.codigo AND posiciones.sede='$sede'\n LEFT JOIN ciudades ON imm.ciudad = ciudades.codigo\n\t\t\t \n LEFT JOIN clientes AS destinatarios ON imm.destinatario = destinatarios.numero_documento\n WHERE imm.codigo = $arregloDatos[id_levante]\n\t\t\t\n\t\t\t\";\n//echo $sql;\n $this->query($sql);\n if($this->_lastError) {\n $this->mensaje = \"error al consultar Inventario \" . $sql;\n $this->estilo = $this->estilo_error;\n return TRUE;\n }\n }", "title": "" }, { "docid": "450b3fb482c732ba73be8c341bdc7094", "score": "0.62456805", "text": "function palabraDescubierta($coleccionLetras){\n $palDescubierta = true;\n $cantLetras = count($coleccionLetras);\n $i = 0;\n\n //Si alguna de las letras no fue descubierta corta el bucle antes que el contador llegue a su limite y devuelve false\n while($palDescubierta && $i < $cantLetras)\n {\n\n $palDescubierta = $coleccionLetras[$i][\"descubierta\"];\n $i++;\n }\n return $palDescubierta;\n}", "title": "" }, { "docid": "fc3d3882460ab823a1299cf63059e211", "score": "0.6232892", "text": "public function lucesTechoPresidenciaBajar( ) {\n $this->luces->bajarLucesTechoPresidencia();\n AccesoGui::$guiLuces->luzTechoPresidenciaNivel();\n }", "title": "" }, { "docid": "6b01422746f8db654a3af245dfc451d2", "score": "0.6231071", "text": "function calcula(){\r\n\r\nif(enString($this->web, '//m.')){\r\n\t$this->web = str_replace('//m.', '//www.', $this->web);\r\n\tdbug('Movil -> escritorio');\r\n\t$this->web_descargada=CargaWebCurl($this->web,'',0,'',array('Referer: '.$this->web));\r\n\t\r\n\tif(!enString($this->web_descargada,'<html'))\r\n\t\t$this->web_descargada=CargaWebCurl($this->web);\r\n}\r\n\r\n\r\n\r\n//usarse a sí mismo como réferer\r\nif(!enString($this->web_descargada,'<html'))\r\n\t$this->web_descargada=CargaWebCurl($this->web,'',0,'',array('Referer: '.$this->web));\r\n\r\nif(!enString($this->web_descargada,'<html'))\r\n\t$this->web_descargada=CargaWebCurl($this->web);\r\n\r\n//dbug_($this->web_descargada);\r\n\r\n$obtenido=array('enlaces' => array());\r\n\r\n\r\n\r\n//para televisa.com/novelas\r\nif(stringContains($this->web_descargada,array('showVideo(','data-idvideo=\"','embed.php?id='))){\r\n\tif(enString($this->web_descargada,'showVideo(')){\r\n\t\tdbug('-1-');\r\n\t\tpreg_match('@showVideo\\(([0-9]+)\\)@',$this->web_descargada,$match);\r\n\t}\r\n\telseif(enString($this->web_descargada,'data-id=\"')){\r\n\t\tdbug('-2-');\r\n\t\tpreg_match('@data-id=\"([0-9]+)\"@',$this->web_descargada,$match);\r\n\t}\r\n\telseif(enString($this->web_descargada,'data-idvideo=\"')){\r\n\t\tdbug('-2.5-');\r\n\t\tpreg_match('@data-idvideo=\"([0-9]+)\"@',$this->web_descargada,$match);\r\n\t}\r\n\telseif(enString($this->web_descargada,'embed.php?id=')){\r\n\t\tdbug('-3-');\r\n\t\tpreg_match('@embed.php\\?id=([0-9]+)@',$this->web_descargada,$match);\r\n\t}\r\n\r\n\tif(isset($match[1])){\r\n\t\t$idVideo=$match[1];\r\n\t\tdbug($idVideo);\r\n\t\t// $this->web='http://amp.televisa.com/embed/embed.php?id='.$idVideo.'&w=620&h=345';\r\n\t\t$this->web='http://tvolucion.esmas.com/embed/embed.php?id='.$idVideo.'&w=620&h=345';\r\n\t\t$this->web_descargada=CargaWebCurl($this->web,'',0,'',array('Referer: '.$this->web));\r\n\t\tif(enString($this->web_descargada,'ya no se encuentra disponible')){\r\n\t\t\tsetErrorWebIntera('Éste vídeo ya no se encuentra disponible.');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//dbug_($this->web_descargada);\r\n\t}\r\n}\r\n\r\n\r\n\r\nif(enString($this->web_descargada, 'params_dvr.json')){\r\n\tif (!isset($idVideo)) {\r\n\t\tpreg_match('#/([0-9]+?)/params_dvr.json#', $this->web_descargada, $matches);\r\n\t\t$idVideo = $matches[1];\r\n\t}\r\n\t$hostname = 'tvolucion.esmas.com';\r\n\t$json = \"http://{$hostname}/tvenvivofiles/{$idVideo}/params_dvr.json\";\r\n\t$json = CargaWebCurl($json);\r\n\t$json = utf8_encode($json);\r\n\t$json = json_decode($json, true);\r\n\tdbug_r($json);\r\n\t\r\n\t$titulo = $json['channel']['item']['title'];\r\n\t$imagen = $json['channel']['item']['media-group']['media-thumbnail']['@attributes']['url'];\r\n\r\n\tforeach($json['channel']['item']['media-group']['media-content'] as &$elem){\r\n\t\tif(enString($elem['@attributes']['url'], '.f4m')){\r\n\t\t\t$obtenido['enlaces'][] = array(\r\n\t\t\t\t'url' => $elem['@attributes']['url'],\r\n\t\t\t\t'nombre_archivo' => generaNombreWindowsValido($titulo),\r\n\t\t\t\t'tipo' => 'f4m'\r\n\t\t\t);\r\n\t\t}\r\n\t\telseif(enString($elem['@attributes']['url'], '.m3u8')){\r\n\t\t\t$obtenido['enlaces'][] = array(\r\n\t\t\t\t'url' => $elem['@attributes']['url'],\r\n\t\t\t\t'tipo' => 'm3u8'\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\t\r\n\t$obtenido['alerta_especifica'] = 'Es necesario usar un proxy de México. El programa F4M-Downloader permite indicar un proxy.';\r\n}\r\nelse {\r\n\r\n\r\n\r\n//http://c.brightcove.com/services/messagebroker/amf?playerKey=AQ~~,AAAAEUA28vk~,ZZqXLYtFw-ADB2SpeHfBR3cyrCkvIrAe\r\nif(enString($this->web_descargada,'playerKey:\"'))\r\n\t$playerKey=entre1y2($this->web_descargada,'playerKey:\"','\"');\r\nelseif(enString($this->web_descargada,'<param name=\"playerKey\"'))\r\n\t$playerKey=entre1y2($this->web_descargada,'<param name=\"playerKey\" value=\"','\"');\r\nif(!isset($playerKey)){\r\n\tsetErrorWebIntera('No se ha encontrado ningún vídeo.');\r\n\treturn;\r\n}\r\ndbug('playerKey -> '.$playerKey);\r\n$messagebroker='http://c.brightcove.com/services/messagebroker/amf?playerKey='.$playerKey;\r\n\r\n\r\nif(enString($this->web_descargada,'playerID:\"'))\r\n\t$experienceID=entre1y2($this->web_descargada,'playerID:\"','\"');\r\nelseif(enString($this->web_descargada,'<param name=\"playerID\"'))\r\n\t$experienceID=entre1y2($this->web_descargada,'<param name=\"playerID\" value=\"','\"');\r\nif(!isset($experienceID)){\r\n\tsetErrorWebIntera('No se ha encontrado ningún vídeo.');\r\n\treturn;\r\n}\r\ndbug('experienceID -> '.$experienceID);\r\n\t\r\nif(enString($this->web_descargada,'videoId:\"'))\r\n\t$contentId=entre1y2($this->web_descargada,'videoId:\"','\"');\r\nelseif(enString($this->web_descargada,'<param name=\"videoId\"'))\r\n\t$contentId=entre1y2($this->web_descargada,'<param name=\"videoId\" value=\"','\"');\r\nif(!isset($contentId)){\r\n\tsetErrorWebIntera('No se ha encontrado ningún vídeo.');\r\n\treturn;\r\n}\r\ndbug('contentId -> '.$contentId);\r\n\r\n\r\ninclude 'brightcove-funciones.php';\r\n\r\n//$aa = 'AAMAAAABAEZjb20uYnJpZ2h0Y292ZS5leHBlcmllbmNlLkV4cGVyaWVuY2VSdW50aW1lRmFjYWRlLmdldERhdGFGb3JFeHBlcmllbmNlAAIvMQAAAe8KAAAAAgIAKDcyOTBiYTVlOTQzZGM0MmI3ZDY4NmE1NjJmOTZkNWI0MGI0ZjE3OTIRCmNjY29tLmJyaWdodGNvdmUuZXhwZXJpZW5jZS5WaWV3ZXJFeHBlcmllbmNlUmVxdWVzdBlleHBlcmllbmNlSWQhY29udGVudE92ZXJyaWRlcxFUVExUb2tlbhlkZWxpdmVyeVR5cGUTcGxheWVyS2V5B1VSTAVCYrdWAacgAAkDAQqBA1Njb20uYnJpZ2h0Y292ZS5leHBlcmllbmNlLkNvbnRlbnRPdmVycmlkZRtjb250ZW50UmVmSWRzDXRhcmdldBVmZWF0dXJlZElkE2NvbnRlbnRJZBdjb250ZW50VHlwZRtmZWF0dXJlZFJlZklkFWNvbnRlbnRJZHMZY29udGVudFJlZklkAQYXdmlkZW9QbGF5ZXIFf////+AAAAAFQoo2IT7sSAAEAAEBAQYBBX/////gAAAABmVBUX5+LEFBQUFFVUEyOHZrfixaWnFYTFl0RnctQURCMlNwZUhmQlIzY3lyQ2t2SXJBZQaBGWh0dHA6Ly9ub3RpY2llcm9zLnRlbGV2aXNhLmNvbS9wcm9ncmFtYXMtbm90aWNpZXJvLWNvbi1qb2FxdWluLWxvcGV6LWRvcmlnYS8=';\r\n//dbug_r(brightcove_decode(base64_decode($aa)));\r\n\r\n$a_encodear = array\r\n(\r\n\t'target'\t=> 'com.brightcove.experience.ExperienceRuntimeFacade.getDataForExperience',\r\n\t'response'\t=> '/1',\r\n\t'data'\t\t=> array\r\n\t(\r\n\t\t'0' => '7290ba5e943dc42b7d686a562f96d5b40b4f1792',\r\n\t\t'1' => new SabreAMF_AMF3_Wrapper\r\n\t\t(\r\n\t\t\tnew SabreAMF_TypedObject\r\n\t\t\t(\r\n\t\t\t\t'com.brightcove.experience.ViewerExperienceRequest',\r\n\t\t\t\tarray\r\n\t\t\t\t(\r\n\t\t\t\t\t'TTLToken' => null,\r\n\t\t\t\t\t'deliveryType' => NAN,\r\n\t\t\t\t\t'URL' => $this->web, //Innecesario\r\n\t\t\t\t\t'experienceId' => $experienceID,\r\n\t\t\t\t\t'playerKey' => $playerKey,\r\n\t\t\t\t\t'contentOverrides' => array\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tnew SabreAMF_TypedObject\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t'com.brightcove.experience.ContentOverride',\r\n\t\t\t\t\t\t\tarray\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t'contentRefId' => null,\r\n\t\t\t\t\t\t\t\t'contentIds' => null,\r\n\t\t\t\t\t\t\t\t'featuredRefId' => null,\r\n\t\t\t\t\t\t\t\t'contentRefIds' => null,\r\n\t\t\t\t\t\t\t\t'contentType' => 0,\r\n\t\t\t\t\t\t\t\t'target' => 'videoPlayer',\r\n\t\t\t\t\t\t\t\t'featuredId' => NAN,\r\n\t\t\t\t\t\t\t\t'contentId' => $contentId\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t)\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)\r\n);\r\n\r\n\r\n// FALLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n$post = brightcove_encode($a_encodear);\r\ndbug(base64_encode($post));\r\n//dbug_r(brightcove_decode($post));\r\n\r\n//dbug_r(brightcove_decode(base64_decode('AAMAAAABAEZjb20uYnJpZ2h0Y292ZS5leHBlcmllbmNlLkV4cGVyaWVuY2VSdW50aW1lRmFjYWRlLmdldERhdGFGb3JFeHBlcmllbmNlAAIvMQAAAhYKAAAAAgIAKDcyOTBiYTVlOTQzZGM0MmI3ZDY4NmE1NjJmOTZkNWI0MGI0ZjE3OTIRCmNjY29tLmJyaWdodGNvdmUuZXhwZXJpZW5jZS5WaWV3ZXJFeHBlcmllbmNlUmVxdWVzdBlkZWxpdmVyeVR5cGUHVVJMGWV4cGVyaWVuY2VJZCFjb250ZW50T3ZlcnJpZGVzE3BsYXllcktleRFUVExUb2tlbgV/////4AAAAAaBZ2h0dHA6Ly90dm9sdWNpb24uZXNtYXMuY29tL3RlbGVub3ZlbGFzL2RyYW1hL2xhLXJvc2EtZGUtZ3VhZGFsdXBlLzIzNjM0OS9yb3NhLWd1YWRhbHVwZS1wZXF1ZW5hLWdyYW4taGlzdG9yaWEtYW1vci8FQmK3VgGnIAAJAwEKgQNTY29tLmJyaWdodGNvdmUuZXhwZXJpZW5jZS5Db250ZW50T3ZlcnJpZGUNdGFyZ2V0FWZlYXR1cmVkSWQTY29udGVudElkG2ZlYXR1cmVkUmVmSWQVY29udGVudElkcxljb250ZW50UmVmSWQbY29udGVudFJlZklkcxdjb250ZW50VHlwZQYXdmlkZW9QbGF5ZXIFf////+AAAAAFQoNbrQiDiAABAQEBBAAGZUFRfn4sQUFBQUVVQTI4dmt+LFpacVhMWXRGdy1BREIyU3BlSGZCUjNjeXJDa3ZJckFlBgE=')));\r\n\r\n\r\n\r\n\r\n\r\ndbug('a descargar: '.$messagebroker);\r\n$t = brightcove_curl_web($messagebroker, $post);\r\n$res_decoded=brightcove_decode($t);\r\ndbug_r($res_decoded);\r\n\r\n$titulo1=$res_decoded['data']->getAMFData();\r\n$titulo2=$titulo1['programmedContent']['videoPlayer']->getAMFData();\r\n\r\ndbug_r($titulo2);\r\n\r\n\r\n\r\n$titulo3=$titulo2['mediaDTO']->getAMFData();\r\n\r\n$titulo=$titulo3['displayName'];\r\n\r\n\r\n\r\n\r\n\r\n//scar todas las URL\r\n//preg_match_all('@http(s)?://[a-z0-9A-Z.?/%_=~-]+@i', $t, $match); \r\npreg_match_all('@http(s)?://[a-z0-9A-Z./%_-]+@i', $t, $match); \r\n\r\n//buscar qué URLs son las pics y los vídeos para usarlas\r\ndbug_r($match[0]);\r\n\r\n\r\n$imagen=$match[0][1];\r\n\r\n\r\n\r\n\r\n\r\n\r\n$urls_total=count($match[0]);\r\nfor($i=0;$i<$urls_total;$i++){\r\n\tif(esVideoAudioAnon($match[0][$i]))\r\n\t\t$obtenido['enlaces'][] = array(\r\n\t\t\t'url' => strtr($match[0][$i],array('http://tvnhds.tvolucion.com/z/'=>'http://tvnpod.tvolucion.com/')),\r\n\t\t\t'tipo' => 'http'\r\n\t\t);\r\n}\r\n\r\n}\r\n\r\n\r\n\r\n$obtenido['titulo']=$titulo;\r\n$obtenido['imagen']=$imagen;\r\n\r\nfinalCadena($obtenido,false);\r\n}", "title": "" }, { "docid": "084c6f407fae55a1b480129107abca9c", "score": "0.622899", "text": "function chercher_banniere($position='', $rayon ='', $diffusion ='') {\r\n\r\n\t// Champs à récupérer\r\n\t// $champs = array('id_banniere', 'alt');\r\n\t\r\n\t\r\n\t// dans le cas du local il peut y avoir plusieurs codes postaux séparés par des virgules\r\n\t// dans les autres cas il n'y a qu'une valeur\r\n\tif ($rayon =='local'){\r\n\t\t$ou = 'diffusion LIKE \"%'.$diffusion.'%\"';\r\n\t} else {\r\n\t\t$ou = 'diffusion ='.sql_quote($diffusion);\r\n\t}\r\n\t\r\n\t// construction des conditions de la requette\r\n\t$where = array( \r\n\t\t'debut<=CURRENT_DATE()',\r\n\t\t'fin>=CURRENT_DATE()',\r\n\t\t'rayon='.sql_quote($rayon),\r\n\t\t'position='.sql_quote($position),\r\n\t\t$ou,\r\n\t);\r\n\t\r\n\t// On récupère les données dans la base \r\n\t// $data=sql_fetsel($champs, \"spip_bannieres\", $where,'','RAND()', $limit = '1');\r\n\t$data=sql_fetsel(\"*\", \"spip_bannieres\", $where,'','RAND()', $limit = '1');\r\n\r\nreturn $data;\r\n\r\n}", "title": "" }, { "docid": "1d13b01de4ff4d45c69de27199e92a8d", "score": "0.6223855", "text": "function conversorAdolar($cantidad, $tasa)\r\n{\r\n $cambio = $cantidad / $tasa;\r\n return $cambio;\r\n}", "title": "" }, { "docid": "d93cb22f67ea82417b591442af4a0e06", "score": "0.6216392", "text": "function eps_anterior_tae($mes, $idestudiantegeneral, $objetobase) {\n\n $fechainiciomes = formato_fecha_mysql(\"01/\" . $mes);\n $fechafinalmes = formato_fecha_mysql(final_mes_fecha(\"01/\" . $mes));\n\n $condicion = \"and no.nombrecortonovedadarp='TAE' and\n\t\t\t\t\tes.idestudiantegeneral=en.idestudiantegeneral and\n\t\t\t\t\ten.idnovedadarp=no.idnovedadarp and\n\t\t\t\t\ten.codigoestado like '1%' and\n\t\t\t\t\t(en.fechainicioestudiantenovedadarp between '$fechainiciomes' and '$fechafinalmes')\";\n $datosvalidarnovedad = $objetobase->recuperar_datos_tabla(\"estudiantegeneral es, estudiantenovedadarp en, novedadarp no\", \"es.idestudiantegeneral\", $idestudiantegeneral, $condicion, '', 0);\n $condicion = \"and en.idempresasalud=em.idempresasalud\";\n $datosnovedadanterior = $objetobase->recuperar_datos_tabla(\"estudiantenovedadarp en, empresasalud em\", \"en.idestudiantenovedadarp\", $datosvalidarnovedad['idestudiantenovedadarporigen'], $condicion);\n //$datosempresasaludanterior=$objetobase->recuperar_datos_tabla(\"empresasalud em\",\"em.idempresasalud\",$datosnovedadanterior['idempresasalud']);\n return $datosnovedadanterior;\n}", "title": "" }, { "docid": "d8e6ba0dd220d300057ff5b0c3ad518c", "score": "0.62143654", "text": "function acertaPlacar(){\n\t\t$this->acertosPlacar++;\n\t}", "title": "" }, { "docid": "062335bef3eed0aae016a438b618ce7a", "score": "0.6213538", "text": "function consultar_traspaso($nro_traspaso,$conectar){\r\n $sql02=\"select fec_movi as fec_movi, hora_movi as hora_movi, cod_usuario as cod_usuario, cod_alm_origen as cod_alm_origen, \r\n num_doc_ref as num_doc_ref, nota as nota, cod_alm_destino as cod_alm_destino from t_traspaso_heder where NUM_TRASPASO = \r\n '$nro_traspaso'\"; \t\t\r\n $resultado=mysql_query($sql02,$conectar) or die(\"Problemas en la Sentencia SQL I\".mysql_error());\r\n if(mysql_num_rows($resultado)>0) {\r\n $reg=mysql_fetch_assoc($resultado);\r\n $fecha_mov=$reg[\"fec_movi\"];\r\n $doc_ref=$reg[\"num_doc_ref\"];\r\n $detalle_sol=$reg[\"nota\"];\r\n $cod_alm_origen=$reg[\"cod_alm_origen\"];\r\n\t $desc_almacen1=consultar_almacen($cod_alm_origen,$conectar);\r\n $cod_alm_destino=$reg[\"cod_alm_destino\"];\r\n\t $desc_almacen2=consultar_almacen($cod_alm_destino,$conectar);\r\n// Llena el arreglo con los datos \r\n $valores_consul_movi = array(\r\n 0=>$fecha_mov,\r\n 1=>$doc_ref,\r\n 2=>$detalle_sol,\r\n 3=>$cod_alm_origen,\r\n 4=>$desc_almacen1,\r\n 5=>$cod_alm_destino,\r\n 6=>$desc_almacen2,\r\n );\r\n return $valores_consul_movi;\r\n }\r\n}", "title": "" }, { "docid": "148782378a04c700d2bbf9f9daa53bc3", "score": "0.62030244", "text": "public function init()\n\t{\n\t\t$cadi=$this->controlador;\n\t\t//ECHO $cadi.\" \";\n\t\t$cadi=strtoupper(trim($cadi[0]));\n\t\t//ECHO \" LA PRIMER ALETRA \".$cadi;\n\t\t$cadi=$cadi.substr($this->controlador,1);\n\t\t//echo \" el resto \".substr($this->controlador,1);\n\t\t$this->controlador=$cadi;\n\t\t\n\t\t//$this->controlador=ucwords(strtolower(trim($this->controlador)));\n\t\t//$this->nombreclase=Yii::app()->explorador->nombreclase($this->nombrecampo,$this->relaciones);\n\t\t\n\t\t\t\t\t \n\t\t\t\t\t\t\t\t \n\t\t\n\t\t\n\t\t\n\t\t\tforeach ($this->relaciones as $clave => $valor) {\n\t\t\t\t\t\t\tforeach ( $this->relaciones[$clave] as $clave2=>$valor2 ) {\n\t\t\t\t\t\t\t\t\t\t\t\t//echo $valor2.\"=???\".$campito.\"<br>\";\n\t\t\t\t\t\t\t\t\t\t\t\t// echo $relaciones[$clave][1];\n\t\t\t\t\t\t\t\t\t\t\tif ($valor2==$this->nombrecampo) {\n\t\t\t\t\t\t\t\t\t\t\t //echo \"salio\";\n\t\t\t\t\t\t\t\t\t\t\t\t$mitabla= $this->relaciones[$clave][1];\n\t\t\t\t\t\t\t\t\t\t\t\t$aliastabla=$clave;\n\t\t\t\t\t\t\t\t\t\t\t\t//echo $mitabla;\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t}\n\t\t\t\t$this->nombreclase= $mitabla;\n\t \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "befe7d6f82558e54d0d0a6fc24186951", "score": "0.6202563", "text": "function cargarAbonos($cuenta)\n{\n \n $id = 22;\n global $e;\n if (!autorizar($id, $_SESSION['USER'])){\n \n return false;\n } else {\n global $conex;\n $sql = \"select a.abono, U.NOMBRES || ' (' || A.USUARIO_GESTOR||')' AS USUARIO_GESTOR, to_char(a.fecha_deposito, 'DD/MM/YYYY') as fecha_deposito, a.monto_deposito, P.DESCRIPCION as forma_pago, to_char(a.fecha_ingreso, 'DD/MM/YYYY') as fecha_ingreso,\n B.DESCRIPCION AS BANCO, a.observacion, decode(a.status_abono,'C','CORFIMADO','NO CONFIRMADO') status_abono, a.nro_deposito, a.cuota,\n s.url\n from SR_ABONO a, tg_forma_pago p, TG_BANCO B, SR_USUARIO U, sr_soporte_abonos s\n where\n A.FORMA_PAGO = P.FORMA_PAGO(+)\n AND A.BANCO = B.BANCO(+)\n AND A.USUARIO_GESTOR = U.USUARIO\n and A.ABONO = S.ID_ABONO(+)\n and a.cuenta = '$cuenta' and a.eliminar = 'N' ORDER BY a.FECHA_INGRESO DESC\";\n $st = $conex->consulta($sql);\n $numrow = $conex->filas($st);\n\n if ($numrow > 0)\n {\n $st = $conex->consulta($sql);\n while ($fila = $conex->fetch_array($st)) \n {\n $abonos[] = $fila;\n }\n\n return $abonos;\n exit();\n\n } else\n {\n return $abonos = $e['not_tab7'];\n exit();\n }\n\n }\n}", "title": "" }, { "docid": "7e65210fefd7c5c12870c7aa6ff01c0f", "score": "0.61807287", "text": "function cl_alunocurso() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"alunocurso\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"].\"?ed56_i_escola=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed56_i_escola\"].\"&ed18_c_descr=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed18_c_descr\"].\"&ed56_i_aluno=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed56_i_aluno\"].\"&ed47_v_nome=\".@$GLOBALS[\"HTTP_POST_VARS\"][\"ed47_v_nome\"]);\n }", "title": "" }, { "docid": "e83eca6491278c3314dfac3838e2ea8a", "score": "0.6177781", "text": "function getRandom($nombre)\n /**\n *\\author Hugo Lausenaz-Pire\n *\\verificator Joseph Tabailloux\n *\\enter La fonction prend en entré $nombre, étant le nombre de fois le tirage au sort\n *\\brief Fonction qui tire au sort de nombre fois un id de livre\n *\\test Regarder à partir de la ligne 43.\n *\\return le tableau d'id de livre.\n */\n\n {\n global $bdd; /* J'importe la base de donnée en global de l'include connexion */\n $p_base = $bdd->query('SELECT COUNT(*) as compteur from objet');\n /* Requête SQL qui compte le nombre de livre */\n\n $tab = []; /*Création d'un tableau que l'on va renvoyer */\n $cpt = 0; /* Initialisation d'un compteur */\n $limite = $p_base->fetch(); /* Je parcours ma requête SQL que je stocke dans limite */\n $count = $limite['compteur'];/* Limite étant un tableau, je stock un int dans count */\n if($count < $nombre) { /* Si nombre est plus grand que count, je sécure\n en diminuant nombre qui prend alors la valeur de count */\n $nombre = $count;\n }\n /* Tant que le compteur est inférieur au nombre de livres choisis */\n while ($cpt < $nombre)\n {\n $test = rand(1, $count); /* Je génère un random entre 1 et le nb de livre de ma base */\n $trouve = False; /* J'initialise trouve en false */\n foreach ($tab as $valeur) /* Je parcours mon tableau avec la variable valeur */\n {\n\n if ($test == $valeur) /* Si random généré est un id du tableaux: */\n {\n $trouve = True; /* Ma variable trouve est vrai */\n }\n }\n if (!$trouve) { /* Si je ne trouve pas, donc if test != valeur */\n $cpt++; /* Compteur +1 pour la boucle while */\n $tab[] = $test; /* Je met le nombre généré dans le tableau, pour obtenir\n enfin un id aléatoire */\n }\n }\n return $tab; /* Je renvoit le tableau avec les id générée aléatoirement. */\n }", "title": "" }, { "docid": "fea132e2a9c9de0d0952217a9addbdfd", "score": "0.6177173", "text": "function CursoPalabra($id_curso, $tipo, $conn){\n\t// $tipo = 1 - iniciales\n\t// $tipo = 2 - palabra completa solo curso sn enseñanza\n\t// $tipo = 3 - iniciales solo curso sn enseñanza\n\t$sql_curso = \"SELECT curso.id_curso, curso.grado_curso, curso.letra_curso, tipo_ensenanza.nombre_tipo, curso.ensenanza, curso.cod_decreto \";\n\t$sql_curso = $sql_curso . \"FROM curso INNER JOIN tipo_ensenanza ON curso.ensenanza = tipo_ensenanza.cod_tipo \";\n\t$sql_curso = $sql_curso . \"WHERE (((curso.id_curso)=\".$id_curso.\")); \";\n\t$result_curso =@pg_Exec($conn,$sql_curso);\n\t$fila_curso = @pg_fetch_array($result_curso,0);\t\n\tif ( ($fila_curso['grado_curso']==1) and (($fila_curso['cod_decreto']==771982) or ($fila_curso['cod_decreto']==461987)) ){\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal2 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t}else if ( ($fila_curso['grado_curso']==1) and (($fila_curso['cod_decreto']==121987) or ($fila_curso['cod_decreto']==1521989)) ){\n\t\t$Curso_pal0 = \"PRIMER CICLO - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"PC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"PRIMER CICLO - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\n\t\t$Curso_pal3 = \"PC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t}else if ( ($fila_curso['grado_curso']==1) and ($fila_curso['cod_decreto']==1000)){\n\t\t$Curso_pal0 = \"SALA CUNA - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"SC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"SALA CUNA - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t$Curso_pal3 = \"SC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t}else if ( ($fila_curso['grado_curso']==2) and (($fila_curso['cod_decreto']==771982) or ($fila_curso['cod_decreto']==461987)) ){\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal2 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t}else if ( ($fila_curso['grado_curso']==3) and ($fila_curso['cod_decreto']==121987) ){\n\t\t$Curso_pal0 = \"SEGUNDO CICLO - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"SC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"SEGUNDO CICLO - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"SC - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t}else if ( ($fila_curso['grado_curso']==2) and ($fila_curso['cod_decreto']==1000)){\n\t\t$Curso_pal0 = \"NIVEL MEDIO MENOR - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"NMME - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"NIVEL MEDIO MENOR - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"NMME - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t}else if (($fila_curso['grado_curso']==3) and (($fila_curso['cod_decreto']==771982) or ($fila_curso['cod_decreto']==461987)) ){\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t \n\t\t$Curso_pal1 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t \t\t\n\t\t$Curso_pal2 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t \n\t\t$Curso_pal3 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t \t\t\n\t}else if ( ($fila_curso['grado_curso']==4) and (($fila_curso['cod_decreto']==771982) or ($fila_curso['cod_decreto']==771982)) ){\n\t\t$Curso_pal0 = \"CUARTO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t \n\t\t$Curso_pal1 = \"CN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t \t\t\n\t\t$Curso_pal2 = \"CUARTO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t \n\t\t$Curso_pal3 = \"CN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t \t\t\t\n\t}else if ( ($fila_curso['grado_curso']==3) and ($fila_curso['cod_decreto']==1000)){\n\t\t$Curso_pal0 = \"NIVEL MEDIO MAYOR - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"NMMA - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"NIVEL MEDIO MAYOR - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"NMMA - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t$Curso_pal4 = \"PLAY GROUP - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t}else if ( ($fila_curso['grado_curso']==4) and ($fila_curso['cod_decreto']==1000)){\n\t\t$Curso_pal0 = \"TRANSICIÓN 1er NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"T1N - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"TRANSICIÓN 1er NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\n\t\t$Curso_pal3 = \"T1N - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t$Curso_pal4 = \"PRE KINDER - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t}else if ( ($fila_curso['grado_curso']==5) and ($fila_curso['cod_decreto']==1000)){\n\t\t$Curso_pal0 = \"TRANSICIÓN 2do NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\t\t$Curso_pal1 = \"T2N - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\t\t$Curso_pal2 = \"TRANSICIÓN 2do NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t$Curso_pal3 = \"T2N - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\n\t$Curso_pal4 = \"KINDER - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\t\n\t}else if ( ($fila_curso['grado_curso']>0) and ($fila_curso['grado_curso']<5 ) and ($fila_curso['cod_decreto']==771982)){\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"PN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\n\n\t\t\n\n\t}else if ( (($fila_curso['grado_curso']==5) or ($fila_curso['grado_curso']==6 )) and ($fila_curso['cod_decreto']==771982)){\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"SN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\n\n\n\n\t}else if ( (($fila_curso['grado_curso']==7) or ($fila_curso['grado_curso']==8 )) and ($fila_curso['cod_decreto']==771982)){\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"TN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\n\n\n\n\t}else if ( (($fila_curso['grado_curso']>0) and ($fila_curso['grado_curso']<5 )) and ($fila_curso['cod_decreto']==461987)){\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"PN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\t\t\t\t\n\n\n\n\t}else if ( (($fila_curso['grado_curso']==5) or ($fila_curso['grado_curso']==6 )) and ($fila_curso['cod_decreto']==461987)){\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"SN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\t\t\t\t\n\n\n\n\t}else if ( (($fila_curso['grado_curso']==1)) and ($fila_curso['cod_decreto']==2392004)){\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"PN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal2 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\n\t\t\n\t}else if ( (($fila_curso['grado_curso']==2)) and ($fila_curso['cod_decreto']==5842007)){\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"PN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"PRIMER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"PN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t\n\t}else if ( (($fila_curso['grado_curso']==3)) and ($fila_curso['cod_decreto']==5842007)){\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"SN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t}else if ((($fila_curso['grado_curso']==4)) and ($fila_curso['cod_decreto']==5842007)){\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal2 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\t\n\t}else if ( (($fila_curso['grado_curso']==7) or ($fila_curso['grado_curso']==8)) and ($fila_curso['cod_decreto']==461987)){\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"TN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t}else if ( (($fila_curso['grado_curso']==8)) and ($fila_curso['cod_decreto']==2392004)){\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"TN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"TERCER NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"TN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t}else if ( (($fila_curso['grado_curso']==3)) and ($fila_curso['cod_decreto']==2392004)){\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\n\n\t\t$Curso_pal1 = \"SN- \". ucwords(strtoupper($fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo']));\t\t\n\n\t\t$Curso_pal0 = \"SEGUNDO NIVEL - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\n\n\t\t$Curso_pal3 = \"SN - \". ucwords(strtoupper($fila_curso[\"letra_curso\"]));\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t}else{\n\n\t\t$Curso_pal0 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \" - \" . $fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo'])); \n\n\t\t$Curso_pal1 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \" - \" . $fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo'])); \t\t\n\n\t\t$Curso_pal2 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \" - \" . $fila_curso[\"letra_curso\"])); \t\t\n\n\t\t$Curso_pal3 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \" - \" . $fila_curso[\"letra_curso\"])); \t\n\t\t$Curso_pal4 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \" - \" . $fila_curso[\"letra_curso\"]. $fila_curso['nombre_tipo'])); \n\t\t//$Curso_pal4 = ucwords(strtoupper($fila_curso[\"grado_curso\"] . \"º AÑO DE \" . $fila_curso['nombre_tipo']));\n\t\t\n\t\t$Curso_pal5 = ucwords(strtoupper(\"AÑO DE \".$fila_curso['nombre_tipo'])); \t\t\n\t\n\t}\n\n\tif ($tipo == 0)\n\n\t\treturn $Curso_pal0;\n\n\tif ($tipo == 1)\n\n\t\treturn $Curso_pal1;\n\n\tif ($tipo == 2)\n\n\t\treturn $Curso_pal2;\n\n\tif ($tipo == 3)\n\n\t\treturn $Curso_pal3;\t\t\t\t\n\n\tif ($tipo == 4)\n\n\t\treturn $Curso_pal4;\t\t\t\t\n\n\tif ($tipo == 5)\n\n\t\treturn $Curso_pal5;\t\t\t\t\n\n}", "title": "" }, { "docid": "a3093b2f8f980a9e285e74bcca1e72ae", "score": "0.61769354", "text": "function ComentarioLeido($id){\n\n}", "title": "" }, { "docid": "cee8115de9de36dc2d8c76fe8b470c51", "score": "0.61751527", "text": "function Inicial() {\n extract($GLOBALS);\n global $w_Disabled;\n global $w_embed;\n if (is_array($_REQUEST['w_chave'])) {\n $itens = $_REQUEST['w_chave'];\n } else {\n $itens = explode(',', $_REQUEST['w_chave']);\n }\n $w_envio = $_REQUEST['w_envio'];\n $w_despacho = $_REQUEST['w_despacho'];\n $w_tipo = $_REQUEST['w_tipo'];\n\n if ($O=='L') {\n if ((strpos(upper($R),'REL_')!==false) || ($w_tipo=='WORD')) {\n $w_filtro='';\n\n if (nvl($p_solic_pai,'')!='') {\n $sql = new db_getSolicCL; $RS = $sql->getInstanceOf($dbms,f($RS,'sq_menu'),$w_usuario,Nvl($_REQUEST['p_agrega'],$SG),3,\n $p_ini_i,$p_ini_f,$p_fim_i,$p_fim_f,$p_atraso,$p_solicitante,$p_unidade,$p_prioridade,$p_ativo,$p_proponente,\n $p_chave, $p_assunto, $p_tipo_material,$p_seq_protocolo,$p_situacao,$p_ano_protocolo, $p_usu_resp,$p_uorg_resp, \n $p_palavra, $p_prazo, $p_fase, $p_sqcc, $p_projeto, $p_atividade, $p_acao_ppa, null, $p_empenho, $p_servico, $p_moeda,\n null,null,null,null,$p_pais, $p_regiao, $p_uf, $p_cidade);\n if($w_tipo=='WORD') $w_filtro.='<tr valign=\"top\"><td align=\"right\">Vinculação <td>[<b>'.exibeSolic($w_dir,$p_projeto,f($RS,'dados_solic'),'S','S').'</b>]';\n else $w_filtro.='<tr valign=\"top\"><td align=\"right\">Vinculação <td>[<b>'.exibeSolic($w_dir,$p_projeto,f($RS,'dados_solic'),'S').'</b>]';\n } elseif ($p_sqcc>'') {\n $w_linha++;\n $sql = new db_getCCData; $RS = $sql->getInstanceOf($dbms,$p_sqcc);\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Classificação <td>[<b>'.f($RS,'nome').'</b>]';\n } elseif ($p_projeto>'') {\n $sql = new db_getSolicData; $RS = $sql->getInstanceOf($dbms,$p_projeto,'PJGERAL');\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Projeto <td>[<b><A class=\"HL\" HREF=\"projeto.php?par=Visual&O=L&w_chave='.$p_projeto.'&w_tipo=Volta&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\" title=\"Exibe as informações do projeto.\">'.f($RS,'titulo').'</a></b>]';\n } elseif (nvl($p_servico,'')!='') {\n if ($p_servico=='CLASSIF') {\n $w_filtro.='<tr valign=\"top\"><td align=\"right\">Vinculação <td>[<b>Apenas pedidos com classificação</b>]';\n } else {\n $sql = new db_getMenuData; $RS = $sql->getInstanceOf($dbms,$p_servico);\n $w_filtro.='<tr valign=\"top\"><td align=\"right\">Vinculação <td>[<b>'.f($RS,'nome').'</b>]';\n }\n } \n if (nvl($_REQUEST['p_agrega'],'')=='GRPRVINC') {\n $w_filtro.='<tr valign=\"top\"><td align=\"right\">Vinculação <td>[<b>Apenas pedidos com vinculação</b>]';\n } \n if ($p_tipo_material>'') {\n $w_linha++;\n $sql = new db_getTipoMatServ; $RS = $sql->getInstanceOf($dbms,$w_cliente,$p_tipo_material,null,null,null,null,null,null,'REGISTROS');\n foreach($RS as $row) { $RS = $row; break; }\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Tipo de material/serviço<td>[<b>'.f($RS,'nome_completo').'</b>]';\n } \n if (nvl($p_chave,'')!='') {\n $sql = new db_getSolicCL; $RS = $sql->getInstanceOf($dbms,f($RS,'sq_menu'),$w_usuario,Nvl($_REQUEST['p_agrega'],$SG),3,\n $p_ini_i,$p_ini_f,$p_fim_i,$p_fim_f,$p_atraso,$p_solicitante,$p_unidade,$p_prioridade,$p_ativo,$p_proponente,\n $p_chave, $p_assunto, $p_tipo_material,$p_seq_protocolo,$p_situacao,$p_ano_protocolo, $p_usu_resp,$p_uorg_resp, \n $p_palavra, $p_prazo, $p_fase, $p_sqcc, $p_projeto, $p_atividade, $p_acao_ppa, null, $p_empenho, $p_servico, \n $p_moeda,null,null,null,null, $p_pais, $p_regiao, $p_uf, $p_cidade);\n $w_filtro.='<tr valign=\"top\"><td align=\"right\">Pedido <td>[<b>'.f($RS,'codigo_interno').'</b>]';\n } \n //if ($p_prazo>'') $w_filtro.=' <tr valign=\"top\"><td align=\"right\">Prazo para conclusão até<td>[<b>'.FormataDataEdicao(addDays(time(),$p_prazo)).'</b>]';\n if ($p_empenho>'') $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Código <td>[<b>'.$p_empenho.'</b>]';\n if ($p_proponente>'') { $w_linha++; $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Material<td>[<b>'.$p_proponente.'</b>]'; }\n if ($p_seq_protocolo>'' || $p_ano_protocolo>'') {\n $w_linha++;\n $w_filtro = $w_filtro.'<tr valign=\"top\"><td align=\"right\">Protocolo <td>[<b>'.(($p_seq_protocolo>'') ? str_pad($p_seq_protocolo,6,'0',PAD_RIGHT) : '*').'/'.(($p_ano_protocolo>'') ? $p_ano_protocolo : '*').'</b>]';\n } \n if ($p_usu_resp>'') {\n $w_linha++;\n $sql = new db_getLCModalidade; $RS = $sql->getInstanceOf($dbms, $p_usu_resp, $w_cliente, null, null, null, null);\n foreach($RS as $row) { $RS = $row; break; }\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Modalidade <td>[<b>'.f($RS,'nome').'</b>]';\n } \n if ($p_moeda>'') {\n $w_linha++;\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Moeda <td>[<b>'.$w_nm_moeda.'</b>]';\n } \n if ($p_assunto>'') { $w_linha++; $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Código externo <td>[<b>'.$p_assunto.'</b>]'; }\n if ($p_solicitante>'') {\n $sql = new db_getPersonData; $RS = $sql->getInstanceOf($dbms,$w_cliente,$p_solicitante,null,null);\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Solicitante <td>[<b>'.f($RS,'nome_resumido').'</b>]';\n } \n if ($p_situacao>'') {\n $w_linha++;\n $sql = new db_getLCSituacao; $RS = $sql->getInstanceOf($dbms, $p_situacao, $w_cliente, null, null, null, null, null, null);\n foreach ($RS as $row) {\n $w_filtro = $w_filtro.'<tr valign=\"top\"><td align=\"right\">Situação do certame <td>[<b>'.f($row,'nome').'</b>]';\n break;\n }\n } \n if ($p_unidade>'') {\n $sql = new db_getUorgData; $RS = $sql->getInstanceOf($dbms,$p_unidade);\n $w_filtro .= '<tr valign=\"top\"><td align=\"right\">Unidade solicitante <td>[<b>'.f($RS,'nome').'</b>]';\n }\n if ($p_ini_i>'') $w_filtro.='<tr valign=\"top\"><td align=\"right\">Eventos do certame <td>[<b>'.$p_ini_i.'-'.$p_ini_f.'</b>]';\n if ($p_fim_i>'') $w_filtro.='<tr valign=\"top\"><td align=\"right\">Autorização <td>[<b>'.$p_fim_i.'-'.$p_fim_f.'</b>]';\n if ($p_cnpj>'') $w_filtro.='<tr valign=\"top\"><td align=\"right\">CPF/CNPJ <td>[<b>'.$p_cnpj.'</b>]';\n if ($p_fornecedor>'') $w_filtro.='<tr valign=\"top\"><td align=\"right\">Fornecedor <td>[<b>'.$p_fornecedor.'</b>] (busca em qualquer parte do nome)';\n if ($p_vencedor>'') { $w_linha++; $w_filtro.='<tr valign=\"top\"><td align=\"right\">Apenas certames com indicação de vencedor <td>[<b>Sim</b>]'; }\n if ($p_externo>'') $w_filtro.='<tr valign=\"top\"><td align=\"right\">Código '.(($w_cliente==6881) ? 'SA' : 'externo').' <td>[<b>Sim</b>]';\n if ($w_filtro>'') $w_filtro ='<table border=0><tr valign=\"top\"><td><b>Filtro:</b><td nowrap><ul>'.$w_filtro.'</ul></tr></table>';\n } \n \n $SQL = \"select a.sq_menu, a.sq_modulo, a.nome,\" .$crlf.\n \" a.tramite, a.ultimo_nivel, a.p1,\" .$crlf.\n \" a.p2, a.p3, a.p4,\" .$crlf.\n \" a.sigla, a.descentralizado, a.externo,\" .$crlf.\n \" a.acesso_geral, a.sq_unid_executora, a1.nome as nm_modulo,\" .$crlf.\n \" a1.sigla as sg_modulo,\" .$crlf.\n \" b.sq_siw_solicitacao, b.sq_siw_tramite, b.solicitante,\" .$crlf.\n \" b.cadastrador, b.executor, b.descricao as objeto,\" .$crlf.\n \" b.justificativa, b.inicio, b.fim,\" .$crlf.\n \" b.inclusao, b.ultima_alteracao, b.conclusao,\" .$crlf.\n \" b.valor, b.palavra_chave, b.sq_solic_pai,\" .$crlf.\n \" b.sq_unidade, b.sq_cidade_origem,\" .$crlf.\n \" coalesce(d.numero_certame, b.codigo_interno, to_char(b.sq_siw_solicitacao)) as codigo_interno,\" .$crlf.\n \" codigo2numero(coalesce(d.numero_certame, b.codigo_interno, to_char(b.sq_siw_solicitacao))) as ord_codigo_interno,\" .$crlf.\n \" b.codigo_externo, b.titulo, acentos(b.titulo) as ac_titulo,\" .$crlf.\n \" b.sq_plano, b.sq_cc, b.observacao,\" .$crlf.\n \" b.protocolo_siw, b.recebedor,\" .$crlf.\n \" to_char(b.inclusao,'dd/mm/yyyy, hh24:mi:ss') as phpdt_inclusao,\" .$crlf.\n \" to_char(b.conclusao,'dd/mm/yyyy, hh24:mi:ss') as phpdt_conclusao,\" .$crlf.\n \" case when b.sq_solic_pai is null\" .$crlf.\n \" then case when b.sq_plano is null\" .$crlf.\n \" then case when n.sq_cc is null\" .$crlf.\n \" then '???'\" .$crlf.\n \" else 'Classif: '||n.nome\" .$crlf.\n \" end\" .$crlf.\n \" else 'Plano: '||b3.titulo\" .$crlf.\n \" end\" .$crlf.\n \" else dados_solic(b.sq_solic_pai)\" .$crlf.\n \" end as dados_pai,\" .$crlf.\n \" b1.nome as nm_tramite, b1.ordem as or_tramite,\" .$crlf.\n \" b1.sigla as sg_tramite, b1.ativo, b1.envia_mail,\" .$crlf.\n \" b2.acesso,\" .$crlf.\n \" b6.sq_moeda, b6.codigo cd_moeda, b6.nome nm_moeda,\" .$crlf.\n \" b6.sigla sg_moeda, b6.simbolo sb_moeda, b6.ativo at_moeda,\" .$crlf.\n \" b7.sq_moeda sq_moeda_alt, b7.codigo cd_moeda_alt, b7.nome nm_moeda_alt,\" .$crlf.\n \" b7.sigla sg_moeda_alt, b7.simbolo sb_moeda_alt, b7.ativo at_moeda_alt,\" .$crlf.\n \" case when b6.sq_moeda is not null and b7.sq_moeda is not null\" .$crlf.\n \" then conversao(a.sq_pessoa, coalesce(b.inicio, b.inclusao), b6.sq_moeda, b7.sq_moeda, b.valor, 'V')\" .$crlf.\n \" else 0\" .$crlf.\n \" end valor_alt,\" .$crlf.\n \" c.informal, c.sq_tipo_unidade as tp_exec,\" .$crlf.\n \" c.nome as nm_unidade_exec, c.informal as informal_exec,\" .$crlf.\n \" c.vinculada as vinc_exec,c.adm_central as adm_exec,\" .$crlf.\n \" a3.sq_pessoa as tit_exec,a4.sq_pessoa as subst_exec,\" .$crlf.\n \" c.vinculada, c.adm_central,\" .$crlf.\n \" d.sq_especie_documento, d.sq_eoindicador,\" .$crlf.\n \" d.sq_eoindicador, d.sq_lcfonte_recurso, d.sq_lcmodalidade,\" .$crlf.\n \" d.sq_lcjulgamento, d.sq_lcsituacao, d.sq_unidade as sq_unidade_pai,\" .$crlf.\n \" d.numero_original, d.data_recebimento,\" .$crlf.\n \" d.indice_base, d.tipo_reajuste,\" .$crlf.\n \" d.limite_variacao, d.data_homologacao, d.data_diario_oficial,\" .$crlf.\n \" d.pagina_diario_oficial, d.financeiro_unico, d.decisao_judicial,\" .$crlf.\n \" d.numero_ata, d.numero_certame, d.arp,\" .$crlf.\n \" d.prioridade, d.aviso_prox_conc, d.dias_aviso,\" .$crlf.\n \" d.sq_especificacao_despesa, d.interno, d.dias_validade_proposta,\" .$crlf.\n \" d.sq_financeiro, d.nota_conclusao, d.data_abertura,\" .$crlf.\n \" d.envelope_1, d.envelope_2, d.envelope_3,\" .$crlf.\n \" to_char(d.data_abertura,'dd/mm/yyyy, hh24:mi:ss') phpdt_data_abertura,\" .$crlf.\n \" to_char(d.envelope_1,'dd/mm/yyyy, hh24:mi:ss') phpdt_envelope_1,\" .$crlf.\n \" to_char(d.envelope_2,'dd/mm/yyyy, hh24:mi:ss') phpdt_envelope_2,\" .$crlf.\n \" to_char(d.envelope_3,'dd/mm/yyyy, hh24:mi:ss') phpdt_envelope_3,\" .$crlf.\n \" d.fundo_fixo, d.sq_modalidade_artigo, coalesce(d.data_homologacao, b.conclusao) as data_autorizacao,\" .$crlf.\n \" case d.prioridade when 0 then 'Alta' when 1 then 'Média' else 'Normal' end as nm_prioridade,\" .$crlf.\n \" case d.tipo_reajuste when 0 then 'Não permite' when 1 then 'Com índice' else 'Sem índice' end as nm_tipo_reajuste,\" .$crlf.\n \" case when b.protocolo_siw is null\" .$crlf.\n \" then d.processo\" .$crlf.\n \" else to_char(b5.numero_documento)||'/'||substr(to_char(b5.ano),3)\" .$crlf.\n \" end as processo,\" .$crlf.\n \" case when b5.prefixo is null\" .$crlf.\n \" then null\" .$crlf.\n \" else to_char(b5.prefixo)||'.'||substr(1000000+to_char(b5.numero_documento),2,6)||'/'||to_char(b5.ano)||'-'||substr(100+to_char(b5.digito),2,2)\" .$crlf.\n \" end as protocolo_completo,\" .$crlf.\n \" cast(b.fim as date)-cast(d.dias_aviso as integer) as aviso,\" .$crlf.\n \" d4.nome as nm_lcmodalidade, d4.certame, d4.minimo_pesquisas, d4.minimo_participantes, d4.minimo_propostas_validas,\" .$crlf.\n \" d4.enquadramento_inicial, d4.enquadramento_final, d4.sigla as sg_lcmodalidade,\" .$crlf.\n \" d4.descricao as ds_lcmodalidade, d4.gera_contrato,\" .$crlf.\n \" d41.sigla as sg_modalidade_artigo, d41.descricao as ds_modalidade_artigo,\" .$crlf.\n \" d4.nome||' - '||d41.sigla as nm_enquadramento,\" .$crlf.\n \" d5.nome as nm_lcjulgamento, d5.item tipo_julgamento,\" .$crlf.\n \" d6.nome as nm_lcsituacao, d6.conclui_sem_proposta, d6.tela_exibicao, d6.codigo_externo cd_situacao,\" .$crlf.\n \" d7.nome as nm_especie_documento,\" .$crlf.\n \" e.sq_tipo_unidade, e.nome as nm_unidade_resp, e.informal as informal_resp,\" .$crlf.\n \" e.vinculada as vinc_resp,e.adm_central as adm_resp, e.sigla sg_unidade_resp,\" .$crlf.\n \" e.ordem or_unidade_resp,\" .$crlf.\n \" e1.sq_pessoa as titular, e2.sq_pessoa as substituto,\" .$crlf.\n \" f.sq_pais, f.sq_regiao, f.co_uf,\" .$crlf.\n \" m.sq_menu as sq_menu_pai,\" .$crlf.\n \" n.sq_cc, n.nome as nm_cc, n.sigla as sg_cc,\" .$crlf.\n \" o.nome_resumido as nm_solic, o.nome_resumido_ind as nm_solic_ind,\" .$crlf.\n \" p.nome_resumido as nm_exec, p.nome_resumido_ind as nm_exec_ind,\" .$crlf.\n \" q.nome_resumido as nm_recebedor, p.nome_resumido_ind as nm_recebedor_ind,\" .$crlf.\n \" s.cgccpf cnpj_fabs, s.nome fb_fornecedor,\" .$crlf.\n \" s.automatico_sa, s.certificacao, s.ds_sa, s.link,\" .$crlf.\n \" case when s.cgccpf is not null and s.cgccpf <> nvl(d31.cnpj,d32.cpf) and d2.vencedor = 'S' then 'X' end erro,\" .$crlf.\n \" d2.fornecedor, d2.vencedor, nvl(d31.cnpj,d32.cpf) lic_cnpj, d3.nome nm_fornecedor,\" .$crlf.\n \" d11.nome nm_material,\" .$crlf.\n \" d1.ordem or_item, d1.quantidade_autorizada qtd, d2.valor_unidade vl_unit_item, d2.valor_item vl_total_item\" .$crlf.\n \" from siw_menu a\" .$crlf.\n \" inner join siw_modulo a1 on (a.sq_modulo = a1.sq_modulo)\" .$crlf.\n \" inner join eo_unidade c on (a.sq_unid_executora = c.sq_unidade)\" .$crlf.\n \" inner join siw_solicitacao b on (a.sq_menu = b.sq_menu)\" .$crlf.\n \" inner join (select x.sq_siw_solicitacao, acesso(x.sq_siw_solicitacao,\".$w_usuario.\",null) as acesso\" .$crlf.\n \" from siw_solicitacao x\" .$crlf.\n \" inner join cl_solicitacao x1 on (x.sq_siw_solicitacao = x1.sq_siw_solicitacao)\" .$crlf.\n \" inner join siw_menu y on (x.sq_menu = y.sq_menu and\" .$crlf.\n \" y.sq_menu = coalesce(\".$P2.\", y.sq_menu)\" .$crlf.\n \" )\" .$crlf.\n \" ) b2 on (b.sq_siw_solicitacao = b2.sq_siw_solicitacao)\" .$crlf.\n \" inner join siw_tramite b1 on (b.sq_siw_tramite = b1.sq_siw_tramite)\" .$crlf.\n \" inner join cl_solicitacao d on (b.sq_siw_solicitacao = d.sq_siw_solicitacao)\" .$crlf.\n \" inner join cl_solicitacao_item d1 on (b.sq_siw_solicitacao = d1.sq_siw_solicitacao)\" .$crlf.\n \" inner join cl_item_fornecedor d2 on (d1.sq_solicitacao_item = d2.sq_solicitacao_item and\" .$crlf.\n \" d2.pesquisa = 'N'\" .$crlf.\n \" )\" .$crlf.\n \" inner join co_pessoa d3 on (d2.fornecedor = d3.sq_pessoa)\" .$crlf.\n \" left join co_pessoa_juridica d31 on (d3.sq_pessoa = d31.sq_pessoa)\" .$crlf.\n \" left join co_pessoa_fisica d32 on (d3.sq_pessoa = d32.sq_pessoa)\" .$crlf.\n \" inner join cl_material d11 on (d1.sq_material = d11.sq_material)\" .$crlf.\n \" inner join eo_unidade e on (b.sq_unidade = e.sq_unidade)\" .$crlf.\n \" inner join co_cidade f on (b.sq_cidade_origem = f.sq_cidade)\" .$crlf.\n \" left join pe_plano b3 on (b.sq_plano = b3.sq_plano)\" .$crlf.\n \" left join pj_projeto b4 on (b.sq_solic_pai = b4.sq_siw_solicitacao)\" .$crlf.\n \" left join pa_documento b5 on (b.protocolo_siw = b5.sq_siw_solicitacao)\" .$crlf.\n \" left join co_moeda b6 on (b.sq_moeda = b6.sq_moeda)\" .$crlf.\n \" left join co_moeda b7 on (b6.ativo = b7.ativo and\" .$crlf.\n \" b7.sigla = case coalesce(b6.sigla,'-')\" .$crlf.\n \" when 'USD' then 'BRL'\" .$crlf.\n \" when 'BRL' then 'USD'\" .$crlf.\n \" else '-'\" .$crlf.\n \" end\" .$crlf.\n \" )\" .$crlf.\n \" left join lc_modalidade d4 on (d.sq_lcmodalidade = d4.sq_lcmodalidade)\" .$crlf.\n \" left join lc_modalidade_artigo d41 on (d.sq_modalidade_artigo = d41.sq_modalidade_artigo)\" .$crlf.\n \" left join lc_julgamento d5 on (d.sq_lcjulgamento = d5.sq_lcjulgamento)\" .$crlf.\n \" left join lc_situacao d6 on (d.sq_lcsituacao = d6.sq_lcsituacao)\" .$crlf.\n \" left join pa_especie_documento d7 on (d.sq_especie_documento = d7.sq_especie_documento)\" .$crlf.\n \" left join eo_unidade_resp e1 on (e.sq_unidade = e1.sq_unidade and\" .$crlf.\n \" e1.tipo_respons = 'T' and\" .$crlf.\n \" e1.fim is null\" .$crlf.\n \" )\" .$crlf.\n \" left join eo_unidade_resp e2 on (e.sq_unidade = e2.sq_unidade and\" .$crlf.\n \" e2.tipo_respons = 'S' and\" .$crlf.\n \" e2.fim is null\" .$crlf.\n \" )\" .$crlf.\n \" left join siw_solicitacao m on (b.sq_solic_pai = m.sq_siw_solicitacao)\" .$crlf.\n \" left join ct_cc n on (b.sq_cc = n.sq_cc)\" .$crlf.\n \" left join co_pessoa o on (b.solicitante = o.sq_pessoa)\" .$crlf.\n \" left join co_pessoa p on (b.executor = p.sq_pessoa)\" .$crlf.\n \" left join co_pessoa q on (b.recebedor = q.sq_pessoa)\" .$crlf.\n \" left join eo_unidade_resp a3 on (c.sq_unidade = a3.sq_unidade and\" .$crlf.\n \" a3.tipo_respons = 'T' and\" .$crlf.\n \" a3.fim is null\" .$crlf.\n \" )\" .$crlf.\n \" left join eo_unidade_resp a4 on (c.sq_unidade = a4.sq_unidade and\" .$crlf.\n \" a4.tipo_respons = 'S' and\" .$crlf.\n \" a4.fim is null\" .$crlf.\n \" )\" .$crlf;\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) {\n $SQL.=\" left join (select w.automatico_sa, w.certificacao, x.handle, x.cgccpf, x.nome, y.ds_sa,\" .$crlf.\n \" seguranca.FCLinkWeb(w.automatico_sa,1,1,167) link\" .$crlf.\n \" from corporativo.un_solicitacaoadministrativa w\" .$crlf.\n \" inner join corporativo.gn_pessoas x on (w.contratado = x.handle)\" .$crlf.\n \" inner join corporativo.vw_permissao_web y on (w.certificacao = y.ordem)\" .$crlf.\n \" ) s on (b.codigo_externo = s.automatico_sa)\" .$crlf;\n } else {\n $SQL.=\" left join (select null automatico_sa, null certificacao, null handle, null cgccpf, null nome, null ds_sa, null link from dual where 1=0) s on (b.codigo_externo = s.automatico_sa)\" .$crlf;\n }\n $SQL.= \" where a.sq_menu = \".$P2.$crlf.\n \" and b1.sigla <> 'CA'\";\n if (nvl($p_vencedor,'')=='S') $SQL.=\" and d2.vencedor = '\".$p_vencedor.\"'\".$crlf;\n if (nvl($p_externo,'')!='') $SQL.=\" and b.codigo_externo is not null and acentos(b.codigo_externo) like '%'||acentos('\".$p_externo.\"')||'%'\".$crlf;\n if (nvl($p_fornecedor,'')!='') $SQL.=\" and (acentos(d3.nome,null) like '%'||acentos('\".$p_fornecedor.\"',null)||'%' or acentos(s.nome,null) like '%'||acentos('\".$p_fornecedor.\"',null)||'%')\".$crlf;\n if (nvl($p_cnpj,'')!='') $SQL.=\" and (nvl(d31.cnpj,d32.cpf) = '\".$p_cnpj.\"' or s.cgccpf = '\".$p_cnpj.\"')\".$crlf;\n if (nvl($p_moeda,'')!='') $SQL.=\" and b.sq_moeda = \".$p_moeda.$crlf;\n if (nvl($p_sq_acao_ppa,'')!='') $SQL.=\" and d.sq_modalidade_artigo = \".$p_sq_acao_ppa.$crlf;\n if (nvl($p_sq_orprior,'')!='') $SQL.=\" and b.sq_plano = \".$p_sq_orprior.$crlf;\n if (nvl($p_tipo_material,'')!='') $SQL.=\" and 0 < (select count(*) from cl_solicitacao_item x inner join cl_material y on (x.sq_material = y.sq_material) where x.sq_siw_solicitacao = b.sq_siw_solicitacao and y.sq_tipo_material in (select sq_tipo_material from cl_tipo_material connect by prior sq_tipo_material = sq_tipo_pai start with sq_tipo_material=\".$p_tipo_material.\"))\".$crlf;\n if (nvl($p_seq_protocolo,'')!='') $SQL.=\" and d.processo like '%\".$p_seq_protocolo.\"%'))\".$crlf;\n if (nvl($p_ano_protocolo,'')!='') $SQL.=\" and d.processo like '%\".$p_ano_protocolo.\"%'\".$crlf;\n if (nvl($p_usu_resp,'')!='') $SQL.=\" and d4.sq_lcmodalidade = \".$p_usu_resp.$crlf;\n if (nvl($p_uorg_resp,'')!='') $SQL.=\" and (b1.sigla <> 'AT' and e.sq_unidade = \".$p_uorg_resp.\")\".$crlf;\n if (nvl($p_sqcc,'')!='') $SQL.=\" and b.sq_cc = \".$p_sqcc.$crlf;\n if (nvl($p_projeto,'')!='') $SQL.=\" and b.sq_solic_pai = \".$p_projeto.$crlf;\n if (nvl($p_processo,'')!='') $SQL.=\" and (('\".$p_processo.\"' = 'CLASSIF' and b.sq_cc is not null) or ('\".$p_processo.\"' <> 'CLASSIF' and m.sq_menu = to_number(\".$p_processo.\")))\".$crlf;\n if (nvl($p_situacao,'')!='') $SQL.=\" and d6.sq_lcsituacao = \".$p_situacao.$crlf;\n if (nvl($p_proponente,'')!='') $SQL.=\" and 0 < (select count(*) from cl_solicitacao_item x inner join cl_material y on (x.sq_material = y.sq_material) where x.sq_siw_solicitacao = b.sq_siw_solicitacao and acentos(y.nome,null) like '%'||acentos('\".$p_proponente.\"',null)||'%')\".$crlf;\n if (nvl($p_assunto,'')!='') $SQL.=\" and acentos(b.codigo_externo,null) like '%'||acentos('\".$p_assunto.\"',null)||'%'\".$crlf;\n if (nvl($p_palavra,'')!='') $SQL.=\" and acentos(d.numero_certame,null) like '%'||acentos('\".$p_palavra.\"',null)||'%'\".$crlf;\n if (nvl($p_empenho,'')!='') $SQL.=\" and (acentos(b.codigo_interno,null) like '%'||acentos('\".$p_empenho.\"',null)||'%' or acentos(d.numero_certame,null) like '%'||acentos('\".$p_empenho.\"',null)||'%')\".$crlf;\n if (nvl($p_prioridade,'')!='') $SQL.=\" and b.executor = \".$p_prioridade.$crlf;\n if (nvl($p_ativo,'')!='') $SQL.=\" and d.decisao_judicial = '\".$p_ativo.\"'\".$crlf;\n if (nvl($p_prazo,'')!='') $SQL.=\" and (d6.sq_lcsituacao is not null and upper(d6.nome) not like '%CANCELADA%')\".$crlf;\n if (nvl($p_ini_i,'')!='') $SQL.=\" and ((trunc(d.data_abertura) between to_date('\".$p_ini_i.\"','dd/mm/yyyy') and to_date('\".$p_ini_f.\"','dd/mm/yyyy') or\".$crlf.\n \" trunc(d.envelope_1) between to_date('\".$p_ini_i.\"','dd/mm/yyyy') and to_date('\".$p_ini_f.\"','dd/mm/yyyy') or\".$crlf.\n \" trunc(d.envelope_2) between to_date('\".$p_ini_i.\"','dd/mm/yyyy') and to_date('\".$p_ini_f.\"','dd/mm/yyyy') or\".$crlf.\n \" trunc(d.envelope_3) between to_date('\".$p_ini_i.\"','dd/mm/yyyy') and to_date('\".$p_ini_f.\"','dd/mm/yyyy') or\".$crlf.\n \" coalesce(d.data_homologacao, b.conclusao) between to_date('\".$p_ini_i.\"','dd/mm/yyyy') and to_date('\".$p_ini_f.\"','dd/mm/yyyy') or\".$crlf.\n \" (b1.sigla in ('EA','EE') and d.data_abertura < to_date('\".$p_ini_f.\"','dd/mm/yyyy'))\".$crlf.\n \" )\".$crlf.\n \" )\".$crlf;\n if (nvl($p_fim_i,'')!='') $SQL.=\" and coalesce(d.data_homologacao, b.conclusao) between to_date(\".$p_fim_i.\",'dd/mm/yyyy') and to_date(\".$p_fim_f.\",'dd/mm/yyyy')))\".$crlf;\n if (nvl($p_atraso,'')!='') $SQL.=\" and d6.sq_lcsituacao is not null and upper(d6.nome) like '%CANCELADA%'\".$crlf;\n if (nvl($p_unidade,'')!='') $SQL.=\" and b.sq_unidade = \".$p_unidade.$crlf;\n if (nvl($p_solicitante,'')!='') $SQL.=\" and b.solicitante = \".$p_solicitante;\n $sql = new db_exec; $RS = $sql->getInstanceOf($dbms,$SQL,$recordcount);\n if (nvl($p_ordena,'')>'') {\n $lista = explode(',',str_replace(' ',',',$p_ordena));\n $RS = SortArray($RS,$lista[0],$lista[1],'ord_codigo_interno','asc','vencedor','desc', 'vl_total_item', 'asc');\n } else {\n $RS = SortArray($RS,'ord_codigo_interno','asc','vencedor','desc', 'vl_total_item', 'asc');\n }\n }\n \n $w_linha_pag = 0;\n headerGeral('P', $w_tipo, $w_chave, 'Consulta de '.f($RS_Menu,'nome'), $w_embed, null, null, $w_linha_pag,$w_filtro);\n \n if ($w_embed!='WORD') {\n Cabecalho();\n head();\n if ($P1==2) ShowHTML('<meta http-equiv=\"Refresh\" content=\"'.$conRefreshSec.'; URL=../'.MontaURL('MESA').'\">');\n ShowHTML('<TITLE>'.$conSgSistema.' - '.f($RS_Menu,'nome').'</TITLE>');\n ScriptOpen('Javascript');\n Modulo();\n CheckBranco();\n FormataData();\n SaltaCampo();\n ValidateOpen('Validacao');\n if (strpos('CP',$O)!==false) {\n // Se não for cadastramento ou se for cópia \n Validate('p_empenho','Código da licitação','','','2','60','1','1');\n Validate('p_ini_i','Início','DATA','','10','10','','0123456789/');\n Validate('p_ini_f','Fim','DATA','','10','10','','0123456789/');\n ShowHTML(' if ((theForm.p_ini_i.value != \\'\\' && theForm.p_ini_f.value == \\'\\') || (theForm.p_ini_i.value == \\'\\' && theForm.p_ini_f.value != \\'\\')) {');\n ShowHTML(' alert (\\'Informe ambas as datas ou nenhuma delas!\\');');\n ShowHTML(' theForm.p_ini_i.focus();');\n ShowHTML(' return false;');\n ShowHTML(' }');\n CompData('p_ini_i','Início','<=','p_ini_f','Fim');\n Validate('P4','Linhas por página','1','1','1','4','','0123456789');\n } \n ValidateClose();\n ScriptClose();\n ShowHTML('<base HREF=\"' . $conRootSIW . '\">');\n ShowHTML('</HEAD>');\n if ($w_troca > '') {\n // Se for recarga da página\n BodyOpenClean('onLoad=\"document.Form.' . $w_troca . '.focus();\\'');\n } elseif (strpos('CP', $O) !== false) {\n BodyOpenClean('onLoad=\"document.Form.p_empenho.focus();\"');\n } elseif ($P1==2) {\n BodyOpenClean(null);\n } else {\n BodyOpenClean('onLoad=\"this.focus();\"');\n }\n Estrutura_Topo_Limpo();\n Estrutura_Menu();\n Estrutura_Corpo_Abre();\n if ((strpos(upper($R),'GR_'))===false) {\n Estrutura_Texto_Abre();\n } else {\n CabecalhoRelatorio($w_cliente,'Consulta de '.f($RS_Menu,'nome'),4);\n }\n if ($w_filtro > '') ShowHTML('<div align=\"left\">'.$w_filtro.'</div>');\n }\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\n if ($O=='L') {\n if ($w_embed == 'WORD') {\n ShowHTML('<tr><td colspan=\"2\">');\n } else {\n ShowHTML('<tr><td>');\n if ((strpos(upper($R),'GR_'))===false && $w_embed!='WORD') {\n if (strpos(str_replace('p_ordena','w_ordena',MontaFiltro('GET')),'p_')) {\n ShowHTML(' <a accesskey=\"F\" class=\"SS\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=P&P1='.$P1.'&P2='.$P2.'&P3=1&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\"><u><font color=\"#BC5100\">F</u>iltrar (Ativo)</font></a>');\n } else {\n ShowHTML(' <a accesskey=\"F\" class=\"SS\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=P&P1='.$P1.'&P2='.$P2.'&P3=1&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\"><u>F</u>iltrar (Inativo)</a>');\n } \n }\n }\n ShowHTML(' <td align=\"right\"><b>'.exportaOffice().'Registros: '.count($RS));\n ShowHTML('<tr><td align=\"center\" colspan=3>');\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\n $colspan = 0;\n $rowspan = 1;\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) $rowspan = 2;\n if ($w_embed!='WORD') {\n if (nvl($p_vencedor,'')=='') { $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Vencedor','vencedor').'</td>'); }\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('CPF/CNPJ','lic_cnpj').'</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Fornecedor','nm_fornecedor').'</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Código','ord_codigo_interno').'</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Objeto','objeto').'</td>');\n $colspan++; ShowHTML (' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Vinculação','dados_pai').'</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Modalidade','sg_lcmodalidade').'</td>');\n// if ($w_pa=='S' || $w_segmento=='Público') { $colspan++; ShowHTML (' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Processo','processo').'</td>'); }\n// $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Solicitante','sg_unidade_resp').'</td>');\n// //$colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Data limite','fim').'</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Item','nm_material').'</td>');\n ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Valor'.(($w_sb_moeda>'') ? ' ('.$w_sb_moeda.')' : ''),'valor').'</td>');\n// if ($P1!=1) {\n// ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Situação','nm_lcsituacao').'</td>');\n// if ($w_embed!='WORD') ShowHTML(' <td rowspan=\"'.$rowspan.'\" class=\"remover\" width=\"1\">&nbsp;</td>');\n// ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>'.LinkOrdena('Executor','nm_exec').'</td>');\n// }\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) ShowHTML(' <td colspan=\"2\"><b>SA</td>');\n ShowHTML(' </tr>');\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) {\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\n ShowHTML(' <td><b>'.LinkOrdena('Código','automatico_sa').'</td>');\n ShowHTML(' <td><b>'.LinkOrdena('Fase','ds_sa').'</td>');\n ShowHTML(' </tr>');\n }\n } else {\n if (nvl($p_vencedor,'')=='') { $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Vencedor</td>'); }\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>CPF/CNPJ</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Fornecedor</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Código</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Objeto</td>');\n $colspan++; ShowHTML (' <td rowspan=\"'.$rowspan.'\"><b>Vinculação</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Modalidade</td>');\n// if ($w_pa=='S' || $w_segmento=='Público') { $colspan++; ShowHTML (' <td rowspan=\"'.$rowspan.'\"><b>Processo</td>'); }\n// $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Solicitante</td>');\n// //$colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Data limite</td>');\n $colspan++; ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Item</td>');\n ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Valor'.(($w_sb_moeda>'') ? ' ('.$w_sb_moeda.')' : '').'</td>');\n// if ($P1!=1) {\n// ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Situação</td>');\n// if ($w_embed!='WORD') ShowHTML(' <td rowspan=\"'.$rowspan.'\" class=\"remover\" width=\"1\">&nbsp;</td>');\n// ShowHTML(' <td rowspan=\"'.$rowspan.'\"><b>Executor</td>');\n// }\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) ShowHTML(' <td colspan=\"2\"><b>SA</td>');\n ShowHTML(' </tr>');\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) {\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\n ShowHTML(' <td><b>Código</td>');\n ShowHTML(' <td><b>Fase</td>');\n ShowHTML(' </tr>');\n }\n }\n $w_erro = false;\n if (count($RS)==0) {\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=\"'.($colspan+4).'\" align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\n } else {\n $w_parcial = array();\n if($w_embed!='WORD') {\n $RS1 = array_slice($RS, (($P3-1)*$P4), $P4);\n if ($P1==2) {\n ShowHTML('<span class=\"remover\">');\n AbreForm('Form', $w_dir . $w_pagina . 'Grava', 'POST', 'return(Validacao(this));', null, $P1, $P2, $P3, $P4, $TP, 'LOTE', $w_pagina . $par, $O);\n ShowHTML('<INPUT type=\"hidden\" name=\"p_agrega\" value=\"'.$SG.'\">');\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\n ShowHTML('<INPUT type=\"hidden\" name=\"w_menu\" value=\"' . $w_menu . '\">');\n ShowHTML('<input type=\"hidden\" name=\"w_chave[]\" value=\"\"></td>');\n ShowHTML('<input type=\"hidden\" name=\"w_lista[]\" value=\"\"></td>');\n if (nvl($_REQUEST['p_ordena'], '') == '') ShowHTML('<INPUT type=\"hidden\" name=\"p_ordena\" value=\"\">');\n ShowHTML(MontaFiltro('POST'));\n ShowHTML('</span>');\n }\n } else {\n $RS1 = $RS;\n }\n foreach($RS1 as $row) {\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\n if (f($row,'erro')=='X') {\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColorLightYellow2.'\" valign=\"top\">'); \n $w_erro = true;\n } else {\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\n }\n if (nvl($p_vencedor,'')=='') ShowHTML(' <td align=\"center\" nowrap>'.((f($row,'vencedor')=='S') ? 'X' : '').'</td>');\n ShowHTML(' <td align=\"center\" nowrap'.((f($row,'erro')=='X') ? ' title=\"'.f($row,'cnpj_fabs').' - '.f($row,'fb_fornecedor').'\"' : '').'>'.f($row,'lic_cnpj').'</td>');\n ShowHTML(' <td width=\"20%\">' . ExibePessoa('../', $w_cliente, f($row, 'fornecedor'), $TP, f($row, 'nm_fornecedor')) . '</td>');\n ShowHTML(' <td width=\"1%\" nowrap>');\n if ($w_embed!='WORD'){\n ShowHTML(' <A class=\"HL\" target=\"_blank\" HREF=\"mod_cl/certame.php?par=Visual&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'sq_siw_solicitacao').'&w_tipo=Volta&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.f($row,'sigla').MontaFiltro('GET').'\" title=\"Exibe as informações deste registro.\">'.f($row,'codigo_interno').'&nbsp;</a>');\n } else {\n ShowHTML('&nbsp;'.f($row,'codigo_interno').'&nbsp;');\n }\n ShowHTML(' <td width=\"20%\">'.f($row,'objeto').'</td>');\n ShowHTML(' <td'.((f($row,'sg_cc')!='') ? ' title=\"'.f($row,'dados_pai').'\"' : '').'>'.f($row,'sg_cc').'</td>');\n ShowHTML(' <td title=\"'.f($row,'nm_lcmodalidade').'\" align=\"center\">'.f($row,'sg_lcmodalidade').'</td>');\n// if ($w_pa=='S') {\n// if ($w_embed!='WORD' && nvl(f($row,'protocolo_siw'),'')!='') {\n// ShowHTML(' <td align=\"center\" nowrap><A class=\"HL\" HREF=\"mod_pa/documento.php?par=Visual&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'protocolo_siw').'&w_tipo=&P1=2&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG=PADGERAL'.MontaFiltro('GET').'\" title=\"Exibe as informações deste registro.\" target=\"processo\">'.f($row,'processo').'&nbsp;</a>'.'</td>');\n// } else {\n// ShowHTML(' <td align=\"center\" nowrap>'.nvl(f($row,'processo'),'&nbsp;').'</td>');\n// }\n// } elseif ($w_segmento=='Público') {\n// ShowHTML(' <td align=\"center\">'.f($row,'processo').'</td>');\n// }\n// ShowHTML(' <td width=\"1%\" nowrap>&nbsp;'.ExibeUnidade('../',$w_cliente,f($row,'sg_unidade_resp'),f($row,'sq_unidade'),$TP).'&nbsp;</td>');\n ShowHTML(' <td>'.f($row,'or_item').' - '.f($row,'nm_material').'</td>');\n if (f($row,'vencedor')=='S') $w_parcial[f($row,'sb_moeda')] = nvl($w_parcial[f($row,'sb_moeda')],0) + f($row,'vl_total_item');\n ShowHTML(' <td align=\"right\" width=\"1%\" nowrap>'.((nvl($w_sb_moeda,'')=='' && nvl(f($row,'sb_moeda'),'')!='') ? f($row,'sb_moeda').' ' : '').formatNumber(f($row,'vl_total_item')).'</td>');\n// if ($P1!=1) {\n// ShowHTML(' <td>'.Nvl(f($row,'nm_lcsituacao'),'---').'</td>');\n// if ($w_embed!='WORD') ShowHTML(' <td class=\"remover\" width=\"1\">'.ExibeAnotacao('../',$w_cliente,null,f($row,'sq_siw_solicitacao'),f($row,'codigo_interno')).'</td>');\n// ShowHTML(' <td>'.Nvl(f($row,'nm_exec'),'---').'</td>');\n// }\n if (strpos($_SERVER['HTTP_HOST'],'unesco')!==false) {\n if (f($row,'vencedor')=='S' && nvl(f($row,'automatico_sa'),'')!='') {\n // Bloco exibido apenas se a rotina estiver rodando no servidor da UNESCO.\n if (nvl(f($row,'automatico_sa'),'')!='') {\n ShowHTML(' <td nowrap><a class=\"HL\" target=\"_blank\" href=\"'.f($row,'link').'\">'.f($row,'automatico_sa').'</a>');\n } else {\n ShowHTML(' <td>&nbsp;</td>');\n }\n ShowHTML(' <td>'.f($row,'ds_sa').'</td>');\n } else {\n ShowHTML(' <td colspan=\"2\">&nbsp;</td>');\n }\n }\n ShowHTML(' </tr>');\n } \n if ($P1!=1) {\n // Se não for cadastramento nem mesa de trabalho\n // Coloca o valor parcial apenas se a listagem ocupar mais de uma página\n if (ceil(count($RS)/$P4)>1) { \n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" valign=\"top\">');\n ShowHTML(' <td colspan=\"'.$colspan.'\" align=\"right\"><b>Tota'.((count($w_parcial)==1) ? 'l' : 'is').' desta página '.((nvl($p_vencedor,'')=='') ? '(apenas vencedores)': '').'&nbsp;</td>');\n ShowHTML(' <td align=\"right\" nowrap><b>');\n $i = 0;\n ksort($w_parcial);\n foreach($w_parcial as $k => $v) { echo((($i) ? '<div></div>' : '').$k.' '.formatNumber($v,2)); $i++; }\n echo('</td>');\n ShowHTML(' <td colspan='.(($w_embed=='WORD') ? '3' : '4').'>&nbsp;</td>');\n ShowHTML(' </tr>');\n } \n // Se for a última página da listagem, soma e exibe o valor total\n if ($P3==ceil(count($RS)/$P4)) {\n $w_total = array();\n foreach($w_parcial as $k => $v) {\n $w_total[$k] = nvl($w_total[$k],0) + $v;\n } \n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" valign=\"top\">');\n ShowHTML(' <td colspan=\"'.$colspan.'\" align=\"right\"><b>Tota'.((count($w_total)==1) ? 'l' : 'is').' da listagem '.((nvl($p_vencedor,'')=='') ? '(apenas vencedores)': '').'&nbsp;</td>');\n ShowHTML(' <td align=\"right\" nowrap><b>');\n $i = 0;\n ksort($w_total);\n foreach($w_total as $k => $v) { echo((($i) ? '<div></div>' : '').((nvl($w_sb_moeda,'')=='') ? $k : '').' '.formatNumber($v,2)); $i++; }\n echo('</td>');\n ShowHTML(' <td colspan=\"'.(($w_embed=='WORD') ? '3' : '4').'\">&nbsp;</td>');\n ShowHTML(' </tr>');\n } \n } \n } \n ShowHTML(' </table>');\n ShowHTML(' </td>');\n ShowHTML('</tr>');\n if ($w_erro) ShowHTML('<tr><td colspan=3><b>ATENÇÃO: Linhas na cor amarela indicam divergência entre o vencedor do certame e o beneficiário da SA. Passe o mouse sobre o CPF/CNPJ para ver os dados informados na SA.</td></tr>');\n ShowHTML('<tr><td align=\"center\" colspan=3>');\n if (count($RS) && $w_embed!='WORD') {\n if ($P1==2) {\n ShowHTML('<span class=\"remover\">');\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\" colspan=3>');\n ShowHTML(' <table width=\"97%\" border=\"0\">');\n ShowHTML(' <tr><td valign=\"top\" colspan=\"2\"><table border=0 width=\"100%\">');\n ShowHTML(' <tr><td><b>Tipo do Encaminhamento</b><br>');\n ShowHTML(' <input '.$w_Disabled.' class=\"STR\" type=\"radio\" name=\"w_envio\" value=\"N\"'.((Nvl($w_envio,'N')=='N') ? ' checked' : '').'> Enviar para a próxima fase <br><input '.$w_Disabled.' class=\"STR\" class=\"STR\" type=\"radio\" name=\"w_envio\" value=\"S\"'.((Nvl($w_envio,'N')=='S') ? ' checked' : '').'> Devolver para a fase anterior');\n ShowHTML(' <tr>');\n ShowHTML(' <tr><td><b>D<u>e</u>spacho (informar apenas se for devolução):</b><br><textarea '.$w_Disabled.' accesskey=\"E\" name=\"w_despacho\" class=\"STI\" ROWS=5 cols=75 title=\"Informe o que o destinatário deve fazer quando receber a solicitação.\">'.$w_despacho.'</TEXTAREA></td>');\n ShowHTML(' </table>');\n ShowHTML(' <tr><td align=\"LEFT\" colspan=4><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"STI\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\n ShowHTML(' <tr><td align=\"center\" colspan=4><hr><input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Enviar\"></td></tr>');\n ShowHTML(' </table>');\n ShowHTML(' </TD>');\n ShowHTML('</tr>');\n ShowHTML('</FORM>');\n }\n if ($R>'') {\n MontaBarra($w_dir.$w_pagina.$par.'&R='.$R.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_copia='.$w_copia,ceil(count($RS)/$P4),$P3,$P4,count($RS));\n } else {\n MontaBarra($w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_copia='.$w_copia,ceil(count($RS)/$P4),$P3,$P4,count($RS));\n } \n ShowHTML('</tr>');\n } \n } elseif (strpos('CP',$O)!==false) {\n if ($O=='C') {\n // Se for cópia\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td><div align=\"justify\">Para selecionar o pedido que deseja copiar, informe nos campos abaixo os critérios de seleção e clique sobre o botão <i>Aplicar filtro</i>. Clicando sobre o botão <i>Remover filtro</i>, o filtro existente será apagado.</div><hr>');\n } else {\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td><div align=\"justify\">Informe nos campos abaixo os valores que deseja filtrar e clique sobre o botão <i>Aplicar filtro</i>. Clicando sobre o botão <i>Remover filtro</i>, o filtro existente será apagado.</div><hr>');\n } \n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\" valign=\"top\"><table border=0 width=\"90%\" cellspacing=0>');\n AbreForm('Form',$w_dir.$w_pagina.$par,'POST','return(Validacao(this));',null,$P1,$P2,$P3,null,$TP,$SG,$R,'L');\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\n if ($O=='C') {\n // Se for cópia, cria parâmetro para facilitar a recuperação dos registros\n ShowHTML('<INPUT type=\"hidden\" name=\"w_copia\" value=\"OK\">');\n } \n ShowHTML(' <tr><td colspan=\"2\">');\n ShowHTML(' <tr><td colspan=\"2\"><table border=0 width=\"100%\" cellspacing=0>');\n if ($P1!=1 || $O=='C') {\n // Se não for cadastramento ou se for cópia\n ShowHTML(' <tr valign=\"top\">');\n ShowHTML(' <td><b><U>C</U>ódigo da licitação:<br><INPUT ACCESSKEY=\"C\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"p_empenho\" size=\"20\" maxlength=\"60\" value=\"'.$p_empenho.'\"></td>');\n SelecaoPessoa('<u>R</u>esponsável pela execução:','N','Selecione o executor na relação.',$p_prioridade,null,'p_prioridade','USUARIOS');\n ShowHTML(' <tr valign=\"top\">');\n SelecaoSolic('Classificação:',null,null,$w_cliente,$p_sqcc,'CLASSIF',null,'p_sqcc','SIWSOLIC',null,null,'<BR />',2);\n ShowHTML(' <tr valign=\"top\">');\n SelecaoPessoa('<u>S</u>olicitante:','N','Selecione o solicitante na relação.',$p_solicitante,null,'p_solicitante','USUARIOS');\n SelecaoUnidade('<U>U</U>nidade solicitante:','U','Selecione a unidade solicitante do pedido',$p_unidade,null,'p_unidade','CLCP',null);\n ShowHTML(' <tr valign=\"top\">');\n ShowHTML(' <td><b>C<U>P</U>F/CNPJ: (insira pontos, barras e traços)<br><INPUT ACCESSKEY=\"P\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"p_cnpj\" size=\"20\" maxlength=\"20\" value=\"'.$p_cnpj.'\"></td>');\n ShowHTML(' <td><b><U>F</U>ornecedor: (qualquer parte do nome)<br><INPUT ACCESSKEY=\"F\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"p_fornecedor\" size=\"40\" maxlength=\"60\" value=\"'.$p_fornecedor.'\"></td>');\n ShowHTML(' <tr valign=\"top\">');\n ShowHTML(' <td><b><u>E</u>ventos do certame (abertura, entregas, conclusão, homologação):</b><br><input '.$w_Disabled.' accesskey=\"D\" type=\"text\" name=\"p_ini_i\" class=\"STI\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.$p_ini_i.'\" onKeyDown=\"FormataData(this,event);\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\" title=\"Usar formato dd/mm/aaaa\"> e <input '.$w_Disabled.' accesskey=\"D\" type=\"text\" name=\"p_ini_f\" class=\"STI\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.$p_ini_f.'\" onKeyDown=\"FormataData(this,event);\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\" title=\"Usar formato dd/mm/aaaa\"></td>');\n ShowHTML(' <tr valign=\"top\">');\n ShowHTML(' <td><input type=\"checkbox\" class=\"stc\" name=\"p_vencedor\" value=\"S\"'.((nvl($p_vencedor,'')!='') ? ' checked' : '').'> Recuperar apenas certames com vencedores indicados');\n ShowHTML(' <td><b>Có<u>d</u>igo '.(($w_cliente==6881) ? 'SA': 'externo').': (qualquer parte do código)<br><INPUT ACCESSKEY=\"O\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"p_externo\" size=\"20\" maxlength=\"60\" value=\"'.$p_externo.'\"></td>');\n } \n ShowHTML(' <tr>');\n ShowHTML(' <td><b><U>L</U>inhas por página:<br><INPUT ACCESSKEY=\"L\" '.$w_Disabled.' class=\"STI\" type=\"text\" name=\"P4\" size=\"4\" maxlength=\"4\" value=\"'.$P4.'\"></td></tr>');\n ShowHTML(' </table>');\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\" height=\"1\" bgcolor=\"#000000\">');\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\">');\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Aplicar filtro\">');\n if ($O=='C') {\n // Se for cópia\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$w_pagina.$par.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG).'\\';\" name=\"Botao\" value=\"Abandonar cópia\">');\n } else {\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$w_pagina.$par.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG).'\\';\" name=\"Botao\" value=\"Remover filtro\">');\n } \n ShowHTML(' </td>');\n ShowHTML(' </tr>');\n ShowHTML(' </table>');\n ShowHTML(' </TD>');\n ShowHTML('</tr>');\n ShowHTML('</FORM>');\n } else {\n ScriptOpen('JavaScript');\n ShowHTML(' alert(\"Opção não disponível\");');\n ShowHTML(' history.back(1);');\n ScriptClose();\n } \n ShowHTML('</table>');\n \n if ($w_tipo == 'PDF') RodapePdf();\n else Rodape();\n}", "title": "" }, { "docid": "583f1a82c66c9a6fbcd51140f873f193", "score": "0.6170714", "text": "public function paga(){\n //potrebbbe usare un altra funzione, che va a prendere un link che rappresenta a chi deve mandare i soldi e quanti sono, e l'utente usa questi dati, generati sul momento per pagare. Dopo gli arrivera qualche conferma che magari attiva un altra funzione di questa classe e imposta il parametro pagato a vero\n }", "title": "" }, { "docid": "d551bf7fc965f0a89582c60247818e46", "score": "0.617069", "text": "function matrizRetiroCuerpo($arregloDatos, &$datos, &$plantilla) {\n $this->setValores($arregloDatos, $datos, $plantilla);\n $unNacional = new Levante();\n $unNacional->getNacional($arregloDatos);\n //Nacional\n $unNacional->fetch();\n $peso_nacional = $unNacional->peso;\n $cantidad_nacional = $unNacional->cantidad;\n $arregloDatos[tot_peso_nal] = number_format(abs($unNacional->peso ), DECIMALES, \".\", \",\");\n $arregloDatos[tot_cant_nal] = number_format(abs($unNacional->cantidad ), DECIMALES, \".\", \",\");\n\n //Desperdicios --->DESDE AQUI\n $unNacional->peso = 0;\n $unNacional->cantidad = 0;\n $unNacional->getDesperdicios($arregloDatos);\n $unNacional->fetch();\n $peso_desperdicios = $unNacional->peso;\n $cantidad_desperdicios = $unNacional->cant;\n $arregloDatos[pesod_f] = number_format(abs($unNacional->peso_naci ), DECIMALES, \".\", \",\");\n $arregloDatos[cantidadd_f] = number_format(abs($unNacional->cantidad_naci ), DECIMALES, \".\", \",\");\n if($unNacional->peso_nonac <> 0) {\n $arregloDatos[ld_ext] = \" [EXT] \";\n $arregloDatos[des_cantidad_ext] = number_format($unNacional->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[des_peso_ext] = number_format($unNacional->peso_nonac, DECIMALES, \".\", \",\");\n }\n //Nacionalizado\n $arregloDatos[t_peso_nac] = $this->tot_peso_nac-$peso_nacional; // se quita el peso nacional\n $arregloDatos[t_peso_nac] = number_format(abs($arregloDatos[t_peso_nac] ), DECIMALES, \".\", \",\");\n\t\n $arregloDatos[t_cant_nac] = $this->tot_cant_nac-$cantidad_nacional; // se quita el peso nacional\n $arregloDatos[t_cant_nac] = number_format(abs($arregloDatos[t_cant_nac] ), DECIMALES, \".\", \",\");\n\t\n //Ajustes\n $unAjuste = new Levante();\n $unAjuste->getAjustes($arregloDatos);\n $unAjuste->fetch();\n\tif(empty($unAjuste->peso_naci)){\n\t\t$unAjuste->peso_naci=0;\n\t }\n\t //echo \"XX$unAjuste->cantidad_naci <BR>\";\n\tif(empty($unAjuste->cantidad_naci)){\n\t\t$unAjuste->cantidad_naci=0;\n\t }\n\n $arregloDatos[ajustes_peso] = number_format($unAjuste->peso_naci, DECIMALES, \".\", \",\"); \n $arregloDatos[ajustes_cantidad] = number_format($unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n if($unAjuste->peso_nonac <> 0) {\n $arregloDatos[l_ext] = \" [EXT] \";\n $arregloDatos[ajustes_cantidad_ext] = number_format($unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[ajustes_peso_ext] = number_format($unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n }\t\n\n // Desperdicios\n $this->mantenerDatos($arregloDatos, $plantilla);\n }", "title": "" }, { "docid": "fac521a50ac8b5e61944c784f68dfbfd", "score": "0.6169977", "text": "function listarArregloAsociativo($arreglo)\n{\n // Declaracion de variables\n // int $numeroMascota, $i\n\n // Inicializacion de variables\n $numeroMascota = 1;\n\n // Muestro al arreglo por pantalla\n for ($i = 0; $i < count($arreglo); $i++) {\n echo \"Mascota \" . $numeroMascota . \": \" . $arreglo[$i][\"nombre\"] . \" es un \" . $arreglo[$i][\"tipo\"] . \" de \" . $arreglo[$i][\"edad\"] . \" años. \\n\";\n $numeroMascota++;\n }\n}", "title": "" }, { "docid": "8ecd33eba202cf1b1547f170929dcf23", "score": "0.6165664", "text": "function mostraPagina()\n\t\t{\n\t\t// prepara la pagina, ossia il contenitore della tabella\n\t\t$this->aggiungiElemento($this->dammiMenu());\n\t\t$this->aggiungiElemento(\"Moduli\", \"titolo\");\n\t\t$this->aggiungiElemento($this->creaTabella());\n\t\t\n\t\t// manda in output l'intera pagina\n\t\t$this->mostra();\n\t\t}", "title": "" }, { "docid": "e7240eb62c149a8e4fde789b4cd975c9", "score": "0.6161787", "text": "function Identificacion()\r\n{\r\n //PRIMERA LINEA (ARRIBA)\r\n\t$this->text(80, 82, 'DESCRIPCION DEL VEHICULO: ');\r\n\t$this->Line(200,84,19,84);\r\n\t//SEGUNDA LINEA\r\n\t$this->Line(200,100,19,100);\r\n\t// PRIMERA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(19,84,19,100);\r\n\t// SEGUNDA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(50,84,50,100);\r\n\t// TERCERA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(85,84,85,100);\r\n\t// CUARTA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(127,84,127,100);\r\n\t// QUINTA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(175,84,175,100);\r\n\t// SEXTA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(200,84,200,100);\r\n\t//SEGUNDA LINEA HORIZONTAL(ABAJO)\r\n\t$this->Line(200,90,19,90);\r\n\t\r\n\t\r\n\t//TERCER TITULO\r\n\t$this->text(80, 115, 'MANTENIMIENTO PREVENTIVO: ');\r\n\t//PRIMERA LINEA HORIZONTAL DESPUES DEL TERCER TITULO\r\n\t$this->Line(200,117,19,117);\r\n\t//2DA LINEA HORIZONTAL DESPUES DEL TERCER TITULO\r\n\t$this->Line(200,125,19,125);\r\n\t//3RA LINEA HORIZONTAL DESPUES DEL TERCER TITULO\r\n\t$this->Line(200,133,19,133);\r\n\t//4TA LINEA HORIZONTAL DESPUES DEL TERCER TITULO\r\n\t$this->Line(200,141,19,141);\r\n\t//5TA LINEA HORIZONTAL DESPUES DEL TERCER TITULO\r\n\t$this->Line(200,171,19,171);\r\n\t\r\n\t// PRIMERA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(19,171,19,117);\r\n\t// 2DA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(110,171,110,117);\r\n\t// 3RA LINEA IZQUIERDA VERTICAL\r\n\t$this->Line(200,171,200,117);\r\n\t// 4TA LINEA IZQUIERDA VERTICAL PEQUEÑA\r\n\t$this->Line(150,171,150,141);\r\n\r\n\t\r\n\r\n\r\n\t\r\n}", "title": "" }, { "docid": "a66ee1cb96ef511cde663d31b00b6cc0", "score": "0.6160801", "text": "function Cuerpo($acceso,$id_dep,$desde,$hasta,$tipo_ent_sal,$id_tm,$id_te,$id_persona)\n\t{\n\t\t$sq='';\n\t\tif($tipo_ent_sal!='' && $tipo_ent_sal!='0'){\n\t\t\t$sq=$sq.\" and tipo_ent_sal='$tipo_ent_sal'\";\n\t\t}\n\t\tif($id_tm!='' && $id_tm!='0'){\n\t\t\t$sq=$sq.\" and id_tm='$id_tm'\";\n\t\t}\n\t\tif($id_te!='' && $id_te!='0'){\n\t\t\t$sq=$sq.\" and id_te='$id_te'\";\n\t\t}\n\t\tif($id_persona!='' && $id_persona!='0'){\n\t\t\t$sq=$sq.\" and id_persona='$id_persona'\";\n\t\t}\t\t\n\t\t\n\t\t$campos=\"id_m,numero_mat,nombre_mat,c_uni_ent,c_uni_sal,\n\t\t(select sum(cant_mov) from vista_mov_materiales where tipo_ent_sal='SALIDA' and id_dep='$id_dep' and vista_mov_materiales.fecha_ent_sal between '$desde' and '$hasta' and vista_matpadre.id_m=vista_mov_materiales.id_m $sq) as salida, \n\t\t(select sum(cant_mov) from vista_mov_materiales where tipo_ent_sal='ENTRADA' and id_dep='$id_dep' and vista_mov_materiales.fecha_ent_sal between '$desde' and '$hasta' and vista_matpadre.id_m=vista_mov_materiales.id_m $sq) as entrada, \n\t\t(select sum(stock) from materiales where id_dep='$id_dep' and materiales.id_m=vista_matpadre.id_m) as stock \n\t\t\";\n\n\t\t$where=\"\n\t\t(select sum(cant_mov) from vista_mov_materiales where tipo_ent_sal='SALIDA' and id_dep='$id_dep' and vista_mov_materiales.fecha_ent_sal between '$desde' and '$hasta' and vista_matpadre.id_m=vista_mov_materiales.id_m $sq)>0 or \n\t\t(select sum(cant_mov) from vista_mov_materiales where tipo_ent_sal='ENTRADA' and id_dep='$id_dep' and vista_mov_materiales.fecha_ent_sal between '$desde' and '$hasta' and vista_matpadre.id_m=vista_mov_materiales.id_m $sq)>0\n\t\t\";\n\n\t\t$sql=\"select $campos from vista_matpadre where $where order by numero_mat\";\n\n\n\t\t$acceso1=conexion();\n\t\t$acceso2=conexion();\n\t\t\n\t\t$abre1=\"\";\n\t\t$abre2=\"\";\n\t\t$c_uni_ent=0;\n\t\t$c_uni_sal=0;\n\t\t$resto=0;\n\t\t\n\t\t\n\t\t\n\t\t$acceso1->objeto->ejecutarSql(\"select sum(cant_mov) as ent from vista_movimiento_mov_mat where tipo_ent_sal='ENTRADA' and id_mat='$id_mat' and fecha_ent_sal<'$desde'\");\n\t\t$row=row($acceso1);\n\t\t$ent=trim($row[\"ent\"])+0;\n\t\t$acceso1->objeto->ejecutarSql(\"select sum(cant_mov) as sal from vista_movimiento_mov_mat where id_mov=id_mov and tipo_ent_sal='SALIDA' and id_mat='$id_mat' and fecha_ent_sal<'$desde' \");\n\t\t$row=row($acceso1);\n\t\t$sal=trim($row[\"sal\"])+0;\n\t\t$resto=$ent-$sal;\n\t\t$acceso2->objeto->ejecutarSql(\"select * from deposito WHERE id_dep='$id_dep' LIMIT 1 offset 0\");\n\t\t$this->SetFont('Arial','',9);\n\t\t$cont=1;\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetTextColor(0);\n\t\t\n\t\t$this->SetX(15);\n\t\t$this->SetFont('Arial','B',9);\n\t//\t$this->Cell(180,5,\"DATOS GENERALES\",1,0,'J',0);\n\t\t//$this->Ln();\n\t\t\n\t\tif($row=row($acceso2))\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$this->SetX(15);\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\n\t\t\t\n\t\t\t$this->SetX(15);\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t$this->Cell(30,5,strtoupper(_('deposito')),1,0,'J',FALSE);\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(60,5,utf8_decode(trim($row[\"nombre_dep\"])),1,0,'J',FALSE);\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t$this->Cell(25,5,strtoupper(_('fecha desde')),1,0,'J',FALSE);\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(20,5,formatofecha($desde),1,0,'J',FALSE);\t\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t$this->Cell(25,5,strtoupper(_('fecha hasta')),1,0,'J',FALSE);\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(20,5,formatofecha($hasta),1,0,'J',FALSE);\t\n\t\t}\n\t\t$this->Ln();\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(15);\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->Cell(180,5,strtoupper(_(\"movimientos de materiales\")),1,0,'J',0);\n\t\t\n\n\t\t\t//$this->Ln();\n\n\t\t$w=$this->TituloCampos();\n\t//\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_movimiento_mov_mat WHERE (id_dep='$id_dep' and fecha_ent_sal>='$desde' and fecha_ent_sal<='$hasta' and id_mat='$id_mat')\");\n\t\t$acceso->objeto->ejecutarSql($sql);\n\t\t//echo \"$sql\";\n\t\t$this->SetFont('Arial','',8);\n\t\t$cont=1;\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetTextColor(0);\n\t\twhile ($row=row($acceso))\n\t\t{\n\t\t\t$id_m=trim($row[\"id_m\"]);\n\t\t\t$acceso1->objeto->ejecutarSql(\"select abreviatura,us_abre from vista_materiales_unid where id_m='$id_m'\");\n\t\t\tif($rows=row($acceso1)){\n\t\t\t\n\t\t\t$abre1=trim($rows[\"abreviatura\"]);\n\t\t\t$abre2=trim($rows[\"us_abre\"]);\n\t\t\t//echo \",$abre1,$abre2,\";\n\t\t\t}\n\t\t\t$c_uni_sal=trim($row[\"c_uni_sal\"]);\n\t\t\t$c_uni_ent=trim($row[\"c_uni_ent\"]);\n\t\t\t\n\t\t\t//echo \"hola\";\n\t\t\t$this->SetX(15);\n\t\t\t\n\t\t\t$this->Cell($w[0],5,$cont,1,0,\"C\",$fill);\n\t\t\t$this->Cell($w[1],5,utf8_decode(trim($row[\"numero_mat\"])),\"1\",0,\"C\",$fill);\n\t\t\t\n\t\t\t$this->Cell($w[2],5,substr(utf8_decode(trim($row[\"nombre_mat\"])),0,22),1,0,\"J\",$fill);\n\t\t\t$stock=trim($row[\"stock\"])+0;\n\t\t\t$stock_sal=trim($row[\"salida\"])+0;\n\t\t\t$stock_ent=trim($row[\"entrada\"])+0;\n\t\t\t$stock_ant=($stock+$stock_sal)-$stock_ent;\n\t\t\t\t\n\t\t\t//$this->Trans($stock_ant,$c_uni_sal,$abre1,$abre2,26,$fill);\t\n\t\t\t$this->Trans($stock_ent,$c_uni_sal,$abre1,$abre2,$w[3],$fill);\t\n\t\t\t$this->Trans($stock_sal,$c_uni_sal,$abre1,$abre2,$w[4],$fill);\t\n\t\t\t$this->Trans($stock,$c_uni_sal,$abre1,$abre2,$w[5],$fill);\t\t\t\t\n\t\t\t$this->SetFont('Arial','',8);\t\t\n\t\t\t$this->Ln();\n\t\t\t$fill=!$fill;\n\t\t\t$cont++;\n\t\t}\n\t\t$this->SetX(15);\n\t\t$this->SetFont('Arial','B',9);\n\t//\t$this->Cell(134,5,\"Stock Final\",1,0,\"R\",$fill);\n\t\t$this->SetFont('Arial','',8);\n\t\t//$this->Cell(34,5,$resto,1,0,\"R\",$fill);\n\t\t$stock=trim($resto);\n\t//\t$this->Trans($stock,$c_uni_sal,$abre1,$abre2,46,$fill);\t\n\t\t$this->SetX(15);\n\t\t$this->Cell(array_sum($w),5,'','T');\n\t}", "title": "" }, { "docid": "f07b34f3d1dfcbd45b89fa624bc7d7d2", "score": "0.61574596", "text": "function Unidade() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n\r\n $w_chave = $_REQUEST['w_chave'];\r\n\r\n if ($w_troca>'') {\r\n // Se for recarga da página\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_sigla = $_REQUEST['w_sigla'];\r\n $w_ativo = $_REQUEST['w_ativo'];\r\n } elseif ($O=='L') {\r\n // Recupera os parâmetros do módulo\r\n $sql = new db_getPDParametro; $RS = $sql->getInstanceOf($dbms,$w_cliente,null,null);\r\n if (count($RS)>0) {\r\n foreach($RS as $row) { $RS = $row; break; }\r\n $w_limite_unidade = f($RS,'limite_unidade');\r\n } \r\n\r\n // Recupera todos os registros para a listagem\r\n $sql = new db_getUorgList; $RS = $sql->getInstanceOf($dbms,$w_cliente,null,'VIAGEM',null,null,null);\r\n if (nvl($p_ordena,'')>'') {\r\n $lista = explode(',',str_replace(' ',',',$p_ordena));\r\n $RS = SortArray($RS,$lista[0],$lista[1],'nome','asc');\r\n } else {\r\n $RS = SortArray($RS,'nome','asc');\r\n }\r\n } elseif (!(strpos('AE',$O)===false) && $w_troca=='') {\r\n // Recupera os dados do endereço informado\r\n $sql = new db_getUorgList; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,'VIAGEM',null,null,$w_ano);\r\n foreach($RS as $row) { $RS = $row; break; }\r\n $w_nome = f($RS,'nome');\r\n $w_sigla = f($RS,'sigla');\r\n $w_ativo = f($RS,'ativo');\r\n } \r\n\r\n Cabecalho();\r\n head();\r\n if (!(strpos('IAEP',$O)===false)) {\r\n ScriptOpen('JavaScript');\r\n CheckBranco();\r\n FormataValor();\r\n ValidateOpen('Validacao');\r\n if (!(strpos('IA',$O)===false)) {\r\n if ($O=='I') {\r\n Validate('w_chave','Unidade','SELECT','1','1','50','1','1');\r\n }\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n } elseif ($O=='E') {\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n ShowHTML(' if (confirm(\\'Confirma a exclusão deste registro?\\')) ');\r\n ShowHTML(' { return (true); }; ');\r\n ShowHTML(' { return (false); }; ');\r\n } \r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n\r\n ShowHTML('</HEAD>');\r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n if ($w_troca>'') {\r\n BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } elseif (!(strpos('A',$O)===false)) {\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } elseif ($O=='E') {\r\n BodyOpen('onLoad=\\'document.Form.w_assinatura.focus()\\';');\r\n } else {\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } \r\n\r\n ShowHTML('<B><FONT COLOR=\"#000000\">'.$w_TP.'</FONT></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<div align=center><center>');\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($O=='L') {\r\n // Exibe a quantidade de registros apresentados na listagem e o cabeçalho da tabela de listagem\r\n ShowHTML('<tr>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td><a accesskey=\"I\" class=\"SS\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\"><u>I</u>ncluir</a>&nbsp;');\r\n }\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>'.LinkOrdena('Unidade','nome').'</font></td>');\r\n ShowHTML(' <td><b>'.LinkOrdena('Ativo','ativo').'</font></td>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td class=\"remover\"><b>Operações</font></td>');\r\n }\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=5 align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n foreach($RS as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td>'.f($row,'nome').' ('.f($row,'sigla').')</td>');\r\n if (f($row,'ativo')=='S') {\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_ativo').'</td>');\r\n } else {\r\n ShowHTML(' <td align=\"center\"><font size=\"1\" color=\"red\">'.f($row,'nm_ativo').'</td>');\r\n } \r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td class=\"remover\" align=\"top\" nowrap>');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_chave='.f($row,'sq_unidade').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">AL</A>&nbsp');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=E&w_chave='.f($row,'sq_unidade').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">EX</A>&nbsp');\r\n if ($w_limite_unidade=='S') {\r\n ShowHTML(' <a class=\"HL\" href=\"javascript:this.status.value;\" onclick=\"window.open(\\''.montaURL_JS(null,$conRootSIW.$w_dir.$w_pagina.'LIMUNIDADE&R='.$w_pagina.$par.'&O=L&w_chave='.f($row,'sq_unidade').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG=PDUNIDLIM').'\\',\\'Limites\\',\\'toolbar=no,width=780,height=350,top=30,left=10,scrollbars=yes,resizable=yes\\');\">Limites</a>');\r\n }\r\n ShowHTML(' </td>');\r\n }\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } elseif (!(strpos('IAEV',$O)===false)) {\r\n if (!(strpos('EV',$O)===false)) $w_Disabled=' DISABLED ';\r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$R,$O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n if ($O!='I') {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_ano\" value=\"'.$w_ano.'\">');\r\n } \r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr><td><table border=\"0\" width=\"100%\" cellspacing=0 cellpadding=0><tr valign=\"top\">');\r\n if ($O=='I') {\r\n SelecaoUnidade('<U>U</U>nidade:','S',null,$w_chave,null,'w_chave',null,null);\r\n } else {\r\n ShowHTML(' <tr><td><font size=1><b>Unidade:<br>'.$w_nome.' ('.$w_sigla.')</b>');\r\n } \r\n MontaRadioSN('<b>Ativo?</b>',$w_ativo,'w_ativo');\r\n ShowHTML(' </table>');\r\n ShowHTML(' <tr><td align=\"LEFT\"><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\r\n ShowHTML(' <tr><td align=\"center\"><hr>');\r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"history.back(1);\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "7f09f6beab67b02cce9310d5d4c04859", "score": "0.6157183", "text": "function matrizRetiroCabeza($arregloDatos, &$datos, &$plantilla) {\n $unaConsulta= new Levante();\n $unaConsulta->getDatosRetiro($arregloDatos);\n $unaConsulta->fetch();\n $arregloDatos[fecha_retiro] = $unaConsulta->fecha;\n $arregloDatos[orden_ing] = $unaConsulta->orden;\n $arregloDatos[cant_nal] = number_format($unaConsulta->cantidad_naci, DECIMALES, \".\", \",\");\n $arregloDatos[refe_retito] = $unaConsulta->refe_retito;\n $arregloDatos[peso_nal] = number_format($unaConsulta->peso_naci, DECIMALES, \".\", \",\");\n $arregloDatos[cif_ret] = number_format($unaConsulta->cif, DECIMALES, \".\", \",\");\n \n // Faltan los valores extranjeros \n if($unaConsulta->peso_nonac > 0 or $unaConsulta->cantidad_nonac > 0) {\n $arregloDatos[l_ext] = \" [EXT] \";\n $arregloDatos[ext_peso] = number_format($unaConsulta->peso_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[ext_cantidad] = number_format($unaConsulta->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[fob_ret] = number_format($unaConsulta->fob_nonac, DECIMALES, \".\", \",\");\n }\n // Se pintan los ajustes y los totales después de ajustes\n $unAjuste = new Levante();\n $unAjuste->getDatosAjustes($arregloDatos);\n $unAjuste->fetch();\n\n $arregloDatos[cant_nal_a] = number_format($unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n $arregloDatos[peso_nal_a] = number_format($unAjuste->peso_naci, DECIMALES, \".\", \",\");\n $arregloDatos[cif_ret_a] = number_format($unAjuste->cif, DECIMALES, \".\", \",\");\n $arregloDatos[refe_ajuste] = $unAjuste->refe_retiro;\n\n if($unAjuste->peso_nonac <> 0 or $unAjuste->cantidad_nonac <> 0 or $unaConsulta->cantidad_nonac <> 0 or $unaConsulta->peso_nonac <> 0 or $unaConsulta->fob_nonac <> 0) {\n $arregloDatos[l_ext_a] = \" [EXT] \";\n\t\t $arregloDatos[ext_peso_a] = number_format($unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[ext_cantidad_a] = number_format($unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[fob_ret_a] = number_format($unAjuste->fob_nonac, DECIMALES, \".\", \",\");\n\t\t\n\t\t $arregloDatos[total_cantidad_ext] = number_format($unaConsulta->cantidad_nonac+$unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[total_peso_ext] = number_format($unaConsulta->peso_nonac+$unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[total_fob_ext] = number_format($unaConsulta->fob_nonac+$unAjuste->fob_nonac, DECIMALES, \".\", \",\");\n }\n\t $arregloDatos[total_cantidad_nal] = number_format(abs($unaConsulta->cantidad_naci)+$unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n\t $arregloDatos[total_peso_nal] = number_format($unaConsulta->peso_naci+$unAjuste->peso_naci, DECIMALES, \".\", \",\");\n\t $arregloDatos[total_cif_a] = number_format($unaConsulta->cif+$unAjuste->cif, DECIMALES, \".\", \",\");\n $arregloDatos[valor_aux] = $datos->valor;\n $arregloDatos[valor] = number_format(abs($datos->valor), DECIMALES, \".\", \",\");\n $arregloDatos[mostrar] = 0;\n $arregloDatos[plantilla] = 'levanteMatrizCuerpoRetiro.html';\n $arregloDatos[thisFunction] = 'matrizRetiroCuerpo';\n\n $arregloDatos[detalle] = $this->setFuncion($arregloDatos, $unDatos);\n $this->mantenerDatos($arregloDatos, $plantilla);\n }", "title": "" }, { "docid": "a7538c6de32168249ee8c8a00c13db67", "score": "0.6156789", "text": "public function plause()\n {\n if($this->Ligado && $this->getTocando()){\n $this->Tocando(false);\n }\n }", "title": "" }, { "docid": "0ebf666ed748005a520ef30026b56779", "score": "0.61546063", "text": "function formulaires_editer_priveperso_charger_dist(){\n// d'où récupération des données dans la base.\n\tif( $rub_id=$_GET[\"rub_id\"] ){\n\t\t\tinclude_spip('inc/inscrire_priveperso');\n\t\t\t$priveperso = priveperso_recuperer_valeurs($rub_id);\n\t\t\tif ($priveperso['textperso']==='oui'){\n\t\t\t\t$priveperso_texte = priveperso_texte_recuperer_valeurs($rub_id);\n\t\t\t\t}\n\t}\n\telse{\n\t $priveperso = priveperso_post_formulaire();\n\t if ($priveperso['textperso']==='oui')\t $priveperso_texte = priveperso_texte_post_formulaire();\n\t}\n\n\tif ($priveperso['textperso']==='oui'){\n\t\treturn array_merge($priveperso,$priveperso_texte);\n\t}\n\telse{\n\t\treturn $priveperso;\n\t\t}\n}", "title": "" }, { "docid": "5da7d9fafbf9fd36499f07c7e6d33488", "score": "0.6149346", "text": "function cariPosisi($batas){\n if(empty($_GET[halaman])){\n $posisi=0;\n $_GET[halaman]=1;\n }else{\n $posisi=($_GET[halaman]-1)*$batas;\n }\n return $posisi;\n }", "title": "" }, { "docid": "f9bf286c60389e0b6b2f3ac1eaa5c080", "score": "0.61360717", "text": "function taquillaNoAlquilada($numero){\n\taviso(\"La taquilla no se encuentra alquilada\");\n}", "title": "" }, { "docid": "283c00c4a80da11052825806d7ba2b02", "score": "0.613416", "text": "function cariPosisi($batas){\nif(empty($_GET[halaman])){\n\t$posisi=0;\n\t$_GET[halaman]=1;\n}\nelse{\n\t$posisi = ($_GET[halaman]-1) * $batas;\n}\nreturn $posisi;\n}", "title": "" }, { "docid": "283c00c4a80da11052825806d7ba2b02", "score": "0.613416", "text": "function cariPosisi($batas){\nif(empty($_GET[halaman])){\n\t$posisi=0;\n\t$_GET[halaman]=1;\n}\nelse{\n\t$posisi = ($_GET[halaman]-1) * $batas;\n}\nreturn $posisi;\n}", "title": "" }, { "docid": "15c9f2b3b94a7d6b4b6126cb04e44e55", "score": "0.6124491", "text": "function concatenerTexteAsso ($nomTable, $tabAssoColonneValeur)\n{\n // AJOUTER LE CODE MANQUANT\n $texteFinal = \"\";\n $texteToken = \"\";\n $indice = 0;\n foreach($tabAssoColonneValeur as $cle => $valeur)\n {\n if ($indice > 0)\n {\n // ON AJOUTE LA VIRGULE AU TEXTE FINAL\n $texteFinal = \"$texteFinal,$cle\";\n $texteToken = \"$texteToken,:$cle\";\n }\n else\n {\n // ON N(AJOUTE PAS LA VIRGULE) AU TEXTE FINAL\n $texteFinal = \"$texteFinal$cle\";\n $texteToken = \"$texteToken:$cle\";\n }\n // J'INCREMENTE MOI MEME L'INDICE\n $indice++;\n }\n // JE COMPLETE LE TEXTE FINAL\n $texteFinal = \"INSERT INTO $nomTable ( $texteFinal ) VALUES ($texteToken)\";\n return $texteFinal;\n}", "title": "" }, { "docid": "bb3191312e644aec2c050cee01932369", "score": "0.6118897", "text": "function proximoPais($criminal){\n $sesion = session('pais');\n\n // Desarmo el array de los paises donde se encuentra\n $lugar = explode(',', $criminal->ubicacion); \n\n // Recorro la lista hasta encontrar el proximo pais del criminal\n for($i=0; $i<5 ; $i++){if($lugar[$i] == $sesion){if($lugar[$i] != $lugar[4]){$proximo = $lugar[$i+1];} else {$proximo = $lugar[$i];} } }\n\n switch ($proximo) {\n case 1: /* Argentina */\n $proximo = \"La persona a la que estan buscando comento que iba a ir al pais en el que se come el mejor asado y donde podia comprar una golosina... dulce de leche?\";\n break;\n case 2: /* Brasil */ \n $proximo = \"La persona que estan buscando dijo que iba a ir a visitar el Maracana y a tomar unas caipirinhas\";\n break;\n case 3: /* Uruguay */ \n $proximo = \"La persona que estan buscando estaba hablando de hacer una reserva para ir a Punta del Este\";\n break;\n case 4: /* Estados Unidos */\n $proximo = \"La persona que buscan tenia entradas para ver un partido entre los Bulls y los Spurs\";\n break;\n case 5: /* Alemania */\n $proximo = \"La persona que estan buscando iba a ir al Museo de la historia de Hamburgo\";\n break;\n}\n\nreturn $proximo;\n}", "title": "" }, { "docid": "506eebe7ade1b415e30c0c26b1020f6f", "score": "0.6114625", "text": "static public function ctrAnularCompra() {\r\n\r\n if(isset($_GET[\"idCompra\"])) {\r\n\r\n $idCompra = $_GET[\"idCompra\"];\r\n\r\n #obtenemos el detalle de la compra segun el id\r\n $detalleCompra = ModeloCompras::mdlMostrarDetalleCompra(\"id_compra\", $idCompra);\r\n\r\n foreach ($detalleCompra as $detalle) {\r\n\r\n #obtemos el insumo al que le vamos a descontar la cantidad\r\n $insumo = ModeloInsumos::mdlMostrarInsumos(\"id\", $detalle[\"id_insumo\"]);\r\n\r\n #restamos la cantidad de insumos menos la cantidad de detalle\r\n $nuevoStock = $insumo[\"stock\"] - $detalle[\"cantidad\"];\r\n\r\n #ahora actualizamos el stock\r\n $datosStock = array(\r\n \"idInsumo\" => $detalle[\"id_insumo\"],\r\n \"stock\" => $nuevoStock\r\n );\r\n\r\n ModeloCompras::mdlUpdateStock($datosStock);\r\n\r\n }\r\n\r\n $respuesta = ModeloCompras::mdlAnularCompra(\"estado\",0, \"id\", $idCompra);\r\n\r\n if($respuesta == \"ok\") {\r\n\r\n echo'<script>\r\n\r\n\t\t\t\tswal({\r\n\t\t\t\t\t type: \"success\",\r\n\t\t\t\t\t title: \"¡La Compra ha sido anulada!\",\r\n\t\t\t\t\t text: \"La cantidad de insumos comprados han sido descontados del stock\",\r\n\t\t\t\t\t showConfirmButton: true,\r\n\t\t\t\t\t confirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t closeOnConfirm: false\r\n\t\t\t\t\t }).then(function(result){\r\n\t\t\t\t\t\t\t\tif (result.value) {\r\n\r\n\t\t\t\t\t\t\t\twindow.location = \"compras\";\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\r\n\t\t\t\t</script>';\r\n\r\n }\r\n\r\n\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "4f6f377693095fff91f7bae390156d78", "score": "0.61122435", "text": "public function activarPantalla( ) {\n }", "title": "" }, { "docid": "a43702056488b711cbc79ac2e1a6e2e1", "score": "0.61022663", "text": "function ordine_io_cosa_sono($ordine,$id_user){\n$cosa = 0;\n$mio_gas = id_gas_user($id_user);\n\n\n$sql = \"SELECT * FROM retegas_referenze\nWHERE (((retegas_referenze .id_ordine_referenze)='$ordine')\n AND (retegas_referenze.id_gas_referenze='$mio_gas'));\";\n $ret = mysql_query($sql);\n $nrow2 = mysql_numrows($ret);\n\nif ($nrow2>0){\n if(ordine_partecipabile($ordine)){\n $cosa=1;\n }\n}\n$sql = \"SELECT * FROM retegas_dettaglio_ordini\n WHERE ((retegas_dettaglio_ordini.id_ordine='$ordine')\n AND (retegas_dettaglio_ordini.id_utenti='$id_user'));\";\n $ret = mysql_query($sql);\n $nrow = mysql_numrows($ret);\n\nif ($nrow>0){\n $cosa=2;\n}\n\nif(id_referente_ordine_proprio_gas($ordine,$mio_gas)==$id_user){\n $cosa=3;\n}\n\nif(id_referente_ordine_globale($ordine)==$id_user){\n $cosa=4;\n}\n\n\n\n\n\n//echo \"COSA = \".$cosa;\nreturn $cosa;\n\n\n // 0 = non c'entro\n // 1 = possibile utente\n // 2 = utente\n // 3 = referente GAS\n // 4 = referente ORDINE\n\n}", "title": "" }, { "docid": "35127d8b21ae266c28057c199f611442", "score": "0.61020696", "text": "function rutasuma(){\n\t\t$salida = 'Guardado';\n\t\t$id = $this->uri->segment($this->uri->total_segments()-2);\n\t\t$ruta = $this->uri->segment($this->uri->total_segments()-1);\n\t\t$dia = $this->uri->segment($this->uri->total_segments());\n\t\t$dbid = $this->db->escape($id);\n\t\t$dbruta = $this->db->escape($ruta);\n\t\t$dbdia = $this->db->escape($dia);\n\n\t\t// Comprueba si existe el cliente\n\t\t$mSQL = \"SELECT COUNT(*) AS cana FROM scli WHERE id=${dbid}\";\n\t\t$rcli = intval($this->datasis->dameval($mSQL));\n\t\t// Comprueba si existe la Ruta\n\t\t$vend = $this->datasis->dameval(\"SELECT TRIM(vende) AS vende FROM sclirut WHERE ruta=${dbruta}\");\n\t\tif(!empty($vend)){\n\t\t\t$resta = 1;\n\t\t}else{\n\t\t\t$resta = 0;\n\t\t}\n\t\tif($resta == 1 && $rcli == 1){\n\t\t\t$mSQL = \"SELECT cliente FROM scli WHERE id=${dbid}\";\n\t\t\t$cliente = $this->datasis->dameval($mSQL);\n\t\t\t$dbcliente = $this->db->escape($cliente);\n\t\t\t$mSQL=\"SELECT b.vende,a.ruta FROM sclitrut AS a JOIN sclirut AS b ON a.ruta=b.ruta WHERE a.cliente=${dbcliente} AND b.ruta<>${dbruta}\";\n\t\t\t$query = $this->db->query($mSQL);\n\t\t\t$cherr=false;\n\t\t\tforeach($query->result() as $row){\n\t\t\t\tif($row->vende==$vend){\n\t\t\t\t\t$cherr = true;\n\t\t\t\t\t$salida = 'El cliente ya pertenece a la ruta '.$row->ruta.' asignada al vendedor '.$vend;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!$cherr){\n\t\t\t\t$mSQL = \"INSERT IGNORE INTO sclitrut (cliente, ruta, dia) VALUES ( ${dbcliente}, ${dbruta}, ${dbdia} ) \";\n\t\t\t\t$this->db->query($mSQL);\n\t\t\t}\n\t\t}else{\n\t\t\t$salida = 'Error en los datos ';\n\t\t}\n\t\techo $salida;\n\t}", "title": "" }, { "docid": "5e0baa4c0882678e44ed7aaa889979cd", "score": "0.6097007", "text": "function cariPosisi($batas){\nif(empty($_GET[halagenda])){\n\t$posisi=0;\n\t$_GET[halagenda]=1;\n}\nelse{\n\t$posisi = ($_GET[halagenda]-1) * $batas;\n}\nreturn $posisi;\n}", "title": "" }, { "docid": "fddf48e999bdc82bb91c8512912f956d", "score": "0.6091873", "text": "function cl_assentamentofimcontrato() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"assentamentofimcontrato\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "cb2391b0405fa2f5a6db18f5eddc06f9", "score": "0.60903174", "text": "public function lucesSueloPasilloApagar( ) {\n $this->luces->apagarLucesSueloPasillo();\n AccesoGui::$guiLuces->luzSueloPasilloApagar();\n }", "title": "" }, { "docid": "637b162e89463c3a9c9f721185611eb9", "score": "0.6088031", "text": "public function lucesTechoPasilloApagar( ) {\n $this->luces->apagarLucesTechoPasillo();\n AccesoGui::$guiLuces->luzTechoPasilloApagar();\n }", "title": "" }, { "docid": "269026449a4dc2fc24396c02af9c6b07", "score": "0.6086071", "text": "function cheques_cadeau_autoriser(){}", "title": "" }, { "docid": "a819b2be0103a51012107bfaf34b131f", "score": "0.60796094", "text": "function datos_novedad_vigente($mes, $idestudiantegeneral, $objetobase, $nombrecorto, $imprimir=0) {\n\n $fechainicialmes = formato_fecha_mysql(\"01/\" . $mes);\n $fechafinalmes = formato_fecha_mysql(final_mes_fecha(\"01/\" . $mes));\n\n $condicion = \"and no.nombrecortonovedadarp='$nombrecorto' and\n\t\t\t\t\tes.idestudiantegeneral=en.idestudiantegeneral and\n\t\t\t\t\ten.idnovedadarp=no.idnovedadarp and\n\t\t\t\t\tno.codigoestado like '1%' and\n\t\t\t\t\t('$fechainicialmes' between no.fechainicionovedadarp and no.fechafinalnovedadarp) and\n\t\t\t\t\ten.codigoestado like '1%' and (\n\t\t\t\t\t('$fechainicialmes' between en.fechainicioestudiantenovedadarp and en.fechafinalestudiantenovedadarp) or\n\t\t\t\t\t('$fechafinalmes' between en.fechainicioestudiantenovedadarp and en.fechafinalestudiantenovedadarp) or\n\t\t\t\t\t(en.fechainicioestudiantenovedadarp between '$fechainicialmes' and '$fechafinalmes') or\n\t\t\t\t\t(en.fechafinalestudiantenovedadarp between '$fechainicialmes' and '$fechafinalmes') )\n\t\t\t\t\t\";\n $datosvalidarnovedad = $objetobase->recuperar_datos_tabla(\"estudiantegeneral es, estudiantenovedadarp en, novedadarp no\", \"es.idestudiantegeneral\", $idestudiantegeneral, $condicion, ',en.fechainicioestudiantenovedadarp fechainicio,en.fechafinalestudiantenovedadarp fechafinal', $imprimir);\n\n return $datosvalidarnovedad;\n}", "title": "" }, { "docid": "8fa145fb4e1a6f8eba3fefd3632b89b0", "score": "0.60790837", "text": "public function lucesSueloApagar( ) {\n $this->luces->apagarLucesSuelo();\n AccesoGui::$guiLuces->luzSueloApagar();\n }", "title": "" }, { "docid": "28010888edbecbceb4b9c587fd9ee4da", "score": "0.60787356", "text": "function anadir_algo(&$cadena){\r\n\t\t\t\t$cadena .= ',y algo más. '; //el punto de agregacion\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "d384f2e666c22df27bfeae7e566e9369", "score": "0.6072119", "text": "function getMercancia($arregloDatos,$unDatos,$plantilla)\n {\n \n //se valida si se puede elejir mercancia nacional no nacional o ambas\n $this->validaCapturaDeclaraciones($arregloDatos,$unDatos,$plantilla);\n \n if($unDatos->cantidad_nonac <= 0)\n {\n $arregloDatos[mostrarBotonGuardar]='none'; // No deja Seleccionar mercancia\n }\n \n \n $arregloDatos[readonly]=\"\";\n if($unDatos->cod_referencia==1) // Si es Bultos\n {\n $arregloDatos[cantidad_nonac] =$arregloDatos[cant_bultos]-$unDatos->cantidad_naci;\n //saldo por nacionalizar\n $arregloDatos[cantidad] =$arregloDatos[cant_bultos];\n $arregloDatos[valor] =$unDatos->peso_naci+$unDatos->fob_nonac;\n $arregloDatos[readonly] =\"readonly=''\";\n $arregloDatos[v_aux_nonac] =\"\";\n $arregloDatos[fob_nonac] =\"\";\n $arregloDatos[valor] =$unDatos->fob_naci;\n //$arregloDatos[peso_naci] =$arregloDatos[peso_declaraciones];\n }\n \n \n $arregloDatos[cant_declaraciones]=$arregloDatos[cant_declaraciones]+1;\n // se calcula la cantidad restante cuando son bultos y se cambia la cantidad por los bultos a nacionalizar\n $unaConsulta= new Levante();\n $unaConsulta->getSumaGrupo($arregloDatos);\n $unaConsulta->fetch();\n $arregloDatos[sum_cant_naci]= $unaConsulta->sum_cant_naci;\n if(empty($arregloDatos[sum_cant_naci])){$arregloDatos[sum_cant_naci]=0;}\n \n $this->setValores(&$arregloDatos,$unDatos,$plantilla);\n $this->mantenerDatos($arregloDatos,$plantilla);\n }", "title": "" }, { "docid": "54086ee44aed3faf0c60037d42dde6ba", "score": "0.6065067", "text": "function cl_levandam() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"levandam\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "f4d18f64a6fd6a569088402e68b237d0", "score": "0.6063792", "text": "function inscribirCorredor(Corredor $corredor, Carrera $carrera);", "title": "" }, { "docid": "f59ea71bad321d0763efc23baeca7a3c", "score": "0.6056982", "text": "function Cargar($recuperareferencia,$recuperafolleto,$recuperacuadro,$recuperaciudad_salida,$recuperapaquete,$recuperaregimen,$recuperafecha_salida,$recuperanombre_titular,$recuperaadultos,$recuperaninos,$recuperabebes,$recuperanovios,$recuperajubilados,$recuperaobservaciones,$recuperaagente,$recuperareferencia_agencia,$recuperaenvio,$recuperadivisa_actual,$recuperamodificacion_motivo,$recuperamodificacion_responsable,$recuperafree,$recuperamodificar,$recuperamodificar_comisionable,$recuperamodificar_detalle_comisionable,$recuperamodificar_no_comisionable,$recuperamodificar_detalle_no_comisionable,$recuperamodificar_comision,$recuperamodificar_usuario,$recuperavisa, $recuperaobservaciones_internas, $recuperaobservaciones_hotel, $recuperaobservaciones_clientes){\r\n\r\n\t\t$conexion = $this ->Conexion;\r\n\r\n\t\t//Consulta\r\n\t\t$Filadesde = $this ->Filadesde;\r\n\t\t$Usuario = $this ->Usuario;\r\n\r\n\t\t//ESPECIFICO: Cargamos las lineas solicitadas para esta pantalla\r\n\t\t$buscar_localizador = $this->Buscar_localizador;\r\n\t\t$buscar_referencia = $this->Buscar_referencia;\r\n\t\t$buscar_referencia_agencia = $this->Buscar_referencia_agencia;\r\n\t\t$buscar_folleto = $this->Buscar_folleto;\r\n\t\t$buscar_cuadro = $this->Buscar_cuadro;\r\n\t\t$buscar_fecha_salida = $this->Buscar_fecha_salida;\r\n\t\t$buscar_fecha_reserva = $this->Buscar_fecha_reserva;\r\n\t\t$buscar_minorista = $this->Buscar_minorista;\r\n\t\t$buscar_oficina = $this->Buscar_oficina;\r\n\t\t$buscar_telefono_oficina = $this->Buscar_telefono_oficina;\r\n\t\t$buscar_nombre = $this->Buscar_nombre;\r\n\r\n\r\n\t\tif($buscar_localizador != null){\r\n\t\t\t$CADENA_BUSCAR = \" AND r.localizador = '\".$buscar_localizador.\"'\";\r\n\t\t}elseif($buscar_referencia != null){\r\n\t\t\t$CADENA_BUSCAR = \" AND r.referencia = '\".$buscar_referencia.\"'\";\r\n\t\t}elseif($buscar_referencia_agencia != null){\r\n\t\t\t$CADENA_BUSCAR = \" AND r.referencia_agencia = '\".$buscar_referencia_agencia.\"'\";\r\n\t\t}elseif($buscar_folleto != null){\r\n\t\t\t$cuadr = \" AND r.cuadro = '\".$buscar_cuadro.\"'\";\r\n\t\t\t$salid = \" AND r.fecha_salida = '\".date(\"Y-m-d\",strtotime($buscar_fecha_salida)).\"'\";\r\n\t\t\t$reserv = \" AND r.fecha_reserva = '\".date(\"Y-m-d\",strtotime($buscar_fecha_reserva)).\"'\";\r\n\t\t\t$minor = \" AND m.nombre like '%\".$buscar_minorista.\"%'\";\r\n\t\t\t$ofic = \" AND r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" AND r.folleto = '\".$buscar_folleto.\"'\";\r\n\t\t\tif($buscar_cuadro != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $cuadr;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_fecha_salida != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $salid;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_fecha_reserva != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $reserv;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_minorista != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $minor;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $ofic;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_cuadro != null){\r\n\t\t\t$salid = \" AND r.fecha_salida = '\".date(\"Y-m-d\",strtotime($buscar_fecha_salida)).\"'\";\r\n\t\t\t$reserv = \" AND r.fecha_reserva = '\".date(\"Y-m-d\",strtotime($buscar_fecha_reserva)).\"'\";\r\n\t\t\t$minor = \" AND m.nombre like '%\".$buscar_minorista.\"%'\";\r\n\t\t\t$ofic = \" AND r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" AND r.cuadro = '\".$buscar_cuadro.\"'\";\r\n\t\t\tif($buscar_fecha_salida != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $habit;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_fecha_reserva != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $reserv;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_minorista != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $minor;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $ofic;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_fecha_salida != null){\r\n\t\t\t$reserv = \" AND r.fecha_reserva = '\".date(\"Y-m-d\",strtotime($buscar_fecha_reserva)).\"'\";\r\n\t\t\t$minor = \" AND m.nombre like '%\".$buscar_minorista.\"%'\";\r\n\t\t\t$ofic = \" AND r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and r.fecha_salida = '\".date(\"Y-m-d\",strtotime($buscar_fecha_salida)).\"'\";\r\n\t\t\tif($buscar_fecha_reserva != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $reserv;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_minorista != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $minor;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $ofic;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_fecha_reserva != null){\r\n\t\t\t$minor = \" AND m.nombre like '%\".$buscar_minorista.\"%'\";\r\n\t\t\t$ofic = \" AND r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and r.fecha_reserva = '\".date(\"Y-m-d\",strtotime($buscar_fecha_reserva)).\"'\";\r\n\t\t\tif($buscar_minorista != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $minor;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $ofic;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_minorista != null){\r\n\t\t\t$ofic = \" AND r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and m.nombre like '%\".$buscar_minorista.\"%'\";\r\n\t\t\tif($buscar_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $ofic;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_oficina != null){\r\n\t\t\t$telef = \" AND o.telefono = '\".$buscar_telefono_oficina.\"'\";\t\t\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and r.oficina = '\".$buscar_oficina.\"'\";\r\n\t\t\tif($buscar_telefono_oficina != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $telef;\t\r\n\t\t\t}\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_telefono_oficina != null){\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and o.telefono = '\".$buscar_telefono_oficina.\"'\";\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_telefono_oficina != null){\r\n\t\t\t$nombre = \" AND r.nombre_titular = '\".$buscar_nombre.\"'\";\r\n\t\t\t$CADENA_BUSCAR = \" and o.telefono = '\".$buscar_telefono_oficina.\"'\";\r\n\t\t\tif($buscar_nombre != null){\r\n\t\t\t\t$CADENA_BUSCAR .= $nombre;\t\r\n\t\t\t}\r\n\t\t}elseif($buscar_nombre != null){\r\n\t\t\t$CADENA_BUSCAR = \" and r.nombre_titular like '%\".$buscar_nombre.\"%'\";\r\n\t\t}else{\r\n\t\t\t$CADENA_BUSCAR = \" and r.localizador = 0\"; \r\n \t\t}\r\n\r\n\r\n\t\t$resultado =$conexion->query(\"select \r\n\t\t\t\tr.localizador,\r\n\t\t\t\tr.referencia,\r\n\t\t\t\tCASE r.situacion\r\n\t\t\t\t\tWHEN 'P' THEN 'PENDIENTE'\r\n\t\t\t\t\tWHEN 'F' THEN 'EN FIRME'\r\n\t\t\t\t\tWHEN 'A' THEN 'ANULADA'\r\n\t\t\t\t\tELSE r.situacion\r\n\t\t\t\tEND situacion,\r\n\t\t\t\tr.situacion codigo_situacion,\r\n\t\t\t\tCASE r.bloqueada\r\n\t\t\t\t\tWHEN 'S' THEN 'Si'\r\n\t\t\t\t\tWHEN 'N' THEN 'No'\r\n\t\t\t\t\tELSE r.bloqueada\r\n\t\t\t\tEND bloqueada,\r\n\t\t\t\tr.bloqueada_usuario,\r\n\t\t\t\tr.folleto,\r\n\t\t\t\tr.cuadro,\r\n\t\t\t\tr.ciudad_salida,\r\n\t\t\t\tr.paquete, \r\n\t\t\t\tr.regimen,\r\n\t\t\t\tDATE_FORMAT(r.fecha_salida, '%d-%m-%Y') AS fecha_salida, \r\n\t\t\t\tDATE_FORMAT(r.fecha_regreso, '%d-%m-%Y') AS fecha_regreso, \r\n\t\t\t\tDATE_FORMAT(r.fecha_reserva, '%d-%m-%Y') AS fecha_reserva,\r\n\t\t\t\tr.usuario_reserva, \r\n\t\t\t\tDATE_FORMAT(r.fecha_modificacion, '%d-%m-%Y') AS fecha_modificacion, \r\n\t\t\t\tr.usuario_modificacion,\r\n\t\t\t\tr.dias_cuadro dias_cuadro,\r\n\t\t\t\tr.dias_total - dias_cuadro noches_extra,\r\n\t\t\t\tr.nombre_titular,\r\n\t\t\t\tr.tipo_pax,r.pax,\r\n\t\t\t\tr.adultos,\r\n\t\t\t\tr.ninos,\r\n\t\t\t\tr.bebes,\r\n\t\t\t\tr.novios,\r\n\t\t\t\tr.jubilados,\r\n\t\t\t\tr.observaciones,\r\n\t\t\t\tr.minorista,\r\n\t\t\t\tr.oficina,\r\n\t\t\t\tr.agente,\r\n\t\t\t\tr.referencia_agencia,\r\n\t\t\t\tr.envio,\r\n\r\n\r\n\t\t\t\tCASE r.precobro\r\n\t\t\t\t\tWHEN 'N' THEN 'Pendiente cobro'\r\n\t\t\t\t\tWHEN 'S' THEN 'Pagado'\r\n\t\t\t\t\tWHEN 'C' THEN 'Credito'\r\n\t\t\t\t\tELSE r.situacion\r\n\t\t\t\tEND precobro,\r\n\r\n\r\n\t\t\t\tr.operador_prepago,DATE_FORMAT(r.fecha_pago, '%d-%m-%Y') AS fecha_pago,\r\n\t\t\t\tdi.nombre divisa_base,\r\n\t\t\t\tr.divisa_actual,\r\n\t\t\t\tr.cambio,r.redondeo,\r\n\t\t\t\t(r.pvp_calculado_comisionable + r.pvp_calculado_no_comisionable) calculado_pvp,\r\n\t\t\t\tr.pvp_calculado_comisionable,\r\n\t\t\t\tr.pvp_calculado_no_comisionable,\r\n\t\t\t\tr.pvp_calculado_comision,\r\n\t\t\t\tr.pvp_calculado_importe_comision,\r\n\t\t\t\tr.pvp_calculado_impuesto_comision,\r\n\t\t\t\tr.pvp_calculado_total,\r\n\t\t\t\t(r.pvp_comisionable + r.pvp_no_comisionable) pvp,\r\n\t\t\t\tr.pvp_comisionable,\r\n\t\t\t\tr.pvp_no_comisionable,\r\n\t\t\t\tr.pvp_comision,\r\n\t\t\t\tr.pvp_importe_comision,\r\n\t\t\t\tr.pvp_impuesto_comision,\r\n\t\t\t\tr.pvp_total,\r\n\t\t\t\tr.modificacion_motivo,\r\n\t\t\t\tr.modificacion_responsable,\r\n\t\t\t\tr.factura,\r\n\t\t\t\tDATE_FORMAT(r.factura_fecha_emision, '%d-%m-%Y') AS factura_fecha_emision,\r\n\t\t\t\tDATE_FORMAT(r.factura_fecha_salida, '%d-%m-%Y') AS factura_fecha_salida,\r\n\t\t\t\tDATE_FORMAT(r.factura_fecha_reserva, '%d-%m-%Y') AS factura_fecha_reserva,\r\n\t\t\t\tr.factura_pax,\r\n\t\t\t\tDATE_FORMAT(r.factura_primera_emision, '%d-%m-%Y') AS factura_primera_emision,\r\n\t\t\t\tDATE_FORMAT(r.factura_ultima_emision, '%d-%m-%Y') AS factura_ultima_emision,\r\n\t\t\t\tr.factura_situacion,\r\n\t\t\t\tr.factura_comisionable,\r\n\t\t\t\tr.factura_no_comisionable,\r\n\t\t\t\tr.factura_comision,\r\n\t\t\t\tr.factura_importe_comision,\r\n\t\t\t\tr.factura_impuesto_comision,\r\n\t\t\t\tr.factura_a_deducir,\r\n\t\t\t\tr.factura_total_pagar,\r\n\t\t\t\tr.free,DATE_FORMAT(r.anulacion_fecha, '%d-%m-%Y') AS anulacion_fecha,\r\n\t\t\t\tr.anulacion_usuario,\r\n\t\t\t\tr.tipos_descuento,\r\n\t\t\t\tr.modificar,\r\n\t\t\t\tr.modificar_comisionable,\r\n\t\t\t\tr.modificar_detalle_comisionable,\r\n\t\t\t\tr.modificar_no_comisionable,\r\n\t\t\t\tr.modificar_detalle_no_comisionable,\r\n\t\t\t\tr.modificar_comision,\r\n\t\t\t\tr.visa,\r\n\t\t\t\tr.alternativa_aerea,\r\n\t\t\t\tr.password, \r\n\t\t\t\tm.NOMBRE agencia, \r\n\t\t\t\tr.minorista,\r\n\t\t\t\to.LOCALIDAD agencia_localidad, \r\n\t\t\t\to.DIRECCION agencia_direccion, \r\n\t\t\t\to.TELEFONO agencia_telefono,\r\n\t\t\t\to.MAIL agencia_mail,\r\n\t\t\t\tpf.nombre nombre_folleto, \r\n\t\t\t\tpc.nombre nombre_cuadro,\r\n\t\t\t\tr.observaciones_internas, \r\n\t\t\t\tr.observaciones_hotel, \r\n\t\t\t\tr.observaciones_clientes\r\n\t\t\tfrom hit_reservas r, hit_minoristas m, hit_oficinas o, hit_producto_folletos pf, hit_producto_cuadros pc, hit_divisas di\r\n\t\t\twhere\r\n\t\t\t\tr.MINORISTA = m.ID\tand r.MINORISTA = o.ID and r.OFICINA = o.OFICINA and r.FOLLETO = pf.codigo and r.FOLLETO = pc.folleto\tand r.CUADRO = pc.cuadro\r\n\t\t\t\tand r.divisa_base = di.codigo \".$CADENA_BUSCAR.\" ORDER BY r.localizador\");\r\n\r\n\t\tif ($resultado == FALSE){\r\n\t\t\techo($CADENA_BUSCAR);\r\n\t\t\t$resultado->close();\r\n\t\t\t$conexion->close();\r\n\t\t\texit;\r\n\t\t}\r\n\r\n\t\t//----------------------------------------------------------------\r\n\r\n\t\t//Guardamos el resultado en una matriz con un numero fijo de registros\r\n\t\t//que controlaremos por una tabla de configuracion de pantallas de usuarios. ESPECIFICO: Solo el nombre del formulario en la query\r\n\t\t$numero_filas =$conexion->query(\"SELECT LINEAS_MODIFICACION FROM hit_usuarios_formularios WHERE FORMULARIO = 'MANTENIMIENTO' AND USUARIO = '\".$Usuario.\"'\");\r\n\t\t$Nfilas\t = $numero_filas->fetch_assoc();\t\t\t\t\t\t\t\t\t\t\t //------\r\n\r\n\t\t$reservas = array();\r\n\t\tif($recuperafolleto != null){\t\r\n\t\t\t$reservas[0] = array (\t\"referencia\" => $recuperareferencia ,\"folleto\" => $recuperafolleto ,\"cuadro\" => $recuperacuadro ,\"ciudad_salida\" => $recuperaciudad_salida ,\"paquete\" => $recuperapaquete,\"regimen\" => $recuperaregimen ,\"fecha_salida\" => $recuperafecha_salida ,\"nombre_titular\" => $recuperanombre_titular ,\"adultos\" => $recuperaadultos ,\"ninos\" => $recuperaninos ,\"bebes\" => $recuperabebes ,\"novios\" => $recuperanovios ,\"jubilados\" => $recuperajubilados ,\"observaciones\" => $recuperaobservaciones ,\"minorista\" => $recuperaminorista ,\"oficina\" => $recuperaoficina ,\"agente\" => $recuperaagente ,\"referencia_agencia\" => $recuperareferencia_agencia ,\"envio\" => $recuperaenvio ,\"divisa_actual\" => $recuperadivisa_actual ,\"modificacion_motivo\" => $recuperamodificacion_motivo ,\"free\" => $recuperafree ,\"modificar\" => $recuperamodificar ,\"modificar_comisionable\" => $recuperamodificar_comisionable ,\"modificar_detalle_comisionable\" => $recuperamodificar_detalle_comisionable ,\"modificar_no_comisionable\" => $recuperamodificar_no_comisionable ,\"modificar_detalle_no_comisionable\" => $recuperamodificar_detalle_no_comisionable ,\"modificar_comision\" => $recuperamodificar_comision ,\"visa\" => $recuperavisa, \"observaciones_internas\" => $recuperaobservaciones_internas, \"observaciones_hotel\" => $recuperaobservaciones_hotel, \"observaciones_clientes\" => $recuperaobservaciones_clientes);\r\n\t\t}else{\r\n\t\t\tfor ($num_fila = $Filadesde-1; $num_fila <= $Filadesde + $Nfilas['LINEAS_MODIFICACION']-2; $num_fila++) {\r\n\t\t\t\t$resultado->data_seek($num_fila);\r\n\t\t\t\t$fila = $resultado->fetch_assoc();\r\n\t\t\t\tarray_push($reservas,$fila);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Liberar Memoria usada por la consulta\r\n\t\t$resultado->close();\r\n\t\t$numero_filas->close();\r\n\r\n\t\treturn $reservas;\t\t\t\t\t\t\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "de5389c155ec34e4332025f04b35a095", "score": "0.60462815", "text": "public abstract function generar_vista();", "title": "" }, { "docid": "1757f77f61a2897dc7faf64f4cf4595f", "score": "0.6045229", "text": "public function geraLeitura($iCgmLeiturista) {\n require_once(\"classes/db_agualeitura_classe.php\");\n $this->clAguaLeitura = new cl_agualeitura();\n \n $this->iCgmLeiturista = $iCgmLeiturista;\n \n $this->clAguaLeitura->x21_codhidrometro = $this->iCodHidrometro;\n $this->clAguaLeitura->x21_exerc = $this->iAno;\n $this->clAguaLeitura->x21_mes = $this->iMes;\n $this->clAguaLeitura->x21_situacao = \"0\"; //normal\n $this->clAguaLeitura->x21_numcgm = $this->iCgmLeiturista;\n $this->clAguaLeitura->x21_dtleitura = $this->dData;\n $this->clAguaLeitura->x21_usuario = $this->iUsuario;\n $this->clAguaLeitura->x21_dtinc = $this->dData;\n $this->clAguaLeitura->x21_leitura = \"0\";\n $this->clAguaLeitura->x21_virou = \"false\";\n $this->clAguaLeitura->x21_tipo = \"2\"; //exportada coletor\n $this->clAguaLeitura->x21_status = \"2\"; // inativo\n $this->clAguaLeitura->incluir(null); \n \n if($this->clAguaLeitura->erro_status == \"0\") {\n \n $this->iErroStatus = 0;\n $this->sErroMsg = \"Inclusão na tabela agualeitura não efetuada. Operação Abortada. Erro: {$this->clAguaLeitura->erro_msg}.<br>\";\n return false;\n \n } else {\n \n return $this->iCodLeitura = $this->clAguaLeitura->x21_codleitura;\n \n }\n \n \n }", "title": "" }, { "docid": "2de89861d9992c66b84c7b56ac89c551", "score": "0.60451317", "text": "function subAcceso($dato){\n\n}", "title": "" }, { "docid": "da72247c23eb7b5445ae83347111fe88", "score": "0.60423356", "text": "public function metodoCurso($idCurso,$pagina) {\n $this->getVista()->armarHtml();\n $this->getVista()->modificarCuerpo('{sectorDerecha}','');\n $this->getVista()->modificarCuerpo('{sectorIzquierda}',file_get_contents(DIR_RAIZ.DIR_VISTA.DIR_HTMLS.'/cuerpoUnCurso'));\n $this->getVista()->modificarCuerpo('{colIzq}','12');\n $curso=Modelo::buscarUnCurso($idCurso);\n $this->getVista()->modificarCuerpo('{curso}',$this->getVista()->crearTituloTemaCurso($curso['nombreMateria'],$curso['nombreCatedra'],\n $curso['sede'],$curso['horario'],$curso['codigo'],$curso['dias']));\n $vecComentarios = Modelo::buscarComentsCurso($idCurso);\n $cantComents=count($vecComentarios);\n $listaComents=null;\n $vecComents=array_slice($vecComentarios, ($pagina-1)*CANT_COMENTS,CANT_COMENTS,true);\n \n $unHref='<li class=\"page-item\"><a class=\"page-link\" href=\"/Seccion/Curso/'.$idCurso.'/';\n $botones = new Paginacion($pagina,$cantComents,$unHref);\n // listando los comentarios\n foreach ($vecComents as $comentario){\n $usuario = Modelo::buscarUsuario($comentario[\"idUsuario\"]);\n $vecFecha=date_parse($comentario[\"fechaHora\"]);\n $face=NULL;\n $redSoc2=NULL;\n $face = (($usuario[\"redSocial1\"]==NULL)||(empty($usuario[\"redSocial1\"])))? ''\n :'<div class=\"\"><a href=\"'.$usuario[\"redSocial1\"].'\"> <img src=\"/Vistas/imagenes/face.png\" class=\"icono3\" ></a></div>';\n $redSoc2 = (($usuario[\"redSocial2\"]==NULL)||(empty($usuario[\"redSocial2\"])))? ''\n :'<div clas=\"\"><a href=\"'.$usuario[\"redSocial2\"].'\"> <img src=\"/Vistas/imagenes/redSocial2.png\" class=\"icono3\"></a></div>';\n ($this->getUsuario()->getRol()=='ADMI')?\n // Solo mostrar la opcion de borrar el comentario (el borrado efectivo se hace en ControladorAdministrar->metodoEliminarComentario)\n $borrado = $this->getVista()->crearMenuBorrarMsj($comentario[\"idComentario\"],$idCurso,$pagina) \n :$borrado='';\n $listaComents .= $this->getVista()->crearListaComentarios($usuario[\"apodo\"],$usuario[\"dirImg\"],$face,$redSoc2,$vecFecha,$comentario[\"contenido\"],$borrado);\n }\n $this->getVista()->modificarCuerpo('{scriptJs}','/Vistas/js/cursos.js');\n $this->getVista()->modificarCuerpo('{archCss}','/Vistas/css/index.css');\n $this->getVista()->modificarCuerpo('{pieIzq}','comentarios de usuarios');\n $this->getVista()->modificarCuerpo('{listaComentarios}',$listaComents);\n $this->getVista()->modificarCuerpo('{paginacion}',$botones->getBotonera());\n $this->getVista()->modificarCuerpo('{tieneSesion}',($this->getUsuario()->tieneSesion())?$this->getVista()->CrearAreaComentaje($_SESSION[\"img\"]):'');\n $this->getVista()->modificarCuerpo('{action}','action=\"/Seccion/ComentarCurso/'.$idCurso.'\"');\n return $this->getVista();\n }", "title": "" }, { "docid": "ad9ae70cfa8a8bce32619a959075ef85", "score": "0.60411054", "text": "function cl_veicutilizacaobem() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"veicutilizacaobem\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "b89870469f94109e2cf62bc9333d30cc", "score": "0.60406065", "text": "function mandar_vale($id_pedido_venda_item, $qtde_vale) {\n //Trago alguns campos do $id_pedido_venda_item que serão passados mais abaixo via e-mail + abaixo ...\n $sql = \"SELECT `id_produto_acabado`, `qtde`, `qtde_pendente`, `vale` \n FROM `pedidos_vendas_itens` \n WHERE `id_pedido_venda_item` = '$id_pedido_venda_item' LIMIT 1 \";\n $campos = bancos::sql($sql);\n $id_produto_acabado = $campos[0]['id_produto_acabado'];\n $qtde_pedido_item = $campos[0]['qtde'];\n $qtde_pendente = $campos[0]['qtde_pendente'];\n $vale = $campos[0]['vale'];//Qtde anterior que já foi retirada pelo cliente ...\n \n $separada = $qtde_pedido_item - $qtde_pendente - $vale;\n \n /* Explicação dessa parte da Fórmula => ($qtde_vale < 0 && abs($qtde_vale) <= $vale), \n utilizada somente quando for fazer um Estorno de Vale ...\n \n Exemplo: $qtde_vale < 0 por exemplo \"-5\", então transformo em Positivo com o absoluto = \"5\" \n \n $qtde_vale = -5; digitado pelo Usuário ...\n $vale = 5; gravado na tabela Pedidos ...\n \n Ou seja abs($qtde_vale) = 5 <= 5, então pode passar ...*/\n\n if((($qtde_vale <= $separada) && ($qtde_vale != 0)) || ($qtde_vale < 0 && abs($qtde_vale) <= $vale)) {\n estoque_acabado::manipular($id_produto_acabado, -$qtde_vale, 0, 4, \"Envio de Vale. id_pedido_venda_item = $id_pedido_venda_item\");\n\n $sql = \"UPDATE `pedidos_vendas_itens` SET `status_estoque` = '1', `vale` = `vale` + $qtde_vale WHERE `id_pedido_venda_item` = '$id_pedido_venda_item' LIMIT 1 \";\n bancos::sql($sql);\n estoque_acabado::qtde_estoque($id_produto_acabado, 1);//depois dos calculos preciso atualizar a tabela de estoque PA n~ tirar esta linha\n }\n return 1;\n\t}", "title": "" }, { "docid": "04b44fb69058cb2e9938e272261c3ea6", "score": "0.60374695", "text": "function rutatodo(){\n\t\t$data = $this->datasis->damesesion();\n\t\tif(isset($data['data1'])){\n\t\t\t$where = $data['data1'];\n\t\t\t$ruta = $this->uri->segment($this->uri->total_segments());\n\t\t\t$dbruta = $this->db->escape($ruta);\n\t\t\t$salida = 'Guardado';\n\n\t\t\t// Comprueba si existe la Ruta y son menos de 100\n\t\t\t$mSQL = \"SELECT COUNT(*) AS cana FROM sclirut WHERE ruta=${dbruta}\";\n\t\t\t$resta = intval($this->datasis->dameval($mSQL));\n\t\t\t$cana = intval($this->datasis->dameval(\"SELECT COUNT(*) AS cana FROM scli ${where}\"));\n\n\t\t\tif($cana <=100){\n\t\t\t\tif($resta == 1){\n\t\t\t\t\t$mSQL = \"INSERT IGNORE INTO sclitrut (cliente, ruta) SELECT cliente, ${dbruta} ruta FROM scli ${where} \";\n\t\t\t\t\t$this->db->query($mSQL);\n\t\t\t\t}else{\n\t\t\t\t\t$salida = 'Error en los datos '.$mSQL;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$salida = 'Demasiados resultados para agregar en una ruta, max 100. ('.$cana.')';\n\t\t\t}\n\t\t}else{\n\t\t\t$salida = 'No hay clientes seleccionados';\n\t\t}\n\t\techo $salida;\n\t}", "title": "" }, { "docid": "c97a5cfa965055fe26866260dc5ea7d0", "score": "0.60364974", "text": "public function BuscarMenuDeRuta($ruta){\n\n }", "title": "" }, { "docid": "a6db96c7672b17715444c35830163476", "score": "0.6035416", "text": "function Navigat($ARRRAIEE,$kelfamille){\n $n=PHP_EOL;\n $fichier_importe = file_get_contents('in/_in_navigation.php',TRUE).$n;\n // ------------------------------------------------------------------------------\n $blocm = OkSpacer(4).\"<!-- Auto in menu -->\".$n;\n for ($oo=0; $oo < count($ARRRAIEE[$kelfamille]); $oo++){\n // ici le lien active\n if ($_SESSION['CURR_PAGE'] == $ARRRAIEE[$kelfamille][$oo]) {$active = ' active';} else {$active = '';}\n $blocm .= OkSpacer(4).'<a class=\"dropdown-item'.$active.'\" href=\"?'.$ARRRAIEE[$kelfamille][$oo].'\">'.$ARRRAIEE[$ARRRAIEE[$kelfamille][$oo]]['title'].'</a>'.$n;\n } \n $blocm .= OkSpacer(4).\"<!-- Fin Auto in menu -->\";\n if ($_SESSION['CURR_PAGE'] == 'index') {$ISACTIF = ' active';} else {$ISACTIF = '';}\n $valeurderetour = preg_replace(\"_NAVIGATATOR_\",$blocm, $fichier_importe); \n $valeurderetour = preg_replace(\"_ACTIVITE_\",$ISACTIF, $valeurderetour); \n // ------------------------------------------------------------------------------\n $valeurderetour = preg_replace('_ACTOBEURTWO_',Menu_Genatobeur($ARRRAIEE,'pagesgestion','files'), $valeurderetour);\n $valeurderetour = preg_replace('_ACTOBEUR_',Menu_Genatobeur($ARRRAIEE,'pagesext','files'), $valeurderetour);\n // ------------------------------------------------------------------------------\n return $valeurderetour; \n }", "title": "" }, { "docid": "649166efd3a2b44fa28d4f90a1521f04", "score": "0.60342205", "text": "function listarCuencaArb()\n\t{\n\t\t//crea el objetoFunSeguridad que contiene todos los metodos del sistema de seguridad\n\t\t$this->objFunHidro=new FuncionesHidrologia();\n\t\t\n\t\t//obtiene el parametro nodo enviado por la vista\n\t\t$node=$this->objParam->getParametro('node');\n\t\t$id_cuenca=$this->objParam->getParametro('id_cuenca');\n\t\t//$id_subsistema=$this->objParam->getParametro('id_subsistema');\n\t\t\n\t\tif($node=='id')\n\t\t{\n\t\t\t$this->objParam->addParametro('id_padre','%');\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$this->objParam->addParametro('id_padre',$id_cuenca);\n\t\t}\t\n\t\n\t\t//$this->objParam->addParametro('id_subsistema',$id_subsistema);\n\t\t$this->res=$this->objFunHidro->listarCuencaArb($this->objParam);\n\t\t\n\t\t$this->res->setTipoRespuestaArbol();\n\t\t\n\t\t$arreglo=array();\n\t\t\n\t\tarray_push($arreglo,array('nombre'=>'id','valor'=>'id_cuenca'));\n\t\tarray_push($arreglo,array('nombre'=>'id_p','valor'=>'id_cuenca_fk'));\n\t\t\n\t\tarray_push($arreglo,array('nombre'=>'text','valor'=>'nombre'));\n\t\tarray_push($arreglo,array('nombre'=>'cls','valor'=>'descripcion'));\n\t\tarray_push($arreglo,array('nombre'=>'qtip','valores'=>'<b> #codigo_largo#</b><br> #nombre#'));\n\t\t\t\n\t\t/*se a�ade un nivel al arbol incluyendo con todo de nivel carpeta con su arreglo de equivalencias\n\t\t es importante que entre los resultados devueltos por la base exista la variable tipo_dato que tenga el valor en texto = 'carpeta' */\n\t\n\t\t$this->res->addNivelArbol('tipo_cuenca','Macrocuenca',array('leaf'=>false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowDelete'=>true,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowEdit'=>true,\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t'cls'=>'folder',\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t'icon'=>'../../../lib/imagenes/a_form.png'),\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t$arreglo);\n\t\t \n\t\t$this->res->addNivelArbol('tipo_cuenca','Subcuenca',array('leaf'=>false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowDelete'=>true,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowEdit'=>true,\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t'cls'=>'folder',\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t'icon'=>'../../../lib/imagenes/a_form.png'),\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t$arreglo);\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t $this->res->addNivelArbol('tipo_cuenca','Microcuenca',array('leaf'=>false,\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t'leaf'=>true,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowDelete'=>true,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'allowEdit'=>true,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'icon'=>'../../../lib/imagenes/a_form.png'),\n\t\t \t\t\t\t\t\t\t\t\t\t\t\t$arreglo);\n\t\t\t\n\n\t\t//Se imprime el arbol en formato JSON\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\n\t}", "title": "" }, { "docid": "46707106b67353f9459ed7e22aea3087", "score": "0.60336125", "text": "function forcarLiberacaoChaves(){\n \n // ALTERA DADOS DO PROCESSO\n $campo = null;\n $chave = null;\n \n $aux = 0;\n $campo[$aux][0] = 'autorizacao_chaves_sistema';\n $campo[$aux][1] = 'S';\n $aux++;\n $campo[$aux][0] = 'autorizacao_chaves_financeiro';\n $campo[$aux][1] = 'S';\n $aux++;\n $campo[$aux][0] = 'evolucao';\n $campo[$aux][1] = 19; // LIBERADA ENTREGA DE CHAVES\n $aux++;\n $campo[$aux][0] = 'atualizado_em';\n $campo[$aux][1] = date('Y-m-d H:i:s');\n $aux++;\n $campo[$aux][0] = 'atualizado_por';\n $campo[$aux][1] = $_SESSION[\"id_usuario\"];\n $aux++;\n \n // VERIFICA QUE A PRÓXIMA ETAPA DO WORKFLOW DO PROCESSO E ALTERA A COLUNA - EVOLUÇÃO 44: AUTORIZADA ENTREGA DE CHAVES\n $nova_etapa_workflow = null;\n $evolucao_etapa_workflow = 44;\n if($evolucao_etapa_workflow > 0){\n $this->con1->consulta(\"SELECT id FROM tb_etapas_workflow WHERE workflow='\" . $this->workflow . \"' AND evolucao='\" . $evolucao_etapa_workflow . \"' AND online=1 AND status=1\");\n if($this->con1->nrows > 0){\n $this->con1->proxRegistro();\n $nova_etapa_workflow = $this->con1->data['id'];\n $campo[$aux][0] = 'etapa_workflow';\n $campo[$aux][1] = $nova_etapa_workflow;\n $aux++;\n }\n }\n \n $chave[0][0] = 'id';\n $chave[0][1] = $this->id_processo;\n \n $this->con1->executa('tb_processo',$campo,$chave);\n \n \n // REGISTRA O CONTROLE DE SLA\n $data_registro_sla = date('Y-m-d H:i:s');\n\n $campo = null;\n $chave = null;\n\n $campo[0][0] = 'id';\n $campo[0][1] = $this->con1->lastId('tb_controle_sla', 'id');\n $campo[1][0] = 'processo';\n $campo[1][1] = $this->id_processo;\n $campo[2][0] = 'etapa_workflow';\n $campo[2][1] = $nova_etapa_workflow;\n $campo[3][0] = 'data_hora';\n $campo[3][1] = $data_registro_sla;\n $campo[4][0] = 'cadastrado_em';\n $campo[4][1] = date('Y-m-d H:i:s');\n $campo[5][0] = 'cadastrado_por';\n $campo[5][1] = $_SESSION[\"id_usuario\"];\n\n $this->con1->executa('tb_controle_sla', $campo);\n \n \n // LOG EVOLUTIVO - LIBERAÇÃO DE IMPEDIMENTO PARA ENTREGA DE CHAVES\n $campo = null;\n $chave = null;\n\n $aux = 0;\n $campo[$aux][0] = 'id';\n $campo[$aux][1] = $this->con1->lastId('tb_log_evolutivo', 'id');\n $aux++;\n $campo[$aux][0] = 'tipo';\n $campo[$aux][1] = 65; // LIBERAÇÃO DE IMPEDIMENTO PARA ENTREGA DE CHAVES\n $aux++;\n $campo[$aux][0] = 'id_processo';\n $campo[$aux][1] = $this->id_processo;\n $aux++;\n $campo[$aux][0] = 'id_autenticacao';\n $campo[$aux][1] = $_SESSION[\"id_usuario\"];\n $aux++;\n $campo[$aux][0] = 'data_hora';\n $campo[$aux][1] = date('Y-m-d H:i:s');\n $aux++;\n $campo[$aux][0] = 'ip';\n $campo[$aux][1] = $_SERVER[\"REMOTE_ADDR\"];\n $aux++;\n\n $this->con1->executa('tb_log_evolutivo', $campo);\n \n // LOG EVOLUTIVO - AUTORIZAÇÃO PARA ENTREGA DE CHAVES\n $campo = null;\n $chave = null;\n\n $aux = 0;\n $campo[$aux][0] = 'id';\n $campo[$aux][1] = $this->con1->lastId('tb_log_evolutivo', 'id');\n $aux++;\n $campo[$aux][0] = 'tipo';\n $campo[$aux][1] = 68; // AUTORIZADA ENTREGA DE CHAVES\n $aux++;\n $campo[$aux][0] = 'id_processo';\n $campo[$aux][1] = $this->id_processo;\n $aux++;\n $campo[$aux][0] = 'id_autenticacao';\n $campo[$aux][1] = $_SESSION[\"id_usuario\"];\n $aux++;\n $campo[$aux][0] = 'data_hora';\n $campo[$aux][1] = date('Y-m-d H:i:s');\n $aux++;\n $campo[$aux][0] = 'ip';\n $campo[$aux][1] = $_SERVER[\"REMOTE_ADDR\"];\n $aux++;\n\n $this->con1->executa('tb_log_evolutivo', $campo);\n \n // EXIBIÇÃO DA MENSAGEM DE CONFIRMAÇÃO E REDIRECIONAMENTO DA PÁGINA\n $this->html->js('Processo LIBERADO para a Entrega de Chaves',$_SERVER['PHP_SELF'] . '?mgr=' . $this->mgr . '&ui=' . $this->ui . '&id_processo=' . $this->id_processo);\n\n }", "title": "" }, { "docid": "780140d95c9e312dfe610b8a98b17d82", "score": "0.60330486", "text": "function eps_novedad($mes, $idestudiantegeneral, $objetobase, $nombrecorto) {\n\n $fechainiciomes = formato_fecha_mysql(\"01/\" . $mes);\n $fechafinalmes = formato_fecha_mysql(final_mes_fecha(\"01/\" . $mes));\n\n $condicion = \"and no.nombrecortonovedadarp='$nombrecorto' and\n\t\t\t\t\tes.idestudiantegeneral=en.idestudiantegeneral and\n\t\t\t\t\ten.idnovedadarp=no.idnovedadarp and\n\t\t\t\t\ten.codigoestado like '1%' and\n\t\t\t\t\tno.codigoestado like '1%' and\n\t\t\t\t\t('$fechainiciomes' between no.fechainicionovedadarp and no.fechafinalnovedadarp) and\n\t\t\t\t\t(en.fechainicioestudiantenovedadarp between '$fechainiciomes' and '$fechafinalmes')\";\n $datosvalidarnovedad = $objetobase->recuperar_datos_tabla(\"estudiantegeneral es, estudiantenovedadarp en, novedadarp no\", \"es.idestudiantegeneral\", $idestudiantegeneral, $condicion, '', 0);\n $condicion = \"and en.idempresasalud=em.idempresasalud\";\n $datosnovedadanterior = $objetobase->recuperar_datos_tabla(\"estudiantenovedadarp en, empresasalud em\", \"en.idestudiantenovedadarp\", $datosvalidarnovedad['idestudiantenovedadarp'], $condicion);\n //$datosempresasaludanterior=$objetobase->recuperar_datos_tabla(\"empresasalud em\",\"em.idempresasalud\",$datosnovedadanterior['idempresasalud']);\n return $datosnovedadanterior;\n}", "title": "" }, { "docid": "2e27a72ef05582a35f9aba2e36e0f7c6", "score": "0.6032606", "text": "function cuenta_in_comprobante($cuenta, $_cu, $tabla) {\n $col_cu = \"cde_\" . $_cu . \"_id\";\n if ($cuenta->{$_cu . '_tipo'} == 'Movimiento') {\n $sql = \"select * from con_comprobante_detalle , con_comprobante\n where cmp_id=cde_cmp_id and cmp_eliminado='No' and $col_cu='\" . $cuenta->{$_cu . '_id'} . \"'\";\n// echo $sql;\n $detalles = FUNCIONES::objetos_bd_sql($sql);\n if ($detalles->get_num_registros() > 0) {\n return true;\n } else {\n return false;\n }\n } elseif ($cuenta->{$_cu . '_tipo'} == 'Titulo') {\n $sql = \"select * from $tabla where \" . $_cu . \"_padre_id='\" . $cuenta->{$_cu . '_id'} . \"'\";\n $cuentas = FUNCIONES::objetos_bd_sql($sql);\n if ($cuentas->get_num_registros() > 0) {\n// return true;\n for ($i = 0; $i < $cuentas->get_num_registros(); $i++) {\n if (cuenta_in_comprobante($cuentas->get_objeto(), $_cu, $tabla)) {\n return true;\n }\n $cuentas->siguiente();\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "911e95d71838f599df6b60d89cccd037", "score": "0.60297656", "text": "function createPrestamo($codigo, $nombre)\n{\n /*INCLUDE PHP AccesoAula.php\n Referencia a una funcion CREATE de AccesoAula.php, en la cual reciba por parametros\n numero, edificio y capacidad\n En la clase AccesoAula, tienen que hacer la relacion con sl script de la BD\n */\n\n //Si la transaccion es true\n echo 1;\n //Esto echo retorna en la funcion Success: function (response) deñ archivo CnxAdminAulas\n //Cada numero es una opcion diferente dentro de CnxAdminAulas\n}", "title": "" }, { "docid": "5f5e0d237d56398858a79228eedd4b97", "score": "0.6028235", "text": "protected function salvarRelacionamentos() {\n\n }", "title": "" }, { "docid": "6ed73d02bb2b5fabf3e4d73b9483b623", "score": "0.60278434", "text": "function leerMensaje($id) {\n global $textos, $sql, $configuracion;\n //Recursos::escribirTxt(\"codigo del mensaje: \".$id);\n $mensaje = new Mensaje(htmlspecialchars($id));\n $respuesta = array();\n //codigo para verificar si el mensaje ya fue leido, en caso de no haber sido leido\n //resta un numero del numero de mensajes\n if ($mensaje->leido == '1') {\n $logico = false; \n } else {\n $logico = true;\n }\n \n $imagen = $mensaje->fotoAutor;\n \n $item = \"\";\n $item = HTML::imagen($imagen, \"flotanteIzquierda margenDerecha miniaturaListaUltimos5\");\n $item .= HTML::parrafo(HTML::imagen($configuracion[\"SERVIDOR\"][\"media\"] . $configuracion[\"RUTAS\"][\"imagenesEstilos\"] . $mensaje->genero . \".png\") . $mensaje->autor, \"negrilla\");\n $item .= HTML::parrafo(HTML::frase($textos->id(\"ENVIADO_EL\"), \"letraPequena margenSuperior\").$mensaje->fecha, \"margenSuperior\");\n $item = HTML::contenedor($item, \"contenedorSuperiorMensajes\");\n\n $titulo = HTML::contenedor(HTML::contenedor(HTML::frase($textos->id(\"MENSAJE\"), \"letraNegra negrilla\"), \"\"), \"encabezadoBloqueMensajesLargo\"); \n $codigo = HTML::contenedor(nl2br($mensaje->contenido), \"estiloMensaje margenSuperior\");\n\n $datos = array(\n \"leido\" => \"1\"\n );\n \n $sql->modificar(\"mensajes\", $datos, \"id = '\".$id.\"'\");\n\n $respuesta[\"generar\"] = true;\n $respuesta[\"restarNumMensajes\"] = $logico;\n $respuesta[\"codigo\"] = $item.$titulo.$codigo;\n $respuesta[\"destino\"] = \"#cuadroDialogo\";\n $respuesta[\"titulo\"] = HTML::contenedor(HTML::contenedor(HTML::frase($mensaje->titulo, \"letraNegra negrilla\"), \"\"), \"encabezadoBloqueMensajes margenSuperior\");\n $respuesta[\"ancho\"] = 600;\n $respuesta[\"alto\"] = 380;\n\n Servidor::enviarJSON($respuesta);\n}", "title": "" }, { "docid": "a91deb131e2c27625d3e89f2e530463f", "score": "0.602526", "text": "public function metodoCursosCatedras($param){//,$nombreDeSeccio,$idSeccion,$pagina) {\n $listaCursos=null;\n $busqueda=null;\n if($param=='upload'){\n // Sanitizando y validando\n $catedra=trim($_POST['unaCatedra']);\n $codigo=trim($_POST['unCodigo']);\n $materia=trim($_POST['unaMateria']);\n $sede=trim($_POST['unaSede']);\n $dias=null;\n for ($i=0; $i <6 ; $i++) { \n if(isset($_POST[(string)($i+1)])){\n $dias .=$_POST[(string)($i+1)].' ';\n }\n }\n $dias = trim($dias);\n\n if(empty($catedra)||strlen($catedra)>TAM_CATEDRA_MAX ||!is_string($catedra))return $this->msjAtencion('error en la catedra ingresada');\n if(strlen($codigo)>TAM_MAX_CODCURSO||!is_string($codigo)) return $this->msjAtencion('error en el codigo ingresado');\n if(empty($materia)||strlen($materia)>TAM_MATERIA_MAX||!is_string($materia)) return $this->msjAtencion('error en la materia ingresada');\n if(empty($sede)||strlen($sede)>TAM_SEDE_MAX||!is_string($sede)) return $this->msjAtencion('error en la sede ingresada');\n \n $horario = $_POST['horaInicio'].':'.$_POST['minInicio'].' a '.$_POST['horaFin'].':'.$_POST['minFin'];\n $cursoRepe=Modelo::buscarCursoRepe($materia,$catedra,$sede,$codigo,$horario,$dias);\n if(count($cursoRepe)!=0){\n return $this->msjAtencion('Ya existe un curso<br/>Materia: '.$materia.'&nbsp;Catedra: '.$catedra.'&nbsp;Sede: '\n .$sede.'&nbsp;Codigo: '.$codigo.'&nbsp;Horario: '.$horario);\n }\n Modelo::cargarCurso($materia,$sede,$catedra,$horario,$codigo,$dias);\n $curso = Modelo::buscarCurso($materia,$catedra,$sede,$codigo,$horario,$dias);\n header('Location:http://'.DOMINIO.'/Seccion/Curso/'.$curso[0]['idCurso'].'/1');\n }elseif($param=='search'){\n // Sanitizando y validando\n $catedra=trim($_POST['unaCatedra']);\n $codigo=trim($_POST['unCodigo']);\n $materia=trim($_POST['unaMateria']);\n $sede=trim($_POST['unaSede']);\n $dias=null;\n for ($i=0; $i <6 ; $i++) { \n if(isset($_POST[(string)($i+1)])){\n $dias .=$_POST[(string)($i+1)].' ';\n }\n }\n $dias = trim($dias);\n if(strlen($catedra)>TAM_CATEDRA_MAX ||!is_string($catedra)) return $this->msjAtencion('error en la catedra ingresada');\n if(strlen($codigo)>TAM_MAX_CODCURSO||!is_string($codigo)) return $this->msjAtencion('error en el codigo ingresado');\n if(strlen($materia)>TAM_MATERIA_MAX || !is_string($materia)) return $this->msjAtencion('error en la materia ingresada');\n if(strlen($sede)>TAM_SEDE_MAX||!is_string($sede)) return $this->msjAtencion('error en la sede ingresada');\n \n $horario = $_POST['horaInicio'].':'.$_POST['minInicio'].' a '.$_POST['horaFin'].':'.$_POST['minFin'];\n if($horario ==': a :') $horario=NULL;\n \n $vecCursos=Modelo::buscarCurso($materia,$catedra,$sede,$codigo,$horario,$dias);\n $busqueda=$this->getVista()->listaCursosBuscados($vecCursos);\n $sectorBusq ='';\n }elseif ($param=='default'){\n $sectorBusq = file_get_contents(DIR_RAIZ.DIR_VISTA.DIR_HTMLS.'/formularioBusquedaCurso');\n }else{\n return $this->msjAtencion('pagina inexistente en el sitio');\n }\n \n $this->getVista()->armarHtml();\n $this->getVista()->modificarCuerpo('{sectorDerecha}','');\n $this->getVista()->modificarCuerpo('{sectorIzquierda}',file_get_contents(DIR_RAIZ.DIR_VISTA.DIR_HTMLS.'/cuerpoCursos'));\n $this->getVista()->modificarCuerpo('{colIzq}','12');\n $this->getVista()->modificarCuerpo('{resultadoBusqueda}',$busqueda);\n $this->getVista()->modificarCuerpo('{buscadorCursos}',$sectorBusq);\n (isset($_SESSION['idUsuario']))? \n $this->getVista()->modificarCuerpo('{cargaDeCurso}',file_get_contents(DIR_RAIZ.DIR_VISTA.DIR_HTMLS.'/formularioCargarCurso'))\n :$this->getVista()->modificarCuerpo('{cargaDeCurso}','');\n $this->getVista()->agregarHoraYMins(); \n $this->getVista()->modificarCuerpo('{scriptJs}','/Vistas/js/cursos.js');\n $this->getVista()->modificarCuerpo('{archCss}','/Vistas/css/index.css');\n $mat = new ListaMaterias();\n $lista = $mat->listadoHtml;\n $this->getVista()->modificarCuerpo('{listaDeMaterias}',$lista);\n return $this->getVista(); \n }", "title": "" }, { "docid": "2801893781fc9a43b89d39478c78ac95", "score": "0.60249907", "text": "function recuperar_empresasalud($objetobase, $idestudiantegeneral, $mesdecierre) {\n $fechainicialmes = formato_fecha_mysql(\"01/\" . $mesdecierre);\n $fechafinalmes = formato_fecha_mysql(final_mes_fecha(\"01/$mesdecierre\"));\n//echo \"<br>01/$mesdecierre <---> \".final_mes_fecha(\"01/$mesdecierre\").\"<br>\";\n $condicion = \"and es.idestudiantegeneral=en.idestudiantegeneral and\n\t\t\t\t\ten.idnovedadarp=no.idnovedadarp and\n\t\t\t\t\ten.codigoestado like '1%' and\n\t\t\t\t\tno.codigoestado like '1%' and\n\t\t\t\t\tno.codigotiponovedadarp like '1%' and\n\t\t\t\t\tem.idempresasalud=en.idempresasalud and\n\t\t\t\t\tno.codigotipoaplicacionnovedadarp like '1%' and\n\t\t\t\t\t('$fechainicialmes' between no.fechainicionovedadarp and no.fechafinalnovedadarp) and\n\t\t\t\t\t(('$fechainicialmes' between en.fechainicioestudiantenovedadarp and en.fechafinalestudiantenovedadarp) or\n\t\t\t\t\t('$fechafinalmes' between en.fechainicioestudiantenovedadarp and en.fechafinalestudiantenovedadarp) or\n\t\t\t\t\t(en.fechainicioestudiantenovedadarp between '$fechainicialmes' and '$fechafinalmes') or\n\t\t\t\t\t(en.fechafinalestudiantenovedadarp between '$fechainicialmes' and '$fechafinalmes') )\";\n $datosnovedad = $objetobase->recuperar_datos_tabla(\"estudiantegeneral es, estudiantenovedadarp en, novedadarp no, empresasalud em\", \"es.idestudiantegeneral\", $idestudiantegeneral, $condicion, '', 0);\n return $datosnovedad;\n}", "title": "" }, { "docid": "3b30f4bb5cb7bd4c4bce7e7308b1d7b0", "score": "0.60234654", "text": "public function datosdelatabladescripciondeventa( $precioasada, $preciochorizo, $preciocampechano, $preciobarbacha, $preciocostilla, $preciosencilla, $idcomida, $cantidadasada, $cantidachorizo, $cantidacampechano, $cantidabarbacha, $cantidacostilla, $cantidasencilla, $importeasada, $importechorizo, $importecampechano, $importebarbacha, $importecostilla, $importesencilla, $clienteenturno, $mesa, $mesero, $estadoenturno, $numerodeclientes){//INICIO DE LA FUNCION\n$contador=0;\n$id_venta = $this->consultamenu->revisarelidventaenturno();\n\n\n$idventayaasignadoaunamesa= $this->consultamenu->verificar_queno_haya_un_id_venta_ya_conmesa_asignada($mesa, $estadoenturno); \n if(empty($idventayaasignadoaunamesa['id_venta'])){\n $idventadefinitivo=$id_venta['id_venta'];\n }\n else{\n $idventadefinitivo=$idventayaasignadoaunamesa['id_venta'];\n }\n\n\n\n \n //INSERTAR LOS VALORES A LA TABLA DESCRICIÓN DE VENTA, DEPENDIENDO DE SI ES, ASADA, CHORIZO, CAMPECHANO\n//BARBACHA, COSTILLA O SENCILLA.\n//NO TE DEJA INSERTAR SI EL NUMERO DE CLIENTE Y LA CANTIDAD DE CADA COSA ESTAN VACIAS\n if(!empty($cantidadasada) && !empty($clienteenturno)){ //AGREGANDO EN CASO DE QUE FUERA ASADA\n //echo \"cantidad de asada\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidadasada,\n 'precio_unitario'=>$precioasada,\n 'importe'=>$importeasada,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n $cantidadbase=\n $this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $precioasada, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $precioasada, $mesa, $clienteenturno);\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $precioasada, $mesa, $clienteenturno);\n\n//echo \"CLIENTE DE LA BASE \".$cliente['num_cliente'];\n//echo \"CLIENTE EN TURNO\".$clienteenturno;\n\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario']) ){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n\n\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $precioasada, $cantidadasada, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n\n }//AGREGANDO EN CASO DE QUE FUERA ASADA\n\n\n if(!empty($cantidachorizo) && !empty($clienteenturno) ){//AGREGANDO EN CASO DE QUE FUERA CHORIZO\n //echo \"cantidad de chorizo\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidachorizo,\n 'precio_unitario'=>$preciochorizo,\n 'importe'=>$importechorizo,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n $cantidadbase=\n $this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciochorizo, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciochorizo, $mesa, $clienteenturno);\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciochorizo, $mesa, $clienteenturno);\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario'])){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n//echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $preciochorizo, $cantidachorizo, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n\n }//AGREGANDO EN CASO DE QUE FUERA CHORIZO\n\n if(!empty($cantidacampechano) && !empty($clienteenturno) ){//AGREGANDO EN CASO DE QUE FUERA CAMPECHANO\n //echo \"cantidad de campechano\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidacampechano,\n 'precio_unitario'=>$preciocampechano,\n 'importe'=>$importecampechano,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n $cantidadbase=\n $this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocampechano, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocampechano, $mesa, $clienteenturno);\n\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocampechano, $mesa, $clienteenturno);\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario'])){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n//echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $preciocampechano, $cantidacampechano, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n\n }//AGREGANDO EN CASO DE QUE FUERA CAMPECHANO\n\n if(!empty($cantidabarbacha) && !empty($clienteenturno) ){//AGREGANDO EN CASO DE QUE FUERA BARBACHA\n //echo \"cantidad de barbacha\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidabarbacha,\n 'precio_unitario'=>$preciobarbacha,\n 'importe'=>$importebarbacha,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n $cantidadbase=\n $this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciobarbacha, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciobarbacha, $mesa, $clienteenturno);\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciobarbacha, $mesa, $clienteenturno);\n\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario']) ){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n//echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $preciobarbacha, $cantidabarbacha, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n \n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }//AGREGANDO EN CASO DE QUE FUERA BARBACHA\n\n if(!empty($cantidacostilla) && !empty($clienteenturno) ){//AGREGANDO EN CASO DE QUE FUERA COSTILLA\n //echo \"cantidad de costilla\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidacostilla,\n 'precio_unitario'=>$preciocostilla,\n 'importe'=>$importecostilla,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n$cantidadbase=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocostilla, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocostilla, $mesa, $clienteenturno);\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciocostilla, $mesa, $clienteenturno);\n\n\n\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario'])){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n//echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $preciocostilla, $cantidacostilla, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n \n }//AGREGANDO EN CASO DE QUE FUERA COSTILLA\n\n if(!empty($cantidasencilla) && !empty($clienteenturno) ){//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n //echo \"cantidad de sencilla\";\n ini_set('date.timezone', 'America/Mexico_City');\n $Hora_de_venta=date('H:i:s', time());\n date('g:i:s a', strtotime($Hora_de_venta));\n$Fecha_venta=date('Y-m-d', time());\n $datosdelatabladescripciondeventa = array(\n 'id_comida'=>$idcomida,\n 'cantidad'=> $cantidasencilla,\n 'precio_unitario'=>$preciosencilla,\n 'importe'=>$importesencilla,\n 'id_venta'=>$idventadefinitivo,\n 'num_cliente'=>$clienteenturno,\n 'mesa'=>$mesa,\n 'estado'=>$estadoenturno,\n 'numero_de_clientes'=>$numerodeclientes, \n 'tipo_venta' =>\"Mesa\", \n 'Fecha' =>$Fecha_venta, \n 'Hora' => date('g:i:s a', strtotime($Hora_de_venta))\n );\n $cantidadbase=\n $this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciosencilla, $mesa, $clienteenturno);\n\n $precio_unitario=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciosencilla, $mesa, $clienteenturno);\n $cliente=$this->consultamenu->solosumarlacantidadsielproductoyaseencuentragregadoencomida($idcomida, $preciosencilla, $mesa, $clienteenturno);\n\n\nif(!empty($cantidadbase['cantidad']) && !empty($precio_unitario['precio_unitario'])){//llamando al metodo que verifica si el id comida a agregar se encuentra en la base\n//echo \"SOLO SUMAR CANTIDAD SI EL PRODUCTO YA ESYA AGREGADO \".$idventadefinitivo;\nif($cliente['num_cliente']==$clienteenturno){\n //echo \"CLiente en la base es igual al cliente en turno\";\n\n $this->consultamenu->actualizarcantidaddecomida($idcomida, $preciosencilla, $cantidasencilla, $estadoenturno, $mesa, $clienteenturno);//si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\n //echo \"si el id comida se encuentra en la base se suma la nueva cantidad con la cantidad que esta en base\".$idventadefinitivo;\n\n\n}\n \n else{\n //echo \"CLiente en la base no es igual al cliente en turno\";\n\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n\n }\n else{\n //echo \"solo se inserta en base\";\n $this->consultamenu->agregaralatabladescripciondeventa($datosdelatabladescripciondeventa);\n \n }//AGREGANDO EN CASO DE QUE FUERA SENCILLA\n }\n\n//Lo que pasa aqui es que se le envia el total de la mesa a la vista opciones del cliente\n//el total de la mesa se puede deducir de la suma de los importes de la mesa en turno que se obtiene al enviar\n//el valor de la mesa en turno\n//los datos de la mesa, el menu que incluye, las bebidas, comida y los extras nuevamente se envia a la vista\n//para que el usuario/seguir agregando platillos a la cuenta\n $this->ir_a_la_vista_elegir_cliente($mesa, $numerodeclientes);\n\n\n }", "title": "" }, { "docid": "2bc1fe05b69ad14263404cbe03f68db1", "score": "0.60196733", "text": "public function armado() {\n $validacion = new Seguridad_UsuarioValidacion();\n $validacion = $validacion->consultaElemento();\n\n // encabezados necesarios para el funcionamiento de los elementos de la pagina\n $this->_armadoPlantillaSet('cabeceras', Armado_Cabeceras::armado('tabla'));\n\n $armado_botonera = new Armado_Botonera();\n\n // botones de navegacion\n $parametros = array('kk_generar' => '0', 'accion' => '33');\n $armado_botonera->armar('nuevo', $parametros);\n\n $parametros = array('kk_generar' => '0', 'accion' => '30');\n $armado_botonera->armar('volver', $parametros);\n\n // modificacion de orden de los elementos de la tabla\n if (isset($_GET['orden_act']) && $_GET['orden_act'] != '' && $_GET['id_orden_act'] != ''\n ) {\n if ($_GET['orden_ant'] != '' && $_GET['id_orden_ant'] != ''\n ) {\n Consultas_CambiarOrden::armado('kirke_tabla_prefijo', $_GET['id_orden_ant'], 'orden', $_GET['orden_act'], 'id_tabla_prefijo');\n Consultas_CambiarOrden::armado('kirke_tabla_prefijo', $_GET['id_orden_act'], 'orden', $_GET['orden_ant'], 'id_tabla_prefijo');\n } elseif ($_GET['orden_sig'] != '' && $_GET['id_orden_sig'] != ''\n ) {\n Consultas_CambiarOrden::armado('kirke_tabla_prefijo', $_GET['id_orden_sig'], 'orden', $_GET['orden_act'], 'id_tabla_prefijo');\n Consultas_CambiarOrden::armado('kirke_tabla_prefijo', $_GET['id_orden_act'], 'orden', $_GET['orden_sig'], 'id_tabla_prefijo');\n }\n }\n\n // datos necesarios para armar la tabla:\n // columna 0\n $tabla_columnas[0]['tb_columna_tipo'] = 'texto';\n $tabla_columnas[0]['tb_titulo_idioma'] = '{TR|o_prefijos}';\n $tabla_columnas[0]['tb_columna_ancho'] = '';\n $tabla_columnas[0]['tb_campo'] = 'prefijo';\n // columna 1\n $tabla_columnas[1]['tb_columna_tipo'] = 'orden';\n $tabla_columnas[1]['tb_titulo_idioma'] = '{TR|o_orden}';\n $tabla_columnas[1]['tb_campo'] = 'orden';\n $tabla_columnas[1]['tb_campo_id'] = 'id_tabla_prefijo';\n $tabla_columnas[1]['accion'] = '35';\n // columna 2\n $tabla_columnas[2]['tb_columna_tipo'] = 'ver';\n $tabla_columnas[2]['tb_titulo_idioma'] = '{TR|o_ver}';\n $tabla_columnas[2]['tb_campo'] = 'id_tabla_prefijo';\n $tabla_columnas[2]['variable_link'] = 'id_tabla_prefijo';\n $tabla_columnas[2]['accion'] = '36';\n\n // query para armar la consulta\n $tabla = Consultas_MatrizPrefijos::armado();\n\n // armado de la tabla\n $armar_tabla = new Armado_Tabla();\n $armar_tabla->sinDatosPie();\n return $armar_tabla->armar($tabla_columnas, $tabla);\n }", "title": "" }, { "docid": "1cfd2c335dc56787e629f73eaa93ce03", "score": "0.6017887", "text": "function saber_cuantos_estan_sin_leer ($idusuario) {\n\t\n\tglobal $database_conexion, $conexion;\n\tmysql_select_db($database_conexion, $conexion);\n\t$query_DatosFuncion = sprintf(\"SELECT * FROM z_mensajes WHERE estado=0 AND recibe = %s\", GetSQLValueString($idusuario, \"int\"));\n\t$DatosFuncion = mysql_query($query_DatosFuncion, $conexion) or die(mysql_error());\n\t$row_DatosFuncion = mysql_fetch_assoc($DatosFuncion);\n\t$totalRows_DatosFuncion = mysql_num_rows($DatosFuncion);\n\t\n\t\n return $totalRows_DatosFuncion;\n\tmysql_free_result($DatosFuncion);\n}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "d140b1cb48bf56771471a0baefb3edb5", "score": "0.0", "text": "public function create()\n {\n $clientes = Cliente::all();\n $perfis = Perfil::all();\n $items = ItemValor::with('item')->get()->map(function ($item) {\n return ['label' => \"{$item->item->item} - {$item->volume} - R$ {$item->valor}\", 'value' => $item];\n });\n return view('pedido.create', [\n 'clientes' => $clientes,\n 'perfis' => $perfis,\n 'items' => $items\n ]);\n }", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.74566424", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7455584", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "1b16c1f4677bd0ac799e087490d4d05b", "score": "0.73507345", "text": "public function create() {\n return view($this->className . '/form', [\n 'className' => $this->className,\n 'pageTitle' => $this->classNameFormatado . '- Cadastro de registro'\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.7339739", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.7257705", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "42de9969dbd16cbf3f496acd505422d8", "score": "0.7249422", "text": "public function create()\n {\n // shows a view to create a new resource\n return view('dashboard.admin.create');\n \n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.7237927", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.723185", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72228223", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.722023", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "29282129b8e24a976f037c589580f34b", "score": "0.7208537", "text": "public function create()\n {\n $this->page_title = trans('resource_sub_type.new');\n\n return view('resource_sub_type.new', $this->vdata);\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.7191366", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.71894634", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "f6d3fc80bf700f89fa22e42e685b217d", "score": "0.7184248", "text": "public function create()\n {\n return view ('penilaiansmp.form');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.718268", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7166686", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71529675", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.7137003", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "7e262dd36752e23255d5ea03566e8de7", "score": "0.7122985", "text": "public function create()\n {\n $model = $this->model;\n return view('pages.admin.graha.form', compact('model'));\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.712034", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.70962554", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a7352ebb77d0418eb30e8fe2e7bfb857", "score": "0.7087128", "text": "public function actionCreate()\n\t{\n\t\t$this->render('create');\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.7061749", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.706081", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70571035", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.70475084", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.7042422", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7040213", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "607b994b80e66fe45602a00379ab7779", "score": "0.70308834", "text": "public function create()\n {\n //return the create view (form)\n return view('books.create');\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.70261294", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.7012196", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.70115083", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046955", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.7000195", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "91dd937891cf552bdb6c058f3730d93b", "score": "0.6998989", "text": "public function newAction()\n {\n $entity = new foo();\n $form = $this->createForm(new fooType(), $entity);\n\n return $this->render('ScrunoBoardBundle:foo:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.6994647", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "68eb563182e9ed0d6524bc0b6aac22af", "score": "0.69939756", "text": "public function create()\n\t{\n\t\t// load the create form (app/views/professor/create.blade.php)\n\t\t$this->layout->content = View::make('professor.create');\n\t}", "title": "" }, { "docid": "6c77fcad45300d9322c483f2cf6f0bf9", "score": "0.69900626", "text": "public function create()\n\t{\n\t\treturn view('proyek.create');\n\t}", "title": "" }, { "docid": "033dad9a04f818507b4dc909e40e2cca", "score": "0.6988088", "text": "public function create()\n {\n $data[\"action\"] = 'anggota.store';\n return view('anggota.form', $data);\n }", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69879013", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6985705", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6977717", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.6976043", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "432a42bd0e4b7b7dd13b0343e81c9f33", "score": "0.6974407", "text": "public function create()\n {\n //\n return view('libros/libroForm');\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969905", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "db317dc07de792187038b7e4a5f863fd", "score": "0.69643784", "text": "public function newAction()\n {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ManuTfeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69620776", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958075", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.6957784", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "121c8c321a85cfc3184f64d92ecfca6c", "score": "0.6954882", "text": "public function create()\n\t{\n\t\treturn view ('oficinas.create');\n\t}", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69542176", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.69525295", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "1276876980c60661df1af9ecd3659454", "score": "0.6946296", "text": "public function create()\n\t{\n\t\treturn View::make('nssf.create');\n\t}", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69450635", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.6930994", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69273114", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.6925751", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.6921871", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.69218206", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "83ebdde393be7960c0a3149b40b830fa", "score": "0.69206", "text": "public function create()\n {\n //\n return view('guest.sample.submit-property2');\n }", "title": "" }, { "docid": "50d6adc18861a552fb9ddb0969a2630f", "score": "0.69202167", "text": "public function create()\n {\n return view('umbooks::admin.models.book.create');\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.69184965", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "ce1853ac01959995d112bb4d44014367", "score": "0.6918359", "text": "public function create()\n {\n //\n return view('ijinkeluars.create');\n }", "title": "" }, { "docid": "87632e3ed9e4e251e3f5a4dfa4cc4e5e", "score": "0.69181925", "text": "public function create()\n {\n // Place here the initial data and show\n // Ahh screw it, Show Everything!!!\n\n return view('record.create');\n\n }", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.6914329", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "98e3bff438d778b0a9ccaad60778cf09", "score": "0.69096565", "text": "public function create()\n {\n return view('admin/car/add-car');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69092304", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.69069797", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "eec374cbf73315b7af3e5f2b21f37d4d", "score": "0.69059855", "text": "public function create()\n {\n return view('linhvuc.create');\n }", "title": "" }, { "docid": "0b940b83fdd9503e0b64330c52106d41", "score": "0.69053364", "text": "public function create()\n {\n return view('inventariss.create');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69047576", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.69007623", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6897235", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.6895603", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "27fad6d884340578087d232e3218a94d", "score": "0.68955874", "text": "public function create()\n {\n return view('backpages.formInfo');\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.68903565", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6888845", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "985e9c7c0b741b5b1eb67c091e5ad371", "score": "0.6886975", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('oficinas.create');\n\t}", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6880484", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.6879059", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "6648fe4f8fd4df24b091c04829b92bbb", "score": "0.6878773", "text": "public function create()\n\t{\n\t\treturn View::make('powerful.create');\n\t}", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6878254", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.68774086", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.687325", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "60ee9672a795f51a440ede1e68b26045", "score": "0.6870999", "text": "public function create()\n {\n return view('smp.create');\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68696606", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "d14776cad1affd8d37756a185e7fe660", "score": "0.68665606", "text": "public function create()\n {\n return view('relasi.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.6865675", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.6862222", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "076027ad076171209baa493a78567bfe", "score": "0.0", "text": "public function __construct() {\n\t\t$this->beforeFilter('csrf', array('on'=>'post'));\n\t}", "title": "" } ]
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.7474584", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" => $e->getMessage()\n ), ERROR_CODE);\n }\n }", "title": "" }, { "docid": "6126929dc3b0a4f22ee22cc3ad8d6a7b", "score": "0.74220824", "text": "public function index() \n\t{ \n\t\t$this->listing();\t\n\t}", "title": "" }, { "docid": "4c31098007bd884125e38a924a90b409", "score": "0.7371856", "text": "public function index()\n {\n $resources = Resource::paginate(10);\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "8fa6c385e83466b77bd15a6b86ea32e2", "score": "0.7302786", "text": "public function index()\n {\n $this->_create_list();\n $this->_display();\n\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.7268293", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "0e6388aacce7838ee1c78178d8108829", "score": "0.7265982", "text": "public function index(){\n\t\t\t$this->list();\n\t\t}", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.7247136", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "9af36ef65a801a9d1ba3b391202f1180", "score": "0.7120287", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(20);\n return view('resource.index')->withResources($resources);\n }", "title": "" }, { "docid": "43a0ac0c5c36c0a0b193022ebde4ce89", "score": "0.7083483", "text": "public function index()\n {\n $config['tableName'] = trans('app.Resources list');\n $config['ignore'] = ['id', 'count', 'created_at', 'updated_at', 'deleted_at'];\n $config['list'] = MBResources::get()->toArray();\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList',$config);\n }", "title": "" }, { "docid": "1855faa3b08cf438cac0964b9903bf8a", "score": "0.7013115", "text": "public function index()\n {\n $this->getListingService()\n ->setOrder($this->getOrder())\n ->setPagination($this->getPagination())\n ->getFilters()->add($this->getSearchFilter());\n $this->set(\n [\n $this->getEntityNamePlural() => $this->getListingService()\n ->getList(),\n 'pagination' => $this->getListingService()->getPagination()\n ]\n );\n }", "title": "" }, { "docid": "2e0ed72eb13150f2559131309e8f93b1", "score": "0.6999293", "text": "public function listing ()\n {\n // Fetch all questions\n $cacheID = 'listing';\n if (!$this->data['questions'] = $this->zf_cache->load($cacheID)) {\n $this->data['questions'] = $this->question_model->get_with_users();\n $this->zf_cache->save($this->data['questions'], $cacheID, array('all_questions'));\n }\n \n // Load view\n $this->load_view('questions/listing');\n }", "title": "" }, { "docid": "5412f0b9b053fcd0929c40d71994403a", "score": "0.6977423", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "e31e9a0c7b3d2a9b4bc1a2880b844a81", "score": "0.69216424", "text": "public function indexAction()\n {\n $resource = $this->repo->all();\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.68926245", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "title": "" }, { "docid": "eed18db8f9e2d6b6fa328a727bce13ea", "score": "0.6883624", "text": "public function listingAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SettingContentBundle:Page')->findBy(array(),array('name' => 'asc'));\n\n return $this->render('SettingContentBundle:Page:index.html.twig', array(\n 'pagination' => $entities,\n ));\n }", "title": "" }, { "docid": "a753301d8fa92e6902db5a211f69a62a", "score": "0.688052", "text": "public function indexAction()\n {\n if($categoryId = $this->request->getQuery('categoryId')){\n $resource = $this->repo->all($categoryId);\n }else {\n $resource = $this->repo->all();\n }\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "060b373609f7e0db718e407076c66e1d", "score": "0.6862013", "text": "public function indexAction()\n {\n $this->tag->setTitle(__('Firewalls'));\n // Available sort to choose\n $this->filter->add('in_array', function($value) {\n return in_array($value, ['name', 'name DESC', 'status', 'status DESC']) ? $value : null;\n });\n\n // Get networks and prepare pagination\n $paginator = new Paginator([\n \"data\" => Firewalls::find(['order' => $this->request->getQuery('order', 'in_array', 'id', true)]),\n \"limit\" => $this->request->getQuery('limit', 'int', 20, true),\n \"page\" => $this->request->getQuery('page', 'int', 1, true)\n ]);\n\n $this->view->setVars([\n 'pagination' => $paginator->getPaginate(),\n ]);\n }", "title": "" }, { "docid": "0473d264241dfecb205046df754f7ad1", "score": "0.68566513", "text": "public function index() {\n $resources = static::$resource::orderBy(static::$orderBy)->paginate(static::$pageSize);\n return view($this->getView('index'), [static::$varName[1] ?? $this->getResourcePluralName() => $resources]);\n }", "title": "" }, { "docid": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.6853811", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "title": "" }, { "docid": "248744b37e08a9b9e31438a427fee7ee", "score": "0.6832676", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.68304473", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "ac3d7b3949ed4508eaeabfca96b1ae5e", "score": "0.68193215", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $extFilters = $this->request->query->get('ext_filters');\n if(isset($extFilters['entity.gallery'])) {\n $dql = 'entity.gallery = ' . $extFilters['entity.gallery'];\n $this->entity['list']['dql_filter'] = $dql;\n }\n \n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, ['paginator' => $paginator]);\n\n $parameters = [\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'batch_form' => $this->createBatchForm($this->entity['name'])->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ];\n\n return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]);\n }", "title": "" }, { "docid": "e4a0d12ede1642140b2b2864bea7bde8", "score": "0.68148345", "text": "public function show_list();", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.6807901", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "8e473fb8d57781fcbb301d794e4638b7", "score": "0.68072057", "text": "public function listResources();", "title": "" }, { "docid": "a63fe3d362e9ed8bdeb8c498c0f70dc8", "score": "0.68070567", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n //dump($todos);\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "title": "" }, { "docid": "ae6ac1129584c76c474a8718bca91c33", "score": "0.6777383", "text": "public function ListView() {\n $this->Render();\n }", "title": "" }, { "docid": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6772981", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\n }", "title": "" }, { "docid": "e33620f9e0602f70ef6cab4f1bdb2610", "score": "0.6769549", "text": "public function index()\n\t{\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.6743264", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "3cb20d494ffa4e3923d82dc428173efe", "score": "0.6741688", "text": "public function listAction()\n {\n $date = array();\n $date['year'] = $this->_getParam('year', null);\n $date['month'] = $this->_getParam('month', null);\n $date['day'] = $this->_getParam('day', null);\n\n $model = $this->_getPhotoModel();\n\n $by = $this->_getParam('by', null);\n if ($by == 'taken_at') {\n $entries = $model->fetchEntriesByTakenAt($date, $this->_getParam('page', 1));\n } else {\n $entries = $model->fetchEntriesByCreated($date, $this->_getParam('page', 1));\n }\n $this->view->paginator = $entries;\n }", "title": "" }, { "docid": "1791d7d351176ff2ce62051654642a7d", "score": "0.6741663", "text": "public function indexAction()\n {\n $this->render('lists/index', array(\n 'title' => 'Todo Lists',\n 'lists' => TodoList::all()\n ));\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.674076", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "f1af362b177db60f1aa234951fb3dd26", "score": "0.67405367", "text": "public function listAction()\r\n {\r\n\r\n return array(\r\n 'items' => $this->getMapper()->findAll()\r\n );\r\n }", "title": "" }, { "docid": "1ad218b37000705f13503d05f42e31f8", "score": "0.6728095", "text": "public function listing(){\n //appelle constructeur produit\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6723516", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6723516", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "8bc383be0c0551987008cc1e903dfb3e", "score": "0.6714433", "text": "function listing(){ \n $data['title'] = 'Senarai Selenggaraan';\n $this->_render_page($data);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.67083144", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.6698", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "ec97d24c4e19a5128b0e53c5846b9bf5", "score": "0.6692183", "text": "public function index()\n {\n return $this->getList();\n\n }", "title": "" }, { "docid": "ff020d8354464758e72e91a912f20d8e", "score": "0.66906744", "text": "public function actionList()\n {\n $list = $this->viewList('car');\n $imgs = ImageModel::load('img/car/logo/');\n return $this->render('list',compact('list','imgs'));\n }", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.6689983", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.66889703", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.66885626", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "ffb17c08a85c1385b784beb46e5b3ade", "score": "0.66859806", "text": "public function index()\n {\n $artists = Artist::orderBy('sort', 'asc')->get();\n\n return ArtistResource::collection($artists);\n }", "title": "" }, { "docid": "7ee6025c5609ac52b9b1dbb4db5ac2f3", "score": "0.66848135", "text": "public function index()\n\t{\n\t\tlist_details();\n\t}", "title": "" }, { "docid": "10a81357fb2912f13e91cd4d9b24c4d0", "score": "0.6682944", "text": "public function listAction()\n {\n $contentObject = $this->configurationManager->getContentObject();\n $header = $contentObject->data['header'];\n\n $this->view->assign('header', $header);\n $this->view->assign('plays', $this->playRepository->findAll());\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.6675176", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "b4ab065b5e289a80de47b28c29b12ba7", "score": "0.66687995", "text": "public function index()\n {\n /* authorization */\n $this->authorize('viewAny', Family::class);\n\n $families = Family::all();\n /* return resource collection */\n return FamilyResource::collection($families);\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.6667969", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "title": "" }, { "docid": "91774d2a4f88a022706d4cc72b2fb4b9", "score": "0.6661785", "text": "public function _index() {\n\t\t$datas = DAO::getAll ( $this->model );\n\t\techo $this->_getResponseFormatter ()->get ( $datas );\n\t}", "title": "" }, { "docid": "473597c1b0826e1810587ecd7042a12d", "score": "0.66609246", "text": "public function actionIndex()\n {\n $searchModel = new ResourcemanagementSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "68a18d7d7744ddf6d10c85166d9a9672", "score": "0.6657232", "text": "public function listing($arguments);", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.6654348", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "f186543d4e229fe60c320d197652a0ac", "score": "0.66488373", "text": "public function index()\n {\n return BookResource::collection(Book::paginate());\n }", "title": "" }, { "docid": "6e0e97799dea5e1f1424a0ed54835cae", "score": "0.66469675", "text": "public function index()\n {\n $products = Product::paginate();\n\t\treturn new ListCollection($products);\n }", "title": "" }, { "docid": "12d65a6c55f0fff8b933565f6365be6c", "score": "0.6637314", "text": "public function index() {\n return $this->showAll();\n }", "title": "" }, { "docid": "862f0847ab763608409837b536150716", "score": "0.663524", "text": "public function indexAction()\r\n\t{\r\n\t\t$this->view->mainTitle = \"Listado de Plantillas\";\r\n\t\t$this->view->errors = $this->_helper->flashMessenger->getMessages();\r\n\t\t\r\n\t\t$nombre = $this->getParam(\"nombre\");\r\n\t\t$plantillas = $this->getRepository()->find($nombre);\r\n\t\t\r\n\t\t$this->view->plantillas = $plantillas;\r\n\t}", "title": "" }, { "docid": "39fb2eb38215d01e980796dd191b4bc2", "score": "0.66252124", "text": "public function index()\n {\n // needs to return multiple articles\n // so we use the collection method\n return ArticleListResource::collection(Article::all());\n }", "title": "" }, { "docid": "77b2fcb12774bae3c68bc3f546be203d", "score": "0.6623038", "text": "public function list ()\n {\n $products = Product::all();\n\n View::load('home', [\n 'products' => $products\n ]);\n\n }", "title": "" }, { "docid": "7eb3e9d73404c31d887de34e0e543165", "score": "0.6619889", "text": "public function index()\n {\n $streams = Streams::paginate(15);\n\n return StreamsResource::collection($streams);\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.661894", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "a10012db405ad2f58017047d7c5955a3", "score": "0.6614244", "text": "public function index()\n {\n // get articles\n $articles = Article::paginate(15);\n\n // return collection of articles as a ressource\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "c5562ea22267c67b7e362d148ab229b0", "score": "0.66133827", "text": "public function index ()\n {\n $data = Category::paginate(15);\n\n return $this->display( [ 'data' => $data ] );\n }", "title": "" }, { "docid": "4e546e7736c944aa032aaf9b866565c0", "score": "0.6611853", "text": "public function indexAction() {\n\t\t$this->view->assign('staticLists', $this->staticListService->listAll());\n\t}", "title": "" }, { "docid": "2d2195ebc523704e7f178bd9b4556f73", "score": "0.66103095", "text": "public function index()\n\t{\n\t\t//\n\t\t$resources = \\App\\Resource::with('category')->get();\n\t\treturn view('viewResource',['resources' => $resources ]);\n\t}", "title": "" }, { "docid": "8654188b350eeb0d720961a0f868517e", "score": "0.6600411", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n\t\t//GET SUBJECT AND OTHER SETTINGS\n $this->view->list = Engine_Api::_()->core()->getSubject('list_listing');\n\t\t$settings_api = Engine_Api::_()->getApi('settings', 'core');\n\t\t$this->view->show_featured = $settings_api->getSetting('list.feature.image', 1);\n\t\t$this->view->featured_color = $settings_api->getSetting('list.featured.color', '#0cf523');\n\t\t$this->view->show_sponsered = $settings_api->getSetting('list.sponsored.image', 1);\n\t\t$this->view->sponsored_color = $settings_api->getSetting('list.sponsored.color', '#fc0505');\n\t\t\n //GET VIEWER AND CHECK VIEWER CAN EDIT PHOTO OR NOT\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$this->view->can_edit = $this->view->list->authorization()->isAllowed($viewer, \"edit\");\n }", "title": "" }, { "docid": "c6630fa3ab4d194924045c2530a6eaf3", "score": "0.6594772", "text": "public function listAction()\n {\n $model = $this->_owApp->selectedModel;\n $translate = $this->_owApp->translate;\n $store = $this->_erfurt->getStore();\n $resource = $this->_owApp->selectedResource;\n $ac = $this->_erfurt->getAc();\n $params = $this->_request->getParams();\n $limit = 20;\n\n $rUriEncoded = urlencode((string)$resource);\n $mUriEncoded = urlencode((string)$model);\n $feedUrl = $this->_config->urlBase . \"history/feed?r=$rUriEncoded&mUriEncoded\";\n\n $this->view->headLink()->setAlternate($feedUrl, 'application/atom+xml', 'History Feed');\n\n // redirecting to home if no model/resource is selected\n if (\n empty($model) ||\n (\n empty($this->_owApp->selectedResource) &&\n empty($params['r']) &&\n $this->_owApp->lastRoute !== 'instances'\n )\n ) {\n $this->_abort('No model/resource selected.', OntoWiki_Message::ERROR);\n }\n\n // getting page (from and for paging)\n if (!empty($params['page']) && (int) $params['page'] > 0) {\n $page = (int) $params['page'];\n } else {\n $page = 1;\n }\n\n // enabling versioning\n $versioning = $this->_erfurt->getVersioning();\n $versioning->setLimit($limit);\n\n if (!$versioning->isVersioningEnabled()) {\n $this->_abort('Versioning/History is currently disabled', null, false);\n }\n\n $singleResource = true;\n // setting if class or instances\n if ($this->_owApp->lastRoute === 'instances') {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = $translate->_('Versions for elements of the list');\n\n $listHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('List');\n $listName = \"instances\";\n if ($listHelper->listExists($listName)) {\n $list = $listHelper->getList($listName);\n $list->setStore($store);\n } else {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('something went wrong with the list of instances', OntoWiki_Message::ERROR)\n );\n }\n\n $query = clone $list->getResourceQuery();\n $query->setLimit(0);\n $query->setOffset(0);\n //echo htmlentities($query);\n\n $results = $model->sparqlQuery($query);\n $resourceVar = $list->getResourceVar()->getName();\n\n $resources = array();\n foreach ($results as $result) {\n $resources[] = $result[$resourceVar];\n }\n //var_dump($resources);\n\n $historyArray = $versioning->getHistoryForResourceList(\n $resources,\n (string) $this->_owApp->selectedModel,\n $page\n );\n //var_dump($historyArray);\n\n $singleResource = false;\n } else {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = sprintf($translate->_('Versions for %1$s'), $title);\n\n $historyArray = $versioning->getHistoryForResource(\n (string)$resource,\n (string)$this->_owApp->selectedModel,\n $page\n );\n }\n\n if (sizeof($historyArray) == ( $limit + 1 )) {\n $count = $page * $limit + 1;\n unset($historyArray[$limit]);\n } else {\n $count = ($page - 1) * $limit + sizeof($historyArray);\n }\n\n $idArray = array();\n $userArray = $this->_erfurt->getUsers();\n $titleHelper = new OntoWiki_Model_TitleHelper();\n // Load IDs for rollback and Username Labels for view\n foreach ($historyArray as $key => $entry) {\n $idArray[] = (int) $entry['id'];\n if (!$singleResource) {\n $historyArray[$key]['url'] = $this->_config->urlBase . \"view?r=\" . urlencode($entry['resource']);\n $titleHelper->addResource($entry['resource']);\n }\n\n if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->anonymousUser) {\n $userArray[$entry['useruri']] = 'Anonymous';\n } else if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->superAdmin) {\n $userArray[$entry['useruri']] = 'SuperAdmin';\n } else if (is_array($userArray[$entry['useruri']])) {\n if (isset($userArray[$entry['useruri']]['userName'])) {\n $userArray[$entry['useruri']] = $userArray[$entry['useruri']]['userName'];\n } else {\n $titleHelper->addResource($entry['useruri']);\n $userArray[$entry['useruri']] = $titleHelper->getTitle($entry['useruri']);\n }\n }\n }\n $this->view->userArray = $userArray;\n $this->view->idArray = $idArray;\n $this->view->historyArray = $historyArray;\n $this->view->singleResource = $singleResource;\n $this->view->titleHelper = $titleHelper;\n\n if (empty($historyArray)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message(\n 'No history for the selected resource(s).',\n OntoWiki_Message::INFO\n )\n );\n }\n\n if ($this->_erfurt->getAc()->isActionAllowed('Rollback')) {\n $this->view->rollbackAllowed = true;\n // adding submit button for rollback-action\n $toolbar = $this->_owApp->toolbar;\n $toolbar->appendButton(\n OntoWiki_Toolbar::SUBMIT,\n array('name' => $translate->_('Rollback changes'), 'id' => 'history-rollback')\n );\n $this->view->placeholder('main.window.toolbar')->set($toolbar);\n } else {\n $this->view->rollbackAllowed = false;\n }\n\n // paging\n $statusBar = $this->view->placeholder('main.window.statusbar');\n // the normal page_param p collides with the generic-list param p\n OntoWiki_Pager::setOptions(array('page_param'=>'page'));\n $statusBar->append(OntoWiki_Pager::get($count, $limit));\n\n // setting view variables\n $url = new OntoWiki_Url(array('controller' => 'history', 'action' => 'rollback'));\n\n $this->view->placeholder('main.window.title')->set($windowTitle);\n\n $this->view->formActionUrl = (string) $url;\n $this->view->formMethod = 'post';\n // $this->view->formName = 'instancelist';\n $this->view->formName = 'history-rollback';\n $this->view->formEncoding = 'multipart/form-data';\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.6590569", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "e16b7bcfc7e0c35a6d0ecf74b30d6a20", "score": "0.6587904", "text": "public function index()\n {\n $title = $this->title($this->modelName);\n $modelName = $this->modelName;\n $model = $this->model;\n $listStatus = $this->listStatus;\n $models = Bank::paginate(10);\n return view('bank.lists.index', compact('title', 'models', 'modelName', 'model', 'listStatus'));\n }", "title": "" }, { "docid": "0221833762d40c420a048045edcecf8f", "score": "0.6586875", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6586564", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.65861714", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.65857947", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.6563124", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "b9b300aec37bbe88214d2c466b083d07", "score": "0.656141", "text": "public function index()\n {\n // Obtengo los resultados\n $results = Result::all();\n\n // Lo devuelvo como un recurso\n return ResultResource::collection($results);\n }", "title": "" }, { "docid": "e840f12f97ea99ca01a90a9ec9cad7ca", "score": "0.65604496", "text": "public function index()\n {\n return BookResource::collection(Book::with('authors')->paginate(25));\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.65564436", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "19e51010afc5a8251ed229fa24e89b84", "score": "0.65540445", "text": "public function index()\n {\n $items = Item::search()->paginate(10);\n return view('item.list', compact('items'));\n }", "title": "" }, { "docid": "451b54ad54f4267a96a3c9a18faae916", "score": "0.6551622", "text": "function index()\n {\n $this->listArticles();\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.65484035", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "ea133c7a5d450c0580ac1c613df4b59d", "score": "0.65477294", "text": "public function index()\n {\n //Get Movies\n $movies = Movie::paginate(15);\n\n //return collection of movies as a resource\n return MovieResource::collection($movies);\n }", "title": "" }, { "docid": "46a4b83443e6a7cb9ed2604a7ba376d3", "score": "0.65395916", "text": "public function viewList(): void\n {\n $model = self::fetchModel($this->request->get(self::PARAM_MODEL_NAME));\n $this->response->set(Mvc::TEMPLATE, 'manager');\n $this->response->set(Mvc::CONTEXT, $this->request->get(Mvc::CONTEXT));\n $this->response->set(Mvc::VIEW, $this->request->get(Mvc::VIEW));\n $this->response->set('config', $this->getCrudConfig($model));\n $content = FrontendHelper::parseFile('/var/www/_dev/vendor/noxkiwi/crud/frontend/view/crudfrontend/list.php');\n $this->response->set('content', $content);\n $this->response->set(self::PARAM_MODEL_NAME, $this->modelName);\n }", "title": "" }, { "docid": "f0e979747234803271be38ea6cd3396e", "score": "0.65392786", "text": "public function index()\n\t{\n\t\t$categories = Category::paginate(5);\n\t\treturn CategoryResource::collection($categories);\n\t}", "title": "" }, { "docid": "e08fd6cadf8c20cad7196e73194fba35", "score": "0.65371805", "text": "public function index()\n {\n return $this->service->showAll();\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.6528118", "text": "public function list()\n {\n }", "title": "" }, { "docid": "de74480294a1123dacaf091a018a43f7", "score": "0.65251106", "text": "public function _index(){\n\t $this->_list();\n\t}", "title": "" }, { "docid": "3a2bf5049606c1975209783c9d992936", "score": "0.6520308", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $recipes = $em->getRepository('AppBundle:Recipe')->findAll();\n\n return $this->render('@frontend/recipe/list.html.twig', array(\n 'recipes' => $recipes\n ));\n }", "title": "" }, { "docid": "976cbb5be4594e239e987a2fbcbe8b3a", "score": "0.65139616", "text": "public function index()\n {\n return FieldResource::collection(Field::paginate());\n }", "title": "" }, { "docid": "901678e4ca1d10119628a2768429725f", "score": "0.6512925", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "f2cedab0962de588e01c1716c1790aad", "score": "0.65061677", "text": "public function index()\n {\n // return Response::json(request()->route(), 200);\n $action = \"SHOW \" . $this->page;\n try {\n $search = request()->get(\"search\");\n $isPaging = request()->exists(\"page\");\n\n $model = $this->model::query();\n\n // If admin searches for any name\n if (!empty($search)) {\n $model = $model->whereName($search);\n }\n\n if (isset($this->loadParam['read'])) {\n if(isset($this->loadParam['read']['with'])) {\n $withs = explode(',', $this->loadParam['read']['with']);\n foreach ($withs as $with) {\n $model = $model->with($with);\n }\n }\n }\n\n // Provide based on paging or not\n if ($isPaging) {\n $model = $model\n ->orderBy('id', 'desc')->paginate();\n } else {\n $model = $model\n ->orderBy('id', 'desc')->get();\n }\n\n // If permission has data\n if ($model) {\n $this->lg($this->page . ' list shown', 'info', $action, 200);\n return response()->json($model);\n } else {\n $this->lg($this->page . ' list not found', 'warning', $action, 404);\n return response()->json(\"Not found\", 404);\n }\n } catch (\\Exception $e) {\n $this->lg($e, 'error', $action, 500);\n return response()->json($this->experDifficulties, 500);\n }\n }", "title": "" }, { "docid": "ef707fce78cb544fb65c0a4e38796dff", "score": "0.6500603", "text": "private function showList(): void\n {\n $msg = \"Welcome customer, to view the product list type: list\\n\";\n echo $msg;\n while ($command = $this->getInput() !== 'list') {\n echo $msg;\n };\n $products = Route::goTo('list');\n $this->products = $products;\n foreach ($this->products as $product) {\n echo $product->toString() . \"\\n\";\n }\n }", "title": "" }, { "docid": "a281ecc70e3d52bd2ee1e4bfba8e1724", "score": "0.64979064", "text": "public function index()\n {\n return SongResource::collection(Song::all()->sortByDesc('created_at'));\n }", "title": "" }, { "docid": "7f844292b4038bfed459f1130c7632dd", "score": "0.6496267", "text": "public function listAction()\n {\n $this->view->assign('articles', $this->repository->findForListPlugin($this->settings, $this->getData()));\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.6493804", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "629569270186c168f2f698db8154b51a", "score": "0.6488171", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.64859134", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\n }", "title": "" }, { "docid": "228d685d5f1d86518c57ce853ccd52ef", "score": "0.64858836", "text": "public function listAction() {\n\t\t$literatures = $this->literatureRepository->findAll();\n\t\t$this->view->assign('literatures', $literatures);\n\t}", "title": "" }, { "docid": "e4ed0c12368721c8003fa5e2056a624b", "score": "0.6479145", "text": "public function indexAction()\n {\n $user = $this->get('security.context')->getToken()->getUser();\n \n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('BricksSiteBundle:ExternalResource')->findBy(\n array(),\n array('title' => 'ASC')\n );\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "d4e011bbb309b20dccd6a637cae8b802", "score": "0.6474716", "text": "public function index()\n {\n return response(TodoResource::collection(Todo::all()), 200);\n }", "title": "" } ]
069a12dd1f78541e4e2b902d056f4f57
find multiple matches based on a single field and match criteria
[ { "docid": "227e5d8bf68b17759e6a4b32f5d9a370", "score": "0.5236468", "text": "public static function fetchAllWhereMatchingSingleField($fieldname, $match)\n {\n if (is_array($match)) {\n return static::fetchAllWhere(static::_quote_identifier($fieldname) . ' IN (' . static::createInClausePlaceholders($match) . ')', $match);\n } else {\n return static::fetchAllWhere(static::_quote_identifier($fieldname) . ' = ?', array($match));\n }\n }", "title": "" } ]
[ { "docid": "109b93724a1ad13515505c3776865788", "score": "0.619115", "text": "function find(array $fieldsAndValues = array());", "title": "" }, { "docid": "e4cdba54d1911e2fa674563c0e754939", "score": "0.6186379", "text": "function matching($selectlist,$keywordlist,$relation, $orderAttribute){\n\t\n\t//去掉未填项\n\t$keywordlist=array_filter($keywordlist);\n\tif(count($keywordlist)==0){\n\t\treturn array();\n\t}\n\t$keyword_arr=array();\n\t$ID_arr=array();\n\t$getSearch=\"select * from trade t,post p where t.trade_id=p.trade_id and \";\n\t\n\t$j=-1;//j表示字段间逻辑\n\tfor($i=0;$i<count($keywordlist);$i++){\t\n\t\tif($j>=0){\n\t\t\tif($relation[$j]==\"&\"){\n\t\t\t\t$getSearch=$getSearch.\" and \";\n\t\t\t}\n\t\t\telse if($relation[$j]==\"|\"){\n\t\t\t\t$getSearch=$getSearch.\" or \";\n\t\t\t}\n\t\t}\n\t\t$j++;\n\t\t$getSearch=$getSearch.\" t.\".$selectlist[$i].\" regexp '\".$keywordlist[$i].\"'\";\n\t}\n\t$getSearch=$getSearch.\"order by \".$orderAttribute;\n\techo $getSearch;\n\t$result=mysql_query($getSearch);\n\t\n\treturn $result;\n\t\n}", "title": "" }, { "docid": "cd1ab1143f4a22eefc16d3e7a131107f", "score": "0.6128732", "text": "public function matchAll();", "title": "" }, { "docid": "32e521b8b3eeefa8ba8097a8e3299659", "score": "0.59538543", "text": "public function multiMatch(array $fields = null, $value = null, callable $callback = null);", "title": "" }, { "docid": "0ba13519bede3eba9fe4d226e0ae56de", "score": "0.592247", "text": "function findPostsBy(array $criteria);", "title": "" }, { "docid": "b13b69d1d9f02bfd7f310bbec21c369a", "score": "0.5868123", "text": "public function group_records_by_query_params_match()\r\n {\r\n // \r\n // The return value is an array, a key in this array is a query_params_match\r\n // bool (so the keys can be just True or False) and the value is a list \r\n // of all the records with this query_params_match value.\r\n\r\n $key_function = create_function('$x', 'return $x->query_params_match');\r\n return $this->group_records($key_function);\r\n }", "title": "" }, { "docid": "c4acc6f153c503a4a1bf557edfb5ca52", "score": "0.5779387", "text": "public function query_person_matched_records()\r\n {\r\n // \r\n // Note that the meaning of \"match the person from the query\" means \"Pipl \r\n // is convinced that these records hold data about the person you're \r\n // looking for\". \r\n // Remember that when Pipl is convinced about which person you're looking \r\n // for, the response also contains a Person object. This person is \r\n // created by merging all the fields and sources of these records. \r\n $this->records = array_filter($this->records, create_function('$rec', 'return $rec->query_params_match == 1.0;'));\r\n }", "title": "" }, { "docid": "53760b6b1db9ff9669de9f2311e7c615", "score": "0.5705551", "text": "public function query_params_matched_records()\r\n {\r\n $this->records = array_filter($this->records, create_function('$rec', 'return $rec->query_params_match;'));\r\n }", "title": "" }, { "docid": "171a3d8d0f9072bba6fce597465f2289", "score": "0.5628356", "text": "public static function find($arrConditions);", "title": "" }, { "docid": "c1316bd4342617bbcd1b5101e340267f", "score": "0.5484529", "text": "abstract protected function matchesList(array $item);", "title": "" }, { "docid": "1611886646b48182dc57b6df0f4c6140", "score": "0.5464968", "text": "public function find($fields = []) {\n\t\tglobal $link;\n\t\t$table = $this->table_name();\n\t\t$where = \"\";\n\t\tforeach($fields as $key => $value) {\n\t\t\tif (property_exists($this, $key)) {\n\t\t\t\t//die($key);\n\t\t\t\t$where = $where . \"AND \" . \"$key\" . \" Like('%$value%') \";\n\t\t\t}\n\t\t}\n\t\t$where = trim($where, \"AND\");\n\t\t$where = trim($where);\n\t\t$query = \"SELECT * FROM \" . \"`$table`\" . \" WHERE $where\";\n\t\t$res = $link->query($query);\n\t\t$i = 0;\n\t\t//die($query);\n\t\t$result = [];\n\t\twhile ($row = mysqli_fetch_array($res)) {\n\t\t\t$result[] = $row;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "2ed0b7d974406e6befd0b21a2c6c6efd", "score": "0.5455927", "text": "function findAllMatchUidWithin($uids, $expression = null)\n {\n $objIds = [];\n foreach ($uids as $id)\n $objIds[] = $this->attainNextIdentifier($id);\n\n\n // Query Condition By Expression\n\n $queryConditions = [\n '_id' => [\n '$in' => $objIds\n ]\n ];\n\n if ($expression !== null) {\n $queryConditions\n += \\Module\\MongoDriver\\buildMongoConditionFromExpression($expression);\n }\n\n $r = $this->_query()->find(\n $queryConditions,\n [\n 'sort' => [\n '_id' => -1,\n ]\n ]\n );\n\n return $r;\n }", "title": "" }, { "docid": "61f20294a8687396fba81720667f6d5d", "score": "0.5429251", "text": "public function searchAll($input);", "title": "" }, { "docid": "3eba11b0c9c7476466a0c56523f81c26", "score": "0.5426334", "text": "function candidate_search($search_array)\n {\n $this->db->select('*')\n ->from(TABLE_USER_MASTER)\n ->join(TABLE_USER_PROFESSIONAL_DETAILS,TABLE_USER_MASTER.'.UserId='.TABLE_USER_PROFESSIONAL_DETAILS.'.UserId');\n if(is_array($search_array) && count($search_array) > 0)\n {\n foreach($search_array as $key => $val)\n {\n if(is_array($val) && count($val) > 0 && $key==\"KeySkill\")\n {\n foreach($val as $k =>$v)\n {\n $where = \"KeySkill REGEXP '.*\\\"SkillName\\\";s:[0-9]+:\\\"\".$v.\"\\\".*'\";\n $this->db->where($where);\n }\n }\n if(is_array($val) && count($val) > 0 && $key==\"FunctionalExpertise\")\n {\n foreach($val as $k =>$v)\n {\n $where = \"FunctionalExpertise REGEXP '.*\\\"Name\\\";s:[0-9]+:\\\"\".$v.\"\\\".*'\";\n $this->db->where($where);\n }\n }\n if($val!='' && $key!=\"KeySkill\" && $key!=\"FunctionalExpertise\" && $key!=\"Experience\" && $key!=\"ExpectedSal\" && $key!=\"ResumeDesc\")\n $this->db->like($key,$val);\n if($val!='' && $key==\"ResumeDesc\")\n $this->db->or_like($key,$val); \n if($val!='' && ($key==\"Experience\" || $key==\"ExpectedSal\" || $key==\"EmpStatus\"))\n $this->db->where($key,$val);\n }\n }\n $query=$this->db->get();\n return $query;\n }", "title": "" }, { "docid": "baacfc3511462018d2b4805366e6b9a7", "score": "0.54232", "text": "public function dbMatch($field, $value, $mode){\n/*\n\t$fields = array_map('trim', explode(',', $field));\n\t$values = array_map('trim', explode(',', $value));\n\n foreach($values as $val){\n $values_quoted[] = (preg_match(\"#^[0-9]{1,}$#\",$val)) ? $val : \"'\".$val.\"'\";\n }\n if(!is_array($values_quoted)) $values_quoted = array();\n*/\n\n\tswitch($mode){\n\t\tcase 'EG' : $return[] = \" ($field = '$value') \";\t\tbreak; // egal\n case 'NE' : $return[] = \" ($field != '$value') \";\t\tbreak; // not egal\n\t\tcase 'BW' : $return[] = \" ($field LIKE '$value%') \";\tbreak; // begin with\n\t\tcase 'EW' : $return[] = \" ($field LIKE '%$value') \";\tbreak; // end with\n case 'CT' : $return[] = \" ($field LIKE '%$value%') \";\tbreak; // contains\n\t\t\n case 'MT' : $return[] = \" ($field > '$value') \";\t\tbreak; // more than\n\t\tcase 'LT' : $return[] = \" ($field < '$value') \";\t\tbreak; // less than\n case 'ME' : $return[] = \" ($field >= '$value') \";\t\tbreak; // more or egal\n\t\tcase 'LE' : $return[] = \" ($field <= '$value') \";\t\tbreak; // less or egal\n/*\n\t\tcase 'BT' : $q = &$values_quoted; list($values_quoted[0], $values_quoted[1]) = ($q[0] < $q[1]) ? array($q[0], $q[1]) : array($q[1], $q[0]);\n\t\t\t\t\t$return[] = \" ($field BETWEEN $values_quoted[0] AND $values_quoted[1]) \";\tbreak; // between\n\t\tcase 'NB': $q = &$values_quoted; list($values_quoted[0], $values_quoted[1]) = ($q[0] < $q[1]) ? array($q[0], $q[1]) : array($q[1], $q[0]);\n $return[] = \" ($field NOT BETWEEN $values_quoted[0] AND $values_quoted[1]) \";\tbreak; // not between\n*/ \n\t\tcase 'IN' : $return[] = \" ($field IN (\".implode(', ', $values_quoted).\")) \";\tbreak; // in\n\t\tcase 'NI' : $return[] = \" ($field NOT IN (\".implode(', ', $values_quoted).\")) \";\tbreak; // not in\n\n\t\tcase 'RE' : $return[] = \" ($field REGEXP BINARY '$value') \";\tbreak; // regular expression\n\n default : $return[] = \" ($field LIKE '%$value%') \"; \t\t\tbreak; // like\n\t}\n\n\treturn implode($return, $insert);\n}", "title": "" }, { "docid": "ee166e237648d95d4c041d922843d479", "score": "0.5418058", "text": "function findPostBy(array $criteria);", "title": "" }, { "docid": "6da5984da87fe69192ed9db728a24040", "score": "0.5398457", "text": "function search_political_ads($query, $extra_args = array()) {\n global $wpdb;\n $parsed_query = parse_political_ad_query($query);\n\n // Candidates, Sponsors, and Sponsor Type are nested meta values\n $or_post_ids = array();\n $not_post_ids = array();\n $and_post_sets = array();\n $general_and_ids = array(); // \"and\" that was set to general implies ANY category match, not EVERY category match\n $use_matched_post_ids = false;\n $use_general_and = false;\n\n if(sizeof($parsed_query['candidate'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['candidate'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value LIKE %s\n \",\n 'ad_candidates_%_ad_candidate',\n '%'.$query_part['value'].'%'\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n if(sizeof($parsed_query['sponsor'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['sponsor'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value LIKE %s\n \",\n 'ad_sponsors_%_ad_sponsor',\n '%'.$query_part['value'].'%'\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['sponsor_type'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['sponsor_type'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value = %s\n \",\n 'ad_sponsors_%_sponsor_type',\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['subject'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['subject'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value LIKE %s\n \",\n 'ad_subjects_%_ad_subject',\n '%'.$query_part['value'].'%'\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['message'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['message'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value LIKE %s\n \",\n 'ad_message',\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['type'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['type'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value LIKE %s\n \",\n 'ad_type',\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['archive_id'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['archive_id'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}postmeta\n WHERE meta_key LIKE %s\n AND meta_value = %s\n \",\n 'archive_id',\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->post_id;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n // Market, Channel, and Location are instance values\n if(sizeof($parsed_query['network'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['network'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE network = %s\n GROUP BY wp_identifier\n \",\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['market'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['market'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE market = %s\n GROUP BY wp_identifier\n \",\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['location'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['location'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE location LIKE %s\n GROUP BY wp_identifier\n \",\n '%'.$query_part['value'].'%'\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['program'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['program'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE program LIKE %s\n GROUP BY wp_identifier\n \",\n '%'.$query_part['value'].'%'\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['program_type'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['program_type'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE program_type LIKE %s\n GROUP BY wp_identifier\n \",\n $query_part['value']\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['after'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['after'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE start_time >= %s\n GROUP BY wp_identifier\n \",\n date('Y-m-d H:i:s', strtotime($query_part['value']))\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['before'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['before'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE start_time <= %s\n GROUP BY wp_identifier\n \",\n date('Y-m-d H:i:s', strtotime($query_part['value']))\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n if(sizeof($parsed_query['data_since'])) {\n $use_matched_post_ids = true;\n foreach($parsed_query['data_since'] as $query_part) {\n if($query_part['value'] == \"\")\n continue;\n\n $rows = $wpdb->get_results($wpdb->prepare(\n \"SELECT *\n FROM {$wpdb->prefix}ad_instances\n WHERE date_created >= %s\n GROUP BY wp_identifier\n \",\n date('Y-m-d H:i:s', strtotime($query_part['value']))\n ));\n\n $temp_ids = array();\n foreach($rows as $row) {\n $temp_ids[] = $row->wp_identifier;\n }\n switch($query_part['boolean']) {\n case 'GENERAL_NOT':\n case 'NOT':\n $not_post_ids = array_merge($not_post_ids, $temp_ids);\n break;\n case 'GENERAL_AND':\n $use_general_and = true;\n $general_and_ids = array_merge($general_and_ids, $temp_ids);\n break;\n case 'AND':\n $and_post_sets[] = $temp_ids;\n break;\n case 'GENERAL_OR':\n case 'OR':\n $or_post_ids = array_merge($or_post_ids, $temp_ids);\n break;\n }\n }\n }\n\n // Proccess the booleans\n $matched_post_ids = array();\n\n // Add the \"or\" set as a new and set\n $and_post_sets[] = $or_post_ids;\n\n // Did we have a general AND?\n if($use_general_and)\n $and_post_sets[] = $general_and_ids;\n\n if(sizeof($and_post_sets) == 1)\n $matched_post_ids = $and_post_sets[0];\n else\n $matched_post_ids = call_user_func_array('array_intersect', $and_post_sets);\n\n // Remove the \"not\" set\n $matched_post_ids = array_diff($matched_post_ids, $not_post_ids);\n\n // Remove dupes because why not\n $matched_post_ids = array_unique($matched_post_ids);\n\n // We have a list of matched post IDs, lets load up\n $base_args = array(\n 'post_type' => 'archive_political_ad',\n 'post_status' => 'publish',\n 'orderby' => 'post_date',\n 'order' => 'DESC'\n );\n if($use_matched_post_ids) {\n if(sizeof($matched_post_ids) > 0) {\n $base_args['post__in'] = $matched_post_ids;\n } else {\n $base_args['post__in'] = array(-1);\n }\n }\n\n $args = array_merge($base_args, $extra_args);\n\n $wp_query = new WP_Query($args);\n return $wp_query;\n}", "title": "" }, { "docid": "b1ae7696a2ec6ccdb7bcbc5ec8c7c41f", "score": "0.5333568", "text": "public function group_records_by_query_person_match()\r\n {\r\n // \r\n // The return value is an array, a key in this array is a query_person_match\r\n // float and the value is a list of all the records with this \r\n // query_person_match value.\r\n\r\n $key_function = create_function('$x', 'return $x->query_person_match');\r\n return $this->group_records($key_function);\r\n }", "title": "" }, { "docid": "7428a726294be1100168ff078d6d5ed2", "score": "0.53233296", "text": "function mm_advanced_search_database_for_candidates($query_array, $query_operand, $limit) {\n $users_returned_by_attribute = array();\n $users_returned_by_metadata = array();\n $is_attribute_searched = false;\n $is_metadata_searched = false;\n $candidates = array();\n\n $filtered_array = array_filter($query_array);\n if (empty($filtered_array)) {\n register_error(elgg_echo('missions:error:no_search_values'));\n return false;\n }\n\n // Handles each query individually.\n foreach($filtered_array as $array) {\n // Sets up an education and experience array search for title (not metadata).\n if($array['name'] == 'title') {\n $options_attribute['type'] = 'object';\n $options_attribute['subtypes'] = $array['extra_option'];\n $options_attribute['joins'] = array('INNER JOIN ' . elgg_get_config('dbprefix') . 'objects_entity g ON (g.guid = e.guid)');\n $options_attribute['wheres'] = array(\"g.\" . $array['name'] . \" \" . $array['operand'] . \" '\" . $array['value'] . \"'\");\n $options_attribute['limit'] = $limit;\n $entities = elgg_get_entities($options_attribute);\n\n $entity_owners = array();\n $count = 0;\n foreach($entities as $entity) {\n $entity_owners[$count] = $entity->owner_guid;\n $count++;\n }\n\n // Adds the results of the query to a pool of results.\n if(empty($users_returned_by_attribute)) {\n $users_returned_by_attribute = array_unique($entity_owners);\n }\n else {\n $users_returned_by_attribute = array_unique(array_intersect($users_returned_by_attribute, $entity_owners));\n }\n // Notes that attributes have been searched during this function call.\n $is_attribute_searched = true;\n }\n \n else if(strpos($array['name'], 'opt_in') !== false || strpos($array['name'], 'department') !== false) {\n \t$options_attribute['type'] = 'user';\n \t$options_metadata['metadata_name_value_pairs'] = array(array('name' => $array['name'], 'operand' => $array['operand'], 'value' => $array['value']));\n \t$options_metadata['limit'] = $limit;\n \t$options_metadata['metadata_case_sensitive'] = false;\n \t$entities = elgg_get_entities_from_metadata($options_metadata);\n \t\n \t$entity_owners = array();\n \t$count = 0;\n \tforeach($entities as $entity) {\n \t\t$entity_owners[$count] = $entity->guid;\n \t\t$count++;\n \t}\n \t\n \t// Adds the results of the query to a pool of results.\n \tif(empty($users_returned_by_metadata)) {\n \t\t$users_returned_by_metadata = array_unique($entity_owners);\n \t}\n \telse {\n \t\t$users_returned_by_metadata = array_unique(array_intersect($users_returned_by_metadata, $entity_owners));\n \t}\n \t// Notes that metadata have been searched during this function call.\n \t$is_metadata_searched = true;\n }\n\n // Sets up metadata serach.\n else {\n $operand_temp = htmlspecialchars_decode($array['operand']);\n \n $options_metadata['type'] = 'object';\n $options_metadata['subtypes'] = $array['extra_option'];\n $options_metadata['metadata_name_value_pairs'] = array(array('name' => $array['name'], 'operand' => $operand_temp, 'value' => $array['value']));\n $options_metadata['limit'] = $limit;\n $options_metadata['metadata_case_sensitive'] = false;\n $entities = elgg_get_entities_from_metadata($options_metadata);\n\n $entity_owners = array();\n $count = 0;\n foreach($entities as $entity) {\n $entity_owners[$count] = $entity->owner_guid;\n $count++;\n }\n\n // Adds the results of the query to a pool of results.\n if(empty($users_returned_by_metadata)) {\n $users_returned_by_metadata = array_unique($entity_owners);\n }\n else {\n $users_returned_by_metadata = array_unique(array_intersect($users_returned_by_metadata, $entity_owners));\n }\n // Notes that metadata have been searched during this function call.\n $is_metadata_searched = true;\n }\n }\n\n // Intersects the results into a single pool.\n if($is_attribute_searched && $is_metadata_searched) {\n $candidates = array_intersect($users_returned_by_attribute, $users_returned_by_metadata);\n }\n // If only metadata or only attributes have been searched then intersection is unecessary.\n if($is_attribute_searched && !$is_metadata_searched) {\n $candidates = $users_returned_by_attribute;\n }\n if(!$is_attribute_searched && $is_metadata_searched) {\n $candidates = $users_returned_by_metadata;\n }\n \n $final_users = mm_guids_to_entities_with_opt(array_slice($candidates, 0, $limit));\n $final_count = count($final_users);\n\n if ($final_count == 0) {\n register_error(elgg_echo('missions:error:candidate_does_not_exist'));\n return false;\n } else {\n $_SESSION['candidate_count'] = $final_count;\n $_SESSION['candidate_search_set'] = $final_users;\n $_SESSION['candidate_search_set_timestamp'] = time();\n unset($_SESSION['candidate_search_feedback']);\n\n return true;\n }\n}", "title": "" }, { "docid": "34e319301c02a754413df39f23dd86d1", "score": "0.53221637", "text": "public function allMatch($predicate);", "title": "" }, { "docid": "91e15e3437dbfa460a75aa177adab83c", "score": "0.53010297", "text": "function search_by_criteria($criteria)\n\t{\n\t\t$i=0;\n\t\t$rec1=mysql_query(\"select * from fir_data\");\n\t\twhile($rec2=mysql_fetch_array($rec1))\n\t\t{\n\t\t\t$fir_data_obj= new fir_data();\n\t\t\t$fir_data_obj->case_id=$rec2[\"case_id\"];\n\t\t\t$fir_data_obj->crime_id=$rec2[\"crime_id\"];\n\t\t\t$fir_data_obj->crime_name=$rec2[\"crime_name\"];\n\t\t\t$fir_data_obj->location=$rec2[\"location\"];\n\t\t\t$fir_data_obj->citizen_id=$rec2[\"citizen_id\"];\n\t\t\t$fir_data_obj->fdate=$rec2[\"fdate\"];\n\t\t\t$fir_data_obj->ans1=$rec2[\"ans1\"];\n\t\t\t$fir_data_obj->ans2=$rec2[\"ans2\"];\n\t\t\t$fir_data_obj->ans3=$rec2[\"ans3\"];\n\t\t\t$fir_data_obj->ans4=$rec2[\"ans4\"];\n\t\t\t$fir_data_obj->ans5=$rec2[\"ans5\"];\n\t\t\t\n\t\t\t$arr[$i]=$fir_data_obj;\n\t\t\t$i++;\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "8e84e914c8a08f083794d0a0090ac8d1", "score": "0.52844423", "text": "function criteria(&$query){\n $id = $this->input->post('id', true);\n $k = $this->input->post('k', true);\n $n = $this->input->post('n', true);\n $v1 = $this->input->post('v1', true);\n $v2 = $this->input->post('v2', true);\n if(!empty($id)){/*where like include: before(%pattern), after(pattern%) and both(%pattern%)*/\n $query = $query->like('id', $id, 'both');\n }\n if(!empty($k)){\n $query = $query->like('apply_key', $k, 'both');\n }\n if(!empty($n)){\n $query = $query->like('apply_name', $n, 'both');\n }\n if(!empty($v1)){\n $query = $query->like('apply_value', $v1, 'both');\n }\n if(!empty($v2)){\n $query = $query->like('apply_value2', $v2, 'both');\n }\n }", "title": "" }, { "docid": "29da14d4d843142cae7fb669a825e745", "score": "0.5282378", "text": "function preg_match_batch($expr, $batch = array() , $flag = 0) {\n $matches = array();\n $i=0;\n\n // If empty matches should be discarded\n if ($flag === self::PREG_DISCARD_EMPTY_MATCHES) {\n foreach ($batch as $str) {\n if (preg_match($expr, $str, $found)) {\n $matches[$i] = $found;\n ++$i;\n }\n }\n }\n // If empty matches should not be discarded\n else {\n foreach ($batch as $str) {\n preg_match($expr, $str, $found);\n $matches[$i] = $found;\n ++$i;\n }\n }\n\n return $matches;\n }", "title": "" }, { "docid": "a6f5b13d20b0f104c56a6025b3b8877e", "score": "0.5269047", "text": "public function searchRecord(array $fieldsArray, $searchValue) {\n $result = $this->model->Where(function ($q) use ($fieldsArray, $searchValue) {\n $q->orWhere($fieldsArray[0], 'LIKE', '%' . $searchValue . '%');\n for ($i = 1; $i < count($fieldsArray); $i++) {\n $q->orWhere($fieldsArray[$i], 'LIKE', '%' . $searchValue . '%');\n }\n });\n return $result;\n }", "title": "" }, { "docid": "be71c1d682ac2016a76a524206131774", "score": "0.5268291", "text": "public function getAllMatch($data,$filter=array())\n {\n $params['index'] =$data['index'];\n $params['type'] =$data['type'];\n $params['body']['query']['match_all']=[];\n\n\n $result=$this->client->search($params);\n\n return $this->filterResults($result,$filter,function() use($result) {\n return $result;\n });\n\n }", "title": "" }, { "docid": "3db00d50e524789b2b7ae54542ee31a0", "score": "0.5263217", "text": "public function matches() {\n\t\treturn $this->matchTeamOne->merge($this->matchTeamSecond);\n\t}", "title": "" }, { "docid": "17e37ccaeb3e5bbea75d35d64f8e04b4", "score": "0.5243504", "text": "function findKeywordsArray($needle, $haystack, $fields=array(), $any=true){\n\n\n\t\t\t$result = array();\n\n\t\t\tforeach($haystack as $h){\n\n\t\t\t\t$match = false;\n\n\t\t\t\tforeach($needle as $n){\n\t\t\t\t\tforeach($fields as $f){\n\n\t\t\t\t\t\tif(stripos($h[$f], $n))\n\t\t\t\t\t\t\t$match = true;\n\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(!$any) $match = false;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($match) array_push($result, $h);\n\t\t\t}\n\n\t\t\treturn $result;\n\n\t\t}", "title": "" }, { "docid": "59e433603906ca0348dcb58bcb728f62", "score": "0.52252984", "text": "protected function handleMultipleResultSearch($expression, $content)\n {\n $results = array();\n $preg_results = array();\n \\preg_match_all($expression['expr'], $content, $preg_results);\n $results[$expression['key']] = false;\n if (isset($preg_results[$expression['result_key']])) {\n $results[$expression['key']] = $preg_results[$expression['result_key']];\n }\n return $results;\n }", "title": "" }, { "docid": "ae749dbb22f9d2b9de0077ca3c493d54", "score": "0.52096444", "text": "function search_content_by_value($value){\n $query = db_select(\"node\", \"node\");\n $query->fields('node', array('nid'));\n $query->condition('node.title', '%' . $value . '%', 'LIKE');\n $nid1 = $query->execute()->fetchCol();\n\n $query = db_select(\"field_data_body\", \"body\");\n $query->addField('body', 'entity_id', 'nid');\n $query->condition('body.body_value', '%' . $value . '%', 'LIKE');\n $query->condition('body.entity_type' , 'node');\n $nid2 = $query->execute()->fetchCol();\n\n $query = db_select(\"taxonomy_term_data\" , \"term_data\");\n $query->join(\"taxonomy_index\" , \"taxonomy_index\" , \"taxonomy_index.tid = term_data.tid\");\n $query->fields(\"taxonomy_index\" , array(\"nid\"));\n $query->condition(\"term_data.name\" , '%' . $value . '%', 'LIKE');\n $nid3 = $query->execute()->fetchCol();\n\n $nids = array_merge($nid1, $nid2);\n $nids = array_merge($nids , $nid3);\n\n return $nids;\n}", "title": "" }, { "docid": "e70d93e9b7ad2aca84e202a0bd741403", "score": "0.52075714", "text": "public function get_all_match() {\n /* Puis tous les matchs de cette dernière saison */\n $query = $this->_bdd->query(\"select * from MATCHS order by Id DESC\");\n $this->_nb = 0;\n if( $query->rowCount() > 0) {\n while ($data = $query->fetch()) {\n $this->_data[$this->_nb] = $data;\n $this->_data[$this->_nb]['Saison'] = $this->_bdd->query(\"select Saison from SAISONS where Id = \".$data['IdSaison']);\n $this->_nb++;\n }\n }\n }", "title": "" }, { "docid": "566c0df3f32a09402fcaf9a4d0cde6e4", "score": "0.5201687", "text": "private function search_billOrgTag($inputArr)\n\t{\n\t\t$billOrgsMatch = array();\n\t\t$counter = 1;\n\t\t$countMax = count($inputArr);\n\t\t$queryStatement = \"\";\n\t\t\n\t\tforeach ($inputArr as $row)\n\t\t{\n\t\t\t// Search by billOrg\n\t\t\t$queryStatement = $queryStatement.\"(SELECT * FROM billdb.bills WHERE userID ='\".$this->session->userdata(\"userID\").\"' AND billOrg LIKE '%\".$row.\"%')\";\n\t\t\t$queryStatement = $queryStatement.\" UNION DISTINCT \";\n\t\t\t//Search by billTags\n\t\t\t$queryStatement = $queryStatement.\"(SELECT * FROM billdb.bills WHERE userID ='\".$this->session->userdata(\"userID\").\"' AND billID IN (SELECT billID FROM billdb.billTags WHERE tagName LIKE '%\".$row.\"%'))\";\n\t\t\t\n\t\t\t// If more than one token in query string\n\t\t\tif ($counter < $countMax)\n\t\t\t{\n\t\t\t\t$queryStatement = $queryStatement.\" UNION DISTINCT \";\n\t\t\t\t$counter++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t$query = $this->billdb->query($queryStatement);\n\t\t\t\treturn $query->result_array();\n\t\t\t}\n\t\t} \n }", "title": "" }, { "docid": "175c556c9221980505cd401fbd358495", "score": "0.51966935", "text": "public function findBy(array $criteria);", "title": "" }, { "docid": "175c556c9221980505cd401fbd358495", "score": "0.51966935", "text": "public function findBy(array $criteria);", "title": "" }, { "docid": "175c556c9221980505cd401fbd358495", "score": "0.51966935", "text": "public function findBy(array $criteria);", "title": "" }, { "docid": "ba6a4a46b2cf972274d4dd7722f79c7b", "score": "0.51954246", "text": "static function addMoreCriteria() {\n return [];\n }", "title": "" }, { "docid": "8acb48d87892b06bf39ba8c68b4b26ad", "score": "0.51892036", "text": "function _grAPI_getWhereForSearchFields($options) {\r\n $seenQueries = [];\r\n $andConditions = [];\r\n $schema = $options['_schema'];\r\n foreach ($_REQUEST as $name => $values) {\r\n if (!is_array($values)) { $values = [$values]; } // convert single values to arrays so we can process everything the same way\r\n if (!$values || $values[0] == '') { continue; } // skip fields with empty values\r\n\r\n $suffixList = '_min|_max|_match|_keyword|_prefix|_query|_empty';\r\n if (empty($options['searchSuffixRequired'])) { $suffixList .= '|'; }\r\n\r\n if (!preg_match(\"/^(.+?)($suffixList)\\z/\", $name, $matches)) { continue; } // skip fields without search suffixes\r\n $fieldnamesAsCSV = $matches[1];\r\n $searchType = $matches[2];\r\n $fieldnames = explode(',',$fieldnamesAsCSV);\r\n $orConditions = [];\r\n\r\n foreach ($fieldnames as $fieldnameString) {\r\n foreach ($values as $value) {\r\n\r\n // get field value for date searches.\r\n // don't do the date search if the suffix is actually part of the field name.\r\n if (preg_match(\"/^(.+?)_(year|month|day)\\z/\", $fieldnameString, $matches) && !is_array(@$schema[$fieldnameString])) {\r\n $fieldname = $matches[1];\r\n $dateValue = $matches[2];\r\n if (!is_array(@$schema[$fieldname])) { continue; } // skip invalid fieldnames\r\n if ($dateValue == 'year') { $fieldValue = \"YEAR(`$fieldname`)\"; }\r\n elseif ($dateValue == 'month') { $fieldValue = \"MONTH(`$fieldname`)\"; }\r\n elseif ($dateValue == 'day') { $fieldValue = \"DAYOFMONTH(`$fieldname`)\"; }\r\n else { die(\"unknown date value '$dateValue'!\"); }\r\n }\r\n\r\n // get field value for everything else\r\n else {\r\n if (!is_array(@$schema[$fieldnameString])) { continue; } // skip invalid fieldnames\r\n $fieldValue = '`' .str_replace('.', '`.`', $fieldnameString). '`'; // quote bare fields and qualified fieldnames (table.field)\r\n }\r\n\r\n // add conditions\r\n $fieldSchema = @$schema[$fieldnameString];\r\n $isMultiList = @$fieldSchema['type'] == 'list' && (@$fieldSchema['listType'] == 'pulldownMulti' || @$fieldSchema['listType'] == 'checkboxes');\r\n $valueAsNumberOnly = (float) preg_replace('/[^\\d\\.]/', '', $value);\r\n if (@$fieldSchema['type'] == 'date' && strlen($valueAsNumberOnly) == 8) { // add time to dates without it\r\n if ($searchType == '_min') { $valueAsNumberOnly .= '000000'; } // match from start of day\r\n if ($searchType == '_max') { $valueAsNumberOnly .= '240000'; } // match to end of day\r\n }\r\n\r\n if (!$fieldValue) { die(\"No fieldValue defined!\"); }\r\n if ($searchType == '_min') { $orConditions[] = \"$fieldValue+0 >= $valueAsNumberOnly\"; }\r\n else if ($searchType == '_max') { $orConditions[] = \"$fieldValue+0 <= $valueAsNumberOnly\"; }\r\n else if ($searchType == '_match' || $searchType == '') {\r\n // for single value lists: match exact column value\r\n // for multi value lists: match one of the multiple values or exact column value (to support single value-lists that were converted to multi-value)\r\n $thisCondition = \"$fieldValue = '\" .mysql_escape($value). \"'\";\r\n if ($isMultiList) { $thisCondition = \"($thisCondition OR $fieldValue LIKE '%\\\\t\" .mysql_escape($value). \"\\\\t%')\"; }\r\n $orConditions[] = $thisCondition;\r\n }\r\n else if ($searchType == '_keyword') { $orConditions[] = \"$fieldValue LIKE '%\" .mysql_escape($value, true). \"%'\"; }\r\n else if ($searchType == '_prefix') { $orConditions[] = \"$fieldValue LIKE '\" .mysql_escape($value, true). \"%'\"; }\r\n else if ($searchType == '_query') {\r\n if (@$seenQueries[\"$fieldnamesAsCSV=$searchType\"]++) { continue; } // only add each query once since we're add all fields at once\r\n $orConditions[] = _grAPI_getWhereForSearchQuery($values[0], $fieldnames, $schema);\r\n }\r\n else if ($searchType == '_empty') { $orConditions[] = \"$fieldValue = ''\"; }\r\n else { die(\"Unknown search type '$searchType'!\"); }\r\n }\r\n }\r\n\r\n $condition = join(' OR ', $orConditions);\r\n if ($condition) { $andConditions[] = \"($condition)\"; }\r\n\r\n }\r\n\r\n //\r\n $searchWhere = join(\" AND \", $andConditions);\r\n if (!empty($options['searchMatchRequired']) && !$searchWhere) { $searchWhere = \"false\"; } // don't return anything if no search criteria\r\n\r\n //\r\n return $searchWhere;\r\n}", "title": "" }, { "docid": "b1be5bb83335f3d670cf6df285d34d63", "score": "0.51850086", "text": "public function getMatches() {\n \n $SearchServiceObj = new SearchService;\n\t\t$SearchUtilityObj = new SearchUtility;\n \n\t\t$paramArr[\"logic_used\"] = $this->logicUsed;\n \n\t\t$searchObject = new NewMatchesMailer($this->loggedInProfileObj);\n\t\t$searchObject->getSearchCriteria($paramArr);\n $searchObject->setNoOfResults($this->limit);\n \n $this->canPerformRelaxation($this->dppSwitch);\n \n $pids = $this->getSearchResult($SearchServiceObj, $SearchUtilityObj, $searchObject, 1);\n $this->setLogicLevelArray($pids);\n $totalRecords = $pids['CNT'];\n \n /*\n $this->educationRelaxation($searchObject);\n $pids = $this->getSearchResult($SearchServiceObj, $SearchUtilityObj, $searchObject, 1, 1);\n $this->setLogicLevelArray($pids);\n \n $this->ageHeightCasteRelaxation($searchObject);\n $pids = $this->getSearchResult($SearchServiceObj, $SearchUtilityObj, $searchObject, 1, 1);\n $this->setLogicLevelArray($pids);\n */\n if (count($this->profileSet)){\n $this->logRecords($this->loggedInProfileObj->getPROFILEID(), $this->profileSet, $this->logicUsed, $this->limit,$totalRecords);\n }else{\n $this->insertZeroRecordEntries($this->loggedInProfileObj->getPROFILEID());\n }\n }", "title": "" }, { "docid": "2d78ebc14bc4d294417668fec53cbd87", "score": "0.51813567", "text": "function findAll(array $criteria);", "title": "" }, { "docid": "8c2686e5ac27c90d46f63ee8dec81bbe", "score": "0.5168579", "text": "public static function searchableIds();", "title": "" }, { "docid": "8c2686e5ac27c90d46f63ee8dec81bbe", "score": "0.5168579", "text": "public static function searchableIds();", "title": "" }, { "docid": "28417a7ed84d75bfebd22d36c28e1f5f", "score": "0.5142644", "text": "public function matchThisPropertyAndCustomersSearch($real_property_id)\n {\n \t$a = array();\n \t$o = Doctrine_Query::create()->from('OperationRealProperty')->where(\"real_property_id = $real_property_id\")->execute();\n\n \t$ope_filter = 'sp.operation_id IS NULL';\n \t$cur_filter = 'sp.currency_id IS NULL';\n \t$min_filter = 'sp.min_price = 0';\n \t$max_filter = 'sp.max_price = 0';\n\n \tforeach ($o as $value) {\n \t\t$ope_filter .= ' OR sp.operation_id = '.$value->getOperationId();\n \t\t$cur_filter .= ' OR sp.currency_id = '.$value->getCurrencyId();\n \t\t$min_filter .= ' OR sp.min_price <= '.$value->getPrice();\n \t\t$max_filter .= ' OR sp.max_price >= '.$value->getPrice();\n \t}\n \t$rProperty = RealPropertyTable::getInstance()->find($real_property_id);\n \t\n \tif ($rProperty) {\n \t\t$vendor_id = $rProperty->getAppUserId();\n \t\t$bedroom_id = $rProperty->getBedroomId();\n \t\t$pro_type_id = $rProperty->getPropertyTypeId();\n \t\t$geo_zone_id = $rProperty->getGeoZoneId();\n \t\t$city_id = $rProperty->getCityId();\n \t\t$neighbor_id = $rProperty->getNeighborhoodId();\n \t\t\n \t\t$f = \"(sp.bedroom_id IS NULL OR sp.bedroom_id = $bedroom_id) AND \".\n \t\t\t\t \"(sp.property_type_id IS NULL OR sp.property_type_id = $pro_type_id) AND \".\n \t\t\t\t \"(sp.geo_zone_id IS NULL OR sp.geo_zone_id = $geo_zone_id) AND \".\n \t\t\t\t \"(sp.city_id IS NULL OR sp.city_id = $city_id) AND \".\n \t\t\t\t \"(sp.neighborhood_id IS NULL OR sp.neighborhood_id = $neighbor_id) AND \".\n \t\t\t\t \"($ope_filter) AND \".\n \t\t\t\t \"($cur_filter) AND \".\n \t\t\t\t \"($min_filter) AND \".\n \t\t\t\t \"($max_filter)\";\n\n \t\t$q = Doctrine_Query::create()->from('SearchProfile sp')->leftJoin('sp.AppUser u')->where($f);\n \t\t\n \t\tif ($q->count() > 0) {\n \t\t\t$d = $q->execute();\n \t\t\t\n \t\t\tforeach ($d as $res) {\n \t\t\t\t// upd search_match\n \t\t\t\tself::updSearchMatchOnRealPropertyReg($res->getId(), $vendor_id, $neighbor_id);\n\n \t\t\t\t// customer emails\n \t\t\t\t$a[$res->AppUser->getEmail()] = $res->AppUser->getName().' '.$res->AppUser->getLastName();\n \t\t\t}\n \t\t}\n \t}\n \treturn $a;\n }", "title": "" }, { "docid": "e08328e6567e279183b19ae0a71d5d8d", "score": "0.5137729", "text": "function mm_simple_search_database_for_candidates($query_array, $query_operand, $limit)\n{\n $options = array();\n\n $filtered_array = array_filter($query_array);\n if (empty($filtered_array)) {\n register_error(elgg_echo('missions:error:no_search_values'));\n return false;\n }\n \n $value_array = array();\n foreach($filtered_array as $key => $array) {\n \t$value_array[$key] = str_replace('%', '', $array['value']);\n }\n\n // Setting options with which the query will be built.\n $options['type'] = 'object';\n $options['subtypes'] = array('education', 'experience', 'MySkill', 'portfolio');\n $options['attribute_name_value_pairs'] = $filtered_array;\n $options['attribute_name_value_pairs_operator'] = $query_operand;\n $entities = elgg_get_entities_from_attributes($options);\n\n $entity_owners = array();\n $search_feedback = array();\n $count = 0;\n foreach($entities as $entity) {\n $entity_owners[$count] = $entity->owner_guid;\n // Section for generating feedback which tells the user which search criteria the returned users met.\n if($entity->getSubtype() == 'education') {\n $identifier_string = elgg_echo('missions:school_name');\n }\n if($entity->getSubtype() == 'experience') {\n $identifier_string = elgg_echo('missions:job_title');\n }\n if($entity->getSubtype() == 'MySkill') {\n $identifier_string = elgg_echo('missions:skill');\n }\n if($entity->getSubtype() == 'portfolio') {\n $identifier_string = elgg_echo('missions:portfolio');\n }\n $search_feedback[$entity->owner_guid] .= $identifier_string . ': ' . $entity->title . ',';\n $count++;\n }\n\n $filtered_array_name = $filtered_array;\n $filtered_array_email = $filtered_array;\n foreach($filtered_array as $key => $value) {\n \t$filtered_array_name[$key]['name'] = 'name';\n \t$filtered_array_email[$key]['name'] = 'email';\n }\n $filtered_array_total = array_merge($filtered_array_name, $filtered_array_email);\n \n // Searches user names for the given string. \n $options_second['type'] = 'user';\n $options_second['limit'] = $limit;\n $options_second['attribute_name_value_pairs'] = $filtered_array_total;\n $options_second['attribute_name_value_pairs_operator'] = $query_operand;\n $users = elgg_get_entities_from_attributes($options_second);\n \n // Turns the user list into a list of GUIDs and sets the search feedback for search by name.\n foreach($users as $key => $user) {\n \t$users[$key] = $user->guid;\n \tforeach($value_array as $value) {\n \t\tif(strpos(strtolower($user->name), $value) !== false) {\n \t\t\t$search_feedback[$user->guid] .= elgg_echo('missions:name') . ': ' . $user->name . ',';\n \t\t}\n \t\tif(strpos(strtolower($user->email), $value) !== false) {\n \t\t\t$search_feedback[$user->guid] .= elgg_echo('missions:email') . ': ' . $user->email . ',';\n \t\t}\n \t}\n \t$count++;\n }\n \n $entity_owners = array_merge($entity_owners, $users);\n \n $unique_owners_entity = mm_guids_to_entities_with_opt(array_unique($entity_owners));\n $candidate_count = count($unique_owners_entity);\n\n if ($candidate_count == 0) {\n register_error(elgg_echo('missions:error:candidate_does_not_exist'));\n return false;\n } else {\n $_SESSION['candidate_count'] = $candidate_count;\n $_SESSION['candidate_search_set'] = $unique_owners_entity;\n $_SESSION['candidate_search_set_timestamp'] = time();\n $_SESSION['candidate_search_feedback'] = $search_feedback;\n $_SESSION['candidate_search_feedback_timestamp'] = time();\n\n return true;\n }\n}", "title": "" }, { "docid": "e41f61c4228702a91ef6351311d574ff", "score": "0.51318324", "text": "public function scopeSearchMultiple(Builder $builder,array $fields)\n {\n $builder->where(function ($q) use ($fields) {\n foreach ($fields as $key => $field) {\n if (!request()->has($field)) {\n continue;\n }\n $q->orWhere($key, \"LIKE\", \"%\".request($field).\"%\");\n }\n });\n }", "title": "" }, { "docid": "3bdb55491ecfb24b15c612d80674377b", "score": "0.51257724", "text": "function search_record_by_single_item($mode=\"\",$search_str,$begin_time=\"1900-01-01\",$end_time=\"2300-12-12\")\n{\n\t$search_result;\n\tswitch($mode)\n\t{\n\t\tcase \"FILM\":\n\t\t\t\t$sql=\"SELECT * FROM records WHERE film_id IN (\".\n\t\t\t\t\"SELECT film_id FROM films WHERE film_name LIKE '%$search_str%')\";\n\t\t\tbreak;\n\t\tcase \"CHAIN\":\n\t\t\t\t$sql=\"SELECT * FROM records WHERE chain_id IN (\".\n\t\t\t\t\"SELECT chain_id FROM chains WHERE chain_name LIKE '%$search_str%')\";\n\t\t\tbreak;\n\t\tcase \"USER\":\n\t\t\t\t$sql=\"SELECT * FROM records WHERE user_id IN (\".\n\t\t\t\t\"SELECT user_id FROM users WHERE user_name LIKE '%$search_str%')\";\n\t\t\tbreak;\n\t\tcase \"TIME\":\n\t\t\t\t// here should use between and\n\t\t\t\t$sql=\"SELECT * FROM records WHERE date_time BETWEEN $begin_time AND $end_time\";\n\t\t\tbreak;\n\t\tcase \"LOCATION\":\n\t\t\t\t$sql=\"SELECT * FROM records WHERE location LIKE '%$search_str%'\";\t\t\t\t\n\t\t\tbreak;\n\t\tcase \"ALL\":\n\t\t\t\t$sql=\"SELECT * FROM records\";\t\n\t\t\tbreak;\n\t\tdefault:\t\t\n\t\t\t$sql=\"SELECT * FROM records WHERE location LIKE '%$search_str%'\";\t\n\t\t\tbreak;\n\t}\n\t$search_result=get_all_sqlCommand($sql);\n\treturn $search_result;\n}", "title": "" }, { "docid": "9a84a3deae1fdd588eb7e6ff27385154", "score": "0.51214457", "text": "public function searchByCriteria($array = [])\n {\n $url = self::HTTPS_SEARCH_BIG_REGISTER_NL_API . 'criteria?';\n\n foreach ($array as $key => $value) {\n $url .= $key . '=' . $value . '&';\n }\n\n $this->curlExecute($url);\n }", "title": "" }, { "docid": "b36c3234b9662e82fab83065658f442f", "score": "0.51120585", "text": "public function updateMatches() {\n\n\t\t$sets = $this->import_product->getFieldSets();\n\t\t\n\t\tforeach ($sets as $sk => $sv) {\n\n\t\t\tif (empty($sv)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t$fields = $this->input->post[$sk];\n\t\t\t\n\t\t\tforeach ($sv as $f_idx => $f_data) {\n\t\t\t\n\t\t\t\tif ($sk == 'filter_groups') {\n\t\t\t\t\t$f_key = $f_data['filter_group_id'];\n\t\t\t\t\t\n\t\t\t\t} elseif ($sk == 'attributes') {\n\t\t\t\t\t$f_key = $f_data['attribute_id'];\n\t\t\t\t\t\n\t\t\t\t} elseif ($sk == 'options') {\n\t\t\t\t\t$f_key = $f_data['option_id'];\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$f_key = (isset($f_data['field']) ? $f_data['field']:$f_idx);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isset($fields[$f_key])) {\n\t\t\t\t\tif ($fields[$f_key] > 0) {\n\t\t\t\t\t\t$matches[$sk][$f_key] = $this->params['columns'][$fields[$f_key]-1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$matches[$sk][$f_key] = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$matches['required_options'] = (isset($this->request->post['required_options'])) ? $this->request->post['required_options'] : array();\n\t\t\n\t\t$this->params['matches'] = $matches;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f6791a17847202f517648a1bfdfa5ba3", "score": "0.50919735", "text": "public function findWhere(array $criteria);", "title": "" }, { "docid": "ac4017f572b6a738c4e0f59ea541ff64", "score": "0.50907284", "text": "public function multiMatch() :MultiMatch\n {\n return new MultiMatch();\n }", "title": "" }, { "docid": "a5efbc18d8646797fb084844fdf200ed", "score": "0.5090669", "text": "public function setFieldsToMatch(...$fieldsToMatch) {\r\n\t\t$this->fieldsToMatch = implode(', ', $fieldsToMatch);\r\n\t}", "title": "" }, { "docid": "dca290e2c5253fa54c70bb2d90c439f5", "score": "0.50831246", "text": "public function common_match( $args = array() )\n\t{\n\t\t$args = PSU::params($args, array(\n\t\t\t'rule' => 'GENERAL_PERSON'\n\t\t));\n\n\t\t$sql = array(\"p_entity_cde=>'P'\");\n\n\t\t$rule = $args['rule'];\n\t\tunset($args['rule']);\n\n\t\t$rule = strtoupper($rule);\n\t\tif( ! preg_match('/^[A-Z_]+$/', $rule) ) {\n\t\t\t\tthrow new Exception('That rule name is rediculous.'); // [sic]\n\t\t}\n\n\t\tforeach($args as $key => $arg) {\n\t\t\t$key = strtolower($key);\n\n\t\t\tif( ! preg_match('/^[a-z_]+$/', $key) ) {\n\t\t\t\tthrow new Exception('Bad key name in ' . __FUNCTION__);\n\t\t\t}\n\n\t\t\tif( $key == 'first_name' || $key == 'last_name' ) {\n\t\t\t\t$arg = strtoupper($arg);\n\t\t\t}\n\t\t\t\n\t\t\t$sql[] = \"p_\" . $key . \"=>\" . PSU::db('banner')->qstr($arg);\n\t\t}\n\n\t\tPSU::db('banner')->debug = true;\n\n\t\t$sql = implode(', ', $sql);\n\t\t$sql = \"BEGIN gp_common_matching.p_insert_gotcmme($sql); END;\";\n\n\t\t$stmt = PSU::db('banner')->PrepareSP($sql);\n\n\t\t//foreach($args as $key => $arg) {\n\t\t//\tif( $key == 'first_name' || $key == 'last_name' ) {\n\t\t//\t\t$arg = strtoupper($arg);\n\t\t//\t}\n\t\t//\tPSU::db('banner')->InParameter($stmt, $arg, $key);\n\t\t//}\n\n\t\tPSU::db('banner')->Execute($stmt);\n\n\t\t//\n\t\t// get the result of the match\n\t\t//\n\n\t\t$match = array();\n\t\t$sql = \"BEGIN gp_common_matching.p_common_matching(:rule, :flag, :pidm); END;\";\n\t\t$stmt = PSU::db('banner')->PrepareSP($sql);\n\n\t\tPSU::db('banner')->InParameter($stmt, $rule, 'rule');\n\t\tPSU::db('banner')->OutParameter($stmt, $match['flag'], 'flag');\n\t\tPSU::db('banner')->OutParameter($stmt, $match['pidm'], 'pidm');\n\t\tPSU::db('banner')->Execute($stmt);\n\n\t\t$match['matches'] = PSU::db('banner')->GetAll('SELECT * FROM gotcmme');\n\n\t\treturn $match;\n\t}", "title": "" }, { "docid": "ca67d940b1fbc2c3c4792ecaef63ef62", "score": "0.50707465", "text": "function checkCriteria(&$criteria, &$input) {\n\n $partial_regex_result = [];\n // Undefine criteria field : set to blank\n if (!isset($input[$criteria->fields[\"criteria\"]])) {\n $input[$criteria->fields[\"criteria\"]] = '';\n }\n\n //If the value is not an array\n if (!is_array($input[$criteria->fields[\"criteria\"]])) {\n $value = $this->getCriteriaValue($criteria->fields[\"criteria\"],\n $criteria->fields[\"condition\"],\n $input[$criteria->fields[\"criteria\"]]);\n\n $res = RuleCriteria::match($criteria, $value, $this->criterias_results,\n $partial_regex_result);\n } else {\n\n //If the value is, in fact, an array of values\n // Negative condition : Need to match all condition (never be)\n if (in_array($criteria->fields[\"condition\"], [self::PATTERN_IS_NOT,\n self::PATTERN_NOT_CONTAIN,\n self::REGEX_NOT_MATCH,\n self::PATTERN_DOES_NOT_EXISTS])) {\n $res = true;\n foreach ($input[$criteria->fields[\"criteria\"]] as $tmp) {\n $value = $this->getCriteriaValue($criteria->fields[\"criteria\"],\n $criteria->fields[\"condition\"], $tmp);\n\n $res &= RuleCriteria::match($criteria, $value, $this->criterias_results,\n $partial_regex_result);\n if (!$res) {\n break;\n }\n }\n\n } else {\n // Positive condition : Need to match one\n $res = false;\n foreach ($input[$criteria->fields[\"criteria\"]] as $crit) {\n $value = $this->getCriteriaValue($criteria->fields[\"criteria\"],\n $criteria->fields[\"condition\"], $crit);\n\n $res |= RuleCriteria::match($criteria, $value, $this->criterias_results,\n $partial_regex_result);\n }\n }\n }\n\n // Found regex on this criteria\n if (count($partial_regex_result)) {\n // No regex existing : put found\n if (!count($this->regex_results)) {\n $this->regex_results = $partial_regex_result;\n\n } else { // Already existing regex : append found values\n $temp_result = [];\n foreach ($partial_regex_result as $new) {\n\n foreach ($this->regex_results as $old) {\n $temp_result[] = array_merge($old, $new);\n }\n }\n $this->regex_results = $temp_result;\n }\n }\n\n return $res;\n }", "title": "" }, { "docid": "deee6ebcaf4e2fb5ad0a69731fb84edb", "score": "0.5067311", "text": "public function applySearch();", "title": "" }, { "docid": "46e454674876ea9c3ce5a743845a65ce", "score": "0.506432", "text": "static function find_all($collection, $predicate){\n\t\t$found = [];\n\t\tif(is_object($predicate) && ($predicate instanceof Closure)){\n\t\t\tforeach($collection as $item){\n\t\t\t\tif($predicate($item)){\n\t\t\t\t\t$found[] = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tif(is_array($predicate)){\n\t\t\t\tforeach($collection as $item){\n\t\t\t\t\tforeach($predicate as $k_match => $v_match){\n\t\t\t\t\t\tif(!array_key_exists($k_match, $item) || $item[$k_match] != $v_match){\n\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$found[] = $item;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tforeach($collection as $item){\n\t\t\t\t\tif(array_key_exists($predicate, $item)){\n\t\t\t\t\t\t$found[] = $item;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $found;\n\t}", "title": "" }, { "docid": "4855ca15793095146d640c3d18dd3aeb", "score": "0.50627285", "text": "static function is_match($items);", "title": "" }, { "docid": "e0cf149c1f3a543322a5ac55d746420d", "score": "0.5047168", "text": "abstract public function getFieldsSearchable();", "title": "" }, { "docid": "867d950db038c768bb32b8090a697467", "score": "0.50377417", "text": "public function searchByFieldsAndAnyModel() {\n $this -> viewClass = 'Json';\n $res = array();\n $data = $this -> request -> data;\n if (isset($data['fields_in'], $data['value'], $data['model'], $data['fields_out'])) {\n\n if ($this -> Check -> isset_model($data['model'])) {\n try {\n $this -> loadModel($data['model']);\n $fields = explode(GLUE, $data['fields_out']);\n $fields_condtions = explode(GLUE, $data['fields_in']);\n $conditions = $this -> Common -> mapTwoArray($data['value'], $fields_condtions);\n if (array_key_exists('del_flag', $this -> $data['model'] -> getColumnTypes())) {\n $conditions[$data['model'] . '.del_flag'] = FALSE;\n }\n $data_find[] = $this -> $data['model'] -> find('first', array('conditions' => $conditions, 'fields' => $fields, 'recursive' => -1));\n if ($this -> Check -> is_multiArrayEmpty($data_find)) {\n $res['status'] = STS_EMPTY;\n } else {\n $res['status'] = STS_SUCCESS;\n $res['data_res'] = $data_find;\n }\n } catch(Exception $e) {\n echo 'Exception: ', $e -> getMessage(), \"\\n\";\n $this -> log('Exception: ' . $e -> getMessage(), LOG_ERROR);\n }\n } else {\n $res['status'] = STS_ERROR_AUTH;\n }\n } else {\n $res['status'] = STS_ERROR_MISSINGDATA;\n }\n $this -> set(compact('res'));\n $this -> set('_serialize', array('res'));\n }", "title": "" }, { "docid": "2b51c445dd0a39768744d036f718334c", "score": "0.5032426", "text": "public function get_many_by() {\n $where = func_get_args();\n $this->_set_where($where);\n return $this->get_all();\n }", "title": "" }, { "docid": "f5cac3d84d9e7e944232b3ba8d361b97", "score": "0.5025985", "text": "public function find();", "title": "" }, { "docid": "329ff533d317090245fc7ec78aa2ea61", "score": "0.50216436", "text": "public function find_where($field_name, $value = null)\n\t{\n\t\t$result_array = array();\n\t\t\n\t\t$this->db->select('x.*');\n\t\t\n\t\tif (is_array($field_name))\n\t\t{\n\t\t\t$loop = $field_name;\n\t\t}\n\t\telseif ( ! is_null($value))\n\t\t{\n\t\t\t$loop[$field_name] = $value;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('Error in method: find_where. Either pass an array of fields => values OR pass two args[0] = field_name, args[1] = value', 500);\n\t\t}\n\t\t\n\t\tforeach ($loop as $f => $v)\n\t\t{\n\t\t\tif (array_key_exists($f, $this->fields)) {\n\t\t\t\tif (is_array($v)) {\n\t\t\t\t\t$this->db->where_in($f, $v); }\n\t\t\t\telse {\n\t\t\t\t\t$this->db->where($f, $v); } }\n\t\t}\n\t\t\n\t\t$this->db->from($this->db_table.' x');\n\t\t\n\t\t$query = $this->db->get();\n\t\t\n\t\tif ($query->num_rows() === 0) { return $result_array; }\n\t\t\n\t\tforeach ($query->result() as $row)\n\t\t{\n\t\t\t$class = get_called_class();\n\t\t\t$object = new $class;\n\t\t\t$object->populate($row);\n\t\t\t$result_array[] = $object;\n\t\t}\n\t\t\n\t\treturn $result_array;\n\t}", "title": "" }, { "docid": "9f394e67ca10a5ac80fd66c100f19eeb", "score": "0.501956", "text": "public function mapForSearch(): array;", "title": "" }, { "docid": "053e1666aff3a7fbbe7453b1cc3a185b", "score": "0.5009089", "text": "function fieldSearch($clause,$model,$field,$auth_level) {\n\t\t\t$meta = new Meta($model,$field);\n\t\t\tif($auth_level < $meta->get(\"searchable\")) {\n\t\t\t\treturn false; // authorization check\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$object = new $model();\n\t\t\t\t$table = $object->table; // get the table name\n\t\t\t\t$query = \"SELECT id,name,$field FROM $table WHERE $field $clause LIMIT 10\";\n\t\t\t\t$result = $this->db->queryAssoc($query);\n\t\t\t\t// now convert into nice objects with summaries\n\t\t\t\tforeach($result as $key=>$value) {\n\t\t\t\t\t$result[$key] = new $model($value[\"id\"]);\n\t\t\t\t}\n\t\t\t\treturn $result;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5007769", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5007769", "text": "public function search();", "title": "" }, { "docid": "f7bc5931c792371a34a843de32e1597f", "score": "0.49939105", "text": "public function search(array $criteria)\n {\n \n $qb = $this->createQueryBuilder('p');\n $expr = $qb->expr();\n\n return $qb->where($expr->like('p.label', $expr->literal('%'.$criteria['term'].'%')))\n ->getQuery()\n ->getResult();\n }", "title": "" }, { "docid": "bdd1b507e763d28135c8965f4969c5ac", "score": "0.499319", "text": "public function getMatches() {\n\t\t$query = \"SELECT * FROM matches WHERE matches.deleted != true\";\n\t\t$rows = $this -> doMultiSelect($query);\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "1f414fbb71f480c636f81f9a921545ce", "score": "0.49868542", "text": "public function matching(Specification $specification): Set;", "title": "" }, { "docid": "1b9ed57c0b223c6d71cb1f6c9635b011", "score": "0.49827248", "text": "function searchPosts($term)\n{\n\n $match = '%' . $term . '%';\n global $conn;\n $sql = \"SELECT \n p.*\n FROM posts as p\n JOIN users as u\n ON p.user_id = u.id\n WHERE p.published=?\n AND p.title LIKE ?\n OR p.body LIKE ?\n \";\n\n $stmt = executeQuery($sql, ['published' =>1, 'title' => $match, 'body' => $match]);\n $records = $stmt->get_result()->fetch_all(MYSQLI_ASSOC);\n return $records;\n\n}", "title": "" }, { "docid": "4b95fd9486e10eef3a886d28cfb11256", "score": "0.4976488", "text": "function searchSomeGroupsByStatus($n, $m, $search, $status) {\n// parentheses not needed in where clause, for clarity as\n// role search should override status filter.\n $q = prepareQuery(\"\n SELECT\n `groupID`,\n `name`,\n `status`,\n `description`\n FROM\n `group_page`\n WHERE\n (`name` LIKE :keyword AND\n FIND_IN_SET (`status`, :statuses)) OR \n `status` = :search\n ORDER BY\n `name`\n LIMIT\n :n, :m\n \");\n\n $keyword = \"%$search%\";\n $q->bindParam(':keyword', $keyword);\n $q->bindParam(':search', $search);\n $q->bindParam(':n', $n, PDO::PARAM_INT);\n $q->bindParam(':m', $m, PDO::PARAM_INT);\n $statuses = implode(',', $status);\n $q->bindParam(':statuses', $statuses);\n $q->execute();\n return $q;\n}", "title": "" }, { "docid": "1469caa083471dbf3d5de7d257223599", "score": "0.497428", "text": "public function getCriteria();", "title": "" }, { "docid": "c0a38860df65503d5dacfeb0d54ce202", "score": "0.49728817", "text": "private static function fullFind(array $params) {\n $filtered = filter(Company::TABLE_FIELDS, $params);\n // query builder must be included in another file\n $qb = QueryBuilder::select(Company::TABLE_NAME, Company::TABLE_FIELDS);\n $first = true;\n foreach ($filtered as $field => $value) {\n if ($first) {\n $qb->where(Company::TABLE_NAME.\".{$field} = \\\"{$value}\\\"\");\n $first = false;\n } else {\n $qb->and(Company::TABLE_NAME.\".{$field} = \\\"{$value}\\\"\");\n }\n }\n\n return $qb->execute();\n }", "title": "" }, { "docid": "51d628060466502972b26dffff4fc60a", "score": "0.49561533", "text": "public function searchByFieldsAndModel() {\n $this -> viewClass = 'Json';\n $res = array();\n $data = $this -> request -> data;\n if (isset($data['fields_in'], $data['value'], $data['model'], $data['fields_out'])) {\n\n if ($this -> Check -> isset_model($data['model'])) {\n try {\n $this -> loadModel($data['model']);\n $fields = $this -> Common -> addModeltoFileds($data['model'], $data['fields_out']);\n $fields_condtions = $this -> Common -> addModeltoFileds($data['model'], $data['fields_in']);\n $conditions = $this -> Common -> mapTwoArray($data['value'], $fields_condtions);\n if (array_key_exists('del_flag', $this -> $data['model'] -> getColumnTypes())) {\n $conditions[$data['model'] . '.del_flag'] = FALSE;\n }\n $data_find[] = $this -> $data['model'] -> find('first', array('conditions' => $conditions, 'fields' => $fields, 'recursive' => -1));\n if ($this -> Check -> is_multiArrayEmpty($data_find)) {\n $res['status'] = STS_EMPTY;\n } else {\n $res['status'] = STS_SUCCESS;\n $res['data_res'] = $data_find;\n }\n } catch(Exception $e) {\n echo 'Exception: ', $e -> getMessage(), \"\\n\";\n $this -> log('Exception: ' . $e -> getMessage(), LOG_ERROR);\n }\n } else {\n $res['status'] = STS_ERROR_AUTH;\n }\n } else {\n $res['status'] = STS_ERROR_MISSINGDATA;\n }\n $this -> set(compact('res'));\n $this -> set('_serialize', array('res'));\n }", "title": "" }, { "docid": "8abacdfdd2f30b4e7a1fd4dcb5cd42c3", "score": "0.49516937", "text": "function findTuplesMatchingAllPatterns(&$memModel) {\r\n\r\n $resultSet = $this->findTuplesMatchingOnePattern($memModel, $this->parsedQuery['patterns'][0]);\r\n for ($i=1; $i<count($this->parsedQuery['patterns']); $i++) {\r\n $rs = $this->findTuplesMatchingOnePattern($memModel, $this->parsedQuery['patterns'][$i]);\r\n $resultSet = $this->joinTuples($resultSet, $rs);\r\n }\r\n return $resultSet;\r\n }", "title": "" }, { "docid": "054101b2c1e853a29515539d1c9127fa", "score": "0.49425346", "text": "function search_advanced_get_where_sql($table, $fields, $params, $use_fulltext = TRUE) {\n\t$query = elgg_extract(\"query\", $params, \"\");\n\tif (empty($query)) {\n\t\treturn \"\";\n\t}\n\t\n\t$query_array = explode(\" \", $query);\n\t\n\tif (count($query_array) > 1) {\n\t\t$multi_query = array();\n\t\tforeach ($query_array as $value) {\n\t\t\t$temp_field = trim($value);\n\t\t\tif (!empty($temp_field)) {\n\t\t\t\t$multi_query[] = $temp_field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (count($multi_query) > 1) {\n\t\t\t$query = $multi_query;\n\t\t}\n\t}\n\t\n\t// add the table prefix to the fields\n\tif ($table) {\n\t\tforeach ($fields as $i => $field) {\n\t\t\t$fields[$i] = \"$table.$field\";\n\t\t}\n\t}\n\t\n\tif (!is_array($query)) {\n\t\t$query = array($query);\n\t}\n\n\t$likes = array();\n\tforeach ($fields as $field) {\n\t\t$field_likes = array();\n\t\tforeach ($query as $query_part) {\n\t\t\t$query_part = sanitise_string($query_part);\n\t\t\n\t\t\t$field_likes[] = \"$field LIKE '%$query_part%'\";\n\t\t}\n\t\t$likes[] = \"(\" . implode(' AND ', $field_likes) . \")\";\n\t}\n\t$likes_str = implode(' OR ', $likes);\n\t$where = \"($likes_str)\";\n\n\treturn $where;\n}", "title": "" }, { "docid": "5917465aa44171046e9229ef30ecbdc1", "score": "0.49404708", "text": "public function search(array $parameters);", "title": "" }, { "docid": "efbd96e64cdb82293c3fc44ca6e5fbc9", "score": "0.49376395", "text": "function findTuplesMatchingOnePattern(&$memModel, &$pattern) {\r\n\r\n $resultSet = array();\r\n $i = 0;\r\n // parameters to be passed to the method findTriplesMatchingPattern\r\n foreach ($pattern as $key => $v) { \r\n if ($v['value'] && $v['value']{0} == '?') {\r\n if ($key == 'object') {\r\n $param['object']['is_a'] = 'ANY';\r\n $param['object']['string'] = 'ANY';\r\n $param['object']['lang'] = NULL;\r\n $param['object']['dtype'] = NULL;\r\n } else \t\r\n \t\t$param[$key] = 'ANY';\r\n $var[$i]['key'] = $key;\r\n $var[$i++]['val'] = $v['value'];\r\n }else\r\n if (isset($v['is_literal'])) {\r\n $param[$key]['is_a'] = 'Literal';\r\n $param[$key]['string'] = $v['value'];\r\n $param[$key]['lang'] = $v['l_lang'];\r\n $param[$key]['dtype'] = $v['l_dtype'];\r\n }else{\r\n if ($key == 'object') {\r\n $param[$key]['is_a'] = 'Resource';\r\n $param[$key]['string'] = $v['value'];\r\n $param[$key]['lang'] = NULL;\r\n $param[$key]['dtype'] = NULL;\r\n }else\r\n $param[$key] = $v['value'];\r\n }\r\n }\r\n \r\n // find pattern internal bindings e.g. (?x, ?z, ?x)\r\n $intBindings = NULL;\r\n for ($i=0; $i<count($var); $i++)\r\n foreach($var as $n => $v)\r\n if ($i != $n && $var[$i]['val'] == $v['val'])\r\n $intBindings[] = $var[$i]['key'];\r\n\r\n // find triples of the $memModel matching $pattern\r\n $resModel = $this->findTriplesMatchingPattern($memModel, $param['subject'],\r\n $param['predicate'],\r\n $param['object']['is_a'],\r\n $param['object']['string'],\r\n $param['object']['lang'],\r\n $param['object']['dtype'],\r\n $intBindings);\r\n\r\n // set values of the pattern variables to be returned\r\n if ($pattern['subject']['value']{0} == '?') {\r\n $n = 0;\r\n foreach ($resModel->triples as $triple)\r\n $resultSet[$n++][$pattern['subject']['value']] = $triple->subj;\r\n }\r\n if ($pattern['predicate']['value']{0} == '?') {\r\n $n = 0;\r\n foreach ($resModel->triples as $triple)\r\n $resultSet[$n++][$pattern['predicate']['value']] = $triple->pred;\r\n }\r\n if ($pattern['object']['value'] && $pattern['object']['value']{0} == '?') {\r\n $n = 0;\r\n foreach ($resModel->triples as $triple)\r\n $resultSet[$n++][$pattern['object']['value']] = $triple->obj;\r\n }\r\n return $resultSet;\r\n }", "title": "" }, { "docid": "a81db02954bedd8c2e816a00face5a09", "score": "0.49310806", "text": "public function queryProcessor($listofitems){\n $counter_string = array();\n for($x = 0; $x < sizeof($listofitems); $x++){\n if(in_array($listofitems[$x], array(\"Gender\",\"Breed\",\"Type\",NULL,'selectone'))){\n \n \n } else {\n switch($x){\n case 0:\n array_push($counter_string,\"a.name LIKE '%\".$listofitems[$x].\"%'\");\n //$counter_string = $counter_string.\" a.name LIKE '%\".$listofitems[$x].\"%' AND \";\n break;\n \n case 1:\n array_push($counter_string, \"a.gender ='\".$listofitems[$x].\"'\");\n //$counter_string = $counter_string.\" a.gender ='\".$listofitems[$x].\"' AND \";\n break;\n \n case 2:\n array_push($counter_string, \"a.breed ='\".$listofitems[$x].\"'\");\n //$counter_string = $counter_string.\" a.breed ='\".$listofitems[$x].\"' AND \";\n break;\n\n case 3:\n array_push($counter_string, \"j.type ='\".$listofitems[$x].\"'\");\n //$counter_string = $counter_string.\" j.type ='\".$listofitems[$x].\"' \";\n break;\n }\n } \n }\n $final_condition = \"\";\n for($y = 0; $y < sizeof($counter_string); $y++){\n if($y == 0 && sizeof($counter_string)!=1){\n $final_condition = $final_condition.$counter_string[$y].\" AND \";\n } else {\n if($y == 0 && sizeof($counter_string)==1){\n $final_condition = $final_condition.$counter_string[$y];\n } else {\n if($y == sizeof($counter_string)-1){\n $final_condition = $final_condition.$counter_string[$y];\n } else {\n $final_condition = $final_condition.$counter_string[$y].\" AND \";\n }\n }\n } \n }\n return $final_condition; \n}", "title": "" }, { "docid": "b79180c6637d75f977ff1dd3251cce5b", "score": "0.493107", "text": "function find_many($class, $uri, array $criteria=array(), array $query_params=array()) {\n if(count($criteria)) {\n if(array_key_exists('filter', $query_params))\n $this->logger->warn('`filter` and `criteria` strategies are mutually exclusive');\n\n $query_params['criteria'] = $this->marshal($criteria);\n }\n\n $results = $this->response_body($this->http_get($uri, $query_params));\n\n foreach($results as $i => $result)\n $result[$i] = new $class($result);\n\n return $results;\n }", "title": "" }, { "docid": "a6310a8f0fcfe108e45a88de4d5c8a4d", "score": "0.4929046", "text": "function calc_match($user,$set,$extra=2) {\n $results = array();\n foreach ($set as $s) {\n $sum = 0;\n $count = 0;\n if (count($user['vote']) > 0) {\n foreach($user['vote'] as $key => $uv) {\n //weight\n if (isset($user['weight'][$key])) $w = $extra;\n else $w = 1;\n //existing divisions only:\n if ((property_exists($s,'vote')) and (property_exists($s->vote,$key))) {\n $sum = $sum + $w*$s->vote->$key*$uv;\n $count = $count + $w;\n }\n }\n }\n if ($count == 0) $count = 1; // to allow match = 0/1 = 0;\n $results[] = array(\n 'name' => $s->name,\n \t 'short_name' => $s->short_name,\n \t 'friendly_name' => $s->friendly_name,\n \t 'result' => $sum/$count,\n \t 'result_percent' => round(100*$sum/$count),\n \t 'id' => $s->id\n );\n }\n //sort by result\n foreach ($results as $key => $row) {\n $result[$key] = $row['result'];\n }\n array_multisort($result, SORT_DESC, $results);\n \n return $results;\n}", "title": "" }, { "docid": "d254717b6761cbb90902beb87c886768", "score": "0.49211177", "text": "public function create_conditions_by_keyword($keyword = '', $model_name = '', $fields = array())\n \t{\n \t\tif(count($fields) == 1)\n\t\t\t{\n\t\t\t\t$keyword_conditions = \"{$model_name}.{$fields[0]} LIKE '%$keyword%'\";\n\t\t\t} else\n\t\t\t{\n\t\t\t\tforeach($fields as $field)\n\t\t\t\t{\n\t\t\t\t\t$keyword_conditions['OR'][] = \"{$model_name}.{$field} LIKE '%$keyword%'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $keyword_conditions;\n\t }", "title": "" }, { "docid": "1f42b92241a5515f09b339645d9ccc72", "score": "0.49205646", "text": "protected function findMatch(array $values, array &$context) {\n /** @var \\Drupal\\Core\\Entity\\Query\\QueryInterface $query */\n $query = $this->userStorage->getQuery($this->context['conjunction'])\n ->addTag('decoupled_auth_acquisition')\n ->addMetaData('values', $values)\n ->addMetaData('context', $this->context);\n if ($context['name']) {\n $query->addTag('decoupled_auth_acquisition__' . $context['name']);\n }\n\n // Add our conditions to the query.\n foreach ($values as $key => $value) {\n // Don't do anything if the value is NULL so that we can skip the default\n // status filter.\n if ($value === NULL) {\n continue;\n }\n // 'decoupled' is a special column.\n // @todo: Switch this to a field so it can be queried generally.\n elseif ($key == 'decoupled') {\n if ($value) {\n $query->notExists('name');\n }\n else {\n $query->exists('name');\n }\n }\n else {\n $query->condition($key, $value);\n }\n }\n\n // If we have the prefer coupled behaviour, ensure only coupled users are\n // included.\n if ($context['behavior'] & self::BEHAVIOR_PREFER_COUPLED) {\n $query->exists('name');\n }\n\n // If we have the don't have the include protected roles behaviour, ensure\n // protected roles are excluded.\n if (!($context['behavior'] & self::BEHAVIOR_INCLUDE_PROTECTED_ROLES)) {\n $protected_roles = $this->settings->get('acquisitions.protected_roles');\n // Must have at least one protected role.\n if (!empty($protected_roles)) {\n $or = $query->orConditionGroup();\n $or->condition('roles', $protected_roles, 'NOT IN');\n $or->notExists('roles');\n $query->condition($or);\n }\n }\n\n // If we are set to take the first, we don't need to return more than one.\n // Otherwise return 2 matches so we can ignore multiple matches.\n $limit = $context['behavior'] & self::BEHAVIOR_FIRST ? 1 : 2;\n $query->range(0, $limit);\n\n // Get the resulting IDs.\n $uids = $query->execute();\n\n // If we got a single match we can return a party..\n if (count($uids) == 1) {\n return $this->userStorage->load(reset($uids));\n }\n\n // Store something helpful in $this->context.\n $this->failCode = count($uids) ? self::FAIL_MULTIPLE_MATCHES : self::FAIL_NO_MATCHES;\n\n // Otherwise we have nothing to return.\n return NULL;\n }", "title": "" }, { "docid": "b58294175e8b1e7161c614ae6fb0d7b1", "score": "0.49193716", "text": "public function find_all_by($field = NULL, $value = NULL, $type = 'and', $return_type = 0) {\n if (empty($field))\n return FALSE;\n\n // Setup our field/value check\n if (is_array($field)) {\n foreach ($field as $key => $value) {\n if ($type == 'or') {\n $this->db->or_where($key, $value);\n } else {\n $this->db->where($key, $value);\n }\n }\n } else {\n $this->db->where($field, $value);\n }\n\n $this->set_selects();\n\n return $this->get_all($return_type);\n }", "title": "" }, { "docid": "9e462ed5e56a026f5316f5f163650807", "score": "0.4914077", "text": "public function find_many() {\n $rows = $this->_run();\n\n if ( $rows === false ) {\n return [];\n }\n\n\t\treturn \\array_map( [ $this, '_create_instance_from_row' ], $rows );\n\t}", "title": "" }, { "docid": "99465fcc1d14de8f5c710e19726fff24", "score": "0.4905669", "text": "public function fetchSearchResults($input) {\n \n $inputArray = explode(\" \", $input);\n\n // these settings are for the custom LengthAwarePaginator\n $currentPage = LengthAwarePaginator::resolveCurrentPage();\n $perPage = 30;\n\n $results = [];\n $pinyinResults = [];\n $translationResults = [];\n $actualResults = [];\n\n // Actual results, items that match exactly\n foreach ($inputArray as $inputItem) {\n\n $actualResults = \\App\\Character::where('char', $inputItem)\n ->orWhere('pinyin', $inputItem)\n ->orWhere('radical', $inputItem)\n ->orWhere('pinyin_normalised', $inputItem)->orderBy('freq', 'asc')->get();\n\n // for each result in the above collections, add to results array\n\n foreach($actualResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n\n // pinyin and char results using \"like\" operator\n foreach ($inputArray as $inputItem) {\n \n $pinyinResults = \\App\\Character::where('char', 'like', '%' . $inputItem .'%')\n ->orWhere('pinyin', 'like', '%' . $inputItem .'%')\n ->orWhere('radical', 'like', '%' . $inputItem .'%')\n ->orWhere('pinyin_normalised', 'like', '%' . $inputItem .'%')->orderBy('freq', 'asc')->get();\n\n // for each result in the above collections, add to results array\n\n foreach($pinyinResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n\n // translation and heisig results using \"like\" operator\n foreach ($inputArray as $inputItem) {\n\n $translationResults = \\App\\Character::where('heisig_keyword', 'like', '%' . $inputItem .'%')\n ->orWhere('translations', 'like', '%' . $inputItem .'%')\n ->orWhere('heisig_number', 'like', '%' . $inputItem .'%')->get();\n\n // for each result in the above collections, add to results array\n foreach($translationResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n \n // return the results array as a paginatior\n $results = collect($results);\n $results = new LengthAwarePaginator($results->forPage($currentPage, $perPage), $results->count(), $perPage, $currentPage, ['path' => \"/search/$input\"]);\n return $results;\n }", "title": "" }, { "docid": "c3ab9e6ae65548e3e95ad38b8aaf50b9", "score": "0.49036825", "text": "function _prepare_search_conditions($fields,$q,&$conditions,&$bind_ar){\n\t\tif(is_string($fields)){\n\t\t\t$fields = explode(\",\",$fields); // \"id,name\" -> array(\"id\",\"name\")\n\t\t}\n\t\tif(!isset($conditions)){ $conditions = array(); }\n\t\tif(!isset($bind_ar)){ $bind_ar = array(); }\n\n\t\t$q = trim($q);\n\t\tif(!$q){ return; }\n\n\t\t$unaccent_installed = $this->dbmole->selectInt(\"SELECT COUNT(*) FROM pg_extension WHERE extname=:extname\",array(\":extname\" => \"unaccent\"));\n\n\t\t$q = Translate::Lower($q);\n\t\t$fields = \"LOWER(COALESCE(''||\".join(\",'')||' '||COALESCE(''||\",$fields).\",''))\";\n\t\tif($unaccent_installed && Translate::CheckEncoding($q,\"ASCII\")){\n\t\t\t$fields = \"UNACCENT($fields)\";\n\t\t}\n\n\t\t($cond = FullTextSearchQueryLike::GetQuery($fields,$q,$bind_ar)) ||\n\t\t($cond = \"'invalid'='search_query'\"); // it causes that nothing will be found\n\n\t\t$conditions[] = $cond;\n\n\t\treturn $cond;\n\t}", "title": "" }, { "docid": "23f0924bfa5468201263daff80dba174", "score": "0.49012536", "text": "function getMatchesByRound($roundId) {\r\n\t\t$fields = array();\r\n\t\t$options = array();\r\n\t $fields['MATCH.ROUND'][OP_EQ_INT] = $roundId;\r\n\t $fields['MATCH.COMPETITION'][OP_EQ_INT] = $this->uid;\r\n//\t $options['debug'] = 1;\r\n\t\t$service = tx_cfcleaguefe_util_ServiceRegistry::getMatchService();\r\n \t$matches = $service->search($fields, $options);\r\n//t3lib_div::debug($roundId, 'tx_cfcleaguefe_models_competition'); // TODO: Remove me!\r\n \treturn $matches;\r\n }", "title": "" }, { "docid": "712ffcca3cbedfabe279c7e72ed56fd4", "score": "0.48962185", "text": "function textquery($k, $v, $objectlist, $speclist, $photolist) {\n\n // Add the appropriate prefix for each table\n // object is t1, spectra is t2, photometry is t3\n if (in_array ($k, $objectlist)) {\n $k = \"t1.\" . $k;}\n elseif (in_array($k, $speclist)) {\n $k = \"t2.\" . $k;}\n elseif (in_array($k, $photolist)) {\n $k = \"t3.\" . $k;}\n\n \n // Check to see if the value was empty\n if (trim($v) == '') {\n $segment = $k . \" IS NULL AND \";\n } else {\n \n // Break up by commas unless it's a reference field\n if ($k == \"t1.LCReference\" || $k == \"t2.Reference\") {\n // For everything else,\n $segment = \"(\" . $k . \" LIKE '\" . $v . \"') AND \";\n } else {\n\n $segment = \"(\";\n $pieces = explode(',',$v);\n // For each item\n for($i=0;$i<count($pieces);$i++) {\n\t\n\t// Strip off any whitespace between items\n\t$v = trim($pieces[$i]);\n\n\t// If the person has a host name of \"Anon\" instead of \"Anon.\"\n\tif ($k == \"t1.HostName\" && $v == 'Anon' OR $v== 'anon') {\n\t $v = 'Anon.';\n\t}\n\n\t$segment = $segment . \"(\" . $k . \" LIKE '\" . $v . \"') OR \";\n }\n \n // Strip off last 'OR'\n $segment = substr($segment, 0, -4) . \") AND \"; \n }\n }\n\n return($segment);\n}", "title": "" }, { "docid": "44317604766978e440720c7db7b09ee3", "score": "0.48944154", "text": "public function getMatches() {\n\t\treturn Match::find()->joinWith('registrations')->where(['competition_id' => $this->id]);\n\t}", "title": "" }, { "docid": "9c3d9057ea953a7d841812be974bd19f", "score": "0.48935303", "text": "function conditions_match( $context_rule ) {\r\n foreach ( $this->meta_boxes['conditions']->get_fields_flat() as $name => $field_def ) {\r\n $match = eval( 'return ' . get_post_meta( $context_rule->ID, $name, true ) . ';' );\r\n }\r\n\r\n return $match;\r\n }", "title": "" }, { "docid": "e637b24ac2e0a6de182c76a8deb00f51", "score": "0.4892202", "text": "public function wheres($request, $table, $fieldList) \n {\n //Prepare params\n $this->prepareParams($request);\n\n /*******/\n\n //Set variables\n $where = [];\n\n /*******/\n \n if (!empty($fieldList)) {\n\n foreach ($fieldList as $field) {\n\n if (!empty($this->params[$field['content']]) && $field['detail'] == 'like') {\n \n $where[] = '(' . $table . '.' . $field['content'] . ' LIKE \"%' . $this->params[$field['content']] . '%\")';\n\n } elseif (!empty($this->params[$field['content']]) && $field['detail'] == 'specific') {\n\n $where[] = '(' . $table . '.' . $field['content'] . ' = \"' . $this->params[$field['content']] . '\")';\n\n }//elseif ($field['detail'] == 'specific')\n \n }//foreach ($fieldList as $field)\n\n }//if (!empty($fieldList))\n\n /*******/\n \n return $where;\n }", "title": "" }, { "docid": "0bdb72e763d0f5f2f790fbe74d6ef6f8", "score": "0.48903686", "text": "function find(array $ids);", "title": "" }, { "docid": "6d268ca52fbbf37cccb51f832c5d470b", "score": "0.48901874", "text": "abstract public function getCriteria();", "title": "" }, { "docid": "059a7c48a167dfade7fd61789c3f7773", "score": "0.48899516", "text": "public function getMatch():array\n {\n $stmt = self::connectToDb()->prepare('SELECT * FROM matches WHERE id = :id ');\n $stmt->bindParam(':id',$this->id);\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "bae237e8c025cdb20716092d50780927", "score": "0.48775896", "text": "public function getDataRelasiMultiBy($table1,$table2,$where1,$where2,$field,$id)\n\t{\n\t\tfor($i=0; $i < count($id); $i++)\n\t\t{\n\t\t\t$sql =\"select * from \".$table1.\",\".$table2.\" where \".$where1.\"=\".$where2.\" and \". $field . \"=\" . $id[$i] ;\n\t\t\treturn $this->db->query($sql)->result();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "af7ac6a1ad060b5e90f80de901afbd69", "score": "0.48642537", "text": "public function search ($term) {\n\t\t$term = '%' . strtolower($term) . '%';\n\t\t$matches = array(\"Collections\" => array(), \"Participations\" => array());\n\t\t$matched_ids = $this->find('list', array(\"contain\" => false, \"conditions\" => array(\"or\" => array(\"LOWER(Collection.name) LIKE\" => $term, \"LOWER(Collection.description) LIKE\" => $term))));\n\t\t\n\t\tforeach ($matched_ids as $key => $name) {\n\t\t\t$matches[$key] = $this->getByID($key);\n\t\t}\n\n\t\treturn $matches;\n\t}", "title": "" }, { "docid": "a24f7da7433ce7fdb24865ab5393cff1", "score": "0.48548028", "text": "public function match(CriteriaInterface $criteria);", "title": "" }, { "docid": "67118f43bc09bc83695dbbc844edfac9", "score": "0.48536664", "text": "function FullSearch($val){\n\t\t\n\t\t$sql = \"SELECT PGID, PGName, PGUrl, PGImgUrl FROM SearchPG WHERE PGName LIKE :post OR PGKeywords LIKE :post\";\n\t\t$query =$this->PDOConnect->prepare($sql);\n\t\t$query->execute(array('post'=>$val));\n\t\t$searchResult = $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t$this->CompileResults($searchResult);\n\t}", "title": "" }, { "docid": "ae22c21b1d6e8b32a13488a4543d4242", "score": "0.48482987", "text": "function find($field, $value);", "title": "" }, { "docid": "27d65c24726808ba2809e31dbcd5a443", "score": "0.48461846", "text": "public function poi_search($conditions=null);", "title": "" }, { "docid": "110d52e741bb57b53c2562448343cd61", "score": "0.48437098", "text": "public function findBy(array $where);", "title": "" }, { "docid": "feb9b52284ec5a4ed610a723ffefe8b4", "score": "0.48392546", "text": "public function search($parameters = array());", "title": "" } ]
e84e40133fd46a45e64c719a5bb708a2
AirShr Connect OnAir Page
[ { "docid": "470f006467e21fdfbf25ddaca8869c15", "score": "0.71933526", "text": "public function onAir() {\n\n\t\tif (\\Auth::User()->isInvestor()) {\n\t\t\tdie(\"Not authorized.\");\n\t\t\texit();\n\t\t}\n\t\t\n\t\treturn view('airshrconnect.onair')\n\t\t\t->with('WebSocketURL', \\Config::get('app.WebSocketURL'))\n\t\t\t->with('content_type_list', ContentType::$CONTENT_TYPES)\n\t\t\t->with('talkbreak_autocomplete_list', ConnectContent::GetTalkBreakAutoCompleteList(\\Auth::User()->station->id))\n\t\t\t->with('client_trading_name_list', \\Auth::User()->station->contentClientTradingNameArray());\n\n\t}", "title": "" } ]
[ { "docid": "d9a76e3423dacd8ad10248a64a66ed34", "score": "0.62082905", "text": "public function actionOpenErpConnection(){\r\n \r\n return $this->render('open_erp_connection',[]);\r\n }", "title": "" }, { "docid": "ec9306ff23eebaa741a0d57b5fcdcb0b", "score": "0.6178797", "text": "function PinWeb()\n {\n $app = $this->TzParam();\n $app = $app->get('tz_pin_approve');\n $red = JFactory::getApplication();\n $id_pins = $this->model->InsertPinHost();\n if ($app == 1 and ($id_pins or $id_pins != \"not_image\")) {\n $url = JRoute::_(TZ_PinboardHelperRoute::getPinboardDetailRoute($id_pins));\n $message_a = JText::_('COM_TZ_PINBOARD_ERRO_DETAIL');\n } else {\n $url = JUri::current();\n $message_a = JText::_('COM_TZ_PINBOARD_ERRO_DETAIL_APP');\n }\n $error = JText::_(\"COM_TZ_PINBOARD_ERROR_NOT_IMAGE_LABEL\");\n if (!$id_pins or $id_pins == \"not_image\") {\n $red->redirect($url, $error, 'error');\n } else {\n $red->redirect($url, $message_a, 'success');\n }\n\n\n }", "title": "" }, { "docid": "fcff79312c938cea7b1e1ddeaf9c22b6", "score": "0.5811244", "text": "public function connectAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "3a83fb0f383165ac8189388e85204b5e", "score": "0.5679616", "text": "private function show_connect_button() {\n\t\t?>\n\t\t<div class=\"text-center wp-core-ui rank-math-ui\" style=\"margin-top: 30px;\">\n\t\t\t<button type=\"submit\" class=\"button button-primary button-animated\" name=\"rank_math_activate\"><?php echo esc_attr__( 'Connect Your Account', 'rank-math' ); ?></button>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "88b6d8ab24ea35b65835be6ba6107cd2", "score": "0.5679333", "text": "public function headlights_on() {\r\n echo PHP_EOL;\r\n $this->action(\"turning headlights on\");\r\n $this->lights_on = TRUE;\r\n $this->action(\"headlights are on\");\r\n }", "title": "" }, { "docid": "4cbc4ae9317afed281618ebfb446d364", "score": "0.56550795", "text": "public function indexAction() {\n try\n {\n error_reporting(0);\n ini_set('display_errors',0);\n \n $orgData = Mage::getModel('comrsesync/comrseconnect')->load(1);\n $userData = array (\n 'org_id' => $orgData->getOrg(),\n 'api_token' => $orgData->getToken()\n );\n Mage::register('data', $userData); \n $this->loadLayout();\n $this->_title($this->__(\"Comrse Settings\"));\n $this->renderLayout();\n }\n catch (Exception $e)\n {\n Mage::log(\"Comr.se Index Screen: \".$e->getMessage());\n }\n }", "title": "" }, { "docid": "db381dde4a9c8387355530ec9c19486e", "score": "0.56148964", "text": "public function index() {\n\t\t$this->set('titre', __('Connexion', true));\n\t\t$this->set('title_for_layout', __('Connexion', true));\n\t\t//$this -> Session -> write(\"url\", $this->params['url']);\n\t\t$this->_navigation();\n\t}", "title": "" }, { "docid": "4b6cc0ba5c57f06472fcdab78d0c0b8b", "score": "0.55941844", "text": "public function onlineAction() {}", "title": "" }, { "docid": "0d6f7c0ba8e7e44c53ff3c21184b2a81", "score": "0.5588589", "text": "public function connexionAction()\n {\n return $this->render('PPEGSBBundle:Default:ap_connexion.html.twig');\n }", "title": "" }, { "docid": "9b19e29ce843a1d0681124a342574212", "score": "0.55109996", "text": "public function index()\n\t{\n\n\t\t$data['wi'] = $this->Backsep_model->get_wi_picking('');\n\t\t$this->Backsystem_model->checksession();\n\t\t$this->output('',$data);\n\t\t// $this->output('starter_view');\n\t}", "title": "" }, { "docid": "c60c8ac7eedb1bc4c05a9e3651c0ee72", "score": "0.5486846", "text": "public function connect()\r\n\t{\r\n\t\t//$this->link = qracle_connect();\r\n\t}", "title": "" }, { "docid": "9530ac23551b2ee71224444d34c0ca1a", "score": "0.54435813", "text": "public function actionAuthLink() {\n $localAt = gp('localAt');\n if ($localAt) {\n $s = Yii::$app->getSession();\n $s->set('localAt', $localAt);\n $s->set('linkRequestTs', time());\n $direction = ['site/auth'] + ['authclient' => gp('authclient')];\n $this->redirect($direction);\n } else {\n throw new \\yii\\web\\NotFoundHttpException();\n }\n\n }", "title": "" }, { "docid": "01ee97ddb9246db7691506e0bb1a31c0", "score": "0.5441312", "text": "public function check_headlights() {\r\n echo PHP_EOL;\r\n $this->action(\"checking headlights\");\r\n $this->action($this->lights_on ? \"headlights are on\" : \"headlights are off\");\r\n }", "title": "" }, { "docid": "8372240e4eb72c2ab4de471cd30b7fbe", "score": "0.5440054", "text": "function good_login()\n\t{\n\t\tif( $GLOBALS['appshore_data']['api']['nextop'] )\n\t\t\theader('Location: '.$GLOBALS['appshore']->session->baseurl.base64_decode($GLOBALS['appshore_data']['api']['nextop']));\n\t}", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "9c29a7ce6e689ed39631f52f6d99a7d5", "score": "0.5439985", "text": "public function connect();", "title": "" }, { "docid": "eed8208e28c7de90b717a11bb8e8db6a", "score": "0.54355174", "text": "public function connexion()\n {\n require \"app/views/Front/page-inscription.php\";\n }", "title": "" }, { "docid": "949bcc509f7303f8955677aa83e9aca4", "score": "0.54232526", "text": "public function connect_to_site() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9b54d01ead59f163d06c112369059e39", "score": "0.5422628", "text": "public function indexAction() {\n //on Magento\n $params = array(\n 'siteUrl' => 'http://monday.local.com/oauth',\n 'requestTokenUrl' => 'http://monday.local.com/oauth/initiate',\n 'accessTokenUrl' => 'http://monday.local.com/oauth/token',\n 'authorizeUrl' => 'http://monday.local.com/admin/oAuth_authorize', //This URL is used only if we authenticate as Admin user type\n 'consumerKey' => '3917a9e68c8d9b809fcd673d42ebc48e', //Consumer key registered in server administration\n 'consumerSecret' => 'b379a257ad5e3e1bde25a41da76262b5', //Consumer secret registered in server administration\n 'callbackUrl' => 'http://monday.local.com/mackapi/index/callback', //Url of callback action below\n );\n \n \n $oAuthClient = Mage::getModel('mack_api/oauth_client');\n $oAuthClient->reset();\n \n $oAuthClient->init($params);\n $oAuthClient->authenticate();\n \n return;\n }", "title": "" }, { "docid": "03c3c7247428e544354dd495a4df8e5c", "score": "0.53865606", "text": "public function getBridgeUrl()\n {\n return HTTP_SERVER . \"/oscommerceview.php\";\n }", "title": "" }, { "docid": "b99092551535d97979a3a870fa78d4ab", "score": "0.53536904", "text": "function connect();", "title": "" }, { "docid": "abf2358cea22eefc32ca189a02c653d4", "score": "0.5343844", "text": "public function account()\n {\n if (Login::isConnected()) {\n $this->generateView(array());\n } else {\n $this->index();\n }\n\n }", "title": "" }, { "docid": "eb485460aa8b578eeccfbb59b5f07dc2", "score": "0.5331243", "text": "public function getConnectUrl()\n {\n return Mage::helper('adminhtml')->getUrl('adminhtml/shopgate/connect');\n }", "title": "" }, { "docid": "e664d286729cbbae3155e7117dd9a8e8", "score": "0.53241986", "text": "public function connexion() {\n\t\t$vue = new View(\"Connexion\");\n\t\t$vue->generer();\n\t}", "title": "" }, { "docid": "621001d1056f426aea3ea3697efd0ae9", "score": "0.5305509", "text": "public static function activate() {\n\t\tupdate_option( 'host_name', 'https://login.xecurify.com' );\n\t}", "title": "" }, { "docid": "79d6a278c7762375859ac49bdd17b759", "score": "0.5245942", "text": "abstract function getConnect();", "title": "" }, { "docid": "1193bddc767e818489e658c24f2d2210", "score": "0.52363527", "text": "public function redirectAction() {\n \n $this->getResponse()->setBody($this->getLayout()->createBlock('CardstreamHosted/standard_redirect')->toHtml());\n \n }", "title": "" }, { "docid": "18d32a691a0b4269d27efbdcd17a6049", "score": "0.5234988", "text": "public function render_onboarding() {\n\t\t// Check if onboarding is already completed.\n\t\t$done = beehive_analytics()->settings->get( 'onboarding_done', 'misc', $this->is_network() );\n\n\t\t// Render modal.\n\t\tif ( ! $done ) {\n\t\t\t// Render onboarding setup modal.\n\t\t\t$this->view( 'modals/onboarding/setup', [\n\t\t\t\t'is_logged_in' => Google_Auth\\Helper::instance()->is_logged_in( $this->is_network() ),\n\t\t\t\t'network' => $this->is_network(),\n\t\t\t\t'ps_levels' => $this->is_network() ? Permission::get_ps_levels() : false,\n\t\t\t] );\n\t\t}\n\t}", "title": "" }, { "docid": "3dcd4fb82cb7b53f4b6ebeb31a058630", "score": "0.5231481", "text": "function displayClientOverview()\n\t{\n\t\t$this->checkDisplayMode();\n\n\t\t// disable/enable button\n\t\t$btpl = new ilTemplate(\"tpl.buttons.html\", true, true, \"setup\");\n\t\t$btpl->setCurrentBlock(\"btn\");\n\t\t$btpl->setVariable(\"CMD\", \"changeaccess\");\n\t\t$access_button = ($this->setup->getClient()->status[\"access\"][\"status\"]) ? \"disable\" : \"enable\";\n\t\t$btpl->setVariable(\"TXT\", $this->lng->txt($access_button));\n\t\t$btpl->setVariable(\"FORMACTION\", \"setup.php?cmd=gateway\");\n\t\t$btpl->parseCurrentBlock();\n\t\t$this->tpl->setVariable(\"BUTTONS\", $btpl->get());\n\n\t\t$this->initClientOverviewForm();\n\t\t$this->tpl->setVariable(\"SETUP_CONTENT\", $this->form->getHTML());\n\n\t\t$this->displayStatusPanel();\n\t}", "title": "" }, { "docid": "04a2e57378d6e0f26c5b1c0ecd3f5034", "score": "0.5229871", "text": "public function indexAction() : object\n {\n $title = \"API Weather\";\n $page = $this->di->get(\"page\");\n\n // $client_ip = $this->di->get(\"request\")->getServer(\"REMOTE_ADDR\", \"127.0.0.1\");\n\n $data = [\n // \"client_ip\" => $client_ip,\n ];\n\n $page->add(\"weather/apidoc\", $data);\n\n return $page->render([\n \"title\" => $title\n ]);\n }", "title": "" }, { "docid": "2a30ba4ec91ecac384bf50572742d4bd", "score": "0.5226546", "text": "function accueilButton(){\n global $url, $lang, $ACCUEIL;\n if(isConnected()){\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=conferences\">'.$ACCUEIL.'</a>';\n }\n else{\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=connexion\">'.$ACCUEIL.'</a>';\n }\n }", "title": "" }, { "docid": "140aacebbff31cd9375855f8c00c4cb8", "score": "0.5210217", "text": "public function actionWifidisconnect()\n {\n \t$mcode = Yii::$app->request->post('mcode');\n \t\n \tif(MyWifi::CrewTypeBool($mcode)) {\n \t\t//船员\n \t\t$type = 2;\n \t\t$sql =' SELECT crew_id as member_id,crew_code as member_code,cn_name,smart_card_number, passport_number, crew_password as member_password ,\n\t\t\t\t\tcrew_email as member_email,mobile_number,money as member_money,crew_credit as member_credit,sign,overdraft_limit,curr_overdraft_amount\n\t\t\t\t\tFROM vcos_wifi_crew WHERE crew_code=\\''.$mcode.'\\' ';\n \t\t$membership = Yii::$app->mdb->createCommand($sql)->queryOne();\n \t}else {\n \t\t//会员\n \t\t$type = 1;\n \t\t$member = Member::find ()->select ( [\n \t\t\t\t'sign',\n \t\t] )->where ( [\n \t\t\t\t'member_code' => $mcode\n \t\t] )->one ();\n \t\t\n \t\t$sign = $member['sign'];\n \t\t$membership = MemberService::getMemberbysign($sign);\n \t}\n \t\n //先查看comst 中有没有这个用户\n $find_res = MyCurl::FindUser($membership['passport_number']);\n $find_res = json_decode($find_res,true);\n if($find_res['success']!==false){\n\n \t//查找comst中$passport对应的idRec\n \t$idRec = MyCurl::FindidRec($membership['passport_number']);\n \t\n \t//断开连接网络\n \t$disc_json = MyCurl::DisConnect($idRec);\n \t\n \t//查流量\n \t$check_out_json = MyCurl::CheckFlow($membership['passport_number']);\n \t$check_out_array = json_decode($check_out_json,true);\n \t$arr = explode(\"<br>\", $check_out_array['data']['feeInfo']);\n \t\n \t//剔除不必要的字符\n \t$wifi_online_in_flow = str_replace('MB','',explode(\": \",$arr[5])[1]);\n \t$wifi_online_out_flow = str_replace('MB','',explode(\": \",$arr[6])[1]);\n \t$wifi_online_total_flow = str_replace('MB','',explode(\": \",$arr[7])[1]);\n \t\n \t//初始化用户流量\n \tCruiseLineService::getRunInitStatus($type, $membership['passport_number']);\n \t\n \t\n \t\n \t//断开连接记录写入DB\n \tMyWifi::WriteWifiLogoutLogToDB($membership,$wifi_online_in_flow,$wifi_online_out_flow,$wifi_online_total_flow);\n \techo $disc_json;\n }else{\n \techo '{\"success\":false,\"Info\":\"用户不存在,此帐号没有连接网络,请先连接网络\"}';\n }\n \n }", "title": "" }, { "docid": "4acee257e8040deb4a866dcf659301ff", "score": "0.5204378", "text": "public function indexAction()\r\n {\r\n $url = $this->get('router')->generate(\r\n 'oc_platform_view', // 1er argument : le nom de la route\r\n array('id' => 5) // 2e argument : les valeurs des paramètres\r\n );\r\n // $url vaut « /platform/advert/5 »\r\n\r\n return new Response(\"L'URL de l'annonce d'id 5 est : \".$url);\r\n }", "title": "" }, { "docid": "a29384258f6608aa5f6f5d4e4a2b3019", "score": "0.51975936", "text": "private function activate(){\r\n \r\n //show the current application 'page'\r\n \r\n switch($_GET['wapi']){\r\n case \"demo\":\r\n \r\n $fileArray=array(\"app\".DS.\"display\".DS.\"demo\".DS.\"demo.php\");\r\n \r\n break;\r\n case \"outbox\":\r\n \r\n $fileArray=array(\"app\".DS.\"display\".DS.\"outbox\".DS.\"outbox.php\");\r\n \r\n break;\r\n case \"manage\":\r\n \r\n $fileArray=array(\"app\".DS.\"display\".DS.\"manage\".DS.\"manage.php\");\r\n \r\n break;\r\n }//switch\r\n \r\n //if fileArray is set, create an AmbaView object\r\n if(isset($fileArray)){\r\n \r\n $model=new \\Amba\\Core\\AmbaModel();\r\n \r\n $controller=new \\Amba\\Core\\AmbaController($model);\r\n \r\n $view=new \\Amba\\Core\\AmbaView($controller,$fileArray);\r\n \r\n $view->load();\r\n \r\n }//if\r\n \r\n }", "title": "" }, { "docid": "38d66f915e6cd676079edd129ae69b34", "score": "0.5197084", "text": "public function index() {\n\t\t$this->landing();\n\t}", "title": "" }, { "docid": "06ea50f50e1b794a000e92a137ff7c8e", "score": "0.5189517", "text": "function openDoor(){\n connectFuncDb(\"localhost\", \"aRiveraWebMaster\", \"Mormon1990\", \"gServices\");\n }", "title": "" }, { "docid": "94bf4ad504bdf934839d7b85c93c83a8", "score": "0.51865447", "text": "private function linkUp($user, $pass)\n {\n\n\n //endpoint\n $url = 'https://backoffice.oct8ne.com/platformConnection/linkup';\n\n //datos\n $data = array('email' => $user,\n 'pass' => $pass,\n 'platform' => 'magento2',\n 'urlDomain' => $this->storeManagerInterface->getStore()->getBaseUrl(), //$this->storeManagerInterface->getStore()->getBaseUrl(),\n 'statusPlatform' => true);\n\n //opciones\n $options = array(\n\n CURLOPT_POST => true,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_CONNECTTIMEOUT => 15,\n CURLOPT_TIMEOUT => 15,\n CURLOPT_HTTPHEADER => array('Content-Type: application/json;charset=UTF-8\\r\\n'),\n CURLOPT_SSL_VERIFYPEER => 0,\n CURLOPT_POSTFIELDS => json_encode($data)\n\n );\n\n //establece las opciones del curl\n $this->curl->setOptions($options);\n\n //hace la llamada\n $this->curl->get($url);\n\n //obiçtiene la respuesta\n $response = $this->curl->getBody();\n\n //to array\n $response = json_decode($response, true);\n\n\n //comprueba que los datos necesarios se han obtenido\n if ($response == null) {\n\n $this->messageManager->addErrorMessage(\"Unexpected error\");\n } else {\n\n if ($response[\"ApiToken\"] != null && $response[\"LicenseId\"] != null) {\n\n //guardar en congiguracion\n $this->resourceConfig->saveConfig(\"Oct8ne/user/email\", $user, \"default\", 0);\n $this->resourceConfig->saveConfig(\"Oct8ne/user/token\", $response[\"ApiToken\"], \"default\", 0);\n $this->resourceConfig->saveConfig(\"Oct8ne/user/license\", $response[\"LicenseId\"], \"default\", 0);\n\n $server = $response[\"Server\"];\n $UrlStatic = $response[\"UrlStatic\"];\n\n if (isset($server) && !empty($server)) {\n\n $this->resourceConfig->saveConfig(\"Oct8ne/user/server\", $server, \"default\", 0);\n\n } else {\n\n $this->resourceConfig->saveConfig(\"Oct8ne/user/server\", 'backoffice.oct8ne.com/', \"default\", 0);\n\n }\n\n if (isset($UrlStatic) && !empty($UrlStatic)) {\n\n $this->resourceConfig->saveConfig(\"Oct8ne/user/static\", $UrlStatic, \"default\", 0);\n\n } else {\n\n $this->resourceConfig->saveConfig(\"Oct8ne/user/static\", 'static.oct8ne.com/', \"default\", 0);\n }\n\n //mensaje correcto\n $this->messageManager->addSuccessMessage(\"Conectado correctamente\");\n\n\n } else {\n\n //mensaje incorrecto\n $this->messageManager->addErrorMessage($response[\"Message\"]);\n }\n\n }\n\n }", "title": "" }, { "docid": "c1494dc14d0b016a5927d1742916654b", "score": "0.5185997", "text": "public function openSatellite() {\n $this->visitSatellitePath('/');\n }", "title": "" }, { "docid": "c4607f00e5aa88eab3ed0836414a685b", "score": "0.5182674", "text": "public static function menuConnection() {\n ?>\n <div class=\"wrap\">\n <h1><?php echo __(\"Neo4j Connection Settings\", 'neopress'); ?></h1>\n <form method=\"post\" action=\"options.php\">\n <?php\n // This prints out all hidden setting fields\n settings_fields( 'neopress_connection' );\n do_settings_sections( 'neopress' );\n submit_button();\n ?>\n </form>\n </div>\n <?php\n }", "title": "" }, { "docid": "3f1d9d328cb98f93fc2121f56aa97c21", "score": "0.5177932", "text": "public function show(Airline $airline)\n {\n //\n }", "title": "" }, { "docid": "57182e374a164c239c3968f8e050b593", "score": "0.5176789", "text": "public function index()\n {\n $network = new NetworkRepository();\n $eth0 = $network->get('eth0');\n $wlan0 = $network->get('wlan0');\n\n $data=array();\n $data[\"connected\"] = 1;\n $data[\"eth0\"] = $eth0->ip;\n $data[\"wlan0\"] = $wlan0->ip;\n\n\n return view(\"index\",$data);\n }", "title": "" }, { "docid": "2ca81e4fc8dea0c5b6baddeca4c1c1f4", "score": "0.51748747", "text": "public function index()\r\n {\r\n $client = new Client();\r\n $res = $client->request('GET',\r\n 'https://api.ethplorer.io/getAddressTransactions/0xe060ea1402e5713c5E140054B1e1c253137E4636?apiKey=freekey');\r\n echo $res->getBody();\r\n\r\n\r\n }", "title": "" }, { "docid": "79e27df281d6ca6d0109c99c4fcc9366", "score": "0.5169382", "text": "function ical_subscribe() {\n \t$this->wireframe->print_button = false;\n\n $ical_url = assemble_url('ical', array(\n 'token' => $this->logged_user->getToken(true),\n ));\n\n $ical_subscribe_url = str_replace(array('http://', 'https://'), array('webcal://', 'webcal://'), $ical_url);\n\n $this->smarty->assign(array(\n 'ical_url' => $ical_url . '&subscribe=no',\n 'ical_subscribe_url' => $ical_subscribe_url\n ));\n }", "title": "" }, { "docid": "de794639e4ad86beaec78d57f4cc436f", "score": "0.515244", "text": "public function home()\n {\n $fightersAll = $this->Fighter->find('all');\n $this->set('raw',$fightersAll);\n $playerIdActual = $this->Session->read('Auth.User.id');\n $this->set('isConnected',$playerIdActual);\n }", "title": "" }, { "docid": "c8f83fb618fc0ad9c048b7f211765743", "score": "0.5145306", "text": "public static function connect(){\n $pagetitle = 'Entrez vos informations';\n $controller = 'benevole';\n $view = 'connect';\n require_once (File::build_path(array('view','view.php'))); \n }", "title": "" }, { "docid": "b50af4ced2d304a925ef3a7fc53561ea", "score": "0.5129623", "text": "function homeURL() {\n return 'mist.ac.bd';\n }", "title": "" }, { "docid": "11878cdf624ebf0495ff0750c8eb70a4", "score": "0.51254034", "text": "public function actionLogon()\r\n {\r\n// TODO: à étudier\r\n// redirection vers l'url de connexion ?\r\n// affichage direct du formulaire indiqué dans la config puis die() ?\r\n// appelle de l'action showLoginForm d'un module ?\r\n// $template=Config::get('user.loginform'); // plutôt l'url vers laquelle il faut aller ?\r\n// Routing::redirect()\r\n }", "title": "" }, { "docid": "16fde79d7072df897f6ffd9decc6b9e8", "score": "0.5110157", "text": "public function connexion()\n {\n # echo '<h1>JE SUIS LA PAGE CONNEXION</h1>';\n $this->render('membre/connexion');\n }", "title": "" }, { "docid": "81f932b09fdc9d9eaa9734387f0f4e6b", "score": "0.5100406", "text": "public function indexAction() {\n // $_ENV['LIQPAY_PUBLIC_KEY'], \n // $_ENV['LIQPAY_PRIVATE_KEY']\n // );\n // $html = $liqpay->cnb_form(array(\n // 'action' => 'pay',\n // 'amount' => '4',\n // 'currency' => 'UAH',\n // 'description' => 'description text',\n // 'order_id' => 'order_id_10',\n // 'version' => '3',\n // 'language' => 'en',\n // 'result_url' => baseUrl(),\n // 'server_url' => 'https://hi-eddy.com/payment-payment/sdfsdf/payyyy'\n // ));\n\n // debug($html);\n \n $this->setMeta(\n Tone::$app->getProperty('site_name'),\n 'hi-eddy - це освітня платформа',\n 'hi-eddy, освітня платформа'\n );\n }", "title": "" }, { "docid": "f4c0ea1837f6a392edb43c2275c5b821", "score": "0.509824", "text": "protected function connect() {}", "title": "" }, { "docid": "a4c981eeba9f78bfb6b6ad65c87251bc", "score": "0.50765693", "text": "public function indexAction() : object\n {\n $page = $this->di->get(\"page\");\n $enteredIp = $this->enteredIp;\n $getIpAddress = $_SERVER['REMOTE_ADDR'] ?? null;\n $ipValidationResult = $this->ipValidationResult;\n\n $data = [\n \"getIpAddress\" => $getIpAddress ?? null,\n \"enteredIp\" => $enteredIp ?? null,\n \"ipValidationResult\" => $ipValidationResult?? null\n ];\n\n $page->add(\"WeatherView/index\", $data);\n return $page->render([\n \"title\" => \"Weather landing\",\n ]);\n }", "title": "" }, { "docid": "671bf4fb84dbdc2a15eff755d83d7b1b", "score": "0.5075392", "text": "public function preconnect(): void\n {\n }", "title": "" }, { "docid": "6e74dc35ff852937761079b55f29b93b", "score": "0.50741017", "text": "function open() {\n\t\t//recuperation de la page demande\n\t\tif (!empty($this->client_path_info)) {\n\t\t\t$actions=$this->compile_url($this->client_path_info);\n\t\t\tif (sizeof($actions)==0) { // page par defaut du site\n\t\t\t\t//a remplacer par l'index utilisateur\n\t\t\t\t//BASE_URL\n\t\t\t\t$base_url=CFG::get(\"BASE_URL\",\"Context\");\n\t\t\t\t$url=$base_url.MAIN.\".\".INDEX;\n\t\t\t\t//echo $url;\n\t\t\t\tURL::redirect($url);\n\t\t\t\texit;\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->actions=$actions;\n\t\t} else { //page par defaut du site\n\t\t\t//a remplacer par l'index utilisateur\n\t\t\t$base_url=CFG::get(\"BASE_URL\",\"Context\");\n\t\t\t$url=$base_url.MAIN.\".\".INDEX;\n\t\t\t//echo $url;\n\t\t\tURL::redirect($url);\n\t\t\texit;\n\t\t\t\t\n\t\t}\n\n\t\tif ($this->validate()) {\n\t\t//if (Bleetz::config[\"Auth\"]===true) {//TODO\n\t\t\tif (true) {\n\n\t\t\tUS::checkpoint();\n\n\t\t\tif (!$this->authorize()) {\n\t\t\t\t//perform login\n\t\t\t\t//redirect to login page...\n\t\t\t\t//US::login...\n\t\t\t\t//URL::login...\n\t\t\t\theader('HTTP/1.1 401 Unauthorized');\n\t\t\t\t//ou page de demande de connection ou retour\n\t\t\t\t// exemple : vous n'avez pas accs ˆ la page demandŽe\n\t\t\t\t// connectez vous....\n\t\t\t\tURL::redirect(\"admin.login\");\n\t\t\t\texit;\n\t\t\t};\n\n\t\t\t}\n\t\t} else {\n\t\t\t$this->actions=array();\n\t\t\t//par la suite\n\t\t\t//BZ::E404\n\t\t\tif (!CT::validate_action(E404)) {\n\t\t\t\tER::Report();\n\t\t\t\texit;\n\t\t\t}\n\t\t\t$ar=explode('.',E404);\n\t\t\t$controller=$ar[0];\n\t\t\t$action=$ar[1];\n\t\t\t$this->actions[]=array(\"controller\"=>$controller, \"action\"=>$action, \"case_items\"=>0 );\n/*\n\t\t\tif (!isset($this->admin)) {\n\t\t\t\t//BZ::LoadController(\"admin\");\n\t\t\t\techo CTLPATH;\n\t\t\t\trequire_once CTLPATH.\"admin.php\";\n\t\t\t\t$this->admin=$admin;\t\t\t//\n\t\t\t}\n*/\n\t\t}\n\t}", "title": "" }, { "docid": "250c23379cfe03df2e180a6b3fcd22b3", "score": "0.50376344", "text": "public static function connect() {\n if (isset($_SESSION['login'])) {\n $type = \"Vous êtes déjà connecté\";\n $dataView = ControllerView::prepMenu();\n require_once File::build_path(array('view', 'erreur.php'));\n } else {\n $pagetitle = 'Authentification';\n $view = 'connect';\n $connexionErreur = \"\";\n $dataView = ControllerView::prepMenu();\n require File::build_path(array('view', 'view.php'));\n }\n }", "title": "" }, { "docid": "5bab2981cd6cea1854c0bf3e757540ac", "score": "0.5033716", "text": "public function indexAction()\n {\n $this->View()->loadTemplate(\"backend/secu_payment_secupay/app.js\");\n }", "title": "" }, { "docid": "47946cd39c907d0922ecdda9be2c875e", "score": "0.5030044", "text": "public function connect()\n {\n }", "title": "" }, { "docid": "47946cd39c907d0922ecdda9be2c875e", "score": "0.5030044", "text": "public function connect()\n {\n }", "title": "" }, { "docid": "47946cd39c907d0922ecdda9be2c875e", "score": "0.5030044", "text": "public function connect()\n {\n }", "title": "" }, { "docid": "bd49f09ae6ded2d35f61bfcffbce17f8", "score": "0.5026419", "text": "public function manageAction()\n {\n if (!Mage::helper('shopgate/config')->hasShopgateConnections()) {\n $redirect = $this->getUrl('*/*/connect');\n\n $this->getResponse()->setRedirect($redirect);\n $this->getResponse()->sendResponse();\n }\n\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "e750071960f3440233c7418b916a7507", "score": "0.5025382", "text": "public function execute() {\n ///////////////////////////////////RAAS Linking Interface////////////////////////////////////////\n /** @var \\Magento\\Framework\\App\\ObjectManager $om */\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n /** @var \\Magento\\Framework\\App\\Http\\Context $context */\n $context = $objectManager->get('Magento\\Framework\\App\\Http\\Context');\n /** @var bool $isLoggedIn */\n $isLoggedIn = $context->getValue(\\Magento\\Customer\\Model\\Context::CONTEXT_AUTH);\n $customerSession = $objectManager->get('Magento\\Customer\\Model\\Session');\n\n $redirectPage = 'customer/account';\n if ($isLoggedIn) {\n $providerid = isset($_REQUEST['providerid']) && !empty($_REQUEST['providerid']) ? trim($_REQUEST['providerid']) : '';\n $provider = isset($_REQUEST['provider']) && !empty($_REQUEST['provider']) ? trim($_REQUEST['provider']) : '';\n $redirectPage = '';\n if (!empty($providerid) && !empty($provider)) {\n $this->_helperActivation = $this->_objectManager->get('LoginRadius\\Activation\\Model\\Helper\\Data');\n $customerRegistrationHelper = $this->_objectManager->get('LoginRadius\\CustomerRegistration\\Model\\Helper\\Data');\n if ($customerRegistrationHelper->enableRaas() == '1') {\n $accountAPI = new \\LoginRadiusSDK\\CustomerRegistration\\AccountAPI($this->_helperActivation->siteApiKey(), $this->_helperActivation->siteApiSecret(), array('authentication' => true, 'output_format' => 'json'));\n try {\n $accountUnlink = $accountAPI->accountUnlink($customerSession->getLoginRadiusUid(), $providerid, $provider);\n } catch (\\LoginRadiusSDK\\LoginRadiusException $e) {\n //$this->_eventManager->dispatch('lr_logout_sso', array('exception' => $e));\n }\n }else{\n $linkedAccounts = $customerRegistrationHelper->selectSocialLinkingData($customerSession->getId());\n if (is_array($linkedAccounts) && count($linkedAccounts) > 0) {\n foreach ($linkedAccounts as $linkedAccount) {\n if(($linkedAccount['sociallogin_id'] == $providerid) && ($linkedAccount['provider'] == $provider)){\n $accountUnlink = new \\stdClass();\n $accountUnlink->isPosted = true;\n }\n }\n } \n }\n $this->_messageManager = $this->_objectManager->get('Magento\\Framework\\Message\\ManagerInterface');\n if (isset($accountUnlink) && $accountUnlink->isPosted == true) {\n $this->removeSocialLinkingData($providerid);\n $customerSession->setLoginRadiusStatus('Success');\n $customerSession->setLoginRadiusMessage('Your Account has been Removed successfully.');\n } else { \n $customerSession->setLoginRadiusStatus('Error');\n $customerSession->setLoginRadiusMessage('You can not remove this account.');\n }\n $redirectPage = 'customerregistration/accounts/linking';\n }\n if (empty($redirectPage)) {\n $resultPage = $this->_resultPageFactory->create();\n $resultPage->getConfig()->getTitle()->set('');\n \n $block = $resultPage->getLayout()->getBlock('accountlinking');\n if ($block) {\n $block->setRefererUrl($this->_redirect->getRefererUrl());\n }\n }\n }\n if (!empty($redirectPage)) {\n $resultPage = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);\n $resultPage->setPath($redirectPage);\n }\n return $resultPage;\n }", "title": "" }, { "docid": "27cd107803ce0b544e82df51872eb09c", "score": "0.5023906", "text": "public function accueilAction () {\n\t\t$session = $_SESSION['ident'];\n\t\t$app_title=\"Connexion \" ;\n\t\t$app_body=\"Body_Connecte\" ;\n\t\t$app_desc=\"Comeca\" ;\n\t\t// si l admin est connecté\n\t\t$auth = $this->authModule->estConnecte();\n\n\t\trequire_once('Model/SqlModel.php');\n\t\t$AttenteModel = new SqlModel();\n\t\t\t\t \n\t\t$ListeAttente = $AttenteModel->AfficheEnAttente();\n\n\t\trequire('View/Connecte/accueil.php') ;\n\t}", "title": "" }, { "docid": "a6aadf99e8e66e71b65041127b65b0f7", "score": "0.50225466", "text": "public function network_config_page() {\n\t\trequire_once WPSEO_PATH . 'admin/pages/network.php';\n\t}", "title": "" }, { "docid": "1dc4d1c70363885efbee414fd38cc36f", "score": "0.50190353", "text": "function connexion(){\t\t\n\t\n\t\t$this->urlRedirection = $this->traitementFormHeader()->urlRedirection;\t\t\n\n\t\tif ($this->urlRedirection == \"\")\t\t\t\n\t\t\treturn $this->construireHtml([\t\"header\", \n\t\t\t\t\t\t\t\t\t\t\t\"section-accueil\", \n\t\t\t\t\t\t\t\t\t\t\t\"section-accueil_2\", \n\t\t\t\t\t\t\t\t\t\t\t\"section-accueil_3\", \n\t\t\t\t\t\t\t\t\t\t\t\"section-accueil_4\", \n\t\t\t\t\t\t\t\t\t\t\t\"footer\"\n\t\t\t\t\t\t\t\t\t\t]);\t\n\t\telse{\n\t\t\tglobal $app;\n return $app->redirect($this->urlRedirection);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "c492414724247910c6a156620cdd1521", "score": "0.50054485", "text": "public function indexAction()\n {\n $routeInsurance = $this->getRequest()->getParam('is_route_insured');\n $checkoutSession = Mage::getSingleton('checkout/session');\n $checkoutSession->setInsured(\n filter_var($routeInsurance, FILTER_VALIDATE_BOOLEAN)\n );\n $routeAppSetupHelper = Mage::helper('route/setup');\n $routeAppSetupHelper->setSetupCheckWidget(Route_Route_Helper_Setup::SETUP_CHECK_WIDGET_JS);\n $this->getResponse()->setBody(\n $this->_getCoreHelper()->jsonEncode(\n ['success' => $checkoutSession->getInsured()]\n )\n );\n }", "title": "" }, { "docid": "046e881d3355ff0483b720a744200577", "score": "0.50052875", "text": "public function connect()\n {\n // Make Call to Aweber and return OAuth Url\n if (empty($_GET['oauth_token'])) {\n $callbackUrl = $this->redirect_url;\n list($requestToken, $requestTokenSecret) = $this->aweber->getRequestToken($callbackUrl);\n $_SESSION['requestTokenSecret'] = $requestTokenSecret; \n return ['url' => $this->aweber->getAuthorizeUrl()] ;\n }\n\n }", "title": "" }, { "docid": "673d3207af8fead4ae7bd04983914dfb", "score": "0.5001518", "text": "function preConnect()\n {\n }", "title": "" }, { "docid": "f35d1c9dfeae2616d0eea1bdd0ccad69", "score": "0.50009346", "text": "public function connexionIntervenantLogin(){\n }", "title": "" }, { "docid": "fac89c4e1c45d8a30c4deba02881d74a", "score": "0.49999025", "text": "function buttonConnexion(){\n global $url, $lang, $CONNEXION, $DECONNEXION;\n if(isConnected()){\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=deconnexion\">'.$DECONNEXION.'</a>';\n }\n else{\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=connexion\">'.$CONNEXION.'</a>';\n }\n }", "title": "" }, { "docid": "633ac7512b68aaa13b1779099e7308cd", "score": "0.49997565", "text": "function Home()\n {\n $this->requestSessionInfo();\n\n // muestra solo 2\n $recent_artworks = $this->modelArtwork->GetFrontArtworks(2);\n $this->view->ShowHome($recent_artworks);\n }", "title": "" }, { "docid": "6711401338cdd6d3904623b0a87a4732", "score": "0.49971446", "text": "function dashboard() {\n\t\tif (!$this->needs_extended_registration && (!isset($this->request->query) || empty($this->request->query))) {\n\t\t\t$settings = $this->Setting->find('list', array(\n\t\t\t\t'fields' => array('Setting.name', 'Setting.value'),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Setting.name' => array('mbd.active', 'mbd.partner_id')\n\t\t\t\t)\n\t\t\t));\n\t\t\tif (count($settings) == 2 && $settings['mbd.active'] == 'true') {\n\t\t\t\t$partner_user = $this->PartnerUser->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'PartnerUser.partner' => 'mbd',\n\t\t\t\t\t\t'PartnerUser.user_id' => $this->authed_user['User']['id']\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t\tif (!$partner_user || strtotime('-2 days') > strtotime($partner_user['PartnerUser']['modified'])) {\n\t\t\t\t\t$full_url = Router::url(array('controller' => 'users','action' => 'mbd_redirect'), true);\n\t\t\t\t\t$parameters = array(\n\t\t\t\t\t\t'PartnerID' => $settings['mbd.partner_id'],\n\t\t\t\t\t\t'PanelistID' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t'iso' => $this->authed_user['QueryProfile']['country'],\n\t\t\t\t\t\t'redir' => $full_url\n\t\t\t\t\t);\n\t\t\t\t\t$redirect_url = 'https://secure.insightexpressai.com/adserver/PanelistPartnerESI.aspx'; \n\t\t\t\t\t$http = new HttpSocket(array(\n\t\t\t\t\t\t'timeout' => 5,\n\t\t\t\t\t\t'ssl_verify_host' => false\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\t\t\t\t// check if the link is working\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$results = $http->get($redirect_url);\n\t\t\t\t\t\tif ($results->code == '200') {\n\t\t\t\t\t\t\t$redirect_url = $redirect_url.'?'.http_build_query($parameters); \n\t\t\t\t\t\t\treturn $this->redirect($redirect_url); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (\\HttpException $ex) {\n\t\t\t\t\t}\n\t\t\t\t\tcatch (\\Exception $ex) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!$this->needs_extended_registration) {\n\t\t\t\n\t\t\t// try a passive sync for all partner data\n\t\t\tMintVine::sync_user_changes($this->authed_user, false); \n\t\t\t\n\t\t\t// fire the toluna api cache component to populate\n\t\t\t$toluna_active_setting = $this->Setting->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Setting.name' => 'toluna.active'\n\t\t\t\t)\n\t\t\t));\n\t\t\tif ($toluna_active_setting && $toluna_active_setting['Setting']['value'] == 'true') {\n\t\t\t\t$query = ROOT.'/app/Console/cake toluna cache_api_output '.$this->authed_user['User']['id'];\n\t\t\t\t$query.= \" > /dev/null &\"; \n\t\t\t\texec($query, $output);\n\t\t\t}\n\t\t\t\n\t\t\t// fire the precision api cache component to populate\n\t\t\t$precision_active_setting = $this->Setting->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Setting.name' => 'precision_sample.active'\n\t\t\t\t)\n\t\t\t));\n\t\t\tif ($precision_active_setting && $precision_active_setting['Setting']['value'] == 'true') {\n\t\t\t\t$query = ROOT.'/app/Console/cake precision_sample cache_api_output '.$this->authed_user['User']['id'];\n\t\t\t\t$query.= \" > /dev/null &\"; \n\t\t\t\texec($query, $output);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$settings = $this->Setting->find('list', array(\n\t\t\t'fields' => array('Setting.name', 'Setting.value'),\n\t\t\t'conditions' => array(\n\t\t\t\t'Setting.name' => array('points2shop.active', 'ssi.active', 'poll.publish_time')\n\t\t\t)\n\t\t));\n\t\tif (isset($settings['poll.publish_time']) && !empty($settings['poll.publish_time'])) {\n\t\t\t$this->set('publish_time', $settings['poll.publish_time']);\n\t\t\tif (time() >= strtotime($settings['poll.publish_time'])) {\n\t\t\t\t$poll_date = date(DB_DATE);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$poll_date = date(DB_DATE, strtotime('-1 day'));\n\t\t\t}\n\t\t\t\n\t\t\t$poll = $this->Poll->find('first', array(\n\t\t\t\t'contain' => array(\n\t\t\t\t\t'PollAnswer'\n\t\t\t\t),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Poll.publish_date' => $poll_date\n\t\t\t\t)\n\t\t\t));\n\t\t\t\n\t\t\tif (!empty($poll)) {\n\t\t\t\t$poll_user_answer = $this->PollUserAnswer->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'PollUserAnswer.user_id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t'PollUserAnswer.poll_id' => $poll['Poll']['id']\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\t$points2shop_router = $ssi_router = $ssi_rtv = false;\t\t\t\t\n\t\t// get points2shop if it exists\n\t\t$remesh_interviews = $this->App->get_upcoming_remesh_surveys($this->authed_user);\t\t\n\t\tif (!empty($this->survey_list)) {\t\t\t\n\t\t\tforeach ($this->survey_list as $survey) {\n\t\t\t\tif ($settings['points2shop.active'] == 'true' && $survey['Client']['param_type'] == 'points2shop' && !$points2shop_router) {\n\t\t\t\t\t$points2shop_router = $survey;\n\t\t\t\t\t// check points2shop router...\n\t\t\t\t\tif (!Surveys::hasPoints2Shop($this->authed_user)) {\n\t\t\t\t\t\t$points2shop_router = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($settings['ssi.active'] == 'true' && $survey['Group']['key'] == 'ssi' && !$ssi_router) {\n\t\t\t\t\tif (strpos($survey['Project']['prj_name'], 'SSI Router') !== false) {\n\t\t\t\t\t\t$ssi_router = $survey;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($settings['ssi.active'] == 'true' && $survey['Group']['key'] == 'ssi' && !$ssi_router) {\n\t\t\t\t\tif (strpos($survey['Project']['prj_name'], 'SSI RTV') !== false) {\n\t\t\t\t\t\t$ssi_rtv = $survey;\n\t\t\t\t\t\t\n\t\t\t\t\t\tApp::import('Model', 'SsiLink');\n\t\t\t\t\t\t$this->SsiLink = new SsiLink;\n\t\t\t\t\t\tApp::import('Lib', 'Ssi');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// ssi link\n\t\t\t\t\t\t$ssi_link = $this->SsiLink->find('first', array(\n\t\t\t\t\t\t\t'fields' => array('SsiLink.id', 'SsiLink.url', 'SsiLink.created'),\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'SsiLink.user_id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t'SsiLink.used' => false,\n\t\t\t\t\t\t\t\t'SsiLink.project_subtype' => array(3, 4, 'rtv.static') \n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'order' => 'SsiLink.id DESC'\n\t\t\t\t\t\t));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!Ssi::is_rtv_link_valid($ssi_link)) {\n\t\t\t\t\t\t\t$ssi_rtv = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->set(compact('ssi_router', 'points2shop_router', 'ssi_rtv'));\n\t\t\t\t\n\t\t$user_checklist = $this->UserChecklist->find('list', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'status' => true,\n\t\t\t\t'user_id' => $this->authed_user['User']['id']\n\t\t\t),\n\t\t\t'fields' => array('id', 'name')\n\t\t));\n\t\t$checklist = unserialize(CHECKLIST);\n\t\tforeach ($checklist as $key => $list_item) {\n\t\t\tif (!in_array($key, $user_checklist)) {\n\t\t\t\tunset($checklist[$key]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->set(compact('poll', 'poll_user_answer', 'user_profiles', 'checklist'));\n\t\t\n\t\t// google consumer surveys\n\t\t$timestamp = time();\n\t\t$hash = sha1($timestamp.$this->authed_user['User']['id'] . 'mintvineyay');\n\t\t$this->set(compact('timestamp', 'hash'));\n\t\t\n\t\tif (isset($this->request->query['mpf']) && $this->request->query['mpf'] == 'true') {\n\t\t\t$user_acquisition = $this->UserAcquisition->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'UserAcquisition.user_id' => $this->authed_user['User']['id']\n\t\t\t\t),\n\t\t\t\t'order' => 'UserAcquisition.modified DESC'\n\t\t\t));\n\t\t\t$this->set('user_acquisition', $user_acquisition);\n\t\t\t$this->set('mixpanel_pixels_alias', true);\n\t\t}\n\t\t\t\t\n\t\t$postsave = false;\n\t\tif (isset($this->request->query['postsave'])) {\n\t\t\tif (!empty($this->authed_user['User']['verified'])) {\n\t\t\t\t$postsave = true;\n\t\t\t}\n\t\t\telse { // need this to set the AID on the first identify call for the panelist\n\t\t\t\t$user_acquisition = $this->UserAcquisition->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'UserAcquisition.user_id' => $this->authed_user['User']['id']\n\t\t\t\t\t),\n\t\t\t\t\t'order' => 'UserAcquisition.modified DESC'\n\t\t\t\t));\n\t\t\t\tif ($user_acquisition) {\n\t\t\t\t\t$this->set(compact('user_acquisition'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// figure out if this is a post-save after registration - if it is, then fire off all the pixels\n\t\tif ($postsave) {\n\t\t\t\n\t\t\t$user = $this->User->find('first', array(\n\t\t\t\t'fields' => array('User.id', 'User.origin', 'User.pub_id', 'User.active', 'User.verified', 'User.fb_id', 'User.password'),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'User.id' => $this->authed_user['User']['id'],\n\t\t\t\t\t'User.deleted_on' => null\n\t\t\t\t),\n\t\t\t\t'recursive' => -1\n\t\t\t)); \n\t\t\t$this->set('post_save', true);\t\t\n\t\t\t$this->set('fire_ad_post_save_pixel', !empty($user['User']['origin'])); \n\t\t\t$this->set('password_blank', empty($user['User']['password']));\n\t\t\t\n\t\t\tif ($user) {\n\t\t\t\t$user_acquisition = $this->UserAcquisition->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'UserAcquisition.user_id' => $this->authed_user['User']['id']\n\t\t\t\t\t),\n\t\t\t\t\t'order' => 'UserAcquisition.modified DESC'\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\tif ($user_acquisition) {\n\t\t\t\t\t$this->set(compact('user_acquisition'));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($user_acquisition && !$user_acquisition['UserAcquisition']['pixel_fired']) {\n\t\t\t\t\t$pixel_to_fire = false;\n\t\t\t\t\t$postbacks_complete = false;\n\t\t\t\t\t\n\t\t\t\t\tif ($user_acquisition && !empty($user_acquisition['UserAcquisition']['source'])) {\n\t\t\t\t\t\t$source = $this->Source->find('first', array(\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'Source.abbr' => $user_acquisition['UserAcquisition']['source'],\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($source) {\n\t\t\t\t\t\t\t$fire_pixel = (!empty($source['Source']['post_registration_pixel']) || !empty($source['Source']['post_registration_postback']));\n\t\t\t\t\t\t\t// if we have db set values, do not use old hardcoded values\n\t\t\t\t\t\t\tif ($fire_pixel) {\n\t\t\t\t\t\t\t\t$pixel_to_fire = false;\n\t\t\t\t\t\t\t\tif (!empty($source['Source']['post_registration_postback'])) {\n\t\t\t\t\t\t\t\t\t$url = MintVine::get_postback_url($this->authed_user, $user_acquisition, $source['Source']['post_registration_postback']);\n\t\t\t\t\t\t\t\t\t$http = new HttpSocket(array(\n\t\t\t\t\t\t\t\t\t\t'timeout' => 5,\n\t\t\t\t\t\t\t\t\t\t'ssl_verify_host' => false // PHP does not seem to check SANs for CNs\n\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!defined('IS_DEV_INSTANCE') || IS_DEV_INSTANCE === false) {\n\t\t\t\t\t\t\t\t\t\t$response = $http->post($url, '1=1'); // send in some body values to reduce the length error; see https://basecamp.com/2045906/projects/1413421/todos/231161332\n\t\t\t\t\t\t\t\t\t\tCakeLog::write('acquisition.log', $url.\"\\n\".print_r($response, true));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!empty($source['Source']['post_registration_pixel'])) {\n\t \t\t\t\t\t\t\t\t$html = MintVine::get_postback_pixel($this->authed_user, $user_acquisition, $source['Source']['post_registration_pixel']);\n\t\t\t\t\t\t\t\t\tCakeLog::write('acquisition.pixels', 'Pixel: '.$html);\n\t\t\t\t\t\t\t\t\t$this->set('postback_pixel', $html);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$postbacks_complete = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set publisher data \n\t\t\t\t\t\t\t\tif (!empty($source['Source']['publisher_id_key']) && !empty($user_acquisition['UserAcquisition']['params'])) {\n\t\t\t\t\t\t\t\t\t$params = $user_acquisition['UserAcquisition']['params'];\n\t\t\t\t\t\t\t\t\tif (isset($params[$source['Source']['publisher_id_key']]) && !empty($params[$source['Source']['publisher_id_key']])) {\n\t\t\t\t\t\t\t\t\t\t$pub_id = $params[$source['Source']['publisher_id_key']];\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$existing_user = $this->User->find('first', array(\n\t\t\t\t\t\t\t\t\t\t\t'fields' => array('User.pub_id'),\n\t\t\t\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'User.id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t'User.deleted_on' => null\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t'recursive' => -1\n\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$this->User->create();\n\t\t\t\t\t\t\t\t\t\t$this->User->save(array('User' => array(\n\t\t\t\t\t\t\t\t\t\t\t'id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t'pub_id' => $pub_id\n\t\t\t\t\t\t\t\t\t\t)), true, array('pub_id'));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$this->UserLog->create();\n\t\t\t\t\t\t\t\t\t\t$this->UserLog->save(array('UserLog' => array(\n\t\t\t\t\t\t\t\t\t\t\t'user_id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'user.updated',\n\t\t\t\t\t\t\t\t\t\t\t'description' => 'pub_id updated from \"' . $existing_user['User']['pub_id'] . '\" to \"' . $pub_id . '\"'\n\t\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\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// finish the postback process\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$this->UserAcquisition->create();\n\t\t\t\t\t\t\t\t$this->UserAcquisition->save(array('UserAcquisition' => array(\n\t\t\t\t\t\t\t\t\t'id' => $user_acquisition['UserAcquisition']['id'],\n\t\t\t\t\t\t\t\t\t'pixel_fired' => true\n\t\t\t\t\t\t\t\t)), true, array('pixel_fired'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tApp::import('Model', 'SourceMapping');\n\t\t\t\t\t\t\t$this->SourceMapping = new SourceMapping;\n\t\t\t\t\t\t\t$source_mapping = $this->SourceMapping->find('first', array(\n\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t'SourceMapping.utm_campaign' => $user_acquisition['UserAcquisition']['source'],\n\t\t\t\t\t\t\t\t\t'SourceMapping.deleted' => null\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\tif ($source_mapping) {\n\t\t\t\t\t\t\t\t$params = $user_acquisition['UserAcquisition']['params'];\n\t\t\t\t\t\t\t\tif (!empty($source_mapping['SourceMapping']['publisher_id'])) {\n\t\t\t\t\t\t\t\t\tif (isset($params[$source_mapping['SourceMapping']['publisher_id']])) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$existing_user = $this->User->find('first', array(\n\t\t\t\t\t\t\t\t\t\t\t'fields' => array('User.pub_id'),\n\t\t\t\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'User.id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t'User.deleted_on' => null\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t'recursive' => -1\n\t\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\t\t\t$this->User->create();\n\t\t\t\t\t\t\t\t\t\t$this->User->save(array('User' => array(\n\t\t\t\t\t\t\t\t\t\t\t'id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t'pub_id' => $pub_id\n\t\t\t\t\t\t\t\t\t\t)), true, array('pub_id'));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$this->UserLog->create();\n\t\t\t\t\t\t\t\t\t\t$this->UserLog->save(array('UserLog' => array(\n\t\t\t\t\t\t\t\t\t\t\t'user_id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'user.updated',\n\t\t\t\t\t\t\t\t\t\t\t'description' => 'pub_id updated from \"' . $existing_user['User']['pub_id'] . '\" to \"' . $pub_id . '\"'\n\t\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\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// if we have pixels/postbacks, fire them here and don't fire the hardcoded ones\t\t\t\t\t\n\t\t\t\t\tif (!$postbacks_complete) {\t\t\t\t\t\n\t\t\t\t\t\tif (strpos($user_acquisition['UserAcquisition']['source'], ':adp1')) {\n\t\t\t\t\t\t\t$pixel_to_fire = 'adp1';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strpos($user_acquisition['UserAcquisition']['source'], ':adp2')) {\n\t\t\t\t\t\t\t$pixel_to_fire = 'adp2';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (strpos($user_acquisition['UserAcquisition']['source'], ':es')) {\n\t\t\t\t\t\t\t$pixel_to_fire = 'es';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($user_acquisition['UserAcquisition']['source'] == 'fborganic') {\n\t\t\t\t\t\t\t$pixel_to_fire = 'fborganic';\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tif ($pixel_to_fire) {\n\t\t\t\t\t\t\t// set parameters\n\t\t\t\t\t\t\t$params = array();\n\t\t\t\t\t\t\tif (!empty($user_acquisition['UserAcquisition']['params'])) {\n\t\t\t\t\t\t\t\tforeach ($user_acquisition['UserAcquisition']['params'] as $param_key => $param_value) {\n\t\t\t\t\t\t\t\t\t$params[] = $param_key.'='.$param_value;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!empty($params)) {\n\t\t\t\t\t\t\t\t$this->set('addtl_query_params', '?'.implode('&', $params)); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$this->set('addtl_query_params', ''); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->UserAcquisition->create();\n\t\t\t\t\t\t\t$this->UserAcquisition->save(array('UserAcquisition' => array(\n\t\t\t\t\t\t\t\t'id' => $user_acquisition['UserAcquisition']['id'],\n\t\t\t\t\t\t\t\t'pixel_fired' => true\n\t\t\t\t\t\t\t)), true, array('pixel_fired'));\n\t\t\t\t\t\n\t\t\t\t\t\t\t$this->set('pixel_to_fire', $pixel_to_fire);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Publisher ID\n\t\t\t\t\t\t\tif (!empty($user_acquisition['UserAcquisition']['params'])) {\n\t\t\t\t\t\t\t\t$params = $user_acquisition['UserAcquisition']['params']; \n\t\t\t\t\t\t\t\tif (!empty($params)) {\n\t\t\t\t\t\t\t\t\tif (strpos($user_acquisition['UserAcquisition']['source'], ':adp') !== false) {\n\t\t\t\t\t\t\t\t\t\tif (isset($params['key1']) && !empty($params['key1'])) {\n\t\t\t\t\t\t\t\t\t\t\t$pub_id = $params['key1'];\n\t\t\t\t\t\t\t\t\t\t\t$this->User->create();\n\t\t\t\t\t\t\t\t\t\t\t$this->User->save(array('User' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'id' => $this->authed_user['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t'pub_id' => $params['key1']\n\t\t\t\t\t\t\t\t\t\t\t)), true, array('pub_id'));\n\t\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\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tApp::import('Model', 'PaymentMethod');\n\t\t$this->PaymentMethod = new PaymentMethod;\n\t\t$payment_method = $this->PaymentMethod->find('first', array(\n\t\t\t'recursive' => -1,\n\t\t\t'conditions' => array(\n\t\t\t\t'user_id' => $this->authed_user['User']['id'],\n\t\t\t\t'status' => DB_ACTIVE\n\t\t\t)\n\t\t));\n\t\t\n\t\tApp::import('Model', 'CashNotification');\n\t\t$this->CashNotification = new CashNotification;\n\t\t$cash_notifications = $this->CashNotification->find('all', array(\n\t\t\t'contain' => array(\n\t\t\t\t'User' => array(\n\t\t\t\t\t'fields' => array('username')\n\t\t\t\t)\n\t\t\t),\n\t\t\t'conditions' => array(\n\t\t\t\t'CashNotification.amount >=' => '1000'\n\t\t\t),\n\t\t\t'limit' => 10,\n\t\t\t'order' => 'CashNotification.id desc'\n\t\t));\n\t\t\t\t\n\t\t$timestamp = time();\n\t\t$hash = sha1($timestamp.$this->authed_user['User']['id'] . 'mintvineyay');\n\t\t// pr ($remesh_interview); die;\n\t\t$this->set(compact('payment_method', 'cash_notifications', 'google_survey', 'timestamp', 'hash', 'remesh_interviews'));\n\t\t$has_pending_withdrawal = $this->Transaction->find('count', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Transaction.user_id' => $this->authed_user['User']['id'],\n\t\t\t\t'Transaction.type_id' => TRANSACTION_WITHDRAWAL,\n\t\t\t\t'Transaction.status' => TRANSACTION_PENDING,\n\t\t\t\t'Transaction.deleted' => null,\n\t\t\t),\n\t\t\t'recursive' => -1\n\t\t));\n\t\t$this->set('has_pending_withdrawal', $has_pending_withdrawal > 0); \n\t\t\n\t\t$this->User->bindModel(array('belongsTo' => array('TwilioNumber'))); \n\t\t$twilio_number = $this->User->find('first', array(\n\t\t\t'fields' => array('TwilioNumber.national_format', 'TwilioNumber.verified'),\n\t\t\t'conditions' => array(\n\t\t\t\t'User.id' => $this->authed_user['User']['id']\n\t\t\t)\n\t\t));\n\t\t\n\t\t$phone_status = false;\n\t\tif ($twilio_number) {\n\t\t\tif ($twilio_number['TwilioNumber']['verified']) {\n\t\t\t\t$phone_status = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$user_address = $this->UserAddress->find('first', array(\n\t\t\t'fields' => array('UserAddress.verified', 'UserAddress.address_line1', 'UserAddress.address_line2', 'UserAddress.country', 'UserAddress.city', 'UserAddress.state', 'UserAddress.county', 'UserAddress.postal_code'),\n\t\t\t'conditions' => array(\n\t\t\t\t'UserAddress.user_id' => $this->authed_user['User']['id'],\n\t\t\t\t'UserAddress.deleted' => false\n\t\t\t), \n\t\t\t'order' => 'UserAddress.id DESC'\n\t\t));\n\t\t\n\t\t$address_status = $user_address && $user_address['UserAddress']['verified'];\t\t\n\t\t$email_status = $this->authed_user['User']['active'];\n\t\t$fully_verified = $email_status && $address_status && $phone_status; \n\t\t\n\t\t$this->set(compact('twilio_number', 'user_address'));\n\t\t$this->set(compact('email_status', 'address_status', 'phone_status', 'fully_verified'));\n\t\t\n\t\t$profile_reward_check = MintVine::user_profile_reward_check($this->authed_user);\n\t\t$this->set(compact('profile_reward_check'));\n\t}", "title": "" }, { "docid": "45a4e3f0073e7edf593087b78cd622c8", "score": "0.49946225", "text": "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "title": "" }, { "docid": "577a7818565b26bd240205f8bbcf71fb", "score": "0.49943015", "text": "function seeHomePage()\n{\n $sensors = getSensors();\n require(\"../../view/customer/home_view.php\");\n}", "title": "" }, { "docid": "1a1acbffa0dbe2f961fc49905f73d794", "score": "0.49919686", "text": "function smartrecruiters_config(){\r\n\t\t\r\n\t\t$is_connected = get_option('sr_connected');\r\n\t\t\r\n\t\tif($is_connected){\r\n\t\t\t//aplikacja juz polaczona, trzeba pokazac mozliwosc odlaczenia\r\n\t\t\t\r\n\t\t\t//jesli kliknieto disconnect\r\n\t\t\tif(isset($_POST['sr_disconnect']) && $_POST['sr_disconnect']){\r\n\t\t\t\t\t//rozlaczyc i odswiezyc strone zeby pokazac formularz logowania\r\n\t\t\t\t\tupdate_option('sr_connected', 0);\r\n\t\t\t\t\tupdate_option('sr_company', null);\r\n\t\t\t\t\t$location = 'http://'.$_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n\t\t\t\t\techo '<script>window.location = \"'.$location.'\";</script>';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//pobieramy joby zeby meic departmenty i lokacje\r\n\t\t\t$company_name = get_option('srcompany');\r\n\t\t\t$url = 'https://www.smartrecruiters.com/cgi-bin/WebObjects/share.woa/wa/careersite?wpp_company='.$company_name;\r\n\t\t\r\n\t\t\t//pobieramy joby\r\n\t\t\t$get_jobs = @file_get_contents($url);\r\n\t\t\t$xml = @simplexml_load_string($get_jobs, 'SimpleXMLElement', LIBXML_NOCDATA);\r\n\t\t\t$jobs = json_decode(json_encode($xml), true);\r\n\r\n if( isset($_POST['template']) ){\r\n update_option('sr_jobDetailsPageTemplate', esc_attr($_POST['template']) );\r\n }\r\n $available_templates = get_page_templates();\r\n $active_template = get_option('sr_jobDetailsPageTemplate');\r\n\r\n\t\t\t//widok konfigurancji i odlaczania\r\n\t\t\tinclude('configure.php');\r\n\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tif(!empty($_GET['srcompany']) && $_GET['srcompany']){\r\n\t\t\t\tupdate_option('sr_connected', 1);\r\n\t\t\t\tupdate_option('srcompany', $_GET['srcompany']);\r\n\t\t\t\t$location = 'http://'.$_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n\t\t\t\techo '<script>window.location = \"'.$location.'\";</script>';\r\n\t\t\t}\r\n\r\n\t\t\t//widok laczenia/logowania\r\n\t\t\tinclude('connect.php');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5631e57b5e94e546688f2bf0ffd4a42d", "score": "0.49906138", "text": "abstract function connect ();", "title": "" }, { "docid": "6cbf6ae4b5ac4632ac8651516097c9f5", "score": "0.49886486", "text": "protected function connect() {\n $this->connection = 'resource';\n echo $this->name . ' connected '.\"<br>\" ;\n }", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.4983857", "text": "abstract public function connect();", "title": "" }, { "docid": "90b8a2492e9f33a4e5dee2043f7b58dd", "score": "0.49796048", "text": "public function index() {\n // Set the output type to text/xml\n $this->response->type('text/xml');\n // The url to the TileMapService resource\n $url = \"http://\" . $this->request->host() . DS . $this->rootService . DS . $this->tileMapService . DS;\n $this->set('url', $url);\n }", "title": "" }, { "docid": "e12e05c77e0fc7038b1f46fb59c1e39e", "score": "0.49782485", "text": "function topdesk_view($name = '')\n\t{\n\t\t$params['lookup'] = 'naam';\n\t\t$params['lookupValue'] = $name;\n\t\tredirect(conf('topdesk_server').\"/tas/secure/hardware?\".http_build_query($params));\n\t}", "title": "" }, { "docid": "b5eee3031064ef184640c874a4f6067c", "score": "0.49772704", "text": "function indexAction() {\n \t$server = implode('.', explode('.', $_SERVER['SERVER_ADDR'], -1));\n \t$remote = implode('.', explode('.', $_SERVER['REMOTE_ADDR'], -1));\n \t\n try {\n \t$this->authenticateAction('add');\n \tif ($this->auth->getIdentity()->role == 'bidder') {\n \t\t\t$this->_helper->layout->setlayout('bid');\n \t}\n } catch (Metis_Auth_Exception $e) {\n \t$e->failed();\n \treturn;\n }\n }", "title": "" }, { "docid": "3cfb2a5349554b85469a418a9f518e1e", "score": "0.4976712", "text": "public function myShowPage() {\n $request = $_REQUEST;\n $action = !empty($request['action']) ? $request['action'] : '';\n\n\n if (empty($this->pagedata)) {\n//\t\t\t$driver = $this->FreePBX->Config->get_conf_setting('ASTSIPDRIVER');\n\n $this->pagedata = array(\n \"general\" => array(\n \"name\" => _(\"General SCCP Settings\"),\n \"page\" => 'views/server.setting.php'\n ),\n \"sccpdevice\" => array(\n \"name\" => _(\"SCCP Device\"),\n \"page\" => 'views/server.device.php'\n ),\n \"sccpntp\" => array(\n \"name\" => _(\"SCCP Time\"),\n \"page\" => 'views/server.datetime.php'\n ),\n \"sccpcodec\" => array(\n \"name\" => _(\"SCCP Codec\"),\n \"page\" => 'views/server.codec.php'\n ),\n \"sccpadv\" => array(\n \"name\" => _(\"Advanced SCCP Settings\"),\n \"page\" => 'views/server.advanced.php'\n ),\n \"sccpinfo\" => array(\n \"name\" => _(\"SCCP info\"),\n \"page\" => 'views/server.info.php'\n ),\n );\n\n foreach ($this->pagedata as &$page) {\n ob_start();\n include($page['page']);\n $page['content'] = ob_get_contents();\n ob_end_clean();\n }\n }\n\n return $this->pagedata;\n }", "title": "" }, { "docid": "37e561290638f39330af94b224e4aad6", "score": "0.49721104", "text": "function appConnected(){\n\n}", "title": "" }, { "docid": "67f1b3beaa69f4f8d32a7ec2451b1098", "score": "0.49719745", "text": "abstract function connect();", "title": "" }, { "docid": "77528cfa3587e33536637617784e9b4e", "score": "0.49695018", "text": "public function index() {\n\n\t\t//--------------------------Cargar variables del Metodo------------------------------ \t\n\n\t\t\t$titulo = 'SIC';\n\n\t\t//-----------------------------------------------------------------------------------\n\n\t\t\tlayout_view_login($titulo, $this->url); //Carga layout\n\n\t}", "title": "" }, { "docid": "c6297e3be298af35e68f1bc4f75c95a3", "score": "0.49651322", "text": "public function newPortal(){\n\t\t$this->wlan_if = null;\n\t\t$this->ssid = null;\n\t\t$this->remote_file = null;\n\t\t\n\t\t$hp = HostAPDConfig::getInstance();\n\t\t\n\t\t$this->wlan_if = \"wlan\".$hp->getWlanNumber();\n\t}", "title": "" }, { "docid": "7ebfb7a2473be43122110a1f3f7cb6e1", "score": "0.4964181", "text": "public function homePageAction(Application $app){\n \n $spectacles = $app['dao.spectacle']->LastNineArticles();\n $archives= $app['dao.spectacle']->ArchiveShow();\n $presses = $app['dao.press']->findAll();\n return $app['twig']->render('index.html.twig', array('spectacles'=>$spectacles,\n 'archives'=>$archives,\n 'presses'=>$presses));\n }", "title": "" } ]
8c3561713bd959ef37fa8713b083b6a1
Add this function if you want access view object in helper function
[ { "docid": "88e4ccd967fa1397a9d244473108a236", "score": "0.0", "text": "public function setView($view){\n\t\t$this->view = $view;\n\t}", "title": "" } ]
[ { "docid": "1f29cd981b62113ebcffd424f2806c14", "score": "0.71419597", "text": "protected abstract function useView();", "title": "" }, { "docid": "85dea99091e5869e22e0a5e04d585aa8", "score": "0.71387655", "text": "function view() : View\n{\n global $view;\n\n return $view;\n}", "title": "" }, { "docid": "f40604ee9f079c9dc623ead482e809ee", "score": "0.6919548", "text": "protected function View(){\n\t\treturn $this->view;\n\t}", "title": "" }, { "docid": "5bb9739df58fae8cf1fd15c0c3d970a7", "score": "0.6823057", "text": "function &getView(){\n $registry = &Registry::instance();\n return $registry->getEntry('view');\n}", "title": "" }, { "docid": "0b62e2493b741faa8af5ca544d9334dd", "score": "0.68122226", "text": "public function get_view(){if(! $this->_v) throw $this->except(\"Underlaying view does not exist\"); return $this->_v;}", "title": "" }, { "docid": "638b3cb945fcf0a4d921a549722c7690", "score": "0.67859787", "text": "public function templateView() {\n\t}", "title": "" }, { "docid": "687e21125784711eedaaf69d403f9e2f", "score": "0.6738249", "text": "function baseView(){\r\n}", "title": "" }, { "docid": "effa6c15893c7d40f8bbbb1ad4a966c0", "score": "0.6729284", "text": "public function view()\n {\n //\n }", "title": "" }, { "docid": "67f09193b8e058088905be4d69d02141", "score": "0.66554576", "text": "abstract protected function getView();", "title": "" }, { "docid": "1f10366be472aa474e9eb2bd96485152", "score": "0.6632648", "text": "public function view()\n\t{\n\t}", "title": "" }, { "docid": "7d1c4559b1ee5500801637cf84cedca8", "score": "0.66136116", "text": "function view(): Zend_View_Abstract {\n return Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view;\n}", "title": "" }, { "docid": "2a798a6eb631a84e1740ea57ea5ca0f9", "score": "0.6584831", "text": "public function PageView(){\n\t\t\t\n\t}", "title": "" }, { "docid": "091a3f2b26d089e9d2bde46d4610ebd2", "score": "0.6507281", "text": "protected function loadView()\n {\n }", "title": "" }, { "docid": "4f438ff28b3293efc4f8e97283366201", "score": "0.64854866", "text": "abstract public function getView(): string;", "title": "" }, { "docid": "7fc779284b9d7211de838c872280bbfc", "score": "0.64679307", "text": "protected function views()\n {\n }", "title": "" }, { "docid": "77d23690aaf65c327d103521a5e8587f", "score": "0.646437", "text": "public function view() {\n\t\treturn $this->_view;\n\t}", "title": "" }, { "docid": "40e089036d124c201919d5492e0addef", "score": "0.6456831", "text": "public function getView();", "title": "" }, { "docid": "40e089036d124c201919d5492e0addef", "score": "0.6456831", "text": "public function getView();", "title": "" }, { "docid": "a44c656105069656ac2fc45246c47b8b", "score": "0.645228", "text": "protected function resolveView() {\n\t}", "title": "" }, { "docid": "1e2884de0377e1f74e73f21378ee5e2c", "score": "0.6423812", "text": "protected function get_views()\n {\n }", "title": "" }, { "docid": "57056867c89e10643096cf401c0d90ed", "score": "0.639655", "text": "protected function resolveView() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "57056867c89e10643096cf401c0d90ed", "score": "0.639655", "text": "protected function resolveView() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4ceb4cb97866f7a656a55fed9c8e23ea", "score": "0.6374173", "text": "static function getView() {\n\t\treturn self::getObjectFromRegistry('PPI_View');\n\t}", "title": "" }, { "docid": "92d794c0d038c7f573c7f093819b0a56", "score": "0.63533294", "text": "function getView()\n\t {\n\t \treturn $this->_view;\n\t }", "title": "" }, { "docid": "7c8fad939a7c653c7636b6d385450796", "score": "0.6347222", "text": "function htmlHelper($view){\n $this->fetchArray['css'] = array();\n $this->fetchArray['script'] = array();\n $this->fetchArray['meta'] = \"\";\n parent::__construct($view);\n }", "title": "" }, { "docid": "c04439c86f757c3b1528e2cbc41908e6", "score": "0.6345218", "text": "protected static function getView()\n {\n return null;\n }", "title": "" }, { "docid": "3143925c06b13aa4d08d0177db9f3be5", "score": "0.6335877", "text": "public function view()\n {\n return $this->view;\n }", "title": "" }, { "docid": "3143925c06b13aa4d08d0177db9f3be5", "score": "0.6335877", "text": "public function view()\n {\n return $this->view;\n }", "title": "" }, { "docid": "5bf1a0a302e6239e81368ec4d05a7cd9", "score": "0.6333065", "text": "function view() {\n\t\t\n\t}", "title": "" }, { "docid": "0653b4a774137674974a56d69f4d1257", "score": "0.6325189", "text": "public function _initView()\r\n {\r\n $view = new Zend_View();\r\n $view->setEncoding('ISO-8859-1');\r\n //JQuery action helper laden\r\n $view->addHelperPath(\"ZendX/JQuery/View/Helper\", \"ZendX_JQuery_View_Helper\");\r\n $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();\r\n $viewRenderer->setView($view);\r\n Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);\r\n\r\n return $view;\r\n }", "title": "" }, { "docid": "086c04d47993ee28a8a4e891e21bde51", "score": "0.63236773", "text": "function view()\n{\n return \\Yii::$app->getView();\n}", "title": "" }, { "docid": "798bd1d559a25f35adcc16597c05e761", "score": "0.62669224", "text": "public function view() {\n return $this->view;\n }", "title": "" }, { "docid": "796fcb685528a1a6110f367807d03b9e", "score": "0.6240684", "text": "public function helper()\n {\n ActionView\\ViewHelpers::addAppHelpers(func_get_args());\n }", "title": "" }, { "docid": "b79aeb9b85aae6a1c37c6054269c8b29", "score": "0.6218562", "text": "public function getView() { \n return $this->_view;\n }", "title": "" }, { "docid": "dcbaf247d1276341cf30ba6cac6eefaa", "score": "0.62149066", "text": "public function view_loader(){\r\n\r\n\t\tparent::_view();\r\n\t}", "title": "" }, { "docid": "649cc62cd6f08b17fa8eaa1e8f0d328b", "score": "0.61583763", "text": "public function render($view);", "title": "" }, { "docid": "96d2d8bc72d4c224f4a8ef96bcc60402", "score": "0.61494565", "text": "abstract public function view(): string;", "title": "" }, { "docid": "315cbab54bc9c12ea826ed7760bddc4f", "score": "0.61388063", "text": "private function _getView()\n {\n $this->bootstrap('view');\n return $this->getResource('view');\n }", "title": "" }, { "docid": "905eaa7bdf0649082ba31b690e377ea0", "score": "0.6119209", "text": "function get_template($view) {\n $_this =& get_instance();\n\n return $_this->load->view($view);\n}", "title": "" }, { "docid": "7f27c3ed43c9ae74c93f6d71dbc6a480", "score": "0.61167586", "text": "function tm_woo_quick_view_render() {\n\treturn TM_Woo_Quick_View_Render::get_instance();\n}", "title": "" }, { "docid": "6d77539d688858a756b8a89b108611fd", "score": "0.61165345", "text": "abstract protected function getViewName();", "title": "" }, { "docid": "52b8a20934d3c93078bbc74809e77435", "score": "0.6087408", "text": "public static function getView()\n\t{\n\t\treturn self::$view;\n\t}", "title": "" }, { "docid": "b2c043c90d1642413c7ba379160e9271", "score": "0.6069408", "text": "protected function includeView()\n {\n $tag = '<a class=\"view\">view</a>';\n return $tag;\n }", "title": "" }, { "docid": "995af47e83d5a5655dac03dcbc5f40eb", "score": "0.6065474", "text": "protected function _initViewHelpers(){\n\t\t\n\t\t//\terror_reporting(0);\n\t\t$this->bootstrap('layout');\n\t\t//pido el resource layout\n\t\t$layout = $this->getResource('layout');\n\t\t\n\t\t//asigno a view la vista del layout\n\t\t$view = $layout->getView(); \n\t\t\t\t\t\t\t\t\n\t\t//defino doctype HTML5\n\t\t$view->doctype('HTML5');\t\t\n\t\t\n\t\t//defino y seteo <meta/>\n\t\t$view->headMeta()->appendHttpEquiv('Content-type', 'text/html;charset=utf-8')\n\t\t\t\t\t\t\t\t\t//name of metaTag - content metaTag | Seacrh engines!\t\t\t\t\t\t \n\t\t\t\t\t\t ->appendName('description','Con los pies sobre la arena de la playa El Desplayado, en La Pedrera, te esperamos para que disfrutes de unas vacaciones únicas. Ubicadas en primera línea y frente a la zona de baño con vistas de 180° al mar, brindamos el confort de tu casa en la playa. Vive el sueño de estar a orillas del mar en un ambiente familiar y distendido con todos los servicios que necesitas para gozar de este paraíso natural.');\n\t\t\t\t\t\t \n\t\t\n\t\t//defino y seteo titulo PRINCIPAL de pagina\t\t\n\t\t$view->headTitle('Casas de la Playa - La Pedrera');\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t//Activamos ZendX_Jquery\n\t\t$view->setHelperPath(APPLICATION_PATH.'/views/helpers', '');\n\t\t//preparo recurso para usar jQuery\n\t\tZendX_JQuery::enableView($view);\t\t\t\n\t\t$view->jQuery()->enable();\t\t\n\t\t\t\n\t\t//lunch helpers\n\t\t$view->registerHelper( new Application_View_Helper_GetAdminLayout(), 'getAdminLayout' );\t\t\n\t\t$view->registerHelper( new Application_View_Helper_GetAdminFooter(), 'getAdminFooter' );\n\t\t$view->registerHelper( new Application_View_Helper_GoogleAnalytics(), 'getAnalyticsCode' );\n\t\t$view->registerHelper( new Application_View_Helper_GetUserName(), 'getUserName' );\n\t\t$view->registerHelper( new Application_View_Helper_GetHouseName(), 'getHouseName' );\n\t\t\n\t}", "title": "" }, { "docid": "bba4abce6dc98abb18f4e55cc5d692f8", "score": "0.60599184", "text": "public function renderView()\n {\n return $this->helper->renderTemplate($this);\n }", "title": "" }, { "docid": "b87fc3b1ac3a1824e2e2ec82744ec31b", "score": "0.60508245", "text": "function load_view($viewName,$data = array()){\n \n $CI = & get_instance();\n \n $content = $CI->load->view($viewName,$data,true);\n \n return $content;\n }", "title": "" }, { "docid": "676fd8d6283e66048342b45fb7657b35", "score": "0.60466754", "text": "public function setView()\n {\n return call_user_func_array([$this, 'loadView'], func_get_args());\n }", "title": "" }, { "docid": "247bfc02b77fe9ba182ec6ac704b4b75", "score": "0.60400146", "text": "private function _getView()\n {\n if (null === $this->_view) {\n $this->bootstrap('view');\n $this->_view = $this->getResource('view');\n }\n \n return $this->_view;\n }", "title": "" }, { "docid": "2bd434cfaab93824383e935e3db6fde1", "score": "0.6033449", "text": "public function getView()\n {\n return $this->_view;\n }", "title": "" }, { "docid": "2bd434cfaab93824383e935e3db6fde1", "score": "0.6033449", "text": "public function getView()\n {\n return $this->_view;\n }", "title": "" }, { "docid": "2bd434cfaab93824383e935e3db6fde1", "score": "0.6033449", "text": "public function getView()\n {\n return $this->_view;\n }", "title": "" }, { "docid": "3d92f9077befc4cd4dd0518f2e2f81a1", "score": "0.60333043", "text": "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "title": "" }, { "docid": "0506d377e89717fac1cf759fb17cc6ab", "score": "0.6032427", "text": "public function getView()\n\t{\n\t\treturn $this->_view;\n\t}", "title": "" }, { "docid": "264a6f475e3b5270f87f2395c491e6ef", "score": "0.60229814", "text": "public function getViewHtml();", "title": "" }, { "docid": "07e0805c81d5884f67f05e0d82213446", "score": "0.60097563", "text": "function view(){\n global $DOPBSP;\n \n $DOPBSP->views->backend_extras->template();\n }", "title": "" }, { "docid": "f931585ac1affcb435d7dc2ceed88153", "score": "0.6008843", "text": "function view(): View\n{\n return container()->getSingleton(View::class);\n}", "title": "" }, { "docid": "ac3755f4b31e8980481d8a24ec3dda96", "score": "0.6003201", "text": "public function showAbc(){\n\n return View::make(\"abc\", array(\"result\" => $result));\n\n }", "title": "" }, { "docid": "4d3567cf3248c33ba2ce8cc65162b862", "score": "0.60019934", "text": "function render($view){\n include $view;\n}", "title": "" }, { "docid": "d5b40433c3dcdcef344fee6d68aad429", "score": "0.59998584", "text": "function get_view_file() {\n return $this->view_file;\n }", "title": "" }, { "docid": "913e8a6225fbdad2dc0be4ce400020e3", "score": "0.5969206", "text": "function getView()\n// -----------------------------------------------------------------------------------------------------\n{\n\t$bootstrap = Zend_Registry::getInstance()->bootstrap;\n\treturn $bootstrap->getResource('View');\n}", "title": "" }, { "docid": "afd967cfc0aabc197e9caa5e9dc28234", "score": "0.59571654", "text": "public function getPageViewName();", "title": "" }, { "docid": "b818800d69741c284e773d4fc0fe09ae", "score": "0.59506476", "text": "function check($view)\r\n{\r\n\treturn true;\r\n}", "title": "" }, { "docid": "a02d3278daf4787a385cf14049fe2b35", "score": "0.5943785", "text": "public function getView() {\n\t\treturn $this->view;\n\t}", "title": "" }, { "docid": "1f1a834db0bd50941fd5d6a1cfafa90a", "score": "0.59402496", "text": "private function __loadView()\n {\n return new View();\n }", "title": "" }, { "docid": "37b79fa9a0cf3b6e963bd69b2873253a", "score": "0.5939718", "text": "function getViewType() {\r\n }", "title": "" }, { "docid": "21fa8cbf3a80488d8602c284549602a2", "score": "0.59320855", "text": "function load_view($view, $data = [], $view_only = false) \r\n{\r\n\tglobal $config;\r\n\tglobal $is_loggedin;\r\n\tglobal $app_module;\r\n\tglobal $breadcrumb;\r\n\tglobal $db;\r\n\t\r\n\textract($data);\r\n\t// echo '<pre>'; print_r($data); die;\r\n\t\r\n\tob_start();\r\n\tif ($view_only) {\r\n\t\tinclude BASE_PATH . 'modules/' . $app_module['nama_module'] . '/' . $view;\r\n\t\t\r\n\t\treturn ob_get_clean();\r\n\t}\r\n\t\r\n\tif (!$view_only) \r\n\t{\r\n\t\t$theme_header = BASE_PATH . 'themes/' . $config['theme'] . '/header.php';\r\n\t\tinclude backup($theme_header);\r\n\t}\r\n\r\n\tinclude BASE_PATH . 'modules/' . $app_module['nama_module'] . '/' . $view;\r\n\t\r\n\tif (!$view_only) {\r\n\t\t$theme_footer = BASE_PATH . 'themes/' . $config['theme'] . '/footer.php';\r\n\t\tinclude backup($theme_footer);\r\n\t}\r\n\t\r\n\texit();\r\n}", "title": "" }, { "docid": "a6d6bd36b11a7e115a072081c769510c", "score": "0.5932037", "text": "public function view(){\n // right now everything is handled via js / ajax\n\t\t}", "title": "" }, { "docid": "091dfc7cac656864fddb6677e734cb0c", "score": "0.5929079", "text": "public function load_view(){\n $view = $this->context->request->get_view();\n try{\n $view->load( $this->context );\n }catch(Exception $ex){\n echo $ex->getMessage();\n }\n\n unset($conf);\n unset($view);\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.59241337", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "fec645ccf41d056a39ff7c707988c013", "score": "0.59122", "text": "public function exampleAction() {\n \t$this->view->foo = \"bar\";\n }", "title": "" }, { "docid": "0c1bf1e02bac2b6cdc3fe68012192243", "score": "0.59111625", "text": "abstract protected function renderView($view, $data);", "title": "" }, { "docid": "8d47401fb7226d5d0c9f87162e614390", "score": "0.5903781", "text": "public function views()\n {\n }", "title": "" }, { "docid": "13b90b0f5718804da71b15fd44b66ba7", "score": "0.5903606", "text": "public function EditorView(){\n\t\t\t\n\t}", "title": "" }, { "docid": "122c56e1e20e5d8be209e0c79aa36597", "score": "0.588759", "text": "protected function _initViewHelpers() {\n $this->bootstrap('layout');\n $layout = $this->getResource('layout');\n $view = $layout->getView();\n\n // Adicionar Propriedades da Página\n $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');\n\n // Adicionar Título\n $view->headTitle('Imobiliária')->setSeparator(' - ');\n\n // Adicionar Folhas de Estilos\n $view->headLink()\n ->prependStylesheet('js/bootstrap/css/bootstrap.css')\n ->prependStylesheet('/css/layout/principal.css');\n\n // Adicionar Bibliotecas JavaScript\n $view->headScript()\n ->appendFile('js/bootstrap/js/bootstrap.js', \"text/javascript\")\n ->appendFile('js/layout/layout.js', \"text/javascript\");\n\n // Adicionar Biblioteca JQuery\n $view->addHelperPath(\"ZendX/JQuery/View/Helper\", \"ZendX_JQuery_View_Helper\");\n $view->jQuery()\n ->setLocalPath('/js/jquery/js/jquery-1.8.3.js')\n ->setUiLocalPath('/js/jquery/js/jquery-ui-1.9.2.custom.js')\n ->addStylesheet('/js/jquery/css/ui-darkness/jquery-ui-1.9.2.custom.css')\n ->enable()\n ->uiEnable();\n }", "title": "" }, { "docid": "b7e1114dd8022ed350c4e089cfc2b6ee", "score": "0.5886783", "text": "public function getView()\n\t{\n\t\tif ($this->_view === NULL) {\n\t\t\t$this->_view = Registry::get('view');\n\t\t}\n\n\t\treturn $this->_view;\n\t}", "title": "" }, { "docid": "c51983aa2099db5ebdeb4542ed421c98", "score": "0.58814347", "text": "function createView();", "title": "" }, { "docid": "325f8f819a84af982be0e4cab0cbcb20", "score": "0.5875546", "text": "public abstract function getViewNamespace();", "title": "" }, { "docid": "217e7b8da4d8fb5e16a322168edc495b", "score": "0.58445275", "text": "function getViews();", "title": "" }, { "docid": "edfe37ec788a196d5335c9e8e3aa6048", "score": "0.5839608", "text": "function get_view_data() {\n return $this->view_data;\n }", "title": "" }, { "docid": "214a18f5c0108f32db87882f08cf1c1f", "score": "0.58269626", "text": "final public static function getView() {\r\n return self::$viewName;\r\n\r\n }", "title": "" }, { "docid": "e71f1827a37f37452a7e7cbcd784b8ef", "score": "0.5824326", "text": "private static function getHeader(){\n return View::render('pages/header');\n }", "title": "" }, { "docid": "dfcdf4e979095077198d6102ec4b2d12", "score": "0.58215266", "text": "protected function _initDxcoreView() {\n $this->bootstrap('view');\n $view = $this->getResource('view'); //get the view object\n if(! (bool) $this->appSettings->enableFbOpenGraph) {\n \t$view->doctype('XHTML1_TRANSITIONAL');\n }\n elseif($this->appSettings->enableFbOpenGraph) {\n \t$view->doctype('XHTML1_RDFA');\n }\n $view->addHelperPath(\"Dxcore/View/Helper\", \"Dxcore_View_Helper\");\n $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');\n $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');\n $view->addHelperPath(APPLICATION_PATH . '/modules/pages/views/helpers', 'Pages_View_Helper');\n //$view->addHelperPath(APPLICATION_PATH . '/modules/default/views/helpers', 'Default_View_Helper');\n\n $view->dojo()\n //->setCdnBase(Zend_Dojo::CDN_BASE_GOOGLE)\n ->setLocalPath('/js-src/dojo/dojo.js')\n ->addStyleSheetModule('dijit.themes.nihilo')\n ->disable();\n\n $jquery = $view->jQuery();\n $jquery->useCdn();\n $jquery->setVersion('1.8.1');\n $jquery->useUiCdn();\n $jquery->setUiVersion('1.8');\n $jquery->disable();\n $jquery->uiDisable();\n\n ZendX_JQuery_View_Helper_JQuery::enableNoConflictMode();\n\n $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();\n $viewRenderer->setView($view);\n\n Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);\n\n }", "title": "" }, { "docid": "45b91865dedf19d154ce84b9661611cd", "score": "0.5821336", "text": "protected abstract function createView();", "title": "" }, { "docid": "051aed337e949ce986790a0552373660", "score": "0.58105093", "text": "public final function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "7e4bb09f87e1c795202799871d9fa9b4", "score": "0.58040977", "text": "function view($child_view_to_load = '',$data = array())\n {\n $CI = &get_instance();\n $data['content_view'] = $child_view_to_load;\n $CI->load->view('ltelayout/starter',$data);\n }", "title": "" }, { "docid": "62331ce645efcbab853108ae3eb6832d", "score": "0.57933086", "text": "function helperFunction()\n{\n //using $this->CI->load->helper('sample') in a widget controller. Once loaded\n //you can use this function by simply using helperFunction()\n}", "title": "" }, { "docid": "3fbfd7a923288e92e3b127b3d29f2095", "score": "0.579078", "text": "function view($view, $vars = array(), $return = TRUE)\n\t{\n\t\t$view_folder = $this->theme_path();\n\t\t$block = $this->CI->load->module_view($this->config('theme_module'), $view_folder.$view, $vars, TRUE);\n\t\tif ($return)\n\t\t{\n\t\t\treturn $block;\n\t\t}\n\t\techo $block;\n\t}", "title": "" }, { "docid": "240b47348a7cffad2c2debf910a6146b", "score": "0.5771677", "text": "public function view()\n {\n if ($this->_view == null) {\n $engine = $this->app->conf->TEMPLATE_ENGINE;\n// Doo::loadCore('view/' . $engine, &$this->app->conf);\n $this->_view = new $engine;\n $this->_view->conf = &$this->app->conf;\n }\n\n return $this->_view;\n }", "title": "" }, { "docid": "ac982a35d18dc305aae47be251c2d886", "score": "0.57713", "text": "final public function getView() {\r\n return $this->view;\r\n }", "title": "" }, { "docid": "873ea4fc0e56b00f5e6df5ecafe1b66c", "score": "0.57625127", "text": "protected function additionalViewConfiguration()\r\n {}", "title": "" }, { "docid": "c75792f84dd98755cc37ec7f7c0b172c", "score": "0.57525104", "text": "public function myview()\n\t{\n\t\t$requestforaltmod_id = $this->uri->segment(3);\n\n\t\t// get data from db\n\t\t$requestforaltmod = $this->RequestForAlternativeModuleModel->GetById($requestforaltmod_id);\n\t\t$requestforaltmodapprovalallrecords = $this->RequestForAlternativeModuleModel->GetByIdAllRecords($requestforaltmod_id);\n\n\t\t// get student data from db\n\t\t$student = $this->UomUserModel->GetByIdWithDetails($requestforaltmod->uomUser_id);\n\n\t\t// get approval history\n\t\t$aproval_history = $this->ApprovalProcessModel->getApprovalStatusByField('requestForAlternativeModule_id', $requestforaltmod_id);\n\n\t\t$data = array(\n\t\t\t'requestforaltmod' => $requestforaltmod,\n\t\t\t'student' => $student,\n\t\t\t'requestforaltmodapprovalallrecords' => $requestforaltmodapprovalallrecords,\n\t\t\t'aproval_history' => $aproval_history\n\t\t);\n\n\t\t$this->layout->view(\"manage_forms/requestforalternativemodules_form/my_view_requestforalternativemodules\", $data);\n\t}", "title": "" }, { "docid": "25d2fd695cff9232a3685a7be1325365", "score": "0.5752388", "text": "public function view($view,$data = false,$include_go = false){\n \n /***\n * EXTRACT DATA IF THERE\n ****/\n if( $data ) extract($data);\n $go = go::get_go();\n \n /***\n * LOAD THE VIEW\n ****/ \n require_once(BASEPATH.'app/view/'.$view.'.php');\n }", "title": "" }, { "docid": "d41901515b27c8d44482231ed6982dc1", "score": "0.5745255", "text": "public function getViewContext() {\n\n\t\t\t// This needs to get fixed up\n\t\t\t// Path stuff needs to get parsed better so we can build breadcrumbs, etc.\n\t\t\t// Params should be split up\n\t\t\t$this->context->register(array(\n\t\t\t\t'view'\t=> array(\n\t\t\t\t\t'title'\t\t\t=> $this->title,\n\t\t\t\t\t'handle'\t\t=> $this->handle,\n\t\t\t\t\t'params'\t\t=> (!is_null($this->params) ? implode($this->params, '/') : ''),\n\t\t\t\t\t'path'\t\t\t=> $this->path,\n\t\t\t\t\t'root'\t\t\t=> $this->location\n\t\t\t\t)\n\t\t\t));\n\t\t}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)\n {\n }", "title": "" }, { "docid": "23bd42dc38bca65e850c1b8f771c0f0f", "score": "0.6837518", "text": "public function update(ResourceInterface $resource)\n {\n $this->_em->flush($resource);\n }", "title": "" }, { "docid": "191338cd6ef896bff360364575acf011", "score": "0.67335975", "text": "function update( $resource ){\n\n\n\n}", "title": "" }, { "docid": "82d962f8a232812e11e659906a06c4bf", "score": "0.64792234", "text": "abstract function updateResource(array $resource): array;", "title": "" }, { "docid": "3e0f043be946ab7842b0af2e1d74c916", "score": "0.6411816", "text": "protected function _update ()\n {\n $storage = $this->_make_storage ();\n $storage->update_object ($this);\n }", "title": "" }, { "docid": "94019d08a7f8811e4983869c0f46c3d1", "score": "0.63963556", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n $data = $request->validated();\n\n $status = $resource->fill($data)->save();\n\n if($status) {\n return redirect()->route('resource.index')->with('success', 'Обновлено успешно');\n }\n\n return back()->withInput();\n }", "title": "" }, { "docid": "f3a644eac430ac72a35e4e871bd91db8", "score": "0.6383551", "text": "public function update(Request $request, $id, $resource='typeProduct')\n {\n //\n }", "title": "" }, { "docid": "4f3179762365be3e1ddb7c5eec12dffb", "score": "0.6367317", "text": "public function update($id)\n\t{\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules_edit);\n\t\tif($validator->passes()){\n\n\n\t\t\t$resource = \\App\\Resource::find($id);\n\n\t\t\tif(isset($inputs['image'])){\n\n\t\t\t\t$file = $resource->image;\n\n\t\t\t\tunlink('pictures/' . $file);\n\n\t\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t\t$constrain->aspectRatio();\n\t\t\t\t})->save($destinationPath . $fileName);\n\t\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t\t$inputs['image'] = $fileName;\n\t\t\t}\n\n\t\t\t$resource->update($inputs);\n\t\t\treturn Redirect::to('/');\n\n\t\t}\n\n\t\treturn Redirect::back()\n\t\t\t->withInput(Input::all())\n\t\t\t->withErrors($validator);\n\t}", "title": "" }, { "docid": "8c18bfa316f6f5346468923c884b7854", "score": "0.62746567", "text": "public function update(ResourceRequest $request, $id)\n {\n $resource = $this->resources->findOrFail($id);\n\n $this->resources->update($resource, $request->only([\n 'author_id',\n 'category_id',\n 'title',\n 'body',\n 'description',\n 'meta_description',\n 'status',\n ]));\n\n if ($request->hasFile('mini_image')) {\n $uploadedFile = $request->file('mini_image');\n\n if ($resource->mini_image) {\n Storage::delete('public/' . $resource->mini_image);\n }\n\n $pathFile = $uploadedFile->store($this->resources->makeImagePath(), 'public');\n $resource->update(['mini_image' => $pathFile]);\n }\n\n if ($request->hasFile('featured_image')) {\n $uploadedFile = $request->file('featured_image');\n\n if ($resource->featured_image) {\n Storage::delete('public/' . $resource->featured_image);\n }\n\n $pathFile = $uploadedFile->store($this->resources->makeImagePath(), 'public');\n $resource->update(['featured_image' => $pathFile]);\n }\n\n if ($resource->category->isCaseStudies()) {\n return redirect()->route('spark.kiosk.resources.case-studies.edit', ['id' => $id])\n ->with('alert.success', __('Updated successfully!'));\n }\n\n return redirect()->route('spark.kiosk.resources.edit', ['id' => $id])\n ->with('alert.success', __('Updated successfully!'));\n }", "title": "" }, { "docid": "125e988ea4b035f1db7a8b5327bfb780", "score": "0.61922735", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n \"file_upload\" => \"required\",\n \"title\" => \"required|min:1|max:30\",\n \"credit\" => \"required|integer\",\n ]);\n\n $res = Resource::find($id);\n $res->owner_user_id = Auth::id();\n $res->access_role = implode('|', $request->access_role);\n $res->description = $request->description;\n $res->credit = $request->credit;\n // $res->file_upload = FileHelper::saveResourceFile($request->file_upload);\n $res->file_upload = $request->file_upload; // as url\n // $res->type = ($request.file_upload)->getClientOriginalExtension();\n $res->type = \"url\";\n if(!empty($request->book_id) and Book::find($requst->book_id))\n $res->owner_book_id = $request->book_id;\n $res->update();\n \n Session::flash('success', '资源信息修改成功');\n\n return redirect()->route('resource.show', $res->id);\n }", "title": "" }, { "docid": "2faaf8ddd37fb3a3dd00d2067935e627", "score": "0.618546", "text": "public function update(UpdateResourceArticleRequest $request, Resource $resource): JsonResponse\n {\n\n if ($request->hasFile('url')) {\n Storage::disk('article')->delete($resource->url);\n $resource->url = $request->url->store('articles', 'article');\n }\n\n if ($resource->isClean()) {\n return $this->errorResponse('Se debe especificar al menos un valor diferente para actualizar', 422);\n }\n\n $resource->save();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.updated'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "41d9c906adb39164a3ea97f83f0d6b4c", "score": "0.6004039", "text": "public function update(Request $request, $id) {\n //\n $resource = Resource::find($id);\n if($request->resourceislink == \"No\"){\n if($resource->external_link == \"Yes\"){\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n 'file' => 'required|mimes:pdf,xls,xlsm,xlsx,doc,docx,ppt,pptm,pptx,jpeg,bmp,png,bmp,gif,svg',\n ]);\n }else{\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n ]);\n }\n }else{\n $validator = Validator::make($request->all(), [\n 'resource_name' => 'required',\n 'file' => 'required|url',\n ]);\n }\n\n if ($validator->fails()) {\n $access_log = new AccessLog;\n $access_log->user = Auth::user()->username;\n $access_log->link_accessed = str_replace(url('/'),\"\",url()->current());\n $access_log->action_taken = \"Edit \".$resource->resource_type.\" Resource\";\n $access_log->action_details = \"Editing of \".$resource->resource_type.\" Resource interrupted due to validation errors\";\n $access_log->action_status = \"Failed\";\n $access_log->save();\n\n return back()->withErrors($validator)->withInput()->with('editresource',$resource);\n }else{\n if($request->resourceislink == \"No\"){\n if($request->file){\n //Upload the resource file in storage/app/public/resources folder \n $file_name = (string) ($request->file->store('public/resources'));\n $file_name = str_replace('public/', '', $file_name);\n \n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->resource_location = $file_name;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n }else{\n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n }\n }else{\n $edit_resource = Resource::find($id);\n $edit_resource->resource_name = $request->resource_name;\n $edit_resource->resource_location = $request->file;\n $edit_resource->external_link = $request->resourceislink;\n $edit_resource->subfolder_id = $request->subfolder_id;\n $edit_resource->save();\n } \n \n return back()->with('resouce','Resource was succesfully uploaded')->with('resoucetype',$resource->resource_type);\n }\n }", "title": "" }, { "docid": "1b397375316ae1351b5a50f45f20bc46", "score": "0.6000568", "text": "public function update(Request $request, $id)\n {\n if($request->session()->exists('resources')){\n $resources = $request->session()->get('resources');\n $idInput = $request->input('id');\n $nameInput = $request->input('name');\n $priceInput = $request->input('price');\n \n if(isset($resources[$id]) && (isset($resources[$idInput])==false || $idInput==$id)){\n // $resource = $resources[$id];\n $resource = ['id' => $idInput, 'name' => $nameInput, 'price' => $priceInput];\n unset($resources[$id]);\n $resources[$idInput]=$resource;\n $request->session()->put('resources', $resources);\n \n return redirect('resource')->with('message', 'Se editado el elemento correctamente');\n }\n \n }\n return back()->withInput();\n }", "title": "" }, { "docid": "dd769c108800c8271a7f2c99245c843e", "score": "0.597514", "text": "public function updateStream($path, $resource, Config $config)\n {\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.59242314", "text": "public function save($resource);", "title": "" }, { "docid": "c94044d21c7dac20d5d21a469d63f195", "score": "0.59235406", "text": "public function testItShouldUpdateSpecifiedResource()\n {\n $this->json('PUT', $this->base_url . $this->getId(), $this->data, $this->getHeaders())\n ->assertStatus(200)\n ->assertJsonStructure($this->json);\n }", "title": "" }, { "docid": "9645d8e1c1b4d32587e5589c88868755", "score": "0.5878462", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n $resource->fill($request->all());\n $resource->save();\n\n $resource->tags()->sync($request->tags);\n\n $message = 'El recurso literario \"' . $resource->title . '\" fue modificado.';\n $class = 'warning';\n\n Session::flash('message', $message);\n Session::flash('class', $class);\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "630a533750db7d2a089a96d2e8e1e2d0", "score": "0.5843074", "text": "public function update(Request $request, $id)\n\t{\n\t\t$accessLevel = $request->user()->hasAccessTo('storage', 'edit', 0);\n\t\tif ($accessLevel < 1) {\n\t\t\tthrow new AccessDeniedHttpException('You don\\'t have permission to access this page');\n\t\t}\n\n\t\t$this->validate($request, [\n\t\t\t'title' => 'required'\n\t\t]);\n\n\t\t$storage = storage::where('organization_id', $request->user()->organization_id)->where('storage_id', $id)->first();\n\t\tif (is_null($storage)) {\n\t\t\treturn 'No such storage';\n\t\t}\n\n\t\t$storage->title = $request->title;\n\t\t$storage->type = $request->type;\n\t\t$storage->description = $request->description;\n\t\t$storage->organization_id = $request->user()->organization_id;\n\n\t\t$storage->save();\n\n\t\tSession::flash('success', 'Новый склад успешно сохранен!');\n\n\t\treturn redirect()->route('storage.show', $storage->storage_id);\n\t}", "title": "" }, { "docid": "a6fd2ebf36845fedc38da71edc963161", "score": "0.58306503", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->available_colors = $request->available_colors;\n $product->available_sizes = $request->available_sizes;\n $product->discount = $request->discount;\n $product->image = $request->image;\n $product->stock = $request->stock;\n $product->save();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "f0482e3ac4ae9626608914e5608b9630", "score": "0.58134246", "text": "public function updateStream($path, $resource, array $config = [])\n {\n $result = parent::updateStream($path, $resource, $config);\n\n if ($result && $resource = $this->get($path)) {\n return $this->dispatch(new SyncFile($resource));\n }\n\n return $result;\n }", "title": "" }, { "docid": "44b2a146d07735a49eec32f23fe41df0", "score": "0.5792586", "text": "public function updateById();", "title": "" }, { "docid": "3ebf4ac6712058cf5111ea2fb1b3f69d", "score": "0.5789821", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f67879fb9debb5940a340430c2ce7193", "score": "0.5784806", "text": "public function update(Request $request, Problem $problem, Storage $storage)\n {\n if ($storage->name !== $request->name) {\n $isExists = $problem->storages()->where('name', $request->name)->exists();\n if ($isExists) {\n dd(\"storage `\" . $request->name . \"` is already exists\");\n }\n }\n $storage->fill($request->all());\n $storage->save();\n return redirect(route('problems.show', [\n 'problem' => $problem,\n ]));\n }", "title": "" }, { "docid": "3042155ddc4627ea088faa7fbe4fcbfd", "score": "0.57552326", "text": "public function update($id, Request $request)\n\t{\n\n\t\t$entity = $this->manager->getRepository()->findResource($id);\n\n\t\tif (empty($entity))\n\t\t\tabort(404);\n\n\t\t$params = $request->all();\n\t\t$params = array_merge($params, ['resource_container' => $entity, 'user' => $this->getUser()]);\n\n\t\t$entity = $this->manager->updateOrCreate([\n\t\t\t'resource_container_id' => $entity->id,\n\t\t\t'user_id' => $this->getUser()->id\n\t\t], $params);\n\t\t\n\t\treturn $this->success([\n\t\t\t'message' => 'ok',\n\t\t\t'data' => [\n\t\t\t\t'resource' => $this->serialize($entity)\n\t\t\t]\n\t\t]);\n\n\n\t}", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "3ec7c5a8877f8c46b7760a665414271c", "score": "0.5738682", "text": "public function update(Request $request, int $id)\n {\n $data = $request->except(\"image\");\n $product = $this->product->findOrFail($id);\n if($request->hasFile(\"image\") && $request->image->isValid()){\n Storage::delete($product->image);\n $data[\"image\"] = $request->image->store(\"products/\".$request->name);\n }\n $product->update($data);\n return redirect()->route(\"products.index\");\n }", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "6b5928bfd8cfb173f6ff973bf5da429a", "score": "0.5725117", "text": "public function update(Request $request)\n {\n //\n\n $item = $request->id;\n if ($request->hasFile('thumb')) {\n $thumb = $request->file('thumb');\n $thumb_file = $this->uploadImage($thumb, '');\n $data['image'] = $thumb_file;\n\n }\n $data = $request->all();\n\n\n $slug = \\Illuminate\\Support\\Str::slug($data['name']);\n $data['slug'] = $slug;\n\n\n $product = Product::find($item);\n\n $product->fill($data);\n\n if ($product->save()) {\n return redirect()->back()->with('success', 'Product updated Successfully');\n }\n\n }", "title": "" }, { "docid": "9002704608400a526dfa928357d65ebf", "score": "0.57221955", "text": "public function update(Request $request)\n {\n\n $product = Products::find($request->id);\n\n $product->update([\n 'name' => $request->name,\n 'stock' => $request->stock,\n 'id_user' => Auth::user()->id\n ]);\n\n if($request->file('imagen')){\n $imagename = $request->file('imagen')->getClientOriginalName();\n $request->file('imagen')->storeAs('public/image', $imagename);\n // $path = Storage::disk('public')->put('image', $request->file('imagen')->getClientOriginalName());\n $product->fill(['imagen' => 'storage/image/'.$imagename])->save();\n }\n\n return $product;\n }", "title": "" }, { "docid": "72e37fd6c46c81cc34e4aad069244d7f", "score": "0.5696679", "text": "abstract function put($path, $data);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "615ba40be5a0af225501e371af76c0b2", "score": "0.5691626", "text": "public function update(Request $request, $id)\n {\n \n $social = Social::find($id);\n $this->validate(request(), [\n 'name' => 'required',\n 'link' => 'required',\n 'icon' => 'required'\n ]);\n\n Storage::Delete('public/social/'.$social->icon);\n\n if ($request->hasFile('icon')) {\n $filename=$request->icon->getClientOriginalName();\n $request->icon->storeAs('public/social',$filename);\n $social->icon=$filename;\n $social->name = $request->get('name');\n $social->link = $request->get('link');\n $social->save();\n return redirect('/admin/social')->with('success','Social has been updated');\n \n }\n\n\n\n }", "title": "" }, { "docid": "d55f58a252de4e09d616136ab381ea2d", "score": "0.5689798", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'group_id'=>'exists:groups,id|integer',\n 'name'=>'required|min:1|max:16|unique:resources,name,'.$id,\n 'description'=> 'max:255'\n ]);\n\n $resource = Resource::find($id);\n $resource->group_id = $request->get('group_id');\n $resource->name = $request->get('name');\n $resource->description = $request->get('description');\n $resource->save();\n\n return redirect('/resources')->with('success', 'Resource has been updated');\n }", "title": "" }, { "docid": "09f959fbad30c2f941ea086cc7dad93f", "score": "0.56853646", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n $product = Product::find($id);\n $product->fill($request->all())->save();\n if($request->file('image')){\n $path = Storage::disk('public')->put('image', $request->file('image'));\n $product->fill(['file' => asset($path)])->save();\n } \n return redirect()->route('products.edit', \n $product->id)->with('info', 'Info de product actualizada con éxito');\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "8c2162a8e7fe286f725a1d03ccd562a3", "score": "0.5662784", "text": "public function update(Request $request, $id)\n {\n $update = HomeT::find($id); \n Storage::disk('public')->delete('img/avatar/'.$update->src);\n $update->src = $request->file('src')->hashName();\n $update->temoignage = $request->temoignage; \n $update->nom = $request->nom; \n $update->prenom = $request->prenom; \n $update->fonction = $request->fonction; \n\n $update->save(); \n $request->file('src')->storePublicly('img/avatar/', 'public');\n\n return redirect()->back(); \n }", "title": "" }, { "docid": "c0268fd89d504e7e3334bdc92717f035", "score": "0.5641325", "text": "public function update() {\n\t\t\n\t\t$mods = $this->_data_modified[$this->_data_position];\n\t\tif (count($mods) < 1) return true; // no changes.\n\t\t\t\n\t\t// Build data\n\t\t$changes = [];\n\t\tforeach ($mods as $mod) $changes[$mod] = $this->__get($mod);\n\t\t\n\t\t// Build URL\n\t\t$url = \"table/\".$this->_table_name.\"/\".$this->__get(\"sys_id\");\n\t\t\n\t\t// Use GlideAccess to run the PUT command \n\t\t// Throw a GlideAccessException or a GlideAuthenticationException on error \n\t\t$result = $this->_access->put($url, json_encode($changes));\n\t\t\t\n\t\t// Clear out the pending updates for this record\n\t\t$this->_data_modified[$this->_data_position] = [];\n\t}", "title": "" }, { "docid": "194348e8143807f54599362cf6318737", "score": "0.5635772", "text": "public function update (object $entity);", "title": "" }, { "docid": "3f82a5c4e0e6d64fd1809d61189f5d3d", "score": "0.56336915", "text": "public function update(Request $request)\n {\n $slider=Slider::find($request->id);\n if($request->hasFile('image')) {\n $file = $request->file('image');\n $file_name = $file->getClientOriginalName();\n $path = $request->file('image')->storeAs('public/slider',$file_name);\n $slider->image=$file_name;\n $Image = str_replace('/storage', '', $request->old_image);\n #Using storage\n if(Storage::exists('public/slider/' . $Image)){\n $delete= Storage::delete('/public/slider/' . $Image);\n }\n } \n $slider->title=$request->title;\n $slider->updated_at=date('Y-m-d H:m:s');\n $slider->update();\n alert::success('Slider Updated Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "bba4992ee37e44374ffa661fa659a09a", "score": "0.56323135", "text": "public function update (EntityInterface $entity);", "title": "" }, { "docid": "072d1df8727e8fc01d135f9b601cd0cc", "score": "0.5626336", "text": "public function update(Request $request, int $resource_id)\n {\n $data = $request->all();\n $validatedData = $request->validate([\n \"name\" => \"required\"\n ]);\n $store = self::store($data, $resource_id);\n return response()->json(['status'=> 'ok', 'data'=> $store, 'msg'=> 'listing category updated successfully']);\n }", "title": "" }, { "docid": "7afe1f5b389ba43a34c655b4630cdebb", "score": "0.56085145", "text": "public function update (Request $request, $id)\n {\n// $product = Product::find($id);\n//\n// $product->name='foo';\n//\n// $product->save();\n }", "title": "" }, { "docid": "b7bac3ceb1b9b8584ebd61b08fa09788", "score": "0.5604227", "text": "public function putAction()\n {\n /** XXX **/\n\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "ced4b17a4ea0a670f0d46db8e5a71e1f", "score": "0.5600381", "text": "function setResource($resource);", "title": "" }, { "docid": "c5d23e5b9877982ada89cdd5d607b6f1", "score": "0.5595249", "text": "public function put($path);", "title": "" }, { "docid": "2617ce73a1286e2959b6286b9cbb5cdc", "score": "0.55937576", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required|max:30|unique:sizes,name,'.$id \n ]);\n\n $size = Size::findOrFail($id);\n $size->name = $request->name; \n $size->save();\n\n return new SizeResource($size);\n }", "title": "" }, { "docid": "828dbd6951736580bd5869c57009736a", "score": "0.559071", "text": "public function update(int $resourceId): JsonResponse\n {\n $resource = static::resource();\n $resource = $resource::findOrFail($resourceId);\n\n $request = app(static::resourceFormRequest());\n\n $resource = $resource->fill($request->validated());\n\n DB::transaction(function () use ($resource, $request) {\n $this->authorize('isAdmin');\n $resource->save();\n });\n\n return $this->sendResponse($resource, 'Record Updated Successfully');\n }", "title": "" }, { "docid": "222e617c89991e0979d369309504472e", "score": "0.55868655", "text": "function put($resource, $payload = array(), $headers = array())\n {\n $result = $this->client->put($this->build_url($resource), [\n 'headers' => array_merge([\n 'Content-Type' => $this->getContentType(),\n 'Authorization' => $this->getBearer(),\n 'Content-Length' => (!count($payload)) ? 0 : strlen(json_encode($payload)),\n ], $headers),\n 'body' => json_encode($payload)\n ]);\n\n return $result;\n }", "title": "" }, { "docid": "aeb943a599e58a4bbe6bd7e228755660", "score": "0.55803686", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,\n [\n 'title'=>'required|max:50',\n 'price'=>'required',\n 'description'=>'required|max:100'\n ,\n 'imagePath'=>'required'\n ],[\n 'required'=>'El campo :attribute es obligatorio'\n ]\n );\n $product=Product::find($id);\n $product->title = $request->input('title');\n $product->price = $request->input('price');\n $product->description = $request->input('description');\n // $product->imagePath = $request->input('imagePath');\n\n $nombreImagen = str_slug($product->title) . '.' .request()->imagePath->extension();\n // storeAs recibe dos parametros el nombre de la carpeta y el nombre del archivo\n request()->imagePath->storeAs('public', $nombreImagen);\n $product->imagePath = $nombreImagen;\n \n $product->save();\n\n return redirect()->action('Admin\\ProductsController@index');\n\n }", "title": "" }, { "docid": "cc73a907b4a48e339742b8c2bd070415", "score": "0.5572921", "text": "public function update(Request $request, $id) {\n $resource = static::$resource::findOrFail($id);\n \n $data = $request->validate(static::$validation);\n\n $resource->update($data);\n\n foreach($data as $key => $value) {\n if(is_array($value) && method_exists($resource, $key)) {\n call_user_func([$resource, $key])->sync($value);\n }\n }\n\n return redirect($this->getUrl())->with('success', $this->getResourceName(false) . ' updated successfully');\n }", "title": "" }, { "docid": "3220bb444c54147e54b8e439712c9f11", "score": "0.55686116", "text": "public function update(Request $request, $id)\n\t{\n ob_start(); // not needed if output_buffering is on in php.ini\n ob_implicit_flush(); // implicitly calls flush() after every ob_flush()\n\n $product = Product::findOrFail($id);\n $this->validate($request,\n [\n 'dish' => 'required|min:5',\n 'menu_category_id' => 'required|Integer',\n 'price' => 'required'\n ]\n );\n\n \n $product->update($request->all());\n\n if($request->file('image')) {\n\n // get product id and sku and use it to identify image\n $imageName = $product->sku . '-' . $product->id . '.' . \n $request->file('image')->getClientOriginalExtension();\n\n // save the new image\n $request->file('image')->move(\n base_path() . '/public/images/', $imageName\n );\n $product->image = $imageName;\n\n // update product with new image name\n $product->update();\n //flush();\n ob_clean();\n ob_flush();\n //clearstatcache ();\n $products = Product::all();\n\n } // if updated image was submitted\n \n return redirect('products_admin');\n }", "title": "" }, { "docid": "c270afb4bf92903f6af7a541b2310395", "score": "0.55680007", "text": "public function update(Request $request, $id)\n {\n $product = Product::where('slug', $id)->first();\n $product->name = $request->name;\n $product->slug = str_slug($request->name);\n $product->category_id = $request->category_id;\n $product->price = $request->price;\n $product->old_price = $request->old_price;\n $product->min_order = $request->min_order;\n $product->description = $request->description;\n\n if(!$request->has('in_stock')){\n $product->in_stock = false;\n }else{\n $product->in_stock = true;\n }\n\n if(!$request->has('is_featured')){\n $product->featured = false;\n }else{\n $product->featured = true;\n }\n\n if($request->hasFile('image')){\n $path = storage_path('app/public/products');\n \\File::isDirectory($path) or \\File::makeDirectory($path, 0777, true, true);\n\n $image = $request->file('image');\n $filename = time().'.'.$image->getClientOriginalExtension();\n $image->move($path,$filename);\n $oldfile = $product->photo;\n $product->photo = $filename;\n \\File::delete($path.'/'.$oldfile);\n }\n\n $product->update();\n \\Session::flash('success', 'Product was successfully updated');\n return back();\n }", "title": "" }, { "docid": "9b0a1be95f266f1629ffadd26d65152d", "score": "0.55679286", "text": "protected function updateResource($resource, $id, array $data, $message = null)\n {\n $resource = $resource->findOrFail($id);\n\n $resource->update($data);\n\n return $resource;\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "a262aa354909e0f60e98829ffd019274", "score": "0.5557795", "text": "public function update(Request $request, $id)\n {\n $instrument = Instruments::find($id);\n if(isset($request->path)){\n $path = $request->file('path')->store('uploads', 'public');\n } else {\n $path = $instrument->path;\n }\n\n $instrument->update([\n 'name' => $request->name,\n 'href' => $request->href,\n 'description' => $request->content,\n 'photo' => $path\n ]);\n session()->flash('success','Инструмент успешно обновлен');\n return redirect()->route('instrument.index');\n }", "title": "" }, { "docid": "392bdf3b4d83d7a822d671646207f552", "score": "0.55553967", "text": "public function update($request, int $id);", "title": "" }, { "docid": "3cc3c8178bfb516c83781b7b045205b3", "score": "0.5553084", "text": "public function update()\n\t{\n\t\t$this->reset_error_msg();\n\t\t$result = ajax::asset_update(\n\t\t\t\t\t\t$this->schema->folder_id,\n\t\t\t\t\t\t$this->schema->view_name,\n\t\t\t\t\t\t$this->fields,\n\t\t\t\t\t\t$this->id\n\t\t);\n\t\tif (!is_int($result)) {\n\t\t\t$this->set_error_msg($result);\n\t\t}\t\n\t}", "title": "" }, { "docid": "39ec1d6074d8d2034e596ad13d30da68", "score": "0.55506486", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'price' => 'required|min:1',\n 'image' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',\n 'quantity' => 'required|min:1',\n ]);\n\n $product = Product::find($id);\n $product->store_id = Auth::guard('store')->user()->id;\n $product->product_name = $request->get('name');\n $product->product_description = $request->get('description');\n $product->product_price = $request->get('price');\n $product->product_quantity = $request->get('quantity');\n $current_image = $product->product_image;\n $new_image = \"\";\n\n if ($request->has('subcategory')) {\n $product->subcategory_id = $request->get('subcategory');\n }\n if ($request->has('parameter')) {\n $product->product_parameter_id = $request->get('parameter');\n }\n if ($request->has('image')) {\n $new_image = $request->file('image');\n $extension = $new_image->getClientOriginalExtension();\n $filename = 'product-' . time() . '.' . $extension;\n $product->product_image = $filename;\n $new_image->storeAs('products', $filename, 'public');\n }\n $product->save();\n if (Storage::disk('public')->exists('products/' . $new_image)) {\n Storage::disk('public')->delete('products/' . $current_image);\n }\n return redirect()->route('products.index')->with('success', 'Product updated');\n }", "title": "" }, { "docid": "b2529b99a7a37449008d06dce086f0aa", "score": "0.55367374", "text": "public function update(Request $request, $id)\n {\n $validateData = $request->validate([\n 'image' => ['max:1024','nullable'],\n 'link' => ['url','nullable']\n ]);\n\n $store = Promotionalslider::find($id);\n $store->link = $request->link;\n if($request->hasfile('image')){\n\n $imagePath = $store->image;\n\n if(File::Exists($imagePath)){\n File::delete($imagePath);\n }\n\n $filename = str_replace(' ','-', $request->image->getClientOriginalName());\n $request->image->move(public_path('media/promotional_slider/'),$filename);\n $store->image ='public/media/promotional_slider/'.$filename;\n }\n \n\n if($store->save()){\n $notification = array(\n 'message'=>'Successfully Promotional Slider Updated',\n 'alert-type'=>'success'\n );\n\n return redirect()->route('promotional-slider')->with($notification);\n }else{\n $notification = array(\n 'message'=>'Something Went Wrong',\n 'alert-type'=>'error'\n );\n\n return redirect()->route('promotional-slider')->with($notification);\n }\n }", "title": "" }, { "docid": "91039ce0cfc444382b037c86ba4ab01d", "score": "0.55300915", "text": "public function update( $data );", "title": "" }, { "docid": "e8f2a79f2bd8c3eb405e389cd50395bf", "score": "0.5526578", "text": "public abstract function update($data);", "title": "" }, { "docid": "21ec885e595c2bf310bc026dbe22811d", "score": "0.5520187", "text": "public function update(Request $request, $id)\n {\n\n\n $contents = $request->data;\n\n if ($id === 'options') {\n\n Storage::put('options.json', json_encode($contents));\n\n }\n\n if ($id === 'templates') {\n\n Storage::put('templates.json', json_encode($contents));\n\n }\n\n if ($id === 'documentation') {\n\n Storage::put('documentation.json', json_encode($contents));\n\n }\n\n\n return response('', 200);\n }", "title": "" }, { "docid": "ac2aad33da58e5ad706eece6ab1eea86", "score": "0.55200577", "text": "public function update(Request $request, $id): \\Illuminate\\Http\\RedirectResponse\n {\n $request->validate([\n 'name' => 'required',\n ]);\n $br = BaseResources::find($id);\n $br->name = $request->name;\n $br->save();\n return redirect()->route('bases.index')\n ->with('success','Base Resource has been updated successfully');\n }", "title": "" }, { "docid": "8f3102dfb73015454da2f2685b058666", "score": "0.5517063", "text": "public function update(Request $request, $id)\n {\n // $request->validate([\n // 'title' => 'required',\n // 'price' => 'required',\n // 'description' => 'required|numeric',\n // 'image' => 'required|image|mimes:jpeg,png,jpg,gif',\n // ]);\n\n\n $product = Product::find($id);\n $product->title = $request->get('Title');\n $product->description = $request->get('Description');\n //$product->image = $request->get();\n $product->price = $request->get('Price');\n if($request->hasFile('Image')){\n $file = $request->file('Image');\n $filename = time().'.'.$file->getClientOriginalExtension();\n $location = public_path('/images');\n $file->move($location,$filename);\n $oldImage = $product->image;\n \\Storage::delete($oldImage);\n $product->image = $filename;\n\n }\n $product->save();\n return back()->withInfo('product successfully update');\n }", "title": "" }, { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.55156153", "text": "public function update($item);", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5510812", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "b54270ca9c777eb769ba1aabcadc3d1e", "score": "0.55085415", "text": "public function update($object){\n \n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "550e526ae84b71f87da655893d62fd3e", "score": "0.55022335", "text": "public function update(Request $request, $id)\n {\n $productPic = $this->productRepo->find($id);\n $product = $request->except('_token', 'photo', '_method', 'product_categ', 'ar', 'en', 'volume', 'measure', 'num_of_item', 'item_cost');\n $product_categ = $request->get('product_categ');\n\n $activeLangCode = \\LanguageHelper::getLangCode();\n\n $product_trans = $request->only($activeLangCode);\n\n if ($request->hasFile('photo')) {\n // Delete old image first.\n $thumbnail_path = public_path() . '/images/products/thumb/' . $productPic->photo;\n File::delete($thumbnail_path);\n\n // Save the new one.\n $image = $request->file('photo');\n $imageName = $this->upload($image, 'products', true);\n $product['photo'] = $imageName;\n }\n\n $this->productRepo->update($id, $product, $product_trans, $product_categ);\n\n return redirect('/admin-panel/product')->with('updated', 'updated');\n }", "title": "" }, { "docid": "a43ab06ada401992dd7f3fdb88d45bfc", "score": "0.5498034", "text": "public function update(Model $acl_resource, array $info) {\n\n // Update record\n return parent::_update($acl_resource, $info);\n }", "title": "" }, { "docid": "e12ba95416c234deaa01e27943c5b363", "score": "0.5497075", "text": "public function update(ProductStoreRequest $request, $id)\n {\n //\n $product = Product::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->category_id = $request->category_id;\n $product->price = $request->price;\n $product->image_path = $product->image_path;\n\n \n if($product->save()) {\n if($request->hasFile('image_path')) {\n $extension = $request->file('image_path')->getClientOriginalExtension();\n\n $filename = $product->id . '.' . $extension;\n\n $path = $request->file('image_path')->storeAs('products', $filename);\n $product->image_path = $filename;\n $product->save();\n }\n }\n\n return redirect()->route('products.index')->with('success', 'Product has been updated');\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "5e25fde2b05dc8aa69161eca66edd608", "score": "0.5493595", "text": "public function update()\n\t\t{\n\t\t\t// with an insert instead.\n\t\t\t$this->save();\n\t\t}", "title": "" }, { "docid": "97425bf86b91309c01997fb129746a78", "score": "0.5489399", "text": "public function testUpdate() {\n\n $book = $this->bookFactory->generate(1, TRUE);\n $book->set('name', 'Changed name');\n $res = $this->patch('/api/books' . $book->getId(), $this->toJson($book->getValues(TRUE)));\n $this->assertEquals(204, $res->getStatusCode());\n $book = $this->bookStorage->find($book->getId());\n $this->assertEquals('Changed name', $book->get('name'));\n }", "title": "" }, { "docid": "85714b33bdb1da52c9f3c38b3fb0e4fd", "score": "0.54882276", "text": "abstract public function update($id);", "title": "" }, { "docid": "684d005a26a2cb523ebddd9952606e58", "score": "0.54879177", "text": "public function update(Request $request, Product $product)\n {\n //\n \n $product=Product::find($request->input('id'));\n $filename=$product->image;\n if($request->hasFile('img')){\n Storage::delete($filename);\n $filename=Storage::put('public/products', $request->file('img'));\n }\n $product->name=$request->input('name');\n $product->image=$filename;\n $update=$product->save();\n if($update){\n return redirect()->route('product.show',['product'=>$product])->with(['scucess' => 'Sucessfully updated']);\n }\n }", "title": "" }, { "docid": "69899e5cc810b430e81a78ef78bbb9aa", "score": "0.54833865", "text": "public function putAction()\n\t{\n\t\t$this->_connectionApi->put();\n\t}", "title": "" }, { "docid": "f84f36825279804eeb3fa246acad7d33", "score": "0.5482953", "text": "public function update(Request $request, $id)\n {\n //\n $data = $request->all();\n unset($data['_token']);\n unset($data['_method']);\n unset($data['image']);\n $rs = Pr::find($id)->update($data);\n if($rs) {\n if($request->image){\n $prs = Pr::find($id);\n $image_u = $prs->media;\n $image_u = str_replace('/storage/app/', '', $image_u);\n $path = '/storage/app/'.@$request->file('image')->store('prs');\n $prs->image = $path;\n $prs->save();\n Storage::delete($image_u);\n }\n return redirect(route('prs.index'));\n }else{\n return back();\n }\n }", "title": "" }, { "docid": "c583b303a0fc1fb0c4ff1107b3e09e10", "score": "0.5479377", "text": "public function update(StoreSlide $request, $id)\n {\n $slide = Slide::find($id);\n $slide->url = $request->input('url');\n\n if ($request->hasFile('cover')) {\n // upload and rsize image\n $file_handler = new CarouselFiles($slide, $request);\n $image = $file_handler->save();\n\n $slide->image = $image;\n }\n\n $slide->save();\n\n return redirect()->route('admin_carousel_edit', ['slide' => $id]);\n }", "title": "" }, { "docid": "9597f2dbc4718b9f333e4446e6945f31", "score": "0.5478411", "text": "public function update($data) {\n }", "title": "" }, { "docid": "749485fd3edd17fca5d56cd2e62d0c66", "score": "0.547553", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n\n $requestData = $request->all();\n\n if ($request->hasFile('image_url')) {\n\n $old_image = $item->image_url;\n $file = $request->file('image_url');\n $path = $this->fileUpload($file, 'items');\n $requestData['image_url'] = $path;\n File::delete(public_path() . $old_image);\n\n }\n\n $item->update($requestData);\n\n return redirect('/admin/items');\n }", "title": "" }, { "docid": "9f003d2b5bf2d688d40ed0c072d56402", "score": "0.5468303", "text": "public function update(Request $request, $id)\n {\n Auth::User()->authorizeRoles(['admin']);\n $this->validate($request, [\n 'title' =>'required',\n 'description' =>'required',\n 'isbn' =>'required',\n 'quantity' =>'required',\n 'price' =>'required',\n 'author' =>'required',\n 'genre' =>'required',\n 'image' =>'image|nullable|max:1999'\n ]);\n\n $item = Catalog::find($id);\n if ($request->hasFile('image')) {\n $path = $request->file('image')->store('catalog_images', 's3');\n if ($item->image != 'catalog_images/noimage.jpg') {\n Storage::disk('s3')->delete($item->image);\n }\n $item->image=$path;\n }\n $item->title=$request->input('title');\n $item->description=$request->input('description');\n $item->isbn=$request->input('isbn');\n $item->quantity=$request->input('quantity');\n $item->price=$request->input('price');\n $item->authorId=$request->input('author');\n $item->genreId=$request->input('genre');\n $item->save();\n return redirect('/catalog/'.$id)->with('success', 'Item updated');\n }", "title": "" }, { "docid": "dbac649412e8591fc3a2a2615f2f7767", "score": "0.5468077", "text": "abstract protected function update($entity);", "title": "" }, { "docid": "6555dceeb8fb592d28c1c54627f3087e", "score": "0.5467873", "text": "public static function updateResource($path, $object, $email)\n {\n if (is_array($object)) {\n $object = (object)$object;\n }\n self::connection()->addHeader('X-BEHALF-KEY', $email);\n return self::connection()->put(self::$api_path . $path, $object);\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "fff4ed84e179c6d810f4109953693135", "score": "0.5464452", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.5460793", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "4360333bf1732261e8e76d77713982a2", "score": "0.54556817", "text": "private function updateEntity(Model\\BaseModel $entity, string $uri, string $resourceFieldKey): void {\n\t\t$tags = [];\n\t\tif ($entity instanceof Model\\TaggableInterface) {\n\t\t\t// Preserve the tags temporarily.\n\t\t\t// We'll sync them later.\n\t\t\t$tags = $entity->getTags();\n\t\t}\n\n\t\t$rawApiResponse = $this->communicator->put($uri, [], [\n\t\t\t$resourceFieldKey => $entity->export(),\n\t\t]);\n\n\t\t$newData = $rawApiResponse->getValue(sprintf('[%s]', $resourceFieldKey));\n\t\t$entity->hydrate($newData);\n\n\t\tif ($entity instanceof Model\\TaggableInterface) {\n\t\t\t// The requests (and hydration) above made us lose the tags,\n\t\t\t// since they're managed through another API.\n\t\t\t// Let's assign/de-assign tags now.\n\t\t\t$this->ensureTagsSynced($entity, $tags);\n\t\t}\n\t}", "title": "" }, { "docid": "95ec1039e714eda8d36c46e04fc2aeae", "score": "0.54446787", "text": "public function updateResource(Resources $resources) {\n $preparedStmt = \"UPDATE \" . $resources->getTableName() . \" SET title=?, categoryName=?, linkResource=? WHERE resourceID=?\";\n $resources->setSql($preparedStmt);\n $response = $this->connection->update($resources);\n return $response;\n }", "title": "" }, { "docid": "7db59e65f55b9762d20b09aede45101b", "score": "0.54399514", "text": "public function update(Request $request, Product $product)\n {\n if($request['image']){\n $file = $request['image'];\n $image = $this->ImageUploader($file,'images/');\n// unlink($product->image);\n }else{\n $image = $product->image;\n }\n if($request['file']){\n $file = $request['image'];\n $val = $this->ImageUploader($file,'files/');\n// unlink($product->file);\n }else{\n $val = $product->file;\n }\n\n\n $data = $request->all();\n $product->tags()->sync($data['tag_id']);\n $data['image'] = $image;\n $data['file'] = $val;\n\n $product->update($data);\n return redirect(route('product.index'));\n }", "title": "" }, { "docid": "80ec716f79dfea9cd0d35ec83acd6fad", "score": "0.54376215", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n \t\n \tif(isset($input['image']))\n\t \t$input['image'] = $this->upload ($input['image']);\n \t\n \tItem::findOrFail($id)->update($input);\n \t\n \treturn redirect()->back();\n }", "title": "" }, { "docid": "45006333af499b7a8ef5e992e8465995", "score": "0.54331666", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n\t\tself::storeOrUpdate($product, $request);\n\n\t\treturn redirect('/products')->with('edited', \"Product edited: $product->name\");\n }", "title": "" }, { "docid": "8fb9613a7e05f846bb10235d1d3c4c4b", "score": "0.54254407", "text": "public function update(Request $request, $id)\n {\n $validation=$request->validate([\n \"text\"=>\"required\",\n\n \n ]);\n $update=Slider::find($id);\n if (request()->hasFile(key:'img')) {\n $img=request()->file(key:'img')->hashName();\n request()->file(key:'img')->storeAs(path:'',name:$img);\n $update->img=$img;\n }\n $update->text=$request->text;\n $update->save();\n return redirect()->back();\n\n }", "title": "" }, { "docid": "2ff7fd3eab671b99901b6f6734766160", "score": "0.54233396", "text": "abstract public function update($entity);", "title": "" }, { "docid": "f34a06d4191c968bf71a45ea518e7ed0", "score": "0.54212976", "text": "public function updateObject( $id, $acl = null, $metadata = null, \n\t\t$extent = null, $data = null, $mimeType = null, $checksum = null );", "title": "" }, { "docid": "b67a35c68f5872515b02fce609275aaa", "score": "0.54202235", "text": "public function update(Request $request, $id)\n {\n\n $product = \\App\\Product::find($id);\n\n if ($request->hasFile('image')) {\n $file = $request->file('image');\n\n $destinationPath = 'uploads/products/images'; // upload path\n $extension = $file->getClientOriginalExtension(); // getting image extension\n $fileName = rand(11111,99999).'.'.$extension; // renameing image\n\n $imageName = $destinationPath . '/' . $fileName;\n\n $file->move($destinationPath, $fileName); // uploading file to given path \n\n $picPath = $imageName;\n\n }else{\n $picPath = $product->pic;\n }\n \n $name = $request->get('product_name') ?: $product->name;\n $desc = $request->get('product_desc') ?: $product->desc;\n $price = $request->get('product_price') ?: $product->price; \n\n $product = \\App\\Product::find($id)->update([\n 'name' => $name,\n 'desc' => $desc,\n 'price' => $price,\n 'pic' => $picPath\n ]);\n\n return redirect('/admin/viewProducts');\n }", "title": "" }, { "docid": "cdb8493452b057388fcb678d2dccb96c", "score": "0.5417866", "text": "public function update($id, Request $request);", "title": "" } ]
74015f91dc3f8df6ff1ff371ac018e56
actualizamos los datos del usuario con id = 3
[ { "docid": "40a5658e9f11554604753650673529b9", "score": "0.0", "text": "public function update_user()\n {\n $data = array(\n 'username' => 'silvia',\n 'fname' => 'madrejo',\n 'lname' => 'sánchez'\n );\n $this->db->where('id', 3);\n $this->db->update('users', $data);\n }", "title": "" } ]
[ { "docid": "2cf1d8971ba9abb9670af797809b1dea", "score": "0.7502199", "text": "public function actualizarUsuario(){\n if(isset($_GET[\"id\"])){\n $id = (int)$_GET[\"id\"];\n \n $usuario = new Usuario();\n \n $this->view(\"dashboard\", array(\n \"allUsers\" => $usuario->getAll(),\n \"userUpdates\" => $usuario->getById($id)\n ));\n }\n }", "title": "" }, { "docid": "a04d76d3fa1491d8acf43b503fc74b05", "score": "0.7331889", "text": "public function actualizar($id)\n {\n if ($id == 1) {\n $data = [];\n } else {\n $data = [\n 'nombre' => $_POST['nombre'],\n 'apellido' => $_POST['apellido'],\n 'username' => $_POST['username'],\n 'password ' => $_POST['password'],\n 'correo ' => $_POST['correo'],\n 'tipo_usuario' => $_POST['tipo'],\n 'estado' => $_POST['estado'],\n ];\n }\n $this->UsuarioModel->update($data, $id);\n }", "title": "" }, { "docid": "20754c2b8d530309516717955729b974", "score": "0.6851408", "text": "public function actualizar($id, $data) {\n if (isset($data[\"password\"])) {\n $data[\"password\"] = md5($data[\"password\"]);\n }\n return $this->update(self::tabla, $data, array(\"id\" => $id));\n }", "title": "" }, { "docid": "1429235fb81bfe004db8bd50d4a5a6ed", "score": "0.68323666", "text": "public function actualizarUsuario($id,$data)\n\t{\n\t\t$this->db->where('IdLogin', $id);\n\t\t$res = $this->db->update('rtslogin_deb', $data);\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "1d416b22325f620b8d480eed5bd36d93", "score": "0.6813799", "text": "public function actualizar() {\n try {\n $conexion = Conexion::getInstance();\n $conexion->consulta(\n \"UPDATE usuario SET \".\n \"nombre = '$this->nombre', \".\n \"login = '$this->login', \".\n \"contrasena = '$this->contrasena' \".\n \"WHERE id = $this->id\");\n }\n catch (MySQLException $e ){\n throw $e;\n }\n }", "title": "" }, { "docid": "2f53cc7575f4045631e9986f4c18caa0", "score": "0.6808202", "text": "public function actualiza_usuario($id,$nombre,$password,$usuario){\r\n $this->dbh = Conexion::singleton_conexion();\r\n \r\n $password = md5($password);\r\n try {\r\n $query = $this->dbh->prepare('UPDATE `admin` SET `username` = :usuario, `password` = :pass, `nombre` = :nombre, activo = \"1\" WHERE `admin`.`id` = :id');\r\n $query->bindParam(':id', $id);\r\n $query->bindParam(':usuario', $usuario);\r\n $query->bindParam(':pass', $password);\r\n $query->bindParam(':nombre', $nombre);\r\n $query->execute();\r\n $this->dbh = null;\r\n } catch (PDOException $e) {\r\n $e->getMessage();\r\n }\r\n }", "title": "" }, { "docid": "6ff8410c3b7e73d65b4b265bd88c3f7a", "score": "0.66850364", "text": "public function actualizarUsuario($obj){\n try {\n $consulta = \"UPDATE usuario SET nombre=?,password=?,email=?,nivelAcceso=? WHERE codUsuario=?\";\n $param = array(\n $obj->__GET(\"nombre\"),\n $obj->__GET(\"password\"),\n $obj->__GET(\"email\"),\n $obj->__GET(\"nivelAcceso\"),\n $obj->__GET(\"codUsuario\")\n );\n $this->result = $this->con->ConsultaSimple($consulta, $param);\n \n }catch (Exception $e){\n echo($e->getMessage());\n } \n }", "title": "" }, { "docid": "7d71fa7dacaa9155eaba1496d3d67787", "score": "0.666239", "text": "public function setIdusuario($idusuario){\n $this->idusuario = $idusuario;\n }", "title": "" }, { "docid": "c20a7ef54863dbdd371148b8cdd9c609", "score": "0.665199", "text": "public function modificar_usuario() {\n\n\n try{\n \n $pdo = AccesoDB::getCon();\n\n $sql_mod_usu = \"UPDATE `usuario`\n SET\n `nom_usu` = :nombre\n WHERE `id_usu` = :id \";\n\n\n $stmt = $pdo->prepare($sql_mod_usu);\n $stmt->bindParam(\":nombre\", $this->nombre, PDO::PARAM_STR);\n $stmt->bindParam(\":id\", $this->id_usu, PDO::PARAM_INT);\n\n $stmt->execute();\n \n\n } catch (Exception $e) {\n echo \"-1\";\n //echo\"Error, comuniquese con el administrador\". $e->getMessage().\"\";\n }\n }", "title": "" }, { "docid": "1358ad959c30d385dda9474dbe7f99cb", "score": "0.65957093", "text": "public function ActualizarUsuario($data){\n $this->db->update('usuario', $data, array('user' => $data['user']));\n }", "title": "" }, { "docid": "4c9a6f674c0d1ed13d4a2881c0184537", "score": "0.65782785", "text": "function editar_c($id_persona=null){\n $this->set('title_for_layout','Editar Datos de Cuenta de Usuario');\n $this->loadModel('User');\n $user_id=$this->DatosPersonale->field('user_id',array('DatosPersonale.id'=>$id_persona));\n $this->set('user_id',$user_id);\n $username=$this->User->field('username',array('User.id'=>$user_id));\n $this->set('username',$username);\n \n }", "title": "" }, { "docid": "35b05c8146723cd97c6d392472dd29c8", "score": "0.6567716", "text": "public function actualizar($id=NULL) \n {\n $data_us = array(\n 'usuario' => $this->input->post('usuario'),\n );\n $data_per = array(\n 'email' => $this->input->post('email'),\n 'nombres' => $this->input->post('nombres'),\n 'apellidos' => $this->input->post('apellidos'),\n 'dni' => $this->input->post('dni'),\n 'direccion' => $this->input->post('direccion'),\n ); \n \n $this->load->model('admin_model');\n $this->admin_model->actualizar_usuario($data_us,$data_per, $id); \n redirect('admin_controller/usuarios');\n }", "title": "" }, { "docid": "33a8809557785dea4735e21535cc1993", "score": "0.65592474", "text": "public function editUser($data)\n {\n if (isset($data['id']) && ctype_digit((string)$data['id'])) {\n $sql = 'UPDATE users SET login = ? WHERE id = ?';\n $this->_db->executeQuery($sql, array($data['login'], $data['id']));\n\n \n } else {\n $sql = 'INSERT INTO users (login) VALUES (?)';\n $this->_db->executeQuery($sql, array($data['login']));\n }\n }", "title": "" }, { "docid": "bd5dff9048f53e8e0a26a8ad2ab28fd8", "score": "0.65540487", "text": "public function setUsuario_id($usuario_id){\n $this->usuario_id = $usuario_id;\n }", "title": "" }, { "docid": "1c9b383d3439b35cca22aaeea055efe2", "score": "0.65434074", "text": "public function setIdusuario($value){\n\n\t\t$this->idusuario = $value;\n\n\t}", "title": "" }, { "docid": "9c32a572b12359db8e6e4d133f98b759", "score": "0.65233153", "text": "private function asignarDatosNuevoUsuario() {\n $this->_user = new Usuario;\n $this->_user->numeroDocumento = $this->username;\n $this->_user->alias = $this->username;\n $this->_user->estado = Usuario::ESTADO_ACTIVO;\n //$this->_user->codigoPerfil = \\Yii::$app->params['PerfilesUsuario']['intranet']['codigo'];\n $this->_user->nombrePortal = \\Yii::$app->getModule(\"intranet\")->id;\n }", "title": "" }, { "docid": "916e481e229fc3f046404cabbb047628", "score": "0.65226144", "text": "public function atualizarContato($id){\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n $nome = $_POST['txtnome'];\n $usuario = $_POST['txtusuario'];\n $nivel = $_POST['txtnivel'];\n $senha = $_POST['txtsenha'];\n\n $encryptSenha = md5($senha);\n\t\t\t\t\n\t\t\t\t//verificanso se o input de upload está vazio\n\t\t\t\tif($_FILES['fleimagem']['size'] == 0){\n\t\t\t\t\t//se estiver, mantém a imagem atual\n\t\t\t\t\t$imagem = $_POST['imagem'];\n\t\t\t\t}else{\n\t\t\t\t\t//se não estiver, realiza o upload da nova\n\t\t\t\t\t$imagemClass = new Imagem();\n\t\t\t\t\t$imagem = $imagemClass->uploadImagem();\n\t\t\t\t}\n }\n\n //instancia da classe usuario\n $usuarioClass = new Usuario();\n\n $usuarioClass->setId($id);\n $usuarioClass->setImagem($imagem);\n $usuarioClass->setNome($nome);\n $usuarioClass->setUsuario($usuario);\n $usuarioClass->setNivel($nivel);\n $usuarioClass->setSenha($encryptSenha);\n\n //instancia da classe usuarioDAO\n $usuarioDAO = new UsuarioDAO();\n\n //chamada da função de atualizar os dados\n $status = $usuarioDAO->Update($usuarioClass);\n\n echo $status;\n }", "title": "" }, { "docid": "f8166807ca6f916bbe298641063aa22d", "score": "0.6516609", "text": "public function updateDatos()\n\t{\n\t\t$id \t\t\t= null;\n\t\t$userEmail \t\t= $this->input->post('userEmail');\n\t\t$userPass \t\t= $this->input->post('userPass');\n\n\t\t$this->load->model('CrudModel');\n\t\t$this->CrudModel->updateDatos($id,$userEmail,$userPass);\n\n\t\t$this->load->view('crudView');\n\t}", "title": "" }, { "docid": "5d0d9167ea85a5cdb3b8999665b22f8c", "score": "0.64936304", "text": "function borra_user($id) {\n\n\t\t// Borramos el usaurio\n\t\t$sql = \"DELETE FROM usuarios WHERE idu=\".$id;\n\t\t$resultado = $this -> db -> query($sql);\n\n\t\t// Ponemos sus pisos en barbecho (osea desvalidamos, que nunca se sabe)\n\t\t$sql = \"UPDATE pisos SET verificado=false WHERE idusuario=\".$id;\n\t\t$resultado = $this -> db -> query($sql);\n\n\t\t// Y ahora eliminamos comentarios y denuncias\n\t\t$sql = \"DELETE FROM comentarios WHERE idusuario=\".$id;\n\t\t$resultado = $this -> db -> query($sql);\n\n\t\t// Y ahora las denuncias\n\t\t$sql = \"DELETE FROM denuncias WHERE iddenunciante=\".$id;\n\t\t$resultado = $this -> db -> query($sql);\n\t}", "title": "" }, { "docid": "bc62360e1dad535678b466b485660d7e", "score": "0.64676", "text": "public static function editarUsuario($usuario){\n try {\n $conexion = database::conexion();\n $id = $usuario->get_id();\n $actualizacion = \"UPDATE usuarios SET email=:email, password=:password, id=:id WHERE id=$id\";\n $consultaPreparada = $conexion->prepare($actualizacion);\n $consultaPreparada->bindValue(':email', $usuario->get_email());\n $consultaPreparada->bindValue(':password', $usuario->get_password());\n $consultaPreparada->bindValue(':id', $usuario->get_id());\n $consultaPreparada->execute();\n $exito = 1;\n return $exito;\n } catch (exception $e) {\n $exito = 0;\n return $exito;\n }\n}", "title": "" }, { "docid": "609cf9f76e37c3516a9e9d6a9f42e920", "score": "0.64447975", "text": "public function updateAction($id) {\n $this->get('session')->getFlashBag()->clear();\n $usuario = $this->get('security.token_storage')->getToken()->getUser();\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('UsuarioBundle:Usuario')->find($id);\n if (!$entity) {\n throw $this->createNotFoundException('No se ha podido encontrar la entidad Usuario.');\n }\n $formulario = $this->createForm(new UsuarioType($usuario, $this->getPaginasInicio($entity->getPerfil())), $entity);\n $request = $this->getRequest();\n $perfil_anterior = $entity->getPerfil();\n $formulario->submit($request);\n $data = $request->request->get('pac_usuariobundle_usuariotype');\n if ($formulario->isValid()) {\n if (!$this->codIdentValid($data)) {\n return $this->render('UsuarioBundle:Usuario:edit.html.twig', array(\n 'entity' => $entity,\n 'formulario' => $formulario->createView(),\n ));\n }\n if ($perfil_anterior->getId() != $entity->getPerfil()->getId())\n $entity->setPaginaInicio($entity->getPerfil()->getPaginaInicioDefault());\n \n $em->persist($entity);\n $em->flush();\n $this->setFlash('success', 'Los datos de tu perfil se han actualizado correctamente');\n return $this->render('UsuarioBundle:Usuario:edit.html.twig', array(\n 'entity' => $entity,\n 'formulario' => $formulario->createView(),\n ));\n }\n\n $this->setFlash('error', 'No se han podido realizar los siguientes cambios');\n return $this->render('UsuarioBundle:Usuario:edit.html.twig', array(\n 'entity' => $entity,\n 'formulario' => $formulario->createView(),\n ));\n }", "title": "" }, { "docid": "e4e56e50e19914de9e0c912ef6edd72b", "score": "0.6444679", "text": "public function actualizarUser(){\r\n //convertir en objeto el array POST\r\n $datos = (object) $_POST;\r\n\r\n //Guardar los datos del usuario\r\n $usuario = User_model::getIdObj($datos->idUser);\r\n //Establecer los nuevos valores\r\n $usuario->setNombre($datos->sNombre);\r\n $usuario->setApellidos($datos->sApellidos);\r\n if(empty($datos->sPassword)){\r\n $usuario->setPass( $usuario->getPass());\r\n }else {\r\n $usuario->setPass(crypt($datos->sPassword, Util::getSalt()));\r\n }\r\n $usuario->setARol($datos->aRol);\r\n $usuario->setEmail($datos->sEmail);\r\n $usuario->setTelefono1($datos->sTelefono1);\r\n $usuario->setTelefono2($datos->sTelefono2);\r\n $usuario->setDireccion($datos->sDireccion);\r\n $usuario->setCodigoPostal($datos->sCodigoPostal);\r\n $usuario->setGenero($datos->cGenero);\r\n $usuario->setAvatar($datos->sAvatar);\r\n\r\n return $usuario->guardar();\r\n }", "title": "" }, { "docid": "e303d4810f568e9c1f47579bd6d26d21", "score": "0.6431057", "text": "public function actualizarUsuario(Request $request, $id){\n\t\tif($request->has('actualizar')){\n\t\t\t$user=User::find($id);\n\t\t\tif($request->query('actualizar')=='password'){\n\t\t\t\tif($request->has('password')){\n\t\t\t\t\t$user->password = bcrypt($request->password);\n\t\t\t\t}else{\n\t\t\t\t\treturn response()->json([\n\t\t\t\t\t\t'status' => 'user_updateerror',\n\t\t\t\t\t\t'message'=> 'Falta valor a reemplazar'\n\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$user->save();\n\t\t\treturn response()->json([\n\t\t\t\t'status' => 'ok',\n\t\t\t\t'message'=> 'Los datos del usuario se actualizaron con éxito'\n\t\t\t]);\n\t\t}\n\n\t\treturn response()->json([\n\t\t\t'status' => 'user_updateerror',\n\t\t\t'message'=> 'Falta parámetro actualizar que indique los campos a cambiar'\n\t\t]);\n\t}", "title": "" }, { "docid": "003a61502efcbc6e29fd3b3141dde4d9", "score": "0.6423516", "text": "public function editarUsuarioRole($datos)\n\t {\n\t \t\t// \t$id_r = (int) $id_role;\n\t\t\t// $this->_db->prepare(\"UPDATE acl_user SET id_role = :roleu WHERE id = :id\")\n\t\t\t// \t\t->execute(\n\t\t\t// \t\t\tarray(\n\t\t\t// \t\t\t\t'id'=>$id_usuario,\n\t\t\t// \t\t\t\t'roleu'=>$id_role\n\t\t\t// \t\t\t)\n\t\t\t// \t\t);\n\t \t\n\t\t\t$this->actualizarSQL($datos,\"acl_user\");\n\t }", "title": "" }, { "docid": "7bb2021316f65e1715d8d5a9be7d94fc", "score": "0.6420248", "text": "public function editarComent(){\n\t\t \n$sql=\"Update usuarios set id_usuario=$this->id_usuario,observaciones='$this->observaciones' where id_usuario=\".$this->id_usuario;\n\t\t $this->con->query($sql);\n\t\t \n\t\t \n\t\t }", "title": "" }, { "docid": "a89212629be72bc9c8346f5cfb5d804a", "score": "0.64020133", "text": "public function edit($data=array()) {\n foreach ($data as $campo=>$valor) {\n $$campo = $valor;\n }\n \n $this->parametros = array($usua_codigo,$usua_nombres,$usua_apellidos,$usua_fechaNacimiento,$usua_correoElectronico,$usua_codigoRol,$usua_clave,$usua_estado);\n $this->sp = \"str_consultaUsuario_upd\";\n $this->executeSPAccion();\n if($this->filasAfectadas>0){\n $this->mensaje=\"Usuario modificado exitosamente\";\n }else{\n $this->mensaje=\"No se ha actualizado al usuario\";\n }\n }", "title": "" }, { "docid": "c01b93ea0cb7a0688daea5b9b339dc1b", "score": "0.6400552", "text": "function edit_data($id, $datauser){\n\t\t$this->db->where($this->id, $id);\n\t\t$this->db->update($this->table_user, $datauser);\n\t}", "title": "" }, { "docid": "65f68f75a571e32338ab0216f29e902e", "score": "0.63954216", "text": "function actualizar_cliente($datos){\n\t\tif(array_key_exists('password', $datos)){\n\t\t\t$datos['password'] = md5($datos['email'].\"|\".$datos['password']);\t\n\t\t}\n\t\t\t\t\n\t\t\n\t\t$this->query = \"UPDATE CMS_IntCliente SET salutation = '\".$datos['salutation'].\"',\n\t\t\t\t\t\t\t\t\t\t\t\t fname = '\".$datos['fname'].\"',\n\t\t\t\t\t\t\t\t\t\t\t\t lname = '\".$datos['lname'].\"',\n\t\t\t\t\t\t\t\t\t\t\t\t email = '\".$datos['email'].\"',\n\t\t\t\t\t\t\t\t\t\t\t\t password ='\".$datos['password'].\"'\t \n\t\t WHERE id_clienteIn = '\" . $datos['id_clienteIn'] . \"'\";\n\t\t$res = $this->execute_single_query();\n\t\treturn $res;\t\t\n\t}", "title": "" }, { "docid": "5c715766c98322efba3a05d3d3308d5a", "score": "0.6391741", "text": "public function setId_Usuario($id_usuario)\n {\n $this->id_usuario = $id_usuario;\n }", "title": "" }, { "docid": "fdb5f68a28466517ab37ca64ce56ef3d", "score": "0.6346249", "text": "public function updateUsuario(Request $request, $id)\n {\n if (auth()->user()->id_profesor) {\n\n $usuario = Usuario::find($id);\n\n\n if ($request->password) {\n //$password = bcrypt($request->password);\n //$usuario->update(\"password\"->$password);\n $request->password = bcrypt($request->password);\n $usuario->update(array_merge(\n $request->all(),\n ['password' => bcrypt($request->password)]\n ));\n } else {\n $usuario->update($request->all());\n }\n\n unset($usuario['password']);\n unset($usuario['codigo_verificacion\t']);\n\n if ($usuario->id_alumno) {\n $alumno = Alumno::find($usuario->id_alumno);\n $alumno->update($request->all());\n $respuesta = response()->json([\n 'message' => 'Actualizado con éxito',\n 'user' => [$usuario, $alumno]\n ], 200);\n } else {\n $profesor = Profesor::find($usuario->id_profesor);\n $profesor->update($request->all());\n unset($profesor['es_admin']);\n $respuesta = response()->json([\n 'message' => 'Actualizado con éxito',\n 'user' => [$usuario, $profesor]\n ], 200);\n }\n\n return $respuesta;\n } else if (auth()->user()->id == $id) {\n\n $usuario = Usuario::find(auth()->user()->id);\n\n if ($request->password) {\n $request->password = bcrypt($request->password);\n $usuario->update(array_merge(\n $request->all(),\n ['password' => bcrypt($request->password)]\n ));\n } else {\n $usuario->update($request->all());\n }\n\n unset($usuario['password']);\n unset($usuario['codigo_verificacion\t']);\n\n if ($usuario->id_alumno) {\n $alumno = Alumno::find($usuario->id_alumno);\n $grupo_origen = $alumno->id_grupo;\n //return $grupo_origen;\n $alumno->update($request->all());\n $alumno->update(['id_grupo' => $grupo_origen]);\n\n $respuesta = response()->json([\n 'message' => 'Actualizado con éxito',\n 'user' => [$usuario, $alumno]\n ], 200);\n } else {\n $profesor = Profesor::find($usuario->id_profesor);\n $profesor->update($request->all());\n unset($profesor['es_admin']);\n $respuesta = response()->json([\n 'message' => 'Actualizado con éxito',\n 'user' => [$usuario, $profesor]\n ], 200);\n }\n\n return $respuesta;\n } else {\n return response()->json([\n 'error' => 'No autorizado',\n ], 401);\n }\n }", "title": "" }, { "docid": "86904051917a0c120ac4ca02cfd56633", "score": "0.6329885", "text": "private function poblar($datos) {\n $this->id = $datos['id_usuario'];\n $this->nombre = $datos['nombre'];\n $this->correo = $datos['correo'];\n $this->contraseña = $datos['contraseña'];\n $this->rol = $datos['rol'];\n $this->estado = $datos['estado'];\n }", "title": "" }, { "docid": "71a71ddba4b7aba10f616b589578bafd", "score": "0.6328504", "text": "function actualizar(){\n $this->idu = $this->input->post(\"idu\",TRUE);\n $this->nombreu = $this->input->post(\"nombreu\",TRUE);\n $this->email = $this->input->post(\"email\",TRUE);\n $this->login = $this->input->post(\"login\",TRUE);\n $this->password = md5($this->input->post(\"password\",TRUE));\n $this->tipo = $this->input->post(\"tipo\",TRUE);\n $datos=array(\n 'nombreu'=> $this->nombreu,\n 'email'=> $this->email,\n 'login'=> $this->login,\n 'password'=> $this->password,\n 'tipo' => $this->tipo\n );\n \n $this->db->where('idu', $this->idu);\n $this->db->update('usuarios',$datos);\n \n \n }", "title": "" }, { "docid": "2134e4ae8a225e42377fc39afa4001af", "score": "0.6319754", "text": "public function update($id,$data){\n\t\t$this->db->where(\"id\",$id);//Para actualizar un solo registro\n\t\treturn $this->db->update(\"usuarios\",$data);//Nombre de la tabla y la informacion de dicha tabla, update BOOLEAN TRUE or FALSE\n\t}", "title": "" }, { "docid": "5c4bdc13a65425718631d410cd575a1e", "score": "0.63182825", "text": "public static function editarUsuario($request, $id)\n {\n $oldUsuario = Usuarios::findOrFail($id);\n $usuario = Usuarios::findOrFail($id);\n $usuario->update([\n 'USR_Documento_Usuario' => $request['USR_Documento_Usuario'],\n 'USR_Nombres_Usuario' => $request['USR_Nombres_Usuario'],\n 'USR_Apellidos_Usuario' => $request['USR_Apellidos_Usuario'],\n 'USR_Fecha_Nacimiento_Usuario' => $request['USR_Fecha_Nacimiento_Usuario'],\n 'USR_Direccion_Residencia_Usuario' => \n $request['USR_Direccion_Residencia_Usuario'],\n 'USR_Telefono_Usuario' => $request['USR_Telefono_Usuario'],\n 'USR_Correo_Usuario' => $request['USR_Correo_Usuario'],\n 'USR_Nombre_Usuario' => $request['USR_Nombre_Usuario'],\n 'USR_Costo_Hora' => $request['USR_Costo_Hora']\n ]);\n LogCambios::guardar(\n 'TBL_Usuarios',\n 'UPDATE',\n 'Actualizó los datos los datos del usuario de la siguiente forma:'.\n ', USR_Documento_Usuario -> '.$oldUsuario->USR_Documento_Usuario.' / '.$request['USR_Documento_Usuario'].\n ', USR_Nombres_Usuario -> '.$oldUsuario->USR_Nombres_Usuario.' / '.$request['USR_Nombres_Usuario'].\n ', USR_Apellidos_Usuario -> '.$oldUsuario->USR_Apellidos_Usuario.' / '.$request['USR_Apellidos_Usuario'].\n ', USR_Fecha_Nacimiento_Usuario -> '.$oldUsuario->USR_Fecha_Nacimiento_Usuario.' / '.$request['USR_Fecha_Nacimiento_Usuario'].\n ', USR_Direccion_Residencia_Usuario -> '.$oldUsuario->USR_Direccion_Residencia_Usuario.' / '.$request['USR_Direccion_Residencia_Usuario'].\n ', USR_Telefono_Usuario -> '.$oldUsuario->USR_Telefono_Usuario.' / '.$request['USR_Telefono_Usuario'].\n ', USR_Correo_Usuario -> '.$oldUsuario->USR_Correo_Usuario.' / '.$request['USR_Correo_Usuario'].\n ', USR_Nombre_Usuario -> '.$oldUsuario->USR_Nombre_Usuario.' / '.$request['USR_Nombre_Usuario'].\n ', USR_Costo_Hora -> '.$oldUsuario->USR_Costo_Hora.' / '.$request['USR_Costo_Hora'],\n session()->get('Usuario_Id')\n );\n }", "title": "" }, { "docid": "55b25be54cd292eb207adc01aef60c27", "score": "0.6288361", "text": "function User($id){\r\n\t\t$this->id=$id;\r\n\t\t$this->getInfo();\r\n\t}", "title": "" }, { "docid": "7da7c530d1cb8e5031854d8e0bbbf224", "score": "0.6284409", "text": "public function actualizarAlumno($id, $nombre,$apellido, $email, $password, $admin, $telefono, $fecha, $imagen){\n $bd = ControladorBD::getControlador();\n $bd->abrirBD();\n $consulta = \"UPDATE usuarios SET nombre=:nombre, apellido=:apellido, email=:email, password=:password, admin=:admin, \n telefono=:telefono, fecha=:fecha, imagen=:imagen \n WHERE id=:id\";\n $parametros= array(':id' => $id, ':nombre'=>$nombre, ':apellido'=>$apellido, ':email'=>$email,':password'=>$password,\n ':admin'=>$admin, ':telefono'=>$telefono,':fecha'=>$fecha,':imagen'=>$imagen);\n $estado = $bd->actualizarBD($consulta,$parametros);\n $bd->cerrarBD();\n return $estado;\n }", "title": "" }, { "docid": "dc6cbcee03008798e3b23f31e2c8d14b", "score": "0.62809956", "text": "public function actualizarRolInactivo($id,$data)\n\t{\n\t\t$this->db->where('IdPersona_deb', $id);\n\t\t$res = $this->db->update('rtspersonarol_det', $data);\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "02e8dae19e8bf171bdf3a7b81e7e43cf", "score": "0.62779504", "text": "public function edit($id = null){\n \n\t\t//VERIFICADOR DE ACESSO RESTRITO CADASTRADO\n\t\t$this->requestAction(array('controller'=>'privileges', 'action'=>'verificaAcesso', 'params'=>'/users/edit' ));\n\t\t\n\t\t\n\t\t /* LOG DE USUARIOS QUE EDITARAM */\n\t\tself::gravaLog(\"[users-edit]\");\n\t\t\n\t\t$dadosView = array( );\n \t\t\n //CONFIGURANDO UMA CHAMADA DAS INFORMACOES DA TABELA `restaurants` PARA SEREM LISTADA NA COMBO DAS VIEWS (EXEMPLO EDIT.CTP)\n $this->loadModel('Restaurant'); \n $dadosView['listaRestaurantes'] = $this->Restaurant->find('list');\n $this->set($dadosView);\n \n $dadosGrupo = array( );\n //CONFIGURANDO UMA CHAMADA DAS INFORMACOES DA TABELA `restaurants` PARA SEREM LISTADA NA COMBO DAS VIEWS (EXEMPLO EDIT.CTP)\n /*$this->loadModel('Group'); \n\t\t $dadosGrupo['listaGrupos'] = $this->Group->find('list');\n\t\t $this->set($dadosGrupo);\n \n\t\t\t//$this->User->find('all'); \n\t\t*/\n \n if(!$id){\n throw new NotFoundException(__('Usuário Inválido'));\n }\n \n $user = $this->User->findById($id);\n //$this->User->id = $id;\n\t\t\n\t\t$senha = $user['User']['password'];\n \n if(!$user){\n throw new NotFoundException(__('Usuário Inválido'));\n }\n \n if ($this->request->is('post') || $this->request->is('put')){\n \t\t\t\n\t\t\t// Se vier o campo Senha, adicionamos a validação da senha no model User\n\t\t\tif ( isset($this->request->data['User']['password']) && $this->request->data['User']['password'] !=='' || $this->request->data['User']['confirmar_senha'] !=='' ) {\n\t\t\t\t//print_r($this->request->data['User']['password']);\n\t\t\t\t//print_r($this->User);\n\t\t\t\t//exit;\n\t\t\t\tif($this->request->data['User']['password'] !== '' && $this->request->data['User']['confirmar_senha'] !== '' && $this->request->data['User']['confirmar_senha'] == $this->request->data['User']['password']){\n\t\t\t\t\tif ($this->User->saveAll($this->request->data,array('validate'=>array(\n\t\t\t\t\t'password' => array(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t'notempty' => array(\n\n\t\t\t\t\t\t\t'rule' => array('notempty'),\n\n\t\t\t\t\t\t\t'message' => 'Valor de preenchimento obrigatório.',\n\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t\t\t\t'minlength' => array(\n\n\t\t\t\t\t\t\t\t\t'rule' => array('minlength', 6),\n\n\t\t\t\t\t\t\t\t\t'message' => 'A Senha deve possuir pelomenos 6 caracteres alfanuméricos.',\n\n\t\t\t\t\t\t\t),\n\n\t\t\t\t\t\t\t'alphanumeric' => array(\n\n\t\t\t\t\t\t\t\t\t'rule' => array('alphanumeric'),\n\n\t\t\t\t\t\t\t\t\t'message' => 'A Senha deve possuir somente letras e números.',\n\t\t\t\t\t\t\t),\n\n\t\t\t\t\t\t\t),\n\n\t\t\t\t\t 'confirmar_senha' => array(\n\t\t\t\t\t\t\t\t'notEmpty' => array(\n\t\t\t\t\t\t\t\t\t\t'rule' => 'notEmpty',\n\t\t\t\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t\t\t\t\t'message' => 'Confime sua senha.'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'minLength' => array(\n\t\t\t\t\t\t\t\t\t\t'rule' => array('minLength', 6),\n\t\t\t\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t\t\t\t\t'message' => 'Sua senha precisa conter pelo menos 6 caracteres.'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'passwordConfirmation' => array(\n\t\t\t\t\t\t\t\t\t\t'rule' => array('passwordConfirmation'),\n\t\t\t\t\t\t\t\t'message' => 'As duas senhas não conferem.'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t))\n\t\t\t\t\t))){\n\t\t\t\t\t\t$this->Session->setFlash('Usuário alterado com sucesso.');\n\t\t\t\t\t\t$this->redirect(\"/\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->Session->setFlash('Usuário não pode ser alterado.');\n\t\t\t\t\t}\n\t\t\t\t} else { $this->Session->setFlash('Usuário não pode ser alterado. Senha não confere ou estão vazias.'); }\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$dadosValidados = array(\n\t\t\t\t\t'User'=> array(\n\t\t\t\t\t\t'username' => $this->request->data['User']['username'], \n\t\t\t\t\t\t'email' => $this->request->data['User']['email'], \n\t\t\t\t\t\t'group_id' => $this->request->data['User']['group_id'], \n\t\t\t\t\t\t'current_restaurant_id' => $this->request->data['User']['current_restaurant_id'],\n\t\t\t\t\t\t'status' => $this->request->data['User']['status'], \n\t\t\t\t\t\t'id' => $this->request->data['User']['id'],\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t//print_r($dadosValidados);\n\t\t\t\t//exit;\n\t\t\t\tif ($this->User->save($dadosValidados)){\n\t\t\t\t\t\n\t\t\t\t\t$this->Session->setFlash('Usuário alterado com sucesso.', 'flash_success');\n\t\t\t\t\t$this->redirect(\"/\");\n\t\t\t\t}else{\n\t\t\t\t\t$this->Session->setFlash('Usuário não pode ser alterado.');\n\t\t\t\t}\n\t\t\t}\n } else {\n\t\t\t$options = array('conditions' => array('User.' . $this->User->primaryKey => $id));\n\t\t\t$this->request->data = $this->User->find('first', $options);\n\t\t\t\n\t\t}\n \n if(!$this->request->data){\n $this->request->data = $user;\n }\n\t\t$groups = $this->User->Group->find('list');\n\t\t$this->set(compact('groups'));\n\t\t\t\n }", "title": "" }, { "docid": "6d7f14913bba9e5c6bb4c37891f9fe66", "score": "0.627466", "text": "public function reiniciar($id){\n DB::table('usuarios')->where('id', $id)->update(['nivelActual'=>1]);\n $response = new \\stdClass(); //Para evitar error: Creating default object from empty value\n $response->result = 'Ok';\n echo json_encode($response);\n }", "title": "" }, { "docid": "882e20509248fc9dc8cab5464033ec32", "score": "0.62680787", "text": "public function editarUsuario(){\n $sql = \"UPDATE usuarios SET Usuario = '{$this->usuario}',\n NombreCompleto = '{$this->nombreCompleto}',\n Correo = '{$this->correo}',\n IdRol = '{$this->idRol}'\n WHERE IdUsuario = '{$this->idUsuario}'\";\n $res = $this->conexion->setQuery($sql);\n return $res;\n}", "title": "" }, { "docid": "fd6853eb947ec4679078527cad192068", "score": "0.6267097", "text": "public function editAction($id) {\n $usuario = $this->get('security.token_storage')->getToken()->getUser();\n $this->get('session')->getFlashBag()->clear();\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('UsuarioBundle:Usuario')->find($id);\n if (!$entity) {\n throw $this->createNotFoundException('No se ha podido encontrar la entidad Usuario.');\n }\n $paginas_inicio = $this->getPaginasInicio($entity->getPerfil()); \n $formulario = $this->createForm(UsuarioType::class, $entity, array (\n 'usuario' => $usuario, \n \n ));\n \n return $this->render('UsuarioBundle:Usuario:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $formulario->createView(),\n ));\n }", "title": "" }, { "docid": "a10a870f723873e37377a5dc8497910e", "score": "0.6259015", "text": "public function update_catalogo()\r\n {\r\n $data = array(\r\n 'username' => 'silvia',\r\n 'fname' => 'madrejo',\r\n 'lname' => 'sánchez'\r\n );\r\n $this->db->where('id', 3);\r\n $this->db->update('users', $data);\r\n }", "title": "" }, { "docid": "73a2da938f539d5a3732c69175e783cb", "score": "0.62579393", "text": "function do_edit_usuario($representacion, $departamento, $nombre, $cargo, $iniciales, $tipo, $correo, $archivo, $password, $nivel, $oficina,$extension, $telefono, $celular, $direccion, $cumple, $id_funcionario, $estado, $id, $busca, $page, $orden, $lista) {\n\t\tglobal $tabla_usuarios;\t\t\n\t\t$fecha = date('Y-m-d');\t\n\t\t\n\t\tif($id_funcionario == \"\") $valor_id_funcionario = \"null\";\n\t\t\telse $valor_id_funcionario = \"'\".$id_funcionario.\"'\";\n\t\t\t\n\t\tif($cumple == \"\") $valor_cumple = \"0000-00-00\";\n\t\telse $valor_cumple = \"$cumple\";\n\t\t\n\t\t\n\t\tif($password == \"\") $texto_password = \"\";\n\t\t\n\t\telse{\n\t\t\t$pass = hash(\"sha256\", $password);\t\n\t\t\t$texto_password = \"password = '$pass',\";\n\t\t}\n\t\t\n\t\t//Subimos archivo a carpeta de protocolo\n\t\t\t $ruta = '/var/www/html/gua/archivos/fotos/';\n \n\t\t\t\tif(basename($archivo['name']) != '' && basename($archivo['name']) != NULL){ \n\t\t\t\t\t\tsube_archivo($archivo, $ruta);\n\t\t\t\t\t\t$n_archivo = date('s').\"_\".basename($archivo['name']);\n\t\t\t\t\t\t$texto_archivo = \"foto='$n_archivo',\";\n\t\t\t\t}\n\t\t\t\telse $texto_archivo=\"\";\n echo $n_archivo.\"aqui<br>\";\n\t\t\n \n\t\trun_non_query(\"UPDATE $tabla_usuarios SET \n\t\trepresentacion = '$representacion',\n\t\tdepartamento = '$departamento',\n\t\tnombre = '$nombre', \n\t\tcargo = '$cargo', \n\t\tiniciales = '$iniciales', \n\t\ttipo = '$tipo ', \n\t\tcorreo = '$correo', \n\t\t$texto_archivo\n\t\t$texto_password\n\t\tnivel = '$nivel',\n\t\toficina = '$oficina',\n\t\textension = '$extension',\n\t\ttelefono = '$telefono',\n\t\tcelular = '$celular',\n\t\tdireccion = '$direccion',\n\t\tcumple = '$valor_cumple', \n\t\tid_funcionario = $valor_id_funcionario,\n\t\testado = '$estado'\n\t\tWHERE id = '$id'\");\n\t\t\n\t\t\n\t\t\n\t\t?>\n\t\t\t<p class='highlight bold right'>\n\t\t\t\tUsuario Editado\n\t\t\t</p>\n\t\t<?php\n\t\t\tlist_usuarios($busca, $page, $orden, $lista);\n\t\t}", "title": "" }, { "docid": "3c247c58e3cdfe5c8767e06491ffc0e8", "score": "0.6249124", "text": "public function actualizar(){\n $atributos = $this->sanitizarAtributos();\n\n $valores =[];\n foreach ($atributos as $key => $value) {\n $valores[]=\"{$key}='{$value}'\";\n }\n\n $query = \"UPDATE \" . static::$tabla . \" SET \";\n $query .= join(', ', $valores);\n $query .= \" WHERE id= '\" . self::$db->escape_string($this->id) . \"' \";\n $query .= \" LIMIT 1 \";\n \n $resultado = self::$db->query($query);\n\n if($resultado){\n // Redirecionar al usuario\n header('Location: /admin?resultado=2');\n }\n }", "title": "" }, { "docid": "7845ea22b9e40d6a9441edda36ff5365", "score": "0.62449265", "text": "public function BajaUsuario($id){\n $this->db->update('usuario', array('estado'=>'baja'), \"idUsu = $id\");\n }", "title": "" }, { "docid": "426dc9cb432d7505033554fabdf09158", "score": "0.6240743", "text": "public function editUser()\n {\n $id = $_POST[\"id\"];\n $nom = $_POST[\"name\"];\n $prenom = $_POST[\"firstname\"];\n $username = $_POST[\"username\"];\n $quote = $_POST[\"quote\"];\n\n if (!empty($_POST[\"rank\"])) {\n $rank = $_POST[\"rank\"];\n } else {\n $rank = \"3\";\n }\n \n\n $request = $this->connexion->prepare(\"UPDATE `user`\n SET `id`=:id, `nom`=:nom, `prenom`=:prenom, \n `username`=:username, `quote`=:quote, `rank`=:rank \n WHERE id=:id\");\n $request->bindParam(':id', $id);\n $request->bindParam(':nom', $nom);\n $request->bindParam(':prenom', $prenom);\n $request->bindParam(':username', $username);\n $request->bindParam(':quote', $quote);\n $request->bindParam(':rank', $rank);\n \n $result = $request->execute();\n\n }", "title": "" }, { "docid": "858f0e8eb13579d04985170b2fbc2255", "score": "0.623335", "text": "public function edit($id)\n {\n $user = $this->con->query(\" select u.idUsuario,u.usuario,\n case when u.nivel = 1 then 'Administrador'\n when u.nivel = 2 then 'Criação'\n when u.nivel = 3 then 'Supervisor'\n when u.nivel = 4 then 'Consultor'\n when u.nivel = 5 then 'Interno'\n else 'Sem Atribuição' end as nivel\n ,u.nome + ' '+u.sobrenome as nome, u.email, s.nome+' '+s.sobrenome as consultor ,u.foto, u.status \n from usuariosDMTRIX u join usuariosDMTRIX s on s.idUsuario = u.supervisor where u.idUsuario = '$id'\");\n\n if(odbc_num_rows($user) == 0){\n\n return 'Usuario não encontrado';\n }else {\n\n\n\n $resp = $this->con->fetch_array($user);\n return view('users.editUsuario',compact('resp'));\n }\n\n\n }", "title": "" }, { "docid": "a5863cb422ef0a7aed53b1216e85e317", "score": "0.62263465", "text": "public function update($id)\n {\n if (Auth::user()->isAdmin()) {\n $data = User::findOrFail($id);;\n } else {\n $data = Auth::user();\n }\n $rules = User::$rules;\n\n $inputs = Input::all();\n // Modification des régles\n if (!Input::has('password')) {\n unset($rules['password']);\n }\n foreach ($rules['email'] as $key => $rule) {\n if (starts_with($rule, 'unique')) {\n $rules['email'][$key] = $rule.','.$data->id;\n }\n }\n if (!Auth::user()->isAdmin()) {\n unset($rules['role']);\n } elseif (!Auth::user()->isSuperAdmin()) {\n $rules['role'][] = 'not_in:'.User::SUPERADMIN;\n }\n\n $validation = Validator::make($inputs, $rules);\n\n if ($validation->passes()) {\n $data->nom = Input::get('nom');\n $data->prenom = Input::get('prenom');\n $data->email = Input::get('email');\n if (Input::has('password')) {\n $data->password = Hash::make(Input::get('password'));\n }\n if (Auth::user()->isAdmin()) {\n $data->role = Input::get('role');\n $data->acces = serialize(Input::get('zone'));\n }\n if ($data->save()) {\n Session::flash('success', \"L'enregistrement a bien été modifié\");\n return Redirect::route(\"admin.user\");\n } else {\n Session::flash('error', \"Impossible de modifier l'enregistrement\");\n }\n }\n return Redirect::back()->withInput()->withErrors($validation);\n }", "title": "" }, { "docid": "3bebcd83091900524782b8f75752b7f5", "score": "0.6225896", "text": "public function update($id)\n {\n $comentarios = Comentario::find($id);\n // Si el usuario no existe entonces lanzamos un error 404 :(\n if (is_null($comentarios))\n {\n App::abort(404);\n }\n // Obtenemos la data enviada por el usuario\n $data = Input::all();\n // Revisamos si la data es válido\n if ($comentarios->isValid($data))\n {\n // Si la data es valida se la asignamos al usuario\n $comentarios->fill($data);\n // Guardamos el usuario\n $comentarios->save();\n // Y Devolvemos una redirección a la acción show para mostrar el usuario\n return Redirect::route('comentarios', array($comentarios->id))\n ->with('editar', 'El comentario ha sido actualizado correctamente.');\n }\n else\n {\n // En caso de error regresa a la acción edit con los datos y los errores encontrados\n return Redirect::route('comentarios.edit', $comentarios->id)\n ->withInput()\n ->withErrors($comentarios->errors);\n }\n }", "title": "" }, { "docid": "a1e53d2b8820897f0066862a1b1944b0", "score": "0.6222622", "text": "function updatea_user($idu, $nombre, $apellidos, $login, $password, $direccion, $tlf, $email, $verificado) {\n\t\t$sql = \"UPDATE usuarios set nombre='\".$nombre.\"', apellidos='\".$apellidos.\"', usuario='\".$login.\"', password='\".$password.\"', direccion='\".$direccion.\"', tlf='\".$tlf.\"', email='\".$email.\"', verificado='\".$verificado.\"' WHERE idu=\".$idu;\n\t\t$resultado = $this -> db -> query($sql);\n\t}", "title": "" }, { "docid": "96b94d035bda197725736d933cee9935", "score": "0.622221", "text": "public function edit($id)\n {\n $usuario=Datatables::eloquent(Usuario::query()->where('id', $id)->where('tipo_id',2))->count();\n if ($usuario == 1) {\n $usuario=Usuario::find($id);\n return view('auth.update',compact('usuario'));\n } else {\n flash()->overlay('Error con la peticion','Actualizado');\n return redirect('/');\n } \n }", "title": "" }, { "docid": "f28d0ca14233c7beaeec0450a19032a5", "score": "0.6221699", "text": "public function actualizarUsuario($datos)\r\n\t{\r\n\t\tforeach ($datos as $nombre => $valor):\r\n\t\t\t$validar = '$'.$nombre.'=\"'.$valor.'\";';\r\n\t\t\teval($validar);\r\n\t\tendforeach;\r\n\t\t\r\n\t\t/*Encriptar clave a md5*/\r\n\t\t$md5Clave = md5($clave);\r\n\t\t/*Preparar Consulta*/\r\n\t\t$actUsuario = \"update fun_usuarios set clave ='\".$this->sanear($md5Clave).\"' where documento=\".$documento.\"\";\r\n\t\t//Ejecutar la consulta\r\n\t\t$this->conectar()->query($actUsuario);\r\n\t}", "title": "" }, { "docid": "f780300d883e9b2ce7acca58b7dfb3c5", "score": "0.62188655", "text": "public function edit($id)\n {\n $this->check_superadmin_session();\n\n // Validation stuff\n $this->form_validation->set_rules('name', 'Name', 'required');\n\n // Validate password only if they are not empty\n if (\n $this->input->post('password') !== '' ||\n $this->input->post('password2') !== ''\n )\n {\n $this->form_validation->set_rules('password', 'Password', 'required');\n $this->form_validation->set_rules('password2', 'Confirm Password', 'matches[password]',\n array('matches' => 'Las contraseñas no coinciden')\n );\n }\n\n // Do stuff\n if ($this->form_validation->run() == FALSE)\n {\n // Load the actual user data.\n $user_data = $this->user_model->get_user_with_data($id);\n \n if (empty($user_data))\n {\n $this->show_notification('Usuario no encontrado.', 'error');\n redirect('users/list');\n }\n \n $data['user'] = $user_data;\n }\n else\n {\n // User base data\n $user_data = array(\n 'Name' => $this->input->post('name'),\n 'Enabled' => $this->input->post('enabled') ? 1 : 0\n );\n \n // The password is not required\n $password = $this->input->post('password');\n if ($password !== '')\n {\n $user_data['Password'] = md5($password);\n }\n \n // Extra data\n $extra_data = array(\n 'Comments' => $this->input->post('comments'),\n 'PriceOverride' => 0\n );\n\n if ($this->input->post('use-custom-price'))\n {\n $extra_data['PriceOverride'] = $this->input->post('custom-price');\n }\n\n $this->user_model->update_regular_user($id, $user_data, $extra_data);\n\n \n $this->show_notification('Usuario guardado');\n $data['user'] = $this->user_model->get_user_with_data($id);\n }\n\n $this->load_header_and_menu();\n $this->load->view('users/admin_edit.php', $data);\n $this->load_footer();\n }", "title": "" }, { "docid": "77f5ac188fe9bf16d7e2bde69de845a1", "score": "0.6218586", "text": "public function updateUserAction(Application $app, Request $request, $id){\n\n // on récupère le token si l'utilisateur est connecté\n $token = $app['security.token_storage']->getToken();\n if(NULL !== $token){\n $user = $token->getUser();\n }\n\n $idTest = $request->attributes->get('id');\n\n //on vérifie que cet utlisateur est bien l'auteur de l'offre d'emploi\n if($user->getId() != $idTest){\n //si l'utilisateur n'est pas l'auteur: accès interdit\n return $app['twig']->render('accesrestreint.html.twig');\n }\n\n $userForm = $app['form.factory']->create(UpdateUserType::class, $user);\n $userForm->handleRequest($request); \n\n\n\n $uniqueTest = $app['dao.users']->findOtherValues($id);\n $data = $userForm->getData();\n $error = false;\n\n if(array_search($data->getEmail(), array_column($uniqueTest, 'email')) !== false) {\n $app['session']->getFlashBag()->add('emailNotUnique', 'Cette adresse email est déjà attribuée à un autre utilisateur.');\n $error = true;\n }\n\n if(array_search($data->getPhone(), array_column($uniqueTest, 'phone')) !== false && $data->getPhone() != null) {\n $app['session']->getFlashBag()->add('phoneNotUnique', 'Ce numéro de téléphone est déjà attribué à un autre utilisateur.');\n $error = true;\n } \n\n\n\n if($userForm->isSubmitted() && $userForm->isValid() && $error === false){\n\n $app['dao.users']->updateUser($id, $user); \n $app['session']->getFlashBag()->add('success', 'Vos informations ont bien été modifiées'); \n }\n\n\n $upload = $app['dao.users']->find($id);\n //on va chercher la liste des articles écrits par l'utilisateur dont l'id est $id\n //on utilise la méthode getArticlesFromUser() de la classe ArticleDAO\n //création du formulaire d'upload\n $uploadForm = $app['form.factory']->create(UploadType::class, $upload);\n $uploadForm->handleRequest($request);\n if($uploadForm->isSubmitted() AND $uploadForm->isValid()){\n //on récupère les infos du fichier envoyé\n //ici comme j'ai généré le formulaire avec ma classe UploadImageType\n //c'est silex qui a généré le nom \"upload_image\"\n $file = $request->files->get('upload')['avatar'];\n //je lui dis où stocker le fichier\n //$app['upload_dir'] est défini dans app/config/prod.php\n $path = __DIR__.'/../../web/img/avatar/';\n //le nom original est dispo avec :\n //$filename = $file->getClientOriginalName();\n //guessExtension() renvoie l'extension du fichier\n $filename = md5(uniqid()).'.'.$file->guessExtension();\n $upload->setAvatar($filename);\n $app['dao.users']->update($upload->getId(), $upload);\n //on transfère le fichier\n $file->move($path,$filename);\n }\n\n\n\n \n return $app['twig']->render('updateUser.html.twig', array(\n 'userForm' => $userForm->createView(),\n 'uploadForm' => $uploadForm->createView(),\n 'user' => $user,\n 'test' => $request->files\n ));\n }", "title": "" }, { "docid": "c6f988801ca1a4f5abe8ee0af64204d5", "score": "0.62163824", "text": "public function actualizarUsuario($usr_id, $login_token, $campos_usuario){\n\n $this->data = array(\n \"sitio_id\" => ApiCommunication::$sitio_id,\n \"usr_id\" => $usr_id,\n \"login_token\" => $login_token\n );\n\n $this->data[\"usr_nombre\"] = isset($campos_usuario['usr_nombre']) ? $campos_usuario['usr_nombre'] : null;\n $this->data[\"usr_apellido\"] = isset($campos_usuario['usr_apellido'])? $campos_usuario['usr_apellido'] : null;\n $this->data[\"usr_fecha_nacimiento\"] = isset($campos_usuario['usr_fecha_nacimiento'])? $campos_usuario['usr_fecha_nacimiento'] : null;\n $this->data[\"usr_sexo\"] = isset($campos_usuario['usr_sexo'])? $campos_usuario['usr_sexo'] : null;\n $this->data[\"usr_mail\"] = isset($campos_usuario['usr_mail'])? $campos_usuario['usr_mail'] : null;\n $this->data[\"usr_tipo_documento\"] = isset($campos_usuario['usr_tipo_documento'])? $campos_usuario['usr_tipo_documento'] : null;\n $this->data[\"usr_numero_documento\"] = isset($campos_usuario['usr_numero_documento'])? $campos_usuario['usr_numero_documento'] : null;\n $this->data[\"usr_pais_id\"] = isset($campos_usuario['usr_pais_id'])? $campos_usuario['usr_pais_id'] : null;\n $this->data[\"usr_provincia_id\"] = isset($campos_usuario['usr_provincia_id'])? $campos_usuario['usr_provincia_id'] : null;\n $this->data[\"usr_localidad\"] = isset($campos_usuario['usr_localidad'])? $campos_usuario['usr_localidad'] : null;\n $this->data[\"usr_direccion\"] = isset($campos_usuario['usr_direccion'])? $campos_usuario['usr_direccion'] : null;\n $this->data[\"usr_codigo_postal\"] = isset($campos_usuario['usr_codigo_postal'])? $campos_usuario['usr_codigo_postal'] : null;\n $this->data[\"usr_telefono\"] = isset($campos_usuario['usr_telefono'])? $campos_usuario['usr_telefono'] : null;\n $this->data[\"usr_apodo\"] = isset($campos_usuario['usr_apodo'])? $campos_usuario['usr_apodo'] : null;\n $this->data[\"usr_biografia\"] = isset($campos_usuario['usr_biografia'])? $campos_usuario['usr_biografia'] : null;\n $this->data[\"usr_avatar\"] = isset($campos_usuario['usr_avatar'])? $campos_usuario['usr_avatar'] : null;\n $this->data[\"tipo_recuperacion_id\"] = isset($campos_usuario['tipo_recuperacion_id'])? $campos_usuario['tipo_recuperacion_id'] : null;\n $this->data[\"use_pregunta_secreta\"] = isset($campos_usuario['use_pregunta_secreta'])? $campos_usuario['use_pregunta_secreta'] : null;\n $this->data[\"use_respuesta_secreta\"] = isset($campos_usuario['use_respuesta_secreta'])? $campos_usuario['use_respuesta_secreta'] : null;\n\n\n $this->uri = ApiCommunication::get_api_uri('URL_ACTUALIZAR_USUARIO');\n return $this->callRestService();\n\n }", "title": "" }, { "docid": "210f6f8b0115fcba134b14862c383deb", "score": "0.6216137", "text": "function updateInstancia($id){\n //Actualiza una fila\n $objDBO=$this->Factory($this->__tempName);\n $campos = $objDBO->table();\n unset($campos[\"id\"]);\n unset($campos[\"password\"]);\n unset($campos[\"fecha\"]);\n $objDBO->id = $id;\n //Asigna los valores\n $objDBO->find();\n if($objDBO->fetch()){\n foreach($campos as $key => $value){\n $objDBO->$key = utf8_decode($this->$key);\n }\n $objDBO->fecha = date(\"Y-m-d H:i:s\");\n $objDBO->update();\n $ret = true;\n }else{\n $ret = false;\n }\n //Libera el objeto DBO\n $objDBO->free();\n return ($ret);\n }", "title": "" }, { "docid": "0e12f61da9d84eb63b93008bc4156b79", "score": "0.61976665", "text": "public function edit($id)\n {\n\n\n $societa_selezionate=Input::get('societa');\n\n if ($societa_selezionate)\n Session::put('societa_selezionate', $societa_selezionate);\n\n $societa_selezionate = Session::get('societa_selezionate');\n\n if(empty($societa_selezionate)){\n $societa = \\App\\societa::orderBy('ragione_sociale')->whereHas('_tutor', function($query) {\n $query->where('user_id', Auth::user()->id);\n });\n\n \\Debugbar::info($societa_selezionate);\n $societa_selezionate = array($societa->first()->id);\n }\n\n \\Debugbar::info(Session()->all());\n\n $all_user = \\App\\User::with('societa', '_mansioni')\n ->whereHas('_registro_formazione', function($query) use($id){\n $query->where('corso_id', $id)->whereNull('data_superamento')->whereNull('sessione_id');\n });\n\n //Se sono azienda pesco solo le mie societa\n if(Auth::user()->hasAnyRole(['admin'])) {\n $all_user = $all_user->whereIn('societa_id', $societa_selezionate);\n }\n else{\n $all_user = $all_user->whereIn('societa_id', $societa_selezionate);\n }\n\n $data['utenti']= $all_user ->orderBy('societa_id')->get();\n $data['aziende']= $all_user ->select('societa_id')->distinct()->get();\n $data['mansioni'] = array();\n\n foreach ($data['utenti'] as $user){\n $data['mansioni'] = array_merge($data['mansioni'] , $user->_mansioni->pluck('id', 'nome' )->toArray());\n }\n\n\n $data['sessioniAula'] = \\App\\aule_sessioni::where('id_corso', $id)->with('_aula');\n if(Session('sessioneaula_id_fondo'))\n $data['sessioniAula'] = $data['sessioniAula']->whereDate('dal', '>', \\Carbon\\Carbon::now()->addMonths(2));\n\n $data['sessioniAula']= $data['sessioniAula']->get();\n\n $data['fondiprofessionali'] = ['0' => 'Nessun Fondo']+ \\App\\fondiprofessionali::lists('name','id')->toArray();\n $data['corso'] = \\App\\corsi::with('_fad')->find($id);\n\n return view('registro_formazione.edit', $data);\n }", "title": "" }, { "docid": "a9b91d5fb410fd2a0294777b57eb6749", "score": "0.6196132", "text": "function set(Usuario $usuario){\r\n //$parametrosSet=$city->getGenerico();\r\n /*foreach ($city as $key => $value) {\r\n $parametrosSet[$key] = $value;\r\n }*/\r\n $parametrosWhere=array();\r\n $parametrosWhere[\"id_usuario\"]=$usuario->getID();\r\n return $this->bd->update($this->tabla, $usuario->getGenerico(), $parametrosWhere);\r\n \r\n }", "title": "" }, { "docid": "a3fd18e1b6ce1b7fe2d5987d47af1d42", "score": "0.6195982", "text": "public function userEdit( array $data ) \n\t{\n $conexao = $this->connect();\n $this->formData = $data;\n $usr_edit = $conexao->prepare(\" UPDATE tb_users\n \tSET login_user = :login_user, \n\t \tname_user = :name_user, \n\t \tid_companies = :empresa, \n\t \tid_product = :produto,\n\t \tid_level = :nivel\n \tWHERE id = :id_user \");\n $usr_edit->bindParam(':login_user', $this->formData['user_login']);\n $usr_edit->bindParam(':name_user', $this->formData['name_user']);\n $usr_edit->bindParam(':empresa', $this->formData['id_companie']);\n $usr_edit->bindParam(':produto', $this->formData['id_produto']);\n $usr_edit->bindParam(':nivel', $this->formData['id_level']);\n $usr_edit->bindParam(':id_user', $this->formData['id']);\n $usr_edit->execute();\n\n }", "title": "" }, { "docid": "cd1a712d352f319e37400565bcb636e3", "score": "0.6192099", "text": "function edit_usuario_form($id, $busca, $page, $orden, $lista) {\n\t\t\tglobal $tabla_usuarios;\n\t\t\t\n\t\t\t\n\t\t\t$usuario = run_select_query(\"SELECT * FROM $tabla_usuarios WHERE id = '$id'\");\n\t\t\t//echo \"SELECT * FROM $tabla_usuarios WHERE id = '$id'\";\n\t\t//\techo \"SELECT * FROM usuarios WHERE id = '$id'\";\n\t\t\t$representacion = $usuario[0]['representacion'];\n\t\t\t$departamento = $usuario[0]['departamento'];\n\t\t\t$tipo = $usuario[0]['tipo'];\n\t\t\t$nombre = $usuario[0]['nombre'];\n\t\t\t$cargo = $usuario[0]['cargo'];\n\t\t\t$iniciales = $usuario[0]['iniciales'];\n\t\t\t$correo = $usuario[0]['correo'];\n\t\t\t$foto = $usuario[0]['foto'];\n\t\t\t$password = $usuario[0]['password'];\n\t\t\t$nivel = $usuario[0]['nivel'];\n\t\t\t$oficina = $usuario[0]['oficina'];\n\t\t\t$extension = $usuario[0]['extension'];\n\t\t\t$telefono = $usuario[0]['telefono'];\n\t\t\t$celular = $usuario[0]['celular'];\n\t\t\t$direccion = $usuario[0]['direccion'];\n\t\t\t$cumple = $usuario[0]['cumple'];\n\t\t\t$correo = $usuario[0]['correo'];\n\t\t\t$id_funcionario = $usuario[0]['id_funcionario'];\n\t\t\t$estado = $usuario[0]['estado'];\n\t\t\t\n\t\t\t$query_nombre = run_select_query(\"SELECT nombre FROM usuarios WHERE id = '$id_usuario'\");\n\t\t\t$nombre_titular = $query_nombre [0]['nombre'];\n\t\t\t$resultado_titular = \"<option value = '$id_usuario' selected='selected'>$nombre_titular</option>\";\n\t\t\t\n\t\t\t\n\t\t\t$query_titulares = run_select_query(\"SELECT id, nombre FROM usuarios WHERE id_padre = 0\");\n\t\t\tforeach ($query_titulares as $key=> $value) {\n\t\t\t\t\n\t\t\t\t$id = $query_titulares[$key]['id'];\n\t\t\t\t$nombres =$query_titulares[$key]['nombre'];\n\t\t\t\t$select_usuarios.=\"<option value = '$id'>$nombres</option>\";\n\t\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t?>\n\t\n\t\t\t\n\t<fieldset class=\"adminform\">\n\t\t\t\n\t\t\t<legend>Editar usuario <a href='index.php?admin_usuarios&busca=&page=<?php echo $page ?>' title='Back'><img src=\"images/j_arrow_left.png\" border=\"0\" /></a></legend>\n\t \n\t\t\t\t\t\n\t\t\t<form action=\"index.php\" name=\"form_edit_usuario\" method=\"post\" enctype=\"multipart/form-data\">\n\t\t\t<table class=\"adminform\">\n\t\t\t\t<tr>\n\t\t\t\t <th class='title'>\n\t\t\t\t\t\tRepresentación: </th>\n\t\t\t\t\t<td><select name=\"representacion\">\n\t\t\t\t\t <option selected=\"selected\"><?php echo $representacion ?></option>\n\t\t\t\t\t <option>AGREGADURÍA MILITAR Y AÉREA</option>\n <option>SECCIÓN CONSULAR</option>\n <option>EMBAJADA</option>\n\t\t\t\t\t <option>AGREGADURÍA NAVAL</option>\n <option>OFICINA DE ASUNTOS REGIONALES (CISEN)</option>\n <option>AGREGADURÍA DE ASUNTOS MIGRATORIOS</option>\n <option>AGREGADURÍA LEGAL</option>\n <option>AGREGADURÍA DE SEGURIDAD PÚBLICA</option>\n <option>CONSEJERÍA AGROPECUARIA</option>\n <option>CONSEJERÍA COMERCIAL PROMEXICO</option>\n\t\t\t\t </select></td>\n\t\t\t\t</tr>\n <tr>\n\t\t\t\t <th class='title'>\n\t\t\t\t\t\tDepartamento: </th>\n\t\t\t\t\t<td><select name=\"departamento\">\n\t\t\t\t\t <option selected=\"selected\"><?php echo $departamento ?></option>\n <option selected=\"selected\"></option>\n\t\t\t\t\t <option>Oficina Embajadora</option>\n\t\t\t\t\t <option>Oficina Jefe de Cancillería</option>\n\t\t\t\t\t <option>Asuntos culturales</option>\n\t\t\t\t\t <option>Asuntos jurídicos y derechos humanos</option>\n\t\t\t\t\t <option>Cooperación técnica y científica</option>\n\t\t\t\t\t <option>Asuntos políticos</option>\n\t\t\t\t\t <option>Asuntos económicos</option>\n\t\t\t\t\t <option>Prensa</option>\n <option>Comunicaciones y archivo</option>\n <option>Administración</option>\n <option>Protocolo y TI</option>\n\t\t\t\t </select></td>\n\t\t\t\t</tr>\n <tr>\n\t\t\t\t <th class='title'>\n\t\t\t\t\t\tTipo: </th>\n\t\t\t\t\t<td><select name=\"tipo\">\n\t\t\t\t\t <option selected=\"selected\"><?php echo $tipo ?></option>\n\t\t\t\t\t <option>SEM</option>\n\t\t\t\t\t <option>LOCAL</option>\n\t\t\t\t </select></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width=\"108\" class='title'>\n\t\t\t\t\t\tNombre: </th>\n\t\t\t\t\t<td width=\"170\">\t\n\t\t\t\t\t\t<input type=\"text\" name=\"nombre\" value=\"<?php echo $nombre ?>\" id=\"nombre\" />\t\t\t\t</td>\n\t\t\t\t</tr>\n <tr>\n\t\t\t\t\t<th class='title'>\n\t\t\t\t\t\tCargo: </th>\n\t\t\t\t\t<td>\t\n\t\t\t\t\t\t<input type=\"text\" name=\"cargo\" value=\"<?php echo $cargo ?>\" id=\"cargo\" />\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>\n\t\t\t\t\t\tIniciales: </th>\n\t\t\t\t\t<td>\t\n\t\t\t\t\t\t<input type=\"text\" name=\"iniciales\" value=\"<?php echo $iniciales?>\" id=\"iniciales\" />\t\t\t\t</td>\n\t\t\t\t</tr>\n \n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Correo: </th>\n\t\t\t\t\t<td>\t\n\t\t\t\t\t\t<input type=\"text\" name=\"correo\" value=\"<?php echo $correo?>\" id=\"correo\" />\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Foto: </th>\n\t\t\t\t\t<td><input type=\"file\" name=\"foto\" value=\"\" id=\"foto\" /><?php echo $foto?></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Contraseña: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"password\" value=\"\" id=\"password\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Nivel: </th>\n\t\t\t\t\t<td><select name= \"nivel\">\n\t\t\t\t\t<option name=\"<?php echo $nivel ?>\" selected=\"selected\"><?php echo $nivel ?></option> \n\t\t\t\t\t <option>Usuario</option>\n\t\t\t\t\t <option>Comunicaciones</option>\n <option>Protocolo</option>\n\t\t\t\t\t <option>Administrador</option>\n\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\n\t\t\t\t </td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Oficina: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"oficina\" value=\"<?php echo $oficina?>\" id=\"oficina\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Extensión: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"extension\" value=\"<?php echo $extension?>\" id=\"extension\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Teléfono: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"telefono\" value=\"<?php echo $telefono?>\" id=\"telefono\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>Celular: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"celular\" value=\"<?php echo $celular?>\" id=\"celular\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<th class='title'>Dirección:</th>\n\t\t\t\t\t<td><textarea name=\"direccion\"><?php echo $direccion?></textarea></td>\n\t\t\t\t</tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<th class='title'>Cumpleaños:</th>\n\t\t\t\t\t<td>\n <input type=\"text\" name=\"cumple\" value=\"<?php echo $cumple?>\" id=\"cumple\" />\t\t\t\t <script language=\"JavaScript\">\n\tnew tcal ({\n\t\t// form name\n\t\t'formname': 'form_edit_usuario',\n\t\t// input name\n\t\t'controlname': 'cumple'\n\t});\n\t</script>\n </tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='title'>\n\t\t\t\t\t\tId funcionario: </th>\n\t\t\t\t\t<td><input type=\"text\" name=\"id_funcionario\" value=\"<?php echo $id_funcionario?>\" id=\"id_funcionario\" /></td>\n\t\t\t\t</tr> \n <tr>\n\t\t\t\t\t<th class='title'>Estado:</th>\n\t\t\t\t\t<td><select name=\"estado\">\n\t\t\t\t\t <option selected=\"selected\"><?php echo $estado?></option>\n\t\t\t\t\t <option>ACTIVO</option>\n <option>INACTIVO</option>\n\t\t\t\t\t </select>\n\t\t\t\t\t \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 colspan='2' class='center'>\n\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"<?php echo $usuario[0]['id']; ?>\" id=\"id\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"busca\" value=\"<?php echo $busca; ?>\" id=\"busca\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"page\" value=\"<?php echo $page; ?>\" id=\"page\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"orden\" value=\"<?php echo $orden; ?>\" id=\"orden\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"lista\" value=\"<?php echo $lista; ?>\" id=\"lista\" />\n\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<input class=\"button\" type=\"submit\" name=\"do_edit_usuario\" value=\"Editar\" id=\"btn_edit_usuario\" />\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t</form>\n\t</fieldset>\n\t\t\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "aa4a7d25eac455ecb90f4019c14e569d", "score": "0.6188586", "text": "public function update($id)\n\t{\n // buscar la informacion del usuario\n $user = User::find($id);\n\n // actualiza la informacion del usuario con sus datos\n $user->username = Input::get('username'); // toma los datos del formulario por su name\n $user->real_name = Input::get('real_name');\n\n\n // comprueba si la contrasena esta vacia, si lo esta deja la contrasena como esta en la bd\n if(Input::get('password'))\n {\n $user->password = Hash::make(Input::get('password'));\n }\n\n // guardar los datos\n $user->save();\n\n // mensaje\n Session::flash('message', 'Successfully updated user');\n\n // redirecciona a la pantalla principal de users\n return Redirect::to('/admin/users');\n\t}", "title": "" }, { "docid": "246ab43da5aa4cb586d4258584ef48dc", "score": "0.6185414", "text": "function rellenaDatos(){\n $stmt = $this->db->prepare(\"SELECT *\n\t\t\t\t\tFROM usuario\n\t\t\t\t\tWHERE login = ?\");\n\n $stmt->execute(array($this->login));\n $user = $stmt->fetch(PDO::FETCH_ASSOC);\n if($user != null){\n $usuario = new USUARIO_Model(\n $user['usuario_id'],$user['login'],$user['nombre']\n ,$user['apellidos'],$user['password'],$user['fecha_nacimiento'],$user['email_usuario']\n ,$user['telef_usuario'],$user['dni'],$user['rol'],$user['afiliacion'],$user['nombre_puesto']\n ,$user['nivel_jerarquia'],$user['depart_usuario'],$user['grupo_usuario'],$user['centro_usuario']\n );\n\n return $usuario;\n\n\n }else{\n return 'Error inesperado al intentar cumplir su solicitud de consulta';\n }\n\n }", "title": "" }, { "docid": "915ff90e5d47e6cb8fc5acc4a1abd597", "score": "0.61849976", "text": "public function setAltaUsuario($id)\n {\n LOG::info('Activando usuario: ' . $id . ' ' . UserDaoImpl::class);\n try {\n User::where('id', $id)\n ->update(['status_id' => Constantes::USER_ACTIVE]);\n return true;\n } catch (\\Exception $e) {\n LOG::error($e->getMessage());\n throw new Exception($e->getMessage());\n }\n }", "title": "" }, { "docid": "0bc0dd525bf72525b6a92d18739bf4c1", "score": "0.61825633", "text": "static public function mdlEditarUsuario($tabla, $datos){\n\n\t\t$activo = \"S\";\n\t\t$intentos = 0;\n\n\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET Clave = :clave, Imagen = :imagen, RolesID = :rolId WHERE UsuarioID = :idUser\");\n\t\t\n\t\t$stmt -> bindParam(\":clave\", $datos[\"pass\"], PDO::PARAM_STR);\n\t\t$stmt -> bindParam(\":imagen\", $datos[\"foto\"], PDO::PARAM_STR);\n\t\t$stmt -> bindParam(\":rolId\", $datos[\"rol\"], PDO::PARAM_INT);\n\t\t$stmt -> bindParam(\":idUser\", $datos[\"idUsuario\"], PDO::PARAM_INT);\n\n\t\tif($stmt ->execute()){\n\n\t\t\treturn 'ok';\n\n\t\t}else{\n\n\t\t\t\n\t\t\treturn \"error usuario\";\n\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "58ddaf115ec47692935a8b95101454f5", "score": "0.61824733", "text": "public function usuario($id) {\n //busca el usuario si no lo encuentra avisa \n try {\n $usuarioDB = User::where('id', $id)->where('estado', 'true')->with('pedidos')->first();\n //dentro de cada pedido veo si es de encargado o de empresa\n foreach ($usuarioDB->pedidos as $pedido => $pedidoDB) {\n if ($pedidoDB->empresa_id) {\n $usuarioDB->pedidos[$pedido]->empresa;\n } else if ($pedidoDB->encargado_id) {\n $usuarioDB->pedidos[$pedido]->encargado;\n }\n }\n } catch (Exception $e) {\n return $this->Error('Error del servidor', 500);\n }\n \n //si da una respuesta vacia es un error del servidor sino todo ok\n if (!$usuarioDB) {\n return $this->Error('Id no encontrado en la base de datos', 404);\n } else {\n $requestObj = new Request(array('ok' => true, \"respuesta\" => $usuarioDB));\n return response($requestObj, 200);\n }\n }", "title": "" }, { "docid": "436a56a51fe24ac77dfbb07f4746a60e", "score": "0.6173042", "text": "public function modificar() {\n $objDatos = new clsDatos();\n $sql = \"UPDATE asigna_caso\n SET id_aca = '$this->id_aca',\n id_pac = '$this->id_pac',\n id_usu = '$this->id_usu',\n tip_aca = '$this->tip_aca',\n est_aca = '$this->est_aca';\";\n $objDatos->ejecutar($sql);\n $objDatos->crerrarconexion();\n }", "title": "" }, { "docid": "ecb49e7cac9cac5e958e3705499609b6", "score": "0.6170619", "text": "public function autorizarCambioInsumos($id);", "title": "" }, { "docid": "d82fa3705e9f324301d9dc46205d6f75", "score": "0.61674947", "text": "public function inscribir($id)\n {\n $user= Auth::user()->id;\n $ipr = new ProyectosUsers();\n $ipr->proyectos_id = $id;\n $ipr->users_id = $user;\n $ipr->estadosproyectosusers_id = 2;\n $ipr->save();\n return redirect('proyectosIndex');\n }", "title": "" }, { "docid": "dffd1454b023af5fcf0308738b4dbb6b", "score": "0.6166403", "text": "public function edit($id) {\n\t\t\tif(session()->get('isLogin')){\n\t\t\t\t$pengguna = session()->get('isLogin');\t\n\t\t\t\tif ($pengguna->role == 0) {\n\t\t\t\t\treturn redirect('/pengguna');\n\t\t\t\t} else {\n\t\t\t\t\t$user = Users::find($id);\n\t\t\t\t\tif (!$user) {\n\t\t\t\t\t\treturn Redirect::route('user.index');\n\t\t\t\t\t}\n\t\t\t\t\tif ($user->role == 1) {\n\t\t\t\t\t\treturn Redirect::route('user.index');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$title = 'Edit data User';\n\t\t\t\t\treturn view('admin.users.edit', compact('user', 'title'));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$title='E-recruito Login';\n\t\t\t\treturn Redirect::to('/login')->with('title',$title);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "548ef994f4d723d05b0deab123d5d1f2", "score": "0.6163765", "text": "function modificar_usuario($datos_usuario)\n\t{\n\t\t$sql_usuarios=\"UPDATE usuarios\n\t\tSET `nombre`= '\".$datos_usuario['nombre'].\"',\n\t\t`clave`= '\".$datos_usuario['clave'].\"'\n\t\tWHERE `codigo`=\".$datos_usuario['cod_usuario'].\";\";\n\t\n\t\t$stmt2=$this->instancia_conexion->Consulta($sql_usuarios);\n\t\n\t}", "title": "" }, { "docid": "dee111de0f2d2baace5d585b5d5daebb", "score": "0.6161616", "text": "public function update($id)\n\t\t{\n\t\t\tif(session()->get('isLogin')){\n\t\t\t\t$pengguna = session()->get('isLogin');\t\n\t\t\t\tif ($pengguna->role == 0) {\n\t\t\t\t\treturn redirect('/pengguna');\n\t\t\t\t} else {\n\t\t\t\t\t$user = Users::find($id);\n\t\t\t\t\tif (!$user) {\n\t\t\t\t\t\treturn Redirect::route('user.index');\n\t\t\t\t\t}\n\t\t\t\t\tif ($user->role == 1) {\n\t\t\t\t\t\treturn Redirect::route('user.index');\n\t\t\t\t\t}\n\n\t\t\t\t\t$input = array_except(Input::all(), '_method');\n\t\t\t\t\tif ($input['password'] == \"\") {\n\t\t\t\t\t\t$input['password'] = $user->password;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$input['password'] = md5($input['password']);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!$input['birthdate']) {\n\t\t\t\t\t\t$input['birthdate'] = $user->birthdate;\n\t\t\t\t\t}\n\n\t\t\t\t\t$rules = array(\n\t\t\t\t\t\t'name'=>'required',\n\t\t\t\t\t\t'email'=>'required|email',\n\t\t\t\t\t\t'password'=>'required',\n\t\t\t\t\t\t'region'=>'required',\n\t\t\t\t\t\t'motto'=>'required',\n\t\t\t\t\t\t'profesi'=>'required',\n\t\t\t\t\t\t'foto'=>'mimes:jpeg,jpg,bmp,png',\n\t\t\t\t\t\t'birthdate'=>'required'\t\n\t\t\t\t\t\t);\n\t\t\t\t\t$validator = Validator::make($input,$rules);\n\t\t\t\t\tif($validator->fails()){\n\t\t\t\t\t\t$title = 'Edit data User';\n\t\t\t\t\t\treturn view('admin.users.edit', compact('user', 'title'))->withErrors($validator->errors());\n\t\t\t\t\t\t//return Redirect::to('/pengguna/my-profile/'.$user1['id'])->withInput()->withErrors($validator->errors());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$image = Input::file('foto');\n\t\t\t\t\t\tif(isset($input['foto'])){\n\t\t\t\t\t\t\tif($user->foto != 'default.gif'){\n\t\t\t\t\t\t\t\tFile::delete('public/assets/img/avatar/'.$user->foto);\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t$filename = rand(1111,9999).time() . '.' . $image->getClientOriginalExtension();\n\t\t\t\t\t\t\tInput::file('foto')->move('public/assets/img/avatar/',$filename);\n\t\t\t\t\t\t\t$input['foto'] = $filename;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$user->update($input);\n\t\t\t\t\t\treturn Redirect::route('user.index');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$title='E-recruito Login';\n\t\t\t\treturn Redirect::to('/login')->with('title',$title);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9838e3b903c39bc94b6b955bea20c1b3", "score": "0.61611575", "text": "public static function actualizaGuiaUsuario($id, $imagen){\r\n\t\t$db = new dbMySQL();\r\n\t\t$listaGuias = $db->query(\"UPDATE `tbl_guiausuario` SET `cBoleto`='\".$imagen.\"' WHERE `cEstatus` = 'ok' AND `nId` = \".$id);\r\n\t\t$db->close();\r\n\t\tunset($db);\r\n\r\n\t}", "title": "" }, { "docid": "d544afb013136013bd65f402dcfcbf60", "score": "0.615495", "text": "public function actualizarRol($id,$data)\n\t{\n\t\t$this->db->where('IdPersonaRol', $id);\n\t\t$res = $this->db->update('rtspersonarol_det', $data);\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "5fe38b327930192e38def9fbc95bb7e5", "score": "0.614847", "text": "public function updateUserAction()\n {\n $iUserType = $this->getRequest()->getParam('id');\n\n $form = $this->createUserForm();\n\n\tif(!$this->getRequest()->isPost())\n\t{\n\t echo \"<h4 id='infusr'>Nuevos Datos De Usuario</h4>\";\n\t echo $form;\n\t return;\n\t}\n\tif(!$form->isValid($this->_getAllParams()))\n\t{\n\t echo $form;\n\t return;\n\t}\n\n\t$values = $form->getValues();\n\n\tif($values['password'] != $values['verifypassword'])\n\t{\n\techo \"La contraseña no coincide\";\n\techo $form;\n\treturn;\n\t}\n\n\tif(isset($values['user']))\n {\n $image = APPLICATION_PATH.\"/../public/img/usr/\".$form->user->getFileName(null,false);\n } \n\telse \n\t{\n\t $image = '';\n }\n\n\tswitch ($iUserType) \n\t{\n\t case 1:\n\n\t\t$this->sql->updateAdmin($values['cc'],sha1($values['password']),$values['names'],$values['lastnames'],$values['telephone'],$values['movil'],$image);\n\t\tbreak;\n\n\t case 2:\n\n\t\t$this->sql->updateClient($values['cc'],sha1($values['password']),$values['names'],$values['lastnames'],$values['telephone'],$values['movil'],$image);\n\t\tbreak;\n\n\t case 3:\n\n\t\t$this->sql->updateDeveloper($values['cc'],sha1($values['password']),$values['names'],$values['lastnames'],$values['telephone'],$values['movil'],$image);\n\t\tbreak;\n\t}\n $this->_helper->redirector('index', 'index');\n }", "title": "" }, { "docid": "fd9c8183482117ed773e917fc9f7ca59", "score": "0.6147543", "text": "public function update_user_info($id) // Обновляем информацию о пользователе в сесии\n\t\t{\n\t\t\t$result = mysql_query(\"SELECT * FROM users WHERE id='{$id}'\");\n\t\t\t$myrow = mysql_fetch_array($result);\n\t\t\t$user_group=autoring::user_group($myrow['users_group']);\n\t\t\tautoring::set_autoring($myrow, $user_group);\n\t\t\treturn $myrow;\n\t\t}", "title": "" }, { "docid": "46c31a958ba777d1430c71cc0a176f48", "score": "0.61467963", "text": "public function update(Request $request, $id)\n {\n $con=Datatables::eloquent(Usuario::query()->where('id', $id)->where('tipo_id',2))->count();\n if ($con==1) {\n $usuario = Usuario::find($id);\n $usuario->nombre = $request->nombre;\n $usuario->escuela = $request->escuela;\n $usuario->email = $request->email;\n $usuario->save();\n flash()->overlay('El usuario '.$usuario->nombre.' a sido Actualizado','Actualizado');\n return redirect('/');\n } else {\n flash()->overlay('Error con la peticion','Actualizado');\n return redirect('/'); \n }\n }", "title": "" }, { "docid": "878228014a5e840b8821acae1227d5a8", "score": "0.61444175", "text": "public function setUser($id)\n {\n $this->user = $id;\n }", "title": "" }, { "docid": "921f31a56043675b5a2e3179961ac60d", "score": "0.6138439", "text": "public function actualizarUsuarioController(){\n //Para realizar la actualizacio es necesario que se encuentre en el POST el campo con el nombre que hace referencia a EDITAR\n if(isset($_POST[\"nombreUsuarioEditar\"])){\n //Se crea un array con los datos que se reciben del post (de los campos que se llenan), el cual sera enviado al metodo de actualizar para modificar los registros de la base de datos\n $datosController = array( \"id\"=>$_POST[\"idUsuarioEditar\"],\n \"usuario\"=>$_POST[\"nombreUsuarioEditar\"],\n \"nombre\"=>$_POST['nombreCompletoEditar'],\n \"tipo\"=>$_POST[\"tipoUsuarioEditar\"],\n \"correo\"=>$_POST[\"correoUsuarioEditar\"],\n \"contrasena\"=>$_POST[\"contrasenaUsuarioEditar\"]);\n //Se hace el llamado al metodo actualizar y se le envian dos parametros: el array con los datos y el nombre de la tabla en la que se hace la modificacion\n $respuesta = Datos::actualizarUsuarioModel($datosController, \"usuarios\");\n \n //verifica el resultado del llamado al metodo anterior\n //Si ha sido exitoso mostrara un mensaje indicando el exito de la operacion\n if($respuesta == \"success\"){\n echo '<div class=\"box-content bg-success text-white\">\n <p>Se han guardado los cambios exitosamente</p>\n </div>';\n }\n //En caso de no ser exitoso se muestra un mensaje indicando el fallo del metodo\n else{\n echo '<div class=\"box-content bg-danger text-white\">\n <p>No ha sido posible guardar los cambios</p>\n </div>';\n }\n \n }\n \n }", "title": "" }, { "docid": "f755adb5b05ede68a01f0deffcb36e13", "score": "0.6133824", "text": "public function edit($id)\n {\n $usuario = DB::table('users')\n ->select('users.id', 'users.password','users.nombre', 'users.email', \n 'tipo_usuario.nombre_tipo_usuario', 'tipo_usuario.id as uid',\n 'carrera.nombre as cname', 'carrera.id as cid')\n ->join('carrera', 'carrera.id', '=', 'users.id_carrera')\n ->join('tipo_usuario', 'tipo_usuario.id', '=', 'users.id_tipo_usuario')\n ->where('users.id', $id)\n ->first();\n \n flash('Está a punto de editar datos importantes. Por favor tenga cuidado :D')->warning()->important();\n return view('pantallas.editUsuario', compact('usuario'));\n }", "title": "" }, { "docid": "510ef55c52f5620d741f468a833b4001", "score": "0.6129009", "text": "public function actualizarDatos(){\n if(isset($_POST)){\n $id = $_SESSION['login']->id_cliente;\n $nombre = isset($_POST['name']) ? $_POST['name'] : false;\n $apellidos = isset($_POST['lastname']) ? $_POST['lastname'] : false;\n $email = isset($_POST['email']) ? $_POST['email'] : false;\n \n if ($nombre && $apellidos && $email) {\n $cliente = new Cliente();\n $cliente->setId($id);\n $cliente->setNombre($nombre);\n $cliente->setApellidos($apellidos);\n $cliente->setEmail($email);\n \n $datosActualizados = $cliente->actualizar();\n //Llenar la sesion con los nuevos datos\n $_SESSION['login'] = $cliente->recargaSesion();\n }\n }else{\n $_SESSION['fallo']=\"Fallo la actualización de los datos\";\n }\n header('location:'. root . 'cliente/datos');\n }", "title": "" }, { "docid": "c2db3a7c74c4b2627c196d55b6f0546f", "score": "0.6128454", "text": "function put($id){\n parse_str(file_get_contents(\"php://input\"),$post_vars);\n\n if(isset($post_vars['username']) && $post_vars['username'] != \"\"){\n $username = $post_vars['username'];\n\n update_user($id, $username);\n }else{\n API::error(400, \"Aucune informations saisie\");\n }\n }", "title": "" }, { "docid": "169112703ccc23e863ef58a5a464820e", "score": "0.61280245", "text": "public function setUserID($id,$data){\n\t\t$tmp = StaffDB::find($id);\n\t\tif($tmp!=NULL){\n\t\t\t$tmp->userID=$data;\n\t\t\t$tmp->save();\n\t\t}\n\t\telse {}\n\t}", "title": "" }, { "docid": "9c353bd9aadba29e455780ba6a1438b3", "score": "0.6126268", "text": "public function update($id)\n {\n /** Validação **/\n \n $regras = array(\n 'name.required' => 'Digite o nome do usuário',\n 'email.required' => 'Digite o e-mail do usuário',\n 'email.email' => 'Email inválido',\n 'email.unique' => 'Email já existe no banco de dados',\n 'password.required' => 'Informe a nova senha',\n 'password.min' => 'A nova senha deve ter ao menos 06 caracteres'\n );\n $validator = Validator::make(Input::all(), $regras);\n\n /** Processa **/\n if ($validator->fails()) {\n return Redirect::to('admin/usuarios/' . $id . '/edit')\n ->withErrors($validator);\n } else {\n \n\t /** Salva **/\n $usuario = DB::select('SELECT * FROM users WHERE id = :id', ['id' => $id]);\n\n $usuario[0]->name = Input::get('name');\n\t $usuario[0]->email = Input::get('email');\n\t $usuario[0]->password = Input::get('password');\n \n\t $usuarioNome = $usuario[0]->name;\n\t $usuarioEmail = $usuario[0]->email;\n\t $usuarioSenha = bcrypt($usuario[0]->password); \t \t\t\t\n\n DB::update('UPDATE users SET name = ?, email = ?, password = ? WHERE id = ?',[$usuarioNome,$usuarioEmail,$usuarioSenha,$id]);\n\n /** Redireciona **/\n Session::flash('message', 'Usuário atualizado com sucesso');\n return Redirect::to('admin/usuarios');\n }\n }", "title": "" }, { "docid": "541e42d1db2c89bbc6feeccc3bc3b490", "score": "0.6125342", "text": "public function edit($id)\n {\n $data['usuario'] = User::find($id);\n $data['usuarioAdmin'] = Auth::user();\n $instituciones = institucion::all();\n //dd($instituciones);\n foreach($instituciones as $institucion){\n //if($institucion->nombre != 'Ceindetec')\n $ins[$institucion->id] = $institucion->nombre;\n }\n $data['instituciones'] = $ins;\n return view('administracion.usuarios.edit', $data);\n }", "title": "" }, { "docid": "7bb40c596a1e0f2f667e8c8dfcfc7f9c", "score": "0.61205477", "text": "function editarArticulo() {\n\n\t$usr = miQuery(\"SELECT * FROM usuarios\");\n\tif ($usr) {\n\t\t$db = conectar();\n\t\tmysqli_query($db, \"UPDATE articulos SET nombre='$nombre',valor='$valor',calificacion='$calificacion',clasificacion='$clasificacion',foto='$foto',descripcion='$descripcion' WHERE id= \" . $usr[0][\"id\"]);\n\t\treturn true;\n\t} \n\treturn false;\n}", "title": "" }, { "docid": "a09c58e1042bc5777166f4bea1249c03", "score": "0.6120137", "text": "public function update($id)\n {\n $input = Request::except('_token');\n\n $usuario = Usuario::findOrfail($id);\n \t\n $usuario->Legajo = $input['Legajo'];\n \n $usuario->Apellido = $input['Apellido'];\n \n $usuario->Nombres = $input['Nombres'];\n \n $usuario->Usuario = $input['Usuario'];\n \n $usuario->Telefono = $input['Telefono'];\n \n $usuario->email = $input['email'];\n \n $usuario->Activo = $input['Activo'];\n \n $usuario->UsuarioUltAct = $input['UsuarioUltAct'];\n \n $usuario->FechaUltAct = $input['FechaUltAct'];\n \n \n $usuario->save();\n\n return redirect('usuario');\n }", "title": "" }, { "docid": "8c56b43d78596efcdf999e7925dec74c", "score": "0.6114728", "text": "public function update_post() {\n\n if (!$this->post('user')) {\n $this->response(array('error' => \"PARAMETROS NO RECIBIDOS\"), 404);\n }\n\n $rs = $this->user_model->update($this->post('user'));\n\n if (!is_null($rs)) {\n $this->response(array('response' => \"USUARIO SISTEMA EDITADO\"), 200);\n } else {\n $this->response(array('error' => \"ERROR INESPERADO\"), 500);\n }\n }", "title": "" }, { "docid": "6610d010b64a64ffc52514fd8ff14fe8", "score": "0.61102617", "text": "public function edit($id)\n {\n\n $idUsuario = auth()->user()->id; \n\n if($idUsuario != $id ){\n\n $user = DB::table('users')\n ->join('rol', 'users.idRol', '=', 'rol.idRol')\n ->select('users.id','users.name','users.email','rol.rol')\n ->where('users.id','=', $id)\n ->get();\n\n foreach ($user as $item) {\n $rol = $item->rol;\n }\n\n if($rol != 'ADMIN'){\n\n return view('usuario.edit', ['usuario' => $user]);\n\n }else{\n\n return redirect()->route('usuario.index')->with('status', 'No se puede actualizar a un administrador');\n\n } \n\n }else{\n \n return redirect()->route('usuario.index')->with('status', 'No se puede actualizar a si mismo');\n\n }\n\n \n }", "title": "" }, { "docid": "a481377a49b7e08a5a9a3a2b9fa7bafa", "score": "0.6104252", "text": "public function actUsuario($datos)\r\n\t{\r\n\t\tforeach ($datos as $nombre => $valor):\r\n\t\t\t$validar = '$'.$nombre.'=\"'.$valor.'\";';\r\n\t\t\teval($validar);\r\n\t\tendforeach;\r\n\t\t/*Preparar Consultas*/\r\n\t\t$consulta = \"update fun_usuarios \r\n\t\t\t\t\t set nombre1='\".$this->sanear($nombre1).\"'\r\n\t\t\t\t\t ,nombre2='\".$this->sanear($nombre2).\"'\r\n\t\t\t\t\t ,apellido1='\".$this->sanear($apellido1).\"'\r\n\t\t\t\t\t ,apellido2='\".$this->sanear($apellido2).\"'\r\n\t\t\t\t\t ,direccion='\".$this->sanear($direccion).\"'\r\n\t\t\t\t\t ,telefono1='\".$this->sanear($telefono1).\"'\r\n\t\t\t\t\t ,telefono2='\".$this->sanear($telefono2).\"'\r\n\t\t\t\t\t where documento = '\".$_SESSION['documento'].\"'\";\r\n\t\t/*Ejecutar Consulta*/\r\n\t\t$rs = $this->conectar()->query($consulta);\r\n\t\t/*Si todo está bien*/\r\n\t\tif($rs):\r\n\t\t\techo 'Datos actualizados correctamente';\r\n\t\t/*Si se tiene alguna falla*/\r\n\t\telse:\r\n\t\t\techo 'Hay algún mal,por favor confirme la información ingresada';\r\n\t\tendif;\r\n\t}", "title": "" }, { "docid": "d6bfd8f99b44c75c999e6070bf25696a", "score": "0.6100632", "text": "public function setUser(int $id): void\n {\n $this->user = $id;\n }", "title": "" }, { "docid": "fe4f311e8aff13a3e8217c7c30e4fcf4", "score": "0.60993415", "text": "public function activarUsuario($id,$codigo) {\r\n $usuario= $this->baseDatos->query(\r\n \"UPDATE usuarios SET estado = 1 WHERE id= '\".$id.\"' AND codigo= '\".$codigo.\"'\"\r\n );\r\n }", "title": "" }, { "docid": "e1605a94f04e47902e137422d946ad7f", "score": "0.609521", "text": "public function setData($data) {\n $this->setIdusuario($data['id']);\n $this->setDeslogin($data['deslogin']);\n $this->setDessenha($data['dessenha']);\n $this->setDtcadastro(new DateTime($data['dtcadastro']));\n }", "title": "" }, { "docid": "fdbe90fa1d55958c11154b01e1eb0e0d", "score": "0.6092248", "text": "public function update(Request $request, $id)\n {\n $users=User::get(); $docentes=Docente::get(); \n $usuario=User::find($id);\n //El dni tiene q ser único, por eso 1ro verificamos si cambio el dni\n if (Input::get('dni')!=$usuario->dni) {\n $sensor=0;\n foreach ($users as $user) {\n if ($user->dni==Input::get('dni')) {\n $sensor=1;\n }\n }\n if ($sensor==1) {\n $mensaje=\"El DNI ya está registrado por otro usuario\";\n return Redirect::to('admindocentes')->with('naranja', $mensaje);\n }else{$usuario->dni = Input::get('dni');}\n }\n //El email tiene q ser único, por eso 2do verificamos si cambio el dni\n //return \"BD: \".$usuario->email.\" <> get:\".Input::get('email');\n if (Input::get('email')!=$usuario->email) {\n $sensor=0;\n foreach ($users as $user) {\n if ($user->email==Input::get('email')) {\n $sensor=1;\n }\n }\n if ($sensor==1) {\n $mensaje=\"El E-mail ya está registrado por otro usuario\";\n return Redirect::to('admindocentes')->with('naranja', $mensaje);\n }else{$usuario->email = Input::get('email');}\n }\n\n //Luego llenamos lo demas \n $usuario->nombres=$request->get('nombres');\n $usuario->apellidos=$request->get('apellidos');\n $usuario->sexo=$request->get('sexo');\n $usuario->estado=$request->get('estado');\n $usuario->password=$request->get('pass');\n $usuario->save();\n return Redirect::to('admindocentes')->with('verde','Se Actualzó correctamente');\n\n\n }", "title": "" }, { "docid": "e2fb063692da6a8aa09bad53546f3edb", "score": "0.6087426", "text": "public function atualizarDados($id_upd,$nome,$email,$senha,$celular,$ativo){\n\n\n \n $cmd = $this->pdo->prepare(\"UPDATE usuarios SET nome = :n, email = :e, senha = :s, cel = :c, sit = :a WHERE idusuario = :id\");\n $cmd->bindValue(\":n\",$nome);\n $cmd->bindValue(\":e\",$email);\n $cmd->bindValue(\":s\",md5($senha));\n $cmd->bindValue(\":c\",$celular);\n $cmd->bindValue(\":a\",$ativo);\n $cmd->bindValue(\":id\",$id_upd);\n $cmd->execute();\n \n\n \n }", "title": "" }, { "docid": "d2af455968a894650546fdb3d744c09b", "score": "0.608704", "text": "function setUserId($id)\n {\n $this->__user_id = $id ;\n }", "title": "" }, { "docid": "f04868c7037d5cde843b8dfc30894d0b", "score": "0.6084949", "text": "public function update(Request $request, $id)\n {\n $usuario = Usuario::find($id);\n if ($usuario == null) \n throw new \\Exception(\"Este usuario é inexistente.\");\n\n $usuario->name = $request->name;\n $usuario->username = $request->username;\n $usuario->email = $request->email;\n $usuario->password = bcrypt($request->password);\n $usuario->tipo_usuario = $request->tipo_usuario;\n\n $usuario->save();\n\n // Se o tipo do usuário for prestador \n if ($usuario->tipo_usuario == \"2\") { \n\n $usuarioId = \\DB::table(\"usuarios\")->where(\"email\", '=', $usuario->email)->select(\"id\")->get();\n\n $prestador = Prestador::where('usuario_id', '=', $usuarioId[0]->id);\n\n $prestador->telefone = $request->telefone;\n $prestador->celular = $request->celular;\n $prestador->logradouro = $request->logradouro;\n $prestador->cep = $request->cep;\n $prestador->bairro = $request->bairro;\n $prestador->cidade = $request->cidade;\n $prestador->estado = $request->estado;\n $prestador->numero = $request->numero;\n $prestador->complemento = $request->complemento;\n $prestador->data_nasc = $request->data_nasc;\n $prestador->rg = $request->rg;\n $prestador->aprovado = $request->aprovado;\n\n $prestador->id_serv_1 = $request->id_serv_1;\n $prestador->id_serv_2 = $request->id_serv_2;\n $prestador->id_serv_3 = $request->id_serv_3;\n\n $prestador->descricao = $request->descricao;\n $prestador->avaliacao = $request->avaliacao;\n $prestador->foto = $request->foto;\n $prestador->tipo = $request->tipo_prestador;\n\n $prestador->save();\n\n $prestadorId = \\DB::table(\"prestadores\")->where(\"usuario_id\", '=', $prestador->usuario_id)->get();\n\n if ($prestador->tipo == \"1\") { // pessoa juridica\n\n $pessoaJur = PessoaJuridica::where(\"prestador_id\", \"=\", $prestadorId[0]->id);\n $pessoaJur->cnpj = $request->cnpj;\n $pessoaJur->nome_fantasia = $request->nome_fantasia;\n $pessoaJur->razao_social = $request->razao_social;\n\n\n $pessoaJur->save();\n\n } \n else { // pessoa física\n $pessoaFisica = PessoaFisica::where(\"prestador_id\", \"=\", $prestadorId[0]->id);\n $pessoaFisica->cpf = $request->cpf;\n $pessoaFisica->sexo = $request->sexo;\n $pessoaFisica->curriculum = $request->curriculum;\n\n $pessoaFisica->save();\n }\n\n }\n\n return Auth::user();\n\n }", "title": "" }, { "docid": "d5ca59116ce7cc87e2ce80c872ddad38", "score": "0.60844994", "text": "public function modificautentepageAction(){\n \n $id = $this->_getParam('iduser');\n $urlHelper = $this->_helper->getHelper('url');\n $this->_modificaUtenteForm->setAction($urlHelper->url(array(\n\t\t\t\t'controller' => 'admin',\n\t\t\t\t'action' => 'modificautente',\n 'id'=>$id),\n\t\t\t\t'default'\n\t\t\t\t));\n $utente = $this->_AdminModel->getUserById($id);\n $utente = $utente->toArray();\n \n $this->_modificaUtenteForm->populate($utente);\n \n }", "title": "" }, { "docid": "cf8c784f0bf3940caf33370e65f477f7", "score": "0.608307", "text": "function updateUsuario($tabla, $datos, $columna, $id){\n $mysqli = conectar_db();\n selecciona_db($mysqli);\n\n $Consulta = \"UPDATE $tabla SET \";\n for ($i = 0; $i < count($datos); $i++) {\n $Consulta = $Consulta.$columna[$i].'='.$datos[$i];\n if ($i != count($datos) - 1)\n $Consulta.=\",\";\n }\n $Consulta.=\" WHERE id=\".$id;\n\n $pConsulta = consulta_tb($mysqli, $Consulta);\n\n if (!$pConsulta) {\n echo 0;\n }else{\n echo 1;\n }\n cerrar_db($mysqli);\n }", "title": "" }, { "docid": "58ec048b4ea49bedaaddc1e17a2e6261", "score": "0.60823417", "text": "public function refactory_usuario($datos){\n \n $this->usuario = str_ireplace('{nick}',$datos[0]->nick ,$this->usuario );\n $this->usuario = str_ireplace('{nombre}',$datos[0]->nombre.\" \".$datos[0]->apellido,$this->usuario );\n $this->usuario = str_ireplace('{genero}',$datos[0]->genero ,$this->usuario );\n $this->usuario = str_ireplace('{imagen}',$datos[0]->imagen ,$this->usuario );\n $this->usuario = str_ireplace('{f_nacimiento}',$datos[0]->fecha_nacimiento ,$this->usuario );\n $this->usuario = str_ireplace('{correo}',$datos[0]->correo ,$this->usuario );\n $this->usuario = str_ireplace('{pais_origen}',$datos[0]->lugar_recidencia ,$this->usuario );\n $this->usuario = str_ireplace('{web_site}',$datos[0]->sitio_web ,$this->usuario );\n\n $this->actualizar_diccionarios(); \n\n }", "title": "" }, { "docid": "2e3eb6c434cf17c06cf4ed65a8f99785", "score": "0.6073608", "text": "public function updateAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('ConfigBundle:Usuario')->find($id);\n if (!$entity) {\n throw $this->createNotFoundException('No existe el Usuario que está buscando.');\n }\n $deleteForm = $this->createDeleteForm($id);\n $editForm = $this->createEditForm($entity);\n \n if ($request->getMethod() == 'POST') {\n $passwordOriginal = $editForm->getData()->getPassword();\n $editForm->handleRequest($request);\n if ($editForm->isValid()) {\n if (null == $entity->getPassword()) {\n $entity->setPassword($passwordOriginal);\n } else {\n // Codifica el password\n $factory = $this->get('security.encoder_factory');\n $codificador = $factory->getEncoder($entity);\n $password = $codificador->encodePassword($entity->getPassword(), $entity->getSalt());\n $entity->setPassword($password);\n }\n // $entity->setRoles($request->get('roles_user'));\n $em->persist($entity);\n $em->flush();\n $this->get('session')->getFlashBag()->add('info','Los datos fueron modificados con éxito!' ); \n return $this->redirect($this->generateUrl('seguridad_usuario_edit', array('id' => $id)));\n }\n } \n return $this->render('ConfigBundle:Usuario:edit.html.twig', array(\n 'entity' => $entity,\n 'roles' => $this->roles,\n 'form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "74683142f9edf42f5e7269fd9e216cb5", "score": "0.60718733", "text": "public function modificacion($idalumne){\n\t\t\t//si no hay usuario identificado... error\n\t\t\tif(!Login::getUsuario())\n\t\t\t\tthrow new Exception(\"Has d'estar registrat per poder modificar les teves dades\");\n\t\t\tif(!Login::isAdmin()&&($idalumne&&$idalumne!=Login::getUsuario()->id))\n\t\t\t\tthrow new Exception (\"Només l'administrador pot accedir a les dades d'un altre alumne\");\n\t\t\t\n\t\t\tif (!$idalumne)\n\t\t\t\t$idalumne=Login::getusuario()->id;\n\t\t\t//si no llegan los datos a modificar\n\t\t\t\n\t\t\tif(empty($_POST['modificar'])){\n\t\t\t\t\n\t\t\t\t//mostramos la vista del formulario\n\t\t\t\t$datos = array();\n\t\t\t\t//var_dump($_GET);\n\t\t\t/*\tif ($idalumne || !Login::isAdmin())\n\t\t\t\t\t$datos['usuario'] = Login::getUsuario();\n\t\t\t\telse \n\t\t\t\t\t$datos['usuario']= UsuarioModel::getUsuario($idalumne);*/\n\t\t\t\t$datos['usuario']= UsuarioModel::getUsuario($idalumne);\n\t\t\t\t//var_dump($datos);\t\n\t\t\t\t//$datos['max_image_size'] = Config::get()->user_image_max_size;\n\t\t\t\t\n\t\t\t\t$dni=$datos['usuario']->id;\n\t\t\t\t$this->load('model/PreinscripcioModel.php');\n\t\t\t\t$this->load('model/AreaformativaModel.php');\n\t\t\t\t\n\t\t\t\t$datos['inscripcions']=PreinscripcioModel::preinscripcions_alumne($dni);\n\t\t\t\t$datos['subscripcions']=SubscripcioModel::suscripcions_alumne($idalumne);\n\t\t\t\t//var_dump($datos);\n\t\t\t\t$this->load_view('view/usuarios/modificacion.php', $datos);\n\t\t\t\t//si llegan los datos por POST\n\t\t\t}else{\n\t\t\t\t//recuperar los datos actuales del usuario\n\t\t\t\t$u = UsuarioModel::getUsuario($_POST['id']);\n\t\t\t\t$conexion = Database::get();\n\t\t\t\t\n\t\t\t\t//comprueba que el usuario se valide correctamente\n\t\t\t\t\t\t\t\t\n\t\t\t\t//recupera los nuevos datos del formulario\n\t\t\t\t$u->nom = strtoupper($conexion->real_escape_string($_POST['nom']));\n\t\t\t\t$u->cognom1 = strtoupper($conexion->real_escape_string($_POST['cognom1']));\n\t\t\t\t$u->cognom2 = strtoupper($conexion->real_escape_string($_POST['cognom2']));\n\t\t\t\t$u->data_naixement = $_POST['data_naixement'];\n\t\t\t\t$u->dni = $conexion->real_escape_string($_POST['dni']);\n\t\t\t\t$u->email = strtolower($conexion->real_escape_string($_POST['email']));\n\t\t\t\t$u->estudis = $conexion->real_escape_string($_POST['estudis']);\n\t\t\t\t$u->prestacio = $conexion->real_escape_string($_POST['prestacio']);\n\t\t\t\t$u->situacio_laboral = $conexion->real_escape_string($_POST['situacio_laboral']);\t\t\n\t\t\t\t$u->telefon_fix = $conexion->real_escape_string($_POST['telefon_fix']);\n\t\t\t\t\n\t\t\t\t$u->telefon_mobil = $conexion->real_escape_string($_POST['telefon_mobil']);\n\t\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * OLD - No hacemos tratamiento de imagenes\n\t\t\t\t *\n\t\t\t\t//TRATAMIENTO DE LA NUEVA IMAGEN DE PERFIL (si se indicó)\n\t\t\t\tif($_FILES['imagen']['error']!=4){\n\t\t\t\t\t//el directorio y el tam_maximo se configuran en el fichero config.php\n\t\t\t\t\t$dir = Config::get()->user_image_directory;\n\t\t\t\t\t$tam = Config::get()->user_image_max_size;\n\t\t\t\t\t\n\t\t\t\t\t//prepara la carga de nueva imagen\n\t\t\t\t\t$upload = new Upload($_FILES['imagen'], $dir, $tam);\n\t\t\t\t\t\n\t\t\t\t\t//guarda la imagen antigua en una var para borrarla \n\t\t\t\t\t//después si todo ha funcionado correctamente\n\t\t\t\t\t$old_img = $u->imagen;\n\t\t\t\t\t\n\t\t\t\t\t//sube la nueva imagen\n\t\t\t\t\t$u->imagen = $upload->upload_image();\n\t\t\t\t} */\n\t\t\t\t\n\t\t\t\t//modificar el usuario en BDD\n\t\t\t\t//var_dump($u);\n\t\t\t\tif(!$u->actualizar())\n\t\t\t\t\tthrow new Exception('No es pot modificar');\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t//mostrar la vista de éxito\n\t\t\t\t$datos = array();\n\t\t\t\t$datos['usuario'] = Login::getUsuario();\n\t\t\t\t$datos['mensaje'] = 'Modificación OK';\n\t\t\t\t$this->load_view('view/exito.php', $datos);\n\t\t\t}\n\t\t}", "title": "" } ]
aee4b1a073468190e540a7a980ad0add
Draw a character vertically
[ { "docid": "66b17c20303b1274d4a5dfe2c8a7eabe", "score": "0.5017995", "text": "function gd_charup ($image, $font, $x, $y, $c, $color)\n{\n return imagecharup($image, $font, $x, $y, $c, $color);\n}", "title": "" } ]
[ { "docid": "8ae34af53bf854022f750e0dda61c8bd", "score": "0.6051335", "text": "public function getVerticalBorderChar()\n {\n return $this->verticalBorderChar;\n }", "title": "" }, { "docid": "dff8d3b8e032a14d902085d40f4bf068", "score": "0.58989996", "text": "function ncurses_vline($charattr, $n) {}", "title": "" }, { "docid": "5ea5f135b49a9076094c0b0987eaa677", "score": "0.5806671", "text": "function ncurses_mvhline($y, $x, $attrchar, $n) {}", "title": "" }, { "docid": "6b105163c383d22f116a0d46d532ce24", "score": "0.5713126", "text": "function ncurses_vline($charattr, $n)\n{\n}", "title": "" }, { "docid": "53bee8b7cb508ce4776899b2636b0fb8", "score": "0.5660901", "text": "private function verticalText($pdf, $left, $top, $width, $height, $spacing, $txt)\n\t{\n\t\t$x = $pdf->GetX();\n\t\t$y = $pdf->GetY();\n\n\t\t$characters = str_split($txt);\n\t\t$size = $spacing * count($characters);\n\t\tfor ($i = 0; $i < count($characters); $i++) {\n\t\t\t$pdf->SetXY($left, $top + ($height / 2) - ($size / 2) + ($spacing * $i));\n\t\t\t$pdf->Cell($width, $spacing, $characters[$i], 0, 0, 'C', false);\n\t\t}\n\n\t\t// Set position back\n\t\t$pdf->SetXY($x, $y);\n\t}", "title": "" }, { "docid": "0b8b3b25e153f621a536039dc7acc1c7", "score": "0.5636469", "text": "public function setVerticalBorderChar($verticalBorderChar)\r\n {\r\n $this->verticalBorderChar = $verticalBorderChar;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "8517fd7c2d0bb3942894446604ef05b6", "score": "0.5634486", "text": "function imagecharup ($image, $font, $x, $y, $c, $color) {}", "title": "" }, { "docid": "2988231e2ca2209b4e858727010bda62", "score": "0.5600699", "text": "function ncurses_hline($charattr, $n) {}", "title": "" }, { "docid": "0eab29e6cc29bce66120c8740dcba8c9", "score": "0.5462809", "text": "function imagechar ($image, $font, $x, $y, $c, $color) {}", "title": "" }, { "docid": "2b03dc1e2238b5f5c11d71c1e78d70dc", "score": "0.5449157", "text": "public function setVerticalBorderChar($verticalBorderChar)\n {\n $this->verticalBorderChar = $verticalBorderChar;\n\n return $this;\n }", "title": "" }, { "docid": "cfa717a7e636c5719a2aee2f24ba22ea", "score": "0.53367925", "text": "public function draw($im, $color, $x, $y)\n {\n $drawingPosition = $this->getDrawingPosition($x, $y);\n imagettftext($im, $this->size, $this->rotationAngle, $drawingPosition[0], $drawingPosition[1], $color, $this->path, $this->text);\n }", "title": "" }, { "docid": "f8c84212fe8d4fcb531c2673d470fc22", "score": "0.5291247", "text": "public function setCharacterHeight($ch,$h) {\r\n if ($this->direction != -1) {\r\n $this->font_metrics[$this->direction]->setCharacterHeight($ch,$h);\r\n } else {\r\n parent::setCharacterHeight($ch,$h);\r\n }\r\n }", "title": "" }, { "docid": "a901ee4861bd7ec6316e2d8213be162d", "score": "0.5248192", "text": "function ncurses_mvaddch($y, $x, $c) {}", "title": "" }, { "docid": "e51469d2043ad719eac07a6492962135", "score": "0.5186793", "text": "function DrawCharacters()\r\n {\r\n for ($i = 0; $i < strlen($this->sCode); $i ++) {\r\n // select random font\r\n $sCurrentFont = $this->aFonts[array_rand($this->aFonts)];\r\n \r\n // select random colour\r\n if ($this->bUseColour) {\r\n $iTextColour = imagecolorallocate($this->oImage, rand(0, 100), rand(0, 100), rand(0, 100));\r\n \r\n if ($this->bCharShadow) {\r\n // shadow colour\r\n $iShadowColour = imagecolorallocate($this->oImage, rand(0, 100), rand(0, 100), rand(0, 100));\r\n }\r\n } else {\r\n $iRandColour = rand(0, 100);\r\n $iTextColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);\r\n \r\n if ($this->bCharShadow) {\r\n // shadow colour\r\n $iRandColour = rand(0, 100);\r\n $iShadowColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);\r\n }\r\n }\r\n \r\n // select random font size\r\n $iFontSize = rand($this->iMinFontSize, $this->iMaxFontSize);\r\n \r\n // select random angle\r\n $iAngle = rand(- 33, 33);\r\n \r\n // get dimensions of character in selected font and text size\r\n $aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i], array());\r\n \r\n // calculate character starting coordinates\r\n $iX = $this->iSpacing / 4 + $i * $this->iSpacing;\r\n $iCharHeight = $aCharDetails[2] - $aCharDetails[5];\r\n $iY = $this->iHeight / 2 + $iCharHeight / 4;\r\n \r\n // write text to image\r\n imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i], array());\r\n \r\n if ($this->bCharShadow) {\r\n $iOffsetAngle = rand(- 30, 30);\r\n \r\n $iRandOffsetX = rand(- 5, 5);\r\n $iRandOffsetY = rand(- 5, 5);\r\n \r\n imagefttext($this->oImage, $iFontSize, $iOffsetAngle, $iX + $iRandOffsetX, $iY + $iRandOffsetY, $iShadowColour, $sCurrentFont, $this->sCode[$i], array());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "64acb67c6781efa797d4c6b3898cc705", "score": "0.511924", "text": "public function drawMan() {\n\n echo \"------圣诞男孩-------\";\n }", "title": "" }, { "docid": "cf96e9a6055d8e31213f04a173af5d96", "score": "0.5043994", "text": "function ncurses_echochar($character) {}", "title": "" }, { "docid": "a73d1816b1df996d8be4ae7c64cc18b6", "score": "0.49044532", "text": "public function textoVertice($vertice){\n return $vertice[\"x\"].\", \".$vertice[\"y\"];\n }", "title": "" }, { "docid": "b05fd357788a47dcb05e96b0dd2b82d0", "score": "0.4901297", "text": "function ncurses_mvdelch($y, $x) {}", "title": "" }, { "docid": "ad2ff8ab5026c20a2d466b0b171afc3a", "score": "0.48961413", "text": "public function drawText( $strtext ){ imagestring(); }", "title": "" }, { "docid": "4ee52b983b94e2c63854438a1921f0b0", "score": "0.4879633", "text": "function ncurses_mvinch($y, $x) {}", "title": "" }, { "docid": "6e02924ac840013f2e8acc2f59076c7b", "score": "0.4862864", "text": "public function highlightCharacter();", "title": "" }, { "docid": "d659d434cc6671dfb08f4e13a1f67a7c", "score": "0.48260543", "text": "protected function drawText($im) {\n\t\tif($this->label !== BCGBarcode1D::AUTO_LABEL) {\n\t\t\tparent::drawText($im);\n\t\t} elseif($this->label !== '') {\n\t\t\t$temp_text = $this->text . $this->keys[$this->checksumValue];\n\t\t\tif($this->textfont instanceof BCGFont) {\n\t\t\t\t$code1 = 0;\n\t\t\t\t$code2 = 0;\n\n\t\t\t\t$this->textfont->setText($temp_text);\n\t\t\t\t$this->drawExtendedBars($im, $this->textfont->getHeight(), $code1, $code2);\n\n\t\t\t\t// We need to separate the text, one on the left and one on the right, one starting and one ending\n\t\t\t\t$text0 = substr($temp_text, 1, 1);\n\t\t\t\t$text1 = substr($temp_text, 2, 5);\n\t\t\t\t$text2 = substr($temp_text, 7, 5);\n\t\t\t\t$text3 = substr($temp_text, 12, 1);\n\t\t\t\t$font0 = clone $this->textfont;\n\t\t\t\t$font1 = clone $this->textfont;\n\t\t\t\t$font2 = clone $this->textfont;\n\t\t\t\t$font3 = clone $this->textfont;\n\t\t\t\t$font0->setText($text0);\n\t\t\t\t$font1->setText($text1);\n\t\t\t\t$font2->setText($text2);\n\t\t\t\t$font3->setText($text3);\n\n\t\t\t\t$xPosition0 = $this->offsetX * $this->scale - $font0->getWidth() - 4; // -4 is just for beauty;\n\t\t\t\t$xPosition3 = $this->offsetX * $this->scale + $this->positionX * $this->scale + 2;\n\t\t\t\t$yPosition0 = $this->thickness * $this->scale + $font0->getHeight() / 2 + $this->offsetY * $this->scale;\n\n\t\t\t\t$xPosition1 = ($this->scale * 36 - $font1->getWidth()) / 2 + $code1 * $this->scale + $this->offsetX * $this->scale;\n\t\t\t\t$xPosition2 = ($this->scale * 37 - $font2->getWidth()) / 2 + $code2 * $this->scale + $this->offsetX * $this->scale;\n\t\t\t\t$yPosition = $this->thickness * $this->scale + $this->textfont->getHeight() + BCGBarcode1D::SIZE_SPACING_FONT + $this->offsetY * $this->scale;\n\n\t\t\t\t$text_color = $this->colorFg->allocate($im);\n\t\t\t\t$font0->draw($im, $text_color, $xPosition0, $yPosition0);\n\t\t\t\t$font1->draw($im, $text_color, $xPosition1, $yPosition);\n\t\t\t\t$font2->draw($im, $text_color, $xPosition2, $yPosition);\n\t\t\t\t$font3->draw($im, $text_color, $xPosition3, $yPosition0);\n\t\t\t} elseif($this->textfont !== 0) {\n\t\t\t\t$code1 = 0;\n\t\t\t\t$code2 = 0;\n\n\t\t\t\t$this->drawExtendedBars($im, 9, $code1, $code2);\n\n\t\t\t\t$xPosition0 = $this->offsetX * $this->scale - imagefontwidth($this->textfont);\n\t\t\t\t$xPosition3 = $this->offsetX * $this->scale + $this->positionX * $this->scale + 2;\n\t\t\t\t$yPosition0 = $this->thickness * $this->scale - imagefontheight($this->textfont) / 2 + $this->offsetY * $this->scale;\n\n\t\t\t\t$xPosition1 = ($this->scale * 36 - imagefontwidth($this->textfont) * 5) / 2 + $code1 * $this->scale + $this->offsetX * $this->scale;\n\t\t\t\t$xPosition2 = ($this->scale * 37 - imagefontwidth($this->textfont) * 5) / 2 + $code2 * $this->scale + $this->offsetX * $this->scale;\n\t\t\t\t$yPosition = $this->thickness * $this->scale + $this->offsetY * $this->scale;\n\n\t\t\t\t$text_color = $this->colorFg->allocate($im);\n\t\t\t\timagechar($im, $this->textfont, $xPosition0, $yPosition0, $temp_text[1], $text_color);\n\t\t\t\timagestring($im, $this->textfont, $xPosition1, $yPosition, substr($temp_text, 2, 5), $text_color);\n\t\t\t\timagestring($im, $this->textfont, $xPosition2, $yPosition, substr($temp_text, 7, 5), $text_color);\n\t\t\t\timagechar($im, $this->textfont, $xPosition3, $yPosition0, $temp_text[12], $text_color);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d39bbe77b21304afe5bd6fe364b45053", "score": "0.4817152", "text": "function RenderTextToImage($text) {\n // Set font size\n $font_size = 4;\n\n $ts = explode(\"\\n\",$text);\n $width = 0;\n foreach ($ts as $k => $string) { //compute width\n $width = max($width,strlen($string));\n }\n\n // Create image width dependant on width of the string\n $width = imagefontwidth($font_size)*$width;\n // Set height to that of the font\n $height = imagefontheight($font_size)*count($ts);\n $el = imagefontheight($font_size);\n $em = imagefontwidth($font_size);\n // Create the image pallette\n $img = imagecreatetruecolor($width,$height);\n // Dark red background\n $bg = imagecolorallocate($img, 0xAA, 0x00, 0x00);\n imagefilledrectangle($img, 0, 0,$width ,$height , $bg);\n // White font color\n $color = imagecolorallocate($img, 255, 255, 255);\n\n foreach ($ts as $k=>$string) {\n // Length of the string\n $len = strlen($string);\n // Y-coordinate of character, X changes, Y is static\n $ypos = 0;\n // Loop through the string\n for($i=0;$i<$len;$i++){\n // Position of the character horizontally\n $xpos = $i * $em;\n $ypos = $k * $el;\n // Draw character\n imagechar($img, $font_size, $xpos, $ypos, $string, $color);\n // Remove character from string\n $string = substr($string, 1);\n }\n }\n // Return the image\n header(\"Content-Type: image/png\");\n imagepng($img);\n // Remove image\n imagedestroy($img);\n}", "title": "" }, { "docid": "78f87e5aac87e7a08fe7d2b95af87255", "score": "0.48092875", "text": "function drawHeader($text)\n{\n print \"\\033[2J\";\n print \"\\n\";\n print \".--[ PowerPellet v.0.1a ]------------------------------------------+\\n\";\n print \": $text \\n\";\n print \"`------------------------------------------------+\\n\";\n print \"\\n\";\n\n}", "title": "" }, { "docid": "3f43a5e0cceb2b24aabda9cc2e6605eb", "score": "0.47761214", "text": "public function render()\n {\n if (!$this->_hasChanges) {\n return;\n }\n $width = $this->_width;\n $output = $this->getOutput();\n $col = $this->_getStartCol($width, $width);\n $row = $this->_getStartRow();\n $charE = $this->_isUTF ? '░' : '-';\n $charF = $this->_isUTF ? '▊' : '#';\n $min = $this->_min;\n $minL = strlen($min);\n $max = $this->_max;\n $maxL = strlen($max);\n $val = max(min($this->_pos, $max), $min);\n $barL = $width - 9 - $minL - $maxL * 2;\n $part = ($val - $min) / ($max - $min);\n $pos = floor($part * $barL);\n $percent = str_pad(floor($part * 100), 4, ' ', STR_PAD_LEFT);\n $bar = str_repeat($charF, $pos) . str_repeat($charE, $barL - $pos);\n $val = str_pad($this->_pos, $maxL, ' ', STR_PAD_LEFT);\n $text = \"{$min} [{$bar}] {$val}/{$max}{$percent}%\";\n $output->setPos($row, $col);\n echo $text;\n $this->_hasChanges = false;\n }", "title": "" }, { "docid": "12fecf079f8712846d20037ce581b313", "score": "0.47683972", "text": "function ncurses_mvdelch($y, $x)\n{\n}", "title": "" }, { "docid": "e78443a8f4935706cfec3b93fc343c06", "score": "0.47177505", "text": "public function draw($im, $x1, $y1, $x2, $y2)\n {\n $x = 0;\n $y = 0;\n\n $fontDimension = $this->font->getDimension();\n\n if ($this->position === self::POSITION_TOP || $this->position === self::POSITION_BOTTOM) {\n if ($this->position === self::POSITION_TOP) {\n $y = $y1 - $this->spacing - $fontDimension[1];\n } elseif ($this->position === self::POSITION_BOTTOM) {\n $y = $y2 + $this->spacing;\n }\n\n if ($this->alignment === self::ALIGN_CENTER) {\n $x = ($x2 - $x1) / 2 + $x1 - $fontDimension[0] / 2 + $this->offset;\n } elseif ($this->alignment === self::ALIGN_LEFT) {\n $x = $x1 + $this->offset;\n } else {\n $x = $x2 + $this->offset - $fontDimension[0];\n }\n } else {\n if ($this->position === self::POSITION_LEFT) {\n $x = $x1 - $this->spacing - $fontDimension[0];\n } elseif ($this->position === self::POSITION_RIGHT) {\n $x = $x2 + $this->spacing;\n }\n\n if ($this->alignment === self::ALIGN_CENTER) {\n $y = ($y2 - $y1) / 2 + $y1 - $fontDimension[1] / 2 + $this->offset;\n } elseif ($this->alignment === self::ALIGN_TOP) {\n $y = $y1 + $this->offset;\n } else {\n $y = $y2 + $this->offset - $fontDimension[1];\n }\n }\n\n $this->font->setText($this->text);\n $this->font->draw($im, 0, $x, $y);\n }", "title": "" }, { "docid": "db0dc1fb5d0cf603c690c977f5698bc0", "score": "0.47046933", "text": "function RotatedText($x, $y, $txt, $angle){\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n\t}", "title": "" }, { "docid": "0df137d27db10285fe8816adaf42c9f1", "score": "0.469772", "text": "function gd_char ($image, $font, $x, $y, $c, $color)\n{\n return imagechar($image, $font, $x, $y, $c, $color);\n}", "title": "" }, { "docid": "f722af85be9e72e524e6dc188a986aeb", "score": "0.466636", "text": "function ncurses_mvgetch($y, $x) {}", "title": "" }, { "docid": "6b48b7c0254dfba3eeb0b8282a26c97e", "score": "0.46625942", "text": "function RotatedText($x, $y, $txt, $angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "0355d81cd51334c5a3a1134dd39369ab", "score": "0.46510988", "text": "function RotatedText($x, $y, $txt, $angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "6aef87cbd46b89f5b4cf5e4085faab55", "score": "0.46397972", "text": "function drawBuffer($clear = 0) {\n\t\tif ($this->buf->cursor === $this->buf->length() && $clear === 0) {\n\t\t} else {\n\t\t\tif (strlen($this->buf->buffer->substring($this->buf->cursor)) === 0) $chars = array();\n\t\t\telse $chars = str_split($this->buf->buffer->substring($this->buf->cursor));\n\t\t\t\n\t\t\tif ($this->mask !== null && !empty($chars)) {\n\t\t\t\t$chars = array_fill(0, count($chars), $this->mask);\n\t\t\t}\n\t\t\tif ($this->terminal->hasWeirdWrap()) {\n\t\t\t\t// need to determine if wrapping will occur:\n\t\t\t\t$width = $this->terminal->getWidth();\n\t\t\t\t$pos = $this->getCursorPosition();\n\t\t\t\tfor ($i = 0; $i < count($chars); $i++) {\n\t\t\t\t\t$this->_print($chars[$i]);\n\t\t\t\t\tif ((($pos + $i + 1) % $width) == 0) {\n\t\t\t\t\t\t$this->_print(chr(32)); // move cursor to next line by printing dummy space\n\t\t\t\t\t\t$this->_print(chr(13)); // CR / not newline.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->_print($chars);\n\t\t\t}\n\t\t\t\n\t\t\t$this->clearAhead($clear, count($chars));\n\t\t\tif ($this->terminal->isAnsiSupported()) {\n\t\t\t\tif (count($chars) > 0) {\n\t\t\t\t\t$this->back(count($chars));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->back(count($chars));\n\t\t\t}\n\t\t}\n\t\tif ($this->terminal->hasWeirdWrap()) {\n\t\t\t$width = $this->terminal->getWidth();\n\t\t\t// best guess on whether the cursor is in that weird location...\n\t\t\t// Need to do this without calling ansi cursor location methods\n\t\t\t// otherwise it breaks paste of wrapped lines in xterm.\n\t\t\tif ($this->getCursorPosition() > 0 && (($this->getCursorPosition() % $width) === 0)\n\t\t\t\t\t&& $this->buf->cursor == $this->buf->length() && $clear === 0) {\n\t\t\t\t// the following workaround is reverse-engineered from looking\n\t\t\t\t// at what bash sent to the terminal in the same situation\n\t\t\t\t$this->_print(chr(32)); // move cursor to next line by printing dummy space\n\t\t\t\t$this->_print(chr(13)); // CR / not newline.\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fafcddc72061f60cedd31e87fccbc198", "score": "0.46281412", "text": "function drawWord()\r\n {\r\n if ($this->use_gd_font == true) {\r\n if (!is_int($this->gd_font_file)) { //is a file name\r\n $font = @imageloadfont($this->gd_font_file);\r\n if ($font == false) {\r\n trigger_error(\"Failed to load GD Font file {$this->gd_font_file} \", E_USER_WARNING);\r\n return;\r\n }\r\n } else { //gd font identifier\r\n $font = $this->gd_font_file;\r\n }\r\n\r\n $color = imagecolorallocate($this->im, hexdec(substr($this->text_color, 1, 2)), hexdec(substr($this->text_color, 3, 2)), hexdec(substr($this->text_color, 5, 2)));\r\n imagestring($this->im, $font, $this->text_x_start, ($this->image_height / 2) - ($this->gd_font_size / 2), $this->code, $color);\r\n\r\n } else { //ttf font\r\n if($this->use_transparent_text == true) {\r\n $alpha = intval($this->text_transparency_percentage / 100 * 127);\r\n $font_color = imagecolorallocatealpha($this->im, hexdec(substr($this->text_color, 1, 2)), hexdec(substr($this->text_color, 3, 2)), hexdec(substr($this->text_color, 5, 2)), $alpha);\r\n } else { //no transparency\r\n $font_color = imagecolorallocate($this->im, hexdec(substr($this->text_color, 1, 2)), hexdec(substr($this->text_color, 3, 2)), hexdec(substr($this->text_color, 5, 2)));\r\n }\r\n\r\n $x = $this->text_x_start;\r\n $strlen = strlen($this->code);\r\n $y_min = ($this->image_height / 2) + ($this->font_size / 2) - 2;\r\n $y_max = ($this->image_height / 2) + ($this->font_size / 2) + 2;\r\n $colors = explode(',', $this->multi_text_color);\r\n\r\n for($i = 0; $i < $strlen; ++$i) {\r\n $angle = rand($this->text_angle_minimum, $this->text_angle_maximum);\r\n $y = rand($y_min, $y_max);\r\n if ($this->use_multi_text == true) {\r\n $idx = rand(0, sizeof($colors) - 1);\r\n $r = substr($colors[$idx], 1, 2);\r\n $g = substr($colors[$idx], 3, 2);\r\n $b = substr($colors[$idx], 5, 2);\r\n if($this->use_transparent_text == true) {\r\n $font_color = imagecolorallocatealpha($this->im, \"0x$r\", \"0x$g\", \"0x$b\", $alpha);\r\n } else {\r\n $font_color = imagecolorallocate($this->im, \"0x$r\", \"0x$g\", \"0x$b\");\r\n }\r\n }\r\n @imagettftext($this->im, $this->font_size, $angle, $x, $y, $font_color, $this->ttf_file, $this->code[$i]);\r\n\r\n $x += rand($this->text_minimum_distance, $this->text_maximum_distance);\r\n } //for loop\r\n } //else ttf font\r\n }", "title": "" }, { "docid": "5868b284f5b0f5cd792d90ed0df37a9d", "score": "0.46174216", "text": "protected function drawMoveMarkup()\n {\n\t$mv = $this->getMoves();\n\n\tif ($this->firstColor == 'W') {\n\t $col[0] = $this->colors['white'];\n\t $col[1] = $this->colors['black'];\n\t}\n else {\n\t $col[0] = $this->colors['black'];\n\t $col[1] = $this->colors['white'];\n\t}\n\tfor ($i = 1; $i <= 10; $i++) {\n\t if (isset($mv[$i])) {\n\t foreach ($mv[$i] as $coord) {\n\t $move = ($i + $this->startMoveNum - 1) % 100;\n\t if ($move < 0)\n \t continue;\n \t elseif ($move == 0)\t// = 100 % 100\n \t $move = '00';\n \t list($x, $y) = $this->dim->toImgCoords($coord);\n \t $this->drawLetter($x, $y, $move, $col[$i%2], true);\n\t }\n\t }\n\t}\n }", "title": "" }, { "docid": "e41b73aa2cb1fb6afdb8d3a07544fd42", "score": "0.46037358", "text": "function DrawOwnerText()\r\n {\r\n $iBlack = imagecolorallocate($this->oImage, 0, 0, 0);\r\n // get height of selected font\r\n $iOwnerTextHeight = imagefontheight(2);\r\n // calculate overall height\r\n $iLineHeight = $this->iHeight - $iOwnerTextHeight - 4;\r\n \r\n // draw line above text to separate from CAPTCHA\r\n imageline($this->oImage, 0, $iLineHeight, $this->iWidth, $iLineHeight, $iBlack);\r\n \r\n // write owner text\r\n imagestring($this->oImage, 2, 3, $this->iHeight - $iOwnerTextHeight - 3, $this->sOwnerText, $iBlack);\r\n \r\n // reduce available height for drawing CAPTCHA\r\n $this->iHeight = $this->iHeight - $iOwnerTextHeight - 5;\r\n }", "title": "" }, { "docid": "62699ec96c6ceaa44b9384651e5e71e8", "score": "0.45933536", "text": "protected function drawLetter($x, $y, $text, $color, $bold=false)\n {\n\t$font = $bold ? $this->dim->font_size+1 : $this->dim->font_size;\n\t$text = \"$text\";\t// force string\n\t$xoffset = (strlen($text)==2) ? $this->dim->font_width\n\t\t\t\t : $this->dim->font_width/2;\n\tImageString($this->img, $font, $x-$xoffset,\n\t\t $y-($this->dim->font_height/2), $text, $color);\n }", "title": "" }, { "docid": "da945ae3d762985e9aa153d4fc357a7d", "score": "0.4591271", "text": "public function drawText($text, $x, $y, $charEncoding = 'WINDOWS-1252')\n {\n $this->convertCoordinatesFromUserSpace($x, $y);\n $y -= $this->getFontSize();\n return parent::drawText($text, $x, $y, $charEncoding);\n }", "title": "" }, { "docid": "1ccd2aab88ef35d4ba3b36dcbc7d1343", "score": "0.45870188", "text": "public final function drawLine() {\n\t\t$prompt = $this->getPrompt();\n\t\tif ($prompt !== null) {\n\t\t\t$this->_print($prompt);\n\t\t}\n\n\t\t$this->_print($this->buf->buffer->__toString());\n\n\t\tif ($this->buf->length() !== $this->buf->cursor) { // not at end of line\n\t\t\t$this->back($this->buf->length() - $this->buf->cursor - 1);\n\t\t}\n\t\t// force drawBuffer to check for weird wrap (after clear screen)\n\t\t$this->drawBuffer();\n\t}", "title": "" }, { "docid": "a76f015f31ea37a508952256119375be", "score": "0.45800433", "text": "protected function drawChar($im, $code, $startBar = true)\n {\n $colors = array(self::COLOR_FG, self::COLOR_BG);\n $currentColor = $startBar ? 0 : 1;\n $c = strlen($code);\n for ($i = 0; $i < $c; $i++) {\n for ($j = 0; $j < intval($code[$i]) + 1; $j++) {\n $this->drawSingleBar($im, $colors[$currentColor]);\n $this->nextX();\n }\n\n $currentColor = ($currentColor + 1) % 2;\n }\n }", "title": "" }, { "docid": "fa2b158345518262e55ac0e34d11cfab", "score": "0.45690984", "text": "public function getCharacterHeight($ch,$use_font_size = false) {\r\n if ($this->direction != -1) {\r\n return $this->font_metrics[$this->direction]->getCharacterHeight($ch,$use_font_size);\r\n } else {\r\n return parent::getCharacterHeight($ch,$use_font_size);\r\n }\r\n }", "title": "" }, { "docid": "9a41cdb0b1726f9f6609181af18effd3", "score": "0.45633864", "text": "protected function DrawText($im) {\r\n\t\tif($this->textfont != 0) {\r\n\t\t\t$bar_color = (is_null($this->color1))?NULL:$this->color1->allocate($im);\r\n\t\t\tif(!is_null($bar_color)) {\r\n\t\t\t\t$rememberX = $this->positionX;\r\n\t\t\t\t$rememberH = $this->maxHeight;\r\n\t\t\t\t// We increase the bars\r\n\t\t\t\t$this->maxHeight = $this->maxHeight + 9;\r\n\t\t\t\t$this->positionX = 10;\r\n\t\t\t\t$this->DrawSingleBar($im,$this->color1);\r\n\t\t\t\t$this->positionX += $this->res*2;\r\n\t\t\t\t$this->DrawSingleBar($im,$this->color1);\r\n\t\t\t\t// Last Bars\r\n\t\t\t\t$this->positionX += $this->res*46;\r\n\t\t\t\t$this->DrawSingleBar($im,$this->color1);\r\n\t\t\t\t$this->positionX += $this->res*2;\r\n\t\t\t\t$this->DrawSingleBar($im,$this->color1);\r\n\r\n\t\t\t\t$this->positionX = $rememberX;\r\n\t\t\t\t$this->maxHeight = $rememberH;\r\n\t\t\t\timagechar($im,$this->textfont,1,$this->maxHeight-(imagefontheight($this->textfont)/2),$this->text[0],$bar_color);\r\n\t\t\t\timagestring($im,$this->textfont,10+(4*$this->res+48*$this->res)/2-imagefontwidth($this->textfont)*(6/2),$this->maxHeight+1,substr($this->text,1,6),$bar_color);\r\n\t\t\t\timagechar($im,$this->textfont,2+10+(48+4)*$this->res,$this->maxHeight-(imagefontheight($this->textfont)/2),$this->text[7],$bar_color);\r\n\t\t\t}\r\n\t\t\t$this->lastY = $this->maxHeight + imagefontheight($this->textfont);\r\n\t\t\t$this->lastX += 2 + imagefontwidth($this->textfont);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e2330e565d2ad382f3e9c8ab25631859", "score": "0.45499623", "text": "public function draw($im, $color, $x, $y)\n {\n if ($this->rotationAngle !== 0) {\n if (!function_exists('imagerotate')) {\n throw new \\Exception('The method imagerotate doesn\\'t exist on your server. Do not use any rotation.');\n }\n\n $w = imagefontwidth($this->font) * strlen($this->text);\n $h = imagefontheight($this->font);\n $gd = imagecreatetruecolor($w, $h);\n imagefilledrectangle($gd, 0, 0, $w - 1, $h - 1, $this->backgroundColor->allocate($gd));\n imagestring($gd, $this->font, 0, 0, $this->text, $color);\n $gd = imagerotate($gd, $this->rotationAngle, 0);\n imagecopy($im, $gd, $x, $y, 0, 0, imagesx($gd), imagesy($gd));\n } else {\n imagestring($im, $this->font, $x, $y, $this->text, $color);\n }\n }", "title": "" }, { "docid": "537c007b20fcd6ea437f6c0cac614698", "score": "0.45432392", "text": "public function draw($string)\n {\n return $this->climate->draw($string);\n }", "title": "" }, { "docid": "d09606d40e337c9c5ec47b34e1daa0fc", "score": "0.4539638", "text": "function Codabar($xpos, $ypos, $code, $start='A', $end='A', $basewidth=0.12, $height=6) {\n\t$barChar = array (\n\t\t'0' => array (6.5, 4.4, 6.5, 3.4, 6.5, 7.3, 2.9),\n\t\t'1' => array (6.5, 4.4, 6.5, 8.4, 4.9, 4.3, 6.5),\n\t\t'2' => array (6.5, 4.0, 6.5, 9.4, 6.5, 3.0, 8.6),\n\t\t'3' => array (17.9, 24.3, 6.5, 6.4, 6.5, 3.4, 6.5),\n\t\t'4' => array (6.5, 2.4, 8.9, 6.4, 6.5, 4.3, 6.5),\n\t\t'5' => array (5.9,\t2.4, 6.5, 6.4, 6.5, 4.3, 6.5),\n\t\t'6' => array (6.5, 8.3, 6.5, 6.4, 6.5, 6.4, 7.9),\n\t\t'7' => array (6.5, 8.3, 6.5, 2.4, 7.9, 6.4, 6.5),\n\t\t'8' => array (6.5, 8.3, 5.9, 10.4, 6.5, 6.4, 6.5),\n\t\t'9' => array (7.6, 5.0, 6.5, 8.4, 6.5, 3.0, 6.5),\n\t\t'$' => array (6.5, 5.0, 18.6, 24.4, 6.5, 10.0, 6.5),\n\t\t'-' => array (6.5, 5.0, 6.5, 4.4, 8.6, 10.0, 6.5),\n\t\t':' => array (16.7, 9.3, 6.5, 9.3, 16.7, 9.3, 14.7),\n\t\t'/' => array (14.7, 9.3, 16.7, 9.3, 6.5, 9.3, 16.7),\n\t\t'.' => array (13.6, 10.1, 14.9, 10.1, 17.2, 10.1, 6.5),\n\t\t'+' => array (6.5, 10.1, 17.2, 10.1, 14.9, 10.1, 13.6),\n\t\t'A' => array (6.5, 8.0, 19.6, 19.4, 6.5, 16.1, 6.5),\n\t\t'T' => array (6.5, 8.0, 19.6, 19.4, 6.5, 16.1, 6.5),\n\t\t'B' => array (6.5, 16.1, 6.5, 19.4, 6.5, 8.0, 19.6),\n\t\t'N' => array (6.5, 16.1, 6.5, 19.4, 6.5, 8.0, 19.6),\n\t\t'C' => array (6.5, 8.0, 6.5, 19.4, 6.5, 16.1, 19.6),\n\t\t'*' => array (6.5, 8.0, 6.5, 19.4, 6.5, 16.1, 19.6),\n\t\t'D' => array (6.5, 8.0, 6.5, 19.4, 19.6, 16.1, 6.5),\n\t\t'E' => array (6.5, 8.0, 6.5, 19.4, 19.6, 16.1, 6.5),\n\t);\n\t$this->SetFont('Arial','',1);\n\t$this->SetTextColor(259); // Establece el color del texto (en este caso es blanco)\n\t$this->Text($xpos, $ypos + $height + 2, $code);\n\t$this->SetFillColor(0);\n\t$code = strtoupper($start.$code.$end);\n\tfor($i=0; $i<strlen($code); $i++){\n\t\t$char = $code[$i];\n\t\tif(!isset($barChar[$char])){\n\t\t\t$this->Error('Invalid character in barcode: '.$char);\n\t\t}\n\t\t$seq = $barChar[$char];\n\t\tfor($bar=0; $bar<7; $bar++){\n\t\t\t$lineWidth = $basewidth*$seq[$bar]/6.5;\n\t\t\tif($bar % 2 == 0){\n\t\t\t\t$this->Rect($xpos, $ypos, $lineWidth, $height, 'F');\n\t\t\t}\n\t\t\t$xpos += $lineWidth;\n\t\t}\n\t\t$xpos += $basewidth*10.4/6.5;\n\t}\n}", "title": "" }, { "docid": "36c09adff9fc1f896ee0dce6591c3130", "score": "0.45345667", "text": "private function renderColumnSeparator()\r\n {\r\n $this->output->write(sprintf($this->borderFormat, $this->verticalBorderChar));\r\n }", "title": "" }, { "docid": "c043b02d682ea8dcc22457d6fda04d85", "score": "0.45274895", "text": "public function testNormalVerticalAlignment(): void\n {\n $params = array(\n \"lines\" => implode(\";\", array(\n \"Full-stack web and app developer\",\n \"Self-taught UI/UX Designer\",\n \"10+ years of coding experience\",\n \"Always learning new things\",\n )),\n \"center\" => \"true\",\n \"width\" => \"380\",\n \"height\" => \"50\",\n );\n $controller = new RendererController($params, self::$database);\n $this->assertEquals(file_get_contents(\"tests/svg/test_normal_vertical_alignment.svg\"), $controller->render());\n }", "title": "" }, { "docid": "34b6ff00b8deedf53628ec2ccecf8dfc", "score": "0.4524448", "text": "function RotatedText($x,$y,$txt,$angle)\r\n {\r\n $this->Rotate($angle,$x,$y);\r\n $this->Text($x,$y,$txt);\r\n $this->Rotate(0);\r\n }", "title": "" }, { "docid": "29b3a531d6935c2a2f99399cd80dad7c", "score": "0.45202443", "text": "private function drawCapatchaImageText()\n\t{\n\n\t\t#\tCreate Image Text\n\n\t\t# here we will first create background text, then front text\n\t\t# we will set x- position\n\t\t# initial front text position 'initial_x'\n\t\t# current position 'current_x'\n\n\t\t$this->_front_text['initial_x'] = $this->_front_text['x'] = rand( 10, 25 );\n\n\t\t# Background Text\n\t\t# X, Y positions\n\n\t\t$this->_background_text['x'] = $this->_front_text['x'] / 2;\n\t\t$this->_background_text['y'] = ( $this->_calculated_text_box['dimensions']['height'] ) + ( $this->_calculated_text_box['additional_height'] / 2 );\n\n\t\t// Developing::preview( $this->_calculated_text_box['additional_height'], $this->_image_info['height'] - $this->_calculated_text_box['dimensions']['height'] );\n\n\t\t$characters = str_split( $this->_code, 1 );\n\n\t\t# Generating background text By Drawing letter by letter\n\t\tforeach( $characters as $char )\n\t\t{\n\t\t\t# character rotation angle\n\t\t\t$rotation_angle = rand( 0 - $this->_rotation_angle, $this->_rotation_angle );\n\n\t\t\t# get color rgb values\n\t\t\t$rgb = $this->getRGBFromRange(\n\t\t\t\t$this->_background_text['color'][0],\n\t\t\t\t$this->_background_text['color'][1],\n\t\t\t\t$this->_background_text['color'][2],\n\t\t\t\t$this->_background_text['color']['range']\n\t\t\t\t);\n\n\t\t\t$character_color = imagecolorallocatealpha(\n\t\t\t\t$this->_image_resource,\n\t\t\t\t$rgb[0],\n\t\t\t\t$rgb[1],\n\t\t\t\t$rgb[2],\n\t\t\t\t$this->_background_text['color'][3]\n\t\t\t\t);\n\n\t\t\t# check to add the blocks seperation distance\n\t\t\tif( $char === ' ' )\n\t\t\t\t$this->_background_text['x'] += $this->_blocks_seperation;\n\n\t\t\t# Draw Character to the image\n\t\t\timagettftext(\n\t\t\t\t$this->_image_resource,\t\t\t\t\t# Image resource\n\t\t\t\t$this->_background_text['size'],\t\t# Font Size\n\t\t\t\t$rotation_angle,\t\t\t\t\t\t# Text Angle\n\t\t\t\t$this->_background_text['x'],\t\t\t# X Position\n\t\t\t\t$this->_background_text['y'],\t\t\t# Y Position\n\t\t\t\t$character_color,\t\t\t\t\t\t# Color\n\t\t\t\t$this->_background_text['font'],\t\t# Font\n\t\t\t\t$char \t\t\t\t\t\t\t\t\t# Text\n\t\t\t\t);\n\n\t\t\t# move x to the next position\n\t\t\t// $this->_background_text['x'] += $this->getTextBoxDimensions(\n\t\t\t// \t$this->_background_text['size'],\n\t\t\t// \t$rotation_angle,\n\t\t\t// \t$this->_background_text['font'],\n\t\t\t// \t$char\n\t\t\t// \t)['width'];\n\n\t\t\t$box_dimension = $this->getTextBoxDimensions(\n\t\t\t\t$this->_background_text['size'],\n\t\t\t\t$rotation_angle,\n\t\t\t\t$this->_background_text['font'],\n\t\t\t\t$char\n\t\t\t\t);\n\n\t\t\t$this->_background_text['x'] += $box_dimension['width'];\n\n\n\t\t\t# Method End\n\t\t}\n\n\n\t\t# space between characters equal 1/4 average character width\n\t\t$space_between_chars = $this->_calculated_text_box['char_width'] / 4;\n\n\t\t# final character index\n\t\t$final_character_index = $this->_code_length - 1;\n\n\n\t\t# Front Text\n\t\tforeach( $characters as $index => $char )\n\t\t{\n\n\t\t\t# the same as background text\n\n\t\t\t$rotation_angle = rand( 0 - $this->_rotation_angle, $this->_rotation_angle );\n\n\t\t\t# get color rgb values\n\t\t\t$rgb = $this->getRGBFromRange(\n\t\t\t\t$this->_front_text['color'][0],\n\t\t\t\t$this->_front_text['color'][1],\n\t\t\t\t$this->_front_text['color'][2],\n\t\t\t\t$this->_front_text['color']['range']\n\t\t\t\t);\n\n\t\t\t$character_color = imagecolorallocatealpha(\n\t\t\t\t$this->_image_resource,\n\t\t\t\t$rgb[0],\n\t\t\t\t$rgb[1],\n\t\t\t\t$rgb[2],\n\t\t\t\t$this->_front_text['color'][3]\n\t\t\t\t);\n\n\t\t\t# Calculate Character Dimensions\n\t\t\t$character_box = $this->getTextBoxDimensions(\n\t\t\t\t$this->_front_text['size'],\n\t\t\t\t$rotation_angle,\n\t\t\t\t$this->_front_text['font'],\n\t\t\t\t$char\n\t\t\t\t);\n\n\t\t\t# # calculate y position\n\t\t\t// $this->_front_text['y'] = ( $character_box['height'] - abs( $character_box['points'][1] ) ) + ( ( $this->_image_info['height'] - $character_box['height'] ) / 2 );\n\t\t\t// Developing::preview( 'index' . $index . ': ' . ( $character_box['height'] - abs( $character_box['points'][1] ) ), 'index' . $index . ': ' . $character_box['points'][5] );\n\t\t\t// exit;\n\n\t\t\t$this->_front_text['y'] = abs( $character_box['height'] ) + ( ( $this->_image_info['height'] - $character_box['height'] ) / 2 ) ;\n\n\t\t\t# check to add the blocks seperation distance\n\t\t\tif( $char === ' ' )\n\t\t\t\t$this->_front_text['x'] += $this->_blocks_seperation;\n\n\n\t\t\t# Draw Character To Image\n\t\t\timagettftext(\n\t\t\t\t\t\t $this->_image_resource,\n\t\t\t\t\t\t $this->_front_text['size'],\n\t\t\t\t\t\t $rotation_angle,\n\t\t\t\t\t\t $this->_front_text['x'],\n\t\t\t\t\t\t $this->_front_text['y'],\n\t\t\t\t\t\t $character_color,\n\t\t\t\t\t\t $this->_front_text['font'],\n\t\t\t\t\t\t $char\n\t\t\t\t\t\t);\n\n\t\t\t$this->_front_text['x'] += $character_box['width'];\n\n\t\t\t$this->_front_text['x'] += ( $index !== $final_character_index ) ? $space_between_chars : null;\n\n\t\t}\n\n\t\t# Method End\n\t}", "title": "" }, { "docid": "84da0e4e17ccde549b6be53d425ad33c", "score": "0.45189643", "text": "function ncurses_wvline($window, $charattr, $n) {}", "title": "" }, { "docid": "5c5aa5d9ca8680913045dbc2a3cb7863", "score": "0.45074517", "text": "function ncurses_mvaddchstr($y, $x, $s) {}", "title": "" }, { "docid": "90ab627d77c77fe030bdddd08f132605", "score": "0.44784907", "text": "function draw_block($row, $col, $size, $block, $resolution, $init) {\n\n \t?>\n\t \t<rect \n x=\"<?php echo $row*$block-$block*$size; ?>\"\n y=\"<?php echo $col*$block-$block*$size; ?>\"\n width=\"<?php echo $size*$block; ?>\"\n \theight=\"<?php echo $size*$block; ?>\"\n \t\tstyle=\"<?php echo \"fill:gray; stroke-width:1; stroke:black;\" ?>\"\n\t\t\t\tid=\"<?php echo \"$row-$col-$size\" ?>\"\n\t\t\t\tdata-real=\"<?php echo 1.0*$init->real+$row*$resolution-$size*$resolution ?>\"\n\t\t\t\tdata-imaginary=\"<?php echo 1.0*$init->imaginary+$col*$resolution-$size*$resolution ?>\"\n\t\t\t\tdata-bsize=\"<?php echo 1.0*$resolution*$size?>\"\n \t\t/>\n\t\t<?php\n\t}", "title": "" }, { "docid": "d3763da89ebfaf7f0b39f31becf54f68", "score": "0.4477024", "text": "function imagestringup ($image, $font, $x, $y, $string, $color) {}", "title": "" }, { "docid": "a608705b8a83ee3cf1cc4776796b31b3", "score": "0.44727948", "text": "function ncurses_clrtobot() {}", "title": "" }, { "docid": "9730ede1f0a89203371961f87addef20", "score": "0.44518182", "text": "public function drawText( $fontSize, $angle, $x , $y , $colorHex, $text)\n {\n $fontFile = APP_LIB . '/Draw/tmp/arialbd.ttf';\n $im = $this->getPng();\n $rgb = $this->HEX2RGB($colorHex);\n $color = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);\n $grid = $this->transformGrid($x, $y , $x , $y);\n imagefttext($im, $fontSize, $angle, $grid->xx, $grid->yy, $color, $fontFile, $text);\n }", "title": "" }, { "docid": "336a75f6b6a6029ddbec62f2424af83a", "score": "0.44489694", "text": "function draw2DLine($x1,$y1, $x2, $y2) \n { \n $this->exe( \"set arrow from $x1,$y1 to $x2,$y2 nohead\\n\" ); \n }", "title": "" }, { "docid": "cf0aed9ff866600ebb888a738da6d2bf", "score": "0.44361275", "text": "function RotatedText($x, $y, $txt, $angle)\n {\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "9960147e5d0bea66ce5c640724b159d0", "score": "0.4413843", "text": "function ncurses_insch($character) {}", "title": "" }, { "docid": "566c29a0ff3abb154db76b3842767671", "score": "0.44095144", "text": "function ncurses_whline($window, $charattr, $n) {}", "title": "" }, { "docid": "e1ddde0e5749aca5236d29b0fcb5aade", "score": "0.44055808", "text": "public function setCharacterInfo($ch,$key,$value) {\r\n if ($this->direction != -1) {\r\n $this->font_metrics[$this->direction]->setCharacterInfo($ch,$key,$value);\r\n } else {\r\n parent::setCharacterInfo($ch,$key,$value);\r\n }\r\n }", "title": "" }, { "docid": "5f092c763a10606fe1f8c7285f679cb0", "score": "0.4394458", "text": "function Header() {\r\n\t\t\tparent::Header();\r\n\t\t\t@$this->Image(PATH.\"letter/letter_blue_bg.png\",0,0,20,297);\t\r\n\t\t\t$this->SetXY(16, 30);\r\n\t\t\t$this->Rotate(-90);\r\n\t\t\t$this->SetFont($this->font,'b',18);\r\n\t\t\t$this->SetTextColor(255);\r\n\t\t\t$text = explode(',', $this->absender);\r\n\t\t\t$this->Write(20,utf8_decode($text[0]));\r\n\t\t\t$this->Rotate(0); \t\r\n\t\t}", "title": "" }, { "docid": "7d158292a03950408b6a78aad4494be1", "score": "0.43878335", "text": "function RotatedText($x, $y, $txt, $angle) {\n $this->Rotate($angle, $x, $y);\n $this->Text($x, $y, $txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "7d158292a03950408b6a78aad4494be1", "score": "0.43878335", "text": "function RotatedText($x, $y, $txt, $angle) {\n $this->Rotate($angle, $x, $y);\n $this->Text($x, $y, $txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "7d158292a03950408b6a78aad4494be1", "score": "0.43878335", "text": "function RotatedText($x, $y, $txt, $angle) {\n $this->Rotate($angle, $x, $y);\n $this->Text($x, $y, $txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "4d4d1bb0808eedbf6c390013d3d59040", "score": "0.43865323", "text": "abstract public function draw($im);", "title": "" }, { "docid": "4bd0757203c3f34a6e848ec575fb80b3", "score": "0.434773", "text": "public function renderChar()\n {\n $this->setRender(\" char='{$this->component->getChar()}'\");\n return $this;\n }", "title": "" }, { "docid": "0f44673414ab4c5c33a05c6558ae95df", "score": "0.43444657", "text": "protected function BubbleLabel($x, $y, $w, $h, &$style, &$surround)\n {\n // can't be more round than this!\n $round = min((float)$style['round'], $h / 3, $w / 3);\n $drop = max(2, $style['tail_length']);\n $spread = min(max(2, $style['tail_width']), $w - $round * 2);\n\n $vert = $h - $round * 2;\n $horz = $w - $round * 2;\n $start = 'M' . ($x + $w - $round) . ' ' . $y;\n $t = 'z';\n $r = 'v' . $vert;\n $b = 'h' . -$horz;\n $l = 'v' . -$vert;\n if($round) {\n $tr = 'a' . $round . ' ' . $round . ' 90 0 1 ' . $round . ' ' . $round;\n $br = 'a' . $round . ' ' . $round . ' 90 0 1 ' . -$round . ' ' . $round;\n $bl = 'a' . $round . ' ' . $round . ' 90 0 1 ' . -$round . ' ' . -$round;\n $tl = 'a' . $round . ' ' . $round . ' 90 0 1 ' . $round . ' ' . -$round;\n } else {\n $tr = $br = $bl = $tl = '';\n }\n\n $direction = floor(($style['tail_direction'] + 22.5) * 8 / 360) % 8;\n $ddrop = 0.707 * $drop; // cos 45\n $p1 = $ddrop + $spread * 0.707;\n $s2 = $spread / 2;\n $vcropped = $vert - $spread * 0.707 + $round;\n $hcropped = $horz - $spread * 0.707 + $round;\n switch($direction) {\n case 0 :\n $bside = $h / 2 - $s2 - $round;\n $r = \"v{$bside}l{$drop} {$s2}l-{$drop} {$s2}v{$bside}\";\n break;\n case 1 :\n $r = 'v' . $vcropped;\n $br = 'l' . $ddrop . ' ' . $p1 . 'l' . -$p1 . ' ' . -$ddrop;\n $b = 'h' . -$hcropped;\n break;\n case 2 :\n $bside = $w / 2 - $s2 - $round;\n $b = \"h-{$bside}l-{$s2} {$drop}l-{$s2} -{$drop}h-{$bside}\";\n break;\n case 3 :\n $l = 'v' . -$vcropped;\n $bl = 'l' . -$p1 . ' ' . $ddrop . 'l' . $ddrop . ' ' . -$p1;\n $b = 'h' . -$hcropped;\n break;\n case 4 :\n $bside = $h / 2 - $s2 - $round;\n $l = \"v-{$bside}l-{$drop} -{$s2}l{$drop} -{$s2}v-{$bside}\";\n break;\n case 5 :\n $l = 'v' . -$vcropped;\n $tl = 'l' . -$ddrop . ' ' . -$p1 . 'l' . $p1 . ' ' . $ddrop;\n break;\n case 6 :\n $bside = $w / 2 - $s2 - $round;\n $t = \"h{$bside}l{$s2} -{$drop}l{$s2} {$drop}z\";\n break;\n case 7 :\n $start = 'M' . ($x + $hcropped + $round) . ' ' . $y;\n $r = 'v' . $vcropped;\n $tr = 'l' . $p1 . ' ' . -$ddrop . 'l' . -$ddrop . ' ' . $p1;\n break;\n }\n $surround['d'] = $start . $tr . $r . $br . $b . $bl . $l . $tl . $t;\n $surround['fill'] = $this->graph->ParseColour($style['fill']);\n return 'path';\n }", "title": "" }, { "docid": "06bef4e38cef01fc1c04f859ffb8b519", "score": "0.43426222", "text": "protected function line( $str )\n {\n echo \"\\033[38;5;82m\" . $str;\n echo \"\\033[0m\\n\";\n }", "title": "" }, { "docid": "03651438a2b95b4153f0fef17a0848f6", "score": "0.43417487", "text": "public function pyramids($num){\n \n for ($i=1;$i<=$num;$i++){\n \n //Print space\n for ($k=1;$k<=($num-$i);$k++){\n echo \"&nbsp;\";\n }\n \n //print *\n for ($j=1;$j<=(2*$i-1);$j++){\n echo \"*\";\n }\n echo \"<br>\";\n }\n }", "title": "" }, { "docid": "3cebd3dbb2570b474f17c186b3373780", "score": "0.43345", "text": "function ncurses_erasechar() {}", "title": "" }, { "docid": "2f0a3c62adc998f5164731de620b2c35", "score": "0.43327424", "text": "function RotatedText($x, $y, $txt, $angle)\n {\n $this->Rotate($angle, $x, $y);\n $this->Text($x, $y, $txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "2f0a3c62adc998f5164731de620b2c35", "score": "0.43327424", "text": "function RotatedText($x, $y, $txt, $angle)\n {\n $this->Rotate($angle, $x, $y);\n $this->Text($x, $y, $txt);\n $this->Rotate(0);\n }", "title": "" }, { "docid": "cbf5ac5aab5d1ae931af41a75377217e", "score": "0.43231937", "text": "public function drawWord()\n {\n foreach ($this->word->letterList as $letter) {\n if (in_array($letter, $this->triedLetters)\n || $letter === $this->word->firstLetter\n || $letter === $this->word->lastLetter) {\n echo $letter;\n $this->drawnWord[] = $letter;\n }\n else {\n echo '_ ';\n $this->drawnWord[] = '_';\n }\n }\n }", "title": "" }, { "docid": "8ad0d53bae1d9c1ba2a7675d79a7cd66", "score": "0.43128264", "text": "private function write($text, $x, $y, $color = '')\n {\n\n if (\\is_array($color) && \\count($color) == 3) {\n $font_color = \\imagecolorallocate($this->data, $color[0], $color[1], $color[2]);\n } else {\n $font_color = $this->security_info;\n }\n\n imagestring($this->data, 5, $x, $y, $text, $font_color);\n }", "title": "" }, { "docid": "e553fe55b328db3f1d4c9dfb54063aec", "score": "0.431004", "text": "public function text($string, $top, $left, $options = array()){\n\t\t$draw = new ImagickDraw();\n\t\t//Merge the user define options ontop of and class wide defaults\n\t\t$options = array_merge($this->defaults,$options);\n\n\t\t$draw->setFillColor($options['color']);\n\t\t$draw->setFontSize($options['font-size']);\n\t\tif(!is_null($options['font'])){\n\t\t\t$draw->setFont($options['font']);\n\t\t}\n\t\t$draw->setGravity(Imagick::GRAVITY_CENTER);\n\t\t$draw->setStrokeAntialias(false);\n\t\t$draw->setTextAntialias(true);\n\n\t\tswitch($options['align']){\n\t\t\tcase 'right':\n\t\t\t\t$draw->setTextAlignment(3);\n\t\t\t\t$left += $options['width'];\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\tdefault:\n\t\t\t\t$draw->setTextAlignment(1);\t\n\t\t}\n\n\t\t//Split text onto new lines based on our max width\n\t\t$words = explode(\" \",$string);\n\t\t$lines = array();\n\n\t\t$lineHeight = 0;\n\n\t\tforeach($words as $word){\n\t\t\t//Try to draw this line, the attempt is the word appended to all previous words that are know to fit on this line\n\t\t\t$attempt = (sizeof($lines) === 0) ? $word : $lines[sizeof($lines) - 1]['string'].' '.$word;\n\t\t\t\n\t\t\t//Find imformation about the text we want to draw\n\t\t\t$metrics = $this->image->queryFontMetrics($draw,$attempt);\n\t\t\t\n\t\t\t$lineHeight = $metrics['textHeight'];\n\n\t\t\t//Check if the width of this line is greater that the max width of the drawing area\n\t\t\tif($metrics['textWidth'] < $options['width'] && sizeof($lines) !== 0){\n\t\t\t\t$lines[sizeof($lines) - 1]['string'] .= ' '.$word;\n\t\t\t}else{\n\t\t\t\t$lines[] = array('string' => $word, 'left' => $left, 'top' => $top + ($lineHeight + sizeof($lines) * $lineHeight));\n\t\t\t}\n\t\t}\n\n\t\t//echo \"<pre>\"; print_r($lines); die;\n\n\t\tfor($i = 0; $i < count($lines); $i++)\n\t\t $this->image->annotateImage($draw, $lines[$i]['left'], $lines[$i]['top'], 0, $lines[$i]['string']);\n\n\t\t$draw->clear();\n\t\t$draw->destroy();\n\n\t\treturn (($lines[count($lines) - 1]['top'] + $lineHeight) < $this->image->height);\n\t}", "title": "" }, { "docid": "0e8d88c86ead1ab9b39766507b5534b5", "score": "0.4308199", "text": "protected function drawSignature()\n {\n $bBox = imagettfbbox(10, 0, $this->signatureFont, $this->imageSignature);\n $textLen = $bBox[2] - $bBox[0];\n\n $x = $this->imageWidth - $textLen - 5;\n $y = $this->imageHeight - 3;\n\n imagettftext($this->im, 10, 0, $x, $y, $this->gdSignatureColor, $this->signatureFont, $this->imageSignature);\n }", "title": "" }, { "docid": "6d75d566464541e6286f573f4f629d53", "score": "0.43061858", "text": "function gd_text_script()\n{\n if (!function_exists('imagefontwidth')) {\n return;\n }\n\n $text = get_param_string('text', false, true);\n\n $direction = array_key_exists('direction', $_GET) ? $_GET['direction'] : 'vertical';\n\n $font_size = array_key_exists('size', $_GET) ? intval($_GET['size']) : 8;\n\n require_code('fonts');\n $font = get_param_string('font', find_default_font(true));\n $font_path = find_font_path($font);\n\n if (!has_ttf()) {\n switch ($font_size) {\n case 1:\n case 2:\n $pfont = 1;\n break;\n\n case 3:\n case 4:\n $pfont = 2;\n break;\n\n case 5:\n case 6:\n $pfont = 3;\n break;\n\n case 7:\n case 8:\n $pfont = 4;\n break;\n\n default:\n $pfont = 5;\n }\n $baseline_offset = 0;\n\n if ($direction == 'horizontal') {\n $width = intval(imagefontwidth($pfont) * strlen($text) * 1.05);\n $height = imagefontheight($pfont);\n } else {\n $height = intval(imagefontwidth($pfont) * strlen($text) * 1.05);\n $width = imagefontheight($pfont);\n }\n } else {\n $scale = 4;\n\n if ($direction == 'horizontal') {\n list(, , $width, , , , , $height) = imagettfbbox(floatval($font_size * $scale), 0.0, $font_path, $text);\n $baseline_offset = 2 * $scale * intval(ceil(floatval($font_size) / 8.0));\n $height = abs($height);\n $width += $font_size * $scale * 2; // This is just due to inaccuracy in imagettfbbox, possibly due to italics not being computed correctly\n $height += $baseline_offset;\n\n list(, , $real_width, , , , , $real_height) = imagettfbbox(floatval($font_size), 0.0, $font_path, $text);\n $real_height = abs($real_height);\n $real_width += $font_size * 2;\n $real_height += $baseline_offset / $scale;\n } else {\n list(, , $height, , , , , $width) = imagettfbbox(floatval($font_size * $scale), 0.0, $font_path, $text);\n $baseline_offset = 2 * $scale * intval(ceil(floatval($font_size) / 8.0));\n $width = abs($width);\n $width += $baseline_offset;\n $height += $font_size * $scale * 2; // This is just due to inaccuracy in imagettfbbox, possibly due to italics not being computed correctly\n\n list(, , $real_height, , , , , $real_width) = imagettfbbox(floatval($font_size), 0.0, $font_path, $text);\n $real_width = abs($real_width);\n $real_width += $baseline_offset / $scale;\n $real_height += $font_size * 2;\n }\n }\n if ($width == 0) {\n $width = 1;\n }\n if ($height == 0) {\n $height = 1;\n }\n $trans_color = array_key_exists('trans_color', $_GET) ? $_GET['trans_color'] : 'FF00FF';\n $img = imagecreatetruecolor($width, $height + $baseline_offset);\n imagealphablending($img, false);\n $fg_color = array_key_exists('fg_color', $_GET) ? $_GET['fg_color'] : '000000';\n if (substr($fg_color, 0, 5) == 'seed-') {\n $theme = substr($fg_color, 5);\n\n if (addon_installed('themewizard')) {\n require_code('themewizard');\n $fg_color = find_theme_seed($theme);\n } else {\n $ini_path = (($theme == 'default' || $theme == 'admin') ? get_file_base() : get_custom_file_base()) . '/themes/' . filter_naughty($theme) . '/theme.ini';\n if (is_file($ini_path)) {\n require_code('files');\n $map = better_parse_ini_file($ini_path);\n } else {\n $map = array();\n }\n $fg_color = isset($map['seed']) ? $map['seed'] : '000000';\n }\n }\n $color = imagecolorallocate($img, hexdec(substr($fg_color, 0, 2)), hexdec(substr($fg_color, 2, 2)), hexdec(substr($fg_color, 4, 2)));\n if (!has_ttf()) {\n $trans = imagecolorallocate($img, hexdec(substr($trans_color, 0, 2)), hexdec(substr($trans_color, 2, 2)), hexdec(substr($trans_color, 4, 2)));\n imagefill($img, 0, 0, $trans);\n imagecolortransparent($img, $trans);\n if ($direction == 'horizontal') {\n imagestring($img, $pfont, 0, intval($height * 0.02), $text, $color);\n } else {\n imagestringup($img, $pfont, 0, $height - 1 - intval($height * 0.02), $text, $color);\n }\n } else {\n if (function_exists('imagecolorallocatealpha')) {\n $trans = imagecolorallocatealpha($img, hexdec(substr($trans_color, 0, 2)), hexdec(substr($trans_color, 2, 2)), hexdec(substr($trans_color, 4, 2)), 127);\n } else {\n $trans = imagecolorallocate($img, hexdec(substr($trans_color, 0, 2)), hexdec(substr($trans_color, 2, 2)), hexdec(substr($trans_color, 4, 2)));\n }\n imagefilledrectangle($img, 0, 0, $width, $height, $trans);\n require_code('character_sets');\n $text = utf8tohtml(convert_to_internal_encoding($text, strtolower(get_param_string('charset', get_charset())), 'utf-8'));\n if (strpos($text, '&#') === false) {\n $previous = mixed();\n $nxpos = 0;\n for ($i = 0; $i < strlen($text); $i++) {\n if (!is_null($previous)) { // check for existing previous character\n list(, , $rx1, , $rx2) = imagettfbbox(floatval($font_size * $scale), 0.0, $font_path, $previous);\n $nxpos += max($rx1, $rx2) + 3;\n }\n if ($direction == 'horizontal') {\n imagettftext($img, floatval($font_size * $scale), 0.0, $nxpos, $height - $baseline_offset, $color, $font_path, $text[$i]);\n } else {\n imagettftext($img, floatval($font_size * $scale), 270.0, $baseline_offset, $nxpos, $color, $font_path, $text[$i]);\n }\n $previous = $text[$i];\n }\n } else {\n if ($direction == 'horizontal') {\n imagettftext($img, floatval($font_size * $scale), 0.0, 0, $height - 4, $color, $font_path, $text);\n } else {\n imagettftext($img, floatval($font_size * $scale), 270.0, 4, 0, $color, $font_path, $text);\n }\n }\n $dest_img = imagecreatetruecolor($real_width + intval(ceil(floatval($baseline_offset) / floatval($scale))), $real_height);\n imagealphablending($dest_img, false);\n imagecopyresampled($dest_img, $img, 0, 0, 0, 0, $real_width + intval(ceil(floatval($baseline_offset) / floatval($scale))), $real_height, $width, $height); // Sizes down, for simple antialiasing-like effect\n imagedestroy($img);\n $img = $dest_img;\n if (function_exists('imagesavealpha')) {\n imagesavealpha($img, true);\n }\n }\n\n header('Content-Type: image/png');\n imagepng($img);\n imagedestroy($img);\n}", "title": "" }, { "docid": "19af7ad59a7598c5f170cab30016c09b", "score": "0.4304941", "text": "protected function drawComplexMarkup()\n {\n\tforeach ($this->specialMarkup as $markup) {\n\t switch($markup[0])\n\t {\n\t\tcase \"AR\":\n\t\tcase \"LN\": list($x1,$y1) = $this->dim->toImgCoords($markup[1][0]);\n\t\t\t list($x2,$y2) = $this->dim->toImgCoords($markup[1][1]);\n\t\t\t $this->drawLine($x1, $y1, $x2, $y2,\n\t\t\t\t $this->colors['blue'],\n\t\t\t\t $this->colors['blue2'],\n\t\t\t\t ($markup[0] == 'AR'));\n\t\t\t break;\n\t }\n\t}\n }", "title": "" }, { "docid": "f7b374b4ff39b3423ea6159a8e42fecf", "score": "0.43044448", "text": "public function draw() {\n for ($i = $this->minX; $i <= $this->maxX; ++$i) {\n for ($j = $this->minY; $j <= $this->maxY; ++$j) {\n if (isset($this->track[$i][$j]) === true) {\n echo $this->track[$i][$j];\n } else {\n echo ' ';\n }\n }\n echo PHP_EOL;\n }\n }", "title": "" }, { "docid": "30c00171194a0b44cb7a0a788071dac5", "score": "0.42970055", "text": "function rectangle($length,$width){\n echo\"Chiều dài hình chữ nhật=$length m\";\n echo \"<br/>\";\n echo\"Chiều rộng hình chữ nhật=$width m\";\n echo \"<br/>\";\n $p=($length+$width)*2;\n echo \"Chu vi hình chữ nhật=$p m\";\n echo \"<br/>\";\n $s=$length*$width;\n echo \"Diện tích hình chữ nhật=$s m2\";\n}", "title": "" }, { "docid": "12a52967e48afaf952c0401589b04081", "score": "0.42967033", "text": "public function drawWord( $x, $y, $word )\n {\n // Just record this write call\n $this->recordCall( __FUNCTION__, array( $x, $y, $word ) );\n }", "title": "" }, { "docid": "15b6d9a8f23bb4bd929696dac71ed1fd", "score": "0.42946815", "text": "public function drawFromTop();", "title": "" }, { "docid": "0ba46c08d88abc5bf2d4245a99f52ea2", "score": "0.42934078", "text": "function display($line)\n\t{\n\t\t$stringa='';\n\t\t$stringa.= '<div style=\"font-size :0.1em; color : #0000FF;\"><pre>';\n\t\t$num=count($this->righe);\n\n\t$this->fetch($line);\n\t\t\t\n\tfor ($i = 0; $i < $this->height; $i++)\n\t\t{\n\t\t\t$this->righe[$i]=str_replace(\"\\r\\n\", \"\", $this->righe[$i]);\n\t\t\t$a= strlen($this->righe[$i]);\n\t\t\tfor ($x = 0; $x < $a; $x++){\n\t\t\t\t$stringa.=substr($this->righe[$i],$x,1);\n\t\t\t\t\n\t\t\t}\t\n\t$stringa.='<br />';\t\t \n\t\t}\n$stringa.='</pre></div>';\t \n\t\t\n return $stringa;\n\t}", "title": "" }, { "docid": "5fbb0f6d84d8bc7f394bfaf2f9c4dd8c", "score": "0.4291251", "text": "public function tileSetup($word, $x, $y, $vertical) {\n\n $wordArray = str_split(strtoupper($word));\n $xy=[$x, $y];\n\n $tileHtml = '<table id=\"tileLayout\">' . \"\\r\\n\";\n $tileHtml .= \"<tr>\\r\\n\";\n\n foreach ($wordArray as $tile => $element) {\n if($element != \"\") {\n $pos = $this->positionTranslate($xy, $tile, $vertical);\n $tileVal = $this->tiles[$element];\n $tileHtml .= \"<td><div id='letterTile' style='position:relative;left:$pos[0];top:$pos[1];'><span>$element</span><span class='number'>$tileVal</span></div></td>\\r\\n\";\n if($vertical) {\n $xy[1]++;\n }\n }\n }\n $tileHtml .= \"</tr>\\r\\n\";\n $tileHtml .= \"</table>\\r\\n\";\n return $tileHtml;\n }", "title": "" }, { "docid": "249c9b67dd936931e337da6e470e2252", "score": "0.42908344", "text": "public function drawTime($hour) {\n\t\t$left = $this->timeCol;\n\t\t\n\t\t$x = $this->GetX();\n\t\t\t\t///$this->Cell($left, $this->rowHeight*2, '00', 1, 0, 'R', true, '',0,false,'T','T');\n\t\t$this->Cell($left, $this->rowHeight*2, '', 1, 0, '', true);\n\t\t$x = $this->GetX();\n\t\t//$x2 = $this->GetX();\n\t\t//$this->SetX($x);\n\n\t\t$this->SetFont(null, 'B', $this->font_size+5);\n\t\t$this->SetX($this->leftMargin-6);\n\t\t$this->MultiCell($this->timeCol+2, 10, $hour, 0, 'R',false,0);\n\t\t$this->SetFont(null, '', $this->font_size);\n\t\t$this->SetX($left+$this->leftMargin-5);\n\t\t$this->MultiCell($this->leftMargin, 10,'00',0,'L',false,0);\n\n\t\t$this->SetX($x);\n\t}", "title": "" }, { "docid": "91889cb17ecb8e44125f815febda8bcf", "score": "0.42894992", "text": "function i25($xpos, $ypos, $code, $basewidth=1, $height=10){\n\t\t$wide = $basewidth;\n\t\t$narrow = $basewidth / 3 ;\n\n\t\t// wide/narrow codes for the digits\n\t\t$barChar['0'] = 'nnwwn';\n\t\t$barChar['1'] = 'wnnnw';\n\t\t$barChar['2'] = 'nwnnw';\n\t\t$barChar['3'] = 'wwnnn';\n\t\t$barChar['4'] = 'nnwnw';\n\t\t$barChar['5'] = 'wnwnn';\n\t\t$barChar['6'] = 'nwwnn';\n\t\t$barChar['7'] = 'nnnww';\n\t\t$barChar['8'] = 'wnnwn';\n\t\t$barChar['9'] = 'nwnwn';\n\t\t$barChar['A'] = 'nn';\n\t\t$barChar['Z'] = 'wn';\n\n\t\t// add leading zero if code-length is odd\n\t\tif(strlen($code) % 2 != 0){\n\t\t\t$code = '0' . $code;\n\t\t}\n\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->Text($xpos, $ypos + $height + 4, $code);\n\t\t$this->SetFillColor(0);\n\n\t\t// add start and stop codes\n\t\t$code = 'AA'.strtolower($code).'ZA';\n\n\t\tfor($i=0; $i<strlen($code); $i=$i+2){\n\t\t\t// choose next pair of digits\n\t\t\t$charBar = $code[$i];\n\t\t\t$charSpace = $code[$i+1];\n\t\t\t// check whether it is a valid digit\n\t\t\tif(!isset($barChar[$charBar])){\n\t\t\t\t$this->Error('Invalid character in barcode: '.$charBar);\n\t\t\t}\n\t\t\tif(!isset($barChar[$charSpace])){\n\t\t\t\t$this->Error('Invalid character in barcode: '.$charSpace);\n\t\t\t}\n\t\t\t// create a wide/narrow-sequence (first digit=bars, second digit=spaces)\n\t\t\t$seq = '';\n\t\t\tfor($s=0; $s<strlen($barChar[$charBar]); $s++){\n\t\t\t\t$seq .= $barChar[$charBar][$s] . $barChar[$charSpace][$s];\n\t\t\t}\n\t\t\tfor($bar=0; $bar<strlen($seq); $bar++){\n\t\t\t\t// set lineWidth depending on value\n\t\t\t\tif($seq[$bar] == 'n'){\n\t\t\t\t\t$lineWidth = $narrow;\n\t\t\t\t}else{\n\t\t\t\t\t$lineWidth = $wide;\n\t\t\t\t}\n\t\t\t\t// draw every second value, because the second digit of the pair is represented by the spaces\n\t\t\t\tif($bar % 2 == 0){\n\t\t\t\t\t$this->Rect($xpos, $ypos, $lineWidth, $height, 'F');\n\t\t\t\t}\n\t\t\t\t$xpos += $lineWidth;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "499f0aeec7d32941bfcb760f414f1c78", "score": "0.42877927", "text": "public function addLine() {\n $this->drawLine($this->_leftMargin, $this->_yPosition, $this->_rightMargin, $this->_yPosition);\n //déplacement du curseur vers le bas de 15 pixels\n $this->_yPosition -= 15;\n }", "title": "" }, { "docid": "8bf28c030cff5741dd735ce19f7ec7c9", "score": "0.42846602", "text": "function WriteLine($txt,$just='L',$h=6,$maxw=200){\n\t\t//$this->addLineText = $this->WordWrap($txt, $maxw);\n\t\t$this->Cell($maxw,$h,$txt,'',0,$just,1);\n\t\t\n\t}", "title": "" }, { "docid": "b6664c8bd112eaecb94834962650b9d4", "score": "0.42794156", "text": "function drawMap($map) {\n foreach ($map as $y => $rows) {\n foreach ($rows as $x => $column) {\n if (ctype_upper($map[$y][$x]['value'])) {\n echo \"\\e[1;34;40m\". $map[$y][$x]['value'] .\"\\e[0m\";\n }\n else {\n echo $map[$y][$x]['value'];\n }\n }\n echo \"\\n\";\n }\n echo \"\\n\";\n}", "title": "" }, { "docid": "6f2e4d2de7901a93a5a4902349ee4d5b", "score": "0.42667943", "text": "function imagettftext_cr(&$img, $size, $angle, $x, $y, $content_color, $font, $text) {\n // retrieve boundingbox\n $bbox = imagettfbbox($size, $angle, $font, $text);\n // calculate deviation\n $dx = ($bbox[2]-$bbox[0])/2.0 - ($bbox[2]-$bbox[4])/2.0; // deviation left-right\n $dy = ($bbox[3]-$bbox[1])/2.0 + ($bbox[7]-$bbox[1])/2.0; // deviation top-bottom\n // new pivotpoint\n $px = $x-$dx;\n $py = $y-$dy;\n return imagettftext($img, $size, $angle, $px, $py, $content_color, $font, $text);\n}", "title": "" }, { "docid": "8e986500f70c194faf83d110afc3ea01", "score": "0.42580947", "text": "public function draw($board, $startRow, $startCol);", "title": "" }, { "docid": "30cf2d2170de2b874809e6c440ee0b0d", "score": "0.42556858", "text": "function ncurses_addch($ch) {}", "title": "" }, { "docid": "acb776ceeb6292f4e1644f4ef0456ef8", "score": "0.42493743", "text": "protected function LineLabel($x, $y, $w, $h, &$style, &$surround)\n {\n $w2 = $w / 2;\n $h2 = $h / 2;\n $a = $style['tail_direction'] * M_PI / 180;\n\n // make sure line is long enough to not look like part of text\n $llen = max($style['font_size'], $style['tail_length']);\n\n // start at edge of text bounding box\n $w2a = $w2;\n $h2a = $w2 * tan($a);\n if(abs($h2a) > $h2) {\n $h2a = $h2;\n $w2a = $h2 / tan($a);\n }\n if(($a < M_PI && $h2a < 0) || ($a > M_PI && $h2a > 0)) {\n $h2a = -$h2a;\n $w2a = -$w2a;\n }\n \n $x1 = $x + $w2 + $w2a;\n $y1 = $y + $h2 + $h2a;\n $x2 = $llen * cos($a);\n $y2 = $llen * sin($a);\n $surround['d'] = \"M{$x1} {$y1}l{$x2} {$y2}\";\n return 'path';\n }", "title": "" }, { "docid": "696ec08131966021b1a020a29ee8cf14", "score": "0.4248824", "text": "function RotatedText($x,$y,$txt,$angle)\n\t\t{\n\t\t\t//Text rotated around its origin\n\t\t\t$this->Rotate($angle,$x,$y);\n\t\t\t$this->Text($x,$y,$txt);\n\t\t\t$this->Rotate(0);\n\t\t}", "title": "" }, { "docid": "6d2ca04d400056dc5eddc35bb6d2f6da", "score": "0.42305532", "text": "function temporaire( $texte )\n{\n\t$this->SetFont('Arial','B',50);\n\t$this->SetTextColor(203,203,203);\n\t$this->Rotate(45,55,190);\n\t$this->Text(55,190,$texte);\n\t$this->Rotate(0);\n\t$this->SetTextColor(0,0,0);\n}", "title": "" }, { "docid": "464d45d2168b8f75a34807f375aa434c", "score": "0.42300552", "text": "protected function draw_content() {\n echo $this->content;\n }", "title": "" }, { "docid": "14ed9b7a4a6de137a07b63195ad73189", "score": "0.4222272", "text": "function drawHusbWifeCombo($w, $num, $fh, $mh, $hsp, $vsp, $endspace = 0, $drawlines = 1, $listmode = 0, $boxmode = 0) {\n global $pdf, $lineheight, $text;\n\n // set the coords\n $x = $pdf->GetX();\n $y = $pdf->GetY();\n\n // what characters are we going to display?\n if ($listmode == 0) {\n\t$charlisth = array($text['capbirthabbr'], $text['capplaceabbr'], $text['capmarrabbr'], $text['capplaceabbr'], $text['capdeathabbr'], $text['capplaceabbr']);\n\t$charlistw = array($text['capbirthabbr'], $text['capplaceabbr'], $text['capdeathabbr'], $text['capplaceabbr']);\n }\n else if ($listmode == 1) {\n\t$charlisth = array($text['capbirthabbr'], $text['capdeathabbr']);\n\t$charlistw = array($text['capbirthabbr'], $text['capdeathabbr']);\n }\n else if ($listmode == 2) {\n\t$charlisth = array($text['capbirthabbr']);\n\t$charlistw = array($text['capbirthabbr']);\n }\n\n // how are we drawing boxes?\n if ($boxmode == 0) {\n\tdrawBox($x, $y, $w, $fh, $num, $charlisth);\n\t$y1 = $y + ($fh / 2);\t\t\t\t\t\t\t\t\t\t// save the location of the first horiz line\n }\n else if ($boxmode == 1) {\n\t$y1 = drawBoxLine($x, $y, $w, $num, $charlisth);\n }\n\n if ($drawlines) { $pdf->Line($x - ($hsp / 2), $y1, $x, $y1); }\t\t\t\t\t// put a short line in the middle of the box\n $ytmp = $y + ($fh / 2);\n $y += $fh + $vsp;\n if ($boxmode == 0) {\n\tdrawBox($x, $y, $w, $mh, $num + 1, $charlistw);\n\t$y2 = $y + ($mh / 2);\n }\n else if ($boxmode == 1) {\n\t$y2 = drawBoxLine($x, $y, $w, $num + 1, $charlistw);\n }\n if ($drawlines) { $pdf->Line($x - ($hsp / 2), $y2, $x, $y2); }\t\t\t\t\t// put a short line in the middle of the box\n if ($drawlines) { $pdf->Line($x - ($hsp / 2), $y1, $x - ($hsp / 2), $y2); }\t\t\t\t// draw the vertical line between them\n if ($drawlines) { $pdf->Line($x - $hsp, ($y1 + $y2) / 2, $x - ($hsp / 2), ($y1 + $y2) / 2); }\t// put a short line which will hook to the prev gen\n $y += $mh + $endspace;\n $pdf->SetY($y);\n $pdf->SetX($x);\n\n if ($boxmode == 0) {\n\treturn (($y1 + $y2) / 2);\n }\n else {\n\treturn ((($y1 + $y2) / 2) - $lineheight);\n }\n}", "title": "" }, { "docid": "985d5dd194a56eaa9e3d61d8cd54aeea", "score": "0.42222115", "text": "function imagettfbbox ($size, $angle, $fontfile, $text) {}", "title": "" }, { "docid": "663f639bd9ca2f2fd2fada6cf3306de7", "score": "0.42178422", "text": "function addTtfText($text, $x=10, $y=10, $color='000000'){\n\n $color = $this->_createColor($color, '000000');\n\n // ?? ?????? ? ?? ????, ? ???????????\n if (is_array($this->fontSize) || is_array($this->fontAngel) || is_array($this->textYOffset) || is_array($this->fontColors)) {\n for ($i = 0; $i < mb_strlen($text); $i++) {\n $y2 = $y;\n\n $fontsize = is_array($this->fontSize) ? $this->fontSize[array_rand($this->fontSize)] : $this->fontSize;\n $angel = is_array($this->fontAngel) ? $this->fontAngel[array_rand($this->fontAngel)] : $this->fontAngel;\n if (is_array($this->fontColors)) {\n $color = $this->fontColors[array_rand($this->fontColors)];\n \t$color = $this->_createColor($color, '000000');\n }\n\n if (is_array($this->textYOffset)) {\n \t$y2 += $this->textYOffset[array_rand($this->textYOffset)];\n }\n\n/*\n // ????????\n $fontsize = $this->textFSize1;\n if (!empty($this->textFSize2)) {\n $fontsize = rand($this->textFSize1, $this->textFSize2);\n }\n\n // ???????\n $angel = $this->textAngel1;\n if (!empty($this->textAngel2)) {\n $angel = rand($this->textAngel1 + 360, $this->textAngel2 + 360);\n }\n\n // ???? ? Y\n if (!empty($this->textYOffset1)) {\n\n if (!empty($this->textYOffset2)) {\n $y2 = $y2 + rand($this->textYOffset1, $this->textYOffset2);\n } else {\n $y2 = $y2 + rand(0, $this->textYOffset1);\n }\n }\n\n // ????????\n $color = $this->textColors[array_rand($this->textColors)];*/\n\n\n // ???? ???\n $symbol = mb_substr($text, $i, 1);\n $symbol = $this->to_ord(iconv('utf-8', 'windows-1251', $symbol));\n\n // ????? X-???? ?? ????? ???\n if ($i > 0) {\n $x += $previousWidth * 1.1;\n }\n\n imagettftext($this->im, $fontsize, $angel, $x, $y2, $color, $this->fontFile, $symbol);\n\n $sz = imagettfbbox($fontsize, $angel, $this->fontFile, $symbol);\n $previousWidth = $sz[2] - $sz[0];\n }\n } else {\n //if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {\n \t//$text = $this->to_ord(iconv('utf-8', 'windows-1251', $text));\n //}\n imagettftext($this->im, $this->fontSize, $this->fontAngel, $x, $y, $color, $this->fontFile, $text);\n }\n return true;\n }", "title": "" }, { "docid": "9b0f06deebefff9b1ec57b2eba6fab7c", "score": "0.42138276", "text": "abstract public function ___render();", "title": "" } ]
5abb5fc97660a4f5c1706d1e0494a496
Any combination of letters, numerals, "" and ".", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are caseinsensitive. RFC 4122
[ { "docid": "680556a1d5c94a0de798f37c3f377d86", "score": "0.0", "text": "public function setSourceId($sourceId = null)\n {\n if (null === $sourceId) {\n $this->sourceId = null;\n return $this;\n }\n if ($sourceId instanceof FHIRId) {\n $this->sourceId = $sourceId;\n return $this;\n }\n $this->sourceId = new FHIRId($sourceId);\n return $this;\n }", "title": "" } ]
[ { "docid": "f4ef3b8a3fb9ea833839c38882d28863", "score": "0.66363007", "text": "function id_clean($id, $size = 10){\n return intval(substr($id,0,$size));\n}", "title": "" }, { "docid": "059a7c547532d4c7ee522331f99efa9e", "score": "0.64453787", "text": "public function testGeneratesAlphanumericCharactersOnly()\n {\n for ($i = 0; $i < 10000; ++$i) {\n $shortId = TinyUuid::tinyUuid(128);\n $this->assertTrue(ctype_alnum($shortId));\n }\n }", "title": "" }, { "docid": "b4d1b2f057f655847c6f3345058792bc", "score": "0.63975537", "text": "private function genID()\n {\n $id = $this->id;\n $maxLength = $this->length;\n $noLength = false;\n\n if ($maxLength== 0){\n $noLength = true;\n $maxLength = 1;\n }\n\n $id = str_split($id);\n $stop = false;\n\n for ($i = 0; $i < $maxLength; $i++) {\n\n if (!isset($id[$i])) {\n $id[$i] = null;\n }\n $asciNumber = ord($id[$i]);\n\n if ($asciNumber == 0) {\n $asciNumber = 97;\n $stop = true;\n } elseif ($asciNumber < 122) {\n $asciNumber++;\n $stop = true;\n }\n\n $id[$i] = chr($asciNumber);\n if ($stop){\n break;\n }\n if($noLength){\n $maxLength++;\n }\n }\n $id = implode($id);\n $this->id = $id;\n return $id;\n }", "title": "" }, { "docid": "0aad7ea5a3c17a1c28968fac40b8a83a", "score": "0.6347583", "text": "function cvve_id_safe($string) {\n\t// Replace with dashes anything that isn't A-Z, numbers, dashes, or\n\t// underscores.\n\t$string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));\n\t// If the first character is not a-z, add 'n' in front.\n\t// Don't use ctype_alpha since its locale aware.\n\tif (!ctype_lower($string{0})) {\n\t\t$string = 'id' . $string;\n\t}\n\treturn $string;\n}", "title": "" }, { "docid": "60e952d7f7b8ebf1f2a2cec157f821b5", "score": "0.61649996", "text": "function getShortenedIdentifierName($name)\n\t{\n\t\tif (strlen($name) <= 64) {\n\t\t\treturn $name;\n\t\t}\n\t\treturn substr($name, 0, 55) . '_' . substr(md5($name), 0, 8);\n\t}", "title": "" }, { "docid": "03cad463961e158361a9d57ed6ff1d7d", "score": "0.61163396", "text": "public function isValidId($id)\n {\n return is_string($id) && ctype_alnum($id) && strlen($id) === 40;\n }", "title": "" }, { "docid": "02cf86edd9ed2b5aee58e7284a5bd181", "score": "0.60939", "text": "function validate_accountid($id) {\r\n if (strlen($id) == 3) {\r\n return true;\r\n }\r\n return false;\r\n}", "title": "" }, { "docid": "f95fdca0a2c6b651007b49bd2ea59ebb", "score": "0.59210134", "text": "public function isValidId($id)\n {\n return is_string($id) && preg_match('/^[a-f0-9]{40}$/', $id);\n }", "title": "" }, { "docid": "8d9d401396201f3e90e2d0932ec013fb", "score": "0.5919482", "text": "function text_make_uid($maxchar = 8, $nChar = 0, $first = '')\r\n\t{\r\n\t\t/* Exclude bad symbols. */\r\n\t\t/* 1st bad group: 0, 1, l, I */\r\n\t\t/* 2nd bad group: a, c, e, o, p, x, A, C, E, H, O, K, M, P, X */\r\n\t\t$str = \"\";\r\n\t\t$charN = '23456789';\r\n\t\t$charL = 'bdfghijkmnqrstuvwyz';\r\n\t\t$charU = 'QWRYUSDFGJLZVN';\r\n\t\t$charN = ($nChar == 1)\r\n\t\t\t\t? $charN\r\n\t\t\t\t: (($nChar == 2) ? $charL\r\n\t\t\t\t\t: (($nChar == 3) ? $charU\r\n\t\t\t\t\t: ($nChar == 4) ? $charN.$charL\r\n\t\t\t\t\t: ($nChar == 5) ? $charL.$charU\r\n\t\t\t\t\t: $charN.$charL.$charU)\r\n\t\t\t\t);\r\n\t\t$len = strlen($charN);\r\n\t\tmt_srand( (double) microtime()*1000000);\r\n\t\tfor ($i = 0; $i < $maxchar; $i++)\r\n\t\t{\r\n\t\t\t$sed = mt_rand(0, $len-1);\r\n\t\t\t$str .= $charN[$sed];\r\n\t\t}\r\n\t\t$str = $first . substr($str, 0, strlen($str) - strlen($first));\r\n\t\treturn $str;\r\n\t}", "title": "" }, { "docid": "72288bb2251412150f92f408fd16bd72", "score": "0.59030586", "text": "function shortenID ( $ID ) {\n\t\treturn substr($ID, 0, 10);\n\t}", "title": "" }, { "docid": "e33e302ee02617822a977af84426d491", "score": "0.58907086", "text": "function AlphaNumeric($length)\r\n{\r\n $chars = \"1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n $clen = strlen( $chars )-1;\r\n $id = '';\r\n\r\n for ($i = 0; $i < $length; $i++) {\r\n $id .= $chars[mt_rand(0,$clen)];\r\n }\r\n return ($id);\r\n}", "title": "" }, { "docid": "d98fe304adf428da4c1dafa3e27bcdbe", "score": "0.5835844", "text": "function _id($text) {\n\t$text = to7bit($text, \"UTF-8\");\n\t$text = clean_url($text);\n\t$text = preg_replace('/[[:cntrl:]]/', '', $text); //remove control characters that cause interface to choke\n\treturn lowercase($text);\n}", "title": "" }, { "docid": "2b2d863d120ed48468e42cb379cf181a", "score": "0.58283424", "text": "function generateRandomId($length = 10) {\r\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n $randomString = '';\r\n for ($i = 0; $i < $length; $i++) {\r\n $randomString .= $characters[rand(0, strlen($characters) - 1)];\r\n }\r\n return $randomString;\r\n}", "title": "" }, { "docid": "c6d920040075dffccaa59ce438b4f359", "score": "0.58040315", "text": "public function isValidId($id): bool\n {\n return is_string($id) && ctype_alnum($id) && strlen($id) === 40;\n }", "title": "" }, { "docid": "270af0087887062fe77034b3dc55cb02", "score": "0.5781871", "text": "function _protect_identifiers($identifier=NULL)\n\t{\n\t\t$this->load->helper('kalkun');\n\t\t$escape_char;\n\t\t$escaped_identifer=\"\";\n\t\t\n\t\t// get database engine\n\t\t$db_engine = $this->db->platform();\n\t\t$escape_char = get_database_property($db_engine);\n\t\t$escape_char = $escape_char['escape_char'];\n\t\t\n\t\t$sub = explode(\".\", $identifier);\n\t\t$sub_count = count($sub);\n\n\t\tforeach($sub as $key => $tmp)\n\t\t{\n\t\t\t$escaped_identifer.=$escape_char.$tmp.$escape_char;\n\t\t\t\n\t\t\t// if this is not the last\n\t\t\tif($key!=$sub_count-1)\n\t\t\t{\n\t\t\t\t$escaped_identifer.=\".\";\n\t\t\t}\n\t\t}\n\t\t\n\t return $escaped_identifer;\n\t}", "title": "" }, { "docid": "c19079dbec66f6ebb5cb6807a3f423bd", "score": "0.57319605", "text": "protected function getItoa64(): string\n {\n return './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n }", "title": "" }, { "docid": "366d0f86de506d1607b69bb7a9535e5a", "score": "0.5698773", "text": "public function getMaxIdentifierSize()\n {\n return 30;\n }", "title": "" }, { "docid": "8a053bcee95c20369e32f7c3b10587c5", "score": "0.56867975", "text": "private function getRandomAlphaNumStr(): string\n {\n $string = '';\n\n while (($len = strlen($string)) < 20) {\n $size = 20 - $len;\n\n $bytes = random_bytes($size);\n\n $string .= substr(\n str_replace(['/', '+', '='], '', base64_encode($bytes)),\n 0,\n $size\n );\n }\n\n return $string;\n }", "title": "" }, { "docid": "1fa715515ea71c578e62cfe17bbb02c5", "score": "0.5673109", "text": "function gen_id($length_of_string) \r\r\n{\r\r\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \r\r\n \r\r\n // Shufle the $str_result and returns substring \r\r\n // of specified length \r\r\n return substr(str_shuffle($str_result),0, $length_of_string); \r\r\n}", "title": "" }, { "docid": "cbb5a5cea703491c08993a41f568a1b8", "score": "0.5662904", "text": "function _password_itoa64() {\n return './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n }", "title": "" }, { "docid": "74fed869c9127496a2a61f86fa37c704", "score": "0.56526995", "text": "static function encodeOID($str) {\n $numbers = explode('.', $str);\n\n // First octet\n $oid = chr(array_shift($numbers) * 40 + array_shift($numbers));\n\n // Subsequent octets\n foreach ($numbers as $num) {\n if ($num == 0) {\n $oid .= chr(0x00);\n continue;\n }\n $pack = '';\n\n while ($num) {\n $pack .= chr(0x80 | ($num & 0x7f));\n $num >>= 7;\n }\n $pack[0] = $pack[0] & chr(0x7f);\n\n if (pack('V', 65534) == pack('L', 65534)) {\n $oid .= strrev($pack); // Little endian machine - need to convert to big endian\n } else {\n $oid .= $pack;\n }\n }\n\n return $oid;\n }", "title": "" }, { "docid": "3ec589d87e8b606b3407c6c159671adc", "score": "0.5612663", "text": "function gen_id($length_of_string) \n\n{\n\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n\n \n\n // Shufle the $str_result and returns substring \n\n // of specified length \n\n return substr(str_shuffle($str_result),0, $length_of_string); \n\n}", "title": "" }, { "docid": "b04b21a62998a665a08e2f363b99ae9d", "score": "0.5610689", "text": "private function sanitizeId(string $id): string\n\t{\n\t\treturn sha1($id);\n\t}", "title": "" }, { "docid": "f203f3343f7f5e074758d33624e9371b", "score": "0.5609137", "text": "function randomID($length) {\n\t\t$str = \"\";\n\t\t$characters = array_merge(range('A','Z'), range('0','9'));\n\t\t$max = count($characters) - 1;\n\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t$rand = mt_rand(0, $max);\n\t\t\t$str .= $characters[$rand];\n\t\t}\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "90685c57b1707d6a28163dcc9af225af", "score": "0.5592494", "text": "function generateUserID($maxLength){\n $ID = \"\";\n\n if($maxLength < 5){\n $maxLength = 5;\n }\n\n $actualLength = rand(4, $maxLength);\n \n\n for($i = 0; $i < $actualLength; $i++){\n $ID .= rand(1, 9);\n }\n\n return $ID;\n}", "title": "" }, { "docid": "e60452e7db719bddd6491a4ebd9a845b", "score": "0.5552661", "text": "function generateNonNumericID() {\n $str_result = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n // Shufle the $str_result and returns substring\n // of length 6\n return substr(str_shuffle($str_result), 0, 6); \n }", "title": "" }, { "docid": "156518d3d67c26d8e27b7c5fed861598", "score": "0.554436", "text": "protected function validateIdentifier(string $identifier)\n {\n if (preg_match('/[^A-Za-z0-9-\\.]/', $identifier)) {\n throw new InvalidVersionException('Identifiers may only contain ASCII alphanumerics, dots, and hyphens.');\n }\n\n return $identifier;\n }", "title": "" }, { "docid": "90486faeb024f41674f9c27c543145d9", "score": "0.5542844", "text": "protected function getIDPattern() {\n return '\\d+';\n }", "title": "" }, { "docid": "c5a4adbc2863fef8d868af7592ad94d7", "score": "0.5541964", "text": "function makeid($newid) {\n\t// the characters we will use\n\t$chars\t= \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t// splits $chars into an array of individual characters\n\t$tmp = preg_split(\"//u\", $chars, -1, PREG_SPLIT_NO_EMPTY);\n\n\t// shuffles/randomizes the $tmp array\n\tshuffle($tmp);\n\n\t// turns the randomized array into a string\n\t$tmp2 = join(\"\", $tmp);\n\n\t// returns the first 10 characters of the randomized string\n\treturn mb_substr($tmp2,0,20,\"UTF-8\");\n}", "title": "" }, { "docid": "69d35c5d10075757a674dc786d8faf09", "score": "0.55174047", "text": "protected function generateIdentifier($prefix, $maxLength)\n {\n $hash = null;\n $dictionary = 'abcdefghijklmnopqrstuvwxyz0123456789';\n\n for ($i = 0; $i < ($maxLength - strlen($prefix)); $i++) {\n $hash .= $dictionary[mt_rand(0, strlen($dictionary) - 1)];\n }\n\n return $prefix.$hash;\n }", "title": "" }, { "docid": "8bf009076ca0447aafc963ae85e49ed1", "score": "0.55077887", "text": "public static function isMongoId($id){\n\t\treturn is_string($id) && strlen($id) == 24 && ctype_xdigit($id);\n\t}", "title": "" }, { "docid": "45009412aea98db9a4fde175c9f1d463", "score": "0.5488717", "text": "public function isValid($id)\n {\n return Str::string($id) & ctype_alnum($id) & Str::length($id) === 40;\n }", "title": "" }, { "docid": "7e744bd9f84bbbb8e3ff047e648959d4", "score": "0.5472831", "text": "function genIdentifier(){\n $id=array();\n $characters=['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','1','2','3','4','5','6','7','8','9','0','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'];\n\n for($i=0;$i<15;$i++){\n\t array_push($id,$characters[array_rand($characters)]);\n }\n\n return implode($id);\n }", "title": "" }, { "docid": "597ef5867b2b303eeeb1a25fee0ef6b7", "score": "0.54554397", "text": "function uniqidReal($lenght = 13) {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n}", "title": "" }, { "docid": "597ef5867b2b303eeeb1a25fee0ef6b7", "score": "0.54554397", "text": "function uniqidReal($lenght = 13) {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n}", "title": "" }, { "docid": "13fee08f465ba593fe6d3f36e5f326d4", "score": "0.54479015", "text": "function uniqidReal($lenght = 32) {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n }", "title": "" }, { "docid": "e32ac4161370b7f341112c2c3ed374ad", "score": "0.54437304", "text": "public static\tfunction validarID($id){\n \t /*Chequeo si el identificador es numerico*/\n \t $permitidos = \"0123456789\"; \n for ($i=0; $i < strlen($id); $i++)\n { \n if (strpos($permitidos, substr($id,$i,1)) === false)\n { \n /*Si no es así, devuelvo que el usuario es invalido*/\n return FALSE; \n } \n }\n \t return TRUE;\n \t}", "title": "" }, { "docid": "f626611395e0d9946e163821311f7e88", "score": "0.54405797", "text": "public function test_encode_uuid() {\n $service = new \\mod_zoom_webservice();\n\n // If uuid includes / or // it needs to be double encoded.\n $uuid = $service->encode_uuid('/u2F0gUNSqqC7DT+08xKrw==');\n $this->assertEquals('%252Fu2F0gUNSqqC7DT%252B08xKrw%253D%253D', $uuid);\n\n $uuid = $service->encode_uuid('Ahqu+zVcQpO//RcAUUWkNA==');\n $this->assertEquals('Ahqu%252BzVcQpO%252F%252FRcAUUWkNA%253D%253D', $uuid);\n\n // If not, then it can be used as is.\n $uuid = $service->encode_uuid('M8TigfzxRTKJmhXnV7bNjw==');\n $this->assertEquals('M8TigfzxRTKJmhXnV7bNjw==', $uuid);\n }", "title": "" }, { "docid": "3debc2087003500ebea7c51653d524f3", "score": "0.5422403", "text": "function genRandomString() //generates a random string of numbers, not my code\r\n{\r\n $length = 5;\r\n $characters = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWZYZ\";\r\n\r\n $real_string_length = strlen($characters) ; \r\n $string=\"id\";\r\n\r\n for ($p = 0; $p < $length; $p++) \r\n {\r\n $string .= $characters[mt_rand(0, $real_string_length-1)];\r\n }\r\n\r\n return strtolower($string);\r\n}", "title": "" }, { "docid": "2d6ccf1f4844df327e3b89383fd51908", "score": "0.5420099", "text": "public function getStrongUniqueId($prefix = '', $alphaNumeric = false);", "title": "" }, { "docid": "3b4cd7e438fc9e97b069883732c6a583", "score": "0.5412156", "text": "function IsObjectId($id)\n\t{\n\t\tif(strlen($id) == 18)\n\t\t\treturn false;\n\t\telse if(strlen($id) == 24)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn -1;\n\t}", "title": "" }, { "docid": "fb80def1debdba8dfa4035cd5377a7f3", "score": "0.5405792", "text": "public function testStringCanBeLimitedByCharacters()\n {\n $app = $this->getApplication();\n $str = new String($app);\n $this->assertEquals('Tay...', $str->limit('Taylor', 3));\n $this->assertEquals('Taylor', $str->limit('Taylor', 6));\n $this->assertEquals('Tay___', $str->limit('Taylor', 3, '___'));\n }", "title": "" }, { "docid": "9519509435b25db9bf05808b626e2cea", "score": "0.54005444", "text": "function gen_id( $name ){\n\tif ( empty($name) )\n\t\treturn '';\n\n\treturn substr( hash('sha1', $name), 0, 8 );\n}", "title": "" }, { "docid": "e658503b76369a1a68eb4298391ea3b6", "score": "0.53660375", "text": "function m_validateidentifier($conn, $tf)\n{\n}", "title": "" }, { "docid": "3328bf84b33acef88b52b70680374e24", "score": "0.53552145", "text": "function unqID($length = 6) {\n $characters = '123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ';\n $charactersLength = strlen($characters);\n $randomString = '';\n for ($i = 0; $i < $length; $i++) {\n $randomString .= $characters[rand(0, $charactersLength - 1)];\n }\n echo \"$randomString\";\n}", "title": "" }, { "docid": "b5fe5dbec6a4fbc10e779ab1d38d54e7", "score": "0.53489566", "text": "public function testConstructWithTooLongValue()\n {\n new Name('01234567890123456789012345678901234567890123456789012345678901234');\n }", "title": "" }, { "docid": "adfa070ecf76a5cb647b4f230caaac0d", "score": "0.5341331", "text": "function genIdentifier(){\n $id=array();\n $characters=['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','1','2','3','4','5','6','7','8','9','0','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'];\n\n for($i=0;$i<15;$i++){\n array_push($id,$characters[array_rand($characters)]);\n }\n\n return implode($id);\n}", "title": "" }, { "docid": "7e23daac6200be435dab25fe53d86845", "score": "0.53198856", "text": "protected function _convertId($string)\n {\n return preg_replace_callback('|[^A-Za-z0-9\\-\\_\\.]|', function ($matches) {\n return ord($matches[0]);\n }, $string);\n }", "title": "" }, { "docid": "d1374332f211ef4dea3627046ad76559", "score": "0.53186697", "text": "public static function isValidStringid(string $stringid, bool $allowDot=false)\n {\n $re = 'a-zA-Z0-9\\_\\-';\n if ($allowDot === true) {\n // Allow . for subproperty.\n $re .= '\\.';\n }\n\n $re = '/[^'.$re.']/';\n if (empty($stringid) === true\n || preg_match($re, $stringid) !== 0\n || strpos($stringid, chr(0)) !== false\n ) {\n return false;\n }\n\n // Check a stringid must have at least 1 non numeric character in it. We index arrays by stringid and it\n // can convert string numbers into integer array keys and this has array merge implications.\n if (preg_match('/[a-zA-Z\\_\\-\\.]/', $stringid) === 0) {\n return false;\n }\n\n // Check first letter.\n if (preg_match('/^[a-zA-Z\\_\\-]/', $stringid) === 0) {\n return false;\n }\n\n return true;\n\n }", "title": "" }, { "docid": "8a0df65ed0f6fe03af7293f3177765c6", "score": "0.53155476", "text": "function id($unique, $firstName){\n\n\t\t $cutFirst = substr($firstName, 0, 3);\n\t\t $cutFirstName = strtoupper($cutFirst);\n\t\t $randNum = sprintf(\"%03d\", mt_rand(0, 999));\n\t\t $randShuffle = str_shuffle($randNum);\n\t\t $unique = $cutFirstName.$randShuffle;\n\t\t return $unique;\n\t\t }", "title": "" }, { "docid": "a545820c5f66ad088105dfa8e3ceb3cc", "score": "0.52983534", "text": "abstract protected function getHundredDigitName($str);", "title": "" }, { "docid": "b0c5cfe6bf170ec07a737182b825ca78", "score": "0.52935356", "text": "public function testGenerateRandom64CharacterString(){\n\t\t\n\t}", "title": "" }, { "docid": "23832b1c3a291c7615017342e2c283ef", "score": "0.52900237", "text": "public function testGeneratingId()\n {\n $entity = new stdClass();\n $idGenerator = new UuidV4Generator();\n $id1 = $idGenerator->generate($entity);\n $id2 = $idGenerator->generate($entity);\n $this->assertNotSame($id1, $id2);\n $this->assertEquals(36, strlen($id1));\n $this->assertEquals(36, strlen($id2));\n }", "title": "" }, { "docid": "6982ac6d5daf17d702b69f4a9c1afcfd", "score": "0.5289621", "text": "public function uniqidReal(int $lenght = 10): string \n\t{\n\t\t\n\t\tif (function_exists(\"random_bytes\")) {\n\t\t\t$bytes = random_bytes(ceil($lenght / 2));\n\t\t} elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n\t\t\t$bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n\t\t} else {\n\t\t\tthrow new Exception(\"no cryptographically secure random function available\");\n\t\t}\n\t\treturn substr(bin2hex($bytes), 0, $lenght);\n\t}", "title": "" }, { "docid": "9a6566f15fc8856ba9899916bba7dcab", "score": "0.5289264", "text": "function createRandomUserID(){\n $characters = \"qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPLKJHGFDSAZXCVBNM\";\n $randString = \"\";\n for($i = 0; $i < 8; $i++){\n $randString.=($characters[rand(0,strlen($characters)-1)]);\n }\n return $randString;\n }", "title": "" }, { "docid": "9302ae73b761445e88d06e4dceb5aec4", "score": "0.5285312", "text": "function Z($id,$len)\r\n{\r\n\t// return is the string\r\n\r\n\t$i=0;\r\n\t$retVal = \"\";\r\n\t$strLen = strlen($id);\r\n\t$addChr = $len - $strLen;\r\n\twhile ($i<$addChr) {\r\n\t\t$retVal=$retVal.\"0\";\r\n\t\t$i++;\r\n\t}\r\n\t$retVal=$retVal.$id;\r\n\t\r\n\treturn $retVal;\r\n}", "title": "" }, { "docid": "4e57542d3cbe23c96e8dfede99adbb6c", "score": "0.5284264", "text": "function sanitizeID($ID) {\n return str_replace(':', '---', $ID);\n}", "title": "" }, { "docid": "b20ad0e94e3acf65dd767fdf3227dd00", "score": "0.5284039", "text": "function toBasicNumeralId($garyId){\n\t$s = substr($garyId, strlen($garyId) - 4, 4);\n\t$s = preg_replace(\"/^0+/\", \"\", $s);\n\treturn $s;\n}", "title": "" }, { "docid": "82e3b576fa7c8a964094fe6ab3844d27", "score": "0.5282614", "text": "function produce_random_strdig($length=6)\n{\n\ttry{\n\t\t$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n\t\t$invite_code='';\n\t\tfor($i = 0 ; $i < $length ; $i++)\n\t\t{\n\t\t\t$invite_code .= $chars[mt_rand(0, strlen($chars)-1)];\n\t\t}\n\t\treturn $invite_code;\n\t}\n\tcatch(Exception $e){\n\t\t$e->getMessage();\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "0cc7ef92bc823d9b2d6d94afc7ae0b1e", "score": "0.52683693", "text": "public function filename2id($filename) {\n $filename = str_replace('.', '-', $filename);\n $chars = 'abcdefghijklmnopqrstuwvxyz01234567890-';\n $filename = trim(strtolower($filename));\n $out = '';\n for($i = 0; $i < strlen($filename); $i++) {\n if(strpos($chars, $filename[$i]) !== false) {\n $out .= $filename[$i];\n }\n }\n return $out;\n }", "title": "" }, { "docid": "e23e77547274f50095a325f58bd30b15", "score": "0.52563244", "text": "function CreateID() {\n $result = \"\";\n $length = 16;\n for ($i=0; $i < $length; $i++) {\n $result.= dechex(mt_rand(0,$length-1));\n }\n return $result;\n }", "title": "" }, { "docid": "e516c9bc3e25f5047e48532908178a5e", "score": "0.5254268", "text": "public function getStrId();", "title": "" }, { "docid": "1eed48e3b5480f5a3a67d0a3c573240b", "score": "0.5253318", "text": "private function makeId()\n {\n $random = mt_rand();\n $random = md5($random);\n $random = substr($random,0,12);\n $name = $this->config['name'];\n $length = strlen($name);\n \n if($length > 22){\n $name = substr($name,0,22);\n }\n\n return $name.\"-\".$random;\n }", "title": "" }, { "docid": "1d1bd1fd1ce3af18e1f67b10937e5e93", "score": "0.5244174", "text": "public function limitToIdString(string $id): IExtendedQueryBuilder;", "title": "" }, { "docid": "c81cfb75109c8c634f4f316599545fd1", "score": "0.52359277", "text": "function dot_to_id(string $dot = null)\n { \n return str_slug(preg_replace('/\\./', '-', trim($dot, '.')));\n }", "title": "" }, { "docid": "0ee2e5871525a0d888bb64c1bfa852a3", "score": "0.52284425", "text": "function generateEventIdentifier($length) {\n $characters = '0123456789abcdef';\n $charactersLength = strlen($characters);\n $identifier = '';\n for ($i = 0; $i < $length; $i++) {\n $identifier .= $characters[rand(0, $charactersLength - 1)];\n }\n return $identifier;\n}", "title": "" }, { "docid": "469aeea59cf7ef4335ba0d7620f89030", "score": "0.5219783", "text": "function encode_cid($cid) {\n // Use urlencode(), but turn the\n // encoded ':' and '/' back into ordinary characters since they're used so\n // often. (Especially ':', but '/' is used in cache_menu.)\n // We can't turn them back into their own characters though; both are\n // considered unsafe in filenames. So turn : -> <space> and / -> ^\n $safe_cid = str_replace(array('%2F', '%3A'), array('^', ' '), urlencode($cid));\n if (strlen($safe_cid) > FILECACHE_CID_FILENAME_MAX) {\n $safe_cid =\n substr($safe_cid, 0, FILECACHE_CID_FILENAME_POS_BEFORE_MD5) .\n '%_' .\n md5(substr($safe_cid, FILECACHE_CID_FILENAME_POS_BEFORE_MD5));\n }\n\n return $safe_cid;\n }", "title": "" }, { "docid": "41263b4ba278e975955cddc0dc4cb2be", "score": "0.5199486", "text": "static function decodeOID($oid) {\n $pos = 0;\n\t\t$size = mb_strlen($oid);\n\n // First octet\n $oct = ord($oid[$pos++]);\n $str = floor($oct / 40) . '.' . ($oct % 40);\n\n // Subsequent octets\n while ($pos < $size) {\n $num = 0;\n\n do {\n $oct = ord($oid[$pos++]);\n $num = ($num << 7) + ($oct & 0x7F);\n } while (($oct & 0x80) && ($pos < $size));\n\n $str .= '.' . $num;\n }\n\n return $str;\n }", "title": "" }, { "docid": "6a21826d65943b2e7fa9e099ff4b7285", "score": "0.5197263", "text": "function toUniqId($id){\n if ($id == null || !is_string($id)\n || strlen($id) !== 8 || !$this->ctype->isXdigit($id)) {\n $id = sprintf('%08x', $id);\n }\n if (strlen($id) !== 8) {\n $id = str_repeat('0', 8);\n }\n return $id;\n }", "title": "" }, { "docid": "ecfa316f66d1047a338555a8af8f26df", "score": "0.5190047", "text": "protected function getIdLength(){\n\t\treturn 16;\n\t}", "title": "" }, { "docid": "1c21e7f13a37e4e91cf5193209f087f6", "score": "0.51868147", "text": "function randomPassword( \n\t\t$length=8, //string length\n\t\t$uselower=1, //use lowercase letters\n\t\t$useupper=1, // use uppercase letters\n\t\t$usespecial=0, //use special characters\n\t\t$usenumbers=1, //use numbers\n\t\t$prefix=''\n\t\t){\n\t\t\t$key = $prefix;\n\t\t\t// Seed random number generator\n\t\t\tsrand((double)microtime() * rand(1000000, 9999999));\n\t\t\t$charset = \"\";\n\t\t\tif ($uselower == 1) $charset .= \"abcdefghijkmnopqrstuvwxyz\";\n\t\t\tif ($useupper == 1) $charset .= \"ABCDEFGHIJKLMNPQRSTUVWXYZ\";\n\t\t\tif ($usenumbers == 1) $charset .= \"0123456789\";\n\t\t\tif ($usespecial == 1) $charset .= \"~#$%^*()_+-={}|][\";\n\t\t\twhile ($length > 0) {\n\t\t\t\t$key .= $charset[rand(0, strlen($charset)-1)];\n\t\t\t\t$length--;\n\t\t\t}\n\t\t\treturn $key;\n\t\t}", "title": "" }, { "docid": "16bbe917c60eb9f55add4a9cf8bf715f", "score": "0.5186415", "text": "protected function sanitizeIdentifier($identifier)\n {\n return preg_replace('([^a-zA-Z0-9_\\x7f-\\xff])', '_', $identifier);\n }", "title": "" }, { "docid": "a31ea7dce3a05fcbf7259c31cb0e7948", "score": "0.51724607", "text": "function str_makerand($minlength, $maxlength, $useupper, $usespecial, $usenumbers){\n\t$charset = \"abcdefghijklmnopqrstuvwxyz\";\n\tif ($useupper) $charset .= \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\tif ($usenumbers) $charset .= \"0123456789\";\n\tif ($usespecial) $charset .= \"~@#$%^*()_+-={}|][\"; // Note: using all special characters this reads: \"~!@#$%^&*()_+`-={}|\\\\]?[\\\":;'><,./\";\n\tif ($minlength > $maxlength) $length = mt_rand ($maxlength, $minlength);\n\telse $length = mt_rand ($minlength, $maxlength);\n\tfor ($i=0; $i<$length; $i++) $key .= $charset[(mt_rand(0,(strlen($charset)-1)))];\n\treturn $key;\n}", "title": "" }, { "docid": "d0c6760fff14daf15f4b17f2934b2082", "score": "0.51611483", "text": "function Fix_CodeID($Code)\n{\n $Result = '';\n if (empty($Code))\n return $Result;\n for ($i = 0; $i <= strlen($Code); $i++)\n {\n $Char = ord(substr($Code, $i, 1));\n if (($Char >= 48 && $Char <= 57) || ($Char >= 65 && $Char < 90) || ($Char >= 97 && $Char <\n 123) || array_search($Char, array(\n 45,\n 46,\n 91,\n 93,\n 95), true))\n $Result .= chr($Char);\n }\n return $Result;\n}", "title": "" }, { "docid": "d0c6760fff14daf15f4b17f2934b2082", "score": "0.51611483", "text": "function Fix_CodeID($Code)\n{\n $Result = '';\n if (empty($Code))\n return $Result;\n for ($i = 0; $i <= strlen($Code); $i++)\n {\n $Char = ord(substr($Code, $i, 1));\n if (($Char >= 48 && $Char <= 57) || ($Char >= 65 && $Char < 90) || ($Char >= 97 && $Char <\n 123) || array_search($Char, array(\n 45,\n 46,\n 91,\n 93,\n 95), true))\n $Result .= chr($Char);\n }\n return $Result;\n}", "title": "" }, { "docid": "b3944fcb9b63c62c798f7e179fb05db5", "score": "0.515962", "text": "function RandomString($limit)\n{\n $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $randstring = '';\n for ($i = 0; $i < $limit; $i++) {\n \n $randstring .= @$characters[rand(0, strlen($characters))];\n }\n return $randstring;\n}", "title": "" }, { "docid": "1ff81a77cb35b0119da101118a9dd4a6", "score": "0.5142703", "text": "function getRuid($id) {\n $len = strlen($id);\n $maxLen = mt_rand(($len + 4), 15);\n $arr = [$len];\n for ($i = 0; $i < ($maxLen - $len - 1); $i++) {\n array_push($arr, getRandomChar());\n }\n $ruid = implode($arr).$id;\n return $ruid;\n }", "title": "" }, { "docid": "da63dc363ca3c87defb558798672e7e7", "score": "0.51378125", "text": "function isEnableId($id){\n $result = false;\n if (is_string($id) && strlen($id) === 8 && $this->ctype->isXdigit($id)) {\n $result = true;\n }\n return $result;\n }", "title": "" }, { "docid": "37124149aa15ec55d4b10f695a690634", "score": "0.51267916", "text": "function generateID() {\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n // Shufle the $str_result and returns substring\n // of length 6\n return substr(str_shuffle($str_result), 0, 6); \n }", "title": "" }, { "docid": "a020e1a9939d7142e473ccd04cb002ba", "score": "0.5125752", "text": "private function id_mutator($id)\n {\n if (substr($id, 0, 2) === \"s:\") {\n $id = substr($id, 2);\n }\n $dot_pos = strpos($id, \".\");\n if ($dot_pos !== false) {\n $hmac_in = substr($id, $dot_pos + 1);\n $id = substr($id, 0, $dot_pos);\n }\n return $id;\n }", "title": "" }, { "docid": "b044368ab94d36375e6526908eda2488", "score": "0.5125655", "text": "static function randomString(){\n\t\t$args = func_get_args();\n\t\tif(func_num_args() >= 3){\n\t\t\t$length = rand($args[0],$args[1]);\n\t\t\t$match = $args[2];\n\t\t}else{\n\t\t\t$length = $args[0];\n\t\t\t//In case this is 3 arg overloaded with $match null for default\n\t\t\tif(!is_int($args[1])){\n\t\t\t\t$match = $args[1];\n\t\t\t}\n\t\t}\n\t\tif(!$match){\n\t\t\t$match = '@[a-z0-9]@i';\n\t\t}\n\t\t$allowedChars = self::regexExpand($match);\n\t\t$range = strlen($allowedChars) - 1;\n\t\tfor($i=0;$i<$length;$i++){\n\t\t\t$string .= $allowedChars[mt_rand(0,$range)];\n\t\t}\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "f8cd0c29dfa72d0eb7ca3ec24d750a67", "score": "0.5118002", "text": "function id_from_expr(string $expression): string {\n return preg_replace('/[^_a-zA-Z0-9]+/', '', $expression);\n}", "title": "" }, { "docid": "72fe2a974cea4bcc227317296f7cf5aa", "score": "0.5113848", "text": "function cleanDirty($id){\n\t\t$total = strlen($id);\n\t\t$string = $id;\n\t\t$first = substr( $string, 0, 1 );\n\t\t\n\t\tswitch($first){\n\t\t\n\t\t\tcase 1: $idTotal=$total-10;\n\t\t\treturn substr( $string, 1, $idTotal );\n\t\t\t\n\t\t\t\n\t\t\t//$total=strlen($string); substr(\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2: $idTotal=$total-10;\n\t\t\treturn substr( $string, 4, $idTotal );\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 3: $idTotal=$total-10;\n\t\t\treturn substr( $string, 7, $idTotal );\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 4: $idTotal=$total-10;\n\t\t\treturn substr( $string, 10, $idTotal );\n\t\t\tbreak;\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "1097b3dc09a94d5836b82b76759cdb98", "score": "0.5113512", "text": "public function testMaxLength()\n {\n $anonymizer = new TokenAnonymizer('*', 4, 10);\n $anonymized = $anonymizer->anonymize('01234567898765432');\n\n $this->assertEquals('012345****', $anonymized);\n }", "title": "" }, { "docid": "ed3c465756f6b8af38a41e8aafa77ee8", "score": "0.5104845", "text": "public function testBasicGeneration()\n {\n // Validate the default length of 6 characters\n $shortId = TinyUuid::tinyUuid();\n $this->assertEquals(6, strlen($shortId));\n\n // Validate the minimum length is 4 characters\n $shortId = TinyUuid::tinyUuid(2);\n $this->assertEquals(4, strlen($shortId));\n\n // Validate the minimum length is 128 characters\n $shortId = TinyUuid::tinyUuid(200);\n $this->assertEquals(128, strlen($shortId));\n }", "title": "" }, { "docid": "72dcf3c6c947d6d70e93100e775cd9c2", "score": "0.51040995", "text": "public static function genSimpleId($length=5, $prefix=\"\") {\n static $chars = null;\n\n if ($chars === null) {\n $chars = array_merge(\n range(48, 57, 1), // 0..9\n range(65, 90, 1), // A..Z\n range(97, 122, 1) // a..z\n );\n shuffle($chars); // MIX THE CHARS\n }\n\n $o = null;\n\n for ($i=0; $i<$length; $i++) {\n $o .= (chr($chars[mt_rand(0, count($chars)-1)]));\n }\n\n return $prefix. $o;\n }", "title": "" }, { "docid": "88a921f28b8ee7068fb482ec51225818", "score": "0.50810844", "text": "public function is_valid_id($id) {\n if(!is_string($id)) return FALSE;\n return preg_match(\"/[0-9a-z\\-]+/\",$id);\n }", "title": "" }, { "docid": "fce9ca0993b9ccea442a572dd4437089", "score": "0.50793177", "text": "public function replaceIllegalCharacters($rawId)\n {\n /**\n * We need to use a reversible replacement so that we can reconstruct the original ID later.\n * Example rawId = qwerty$%@#asdf\n * Example encoded = qwerty_bv36__bv37__bv64__bv35_asdf\n */\n\n return preg_replace_callback('/[^\\w\\d\\*-\\._]/s', create_function('$match', 'return \"_bv\".ord($match[0]).\"_\";'), $rawId);\n }", "title": "" }, { "docid": "8918d906b7073a5247aae5d6daaa313c", "score": "0.5077108", "text": "public function generateID($length) {\r\n $char = array_merge(range('A','Z'), range(0, 9), range('a', 'z'));\r\n shuffle($char);\r\n if($length > count($char)) $length = count($char);\r\n return implode(array_slice($char, 0, $length));\r\n }", "title": "" }, { "docid": "d2958fcecd3ffcc767776ed2efba5c32", "score": "0.5077022", "text": "public static function encodeValidatorId($id) {\n return str_replace(':', '---', $id);\n }", "title": "" }, { "docid": "c6f12f4bd32e15709322fcd354c92584", "score": "0.5075983", "text": "protected static function checkIdentifier(string $id) {\n $exp = '/^[a-zA-Z0-9_\\-\\$]$/'; \n if(preg_match($exp, $id)) {\n return $id;\n }\n return false;\n }", "title": "" }, { "docid": "4ca31b18850956ec16075d179e00d17e", "score": "0.5075517", "text": "function decodeId($argId)\n{\n $seaSalt = substr($argId, strlen($argId)-2,2);\n $id = substr($argId, 0, strlen($argId)-2);\n $seaSalt = (int) ($seaSalt{0} == 0)? $seaSalt{1} : $seaSalt;\n $salt = ($seaSalt & 1)? $seaSalt + 1 : $seaSalt;\n $id = ($id - $seaSalt) / ($salt / 2);\n return (int) $id;\n}", "title": "" }, { "docid": "ac13336a5b8b2192ba9195e04c53b2c9", "score": "0.50742346", "text": "public static function getId($id) {\n $id = str_replace([' ', '_', '[', ']'], ['-', '-', '-', ''], strtolower($id));\n $id = preg_replace('/[^A-Za-z0-9\\\\-_]/', '', $id);\n $id = preg_replace('/\\\\-+/', '-', $id);\n return $id;\n }", "title": "" }, { "docid": "c4c49f282a544acf34d4a56ba1cb3e56", "score": "0.50600684", "text": "private static function createUnpronounceable($length, $chars) {\n\n\t\t$password = '';\n\n\t\tswitch($chars) {\n\n\t\t\tcase 'alphanumeric':\n\t\t\t\t$regex = '[a-z0-9]';\n\t\t\t\tbreak;\n\n\t\t\tcase 'numeric':\n\t\t\t\t$regex = '[0-9]';\n\t\t\t\tbreak;\n\n\t\t\tcase '':\n\t\t\t\t$regex = '[a-z0-9_#@%&]';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$chars = str_replace(',,', ',', str_replace(['+', '|', '$', '^', '/', '\\\\', ], '' , trim($chars)));\n\t\t\t\tif ($chars{strlen($chars)-1} == ',') {\n\t\t\t\t\t$chars = substr($chars, 0, -1);\n\t\t\t\t}\n\t\t\t\t$regex = str_replace(',', '|', $chars);\n\n\t\t}\n\n\t\t// use the cryptographically secure random number generator\n\t\t\n\t\tif(function_exists('random_int')) {\n\t\t\n\t\t\tdo {\n\t\t\t\t$chr = chr(random_int(32, 127));\n\n\t\t\t\tif (preg_match('/' . $regex . '/USi', $chr)) {\n\t\t\t\t\t$password .= $chr;\n\t\t\t\t}\n\n\t\t\t} while (strlen($password) < $length);\n\t\t\t\n\t\t\treturn $password;\n\n\t\t}\n\t\t\n\t\t// use the less secure fallback vor older PHP versions\n\n\t\tdo {\n\t\t\t$chr = chr(mt_rand(32, 127));\n\n\t\t\tif (preg_match('/'.$regex.'/USi', $chr)) {\n\t\t\t\t$password .= $chr;\n\t\t\t}\n\n\t\t} while (strlen($password) < $length);\n\n\t\treturn $password;\n\t}", "title": "" }, { "docid": "608bab0b955d6ae41a884eafca695df6", "score": "0.50562674", "text": "function clean( $input, $max_length=255 ) {\r\n $input = trim($input) ;\r\n $input = substr($input, 0, $max_length) ;\r\n $input = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"_\", $input) ;\r\n return $input ;\r\n}", "title": "" }, { "docid": "a4fa097469893fbab1a35a8f648c8ef5", "score": "0.5053453", "text": "public function testStringTooLong()\n {\n $this->expectException(UnexpectedValueException::class);\n\n $maxAccountName = str_repeat('Z', 41);\n\n $createPaymentAccountAddressRequest = new createPaymentAccountAddressRequest(\n $maxAccountName,\n '555555'\n );\n }", "title": "" }, { "docid": "795b2f13ad6cb55cc1c4674d6e4aa700", "score": "0.50506276", "text": "private function genRandomID($length){\n\t\t$string=md5(time());\n\t\t$highest_startpoint = 32-$length;\n\t\t$randomString = substr($string,rand(0,$highest_startpoint),$length);\n\t return $randomString;\n\t}", "title": "" }, { "docid": "c5467fa9b5f2288e57793ed19afa3eb7", "score": "0.5049007", "text": "function is_ID_Card($id_card) {\n return preg_match('#^[0-9]{9,12}$#si', $id_card);\n}", "title": "" }, { "docid": "c5467fa9b5f2288e57793ed19afa3eb7", "score": "0.5049007", "text": "function is_ID_Card($id_card) {\n return preg_match('#^[0-9]{9,12}$#si', $id_card);\n}", "title": "" }, { "docid": "e3229c01de2673bf44bc4a5983f68c87", "score": "0.5044329", "text": "private function fakeSerialNumber(int $len): string\n {\n $x = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n return substr(str_shuffle(str_repeat($x, (int) round($len / strlen($x)))), 1, $len);\n }", "title": "" }, { "docid": "c993ebe0e2df0d456c63af7070dce1b5", "score": "0.5043744", "text": "protected function createValidFakeInvoiceNumber(): string\n {\n return (string) rand(1111111, 9999999999);\n }", "title": "" } ]
1c700e85e2bc64607591f8925df3783b
Builds the states array which is grouped by state sets
[ { "docid": "865c21d40d074441fb30dd8aa655d4bd", "score": "0.791981", "text": "private function buildStatesList() {\n\t\t$this->states = array();\n\t\tforeach($this->CI->user->states as $state) {\n\t\t\t/* @var $state User_State */\n\t\t\t$set = $state->set;\n\t\t\t// either add to an existing group, or create a new one.\n\t\t\tif(isset($this->states[$set])) {\n\t\t\t\t$this->states[$set][$state->id] = $state;\n\t\t\t} else {\n\t\t\t\t$this->states[$set] = array($state->id => $state);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "4daa3cc2123fcca6e48fd9ec3fd3e6ac", "score": "0.7464775", "text": "public function getStatesAndSets() {\n\t\t$ret = array();\n\n\t\tif(count($this->states) > 1) {\n\t\t\t$s = array('' => '(Any State)');\n\t\t\tforeach($this->states as $set => $state) {\n\t\t\t\t$s[$set] = $set;\n\t\t\t}\n\t\t\t$ret['sets'] = $s;\n\t\t}\n\n\t\tif(!empty($this->selectedSet) && count($this->selectedSet) > 1) {\n\t\t\t$g = array('' => '(Any Group)');\n\t\t\t/* @var $state User_State */\n\t\t\tforeach($this->selectedSet as $id => $state) {\n\t\t\t\t$g[$id] = $state->group;\n\t\t\t}\n\t\t\t$ret['groups'] = $g;\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "c4b60eeb610e285efcaf067b6e17b179", "score": "0.6393744", "text": "function get_states(){\n\t\t$states = array(\n\t\t\t1 => 'Abia',\n\t\t\t10 => 'Adamawa',\n\t\t\t20 => 'Akwa Ibom',\n\t\t\t30 => 'Anambra',\n\t\t\t40 => 'Bauchi',\n\t\t\t50 => 'Bayelsa',\n\t\t\t60 => 'Benue',\n\t\t\t70 => 'Borno',\n\t\t\t80 => 'Cross River',\n\t\t\t90 => 'Delta',\n\t\t\t100 => 'Ebonyi',\n\t\t\t110 => 'Edo',\n\t\t\t120 => 'Ekiti',\n\t\t\t130 => 'Enugu',\n\t\t\t140 => 'Federal Capital Territory',\n\t\t\t145 => 'Gombe',\n\t\t\t150 => 'Imo',\n\t\t\t160 => 'Kaduna',\n\t\t\t170 => 'Kano',\n\t\t\t180 => 'Katsina',\n\t\t\t190 => 'Kogi',\n\t\t\t200 => 'Kwara',\n\t\t\t210 => 'Lagos',\n\t\t\t220 => 'Nassarawa',\n\t\t\t230 => 'Niger',\n\t\t\t240 => 'Ogun',\n\t\t\t250 => 'Ondo',\n\t\t\t260 => 'Osun',\n\t\t\t270 => 'Oyo',\n\t\t\t280 => 'Plateau',\n\t\t\t290 => 'Rivers',\n\t\t\t300 => 'Sokoto',\n\t\t\t310 => 'Taraba',\n\t\t\t320 => 'Jigawa',\n\t\t\t330 => 'Yobe',\n\t\t\t340 => 'Zamfara',\n\t\t);\n\t\treturn $states;\n\t}", "title": "" }, { "docid": "1d78e33f2cf5c54ba0f85324160d7825", "score": "0.6276463", "text": "protected function findAllStates()\n\t{\n\t\t$states = [];\n\n\t\tforeach ($this->transitions as $transition)\n\t\t{\n\t\t\t$states[$transition->to()] = 1;\n\t\t\t$states[$transition->from()] = 1;\n\t\t}\n\n\t\treturn array_keys($states);\n\t}", "title": "" }, { "docid": "d50a58632dcea02e2accde1be296a089", "score": "0.62693244", "text": "public function get_states_array()\n\t{\n\t\treturn array( \n\t\t\t'Alaska' => 'AK', \n\t\t\t'Arizona' => 'AZ', \n\t\t\t'Arkansas' => 'AR', \n\t\t\t'California' => 'CA', \n\t\t\t'Colorado' => 'CO', \n\t\t\t'Connecticut' => 'CT', \n\t\t\t'Delaware' => 'DE', \n\t\t\t'District of Columbia' => 'DC', \n\t\t\t'Florida' => 'FL', \n\t\t\t'Georgia' => 'GA', \n\t\t\t'Hawaii' => 'HI', \n\t\t\t'Idaho' => 'ID', \n\t\t\t'Illinois' => 'IL', \n\t\t\t'Indiana' => 'IN', \n\t\t\t'Iowa' => 'IA', \n\t\t\t'Kansas' => 'KS', \n\t\t\t'Kentucky' => 'KY', \n\t\t\t'Louisiana' => 'LA', \n\t\t\t'Maine' => 'ME', \n\t\t\t'Maryland' => 'MD', \n\t\t\t'Massachusetts' => 'MA', \n\t\t\t'Michigan' => 'MI', \n\t\t\t'Minnesota' => 'MN', \n\t\t\t'Mississippi' => 'MS', \n\t\t\t'Missouri' => 'MO', \n\t\t\t'Montana' => 'MT', \n\t\t\t'Nebraska' => 'NE', \n\t\t\t'Nevada' => 'NV', \n\t\t\t'New Hampshire' => 'NH', \n\t\t\t'New Jersey' => 'NJ', \n\t\t\t'New Mexico' => 'NM', \n\t\t\t'New York' => 'NY', \n\t\t\t'North Carolina' => 'NC', \n\t\t\t'North Dakota' => 'ND', \n\t\t\t'Ohio' => 'OH', \n\t\t\t'Oklahoma' => 'OK', \n\t\t\t'Oregon' => 'OR', \n\t\t\t'Pennsylvania' => 'PA', \n\t\t\t'Rhode Island' => 'RI', \n\t\t\t'South Carolina' => 'SC', \n\t\t\t'South Dakota' => 'SD', \n\t\t\t'Tennessee' => 'TN', \n\t\t\t'Texas' => 'TX', \n\t\t\t'Utah' => 'UT', \n\t\t\t'Vermont' => 'VT',\n\t\t\t'Virginia' => 'VA', \n\t\t\t'Washington' => 'WA', \n\t\t\t'West Virginia' => 'WV', \n\t\t\t'Wisconsin' => 'WI', \n\t\t\t'Wyoming' => 'WY'\n\t\t); \n\t}", "title": "" }, { "docid": "1cb386066ac8bedc12367d9b20afd170", "score": "0.6228246", "text": "public function getState() : array\n {\n $inputs = [];\n $outputs = [];\n foreach ($this->input as $key => $data) {\n if (!isset($data['setCount'])) {\n $data['setCount'] = 0;\n }\n $inputs[$key . '(' . $data['setCount'] . ')'] = $data['data'];\n }\n foreach ($this->output as $key => $data) {\n if (!isset($data['emitCount'])) {\n $data['emitCount'] = 0;\n }\n $outputs[$key . '(' . $data['emitCount'] . ')'] = $data['data'];\n }\n return [\n 'inputs' => $inputs,\n 'outputs' => $outputs\n ];\n }", "title": "" }, { "docid": "2a65d271cbd8963b7372208f92e3bd58", "score": "0.6197857", "text": "public function getAllStates()\n {\n $result = $this->getCacheStates();\n\n if (!empty($result)) {\n return $result;\n } else {\n $result = [];\n }\n\n $data = file_get_contents($this->jsonPath);\n $states = Json::decode($data);\n ArrayHelper::getColumn($states['data'], function ($state) use (&$result) {\n if (is_array($state) && isset($state[0])) {\n $state = $state[0];\n }\n list($stateId, $others) = explode('-', $state);\n $result[$stateId . '-*'][] = $state;\n });\n $this->cacheStates($result);\n return $result;\n }", "title": "" }, { "docid": "329891e20595c962910843a6f5173cef", "score": "0.617377", "text": "public function getStates(): array;", "title": "" }, { "docid": "329891e20595c962910843a6f5173cef", "score": "0.617377", "text": "public function getStates(): array;", "title": "" }, { "docid": "329891e20595c962910843a6f5173cef", "score": "0.617377", "text": "public function getStates(): array;", "title": "" }, { "docid": "f048e81af6285a707f4ec92a667b2c16", "score": "0.6127632", "text": "public function getStatesAndCountries()\n {\n $countries = core()->countries()->toArray();\n $states = core()->groupedStatesByCountries();\n\n return [\n 'countries' => $countries,\n 'states' => $states\n ];\n }", "title": "" }, { "docid": "12d3216da7168dd988917c9112fd6c9b", "score": "0.6059285", "text": "public function getInitStatesMap(): array;", "title": "" }, { "docid": "10856dd6d2f0cebbc81c996fcf8d5474", "score": "0.6013772", "text": "abstract public function getStatesList();", "title": "" }, { "docid": "054672ef969ea2aa1aba09f9540bd945", "score": "0.584106", "text": "public function getStates();", "title": "" }, { "docid": "835c2ff6b8dd1ad470f0c894c2829911", "score": "0.5812959", "text": "public static function getLocationStates(){\r\n $sql = Doctrine_Query::create()\r\n ->select('upal.StateId,upal.Id, s.Name as StateName')\r\n ->from('UserPracticeAreaLocation upal')\r\n ->leftJoin('upal.UserPracticeAreaLocationUsers u')\r\n ->leftJoin('upal.UserPracticeAreaLocationState s')\r\n ->where('u.Status = ?','Active')\r\n ->orderBy('s.Name ASC');\r\n $arrList = $sql->execute(array(),Doctrine_Core::HYDRATE_ARRAY);\r\n\r\n $stateArr = array();\r\n if(!empty($arrList)) {\r\n for($i=0; $i<count($arrList) ; $i++ ) {\r\n $stateArr[$arrList[$i]['StateId']] = $arrList[$i]['StateName'];\r\n } // End of For\r\n }\r\n #clsCommon::pr($arrList);\r\n #clsCommon::pr($stateArr,1);\r\n return $stateArr;\r\n\r\n }", "title": "" }, { "docid": "0f747a8932c7c754bc644b46aad7943d", "score": "0.5804382", "text": "public static function getStates($states)\n\t{\n\t\t$states = explode(',', $states);\n\t\t\n\t\t$arr = array();\n\t\t\n\t\tforeach ($states as $state)\n\t\t{\n\t\t\t$arr[$state] = $state;\n\t\t}\n\t\t\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "11253a7f87ce599fe7e4542b629eed11", "score": "0.58005136", "text": "function get_state_array() {\n\t// then can look up either and convert when necessary\n\t$states = array(\n\t\t\t\t'alabama'\t\t\t=> 'al',\n\t\t\t\t'alaska'\t\t\t=> 'ak',\n\t\t\t\t'arizona'\t\t\t=> 'az',\n\t\t\t\t'arkansas'\t\t\t=> 'ar',\n\t\t\t\t'california'\t\t=> 'ca',\n\t\t\t\t'colorado'\t\t\t=> 'co',\n\t\t\t\t'connecticut'\t\t=> 'ct',\n\t\t\t\t'delaware'\t\t\t=> 'de',\n\t\t\t\t'florida'\t\t\t=> 'fl',\n\t\t\t\t'georgia'\t\t\t=> 'ga',\n\t\t\t\t'hawaii'\t\t\t=> 'hi',\n\t\t\t\t'idaho'\t\t\t\t=> 'id',\n\t\t\t\t'illinois'\t\t\t=> 'il',\n\t\t\t\t'indiana'\t\t\t=> 'in',\n\t\t\t\t'iowa'\t\t\t\t=> 'ia',\n\t\t\t\t'kansas'\t\t\t=> 'ks',\n\t\t\t\t'kentucky'\t\t\t=> 'ky',\n\t\t\t\t'louisiana'\t\t\t=> 'la',\n\t\t\t\t'maine'\t\t\t\t=> 'me',\n\t\t\t\t'maryland'\t\t\t=> 'md',\n\t\t\t\t'massachusetts'\t \t=> 'ma',\n\t\t\t\t'michigan'\t\t\t=> 'mi',\n\t\t\t\t'minnesota'\t\t\t=> 'mn',\n\t\t\t\t'mississippi'\t\t=> 'ms',\n\t\t\t\t'missouri'\t\t\t=> 'mo',\n\t\t\t\t'montana'\t\t\t=> 'mt',\n\t\t\t\t'nebraska'\t\t\t=> 'ne',\n\t\t\t\t'nevada'\t\t\t=> 'nv',\n\t\t\t\t'new hampshire'\t \t=> 'nh',\n\t\t\t\t'new jersey'\t\t=> 'nj',\n\t\t\t\t'new mexico'\t\t=> 'nm',\n\t\t\t\t'new york'\t\t\t=> 'ny',\n\t\t\t\t'north carolina'\t=> 'nc',\n\t\t\t\t'north dakota'\t\t=> 'nd',\n\t\t\t\t'ohio'\t\t\t\t=> 'oh',\n\t\t\t\t'oklahoma'\t\t\t=> 'ok',\n\t\t\t\t'oregon'\t\t\t=> 'or',\n\t\t\t\t'pennsylvania'\t\t=> 'pa',\n\t\t\t\t'rhode island'\t\t=> 'ri',\n\t\t\t\t'south carolina'\t=> 'sc',\n\t\t\t\t'south dakota'\t\t=> 'sd',\n\t\t\t\t'tennessee'\t\t\t=> 'tn',\n\t\t\t\t'texas'\t\t\t\t=> 'tx',\n\t\t\t\t'utah'\t\t\t\t=> 'ut',\n\t\t\t\t'vermont'\t\t\t=> 'vt',\n\t\t\t\t'virginia'\t\t\t=> 'va',\n\t\t\t\t'washington'\t\t=> 'wa',\n\t\t\t\t'west virginia'\t\t=> 'wv',\n\t\t\t\t'wisconsin'\t\t\t=> 'wi',\n\t\t\t\t'wyoming'\t\t\t=> 'wy'\n\t\t\t);\n\treturn $states;\n}", "title": "" }, { "docid": "e7b12971bc7ddae09783aa72c208726b", "score": "0.57795787", "text": "private function addState(array $set) {\n $seen = array();\n foreach ($set as $item) {\n $seen[$item[0]][$item[1]][$item[2]][$item[3]] = true;\n }\n\n $end = $this->getEndSymbol();\n $epsilon = $this->getEpsilonSymbol();\n\n for ($ii = 0; $ii < count($set); $ii++) {\n $item = $set[$ii];\n\n $production = $this->rules[$item[0]][$item[1]];\n $next = $production[$item[2]];\n if ($this->isTerminal($next)) {\n continue;\n } else if ($next === $epsilon) {\n continue;\n } else if ($next === $end) {\n continue;\n }\n\n $v = array_slice($production, $item[2] + 1, -1);\n $v[] = $item[3];\n $v[] = $end;\n\n $firsts = $this->getFirstForProduction($v);\n\n foreach ($firsts as $nfirst => $ignored) {\n if (!$this->isTerminal($nfirst)) {\n unset($firsts[$nfirst]);\n }\n }\n\n foreach ($this->rules[$next] as $pkey => $nproduction) {\n foreach ($firsts as $nfirst => $ignored) {\n if (isset($seen[$next][$pkey][0][$nfirst])) {\n continue;\n }\n $set[] = array($next, $pkey, 0, $nfirst);\n $seen[$next][$pkey][0][$nfirst] = true;\n }\n }\n }\n\n $hash = $this->hashSet($set);\n if (isset($this->setHashes[$hash])) {\n return array(false, $this->setHashes[$hash]);\n }\n\n $this->states[] = $set;\n $state = last_key($this->states);\n $this->setHashes[$hash] = $state;\n\n return array(true, $state);\n }", "title": "" }, { "docid": "26704f13207614c5f564dc4cbc64f5dd", "score": "0.5734394", "text": "public static function getStates()\n {\n $states = array(\n 'AL'=>\"Alabama\",\n 'AK'=>\"Alaska\",\n 'AZ'=>\"Arizona\",\n 'AR'=>\"Arkansas\",\n 'CA'=>\"California\",\n 'CO'=>\"Colorado\",\n 'CT'=>\"Connecticut\",\n 'DE'=>\"Delaware\",\n 'DC'=>\"District Of Columbia\",\n 'FL'=>\"Florida\",\n 'GA'=>\"Georgia\",\n 'HI'=>\"Hawaii\",\n 'ID'=>\"Idaho\",\n 'IL'=>\"Illinois\",\n 'IN'=>\"Indiana\",\n 'IA'=>\"Iowa\",\n 'KS'=>\"Kansas\",\n 'KY'=>\"Kentucky\",\n 'LA'=>\"Louisiana\",\n 'ME'=>\"Maine\",\n 'MD'=>\"Maryland\",\n 'MA'=>\"Massachusetts\",\n 'MI'=>\"Michigan\",\n 'MN'=>\"Minnesota\",\n 'MS'=>\"Mississippi\",\n 'MO'=>\"Missouri\",\n 'MT'=>\"Montana\",\n 'NE'=>\"Nebraska\",\n 'NV'=>\"Nevada\",\n 'NH'=>\"New Hampshire\",\n 'NJ'=>\"New Jersey\",\n 'NM'=>\"New Mexico\",\n 'NY'=>\"New York\",\n 'NC'=>\"North Carolina\",\n 'ND'=>\"North Dakota\",\n 'OH'=>\"Ohio\",\n 'OK'=>\"Oklahoma\",\n 'OR'=>\"Oregon\",\n 'PA'=>\"Pennsylvania\",\n 'RI'=>\"Rhode Island\",\n 'SC'=>\"South Carolina\",\n 'SD'=>\"South Dakota\",\n 'TN'=>\"Tennessee\",\n 'TX'=>\"Texas\",\n 'UT'=>\"Utah\",\n 'VT'=>\"Vermont\",\n 'VA'=>\"Virginia\",\n 'WA'=>\"Washington\",\n 'WV'=>\"West Virginia\",\n 'WI'=>\"Wisconsin\",\n 'WY'=>\"Wyoming\"\n );\n return $states;\n }", "title": "" }, { "docid": "da807690af38f7406de65dc11b604ab4", "score": "0.57090914", "text": "public static function getAllState()\n {\n\n $conn = Connection::getInstance();\n\n $sql = \"select id, name, initials\n from state\";\n\n $rs = $conn->prepare($sql);\n $rs->execute();\n\n $arrayState = array();\n\n while ($row = $rs->fetch(PDO::FETCH_OBJ)) {\n\n $newState = new State($row->id, $row->name, $row->initials);\n array_push($arrayState, $newState->returnArray());\n\n }\n\n return $arrayState;\n\n }", "title": "" }, { "docid": "4fbf86c4745cc2b82fd94bbb846a1a11", "score": "0.56664854", "text": "private function loadOrderStates(){\n\n $order_states = Db::getInstance()->executeS('\n\t\t\t\t\t\t\tSELECT *\n\t\t\t\t\t\t\tFROM `'._DB_PREFIX_.'order_state` os\n\t\t\t\t\t\t\tLEFT JOIN `'._DB_PREFIX_.'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state`\n\t\t\t\t\t\t\tAND osl.`id_lang` = '.$this->default_lang.')\n\t\t\t\t\t\t\tWHERE deleted = 0\n\t\t\t\t\t\t\tORDER BY `name` ASC');\n\n\t\t$this->order_states = array();\n\t\tforeach ($order_states as $arr) $this->order_states[$arr['id_order_state']] = $arr;\n\n return;\n\t}", "title": "" }, { "docid": "62f13f3befd1e464a6240ec1026b8d5f", "score": "0.56298393", "text": "public function listNeededStates(): array;", "title": "" }, { "docid": "67b1df80ad448860502bf9ef0bacd171", "score": "0.5614952", "text": "public function getAllStatesOfMexico()\n\t{\n\t\t$statesServices = new StatesServices();\n\t\t$statesOfMexico = $statesServices->fetchAll();\n\t\t$result = array();\n\t\n\t\tforeach ($statesOfMexico as $s_m){\n\t\t\t//$result[] = ['attributes'=> ['data-est'=>$s_m['id']], 'value' => $s_m['id'], 'label' => $s_m['state'] ];\n\t\t\t$result[$s_m['id']] = $s_m['state'];\n\t\t}\n\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "1e2ff2e8e10321d955a0fa5e3d8135b0", "score": "0.55725455", "text": "public function getStates() {\r\n\t\treturn $this->states;\r\n\t}", "title": "" }, { "docid": "1459ae79d9d6e2444791f0e42c34ceab", "score": "0.55664927", "text": "function stateIDArray($refreshCache = false)\n {\n if (!$this->ID) {\n return array();\n }\n\n if ($refreshCache || !is_array($this->StateIDArray)) {\n $this->StateIDArray = array();\n $contentObjectID = $this->ID;\n eZDebug::accumulatorStart('state_id_array', 'states');\n $sql = \"SELECT contentobject_state_id, group_id FROM ezcobj_state_link, ezcobj_state\n WHERE ezcobj_state.id=ezcobj_state_link.contentobject_state_id AND\n contentobject_id=$contentObjectID\";\n $db = eZDB::instance();\n $rows = $db->arrayQuery($sql);\n foreach ($rows as $row) {\n $this->StateIDArray[$row['group_id']] = $row['contentobject_state_id'];\n }\n eZDebug::accumulatorStop('state_id_array');\n }\n\n return $this->StateIDArray;\n }", "title": "" }, { "docid": "9da445753f8923a7287709518d96e9e5", "score": "0.55170435", "text": "protected function saveIdentityStates()\n\t{\n\t\t$states=array();\n\t\tforeach($this->getState(self::STATES_VAR,array()) as $name=>$dummy)\n\t\t\t$states[$name]=$this->getState($name);\n\t\treturn $states;\n\t}", "title": "" }, { "docid": "dc7413b72c711dcf6b9a4b12d11dd726", "score": "0.551497", "text": "static public function getStates(): array\n {\n return [\n static::STATE_NEW,\n static::STATE_ORDERED,\n static::STATE_VALIDATED,\n static::STATE_PARTIAL,\n static::STATE_RECEIVED,\n static::STATE_COMPLETED,\n static::STATE_CANCELED,\n ];\n }", "title": "" }, { "docid": "680e42a5177b420d318f58bc42f9e3a7", "score": "0.54813397", "text": "protected function saveIdentityStates()\n {\n $states = [];\n foreach ($this->getState(static::STATES_VAR, []) as $name => $dummy) {\n $states[$name]=$this->getState($name);\n }\n\n return $states;\n }", "title": "" }, { "docid": "ef5b76a10d19662eedbce87f3dd11365", "score": "0.54597694", "text": "function states(&$model) {\n\t\t$settings = $this->settings[$model->name];\n\t\treturn array_combine($settings['states'], $settings['states']);\n\t}", "title": "" }, { "docid": "7c6e1c8f5cc30e95901ccc4fd3cc2cef", "score": "0.545401", "text": "public static function getStates() {\n try\n {\n $states = User::where('user_type','=',User::IS_BEAUTICIAN)->groupBy('state')->orderBy('state')->select('state','commission_percent')->get();\n static::$data['states'] = $states;\n\n } catch (\\Exception $e) {\n static::setExceptionError($e);\n }\n\n return static::$data;\n }", "title": "" }, { "docid": "6a4a6d07ecf80c6a69e509754e1c7c24", "score": "0.5434867", "text": "function filterMap(): array\n {\n return [\n 'state' => ['state']\n ];\n }", "title": "" }, { "docid": "deed9c673897ac0dae280994f89c099f", "score": "0.5389727", "text": "public static function fromState(array $state, array $aggregateState);", "title": "" }, { "docid": "bcd73a5deced347857387413056f26e3", "score": "0.5387828", "text": "public function getStates() {\n return array(\n self::STATE_NEW => 'New',\n self::STATE_FINISHED => 'Finished',\n );\n }", "title": "" }, { "docid": "1e0b9a64ae46defbb75363cf964b9e19", "score": "0.53878134", "text": "public function states()\n\t{\n\t\treturn $this->states;\n\t}", "title": "" }, { "docid": "4e708890314588e8ddcf1e3b51ed8c5c", "score": "0.53769255", "text": "private function getNextStates()\n\t{\n\t\t$currentState = $this->currentState;\n\t\t$table = new Zend_Db_Table(array('name'=>PrecurioTableConstants::WORKFLOW_STATES,'rowClass'=>'ProcessState'));\n\t\t$states = $table->fetchAll($table->select()->where('process_id = ?',$currentState->getProcessId())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('position = ?',($currentState->getPosition()+1)));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\treturn $states;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "05d4a1b39c02f44dd8258a2bc1f69572", "score": "0.5343025", "text": "public static function getStates()\n {\n return array(\n self::STATE_DRAFT,\n self::STATE_WAITING,\n self::STATE_PUBLISHED,\n self::STATE_DELETED,\n );\n }", "title": "" }, { "docid": "122b2fca7c7cbbbb313f1019b9cb5700", "score": "0.5314507", "text": "function get_state_abbrevs(){\n $region_abbrevs_names = array(\n 'AL'=>'ALABAMA',\n 'AK'=>'ALASKA',\n 'AZ'=>'ARIZONA',\n 'AR'=>'ARKANSAS',\n 'CA'=>'CALIFORNIA',\n 'CO'=>'COLORADO',\n 'CT'=>'CONNECTICUT',\n 'DE'=>'DELAWARE',\n 'DC'=>'DISTRICT OF COLUMBIA',\n 'FL'=>'FLORIDA',\n 'GA'=>'GEORGIA',\n 'GU'=>'GUAM GU',\n 'HI'=>'HAWAII',\n 'ID'=>'IDAHO',\n 'IL'=>'ILLINOIS',\n 'IN'=>'INDIANA',\n 'IA'=>'IOWA',\n 'KS'=>'KANSAS',\n 'KY'=>'KENTUCKY',\n 'LA'=>'LOUISIANA',\n 'ME'=>'MAINE',\n 'MD'=>'MARYLAND',\n 'MA'=>'MASSACHUSETTS',\n 'MI'=>'MICHIGAN',\n 'MN'=>'MINNESOTA',\n 'MS'=>'MISSISSIPPI',\n 'MO'=>'MISSOURI',\n 'MT'=>'MONTANA',\n 'NE'=>'NEBRASKA',\n 'NV'=>'NEVADA',\n 'NH'=>'NEW HAMPSHIRE',\n 'NJ'=>'NEW JERSEY',\n 'NM'=>'NEW MEXICO',\n 'NY'=>'NEW YORK',\n 'NC'=>'NORTH CAROLINA',\n 'ND'=>'NORTH DAKOTA',\n 'OH'=>'OHIO',\n 'OK'=>'OKLAHOMA',\n 'OR'=>'OREGON',\n 'PW'=>'PALAU',\n 'PA'=>'PENNSYLVANIA',\n 'PR'=>'PUERTO RICO',\n 'RI'=>'RHODE ISLAND',\n 'SC'=>'SOUTH CAROLINA',\n 'SD'=>'SOUTH DAKOTA',\n 'TN'=>'TENNESSEE',\n 'TX'=>'TEXAS',\n 'UT'=>'UTAH',\n 'VT'=>'VERMONT',\n 'VI'=>'VIRGIN ISLANDS',\n 'VA'=>'VIRGINIA',\n 'WA'=>'WASHINGTON',\n 'WV'=>'WEST VIRGINIA',\n 'WI'=>'WISCONSIN',\n 'WY'=>'WYOMING',\n 'UK'=>'UNITED KINGDOM'\n );\n\n return $region_abbrevs_names;\n}", "title": "" }, { "docid": "67cc2d61249cc3685aafab0e3e4d3a58", "score": "0.52855396", "text": "public function get_states(){\n\t\t$this->layout = '';\n $this->autoRender = false;\n\t\t\n\t\t$states = array();\n\t\t$this->loadModel('State');\n\t\tif(!empty($this->request->data)){\n\t\t\t$country_id = $this->request->data['State']['country_id'];\n\t\t\t$states = $this->State->find('all',array('conditions'=>array('State.country_id'=>$country_id,'State.is_deleted'=>0,'State.status'=>1,'State.name <>'=>'null'),'order'=>array('State.name ASC'),'fields'=>array('State.id','name')));\n\t\t}\n\t\techo json_encode($states);\n exit();\n\t}", "title": "" }, { "docid": "526c75bdea7b95a7838fee2b21056257", "score": "0.5283147", "text": "protected function optimizeTransitions()\n\t{\n\t\t$optimized = array();\n\n\t\tforeach ($this->transitions as $index => $transition)\n\t\t{\n\t\t\t$event = $transition->event();\n\n\t\t\t$state = $transition->from();\n\n\t\t\tif (!isset($optimized[$event])) $optimized[$event] = array();\n\n\t\t\tif (!isset($optimized[$event][$state])) $optimized[$event][$state] = array();\n\n\t\t\t$optimized[$event][$state][] = $index;\n\t\t}\n\n\t\treturn $optimized;\n\t}", "title": "" }, { "docid": "d92af9a5112e6fb82c9c91a0c0a1f9fa", "score": "0.5269063", "text": "private function _build_stages()\n {\n $select = array();\n\n if($this->qb_distinct === true) {\n foreach($this->qb_select as $select_key=> $select_val) {\n if($select_val) {\n $this->group_by($select_key);\n }\n }\n }\n\n // Filter Where conditions\n if(!empty($this->qb_where)) {\n array_push($select, array('$match'=>$this->qb_where));\n }\n\n if(!empty($this->qb_groupby)) {\n\n array_push($select, $this->qb_groupby);\n\n }else {\n\n // build offset condition\n if(!empty($this->qb_offset)) {\n array_push($select, array('$skip' => $this->qb_offset));\n }\n\n // build order by condition\n if(!empty($this->qb_orderby)) {\n array_push($select, array('$sort' => $this->qb_orderby));\n }\n\n // build select required\n if(!empty($this->qb_select)) {\n array_push($select, array('$project' => $this->qb_select));\n }\n\n // build limit condition\n if(!empty($this->qb_limit)) {\n array_push($select, array('$limit' => $this->qb_limit));\n }\n }\n\n // Having group\n if(!empty($this->qb_having)) {\n array_push($select, array('$match'=>$this->qb_having));\n }\n\n return $select;\n }", "title": "" }, { "docid": "c3881a3bc5727613e37e9cd0fa0e8db9", "score": "0.5263378", "text": "public function states() {\n\n $this->autoRender = false;\n\n $states_tbl = TableRegistry::get('tbl_states');\n\n $results = $states_tbl->find(\"all\")->all()->toArray();\n\n $states_array = array();\n\n foreach ($results as $states):\n array_push($states_array, array(\n \"id\" => $states->id,\n \"country_id\" => $states->country_id,\n \"name\" => $states->name\n ));\n endforeach;\n\n $this->json(1, 'states found', $states_array);\n }", "title": "" }, { "docid": "37efd467689a3c2022bf4ddc43aaa85e", "score": "0.52575135", "text": "abstract public function getStatesCount();", "title": "" }, { "docid": "11ddf59f9cbd78d61309e1f3a0d33988", "score": "0.5230061", "text": "public static function getPostalStates()\n {\n return [\n 'AL' => 'Alabama',\n 'AK' => 'Alaska',\n 'AZ' => 'Arizona',\n 'AR' => 'Arkansas',\n 'CA' => 'California',\n 'CO' => 'Colorado',\n 'CT' => 'Connecticut',\n 'DE' => 'Delaware',\n 'DC' => 'District Of Columbia',\n 'FL' => 'Florida',\n 'GA' => 'Georgia',\n 'HI' => 'Hawaii',\n 'ID' => 'Idaho',\n 'IL' => 'Illinois',\n 'IN' => 'Indiana',\n 'IA' => 'Iowa',\n 'KS' => 'Kansas',\n 'KY' => 'Kentucky',\n 'LA' => 'Louisiana',\n 'ME' => 'Maine',\n 'MD' => 'Maryland',\n 'MA' => 'Massachusetts',\n 'MI' => 'Michigan',\n 'MN' => 'Minnesota',\n 'MS' => 'Mississippi',\n 'MO' => 'Missouri',\n 'MT' => 'Montana',\n 'NE' => 'Nebraska',\n 'NV' => 'Nevada',\n 'NH' => 'New Hampshire',\n 'NJ' => 'New Jersey',\n 'NM' => 'New Mexico',\n 'NY' => 'New York',\n 'NC' => 'North Carolina',\n 'ND' => 'North Dakota',\n 'OH' => 'Ohio',\n 'OK' => 'Oklahoma',\n 'OR' => 'Oregon',\n 'PA' => 'Pennsylvania',\n 'RI' => 'Rhode Island',\n 'SC' => 'South Carolina',\n 'SD' => 'South Dakota',\n 'TN' => 'Tennessee',\n 'TX' => 'Texas',\n 'UT' => 'Utah',\n 'VT' => 'Vermont',\n 'VA' => 'Virginia',\n 'WA' => 'Washington',\n 'WV' => 'West Virginia',\n 'WI' => 'Wisconsin',\n 'WY' => 'Wyoming'\n ];\n }", "title": "" }, { "docid": "79d723361bfd9b2ff1aa0bf031a646fa", "score": "0.52132565", "text": "public function listNeededIncomingStates(): array;", "title": "" }, { "docid": "18730e86f4dcb8777a162843f48a9f22", "score": "0.5210173", "text": "public function getAllStates(){\n\t\t$states=$this->usermodel->select_multiple_row('states',['id','name','alias','state_code'],['active'=>1]);\n\t\tif(empty($states)){\n\t\t\t$res['result'] = FALSE;\n\t\t\t$res['message'] = 'No state exist.';\n\t\t\techo json_encode($res);\t\n\t\t\t\n\t\t}else {\n\t\t\t$res['result'] = True;\n\t\t\t$res['data'] = $states;\n\t\t\t$res['message'] = 'All States.';\n\t\t\techo json_encode($res);\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "39c915854f65658201c6991cc15ab19b", "score": "0.5206795", "text": "public function getStates(){\r\n return $this->currentState;\r\n }", "title": "" }, { "docid": "73d1565474b01b210411c4209f46fbba", "score": "0.52035177", "text": "static public function getStockableStates(): array\n {\n return [\n static::STATE_VALIDATED,\n static::STATE_PARTIAL,\n static::STATE_RECEIVED,\n static::STATE_COMPLETED,\n ];\n }", "title": "" }, { "docid": "74c29bb9c4ad8386f8fc64aeed87f23c", "score": "0.5195842", "text": "function getAllState(){\n\t\n\t \t\tApp::import('model','State');\n\t\t $this->State = new State(); \n\n\t\t\t$StatesList = $this->State->find('list', array('fields' => array('id', 'statename'),'order' => 'State.statename ASC','recursive' => -1,'conditions' => array('State.status' => 'yes'))); \n\t\t\treturn $StatesList;\n\t }", "title": "" }, { "docid": "6b7498c346a6f159faead49c49b07517", "score": "0.5188047", "text": "public function states(){\n\n \treturn $this->hasMany(State::class);\n }", "title": "" }, { "docid": "78aef8647dbb0b33954005134d394671", "score": "0.5137639", "text": "public function states()\n {\n return $this->hasMany('App\\Models\\State', 'country_id', 'id');\n }", "title": "" }, { "docid": "6a918d09037a06a7864b2dbff755d194", "score": "0.51296896", "text": "private function getLiveTree($stateLetter = null) \n {\n /*\n * @author Pavel Shutin\n */\n error_log('This method is depricated.', E_NOTICE);\n $tree = array();\n $tree['countries'] = array();\n $tree['counts'] = array();\n $tree['letters'] = array();\n \n $groups_count_in_city = array();\n\n $currentGroup = Warecorp_Group_Factory::loadById($this->getGroupId(), Warecorp_Group_Enum_GroupType::GROUP_TYPE_FAMILY);\n\n $cache = Warecorp_Cache::getFileCache();\n if ( !$groups = $cache->load('groups_members_cache_'.$this->getGroupId()) ) {\n $groups = $currentGroup->getGroups()->getList();\n $cache->save($groups, 'groups_members_cache_'.$this->getGroupId(), array(), 600);\n }\n\n $cacheLetter = ($stateLetter === null) ? \"null\" : $stateLetter;\n\n if ( is_array($groups) && sizeof($groups) > 0 ) {\n $used_countries = array();\n $used_states = array();\n $used_cities = array();\n $tree['allow_countries'] = array();\n // @todo надо заменить, чтобы бралось все это из базы\n if ( $this->getCategoryType() == 1 ) { // если тип категорий - Regional\n switch ( $this->getCategoryFocus() ) {\n case 0 :\n $tree['allow_countries'] = null; // All Countries\n break;\n case 1 :\n $tree['allow_countries'] = array(1, 38); // United States & Canada\n break;\n case 2 :\n $tree['allow_countries'] = array(1); // United States\n break;\n case 3 :\n $tree['allow_countries'] = array(38); // Canada\n break;\n }\n }\n\n if ( $treeCache = $cache->load('group_hierarchy_tree_'.$this->getGroupId().\"_\".$this->getCategoryType().\"_\".$this->getCategoryFocus().\"_\".$cacheLetter) ) {\n return $treeCache;\n }\n\n\n foreach ( $groups as $group ) {\n \t$tmpState =& $group->getState();\n \tif ( $stateLetter === null || strtoupper(substr($tmpState->name, 0, 1)) == strtoupper($stateLetter) ) { \t\n\t $tmpCountry =& $group->getCountry();\n\t if ( null === $tree['allow_countries'] || in_array($tmpCountry->id, $tree['allow_countries']) ) {\n\t if ( $tmpCountry->id && !in_array($tmpCountry->id, $used_countries) ) {\n\t $tree['countries']['country_'.$tmpCountry->id] = array(\n\t 'id' => $tmpCountry->id,\n\t 'name' => $tmpCountry->name,\n\t 'countOfStates' => 0,\n\t 'children' => array() \n\t );\n\t $used_countries[] = $tmpCountry->id;\n\t $tree['counts']['country_'.$tmpCountry->id] = 0;\n\t }\n\t $tmpState = $group->getState();\n\t if ( $tmpState->id && !in_array($tmpState->id, $used_states) ) {\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]\n\t = array(\n\t 'id' => $tmpState->id,\n\t 'name' => $tmpState->name,\n\t 'group_count' => 0,\n\t 'children' => array()\n\t );\n\t $used_states[] = $tmpState->id;\n\t $tree['counts']['state_'.$tmpState->id] = 0;\n\t $tree['countries']['country_'.$tmpCountry->id]['countOfStates']++;\n\t }\n\t $tmpCity = $group->getCity();\n\t $count = (isset($groups_count_in_city[$tmpCity->id])) ? $groups_count_in_city[$tmpCity->id] : $currentGroup->getGroups()->setTypes(array('simple','family'))->addWhere('zgi.city_id = '.$tmpCity->id)->getCount();\n\t if ( $this->isNoThirdLevel() || $count < $this->getBreakAfter() ) {\n\t if ( $tmpCountry->id && $tmpState->id ) {\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]['children']['groups']['group_'.$group->getId()]\n\t = array(\n\t 'id' => $group->getId(),\n\t 'name' => $group->getName(),\n\t 'members_count' => $group->getMembers()->getCount(),\n\t 'path' => $group->getGroupPath('summary'),\n\t 'group' => $group\n\t );\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]['group_count'] ++;\n\t $tree['counts']['country_'.$tmpCountry->id] ++;\n\t $tree['counts']['state_'.$tmpState->id] ++;\n\t }\n\t } else {\n\t if ( $tmpCity->id && !in_array($tmpCity->id, $used_cities) ) {\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]['children']['cities']['city_'.$tmpCity->id]\n\t = array(\n\t 'id' => $tmpCity->id,\n\t 'name' => $tmpCity->name,\n 'countOfEvents' => 0,\n\t 'children' => array()\n\t );\n\t $used_cities[] = $tmpCity->id;\n\t $tree['counts']['city_'.$tmpCity->id] = 0;\n\t }\n\t if ( $tmpCountry->id && $tmpState->id && $tmpCity->id ) {\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]['children']['cities']['city_'.$tmpCity->id]['children']['groups']['group_'.$group->getId()]\n\t = array(\n\t 'id' => $group->getId(),\n\t 'name' => $group->getName(),\n\t 'members_count' => $group->getMembers()->getCount(),\n\t 'path' => $group->getGroupPath('summary'),\n\t 'group' => $group\n\t );\n\t $tree['countries']['country_'.$tmpCountry->id]['children']['states']['state_'.$tmpState->id]['group_count'] ++;\n\t $tree['counts']['country_'.$tmpCountry->id] ++;\n\t $tree['counts']['state_'.$tmpState->id] ++;\n\t $tree['counts']['city_'.$tmpCity->id] ++;\n\t }\n\t }\n\t }\n \t}\n }\n usort($tree['countries'], 'sortHierarchyByName');\n foreach ( $tree['countries'] as &$_country ) {\n if ( isset($_country['children']['states']) ) {\n usort($_country['children']['states'], 'sortHierarchyByName');\n foreach ( $_country['children']['states'] as &$_state ) {\n if ( isset($_state['children']['cities']) ) {\n $tree['letters'][strtoupper(substr($_state['name'],0,1))] = true;\n usort($_state['children']['cities'], 'sortHierarchyByName');\n foreach ( $_state['children']['cities'] as &$_city ) {\n usort($_city['children']['groups'], 'sortHierarchyByName');\n }\n } else {\n usort($_state['children']['groups'], 'sortHierarchyByName');\n }\n }\n }\n }\n }\n $cache->save($tree,'group_hierarchy_tree_'.$this->getGroupId().\"_\".$this->getCategoryType().\"_\".$this->getCategoryFocus().\"_\".$cacheLetter, array('group_hierarchy_tree_'.$this->getGroupId()), 600);\n return $tree;\n }", "title": "" }, { "docid": "61c838ca2aaa16fed347b87f3f904357", "score": "0.51235175", "text": "public function setStates(){\n\n\t\t$b = 0;\n\t\tforeach ($this->data as $data) {\n\t\t\tforeach ( $this->states as $state ) {\n//\t\t\t\terror_log(print_r($state,TRUE));\n\t\t\t\tif(isset($state->id_demande)) {\n\t\t\t\t\tif ( $data->id == $state->id_demande ) {\n\t\t\t\t\t\t$data->{'referent'} = $state->user_nicename;\n\t\t\t\t\t\t$data->{'etat'} = $state->etat;\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$b = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($b == 1){\n\t\t\t\t$data->{'etat'} = 0;\n\t\t\t\t$data->{'referent'} = '0';\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca84a40833f8a647520f604291fbbbee", "score": "0.5115394", "text": "public static function getRowStates()\n {\n $values = [static::ACTIVE_ROWS, static::DELETED_ROWS, static::ALL_ROWS];\n return array_combine($values, $values);\n }", "title": "" }, { "docid": "58b0101d390db347f577bb897bfe176b", "score": "0.51072294", "text": "function workflow_get_states($workflow_name = NULL, $all = FALSE) {\n $workflows = workflow_load_all();\n\n if (!isset($workflow_name)) {\n static $states;\n static $all_states;\n\n if (!isset($all_states)) {\n $all_states = $states = array();\n\n // We iterate through all the states so that we can prepend the Workflow\n // label to the state label.\n foreach ($workflows as $workflow) {\n $states = $workflow->states;\n foreach ($states as $name => $state) {\n $state->label = $workflow->label .': '. $state->label;\n $all_states[$name] = $state;\n // Keep the active only states in a separate array.\n if (workflow_state_is_active($state)) {\n $states[$name] = $state;\n }\n }\n }\n }\n\n return $all ? $all_states : $states;\n }\n\n $states = $workflows[$workflow_name]->states;\n return $all ? $states : array_filter($states, 'workflow_state_is_active');\n}", "title": "" }, { "docid": "20fb5afa0ea0e1f062a8846f51510f11", "score": "0.5097673", "text": "protected function resolveStates()\n {\n // Make sure previous states are cleared.\n $this->processStates = [];\n\n // Retrieve all states and re-key collection for easier reference during mapping.\n $states = State::all()->keyBy(function($item) {\n return $item->entity_type . '.' . $item->name_key;\n });\n\n // Retrieve process variables from Camunda.\n $processVariables = $this->camunda->processes()->getVariables($this->processInstance->engine_process_instance_id);\n\n // Filter through variables and only keep those related to process states.\n collect($processVariables)->filter(function($variable) {\n return starts_with($variable->name, 'state');\n })\n // Map Camunda state variables to a state model instance.\n ->each(function($variable) use ($states) {\n $state = str_replace_first('state-', '', kebab_case($variable->name));\n switch (true) {\n case $state == 'entity':\n $key = \"{$this->processInstance->entity_type}.{$variable->value}\";\n break;\n case starts_with($state, 'step'):\n $key = \"process-step.{$variable->value}\";\n break;\n case starts_with($state, 'form'):\n $key = \"process-form.{$variable->value}\";\n break;\n case $state == 'process-instance':\n $key = \"process-instance.{$variable->value}\";\n break;\n default;\n $key = null;\n }\n\n if ($key && ($stateModelInstance = $states[$key] ?? null)) {\n $this->processStates[$state] = $stateModelInstance;\n }\n });\n\n return $this;\n }", "title": "" }, { "docid": "5220c23769cf9d26b7b6d9b0820496bd", "score": "0.509428", "text": "public function providerListStates()\n {\n return [\n [FiniteStateMachine::STATE_0],\n [FiniteStateMachine::STATE_1],\n [FiniteStateMachine::STATE_2]\n ];\n }", "title": "" }, { "docid": "083af11dff43e8c5d092ecc1470319db", "score": "0.5091063", "text": "public static function getStateCodes($country = 'US') {\n $states = [\n 'US' => [\n 'AL' => 'Alabama',\n 'AK' => 'Alaska',\n 'AS' => 'American Samoa',\n 'AZ' => 'Arizona',\n 'AR' => 'Arkansas',\n 'CA' => 'California',\n 'CO' => 'Colorado',\n 'CT' => 'Connecticut',\n 'DE' => 'Delaware',\n 'DC' => 'District of Columbia',\n 'FL' => 'Florida',\n 'GA' => 'Georgia',\n 'GU' => 'Guam',\n 'HI' => 'Hawaii',\n 'ID' => 'Idaho',\n 'IL' => 'Illinois',\n 'IN' => 'Indiana',\n 'IA' => 'Iowa',\n 'KS' => 'Kansas',\n 'KY' => 'Kentucky',\n 'LA' => 'Louisiana',\n 'ME' => 'Maine',\n 'MP' => 'Mariana Islands',\n 'MH' => 'Marshall Islands',\n 'MD' => 'Maryland',\n 'MA' => 'Massachusetts',\n 'MI' => 'Michigan',\n 'MN' => 'Minnesota',\n 'MS' => 'Mississippi',\n 'MO' => 'Missouri',\n 'MT' => 'Montana',\n 'NE' => 'Nebraska',\n 'NV' => 'Nevada',\n 'NH' => 'New Hampshire',\n 'NJ' => 'New Jersey',\n 'NM' => 'New Mexico',\n 'NY' => 'New York',\n 'NC' => 'North Carolina',\n 'ND' => 'North Dakota',\n 'OH' => 'Ohio',\n 'OK' => 'Oklahoma',\n 'OR' => 'Oregon',\n 'PW' => 'Palau',\n 'PA' => 'Pennsylvania',\n 'PR' => 'Puerto Rico',\n 'RI' => 'Rhode Island',\n 'SC' => 'South Carolina',\n 'SD' => 'South Dakota',\n 'TN' => 'Tennessee',\n 'TX' => 'Texas',\n 'UT' => 'Utah',\n 'VT' => 'Vermont',\n 'VI' => 'U.S. Virgin Islands',\n 'VA' => 'Virginia',\n 'WA' => 'Washington',\n 'WV' => 'West Virginia',\n 'WI' => 'Wisconsin',\n 'WY' => 'Wyoming',\n ],\n 'CA' => [\n 'AB' => 'Alberta',\n 'BC' => 'British Columbia',\n 'MB' => 'Manitoba',\n 'NB' => 'New Brunswick',\n 'NL' => 'Newfoundland',\n 'NT' => 'Northwest Territories',\n 'NS' => 'Nova Scotia',\n 'NU' => 'Nunavut',\n 'ON' => 'Ontario',\n 'PE' => 'Prince Edward Island',\n 'QC' => 'Quebec',\n 'SK' => 'Saskatchewan',\n 'YT' => 'Yukon',\n ],\n ];\n\n return isset($states[$country]) ? $states[$country] : [];\n }", "title": "" }, { "docid": "8740a8e6e6fb17903dfc887603046f63", "score": "0.5089964", "text": "function workflow_get_db_states($workflow_name) {\n $states = array();\n\n // Construct the query.\n $query = \"SELECT * FROM {workflow_states} WHERE workflow_name = '%s' ORDER BY weight, label\";\n\n $result = db_query($query, $workflow_name);\n while ($state = db_fetch_object($result)) {\n $state->label = check_plain(t($state->label));\n\n $state->transitions = workflow_transitions_load($state->name);\n\n $states[$state->name] = $state;\n }\n\n return $states;\n}", "title": "" }, { "docid": "b9ee5b84861b9f2653d220c44ebc4956", "score": "0.508053", "text": "public function getStatesToChooseFrom($product = NULL) {\n\t\t$this->loadStates();\n\t\t$ret = array(\n\t\t\t'' => '(Select One)'\n\t\t);\n\t\tif(!empty($this->selectedSet) && count($this->selectedSet) > 1) {\n\t\t\t/* @var $state User_State */\n\t\t\tforeach($this->selectedSet as $state) {\n\t\t\t\t$ret[$state->id] = $state->group;\n\t\t\t}\n\t\t} else {\n\t\t\tforeach($this->states as $state_set => $states) {\n\t\t\t\tif(count($states) == 1) {\n\t\t\t\t\t$state = reset($states);\n\t\t\t\t\t$ret[$state->id] = $state->set;\n\t\t\t\t} else {\n\t\t\t\t\tforeach($states as $state) {\n\t\t\t\t\t\t$n = $state->set;\n\t\t\t\t\t\tif($state->group != '') {\n\t\t\t\t\t\t\t$n .= ' (' . $state->group . ')';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ret[$state->id] = $n;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($product)) {\n\t\t\t$this->CI->load->library('products');\n\t\t\t$product = $this->CI->products->getProduct($product);\n\t\t\tif($product->for_state) {\n\t\t\t\tif(isset($ret[$product->for_state])) {\n\t\t\t\t\t$ret = array($product->for_state => $ret[$product->for_state]);\n\t\t\t\t} else {\n\t\t\t\t\t$name = $this->CI->db->select('states_name')->from(TABLE_STATES)->where('states_id', $product->for_state)->get()->row()->states_name;\n\t\t\t\t\t$ret = array($product->for_state => $name);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// only allow states that are allowed for the requested product.\n\t\t\t\t$db_states = $this->CI->db\n\t\t\t\t\t\t->select('states_id')\n\t\t\t\t\t\t->from(TABLE_PRODUCTS_TO_STATES)\n\t\t\t\t\t\t->where('products_id', $product->products_id)\n\t\t\t\t\t\t->get()->result();\n\t\t\t\t$states = array();\n\t\t\t\t$general = FALSE;\n\t\t\t\tforeach($db_states as $state) {\n\t\t\t\t\tif($state->states_id == 1) {\n\t\t\t\t\t\t$general = TRUE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t$states[] = $state->states_id;\n\t\t\t\t}\n\t\t\t\tif(!$general) {\n\t\t\t\t\t$tmp = $ret;\n\t\t\t\t\t$ret = array();\n\t\t\t\t\tforeach($tmp as $k => $v) {\n\t\t\t\t\t\tif(in_array($k, $states)) {\n\t\t\t\t\t\t\t$ret[$k] = $v;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "5c41a50249e9a5313f9e78d8aec01e97", "score": "0.50695276", "text": "public function run()\n {\n $states = [\n \t['clave' => '01', 'name' => 'Aguascalientes', 'slug' => 'aguascalientes', 'short' => 'Ags.'],\n \t['clave' => '02', 'name' => 'Baja California', 'slug' => 'baja-california', 'short' => 'BC'],\n\t\t\t['clave' => '03', 'name' => 'Baja California Sur', 'slug' => 'baja-california-sur', 'short' => 'BCS'],\n\t\t\t['clave' => '04', 'name' => 'Campeche', 'slug' => 'campeche', 'short' => 'Camp.'],\n\t\t\t['clave' => '05', 'name' => 'Coahuila', 'slug' => 'coahuila', 'short' => 'Coah.'],\n\t\t\t['clave' => '06', 'name' => 'Colima', 'slug' => 'colima', 'short' => 'Col.'],\n\t\t\t['clave' => '07', 'name' => 'Chiapas', 'slug' => 'chiapas', 'short' => 'Chis.'],\n\t\t\t['clave' => '08', 'name' => 'Chihuahua', 'slug' => 'chihuahua', 'short' => 'Chih.'],\n\t\t\t['clave' => '09', 'name' => 'Distrito Federal', 'slug' => 'distrito-federal', 'short' => 'DF'],\n\t\t\t['clave' => '10', 'name' => 'Durango', 'slug' => 'durango', 'short' => 'Dgo.'],\n\t\t\t['clave' => '11', 'name' => 'Guanajuato', 'slug' => 'guanajuato', 'short' => 'Gto.'],\n\t\t\t['clave' => '12', 'name' => 'Guerrero', 'slug' => 'guerrero', 'short' => 'Gro.'],\n\t\t\t['clave' => '13', 'name' => 'Hidalgo', 'slug' => 'hidalgo', 'short' => 'Hgo.'],\n\t\t\t['clave' => '14', 'name' => 'Jalisco', 'slug' => 'jalisco', 'short' => 'Jal.'],\n\t\t\t['clave' => '15', 'name' => 'México', 'slug' => 'mexico', 'short' => 'Mex.'],\n\t\t\t['clave' => '16', 'name' => 'Michoacán', 'slug' => 'michoacan', 'short' => 'Mich.'],\n\t\t\t['clave' => '17', 'name' => 'Morelos', 'slug' => 'morelos', 'short' => 'Mor.'],\n\t\t\t['clave' => '18', 'name' => 'Nayarit', 'slug' => 'nayarit', 'short' => 'Nay.'],\n\t\t\t['clave' => '19', 'name' => 'Nuevo León', 'slug' => 'nuevo-leon', 'short' => 'NL'],\n\t\t\t['clave' => '20', 'name' => 'Oaxaca', 'slug' => 'oaxaca', 'short' => 'Oax.'],\n\t\t\t['clave' => '21', 'name' => 'Puebla', 'slug' => 'puebla', 'short' => 'Pue.'],\n\t\t\t['clave' => '22', 'name' => 'Querétaro', 'slug' => 'queretaro', 'short' => 'Qro. '],\n\t\t\t['clave' => '23', 'name' => 'Quintana Roo', 'slug' => 'quintana-roo', 'short' => 'Q. Roo'],\n\t\t\t['clave' => '24', 'name' => 'San Luis Potosí', 'slug' => 'san-luis-potosi', 'short' => 'SLP'],\n\t\t\t['clave' => '25', 'name' => 'Sinaloa', 'slug' => 'sinaloa', 'short' => 'Sin.'],\n\t\t\t['clave' => '26', 'name' => 'Sonora', 'slug' => 'sonora', 'short' => 'Son.'],\n\t\t\t['clave' => '27', 'name' => 'Tabasco', 'slug' => 'tabasco', 'short' => 'Tab.'],\n\t\t\t['clave' => '28', 'name' => 'Tamaulipas', 'slug' => 'tamaulipas', 'short' => 'Tamps.'],\n\t\t\t['clave' => '29', 'name' => 'Tlaxcala', 'slug' => 'tlaxcala', 'short' => 'Tlax.'],\n\t\t\t['clave' => '30', 'name' => 'Veracruz', 'slug' => 'veracruz', 'short' => 'Ver.'],\n\t\t\t['clave' => '31', 'name' => 'Yucatán', 'slug' => 'yucatan', 'short' => 'Yuc.'],\n\t\t\t['clave' => '32', 'name' => 'Zacatecas', 'slug' => 'zacatecas', 'short' => 'Zac.'],\n ];\n DB::table('states')->insert($states);\n }", "title": "" }, { "docid": "1ce0799ed4b37d09d14171945164be86", "score": "0.50626177", "text": "function ctxphc_get_states() {\n\t$states = array(\n\t\t'AL' => 'Alabama',\n\t\t'AK' => 'Alaska',\n\t\t'AS' => 'American Samoa',\n\t\t'AZ' => 'Arizona',\n\t\t'AR' => 'Arkansas',\n\t\t'CA' => 'California',\n\t\t'CO' => 'Colorado',\n\t\t'CT' => 'Connecticut',\n\t\t'DE' => 'Delaware',\n\t\t'DC' => 'District of Columbia',\n\t\t'FM' => 'Federated States of Micronesia',\n\t\t'FL' => 'Florida',\n\t\t'GA' => 'Georgia',\n\t\t'GU' => 'Guam',\n\t\t'HI' => 'Hawaii',\n\t\t'ID' => 'Idaho',\n\t\t'IL' => 'Illinois',\n\t\t'IN' => 'Indiana',\n\t\t'IA' => 'Iowa',\n\t\t'KS' => 'Kansas',\n\t\t'KY' => 'Kentucky',\n\t\t'LA' => 'Louisiana',\n\t\t'ME' => 'Maine',\n\t\t'MH' => 'Marshall Islands',\n\t\t'MD' => 'Maryland',\n\t\t'MA' => 'Massachusetts',\n\t\t'MI' => 'Michigan',\n\t\t'MN' => 'Minnesota',\n\t\t'MS' => 'Mississippi',\n\t\t'MO' => 'Missouri',\n\t\t'MT' => 'Montana',\n\t\t'NE' => 'Nebraska',\n\t\t'NV' => 'Nevada',\n\t\t'NH' => 'New Hampshire',\n\t\t'NJ' => 'New Jersey',\n\t\t'NM' => 'New Mexico',\n\t\t'NY' => 'New York',\n\t\t'NC' => 'North Carolina',\n\t\t'ND' => 'North Dakota',\n\t\t'MP' => 'Northern Mariana Islands',\n\t\t'OH' => 'Ohio',\n\t\t'OK' => 'Oklahoma',\n\t\t'OR' => 'Oregon',\n\t\t'PW' => 'Palau',\n\t\t'PA' => 'Pennsylvania',\n\t\t'PR' => 'Puerto Rico',\n\t\t'RI' => 'Rhode Island',\n\t\t'SC' => 'South Carolina',\n\t\t'SD' => 'South Dakota',\n\t\t'TN' => 'Tennessee',\n\t\t'TX' => 'Texas',\n\t\t'UT' => 'Utah',\n\t\t'VT' => 'Vermont',\n\t\t'VI' => 'Virgin Islands',\n\t\t'VA' => 'Virginia',\n\t\t'WA' => 'Washington',\n\t\t'WV' => 'West Virginia',\n\t\t'WI' => 'Wisconsin',\n\t\t'WY' => 'Wyoming',\n\t\t'AA' => 'Armed Forces Americas',\n\t\t'AE' => 'Armed Forces',\n\t\t'AP' => 'Armed Forces Pacific',\n\t);\n\n\treturn $states;\n}", "title": "" }, { "docid": "d0a7afc9ad9798629418f0f2fe9f6c50", "score": "0.50602525", "text": "public static function getStates()\n {\n return array('ACTIVE', 'DISABLED', 'DELETED');\n }", "title": "" }, { "docid": "d2d2421f11ac420752d9c0ab39540d71", "score": "0.50165015", "text": "protected function normalizeStates(array $config): array\n {\n $states = [];\n\n foreach ($config['states'] as $state) {\n if (is_null($state) || is_scalar($state)) {\n $state = ['name' => $state];\n }\n\n $states[] = $state;\n }\n\n return $states;\n }", "title": "" }, { "docid": "280831c51305d8ec0417bf4e72ced366", "score": "0.5011074", "text": "public function jsonSerialize()\n {\n $mapState = [\n 'step' => $this->step,\n ];\n\n foreach ($this->units as $unit) {\n $mapState['units'][] = $unit;\n }\n\n foreach ($this->historyLogs as $message) {\n $mapState['history_logs'][] = $message;\n }\n\n return $mapState;\n }", "title": "" }, { "docid": "9545d3e204e620a26d48b7fa3fbb4b27", "score": "0.50079364", "text": "function fn_my_states_get_states($params = array(), $items_per_page = 0, $lang_code = CART_LANGUAGE)\n{\n // Set default values to input params\n $default_params = array (\n 'page' => 1,\n 'items_per_page' => $items_per_page\n );\n\n $params = array_merge($default_params, $params);\n\n $fields = array(\n 'a.state_id',\n 'a.country_code',\n 'a.code',\n 'a.status',\n 'a.cmp',\n 'b.state',\n 'c.country'\n );\n\n $condition = '1';\n if (!empty($params['only_avail'])) {\n $condition .= db_quote(\" AND a.status = ?s\", 'A');\n }\n\n if (!empty($params['q'])) {\n $condition .= db_quote(\" AND b.state LIKE ?l\", '%' . $params['q'] . '%');\n }\n\n if (!empty($params['country_code'])) {\n $condition .= db_quote(\" AND a.country_code = ?s\", $params['country_code']);\n }\n\n $limit = '';\n if (!empty($params['items_per_page'])) {\n $params['total_items'] = db_get_field(\"SELECT count(*) FROM ?:states as a WHERE ?p\", $condition);\n $limit = db_paginate($params['page'], $params['items_per_page'], $params['total_items']);\n }\n\n $states = db_get_array(\n \"SELECT \" . implode(', ', $fields) . \" FROM ?:states as a \" .\n \"LEFT JOIN ?:state_descriptions as b ON b.state_id = a.state_id AND b.lang_code = ?s \" .\n \"LEFT JOIN ?:country_descriptions as c ON c.code = a.country_code AND c.lang_code = ?s \" .\n \"WHERE ?p ORDER BY c.country, b.state $limit\",\n $lang_code, $lang_code, $condition);\n\n return array($states, $params);\n}", "title": "" }, { "docid": "7b613b117414179d6a87bbdbbfdbceba", "score": "0.49978694", "text": "public function loadStates() {\n\t\tif($this->loaded) {\n\t\t\t// only load once\n\t\t\treturn;\n\t\t}\n\n\t\t// if only one state exists, just select it now.\n\t\tif(count($this->CI->user->states) == 1) {\n\t\t\t$this->states = $this->CI->user->states;\n\t\t\t$this->selectedSet = $this->states;\n\t\t\t// select the state by default.\n\t\t\t$this->CI->user->current->state = reset($this->CI->user->states);\n\t\t\t$this->CI->user->current->account_type = $this->CI->user->current->state->account_type;\n\t\t\t$this->CI->user->current->state_set = $this->CI->user->current->state->set;\n\t\t\t$this->selectedState = $this->CI->user->current->state;\n\t\t\t// don't render anything\n\t\t\treturn;\n\t\t}\n\n\t\t// build the list of states.\n\t\t$this->buildStatesList();\n\n\t\t// check for GET vars with selected states.\n\t\t$this->updateSelectedStateSet();\n\t\t$this->updateSelectedState();\n\t\t\n\t\t// finally, update the options on this object\n\t\t$this->updateDropdownOptions();\n\n\t\t$this->loaded = TRUE;\n\t}", "title": "" }, { "docid": "1ffe111bdcff187fdc3c3bc66bf5a9be", "score": "0.4993664", "text": "public static function getStateList()\n {\n \treturn array(\n \t\tself::STATUS_VALID => 'Valid',\n \t\tself::STATUS_INVALID => 'Invalid',\n \t\tself::STATUS_MODERATE => 'Moderate',\n \t);\n }", "title": "" }, { "docid": "6118129455a936890c4bfc10f37c582c", "score": "0.4993022", "text": "public function states($provinces=false, $specificOrder=false) {\n\t\t$codes = array(\n\t\t\t'AL'=>'Alabama', \n\t\t\t'AK'=>'Alaska', \n\t\t\t'AZ'=>'Arizona', \n\t\t\t'AR'=>'Arkansas', \n\t\t\t'CA'=>'California', \n\t\t\t'CO'=>'Colorado', \n\t\t\t'CT'=>'Connecticut', \n\t\t\t'DE'=>'Delaware', \n\t\t\t'DC'=>'District Of Columbia', \n\t\t\t'FL'=>'Florida', \n\t\t\t'GA'=>'Georgia', \n\t\t\t'HI'=>'Hawaii', \n\t\t\t'ID'=>'Idaho', \n\t\t\t'IL'=>'Illinois', \n\t\t\t'IN'=>'Indiana', \n\t\t\t'IA'=>'Iowa', \n\t\t\t'KS'=>'Kansas', \n\t\t\t'KY'=>'Kentucky', \n\t\t\t'LA'=>'Louisiana', \n\t\t\t'ME'=>'Maine', \n\t\t\t'MD'=>'Maryland', \n\t\t\t'MA'=>'Massachusetts', \n\t\t\t'MI'=>'Michigan', \n\t\t\t'MN'=>'Minnesota', \n\t\t\t'MS'=>'Mississippi', \n\t\t\t'MO'=>'Missouri', \n\t\t\t'MT'=>'Montana',\n\t\t\t'NE'=>'Nebraska',\n\t\t\t'NV'=>'Nevada',\n\t\t\t'NH'=>'New Hampshire',\n\t\t\t'NJ'=>'New Jersey',\n\t\t\t'NM'=>'New Mexico',\n\t\t\t'NY'=>'New York',\n\t\t\t'NC'=>'North Carolina',\n\t\t\t'ND'=>'North Dakota',\n\t\t\t'OH'=>'Ohio', \n\t\t\t'OK'=>'Oklahoma', \n\t\t\t'OR'=>'Oregon', \n\t\t\t'PA'=>'Pennsylvania', \n\t\t\t'RI'=>'Rhode Island', \n\t\t\t'SC'=>'South Carolina', \n\t\t\t'SD'=>'South Dakota',\n\t\t\t'TN'=>'Tennessee', \n\t\t\t'TX'=>'Texas', \n\t\t\t'UT'=>'Utah', \n\t\t\t'VT'=>'Vermont', \n\t\t\t'VA'=>'Virginia', \n\t\t\t'WA'=>'Washington', \n\t\t\t'WV'=>'West Virginia', \n\t\t\t'WI'=>'Wisconsin', \n\t\t\t'WY'=>'Wyoming'\n\t\t);\n\t\t\n\t\tif($specificOrder) {\n\t\t\t$codes = $this->_sortArrayByArray($codes, $specificOrder);\n\t\t}\n\t\t\n\t\tif($provinces) {\n\t\t\t$states = $codes;\n\t\t\t$codes = array();\n\t\t\t$codes['State'] = $states;\n\t\t\t$codes['Province'] = array(\n\t\t\t\t\"AB\" => \"Alberta\",\n\t\t\t\t\"BC\" => \"British Columbia\",\n\t\t\t\t\"MB\" => \"Manitoba\",\n\t\t\t\t\"NB\" => \"New Burnswick\",\n\t\t\t\t\"NL\" => \"Newfoundland and Labrador\",\n\t\t\t\t\"NS\" => \"Nova Scotia\",\n\t\t\t\t\"NT\" => \"Northwest Territories\",\n\t\t\t\t\"NU\" => \"Nunavut\",\n\t\t\t\t\"ON\" => \"Ontario\",\n\t\t\t\t\"PE\" => \"Prince Edward Island\",\n\t\t\t\t\"QC\" => \"Quebec\",\n\t\t\t\t\"SK\" => \"Saskatchewan\",\n\t\t\t\t\"YT\" => \"Yukon\"\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $codes;\n\t}", "title": "" }, { "docid": "8c0cd2dc13c69e4debecfe135262a779", "score": "0.49671566", "text": "public function getStates()\n {\n if (self::$_states === null) {\n self::$_states = [\n self::STATE_OPEN => __('Pending'),\n self::STATE_PAID => __('Paid'),\n self::STATE_CANCELED => __('Canceled'),\n self::STATE_REFUND => __('Refund'),\n self::STATE_REFUNDED => __('Refunded'),\n ];\n }\n return self::$_states;\n }", "title": "" }, { "docid": "a94e31fceb9dd42503109307dd111ec8", "score": "0.49561456", "text": "public static function actionGetStates(){\n return ArrayHelper::map(States::find()->all(), 'id', 'name');\n }", "title": "" }, { "docid": "b6a263de9db5eb277f822a1905e050a2", "score": "0.49528423", "text": "public function getAllowedStates(string $state): array;", "title": "" }, { "docid": "f7c3198553f571ff171287d4b2e77808", "score": "0.49512923", "text": "public function getAllStates($withLabels = true)\n {\n $states = array(\n self::STATE_UNKNOWN => Mage::helper('sales')->__('Not Initialized'), \n self::STATE_PENDING => Mage::helper('sales')->__('Pending'), \n self::STATE_ACTIVE => Mage::helper('sales')->__('Active'),\n self::STATE_SUSPENDED => Mage::helper('sales')->__('Suspended'),\n self::STATE_CANCELED => Mage::helper('xpaymentsconnector')->__('Finished'), \n self::STATE_EXPIRED => Mage::helper('sales')->__('Canceled'), \n self::STATE_FINISHED => Mage::helper('sales')->__('Expired'),\n );\n\n return $withLabels\n ? $states\n : array_keys($states);\n }", "title": "" }, { "docid": "3da3878346305a13c103e721d462ed90", "score": "0.49391112", "text": "function getStatesList($search_type = 'store') {\n\t\t$_query = \"SELECT id, `stateName`, `description` \\n\".\n\t\t\"FROM `\". $this->table .\"state` \\n\".\n\t\t\"ORDER BY `description` ASC\";\n\n\t\t$this->dbcon->execute_query($_query);\n\t\t$statesList = $this->dbcon->fetch_records(true);\n\n\t\tif ($search_type != '' && $search_type != 'store' && is_array($statesList)) {\n\t\t\tarray_unshift($statesList, array('id'=>'-1','stateName'=>'-1','description'=>'All'));\n\t\t}\n\t\treturn $statesList;\n\t}", "title": "" }, { "docid": "3790018a65331108135661e5547cde90", "score": "0.49331525", "text": "function get_states($code = TRUE)\r\n\t{\r\n\t\t$states = array(\r\n\t\t\t'AL'=>\"Alabama\", \r\n\t\t\t'AK'=>\"Alaska\", \r\n\t\t\t'AZ'=>\"Arizona\", \r\n\t\t\t'AR'=>\"Arkansas\", \r\n\t\t\t'CA'=>\"California\", \r\n\t\t\t'CO'=>\"Colorado\", \r\n\t\t\t'CT'=>\"Connecticut\", \r\n\t\t\t'DE'=>\"Delaware\", \r\n\t\t\t'DC'=>\"District Of Columbia\", \r\n\t\t\t'FL'=>\"Florida\", \r\n\t\t\t'GA'=>\"Georgia\", \r\n\t\t\t'HI'=>\"Hawaii\", \r\n\t\t\t'ID'=>\"Idaho\", \r\n\t\t\t'IL'=>\"Illinois\", \r\n\t\t\t'IN'=>\"Indiana\", \r\n\t\t\t'IA'=>\"Iowa\", \r\n\t\t\t'KS'=>\"Kansas\", \r\n\t\t\t'KY'=>\"Kentucky\", \r\n\t\t\t'LA'=>\"Louisiana\", \r\n\t\t\t'ME'=>\"Maine\", \r\n\t\t\t'MD'=>\"Maryland\", \r\n\t\t\t'MA'=>\"Massachusetts\", \r\n\t\t\t'MI'=>\"Michigan\", \r\n\t\t\t'MN'=>\"Minnesota\", \r\n\t\t\t'MS'=>\"Mississippi\", \r\n\t\t\t'MO'=>\"Missouri\", \r\n\t\t\t'MT'=>\"Montana\",\r\n\t\t\t'NE'=>\"Nebraska\",\r\n\t\t\t'NV'=>\"Nevada\",\r\n\t\t\t'NH'=>\"New Hampshire\",\r\n\t\t\t'NJ'=>\"New Jersey\",\r\n\t\t\t'NM'=>\"New Mexico\",\r\n\t\t\t'NY'=>\"New York\",\r\n\t\t\t'NC'=>\"North Carolina\",\r\n\t\t\t'ND'=>\"North Dakota\",\r\n\t\t\t'OH'=>\"Ohio\", \r\n\t\t\t'OK'=>\"Oklahoma\", \r\n\t\t\t'OR'=>\"Oregon\", \r\n\t\t\t'PA'=>\"Pennsylvania\", \r\n\t\t\t'RI'=>\"Rhode Island\", \r\n\t\t\t'SC'=>\"South Carolina\", \r\n\t\t\t'SD'=>\"South Dakota\",\r\n\t\t\t'TN'=>\"Tennessee\", \r\n\t\t\t'TX'=>\"Texas\", \r\n\t\t\t'UT'=>\"Utah\", \r\n\t\t\t'VT'=>\"Vermont\", \r\n\t\t\t'VA'=>\"Virginia\", \r\n\t\t\t'WA'=>\"Washington\", \r\n\t\t\t'WV'=>\"West Virginia\", \r\n\t\t\t'WI'=>\"Wisconsin\", \r\n\t\t\t'WY'=>\"Wyoming\"\r\n\t\t);\r\n\t\t\r\n\t\tif (!$code) :\r\n\t\t\t$states = array_combine(array_values($states), $states);\r\n\t\tendif;\r\n\t\treturn $states;\r\n\t}", "title": "" }, { "docid": "a4ee318a5f9bc764e497071537a9708a", "score": "0.49305123", "text": "public function statesArray($variable) {\n return [\n 'required' => [\n ':input[name=\"' . $variable . '\"]' => ['checked' => TRUE],\n ],\n 'invisible' => [\n ':input[name=\"' . $variable . '\"]' => ['checked' => FALSE],\n ],\n ];\n }", "title": "" }, { "docid": "81c253d086c1c5ab9b0e36b741f9132e", "score": "0.49271658", "text": "public function testFindStates() {\n $states1 = $this->stateRepository->getStatesPairs(1);\n $states2 = $this->stateRepository->getStatesPairs(2);\n $states3 = $this->stateRepository->getStatesPairs(3);\n\n $this->assertNotEmpty($states1);\n $this->assertIsArray($states1);\n $this->assertCount(4, $states1);\n\n $this->assertNotEmpty($states2);\n $this->assertIsArray($states2);\n $this->assertCount(5, $states2);\n\n $this->assertEmpty($states3);\n $this->assertIsArray($states3);\n $this->assertCount(0, $states3);\n }", "title": "" }, { "docid": "319c5fc274d2916036d11935d2a775c9", "score": "0.49076346", "text": "protected function get_all_states() {\n\t\t$states = get_post_stati( array( 'show_in_admin_all_list' => true ) );\n\t\t$states['trash'] = 'trash';\n\n\t\tif ( ! empty( $_GET['post_status'] ) ) {\n\t\t\t$requested_state = sanitize_text_field( $_GET['post_status'] );\n\t\t\tif ( in_array( $requested_state, $states, true ) ) {\n\t\t\t\t$states = array( $requested_state );\n\t\t\t}\n\n\t\t\tif ( $requested_state !== 'trash' ) {\n\t\t\t\tunset( $states['trash'] );\n\t\t\t}\n\t\t}\n\n\t\t$states = esc_sql( $states );\n\t\t$all_states = \"'\" . implode( \"', '\", $states ) . \"'\";\n\n\t\treturn $all_states;\n\t}", "title": "" }, { "docid": "254609eaeaaa0f5f554f13ef86f0c91b", "score": "0.48989633", "text": "public function run()\n {\n \t$cities = array(\n \t array('id' => '1','state_id' => '1','name' => 'Bombuflat'),\n \t array('id' => '2','state_id' => '1','name' => 'Garacharma'),\n \t array('id' => '3','state_id' => '1','name' => 'Port Blair'),\n \t array('id' => '4','state_id' => '1','name' => 'Rangat'),\n \t array('id' => '5','state_id' => '2','name' => 'Addanki'),\n \t array('id' => '6','state_id' => '2','name' => 'Adivivaram'),\n \t array('id' => '7','state_id' => '2','name' => 'Adoni'),\n \t array('id' => '8','state_id' => '2','name' => 'Aganampudi'),\n \t array('id' => '9','state_id' => '2','name' => 'Ajjaram'),\n \t array('id' => '10','state_id' => '2','name' => 'Akividu'),\n \t array('id' => '11','state_id' => '2','name' => 'Akkarampalle'),\n \t array('id' => '12','state_id' => '2','name' => 'Akkayapalle'),\n \t array('id' => '13','state_id' => '2','name' => 'Akkireddipalem'),\n \t array('id' => '14','state_id' => '2','name' => 'Alampur'),\n \t array('id' => '15','state_id' => '2','name' => 'Amalapuram'),\n \t array('id' => '16','state_id' => '2','name' => 'Amudalavalasa'),\n \t array('id' => '17','state_id' => '2','name' => 'Amur'),\n \t array('id' => '18','state_id' => '2','name' => 'Anakapalle'),\n \t array('id' => '19','state_id' => '2','name' => 'Anantapur'),\n \t array('id' => '20','state_id' => '2','name' => 'Andole'),\n \t array('id' => '21','state_id' => '2','name' => 'Atmakur'),\n \t array('id' => '22','state_id' => '2','name' => 'Attili'),\n \t array('id' => '23','state_id' => '2','name' => 'Avanigadda'),\n \t array('id' => '24','state_id' => '2','name' => 'Badepalli'),\n \t array('id' => '25','state_id' => '2','name' => 'Badvel'),\n \t array('id' => '26','state_id' => '2','name' => 'Balapur'),\n \t array('id' => '27','state_id' => '2','name' => 'Bandarulanka'),\n \t array('id' => '28','state_id' => '2','name' => 'Banganapalle'),\n \t array('id' => '29','state_id' => '2','name' => 'Bapatla'),\n \t array('id' => '30','state_id' => '2','name' => 'Bapulapadu'),\n \t array('id' => '31','state_id' => '2','name' => 'Belampalli'),\n \t array('id' => '32','state_id' => '2','name' => 'Bestavaripeta'),\n \t array('id' => '33','state_id' => '2','name' => 'Betamcherla'),\n \t array('id' => '34','state_id' => '2','name' => 'Bhattiprolu'),\n \t array('id' => '35','state_id' => '2','name' => 'Bhimavaram'),\n \t array('id' => '36','state_id' => '2','name' => 'Bhimunipatnam'),\n \t array('id' => '37','state_id' => '2','name' => 'Bobbili'),\n \t array('id' => '38','state_id' => '2','name' => 'Bombuflat'),\n \t array('id' => '39','state_id' => '2','name' => 'Bommuru'),\n \t array('id' => '40','state_id' => '2','name' => 'Bugganipalle'),\n \t array('id' => '41','state_id' => '2','name' => 'Challapalle'),\n \t array('id' => '42','state_id' => '2','name' => 'Chandur'),\n \t array('id' => '43','state_id' => '2','name' => 'Chatakonda'),\n \t array('id' => '44','state_id' => '2','name' => 'Chemmumiahpet'),\n \t array('id' => '45','state_id' => '2','name' => 'Chidiga'),\n \t array('id' => '46','state_id' => '2','name' => 'Chilakaluripet'),\n \t array('id' => '47','state_id' => '2','name' => 'Chimakurthy'),\n \t array('id' => '48','state_id' => '2','name' => 'Chinagadila'),\n \t array('id' => '49','state_id' => '2','name' => 'Chinagantyada'),\n \t array('id' => '50','state_id' => '2','name' => 'Chinnachawk'),\n \t array('id' => '51','state_id' => '2','name' => 'Chintalavalasa'),\n \t array('id' => '52','state_id' => '2','name' => 'Chipurupalle'),\n \t array('id' => '53','state_id' => '2','name' => 'Chirala'),\n \t array('id' => '54','state_id' => '2','name' => 'Chittoor'),\n \t array('id' => '55','state_id' => '2','name' => 'Chodavaram'),\n \t array('id' => '56','state_id' => '2','name' => 'Choutuppal'),\n \t array('id' => '57','state_id' => '2','name' => 'Chunchupalle'),\n \t array('id' => '58','state_id' => '2','name' => 'Cuddapah'),\n \t array('id' => '59','state_id' => '2','name' => 'Cumbum'),\n \t array('id' => '60','state_id' => '2','name' => 'Darnakal'),\n \t array('id' => '61','state_id' => '2','name' => 'Dasnapur'),\n \t array('id' => '62','state_id' => '2','name' => 'Dauleshwaram'),\n \t array('id' => '63','state_id' => '2','name' => 'Dharmavaram'),\n \t array('id' => '64','state_id' => '2','name' => 'Dhone'),\n \t array('id' => '65','state_id' => '2','name' => 'Dommara Nandyal'),\n \t array('id' => '66','state_id' => '2','name' => 'Dowlaiswaram'),\n \t array('id' => '67','state_id' => '2','name' => 'East Godavari Dist.'),\n \t array('id' => '68','state_id' => '2','name' => 'Eddumailaram'),\n \t array('id' => '69','state_id' => '2','name' => 'Edulapuram'),\n \t array('id' => '70','state_id' => '2','name' => 'Ekambara kuppam'),\n \t array('id' => '71','state_id' => '2','name' => 'Eluru'),\n \t array('id' => '72','state_id' => '2','name' => 'Enikapadu'),\n \t array('id' => '73','state_id' => '2','name' => 'Fakirtakya'),\n \t array('id' => '74','state_id' => '2','name' => 'Farrukhnagar'),\n \t array('id' => '75','state_id' => '2','name' => 'Gaddiannaram'),\n \t array('id' => '76','state_id' => '2','name' => 'Gajapathinagaram'),\n \t array('id' => '77','state_id' => '2','name' => 'Gajularega'),\n \t array('id' => '78','state_id' => '2','name' => 'Gajuvaka'),\n \t array('id' => '79','state_id' => '2','name' => 'Gannavaram'),\n \t array('id' => '80','state_id' => '2','name' => 'Garacharma'),\n \t array('id' => '81','state_id' => '2','name' => 'Garimellapadu'),\n \t array('id' => '82','state_id' => '2','name' => 'Giddalur'),\n \t array('id' => '83','state_id' => '2','name' => 'Godavarikhani'),\n \t array('id' => '84','state_id' => '2','name' => 'Gopalapatnam'),\n \t array('id' => '85','state_id' => '2','name' => 'Gopalur'),\n \t array('id' => '86','state_id' => '2','name' => 'Gorrekunta'),\n \t array('id' => '87','state_id' => '2','name' => 'Gudivada'),\n \t array('id' => '88','state_id' => '2','name' => 'Gudur'),\n \t array('id' => '89','state_id' => '2','name' => 'Guntakal'),\n \t array('id' => '90','state_id' => '2','name' => 'Guntur'),\n \t array('id' => '91','state_id' => '2','name' => 'Guti'),\n \t array('id' => '92','state_id' => '2','name' => 'Hindupur'),\n \t array('id' => '93','state_id' => '2','name' => 'Hukumpeta'),\n \t array('id' => '94','state_id' => '2','name' => 'Ichchapuram'),\n \t array('id' => '95','state_id' => '2','name' => 'Isnapur'),\n \t array('id' => '96','state_id' => '2','name' => 'Jaggayyapeta'),\n \t array('id' => '97','state_id' => '2','name' => 'Jallaram Kamanpur'),\n \t array('id' => '98','state_id' => '2','name' => 'Jammalamadugu'),\n \t array('id' => '99','state_id' => '2','name' => 'Jangampalli'),\n \t array('id' => '100','state_id' => '2','name' => 'Jarjapupeta'),\n \t array('id' => '101','state_id' => '2','name' => 'Kadiri'),\n \t array('id' => '102','state_id' => '2','name' => 'Kaikalur'),\n \t array('id' => '103','state_id' => '2','name' => 'Kakinada'),\n \t array('id' => '104','state_id' => '2','name' => 'Kallur'),\n \t array('id' => '105','state_id' => '2','name' => 'Kalyandurg'),\n \t array('id' => '106','state_id' => '2','name' => 'Kamalapuram'),\n \t array('id' => '107','state_id' => '2','name' => 'Kamareddi'),\n \t array('id' => '108','state_id' => '2','name' => 'Kanapaka'),\n \t array('id' => '109','state_id' => '2','name' => 'Kanigiri'),\n \t array('id' => '110','state_id' => '2','name' => 'Kanithi'),\n \t array('id' => '111','state_id' => '2','name' => 'Kankipadu'),\n \t array('id' => '112','state_id' => '2','name' => 'Kantabamsuguda'),\n \t array('id' => '113','state_id' => '2','name' => 'Kanuru'),\n \t array('id' => '114','state_id' => '2','name' => 'Karnul'),\n \t array('id' => '115','state_id' => '2','name' => 'Katheru'),\n \t array('id' => '116','state_id' => '2','name' => 'Kavali'),\n \t array('id' => '117','state_id' => '2','name' => 'Kazipet'),\n \t array('id' => '118','state_id' => '2','name' => 'Khanapuram Haveli'),\n \t array('id' => '119','state_id' => '2','name' => 'Kodar'),\n \t array('id' => '120','state_id' => '2','name' => 'Kollapur'),\n \t array('id' => '121','state_id' => '2','name' => 'Kondapalem'),\n \t array('id' => '122','state_id' => '2','name' => 'Kondapalle'),\n \t array('id' => '123','state_id' => '2','name' => 'Kondukur'),\n \t array('id' => '124','state_id' => '2','name' => 'Kosgi'),\n \t array('id' => '125','state_id' => '2','name' => 'Kothavalasa'),\n \t array('id' => '126','state_id' => '2','name' => 'Kottapalli'),\n \t array('id' => '127','state_id' => '2','name' => 'Kovur'),\n \t array('id' => '128','state_id' => '2','name' => 'Kovurpalle'),\n \t array('id' => '129','state_id' => '2','name' => 'Kovvur'),\n \t array('id' => '130','state_id' => '2','name' => 'Krishna'),\n \t array('id' => '131','state_id' => '2','name' => 'Kuppam'),\n \t array('id' => '132','state_id' => '2','name' => 'Kurmannapalem'),\n \t array('id' => '133','state_id' => '2','name' => 'Kurnool'),\n \t array('id' => '134','state_id' => '2','name' => 'Lakshettipet'),\n \t array('id' => '135','state_id' => '2','name' => 'Lalbahadur Nagar'),\n \t array('id' => '136','state_id' => '2','name' => 'Machavaram'),\n \t array('id' => '137','state_id' => '2','name' => 'Macherla'),\n \t array('id' => '138','state_id' => '2','name' => 'Machilipatnam'),\n \t array('id' => '139','state_id' => '2','name' => 'Madanapalle'),\n \t array('id' => '140','state_id' => '2','name' => 'Madaram'),\n \t array('id' => '141','state_id' => '2','name' => 'Madhuravada'),\n \t array('id' => '142','state_id' => '2','name' => 'Madikonda'),\n \t array('id' => '143','state_id' => '2','name' => 'Madugule'),\n \t array('id' => '144','state_id' => '2','name' => 'Mahabubnagar'),\n \t array('id' => '145','state_id' => '2','name' => 'Mahbubabad'),\n \t array('id' => '146','state_id' => '2','name' => 'Malkajgiri'),\n \t array('id' => '147','state_id' => '2','name' => 'Mamilapalle'),\n \t array('id' => '148','state_id' => '2','name' => 'Mancheral'),\n \t array('id' => '149','state_id' => '2','name' => 'Mandapeta'),\n \t array('id' => '150','state_id' => '2','name' => 'Mandasa'),\n \t array('id' => '151','state_id' => '2','name' => 'Mangalagiri'),\n \t array('id' => '152','state_id' => '2','name' => 'Manthani'),\n \t array('id' => '153','state_id' => '2','name' => 'Markapur'),\n \t array('id' => '154','state_id' => '2','name' => 'Marturu'),\n \t array('id' => '155','state_id' => '2','name' => 'Metpalli'),\n \t array('id' => '156','state_id' => '2','name' => 'Mindi'),\n \t array('id' => '157','state_id' => '2','name' => 'Mirpet'),\n \t array('id' => '158','state_id' => '2','name' => 'Moragudi'),\n \t array('id' => '159','state_id' => '2','name' => 'Mothugudam'),\n \t array('id' => '160','state_id' => '2','name' => 'Nagari'),\n \t array('id' => '161','state_id' => '2','name' => 'Nagireddipalle'),\n \t array('id' => '162','state_id' => '2','name' => 'Nandigama'),\n \t array('id' => '163','state_id' => '2','name' => 'Nandikotkur'),\n \t array('id' => '164','state_id' => '2','name' => 'Nandyal'),\n \t array('id' => '165','state_id' => '2','name' => 'Narasannapeta'),\n \t array('id' => '166','state_id' => '2','name' => 'Narasapur'),\n \t array('id' => '167','state_id' => '2','name' => 'Narasaraopet'),\n \t array('id' => '168','state_id' => '2','name' => 'Narayanavanam'),\n \t array('id' => '169','state_id' => '2','name' => 'Narsapur'),\n \t array('id' => '170','state_id' => '2','name' => 'Narsingi'),\n \t array('id' => '171','state_id' => '2','name' => 'Narsipatnam'),\n \t array('id' => '172','state_id' => '2','name' => 'Naspur'),\n \t array('id' => '173','state_id' => '2','name' => 'Nathayyapalem'),\n \t array('id' => '174','state_id' => '2','name' => 'Nayudupeta'),\n \t array('id' => '175','state_id' => '2','name' => 'Nelimaria'),\n \t array('id' => '176','state_id' => '2','name' => 'Nellore'),\n \t array('id' => '177','state_id' => '2','name' => 'Nidadavole'),\n \t array('id' => '178','state_id' => '2','name' => 'Nuzvid'),\n \t array('id' => '179','state_id' => '2','name' => 'Omerkhan daira'),\n \t array('id' => '180','state_id' => '2','name' => 'Ongole'),\n \t array('id' => '181','state_id' => '2','name' => 'Osmania University'),\n \t array('id' => '182','state_id' => '2','name' => 'Pakala'),\n \t array('id' => '183','state_id' => '2','name' => 'Palakole'),\n \t array('id' => '184','state_id' => '2','name' => 'Palakurthi'),\n \t array('id' => '185','state_id' => '2','name' => 'Palasa'),\n \t array('id' => '186','state_id' => '2','name' => 'Palempalle'),\n \t array('id' => '187','state_id' => '2','name' => 'Palkonda'),\n \t array('id' => '188','state_id' => '2','name' => 'Palmaner'),\n \t array('id' => '189','state_id' => '2','name' => 'Pamur'),\n \t array('id' => '190','state_id' => '2','name' => 'Panjim'),\n \t array('id' => '191','state_id' => '2','name' => 'Papampeta'),\n \t array('id' => '192','state_id' => '2','name' => 'Parasamba'),\n \t array('id' => '193','state_id' => '2','name' => 'Parvatipuram'),\n \t array('id' => '194','state_id' => '2','name' => 'Patancheru'),\n \t array('id' => '195','state_id' => '2','name' => 'Payakaraopet'),\n \t array('id' => '196','state_id' => '2','name' => 'Pedagantyada'),\n \t array('id' => '197','state_id' => '2','name' => 'Pedana'),\n \t array('id' => '198','state_id' => '2','name' => 'Peddapuram'),\n \t array('id' => '199','state_id' => '2','name' => 'Pendurthi'),\n \t array('id' => '200','state_id' => '2','name' => 'Penugonda'),\n \t array('id' => '201','state_id' => '2','name' => 'Penukonda'),\n \t array('id' => '202','state_id' => '2','name' => 'Phirangipuram'),\n \t array('id' => '203','state_id' => '2','name' => 'Pithapuram'),\n \t array('id' => '204','state_id' => '2','name' => 'Ponnur'),\n \t array('id' => '205','state_id' => '2','name' => 'Port Blair'),\n \t array('id' => '206','state_id' => '2','name' => 'Pothinamallayyapalem'),\n \t array('id' => '207','state_id' => '2','name' => 'Prakasam'),\n \t array('id' => '208','state_id' => '2','name' => 'Prasadampadu'),\n \t array('id' => '209','state_id' => '2','name' => 'Prasantinilayam'),\n \t array('id' => '210','state_id' => '2','name' => 'Proddatur'),\n \t array('id' => '211','state_id' => '2','name' => 'Pulivendla'),\n \t array('id' => '212','state_id' => '2','name' => 'Punganuru'),\n \t array('id' => '213','state_id' => '2','name' => 'Puttur'),\n \t array('id' => '214','state_id' => '2','name' => 'Qutubullapur'),\n \t array('id' => '215','state_id' => '2','name' => 'Rajahmundry'),\n \t array('id' => '216','state_id' => '2','name' => 'Rajamahendri'),\n \t array('id' => '217','state_id' => '2','name' => 'Rajampet'),\n \t array('id' => '218','state_id' => '2','name' => 'Rajendranagar'),\n \t array('id' => '219','state_id' => '2','name' => 'Rajoli'),\n \t array('id' => '220','state_id' => '2','name' => 'Ramachandrapuram'),\n \t array('id' => '221','state_id' => '2','name' => 'Ramanayyapeta'),\n \t array('id' => '222','state_id' => '2','name' => 'Ramapuram'),\n \t array('id' => '223','state_id' => '2','name' => 'Ramarajupalli'),\n \t array('id' => '224','state_id' => '2','name' => 'Ramavarappadu'),\n \t array('id' => '225','state_id' => '2','name' => 'Rameswaram'),\n \t array('id' => '226','state_id' => '2','name' => 'Rampachodavaram'),\n \t array('id' => '227','state_id' => '2','name' => 'Ravulapalam'),\n \t array('id' => '228','state_id' => '2','name' => 'Rayachoti'),\n \t array('id' => '229','state_id' => '2','name' => 'Rayadrug'),\n \t array('id' => '230','state_id' => '2','name' => 'Razam'),\n \t array('id' => '231','state_id' => '2','name' => 'Razole'),\n \t array('id' => '232','state_id' => '2','name' => 'Renigunta'),\n \t array('id' => '233','state_id' => '2','name' => 'Repalle'),\n \t array('id' => '234','state_id' => '2','name' => 'Rishikonda'),\n \t array('id' => '235','state_id' => '2','name' => 'Salur'),\n \t array('id' => '236','state_id' => '2','name' => 'Samalkot'),\n \t array('id' => '237','state_id' => '2','name' => 'Sattenapalle'),\n \t array('id' => '238','state_id' => '2','name' => 'Seetharampuram'),\n \t array('id' => '239','state_id' => '2','name' => 'Serilungampalle'),\n \t array('id' => '240','state_id' => '2','name' => 'Shankarampet'),\n \t array('id' => '241','state_id' => '2','name' => 'Shar'),\n \t array('id' => '242','state_id' => '2','name' => 'Singarayakonda'),\n \t array('id' => '243','state_id' => '2','name' => 'Sirpur'),\n \t array('id' => '244','state_id' => '2','name' => 'Sirsilla'),\n \t array('id' => '245','state_id' => '2','name' => 'Sompeta'),\n \t array('id' => '246','state_id' => '2','name' => 'Sriharikota'),\n \t array('id' => '247','state_id' => '2','name' => 'Srikakulam'),\n \t array('id' => '248','state_id' => '2','name' => 'Srikalahasti'),\n \t array('id' => '249','state_id' => '2','name' => 'Sriramnagar'),\n \t array('id' => '250','state_id' => '2','name' => 'Sriramsagar'),\n \t array('id' => '251','state_id' => '2','name' => 'Srisailam'),\n \t array('id' => '252','state_id' => '2','name' => 'Srisailamgudem Devasthanam'),\n \t array('id' => '253','state_id' => '2','name' => 'Sulurpeta'),\n \t array('id' => '254','state_id' => '2','name' => 'Suriapet'),\n \t array('id' => '255','state_id' => '2','name' => 'Suryaraopet'),\n \t array('id' => '256','state_id' => '2','name' => 'Tadepalle'),\n \t array('id' => '257','state_id' => '2','name' => 'Tadepalligudem'),\n \t array('id' => '258','state_id' => '2','name' => 'Tadpatri'),\n \t array('id' => '259','state_id' => '2','name' => 'Tallapalle'),\n \t array('id' => '260','state_id' => '2','name' => 'Tanuku'),\n \t array('id' => '261','state_id' => '2','name' => 'Tekkali'),\n \t array('id' => '262','state_id' => '2','name' => 'Tenali'),\n \t array('id' => '263','state_id' => '2','name' => 'Tigalapahad'),\n \t array('id' => '264','state_id' => '2','name' => 'Tiruchanur'),\n \t array('id' => '265','state_id' => '2','name' => 'Tirumala'),\n \t array('id' => '266','state_id' => '2','name' => 'Tirupati'),\n \t array('id' => '267','state_id' => '2','name' => 'Tirvuru'),\n \t array('id' => '268','state_id' => '2','name' => 'Trimulgherry'),\n \t array('id' => '269','state_id' => '2','name' => 'Tuni'),\n \t array('id' => '270','state_id' => '2','name' => 'Turangi'),\n \t array('id' => '271','state_id' => '2','name' => 'Ukkayapalli'),\n \t array('id' => '272','state_id' => '2','name' => 'Ukkunagaram'),\n \t array('id' => '273','state_id' => '2','name' => 'Uppal Kalan'),\n \t array('id' => '274','state_id' => '2','name' => 'Upper Sileru'),\n \t array('id' => '275','state_id' => '2','name' => 'Uravakonda'),\n \t array('id' => '276','state_id' => '2','name' => 'Vadlapudi'),\n \t array('id' => '277','state_id' => '2','name' => 'Vaparala'),\n \t array('id' => '278','state_id' => '2','name' => 'Vemalwada'),\n \t array('id' => '279','state_id' => '2','name' => 'Venkatagiri'),\n \t array('id' => '280','state_id' => '2','name' => 'Venkatapuram'),\n \t array('id' => '281','state_id' => '2','name' => 'Vepagunta'),\n \t array('id' => '282','state_id' => '2','name' => 'Vetapalem'),\n \t array('id' => '283','state_id' => '2','name' => 'Vijayapuri'),\n \t array('id' => '284','state_id' => '2','name' => 'Vijayapuri South'),\n \t array('id' => '285','state_id' => '2','name' => 'Vijayawada'),\n \t array('id' => '286','state_id' => '2','name' => 'Vinukonda'),\n \t array('id' => '287','state_id' => '2','name' => 'Visakhapatnam'),\n \t array('id' => '288','state_id' => '2','name' => 'Vizianagaram'),\n \t array('id' => '289','state_id' => '2','name' => 'Vuyyuru'),\n \t array('id' => '290','state_id' => '2','name' => 'Wanparti'),\n \t array('id' => '291','state_id' => '2','name' => 'West Godavari Dist.'),\n \t array('id' => '292','state_id' => '2','name' => 'Yadagirigutta'),\n \t array('id' => '293','state_id' => '2','name' => 'Yarada'),\n \t array('id' => '294','state_id' => '2','name' => 'Yellamanchili'),\n \t array('id' => '295','state_id' => '2','name' => 'Yemmiganur'),\n \t array('id' => '296','state_id' => '2','name' => 'Yenamalakudru'),\n \t array('id' => '297','state_id' => '2','name' => 'Yendada'),\n \t array('id' => '298','state_id' => '2','name' => 'Yerraguntla'),\n \t array('id' => '299','state_id' => '3','name' => 'Along'),\n \t array('id' => '300','state_id' => '3','name' => 'Basar'),\n \t array('id' => '301','state_id' => '3','name' => 'Bondila'),\n \t array('id' => '302','state_id' => '3','name' => 'Changlang'),\n \t array('id' => '303','state_id' => '3','name' => 'Daporijo'),\n \t array('id' => '304','state_id' => '3','name' => 'Deomali'),\n \t array('id' => '305','state_id' => '3','name' => 'Itanagar'),\n \t array('id' => '306','state_id' => '3','name' => 'Jairampur'),\n \t array('id' => '307','state_id' => '3','name' => 'Khonsa'),\n \t array('id' => '308','state_id' => '3','name' => 'Naharlagun'),\n \t array('id' => '309','state_id' => '3','name' => 'Namsai'),\n \t array('id' => '310','state_id' => '3','name' => 'Pasighat'),\n \t array('id' => '311','state_id' => '3','name' => 'Roing'),\n \t array('id' => '312','state_id' => '3','name' => 'Seppa'),\n \t array('id' => '313','state_id' => '3','name' => 'Tawang'),\n \t array('id' => '314','state_id' => '3','name' => 'Tezu'),\n \t array('id' => '315','state_id' => '3','name' => 'Ziro'),\n \t array('id' => '316','state_id' => '4','name' => 'Abhayapuri'),\n \t array('id' => '317','state_id' => '4','name' => 'Ambikapur'),\n \t array('id' => '318','state_id' => '4','name' => 'Amguri'),\n \t array('id' => '319','state_id' => '4','name' => 'Anand Nagar'),\n \t array('id' => '320','state_id' => '4','name' => 'Badarpur'),\n \t array('id' => '321','state_id' => '4','name' => 'Badarpur Railway Town'),\n \t array('id' => '322','state_id' => '4','name' => 'Bahbari Gaon'),\n \t array('id' => '323','state_id' => '4','name' => 'Bamun Sualkuchi'),\n \t array('id' => '324','state_id' => '4','name' => 'Barbari'),\n \t array('id' => '325','state_id' => '4','name' => 'Barpathar'),\n \t array('id' => '326','state_id' => '4','name' => 'Barpeta'),\n \t array('id' => '327','state_id' => '4','name' => 'Barpeta Road'),\n \t array('id' => '328','state_id' => '4','name' => 'Basugaon'),\n \t array('id' => '329','state_id' => '4','name' => 'Bihpuria'),\n \t array('id' => '330','state_id' => '4','name' => 'Bijni'),\n \t array('id' => '331','state_id' => '4','name' => 'Bilasipara'),\n \t array('id' => '332','state_id' => '4','name' => 'Biswanath Chariali'),\n \t array('id' => '333','state_id' => '4','name' => 'Bohori'),\n \t array('id' => '334','state_id' => '4','name' => 'Bokajan'),\n \t array('id' => '335','state_id' => '4','name' => 'Bokokhat'),\n \t array('id' => '336','state_id' => '4','name' => 'Bongaigaon'),\n \t array('id' => '337','state_id' => '4','name' => 'Bongaigaon Petro-chemical Town'),\n \t array('id' => '338','state_id' => '4','name' => 'Borgolai'),\n \t array('id' => '339','state_id' => '4','name' => 'Chabua'),\n \t array('id' => '340','state_id' => '4','name' => 'Chandrapur Bagicha'),\n \t array('id' => '341','state_id' => '4','name' => 'Chapar'),\n \t array('id' => '342','state_id' => '4','name' => 'Chekonidhara'),\n \t array('id' => '343','state_id' => '4','name' => 'Choto Haibor'),\n \t array('id' => '344','state_id' => '4','name' => 'Dergaon'),\n \t array('id' => '345','state_id' => '4','name' => 'Dharapur'),\n \t array('id' => '346','state_id' => '4','name' => 'Dhekiajuli'),\n \t array('id' => '347','state_id' => '4','name' => 'Dhemaji'),\n \t array('id' => '348','state_id' => '4','name' => 'Dhing'),\n \t array('id' => '349','state_id' => '4','name' => 'Dhubri'),\n \t array('id' => '350','state_id' => '4','name' => 'Dhuburi'),\n \t array('id' => '351','state_id' => '4','name' => 'Dibrugarh'),\n \t array('id' => '352','state_id' => '4','name' => 'Digboi'),\n \t array('id' => '353','state_id' => '4','name' => 'Digboi Oil Town'),\n \t array('id' => '354','state_id' => '4','name' => 'Dimaruguri'),\n \t array('id' => '355','state_id' => '4','name' => 'Diphu'),\n \t array('id' => '356','state_id' => '4','name' => 'Dispur'),\n \t array('id' => '357','state_id' => '4','name' => 'Doboka'),\n \t array('id' => '358','state_id' => '4','name' => 'Dokmoka'),\n \t array('id' => '359','state_id' => '4','name' => 'Donkamokan'),\n \t array('id' => '360','state_id' => '4','name' => 'Duliagaon'),\n \t array('id' => '361','state_id' => '4','name' => 'Duliajan'),\n \t array('id' => '362','state_id' => '4','name' => 'Duliajan No.1'),\n \t array('id' => '363','state_id' => '4','name' => 'Dum Duma'),\n \t array('id' => '364','state_id' => '4','name' => 'Durga Nagar'),\n \t array('id' => '365','state_id' => '4','name' => 'Gauripur'),\n \t array('id' => '366','state_id' => '4','name' => 'Goalpara'),\n \t array('id' => '367','state_id' => '4','name' => 'Gohpur'),\n \t array('id' => '368','state_id' => '4','name' => 'Golaghat'),\n \t array('id' => '369','state_id' => '4','name' => 'Golakganj'),\n \t array('id' => '370','state_id' => '4','name' => 'Gossaigaon'),\n \t array('id' => '371','state_id' => '4','name' => 'Guwahati'),\n \t array('id' => '372','state_id' => '4','name' => 'Haflong'),\n \t array('id' => '373','state_id' => '4','name' => 'Hailakandi'),\n \t array('id' => '374','state_id' => '4','name' => 'Hamren'),\n \t array('id' => '375','state_id' => '4','name' => 'Hauli'),\n \t array('id' => '376','state_id' => '4','name' => 'Hauraghat'),\n \t array('id' => '377','state_id' => '4','name' => 'Hojai'),\n \t array('id' => '378','state_id' => '4','name' => 'Jagiroad'),\n \t array('id' => '379','state_id' => '4','name' => 'Jagiroad Paper Mill'),\n \t array('id' => '380','state_id' => '4','name' => 'Jogighopa'),\n \t array('id' => '381','state_id' => '4','name' => 'Jonai Bazar'),\n \t array('id' => '382','state_id' => '4','name' => 'Jorhat'),\n \t array('id' => '383','state_id' => '4','name' => 'Kampur Town'),\n \t array('id' => '384','state_id' => '4','name' => 'Kamrup'),\n \t array('id' => '385','state_id' => '4','name' => 'Kanakpur'),\n \t array('id' => '386','state_id' => '4','name' => 'Karimganj'),\n \t array('id' => '387','state_id' => '4','name' => 'Kharijapikon'),\n \t array('id' => '388','state_id' => '4','name' => 'Kharupetia'),\n \t array('id' => '389','state_id' => '4','name' => 'Kochpara'),\n \t array('id' => '390','state_id' => '4','name' => 'Kokrajhar'),\n \t array('id' => '391','state_id' => '4','name' => 'Kumar Kaibarta Gaon'),\n \t array('id' => '392','state_id' => '4','name' => 'Lakhimpur'),\n \t array('id' => '393','state_id' => '4','name' => 'Lakhipur'),\n \t array('id' => '394','state_id' => '4','name' => 'Lala'),\n \t array('id' => '395','state_id' => '4','name' => 'Lanka'),\n \t array('id' => '396','state_id' => '4','name' => 'Lido Tikok'),\n \t array('id' => '397','state_id' => '4','name' => 'Lido Town'),\n \t array('id' => '398','state_id' => '4','name' => 'Lumding'),\n \t array('id' => '399','state_id' => '4','name' => 'Lumding Railway Colony'),\n \t array('id' => '400','state_id' => '4','name' => 'Mahur'),\n \t array('id' => '401','state_id' => '4','name' => 'Maibong'),\n \t array('id' => '402','state_id' => '4','name' => 'Majgaon'),\n \t array('id' => '403','state_id' => '4','name' => 'Makum'),\n \t array('id' => '404','state_id' => '4','name' => 'Mangaldai'),\n \t array('id' => '405','state_id' => '4','name' => 'Mankachar'),\n \t array('id' => '406','state_id' => '4','name' => 'Margherita'),\n \t array('id' => '407','state_id' => '4','name' => 'Mariani'),\n \t array('id' => '408','state_id' => '4','name' => 'Marigaon'),\n \t array('id' => '409','state_id' => '4','name' => 'Moran'),\n \t array('id' => '410','state_id' => '4','name' => 'Moranhat'),\n \t array('id' => '411','state_id' => '4','name' => 'Nagaon'),\n \t array('id' => '412','state_id' => '4','name' => 'Naharkatia'),\n \t array('id' => '413','state_id' => '4','name' => 'Nalbari'),\n \t array('id' => '414','state_id' => '4','name' => 'Namrup'),\n \t array('id' => '415','state_id' => '4','name' => 'Naubaisa Gaon'),\n \t array('id' => '416','state_id' => '4','name' => 'Nazira'),\n \t array('id' => '417','state_id' => '4','name' => 'New Bongaigaon Railway Colony'),\n \t array('id' => '418','state_id' => '4','name' => 'Niz-Hajo'),\n \t array('id' => '419','state_id' => '4','name' => 'North Guwahati'),\n \t array('id' => '420','state_id' => '4','name' => 'Numaligarh'),\n \t array('id' => '421','state_id' => '4','name' => 'Palasbari'),\n \t array('id' => '422','state_id' => '4','name' => 'Panchgram'),\n \t array('id' => '423','state_id' => '4','name' => 'Pathsala'),\n \t array('id' => '424','state_id' => '4','name' => 'Raha'),\n \t array('id' => '425','state_id' => '4','name' => 'Rangapara'),\n \t array('id' => '426','state_id' => '4','name' => 'Rangia'),\n \t array('id' => '427','state_id' => '4','name' => 'Salakati'),\n \t array('id' => '428','state_id' => '4','name' => 'Sapatgram'),\n \t array('id' => '429','state_id' => '4','name' => 'Sarthebari'),\n \t array('id' => '430','state_id' => '4','name' => 'Sarupathar'),\n \t array('id' => '431','state_id' => '4','name' => 'Sarupathar Bengali'),\n \t array('id' => '432','state_id' => '4','name' => 'Senchoagaon'),\n \t array('id' => '433','state_id' => '4','name' => 'Sibsagar'),\n \t array('id' => '434','state_id' => '4','name' => 'Silapathar'),\n \t array('id' => '435','state_id' => '4','name' => 'Silchar'),\n \t array('id' => '436','state_id' => '4','name' => 'Silchar Part-X'),\n \t array('id' => '437','state_id' => '4','name' => 'Sonari'),\n \t array('id' => '438','state_id' => '4','name' => 'Sorbhog'),\n \t array('id' => '439','state_id' => '4','name' => 'Sualkuchi'),\n \t array('id' => '440','state_id' => '4','name' => 'Tangla'),\n \t array('id' => '441','state_id' => '4','name' => 'Tezpur'),\n \t array('id' => '442','state_id' => '4','name' => 'Tihu'),\n \t array('id' => '443','state_id' => '4','name' => 'Tinsukia'),\n \t array('id' => '444','state_id' => '4','name' => 'Titabor'),\n \t array('id' => '445','state_id' => '4','name' => 'Udalguri'),\n \t array('id' => '446','state_id' => '4','name' => 'Umrangso'),\n \t array('id' => '447','state_id' => '4','name' => 'Uttar Krishnapur Part-I'),\n \t array('id' => '448','state_id' => '5','name' => 'Amarpur'),\n \t array('id' => '449','state_id' => '5','name' => 'Ara'),\n \t array('id' => '450','state_id' => '5','name' => 'Araria'),\n \t array('id' => '451','state_id' => '5','name' => 'Areraj'),\n \t array('id' => '452','state_id' => '5','name' => 'Asarganj'),\n \t array('id' => '453','state_id' => '5','name' => 'Aurangabad'),\n \t array('id' => '454','state_id' => '5','name' => 'Bagaha'),\n \t array('id' => '455','state_id' => '5','name' => 'Bahadurganj'),\n \t array('id' => '456','state_id' => '5','name' => 'Bairgania'),\n \t array('id' => '457','state_id' => '5','name' => 'Bakhtiyarpur'),\n \t array('id' => '458','state_id' => '5','name' => 'Banka'),\n \t array('id' => '459','state_id' => '5','name' => 'Banmankhi'),\n \t array('id' => '460','state_id' => '5','name' => 'Bar Bigha'),\n \t array('id' => '461','state_id' => '5','name' => 'Barauli'),\n \t array('id' => '462','state_id' => '5','name' => 'Barauni Oil Township'),\n \t array('id' => '463','state_id' => '5','name' => 'Barh'),\n \t array('id' => '464','state_id' => '5','name' => 'Barhiya'),\n \t array('id' => '465','state_id' => '5','name' => 'Bariapur'),\n \t array('id' => '466','state_id' => '5','name' => 'Baruni'),\n \t array('id' => '467','state_id' => '5','name' => 'Begusarai'),\n \t array('id' => '468','state_id' => '5','name' => 'Behea'),\n \t array('id' => '469','state_id' => '5','name' => 'Belsand'),\n \t array('id' => '470','state_id' => '5','name' => 'Bettiah'),\n \t array('id' => '471','state_id' => '5','name' => 'Bhabua'),\n \t array('id' => '472','state_id' => '5','name' => 'Bhagalpur'),\n \t array('id' => '473','state_id' => '5','name' => 'Bhimnagar'),\n \t array('id' => '474','state_id' => '5','name' => 'Bhojpur'),\n \t array('id' => '475','state_id' => '5','name' => 'Bihar'),\n \t array('id' => '476','state_id' => '5','name' => 'Bihar Sharif'),\n \t array('id' => '477','state_id' => '5','name' => 'Bihariganj'),\n \t array('id' => '478','state_id' => '5','name' => 'Bikramganj'),\n \t array('id' => '479','state_id' => '5','name' => 'Birpur'),\n \t array('id' => '480','state_id' => '5','name' => 'Bodh Gaya'),\n \t array('id' => '481','state_id' => '5','name' => 'Buxar'),\n \t array('id' => '482','state_id' => '5','name' => 'Chakia'),\n \t array('id' => '483','state_id' => '5','name' => 'Chanpatia'),\n \t array('id' => '484','state_id' => '5','name' => 'Chhapra'),\n \t array('id' => '485','state_id' => '5','name' => 'Chhatapur'),\n \t array('id' => '486','state_id' => '5','name' => 'Colgong'),\n \t array('id' => '487','state_id' => '5','name' => 'Dalsingh Sarai'),\n \t array('id' => '488','state_id' => '5','name' => 'Darbhanga'),\n \t array('id' => '489','state_id' => '5','name' => 'Daudnagar'),\n \t array('id' => '490','state_id' => '5','name' => 'Dehri'),\n \t array('id' => '491','state_id' => '5','name' => 'Dhaka'),\n \t array('id' => '492','state_id' => '5','name' => 'Dighwara'),\n \t array('id' => '493','state_id' => '5','name' => 'Dinapur'),\n \t array('id' => '494','state_id' => '5','name' => 'Dinapur Cantonment'),\n \t array('id' => '495','state_id' => '5','name' => 'Dumra'),\n \t array('id' => '496','state_id' => '5','name' => 'Dumraon'),\n \t array('id' => '497','state_id' => '5','name' => 'Fatwa'),\n \t array('id' => '498','state_id' => '5','name' => 'Forbesganj'),\n \t array('id' => '499','state_id' => '5','name' => 'Gaya'),\n \t array('id' => '500','state_id' => '5','name' => 'Gazipur'),\n \t array('id' => '501','state_id' => '5','name' => 'Ghoghardiha'),\n \t array('id' => '502','state_id' => '5','name' => 'Gogri Jamalpur'),\n \t array('id' => '503','state_id' => '5','name' => 'Gopalganj'),\n \t array('id' => '504','state_id' => '5','name' => 'Habibpur'),\n \t array('id' => '505','state_id' => '5','name' => 'Hajipur'),\n \t array('id' => '506','state_id' => '5','name' => 'Hasanpur'),\n \t array('id' => '507','state_id' => '5','name' => 'Hazaribagh'),\n \t array('id' => '508','state_id' => '5','name' => 'Hilsa'),\n \t array('id' => '509','state_id' => '5','name' => 'Hisua'),\n \t array('id' => '510','state_id' => '5','name' => 'Islampur'),\n \t array('id' => '511','state_id' => '5','name' => 'Jagdispur'),\n \t array('id' => '512','state_id' => '5','name' => 'Jahanabad'),\n \t array('id' => '513','state_id' => '5','name' => 'Jamalpur'),\n \t array('id' => '514','state_id' => '5','name' => 'Jamhaur'),\n \t array('id' => '515','state_id' => '5','name' => 'Jamui'),\n \t array('id' => '516','state_id' => '5','name' => 'Janakpur Road'),\n \t array('id' => '517','state_id' => '5','name' => 'Janpur'),\n \t array('id' => '518','state_id' => '5','name' => 'Jaynagar'),\n \t array('id' => '519','state_id' => '5','name' => 'Jha Jha'),\n \t array('id' => '520','state_id' => '5','name' => 'Jhanjharpur'),\n \t array('id' => '521','state_id' => '5','name' => 'Jogbani'),\n \t array('id' => '522','state_id' => '5','name' => 'Kanti'),\n \t array('id' => '523','state_id' => '5','name' => 'Kasba'),\n \t array('id' => '524','state_id' => '5','name' => 'Kataiya'),\n \t array('id' => '525','state_id' => '5','name' => 'Katihar'),\n \t array('id' => '526','state_id' => '5','name' => 'Khagaria'),\n \t array('id' => '527','state_id' => '5','name' => 'Khagaul'),\n \t array('id' => '528','state_id' => '5','name' => 'Kharagpur'),\n \t array('id' => '529','state_id' => '5','name' => 'Khusrupur'),\n \t array('id' => '530','state_id' => '5','name' => 'Kishanganj'),\n \t array('id' => '531','state_id' => '5','name' => 'Koath'),\n \t array('id' => '532','state_id' => '5','name' => 'Koilwar'),\n \t array('id' => '533','state_id' => '5','name' => 'Lakhisarai'),\n \t array('id' => '534','state_id' => '5','name' => 'Lalganj'),\n \t array('id' => '535','state_id' => '5','name' => 'Lauthaha'),\n \t array('id' => '536','state_id' => '5','name' => 'Madhepura'),\n \t array('id' => '537','state_id' => '5','name' => 'Madhubani'),\n \t array('id' => '538','state_id' => '5','name' => 'Maharajganj'),\n \t array('id' => '539','state_id' => '5','name' => 'Mahnar Bazar'),\n \t array('id' => '540','state_id' => '5','name' => 'Mairwa'),\n \t array('id' => '541','state_id' => '5','name' => 'Makhdumpur'),\n \t array('id' => '542','state_id' => '5','name' => 'Maner'),\n \t array('id' => '543','state_id' => '5','name' => 'Manihari'),\n \t array('id' => '544','state_id' => '5','name' => 'Marhaura'),\n \t array('id' => '545','state_id' => '5','name' => 'Masaurhi'),\n \t array('id' => '546','state_id' => '5','name' => 'Mirganj'),\n \t array('id' => '547','state_id' => '5','name' => 'Mohiuddinagar'),\n \t array('id' => '548','state_id' => '5','name' => 'Mokama'),\n \t array('id' => '549','state_id' => '5','name' => 'Motihari'),\n \t array('id' => '550','state_id' => '5','name' => 'Motipur'),\n \t array('id' => '551','state_id' => '5','name' => 'Munger'),\n \t array('id' => '552','state_id' => '5','name' => 'Murliganj'),\n \t array('id' => '553','state_id' => '5','name' => 'Muzaffarpur'),\n \t array('id' => '554','state_id' => '5','name' => 'Nabinagar'),\n \t array('id' => '555','state_id' => '5','name' => 'Narkatiaganj'),\n \t array('id' => '556','state_id' => '5','name' => 'Nasriganj'),\n \t array('id' => '557','state_id' => '5','name' => 'Natwar'),\n \t array('id' => '558','state_id' => '5','name' => 'Naugachhia'),\n \t array('id' => '559','state_id' => '5','name' => 'Nawada'),\n \t array('id' => '560','state_id' => '5','name' => 'Nirmali'),\n \t array('id' => '561','state_id' => '5','name' => 'Nokha'),\n \t array('id' => '562','state_id' => '5','name' => 'Paharpur'),\n \t array('id' => '563','state_id' => '5','name' => 'Patna'),\n \t array('id' => '564','state_id' => '5','name' => 'Phulwari'),\n \t array('id' => '565','state_id' => '5','name' => 'Piro'),\n \t array('id' => '566','state_id' => '5','name' => 'Purnia'),\n \t array('id' => '567','state_id' => '5','name' => 'Pusa'),\n \t array('id' => '568','state_id' => '5','name' => 'Rafiganj'),\n \t array('id' => '569','state_id' => '5','name' => 'Raghunathpur'),\n \t array('id' => '570','state_id' => '5','name' => 'Rajgir'),\n \t array('id' => '571','state_id' => '5','name' => 'Ramnagar'),\n \t array('id' => '572','state_id' => '5','name' => 'Raxaul'),\n \t array('id' => '573','state_id' => '5','name' => 'Revelganj'),\n \t array('id' => '574','state_id' => '5','name' => 'Rusera'),\n \t array('id' => '575','state_id' => '5','name' => 'Sagauli'),\n \t array('id' => '576','state_id' => '5','name' => 'Saharsa'),\n \t array('id' => '577','state_id' => '5','name' => 'Samastipur'),\n \t array('id' => '578','state_id' => '5','name' => 'Sasaram'),\n \t array('id' => '579','state_id' => '5','name' => 'Shahpur'),\n \t array('id' => '580','state_id' => '5','name' => 'Shaikhpura'),\n \t array('id' => '581','state_id' => '5','name' => 'Sherghati'),\n \t array('id' => '582','state_id' => '5','name' => 'Shivhar'),\n \t array('id' => '583','state_id' => '5','name' => 'Silao'),\n \t array('id' => '584','state_id' => '5','name' => 'Sitamarhi'),\n \t array('id' => '585','state_id' => '5','name' => 'Siwan'),\n \t array('id' => '586','state_id' => '5','name' => 'Sonepur'),\n \t array('id' => '587','state_id' => '5','name' => 'Sultanganj'),\n \t array('id' => '588','state_id' => '5','name' => 'Supaul'),\n \t array('id' => '589','state_id' => '5','name' => 'Teghra'),\n \t array('id' => '590','state_id' => '5','name' => 'Tekari'),\n \t array('id' => '591','state_id' => '5','name' => 'Thakurganj'),\n \t array('id' => '592','state_id' => '5','name' => 'Vaishali'),\n \t array('id' => '593','state_id' => '5','name' => 'Waris Aliganj'),\n \t array('id' => '594','state_id' => '6','name' => 'Chandigarh'),\n \t array('id' => '595','state_id' => '7','name' => 'Ahiwara'),\n \t array('id' => '596','state_id' => '7','name' => 'Akaltara'),\n \t array('id' => '597','state_id' => '7','name' => 'Ambagarh Chauki'),\n \t array('id' => '598','state_id' => '7','name' => 'Ambikapur'),\n \t array('id' => '599','state_id' => '7','name' => 'Arang'),\n \t array('id' => '600','state_id' => '7','name' => 'Bade Bacheli'),\n \t array('id' => '601','state_id' => '7','name' => 'Bagbahara'),\n \t array('id' => '602','state_id' => '7','name' => 'Baikunthpur'),\n \t array('id' => '603','state_id' => '7','name' => 'Balod'),\n \t array('id' => '604','state_id' => '7','name' => 'Baloda'),\n \t array('id' => '605','state_id' => '7','name' => 'Baloda Bazar'),\n \t array('id' => '606','state_id' => '7','name' => 'Banarsi'),\n \t array('id' => '607','state_id' => '7','name' => 'Basna'),\n \t array('id' => '608','state_id' => '7','name' => 'Bemetra'),\n \t array('id' => '609','state_id' => '7','name' => 'Bhanpuri'),\n \t array('id' => '610','state_id' => '7','name' => 'Bhatapara'),\n \t array('id' => '611','state_id' => '7','name' => 'Bhatgaon'),\n \t array('id' => '612','state_id' => '7','name' => 'Bhilai'),\n \t array('id' => '613','state_id' => '7','name' => 'Bilaspur'),\n \t array('id' => '614','state_id' => '7','name' => 'Bilha'),\n \t array('id' => '615','state_id' => '7','name' => 'Birgaon'),\n \t array('id' => '616','state_id' => '7','name' => 'Bodri'),\n \t array('id' => '617','state_id' => '7','name' => 'Champa'),\n \t array('id' => '618','state_id' => '7','name' => 'Charcha'),\n \t array('id' => '619','state_id' => '7','name' => 'Charoda'),\n \t array('id' => '620','state_id' => '7','name' => 'Chhuikhadan'),\n \t array('id' => '621','state_id' => '7','name' => 'Chirmiri'),\n \t array('id' => '622','state_id' => '7','name' => 'Dantewada'),\n \t array('id' => '623','state_id' => '7','name' => 'Deori'),\n \t array('id' => '624','state_id' => '7','name' => 'Dhamdha'),\n \t array('id' => '625','state_id' => '7','name' => 'Dhamtari'),\n \t array('id' => '626','state_id' => '7','name' => 'Dharamjaigarh'),\n \t array('id' => '627','state_id' => '7','name' => 'Dipka'),\n \t array('id' => '628','state_id' => '7','name' => 'Doman Hill Colliery'),\n \t array('id' => '629','state_id' => '7','name' => 'Dongargaon'),\n \t array('id' => '630','state_id' => '7','name' => 'Dongragarh'),\n \t array('id' => '631','state_id' => '7','name' => 'Durg'),\n \t array('id' => '632','state_id' => '7','name' => 'Frezarpur'),\n \t array('id' => '633','state_id' => '7','name' => 'Gandai'),\n \t array('id' => '634','state_id' => '7','name' => 'Gariaband'),\n \t array('id' => '635','state_id' => '7','name' => 'Gaurela'),\n \t array('id' => '636','state_id' => '7','name' => 'Gelhapani'),\n \t array('id' => '637','state_id' => '7','name' => 'Gharghoda'),\n \t array('id' => '638','state_id' => '7','name' => 'Gidam'),\n \t array('id' => '639','state_id' => '7','name' => 'Gobra Nawapara'),\n \t array('id' => '640','state_id' => '7','name' => 'Gogaon'),\n \t array('id' => '641','state_id' => '7','name' => 'Hatkachora'),\n \t array('id' => '642','state_id' => '7','name' => 'Jagdalpur'),\n \t array('id' => '643','state_id' => '7','name' => 'Jamui'),\n \t array('id' => '644','state_id' => '7','name' => 'Jashpurnagar'),\n \t array('id' => '645','state_id' => '7','name' => 'Jhagrakhand'),\n \t array('id' => '646','state_id' => '7','name' => 'Kanker'),\n \t array('id' => '647','state_id' => '7','name' => 'Katghora'),\n \t array('id' => '648','state_id' => '7','name' => 'Kawardha'),\n \t array('id' => '649','state_id' => '7','name' => 'Khairagarh'),\n \t array('id' => '650','state_id' => '7','name' => 'Khamhria'),\n \t array('id' => '651','state_id' => '7','name' => 'Kharod'),\n \t array('id' => '652','state_id' => '7','name' => 'Kharsia'),\n \t array('id' => '653','state_id' => '7','name' => 'Khonga Pani'),\n \t array('id' => '654','state_id' => '7','name' => 'Kirandu'),\n \t array('id' => '655','state_id' => '7','name' => 'Kirandul'),\n \t array('id' => '656','state_id' => '7','name' => 'Kohka'),\n \t array('id' => '657','state_id' => '7','name' => 'Kondagaon'),\n \t array('id' => '658','state_id' => '7','name' => 'Korba'),\n \t array('id' => '659','state_id' => '7','name' => 'Korea'),\n \t array('id' => '660','state_id' => '7','name' => 'Koria Block'),\n \t array('id' => '661','state_id' => '7','name' => 'Kota'),\n \t array('id' => '662','state_id' => '7','name' => 'Kumhari'),\n \t array('id' => '663','state_id' => '7','name' => 'Kumud Katta'),\n \t array('id' => '664','state_id' => '7','name' => 'Kurasia'),\n \t array('id' => '665','state_id' => '7','name' => 'Kurud'),\n \t array('id' => '666','state_id' => '7','name' => 'Lingiyadih'),\n \t array('id' => '667','state_id' => '7','name' => 'Lormi'),\n \t array('id' => '668','state_id' => '7','name' => 'Mahasamund'),\n \t array('id' => '669','state_id' => '7','name' => 'Mahendragarh'),\n \t array('id' => '670','state_id' => '7','name' => 'Mehmand'),\n \t array('id' => '671','state_id' => '7','name' => 'Mongra'),\n \t array('id' => '672','state_id' => '7','name' => 'Mowa'),\n \t array('id' => '673','state_id' => '7','name' => 'Mungeli'),\n \t array('id' => '674','state_id' => '7','name' => 'Nailajanjgir'),\n \t array('id' => '675','state_id' => '7','name' => 'Namna Kalan'),\n \t array('id' => '676','state_id' => '7','name' => 'Naya Baradwar'),\n \t array('id' => '677','state_id' => '7','name' => 'Pandariya'),\n \t array('id' => '678','state_id' => '7','name' => 'Patan'),\n \t array('id' => '679','state_id' => '7','name' => 'Pathalgaon'),\n \t array('id' => '680','state_id' => '7','name' => 'Pendra'),\n \t array('id' => '681','state_id' => '7','name' => 'Phunderdihari'),\n \t array('id' => '682','state_id' => '7','name' => 'Pithora'),\n \t array('id' => '683','state_id' => '7','name' => 'Raigarh'),\n \t array('id' => '684','state_id' => '7','name' => 'Raipur'),\n \t array('id' => '685','state_id' => '7','name' => 'Rajgamar'),\n \t array('id' => '686','state_id' => '7','name' => 'Rajhara'),\n \t array('id' => '687','state_id' => '7','name' => 'Rajnandgaon'),\n \t array('id' => '688','state_id' => '7','name' => 'Ramanuj Ganj'),\n \t array('id' => '689','state_id' => '7','name' => 'Ratanpur'),\n \t array('id' => '690','state_id' => '7','name' => 'Sakti'),\n \t array('id' => '691','state_id' => '7','name' => 'Saraipali'),\n \t array('id' => '692','state_id' => '7','name' => 'Sarajpur'),\n \t array('id' => '693','state_id' => '7','name' => 'Sarangarh'),\n \t array('id' => '694','state_id' => '7','name' => 'Shivrinarayan'),\n \t array('id' => '695','state_id' => '7','name' => 'Simga'),\n \t array('id' => '696','state_id' => '7','name' => 'Sirgiti'),\n \t array('id' => '697','state_id' => '7','name' => 'Takhatpur'),\n \t array('id' => '698','state_id' => '7','name' => 'Telgaon'),\n \t array('id' => '699','state_id' => '7','name' => 'Tildanewra'),\n \t array('id' => '700','state_id' => '7','name' => 'Urla'),\n \t array('id' => '701','state_id' => '7','name' => 'Vishrampur'),\n \t array('id' => '702','state_id' => '8','name' => 'Amli'),\n \t array('id' => '703','state_id' => '8','name' => 'Silvassa'),\n \t array('id' => '704','state_id' => '9','name' => 'Daman'),\n \t array('id' => '705','state_id' => '9','name' => 'Diu'),\n \t array('id' => '706','state_id' => '10','name' => 'Delhi'),\n \t array('id' => '707','state_id' => '10','name' => 'New Delhi'),\n \t array('id' => '708','state_id' => '11','name' => 'Aldona'),\n \t array('id' => '709','state_id' => '11','name' => 'Altinho'),\n \t array('id' => '710','state_id' => '11','name' => 'Aquem'),\n \t array('id' => '711','state_id' => '11','name' => 'Arpora'),\n \t array('id' => '712','state_id' => '11','name' => 'Bambolim'),\n \t array('id' => '713','state_id' => '11','name' => 'Bandora'),\n \t array('id' => '714','state_id' => '11','name' => 'Bardez'),\n \t array('id' => '715','state_id' => '11','name' => 'Benaulim'),\n \t array('id' => '716','state_id' => '11','name' => 'Betora'),\n \t array('id' => '717','state_id' => '11','name' => 'Bicholim'),\n \t array('id' => '718','state_id' => '11','name' => 'Calapor'),\n \t array('id' => '719','state_id' => '11','name' => 'Candolim'),\n \t array('id' => '720','state_id' => '11','name' => 'Caranzalem'),\n \t array('id' => '721','state_id' => '11','name' => 'Carapur'),\n \t array('id' => '722','state_id' => '11','name' => 'Chicalim'),\n \t array('id' => '723','state_id' => '11','name' => 'Chimbel'),\n \t array('id' => '724','state_id' => '11','name' => 'Chinchinim'),\n \t array('id' => '725','state_id' => '11','name' => 'Colvale'),\n \t array('id' => '726','state_id' => '11','name' => 'Corlim'),\n \t array('id' => '727','state_id' => '11','name' => 'Cortalim'),\n \t array('id' => '728','state_id' => '11','name' => 'Cuncolim'),\n \t array('id' => '729','state_id' => '11','name' => 'Curchorem'),\n \t array('id' => '730','state_id' => '11','name' => 'Curti'),\n \t array('id' => '731','state_id' => '11','name' => 'Davorlim'),\n \t array('id' => '732','state_id' => '11','name' => 'Dona Paula'),\n \t array('id' => '733','state_id' => '11','name' => 'Goa'),\n \t array('id' => '734','state_id' => '11','name' => 'Guirim'),\n \t array('id' => '735','state_id' => '11','name' => 'Jua'),\n \t array('id' => '736','state_id' => '11','name' => 'Kalangat'),\n \t array('id' => '737','state_id' => '11','name' => 'Kankon'),\n \t array('id' => '738','state_id' => '11','name' => 'Kundaim'),\n \t array('id' => '739','state_id' => '11','name' => 'Loutulim'),\n \t array('id' => '740','state_id' => '11','name' => 'Madgaon'),\n \t array('id' => '741','state_id' => '11','name' => 'Mapusa'),\n \t array('id' => '742','state_id' => '11','name' => 'Margao'),\n \t array('id' => '743','state_id' => '11','name' => 'Margaon'),\n \t array('id' => '744','state_id' => '11','name' => 'Miramar'),\n \t array('id' => '745','state_id' => '11','name' => 'Morjim'),\n \t array('id' => '746','state_id' => '11','name' => 'Mormugao'),\n \t array('id' => '747','state_id' => '11','name' => 'Navelim'),\n \t array('id' => '748','state_id' => '11','name' => 'Pale'),\n \t array('id' => '749','state_id' => '11','name' => 'Panaji'),\n \t array('id' => '750','state_id' => '11','name' => 'Parcem'),\n \t array('id' => '751','state_id' => '11','name' => 'Parra'),\n \t array('id' => '752','state_id' => '11','name' => 'Penha de Franca'),\n \t array('id' => '753','state_id' => '11','name' => 'Pernem'),\n \t array('id' => '754','state_id' => '11','name' => 'Pilerne'),\n \t array('id' => '755','state_id' => '11','name' => 'Pissurlem'),\n \t array('id' => '756','state_id' => '11','name' => 'Ponda'),\n \t array('id' => '757','state_id' => '11','name' => 'Porvorim'),\n \t array('id' => '758','state_id' => '11','name' => 'Quepem'),\n \t array('id' => '759','state_id' => '11','name' => 'Queula'),\n \t array('id' => '760','state_id' => '11','name' => 'Raia'),\n \t array('id' => '761','state_id' => '11','name' => 'Reis Magos'),\n \t array('id' => '762','state_id' => '11','name' => 'Salcette'),\n \t array('id' => '763','state_id' => '11','name' => 'Saligao'),\n \t array('id' => '764','state_id' => '11','name' => 'Sancoale'),\n \t array('id' => '765','state_id' => '11','name' => 'Sanguem'),\n \t array('id' => '766','state_id' => '11','name' => 'Sanquelim'),\n \t array('id' => '767','state_id' => '11','name' => 'Sanvordem'),\n \t array('id' => '768','state_id' => '11','name' => 'Sao Jose-de-Areal'),\n \t array('id' => '769','state_id' => '11','name' => 'Sattari'),\n \t array('id' => '770','state_id' => '11','name' => 'Serula'),\n \t array('id' => '771','state_id' => '11','name' => 'Sinquerim'),\n \t array('id' => '772','state_id' => '11','name' => 'Siolim'),\n \t array('id' => '773','state_id' => '11','name' => 'Taleigao'),\n \t array('id' => '774','state_id' => '11','name' => 'Tivim'),\n \t array('id' => '775','state_id' => '11','name' => 'Valpoi'),\n \t array('id' => '776','state_id' => '11','name' => 'Varca'),\n \t array('id' => '777','state_id' => '11','name' => 'Vasco'),\n \t array('id' => '778','state_id' => '11','name' => 'Verna'),\n \t array('id' => '779','state_id' => '12','name' => 'Abrama'),\n \t array('id' => '780','state_id' => '12','name' => 'Adalaj'),\n \t array('id' => '781','state_id' => '12','name' => 'Adityana'),\n \t array('id' => '782','state_id' => '12','name' => 'Advana'),\n \t array('id' => '783','state_id' => '12','name' => 'Ahmedabad'),\n \t array('id' => '784','state_id' => '12','name' => 'Ahwa'),\n \t array('id' => '785','state_id' => '12','name' => 'Alang'),\n \t array('id' => '786','state_id' => '12','name' => 'Ambaji'),\n \t array('id' => '787','state_id' => '12','name' => 'Ambaliyasan'),\n \t array('id' => '788','state_id' => '12','name' => 'Amod'),\n \t array('id' => '789','state_id' => '12','name' => 'Amreli'),\n \t array('id' => '790','state_id' => '12','name' => 'Amroli'),\n \t array('id' => '791','state_id' => '12','name' => 'Anand'),\n \t array('id' => '792','state_id' => '12','name' => 'Andada'),\n \t array('id' => '793','state_id' => '12','name' => 'Anjar'),\n \t array('id' => '794','state_id' => '12','name' => 'Anklav'),\n \t array('id' => '795','state_id' => '12','name' => 'Ankleshwar'),\n \t array('id' => '796','state_id' => '12','name' => 'Anklesvar INA'),\n \t array('id' => '797','state_id' => '12','name' => 'Antaliya'),\n \t array('id' => '798','state_id' => '12','name' => 'Arambhada'),\n \t array('id' => '799','state_id' => '12','name' => 'Asarma'),\n \t array('id' => '800','state_id' => '12','name' => 'Atul'),\n \t array('id' => '801','state_id' => '12','name' => 'Babra'),\n \t array('id' => '802','state_id' => '12','name' => 'Bag-e-Firdosh'),\n \t array('id' => '803','state_id' => '12','name' => 'Bagasara'),\n \t array('id' => '804','state_id' => '12','name' => 'Bahadarpar'),\n \t array('id' => '805','state_id' => '12','name' => 'Bajipura'),\n \t array('id' => '806','state_id' => '12','name' => 'Bajva'),\n \t array('id' => '807','state_id' => '12','name' => 'Balasinor'),\n \t array('id' => '808','state_id' => '12','name' => 'Banaskantha'),\n \t array('id' => '809','state_id' => '12','name' => 'Bansda'),\n \t array('id' => '810','state_id' => '12','name' => 'Bantva'),\n \t array('id' => '811','state_id' => '12','name' => 'Bardoli'),\n \t array('id' => '812','state_id' => '12','name' => 'Barwala'),\n \t array('id' => '813','state_id' => '12','name' => 'Bayad'),\n \t array('id' => '814','state_id' => '12','name' => 'Bechar'),\n \t array('id' => '815','state_id' => '12','name' => 'Bedi'),\n \t array('id' => '816','state_id' => '12','name' => 'Beyt'),\n \t array('id' => '817','state_id' => '12','name' => 'Bhachau'),\n \t array('id' => '818','state_id' => '12','name' => 'Bhanvad'),\n \t array('id' => '819','state_id' => '12','name' => 'Bharuch'),\n \t array('id' => '820','state_id' => '12','name' => 'Bharuch INA'),\n \t array('id' => '821','state_id' => '12','name' => 'Bhavnagar'),\n \t array('id' => '822','state_id' => '12','name' => 'Bhayavadar'),\n \t array('id' => '823','state_id' => '12','name' => 'Bhestan'),\n \t array('id' => '824','state_id' => '12','name' => 'Bhuj'),\n \t array('id' => '825','state_id' => '12','name' => 'Bilimora'),\n \t array('id' => '826','state_id' => '12','name' => 'Bilkha'),\n \t array('id' => '827','state_id' => '12','name' => 'Billimora'),\n \t array('id' => '828','state_id' => '12','name' => 'Bodakdev'),\n \t array('id' => '829','state_id' => '12','name' => 'Bodeli'),\n \t array('id' => '830','state_id' => '12','name' => 'Bopal'),\n \t array('id' => '831','state_id' => '12','name' => 'Boria'),\n \t array('id' => '832','state_id' => '12','name' => 'Boriavi'),\n \t array('id' => '833','state_id' => '12','name' => 'Borsad'),\n \t array('id' => '834','state_id' => '12','name' => 'Botad'),\n \t array('id' => '835','state_id' => '12','name' => 'Cambay'),\n \t array('id' => '836','state_id' => '12','name' => 'Chaklasi'),\n \t array('id' => '837','state_id' => '12','name' => 'Chala'),\n \t array('id' => '838','state_id' => '12','name' => 'Chalala'),\n \t array('id' => '839','state_id' => '12','name' => 'Chalthan'),\n \t array('id' => '840','state_id' => '12','name' => 'Chanasma'),\n \t array('id' => '841','state_id' => '12','name' => 'Chandisar'),\n \t array('id' => '842','state_id' => '12','name' => 'Chandkheda'),\n \t array('id' => '843','state_id' => '12','name' => 'Chanod'),\n \t array('id' => '844','state_id' => '12','name' => 'Chaya'),\n \t array('id' => '845','state_id' => '12','name' => 'Chenpur'),\n \t array('id' => '846','state_id' => '12','name' => 'Chhapi'),\n \t array('id' => '847','state_id' => '12','name' => 'Chhaprabhatha'),\n \t array('id' => '848','state_id' => '12','name' => 'Chhatral'),\n \t array('id' => '849','state_id' => '12','name' => 'Chhota Udepur'),\n \t array('id' => '850','state_id' => '12','name' => 'Chikhli'),\n \t array('id' => '851','state_id' => '12','name' => 'Chiloda'),\n \t array('id' => '852','state_id' => '12','name' => 'Chorvad'),\n \t array('id' => '853','state_id' => '12','name' => 'Chotila'),\n \t array('id' => '854','state_id' => '12','name' => 'Dabhoi'),\n \t array('id' => '855','state_id' => '12','name' => 'Dadara'),\n \t array('id' => '856','state_id' => '12','name' => 'Dahod'),\n \t array('id' => '857','state_id' => '12','name' => 'Dakor'),\n \t array('id' => '858','state_id' => '12','name' => 'Damnagar'),\n \t array('id' => '859','state_id' => '12','name' => 'Deesa'),\n \t array('id' => '860','state_id' => '12','name' => 'Delvada'),\n \t array('id' => '861','state_id' => '12','name' => 'Devgadh Baria'),\n \t array('id' => '862','state_id' => '12','name' => 'Devsar'),\n \t array('id' => '863','state_id' => '12','name' => 'Dhandhuka'),\n \t array('id' => '864','state_id' => '12','name' => 'Dhanera'),\n \t array('id' => '865','state_id' => '12','name' => 'Dhangdhra'),\n \t array('id' => '866','state_id' => '12','name' => 'Dhansura'),\n \t array('id' => '867','state_id' => '12','name' => 'Dharampur'),\n \t array('id' => '868','state_id' => '12','name' => 'Dhari'),\n \t array('id' => '869','state_id' => '12','name' => 'Dhola'),\n \t array('id' => '870','state_id' => '12','name' => 'Dholka'),\n \t array('id' => '871','state_id' => '12','name' => 'Dholka Rural'),\n \t array('id' => '872','state_id' => '12','name' => 'Dhoraji'),\n \t array('id' => '873','state_id' => '12','name' => 'Dhrangadhra'),\n \t array('id' => '874','state_id' => '12','name' => 'Dhrol'),\n \t array('id' => '875','state_id' => '12','name' => 'Dhuva'),\n \t array('id' => '876','state_id' => '12','name' => 'Dhuwaran'),\n \t array('id' => '877','state_id' => '12','name' => 'Digvijaygram'),\n \t array('id' => '878','state_id' => '12','name' => 'Disa'),\n \t array('id' => '879','state_id' => '12','name' => 'Dungar'),\n \t array('id' => '880','state_id' => '12','name' => 'Dungarpur'),\n \t array('id' => '881','state_id' => '12','name' => 'Dungra'),\n \t array('id' => '882','state_id' => '12','name' => 'Dwarka'),\n \t array('id' => '883','state_id' => '12','name' => 'Flelanganj'),\n \t array('id' => '884','state_id' => '12','name' => 'GSFC Complex'),\n \t array('id' => '885','state_id' => '12','name' => 'Gadhda'),\n \t array('id' => '886','state_id' => '12','name' => 'Gandevi'),\n \t array('id' => '887','state_id' => '12','name' => 'Gandhidham'),\n \t array('id' => '888','state_id' => '12','name' => 'Gandhinagar'),\n \t array('id' => '889','state_id' => '12','name' => 'Gariadhar'),\n \t array('id' => '890','state_id' => '12','name' => 'Ghogha'),\n \t array('id' => '891','state_id' => '12','name' => 'Godhra'),\n \t array('id' => '892','state_id' => '12','name' => 'Gondal'),\n \t array('id' => '893','state_id' => '12','name' => 'Hajira INA'),\n \t array('id' => '894','state_id' => '12','name' => 'Halol'),\n \t array('id' => '895','state_id' => '12','name' => 'Halvad'),\n \t array('id' => '896','state_id' => '12','name' => 'Hansot'),\n \t array('id' => '897','state_id' => '12','name' => 'Harij'),\n \t array('id' => '898','state_id' => '12','name' => 'Himatnagar'),\n \t array('id' => '899','state_id' => '12','name' => 'Ichchhapor'),\n \t array('id' => '900','state_id' => '12','name' => 'Idar'),\n \t array('id' => '901','state_id' => '12','name' => 'Jafrabad'),\n \t array('id' => '902','state_id' => '12','name' => 'Jalalpore'),\n \t array('id' => '903','state_id' => '12','name' => 'Jambusar'),\n \t array('id' => '904','state_id' => '12','name' => 'Jamjodhpur'),\n \t array('id' => '905','state_id' => '12','name' => 'Jamnagar'),\n \t array('id' => '906','state_id' => '12','name' => 'Jasdan'),\n \t array('id' => '907','state_id' => '12','name' => 'Jawaharnagar'),\n \t array('id' => '908','state_id' => '12','name' => 'Jetalsar'),\n \t array('id' => '909','state_id' => '12','name' => 'Jetpur'),\n \t array('id' => '910','state_id' => '12','name' => 'Jodiya'),\n \t array('id' => '911','state_id' => '12','name' => 'Joshipura'),\n \t array('id' => '912','state_id' => '12','name' => 'Junagadh'),\n \t array('id' => '913','state_id' => '12','name' => 'Kadi'),\n \t array('id' => '914','state_id' => '12','name' => 'Kadodara'),\n \t array('id' => '915','state_id' => '12','name' => 'Kalavad'),\n \t array('id' => '916','state_id' => '12','name' => 'Kali'),\n \t array('id' => '917','state_id' => '12','name' => 'Kaliawadi'),\n \t array('id' => '918','state_id' => '12','name' => 'Kalol'),\n \t array('id' => '919','state_id' => '12','name' => 'Kalol INA'),\n \t array('id' => '920','state_id' => '12','name' => 'Kandla'),\n \t array('id' => '921','state_id' => '12','name' => 'Kanjari'),\n \t array('id' => '922','state_id' => '12','name' => 'Kanodar'),\n \t array('id' => '923','state_id' => '12','name' => 'Kapadwanj'),\n \t array('id' => '924','state_id' => '12','name' => 'Karachiya'),\n \t array('id' => '925','state_id' => '12','name' => 'Karamsad'),\n \t array('id' => '926','state_id' => '12','name' => 'Karjan'),\n \t array('id' => '927','state_id' => '12','name' => 'Kathial'),\n \t array('id' => '928','state_id' => '12','name' => 'Kathor'),\n \t array('id' => '929','state_id' => '12','name' => 'Katpar'),\n \t array('id' => '930','state_id' => '12','name' => 'Kavant'),\n \t array('id' => '931','state_id' => '12','name' => 'Keshod'),\n \t array('id' => '932','state_id' => '12','name' => 'Kevadiya'),\n \t array('id' => '933','state_id' => '12','name' => 'Khambhaliya'),\n \t array('id' => '934','state_id' => '12','name' => 'Khambhat'),\n \t array('id' => '935','state_id' => '12','name' => 'Kharaghoda'),\n \t array('id' => '936','state_id' => '12','name' => 'Khed Brahma'),\n \t array('id' => '937','state_id' => '12','name' => 'Kheda'),\n \t array('id' => '938','state_id' => '12','name' => 'Kheralu'),\n \t array('id' => '939','state_id' => '12','name' => 'Kodinar'),\n \t array('id' => '940','state_id' => '12','name' => 'Kosamba'),\n \t array('id' => '941','state_id' => '12','name' => 'Kundla'),\n \t array('id' => '942','state_id' => '12','name' => 'Kutch'),\n \t array('id' => '943','state_id' => '12','name' => 'Kutiyana'),\n \t array('id' => '944','state_id' => '12','name' => 'Lakhtar'),\n \t array('id' => '945','state_id' => '12','name' => 'Lalpur'),\n \t array('id' => '946','state_id' => '12','name' => 'Lambha'),\n \t array('id' => '947','state_id' => '12','name' => 'Lathi'),\n \t array('id' => '948','state_id' => '12','name' => 'Limbdi'),\n \t array('id' => '949','state_id' => '12','name' => 'Limla'),\n \t array('id' => '950','state_id' => '12','name' => 'Lunavada'),\n \t array('id' => '951','state_id' => '12','name' => 'Madhapar'),\n \t array('id' => '952','state_id' => '12','name' => 'Maflipur'),\n \t array('id' => '953','state_id' => '12','name' => 'Mahemdavad'),\n \t array('id' => '954','state_id' => '12','name' => 'Mahudha'),\n \t array('id' => '955','state_id' => '12','name' => 'Mahuva'),\n \t array('id' => '956','state_id' => '12','name' => 'Mahuvar'),\n \t array('id' => '957','state_id' => '12','name' => 'Makarba'),\n \t array('id' => '958','state_id' => '12','name' => 'Makarpura'),\n \t array('id' => '959','state_id' => '12','name' => 'Makassar'),\n \t array('id' => '960','state_id' => '12','name' => 'Maktampur'),\n \t array('id' => '961','state_id' => '12','name' => 'Malia'),\n \t array('id' => '962','state_id' => '12','name' => 'Malpur'),\n \t array('id' => '963','state_id' => '12','name' => 'Manavadar'),\n \t array('id' => '964','state_id' => '12','name' => 'Mandal'),\n \t array('id' => '965','state_id' => '12','name' => 'Mandvi'),\n \t array('id' => '966','state_id' => '12','name' => 'Mangrol'),\n \t array('id' => '967','state_id' => '12','name' => 'Mansa'),\n \t array('id' => '968','state_id' => '12','name' => 'Meghraj'),\n \t array('id' => '969','state_id' => '12','name' => 'Mehsana'),\n \t array('id' => '970','state_id' => '12','name' => 'Mendarla'),\n \t array('id' => '971','state_id' => '12','name' => 'Mithapur'),\n \t array('id' => '972','state_id' => '12','name' => 'Modasa'),\n \t array('id' => '973','state_id' => '12','name' => 'Mogravadi'),\n \t array('id' => '974','state_id' => '12','name' => 'Morbi'),\n \t array('id' => '975','state_id' => '12','name' => 'Morvi'),\n \t array('id' => '976','state_id' => '12','name' => 'Mundra'),\n \t array('id' => '977','state_id' => '12','name' => 'Nadiad'),\n \t array('id' => '978','state_id' => '12','name' => 'Naliya'),\n \t array('id' => '979','state_id' => '12','name' => 'Nanakvada'),\n \t array('id' => '980','state_id' => '12','name' => 'Nandej'),\n \t array('id' => '981','state_id' => '12','name' => 'Nandesari'),\n \t array('id' => '982','state_id' => '12','name' => 'Nandesari INA'),\n \t array('id' => '983','state_id' => '12','name' => 'Naroda'),\n \t array('id' => '984','state_id' => '12','name' => 'Navagadh'),\n \t array('id' => '985','state_id' => '12','name' => 'Navagam Ghed'),\n \t array('id' => '986','state_id' => '12','name' => 'Navsari'),\n \t array('id' => '987','state_id' => '12','name' => 'Ode'),\n \t array('id' => '988','state_id' => '12','name' => 'Okaf'),\n \t array('id' => '989','state_id' => '12','name' => 'Okha'),\n \t array('id' => '990','state_id' => '12','name' => 'Olpad'),\n \t array('id' => '991','state_id' => '12','name' => 'Paddhari'),\n \t array('id' => '992','state_id' => '12','name' => 'Padra'),\n \t array('id' => '993','state_id' => '12','name' => 'Palanpur'),\n \t array('id' => '994','state_id' => '12','name' => 'Palej'),\n \t array('id' => '995','state_id' => '12','name' => 'Pali'),\n \t array('id' => '996','state_id' => '12','name' => 'Palitana'),\n \t array('id' => '997','state_id' => '12','name' => 'Paliyad'),\n \t array('id' => '998','state_id' => '12','name' => 'Pandesara'),\n \t array('id' => '999','state_id' => '12','name' => 'Panoli'),\n \t array('id' => '1000','state_id' => '12','name' => 'Pardi'),\n \t array('id' => '1001','state_id' => '12','name' => 'Parnera'),\n \t array('id' => '1002','state_id' => '12','name' => 'Parvat'),\n \t array('id' => '1003','state_id' => '12','name' => 'Patan'),\n \t array('id' => '1004','state_id' => '12','name' => 'Patdi'),\n \t array('id' => '1005','state_id' => '12','name' => 'Petlad'),\n \t array('id' => '1006','state_id' => '12','name' => 'Petrochemical Complex'),\n \t array('id' => '1007','state_id' => '12','name' => 'Porbandar'),\n \t array('id' => '1008','state_id' => '12','name' => 'Prantij'),\n \t array('id' => '1009','state_id' => '12','name' => 'Radhanpur'),\n \t array('id' => '1010','state_id' => '12','name' => 'Raiya'),\n \t array('id' => '1011','state_id' => '12','name' => 'Rajkot'),\n \t array('id' => '1012','state_id' => '12','name' => 'Rajpipla'),\n \t array('id' => '1013','state_id' => '12','name' => 'Rajula'),\n \t array('id' => '1014','state_id' => '12','name' => 'Ramod'),\n \t array('id' => '1015','state_id' => '12','name' => 'Ranavav'),\n \t array('id' => '1016','state_id' => '12','name' => 'Ranoli'),\n \t array('id' => '1017','state_id' => '12','name' => 'Rapar'),\n \t array('id' => '1018','state_id' => '12','name' => 'Sahij'),\n \t array('id' => '1019','state_id' => '12','name' => 'Salaya'),\n \t array('id' => '1020','state_id' => '12','name' => 'Sanand'),\n \t array('id' => '1021','state_id' => '12','name' => 'Sankheda'),\n \t array('id' => '1022','state_id' => '12','name' => 'Santrampur'),\n \t array('id' => '1023','state_id' => '12','name' => 'Saribujrang'),\n \t array('id' => '1024','state_id' => '12','name' => 'Sarigam INA'),\n \t array('id' => '1025','state_id' => '12','name' => 'Sayan'),\n \t array('id' => '1026','state_id' => '12','name' => 'Sayla'),\n \t array('id' => '1027','state_id' => '12','name' => 'Shahpur'),\n \t array('id' => '1028','state_id' => '12','name' => 'Shahwadi'),\n \t array('id' => '1029','state_id' => '12','name' => 'Shapar'),\n \t array('id' => '1030','state_id' => '12','name' => 'Shivrajpur'),\n \t array('id' => '1031','state_id' => '12','name' => 'Siddhapur'),\n \t array('id' => '1032','state_id' => '12','name' => 'Sidhpur'),\n \t array('id' => '1033','state_id' => '12','name' => 'Sihor'),\n \t array('id' => '1034','state_id' => '12','name' => 'Sika'),\n \t array('id' => '1035','state_id' => '12','name' => 'Singarva'),\n \t array('id' => '1036','state_id' => '12','name' => 'Sinor'),\n \t array('id' => '1037','state_id' => '12','name' => 'Sojitra'),\n \t array('id' => '1038','state_id' => '12','name' => 'Sola'),\n \t array('id' => '1039','state_id' => '12','name' => 'Songadh'),\n \t array('id' => '1040','state_id' => '12','name' => 'Suraj Karadi'),\n \t array('id' => '1041','state_id' => '12','name' => 'Surat'),\n \t array('id' => '1042','state_id' => '12','name' => 'Surendranagar'),\n \t array('id' => '1043','state_id' => '12','name' => 'Talaja'),\n \t array('id' => '1044','state_id' => '12','name' => 'Talala'),\n \t array('id' => '1045','state_id' => '12','name' => 'Talod'),\n \t array('id' => '1046','state_id' => '12','name' => 'Tankara'),\n \t array('id' => '1047','state_id' => '12','name' => 'Tarsali'),\n \t array('id' => '1048','state_id' => '12','name' => 'Thangadh'),\n \t array('id' => '1049','state_id' => '12','name' => 'Tharad'),\n \t array('id' => '1050','state_id' => '12','name' => 'Thasra'),\n \t array('id' => '1051','state_id' => '12','name' => 'Udyognagar'),\n \t array('id' => '1052','state_id' => '12','name' => 'Ukai'),\n \t array('id' => '1053','state_id' => '12','name' => 'Umbergaon'),\n \t array('id' => '1054','state_id' => '12','name' => 'Umbergaon INA'),\n \t array('id' => '1055','state_id' => '12','name' => 'Umrala'),\n \t array('id' => '1056','state_id' => '12','name' => 'Umreth'),\n \t array('id' => '1057','state_id' => '12','name' => 'Un'),\n \t array('id' => '1058','state_id' => '12','name' => 'Una'),\n \t array('id' => '1059','state_id' => '12','name' => 'Unjha'),\n \t array('id' => '1060','state_id' => '12','name' => 'Upleta'),\n \t array('id' => '1061','state_id' => '12','name' => 'Utran'),\n \t array('id' => '1062','state_id' => '12','name' => 'Uttarsanda'),\n \t array('id' => '1063','state_id' => '12','name' => 'V.U. Nagar'),\n \t array('id' => '1064','state_id' => '12','name' => 'V.V. Nagar'),\n \t array('id' => '1065','state_id' => '12','name' => 'Vadia'),\n \t array('id' => '1066','state_id' => '12','name' => 'Vadla'),\n \t array('id' => '1067','state_id' => '12','name' => 'Vadnagar'),\n \t array('id' => '1068','state_id' => '12','name' => 'Vadodara'),\n \t array('id' => '1069','state_id' => '12','name' => 'Vaghodia INA'),\n \t array('id' => '1070','state_id' => '12','name' => 'Valbhipur'),\n \t array('id' => '1071','state_id' => '12','name' => 'Vallabh Vidyanagar'),\n \t array('id' => '1072','state_id' => '12','name' => 'Valsad'),\n \t array('id' => '1073','state_id' => '12','name' => 'Valsad INA'),\n \t array('id' => '1074','state_id' => '12','name' => 'Vanthali'),\n \t array('id' => '1075','state_id' => '12','name' => 'Vapi'),\n \t array('id' => '1076','state_id' => '12','name' => 'Vapi INA'),\n \t array('id' => '1077','state_id' => '12','name' => 'Vartej'),\n \t array('id' => '1078','state_id' => '12','name' => 'Vasad'),\n \t array('id' => '1079','state_id' => '12','name' => 'Vasna Borsad INA'),\n \t array('id' => '1080','state_id' => '12','name' => 'Vaso'),\n \t array('id' => '1081','state_id' => '12','name' => 'Veraval'),\n \t array('id' => '1082','state_id' => '12','name' => 'Vidyanagar'),\n \t array('id' => '1083','state_id' => '12','name' => 'Vijalpor'),\n \t array('id' => '1084','state_id' => '12','name' => 'Vijapur'),\n \t array('id' => '1085','state_id' => '12','name' => 'Vinchhiya'),\n \t array('id' => '1086','state_id' => '12','name' => 'Vinzol'),\n \t array('id' => '1087','state_id' => '12','name' => 'Virpur'),\n \t array('id' => '1088','state_id' => '12','name' => 'Visavadar'),\n \t array('id' => '1089','state_id' => '12','name' => 'Visnagar'),\n \t array('id' => '1090','state_id' => '12','name' => 'Vyara'),\n \t array('id' => '1091','state_id' => '12','name' => 'Wadhwan'),\n \t array('id' => '1092','state_id' => '12','name' => 'Waghai'),\n \t array('id' => '1093','state_id' => '12','name' => 'Waghodia'),\n \t array('id' => '1094','state_id' => '12','name' => 'Wankaner'),\n \t array('id' => '1095','state_id' => '12','name' => 'Zalod'),\n \t array('id' => '1096','state_id' => '13','name' => 'Ambala'),\n \t array('id' => '1097','state_id' => '13','name' => 'Ambala Cantt'),\n \t array('id' => '1098','state_id' => '13','name' => 'Asan Khurd'),\n \t array('id' => '1099','state_id' => '13','name' => 'Asandh'),\n \t array('id' => '1100','state_id' => '13','name' => 'Ateli'),\n \t array('id' => '1101','state_id' => '13','name' => 'Babiyal'),\n \t array('id' => '1102','state_id' => '13','name' => 'Bahadurgarh'),\n \t array('id' => '1103','state_id' => '13','name' => 'Ballabgarh'),\n \t array('id' => '1104','state_id' => '13','name' => 'Barwala'),\n \t array('id' => '1105','state_id' => '13','name' => 'Bawal'),\n \t array('id' => '1106','state_id' => '13','name' => 'Bawani Khera'),\n \t array('id' => '1107','state_id' => '13','name' => 'Beri'),\n \t array('id' => '1108','state_id' => '13','name' => 'Bhiwani'),\n \t array('id' => '1109','state_id' => '13','name' => 'Bilaspur'),\n \t array('id' => '1110','state_id' => '13','name' => 'Buria'),\n \t array('id' => '1111','state_id' => '13','name' => 'Charkhi Dadri'),\n \t array('id' => '1112','state_id' => '13','name' => 'Chhachhrauli'),\n \t array('id' => '1113','state_id' => '13','name' => 'Chita'),\n \t array('id' => '1114','state_id' => '13','name' => 'Dabwali'),\n \t array('id' => '1115','state_id' => '13','name' => 'Dharuhera'),\n \t array('id' => '1116','state_id' => '13','name' => 'Dundahera'),\n \t array('id' => '1117','state_id' => '13','name' => 'Ellenabad'),\n \t array('id' => '1118','state_id' => '13','name' => 'Farakhpur'),\n \t array('id' => '1119','state_id' => '13','name' => 'Faridabad'),\n \t array('id' => '1120','state_id' => '13','name' => 'Farrukhnagar'),\n \t array('id' => '1121','state_id' => '13','name' => 'Fatehabad'),\n \t array('id' => '1122','state_id' => '13','name' => 'Firozpur Jhirka'),\n \t array('id' => '1123','state_id' => '13','name' => 'Gannaur'),\n \t array('id' => '1124','state_id' => '13','name' => 'Ghraunda'),\n \t array('id' => '1125','state_id' => '13','name' => 'Gohana'),\n \t array('id' => '1126','state_id' => '13','name' => 'Gurgaon'),\n \t array('id' => '1127','state_id' => '13','name' => 'Haileymandi'),\n \t array('id' => '1128','state_id' => '13','name' => 'Hansi'),\n \t array('id' => '1129','state_id' => '13','name' => 'Hasanpur'),\n \t array('id' => '1130','state_id' => '13','name' => 'Hathin'),\n \t array('id' => '1131','state_id' => '13','name' => 'Hisar'),\n \t array('id' => '1132','state_id' => '13','name' => 'Hissar'),\n \t array('id' => '1133','state_id' => '13','name' => 'Hodal'),\n \t array('id' => '1134','state_id' => '13','name' => 'Indri'),\n \t array('id' => '1135','state_id' => '13','name' => 'Jagadhri'),\n \t array('id' => '1136','state_id' => '13','name' => 'Jakhal Mandi'),\n \t array('id' => '1137','state_id' => '13','name' => 'Jhajjar'),\n \t array('id' => '1138','state_id' => '13','name' => 'Jind'),\n \t array('id' => '1139','state_id' => '13','name' => 'Julana'),\n \t array('id' => '1140','state_id' => '13','name' => 'Kaithal'),\n \t array('id' => '1141','state_id' => '13','name' => 'Kalanur'),\n \t array('id' => '1142','state_id' => '13','name' => 'Kalanwali'),\n \t array('id' => '1143','state_id' => '13','name' => 'Kalayat'),\n \t array('id' => '1144','state_id' => '13','name' => 'Kalka'),\n \t array('id' => '1145','state_id' => '13','name' => 'Kanina'),\n \t array('id' => '1146','state_id' => '13','name' => 'Kansepur'),\n \t array('id' => '1147','state_id' => '13','name' => 'Kardhan'),\n \t array('id' => '1148','state_id' => '13','name' => 'Karnal'),\n \t array('id' => '1149','state_id' => '13','name' => 'Kharkhoda'),\n \t array('id' => '1150','state_id' => '13','name' => 'Kheri Sampla'),\n \t array('id' => '1151','state_id' => '13','name' => 'Kundli'),\n \t array('id' => '1152','state_id' => '13','name' => 'Kurukshetra'),\n \t array('id' => '1153','state_id' => '13','name' => 'Ladrawan'),\n \t array('id' => '1154','state_id' => '13','name' => 'Ladwa'),\n \t array('id' => '1155','state_id' => '13','name' => 'Loharu'),\n \t array('id' => '1156','state_id' => '13','name' => 'Maham'),\n \t array('id' => '1157','state_id' => '13','name' => 'Mahendragarh'),\n \t array('id' => '1158','state_id' => '13','name' => 'Mustafabad'),\n \t array('id' => '1159','state_id' => '13','name' => 'Nagai Chaudhry'),\n \t array('id' => '1160','state_id' => '13','name' => 'Narayangarh'),\n \t array('id' => '1161','state_id' => '13','name' => 'Narnaul'),\n \t array('id' => '1162','state_id' => '13','name' => 'Narnaund'),\n \t array('id' => '1163','state_id' => '13','name' => 'Narwana'),\n \t array('id' => '1164','state_id' => '13','name' => 'Nilokheri'),\n \t array('id' => '1165','state_id' => '13','name' => 'Nuh'),\n \t array('id' => '1166','state_id' => '13','name' => 'Palwal'),\n \t array('id' => '1167','state_id' => '13','name' => 'Panchkula'),\n \t array('id' => '1168','state_id' => '13','name' => 'Panipat'),\n \t array('id' => '1169','state_id' => '13','name' => 'Panipat Taraf Ansar'),\n \t array('id' => '1170','state_id' => '13','name' => 'Panipat Taraf Makhdum Zadgan'),\n \t array('id' => '1171','state_id' => '13','name' => 'Panipat Taraf Rajputan'),\n \t array('id' => '1172','state_id' => '13','name' => 'Pehowa'),\n \t array('id' => '1173','state_id' => '13','name' => 'Pinjaur'),\n \t array('id' => '1174','state_id' => '13','name' => 'Punahana'),\n \t array('id' => '1175','state_id' => '13','name' => 'Pundri'),\n \t array('id' => '1176','state_id' => '13','name' => 'Radaur'),\n \t array('id' => '1177','state_id' => '13','name' => 'Raipur Rani'),\n \t array('id' => '1178','state_id' => '13','name' => 'Rania'),\n \t array('id' => '1179','state_id' => '13','name' => 'Ratiya'),\n \t array('id' => '1180','state_id' => '13','name' => 'Rewari'),\n \t array('id' => '1181','state_id' => '13','name' => 'Rohtak'),\n \t array('id' => '1182','state_id' => '13','name' => 'Ropar'),\n \t array('id' => '1183','state_id' => '13','name' => 'Sadauri'),\n \t array('id' => '1184','state_id' => '13','name' => 'Safidon'),\n \t array('id' => '1185','state_id' => '13','name' => 'Samalkha'),\n \t array('id' => '1186','state_id' => '13','name' => 'Sankhol'),\n \t array('id' => '1187','state_id' => '13','name' => 'Sasauli'),\n \t array('id' => '1188','state_id' => '13','name' => 'Shahabad'),\n \t array('id' => '1189','state_id' => '13','name' => 'Sirsa'),\n \t array('id' => '1190','state_id' => '13','name' => 'Siwani'),\n \t array('id' => '1191','state_id' => '13','name' => 'Sohna'),\n \t array('id' => '1192','state_id' => '13','name' => 'Sonipat'),\n \t array('id' => '1193','state_id' => '13','name' => 'Sukhrali'),\n \t array('id' => '1194','state_id' => '13','name' => 'Taoru'),\n \t array('id' => '1195','state_id' => '13','name' => 'Taraori'),\n \t array('id' => '1196','state_id' => '13','name' => 'Tauru'),\n \t array('id' => '1197','state_id' => '13','name' => 'Thanesar'),\n \t array('id' => '1198','state_id' => '13','name' => 'Tilpat'),\n \t array('id' => '1199','state_id' => '13','name' => 'Tohana'),\n \t array('id' => '1200','state_id' => '13','name' => 'Tosham'),\n \t array('id' => '1201','state_id' => '13','name' => 'Uchana'),\n \t array('id' => '1202','state_id' => '13','name' => 'Uklana Mandi'),\n \t array('id' => '1203','state_id' => '13','name' => 'Uncha Siwana'),\n \t array('id' => '1204','state_id' => '13','name' => 'Yamunanagar'),\n \t array('id' => '1205','state_id' => '14','name' => 'Arki'),\n \t array('id' => '1206','state_id' => '14','name' => 'Baddi'),\n \t array('id' => '1207','state_id' => '14','name' => 'Bakloh'),\n \t array('id' => '1208','state_id' => '14','name' => 'Banjar'),\n \t array('id' => '1209','state_id' => '14','name' => 'Bhota'),\n \t array('id' => '1210','state_id' => '14','name' => 'Bhuntar'),\n \t array('id' => '1211','state_id' => '14','name' => 'Bilaspur'),\n \t array('id' => '1212','state_id' => '14','name' => 'Chamba'),\n \t array('id' => '1213','state_id' => '14','name' => 'Chaupal'),\n \t array('id' => '1214','state_id' => '14','name' => 'Chuari Khas'),\n \t array('id' => '1215','state_id' => '14','name' => 'Dagshai'),\n \t array('id' => '1216','state_id' => '14','name' => 'Dalhousie'),\n \t array('id' => '1217','state_id' => '14','name' => 'Dalhousie Cantonment'),\n \t array('id' => '1218','state_id' => '14','name' => 'Damtal'),\n \t array('id' => '1219','state_id' => '14','name' => 'Daulatpur'),\n \t array('id' => '1220','state_id' => '14','name' => 'Dera Gopipur'),\n \t array('id' => '1221','state_id' => '14','name' => 'Dhalli'),\n \t array('id' => '1222','state_id' => '14','name' => 'Dharamshala'),\n \t array('id' => '1223','state_id' => '14','name' => 'Gagret'),\n \t array('id' => '1224','state_id' => '14','name' => 'Ghamarwin'),\n \t array('id' => '1225','state_id' => '14','name' => 'Hamirpur'),\n \t array('id' => '1226','state_id' => '14','name' => 'Jawala Mukhi'),\n \t array('id' => '1227','state_id' => '14','name' => 'Jogindarnagar'),\n \t array('id' => '1228','state_id' => '14','name' => 'Jubbal'),\n \t array('id' => '1229','state_id' => '14','name' => 'Jutogh'),\n \t array('id' => '1230','state_id' => '14','name' => 'Kala Amb'),\n \t array('id' => '1231','state_id' => '14','name' => 'Kalpa'),\n \t array('id' => '1232','state_id' => '14','name' => 'Kangra'),\n \t array('id' => '1233','state_id' => '14','name' => 'Kasauli'),\n \t array('id' => '1234','state_id' => '14','name' => 'Kot Khai'),\n \t array('id' => '1235','state_id' => '14','name' => 'Kullu'),\n \t array('id' => '1236','state_id' => '14','name' => 'Kulu'),\n \t array('id' => '1237','state_id' => '14','name' => 'Manali'),\n \t array('id' => '1238','state_id' => '14','name' => 'Mandi'),\n \t array('id' => '1239','state_id' => '14','name' => 'Mant Khas'),\n \t array('id' => '1240','state_id' => '14','name' => 'Mehatpur Basdehra'),\n \t array('id' => '1241','state_id' => '14','name' => 'Nadaun'),\n \t array('id' => '1242','state_id' => '14','name' => 'Nagrota'),\n \t array('id' => '1243','state_id' => '14','name' => 'Nahan'),\n \t array('id' => '1244','state_id' => '14','name' => 'Naina Devi'),\n \t array('id' => '1245','state_id' => '14','name' => 'Nalagarh'),\n \t array('id' => '1246','state_id' => '14','name' => 'Narkanda'),\n \t array('id' => '1247','state_id' => '14','name' => 'Nurpur'),\n \t array('id' => '1248','state_id' => '14','name' => 'Palampur'),\n \t array('id' => '1249','state_id' => '14','name' => 'Pandoh'),\n \t array('id' => '1250','state_id' => '14','name' => 'Paonta Sahib'),\n \t array('id' => '1251','state_id' => '14','name' => 'Parwanoo'),\n \t array('id' => '1252','state_id' => '14','name' => 'Parwanu'),\n \t array('id' => '1253','state_id' => '14','name' => 'Rajgarh'),\n \t array('id' => '1254','state_id' => '14','name' => 'Rampur'),\n \t array('id' => '1255','state_id' => '14','name' => 'Rawalsar'),\n \t array('id' => '1256','state_id' => '14','name' => 'Rohru'),\n \t array('id' => '1257','state_id' => '14','name' => 'Sabathu'),\n \t array('id' => '1258','state_id' => '14','name' => 'Santokhgarh'),\n \t array('id' => '1259','state_id' => '14','name' => 'Sarahan'),\n \t array('id' => '1260','state_id' => '14','name' => 'Sarka Ghat'),\n \t array('id' => '1261','state_id' => '14','name' => 'Seoni'),\n \t array('id' => '1262','state_id' => '14','name' => 'Shimla'),\n \t array('id' => '1263','state_id' => '14','name' => 'Sirmaur'),\n \t array('id' => '1264','state_id' => '14','name' => 'Solan'),\n \t array('id' => '1265','state_id' => '14','name' => 'Solon'),\n \t array('id' => '1266','state_id' => '14','name' => 'Sundarnagar'),\n \t array('id' => '1267','state_id' => '14','name' => 'Sundernagar'),\n \t array('id' => '1268','state_id' => '14','name' => 'Talai'),\n \t array('id' => '1269','state_id' => '14','name' => 'Theog'),\n \t array('id' => '1270','state_id' => '14','name' => 'Tira Sujanpur'),\n \t array('id' => '1271','state_id' => '14','name' => 'Una'),\n \t array('id' => '1272','state_id' => '14','name' => 'Yol'),\n \t array('id' => '1273','state_id' => '15','name' => 'Achabal'),\n \t array('id' => '1274','state_id' => '15','name' => 'Akhnur'),\n \t array('id' => '1275','state_id' => '15','name' => 'Anantnag'),\n \t array('id' => '1276','state_id' => '15','name' => 'Arnia'),\n \t array('id' => '1277','state_id' => '15','name' => 'Awantipora'),\n \t array('id' => '1278','state_id' => '15','name' => 'Badami Bagh'),\n \t array('id' => '1279','state_id' => '15','name' => 'Bandipur'),\n \t array('id' => '1280','state_id' => '15','name' => 'Banihal'),\n \t array('id' => '1281','state_id' => '15','name' => 'Baramula'),\n \t array('id' => '1282','state_id' => '15','name' => 'Baramulla'),\n \t array('id' => '1283','state_id' => '15','name' => 'Bari Brahmana'),\n \t array('id' => '1284','state_id' => '15','name' => 'Bashohli'),\n \t array('id' => '1285','state_id' => '15','name' => 'Batote'),\n \t array('id' => '1286','state_id' => '15','name' => 'Bhaderwah'),\n \t array('id' => '1287','state_id' => '15','name' => 'Bijbiara'),\n \t array('id' => '1288','state_id' => '15','name' => 'Billawar'),\n \t array('id' => '1289','state_id' => '15','name' => 'Birwah'),\n \t array('id' => '1290','state_id' => '15','name' => 'Bishna'),\n \t array('id' => '1291','state_id' => '15','name' => 'Budgam'),\n \t array('id' => '1292','state_id' => '15','name' => 'Charari Sharief'),\n \t array('id' => '1293','state_id' => '15','name' => 'Chenani'),\n \t array('id' => '1294','state_id' => '15','name' => 'Doda'),\n \t array('id' => '1295','state_id' => '15','name' => 'Duru-Verinag'),\n \t array('id' => '1296','state_id' => '15','name' => 'Gandarbat'),\n \t array('id' => '1297','state_id' => '15','name' => 'Gho Manhasan'),\n \t array('id' => '1298','state_id' => '15','name' => 'Gorah Salathian'),\n \t array('id' => '1299','state_id' => '15','name' => 'Gulmarg'),\n \t array('id' => '1300','state_id' => '15','name' => 'Hajan'),\n \t array('id' => '1301','state_id' => '15','name' => 'Handwara'),\n \t array('id' => '1302','state_id' => '15','name' => 'Hiranagar'),\n \t array('id' => '1303','state_id' => '15','name' => 'Jammu'),\n \t array('id' => '1304','state_id' => '15','name' => 'Jammu Cantonment'),\n \t array('id' => '1305','state_id' => '15','name' => 'Jammu Tawi'),\n \t array('id' => '1306','state_id' => '15','name' => 'Jourian'),\n \t array('id' => '1307','state_id' => '15','name' => 'Kargil'),\n \t array('id' => '1308','state_id' => '15','name' => 'Kathua'),\n \t array('id' => '1309','state_id' => '15','name' => 'Katra'),\n \t array('id' => '1310','state_id' => '15','name' => 'Khan Sahib'),\n \t array('id' => '1311','state_id' => '15','name' => 'Khour'),\n \t array('id' => '1312','state_id' => '15','name' => 'Khrew'),\n \t array('id' => '1313','state_id' => '15','name' => 'Kishtwar'),\n \t array('id' => '1314','state_id' => '15','name' => 'Kud'),\n \t array('id' => '1315','state_id' => '15','name' => 'Kukernag'),\n \t array('id' => '1316','state_id' => '15','name' => 'Kulgam'),\n \t array('id' => '1317','state_id' => '15','name' => 'Kunzer'),\n \t array('id' => '1318','state_id' => '15','name' => 'Kupwara'),\n \t array('id' => '1319','state_id' => '15','name' => 'Lakhenpur'),\n \t array('id' => '1320','state_id' => '15','name' => 'Leh'),\n \t array('id' => '1321','state_id' => '15','name' => 'Magam'),\n \t array('id' => '1322','state_id' => '15','name' => 'Mattan'),\n \t array('id' => '1323','state_id' => '15','name' => 'Naushehra'),\n \t array('id' => '1324','state_id' => '15','name' => 'Pahalgam'),\n \t array('id' => '1325','state_id' => '15','name' => 'Pampore'),\n \t array('id' => '1326','state_id' => '15','name' => 'Parole'),\n \t array('id' => '1327','state_id' => '15','name' => 'Pattan'),\n \t array('id' => '1328','state_id' => '15','name' => 'Pulwama'),\n \t array('id' => '1329','state_id' => '15','name' => 'Punch'),\n \t array('id' => '1330','state_id' => '15','name' => 'Qazigund'),\n \t array('id' => '1331','state_id' => '15','name' => 'Rajauri'),\n \t array('id' => '1332','state_id' => '15','name' => 'Ramban'),\n \t array('id' => '1333','state_id' => '15','name' => 'Ramgarh'),\n \t array('id' => '1334','state_id' => '15','name' => 'Ramnagar'),\n \t array('id' => '1335','state_id' => '15','name' => 'Ranbirsingh Pora'),\n \t array('id' => '1336','state_id' => '15','name' => 'Reasi'),\n \t array('id' => '1337','state_id' => '15','name' => 'Rehambal'),\n \t array('id' => '1338','state_id' => '15','name' => 'Samba'),\n \t array('id' => '1339','state_id' => '15','name' => 'Shupiyan'),\n \t array('id' => '1340','state_id' => '15','name' => 'Sopur'),\n \t array('id' => '1341','state_id' => '15','name' => 'Srinagar'),\n \t array('id' => '1342','state_id' => '15','name' => 'Sumbal'),\n \t array('id' => '1343','state_id' => '15','name' => 'Sunderbani'),\n \t array('id' => '1344','state_id' => '15','name' => 'Talwara'),\n \t array('id' => '1345','state_id' => '15','name' => 'Thanamandi'),\n \t array('id' => '1346','state_id' => '15','name' => 'Tral'),\n \t array('id' => '1347','state_id' => '15','name' => 'Udhampur'),\n \t array('id' => '1348','state_id' => '15','name' => 'Uri'),\n \t array('id' => '1349','state_id' => '15','name' => 'Vijaypur'),\n \t array('id' => '1350','state_id' => '16','name' => 'Adityapur'),\n \t array('id' => '1351','state_id' => '16','name' => 'Amlabad'),\n \t array('id' => '1352','state_id' => '16','name' => 'Angarpathar'),\n \t array('id' => '1353','state_id' => '16','name' => 'Ara'),\n \t array('id' => '1354','state_id' => '16','name' => 'Babua Kalan'),\n \t array('id' => '1355','state_id' => '16','name' => 'Bagbahra'),\n \t array('id' => '1356','state_id' => '16','name' => 'Baliapur'),\n \t array('id' => '1357','state_id' => '16','name' => 'Baliari'),\n \t array('id' => '1358','state_id' => '16','name' => 'Balkundra'),\n \t array('id' => '1359','state_id' => '16','name' => 'Bandhgora'),\n \t array('id' => '1360','state_id' => '16','name' => 'Barajamda'),\n \t array('id' => '1361','state_id' => '16','name' => 'Barhi'),\n \t array('id' => '1362','state_id' => '16','name' => 'Barka Kana'),\n \t array('id' => '1363','state_id' => '16','name' => 'Barki Saraiya'),\n \t array('id' => '1364','state_id' => '16','name' => 'Barughutu'),\n \t array('id' => '1365','state_id' => '16','name' => 'Barwadih'),\n \t array('id' => '1366','state_id' => '16','name' => 'Basaria'),\n \t array('id' => '1367','state_id' => '16','name' => 'Basukinath'),\n \t array('id' => '1368','state_id' => '16','name' => 'Bermo'),\n \t array('id' => '1369','state_id' => '16','name' => 'Bhagatdih'),\n \t array('id' => '1370','state_id' => '16','name' => 'Bhaurah'),\n \t array('id' => '1371','state_id' => '16','name' => 'Bhojudih'),\n \t array('id' => '1372','state_id' => '16','name' => 'Bhuli'),\n \t array('id' => '1373','state_id' => '16','name' => 'Bokaro'),\n \t array('id' => '1374','state_id' => '16','name' => 'Borio Bazar'),\n \t array('id' => '1375','state_id' => '16','name' => 'Bundu'),\n \t array('id' => '1376','state_id' => '16','name' => 'Chaibasa'),\n \t array('id' => '1377','state_id' => '16','name' => 'Chaitudih'),\n \t array('id' => '1378','state_id' => '16','name' => 'Chakradharpur'),\n \t array('id' => '1379','state_id' => '16','name' => 'Chakulia'),\n \t array('id' => '1380','state_id' => '16','name' => 'Chandaur'),\n \t array('id' => '1381','state_id' => '16','name' => 'Chandil'),\n \t array('id' => '1382','state_id' => '16','name' => 'Chandrapura'),\n \t array('id' => '1383','state_id' => '16','name' => 'Chas'),\n \t array('id' => '1384','state_id' => '16','name' => 'Chatra'),\n \t array('id' => '1385','state_id' => '16','name' => 'Chhatatanr'),\n \t array('id' => '1386','state_id' => '16','name' => 'Chhotaputki'),\n \t array('id' => '1387','state_id' => '16','name' => 'Chiria'),\n \t array('id' => '1388','state_id' => '16','name' => 'Chirkunda'),\n \t array('id' => '1389','state_id' => '16','name' => 'Churi'),\n \t array('id' => '1390','state_id' => '16','name' => 'Daltenganj'),\n \t array('id' => '1391','state_id' => '16','name' => 'Danguwapasi'),\n \t array('id' => '1392','state_id' => '16','name' => 'Dari'),\n \t array('id' => '1393','state_id' => '16','name' => 'Deoghar'),\n \t array('id' => '1394','state_id' => '16','name' => 'Deorikalan'),\n \t array('id' => '1395','state_id' => '16','name' => 'Devghar'),\n \t array('id' => '1396','state_id' => '16','name' => 'Dhanbad'),\n \t array('id' => '1397','state_id' => '16','name' => 'Dhanwar'),\n \t array('id' => '1398','state_id' => '16','name' => 'Dhaunsar'),\n \t array('id' => '1399','state_id' => '16','name' => 'Dugda'),\n \t array('id' => '1400','state_id' => '16','name' => 'Dumarkunda'),\n \t array('id' => '1401','state_id' => '16','name' => 'Dumka'),\n \t array('id' => '1402','state_id' => '16','name' => 'Egarkunr'),\n \t array('id' => '1403','state_id' => '16','name' => 'Gadhra'),\n \t array('id' => '1404','state_id' => '16','name' => 'Garwa'),\n \t array('id' => '1405','state_id' => '16','name' => 'Ghatsila'),\n \t array('id' => '1406','state_id' => '16','name' => 'Ghorabandha'),\n \t array('id' => '1407','state_id' => '16','name' => 'Gidi'),\n \t array('id' => '1408','state_id' => '16','name' => 'Giridih'),\n \t array('id' => '1409','state_id' => '16','name' => 'Gobindpur'),\n \t array('id' => '1410','state_id' => '16','name' => 'Godda'),\n \t array('id' => '1411','state_id' => '16','name' => 'Godhar'),\n \t array('id' => '1412','state_id' => '16','name' => 'Golphalbari'),\n \t array('id' => '1413','state_id' => '16','name' => 'Gomoh'),\n \t array('id' => '1414','state_id' => '16','name' => 'Gua'),\n \t array('id' => '1415','state_id' => '16','name' => 'Gumia'),\n \t array('id' => '1416','state_id' => '16','name' => 'Gumla'),\n \t array('id' => '1417','state_id' => '16','name' => 'Haludbani'),\n \t array('id' => '1418','state_id' => '16','name' => 'Hazaribag'),\n \t array('id' => '1419','state_id' => '16','name' => 'Hesla'),\n \t array('id' => '1420','state_id' => '16','name' => 'Husainabad'),\n \t array('id' => '1421','state_id' => '16','name' => 'Isri'),\n \t array('id' => '1422','state_id' => '16','name' => 'Jadugora'),\n \t array('id' => '1423','state_id' => '16','name' => 'Jagannathpur'),\n \t array('id' => '1424','state_id' => '16','name' => 'Jamadoba'),\n \t array('id' => '1425','state_id' => '16','name' => 'Jamshedpur'),\n \t array('id' => '1426','state_id' => '16','name' => 'Jamtara'),\n \t array('id' => '1427','state_id' => '16','name' => 'Jarangdih'),\n \t array('id' => '1428','state_id' => '16','name' => 'Jaridih'),\n \t array('id' => '1429','state_id' => '16','name' => 'Jasidih'),\n \t array('id' => '1430','state_id' => '16','name' => 'Jena'),\n \t array('id' => '1431','state_id' => '16','name' => 'Jharia'),\n \t array('id' => '1432','state_id' => '16','name' => 'Jharia Khas'),\n \t array('id' => '1433','state_id' => '16','name' => 'Jhinkpani'),\n \t array('id' => '1434','state_id' => '16','name' => 'Jhumri Tilaiya'),\n \t array('id' => '1435','state_id' => '16','name' => 'Jorapokhar'),\n \t array('id' => '1436','state_id' => '16','name' => 'Jugsalai'),\n \t array('id' => '1437','state_id' => '16','name' => 'Kailudih'),\n \t array('id' => '1438','state_id' => '16','name' => 'Kalikapur'),\n \t array('id' => '1439','state_id' => '16','name' => 'Kandra'),\n \t array('id' => '1440','state_id' => '16','name' => 'Kanke'),\n \t array('id' => '1441','state_id' => '16','name' => 'Katras'),\n \t array('id' => '1442','state_id' => '16','name' => 'Kedla'),\n \t array('id' => '1443','state_id' => '16','name' => 'Kenduadih'),\n \t array('id' => '1444','state_id' => '16','name' => 'Kharkhari'),\n \t array('id' => '1445','state_id' => '16','name' => 'Kharsawan'),\n \t array('id' => '1446','state_id' => '16','name' => 'Khelari'),\n \t array('id' => '1447','state_id' => '16','name' => 'Khunti'),\n \t array('id' => '1448','state_id' => '16','name' => 'Kiri Buru'),\n \t array('id' => '1449','state_id' => '16','name' => 'Kiriburu'),\n \t array('id' => '1450','state_id' => '16','name' => 'Kodarma'),\n \t array('id' => '1451','state_id' => '16','name' => 'Kuju'),\n \t array('id' => '1452','state_id' => '16','name' => 'Kurpania'),\n \t array('id' => '1453','state_id' => '16','name' => 'Kustai'),\n \t array('id' => '1454','state_id' => '16','name' => 'Lakarka'),\n \t array('id' => '1455','state_id' => '16','name' => 'Lapanga'),\n \t array('id' => '1456','state_id' => '16','name' => 'Latehar'),\n \t array('id' => '1457','state_id' => '16','name' => 'Lohardaga'),\n \t array('id' => '1458','state_id' => '16','name' => 'Loiya'),\n \t array('id' => '1459','state_id' => '16','name' => 'Loyabad'),\n \t array('id' => '1460','state_id' => '16','name' => 'Madhupur'),\n \t array('id' => '1461','state_id' => '16','name' => 'Mahesh Mundi'),\n \t array('id' => '1462','state_id' => '16','name' => 'Maithon'),\n \t array('id' => '1463','state_id' => '16','name' => 'Malkera'),\n \t array('id' => '1464','state_id' => '16','name' => 'Mango'),\n \t array('id' => '1465','state_id' => '16','name' => 'Manoharpur'),\n \t array('id' => '1466','state_id' => '16','name' => 'Marma'),\n \t array('id' => '1467','state_id' => '16','name' => 'Meghahatuburu Forest village'),\n \t array('id' => '1468','state_id' => '16','name' => 'Mera'),\n \t array('id' => '1469','state_id' => '16','name' => 'Meru'),\n \t array('id' => '1470','state_id' => '16','name' => 'Mihijam'),\n \t array('id' => '1471','state_id' => '16','name' => 'Mugma'),\n \t array('id' => '1472','state_id' => '16','name' => 'Muri'),\n \t array('id' => '1473','state_id' => '16','name' => 'Mushabani'),\n \t array('id' => '1474','state_id' => '16','name' => 'Nagri Kalan'),\n \t array('id' => '1475','state_id' => '16','name' => 'Netarhat'),\n \t array('id' => '1476','state_id' => '16','name' => 'Nirsa'),\n \t array('id' => '1477','state_id' => '16','name' => 'Noamundi'),\n \t array('id' => '1478','state_id' => '16','name' => 'Okni'),\n \t array('id' => '1479','state_id' => '16','name' => 'Orla'),\n \t array('id' => '1480','state_id' => '16','name' => 'Pakaur'),\n \t array('id' => '1481','state_id' => '16','name' => 'Palamau'),\n \t array('id' => '1482','state_id' => '16','name' => 'Palawa'),\n \t array('id' => '1483','state_id' => '16','name' => 'Panchet'),\n \t array('id' => '1484','state_id' => '16','name' => 'Panrra'),\n \t array('id' => '1485','state_id' => '16','name' => 'Paratdih'),\n \t array('id' => '1486','state_id' => '16','name' => 'Pathardih'),\n \t array('id' => '1487','state_id' => '16','name' => 'Patratu'),\n \t array('id' => '1488','state_id' => '16','name' => 'Phusro'),\n \t array('id' => '1489','state_id' => '16','name' => 'Pondar Kanali'),\n \t array('id' => '1490','state_id' => '16','name' => 'Rajmahal'),\n \t array('id' => '1491','state_id' => '16','name' => 'Ramgarh'),\n \t array('id' => '1492','state_id' => '16','name' => 'Ranchi'),\n \t array('id' => '1493','state_id' => '16','name' => 'Ray'),\n \t array('id' => '1494','state_id' => '16','name' => 'Rehla'),\n \t array('id' => '1495','state_id' => '16','name' => 'Religara'),\n \t array('id' => '1496','state_id' => '16','name' => 'Rohraband'),\n \t array('id' => '1497','state_id' => '16','name' => 'Sahibganj'),\n \t array('id' => '1498','state_id' => '16','name' => 'Sahnidih'),\n \t array('id' => '1499','state_id' => '16','name' => 'Saraidhela'),\n \t array('id' => '1500','state_id' => '16','name' => 'Saraikela'),\n \t array('id' => '1501','state_id' => '16','name' => 'Sarjamda'),\n \t array('id' => '1502','state_id' => '16','name' => 'Saunda'),\n \t array('id' => '1503','state_id' => '16','name' => 'Sewai'),\n \t array('id' => '1504','state_id' => '16','name' => 'Sijhua'),\n \t array('id' => '1505','state_id' => '16','name' => 'Sijua'),\n \t array('id' => '1506','state_id' => '16','name' => 'Simdega'),\n \t array('id' => '1507','state_id' => '16','name' => 'Sindari'),\n \t array('id' => '1508','state_id' => '16','name' => 'Sinduria'),\n \t array('id' => '1509','state_id' => '16','name' => 'Sini'),\n \t array('id' => '1510','state_id' => '16','name' => 'Sirka'),\n \t array('id' => '1511','state_id' => '16','name' => 'Siuliban'),\n \t array('id' => '1512','state_id' => '16','name' => 'Surubera'),\n \t array('id' => '1513','state_id' => '16','name' => 'Tati'),\n \t array('id' => '1514','state_id' => '16','name' => 'Tenudam'),\n \t array('id' => '1515','state_id' => '16','name' => 'Tisra'),\n \t array('id' => '1516','state_id' => '16','name' => 'Topa'),\n \t array('id' => '1517','state_id' => '16','name' => 'Topchanchi'),\n \t array('id' => '1518','state_id' => '17','name' => 'Adityanagar'),\n \t array('id' => '1519','state_id' => '17','name' => 'Adityapatna'),\n \t array('id' => '1520','state_id' => '17','name' => 'Afzalpur'),\n \t array('id' => '1521','state_id' => '17','name' => 'Ajjampur'),\n \t array('id' => '1522','state_id' => '17','name' => 'Aland'),\n \t array('id' => '1523','state_id' => '17','name' => 'Almatti Sitimani'),\n \t array('id' => '1524','state_id' => '17','name' => 'Alnavar'),\n \t array('id' => '1525','state_id' => '17','name' => 'Alur'),\n \t array('id' => '1526','state_id' => '17','name' => 'Ambikanagara'),\n \t array('id' => '1527','state_id' => '17','name' => 'Anekal'),\n \t array('id' => '1528','state_id' => '17','name' => 'Ankola'),\n \t array('id' => '1529','state_id' => '17','name' => 'Annigeri'),\n \t array('id' => '1530','state_id' => '17','name' => 'Arkalgud'),\n \t array('id' => '1531','state_id' => '17','name' => 'Arsikere'),\n \t array('id' => '1532','state_id' => '17','name' => 'Athni'),\n \t array('id' => '1533','state_id' => '17','name' => 'Aurad'),\n \t array('id' => '1534','state_id' => '17','name' => 'Badagavettu'),\n \t array('id' => '1535','state_id' => '17','name' => 'Badami'),\n \t array('id' => '1536','state_id' => '17','name' => 'Bagalkot'),\n \t array('id' => '1537','state_id' => '17','name' => 'Bagepalli'),\n \t array('id' => '1538','state_id' => '17','name' => 'Bailhongal'),\n \t array('id' => '1539','state_id' => '17','name' => 'Baindur'),\n \t array('id' => '1540','state_id' => '17','name' => 'Bajala'),\n \t array('id' => '1541','state_id' => '17','name' => 'Bajpe'),\n \t array('id' => '1542','state_id' => '17','name' => 'Banavar'),\n \t array('id' => '1543','state_id' => '17','name' => 'Bangarapet'),\n \t array('id' => '1544','state_id' => '17','name' => 'Bankapura'),\n \t array('id' => '1545','state_id' => '17','name' => 'Bannur'),\n \t array('id' => '1546','state_id' => '17','name' => 'Bantwal'),\n \t array('id' => '1547','state_id' => '17','name' => 'Basavakalyan'),\n \t array('id' => '1548','state_id' => '17','name' => 'Basavana Bagevadi'),\n \t array('id' => '1549','state_id' => '17','name' => 'Belagula'),\n \t array('id' => '1550','state_id' => '17','name' => 'Belakavadiq'),\n \t array('id' => '1551','state_id' => '17','name' => 'Belgaum'),\n \t array('id' => '1552','state_id' => '17','name' => 'Belgaum Cantonment'),\n \t array('id' => '1553','state_id' => '17','name' => 'Bellary'),\n \t array('id' => '1554','state_id' => '17','name' => 'Belluru'),\n \t array('id' => '1555','state_id' => '17','name' => 'Beltangadi'),\n \t array('id' => '1556','state_id' => '17','name' => 'Belur'),\n \t array('id' => '1557','state_id' => '17','name' => 'Belvata'),\n \t array('id' => '1558','state_id' => '17','name' => 'Bengaluru'),\n \t array('id' => '1559','state_id' => '17','name' => 'Bhadravati'),\n \t array('id' => '1560','state_id' => '17','name' => 'Bhalki'),\n \t array('id' => '1561','state_id' => '17','name' => 'Bhatkal'),\n \t array('id' => '1562','state_id' => '17','name' => 'Bhimarayanagudi'),\n \t array('id' => '1563','state_id' => '17','name' => 'Bhogadi'),\n \t array('id' => '1564','state_id' => '17','name' => 'Bidar'),\n \t array('id' => '1565','state_id' => '17','name' => 'Bijapur'),\n \t array('id' => '1566','state_id' => '17','name' => 'Bilgi'),\n \t array('id' => '1567','state_id' => '17','name' => 'Birur'),\n \t array('id' => '1568','state_id' => '17','name' => 'Bommanahalli'),\n \t array('id' => '1569','state_id' => '17','name' => 'Bommasandra'),\n \t array('id' => '1570','state_id' => '17','name' => 'Byadgi'),\n \t array('id' => '1571','state_id' => '17','name' => 'Byatarayanapura'),\n \t array('id' => '1572','state_id' => '17','name' => 'Chakranagar Colony'),\n \t array('id' => '1573','state_id' => '17','name' => 'Challakere'),\n \t array('id' => '1574','state_id' => '17','name' => 'Chamrajnagar'),\n \t array('id' => '1575','state_id' => '17','name' => 'Chamundi Betta'),\n \t array('id' => '1576','state_id' => '17','name' => 'Channagiri'),\n \t array('id' => '1577','state_id' => '17','name' => 'Channapatna'),\n \t array('id' => '1578','state_id' => '17','name' => 'Channarayapatna'),\n \t array('id' => '1579','state_id' => '17','name' => 'Chickballapur'),\n \t array('id' => '1580','state_id' => '17','name' => 'Chik Ballapur'),\n \t array('id' => '1581','state_id' => '17','name' => 'Chikkaballapur'),\n \t array('id' => '1582','state_id' => '17','name' => 'Chikmagalur'),\n \t array('id' => '1583','state_id' => '17','name' => 'Chiknayakanhalli'),\n \t array('id' => '1584','state_id' => '17','name' => 'Chikodi'),\n \t array('id' => '1585','state_id' => '17','name' => 'Chincholi'),\n \t array('id' => '1586','state_id' => '17','name' => 'Chintamani'),\n \t array('id' => '1587','state_id' => '17','name' => 'Chitaguppa'),\n \t array('id' => '1588','state_id' => '17','name' => 'Chitapur'),\n \t array('id' => '1589','state_id' => '17','name' => 'Chitradurga'),\n \t array('id' => '1590','state_id' => '17','name' => 'Coorg'),\n \t array('id' => '1591','state_id' => '17','name' => 'Dandeli'),\n \t array('id' => '1592','state_id' => '17','name' => 'Dargajogihalli'),\n \t array('id' => '1593','state_id' => '17','name' => 'Dasarahalli'),\n \t array('id' => '1594','state_id' => '17','name' => 'Davangere'),\n \t array('id' => '1595','state_id' => '17','name' => 'Devadurga'),\n \t array('id' => '1596','state_id' => '17','name' => 'Devagiri'),\n \t array('id' => '1597','state_id' => '17','name' => 'Devanhalli'),\n \t array('id' => '1598','state_id' => '17','name' => 'Dharwar'),\n \t array('id' => '1599','state_id' => '17','name' => 'Dhupdal'),\n \t array('id' => '1600','state_id' => '17','name' => 'Dod Ballapur'),\n \t array('id' => '1601','state_id' => '17','name' => 'Donimalai'),\n \t array('id' => '1602','state_id' => '17','name' => 'Gadag'),\n \t array('id' => '1603','state_id' => '17','name' => 'Gajendragarh'),\n \t array('id' => '1604','state_id' => '17','name' => 'Ganeshgudi'),\n \t array('id' => '1605','state_id' => '17','name' => 'Gangawati'),\n \t array('id' => '1606','state_id' => '17','name' => 'Gangoli'),\n \t array('id' => '1607','state_id' => '17','name' => 'Gauribidanur'),\n \t array('id' => '1608','state_id' => '17','name' => 'Gokak'),\n \t array('id' => '1609','state_id' => '17','name' => 'Gokak Falls'),\n \t array('id' => '1610','state_id' => '17','name' => 'Gonikoppal'),\n \t array('id' => '1611','state_id' => '17','name' => 'Gorur'),\n \t array('id' => '1612','state_id' => '17','name' => 'Gottikere'),\n \t array('id' => '1613','state_id' => '17','name' => 'Gubbi'),\n \t array('id' => '1614','state_id' => '17','name' => 'Gudibanda'),\n \t array('id' => '1615','state_id' => '17','name' => 'Gulbarga'),\n \t array('id' => '1616','state_id' => '17','name' => 'Guledgudda'),\n \t array('id' => '1617','state_id' => '17','name' => 'Gundlupet'),\n \t array('id' => '1618','state_id' => '17','name' => 'Gurmatkal'),\n \t array('id' => '1619','state_id' => '17','name' => 'Haliyal'),\n \t array('id' => '1620','state_id' => '17','name' => 'Hangal'),\n \t array('id' => '1621','state_id' => '17','name' => 'Harihar'),\n \t array('id' => '1622','state_id' => '17','name' => 'Harpanahalli'),\n \t array('id' => '1623','state_id' => '17','name' => 'Hassan'),\n \t array('id' => '1624','state_id' => '17','name' => 'Hatti'),\n \t array('id' => '1625','state_id' => '17','name' => 'Hatti Gold Mines'),\n \t array('id' => '1626','state_id' => '17','name' => 'Haveri'),\n \t array('id' => '1627','state_id' => '17','name' => 'Hebbagodi'),\n \t array('id' => '1628','state_id' => '17','name' => 'Hebbalu'),\n \t array('id' => '1629','state_id' => '17','name' => 'Hebri'),\n \t array('id' => '1630','state_id' => '17','name' => 'Heggadadevanakote'),\n \t array('id' => '1631','state_id' => '17','name' => 'Herohalli'),\n \t array('id' => '1632','state_id' => '17','name' => 'Hidkal'),\n \t array('id' => '1633','state_id' => '17','name' => 'Hindalgi'),\n \t array('id' => '1634','state_id' => '17','name' => 'Hirekerur'),\n \t array('id' => '1635','state_id' => '17','name' => 'Hiriyur'),\n \t array('id' => '1636','state_id' => '17','name' => 'Holalkere'),\n \t array('id' => '1637','state_id' => '17','name' => 'Hole Narsipur'),\n \t array('id' => '1638','state_id' => '17','name' => 'Homnabad'),\n \t array('id' => '1639','state_id' => '17','name' => 'Honavar'),\n \t array('id' => '1640','state_id' => '17','name' => 'Honnali'),\n \t array('id' => '1641','state_id' => '17','name' => 'Hosakote'),\n \t array('id' => '1642','state_id' => '17','name' => 'Hosanagara'),\n \t array('id' => '1643','state_id' => '17','name' => 'Hosangadi'),\n \t array('id' => '1644','state_id' => '17','name' => 'Hosdurga'),\n \t array('id' => '1645','state_id' => '17','name' => 'Hoskote'),\n \t array('id' => '1646','state_id' => '17','name' => 'Hospet'),\n \t array('id' => '1647','state_id' => '17','name' => 'Hubli'),\n \t array('id' => '1648','state_id' => '17','name' => 'Hukeri'),\n \t array('id' => '1649','state_id' => '17','name' => 'Hunasagi'),\n \t array('id' => '1650','state_id' => '17','name' => 'Hunasamaranahalli'),\n \t array('id' => '1651','state_id' => '17','name' => 'Hungund'),\n \t array('id' => '1652','state_id' => '17','name' => 'Hunsur'),\n \t array('id' => '1653','state_id' => '17','name' => 'Huvina Hadagalli'),\n \t array('id' => '1654','state_id' => '17','name' => 'Ilkal'),\n \t array('id' => '1655','state_id' => '17','name' => 'Indi'),\n \t array('id' => '1656','state_id' => '17','name' => 'Jagalur'),\n \t array('id' => '1657','state_id' => '17','name' => 'Jamkhandi'),\n \t array('id' => '1658','state_id' => '17','name' => 'Jevargi'),\n \t array('id' => '1659','state_id' => '17','name' => 'Jog Falls'),\n \t array('id' => '1660','state_id' => '17','name' => 'Kabini Colony'),\n \t array('id' => '1661','state_id' => '17','name' => 'Kadur'),\n \t array('id' => '1662','state_id' => '17','name' => 'Kalghatgi'),\n \t array('id' => '1663','state_id' => '17','name' => 'Kamalapuram'),\n \t array('id' => '1664','state_id' => '17','name' => 'Kampli'),\n \t array('id' => '1665','state_id' => '17','name' => 'Kanakapura'),\n \t array('id' => '1666','state_id' => '17','name' => 'Kangrali BK'),\n \t array('id' => '1667','state_id' => '17','name' => 'Kangrali KH'),\n \t array('id' => '1668','state_id' => '17','name' => 'Kannur'),\n \t array('id' => '1669','state_id' => '17','name' => 'Karkala'),\n \t array('id' => '1670','state_id' => '17','name' => 'Karwar'),\n \t array('id' => '1671','state_id' => '17','name' => 'Kemminja'),\n \t array('id' => '1672','state_id' => '17','name' => 'Kengeri'),\n \t array('id' => '1673','state_id' => '17','name' => 'Kerur'),\n \t array('id' => '1674','state_id' => '17','name' => 'Khanapur'),\n \t array('id' => '1675','state_id' => '17','name' => 'Kodigenahalli'),\n \t array('id' => '1676','state_id' => '17','name' => 'Kodiyal'),\n \t array('id' => '1677','state_id' => '17','name' => 'Kodlipet'),\n \t array('id' => '1678','state_id' => '17','name' => 'Kolar'),\n \t array('id' => '1679','state_id' => '17','name' => 'Kollegal'),\n \t array('id' => '1680','state_id' => '17','name' => 'Konanakunte'),\n \t array('id' => '1681','state_id' => '17','name' => 'Konanur'),\n \t array('id' => '1682','state_id' => '17','name' => 'Konnur'),\n \t array('id' => '1683','state_id' => '17','name' => 'Koppa'),\n \t array('id' => '1684','state_id' => '17','name' => 'Koppal'),\n \t array('id' => '1685','state_id' => '17','name' => 'Koratagere'),\n \t array('id' => '1686','state_id' => '17','name' => 'Kotekara'),\n \t array('id' => '1687','state_id' => '17','name' => 'Kothnur'),\n \t array('id' => '1688','state_id' => '17','name' => 'Kotturu'),\n \t array('id' => '1689','state_id' => '17','name' => 'Krishnapura'),\n \t array('id' => '1690','state_id' => '17','name' => 'Krishnarajanagar'),\n \t array('id' => '1691','state_id' => '17','name' => 'Krishnarajapura'),\n \t array('id' => '1692','state_id' => '17','name' => 'Krishnarajasagara'),\n \t array('id' => '1693','state_id' => '17','name' => 'Krishnarajpet'),\n \t array('id' => '1694','state_id' => '17','name' => 'Kudchi'),\n \t array('id' => '1695','state_id' => '17','name' => 'Kudligi'),\n \t array('id' => '1696','state_id' => '17','name' => 'Kudremukh'),\n \t array('id' => '1697','state_id' => '17','name' => 'Kumsi'),\n \t array('id' => '1698','state_id' => '17','name' => 'Kumta'),\n \t array('id' => '1699','state_id' => '17','name' => 'Kundapura'),\n \t array('id' => '1700','state_id' => '17','name' => 'Kundgol'),\n \t array('id' => '1701','state_id' => '17','name' => 'Kunigal'),\n \t array('id' => '1702','state_id' => '17','name' => 'Kurgunta'),\n \t array('id' => '1703','state_id' => '17','name' => 'Kushalnagar'),\n \t array('id' => '1704','state_id' => '17','name' => 'Kushtagi'),\n \t array('id' => '1705','state_id' => '17','name' => 'Kyathanahalli'),\n \t array('id' => '1706','state_id' => '17','name' => 'Lakshmeshwar'),\n \t array('id' => '1707','state_id' => '17','name' => 'Lingsugur'),\n \t array('id' => '1708','state_id' => '17','name' => 'Londa'),\n \t array('id' => '1709','state_id' => '17','name' => 'Maddur'),\n \t array('id' => '1710','state_id' => '17','name' => 'Madhugiri'),\n \t array('id' => '1711','state_id' => '17','name' => 'Madikeri'),\n \t array('id' => '1712','state_id' => '17','name' => 'Magadi'),\n \t array('id' => '1713','state_id' => '17','name' => 'Magod Falls'),\n \t array('id' => '1714','state_id' => '17','name' => 'Mahadeswara Hills'),\n \t array('id' => '1715','state_id' => '17','name' => 'Mahadevapura'),\n \t array('id' => '1716','state_id' => '17','name' => 'Mahalingpur'),\n \t array('id' => '1717','state_id' => '17','name' => 'Maisuru'),\n \t array('id' => '1718','state_id' => '17','name' => 'Maisuru Cantonment'),\n \t array('id' => '1719','state_id' => '17','name' => 'Malavalli'),\n \t array('id' => '1720','state_id' => '17','name' => 'Mallar'),\n \t array('id' => '1721','state_id' => '17','name' => 'Malpe'),\n \t array('id' => '1722','state_id' => '17','name' => 'Malur'),\n \t array('id' => '1723','state_id' => '17','name' => 'Manchenahalli'),\n \t array('id' => '1724','state_id' => '17','name' => 'Mandya'),\n \t array('id' => '1725','state_id' => '17','name' => 'Mangalore'),\n \t array('id' => '1726','state_id' => '17','name' => 'Mangaluru'),\n \t array('id' => '1727','state_id' => '17','name' => 'Manipal'),\n \t array('id' => '1728','state_id' => '17','name' => 'Manvi'),\n \t array('id' => '1729','state_id' => '17','name' => 'Maski'),\n \t array('id' => '1730','state_id' => '17','name' => 'Mastikatte Colony'),\n \t array('id' => '1731','state_id' => '17','name' => 'Mayakonda'),\n \t array('id' => '1732','state_id' => '17','name' => 'Melukote'),\n \t array('id' => '1733','state_id' => '17','name' => 'Molakalmuru'),\n \t array('id' => '1734','state_id' => '17','name' => 'Mudalgi'),\n \t array('id' => '1735','state_id' => '17','name' => 'Mudbidri'),\n \t array('id' => '1736','state_id' => '17','name' => 'Muddebihal'),\n \t array('id' => '1737','state_id' => '17','name' => 'Mudgal'),\n \t array('id' => '1738','state_id' => '17','name' => 'Mudhol'),\n \t array('id' => '1739','state_id' => '17','name' => 'Mudigere'),\n \t array('id' => '1740','state_id' => '17','name' => 'Mudushedde'),\n \t array('id' => '1741','state_id' => '17','name' => 'Mulbagal'),\n \t array('id' => '1742','state_id' => '17','name' => 'Mulgund'),\n \t array('id' => '1743','state_id' => '17','name' => 'Mulki'),\n \t array('id' => '1744','state_id' => '17','name' => 'Mulur'),\n \t array('id' => '1745','state_id' => '17','name' => 'Mundargi'),\n \t array('id' => '1746','state_id' => '17','name' => 'Mundgod'),\n \t array('id' => '1747','state_id' => '17','name' => 'Munirabad'),\n \t array('id' => '1748','state_id' => '17','name' => 'Munnur'),\n \t array('id' => '1749','state_id' => '17','name' => 'Murudeshwara'),\n \t array('id' => '1750','state_id' => '17','name' => 'Mysore'),\n \t array('id' => '1751','state_id' => '17','name' => 'Nagamangala'),\n \t array('id' => '1752','state_id' => '17','name' => 'Nanjangud'),\n \t array('id' => '1753','state_id' => '17','name' => 'Naragund'),\n \t array('id' => '1754','state_id' => '17','name' => 'Narasimharajapura'),\n \t array('id' => '1755','state_id' => '17','name' => 'Naravi'),\n \t array('id' => '1756','state_id' => '17','name' => 'Narayanpur'),\n \t array('id' => '1757','state_id' => '17','name' => 'Naregal'),\n \t array('id' => '1758','state_id' => '17','name' => 'Navalgund'),\n \t array('id' => '1759','state_id' => '17','name' => 'Nelmangala'),\n \t array('id' => '1760','state_id' => '17','name' => 'Nipani'),\n \t array('id' => '1761','state_id' => '17','name' => 'Nitte'),\n \t array('id' => '1762','state_id' => '17','name' => 'Nyamati'),\n \t array('id' => '1763','state_id' => '17','name' => 'Padu'),\n \t array('id' => '1764','state_id' => '17','name' => 'Pandavapura'),\n \t array('id' => '1765','state_id' => '17','name' => 'Pattanagere'),\n \t array('id' => '1766','state_id' => '17','name' => 'Pavagada'),\n \t array('id' => '1767','state_id' => '17','name' => 'Piriyapatna'),\n \t array('id' => '1768','state_id' => '17','name' => 'Ponnampet'),\n \t array('id' => '1769','state_id' => '17','name' => 'Puttur'),\n \t array('id' => '1770','state_id' => '17','name' => 'Rabkavi'),\n \t array('id' => '1771','state_id' => '17','name' => 'Raichur'),\n \t array('id' => '1772','state_id' => '17','name' => 'Ramanagaram'),\n \t array('id' => '1773','state_id' => '17','name' => 'Ramdurg'),\n \t array('id' => '1774','state_id' => '17','name' => 'Ranibennur'),\n \t array('id' => '1775','state_id' => '17','name' => 'Raybag'),\n \t array('id' => '1776','state_id' => '17','name' => 'Robertsonpet'),\n \t array('id' => '1777','state_id' => '17','name' => 'Ron'),\n \t array('id' => '1778','state_id' => '17','name' => 'Sadalgi'),\n \t array('id' => '1779','state_id' => '17','name' => 'Sagar'),\n \t array('id' => '1780','state_id' => '17','name' => 'Sakleshpur'),\n \t array('id' => '1781','state_id' => '17','name' => 'Saligram'),\n \t array('id' => '1782','state_id' => '17','name' => 'Sandur'),\n \t array('id' => '1783','state_id' => '17','name' => 'Sanivarsante'),\n \t array('id' => '1784','state_id' => '17','name' => 'Sankeshwar'),\n \t array('id' => '1785','state_id' => '17','name' => 'Sargur'),\n \t array('id' => '1786','state_id' => '17','name' => 'Sathyamangala'),\n \t array('id' => '1787','state_id' => '17','name' => 'Saundatti Yellamma'),\n \t array('id' => '1788','state_id' => '17','name' => 'Savanur'),\n \t array('id' => '1789','state_id' => '17','name' => 'Sedam'),\n \t array('id' => '1790','state_id' => '17','name' => 'Shahabad'),\n \t array('id' => '1791','state_id' => '17','name' => 'Shahabad A.C.C.'),\n \t array('id' => '1792','state_id' => '17','name' => 'Shahapur'),\n \t array('id' => '1793','state_id' => '17','name' => 'Shahpur'),\n \t array('id' => '1794','state_id' => '17','name' => 'Shaktinagar'),\n \t array('id' => '1795','state_id' => '17','name' => 'Shiggaon'),\n \t array('id' => '1796','state_id' => '17','name' => 'Shikarpur'),\n \t array('id' => '1797','state_id' => '17','name' => 'Shimoga'),\n \t array('id' => '1798','state_id' => '17','name' => 'Shirhatti'),\n \t array('id' => '1799','state_id' => '17','name' => 'Shorapur'),\n \t array('id' => '1800','state_id' => '17','name' => 'Shravanabelagola'),\n \t array('id' => '1801','state_id' => '17','name' => 'Shrirangapattana'),\n \t array('id' => '1802','state_id' => '17','name' => 'Siddapur'),\n \t array('id' => '1803','state_id' => '17','name' => 'Sidlaghatta'),\n \t array('id' => '1804','state_id' => '17','name' => 'Sindgi'),\n \t array('id' => '1805','state_id' => '17','name' => 'Sindhnur'),\n \t array('id' => '1806','state_id' => '17','name' => 'Sira'),\n \t array('id' => '1807','state_id' => '17','name' => 'Sirakoppa'),\n \t array('id' => '1808','state_id' => '17','name' => 'Sirsi'),\n \t array('id' => '1809','state_id' => '17','name' => 'Siruguppa'),\n \t array('id' => '1810','state_id' => '17','name' => 'Someshwar'),\n \t array('id' => '1811','state_id' => '17','name' => 'Somvarpet'),\n \t array('id' => '1812','state_id' => '17','name' => 'Sorab'),\n \t array('id' => '1813','state_id' => '17','name' => 'Sringeri'),\n \t array('id' => '1814','state_id' => '17','name' => 'Srinivaspur'),\n \t array('id' => '1815','state_id' => '17','name' => 'Sulya'),\n \t array('id' => '1816','state_id' => '17','name' => 'Suntikopa'),\n \t array('id' => '1817','state_id' => '17','name' => 'Talikota'),\n \t array('id' => '1818','state_id' => '17','name' => 'Tarikera'),\n \t array('id' => '1819','state_id' => '17','name' => 'Tekkalakota'),\n \t array('id' => '1820','state_id' => '17','name' => 'Terdal'),\n \t array('id' => '1821','state_id' => '17','name' => 'Thokur'),\n \t array('id' => '1822','state_id' => '17','name' => 'Thumbe'),\n \t array('id' => '1823','state_id' => '17','name' => 'Tiptur'),\n \t array('id' => '1824','state_id' => '17','name' => 'Tirthahalli'),\n \t array('id' => '1825','state_id' => '17','name' => 'Tirumakudal Narsipur'),\n \t array('id' => '1826','state_id' => '17','name' => 'Tonse'),\n \t array('id' => '1827','state_id' => '17','name' => 'Tumkur'),\n \t array('id' => '1828','state_id' => '17','name' => 'Turuvekere'),\n \t array('id' => '1829','state_id' => '17','name' => 'Udupi'),\n \t array('id' => '1830','state_id' => '17','name' => 'Ullal'),\n \t array('id' => '1831','state_id' => '17','name' => 'Uttarahalli'),\n \t array('id' => '1832','state_id' => '17','name' => 'Venkatapura'),\n \t array('id' => '1833','state_id' => '17','name' => 'Vijayapura'),\n \t array('id' => '1834','state_id' => '17','name' => 'Virarajendrapet'),\n \t array('id' => '1835','state_id' => '17','name' => 'Wadi'),\n \t array('id' => '1836','state_id' => '17','name' => 'Wadi A.C.C.'),\n \t array('id' => '1837','state_id' => '17','name' => 'Yadgir'),\n \t array('id' => '1838','state_id' => '17','name' => 'Yelahanka'),\n \t array('id' => '1839','state_id' => '17','name' => 'Yelandur'),\n \t array('id' => '1840','state_id' => '17','name' => 'Yelbarga'),\n \t array('id' => '1841','state_id' => '17','name' => 'Yellapur'),\n \t array('id' => '1842','state_id' => '17','name' => 'Yenagudde'),\n \t array('id' => '1843','state_id' => '19','name' => 'Adimaly'),\n \t array('id' => '1844','state_id' => '19','name' => 'Adoor'),\n \t array('id' => '1845','state_id' => '19','name' => 'Adur'),\n \t array('id' => '1846','state_id' => '19','name' => 'Akathiyur'),\n \t array('id' => '1847','state_id' => '19','name' => 'Alangad'),\n \t array('id' => '1848','state_id' => '19','name' => 'Alappuzha'),\n \t array('id' => '1849','state_id' => '19','name' => 'Aluva'),\n \t array('id' => '1850','state_id' => '19','name' => 'Ancharakandy'),\n \t array('id' => '1851','state_id' => '19','name' => 'Angamaly'),\n \t array('id' => '1852','state_id' => '19','name' => 'Aroor'),\n \t array('id' => '1853','state_id' => '19','name' => 'Arukutti'),\n \t array('id' => '1854','state_id' => '19','name' => 'Attingal'),\n \t array('id' => '1855','state_id' => '19','name' => 'Avinissery'),\n \t array('id' => '1856','state_id' => '19','name' => 'Azhikode North'),\n \t array('id' => '1857','state_id' => '19','name' => 'Azhikode South'),\n \t array('id' => '1858','state_id' => '19','name' => 'Azhiyur'),\n \t array('id' => '1859','state_id' => '19','name' => 'Balussery'),\n \t array('id' => '1860','state_id' => '19','name' => 'Bangramanjeshwar'),\n \t array('id' => '1861','state_id' => '19','name' => 'Beypur'),\n \t array('id' => '1862','state_id' => '19','name' => 'Brahmakulam'),\n \t array('id' => '1863','state_id' => '19','name' => 'Chala'),\n \t array('id' => '1864','state_id' => '19','name' => 'Chalakudi'),\n \t array('id' => '1865','state_id' => '19','name' => 'Changanacheri'),\n \t array('id' => '1866','state_id' => '19','name' => 'Chauwara'),\n \t array('id' => '1867','state_id' => '19','name' => 'Chavakkad'),\n \t array('id' => '1868','state_id' => '19','name' => 'Chelakkara'),\n \t array('id' => '1869','state_id' => '19','name' => 'Chelora'),\n \t array('id' => '1870','state_id' => '19','name' => 'Chendamangalam'),\n \t array('id' => '1871','state_id' => '19','name' => 'Chengamanad'),\n \t array('id' => '1872','state_id' => '19','name' => 'Chengannur'),\n \t array('id' => '1873','state_id' => '19','name' => 'Cheranallur'),\n \t array('id' => '1874','state_id' => '19','name' => 'Cheriyakadavu'),\n \t array('id' => '1875','state_id' => '19','name' => 'Cherthala'),\n \t array('id' => '1876','state_id' => '19','name' => 'Cherukunnu'),\n \t array('id' => '1877','state_id' => '19','name' => 'Cheruthazham'),\n \t array('id' => '1878','state_id' => '19','name' => 'Cheruvannur'),\n \t array('id' => '1879','state_id' => '19','name' => 'Cheruvattur'),\n \t array('id' => '1880','state_id' => '19','name' => 'Chevvur'),\n \t array('id' => '1881','state_id' => '19','name' => 'Chirakkal'),\n \t array('id' => '1882','state_id' => '19','name' => 'Chittur'),\n \t array('id' => '1883','state_id' => '19','name' => 'Chockli'),\n \t array('id' => '1884','state_id' => '19','name' => 'Churnikkara'),\n \t array('id' => '1885','state_id' => '19','name' => 'Dharmadam'),\n \t array('id' => '1886','state_id' => '19','name' => 'Edappal'),\n \t array('id' => '1887','state_id' => '19','name' => 'Edathala'),\n \t array('id' => '1888','state_id' => '19','name' => 'Elayavur'),\n \t array('id' => '1889','state_id' => '19','name' => 'Elur'),\n \t array('id' => '1890','state_id' => '19','name' => 'Eranholi'),\n \t array('id' => '1891','state_id' => '19','name' => 'Erattupetta'),\n \t array('id' => '1892','state_id' => '19','name' => 'Ernakulam'),\n \t array('id' => '1893','state_id' => '19','name' => 'Eruvatti'),\n \t array('id' => '1894','state_id' => '19','name' => 'Ettumanoor'),\n \t array('id' => '1895','state_id' => '19','name' => 'Feroke'),\n \t array('id' => '1896','state_id' => '19','name' => 'Guruvayur'),\n \t array('id' => '1897','state_id' => '19','name' => 'Haripad'),\n \t array('id' => '1898','state_id' => '19','name' => 'Hosabettu'),\n \t array('id' => '1899','state_id' => '19','name' => 'Idukki'),\n \t array('id' => '1900','state_id' => '19','name' => 'Iringaprom'),\n \t array('id' => '1901','state_id' => '19','name' => 'Irinjalakuda'),\n \t array('id' => '1902','state_id' => '19','name' => 'Iriveri'),\n \t array('id' => '1903','state_id' => '19','name' => 'Kadachira'),\n \t array('id' => '1904','state_id' => '19','name' => 'Kadalundi'),\n \t array('id' => '1905','state_id' => '19','name' => 'Kadamakkudy'),\n \t array('id' => '1906','state_id' => '19','name' => 'Kadirur'),\n \t array('id' => '1907','state_id' => '19','name' => 'Kadungallur'),\n \t array('id' => '1908','state_id' => '19','name' => 'Kakkodi'),\n \t array('id' => '1909','state_id' => '19','name' => 'Kalady'),\n \t array('id' => '1910','state_id' => '19','name' => 'Kalamassery'),\n \t array('id' => '1911','state_id' => '19','name' => 'Kalliasseri'),\n \t array('id' => '1912','state_id' => '19','name' => 'Kalpetta'),\n \t array('id' => '1913','state_id' => '19','name' => 'Kanhangad'),\n \t array('id' => '1914','state_id' => '19','name' => 'Kanhirode'),\n \t array('id' => '1915','state_id' => '19','name' => 'Kanjikkuzhi'),\n \t array('id' => '1916','state_id' => '19','name' => 'Kanjikode'),\n \t array('id' => '1917','state_id' => '19','name' => 'Kanjirappalli'),\n \t array('id' => '1918','state_id' => '19','name' => 'Kannadiparamba'),\n \t array('id' => '1919','state_id' => '19','name' => 'Kannangad'),\n \t array('id' => '1920','state_id' => '19','name' => 'Kannapuram'),\n \t array('id' => '1921','state_id' => '19','name' => 'Kannur'),\n \t array('id' => '1922','state_id' => '19','name' => 'Kannur Cantonment'),\n \t array('id' => '1923','state_id' => '19','name' => 'Karunagappally'),\n \t array('id' => '1924','state_id' => '19','name' => 'Karuvamyhuruthy'),\n \t array('id' => '1925','state_id' => '19','name' => 'Kasaragod'),\n \t array('id' => '1926','state_id' => '19','name' => 'Kasargod'),\n \t array('id' => '1927','state_id' => '19','name' => 'Kattappana'),\n \t array('id' => '1928','state_id' => '19','name' => 'Kayamkulam'),\n \t array('id' => '1929','state_id' => '19','name' => 'Kedamangalam'),\n \t array('id' => '1930','state_id' => '19','name' => 'Kochi'),\n \t array('id' => '1931','state_id' => '19','name' => 'Kodamthuruthu'),\n \t array('id' => '1932','state_id' => '19','name' => 'Kodungallur'),\n \t array('id' => '1933','state_id' => '19','name' => 'Koduvally'),\n \t array('id' => '1934','state_id' => '19','name' => 'Koduvayur'),\n \t array('id' => '1935','state_id' => '19','name' => 'Kokkothamangalam'),\n \t array('id' => '1936','state_id' => '19','name' => 'Kolazhy'),\n \t array('id' => '1937','state_id' => '19','name' => 'Kollam'),\n \t array('id' => '1938','state_id' => '19','name' => 'Komalapuram'),\n \t array('id' => '1939','state_id' => '19','name' => 'Koothattukulam'),\n \t array('id' => '1940','state_id' => '19','name' => 'Koratty'),\n \t array('id' => '1941','state_id' => '19','name' => 'Kothamangalam'),\n \t array('id' => '1942','state_id' => '19','name' => 'Kottarakkara'),\n \t array('id' => '1943','state_id' => '19','name' => 'Kottayam'),\n \t array('id' => '1944','state_id' => '19','name' => 'Kottayam Malabar'),\n \t array('id' => '1945','state_id' => '19','name' => 'Kottuvally'),\n \t array('id' => '1946','state_id' => '19','name' => 'Koyilandi'),\n \t array('id' => '1947','state_id' => '19','name' => 'Kozhikode'),\n \t array('id' => '1948','state_id' => '19','name' => 'Kudappanakunnu'),\n \t array('id' => '1949','state_id' => '19','name' => 'Kudlu'),\n \t array('id' => '1950','state_id' => '19','name' => 'Kumarakom'),\n \t array('id' => '1951','state_id' => '19','name' => 'Kumily'),\n \t array('id' => '1952','state_id' => '19','name' => 'Kunnamangalam'),\n \t array('id' => '1953','state_id' => '19','name' => 'Kunnamkulam'),\n \t array('id' => '1954','state_id' => '19','name' => 'Kurikkad'),\n \t array('id' => '1955','state_id' => '19','name' => 'Kurkkanchery'),\n \t array('id' => '1956','state_id' => '19','name' => 'Kuthuparamba'),\n \t array('id' => '1957','state_id' => '19','name' => 'Kuttakulam'),\n \t array('id' => '1958','state_id' => '19','name' => 'Kuttikkattur'),\n \t array('id' => '1959','state_id' => '19','name' => 'Kuttur'),\n \t array('id' => '1960','state_id' => '19','name' => 'Malappuram'),\n \t array('id' => '1961','state_id' => '19','name' => 'Mallappally'),\n \t array('id' => '1962','state_id' => '19','name' => 'Manjeri'),\n \t array('id' => '1963','state_id' => '19','name' => 'Manjeshwar'),\n \t array('id' => '1964','state_id' => '19','name' => 'Mannancherry'),\n \t array('id' => '1965','state_id' => '19','name' => 'Mannar'),\n \t array('id' => '1966','state_id' => '19','name' => 'Mannarakkat'),\n \t array('id' => '1967','state_id' => '19','name' => 'Maradu'),\n \t array('id' => '1968','state_id' => '19','name' => 'Marathakkara'),\n \t array('id' => '1969','state_id' => '19','name' => 'Marutharod'),\n \t array('id' => '1970','state_id' => '19','name' => 'Mattannur'),\n \t array('id' => '1971','state_id' => '19','name' => 'Mavelikara'),\n \t array('id' => '1972','state_id' => '19','name' => 'Mavilayi'),\n \t array('id' => '1973','state_id' => '19','name' => 'Mavur'),\n \t array('id' => '1974','state_id' => '19','name' => 'Methala'),\n \t array('id' => '1975','state_id' => '19','name' => 'Muhamma'),\n \t array('id' => '1976','state_id' => '19','name' => 'Mulavukad'),\n \t array('id' => '1977','state_id' => '19','name' => 'Mundakayam'),\n \t array('id' => '1978','state_id' => '19','name' => 'Munderi'),\n \t array('id' => '1979','state_id' => '19','name' => 'Munnar'),\n \t array('id' => '1980','state_id' => '19','name' => 'Muthakunnam'),\n \t array('id' => '1981','state_id' => '19','name' => 'Muvattupuzha'),\n \t array('id' => '1982','state_id' => '19','name' => 'Muzhappilangad'),\n \t array('id' => '1983','state_id' => '19','name' => 'Nadapuram'),\n \t array('id' => '1984','state_id' => '19','name' => 'Nadathara'),\n \t array('id' => '1985','state_id' => '19','name' => 'Narath'),\n \t array('id' => '1986','state_id' => '19','name' => 'Nattakam'),\n \t array('id' => '1987','state_id' => '19','name' => 'Nedumangad'),\n \t array('id' => '1988','state_id' => '19','name' => 'Nenmenikkara'),\n \t array('id' => '1989','state_id' => '19','name' => 'New Mahe'),\n \t array('id' => '1990','state_id' => '19','name' => 'Neyyattinkara'),\n \t array('id' => '1991','state_id' => '19','name' => 'Nileshwar'),\n \t array('id' => '1992','state_id' => '19','name' => 'Olavanna'),\n \t array('id' => '1993','state_id' => '19','name' => 'Ottapalam'),\n \t array('id' => '1994','state_id' => '19','name' => 'Ottappalam'),\n \t array('id' => '1995','state_id' => '19','name' => 'Paduvilayi'),\n \t array('id' => '1996','state_id' => '19','name' => 'Palai'),\n \t array('id' => '1997','state_id' => '19','name' => 'Palakkad'),\n \t array('id' => '1998','state_id' => '19','name' => 'Palayad'),\n \t array('id' => '1999','state_id' => '19','name' => 'Palissery'),\n \t array('id' => '2000','state_id' => '19','name' => 'Pallikkunnu'),\n \t array('id' => '2001','state_id' => '19','name' => 'Paluvai'),\n \t array('id' => '2002','state_id' => '19','name' => 'Panniyannur'),\n \t array('id' => '2003','state_id' => '19','name' => 'Pantalam'),\n \t array('id' => '2004','state_id' => '19','name' => 'Panthiramkavu'),\n \t array('id' => '2005','state_id' => '19','name' => 'Panur'),\n \t array('id' => '2006','state_id' => '19','name' => 'Pappinisseri'),\n \t array('id' => '2007','state_id' => '19','name' => 'Parassala'),\n \t array('id' => '2008','state_id' => '19','name' => 'Paravur'),\n \t array('id' => '2009','state_id' => '19','name' => 'Pathanamthitta'),\n \t array('id' => '2010','state_id' => '19','name' => 'Pathanapuram'),\n \t array('id' => '2011','state_id' => '19','name' => 'Pathiriyad'),\n \t array('id' => '2012','state_id' => '19','name' => 'Pattambi'),\n \t array('id' => '2013','state_id' => '19','name' => 'Pattiom'),\n \t array('id' => '2014','state_id' => '19','name' => 'Pavaratty'),\n \t array('id' => '2015','state_id' => '19','name' => 'Payyannur'),\n \t array('id' => '2016','state_id' => '19','name' => 'Peermade'),\n \t array('id' => '2017','state_id' => '19','name' => 'Perakam'),\n \t array('id' => '2018','state_id' => '19','name' => 'Peralasseri'),\n \t array('id' => '2019','state_id' => '19','name' => 'Peringathur'),\n \t array('id' => '2020','state_id' => '19','name' => 'Perinthalmanna'),\n \t array('id' => '2021','state_id' => '19','name' => 'Perole'),\n \t array('id' => '2022','state_id' => '19','name' => 'Perumanna'),\n \t array('id' => '2023','state_id' => '19','name' => 'Perumbaikadu'),\n \t array('id' => '2024','state_id' => '19','name' => 'Perumbavoor'),\n \t array('id' => '2025','state_id' => '19','name' => 'Pinarayi'),\n \t array('id' => '2026','state_id' => '19','name' => 'Piravam'),\n \t array('id' => '2027','state_id' => '19','name' => 'Ponnani'),\n \t array('id' => '2028','state_id' => '19','name' => 'Pottore'),\n \t array('id' => '2029','state_id' => '19','name' => 'Pudukad'),\n \t array('id' => '2030','state_id' => '19','name' => 'Punalur'),\n \t array('id' => '2031','state_id' => '19','name' => 'Puranattukara'),\n \t array('id' => '2032','state_id' => '19','name' => 'Puthunagaram'),\n \t array('id' => '2033','state_id' => '19','name' => 'Puthuppariyaram'),\n \t array('id' => '2034','state_id' => '19','name' => 'Puzhathi'),\n \t array('id' => '2035','state_id' => '19','name' => 'Ramanattukara'),\n \t array('id' => '2036','state_id' => '19','name' => 'Shoranur'),\n \t array('id' => '2037','state_id' => '19','name' => 'Sultans Battery'),\n \t array('id' => '2038','state_id' => '19','name' => 'Sulthan Bathery'),\n \t array('id' => '2039','state_id' => '19','name' => 'Talipparamba'),\n \t array('id' => '2040','state_id' => '19','name' => 'Thaikkad'),\n \t array('id' => '2041','state_id' => '19','name' => 'Thalassery'),\n \t array('id' => '2042','state_id' => '19','name' => 'Thannirmukkam'),\n \t array('id' => '2043','state_id' => '19','name' => 'Theyyalingal'),\n \t array('id' => '2044','state_id' => '19','name' => 'Thiruvalla'),\n \t array('id' => '2045','state_id' => '19','name' => 'Thiruvananthapuram'),\n \t array('id' => '2046','state_id' => '19','name' => 'Thiruvankulam'),\n \t array('id' => '2047','state_id' => '19','name' => 'Thodupuzha'),\n \t array('id' => '2048','state_id' => '19','name' => 'Thottada'),\n \t array('id' => '2049','state_id' => '19','name' => 'Thrippunithura'),\n \t array('id' => '2050','state_id' => '19','name' => 'Thrissur'),\n \t array('id' => '2051','state_id' => '19','name' => 'Tirur'),\n \t array('id' => '2052','state_id' => '19','name' => 'Udma'),\n \t array('id' => '2053','state_id' => '19','name' => 'Vadakara'),\n \t array('id' => '2054','state_id' => '19','name' => 'Vaikam'),\n \t array('id' => '2055','state_id' => '19','name' => 'Valapattam'),\n \t array('id' => '2056','state_id' => '19','name' => 'Vallachira'),\n \t array('id' => '2057','state_id' => '19','name' => 'Varam'),\n \t array('id' => '2058','state_id' => '19','name' => 'Varappuzha'),\n \t array('id' => '2059','state_id' => '19','name' => 'Varkala'),\n \t array('id' => '2060','state_id' => '19','name' => 'Vayalar'),\n \t array('id' => '2061','state_id' => '19','name' => 'Vazhakkala'),\n \t array('id' => '2062','state_id' => '19','name' => 'Venmanad'),\n \t array('id' => '2063','state_id' => '19','name' => 'Villiappally'),\n \t array('id' => '2064','state_id' => '19','name' => 'Wayanad'),\n \t array('id' => '2065','state_id' => '20','name' => 'Agethi'),\n \t array('id' => '2066','state_id' => '20','name' => 'Amini'),\n \t array('id' => '2067','state_id' => '20','name' => 'Androth Island'),\n \t array('id' => '2068','state_id' => '20','name' => 'Kavaratti'),\n \t array('id' => '2069','state_id' => '20','name' => 'Minicoy'),\n \t array('id' => '2070','state_id' => '21','name' => 'Agar'),\n \t array('id' => '2071','state_id' => '21','name' => 'Ajaigarh'),\n \t array('id' => '2072','state_id' => '21','name' => 'Akoda'),\n \t array('id' => '2073','state_id' => '21','name' => 'Akodia'),\n \t array('id' => '2074','state_id' => '21','name' => 'Alampur'),\n \t array('id' => '2075','state_id' => '21','name' => 'Alirajpur'),\n \t array('id' => '2076','state_id' => '21','name' => 'Alot'),\n \t array('id' => '2077','state_id' => '21','name' => 'Amanganj'),\n \t array('id' => '2078','state_id' => '21','name' => 'Amarkantak'),\n \t array('id' => '2079','state_id' => '21','name' => 'Amarpatan'),\n \t array('id' => '2080','state_id' => '21','name' => 'Amarwara'),\n \t array('id' => '2081','state_id' => '21','name' => 'Ambada'),\n \t array('id' => '2082','state_id' => '21','name' => 'Ambah'),\n \t array('id' => '2083','state_id' => '21','name' => 'Amla'),\n \t array('id' => '2084','state_id' => '21','name' => 'Amlai'),\n \t array('id' => '2085','state_id' => '21','name' => 'Anjad'),\n \t array('id' => '2086','state_id' => '21','name' => 'Antri'),\n \t array('id' => '2087','state_id' => '21','name' => 'Anuppur'),\n \t array('id' => '2088','state_id' => '21','name' => 'Aron'),\n \t array('id' => '2089','state_id' => '21','name' => 'Ashoknagar'),\n \t array('id' => '2090','state_id' => '21','name' => 'Ashta'),\n \t array('id' => '2091','state_id' => '21','name' => 'Babai'),\n \t array('id' => '2092','state_id' => '21','name' => 'Bada Malhera'),\n \t array('id' => '2093','state_id' => '21','name' => 'Badagaon'),\n \t array('id' => '2094','state_id' => '21','name' => 'Badagoan'),\n \t array('id' => '2095','state_id' => '21','name' => 'Badarwas'),\n \t array('id' => '2096','state_id' => '21','name' => 'Badawada'),\n \t array('id' => '2097','state_id' => '21','name' => 'Badi'),\n \t array('id' => '2098','state_id' => '21','name' => 'Badkuhi'),\n \t array('id' => '2099','state_id' => '21','name' => 'Badnagar'),\n \t array('id' => '2100','state_id' => '21','name' => 'Badnawar'),\n \t array('id' => '2101','state_id' => '21','name' => 'Badod'),\n \t array('id' => '2102','state_id' => '21','name' => 'Badoda'),\n \t array('id' => '2103','state_id' => '21','name' => 'Badra'),\n \t array('id' => '2104','state_id' => '21','name' => 'Bagh'),\n \t array('id' => '2105','state_id' => '21','name' => 'Bagli'),\n \t array('id' => '2106','state_id' => '21','name' => 'Baihar'),\n \t array('id' => '2107','state_id' => '21','name' => 'Baikunthpur'),\n \t array('id' => '2108','state_id' => '21','name' => 'Bakswaha'),\n \t array('id' => '2109','state_id' => '21','name' => 'Balaghat'),\n \t array('id' => '2110','state_id' => '21','name' => 'Baldeogarh'),\n \t array('id' => '2111','state_id' => '21','name' => 'Bamaniya'),\n \t array('id' => '2112','state_id' => '21','name' => 'Bamhani'),\n \t array('id' => '2113','state_id' => '21','name' => 'Bamor'),\n \t array('id' => '2114','state_id' => '21','name' => 'Bamora'),\n \t array('id' => '2115','state_id' => '21','name' => 'Banda'),\n \t array('id' => '2116','state_id' => '21','name' => 'Bangawan'),\n \t array('id' => '2117','state_id' => '21','name' => 'Bansatar Kheda'),\n \t array('id' => '2118','state_id' => '21','name' => 'Baraily'),\n \t array('id' => '2119','state_id' => '21','name' => 'Barela'),\n \t array('id' => '2120','state_id' => '21','name' => 'Barghat'),\n \t array('id' => '2121','state_id' => '21','name' => 'Bargi'),\n \t array('id' => '2122','state_id' => '21','name' => 'Barhi'),\n \t array('id' => '2123','state_id' => '21','name' => 'Barigarh'),\n \t array('id' => '2124','state_id' => '21','name' => 'Barwaha'),\n \t array('id' => '2125','state_id' => '21','name' => 'Barwani'),\n \t array('id' => '2126','state_id' => '21','name' => 'Basoda'),\n \t array('id' => '2127','state_id' => '21','name' => 'Begamganj'),\n \t array('id' => '2128','state_id' => '21','name' => 'Beohari'),\n \t array('id' => '2129','state_id' => '21','name' => 'Berasia'),\n \t array('id' => '2130','state_id' => '21','name' => 'Betma'),\n \t array('id' => '2131','state_id' => '21','name' => 'Betul'),\n \t array('id' => '2132','state_id' => '21','name' => 'Betul Bazar'),\n \t array('id' => '2133','state_id' => '21','name' => 'Bhainsdehi'),\n \t array('id' => '2134','state_id' => '21','name' => 'Bhamodi'),\n \t array('id' => '2135','state_id' => '21','name' => 'Bhander'),\n \t array('id' => '2136','state_id' => '21','name' => 'Bhanpura'),\n \t array('id' => '2137','state_id' => '21','name' => 'Bharveli'),\n \t array('id' => '2138','state_id' => '21','name' => 'Bhaurasa'),\n \t array('id' => '2139','state_id' => '21','name' => 'Bhavra'),\n \t array('id' => '2140','state_id' => '21','name' => 'Bhedaghat'),\n \t array('id' => '2141','state_id' => '21','name' => 'Bhikangaon'),\n \t array('id' => '2142','state_id' => '21','name' => 'Bhilakhedi'),\n \t array('id' => '2143','state_id' => '21','name' => 'Bhind'),\n \t array('id' => '2144','state_id' => '21','name' => 'Bhitarwar'),\n \t array('id' => '2145','state_id' => '21','name' => 'Bhopal'),\n \t array('id' => '2146','state_id' => '21','name' => 'Bhuibandh'),\n \t array('id' => '2147','state_id' => '21','name' => 'Biaora'),\n \t array('id' => '2148','state_id' => '21','name' => 'Bijawar'),\n \t array('id' => '2149','state_id' => '21','name' => 'Bijeypur'),\n \t array('id' => '2150','state_id' => '21','name' => 'Bijrauni'),\n \t array('id' => '2151','state_id' => '21','name' => 'Bijuri'),\n \t array('id' => '2152','state_id' => '21','name' => 'Bilaua'),\n \t array('id' => '2153','state_id' => '21','name' => 'Bilpura'),\n \t array('id' => '2154','state_id' => '21','name' => 'Bina Railway Colony'),\n \t array('id' => '2155','state_id' => '21','name' => 'Bina-Etawa'),\n \t array('id' => '2156','state_id' => '21','name' => 'Birsinghpur'),\n \t array('id' => '2157','state_id' => '21','name' => 'Boda'),\n \t array('id' => '2158','state_id' => '21','name' => 'Budhni'),\n \t array('id' => '2159','state_id' => '21','name' => 'Burhanpur'),\n \t array('id' => '2160','state_id' => '21','name' => 'Burhar'),\n \t array('id' => '2161','state_id' => '21','name' => 'Chachaura Binaganj'),\n \t array('id' => '2162','state_id' => '21','name' => 'Chakghat'),\n \t array('id' => '2163','state_id' => '21','name' => 'Chandameta Butar'),\n \t array('id' => '2164','state_id' => '21','name' => 'Chanderi'),\n \t array('id' => '2165','state_id' => '21','name' => 'Chandia'),\n \t array('id' => '2166','state_id' => '21','name' => 'Chandla'),\n \t array('id' => '2167','state_id' => '21','name' => 'Chaurai Khas'),\n \t array('id' => '2168','state_id' => '21','name' => 'Chhatarpur'),\n \t array('id' => '2169','state_id' => '21','name' => 'Chhindwara'),\n \t array('id' => '2170','state_id' => '21','name' => 'Chhota Chhindwara'),\n \t array('id' => '2171','state_id' => '21','name' => 'Chichli'),\n \t array('id' => '2172','state_id' => '21','name' => 'Chitrakut'),\n \t array('id' => '2173','state_id' => '21','name' => 'Churhat'),\n \t array('id' => '2174','state_id' => '21','name' => 'Daboh'),\n \t array('id' => '2175','state_id' => '21','name' => 'Dabra'),\n \t array('id' => '2176','state_id' => '21','name' => 'Damoh'),\n \t array('id' => '2177','state_id' => '21','name' => 'Damua'),\n \t array('id' => '2178','state_id' => '21','name' => 'Datia'),\n \t array('id' => '2179','state_id' => '21','name' => 'Deodara'),\n \t array('id' => '2180','state_id' => '21','name' => 'Deori'),\n \t array('id' => '2181','state_id' => '21','name' => 'Deori Khas'),\n \t array('id' => '2182','state_id' => '21','name' => 'Depalpur'),\n \t array('id' => '2183','state_id' => '21','name' => 'Devendranagar'),\n \t array('id' => '2184','state_id' => '21','name' => 'Devhara'),\n \t array('id' => '2185','state_id' => '21','name' => 'Dewas'),\n \t array('id' => '2186','state_id' => '21','name' => 'Dhamnod'),\n \t array('id' => '2187','state_id' => '21','name' => 'Dhana'),\n \t array('id' => '2188','state_id' => '21','name' => 'Dhanpuri'),\n \t array('id' => '2189','state_id' => '21','name' => 'Dhar'),\n \t array('id' => '2190','state_id' => '21','name' => 'Dharampuri'),\n \t array('id' => '2191','state_id' => '21','name' => 'Dighawani'),\n \t array('id' => '2192','state_id' => '21','name' => 'Diken'),\n \t array('id' => '2193','state_id' => '21','name' => 'Dindori'),\n \t array('id' => '2194','state_id' => '21','name' => 'Dola'),\n \t array('id' => '2195','state_id' => '21','name' => 'Dumar Kachhar'),\n \t array('id' => '2196','state_id' => '21','name' => 'Dungariya Chhapara'),\n \t array('id' => '2197','state_id' => '21','name' => 'Gadarwara'),\n \t array('id' => '2198','state_id' => '21','name' => 'Gairatganj'),\n \t array('id' => '2199','state_id' => '21','name' => 'Gandhi Sagar Hydel Colony'),\n \t array('id' => '2200','state_id' => '21','name' => 'Ganjbasoda'),\n \t array('id' => '2201','state_id' => '21','name' => 'Garhakota'),\n \t array('id' => '2202','state_id' => '21','name' => 'Garhi Malhara'),\n \t array('id' => '2203','state_id' => '21','name' => 'Garoth'),\n \t array('id' => '2204','state_id' => '21','name' => 'Gautapura'),\n \t array('id' => '2205','state_id' => '21','name' => 'Ghansor'),\n \t array('id' => '2206','state_id' => '21','name' => 'Ghuwara'),\n \t array('id' => '2207','state_id' => '21','name' => 'Gogaon'),\n \t array('id' => '2208','state_id' => '21','name' => 'Gogapur'),\n \t array('id' => '2209','state_id' => '21','name' => 'Gohad'),\n \t array('id' => '2210','state_id' => '21','name' => 'Gormi'),\n \t array('id' => '2211','state_id' => '21','name' => 'Govindgarh'),\n \t array('id' => '2212','state_id' => '21','name' => 'Guna'),\n \t array('id' => '2213','state_id' => '21','name' => 'Gurh'),\n \t array('id' => '2214','state_id' => '21','name' => 'Gwalior'),\n \t array('id' => '2215','state_id' => '21','name' => 'Hanumana'),\n \t array('id' => '2216','state_id' => '21','name' => 'Harda'),\n \t array('id' => '2217','state_id' => '21','name' => 'Harpalpur'),\n \t array('id' => '2218','state_id' => '21','name' => 'Harrai'),\n \t array('id' => '2219','state_id' => '21','name' => 'Harsud'),\n \t array('id' => '2220','state_id' => '21','name' => 'Hatod'),\n \t array('id' => '2221','state_id' => '21','name' => 'Hatpipalya'),\n \t array('id' => '2222','state_id' => '21','name' => 'Hatta'),\n \t array('id' => '2223','state_id' => '21','name' => 'Hindoria'),\n \t array('id' => '2224','state_id' => '21','name' => 'Hirapur'),\n \t array('id' => '2225','state_id' => '21','name' => 'Hoshangabad'),\n \t array('id' => '2226','state_id' => '21','name' => 'Ichhawar'),\n \t array('id' => '2227','state_id' => '21','name' => 'Iklehra'),\n \t array('id' => '2228','state_id' => '21','name' => 'Indergarh'),\n \t array('id' => '2229','state_id' => '21','name' => 'Indore'),\n \t array('id' => '2230','state_id' => '21','name' => 'Isagarh'),\n \t array('id' => '2231','state_id' => '21','name' => 'Itarsi'),\n \t array('id' => '2232','state_id' => '21','name' => 'Jabalpur'),\n \t array('id' => '2233','state_id' => '21','name' => 'Jabalpur Cantonment'),\n \t array('id' => '2234','state_id' => '21','name' => 'Jabalpur G.C.F'),\n \t array('id' => '2235','state_id' => '21','name' => 'Jaisinghnagar'),\n \t array('id' => '2236','state_id' => '21','name' => 'Jaithari'),\n \t array('id' => '2237','state_id' => '21','name' => 'Jaitwara'),\n \t array('id' => '2238','state_id' => '21','name' => 'Jamai'),\n \t array('id' => '2239','state_id' => '21','name' => 'Jaora'),\n \t array('id' => '2240','state_id' => '21','name' => 'Jatachhapar'),\n \t array('id' => '2241','state_id' => '21','name' => 'Jatara'),\n \t array('id' => '2242','state_id' => '21','name' => 'Jawad'),\n \t array('id' => '2243','state_id' => '21','name' => 'Jawar'),\n \t array('id' => '2244','state_id' => '21','name' => 'Jeronkhalsa'),\n \t array('id' => '2245','state_id' => '21','name' => 'Jhabua'),\n \t array('id' => '2246','state_id' => '21','name' => 'Jhundpura'),\n \t array('id' => '2247','state_id' => '21','name' => 'Jiran'),\n \t array('id' => '2248','state_id' => '21','name' => 'Jirapur'),\n \t array('id' => '2249','state_id' => '21','name' => 'Jobat'),\n \t array('id' => '2250','state_id' => '21','name' => 'Joura'),\n \t array('id' => '2251','state_id' => '21','name' => 'Kailaras'),\n \t array('id' => '2252','state_id' => '21','name' => 'Kaimur'),\n \t array('id' => '2253','state_id' => '21','name' => 'Kakarhati'),\n \t array('id' => '2254','state_id' => '21','name' => 'Kalichhapar'),\n \t array('id' => '2255','state_id' => '21','name' => 'Kanad'),\n \t array('id' => '2256','state_id' => '21','name' => 'Kannod'),\n \t array('id' => '2257','state_id' => '21','name' => 'Kantaphod'),\n \t array('id' => '2258','state_id' => '21','name' => 'Kareli'),\n \t array('id' => '2259','state_id' => '21','name' => 'Karera'),\n \t array('id' => '2260','state_id' => '21','name' => 'Kari'),\n \t array('id' => '2261','state_id' => '21','name' => 'Karnawad'),\n \t array('id' => '2262','state_id' => '21','name' => 'Karrapur'),\n \t array('id' => '2263','state_id' => '21','name' => 'Kasrawad'),\n \t array('id' => '2264','state_id' => '21','name' => 'Katangi'),\n \t array('id' => '2265','state_id' => '21','name' => 'Katni'),\n \t array('id' => '2266','state_id' => '21','name' => 'Kelhauri'),\n \t array('id' => '2267','state_id' => '21','name' => 'Khachrod'),\n \t array('id' => '2268','state_id' => '21','name' => 'Khajuraho'),\n \t array('id' => '2269','state_id' => '21','name' => 'Khamaria'),\n \t array('id' => '2270','state_id' => '21','name' => 'Khand'),\n \t array('id' => '2271','state_id' => '21','name' => 'Khandwa'),\n \t array('id' => '2272','state_id' => '21','name' => 'Khaniyadhana'),\n \t array('id' => '2273','state_id' => '21','name' => 'Khargapur'),\n \t array('id' => '2274','state_id' => '21','name' => 'Khargone'),\n \t array('id' => '2275','state_id' => '21','name' => 'Khategaon'),\n \t array('id' => '2276','state_id' => '21','name' => 'Khetia'),\n \t array('id' => '2277','state_id' => '21','name' => 'Khilchipur'),\n \t array('id' => '2278','state_id' => '21','name' => 'Khirkiya'),\n \t array('id' => '2279','state_id' => '21','name' => 'Khujner'),\n \t array('id' => '2280','state_id' => '21','name' => 'Khurai'),\n \t array('id' => '2281','state_id' => '21','name' => 'Kolaras'),\n \t array('id' => '2282','state_id' => '21','name' => 'Kotar'),\n \t array('id' => '2283','state_id' => '21','name' => 'Kothi'),\n \t array('id' => '2284','state_id' => '21','name' => 'Kotma'),\n \t array('id' => '2285','state_id' => '21','name' => 'Kukshi'),\n \t array('id' => '2286','state_id' => '21','name' => 'Kumbhraj'),\n \t array('id' => '2287','state_id' => '21','name' => 'Kurwai'),\n \t array('id' => '2288','state_id' => '21','name' => 'Lahar'),\n \t array('id' => '2289','state_id' => '21','name' => 'Lakhnadon'),\n \t array('id' => '2290','state_id' => '21','name' => 'Lateri'),\n \t array('id' => '2291','state_id' => '21','name' => 'Laundi'),\n \t array('id' => '2292','state_id' => '21','name' => 'Lidhora Khas'),\n \t array('id' => '2293','state_id' => '21','name' => 'Lodhikheda'),\n \t array('id' => '2294','state_id' => '21','name' => 'Loharda'),\n \t array('id' => '2295','state_id' => '21','name' => 'Machalpur'),\n \t array('id' => '2296','state_id' => '21','name' => 'Madhogarh'),\n \t array('id' => '2297','state_id' => '21','name' => 'Maharajpur'),\n \t array('id' => '2298','state_id' => '21','name' => 'Maheshwar'),\n \t array('id' => '2299','state_id' => '21','name' => 'Mahidpur'),\n \t array('id' => '2300','state_id' => '21','name' => 'Maihar'),\n \t array('id' => '2301','state_id' => '21','name' => 'Majholi'),\n \t array('id' => '2302','state_id' => '21','name' => 'Makronia'),\n \t array('id' => '2303','state_id' => '21','name' => 'Maksi'),\n \t array('id' => '2304','state_id' => '21','name' => 'Malaj Khand'),\n \t array('id' => '2305','state_id' => '21','name' => 'Malanpur'),\n \t array('id' => '2306','state_id' => '21','name' => 'Malhargarh'),\n \t array('id' => '2307','state_id' => '21','name' => 'Manasa'),\n \t array('id' => '2308','state_id' => '21','name' => 'Manawar'),\n \t array('id' => '2309','state_id' => '21','name' => 'Mandav'),\n \t array('id' => '2310','state_id' => '21','name' => 'Mandideep'),\n \t array('id' => '2311','state_id' => '21','name' => 'Mandla'),\n \t array('id' => '2312','state_id' => '21','name' => 'Mandleshwar'),\n \t array('id' => '2313','state_id' => '21','name' => 'Mandsaur'),\n \t array('id' => '2314','state_id' => '21','name' => 'Manegaon'),\n \t array('id' => '2315','state_id' => '21','name' => 'Mangawan'),\n \t array('id' => '2316','state_id' => '21','name' => 'Manglaya Sadak'),\n \t array('id' => '2317','state_id' => '21','name' => 'Manpur'),\n \t array('id' => '2318','state_id' => '21','name' => 'Mau'),\n \t array('id' => '2319','state_id' => '21','name' => 'Mauganj'),\n \t array('id' => '2320','state_id' => '21','name' => 'Meghnagar'),\n \t array('id' => '2321','state_id' => '21','name' => 'Mehara Gaon'),\n \t array('id' => '2322','state_id' => '21','name' => 'Mehgaon'),\n \t array('id' => '2323','state_id' => '21','name' => 'Mhaugaon'),\n \t array('id' => '2324','state_id' => '21','name' => 'Mhow'),\n \t array('id' => '2325','state_id' => '21','name' => 'Mihona'),\n \t array('id' => '2326','state_id' => '21','name' => 'Mohgaon'),\n \t array('id' => '2327','state_id' => '21','name' => 'Morar'),\n \t array('id' => '2328','state_id' => '21','name' => 'Morena'),\n \t array('id' => '2329','state_id' => '21','name' => 'Morwa'),\n \t array('id' => '2330','state_id' => '21','name' => 'Multai'),\n \t array('id' => '2331','state_id' => '21','name' => 'Mundi'),\n \t array('id' => '2332','state_id' => '21','name' => 'Mungaoli'),\n \t array('id' => '2333','state_id' => '21','name' => 'Murwara'),\n \t array('id' => '2334','state_id' => '21','name' => 'Nagda'),\n \t array('id' => '2335','state_id' => '21','name' => 'Nagod'),\n \t array('id' => '2336','state_id' => '21','name' => 'Nagri'),\n \t array('id' => '2337','state_id' => '21','name' => 'Naigarhi'),\n \t array('id' => '2338','state_id' => '21','name' => 'Nainpur'),\n \t array('id' => '2339','state_id' => '21','name' => 'Nalkheda'),\n \t array('id' => '2340','state_id' => '21','name' => 'Namli'),\n \t array('id' => '2341','state_id' => '21','name' => 'Narayangarh'),\n \t array('id' => '2342','state_id' => '21','name' => 'Narsimhapur'),\n \t array('id' => '2343','state_id' => '21','name' => 'Narsingarh'),\n \t array('id' => '2344','state_id' => '21','name' => 'Narsinghpur'),\n \t array('id' => '2345','state_id' => '21','name' => 'Narwar'),\n \t array('id' => '2346','state_id' => '21','name' => 'Nasrullaganj'),\n \t array('id' => '2347','state_id' => '21','name' => 'Naudhia'),\n \t array('id' => '2348','state_id' => '21','name' => 'Naugaon'),\n \t array('id' => '2349','state_id' => '21','name' => 'Naurozabad'),\n \t array('id' => '2350','state_id' => '21','name' => 'Neemuch'),\n \t array('id' => '2351','state_id' => '21','name' => 'Nepa Nagar'),\n \t array('id' => '2352','state_id' => '21','name' => 'Neuton Chikhli Kalan'),\n \t array('id' => '2353','state_id' => '21','name' => 'Nimach'),\n \t array('id' => '2354','state_id' => '21','name' => 'Niwari'),\n \t array('id' => '2355','state_id' => '21','name' => 'Obedullaganj'),\n \t array('id' => '2356','state_id' => '21','name' => 'Omkareshwar'),\n \t array('id' => '2357','state_id' => '21','name' => 'Orachha'),\n \t array('id' => '2358','state_id' => '21','name' => 'Ordinance Factory Itarsi'),\n \t array('id' => '2359','state_id' => '21','name' => 'Pachmarhi'),\n \t array('id' => '2360','state_id' => '21','name' => 'Pachmarhi Cantonment'),\n \t array('id' => '2361','state_id' => '21','name' => 'Pachore'),\n \t array('id' => '2362','state_id' => '21','name' => 'Palchorai'),\n \t array('id' => '2363','state_id' => '21','name' => 'Palda'),\n \t array('id' => '2364','state_id' => '21','name' => 'Palera'),\n \t array('id' => '2365','state_id' => '21','name' => 'Pali'),\n \t array('id' => '2366','state_id' => '21','name' => 'Panagar'),\n \t array('id' => '2367','state_id' => '21','name' => 'Panara'),\n \t array('id' => '2368','state_id' => '21','name' => 'Pandaria'),\n \t array('id' => '2369','state_id' => '21','name' => 'Pandhana'),\n \t array('id' => '2370','state_id' => '21','name' => 'Pandhurna'),\n \t array('id' => '2371','state_id' => '21','name' => 'Panna'),\n \t array('id' => '2372','state_id' => '21','name' => 'Pansemal'),\n \t array('id' => '2373','state_id' => '21','name' => 'Parasia'),\n \t array('id' => '2374','state_id' => '21','name' => 'Pasan'),\n \t array('id' => '2375','state_id' => '21','name' => 'Patan'),\n \t array('id' => '2376','state_id' => '21','name' => 'Patharia'),\n \t array('id' => '2377','state_id' => '21','name' => 'Pawai'),\n \t array('id' => '2378','state_id' => '21','name' => 'Petlawad'),\n \t array('id' => '2379','state_id' => '21','name' => 'Phuph Kalan'),\n \t array('id' => '2380','state_id' => '21','name' => 'Pichhore'),\n \t array('id' => '2381','state_id' => '21','name' => 'Pipariya'),\n \t array('id' => '2382','state_id' => '21','name' => 'Pipliya Mandi'),\n \t array('id' => '2383','state_id' => '21','name' => 'Piploda'),\n \t array('id' => '2384','state_id' => '21','name' => 'Pithampur'),\n \t array('id' => '2385','state_id' => '21','name' => 'Polay Kalan'),\n \t array('id' => '2386','state_id' => '21','name' => 'Porsa'),\n \t array('id' => '2387','state_id' => '21','name' => 'Prithvipur'),\n \t array('id' => '2388','state_id' => '21','name' => 'Raghogarh'),\n \t array('id' => '2389','state_id' => '21','name' => 'Rahatgarh'),\n \t array('id' => '2390','state_id' => '21','name' => 'Raisen'),\n \t array('id' => '2391','state_id' => '21','name' => 'Rajakhedi'),\n \t array('id' => '2392','state_id' => '21','name' => 'Rajgarh'),\n \t array('id' => '2393','state_id' => '21','name' => 'Rajnagar'),\n \t array('id' => '2394','state_id' => '21','name' => 'Rajpur'),\n \t array('id' => '2395','state_id' => '21','name' => 'Rampur Baghelan'),\n \t array('id' => '2396','state_id' => '21','name' => 'Rampur Naikin'),\n \t array('id' => '2397','state_id' => '21','name' => 'Rampura'),\n \t array('id' => '2398','state_id' => '21','name' => 'Ranapur'),\n \t array('id' => '2399','state_id' => '21','name' => 'Ranipura'),\n \t array('id' => '2400','state_id' => '21','name' => 'Ratangarh'),\n \t array('id' => '2401','state_id' => '21','name' => 'Ratlam'),\n \t array('id' => '2402','state_id' => '21','name' => 'Ratlam Kasba'),\n \t array('id' => '2403','state_id' => '21','name' => 'Rau'),\n \t array('id' => '2404','state_id' => '21','name' => 'Rehli'),\n \t array('id' => '2405','state_id' => '21','name' => 'Rehti'),\n \t array('id' => '2406','state_id' => '21','name' => 'Rewa'),\n \t array('id' => '2407','state_id' => '21','name' => 'Sabalgarh'),\n \t array('id' => '2408','state_id' => '21','name' => 'Sagar'),\n \t array('id' => '2409','state_id' => '21','name' => 'Sagar Cantonment'),\n \t array('id' => '2410','state_id' => '21','name' => 'Sailana'),\n \t array('id' => '2411','state_id' => '21','name' => 'Sanawad'),\n \t array('id' => '2412','state_id' => '21','name' => 'Sanchi'),\n \t array('id' => '2413','state_id' => '21','name' => 'Sanwer'),\n \t array('id' => '2414','state_id' => '21','name' => 'Sarangpur'),\n \t array('id' => '2415','state_id' => '21','name' => 'Sardarpur'),\n \t array('id' => '2416','state_id' => '21','name' => 'Sarni'),\n \t array('id' => '2417','state_id' => '21','name' => 'Satai'),\n \t array('id' => '2418','state_id' => '21','name' => 'Satna'),\n \t array('id' => '2419','state_id' => '21','name' => 'Satwas'),\n \t array('id' => '2420','state_id' => '21','name' => 'Sausar'),\n \t array('id' => '2421','state_id' => '21','name' => 'Sehore'),\n \t array('id' => '2422','state_id' => '21','name' => 'Semaria'),\n \t array('id' => '2423','state_id' => '21','name' => 'Sendhwa'),\n \t array('id' => '2424','state_id' => '21','name' => 'Seondha'),\n \t array('id' => '2425','state_id' => '21','name' => 'Seoni'),\n \t array('id' => '2426','state_id' => '21','name' => 'Seoni Malwa'),\n \t array('id' => '2427','state_id' => '21','name' => 'Sethia'),\n \t array('id' => '2428','state_id' => '21','name' => 'Shahdol'),\n \t array('id' => '2429','state_id' => '21','name' => 'Shahgarh'),\n \t array('id' => '2430','state_id' => '21','name' => 'Shahpur'),\n \t array('id' => '2431','state_id' => '21','name' => 'Shahpura'),\n \t array('id' => '2432','state_id' => '21','name' => 'Shajapur'),\n \t array('id' => '2433','state_id' => '21','name' => 'Shamgarh'),\n \t array('id' => '2434','state_id' => '21','name' => 'Sheopur'),\n \t array('id' => '2435','state_id' => '21','name' => 'Shivpuri'),\n \t array('id' => '2436','state_id' => '21','name' => 'Shujalpur'),\n \t array('id' => '2437','state_id' => '21','name' => 'Sidhi'),\n \t array('id' => '2438','state_id' => '21','name' => 'Sihora'),\n \t array('id' => '2439','state_id' => '21','name' => 'Singolo'),\n \t array('id' => '2440','state_id' => '21','name' => 'Singrauli'),\n \t array('id' => '2441','state_id' => '21','name' => 'Sinhasa'),\n \t array('id' => '2442','state_id' => '21','name' => 'Sirgora'),\n \t array('id' => '2443','state_id' => '21','name' => 'Sirmaur'),\n \t array('id' => '2444','state_id' => '21','name' => 'Sironj'),\n \t array('id' => '2445','state_id' => '21','name' => 'Sitamau'),\n \t array('id' => '2446','state_id' => '21','name' => 'Sohagpur'),\n \t array('id' => '2447','state_id' => '21','name' => 'Sonkatch'),\n \t array('id' => '2448','state_id' => '21','name' => 'Soyatkalan'),\n \t array('id' => '2449','state_id' => '21','name' => 'Suhagi'),\n \t array('id' => '2450','state_id' => '21','name' => 'Sultanpur'),\n \t array('id' => '2451','state_id' => '21','name' => 'Susner'),\n \t array('id' => '2452','state_id' => '21','name' => 'Suthaliya'),\n \t array('id' => '2453','state_id' => '21','name' => 'Tal'),\n \t array('id' => '2454','state_id' => '21','name' => 'Talen'),\n \t array('id' => '2455','state_id' => '21','name' => 'Tarana'),\n \t array('id' => '2456','state_id' => '21','name' => 'Taricharkalan'),\n \t array('id' => '2457','state_id' => '21','name' => 'Tekanpur'),\n \t array('id' => '2458','state_id' => '21','name' => 'Tendukheda'),\n \t array('id' => '2459','state_id' => '21','name' => 'Teonthar'),\n \t array('id' => '2460','state_id' => '21','name' => 'Thandia'),\n \t array('id' => '2461','state_id' => '21','name' => 'Tikamgarh'),\n \t array('id' => '2462','state_id' => '21','name' => 'Timarni'),\n \t array('id' => '2463','state_id' => '21','name' => 'Tirodi'),\n \t array('id' => '2464','state_id' => '21','name' => 'Udaipura'),\n \t array('id' => '2465','state_id' => '21','name' => 'Ujjain'),\n \t array('id' => '2466','state_id' => '21','name' => 'Ukwa'),\n \t array('id' => '2467','state_id' => '21','name' => 'Umaria'),\n \t array('id' => '2468','state_id' => '21','name' => 'Unchahara'),\n \t array('id' => '2469','state_id' => '21','name' => 'Unhel'),\n \t array('id' => '2470','state_id' => '21','name' => 'Vehicle Factory Jabalpur'),\n \t array('id' => '2471','state_id' => '21','name' => 'Vidisha'),\n \t array('id' => '2472','state_id' => '21','name' => 'Vijayraghavgarh'),\n \t array('id' => '2473','state_id' => '21','name' => 'Waraseoni'),\n \t array('id' => '2474','state_id' => '22','name' => 'Achalpur'),\n \t array('id' => '2475','state_id' => '22','name' => 'Aheri'),\n \t array('id' => '2476','state_id' => '22','name' => 'Ahmadnagar Cantonment'),\n \t array('id' => '2477','state_id' => '22','name' => 'Ahmadpur'),\n \t array('id' => '2478','state_id' => '22','name' => 'Ahmednagar'),\n \t array('id' => '2479','state_id' => '22','name' => 'Ajra'),\n \t array('id' => '2480','state_id' => '22','name' => 'Akalkot'),\n \t array('id' => '2481','state_id' => '22','name' => 'Akkalkuwa'),\n \t array('id' => '2482','state_id' => '22','name' => 'Akola'),\n \t array('id' => '2483','state_id' => '22','name' => 'Akot'),\n \t array('id' => '2484','state_id' => '22','name' => 'Alandi'),\n \t array('id' => '2485','state_id' => '22','name' => 'Alibag'),\n \t array('id' => '2486','state_id' => '22','name' => 'Allapalli'),\n \t array('id' => '2487','state_id' => '22','name' => 'Alore'),\n \t array('id' => '2488','state_id' => '22','name' => 'Amalner'),\n \t array('id' => '2489','state_id' => '22','name' => 'Ambad'),\n \t array('id' => '2490','state_id' => '22','name' => 'Ambajogai'),\n \t array('id' => '2491','state_id' => '22','name' => 'Ambernath'),\n \t array('id' => '2492','state_id' => '22','name' => 'Ambivali Tarf Wankhal'),\n \t array('id' => '2493','state_id' => '22','name' => 'Amgaon'),\n \t array('id' => '2494','state_id' => '22','name' => 'Amravati'),\n \t array('id' => '2495','state_id' => '22','name' => 'Anjangaon'),\n \t array('id' => '2496','state_id' => '22','name' => 'Arvi'),\n \t array('id' => '2497','state_id' => '22','name' => 'Ashta'),\n \t array('id' => '2498','state_id' => '22','name' => 'Ashti'),\n \t array('id' => '2499','state_id' => '22','name' => 'Aurangabad'),\n \t array('id' => '2500','state_id' => '22','name' => 'Aurangabad Cantonment'),\n \t array('id' => '2501','state_id' => '22','name' => 'Ausa'),\n \t array('id' => '2502','state_id' => '22','name' => 'Babhulgaon'),\n \t array('id' => '2503','state_id' => '22','name' => 'Badlapur'),\n \t array('id' => '2504','state_id' => '22','name' => 'Balapur'),\n \t array('id' => '2505','state_id' => '22','name' => 'Ballarpur'),\n \t array('id' => '2506','state_id' => '22','name' => 'Baramati'),\n \t array('id' => '2507','state_id' => '22','name' => 'Barshi'),\n \t array('id' => '2508','state_id' => '22','name' => 'Basmat'),\n \t array('id' => '2509','state_id' => '22','name' => 'Beed'),\n \t array('id' => '2510','state_id' => '22','name' => 'Bhadravati'),\n \t array('id' => '2511','state_id' => '22','name' => 'Bhagur'),\n \t array('id' => '2512','state_id' => '22','name' => 'Bhandara'),\n \t array('id' => '2513','state_id' => '22','name' => 'Bhigvan'),\n \t array('id' => '2514','state_id' => '22','name' => 'Bhingar'),\n \t array('id' => '2515','state_id' => '22','name' => 'Bhiwandi'),\n \t array('id' => '2516','state_id' => '22','name' => 'Bhokhardan'),\n \t array('id' => '2517','state_id' => '22','name' => 'Bhor'),\n \t array('id' => '2518','state_id' => '22','name' => 'Bhosari'),\n \t array('id' => '2519','state_id' => '22','name' => 'Bhum'),\n \t array('id' => '2520','state_id' => '22','name' => 'Bhusawal'),\n \t array('id' => '2521','state_id' => '22','name' => 'Bid'),\n \t array('id' => '2522','state_id' => '22','name' => 'Biloli'),\n \t array('id' => '2523','state_id' => '22','name' => 'Birwadi'),\n \t array('id' => '2524','state_id' => '22','name' => 'Boisar'),\n \t array('id' => '2525','state_id' => '22','name' => 'Bop Khel'),\n \t array('id' => '2526','state_id' => '22','name' => 'Brahmapuri'),\n \t array('id' => '2527','state_id' => '22','name' => 'Budhgaon'),\n \t array('id' => '2528','state_id' => '22','name' => 'Buldana'),\n \t array('id' => '2529','state_id' => '22','name' => 'Buldhana'),\n \t array('id' => '2530','state_id' => '22','name' => 'Butibori'),\n \t array('id' => '2531','state_id' => '22','name' => 'Chakan'),\n \t array('id' => '2532','state_id' => '22','name' => 'Chalisgaon'),\n \t array('id' => '2533','state_id' => '22','name' => 'Chandrapur'),\n \t array('id' => '2534','state_id' => '22','name' => 'Chandur'),\n \t array('id' => '2535','state_id' => '22','name' => 'Chandur Bazar'),\n \t array('id' => '2536','state_id' => '22','name' => 'Chandvad'),\n \t array('id' => '2537','state_id' => '22','name' => 'Chicholi'),\n \t array('id' => '2538','state_id' => '22','name' => 'Chikhala'),\n \t array('id' => '2539','state_id' => '22','name' => 'Chikhaldara'),\n \t array('id' => '2540','state_id' => '22','name' => 'Chikhli'),\n \t array('id' => '2541','state_id' => '22','name' => 'Chinchani'),\n \t array('id' => '2542','state_id' => '22','name' => 'Chinchwad'),\n \t array('id' => '2543','state_id' => '22','name' => 'Chiplun'),\n \t array('id' => '2544','state_id' => '22','name' => 'Chopda'),\n \t array('id' => '2545','state_id' => '22','name' => 'Dabhol'),\n \t array('id' => '2546','state_id' => '22','name' => 'Dahance'),\n \t array('id' => '2547','state_id' => '22','name' => 'Dahanu'),\n \t array('id' => '2548','state_id' => '22','name' => 'Daharu'),\n \t array('id' => '2549','state_id' => '22','name' => 'Dapoli Camp'),\n \t array('id' => '2550','state_id' => '22','name' => 'Darwa'),\n \t array('id' => '2551','state_id' => '22','name' => 'Daryapur'),\n \t array('id' => '2552','state_id' => '22','name' => 'Dattapur'),\n \t array('id' => '2553','state_id' => '22','name' => 'Daund'),\n \t array('id' => '2554','state_id' => '22','name' => 'Davlameti'),\n \t array('id' => '2555','state_id' => '22','name' => 'Deglur'),\n \t array('id' => '2556','state_id' => '22','name' => 'Dehu Road'),\n \t array('id' => '2557','state_id' => '22','name' => 'Deolali'),\n \t array('id' => '2558','state_id' => '22','name' => 'Deolali Pravara'),\n \t array('id' => '2559','state_id' => '22','name' => 'Deoli'),\n \t array('id' => '2560','state_id' => '22','name' => 'Desaiganj'),\n \t array('id' => '2561','state_id' => '22','name' => 'Deulgaon Raja'),\n \t array('id' => '2562','state_id' => '22','name' => 'Dewhadi'),\n \t array('id' => '2563','state_id' => '22','name' => 'Dharangaon'),\n \t array('id' => '2564','state_id' => '22','name' => 'Dharmabad'),\n \t array('id' => '2565','state_id' => '22','name' => 'Dharur'),\n \t array('id' => '2566','state_id' => '22','name' => 'Dhatau'),\n \t array('id' => '2567','state_id' => '22','name' => 'Dhule'),\n \t array('id' => '2568','state_id' => '22','name' => 'Digdoh'),\n \t array('id' => '2569','state_id' => '22','name' => 'Diglur'),\n \t array('id' => '2570','state_id' => '22','name' => 'Digras'),\n \t array('id' => '2571','state_id' => '22','name' => 'Dombivli'),\n \t array('id' => '2572','state_id' => '22','name' => 'Dondaicha'),\n \t array('id' => '2573','state_id' => '22','name' => 'Dudhani'),\n \t array('id' => '2574','state_id' => '22','name' => 'Durgapur'),\n \t array('id' => '2575','state_id' => '22','name' => 'Dyane'),\n \t array('id' => '2576','state_id' => '22','name' => 'Edandol'),\n \t array('id' => '2577','state_id' => '22','name' => 'Eklahare'),\n \t array('id' => '2578','state_id' => '22','name' => 'Faizpur'),\n \t array('id' => '2579','state_id' => '22','name' => 'Fekari'),\n \t array('id' => '2580','state_id' => '22','name' => 'Gadchiroli'),\n \t array('id' => '2581','state_id' => '22','name' => 'Gadhinghaj'),\n \t array('id' => '2582','state_id' => '22','name' => 'Gandhi Nagar'),\n \t array('id' => '2583','state_id' => '22','name' => 'Ganeshpur'),\n \t array('id' => '2584','state_id' => '22','name' => 'Gangakher'),\n \t array('id' => '2585','state_id' => '22','name' => 'Gangapur'),\n \t array('id' => '2586','state_id' => '22','name' => 'Gevrai'),\n \t array('id' => '2587','state_id' => '22','name' => 'Ghatanji'),\n \t array('id' => '2588','state_id' => '22','name' => 'Ghoti'),\n \t array('id' => '2589','state_id' => '22','name' => 'Ghugus'),\n \t array('id' => '2590','state_id' => '22','name' => 'Ghulewadi'),\n \t array('id' => '2591','state_id' => '22','name' => 'Godoli'),\n \t array('id' => '2592','state_id' => '22','name' => 'Gondia'),\n \t array('id' => '2593','state_id' => '22','name' => 'Guhagar'),\n \t array('id' => '2594','state_id' => '22','name' => 'Hadgaon'),\n \t array('id' => '2595','state_id' => '22','name' => 'Harnai Beach'),\n \t array('id' => '2596','state_id' => '22','name' => 'Hinganghat'),\n \t array('id' => '2597','state_id' => '22','name' => 'Hingoli'),\n \t array('id' => '2598','state_id' => '22','name' => 'Hupari'),\n \t array('id' => '2599','state_id' => '22','name' => 'Ichalkaranji'),\n \t array('id' => '2600','state_id' => '22','name' => 'Igatpuri'),\n \t array('id' => '2601','state_id' => '22','name' => 'Indapur'),\n \t array('id' => '2602','state_id' => '22','name' => 'Jaisinghpur'),\n \t array('id' => '2603','state_id' => '22','name' => 'Jalgaon'),\n \t array('id' => '2604','state_id' => '22','name' => 'Jalna'),\n \t array('id' => '2605','state_id' => '22','name' => 'Jamkhed'),\n \t array('id' => '2606','state_id' => '22','name' => 'Jawhar'),\n \t array('id' => '2607','state_id' => '22','name' => 'Jaysingpur'),\n \t array('id' => '2608','state_id' => '22','name' => 'Jejuri'),\n \t array('id' => '2609','state_id' => '22','name' => 'Jintur'),\n \t array('id' => '2610','state_id' => '22','name' => 'Junnar'),\n \t array('id' => '2611','state_id' => '22','name' => 'Kabnur'),\n \t array('id' => '2612','state_id' => '22','name' => 'Kagal'),\n \t array('id' => '2613','state_id' => '22','name' => 'Kalamb'),\n \t array('id' => '2614','state_id' => '22','name' => 'Kalamnuri'),\n \t array('id' => '2615','state_id' => '22','name' => 'Kalas'),\n \t array('id' => '2616','state_id' => '22','name' => 'Kalmeshwar'),\n \t array('id' => '2617','state_id' => '22','name' => 'Kalundre'),\n \t array('id' => '2618','state_id' => '22','name' => 'Kalyan'),\n \t array('id' => '2619','state_id' => '22','name' => 'Kamthi'),\n \t array('id' => '2620','state_id' => '22','name' => 'Kamthi Cantonment'),\n \t array('id' => '2621','state_id' => '22','name' => 'Kandari'),\n \t array('id' => '2622','state_id' => '22','name' => 'Kandhar'),\n \t array('id' => '2623','state_id' => '22','name' => 'Kandri'),\n \t array('id' => '2624','state_id' => '22','name' => 'Kandri II'),\n \t array('id' => '2625','state_id' => '22','name' => 'Kanhan'),\n \t array('id' => '2626','state_id' => '22','name' => 'Kankavli'),\n \t array('id' => '2627','state_id' => '22','name' => 'Kannad'),\n \t array('id' => '2628','state_id' => '22','name' => 'Karad'),\n \t array('id' => '2629','state_id' => '22','name' => 'Karanja'),\n \t array('id' => '2630','state_id' => '22','name' => 'Karanje Tarf'),\n \t array('id' => '2631','state_id' => '22','name' => 'Karivali'),\n \t array('id' => '2632','state_id' => '22','name' => 'Karjat'),\n \t array('id' => '2633','state_id' => '22','name' => 'Karmala'),\n \t array('id' => '2634','state_id' => '22','name' => 'Kasara Budruk'),\n \t array('id' => '2635','state_id' => '22','name' => 'Katai'),\n \t array('id' => '2636','state_id' => '22','name' => 'Katkar'),\n \t array('id' => '2637','state_id' => '22','name' => 'Katol'),\n \t array('id' => '2638','state_id' => '22','name' => 'Kegaon'),\n \t array('id' => '2639','state_id' => '22','name' => 'Khadkale'),\n \t array('id' => '2640','state_id' => '22','name' => 'Khadki'),\n \t array('id' => '2641','state_id' => '22','name' => 'Khamgaon'),\n \t array('id' => '2642','state_id' => '22','name' => 'Khapa'),\n \t array('id' => '2643','state_id' => '22','name' => 'Kharadi'),\n \t array('id' => '2644','state_id' => '22','name' => 'Kharakvasla'),\n \t array('id' => '2645','state_id' => '22','name' => 'Khed'),\n \t array('id' => '2646','state_id' => '22','name' => 'Kherdi'),\n \t array('id' => '2647','state_id' => '22','name' => 'Khoni'),\n \t array('id' => '2648','state_id' => '22','name' => 'Khopoli'),\n \t array('id' => '2649','state_id' => '22','name' => 'Khuldabad'),\n \t array('id' => '2650','state_id' => '22','name' => 'Kinwat'),\n \t array('id' => '2651','state_id' => '22','name' => 'Kodoli'),\n \t array('id' => '2652','state_id' => '22','name' => 'Kolhapur'),\n \t array('id' => '2653','state_id' => '22','name' => 'Kon'),\n \t array('id' => '2654','state_id' => '22','name' => 'Kondumal'),\n \t array('id' => '2655','state_id' => '22','name' => 'Kopargaon'),\n \t array('id' => '2656','state_id' => '22','name' => 'Kopharad'),\n \t array('id' => '2657','state_id' => '22','name' => 'Koradi'),\n \t array('id' => '2658','state_id' => '22','name' => 'Koregaon'),\n \t array('id' => '2659','state_id' => '22','name' => 'Korochi'),\n \t array('id' => '2660','state_id' => '22','name' => 'Kudal'),\n \t array('id' => '2661','state_id' => '22','name' => 'Kundaim'),\n \t array('id' => '2662','state_id' => '22','name' => 'Kundalwadi'),\n \t array('id' => '2663','state_id' => '22','name' => 'Kurandvad'),\n \t array('id' => '2664','state_id' => '22','name' => 'Kurduvadi'),\n \t array('id' => '2665','state_id' => '22','name' => 'Kusgaon Budruk'),\n \t array('id' => '2666','state_id' => '22','name' => 'Lanja'),\n \t array('id' => '2667','state_id' => '22','name' => 'Lasalgaon'),\n \t array('id' => '2668','state_id' => '22','name' => 'Latur'),\n \t array('id' => '2669','state_id' => '22','name' => 'Loha'),\n \t array('id' => '2670','state_id' => '22','name' => 'Lohegaon'),\n \t array('id' => '2671','state_id' => '22','name' => 'Lonar'),\n \t array('id' => '2672','state_id' => '22','name' => 'Lonavala'),\n \t array('id' => '2673','state_id' => '22','name' => 'Madhavnagar'),\n \t array('id' => '2674','state_id' => '22','name' => 'Mahabaleshwar'),\n \t array('id' => '2675','state_id' => '22','name' => 'Mahad'),\n \t array('id' => '2676','state_id' => '22','name' => 'Mahadula'),\n \t array('id' => '2677','state_id' => '22','name' => 'Maindargi'),\n \t array('id' => '2678','state_id' => '22','name' => 'Majalgaon'),\n \t array('id' => '2679','state_id' => '22','name' => 'Malegaon'),\n \t array('id' => '2680','state_id' => '22','name' => 'Malgaon'),\n \t array('id' => '2681','state_id' => '22','name' => 'Malkapur'),\n \t array('id' => '2682','state_id' => '22','name' => 'Malwan'),\n \t array('id' => '2683','state_id' => '22','name' => 'Manadur'),\n \t array('id' => '2684','state_id' => '22','name' => 'Manchar'),\n \t array('id' => '2685','state_id' => '22','name' => 'Mangalvedhe'),\n \t array('id' => '2686','state_id' => '22','name' => 'Mangrul Pir'),\n \t array('id' => '2687','state_id' => '22','name' => 'Manmad'),\n \t array('id' => '2688','state_id' => '22','name' => 'Manor'),\n \t array('id' => '2689','state_id' => '22','name' => 'Mansar'),\n \t array('id' => '2690','state_id' => '22','name' => 'Manwath'),\n \t array('id' => '2691','state_id' => '22','name' => 'Mapuca'),\n \t array('id' => '2692','state_id' => '22','name' => 'Matheran'),\n \t array('id' => '2693','state_id' => '22','name' => 'Mehkar'),\n \t array('id' => '2694','state_id' => '22','name' => 'Mhasla'),\n \t array('id' => '2695','state_id' => '22','name' => 'Mhaswad'),\n \t array('id' => '2696','state_id' => '22','name' => 'Mira Bhayandar'),\n \t array('id' => '2697','state_id' => '22','name' => 'Miraj'),\n \t array('id' => '2698','state_id' => '22','name' => 'Mohpa'),\n \t array('id' => '2699','state_id' => '22','name' => 'Mohpada'),\n \t array('id' => '2700','state_id' => '22','name' => 'Moram'),\n \t array('id' => '2701','state_id' => '22','name' => 'Morshi'),\n \t array('id' => '2702','state_id' => '22','name' => 'Mowad'),\n \t array('id' => '2703','state_id' => '22','name' => 'Mudkhed'),\n \t array('id' => '2704','state_id' => '22','name' => 'Mukhed'),\n \t array('id' => '2705','state_id' => '22','name' => 'Mul'),\n \t array('id' => '2706','state_id' => '22','name' => 'Mulshi'),\n \t array('id' => '2707','state_id' => '22','name' => 'Mumbai'),\n \t array('id' => '2708','state_id' => '22','name' => 'Murbad'),\n \t array('id' => '2709','state_id' => '22','name' => 'Murgud'),\n \t array('id' => '2710','state_id' => '22','name' => 'Murtijapur'),\n \t array('id' => '2711','state_id' => '22','name' => 'Murud'),\n \t array('id' => '2712','state_id' => '22','name' => 'Nachane'),\n \t array('id' => '2713','state_id' => '22','name' => 'Nagardeole'),\n \t array('id' => '2714','state_id' => '22','name' => 'Nagothane'),\n \t array('id' => '2715','state_id' => '22','name' => 'Nagpur'),\n \t array('id' => '2716','state_id' => '22','name' => 'Nakoda'),\n \t array('id' => '2717','state_id' => '22','name' => 'Nalasopara'),\n \t array('id' => '2718','state_id' => '22','name' => 'Naldurg'),\n \t array('id' => '2719','state_id' => '22','name' => 'Nanded'),\n \t array('id' => '2720','state_id' => '22','name' => 'Nandgaon'),\n \t array('id' => '2721','state_id' => '22','name' => 'Nandura'),\n \t array('id' => '2722','state_id' => '22','name' => 'Nandurbar'),\n \t array('id' => '2723','state_id' => '22','name' => 'Narkhed'),\n \t array('id' => '2724','state_id' => '22','name' => 'Nashik'),\n \t array('id' => '2725','state_id' => '22','name' => 'Navapur'),\n \t array('id' => '2726','state_id' => '22','name' => 'Navi Mumbai'),\n \t array('id' => '2727','state_id' => '22','name' => 'Navi Mumbai Panvel'),\n \t array('id' => '2728','state_id' => '22','name' => 'Neral'),\n \t array('id' => '2729','state_id' => '22','name' => 'Nigdi'),\n \t array('id' => '2730','state_id' => '22','name' => 'Nilanga'),\n \t array('id' => '2731','state_id' => '22','name' => 'Nildoh'),\n \t array('id' => '2732','state_id' => '22','name' => 'Nimbhore'),\n \t array('id' => '2733','state_id' => '22','name' => 'Ojhar'),\n \t array('id' => '2734','state_id' => '22','name' => 'Osmanabad'),\n \t array('id' => '2735','state_id' => '22','name' => 'Pachgaon'),\n \t array('id' => '2736','state_id' => '22','name' => 'Pachora'),\n \t array('id' => '2737','state_id' => '22','name' => 'Padagha'),\n \t array('id' => '2738','state_id' => '22','name' => 'Paithan'),\n \t array('id' => '2739','state_id' => '22','name' => 'Palghar'),\n \t array('id' => '2740','state_id' => '22','name' => 'Pali'),\n \t array('id' => '2741','state_id' => '22','name' => 'Panchgani'),\n \t array('id' => '2742','state_id' => '22','name' => 'Pandhakarwada'),\n \t array('id' => '2743','state_id' => '22','name' => 'Pandharpur'),\n \t array('id' => '2744','state_id' => '22','name' => 'Panhala'),\n \t array('id' => '2745','state_id' => '22','name' => 'Panvel'),\n \t array('id' => '2746','state_id' => '22','name' => 'Paranda'),\n \t array('id' => '2747','state_id' => '22','name' => 'Parbhani'),\n \t array('id' => '2748','state_id' => '22','name' => 'Parli'),\n \t array('id' => '2749','state_id' => '22','name' => 'Parola'),\n \t array('id' => '2750','state_id' => '22','name' => 'Partur'),\n \t array('id' => '2751','state_id' => '22','name' => 'Pasthal'),\n \t array('id' => '2752','state_id' => '22','name' => 'Patan'),\n \t array('id' => '2753','state_id' => '22','name' => 'Pathardi'),\n \t array('id' => '2754','state_id' => '22','name' => 'Pathri'),\n \t array('id' => '2755','state_id' => '22','name' => 'Patur'),\n \t array('id' => '2756','state_id' => '22','name' => 'Pawni'),\n \t array('id' => '2757','state_id' => '22','name' => 'Pen'),\n \t array('id' => '2758','state_id' => '22','name' => 'Pethumri'),\n \t array('id' => '2759','state_id' => '22','name' => 'Phaltan'),\n \t array('id' => '2760','state_id' => '22','name' => 'Pimpri'),\n \t array('id' => '2761','state_id' => '22','name' => 'Poladpur'),\n \t array('id' => '2762','state_id' => '22','name' => 'Pulgaon'),\n \t array('id' => '2763','state_id' => '22','name' => 'Pune'),\n \t array('id' => '2764','state_id' => '22','name' => 'Pune Cantonment'),\n \t array('id' => '2765','state_id' => '22','name' => 'Purna'),\n \t array('id' => '2766','state_id' => '22','name' => 'Purushottamnagar'),\n \t array('id' => '2767','state_id' => '22','name' => 'Pusad'),\n \t array('id' => '2768','state_id' => '22','name' => 'Rahimatpur'),\n \t array('id' => '2769','state_id' => '22','name' => 'Rahta Pimplas'),\n \t array('id' => '2770','state_id' => '22','name' => 'Rahuri'),\n \t array('id' => '2771','state_id' => '22','name' => 'Raigad'),\n \t array('id' => '2772','state_id' => '22','name' => 'Rajapur'),\n \t array('id' => '2773','state_id' => '22','name' => 'Rajgurunagar'),\n \t array('id' => '2774','state_id' => '22','name' => 'Rajur'),\n \t array('id' => '2775','state_id' => '22','name' => 'Rajura'),\n \t array('id' => '2776','state_id' => '22','name' => 'Ramtek'),\n \t array('id' => '2777','state_id' => '22','name' => 'Ratnagiri'),\n \t array('id' => '2778','state_id' => '22','name' => 'Ravalgaon'),\n \t array('id' => '2779','state_id' => '22','name' => 'Raver'),\n \t array('id' => '2780','state_id' => '22','name' => 'Revadanda'),\n \t array('id' => '2781','state_id' => '22','name' => 'Risod'),\n \t array('id' => '2782','state_id' => '22','name' => 'Roha Ashtami'),\n \t array('id' => '2783','state_id' => '22','name' => 'Sakri'),\n \t array('id' => '2784','state_id' => '22','name' => 'Sandor'),\n \t array('id' => '2785','state_id' => '22','name' => 'Sangamner'),\n \t array('id' => '2786','state_id' => '22','name' => 'Sangli'),\n \t array('id' => '2787','state_id' => '22','name' => 'Sangole'),\n \t array('id' => '2788','state_id' => '22','name' => 'Sasti'),\n \t array('id' => '2789','state_id' => '22','name' => 'Sasvad'),\n \t array('id' => '2790','state_id' => '22','name' => 'Satana'),\n \t array('id' => '2791','state_id' => '22','name' => 'Satara'),\n \t array('id' => '2792','state_id' => '22','name' => 'Savantvadi'),\n \t array('id' => '2793','state_id' => '22','name' => 'Savda'),\n \t array('id' => '2794','state_id' => '22','name' => 'Savner'),\n \t array('id' => '2795','state_id' => '22','name' => 'Sawari Jawharnagar'),\n \t array('id' => '2796','state_id' => '22','name' => 'Selu'),\n \t array('id' => '2797','state_id' => '22','name' => 'Shahada'),\n \t array('id' => '2798','state_id' => '22','name' => 'Shahapur'),\n \t array('id' => '2799','state_id' => '22','name' => 'Shegaon'),\n \t array('id' => '2800','state_id' => '22','name' => 'Shelar'),\n \t array('id' => '2801','state_id' => '22','name' => 'Shendurjana'),\n \t array('id' => '2802','state_id' => '22','name' => 'Shirdi'),\n \t array('id' => '2803','state_id' => '22','name' => 'Shirgaon'),\n \t array('id' => '2804','state_id' => '22','name' => 'Shirpur'),\n \t array('id' => '2805','state_id' => '22','name' => 'Shirur'),\n \t array('id' => '2806','state_id' => '22','name' => 'Shirwal'),\n \t array('id' => '2807','state_id' => '22','name' => 'Shivatkar'),\n \t array('id' => '2808','state_id' => '22','name' => 'Shrigonda'),\n \t array('id' => '2809','state_id' => '22','name' => 'Shrirampur'),\n \t array('id' => '2810','state_id' => '22','name' => 'Shrirampur Rural'),\n \t array('id' => '2811','state_id' => '22','name' => 'Sillewada'),\n \t array('id' => '2812','state_id' => '22','name' => 'Sillod'),\n \t array('id' => '2813','state_id' => '22','name' => 'Sindhudurg'),\n \t array('id' => '2814','state_id' => '22','name' => 'Sindi'),\n \t array('id' => '2815','state_id' => '22','name' => 'Sindi Turf Hindnagar'),\n \t array('id' => '2816','state_id' => '22','name' => 'Sindkhed Raja'),\n \t array('id' => '2817','state_id' => '22','name' => 'Singnapur'),\n \t array('id' => '2818','state_id' => '22','name' => 'Sinnar'),\n \t array('id' => '2819','state_id' => '22','name' => 'Sirur'),\n \t array('id' => '2820','state_id' => '22','name' => 'Sitasawangi'),\n \t array('id' => '2821','state_id' => '22','name' => 'Solapur'),\n \t array('id' => '2822','state_id' => '22','name' => 'Sonai'),\n \t array('id' => '2823','state_id' => '22','name' => 'Sonegaon'),\n \t array('id' => '2824','state_id' => '22','name' => 'Soyagaon'),\n \t array('id' => '2825','state_id' => '22','name' => 'Srivardhan'),\n \t array('id' => '2826','state_id' => '22','name' => 'Surgana'),\n \t array('id' => '2827','state_id' => '22','name' => 'Talegaon Dabhade'),\n \t array('id' => '2828','state_id' => '22','name' => 'Taloda'),\n \t array('id' => '2829','state_id' => '22','name' => 'Taloja'),\n \t array('id' => '2830','state_id' => '22','name' => 'Talwade'),\n \t array('id' => '2831','state_id' => '22','name' => 'Tarapur'),\n \t array('id' => '2832','state_id' => '22','name' => 'Tasgaon'),\n \t array('id' => '2833','state_id' => '22','name' => 'Tathavade'),\n \t array('id' => '2834','state_id' => '22','name' => 'Tekadi'),\n \t array('id' => '2835','state_id' => '22','name' => 'Telhara'),\n \t array('id' => '2836','state_id' => '22','name' => 'Thane'),\n \t array('id' => '2837','state_id' => '22','name' => 'Tirira'),\n \t array('id' => '2838','state_id' => '22','name' => 'Totaladoh'),\n \t array('id' => '2839','state_id' => '22','name' => 'Trimbak'),\n \t array('id' => '2840','state_id' => '22','name' => 'Tuljapur'),\n \t array('id' => '2841','state_id' => '22','name' => 'Tumsar'),\n \t array('id' => '2842','state_id' => '22','name' => 'Uchgaon'),\n \t array('id' => '2843','state_id' => '22','name' => 'Udgir'),\n \t array('id' => '2844','state_id' => '22','name' => 'Ulhasnagar'),\n \t array('id' => '2845','state_id' => '22','name' => 'Umarga'),\n \t array('id' => '2846','state_id' => '22','name' => 'Umarkhed'),\n \t array('id' => '2847','state_id' => '22','name' => 'Umarsara'),\n \t array('id' => '2848','state_id' => '22','name' => 'Umbar Pada Nandade'),\n \t array('id' => '2849','state_id' => '22','name' => 'Umred'),\n \t array('id' => '2850','state_id' => '22','name' => 'Umri Pragane Balapur'),\n \t array('id' => '2851','state_id' => '22','name' => 'Uran'),\n \t array('id' => '2852','state_id' => '22','name' => 'Uran Islampur'),\n \t array('id' => '2853','state_id' => '22','name' => 'Utekhol'),\n \t array('id' => '2854','state_id' => '22','name' => 'Vada'),\n \t array('id' => '2855','state_id' => '22','name' => 'Vadgaon'),\n \t array('id' => '2856','state_id' => '22','name' => 'Vadgaon Kasba'),\n \t array('id' => '2857','state_id' => '22','name' => 'Vaijapur'),\n \t array('id' => '2858','state_id' => '22','name' => 'Vanvadi'),\n \t array('id' => '2859','state_id' => '22','name' => 'Varangaon'),\n \t array('id' => '2860','state_id' => '22','name' => 'Vasai'),\n \t array('id' => '2861','state_id' => '22','name' => 'Vasantnagar'),\n \t array('id' => '2862','state_id' => '22','name' => 'Vashind'),\n \t array('id' => '2863','state_id' => '22','name' => 'Vengurla'),\n \t array('id' => '2864','state_id' => '22','name' => 'Virar'),\n \t array('id' => '2865','state_id' => '22','name' => 'Visapur'),\n \t array('id' => '2866','state_id' => '22','name' => 'Vite'),\n \t array('id' => '2867','state_id' => '22','name' => 'Vithalwadi'),\n \t array('id' => '2868','state_id' => '22','name' => 'Wadi'),\n \t array('id' => '2869','state_id' => '22','name' => 'Waghapur'),\n \t array('id' => '2870','state_id' => '22','name' => 'Wai'),\n \t array('id' => '2871','state_id' => '22','name' => 'Wajegaon'),\n \t array('id' => '2872','state_id' => '22','name' => 'Walani'),\n \t array('id' => '2873','state_id' => '22','name' => 'Wanadongri'),\n \t array('id' => '2874','state_id' => '22','name' => 'Wani'),\n \t array('id' => '2875','state_id' => '22','name' => 'Wardha'),\n \t array('id' => '2876','state_id' => '22','name' => 'Warora'),\n \t array('id' => '2877','state_id' => '22','name' => 'Warthi'),\n \t array('id' => '2878','state_id' => '22','name' => 'Warud'),\n \t array('id' => '2879','state_id' => '22','name' => 'Washim'),\n \t array('id' => '2880','state_id' => '22','name' => 'Yaval'),\n \t array('id' => '2881','state_id' => '22','name' => 'Yavatmal'),\n \t array('id' => '2882','state_id' => '22','name' => 'Yeola'),\n \t array('id' => '2883','state_id' => '22','name' => 'Yerkheda'),\n \t array('id' => '2884','state_id' => '23','name' => 'Andro'),\n \t array('id' => '2885','state_id' => '23','name' => 'Bijoy Govinda'),\n \t array('id' => '2886','state_id' => '23','name' => 'Bishnupur'),\n \t array('id' => '2887','state_id' => '23','name' => 'Churachandpur'),\n \t array('id' => '2888','state_id' => '23','name' => 'Heriok'),\n \t array('id' => '2889','state_id' => '23','name' => 'Imphal'),\n \t array('id' => '2890','state_id' => '23','name' => 'Jiribam'),\n \t array('id' => '2891','state_id' => '23','name' => 'Kakching'),\n \t array('id' => '2892','state_id' => '23','name' => 'Kakching Khunou'),\n \t array('id' => '2893','state_id' => '23','name' => 'Khongman'),\n \t array('id' => '2894','state_id' => '23','name' => 'Kumbi'),\n \t array('id' => '2895','state_id' => '23','name' => 'Kwakta'),\n \t array('id' => '2896','state_id' => '23','name' => 'Lamai'),\n \t array('id' => '2897','state_id' => '23','name' => 'Lamjaotongba'),\n \t array('id' => '2898','state_id' => '23','name' => 'Lamshang'),\n \t array('id' => '2899','state_id' => '23','name' => 'Lilong'),\n \t array('id' => '2900','state_id' => '23','name' => 'Mayang Imphal'),\n \t array('id' => '2901','state_id' => '23','name' => 'Moirang'),\n \t array('id' => '2902','state_id' => '23','name' => 'Moreh'),\n \t array('id' => '2903','state_id' => '23','name' => 'Nambol'),\n \t array('id' => '2904','state_id' => '23','name' => 'Naoriya Pakhanglakpa'),\n \t array('id' => '2905','state_id' => '23','name' => 'Ningthoukhong'),\n \t array('id' => '2906','state_id' => '23','name' => 'Oinam'),\n \t array('id' => '2907','state_id' => '23','name' => 'Porompat'),\n \t array('id' => '2908','state_id' => '23','name' => 'Samurou'),\n \t array('id' => '2909','state_id' => '23','name' => 'Sekmai Bazar'),\n \t array('id' => '2910','state_id' => '23','name' => 'Senapati'),\n \t array('id' => '2911','state_id' => '23','name' => 'Sikhong Sekmai'),\n \t array('id' => '2912','state_id' => '23','name' => 'Sugnu'),\n \t array('id' => '2913','state_id' => '23','name' => 'Thongkhong Laxmi Bazar'),\n \t array('id' => '2914','state_id' => '23','name' => 'Thoubal'),\n \t array('id' => '2915','state_id' => '23','name' => 'Torban'),\n \t array('id' => '2916','state_id' => '23','name' => 'Wangjing'),\n \t array('id' => '2917','state_id' => '23','name' => 'Wangoi'),\n \t array('id' => '2918','state_id' => '23','name' => 'Yairipok'),\n \t array('id' => '2919','state_id' => '24','name' => 'Baghmara'),\n \t array('id' => '2920','state_id' => '24','name' => 'Cherrapunji'),\n \t array('id' => '2921','state_id' => '24','name' => 'Jawai'),\n \t array('id' => '2922','state_id' => '24','name' => 'Madanrting'),\n \t array('id' => '2923','state_id' => '24','name' => 'Mairang'),\n \t array('id' => '2924','state_id' => '24','name' => 'Mawlai'),\n \t array('id' => '2925','state_id' => '24','name' => 'Nongmynsong'),\n \t array('id' => '2926','state_id' => '24','name' => 'Nongpoh'),\n \t array('id' => '2927','state_id' => '24','name' => 'Nongstoin'),\n \t array('id' => '2928','state_id' => '24','name' => 'Nongthymmai'),\n \t array('id' => '2929','state_id' => '24','name' => 'Pynthorumkhrah'),\n \t array('id' => '2930','state_id' => '24','name' => 'Resubelpara'),\n \t array('id' => '2931','state_id' => '24','name' => 'Shillong'),\n \t array('id' => '2932','state_id' => '24','name' => 'Shillong Cantonment'),\n \t array('id' => '2933','state_id' => '24','name' => 'Tura'),\n \t array('id' => '2934','state_id' => '24','name' => 'Williamnagar'),\n \t array('id' => '2935','state_id' => '25','name' => 'Aizawl'),\n \t array('id' => '2936','state_id' => '25','name' => 'Bairabi'),\n \t array('id' => '2937','state_id' => '25','name' => 'Biate'),\n \t array('id' => '2938','state_id' => '25','name' => 'Champhai'),\n \t array('id' => '2939','state_id' => '25','name' => 'Darlawn'),\n \t array('id' => '2940','state_id' => '25','name' => 'Hnahthial'),\n \t array('id' => '2941','state_id' => '25','name' => 'Kawnpui'),\n \t array('id' => '2942','state_id' => '25','name' => 'Khawhai'),\n \t array('id' => '2943','state_id' => '25','name' => 'Khawzawl'),\n \t array('id' => '2944','state_id' => '25','name' => 'Kolasib'),\n \t array('id' => '2945','state_id' => '25','name' => 'Lengpui'),\n \t array('id' => '2946','state_id' => '25','name' => 'Lunglei'),\n \t array('id' => '2947','state_id' => '25','name' => 'Mamit'),\n \t array('id' => '2948','state_id' => '25','name' => 'North Vanlaiphai'),\n \t array('id' => '2949','state_id' => '25','name' => 'Saiha'),\n \t array('id' => '2950','state_id' => '25','name' => 'Sairang'),\n \t array('id' => '2951','state_id' => '25','name' => 'Saitul'),\n \t array('id' => '2952','state_id' => '25','name' => 'Serchhip'),\n \t array('id' => '2953','state_id' => '25','name' => 'Thenzawl'),\n \t array('id' => '2954','state_id' => '25','name' => 'Tlabung'),\n \t array('id' => '2955','state_id' => '25','name' => 'Vairengte'),\n \t array('id' => '2956','state_id' => '25','name' => 'Zawlnuam'),\n \t array('id' => '2957','state_id' => '26','name' => 'Chumukedima'),\n \t array('id' => '2958','state_id' => '26','name' => 'Dimapur'),\n \t array('id' => '2959','state_id' => '26','name' => 'Kohima'),\n \t array('id' => '2960','state_id' => '26','name' => 'Mokokchung'),\n \t array('id' => '2961','state_id' => '26','name' => 'Mon'),\n \t array('id' => '2962','state_id' => '26','name' => 'Phek'),\n \t array('id' => '2963','state_id' => '26','name' => 'Tuensang'),\n \t array('id' => '2964','state_id' => '26','name' => 'Wokha'),\n \t array('id' => '2965','state_id' => '26','name' => 'Zunheboto'),\n \t array('id' => '2966','state_id' => '29','name' => 'Anandapur'),\n \t array('id' => '2967','state_id' => '29','name' => 'Angul'),\n \t array('id' => '2968','state_id' => '29','name' => 'Aska'),\n \t array('id' => '2969','state_id' => '29','name' => 'Athgarh'),\n \t array('id' => '2970','state_id' => '29','name' => 'Athmallik'),\n \t array('id' => '2971','state_id' => '29','name' => 'Balagoda'),\n \t array('id' => '2972','state_id' => '29','name' => 'Balangir'),\n \t array('id' => '2973','state_id' => '29','name' => 'Balasore'),\n \t array('id' => '2974','state_id' => '29','name' => 'Baleshwar'),\n \t array('id' => '2975','state_id' => '29','name' => 'Balimeta'),\n \t array('id' => '2976','state_id' => '29','name' => 'Balugaon'),\n \t array('id' => '2977','state_id' => '29','name' => 'Banapur'),\n \t array('id' => '2978','state_id' => '29','name' => 'Bangura'),\n \t array('id' => '2979','state_id' => '29','name' => 'Banki'),\n \t array('id' => '2980','state_id' => '29','name' => 'Banposh'),\n \t array('id' => '2981','state_id' => '29','name' => 'Barbil'),\n \t array('id' => '2982','state_id' => '29','name' => 'Bargarh'),\n \t array('id' => '2983','state_id' => '29','name' => 'Baripada'),\n \t array('id' => '2984','state_id' => '29','name' => 'Barpali'),\n \t array('id' => '2985','state_id' => '29','name' => 'Basudebpur'),\n \t array('id' => '2986','state_id' => '29','name' => 'Baudh'),\n \t array('id' => '2987','state_id' => '29','name' => 'Belagachhia'),\n \t array('id' => '2988','state_id' => '29','name' => 'Belaguntha'),\n \t array('id' => '2989','state_id' => '29','name' => 'Belpahar'),\n \t array('id' => '2990','state_id' => '29','name' => 'Berhampur'),\n \t array('id' => '2991','state_id' => '29','name' => 'Bhadrak'),\n \t array('id' => '2992','state_id' => '29','name' => 'Bhanjanagar'),\n \t array('id' => '2993','state_id' => '29','name' => 'Bhawanipatna'),\n \t array('id' => '2994','state_id' => '29','name' => 'Bhuban'),\n \t array('id' => '2995','state_id' => '29','name' => 'Bhubaneswar'),\n \t array('id' => '2996','state_id' => '29','name' => 'Binika'),\n \t array('id' => '2997','state_id' => '29','name' => 'Birmitrapur'),\n \t array('id' => '2998','state_id' => '29','name' => 'Bishama Katek'),\n \t array('id' => '2999','state_id' => '29','name' => 'Bolangir'),\n \t array('id' => '3000','state_id' => '29','name' => 'Brahmapur'),\n \t array('id' => '3001','state_id' => '29','name' => 'Brajrajnagar'),\n \t array('id' => '3002','state_id' => '29','name' => 'Buguda'),\n \t array('id' => '3003','state_id' => '29','name' => 'Burla'),\n \t array('id' => '3004','state_id' => '29','name' => 'Byasanagar'),\n \t array('id' => '3005','state_id' => '29','name' => 'Champua'),\n \t array('id' => '3006','state_id' => '29','name' => 'Chandapur'),\n \t array('id' => '3007','state_id' => '29','name' => 'Chandbali'),\n \t array('id' => '3008','state_id' => '29','name' => 'Chandili'),\n \t array('id' => '3009','state_id' => '29','name' => 'Charibatia'),\n \t array('id' => '3010','state_id' => '29','name' => 'Chatrapur'),\n \t array('id' => '3011','state_id' => '29','name' => 'Chikitigarh'),\n \t array('id' => '3012','state_id' => '29','name' => 'Chitrakonda'),\n \t array('id' => '3013','state_id' => '29','name' => 'Choudwar'),\n \t array('id' => '3014','state_id' => '29','name' => 'Cuttack'),\n \t array('id' => '3015','state_id' => '29','name' => 'Dadhapatna'),\n \t array('id' => '3016','state_id' => '29','name' => 'Daitari'),\n \t array('id' => '3017','state_id' => '29','name' => 'Damanjodi'),\n \t array('id' => '3018','state_id' => '29','name' => 'Deogarh'),\n \t array('id' => '3019','state_id' => '29','name' => 'Deracolliery'),\n \t array('id' => '3020','state_id' => '29','name' => 'Dhamanagar'),\n \t array('id' => '3021','state_id' => '29','name' => 'Dhenkanal'),\n \t array('id' => '3022','state_id' => '29','name' => 'Digapahandi'),\n \t array('id' => '3023','state_id' => '29','name' => 'Dungamal'),\n \t array('id' => '3024','state_id' => '29','name' => 'Fertilizer Corporation of Indi'),\n \t array('id' => '3025','state_id' => '29','name' => 'Ganjam'),\n \t array('id' => '3026','state_id' => '29','name' => 'Ghantapada'),\n \t array('id' => '3027','state_id' => '29','name' => 'Gopalpur'),\n \t array('id' => '3028','state_id' => '29','name' => 'Gudari'),\n \t array('id' => '3029','state_id' => '29','name' => 'Gunupur'),\n \t array('id' => '3030','state_id' => '29','name' => 'Hatibandha'),\n \t array('id' => '3031','state_id' => '29','name' => 'Hinjilikatu'),\n \t array('id' => '3032','state_id' => '29','name' => 'Hirakud'),\n \t array('id' => '3033','state_id' => '29','name' => 'Jagatsinghapur'),\n \t array('id' => '3034','state_id' => '29','name' => 'Jajpur'),\n \t array('id' => '3035','state_id' => '29','name' => 'Jalda'),\n \t array('id' => '3036','state_id' => '29','name' => 'Jaleswar'),\n \t array('id' => '3037','state_id' => '29','name' => 'Jatni'),\n \t array('id' => '3038','state_id' => '29','name' => 'Jaypur'),\n \t array('id' => '3039','state_id' => '29','name' => 'Jeypore'),\n \t array('id' => '3040','state_id' => '29','name' => 'Jharsuguda'),\n \t array('id' => '3041','state_id' => '29','name' => 'Jhumpura'),\n \t array('id' => '3042','state_id' => '29','name' => 'Joda'),\n \t array('id' => '3043','state_id' => '29','name' => 'Junagarh'),\n \t array('id' => '3044','state_id' => '29','name' => 'Kamakhyanagar'),\n \t array('id' => '3045','state_id' => '29','name' => 'Kantabanji'),\n \t array('id' => '3046','state_id' => '29','name' => 'Kantilo'),\n \t array('id' => '3047','state_id' => '29','name' => 'Karanja'),\n \t array('id' => '3048','state_id' => '29','name' => 'Kashinagara'),\n \t array('id' => '3049','state_id' => '29','name' => 'Kataka'),\n \t array('id' => '3050','state_id' => '29','name' => 'Kavisuryanagar'),\n \t array('id' => '3051','state_id' => '29','name' => 'Kendrapara'),\n \t array('id' => '3052','state_id' => '29','name' => 'Kendujhar'),\n \t array('id' => '3053','state_id' => '29','name' => 'Keonjhar'),\n \t array('id' => '3054','state_id' => '29','name' => 'Kesinga'),\n \t array('id' => '3055','state_id' => '29','name' => 'Khaliapali'),\n \t array('id' => '3056','state_id' => '29','name' => 'Khalikote'),\n \t array('id' => '3057','state_id' => '29','name' => 'Khandaparha'),\n \t array('id' => '3058','state_id' => '29','name' => 'Kharhial'),\n \t array('id' => '3059','state_id' => '29','name' => 'Kharhial Road'),\n \t array('id' => '3060','state_id' => '29','name' => 'Khatiguda'),\n \t array('id' => '3061','state_id' => '29','name' => 'Khurda'),\n \t array('id' => '3062','state_id' => '29','name' => 'Kochinda'),\n \t array('id' => '3063','state_id' => '29','name' => 'Kodala'),\n \t array('id' => '3064','state_id' => '29','name' => 'Konark'),\n \t array('id' => '3065','state_id' => '29','name' => 'Koraput'),\n \t array('id' => '3066','state_id' => '29','name' => 'Kotaparh'),\n \t array('id' => '3067','state_id' => '29','name' => 'Lanjigarh'),\n \t array('id' => '3068','state_id' => '29','name' => 'Lattikata'),\n \t array('id' => '3069','state_id' => '29','name' => 'Makundapur'),\n \t array('id' => '3070','state_id' => '29','name' => 'Malkangiri'),\n \t array('id' => '3071','state_id' => '29','name' => 'Mukhiguda'),\n \t array('id' => '3072','state_id' => '29','name' => 'Nabarangpur'),\n \t array('id' => '3073','state_id' => '29','name' => 'Nalco'),\n \t array('id' => '3074','state_id' => '29','name' => 'Naurangapur'),\n \t array('id' => '3075','state_id' => '29','name' => 'Nayagarh'),\n \t array('id' => '3076','state_id' => '29','name' => 'Nilagiri'),\n \t array('id' => '3077','state_id' => '29','name' => 'Nimaparha'),\n \t array('id' => '3078','state_id' => '29','name' => 'Nuapada'),\n \t array('id' => '3079','state_id' => '29','name' => 'Nuapatna'),\n \t array('id' => '3080','state_id' => '29','name' => 'OCL Industrialship'),\n \t array('id' => '3081','state_id' => '29','name' => 'Padampur'),\n \t array('id' => '3082','state_id' => '29','name' => 'Paradip'),\n \t array('id' => '3083','state_id' => '29','name' => 'Paradwip'),\n \t array('id' => '3084','state_id' => '29','name' => 'Parlakimidi'),\n \t array('id' => '3085','state_id' => '29','name' => 'Patamundai'),\n \t array('id' => '3086','state_id' => '29','name' => 'Patnagarh'),\n \t array('id' => '3087','state_id' => '29','name' => 'Phulabani'),\n \t array('id' => '3088','state_id' => '29','name' => 'Pipili'),\n \t array('id' => '3089','state_id' => '29','name' => 'Polasara'),\n \t array('id' => '3090','state_id' => '29','name' => 'Pratapsasan'),\n \t array('id' => '3091','state_id' => '29','name' => 'Puri'),\n \t array('id' => '3092','state_id' => '29','name' => 'Purushottampur'),\n \t array('id' => '3093','state_id' => '29','name' => 'Rairangpur'),\n \t array('id' => '3094','state_id' => '29','name' => 'Raj Gangpur'),\n \t array('id' => '3095','state_id' => '29','name' => 'Rambha'),\n \t array('id' => '3096','state_id' => '29','name' => 'Raurkela'),\n \t array('id' => '3097','state_id' => '29','name' => 'Raurkela Civil Township'),\n \t array('id' => '3098','state_id' => '29','name' => 'Rayagada'),\n \t array('id' => '3099','state_id' => '29','name' => 'Redhakhol'),\n \t array('id' => '3100','state_id' => '29','name' => 'Remuna'),\n \t array('id' => '3101','state_id' => '29','name' => 'Rengali'),\n \t array('id' => '3102','state_id' => '29','name' => 'Rourkela'),\n \t array('id' => '3103','state_id' => '29','name' => 'Sambalpur'),\n \t array('id' => '3104','state_id' => '29','name' => 'Sinapali'),\n \t array('id' => '3105','state_id' => '29','name' => 'Sonepur'),\n \t array('id' => '3106','state_id' => '29','name' => 'Sorada'),\n \t array('id' => '3107','state_id' => '29','name' => 'Soro'),\n \t array('id' => '3108','state_id' => '29','name' => 'Sunabeda'),\n \t array('id' => '3109','state_id' => '29','name' => 'Sundargarh'),\n \t array('id' => '3110','state_id' => '29','name' => 'Talcher'),\n \t array('id' => '3111','state_id' => '29','name' => 'Talcher Thermal Power Station '),\n \t array('id' => '3112','state_id' => '29','name' => 'Tarabha'),\n \t array('id' => '3113','state_id' => '29','name' => 'Tensa'),\n \t array('id' => '3114','state_id' => '29','name' => 'Titlagarh'),\n \t array('id' => '3115','state_id' => '29','name' => 'Udala'),\n \t array('id' => '3116','state_id' => '29','name' => 'Udayagiri'),\n \t array('id' => '3117','state_id' => '29','name' => 'Umarkot'),\n \t array('id' => '3118','state_id' => '29','name' => 'Vikrampur'),\n \t array('id' => '3119','state_id' => '31','name' => 'Ariankuppam'),\n \t array('id' => '3120','state_id' => '31','name' => 'Karaikal'),\n \t array('id' => '3121','state_id' => '31','name' => 'Kurumbapet'),\n \t array('id' => '3122','state_id' => '31','name' => 'Mahe'),\n \t array('id' => '3123','state_id' => '31','name' => 'Ozhukarai'),\n \t array('id' => '3124','state_id' => '31','name' => 'Pondicherry'),\n \t array('id' => '3125','state_id' => '31','name' => 'Villianur'),\n \t array('id' => '3126','state_id' => '31','name' => 'Yanam'),\n \t array('id' => '3127','state_id' => '32','name' => 'Abohar'),\n \t array('id' => '3128','state_id' => '32','name' => 'Adampur'),\n \t array('id' => '3129','state_id' => '32','name' => 'Ahmedgarh'),\n \t array('id' => '3130','state_id' => '32','name' => 'Ajnala'),\n \t array('id' => '3131','state_id' => '32','name' => 'Akalgarh'),\n \t array('id' => '3132','state_id' => '32','name' => 'Alawalpur'),\n \t array('id' => '3133','state_id' => '32','name' => 'Amloh'),\n \t array('id' => '3134','state_id' => '32','name' => 'Amritsar'),\n \t array('id' => '3135','state_id' => '32','name' => 'Amritsar Cantonment'),\n \t array('id' => '3136','state_id' => '32','name' => 'Anandpur Sahib'),\n \t array('id' => '3137','state_id' => '32','name' => 'Badhni Kalan'),\n \t array('id' => '3138','state_id' => '32','name' => 'Bagh Purana'),\n \t array('id' => '3139','state_id' => '32','name' => 'Balachaur'),\n \t array('id' => '3140','state_id' => '32','name' => 'Banaur'),\n \t array('id' => '3141','state_id' => '32','name' => 'Banga'),\n \t array('id' => '3142','state_id' => '32','name' => 'Banur'),\n \t array('id' => '3143','state_id' => '32','name' => 'Baretta'),\n \t array('id' => '3144','state_id' => '32','name' => 'Bariwala'),\n \t array('id' => '3145','state_id' => '32','name' => 'Barnala'),\n \t array('id' => '3146','state_id' => '32','name' => 'Bassi Pathana'),\n \t array('id' => '3147','state_id' => '32','name' => 'Batala'),\n \t array('id' => '3148','state_id' => '32','name' => 'Bathinda'),\n \t array('id' => '3149','state_id' => '32','name' => 'Begowal'),\n \t array('id' => '3150','state_id' => '32','name' => 'Behrampur'),\n \t array('id' => '3151','state_id' => '32','name' => 'Bhabat'),\n \t array('id' => '3152','state_id' => '32','name' => 'Bhadur'),\n \t array('id' => '3153','state_id' => '32','name' => 'Bhankharpur'),\n \t array('id' => '3154','state_id' => '32','name' => 'Bharoli Kalan'),\n \t array('id' => '3155','state_id' => '32','name' => 'Bhawanigarh'),\n \t array('id' => '3156','state_id' => '32','name' => 'Bhikhi'),\n \t array('id' => '3157','state_id' => '32','name' => 'Bhikhiwind'),\n \t array('id' => '3158','state_id' => '32','name' => 'Bhisiana'),\n \t array('id' => '3159','state_id' => '32','name' => 'Bhogpur'),\n \t array('id' => '3160','state_id' => '32','name' => 'Bhuch'),\n \t array('id' => '3161','state_id' => '32','name' => 'Bhulath'),\n \t array('id' => '3162','state_id' => '32','name' => 'Budha Theh'),\n \t array('id' => '3163','state_id' => '32','name' => 'Budhlada'),\n \t array('id' => '3164','state_id' => '32','name' => 'Chima'),\n \t array('id' => '3165','state_id' => '32','name' => 'Chohal'),\n \t array('id' => '3166','state_id' => '32','name' => 'Dasuya'),\n \t array('id' => '3167','state_id' => '32','name' => 'Daulatpur'),\n \t array('id' => '3168','state_id' => '32','name' => 'Dera Baba Nanak'),\n \t array('id' => '3169','state_id' => '32','name' => 'Dera Bassi'),\n \t array('id' => '3170','state_id' => '32','name' => 'Dhanaula'),\n \t array('id' => '3171','state_id' => '32','name' => 'Dharam Kot'),\n \t array('id' => '3172','state_id' => '32','name' => 'Dhariwal'),\n \t array('id' => '3173','state_id' => '32','name' => 'Dhilwan'),\n \t array('id' => '3174','state_id' => '32','name' => 'Dhuri'),\n \t array('id' => '3175','state_id' => '32','name' => 'Dinanagar'),\n \t array('id' => '3176','state_id' => '32','name' => 'Dirba'),\n \t array('id' => '3177','state_id' => '32','name' => 'Doraha'),\n \t array('id' => '3178','state_id' => '32','name' => 'Faridkot'),\n \t array('id' => '3179','state_id' => '32','name' => 'Fateh Nangal'),\n \t array('id' => '3180','state_id' => '32','name' => 'Fatehgarh Churian'),\n \t array('id' => '3181','state_id' => '32','name' => 'Fatehgarh Sahib'),\n \t array('id' => '3182','state_id' => '32','name' => 'Fazilka'),\n \t array('id' => '3183','state_id' => '32','name' => 'Firozpur'),\n \t array('id' => '3184','state_id' => '32','name' => 'Firozpur Cantonment'),\n \t array('id' => '3185','state_id' => '32','name' => 'Gardhiwala'),\n \t array('id' => '3186','state_id' => '32','name' => 'Garhshankar'),\n \t array('id' => '3187','state_id' => '32','name' => 'Ghagga'),\n \t array('id' => '3188','state_id' => '32','name' => 'Ghanaur'),\n \t array('id' => '3189','state_id' => '32','name' => 'Giddarbaha'),\n \t array('id' => '3190','state_id' => '32','name' => 'Gobindgarh'),\n \t array('id' => '3191','state_id' => '32','name' => 'Goniana'),\n \t array('id' => '3192','state_id' => '32','name' => 'Goraya'),\n \t array('id' => '3193','state_id' => '32','name' => 'Gurdaspur'),\n \t array('id' => '3194','state_id' => '32','name' => 'Guru Har Sahai'),\n \t array('id' => '3195','state_id' => '32','name' => 'Hajipur'),\n \t array('id' => '3196','state_id' => '32','name' => 'Handiaya'),\n \t array('id' => '3197','state_id' => '32','name' => 'Hariana'),\n \t array('id' => '3198','state_id' => '32','name' => 'Hoshiarpur'),\n \t array('id' => '3199','state_id' => '32','name' => 'Hussainpur'),\n \t array('id' => '3200','state_id' => '32','name' => 'Jagraon'),\n \t array('id' => '3201','state_id' => '32','name' => 'Jaitu'),\n \t array('id' => '3202','state_id' => '32','name' => 'Jalalabad'),\n \t array('id' => '3203','state_id' => '32','name' => 'Jalandhar'),\n \t array('id' => '3204','state_id' => '32','name' => 'Jalandhar Cantonment'),\n \t array('id' => '3205','state_id' => '32','name' => 'Jandiala'),\n \t array('id' => '3206','state_id' => '32','name' => 'Jugial'),\n \t array('id' => '3207','state_id' => '32','name' => 'Kalanaur'),\n \t array('id' => '3208','state_id' => '32','name' => 'Kapurthala'),\n \t array('id' => '3209','state_id' => '32','name' => 'Karoran'),\n \t array('id' => '3210','state_id' => '32','name' => 'Kartarpur'),\n \t array('id' => '3211','state_id' => '32','name' => 'Khamanon'),\n \t array('id' => '3212','state_id' => '32','name' => 'Khanauri'),\n \t array('id' => '3213','state_id' => '32','name' => 'Khanna'),\n \t array('id' => '3214','state_id' => '32','name' => 'Kharar'),\n \t array('id' => '3215','state_id' => '32','name' => 'Khem Karan'),\n \t array('id' => '3216','state_id' => '32','name' => 'Kot Fatta'),\n \t array('id' => '3217','state_id' => '32','name' => 'Kot Isa Khan'),\n \t array('id' => '3218','state_id' => '32','name' => 'Kot Kapura'),\n \t array('id' => '3219','state_id' => '32','name' => 'Kotkapura'),\n \t array('id' => '3220','state_id' => '32','name' => 'Kurali'),\n \t array('id' => '3221','state_id' => '32','name' => 'Lalru'),\n \t array('id' => '3222','state_id' => '32','name' => 'Lehra Gaga'),\n \t array('id' => '3223','state_id' => '32','name' => 'Lodhian Khas'),\n \t array('id' => '3224','state_id' => '32','name' => 'Longowal'),\n \t array('id' => '3225','state_id' => '32','name' => 'Ludhiana'),\n \t array('id' => '3226','state_id' => '32','name' => 'Machhiwara'),\n \t array('id' => '3227','state_id' => '32','name' => 'Mahilpur'),\n \t array('id' => '3228','state_id' => '32','name' => 'Majitha'),\n \t array('id' => '3229','state_id' => '32','name' => 'Makhu'),\n \t array('id' => '3230','state_id' => '32','name' => 'Malaut'),\n \t array('id' => '3231','state_id' => '32','name' => 'Malerkotla'),\n \t array('id' => '3232','state_id' => '32','name' => 'Maloud'),\n \t array('id' => '3233','state_id' => '32','name' => 'Mandi Gobindgarh'),\n \t array('id' => '3234','state_id' => '32','name' => 'Mansa'),\n \t array('id' => '3235','state_id' => '32','name' => 'Maur'),\n \t array('id' => '3236','state_id' => '32','name' => 'Moga'),\n \t array('id' => '3237','state_id' => '32','name' => 'Mohali'),\n \t array('id' => '3238','state_id' => '32','name' => 'Moonak'),\n \t array('id' => '3239','state_id' => '32','name' => 'Morinda'),\n \t array('id' => '3240','state_id' => '32','name' => 'Mukerian'),\n \t array('id' => '3241','state_id' => '32','name' => 'Muktsar'),\n \t array('id' => '3242','state_id' => '32','name' => 'Mullanpur Dakha'),\n \t array('id' => '3243','state_id' => '32','name' => 'Mullanpur Garibdas'),\n \t array('id' => '3244','state_id' => '32','name' => 'Munak'),\n \t array('id' => '3245','state_id' => '32','name' => 'Muradpura'),\n \t array('id' => '3246','state_id' => '32','name' => 'Nabha'),\n \t array('id' => '3247','state_id' => '32','name' => 'Nakodar'),\n \t array('id' => '3248','state_id' => '32','name' => 'Nangal'),\n \t array('id' => '3249','state_id' => '32','name' => 'Nawashahr'),\n \t array('id' => '3250','state_id' => '32','name' => 'Naya Nangal'),\n \t array('id' => '3251','state_id' => '32','name' => 'Nehon'),\n \t array('id' => '3252','state_id' => '32','name' => 'Nurmahal'),\n \t array('id' => '3253','state_id' => '32','name' => 'Pathankot'),\n \t array('id' => '3254','state_id' => '32','name' => 'Patiala'),\n \t array('id' => '3255','state_id' => '32','name' => 'Patti'),\n \t array('id' => '3256','state_id' => '32','name' => 'Pattran'),\n \t array('id' => '3257','state_id' => '32','name' => 'Payal'),\n \t array('id' => '3258','state_id' => '32','name' => 'Phagwara'),\n \t array('id' => '3259','state_id' => '32','name' => 'Phillaur'),\n \t array('id' => '3260','state_id' => '32','name' => 'Qadian'),\n \t array('id' => '3261','state_id' => '32','name' => 'Rahon'),\n \t array('id' => '3262','state_id' => '32','name' => 'Raikot'),\n \t array('id' => '3263','state_id' => '32','name' => 'Raja Sansi'),\n \t array('id' => '3264','state_id' => '32','name' => 'Rajpura'),\n \t array('id' => '3265','state_id' => '32','name' => 'Ram Das'),\n \t array('id' => '3266','state_id' => '32','name' => 'Raman'),\n \t array('id' => '3267','state_id' => '32','name' => 'Rampura'),\n \t array('id' => '3268','state_id' => '32','name' => 'Rayya'),\n \t array('id' => '3269','state_id' => '32','name' => 'Rupnagar'),\n \t array('id' => '3270','state_id' => '32','name' => 'Rurki Kasba'),\n \t array('id' => '3271','state_id' => '32','name' => 'Sahnewal'),\n \t array('id' => '3272','state_id' => '32','name' => 'Samana'),\n \t array('id' => '3273','state_id' => '32','name' => 'Samrala'),\n \t array('id' => '3274','state_id' => '32','name' => 'Sanaur'),\n \t array('id' => '3275','state_id' => '32','name' => 'Sangat'),\n \t array('id' => '3276','state_id' => '32','name' => 'Sangrur'),\n \t array('id' => '3277','state_id' => '32','name' => 'Sansarpur'),\n \t array('id' => '3278','state_id' => '32','name' => 'Sardulgarh'),\n \t array('id' => '3279','state_id' => '32','name' => 'Shahkot'),\n \t array('id' => '3280','state_id' => '32','name' => 'Sham Churasi'),\n \t array('id' => '3281','state_id' => '32','name' => 'Shekhpura'),\n \t array('id' => '3282','state_id' => '32','name' => 'Sirhind'),\n \t array('id' => '3283','state_id' => '32','name' => 'Sri Hargobindpur'),\n \t array('id' => '3284','state_id' => '32','name' => 'Sujanpur'),\n \t array('id' => '3285','state_id' => '32','name' => 'Sultanpur Lodhi'),\n \t array('id' => '3286','state_id' => '32','name' => 'Sunam'),\n \t array('id' => '3287','state_id' => '32','name' => 'Talwandi Bhai'),\n \t array('id' => '3288','state_id' => '32','name' => 'Talwara'),\n \t array('id' => '3289','state_id' => '32','name' => 'Tappa'),\n \t array('id' => '3290','state_id' => '32','name' => 'Tarn Taran'),\n \t array('id' => '3291','state_id' => '32','name' => 'Urmar Tanda'),\n \t array('id' => '3292','state_id' => '32','name' => 'Zira'),\n \t array('id' => '3293','state_id' => '32','name' => 'Zirakpur'),\n \t array('id' => '3294','state_id' => '33','name' => 'Abu Road'),\n \t array('id' => '3295','state_id' => '33','name' => 'Ajmer'),\n \t array('id' => '3296','state_id' => '33','name' => 'Aklera'),\n \t array('id' => '3297','state_id' => '33','name' => 'Alwar'),\n \t array('id' => '3298','state_id' => '33','name' => 'Amet'),\n \t array('id' => '3299','state_id' => '33','name' => 'Antah'),\n \t array('id' => '3300','state_id' => '33','name' => 'Anupgarh'),\n \t array('id' => '3301','state_id' => '33','name' => 'Asind'),\n \t array('id' => '3302','state_id' => '33','name' => 'Bagar'),\n \t array('id' => '3303','state_id' => '33','name' => 'Bagru'),\n \t array('id' => '3304','state_id' => '33','name' => 'Bahror'),\n \t array('id' => '3305','state_id' => '33','name' => 'Bakani'),\n \t array('id' => '3306','state_id' => '33','name' => 'Bali'),\n \t array('id' => '3307','state_id' => '33','name' => 'Balotra'),\n \t array('id' => '3308','state_id' => '33','name' => 'Bandikui'),\n \t array('id' => '3309','state_id' => '33','name' => 'Banswara'),\n \t array('id' => '3310','state_id' => '33','name' => 'Baran'),\n \t array('id' => '3311','state_id' => '33','name' => 'Bari'),\n \t array('id' => '3312','state_id' => '33','name' => 'Bari Sadri'),\n \t array('id' => '3313','state_id' => '33','name' => 'Barmer'),\n \t array('id' => '3314','state_id' => '33','name' => 'Basi'),\n \t array('id' => '3315','state_id' => '33','name' => 'Basni Belima'),\n \t array('id' => '3316','state_id' => '33','name' => 'Baswa'),\n \t array('id' => '3317','state_id' => '33','name' => 'Bayana'),\n \t array('id' => '3318','state_id' => '33','name' => 'Beawar'),\n \t array('id' => '3319','state_id' => '33','name' => 'Begun'),\n \t array('id' => '3320','state_id' => '33','name' => 'Bhadasar'),\n \t array('id' => '3321','state_id' => '33','name' => 'Bhadra'),\n \t array('id' => '3322','state_id' => '33','name' => 'Bhalariya'),\n \t array('id' => '3323','state_id' => '33','name' => 'Bharatpur'),\n \t array('id' => '3324','state_id' => '33','name' => 'Bhasawar'),\n \t array('id' => '3325','state_id' => '33','name' => 'Bhawani Mandi'),\n \t array('id' => '3326','state_id' => '33','name' => 'Bhawri'),\n \t array('id' => '3327','state_id' => '33','name' => 'Bhilwara'),\n \t array('id' => '3328','state_id' => '33','name' => 'Bhindar'),\n \t array('id' => '3329','state_id' => '33','name' => 'Bhinmal'),\n \t array('id' => '3330','state_id' => '33','name' => 'Bhiwadi'),\n \t array('id' => '3331','state_id' => '33','name' => 'Bijoliya Kalan'),\n \t array('id' => '3332','state_id' => '33','name' => 'Bikaner'),\n \t array('id' => '3333','state_id' => '33','name' => 'Bilara'),\n \t array('id' => '3334','state_id' => '33','name' => 'Bissau'),\n \t array('id' => '3335','state_id' => '33','name' => 'Borkhera'),\n \t array('id' => '3336','state_id' => '33','name' => 'Budhpura'),\n \t array('id' => '3337','state_id' => '33','name' => 'Bundi'),\n \t array('id' => '3338','state_id' => '33','name' => 'Chatsu'),\n \t array('id' => '3339','state_id' => '33','name' => 'Chechat'),\n \t array('id' => '3340','state_id' => '33','name' => 'Chhabra'),\n \t array('id' => '3341','state_id' => '33','name' => 'Chhapar'),\n \t array('id' => '3342','state_id' => '33','name' => 'Chhipa Barod'),\n \t array('id' => '3343','state_id' => '33','name' => 'Chhoti Sadri'),\n \t array('id' => '3344','state_id' => '33','name' => 'Chirawa'),\n \t array('id' => '3345','state_id' => '33','name' => 'Chittaurgarh'),\n \t array('id' => '3346','state_id' => '33','name' => 'Chittorgarh'),\n \t array('id' => '3347','state_id' => '33','name' => 'Chomun'),\n \t array('id' => '3348','state_id' => '33','name' => 'Churu'),\n \t array('id' => '3349','state_id' => '33','name' => 'Daosa'),\n \t array('id' => '3350','state_id' => '33','name' => 'Dariba'),\n \t array('id' => '3351','state_id' => '33','name' => 'Dausa'),\n \t array('id' => '3352','state_id' => '33','name' => 'Deoli'),\n \t array('id' => '3353','state_id' => '33','name' => 'Deshnok'),\n \t array('id' => '3354','state_id' => '33','name' => 'Devgarh'),\n \t array('id' => '3355','state_id' => '33','name' => 'Devli'),\n \t array('id' => '3356','state_id' => '33','name' => 'Dhariawad'),\n \t array('id' => '3357','state_id' => '33','name' => 'Dhaulpur'),\n \t array('id' => '3358','state_id' => '33','name' => 'Dholpur'),\n \t array('id' => '3359','state_id' => '33','name' => 'Didwana'),\n \t array('id' => '3360','state_id' => '33','name' => 'Dig'),\n \t array('id' => '3361','state_id' => '33','name' => 'Dungargarh'),\n \t array('id' => '3362','state_id' => '33','name' => 'Dungarpur'),\n \t array('id' => '3363','state_id' => '33','name' => 'Falna'),\n \t array('id' => '3364','state_id' => '33','name' => 'Fatehnagar'),\n \t array('id' => '3365','state_id' => '33','name' => 'Fatehpur'),\n \t array('id' => '3366','state_id' => '33','name' => 'Gajsinghpur'),\n \t array('id' => '3367','state_id' => '33','name' => 'Galiakot'),\n \t array('id' => '3368','state_id' => '33','name' => 'Ganganagar'),\n \t array('id' => '3369','state_id' => '33','name' => 'Gangapur'),\n \t array('id' => '3370','state_id' => '33','name' => 'Goredi Chancha'),\n \t array('id' => '3371','state_id' => '33','name' => 'Gothra'),\n \t array('id' => '3372','state_id' => '33','name' => 'Govindgarh'),\n \t array('id' => '3373','state_id' => '33','name' => 'Gulabpura'),\n \t array('id' => '3374','state_id' => '33','name' => 'Hanumangarh'),\n \t array('id' => '3375','state_id' => '33','name' => 'Hindaun'),\n \t array('id' => '3376','state_id' => '33','name' => 'Indragarh'),\n \t array('id' => '3377','state_id' => '33','name' => 'Jahazpur'),\n \t array('id' => '3378','state_id' => '33','name' => 'Jaipur'),\n \t array('id' => '3379','state_id' => '33','name' => 'Jaisalmer'),\n \t array('id' => '3380','state_id' => '33','name' => 'Jaiselmer'),\n \t array('id' => '3381','state_id' => '33','name' => 'Jaitaran'),\n \t array('id' => '3382','state_id' => '33','name' => 'Jalore'),\n \t array('id' => '3383','state_id' => '33','name' => 'Jhalawar'),\n \t array('id' => '3384','state_id' => '33','name' => 'Jhalrapatan'),\n \t array('id' => '3385','state_id' => '33','name' => 'Jhunjhunun'),\n \t array('id' => '3386','state_id' => '33','name' => 'Jobner'),\n \t array('id' => '3387','state_id' => '33','name' => 'Jodhpur'),\n \t array('id' => '3388','state_id' => '33','name' => 'Kaithun'),\n \t array('id' => '3389','state_id' => '33','name' => 'Kaman'),\n \t array('id' => '3390','state_id' => '33','name' => 'Kankroli'),\n \t array('id' => '3391','state_id' => '33','name' => 'Kanor'),\n \t array('id' => '3392','state_id' => '33','name' => 'Kapasan'),\n \t array('id' => '3393','state_id' => '33','name' => 'Kaprain'),\n \t array('id' => '3394','state_id' => '33','name' => 'Karanpura'),\n \t array('id' => '3395','state_id' => '33','name' => 'Karauli'),\n \t array('id' => '3396','state_id' => '33','name' => 'Kekri'),\n \t array('id' => '3397','state_id' => '33','name' => 'Keshorai Patan'),\n \t array('id' => '3398','state_id' => '33','name' => 'Kesrisinghpur'),\n \t array('id' => '3399','state_id' => '33','name' => 'Khairthal'),\n \t array('id' => '3400','state_id' => '33','name' => 'Khandela'),\n \t array('id' => '3401','state_id' => '33','name' => 'Khanpur'),\n \t array('id' => '3402','state_id' => '33','name' => 'Kherli'),\n \t array('id' => '3403','state_id' => '33','name' => 'Kherliganj'),\n \t array('id' => '3404','state_id' => '33','name' => 'Kherwara Chhaoni'),\n \t array('id' => '3405','state_id' => '33','name' => 'Khetri'),\n \t array('id' => '3406','state_id' => '33','name' => 'Kiranipura'),\n \t array('id' => '3407','state_id' => '33','name' => 'Kishangarh'),\n \t array('id' => '3408','state_id' => '33','name' => 'Kishangarh Ranwal'),\n \t array('id' => '3409','state_id' => '33','name' => 'Kolvi Rajendrapura'),\n \t array('id' => '3410','state_id' => '33','name' => 'Kot Putli'),\n \t array('id' => '3411','state_id' => '33','name' => 'Kota'),\n \t array('id' => '3412','state_id' => '33','name' => 'Kuchaman'),\n \t array('id' => '3413','state_id' => '33','name' => 'Kuchera'),\n \t array('id' => '3414','state_id' => '33','name' => 'Kumbhalgarh'),\n \t array('id' => '3415','state_id' => '33','name' => 'Kumbhkot'),\n \t array('id' => '3416','state_id' => '33','name' => 'Kumher'),\n \t array('id' => '3417','state_id' => '33','name' => 'Kushalgarh'),\n \t array('id' => '3418','state_id' => '33','name' => 'Lachhmangarh'),\n \t array('id' => '3419','state_id' => '33','name' => 'Ladnun'),\n \t array('id' => '3420','state_id' => '33','name' => 'Lakheri'),\n \t array('id' => '3421','state_id' => '33','name' => 'Lalsot'),\n \t array('id' => '3422','state_id' => '33','name' => 'Losal'),\n \t array('id' => '3423','state_id' => '33','name' => 'Madanganj'),\n \t array('id' => '3424','state_id' => '33','name' => 'Mahu Kalan'),\n \t array('id' => '3425','state_id' => '33','name' => 'Mahwa'),\n \t array('id' => '3426','state_id' => '33','name' => 'Makrana'),\n \t array('id' => '3427','state_id' => '33','name' => 'Malpura'),\n \t array('id' => '3428','state_id' => '33','name' => 'Mandal'),\n \t array('id' => '3429','state_id' => '33','name' => 'Mandalgarh'),\n \t array('id' => '3430','state_id' => '33','name' => 'Mandawar'),\n \t array('id' => '3431','state_id' => '33','name' => 'Mandwa'),\n \t array('id' => '3432','state_id' => '33','name' => 'Mangrol'),\n \t array('id' => '3433','state_id' => '33','name' => 'Manohar Thana'),\n \t array('id' => '3434','state_id' => '33','name' => 'Manoharpur'),\n \t array('id' => '3435','state_id' => '33','name' => 'Marwar'),\n \t array('id' => '3436','state_id' => '33','name' => 'Merta'),\n \t array('id' => '3437','state_id' => '33','name' => 'Modak'),\n \t array('id' => '3438','state_id' => '33','name' => 'Mount Abu'),\n \t array('id' => '3439','state_id' => '33','name' => 'Mukandgarh'),\n \t array('id' => '3440','state_id' => '33','name' => 'Mundwa'),\n \t array('id' => '3441','state_id' => '33','name' => 'Nadbai'),\n \t array('id' => '3442','state_id' => '33','name' => 'Naenwa'),\n \t array('id' => '3443','state_id' => '33','name' => 'Nagar'),\n \t array('id' => '3444','state_id' => '33','name' => 'Nagaur'),\n \t array('id' => '3445','state_id' => '33','name' => 'Napasar'),\n \t array('id' => '3446','state_id' => '33','name' => 'Naraina'),\n \t array('id' => '3447','state_id' => '33','name' => 'Nasirabad'),\n \t array('id' => '3448','state_id' => '33','name' => 'Nathdwara'),\n \t array('id' => '3449','state_id' => '33','name' => 'Nawa'),\n \t array('id' => '3450','state_id' => '33','name' => 'Nawalgarh'),\n \t array('id' => '3451','state_id' => '33','name' => 'Neem Ka Thana'),\n \t array('id' => '3452','state_id' => '33','name' => 'Neemrana'),\n \t array('id' => '3453','state_id' => '33','name' => 'Newa Talai'),\n \t array('id' => '3454','state_id' => '33','name' => 'Nimaj'),\n \t array('id' => '3455','state_id' => '33','name' => 'Nimbahera'),\n \t array('id' => '3456','state_id' => '33','name' => 'Niwai'),\n \t array('id' => '3457','state_id' => '33','name' => 'Nohar'),\n \t array('id' => '3458','state_id' => '33','name' => 'Nokha'),\n \t array('id' => '3459','state_id' => '33','name' => 'One SGM'),\n \t array('id' => '3460','state_id' => '33','name' => 'Padampur'),\n \t array('id' => '3461','state_id' => '33','name' => 'Pali'),\n \t array('id' => '3462','state_id' => '33','name' => 'Partapur'),\n \t array('id' => '3463','state_id' => '33','name' => 'Parvatsar'),\n \t array('id' => '3464','state_id' => '33','name' => 'Pasoond'),\n \t array('id' => '3465','state_id' => '33','name' => 'Phalna'),\n \t array('id' => '3466','state_id' => '33','name' => 'Phalodi'),\n \t array('id' => '3467','state_id' => '33','name' => 'Phulera'),\n \t array('id' => '3468','state_id' => '33','name' => 'Pilani'),\n \t array('id' => '3469','state_id' => '33','name' => 'Pilibanga'),\n \t array('id' => '3470','state_id' => '33','name' => 'Pindwara'),\n \t array('id' => '3471','state_id' => '33','name' => 'Pipalia Kalan'),\n \t array('id' => '3472','state_id' => '33','name' => 'Pipar'),\n \t array('id' => '3473','state_id' => '33','name' => 'Pirawa'),\n \t array('id' => '3474','state_id' => '33','name' => 'Pokaran'),\n \t array('id' => '3475','state_id' => '33','name' => 'Pratapgarh'),\n \t array('id' => '3476','state_id' => '33','name' => 'Pushkar'),\n \t array('id' => '3477','state_id' => '33','name' => 'Raipur'),\n \t array('id' => '3478','state_id' => '33','name' => 'Raisinghnagar'),\n \t array('id' => '3479','state_id' => '33','name' => 'Rajakhera'),\n \t array('id' => '3480','state_id' => '33','name' => 'Rajaldesar'),\n \t array('id' => '3481','state_id' => '33','name' => 'Rajgarh'),\n \t array('id' => '3482','state_id' => '33','name' => 'Rajsamand'),\n \t array('id' => '3483','state_id' => '33','name' => 'Ramganj Mandi'),\n \t array('id' => '3484','state_id' => '33','name' => 'Ramgarh'),\n \t array('id' => '3485','state_id' => '33','name' => 'Rani'),\n \t array('id' => '3486','state_id' => '33','name' => 'Raniwara'),\n \t array('id' => '3487','state_id' => '33','name' => 'Ratan Nagar'),\n \t array('id' => '3488','state_id' => '33','name' => 'Ratangarh'),\n \t array('id' => '3489','state_id' => '33','name' => 'Rawatbhata'),\n \t array('id' => '3490','state_id' => '33','name' => 'Rawatsar'),\n \t array('id' => '3491','state_id' => '33','name' => 'Rikhabdev'),\n \t array('id' => '3492','state_id' => '33','name' => 'Ringas'),\n \t array('id' => '3493','state_id' => '33','name' => 'Sadri'),\n \t array('id' => '3494','state_id' => '33','name' => 'Sadulshahar'),\n \t array('id' => '3495','state_id' => '33','name' => 'Sagwara'),\n \t array('id' => '3496','state_id' => '33','name' => 'Salumbar'),\n \t array('id' => '3497','state_id' => '33','name' => 'Sambhar'),\n \t array('id' => '3498','state_id' => '33','name' => 'Samdari'),\n \t array('id' => '3499','state_id' => '33','name' => 'Sanchor'),\n \t array('id' => '3500','state_id' => '33','name' => 'Sangariya'),\n \t array('id' => '3501','state_id' => '33','name' => 'Sangod'),\n \t array('id' => '3502','state_id' => '33','name' => 'Sardarshahr'),\n \t array('id' => '3503','state_id' => '33','name' => 'Sarwar'),\n \t array('id' => '3504','state_id' => '33','name' => 'Satal Kheri'),\n \t array('id' => '3505','state_id' => '33','name' => 'Sawai Madhopur'),\n \t array('id' => '3506','state_id' => '33','name' => 'Sewan Kalan'),\n \t array('id' => '3507','state_id' => '33','name' => 'Shahpura'),\n \t array('id' => '3508','state_id' => '33','name' => 'Sheoganj'),\n \t array('id' => '3509','state_id' => '33','name' => 'Sikar'),\n \t array('id' => '3510','state_id' => '33','name' => 'Sirohi'),\n \t array('id' => '3511','state_id' => '33','name' => 'Siwana'),\n \t array('id' => '3512','state_id' => '33','name' => 'Sogariya'),\n \t array('id' => '3513','state_id' => '33','name' => 'Sojat'),\n \t array('id' => '3514','state_id' => '33','name' => 'Sojat Road'),\n \t array('id' => '3515','state_id' => '33','name' => 'Sri Madhopur'),\n \t array('id' => '3516','state_id' => '33','name' => 'Sriganganagar'),\n \t array('id' => '3517','state_id' => '33','name' => 'Sujangarh'),\n \t array('id' => '3518','state_id' => '33','name' => 'Suket'),\n \t array('id' => '3519','state_id' => '33','name' => 'Sumerpur'),\n \t array('id' => '3520','state_id' => '33','name' => 'Sunel'),\n \t array('id' => '3521','state_id' => '33','name' => 'Surajgarh'),\n \t array('id' => '3522','state_id' => '33','name' => 'Suratgarh'),\n \t array('id' => '3523','state_id' => '33','name' => 'Swaroopganj'),\n \t array('id' => '3524','state_id' => '33','name' => 'Takhatgarh'),\n \t array('id' => '3525','state_id' => '33','name' => 'Taranagar'),\n \t array('id' => '3526','state_id' => '33','name' => 'Three STR'),\n \t array('id' => '3527','state_id' => '33','name' => 'Tijara'),\n \t array('id' => '3528','state_id' => '33','name' => 'Toda Bhim'),\n \t array('id' => '3529','state_id' => '33','name' => 'Toda Raisingh'),\n \t array('id' => '3530','state_id' => '33','name' => 'Todra'),\n \t array('id' => '3531','state_id' => '33','name' => 'Tonk'),\n \t array('id' => '3532','state_id' => '33','name' => 'Udaipur'),\n \t array('id' => '3533','state_id' => '33','name' => 'Udpura'),\n \t array('id' => '3534','state_id' => '33','name' => 'Uniara'),\n \t array('id' => '3535','state_id' => '33','name' => 'Vanasthali'),\n \t array('id' => '3536','state_id' => '33','name' => 'Vidyavihar'),\n \t array('id' => '3537','state_id' => '33','name' => 'Vijainagar'),\n \t array('id' => '3538','state_id' => '33','name' => 'Viratnagar'),\n \t array('id' => '3539','state_id' => '33','name' => 'Wer'),\n \t array('id' => '3540','state_id' => '34','name' => 'Gangtok'),\n \t array('id' => '3541','state_id' => '34','name' => 'Gezing'),\n \t array('id' => '3542','state_id' => '34','name' => 'Jorethang'),\n \t array('id' => '3543','state_id' => '34','name' => 'Mangan'),\n \t array('id' => '3544','state_id' => '34','name' => 'Namchi'),\n \t array('id' => '3545','state_id' => '34','name' => 'Naya Bazar'),\n \t array('id' => '3546','state_id' => '34','name' => 'No City'),\n \t array('id' => '3547','state_id' => '34','name' => 'Rangpo'),\n \t array('id' => '3548','state_id' => '34','name' => 'Sikkim'),\n \t array('id' => '3549','state_id' => '34','name' => 'Singtam'),\n \t array('id' => '3550','state_id' => '34','name' => 'Upper Tadong'),\n \t array('id' => '3551','state_id' => '35','name' => 'Abiramam'),\n \t array('id' => '3552','state_id' => '35','name' => 'Achampudur'),\n \t array('id' => '3553','state_id' => '35','name' => 'Acharapakkam'),\n \t array('id' => '3554','state_id' => '35','name' => 'Acharipallam'),\n \t array('id' => '3555','state_id' => '35','name' => 'Achipatti'),\n \t array('id' => '3556','state_id' => '35','name' => 'Adikaratti'),\n \t array('id' => '3557','state_id' => '35','name' => 'Adiramapattinam'),\n \t array('id' => '3558','state_id' => '35','name' => 'Aduturai'),\n \t array('id' => '3559','state_id' => '35','name' => 'Adyar'),\n \t array('id' => '3560','state_id' => '35','name' => 'Agaram'),\n \t array('id' => '3561','state_id' => '35','name' => 'Agasthiswaram'),\n \t array('id' => '3562','state_id' => '35','name' => 'Akkaraipettai'),\n \t array('id' => '3563','state_id' => '35','name' => 'Alagappapuram'),\n \t array('id' => '3564','state_id' => '35','name' => 'Alagapuri'),\n \t array('id' => '3565','state_id' => '35','name' => 'Alampalayam'),\n \t array('id' => '3566','state_id' => '35','name' => 'Alandur'),\n \t array('id' => '3567','state_id' => '35','name' => 'Alanganallur'),\n \t array('id' => '3568','state_id' => '35','name' => 'Alangayam'),\n \t array('id' => '3569','state_id' => '35','name' => 'Alangudi'),\n \t array('id' => '3570','state_id' => '35','name' => 'Alangulam'),\n \t array('id' => '3571','state_id' => '35','name' => 'Alanthurai'),\n \t array('id' => '3572','state_id' => '35','name' => 'Alapakkam'),\n \t array('id' => '3573','state_id' => '35','name' => 'Allapuram'),\n \t array('id' => '3574','state_id' => '35','name' => 'Alur'),\n \t array('id' => '3575','state_id' => '35','name' => 'Alwar Tirunagari'),\n \t array('id' => '3576','state_id' => '35','name' => 'Alwarkurichi'),\n \t array('id' => '3577','state_id' => '35','name' => 'Ambasamudram'),\n \t array('id' => '3578','state_id' => '35','name' => 'Ambur'),\n \t array('id' => '3579','state_id' => '35','name' => 'Ammainaickanur'),\n \t array('id' => '3580','state_id' => '35','name' => 'Ammaparikuppam'),\n \t array('id' => '3581','state_id' => '35','name' => 'Ammapettai'),\n \t array('id' => '3582','state_id' => '35','name' => 'Ammavarikuppam'),\n \t array('id' => '3583','state_id' => '35','name' => 'Ammur'),\n \t array('id' => '3584','state_id' => '35','name' => 'Anaimalai'),\n \t array('id' => '3585','state_id' => '35','name' => 'Anaiyur'),\n \t array('id' => '3586','state_id' => '35','name' => 'Anakaputhur'),\n \t array('id' => '3587','state_id' => '35','name' => 'Ananthapuram'),\n \t array('id' => '3588','state_id' => '35','name' => 'Andanappettai'),\n \t array('id' => '3589','state_id' => '35','name' => 'Andipalayam'),\n \t array('id' => '3590','state_id' => '35','name' => 'Andippatti'),\n \t array('id' => '3591','state_id' => '35','name' => 'Anjugramam'),\n \t array('id' => '3592','state_id' => '35','name' => 'Annamalainagar'),\n \t array('id' => '3593','state_id' => '35','name' => 'Annavasal'),\n \t array('id' => '3594','state_id' => '35','name' => 'Annur'),\n \t array('id' => '3595','state_id' => '35','name' => 'Anthiyur'),\n \t array('id' => '3596','state_id' => '35','name' => 'Appakudal'),\n \t array('id' => '3597','state_id' => '35','name' => 'Arachalur'),\n \t array('id' => '3598','state_id' => '35','name' => 'Arakandanallur'),\n \t array('id' => '3599','state_id' => '35','name' => 'Arakonam'),\n \t array('id' => '3600','state_id' => '35','name' => 'Aralvaimozhi'),\n \t array('id' => '3601','state_id' => '35','name' => 'Arani'),\n \t array('id' => '3602','state_id' => '35','name' => 'Arani Road'),\n \t array('id' => '3603','state_id' => '35','name' => 'Arantangi'),\n \t array('id' => '3604','state_id' => '35','name' => 'Arasiramani'),\n \t array('id' => '3605','state_id' => '35','name' => 'Aravakurichi'),\n \t array('id' => '3606','state_id' => '35','name' => 'Aravankadu'),\n \t array('id' => '3607','state_id' => '35','name' => 'Arcot'),\n \t array('id' => '3608','state_id' => '35','name' => 'Arimalam'),\n \t array('id' => '3609','state_id' => '35','name' => 'Ariyalur'),\n \t array('id' => '3610','state_id' => '35','name' => 'Ariyappampalayam'),\n \t array('id' => '3611','state_id' => '35','name' => 'Ariyur'),\n \t array('id' => '3612','state_id' => '35','name' => 'Arni'),\n \t array('id' => '3613','state_id' => '35','name' => 'Arulmigu Thirumuruganpundi'),\n \t array('id' => '3614','state_id' => '35','name' => 'Arumanai'),\n \t array('id' => '3615','state_id' => '35','name' => 'Arumbavur'),\n \t array('id' => '3616','state_id' => '35','name' => 'Arumuganeri'),\n \t array('id' => '3617','state_id' => '35','name' => 'Aruppukkottai'),\n \t array('id' => '3618','state_id' => '35','name' => 'Ashokapuram'),\n \t array('id' => '3619','state_id' => '35','name' => 'Athani'),\n \t array('id' => '3620','state_id' => '35','name' => 'Athanur'),\n \t array('id' => '3621','state_id' => '35','name' => 'Athimarapatti'),\n \t array('id' => '3622','state_id' => '35','name' => 'Athipattu'),\n \t array('id' => '3623','state_id' => '35','name' => 'Athur'),\n \t array('id' => '3624','state_id' => '35','name' => 'Attayyampatti'),\n \t array('id' => '3625','state_id' => '35','name' => 'Attur'),\n \t array('id' => '3626','state_id' => '35','name' => 'Auroville'),\n \t array('id' => '3627','state_id' => '35','name' => 'Avadattur'),\n \t array('id' => '3628','state_id' => '35','name' => 'Avadi'),\n \t array('id' => '3629','state_id' => '35','name' => 'Avalpundurai'),\n \t array('id' => '3630','state_id' => '35','name' => 'Avaniapuram'),\n \t array('id' => '3631','state_id' => '35','name' => 'Avinashi'),\n \t array('id' => '3632','state_id' => '35','name' => 'Ayakudi'),\n \t array('id' => '3633','state_id' => '35','name' => 'Ayanadaippu'),\n \t array('id' => '3634','state_id' => '35','name' => 'Aygudi'),\n \t array('id' => '3635','state_id' => '35','name' => 'Ayothiapattinam'),\n \t array('id' => '3636','state_id' => '35','name' => 'Ayyalur'),\n \t array('id' => '3637','state_id' => '35','name' => 'Ayyampalayam'),\n \t array('id' => '3638','state_id' => '35','name' => 'Ayyampettai'),\n \t array('id' => '3639','state_id' => '35','name' => 'Azhagiapandiapuram'),\n \t array('id' => '3640','state_id' => '35','name' => 'Balakrishnampatti'),\n \t array('id' => '3641','state_id' => '35','name' => 'Balakrishnapuram'),\n \t array('id' => '3642','state_id' => '35','name' => 'Balapallam'),\n \t array('id' => '3643','state_id' => '35','name' => 'Balasamudram'),\n \t array('id' => '3644','state_id' => '35','name' => 'Bargur'),\n \t array('id' => '3645','state_id' => '35','name' => 'Belur'),\n \t array('id' => '3646','state_id' => '35','name' => 'Berhatty'),\n \t array('id' => '3647','state_id' => '35','name' => 'Bhavani'),\n \t array('id' => '3648','state_id' => '35','name' => 'Bhawanisagar'),\n \t array('id' => '3649','state_id' => '35','name' => 'Bhuvanagiri'),\n \t array('id' => '3650','state_id' => '35','name' => 'Bikketti'),\n \t array('id' => '3651','state_id' => '35','name' => 'Bodinayakkanur'),\n \t array('id' => '3652','state_id' => '35','name' => 'Brahmana Periya Agraharam'),\n \t array('id' => '3653','state_id' => '35','name' => 'Buthapandi'),\n \t array('id' => '3654','state_id' => '35','name' => 'Buthipuram'),\n \t array('id' => '3655','state_id' => '35','name' => 'Chatrapatti'),\n \t array('id' => '3656','state_id' => '35','name' => 'Chembarambakkam'),\n \t array('id' => '3657','state_id' => '35','name' => 'Chengalpattu'),\n \t array('id' => '3658','state_id' => '35','name' => 'Chengam'),\n \t array('id' => '3659','state_id' => '35','name' => 'Chennai'),\n \t array('id' => '3660','state_id' => '35','name' => 'Chennasamudram'),\n \t array('id' => '3661','state_id' => '35','name' => 'Chennimalai'),\n \t array('id' => '3662','state_id' => '35','name' => 'Cheranmadevi'),\n \t array('id' => '3663','state_id' => '35','name' => 'Cheruvanki'),\n \t array('id' => '3664','state_id' => '35','name' => 'Chetpet'),\n \t array('id' => '3665','state_id' => '35','name' => 'Chettiarpatti'),\n \t array('id' => '3666','state_id' => '35','name' => 'Chettipalaiyam'),\n \t array('id' => '3667','state_id' => '35','name' => 'Chettipalayam Cantonment'),\n \t array('id' => '3668','state_id' => '35','name' => 'Chettithangal'),\n \t array('id' => '3669','state_id' => '35','name' => 'Cheyur'),\n \t array('id' => '3670','state_id' => '35','name' => 'Cheyyar'),\n \t array('id' => '3671','state_id' => '35','name' => 'Chidambaram'),\n \t array('id' => '3672','state_id' => '35','name' => 'Chinalapatti'),\n \t array('id' => '3673','state_id' => '35','name' => 'Chinna Anuppanadi'),\n \t array('id' => '3674','state_id' => '35','name' => 'Chinna Salem'),\n \t array('id' => '3675','state_id' => '35','name' => 'Chinnakkampalayam'),\n \t array('id' => '3676','state_id' => '35','name' => 'Chinnammanur'),\n \t array('id' => '3677','state_id' => '35','name' => 'Chinnampalaiyam'),\n \t array('id' => '3678','state_id' => '35','name' => 'Chinnasekkadu'),\n \t array('id' => '3679','state_id' => '35','name' => 'Chinnavedampatti'),\n \t array('id' => '3680','state_id' => '35','name' => 'Chitlapakkam'),\n \t array('id' => '3681','state_id' => '35','name' => 'Chittodu'),\n \t array('id' => '3682','state_id' => '35','name' => 'Cholapuram'),\n \t array('id' => '3683','state_id' => '35','name' => 'Coimbatore'),\n \t array('id' => '3684','state_id' => '35','name' => 'Coonoor'),\n \t array('id' => '3685','state_id' => '35','name' => 'Courtalam'),\n \t array('id' => '3686','state_id' => '35','name' => 'Cuddalore'),\n \t array('id' => '3687','state_id' => '35','name' => 'Dalavaipatti'),\n \t array('id' => '3688','state_id' => '35','name' => 'Darasuram'),\n \t array('id' => '3689','state_id' => '35','name' => 'Denkanikottai'),\n \t array('id' => '3690','state_id' => '35','name' => 'Desur'),\n \t array('id' => '3691','state_id' => '35','name' => 'Devadanapatti'),\n \t array('id' => '3692','state_id' => '35','name' => 'Devakkottai'),\n \t array('id' => '3693','state_id' => '35','name' => 'Devakottai'),\n \t array('id' => '3694','state_id' => '35','name' => 'Devanangurichi'),\n \t array('id' => '3695','state_id' => '35','name' => 'Devarshola'),\n \t array('id' => '3696','state_id' => '35','name' => 'Devasthanam'),\n \t array('id' => '3697','state_id' => '35','name' => 'Dhalavoipuram'),\n \t array('id' => '3698','state_id' => '35','name' => 'Dhali'),\n \t array('id' => '3699','state_id' => '35','name' => 'Dhaliyur'),\n \t array('id' => '3700','state_id' => '35','name' => 'Dharapadavedu'),\n \t array('id' => '3701','state_id' => '35','name' => 'Dharapuram'),\n \t array('id' => '3702','state_id' => '35','name' => 'Dharmapuri'),\n \t array('id' => '3703','state_id' => '35','name' => 'Dindigul'),\n \t array('id' => '3704','state_id' => '35','name' => 'Dusi'),\n \t array('id' => '3705','state_id' => '35','name' => 'Edaganasalai'),\n \t array('id' => '3706','state_id' => '35','name' => 'Edaikodu'),\n \t array('id' => '3707','state_id' => '35','name' => 'Edakalinadu'),\n \t array('id' => '3708','state_id' => '35','name' => 'Elathur'),\n \t array('id' => '3709','state_id' => '35','name' => 'Elayirampannai'),\n \t array('id' => '3710','state_id' => '35','name' => 'Elumalai'),\n \t array('id' => '3711','state_id' => '35','name' => 'Eral'),\n \t array('id' => '3712','state_id' => '35','name' => 'Eraniel'),\n \t array('id' => '3713','state_id' => '35','name' => 'Eriodu'),\n \t array('id' => '3714','state_id' => '35','name' => 'Erode'),\n \t array('id' => '3715','state_id' => '35','name' => 'Erumaipatti'),\n \t array('id' => '3716','state_id' => '35','name' => 'Eruvadi'),\n \t array('id' => '3717','state_id' => '35','name' => 'Ethapur'),\n \t array('id' => '3718','state_id' => '35','name' => 'Ettaiyapuram'),\n \t array('id' => '3719','state_id' => '35','name' => 'Ettimadai'),\n \t array('id' => '3720','state_id' => '35','name' => 'Ezhudesam'),\n \t array('id' => '3721','state_id' => '35','name' => 'Ganapathipuram'),\n \t array('id' => '3722','state_id' => '35','name' => 'Gandhi Nagar'),\n \t array('id' => '3723','state_id' => '35','name' => 'Gangaikondan'),\n \t array('id' => '3724','state_id' => '35','name' => 'Gangavalli'),\n \t array('id' => '3725','state_id' => '35','name' => 'Ganguvarpatti'),\n \t array('id' => '3726','state_id' => '35','name' => 'Gingi'),\n \t array('id' => '3727','state_id' => '35','name' => 'Gopalasamudram'),\n \t array('id' => '3728','state_id' => '35','name' => 'Gopichettipalaiyam'),\n \t array('id' => '3729','state_id' => '35','name' => 'Gudalur'),\n \t array('id' => '3730','state_id' => '35','name' => 'Gudiyattam'),\n \t array('id' => '3731','state_id' => '35','name' => 'Guduvanchery'),\n \t array('id' => '3732','state_id' => '35','name' => 'Gummidipoondi'),\n \t array('id' => '3733','state_id' => '35','name' => 'Hanumanthampatti'),\n \t array('id' => '3734','state_id' => '35','name' => 'Harur'),\n \t array('id' => '3735','state_id' => '35','name' => 'Harveypatti'),\n \t array('id' => '3736','state_id' => '35','name' => 'Highways'),\n \t array('id' => '3737','state_id' => '35','name' => 'Hosur'),\n \t array('id' => '3738','state_id' => '35','name' => 'Hubbathala'),\n \t array('id' => '3739','state_id' => '35','name' => 'Huligal'),\n \t array('id' => '3740','state_id' => '35','name' => 'Idappadi'),\n \t array('id' => '3741','state_id' => '35','name' => 'Idikarai'),\n \t array('id' => '3742','state_id' => '35','name' => 'Ilampillai'),\n \t array('id' => '3743','state_id' => '35','name' => 'Ilanji'),\n \t array('id' => '3744','state_id' => '35','name' => 'Iluppaiyurani'),\n \t array('id' => '3745','state_id' => '35','name' => 'Iluppur'),\n \t array('id' => '3746','state_id' => '35','name' => 'Inam Karur'),\n \t array('id' => '3747','state_id' => '35','name' => 'Injambakkam'),\n \t array('id' => '3748','state_id' => '35','name' => 'Irugur'),\n \t array('id' => '3749','state_id' => '35','name' => 'Jaffrabad'),\n \t array('id' => '3750','state_id' => '35','name' => 'Jagathala'),\n \t array('id' => '3751','state_id' => '35','name' => 'Jalakandapuram'),\n \t array('id' => '3752','state_id' => '35','name' => 'Jalladiampet'),\n \t array('id' => '3753','state_id' => '35','name' => 'Jambai'),\n \t array('id' => '3754','state_id' => '35','name' => 'Jayankondam'),\n \t array('id' => '3755','state_id' => '35','name' => 'Jolarpet'),\n \t array('id' => '3756','state_id' => '35','name' => 'Kadambur'),\n \t array('id' => '3757','state_id' => '35','name' => 'Kadathur'),\n \t array('id' => '3758','state_id' => '35','name' => 'Kadayal'),\n \t array('id' => '3759','state_id' => '35','name' => 'Kadayampatti'),\n \t array('id' => '3760','state_id' => '35','name' => 'Kadayanallur'),\n \t array('id' => '3761','state_id' => '35','name' => 'Kadiapatti'),\n \t array('id' => '3762','state_id' => '35','name' => 'Kalakkad'),\n \t array('id' => '3763','state_id' => '35','name' => 'Kalambur'),\n \t array('id' => '3764','state_id' => '35','name' => 'Kalapatti'),\n \t array('id' => '3765','state_id' => '35','name' => 'Kalappanaickenpatti'),\n \t array('id' => '3766','state_id' => '35','name' => 'Kalavai'),\n \t array('id' => '3767','state_id' => '35','name' => 'Kalinjur'),\n \t array('id' => '3768','state_id' => '35','name' => 'Kaliyakkavilai'),\n \t array('id' => '3769','state_id' => '35','name' => 'Kallakkurichi'),\n \t array('id' => '3770','state_id' => '35','name' => 'Kallakudi'),\n \t array('id' => '3771','state_id' => '35','name' => 'Kallidaikurichchi'),\n \t array('id' => '3772','state_id' => '35','name' => 'Kallukuttam'),\n \t array('id' => '3773','state_id' => '35','name' => 'Kallupatti'),\n \t array('id' => '3774','state_id' => '35','name' => 'Kalpakkam'),\n \t array('id' => '3775','state_id' => '35','name' => 'Kalugumalai'),\n \t array('id' => '3776','state_id' => '35','name' => 'Kamayagoundanpatti'),\n \t array('id' => '3777','state_id' => '35','name' => 'Kambainallur'),\n \t array('id' => '3778','state_id' => '35','name' => 'Kambam'),\n \t array('id' => '3779','state_id' => '35','name' => 'Kamuthi'),\n \t array('id' => '3780','state_id' => '35','name' => 'Kanadukathan'),\n \t array('id' => '3781','state_id' => '35','name' => 'Kanakkampalayam'),\n \t array('id' => '3782','state_id' => '35','name' => 'Kanam'),\n \t array('id' => '3783','state_id' => '35','name' => 'Kanchipuram'),\n \t array('id' => '3784','state_id' => '35','name' => 'Kandanur'),\n \t array('id' => '3785','state_id' => '35','name' => 'Kangayam'),\n \t array('id' => '3786','state_id' => '35','name' => 'Kangayampalayam'),\n \t array('id' => '3787','state_id' => '35','name' => 'Kangeyanallur'),\n \t array('id' => '3788','state_id' => '35','name' => 'Kaniyur'),\n \t array('id' => '3789','state_id' => '35','name' => 'Kanjikoil'),\n \t array('id' => '3790','state_id' => '35','name' => 'Kannadendal'),\n \t array('id' => '3791','state_id' => '35','name' => 'Kannamangalam'),\n \t array('id' => '3792','state_id' => '35','name' => 'Kannampalayam'),\n \t array('id' => '3793','state_id' => '35','name' => 'Kannankurichi'),\n \t array('id' => '3794','state_id' => '35','name' => 'Kannapalaiyam'),\n \t array('id' => '3795','state_id' => '35','name' => 'Kannivadi'),\n \t array('id' => '3796','state_id' => '35','name' => 'Kanyakumari'),\n \t array('id' => '3797','state_id' => '35','name' => 'Kappiyarai'),\n \t array('id' => '3798','state_id' => '35','name' => 'Karaikkudi'),\n \t array('id' => '3799','state_id' => '35','name' => 'Karamadai'),\n \t array('id' => '3800','state_id' => '35','name' => 'Karambakkam'),\n \t array('id' => '3801','state_id' => '35','name' => 'Karambakkudi'),\n \t array('id' => '3802','state_id' => '35','name' => 'Kariamangalam'),\n \t array('id' => '3803','state_id' => '35','name' => 'Kariapatti'),\n \t array('id' => '3804','state_id' => '35','name' => 'Karugampattur'),\n \t array('id' => '3805','state_id' => '35','name' => 'Karumandi Chellipalayam'),\n \t array('id' => '3806','state_id' => '35','name' => 'Karumathampatti'),\n \t array('id' => '3807','state_id' => '35','name' => 'Karumbakkam'),\n \t array('id' => '3808','state_id' => '35','name' => 'Karungal'),\n \t array('id' => '3809','state_id' => '35','name' => 'Karunguzhi'),\n \t array('id' => '3810','state_id' => '35','name' => 'Karuppur'),\n \t array('id' => '3811','state_id' => '35','name' => 'Karur'),\n \t array('id' => '3812','state_id' => '35','name' => 'Kasipalaiyam'),\n \t array('id' => '3813','state_id' => '35','name' => 'Kasipalayam G'),\n \t array('id' => '3814','state_id' => '35','name' => 'Kathirvedu'),\n \t array('id' => '3815','state_id' => '35','name' => 'Kathujuganapalli'),\n \t array('id' => '3816','state_id' => '35','name' => 'Katpadi'),\n \t array('id' => '3817','state_id' => '35','name' => 'Kattivakkam'),\n \t array('id' => '3818','state_id' => '35','name' => 'Kattumannarkoil'),\n \t array('id' => '3819','state_id' => '35','name' => 'Kattupakkam'),\n \t array('id' => '3820','state_id' => '35','name' => 'Kattuputhur'),\n \t array('id' => '3821','state_id' => '35','name' => 'Kaveripakkam'),\n \t array('id' => '3822','state_id' => '35','name' => 'Kaveripattinam'),\n \t array('id' => '3823','state_id' => '35','name' => 'Kavundampalaiyam'),\n \t array('id' => '3824','state_id' => '35','name' => 'Kavundampalayam'),\n \t array('id' => '3825','state_id' => '35','name' => 'Kayalpattinam'),\n \t array('id' => '3826','state_id' => '35','name' => 'Kayattar'),\n \t array('id' => '3827','state_id' => '35','name' => 'Kelamangalam'),\n \t array('id' => '3828','state_id' => '35','name' => 'Kelambakkam'),\n \t array('id' => '3829','state_id' => '35','name' => 'Kembainaickenpalayam'),\n \t array('id' => '3830','state_id' => '35','name' => 'Kethi'),\n \t array('id' => '3831','state_id' => '35','name' => 'Kilakarai'),\n \t array('id' => '3832','state_id' => '35','name' => 'Kilampadi'),\n \t array('id' => '3833','state_id' => '35','name' => 'Kilkulam'),\n \t array('id' => '3834','state_id' => '35','name' => 'Kilkunda'),\n \t array('id' => '3835','state_id' => '35','name' => 'Killiyur'),\n \t array('id' => '3836','state_id' => '35','name' => 'Killlai'),\n \t array('id' => '3837','state_id' => '35','name' => 'Kilpennathur'),\n \t array('id' => '3838','state_id' => '35','name' => 'Kilvelur'),\n \t array('id' => '3839','state_id' => '35','name' => 'Kinathukadavu'),\n \t array('id' => '3840','state_id' => '35','name' => 'Kiramangalam'),\n \t array('id' => '3841','state_id' => '35','name' => 'Kiranur'),\n \t array('id' => '3842','state_id' => '35','name' => 'Kiripatti'),\n \t array('id' => '3843','state_id' => '35','name' => 'Kizhapavur'),\n \t array('id' => '3844','state_id' => '35','name' => 'Kmarasamipatti'),\n \t array('id' => '3845','state_id' => '35','name' => 'Kochadai'),\n \t array('id' => '3846','state_id' => '35','name' => 'Kodaikanal'),\n \t array('id' => '3847','state_id' => '35','name' => 'Kodambakkam'),\n \t array('id' => '3848','state_id' => '35','name' => 'Kodavasal'),\n \t array('id' => '3849','state_id' => '35','name' => 'Kodumudi'),\n \t array('id' => '3850','state_id' => '35','name' => 'Kolachal'),\n \t array('id' => '3851','state_id' => '35','name' => 'Kolappalur'),\n \t array('id' => '3852','state_id' => '35','name' => 'Kolathupalayam'),\n \t array('id' => '3853','state_id' => '35','name' => 'Kolathur'),\n \t array('id' => '3854','state_id' => '35','name' => 'Kollankodu'),\n \t array('id' => '3855','state_id' => '35','name' => 'Kollankoil'),\n \t array('id' => '3856','state_id' => '35','name' => 'Komaralingam'),\n \t array('id' => '3857','state_id' => '35','name' => 'Komarapalayam'),\n \t array('id' => '3858','state_id' => '35','name' => 'Kombai'),\n \t array('id' => '3859','state_id' => '35','name' => 'Konakkarai'),\n \t array('id' => '3860','state_id' => '35','name' => 'Konavattam'),\n \t array('id' => '3861','state_id' => '35','name' => 'Kondalampatti'),\n \t array('id' => '3862','state_id' => '35','name' => 'Konganapuram'),\n \t array('id' => '3863','state_id' => '35','name' => 'Koradacheri'),\n \t array('id' => '3864','state_id' => '35','name' => 'Korampallam'),\n \t array('id' => '3865','state_id' => '35','name' => 'Kotagiri'),\n \t array('id' => '3866','state_id' => '35','name' => 'Kothinallur'),\n \t array('id' => '3867','state_id' => '35','name' => 'Kottaiyur'),\n \t array('id' => '3868','state_id' => '35','name' => 'Kottakuppam'),\n \t array('id' => '3869','state_id' => '35','name' => 'Kottaram'),\n \t array('id' => '3870','state_id' => '35','name' => 'Kottivakkam'),\n \t array('id' => '3871','state_id' => '35','name' => 'Kottur'),\n \t array('id' => '3872','state_id' => '35','name' => 'Kovilpatti'),\n \t array('id' => '3873','state_id' => '35','name' => 'Koyampattur'),\n \t array('id' => '3874','state_id' => '35','name' => 'Krishnagiri'),\n \t array('id' => '3875','state_id' => '35','name' => 'Krishnarayapuram'),\n \t array('id' => '3876','state_id' => '35','name' => 'Krishnasamudram'),\n \t array('id' => '3877','state_id' => '35','name' => 'Kuchanur'),\n \t array('id' => '3878','state_id' => '35','name' => 'Kuhalur'),\n \t array('id' => '3879','state_id' => '35','name' => 'Kulasekarappattinam'),\n \t array('id' => '3880','state_id' => '35','name' => 'Kulasekarapuram'),\n \t array('id' => '3881','state_id' => '35','name' => 'Kulithalai'),\n \t array('id' => '3882','state_id' => '35','name' => 'Kumarapalaiyam'),\n \t array('id' => '3883','state_id' => '35','name' => 'Kumarapalayam'),\n \t array('id' => '3884','state_id' => '35','name' => 'Kumarapuram'),\n \t array('id' => '3885','state_id' => '35','name' => 'Kumbakonam'),\n \t array('id' => '3886','state_id' => '35','name' => 'Kundrathur'),\n \t array('id' => '3887','state_id' => '35','name' => 'Kuniyamuthur'),\n \t array('id' => '3888','state_id' => '35','name' => 'Kunnathur'),\n \t array('id' => '3889','state_id' => '35','name' => 'Kunur'),\n \t array('id' => '3890','state_id' => '35','name' => 'Kuraikundu'),\n \t array('id' => '3891','state_id' => '35','name' => 'Kurichi'),\n \t array('id' => '3892','state_id' => '35','name' => 'Kurinjippadi'),\n \t array('id' => '3893','state_id' => '35','name' => 'Kurudampalaiyam'),\n \t array('id' => '3894','state_id' => '35','name' => 'Kurumbalur'),\n \t array('id' => '3895','state_id' => '35','name' => 'Kuthalam'),\n \t array('id' => '3896','state_id' => '35','name' => 'Kuthappar'),\n \t array('id' => '3897','state_id' => '35','name' => 'Kuttalam'),\n \t array('id' => '3898','state_id' => '35','name' => 'Kuttanallur'),\n \t array('id' => '3899','state_id' => '35','name' => 'Kuzhithurai'),\n \t array('id' => '3900','state_id' => '35','name' => 'Labbaikudikadu'),\n \t array('id' => '3901','state_id' => '35','name' => 'Lakkampatti'),\n \t array('id' => '3902','state_id' => '35','name' => 'Lalgudi'),\n \t array('id' => '3903','state_id' => '35','name' => 'Lalpet'),\n \t array('id' => '3904','state_id' => '35','name' => 'Llayangudi'),\n \t array('id' => '3905','state_id' => '35','name' => 'Madambakkam'),\n \t array('id' => '3906','state_id' => '35','name' => 'Madanur'),\n \t array('id' => '3907','state_id' => '35','name' => 'Madathukulam'),\n \t array('id' => '3908','state_id' => '35','name' => 'Madhavaram'),\n \t array('id' => '3909','state_id' => '35','name' => 'Madippakkam'),\n \t array('id' => '3910','state_id' => '35','name' => 'Madukkarai'),\n \t array('id' => '3911','state_id' => '35','name' => 'Madukkur'),\n \t array('id' => '3912','state_id' => '35','name' => 'Madurai'),\n \t array('id' => '3913','state_id' => '35','name' => 'Maduranthakam'),\n \t array('id' => '3914','state_id' => '35','name' => 'Maduravoyal'),\n \t array('id' => '3915','state_id' => '35','name' => 'Mahabalipuram'),\n \t array('id' => '3916','state_id' => '35','name' => 'Makkinanpatti'),\n \t array('id' => '3917','state_id' => '35','name' => 'Mallamuppampatti'),\n \t array('id' => '3918','state_id' => '35','name' => 'Mallankinaru'),\n \t array('id' => '3919','state_id' => '35','name' => 'Mallapuram'),\n \t array('id' => '3920','state_id' => '35','name' => 'Mallasamudram'),\n \t array('id' => '3921','state_id' => '35','name' => 'Mallur'),\n \t array('id' => '3922','state_id' => '35','name' => 'Mamallapuram'),\n \t array('id' => '3923','state_id' => '35','name' => 'Mamsapuram'),\n \t array('id' => '3924','state_id' => '35','name' => 'Manachanallur'),\n \t array('id' => '3925','state_id' => '35','name' => 'Manali'),\n \t array('id' => '3926','state_id' => '35','name' => 'Manalmedu'),\n \t array('id' => '3927','state_id' => '35','name' => 'Manalurpet'),\n \t array('id' => '3928','state_id' => '35','name' => 'Manamadurai'),\n \t array('id' => '3929','state_id' => '35','name' => 'Manapakkam'),\n \t array('id' => '3930','state_id' => '35','name' => 'Manapparai'),\n \t array('id' => '3931','state_id' => '35','name' => 'Manavalakurichi'),\n \t array('id' => '3932','state_id' => '35','name' => 'Mandaikadu'),\n \t array('id' => '3933','state_id' => '35','name' => 'Mandapam'),\n \t array('id' => '3934','state_id' => '35','name' => 'Mangadu'),\n \t array('id' => '3935','state_id' => '35','name' => 'Mangalam'),\n \t array('id' => '3936','state_id' => '35','name' => 'Mangalampet'),\n \t array('id' => '3937','state_id' => '35','name' => 'Manimutharu'),\n \t array('id' => '3938','state_id' => '35','name' => 'Mannargudi'),\n \t array('id' => '3939','state_id' => '35','name' => 'Mappilaiurani'),\n \t array('id' => '3940','state_id' => '35','name' => 'Maraimalai Nagar'),\n \t array('id' => '3941','state_id' => '35','name' => 'Marakkanam'),\n \t array('id' => '3942','state_id' => '35','name' => 'Maramangalathupatti'),\n \t array('id' => '3943','state_id' => '35','name' => 'Marandahalli'),\n \t array('id' => '3944','state_id' => '35','name' => 'Markayankottai'),\n \t array('id' => '3945','state_id' => '35','name' => 'Marudur'),\n \t array('id' => '3946','state_id' => '35','name' => 'Marungur'),\n \t array('id' => '3947','state_id' => '35','name' => 'Masinigudi'),\n \t array('id' => '3948','state_id' => '35','name' => 'Mathigiri'),\n \t array('id' => '3949','state_id' => '35','name' => 'Mattur'),\n \t array('id' => '3950','state_id' => '35','name' => 'Mayiladuthurai'),\n \t array('id' => '3951','state_id' => '35','name' => 'Mecheri'),\n \t array('id' => '3952','state_id' => '35','name' => 'Melacheval'),\n \t array('id' => '3953','state_id' => '35','name' => 'Melachokkanathapuram'),\n \t array('id' => '3954','state_id' => '35','name' => 'Melagaram'),\n \t array('id' => '3955','state_id' => '35','name' => 'Melamadai'),\n \t array('id' => '3956','state_id' => '35','name' => 'Melamaiyur'),\n \t array('id' => '3957','state_id' => '35','name' => 'Melanattam'),\n \t array('id' => '3958','state_id' => '35','name' => 'Melathiruppanthuruthi'),\n \t array('id' => '3959','state_id' => '35','name' => 'Melattur'),\n \t array('id' => '3960','state_id' => '35','name' => 'Melmananbedu'),\n \t array('id' => '3961','state_id' => '35','name' => 'Melpattampakkam'),\n \t array('id' => '3962','state_id' => '35','name' => 'Melur'),\n \t array('id' => '3963','state_id' => '35','name' => 'Melvisharam'),\n \t array('id' => '3964','state_id' => '35','name' => 'Mettupalayam'),\n \t array('id' => '3965','state_id' => '35','name' => 'Mettur'),\n \t array('id' => '3966','state_id' => '35','name' => 'Meyyanur'),\n \t array('id' => '3967','state_id' => '35','name' => 'Milavittan'),\n \t array('id' => '3968','state_id' => '35','name' => 'Minakshipuram'),\n \t array('id' => '3969','state_id' => '35','name' => 'Minambakkam'),\n \t array('id' => '3970','state_id' => '35','name' => 'Minjur'),\n \t array('id' => '3971','state_id' => '35','name' => 'Modakurichi'),\n \t array('id' => '3972','state_id' => '35','name' => 'Mohanur'),\n \t array('id' => '3973','state_id' => '35','name' => 'Mopperipalayam'),\n \t array('id' => '3974','state_id' => '35','name' => 'Mudalur'),\n \t array('id' => '3975','state_id' => '35','name' => 'Mudichur'),\n \t array('id' => '3976','state_id' => '35','name' => 'Mudukulathur'),\n \t array('id' => '3977','state_id' => '35','name' => 'Mukasipidariyur'),\n \t array('id' => '3978','state_id' => '35','name' => 'Mukkudal'),\n \t array('id' => '3979','state_id' => '35','name' => 'Mulagumudu'),\n \t array('id' => '3980','state_id' => '35','name' => 'Mulakaraipatti'),\n \t array('id' => '3981','state_id' => '35','name' => 'Mulanur'),\n \t array('id' => '3982','state_id' => '35','name' => 'Mullakkadu'),\n \t array('id' => '3983','state_id' => '35','name' => 'Muruganpalayam'),\n \t array('id' => '3984','state_id' => '35','name' => 'Musiri'),\n \t array('id' => '3985','state_id' => '35','name' => 'Muthupet'),\n \t array('id' => '3986','state_id' => '35','name' => 'Muthur'),\n \t array('id' => '3987','state_id' => '35','name' => 'Muttayyapuram'),\n \t array('id' => '3988','state_id' => '35','name' => 'Muttupet'),\n \t array('id' => '3989','state_id' => '35','name' => 'Muvarasampettai'),\n \t array('id' => '3990','state_id' => '35','name' => 'Myladi'),\n \t array('id' => '3991','state_id' => '35','name' => 'Mylapore'),\n \t array('id' => '3992','state_id' => '35','name' => 'Nadukkuthagai'),\n \t array('id' => '3993','state_id' => '35','name' => 'Naduvattam'),\n \t array('id' => '3994','state_id' => '35','name' => 'Nagapattinam'),\n \t array('id' => '3995','state_id' => '35','name' => 'Nagavakulam'),\n \t array('id' => '3996','state_id' => '35','name' => 'Nagercoil'),\n \t array('id' => '3997','state_id' => '35','name' => 'Nagojanahalli'),\n \t array('id' => '3998','state_id' => '35','name' => 'Nallampatti'),\n \t array('id' => '3999','state_id' => '35','name' => 'Nallur'),\n \t array('id' => '4000','state_id' => '35','name' => 'Namagiripettai'),\n \t array('id' => '4001','state_id' => '35','name' => 'Namakkal'),\n \t array('id' => '4002','state_id' => '35','name' => 'Nambiyur'),\n \t array('id' => '4003','state_id' => '35','name' => 'Nambutalai'),\n \t array('id' => '4004','state_id' => '35','name' => 'Nandambakkam'),\n \t array('id' => '4005','state_id' => '35','name' => 'Nandivaram'),\n \t array('id' => '4006','state_id' => '35','name' => 'Nangavalli'),\n \t array('id' => '4007','state_id' => '35','name' => 'Nangavaram'),\n \t array('id' => '4008','state_id' => '35','name' => 'Nanguneri'),\n \t array('id' => '4009','state_id' => '35','name' => 'Nanjikottai'),\n \t array('id' => '4010','state_id' => '35','name' => 'Nannilam'),\n \t array('id' => '4011','state_id' => '35','name' => 'Naranammalpuram'),\n \t array('id' => '4012','state_id' => '35','name' => 'Naranapuram'),\n \t array('id' => '4013','state_id' => '35','name' => 'Narasimhanaickenpalayam'),\n \t array('id' => '4014','state_id' => '35','name' => 'Narasingapuram'),\n \t array('id' => '4015','state_id' => '35','name' => 'Narasojipatti'),\n \t array('id' => '4016','state_id' => '35','name' => 'Naravarikuppam'),\n \t array('id' => '4017','state_id' => '35','name' => 'Nasiyanur'),\n \t array('id' => '4018','state_id' => '35','name' => 'Natham'),\n \t array('id' => '4019','state_id' => '35','name' => 'Nathampannai'),\n \t array('id' => '4020','state_id' => '35','name' => 'Natrampalli'),\n \t array('id' => '4021','state_id' => '35','name' => 'Nattam'),\n \t array('id' => '4022','state_id' => '35','name' => 'Nattapettai'),\n \t array('id' => '4023','state_id' => '35','name' => 'Nattarasankottai'),\n \t array('id' => '4024','state_id' => '35','name' => 'Navalpattu'),\n \t array('id' => '4025','state_id' => '35','name' => 'Nazarethpettai'),\n \t array('id' => '4026','state_id' => '35','name' => 'Nazerath'),\n \t array('id' => '4027','state_id' => '35','name' => 'Neikkarapatti'),\n \t array('id' => '4028','state_id' => '35','name' => 'Neiyyur'),\n \t array('id' => '4029','state_id' => '35','name' => 'Nellikkuppam'),\n \t array('id' => '4030','state_id' => '35','name' => 'Nelliyalam'),\n \t array('id' => '4031','state_id' => '35','name' => 'Nemili'),\n \t array('id' => '4032','state_id' => '35','name' => 'Nemilicheri'),\n \t array('id' => '4033','state_id' => '35','name' => 'Neripperichal'),\n \t array('id' => '4034','state_id' => '35','name' => 'Nerkunram'),\n \t array('id' => '4035','state_id' => '35','name' => 'Nerkuppai'),\n \t array('id' => '4036','state_id' => '35','name' => 'Nerunjipettai'),\n \t array('id' => '4037','state_id' => '35','name' => 'Neykkarappatti'),\n \t array('id' => '4038','state_id' => '35','name' => 'Neyveli'),\n \t array('id' => '4039','state_id' => '35','name' => 'Nidamangalam'),\n \t array('id' => '4040','state_id' => '35','name' => 'Nilagiri'),\n \t array('id' => '4041','state_id' => '35','name' => 'Nilakkottai'),\n \t array('id' => '4042','state_id' => '35','name' => 'Nilankarai'),\n \t array('id' => '4043','state_id' => '35','name' => 'Odaipatti'),\n \t array('id' => '4044','state_id' => '35','name' => 'Odaiyakulam'),\n \t array('id' => '4045','state_id' => '35','name' => 'Oddanchatram'),\n \t array('id' => '4046','state_id' => '35','name' => 'Odugathur'),\n \t array('id' => '4047','state_id' => '35','name' => 'Oggiyamduraipakkam'),\n \t array('id' => '4048','state_id' => '35','name' => 'Olagadam'),\n \t array('id' => '4049','state_id' => '35','name' => 'Omalur'),\n \t array('id' => '4050','state_id' => '35','name' => 'Ooty'),\n \t array('id' => '4051','state_id' => '35','name' => 'Orathanadu'),\n \t array('id' => '4052','state_id' => '35','name' => 'Othakadai'),\n \t array('id' => '4053','state_id' => '35','name' => 'Othakalmandapam'),\n \t array('id' => '4054','state_id' => '35','name' => 'Ottapparai'),\n \t array('id' => '4055','state_id' => '35','name' => 'Pacode'),\n \t array('id' => '4056','state_id' => '35','name' => 'Padaividu'),\n \t array('id' => '4057','state_id' => '35','name' => 'Padianallur'),\n \t array('id' => '4058','state_id' => '35','name' => 'Padirikuppam'),\n \t array('id' => '4059','state_id' => '35','name' => 'Padmanabhapuram'),\n \t array('id' => '4060','state_id' => '35','name' => 'Padririvedu'),\n \t array('id' => '4061','state_id' => '35','name' => 'Palaganangudy'),\n \t array('id' => '4062','state_id' => '35','name' => 'Palaimpatti'),\n \t array('id' => '4063','state_id' => '35','name' => 'Palakkodu'),\n \t array('id' => '4064','state_id' => '35','name' => 'Palamedu'),\n \t array('id' => '4065','state_id' => '35','name' => 'Palani'),\n \t array('id' => '4066','state_id' => '35','name' => 'Palani Chettipatti'),\n \t array('id' => '4067','state_id' => '35','name' => 'Palavakkam'),\n \t array('id' => '4068','state_id' => '35','name' => 'Palavansathu'),\n \t array('id' => '4069','state_id' => '35','name' => 'Palayakayal'),\n \t array('id' => '4070','state_id' => '35','name' => 'Palayam'),\n \t array('id' => '4071','state_id' => '35','name' => 'Palayamkottai'),\n \t array('id' => '4072','state_id' => '35','name' => 'Palladam'),\n \t array('id' => '4073','state_id' => '35','name' => 'Pallapalayam'),\n \t array('id' => '4074','state_id' => '35','name' => 'Pallapatti'),\n \t array('id' => '4075','state_id' => '35','name' => 'Pallattur'),\n \t array('id' => '4076','state_id' => '35','name' => 'Pallavaram'),\n \t array('id' => '4077','state_id' => '35','name' => 'Pallikaranai'),\n \t array('id' => '4078','state_id' => '35','name' => 'Pallikonda'),\n \t array('id' => '4079','state_id' => '35','name' => 'Pallipalaiyam'),\n \t array('id' => '4080','state_id' => '35','name' => 'Pallipalaiyam Agraharam'),\n \t array('id' => '4081','state_id' => '35','name' => 'Pallipattu'),\n \t array('id' => '4082','state_id' => '35','name' => 'Pammal'),\n \t array('id' => '4083','state_id' => '35','name' => 'Panagudi'),\n \t array('id' => '4084','state_id' => '35','name' => 'Panaimarathupatti'),\n \t array('id' => '4085','state_id' => '35','name' => 'Panapakkam'),\n \t array('id' => '4086','state_id' => '35','name' => 'Panboli'),\n \t array('id' => '4087','state_id' => '35','name' => 'Pandamangalam'),\n \t array('id' => '4088','state_id' => '35','name' => 'Pannaikadu'),\n \t array('id' => '4089','state_id' => '35','name' => 'Pannaipuram'),\n \t array('id' => '4090','state_id' => '35','name' => 'Pannuratti'),\n \t array('id' => '4091','state_id' => '35','name' => 'Panruti'),\n \t array('id' => '4092','state_id' => '35','name' => 'Papanasam'),\n \t array('id' => '4093','state_id' => '35','name' => 'Pappankurichi'),\n \t array('id' => '4094','state_id' => '35','name' => 'Papparapatti'),\n \t array('id' => '4095','state_id' => '35','name' => 'Pappireddipatti'),\n \t array('id' => '4096','state_id' => '35','name' => 'Paramakkudi'),\n \t array('id' => '4097','state_id' => '35','name' => 'Paramankurichi'),\n \t array('id' => '4098','state_id' => '35','name' => 'Paramathi'),\n \t array('id' => '4099','state_id' => '35','name' => 'Parangippettai'),\n \t array('id' => '4100','state_id' => '35','name' => 'Paravai'),\n \t array('id' => '4101','state_id' => '35','name' => 'Pasur'),\n \t array('id' => '4102','state_id' => '35','name' => 'Pathamadai'),\n \t array('id' => '4103','state_id' => '35','name' => 'Pattinam'),\n \t array('id' => '4104','state_id' => '35','name' => 'Pattiviranpatti'),\n \t array('id' => '4105','state_id' => '35','name' => 'Pattukkottai'),\n \t array('id' => '4106','state_id' => '35','name' => 'Pazhugal'),\n \t array('id' => '4107','state_id' => '35','name' => 'Pennadam'),\n \t array('id' => '4108','state_id' => '35','name' => 'Pennagaram'),\n \t array('id' => '4109','state_id' => '35','name' => 'Pennathur'),\n \t array('id' => '4110','state_id' => '35','name' => 'Peraiyur'),\n \t array('id' => '4111','state_id' => '35','name' => 'Peralam'),\n \t array('id' => '4112','state_id' => '35','name' => 'Perambalur'),\n \t array('id' => '4113','state_id' => '35','name' => 'Peranamallur'),\n \t array('id' => '4114','state_id' => '35','name' => 'Peravurani'),\n \t array('id' => '4115','state_id' => '35','name' => 'Periyakodiveri'),\n \t array('id' => '4116','state_id' => '35','name' => 'Periyakulam'),\n \t array('id' => '4117','state_id' => '35','name' => 'Periyanayakkanpalaiyam'),\n \t array('id' => '4118','state_id' => '35','name' => 'Periyanegamam'),\n \t array('id' => '4119','state_id' => '35','name' => 'Periyapatti'),\n \t array('id' => '4120','state_id' => '35','name' => 'Periyasemur'),\n \t array('id' => '4121','state_id' => '35','name' => 'Pernambut'),\n \t array('id' => '4122','state_id' => '35','name' => 'Perumagalur'),\n \t array('id' => '4123','state_id' => '35','name' => 'Perumandi'),\n \t array('id' => '4124','state_id' => '35','name' => 'Perumuchi'),\n \t array('id' => '4125','state_id' => '35','name' => 'Perundurai'),\n \t array('id' => '4126','state_id' => '35','name' => 'Perungalathur'),\n \t array('id' => '4127','state_id' => '35','name' => 'Perungudi'),\n \t array('id' => '4128','state_id' => '35','name' => 'Perungulam'),\n \t array('id' => '4129','state_id' => '35','name' => 'Perur'),\n \t array('id' => '4130','state_id' => '35','name' => 'Perur Chettipalaiyam'),\n \t array('id' => '4131','state_id' => '35','name' => 'Pethampalayam'),\n \t array('id' => '4132','state_id' => '35','name' => 'Pethanaickenpalayam'),\n \t array('id' => '4133','state_id' => '35','name' => 'Pillanallur'),\n \t array('id' => '4134','state_id' => '35','name' => 'Pirkankaranai'),\n \t array('id' => '4135','state_id' => '35','name' => 'Polichalur'),\n \t array('id' => '4136','state_id' => '35','name' => 'Pollachi'),\n \t array('id' => '4137','state_id' => '35','name' => 'Polur'),\n \t array('id' => '4138','state_id' => '35','name' => 'Ponmani'),\n \t array('id' => '4139','state_id' => '35','name' => 'Ponnamaravathi'),\n \t array('id' => '4140','state_id' => '35','name' => 'Ponnampatti'),\n \t array('id' => '4141','state_id' => '35','name' => 'Ponneri'),\n \t array('id' => '4142','state_id' => '35','name' => 'Porur'),\n \t array('id' => '4143','state_id' => '35','name' => 'Pothanur'),\n \t array('id' => '4144','state_id' => '35','name' => 'Pothatturpettai'),\n \t array('id' => '4145','state_id' => '35','name' => 'Pudukadai'),\n \t array('id' => '4146','state_id' => '35','name' => 'Pudukkottai Cantonment'),\n \t array('id' => '4147','state_id' => '35','name' => 'Pudukottai'),\n \t array('id' => '4148','state_id' => '35','name' => 'Pudupalaiyam Aghraharam'),\n \t array('id' => '4149','state_id' => '35','name' => 'Pudupalayam'),\n \t array('id' => '4150','state_id' => '35','name' => 'Pudupatti'),\n \t array('id' => '4151','state_id' => '35','name' => 'Pudupattinam'),\n \t array('id' => '4152','state_id' => '35','name' => 'Pudur'),\n \t array('id' => '4153','state_id' => '35','name' => 'Puduvayal'),\n \t array('id' => '4154','state_id' => '35','name' => 'Pulambadi'),\n \t array('id' => '4155','state_id' => '35','name' => 'Pulampatti'),\n \t array('id' => '4156','state_id' => '35','name' => 'Puliyampatti'),\n \t array('id' => '4157','state_id' => '35','name' => 'Puliyankudi'),\n \t array('id' => '4158','state_id' => '35','name' => 'Puliyur'),\n \t array('id' => '4159','state_id' => '35','name' => 'Pullampadi'),\n \t array('id' => '4160','state_id' => '35','name' => 'Puluvapatti'),\n \t array('id' => '4161','state_id' => '35','name' => 'Punamalli'),\n \t array('id' => '4162','state_id' => '35','name' => 'Punjai Puliyampatti'),\n \t array('id' => '4163','state_id' => '35','name' => 'Punjai Thottakurichi'),\n \t array('id' => '4164','state_id' => '35','name' => 'Punjaipugalur'),\n \t array('id' => '4165','state_id' => '35','name' => 'Puthalam'),\n \t array('id' => '4166','state_id' => '35','name' => 'Putteri'),\n \t array('id' => '4167','state_id' => '35','name' => 'Puvalur'),\n \t array('id' => '4168','state_id' => '35','name' => 'Puzhal'),\n \t array('id' => '4169','state_id' => '35','name' => 'Puzhithivakkam'),\n \t array('id' => '4170','state_id' => '35','name' => 'Rajapalayam'),\n \t array('id' => '4171','state_id' => '35','name' => 'Ramanathapuram'),\n \t array('id' => '4172','state_id' => '35','name' => 'Ramapuram'),\n \t array('id' => '4173','state_id' => '35','name' => 'Rameswaram'),\n \t array('id' => '4174','state_id' => '35','name' => 'Ranipet'),\n \t array('id' => '4175','state_id' => '35','name' => 'Rasipuram'),\n \t array('id' => '4176','state_id' => '35','name' => 'Rayagiri'),\n \t array('id' => '4177','state_id' => '35','name' => 'Rithapuram'),\n \t array('id' => '4178','state_id' => '35','name' => 'Rosalpatti'),\n \t array('id' => '4179','state_id' => '35','name' => 'Rudravathi'),\n \t array('id' => '4180','state_id' => '35','name' => 'Sadayankuppam'),\n \t array('id' => '4181','state_id' => '35','name' => 'Saint Thomas Mount'),\n \t array('id' => '4182','state_id' => '35','name' => 'Salangapalayam'),\n \t array('id' => '4183','state_id' => '35','name' => 'Salem'),\n \t array('id' => '4184','state_id' => '35','name' => 'Samalapuram'),\n \t array('id' => '4185','state_id' => '35','name' => 'Samathur'),\n \t array('id' => '4186','state_id' => '35','name' => 'Sambavar Vadagarai'),\n \t array('id' => '4187','state_id' => '35','name' => 'Sankaramanallur'),\n \t array('id' => '4188','state_id' => '35','name' => 'Sankarankoil'),\n \t array('id' => '4189','state_id' => '35','name' => 'Sankarapuram'),\n \t array('id' => '4190','state_id' => '35','name' => 'Sankari'),\n \t array('id' => '4191','state_id' => '35','name' => 'Sankarnagar'),\n \t array('id' => '4192','state_id' => '35','name' => 'Saravanampatti'),\n \t array('id' => '4193','state_id' => '35','name' => 'Sarcarsamakulam'),\n \t array('id' => '4194','state_id' => '35','name' => 'Sathiyavijayanagaram'),\n \t array('id' => '4195','state_id' => '35','name' => 'Sathuvachari'),\n \t array('id' => '4196','state_id' => '35','name' => 'Sathyamangalam'),\n \t array('id' => '4197','state_id' => '35','name' => 'Sattankulam'),\n \t array('id' => '4198','state_id' => '35','name' => 'Sattur'),\n \t array('id' => '4199','state_id' => '35','name' => 'Sayalgudi'),\n \t array('id' => '4200','state_id' => '35','name' => 'Sayapuram'),\n \t array('id' => '4201','state_id' => '35','name' => 'Seithur'),\n \t array('id' => '4202','state_id' => '35','name' => 'Sembakkam'),\n \t array('id' => '4203','state_id' => '35','name' => 'Semmipalayam'),\n \t array('id' => '4204','state_id' => '35','name' => 'Sennirkuppam'),\n \t array('id' => '4205','state_id' => '35','name' => 'Senthamangalam'),\n \t array('id' => '4206','state_id' => '35','name' => 'Sentharapatti'),\n \t array('id' => '4207','state_id' => '35','name' => 'Senur'),\n \t array('id' => '4208','state_id' => '35','name' => 'Sethiathoppu'),\n \t array('id' => '4209','state_id' => '35','name' => 'Sevilimedu'),\n \t array('id' => '4210','state_id' => '35','name' => 'Sevugampatti'),\n \t array('id' => '4211','state_id' => '35','name' => 'Shenbakkam'),\n \t array('id' => '4212','state_id' => '35','name' => 'Shencottai'),\n \t array('id' => '4213','state_id' => '35','name' => 'Shenkottai'),\n \t array('id' => '4214','state_id' => '35','name' => 'Sholavandan'),\n \t array('id' => '4215','state_id' => '35','name' => 'Sholinganallur'),\n \t array('id' => '4216','state_id' => '35','name' => 'Sholingur'),\n \t array('id' => '4217','state_id' => '35','name' => 'Sholur'),\n \t array('id' => '4218','state_id' => '35','name' => 'Sikkarayapuram'),\n \t array('id' => '4219','state_id' => '35','name' => 'Singampuneri'),\n \t array('id' => '4220','state_id' => '35','name' => 'Singanallur'),\n \t array('id' => '4221','state_id' => '35','name' => 'Singaperumalkoil'),\n \t array('id' => '4222','state_id' => '35','name' => 'Sirapalli'),\n \t array('id' => '4223','state_id' => '35','name' => 'Sirkali'),\n \t array('id' => '4224','state_id' => '35','name' => 'Sirugamani'),\n \t array('id' => '4225','state_id' => '35','name' => 'Sirumugai'),\n \t array('id' => '4226','state_id' => '35','name' => 'Sithayankottai'),\n \t array('id' => '4227','state_id' => '35','name' => 'Sithurajapuram'),\n \t array('id' => '4228','state_id' => '35','name' => 'Sivaganga'),\n \t array('id' => '4229','state_id' => '35','name' => 'Sivagiri'),\n \t array('id' => '4230','state_id' => '35','name' => 'Sivakasi'),\n \t array('id' => '4231','state_id' => '35','name' => 'Sivanthipuram'),\n \t array('id' => '4232','state_id' => '35','name' => 'Sivur'),\n \t array('id' => '4233','state_id' => '35','name' => 'Soranjeri'),\n \t array('id' => '4234','state_id' => '35','name' => 'South Kannanur'),\n \t array('id' => '4235','state_id' => '35','name' => 'South Kodikulam'),\n \t array('id' => '4236','state_id' => '35','name' => 'Srimushnam'),\n \t array('id' => '4237','state_id' => '35','name' => 'Sriperumpudur'),\n \t array('id' => '4238','state_id' => '35','name' => 'Sriramapuram'),\n \t array('id' => '4239','state_id' => '35','name' => 'Srirangam'),\n \t array('id' => '4240','state_id' => '35','name' => 'Srivaikuntam'),\n \t array('id' => '4241','state_id' => '35','name' => 'Srivilliputtur'),\n \t array('id' => '4242','state_id' => '35','name' => 'Suchindram'),\n \t array('id' => '4243','state_id' => '35','name' => 'Suliswaranpatti'),\n \t array('id' => '4244','state_id' => '35','name' => 'Sulur'),\n \t array('id' => '4245','state_id' => '35','name' => 'Sundarapandiam'),\n \t array('id' => '4246','state_id' => '35','name' => 'Sundarapandiapuram'),\n \t array('id' => '4247','state_id' => '35','name' => 'Surampatti'),\n \t array('id' => '4248','state_id' => '35','name' => 'Surandai'),\n \t array('id' => '4249','state_id' => '35','name' => 'Suriyampalayam'),\n \t array('id' => '4250','state_id' => '35','name' => 'Swamimalai'),\n \t array('id' => '4251','state_id' => '35','name' => 'TNPL Pugalur'),\n \t array('id' => '4252','state_id' => '35','name' => 'Tambaram'),\n \t array('id' => '4253','state_id' => '35','name' => 'Taramangalam'),\n \t array('id' => '4254','state_id' => '35','name' => 'Tattayyangarpettai'),\n \t array('id' => '4255','state_id' => '35','name' => 'Tayilupatti'),\n \t array('id' => '4256','state_id' => '35','name' => 'Tenkasi'),\n \t array('id' => '4257','state_id' => '35','name' => 'Thadikombu'),\n \t array('id' => '4258','state_id' => '35','name' => 'Thakkolam'),\n \t array('id' => '4259','state_id' => '35','name' => 'Thalainayar'),\n \t array('id' => '4260','state_id' => '35','name' => 'Thalakudi'),\n \t array('id' => '4261','state_id' => '35','name' => 'Thamaraikulam'),\n \t array('id' => '4262','state_id' => '35','name' => 'Thammampatti'),\n \t array('id' => '4263','state_id' => '35','name' => 'Thanjavur'),\n \t array('id' => '4264','state_id' => '35','name' => 'Thanthoni'),\n \t array('id' => '4265','state_id' => '35','name' => 'Tharangambadi'),\n \t array('id' => '4266','state_id' => '35','name' => 'Thedavur'),\n \t array('id' => '4267','state_id' => '35','name' => 'Thenambakkam'),\n \t array('id' => '4268','state_id' => '35','name' => 'Thengampudur'),\n \t array('id' => '4269','state_id' => '35','name' => 'Theni'),\n \t array('id' => '4270','state_id' => '35','name' => 'Theni Allinagaram'),\n \t array('id' => '4271','state_id' => '35','name' => 'Thenkarai'),\n \t array('id' => '4272','state_id' => '35','name' => 'Thenthamaraikulam'),\n \t array('id' => '4273','state_id' => '35','name' => 'Thenthiruperai'),\n \t array('id' => '4274','state_id' => '35','name' => 'Thesur'),\n \t array('id' => '4275','state_id' => '35','name' => 'Thevaram'),\n \t array('id' => '4276','state_id' => '35','name' => 'Thevur'),\n \t array('id' => '4277','state_id' => '35','name' => 'Thiagadurgam'),\n \t array('id' => '4278','state_id' => '35','name' => 'Thiagarajar Colony'),\n \t array('id' => '4279','state_id' => '35','name' => 'Thingalnagar'),\n \t array('id' => '4280','state_id' => '35','name' => 'Thiruchirapalli'),\n \t array('id' => '4281','state_id' => '35','name' => 'Thirukarungudi'),\n \t array('id' => '4282','state_id' => '35','name' => 'Thirukazhukundram'),\n \t array('id' => '4283','state_id' => '35','name' => 'Thirumalayampalayam'),\n \t array('id' => '4284','state_id' => '35','name' => 'Thirumazhisai'),\n \t array('id' => '4285','state_id' => '35','name' => 'Thirunagar'),\n \t array('id' => '4286','state_id' => '35','name' => 'Thirunageswaram'),\n \t array('id' => '4287','state_id' => '35','name' => 'Thirunindravur'),\n \t array('id' => '4288','state_id' => '35','name' => 'Thirunirmalai'),\n \t array('id' => '4289','state_id' => '35','name' => 'Thiruparankundram'),\n \t array('id' => '4290','state_id' => '35','name' => 'Thiruparappu'),\n \t array('id' => '4291','state_id' => '35','name' => 'Thiruporur'),\n \t array('id' => '4292','state_id' => '35','name' => 'Thiruppanandal'),\n \t array('id' => '4293','state_id' => '35','name' => 'Thirupuvanam'),\n \t array('id' => '4294','state_id' => '35','name' => 'Thiruthangal'),\n \t array('id' => '4295','state_id' => '35','name' => 'Thiruthuraipundi'),\n \t array('id' => '4296','state_id' => '35','name' => 'Thiruvaivaru'),\n \t array('id' => '4297','state_id' => '35','name' => 'Thiruvalam'),\n \t array('id' => '4298','state_id' => '35','name' => 'Thiruvarur'),\n \t array('id' => '4299','state_id' => '35','name' => 'Thiruvattaru'),\n \t array('id' => '4300','state_id' => '35','name' => 'Thiruvenkatam'),\n \t array('id' => '4301','state_id' => '35','name' => 'Thiruvennainallur'),\n \t array('id' => '4302','state_id' => '35','name' => 'Thiruvithankodu'),\n \t array('id' => '4303','state_id' => '35','name' => 'Thisayanvilai'),\n \t array('id' => '4304','state_id' => '35','name' => 'Thittacheri'),\n \t array('id' => '4305','state_id' => '35','name' => 'Thondamuthur'),\n \t array('id' => '4306','state_id' => '35','name' => 'Thorapadi'),\n \t array('id' => '4307','state_id' => '35','name' => 'Thottipalayam'),\n \t array('id' => '4308','state_id' => '35','name' => 'Thottiyam'),\n \t array('id' => '4309','state_id' => '35','name' => 'Thudiyalur'),\n \t array('id' => '4310','state_id' => '35','name' => 'Thuthipattu'),\n \t array('id' => '4311','state_id' => '35','name' => 'Thuvakudi'),\n \t array('id' => '4312','state_id' => '35','name' => 'Timiri'),\n \t array('id' => '4313','state_id' => '35','name' => 'Tindivanam'),\n \t array('id' => '4314','state_id' => '35','name' => 'Tinnanur'),\n \t array('id' => '4315','state_id' => '35','name' => 'Tiruchchendur'),\n \t array('id' => '4316','state_id' => '35','name' => 'Tiruchengode'),\n \t array('id' => '4317','state_id' => '35','name' => 'Tirukkalukkundram'),\n \t array('id' => '4318','state_id' => '35','name' => 'Tirukkattuppalli'),\n \t array('id' => '4319','state_id' => '35','name' => 'Tirukkoyilur'),\n \t array('id' => '4320','state_id' => '35','name' => 'Tirumangalam'),\n \t array('id' => '4321','state_id' => '35','name' => 'Tirumullaivasal'),\n \t array('id' => '4322','state_id' => '35','name' => 'Tirumuruganpundi'),\n \t array('id' => '4323','state_id' => '35','name' => 'Tirunageswaram'),\n \t array('id' => '4324','state_id' => '35','name' => 'Tirunelveli'),\n \t array('id' => '4325','state_id' => '35','name' => 'Tirupathur'),\n \t array('id' => '4326','state_id' => '35','name' => 'Tirupattur'),\n \t array('id' => '4327','state_id' => '35','name' => 'Tiruppuvanam'),\n \t array('id' => '4328','state_id' => '35','name' => 'Tirupur'),\n \t array('id' => '4329','state_id' => '35','name' => 'Tirusulam'),\n \t array('id' => '4330','state_id' => '35','name' => 'Tiruttani'),\n \t array('id' => '4331','state_id' => '35','name' => 'Tiruvallur'),\n \t array('id' => '4332','state_id' => '35','name' => 'Tiruvannamalai'),\n \t array('id' => '4333','state_id' => '35','name' => 'Tiruverambur'),\n \t array('id' => '4334','state_id' => '35','name' => 'Tiruverkadu'),\n \t array('id' => '4335','state_id' => '35','name' => 'Tiruvethipuram'),\n \t array('id' => '4336','state_id' => '35','name' => 'Tiruvidaimarudur'),\n \t array('id' => '4337','state_id' => '35','name' => 'Tiruvottiyur'),\n \t array('id' => '4338','state_id' => '35','name' => 'Tittakudi'),\n \t array('id' => '4339','state_id' => '35','name' => 'Tondi'),\n \t array('id' => '4340','state_id' => '35','name' => 'Turaiyur'),\n \t array('id' => '4341','state_id' => '35','name' => 'Tuticorin'),\n \t array('id' => '4342','state_id' => '35','name' => 'Udagamandalam'),\n \t array('id' => '4343','state_id' => '35','name' => 'Udagamandalam Valley'),\n \t array('id' => '4344','state_id' => '35','name' => 'Udankudi'),\n \t array('id' => '4345','state_id' => '35','name' => 'Udayarpalayam'),\n \t array('id' => '4346','state_id' => '35','name' => 'Udumalaipettai'),\n \t array('id' => '4347','state_id' => '35','name' => 'Udumalpet'),\n \t array('id' => '4348','state_id' => '35','name' => 'Ullur'),\n \t array('id' => '4349','state_id' => '35','name' => 'Ulundurpettai'),\n \t array('id' => '4350','state_id' => '35','name' => 'Unjalaur'),\n \t array('id' => '4351','state_id' => '35','name' => 'Unnamalaikadai'),\n \t array('id' => '4352','state_id' => '35','name' => 'Uppidamangalam'),\n \t array('id' => '4353','state_id' => '35','name' => 'Uppiliapuram'),\n \t array('id' => '4354','state_id' => '35','name' => 'Urachikkottai'),\n \t array('id' => '4355','state_id' => '35','name' => 'Urapakkam'),\n \t array('id' => '4356','state_id' => '35','name' => 'Usilampatti'),\n \t array('id' => '4357','state_id' => '35','name' => 'Uthangarai'),\n \t array('id' => '4358','state_id' => '35','name' => 'Uthayendram'),\n \t array('id' => '4359','state_id' => '35','name' => 'Uthiramerur'),\n \t array('id' => '4360','state_id' => '35','name' => 'Uthukkottai'),\n \t array('id' => '4361','state_id' => '35','name' => 'Uttamapalaiyam'),\n \t array('id' => '4362','state_id' => '35','name' => 'Uttukkuli'),\n \t array('id' => '4363','state_id' => '35','name' => 'Vadakarai Kizhpadugai'),\n \t array('id' => '4364','state_id' => '35','name' => 'Vadakkanandal'),\n \t array('id' => '4365','state_id' => '35','name' => 'Vadakku Valliyur'),\n \t array('id' => '4366','state_id' => '35','name' => 'Vadalur'),\n \t array('id' => '4367','state_id' => '35','name' => 'Vadamadurai'),\n \t array('id' => '4368','state_id' => '35','name' => 'Vadavalli'),\n \t array('id' => '4369','state_id' => '35','name' => 'Vadipatti'),\n \t array('id' => '4370','state_id' => '35','name' => 'Vadugapatti'),\n \t array('id' => '4371','state_id' => '35','name' => 'Vaithiswarankoil'),\n \t array('id' => '4372','state_id' => '35','name' => 'Valangaiman'),\n \t array('id' => '4373','state_id' => '35','name' => 'Valasaravakkam'),\n \t array('id' => '4374','state_id' => '35','name' => 'Valavanur'),\n \t array('id' => '4375','state_id' => '35','name' => 'Vallam'),\n \t array('id' => '4376','state_id' => '35','name' => 'Valparai'),\n \t array('id' => '4377','state_id' => '35','name' => 'Valvaithankoshtam'),\n \t array('id' => '4378','state_id' => '35','name' => 'Vanavasi'),\n \t array('id' => '4379','state_id' => '35','name' => 'Vandalur'),\n \t array('id' => '4380','state_id' => '35','name' => 'Vandavasi'),\n \t array('id' => '4381','state_id' => '35','name' => 'Vandiyur'),\n \t array('id' => '4382','state_id' => '35','name' => 'Vaniputhur'),\n \t array('id' => '4383','state_id' => '35','name' => 'Vaniyambadi'),\n \t array('id' => '4384','state_id' => '35','name' => 'Varadarajanpettai'),\n \t array('id' => '4385','state_id' => '35','name' => 'Varadharajapuram'),\n \t array('id' => '4386','state_id' => '35','name' => 'Vasudevanallur'),\n \t array('id' => '4387','state_id' => '35','name' => 'Vathirairuppu'),\n \t array('id' => '4388','state_id' => '35','name' => 'Vattalkundu'),\n \t array('id' => '4389','state_id' => '35','name' => 'Vazhapadi'),\n \t array('id' => '4390','state_id' => '35','name' => 'Vedapatti'),\n \t array('id' => '4391','state_id' => '35','name' => 'Vedaranniyam'),\n \t array('id' => '4392','state_id' => '35','name' => 'Vedasandur'),\n \t array('id' => '4393','state_id' => '35','name' => 'Velampalaiyam'),\n \t array('id' => '4394','state_id' => '35','name' => 'Velankanni'),\n \t array('id' => '4395','state_id' => '35','name' => 'Vellakinar'),\n \t array('id' => '4396','state_id' => '35','name' => 'Vellakoil'),\n \t array('id' => '4397','state_id' => '35','name' => 'Vellalapatti'),\n \t array('id' => '4398','state_id' => '35','name' => 'Vellalur'),\n \t array('id' => '4399','state_id' => '35','name' => 'Vellanur'),\n \t array('id' => '4400','state_id' => '35','name' => 'Vellimalai'),\n \t array('id' => '4401','state_id' => '35','name' => 'Vellore'),\n \t array('id' => '4402','state_id' => '35','name' => 'Vellottamparappu'),\n \t array('id' => '4403','state_id' => '35','name' => 'Velluru'),\n \t array('id' => '4404','state_id' => '35','name' => 'Vengampudur'),\n \t array('id' => '4405','state_id' => '35','name' => 'Vengathur'),\n \t array('id' => '4406','state_id' => '35','name' => 'Vengavasal'),\n \t array('id' => '4407','state_id' => '35','name' => 'Venghatur'),\n \t array('id' => '4408','state_id' => '35','name' => 'Venkarai'),\n \t array('id' => '4409','state_id' => '35','name' => 'Vennanthur'),\n \t array('id' => '4410','state_id' => '35','name' => 'Veppathur'),\n \t array('id' => '4411','state_id' => '35','name' => 'Verkilambi'),\n \t array('id' => '4412','state_id' => '35','name' => 'Vettaikaranpudur'),\n \t array('id' => '4413','state_id' => '35','name' => 'Vettavalam'),\n \t array('id' => '4414','state_id' => '35','name' => 'Vijayapuri'),\n \t array('id' => '4415','state_id' => '35','name' => 'Vikramasingapuram'),\n \t array('id' => '4416','state_id' => '35','name' => 'Vikravandi'),\n \t array('id' => '4417','state_id' => '35','name' => 'Vilangudi'),\n \t array('id' => '4418','state_id' => '35','name' => 'Vilankurichi'),\n \t array('id' => '4419','state_id' => '35','name' => 'Vilapakkam'),\n \t array('id' => '4420','state_id' => '35','name' => 'Vilathikulam'),\n \t array('id' => '4421','state_id' => '35','name' => 'Vilavur'),\n \t array('id' => '4422','state_id' => '35','name' => 'Villukuri'),\n \t array('id' => '4423','state_id' => '35','name' => 'Villupuram'),\n \t array('id' => '4424','state_id' => '35','name' => 'Viraganur'),\n \t array('id' => '4425','state_id' => '35','name' => 'Virakeralam'),\n \t array('id' => '4426','state_id' => '35','name' => 'Virakkalpudur'),\n \t array('id' => '4427','state_id' => '35','name' => 'Virapandi'),\n \t array('id' => '4428','state_id' => '35','name' => 'Virapandi Cantonment'),\n \t array('id' => '4429','state_id' => '35','name' => 'Virappanchatram'),\n \t array('id' => '4430','state_id' => '35','name' => 'Viravanallur'),\n \t array('id' => '4431','state_id' => '35','name' => 'Virudambattu'),\n \t array('id' => '4432','state_id' => '35','name' => 'Virudhachalam'),\n \t array('id' => '4433','state_id' => '35','name' => 'Virudhunagar'),\n \t array('id' => '4434','state_id' => '35','name' => 'Virupakshipuram'),\n \t array('id' => '4435','state_id' => '35','name' => 'Viswanatham'),\n \t array('id' => '4436','state_id' => '35','name' => 'Vriddhachalam'),\n \t array('id' => '4437','state_id' => '35','name' => 'Walajabad'),\n \t array('id' => '4438','state_id' => '35','name' => 'Walajapet'),\n \t array('id' => '4439','state_id' => '35','name' => 'Wellington'),\n \t array('id' => '4440','state_id' => '35','name' => 'Yercaud'),\n \t array('id' => '4441','state_id' => '35','name' => 'Zamin Uthukuli'),\n \t array('id' => '4442','state_id' => '36','name' => 'Achampet'),\n \t array('id' => '4443','state_id' => '36','name' => 'Adilabad'),\n \t array('id' => '4444','state_id' => '36','name' => 'Armoor'),\n \t array('id' => '4445','state_id' => '36','name' => 'Asifabad'),\n \t array('id' => '4446','state_id' => '36','name' => 'Badepally'),\n \t array('id' => '4447','state_id' => '36','name' => 'Banswada'),\n \t array('id' => '4448','state_id' => '36','name' => 'Bellampalli'),\n \t array('id' => '4449','state_id' => '36','name' => 'Bhadrachalam'),\n \t array('id' => '4450','state_id' => '36','name' => 'Bhainsa'),\n \t array('id' => '4451','state_id' => '36','name' => 'Bhongir'),\n \t array('id' => '4452','state_id' => '36','name' => 'Bhupalpally'),\n \t array('id' => '4453','state_id' => '36','name' => 'Bodhan'),\n \t array('id' => '4454','state_id' => '36','name' => 'Bollaram'),\n \t array('id' => '4455','state_id' => '36','name' => 'Devarkonda'),\n \t array('id' => '4456','state_id' => '36','name' => 'Farooqnagar'),\n \t array('id' => '4457','state_id' => '36','name' => 'Gadwal'),\n \t array('id' => '4458','state_id' => '36','name' => 'Gajwel'),\n \t array('id' => '4459','state_id' => '36','name' => 'Ghatkesar'),\n \t array('id' => '4460','state_id' => '36','name' => 'Hyderabad'),\n \t array('id' => '4461','state_id' => '36','name' => 'Jagtial'),\n \t array('id' => '4462','state_id' => '36','name' => 'Jangaon'),\n \t array('id' => '4463','state_id' => '36','name' => 'Kagaznagar'),\n \t array('id' => '4464','state_id' => '36','name' => 'Kalwakurthy'),\n \t array('id' => '4465','state_id' => '36','name' => 'Kamareddy'),\n \t array('id' => '4466','state_id' => '36','name' => 'Karimnagar'),\n \t array('id' => '4467','state_id' => '36','name' => 'Khammam'),\n \t array('id' => '4468','state_id' => '36','name' => 'Kodada'),\n \t array('id' => '4469','state_id' => '36','name' => 'Koratla'),\n \t array('id' => '4470','state_id' => '36','name' => 'Kottagudem'),\n \t array('id' => '4471','state_id' => '36','name' => 'Kyathampalle'),\n \t array('id' => '4472','state_id' => '36','name' => 'Madhira'),\n \t array('id' => '4473','state_id' => '36','name' => 'Mahabubabad'),\n \t array('id' => '4474','state_id' => '36','name' => 'Mahbubnagar'),\n \t array('id' => '4475','state_id' => '36','name' => 'Mancherial'),\n \t array('id' => '4476','state_id' => '36','name' => 'Mandamarri'),\n \t array('id' => '4477','state_id' => '36','name' => 'Manuguru'),\n \t array('id' => '4478','state_id' => '36','name' => 'Medak'),\n \t array('id' => '4479','state_id' => '36','name' => 'Medchal'),\n \t array('id' => '4480','state_id' => '36','name' => 'Miryalaguda'),\n \t array('id' => '4481','state_id' => '36','name' => 'Nagar Karnul'),\n \t array('id' => '4482','state_id' => '36','name' => 'Nakrekal'),\n \t array('id' => '4483','state_id' => '36','name' => 'Nalgonda'),\n \t array('id' => '4484','state_id' => '36','name' => 'Narayanpet'),\n \t array('id' => '4485','state_id' => '36','name' => 'Narsampet'),\n \t array('id' => '4486','state_id' => '36','name' => 'Nirmal'),\n \t array('id' => '4487','state_id' => '36','name' => 'Nizamabad'),\n \t array('id' => '4488','state_id' => '36','name' => 'Palwancha'),\n \t array('id' => '4489','state_id' => '36','name' => 'Peddapalli'),\n \t array('id' => '4490','state_id' => '36','name' => 'Ramagundam'),\n \t array('id' => '4491','state_id' => '36','name' => 'Ranga Reddy district'),\n \t array('id' => '4492','state_id' => '36','name' => 'Sadasivpet'),\n \t array('id' => '4493','state_id' => '36','name' => 'Sangareddy'),\n \t array('id' => '4494','state_id' => '36','name' => 'Sarapaka'),\n \t array('id' => '4495','state_id' => '36','name' => 'Sathupalle'),\n \t array('id' => '4496','state_id' => '36','name' => 'Secunderabad'),\n \t array('id' => '4497','state_id' => '36','name' => 'Siddipet'),\n \t array('id' => '4498','state_id' => '36','name' => 'Singapur'),\n \t array('id' => '4499','state_id' => '36','name' => 'Sircilla'),\n \t array('id' => '4500','state_id' => '36','name' => 'Suryapet'),\n \t array('id' => '4501','state_id' => '36','name' => 'Tandur'),\n \t array('id' => '4502','state_id' => '36','name' => 'Vemulawada'),\n \t array('id' => '4503','state_id' => '36','name' => 'Vikarabad'),\n \t array('id' => '4504','state_id' => '36','name' => 'Wanaparthy'),\n \t array('id' => '4505','state_id' => '36','name' => 'Warangal'),\n \t array('id' => '4506','state_id' => '36','name' => 'Yellandu'),\n \t array('id' => '4507','state_id' => '36','name' => 'Zahirabad'),\n \t array('id' => '4508','state_id' => '37','name' => 'Agartala'),\n \t array('id' => '4509','state_id' => '37','name' => 'Amarpur'),\n \t array('id' => '4510','state_id' => '37','name' => 'Ambassa'),\n \t array('id' => '4511','state_id' => '37','name' => 'Badharghat'),\n \t array('id' => '4512','state_id' => '37','name' => 'Belonia'),\n \t array('id' => '4513','state_id' => '37','name' => 'Dharmanagar'),\n \t array('id' => '4514','state_id' => '37','name' => 'Gakulnagar'),\n \t array('id' => '4515','state_id' => '37','name' => 'Gandhigram'),\n \t array('id' => '4516','state_id' => '37','name' => 'Indranagar'),\n \t array('id' => '4517','state_id' => '37','name' => 'Jogendranagar'),\n \t array('id' => '4518','state_id' => '37','name' => 'Kailasahar'),\n \t array('id' => '4519','state_id' => '37','name' => 'Kamalpur'),\n \t array('id' => '4520','state_id' => '37','name' => 'Kanchanpur'),\n \t array('id' => '4521','state_id' => '37','name' => 'Khowai'),\n \t array('id' => '4522','state_id' => '37','name' => 'Kumarghat'),\n \t array('id' => '4523','state_id' => '37','name' => 'Kunjaban'),\n \t array('id' => '4524','state_id' => '37','name' => 'Narsingarh'),\n \t array('id' => '4525','state_id' => '37','name' => 'Pratapgarh'),\n \t array('id' => '4526','state_id' => '37','name' => 'Ranir Bazar'),\n \t array('id' => '4527','state_id' => '37','name' => 'Sabrum'),\n \t array('id' => '4528','state_id' => '37','name' => 'Sonamura'),\n \t array('id' => '4529','state_id' => '37','name' => 'Teliamura'),\n \t array('id' => '4530','state_id' => '37','name' => 'Udaipur'),\n \t array('id' => '4531','state_id' => '38','name' => 'Achhalda'),\n \t array('id' => '4532','state_id' => '38','name' => 'Achhnera'),\n \t array('id' => '4533','state_id' => '38','name' => 'Adari'),\n \t array('id' => '4534','state_id' => '38','name' => 'Afzalgarh'),\n \t array('id' => '4535','state_id' => '38','name' => 'Agarwal Mandi'),\n \t array('id' => '4536','state_id' => '38','name' => 'Agra'),\n \t array('id' => '4537','state_id' => '38','name' => 'Agra Cantonment'),\n \t array('id' => '4538','state_id' => '38','name' => 'Ahraura'),\n \t array('id' => '4539','state_id' => '38','name' => 'Ailum'),\n \t array('id' => '4540','state_id' => '38','name' => 'Air Force Area'),\n \t array('id' => '4541','state_id' => '38','name' => 'Ajhuwa'),\n \t array('id' => '4542','state_id' => '38','name' => 'Akbarpur'),\n \t array('id' => '4543','state_id' => '38','name' => 'Alapur'),\n \t array('id' => '4544','state_id' => '38','name' => 'Aliganj'),\n \t array('id' => '4545','state_id' => '38','name' => 'Aligarh'),\n \t array('id' => '4546','state_id' => '38','name' => 'Allahabad'),\n \t array('id' => '4547','state_id' => '38','name' => 'Allahabad Cantonment'),\n \t array('id' => '4548','state_id' => '38','name' => 'Allahganj'),\n \t array('id' => '4549','state_id' => '38','name' => 'Amanpur'),\n \t array('id' => '4550','state_id' => '38','name' => 'Ambahta'),\n \t array('id' => '4551','state_id' => '38','name' => 'Amethi'),\n \t array('id' => '4552','state_id' => '38','name' => 'Amila'),\n \t array('id' => '4553','state_id' => '38','name' => 'Amilo'),\n \t array('id' => '4554','state_id' => '38','name' => 'Aminagar Sarai'),\n \t array('id' => '4555','state_id' => '38','name' => 'Aminagar Urf Bhurbaral'),\n \t array('id' => '4556','state_id' => '38','name' => 'Amraudha'),\n \t array('id' => '4557','state_id' => '38','name' => 'Amroha'),\n \t array('id' => '4558','state_id' => '38','name' => 'Anandnagar'),\n \t array('id' => '4559','state_id' => '38','name' => 'Anpara'),\n \t array('id' => '4560','state_id' => '38','name' => 'Antu'),\n \t array('id' => '4561','state_id' => '38','name' => 'Anupshahr'),\n \t array('id' => '4562','state_id' => '38','name' => 'Aonla'),\n \t array('id' => '4563','state_id' => '38','name' => 'Armapur Estate'),\n \t array('id' => '4564','state_id' => '38','name' => 'Ashokpuram'),\n \t array('id' => '4565','state_id' => '38','name' => 'Ashrafpur Kichhauchha'),\n \t array('id' => '4566','state_id' => '38','name' => 'Atarra'),\n \t array('id' => '4567','state_id' => '38','name' => 'Atasu'),\n \t array('id' => '4568','state_id' => '38','name' => 'Atrauli'),\n \t array('id' => '4569','state_id' => '38','name' => 'Atraulia'),\n \t array('id' => '4570','state_id' => '38','name' => 'Auraiya'),\n \t array('id' => '4571','state_id' => '38','name' => 'Aurangabad'),\n \t array('id' => '4572','state_id' => '38','name' => 'Aurangabad Bangar'),\n \t array('id' => '4573','state_id' => '38','name' => 'Auras'),\n \t array('id' => '4574','state_id' => '38','name' => 'Awagarh'),\n \t array('id' => '4575','state_id' => '38','name' => 'Ayodhya'),\n \t array('id' => '4576','state_id' => '38','name' => 'Azamgarh'),\n \t array('id' => '4577','state_id' => '38','name' => 'Azizpur'),\n \t array('id' => '4578','state_id' => '38','name' => 'Azmatgarh'),\n \t array('id' => '4579','state_id' => '38','name' => 'Babarpur Ajitmal'),\n \t array('id' => '4580','state_id' => '38','name' => 'Baberu'),\n \t array('id' => '4581','state_id' => '38','name' => 'Babina'),\n \t array('id' => '4582','state_id' => '38','name' => 'Babrala'),\n \t array('id' => '4583','state_id' => '38','name' => 'Babugarh'),\n \t array('id' => '4584','state_id' => '38','name' => 'Bachhiowan'),\n \t array('id' => '4585','state_id' => '38','name' => 'Bachhraon'),\n \t array('id' => '4586','state_id' => '38','name' => 'Bad'),\n \t array('id' => '4587','state_id' => '38','name' => 'Badaun'),\n \t array('id' => '4588','state_id' => '38','name' => 'Baghpat'),\n \t array('id' => '4589','state_id' => '38','name' => 'Bah'),\n \t array('id' => '4590','state_id' => '38','name' => 'Bahadurganj'),\n \t array('id' => '4591','state_id' => '38','name' => 'Baheri'),\n \t array('id' => '4592','state_id' => '38','name' => 'Bahjoi'),\n \t array('id' => '4593','state_id' => '38','name' => 'Bahraich'),\n \t array('id' => '4594','state_id' => '38','name' => 'Bahsuma'),\n \t array('id' => '4595','state_id' => '38','name' => 'Bahua'),\n \t array('id' => '4596','state_id' => '38','name' => 'Bajna'),\n \t array('id' => '4597','state_id' => '38','name' => 'Bakewar'),\n \t array('id' => '4598','state_id' => '38','name' => 'Bakiabad'),\n \t array('id' => '4599','state_id' => '38','name' => 'Baldeo'),\n \t array('id' => '4600','state_id' => '38','name' => 'Ballia'),\n \t array('id' => '4601','state_id' => '38','name' => 'Balrampur'),\n \t array('id' => '4602','state_id' => '38','name' => 'Banat'),\n \t array('id' => '4603','state_id' => '38','name' => 'Banda'),\n \t array('id' => '4604','state_id' => '38','name' => 'Bangarmau'),\n \t array('id' => '4605','state_id' => '38','name' => 'Banki'),\n \t array('id' => '4606','state_id' => '38','name' => 'Bansdih'),\n \t array('id' => '4607','state_id' => '38','name' => 'Bansgaon'),\n \t array('id' => '4608','state_id' => '38','name' => 'Bansi'),\n \t array('id' => '4609','state_id' => '38','name' => 'Barabanki'),\n \t array('id' => '4610','state_id' => '38','name' => 'Baragaon'),\n \t array('id' => '4611','state_id' => '38','name' => 'Baraut'),\n \t array('id' => '4612','state_id' => '38','name' => 'Bareilly'),\n \t array('id' => '4613','state_id' => '38','name' => 'Bareilly Cantonment'),\n \t array('id' => '4614','state_id' => '38','name' => 'Barhalganj'),\n \t array('id' => '4615','state_id' => '38','name' => 'Barhani'),\n \t array('id' => '4616','state_id' => '38','name' => 'Barhapur'),\n \t array('id' => '4617','state_id' => '38','name' => 'Barkhera'),\n \t array('id' => '4618','state_id' => '38','name' => 'Barsana'),\n \t array('id' => '4619','state_id' => '38','name' => 'Barva Sagar'),\n \t array('id' => '4620','state_id' => '38','name' => 'Barwar'),\n \t array('id' => '4621','state_id' => '38','name' => 'Basti'),\n \t array('id' => '4622','state_id' => '38','name' => 'Begumabad Budhana'),\n \t array('id' => '4623','state_id' => '38','name' => 'Behat'),\n \t array('id' => '4624','state_id' => '38','name' => 'Behta Hajipur'),\n \t array('id' => '4625','state_id' => '38','name' => 'Bela'),\n \t array('id' => '4626','state_id' => '38','name' => 'Belthara'),\n \t array('id' => '4627','state_id' => '38','name' => 'Beniganj'),\n \t array('id' => '4628','state_id' => '38','name' => 'Beswan'),\n \t array('id' => '4629','state_id' => '38','name' => 'Bewar'),\n \t array('id' => '4630','state_id' => '38','name' => 'Bhadarsa'),\n \t array('id' => '4631','state_id' => '38','name' => 'Bhadohi'),\n \t array('id' => '4632','state_id' => '38','name' => 'Bhagwantnagar'),\n \t array('id' => '4633','state_id' => '38','name' => 'Bharatganj'),\n \t array('id' => '4634','state_id' => '38','name' => 'Bhargain'),\n \t array('id' => '4635','state_id' => '38','name' => 'Bharthana'),\n \t array('id' => '4636','state_id' => '38','name' => 'Bharuhana'),\n \t array('id' => '4637','state_id' => '38','name' => 'Bharwari'),\n \t array('id' => '4638','state_id' => '38','name' => 'Bhatni Bazar'),\n \t array('id' => '4639','state_id' => '38','name' => 'Bhatpar Rani'),\n \t array('id' => '4640','state_id' => '38','name' => 'Bhawan Bahadurnagar'),\n \t array('id' => '4641','state_id' => '38','name' => 'Bhinga'),\n \t array('id' => '4642','state_id' => '38','name' => 'Bhojpur Dharampur'),\n \t array('id' => '4643','state_id' => '38','name' => 'Bhokarhedi'),\n \t array('id' => '4644','state_id' => '38','name' => 'Bhongaon'),\n \t array('id' => '4645','state_id' => '38','name' => 'Bhulepur'),\n \t array('id' => '4646','state_id' => '38','name' => 'Bidhuna'),\n \t array('id' => '4647','state_id' => '38','name' => 'Bighapur'),\n \t array('id' => '4648','state_id' => '38','name' => 'Bijnor'),\n \t array('id' => '4649','state_id' => '38','name' => 'Bijpur'),\n \t array('id' => '4650','state_id' => '38','name' => 'Bikapur'),\n \t array('id' => '4651','state_id' => '38','name' => 'Bilari'),\n \t array('id' => '4652','state_id' => '38','name' => 'Bilaspur'),\n \t array('id' => '4653','state_id' => '38','name' => 'Bilgram'),\n \t array('id' => '4654','state_id' => '38','name' => 'Bilhaur'),\n \t array('id' => '4655','state_id' => '38','name' => 'Bilram'),\n \t array('id' => '4656','state_id' => '38','name' => 'Bilrayaganj'),\n \t array('id' => '4657','state_id' => '38','name' => 'Bilsanda'),\n \t array('id' => '4658','state_id' => '38','name' => 'Bilsi'),\n \t array('id' => '4659','state_id' => '38','name' => 'Bindki'),\n \t array('id' => '4660','state_id' => '38','name' => 'Bisalpur'),\n \t array('id' => '4661','state_id' => '38','name' => 'Bisanda Buzurg'),\n \t array('id' => '4662','state_id' => '38','name' => 'Bisauli'),\n \t array('id' => '4663','state_id' => '38','name' => 'Bisharatganj'),\n \t array('id' => '4664','state_id' => '38','name' => 'Bisokhar'),\n \t array('id' => '4665','state_id' => '38','name' => 'Biswan'),\n \t array('id' => '4666','state_id' => '38','name' => 'Bithur'),\n \t array('id' => '4667','state_id' => '38','name' => 'Budaun'),\n \t array('id' => '4668','state_id' => '38','name' => 'Bugrasi'),\n \t array('id' => '4669','state_id' => '38','name' => 'Bulandshahar'),\n \t array('id' => '4670','state_id' => '38','name' => 'Burhana'),\n \t array('id' => '4671','state_id' => '38','name' => 'Chail'),\n \t array('id' => '4672','state_id' => '38','name' => 'Chak Imam Ali'),\n \t array('id' => '4673','state_id' => '38','name' => 'Chakeri'),\n \t array('id' => '4674','state_id' => '38','name' => 'Chakia'),\n \t array('id' => '4675','state_id' => '38','name' => 'Chandauli'),\n \t array('id' => '4676','state_id' => '38','name' => 'Chandausi'),\n \t array('id' => '4677','state_id' => '38','name' => 'Chandpur'),\n \t array('id' => '4678','state_id' => '38','name' => 'Charkhari'),\n \t array('id' => '4679','state_id' => '38','name' => 'Charthawal'),\n \t array('id' => '4680','state_id' => '38','name' => 'Chaumuhan'),\n \t array('id' => '4681','state_id' => '38','name' => 'Chhaprauli'),\n \t array('id' => '4682','state_id' => '38','name' => 'Chhara Rafatpur'),\n \t array('id' => '4683','state_id' => '38','name' => 'Chharprauli'),\n \t array('id' => '4684','state_id' => '38','name' => 'Chhata'),\n \t array('id' => '4685','state_id' => '38','name' => 'Chhatari'),\n \t array('id' => '4686','state_id' => '38','name' => 'Chhibramau'),\n \t array('id' => '4687','state_id' => '38','name' => 'Chhutmalpur'),\n \t array('id' => '4688','state_id' => '38','name' => 'Chilkana Sultanpur'),\n \t array('id' => '4689','state_id' => '38','name' => 'Chirgaon'),\n \t array('id' => '4690','state_id' => '38','name' => 'Chit Baragaon'),\n \t array('id' => '4691','state_id' => '38','name' => 'Chitrakut Dham'),\n \t array('id' => '4692','state_id' => '38','name' => 'Chopan'),\n \t array('id' => '4693','state_id' => '38','name' => 'Choubepur Kalan'),\n \t array('id' => '4694','state_id' => '38','name' => 'Chunar'),\n \t array('id' => '4695','state_id' => '38','name' => 'Churk Ghurma'),\n \t array('id' => '4696','state_id' => '38','name' => 'Colonelganj'),\n \t array('id' => '4697','state_id' => '38','name' => 'Dadri'),\n \t array('id' => '4698','state_id' => '38','name' => 'Dalmau'),\n \t array('id' => '4699','state_id' => '38','name' => 'Dankaur'),\n \t array('id' => '4700','state_id' => '38','name' => 'Dariyabad'),\n \t array('id' => '4701','state_id' => '38','name' => 'Dasna'),\n \t array('id' => '4702','state_id' => '38','name' => 'Dataganj'),\n \t array('id' => '4703','state_id' => '38','name' => 'Daurala'),\n \t array('id' => '4704','state_id' => '38','name' => 'Dayal Bagh'),\n \t array('id' => '4705','state_id' => '38','name' => 'Deoband'),\n \t array('id' => '4706','state_id' => '38','name' => 'Deoranian'),\n \t array('id' => '4707','state_id' => '38','name' => 'Deoria'),\n \t array('id' => '4708','state_id' => '38','name' => 'Dewa'),\n \t array('id' => '4709','state_id' => '38','name' => 'Dhampur'),\n \t array('id' => '4710','state_id' => '38','name' => 'Dhanauha'),\n \t array('id' => '4711','state_id' => '38','name' => 'Dhanauli'),\n \t array('id' => '4712','state_id' => '38','name' => 'Dhanaura'),\n \t array('id' => '4713','state_id' => '38','name' => 'Dharoti Khurd'),\n \t array('id' => '4714','state_id' => '38','name' => 'Dhauratanda'),\n \t array('id' => '4715','state_id' => '38','name' => 'Dhaurhra'),\n \t array('id' => '4716','state_id' => '38','name' => 'Dibai'),\n \t array('id' => '4717','state_id' => '38','name' => 'Dibiyapur'),\n \t array('id' => '4718','state_id' => '38','name' => 'Dildarnagar Fatehpur'),\n \t array('id' => '4719','state_id' => '38','name' => 'Do Ghat'),\n \t array('id' => '4720','state_id' => '38','name' => 'Dohrighat'),\n \t array('id' => '4721','state_id' => '38','name' => 'Dostpur'),\n \t array('id' => '4722','state_id' => '38','name' => 'Dudhinagar'),\n \t array('id' => '4723','state_id' => '38','name' => 'Dulhipur'),\n \t array('id' => '4724','state_id' => '38','name' => 'Dundwaraganj'),\n \t array('id' => '4725','state_id' => '38','name' => 'Ekdil'),\n \t array('id' => '4726','state_id' => '38','name' => 'Erich'),\n \t array('id' => '4727','state_id' => '38','name' => 'Etah'),\n \t array('id' => '4728','state_id' => '38','name' => 'Etawah'),\n \t array('id' => '4729','state_id' => '38','name' => 'Faizabad'),\n \t array('id' => '4730','state_id' => '38','name' => 'Faizabad Cantonment'),\n \t array('id' => '4731','state_id' => '38','name' => 'Faizganj'),\n \t array('id' => '4732','state_id' => '38','name' => 'Farah'),\n \t array('id' => '4733','state_id' => '38','name' => 'Faridnagar'),\n \t array('id' => '4734','state_id' => '38','name' => 'Faridpur'),\n \t array('id' => '4735','state_id' => '38','name' => 'Faridpur Cantonment'),\n \t array('id' => '4736','state_id' => '38','name' => 'Fariha'),\n \t array('id' => '4737','state_id' => '38','name' => 'Farrukhabad'),\n \t array('id' => '4738','state_id' => '38','name' => 'Fatehabad'),\n \t array('id' => '4739','state_id' => '38','name' => 'Fatehganj Pashchimi'),\n \t array('id' => '4740','state_id' => '38','name' => 'Fatehganj Purvi'),\n \t array('id' => '4741','state_id' => '38','name' => 'Fatehgarh'),\n \t array('id' => '4742','state_id' => '38','name' => 'Fatehpur'),\n \t array('id' => '4743','state_id' => '38','name' => 'Fatehpur Chaurasi'),\n \t array('id' => '4744','state_id' => '38','name' => 'Fatehpur Sikri'),\n \t array('id' => '4745','state_id' => '38','name' => 'Firozabad'),\n \t array('id' => '4746','state_id' => '38','name' => 'Gajraula'),\n \t array('id' => '4747','state_id' => '38','name' => 'Ganga Ghat'),\n \t array('id' => '4748','state_id' => '38','name' => 'Gangapur'),\n \t array('id' => '4749','state_id' => '38','name' => 'Gangoh'),\n \t array('id' => '4750','state_id' => '38','name' => 'Ganj Muradabad'),\n \t array('id' => '4751','state_id' => '38','name' => 'Garautha'),\n \t array('id' => '4752','state_id' => '38','name' => 'Garhi Pukhta'),\n \t array('id' => '4753','state_id' => '38','name' => 'Garhmukteshwar'),\n \t array('id' => '4754','state_id' => '38','name' => 'Gaura Barahaj'),\n \t array('id' => '4755','state_id' => '38','name' => 'Gauri Bazar'),\n \t array('id' => '4756','state_id' => '38','name' => 'Gausganj'),\n \t array('id' => '4757','state_id' => '38','name' => 'Gawan'),\n \t array('id' => '4758','state_id' => '38','name' => 'Ghatampur'),\n \t array('id' => '4759','state_id' => '38','name' => 'Ghaziabad'),\n \t array('id' => '4760','state_id' => '38','name' => 'Ghazipur'),\n \t array('id' => '4761','state_id' => '38','name' => 'Ghiror'),\n \t array('id' => '4762','state_id' => '38','name' => 'Ghorawal'),\n \t array('id' => '4763','state_id' => '38','name' => 'Ghosi'),\n \t array('id' => '4764','state_id' => '38','name' => 'Ghosia Bazar'),\n \t array('id' => '4765','state_id' => '38','name' => 'Ghughuli'),\n \t array('id' => '4766','state_id' => '38','name' => 'Gohand'),\n \t array('id' => '4767','state_id' => '38','name' => 'Gokul'),\n \t array('id' => '4768','state_id' => '38','name' => 'Gola Bazar'),\n \t array('id' => '4769','state_id' => '38','name' => 'Gola Gokarannath'),\n \t array('id' => '4770','state_id' => '38','name' => 'Gonda'),\n \t array('id' => '4771','state_id' => '38','name' => 'Gopamau'),\n \t array('id' => '4772','state_id' => '38','name' => 'Gopiganj'),\n \t array('id' => '4773','state_id' => '38','name' => 'Gorakhpur'),\n \t array('id' => '4774','state_id' => '38','name' => 'Gosainganj'),\n \t array('id' => '4775','state_id' => '38','name' => 'Govardhan'),\n \t array('id' => '4776','state_id' => '38','name' => 'Greater Noida'),\n \t array('id' => '4777','state_id' => '38','name' => 'Gulaothi'),\n \t array('id' => '4778','state_id' => '38','name' => 'Gulariya'),\n \t array('id' => '4779','state_id' => '38','name' => 'Gulariya Bhindara'),\n \t array('id' => '4780','state_id' => '38','name' => 'Gunnaur'),\n \t array('id' => '4781','state_id' => '38','name' => 'Gursahaiganj'),\n \t array('id' => '4782','state_id' => '38','name' => 'Gursarai'),\n \t array('id' => '4783','state_id' => '38','name' => 'Gyanpur'),\n \t array('id' => '4784','state_id' => '38','name' => 'Hafizpur'),\n \t array('id' => '4785','state_id' => '38','name' => 'Haidergarh'),\n \t array('id' => '4786','state_id' => '38','name' => 'Haldaur'),\n \t array('id' => '4787','state_id' => '38','name' => 'Hamirpur'),\n \t array('id' => '4788','state_id' => '38','name' => 'Handia'),\n \t array('id' => '4789','state_id' => '38','name' => 'Hapur'),\n \t array('id' => '4790','state_id' => '38','name' => 'Hardoi'),\n \t array('id' => '4791','state_id' => '38','name' => 'Harduaganj'),\n \t array('id' => '4792','state_id' => '38','name' => 'Hargaon'),\n \t array('id' => '4793','state_id' => '38','name' => 'Hariharpur'),\n \t array('id' => '4794','state_id' => '38','name' => 'Harraiya'),\n \t array('id' => '4795','state_id' => '38','name' => 'Hasanpur'),\n \t array('id' => '4796','state_id' => '38','name' => 'Hasayan'),\n \t array('id' => '4797','state_id' => '38','name' => 'Hastinapur'),\n \t array('id' => '4798','state_id' => '38','name' => 'Hata'),\n \t array('id' => '4799','state_id' => '38','name' => 'Hathras'),\n \t array('id' => '4800','state_id' => '38','name' => 'Hyderabad'),\n \t array('id' => '4801','state_id' => '38','name' => 'Ibrahimpur'),\n \t array('id' => '4802','state_id' => '38','name' => 'Iglas'),\n \t array('id' => '4803','state_id' => '38','name' => 'Ikauna'),\n \t array('id' => '4804','state_id' => '38','name' => 'Iltifatganj Bazar'),\n \t array('id' => '4805','state_id' => '38','name' => 'Indian Telephone Industry Mank'),\n \t array('id' => '4806','state_id' => '38','name' => 'Islamnagar'),\n \t array('id' => '4807','state_id' => '38','name' => 'Itaunja'),\n \t array('id' => '4808','state_id' => '38','name' => 'Itimadpur'),\n \t array('id' => '4809','state_id' => '38','name' => 'Jagner'),\n \t array('id' => '4810','state_id' => '38','name' => 'Jahanabad'),\n \t array('id' => '4811','state_id' => '38','name' => 'Jahangirabad'),\n \t array('id' => '4812','state_id' => '38','name' => 'Jahangirpur'),\n \t array('id' => '4813','state_id' => '38','name' => 'Jais'),\n \t array('id' => '4814','state_id' => '38','name' => 'Jaithara'),\n \t array('id' => '4815','state_id' => '38','name' => 'Jalalabad'),\n \t array('id' => '4816','state_id' => '38','name' => 'Jalali'),\n \t array('id' => '4817','state_id' => '38','name' => 'Jalalpur'),\n \t array('id' => '4818','state_id' => '38','name' => 'Jalaun'),\n \t array('id' => '4819','state_id' => '38','name' => 'Jalesar'),\n \t array('id' => '4820','state_id' => '38','name' => 'Jamshila'),\n \t array('id' => '4821','state_id' => '38','name' => 'Jangipur'),\n \t array('id' => '4822','state_id' => '38','name' => 'Jansath'),\n \t array('id' => '4823','state_id' => '38','name' => 'Jarwal'),\n \t array('id' => '4824','state_id' => '38','name' => 'Jasrana'),\n \t array('id' => '4825','state_id' => '38','name' => 'Jaswantnagar'),\n \t array('id' => '4826','state_id' => '38','name' => 'Jatari'),\n \t array('id' => '4827','state_id' => '38','name' => 'Jaunpur'),\n \t array('id' => '4828','state_id' => '38','name' => 'Jewar'),\n \t array('id' => '4829','state_id' => '38','name' => 'Jhalu'),\n \t array('id' => '4830','state_id' => '38','name' => 'Jhansi'),\n \t array('id' => '4831','state_id' => '38','name' => 'Jhansi Cantonment'),\n \t array('id' => '4832','state_id' => '38','name' => 'Jhansi Railway Settlement'),\n \t array('id' => '4833','state_id' => '38','name' => 'Jhinjhak'),\n \t array('id' => '4834','state_id' => '38','name' => 'Jhinjhana'),\n \t array('id' => '4835','state_id' => '38','name' => 'Jhusi'),\n \t array('id' => '4836','state_id' => '38','name' => 'Jhusi Kohna'),\n \t array('id' => '4837','state_id' => '38','name' => 'Jiyanpur'),\n \t array('id' => '4838','state_id' => '38','name' => 'Joya'),\n \t array('id' => '4839','state_id' => '38','name' => 'Jyoti Khuria'),\n \t array('id' => '4840','state_id' => '38','name' => 'Jyotiba Phule Nagar'),\n \t array('id' => '4841','state_id' => '38','name' => 'Kabrai'),\n \t array('id' => '4842','state_id' => '38','name' => 'Kachhauna Patseni'),\n \t array('id' => '4843','state_id' => '38','name' => 'Kachhla'),\n \t array('id' => '4844','state_id' => '38','name' => 'Kachhwa'),\n \t array('id' => '4845','state_id' => '38','name' => 'Kadaura'),\n \t array('id' => '4846','state_id' => '38','name' => 'Kadipur'),\n \t array('id' => '4847','state_id' => '38','name' => 'Kailashpur'),\n \t array('id' => '4848','state_id' => '38','name' => 'Kaimganj'),\n \t array('id' => '4849','state_id' => '38','name' => 'Kairana'),\n \t array('id' => '4850','state_id' => '38','name' => 'Kakgaina'),\n \t array('id' => '4851','state_id' => '38','name' => 'Kakod'),\n \t array('id' => '4852','state_id' => '38','name' => 'Kakori'),\n \t array('id' => '4853','state_id' => '38','name' => 'Kakrala'),\n \t array('id' => '4854','state_id' => '38','name' => 'Kalinagar'),\n \t array('id' => '4855','state_id' => '38','name' => 'Kalpi'),\n \t array('id' => '4856','state_id' => '38','name' => 'Kamalganj'),\n \t array('id' => '4857','state_id' => '38','name' => 'Kampil'),\n \t array('id' => '4858','state_id' => '38','name' => 'Kandhla'),\n \t array('id' => '4859','state_id' => '38','name' => 'Kandwa'),\n \t array('id' => '4860','state_id' => '38','name' => 'Kannauj'),\n \t array('id' => '4861','state_id' => '38','name' => 'Kanpur'),\n \t array('id' => '4862','state_id' => '38','name' => 'Kant'),\n \t array('id' => '4863','state_id' => '38','name' => 'Kanth'),\n \t array('id' => '4864','state_id' => '38','name' => 'Kaptanganj'),\n \t array('id' => '4865','state_id' => '38','name' => 'Karaon'),\n \t array('id' => '4866','state_id' => '38','name' => 'Karari'),\n \t array('id' => '4867','state_id' => '38','name' => 'Karhal'),\n \t array('id' => '4868','state_id' => '38','name' => 'Karnawal'),\n \t array('id' => '4869','state_id' => '38','name' => 'Kasganj'),\n \t array('id' => '4870','state_id' => '38','name' => 'Katariya'),\n \t array('id' => '4871','state_id' => '38','name' => 'Katghar Lalganj'),\n \t array('id' => '4872','state_id' => '38','name' => 'Kathera'),\n \t array('id' => '4873','state_id' => '38','name' => 'Katra'),\n \t array('id' => '4874','state_id' => '38','name' => 'Katra Medniganj'),\n \t array('id' => '4875','state_id' => '38','name' => 'Kauriaganj'),\n \t array('id' => '4876','state_id' => '38','name' => 'Kemri'),\n \t array('id' => '4877','state_id' => '38','name' => 'Kerakat'),\n \t array('id' => '4878','state_id' => '38','name' => 'Khadda'),\n \t array('id' => '4879','state_id' => '38','name' => 'Khaga'),\n \t array('id' => '4880','state_id' => '38','name' => 'Khailar'),\n \t array('id' => '4881','state_id' => '38','name' => 'Khair'),\n \t array('id' => '4882','state_id' => '38','name' => 'Khairabad'),\n \t array('id' => '4883','state_id' => '38','name' => 'Khairagarh'),\n \t array('id' => '4884','state_id' => '38','name' => 'Khalilabad'),\n \t array('id' => '4885','state_id' => '38','name' => 'Khamaria'),\n \t array('id' => '4886','state_id' => '38','name' => 'Khanpur'),\n \t array('id' => '4887','state_id' => '38','name' => 'Kharela'),\n \t array('id' => '4888','state_id' => '38','name' => 'Khargupur'),\n \t array('id' => '4889','state_id' => '38','name' => 'Khariya'),\n \t array('id' => '4890','state_id' => '38','name' => 'Kharkhoda'),\n \t array('id' => '4891','state_id' => '38','name' => 'Khatauli'),\n \t array('id' => '4892','state_id' => '38','name' => 'Khatauli Rural'),\n \t array('id' => '4893','state_id' => '38','name' => 'Khekra'),\n \t array('id' => '4894','state_id' => '38','name' => 'Kheri'),\n \t array('id' => '4895','state_id' => '38','name' => 'Kheta Sarai'),\n \t array('id' => '4896','state_id' => '38','name' => 'Khudaganj'),\n \t array('id' => '4897','state_id' => '38','name' => 'Khurja'),\n \t array('id' => '4898','state_id' => '38','name' => 'Khutar'),\n \t array('id' => '4899','state_id' => '38','name' => 'Kiraoli'),\n \t array('id' => '4900','state_id' => '38','name' => 'Kiratpur'),\n \t array('id' => '4901','state_id' => '38','name' => 'Kishanpur'),\n \t array('id' => '4902','state_id' => '38','name' => 'Kishni'),\n \t array('id' => '4903','state_id' => '38','name' => 'Kithaur'),\n \t array('id' => '4904','state_id' => '38','name' => 'Koiripur'),\n \t array('id' => '4905','state_id' => '38','name' => 'Konch'),\n \t array('id' => '4906','state_id' => '38','name' => 'Kopaganj'),\n \t array('id' => '4907','state_id' => '38','name' => 'Kora Jahanabad'),\n \t array('id' => '4908','state_id' => '38','name' => 'Korwa'),\n \t array('id' => '4909','state_id' => '38','name' => 'Kosi Kalan'),\n \t array('id' => '4910','state_id' => '38','name' => 'Kota'),\n \t array('id' => '4911','state_id' => '38','name' => 'Kotra'),\n \t array('id' => '4912','state_id' => '38','name' => 'Kotwa'),\n \t array('id' => '4913','state_id' => '38','name' => 'Kulpahar'),\n \t array('id' => '4914','state_id' => '38','name' => 'Kunda'),\n \t array('id' => '4915','state_id' => '38','name' => 'Kundarki'),\n \t array('id' => '4916','state_id' => '38','name' => 'Kunwargaon'),\n \t array('id' => '4917','state_id' => '38','name' => 'Kurara'),\n \t array('id' => '4918','state_id' => '38','name' => 'Kurawali'),\n \t array('id' => '4919','state_id' => '38','name' => 'Kursath'),\n \t array('id' => '4920','state_id' => '38','name' => 'Kurthi Jafarpur'),\n \t array('id' => '4921','state_id' => '38','name' => 'Kushinagar'),\n \t array('id' => '4922','state_id' => '38','name' => 'Kusmara'),\n \t array('id' => '4923','state_id' => '38','name' => 'Laharpur'),\n \t array('id' => '4924','state_id' => '38','name' => 'Lakhimpur'),\n \t array('id' => '4925','state_id' => '38','name' => 'Lakhna'),\n \t array('id' => '4926','state_id' => '38','name' => 'Lalganj'),\n \t array('id' => '4927','state_id' => '38','name' => 'Lalitpur'),\n \t array('id' => '4928','state_id' => '38','name' => 'Lar'),\n \t array('id' => '4929','state_id' => '38','name' => 'Lawar'),\n \t array('id' => '4930','state_id' => '38','name' => 'Ledwa Mahuwa'),\n \t array('id' => '4931','state_id' => '38','name' => 'Lohta'),\n \t array('id' => '4932','state_id' => '38','name' => 'Loni'),\n \t array('id' => '4933','state_id' => '38','name' => 'Lucknow'),\n \t array('id' => '4934','state_id' => '38','name' => 'Machhlishahr'),\n \t array('id' => '4935','state_id' => '38','name' => 'Madhoganj'),\n \t array('id' => '4936','state_id' => '38','name' => 'Madhogarh'),\n \t array('id' => '4937','state_id' => '38','name' => 'Maghar'),\n \t array('id' => '4938','state_id' => '38','name' => 'Mahaban'),\n \t array('id' => '4939','state_id' => '38','name' => 'Maharajganj'),\n \t array('id' => '4940','state_id' => '38','name' => 'Mahmudabad'),\n \t array('id' => '4941','state_id' => '38','name' => 'Mahoba'),\n \t array('id' => '4942','state_id' => '38','name' => 'Maholi'),\n \t array('id' => '4943','state_id' => '38','name' => 'Mahona'),\n \t array('id' => '4944','state_id' => '38','name' => 'Mahroni'),\n \t array('id' => '4945','state_id' => '38','name' => 'Mailani'),\n \t array('id' => '4946','state_id' => '38','name' => 'Mainpuri'),\n \t array('id' => '4947','state_id' => '38','name' => 'Majhara Pipar Ehatmali'),\n \t array('id' => '4948','state_id' => '38','name' => 'Majhauli Raj'),\n \t array('id' => '4949','state_id' => '38','name' => 'Malihabad'),\n \t array('id' => '4950','state_id' => '38','name' => 'Mallanwam'),\n \t array('id' => '4951','state_id' => '38','name' => 'Mandawar'),\n \t array('id' => '4952','state_id' => '38','name' => 'Manikpur'),\n \t array('id' => '4953','state_id' => '38','name' => 'Maniyar'),\n \t array('id' => '4954','state_id' => '38','name' => 'Manjhanpur'),\n \t array('id' => '4955','state_id' => '38','name' => 'Mankapur'),\n \t array('id' => '4956','state_id' => '38','name' => 'Marehra'),\n \t array('id' => '4957','state_id' => '38','name' => 'Mariahu'),\n \t array('id' => '4958','state_id' => '38','name' => 'Maruadih'),\n \t array('id' => '4959','state_id' => '38','name' => 'Maswasi'),\n \t array('id' => '4960','state_id' => '38','name' => 'Mataundh'),\n \t array('id' => '4961','state_id' => '38','name' => 'Mathu'),\n \t array('id' => '4962','state_id' => '38','name' => 'Mathura'),\n \t array('id' => '4963','state_id' => '38','name' => 'Mathura Cantonment'),\n \t array('id' => '4964','state_id' => '38','name' => 'Mau'),\n \t array('id' => '4965','state_id' => '38','name' => 'Mau Aima'),\n \t array('id' => '4966','state_id' => '38','name' => 'Maudaha'),\n \t array('id' => '4967','state_id' => '38','name' => 'Mauranipur'),\n \t array('id' => '4968','state_id' => '38','name' => 'Maurawan'),\n \t array('id' => '4969','state_id' => '38','name' => 'Mawana'),\n \t array('id' => '4970','state_id' => '38','name' => 'Meerut'),\n \t array('id' => '4971','state_id' => '38','name' => 'Mehnagar'),\n \t array('id' => '4972','state_id' => '38','name' => 'Mehndawal'),\n \t array('id' => '4973','state_id' => '38','name' => 'Mendu'),\n \t array('id' => '4974','state_id' => '38','name' => 'Milak'),\n \t array('id' => '4975','state_id' => '38','name' => 'Miranpur'),\n \t array('id' => '4976','state_id' => '38','name' => 'Mirat'),\n \t array('id' => '4977','state_id' => '38','name' => 'Mirat Cantonment'),\n \t array('id' => '4978','state_id' => '38','name' => 'Mirganj'),\n \t array('id' => '4979','state_id' => '38','name' => 'Mirzapur'),\n \t array('id' => '4980','state_id' => '38','name' => 'Misrikh'),\n \t array('id' => '4981','state_id' => '38','name' => 'Modinagar'),\n \t array('id' => '4982','state_id' => '38','name' => 'Mogra Badshahpur'),\n \t array('id' => '4983','state_id' => '38','name' => 'Mohan'),\n \t array('id' => '4984','state_id' => '38','name' => 'Mohanpur'),\n \t array('id' => '4985','state_id' => '38','name' => 'Mohiuddinpur'),\n \t array('id' => '4986','state_id' => '38','name' => 'Moradabad'),\n \t array('id' => '4987','state_id' => '38','name' => 'Moth'),\n \t array('id' => '4988','state_id' => '38','name' => 'Mubarakpur'),\n \t array('id' => '4989','state_id' => '38','name' => 'Mughal Sarai'),\n \t array('id' => '4990','state_id' => '38','name' => 'Mughal Sarai Railway Settlemen'),\n \t array('id' => '4991','state_id' => '38','name' => 'Muhammadabad'),\n \t array('id' => '4992','state_id' => '38','name' => 'Muhammadi'),\n \t array('id' => '4993','state_id' => '38','name' => 'Mukrampur Khema'),\n \t array('id' => '4994','state_id' => '38','name' => 'Mundia'),\n \t array('id' => '4995','state_id' => '38','name' => 'Mundora'),\n \t array('id' => '4996','state_id' => '38','name' => 'Muradnagar'),\n \t array('id' => '4997','state_id' => '38','name' => 'Mursan'),\n \t array('id' => '4998','state_id' => '38','name' => 'Musafirkhana'),\n \t array('id' => '4999','state_id' => '38','name' => 'Muzaffarnagar'),\n \t array('id' => '5000','state_id' => '38','name' => 'Nadigaon'),\n \t array('id' => '5001','state_id' => '38','name' => 'Nagina'),\n \t array('id' => '5002','state_id' => '38','name' => 'Nagram'),\n \t array('id' => '5003','state_id' => '38','name' => 'Nai Bazar'),\n \t array('id' => '5004','state_id' => '38','name' => 'Nainana Jat'),\n \t array('id' => '5005','state_id' => '38','name' => 'Najibabad'),\n \t array('id' => '5006','state_id' => '38','name' => 'Nakur'),\n \t array('id' => '5007','state_id' => '38','name' => 'Nanaunta'),\n \t array('id' => '5008','state_id' => '38','name' => 'Nandgaon'),\n \t array('id' => '5009','state_id' => '38','name' => 'Nanpara'),\n \t array('id' => '5010','state_id' => '38','name' => 'Naraini'),\n \t array('id' => '5011','state_id' => '38','name' => 'Narauli'),\n \t array('id' => '5012','state_id' => '38','name' => 'Naraura'),\n \t array('id' => '5013','state_id' => '38','name' => 'Naugawan Sadat'),\n \t array('id' => '5014','state_id' => '38','name' => 'Nautanwa'),\n \t array('id' => '5015','state_id' => '38','name' => 'Nawabganj'),\n \t array('id' => '5016','state_id' => '38','name' => 'Nichlaul'),\n \t array('id' => '5017','state_id' => '38','name' => 'Nidhauli Kalan'),\n \t array('id' => '5018','state_id' => '38','name' => 'Nihtaur'),\n \t array('id' => '5019','state_id' => '38','name' => 'Nindaura'),\n \t array('id' => '5020','state_id' => '38','name' => 'Niwari'),\n \t array('id' => '5021','state_id' => '38','name' => 'Nizamabad'),\n \t array('id' => '5022','state_id' => '38','name' => 'Noida'),\n \t array('id' => '5023','state_id' => '38','name' => 'Northern Railway Colony'),\n \t array('id' => '5024','state_id' => '38','name' => 'Nurpur'),\n \t array('id' => '5025','state_id' => '38','name' => 'Nyoria Husenpur'),\n \t array('id' => '5026','state_id' => '38','name' => 'Nyotini'),\n \t array('id' => '5027','state_id' => '38','name' => 'Obra'),\n \t array('id' => '5028','state_id' => '38','name' => 'Oel Dhakwa'),\n \t array('id' => '5029','state_id' => '38','name' => 'Orai'),\n \t array('id' => '5030','state_id' => '38','name' => 'Oran'),\n \t array('id' => '5031','state_id' => '38','name' => 'Ordinance Factory Muradnagar'),\n \t array('id' => '5032','state_id' => '38','name' => 'Pachperwa'),\n \t array('id' => '5033','state_id' => '38','name' => 'Padrauna'),\n \t array('id' => '5034','state_id' => '38','name' => 'Pahasu'),\n \t array('id' => '5035','state_id' => '38','name' => 'Paintepur'),\n \t array('id' => '5036','state_id' => '38','name' => 'Pali'),\n \t array('id' => '5037','state_id' => '38','name' => 'Palia Kalan'),\n \t array('id' => '5038','state_id' => '38','name' => 'Parasi'),\n \t array('id' => '5039','state_id' => '38','name' => 'Parichha'),\n \t array('id' => '5040','state_id' => '38','name' => 'Parichhatgarh'),\n \t array('id' => '5041','state_id' => '38','name' => 'Parsadepur'),\n \t array('id' => '5042','state_id' => '38','name' => 'Patala'),\n \t array('id' => '5043','state_id' => '38','name' => 'Patiyali'),\n \t array('id' => '5044','state_id' => '38','name' => 'Patti'),\n \t array('id' => '5045','state_id' => '38','name' => 'Pawayan'),\n \t array('id' => '5046','state_id' => '38','name' => 'Phalauda'),\n \t array('id' => '5047','state_id' => '38','name' => 'Phaphund'),\n \t array('id' => '5048','state_id' => '38','name' => 'Phulpur'),\n \t array('id' => '5049','state_id' => '38','name' => 'Phulwaria'),\n \t array('id' => '5050','state_id' => '38','name' => 'Pihani'),\n \t array('id' => '5051','state_id' => '38','name' => 'Pilibhit'),\n \t array('id' => '5052','state_id' => '38','name' => 'Pilkana'),\n \t array('id' => '5053','state_id' => '38','name' => 'Pilkhuwa'),\n \t array('id' => '5054','state_id' => '38','name' => 'Pinahat'),\n \t array('id' => '5055','state_id' => '38','name' => 'Pipalsana Chaudhari'),\n \t array('id' => '5056','state_id' => '38','name' => 'Pipiganj'),\n \t array('id' => '5057','state_id' => '38','name' => 'Pipraich'),\n \t array('id' => '5058','state_id' => '38','name' => 'Pipri'),\n \t array('id' => '5059','state_id' => '38','name' => 'Pratapgarh'),\n \t array('id' => '5060','state_id' => '38','name' => 'Pukhrayan'),\n \t array('id' => '5061','state_id' => '38','name' => 'Puranpur'),\n \t array('id' => '5062','state_id' => '38','name' => 'Purdil Nagar'),\n \t array('id' => '5063','state_id' => '38','name' => 'Purqazi'),\n \t array('id' => '5064','state_id' => '38','name' => 'Purwa'),\n \t array('id' => '5065','state_id' => '38','name' => 'Qasimpur'),\n \t array('id' => '5066','state_id' => '38','name' => 'Rabupura'),\n \t array('id' => '5067','state_id' => '38','name' => 'Radha Kund'),\n \t array('id' => '5068','state_id' => '38','name' => 'Rae Bareilly'),\n \t array('id' => '5069','state_id' => '38','name' => 'Raja Ka Rampur'),\n \t array('id' => '5070','state_id' => '38','name' => 'Rajapur'),\n \t array('id' => '5071','state_id' => '38','name' => 'Ramkola'),\n \t array('id' => '5072','state_id' => '38','name' => 'Ramnagar'),\n \t array('id' => '5073','state_id' => '38','name' => 'Rampur'),\n \t array('id' => '5074','state_id' => '38','name' => 'Rampur Bhawanipur'),\n \t array('id' => '5075','state_id' => '38','name' => 'Rampur Karkhana'),\n \t array('id' => '5076','state_id' => '38','name' => 'Rampur Maniharan'),\n \t array('id' => '5077','state_id' => '38','name' => 'Rampura'),\n \t array('id' => '5078','state_id' => '38','name' => 'Ranipur'),\n \t array('id' => '5079','state_id' => '38','name' => 'Rashidpur Garhi'),\n \t array('id' => '5080','state_id' => '38','name' => 'Rasra'),\n \t array('id' => '5081','state_id' => '38','name' => 'Rasulabad'),\n \t array('id' => '5082','state_id' => '38','name' => 'Rath'),\n \t array('id' => '5083','state_id' => '38','name' => 'Raya'),\n \t array('id' => '5084','state_id' => '38','name' => 'Renukut'),\n \t array('id' => '5085','state_id' => '38','name' => 'Reoti'),\n \t array('id' => '5086','state_id' => '38','name' => 'Richha'),\n \t array('id' => '5087','state_id' => '38','name' => 'Risia Bazar'),\n \t array('id' => '5088','state_id' => '38','name' => 'Rithora'),\n \t array('id' => '5089','state_id' => '38','name' => 'Robertsganj'),\n \t array('id' => '5090','state_id' => '38','name' => 'Roza'),\n \t array('id' => '5091','state_id' => '38','name' => 'Rudarpur'),\n \t array('id' => '5092','state_id' => '38','name' => 'Rudauli'),\n \t array('id' => '5093','state_id' => '38','name' => 'Rudayan'),\n \t array('id' => '5094','state_id' => '38','name' => 'Rura'),\n \t array('id' => '5095','state_id' => '38','name' => 'Rustamnagar Sahaspur'),\n \t array('id' => '5096','state_id' => '38','name' => 'Sabatwar'),\n \t array('id' => '5097','state_id' => '38','name' => 'Sadabad'),\n \t array('id' => '5098','state_id' => '38','name' => 'Sadat'),\n \t array('id' => '5099','state_id' => '38','name' => 'Safipur'),\n \t array('id' => '5100','state_id' => '38','name' => 'Sahanpur'),\n \t array('id' => '5101','state_id' => '38','name' => 'Saharanpur'),\n \t array('id' => '5102','state_id' => '38','name' => 'Sahaspur'),\n \t array('id' => '5103','state_id' => '38','name' => 'Sahaswan'),\n \t array('id' => '5104','state_id' => '38','name' => 'Sahawar'),\n \t array('id' => '5105','state_id' => '38','name' => 'Sahibabad'),\n \t array('id' => '5106','state_id' => '38','name' => 'Sahjanwa'),\n \t array('id' => '5107','state_id' => '38','name' => 'Sahpau'),\n \t array('id' => '5108','state_id' => '38','name' => 'Saidpur'),\n \t array('id' => '5109','state_id' => '38','name' => 'Sainthal'),\n \t array('id' => '5110','state_id' => '38','name' => 'Saiyadraja'),\n \t array('id' => '5111','state_id' => '38','name' => 'Sakhanu'),\n \t array('id' => '5112','state_id' => '38','name' => 'Sakit'),\n \t array('id' => '5113','state_id' => '38','name' => 'Salarpur Khadar'),\n \t array('id' => '5114','state_id' => '38','name' => 'Salimpur'),\n \t array('id' => '5115','state_id' => '38','name' => 'Salon'),\n \t array('id' => '5116','state_id' => '38','name' => 'Sambhal'),\n \t array('id' => '5117','state_id' => '38','name' => 'Sambhawali'),\n \t array('id' => '5118','state_id' => '38','name' => 'Samdhan'),\n \t array('id' => '5119','state_id' => '38','name' => 'Samthar'),\n \t array('id' => '5120','state_id' => '38','name' => 'Sandi'),\n \t array('id' => '5121','state_id' => '38','name' => 'Sandila'),\n \t array('id' => '5122','state_id' => '38','name' => 'Sarai Mir'),\n \t array('id' => '5123','state_id' => '38','name' => 'Sarai akil'),\n \t array('id' => '5124','state_id' => '38','name' => 'Sarauli'),\n \t array('id' => '5125','state_id' => '38','name' => 'Sardhana'),\n \t array('id' => '5126','state_id' => '38','name' => 'Sarila'),\n \t array('id' => '5127','state_id' => '38','name' => 'Sarsawan'),\n \t array('id' => '5128','state_id' => '38','name' => 'Sasni'),\n \t array('id' => '5129','state_id' => '38','name' => 'Satrikh'),\n \t array('id' => '5130','state_id' => '38','name' => 'Saunkh'),\n \t array('id' => '5131','state_id' => '38','name' => 'Saurikh'),\n \t array('id' => '5132','state_id' => '38','name' => 'Seohara'),\n \t array('id' => '5133','state_id' => '38','name' => 'Sewal Khas'),\n \t array('id' => '5134','state_id' => '38','name' => 'Sewarhi'),\n \t array('id' => '5135','state_id' => '38','name' => 'Shahabad'),\n \t array('id' => '5136','state_id' => '38','name' => 'Shahganj'),\n \t array('id' => '5137','state_id' => '38','name' => 'Shahi'),\n \t array('id' => '5138','state_id' => '38','name' => 'Shahjahanpur'),\n \t array('id' => '5139','state_id' => '38','name' => 'Shahjahanpur Cantonment'),\n \t array('id' => '5140','state_id' => '38','name' => 'Shahpur'),\n \t array('id' => '5141','state_id' => '38','name' => 'Shamli'),\n \t array('id' => '5142','state_id' => '38','name' => 'Shamsabad'),\n \t array('id' => '5143','state_id' => '38','name' => 'Shankargarh'),\n \t array('id' => '5144','state_id' => '38','name' => 'Shergarh'),\n \t array('id' => '5145','state_id' => '38','name' => 'Sherkot'),\n \t array('id' => '5146','state_id' => '38','name' => 'Shikarpur'),\n \t array('id' => '5147','state_id' => '38','name' => 'Shikohabad'),\n \t array('id' => '5148','state_id' => '38','name' => 'Shisgarh'),\n \t array('id' => '5149','state_id' => '38','name' => 'Shivdaspur'),\n \t array('id' => '5150','state_id' => '38','name' => 'Shivli'),\n \t array('id' => '5151','state_id' => '38','name' => 'Shivrajpur'),\n \t array('id' => '5152','state_id' => '38','name' => 'Shohratgarh'),\n \t array('id' => '5153','state_id' => '38','name' => 'Siddhanur'),\n \t array('id' => '5154','state_id' => '38','name' => 'Siddharthnagar'),\n \t array('id' => '5155','state_id' => '38','name' => 'Sidhauli'),\n \t array('id' => '5156','state_id' => '38','name' => 'Sidhpura'),\n \t array('id' => '5157','state_id' => '38','name' => 'Sikandarabad'),\n \t array('id' => '5158','state_id' => '38','name' => 'Sikandarpur'),\n \t array('id' => '5159','state_id' => '38','name' => 'Sikandra'),\n \t array('id' => '5160','state_id' => '38','name' => 'Sikandra Rao'),\n \t array('id' => '5161','state_id' => '38','name' => 'Singahi Bhiraura'),\n \t array('id' => '5162','state_id' => '38','name' => 'Sirathu'),\n \t array('id' => '5163','state_id' => '38','name' => 'Sirsa'),\n \t array('id' => '5164','state_id' => '38','name' => 'Sirsaganj'),\n \t array('id' => '5165','state_id' => '38','name' => 'Sirsi'),\n \t array('id' => '5166','state_id' => '38','name' => 'Sisauli'),\n \t array('id' => '5167','state_id' => '38','name' => 'Siswa Bazar'),\n \t array('id' => '5168','state_id' => '38','name' => 'Sitapur'),\n \t array('id' => '5169','state_id' => '38','name' => 'Siyana'),\n \t array('id' => '5170','state_id' => '38','name' => 'Som'),\n \t array('id' => '5171','state_id' => '38','name' => 'Sonbhadra'),\n \t array('id' => '5172','state_id' => '38','name' => 'Soron'),\n \t array('id' => '5173','state_id' => '38','name' => 'Suar'),\n \t array('id' => '5174','state_id' => '38','name' => 'Sukhmalpur Nizamabad'),\n \t array('id' => '5175','state_id' => '38','name' => 'Sultanpur'),\n \t array('id' => '5176','state_id' => '38','name' => 'Sumerpur'),\n \t array('id' => '5177','state_id' => '38','name' => 'Suriyawan'),\n \t array('id' => '5178','state_id' => '38','name' => 'Swamibagh'),\n \t array('id' => '5179','state_id' => '38','name' => 'Tajpur'),\n \t array('id' => '5180','state_id' => '38','name' => 'Talbahat'),\n \t array('id' => '5181','state_id' => '38','name' => 'Talgram'),\n \t array('id' => '5182','state_id' => '38','name' => 'Tambaur'),\n \t array('id' => '5183','state_id' => '38','name' => 'Tanda'),\n \t array('id' => '5184','state_id' => '38','name' => 'Tatarpur Lallu'),\n \t array('id' => '5185','state_id' => '38','name' => 'Tetribazar'),\n \t array('id' => '5186','state_id' => '38','name' => 'Thakurdwara'),\n \t array('id' => '5187','state_id' => '38','name' => 'Thana Bhawan'),\n \t array('id' => '5188','state_id' => '38','name' => 'Thiriya Nizamat Khan'),\n \t array('id' => '5189','state_id' => '38','name' => 'Tikaitnagar'),\n \t array('id' => '5190','state_id' => '38','name' => 'Tikri'),\n \t array('id' => '5191','state_id' => '38','name' => 'Tilhar'),\n \t array('id' => '5192','state_id' => '38','name' => 'Tindwari'),\n \t array('id' => '5193','state_id' => '38','name' => 'Tirwaganj'),\n \t array('id' => '5194','state_id' => '38','name' => 'Titron'),\n \t array('id' => '5195','state_id' => '38','name' => 'Tori Fatehpur'),\n \t array('id' => '5196','state_id' => '38','name' => 'Tulsipur'),\n \t array('id' => '5197','state_id' => '38','name' => 'Tundla'),\n \t array('id' => '5198','state_id' => '38','name' => 'Tundla Kham'),\n \t array('id' => '5199','state_id' => '38','name' => 'Tundla Railway Colony'),\n \t array('id' => '5200','state_id' => '38','name' => 'Ugu'),\n \t array('id' => '5201','state_id' => '38','name' => 'Ujhani'),\n \t array('id' => '5202','state_id' => '38','name' => 'Ujhari'),\n \t array('id' => '5203','state_id' => '38','name' => 'Umri'),\n \t array('id' => '5204','state_id' => '38','name' => 'Umri Kalan'),\n \t array('id' => '5205','state_id' => '38','name' => 'Un'),\n \t array('id' => '5206','state_id' => '38','name' => 'Unchahar'),\n \t array('id' => '5207','state_id' => '38','name' => 'Unnao'),\n \t array('id' => '5208','state_id' => '38','name' => 'Usaihat'),\n \t array('id' => '5209','state_id' => '38','name' => 'Usawan'),\n \t array('id' => '5210','state_id' => '38','name' => 'Utraula'),\n \t array('id' => '5211','state_id' => '38','name' => 'Varanasi'),\n \t array('id' => '5212','state_id' => '38','name' => 'Varanasi Cantonment'),\n \t array('id' => '5213','state_id' => '38','name' => 'Vijaigarh'),\n \t array('id' => '5214','state_id' => '38','name' => 'Vrindavan'),\n \t array('id' => '5215','state_id' => '38','name' => 'Wazirganj'),\n \t array('id' => '5216','state_id' => '38','name' => 'Zafarabad'),\n \t array('id' => '5217','state_id' => '38','name' => 'Zaidpur'),\n \t array('id' => '5218','state_id' => '38','name' => 'Zamania'),\n \t array('id' => '5219','state_id' => '39','name' => 'Almora'),\n \t array('id' => '5220','state_id' => '39','name' => 'Almora Cantonment'),\n \t array('id' => '5221','state_id' => '39','name' => 'Badrinathpuri'),\n \t array('id' => '5222','state_id' => '39','name' => 'Bageshwar'),\n \t array('id' => '5223','state_id' => '39','name' => 'Bah Bazar'),\n \t array('id' => '5224','state_id' => '39','name' => 'Banbasa'),\n \t array('id' => '5225','state_id' => '39','name' => 'Bandia'),\n \t array('id' => '5226','state_id' => '39','name' => 'Barkot'),\n \t array('id' => '5227','state_id' => '39','name' => 'Bazpur'),\n \t array('id' => '5228','state_id' => '39','name' => 'Bhim Tal'),\n \t array('id' => '5229','state_id' => '39','name' => 'Bhowali'),\n \t array('id' => '5230','state_id' => '39','name' => 'Chakrata'),\n \t array('id' => '5231','state_id' => '39','name' => 'Chamba'),\n \t array('id' => '5232','state_id' => '39','name' => 'Chamoli and Gopeshwar'),\n \t array('id' => '5233','state_id' => '39','name' => 'Champawat'),\n \t array('id' => '5234','state_id' => '39','name' => 'Clement Town'),\n \t array('id' => '5235','state_id' => '39','name' => 'Dehra Dun Cantonment'),\n \t array('id' => '5236','state_id' => '39','name' => 'Dehradun'),\n \t array('id' => '5237','state_id' => '39','name' => 'Dehrakhas'),\n \t array('id' => '5238','state_id' => '39','name' => 'Devaprayag'),\n \t array('id' => '5239','state_id' => '39','name' => 'Dhaluwala'),\n \t array('id' => '5240','state_id' => '39','name' => 'Dhandera'),\n \t array('id' => '5241','state_id' => '39','name' => 'Dharchula'),\n \t array('id' => '5242','state_id' => '39','name' => 'Dharchula Dehat'),\n \t array('id' => '5243','state_id' => '39','name' => 'Didihat'),\n \t array('id' => '5244','state_id' => '39','name' => 'Dineshpur'),\n \t array('id' => '5245','state_id' => '39','name' => 'Doiwala'),\n \t array('id' => '5246','state_id' => '39','name' => 'Dugadda'),\n \t array('id' => '5247','state_id' => '39','name' => 'Dwarahat'),\n \t array('id' => '5248','state_id' => '39','name' => 'Gadarpur'),\n \t array('id' => '5249','state_id' => '39','name' => 'Gangotri'),\n \t array('id' => '5250','state_id' => '39','name' => 'Gauchar'),\n \t array('id' => '5251','state_id' => '39','name' => 'Haldwani'),\n \t array('id' => '5252','state_id' => '39','name' => 'Haridwar'),\n \t array('id' => '5253','state_id' => '39','name' => 'Herbertpur'),\n \t array('id' => '5254','state_id' => '39','name' => 'Jaspur'),\n \t array('id' => '5255','state_id' => '39','name' => 'Jhabrera'),\n \t array('id' => '5256','state_id' => '39','name' => 'Joshimath'),\n \t array('id' => '5257','state_id' => '39','name' => 'Kachnal Gosain'),\n \t array('id' => '5258','state_id' => '39','name' => 'Kaladungi'),\n \t array('id' => '5259','state_id' => '39','name' => 'Kalagarh'),\n \t array('id' => '5260','state_id' => '39','name' => 'Karnaprayang'),\n \t array('id' => '5261','state_id' => '39','name' => 'Kashipur'),\n \t array('id' => '5262','state_id' => '39','name' => 'Kashirampur'),\n \t array('id' => '5263','state_id' => '39','name' => 'Kausani'),\n \t array('id' => '5264','state_id' => '39','name' => 'Kedarnath'),\n \t array('id' => '5265','state_id' => '39','name' => 'Kelakhera'),\n \t array('id' => '5266','state_id' => '39','name' => 'Khatima'),\n \t array('id' => '5267','state_id' => '39','name' => 'Kichha'),\n \t array('id' => '5268','state_id' => '39','name' => 'Kirtinagar'),\n \t array('id' => '5269','state_id' => '39','name' => 'Kotdwara'),\n \t array('id' => '5270','state_id' => '39','name' => 'Laksar'),\n \t array('id' => '5271','state_id' => '39','name' => 'Lalkuan'),\n \t array('id' => '5272','state_id' => '39','name' => 'Landaura'),\n \t array('id' => '5273','state_id' => '39','name' => 'Landhaura Cantonment'),\n \t array('id' => '5274','state_id' => '39','name' => 'Lensdaun'),\n \t array('id' => '5275','state_id' => '39','name' => 'Logahat'),\n \t array('id' => '5276','state_id' => '39','name' => 'Mahua Dabra Haripura'),\n \t array('id' => '5277','state_id' => '39','name' => 'Mahua Kheraganj'),\n \t array('id' => '5278','state_id' => '39','name' => 'Manglaur'),\n \t array('id' => '5279','state_id' => '39','name' => 'Masuri'),\n \t array('id' => '5280','state_id' => '39','name' => 'Mohanpur Mohammadpur'),\n \t array('id' => '5281','state_id' => '39','name' => 'Muni Ki Reti'),\n \t array('id' => '5282','state_id' => '39','name' => 'Nagla'),\n \t array('id' => '5283','state_id' => '39','name' => 'Nainital'),\n \t array('id' => '5284','state_id' => '39','name' => 'Nainital Cantonment'),\n \t array('id' => '5285','state_id' => '39','name' => 'Nandaprayang'),\n \t array('id' => '5286','state_id' => '39','name' => 'Narendranagar'),\n \t array('id' => '5287','state_id' => '39','name' => 'Pauri'),\n \t array('id' => '5288','state_id' => '39','name' => 'Pithoragarh'),\n \t array('id' => '5289','state_id' => '39','name' => 'Pratitnagar'),\n \t array('id' => '5290','state_id' => '39','name' => 'Raipur'),\n \t array('id' => '5291','state_id' => '39','name' => 'Raiwala'),\n \t array('id' => '5292','state_id' => '39','name' => 'Ramnagar'),\n \t array('id' => '5293','state_id' => '39','name' => 'Ranikhet'),\n \t array('id' => '5294','state_id' => '39','name' => 'Ranipur'),\n \t array('id' => '5295','state_id' => '39','name' => 'Rishikesh'),\n \t array('id' => '5296','state_id' => '39','name' => 'Rishikesh Cantonment'),\n \t array('id' => '5297','state_id' => '39','name' => 'Roorkee'),\n \t array('id' => '5298','state_id' => '39','name' => 'Rudraprayag'),\n \t array('id' => '5299','state_id' => '39','name' => 'Rudrapur'),\n \t array('id' => '5300','state_id' => '39','name' => 'Rurki'),\n \t array('id' => '5301','state_id' => '39','name' => 'Rurki Cantonment'),\n \t array('id' => '5302','state_id' => '39','name' => 'Shaktigarh'),\n \t array('id' => '5303','state_id' => '39','name' => 'Sitarganj'),\n \t array('id' => '5304','state_id' => '39','name' => 'Srinagar'),\n \t array('id' => '5305','state_id' => '39','name' => 'Sultanpur'),\n \t array('id' => '5306','state_id' => '39','name' => 'Tanakpur'),\n \t array('id' => '5307','state_id' => '39','name' => 'Tehri'),\n \t array('id' => '5308','state_id' => '39','name' => 'Udham Singh Nagar'),\n \t array('id' => '5309','state_id' => '39','name' => 'Uttarkashi'),\n \t array('id' => '5310','state_id' => '39','name' => 'Vikasnagar'),\n \t array('id' => '5311','state_id' => '39','name' => 'Virbhadra'),\n \t array('id' => '5312','state_id' => '41','name' => '24 Parganas (n)'),\n \t array('id' => '5313','state_id' => '41','name' => '24 Parganas (s)'),\n \t array('id' => '5314','state_id' => '41','name' => 'Adra'),\n \t array('id' => '5315','state_id' => '41','name' => 'Ahmadpur'),\n \t array('id' => '5316','state_id' => '41','name' => 'Aiho'),\n \t array('id' => '5317','state_id' => '41','name' => 'Aistala'),\n \t array('id' => '5318','state_id' => '41','name' => 'Alipur Duar'),\n \t array('id' => '5319','state_id' => '41','name' => 'Alipur Duar Railway Junction'),\n \t array('id' => '5320','state_id' => '41','name' => 'Alpur'),\n \t array('id' => '5321','state_id' => '41','name' => 'Amalhara'),\n \t array('id' => '5322','state_id' => '41','name' => 'Amkula'),\n \t array('id' => '5323','state_id' => '41','name' => 'Amlagora'),\n \t array('id' => '5324','state_id' => '41','name' => 'Amodghata'),\n \t array('id' => '5325','state_id' => '41','name' => 'Amtala'),\n \t array('id' => '5326','state_id' => '41','name' => 'Andul'),\n \t array('id' => '5327','state_id' => '41','name' => 'Anksa'),\n \t array('id' => '5328','state_id' => '41','name' => 'Ankurhati'),\n \t array('id' => '5329','state_id' => '41','name' => 'Anup Nagar'),\n \t array('id' => '5330','state_id' => '41','name' => 'Arambagh'),\n \t array('id' => '5331','state_id' => '41','name' => 'Argari'),\n \t array('id' => '5332','state_id' => '41','name' => 'Arsha'),\n \t array('id' => '5333','state_id' => '41','name' => 'Asansol'),\n \t array('id' => '5334','state_id' => '41','name' => 'Ashoknagar Kalyangarh'),\n \t array('id' => '5335','state_id' => '41','name' => 'Aurangabad'),\n \t array('id' => '5336','state_id' => '41','name' => 'Bablari Dewanganj'),\n \t array('id' => '5337','state_id' => '41','name' => 'Badhagachhi'),\n \t array('id' => '5338','state_id' => '41','name' => 'Baduria'),\n \t array('id' => '5339','state_id' => '41','name' => 'Baghdogra'),\n \t array('id' => '5340','state_id' => '41','name' => 'Bagnan'),\n \t array('id' => '5341','state_id' => '41','name' => 'Bagra'),\n \t array('id' => '5342','state_id' => '41','name' => 'Bagula'),\n \t array('id' => '5343','state_id' => '41','name' => 'Baharampur'),\n \t array('id' => '5344','state_id' => '41','name' => 'Bahirgram'),\n \t array('id' => '5345','state_id' => '41','name' => 'Bahula'),\n \t array('id' => '5346','state_id' => '41','name' => 'Baidyabati'),\n \t array('id' => '5347','state_id' => '41','name' => 'Bairatisal'),\n \t array('id' => '5348','state_id' => '41','name' => 'Baj Baj'),\n \t array('id' => '5349','state_id' => '41','name' => 'Bakreswar'),\n \t array('id' => '5350','state_id' => '41','name' => 'Balaram Pota'),\n \t array('id' => '5351','state_id' => '41','name' => 'Balarampur'),\n \t array('id' => '5352','state_id' => '41','name' => 'Bali Chak'),\n \t array('id' => '5353','state_id' => '41','name' => 'Ballavpur'),\n \t array('id' => '5354','state_id' => '41','name' => 'Bally'),\n \t array('id' => '5355','state_id' => '41','name' => 'Balurghat'),\n \t array('id' => '5356','state_id' => '41','name' => 'Bamunari'),\n \t array('id' => '5357','state_id' => '41','name' => 'Banarhat Tea Garden'),\n \t array('id' => '5358','state_id' => '41','name' => 'Bandel'),\n \t array('id' => '5359','state_id' => '41','name' => 'Bangaon'),\n \t array('id' => '5360','state_id' => '41','name' => 'Bankra'),\n \t array('id' => '5361','state_id' => '41','name' => 'Bankura'),\n \t array('id' => '5362','state_id' => '41','name' => 'Bansbaria'),\n \t array('id' => '5363','state_id' => '41','name' => 'Banshra'),\n \t array('id' => '5364','state_id' => '41','name' => 'Banupur'),\n \t array('id' => '5365','state_id' => '41','name' => 'Bara Bamonia'),\n \t array('id' => '5366','state_id' => '41','name' => 'Barakpur'),\n \t array('id' => '5367','state_id' => '41','name' => 'Barakpur Cantonment'),\n \t array('id' => '5368','state_id' => '41','name' => 'Baranagar'),\n \t array('id' => '5369','state_id' => '41','name' => 'Barasat'),\n \t array('id' => '5370','state_id' => '41','name' => 'Barddhaman'),\n \t array('id' => '5371','state_id' => '41','name' => 'Barijhati'),\n \t array('id' => '5372','state_id' => '41','name' => 'Barjora'),\n \t array('id' => '5373','state_id' => '41','name' => 'Barrackpore'),\n \t array('id' => '5374','state_id' => '41','name' => 'Baruihuda'),\n \t array('id' => '5375','state_id' => '41','name' => 'Baruipur'),\n \t array('id' => '5376','state_id' => '41','name' => 'Barunda'),\n \t array('id' => '5377','state_id' => '41','name' => 'Basirhat'),\n \t array('id' => '5378','state_id' => '41','name' => 'Baska'),\n \t array('id' => '5379','state_id' => '41','name' => 'Begampur'),\n \t array('id' => '5380','state_id' => '41','name' => 'Beldanga'),\n \t array('id' => '5381','state_id' => '41','name' => 'Beldubi'),\n \t array('id' => '5382','state_id' => '41','name' => 'Belebathan'),\n \t array('id' => '5383','state_id' => '41','name' => 'Beliator'),\n \t array('id' => '5384','state_id' => '41','name' => 'Bhadreswar'),\n \t array('id' => '5385','state_id' => '41','name' => 'Bhandardaha'),\n \t array('id' => '5386','state_id' => '41','name' => 'Bhangar Raghunathpur'),\n \t array('id' => '5387','state_id' => '41','name' => 'Bhangri Pratham Khanda'),\n \t array('id' => '5388','state_id' => '41','name' => 'Bhanowara'),\n \t array('id' => '5389','state_id' => '41','name' => 'Bhatpara'),\n \t array('id' => '5390','state_id' => '41','name' => 'Bholar Dabri'),\n \t array('id' => '5391','state_id' => '41','name' => 'Bidhannagar'),\n \t array('id' => '5392','state_id' => '41','name' => 'Bidyadharpur'),\n \t array('id' => '5393','state_id' => '41','name' => 'Biki Hakola'),\n \t array('id' => '5394','state_id' => '41','name' => 'Bilandapur'),\n \t array('id' => '5395','state_id' => '41','name' => 'Bilpahari'),\n \t array('id' => '5396','state_id' => '41','name' => 'Bipra Noapara'),\n \t array('id' => '5397','state_id' => '41','name' => 'Birlapur'),\n \t array('id' => '5398','state_id' => '41','name' => 'Birnagar'),\n \t array('id' => '5399','state_id' => '41','name' => 'Bisarpara'),\n \t array('id' => '5400','state_id' => '41','name' => 'Bishnupur'),\n \t array('id' => '5401','state_id' => '41','name' => 'Bolpur'),\n \t array('id' => '5402','state_id' => '41','name' => 'Bongaon'),\n \t array('id' => '5403','state_id' => '41','name' => 'Bowali'),\n \t array('id' => '5404','state_id' => '41','name' => 'Burdwan'),\n \t array('id' => '5405','state_id' => '41','name' => 'Canning'),\n \t array('id' => '5406','state_id' => '41','name' => 'Cart Road'),\n \t array('id' => '5407','state_id' => '41','name' => 'Chachanda'),\n \t array('id' => '5408','state_id' => '41','name' => 'Chak Bankola'),\n \t array('id' => '5409','state_id' => '41','name' => 'Chak Enayetnagar'),\n \t array('id' => '5410','state_id' => '41','name' => 'Chak Kashipur'),\n \t array('id' => '5411','state_id' => '41','name' => 'Chakalampur'),\n \t array('id' => '5412','state_id' => '41','name' => 'Chakbansberia'),\n \t array('id' => '5413','state_id' => '41','name' => 'Chakdaha'),\n \t array('id' => '5414','state_id' => '41','name' => 'Chakpara'),\n \t array('id' => '5415','state_id' => '41','name' => 'Champahati'),\n \t array('id' => '5416','state_id' => '41','name' => 'Champdani'),\n \t array('id' => '5417','state_id' => '41','name' => 'Chamrail'),\n \t array('id' => '5418','state_id' => '41','name' => 'Chandannagar'),\n \t array('id' => '5419','state_id' => '41','name' => 'Chandpur'),\n \t array('id' => '5420','state_id' => '41','name' => 'Chandrakona'),\n \t array('id' => '5421','state_id' => '41','name' => 'Chapari'),\n \t array('id' => '5422','state_id' => '41','name' => 'Chapui'),\n \t array('id' => '5423','state_id' => '41','name' => 'Char Brahmanagar'),\n \t array('id' => '5424','state_id' => '41','name' => 'Char Maijdia'),\n \t array('id' => '5425','state_id' => '41','name' => 'Charka'),\n \t array('id' => '5426','state_id' => '41','name' => 'Chata Kalikapur'),\n \t array('id' => '5427','state_id' => '41','name' => 'Chauhati'),\n \t array('id' => '5428','state_id' => '41','name' => 'Checha Khata'),\n \t array('id' => '5429','state_id' => '41','name' => 'Chelad'),\n \t array('id' => '5430','state_id' => '41','name' => 'Chhora'),\n \t array('id' => '5431','state_id' => '41','name' => 'Chikrand'),\n \t array('id' => '5432','state_id' => '41','name' => 'Chittaranjan'),\n \t array('id' => '5433','state_id' => '41','name' => 'Contai'),\n \t array('id' => '5434','state_id' => '41','name' => 'Cooch Behar'),\n \t array('id' => '5435','state_id' => '41','name' => 'Dainhat'),\n \t array('id' => '5436','state_id' => '41','name' => 'Dakshin Baguan'),\n \t array('id' => '5437','state_id' => '41','name' => 'Dakshin Jhapardaha'),\n \t array('id' => '5438','state_id' => '41','name' => 'Dakshin Rajyadharpur'),\n \t array('id' => '5439','state_id' => '41','name' => 'Dakshin Raypur'),\n \t array('id' => '5440','state_id' => '41','name' => 'Dalkola'),\n \t array('id' => '5441','state_id' => '41','name' => 'Dalurband'),\n \t array('id' => '5442','state_id' => '41','name' => 'Darap Pur'),\n \t array('id' => '5443','state_id' => '41','name' => 'Darjiling'),\n \t array('id' => '5444','state_id' => '41','name' => 'Daulatpur'),\n \t array('id' => '5445','state_id' => '41','name' => 'Debipur'),\n \t array('id' => '5446','state_id' => '41','name' => 'Defahat'),\n \t array('id' => '5447','state_id' => '41','name' => 'Deora'),\n \t array('id' => '5448','state_id' => '41','name' => 'Deulia'),\n \t array('id' => '5449','state_id' => '41','name' => 'Dhakuria'),\n \t array('id' => '5450','state_id' => '41','name' => 'Dhandadihi'),\n \t array('id' => '5451','state_id' => '41','name' => 'Dhanyakuria'),\n \t array('id' => '5452','state_id' => '41','name' => 'Dharmapur'),\n \t array('id' => '5453','state_id' => '41','name' => 'Dhatri Gram'),\n \t array('id' => '5454','state_id' => '41','name' => 'Dhuilya'),\n \t array('id' => '5455','state_id' => '41','name' => 'Dhulagari'),\n \t array('id' => '5456','state_id' => '41','name' => 'Dhulian'),\n \t array('id' => '5457','state_id' => '41','name' => 'Dhupgari'),\n \t array('id' => '5458','state_id' => '41','name' => 'Dhusaripara'),\n \t array('id' => '5459','state_id' => '41','name' => 'Diamond Harbour'),\n \t array('id' => '5460','state_id' => '41','name' => 'Digha'),\n \t array('id' => '5461','state_id' => '41','name' => 'Dignala'),\n \t array('id' => '5462','state_id' => '41','name' => 'Dinhata'),\n \t array('id' => '5463','state_id' => '41','name' => 'Dubrajpur'),\n \t array('id' => '5464','state_id' => '41','name' => 'Dumjor'),\n \t array('id' => '5465','state_id' => '41','name' => 'Durgapur'),\n \t array('id' => '5466','state_id' => '41','name' => 'Durllabhganj'),\n \t array('id' => '5467','state_id' => '41','name' => 'Egra'),\n \t array('id' => '5468','state_id' => '41','name' => 'Eksara'),\n \t array('id' => '5469','state_id' => '41','name' => 'Falakata'),\n \t array('id' => '5470','state_id' => '41','name' => 'Farakka'),\n \t array('id' => '5471','state_id' => '41','name' => 'Fatellapur'),\n \t array('id' => '5472','state_id' => '41','name' => 'Fort Gloster'),\n \t array('id' => '5473','state_id' => '41','name' => 'Gabberia'),\n \t array('id' => '5474','state_id' => '41','name' => 'Gadigachha'),\n \t array('id' => '5475','state_id' => '41','name' => 'Gairkata'),\n \t array('id' => '5476','state_id' => '41','name' => 'Gangarampur'),\n \t array('id' => '5477','state_id' => '41','name' => 'Garalgachha'),\n \t array('id' => '5478','state_id' => '41','name' => 'Garbeta Amlagora'),\n \t array('id' => '5479','state_id' => '41','name' => 'Garhbeta'),\n \t array('id' => '5480','state_id' => '41','name' => 'Garshyamnagar'),\n \t array('id' => '5481','state_id' => '41','name' => 'Garui'),\n \t array('id' => '5482','state_id' => '41','name' => 'Garulia'),\n \t array('id' => '5483','state_id' => '41','name' => 'Gayespur'),\n \t array('id' => '5484','state_id' => '41','name' => 'Ghatal'),\n \t array('id' => '5485','state_id' => '41','name' => 'Ghorsala'),\n \t array('id' => '5486','state_id' => '41','name' => 'Goaljan'),\n \t array('id' => '5487','state_id' => '41','name' => 'Goasafat'),\n \t array('id' => '5488','state_id' => '41','name' => 'Gobardanga'),\n \t array('id' => '5489','state_id' => '41','name' => 'Gobindapur'),\n \t array('id' => '5490','state_id' => '41','name' => 'Gopalpur'),\n \t array('id' => '5491','state_id' => '41','name' => 'Gopinathpur'),\n \t array('id' => '5492','state_id' => '41','name' => 'Gora Bazar'),\n \t array('id' => '5493','state_id' => '41','name' => 'Guma'),\n \t array('id' => '5494','state_id' => '41','name' => 'Gurdaha'),\n \t array('id' => '5495','state_id' => '41','name' => 'Guriahati'),\n \t array('id' => '5496','state_id' => '41','name' => 'Guskhara'),\n \t array('id' => '5497','state_id' => '41','name' => 'Habra'),\n \t array('id' => '5498','state_id' => '41','name' => 'Haldia'),\n \t array('id' => '5499','state_id' => '41','name' => 'Haldibari'),\n \t array('id' => '5500','state_id' => '41','name' => 'Halisahar'),\n \t array('id' => '5501','state_id' => '41','name' => 'Haora'),\n \t array('id' => '5502','state_id' => '41','name' => 'Harharia Chak'),\n \t array('id' => '5503','state_id' => '41','name' => 'Harindanga'),\n \t array('id' => '5504','state_id' => '41','name' => 'Haringhata'),\n \t array('id' => '5505','state_id' => '41','name' => 'Haripur'),\n \t array('id' => '5506','state_id' => '41','name' => 'Harishpur'),\n \t array('id' => '5507','state_id' => '41','name' => 'Hatgachha'),\n \t array('id' => '5508','state_id' => '41','name' => 'Hatsimla'),\n \t array('id' => '5509','state_id' => '41','name' => 'Hijuli'),\n \t array('id' => '5510','state_id' => '41','name' => 'Hindustan Cables Town'),\n \t array('id' => '5511','state_id' => '41','name' => 'Hooghly'),\n \t array('id' => '5512','state_id' => '41','name' => 'Howrah'),\n \t array('id' => '5513','state_id' => '41','name' => 'Hugli-Chunchura'),\n \t array('id' => '5514','state_id' => '41','name' => 'Humaipur'),\n \t array('id' => '5515','state_id' => '41','name' => 'Ichha Pur Defence Estate'),\n \t array('id' => '5516','state_id' => '41','name' => 'Ingraj Bazar'),\n \t array('id' => '5517','state_id' => '41','name' => 'Islampur'),\n \t array('id' => '5518','state_id' => '41','name' => 'Jafarpur'),\n \t array('id' => '5519','state_id' => '41','name' => 'Jagadanandapur'),\n \t array('id' => '5520','state_id' => '41','name' => 'Jagdishpur'),\n \t array('id' => '5521','state_id' => '41','name' => 'Jagtaj'),\n \t array('id' => '5522','state_id' => '41','name' => 'Jala Kendua'),\n \t array('id' => '5523','state_id' => '41','name' => 'Jaldhaka'),\n \t array('id' => '5524','state_id' => '41','name' => 'Jalkhura'),\n \t array('id' => '5525','state_id' => '41','name' => 'Jalpaiguri'),\n \t array('id' => '5526','state_id' => '41','name' => 'Jamuria'),\n \t array('id' => '5527','state_id' => '41','name' => 'Jangipur'),\n \t array('id' => '5528','state_id' => '41','name' => 'Jaygaon'),\n \t array('id' => '5529','state_id' => '41','name' => 'Jaynagar-Majilpur'),\n \t array('id' => '5530','state_id' => '41','name' => 'Jemari'),\n \t array('id' => '5531','state_id' => '41','name' => 'Jemari Township'),\n \t array('id' => '5532','state_id' => '41','name' => 'Jetia'),\n \t array('id' => '5533','state_id' => '41','name' => 'Jhalida'),\n \t array('id' => '5534','state_id' => '41','name' => 'Jhargram'),\n \t array('id' => '5535','state_id' => '41','name' => 'Jhorhat'),\n \t array('id' => '5536','state_id' => '41','name' => 'Jiaganj-Azimganj'),\n \t array('id' => '5537','state_id' => '41','name' => 'Joka'),\n \t array('id' => '5538','state_id' => '41','name' => 'Jot Kamal'),\n \t array('id' => '5539','state_id' => '41','name' => 'Kachu Pukur'),\n \t array('id' => '5540','state_id' => '41','name' => 'Kajora'),\n \t array('id' => '5541','state_id' => '41','name' => 'Kakdihi'),\n \t array('id' => '5542','state_id' => '41','name' => 'Kakdwip'),\n \t array('id' => '5543','state_id' => '41','name' => 'Kalaikunda'),\n \t array('id' => '5544','state_id' => '41','name' => 'Kalara'),\n \t array('id' => '5545','state_id' => '41','name' => 'Kalimpong'),\n \t array('id' => '5546','state_id' => '41','name' => 'Kaliyaganj'),\n \t array('id' => '5547','state_id' => '41','name' => 'Kalna'),\n \t array('id' => '5548','state_id' => '41','name' => 'Kalyani'),\n \t array('id' => '5549','state_id' => '41','name' => 'Kamarhati'),\n \t array('id' => '5550','state_id' => '41','name' => 'Kanaipur'),\n \t array('id' => '5551','state_id' => '41','name' => 'Kanchrapara'),\n \t array('id' => '5552','state_id' => '41','name' => 'Kandi'),\n \t array('id' => '5553','state_id' => '41','name' => 'Kanki'),\n \t array('id' => '5554','state_id' => '41','name' => 'Kankuria'),\n \t array('id' => '5555','state_id' => '41','name' => 'Kantlia'),\n \t array('id' => '5556','state_id' => '41','name' => 'Kanyanagar'),\n \t array('id' => '5557','state_id' => '41','name' => 'Karimpur'),\n \t array('id' => '5558','state_id' => '41','name' => 'Karsiyang'),\n \t array('id' => '5559','state_id' => '41','name' => 'Kasba'),\n \t array('id' => '5560','state_id' => '41','name' => 'Kasimbazar'),\n \t array('id' => '5561','state_id' => '41','name' => 'Katwa'),\n \t array('id' => '5562','state_id' => '41','name' => 'Kaugachhi'),\n \t array('id' => '5563','state_id' => '41','name' => 'Kenda'),\n \t array('id' => '5564','state_id' => '41','name' => 'Kendra Khottamdi'),\n \t array('id' => '5565','state_id' => '41','name' => 'Kendua'),\n \t array('id' => '5566','state_id' => '41','name' => 'Kesabpur'),\n \t array('id' => '5567','state_id' => '41','name' => 'Khagrabari'),\n \t array('id' => '5568','state_id' => '41','name' => 'Khalia'),\n \t array('id' => '5569','state_id' => '41','name' => 'Khalor'),\n \t array('id' => '5570','state_id' => '41','name' => 'Khandra'),\n \t array('id' => '5571','state_id' => '41','name' => 'Khantora'),\n \t array('id' => '5572','state_id' => '41','name' => 'Kharagpur'),\n \t array('id' => '5573','state_id' => '41','name' => 'Kharagpur Railway Settlement'),\n \t array('id' => '5574','state_id' => '41','name' => 'Kharar'),\n \t array('id' => '5575','state_id' => '41','name' => 'Khardaha'),\n \t array('id' => '5576','state_id' => '41','name' => 'Khari Mala Khagrabari'),\n \t array('id' => '5577','state_id' => '41','name' => 'Kharsarai'),\n \t array('id' => '5578','state_id' => '41','name' => 'Khatra'),\n \t array('id' => '5579','state_id' => '41','name' => 'Khodarampur'),\n \t array('id' => '5580','state_id' => '41','name' => 'Kodalia'),\n \t array('id' => '5581','state_id' => '41','name' => 'Kolaghat'),\n \t array('id' => '5582','state_id' => '41','name' => 'Kolaghat Thermal Power Project'),\n \t array('id' => '5583','state_id' => '41','name' => 'Kolkata'),\n \t array('id' => '5584','state_id' => '41','name' => 'Konardihi'),\n \t array('id' => '5585','state_id' => '41','name' => 'Konnogar'),\n \t array('id' => '5586','state_id' => '41','name' => 'Krishnanagar'),\n \t array('id' => '5587','state_id' => '41','name' => 'Krishnapur'),\n \t array('id' => '5588','state_id' => '41','name' => 'Kshidirpur'),\n \t array('id' => '5589','state_id' => '41','name' => 'Kshirpai'),\n \t array('id' => '5590','state_id' => '41','name' => 'Kulihanda'),\n \t array('id' => '5591','state_id' => '41','name' => 'Kulti'),\n \t array('id' => '5592','state_id' => '41','name' => 'Kunustara'),\n \t array('id' => '5593','state_id' => '41','name' => 'Kuperskem'),\n \t array('id' => '5594','state_id' => '41','name' => 'Madanpur'),\n \t array('id' => '5595','state_id' => '41','name' => 'Madhusudanpur'),\n \t array('id' => '5596','state_id' => '41','name' => 'Madhyamgram'),\n \t array('id' => '5597','state_id' => '41','name' => 'Maheshtala'),\n \t array('id' => '5598','state_id' => '41','name' => 'Mahiari'),\n \t array('id' => '5599','state_id' => '41','name' => 'Mahikpur'),\n \t array('id' => '5600','state_id' => '41','name' => 'Mahira'),\n \t array('id' => '5601','state_id' => '41','name' => 'Mahishadal'),\n \t array('id' => '5602','state_id' => '41','name' => 'Mainaguri'),\n \t array('id' => '5603','state_id' => '41','name' => 'Makardaha'),\n \t array('id' => '5604','state_id' => '41','name' => 'Mal'),\n \t array('id' => '5605','state_id' => '41','name' => 'Malda'),\n \t array('id' => '5606','state_id' => '41','name' => 'Mandarbani'),\n \t array('id' => '5607','state_id' => '41','name' => 'Mansinhapur'),\n \t array('id' => '5608','state_id' => '41','name' => 'Masila'),\n \t array('id' => '5609','state_id' => '41','name' => 'Maslandapur'),\n \t array('id' => '5610','state_id' => '41','name' => 'Mathabhanga'),\n \t array('id' => '5611','state_id' => '41','name' => 'Mekliganj'),\n \t array('id' => '5612','state_id' => '41','name' => 'Memari'),\n \t array('id' => '5613','state_id' => '41','name' => 'Midnapur'),\n \t array('id' => '5614','state_id' => '41','name' => 'Mirik'),\n \t array('id' => '5615','state_id' => '41','name' => 'Monoharpur'),\n \t array('id' => '5616','state_id' => '41','name' => 'Mrigala'),\n \t array('id' => '5617','state_id' => '41','name' => 'Muragachha'),\n \t array('id' => '5618','state_id' => '41','name' => 'Murgathaul'),\n \t array('id' => '5619','state_id' => '41','name' => 'Murshidabad'),\n \t array('id' => '5620','state_id' => '41','name' => 'Nabadhai Dutta Pukur'),\n \t array('id' => '5621','state_id' => '41','name' => 'Nabagram'),\n \t array('id' => '5622','state_id' => '41','name' => 'Nabgram'),\n \t array('id' => '5623','state_id' => '41','name' => 'Nachhratpur Katabari'),\n \t array('id' => '5624','state_id' => '41','name' => 'Nadia'),\n \t array('id' => '5625','state_id' => '41','name' => 'Naihati'),\n \t array('id' => '5626','state_id' => '41','name' => 'Nalhati'),\n \t array('id' => '5627','state_id' => '41','name' => 'Nasra'),\n \t array('id' => '5628','state_id' => '41','name' => 'Natibpur'),\n \t array('id' => '5629','state_id' => '41','name' => 'Naupala'),\n \t array('id' => '5630','state_id' => '41','name' => 'Navadwip'),\n \t array('id' => '5631','state_id' => '41','name' => 'Nebadhai Duttapukur'),\n \t array('id' => '5632','state_id' => '41','name' => 'New Barrackpore'),\n \t array('id' => '5633','state_id' => '41','name' => 'Ni Barakpur'),\n \t array('id' => '5634','state_id' => '41','name' => 'Nibra'),\n \t array('id' => '5635','state_id' => '41','name' => 'Noapara'),\n \t array('id' => '5636','state_id' => '41','name' => 'Nokpul'),\n \t array('id' => '5637','state_id' => '41','name' => 'North Barakpur'),\n \t array('id' => '5638','state_id' => '41','name' => 'Odlabari'),\n \t array('id' => '5639','state_id' => '41','name' => 'Old Maldah'),\n \t array('id' => '5640','state_id' => '41','name' => 'Ondal'),\n \t array('id' => '5641','state_id' => '41','name' => 'Pairagachha'),\n \t array('id' => '5642','state_id' => '41','name' => 'Palashban'),\n \t array('id' => '5643','state_id' => '41','name' => 'Panchla'),\n \t array('id' => '5644','state_id' => '41','name' => 'Panchpara'),\n \t array('id' => '5645','state_id' => '41','name' => 'Pandua'),\n \t array('id' => '5646','state_id' => '41','name' => 'Pangachhiya'),\n \t array('id' => '5647','state_id' => '41','name' => 'Paniara'),\n \t array('id' => '5648','state_id' => '41','name' => 'Panihati'),\n \t array('id' => '5649','state_id' => '41','name' => 'Panuhat'),\n \t array('id' => '5650','state_id' => '41','name' => 'Par Beliya'),\n \t array('id' => '5651','state_id' => '41','name' => 'Parashkol'),\n \t array('id' => '5652','state_id' => '41','name' => 'Parasia'),\n \t array('id' => '5653','state_id' => '41','name' => 'Parbbatipur'),\n \t array('id' => '5654','state_id' => '41','name' => 'Parui'),\n \t array('id' => '5655','state_id' => '41','name' => 'Paschim Jitpur'),\n \t array('id' => '5656','state_id' => '41','name' => 'Paschim Punro Para'),\n \t array('id' => '5657','state_id' => '41','name' => 'Patrasaer'),\n \t array('id' => '5658','state_id' => '41','name' => 'Pattabong Tea Garden'),\n \t array('id' => '5659','state_id' => '41','name' => 'Patuli'),\n \t array('id' => '5660','state_id' => '41','name' => 'Patulia'),\n \t array('id' => '5661','state_id' => '41','name' => 'Phulia'),\n \t array('id' => '5662','state_id' => '41','name' => 'Podara'),\n \t array('id' => '5663','state_id' => '41','name' => 'Port Blair'),\n \t array('id' => '5664','state_id' => '41','name' => 'Prayagpur'),\n \t array('id' => '5665','state_id' => '41','name' => 'Pujali'),\n \t array('id' => '5666','state_id' => '41','name' => 'Purba Medinipur'),\n \t array('id' => '5667','state_id' => '41','name' => 'Purba Tajpur'),\n \t array('id' => '5668','state_id' => '41','name' => 'Purulia'),\n \t array('id' => '5669','state_id' => '41','name' => 'Raghudebbati'),\n \t array('id' => '5670','state_id' => '41','name' => 'Raghudebpur'),\n \t array('id' => '5671','state_id' => '41','name' => 'Raghunathchak'),\n \t array('id' => '5672','state_id' => '41','name' => 'Raghunathpur'),\n \t array('id' => '5673','state_id' => '41','name' => 'Raghunathpur-Dankuni'),\n \t array('id' => '5674','state_id' => '41','name' => 'Raghunathpur-Magra'),\n \t array('id' => '5675','state_id' => '41','name' => 'Raigachhi'),\n \t array('id' => '5676','state_id' => '41','name' => 'Raiganj'),\n \t array('id' => '5677','state_id' => '41','name' => 'Raipur'),\n \t array('id' => '5678','state_id' => '41','name' => 'Rajarhat Gopalpur'),\n \t array('id' => '5679','state_id' => '41','name' => 'Rajpur'),\n \t array('id' => '5680','state_id' => '41','name' => 'Ramchandrapur'),\n \t array('id' => '5681','state_id' => '41','name' => 'Ramjibanpur'),\n \t array('id' => '5682','state_id' => '41','name' => 'Ramnagar'),\n \t array('id' => '5683','state_id' => '41','name' => 'Rampur Hat'),\n \t array('id' => '5684','state_id' => '41','name' => 'Ranaghat'),\n \t array('id' => '5685','state_id' => '41','name' => 'Raniganj'),\n \t array('id' => '5686','state_id' => '41','name' => 'Ratibati'),\n \t array('id' => '5687','state_id' => '41','name' => 'Raypur'),\n \t array('id' => '5688','state_id' => '41','name' => 'Rishra'),\n \t array('id' => '5689','state_id' => '41','name' => 'Rishra Cantonment'),\n \t array('id' => '5690','state_id' => '41','name' => 'Ruiya'),\n \t array('id' => '5691','state_id' => '41','name' => 'Sahajadpur'),\n \t array('id' => '5692','state_id' => '41','name' => 'Sahapur'),\n \t array('id' => '5693','state_id' => '41','name' => 'Sainthia'),\n \t array('id' => '5694','state_id' => '41','name' => 'Salap'),\n \t array('id' => '5695','state_id' => '41','name' => 'Sankarpur'),\n \t array('id' => '5696','state_id' => '41','name' => 'Sankrail'),\n \t array('id' => '5697','state_id' => '41','name' => 'Santoshpur'),\n \t array('id' => '5698','state_id' => '41','name' => 'Saontaidih'),\n \t array('id' => '5699','state_id' => '41','name' => 'Sarenga'),\n \t array('id' => '5700','state_id' => '41','name' => 'Sarpi'),\n \t array('id' => '5701','state_id' => '41','name' => 'Satigachha'),\n \t array('id' => '5702','state_id' => '41','name' => 'Serpur'),\n \t array('id' => '5703','state_id' => '41','name' => 'Shankhanagar'),\n \t array('id' => '5704','state_id' => '41','name' => 'Shantipur'),\n \t array('id' => '5705','state_id' => '41','name' => 'Shrirampur'),\n \t array('id' => '5706','state_id' => '41','name' => 'Siduli'),\n \t array('id' => '5707','state_id' => '41','name' => 'Siliguri'),\n \t array('id' => '5708','state_id' => '41','name' => 'Simla'),\n \t array('id' => '5709','state_id' => '41','name' => 'Singur'),\n \t array('id' => '5710','state_id' => '41','name' => 'Sirsha'),\n \t array('id' => '5711','state_id' => '41','name' => 'Siuri'),\n \t array('id' => '5712','state_id' => '41','name' => 'Sobhaganj'),\n \t array('id' => '5713','state_id' => '41','name' => 'Sodpur'),\n \t array('id' => '5714','state_id' => '41','name' => 'Sonamukhi'),\n \t array('id' => '5715','state_id' => '41','name' => 'Sonatikiri'),\n \t array('id' => '5716','state_id' => '41','name' => 'Srikantabati'),\n \t array('id' => '5717','state_id' => '41','name' => 'Srirampur'),\n \t array('id' => '5718','state_id' => '41','name' => 'Sukdal'),\n \t array('id' => '5719','state_id' => '41','name' => 'Taherpur'),\n \t array('id' => '5720','state_id' => '41','name' => 'Taki'),\n \t array('id' => '5721','state_id' => '41','name' => 'Talbandha'),\n \t array('id' => '5722','state_id' => '41','name' => 'Tamluk'),\n \t array('id' => '5723','state_id' => '41','name' => 'Tarakeswar'),\n \t array('id' => '5724','state_id' => '41','name' => 'Tentulberia'),\n \t array('id' => '5725','state_id' => '41','name' => 'Tentulkuli'),\n \t array('id' => '5726','state_id' => '41','name' => 'Thermal Power Project'),\n \t array('id' => '5727','state_id' => '41','name' => 'Tinsukia'),\n \t array('id' => '5728','state_id' => '41','name' => 'Titagarh'),\n \t array('id' => '5729','state_id' => '41','name' => 'Tufanganj'),\n \t array('id' => '5730','state_id' => '41','name' => 'Ukhra'),\n \t array('id' => '5731','state_id' => '41','name' => 'Ula'),\n \t array('id' => '5732','state_id' => '41','name' => 'Ulubaria'),\n \t array('id' => '5733','state_id' => '41','name' => 'Uttar Durgapur'),\n \t array('id' => '5734','state_id' => '41','name' => 'Uttar Goara'),\n \t array('id' => '5735','state_id' => '41','name' => 'Uttar Kalas'),\n \t array('id' => '5736','state_id' => '41','name' => 'Uttar Kamakhyaguri'),\n \t array('id' => '5737','state_id' => '41','name' => 'Uttar Latabari'),\n \t array('id' => '5738','state_id' => '41','name' => 'Uttar Mahammadpur'),\n \t array('id' => '5739','state_id' => '41','name' => 'Uttar Pirpur'),\n \t array('id' => '5740','state_id' => '41','name' => 'Uttar Raypur'),\n \t array('id' => '5741','state_id' => '41','name' => 'Uttarpara-Kotrung'),\n \t array('id' => '5742','state_id' => '2728','name' => 'Abohar'),\n \t array('id' => '5743','state_id' => '2728','name' => 'Adampur'),\n \t array('id' => '5744','state_id' => '2728','name' => 'Ahmedgarh'),\n \t array('id' => '5745','state_id' => '2728','name' => 'Ajnala'),\n \t array('id' => '5746','state_id' => '2728','name' => 'Akalgarh'),\n \t array('id' => '5747','state_id' => '2728','name' => 'Alawalpur'),\n \t array('id' => '5748','state_id' => '2728','name' => 'Amloh'),\n \t array('id' => '5749','state_id' => '2728','name' => 'Amritsar'),\n \t array('id' => '5750','state_id' => '2728','name' => 'Amritsar Cantonment'),\n \t array('id' => '5751','state_id' => '2728','name' => 'Anandpur Sahib'),\n \t array('id' => '5752','state_id' => '2728','name' => 'Badhni Kalan'),\n \t array('id' => '5753','state_id' => '2728','name' => 'Bagh Purana'),\n \t array('id' => '5754','state_id' => '2728','name' => 'Balachaur'),\n \t array('id' => '5755','state_id' => '2728','name' => 'Banaur'),\n \t array('id' => '5756','state_id' => '2728','name' => 'Banga'),\n \t array('id' => '5757','state_id' => '2728','name' => 'Banur'),\n \t array('id' => '5758','state_id' => '2728','name' => 'Baretta'),\n \t array('id' => '5759','state_id' => '2728','name' => 'Bariwala'),\n \t array('id' => '5760','state_id' => '2728','name' => 'Barnala'),\n \t array('id' => '5761','state_id' => '2728','name' => 'Bassi Pathana'),\n \t array('id' => '5762','state_id' => '2728','name' => 'Batala'),\n \t array('id' => '5763','state_id' => '2728','name' => 'Bathinda'),\n \t array('id' => '5764','state_id' => '2728','name' => 'Begowal'),\n \t array('id' => '5765','state_id' => '2728','name' => 'Behrampur'),\n \t array('id' => '5766','state_id' => '2728','name' => 'Bhabat'),\n \t array('id' => '5767','state_id' => '2728','name' => 'Bhadur'),\n \t array('id' => '5768','state_id' => '2728','name' => 'Bhankharpur'),\n \t array('id' => '5769','state_id' => '2728','name' => 'Bharoli Kalan'),\n \t array('id' => '5770','state_id' => '2728','name' => 'Bhawanigarh'),\n \t array('id' => '5771','state_id' => '2728','name' => 'Bhikhi'),\n \t array('id' => '5772','state_id' => '2728','name' => 'Bhikhiwind'),\n \t array('id' => '5773','state_id' => '2728','name' => 'Bhisiana'),\n \t array('id' => '5774','state_id' => '2728','name' => 'Bhogpur'),\n \t array('id' => '5775','state_id' => '2728','name' => 'Bhuch'),\n \t array('id' => '5776','state_id' => '2728','name' => 'Bhulath'),\n \t array('id' => '5777','state_id' => '2728','name' => 'Budha Theh'),\n \t array('id' => '5778','state_id' => '2728','name' => 'Budhlada'),\n \t array('id' => '5779','state_id' => '2728','name' => 'Chima'),\n \t array('id' => '5780','state_id' => '2728','name' => 'Chohal'),\n \t array('id' => '5781','state_id' => '2728','name' => 'Dasuya'),\n \t array('id' => '5782','state_id' => '2728','name' => 'Daulatpur'),\n \t array('id' => '5783','state_id' => '2728','name' => 'Dera Baba Nanak'),\n \t array('id' => '5784','state_id' => '2728','name' => 'Dera Bassi'),\n \t array('id' => '5785','state_id' => '2728','name' => 'Dhanaula'),\n \t array('id' => '5786','state_id' => '2728','name' => 'Dharam Kot'),\n \t array('id' => '5787','state_id' => '2728','name' => 'Dhariwal'),\n \t array('id' => '5788','state_id' => '2728','name' => 'Dhilwan'),\n \t array('id' => '5789','state_id' => '2728','name' => 'Dhuri'),\n \t array('id' => '5790','state_id' => '2728','name' => 'Dinanagar'),\n \t array('id' => '5791','state_id' => '2728','name' => 'Dirba'),\n \t array('id' => '5792','state_id' => '2728','name' => 'Doraha'),\n \t array('id' => '5793','state_id' => '2728','name' => 'Faridkot'),\n \t array('id' => '5794','state_id' => '2728','name' => 'Fateh Nangal'),\n \t array('id' => '5795','state_id' => '2728','name' => 'Fatehgarh Churian'),\n \t array('id' => '5796','state_id' => '2728','name' => 'Fatehgarh Sahib'),\n \t array('id' => '5797','state_id' => '2728','name' => 'Fazilka'),\n \t array('id' => '5798','state_id' => '2728','name' => 'Firozpur'),\n \t array('id' => '5799','state_id' => '2728','name' => 'Firozpur Cantonment'),\n \t array('id' => '5800','state_id' => '2728','name' => 'Gardhiwala'),\n \t array('id' => '5801','state_id' => '2728','name' => 'Garhshankar'),\n \t array('id' => '5802','state_id' => '2728','name' => 'Ghagga'),\n \t array('id' => '5803','state_id' => '2728','name' => 'Ghanaur'),\n \t array('id' => '5804','state_id' => '2728','name' => 'Giddarbaha'),\n \t array('id' => '5805','state_id' => '2728','name' => 'Gobindgarh'),\n \t array('id' => '5806','state_id' => '2728','name' => 'Goniana'),\n \t array('id' => '5807','state_id' => '2728','name' => 'Goraya'),\n \t array('id' => '5808','state_id' => '2728','name' => 'Gurdaspur'),\n \t array('id' => '5809','state_id' => '2728','name' => 'Guru Har Sahai'),\n \t array('id' => '5810','state_id' => '2728','name' => 'Hajipur'),\n \t array('id' => '5811','state_id' => '2728','name' => 'Handiaya'),\n \t array('id' => '5812','state_id' => '2728','name' => 'Hariana'),\n \t array('id' => '5813','state_id' => '2728','name' => 'Hoshiarpur'),\n \t array('id' => '5814','state_id' => '2728','name' => 'Hussainpur'),\n \t array('id' => '5815','state_id' => '2728','name' => 'Jagraon'),\n \t array('id' => '5816','state_id' => '2728','name' => 'Jaitu'),\n \t array('id' => '5817','state_id' => '2728','name' => 'Jalalabad'),\n \t array('id' => '5818','state_id' => '2728','name' => 'Jalandhar'),\n \t array('id' => '5819','state_id' => '2728','name' => 'Jalandhar Cantonment'),\n \t array('id' => '5820','state_id' => '2728','name' => 'Jandiala'),\n \t array('id' => '5821','state_id' => '2728','name' => 'Jugial'),\n \t array('id' => '5822','state_id' => '2728','name' => 'Kalanaur'),\n \t array('id' => '5823','state_id' => '2728','name' => 'Kapurthala'),\n \t array('id' => '5824','state_id' => '2728','name' => 'Karoran'),\n \t array('id' => '5825','state_id' => '2728','name' => 'Kartarpur'),\n \t array('id' => '5826','state_id' => '2728','name' => 'Khamanon'),\n \t array('id' => '5827','state_id' => '2728','name' => 'Khanauri'),\n \t array('id' => '5828','state_id' => '2728','name' => 'Khanna'),\n \t array('id' => '5829','state_id' => '2728','name' => 'Kharar'),\n \t array('id' => '5830','state_id' => '2728','name' => 'Khem Karan'),\n \t array('id' => '5831','state_id' => '2728','name' => 'Kot Fatta'),\n \t array('id' => '5832','state_id' => '2728','name' => 'Kot Isa Khan'),\n \t array('id' => '5833','state_id' => '2728','name' => 'Kot Kapura'),\n \t array('id' => '5834','state_id' => '2728','name' => 'Kotkapura'),\n \t array('id' => '5835','state_id' => '2728','name' => 'Kurali'),\n \t array('id' => '5836','state_id' => '2728','name' => 'Lalru'),\n \t array('id' => '5837','state_id' => '2728','name' => 'Lehra Gaga'),\n \t array('id' => '5838','state_id' => '2728','name' => 'Lodhian Khas'),\n \t array('id' => '5839','state_id' => '2728','name' => 'Longowal'),\n \t array('id' => '5840','state_id' => '2728','name' => 'Ludhiana'),\n \t array('id' => '5841','state_id' => '2728','name' => 'Machhiwara'),\n \t array('id' => '5842','state_id' => '2728','name' => 'Mahilpur'),\n \t array('id' => '5843','state_id' => '2728','name' => 'Majitha'),\n \t array('id' => '5844','state_id' => '2728','name' => 'Makhu'),\n \t array('id' => '5845','state_id' => '2728','name' => 'Malaut'),\n \t array('id' => '5846','state_id' => '2728','name' => 'Malerkotla'),\n \t array('id' => '5847','state_id' => '2728','name' => 'Maloud'),\n \t array('id' => '5848','state_id' => '2728','name' => 'Mandi Gobindgarh'),\n \t array('id' => '5849','state_id' => '2728','name' => 'Mansa'),\n \t array('id' => '5850','state_id' => '2728','name' => 'Maur'),\n \t array('id' => '5851','state_id' => '2728','name' => 'Moga'),\n \t array('id' => '5852','state_id' => '2728','name' => 'Mohali'),\n \t array('id' => '5853','state_id' => '2728','name' => 'Moonak'),\n \t array('id' => '5854','state_id' => '2728','name' => 'Morinda'),\n \t array('id' => '5855','state_id' => '2728','name' => 'Mukerian'),\n \t array('id' => '5856','state_id' => '2728','name' => 'Muktsar'),\n \t array('id' => '5857','state_id' => '2728','name' => 'Mullanpur Dakha'),\n \t array('id' => '5858','state_id' => '2728','name' => 'Mullanpur Garibdas'),\n \t array('id' => '5859','state_id' => '2728','name' => 'Munak'),\n \t array('id' => '5860','state_id' => '2728','name' => 'Muradpura'),\n \t array('id' => '5861','state_id' => '2728','name' => 'Nabha'),\n \t array('id' => '5862','state_id' => '2728','name' => 'Nakodar'),\n \t array('id' => '5863','state_id' => '2728','name' => 'Nangal'),\n \t array('id' => '5864','state_id' => '2728','name' => 'Nawashahr'),\n \t array('id' => '5865','state_id' => '2728','name' => 'Naya Nangal'),\n \t array('id' => '5866','state_id' => '2728','name' => 'Nehon'),\n \t array('id' => '5867','state_id' => '2728','name' => 'Nurmahal'),\n \t array('id' => '5868','state_id' => '2728','name' => 'Pathankot'),\n \t array('id' => '5869','state_id' => '2728','name' => 'Patiala'),\n \t array('id' => '5870','state_id' => '2728','name' => 'Patti'),\n \t array('id' => '5871','state_id' => '2728','name' => 'Pattran'),\n \t array('id' => '5872','state_id' => '2728','name' => 'Payal'),\n \t array('id' => '5873','state_id' => '2728','name' => 'Phagwara'),\n \t array('id' => '5874','state_id' => '2728','name' => 'Phillaur'),\n \t array('id' => '5875','state_id' => '2728','name' => 'Qadian'),\n \t array('id' => '5876','state_id' => '2728','name' => 'Rahon'),\n \t array('id' => '5877','state_id' => '2728','name' => 'Raikot'),\n \t array('id' => '5878','state_id' => '2728','name' => 'Raja Sansi'),\n \t array('id' => '5879','state_id' => '2728','name' => 'Rajpura'),\n \t array('id' => '5880','state_id' => '2728','name' => 'Ram Das'),\n \t array('id' => '5881','state_id' => '2728','name' => 'Raman'),\n \t array('id' => '5882','state_id' => '2728','name' => 'Rampura'),\n \t array('id' => '5883','state_id' => '2728','name' => 'Rayya'),\n \t array('id' => '5884','state_id' => '2728','name' => 'Rupnagar'),\n \t array('id' => '5885','state_id' => '2728','name' => 'Rurki Kasba'),\n \t array('id' => '5886','state_id' => '2728','name' => 'Sahnewal'),\n \t array('id' => '5887','state_id' => '2728','name' => 'Samana'),\n \t array('id' => '5888','state_id' => '2728','name' => 'Samrala'),\n \t array('id' => '5889','state_id' => '2728','name' => 'Sanaur'),\n \t array('id' => '5890','state_id' => '2728','name' => 'Sangat'),\n \t array('id' => '5891','state_id' => '2728','name' => 'Sangrur'),\n \t array('id' => '5892','state_id' => '2728','name' => 'Sansarpur'),\n \t array('id' => '5893','state_id' => '2728','name' => 'Sardulgarh'),\n \t array('id' => '5894','state_id' => '2728','name' => 'Shahkot'),\n \t array('id' => '5895','state_id' => '2728','name' => 'Sham Churasi'),\n \t array('id' => '5896','state_id' => '2728','name' => 'Shekhpura'),\n \t array('id' => '5897','state_id' => '2728','name' => 'Sirhind'),\n \t array('id' => '5898','state_id' => '2728','name' => 'Sri Hargobindpur'),\n \t array('id' => '5899','state_id' => '2728','name' => 'Sujanpur'),\n \t array('id' => '5900','state_id' => '2728','name' => 'Sultanpur Lodhi'),\n \t array('id' => '5901','state_id' => '2728','name' => 'Sunam'),\n \t array('id' => '5902','state_id' => '2728','name' => 'Talwandi Bhai'),\n \t array('id' => '5903','state_id' => '2728','name' => 'Talwara'),\n \t array('id' => '5904','state_id' => '2728','name' => 'Tappa'),\n \t array('id' => '5905','state_id' => '2728','name' => 'Tarn Taran'),\n \t array('id' => '5906','state_id' => '2728','name' => 'Urmar Tanda'),\n \t array('id' => '5907','state_id' => '2728','name' => 'Zira'),\n \t array('id' => '5908','state_id' => '2728','name' => 'Zirakpur'),\n \t array('id' => '5909','state_id' => '42','name' => 'Eshkashem'),\n \t array('id' => '5910','state_id' => '42','name' => 'Fayzabad'),\n \t array('id' => '5911','state_id' => '42','name' => 'Jurm'),\n \t array('id' => '5912','state_id' => '42','name' => 'Khandud'),\n \t array('id' => '5913','state_id' => '42','name' => 'Qal\\'eh-ye Panjeh'),\n \t array('id' => '5914','state_id' => '43','name' => 'Bala Morghab'),\n \t array('id' => '5915','state_id' => '43','name' => 'Qal\\'eh-ye Naw'),\n \t array('id' => '5916','state_id' => '44','name' => 'Andarab'),\n \t array('id' => '5917','state_id' => '44','name' => 'Baghlan'),\n \t array('id' => '5918','state_id' => '44','name' => 'Dahaneh-ye Ghawri'),\n \t array('id' => '5919','state_id' => '44','name' => 'Nahrin'),\n \t array('id' => '5920','state_id' => '44','name' => 'Pol-e Khumri'),\n \t array('id' => '5921','state_id' => '45','name' => 'Balkh'),\n \t array('id' => '5922','state_id' => '45','name' => 'Dawlatabad'),\n \t array('id' => '5923','state_id' => '45','name' => 'Mazar-e Sharif'),\n \t array('id' => '5924','state_id' => '45','name' => 'Qarchi Gak'),\n \t array('id' => '5925','state_id' => '45','name' => 'Shulgara'),\n \t array('id' => '5926','state_id' => '45','name' => 'Tash Gozar'),\n \t array('id' => '5927','state_id' => '46','name' => 'Bamiyan'),\n \t array('id' => '5928','state_id' => '46','name' => 'Panjab'),\n \t array('id' => '5929','state_id' => '46','name' => 'Qil Qal\\'eh'),\n \t array('id' => '5930','state_id' => '47','name' => 'Anar Darreh'),\n \t array('id' => '5931','state_id' => '47','name' => 'Farah'),\n \t array('id' => '5932','state_id' => '47','name' => 'Shindand'),\n \t array('id' => '5933','state_id' => '48','name' => 'Andkhvoy'),\n \t array('id' => '5934','state_id' => '48','name' => 'Darzi Ab'),\n \t array('id' => '5935','state_id' => '48','name' => 'Dawlatabad'),\n \t array('id' => '5936','state_id' => '48','name' => 'Maymanah'),\n \t array('id' => '5937','state_id' => '49','name' => 'Chaghcharan'),\n \t array('id' => '5938','state_id' => '49','name' => 'Shahrak'),\n \t array('id' => '5939','state_id' => '49','name' => 'Taywarah'),\n \t array('id' => '5940','state_id' => '50','name' => 'Ghazni'),\n \t array('id' => '5941','state_id' => '51','name' => 'Awbeh'),\n \t array('id' => '5942','state_id' => '51','name' => 'Eslam Qal\\'eh'),\n \t array('id' => '5943','state_id' => '51','name' => 'Ghurian'),\n \t array('id' => '5944','state_id' => '51','name' => 'Herat'),\n \t array('id' => '5945','state_id' => '51','name' => 'Karukh'),\n \t array('id' => '5946','state_id' => '51','name' => 'Kuhestan'),\n \t array('id' => '5947','state_id' => '51','name' => 'Kushk'),\n \t array('id' => '5948','state_id' => '51','name' => 'Qarabagh'),\n \t array('id' => '5949','state_id' => '51','name' => 'Tawraghudi'),\n \t array('id' => '5950','state_id' => '51','name' => 'Tir Pol'),\n \t array('id' => '5951','state_id' => '51','name' => 'Zendejan'),\n \t array('id' => '5952','state_id' => '52','name' => 'Baghran'),\n \t array('id' => '5953','state_id' => '52','name' => 'Darwishan'),\n \t array('id' => '5954','state_id' => '52','name' => 'Deh Shu'),\n \t array('id' => '5955','state_id' => '52','name' => 'Gereshk'),\n \t array('id' => '5956','state_id' => '52','name' => 'Lashkar Gah'),\n \t array('id' => '5957','state_id' => '52','name' => 'Sangin'),\n \t array('id' => '5958','state_id' => '53','name' => 'Aqchah'),\n \t array('id' => '5959','state_id' => '53','name' => 'Qarqin'),\n \t array('id' => '5960','state_id' => '53','name' => 'Sang-e Charak'),\n \t array('id' => '5961','state_id' => '53','name' => 'Shibarghan'),\n \t array('id' => '5962','state_id' => '54','name' => 'Baghrami'),\n \t array('id' => '5963','state_id' => '54','name' => 'Kabul'),\n \t array('id' => '5964','state_id' => '54','name' => 'Mir Bachchekut'),\n \t array('id' => '5965','state_id' => '54','name' => 'Paghman'),\n \t array('id' => '5966','state_id' => '54','name' => 'Qarabagh'),\n \t array('id' => '5967','state_id' => '54','name' => 'Sarawbi'),\n \t array('id' => '5968','state_id' => '55','name' => 'Mahmud-e Raqi'),\n \t array('id' => '5969','state_id' => '55','name' => 'Taghab'),\n \t array('id' => '5970','state_id' => '56','name' => 'Khawst'),\n \t array('id' => '5971','state_id' => '57','name' => 'Asadabad'),\n \t array('id' => '5972','state_id' => '57','name' => 'Asmar'),\n \t array('id' => '5973','state_id' => '58','name' => 'Mehtar Lam'),\n \t array('id' => '5974','state_id' => '59','name' => 'Azraw'),\n \t array('id' => '5975','state_id' => '59','name' => 'Baraki Barak'),\n \t array('id' => '5976','state_id' => '59','name' => 'Pol-e Alam'),\n \t array('id' => '5977','state_id' => '60','name' => 'Achin'),\n \t array('id' => '5978','state_id' => '60','name' => 'Batsawul'),\n \t array('id' => '5979','state_id' => '60','name' => 'Hugyani'),\n \t array('id' => '5980','state_id' => '60','name' => 'Jalalabad'),\n \t array('id' => '5981','state_id' => '60','name' => 'Nader Shah Kawt'),\n \t array('id' => '5982','state_id' => '61','name' => 'Chahar Burjak'),\n \t array('id' => '5983','state_id' => '61','name' => 'Chakhansur'),\n \t array('id' => '5984','state_id' => '61','name' => 'Khash'),\n \t array('id' => '5985','state_id' => '61','name' => 'Mirabad'),\n \t array('id' => '5986','state_id' => '61','name' => 'Rudbar'),\n \t array('id' => '5987','state_id' => '61','name' => 'Zaranj'),\n \t array('id' => '5988','state_id' => '62','name' => 'Nuristan'),\n \t array('id' => '5989','state_id' => '63','name' => 'Orgun'),\n \t array('id' => '5990','state_id' => '63','name' => 'Zareh Sharan'),\n \t array('id' => '5991','state_id' => '63','name' => 'Zarghun Shahr'),\n \t array('id' => '5992','state_id' => '64','name' => '\\'Ali Khayl'),\n \t array('id' => '5993','state_id' => '64','name' => 'Ghardez'),\n \t array('id' => '5994','state_id' => '65','name' => 'Charikar'),\n \t array('id' => '5995','state_id' => '65','name' => 'Jabal-os-Saraj'),\n \t array('id' => '5996','state_id' => '66','name' => 'Qandahar'),\n \t array('id' => '5997','state_id' => '67','name' => 'Dasht-e Archa'),\n \t array('id' => '5998','state_id' => '67','name' => 'Emam Saheb'),\n \t array('id' => '5999','state_id' => '67','name' => 'Hazart Imam'),\n \t array('id' => '6000','state_id' => '67','name' => 'Khanabad'),\n \t array('id' => '6001','state_id' => '67','name' => 'Qal\\'eh-ye Zal'),\n \t array('id' => '6002','state_id' => '67','name' => 'Qunduz'),\n \t array('id' => '6003','state_id' => '68','name' => 'Aybak'),\n \t array('id' => '6004','state_id' => '68','name' => 'Kholm'),\n \t array('id' => '6005','state_id' => '70','name' => 'Chah Ab'),\n \t array('id' => '6006','state_id' => '70','name' => 'Eshkamesh'),\n \t array('id' => '6007','state_id' => '70','name' => 'Farkhar'),\n \t array('id' => '6008','state_id' => '70','name' => 'Khwajeh Ghar'),\n \t array('id' => '6009','state_id' => '70','name' => 'Rostaq'),\n \t array('id' => '6010','state_id' => '70','name' => 'Taloqan'),\n \t array('id' => '6011','state_id' => '70','name' => 'Yangi Qal\\'eh'),\n \t array('id' => '6012','state_id' => '71','name' => 'Deh Rawud'),\n \t array('id' => '6013','state_id' => '71','name' => 'Gaz Ab'),\n \t array('id' => '6014','state_id' => '71','name' => 'Tarin Kawt'),\n \t array('id' => '6015','state_id' => '71','name' => 'Uruzgan'),\n \t array('id' => '6016','state_id' => '72','name' => 'Gardan Diwal'),\n \t array('id' => '6017','state_id' => '72','name' => 'Maydanshahr'),\n \t array('id' => '6018','state_id' => '73','name' => 'Qalat-e Ghilzay'),\n \t array('id' => '6019','state_id' => '74','name' => 'Berat'),\n \t array('id' => '6020','state_id' => '74','name' => 'Polican'),\n \t array('id' => '6021','state_id' => '74','name' => 'Ure Vajgurore'),\n \t array('id' => '6022','state_id' => '75','name' => 'Bulqize'),\n \t array('id' => '6023','state_id' => '76','name' => 'Delvine'),\n \t array('id' => '6024','state_id' => '77','name' => 'Bilisht'),\n \t array('id' => '6025','state_id' => '78','name' => 'Maqellare'),\n \t array('id' => '6026','state_id' => '78','name' => 'Peshkopi'),\n \t array('id' => '6027','state_id' => '79','name' => 'Durres'),\n \t array('id' => '6028','state_id' => '79','name' => 'Shijak'),\n \t array('id' => '6029','state_id' => '80','name' => 'Cerrik'),\n \t array('id' => '6030','state_id' => '80','name' => 'Elbasan'),\n \t array('id' => '6031','state_id' => '80','name' => 'Kerrabe'),\n \t array('id' => '6032','state_id' => '81','name' => 'Fier'),\n \t array('id' => '6033','state_id' => '81','name' => 'Patos'),\n \t array('id' => '6034','state_id' => '81','name' => 'Roskovec'),\n \t array('id' => '6035','state_id' => '82','name' => 'Gjirokaster'),\n \t array('id' => '6036','state_id' => '82','name' => 'Libohove'),\n \t array('id' => '6037','state_id' => '83','name' => 'Gramsh'),\n \t array('id' => '6038','state_id' => '84','name' => 'Krume'),\n \t array('id' => '6039','state_id' => '85','name' => 'Kavaje'),\n \t array('id' => '6040','state_id' => '86','name' => 'Erseke'),\n \t array('id' => '6041','state_id' => '86','name' => 'Leskovik'),\n \t array('id' => '6042','state_id' => '87','name' => 'Korce'),\n \t array('id' => '6043','state_id' => '87','name' => 'Maliq'),\n \t array('id' => '6044','state_id' => '88','name' => 'Fushe-Kruje'),\n \t array('id' => '6045','state_id' => '88','name' => 'Kruje'),\n \t array('id' => '6046','state_id' => '88','name' => 'Mamurras'),\n \t array('id' => '6047','state_id' => '88','name' => 'Milot'),\n \t array('id' => '6048','state_id' => '89','name' => 'Kucove'),\n \t array('id' => '6049','state_id' => '90','name' => 'Kukes'),\n \t array('id' => '6050','state_id' => '91','name' => 'Lac'),\n \t array('id' => '6051','state_id' => '92','name' => 'Lezhe'),\n \t array('id' => '6052','state_id' => '92','name' => 'Shengjin'),\n \t array('id' => '6053','state_id' => '93','name' => 'Librazhd'),\n \t array('id' => '6054','state_id' => '93','name' => 'Perrenjas'),\n \t array('id' => '6055','state_id' => '94','name' => 'Lushnje'),\n \t array('id' => '6056','state_id' => '94','name' => 'Rrogozhine'),\n \t array('id' => '6057','state_id' => '95','name' => 'Ballsh'),\n \t array('id' => '6058','state_id' => '97','name' => 'Burrel'),\n \t array('id' => '6059','state_id' => '97','name' => 'Klos'),\n \t array('id' => '6060','state_id' => '97','name' => 'Kraste'),\n \t array('id' => '6061','state_id' => '97','name' => 'Ulze'),\n \t array('id' => '6062','state_id' => '98','name' => 'Kurbnesh'),\n \t array('id' => '6063','state_id' => '98','name' => 'Rreshen'),\n \t array('id' => '6064','state_id' => '98','name' => 'Rubik'),\n \t array('id' => '6065','state_id' => '99','name' => 'Peqin'),\n \t array('id' => '6066','state_id' => '100','name' => 'Kelcyre'),\n \t array('id' => '6067','state_id' => '100','name' => 'Permet'),\n \t array('id' => '6068','state_id' => '101','name' => 'Pogradec'),\n \t array('id' => '6069','state_id' => '102','name' => 'Fierze'),\n \t array('id' => '6070','state_id' => '102','name' => 'Fushe-Arrez'),\n \t array('id' => '6071','state_id' => '102','name' => 'Puke'),\n \t array('id' => '6072','state_id' => '103','name' => 'Konispol'),\n \t array('id' => '6073','state_id' => '103','name' => 'Sarande'),\n \t array('id' => '6074','state_id' => '104','name' => 'Shkoder'),\n \t array('id' => '6075','state_id' => '105','name' => 'Corovode'),\n \t array('id' => '6076','state_id' => '106','name' => 'Memaliaj'),\n \t array('id' => '6077','state_id' => '106','name' => 'Tepelene'),\n \t array('id' => '6078','state_id' => '107','name' => 'Kamze'),\n \t array('id' => '6079','state_id' => '107','name' => 'Paskuqan'),\n \t array('id' => '6080','state_id' => '107','name' => 'Tirane'),\n \t array('id' => '6081','state_id' => '107','name' => 'Vore'),\n \t array('id' => '6082','state_id' => '108','name' => 'Bajram Curri'),\n \t array('id' => '6083','state_id' => '109','name' => 'Himare'),\n \t array('id' => '6084','state_id' => '109','name' => 'Orikum'),\n \t array('id' => '6085','state_id' => '109','name' => 'Selenice'),\n \t array('id' => '6086','state_id' => '109','name' => 'Vlore'),\n \t array('id' => '6087','state_id' => '112','name' => 'Adrar'),\n \t array('id' => '6088','state_id' => '112','name' => 'Awlaf'),\n \t array('id' => '6089','state_id' => '112','name' => 'Rijan'),\n \t array('id' => '6090','state_id' => '112','name' => 'Timimun'),\n \t array('id' => '6091','state_id' => '113','name' => 'Hydra'),\n \t array('id' => '6092','state_id' => '113','name' => 'Kouba'),\n \t array('id' => '6093','state_id' => '114','name' => 'Annabah'),\n \t array('id' => '6094','state_id' => '114','name' => 'Birrahhal'),\n \t array('id' => '6095','state_id' => '114','name' => 'Saraydih'),\n \t array('id' => '6096','state_id' => '114','name' => 'Sidi Amar'),\n \t array('id' => '6097','state_id' => '114','name' => 'al-Buni'),\n \t array('id' => '6098','state_id' => '114','name' => 'al-Hajar'),\n \t array('id' => '6099','state_id' => '115','name' => '\\'Abadlah'),\n \t array('id' => '6100','state_id' => '115','name' => 'Bani Wanif'),\n \t array('id' => '6101','state_id' => '115','name' => 'Bashshar'),\n \t array('id' => '6102','state_id' => '115','name' => 'Qanadsan'),\n \t array('id' => '6103','state_id' => '115','name' => 'Taghit'),\n \t array('id' => '6104','state_id' => '116','name' => '\\'Aris'),\n \t array('id' => '6105','state_id' => '116','name' => '\\'Ayn Tutah'),\n \t array('id' => '6106','state_id' => '116','name' => 'Barikah'),\n \t array('id' => '6107','state_id' => '116','name' => 'Batnah'),\n \t array('id' => '6108','state_id' => '116','name' => 'Marwanah'),\n \t array('id' => '6109','state_id' => '116','name' => 'Naghaus'),\n \t array('id' => '6110','state_id' => '116','name' => 'Ra\\'s-al-\\'Ayun'),\n \t array('id' => '6111','state_id' => '116','name' => 'Tazult'),\n \t array('id' => '6112','state_id' => '117','name' => '\\'Ayt Rizin'),\n \t array('id' => '6113','state_id' => '117','name' => 'Akbu'),\n \t array('id' => '6114','state_id' => '117','name' => 'Amizur'),\n \t array('id' => '6115','state_id' => '117','name' => 'Barbasha'),\n \t array('id' => '6116','state_id' => '117','name' => 'Bijayah'),\n \t array('id' => '6117','state_id' => '117','name' => 'Farrawn'),\n \t array('id' => '6118','state_id' => '117','name' => 'Ighram'),\n \t array('id' => '6119','state_id' => '117','name' => 'Sadduk'),\n \t array('id' => '6120','state_id' => '117','name' => 'Shamini'),\n \t array('id' => '6121','state_id' => '117','name' => 'Sidi \\'Aysh'),\n \t array('id' => '6122','state_id' => '117','name' => 'Taskaryut'),\n \t array('id' => '6123','state_id' => '117','name' => 'Tazmalt'),\n \t array('id' => '6124','state_id' => '117','name' => 'Timazrit'),\n \t array('id' => '6125','state_id' => '117','name' => 'Uz-al-Laqin'),\n \t array('id' => '6126','state_id' => '117','name' => 'al-Qasr'),\n \t array('id' => '6127','state_id' => '118','name' => 'Awlad Jallal'),\n \t array('id' => '6128','state_id' => '118','name' => 'Biskrah'),\n \t array('id' => '6129','state_id' => '118','name' => 'Sidi Khalid'),\n \t array('id' => '6130','state_id' => '118','name' => 'Sidi Ukbah'),\n \t array('id' => '6131','state_id' => '118','name' => 'Tulja'),\n \t array('id' => '6132','state_id' => '118','name' => 'Um\\'ash'),\n \t array('id' => '6133','state_id' => '118','name' => 'Zaribat-al-Wad'),\n \t array('id' => '6134','state_id' => '119','name' => 'Awlad Salam'),\n \t array('id' => '6135','state_id' => '119','name' => 'Awlad Yaysh'),\n \t array('id' => '6136','state_id' => '119','name' => 'Bani Khalil'),\n \t array('id' => '6137','state_id' => '119','name' => 'Bani Marad'),\n \t array('id' => '6138','state_id' => '119','name' => 'Bani Tamu'),\n \t array('id' => '6139','state_id' => '119','name' => 'Blidah'),\n \t array('id' => '6140','state_id' => '119','name' => 'Bu Arfa'),\n \t array('id' => '6141','state_id' => '119','name' => 'Bufarik'),\n \t array('id' => '6142','state_id' => '119','name' => 'Buinan'),\n \t array('id' => '6143','state_id' => '119','name' => 'Buqara'),\n \t array('id' => '6144','state_id' => '119','name' => 'Maftah'),\n \t array('id' => '6145','state_id' => '119','name' => 'Muzayah'),\n \t array('id' => '6146','state_id' => '119','name' => 'Shabli'),\n \t array('id' => '6147','state_id' => '119','name' => 'Shari\\'ah'),\n \t array('id' => '6148','state_id' => '119','name' => 'Shiffa'),\n \t array('id' => '6149','state_id' => '119','name' => 'Sidi Mussa'),\n \t array('id' => '6150','state_id' => '119','name' => 'Suma'),\n \t array('id' => '6151','state_id' => '119','name' => 'Wadi al-Allagh'),\n \t array('id' => '6152','state_id' => '119','name' => 'al-\\'Afrun'),\n \t array('id' => '6153','state_id' => '119','name' => 'al-Arba\\'a'),\n \t array('id' => '6154','state_id' => '120','name' => '\\'Ayn Bissim'),\n \t array('id' => '6155','state_id' => '120','name' => 'Aghbalu'),\n \t array('id' => '6156','state_id' => '120','name' => 'Bi\\'r Ghabalu'),\n \t array('id' => '6157','state_id' => '120','name' => 'Buirah'),\n \t array('id' => '6158','state_id' => '120','name' => 'Lakhdariyah'),\n \t array('id' => '6159','state_id' => '120','name' => 'Shurfa'),\n \t array('id' => '6160','state_id' => '120','name' => 'Sur-al-Ghuzlan'),\n \t array('id' => '6161','state_id' => '121','name' => '\\'Ayn Tayah'),\n \t array('id' => '6162','state_id' => '121','name' => 'Awlad Haddaj'),\n \t array('id' => '6163','state_id' => '121','name' => 'Awlad Mussa'),\n \t array('id' => '6164','state_id' => '121','name' => 'Bani Amran'),\n \t array('id' => '6165','state_id' => '121','name' => 'Budwawu'),\n \t array('id' => '6166','state_id' => '121','name' => 'Budwawu al-Bahri'),\n \t array('id' => '6167','state_id' => '121','name' => 'Bumardas'),\n \t array('id' => '6168','state_id' => '121','name' => 'Burj Minayal'),\n \t array('id' => '6169','state_id' => '121','name' => 'Dalis'),\n \t array('id' => '6170','state_id' => '121','name' => 'Hammadi'),\n \t array('id' => '6171','state_id' => '121','name' => 'Issar'),\n \t array('id' => '6172','state_id' => '121','name' => 'Khamis-al-Khashnah'),\n \t array('id' => '6173','state_id' => '121','name' => 'Nasiriyah'),\n \t array('id' => '6174','state_id' => '121','name' => 'Raghayah'),\n \t array('id' => '6175','state_id' => '121','name' => 'Sa\\'abat'),\n \t array('id' => '6176','state_id' => '121','name' => 'Tinyah'),\n \t array('id' => '6177','state_id' => '121','name' => 'al-Arba\\'a Tash'),\n \t array('id' => '6178','state_id' => '121','name' => 'ar-Ruwibah'),\n \t array('id' => '6179','state_id' => '123','name' => 'Ammi Mussa'),\n \t array('id' => '6180','state_id' => '123','name' => 'Ghalizan'),\n \t array('id' => '6181','state_id' => '123','name' => 'Jidiwiyah'),\n \t array('id' => '6182','state_id' => '123','name' => 'Mazunah'),\n \t array('id' => '6183','state_id' => '123','name' => 'Sidi Muhammad Ban \\'Ali'),\n \t array('id' => '6184','state_id' => '123','name' => 'Wadi Rahiyu'),\n \t array('id' => '6185','state_id' => '123','name' => 'Zammurah'),\n \t array('id' => '6186','state_id' => '124','name' => 'Biryan'),\n \t array('id' => '6187','state_id' => '124','name' => 'Bu Nura'),\n \t array('id' => '6188','state_id' => '124','name' => 'Ghardaia'),\n \t array('id' => '6189','state_id' => '124','name' => 'Ghardayah'),\n \t array('id' => '6190','state_id' => '124','name' => 'Matlili'),\n \t array('id' => '6191','state_id' => '124','name' => 'al-Ghuli\\'ah'),\n \t array('id' => '6192','state_id' => '124','name' => 'al-Qararah'),\n \t array('id' => '6193','state_id' => '125','name' => 'Ilizi'),\n \t array('id' => '6194','state_id' => '126','name' => 'Amir \\'Abd-al-Qadar'),\n \t array('id' => '6195','state_id' => '126','name' => 'Jijili'),\n \t array('id' => '6196','state_id' => '126','name' => 'Shifka'),\n \t array('id' => '6197','state_id' => '126','name' => 'Tahar'),\n \t array('id' => '6198','state_id' => '126','name' => 'al-Miliyah'),\n \t array('id' => '6199','state_id' => '127','name' => '\\'Ayn Wissarah'),\n \t array('id' => '6200','state_id' => '127','name' => '\\'Ayn-al-Ibil'),\n \t array('id' => '6201','state_id' => '127','name' => 'Birin'),\n \t array('id' => '6202','state_id' => '127','name' => 'Dar Shiyukh'),\n \t array('id' => '6203','state_id' => '127','name' => 'Hassi Bahbah'),\n \t array('id' => '6204','state_id' => '127','name' => 'Jilfah'),\n \t array('id' => '6205','state_id' => '127','name' => 'Mis\\'ad'),\n \t array('id' => '6206','state_id' => '127','name' => 'Sharif'),\n \t array('id' => '6207','state_id' => '127','name' => 'al-Idrisiyah'),\n \t array('id' => '6208','state_id' => '128','name' => 'Khanshalah'),\n \t array('id' => '6209','state_id' => '128','name' => 'Sharshar'),\n \t array('id' => '6210','state_id' => '128','name' => 'Tawziyanat'),\n \t array('id' => '6211','state_id' => '128','name' => 'al-Mahmal'),\n \t array('id' => '6212','state_id' => '129','name' => '\\'Ayn-al-Hajal'),\n \t array('id' => '6213','state_id' => '129','name' => '\\'Ayn-al-Milh'),\n \t array('id' => '6214','state_id' => '129','name' => 'Bu Sa\\'adah'),\n \t array('id' => '6215','state_id' => '129','name' => 'Hammam Dhala\\'a'),\n \t array('id' => '6216','state_id' => '129','name' => 'Ma\\'adid'),\n \t array('id' => '6217','state_id' => '129','name' => 'Maghra'),\n \t array('id' => '6218','state_id' => '129','name' => 'Masilah'),\n \t array('id' => '6219','state_id' => '129','name' => 'Sidi \\'Aysa'),\n \t array('id' => '6220','state_id' => '129','name' => 'Wanugha'),\n \t array('id' => '6221','state_id' => '130','name' => '\\'Ayn Bu Sif'),\n \t array('id' => '6222','state_id' => '130','name' => 'Birwaghiyah'),\n \t array('id' => '6223','state_id' => '130','name' => 'Midyah'),\n \t array('id' => '6224','state_id' => '130','name' => 'Qasr-al-Bukhari'),\n \t array('id' => '6225','state_id' => '130','name' => 'Shillalah'),\n \t array('id' => '6226','state_id' => '130','name' => 'Tablat'),\n \t array('id' => '6227','state_id' => '131','name' => 'Farjiwah'),\n \t array('id' => '6228','state_id' => '131','name' => 'Milah'),\n \t array('id' => '6229','state_id' => '131','name' => 'Qararam Quqa'),\n \t array('id' => '6230','state_id' => '131','name' => 'Ruwashad'),\n \t array('id' => '6231','state_id' => '131','name' => 'Salghum-al-\\'Ayd'),\n \t array('id' => '6232','state_id' => '131','name' => 'Sidi Maruf'),\n \t array('id' => '6233','state_id' => '131','name' => 'Sidi Marwan'),\n \t array('id' => '6234','state_id' => '131','name' => 'Tajananah'),\n \t array('id' => '6235','state_id' => '131','name' => 'Talighmah'),\n \t array('id' => '6236','state_id' => '131','name' => 'Wadi Athmaniyah'),\n \t array('id' => '6237','state_id' => '132','name' => 'Bu Khanifiyah'),\n \t array('id' => '6238','state_id' => '132','name' => 'Muaskar'),\n \t array('id' => '6239','state_id' => '132','name' => 'Muhammadiyah'),\n \t array('id' => '6240','state_id' => '132','name' => 'Siq'),\n \t array('id' => '6241','state_id' => '132','name' => 'Tighinnif'),\n \t array('id' => '6242','state_id' => '132','name' => 'Wadi al-Abtal'),\n \t array('id' => '6243','state_id' => '132','name' => 'Zahana'),\n \t array('id' => '6244','state_id' => '133','name' => '\\'Ayn Tadalas'),\n \t array('id' => '6245','state_id' => '133','name' => 'Hassi Mamash'),\n \t array('id' => '6246','state_id' => '133','name' => 'Mazaghran'),\n \t array('id' => '6247','state_id' => '133','name' => 'Mustaghanam'),\n \t array('id' => '6248','state_id' => '133','name' => 'Sidi Ali'),\n \t array('id' => '6249','state_id' => '134','name' => '\\'Ayn Safra'),\n \t array('id' => '6250','state_id' => '134','name' => 'Mishriyah'),\n \t array('id' => '6251','state_id' => '134','name' => 'Naama'),\n \t array('id' => '6252','state_id' => '135','name' => 'Oran'),\n \t array('id' => '6253','state_id' => '136','name' => 'Ouargla'),\n \t array('id' => '6254','state_id' => '137','name' => '\\'Ayn Bardah'),\n \t array('id' => '6255','state_id' => '137','name' => 'Bumahra Ahmad'),\n \t array('id' => '6256','state_id' => '137','name' => 'Hamman Awlad \\'Ali'),\n \t array('id' => '6257','state_id' => '137','name' => 'Qalmah'),\n \t array('id' => '6258','state_id' => '137','name' => 'Wadi Zinati'),\n \t array('id' => '6259','state_id' => '138','name' => '\\'Ayn Abid'),\n \t array('id' => '6260','state_id' => '138','name' => '\\'Ayn Samara'),\n \t array('id' => '6261','state_id' => '138','name' => 'Didush Murad'),\n \t array('id' => '6262','state_id' => '138','name' => 'Hamma Bu Ziyan'),\n \t array('id' => '6263','state_id' => '138','name' => 'Qustantinah'),\n \t array('id' => '6264','state_id' => '138','name' => 'Zighut Yusuf'),\n \t array('id' => '6265','state_id' => '138','name' => 'al-Khurub'),\n \t array('id' => '6266','state_id' => '139','name' => '\\'Azzabah'),\n \t array('id' => '6267','state_id' => '139','name' => 'Amjaz Adshish'),\n \t array('id' => '6268','state_id' => '139','name' => 'Fil Fila'),\n \t array('id' => '6269','state_id' => '139','name' => 'Karkira'),\n \t array('id' => '6270','state_id' => '139','name' => 'Ramadan Jamal'),\n \t array('id' => '6271','state_id' => '139','name' => 'Sakikdah'),\n \t array('id' => '6272','state_id' => '139','name' => 'Shataybih'),\n \t array('id' => '6273','state_id' => '139','name' => 'Tamalus'),\n \t array('id' => '6274','state_id' => '139','name' => 'al-Harush'),\n \t array('id' => '6275','state_id' => '139','name' => 'al-Qull'),\n \t array('id' => '6276','state_id' => '140','name' => '\\'Ayn \\'Azl'),\n \t array('id' => '6277','state_id' => '140','name' => '\\'Ayn Arnat'),\n \t array('id' => '6278','state_id' => '140','name' => '\\'Ayn Taqrut'),\n \t array('id' => '6279','state_id' => '140','name' => '\\'Ayn Wilman'),\n \t array('id' => '6280','state_id' => '140','name' => '\\'Ayn-al-Khabira'),\n \t array('id' => '6281','state_id' => '140','name' => 'Bouira'),\n \t array('id' => '6282','state_id' => '140','name' => 'Buq\\'ah'),\n \t array('id' => '6283','state_id' => '140','name' => 'Salah Bay'),\n \t array('id' => '6284','state_id' => '140','name' => 'Satif'),\n \t array('id' => '6285','state_id' => '140','name' => 'Setif'),\n \t array('id' => '6286','state_id' => '140','name' => 'Ziyama Mansuriyah'),\n \t array('id' => '6287','state_id' => '140','name' => 'al-\\'Ulmah'),\n \t array('id' => '6288','state_id' => '141','name' => '\\'Ayn-al-Hajar'),\n \t array('id' => '6289','state_id' => '141','name' => 'Sayda\\''),\n \t array('id' => '6290','state_id' => '144','name' => '\\'Ayn Qazzan'),\n \t array('id' => '6291','state_id' => '144','name' => '\\'Ayn Salah'),\n \t array('id' => '6292','state_id' => '144','name' => 'Tamanghasat'),\n \t array('id' => '6293','state_id' => '145','name' => '\\'Ayn Binyan'),\n \t array('id' => '6294','state_id' => '145','name' => 'Bu Isma\\'il'),\n \t array('id' => '6295','state_id' => '145','name' => 'Bu Midfar\\'ah'),\n \t array('id' => '6296','state_id' => '145','name' => 'Damus'),\n \t array('id' => '6297','state_id' => '145','name' => 'Duwirah'),\n \t array('id' => '6298','state_id' => '145','name' => 'Hajut'),\n \t array('id' => '6299','state_id' => '145','name' => 'Hammam Righa'),\n \t array('id' => '6300','state_id' => '145','name' => 'Sawlah'),\n \t array('id' => '6301','state_id' => '145','name' => 'Shiragha'),\n \t array('id' => '6302','state_id' => '145','name' => 'Shirshall'),\n \t array('id' => '6303','state_id' => '145','name' => 'Sidi Farj'),\n \t array('id' => '6304','state_id' => '145','name' => 'Stawali'),\n \t array('id' => '6305','state_id' => '145','name' => 'Tibazah'),\n \t array('id' => '6306','state_id' => '145','name' => 'Ziralda'),\n \t array('id' => '6307','state_id' => '145','name' => 'al-Qull\\'ah'),\n \t array('id' => '6308','state_id' => '146','name' => 'Bi\\'r-al-\\'Itir'),\n \t array('id' => '6309','state_id' => '146','name' => 'Hammamat'),\n \t array('id' => '6310','state_id' => '146','name' => 'Mursut'),\n \t array('id' => '6311','state_id' => '146','name' => 'Shariyah'),\n \t array('id' => '6312','state_id' => '146','name' => 'Tibissah'),\n \t array('id' => '6313','state_id' => '146','name' => 'Winzah'),\n \t array('id' => '6314','state_id' => '146','name' => 'al-\\'Awaynat'),\n \t array('id' => '6315','state_id' => '147','name' => 'Awlad Mimun'),\n \t array('id' => '6316','state_id' => '147','name' => 'Bani Mastar'),\n \t array('id' => '6317','state_id' => '147','name' => 'Bani Sikran'),\n \t array('id' => '6318','state_id' => '147','name' => 'Ghazawat'),\n \t array('id' => '6319','state_id' => '147','name' => 'Hannayah'),\n \t array('id' => '6320','state_id' => '147','name' => 'Maghniyah'),\n \t array('id' => '6321','state_id' => '147','name' => 'Nidruma'),\n \t array('id' => '6322','state_id' => '147','name' => 'Ramsh'),\n \t array('id' => '6323','state_id' => '147','name' => 'Sabra'),\n \t array('id' => '6324','state_id' => '147','name' => 'Shatwan'),\n \t array('id' => '6325','state_id' => '147','name' => 'Sibdu'),\n \t array('id' => '6326','state_id' => '147','name' => 'Sidi \\'Abdallah'),\n \t array('id' => '6327','state_id' => '147','name' => 'Tilimsan'),\n \t array('id' => '6328','state_id' => '147','name' => 'al-Mansurah'),\n \t array('id' => '6329','state_id' => '148','name' => 'Tinduf'),\n \t array('id' => '6330','state_id' => '149','name' => 'Thaniyat-al-Had'),\n \t array('id' => '6331','state_id' => '149','name' => 'Tisamsilt'),\n \t array('id' => '6332','state_id' => '150','name' => '\\'Ayn Dhahab'),\n \t array('id' => '6333','state_id' => '150','name' => 'Firindah'),\n \t array('id' => '6334','state_id' => '150','name' => 'Mahdiyah'),\n \t array('id' => '6335','state_id' => '150','name' => 'Mashra\\'a Asfa'),\n \t array('id' => '6336','state_id' => '150','name' => 'Qasr Shillalah'),\n \t array('id' => '6337','state_id' => '150','name' => 'Rahuyah'),\n \t array('id' => '6338','state_id' => '150','name' => 'Sughar'),\n \t array('id' => '6339','state_id' => '150','name' => 'Takhamarat'),\n \t array('id' => '6340','state_id' => '150','name' => 'Tiyarat'),\n \t array('id' => '6341','state_id' => '152','name' => '\\'Ayn Bayda'),\n \t array('id' => '6342','state_id' => '152','name' => '\\'Ayn Fakrun'),\n \t array('id' => '6343','state_id' => '152','name' => '\\'Ayn Kirshah'),\n \t array('id' => '6344','state_id' => '152','name' => '\\'Ayn Malilah'),\n \t array('id' => '6345','state_id' => '152','name' => 'Bi\\'r Shuhada'),\n \t array('id' => '6346','state_id' => '152','name' => 'Miskyanah'),\n \t array('id' => '6347','state_id' => '152','name' => 'Shamurah'),\n \t array('id' => '6348','state_id' => '152','name' => 'Umm-al-Bawaghi'),\n \t array('id' => '6349','state_id' => '153','name' => '\\'Ayn Biya'),\n \t array('id' => '6350','state_id' => '153','name' => '\\'Ayn-at-Turk'),\n \t array('id' => '6351','state_id' => '153','name' => 'Arzu'),\n \t array('id' => '6352','state_id' => '153','name' => 'Bi\\'r-al-Jir'),\n \t array('id' => '6353','state_id' => '153','name' => 'Butlilis'),\n \t array('id' => '6354','state_id' => '153','name' => 'Hassi Bu Nif'),\n \t array('id' => '6355','state_id' => '153','name' => 'Mars-al-Kabir'),\n \t array('id' => '6356','state_id' => '153','name' => 'Qadayal'),\n \t array('id' => '6357','state_id' => '153','name' => 'Sidi ash-Shami'),\n \t array('id' => '6358','state_id' => '153','name' => 'Wadi Thalatha'),\n \t array('id' => '6359','state_id' => '153','name' => 'Wahran'),\n \t array('id' => '6360','state_id' => '153','name' => 'al-Ansur'),\n \t array('id' => '6361','state_id' => '153','name' => 'as-Saniyah'),\n \t array('id' => '6362','state_id' => '154','name' => 'Hassi Mas\\'ud'),\n \t array('id' => '6363','state_id' => '154','name' => 'Nazla'),\n \t array('id' => '6364','state_id' => '154','name' => 'Ruwisiyat'),\n \t array('id' => '6365','state_id' => '154','name' => 'Tabisbast'),\n \t array('id' => '6366','state_id' => '154','name' => 'Tamalhat'),\n \t array('id' => '6367','state_id' => '154','name' => 'Tamasin'),\n \t array('id' => '6368','state_id' => '154','name' => 'Tayabat-al-Janubiyah'),\n \t array('id' => '6369','state_id' => '154','name' => 'Tughghurt'),\n \t array('id' => '6370','state_id' => '154','name' => 'Warqla'),\n \t array('id' => '6371','state_id' => '154','name' => 'al-Hajirah'),\n \t array('id' => '6372','state_id' => '158','name' => 'Aflu'),\n \t array('id' => '6373','state_id' => '158','name' => 'Hassi al-Raml'),\n \t array('id' => '6374','state_id' => '158','name' => 'al-Aghwat'),\n \t array('id' => '6375','state_id' => '159','name' => 'Brizyanah'),\n \t array('id' => '6376','state_id' => '159','name' => 'al-Abyad Sidi Shaykh'),\n \t array('id' => '6377','state_id' => '159','name' => 'al-Bayadh'),\n \t array('id' => '6378','state_id' => '160','name' => 'Bab Azwar'),\n \t array('id' => '6379','state_id' => '160','name' => 'Baraki'),\n \t array('id' => '6380','state_id' => '160','name' => 'Bir Murad Rais'),\n \t array('id' => '6381','state_id' => '160','name' => 'Birkhadam'),\n \t array('id' => '6382','state_id' => '160','name' => 'Burj-al-Kiffan'),\n \t array('id' => '6383','state_id' => '160','name' => 'Dar-al-Bayda'),\n \t array('id' => '6384','state_id' => '160','name' => 'al-Jaza\\'ir'),\n \t array('id' => '6385','state_id' => '161','name' => 'Bayadha'),\n \t array('id' => '6386','state_id' => '161','name' => 'Dabilah'),\n \t array('id' => '6387','state_id' => '161','name' => 'Hassan \\'Abd-al-Karim'),\n \t array('id' => '6388','state_id' => '161','name' => 'Hassi Halifa'),\n \t array('id' => '6389','state_id' => '161','name' => 'Jama\\'a'),\n \t array('id' => '6390','state_id' => '161','name' => 'Maqran'),\n \t array('id' => '6391','state_id' => '161','name' => 'Qamar'),\n \t array('id' => '6392','state_id' => '161','name' => 'Raqiba'),\n \t array('id' => '6393','state_id' => '161','name' => 'Rubbah'),\n \t array('id' => '6394','state_id' => '161','name' => 'Sidi Amran'),\n \t array('id' => '6395','state_id' => '161','name' => 'al-Mighair'),\n \t array('id' => '6396','state_id' => '161','name' => 'al-Wad'),\n \t array('id' => '6397','state_id' => '162','name' => '\\'Ayn Maran'),\n \t array('id' => '6398','state_id' => '162','name' => 'Abu al-Hassan'),\n \t array('id' => '6399','state_id' => '162','name' => 'Bani Hawa'),\n \t array('id' => '6400','state_id' => '162','name' => 'Bu Qadir'),\n \t array('id' => '6401','state_id' => '162','name' => 'Sidi Ukaskah'),\n \t array('id' => '6402','state_id' => '162','name' => 'Tanas'),\n \t array('id' => '6403','state_id' => '162','name' => 'Wadi Sali'),\n \t array('id' => '6404','state_id' => '162','name' => 'Wadi al-Fiddah'),\n \t array('id' => '6405','state_id' => '162','name' => 'ash-Shalif'),\n \t array('id' => '6406','state_id' => '162','name' => 'ash-Shattiyah'),\n \t array('id' => '6407','state_id' => '163','name' => 'Ban Mahdi'),\n \t array('id' => '6408','state_id' => '163','name' => 'Bani Amar'),\n \t array('id' => '6409','state_id' => '163','name' => 'Basbas'),\n \t array('id' => '6410','state_id' => '163','name' => 'Dariyan'),\n \t array('id' => '6411','state_id' => '163','name' => 'Saba\\'ita Muk'),\n \t array('id' => '6412','state_id' => '163','name' => 'al-Qal\\'ah'),\n \t array('id' => '6413','state_id' => '163','name' => 'at-Tarif'),\n \t array('id' => '6414','state_id' => '164','name' => 'Afono'),\n \t array('id' => '6415','state_id' => '164','name' => 'Alao'),\n \t array('id' => '6416','state_id' => '164','name' => 'Alofau'),\n \t array('id' => '6417','state_id' => '164','name' => 'Amouli'),\n \t array('id' => '6418','state_id' => '164','name' => 'Aoa'),\n \t array('id' => '6419','state_id' => '164','name' => 'Atu\\'u'),\n \t array('id' => '6420','state_id' => '164','name' => 'Aua'),\n \t array('id' => '6421','state_id' => '164','name' => 'Aunu\\'u'),\n \t array('id' => '6422','state_id' => '164','name' => 'Faga\\'alu'),\n \t array('id' => '6423','state_id' => '164','name' => 'Faga\\'itua'),\n \t array('id' => '6424','state_id' => '164','name' => 'Fagasa'),\n \t array('id' => '6425','state_id' => '164','name' => 'Fagatogo'),\n \t array('id' => '6426','state_id' => '164','name' => 'Lauli\\'i'),\n \t array('id' => '6427','state_id' => '164','name' => 'Leloaloa'),\n \t array('id' => '6428','state_id' => '164','name' => 'Nu\\'uuli'),\n \t array('id' => '6429','state_id' => '164','name' => 'Pago Pago'),\n \t array('id' => '6430','state_id' => '164','name' => 'Tula'),\n \t array('id' => '6431','state_id' => '164','name' => 'Utulei'),\n \t array('id' => '6432','state_id' => '164','name' => 'Vatia'),\n \t array('id' => '6433','state_id' => '165','name' => 'Ofu'),\n \t array('id' => '6434','state_id' => '167','name' => 'Aoloau'),\n \t array('id' => '6435','state_id' => '167','name' => 'Faleniu'),\n \t array('id' => '6436','state_id' => '167','name' => 'Futiga'),\n \t array('id' => '6437','state_id' => '167','name' => 'Ili\\'ili'),\n \t array('id' => '6438','state_id' => '167','name' => 'Leone'),\n \t array('id' => '6439','state_id' => '167','name' => 'Malaeimi'),\n \t array('id' => '6440','state_id' => '167','name' => 'Malaeloa-Aitulagi'),\n \t array('id' => '6441','state_id' => '167','name' => 'Malaeloa-Ituau'),\n \t array('id' => '6442','state_id' => '167','name' => 'Mapusagafou'),\n \t array('id' => '6443','state_id' => '167','name' => 'Mesepa'),\n \t array('id' => '6444','state_id' => '167','name' => 'Pava\\'ia\\'i'),\n \t array('id' => '6445','state_id' => '167','name' => 'Tafuna'),\n \t array('id' => '6446','state_id' => '167','name' => 'Taputimu'),\n \t array('id' => '6447','state_id' => '167','name' => 'Vailoatai'),\n \t array('id' => '6448','state_id' => '167','name' => 'Vaitogi'),\n \t array('id' => '6449','state_id' => '169','name' => 'Canillo'),\n \t array('id' => '6450','state_id' => '170','name' => 'Encamp'),\n \t array('id' => '6451','state_id' => '173','name' => 'Ordino'),\n \t array('id' => '6452','state_id' => '175','name' => 'Caxito'),\n \t array('id' => '6453','state_id' => '176','name' => 'Benguela'),\n \t array('id' => '6454','state_id' => '176','name' => 'Lobito'),\n \t array('id' => '6455','state_id' => '177','name' => 'Camacupa'),\n \t array('id' => '6456','state_id' => '177','name' => 'Catabola'),\n \t array('id' => '6457','state_id' => '177','name' => 'Catumbela'),\n \t array('id' => '6458','state_id' => '177','name' => 'Chissamba'),\n \t array('id' => '6459','state_id' => '177','name' => 'Kuito'),\n \t array('id' => '6460','state_id' => '178','name' => 'Cabinda'),\n \t array('id' => '6461','state_id' => '179','name' => 'Ondjiva'),\n \t array('id' => '6462','state_id' => '180','name' => 'Caala'),\n \t array('id' => '6463','state_id' => '180','name' => 'Catchiungo'),\n \t array('id' => '6464','state_id' => '180','name' => 'Huambo'),\n \t array('id' => '6465','state_id' => '180','name' => 'Longonjo'),\n \t array('id' => '6466','state_id' => '181','name' => 'Caconda'),\n \t array('id' => '6467','state_id' => '181','name' => 'Caluquembe'),\n \t array('id' => '6468','state_id' => '181','name' => 'Lubango'),\n \t array('id' => '6469','state_id' => '182','name' => 'Menongue'),\n \t array('id' => '6470','state_id' => '185','name' => 'Luanda'),\n \t array('id' => '6471','state_id' => '188','name' => 'Malanje'),\n \t array('id' => '6472','state_id' => '189','name' => 'Cazaje'),\n \t array('id' => '6473','state_id' => '189','name' => 'Leua'),\n \t array('id' => '6474','state_id' => '189','name' => 'Luau'),\n \t array('id' => '6475','state_id' => '189','name' => 'Luena'),\n \t array('id' => '6476','state_id' => '189','name' => 'Lumeje'),\n \t array('id' => '6477','state_id' => '190','name' => 'Namibe'),\n \t array('id' => '6478','state_id' => '191','name' => 'Camabatela'),\n \t array('id' => '6479','state_id' => '191','name' => 'Uige'),\n \t array('id' => '6480','state_id' => '192','name' => 'M\\'banza-Kongo'),\n \t array('id' => '6481','state_id' => '192','name' => 'N\\'zeto'),\n \t array('id' => '6482','state_id' => '192','name' => 'Soyo'),\n \t array('id' => '6483','state_id' => '201','name' => 'Codrington'),\n \t array('id' => '6484','state_id' => '209','name' => 'Catamarca'),\n \t array('id' => '6485','state_id' => '210','name' => 'Presidencia Roque Saenz Pena'),\n \t array('id' => '6486','state_id' => '210','name' => 'Resistencia'),\n \t array('id' => '6487','state_id' => '211','name' => 'Comodoro Rivadavia'),\n \t array('id' => '6488','state_id' => '211','name' => 'Puerto Madryn'),\n \t array('id' => '6489','state_id' => '211','name' => 'Rawson'),\n \t array('id' => '6490','state_id' => '211','name' => 'Trelew'),\n \t array('id' => '6491','state_id' => '212','name' => 'Alta Gracia'),\n \t array('id' => '6492','state_id' => '212','name' => 'Bell Ville'),\n \t array('id' => '6493','state_id' => '212','name' => 'Cordoba'),\n \t array('id' => '6494','state_id' => '212','name' => 'Rio Cuarto'),\n \t array('id' => '6495','state_id' => '212','name' => 'Rio Tercero'),\n \t array('id' => '6496','state_id' => '212','name' => 'San Francisco'),\n \t array('id' => '6497','state_id' => '212','name' => 'Villa Carlos Paz'),\n \t array('id' => '6498','state_id' => '212','name' => 'Villa Maria'),\n \t array('id' => '6499','state_id' => '213','name' => 'Corrientes'),\n \t array('id' => '6500','state_id' => '213','name' => 'Goya'),\n \t array('id' => '6501','state_id' => '213','name' => 'Mercedes'),\n \t array('id' => '6502','state_id' => '213','name' => 'San Lorenzo'),\n \t array('id' => '6503','state_id' => '216','name' => 'Formosa'),\n \t array('id' => '6504','state_id' => '217','name' => 'Jujuy'),\n \t array('id' => '6505','state_id' => '217','name' => 'Libertador General San Martin'),\n \t array('id' => '6506','state_id' => '217','name' => 'San Pedro'),\n \t array('id' => '6507','state_id' => '220','name' => 'Godoy Cruz'),\n \t array('id' => '6508','state_id' => '220','name' => 'Lujan'),\n \t array('id' => '6509','state_id' => '220','name' => 'Mendoza'),\n \t array('id' => '6510','state_id' => '220','name' => 'Rivadavia'),\n \t array('id' => '6511','state_id' => '220','name' => 'San Martin'),\n \t array('id' => '6512','state_id' => '220','name' => 'San Rafael'),\n \t array('id' => '6513','state_id' => '221','name' => 'Eldorado'),\n \t array('id' => '6514','state_id' => '221','name' => 'Obera'),\n \t array('id' => '6515','state_id' => '221','name' => 'Posadas'),\n \t array('id' => '6516','state_id' => '222','name' => 'Cutral Co'),\n \t array('id' => '6517','state_id' => '222','name' => 'Neuquen'),\n \t array('id' => '6518','state_id' => '224','name' => 'Salta'),\n \t array('id' => '6519','state_id' => '224','name' => 'San Ramon de la Nueva Oran'),\n \t array('id' => '6520','state_id' => '224','name' => 'Tartagal'),\n \t array('id' => '6521','state_id' => '231','name' => 'Tucuman'),\n \t array('id' => '6522','state_id' => '232','name' => 'Ashtarak'),\n \t array('id' => '6523','state_id' => '232','name' => 'Talin'),\n \t array('id' => '6524','state_id' => '233','name' => 'Ararat'),\n \t array('id' => '6525','state_id' => '233','name' => 'Artashat'),\n \t array('id' => '6526','state_id' => '234','name' => 'Armavir'),\n \t array('id' => '6527','state_id' => '234','name' => 'Vagharshapat'),\n \t array('id' => '6528','state_id' => '235','name' => 'Gavar'),\n \t array('id' => '6529','state_id' => '235','name' => 'Martuni'),\n \t array('id' => '6530','state_id' => '235','name' => 'Sevan'),\n \t array('id' => '6531','state_id' => '235','name' => 'Vardenis'),\n \t array('id' => '6532','state_id' => '236','name' => 'Abovyan'),\n \t array('id' => '6533','state_id' => '236','name' => 'Arzni'),\n \t array('id' => '6534','state_id' => '236','name' => 'Charentsavan'),\n \t array('id' => '6535','state_id' => '236','name' => 'Hrazdan'),\n \t array('id' => '6536','state_id' => '237','name' => 'Akhtala'),\n \t array('id' => '6537','state_id' => '237','name' => 'Alaverdi'),\n \t array('id' => '6538','state_id' => '237','name' => 'Spitak'),\n \t array('id' => '6539','state_id' => '237','name' => 'Stepanavan'),\n \t array('id' => '6540','state_id' => '237','name' => 'Tashir'),\n \t array('id' => '6541','state_id' => '237','name' => 'Vanadzor'),\n \t array('id' => '6542','state_id' => '238','name' => 'Artik'),\n \t array('id' => '6543','state_id' => '238','name' => 'Gyumri'),\n \t array('id' => '6544','state_id' => '239','name' => 'Stepanakert'),\n \t array('id' => '6545','state_id' => '240','name' => 'Angeghakot'),\n \t array('id' => '6546','state_id' => '240','name' => 'Goris'),\n \t array('id' => '6547','state_id' => '240','name' => 'Kajaran'),\n \t array('id' => '6548','state_id' => '240','name' => 'Kapan'),\n \t array('id' => '6549','state_id' => '240','name' => 'Meghri'),\n \t array('id' => '6550','state_id' => '240','name' => 'Sisian'),\n \t array('id' => '6551','state_id' => '241','name' => 'Dilijan'),\n \t array('id' => '6552','state_id' => '241','name' => 'Ijevan'),\n \t array('id' => '6553','state_id' => '243','name' => 'Yerevan'),\n \t array('id' => '6554','state_id' => '244','name' => 'Aruba'),\n \t array('id' => '6555','state_id' => '245','name' => 'Glenfield'),\n \t array('id' => '6556','state_id' => '245','name' => 'Henderson'),\n \t array('id' => '6557','state_id' => '245','name' => 'Milford'),\n \t array('id' => '6558','state_id' => '247','name' => 'Balgowlah'),\n \t array('id' => '6559','state_id' => '248','name' => 'Balmain'),\n \t array('id' => '6560','state_id' => '249','name' => 'Bankstown'),\n \t array('id' => '6561','state_id' => '252','name' => 'Camberwell'),\n \t array('id' => '6562','state_id' => '255','name' => 'Caulfield'),\n \t array('id' => '6563','state_id' => '256','name' => 'Chatswood'),\n \t array('id' => '6564','state_id' => '257','name' => 'Cheltenham'),\n \t array('id' => '6565','state_id' => '258','name' => 'Cherrybrook'),\n \t array('id' => '6566','state_id' => '259','name' => 'Clayton'),\n \t array('id' => '6567','state_id' => '260','name' => 'Collingwood'),\n \t array('id' => '6568','state_id' => '262','name' => 'Hawthorn'),\n \t array('id' => '6569','state_id' => '263','name' => 'Jannnali'),\n \t array('id' => '6570','state_id' => '264','name' => 'Knoxfield'),\n \t array('id' => '6571','state_id' => '265','name' => 'Melbourne'),\n \t array('id' => '6572','state_id' => '265','name' => 'South Oakleigh'),\n \t array('id' => '6573','state_id' => '268','name' => 'Cottesole'),\n \t array('id' => '6574','state_id' => '268','name' => 'Darch'),\n \t array('id' => '6575','state_id' => '268','name' => 'Mullaloo'),\n \t array('id' => '6576','state_id' => '268','name' => 'Noranda'),\n \t array('id' => '6577','state_id' => '268','name' => 'Osborne Park'),\n \t array('id' => '6578','state_id' => '268','name' => 'Willetton'),\n \t array('id' => '6579','state_id' => '269','name' => 'Acacia Ridge'),\n \t array('id' => '6580','state_id' => '269','name' => 'Aitkenvale'),\n \t array('id' => '6581','state_id' => '269','name' => 'Alderley'),\n \t array('id' => '6582','state_id' => '269','name' => 'Alexander Hills'),\n \t array('id' => '6583','state_id' => '269','name' => 'Archerfield'),\n \t array('id' => '6584','state_id' => '269','name' => 'Ashmore'),\n \t array('id' => '6585','state_id' => '269','name' => 'Atherton'),\n \t array('id' => '6586','state_id' => '269','name' => 'Ayr'),\n \t array('id' => '6587','state_id' => '269','name' => 'Beachmere'),\n \t array('id' => '6588','state_id' => '269','name' => 'Beenleigh'),\n \t array('id' => '6589','state_id' => '269','name' => 'Beerwah'),\n \t array('id' => '6590','state_id' => '269','name' => 'Bell'),\n \t array('id' => '6591','state_id' => '269','name' => 'Belmont'),\n \t array('id' => '6592','state_id' => '269','name' => 'Biloela'),\n \t array('id' => '6593','state_id' => '269','name' => 'Birkdale'),\n \t array('id' => '6594','state_id' => '269','name' => 'Blackwater'),\n \t array('id' => '6595','state_id' => '269','name' => 'Bongaree'),\n \t array('id' => '6596','state_id' => '269','name' => 'Bonogin'),\n \t array('id' => '6597','state_id' => '269','name' => 'Boonah'),\n \t array('id' => '6598','state_id' => '269','name' => 'Bowen'),\n \t array('id' => '6599','state_id' => '269','name' => 'Brendale'),\n \t array('id' => '6600','state_id' => '269','name' => 'Brisbane'),\n \t array('id' => '6601','state_id' => '269','name' => 'Buddina'),\n \t array('id' => '6602','state_id' => '269','name' => 'Buderim'),\n \t array('id' => '6603','state_id' => '269','name' => 'Bundaberg'),\n \t array('id' => '6604','state_id' => '269','name' => 'Bundall'),\n \t array('id' => '6605','state_id' => '269','name' => 'Burleigh Heads'),\n \t array('id' => '6606','state_id' => '269','name' => 'Burpengary'),\n \t array('id' => '6607','state_id' => '269','name' => 'Cabaland'),\n \t array('id' => '6608','state_id' => '269','name' => 'Caboolture'),\n \t array('id' => '6609','state_id' => '269','name' => 'Cairns'),\n \t array('id' => '6610','state_id' => '269','name' => 'Cairns Northern Beaches'),\n \t array('id' => '6611','state_id' => '269','name' => 'Caloundra'),\n \t array('id' => '6612','state_id' => '269','name' => 'Capalaba'),\n \t array('id' => '6613','state_id' => '269','name' => 'Charters Towers'),\n \t array('id' => '6614','state_id' => '269','name' => 'Childers'),\n \t array('id' => '6615','state_id' => '269','name' => 'Cleveland'),\n \t array('id' => '6616','state_id' => '269','name' => 'Coolum Beach'),\n \t array('id' => '6617','state_id' => '269','name' => 'Coopers Plain'),\n \t array('id' => '6618','state_id' => '269','name' => 'Dalby'),\n \t array('id' => '6619','state_id' => '269','name' => 'Deception Bay'),\n \t array('id' => '6620','state_id' => '269','name' => 'Eagle Farm'),\n \t array('id' => '6621','state_id' => '269','name' => 'Eagleby'),\n \t array('id' => '6622','state_id' => '269','name' => 'Emerald'),\n \t array('id' => '6623','state_id' => '269','name' => 'Emundi'),\n \t array('id' => '6624','state_id' => '269','name' => 'Forest Lake'),\n \t array('id' => '6625','state_id' => '269','name' => 'Gatton'),\n \t array('id' => '6626','state_id' => '269','name' => 'Gladstone'),\n \t array('id' => '6627','state_id' => '269','name' => 'Gold Coast'),\n \t array('id' => '6628','state_id' => '269','name' => 'Gowrie Junction'),\n \t array('id' => '6629','state_id' => '269','name' => 'Gympie'),\n \t array('id' => '6630','state_id' => '269','name' => 'Helensvale'),\n \t array('id' => '6631','state_id' => '269','name' => 'Hervey Bay'),\n \t array('id' => '6632','state_id' => '269','name' => 'Ingham'),\n \t array('id' => '6633','state_id' => '269','name' => 'Innisfail'),\n \t array('id' => '6634','state_id' => '269','name' => 'Ipswich'),\n \t array('id' => '6635','state_id' => '269','name' => 'Jindalee'),\n \t array('id' => '6636','state_id' => '269','name' => 'Julatten'),\n \t array('id' => '6637','state_id' => '269','name' => 'Kawana Waters'),\n \t array('id' => '6638','state_id' => '269','name' => 'Kingaroy'),\n \t array('id' => '6639','state_id' => '269','name' => 'Lawnton'),\n \t array('id' => '6640','state_id' => '269','name' => 'Loganholme'),\n \t array('id' => '6641','state_id' => '269','name' => 'Mackay'),\n \t array('id' => '6642','state_id' => '269','name' => 'Mareeba'),\n \t array('id' => '6643','state_id' => '269','name' => 'Maroochydore'),\n \t array('id' => '6644','state_id' => '269','name' => 'Maroochydore-Mooloolaba'),\n \t array('id' => '6645','state_id' => '269','name' => 'Maryborough'),\n \t array('id' => '6646','state_id' => '269','name' => 'Miami'),\n \t array('id' => '6647','state_id' => '269','name' => 'Milton'),\n \t array('id' => '6648','state_id' => '269','name' => 'Molendinar'),\n \t array('id' => '6649','state_id' => '269','name' => 'Moranbah'),\n \t array('id' => '6650','state_id' => '269','name' => 'Morayfield'),\n \t array('id' => '6651','state_id' => '269','name' => 'Mossman'),\n \t array('id' => '6652','state_id' => '269','name' => 'Mount Glorious'),\n \t array('id' => '6653','state_id' => '269','name' => 'Mount Isa'),\n \t array('id' => '6654','state_id' => '269','name' => 'Murarrie'),\n \t array('id' => '6655','state_id' => '269','name' => 'Nairand Kay'),\n \t array('id' => '6656','state_id' => '269','name' => 'Nambour'),\n \t array('id' => '6657','state_id' => '269','name' => 'Nerang'),\n \t array('id' => '6658','state_id' => '269','name' => 'Nobby Beach'),\n \t array('id' => '6659','state_id' => '269','name' => 'Noosa Heads'),\n \t array('id' => '6660','state_id' => '269','name' => 'Noosaville'),\n \t array('id' => '6661','state_id' => '269','name' => 'Paddington'),\n \t array('id' => '6662','state_id' => '269','name' => 'Port Douglas'),\n \t array('id' => '6663','state_id' => '269','name' => 'Robina'),\n \t array('id' => '6664','state_id' => '269','name' => 'Rockhampton'),\n \t array('id' => '6665','state_id' => '269','name' => 'Rocklea'),\n \t array('id' => '6666','state_id' => '269','name' => 'Roma'),\n \t array('id' => '6667','state_id' => '269','name' => 'Rubyvale'),\n \t array('id' => '6668','state_id' => '269','name' => 'Sanctuary Cove'),\n \t array('id' => '6669','state_id' => '269','name' => 'Slade Point'),\n \t array('id' => '6670','state_id' => '269','name' => 'Southport'),\n \t array('id' => '6671','state_id' => '269','name' => 'Suburb'),\n \t array('id' => '6672','state_id' => '269','name' => 'Sunshine Coast'),\n \t array('id' => '6673','state_id' => '269','name' => 'Tewantin-Noosa'),\n \t array('id' => '6674','state_id' => '269','name' => 'The Summit'),\n \t array('id' => '6675','state_id' => '269','name' => 'Toowong'),\n \t array('id' => '6676','state_id' => '269','name' => 'Toowoomba'),\n \t array('id' => '6677','state_id' => '269','name' => 'Townsville'),\n \t array('id' => '6678','state_id' => '269','name' => 'Victoria Point'),\n \t array('id' => '6679','state_id' => '269','name' => 'Warwick'),\n \t array('id' => '6680','state_id' => '269','name' => 'Willawong'),\n \t array('id' => '6681','state_id' => '269','name' => 'Yatala'),\n \t array('id' => '6682','state_id' => '269','name' => 'Yeppoon'),\n \t array('id' => '6683','state_id' => '269','name' => 'Zillmere'),\n \t array('id' => '6684','state_id' => '271','name' => 'Bridgewater-Gagebrook'),\n \t array('id' => '6685','state_id' => '271','name' => 'Burnie'),\n \t array('id' => '6686','state_id' => '271','name' => 'Burnie-Devonport'),\n \t array('id' => '6687','state_id' => '271','name' => 'Glenorchy'),\n \t array('id' => '6688','state_id' => '271','name' => 'Hobart'),\n \t array('id' => '6689','state_id' => '271','name' => 'Kingston-Blackmans Bay'),\n \t array('id' => '6690','state_id' => '271','name' => 'Launceston'),\n \t array('id' => '6691','state_id' => '271','name' => 'New Norfolk'),\n \t array('id' => '6692','state_id' => '271','name' => 'Rowella'),\n \t array('id' => '6693','state_id' => '271','name' => 'Sheffield'),\n \t array('id' => '6694','state_id' => '271','name' => 'Ulverstone'),\n \t array('id' => '6695','state_id' => '272','name' => 'Templestowe'),\n \t array('id' => '6696','state_id' => '273','name' => 'Albion'),\n \t array('id' => '6697','state_id' => '273','name' => 'Ararat'),\n \t array('id' => '6698','state_id' => '273','name' => 'Avenel'),\n \t array('id' => '6699','state_id' => '273','name' => 'Avondale Heights'),\n \t array('id' => '6700','state_id' => '273','name' => 'Baccus Marsh'),\n \t array('id' => '6701','state_id' => '273','name' => 'Bairnsdale'),\n \t array('id' => '6702','state_id' => '273','name' => 'Ballarat'),\n \t array('id' => '6703','state_id' => '273','name' => 'Balwyn'),\n \t array('id' => '6704','state_id' => '273','name' => 'Batman'),\n \t array('id' => '6705','state_id' => '273','name' => 'Bayswater'),\n \t array('id' => '6706','state_id' => '273','name' => 'Belmont'),\n \t array('id' => '6707','state_id' => '273','name' => 'Benalla'),\n \t array('id' => '6708','state_id' => '273','name' => 'Bendigo'),\n \t array('id' => '6709','state_id' => '273','name' => 'Bentleigh East'),\n \t array('id' => '6710','state_id' => '273','name' => 'Berwick'),\n \t array('id' => '6711','state_id' => '273','name' => 'Blackburn'),\n \t array('id' => '6712','state_id' => '273','name' => 'Blue Mountains'),\n \t array('id' => '6713','state_id' => '273','name' => 'Boonah'),\n \t array('id' => '6714','state_id' => '273','name' => 'Boronia'),\n \t array('id' => '6715','state_id' => '273','name' => 'Box Hill'),\n \t array('id' => '6716','state_id' => '273','name' => 'Brighton East'),\n \t array('id' => '6717','state_id' => '273','name' => 'Bundoora'),\n \t array('id' => '6718','state_id' => '273','name' => 'Campbellfield'),\n \t array('id' => '6719','state_id' => '273','name' => 'Carlton South'),\n \t array('id' => '6720','state_id' => '273','name' => 'Caroline Springs'),\n \t array('id' => '6721','state_id' => '273','name' => 'Castle Hill'),\n \t array('id' => '6722','state_id' => '273','name' => 'Castlemaine'),\n \t array('id' => '6723','state_id' => '273','name' => 'Caulfield'),\n \t array('id' => '6724','state_id' => '273','name' => 'Cheltenham'),\n \t array('id' => '6725','state_id' => '273','name' => 'Chester'),\n \t array('id' => '6726','state_id' => '273','name' => 'Clayton South'),\n \t array('id' => '6727','state_id' => '273','name' => 'Clifton Springs'),\n \t array('id' => '6728','state_id' => '273','name' => 'Coburg'),\n \t array('id' => '6729','state_id' => '273','name' => 'Colac'),\n \t array('id' => '6730','state_id' => '273','name' => 'Collingwood'),\n \t array('id' => '6731','state_id' => '273','name' => 'Craigieburn'),\n \t array('id' => '6732','state_id' => '273','name' => 'Cranbourne'),\n \t array('id' => '6733','state_id' => '273','name' => 'Crib Point'),\n \t array('id' => '6734','state_id' => '273','name' => 'Dandenong'),\n \t array('id' => '6735','state_id' => '273','name' => 'Devon Meadows'),\n \t array('id' => '6736','state_id' => '273','name' => 'Diamond Creek'),\n \t array('id' => '6737','state_id' => '273','name' => 'Doncaster East'),\n \t array('id' => '6738','state_id' => '273','name' => 'Doncester'),\n \t array('id' => '6739','state_id' => '273','name' => 'Donvale'),\n \t array('id' => '6740','state_id' => '273','name' => 'Echuca-Moama'),\n \t array('id' => '6741','state_id' => '273','name' => 'Elsternwick'),\n \t array('id' => '6742','state_id' => '273','name' => 'Eltham'),\n \t array('id' => '6743','state_id' => '273','name' => 'Fairfield'),\n \t array('id' => '6744','state_id' => '273','name' => 'Fitzroy'),\n \t array('id' => '6745','state_id' => '273','name' => 'Frnakston'),\n \t array('id' => '6746','state_id' => '273','name' => 'Geelong'),\n \t array('id' => '6747','state_id' => '273','name' => 'Glen Waverley'),\n \t array('id' => '6748','state_id' => '273','name' => 'Glenorchy'),\n \t array('id' => '6749','state_id' => '273','name' => 'Hallam'),\n \t array('id' => '6750','state_id' => '273','name' => 'Hamilton'),\n \t array('id' => '6751','state_id' => '273','name' => 'Hastings'),\n \t array('id' => '6752','state_id' => '273','name' => 'Healesville'),\n \t array('id' => '6753','state_id' => '273','name' => 'Horsham'),\n \t array('id' => '6754','state_id' => '273','name' => 'Hughesdale'),\n \t array('id' => '6755','state_id' => '273','name' => 'Ivanhoe'),\n \t array('id' => '6756','state_id' => '273','name' => 'Keilor'),\n \t array('id' => '6757','state_id' => '273','name' => 'Kensington'),\n \t array('id' => '6758','state_id' => '273','name' => 'Kerang'),\n \t array('id' => '6759','state_id' => '273','name' => 'Kilmore'),\n \t array('id' => '6760','state_id' => '273','name' => 'Kilsyth'),\n \t array('id' => '6761','state_id' => '273','name' => 'Kyabram'),\n \t array('id' => '6762','state_id' => '273','name' => 'Lakes Entrance'),\n \t array('id' => '6763','state_id' => '273','name' => 'Lalor'),\n \t array('id' => '6764','state_id' => '273','name' => 'Lara'),\n \t array('id' => '6765','state_id' => '273','name' => 'Laverton North'),\n \t array('id' => '6766','state_id' => '273','name' => 'Leopold'),\n \t array('id' => '6767','state_id' => '273','name' => 'Lower Templestowe'),\n \t array('id' => '6768','state_id' => '273','name' => 'Maidstone'),\n \t array('id' => '6769','state_id' => '273','name' => 'Malvern'),\n \t array('id' => '6770','state_id' => '273','name' => 'Maryborough'),\n \t array('id' => '6771','state_id' => '273','name' => 'Melbourne'),\n \t array('id' => '6772','state_id' => '273','name' => 'Melton'),\n \t array('id' => '6773','state_id' => '273','name' => 'Middle Park'),\n \t array('id' => '6774','state_id' => '273','name' => 'Mildura'),\n \t array('id' => '6775','state_id' => '273','name' => 'Mitcham'),\n \t array('id' => '6776','state_id' => '273','name' => 'Moe-Yallourn'),\n \t array('id' => '6777','state_id' => '273','name' => 'Moorabbin'),\n \t array('id' => '6778','state_id' => '273','name' => 'Mordialloc'),\n \t array('id' => '6779','state_id' => '273','name' => 'Morwell'),\n \t array('id' => '6780','state_id' => '273','name' => 'Mulgrave'),\n \t array('id' => '6781','state_id' => '273','name' => 'Murrumbeena'),\n \t array('id' => '6782','state_id' => '273','name' => 'Neerim South'),\n \t array('id' => '6783','state_id' => '273','name' => 'Noble Park North'),\n \t array('id' => '6784','state_id' => '273','name' => 'Notting Hill'),\n \t array('id' => '6785','state_id' => '273','name' => 'Oak Park'),\n \t array('id' => '6786','state_id' => '273','name' => 'Ocean Grove-Barwon Heads'),\n \t array('id' => '6787','state_id' => '273','name' => 'Olinda'),\n \t array('id' => '6788','state_id' => '273','name' => 'Pakenham'),\n \t array('id' => '6789','state_id' => '273','name' => 'Park Orchards'),\n \t array('id' => '6790','state_id' => '273','name' => 'Port Melbourne'),\n \t array('id' => '6791','state_id' => '273','name' => 'Portland'),\n \t array('id' => '6792','state_id' => '273','name' => 'Prahran'),\n \t array('id' => '6793','state_id' => '273','name' => 'Preston'),\n \t array('id' => '6794','state_id' => '273','name' => 'Pritbourne'),\n \t array('id' => '6795','state_id' => '273','name' => 'Queenscliff'),\n \t array('id' => '6796','state_id' => '273','name' => 'Reservoir'),\n \t array('id' => '6797','state_id' => '273','name' => 'Ringwood'),\n \t array('id' => '6798','state_id' => '273','name' => 'Rowville'),\n \t array('id' => '6799','state_id' => '273','name' => 'Sale'),\n \t array('id' => '6800','state_id' => '273','name' => 'Sandringham'),\n \t array('id' => '6801','state_id' => '273','name' => 'Scoresby'),\n \t array('id' => '6802','state_id' => '273','name' => 'Sebastopol'),\n \t array('id' => '6803','state_id' => '273','name' => 'Seymour'),\n \t array('id' => '6804','state_id' => '273','name' => 'Shepparton-Mooroopna'),\n \t array('id' => '6805','state_id' => '273','name' => 'Somerville'),\n \t array('id' => '6806','state_id' => '273','name' => 'South Yarra'),\n \t array('id' => '6807','state_id' => '273','name' => 'Southbank'),\n \t array('id' => '6808','state_id' => '273','name' => 'St. Albans'),\n \t array('id' => '6809','state_id' => '273','name' => 'St. Kilda East'),\n \t array('id' => '6810','state_id' => '273','name' => 'Stawell'),\n \t array('id' => '6811','state_id' => '273','name' => 'Sunbury'),\n \t array('id' => '6812','state_id' => '273','name' => 'Sunshine West'),\n \t array('id' => '6813','state_id' => '273','name' => 'Swan Hill'),\n \t array('id' => '6814','state_id' => '273','name' => 'Tatura'),\n \t array('id' => '6815','state_id' => '273','name' => 'Thomastown'),\n \t array('id' => '6816','state_id' => '273','name' => 'Thornbury'),\n \t array('id' => '6817','state_id' => '273','name' => 'Tongala'),\n \t array('id' => '6818','state_id' => '273','name' => 'Torquay'),\n \t array('id' => '6819','state_id' => '273','name' => 'Traralgon'),\n \t array('id' => '6820','state_id' => '273','name' => 'Tullamarine'),\n \t array('id' => '6821','state_id' => '273','name' => 'Vermont'),\n \t array('id' => '6822','state_id' => '273','name' => 'Wangaratta'),\n \t array('id' => '6823','state_id' => '273','name' => 'Wantirna'),\n \t array('id' => '6824','state_id' => '273','name' => 'Warragul'),\n \t array('id' => '6825','state_id' => '273','name' => 'Warrnambool'),\n \t array('id' => '6826','state_id' => '273','name' => 'Welshpool'),\n \t array('id' => '6827','state_id' => '273','name' => 'Wendouree'),\n \t array('id' => '6828','state_id' => '273','name' => 'Wonthaggi'),\n \t array('id' => '6829','state_id' => '273','name' => 'Woodend'),\n \t array('id' => '6830','state_id' => '273','name' => 'Yarrawonga-Mulwala'),\n \t array('id' => '6831','state_id' => '273','name' => 'Yea'),\n \t array('id' => '6832','state_id' => '276','name' => 'Wheeler'),\n \t array('id' => '6833','state_id' => '280','name' => 'Eisenstadt'),\n \t array('id' => '6834','state_id' => '280','name' => 'GroBpetersdorf'),\n \t array('id' => '6835','state_id' => '280','name' => 'Jennersdorf'),\n \t array('id' => '6836','state_id' => '280','name' => 'Kemeten'),\n \t array('id' => '6837','state_id' => '280','name' => 'Mattersburg'),\n \t array('id' => '6838','state_id' => '280','name' => 'Neudorfl'),\n \t array('id' => '6839','state_id' => '280','name' => 'Neusiedl am See'),\n \t array('id' => '6840','state_id' => '280','name' => 'Oberwart'),\n \t array('id' => '6841','state_id' => '280','name' => 'Pinkafeld'),\n \t array('id' => '6842','state_id' => '280','name' => 'Rust'),\n \t array('id' => '6843','state_id' => '281','name' => 'Maria Rain'),\n \t array('id' => '6844','state_id' => '281','name' => 'Poggersdorf'),\n \t array('id' => '6845','state_id' => '282','name' => 'Althofen'),\n \t array('id' => '6846','state_id' => '282','name' => 'Arnoldstein'),\n \t array('id' => '6847','state_id' => '282','name' => 'Bad Sankt Leonhard'),\n \t array('id' => '6848','state_id' => '282','name' => 'Bleiburg'),\n \t array('id' => '6849','state_id' => '282','name' => 'Ebenthal'),\n \t array('id' => '6850','state_id' => '282','name' => 'Eberndorf'),\n \t array('id' => '6851','state_id' => '282','name' => 'Feldkirchen'),\n \t array('id' => '6852','state_id' => '282','name' => 'Ferlach'),\n \t array('id' => '6853','state_id' => '282','name' => 'Finkenstein'),\n \t array('id' => '6854','state_id' => '282','name' => 'Friesach'),\n \t array('id' => '6855','state_id' => '282','name' => 'Hermagor'),\n \t array('id' => '6856','state_id' => '282','name' => 'Klagenfurt'),\n \t array('id' => '6857','state_id' => '282','name' => 'Klagenfurt '),\n \t array('id' => '6858','state_id' => '282','name' => 'Lohnsburg'),\n \t array('id' => '6859','state_id' => '282','name' => 'Moosburg'),\n \t array('id' => '6860','state_id' => '282','name' => 'Paternion'),\n \t array('id' => '6861','state_id' => '282','name' => 'Radentheim'),\n \t array('id' => '6862','state_id' => '282','name' => 'Sankt Andra'),\n \t array('id' => '6863','state_id' => '282','name' => 'Sankt Jakob'),\n \t array('id' => '6864','state_id' => '282','name' => 'Sankt Veit'),\n \t array('id' => '6865','state_id' => '282','name' => 'Seeboden'),\n \t array('id' => '6866','state_id' => '282','name' => 'Spittal'),\n \t array('id' => '6867','state_id' => '282','name' => 'Velden am Worthersee'),\n \t array('id' => '6868','state_id' => '282','name' => 'Villach'),\n \t array('id' => '6869','state_id' => '282','name' => 'Volkermarkt'),\n \t array('id' => '6870','state_id' => '282','name' => 'Wernberg'),\n \t array('id' => '6871','state_id' => '282','name' => 'Wolfsberg'),\n \t array('id' => '6872','state_id' => '285','name' => 'Amstetten'),\n \t array('id' => '6873','state_id' => '285','name' => 'Bad Voslau'),\n \t array('id' => '6874','state_id' => '285','name' => 'Baden'),\n \t array('id' => '6875','state_id' => '285','name' => 'Berndorf'),\n \t array('id' => '6876','state_id' => '285','name' => 'Boheimkirchen'),\n \t array('id' => '6877','state_id' => '285','name' => 'Bruck an der Leitha'),\n \t array('id' => '6878','state_id' => '285','name' => 'Brunn'),\n \t array('id' => '6879','state_id' => '285','name' => 'Deutsch-Wagram'),\n \t array('id' => '6880','state_id' => '285','name' => 'Ebreichsdorf'),\n \t array('id' => '6881','state_id' => '285','name' => 'Eggendorf'),\n \t array('id' => '6882','state_id' => '285','name' => 'Fischamend'),\n \t array('id' => '6883','state_id' => '285','name' => 'Gablitz'),\n \t array('id' => '6884','state_id' => '285','name' => 'Ganserndorf'),\n \t array('id' => '6885','state_id' => '285','name' => 'Gerasdorf'),\n \t array('id' => '6886','state_id' => '285','name' => 'Gloggnitz'),\n \t array('id' => '6887','state_id' => '285','name' => 'Gmund'),\n \t array('id' => '6888','state_id' => '285','name' => 'Greifenstein'),\n \t array('id' => '6889','state_id' => '285','name' => 'GroB-Enzersdorf'),\n \t array('id' => '6890','state_id' => '285','name' => 'GroB-Gerungs'),\n \t array('id' => '6891','state_id' => '285','name' => 'Guntramsdorf'),\n \t array('id' => '6892','state_id' => '285','name' => 'Haag'),\n \t array('id' => '6893','state_id' => '285','name' => 'Hainburg'),\n \t array('id' => '6894','state_id' => '285','name' => 'Heidenreichstein'),\n \t array('id' => '6895','state_id' => '285','name' => 'Herzogenburg'),\n \t array('id' => '6896','state_id' => '285','name' => 'Himberg'),\n \t array('id' => '6897','state_id' => '285','name' => 'Hollabrunn'),\n \t array('id' => '6898','state_id' => '285','name' => 'Horn'),\n \t array('id' => '6899','state_id' => '285','name' => 'Klosterneuburg'),\n \t array('id' => '6900','state_id' => '285','name' => 'Korneuburg'),\n \t array('id' => '6901','state_id' => '285','name' => 'Kottingbrunn'),\n \t array('id' => '6902','state_id' => '285','name' => 'Krems'),\n \t array('id' => '6903','state_id' => '285','name' => 'Laa'),\n \t array('id' => '6904','state_id' => '285','name' => 'Langenlois'),\n \t array('id' => '6905','state_id' => '285','name' => 'Langenzersdorf'),\n \t array('id' => '6906','state_id' => '285','name' => 'Leobendorf'),\n \t array('id' => '6907','state_id' => '285','name' => 'Leopoldsdorf'),\n \t array('id' => '6908','state_id' => '285','name' => 'Lilienfeld'),\n \t array('id' => '6909','state_id' => '285','name' => 'Loipersdorf'),\n \t array('id' => '6910','state_id' => '285','name' => 'Maria Enzersdorf'),\n \t array('id' => '6911','state_id' => '285','name' => 'Melk'),\n \t array('id' => '6912','state_id' => '285','name' => 'Mistelbach'),\n \t array('id' => '6913','state_id' => '285','name' => 'Modling'),\n \t array('id' => '6914','state_id' => '285','name' => 'Neulengbach'),\n \t array('id' => '6915','state_id' => '285','name' => 'Neunkirchen'),\n \t array('id' => '6916','state_id' => '285','name' => 'Niederleis'),\n \t array('id' => '6917','state_id' => '285','name' => 'Ober-Grabendorf'),\n \t array('id' => '6918','state_id' => '285','name' => 'Perchtoldsdorf'),\n \t array('id' => '6919','state_id' => '285','name' => 'Pernitz'),\n \t array('id' => '6920','state_id' => '285','name' => 'Pottendorf'),\n \t array('id' => '6921','state_id' => '285','name' => 'Poysdorf'),\n \t array('id' => '6922','state_id' => '285','name' => 'Pressbaum'),\n \t array('id' => '6923','state_id' => '285','name' => 'Purgstall'),\n \t array('id' => '6924','state_id' => '285','name' => 'Purkersdorf'),\n \t array('id' => '6925','state_id' => '285','name' => 'Reichenau'),\n \t array('id' => '6926','state_id' => '285','name' => 'Retz'),\n \t array('id' => '6927','state_id' => '285','name' => 'Sankt Andra-Wordern'),\n \t array('id' => '6928','state_id' => '285','name' => 'Sankt Peter in der Au'),\n \t array('id' => '6929','state_id' => '285','name' => 'Sankt Polten'),\n \t array('id' => '6930','state_id' => '285','name' => 'Sankt Valentin'),\n \t array('id' => '6931','state_id' => '285','name' => 'Scheibbs'),\n \t array('id' => '6932','state_id' => '285','name' => 'Schrems'),\n \t array('id' => '6933','state_id' => '285','name' => 'Schwechat'),\n \t array('id' => '6934','state_id' => '285','name' => 'Seitenstetten'),\n \t array('id' => '6935','state_id' => '285','name' => 'Sollenau'),\n \t array('id' => '6936','state_id' => '285','name' => 'Stockerau'),\n \t array('id' => '6937','state_id' => '285','name' => 'Strasshof'),\n \t array('id' => '6938','state_id' => '285','name' => 'Ternitz'),\n \t array('id' => '6939','state_id' => '285','name' => 'Traiskirchen'),\n \t array('id' => '6940','state_id' => '285','name' => 'Traismauer'),\n \t array('id' => '6941','state_id' => '285','name' => 'Tulln'),\n \t array('id' => '6942','state_id' => '285','name' => 'Vosendorf'),\n \t array('id' => '6943','state_id' => '285','name' => 'Waidhofen'),\n \t array('id' => '6944','state_id' => '285','name' => 'Wiener Neudorf'),\n \t array('id' => '6945','state_id' => '285','name' => 'Wiener Neustadt'),\n \t array('id' => '6946','state_id' => '285','name' => 'Wieselburg'),\n \t array('id' => '6947','state_id' => '285','name' => 'Wilhelmsburg'),\n \t array('id' => '6948','state_id' => '285','name' => 'Wolkersdorf'),\n \t array('id' => '6949','state_id' => '285','name' => 'Ybbs'),\n \t array('id' => '6950','state_id' => '285','name' => 'Ybbsitz'),\n \t array('id' => '6951','state_id' => '285','name' => 'Zistersdorf'),\n \t array('id' => '6952','state_id' => '285','name' => 'Zwettl'),\n \t array('id' => '6953','state_id' => '286','name' => 'Alkoven'),\n \t array('id' => '6954','state_id' => '286','name' => 'Altheim'),\n \t array('id' => '6955','state_id' => '286','name' => 'Altmunster'),\n \t array('id' => '6956','state_id' => '286','name' => 'Andorf'),\n \t array('id' => '6957','state_id' => '286','name' => 'Ansfelden'),\n \t array('id' => '6958','state_id' => '286','name' => 'Asten'),\n \t array('id' => '6959','state_id' => '286','name' => 'Attnang-Puchheim'),\n \t array('id' => '6960','state_id' => '286','name' => 'Aurolzmunster'),\n \t array('id' => '6961','state_id' => '286','name' => 'Bad Goisern'),\n \t array('id' => '6962','state_id' => '286','name' => 'Bad Hall'),\n \t array('id' => '6963','state_id' => '286','name' => 'Bad Ischl'),\n \t array('id' => '6964','state_id' => '286','name' => 'Braunau'),\n \t array('id' => '6965','state_id' => '286','name' => 'Breitenfurt'),\n \t array('id' => '6966','state_id' => '286','name' => 'Ebensee'),\n \t array('id' => '6967','state_id' => '286','name' => 'Eferding'),\n \t array('id' => '6968','state_id' => '286','name' => 'Engerwitzdorf'),\n \t array('id' => '6969','state_id' => '286','name' => 'Enns'),\n \t array('id' => '6970','state_id' => '286','name' => 'Feldkirchen an der Donau'),\n \t array('id' => '6971','state_id' => '286','name' => 'Frankenburg'),\n \t array('id' => '6972','state_id' => '286','name' => 'Freistadt'),\n \t array('id' => '6973','state_id' => '286','name' => 'Gallneukirchen'),\n \t array('id' => '6974','state_id' => '286','name' => 'Garsten'),\n \t array('id' => '6975','state_id' => '286','name' => 'Gmunden'),\n \t array('id' => '6976','state_id' => '286','name' => 'Gramastetten'),\n \t array('id' => '6977','state_id' => '286','name' => 'Grieskirchen'),\n \t array('id' => '6978','state_id' => '286','name' => 'Gunskirchen'),\n \t array('id' => '6979','state_id' => '286','name' => 'Horsching'),\n \t array('id' => '6980','state_id' => '286','name' => 'Kirchdorf an der Krems'),\n \t array('id' => '6981','state_id' => '286','name' => 'Kremsmunster'),\n \t array('id' => '6982','state_id' => '286','name' => 'Krenglbach'),\n \t array('id' => '6983','state_id' => '286','name' => 'Laakirchen'),\n \t array('id' => '6984','state_id' => '286','name' => 'Lenzing'),\n \t array('id' => '6985','state_id' => '286','name' => 'Leonding'),\n \t array('id' => '6986','state_id' => '286','name' => 'Linz'),\n \t array('id' => '6987','state_id' => '286','name' => 'Loibichl'),\n \t array('id' => '6988','state_id' => '286','name' => 'Marchtrenk'),\n \t array('id' => '6989','state_id' => '286','name' => 'Mattighofen'),\n \t array('id' => '6990','state_id' => '286','name' => 'Mauthausen'),\n \t array('id' => '6991','state_id' => '286','name' => 'Micheldorf'),\n \t array('id' => '6992','state_id' => '286','name' => 'Neuhofen an der Krems'),\n \t array('id' => '6993','state_id' => '286','name' => 'Ohlsdorf'),\n \t array('id' => '6994','state_id' => '286','name' => 'Ottensheim'),\n \t array('id' => '6995','state_id' => '286','name' => 'Pasching'),\n \t array('id' => '6996','state_id' => '286','name' => 'Perg'),\n \t array('id' => '6997','state_id' => '286','name' => 'Pettenbach'),\n \t array('id' => '6998','state_id' => '286','name' => 'Pram'),\n \t array('id' => '6999','state_id' => '286','name' => 'Pregarten'),\n \t array('id' => '7000','state_id' => '286','name' => 'Puchenau'),\n \t array('id' => '7001','state_id' => '286','name' => 'Regau'),\n \t array('id' => '7002','state_id' => '286','name' => 'Ried'),\n \t array('id' => '7003','state_id' => '286','name' => 'Rohrbach in Oberosterreich'),\n \t array('id' => '7004','state_id' => '286','name' => 'Rutzenmoos'),\n \t array('id' => '7005','state_id' => '286','name' => 'Sankt Florian'),\n \t array('id' => '7006','state_id' => '286','name' => 'Sankt Georgen'),\n \t array('id' => '7007','state_id' => '286','name' => 'Sankt Marien'),\n \t array('id' => '7008','state_id' => '286','name' => 'Scharding'),\n \t array('id' => '7009','state_id' => '286','name' => 'Scharnstein'),\n \t array('id' => '7010','state_id' => '286','name' => 'Schwertberg'),\n \t array('id' => '7011','state_id' => '286','name' => 'Seewalchen'),\n \t array('id' => '7012','state_id' => '286','name' => 'Sierning'),\n \t array('id' => '7013','state_id' => '286','name' => 'Stadl-Paura'),\n \t array('id' => '7014','state_id' => '286','name' => 'Steyr'),\n \t array('id' => '7015','state_id' => '286','name' => 'Steyregg'),\n \t array('id' => '7016','state_id' => '286','name' => 'Steyrermuhl'),\n \t array('id' => '7017','state_id' => '286','name' => 'Thalheim'),\n \t array('id' => '7018','state_id' => '286','name' => 'Timelkam'),\n \t array('id' => '7019','state_id' => '286','name' => 'Traun'),\n \t array('id' => '7020','state_id' => '286','name' => 'Vocklabruck'),\n \t array('id' => '7021','state_id' => '286','name' => 'Vocklamarkt'),\n \t array('id' => '7022','state_id' => '286','name' => 'Vorchdorf'),\n \t array('id' => '7023','state_id' => '286','name' => 'Wels'),\n \t array('id' => '7024','state_id' => '286','name' => 'Wilhering'),\n \t array('id' => '7025','state_id' => '287','name' => 'Abtenau'),\n \t array('id' => '7026','state_id' => '287','name' => 'Anif'),\n \t array('id' => '7027','state_id' => '287','name' => 'Bad Gastein'),\n \t array('id' => '7028','state_id' => '287','name' => 'Bad Hofgastein'),\n \t array('id' => '7029','state_id' => '287','name' => 'Bergheim'),\n \t array('id' => '7030','state_id' => '287','name' => 'Bischofshofen'),\n \t array('id' => '7031','state_id' => '287','name' => 'Bruck an der GroBglocknerstraB'),\n \t array('id' => '7032','state_id' => '287','name' => 'Burmoos'),\n \t array('id' => '7033','state_id' => '287','name' => 'Elsbethen'),\n \t array('id' => '7034','state_id' => '287','name' => 'Eugendorf'),\n \t array('id' => '7035','state_id' => '287','name' => 'Forstau'),\n \t array('id' => '7036','state_id' => '287','name' => 'Grodig'),\n \t array('id' => '7037','state_id' => '287','name' => 'Hallein'),\n \t array('id' => '7038','state_id' => '287','name' => 'Hallwang'),\n \t array('id' => '7039','state_id' => '287','name' => 'Henndorf'),\n \t array('id' => '7040','state_id' => '287','name' => 'Kuchl'),\n \t array('id' => '7041','state_id' => '287','name' => 'Mayrhofen'),\n \t array('id' => '7042','state_id' => '287','name' => 'Mittersill'),\n \t array('id' => '7043','state_id' => '287','name' => 'Neumarkt'),\n \t array('id' => '7044','state_id' => '287','name' => 'Oberndorf'),\n \t array('id' => '7045','state_id' => '287','name' => 'Obertrum am See'),\n \t array('id' => '7046','state_id' => '287','name' => 'Piesendorf'),\n \t array('id' => '7047','state_id' => '287','name' => 'Puch'),\n \t array('id' => '7048','state_id' => '287','name' => 'Radstadt'),\n \t array('id' => '7049','state_id' => '287','name' => 'Saalfelden'),\n \t array('id' => '7050','state_id' => '287','name' => 'Salzburg'),\n \t array('id' => '7051','state_id' => '287','name' => 'Sankt Johann im Pongau'),\n \t array('id' => '7052','state_id' => '287','name' => 'Seekirchen'),\n \t array('id' => '7053','state_id' => '287','name' => 'Sieghartskirchen'),\n \t array('id' => '7054','state_id' => '287','name' => 'StraBwalchen'),\n \t array('id' => '7055','state_id' => '287','name' => 'Strobl'),\n \t array('id' => '7056','state_id' => '287','name' => 'Tamsweg'),\n \t array('id' => '7057','state_id' => '287','name' => 'Thalgau'),\n \t array('id' => '7058','state_id' => '287','name' => 'Wals-Siezenheim'),\n \t array('id' => '7059','state_id' => '287','name' => 'Wolfgangsee'),\n \t array('id' => '7060','state_id' => '287','name' => 'Zell am See'),\n \t array('id' => '7061','state_id' => '288','name' => 'Albersdorf'),\n \t array('id' => '7062','state_id' => '289','name' => 'Bad Aussee'),\n \t array('id' => '7063','state_id' => '289','name' => 'Barnbach'),\n \t array('id' => '7064','state_id' => '289','name' => 'Bruck an der Mur'),\n \t array('id' => '7065','state_id' => '289','name' => 'Deutschlandsberg'),\n \t array('id' => '7066','state_id' => '289','name' => 'Eisenerz'),\n \t array('id' => '7067','state_id' => '289','name' => 'Feldbach'),\n \t array('id' => '7068','state_id' => '289','name' => 'Feldkirchen bei Graz'),\n \t array('id' => '7069','state_id' => '289','name' => 'Fohnsdorf'),\n \t array('id' => '7070','state_id' => '289','name' => 'Frohnleiten'),\n \t array('id' => '7071','state_id' => '289','name' => 'Furstenfeld'),\n \t array('id' => '7072','state_id' => '289','name' => 'Gleisdorf'),\n \t array('id' => '7073','state_id' => '289','name' => 'Gratkorn'),\n \t array('id' => '7074','state_id' => '289','name' => 'Graz'),\n \t array('id' => '7075','state_id' => '289','name' => 'Hartberg'),\n \t array('id' => '7076','state_id' => '289','name' => 'Judenburg'),\n \t array('id' => '7077','state_id' => '289','name' => 'Judendorf-StraBengel'),\n \t array('id' => '7078','state_id' => '289','name' => 'Kapfenberg'),\n \t array('id' => '7079','state_id' => '289','name' => 'Karlsdorf'),\n \t array('id' => '7080','state_id' => '289','name' => 'Kindberg'),\n \t array('id' => '7081','state_id' => '289','name' => 'Knittelfeld'),\n \t array('id' => '7082','state_id' => '289','name' => 'Koflach'),\n \t array('id' => '7083','state_id' => '289','name' => 'Krieglach'),\n \t array('id' => '7084','state_id' => '289','name' => 'Lannach'),\n \t array('id' => '7085','state_id' => '289','name' => 'Leibnitz'),\n \t array('id' => '7086','state_id' => '289','name' => 'Leoben'),\n \t array('id' => '7087','state_id' => '289','name' => 'Liezen'),\n \t array('id' => '7088','state_id' => '289','name' => 'Murzzuschlag'),\n \t array('id' => '7089','state_id' => '289','name' => 'Rottenmann'),\n \t array('id' => '7090','state_id' => '289','name' => 'Schladming'),\n \t array('id' => '7091','state_id' => '289','name' => 'Seiersberg'),\n \t array('id' => '7092','state_id' => '289','name' => 'Spielberg'),\n \t array('id' => '7093','state_id' => '289','name' => 'Trofaiach'),\n \t array('id' => '7094','state_id' => '289','name' => 'Voitsberg'),\n \t array('id' => '7095','state_id' => '289','name' => 'Wagna'),\n \t array('id' => '7096','state_id' => '289','name' => 'Weiz'),\n \t array('id' => '7097','state_id' => '289','name' => 'Zeltweg'),\n \t array('id' => '7098','state_id' => '290','name' => 'Deutschfeistritz'),\n \t array('id' => '7099','state_id' => '290','name' => 'Liezen'),\n \t array('id' => '7100','state_id' => '290','name' => 'Sankt Bartholoma'),\n \t array('id' => '7101','state_id' => '291','name' => 'Absam'),\n \t array('id' => '7102','state_id' => '291','name' => 'Axams'),\n \t array('id' => '7103','state_id' => '291','name' => 'Ebbs'),\n \t array('id' => '7104','state_id' => '291','name' => 'Fugen'),\n \t array('id' => '7105','state_id' => '291','name' => 'Hall'),\n \t array('id' => '7106','state_id' => '291','name' => 'Haselgehr'),\n \t array('id' => '7107','state_id' => '291','name' => 'Hopfgarten'),\n \t array('id' => '7108','state_id' => '291','name' => 'Imst'),\n \t array('id' => '7109','state_id' => '291','name' => 'Innsbruck'),\n \t array('id' => '7110','state_id' => '291','name' => 'Jenbach'),\n \t array('id' => '7111','state_id' => '291','name' => 'Kirchberg'),\n \t array('id' => '7112','state_id' => '291','name' => 'Kirchbichl'),\n \t array('id' => '7113','state_id' => '291','name' => 'Kitzbuhel'),\n \t array('id' => '7114','state_id' => '291','name' => 'Kramsach'),\n \t array('id' => '7115','state_id' => '291','name' => 'Kufstein'),\n \t array('id' => '7116','state_id' => '291','name' => 'Landeck'),\n \t array('id' => '7117','state_id' => '291','name' => 'Lienz'),\n \t array('id' => '7118','state_id' => '291','name' => 'Matrei'),\n \t array('id' => '7119','state_id' => '291','name' => 'Neustift im Stubaital'),\n \t array('id' => '7120','state_id' => '291','name' => 'Reutte'),\n \t array('id' => '7121','state_id' => '291','name' => 'Rum'),\n \t array('id' => '7122','state_id' => '291','name' => 'Sankt Johann in Tirol'),\n \t array('id' => '7123','state_id' => '291','name' => 'Scheffau'),\n \t array('id' => '7124','state_id' => '291','name' => 'Schwaz'),\n \t array('id' => '7125','state_id' => '291','name' => 'St. Johann Am Walde'),\n \t array('id' => '7126','state_id' => '291','name' => 'Telfs'),\n \t array('id' => '7127','state_id' => '291','name' => 'Vols'),\n \t array('id' => '7128','state_id' => '291','name' => 'Vomp'),\n \t array('id' => '7129','state_id' => '291','name' => 'Wattens'),\n \t array('id' => '7130','state_id' => '291','name' => 'Worgl'),\n \t array('id' => '7131','state_id' => '291','name' => 'Zirl'),\n \t array('id' => '7132','state_id' => '293','name' => 'Altach'),\n \t array('id' => '7133','state_id' => '293','name' => 'Bludenz'),\n \t array('id' => '7134','state_id' => '293','name' => 'Bregenz'),\n \t array('id' => '7135','state_id' => '293','name' => 'Chassieu'),\n \t array('id' => '7136','state_id' => '293','name' => 'Dietmannsried'),\n \t array('id' => '7137','state_id' => '293','name' => 'Dornbirn'),\n \t array('id' => '7138','state_id' => '293','name' => 'Feldkirch'),\n \t array('id' => '7139','state_id' => '293','name' => 'Frastanz'),\n \t array('id' => '7140','state_id' => '293','name' => 'Gotzis'),\n \t array('id' => '7141','state_id' => '293','name' => 'Hard'),\n \t array('id' => '7142','state_id' => '293','name' => 'Hochst'),\n \t array('id' => '7143','state_id' => '293','name' => 'Hohenems'),\n \t array('id' => '7144','state_id' => '293','name' => 'Horbranz'),\n \t array('id' => '7145','state_id' => '293','name' => 'Hufingen'),\n \t array('id' => '7146','state_id' => '293','name' => 'Lauterach'),\n \t array('id' => '7147','state_id' => '293','name' => 'Lochau'),\n \t array('id' => '7148','state_id' => '293','name' => 'Lustenau'),\n \t array('id' => '7149','state_id' => '293','name' => 'Mittelberg'),\n \t array('id' => '7150','state_id' => '293','name' => 'Nenzing'),\n \t array('id' => '7151','state_id' => '293','name' => 'Nuziders'),\n \t array('id' => '7152','state_id' => '293','name' => 'Rankweil'),\n \t array('id' => '7153','state_id' => '293','name' => 'Schruns'),\n \t array('id' => '7154','state_id' => '293','name' => 'Thuringen'),\n \t array('id' => '7155','state_id' => '293','name' => 'Wolfurt'),\n \t array('id' => '7156','state_id' => '294','name' => 'Vienna'),\n \t array('id' => '7157','state_id' => '294','name' => 'Wien'),\n \t array('id' => '7158','state_id' => '295','name' => 'Alat'),\n \t array('id' => '7159','state_id' => '295','name' => 'Artyom'),\n \t array('id' => '7160','state_id' => '295','name' => 'Baki'),\n \t array('id' => '7161','state_id' => '295','name' => 'Bakixanov'),\n \t array('id' => '7162','state_id' => '295','name' => 'Balaxani'),\n \t array('id' => '7163','state_id' => '295','name' => 'Bilacari'),\n \t array('id' => '7164','state_id' => '295','name' => 'Bilqax'),\n \t array('id' => '7165','state_id' => '295','name' => 'Bina'),\n \t array('id' => '7166','state_id' => '295','name' => 'Buzovna'),\n \t array('id' => '7167','state_id' => '295','name' => 'Haci Zeynalabdin'),\n \t array('id' => '7168','state_id' => '295','name' => 'Hovsan'),\n \t array('id' => '7169','state_id' => '295','name' => 'Lokbatan'),\n \t array('id' => '7170','state_id' => '295','name' => 'Mastaga'),\n \t array('id' => '7171','state_id' => '295','name' => 'Puta'),\n \t array('id' => '7172','state_id' => '295','name' => 'Qarasuxur'),\n \t array('id' => '7173','state_id' => '295','name' => 'Qobustan'),\n \t array('id' => '7174','state_id' => '295','name' => 'Rasulzada'),\n \t array('id' => '7175','state_id' => '295','name' => 'Sabuncu'),\n \t array('id' => '7176','state_id' => '295','name' => 'Sanqacal'),\n \t array('id' => '7177','state_id' => '295','name' => 'Sumqayit'),\n \t array('id' => '7178','state_id' => '295','name' => 'Suraxani'),\n \t array('id' => '7179','state_id' => '295','name' => 'Xirdalan'),\n \t array('id' => '7180','state_id' => '295','name' => 'Zirya'),\n \t array('id' => '7181','state_id' => '297','name' => 'Daskasan'),\n \t array('id' => '7182','state_id' => '297','name' => 'Ganca'),\n \t array('id' => '7183','state_id' => '297','name' => 'Xanlar'),\n \t array('id' => '7184','state_id' => '298','name' => 'Ganja'),\n \t array('id' => '7185','state_id' => '299','name' => 'Cabrayil'),\n \t array('id' => '7186','state_id' => '299','name' => 'Kalbacar'),\n \t array('id' => '7187','state_id' => '299','name' => 'Lacin'),\n \t array('id' => '7188','state_id' => '300','name' => 'Astara'),\n \t array('id' => '7189','state_id' => '300','name' => 'Goytapa'),\n \t array('id' => '7190','state_id' => '300','name' => 'Lankaran'),\n \t array('id' => '7191','state_id' => '300','name' => 'Masalli'),\n \t array('id' => '7192','state_id' => '300','name' => 'Neftcala'),\n \t array('id' => '7193','state_id' => '301','name' => 'Agcabadi'),\n \t array('id' => '7194','state_id' => '301','name' => 'Agdam'),\n \t array('id' => '7195','state_id' => '301','name' => 'Barda'),\n \t array('id' => '7196','state_id' => '301','name' => 'Mingacevir'),\n \t array('id' => '7197','state_id' => '301','name' => 'Tartar'),\n \t array('id' => '7198','state_id' => '301','name' => 'Yevlax'),\n \t array('id' => '7199','state_id' => '302','name' => 'Ali Bayramli'),\n \t array('id' => '7200','state_id' => '302','name' => 'Bilasuvar'),\n \t array('id' => '7201','state_id' => '302','name' => 'Calilabad'),\n \t array('id' => '7202','state_id' => '302','name' => 'Qarasu'),\n \t array('id' => '7203','state_id' => '302','name' => 'Qazimammad'),\n \t array('id' => '7204','state_id' => '302','name' => 'Saatli'),\n \t array('id' => '7205','state_id' => '302','name' => 'Sabirabad'),\n \t array('id' => '7206','state_id' => '302','name' => 'Salyan'),\n \t array('id' => '7207','state_id' => '303','name' => 'Susa'),\n \t array('id' => '7208','state_id' => '303','name' => 'Xankandi'),\n \t array('id' => '7209','state_id' => '303','name' => 'Xocavand'),\n \t array('id' => '7210','state_id' => '304','name' => 'Culfa'),\n \t array('id' => '7211','state_id' => '304','name' => 'Naxcivan'),\n \t array('id' => '7212','state_id' => '304','name' => 'Ordubad'),\n \t array('id' => '7213','state_id' => '304','name' => 'Sadarak'),\n \t array('id' => '7214','state_id' => '304','name' => 'Sarur'),\n \t array('id' => '7215','state_id' => '305','name' => 'Beylaqan'),\n \t array('id' => '7216','state_id' => '305','name' => 'Fuzuli'),\n \t array('id' => '7217','state_id' => '305','name' => 'Imisli'),\n \t array('id' => '7218','state_id' => '306','name' => 'Agstafa'),\n \t array('id' => '7219','state_id' => '306','name' => 'Gadabay'),\n \t array('id' => '7220','state_id' => '306','name' => 'Kovlar'),\n \t array('id' => '7221','state_id' => '306','name' => 'Qaracamirli'),\n \t array('id' => '7222','state_id' => '306','name' => 'Qazax'),\n \t array('id' => '7223','state_id' => '306','name' => 'Samkir'),\n \t array('id' => '7224','state_id' => '306','name' => 'Tovuz'),\n \t array('id' => '7225','state_id' => '307','name' => 'Amircan'),\n \t array('id' => '7226','state_id' => '307','name' => 'Balakan'),\n \t array('id' => '7227','state_id' => '307','name' => 'Katex'),\n \t array('id' => '7228','state_id' => '307','name' => 'Oguz'),\n \t array('id' => '7229','state_id' => '307','name' => 'Qabala'),\n \t array('id' => '7230','state_id' => '307','name' => 'Qax'),\n \t array('id' => '7231','state_id' => '307','name' => 'Saki'),\n \t array('id' => '7232','state_id' => '307','name' => 'Zaqatala'),\n \t array('id' => '7233','state_id' => '308','name' => 'Agdas'),\n \t array('id' => '7234','state_id' => '308','name' => 'Agsu'),\n \t array('id' => '7235','state_id' => '308','name' => 'Goycay'),\n \t array('id' => '7236','state_id' => '308','name' => 'Ismayilli'),\n \t array('id' => '7237','state_id' => '308','name' => 'Kurdamir'),\n \t array('id' => '7238','state_id' => '308','name' => 'Samaxi'),\n \t array('id' => '7239','state_id' => '308','name' => 'Ucar'),\n \t array('id' => '7240','state_id' => '308','name' => 'Zardab'),\n \t array('id' => '7241','state_id' => '309','name' => 'Davaci'),\n \t array('id' => '7242','state_id' => '309','name' => 'Quba'),\n \t array('id' => '7243','state_id' => '309','name' => 'Qusar'),\n \t array('id' => '7244','state_id' => '309','name' => 'Siyazan'),\n \t array('id' => '7245','state_id' => '309','name' => 'Xacmaz'),\n \t array('id' => '7246','state_id' => '309','name' => 'Xudat'),\n \t array('id' => '7247','state_id' => '310','name' => 'Coopers Town'),\n \t array('id' => '7248','state_id' => '310','name' => 'Marsh Harbour'),\n \t array('id' => '7249','state_id' => '312','name' => 'Andros Town'),\n \t array('id' => '7250','state_id' => '312','name' => 'Nicholls Town'),\n \t array('id' => '7251','state_id' => '314','name' => 'Alice Town'),\n \t array('id' => '7252','state_id' => '317','name' => 'Freetown'),\n \t array('id' => '7253','state_id' => '317','name' => 'Rock Sound'),\n \t array('id' => '7254','state_id' => '322','name' => 'Pirates Well'),\n \t array('id' => '7255','state_id' => '327','name' => '\\'Isa'),\n \t array('id' => '7256','state_id' => '328','name' => 'Badiyah'),\n \t array('id' => '7257','state_id' => '329','name' => 'Hidd'),\n \t array('id' => '7258','state_id' => '331','name' => 'Mahama'),\n \t array('id' => '7259','state_id' => '332','name' => 'Manama'),\n \t array('id' => '7260','state_id' => '333','name' => 'Sitrah'),\n \t array('id' => '7261','state_id' => '334','name' => 'al-Manamah'),\n \t array('id' => '7262','state_id' => '335','name' => 'al-Muharraq'),\n \t array('id' => '7263','state_id' => '336','name' => 'ar-Rifa\\'a'),\n \t array('id' => '7264','state_id' => '338','name' => 'Bandarban'),\n \t array('id' => '7265','state_id' => '339','name' => 'Barguna'),\n \t array('id' => '7266','state_id' => '340','name' => 'Barisal'),\n \t array('id' => '7267','state_id' => '340','name' => 'Gaurnadi'),\n \t array('id' => '7268','state_id' => '340','name' => 'Mehendiganj'),\n \t array('id' => '7269','state_id' => '340','name' => 'Nalchiti'),\n \t array('id' => '7270','state_id' => '341','name' => 'Bhola'),\n \t array('id' => '7271','state_id' => '341','name' => 'Burhanuddin'),\n \t array('id' => '7272','state_id' => '341','name' => 'Char Fasson'),\n \t array('id' => '7273','state_id' => '341','name' => 'Lalmohan'),\n \t array('id' => '7274','state_id' => '342','name' => 'Adamighi'),\n \t array('id' => '7275','state_id' => '342','name' => 'Bogora'),\n \t array('id' => '7276','state_id' => '342','name' => 'Sherpur'),\n \t array('id' => '7277','state_id' => '344','name' => 'Chandpur'),\n \t array('id' => '7278','state_id' => '344','name' => 'Hajiganj'),\n \t array('id' => '7279','state_id' => '345','name' => 'Boalkhali'),\n \t array('id' => '7280','state_id' => '345','name' => 'Chattagam'),\n \t array('id' => '7281','state_id' => '345','name' => 'Fatikchhari'),\n \t array('id' => '7282','state_id' => '345','name' => 'Lohagara'),\n \t array('id' => '7283','state_id' => '345','name' => 'Patiya'),\n \t array('id' => '7284','state_id' => '345','name' => 'Rangunia'),\n \t array('id' => '7285','state_id' => '345','name' => 'Raozan'),\n \t array('id' => '7286','state_id' => '345','name' => 'Sandip'),\n \t array('id' => '7287','state_id' => '345','name' => 'Satkaniya'),\n \t array('id' => '7288','state_id' => '347','name' => 'Alamdanga'),\n \t array('id' => '7289','state_id' => '347','name' => 'Chuadanga'),\n \t array('id' => '7290','state_id' => '347','name' => 'Damurhuda'),\n \t array('id' => '7291','state_id' => '348','name' => 'Dhaka'),\n \t array('id' => '7292','state_id' => '348','name' => 'Dhamrai'),\n \t array('id' => '7293','state_id' => '348','name' => 'Dohar'),\n \t array('id' => '7294','state_id' => '349','name' => 'Bochanganj'),\n \t array('id' => '7295','state_id' => '349','name' => 'Dinajpur'),\n \t array('id' => '7296','state_id' => '349','name' => 'Fulbari'),\n \t array('id' => '7297','state_id' => '349','name' => 'Parbatipur'),\n \t array('id' => '7298','state_id' => '350','name' => 'Bhanga'),\n \t array('id' => '7299','state_id' => '350','name' => 'Char Bhadrasan'),\n \t array('id' => '7300','state_id' => '350','name' => 'Faridpur'),\n \t array('id' => '7301','state_id' => '351','name' => 'Chhagalnaiya'),\n \t array('id' => '7302','state_id' => '351','name' => 'Feni'),\n \t array('id' => '7303','state_id' => '352','name' => 'Gaybanda'),\n \t array('id' => '7304','state_id' => '353','name' => 'Gazipur'),\n \t array('id' => '7305','state_id' => '353','name' => 'Tungi'),\n \t array('id' => '7306','state_id' => '354','name' => 'Gopalganj'),\n \t array('id' => '7307','state_id' => '354','name' => 'Tungi Para'),\n \t array('id' => '7308','state_id' => '355','name' => 'Baniachang'),\n \t array('id' => '7309','state_id' => '355','name' => 'Habiganj'),\n \t array('id' => '7310','state_id' => '357','name' => 'Jamalpur'),\n \t array('id' => '7311','state_id' => '357','name' => 'Sarishabari'),\n \t array('id' => '7312','state_id' => '358','name' => 'Abhaynagar'),\n \t array('id' => '7313','state_id' => '358','name' => 'Jessor'),\n \t array('id' => '7314','state_id' => '358','name' => 'Jhikargachha'),\n \t array('id' => '7315','state_id' => '358','name' => 'Keshabpur'),\n \t array('id' => '7316','state_id' => '359','name' => 'Jhalakati'),\n \t array('id' => '7317','state_id' => '360','name' => 'Jhanaydah'),\n \t array('id' => '7318','state_id' => '360','name' => 'Kaliganj'),\n \t array('id' => '7319','state_id' => '360','name' => 'Kotchandpur'),\n \t array('id' => '7320','state_id' => '360','name' => 'Shailkupa'),\n \t array('id' => '7321','state_id' => '361','name' => 'Khagrachari'),\n \t array('id' => '7322','state_id' => '361','name' => 'Manikchhari'),\n \t array('id' => '7323','state_id' => '361','name' => 'Ramgarh'),\n \t array('id' => '7324','state_id' => '362','name' => 'Khulna'),\n \t array('id' => '7325','state_id' => '362','name' => 'Phultala'),\n \t array('id' => '7326','state_id' => '363','name' => 'Bajitpur'),\n \t array('id' => '7327','state_id' => '363','name' => 'Bhairab Bazar'),\n \t array('id' => '7328','state_id' => '363','name' => 'Itna'),\n \t array('id' => '7329','state_id' => '363','name' => 'Kishorganj'),\n \t array('id' => '7330','state_id' => '365','name' => 'Komilla'),\n \t array('id' => '7331','state_id' => '365','name' => 'Laksham'),\n \t array('id' => '7332','state_id' => '366','name' => 'Chilmari'),\n \t array('id' => '7333','state_id' => '366','name' => 'Kurigram'),\n \t array('id' => '7334','state_id' => '366','name' => 'Nageshwari'),\n \t array('id' => '7335','state_id' => '366','name' => 'Ulipur'),\n \t array('id' => '7336','state_id' => '367','name' => 'Bheramara'),\n \t array('id' => '7337','state_id' => '367','name' => 'Kushtiya'),\n \t array('id' => '7338','state_id' => '368','name' => 'Lakshmipur'),\n \t array('id' => '7339','state_id' => '368','name' => 'Ramganj'),\n \t array('id' => '7340','state_id' => '368','name' => 'Ramgati'),\n \t array('id' => '7341','state_id' => '368','name' => 'Raypur'),\n \t array('id' => '7342','state_id' => '370','name' => 'Madaripur'),\n \t array('id' => '7343','state_id' => '371','name' => 'Magura'),\n \t array('id' => '7344','state_id' => '372','name' => 'Bhaluka'),\n \t array('id' => '7345','state_id' => '372','name' => 'Fulbaria'),\n \t array('id' => '7346','state_id' => '372','name' => 'Gafargaon'),\n \t array('id' => '7347','state_id' => '372','name' => 'Ishwarganj'),\n \t array('id' => '7348','state_id' => '372','name' => 'Maimansingh'),\n \t array('id' => '7349','state_id' => '372','name' => 'Muktagachha'),\n \t array('id' => '7350','state_id' => '372','name' => 'Trishal'),\n \t array('id' => '7351','state_id' => '373','name' => 'Manikganj'),\n \t array('id' => '7352','state_id' => '375','name' => 'Meherpur'),\n \t array('id' => '7353','state_id' => '376','name' => 'Munshiganj'),\n \t array('id' => '7354','state_id' => '377','name' => 'Kalia'),\n \t array('id' => '7355','state_id' => '377','name' => 'Naral'),\n \t array('id' => '7356','state_id' => '378','name' => 'Narayanganj'),\n \t array('id' => '7357','state_id' => '378','name' => 'Rupganj'),\n \t array('id' => '7358','state_id' => '379','name' => 'Narsingdi'),\n \t array('id' => '7359','state_id' => '379','name' => 'Roypura'),\n \t array('id' => '7360','state_id' => '380','name' => 'Gurudaspur'),\n \t array('id' => '7361','state_id' => '380','name' => 'Nator'),\n \t array('id' => '7362','state_id' => '381','name' => 'Naugaon'),\n \t array('id' => '7363','state_id' => '382','name' => 'Gomastapur'),\n \t array('id' => '7364','state_id' => '382','name' => 'Nawabganj'),\n \t array('id' => '7365','state_id' => '382','name' => 'Shibganj'),\n \t array('id' => '7366','state_id' => '383','name' => 'Netrakona'),\n \t array('id' => '7367','state_id' => '384','name' => 'Domar'),\n \t array('id' => '7368','state_id' => '384','name' => 'Nilphamari'),\n \t array('id' => '7369','state_id' => '384','name' => 'Sa\\'idpur'),\n \t array('id' => '7370','state_id' => '385','name' => 'Begamganj'),\n \t array('id' => '7371','state_id' => '385','name' => 'Noakhali'),\n \t array('id' => '7372','state_id' => '385','name' => 'Senbagh'),\n \t array('id' => '7373','state_id' => '386','name' => 'Bera'),\n \t array('id' => '7374','state_id' => '386','name' => 'Bhangura'),\n \t array('id' => '7375','state_id' => '386','name' => 'Ishurdi'),\n \t array('id' => '7376','state_id' => '386','name' => 'Pabna'),\n \t array('id' => '7377','state_id' => '387','name' => 'Panchagarh'),\n \t array('id' => '7378','state_id' => '388','name' => 'Patuakhali'),\n \t array('id' => '7379','state_id' => '389','name' => 'Bhandaria'),\n \t array('id' => '7380','state_id' => '389','name' => 'Mathbaria'),\n \t array('id' => '7381','state_id' => '389','name' => 'Nesarabad'),\n \t array('id' => '7382','state_id' => '389','name' => 'Pirojpur'),\n \t array('id' => '7383','state_id' => '390','name' => 'Pangsha'),\n \t array('id' => '7384','state_id' => '390','name' => 'Rajbari'),\n \t array('id' => '7385','state_id' => '391','name' => 'Rajshahi'),\n \t array('id' => '7386','state_id' => '392','name' => 'Kaptai'),\n \t array('id' => '7387','state_id' => '392','name' => 'Rangamati'),\n \t array('id' => '7388','state_id' => '393','name' => 'Badarganj'),\n \t array('id' => '7389','state_id' => '393','name' => 'Kaunia'),\n \t array('id' => '7390','state_id' => '393','name' => 'Rangpur'),\n \t array('id' => '7391','state_id' => '394','name' => 'Satkhira'),\n \t array('id' => '7392','state_id' => '395','name' => 'Palang'),\n \t array('id' => '7393','state_id' => '396','name' => 'Nalitabari'),\n \t array('id' => '7394','state_id' => '396','name' => 'Sherpur'),\n \t array('id' => '7395','state_id' => '397','name' => 'Silhat'),\n \t array('id' => '7396','state_id' => '398','name' => 'Shahjadpur'),\n \t array('id' => '7397','state_id' => '398','name' => 'Sirajganj'),\n \t array('id' => '7398','state_id' => '399','name' => 'Chhatak'),\n \t array('id' => '7399','state_id' => '399','name' => 'Sunamganj'),\n \t array('id' => '7400','state_id' => '400','name' => 'Gopalpur'),\n \t array('id' => '7401','state_id' => '400','name' => 'Mirzapur'),\n \t array('id' => '7402','state_id' => '400','name' => 'Sakhipur'),\n \t array('id' => '7403','state_id' => '400','name' => 'Tangayal'),\n \t array('id' => '7404','state_id' => '401','name' => 'Pirganj'),\n \t array('id' => '7405','state_id' => '401','name' => 'Thakurgaon'),\n \t array('id' => '7406','state_id' => '413','name' => 'Baranavichy'),\n \t array('id' => '7407','state_id' => '413','name' => 'Bjaroza'),\n \t array('id' => '7408','state_id' => '413','name' => 'Bjeloozersk'),\n \t array('id' => '7409','state_id' => '413','name' => 'Brest'),\n \t array('id' => '7410','state_id' => '413','name' => 'David-Haradok'),\n \t array('id' => '7411','state_id' => '413','name' => 'Drahichyn'),\n \t array('id' => '7412','state_id' => '413','name' => 'Hancavichy'),\n \t array('id' => '7413','state_id' => '413','name' => 'Ivacevichy'),\n \t array('id' => '7414','state_id' => '413','name' => 'Ivanava'),\n \t array('id' => '7415','state_id' => '413','name' => 'Kamjenec'),\n \t array('id' => '7416','state_id' => '413','name' => 'Kobryn'),\n \t array('id' => '7417','state_id' => '413','name' => 'Kosava'),\n \t array('id' => '7418','state_id' => '413','name' => 'Ljahavichy'),\n \t array('id' => '7419','state_id' => '413','name' => 'Luninjec'),\n \t array('id' => '7420','state_id' => '413','name' => 'Malaryta'),\n \t array('id' => '7421','state_id' => '413','name' => 'Mikashevichy'),\n \t array('id' => '7422','state_id' => '413','name' => 'Pinsk'),\n \t array('id' => '7423','state_id' => '413','name' => 'Pruzhany'),\n \t array('id' => '7424','state_id' => '413','name' => 'Stolin'),\n \t array('id' => '7425','state_id' => '413','name' => 'Vysokoje'),\n \t array('id' => '7426','state_id' => '413','name' => 'Zhabinka'),\n \t array('id' => '7427','state_id' => '414','name' => 'Buda Kosheljovo'),\n \t array('id' => '7428','state_id' => '414','name' => 'Chechersk'),\n \t array('id' => '7429','state_id' => '414','name' => 'Dobrush'),\n \t array('id' => '7430','state_id' => '414','name' => 'Hojniki'),\n \t array('id' => '7431','state_id' => '414','name' => 'Homjel\\''),\n \t array('id' => '7432','state_id' => '414','name' => 'Jel\\'sk'),\n \t array('id' => '7433','state_id' => '414','name' => 'Kalinkavichy'),\n \t array('id' => '7434','state_id' => '414','name' => 'Kascjukovka'),\n \t array('id' => '7435','state_id' => '414','name' => 'Mazyr'),\n \t array('id' => '7436','state_id' => '414','name' => 'Narovlja'),\n \t array('id' => '7437','state_id' => '414','name' => 'Pjetrykav'),\n \t array('id' => '7438','state_id' => '414','name' => 'Rahachow'),\n \t array('id' => '7439','state_id' => '414','name' => 'Rechyca'),\n \t array('id' => '7440','state_id' => '414','name' => 'Svetlahorsk'),\n \t array('id' => '7441','state_id' => '414','name' => 'Vasilevichy'),\n \t array('id' => '7442','state_id' => '414','name' => 'Vjetka'),\n \t array('id' => '7443','state_id' => '414','name' => 'Zhlobin'),\n \t array('id' => '7444','state_id' => '414','name' => 'Zhytkavichy'),\n \t array('id' => '7445','state_id' => '415','name' => 'Ashmjany'),\n \t array('id' => '7446','state_id' => '415','name' => 'Berjozovka'),\n \t array('id' => '7447','state_id' => '415','name' => 'Hrodna'),\n \t array('id' => '7448','state_id' => '415','name' => 'Lida'),\n \t array('id' => '7449','state_id' => '415','name' => 'Masty'),\n \t array('id' => '7450','state_id' => '415','name' => 'Navahrudak'),\n \t array('id' => '7451','state_id' => '415','name' => 'Shchuchyn'),\n \t array('id' => '7452','state_id' => '415','name' => 'Skidel\\''),\n \t array('id' => '7453','state_id' => '415','name' => 'Slonim'),\n \t array('id' => '7454','state_id' => '415','name' => 'Smarhon\\''),\n \t array('id' => '7455','state_id' => '415','name' => 'Vawkavysk'),\n \t array('id' => '7456','state_id' => '416','name' => 'Asipovichy'),\n \t array('id' => '7457','state_id' => '416','name' => 'Babrujsk'),\n \t array('id' => '7458','state_id' => '416','name' => 'Byhau'),\n \t array('id' => '7459','state_id' => '416','name' => 'Chausy'),\n \t array('id' => '7460','state_id' => '416','name' => 'Cherikov'),\n \t array('id' => '7461','state_id' => '416','name' => 'Horki'),\n \t array('id' => '7462','state_id' => '416','name' => 'Kascjukovichy'),\n \t array('id' => '7463','state_id' => '416','name' => 'Klimavichy'),\n \t array('id' => '7464','state_id' => '416','name' => 'Krychaw'),\n \t array('id' => '7465','state_id' => '416','name' => 'Mahiljow'),\n \t array('id' => '7466','state_id' => '416','name' => 'Mstislav'),\n \t array('id' => '7467','state_id' => '416','name' => 'Shklov'),\n \t array('id' => '7468','state_id' => '416','name' => 'Slaeuharad'),\n \t array('id' => '7469','state_id' => '418','name' => 'Minsk'),\n \t array('id' => '7470','state_id' => '420','name' => 'Petrikov'),\n \t array('id' => '7471','state_id' => '421','name' => 'Baran\\''),\n \t array('id' => '7472','state_id' => '421','name' => 'Braslav'),\n \t array('id' => '7473','state_id' => '421','name' => 'Chashniki'),\n \t array('id' => '7474','state_id' => '421','name' => 'Disna'),\n \t array('id' => '7475','state_id' => '421','name' => 'Dokshicy'),\n \t array('id' => '7476','state_id' => '421','name' => 'Dubrovna'),\n \t array('id' => '7477','state_id' => '421','name' => 'Haradok'),\n \t array('id' => '7478','state_id' => '421','name' => 'Hlybokaje'),\n \t array('id' => '7479','state_id' => '421','name' => 'Ljepjel\\''),\n \t array('id' => '7480','state_id' => '421','name' => 'Mjory'),\n \t array('id' => '7481','state_id' => '421','name' => 'Navapolack'),\n \t array('id' => '7482','state_id' => '421','name' => 'Novalukoml\\''),\n \t array('id' => '7483','state_id' => '421','name' => 'Orsha'),\n \t array('id' => '7484','state_id' => '421','name' => 'Pastavy'),\n \t array('id' => '7485','state_id' => '421','name' => 'Polack'),\n \t array('id' => '7486','state_id' => '421','name' => 'Polotsk'),\n \t array('id' => '7487','state_id' => '421','name' => 'Senno'),\n \t array('id' => '7488','state_id' => '421','name' => 'Talachyn'),\n \t array('id' => '7489','state_id' => '421','name' => 'Verhnjadzvimsk'),\n \t array('id' => '7490','state_id' => '421','name' => 'Vicebsk'),\n \t array('id' => '7491','state_id' => '422','name' => 'Aartselaar'),\n \t array('id' => '7492','state_id' => '422','name' => 'Antwerpen'),\n \t array('id' => '7493','state_id' => '422','name' => 'Arendonk'),\n \t array('id' => '7494','state_id' => '422','name' => 'Baarle-Hertog'),\n \t array('id' => '7495','state_id' => '422','name' => 'Balen'),\n \t array('id' => '7496','state_id' => '422','name' => 'Beerse'),\n \t array('id' => '7497','state_id' => '422','name' => 'Berlaar'),\n \t array('id' => '7498','state_id' => '422','name' => 'Boechout'),\n \t array('id' => '7499','state_id' => '422','name' => 'Bonheiden'),\n \t array('id' => '7500','state_id' => '422','name' => 'Boom'),\n \t array('id' => '7501','state_id' => '422','name' => 'Bornem'),\n \t array('id' => '7502','state_id' => '422','name' => 'Borsbeek'),\n \t array('id' => '7503','state_id' => '422','name' => 'Brasschaat'),\n \t array('id' => '7504','state_id' => '422','name' => 'Brecht'),\n \t array('id' => '7505','state_id' => '422','name' => 'Dessel'),\n \t array('id' => '7506','state_id' => '422','name' => 'Deurne'),\n \t array('id' => '7507','state_id' => '422','name' => 'Duffel'),\n \t array('id' => '7508','state_id' => '422','name' => 'Edegem'),\n \t array('id' => '7509','state_id' => '422','name' => 'Ekeren'),\n \t array('id' => '7510','state_id' => '422','name' => 'Essen'),\n \t array('id' => '7511','state_id' => '422','name' => 'Geel'),\n \t array('id' => '7512','state_id' => '422','name' => 'Geluvele'),\n \t array('id' => '7513','state_id' => '422','name' => 'Grobbendonk'),\n \t array('id' => '7514','state_id' => '422','name' => 'Heist-op-den-Berg'),\n \t array('id' => '7515','state_id' => '422','name' => 'Hemiksem'),\n \t array('id' => '7516','state_id' => '422','name' => 'Herentals'),\n \t array('id' => '7517','state_id' => '422','name' => 'Herenthout'),\n \t array('id' => '7518','state_id' => '422','name' => 'Herselt'),\n \t array('id' => '7519','state_id' => '422','name' => 'Hoogstraten'),\n \t array('id' => '7520','state_id' => '422','name' => 'Hove'),\n \t array('id' => '7521','state_id' => '422','name' => 'Hulshout'),\n \t array('id' => '7522','state_id' => '422','name' => 'Kalmpthout'),\n \t array('id' => '7523','state_id' => '422','name' => 'Kalmthout'),\n \t array('id' => '7524','state_id' => '422','name' => 'Kapellen'),\n \t array('id' => '7525','state_id' => '422','name' => 'Kasterlee'),\n \t array('id' => '7526','state_id' => '422','name' => 'Kontich'),\n \t array('id' => '7527','state_id' => '422','name' => 'Laakdal'),\n \t array('id' => '7528','state_id' => '422','name' => 'Lier'),\n \t array('id' => '7529','state_id' => '422','name' => 'Lille'),\n \t array('id' => '7530','state_id' => '422','name' => 'Lint'),\n \t array('id' => '7531','state_id' => '422','name' => 'Malle'),\n \t array('id' => '7532','state_id' => '422','name' => 'Mechelen'),\n \t array('id' => '7533','state_id' => '422','name' => 'Meerhout'),\n \t array('id' => '7534','state_id' => '422','name' => 'Merksplas'),\n \t array('id' => '7535','state_id' => '422','name' => 'Mol'),\n \t array('id' => '7536','state_id' => '422','name' => 'Mortsel'),\n \t array('id' => '7537','state_id' => '422','name' => 'Niel'),\n \t array('id' => '7538','state_id' => '422','name' => 'Nijlen'),\n \t array('id' => '7539','state_id' => '422','name' => 'Olen'),\n \t array('id' => '7540','state_id' => '422','name' => 'Oud-Turnhout'),\n \t array('id' => '7541','state_id' => '422','name' => 'Putte'),\n \t array('id' => '7542','state_id' => '422','name' => 'Puurs'),\n \t array('id' => '7543','state_id' => '422','name' => 'Ranst'),\n \t array('id' => '7544','state_id' => '422','name' => 'Ravels'),\n \t array('id' => '7545','state_id' => '422','name' => 'Retie'),\n \t array('id' => '7546','state_id' => '422','name' => 'Rijkevorsel'),\n \t array('id' => '7547','state_id' => '422','name' => 'Robrechts'),\n \t array('id' => '7548','state_id' => '422','name' => 'Rumst'),\n \t array('id' => '7549','state_id' => '422','name' => 'Schelle'),\n \t array('id' => '7550','state_id' => '422','name' => 'Schilde'),\n \t array('id' => '7551','state_id' => '422','name' => 'Schoten'),\n \t array('id' => '7552','state_id' => '422','name' => 'Sint-Amands'),\n \t array('id' => '7553','state_id' => '422','name' => 'Sint-Katelijne-Waver'),\n \t array('id' => '7554','state_id' => '422','name' => 'Stabroek'),\n \t array('id' => '7555','state_id' => '422','name' => 'Turnhout'),\n \t array('id' => '7556','state_id' => '422','name' => 'Vorselaar'),\n \t array('id' => '7557','state_id' => '422','name' => 'Vosselaar'),\n \t array('id' => '7558','state_id' => '422','name' => 'Westerlo'),\n \t array('id' => '7559','state_id' => '422','name' => 'Wijnegem'),\n \t array('id' => '7560','state_id' => '422','name' => 'Willebroek'),\n \t array('id' => '7561','state_id' => '422','name' => 'Wilrijk'),\n \t array('id' => '7562','state_id' => '422','name' => 'Wommelgem'),\n \t array('id' => '7563','state_id' => '422','name' => 'Wuustwezel'),\n \t array('id' => '7564','state_id' => '422','name' => 'Zandhoven'),\n \t array('id' => '7565','state_id' => '422','name' => 'Zoersel'),\n \t array('id' => '7566','state_id' => '422','name' => 'Zwijndrecht'),\n \t array('id' => '7567','state_id' => '423','name' => 'Berchem'),\n \t array('id' => '7568','state_id' => '424','name' => 'Alsemberg'),\n \t array('id' => '7569','state_id' => '424','name' => 'Asse Zellik'),\n \t array('id' => '7570','state_id' => '424','name' => 'Brussels'),\n \t array('id' => '7571','state_id' => '424','name' => 'Bruxelles'),\n \t array('id' => '7572','state_id' => '424','name' => 'Diegem'),\n \t array('id' => '7573','state_id' => '425','name' => 'Alsemberg'),\n \t array('id' => '7574','state_id' => '425','name' => 'Asse Zellik'),\n \t array('id' => '7575','state_id' => '425','name' => 'Brussels'),\n \t array('id' => '7576','state_id' => '425','name' => 'Bruxelles'),\n \t array('id' => '7577','state_id' => '425','name' => 'Diegem'),\n \t array('id' => '7578','state_id' => '426','name' => 'Brussel'),\n \t array('id' => '7579','state_id' => '428','name' => 'Aiseau-Presles'),\n \t array('id' => '7580','state_id' => '428','name' => 'Anderlues'),\n \t array('id' => '7581','state_id' => '428','name' => 'Antoing'),\n \t array('id' => '7582','state_id' => '428','name' => 'Ath'),\n \t array('id' => '7583','state_id' => '428','name' => 'Beaumont'),\n \t array('id' => '7584','state_id' => '428','name' => 'Beloeil'),\n \t array('id' => '7585','state_id' => '428','name' => 'Bernissart'),\n \t array('id' => '7586','state_id' => '428','name' => 'Binche'),\n \t array('id' => '7587','state_id' => '428','name' => 'Boussu'),\n \t array('id' => '7588','state_id' => '428','name' => 'Braine-le-Comte'),\n \t array('id' => '7589','state_id' => '428','name' => 'Brugelette'),\n \t array('id' => '7590','state_id' => '428','name' => 'Brunehaut'),\n \t array('id' => '7591','state_id' => '428','name' => 'Celles'),\n \t array('id' => '7592','state_id' => '428','name' => 'Chapelle-lez-Herlaimont'),\n \t array('id' => '7593','state_id' => '428','name' => 'Charleroi'),\n \t array('id' => '7594','state_id' => '428','name' => 'Chatelet'),\n \t array('id' => '7595','state_id' => '428','name' => 'Chievres'),\n \t array('id' => '7596','state_id' => '428','name' => 'Chimay'),\n \t array('id' => '7597','state_id' => '428','name' => 'Colfontaine'),\n \t array('id' => '7598','state_id' => '428','name' => 'Comines-Warneton'),\n \t array('id' => '7599','state_id' => '428','name' => 'Courcelles'),\n \t array('id' => '7600','state_id' => '428','name' => 'Dour'),\n \t array('id' => '7601','state_id' => '428','name' => 'Ecaussinnes'),\n \t array('id' => '7602','state_id' => '428','name' => 'Ellezelles'),\n \t array('id' => '7603','state_id' => '428','name' => 'Enghien'),\n \t array('id' => '7604','state_id' => '428','name' => 'Erquelinnes'),\n \t array('id' => '7605','state_id' => '428','name' => 'Estaimpuis'),\n \t array('id' => '7606','state_id' => '428','name' => 'Estinnes'),\n \t array('id' => '7607','state_id' => '428','name' => 'Farciennes'),\n \t array('id' => '7608','state_id' => '428','name' => 'Fleurus'),\n \t array('id' => '7609','state_id' => '428','name' => 'Flobecq'),\n \t array('id' => '7610','state_id' => '428','name' => 'Fontaine-l\\'Eveque'),\n \t array('id' => '7611','state_id' => '428','name' => 'Frameries'),\n \t array('id' => '7612','state_id' => '428','name' => 'Frasnes-lez-Anvaing'),\n \t array('id' => '7613','state_id' => '428','name' => 'Froidchapelle'),\n \t array('id' => '7614','state_id' => '428','name' => 'Gerpinnes'),\n \t array('id' => '7615','state_id' => '428','name' => 'Haine-Saint-Pierre'),\n \t array('id' => '7616','state_id' => '428','name' => 'Ham-sur-Heure-Nalinnes'),\n \t array('id' => '7617','state_id' => '428','name' => 'Hensies'),\n \t array('id' => '7618','state_id' => '428','name' => 'Honnelles'),\n \t array('id' => '7619','state_id' => '428','name' => 'Jurbise'),\n \t array('id' => '7620','state_id' => '428','name' => 'La Louviere'),\n \t array('id' => '7621','state_id' => '428','name' => 'Le Roeulx'),\n \t array('id' => '7622','state_id' => '428','name' => 'Lens'),\n \t array('id' => '7623','state_id' => '428','name' => 'Les Bons Villers'),\n \t array('id' => '7624','state_id' => '428','name' => 'Lessines'),\n \t array('id' => '7625','state_id' => '428','name' => 'Leuze-en-Hainaut'),\n \t array('id' => '7626','state_id' => '428','name' => 'Lobbes'),\n \t array('id' => '7627','state_id' => '428','name' => 'Manage'),\n \t array('id' => '7628','state_id' => '428','name' => 'Merbes-le-Chateau'),\n \t array('id' => '7629','state_id' => '428','name' => 'Momignies'),\n \t array('id' => '7630','state_id' => '428','name' => 'Mons'),\n \t array('id' => '7631','state_id' => '428','name' => 'Mont-de-l\\'Enclus'),\n \t array('id' => '7632','state_id' => '428','name' => 'Montigny-le-Tilleul'),\n \t array('id' => '7633','state_id' => '428','name' => 'Morlanwelz'),\n \t array('id' => '7634','state_id' => '428','name' => 'Mouscron'),\n \t array('id' => '7635','state_id' => '428','name' => 'Pecq'),\n \t array('id' => '7636','state_id' => '428','name' => 'Peruwelz'),\n \t array('id' => '7637','state_id' => '428','name' => 'Pont-a-Celles'),\n \t array('id' => '7638','state_id' => '428','name' => 'Quaregnon'),\n \t array('id' => '7639','state_id' => '428','name' => 'Quevy'),\n \t array('id' => '7640','state_id' => '428','name' => 'Quievrain'),\n \t array('id' => '7641','state_id' => '428','name' => 'Rumes'),\n \t array('id' => '7642','state_id' => '428','name' => 'Saint-Ghislain'),\n \t array('id' => '7643','state_id' => '428','name' => 'Seneffe'),\n \t array('id' => '7644','state_id' => '428','name' => 'Silly'),\n \t array('id' => '7645','state_id' => '428','name' => 'Sivry-Rance'),\n \t array('id' => '7646','state_id' => '428','name' => 'Soignies'),\n \t array('id' => '7647','state_id' => '428','name' => 'Thuin'),\n \t array('id' => '7648','state_id' => '428','name' => 'Tournai'),\n \t array('id' => '7649','state_id' => '429','name' => 'Amay'),\n \t array('id' => '7650','state_id' => '429','name' => 'Amel'),\n \t array('id' => '7651','state_id' => '429','name' => 'Angleur'),\n \t array('id' => '7652','state_id' => '429','name' => 'Ans'),\n \t array('id' => '7653','state_id' => '429','name' => 'Anthisnes'),\n \t array('id' => '7654','state_id' => '429','name' => 'Aubel'),\n \t array('id' => '7655','state_id' => '429','name' => 'Awans'),\n \t array('id' => '7656','state_id' => '429','name' => 'Aywaille'),\n \t array('id' => '7657','state_id' => '429','name' => 'Baelen'),\n \t array('id' => '7658','state_id' => '429','name' => 'Bassenge'),\n \t array('id' => '7659','state_id' => '429','name' => 'Berloz'),\n \t array('id' => '7660','state_id' => '429','name' => 'Beyne-Heusay'),\n \t array('id' => '7661','state_id' => '429','name' => 'Blegny'),\n \t array('id' => '7662','state_id' => '429','name' => 'Braives'),\n \t array('id' => '7663','state_id' => '429','name' => 'Bullingen'),\n \t array('id' => '7664','state_id' => '429','name' => 'Burdinne'),\n \t array('id' => '7665','state_id' => '429','name' => 'Burg-Reuland'),\n \t array('id' => '7666','state_id' => '429','name' => 'Butgenbach'),\n \t array('id' => '7667','state_id' => '429','name' => 'Chaudfontaine'),\n \t array('id' => '7668','state_id' => '429','name' => 'Clavier'),\n \t array('id' => '7669','state_id' => '429','name' => 'Comblain-au-Pont'),\n \t array('id' => '7670','state_id' => '429','name' => 'Crisnee'),\n \t array('id' => '7671','state_id' => '429','name' => 'Dalhem'),\n \t array('id' => '7672','state_id' => '429','name' => 'Dison'),\n \t array('id' => '7673','state_id' => '429','name' => 'Donceel'),\n \t array('id' => '7674','state_id' => '429','name' => 'Engis'),\n \t array('id' => '7675','state_id' => '429','name' => 'Esneux'),\n \t array('id' => '7676','state_id' => '429','name' => 'Eupen'),\n \t array('id' => '7677','state_id' => '429','name' => 'Faimes'),\n \t array('id' => '7678','state_id' => '429','name' => 'Ferrieres'),\n \t array('id' => '7679','state_id' => '429','name' => 'Fexhe-le-Haut-Clocher'),\n \t array('id' => '7680','state_id' => '429','name' => 'Flemalle'),\n \t array('id' => '7681','state_id' => '429','name' => 'Fleron'),\n \t array('id' => '7682','state_id' => '429','name' => 'Geer'),\n \t array('id' => '7683','state_id' => '429','name' => 'Grace-Hollogne'),\n \t array('id' => '7684','state_id' => '429','name' => 'Hamoir'),\n \t array('id' => '7685','state_id' => '429','name' => 'Hannut'),\n \t array('id' => '7686','state_id' => '429','name' => 'Heron'),\n \t array('id' => '7687','state_id' => '429','name' => 'Herstal'),\n \t array('id' => '7688','state_id' => '429','name' => 'Herve'),\n \t array('id' => '7689','state_id' => '429','name' => 'Huy'),\n \t array('id' => '7690','state_id' => '429','name' => 'Jalhay'),\n \t array('id' => '7691','state_id' => '429','name' => 'Juprelle'),\n \t array('id' => '7692','state_id' => '429','name' => 'Kelmis'),\n \t array('id' => '7693','state_id' => '429','name' => 'Liege'),\n \t array('id' => '7694','state_id' => '429','name' => 'Lierneux'),\n \t array('id' => '7695','state_id' => '429','name' => 'Limbourg'),\n \t array('id' => '7696','state_id' => '429','name' => 'Lincent'),\n \t array('id' => '7697','state_id' => '429','name' => 'Lontzen'),\n \t array('id' => '7698','state_id' => '429','name' => 'Malmedy'),\n \t array('id' => '7699','state_id' => '429','name' => 'Marchin'),\n \t array('id' => '7700','state_id' => '429','name' => 'Modave'),\n \t array('id' => '7701','state_id' => '429','name' => 'Montzen'),\n \t array('id' => '7702','state_id' => '429','name' => 'Nandrin'),\n \t array('id' => '7703','state_id' => '429','name' => 'Neupre'),\n \t array('id' => '7704','state_id' => '429','name' => 'Olne'),\n \t array('id' => '7705','state_id' => '429','name' => 'Oreye'),\n \t array('id' => '7706','state_id' => '429','name' => 'Ouffet'),\n \t array('id' => '7707','state_id' => '429','name' => 'Oupeye'),\n \t array('id' => '7708','state_id' => '429','name' => 'Pepinster'),\n \t array('id' => '7709','state_id' => '429','name' => 'Plombieres'),\n \t array('id' => '7710','state_id' => '429','name' => 'Racour'),\n \t array('id' => '7711','state_id' => '429','name' => 'Raeren'),\n \t array('id' => '7712','state_id' => '429','name' => 'Remicourt'),\n \t array('id' => '7713','state_id' => '429','name' => 'Saint-Georges-sur-Meuse'),\n \t array('id' => '7714','state_id' => '429','name' => 'Saint-Nicolas'),\n \t array('id' => '7715','state_id' => '429','name' => 'Sankt Vith'),\n \t array('id' => '7716','state_id' => '429','name' => 'Seraing'),\n \t array('id' => '7717','state_id' => '429','name' => 'Soumagne'),\n \t array('id' => '7718','state_id' => '429','name' => 'Spa'),\n \t array('id' => '7719','state_id' => '429','name' => 'Sprimont'),\n \t array('id' => '7720','state_id' => '429','name' => 'Stavelot'),\n \t array('id' => '7721','state_id' => '429','name' => 'Stoumont'),\n \t array('id' => '7722','state_id' => '429','name' => 'Theux'),\n \t array('id' => '7723','state_id' => '429','name' => 'Thimister-Clermont'),\n \t array('id' => '7724','state_id' => '429','name' => 'Tinlot'),\n \t array('id' => '7725','state_id' => '429','name' => 'Trois-Ponts'),\n \t array('id' => '7726','state_id' => '429','name' => 'Trooz'),\n \t array('id' => '7727','state_id' => '429','name' => 'Verlaine'),\n \t array('id' => '7728','state_id' => '429','name' => 'Verviers'),\n \t array('id' => '7729','state_id' => '429','name' => 'Villers-le-Bouillet'),\n \t array('id' => '7730','state_id' => '429','name' => 'Vise'),\n \t array('id' => '7731','state_id' => '429','name' => 'Waimes'),\n \t array('id' => '7732','state_id' => '429','name' => 'Wanze'),\n \t array('id' => '7733','state_id' => '429','name' => 'Waremme'),\n \t array('id' => '7734','state_id' => '429','name' => 'Wasseiges'),\n \t array('id' => '7735','state_id' => '429','name' => 'Welkenraedt'),\n \t array('id' => '7736','state_id' => '430','name' => 'Alken'),\n \t array('id' => '7737','state_id' => '430','name' => 'As'),\n \t array('id' => '7738','state_id' => '430','name' => 'Beringen'),\n \t array('id' => '7739','state_id' => '430','name' => 'Bilzen'),\n \t array('id' => '7740','state_id' => '430','name' => 'Bocholt'),\n \t array('id' => '7741','state_id' => '430','name' => 'Borgloon'),\n \t array('id' => '7742','state_id' => '430','name' => 'Bree'),\n \t array('id' => '7743','state_id' => '430','name' => 'Diepenbeek'),\n \t array('id' => '7744','state_id' => '430','name' => 'Dilsen-Stokkem'),\n \t array('id' => '7745','state_id' => '430','name' => 'Genk'),\n \t array('id' => '7746','state_id' => '430','name' => 'Gingelom'),\n \t array('id' => '7747','state_id' => '430','name' => 'Halen'),\n \t array('id' => '7748','state_id' => '430','name' => 'Ham'),\n \t array('id' => '7749','state_id' => '430','name' => 'Hamont-Achel'),\n \t array('id' => '7750','state_id' => '430','name' => 'Hasselt'),\n \t array('id' => '7751','state_id' => '430','name' => 'Hechtel-Eksel'),\n \t array('id' => '7752','state_id' => '430','name' => 'Heers'),\n \t array('id' => '7753','state_id' => '430','name' => 'Herk-de-Stad'),\n \t array('id' => '7754','state_id' => '430','name' => 'Herstappe'),\n \t array('id' => '7755','state_id' => '430','name' => 'Heusden-Zolder'),\n \t array('id' => '7756','state_id' => '430','name' => 'Hoeselt'),\n \t array('id' => '7757','state_id' => '430','name' => 'Houthalen-Helchteren'),\n \t array('id' => '7758','state_id' => '430','name' => 'Kinrooi'),\n \t array('id' => '7759','state_id' => '430','name' => 'Kortessem'),\n \t array('id' => '7760','state_id' => '430','name' => 'Kuringen'),\n \t array('id' => '7761','state_id' => '430','name' => 'Lanaken'),\n \t array('id' => '7762','state_id' => '430','name' => 'Leopoldsburg'),\n \t array('id' => '7763','state_id' => '430','name' => 'Lommel'),\n \t array('id' => '7764','state_id' => '430','name' => 'Lummen'),\n \t array('id' => '7765','state_id' => '430','name' => 'Maaseik'),\n \t array('id' => '7766','state_id' => '430','name' => 'Maasmechelen'),\n \t array('id' => '7767','state_id' => '430','name' => 'Meeuwen-Gruitrode'),\n \t array('id' => '7768','state_id' => '430','name' => 'Neerpelt'),\n \t array('id' => '7769','state_id' => '430','name' => 'Nieuwerkerken'),\n \t array('id' => '7770','state_id' => '430','name' => 'Opglabbeek'),\n \t array('id' => '7771','state_id' => '430','name' => 'Overpelt'),\n \t array('id' => '7772','state_id' => '430','name' => 'Peer'),\n \t array('id' => '7773','state_id' => '430','name' => 'Riemst'),\n \t array('id' => '7774','state_id' => '430','name' => 'Sint-Truiden'),\n \t array('id' => '7775','state_id' => '430','name' => 'Tessenderlo'),\n \t array('id' => '7776','state_id' => '430','name' => 'Tongeren'),\n \t array('id' => '7777','state_id' => '430','name' => 'Voeren'),\n \t array('id' => '7778','state_id' => '430','name' => 'Wellen'),\n \t array('id' => '7779','state_id' => '430','name' => 'Zonhoven'),\n \t array('id' => '7780','state_id' => '430','name' => 'Zutendaal'),\n \t array('id' => '7781','state_id' => '431','name' => 'Arlon'),\n \t array('id' => '7782','state_id' => '431','name' => 'Attert'),\n \t array('id' => '7783','state_id' => '431','name' => 'Aubange'),\n \t array('id' => '7784','state_id' => '431','name' => 'Bastogne'),\n \t array('id' => '7785','state_id' => '431','name' => 'Bertogne'),\n \t array('id' => '7786','state_id' => '431','name' => 'Bertrix'),\n \t array('id' => '7787','state_id' => '431','name' => 'Bouillon'),\n \t array('id' => '7788','state_id' => '431','name' => 'Chiny'),\n \t array('id' => '7789','state_id' => '431','name' => 'Daverdisse'),\n \t array('id' => '7790','state_id' => '431','name' => 'Durbuy'),\n \t array('id' => '7791','state_id' => '431','name' => 'Erezee'),\n \t array('id' => '7792','state_id' => '431','name' => 'Etalle'),\n \t array('id' => '7793','state_id' => '431','name' => 'Fauvillers'),\n \t array('id' => '7794','state_id' => '431','name' => 'Florenville'),\n \t array('id' => '7795','state_id' => '431','name' => 'Gouvy'),\n \t array('id' => '7796','state_id' => '431','name' => 'Grapfontaine'),\n \t array('id' => '7797','state_id' => '431','name' => 'Habay'),\n \t array('id' => '7798','state_id' => '431','name' => 'Herbeumont'),\n \t array('id' => '7799','state_id' => '431','name' => 'Hotton'),\n \t array('id' => '7800','state_id' => '431','name' => 'Houffalize'),\n \t array('id' => '7801','state_id' => '431','name' => 'La Roche-en-Ardenne'),\n \t array('id' => '7802','state_id' => '431','name' => 'Leglise'),\n \t array('id' => '7803','state_id' => '431','name' => 'Libin'),\n \t array('id' => '7804','state_id' => '431','name' => 'Libramont-Chevigny'),\n \t array('id' => '7805','state_id' => '431','name' => 'Manhay'),\n \t array('id' => '7806','state_id' => '431','name' => 'Marche-en-Famenne'),\n \t array('id' => '7807','state_id' => '431','name' => 'Marloie'),\n \t array('id' => '7808','state_id' => '431','name' => 'Martelange'),\n \t array('id' => '7809','state_id' => '431','name' => 'Meix-devant-Virton'),\n \t array('id' => '7810','state_id' => '431','name' => 'Messancy'),\n \t array('id' => '7811','state_id' => '431','name' => 'Musson'),\n \t array('id' => '7812','state_id' => '431','name' => 'Nassogne'),\n \t array('id' => '7813','state_id' => '431','name' => 'Neufchateau'),\n \t array('id' => '7814','state_id' => '431','name' => 'Paliseul'),\n \t array('id' => '7815','state_id' => '431','name' => 'Rendeux'),\n \t array('id' => '7816','state_id' => '431','name' => 'Rouvroy'),\n \t array('id' => '7817','state_id' => '431','name' => 'Saint-Hubert'),\n \t array('id' => '7818','state_id' => '431','name' => 'Saint-Leger'),\n \t array('id' => '7819','state_id' => '431','name' => 'Sainte-Ode'),\n \t array('id' => '7820','state_id' => '431','name' => 'Tellin'),\n \t array('id' => '7821','state_id' => '431','name' => 'Tenneville'),\n \t array('id' => '7822','state_id' => '431','name' => 'Tintigny'),\n \t array('id' => '7823','state_id' => '431','name' => 'Vaux-sur-Sure'),\n \t array('id' => '7824','state_id' => '431','name' => 'Vielsalm'),\n \t array('id' => '7825','state_id' => '431','name' => 'Virton'),\n \t array('id' => '7826','state_id' => '431','name' => 'Wellin'),\n \t array('id' => '7827','state_id' => '432','name' => 'Andenne'),\n \t array('id' => '7828','state_id' => '432','name' => 'Anhee'),\n \t array('id' => '7829','state_id' => '432','name' => 'Assesse'),\n \t array('id' => '7830','state_id' => '432','name' => 'Beauraing'),\n \t array('id' => '7831','state_id' => '432','name' => 'Bievre'),\n \t array('id' => '7832','state_id' => '432','name' => 'Cerfontaine'),\n \t array('id' => '7833','state_id' => '432','name' => 'Ciney'),\n \t array('id' => '7834','state_id' => '432','name' => 'Couvin'),\n \t array('id' => '7835','state_id' => '432','name' => 'Dinant'),\n \t array('id' => '7836','state_id' => '432','name' => 'Doische'),\n \t array('id' => '7837','state_id' => '432','name' => 'Eghezee'),\n \t array('id' => '7838','state_id' => '432','name' => 'Fernelmont'),\n \t array('id' => '7839','state_id' => '432','name' => 'Floreffe'),\n \t array('id' => '7840','state_id' => '432','name' => 'Florennes'),\n \t array('id' => '7841','state_id' => '432','name' => 'Fosses-la-Ville'),\n \t array('id' => '7842','state_id' => '432','name' => 'Gedinne'),\n \t array('id' => '7843','state_id' => '432','name' => 'Gembloux'),\n \t array('id' => '7844','state_id' => '432','name' => 'Gesves'),\n \t array('id' => '7845','state_id' => '432','name' => 'Hamois'),\n \t array('id' => '7846','state_id' => '432','name' => 'Hastiere'),\n \t array('id' => '7847','state_id' => '432','name' => 'Havelange'),\n \t array('id' => '7848','state_id' => '432','name' => 'Houyet'),\n \t array('id' => '7849','state_id' => '432','name' => 'Jambes'),\n \t array('id' => '7850','state_id' => '432','name' => 'Jemeppe-sur-Sambre'),\n \t array('id' => '7851','state_id' => '432','name' => 'La Bruyere'),\n \t array('id' => '7852','state_id' => '432','name' => 'Malonne'),\n \t array('id' => '7853','state_id' => '432','name' => 'Mettet'),\n \t array('id' => '7854','state_id' => '432','name' => 'Namur'),\n \t array('id' => '7855','state_id' => '432','name' => 'Ohey'),\n \t array('id' => '7856','state_id' => '432','name' => 'Onhaye'),\n \t array('id' => '7857','state_id' => '432','name' => 'Philippeville'),\n \t array('id' => '7858','state_id' => '432','name' => 'Profondeville'),\n \t array('id' => '7859','state_id' => '432','name' => 'Rochefort'),\n \t array('id' => '7860','state_id' => '432','name' => 'Sambreville'),\n \t array('id' => '7861','state_id' => '432','name' => 'Sombreffe'),\n \t array('id' => '7862','state_id' => '432','name' => 'Somme-Leuze'),\n \t array('id' => '7863','state_id' => '432','name' => 'Suarlee'),\n \t array('id' => '7864','state_id' => '432','name' => 'Viroinval'),\n \t array('id' => '7865','state_id' => '432','name' => 'Vresse-sur-Semois'),\n \t array('id' => '7866','state_id' => '432','name' => 'Walcourt'),\n \t array('id' => '7867','state_id' => '432','name' => 'Yvoir'),\n \t array('id' => '7868','state_id' => '433','name' => 'Gullegem'),\n \t array('id' => '7869','state_id' => '433','name' => 'Langdorp'),\n \t array('id' => '7870','state_id' => '434','name' => 'Aalst'),\n \t array('id' => '7871','state_id' => '434','name' => 'Aalter'),\n \t array('id' => '7872','state_id' => '434','name' => 'Assenede'),\n \t array('id' => '7873','state_id' => '434','name' => 'Berlare'),\n \t array('id' => '7874','state_id' => '434','name' => 'Beveren'),\n \t array('id' => '7875','state_id' => '434','name' => 'Brakel'),\n \t array('id' => '7876','state_id' => '434','name' => 'Buggenhout'),\n \t array('id' => '7877','state_id' => '434','name' => 'De Pinte'),\n \t array('id' => '7878','state_id' => '434','name' => 'Deinze'),\n \t array('id' => '7879','state_id' => '434','name' => 'Denderleeuw'),\n \t array('id' => '7880','state_id' => '434','name' => 'Dendermonde'),\n \t array('id' => '7881','state_id' => '434','name' => 'Destelbergen'),\n \t array('id' => '7882','state_id' => '434','name' => 'Drongen'),\n \t array('id' => '7883','state_id' => '434','name' => 'Eeklo'),\n \t array('id' => '7884','state_id' => '434','name' => 'Erembodegem'),\n \t array('id' => '7885','state_id' => '434','name' => 'Erpe-Mere'),\n \t array('id' => '7886','state_id' => '434','name' => 'Evergem'),\n \t array('id' => '7887','state_id' => '434','name' => 'Gavere'),\n \t array('id' => '7888','state_id' => '434','name' => 'Gent'),\n \t array('id' => '7889','state_id' => '434','name' => 'Geraardsbergen'),\n \t array('id' => '7890','state_id' => '434','name' => 'Ghent'),\n \t array('id' => '7891','state_id' => '434','name' => 'Haaltert'),\n \t array('id' => '7892','state_id' => '434','name' => 'Hamme'),\n \t array('id' => '7893','state_id' => '434','name' => 'Herzele'),\n \t array('id' => '7894','state_id' => '434','name' => 'Horebeke'),\n \t array('id' => '7895','state_id' => '434','name' => 'Kaprijke'),\n \t array('id' => '7896','state_id' => '434','name' => 'Kerksken'),\n \t array('id' => '7897','state_id' => '434','name' => 'Kluisbergen'),\n \t array('id' => '7898','state_id' => '434','name' => 'Knesselare'),\n \t array('id' => '7899','state_id' => '434','name' => 'Kruibeke'),\n \t array('id' => '7900','state_id' => '434','name' => 'Kruishoutem'),\n \t array('id' => '7901','state_id' => '434','name' => 'Laarne'),\n \t array('id' => '7902','state_id' => '434','name' => 'Lebbeke'),\n \t array('id' => '7903','state_id' => '434','name' => 'Lede'),\n \t array('id' => '7904','state_id' => '434','name' => 'Lierde'),\n \t array('id' => '7905','state_id' => '434','name' => 'Lochristi'),\n \t array('id' => '7906','state_id' => '434','name' => 'Lokeren'),\n \t array('id' => '7907','state_id' => '434','name' => 'Lovendegem'),\n \t array('id' => '7908','state_id' => '434','name' => 'Maarkedal'),\n \t array('id' => '7909','state_id' => '434','name' => 'Maldegem'),\n \t array('id' => '7910','state_id' => '434','name' => 'Melle'),\n \t array('id' => '7911','state_id' => '434','name' => 'Merelbeke'),\n \t array('id' => '7912','state_id' => '434','name' => 'Moerbeke'),\n \t array('id' => '7913','state_id' => '434','name' => 'Nazareth'),\n \t array('id' => '7914','state_id' => '434','name' => 'Nevele'),\n \t array('id' => '7915','state_id' => '434','name' => 'Ninove'),\n \t array('id' => '7916','state_id' => '434','name' => 'Oosterzele'),\n \t array('id' => '7917','state_id' => '434','name' => 'Oudenaarde'),\n \t array('id' => '7918','state_id' => '434','name' => 'Ronse'),\n \t array('id' => '7919','state_id' => '434','name' => 'Semmerzake'),\n \t array('id' => '7920','state_id' => '434','name' => 'Sint-Gillis-Waas'),\n \t array('id' => '7921','state_id' => '434','name' => 'Sint-Laureins'),\n \t array('id' => '7922','state_id' => '434','name' => 'Sint-Lievens-Houtem'),\n \t array('id' => '7923','state_id' => '434','name' => 'Sint-Martens-Latem'),\n \t array('id' => '7924','state_id' => '434','name' => 'Sint-Niklaas'),\n \t array('id' => '7925','state_id' => '434','name' => 'Stekene'),\n \t array('id' => '7926','state_id' => '434','name' => 'Temse'),\n \t array('id' => '7927','state_id' => '434','name' => 'Waarschoot'),\n \t array('id' => '7928','state_id' => '434','name' => 'Waasmunster'),\n \t array('id' => '7929','state_id' => '434','name' => 'Wachtebeke'),\n \t array('id' => '7930','state_id' => '434','name' => 'Wetteren'),\n \t array('id' => '7931','state_id' => '434','name' => 'Wichelen'),\n \t array('id' => '7932','state_id' => '434','name' => 'Wortegem-Petegem'),\n \t array('id' => '7933','state_id' => '434','name' => 'Zele'),\n \t array('id' => '7934','state_id' => '434','name' => 'Zelzate'),\n \t array('id' => '7935','state_id' => '434','name' => 'Zingem'),\n \t array('id' => '7936','state_id' => '434','name' => 'Zomergem'),\n \t array('id' => '7937','state_id' => '434','name' => 'Zottegem'),\n \t array('id' => '7938','state_id' => '434','name' => 'Zulte'),\n \t array('id' => '7939','state_id' => '434','name' => 'Zwalm'),\n \t array('id' => '7940','state_id' => '434','name' => 'Zwijnaarde'),\n \t array('id' => '7941','state_id' => '436','name' => 'Aarschot'),\n \t array('id' => '7942','state_id' => '436','name' => 'Affligem'),\n \t array('id' => '7943','state_id' => '436','name' => 'Asse'),\n \t array('id' => '7944','state_id' => '436','name' => 'Beersel'),\n \t array('id' => '7945','state_id' => '436','name' => 'Begijnendijk'),\n \t array('id' => '7946','state_id' => '436','name' => 'Bekkevoort'),\n \t array('id' => '7947','state_id' => '436','name' => 'Bertem'),\n \t array('id' => '7948','state_id' => '436','name' => 'Bever'),\n \t array('id' => '7949','state_id' => '436','name' => 'Bierbeek'),\n \t array('id' => '7950','state_id' => '436','name' => 'Boortmeerbeek'),\n \t array('id' => '7951','state_id' => '436','name' => 'Boutersem'),\n \t array('id' => '7952','state_id' => '436','name' => 'Diest'),\n \t array('id' => '7953','state_id' => '436','name' => 'Dilbeek'),\n \t array('id' => '7954','state_id' => '436','name' => 'Drogenbos'),\n \t array('id' => '7955','state_id' => '436','name' => 'Galmaarden'),\n \t array('id' => '7956','state_id' => '436','name' => 'Geetbets'),\n \t array('id' => '7957','state_id' => '436','name' => 'Glabbeek'),\n \t array('id' => '7958','state_id' => '436','name' => 'Gooik'),\n \t array('id' => '7959','state_id' => '436','name' => 'Grimbergen'),\n \t array('id' => '7960','state_id' => '436','name' => 'Haacht'),\n \t array('id' => '7961','state_id' => '436','name' => 'Halle'),\n \t array('id' => '7962','state_id' => '436','name' => 'Herent'),\n \t array('id' => '7963','state_id' => '436','name' => 'Herne'),\n \t array('id' => '7964','state_id' => '436','name' => 'Hoegaarden'),\n \t array('id' => '7965','state_id' => '436','name' => 'Hoeilaart'),\n \t array('id' => '7966','state_id' => '436','name' => 'Holsbeek'),\n \t array('id' => '7967','state_id' => '436','name' => 'Huldenberg'),\n \t array('id' => '7968','state_id' => '436','name' => 'Kampenhout'),\n \t array('id' => '7969','state_id' => '436','name' => 'Kapelle-op-den-Bos'),\n \t array('id' => '7970','state_id' => '436','name' => 'Keerbergen'),\n \t array('id' => '7971','state_id' => '436','name' => 'Kortenaken'),\n \t array('id' => '7972','state_id' => '436','name' => 'Kortenberg'),\n \t array('id' => '7973','state_id' => '436','name' => 'Kraainem'),\n \t array('id' => '7974','state_id' => '436','name' => 'Landen'),\n \t array('id' => '7975','state_id' => '436','name' => 'Lennik'),\n \t array('id' => '7976','state_id' => '436','name' => 'Leuven'),\n \t array('id' => '7977','state_id' => '436','name' => 'Liedekerke'),\n \t array('id' => '7978','state_id' => '436','name' => 'Linkebeek'),\n \t array('id' => '7979','state_id' => '436','name' => 'Linter'),\n \t array('id' => '7980','state_id' => '436','name' => 'Londerzeel'),\n \t array('id' => '7981','state_id' => '436','name' => 'Lubbeek'),\n \t array('id' => '7982','state_id' => '436','name' => 'Machelen'),\n \t array('id' => '7983','state_id' => '436','name' => 'Meise'),\n \t array('id' => '7984','state_id' => '436','name' => 'Merchtem'),\n \t array('id' => '7985','state_id' => '436','name' => 'Opwijk'),\n \t array('id' => '7986','state_id' => '436','name' => 'Oud-Heverlee'),\n \t array('id' => '7987','state_id' => '436','name' => 'Overijse'),\n \t array('id' => '7988','state_id' => '436','name' => 'Pepingen'),\n \t array('id' => '7989','state_id' => '436','name' => 'Roosdaal'),\n \t array('id' => '7990','state_id' => '436','name' => 'Rotselaar'),\n \t array('id' => '7991','state_id' => '436','name' => 'Scherpenheuvel-Zichem'),\n \t array('id' => '7992','state_id' => '436','name' => 'Sint-Genesius-Rode'),\n \t array('id' => '7993','state_id' => '436','name' => 'Sint-Pieters-Leeuw'),\n \t array('id' => '7994','state_id' => '436','name' => 'Steenokkerzeel'),\n \t array('id' => '7995','state_id' => '436','name' => 'Ternat'),\n \t array('id' => '7996','state_id' => '436','name' => 'Tervuren'),\n \t array('id' => '7997','state_id' => '436','name' => 'Tielt-Winge'),\n \t array('id' => '7998','state_id' => '436','name' => 'Tienen'),\n \t array('id' => '7999','state_id' => '436','name' => 'Tremelo'),\n \t array('id' => '8000','state_id' => '436','name' => 'Vilvoorde'),\n \t array('id' => '8001','state_id' => '436','name' => 'Wemmel'),\n \t array('id' => '8002','state_id' => '436','name' => 'Wezembeek-Oppem'),\n \t array('id' => '8003','state_id' => '436','name' => 'Zaventem'),\n \t array('id' => '8004','state_id' => '436','name' => 'Zemst'),\n \t array('id' => '8005','state_id' => '436','name' => 'Zoutleeuw'),\n \t array('id' => '8006','state_id' => '437','name' => 'Callenelle'),\n \t array('id' => '8007','state_id' => '437','name' => 'Marcinelle'),\n \t array('id' => '8008','state_id' => '437','name' => 'Strepy-Bracquegnies'),\n \t array('id' => '8009','state_id' => '438','name' => 'Alveringem'),\n \t array('id' => '8010','state_id' => '438','name' => 'Anzegem'),\n \t array('id' => '8011','state_id' => '438','name' => 'Ardooie'),\n \t array('id' => '8012','state_id' => '438','name' => 'Avelgem'),\n \t array('id' => '8013','state_id' => '438','name' => 'Beernem'),\n \t array('id' => '8014','state_id' => '438','name' => 'Blankenberge'),\n \t array('id' => '8015','state_id' => '438','name' => 'Bredene'),\n \t array('id' => '8016','state_id' => '438','name' => 'Brugge'),\n \t array('id' => '8017','state_id' => '438','name' => 'Damme'),\n \t array('id' => '8018','state_id' => '438','name' => 'De Haan'),\n \t array('id' => '8019','state_id' => '438','name' => 'De Panne'),\n \t array('id' => '8020','state_id' => '438','name' => 'Deerlijk'),\n \t array('id' => '8021','state_id' => '438','name' => 'Dentergem'),\n \t array('id' => '8022','state_id' => '438','name' => 'Diksmuide'),\n \t array('id' => '8023','state_id' => '438','name' => 'Geluveld'),\n \t array('id' => '8024','state_id' => '438','name' => 'Gistel'),\n \t array('id' => '8025','state_id' => '438','name' => 'Harelbeke'),\n \t array('id' => '8026','state_id' => '438','name' => 'Heuvelland'),\n \t array('id' => '8027','state_id' => '438','name' => 'Hooglede'),\n \t array('id' => '8028','state_id' => '438','name' => 'Houthulst'),\n \t array('id' => '8029','state_id' => '438','name' => 'Ichtegem'),\n \t array('id' => '8030','state_id' => '438','name' => 'Ieper'),\n \t array('id' => '8031','state_id' => '438','name' => 'Ingelmunster'),\n \t array('id' => '8032','state_id' => '438','name' => 'Ingooigem'),\n \t array('id' => '8033','state_id' => '438','name' => 'Izegem'),\n \t array('id' => '8034','state_id' => '438','name' => 'Jabbeke'),\n \t array('id' => '8035','state_id' => '438','name' => 'Knokke-Heist'),\n \t array('id' => '8036','state_id' => '438','name' => 'Koekelare'),\n \t array('id' => '8037','state_id' => '438','name' => 'Koksijde'),\n \t array('id' => '8038','state_id' => '438','name' => 'Kortemark'),\n \t array('id' => '8039','state_id' => '438','name' => 'Kortrijk'),\n \t array('id' => '8040','state_id' => '438','name' => 'Kuurne'),\n \t array('id' => '8041','state_id' => '438','name' => 'Langemark-Poelkapelle'),\n \t array('id' => '8042','state_id' => '438','name' => 'Ledegem'),\n \t array('id' => '8043','state_id' => '438','name' => 'Lendelede'),\n \t array('id' => '8044','state_id' => '438','name' => 'Lichtervelde'),\n \t array('id' => '8045','state_id' => '438','name' => 'Lo-Reninge'),\n \t array('id' => '8046','state_id' => '438','name' => 'Menen'),\n \t array('id' => '8047','state_id' => '438','name' => 'Mesen'),\n \t array('id' => '8048','state_id' => '438','name' => 'Meulebeke'),\n \t array('id' => '8049','state_id' => '438','name' => 'Middelkerke'),\n \t array('id' => '8050','state_id' => '438','name' => 'Moorslede'),\n \t array('id' => '8051','state_id' => '438','name' => 'Nieuwpoort'),\n \t array('id' => '8052','state_id' => '438','name' => 'Oostende'),\n \t array('id' => '8053','state_id' => '438','name' => 'Oostkamp'),\n \t array('id' => '8054','state_id' => '438','name' => 'Oostrozebeke'),\n \t array('id' => '8055','state_id' => '438','name' => 'Oudenburg'),\n \t array('id' => '8056','state_id' => '438','name' => 'Pittem'),\n \t array('id' => '8057','state_id' => '438','name' => 'Poperinge'),\n \t array('id' => '8058','state_id' => '438','name' => 'Roeselare'),\n \t array('id' => '8059','state_id' => '438','name' => 'Ruiselede'),\n \t array('id' => '8060','state_id' => '438','name' => 'Spiere-Helkijn'),\n \t array('id' => '8061','state_id' => '438','name' => 'Staden'),\n \t array('id' => '8062','state_id' => '438','name' => 'Tielt'),\n \t array('id' => '8063','state_id' => '438','name' => 'Torhout'),\n \t array('id' => '8064','state_id' => '438','name' => 'Veurne'),\n \t array('id' => '8065','state_id' => '438','name' => 'Vleteren'),\n \t array('id' => '8066','state_id' => '438','name' => 'Waregem'),\n \t array('id' => '8067','state_id' => '438','name' => 'Wervik'),\n \t array('id' => '8068','state_id' => '438','name' => 'Wevelgem'),\n \t array('id' => '8069','state_id' => '438','name' => 'Wielsbeke'),\n \t array('id' => '8070','state_id' => '438','name' => 'Wingene'),\n \t array('id' => '8071','state_id' => '438','name' => 'Zedelgem'),\n \t array('id' => '8072','state_id' => '438','name' => 'Zeebrugge'),\n \t array('id' => '8073','state_id' => '438','name' => 'Zonnebeke'),\n \t array('id' => '8074','state_id' => '438','name' => 'Zuienkerke'),\n \t array('id' => '8075','state_id' => '438','name' => 'Zwevegem'),\n \t array('id' => '8076','state_id' => '439','name' => 'Belize'),\n \t array('id' => '8077','state_id' => '439','name' => 'San Pedro'),\n \t array('id' => '8078','state_id' => '440','name' => 'Belmopan'),\n \t array('id' => '8079','state_id' => '440','name' => 'Benque Viejo'),\n \t array('id' => '8080','state_id' => '440','name' => 'San Ignacio'),\n \t array('id' => '8081','state_id' => '441','name' => 'Corozal'),\n \t array('id' => '8082','state_id' => '444','name' => 'Punta Gorda'),\n \t array('id' => '8083','state_id' => '445','name' => 'Kandi'),\n \t array('id' => '8084','state_id' => '445','name' => 'Malanville'),\n \t array('id' => '8085','state_id' => '446','name' => 'Batia'),\n \t array('id' => '8086','state_id' => '446','name' => 'Boukombe'),\n \t array('id' => '8087','state_id' => '446','name' => 'Kouande'),\n \t array('id' => '8088','state_id' => '446','name' => 'Natitingou'),\n \t array('id' => '8089','state_id' => '447','name' => 'Allada'),\n \t array('id' => '8090','state_id' => '447','name' => 'Cotonou'),\n \t array('id' => '8091','state_id' => '447','name' => 'Ouidah'),\n \t array('id' => '8092','state_id' => '447','name' => 'Tanguiete'),\n \t array('id' => '8093','state_id' => '448','name' => 'Bembereke'),\n \t array('id' => '8094','state_id' => '448','name' => 'Nikki'),\n \t array('id' => '8095','state_id' => '448','name' => 'Parakou'),\n \t array('id' => '8096','state_id' => '448','name' => 'Tchaourou'),\n \t array('id' => '8097','state_id' => '449','name' => 'Dassa'),\n \t array('id' => '8098','state_id' => '449','name' => 'Savalou'),\n \t array('id' => '8099','state_id' => '449','name' => 'Save'),\n \t array('id' => '8100','state_id' => '450','name' => 'Aplahoue'),\n \t array('id' => '8101','state_id' => '450','name' => 'Dogbo'),\n \t array('id' => '8102','state_id' => '451','name' => 'Djougou'),\n \t array('id' => '8103','state_id' => '452','name' => 'Cotonou'),\n \t array('id' => '8104','state_id' => '453','name' => 'Athieme'),\n \t array('id' => '8105','state_id' => '453','name' => 'Come'),\n \t array('id' => '8106','state_id' => '453','name' => 'Grand Popo'),\n \t array('id' => '8107','state_id' => '453','name' => 'Lokossa'),\n \t array('id' => '8108','state_id' => '454','name' => 'Adjohoun'),\n \t array('id' => '8109','state_id' => '454','name' => 'Porto Novo'),\n \t array('id' => '8110','state_id' => '455','name' => 'Ketou'),\n \t array('id' => '8111','state_id' => '455','name' => 'Pobe'),\n \t array('id' => '8112','state_id' => '455','name' => 'Sakete'),\n \t array('id' => '8113','state_id' => '456','name' => 'Abomey'),\n \t array('id' => '8114','state_id' => '456','name' => 'Bohicon'),\n \t array('id' => '8115','state_id' => '456','name' => 'Cove'),\n \t array('id' => '8116','state_id' => '456','name' => 'Zagnanado'),\n \t array('id' => '8117','state_id' => '457','name' => 'Hamilton'),\n \t array('id' => '8118','state_id' => '459','name' => 'Jakar'),\n \t array('id' => '8119','state_id' => '460','name' => 'Chhukha'),\n \t array('id' => '8120','state_id' => '460','name' => 'Phuentsholing'),\n \t array('id' => '8121','state_id' => '461','name' => 'Damphu'),\n \t array('id' => '8122','state_id' => '462','name' => 'Taga Dzong'),\n \t array('id' => '8123','state_id' => '463','name' => 'Geylegphug'),\n \t array('id' => '8124','state_id' => '464','name' => 'Ha'),\n \t array('id' => '8125','state_id' => '465','name' => 'Lhuntshi'),\n \t array('id' => '8126','state_id' => '466','name' => 'Mongar'),\n \t array('id' => '8127','state_id' => '467','name' => 'Pemagatsel'),\n \t array('id' => '8128','state_id' => '468','name' => 'Gasa'),\n \t array('id' => '8129','state_id' => '468','name' => 'Punakha'),\n \t array('id' => '8130','state_id' => '469','name' => 'Paro'),\n \t array('id' => '8131','state_id' => '470','name' => 'Phuntsholing'),\n \t array('id' => '8132','state_id' => '470','name' => 'Samchi'),\n \t array('id' => '8133','state_id' => '472','name' => 'Shemgang'),\n \t array('id' => '8134','state_id' => '473','name' => 'Tashigang'),\n \t array('id' => '8135','state_id' => '474','name' => 'Thimphu'),\n \t array('id' => '8136','state_id' => '474','name' => 'Timphu'),\n \t array('id' => '8137','state_id' => '475','name' => 'Tongsa'),\n \t array('id' => '8138','state_id' => '476','name' => 'Wangdiphodrang'),\n \t array('id' => '8139','state_id' => '477','name' => 'Guayaramerin'),\n \t array('id' => '8140','state_id' => '477','name' => 'Magdalena'),\n \t array('id' => '8141','state_id' => '477','name' => 'Reyes'),\n \t array('id' => '8142','state_id' => '477','name' => 'Riberalta'),\n \t array('id' => '8143','state_id' => '477','name' => 'Rurrenabaque'),\n \t array('id' => '8144','state_id' => '477','name' => 'San Borja'),\n \t array('id' => '8145','state_id' => '477','name' => 'San Ignacio'),\n \t array('id' => '8146','state_id' => '477','name' => 'San Ramon'),\n \t array('id' => '8147','state_id' => '477','name' => 'Santa Ana'),\n \t array('id' => '8148','state_id' => '477','name' => 'Santa Rosa'),\n \t array('id' => '8149','state_id' => '477','name' => 'Trinidad'),\n \t array('id' => '8150','state_id' => '478','name' => 'Camargo'),\n \t array('id' => '8151','state_id' => '478','name' => 'Monteagudo'),\n \t array('id' => '8152','state_id' => '478','name' => 'Muyupampa'),\n \t array('id' => '8153','state_id' => '478','name' => 'Padilla'),\n \t array('id' => '8154','state_id' => '478','name' => 'Sucre'),\n \t array('id' => '8155','state_id' => '478','name' => 'Tarabuco'),\n \t array('id' => '8156','state_id' => '478','name' => 'Villa Serano'),\n \t array('id' => '8157','state_id' => '479','name' => 'Aiquile'),\n \t array('id' => '8158','state_id' => '479','name' => 'Arani'),\n \t array('id' => '8159','state_id' => '479','name' => 'Capinota'),\n \t array('id' => '8160','state_id' => '479','name' => 'Chimore'),\n \t array('id' => '8161','state_id' => '479','name' => 'Cliza'),\n \t array('id' => '8162','state_id' => '479','name' => 'Cochabamba'),\n \t array('id' => '8163','state_id' => '479','name' => 'Colomi'),\n \t array('id' => '8164','state_id' => '479','name' => 'Entre Rios'),\n \t array('id' => '8165','state_id' => '479','name' => 'Irpa Irpa'),\n \t array('id' => '8166','state_id' => '479','name' => 'Ivirgarzama'),\n \t array('id' => '8167','state_id' => '479','name' => 'Mizque'),\n \t array('id' => '8168','state_id' => '479','name' => 'Punata'),\n \t array('id' => '8169','state_id' => '479','name' => 'Shinahota'),\n \t array('id' => '8170','state_id' => '479','name' => 'Sipe Sipe'),\n \t array('id' => '8171','state_id' => '479','name' => 'Tarata'),\n \t array('id' => '8172','state_id' => '479','name' => 'Ucurena'),\n \t array('id' => '8173','state_id' => '481','name' => 'Caracollo'),\n \t array('id' => '8174','state_id' => '481','name' => 'Challapata'),\n \t array('id' => '8175','state_id' => '481','name' => 'Eucaliptus'),\n \t array('id' => '8176','state_id' => '481','name' => 'Huanuni'),\n \t array('id' => '8177','state_id' => '481','name' => 'Machacamarca'),\n \t array('id' => '8178','state_id' => '481','name' => 'Oruro'),\n \t array('id' => '8179','state_id' => '481','name' => 'Poopo'),\n \t array('id' => '8180','state_id' => '481','name' => 'Santiago de Huari'),\n \t array('id' => '8181','state_id' => '481','name' => 'Totoral'),\n \t array('id' => '8182','state_id' => '482','name' => 'Cobija'),\n \t array('id' => '8183','state_id' => '483','name' => 'Atocha'),\n \t array('id' => '8184','state_id' => '483','name' => 'Betanzos'),\n \t array('id' => '8185','state_id' => '483','name' => 'Colquechaca'),\n \t array('id' => '8186','state_id' => '483','name' => 'Llallagua'),\n \t array('id' => '8187','state_id' => '483','name' => 'Potosi'),\n \t array('id' => '8188','state_id' => '483','name' => 'Santa Barbara'),\n \t array('id' => '8189','state_id' => '483','name' => 'Tupiza'),\n \t array('id' => '8190','state_id' => '483','name' => 'Uncia'),\n \t array('id' => '8191','state_id' => '483','name' => 'Uyuni'),\n \t array('id' => '8192','state_id' => '483','name' => 'Villazon'),\n \t array('id' => '8193','state_id' => '485','name' => 'Bermejo'),\n \t array('id' => '8194','state_id' => '485','name' => 'Entre Rios'),\n \t array('id' => '8195','state_id' => '485','name' => 'San Lorenzo'),\n \t array('id' => '8196','state_id' => '485','name' => 'Tarija'),\n \t array('id' => '8197','state_id' => '485','name' => 'Villamontes'),\n \t array('id' => '8198','state_id' => '485','name' => 'Yacuiba'),\n \t array('id' => '8199','state_id' => '493','name' => 'Kachikau'),\n \t array('id' => '8200','state_id' => '493','name' => 'Kasane'),\n \t array('id' => '8201','state_id' => '493','name' => 'Kavimba'),\n \t array('id' => '8202','state_id' => '493','name' => 'Kazungula'),\n \t array('id' => '8203','state_id' => '493','name' => 'Lesoma'),\n \t array('id' => '8204','state_id' => '493','name' => 'Muchinje-Mabale'),\n \t array('id' => '8205','state_id' => '493','name' => 'Pandamatenga'),\n \t array('id' => '8206','state_id' => '493','name' => 'Pandamatenga Botswana Defence '),\n \t array('id' => '8207','state_id' => '493','name' => 'Parakarungu'),\n \t array('id' => '8208','state_id' => '493','name' => 'Satau'),\n \t array('id' => '8209','state_id' => '494','name' => 'Francistown'),\n \t array('id' => '8210','state_id' => '495','name' => 'Gaborone'),\n \t array('id' => '8211','state_id' => '496','name' => 'Bere'),\n \t array('id' => '8212','state_id' => '496','name' => 'Charles Hill'),\n \t array('id' => '8213','state_id' => '496','name' => 'Chobokwane'),\n \t array('id' => '8214','state_id' => '496','name' => 'Dekar'),\n \t array('id' => '8215','state_id' => '496','name' => 'East Hanahai'),\n \t array('id' => '8216','state_id' => '496','name' => 'Ghanzi'),\n \t array('id' => '8217','state_id' => '496','name' => 'Groote Laagte'),\n \t array('id' => '8218','state_id' => '496','name' => 'Kacgae'),\n \t array('id' => '8219','state_id' => '496','name' => 'Karakobis'),\n \t array('id' => '8220','state_id' => '496','name' => 'Kuke Quarantine Camp'),\n \t array('id' => '8221','state_id' => '496','name' => 'Kule'),\n \t array('id' => '8222','state_id' => '496','name' => 'Makunda'),\n \t array('id' => '8223','state_id' => '496','name' => 'Ncojane'),\n \t array('id' => '8224','state_id' => '496','name' => 'New Xade'),\n \t array('id' => '8225','state_id' => '496','name' => 'New Xanagas'),\n \t array('id' => '8226','state_id' => '496','name' => 'Qabo'),\n \t array('id' => '8227','state_id' => '496','name' => 'Tsootsha'),\n \t array('id' => '8228','state_id' => '496','name' => 'West Hanahai'),\n \t array('id' => '8229','state_id' => '497','name' => 'Jwaneng'),\n \t array('id' => '8230','state_id' => '500','name' => 'Artisia'),\n \t array('id' => '8231','state_id' => '500','name' => 'Bokaa'),\n \t array('id' => '8232','state_id' => '500','name' => 'Dikgonye'),\n \t array('id' => '8233','state_id' => '500','name' => 'Dikwididi'),\n \t array('id' => '8234','state_id' => '500','name' => 'Kgomodiatshaba'),\n \t array('id' => '8235','state_id' => '500','name' => 'Khurutshe'),\n \t array('id' => '8236','state_id' => '500','name' => 'Leshibitse'),\n \t array('id' => '8237','state_id' => '500','name' => 'Mabalane'),\n \t array('id' => '8238','state_id' => '500','name' => 'Malolwane'),\n \t array('id' => '8239','state_id' => '500','name' => 'Malotwana Siding'),\n \t array('id' => '8240','state_id' => '500','name' => 'Matebeleng'),\n \t array('id' => '8241','state_id' => '500','name' => 'Mmamashia'),\n \t array('id' => '8242','state_id' => '500','name' => 'Mmathubudukwane'),\n \t array('id' => '8243','state_id' => '500','name' => 'Mochudi'),\n \t array('id' => '8244','state_id' => '500','name' => 'Modipane'),\n \t array('id' => '8245','state_id' => '500','name' => 'Morwa'),\n \t array('id' => '8246','state_id' => '500','name' => 'Oliphants Drift'),\n \t array('id' => '8247','state_id' => '500','name' => 'Oodi'),\n \t array('id' => '8248','state_id' => '500','name' => 'Pilane'),\n \t array('id' => '8249','state_id' => '500','name' => 'Ramonaka'),\n \t array('id' => '8250','state_id' => '500','name' => 'Ramotlabaki'),\n \t array('id' => '8251','state_id' => '500','name' => 'Rasesa'),\n \t array('id' => '8252','state_id' => '500','name' => 'Sikwane'),\n \t array('id' => '8253','state_id' => '501','name' => 'Boatlaname'),\n \t array('id' => '8254','state_id' => '501','name' => 'Botlhapatlou'),\n \t array('id' => '8255','state_id' => '501','name' => 'Diagane'),\n \t array('id' => '8256','state_id' => '501','name' => 'Diphudugodu'),\n \t array('id' => '8257','state_id' => '501','name' => 'Diremogolo Lands'),\n \t array('id' => '8258','state_id' => '501','name' => 'Ditshegwane'),\n \t array('id' => '8259','state_id' => '501','name' => 'Ditshukudu'),\n \t array('id' => '8260','state_id' => '501','name' => 'Dumadumane'),\n \t array('id' => '8261','state_id' => '501','name' => 'Dutlwe'),\n \t array('id' => '8262','state_id' => '501','name' => 'Gabane'),\n \t array('id' => '8263','state_id' => '501','name' => 'Gakgatla'),\n \t array('id' => '8264','state_id' => '501','name' => 'Gakuto'),\n \t array('id' => '8265','state_id' => '501','name' => 'Galekgatshwane'),\n \t array('id' => '8266','state_id' => '501','name' => 'Gamodubu'),\n \t array('id' => '8267','state_id' => '501','name' => 'Gaphatshwa'),\n \t array('id' => '8268','state_id' => '501','name' => 'Hatsalatladi'),\n \t array('id' => '8269','state_id' => '501','name' => 'Kamenakwe'),\n \t array('id' => '8270','state_id' => '501','name' => 'Kaudwane'),\n \t array('id' => '8271','state_id' => '501','name' => 'Kgaphamadi'),\n \t array('id' => '8272','state_id' => '501','name' => 'Kgope'),\n \t array('id' => '8273','state_id' => '501','name' => 'Khekhenya-Chepetese'),\n \t array('id' => '8274','state_id' => '501','name' => 'Khudumelapye'),\n \t array('id' => '8275','state_id' => '501','name' => 'Kopong'),\n \t array('id' => '8276','state_id' => '501','name' => 'Kotolaname'),\n \t array('id' => '8277','state_id' => '501','name' => 'Kubung'),\n \t array('id' => '8278','state_id' => '501','name' => 'Kumakwane'),\n \t array('id' => '8279','state_id' => '501','name' => 'Kweneng'),\n \t array('id' => '8280','state_id' => '501','name' => 'Lentsweletau'),\n \t array('id' => '8281','state_id' => '501','name' => 'Lephepe'),\n \t array('id' => '8282','state_id' => '501','name' => 'Lesirane'),\n \t array('id' => '8283','state_id' => '501','name' => 'Letlhakeng'),\n \t array('id' => '8284','state_id' => '501','name' => 'Losilakgokong'),\n \t array('id' => '8285','state_id' => '501','name' => 'Maboane'),\n \t array('id' => '8286','state_id' => '501','name' => 'Mahetlwe'),\n \t array('id' => '8287','state_id' => '501','name' => 'Makabanyane-Dikgokong'),\n \t array('id' => '8288','state_id' => '501','name' => 'Malwelwe'),\n \t array('id' => '8289','state_id' => '501','name' => 'Mamhiko'),\n \t array('id' => '8290','state_id' => '501','name' => 'Manaledi'),\n \t array('id' => '8291','state_id' => '501','name' => 'Mantshwabisi'),\n \t array('id' => '8292','state_id' => '501','name' => 'Marejwane'),\n \t array('id' => '8293','state_id' => '501','name' => 'Masebele'),\n \t array('id' => '8294','state_id' => '501','name' => 'Medie'),\n \t array('id' => '8295','state_id' => '501','name' => 'Metsibotlhoko'),\n \t array('id' => '8296','state_id' => '501','name' => 'Metsimotlhaba'),\n \t array('id' => '8297','state_id' => '501','name' => 'Mmakanke'),\n \t array('id' => '8298','state_id' => '501','name' => 'Mmankgodi'),\n \t array('id' => '8299','state_id' => '501','name' => 'Mmanoko'),\n \t array('id' => '8300','state_id' => '501','name' => 'Mmokolodi'),\n \t array('id' => '8301','state_id' => '501','name' => 'Mmopane'),\n \t array('id' => '8302','state_id' => '501','name' => 'Mmopane Lands'),\n \t array('id' => '8303','state_id' => '501','name' => 'Mogoditshane'),\n \t array('id' => '8304','state_id' => '501','name' => 'Mogoditshane Botswana Defence '),\n \t array('id' => '8305','state_id' => '501','name' => 'Mogoditshane Lands'),\n \t array('id' => '8306','state_id' => '501','name' => 'Mogonono'),\n \t array('id' => '8307','state_id' => '501','name' => 'Molepolole'),\n \t array('id' => '8308','state_id' => '501','name' => 'Mononyane'),\n \t array('id' => '8309','state_id' => '501','name' => 'Monwane'),\n \t array('id' => '8310','state_id' => '501','name' => 'Morabane'),\n \t array('id' => '8311','state_id' => '501','name' => 'Morope'),\n \t array('id' => '8312','state_id' => '501','name' => 'Moshaweng'),\n \t array('id' => '8313','state_id' => '501','name' => 'Mosokotswe'),\n \t array('id' => '8314','state_id' => '501','name' => 'Motokwe'),\n \t array('id' => '8315','state_id' => '501','name' => 'Ngware'),\n \t array('id' => '8316','state_id' => '501','name' => 'Nkoyaphiri'),\n \t array('id' => '8317','state_id' => '501','name' => 'Ramaphatlhe'),\n \t array('id' => '8318','state_id' => '501','name' => 'Salajwe'),\n \t array('id' => '8319','state_id' => '501','name' => 'Serinane'),\n \t array('id' => '8320','state_id' => '501','name' => 'Sesung'),\n \t array('id' => '8321','state_id' => '501','name' => 'Shadishadi'),\n \t array('id' => '8322','state_id' => '501','name' => 'Sojwe'),\n \t array('id' => '8323','state_id' => '501','name' => 'Sorilatholo'),\n \t array('id' => '8324','state_id' => '501','name' => 'Suping'),\n \t array('id' => '8325','state_id' => '501','name' => 'Takatokwane'),\n \t array('id' => '8326','state_id' => '501','name' => 'Thamaga'),\n \t array('id' => '8327','state_id' => '501','name' => 'Thebephatshwa'),\n \t array('id' => '8328','state_id' => '501','name' => 'Tlowaneng'),\n \t array('id' => '8329','state_id' => '501','name' => 'Tsetseng'),\n \t array('id' => '8330','state_id' => '501','name' => 'Tswaane'),\n \t array('id' => '8331','state_id' => '502','name' => 'Lobatse'),\n \t array('id' => '8332','state_id' => '503','name' => 'Bodibeng'),\n \t array('id' => '8333','state_id' => '503','name' => 'Boro'),\n \t array('id' => '8334','state_id' => '503','name' => 'Botlhatlogo'),\n \t array('id' => '8335','state_id' => '503','name' => 'Chanoga'),\n \t array('id' => '8336','state_id' => '503','name' => 'Chuchubega'),\n \t array('id' => '8337','state_id' => '503','name' => 'Daonara'),\n \t array('id' => '8338','state_id' => '503','name' => 'Ditshiping'),\n \t array('id' => '8339','state_id' => '503','name' => 'Habu'),\n \t array('id' => '8340','state_id' => '503','name' => 'Jao'),\n \t array('id' => '8341','state_id' => '503','name' => 'Kareng'),\n \t array('id' => '8342','state_id' => '503','name' => 'Katamaga'),\n \t array('id' => '8343','state_id' => '503','name' => 'Kgakge'),\n \t array('id' => '8344','state_id' => '503','name' => 'Khwai Camp'),\n \t array('id' => '8345','state_id' => '503','name' => 'Komana'),\n \t array('id' => '8346','state_id' => '503','name' => 'Legotlhwana'),\n \t array('id' => '8347','state_id' => '503','name' => 'Mababe'),\n \t array('id' => '8348','state_id' => '503','name' => 'Makalamabedi'),\n \t array('id' => '8349','state_id' => '503','name' => 'Matlapana'),\n \t array('id' => '8350','state_id' => '503','name' => 'Matsaudi'),\n \t array('id' => '8351','state_id' => '503','name' => 'Mawana'),\n \t array('id' => '8352','state_id' => '503','name' => 'Mokgalo-Haka'),\n \t array('id' => '8353','state_id' => '503','name' => 'Morutsha'),\n \t array('id' => '8354','state_id' => '503','name' => 'Nxharaga'),\n \t array('id' => '8355','state_id' => '503','name' => 'Phuduhudu'),\n \t array('id' => '8356','state_id' => '503','name' => 'Samodupi'),\n \t array('id' => '8357','state_id' => '503','name' => 'Sankuyo'),\n \t array('id' => '8358','state_id' => '503','name' => 'Sehithwa'),\n \t array('id' => '8359','state_id' => '503','name' => 'Semboyo'),\n \t array('id' => '8360','state_id' => '503','name' => 'Sexaxa'),\n \t array('id' => '8361','state_id' => '503','name' => 'Shakawe'),\n \t array('id' => '8362','state_id' => '503','name' => 'Shorobe'),\n \t array('id' => '8363','state_id' => '503','name' => 'Somela'),\n \t array('id' => '8364','state_id' => '503','name' => 'Toteng'),\n \t array('id' => '8365','state_id' => '503','name' => 'Tsanekona'),\n \t array('id' => '8366','state_id' => '503','name' => 'Tsao'),\n \t array('id' => '8367','state_id' => '503','name' => 'Xaxaba'),\n \t array('id' => '8368','state_id' => '503','name' => 'Xhobe'),\n \t array('id' => '8369','state_id' => '504','name' => 'Bethel'),\n \t array('id' => '8370','state_id' => '504','name' => 'Borobadilepe'),\n \t array('id' => '8371','state_id' => '504','name' => 'Diabo'),\n \t array('id' => '8372','state_id' => '504','name' => 'Digawana'),\n \t array('id' => '8373','state_id' => '504','name' => 'Dikhukhung'),\n \t array('id' => '8374','state_id' => '504','name' => 'Dinatshana'),\n \t array('id' => '8375','state_id' => '504','name' => 'Dipotsana'),\n \t array('id' => '8376','state_id' => '504','name' => 'Ditlharapa'),\n \t array('id' => '8377','state_id' => '504','name' => 'Gamajalela'),\n \t array('id' => '8378','state_id' => '504','name' => 'Gasita'),\n \t array('id' => '8379','state_id' => '504','name' => 'Gathwane'),\n \t array('id' => '8380','state_id' => '504','name' => 'Good Hope'),\n \t array('id' => '8381','state_id' => '504','name' => 'Goora-seno'),\n \t array('id' => '8382','state_id' => '504','name' => 'Gopong'),\n \t array('id' => '8383','state_id' => '504','name' => 'Hebron'),\n \t array('id' => '8384','state_id' => '504','name' => 'Itholoke'),\n \t array('id' => '8385','state_id' => '504','name' => 'Kanaku'),\n \t array('id' => '8386','state_id' => '504','name' => 'Kangwe'),\n \t array('id' => '8387','state_id' => '504','name' => 'Kanye'),\n \t array('id' => '8388','state_id' => '504','name' => 'Keng'),\n \t array('id' => '8389','state_id' => '504','name' => 'Kgomokasitwa'),\n \t array('id' => '8390','state_id' => '504','name' => 'Kgoro'),\n \t array('id' => '8391','state_id' => '504','name' => 'Khakhea'),\n \t array('id' => '8392','state_id' => '504','name' => 'Khonkhwa'),\n \t array('id' => '8393','state_id' => '504','name' => 'Kokong'),\n \t array('id' => '8394','state_id' => '504','name' => 'Lehoko'),\n \t array('id' => '8395','state_id' => '504','name' => 'Lejwana'),\n \t array('id' => '8396','state_id' => '504','name' => 'Lekgolobotlo'),\n \t array('id' => '8397','state_id' => '504','name' => 'Leporung'),\n \t array('id' => '8398','state_id' => '504','name' => 'Logagane'),\n \t array('id' => '8399','state_id' => '504','name' => 'Lorolwana'),\n \t array('id' => '8400','state_id' => '504','name' => 'Lorwana'),\n \t array('id' => '8401','state_id' => '504','name' => 'Lotlhakane'),\n \t array('id' => '8402','state_id' => '504','name' => 'Lotlhakane West'),\n \t array('id' => '8403','state_id' => '504','name' => 'Mabule'),\n \t array('id' => '8404','state_id' => '504','name' => 'Mabutsane'),\n \t array('id' => '8405','state_id' => '504','name' => 'Madingwana'),\n \t array('id' => '8406','state_id' => '504','name' => 'Magoriapitse'),\n \t array('id' => '8407','state_id' => '504','name' => 'Magotlhawane'),\n \t array('id' => '8408','state_id' => '504','name' => 'Mahotshwane'),\n \t array('id' => '8409','state_id' => '504','name' => 'Maisane'),\n \t array('id' => '8410','state_id' => '504','name' => 'Makokwe'),\n \t array('id' => '8411','state_id' => '504','name' => 'Malokaganyane'),\n \t array('id' => '8412','state_id' => '504','name' => 'Manyana'),\n \t array('id' => '8413','state_id' => '504','name' => 'Maokane'),\n \t array('id' => '8414','state_id' => '504','name' => 'Marojane'),\n \t array('id' => '8415','state_id' => '504','name' => 'Maruswa'),\n \t array('id' => '8416','state_id' => '504','name' => 'Metlobo'),\n \t array('id' => '8417','state_id' => '504','name' => 'Metlojane'),\n \t array('id' => '8418','state_id' => '504','name' => 'Mmakgori'),\n \t array('id' => '8419','state_id' => '504','name' => 'Mmathethe'),\n \t array('id' => '8420','state_id' => '504','name' => 'Mogojogojo'),\n \t array('id' => '8421','state_id' => '504','name' => 'Mogonye'),\n \t array('id' => '8422','state_id' => '504','name' => 'Mogwalale'),\n \t array('id' => '8423','state_id' => '504','name' => 'Mokatako'),\n \t array('id' => '8424','state_id' => '504','name' => 'Mokgomane'),\n \t array('id' => '8425','state_id' => '504','name' => 'Mokhomba'),\n \t array('id' => '8426','state_id' => '504','name' => 'Molapowabojang'),\n \t array('id' => '8427','state_id' => '504','name' => 'Molete'),\n \t array('id' => '8428','state_id' => '504','name' => 'Morwamosu'),\n \t array('id' => '8429','state_id' => '504','name' => 'Moshaneng'),\n \t array('id' => '8430','state_id' => '504','name' => 'Moshupa'),\n \t array('id' => '8431','state_id' => '504','name' => 'Motlhwatse'),\n \t array('id' => '8432','state_id' => '504','name' => 'Motsentshe'),\n \t array('id' => '8433','state_id' => '504','name' => 'Musi'),\n \t array('id' => '8434','state_id' => '504','name' => 'Ngwatsau'),\n \t array('id' => '8435','state_id' => '504','name' => 'Ntlhantlhe'),\n \t array('id' => '8436','state_id' => '504','name' => 'Papatlo'),\n \t array('id' => '8437','state_id' => '504','name' => 'Phihitshwane'),\n \t array('id' => '8438','state_id' => '504','name' => 'Pitsana-Potokwe'),\n \t array('id' => '8439','state_id' => '504','name' => 'Pitsane'),\n \t array('id' => '8440','state_id' => '504','name' => 'Pitseng-Ralekgetho'),\n \t array('id' => '8441','state_id' => '504','name' => 'Pitshane Molopo'),\n \t array('id' => '8442','state_id' => '504','name' => 'Rakhuna'),\n \t array('id' => '8443','state_id' => '504','name' => 'Ralekgetho'),\n \t array('id' => '8444','state_id' => '504','name' => 'Ramatlabama'),\n \t array('id' => '8445','state_id' => '504','name' => 'Ranaka'),\n \t array('id' => '8446','state_id' => '504','name' => 'Sedibeng'),\n \t array('id' => '8447','state_id' => '504','name' => 'Segakwana'),\n \t array('id' => '8448','state_id' => '504','name' => 'Segwagwa'),\n \t array('id' => '8449','state_id' => '504','name' => 'Seherelela'),\n \t array('id' => '8450','state_id' => '504','name' => 'Sekhutlane'),\n \t array('id' => '8451','state_id' => '504','name' => 'Sekoma'),\n \t array('id' => '8452','state_id' => '504','name' => 'Selokolela'),\n \t array('id' => '8453','state_id' => '504','name' => 'Semane'),\n \t array('id' => '8454','state_id' => '504','name' => 'Sese'),\n \t array('id' => '8455','state_id' => '504','name' => 'Sesung'),\n \t array('id' => '8456','state_id' => '504','name' => 'Sheep Farm'),\n \t array('id' => '8457','state_id' => '504','name' => 'Tlhankane'),\n \t array('id' => '8458','state_id' => '504','name' => 'Tlhareseleele'),\n \t array('id' => '8459','state_id' => '504','name' => 'Tshidilamolomo'),\n \t array('id' => '8460','state_id' => '504','name' => 'Tshwaane'),\n \t array('id' => '8461','state_id' => '504','name' => 'Tsonyane'),\n \t array('id' => '8462','state_id' => '504','name' => 'Tswaaneng'),\n \t array('id' => '8463','state_id' => '504','name' => 'Tswagare-Lothoje-Lokalana'),\n \t array('id' => '8464','state_id' => '504','name' => 'Tswanyaneng'),\n \t array('id' => '8465','state_id' => '506','name' => 'Beetsha'),\n \t array('id' => '8466','state_id' => '506','name' => 'Eretsha'),\n \t array('id' => '8467','state_id' => '506','name' => 'Etsha 1'),\n \t array('id' => '8468','state_id' => '506','name' => 'Etsha 13'),\n \t array('id' => '8469','state_id' => '506','name' => 'Etsha 6'),\n \t array('id' => '8470','state_id' => '506','name' => 'Etsha 8'),\n \t array('id' => '8471','state_id' => '506','name' => 'Etsha 9'),\n \t array('id' => '8472','state_id' => '506','name' => 'Gane'),\n \t array('id' => '8473','state_id' => '506','name' => 'Gonutsuga'),\n \t array('id' => '8474','state_id' => '506','name' => 'Gowe'),\n \t array('id' => '8475','state_id' => '506','name' => 'Gudingwa'),\n \t array('id' => '8476','state_id' => '506','name' => 'Gumare'),\n \t array('id' => '8477','state_id' => '506','name' => 'Ikoga'),\n \t array('id' => '8478','state_id' => '506','name' => 'Kajaja'),\n \t array('id' => '8479','state_id' => '506','name' => 'Kapotora Lands'),\n \t array('id' => '8480','state_id' => '506','name' => 'Kauxwhi'),\n \t array('id' => '8481','state_id' => '506','name' => 'Matswee'),\n \t array('id' => '8482','state_id' => '506','name' => 'Maun'),\n \t array('id' => '8483','state_id' => '506','name' => 'Moaha'),\n \t array('id' => '8484','state_id' => '506','name' => 'Mohembo East'),\n \t array('id' => '8485','state_id' => '506','name' => 'Mohembo West'),\n \t array('id' => '8486','state_id' => '506','name' => 'Mokgacha'),\n \t array('id' => '8487','state_id' => '506','name' => 'Ngarange'),\n \t array('id' => '8488','state_id' => '506','name' => 'Nokaneng'),\n \t array('id' => '8489','state_id' => '506','name' => 'Nxamasere'),\n \t array('id' => '8490','state_id' => '506','name' => 'Nxaunxau'),\n \t array('id' => '8491','state_id' => '506','name' => 'Nxwee'),\n \t array('id' => '8492','state_id' => '506','name' => 'Qangwa'),\n \t array('id' => '8493','state_id' => '506','name' => 'Roye'),\n \t array('id' => '8494','state_id' => '506','name' => 'Samochema'),\n \t array('id' => '8495','state_id' => '506','name' => 'Sekondomboro'),\n \t array('id' => '8496','state_id' => '506','name' => 'Sepopa'),\n \t array('id' => '8497','state_id' => '506','name' => 'Seronga'),\n \t array('id' => '8498','state_id' => '506','name' => 'Shaowe'),\n \t array('id' => '8499','state_id' => '506','name' => 'Tobere Lands'),\n \t array('id' => '8500','state_id' => '506','name' => 'Tubu'),\n \t array('id' => '8501','state_id' => '506','name' => 'Tubu Lands'),\n \t array('id' => '8502','state_id' => '506','name' => 'Xadau'),\n \t array('id' => '8503','state_id' => '506','name' => 'Xakao'),\n \t array('id' => '8504','state_id' => '506','name' => 'Xaxa'),\n \t array('id' => '8505','state_id' => '506','name' => 'Xhauga'),\n \t array('id' => '8506','state_id' => '506','name' => 'Xurube'),\n \t array('id' => '8507','state_id' => '507','name' => 'Orapa'),\n \t array('id' => '8508','state_id' => '510','name' => 'Sowa'),\n \t array('id' => '8509','state_id' => '512','name' => 'Acrelandia'),\n \t array('id' => '8510','state_id' => '512','name' => 'Brasileia'),\n \t array('id' => '8511','state_id' => '512','name' => 'Cruzeiro do Sul'),\n \t array('id' => '8512','state_id' => '512','name' => 'Epitaciolandia'),\n \t array('id' => '8513','state_id' => '512','name' => 'Feijo'),\n \t array('id' => '8514','state_id' => '512','name' => 'Mancio Lima'),\n \t array('id' => '8515','state_id' => '512','name' => 'Manoel Urbano'),\n \t array('id' => '8516','state_id' => '512','name' => 'Marechal Thaumaturgo'),\n \t array('id' => '8517','state_id' => '512','name' => 'Placido de Castro'),\n \t array('id' => '8518','state_id' => '512','name' => 'Porto Walter'),\n \t array('id' => '8519','state_id' => '512','name' => 'Rio Branco'),\n \t array('id' => '8520','state_id' => '512','name' => 'Rodrigues Alves'),\n \t array('id' => '8521','state_id' => '512','name' => 'Sena Madureira'),\n \t array('id' => '8522','state_id' => '512','name' => 'Senador Guiomard'),\n \t array('id' => '8523','state_id' => '512','name' => 'Tarauaca'),\n \t array('id' => '8524','state_id' => '512','name' => 'Xapuri'),\n \t array('id' => '8525','state_id' => '513','name' => 'Agua Branca'),\n \t array('id' => '8526','state_id' => '513','name' => 'Anadia'),\n \t array('id' => '8527','state_id' => '513','name' => 'Arapiraca'),\n \t array('id' => '8528','state_id' => '513','name' => 'Atalaia'),\n \t array('id' => '8529','state_id' => '513','name' => 'Barra de Santo Antonio'),\n \t array('id' => '8530','state_id' => '513','name' => 'Batalha'),\n \t array('id' => '8531','state_id' => '513','name' => 'Boca da Mata'),\n \t array('id' => '8532','state_id' => '513','name' => 'Cacimbinhas'),\n \t array('id' => '8533','state_id' => '513','name' => 'Cajueiro'),\n \t array('id' => '8534','state_id' => '513','name' => 'Campo Alegre'),\n \t array('id' => '8535','state_id' => '513','name' => 'Campo Grande'),\n \t array('id' => '8536','state_id' => '513','name' => 'Canapi'),\n \t array('id' => '8537','state_id' => '513','name' => 'Capela'),\n \t array('id' => '8538','state_id' => '513','name' => 'Coite do Noia'),\n \t array('id' => '8539','state_id' => '513','name' => 'Colonia Leopoldina'),\n \t array('id' => '8540','state_id' => '513','name' => 'Coruripe'),\n \t array('id' => '8541','state_id' => '513','name' => 'Craibas'),\n \t array('id' => '8542','state_id' => '513','name' => 'Delmiro Gouveia'),\n \t array('id' => '8543','state_id' => '513','name' => 'Dois Riachos'),\n \t array('id' => '8544','state_id' => '513','name' => 'Estrela de Alagoas'),\n \t array('id' => '8545','state_id' => '513','name' => 'Feira Grande'),\n \t array('id' => '8546','state_id' => '513','name' => 'Flexeiras'),\n \t array('id' => '8547','state_id' => '513','name' => 'Girau do Ponciano'),\n \t array('id' => '8548','state_id' => '513','name' => 'Ibateguara'),\n \t array('id' => '8549','state_id' => '513','name' => 'Igaci'),\n \t array('id' => '8550','state_id' => '513','name' => 'Igreja Nova'),\n \t array('id' => '8551','state_id' => '513','name' => 'Inhapi'),\n \t array('id' => '8552','state_id' => '513','name' => 'Joaquim Gomes'),\n \t array('id' => '8553','state_id' => '513','name' => 'Jundia'),\n \t array('id' => '8554','state_id' => '513','name' => 'Junqueiro'),\n \t array('id' => '8555','state_id' => '513','name' => 'Lagoa da Canoa'),\n \t array('id' => '8556','state_id' => '513','name' => 'Limoeiro de Anadia'),\n \t array('id' => '8557','state_id' => '513','name' => 'Maceio'),\n \t array('id' => '8558','state_id' => '513','name' => 'Major Isidoro'),\n \t array('id' => '8559','state_id' => '513','name' => 'Maragogi'),\n \t array('id' => '8560','state_id' => '513','name' => 'Maravilha'),\n \t array('id' => '8561','state_id' => '513','name' => 'Marechal Deodoro'),\n \t array('id' => '8562','state_id' => '513','name' => 'Maribondo'),\n \t array('id' => '8563','state_id' => '513','name' => 'Mata Grande'),\n \t array('id' => '8564','state_id' => '513','name' => 'Matriz de Camaragibe'),\n \t array('id' => '8565','state_id' => '513','name' => 'Messias'),\n \t array('id' => '8566','state_id' => '513','name' => 'Minador do Negrao'),\n \t array('id' => '8567','state_id' => '513','name' => 'Murici'),\n \t array('id' => '8568','state_id' => '513','name' => 'Novo Lino'),\n \t array('id' => '8569','state_id' => '513','name' => 'Olho d\\'Agua das Flores'),\n \t array('id' => '8570','state_id' => '513','name' => 'Olivenca'),\n \t array('id' => '8571','state_id' => '513','name' => 'Palmeira dos Indios'),\n \t array('id' => '8572','state_id' => '513','name' => 'Pao de Acucar'),\n \t array('id' => '8573','state_id' => '513','name' => 'Passo de Camaragibe'),\n \t array('id' => '8574','state_id' => '513','name' => 'Penedo'),\n \t array('id' => '8575','state_id' => '513','name' => 'Piacabucu'),\n \t array('id' => '8576','state_id' => '513','name' => 'Pilar'),\n \t array('id' => '8577','state_id' => '513','name' => 'Piranhas'),\n \t array('id' => '8578','state_id' => '513','name' => 'Poco das Trincheiras'),\n \t array('id' => '8579','state_id' => '513','name' => 'Porto Calvo'),\n \t array('id' => '8580','state_id' => '513','name' => 'Porto Real do Colegio'),\n \t array('id' => '8581','state_id' => '513','name' => 'Quebrangulo'),\n \t array('id' => '8582','state_id' => '513','name' => 'Rio Largo'),\n \t array('id' => '8583','state_id' => '513','name' => 'Santana do Ipanema'),\n \t array('id' => '8584','state_id' => '513','name' => 'Santana do Mundau'),\n \t array('id' => '8585','state_id' => '513','name' => 'Sao Jose da Laje'),\n \t array('id' => '8586','state_id' => '513','name' => 'Sao Jose da Tapera'),\n \t array('id' => '8587','state_id' => '513','name' => 'Sao Luis do Quitunde'),\n \t array('id' => '8588','state_id' => '513','name' => 'Sao Miguel dos Campos'),\n \t array('id' => '8589','state_id' => '513','name' => 'Sao Sebastiao'),\n \t array('id' => '8590','state_id' => '513','name' => 'Satuba'),\n \t array('id' => '8591','state_id' => '513','name' => 'Senador Rui Palmeira'),\n \t array('id' => '8592','state_id' => '513','name' => 'Taquarana'),\n \t array('id' => '8593','state_id' => '513','name' => 'Teotonio Vilela'),\n \t array('id' => '8594','state_id' => '513','name' => 'Traipu'),\n \t array('id' => '8595','state_id' => '513','name' => 'Uniao dos Palmares'),\n \t array('id' => '8596','state_id' => '513','name' => 'Vicosa'),\n \t array('id' => '8597','state_id' => '514','name' => 'Amapa'),\n \t array('id' => '8598','state_id' => '514','name' => 'Laranjal do Jari'),\n \t array('id' => '8599','state_id' => '514','name' => 'Macapa'),\n \t array('id' => '8600','state_id' => '514','name' => 'Mazagao'),\n \t array('id' => '8601','state_id' => '514','name' => 'Oiapoque'),\n \t array('id' => '8602','state_id' => '514','name' => 'Santana'),\n \t array('id' => '8603','state_id' => '515','name' => 'Alvaraes'),\n \t array('id' => '8604','state_id' => '515','name' => 'Anori'),\n \t array('id' => '8605','state_id' => '515','name' => 'Apui'),\n \t array('id' => '8606','state_id' => '515','name' => 'Autazes'),\n \t array('id' => '8607','state_id' => '515','name' => 'Barcelos'),\n \t array('id' => '8608','state_id' => '515','name' => 'Barreirinha'),\n \t array('id' => '8609','state_id' => '515','name' => 'Benjamin Constant'),\n \t array('id' => '8610','state_id' => '515','name' => 'Boca do Acre'),\n \t array('id' => '8611','state_id' => '515','name' => 'Borba'),\n \t array('id' => '8612','state_id' => '515','name' => 'Canutama'),\n \t array('id' => '8613','state_id' => '515','name' => 'Carauari'),\n \t array('id' => '8614','state_id' => '515','name' => 'Careiro'),\n \t array('id' => '8615','state_id' => '515','name' => 'Careiro da Varzea'),\n \t array('id' => '8616','state_id' => '515','name' => 'Coari'),\n \t array('id' => '8617','state_id' => '515','name' => 'Codajas'),\n \t array('id' => '8618','state_id' => '515','name' => 'Eirunepe'),\n \t array('id' => '8619','state_id' => '515','name' => 'Envira'),\n \t array('id' => '8620','state_id' => '515','name' => 'Fonte Boa'),\n \t array('id' => '8621','state_id' => '515','name' => 'Guajara'),\n \t array('id' => '8622','state_id' => '515','name' => 'Humaita'),\n \t array('id' => '8623','state_id' => '515','name' => 'Ipixuna'),\n \t array('id' => '8624','state_id' => '515','name' => 'Iranduba'),\n \t array('id' => '8625','state_id' => '515','name' => 'Itacoatiara'),\n \t array('id' => '8626','state_id' => '515','name' => 'Japura'),\n \t array('id' => '8627','state_id' => '515','name' => 'Jutai'),\n \t array('id' => '8628','state_id' => '515','name' => 'Labrea'),\n \t array('id' => '8629','state_id' => '515','name' => 'Manacapuru'),\n \t array('id' => '8630','state_id' => '515','name' => 'Manaquiri'),\n \t array('id' => '8631','state_id' => '515','name' => 'Manaus'),\n \t array('id' => '8632','state_id' => '515','name' => 'Manicore'),\n \t array('id' => '8633','state_id' => '515','name' => 'Maraa'),\n \t array('id' => '8634','state_id' => '515','name' => 'Maues'),\n \t array('id' => '8635','state_id' => '515','name' => 'Nhamunda'),\n \t array('id' => '8636','state_id' => '515','name' => 'Nova Olinda do Norte'),\n \t array('id' => '8637','state_id' => '515','name' => 'Novo Airao'),\n \t array('id' => '8638','state_id' => '515','name' => 'Novo Aripuana'),\n \t array('id' => '8639','state_id' => '515','name' => 'Parintins'),\n \t array('id' => '8640','state_id' => '515','name' => 'Pauini'),\n \t array('id' => '8641','state_id' => '515','name' => 'Rio Preto da Eva'),\n \t array('id' => '8642','state_id' => '515','name' => 'Santa Isabel do Rio Negro'),\n \t array('id' => '8643','state_id' => '515','name' => 'Santo Antonio do Ica'),\n \t array('id' => '8644','state_id' => '515','name' => 'Sao Gabriel da Cachoeira'),\n \t array('id' => '8645','state_id' => '515','name' => 'Sao Paulo de Olivenca'),\n \t array('id' => '8646','state_id' => '515','name' => 'Tabatinga'),\n \t array('id' => '8647','state_id' => '515','name' => 'Tapaua'),\n \t array('id' => '8648','state_id' => '515','name' => 'Tefe'),\n \t array('id' => '8649','state_id' => '515','name' => 'Tonantins'),\n \t array('id' => '8650','state_id' => '515','name' => 'Uarini'),\n \t array('id' => '8651','state_id' => '515','name' => 'Urucara'),\n \t array('id' => '8652','state_id' => '515','name' => 'Urucurituba'),\n \t array('id' => '8653','state_id' => '516','name' => 'Acajutiba'),\n \t array('id' => '8654','state_id' => '516','name' => 'Alagoinhas'),\n \t array('id' => '8655','state_id' => '516','name' => 'Amargosa'),\n \t array('id' => '8656','state_id' => '516','name' => 'Amelia Rodrigues'),\n \t array('id' => '8657','state_id' => '516','name' => 'America Dourada'),\n \t array('id' => '8658','state_id' => '516','name' => 'Anage'),\n \t array('id' => '8659','state_id' => '516','name' => 'Araci'),\n \t array('id' => '8660','state_id' => '516','name' => 'Aurelino Leal'),\n \t array('id' => '8661','state_id' => '516','name' => 'Baixa Grande'),\n \t array('id' => '8662','state_id' => '516','name' => 'Barra'),\n \t array('id' => '8663','state_id' => '516','name' => 'Barra da Estiva'),\n \t array('id' => '8664','state_id' => '516','name' => 'Barra do Choca'),\n \t array('id' => '8665','state_id' => '516','name' => 'Barreiras'),\n \t array('id' => '8666','state_id' => '516','name' => 'Belmonte'),\n \t array('id' => '8667','state_id' => '516','name' => 'Boa Vista do Tupim'),\n \t array('id' => '8668','state_id' => '516','name' => 'Bom Jesus da Lapa'),\n \t array('id' => '8669','state_id' => '516','name' => 'Boquira'),\n \t array('id' => '8670','state_id' => '516','name' => 'Brumado'),\n \t array('id' => '8671','state_id' => '516','name' => 'Buerarema'),\n \t array('id' => '8672','state_id' => '516','name' => 'Cachoeira'),\n \t array('id' => '8673','state_id' => '516','name' => 'Cacule'),\n \t array('id' => '8674','state_id' => '516','name' => 'Caetite'),\n \t array('id' => '8675','state_id' => '516','name' => 'Cafarnaum'),\n \t array('id' => '8676','state_id' => '516','name' => 'Camacan'),\n \t array('id' => '8677','state_id' => '516','name' => 'Camacari'),\n \t array('id' => '8678','state_id' => '516','name' => 'Camamu'),\n \t array('id' => '8679','state_id' => '516','name' => 'Campo Alegre de Lourdes'),\n \t array('id' => '8680','state_id' => '516','name' => 'Campo Formoso'),\n \t array('id' => '8681','state_id' => '516','name' => 'Canarana'),\n \t array('id' => '8682','state_id' => '516','name' => 'Canavieiras'),\n \t array('id' => '8683','state_id' => '516','name' => 'Candeias'),\n \t array('id' => '8684','state_id' => '516','name' => 'Candido Sales'),\n \t array('id' => '8685','state_id' => '516','name' => 'Cansancao'),\n \t array('id' => '8686','state_id' => '516','name' => 'Capim Grosso'),\n \t array('id' => '8687','state_id' => '516','name' => 'Caravelas'),\n \t array('id' => '8688','state_id' => '516','name' => 'Carinhanha'),\n \t array('id' => '8689','state_id' => '516','name' => 'Casa Nova'),\n \t array('id' => '8690','state_id' => '516','name' => 'Castro Alves'),\n \t array('id' => '8691','state_id' => '516','name' => 'Catu'),\n \t array('id' => '8692','state_id' => '516','name' => 'Cicero Dantas'),\n \t array('id' => '8693','state_id' => '516','name' => 'Cipo'),\n \t array('id' => '8694','state_id' => '516','name' => 'Coaraci'),\n \t array('id' => '8695','state_id' => '516','name' => 'Conceicao da Feira'),\n \t array('id' => '8696','state_id' => '516','name' => 'Conceicao do Almeida'),\n \t array('id' => '8697','state_id' => '516','name' => 'Conceicao do Coite'),\n \t array('id' => '8698','state_id' => '516','name' => 'Conceicao do Jacuipe'),\n \t array('id' => '8699','state_id' => '516','name' => 'Conde'),\n \t array('id' => '8700','state_id' => '516','name' => 'Coracao de Maria'),\n \t array('id' => '8701','state_id' => '516','name' => 'Coronel Joao Sa'),\n \t array('id' => '8702','state_id' => '516','name' => 'Correntina'),\n \t array('id' => '8703','state_id' => '516','name' => 'Cruz das Almas'),\n \t array('id' => '8704','state_id' => '516','name' => 'Curaca'),\n \t array('id' => '8705','state_id' => '516','name' => 'Dias d\\'Avila'),\n \t array('id' => '8706','state_id' => '516','name' => 'Encruzilhada'),\n \t array('id' => '8707','state_id' => '516','name' => 'Entre Rios'),\n \t array('id' => '8708','state_id' => '516','name' => 'Esplanada'),\n \t array('id' => '8709','state_id' => '516','name' => 'Euclides da Cunha'),\n \t array('id' => '8710','state_id' => '516','name' => 'Eunapolis'),\n \t array('id' => '8711','state_id' => '516','name' => 'Feira de Santana'),\n \t array('id' => '8712','state_id' => '516','name' => 'Filadelfia'),\n \t array('id' => '8713','state_id' => '516','name' => 'Formosa do Rio Preto'),\n \t array('id' => '8714','state_id' => '516','name' => 'Gandu'),\n \t array('id' => '8715','state_id' => '516','name' => 'Guanambi'),\n \t array('id' => '8716','state_id' => '516','name' => 'Guaratinga'),\n \t array('id' => '8717','state_id' => '516','name' => 'Iacu'),\n \t array('id' => '8718','state_id' => '516','name' => 'Ibicarai'),\n \t array('id' => '8719','state_id' => '516','name' => 'Ibicui'),\n \t array('id' => '8720','state_id' => '516','name' => 'Ibipeba'),\n \t array('id' => '8721','state_id' => '516','name' => 'Ibirapitanga'),\n \t array('id' => '8722','state_id' => '516','name' => 'Ibirataia'),\n \t array('id' => '8723','state_id' => '516','name' => 'Ibotirama'),\n \t array('id' => '8724','state_id' => '516','name' => 'Iguai'),\n \t array('id' => '8725','state_id' => '516','name' => 'Ilheus'),\n \t array('id' => '8726','state_id' => '516','name' => 'Inhambupe'),\n \t array('id' => '8727','state_id' => '516','name' => 'Ipiau'),\n \t array('id' => '8728','state_id' => '516','name' => 'Ipira'),\n \t array('id' => '8729','state_id' => '516','name' => 'Iraquara'),\n \t array('id' => '8730','state_id' => '516','name' => 'Irara'),\n \t array('id' => '8731','state_id' => '516','name' => 'Irece'),\n \t array('id' => '8732','state_id' => '516','name' => 'Itabela'),\n \t array('id' => '8733','state_id' => '516','name' => 'Itaberaba'),\n \t array('id' => '8734','state_id' => '516','name' => 'Itabuna'),\n \t array('id' => '8735','state_id' => '516','name' => 'Itacare'),\n \t array('id' => '8736','state_id' => '516','name' => 'Itagi'),\n \t array('id' => '8737','state_id' => '516','name' => 'Itagiba'),\n \t array('id' => '8738','state_id' => '516','name' => 'Itajuipe'),\n \t array('id' => '8739','state_id' => '516','name' => 'Itamaraju'),\n \t array('id' => '8740','state_id' => '516','name' => 'Itambe'),\n \t array('id' => '8741','state_id' => '516','name' => 'Itanhem'),\n \t array('id' => '8742','state_id' => '516','name' => 'Itaparica'),\n \t array('id' => '8743','state_id' => '516','name' => 'Itapetinga'),\n \t array('id' => '8744','state_id' => '516','name' => 'Itapicuru'),\n \t array('id' => '8745','state_id' => '516','name' => 'Itarantim'),\n \t array('id' => '8746','state_id' => '516','name' => 'Itirucu'),\n \t array('id' => '8747','state_id' => '516','name' => 'Itiuba'),\n \t array('id' => '8748','state_id' => '516','name' => 'Itororo'),\n \t array('id' => '8749','state_id' => '516','name' => 'Ituacu'),\n \t array('id' => '8750','state_id' => '516','name' => 'Itubera'),\n \t array('id' => '8751','state_id' => '516','name' => 'Jacobina'),\n \t array('id' => '8752','state_id' => '516','name' => 'Jaguaquara'),\n \t array('id' => '8753','state_id' => '516','name' => 'Jaguarari'),\n \t array('id' => '8754','state_id' => '516','name' => 'Jequie'),\n \t array('id' => '8755','state_id' => '516','name' => 'Jeremoabo'),\n \t array('id' => '8756','state_id' => '516','name' => 'Jitauna'),\n \t array('id' => '8757','state_id' => '516','name' => 'Joao Dourado'),\n \t array('id' => '8758','state_id' => '516','name' => 'Juazeiro'),\n \t array('id' => '8759','state_id' => '516','name' => 'Jussara'),\n \t array('id' => '8760','state_id' => '516','name' => 'Laje'),\n \t array('id' => '8761','state_id' => '516','name' => 'Lapao'),\n \t array('id' => '8762','state_id' => '516','name' => 'Lauro de Freitas'),\n \t array('id' => '8763','state_id' => '516','name' => 'Livramento'),\n \t array('id' => '8764','state_id' => '516','name' => 'Macarani'),\n \t array('id' => '8765','state_id' => '516','name' => 'Macaubas'),\n \t array('id' => '8766','state_id' => '516','name' => 'Madre de Deus'),\n \t array('id' => '8767','state_id' => '516','name' => 'Mairi'),\n \t array('id' => '8768','state_id' => '516','name' => 'Maracas'),\n \t array('id' => '8769','state_id' => '516','name' => 'Maragogipe'),\n \t array('id' => '8770','state_id' => '516','name' => 'Marau'),\n \t array('id' => '8771','state_id' => '516','name' => 'Mascote'),\n \t array('id' => '8772','state_id' => '516','name' => 'Mata de Sao Joao'),\n \t array('id' => '8773','state_id' => '516','name' => 'Medeiros Neto'),\n \t array('id' => '8774','state_id' => '516','name' => 'Miguel Calmon'),\n \t array('id' => '8775','state_id' => '516','name' => 'Milagres'),\n \t array('id' => '8776','state_id' => '516','name' => 'Monte Santo'),\n \t array('id' => '8777','state_id' => '516','name' => 'Morro de Chapeu'),\n \t array('id' => '8778','state_id' => '516','name' => 'Mucuri'),\n \t array('id' => '8779','state_id' => '516','name' => 'Mundo Novo'),\n \t array('id' => '8780','state_id' => '516','name' => 'Muritiba'),\n \t array('id' => '8781','state_id' => '516','name' => 'Mutuipe'),\n \t array('id' => '8782','state_id' => '516','name' => 'Nazare'),\n \t array('id' => '8783','state_id' => '516','name' => 'Nova Soure'),\n \t array('id' => '8784','state_id' => '516','name' => 'Nova Vicosa'),\n \t array('id' => '8785','state_id' => '516','name' => 'Olindina'),\n \t array('id' => '8786','state_id' => '516','name' => 'Oliveira dos Brejinhos'),\n \t array('id' => '8787','state_id' => '516','name' => 'Palmas de Monte Alto'),\n \t array('id' => '8788','state_id' => '516','name' => 'Paramirim'),\n \t array('id' => '8789','state_id' => '516','name' => 'Paratinga'),\n \t array('id' => '8790','state_id' => '516','name' => 'Paripiranga'),\n \t array('id' => '8791','state_id' => '516','name' => 'Pau Brasil'),\n \t array('id' => '8792','state_id' => '516','name' => 'Paulo Afonso'),\n \t array('id' => '8793','state_id' => '516','name' => 'Pilao Arcado'),\n \t array('id' => '8794','state_id' => '516','name' => 'Pindobacu'),\n \t array('id' => '8795','state_id' => '516','name' => 'Piritiba'),\n \t array('id' => '8796','state_id' => '516','name' => 'Planalto'),\n \t array('id' => '8797','state_id' => '516','name' => 'Pocoes'),\n \t array('id' => '8798','state_id' => '516','name' => 'Pojuca'),\n \t array('id' => '8799','state_id' => '516','name' => 'Ponto Novo'),\n \t array('id' => '8800','state_id' => '516','name' => 'Porto Seguro'),\n \t array('id' => '8801','state_id' => '516','name' => 'Prado'),\n \t array('id' => '8802','state_id' => '516','name' => 'Presidente Tancredo Neves'),\n \t array('id' => '8803','state_id' => '516','name' => 'Queimadas'),\n \t array('id' => '8804','state_id' => '516','name' => 'Quijingue'),\n \t array('id' => '8805','state_id' => '516','name' => 'Rafael Jambeiro'),\n \t array('id' => '8806','state_id' => '516','name' => 'Remanso'),\n \t array('id' => '8807','state_id' => '516','name' => 'Riachao das Neves'),\n \t array('id' => '8808','state_id' => '516','name' => 'Riachao do Jacuipe'),\n \t array('id' => '8809','state_id' => '516','name' => 'Riacho de Santana'),\n \t array('id' => '8810','state_id' => '516','name' => 'Ribeira do Pombal'),\n \t array('id' => '8811','state_id' => '516','name' => 'Rio Real'),\n \t array('id' => '8812','state_id' => '516','name' => 'Ruy Barbosa'),\n \t array('id' => '8813','state_id' => '516','name' => 'Salvador'),\n \t array('id' => '8814','state_id' => '516','name' => 'Santa Cruz Cabralia'),\n \t array('id' => '8815','state_id' => '516','name' => 'Santa Ines'),\n \t array('id' => '8816','state_id' => '516','name' => 'Santa Maria da Vitoria'),\n \t array('id' => '8817','state_id' => '516','name' => 'Santa Rita de Cassia'),\n \t array('id' => '8818','state_id' => '516','name' => 'Santaluz'),\n \t array('id' => '8819','state_id' => '516','name' => 'Santana'),\n \t array('id' => '8820','state_id' => '516','name' => 'Santo Amaro'),\n \t array('id' => '8821','state_id' => '516','name' => 'Santo Antonio de Jesus'),\n \t array('id' => '8822','state_id' => '516','name' => 'Santo Estevao'),\n \t array('id' => '8823','state_id' => '516','name' => 'Sao Desiderio'),\n \t array('id' => '8824','state_id' => '516','name' => 'Sao Felipe'),\n \t array('id' => '8825','state_id' => '516','name' => 'Sao Francisco do Conde'),\n \t array('id' => '8826','state_id' => '516','name' => 'Sao Gabriel'),\n \t array('id' => '8827','state_id' => '516','name' => 'Sao Goncalo dos Campos'),\n \t array('id' => '8828','state_id' => '516','name' => 'Sao Sebastiao do Passe'),\n \t array('id' => '8829','state_id' => '516','name' => 'Saubara'),\n \t array('id' => '8830','state_id' => '516','name' => 'Seabra'),\n \t array('id' => '8831','state_id' => '516','name' => 'Senhor do Bonfim'),\n \t array('id' => '8832','state_id' => '516','name' => 'Sento Se'),\n \t array('id' => '8833','state_id' => '516','name' => 'Serra Dourada'),\n \t array('id' => '8834','state_id' => '516','name' => 'Serra do Ramalho'),\n \t array('id' => '8835','state_id' => '516','name' => 'Serrinha'),\n \t array('id' => '8836','state_id' => '516','name' => 'Simoes Filho'),\n \t array('id' => '8837','state_id' => '516','name' => 'Sobradinho'),\n \t array('id' => '8838','state_id' => '516','name' => 'Souto Soares'),\n \t array('id' => '8839','state_id' => '516','name' => 'Tanhacu'),\n \t array('id' => '8840','state_id' => '516','name' => 'Taperoa'),\n \t array('id' => '8841','state_id' => '516','name' => 'Tapiramuta'),\n \t array('id' => '8842','state_id' => '516','name' => 'Teixeira de Freitas'),\n \t array('id' => '8843','state_id' => '516','name' => 'Teofilandia'),\n \t array('id' => '8844','state_id' => '516','name' => 'Terra Nova'),\n \t array('id' => '8845','state_id' => '516','name' => 'Tremedal'),\n \t array('id' => '8846','state_id' => '516','name' => 'Tucano'),\n \t array('id' => '8847','state_id' => '516','name' => 'Uaua'),\n \t array('id' => '8848','state_id' => '516','name' => 'Ubaira'),\n \t array('id' => '8849','state_id' => '516','name' => 'Ubaitaba'),\n \t array('id' => '8850','state_id' => '516','name' => 'Ubata'),\n \t array('id' => '8851','state_id' => '516','name' => 'Una'),\n \t array('id' => '8852','state_id' => '516','name' => 'Urucuca'),\n \t array('id' => '8853','state_id' => '516','name' => 'Utinga'),\n \t array('id' => '8854','state_id' => '516','name' => 'Valenca'),\n \t array('id' => '8855','state_id' => '516','name' => 'Valente'),\n \t array('id' => '8856','state_id' => '516','name' => 'Vera Cruz'),\n \t array('id' => '8857','state_id' => '516','name' => 'Vitoria da Conquista'),\n \t array('id' => '8858','state_id' => '516','name' => 'Wenceslau Guimaraes'),\n \t array('id' => '8859','state_id' => '516','name' => 'Xique-Xique'),\n \t array('id' => '8860','state_id' => '517','name' => 'Acarau'),\n \t array('id' => '8861','state_id' => '517','name' => 'Acopiara'),\n \t array('id' => '8862','state_id' => '517','name' => 'Amontada'),\n \t array('id' => '8863','state_id' => '517','name' => 'Aquiraz'),\n \t array('id' => '8864','state_id' => '517','name' => 'Aracati'),\n \t array('id' => '8865','state_id' => '517','name' => 'Aracoiaba'),\n \t array('id' => '8866','state_id' => '517','name' => 'Araripe'),\n \t array('id' => '8867','state_id' => '517','name' => 'Assare'),\n \t array('id' => '8868','state_id' => '517','name' => 'Aurora'),\n \t array('id' => '8869','state_id' => '517','name' => 'Barbalha'),\n \t array('id' => '8870','state_id' => '517','name' => 'Barro'),\n \t array('id' => '8871','state_id' => '517','name' => 'Barroquinha'),\n \t array('id' => '8872','state_id' => '517','name' => 'Baturite'),\n \t array('id' => '8873','state_id' => '517','name' => 'Beberibe'),\n \t array('id' => '8874','state_id' => '517','name' => 'Bela Cruz'),\n \t array('id' => '8875','state_id' => '517','name' => 'Boa Viagem'),\n \t array('id' => '8876','state_id' => '517','name' => 'Brejo Santo'),\n \t array('id' => '8877','state_id' => '517','name' => 'Camocim'),\n \t array('id' => '8878','state_id' => '517','name' => 'Campos Sales'),\n \t array('id' => '8879','state_id' => '517','name' => 'Caninde'),\n \t array('id' => '8880','state_id' => '517','name' => 'Carire'),\n \t array('id' => '8881','state_id' => '517','name' => 'Caririacu'),\n \t array('id' => '8882','state_id' => '517','name' => 'Cascavel'),\n \t array('id' => '8883','state_id' => '517','name' => 'Caucaia'),\n \t array('id' => '8884','state_id' => '517','name' => 'Cedro'),\n \t array('id' => '8885','state_id' => '517','name' => 'Chorozinho'),\n \t array('id' => '8886','state_id' => '517','name' => 'Coreau'),\n \t array('id' => '8887','state_id' => '517','name' => 'Crateus'),\n \t array('id' => '8888','state_id' => '517','name' => 'Crato'),\n \t array('id' => '8889','state_id' => '517','name' => 'Cruz'),\n \t array('id' => '8890','state_id' => '517','name' => 'Eusebio'),\n \t array('id' => '8891','state_id' => '517','name' => 'Farias Brito'),\n \t array('id' => '8892','state_id' => '517','name' => 'Forquilha'),\n \t array('id' => '8893','state_id' => '517','name' => 'Fortaleza'),\n \t array('id' => '8894','state_id' => '517','name' => 'Granja'),\n \t array('id' => '8895','state_id' => '517','name' => 'Guaiuba'),\n \t array('id' => '8896','state_id' => '517','name' => 'Guaraciaba do Norte'),\n \t array('id' => '8897','state_id' => '517','name' => 'Hidrolandia'),\n \t array('id' => '8898','state_id' => '517','name' => 'Horizonte'),\n \t array('id' => '8899','state_id' => '517','name' => 'Ibiapina'),\n \t array('id' => '8900','state_id' => '517','name' => 'Ico'),\n \t array('id' => '8901','state_id' => '517','name' => 'Iguatu'),\n \t array('id' => '8902','state_id' => '517','name' => 'Independencia'),\n \t array('id' => '8903','state_id' => '517','name' => 'Ipu'),\n \t array('id' => '8904','state_id' => '517','name' => 'Ipueiras'),\n \t array('id' => '8905','state_id' => '517','name' => 'Iraucuba'),\n \t array('id' => '8906','state_id' => '517','name' => 'Itaitinga'),\n \t array('id' => '8907','state_id' => '517','name' => 'Itapage'),\n \t array('id' => '8908','state_id' => '517','name' => 'Itapipoca'),\n \t array('id' => '8909','state_id' => '517','name' => 'Itarema'),\n \t array('id' => '8910','state_id' => '517','name' => 'Jaguaribe'),\n \t array('id' => '8911','state_id' => '517','name' => 'Jaguaruana'),\n \t array('id' => '8912','state_id' => '517','name' => 'Jardim'),\n \t array('id' => '8913','state_id' => '517','name' => 'Juazeiro do Norte'),\n \t array('id' => '8914','state_id' => '517','name' => 'Jucas'),\n \t array('id' => '8915','state_id' => '517','name' => 'Lavras da Mangabeira'),\n \t array('id' => '8916','state_id' => '517','name' => 'Limoeiro do Norte'),\n \t array('id' => '8917','state_id' => '517','name' => 'Maracanau'),\n \t array('id' => '8918','state_id' => '517','name' => 'Maranguape'),\n \t array('id' => '8919','state_id' => '517','name' => 'Marco'),\n \t array('id' => '8920','state_id' => '517','name' => 'Massape'),\n \t array('id' => '8921','state_id' => '517','name' => 'Mauriti'),\n \t array('id' => '8922','state_id' => '517','name' => 'Milagres'),\n \t array('id' => '8923','state_id' => '517','name' => 'Missao Velha'),\n \t array('id' => '8924','state_id' => '517','name' => 'Mombaca'),\n \t array('id' => '8925','state_id' => '517','name' => 'Morada Nova'),\n \t array('id' => '8926','state_id' => '517','name' => 'Nova Russas'),\n \t array('id' => '8927','state_id' => '517','name' => 'Novo Oriente'),\n \t array('id' => '8928','state_id' => '517','name' => 'Ocara'),\n \t array('id' => '8929','state_id' => '517','name' => 'Oros'),\n \t array('id' => '8930','state_id' => '517','name' => 'Pacajus'),\n \t array('id' => '8931','state_id' => '517','name' => 'Pacatuba'),\n \t array('id' => '8932','state_id' => '517','name' => 'Paracuru'),\n \t array('id' => '8933','state_id' => '517','name' => 'Paraipaba'),\n \t array('id' => '8934','state_id' => '517','name' => 'Parambu'),\n \t array('id' => '8935','state_id' => '517','name' => 'Pedra Branca'),\n \t array('id' => '8936','state_id' => '517','name' => 'Pentecoste'),\n \t array('id' => '8937','state_id' => '517','name' => 'Quixada'),\n \t array('id' => '8938','state_id' => '517','name' => 'Quixeramobim'),\n \t array('id' => '8939','state_id' => '517','name' => 'Quixere'),\n \t array('id' => '8940','state_id' => '517','name' => 'Redencao'),\n \t array('id' => '8941','state_id' => '517','name' => 'Reriutaba'),\n \t array('id' => '8942','state_id' => '517','name' => 'Russas'),\n \t array('id' => '8943','state_id' => '517','name' => 'Santa Quiteria'),\n \t array('id' => '8944','state_id' => '517','name' => 'Santana do Acarau'),\n \t array('id' => '8945','state_id' => '517','name' => 'Sao Benedito'),\n \t array('id' => '8946','state_id' => '517','name' => 'Sao Goncalo do Amarante'),\n \t array('id' => '8947','state_id' => '517','name' => 'Senador Pompeu'),\n \t array('id' => '8948','state_id' => '517','name' => 'Sobral'),\n \t array('id' => '8949','state_id' => '517','name' => 'Tabuleiro do Norte'),\n \t array('id' => '8950','state_id' => '517','name' => 'Tamboril'),\n \t array('id' => '8951','state_id' => '517','name' => 'Taua'),\n \t array('id' => '8952','state_id' => '517','name' => 'Tiangua'),\n \t array('id' => '8953','state_id' => '517','name' => 'Trairi'),\n \t array('id' => '8954','state_id' => '517','name' => 'Ubajara'),\n \t array('id' => '8955','state_id' => '517','name' => 'Umirim'),\n \t array('id' => '8956','state_id' => '517','name' => 'Uruburetama'),\n \t array('id' => '8957','state_id' => '517','name' => 'Varjota'),\n \t array('id' => '8958','state_id' => '517','name' => 'Varzea Alegre'),\n \t array('id' => '8959','state_id' => '517','name' => 'Vicosa do Ceara'),\n \t array('id' => '8960','state_id' => '521','name' => 'Abadiania'),\n \t array('id' => '8961','state_id' => '521','name' => 'Acreuna'),\n \t array('id' => '8962','state_id' => '521','name' => 'Aguas Lindas de Goias'),\n \t array('id' => '8963','state_id' => '521','name' => 'Alexania'),\n \t array('id' => '8964','state_id' => '521','name' => 'Anapolis'),\n \t array('id' => '8965','state_id' => '521','name' => 'Anicuns'),\n \t array('id' => '8966','state_id' => '521','name' => 'Aparecida de Goiania'),\n \t array('id' => '8967','state_id' => '521','name' => 'Aragarcas'),\n \t array('id' => '8968','state_id' => '521','name' => 'Bela Vista de Goias'),\n \t array('id' => '8969','state_id' => '521','name' => 'Bom Jesus de Goias'),\n \t array('id' => '8970','state_id' => '521','name' => 'Buriti Alegre'),\n \t array('id' => '8971','state_id' => '521','name' => 'Cacu'),\n \t array('id' => '8972','state_id' => '521','name' => 'Caiaponia'),\n \t array('id' => '8973','state_id' => '521','name' => 'Caldas Novas'),\n \t array('id' => '8974','state_id' => '521','name' => 'Campos Belos'),\n \t array('id' => '8975','state_id' => '521','name' => 'Campos Verdes'),\n \t array('id' => '8976','state_id' => '521','name' => 'Carmo do Rio Verde'),\n \t array('id' => '8977','state_id' => '521','name' => 'Catalao'),\n \t array('id' => '8978','state_id' => '521','name' => 'Cavalcante'),\n \t array('id' => '8979','state_id' => '521','name' => 'Ceres'),\n \t array('id' => '8980','state_id' => '521','name' => 'Cidade Ocidental'),\n \t array('id' => '8981','state_id' => '521','name' => 'Cocalzinho de Coias'),\n \t array('id' => '8982','state_id' => '521','name' => 'Cristalina'),\n \t array('id' => '8983','state_id' => '521','name' => 'Crixas'),\n \t array('id' => '8984','state_id' => '521','name' => 'Doverlandia'),\n \t array('id' => '8985','state_id' => '521','name' => 'Edeia'),\n \t array('id' => '8986','state_id' => '521','name' => 'Firminopolis'),\n \t array('id' => '8987','state_id' => '521','name' => 'Formosa'),\n \t array('id' => '8988','state_id' => '521','name' => 'Goianapolis'),\n \t array('id' => '8989','state_id' => '521','name' => 'Goianesia'),\n \t array('id' => '8990','state_id' => '521','name' => 'Goiania'),\n \t array('id' => '8991','state_id' => '521','name' => 'Goianira'),\n \t array('id' => '8992','state_id' => '521','name' => 'Goias'),\n \t array('id' => '8993','state_id' => '521','name' => 'Goiatuba'),\n \t array('id' => '8994','state_id' => '521','name' => 'Guapo'),\n \t array('id' => '8995','state_id' => '521','name' => 'Hidrolandia'),\n \t array('id' => '8996','state_id' => '521','name' => 'Iaciara'),\n \t array('id' => '8997','state_id' => '521','name' => 'Indiara'),\n \t array('id' => '8998','state_id' => '521','name' => 'Inhumas'),\n \t array('id' => '8999','state_id' => '521','name' => 'Ipameri'),\n \t array('id' => '9000','state_id' => '521','name' => 'Ipora'),\n \t array('id' => '9001','state_id' => '521','name' => 'Itaberai'),\n \t array('id' => '9002','state_id' => '521','name' => 'Itapaci'),\n \t array('id' => '9003','state_id' => '521','name' => 'Itapirapua'),\n \t array('id' => '9004','state_id' => '521','name' => 'Itapuranga'),\n \t array('id' => '9005','state_id' => '521','name' => 'Itumbiara'),\n \t array('id' => '9006','state_id' => '521','name' => 'Jaragua'),\n \t array('id' => '9007','state_id' => '521','name' => 'Jatai'),\n \t array('id' => '9008','state_id' => '521','name' => 'Jussara'),\n \t array('id' => '9009','state_id' => '521','name' => 'Luziania'),\n \t array('id' => '9010','state_id' => '521','name' => 'Mara Rosa'),\n \t array('id' => '9011','state_id' => '521','name' => 'Minacu'),\n \t array('id' => '9012','state_id' => '521','name' => 'Mineiros'),\n \t array('id' => '9013','state_id' => '521','name' => 'Morrinhos'),\n \t array('id' => '9014','state_id' => '521','name' => 'Mozarlandia'),\n \t array('id' => '9015','state_id' => '521','name' => 'Neropolis'),\n \t array('id' => '9016','state_id' => '521','name' => 'Niquelandia'),\n \t array('id' => '9017','state_id' => '521','name' => 'Nova Crixas'),\n \t array('id' => '9018','state_id' => '521','name' => 'Novo Gama'),\n \t array('id' => '9019','state_id' => '521','name' => 'Orizona'),\n \t array('id' => '9020','state_id' => '521','name' => 'Padre Bernardo'),\n \t array('id' => '9021','state_id' => '521','name' => 'Palmeiras de Goias'),\n \t array('id' => '9022','state_id' => '521','name' => 'Parauna'),\n \t array('id' => '9023','state_id' => '521','name' => 'Petrolina de Goias'),\n \t array('id' => '9024','state_id' => '521','name' => 'Piracanjuba'),\n \t array('id' => '9025','state_id' => '521','name' => 'Piranhas'),\n \t array('id' => '9026','state_id' => '521','name' => 'Pirenopolis'),\n \t array('id' => '9027','state_id' => '521','name' => 'Pires do Rio'),\n \t array('id' => '9028','state_id' => '521','name' => 'Planaltina'),\n \t array('id' => '9029','state_id' => '521','name' => 'Pontalina'),\n \t array('id' => '9030','state_id' => '521','name' => 'Porangatu'),\n \t array('id' => '9031','state_id' => '521','name' => 'Posse'),\n \t array('id' => '9032','state_id' => '521','name' => 'Quirinopolis'),\n \t array('id' => '9033','state_id' => '521','name' => 'Rialma'),\n \t array('id' => '9034','state_id' => '521','name' => 'Rio Verde'),\n \t array('id' => '9035','state_id' => '521','name' => 'Rubiataba'),\n \t array('id' => '9036','state_id' => '521','name' => 'Santa Helena de Goias'),\n \t array('id' => '9037','state_id' => '521','name' => 'Santa Terezinha de Goias'),\n \t array('id' => '9038','state_id' => '521','name' => 'Santo Antonio do Descoberto'),\n \t array('id' => '9039','state_id' => '521','name' => 'Sao Domingos'),\n \t array('id' => '9040','state_id' => '521','name' => 'Sao Luis de Montes Belos'),\n \t array('id' => '9041','state_id' => '521','name' => 'Sao Miguel do Araguaia'),\n \t array('id' => '9042','state_id' => '521','name' => 'Sao Simao'),\n \t array('id' => '9043','state_id' => '521','name' => 'Senador Canedo'),\n \t array('id' => '9044','state_id' => '521','name' => 'Silvania'),\n \t array('id' => '9045','state_id' => '521','name' => 'Trindade'),\n \t array('id' => '9046','state_id' => '521','name' => 'Uruacu'),\n \t array('id' => '9047','state_id' => '521','name' => 'Uruana'),\n \t array('id' => '9048','state_id' => '521','name' => 'Valparaiso de Goias'),\n \t array('id' => '9049','state_id' => '521','name' => 'Vianopolis'),\n \t array('id' => '9050','state_id' => '522','name' => 'Acailandia'),\n \t array('id' => '9051','state_id' => '522','name' => 'Alcantara'),\n \t array('id' => '9052','state_id' => '522','name' => 'Aldeias Altas'),\n \t array('id' => '9053','state_id' => '522','name' => 'Alto Alegre do Pindare'),\n \t array('id' => '9054','state_id' => '522','name' => 'Amarante do Maranhao'),\n \t array('id' => '9055','state_id' => '522','name' => 'Anajatuba'),\n \t array('id' => '9056','state_id' => '522','name' => 'Araioses'),\n \t array('id' => '9057','state_id' => '522','name' => 'Arame'),\n \t array('id' => '9058','state_id' => '522','name' => 'Arari'),\n \t array('id' => '9059','state_id' => '522','name' => 'Bacabal'),\n \t array('id' => '9060','state_id' => '522','name' => 'Balsas'),\n \t array('id' => '9061','state_id' => '522','name' => 'Barra do Corda'),\n \t array('id' => '9062','state_id' => '522','name' => 'Barreirinhas'),\n \t array('id' => '9063','state_id' => '522','name' => 'Bequimao'),\n \t array('id' => '9064','state_id' => '522','name' => 'Bom Jardim'),\n \t array('id' => '9065','state_id' => '522','name' => 'Brejo'),\n \t array('id' => '9066','state_id' => '522','name' => 'Buriti'),\n \t array('id' => '9067','state_id' => '522','name' => 'Buriti Bravo'),\n \t array('id' => '9068','state_id' => '522','name' => 'Buriticupu'),\n \t array('id' => '9069','state_id' => '522','name' => 'Candido Mendes'),\n \t array('id' => '9070','state_id' => '522','name' => 'Cantanhede'),\n \t array('id' => '9071','state_id' => '522','name' => 'Carolina'),\n \t array('id' => '9072','state_id' => '522','name' => 'Carutapera'),\n \t array('id' => '9073','state_id' => '522','name' => 'Caxias'),\n \t array('id' => '9074','state_id' => '522','name' => 'Chapadinha'),\n \t array('id' => '9075','state_id' => '522','name' => 'Codo'),\n \t array('id' => '9076','state_id' => '522','name' => 'Coelho Neto'),\n \t array('id' => '9077','state_id' => '522','name' => 'Colinas'),\n \t array('id' => '9078','state_id' => '522','name' => 'Coroata'),\n \t array('id' => '9079','state_id' => '522','name' => 'Cururupu'),\n \t array('id' => '9080','state_id' => '522','name' => 'Davinopolis'),\n \t array('id' => '9081','state_id' => '522','name' => 'Dom Pedro'),\n \t array('id' => '9082','state_id' => '522','name' => 'Esperantinopolis'),\n \t array('id' => '9083','state_id' => '522','name' => 'Estreito'),\n \t array('id' => '9084','state_id' => '522','name' => 'Fortuna'),\n \t array('id' => '9085','state_id' => '522','name' => 'Godofredo Viana'),\n \t array('id' => '9086','state_id' => '522','name' => 'Governador Eugenio Barros'),\n \t array('id' => '9087','state_id' => '522','name' => 'Governador Nunes Freire'),\n \t array('id' => '9088','state_id' => '522','name' => 'Grajau'),\n \t array('id' => '9089','state_id' => '522','name' => 'Humberto de Campos'),\n \t array('id' => '9090','state_id' => '522','name' => 'Icatu'),\n \t array('id' => '9091','state_id' => '522','name' => 'Imperatriz'),\n \t array('id' => '9092','state_id' => '522','name' => 'Itapecuru Mirim'),\n \t array('id' => '9093','state_id' => '522','name' => 'Itinga do Maranhao'),\n \t array('id' => '9094','state_id' => '522','name' => 'Joao Lisboa'),\n \t array('id' => '9095','state_id' => '522','name' => 'Lago da Pedra'),\n \t array('id' => '9096','state_id' => '522','name' => 'Lago do Junco'),\n \t array('id' => '9097','state_id' => '522','name' => 'Maracacume'),\n \t array('id' => '9098','state_id' => '522','name' => 'Matinha'),\n \t array('id' => '9099','state_id' => '522','name' => 'Matoes'),\n \t array('id' => '9100','state_id' => '522','name' => 'Mirador'),\n \t array('id' => '9101','state_id' => '522','name' => 'Miranda do Norte'),\n \t array('id' => '9102','state_id' => '522','name' => 'Moncao'),\n \t array('id' => '9103','state_id' => '522','name' => 'Montes Altos'),\n \t array('id' => '9104','state_id' => '522','name' => 'Morros'),\n \t array('id' => '9105','state_id' => '522','name' => 'Nova Olinda do Maranhao'),\n \t array('id' => '9106','state_id' => '522','name' => 'Olho d\\'Agua das Cunhas'),\n \t array('id' => '9107','state_id' => '522','name' => 'Paco do Lumiar'),\n \t array('id' => '9108','state_id' => '522','name' => 'Paraibano'),\n \t array('id' => '9109','state_id' => '522','name' => 'Parnarama'),\n \t array('id' => '9110','state_id' => '522','name' => 'Passagem Franca'),\n \t array('id' => '9111','state_id' => '522','name' => 'Pastos Bons'),\n \t array('id' => '9112','state_id' => '522','name' => 'Paulo Ramos'),\n \t array('id' => '9113','state_id' => '522','name' => 'Pedreiras'),\n \t array('id' => '9114','state_id' => '522','name' => 'Penalva'),\n \t array('id' => '9115','state_id' => '522','name' => 'Pindare Mirim'),\n \t array('id' => '9116','state_id' => '522','name' => 'Pinheiro'),\n \t array('id' => '9117','state_id' => '522','name' => 'Pio XII'),\n \t array('id' => '9118','state_id' => '522','name' => 'Pirapemas'),\n \t array('id' => '9119','state_id' => '522','name' => 'Pocao de Pedras'),\n \t array('id' => '9120','state_id' => '522','name' => 'Porto Franco'),\n \t array('id' => '9121','state_id' => '522','name' => 'Presidente Dutra'),\n \t array('id' => '9122','state_id' => '522','name' => 'Raposa'),\n \t array('id' => '9123','state_id' => '522','name' => 'Riachao'),\n \t array('id' => '9124','state_id' => '522','name' => 'Rosario'),\n \t array('id' => '9125','state_id' => '522','name' => 'Santa Helena'),\n \t array('id' => '9126','state_id' => '522','name' => 'Santa Ines'),\n \t array('id' => '9127','state_id' => '522','name' => 'Santa Luzia'),\n \t array('id' => '9128','state_id' => '522','name' => 'Santa Luzia do Parua'),\n \t array('id' => '9129','state_id' => '522','name' => 'Santa Quiteria do Maranhao'),\n \t array('id' => '9130','state_id' => '522','name' => 'Santa Rita'),\n \t array('id' => '9131','state_id' => '522','name' => 'Sao Benedito do Rio Preto'),\n \t array('id' => '9132','state_id' => '522','name' => 'Sao Bento'),\n \t array('id' => '9133','state_id' => '522','name' => 'Sao Bernardo'),\n \t array('id' => '9134','state_id' => '522','name' => 'Sao Domingos do Maranhao'),\n \t array('id' => '9135','state_id' => '522','name' => 'Sao Joao Batista'),\n \t array('id' => '9136','state_id' => '522','name' => 'Sao Joao dos Patos'),\n \t array('id' => '9137','state_id' => '522','name' => 'Sao Jose de Ribamar'),\n \t array('id' => '9138','state_id' => '522','name' => 'Sao Luis'),\n \t array('id' => '9139','state_id' => '522','name' => 'Sao Luis Gonzaga do Maranhao'),\n \t array('id' => '9140','state_id' => '522','name' => 'Sao Mateus do Maranhao'),\n \t array('id' => '9141','state_id' => '522','name' => 'Sao Pedro da Agua Branca'),\n \t array('id' => '9142','state_id' => '522','name' => 'Sao Raimundo das Mangabeiras'),\n \t array('id' => '9143','state_id' => '522','name' => 'Timbiras'),\n \t array('id' => '9144','state_id' => '522','name' => 'Timon'),\n \t array('id' => '9145','state_id' => '522','name' => 'Trizidela do Vale'),\n \t array('id' => '9146','state_id' => '522','name' => 'Tuntum'),\n \t array('id' => '9147','state_id' => '522','name' => 'Turiacu'),\n \t array('id' => '9148','state_id' => '522','name' => 'Tutoia'),\n \t array('id' => '9149','state_id' => '522','name' => 'Urbano Santos'),\n \t array('id' => '9150','state_id' => '522','name' => 'Vargem Grande'),\n \t array('id' => '9151','state_id' => '522','name' => 'Viana'),\n \t array('id' => '9152','state_id' => '522','name' => 'Vitoria do Mearim'),\n \t array('id' => '9153','state_id' => '522','name' => 'Vitorino Freire'),\n \t array('id' => '9154','state_id' => '522','name' => 'Ze Doca'),\n \t array('id' => '9155','state_id' => '526','name' => 'Abaetetuba'),\n \t array('id' => '9156','state_id' => '526','name' => 'Acara'),\n \t array('id' => '9157','state_id' => '526','name' => 'Afua'),\n \t array('id' => '9158','state_id' => '526','name' => 'Agua Azul do Norte'),\n \t array('id' => '9159','state_id' => '526','name' => 'Alenquer'),\n \t array('id' => '9160','state_id' => '526','name' => 'Almeirim'),\n \t array('id' => '9161','state_id' => '526','name' => 'Altamira'),\n \t array('id' => '9162','state_id' => '526','name' => 'Ananindeua'),\n \t array('id' => '9163','state_id' => '526','name' => 'Augusto Correa'),\n \t array('id' => '9164','state_id' => '526','name' => 'Baiao'),\n \t array('id' => '9165','state_id' => '526','name' => 'Barcarena'),\n \t array('id' => '9166','state_id' => '526','name' => 'Belem'),\n \t array('id' => '9167','state_id' => '526','name' => 'Benevides'),\n \t array('id' => '9168','state_id' => '526','name' => 'Braganca'),\n \t array('id' => '9169','state_id' => '526','name' => 'Breu Branco'),\n \t array('id' => '9170','state_id' => '526','name' => 'Breves'),\n \t array('id' => '9171','state_id' => '526','name' => 'Bujaru'),\n \t array('id' => '9172','state_id' => '526','name' => 'Cameta'),\n \t array('id' => '9173','state_id' => '526','name' => 'Capanema'),\n \t array('id' => '9174','state_id' => '526','name' => 'Capitao Poco'),\n \t array('id' => '9175','state_id' => '526','name' => 'Castanhal'),\n \t array('id' => '9176','state_id' => '526','name' => 'Conceicao do Araguaia'),\n \t array('id' => '9177','state_id' => '526','name' => 'Concordia do Para'),\n \t array('id' => '9178','state_id' => '526','name' => 'Curionopolis'),\n \t array('id' => '9179','state_id' => '526','name' => 'Curuca'),\n \t array('id' => '9180','state_id' => '526','name' => 'Dom Eliseu'),\n \t array('id' => '9181','state_id' => '526','name' => 'Eldorado dos Carajas'),\n \t array('id' => '9182','state_id' => '526','name' => 'Garrafao do Norte'),\n \t array('id' => '9183','state_id' => '526','name' => 'Goianesia do Para'),\n \t array('id' => '9184','state_id' => '526','name' => 'Gurupa'),\n \t array('id' => '9185','state_id' => '526','name' => 'Igarape-Acu'),\n \t array('id' => '9186','state_id' => '526','name' => 'Igarape-Miri'),\n \t array('id' => '9187','state_id' => '526','name' => 'Irituia'),\n \t array('id' => '9188','state_id' => '526','name' => 'Itaituba'),\n \t array('id' => '9189','state_id' => '526','name' => 'Itupiranga'),\n \t array('id' => '9190','state_id' => '526','name' => 'Jacareacanga'),\n \t array('id' => '9191','state_id' => '526','name' => 'Jacunda'),\n \t array('id' => '9192','state_id' => '526','name' => 'Juruti'),\n \t array('id' => '9193','state_id' => '526','name' => 'Limoeiro do Ajuru'),\n \t array('id' => '9194','state_id' => '526','name' => 'Mae do Rio'),\n \t array('id' => '9195','state_id' => '526','name' => 'Maraba'),\n \t array('id' => '9196','state_id' => '526','name' => 'Maracana'),\n \t array('id' => '9197','state_id' => '526','name' => 'Marapanim'),\n \t array('id' => '9198','state_id' => '526','name' => 'Marituba'),\n \t array('id' => '9199','state_id' => '526','name' => 'Medicilandia'),\n \t array('id' => '9200','state_id' => '526','name' => 'Mocajuba'),\n \t array('id' => '9201','state_id' => '526','name' => 'Moju'),\n \t array('id' => '9202','state_id' => '526','name' => 'Monte Alegre'),\n \t array('id' => '9203','state_id' => '526','name' => 'Muana'),\n \t array('id' => '9204','state_id' => '526','name' => 'Novo Progresso'),\n \t array('id' => '9205','state_id' => '526','name' => 'Novo Repartimento'),\n \t array('id' => '9206','state_id' => '526','name' => 'Obidos'),\n \t array('id' => '9207','state_id' => '526','name' => 'Oeiras do Para'),\n \t array('id' => '9208','state_id' => '526','name' => 'Oriximina'),\n \t array('id' => '9209','state_id' => '526','name' => 'Ourem'),\n \t array('id' => '9210','state_id' => '526','name' => 'Ourilandia'),\n \t array('id' => '9211','state_id' => '526','name' => 'Pacaja'),\n \t array('id' => '9212','state_id' => '526','name' => 'Paragominas'),\n \t array('id' => '9213','state_id' => '526','name' => 'Parauapebas'),\n \t array('id' => '9214','state_id' => '526','name' => 'Portel'),\n \t array('id' => '9215','state_id' => '526','name' => 'Porto de Moz'),\n \t array('id' => '9216','state_id' => '526','name' => 'Prainha'),\n \t array('id' => '9217','state_id' => '526','name' => 'Redencao'),\n \t array('id' => '9218','state_id' => '526','name' => 'Rio Maria'),\n \t array('id' => '9219','state_id' => '526','name' => 'Rondon do Para'),\n \t array('id' => '9220','state_id' => '526','name' => 'Ruropolis'),\n \t array('id' => '9221','state_id' => '526','name' => 'Salinopolis'),\n \t array('id' => '9222','state_id' => '526','name' => 'Santa Isabel do Para'),\n \t array('id' => '9223','state_id' => '526','name' => 'Santa Luzia do Para'),\n \t array('id' => '9224','state_id' => '526','name' => 'Santa Maria do Para'),\n \t array('id' => '9225','state_id' => '526','name' => 'Santana do Araguaia'),\n \t array('id' => '9226','state_id' => '526','name' => 'Santarem'),\n \t array('id' => '9227','state_id' => '526','name' => 'Santo Antonio do Taua'),\n \t array('id' => '9228','state_id' => '526','name' => 'Sao Caetano de Odivelas'),\n \t array('id' => '9229','state_id' => '526','name' => 'Sao Domingos do Araguaia'),\n \t array('id' => '9230','state_id' => '526','name' => 'Sao Domingos do Capim'),\n \t array('id' => '9231','state_id' => '526','name' => 'Sao Felix do Xingu'),\n \t array('id' => '9232','state_id' => '526','name' => 'Sao Geraldo do Araguaia'),\n \t array('id' => '9233','state_id' => '526','name' => 'Sao Joao de Pirabas'),\n \t array('id' => '9234','state_id' => '526','name' => 'Sao Miguel do Guama'),\n \t array('id' => '9235','state_id' => '526','name' => 'Senador Jose Porfirio'),\n \t array('id' => '9236','state_id' => '526','name' => 'Soure'),\n \t array('id' => '9237','state_id' => '526','name' => 'Tailandia'),\n \t array('id' => '9238','state_id' => '526','name' => 'Terra Santa'),\n \t array('id' => '9239','state_id' => '526','name' => 'Tome-Acu'),\n \t array('id' => '9240','state_id' => '526','name' => 'Tucuma'),\n \t array('id' => '9241','state_id' => '526','name' => 'Tucurui'),\n \t array('id' => '9242','state_id' => '526','name' => 'Ulianopolis'),\n \t array('id' => '9243','state_id' => '526','name' => 'Uruara'),\n \t array('id' => '9244','state_id' => '526','name' => 'Vigia'),\n \t array('id' => '9245','state_id' => '526','name' => 'Viseu'),\n \t array('id' => '9246','state_id' => '526','name' => 'Xinguara'),\n \t array('id' => '9247','state_id' => '527','name' => 'Alagoa Grande'),\n \t array('id' => '9248','state_id' => '527','name' => 'Alagoa Nova'),\n \t array('id' => '9249','state_id' => '527','name' => 'Alagoinha'),\n \t array('id' => '9250','state_id' => '527','name' => 'Alhandra'),\n \t array('id' => '9251','state_id' => '527','name' => 'Aracagi'),\n \t array('id' => '9252','state_id' => '527','name' => 'Arara'),\n \t array('id' => '9253','state_id' => '527','name' => 'Araruna'),\n \t array('id' => '9254','state_id' => '527','name' => 'Areia'),\n \t array('id' => '9255','state_id' => '527','name' => 'Aroeiras'),\n \t array('id' => '9256','state_id' => '527','name' => 'Bananeiras'),\n \t array('id' => '9257','state_id' => '527','name' => 'Barra de Santa Rosa'),\n \t array('id' => '9258','state_id' => '527','name' => 'Bayeux'),\n \t array('id' => '9259','state_id' => '527','name' => 'Belem'),\n \t array('id' => '9260','state_id' => '527','name' => 'Boqueirao'),\n \t array('id' => '9261','state_id' => '527','name' => 'Brejo do Cruz'),\n \t array('id' => '9262','state_id' => '527','name' => 'Caapora'),\n \t array('id' => '9263','state_id' => '527','name' => 'Cabedelo'),\n \t array('id' => '9264','state_id' => '527','name' => 'Cacimba de Dentro'),\n \t array('id' => '9265','state_id' => '527','name' => 'Cajazeiras'),\n \t array('id' => '9266','state_id' => '527','name' => 'Campina Grande'),\n \t array('id' => '9267','state_id' => '527','name' => 'Catole do Rocha'),\n \t array('id' => '9268','state_id' => '527','name' => 'Conceicao'),\n \t array('id' => '9269','state_id' => '527','name' => 'Conde'),\n \t array('id' => '9270','state_id' => '527','name' => 'Coremas'),\n \t array('id' => '9271','state_id' => '527','name' => 'Cruz do Espirito Santo'),\n \t array('id' => '9272','state_id' => '527','name' => 'Cuite'),\n \t array('id' => '9273','state_id' => '527','name' => 'Desterro'),\n \t array('id' => '9274','state_id' => '527','name' => 'Dona Ines'),\n \t array('id' => '9275','state_id' => '527','name' => 'Esperanca'),\n \t array('id' => '9276','state_id' => '527','name' => 'Fagundes'),\n \t array('id' => '9277','state_id' => '527','name' => 'Guarabira'),\n \t array('id' => '9278','state_id' => '527','name' => 'Gurinhem'),\n \t array('id' => '9279','state_id' => '527','name' => 'Imaculada'),\n \t array('id' => '9280','state_id' => '527','name' => 'Inga'),\n \t array('id' => '9281','state_id' => '527','name' => 'Itabaiana'),\n \t array('id' => '9282','state_id' => '527','name' => 'Itaporanga'),\n \t array('id' => '9283','state_id' => '527','name' => 'Itapororoca'),\n \t array('id' => '9284','state_id' => '527','name' => 'Itatuba'),\n \t array('id' => '9285','state_id' => '527','name' => 'Jacarau'),\n \t array('id' => '9286','state_id' => '527','name' => 'Joao Pessoa'),\n \t array('id' => '9287','state_id' => '527','name' => 'Juazeirinho'),\n \t array('id' => '9288','state_id' => '527','name' => 'Juripiranga'),\n \t array('id' => '9289','state_id' => '527','name' => 'Juru'),\n \t array('id' => '9290','state_id' => '527','name' => 'Lagoa Seca'),\n \t array('id' => '9291','state_id' => '527','name' => 'Mamanguape'),\n \t array('id' => '9292','state_id' => '527','name' => 'Manaira'),\n \t array('id' => '9293','state_id' => '527','name' => 'Mari'),\n \t array('id' => '9294','state_id' => '527','name' => 'Massaranduba'),\n \t array('id' => '9295','state_id' => '527','name' => 'Mogeiro'),\n \t array('id' => '9296','state_id' => '527','name' => 'Monteiro'),\n \t array('id' => '9297','state_id' => '527','name' => 'Mulungu'),\n \t array('id' => '9298','state_id' => '527','name' => 'Natuba'),\n \t array('id' => '9299','state_id' => '527','name' => 'Nova Floresta'),\n \t array('id' => '9300','state_id' => '527','name' => 'Patos'),\n \t array('id' => '9301','state_id' => '527','name' => 'Paulista'),\n \t array('id' => '9302','state_id' => '527','name' => 'Pedras de Fogo'),\n \t array('id' => '9303','state_id' => '527','name' => 'Pianco'),\n \t array('id' => '9304','state_id' => '527','name' => 'Picui'),\n \t array('id' => '9305','state_id' => '527','name' => 'Pilar'),\n \t array('id' => '9306','state_id' => '527','name' => 'Pirpirituba'),\n \t array('id' => '9307','state_id' => '527','name' => 'Pitimbu'),\n \t array('id' => '9308','state_id' => '527','name' => 'Pocinhos'),\n \t array('id' => '9309','state_id' => '527','name' => 'Pombal'),\n \t array('id' => '9310','state_id' => '527','name' => 'Princesa Isabel'),\n \t array('id' => '9311','state_id' => '527','name' => 'Puxinana'),\n \t array('id' => '9312','state_id' => '527','name' => 'Queimadas'),\n \t array('id' => '9313','state_id' => '527','name' => 'Remigio'),\n \t array('id' => '9314','state_id' => '527','name' => 'Rio Tinto'),\n \t array('id' => '9315','state_id' => '527','name' => 'Salgado de Sao Felix'),\n \t array('id' => '9316','state_id' => '527','name' => 'Santa Luzia'),\n \t array('id' => '9317','state_id' => '527','name' => 'Santa Rita'),\n \t array('id' => '9318','state_id' => '527','name' => 'Sao Bento'),\n \t array('id' => '9319','state_id' => '527','name' => 'Sao Joao do Rio do Peixe'),\n \t array('id' => '9320','state_id' => '527','name' => 'Sao Jose de Piranhas'),\n \t array('id' => '9321','state_id' => '527','name' => 'Sao Sebastiao de Lagoa de Roca'),\n \t array('id' => '9322','state_id' => '527','name' => 'Sape'),\n \t array('id' => '9323','state_id' => '527','name' => 'Serra Branca'),\n \t array('id' => '9324','state_id' => '527','name' => 'Solanea'),\n \t array('id' => '9325','state_id' => '527','name' => 'Soledade'),\n \t array('id' => '9326','state_id' => '527','name' => 'Sousa'),\n \t array('id' => '9327','state_id' => '527','name' => 'Sume'),\n \t array('id' => '9328','state_id' => '527','name' => 'Taperoa'),\n \t array('id' => '9329','state_id' => '527','name' => 'Tavares'),\n \t array('id' => '9330','state_id' => '527','name' => 'Teixeira'),\n \t array('id' => '9331','state_id' => '527','name' => 'Triunfo'),\n \t array('id' => '9332','state_id' => '527','name' => 'Uirauna'),\n \t array('id' => '9333','state_id' => '527','name' => 'Umbuzeiro'),\n \t array('id' => '9334','state_id' => '528','name' => 'Almirante Tamandare'),\n \t array('id' => '9335','state_id' => '528','name' => 'Alto Parana'),\n \t array('id' => '9336','state_id' => '528','name' => 'Alto Piquiri'),\n \t array('id' => '9337','state_id' => '528','name' => 'Altonia'),\n \t array('id' => '9338','state_id' => '528','name' => 'Ampere'),\n \t array('id' => '9339','state_id' => '528','name' => 'Andira'),\n \t array('id' => '9340','state_id' => '528','name' => 'Antonina'),\n \t array('id' => '9341','state_id' => '528','name' => 'Apucarana'),\n \t array('id' => '9342','state_id' => '528','name' => 'Arapongas'),\n \t array('id' => '9343','state_id' => '528','name' => 'Arapoti'),\n \t array('id' => '9344','state_id' => '528','name' => 'Araucaria'),\n \t array('id' => '9345','state_id' => '528','name' => 'Assai'),\n \t array('id' => '9346','state_id' => '528','name' => 'Assis Chateaubriand'),\n \t array('id' => '9347','state_id' => '528','name' => 'Astorga'),\n \t array('id' => '9348','state_id' => '528','name' => 'Bandeirantes'),\n \t array('id' => '9349','state_id' => '528','name' => 'Barbosa Ferraz'),\n \t array('id' => '9350','state_id' => '528','name' => 'Bela Vista do Paraiso'),\n \t array('id' => '9351','state_id' => '528','name' => 'Cambara'),\n \t array('id' => '9352','state_id' => '528','name' => 'Cambe'),\n \t array('id' => '9353','state_id' => '528','name' => 'Campina Grande do Sul'),\n \t array('id' => '9354','state_id' => '528','name' => 'Campina da Lagoa'),\n \t array('id' => '9355','state_id' => '528','name' => 'Campo Largo'),\n \t array('id' => '9356','state_id' => '528','name' => 'Campo Murao'),\n \t array('id' => '9357','state_id' => '528','name' => 'Candido de Abreu'),\n \t array('id' => '9358','state_id' => '528','name' => 'Capitao Leonidas Marques'),\n \t array('id' => '9359','state_id' => '528','name' => 'Carambei'),\n \t array('id' => '9360','state_id' => '528','name' => 'Cascavel'),\n \t array('id' => '9361','state_id' => '528','name' => 'Castro'),\n \t array('id' => '9362','state_id' => '528','name' => 'Centenario do Sul'),\n \t array('id' => '9363','state_id' => '528','name' => 'Chopinzinho'),\n \t array('id' => '9364','state_id' => '528','name' => 'Cianorte'),\n \t array('id' => '9365','state_id' => '528','name' => 'Clevelandia'),\n \t array('id' => '9366','state_id' => '528','name' => 'Colombo'),\n \t array('id' => '9367','state_id' => '528','name' => 'Colorado'),\n \t array('id' => '9368','state_id' => '528','name' => 'Contenda'),\n \t array('id' => '9369','state_id' => '528','name' => 'Corbelia'),\n \t array('id' => '9370','state_id' => '528','name' => 'Cornelio Procopio'),\n \t array('id' => '9371','state_id' => '528','name' => 'Coronel Vivida'),\n \t array('id' => '9372','state_id' => '528','name' => 'Cruzeiro do Oeste'),\n \t array('id' => '9373','state_id' => '528','name' => 'Curitiba'),\n \t array('id' => '9374','state_id' => '528','name' => 'Dois Vizinhos'),\n \t array('id' => '9375','state_id' => '528','name' => 'Engenheiro Beltrao'),\n \t array('id' => '9376','state_id' => '528','name' => 'Faxinal'),\n \t array('id' => '9377','state_id' => '528','name' => 'Fazenda Rio Grande'),\n \t array('id' => '9378','state_id' => '528','name' => 'Florestopolis'),\n \t array('id' => '9379','state_id' => '528','name' => 'Foz do Iguacu'),\n \t array('id' => '9380','state_id' => '528','name' => 'Francisco Beltrao'),\n \t array('id' => '9381','state_id' => '528','name' => 'Goioere'),\n \t array('id' => '9382','state_id' => '528','name' => 'Guaira'),\n \t array('id' => '9383','state_id' => '528','name' => 'Guaraniacu'),\n \t array('id' => '9384','state_id' => '528','name' => 'Guarapuava'),\n \t array('id' => '9385','state_id' => '528','name' => 'Guaratuba'),\n \t array('id' => '9386','state_id' => '528','name' => 'Ibaiti'),\n \t array('id' => '9387','state_id' => '528','name' => 'Ibipora'),\n \t array('id' => '9388','state_id' => '528','name' => 'Imbituva'),\n \t array('id' => '9389','state_id' => '528','name' => 'Ipora'),\n \t array('id' => '9390','state_id' => '528','name' => 'Irati'),\n \t array('id' => '9391','state_id' => '528','name' => 'Itaperucu'),\n \t array('id' => '9392','state_id' => '528','name' => 'Ivaipora'),\n \t array('id' => '9393','state_id' => '528','name' => 'Jacarezinho'),\n \t array('id' => '9394','state_id' => '528','name' => 'Jaguariaiva'),\n \t array('id' => '9395','state_id' => '528','name' => 'Jandaia do Sul'),\n \t array('id' => '9396','state_id' => '528','name' => 'Jataizinho'),\n \t array('id' => '9397','state_id' => '528','name' => 'Lapa'),\n \t array('id' => '9398','state_id' => '528','name' => 'Laranjeiras do Sul'),\n \t array('id' => '9399','state_id' => '528','name' => 'Loanda'),\n \t array('id' => '9400','state_id' => '528','name' => 'Londrina'),\n \t array('id' => '9401','state_id' => '528','name' => 'Mandaguacu'),\n \t array('id' => '9402','state_id' => '528','name' => 'Mandaguari'),\n \t array('id' => '9403','state_id' => '528','name' => 'Marechal Candido Rondon'),\n \t array('id' => '9404','state_id' => '528','name' => 'Marialva'),\n \t array('id' => '9405','state_id' => '528','name' => 'Maringa'),\n \t array('id' => '9406','state_id' => '528','name' => 'Matelandia'),\n \t array('id' => '9407','state_id' => '528','name' => 'Matinhos'),\n \t array('id' => '9408','state_id' => '528','name' => 'Medianeira'),\n \t array('id' => '9409','state_id' => '528','name' => 'Moreira Sales'),\n \t array('id' => '9410','state_id' => '528','name' => 'Nova Aurora'),\n \t array('id' => '9411','state_id' => '528','name' => 'Nova Esperanca'),\n \t array('id' => '9412','state_id' => '528','name' => 'Nova Londrina'),\n \t array('id' => '9413','state_id' => '528','name' => 'Ortigueira'),\n \t array('id' => '9414','state_id' => '528','name' => 'Paicandu'),\n \t array('id' => '9415','state_id' => '528','name' => 'Palmas'),\n \t array('id' => '9416','state_id' => '528','name' => 'Palmeira'),\n \t array('id' => '9417','state_id' => '528','name' => 'Palotina'),\n \t array('id' => '9418','state_id' => '528','name' => 'Paranagua'),\n \t array('id' => '9419','state_id' => '528','name' => 'Paranavai'),\n \t array('id' => '9420','state_id' => '528','name' => 'Pato Branco'),\n \t array('id' => '9421','state_id' => '528','name' => 'Peabiru'),\n \t array('id' => '9422','state_id' => '528','name' => 'Pinhais'),\n \t array('id' => '9423','state_id' => '528','name' => 'Pinhao'),\n \t array('id' => '9424','state_id' => '528','name' => 'Pirai do Sul'),\n \t array('id' => '9425','state_id' => '528','name' => 'Piraquara'),\n \t array('id' => '9426','state_id' => '528','name' => 'Pitanga'),\n \t array('id' => '9427','state_id' => '528','name' => 'Ponta Grossa'),\n \t array('id' => '9428','state_id' => '528','name' => 'Pontal do Parana'),\n \t array('id' => '9429','state_id' => '528','name' => 'Porecatu'),\n \t array('id' => '9430','state_id' => '528','name' => 'Primero de Maio'),\n \t array('id' => '9431','state_id' => '528','name' => 'Prudentopolis'),\n \t array('id' => '9432','state_id' => '528','name' => 'Quatro Barras'),\n \t array('id' => '9433','state_id' => '528','name' => 'Quedas do Iguacu'),\n \t array('id' => '9434','state_id' => '528','name' => 'Realeza'),\n \t array('id' => '9435','state_id' => '528','name' => 'Reserva'),\n \t array('id' => '9436','state_id' => '528','name' => 'Ribeirao do Pinhal'),\n \t array('id' => '9437','state_id' => '528','name' => 'Rio Branco do Sul'),\n \t array('id' => '9438','state_id' => '528','name' => 'Rio Negro'),\n \t array('id' => '9439','state_id' => '528','name' => 'Rolandia'),\n \t array('id' => '9440','state_id' => '528','name' => 'Santa Helena'),\n \t array('id' => '9441','state_id' => '528','name' => 'Santa Terezinha de Itaipu'),\n \t array('id' => '9442','state_id' => '528','name' => 'Santo Antonio da Platina'),\n \t array('id' => '9443','state_id' => '528','name' => 'Santo Antonio do Sudoeste'),\n \t array('id' => '9444','state_id' => '528','name' => 'Sao Joao do Ivai'),\n \t array('id' => '9445','state_id' => '528','name' => 'Sao Jose dos Pinhais'),\n \t array('id' => '9446','state_id' => '528','name' => 'Sao Mateus do Sul'),\n \t array('id' => '9447','state_id' => '528','name' => 'Sao Miguel do Iguacu'),\n \t array('id' => '9448','state_id' => '528','name' => 'Sarandi'),\n \t array('id' => '9449','state_id' => '528','name' => 'Senges'),\n \t array('id' => '9450','state_id' => '528','name' => 'Sertanopolis'),\n \t array('id' => '9451','state_id' => '528','name' => 'Siquera Campos'),\n \t array('id' => '9452','state_id' => '528','name' => 'Tapejara'),\n \t array('id' => '9453','state_id' => '528','name' => 'Telemaco Borba'),\n \t array('id' => '9454','state_id' => '528','name' => 'Terra Boa'),\n \t array('id' => '9455','state_id' => '528','name' => 'Terra Rica'),\n \t array('id' => '9456','state_id' => '528','name' => 'Terra Roxa'),\n \t array('id' => '9457','state_id' => '528','name' => 'Tibagi'),\n \t array('id' => '9458','state_id' => '528','name' => 'Toledo'),\n \t array('id' => '9459','state_id' => '528','name' => 'Ubirata'),\n \t array('id' => '9460','state_id' => '528','name' => 'Umuarama'),\n \t array('id' => '9461','state_id' => '528','name' => 'Uniao da Victoria'),\n \t array('id' => '9462','state_id' => '528','name' => 'Wenceslau Braz'),\n \t array('id' => '9463','state_id' => '529','name' => 'Abreu e Lima'),\n \t array('id' => '9464','state_id' => '529','name' => 'Afogados da Ingazeira'),\n \t array('id' => '9465','state_id' => '529','name' => 'Agrestina'),\n \t array('id' => '9466','state_id' => '529','name' => 'Agua Preta'),\n \t array('id' => '9467','state_id' => '529','name' => 'Aguas Belas'),\n \t array('id' => '9468','state_id' => '529','name' => 'Alianca'),\n \t array('id' => '9469','state_id' => '529','name' => 'Altinho'),\n \t array('id' => '9470','state_id' => '529','name' => 'Amaraji'),\n \t array('id' => '9471','state_id' => '529','name' => 'Aracoiaba'),\n \t array('id' => '9472','state_id' => '529','name' => 'Araripina'),\n \t array('id' => '9473','state_id' => '529','name' => 'Arcoverde'),\n \t array('id' => '9474','state_id' => '529','name' => 'Barra de Guabiraba'),\n \t array('id' => '9475','state_id' => '529','name' => 'Barreiros'),\n \t array('id' => '9476','state_id' => '529','name' => 'Belem de Sao Francisco'),\n \t array('id' => '9477','state_id' => '529','name' => 'Belo Jardim'),\n \t array('id' => '9478','state_id' => '529','name' => 'Bezerros'),\n \t array('id' => '9479','state_id' => '529','name' => 'Bodoco'),\n \t array('id' => '9480','state_id' => '529','name' => 'Bom Conselho'),\n \t array('id' => '9481','state_id' => '529','name' => 'Bom Jardim'),\n \t array('id' => '9482','state_id' => '529','name' => 'Bonito'),\n \t array('id' => '9483','state_id' => '529','name' => 'Brejo da Madre de Deus'),\n \t array('id' => '9484','state_id' => '529','name' => 'Buique'),\n \t array('id' => '9485','state_id' => '529','name' => 'Cabo de Santo Agostinho'),\n \t array('id' => '9486','state_id' => '529','name' => 'Cabrobo'),\n \t array('id' => '9487','state_id' => '529','name' => 'Cachoeirinha'),\n \t array('id' => '9488','state_id' => '529','name' => 'Caetes'),\n \t array('id' => '9489','state_id' => '529','name' => 'Camaragibe'),\n \t array('id' => '9490','state_id' => '529','name' => 'Camocim de Sao Felix'),\n \t array('id' => '9491','state_id' => '529','name' => 'Canhotinho'),\n \t array('id' => '9492','state_id' => '529','name' => 'Capoeiras'),\n \t array('id' => '9493','state_id' => '529','name' => 'Carnaiba'),\n \t array('id' => '9494','state_id' => '529','name' => 'Carpina'),\n \t array('id' => '9495','state_id' => '529','name' => 'Caruaru'),\n \t array('id' => '9496','state_id' => '529','name' => 'Catende'),\n \t array('id' => '9497','state_id' => '529','name' => 'Cha Grande'),\n \t array('id' => '9498','state_id' => '529','name' => 'Condado'),\n \t array('id' => '9499','state_id' => '529','name' => 'Cumaru'),\n \t array('id' => '9500','state_id' => '529','name' => 'Cupira'),\n \t array('id' => '9501','state_id' => '529','name' => 'Custodia'),\n \t array('id' => '9502','state_id' => '529','name' => 'Escada'),\n \t array('id' => '9503','state_id' => '529','name' => 'Exu'),\n \t array('id' => '9504','state_id' => '529','name' => 'Feira Nova'),\n \t array('id' => '9505','state_id' => '529','name' => 'Fernando de Noronha'),\n \t array('id' => '9506','state_id' => '529','name' => 'Flores'),\n \t array('id' => '9507','state_id' => '529','name' => 'Floresta'),\n \t array('id' => '9508','state_id' => '529','name' => 'Gameleira'),\n \t array('id' => '9509','state_id' => '529','name' => 'Garanhuns'),\n \t array('id' => '9510','state_id' => '529','name' => 'Gloria do Goita'),\n \t array('id' => '9511','state_id' => '529','name' => 'Goiana'),\n \t array('id' => '9512','state_id' => '529','name' => 'Gravata'),\n \t array('id' => '9513','state_id' => '529','name' => 'Ibimirim'),\n \t array('id' => '9514','state_id' => '529','name' => 'Igarassu'),\n \t array('id' => '9515','state_id' => '529','name' => 'Inaja'),\n \t array('id' => '9516','state_id' => '529','name' => 'Ipojuca'),\n \t array('id' => '9517','state_id' => '529','name' => 'Ipubi'),\n \t array('id' => '9518','state_id' => '529','name' => 'Itaiba'),\n \t array('id' => '9519','state_id' => '529','name' => 'Itamaraca'),\n \t array('id' => '9520','state_id' => '529','name' => 'Itambe'),\n \t array('id' => '9521','state_id' => '529','name' => 'Itapissuma'),\n \t array('id' => '9522','state_id' => '529','name' => 'Itaquitinga'),\n \t array('id' => '9523','state_id' => '529','name' => 'Jaboatao'),\n \t array('id' => '9524','state_id' => '529','name' => 'Joao Alfredo'),\n \t array('id' => '9525','state_id' => '529','name' => 'Joaquim Nabuco'),\n \t array('id' => '9526','state_id' => '529','name' => 'Lagoa do Itaenga'),\n \t array('id' => '9527','state_id' => '529','name' => 'Lajedo'),\n \t array('id' => '9528','state_id' => '529','name' => 'Limoeiro'),\n \t array('id' => '9529','state_id' => '529','name' => 'Macaparana'),\n \t array('id' => '9530','state_id' => '529','name' => 'Maraial'),\n \t array('id' => '9531','state_id' => '529','name' => 'Moreno'),\n \t array('id' => '9532','state_id' => '529','name' => 'Nazare da Mata'),\n \t array('id' => '9533','state_id' => '529','name' => 'Olinda'),\n \t array('id' => '9534','state_id' => '529','name' => 'Orobo'),\n \t array('id' => '9535','state_id' => '529','name' => 'Ouricuri'),\n \t array('id' => '9536','state_id' => '529','name' => 'Palmares'),\n \t array('id' => '9537','state_id' => '529','name' => 'Panelas'),\n \t array('id' => '9538','state_id' => '529','name' => 'Parnamirim'),\n \t array('id' => '9539','state_id' => '529','name' => 'Passira'),\n \t array('id' => '9540','state_id' => '529','name' => 'Paudalho'),\n \t array('id' => '9541','state_id' => '529','name' => 'Paulista'),\n \t array('id' => '9542','state_id' => '529','name' => 'Pedra'),\n \t array('id' => '9543','state_id' => '529','name' => 'Pesqueira'),\n \t array('id' => '9544','state_id' => '529','name' => 'Petrolandia'),\n \t array('id' => '9545','state_id' => '529','name' => 'Petrolina'),\n \t array('id' => '9546','state_id' => '529','name' => 'Pombos'),\n \t array('id' => '9547','state_id' => '529','name' => 'Quipapa'),\n \t array('id' => '9548','state_id' => '529','name' => 'Recife'),\n \t array('id' => '9549','state_id' => '529','name' => 'Ribeirao'),\n \t array('id' => '9550','state_id' => '529','name' => 'Rio Formoso'),\n \t array('id' => '9551','state_id' => '529','name' => 'Salgueiro'),\n \t array('id' => '9552','state_id' => '529','name' => 'Santa Cruz do Capibaribe'),\n \t array('id' => '9553','state_id' => '529','name' => 'Santa Maria da Boa Vista'),\n \t array('id' => '9554','state_id' => '529','name' => 'Sao Bento do Una'),\n \t array('id' => '9555','state_id' => '529','name' => 'Sao Caitano'),\n \t array('id' => '9556','state_id' => '529','name' => 'Sao Joao'),\n \t array('id' => '9557','state_id' => '529','name' => 'Sao Joaquim do Monte'),\n \t array('id' => '9558','state_id' => '529','name' => 'Sao Jose da Coroa Grande'),\n \t array('id' => '9559','state_id' => '529','name' => 'Sao Jose do Belmonte'),\n \t array('id' => '9560','state_id' => '529','name' => 'Sao Jose do Egito'),\n \t array('id' => '9561','state_id' => '529','name' => 'Sao Lourenco da Mata'),\n \t array('id' => '9562','state_id' => '529','name' => 'Serra Talhada'),\n \t array('id' => '9563','state_id' => '529','name' => 'Sertania'),\n \t array('id' => '9564','state_id' => '529','name' => 'Sirinhaem'),\n \t array('id' => '9565','state_id' => '529','name' => 'Surubim'),\n \t array('id' => '9566','state_id' => '529','name' => 'Tabira'),\n \t array('id' => '9567','state_id' => '529','name' => 'Tamandare'),\n \t array('id' => '9568','state_id' => '529','name' => 'Taquaritinga do Norte'),\n \t array('id' => '9569','state_id' => '529','name' => 'Timbauba'),\n \t array('id' => '9570','state_id' => '529','name' => 'Toritama'),\n \t array('id' => '9571','state_id' => '529','name' => 'Trindade'),\n \t array('id' => '9572','state_id' => '529','name' => 'Triunfo'),\n \t array('id' => '9573','state_id' => '529','name' => 'Tupanatinga'),\n \t array('id' => '9574','state_id' => '529','name' => 'Vicencia'),\n \t array('id' => '9575','state_id' => '529','name' => 'Vitoria de Santo Antao'),\n \t array('id' => '9576','state_id' => '530','name' => 'Agua Branca'),\n \t array('id' => '9577','state_id' => '530','name' => 'Alto Longa'),\n \t array('id' => '9578','state_id' => '530','name' => 'Altos'),\n \t array('id' => '9579','state_id' => '530','name' => 'Amarante'),\n \t array('id' => '9580','state_id' => '530','name' => 'Avelino Lopes'),\n \t array('id' => '9581','state_id' => '530','name' => 'Barras'),\n \t array('id' => '9582','state_id' => '530','name' => 'Batalha'),\n \t array('id' => '9583','state_id' => '530','name' => 'Beneditinos'),\n \t array('id' => '9584','state_id' => '530','name' => 'Bom Jesus'),\n \t array('id' => '9585','state_id' => '530','name' => 'Buriti dos Lopes'),\n \t array('id' => '9586','state_id' => '530','name' => 'Campo Maior'),\n \t array('id' => '9587','state_id' => '530','name' => 'Canto do Buriti'),\n \t array('id' => '9588','state_id' => '530','name' => 'Castelo do Piaui'),\n \t array('id' => '9589','state_id' => '530','name' => 'Cocal'),\n \t array('id' => '9590','state_id' => '530','name' => 'Corrente'),\n \t array('id' => '9591','state_id' => '530','name' => 'Demerval Lobao'),\n \t array('id' => '9592','state_id' => '530','name' => 'Elesbao Veloso'),\n \t array('id' => '9593','state_id' => '530','name' => 'Esperantina'),\n \t array('id' => '9594','state_id' => '530','name' => 'Floriano'),\n \t array('id' => '9595','state_id' => '530','name' => 'Gilbues'),\n \t array('id' => '9596','state_id' => '530','name' => 'Guadalupe'),\n \t array('id' => '9597','state_id' => '530','name' => 'Inhuma'),\n \t array('id' => '9598','state_id' => '530','name' => 'Itainopolis'),\n \t array('id' => '9599','state_id' => '530','name' => 'Itaueira'),\n \t array('id' => '9600','state_id' => '530','name' => 'Jaicos'),\n \t array('id' => '9601','state_id' => '530','name' => 'Joaquim Pires'),\n \t array('id' => '9602','state_id' => '530','name' => 'Jose de Freitas'),\n \t array('id' => '9603','state_id' => '530','name' => 'Luis Correia'),\n \t array('id' => '9604','state_id' => '530','name' => 'Luzilandia'),\n \t array('id' => '9605','state_id' => '530','name' => 'Matias Olimpio'),\n \t array('id' => '9606','state_id' => '530','name' => 'Miguel Alves'),\n \t array('id' => '9607','state_id' => '530','name' => 'Monsenhor Gil'),\n \t array('id' => '9608','state_id' => '530','name' => 'Oeiras'),\n \t array('id' => '9609','state_id' => '530','name' => 'Palmeirais'),\n \t array('id' => '9610','state_id' => '530','name' => 'Parnaiba'),\n \t array('id' => '9611','state_id' => '530','name' => 'Pedro II'),\n \t array('id' => '9612','state_id' => '530','name' => 'Picos'),\n \t array('id' => '9613','state_id' => '530','name' => 'Pimenteiras'),\n \t array('id' => '9614','state_id' => '530','name' => 'Pio IX'),\n \t array('id' => '9615','state_id' => '530','name' => 'Piracuruca'),\n \t array('id' => '9616','state_id' => '530','name' => 'Piripiri'),\n \t array('id' => '9617','state_id' => '530','name' => 'Porto'),\n \t array('id' => '9618','state_id' => '530','name' => 'Regeneracao'),\n \t array('id' => '9619','state_id' => '530','name' => 'Sao Joao do Piaui'),\n \t array('id' => '9620','state_id' => '530','name' => 'Sao Miguel do Tapuio'),\n \t array('id' => '9621','state_id' => '530','name' => 'Sao Pedro do Piaui'),\n \t array('id' => '9622','state_id' => '530','name' => 'Sao Raimundo Nonato'),\n \t array('id' => '9623','state_id' => '530','name' => 'Simoes'),\n \t array('id' => '9624','state_id' => '530','name' => 'Simplicio Mendes'),\n \t array('id' => '9625','state_id' => '530','name' => 'Teresina'),\n \t array('id' => '9626','state_id' => '530','name' => 'Uniao'),\n \t array('id' => '9627','state_id' => '530','name' => 'Urucui'),\n \t array('id' => '9628','state_id' => '530','name' => 'Valenca do Piaui'),\n \t array('id' => '9629','state_id' => '534','name' => 'Alta Floresta d\\'Oeste'),\n \t array('id' => '9630','state_id' => '534','name' => 'Alto Alegre do Parecis'),\n \t array('id' => '9631','state_id' => '534','name' => 'Alto Paraiso'),\n \t array('id' => '9632','state_id' => '534','name' => 'Alvorada d\\'Oeste'),\n \t array('id' => '9633','state_id' => '534','name' => 'Ariquemes'),\n \t array('id' => '9634','state_id' => '534','name' => 'Buritis'),\n \t array('id' => '9635','state_id' => '534','name' => 'Cacoal'),\n \t array('id' => '9636','state_id' => '534','name' => 'Candeias do Jamari'),\n \t array('id' => '9637','state_id' => '534','name' => 'Cerejeiras'),\n \t array('id' => '9638','state_id' => '534','name' => 'Colorado do Oeste'),\n \t array('id' => '9639','state_id' => '534','name' => 'Corumbiara'),\n \t array('id' => '9640','state_id' => '534','name' => 'Espigao d\\'Oeste'),\n \t array('id' => '9641','state_id' => '534','name' => 'Governador Jorge Teixeira'),\n \t array('id' => '9642','state_id' => '534','name' => 'Guajara-Mirim'),\n \t array('id' => '9643','state_id' => '534','name' => 'Jaru'),\n \t array('id' => '9644','state_id' => '534','name' => 'Ji-Parana'),\n \t array('id' => '9645','state_id' => '534','name' => 'Machadinho d\\'Oeste'),\n \t array('id' => '9646','state_id' => '534','name' => 'Ministro Andreazza'),\n \t array('id' => '9647','state_id' => '534','name' => 'Mirante da Serra'),\n \t array('id' => '9648','state_id' => '534','name' => 'Nova Brasilandia d\\'Oeste'),\n \t array('id' => '9649','state_id' => '534','name' => 'Nova Mamore'),\n \t array('id' => '9650','state_id' => '534','name' => 'Novo Horizonte do Oeste'),\n \t array('id' => '9651','state_id' => '534','name' => 'Ouro Preto do Oeste'),\n \t array('id' => '9652','state_id' => '534','name' => 'Pimenta Bueno'),\n \t array('id' => '9653','state_id' => '534','name' => 'Porto Velho'),\n \t array('id' => '9654','state_id' => '534','name' => 'Presidente Medici'),\n \t array('id' => '9655','state_id' => '534','name' => 'Rolim de Moura'),\n \t array('id' => '9656','state_id' => '534','name' => 'Santa Luzia d\\'Oeste'),\n \t array('id' => '9657','state_id' => '534','name' => 'Sao Miguel do Guapore'),\n \t array('id' => '9658','state_id' => '534','name' => 'Urupa'),\n \t array('id' => '9659','state_id' => '534','name' => 'Vale do Paraiso'),\n \t array('id' => '9660','state_id' => '534','name' => 'Vilhena'),\n \t array('id' => '9661','state_id' => '535','name' => 'Alto Alegre'),\n \t array('id' => '9662','state_id' => '535','name' => 'Boa Vista'),\n \t array('id' => '9663','state_id' => '535','name' => 'Bonfim'),\n \t array('id' => '9664','state_id' => '535','name' => 'Caracarai'),\n \t array('id' => '9665','state_id' => '535','name' => 'Mucajai'),\n \t array('id' => '9666','state_id' => '535','name' => 'Normandia'),\n \t array('id' => '9667','state_id' => '535','name' => 'Sao Joao da Baliza'),\n \t array('id' => '9668','state_id' => '535','name' => 'Sao Luiz'),\n \t array('id' => '9669','state_id' => '538','name' => 'Aquidaba'),\n \t array('id' => '9670','state_id' => '538','name' => 'Aracaju'),\n \t array('id' => '9671','state_id' => '538','name' => 'Araua'),\n \t array('id' => '9672','state_id' => '538','name' => 'Areia Branca'),\n \t array('id' => '9673','state_id' => '538','name' => 'Barra dos Coqueiros'),\n \t array('id' => '9674','state_id' => '538','name' => 'Boquim'),\n \t array('id' => '9675','state_id' => '538','name' => 'Campo do Brito'),\n \t array('id' => '9676','state_id' => '538','name' => 'Caninde de Sao Francisco'),\n \t array('id' => '9677','state_id' => '538','name' => 'Capela'),\n \t array('id' => '9678','state_id' => '538','name' => 'Carira'),\n \t array('id' => '9679','state_id' => '538','name' => 'Cristinapolis'),\n \t array('id' => '9680','state_id' => '538','name' => 'Estancia'),\n \t array('id' => '9681','state_id' => '538','name' => 'Frei Paulo'),\n \t array('id' => '9682','state_id' => '538','name' => 'Gararu'),\n \t array('id' => '9683','state_id' => '538','name' => 'Indiaroba'),\n \t array('id' => '9684','state_id' => '538','name' => 'Itabaiana'),\n \t array('id' => '9685','state_id' => '538','name' => 'Itabaianinha'),\n \t array('id' => '9686','state_id' => '538','name' => 'Itaporanga d\\'Ajuda'),\n \t array('id' => '9687','state_id' => '538','name' => 'Japaratuba'),\n \t array('id' => '9688','state_id' => '538','name' => 'Japoata'),\n \t array('id' => '9689','state_id' => '538','name' => 'Lagarto'),\n \t array('id' => '9690','state_id' => '538','name' => 'Laranjeiras'),\n \t array('id' => '9691','state_id' => '538','name' => 'Malhador'),\n \t array('id' => '9692','state_id' => '538','name' => 'Maruim'),\n \t array('id' => '9693','state_id' => '538','name' => 'Moita Bonita'),\n \t array('id' => '9694','state_id' => '538','name' => 'Monte Alegre de Sergipe'),\n \t array('id' => '9695','state_id' => '538','name' => 'Neopolis'),\n \t array('id' => '9696','state_id' => '538','name' => 'Nossa Senhora da Gloria'),\n \t array('id' => '9697','state_id' => '538','name' => 'Nossa Senhora das Dores'),\n \t array('id' => '9698','state_id' => '538','name' => 'Nossa Senhora do Socorro'),\n \t array('id' => '9699','state_id' => '538','name' => 'Pacatuba'),\n \t array('id' => '9700','state_id' => '538','name' => 'Poco Verde'),\n \t array('id' => '9701','state_id' => '538','name' => 'Porto da Folha'),\n \t array('id' => '9702','state_id' => '538','name' => 'Propria'),\n \t array('id' => '9703','state_id' => '538','name' => 'Riachao do Dantas'),\n \t array('id' => '9704','state_id' => '538','name' => 'Ribeiropolis'),\n \t array('id' => '9705','state_id' => '538','name' => 'Salgado'),\n \t array('id' => '9706','state_id' => '538','name' => 'Santa Luzia do Itanhy'),\n \t array('id' => '9707','state_id' => '538','name' => 'Santo Amaro das Brotas'),\n \t array('id' => '9708','state_id' => '538','name' => 'Sao Cristovao'),\n \t array('id' => '9709','state_id' => '538','name' => 'Simao Dias'),\n \t array('id' => '9710','state_id' => '538','name' => 'Tobias Barreto'),\n \t array('id' => '9711','state_id' => '538','name' => 'Tomar do Geru'),\n \t array('id' => '9712','state_id' => '538','name' => 'Umbauba'),\n \t array('id' => '9713','state_id' => '539','name' => 'Alvorada'),\n \t array('id' => '9714','state_id' => '539','name' => 'Ananas'),\n \t array('id' => '9715','state_id' => '539','name' => 'Araguacu'),\n \t array('id' => '9716','state_id' => '539','name' => 'Araguaina'),\n \t array('id' => '9717','state_id' => '539','name' => 'Araguatins'),\n \t array('id' => '9718','state_id' => '539','name' => 'Arraias'),\n \t array('id' => '9719','state_id' => '539','name' => 'Augustinopolis'),\n \t array('id' => '9720','state_id' => '539','name' => 'Axixa do Tocantins'),\n \t array('id' => '9721','state_id' => '539','name' => 'Colinas do Tocantins'),\n \t array('id' => '9722','state_id' => '539','name' => 'Dianopolis'),\n \t array('id' => '9723','state_id' => '539','name' => 'Formoso do Araguaia'),\n \t array('id' => '9724','state_id' => '539','name' => 'Goiatins'),\n \t array('id' => '9725','state_id' => '539','name' => 'Guarai'),\n \t array('id' => '9726','state_id' => '539','name' => 'Gurupi'),\n \t array('id' => '9727','state_id' => '539','name' => 'Miracema do Tocantins'),\n \t array('id' => '9728','state_id' => '539','name' => 'Miranorte'),\n \t array('id' => '9729','state_id' => '539','name' => 'Palmas'),\n \t array('id' => '9730','state_id' => '539','name' => 'Paraiso'),\n \t array('id' => '9731','state_id' => '539','name' => 'Parana'),\n \t array('id' => '9732','state_id' => '539','name' => 'Porto Nacional'),\n \t array('id' => '9733','state_id' => '539','name' => 'Sitio Novo do Tocantins'),\n \t array('id' => '9734','state_id' => '539','name' => 'Taguatinga'),\n \t array('id' => '9735','state_id' => '539','name' => 'Tocantinopolis'),\n \t array('id' => '9736','state_id' => '539','name' => 'Wanderlandia'),\n \t array('id' => '9737','state_id' => '539','name' => 'Xambioa'),\n \t array('id' => '9738','state_id' => '541','name' => 'Kuala Belait'),\n \t array('id' => '9739','state_id' => '541','name' => 'Seria'),\n \t array('id' => '9740','state_id' => '542','name' => 'Bandar Seri Begawan'),\n \t array('id' => '9741','state_id' => '543','name' => 'Bangar'),\n \t array('id' => '9742','state_id' => '544','name' => 'Tutong'),\n \t array('id' => '9743','state_id' => '545','name' => 'Bansko'),\n \t array('id' => '9744','state_id' => '545','name' => 'Belica'),\n \t array('id' => '9745','state_id' => '545','name' => 'Blagoevgrad'),\n \t array('id' => '9746','state_id' => '545','name' => 'Goce Delchev'),\n \t array('id' => '9747','state_id' => '545','name' => 'Hadzhidimovo'),\n \t array('id' => '9748','state_id' => '545','name' => 'Jakoruda'),\n \t array('id' => '9749','state_id' => '545','name' => 'Kresna'),\n \t array('id' => '9750','state_id' => '545','name' => 'Melnik'),\n \t array('id' => '9751','state_id' => '545','name' => 'Petrich'),\n \t array('id' => '9752','state_id' => '545','name' => 'Razlog'),\n \t array('id' => '9753','state_id' => '545','name' => 'Sandanski'),\n \t array('id' => '9754','state_id' => '545','name' => 'Simitli'),\n \t array('id' => '9755','state_id' => '546','name' => 'Ahtopol'),\n \t array('id' => '9756','state_id' => '546','name' => 'Ajtos'),\n \t array('id' => '9757','state_id' => '546','name' => 'Balgarovo'),\n \t array('id' => '9758','state_id' => '546','name' => 'Bourgas'),\n \t array('id' => '9759','state_id' => '546','name' => 'Burgas'),\n \t array('id' => '9760','state_id' => '546','name' => 'Carevo'),\n \t array('id' => '9761','state_id' => '546','name' => 'Kableshkovo'),\n \t array('id' => '9762','state_id' => '546','name' => 'Kameno'),\n \t array('id' => '9763','state_id' => '546','name' => 'Karnobat'),\n \t array('id' => '9764','state_id' => '546','name' => 'Malko Tarnovo'),\n \t array('id' => '9765','state_id' => '546','name' => 'Nesebar'),\n \t array('id' => '9766','state_id' => '546','name' => 'Obzor'),\n \t array('id' => '9767','state_id' => '546','name' => 'Pomorie'),\n \t array('id' => '9768','state_id' => '546','name' => 'Primorsko'),\n \t array('id' => '9769','state_id' => '546','name' => 'Sozopol'),\n \t array('id' => '9770','state_id' => '546','name' => 'Sredec'),\n \t array('id' => '9771','state_id' => '546','name' => 'Sungurlare'),\n \t array('id' => '9772','state_id' => '546','name' => 'Tvardica'),\n \t array('id' => '9773','state_id' => '547','name' => 'Balchik'),\n \t array('id' => '9774','state_id' => '547','name' => 'Dobrich'),\n \t array('id' => '9775','state_id' => '547','name' => 'General-Toshevo'),\n \t array('id' => '9776','state_id' => '547','name' => 'Kavarna'),\n \t array('id' => '9777','state_id' => '547','name' => 'Loznica'),\n \t array('id' => '9778','state_id' => '547','name' => 'Shabla'),\n \t array('id' => '9779','state_id' => '547','name' => 'Tervel'),\n \t array('id' => '9780','state_id' => '548','name' => 'Drjanovo'),\n \t array('id' => '9781','state_id' => '548','name' => 'Gabrovo'),\n \t array('id' => '9782','state_id' => '548','name' => 'Plachkovci'),\n \t array('id' => '9783','state_id' => '548','name' => 'Sevlievo'),\n \t array('id' => '9784','state_id' => '548','name' => 'Trjavna'),\n \t array('id' => '9785','state_id' => '549','name' => 'Dimitrovgrad'),\n \t array('id' => '9786','state_id' => '549','name' => 'Harmanli'),\n \t array('id' => '9787','state_id' => '549','name' => 'Haskovo'),\n \t array('id' => '9788','state_id' => '549','name' => 'Ivajlovgrad'),\n \t array('id' => '9789','state_id' => '549','name' => 'Ljubimec'),\n \t array('id' => '9790','state_id' => '549','name' => 'Madzharovo'),\n \t array('id' => '9791','state_id' => '549','name' => 'Merichleri'),\n \t array('id' => '9792','state_id' => '549','name' => 'Simeonovgrad'),\n \t array('id' => '9793','state_id' => '549','name' => 'Svilengrad'),\n \t array('id' => '9794','state_id' => '550','name' => 'Boljarovo'),\n \t array('id' => '9795','state_id' => '550','name' => 'Elhovo'),\n \t array('id' => '9796','state_id' => '550','name' => 'Jambol'),\n \t array('id' => '9797','state_id' => '550','name' => 'Straldzha'),\n \t array('id' => '9798','state_id' => '550','name' => 'Topolovgrad'),\n \t array('id' => '9799','state_id' => '551','name' => 'Ardino'),\n \t array('id' => '9800','state_id' => '551','name' => 'Dzhebel'),\n \t array('id' => '9801','state_id' => '551','name' => 'Kardzhali'),\n \t array('id' => '9802','state_id' => '551','name' => 'Krumovgrad'),\n \t array('id' => '9803','state_id' => '551','name' => 'Momchilgrad'),\n \t array('id' => '9804','state_id' => '552','name' => 'Boboshevo'),\n \t array('id' => '9805','state_id' => '552','name' => 'Bobovdol'),\n \t array('id' => '9806','state_id' => '552','name' => 'Dupnica'),\n \t array('id' => '9807','state_id' => '552','name' => 'Kjustendil'),\n \t array('id' => '9808','state_id' => '552','name' => 'Kocherinovo'),\n \t array('id' => '9809','state_id' => '552','name' => 'Rila'),\n \t array('id' => '9810','state_id' => '552','name' => 'Sapareva Banja'),\n \t array('id' => '9811','state_id' => '552','name' => 'Zemen'),\n \t array('id' => '9812','state_id' => '553','name' => 'Aprilci'),\n \t array('id' => '9813','state_id' => '553','name' => 'Jablanica'),\n \t array('id' => '9814','state_id' => '553','name' => 'Letnica'),\n \t array('id' => '9815','state_id' => '553','name' => 'Lovech'),\n \t array('id' => '9816','state_id' => '553','name' => 'Lukovit'),\n \t array('id' => '9817','state_id' => '553','name' => 'Sopot'),\n \t array('id' => '9818','state_id' => '553','name' => 'Teteven'),\n \t array('id' => '9819','state_id' => '553','name' => 'Trojan'),\n \t array('id' => '9820','state_id' => '553','name' => 'Ugarchin'),\n \t array('id' => '9821','state_id' => '554','name' => 'Berkovica'),\n \t array('id' => '9822','state_id' => '554','name' => 'Bojchinovci'),\n \t array('id' => '9823','state_id' => '554','name' => 'Brusarci'),\n \t array('id' => '9824','state_id' => '554','name' => 'Chiprovci'),\n \t array('id' => '9825','state_id' => '554','name' => 'Lom'),\n \t array('id' => '9826','state_id' => '554','name' => 'Montana'),\n \t array('id' => '9827','state_id' => '554','name' => 'Valchedram'),\n \t array('id' => '9828','state_id' => '554','name' => 'Varshec'),\n \t array('id' => '9829','state_id' => '556','name' => 'Batak'),\n \t array('id' => '9830','state_id' => '556','name' => 'Belovo'),\n \t array('id' => '9831','state_id' => '556','name' => 'Bracigovo'),\n \t array('id' => '9832','state_id' => '556','name' => 'Koprivshtica'),\n \t array('id' => '9833','state_id' => '556','name' => 'Panagjurishte'),\n \t array('id' => '9834','state_id' => '556','name' => 'Pazardzhik'),\n \t array('id' => '9835','state_id' => '556','name' => 'Peshtera'),\n \t array('id' => '9836','state_id' => '556','name' => 'Rakitovo'),\n \t array('id' => '9837','state_id' => '556','name' => 'Septemvri'),\n \t array('id' => '9838','state_id' => '556','name' => 'Strelcha'),\n \t array('id' => '9839','state_id' => '556','name' => 'Velingrad'),\n \t array('id' => '9840','state_id' => '557','name' => 'Bankja'),\n \t array('id' => '9841','state_id' => '557','name' => 'Batanovci'),\n \t array('id' => '9842','state_id' => '557','name' => 'Breznik'),\n \t array('id' => '9843','state_id' => '557','name' => 'Pernik'),\n \t array('id' => '9844','state_id' => '557','name' => 'Radomir'),\n \t array('id' => '9845','state_id' => '557','name' => 'Tran'),\n \t array('id' => '9846','state_id' => '558','name' => 'Belene'),\n \t array('id' => '9847','state_id' => '558','name' => 'Cherven Brjag'),\n \t array('id' => '9848','state_id' => '558','name' => 'Dolna Mitropolija'),\n \t array('id' => '9849','state_id' => '558','name' => 'Dolni Dabnik'),\n \t array('id' => '9850','state_id' => '558','name' => 'Guljanci'),\n \t array('id' => '9851','state_id' => '558','name' => 'Levski'),\n \t array('id' => '9852','state_id' => '558','name' => 'Nikopol'),\n \t array('id' => '9853','state_id' => '558','name' => 'Pleven'),\n \t array('id' => '9854','state_id' => '558','name' => 'Pordim'),\n \t array('id' => '9855','state_id' => '558','name' => 'Slavjanovo'),\n \t array('id' => '9856','state_id' => '558','name' => 'Trashtenik'),\n \t array('id' => '9857','state_id' => '558','name' => 'Varbica'),\n \t array('id' => '9858','state_id' => '559','name' => 'Asenovgrad'),\n \t array('id' => '9859','state_id' => '559','name' => 'Brezovo'),\n \t array('id' => '9860','state_id' => '559','name' => 'Car Kalojan'),\n \t array('id' => '9861','state_id' => '559','name' => 'Hisarja'),\n \t array('id' => '9862','state_id' => '559','name' => 'Kalofer'),\n \t array('id' => '9863','state_id' => '559','name' => 'Karlovo'),\n \t array('id' => '9864','state_id' => '559','name' => 'Klisura'),\n \t array('id' => '9865','state_id' => '559','name' => 'Krichim'),\n \t array('id' => '9866','state_id' => '559','name' => 'Parvomaj'),\n \t array('id' => '9867','state_id' => '559','name' => 'Perushtica'),\n \t array('id' => '9868','state_id' => '559','name' => 'Plovdiv'),\n \t array('id' => '9869','state_id' => '559','name' => 'Rakovski'),\n \t array('id' => '9870','state_id' => '559','name' => 'Sadovo'),\n \t array('id' => '9871','state_id' => '559','name' => 'Saedinenie'),\n \t array('id' => '9872','state_id' => '559','name' => 'Stambolijski'),\n \t array('id' => '9873','state_id' => '560','name' => 'Isperih'),\n \t array('id' => '9874','state_id' => '560','name' => 'Kubrat'),\n \t array('id' => '9875','state_id' => '560','name' => 'Razgrad'),\n \t array('id' => '9876','state_id' => '560','name' => 'Senovo'),\n \t array('id' => '9877','state_id' => '560','name' => 'Zavet'),\n \t array('id' => '9878','state_id' => '561','name' => 'Bjala'),\n \t array('id' => '9879','state_id' => '561','name' => 'Borovo'),\n \t array('id' => '9880','state_id' => '561','name' => 'Dve Mogili'),\n \t array('id' => '9881','state_id' => '561','name' => 'Ruse'),\n \t array('id' => '9882','state_id' => '561','name' => 'Russe'),\n \t array('id' => '9883','state_id' => '561','name' => 'Vetovo'),\n \t array('id' => '9884','state_id' => '562','name' => 'Kaolinovo'),\n \t array('id' => '9885','state_id' => '562','name' => 'Kaspichan'),\n \t array('id' => '9886','state_id' => '562','name' => 'Novi Pazar'),\n \t array('id' => '9887','state_id' => '562','name' => 'Pliska'),\n \t array('id' => '9888','state_id' => '562','name' => 'Shumen'),\n \t array('id' => '9889','state_id' => '562','name' => 'Smjadovo'),\n \t array('id' => '9890','state_id' => '562','name' => 'Veliki Preslav'),\n \t array('id' => '9891','state_id' => '563','name' => 'Alfatar'),\n \t array('id' => '9892','state_id' => '563','name' => 'Dulovo'),\n \t array('id' => '9893','state_id' => '563','name' => 'Glavinica'),\n \t array('id' => '9894','state_id' => '563','name' => 'Silistra'),\n \t array('id' => '9895','state_id' => '563','name' => 'Tutrakan'),\n \t array('id' => '9896','state_id' => '564','name' => 'Kermen'),\n \t array('id' => '9897','state_id' => '564','name' => 'Kotel'),\n \t array('id' => '9898','state_id' => '564','name' => 'Nova Zagora'),\n \t array('id' => '9899','state_id' => '564','name' => 'Shivachevo'),\n \t array('id' => '9900','state_id' => '564','name' => 'Sliven'),\n \t array('id' => '9901','state_id' => '565','name' => 'Chepelare'),\n \t array('id' => '9902','state_id' => '565','name' => 'Devin'),\n \t array('id' => '9903','state_id' => '565','name' => 'Dospat'),\n \t array('id' => '9904','state_id' => '565','name' => 'Laki'),\n \t array('id' => '9905','state_id' => '565','name' => 'Madan'),\n \t array('id' => '9906','state_id' => '565','name' => 'Nedelino'),\n \t array('id' => '9907','state_id' => '565','name' => 'Rudozem'),\n \t array('id' => '9908','state_id' => '565','name' => 'Smoljan'),\n \t array('id' => '9909','state_id' => '565','name' => 'Zlatograd'),\n \t array('id' => '9910','state_id' => '569','name' => 'Antonovo'),\n \t array('id' => '9911','state_id' => '569','name' => 'Omurtag'),\n \t array('id' => '9912','state_id' => '569','name' => 'Opaka'),\n \t array('id' => '9913','state_id' => '569','name' => 'Popovo'),\n \t array('id' => '9914','state_id' => '569','name' => 'Targovishte'),\n \t array('id' => '9915','state_id' => '570','name' => 'Beloslav'),\n \t array('id' => '9916','state_id' => '570','name' => 'Bjala'),\n \t array('id' => '9917','state_id' => '570','name' => 'Dalgopol'),\n \t array('id' => '9918','state_id' => '570','name' => 'Devnja'),\n \t array('id' => '9919','state_id' => '570','name' => 'Iskar'),\n \t array('id' => '9920','state_id' => '570','name' => 'Provadija'),\n \t array('id' => '9921','state_id' => '570','name' => 'Suvorovo'),\n \t array('id' => '9922','state_id' => '570','name' => 'Valchi Dol'),\n \t array('id' => '9923','state_id' => '570','name' => 'Varna'),\n \t array('id' => '9924','state_id' => '572','name' => 'Belogradchik'),\n \t array('id' => '9925','state_id' => '572','name' => 'Bregovo'),\n \t array('id' => '9926','state_id' => '572','name' => 'Dimovo'),\n \t array('id' => '9927','state_id' => '572','name' => 'Dolni Chiflik'),\n \t array('id' => '9928','state_id' => '572','name' => 'Dunavci'),\n \t array('id' => '9929','state_id' => '572','name' => 'Gramada'),\n \t array('id' => '9930','state_id' => '572','name' => 'Kula'),\n \t array('id' => '9931','state_id' => '572','name' => 'Vidin'),\n \t array('id' => '9932','state_id' => '573','name' => 'Bjala Slatina'),\n \t array('id' => '9933','state_id' => '573','name' => 'Knezha'),\n \t array('id' => '9934','state_id' => '573','name' => 'Kojnare'),\n \t array('id' => '9935','state_id' => '573','name' => 'Kozloduj'),\n \t array('id' => '9936','state_id' => '573','name' => 'Krivodol'),\n \t array('id' => '9937','state_id' => '573','name' => 'Mezdra'),\n \t array('id' => '9938','state_id' => '573','name' => 'Mizija'),\n \t array('id' => '9939','state_id' => '573','name' => 'Orjahovo'),\n \t array('id' => '9940','state_id' => '573','name' => 'Roman'),\n \t array('id' => '9941','state_id' => '573','name' => 'Vraca'),\n \t array('id' => '9942','state_id' => '574','name' => 'Yablaniza'),\n \t array('id' => '9943','state_id' => '575','name' => 'Boromo'),\n \t array('id' => '9944','state_id' => '576','name' => 'Kongoussi'),\n \t array('id' => '9945','state_id' => '577','name' => 'Kombissiri'),\n \t array('id' => '9946','state_id' => '578','name' => 'Diebougou'),\n \t array('id' => '9947','state_id' => '578','name' => 'Pa'),\n \t array('id' => '9948','state_id' => '579','name' => 'Garango'),\n \t array('id' => '9949','state_id' => '579','name' => 'Tenkodogo'),\n \t array('id' => '9950','state_id' => '580','name' => 'Koudougou'),\n \t array('id' => '9951','state_id' => '581','name' => 'Banfora'),\n \t array('id' => '9952','state_id' => '582','name' => 'Zorgo'),\n \t array('id' => '9953','state_id' => '583','name' => 'Bogande'),\n \t array('id' => '9954','state_id' => '584','name' => 'Fada N\\'gourma'),\n \t array('id' => '9955','state_id' => '585','name' => 'Bekuy'),\n \t array('id' => '9956','state_id' => '585','name' => 'Bobo Dioulasso'),\n \t array('id' => '9957','state_id' => '586','name' => 'Dano'),\n \t array('id' => '9958','state_id' => '587','name' => 'Ouagadougou'),\n \t array('id' => '9959','state_id' => '588','name' => 'Koalla'),\n \t array('id' => '9960','state_id' => '588','name' => 'Koloko'),\n \t array('id' => '9961','state_id' => '588','name' => 'Orodara'),\n \t array('id' => '9962','state_id' => '589','name' => 'Gayeri'),\n \t array('id' => '9963','state_id' => '590','name' => 'Pama'),\n \t array('id' => '9964','state_id' => '591','name' => 'Nouna'),\n \t array('id' => '9965','state_id' => '592','name' => 'Koupela'),\n \t array('id' => '9966','state_id' => '593','name' => 'Bousse'),\n \t array('id' => '9967','state_id' => '594','name' => 'Sindou'),\n \t array('id' => '9968','state_id' => '595','name' => 'Dedougou'),\n \t array('id' => '9969','state_id' => '596','name' => 'Po'),\n \t array('id' => '9970','state_id' => '597','name' => 'Boulsa'),\n \t array('id' => '9971','state_id' => '598','name' => 'Batie'),\n \t array('id' => '9972','state_id' => '599','name' => 'Ziniare'),\n \t array('id' => '9973','state_id' => '600','name' => 'Gorom-Gorom'),\n \t array('id' => '9974','state_id' => '601','name' => 'Yako'),\n \t array('id' => '9975','state_id' => '602','name' => 'Gaoua'),\n \t array('id' => '9976','state_id' => '602','name' => 'Kampti'),\n \t array('id' => '9977','state_id' => '602','name' => 'Loropeni'),\n \t array('id' => '9978','state_id' => '603','name' => 'Reo'),\n \t array('id' => '9979','state_id' => '604','name' => 'Kaya'),\n \t array('id' => '9980','state_id' => '605','name' => 'Dori'),\n \t array('id' => '9981','state_id' => '606','name' => 'Gao'),\n \t array('id' => '9982','state_id' => '606','name' => 'Leo'),\n \t array('id' => '9983','state_id' => '607','name' => 'Aribinda'),\n \t array('id' => '9984','state_id' => '607','name' => 'Djibo'),\n \t array('id' => '9985','state_id' => '608','name' => 'Louta'),\n \t array('id' => '9986','state_id' => '608','name' => 'Tougan'),\n \t array('id' => '9987','state_id' => '609','name' => 'Diapaga'),\n \t array('id' => '9988','state_id' => '609','name' => 'Kantchari'),\n \t array('id' => '9989','state_id' => '610','name' => 'Hounde'),\n \t array('id' => '9990','state_id' => '611','name' => 'Ouahigouya'),\n \t array('id' => '9991','state_id' => '612','name' => 'Gourcy'),\n \t array('id' => '9992','state_id' => '613','name' => 'Manga'),\n \t array('id' => '9993','state_id' => '614','name' => 'Bubanza'),\n \t array('id' => '9994','state_id' => '615','name' => 'Bujumbura'),\n \t array('id' => '9995','state_id' => '616','name' => 'Bururi'),\n \t array('id' => '9996','state_id' => '617','name' => 'Cankuzo'),\n \t array('id' => '9997','state_id' => '618','name' => 'Cibitoke'),\n \t array('id' => '9998','state_id' => '619','name' => 'Gitega'),\n \t array('id' => '9999','state_id' => '620','name' => 'Karuzi'),\n \t array('id' => '10000','state_id' => '621','name' => 'Kayanza'),\n \t array('id' => '10001','state_id' => '622','name' => 'Kirundo'),\n \t array('id' => '10002','state_id' => '623','name' => 'Makamba'),\n \t array('id' => '10003','state_id' => '624','name' => 'Muramvya'),\n \t array('id' => '10004','state_id' => '625','name' => 'Muyinga'),\n \t array('id' => '10005','state_id' => '626','name' => 'Ngozi'),\n \t array('id' => '10006','state_id' => '627','name' => 'Rutana'),\n \t array('id' => '10007','state_id' => '628','name' => 'Ruyigi'),\n \t array('id' => '10008','state_id' => '635','name' => 'Kampot'),\n \t array('id' => '10009','state_id' => '636','name' => 'Ta Khmau'),\n \t array('id' => '10010','state_id' => '638','name' => 'Kracheh'),\n \t array('id' => '10011','state_id' => '645','name' => 'Pousat'),\n \t array('id' => '10012','state_id' => '652','name' => 'Phumi Takaev'),\n \t array('id' => '10013','state_id' => '653','name' => 'Banyo'),\n \t array('id' => '10014','state_id' => '653','name' => 'Meiganga'),\n \t array('id' => '10015','state_id' => '653','name' => 'Ngaoundere'),\n \t array('id' => '10016','state_id' => '653','name' => 'Tibati'),\n \t array('id' => '10017','state_id' => '653','name' => 'Tignere'),\n \t array('id' => '10018','state_id' => '654','name' => 'Akonolinga'),\n \t array('id' => '10019','state_id' => '654','name' => 'Bafia'),\n \t array('id' => '10020','state_id' => '654','name' => 'Eseka'),\n \t array('id' => '10021','state_id' => '654','name' => 'Mbalmayo'),\n \t array('id' => '10022','state_id' => '654','name' => 'Mfou'),\n \t array('id' => '10023','state_id' => '654','name' => 'Monatele'),\n \t array('id' => '10024','state_id' => '654','name' => 'Nanga Eboko'),\n \t array('id' => '10025','state_id' => '654','name' => 'Obala'),\n \t array('id' => '10026','state_id' => '654','name' => 'Ombesa'),\n \t array('id' => '10027','state_id' => '654','name' => 'Saa'),\n \t array('id' => '10028','state_id' => '654','name' => 'Yaounde'),\n \t array('id' => '10029','state_id' => '655','name' => 'Abong Mbang'),\n \t array('id' => '10030','state_id' => '655','name' => 'Batouri'),\n \t array('id' => '10031','state_id' => '655','name' => 'Bertoua'),\n \t array('id' => '10032','state_id' => '655','name' => 'Betare Oya'),\n \t array('id' => '10033','state_id' => '655','name' => 'Djoum'),\n \t array('id' => '10034','state_id' => '655','name' => 'Doume'),\n \t array('id' => '10035','state_id' => '655','name' => 'Lomie'),\n \t array('id' => '10036','state_id' => '655','name' => 'Yokadouma'),\n \t array('id' => '10037','state_id' => '656','name' => 'Bonaberi'),\n \t array('id' => '10038','state_id' => '656','name' => 'Dibombari'),\n \t array('id' => '10039','state_id' => '656','name' => 'Douala'),\n \t array('id' => '10040','state_id' => '656','name' => 'Edea'),\n \t array('id' => '10041','state_id' => '656','name' => 'Loum'),\n \t array('id' => '10042','state_id' => '656','name' => 'Manjo'),\n \t array('id' => '10043','state_id' => '656','name' => 'Mbanga'),\n \t array('id' => '10044','state_id' => '656','name' => 'Nkongsamba'),\n \t array('id' => '10045','state_id' => '656','name' => 'Yabassi'),\n \t array('id' => '10046','state_id' => '657','name' => 'Figuif'),\n \t array('id' => '10047','state_id' => '657','name' => 'Garoua'),\n \t array('id' => '10048','state_id' => '657','name' => 'Guider'),\n \t array('id' => '10049','state_id' => '657','name' => 'Lagdo'),\n \t array('id' => '10050','state_id' => '657','name' => 'Poli'),\n \t array('id' => '10051','state_id' => '657','name' => 'Rey Bouba'),\n \t array('id' => '10052','state_id' => '657','name' => 'Tchollire'),\n \t array('id' => '10053','state_id' => '658','name' => 'Figuif'),\n \t array('id' => '10054','state_id' => '658','name' => 'Garoua'),\n \t array('id' => '10055','state_id' => '658','name' => 'Guider'),\n \t array('id' => '10056','state_id' => '658','name' => 'Lagdo'),\n \t array('id' => '10057','state_id' => '658','name' => 'Poli'),\n \t array('id' => '10058','state_id' => '658','name' => 'Rey Bouba'),\n \t array('id' => '10059','state_id' => '658','name' => 'Tchollire'),\n \t array('id' => '10060','state_id' => '659','name' => 'Bamenda'),\n \t array('id' => '10061','state_id' => '659','name' => 'Kumbo'),\n \t array('id' => '10062','state_id' => '659','name' => 'Mbengwi'),\n \t array('id' => '10063','state_id' => '659','name' => 'Mme'),\n \t array('id' => '10064','state_id' => '659','name' => 'Njinikom'),\n \t array('id' => '10065','state_id' => '659','name' => 'Nkambe'),\n \t array('id' => '10066','state_id' => '659','name' => 'Wum'),\n \t array('id' => '10067','state_id' => '660','name' => 'Bafang'),\n \t array('id' => '10068','state_id' => '660','name' => 'Bafoussam'),\n \t array('id' => '10069','state_id' => '660','name' => 'Bafut'),\n \t array('id' => '10070','state_id' => '660','name' => 'Bali'),\n \t array('id' => '10071','state_id' => '660','name' => 'Bana'),\n \t array('id' => '10072','state_id' => '660','name' => 'Bangangte'),\n \t array('id' => '10073','state_id' => '660','name' => 'Djang'),\n \t array('id' => '10074','state_id' => '660','name' => 'Fontem'),\n \t array('id' => '10075','state_id' => '660','name' => 'Foumban'),\n \t array('id' => '10076','state_id' => '660','name' => 'Foumbot'),\n \t array('id' => '10077','state_id' => '660','name' => 'Mbouda'),\n \t array('id' => '10078','state_id' => '661','name' => 'Akom'),\n \t array('id' => '10079','state_id' => '661','name' => 'Ambam'),\n \t array('id' => '10080','state_id' => '661','name' => 'Ebolowa'),\n \t array('id' => '10081','state_id' => '661','name' => 'Kribi'),\n \t array('id' => '10082','state_id' => '661','name' => 'Lolodorf'),\n \t array('id' => '10083','state_id' => '661','name' => 'Moloundou'),\n \t array('id' => '10084','state_id' => '661','name' => 'Mvangue'),\n \t array('id' => '10085','state_id' => '661','name' => 'Sangmelima'),\n \t array('id' => '10086','state_id' => '662','name' => 'Buea'),\n \t array('id' => '10087','state_id' => '662','name' => 'Idenao'),\n \t array('id' => '10088','state_id' => '662','name' => 'Kumba'),\n \t array('id' => '10089','state_id' => '662','name' => 'Limbe'),\n \t array('id' => '10090','state_id' => '662','name' => 'Mamfe'),\n \t array('id' => '10091','state_id' => '662','name' => 'Muyuka'),\n \t array('id' => '10092','state_id' => '662','name' => 'Tiko'),\n \t array('id' => '10093','state_id' => '663','name' => 'Airdrie'),\n \t array('id' => '10094','state_id' => '663','name' => 'Athabasca'),\n \t array('id' => '10095','state_id' => '663','name' => 'Banff'),\n \t array('id' => '10096','state_id' => '663','name' => 'Barrhead'),\n \t array('id' => '10097','state_id' => '663','name' => 'Bassano'),\n \t array('id' => '10098','state_id' => '663','name' => 'Beaumont'),\n \t array('id' => '10099','state_id' => '663','name' => 'Beaverlodge'),\n \t array('id' => '10100','state_id' => '663','name' => 'Black Diamond'),\n \t array('id' => '10101','state_id' => '663','name' => 'Blackfalds'),\n \t array('id' => '10102','state_id' => '663','name' => 'Blairmore'),\n \t array('id' => '10103','state_id' => '663','name' => 'Bon Accord'),\n \t array('id' => '10104','state_id' => '663','name' => 'Bonnyville'),\n \t array('id' => '10105','state_id' => '663','name' => 'Bow Island'),\n \t array('id' => '10106','state_id' => '663','name' => 'Brooks'),\n \t array('id' => '10107','state_id' => '663','name' => 'Calgary'),\n \t array('id' => '10108','state_id' => '663','name' => 'Calmar'),\n \t array('id' => '10109','state_id' => '663','name' => 'Camrose'),\n \t array('id' => '10110','state_id' => '663','name' => 'Canmore'),\n \t array('id' => '10111','state_id' => '663','name' => 'Cardston'),\n \t array('id' => '10112','state_id' => '663','name' => 'Carstairs'),\n \t array('id' => '10113','state_id' => '663','name' => 'Chateau Lake Louise'),\n \t array('id' => '10114','state_id' => '663','name' => 'Chestermere'),\n \t array('id' => '10115','state_id' => '663','name' => 'Clairmont'),\n \t array('id' => '10116','state_id' => '663','name' => 'Claresholm'),\n \t array('id' => '10117','state_id' => '663','name' => 'Coaldale'),\n \t array('id' => '10118','state_id' => '663','name' => 'Coalhurst'),\n \t array('id' => '10119','state_id' => '663','name' => 'Cochrane'),\n \t array('id' => '10120','state_id' => '663','name' => 'Crossfield'),\n \t array('id' => '10121','state_id' => '663','name' => 'Devon'),\n \t array('id' => '10122','state_id' => '663','name' => 'Didsbury'),\n \t array('id' => '10123','state_id' => '663','name' => 'Drayton Valley'),\n \t array('id' => '10124','state_id' => '663','name' => 'Drumheller'),\n \t array('id' => '10125','state_id' => '663','name' => 'Edmonton'),\n \t array('id' => '10126','state_id' => '663','name' => 'Edson'),\n \t array('id' => '10127','state_id' => '663','name' => 'Elk Point'),\n \t array('id' => '10128','state_id' => '663','name' => 'Fairview'),\n \t array('id' => '10129','state_id' => '663','name' => 'Falher'),\n \t array('id' => '10130','state_id' => '663','name' => 'Fort MacLeod'),\n \t array('id' => '10131','state_id' => '663','name' => 'Fox Creek'),\n \t array('id' => '10132','state_id' => '663','name' => 'Gibbons'),\n \t array('id' => '10133','state_id' => '663','name' => 'Grand Centre'),\n \t array('id' => '10134','state_id' => '663','name' => 'Grande Cache'),\n \t array('id' => '10135','state_id' => '663','name' => 'Grande Prairie'),\n \t array('id' => '10136','state_id' => '663','name' => 'Grimshaw'),\n \t array('id' => '10137','state_id' => '663','name' => 'Hanna'),\n \t array('id' => '10138','state_id' => '663','name' => 'High Level'),\n \t array('id' => '10139','state_id' => '663','name' => 'High Prairie'),\n \t array('id' => '10140','state_id' => '663','name' => 'High River'),\n \t array('id' => '10141','state_id' => '663','name' => 'Hinton'),\n \t array('id' => '10142','state_id' => '663','name' => 'Irricana'),\n \t array('id' => '10143','state_id' => '663','name' => 'Jasper'),\n \t array('id' => '10144','state_id' => '663','name' => 'Killam'),\n \t array('id' => '10145','state_id' => '663','name' => 'La Crete'),\n \t array('id' => '10146','state_id' => '663','name' => 'Lac la Biche'),\n \t array('id' => '10147','state_id' => '663','name' => 'Lacombe'),\n \t array('id' => '10148','state_id' => '663','name' => 'Lamont'),\n \t array('id' => '10149','state_id' => '663','name' => 'Leduc'),\n \t array('id' => '10150','state_id' => '663','name' => 'Lethbridge'),\n \t array('id' => '10151','state_id' => '663','name' => 'Lloydminster'),\n \t array('id' => '10152','state_id' => '663','name' => 'Magrath'),\n \t array('id' => '10153','state_id' => '663','name' => 'Manning'),\n \t array('id' => '10154','state_id' => '663','name' => 'Mayerthorpe'),\n \t array('id' => '10155','state_id' => '663','name' => 'McMurray'),\n \t array('id' => '10156','state_id' => '663','name' => 'Medicine Hat'),\n \t array('id' => '10157','state_id' => '663','name' => 'Millet'),\n \t array('id' => '10158','state_id' => '663','name' => 'Morinville'),\n \t array('id' => '10159','state_id' => '663','name' => 'Nanton'),\n \t array('id' => '10160','state_id' => '663','name' => 'Okotoks'),\n \t array('id' => '10161','state_id' => '663','name' => 'Olds'),\n \t array('id' => '10162','state_id' => '663','name' => 'Peace River'),\n \t array('id' => '10163','state_id' => '663','name' => 'Penhold'),\n \t array('id' => '10164','state_id' => '663','name' => 'Picture Butte'),\n \t array('id' => '10165','state_id' => '663','name' => 'Pincher Creek'),\n \t array('id' => '10166','state_id' => '663','name' => 'Ponoka'),\n \t array('id' => '10167','state_id' => '663','name' => 'Provost'),\n \t array('id' => '10168','state_id' => '663','name' => 'Raymond'),\n \t array('id' => '10169','state_id' => '663','name' => 'Red Deer'),\n \t array('id' => '10170','state_id' => '663','name' => 'Redwater'),\n \t array('id' => '10171','state_id' => '663','name' => 'Rimbey'),\n \t array('id' => '10172','state_id' => '663','name' => 'Rocky Mountain House'),\n \t array('id' => '10173','state_id' => '663','name' => 'Rocky View'),\n \t array('id' => '10174','state_id' => '663','name' => 'Saint Paul'),\n \t array('id' => '10175','state_id' => '663','name' => 'Sexsmith'),\n \t array('id' => '10176','state_id' => '663','name' => 'Sherwood Park'),\n \t array('id' => '10177','state_id' => '663','name' => 'Slave Lake'),\n \t array('id' => '10178','state_id' => '663','name' => 'Smoky Lake'),\n \t array('id' => '10179','state_id' => '663','name' => 'Spirit River'),\n \t array('id' => '10180','state_id' => '663','name' => 'Spruce Grove'),\n \t array('id' => '10181','state_id' => '663','name' => 'Stettler'),\n \t array('id' => '10182','state_id' => '663','name' => 'Stony Plain'),\n \t array('id' => '10183','state_id' => '663','name' => 'Strathmore'),\n \t array('id' => '10184','state_id' => '663','name' => 'Sundre'),\n \t array('id' => '10185','state_id' => '663','name' => 'Swan Hills'),\n \t array('id' => '10186','state_id' => '663','name' => 'Sylvan Lake'),\n \t array('id' => '10187','state_id' => '663','name' => 'Taber'),\n \t array('id' => '10188','state_id' => '663','name' => 'Three Hills'),\n \t array('id' => '10189','state_id' => '663','name' => 'Tofield'),\n \t array('id' => '10190','state_id' => '663','name' => 'Two Hills'),\n \t array('id' => '10191','state_id' => '663','name' => 'Valleyview'),\n \t array('id' => '10192','state_id' => '663','name' => 'Vegreville'),\n \t array('id' => '10193','state_id' => '663','name' => 'Vermilion'),\n \t array('id' => '10194','state_id' => '663','name' => 'Viking'),\n \t array('id' => '10195','state_id' => '663','name' => 'Vulcan'),\n \t array('id' => '10196','state_id' => '663','name' => 'Wainwright'),\n \t array('id' => '10197','state_id' => '663','name' => 'Wembley'),\n \t array('id' => '10198','state_id' => '663','name' => 'Westlock'),\n \t array('id' => '10199','state_id' => '663','name' => 'Wetaskiwin'),\n \t array('id' => '10200','state_id' => '663','name' => 'Whitecourt'),\n \t array('id' => '10201','state_id' => '663','name' => 'Wood Buffalo'),\n \t array('id' => '10202','state_id' => '665','name' => 'Altona'),\n \t array('id' => '10203','state_id' => '665','name' => 'Beausejour'),\n \t array('id' => '10204','state_id' => '665','name' => 'Boissevain'),\n \t array('id' => '10205','state_id' => '665','name' => 'Brandon'),\n \t array('id' => '10206','state_id' => '665','name' => 'Carberry'),\n \t array('id' => '10207','state_id' => '665','name' => 'Carman'),\n \t array('id' => '10208','state_id' => '665','name' => 'Dauphin'),\n \t array('id' => '10209','state_id' => '665','name' => 'Deloraine'),\n \t array('id' => '10210','state_id' => '665','name' => 'Dugald'),\n \t array('id' => '10211','state_id' => '665','name' => 'Flin Flon'),\n \t array('id' => '10212','state_id' => '665','name' => 'Gimli'),\n \t array('id' => '10213','state_id' => '665','name' => 'Hamiota'),\n \t array('id' => '10214','state_id' => '665','name' => 'Killarney'),\n \t array('id' => '10215','state_id' => '665','name' => 'Lac du Bonnet'),\n \t array('id' => '10216','state_id' => '665','name' => 'Leaf Rapids'),\n \t array('id' => '10217','state_id' => '665','name' => 'Lorette'),\n \t array('id' => '10218','state_id' => '665','name' => 'Melita'),\n \t array('id' => '10219','state_id' => '665','name' => 'Minnedosa'),\n \t array('id' => '10220','state_id' => '665','name' => 'Morden'),\n \t array('id' => '10221','state_id' => '665','name' => 'Morris'),\n \t array('id' => '10222','state_id' => '665','name' => 'Neepawa'),\n \t array('id' => '10223','state_id' => '665','name' => 'Niverville'),\n \t array('id' => '10224','state_id' => '665','name' => 'Pinawa'),\n \t array('id' => '10225','state_id' => '665','name' => 'Portage la Prairie'),\n \t array('id' => '10226','state_id' => '665','name' => 'Ritchot'),\n \t array('id' => '10227','state_id' => '665','name' => 'Rivers'),\n \t array('id' => '10228','state_id' => '665','name' => 'Roblin'),\n \t array('id' => '10229','state_id' => '665','name' => 'Saint Adolphe'),\n \t array('id' => '10230','state_id' => '665','name' => 'Sainte Anne'),\n \t array('id' => '10231','state_id' => '665','name' => 'Sainte Rose du Lac'),\n \t array('id' => '10232','state_id' => '665','name' => 'Selkirk'),\n \t array('id' => '10233','state_id' => '665','name' => 'Shilo'),\n \t array('id' => '10234','state_id' => '665','name' => 'Snow Lake'),\n \t array('id' => '10235','state_id' => '665','name' => 'Souris'),\n \t array('id' => '10236','state_id' => '665','name' => 'Springfield'),\n \t array('id' => '10237','state_id' => '665','name' => 'Steinbach'),\n \t array('id' => '10238','state_id' => '665','name' => 'Stonewall'),\n \t array('id' => '10239','state_id' => '665','name' => 'Stony Mountain'),\n \t array('id' => '10240','state_id' => '665','name' => 'Swan River'),\n \t array('id' => '10241','state_id' => '665','name' => 'The Pas'),\n \t array('id' => '10242','state_id' => '665','name' => 'Thompson'),\n \t array('id' => '10243','state_id' => '665','name' => 'Virden'),\n \t array('id' => '10244','state_id' => '665','name' => 'Winkler'),\n \t array('id' => '10245','state_id' => '665','name' => 'Winnipeg'),\n \t array('id' => '10246','state_id' => '670','name' => 'Clyde River'),\n \t array('id' => '10247','state_id' => '670','name' => 'Iqaluit'),\n \t array('id' => '10248','state_id' => '670','name' => 'Kangerdlinerk'),\n \t array('id' => '10249','state_id' => '670','name' => 'Oqsuqtooq'),\n \t array('id' => '10250','state_id' => '670','name' => 'Pangnirtung'),\n \t array('id' => '10251','state_id' => '670','name' => 'Tununirusiq'),\n \t array('id' => '10252','state_id' => '671','name' => 'Acton'),\n \t array('id' => '10253','state_id' => '671','name' => 'Ajax'),\n \t array('id' => '10254','state_id' => '671','name' => 'Alexandria'),\n \t array('id' => '10255','state_id' => '671','name' => 'Alfred'),\n \t array('id' => '10256','state_id' => '671','name' => 'Alliston'),\n \t array('id' => '10257','state_id' => '671','name' => 'Almonte'),\n \t array('id' => '10258','state_id' => '671','name' => 'Amherstburg'),\n \t array('id' => '10259','state_id' => '671','name' => 'Amigo Beach'),\n \t array('id' => '10260','state_id' => '671','name' => 'Angus-Borden'),\n \t array('id' => '10261','state_id' => '671','name' => 'Arnprior'),\n \t array('id' => '10262','state_id' => '671','name' => 'Arthur'),\n \t array('id' => '10263','state_id' => '671','name' => 'Athens'),\n \t array('id' => '10264','state_id' => '671','name' => 'Atikokan'),\n \t array('id' => '10265','state_id' => '671','name' => 'Attawapiskat'),\n \t array('id' => '10266','state_id' => '671','name' => 'Aurora'),\n \t array('id' => '10267','state_id' => '671','name' => 'Aylmer'),\n \t array('id' => '10268','state_id' => '671','name' => 'Ayr'),\n \t array('id' => '10269','state_id' => '671','name' => 'Barrie'),\n \t array('id' => '10270','state_id' => '671','name' => 'Barry\\'s Bay'),\n \t array('id' => '10271','state_id' => '671','name' => 'Beamsville'),\n \t array('id' => '10272','state_id' => '671','name' => 'Beaverton'),\n \t array('id' => '10273','state_id' => '671','name' => 'Beeton'),\n \t array('id' => '10274','state_id' => '671','name' => 'Belleville'),\n \t array('id' => '10275','state_id' => '671','name' => 'Belmont'),\n \t array('id' => '10276','state_id' => '671','name' => 'Blenheim'),\n \t array('id' => '10277','state_id' => '671','name' => 'Blind River'),\n \t array('id' => '10278','state_id' => '671','name' => 'Bobcaygeon'),\n \t array('id' => '10279','state_id' => '671','name' => 'Bolton'),\n \t array('id' => '10280','state_id' => '671','name' => 'Bourget'),\n \t array('id' => '10281','state_id' => '671','name' => 'Bowmanville-Newcastle'),\n \t array('id' => '10282','state_id' => '671','name' => 'Bracebridge'),\n \t array('id' => '10283','state_id' => '671','name' => 'Bradford'),\n \t array('id' => '10284','state_id' => '671','name' => 'Brampton'),\n \t array('id' => '10285','state_id' => '671','name' => 'Brantford'),\n \t array('id' => '10286','state_id' => '671','name' => 'Bridgenorth-Chemong Park Area'),\n \t array('id' => '10287','state_id' => '671','name' => 'Brighton'),\n \t array('id' => '10288','state_id' => '671','name' => 'Brockville'),\n \t array('id' => '10289','state_id' => '671','name' => 'Brooklin'),\n \t array('id' => '10290','state_id' => '671','name' => 'Brussels'),\n \t array('id' => '10291','state_id' => '671','name' => 'Burford'),\n \t array('id' => '10292','state_id' => '671','name' => 'Burlington'),\n \t array('id' => '10293','state_id' => '671','name' => 'Caledon'),\n \t array('id' => '10294','state_id' => '671','name' => 'Caledon East'),\n \t array('id' => '10295','state_id' => '671','name' => 'Caledonia'),\n \t array('id' => '10296','state_id' => '671','name' => 'Cambridge'),\n \t array('id' => '10297','state_id' => '671','name' => 'Campbellford'),\n \t array('id' => '10298','state_id' => '671','name' => 'Campbellville'),\n \t array('id' => '10299','state_id' => '671','name' => 'Cannington'),\n \t array('id' => '10300','state_id' => '671','name' => 'Capreol'),\n \t array('id' => '10301','state_id' => '671','name' => 'Cardinal'),\n \t array('id' => '10302','state_id' => '671','name' => 'Carleton Place'),\n \t array('id' => '10303','state_id' => '671','name' => 'Carlisle'),\n \t array('id' => '10304','state_id' => '671','name' => 'Casselman'),\n \t array('id' => '10305','state_id' => '671','name' => 'Cayuga'),\n \t array('id' => '10306','state_id' => '671','name' => 'Chalk River'),\n \t array('id' => '10307','state_id' => '671','name' => 'Chapleau'),\n \t array('id' => '10308','state_id' => '671','name' => 'Chatham'),\n \t array('id' => '10309','state_id' => '671','name' => 'Chesley'),\n \t array('id' => '10310','state_id' => '671','name' => 'Chesterville'),\n \t array('id' => '10311','state_id' => '671','name' => 'Clinton'),\n \t array('id' => '10312','state_id' => '671','name' => 'Cobourg'),\n \t array('id' => '10313','state_id' => '671','name' => 'Cochrane'),\n \t array('id' => '10314','state_id' => '671','name' => 'Colborne'),\n \t array('id' => '10315','state_id' => '671','name' => 'Colchester'),\n \t array('id' => '10316','state_id' => '671','name' => 'Collingwood'),\n \t array('id' => '10317','state_id' => '671','name' => 'Concord'),\n \t array('id' => '10318','state_id' => '671','name' => 'Constance Bay'),\n \t array('id' => '10319','state_id' => '671','name' => 'Cookstown'),\n \t array('id' => '10320','state_id' => '671','name' => 'Cornwall'),\n \t array('id' => '10321','state_id' => '671','name' => 'Creemore'),\n \t array('id' => '10322','state_id' => '671','name' => 'Crystal Beach'),\n \t array('id' => '10323','state_id' => '671','name' => 'Deep River'),\n \t array('id' => '10324','state_id' => '671','name' => 'Delhi'),\n \t array('id' => '10325','state_id' => '671','name' => 'Deseronto'),\n \t array('id' => '10326','state_id' => '671','name' => 'Downsview'),\n \t array('id' => '10327','state_id' => '671','name' => 'Drayton'),\n \t array('id' => '10328','state_id' => '671','name' => 'Dresden'),\n \t array('id' => '10329','state_id' => '671','name' => 'Dryden'),\n \t array('id' => '10330','state_id' => '671','name' => 'Dundalk'),\n \t array('id' => '10331','state_id' => '671','name' => 'Dunnville'),\n \t array('id' => '10332','state_id' => '671','name' => 'Durham'),\n \t array('id' => '10333','state_id' => '671','name' => 'Dutton'),\n \t array('id' => '10334','state_id' => '671','name' => 'Eganville'),\n \t array('id' => '10335','state_id' => '671','name' => 'Elliot Lake'),\n \t array('id' => '10336','state_id' => '671','name' => 'Elmira'),\n \t array('id' => '10337','state_id' => '671','name' => 'Elmvale'),\n \t array('id' => '10338','state_id' => '671','name' => 'Embrun'),\n \t array('id' => '10339','state_id' => '671','name' => 'Englehart'),\n \t array('id' => '10340','state_id' => '671','name' => 'Erin'),\n \t array('id' => '10341','state_id' => '671','name' => 'Espanola'),\n \t array('id' => '10342','state_id' => '671','name' => 'Essex'),\n \t array('id' => '10343','state_id' => '671','name' => 'Etobicoke'),\n \t array('id' => '10344','state_id' => '671','name' => 'Everett'),\n \t array('id' => '10345','state_id' => '671','name' => 'Exeter'),\n \t array('id' => '10346','state_id' => '671','name' => 'Fenelon Falls'),\n \t array('id' => '10347','state_id' => '671','name' => 'Fergus'),\n \t array('id' => '10348','state_id' => '671','name' => 'Forest'),\n \t array('id' => '10349','state_id' => '671','name' => 'Fort Erie'),\n \t array('id' => '10350','state_id' => '671','name' => 'Fort Frances'),\n \t array('id' => '10351','state_id' => '671','name' => 'Frankford'),\n \t array('id' => '10352','state_id' => '671','name' => 'Gananoque'),\n \t array('id' => '10353','state_id' => '671','name' => 'Georgetown'),\n \t array('id' => '10354','state_id' => '671','name' => 'Georgina'),\n \t array('id' => '10355','state_id' => '671','name' => 'Geraldton'),\n \t array('id' => '10356','state_id' => '671','name' => 'Glencoe'),\n \t array('id' => '10357','state_id' => '671','name' => 'Goderich'),\n \t array('id' => '10358','state_id' => '671','name' => 'Golden'),\n \t array('id' => '10359','state_id' => '671','name' => 'Gormley'),\n \t array('id' => '10360','state_id' => '671','name' => 'Grand Bend'),\n \t array('id' => '10361','state_id' => '671','name' => 'Grand Valley'),\n \t array('id' => '10362','state_id' => '671','name' => 'Gravenhurst'),\n \t array('id' => '10363','state_id' => '671','name' => 'Guelph'),\n \t array('id' => '10364','state_id' => '671','name' => 'Hagersville'),\n \t array('id' => '10365','state_id' => '671','name' => 'Haileybury'),\n \t array('id' => '10366','state_id' => '671','name' => 'Hamilton'),\n \t array('id' => '10367','state_id' => '671','name' => 'Hanover'),\n \t array('id' => '10368','state_id' => '671','name' => 'Harriston'),\n \t array('id' => '10369','state_id' => '671','name' => 'Harrow'),\n \t array('id' => '10370','state_id' => '671','name' => 'Hastings'),\n \t array('id' => '10371','state_id' => '671','name' => 'Havelock'),\n \t array('id' => '10372','state_id' => '671','name' => 'Hawkesbury'),\n \t array('id' => '10373','state_id' => '671','name' => 'Hearst'),\n \t array('id' => '10374','state_id' => '671','name' => 'Hensall'),\n \t array('id' => '10375','state_id' => '671','name' => 'Hillsburgh'),\n \t array('id' => '10376','state_id' => '671','name' => 'Hornepayne'),\n \t array('id' => '10377','state_id' => '671','name' => 'Huntsville'),\n \t array('id' => '10378','state_id' => '671','name' => 'Ingersoll'),\n \t array('id' => '10379','state_id' => '671','name' => 'Innisfil'),\n \t array('id' => '10380','state_id' => '671','name' => 'Iroquois'),\n \t array('id' => '10381','state_id' => '671','name' => 'Iroquois Falls'),\n \t array('id' => '10382','state_id' => '671','name' => 'Jarvis'),\n \t array('id' => '10383','state_id' => '671','name' => 'Kanata'),\n \t array('id' => '10384','state_id' => '671','name' => 'Kapuskasing'),\n \t array('id' => '10385','state_id' => '671','name' => 'Kars'),\n \t array('id' => '10386','state_id' => '671','name' => 'Kemptville'),\n \t array('id' => '10387','state_id' => '671','name' => 'Kenora'),\n \t array('id' => '10388','state_id' => '671','name' => 'Kincardine'),\n \t array('id' => '10389','state_id' => '671','name' => 'Kingston'),\n \t array('id' => '10390','state_id' => '671','name' => 'Kirkland Lake'),\n \t array('id' => '10391','state_id' => '671','name' => 'Kitchener'),\n \t array('id' => '10392','state_id' => '671','name' => 'L\\'Original'),\n \t array('id' => '10393','state_id' => '671','name' => 'Lakefield'),\n \t array('id' => '10394','state_id' => '671','name' => 'Lanark'),\n \t array('id' => '10395','state_id' => '671','name' => 'Leamington'),\n \t array('id' => '10396','state_id' => '671','name' => 'Lindsay'),\n \t array('id' => '10397','state_id' => '671','name' => 'Listowel'),\n \t array('id' => '10398','state_id' => '671','name' => 'Little Current'),\n \t array('id' => '10399','state_id' => '671','name' => 'Lively'),\n \t array('id' => '10400','state_id' => '671','name' => 'London'),\n \t array('id' => '10401','state_id' => '671','name' => 'Longlac'),\n \t array('id' => '10402','state_id' => '671','name' => 'Lucan'),\n \t array('id' => '10403','state_id' => '671','name' => 'Lucknow'),\n \t array('id' => '10404','state_id' => '671','name' => 'Madoc'),\n \t array('id' => '10405','state_id' => '671','name' => 'Manitouwadge'),\n \t array('id' => '10406','state_id' => '671','name' => 'Maple'),\n \t array('id' => '10407','state_id' => '671','name' => 'Marathon'),\n \t array('id' => '10408','state_id' => '671','name' => 'Markdale'),\n \t array('id' => '10409','state_id' => '671','name' => 'Markham'),\n \t array('id' => '10410','state_id' => '671','name' => 'Marmora'),\n \t array('id' => '10411','state_id' => '671','name' => 'Mattawa'),\n \t array('id' => '10412','state_id' => '671','name' => 'Meaford'),\n \t array('id' => '10413','state_id' => '671','name' => 'Metcalfe'),\n \t array('id' => '10414','state_id' => '671','name' => 'Midland'),\n \t array('id' => '10415','state_id' => '671','name' => 'Mildmay'),\n \t array('id' => '10416','state_id' => '671','name' => 'Millbrook'),\n \t array('id' => '10417','state_id' => '671','name' => 'Milton'),\n \t array('id' => '10418','state_id' => '671','name' => 'Milverton'),\n \t array('id' => '10419','state_id' => '671','name' => 'Mississauga'),\n \t array('id' => '10420','state_id' => '671','name' => 'Mississauga Beach'),\n \t array('id' => '10421','state_id' => '671','name' => 'Mitchell'),\n \t array('id' => '10422','state_id' => '671','name' => 'Moose Factory'),\n \t array('id' => '10423','state_id' => '671','name' => 'Morrisburg'),\n \t array('id' => '10424','state_id' => '671','name' => 'Mount Albert'),\n \t array('id' => '10425','state_id' => '671','name' => 'Mount Brydges'),\n \t array('id' => '10426','state_id' => '671','name' => 'Mount Forest'),\n \t array('id' => '10427','state_id' => '671','name' => 'Munster'),\n \t array('id' => '10428','state_id' => '671','name' => 'Nanticoke'),\n \t array('id' => '10429','state_id' => '671','name' => 'Napanee'),\n \t array('id' => '10430','state_id' => '671','name' => 'Nepean'),\n \t array('id' => '10431','state_id' => '671','name' => 'New Hamburg'),\n \t array('id' => '10432','state_id' => '671','name' => 'Newmarket'),\n \t array('id' => '10433','state_id' => '671','name' => 'Newtonville'),\n \t array('id' => '10434','state_id' => '671','name' => 'Nobleton'),\n \t array('id' => '10435','state_id' => '671','name' => 'North Bay'),\n \t array('id' => '10436','state_id' => '671','name' => 'North Gower'),\n \t array('id' => '10437','state_id' => '671','name' => 'North York'),\n \t array('id' => '10438','state_id' => '671','name' => 'Norwich'),\n \t array('id' => '10439','state_id' => '671','name' => 'Norwood'),\n \t array('id' => '10440','state_id' => '671','name' => 'Oakville'),\n \t array('id' => '10441','state_id' => '671','name' => 'Omemee'),\n \t array('id' => '10442','state_id' => '671','name' => 'Onaping-Levack'),\n \t array('id' => '10443','state_id' => '671','name' => 'Ontario'),\n \t array('id' => '10444','state_id' => '671','name' => 'Orangeville'),\n \t array('id' => '10445','state_id' => '671','name' => 'Orillia'),\n \t array('id' => '10446','state_id' => '671','name' => 'Orono'),\n \t array('id' => '10447','state_id' => '671','name' => 'Osgoode'),\n \t array('id' => '10448','state_id' => '671','name' => 'Oshawa'),\n \t array('id' => '10449','state_id' => '671','name' => 'Ottawa'),\n \t array('id' => '10450','state_id' => '671','name' => 'Owen Sound'),\n \t array('id' => '10451','state_id' => '671','name' => 'Paisley'),\n \t array('id' => '10452','state_id' => '671','name' => 'Palmerston'),\n \t array('id' => '10453','state_id' => '671','name' => 'Paris'),\n \t array('id' => '10454','state_id' => '671','name' => 'Parkhill'),\n \t array('id' => '10455','state_id' => '671','name' => 'Parry Sound'),\n \t array('id' => '10456','state_id' => '671','name' => 'Pembroke'),\n \t array('id' => '10457','state_id' => '671','name' => 'Perth'),\n \t array('id' => '10458','state_id' => '671','name' => 'Petawawa'),\n \t array('id' => '10459','state_id' => '671','name' => 'Peterborough'),\n \t array('id' => '10460','state_id' => '671','name' => 'Petrolia'),\n \t array('id' => '10461','state_id' => '671','name' => 'Pickering'),\n \t array('id' => '10462','state_id' => '671','name' => 'Picton'),\n \t array('id' => '10463','state_id' => '671','name' => 'Porcupine'),\n \t array('id' => '10464','state_id' => '671','name' => 'Port Credit'),\n \t array('id' => '10465','state_id' => '671','name' => 'Port Dover'),\n \t array('id' => '10466','state_id' => '671','name' => 'Port Elgin'),\n \t array('id' => '10467','state_id' => '671','name' => 'Port Hope'),\n \t array('id' => '10468','state_id' => '671','name' => 'Port Perry'),\n \t array('id' => '10469','state_id' => '671','name' => 'Port Stanley'),\n \t array('id' => '10470','state_id' => '671','name' => 'Powassan'),\n \t array('id' => '10471','state_id' => '671','name' => 'Prescott'),\n \t array('id' => '10472','state_id' => '671','name' => 'Queensville'),\n \t array('id' => '10473','state_id' => '671','name' => 'Renfrew'),\n \t array('id' => '10474','state_id' => '671','name' => 'Richmond'),\n \t array('id' => '10475','state_id' => '671','name' => 'Richmond Hill'),\n \t array('id' => '10476','state_id' => '671','name' => 'Ridgetown'),\n \t array('id' => '10477','state_id' => '671','name' => 'Rockland'),\n \t array('id' => '10478','state_id' => '671','name' => 'Rockwood'),\n \t array('id' => '10479','state_id' => '671','name' => 'Rodney'),\n \t array('id' => '10480','state_id' => '671','name' => 'Saint Catharines'),\n \t array('id' => '10481','state_id' => '671','name' => 'Saint Catharines-Niagara'),\n \t array('id' => '10482','state_id' => '671','name' => 'Saint George'),\n \t array('id' => '10483','state_id' => '671','name' => 'Saint Jacobs'),\n \t array('id' => '10484','state_id' => '671','name' => 'Saint Marys'),\n \t array('id' => '10485','state_id' => '671','name' => 'Saint Thomas'),\n \t array('id' => '10486','state_id' => '671','name' => 'Sarnia'),\n \t array('id' => '10487','state_id' => '671','name' => 'Sault Sainte Marie'),\n \t array('id' => '10488','state_id' => '671','name' => 'Scarborough'),\n \t array('id' => '10489','state_id' => '671','name' => 'Schomberg'),\n \t array('id' => '10490','state_id' => '671','name' => 'Seaforth'),\n \t array('id' => '10491','state_id' => '671','name' => 'Shelburne'),\n \t array('id' => '10492','state_id' => '671','name' => 'Simcoe'),\n \t array('id' => '10493','state_id' => '671','name' => 'Sioux Lookout'),\n \t array('id' => '10494','state_id' => '671','name' => 'Smiths Falls'),\n \t array('id' => '10495','state_id' => '671','name' => 'Smithville'),\n \t array('id' => '10496','state_id' => '671','name' => 'South River'),\n \t array('id' => '10497','state_id' => '671','name' => 'Southampton'),\n \t array('id' => '10498','state_id' => '671','name' => 'Stayner'),\n \t array('id' => '10499','state_id' => '671','name' => 'Stirling'),\n \t array('id' => '10500','state_id' => '671','name' => 'Stoney Creek'),\n \t array('id' => '10501','state_id' => '671','name' => 'Stoney Point'),\n \t array('id' => '10502','state_id' => '671','name' => 'Stouffville'),\n \t array('id' => '10503','state_id' => '671','name' => 'Stratford'),\n \t array('id' => '10504','state_id' => '671','name' => 'Strathroy'),\n \t array('id' => '10505','state_id' => '671','name' => 'Sturgeon Falls'),\n \t array('id' => '10506','state_id' => '671','name' => 'Sudbury'),\n \t array('id' => '10507','state_id' => '671','name' => 'Sutton'),\n \t array('id' => '10508','state_id' => '671','name' => 'Tavistock'),\n \t array('id' => '10509','state_id' => '671','name' => 'Teeswater'),\n \t array('id' => '10510','state_id' => '671','name' => 'Terrace Bay'),\n \t array('id' => '10511','state_id' => '671','name' => 'Thamesford'),\n \t array('id' => '10512','state_id' => '671','name' => 'Thessalon'),\n \t array('id' => '10513','state_id' => '671','name' => 'Thornbury'),\n \t array('id' => '10514','state_id' => '671','name' => 'Thornhill'),\n \t array('id' => '10515','state_id' => '671','name' => 'Thunder Bay'),\n \t array('id' => '10516','state_id' => '671','name' => 'Tilbury'),\n \t array('id' => '10517','state_id' => '671','name' => 'Tilsonburg'),\n \t array('id' => '10518','state_id' => '671','name' => 'Timmins'),\n \t array('id' => '10519','state_id' => '671','name' => 'Toronto'),\n \t array('id' => '10520','state_id' => '671','name' => 'Tory Hill'),\n \t array('id' => '10521','state_id' => '671','name' => 'Tottenham'),\n \t array('id' => '10522','state_id' => '671','name' => 'Tweed'),\n \t array('id' => '10523','state_id' => '671','name' => 'Uxbridge'),\n \t array('id' => '10524','state_id' => '671','name' => 'Valley East'),\n \t array('id' => '10525','state_id' => '671','name' => 'Vankleek Hill'),\n \t array('id' => '10526','state_id' => '671','name' => 'Vaughan'),\n \t array('id' => '10527','state_id' => '671','name' => 'Vineland'),\n \t array('id' => '10528','state_id' => '671','name' => 'Walkerton'),\n \t array('id' => '10529','state_id' => '671','name' => 'Wallaceburg'),\n \t array('id' => '10530','state_id' => '671','name' => 'Wasaga Beach'),\n \t array('id' => '10531','state_id' => '671','name' => 'Waterdown'),\n \t array('id' => '10532','state_id' => '671','name' => 'Waterford'),\n \t array('id' => '10533','state_id' => '671','name' => 'Waterloo'),\n \t array('id' => '10534','state_id' => '671','name' => 'Watford'),\n \t array('id' => '10535','state_id' => '671','name' => 'Wawa'),\n \t array('id' => '10536','state_id' => '671','name' => 'Welland'),\n \t array('id' => '10537','state_id' => '671','name' => 'Wellesley'),\n \t array('id' => '10538','state_id' => '671','name' => 'Wellington'),\n \t array('id' => '10539','state_id' => '671','name' => 'West Lorne'),\n \t array('id' => '10540','state_id' => '671','name' => 'Wheatley'),\n \t array('id' => '10541','state_id' => '671','name' => 'Whitby'),\n \t array('id' => '10542','state_id' => '671','name' => 'Whitchurch-Stouffville'),\n \t array('id' => '10543','state_id' => '671','name' => 'Wiarton'),\n \t array('id' => '10544','state_id' => '671','name' => 'Wikwemikong'),\n \t array('id' => '10545','state_id' => '671','name' => 'Willowdale'),\n \t array('id' => '10546','state_id' => '671','name' => 'Winchester'),\n \t array('id' => '10547','state_id' => '671','name' => 'Windsor'),\n \t array('id' => '10548','state_id' => '671','name' => 'Wingham'),\n \t array('id' => '10549','state_id' => '671','name' => 'Woodbridge'),\n \t array('id' => '10550','state_id' => '671','name' => 'Woodstock'),\n \t array('id' => '10551','state_id' => '671','name' => 'Wyoming'),\n \t array('id' => '10552','state_id' => '673','name' => 'Acton Vale'),\n \t array('id' => '10553','state_id' => '673','name' => 'Albanel'),\n \t array('id' => '10554','state_id' => '673','name' => 'Alencon'),\n \t array('id' => '10555','state_id' => '673','name' => 'Alma'),\n \t array('id' => '10556','state_id' => '673','name' => 'Amos'),\n \t array('id' => '10557','state_id' => '673','name' => 'Amqui'),\n \t array('id' => '10558','state_id' => '673','name' => 'Anjou'),\n \t array('id' => '10559','state_id' => '673','name' => 'Asbestos'),\n \t array('id' => '10560','state_id' => '673','name' => 'Bagotville'),\n \t array('id' => '10561','state_id' => '673','name' => 'Baie-Comeau'),\n \t array('id' => '10562','state_id' => '673','name' => 'Baie-Saint-Paul'),\n \t array('id' => '10563','state_id' => '673','name' => 'Barraute'),\n \t array('id' => '10564','state_id' => '673','name' => 'Beauceville'),\n \t array('id' => '10565','state_id' => '673','name' => 'Beaupre'),\n \t array('id' => '10566','state_id' => '673','name' => 'Bedford'),\n \t array('id' => '10567','state_id' => '673','name' => 'Beloeil'),\n \t array('id' => '10568','state_id' => '673','name' => 'Bernierville'),\n \t array('id' => '10569','state_id' => '673','name' => 'Berthierville'),\n \t array('id' => '10570','state_id' => '673','name' => 'Betsiamites'),\n \t array('id' => '10571','state_id' => '673','name' => 'Boisbriand'),\n \t array('id' => '10572','state_id' => '673','name' => 'Bonaventure'),\n \t array('id' => '10573','state_id' => '673','name' => 'Boucherville'),\n \t array('id' => '10574','state_id' => '673','name' => 'Bromont'),\n \t array('id' => '10575','state_id' => '673','name' => 'Brossard'),\n \t array('id' => '10576','state_id' => '673','name' => 'Brownsburg'),\n \t array('id' => '10577','state_id' => '673','name' => 'Buckingham'),\n \t array('id' => '10578','state_id' => '673','name' => 'Cabano'),\n \t array('id' => '10579','state_id' => '673','name' => 'Candiac'),\n \t array('id' => '10580','state_id' => '673','name' => 'Cap-Chat'),\n \t array('id' => '10581','state_id' => '673','name' => 'Cap-aux-Meules'),\n \t array('id' => '10582','state_id' => '673','name' => 'Carleton'),\n \t array('id' => '10583','state_id' => '673','name' => 'Causapscal'),\n \t array('id' => '10584','state_id' => '673','name' => 'Chandler'),\n \t array('id' => '10585','state_id' => '673','name' => 'Chapais'),\n \t array('id' => '10586','state_id' => '673','name' => 'Charlesbourg'),\n \t array('id' => '10587','state_id' => '673','name' => 'Chateau-Richer'),\n \t array('id' => '10588','state_id' => '673','name' => 'Chibougamou'),\n \t array('id' => '10589','state_id' => '673','name' => 'Chicoutimi-Jonquiere'),\n \t array('id' => '10590','state_id' => '673','name' => 'Chisasibi'),\n \t array('id' => '10591','state_id' => '673','name' => 'Chute-aux-Outardes'),\n \t array('id' => '10592','state_id' => '673','name' => 'Clermont'),\n \t array('id' => '10593','state_id' => '673','name' => 'Coaticook'),\n \t array('id' => '10594','state_id' => '673','name' => 'Coleraine'),\n \t array('id' => '10595','state_id' => '673','name' => 'Contrecoeur'),\n \t array('id' => '10596','state_id' => '673','name' => 'Cookshire'),\n \t array('id' => '10597','state_id' => '673','name' => 'Cowansville'),\n \t array('id' => '10598','state_id' => '673','name' => 'Crabtree'),\n \t array('id' => '10599','state_id' => '673','name' => 'Danville'),\n \t array('id' => '10600','state_id' => '673','name' => 'Daveluyville'),\n \t array('id' => '10601','state_id' => '673','name' => 'Degelis'),\n \t array('id' => '10602','state_id' => '673','name' => 'Desbiens'),\n \t array('id' => '10603','state_id' => '673','name' => 'Disraeli'),\n \t array('id' => '10604','state_id' => '673','name' => 'Dolbeau'),\n \t array('id' => '10605','state_id' => '673','name' => 'Donnacona'),\n \t array('id' => '10606','state_id' => '673','name' => 'Dorval'),\n \t array('id' => '10607','state_id' => '673','name' => 'Drummondville'),\n \t array('id' => '10608','state_id' => '673','name' => 'East Angus'),\n \t array('id' => '10609','state_id' => '673','name' => 'East Broughton'),\n \t array('id' => '10610','state_id' => '673','name' => 'Farnham'),\n \t array('id' => '10611','state_id' => '673','name' => 'Ferme-Neuve'),\n \t array('id' => '10612','state_id' => '673','name' => 'Fermont'),\n \t array('id' => '10613','state_id' => '673','name' => 'Filion'),\n \t array('id' => '10614','state_id' => '673','name' => 'Forestville'),\n \t array('id' => '10615','state_id' => '673','name' => 'Fort-Coulonge'),\n \t array('id' => '10616','state_id' => '673','name' => 'Gaspe'),\n \t array('id' => '10617','state_id' => '673','name' => 'Gentilly'),\n \t array('id' => '10618','state_id' => '673','name' => 'Granby'),\n \t array('id' => '10619','state_id' => '673','name' => 'Grande-Riviere'),\n \t array('id' => '10620','state_id' => '673','name' => 'Grenville'),\n \t array('id' => '10621','state_id' => '673','name' => 'Ham Nord'),\n \t array('id' => '10622','state_id' => '673','name' => 'Hampstead'),\n \t array('id' => '10623','state_id' => '673','name' => 'Hauterive'),\n \t array('id' => '10624','state_id' => '673','name' => 'Havre-Saint-Pierre'),\n \t array('id' => '10625','state_id' => '673','name' => 'Hebertville'),\n \t array('id' => '10626','state_id' => '673','name' => 'Huntingdon'),\n \t array('id' => '10627','state_id' => '673','name' => 'Joliette'),\n \t array('id' => '10628','state_id' => '673','name' => 'Kingsey Falls'),\n \t array('id' => '10629','state_id' => '673','name' => 'L\\'Annonciation'),\n \t array('id' => '10630','state_id' => '673','name' => 'L\\'Ascension-de-Notre-Seigneur'),\n \t array('id' => '10631','state_id' => '673','name' => 'L\\'Epiphanie'),\n \t array('id' => '10632','state_id' => '673','name' => 'La Malbaie'),\n \t array('id' => '10633','state_id' => '673','name' => 'La Pocatiere'),\n \t array('id' => '10634','state_id' => '673','name' => 'La Sarre'),\n \t array('id' => '10635','state_id' => '673','name' => 'La Tuque'),\n \t array('id' => '10636','state_id' => '673','name' => 'Labelle'),\n \t array('id' => '10637','state_id' => '673','name' => 'Lac-Etchemin'),\n \t array('id' => '10638','state_id' => '673','name' => 'Lac-Lapierre'),\n \t array('id' => '10639','state_id' => '673','name' => 'Lac-Megantic'),\n \t array('id' => '10640','state_id' => '673','name' => 'Lac-au-Saumon'),\n \t array('id' => '10641','state_id' => '673','name' => 'Lachine'),\n \t array('id' => '10642','state_id' => '673','name' => 'Lachute'),\n \t array('id' => '10643','state_id' => '673','name' => 'Lacolle'),\n \t array('id' => '10644','state_id' => '673','name' => 'Lasalle'),\n \t array('id' => '10645','state_id' => '673','name' => 'Laurentides'),\n \t array('id' => '10646','state_id' => '673','name' => 'Laurier-Station'),\n \t array('id' => '10647','state_id' => '673','name' => 'Laval'),\n \t array('id' => '10648','state_id' => '673','name' => 'Lavaltrie'),\n \t array('id' => '10649','state_id' => '673','name' => 'Le Bic'),\n \t array('id' => '10650','state_id' => '673','name' => 'Lebel-sur-Quevillon'),\n \t array('id' => '10651','state_id' => '673','name' => 'Les Cedres'),\n \t array('id' => '10652','state_id' => '673','name' => 'Les Coteaux'),\n \t array('id' => '10653','state_id' => '673','name' => 'Les Escoumins'),\n \t array('id' => '10654','state_id' => '673','name' => 'Liniere'),\n \t array('id' => '10655','state_id' => '673','name' => 'Longueuil'),\n \t array('id' => '10656','state_id' => '673','name' => 'Louiseville'),\n \t array('id' => '10657','state_id' => '673','name' => 'Luceville'),\n \t array('id' => '10658','state_id' => '673','name' => 'Macamic'),\n \t array('id' => '10659','state_id' => '673','name' => 'Magog'),\n \t array('id' => '10660','state_id' => '673','name' => 'Malartic'),\n \t array('id' => '10661','state_id' => '673','name' => 'Maniwaki'),\n \t array('id' => '10662','state_id' => '673','name' => 'Marieville'),\n \t array('id' => '10663','state_id' => '673','name' => 'Maskinonge'),\n \t array('id' => '10664','state_id' => '673','name' => 'Matagami'),\n \t array('id' => '10665','state_id' => '673','name' => 'Matane'),\n \t array('id' => '10666','state_id' => '673','name' => 'Metabetchouan'),\n \t array('id' => '10667','state_id' => '673','name' => 'Mirabel'),\n \t array('id' => '10668','state_id' => '673','name' => 'Mistissini'),\n \t array('id' => '10669','state_id' => '673','name' => 'Mont-Joli'),\n \t array('id' => '10670','state_id' => '673','name' => 'Mont-Laurier'),\n \t array('id' => '10671','state_id' => '673','name' => 'Montmagny'),\n \t array('id' => '10672','state_id' => '673','name' => 'Montreal'),\n \t array('id' => '10673','state_id' => '673','name' => 'Murdochville'),\n \t array('id' => '10674','state_id' => '673','name' => 'Napierville'),\n \t array('id' => '10675','state_id' => '673','name' => 'New Richmond'),\n \t array('id' => '10676','state_id' => '673','name' => 'Nicolet'),\n \t array('id' => '10677','state_id' => '673','name' => 'Normandin'),\n \t array('id' => '10678','state_id' => '673','name' => 'Notre-Dame-du-Bon-Conseil'),\n \t array('id' => '10679','state_id' => '673','name' => 'Notre-Dame-du-Lac'),\n \t array('id' => '10680','state_id' => '673','name' => 'Notre-Dame-du-Mont-Carmel'),\n \t array('id' => '10681','state_id' => '673','name' => 'Oka-Kanesatake'),\n \t array('id' => '10682','state_id' => '673','name' => 'Ormstown'),\n \t array('id' => '10683','state_id' => '673','name' => 'Papineauville'),\n \t array('id' => '10684','state_id' => '673','name' => 'Pierreville'),\n \t array('id' => '10685','state_id' => '673','name' => 'Plessisville'),\n \t array('id' => '10686','state_id' => '673','name' => 'Pointe-Claire'),\n \t array('id' => '10687','state_id' => '673','name' => 'Pont-Rouge'),\n \t array('id' => '10688','state_id' => '673','name' => 'Port-Alfred-Bagotville'),\n \t array('id' => '10689','state_id' => '673','name' => 'Port-Cartier'),\n \t array('id' => '10690','state_id' => '673','name' => 'Portneuf'),\n \t array('id' => '10691','state_id' => '673','name' => 'Price'),\n \t array('id' => '10692','state_id' => '673','name' => 'Princeville'),\n \t array('id' => '10693','state_id' => '673','name' => 'Quebec'),\n \t array('id' => '10694','state_id' => '673','name' => 'Rawdon'),\n \t array('id' => '10695','state_id' => '673','name' => 'Repentigny'),\n \t array('id' => '10696','state_id' => '673','name' => 'Richmond'),\n \t array('id' => '10697','state_id' => '673','name' => 'Rigaud'),\n \t array('id' => '10698','state_id' => '673','name' => 'Rimouski'),\n \t array('id' => '10699','state_id' => '673','name' => 'Riviere-au-Renard'),\n \t array('id' => '10700','state_id' => '673','name' => 'Riviere-du-Loup'),\n \t array('id' => '10701','state_id' => '673','name' => 'Roberval'),\n \t array('id' => '10702','state_id' => '673','name' => 'Rougemont'),\n \t array('id' => '10703','state_id' => '673','name' => 'Rouyn-Noranda'),\n \t array('id' => '10704','state_id' => '673','name' => 'Saint-Agapit'),\n \t array('id' => '10705','state_id' => '673','name' => 'Saint-Alexandre'),\n \t array('id' => '10706','state_id' => '673','name' => 'Saint-Alexis-des-Monts'),\n \t array('id' => '10707','state_id' => '673','name' => 'Saint-Ambroise'),\n \t array('id' => '10708','state_id' => '673','name' => 'Saint-Andre-Avellin'),\n \t array('id' => '10709','state_id' => '673','name' => 'Saint-Anselme'),\n \t array('id' => '10710','state_id' => '673','name' => 'Saint-Apollinaire'),\n \t array('id' => '10711','state_id' => '673','name' => 'Saint-Augustin'),\n \t array('id' => '10712','state_id' => '673','name' => 'Saint-Basile-Sud'),\n \t array('id' => '10713','state_id' => '673','name' => 'Saint-Bruno'),\n \t array('id' => '10714','state_id' => '673','name' => 'Saint-Canut'),\n \t array('id' => '10715','state_id' => '673','name' => 'Saint-Cesaire'),\n \t array('id' => '10716','state_id' => '673','name' => 'Saint-Cyrill-de-Wendover'),\n \t array('id' => '10717','state_id' => '673','name' => 'Saint-Damase'),\n \t array('id' => '10718','state_id' => '673','name' => 'Saint-Damien-de-Buckland'),\n \t array('id' => '10719','state_id' => '673','name' => 'Saint-Denis'),\n \t array('id' => '10720','state_id' => '673','name' => 'Saint-Donat-de-Montcalm'),\n \t array('id' => '10721','state_id' => '673','name' => 'Saint-Ephrem-de-Tring'),\n \t array('id' => '10722','state_id' => '673','name' => 'Saint-Fabien'),\n \t array('id' => '10723','state_id' => '673','name' => 'Saint-Felicien'),\n \t array('id' => '10724','state_id' => '673','name' => 'Saint-Felix-de-Valois'),\n \t array('id' => '10725','state_id' => '673','name' => 'Saint-Gabriel'),\n \t array('id' => '10726','state_id' => '673','name' => 'Saint-Gedeon'),\n \t array('id' => '10727','state_id' => '673','name' => 'Saint-Georges'),\n \t array('id' => '10728','state_id' => '673','name' => 'Saint-Germain-de-Grantham'),\n \t array('id' => '10729','state_id' => '673','name' => 'Saint-Gregoire'),\n \t array('id' => '10730','state_id' => '673','name' => 'Saint-Henri-de-Levis'),\n \t array('id' => '10731','state_id' => '673','name' => 'Saint-Honore'),\n \t array('id' => '10732','state_id' => '673','name' => 'Saint-Hyacinthe'),\n \t array('id' => '10733','state_id' => '673','name' => 'Saint-Jacques'),\n \t array('id' => '10734','state_id' => '673','name' => 'Saint-Jean-Port-Joli'),\n \t array('id' => '10735','state_id' => '673','name' => 'Saint-Jean-de-Dieu'),\n \t array('id' => '10736','state_id' => '673','name' => 'Saint-Jean-sur-Richelieu'),\n \t array('id' => '10737','state_id' => '673','name' => 'Saint-Jerome'),\n \t array('id' => '10738','state_id' => '673','name' => 'Saint-Josephe-de-Beauce'),\n \t array('id' => '10739','state_id' => '673','name' => 'Saint-Josephe-de-Lanoraie'),\n \t array('id' => '10740','state_id' => '673','name' => 'Saint-Josephe-de-la-Riviere-Bl'),\n \t array('id' => '10741','state_id' => '673','name' => 'Saint-Jovite'),\n \t array('id' => '10742','state_id' => '673','name' => 'Saint-Laurent'),\n \t array('id' => '10743','state_id' => '673','name' => 'Saint-Liboire'),\n \t array('id' => '10744','state_id' => '673','name' => 'Saint-Marc-des-Carrieres'),\n \t array('id' => '10745','state_id' => '673','name' => 'Saint-Martin'),\n \t array('id' => '10746','state_id' => '673','name' => 'Saint-Michel-des-Saints'),\n \t array('id' => '10747','state_id' => '673','name' => 'Saint-Pacome'),\n \t array('id' => '10748','state_id' => '673','name' => 'Saint-Pascal'),\n \t array('id' => '10749','state_id' => '673','name' => 'Saint-Pie'),\n \t array('id' => '10750','state_id' => '673','name' => 'Saint-Prosper'),\n \t array('id' => '10751','state_id' => '673','name' => 'Saint-Raphael'),\n \t array('id' => '10752','state_id' => '673','name' => 'Saint-Raymond'),\n \t array('id' => '10753','state_id' => '673','name' => 'Saint-Remi'),\n \t array('id' => '10754','state_id' => '673','name' => 'Saint-Roch-de-l\\'Achigan'),\n \t array('id' => '10755','state_id' => '673','name' => 'Saint-Sauveur-des-Monts'),\n \t array('id' => '10756','state_id' => '673','name' => 'Saint-Tite'),\n \t array('id' => '10757','state_id' => '673','name' => 'Sainte-Adele'),\n \t array('id' => '10758','state_id' => '673','name' => 'Sainte-Agathe-des-Monts'),\n \t array('id' => '10759','state_id' => '673','name' => 'Sainte-Anne-des-Monts'),\n \t array('id' => '10760','state_id' => '673','name' => 'Sainte-Anne-des-Plaines'),\n \t array('id' => '10761','state_id' => '673','name' => 'Sainte-Catherine'),\n \t array('id' => '10762','state_id' => '673','name' => 'Sainte-Claire'),\n \t array('id' => '10763','state_id' => '673','name' => 'Sainte-Julienne'),\n \t array('id' => '10764','state_id' => '673','name' => 'Sainte-Justine'),\n \t array('id' => '10765','state_id' => '673','name' => 'Sainte-Madeleine'),\n \t array('id' => '10766','state_id' => '673','name' => 'Sainte-Marie'),\n \t array('id' => '10767','state_id' => '673','name' => 'Sainte-Martine'),\n \t array('id' => '10768','state_id' => '673','name' => 'Sainte-Sophie'),\n \t array('id' => '10769','state_id' => '673','name' => 'Sainte-Thecle'),\n \t array('id' => '10770','state_id' => '673','name' => 'Sainte-Therese'),\n \t array('id' => '10771','state_id' => '673','name' => 'Salaberry-de-Valleyfield'),\n \t array('id' => '10772','state_id' => '673','name' => 'Sayabec'),\n \t array('id' => '10773','state_id' => '673','name' => 'Senneterre'),\n \t array('id' => '10774','state_id' => '673','name' => 'Sept-Iles'),\n \t array('id' => '10775','state_id' => '673','name' => 'Shawinigan'),\n \t array('id' => '10776','state_id' => '673','name' => 'Shawville'),\n \t array('id' => '10777','state_id' => '673','name' => 'Sherbrooke'),\n \t array('id' => '10778','state_id' => '673','name' => 'Sorel'),\n \t array('id' => '10779','state_id' => '673','name' => 'St Faustin'),\n \t array('id' => '10780','state_id' => '673','name' => 'St. Hubert'),\n \t array('id' => '10781','state_id' => '673','name' => 'St. Jean Chrysostome'),\n \t array('id' => '10782','state_id' => '673','name' => 'Temiscaming'),\n \t array('id' => '10783','state_id' => '673','name' => 'Terrebonne'),\n \t array('id' => '10784','state_id' => '673','name' => 'Thetford Mines'),\n \t array('id' => '10785','state_id' => '673','name' => 'Thurso'),\n \t array('id' => '10786','state_id' => '673','name' => 'Trois-Pistoles'),\n \t array('id' => '10787','state_id' => '673','name' => 'Trois-Rivieres'),\n \t array('id' => '10788','state_id' => '673','name' => 'Val-David'),\n \t array('id' => '10789','state_id' => '673','name' => 'Val-d\\'Or'),\n \t array('id' => '10790','state_id' => '673','name' => 'Valcourt'),\n \t array('id' => '10791','state_id' => '673','name' => 'Vallee-Jonction'),\n \t array('id' => '10792','state_id' => '673','name' => 'Vaudreuil'),\n \t array('id' => '10793','state_id' => '673','name' => 'Vercheres'),\n \t array('id' => '10794','state_id' => '673','name' => 'Victoriaville'),\n \t array('id' => '10795','state_id' => '673','name' => 'Ville-Marie'),\n \t array('id' => '10796','state_id' => '673','name' => 'Warwick'),\n \t array('id' => '10797','state_id' => '673','name' => 'Waterloo'),\n \t array('id' => '10798','state_id' => '673','name' => 'Weedon Centre'),\n \t array('id' => '10799','state_id' => '673','name' => 'Westmount'),\n \t array('id' => '10800','state_id' => '673','name' => 'Wickham'),\n \t array('id' => '10801','state_id' => '673','name' => 'Windsor'),\n \t array('id' => '10802','state_id' => '673','name' => 'Yamachiche'),\n \t array('id' => '10803','state_id' => '674','name' => 'Assiniboia'),\n \t array('id' => '10804','state_id' => '674','name' => 'Biggar'),\n \t array('id' => '10805','state_id' => '674','name' => 'Canora'),\n \t array('id' => '10806','state_id' => '674','name' => 'Carlyle'),\n \t array('id' => '10807','state_id' => '674','name' => 'Carnduff'),\n \t array('id' => '10808','state_id' => '674','name' => 'Caronport'),\n \t array('id' => '10809','state_id' => '674','name' => 'Carrot'),\n \t array('id' => '10810','state_id' => '674','name' => 'Dalmeny'),\n \t array('id' => '10811','state_id' => '674','name' => 'Davidson'),\n \t array('id' => '10812','state_id' => '674','name' => 'Esterhazy'),\n \t array('id' => '10813','state_id' => '674','name' => 'Estevan'),\n \t array('id' => '10814','state_id' => '674','name' => 'Eston'),\n \t array('id' => '10815','state_id' => '674','name' => 'Foam Lake'),\n \t array('id' => '10816','state_id' => '674','name' => 'Fort Qu\\'Appelle'),\n \t array('id' => '10817','state_id' => '674','name' => 'Gravelbourg'),\n \t array('id' => '10818','state_id' => '674','name' => 'Grenfell'),\n \t array('id' => '10819','state_id' => '674','name' => 'Gull Lake'),\n \t array('id' => '10820','state_id' => '674','name' => 'Hudson Bay'),\n \t array('id' => '10821','state_id' => '674','name' => 'Humboldt'),\n \t array('id' => '10822','state_id' => '674','name' => 'Indian Head'),\n \t array('id' => '10823','state_id' => '674','name' => 'Kamsack'),\n \t array('id' => '10824','state_id' => '674','name' => 'Kelvington'),\n \t array('id' => '10825','state_id' => '674','name' => 'Kerrobert'),\n \t array('id' => '10826','state_id' => '674','name' => 'Kindersley'),\n \t array('id' => '10827','state_id' => '674','name' => 'Kipling'),\n \t array('id' => '10828','state_id' => '674','name' => 'La Ronge'),\n \t array('id' => '10829','state_id' => '674','name' => 'Langenburg'),\n \t array('id' => '10830','state_id' => '674','name' => 'Langham'),\n \t array('id' => '10831','state_id' => '674','name' => 'Lanigan'),\n \t array('id' => '10832','state_id' => '674','name' => 'Lloydminster'),\n \t array('id' => '10833','state_id' => '674','name' => 'Lumsden'),\n \t array('id' => '10834','state_id' => '674','name' => 'Macklin'),\n \t array('id' => '10835','state_id' => '674','name' => 'Maple Creek'),\n \t array('id' => '10836','state_id' => '674','name' => 'Martensville'),\n \t array('id' => '10837','state_id' => '674','name' => 'Meadow Lake'),\n \t array('id' => '10838','state_id' => '674','name' => 'Melfort'),\n \t array('id' => '10839','state_id' => '674','name' => 'Melville'),\n \t array('id' => '10840','state_id' => '674','name' => 'Moose Jaw'),\n \t array('id' => '10841','state_id' => '674','name' => 'Moosomin'),\n \t array('id' => '10842','state_id' => '674','name' => 'Nipawin'),\n \t array('id' => '10843','state_id' => '674','name' => 'North Battleford'),\n \t array('id' => '10844','state_id' => '674','name' => 'Outlook'),\n \t array('id' => '10845','state_id' => '674','name' => 'Oxbow'),\n \t array('id' => '10846','state_id' => '674','name' => 'Pilot Butte'),\n \t array('id' => '10847','state_id' => '674','name' => 'Preeceville'),\n \t array('id' => '10848','state_id' => '674','name' => 'Prince Albert'),\n \t array('id' => '10849','state_id' => '674','name' => 'Regina'),\n \t array('id' => '10850','state_id' => '674','name' => 'Rosetown'),\n \t array('id' => '10851','state_id' => '674','name' => 'Rosthem'),\n \t array('id' => '10852','state_id' => '674','name' => 'Saskatoon'),\n \t array('id' => '10853','state_id' => '674','name' => 'Shaunavon'),\n \t array('id' => '10854','state_id' => '674','name' => 'Shellbrook'),\n \t array('id' => '10855','state_id' => '674','name' => 'Swift Current'),\n \t array('id' => '10856','state_id' => '674','name' => 'Tisdale'),\n \t array('id' => '10857','state_id' => '674','name' => 'Unity'),\n \t array('id' => '10858','state_id' => '674','name' => 'Wadena'),\n \t array('id' => '10859','state_id' => '674','name' => 'Warman'),\n \t array('id' => '10860','state_id' => '674','name' => 'Watrous'),\n \t array('id' => '10861','state_id' => '674','name' => 'Weyburn'),\n \t array('id' => '10862','state_id' => '674','name' => 'White City'),\n \t array('id' => '10863','state_id' => '674','name' => 'Wilkie'),\n \t array('id' => '10864','state_id' => '674','name' => 'Wynyard'),\n \t array('id' => '10865','state_id' => '674','name' => 'Yorkton'),\n \t array('id' => '10866','state_id' => '675','name' => 'Haines Junction'),\n \t array('id' => '10867','state_id' => '675','name' => 'Mayo'),\n \t array('id' => '10868','state_id' => '675','name' => 'Whitehorse'),\n \t array('id' => '10869','state_id' => '676','name' => 'Sal Rei'),\n \t array('id' => '10870','state_id' => '677','name' => 'Nova Sintra'),\n \t array('id' => '10871','state_id' => '678','name' => 'Mosteiros'),\n \t array('id' => '10872','state_id' => '678','name' => 'Sao Filipe'),\n \t array('id' => '10873','state_id' => '679','name' => 'Vila do Maio'),\n \t array('id' => '10874','state_id' => '680','name' => 'Santa Maria'),\n \t array('id' => '10875','state_id' => '686','name' => 'Ndele'),\n \t array('id' => '10876','state_id' => '687','name' => 'Bangui'),\n \t array('id' => '10877','state_id' => '688','name' => 'Alindao'),\n \t array('id' => '10878','state_id' => '688','name' => 'Kembe'),\n \t array('id' => '10879','state_id' => '688','name' => 'Mobaye'),\n \t array('id' => '10880','state_id' => '689','name' => 'Obo'),\n \t array('id' => '10881','state_id' => '689','name' => 'Zemio'),\n \t array('id' => '10882','state_id' => '690','name' => 'Bria'),\n \t array('id' => '10883','state_id' => '690','name' => 'Ouadda'),\n \t array('id' => '10884','state_id' => '691','name' => 'Dekoa'),\n \t array('id' => '10885','state_id' => '691','name' => 'Sibut'),\n \t array('id' => '10886','state_id' => '692','name' => 'Boda'),\n \t array('id' => '10887','state_id' => '692','name' => 'Mbaiki'),\n \t array('id' => '10888','state_id' => '692','name' => 'Mongoumba'),\n \t array('id' => '10889','state_id' => '693','name' => 'Berberati'),\n \t array('id' => '10890','state_id' => '693','name' => 'Carnot'),\n \t array('id' => '10891','state_id' => '693','name' => 'Gamboula'),\n \t array('id' => '10892','state_id' => '694','name' => 'Bangassou'),\n \t array('id' => '10893','state_id' => '694','name' => 'Gambo'),\n \t array('id' => '10894','state_id' => '694','name' => 'Ouango'),\n \t array('id' => '10895','state_id' => '694','name' => 'Rafai'),\n \t array('id' => '10896','state_id' => '695','name' => 'Kaga-Bandoro'),\n \t array('id' => '10897','state_id' => '696','name' => 'Baboua'),\n \t array('id' => '10898','state_id' => '696','name' => 'Baoro'),\n \t array('id' => '10899','state_id' => '696','name' => 'Bouar'),\n \t array('id' => '10900','state_id' => '698','name' => 'Bambari'),\n \t array('id' => '10901','state_id' => '698','name' => 'Grimari'),\n \t array('id' => '10902','state_id' => '698','name' => 'Ippy'),\n \t array('id' => '10903','state_id' => '698','name' => 'Kouango'),\n \t array('id' => '10904','state_id' => '699','name' => 'Batangafo'),\n \t array('id' => '10905','state_id' => '699','name' => 'Bossangoa'),\n \t array('id' => '10906','state_id' => '699','name' => 'Bouca'),\n \t array('id' => '10907','state_id' => '699','name' => 'Kabo'),\n \t array('id' => '10908','state_id' => '700','name' => 'Bocaranga'),\n \t array('id' => '10909','state_id' => '700','name' => 'Bozoum'),\n \t array('id' => '10910','state_id' => '700','name' => 'Paoua'),\n \t array('id' => '10911','state_id' => '701','name' => 'Nola'),\n \t array('id' => '10912','state_id' => '702','name' => 'Birao'),\n \t array('id' => '10913','state_id' => '703','name' => 'Ati'),\n \t array('id' => '10914','state_id' => '703','name' => 'Oum Hadjer'),\n \t array('id' => '10915','state_id' => '704','name' => 'Biltine'),\n \t array('id' => '10916','state_id' => '705','name' => 'Aouzou'),\n \t array('id' => '10917','state_id' => '705','name' => 'Bardai'),\n \t array('id' => '10918','state_id' => '705','name' => 'Fada'),\n \t array('id' => '10919','state_id' => '705','name' => 'Faya'),\n \t array('id' => '10920','state_id' => '706','name' => 'Bokoro'),\n \t array('id' => '10921','state_id' => '706','name' => 'Bousso'),\n \t array('id' => '10922','state_id' => '706','name' => 'Dourbali'),\n \t array('id' => '10923','state_id' => '706','name' => 'Massaguet'),\n \t array('id' => '10924','state_id' => '706','name' => 'Massakory'),\n \t array('id' => '10925','state_id' => '706','name' => 'Massenya'),\n \t array('id' => '10926','state_id' => '706','name' => 'N\\'Djamena'),\n \t array('id' => '10927','state_id' => '706','name' => 'Ngama'),\n \t array('id' => '10928','state_id' => '707','name' => 'Bitkine'),\n \t array('id' => '10929','state_id' => '707','name' => 'Melfi'),\n \t array('id' => '10930','state_id' => '707','name' => 'Mongo'),\n \t array('id' => '10931','state_id' => '708','name' => 'Mao'),\n \t array('id' => '10932','state_id' => '708','name' => 'Moussoro'),\n \t array('id' => '10933','state_id' => '708','name' => 'Rig-Rig'),\n \t array('id' => '10934','state_id' => '709','name' => 'Bol'),\n \t array('id' => '10935','state_id' => '712','name' => 'Bongor'),\n \t array('id' => '10936','state_id' => '712','name' => 'Fianga'),\n \t array('id' => '10937','state_id' => '712','name' => 'Gounou Gaya'),\n \t array('id' => '10938','state_id' => '712','name' => 'Guelengdeng'),\n \t array('id' => '10939','state_id' => '712','name' => 'Lere'),\n \t array('id' => '10940','state_id' => '712','name' => 'Pala'),\n \t array('id' => '10941','state_id' => '713','name' => 'Goundi'),\n \t array('id' => '10942','state_id' => '713','name' => 'Koumra'),\n \t array('id' => '10943','state_id' => '713','name' => 'Kyabe'),\n \t array('id' => '10944','state_id' => '713','name' => 'Moissala'),\n \t array('id' => '10945','state_id' => '713','name' => 'Sarh'),\n \t array('id' => '10946','state_id' => '714','name' => 'Abeche'),\n \t array('id' => '10947','state_id' => '714','name' => 'Adre'),\n \t array('id' => '10948','state_id' => '714','name' => 'Am Dam'),\n \t array('id' => '10949','state_id' => '715','name' => 'Abou Deia'),\n \t array('id' => '10950','state_id' => '715','name' => 'Am Timan'),\n \t array('id' => '10951','state_id' => '715','name' => 'Mangueigne'),\n \t array('id' => '10952','state_id' => '716','name' => 'Benoy'),\n \t array('id' => '10953','state_id' => '716','name' => 'Bere'),\n \t array('id' => '10954','state_id' => '716','name' => 'Kelo'),\n \t array('id' => '10955','state_id' => '716','name' => 'Lai'),\n \t array('id' => '10956','state_id' => '717','name' => 'Aisen'),\n \t array('id' => '10957','state_id' => '717','name' => 'Chile Chico'),\n \t array('id' => '10958','state_id' => '717','name' => 'Cisnes'),\n \t array('id' => '10959','state_id' => '717','name' => 'Cochrane'),\n \t array('id' => '10960','state_id' => '717','name' => 'Coihaique'),\n \t array('id' => '10961','state_id' => '717','name' => 'Guaitecas'),\n \t array('id' => '10962','state_id' => '717','name' => 'Lago Verde'),\n \t array('id' => '10963','state_id' => '717','name' => 'O\\'Higgins'),\n \t array('id' => '10964','state_id' => '717','name' => 'Rio Ibanez'),\n \t array('id' => '10965','state_id' => '717','name' => 'Tortel'),\n \t array('id' => '10966','state_id' => '718','name' => 'Antofagasta'),\n \t array('id' => '10967','state_id' => '718','name' => 'Calama'),\n \t array('id' => '10968','state_id' => '718','name' => 'Maria Elena'),\n \t array('id' => '10969','state_id' => '718','name' => 'Mejilones'),\n \t array('id' => '10970','state_id' => '718','name' => 'Ollague'),\n \t array('id' => '10971','state_id' => '718','name' => 'San Pedro de Atacama'),\n \t array('id' => '10972','state_id' => '718','name' => 'Sierra Gorda'),\n \t array('id' => '10973','state_id' => '718','name' => 'Taltal'),\n \t array('id' => '10974','state_id' => '718','name' => 'Tocopilla'),\n \t array('id' => '10975','state_id' => '719','name' => 'Angol'),\n \t array('id' => '10976','state_id' => '719','name' => 'Carahue'),\n \t array('id' => '10977','state_id' => '719','name' => 'Collipulli'),\n \t array('id' => '10978','state_id' => '719','name' => 'Cunco'),\n \t array('id' => '10979','state_id' => '719','name' => 'Curacautin'),\n \t array('id' => '10980','state_id' => '719','name' => 'Curarrehue'),\n \t array('id' => '10981','state_id' => '719','name' => 'Ercilla'),\n \t array('id' => '10982','state_id' => '719','name' => 'Freire'),\n \t array('id' => '10983','state_id' => '719','name' => 'Galvarino'),\n \t array('id' => '10984','state_id' => '719','name' => 'Gorbea'),\n \t array('id' => '10985','state_id' => '719','name' => 'Lautaro'),\n \t array('id' => '10986','state_id' => '719','name' => 'Loncoche'),\n \t array('id' => '10987','state_id' => '719','name' => 'Lonquimay'),\n \t array('id' => '10988','state_id' => '719','name' => 'Los Sauces'),\n \t array('id' => '10989','state_id' => '719','name' => 'Lumaco'),\n \t array('id' => '10990','state_id' => '719','name' => 'Melipeuco'),\n \t array('id' => '10991','state_id' => '719','name' => 'Nueva Imperial'),\n \t array('id' => '10992','state_id' => '719','name' => 'Padre las Casas'),\n \t array('id' => '10993','state_id' => '719','name' => 'Perquenco'),\n \t array('id' => '10994','state_id' => '719','name' => 'Pitrufquen'),\n \t array('id' => '10995','state_id' => '719','name' => 'Pucon'),\n \t array('id' => '10996','state_id' => '719','name' => 'Puren'),\n \t array('id' => '10997','state_id' => '719','name' => 'Renaico'),\n \t array('id' => '10998','state_id' => '719','name' => 'Saavedra'),\n \t array('id' => '10999','state_id' => '719','name' => 'Temuco'),\n \t array('id' => '11000','state_id' => '719','name' => 'Teodoro Schmidt'),\n \t array('id' => '11001','state_id' => '719','name' => 'Tolten'),\n \t array('id' => '11002','state_id' => '719','name' => 'Traiguen'),\n \t array('id' => '11003','state_id' => '719','name' => 'Victoria'),\n \t array('id' => '11004','state_id' => '719','name' => 'Vilcun'),\n \t array('id' => '11005','state_id' => '719','name' => 'Villarica'),\n \t array('id' => '11006','state_id' => '720','name' => 'Alto del Carmen'),\n \t array('id' => '11007','state_id' => '720','name' => 'Caldera'),\n \t array('id' => '11008','state_id' => '720','name' => 'Chanaral'),\n \t array('id' => '11009','state_id' => '720','name' => 'Copiapo'),\n \t array('id' => '11010','state_id' => '720','name' => 'Diego de Almagro'),\n \t array('id' => '11011','state_id' => '720','name' => 'Freirina'),\n \t array('id' => '11012','state_id' => '720','name' => 'Huasco'),\n \t array('id' => '11013','state_id' => '720','name' => 'Tierra Amarilla'),\n \t array('id' => '11014','state_id' => '720','name' => 'Vallenar'),\n \t array('id' => '11015','state_id' => '722','name' => 'Andacollo'),\n \t array('id' => '11016','state_id' => '722','name' => 'Canela'),\n \t array('id' => '11017','state_id' => '722','name' => 'Combarbala'),\n \t array('id' => '11018','state_id' => '722','name' => 'Coquimbo'),\n \t array('id' => '11019','state_id' => '722','name' => 'Illapel'),\n \t array('id' => '11020','state_id' => '722','name' => 'La Higuera'),\n \t array('id' => '11021','state_id' => '722','name' => 'La Serena'),\n \t array('id' => '11022','state_id' => '722','name' => 'Los Vilos'),\n \t array('id' => '11023','state_id' => '722','name' => 'Monte Patria'),\n \t array('id' => '11024','state_id' => '722','name' => 'Ovalle'),\n \t array('id' => '11025','state_id' => '722','name' => 'Paiguano'),\n \t array('id' => '11026','state_id' => '722','name' => 'Punitaci'),\n \t array('id' => '11027','state_id' => '722','name' => 'Rio Hurtado'),\n \t array('id' => '11028','state_id' => '722','name' => 'Salamanca'),\n \t array('id' => '11029','state_id' => '722','name' => 'Vicuna'),\n \t array('id' => '11030','state_id' => '725','name' => 'Cabo de Horno'),\n \t array('id' => '11031','state_id' => '725','name' => 'Laguna Blanca'),\n \t array('id' => '11032','state_id' => '725','name' => 'Natales'),\n \t array('id' => '11033','state_id' => '725','name' => 'Porvenir'),\n \t array('id' => '11034','state_id' => '725','name' => 'Primavera'),\n \t array('id' => '11035','state_id' => '725','name' => 'Punta Arenas'),\n \t array('id' => '11036','state_id' => '725','name' => 'Rio Verde'),\n \t array('id' => '11037','state_id' => '725','name' => 'San Gregorio'),\n \t array('id' => '11038','state_id' => '725','name' => 'Timaukel'),\n \t array('id' => '11039','state_id' => '725','name' => 'Torres del Paine'),\n \t array('id' => '11040','state_id' => '726','name' => 'Cauquenes'),\n \t array('id' => '11041','state_id' => '726','name' => 'Chanco'),\n \t array('id' => '11042','state_id' => '726','name' => 'Colbun'),\n \t array('id' => '11043','state_id' => '726','name' => 'Constitucion'),\n \t array('id' => '11044','state_id' => '726','name' => 'Curepto'),\n \t array('id' => '11045','state_id' => '726','name' => 'Curico'),\n \t array('id' => '11046','state_id' => '726','name' => 'Empedrado'),\n \t array('id' => '11047','state_id' => '726','name' => 'Hualane'),\n \t array('id' => '11048','state_id' => '726','name' => 'Licanten'),\n \t array('id' => '11049','state_id' => '726','name' => 'Linares'),\n \t array('id' => '11050','state_id' => '726','name' => 'Longavi'),\n \t array('id' => '11051','state_id' => '726','name' => 'Maule'),\n \t array('id' => '11052','state_id' => '726','name' => 'Molina'),\n \t array('id' => '11053','state_id' => '726','name' => 'Parral'),\n \t array('id' => '11054','state_id' => '726','name' => 'Pelarco'),\n \t array('id' => '11055','state_id' => '726','name' => 'Pelluhue'),\n \t array('id' => '11056','state_id' => '726','name' => 'Pencahue'),\n \t array('id' => '11057','state_id' => '726','name' => 'Rauco'),\n \t array('id' => '11058','state_id' => '726','name' => 'Retiro'),\n \t array('id' => '11059','state_id' => '726','name' => 'Rio Claro'),\n \t array('id' => '11060','state_id' => '726','name' => 'Romeral'),\n \t array('id' => '11061','state_id' => '726','name' => 'Sagrada Familia'),\n \t array('id' => '11062','state_id' => '726','name' => 'San Clemente'),\n \t array('id' => '11063','state_id' => '726','name' => 'San Javier'),\n \t array('id' => '11064','state_id' => '726','name' => 'San Rafael'),\n \t array('id' => '11065','state_id' => '726','name' => 'Talca'),\n \t array('id' => '11066','state_id' => '726','name' => 'Teno'),\n \t array('id' => '11067','state_id' => '726','name' => 'Vichuquen'),\n \t array('id' => '11068','state_id' => '726','name' => 'Villa Alegre'),\n \t array('id' => '11069','state_id' => '726','name' => 'Yerbas Buenas'),\n \t array('id' => '11070','state_id' => '727','name' => 'Alhue'),\n \t array('id' => '11071','state_id' => '727','name' => 'Buin'),\n \t array('id' => '11072','state_id' => '727','name' => 'Calera de Tango'),\n \t array('id' => '11073','state_id' => '727','name' => 'Colina'),\n \t array('id' => '11074','state_id' => '727','name' => 'Curacavi'),\n \t array('id' => '11075','state_id' => '727','name' => 'El Monte'),\n \t array('id' => '11076','state_id' => '727','name' => 'Isla de Maipo'),\n \t array('id' => '11077','state_id' => '727','name' => 'Lampa'),\n \t array('id' => '11078','state_id' => '727','name' => 'Maria Pinto'),\n \t array('id' => '11079','state_id' => '727','name' => 'Melipilla'),\n \t array('id' => '11080','state_id' => '727','name' => 'Padre Hurtado'),\n \t array('id' => '11081','state_id' => '727','name' => 'Paine'),\n \t array('id' => '11082','state_id' => '727','name' => 'Penaflor'),\n \t array('id' => '11083','state_id' => '727','name' => 'Pirque'),\n \t array('id' => '11084','state_id' => '727','name' => 'Puente Alto'),\n \t array('id' => '11085','state_id' => '727','name' => 'Quilicura'),\n \t array('id' => '11086','state_id' => '727','name' => 'San Bernardo'),\n \t array('id' => '11087','state_id' => '727','name' => 'San Jose de Maipo'),\n \t array('id' => '11088','state_id' => '727','name' => 'San Pedro'),\n \t array('id' => '11089','state_id' => '727','name' => 'Santiago'),\n \t array('id' => '11090','state_id' => '727','name' => 'Talagante'),\n \t array('id' => '11091','state_id' => '727','name' => 'Tiltil'),\n \t array('id' => '11092','state_id' => '728','name' => 'Alhue'),\n \t array('id' => '11093','state_id' => '728','name' => 'Buin'),\n \t array('id' => '11094','state_id' => '728','name' => 'Calera de Tango'),\n \t array('id' => '11095','state_id' => '728','name' => 'Colina'),\n \t array('id' => '11096','state_id' => '728','name' => 'Curacavi'),\n \t array('id' => '11097','state_id' => '728','name' => 'El Monte'),\n \t array('id' => '11098','state_id' => '728','name' => 'Isla de Maipo'),\n \t array('id' => '11099','state_id' => '728','name' => 'Lampa'),\n \t array('id' => '11100','state_id' => '728','name' => 'Maria Pinto'),\n \t array('id' => '11101','state_id' => '728','name' => 'Melipilla'),\n \t array('id' => '11102','state_id' => '728','name' => 'Padre Hurtado'),\n \t array('id' => '11103','state_id' => '728','name' => 'Paine'),\n \t array('id' => '11104','state_id' => '728','name' => 'Penaflor'),\n \t array('id' => '11105','state_id' => '728','name' => 'Pirque'),\n \t array('id' => '11106','state_id' => '728','name' => 'Puente Alto'),\n \t array('id' => '11107','state_id' => '728','name' => 'Quilicura'),\n \t array('id' => '11108','state_id' => '728','name' => 'San Bernardo'),\n \t array('id' => '11109','state_id' => '728','name' => 'San Jose de Maipo'),\n \t array('id' => '11110','state_id' => '728','name' => 'San Pedro'),\n \t array('id' => '11111','state_id' => '728','name' => 'Santiago'),\n \t array('id' => '11112','state_id' => '728','name' => 'Talagante'),\n \t array('id' => '11113','state_id' => '728','name' => 'Tiltil'),\n \t array('id' => '11114','state_id' => '729','name' => 'Arica'),\n \t array('id' => '11115','state_id' => '729','name' => 'Camarones'),\n \t array('id' => '11116','state_id' => '729','name' => 'Camina'),\n \t array('id' => '11117','state_id' => '729','name' => 'Colchane'),\n \t array('id' => '11118','state_id' => '729','name' => 'General Lagos'),\n \t array('id' => '11119','state_id' => '729','name' => 'Huara'),\n \t array('id' => '11120','state_id' => '729','name' => 'Iquique'),\n \t array('id' => '11121','state_id' => '729','name' => 'Pica'),\n \t array('id' => '11122','state_id' => '729','name' => 'Pozo Almonte'),\n \t array('id' => '11123','state_id' => '729','name' => 'Putre'),\n \t array('id' => '11124','state_id' => '730','name' => 'Algarrobo'),\n \t array('id' => '11125','state_id' => '730','name' => 'Cabildo'),\n \t array('id' => '11126','state_id' => '730','name' => 'Calera'),\n \t array('id' => '11127','state_id' => '730','name' => 'Calle Larga'),\n \t array('id' => '11128','state_id' => '730','name' => 'Cartagena'),\n \t array('id' => '11129','state_id' => '730','name' => 'Casablanca'),\n \t array('id' => '11130','state_id' => '730','name' => 'Catemu'),\n \t array('id' => '11131','state_id' => '730','name' => 'Concon'),\n \t array('id' => '11132','state_id' => '730','name' => 'El Quisco'),\n \t array('id' => '11133','state_id' => '730','name' => 'El Tabo'),\n \t array('id' => '11134','state_id' => '730','name' => 'Hijuelas'),\n \t array('id' => '11135','state_id' => '730','name' => 'La Cruz'),\n \t array('id' => '11136','state_id' => '730','name' => 'La Ligua'),\n \t array('id' => '11137','state_id' => '730','name' => 'Limache'),\n \t array('id' => '11138','state_id' => '730','name' => 'Llaillay'),\n \t array('id' => '11139','state_id' => '730','name' => 'Los Andes'),\n \t array('id' => '11140','state_id' => '730','name' => 'Nogales'),\n \t array('id' => '11141','state_id' => '730','name' => 'Olmue'),\n \t array('id' => '11142','state_id' => '730','name' => 'Panquehue'),\n \t array('id' => '11143','state_id' => '730','name' => 'Papudo'),\n \t array('id' => '11144','state_id' => '730','name' => 'Petorca'),\n \t array('id' => '11145','state_id' => '730','name' => 'Puchuncavi'),\n \t array('id' => '11146','state_id' => '730','name' => 'Putaendeo'),\n \t array('id' => '11147','state_id' => '730','name' => 'Quillota'),\n \t array('id' => '11148','state_id' => '730','name' => 'Quilpue'),\n \t array('id' => '11149','state_id' => '730','name' => 'Quintero'),\n \t array('id' => '11150','state_id' => '730','name' => 'Rinconada'),\n \t array('id' => '11151','state_id' => '730','name' => 'San Antonio'),\n \t array('id' => '11152','state_id' => '730','name' => 'San Esteban'),\n \t array('id' => '11153','state_id' => '730','name' => 'San Felipe'),\n \t array('id' => '11154','state_id' => '730','name' => 'Santa Maria'),\n \t array('id' => '11155','state_id' => '730','name' => 'Santo Domingo'),\n \t array('id' => '11156','state_id' => '730','name' => 'Valparaiso'),\n \t array('id' => '11157','state_id' => '730','name' => 'Villa Alemana'),\n \t array('id' => '11158','state_id' => '730','name' => 'Vina del Mar'),\n \t array('id' => '11159','state_id' => '730','name' => 'Zapallar'),\n \t array('id' => '11160','state_id' => '731','name' => 'Fengyang'),\n \t array('id' => '11161','state_id' => '731','name' => 'Guangde'),\n \t array('id' => '11162','state_id' => '731','name' => 'Liuan'),\n \t array('id' => '11163','state_id' => '731','name' => 'Ningguo'),\n \t array('id' => '11164','state_id' => '731','name' => 'Shucheng'),\n \t array('id' => '11165','state_id' => '731','name' => 'Xinchang'),\n \t array('id' => '11166','state_id' => '731','name' => 'Xuancheng'),\n \t array('id' => '11181','state_id' => '734','name' => 'Aomen'),\n \t array('id' => '11182','state_id' => '735','name' => 'Beijing'),\n \t array('id' => '11183','state_id' => '735','name' => 'Changping'),\n \t array('id' => '11184','state_id' => '735','name' => 'Fangshan'),\n \t array('id' => '11185','state_id' => '735','name' => 'Huangcun'),\n \t array('id' => '11186','state_id' => '735','name' => 'Liangxiang'),\n \t array('id' => '11187','state_id' => '735','name' => 'Mentougou'),\n \t array('id' => '11188','state_id' => '735','name' => 'Shunyi'),\n \t array('id' => '11189','state_id' => '735','name' => 'Tongzhou'),\n \t array('id' => '11190','state_id' => '736','name' => 'Beijing'),\n \t array('id' => '11191','state_id' => '736','name' => 'Changping'),\n \t array('id' => '11192','state_id' => '736','name' => 'Fangshan'),\n \t array('id' => '11193','state_id' => '736','name' => 'Huangcun'),\n \t array('id' => '11194','state_id' => '736','name' => 'Liangxiang'),\n \t array('id' => '11195','state_id' => '736','name' => 'Mentougou'),\n \t array('id' => '11196','state_id' => '736','name' => 'Shunyi'),\n \t array('id' => '11197','state_id' => '736','name' => 'Tongzhou'),\n \t array('id' => '11198','state_id' => '737','name' => 'Beibei'),\n \t array('id' => '11199','state_id' => '737','name' => 'Chongqing'),\n \t array('id' => '11200','state_id' => '737','name' => 'Fuling'),\n \t array('id' => '11201','state_id' => '737','name' => 'Longhua'),\n \t array('id' => '11202','state_id' => '737','name' => 'Nantongkuang'),\n \t array('id' => '11203','state_id' => '737','name' => 'Wanxian'),\n \t array('id' => '11204','state_id' => '737','name' => 'Xiuma'),\n \t array('id' => '11205','state_id' => '737','name' => 'Yubei'),\n \t array('id' => '11206','state_id' => '737','name' => 'Yudong'),\n \t array('id' => '11207','state_id' => '738','name' => 'Bantou'),\n \t array('id' => '11208','state_id' => '738','name' => 'Dongshan'),\n \t array('id' => '11209','state_id' => '738','name' => 'Fuan'),\n \t array('id' => '11210','state_id' => '738','name' => 'Fujian'),\n \t array('id' => '11211','state_id' => '738','name' => 'Fuqing'),\n \t array('id' => '11212','state_id' => '738','name' => 'Fuzhou'),\n \t array('id' => '11213','state_id' => '738','name' => 'Gantou'),\n \t array('id' => '11214','state_id' => '738','name' => 'Hanyang'),\n \t array('id' => '11215','state_id' => '738','name' => 'Jiangkou'),\n \t array('id' => '11216','state_id' => '738','name' => 'Jiaocheng'),\n \t array('id' => '11217','state_id' => '738','name' => 'Jinjiang'),\n \t array('id' => '11218','state_id' => '738','name' => 'Jinshang'),\n \t array('id' => '11219','state_id' => '738','name' => 'Longhai'),\n \t array('id' => '11220','state_id' => '738','name' => 'Longyan'),\n \t array('id' => '11221','state_id' => '738','name' => 'Luoyang'),\n \t array('id' => '11222','state_id' => '738','name' => 'Nanan'),\n \t array('id' => '11223','state_id' => '738','name' => 'Nanping'),\n \t array('id' => '11224','state_id' => '738','name' => 'Nanpu'),\n \t array('id' => '11225','state_id' => '738','name' => 'Putian'),\n \t array('id' => '11226','state_id' => '738','name' => 'Qingyang'),\n \t array('id' => '11227','state_id' => '738','name' => 'Quanzhou'),\n \t array('id' => '11228','state_id' => '738','name' => 'Rongcheng'),\n \t array('id' => '11229','state_id' => '738','name' => 'Sanming'),\n \t array('id' => '11230','state_id' => '738','name' => 'Shaowu'),\n \t array('id' => '11231','state_id' => '738','name' => 'Shima'),\n \t array('id' => '11232','state_id' => '738','name' => 'Shishi'),\n \t array('id' => '11233','state_id' => '738','name' => 'Tantou'),\n \t array('id' => '11234','state_id' => '738','name' => 'Tongshan'),\n \t array('id' => '11235','state_id' => '738','name' => 'Xiamen'),\n \t array('id' => '11236','state_id' => '738','name' => 'Xiapu'),\n \t array('id' => '11237','state_id' => '738','name' => 'Xiapu Ningde'),\n \t array('id' => '11238','state_id' => '738','name' => 'Ximei'),\n \t array('id' => '11239','state_id' => '738','name' => 'Yongan'),\n \t array('id' => '11240','state_id' => '738','name' => 'Zhangzhou'),\n \t array('id' => '11241','state_id' => '738','name' => 'Zhicheng'),\n \t array('id' => '11277','state_id' => '740','name' => 'Baiyin'),\n \t array('id' => '11278','state_id' => '740','name' => 'Baoji'),\n \t array('id' => '11279','state_id' => '740','name' => 'Beidao'),\n \t array('id' => '11280','state_id' => '740','name' => 'Jiayuguan'),\n \t array('id' => '11281','state_id' => '740','name' => 'Jinchang'),\n \t array('id' => '11282','state_id' => '740','name' => 'Jiuquan'),\n \t array('id' => '11283','state_id' => '740','name' => 'Lanzhou'),\n \t array('id' => '11284','state_id' => '740','name' => 'Linxia'),\n \t array('id' => '11285','state_id' => '740','name' => 'Pingliang'),\n \t array('id' => '11286','state_id' => '740','name' => 'Qincheng'),\n \t array('id' => '11287','state_id' => '740','name' => 'Wuwei'),\n \t array('id' => '11288','state_id' => '740','name' => 'Yaojie'),\n \t array('id' => '11289','state_id' => '740','name' => 'Yumen'),\n \t array('id' => '11290','state_id' => '740','name' => 'Zhangye'),\n \t array('id' => '11291','state_id' => '740','name' => 'Zhuanglang'),\n \t array('id' => '11292','state_id' => '741','name' => 'Anbu'),\n \t array('id' => '11293','state_id' => '741','name' => 'Chaozhou'),\n \t array('id' => '11294','state_id' => '741','name' => 'Chenghai'),\n \t array('id' => '11295','state_id' => '741','name' => 'Chuncheng'),\n \t array('id' => '11296','state_id' => '741','name' => 'Daliang'),\n \t array('id' => '11297','state_id' => '741','name' => 'Danshui'),\n \t array('id' => '11298','state_id' => '741','name' => 'Dongguan'),\n \t array('id' => '11299','state_id' => '741','name' => 'Donghai'),\n \t array('id' => '11300','state_id' => '741','name' => 'Dongli'),\n \t array('id' => '11301','state_id' => '741','name' => 'Dongzhen'),\n \t array('id' => '11302','state_id' => '741','name' => 'Ducheng'),\n \t array('id' => '11303','state_id' => '741','name' => 'Encheng'),\n \t array('id' => '11304','state_id' => '741','name' => 'Foahn'),\n \t array('id' => '11305','state_id' => '741','name' => 'Foshan'),\n \t array('id' => '11306','state_id' => '741','name' => 'Gaozhou'),\n \t array('id' => '11307','state_id' => '741','name' => 'Guangdong'),\n \t array('id' => '11308','state_id' => '741','name' => 'Guangzhou'),\n \t array('id' => '11309','state_id' => '741','name' => 'Guanjiao'),\n \t array('id' => '11310','state_id' => '741','name' => 'Haicheng'),\n \t array('id' => '11311','state_id' => '741','name' => 'Haimen'),\n \t array('id' => '11312','state_id' => '741','name' => 'Hepo'),\n \t array('id' => '11313','state_id' => '741','name' => 'Houpu'),\n \t array('id' => '11314','state_id' => '741','name' => 'Huaicheng'),\n \t array('id' => '11315','state_id' => '741','name' => 'Huanggang'),\n \t array('id' => '11316','state_id' => '741','name' => 'Huangpu'),\n \t array('id' => '11317','state_id' => '741','name' => 'Huazhou'),\n \t array('id' => '11318','state_id' => '741','name' => 'Huicheng'),\n \t array('id' => '11319','state_id' => '741','name' => 'Huizhou'),\n \t array('id' => '11320','state_id' => '741','name' => 'Humen'),\n \t array('id' => '11321','state_id' => '741','name' => 'Jiangmen'),\n \t array('id' => '11322','state_id' => '741','name' => 'Jiazi'),\n \t array('id' => '11323','state_id' => '741','name' => 'Jieshi'),\n \t array('id' => '11324','state_id' => '741','name' => 'Jieyang'),\n \t array('id' => '11325','state_id' => '741','name' => 'Lecheng'),\n \t array('id' => '11326','state_id' => '741','name' => 'Leicheng'),\n \t array('id' => '11327','state_id' => '741','name' => 'Liancheng'),\n \t array('id' => '11328','state_id' => '741','name' => 'Lianzhou'),\n \t array('id' => '11329','state_id' => '741','name' => 'Licheng'),\n \t array('id' => '11330','state_id' => '741','name' => 'Liusha'),\n \t array('id' => '11331','state_id' => '741','name' => 'Longgang'),\n \t array('id' => '11332','state_id' => '741','name' => 'Lubu'),\n \t array('id' => '11333','state_id' => '741','name' => 'Luocheng'),\n \t array('id' => '11334','state_id' => '741','name' => 'Luohu'),\n \t array('id' => '11335','state_id' => '741','name' => 'Luoyang'),\n \t array('id' => '11336','state_id' => '741','name' => 'Maba'),\n \t array('id' => '11337','state_id' => '741','name' => 'Maoming'),\n \t array('id' => '11338','state_id' => '741','name' => 'Mata'),\n \t array('id' => '11339','state_id' => '741','name' => 'Meilu'),\n \t array('id' => '11340','state_id' => '741','name' => 'Meizhou'),\n \t array('id' => '11341','state_id' => '741','name' => 'Mianchang'),\n \t array('id' => '11342','state_id' => '741','name' => 'Nanfeng'),\n \t array('id' => '11343','state_id' => '741','name' => 'Nanhai'),\n \t array('id' => '11344','state_id' => '741','name' => 'Pingshan'),\n \t array('id' => '11345','state_id' => '741','name' => 'Qingtang'),\n \t array('id' => '11346','state_id' => '741','name' => 'Qingyuan'),\n \t array('id' => '11347','state_id' => '741','name' => 'Rongcheng'),\n \t array('id' => '11348','state_id' => '741','name' => 'Sanbu'),\n \t array('id' => '11349','state_id' => '741','name' => 'Shantou'),\n \t array('id' => '11350','state_id' => '741','name' => 'Shanwei'),\n \t array('id' => '11351','state_id' => '741','name' => 'Shaoguan'),\n \t array('id' => '11352','state_id' => '741','name' => 'Shaping'),\n \t array('id' => '11353','state_id' => '741','name' => 'Shenzhen'),\n \t array('id' => '11354','state_id' => '741','name' => 'Shilong'),\n \t array('id' => '11355','state_id' => '741','name' => 'Shiqiao'),\n \t array('id' => '11356','state_id' => '741','name' => 'Shiwan'),\n \t array('id' => '11357','state_id' => '741','name' => 'Shuizhai'),\n \t array('id' => '11358','state_id' => '741','name' => 'Shunde'),\n \t array('id' => '11359','state_id' => '741','name' => 'Suicheng'),\n \t array('id' => '11360','state_id' => '741','name' => 'Taicheng'),\n \t array('id' => '11361','state_id' => '741','name' => 'Tangping'),\n \t array('id' => '11362','state_id' => '741','name' => 'Xiaolan'),\n \t array('id' => '11363','state_id' => '741','name' => 'Xinan'),\n \t array('id' => '11364','state_id' => '741','name' => 'Xingcheng'),\n \t array('id' => '11365','state_id' => '741','name' => 'Xiongzhou'),\n \t array('id' => '11366','state_id' => '741','name' => 'Xucheng'),\n \t array('id' => '11367','state_id' => '741','name' => 'Yangjiang'),\n \t array('id' => '11368','state_id' => '741','name' => 'Yingcheng'),\n \t array('id' => '11369','state_id' => '741','name' => 'Yuancheng'),\n \t array('id' => '11370','state_id' => '741','name' => 'Yuncheng'),\n \t array('id' => '11371','state_id' => '741','name' => 'Yunfu'),\n \t array('id' => '11372','state_id' => '741','name' => 'Zengcheng'),\n \t array('id' => '11373','state_id' => '741','name' => 'Zhanjiang'),\n \t array('id' => '11374','state_id' => '741','name' => 'Zhaoqing'),\n \t array('id' => '11375','state_id' => '741','name' => 'Zhilong'),\n \t array('id' => '11376','state_id' => '741','name' => 'Zhongshan'),\n \t array('id' => '11377','state_id' => '741','name' => 'Zhuhai'),\n \t array('id' => '11464','state_id' => '743','name' => 'Babu'),\n \t array('id' => '11465','state_id' => '743','name' => 'Baihe'),\n \t array('id' => '11466','state_id' => '743','name' => 'Baise'),\n \t array('id' => '11467','state_id' => '743','name' => 'Beihai'),\n \t array('id' => '11468','state_id' => '743','name' => 'Binzhou'),\n \t array('id' => '11469','state_id' => '743','name' => 'Bose'),\n \t array('id' => '11470','state_id' => '743','name' => 'Fangchenggang'),\n \t array('id' => '11471','state_id' => '743','name' => 'Guicheng'),\n \t array('id' => '11472','state_id' => '743','name' => 'Guilin'),\n \t array('id' => '11473','state_id' => '743','name' => 'Guiping'),\n \t array('id' => '11474','state_id' => '743','name' => 'Jinchengjiang'),\n \t array('id' => '11475','state_id' => '743','name' => 'Jinji'),\n \t array('id' => '11476','state_id' => '743','name' => 'Laibin'),\n \t array('id' => '11477','state_id' => '743','name' => 'Lianzhou'),\n \t array('id' => '11478','state_id' => '743','name' => 'Liuzhou'),\n \t array('id' => '11479','state_id' => '743','name' => 'Luorong'),\n \t array('id' => '11480','state_id' => '743','name' => 'Matong'),\n \t array('id' => '11481','state_id' => '743','name' => 'Nandu'),\n \t array('id' => '11482','state_id' => '743','name' => 'Nanning'),\n \t array('id' => '11483','state_id' => '743','name' => 'Pingnan'),\n \t array('id' => '11484','state_id' => '743','name' => 'Pumiao'),\n \t array('id' => '11485','state_id' => '743','name' => 'Qinzhou'),\n \t array('id' => '11486','state_id' => '743','name' => 'Songhua'),\n \t array('id' => '11487','state_id' => '743','name' => 'Wuzhou'),\n \t array('id' => '11488','state_id' => '743','name' => 'Yashan'),\n \t array('id' => '11489','state_id' => '743','name' => 'Yulin'),\n \t array('id' => '11490','state_id' => '744','name' => 'Anshun'),\n \t array('id' => '11491','state_id' => '744','name' => 'Bijie'),\n \t array('id' => '11492','state_id' => '744','name' => 'Caohai'),\n \t array('id' => '11493','state_id' => '744','name' => 'Duyun'),\n \t array('id' => '11494','state_id' => '744','name' => 'Guiyang'),\n \t array('id' => '11495','state_id' => '744','name' => 'Kaili'),\n \t array('id' => '11496','state_id' => '744','name' => 'Liupanshui'),\n \t array('id' => '11497','state_id' => '744','name' => 'Luoyang'),\n \t array('id' => '11498','state_id' => '744','name' => 'Pingzhai'),\n \t array('id' => '11499','state_id' => '744','name' => 'Tongren'),\n \t array('id' => '11500','state_id' => '744','name' => 'Tongzi'),\n \t array('id' => '11501','state_id' => '744','name' => 'Xiaoweizhai'),\n \t array('id' => '11502','state_id' => '744','name' => 'Xingyi'),\n \t array('id' => '11503','state_id' => '744','name' => 'Zunyi'),\n \t array('id' => '11504','state_id' => '745','name' => 'Chengmai'),\n \t array('id' => '11505','state_id' => '745','name' => 'Dingan'),\n \t array('id' => '11506','state_id' => '745','name' => 'Haikou'),\n \t array('id' => '11507','state_id' => '745','name' => 'Lingao'),\n \t array('id' => '11508','state_id' => '745','name' => 'Qiongshan'),\n \t array('id' => '11509','state_id' => '745','name' => 'Sansha '),\n \t array('id' => '11510','state_id' => '745','name' => 'Sanya'),\n \t array('id' => '11511','state_id' => '745','name' => 'Wanning'),\n \t array('id' => '11512','state_id' => '746','name' => 'Anping'),\n \t array('id' => '11513','state_id' => '746','name' => 'Baoding'),\n \t array('id' => '11514','state_id' => '746','name' => 'Botou'),\n \t array('id' => '11515','state_id' => '746','name' => 'Cangzhou'),\n \t array('id' => '11516','state_id' => '746','name' => 'Changli'),\n \t array('id' => '11517','state_id' => '746','name' => 'Chengde'),\n \t array('id' => '11518','state_id' => '746','name' => 'Dingzhou'),\n \t array('id' => '11519','state_id' => '746','name' => 'Fengfeng'),\n \t array('id' => '11520','state_id' => '746','name' => 'Fengrun'),\n \t array('id' => '11521','state_id' => '746','name' => 'Guye'),\n \t array('id' => '11522','state_id' => '746','name' => 'Handan'),\n \t array('id' => '11523','state_id' => '746','name' => 'Hebei'),\n \t array('id' => '11524','state_id' => '746','name' => 'Hecun'),\n \t array('id' => '11525','state_id' => '746','name' => 'Hejian'),\n \t array('id' => '11526','state_id' => '746','name' => 'Hengshui'),\n \t array('id' => '11527','state_id' => '746','name' => 'Huanghua'),\n \t array('id' => '11528','state_id' => '746','name' => 'Jingxingkuang'),\n \t array('id' => '11529','state_id' => '746','name' => 'Jinzhou'),\n \t array('id' => '11530','state_id' => '746','name' => 'Langfang'),\n \t array('id' => '11531','state_id' => '746','name' => 'Lianzhou'),\n \t array('id' => '11532','state_id' => '746','name' => 'Linshui'),\n \t array('id' => '11533','state_id' => '746','name' => 'Linxi'),\n \t array('id' => '11534','state_id' => '746','name' => 'Longyao County'),\n \t array('id' => '11535','state_id' => '746','name' => 'Nangong'),\n \t array('id' => '11536','state_id' => '746','name' => 'Pengcheng'),\n \t array('id' => '11537','state_id' => '746','name' => 'Qinhuangdao'),\n \t array('id' => '11538','state_id' => '746','name' => 'Renqiu'),\n \t array('id' => '11539','state_id' => '746','name' => 'Shahe'),\n \t array('id' => '11540','state_id' => '746','name' => 'Shijiazhuang'),\n \t array('id' => '11541','state_id' => '746','name' => 'Tangjiazhuang'),\n \t array('id' => '11542','state_id' => '746','name' => 'Tangshan'),\n \t array('id' => '11543','state_id' => '746','name' => 'Wuan'),\n \t array('id' => '11544','state_id' => '746','name' => 'Xian County'),\n \t array('id' => '11545','state_id' => '746','name' => 'Xingtai'),\n \t array('id' => '11546','state_id' => '746','name' => 'Xinji'),\n \t array('id' => '11547','state_id' => '746','name' => 'Xinle'),\n \t array('id' => '11548','state_id' => '746','name' => 'Xuanhua'),\n \t array('id' => '11549','state_id' => '746','name' => 'Zhangjiakou'),\n \t array('id' => '11550','state_id' => '746','name' => 'Zhaogezhuang'),\n \t array('id' => '11551','state_id' => '746','name' => 'Zhuozhou'),\n \t array('id' => '11552','state_id' => '747','name' => 'Acheng'),\n \t array('id' => '11553','state_id' => '747','name' => 'Anda'),\n \t array('id' => '11554','state_id' => '747','name' => 'Angangxi'),\n \t array('id' => '11555','state_id' => '747','name' => 'Baiquan'),\n \t array('id' => '11556','state_id' => '747','name' => 'Bamiantong'),\n \t array('id' => '11557','state_id' => '747','name' => 'Baoqing'),\n \t array('id' => '11558','state_id' => '747','name' => 'Baoshan'),\n \t array('id' => '11559','state_id' => '747','name' => 'Bayan'),\n \t array('id' => '11560','state_id' => '747','name' => 'Beian'),\n \t array('id' => '11561','state_id' => '747','name' => 'Binzhou'),\n \t array('id' => '11562','state_id' => '747','name' => 'Boli'),\n \t array('id' => '11563','state_id' => '747','name' => 'Chaihe'),\n \t array('id' => '11564','state_id' => '747','name' => 'Chengzihe'),\n \t array('id' => '11565','state_id' => '747','name' => 'Cuiluan'),\n \t array('id' => '11566','state_id' => '747','name' => 'Daqing'),\n \t array('id' => '11567','state_id' => '747','name' => 'Didao'),\n \t array('id' => '11568','state_id' => '747','name' => 'Dongning'),\n \t array('id' => '11569','state_id' => '747','name' => 'Fujin'),\n \t array('id' => '11570','state_id' => '747','name' => 'Fuli'),\n \t array('id' => '11571','state_id' => '747','name' => 'Fulitun'),\n \t array('id' => '11572','state_id' => '747','name' => 'Fuyu'),\n \t array('id' => '11573','state_id' => '747','name' => 'Gannan'),\n \t array('id' => '11574','state_id' => '747','name' => 'Hailin'),\n \t array('id' => '11575','state_id' => '747','name' => 'Hailun'),\n \t array('id' => '11576','state_id' => '747','name' => 'Harbin'),\n \t array('id' => '11577','state_id' => '747','name' => 'Hegang'),\n \t array('id' => '11578','state_id' => '747','name' => 'Heihe'),\n \t array('id' => '11579','state_id' => '747','name' => 'Hengshan'),\n \t array('id' => '11580','state_id' => '747','name' => 'Honggang'),\n \t array('id' => '11581','state_id' => '747','name' => 'Huanan'),\n \t array('id' => '11582','state_id' => '747','name' => 'Hulan'),\n \t array('id' => '11583','state_id' => '747','name' => 'Hulan Ergi'),\n \t array('id' => '11584','state_id' => '747','name' => 'Jiamusi'),\n \t array('id' => '11585','state_id' => '747','name' => 'Jidong'),\n \t array('id' => '11586','state_id' => '747','name' => 'Jixi'),\n \t array('id' => '11587','state_id' => '747','name' => 'Keshan'),\n \t array('id' => '11588','state_id' => '747','name' => 'Langxiang'),\n \t array('id' => '11589','state_id' => '747','name' => 'Lanxi'),\n \t array('id' => '11590','state_id' => '747','name' => 'Lingdong'),\n \t array('id' => '11591','state_id' => '747','name' => 'Linkou'),\n \t array('id' => '11592','state_id' => '747','name' => 'Lishu'),\n \t array('id' => '11593','state_id' => '747','name' => 'Longfeng'),\n \t array('id' => '11594','state_id' => '747','name' => 'Longjiang'),\n \t array('id' => '11595','state_id' => '747','name' => 'Mingshui'),\n \t array('id' => '11596','state_id' => '747','name' => 'Mishan'),\n \t array('id' => '11597','state_id' => '747','name' => 'Mudanjiang'),\n \t array('id' => '11598','state_id' => '747','name' => 'Nancha'),\n \t array('id' => '11599','state_id' => '747','name' => 'Nehe'),\n \t array('id' => '11600','state_id' => '747','name' => 'Nenjiang'),\n \t array('id' => '11601','state_id' => '747','name' => 'Nianzishan'),\n \t array('id' => '11602','state_id' => '747','name' => 'Ningan'),\n \t array('id' => '11603','state_id' => '747','name' => 'Qingan'),\n \t array('id' => '11604','state_id' => '747','name' => 'Qinggang'),\n \t array('id' => '11605','state_id' => '747','name' => 'Qiqihar'),\n \t array('id' => '11606','state_id' => '747','name' => 'Qitaihe'),\n \t array('id' => '11607','state_id' => '747','name' => 'Ranghulu'),\n \t array('id' => '11608','state_id' => '747','name' => 'Saertu'),\n \t array('id' => '11609','state_id' => '747','name' => 'Shangzhi'),\n \t array('id' => '11610','state_id' => '747','name' => 'Shanhetun'),\n \t array('id' => '11611','state_id' => '747','name' => 'Shuangcheng'),\n \t array('id' => '11612','state_id' => '747','name' => 'Shuangyashan'),\n \t array('id' => '11613','state_id' => '747','name' => 'Sifantan'),\n \t array('id' => '11614','state_id' => '747','name' => 'Suifenhe'),\n \t array('id' => '11615','state_id' => '747','name' => 'Suihua'),\n \t array('id' => '11616','state_id' => '747','name' => 'Suileng'),\n \t array('id' => '11617','state_id' => '747','name' => 'Tahe'),\n \t array('id' => '11618','state_id' => '747','name' => 'Taikang'),\n \t array('id' => '11619','state_id' => '747','name' => 'Tailai'),\n \t array('id' => '11620','state_id' => '747','name' => 'Tieli'),\n \t array('id' => '11621','state_id' => '747','name' => 'Wangkui'),\n \t array('id' => '11622','state_id' => '747','name' => 'Weihe'),\n \t array('id' => '11623','state_id' => '747','name' => 'Wuchang'),\n \t array('id' => '11624','state_id' => '747','name' => 'Xinglongzhen'),\n \t array('id' => '11625','state_id' => '747','name' => 'Xinqing'),\n \t array('id' => '11626','state_id' => '747','name' => 'Yian'),\n \t array('id' => '11627','state_id' => '747','name' => 'Yichun'),\n \t array('id' => '11628','state_id' => '747','name' => 'Yilan'),\n \t array('id' => '11629','state_id' => '747','name' => 'Youhao'),\n \t array('id' => '11630','state_id' => '747','name' => 'Zhaodong'),\n \t array('id' => '11631','state_id' => '747','name' => 'Zhaoyuan'),\n \t array('id' => '11632','state_id' => '747','name' => 'Zhaozhou'),\n \t array('id' => '11633','state_id' => '748','name' => 'Anyang'),\n \t array('id' => '11634','state_id' => '748','name' => 'Changying'),\n \t array('id' => '11635','state_id' => '748','name' => 'Dancheng'),\n \t array('id' => '11636','state_id' => '748','name' => 'Daokou'),\n \t array('id' => '11637','state_id' => '748','name' => 'Dengzhou'),\n \t array('id' => '11638','state_id' => '748','name' => 'Gongyi'),\n \t array('id' => '11639','state_id' => '748','name' => 'Gushi'),\n \t array('id' => '11640','state_id' => '748','name' => 'Hebi'),\n \t array('id' => '11641','state_id' => '748','name' => 'Huaidian'),\n \t array('id' => '11642','state_id' => '748','name' => 'Huangchuan'),\n \t array('id' => '11643','state_id' => '748','name' => 'Huangzhai'),\n \t array('id' => '11644','state_id' => '748','name' => 'Jiaozuo'),\n \t array('id' => '11645','state_id' => '748','name' => 'Jishui'),\n \t array('id' => '11646','state_id' => '748','name' => 'Kaifeng'),\n \t array('id' => '11647','state_id' => '748','name' => 'Liupen'),\n \t array('id' => '11648','state_id' => '748','name' => 'Luohe'),\n \t array('id' => '11649','state_id' => '748','name' => 'Luoyang'),\n \t array('id' => '11650','state_id' => '748','name' => 'Luyang'),\n \t array('id' => '11651','state_id' => '748','name' => 'Mengzhou'),\n \t array('id' => '11652','state_id' => '748','name' => 'Minggang'),\n \t array('id' => '11653','state_id' => '748','name' => 'Nandun'),\n \t array('id' => '11654','state_id' => '748','name' => 'Nanyang'),\n \t array('id' => '11655','state_id' => '748','name' => 'Pingdingshan'),\n \t array('id' => '11656','state_id' => '748','name' => 'Puyang'),\n \t array('id' => '11657','state_id' => '748','name' => 'Sanmenxia'),\n \t array('id' => '11658','state_id' => '748','name' => 'Shangqiu'),\n \t array('id' => '11659','state_id' => '748','name' => 'Tanghe'),\n \t array('id' => '11660','state_id' => '748','name' => 'Xiaoyi'),\n \t array('id' => '11661','state_id' => '748','name' => 'Xihua'),\n \t array('id' => '11662','state_id' => '748','name' => 'Xinxiang'),\n \t array('id' => '11663','state_id' => '748','name' => 'Xinyang'),\n \t array('id' => '11664','state_id' => '748','name' => 'Xinye'),\n \t array('id' => '11665','state_id' => '748','name' => 'Xixiang'),\n \t array('id' => '11666','state_id' => '748','name' => 'Xuanwu'),\n \t array('id' => '11667','state_id' => '748','name' => 'Xuchang'),\n \t array('id' => '11668','state_id' => '748','name' => 'Yigou'),\n \t array('id' => '11669','state_id' => '748','name' => 'Yima'),\n \t array('id' => '11670','state_id' => '748','name' => 'Yinzhuang'),\n \t array('id' => '11671','state_id' => '748','name' => 'Yunyang'),\n \t array('id' => '11672','state_id' => '748','name' => 'Yuzhou'),\n \t array('id' => '11673','state_id' => '748','name' => 'Zhecheng'),\n \t array('id' => '11674','state_id' => '748','name' => 'Zhengzhou'),\n \t array('id' => '11675','state_id' => '748','name' => 'Zhenping'),\n \t array('id' => '11676','state_id' => '748','name' => 'Zhoukou'),\n \t array('id' => '11677','state_id' => '748','name' => 'Zhumadian'),\n \t array('id' => '11678','state_id' => '749','name' => 'Anlu'),\n \t array('id' => '11679','state_id' => '749','name' => 'Baisha'),\n \t array('id' => '11680','state_id' => '749','name' => 'Buhe'),\n \t array('id' => '11681','state_id' => '749','name' => 'Caidian'),\n \t array('id' => '11682','state_id' => '749','name' => 'Caohe'),\n \t array('id' => '11683','state_id' => '749','name' => 'Danjiangkou'),\n \t array('id' => '11684','state_id' => '749','name' => 'Daye'),\n \t array('id' => '11685','state_id' => '749','name' => 'Duobao'),\n \t array('id' => '11686','state_id' => '749','name' => 'Enshi'),\n \t array('id' => '11687','state_id' => '749','name' => 'Ezhou'),\n \t array('id' => '11688','state_id' => '749','name' => 'Fengkou'),\n \t array('id' => '11689','state_id' => '749','name' => 'Guangshui'),\n \t array('id' => '11690','state_id' => '749','name' => 'Gucheng'),\n \t array('id' => '11691','state_id' => '749','name' => 'Hanchuan'),\n \t array('id' => '11692','state_id' => '749','name' => 'Hongan'),\n \t array('id' => '11693','state_id' => '749','name' => 'Honghu'),\n \t array('id' => '11694','state_id' => '749','name' => 'Huangmei'),\n \t array('id' => '11695','state_id' => '749','name' => 'Huangpi'),\n \t array('id' => '11696','state_id' => '749','name' => 'Huangshi'),\n \t array('id' => '11697','state_id' => '749','name' => 'Huangzhou'),\n \t array('id' => '11698','state_id' => '749','name' => 'Jingmen'),\n \t array('id' => '11699','state_id' => '749','name' => 'Jingzhou'),\n \t array('id' => '11700','state_id' => '749','name' => 'Laohekou'),\n \t array('id' => '11701','state_id' => '749','name' => 'Lichuan'),\n \t array('id' => '11702','state_id' => '749','name' => 'Macheng'),\n \t array('id' => '11703','state_id' => '749','name' => 'Nanhai'),\n \t array('id' => '11704','state_id' => '749','name' => 'Nanzhang'),\n \t array('id' => '11705','state_id' => '749','name' => 'Puqi'),\n \t array('id' => '11706','state_id' => '749','name' => 'Qianjiang'),\n \t array('id' => '11707','state_id' => '749','name' => 'Qingquan'),\n \t array('id' => '11708','state_id' => '749','name' => 'Qixingtai'),\n \t array('id' => '11709','state_id' => '749','name' => 'Rongcheng'),\n \t array('id' => '11710','state_id' => '749','name' => 'Shashi'),\n \t array('id' => '11711','state_id' => '749','name' => 'Shishou'),\n \t array('id' => '11712','state_id' => '749','name' => 'Shiyan'),\n \t array('id' => '11713','state_id' => '749','name' => 'Suizhou'),\n \t array('id' => '11714','state_id' => '749','name' => 'Tianmen'),\n \t array('id' => '11715','state_id' => '749','name' => 'Tongcheng'),\n \t array('id' => '11716','state_id' => '749','name' => 'Wuhan'),\n \t array('id' => '11717','state_id' => '749','name' => 'Wuxue'),\n \t array('id' => '11718','state_id' => '749','name' => 'Xiangfan'),\n \t array('id' => '11719','state_id' => '749','name' => 'Xianning'),\n \t array('id' => '11720','state_id' => '749','name' => 'Xiantao'),\n \t array('id' => '11721','state_id' => '749','name' => 'Xiaogan'),\n \t array('id' => '11722','state_id' => '749','name' => 'Xiaoxita'),\n \t array('id' => '11723','state_id' => '749','name' => 'Xiaxindian'),\n \t array('id' => '11724','state_id' => '749','name' => 'Xihe'),\n \t array('id' => '11725','state_id' => '749','name' => 'Xinpu'),\n \t array('id' => '11726','state_id' => '749','name' => 'Xinshi'),\n \t array('id' => '11727','state_id' => '749','name' => 'Xinzhou'),\n \t array('id' => '11728','state_id' => '749','name' => 'Yichang'),\n \t array('id' => '11729','state_id' => '749','name' => 'Yicheng'),\n \t array('id' => '11730','state_id' => '749','name' => 'Yingcheng'),\n \t array('id' => '11731','state_id' => '749','name' => 'Yingzhong'),\n \t array('id' => '11732','state_id' => '749','name' => 'Zaoyang'),\n \t array('id' => '11733','state_id' => '749','name' => 'Zhengchang'),\n \t array('id' => '11734','state_id' => '749','name' => 'Zhicheng'),\n \t array('id' => '11735','state_id' => '749','name' => 'Zhifang'),\n \t array('id' => '11736','state_id' => '749','name' => 'Zhongxiang'),\n \t array('id' => '11737','state_id' => '750','name' => 'Anjiang'),\n \t array('id' => '11738','state_id' => '750','name' => 'Anxiang'),\n \t array('id' => '11739','state_id' => '750','name' => 'Changde'),\n \t array('id' => '11740','state_id' => '750','name' => 'Changsha'),\n \t array('id' => '11741','state_id' => '750','name' => 'Chenzhou'),\n \t array('id' => '11742','state_id' => '750','name' => 'Dayong'),\n \t array('id' => '11743','state_id' => '750','name' => 'Hengyang'),\n \t array('id' => '11744','state_id' => '750','name' => 'Hongjiang'),\n \t array('id' => '11745','state_id' => '750','name' => 'Huaihua'),\n \t array('id' => '11746','state_id' => '750','name' => 'Jinshi'),\n \t array('id' => '11747','state_id' => '750','name' => 'Jishou'),\n \t array('id' => '11748','state_id' => '750','name' => 'Leiyang'),\n \t array('id' => '11749','state_id' => '750','name' => 'Lengshuijiang'),\n \t array('id' => '11750','state_id' => '750','name' => 'Lengshuitan'),\n \t array('id' => '11751','state_id' => '750','name' => 'Lianyuan'),\n \t array('id' => '11752','state_id' => '750','name' => 'Liling'),\n \t array('id' => '11753','state_id' => '750','name' => 'Liuyang'),\n \t array('id' => '11754','state_id' => '750','name' => 'Loudi'),\n \t array('id' => '11755','state_id' => '750','name' => 'Matian'),\n \t array('id' => '11756','state_id' => '750','name' => 'Nanzhou'),\n \t array('id' => '11757','state_id' => '750','name' => 'Ningxiang'),\n \t array('id' => '11758','state_id' => '750','name' => 'Qidong'),\n \t array('id' => '11759','state_id' => '750','name' => 'Qiyang'),\n \t array('id' => '11760','state_id' => '750','name' => 'Shaoyang'),\n \t array('id' => '11761','state_id' => '750','name' => 'Xiangtan'),\n \t array('id' => '11762','state_id' => '750','name' => 'Xiangxiang'),\n \t array('id' => '11763','state_id' => '750','name' => 'Xiangyin'),\n \t array('id' => '11764','state_id' => '750','name' => 'Xinhua'),\n \t array('id' => '11765','state_id' => '750','name' => 'Yiyang'),\n \t array('id' => '11766','state_id' => '750','name' => 'Yongfeng'),\n \t array('id' => '11767','state_id' => '750','name' => 'Yongzhou'),\n \t array('id' => '11768','state_id' => '750','name' => 'Yuanjiang'),\n \t array('id' => '11769','state_id' => '750','name' => 'Yueyang'),\n \t array('id' => '11770','state_id' => '750','name' => 'Zhuzhou'),\n \t array('id' => '11771','state_id' => '751','name' => 'Baoying'),\n \t array('id' => '11772','state_id' => '751','name' => 'Changzhou'),\n \t array('id' => '11773','state_id' => '751','name' => 'Dachang'),\n \t array('id' => '11774','state_id' => '751','name' => 'Dafeng'),\n \t array('id' => '11775','state_id' => '751','name' => 'Danyang'),\n \t array('id' => '11776','state_id' => '751','name' => 'Dingshu'),\n \t array('id' => '11777','state_id' => '751','name' => 'Dongkan'),\n \t array('id' => '11778','state_id' => '751','name' => 'Dongtai'),\n \t array('id' => '11779','state_id' => '751','name' => 'Fengxian'),\n \t array('id' => '11780','state_id' => '751','name' => 'Gaogou'),\n \t array('id' => '11781','state_id' => '751','name' => 'Gaoyou'),\n \t array('id' => '11782','state_id' => '751','name' => 'Guiren'),\n \t array('id' => '11783','state_id' => '751','name' => 'Haian'),\n \t array('id' => '11784','state_id' => '751','name' => 'Haizhou'),\n \t array('id' => '11785','state_id' => '751','name' => 'Hede'),\n \t array('id' => '11786','state_id' => '751','name' => 'Huaicheng'),\n \t array('id' => '11787','state_id' => '751','name' => 'Huaiyin'),\n \t array('id' => '11788','state_id' => '751','name' => 'Huilong'),\n \t array('id' => '11789','state_id' => '751','name' => 'Hutang'),\n \t array('id' => '11790','state_id' => '751','name' => 'Jiangdu'),\n \t array('id' => '11791','state_id' => '751','name' => 'Jiangyan'),\n \t array('id' => '11792','state_id' => '751','name' => 'Jiangyin'),\n \t array('id' => '11793','state_id' => '751','name' => 'Jiangyuan'),\n \t array('id' => '11794','state_id' => '751','name' => 'Jianhu'),\n \t array('id' => '11795','state_id' => '751','name' => 'Jingcheng'),\n \t array('id' => '11796','state_id' => '751','name' => 'Jinsha'),\n \t array('id' => '11797','state_id' => '751','name' => 'Jintan'),\n \t array('id' => '11798','state_id' => '751','name' => 'Juegang'),\n \t array('id' => '11799','state_id' => '751','name' => 'Jurong'),\n \t array('id' => '11800','state_id' => '751','name' => 'Kunshan'),\n \t array('id' => '11801','state_id' => '751','name' => 'Lianyungang'),\n \t array('id' => '11802','state_id' => '751','name' => 'Liucheng'),\n \t array('id' => '11803','state_id' => '751','name' => 'Liyang'),\n \t array('id' => '11804','state_id' => '751','name' => 'Luodu'),\n \t array('id' => '11805','state_id' => '751','name' => 'Mudu'),\n \t array('id' => '11806','state_id' => '751','name' => 'Nanjing'),\n \t array('id' => '11807','state_id' => '751','name' => 'Nantong'),\n \t array('id' => '11808','state_id' => '751','name' => 'Pecheng'),\n \t array('id' => '11809','state_id' => '751','name' => 'Pukou'),\n \t array('id' => '11810','state_id' => '751','name' => 'Qidong'),\n \t array('id' => '11811','state_id' => '751','name' => 'Qinnan'),\n \t array('id' => '11812','state_id' => '751','name' => 'Qixia'),\n \t array('id' => '11813','state_id' => '751','name' => 'Rucheng'),\n \t array('id' => '11814','state_id' => '751','name' => 'Songling'),\n \t array('id' => '11815','state_id' => '751','name' => 'Sucheng'),\n \t array('id' => '11816','state_id' => '751','name' => 'Suicheng'),\n \t array('id' => '11817','state_id' => '751','name' => 'Suqian'),\n \t array('id' => '11818','state_id' => '751','name' => 'Suzhou'),\n \t array('id' => '11819','state_id' => '751','name' => 'Taicang'),\n \t array('id' => '11820','state_id' => '751','name' => 'Taixing'),\n \t array('id' => '11821','state_id' => '751','name' => 'Wujiang'),\n \t array('id' => '11822','state_id' => '751','name' => 'Wuxi'),\n \t array('id' => '11823','state_id' => '751','name' => 'Xiaolingwei'),\n \t array('id' => '11824','state_id' => '751','name' => 'Xiaoshi'),\n \t array('id' => '11825','state_id' => '751','name' => 'Xinan'),\n \t array('id' => '11826','state_id' => '751','name' => 'Xinpu'),\n \t array('id' => '11827','state_id' => '751','name' => 'Xuzhou'),\n \t array('id' => '11828','state_id' => '751','name' => 'Yancheng'),\n \t array('id' => '11829','state_id' => '751','name' => 'Yangshe'),\n \t array('id' => '11830','state_id' => '751','name' => 'Yangzhou'),\n \t array('id' => '11831','state_id' => '751','name' => 'Yizheng'),\n \t array('id' => '11832','state_id' => '751','name' => 'Yunhe'),\n \t array('id' => '11833','state_id' => '751','name' => 'Yunyang'),\n \t array('id' => '11834','state_id' => '751','name' => 'Yushan'),\n \t array('id' => '11835','state_id' => '751','name' => 'Zhangjiagang'),\n \t array('id' => '11836','state_id' => '751','name' => 'Zhangjiangang'),\n \t array('id' => '11837','state_id' => '751','name' => 'Zhaoyang'),\n \t array('id' => '11838','state_id' => '751','name' => 'Zhenjiang'),\n \t array('id' => '11839','state_id' => '751','name' => 'Zhongxing'),\n \t array('id' => '11909','state_id' => '753','name' => 'Fengxin'),\n \t array('id' => '11910','state_id' => '753','name' => 'Fenyi'),\n \t array('id' => '11911','state_id' => '753','name' => 'Ganzhou'),\n \t array('id' => '11912','state_id' => '753','name' => 'Jian'),\n \t array('id' => '11913','state_id' => '753','name' => 'Jiangguang'),\n \t array('id' => '11914','state_id' => '753','name' => 'Jingdezhen'),\n \t array('id' => '11915','state_id' => '753','name' => 'Jiujiang'),\n \t array('id' => '11916','state_id' => '753','name' => 'Leping'),\n \t array('id' => '11917','state_id' => '753','name' => 'Linchuan'),\n \t array('id' => '11918','state_id' => '753','name' => 'Nanchang'),\n \t array('id' => '11919','state_id' => '753','name' => 'Pingxiang'),\n \t array('id' => '11920','state_id' => '753','name' => 'Poyang'),\n \t array('id' => '11921','state_id' => '753','name' => 'Shangrao'),\n \t array('id' => '11922','state_id' => '753','name' => 'Xiangdong'),\n \t array('id' => '11923','state_id' => '753','name' => 'Xingan'),\n \t array('id' => '11924','state_id' => '753','name' => 'Xinjian'),\n \t array('id' => '11925','state_id' => '753','name' => 'Xinyu'),\n \t array('id' => '11926','state_id' => '753','name' => 'Xiongshi'),\n \t array('id' => '11927','state_id' => '753','name' => 'Yichun'),\n \t array('id' => '11928','state_id' => '753','name' => 'Yingtai'),\n \t array('id' => '11929','state_id' => '753','name' => 'Yingtan'),\n \t array('id' => '11930','state_id' => '753','name' => 'Zhangshui'),\n \t array('id' => '11931','state_id' => '754','name' => 'Badaojiang'),\n \t array('id' => '11932','state_id' => '754','name' => 'Baicheng'),\n \t array('id' => '11933','state_id' => '754','name' => 'Baishishan'),\n \t array('id' => '11934','state_id' => '754','name' => 'Changchun'),\n \t array('id' => '11935','state_id' => '754','name' => 'Changling'),\n \t array('id' => '11936','state_id' => '754','name' => 'Chaoyang'),\n \t array('id' => '11937','state_id' => '754','name' => 'Daan'),\n \t array('id' => '11938','state_id' => '754','name' => 'Dashitou'),\n \t array('id' => '11939','state_id' => '754','name' => 'Dehui'),\n \t array('id' => '11940','state_id' => '754','name' => 'Dongchang'),\n \t array('id' => '11941','state_id' => '754','name' => 'Dongfeng'),\n \t array('id' => '11942','state_id' => '754','name' => 'Dunhua'),\n \t array('id' => '11943','state_id' => '754','name' => 'Erdaojiang'),\n \t array('id' => '11944','state_id' => '754','name' => 'Fuyu'),\n \t array('id' => '11945','state_id' => '754','name' => 'Gongzhuling'),\n \t array('id' => '11946','state_id' => '754','name' => 'Helong'),\n \t array('id' => '11947','state_id' => '754','name' => 'Hongmei'),\n \t array('id' => '11948','state_id' => '754','name' => 'Huadian'),\n \t array('id' => '11949','state_id' => '754','name' => 'Huangnihe'),\n \t array('id' => '11950','state_id' => '754','name' => 'Huinan'),\n \t array('id' => '11951','state_id' => '754','name' => 'Hunchun'),\n \t array('id' => '11952','state_id' => '754','name' => 'Jiaohe'),\n \t array('id' => '11953','state_id' => '754','name' => 'Jilin'),\n \t array('id' => '11954','state_id' => '754','name' => 'Jishu'),\n \t array('id' => '11955','state_id' => '754','name' => 'Jiutai'),\n \t array('id' => '11956','state_id' => '754','name' => 'Kaitong'),\n \t array('id' => '11957','state_id' => '754','name' => 'Kouqian'),\n \t array('id' => '11958','state_id' => '754','name' => 'Liaoyuan'),\n \t array('id' => '11959','state_id' => '754','name' => 'Linjiang'),\n \t array('id' => '11960','state_id' => '754','name' => 'Lishu'),\n \t array('id' => '11961','state_id' => '754','name' => 'Liuhe'),\n \t array('id' => '11962','state_id' => '754','name' => 'Longjing'),\n \t array('id' => '11963','state_id' => '754','name' => 'Meihekou'),\n \t array('id' => '11964','state_id' => '754','name' => 'Mingyue'),\n \t array('id' => '11965','state_id' => '754','name' => 'Nongan'),\n \t array('id' => '11966','state_id' => '754','name' => 'Panshi'),\n \t array('id' => '11967','state_id' => '754','name' => 'Pizhou'),\n \t array('id' => '11968','state_id' => '754','name' => 'Qianan'),\n \t array('id' => '11969','state_id' => '754','name' => 'Qianguo'),\n \t array('id' => '11970','state_id' => '754','name' => 'Sanchazi'),\n \t array('id' => '11971','state_id' => '754','name' => 'Shuangyang'),\n \t array('id' => '11972','state_id' => '754','name' => 'Shulan'),\n \t array('id' => '11973','state_id' => '754','name' => 'Siping'),\n \t array('id' => '11974','state_id' => '754','name' => 'Songjianghe'),\n \t array('id' => '11975','state_id' => '754','name' => 'Taonan'),\n \t array('id' => '11976','state_id' => '754','name' => 'Tumen'),\n \t array('id' => '11977','state_id' => '754','name' => 'Wangou'),\n \t array('id' => '11978','state_id' => '754','name' => 'Wangqing'),\n \t array('id' => '11979','state_id' => '754','name' => 'Xinglongshan'),\n \t array('id' => '11980','state_id' => '754','name' => 'Yanji'),\n \t array('id' => '11981','state_id' => '754','name' => 'Yantongshan'),\n \t array('id' => '11982','state_id' => '754','name' => 'Yushu'),\n \t array('id' => '11983','state_id' => '754','name' => 'Zhengjiatun'),\n \t array('id' => '11984','state_id' => '754','name' => 'Zhenlai'),\n \t array('id' => '11985','state_id' => '755','name' => 'Anshan'),\n \t array('id' => '11986','state_id' => '755','name' => 'Beipiao'),\n \t array('id' => '11987','state_id' => '755','name' => 'Benxi'),\n \t array('id' => '11988','state_id' => '755','name' => 'Changtu'),\n \t array('id' => '11989','state_id' => '755','name' => 'Chaoyang'),\n \t array('id' => '11990','state_id' => '755','name' => 'Dalian'),\n \t array('id' => '11991','state_id' => '755','name' => 'Dalianwan'),\n \t array('id' => '11992','state_id' => '755','name' => 'Dalinghe'),\n \t array('id' => '11993','state_id' => '755','name' => 'Dandong'),\n \t array('id' => '11994','state_id' => '755','name' => 'Dashiqiao'),\n \t array('id' => '11995','state_id' => '755','name' => 'Dongling'),\n \t array('id' => '11996','state_id' => '755','name' => 'Fengcheng'),\n \t array('id' => '11997','state_id' => '755','name' => 'Fushun'),\n \t array('id' => '11998','state_id' => '755','name' => 'Fuxin'),\n \t array('id' => '11999','state_id' => '755','name' => 'Haicheng'),\n \t array('id' => '12000','state_id' => '755','name' => 'Heishan'),\n \t array('id' => '12001','state_id' => '755','name' => 'Huanren'),\n \t array('id' => '12002','state_id' => '755','name' => 'Huludao'),\n \t array('id' => '12003','state_id' => '755','name' => 'Hushitai'),\n \t array('id' => '12004','state_id' => '755','name' => 'Jinxi'),\n \t array('id' => '12005','state_id' => '755','name' => 'Jinzhou'),\n \t array('id' => '12006','state_id' => '755','name' => 'Jiupu'),\n \t array('id' => '12007','state_id' => '755','name' => 'Kaiyuan'),\n \t array('id' => '12008','state_id' => '755','name' => 'Kuandian'),\n \t array('id' => '12009','state_id' => '755','name' => 'Langtou'),\n \t array('id' => '12010','state_id' => '755','name' => 'Liaoyang'),\n \t array('id' => '12011','state_id' => '755','name' => 'Liaozhong'),\n \t array('id' => '12012','state_id' => '755','name' => 'Lingyuan'),\n \t array('id' => '12013','state_id' => '755','name' => 'Liuerbao'),\n \t array('id' => '12014','state_id' => '755','name' => 'Lushunkou'),\n \t array('id' => '12015','state_id' => '755','name' => 'Nantai'),\n \t array('id' => '12016','state_id' => '755','name' => 'Panjin'),\n \t array('id' => '12017','state_id' => '755','name' => 'Pulandian'),\n \t array('id' => '12018','state_id' => '755','name' => 'Shenyang'),\n \t array('id' => '12019','state_id' => '755','name' => 'Sujiatun'),\n \t array('id' => '12020','state_id' => '755','name' => 'Tieling'),\n \t array('id' => '12021','state_id' => '755','name' => 'Wafangdian'),\n \t array('id' => '12022','state_id' => '755','name' => 'Xiaoshi'),\n \t array('id' => '12023','state_id' => '755','name' => 'Xifeng'),\n \t array('id' => '12024','state_id' => '755','name' => 'Xinchengxi'),\n \t array('id' => '12025','state_id' => '755','name' => 'Xingcheng'),\n \t array('id' => '12026','state_id' => '755','name' => 'Xinmin'),\n \t array('id' => '12027','state_id' => '755','name' => 'Xiongyue'),\n \t array('id' => '12028','state_id' => '755','name' => 'Xiuyan'),\n \t array('id' => '12029','state_id' => '755','name' => 'Yebaishou'),\n \t array('id' => '12030','state_id' => '755','name' => 'Yingkou'),\n \t array('id' => '12031','state_id' => '755','name' => 'Yuhong'),\n \t array('id' => '12032','state_id' => '755','name' => 'Zhuanghe'),\n \t array('id' => '12081','state_id' => '759','name' => 'Qiatou'),\n \t array('id' => '12082','state_id' => '759','name' => 'Xining'),\n \t array('id' => '12083','state_id' => '760','name' => 'Ankang'),\n \t array('id' => '12084','state_id' => '760','name' => 'Baoji'),\n \t array('id' => '12085','state_id' => '760','name' => 'Guozhen'),\n \t array('id' => '12086','state_id' => '760','name' => 'Hancheng'),\n \t array('id' => '12087','state_id' => '760','name' => 'Hanzhong'),\n \t array('id' => '12088','state_id' => '760','name' => 'Lishan'),\n \t array('id' => '12089','state_id' => '760','name' => 'Qili'),\n \t array('id' => '12090','state_id' => '760','name' => 'Tongchuan'),\n \t array('id' => '12091','state_id' => '760','name' => 'Weinan'),\n \t array('id' => '12092','state_id' => '760','name' => 'Xian'),\n \t array('id' => '12093','state_id' => '760','name' => 'Xianyang'),\n \t array('id' => '12094','state_id' => '760','name' => 'Yanan'),\n \t array('id' => '12095','state_id' => '760','name' => 'Yanliang'),\n \t array('id' => '12096','state_id' => '760','name' => 'Yulin'),\n \t array('id' => '12097','state_id' => '760','name' => 'Yuxia'),\n \t array('id' => '12098','state_id' => '761','name' => 'Anqiu'),\n \t array('id' => '12099','state_id' => '761','name' => 'Bianzhuang'),\n \t array('id' => '12100','state_id' => '761','name' => 'Binzhou'),\n \t array('id' => '12101','state_id' => '761','name' => 'Boshan'),\n \t array('id' => '12102','state_id' => '761','name' => 'Boxing County'),\n \t array('id' => '12103','state_id' => '761','name' => 'Caocheng'),\n \t array('id' => '12104','state_id' => '761','name' => 'Changqing'),\n \t array('id' => '12105','state_id' => '761','name' => 'Chengyang'),\n \t array('id' => '12106','state_id' => '761','name' => 'Dengzhou'),\n \t array('id' => '12107','state_id' => '761','name' => 'Dezhou'),\n \t array('id' => '12108','state_id' => '761','name' => 'Dingtao'),\n \t array('id' => '12109','state_id' => '761','name' => 'Dongcun'),\n \t array('id' => '12110','state_id' => '761','name' => 'Dongdu'),\n \t array('id' => '12111','state_id' => '761','name' => 'Donge County'),\n \t array('id' => '12112','state_id' => '761','name' => 'Dongying'),\n \t array('id' => '12113','state_id' => '761','name' => 'Feicheng'),\n \t array('id' => '12114','state_id' => '761','name' => 'Fushan'),\n \t array('id' => '12115','state_id' => '761','name' => 'Gaomi'),\n \t array('id' => '12116','state_id' => '761','name' => 'Haiyang'),\n \t array('id' => '12117','state_id' => '761','name' => 'Hanting'),\n \t array('id' => '12118','state_id' => '761','name' => 'Hekou'),\n \t array('id' => '12119','state_id' => '761','name' => 'Heze'),\n \t array('id' => '12120','state_id' => '761','name' => 'Jiaonan'),\n \t array('id' => '12121','state_id' => '761','name' => 'Jiaozhou'),\n \t array('id' => '12122','state_id' => '761','name' => 'Jiehu'),\n \t array('id' => '12123','state_id' => '761','name' => 'Jimo'),\n \t array('id' => '12124','state_id' => '761','name' => 'Jinan'),\n \t array('id' => '12125','state_id' => '761','name' => 'Jining'),\n \t array('id' => '12126','state_id' => '761','name' => 'Juxian'),\n \t array('id' => '12127','state_id' => '761','name' => 'Juye'),\n \t array('id' => '12128','state_id' => '761','name' => 'Kunlun'),\n \t array('id' => '12129','state_id' => '761','name' => 'Laiwu'),\n \t array('id' => '12130','state_id' => '761','name' => 'Laiyang'),\n \t array('id' => '12131','state_id' => '761','name' => 'Laizhou'),\n \t array('id' => '12132','state_id' => '761','name' => 'Leling'),\n \t array('id' => '12133','state_id' => '761','name' => 'Liaocheng'),\n \t array('id' => '12134','state_id' => '761','name' => 'Licung'),\n \t array('id' => '12135','state_id' => '761','name' => 'Linqing'),\n \t array('id' => '12136','state_id' => '761','name' => 'Linqu'),\n \t array('id' => '12137','state_id' => '761','name' => 'Linshu'),\n \t array('id' => '12138','state_id' => '761','name' => 'Linyi'),\n \t array('id' => '12139','state_id' => '761','name' => 'Longkou'),\n \t array('id' => '12140','state_id' => '761','name' => 'Mengyin'),\n \t array('id' => '12141','state_id' => '761','name' => 'Mingshui'),\n \t array('id' => '12142','state_id' => '761','name' => 'Nanchou'),\n \t array('id' => '12143','state_id' => '761','name' => 'Nanding'),\n \t array('id' => '12144','state_id' => '761','name' => 'Nanma'),\n \t array('id' => '12145','state_id' => '761','name' => 'Ninghai'),\n \t array('id' => '12146','state_id' => '761','name' => 'Ningyang'),\n \t array('id' => '12147','state_id' => '761','name' => 'Pingdu'),\n \t array('id' => '12148','state_id' => '761','name' => 'Pingyi'),\n \t array('id' => '12149','state_id' => '761','name' => 'Pingyin'),\n \t array('id' => '12150','state_id' => '761','name' => 'Qingdao'),\n \t array('id' => '12151','state_id' => '761','name' => 'Qingzhou'),\n \t array('id' => '12152','state_id' => '761','name' => 'Qixia'),\n \t array('id' => '12153','state_id' => '761','name' => 'Qufu'),\n \t array('id' => '12154','state_id' => '761','name' => 'Rizhao'),\n \t array('id' => '12155','state_id' => '761','name' => 'Rongcheng'),\n \t array('id' => '12156','state_id' => '761','name' => 'Shancheng'),\n \t array('id' => '12157','state_id' => '761','name' => 'Shanting'),\n \t array('id' => '12158','state_id' => '761','name' => 'Shengzhuang'),\n \t array('id' => '12159','state_id' => '761','name' => 'Shenxian'),\n \t array('id' => '12160','state_id' => '761','name' => 'Shizilu'),\n \t array('id' => '12161','state_id' => '761','name' => 'Shouguang'),\n \t array('id' => '12162','state_id' => '761','name' => 'Shuiji'),\n \t array('id' => '12163','state_id' => '761','name' => 'Sishui'),\n \t array('id' => '12164','state_id' => '761','name' => 'Suozhen'),\n \t array('id' => '12165','state_id' => '761','name' => 'Taian'),\n \t array('id' => '12166','state_id' => '761','name' => 'Tancheng'),\n \t array('id' => '12167','state_id' => '761','name' => 'Taozhuang'),\n \t array('id' => '12168','state_id' => '761','name' => 'Tengzhou'),\n \t array('id' => '12169','state_id' => '761','name' => 'Weifang'),\n \t array('id' => '12170','state_id' => '761','name' => 'Weihai'),\n \t array('id' => '12171','state_id' => '761','name' => 'Wencheng'),\n \t array('id' => '12172','state_id' => '761','name' => 'Wendeng'),\n \t array('id' => '12173','state_id' => '761','name' => 'Wenshang'),\n \t array('id' => '12174','state_id' => '761','name' => 'Wudi'),\n \t array('id' => '12175','state_id' => '761','name' => 'Xiazhen'),\n \t array('id' => '12176','state_id' => '761','name' => 'Xincheng'),\n \t array('id' => '12177','state_id' => '761','name' => 'Xindian'),\n \t array('id' => '12178','state_id' => '761','name' => 'Xintai'),\n \t array('id' => '12179','state_id' => '761','name' => 'Yanggu'),\n \t array('id' => '12180','state_id' => '761','name' => 'Yangshan'),\n \t array('id' => '12181','state_id' => '761','name' => 'Yantai'),\n \t array('id' => '12182','state_id' => '761','name' => 'Yanzhou'),\n \t array('id' => '12183','state_id' => '761','name' => 'Yatou'),\n \t array('id' => '12184','state_id' => '761','name' => 'Yidu'),\n \t array('id' => '12185','state_id' => '761','name' => 'Yishui'),\n \t array('id' => '12186','state_id' => '761','name' => 'Yucheng'),\n \t array('id' => '12187','state_id' => '761','name' => 'Yuncheng'),\n \t array('id' => '12188','state_id' => '761','name' => 'Zaozhuang'),\n \t array('id' => '12189','state_id' => '761','name' => 'Zhangdian'),\n \t array('id' => '12190','state_id' => '761','name' => 'Zhangjiawa'),\n \t array('id' => '12191','state_id' => '761','name' => 'Zhangqiu'),\n \t array('id' => '12192','state_id' => '761','name' => 'Zhaocheng'),\n \t array('id' => '12193','state_id' => '761','name' => 'Zhoucheng'),\n \t array('id' => '12194','state_id' => '761','name' => 'Zhoucun'),\n \t array('id' => '12195','state_id' => '761','name' => 'Zhucheng'),\n \t array('id' => '12196','state_id' => '761','name' => 'Zhuwang'),\n \t array('id' => '12197','state_id' => '761','name' => 'Zicheng'),\n \t array('id' => '12198','state_id' => '761','name' => 'Zouping'),\n \t array('id' => '12199','state_id' => '761','name' => 'Zouxian'),\n \t array('id' => '12302','state_id' => '763','name' => 'Jiading'),\n \t array('id' => '12303','state_id' => '763','name' => 'Minhang'),\n \t array('id' => '12304','state_id' => '763','name' => 'Shanghai'),\n \t array('id' => '12305','state_id' => '763','name' => 'Songjiang'),\n \t array('id' => '12306','state_id' => '763','name' => 'Trencin'),\n \t array('id' => '12307','state_id' => '764','name' => 'Changzhi'),\n \t array('id' => '12308','state_id' => '764','name' => 'Datong'),\n \t array('id' => '12309','state_id' => '764','name' => 'Houma'),\n \t array('id' => '12310','state_id' => '764','name' => 'Jiexiu'),\n \t array('id' => '12311','state_id' => '764','name' => 'Jincheng'),\n \t array('id' => '12312','state_id' => '764','name' => 'Linfen'),\n \t array('id' => '12313','state_id' => '764','name' => 'Taiyuan'),\n \t array('id' => '12314','state_id' => '764','name' => 'Xian'),\n \t array('id' => '12315','state_id' => '764','name' => 'Xinzhi'),\n \t array('id' => '12316','state_id' => '764','name' => 'Xinzhou'),\n \t array('id' => '12317','state_id' => '764','name' => 'Yangquan'),\n \t array('id' => '12318','state_id' => '764','name' => 'Yuanping'),\n \t array('id' => '12319','state_id' => '764','name' => 'Yuci'),\n \t array('id' => '12320','state_id' => '764','name' => 'Yuncheng'),\n \t array('id' => '12321','state_id' => '765','name' => 'Anju'),\n \t array('id' => '12322','state_id' => '765','name' => 'Baoning'),\n \t array('id' => '12323','state_id' => '765','name' => 'Chengdu'),\n \t array('id' => '12324','state_id' => '765','name' => 'Daan'),\n \t array('id' => '12325','state_id' => '765','name' => 'Dawan'),\n \t array('id' => '12326','state_id' => '765','name' => 'Daxian'),\n \t array('id' => '12327','state_id' => '765','name' => 'Deyang'),\n \t array('id' => '12328','state_id' => '765','name' => 'Dujiangyan City'),\n \t array('id' => '12329','state_id' => '765','name' => 'Guangkou'),\n \t array('id' => '12330','state_id' => '765','name' => 'Guangyuan'),\n \t array('id' => '12331','state_id' => '765','name' => 'Guihu'),\n \t array('id' => '12332','state_id' => '765','name' => 'Heyang'),\n \t array('id' => '12333','state_id' => '765','name' => 'Huayang'),\n \t array('id' => '12334','state_id' => '765','name' => 'Jiancheng'),\n \t array('id' => '12335','state_id' => '765','name' => 'Jiangyou'),\n \t array('id' => '12336','state_id' => '765','name' => 'Jijiang'),\n \t array('id' => '12337','state_id' => '765','name' => 'Leshan'),\n \t array('id' => '12338','state_id' => '765','name' => 'Linqiong'),\n \t array('id' => '12339','state_id' => '765','name' => 'Luocheng'),\n \t array('id' => '12340','state_id' => '765','name' => 'Luzhou'),\n \t array('id' => '12341','state_id' => '765','name' => 'Mianyang'),\n \t array('id' => '12342','state_id' => '765','name' => 'Nanchong'),\n \t array('id' => '12343','state_id' => '765','name' => 'Nanlong'),\n \t array('id' => '12344','state_id' => '765','name' => 'Neijiang'),\n \t array('id' => '12345','state_id' => '765','name' => 'Panzhihua'),\n \t array('id' => '12346','state_id' => '765','name' => 'Shifang'),\n \t array('id' => '12347','state_id' => '765','name' => 'Suining'),\n \t array('id' => '12348','state_id' => '765','name' => 'Taihe'),\n \t array('id' => '12349','state_id' => '765','name' => 'Tianpeng'),\n \t array('id' => '12350','state_id' => '765','name' => 'Tongchuan'),\n \t array('id' => '12351','state_id' => '765','name' => 'Xichang'),\n \t array('id' => '12352','state_id' => '765','name' => 'Xunchang'),\n \t array('id' => '12353','state_id' => '765','name' => 'Yaan'),\n \t array('id' => '12354','state_id' => '765','name' => 'Yibin'),\n \t array('id' => '12355','state_id' => '765','name' => 'Yongchang'),\n \t array('id' => '12356','state_id' => '765','name' => 'Zhonglong'),\n \t array('id' => '12357','state_id' => '765','name' => 'Zigong'),\n \t array('id' => '12358','state_id' => '765','name' => 'Ziyang'),\n \t array('id' => '12359','state_id' => '766','name' => 'Beichen'),\n \t array('id' => '12360','state_id' => '766','name' => 'Gangdong'),\n \t array('id' => '12361','state_id' => '766','name' => 'Hangu'),\n \t array('id' => '12362','state_id' => '766','name' => 'Jinghai'),\n \t array('id' => '12363','state_id' => '766','name' => 'Nankai'),\n \t array('id' => '12364','state_id' => '766','name' => 'Tanggu'),\n \t array('id' => '12365','state_id' => '766','name' => 'Tianjin'),\n \t array('id' => '12366','state_id' => '766','name' => 'Xianshuigu'),\n \t array('id' => '12367','state_id' => '766','name' => 'Yangcun'),\n \t array('id' => '12368','state_id' => '766','name' => 'Yangliuqing'),\n \t array('id' => '12369','state_id' => '767','name' => 'Guiqing'),\n \t array('id' => '12370','state_id' => '767','name' => 'Jiulong'),\n \t array('id' => '12371','state_id' => '767','name' => 'Quanwan'),\n \t array('id' => '12372','state_id' => '767','name' => 'Saigong'),\n \t array('id' => '12373','state_id' => '767','name' => 'Shatin'),\n \t array('id' => '12374','state_id' => '767','name' => 'Taipo'),\n \t array('id' => '12375','state_id' => '767','name' => 'Tuanmun'),\n \t array('id' => '12376','state_id' => '767','name' => 'Xianggang'),\n \t array('id' => '12377','state_id' => '767','name' => 'Yuanlong'),\n \t array('id' => '12378','state_id' => '768','name' => 'Aksu'),\n \t array('id' => '12379','state_id' => '768','name' => 'Baijiantan'),\n \t array('id' => '12380','state_id' => '768','name' => 'Changji'),\n \t array('id' => '12381','state_id' => '768','name' => 'Dongshan'),\n \t array('id' => '12382','state_id' => '768','name' => 'Hami'),\n \t array('id' => '12383','state_id' => '768','name' => 'Hetian'),\n \t array('id' => '12384','state_id' => '768','name' => 'Karamay'),\n \t array('id' => '12385','state_id' => '768','name' => 'Kashi'),\n \t array('id' => '12386','state_id' => '768','name' => 'Korla'),\n \t array('id' => '12387','state_id' => '768','name' => 'Kuche'),\n \t array('id' => '12388','state_id' => '768','name' => 'Kuytun'),\n \t array('id' => '12389','state_id' => '768','name' => 'Shache'),\n \t array('id' => '12390','state_id' => '768','name' => 'Shihezi'),\n \t array('id' => '12391','state_id' => '768','name' => 'Shuimogou'),\n \t array('id' => '12392','state_id' => '768','name' => 'Toutunhe'),\n \t array('id' => '12393','state_id' => '768','name' => 'Urumqi'),\n \t array('id' => '12394','state_id' => '768','name' => 'Yining'),\n \t array('id' => '12395','state_id' => '769','name' => 'Lasa'),\n \t array('id' => '12396','state_id' => '770','name' => 'Dali'),\n \t array('id' => '12397','state_id' => '770','name' => 'Gejiu'),\n \t array('id' => '12398','state_id' => '770','name' => 'Haikou'),\n \t array('id' => '12399','state_id' => '770','name' => 'Heilin'),\n \t array('id' => '12400','state_id' => '770','name' => 'Jinma'),\n \t array('id' => '12401','state_id' => '770','name' => 'Kaihua'),\n \t array('id' => '12402','state_id' => '770','name' => 'Kaiyuan'),\n \t array('id' => '12403','state_id' => '770','name' => 'Kunming'),\n \t array('id' => '12404','state_id' => '770','name' => 'Lianran'),\n \t array('id' => '12405','state_id' => '770','name' => 'Longquan'),\n \t array('id' => '12406','state_id' => '770','name' => 'Lucheng'),\n \t array('id' => '12407','state_id' => '770','name' => 'Mabai'),\n \t array('id' => '12408','state_id' => '770','name' => 'Majie'),\n \t array('id' => '12409','state_id' => '770','name' => 'Miyang'),\n \t array('id' => '12410','state_id' => '770','name' => 'Qujing'),\n \t array('id' => '12411','state_id' => '770','name' => 'Rongcheng'),\n \t array('id' => '12412','state_id' => '770','name' => 'Simao'),\n \t array('id' => '12413','state_id' => '770','name' => 'Wufeng'),\n \t array('id' => '12414','state_id' => '770','name' => 'Yunjinghong'),\n \t array('id' => '12415','state_id' => '770','name' => 'Yuxi Municipal'),\n \t array('id' => '12416','state_id' => '770','name' => 'Zhaotong'),\n \t array('id' => '12417','state_id' => '770','name' => 'Zhenhai'),\n \t array('id' => '12418','state_id' => '770','name' => 'Zhongshu'),\n \t array('id' => '12419','state_id' => '770','name' => 'Zhoucheng'),\n \t array('id' => '12420','state_id' => '770','name' => 'Zhuocheng'),\n \t array('id' => '12421','state_id' => '771','name' => 'Aojiang'),\n \t array('id' => '12422','state_id' => '771','name' => 'Choucheng'),\n \t array('id' => '12423','state_id' => '771','name' => 'Cixi'),\n \t array('id' => '12424','state_id' => '771','name' => 'Daqiao'),\n \t array('id' => '12425','state_id' => '771','name' => 'Deqing'),\n \t array('id' => '12426','state_id' => '771','name' => 'Dinghai'),\n \t array('id' => '12427','state_id' => '771','name' => 'Dongyang'),\n \t array('id' => '12428','state_id' => '771','name' => 'Fuyang'),\n \t array('id' => '12429','state_id' => '771','name' => 'Haining'),\n \t array('id' => '12430','state_id' => '771','name' => 'Haiyan'),\n \t array('id' => '12431','state_id' => '771','name' => 'Hangzhou'),\n \t array('id' => '12432','state_id' => '771','name' => 'Huangyan'),\n \t array('id' => '12433','state_id' => '771','name' => 'Hushan'),\n \t array('id' => '12434','state_id' => '771','name' => 'Huzhou'),\n \t array('id' => '12435','state_id' => '771','name' => 'Jiaojiang'),\n \t array('id' => '12436','state_id' => '771','name' => 'Jiaxing'),\n \t array('id' => '12437','state_id' => '771','name' => 'Jinhua'),\n \t array('id' => '12438','state_id' => '771','name' => 'Jinxiang'),\n \t array('id' => '12439','state_id' => '771','name' => 'Kaihua'),\n \t array('id' => '12440','state_id' => '771','name' => 'Kunyang'),\n \t array('id' => '12441','state_id' => '771','name' => 'Lanxi'),\n \t array('id' => '12442','state_id' => '771','name' => 'Linan City'),\n \t array('id' => '12443','state_id' => '771','name' => 'Linhai'),\n \t array('id' => '12444','state_id' => '771','name' => 'Linping'),\n \t array('id' => '12445','state_id' => '771','name' => 'Lishui'),\n \t array('id' => '12446','state_id' => '771','name' => 'Liushi'),\n \t array('id' => '12447','state_id' => '771','name' => 'Ningbo'),\n \t array('id' => '12448','state_id' => '771','name' => 'Ninghai'),\n \t array('id' => '12449','state_id' => '771','name' => 'Pinghu'),\n \t array('id' => '12450','state_id' => '771','name' => 'Quzhou'),\n \t array('id' => '12451','state_id' => '771','name' => 'Ruian'),\n \t array('id' => '12452','state_id' => '771','name' => 'Shangyu'),\n \t array('id' => '12453','state_id' => '771','name' => 'Shaoxing'),\n \t array('id' => '12454','state_id' => '771','name' => 'Shenjiamen'),\n \t array('id' => '12455','state_id' => '771','name' => 'Taizhou City'),\n \t array('id' => '12456','state_id' => '771','name' => 'Tonglu'),\n \t array('id' => '12457','state_id' => '771','name' => 'Wenling'),\n \t array('id' => '12458','state_id' => '771','name' => 'Wenzhou'),\n \t array('id' => '12459','state_id' => '771','name' => 'Wuning'),\n \t array('id' => '12460','state_id' => '771','name' => 'Wuyi'),\n \t array('id' => '12461','state_id' => '771','name' => 'Xianju'),\n \t array('id' => '12462','state_id' => '771','name' => 'Xiaoshan'),\n \t array('id' => '12463','state_id' => '771','name' => 'Xiashi'),\n \t array('id' => '12464','state_id' => '771','name' => 'Xushan'),\n \t array('id' => '12465','state_id' => '771','name' => 'Yiwu'),\n \t array('id' => '12466','state_id' => '771','name' => 'Yongkang'),\n \t array('id' => '12467','state_id' => '771','name' => 'Yueqing'),\n \t array('id' => '12468','state_id' => '771','name' => 'Yuhuan'),\n \t array('id' => '12469','state_id' => '771','name' => 'Yuyao'),\n \t array('id' => '12470','state_id' => '771','name' => 'Zhejiang'),\n \t array('id' => '12471','state_id' => '771','name' => 'Zhenhai'),\n \t array('id' => '12472','state_id' => '771','name' => 'Zhicheng'),\n \t array('id' => '12473','state_id' => '771','name' => 'Zhuji'),\n \t array('id' => '12474','state_id' => '771','name' => 'fenghua'),\n \t array('id' => '12475','state_id' => '771','name' => 'jiashan'),\n \t array('id' => '12531','state_id' => '775','name' => 'Leticia'),\n \t array('id' => '12532','state_id' => '775','name' => 'Puerto Narino'),\n \t array('id' => '12533','state_id' => '776','name' => 'Abejorral'),\n \t array('id' => '12534','state_id' => '776','name' => 'Abriaqui'),\n \t array('id' => '12535','state_id' => '776','name' => 'Alejandria'),\n \t array('id' => '12536','state_id' => '776','name' => 'Amaga'),\n \t array('id' => '12537','state_id' => '776','name' => 'Amalfi'),\n \t array('id' => '12538','state_id' => '776','name' => 'Andes'),\n \t array('id' => '12539','state_id' => '776','name' => 'Angelopolis'),\n \t array('id' => '12540','state_id' => '776','name' => 'Angostura'),\n \t array('id' => '12541','state_id' => '776','name' => 'Anori'),\n \t array('id' => '12542','state_id' => '776','name' => 'Antioquia'),\n \t array('id' => '12543','state_id' => '776','name' => 'Anza'),\n \t array('id' => '12544','state_id' => '776','name' => 'Apartado'),\n \t array('id' => '12545','state_id' => '776','name' => 'Arboletes'),\n \t array('id' => '12546','state_id' => '776','name' => 'Argelia'),\n \t array('id' => '12547','state_id' => '776','name' => 'Armenia'),\n \t array('id' => '12548','state_id' => '776','name' => 'Barbosa'),\n \t array('id' => '12549','state_id' => '776','name' => 'Bello'),\n \t array('id' => '12550','state_id' => '776','name' => 'Belmira'),\n \t array('id' => '12551','state_id' => '776','name' => 'Betania'),\n \t array('id' => '12552','state_id' => '776','name' => 'Betulia'),\n \t array('id' => '12553','state_id' => '776','name' => 'Bolivar'),\n \t array('id' => '12554','state_id' => '776','name' => 'Briceno'),\n \t array('id' => '12555','state_id' => '776','name' => 'Buritica'),\n \t array('id' => '12556','state_id' => '776','name' => 'Caceres'),\n \t array('id' => '12557','state_id' => '776','name' => 'Caicedo'),\n \t array('id' => '12558','state_id' => '776','name' => 'Caldas'),\n \t array('id' => '12559','state_id' => '776','name' => 'Campamento'),\n \t array('id' => '12560','state_id' => '776','name' => 'Canasgordas'),\n \t array('id' => '12561','state_id' => '776','name' => 'Caracoli'),\n \t array('id' => '12562','state_id' => '776','name' => 'Caramanta'),\n \t array('id' => '12563','state_id' => '776','name' => 'Carepa'),\n \t array('id' => '12564','state_id' => '776','name' => 'Carmen de Viboral'),\n \t array('id' => '12565','state_id' => '776','name' => 'Carolina'),\n \t array('id' => '12566','state_id' => '776','name' => 'Caucasia'),\n \t array('id' => '12567','state_id' => '776','name' => 'Chigorodo'),\n \t array('id' => '12568','state_id' => '776','name' => 'Cisneros'),\n \t array('id' => '12569','state_id' => '776','name' => 'Cocorna'),\n \t array('id' => '12570','state_id' => '776','name' => 'Concepcion'),\n \t array('id' => '12571','state_id' => '776','name' => 'Concordia'),\n \t array('id' => '12572','state_id' => '776','name' => 'Copacabana'),\n \t array('id' => '12573','state_id' => '776','name' => 'Dabeiba'),\n \t array('id' => '12574','state_id' => '776','name' => 'Don Matias'),\n \t array('id' => '12575','state_id' => '776','name' => 'Ebejico'),\n \t array('id' => '12576','state_id' => '776','name' => 'El Bagre'),\n \t array('id' => '12577','state_id' => '776','name' => 'Entrerrios'),\n \t array('id' => '12578','state_id' => '776','name' => 'Envigado'),\n \t array('id' => '12579','state_id' => '776','name' => 'Fredonia'),\n \t array('id' => '12580','state_id' => '776','name' => 'Frontino'),\n \t array('id' => '12581','state_id' => '776','name' => 'Giraldo'),\n \t array('id' => '12582','state_id' => '776','name' => 'Girardota'),\n \t array('id' => '12583','state_id' => '776','name' => 'Gomez Plata'),\n \t array('id' => '12584','state_id' => '776','name' => 'Granada'),\n \t array('id' => '12585','state_id' => '776','name' => 'Guadalupe'),\n \t array('id' => '12586','state_id' => '776','name' => 'Guarne'),\n \t array('id' => '12587','state_id' => '776','name' => 'Guatape'),\n \t array('id' => '12588','state_id' => '776','name' => 'Heliconia'),\n \t array('id' => '12589','state_id' => '776','name' => 'Hispania'),\n \t array('id' => '12590','state_id' => '776','name' => 'Itagui'),\n \t array('id' => '12591','state_id' => '776','name' => 'Ituango'),\n \t array('id' => '12592','state_id' => '776','name' => 'Jardin'),\n \t array('id' => '12593','state_id' => '776','name' => 'Jerico'),\n \t array('id' => '12594','state_id' => '776','name' => 'La Ceja'),\n \t array('id' => '12595','state_id' => '776','name' => 'La Estrella'),\n \t array('id' => '12596','state_id' => '776','name' => 'La Pintada'),\n \t array('id' => '12597','state_id' => '776','name' => 'La Union'),\n \t array('id' => '12598','state_id' => '776','name' => 'Liborina'),\n \t array('id' => '12599','state_id' => '776','name' => 'Maceo'),\n \t array('id' => '12600','state_id' => '776','name' => 'Marinilla'),\n \t array('id' => '12601','state_id' => '776','name' => 'Medellin'),\n \t array('id' => '12602','state_id' => '776','name' => 'Montebello'),\n \t array('id' => '12603','state_id' => '776','name' => 'Murindo'),\n \t array('id' => '12604','state_id' => '776','name' => 'Mutata'),\n \t array('id' => '12605','state_id' => '776','name' => 'Narino'),\n \t array('id' => '12606','state_id' => '776','name' => 'Nechi'),\n \t array('id' => '12607','state_id' => '776','name' => 'Necocli'),\n \t array('id' => '12608','state_id' => '776','name' => 'Olaya'),\n \t array('id' => '12609','state_id' => '776','name' => 'Penol'),\n \t array('id' => '12610','state_id' => '776','name' => 'Peque'),\n \t array('id' => '12611','state_id' => '776','name' => 'Pueblorrico'),\n \t array('id' => '12612','state_id' => '776','name' => 'Puerto Berrio'),\n \t array('id' => '12613','state_id' => '776','name' => 'Puerto Nare'),\n \t array('id' => '12614','state_id' => '776','name' => 'Puerto Triunfo'),\n \t array('id' => '12615','state_id' => '776','name' => 'Remedios'),\n \t array('id' => '12616','state_id' => '776','name' => 'Retiro'),\n \t array('id' => '12617','state_id' => '776','name' => 'Rionegro'),\n \t array('id' => '12618','state_id' => '776','name' => 'Sabanalarga'),\n \t array('id' => '12619','state_id' => '776','name' => 'Sabaneta'),\n \t array('id' => '12620','state_id' => '776','name' => 'Salgar'),\n \t array('id' => '12621','state_id' => '776','name' => 'San Andres'),\n \t array('id' => '12622','state_id' => '776','name' => 'San Carlos'),\n \t array('id' => '12623','state_id' => '776','name' => 'San Francisco'),\n \t array('id' => '12624','state_id' => '776','name' => 'San Jeronimo'),\n \t array('id' => '12625','state_id' => '776','name' => 'San Jose de la Montana'),\n \t array('id' => '12626','state_id' => '776','name' => 'San Juan de Uraba'),\n \t array('id' => '12627','state_id' => '776','name' => 'San Luis'),\n \t array('id' => '12628','state_id' => '776','name' => 'San Pedro'),\n \t array('id' => '12629','state_id' => '776','name' => 'San Pedro de Uraba'),\n \t array('id' => '12630','state_id' => '776','name' => 'San Rafael'),\n \t array('id' => '12631','state_id' => '776','name' => 'San Roque'),\n \t array('id' => '12632','state_id' => '776','name' => 'San Vicente'),\n \t array('id' => '12633','state_id' => '776','name' => 'Santa Barbara'),\n \t array('id' => '12634','state_id' => '776','name' => 'Santa Rosa de Osos'),\n \t array('id' => '12635','state_id' => '776','name' => 'Santo Domingo'),\n \t array('id' => '12636','state_id' => '776','name' => 'Santuario'),\n \t array('id' => '12637','state_id' => '776','name' => 'Segovia'),\n \t array('id' => '12638','state_id' => '776','name' => 'Sonson'),\n \t array('id' => '12639','state_id' => '776','name' => 'Sopetran'),\n \t array('id' => '12640','state_id' => '776','name' => 'Tamesis'),\n \t array('id' => '12641','state_id' => '776','name' => 'Taraza'),\n \t array('id' => '12642','state_id' => '776','name' => 'Tarso'),\n \t array('id' => '12643','state_id' => '776','name' => 'Titiribi'),\n \t array('id' => '12644','state_id' => '776','name' => 'Toledo'),\n \t array('id' => '12645','state_id' => '776','name' => 'Turbo'),\n \t array('id' => '12646','state_id' => '776','name' => 'Uramita'),\n \t array('id' => '12647','state_id' => '776','name' => 'Urrao'),\n \t array('id' => '12648','state_id' => '776','name' => 'Valdivia'),\n \t array('id' => '12649','state_id' => '776','name' => 'Valparaiso'),\n \t array('id' => '12650','state_id' => '776','name' => 'Vegachi'),\n \t array('id' => '12651','state_id' => '776','name' => 'Venecia'),\n \t array('id' => '12652','state_id' => '776','name' => 'Vigia del Fuerte'),\n \t array('id' => '12653','state_id' => '776','name' => 'Yali'),\n \t array('id' => '12654','state_id' => '776','name' => 'Yarumal'),\n \t array('id' => '12655','state_id' => '776','name' => 'Yolombo'),\n \t array('id' => '12656','state_id' => '776','name' => 'Yondo'),\n \t array('id' => '12657','state_id' => '776','name' => 'Zaragoza'),\n \t array('id' => '12658','state_id' => '777','name' => 'Arauca'),\n \t array('id' => '12659','state_id' => '777','name' => 'Arauquita'),\n \t array('id' => '12660','state_id' => '777','name' => 'Cravo Norte'),\n \t array('id' => '12661','state_id' => '777','name' => 'Fortul'),\n \t array('id' => '12662','state_id' => '777','name' => 'Puerto Rondon'),\n \t array('id' => '12663','state_id' => '777','name' => 'Saravena'),\n \t array('id' => '12664','state_id' => '777','name' => 'Tame'),\n \t array('id' => '12665','state_id' => '778','name' => 'Baranoa'),\n \t array('id' => '12666','state_id' => '778','name' => 'Barranquilla'),\n \t array('id' => '12667','state_id' => '778','name' => 'Campo de la Cruz'),\n \t array('id' => '12668','state_id' => '778','name' => 'Candelaria'),\n \t array('id' => '12669','state_id' => '778','name' => 'Galapa'),\n \t array('id' => '12670','state_id' => '778','name' => 'Juan de Acosta'),\n \t array('id' => '12671','state_id' => '778','name' => 'Luruaco'),\n \t array('id' => '12672','state_id' => '778','name' => 'Malambo'),\n \t array('id' => '12673','state_id' => '778','name' => 'Manati'),\n \t array('id' => '12674','state_id' => '778','name' => 'Palmar de Varela'),\n \t array('id' => '12675','state_id' => '778','name' => 'Piojo'),\n \t array('id' => '12676','state_id' => '778','name' => 'Polo Nuevo'),\n \t array('id' => '12677','state_id' => '778','name' => 'Ponedera'),\n \t array('id' => '12678','state_id' => '778','name' => 'Puerto Colombia'),\n \t array('id' => '12679','state_id' => '778','name' => 'Repelon'),\n \t array('id' => '12680','state_id' => '778','name' => 'Sabanagrande'),\n \t array('id' => '12681','state_id' => '778','name' => 'Sabanalarga'),\n \t array('id' => '12682','state_id' => '778','name' => 'Santa Lucia'),\n \t array('id' => '12683','state_id' => '778','name' => 'Santo Tomas'),\n \t array('id' => '12684','state_id' => '778','name' => 'Soledad'),\n \t array('id' => '12685','state_id' => '778','name' => 'Suan'),\n \t array('id' => '12686','state_id' => '778','name' => 'Tubara'),\n \t array('id' => '12687','state_id' => '778','name' => 'Usiacuri'),\n \t array('id' => '12688','state_id' => '779','name' => 'Bogota'),\n \t array('id' => '12689','state_id' => '780','name' => 'Achi'),\n \t array('id' => '12690','state_id' => '780','name' => 'Altos del Rosario'),\n \t array('id' => '12691','state_id' => '780','name' => 'Arenal'),\n \t array('id' => '12692','state_id' => '780','name' => 'Arjona'),\n \t array('id' => '12693','state_id' => '780','name' => 'Arroyohondo'),\n \t array('id' => '12694','state_id' => '780','name' => 'Barranco de Loba'),\n \t array('id' => '12695','state_id' => '780','name' => 'Calamar'),\n \t array('id' => '12696','state_id' => '780','name' => 'Cantagallo'),\n \t array('id' => '12697','state_id' => '780','name' => 'Cartagena'),\n \t array('id' => '12698','state_id' => '780','name' => 'Cicuco'),\n \t array('id' => '12699','state_id' => '780','name' => 'Clemencia'),\n \t array('id' => '12700','state_id' => '780','name' => 'Cordoba'),\n \t array('id' => '12701','state_id' => '780','name' => 'El Carmen de Bolivar'),\n \t array('id' => '12702','state_id' => '780','name' => 'El Guamo'),\n \t array('id' => '12703','state_id' => '780','name' => 'El Penon'),\n \t array('id' => '12704','state_id' => '780','name' => 'Hatillo de Loba'),\n \t array('id' => '12705','state_id' => '780','name' => 'Magangue'),\n \t array('id' => '12706','state_id' => '780','name' => 'Mahates'),\n \t array('id' => '12707','state_id' => '780','name' => 'Margarita'),\n \t array('id' => '12708','state_id' => '780','name' => 'Maria la Baja'),\n \t array('id' => '12709','state_id' => '780','name' => 'Mompos'),\n \t array('id' => '12710','state_id' => '780','name' => 'Montecristo'),\n \t array('id' => '12711','state_id' => '780','name' => 'Morales'),\n \t array('id' => '12712','state_id' => '780','name' => 'Pinillos'),\n \t array('id' => '12713','state_id' => '780','name' => 'Regidor'),\n \t array('id' => '12714','state_id' => '780','name' => 'Rio Viejo'),\n \t array('id' => '12715','state_id' => '780','name' => 'San Cristobal'),\n \t array('id' => '12716','state_id' => '780','name' => 'San Estanislao'),\n \t array('id' => '12717','state_id' => '780','name' => 'San Fernando'),\n \t array('id' => '12718','state_id' => '780','name' => 'San Jacinto'),\n \t array('id' => '12719','state_id' => '780','name' => 'San Jacinto del Cauca'),\n \t array('id' => '12720','state_id' => '780','name' => 'San Juan Nepomuceno'),\n \t array('id' => '12721','state_id' => '780','name' => 'San Martin de Loba'),\n \t array('id' => '12722','state_id' => '780','name' => 'San Pablo'),\n \t array('id' => '12723','state_id' => '780','name' => 'Santa Catalina'),\n \t array('id' => '12724','state_id' => '780','name' => 'Santa Rosa'),\n \t array('id' => '12725','state_id' => '780','name' => 'Santa Rosa del Sur'),\n \t array('id' => '12726','state_id' => '780','name' => 'Simiti'),\n \t array('id' => '12727','state_id' => '780','name' => 'Soplaviento'),\n \t array('id' => '12728','state_id' => '780','name' => 'Talaigua Nuevo'),\n \t array('id' => '12729','state_id' => '780','name' => 'Tiquisio'),\n \t array('id' => '12730','state_id' => '780','name' => 'Turbaco'),\n \t array('id' => '12731','state_id' => '780','name' => 'Turbana'),\n \t array('id' => '12732','state_id' => '780','name' => 'Villanueva'),\n \t array('id' => '12733','state_id' => '780','name' => 'Zambrano'),\n \t array('id' => '12734','state_id' => '781','name' => 'Almeida'),\n \t array('id' => '12735','state_id' => '781','name' => 'Aquitania'),\n \t array('id' => '12736','state_id' => '781','name' => 'Arcabuco'),\n \t array('id' => '12737','state_id' => '781','name' => 'Belen'),\n \t array('id' => '12738','state_id' => '781','name' => 'Berbeo'),\n \t array('id' => '12739','state_id' => '781','name' => 'Beteitiva'),\n \t array('id' => '12740','state_id' => '781','name' => 'Boavita'),\n \t array('id' => '12741','state_id' => '781','name' => 'Boyaca'),\n \t array('id' => '12742','state_id' => '781','name' => 'Briceno'),\n \t array('id' => '12743','state_id' => '781','name' => 'Buenavista'),\n \t array('id' => '12744','state_id' => '781','name' => 'Busbanza'),\n \t array('id' => '12745','state_id' => '781','name' => 'Caldas'),\n \t array('id' => '12746','state_id' => '781','name' => 'Campohermoso'),\n \t array('id' => '12747','state_id' => '781','name' => 'Cerinza'),\n \t array('id' => '12748','state_id' => '781','name' => 'Chinavita'),\n \t array('id' => '12749','state_id' => '781','name' => 'Chiquinquira'),\n \t array('id' => '12750','state_id' => '781','name' => 'Chiquiza'),\n \t array('id' => '12751','state_id' => '781','name' => 'Chiscas'),\n \t array('id' => '12752','state_id' => '781','name' => 'Chita'),\n \t array('id' => '12753','state_id' => '781','name' => 'Chitaraque'),\n \t array('id' => '12754','state_id' => '781','name' => 'Chivata'),\n \t array('id' => '12755','state_id' => '781','name' => 'Chivor'),\n \t array('id' => '12756','state_id' => '781','name' => 'Cienega'),\n \t array('id' => '12757','state_id' => '781','name' => 'Combita'),\n \t array('id' => '12758','state_id' => '781','name' => 'Coper'),\n \t array('id' => '12759','state_id' => '781','name' => 'Corrales'),\n \t array('id' => '12760','state_id' => '781','name' => 'Covarachia'),\n \t array('id' => '12761','state_id' => '781','name' => 'Cubara'),\n \t array('id' => '12762','state_id' => '781','name' => 'Cucaita'),\n \t array('id' => '12763','state_id' => '781','name' => 'Cuitiva'),\n \t array('id' => '12764','state_id' => '781','name' => 'Duitama'),\n \t array('id' => '12765','state_id' => '781','name' => 'El Cocuy'),\n \t array('id' => '12766','state_id' => '781','name' => 'El Espino'),\n \t array('id' => '12767','state_id' => '781','name' => 'Firavitoba'),\n \t array('id' => '12768','state_id' => '781','name' => 'Floresta'),\n \t array('id' => '12769','state_id' => '781','name' => 'Gachantiva'),\n \t array('id' => '12770','state_id' => '781','name' => 'Gameza'),\n \t array('id' => '12771','state_id' => '781','name' => 'Garagoa'),\n \t array('id' => '12772','state_id' => '781','name' => 'Guacamayas'),\n \t array('id' => '12773','state_id' => '781','name' => 'Guateque'),\n \t array('id' => '12774','state_id' => '781','name' => 'Guayata'),\n \t array('id' => '12775','state_id' => '781','name' => 'Guican'),\n \t array('id' => '12776','state_id' => '781','name' => 'Iza'),\n \t array('id' => '12777','state_id' => '781','name' => 'Jenesano'),\n \t array('id' => '12778','state_id' => '781','name' => 'Jerico'),\n \t array('id' => '12779','state_id' => '781','name' => 'La Capilla'),\n \t array('id' => '12780','state_id' => '781','name' => 'La Uvita'),\n \t array('id' => '12781','state_id' => '781','name' => 'La Victoria'),\n \t array('id' => '12782','state_id' => '781','name' => 'Labranzagrande'),\n \t array('id' => '12783','state_id' => '781','name' => 'Leiva'),\n \t array('id' => '12784','state_id' => '781','name' => 'Macanal'),\n \t array('id' => '12785','state_id' => '781','name' => 'Maripi'),\n \t array('id' => '12786','state_id' => '781','name' => 'Miraflores'),\n \t array('id' => '12787','state_id' => '781','name' => 'Mongua'),\n \t array('id' => '12788','state_id' => '781','name' => 'Mongui'),\n \t array('id' => '12789','state_id' => '781','name' => 'Moniquira'),\n \t array('id' => '12790','state_id' => '781','name' => 'Motavita'),\n \t array('id' => '12791','state_id' => '781','name' => 'Muzo'),\n \t array('id' => '12792','state_id' => '781','name' => 'Nobsa'),\n \t array('id' => '12793','state_id' => '781','name' => 'Nuevo Colon'),\n \t array('id' => '12794','state_id' => '781','name' => 'Oicata'),\n \t array('id' => '12795','state_id' => '781','name' => 'Otanche'),\n \t array('id' => '12796','state_id' => '781','name' => 'Pachavita'),\n \t array('id' => '12797','state_id' => '781','name' => 'Paez'),\n \t array('id' => '12798','state_id' => '781','name' => 'Paipa'),\n \t array('id' => '12799','state_id' => '781','name' => 'Pajarito'),\n \t array('id' => '12800','state_id' => '781','name' => 'Panqueba'),\n \t array('id' => '12801','state_id' => '781','name' => 'Pauna'),\n \t array('id' => '12802','state_id' => '781','name' => 'Paya'),\n \t array('id' => '12803','state_id' => '781','name' => 'Paz del Rio'),\n \t array('id' => '12804','state_id' => '781','name' => 'Pesca'),\n \t array('id' => '12805','state_id' => '781','name' => 'Pisba'),\n \t array('id' => '12806','state_id' => '781','name' => 'Puerto Boyaca'),\n \t array('id' => '12807','state_id' => '781','name' => 'Quipama'),\n \t array('id' => '12808','state_id' => '781','name' => 'Ramiriqui'),\n \t array('id' => '12809','state_id' => '781','name' => 'Raquira'),\n \t array('id' => '12810','state_id' => '781','name' => 'Rondon'),\n \t array('id' => '12811','state_id' => '781','name' => 'Saboya'),\n \t array('id' => '12812','state_id' => '781','name' => 'Sachica'),\n \t array('id' => '12813','state_id' => '781','name' => 'Samaca'),\n \t array('id' => '12814','state_id' => '781','name' => 'San Eduardo'),\n \t array('id' => '12815','state_id' => '781','name' => 'San Jose de Pare'),\n \t array('id' => '12816','state_id' => '781','name' => 'San Luis de Gaceno'),\n \t array('id' => '12817','state_id' => '781','name' => 'San Mateo'),\n \t array('id' => '12818','state_id' => '781','name' => 'San Miguel de Sema'),\n \t array('id' => '12819','state_id' => '781','name' => 'San Pablo de Borbur'),\n \t array('id' => '12820','state_id' => '781','name' => 'Santa Maria'),\n \t array('id' => '12821','state_id' => '781','name' => 'Santa Rosa de Viterbo'),\n \t array('id' => '12822','state_id' => '781','name' => 'Santa Sofia'),\n \t array('id' => '12823','state_id' => '781','name' => 'Santana'),\n \t array('id' => '12824','state_id' => '781','name' => 'Sativanorte'),\n \t array('id' => '12825','state_id' => '781','name' => 'Sativasur'),\n \t array('id' => '12826','state_id' => '781','name' => 'Siachoque'),\n \t array('id' => '12827','state_id' => '781','name' => 'Soata'),\n \t array('id' => '12828','state_id' => '781','name' => 'Socha'),\n \t array('id' => '12829','state_id' => '781','name' => 'Socota'),\n \t array('id' => '12830','state_id' => '781','name' => 'Sogamoso'),\n \t array('id' => '12831','state_id' => '781','name' => 'Somondoco'),\n \t array('id' => '12832','state_id' => '781','name' => 'Sora'),\n \t array('id' => '12833','state_id' => '781','name' => 'Soraca'),\n \t array('id' => '12834','state_id' => '781','name' => 'Sotaquira'),\n \t array('id' => '12835','state_id' => '781','name' => 'Susacon'),\n \t array('id' => '12836','state_id' => '781','name' => 'Sutamarchan'),\n \t array('id' => '12837','state_id' => '781','name' => 'Sutatenza'),\n \t array('id' => '12838','state_id' => '781','name' => 'Tasco'),\n \t array('id' => '12839','state_id' => '781','name' => 'Tenza'),\n \t array('id' => '12840','state_id' => '781','name' => 'Tibana'),\n \t array('id' => '12841','state_id' => '781','name' => 'Tibasosa'),\n \t array('id' => '12842','state_id' => '781','name' => 'Tinjaca'),\n \t array('id' => '12843','state_id' => '781','name' => 'Tipacoque'),\n \t array('id' => '12844','state_id' => '781','name' => 'Toca'),\n \t array('id' => '12845','state_id' => '781','name' => 'Togui'),\n \t array('id' => '12846','state_id' => '781','name' => 'Topaga'),\n \t array('id' => '12847','state_id' => '781','name' => 'Tota'),\n \t array('id' => '12848','state_id' => '781','name' => 'Tunja'),\n \t array('id' => '12849','state_id' => '781','name' => 'Tunungua'),\n \t array('id' => '12850','state_id' => '781','name' => 'Turmeque'),\n \t array('id' => '12851','state_id' => '781','name' => 'Tuta'),\n \t array('id' => '12852','state_id' => '781','name' => 'Tutasa'),\n \t array('id' => '12853','state_id' => '781','name' => 'Umbita'),\n \t array('id' => '12854','state_id' => '781','name' => 'Ventaquemada'),\n \t array('id' => '12855','state_id' => '781','name' => 'Viracacha'),\n \t array('id' => '12856','state_id' => '781','name' => 'Zetaquira'),\n \t array('id' => '12857','state_id' => '782','name' => 'Aguadas'),\n \t array('id' => '12858','state_id' => '782','name' => 'Anserma'),\n \t array('id' => '12859','state_id' => '782','name' => 'Aranzazu'),\n \t array('id' => '12860','state_id' => '782','name' => 'Belalcazar'),\n \t array('id' => '12861','state_id' => '782','name' => 'Chinchina'),\n \t array('id' => '12862','state_id' => '782','name' => 'Filadelfia'),\n \t array('id' => '12863','state_id' => '782','name' => 'La Dorada'),\n \t array('id' => '12864','state_id' => '782','name' => 'La Merced'),\n \t array('id' => '12865','state_id' => '782','name' => 'Manizales'),\n \t array('id' => '12866','state_id' => '782','name' => 'Manzanares'),\n \t array('id' => '12867','state_id' => '782','name' => 'Marmato'),\n \t array('id' => '12868','state_id' => '782','name' => 'Marquetalia'),\n \t array('id' => '12869','state_id' => '782','name' => 'Marulanda'),\n \t array('id' => '12870','state_id' => '782','name' => 'Neira'),\n \t array('id' => '12871','state_id' => '782','name' => 'Norcasia'),\n \t array('id' => '12872','state_id' => '782','name' => 'Pacora'),\n \t array('id' => '12873','state_id' => '782','name' => 'Palestina'),\n \t array('id' => '12874','state_id' => '782','name' => 'Pensilvania'),\n \t array('id' => '12875','state_id' => '782','name' => 'Riosucio'),\n \t array('id' => '12876','state_id' => '782','name' => 'Risaralda'),\n \t array('id' => '12877','state_id' => '782','name' => 'Salamina'),\n \t array('id' => '12878','state_id' => '782','name' => 'Samana'),\n \t array('id' => '12879','state_id' => '782','name' => 'San Jose'),\n \t array('id' => '12880','state_id' => '782','name' => 'Supia'),\n \t array('id' => '12881','state_id' => '782','name' => 'Victoria'),\n \t array('id' => '12882','state_id' => '782','name' => 'Villamaria'),\n \t array('id' => '12883','state_id' => '782','name' => 'Viterbo'),\n \t array('id' => '12884','state_id' => '783','name' => 'Albania'),\n \t array('id' => '12885','state_id' => '783','name' => 'Belen Andaquies'),\n \t array('id' => '12886','state_id' => '783','name' => 'Cartagena del Chaira'),\n \t array('id' => '12887','state_id' => '783','name' => 'Curillo'),\n \t array('id' => '12888','state_id' => '783','name' => 'El Doncello'),\n \t array('id' => '12889','state_id' => '783','name' => 'El Paujil'),\n \t array('id' => '12890','state_id' => '783','name' => 'Florencia'),\n \t array('id' => '12891','state_id' => '783','name' => 'La Montanita'),\n \t array('id' => '12892','state_id' => '783','name' => 'Milan'),\n \t array('id' => '12893','state_id' => '783','name' => 'Morelia'),\n \t array('id' => '12894','state_id' => '783','name' => 'Puerto Rico'),\n \t array('id' => '12895','state_id' => '783','name' => 'San Jose de Fragua'),\n \t array('id' => '12896','state_id' => '783','name' => 'San Vicente del Caguan'),\n \t array('id' => '12897','state_id' => '783','name' => 'Solano'),\n \t array('id' => '12898','state_id' => '783','name' => 'Solita'),\n \t array('id' => '12899','state_id' => '783','name' => 'Valparaiso'),\n \t array('id' => '12900','state_id' => '784','name' => 'Aguazul'),\n \t array('id' => '12901','state_id' => '784','name' => 'Chameza'),\n \t array('id' => '12902','state_id' => '784','name' => 'Hato Corozal'),\n \t array('id' => '12903','state_id' => '784','name' => 'La Salina'),\n \t array('id' => '12904','state_id' => '784','name' => 'Mani'),\n \t array('id' => '12905','state_id' => '784','name' => 'Monterrey'),\n \t array('id' => '12906','state_id' => '784','name' => 'Nunchia'),\n \t array('id' => '12907','state_id' => '784','name' => 'Orocue'),\n \t array('id' => '12908','state_id' => '784','name' => 'Paz de Ariporo'),\n \t array('id' => '12909','state_id' => '784','name' => 'Pore'),\n \t array('id' => '12910','state_id' => '784','name' => 'Recetor'),\n \t array('id' => '12911','state_id' => '784','name' => 'Sabanalarga'),\n \t array('id' => '12912','state_id' => '784','name' => 'Sacama'),\n \t array('id' => '12913','state_id' => '784','name' => 'San Luis de Palenque'),\n \t array('id' => '12914','state_id' => '784','name' => 'Tamara'),\n \t array('id' => '12915','state_id' => '784','name' => 'Tauramena'),\n \t array('id' => '12916','state_id' => '784','name' => 'Trinidad'),\n \t array('id' => '12917','state_id' => '784','name' => 'Villanueva'),\n \t array('id' => '12918','state_id' => '784','name' => 'Yopal'),\n \t array('id' => '12919','state_id' => '785','name' => 'Almaguer'),\n \t array('id' => '12920','state_id' => '785','name' => 'Argelia'),\n \t array('id' => '12921','state_id' => '785','name' => 'Balboa'),\n \t array('id' => '12922','state_id' => '785','name' => 'Bolivar'),\n \t array('id' => '12923','state_id' => '785','name' => 'Buenos Aires'),\n \t array('id' => '12924','state_id' => '785','name' => 'Cajibio'),\n \t array('id' => '12925','state_id' => '785','name' => 'Caldono'),\n \t array('id' => '12926','state_id' => '785','name' => 'Caloto'),\n \t array('id' => '12927','state_id' => '785','name' => 'Corinto'),\n \t array('id' => '12928','state_id' => '785','name' => 'El Bordo'),\n \t array('id' => '12929','state_id' => '785','name' => 'El Tambo'),\n \t array('id' => '12930','state_id' => '785','name' => 'Florencia'),\n \t array('id' => '12931','state_id' => '785','name' => 'Guapi'),\n \t array('id' => '12932','state_id' => '785','name' => 'Inza'),\n \t array('id' => '12933','state_id' => '785','name' => 'Jambalo'),\n \t array('id' => '12934','state_id' => '785','name' => 'La Sierra'),\n \t array('id' => '12935','state_id' => '785','name' => 'La Vega'),\n \t array('id' => '12936','state_id' => '785','name' => 'Lopez'),\n \t array('id' => '12937','state_id' => '785','name' => 'Mercaderes'),\n \t array('id' => '12938','state_id' => '785','name' => 'Miranda'),\n \t array('id' => '12939','state_id' => '785','name' => 'Morales'),\n \t array('id' => '12940','state_id' => '785','name' => 'Padilla'),\n \t array('id' => '12941','state_id' => '785','name' => 'Paez'),\n \t array('id' => '12942','state_id' => '785','name' => 'Piamonte'),\n \t array('id' => '12943','state_id' => '785','name' => 'Piendamo'),\n \t array('id' => '12944','state_id' => '785','name' => 'Popayan'),\n \t array('id' => '12945','state_id' => '785','name' => 'Puerto Tejada'),\n \t array('id' => '12946','state_id' => '785','name' => 'Purace'),\n \t array('id' => '12947','state_id' => '785','name' => 'Rosas'),\n \t array('id' => '12948','state_id' => '785','name' => 'San Sebastian'),\n \t array('id' => '12949','state_id' => '785','name' => 'Santa Rosa'),\n \t array('id' => '12950','state_id' => '785','name' => 'Santander de Quilichao'),\n \t array('id' => '12951','state_id' => '785','name' => 'Silvia'),\n \t array('id' => '12952','state_id' => '785','name' => 'Sotara'),\n \t array('id' => '12953','state_id' => '785','name' => 'Suarez'),\n \t array('id' => '12954','state_id' => '785','name' => 'Sucre'),\n \t array('id' => '12955','state_id' => '785','name' => 'Timbio'),\n \t array('id' => '12956','state_id' => '785','name' => 'Timbiqui'),\n \t array('id' => '12957','state_id' => '785','name' => 'Toribio'),\n \t array('id' => '12958','state_id' => '785','name' => 'Totoro'),\n \t array('id' => '12959','state_id' => '785','name' => 'Villa Rica'),\n \t array('id' => '12960','state_id' => '786','name' => 'Aguachica'),\n \t array('id' => '12961','state_id' => '786','name' => 'Agustin Codazzi'),\n \t array('id' => '12962','state_id' => '786','name' => 'Astrea'),\n \t array('id' => '12963','state_id' => '786','name' => 'Becerril'),\n \t array('id' => '12964','state_id' => '786','name' => 'Bosconia'),\n \t array('id' => '12965','state_id' => '786','name' => 'Chimichagua'),\n \t array('id' => '12966','state_id' => '786','name' => 'Chiriguana'),\n \t array('id' => '12967','state_id' => '786','name' => 'Curumani'),\n \t array('id' => '12968','state_id' => '786','name' => 'El Copey'),\n \t array('id' => '12969','state_id' => '786','name' => 'El Paso'),\n \t array('id' => '12970','state_id' => '786','name' => 'Gamarra'),\n \t array('id' => '12971','state_id' => '786','name' => 'Gonzalez'),\n \t array('id' => '12972','state_id' => '786','name' => 'La Gloria'),\n \t array('id' => '12973','state_id' => '786','name' => 'La Jagua Ibirico'),\n \t array('id' => '12974','state_id' => '786','name' => 'Manaure'),\n \t array('id' => '12975','state_id' => '786','name' => 'Pailitas'),\n \t array('id' => '12976','state_id' => '786','name' => 'Pelaya'),\n \t array('id' => '12977','state_id' => '786','name' => 'Pueblo Bello'),\n \t array('id' => '12978','state_id' => '786','name' => 'Rio de Oro'),\n \t array('id' => '12979','state_id' => '786','name' => 'Robles la Paz'),\n \t array('id' => '12980','state_id' => '786','name' => 'San Alberto'),\n \t array('id' => '12981','state_id' => '786','name' => 'San Diego'),\n \t array('id' => '12982','state_id' => '786','name' => 'San Martin'),\n \t array('id' => '12983','state_id' => '786','name' => 'Tamalameque'),\n \t array('id' => '12984','state_id' => '786','name' => 'Valledupar'),\n \t array('id' => '12985','state_id' => '787','name' => 'Acandi'),\n \t array('id' => '12986','state_id' => '787','name' => 'Alto Baudo'),\n \t array('id' => '12987','state_id' => '787','name' => 'Atrato'),\n \t array('id' => '12988','state_id' => '787','name' => 'Bagado'),\n \t array('id' => '12989','state_id' => '787','name' => 'Bahia Solano'),\n \t array('id' => '12990','state_id' => '787','name' => 'Bajo Baudo'),\n \t array('id' => '12991','state_id' => '787','name' => 'Bojaya'),\n \t array('id' => '12992','state_id' => '787','name' => 'Canton de San Pablo'),\n \t array('id' => '12993','state_id' => '787','name' => 'Carmen del Darien'),\n \t array('id' => '12994','state_id' => '787','name' => 'Certegui'),\n \t array('id' => '12995','state_id' => '787','name' => 'Condoto'),\n \t array('id' => '12996','state_id' => '787','name' => 'El Carmen'),\n \t array('id' => '12997','state_id' => '787','name' => 'Istmina'),\n \t array('id' => '12998','state_id' => '787','name' => 'Jurado'),\n \t array('id' => '12999','state_id' => '787','name' => 'Litoral del San Juan'),\n \t array('id' => '13000','state_id' => '787','name' => 'Lloro'),\n \t array('id' => '13001','state_id' => '787','name' => 'Medio Atrato'),\n \t array('id' => '13002','state_id' => '787','name' => 'Medio Baudo'),\n \t array('id' => '13003','state_id' => '787','name' => 'Medio San Juan'),\n \t array('id' => '13004','state_id' => '787','name' => 'Novita'),\n \t array('id' => '13005','state_id' => '787','name' => 'Nuqui'),\n \t array('id' => '13006','state_id' => '787','name' => 'Quibdo'),\n \t array('id' => '13007','state_id' => '787','name' => 'Rio Iro'),\n \t array('id' => '13008','state_id' => '787','name' => 'Rio Quito'),\n \t array('id' => '13009','state_id' => '787','name' => 'Riosucio'),\n \t array('id' => '13010','state_id' => '787','name' => 'San Jose del Palmar'),\n \t array('id' => '13011','state_id' => '787','name' => 'Sipi'),\n \t array('id' => '13012','state_id' => '787','name' => 'Tado'),\n \t array('id' => '13013','state_id' => '787','name' => 'Unguia'),\n \t array('id' => '13014','state_id' => '787','name' => 'Union Panamericana'),\n \t array('id' => '13015','state_id' => '788','name' => 'Ayapel'),\n \t array('id' => '13016','state_id' => '788','name' => 'Buenavista'),\n \t array('id' => '13017','state_id' => '788','name' => 'Canalete'),\n \t array('id' => '13018','state_id' => '788','name' => 'Cerete'),\n \t array('id' => '13019','state_id' => '788','name' => 'Chima'),\n \t array('id' => '13020','state_id' => '788','name' => 'Chinu'),\n \t array('id' => '13021','state_id' => '788','name' => 'Cienaga de Oro'),\n \t array('id' => '13022','state_id' => '788','name' => 'Cotorra'),\n \t array('id' => '13023','state_id' => '788','name' => 'La Apartada'),\n \t array('id' => '13024','state_id' => '788','name' => 'Lorica'),\n \t array('id' => '13025','state_id' => '788','name' => 'Los Cordobas'),\n \t array('id' => '13026','state_id' => '788','name' => 'Momil'),\n \t array('id' => '13027','state_id' => '788','name' => 'Monitos'),\n \t array('id' => '13028','state_id' => '788','name' => 'Montelibano'),\n \t array('id' => '13029','state_id' => '788','name' => 'Monteria'),\n \t array('id' => '13030','state_id' => '788','name' => 'Planeta Rica'),\n \t array('id' => '13031','state_id' => '788','name' => 'Pueblo Nuevo'),\n \t array('id' => '13032','state_id' => '788','name' => 'Puerto Escondido'),\n \t array('id' => '13033','state_id' => '788','name' => 'Puerto Libertador'),\n \t array('id' => '13034','state_id' => '788','name' => 'Purisima'),\n \t array('id' => '13035','state_id' => '788','name' => 'Sahagun'),\n \t array('id' => '13036','state_id' => '788','name' => 'San Andres Sotavento'),\n \t array('id' => '13037','state_id' => '788','name' => 'San Antero'),\n \t array('id' => '13038','state_id' => '788','name' => 'San Bernardo Viento'),\n \t array('id' => '13039','state_id' => '788','name' => 'San Carlos'),\n \t array('id' => '13040','state_id' => '788','name' => 'San Pelayo'),\n \t array('id' => '13041','state_id' => '788','name' => 'Tierralta'),\n \t array('id' => '13042','state_id' => '788','name' => 'Valencia'),\n \t array('id' => '13043','state_id' => '789','name' => 'Agua de Dios'),\n \t array('id' => '13044','state_id' => '789','name' => 'Alban'),\n \t array('id' => '13045','state_id' => '789','name' => 'Anapoima'),\n \t array('id' => '13046','state_id' => '789','name' => 'Anolaima'),\n \t array('id' => '13047','state_id' => '789','name' => 'Arbelaez'),\n \t array('id' => '13048','state_id' => '789','name' => 'Beltran'),\n \t array('id' => '13049','state_id' => '789','name' => 'Bituima'),\n \t array('id' => '13050','state_id' => '789','name' => 'Bojaca'),\n \t array('id' => '13051','state_id' => '789','name' => 'Cabrera'),\n \t array('id' => '13052','state_id' => '789','name' => 'Cachipay'),\n \t array('id' => '13053','state_id' => '789','name' => 'Cajica'),\n \t array('id' => '13054','state_id' => '789','name' => 'Caparrapi'),\n \t array('id' => '13055','state_id' => '789','name' => 'Caqueza'),\n \t array('id' => '13056','state_id' => '789','name' => 'Carmen de Carupa'),\n \t array('id' => '13057','state_id' => '789','name' => 'Chaguani'),\n \t array('id' => '13058','state_id' => '789','name' => 'Chia'),\n \t array('id' => '13059','state_id' => '789','name' => 'Chipaque'),\n \t array('id' => '13060','state_id' => '789','name' => 'Choachi'),\n \t array('id' => '13061','state_id' => '789','name' => 'Choconta'),\n \t array('id' => '13062','state_id' => '789','name' => 'Cogua'),\n \t array('id' => '13063','state_id' => '789','name' => 'Cota'),\n \t array('id' => '13064','state_id' => '789','name' => 'Cucunuba'),\n \t array('id' => '13065','state_id' => '789','name' => 'El Colegio'),\n \t array('id' => '13066','state_id' => '789','name' => 'El Penon'),\n \t array('id' => '13067','state_id' => '789','name' => 'El Rosal'),\n \t array('id' => '13068','state_id' => '789','name' => 'Facatativa'),\n \t array('id' => '13069','state_id' => '789','name' => 'Fomeque'),\n \t array('id' => '13070','state_id' => '789','name' => 'Fosca'),\n \t array('id' => '13071','state_id' => '789','name' => 'Funza'),\n \t array('id' => '13072','state_id' => '789','name' => 'Fuquene'),\n \t array('id' => '13073','state_id' => '789','name' => 'Fusagasuga'),\n \t array('id' => '13074','state_id' => '789','name' => 'Gachala'),\n \t array('id' => '13075','state_id' => '789','name' => 'Gachancipa'),\n \t array('id' => '13076','state_id' => '789','name' => 'Gacheta'),\n \t array('id' => '13077','state_id' => '789','name' => 'Gama'),\n \t array('id' => '13078','state_id' => '789','name' => 'Girardot'),\n \t array('id' => '13079','state_id' => '789','name' => 'Granada'),\n \t array('id' => '13080','state_id' => '789','name' => 'Guacheta'),\n \t array('id' => '13081','state_id' => '789','name' => 'Guaduas'),\n \t array('id' => '13082','state_id' => '789','name' => 'Guasca'),\n \t array('id' => '13083','state_id' => '789','name' => 'Guataqui'),\n \t array('id' => '13084','state_id' => '789','name' => 'Guatavita'),\n \t array('id' => '13085','state_id' => '789','name' => 'Guayabal de Siquima'),\n \t array('id' => '13086','state_id' => '789','name' => 'Guayabetal'),\n \t array('id' => '13087','state_id' => '789','name' => 'Gutierrez'),\n \t array('id' => '13088','state_id' => '789','name' => 'Jerusalen'),\n \t array('id' => '13089','state_id' => '789','name' => 'Junin'),\n \t array('id' => '13090','state_id' => '789','name' => 'La Calera'),\n \t array('id' => '13091','state_id' => '789','name' => 'La Mesa'),\n \t array('id' => '13092','state_id' => '789','name' => 'La Palma'),\n \t array('id' => '13093','state_id' => '789','name' => 'La Pena'),\n \t array('id' => '13094','state_id' => '789','name' => 'La Vega'),\n \t array('id' => '13095','state_id' => '789','name' => 'Lenguazaque'),\n \t array('id' => '13096','state_id' => '789','name' => 'Macheta'),\n \t array('id' => '13097','state_id' => '789','name' => 'Madrid'),\n \t array('id' => '13098','state_id' => '789','name' => 'Manta'),\n \t array('id' => '13099','state_id' => '789','name' => 'Medina'),\n \t array('id' => '13100','state_id' => '789','name' => 'Mosquera'),\n \t array('id' => '13101','state_id' => '789','name' => 'Narino'),\n \t array('id' => '13102','state_id' => '789','name' => 'Nemocon'),\n \t array('id' => '13103','state_id' => '789','name' => 'Nilo'),\n \t array('id' => '13104','state_id' => '789','name' => 'Nimaima'),\n \t array('id' => '13105','state_id' => '789','name' => 'Nocaima'),\n \t array('id' => '13106','state_id' => '789','name' => 'Ospina Perez'),\n \t array('id' => '13107','state_id' => '789','name' => 'Pacho'),\n \t array('id' => '13108','state_id' => '789','name' => 'Paime'),\n \t array('id' => '13109','state_id' => '789','name' => 'Pandi'),\n \t array('id' => '13110','state_id' => '789','name' => 'Paratebueno'),\n \t array('id' => '13111','state_id' => '789','name' => 'Pasca'),\n \t array('id' => '13112','state_id' => '789','name' => 'Puerto Salgar'),\n \t array('id' => '13113','state_id' => '789','name' => 'Puli'),\n \t array('id' => '13114','state_id' => '789','name' => 'Quebradanegra'),\n \t array('id' => '13115','state_id' => '789','name' => 'Quetame'),\n \t array('id' => '13116','state_id' => '789','name' => 'Quipile'),\n \t array('id' => '13117','state_id' => '789','name' => 'Rafael Reyes'),\n \t array('id' => '13118','state_id' => '789','name' => 'Ricaurte'),\n \t array('id' => '13119','state_id' => '789','name' => 'San Antonio del Tequendama'),\n \t array('id' => '13120','state_id' => '789','name' => 'San Bernardo'),\n \t array('id' => '13121','state_id' => '789','name' => 'San Cayetano'),\n \t array('id' => '13122','state_id' => '789','name' => 'San Francisco'),\n \t array('id' => '13123','state_id' => '789','name' => 'San Juan de Rioseco'),\n \t array('id' => '13124','state_id' => '789','name' => 'Sasaima'),\n \t array('id' => '13125','state_id' => '789','name' => 'Sesquile'),\n \t array('id' => '13126','state_id' => '789','name' => 'Sibate'),\n \t array('id' => '13127','state_id' => '789','name' => 'Silvania'),\n \t array('id' => '13128','state_id' => '789','name' => 'Simijaca'),\n \t array('id' => '13129','state_id' => '789','name' => 'Soacha'),\n \t array('id' => '13130','state_id' => '789','name' => 'Sopo'),\n \t array('id' => '13131','state_id' => '789','name' => 'Subachoque'),\n \t array('id' => '13132','state_id' => '789','name' => 'Suesca'),\n \t array('id' => '13133','state_id' => '789','name' => 'Supata'),\n \t array('id' => '13134','state_id' => '789','name' => 'Susa'),\n \t array('id' => '13135','state_id' => '789','name' => 'Sutatausa'),\n \t array('id' => '13136','state_id' => '789','name' => 'Tabio'),\n \t array('id' => '13137','state_id' => '789','name' => 'Tausa'),\n \t array('id' => '13138','state_id' => '789','name' => 'Tena'),\n \t array('id' => '13139','state_id' => '789','name' => 'Tenjo'),\n \t array('id' => '13140','state_id' => '789','name' => 'Tibacuy'),\n \t array('id' => '13141','state_id' => '789','name' => 'Tibirita'),\n \t array('id' => '13142','state_id' => '789','name' => 'Tocaima'),\n \t array('id' => '13143','state_id' => '789','name' => 'Tocancipa'),\n \t array('id' => '13144','state_id' => '789','name' => 'Topaipi'),\n \t array('id' => '13145','state_id' => '789','name' => 'Ubala'),\n \t array('id' => '13146','state_id' => '789','name' => 'Ubaque'),\n \t array('id' => '13147','state_id' => '789','name' => 'Ubate'),\n \t array('id' => '13148','state_id' => '789','name' => 'Une'),\n \t array('id' => '13149','state_id' => '789','name' => 'Utica'),\n \t array('id' => '13150','state_id' => '789','name' => 'Vergara'),\n \t array('id' => '13151','state_id' => '789','name' => 'Viani'),\n \t array('id' => '13152','state_id' => '789','name' => 'Villagomez'),\n \t array('id' => '13153','state_id' => '789','name' => 'Villapinzon'),\n \t array('id' => '13154','state_id' => '789','name' => 'Villeta'),\n \t array('id' => '13155','state_id' => '789','name' => 'Viota'),\n \t array('id' => '13156','state_id' => '789','name' => 'Yacopi'),\n \t array('id' => '13157','state_id' => '789','name' => 'Zipacon'),\n \t array('id' => '13158','state_id' => '789','name' => 'Zipaquira'),\n \t array('id' => '13159','state_id' => '790','name' => 'Inirida'),\n \t array('id' => '13160','state_id' => '791','name' => 'Calamar'),\n \t array('id' => '13161','state_id' => '791','name' => 'El Retorno'),\n \t array('id' => '13162','state_id' => '791','name' => 'Miraflores'),\n \t array('id' => '13163','state_id' => '791','name' => 'San Jose del Guaviare'),\n \t array('id' => '13164','state_id' => '792','name' => 'Acevedo'),\n \t array('id' => '13165','state_id' => '792','name' => 'Agrado'),\n \t array('id' => '13166','state_id' => '792','name' => 'Aipe'),\n \t array('id' => '13167','state_id' => '792','name' => 'Algeciras'),\n \t array('id' => '13168','state_id' => '792','name' => 'Altamira'),\n \t array('id' => '13169','state_id' => '792','name' => 'Baraya'),\n \t array('id' => '13170','state_id' => '792','name' => 'Campoalegre'),\n \t array('id' => '13171','state_id' => '792','name' => 'Colombia'),\n \t array('id' => '13172','state_id' => '792','name' => 'Elias'),\n \t array('id' => '13173','state_id' => '792','name' => 'Garzon'),\n \t array('id' => '13174','state_id' => '792','name' => 'Gigante'),\n \t array('id' => '13175','state_id' => '792','name' => 'Guadalupe'),\n \t array('id' => '13176','state_id' => '792','name' => 'Hobo'),\n \t array('id' => '13177','state_id' => '792','name' => 'Iquira'),\n \t array('id' => '13178','state_id' => '792','name' => 'Isnos'),\n \t array('id' => '13179','state_id' => '792','name' => 'La Argentina'),\n \t array('id' => '13180','state_id' => '792','name' => 'La Plata'),\n \t array('id' => '13181','state_id' => '792','name' => 'Nataga'),\n \t array('id' => '13182','state_id' => '792','name' => 'Neiva'),\n \t array('id' => '13183','state_id' => '792','name' => 'Oporapa'),\n \t array('id' => '13184','state_id' => '792','name' => 'Paicol'),\n \t array('id' => '13185','state_id' => '792','name' => 'Palermo'),\n \t array('id' => '13186','state_id' => '792','name' => 'Palestina'),\n \t array('id' => '13187','state_id' => '792','name' => 'Pital'),\n \t array('id' => '13188','state_id' => '792','name' => 'Pitalito'),\n \t array('id' => '13189','state_id' => '792','name' => 'Rivera'),\n \t array('id' => '13190','state_id' => '792','name' => 'Saladoblanco'),\n \t array('id' => '13191','state_id' => '792','name' => 'San Agustin'),\n \t array('id' => '13192','state_id' => '792','name' => 'Santa Maria'),\n \t array('id' => '13193','state_id' => '792','name' => 'Suaza'),\n \t array('id' => '13194','state_id' => '792','name' => 'Tarqui'),\n \t array('id' => '13195','state_id' => '792','name' => 'Tello'),\n \t array('id' => '13196','state_id' => '792','name' => 'Teruel'),\n \t array('id' => '13197','state_id' => '792','name' => 'Tesalia'),\n \t array('id' => '13198','state_id' => '792','name' => 'Timana'),\n \t array('id' => '13199','state_id' => '792','name' => 'Villavieja'),\n \t array('id' => '13200','state_id' => '792','name' => 'Yaguara'),\n \t array('id' => '13201','state_id' => '794','name' => 'Algarrobo'),\n \t array('id' => '13202','state_id' => '794','name' => 'Aracataca'),\n \t array('id' => '13203','state_id' => '794','name' => 'Ariguani'),\n \t array('id' => '13204','state_id' => '794','name' => 'Cerro San Antonio'),\n \t array('id' => '13205','state_id' => '794','name' => 'Chivolo'),\n \t array('id' => '13206','state_id' => '794','name' => 'Cienaga'),\n \t array('id' => '13207','state_id' => '794','name' => 'Concordia'),\n \t array('id' => '13208','state_id' => '794','name' => 'El Banco'),\n \t array('id' => '13209','state_id' => '794','name' => 'El Pinon'),\n \t array('id' => '13210','state_id' => '794','name' => 'El Reten'),\n \t array('id' => '13211','state_id' => '794','name' => 'Fundacion'),\n \t array('id' => '13212','state_id' => '794','name' => 'Guamal'),\n \t array('id' => '13213','state_id' => '794','name' => 'Nueva Granada'),\n \t array('id' => '13214','state_id' => '794','name' => 'Pedraza'),\n \t array('id' => '13215','state_id' => '794','name' => 'Pijino del Carmen'),\n \t array('id' => '13216','state_id' => '794','name' => 'Pivijay'),\n \t array('id' => '13217','state_id' => '794','name' => 'Plato'),\n \t array('id' => '13218','state_id' => '794','name' => 'Puebloviejo'),\n \t array('id' => '13219','state_id' => '794','name' => 'Remolino'),\n \t array('id' => '13220','state_id' => '794','name' => 'Sabanas de San Angel'),\n \t array('id' => '13221','state_id' => '794','name' => 'Salamina'),\n \t array('id' => '13222','state_id' => '794','name' => 'San Sebastian'),\n \t array('id' => '13223','state_id' => '794','name' => 'San Zenon'),\n \t array('id' => '13224','state_id' => '794','name' => 'Santa Ana'),\n \t array('id' => '13225','state_id' => '794','name' => 'Santa Barbara de Pinto'),\n \t array('id' => '13226','state_id' => '794','name' => 'Santa Marta'),\n \t array('id' => '13227','state_id' => '794','name' => 'Sitionuevo'),\n \t array('id' => '13228','state_id' => '794','name' => 'Tenerife'),\n \t array('id' => '13229','state_id' => '794','name' => 'Zapayan'),\n \t array('id' => '13230','state_id' => '794','name' => 'Zona Bananera'),\n \t array('id' => '13231','state_id' => '795','name' => 'Acacias'),\n \t array('id' => '13232','state_id' => '795','name' => 'Barranca de Upia'),\n \t array('id' => '13233','state_id' => '795','name' => 'Cabuyaro'),\n \t array('id' => '13234','state_id' => '795','name' => 'Castilla la Nueva'),\n \t array('id' => '13235','state_id' => '795','name' => 'Cubarral'),\n \t array('id' => '13236','state_id' => '795','name' => 'Cumaral'),\n \t array('id' => '13237','state_id' => '795','name' => 'El Calvario'),\n \t array('id' => '13238','state_id' => '795','name' => 'El Castillo'),\n \t array('id' => '13239','state_id' => '795','name' => 'El Dorado'),\n \t array('id' => '13240','state_id' => '795','name' => 'Fuente de Oro'),\n \t array('id' => '13241','state_id' => '795','name' => 'Granada'),\n \t array('id' => '13242','state_id' => '795','name' => 'Guamal'),\n \t array('id' => '13243','state_id' => '795','name' => 'La Macarena'),\n \t array('id' => '13244','state_id' => '795','name' => 'La Uribe'),\n \t array('id' => '13245','state_id' => '795','name' => 'Lejanias'),\n \t array('id' => '13246','state_id' => '795','name' => 'Mapiripan'),\n \t array('id' => '13247','state_id' => '795','name' => 'Mesetas'),\n \t array('id' => '13248','state_id' => '795','name' => 'Puerto Concordia'),\n \t array('id' => '13249','state_id' => '795','name' => 'Puerto Gaitan'),\n \t array('id' => '13250','state_id' => '795','name' => 'Puerto Lleras'),\n \t array('id' => '13251','state_id' => '795','name' => 'Puerto Lopez'),\n \t array('id' => '13252','state_id' => '795','name' => 'Puerto Rico'),\n \t array('id' => '13253','state_id' => '795','name' => 'Restrepo'),\n \t array('id' => '13254','state_id' => '795','name' => 'San Carlos Guaroa'),\n \t array('id' => '13255','state_id' => '795','name' => 'San Juan de Arama'),\n \t array('id' => '13256','state_id' => '795','name' => 'San Juanito'),\n \t array('id' => '13257','state_id' => '795','name' => 'San Martin'),\n \t array('id' => '13258','state_id' => '795','name' => 'Villavicencio'),\n \t array('id' => '13259','state_id' => '795','name' => 'Vista Hermosa'),\n \t array('id' => '13260','state_id' => '796','name' => 'Alban'),\n \t array('id' => '13261','state_id' => '796','name' => 'Aldana'),\n \t array('id' => '13262','state_id' => '796','name' => 'Ancuya'),\n \t array('id' => '13263','state_id' => '796','name' => 'Arboleda'),\n \t array('id' => '13264','state_id' => '796','name' => 'Barbacoas'),\n \t array('id' => '13265','state_id' => '796','name' => 'Belen'),\n \t array('id' => '13266','state_id' => '796','name' => 'Buesaco'),\n \t array('id' => '13267','state_id' => '796','name' => 'Chachagui'),\n \t array('id' => '13268','state_id' => '796','name' => 'Colon'),\n \t array('id' => '13269','state_id' => '796','name' => 'Consaca'),\n \t array('id' => '13270','state_id' => '796','name' => 'Contadero'),\n \t array('id' => '13271','state_id' => '796','name' => 'Cordoba'),\n \t array('id' => '13272','state_id' => '796','name' => 'Cuaspud'),\n \t array('id' => '13273','state_id' => '796','name' => 'Cumbal'),\n \t array('id' => '13274','state_id' => '796','name' => 'Cumbitara'),\n \t array('id' => '13275','state_id' => '796','name' => 'El Charco'),\n \t array('id' => '13276','state_id' => '796','name' => 'El Penol'),\n \t array('id' => '13277','state_id' => '796','name' => 'El Rosario'),\n \t array('id' => '13278','state_id' => '796','name' => 'El Tablon'),\n \t array('id' => '13279','state_id' => '796','name' => 'El Tambo'),\n \t array('id' => '13280','state_id' => '796','name' => 'Funes'),\n \t array('id' => '13281','state_id' => '796','name' => 'Guachucal'),\n \t array('id' => '13282','state_id' => '796','name' => 'Guaitarilla'),\n \t array('id' => '13283','state_id' => '796','name' => 'Gualmatan'),\n \t array('id' => '13284','state_id' => '796','name' => 'Iles'),\n \t array('id' => '13285','state_id' => '796','name' => 'Imues'),\n \t array('id' => '13286','state_id' => '796','name' => 'Ipiales'),\n \t array('id' => '13287','state_id' => '796','name' => 'La Cruz'),\n \t array('id' => '13288','state_id' => '796','name' => 'La Florida'),\n \t array('id' => '13289','state_id' => '796','name' => 'La Llanada'),\n \t array('id' => '13290','state_id' => '796','name' => 'La Tola'),\n \t array('id' => '13291','state_id' => '796','name' => 'La Union'),\n \t array('id' => '13292','state_id' => '796','name' => 'Leiva'),\n \t array('id' => '13293','state_id' => '796','name' => 'Linares'),\n \t array('id' => '13294','state_id' => '796','name' => 'Los Andes'),\n \t array('id' => '13295','state_id' => '796','name' => 'Magui'),\n \t array('id' => '13296','state_id' => '796','name' => 'Mallama'),\n \t array('id' => '13297','state_id' => '796','name' => 'Mosquera'),\n \t array('id' => '13298','state_id' => '796','name' => 'Narino'),\n \t array('id' => '13299','state_id' => '796','name' => 'Olaya Herrera'),\n \t array('id' => '13300','state_id' => '796','name' => 'Ospina'),\n \t array('id' => '13301','state_id' => '796','name' => 'Pasto'),\n \t array('id' => '13302','state_id' => '796','name' => 'Pizarro'),\n \t array('id' => '13303','state_id' => '796','name' => 'Policarpa'),\n \t array('id' => '13304','state_id' => '796','name' => 'Potosi'),\n \t array('id' => '13305','state_id' => '796','name' => 'Providencia'),\n \t array('id' => '13306','state_id' => '796','name' => 'Puerres'),\n \t array('id' => '13307','state_id' => '796','name' => 'Pupiales'),\n \t array('id' => '13308','state_id' => '796','name' => 'Ricaurte'),\n \t array('id' => '13309','state_id' => '796','name' => 'Roberto Payan'),\n \t array('id' => '13310','state_id' => '796','name' => 'Samaniego'),\n \t array('id' => '13311','state_id' => '796','name' => 'San Bernardo'),\n \t array('id' => '13312','state_id' => '796','name' => 'San Lorenzo'),\n \t array('id' => '13313','state_id' => '796','name' => 'San Pablo'),\n \t array('id' => '13314','state_id' => '796','name' => 'San Pedro de Cartago'),\n \t array('id' => '13315','state_id' => '796','name' => 'Sandona'),\n \t array('id' => '13316','state_id' => '796','name' => 'Santa Barbara'),\n \t array('id' => '13317','state_id' => '796','name' => 'Santacruz'),\n \t array('id' => '13318','state_id' => '796','name' => 'Sapuyes'),\n \t array('id' => '13319','state_id' => '796','name' => 'Taminango'),\n \t array('id' => '13320','state_id' => '796','name' => 'Tangua'),\n \t array('id' => '13321','state_id' => '796','name' => 'Tumaco'),\n \t array('id' => '13322','state_id' => '796','name' => 'Tuquerres'),\n \t array('id' => '13323','state_id' => '796','name' => 'Yacuanquer'),\n \t array('id' => '13324','state_id' => '798','name' => 'Colon'),\n \t array('id' => '13325','state_id' => '798','name' => 'Mocoa'),\n \t array('id' => '13326','state_id' => '798','name' => 'Orito'),\n \t array('id' => '13327','state_id' => '798','name' => 'Puerto Asis'),\n \t array('id' => '13328','state_id' => '798','name' => 'Puerto Caycedo'),\n \t array('id' => '13329','state_id' => '798','name' => 'Puerto Guzman'),\n \t array('id' => '13330','state_id' => '798','name' => 'Puerto Leguizamo'),\n \t array('id' => '13331','state_id' => '798','name' => 'San Francisco'),\n \t array('id' => '13332','state_id' => '798','name' => 'San Miguel'),\n \t array('id' => '13333','state_id' => '798','name' => 'Santiago'),\n \t array('id' => '13334','state_id' => '798','name' => 'Sibundoy'),\n \t array('id' => '13335','state_id' => '798','name' => 'Valle del Guamuez'),\n \t array('id' => '13336','state_id' => '798','name' => 'Villagarzon'),\n \t array('id' => '13337','state_id' => '799','name' => 'Armenia'),\n \t array('id' => '13338','state_id' => '799','name' => 'Buenavista'),\n \t array('id' => '13339','state_id' => '799','name' => 'Calarca'),\n \t array('id' => '13340','state_id' => '799','name' => 'Circasia'),\n \t array('id' => '13341','state_id' => '799','name' => 'Cordoba'),\n \t array('id' => '13342','state_id' => '799','name' => 'Filandia'),\n \t array('id' => '13343','state_id' => '799','name' => 'Genova'),\n \t array('id' => '13344','state_id' => '799','name' => 'La Tebaida'),\n \t array('id' => '13345','state_id' => '799','name' => 'Montenegro'),\n \t array('id' => '13346','state_id' => '799','name' => 'Pijao'),\n \t array('id' => '13347','state_id' => '799','name' => 'Quimbaya'),\n \t array('id' => '13348','state_id' => '799','name' => 'Salento'),\n \t array('id' => '13349','state_id' => '800','name' => 'Apia'),\n \t array('id' => '13350','state_id' => '800','name' => 'Balboa'),\n \t array('id' => '13351','state_id' => '800','name' => 'Belen de Umbria'),\n \t array('id' => '13352','state_id' => '800','name' => 'Dos Quebradas'),\n \t array('id' => '13353','state_id' => '800','name' => 'Guatica'),\n \t array('id' => '13354','state_id' => '800','name' => 'La Celia'),\n \t array('id' => '13355','state_id' => '800','name' => 'La Virginia'),\n \t array('id' => '13356','state_id' => '800','name' => 'Marsella'),\n \t array('id' => '13357','state_id' => '800','name' => 'Mistrato'),\n \t array('id' => '13358','state_id' => '800','name' => 'Pereira'),\n \t array('id' => '13359','state_id' => '800','name' => 'Pueblo Rico'),\n \t array('id' => '13360','state_id' => '800','name' => 'Quinchia'),\n \t array('id' => '13361','state_id' => '800','name' => 'Santa Rosa de Cabal'),\n \t array('id' => '13362','state_id' => '800','name' => 'Santuario'),\n \t array('id' => '13363','state_id' => '802','name' => 'Aguada'),\n \t array('id' => '13364','state_id' => '802','name' => 'Albania'),\n \t array('id' => '13365','state_id' => '802','name' => 'Aratoca'),\n \t array('id' => '13366','state_id' => '802','name' => 'Barbosa'),\n \t array('id' => '13367','state_id' => '802','name' => 'Barichara'),\n \t array('id' => '13368','state_id' => '802','name' => 'Barrancabermeja'),\n \t array('id' => '13369','state_id' => '802','name' => 'Betulia'),\n \t array('id' => '13370','state_id' => '802','name' => 'Bolivar'),\n \t array('id' => '13371','state_id' => '802','name' => 'Bucaramanga'),\n \t array('id' => '13372','state_id' => '802','name' => 'Cabrera'),\n \t array('id' => '13373','state_id' => '802','name' => 'California'),\n \t array('id' => '13374','state_id' => '802','name' => 'Capitanejo'),\n \t array('id' => '13375','state_id' => '802','name' => 'Carcasi'),\n \t array('id' => '13376','state_id' => '802','name' => 'Cepita'),\n \t array('id' => '13377','state_id' => '802','name' => 'Cerrito'),\n \t array('id' => '13378','state_id' => '802','name' => 'Charala'),\n \t array('id' => '13379','state_id' => '802','name' => 'Charta'),\n \t array('id' => '13380','state_id' => '802','name' => 'Chima'),\n \t array('id' => '13381','state_id' => '802','name' => 'Chipata'),\n \t array('id' => '13382','state_id' => '802','name' => 'Cimitarra'),\n \t array('id' => '13383','state_id' => '802','name' => 'Concepcion'),\n \t array('id' => '13384','state_id' => '802','name' => 'Confines'),\n \t array('id' => '13385','state_id' => '802','name' => 'Contratacion'),\n \t array('id' => '13386','state_id' => '802','name' => 'Coromoro'),\n \t array('id' => '13387','state_id' => '802','name' => 'Curiti'),\n \t array('id' => '13388','state_id' => '802','name' => 'El Carmen'),\n \t array('id' => '13389','state_id' => '802','name' => 'El Guacamayo'),\n \t array('id' => '13390','state_id' => '802','name' => 'El Penon'),\n \t array('id' => '13391','state_id' => '802','name' => 'El Playon'),\n \t array('id' => '13392','state_id' => '802','name' => 'Encino'),\n \t array('id' => '13393','state_id' => '802','name' => 'Enciso'),\n \t array('id' => '13394','state_id' => '802','name' => 'Florian'),\n \t array('id' => '13395','state_id' => '802','name' => 'Floridablanca'),\n \t array('id' => '13396','state_id' => '802','name' => 'Galan'),\n \t array('id' => '13397','state_id' => '802','name' => 'Gambita'),\n \t array('id' => '13398','state_id' => '802','name' => 'Giron'),\n \t array('id' => '13399','state_id' => '802','name' => 'Guaca'),\n \t array('id' => '13400','state_id' => '802','name' => 'Guadalupe'),\n \t array('id' => '13401','state_id' => '802','name' => 'Guapota'),\n \t array('id' => '13402','state_id' => '802','name' => 'Guavata'),\n \t array('id' => '13403','state_id' => '802','name' => 'Guepsa'),\n \t array('id' => '13404','state_id' => '802','name' => 'Hato'),\n \t array('id' => '13405','state_id' => '802','name' => 'Jesus Maria'),\n \t array('id' => '13406','state_id' => '802','name' => 'Jordan'),\n \t array('id' => '13407','state_id' => '802','name' => 'La Belleza'),\n \t array('id' => '13408','state_id' => '802','name' => 'La Paz'),\n \t array('id' => '13409','state_id' => '802','name' => 'Landazuri'),\n \t array('id' => '13410','state_id' => '802','name' => 'Lebrija'),\n \t array('id' => '13411','state_id' => '802','name' => 'Los Santos'),\n \t array('id' => '13412','state_id' => '802','name' => 'Macaravita'),\n \t array('id' => '13413','state_id' => '802','name' => 'Malaga'),\n \t array('id' => '13414','state_id' => '802','name' => 'Matanza'),\n \t array('id' => '13415','state_id' => '802','name' => 'Mogotes'),\n \t array('id' => '13416','state_id' => '802','name' => 'Molagavita'),\n \t array('id' => '13417','state_id' => '802','name' => 'Ocamonte'),\n \t array('id' => '13418','state_id' => '802','name' => 'Oiba'),\n \t array('id' => '13419','state_id' => '802','name' => 'Onzaga'),\n \t array('id' => '13420','state_id' => '802','name' => 'Palmar'),\n \t array('id' => '13421','state_id' => '802','name' => 'Palmas del Socorro'),\n \t array('id' => '13422','state_id' => '802','name' => 'Paramo'),\n \t array('id' => '13423','state_id' => '802','name' => 'Piedecuesta'),\n \t array('id' => '13424','state_id' => '802','name' => 'Pinchote'),\n \t array('id' => '13425','state_id' => '802','name' => 'Puente Nacional'),\n \t array('id' => '13426','state_id' => '802','name' => 'Puerto Parra'),\n \t array('id' => '13427','state_id' => '802','name' => 'Puerto Wilches'),\n \t array('id' => '13428','state_id' => '802','name' => 'Rionegro'),\n \t array('id' => '13429','state_id' => '802','name' => 'Sabana de Torres'),\n \t array('id' => '13430','state_id' => '802','name' => 'San Andres'),\n \t array('id' => '13431','state_id' => '802','name' => 'San Benito'),\n \t array('id' => '13432','state_id' => '802','name' => 'San Gil'),\n \t array('id' => '13433','state_id' => '802','name' => 'San Joaquin'),\n \t array('id' => '13434','state_id' => '802','name' => 'San Jose de Miranda'),\n \t array('id' => '13435','state_id' => '802','name' => 'San Miguel'),\n \t array('id' => '13436','state_id' => '802','name' => 'San Vicente de Chucuri'),\n \t array('id' => '13437','state_id' => '802','name' => 'Santa Barbara'),\n \t array('id' => '13438','state_id' => '802','name' => 'Santa Helena'),\n \t array('id' => '13439','state_id' => '802','name' => 'Simacota'),\n \t array('id' => '13440','state_id' => '802','name' => 'Socorro'),\n \t array('id' => '13441','state_id' => '802','name' => 'Suaita'),\n \t array('id' => '13442','state_id' => '802','name' => 'Sucre'),\n \t array('id' => '13443','state_id' => '802','name' => 'Surata'),\n \t array('id' => '13444','state_id' => '802','name' => 'Tona'),\n \t array('id' => '13445','state_id' => '802','name' => 'Valle San Jose'),\n \t array('id' => '13446','state_id' => '802','name' => 'Velez'),\n \t array('id' => '13447','state_id' => '802','name' => 'Vetas'),\n \t array('id' => '13448','state_id' => '802','name' => 'Villanueva'),\n \t array('id' => '13449','state_id' => '802','name' => 'Zapatoca'),\n \t array('id' => '13450','state_id' => '803','name' => 'Buenavista'),\n \t array('id' => '13451','state_id' => '803','name' => 'Caimito'),\n \t array('id' => '13452','state_id' => '803','name' => 'Chalan'),\n \t array('id' => '13453','state_id' => '803','name' => 'Coloso'),\n \t array('id' => '13454','state_id' => '803','name' => 'Corozal'),\n \t array('id' => '13455','state_id' => '803','name' => 'El Roble'),\n \t array('id' => '13456','state_id' => '803','name' => 'Galeras'),\n \t array('id' => '13457','state_id' => '803','name' => 'Guaranda'),\n \t array('id' => '13458','state_id' => '803','name' => 'La Union'),\n \t array('id' => '13459','state_id' => '803','name' => 'Los Palmitos'),\n \t array('id' => '13460','state_id' => '803','name' => 'Majagual'),\n \t array('id' => '13461','state_id' => '803','name' => 'Morroa'),\n \t array('id' => '13462','state_id' => '803','name' => 'Ovejas'),\n \t array('id' => '13463','state_id' => '803','name' => 'Palmito'),\n \t array('id' => '13464','state_id' => '803','name' => 'Sampues'),\n \t array('id' => '13465','state_id' => '803','name' => 'San Benito Abad'),\n \t array('id' => '13466','state_id' => '803','name' => 'San Juan de Betulia'),\n \t array('id' => '13467','state_id' => '803','name' => 'San Marcos'),\n \t array('id' => '13468','state_id' => '803','name' => 'San Onofre'),\n \t array('id' => '13469','state_id' => '803','name' => 'San Pedro'),\n \t array('id' => '13470','state_id' => '803','name' => 'Since'),\n \t array('id' => '13471','state_id' => '803','name' => 'Sincelejo'),\n \t array('id' => '13472','state_id' => '803','name' => 'Sucre'),\n \t array('id' => '13473','state_id' => '803','name' => 'Tolu'),\n \t array('id' => '13474','state_id' => '803','name' => 'Toluviejo'),\n \t array('id' => '13475','state_id' => '804','name' => 'Alpujarra'),\n \t array('id' => '13476','state_id' => '804','name' => 'Alvarado'),\n \t array('id' => '13477','state_id' => '804','name' => 'Ambalema'),\n \t array('id' => '13478','state_id' => '804','name' => 'Anzoategui'),\n \t array('id' => '13479','state_id' => '804','name' => 'Ataco'),\n \t array('id' => '13480','state_id' => '804','name' => 'Cajamarca'),\n \t array('id' => '13481','state_id' => '804','name' => 'Carmen de Apicala'),\n \t array('id' => '13482','state_id' => '804','name' => 'Casabianca'),\n \t array('id' => '13483','state_id' => '804','name' => 'Chaparral'),\n \t array('id' => '13484','state_id' => '804','name' => 'Coello'),\n \t array('id' => '13485','state_id' => '804','name' => 'Coyaima'),\n \t array('id' => '13486','state_id' => '804','name' => 'Cunday'),\n \t array('id' => '13487','state_id' => '804','name' => 'Dolores'),\n \t array('id' => '13488','state_id' => '804','name' => 'Espinal'),\n \t array('id' => '13489','state_id' => '804','name' => 'Falan'),\n \t array('id' => '13490','state_id' => '804','name' => 'Flandes'),\n \t array('id' => '13491','state_id' => '804','name' => 'Fresno'),\n \t array('id' => '13492','state_id' => '804','name' => 'Guamo'),\n \t array('id' => '13493','state_id' => '804','name' => 'Guayabal'),\n \t array('id' => '13494','state_id' => '804','name' => 'Herveo'),\n \t array('id' => '13495','state_id' => '804','name' => 'Honda'),\n \t array('id' => '13496','state_id' => '804','name' => 'Ibague'),\n \t array('id' => '13497','state_id' => '804','name' => 'Icononzo'),\n \t array('id' => '13498','state_id' => '804','name' => 'Lerida'),\n \t array('id' => '13499','state_id' => '804','name' => 'Libano'),\n \t array('id' => '13500','state_id' => '804','name' => 'Mariquita'),\n \t array('id' => '13501','state_id' => '804','name' => 'Melgar'),\n \t array('id' => '13502','state_id' => '804','name' => 'Murillo'),\n \t array('id' => '13503','state_id' => '804','name' => 'Natagaima'),\n \t array('id' => '13504','state_id' => '804','name' => 'Ortega'),\n \t array('id' => '13505','state_id' => '804','name' => 'Palocabildo'),\n \t array('id' => '13506','state_id' => '804','name' => 'Piedras'),\n \t array('id' => '13507','state_id' => '804','name' => 'Planadas'),\n \t array('id' => '13508','state_id' => '804','name' => 'Prado'),\n \t array('id' => '13509','state_id' => '804','name' => 'Purificacion'),\n \t array('id' => '13510','state_id' => '804','name' => 'Rioblanco'),\n \t array('id' => '13511','state_id' => '804','name' => 'Roncesvalles'),\n \t array('id' => '13512','state_id' => '804','name' => 'Rovira'),\n \t array('id' => '13513','state_id' => '804','name' => 'Saldana'),\n \t array('id' => '13514','state_id' => '804','name' => 'San Antonio'),\n \t array('id' => '13515','state_id' => '804','name' => 'San Luis'),\n \t array('id' => '13516','state_id' => '804','name' => 'Santa Isabel'),\n \t array('id' => '13517','state_id' => '804','name' => 'Suarez'),\n \t array('id' => '13518','state_id' => '804','name' => 'Valle de San Juan'),\n \t array('id' => '13519','state_id' => '804','name' => 'Venadillo'),\n \t array('id' => '13520','state_id' => '804','name' => 'Villahermosa'),\n \t array('id' => '13521','state_id' => '804','name' => 'Villarrica'),\n \t array('id' => '13522','state_id' => '806','name' => 'Acaricuara'),\n \t array('id' => '13523','state_id' => '806','name' => 'Mitu'),\n \t array('id' => '13524','state_id' => '806','name' => 'Papunaua'),\n \t array('id' => '13525','state_id' => '806','name' => 'Taraira'),\n \t array('id' => '13526','state_id' => '806','name' => 'Villa Fatima'),\n \t array('id' => '13527','state_id' => '806','name' => 'Yavarate'),\n \t array('id' => '13528','state_id' => '807','name' => 'Cumaribo'),\n \t array('id' => '13529','state_id' => '807','name' => 'La Primavera'),\n \t array('id' => '13530','state_id' => '807','name' => 'Puerto Carreno'),\n \t array('id' => '13531','state_id' => '807','name' => 'Santa Rosalia'),\n \t array('id' => '13532','state_id' => '808','name' => 'Fomboni'),\n \t array('id' => '13533','state_id' => '809','name' => 'Mitsamiouli'),\n \t array('id' => '13534','state_id' => '809','name' => 'Moroni'),\n \t array('id' => '13535','state_id' => '810','name' => 'Domoni'),\n \t array('id' => '13536','state_id' => '810','name' => 'Mutsamudu'),\n \t array('id' => '13537','state_id' => '811','name' => 'Loudima'),\n \t array('id' => '13538','state_id' => '811','name' => 'Madingou'),\n \t array('id' => '13539','state_id' => '811','name' => 'Nkayi'),\n \t array('id' => '13540','state_id' => '812','name' => 'Brazzaville'),\n \t array('id' => '13541','state_id' => '813','name' => 'Ewo'),\n \t array('id' => '13542','state_id' => '813','name' => 'Kelle'),\n \t array('id' => '13543','state_id' => '813','name' => 'Makoua'),\n \t array('id' => '13544','state_id' => '813','name' => 'Mossaka'),\n \t array('id' => '13545','state_id' => '813','name' => 'Owando'),\n \t array('id' => '13546','state_id' => '814','name' => 'Loandjili'),\n \t array('id' => '13547','state_id' => '814','name' => 'Ngamaba-Mfilou'),\n \t array('id' => '13548','state_id' => '814','name' => 'Pointe Noire'),\n \t array('id' => '13549','state_id' => '815','name' => 'Sibiti'),\n \t array('id' => '13550','state_id' => '815','name' => 'Zanaga'),\n \t array('id' => '13551','state_id' => '816','name' => 'Dongou'),\n \t array('id' => '13552','state_id' => '816','name' => 'Epena'),\n \t array('id' => '13553','state_id' => '816','name' => 'Impfondo'),\n \t array('id' => '13554','state_id' => '817','name' => 'Kibangou'),\n \t array('id' => '13555','state_id' => '817','name' => 'Loubomo'),\n \t array('id' => '13556','state_id' => '817','name' => 'Matsanga'),\n \t array('id' => '13557','state_id' => '817','name' => 'Mossendjo'),\n \t array('id' => '13558','state_id' => '818','name' => 'Djambala'),\n \t array('id' => '13559','state_id' => '818','name' => 'Gamboma'),\n \t array('id' => '13560','state_id' => '819','name' => 'Boko'),\n \t array('id' => '13561','state_id' => '819','name' => 'Kinkala'),\n \t array('id' => '13562','state_id' => '819','name' => 'Mindouli'),\n \t array('id' => '13563','state_id' => '820','name' => 'Ikelemba'),\n \t array('id' => '13564','state_id' => '820','name' => 'Ouesso'),\n \t array('id' => '13565','state_id' => '820','name' => 'Sembe'),\n \t array('id' => '13566','state_id' => '820','name' => 'Souanke'),\n \t array('id' => '13567','state_id' => '821','name' => 'Bandundu'),\n \t array('id' => '13568','state_id' => '821','name' => 'Bolobo'),\n \t array('id' => '13569','state_id' => '821','name' => 'Bulungu'),\n \t array('id' => '13570','state_id' => '821','name' => 'Gungu'),\n \t array('id' => '13571','state_id' => '821','name' => 'Idiofa'),\n \t array('id' => '13572','state_id' => '821','name' => 'Inongo'),\n \t array('id' => '13573','state_id' => '821','name' => 'Kahemba'),\n \t array('id' => '13574','state_id' => '821','name' => 'Kasongo-Lunda'),\n \t array('id' => '13575','state_id' => '821','name' => 'Kenge'),\n \t array('id' => '13576','state_id' => '821','name' => 'Kikwit'),\n \t array('id' => '13577','state_id' => '821','name' => 'Kiri'),\n \t array('id' => '13578','state_id' => '821','name' => 'Kutu'),\n \t array('id' => '13579','state_id' => '821','name' => 'Lusanga'),\n \t array('id' => '13580','state_id' => '821','name' => 'Mangai'),\n \t array('id' => '13581','state_id' => '821','name' => 'Mushie'),\n \t array('id' => '13582','state_id' => '821','name' => 'Nioki'),\n \t array('id' => '13583','state_id' => '822','name' => 'Boma'),\n \t array('id' => '13584','state_id' => '822','name' => 'Kasangulu'),\n \t array('id' => '13585','state_id' => '822','name' => 'Kimpese'),\n \t array('id' => '13586','state_id' => '822','name' => 'Madimba'),\n \t array('id' => '13587','state_id' => '822','name' => 'Matadi'),\n \t array('id' => '13588','state_id' => '822','name' => 'Mbanza-Ngungu'),\n \t array('id' => '13589','state_id' => '822','name' => 'Muanda'),\n \t array('id' => '13590','state_id' => '822','name' => 'Tshela'),\n \t array('id' => '13591','state_id' => '823','name' => 'Basankusu'),\n \t array('id' => '13592','state_id' => '823','name' => 'Binga'),\n \t array('id' => '13593','state_id' => '823','name' => 'Bodalangi'),\n \t array('id' => '13594','state_id' => '823','name' => 'Boende'),\n \t array('id' => '13595','state_id' => '823','name' => 'Bongandanga'),\n \t array('id' => '13596','state_id' => '823','name' => 'Bosobolo'),\n \t array('id' => '13597','state_id' => '823','name' => 'Bumba'),\n \t array('id' => '13598','state_id' => '823','name' => 'Businga'),\n \t array('id' => '13599','state_id' => '823','name' => 'Gbadolite'),\n \t array('id' => '13600','state_id' => '823','name' => 'Gemena'),\n \t array('id' => '13601','state_id' => '823','name' => 'Ikela'),\n \t array('id' => '13602','state_id' => '823','name' => 'Libenge'),\n \t array('id' => '13603','state_id' => '823','name' => 'Lisala'),\n \t array('id' => '13604','state_id' => '823','name' => 'Makanza'),\n \t array('id' => '13605','state_id' => '823','name' => 'Mbandaka'),\n \t array('id' => '13606','state_id' => '823','name' => 'Mobayi-Mbongo'),\n \t array('id' => '13607','state_id' => '823','name' => 'Yakoma'),\n \t array('id' => '13608','state_id' => '823','name' => 'Yandongi'),\n \t array('id' => '13609','state_id' => '823','name' => 'Yumbi'),\n \t array('id' => '13610','state_id' => '823','name' => 'Zongo'),\n \t array('id' => '13611','state_id' => '824','name' => 'Aba'),\n \t array('id' => '13612','state_id' => '824','name' => 'Aketi'),\n \t array('id' => '13613','state_id' => '824','name' => 'Bafwasende'),\n \t array('id' => '13614','state_id' => '824','name' => 'Banalia'),\n \t array('id' => '13615','state_id' => '824','name' => 'Basoko'),\n \t array('id' => '13616','state_id' => '824','name' => 'Bondo'),\n \t array('id' => '13617','state_id' => '824','name' => 'Bunia'),\n \t array('id' => '13618','state_id' => '824','name' => 'Buta'),\n \t array('id' => '13619','state_id' => '824','name' => 'Djugu'),\n \t array('id' => '13620','state_id' => '824','name' => 'Faradje'),\n \t array('id' => '13621','state_id' => '824','name' => 'Gwane'),\n \t array('id' => '13622','state_id' => '824','name' => 'Isiro'),\n \t array('id' => '13623','state_id' => '824','name' => 'Itoko'),\n \t array('id' => '13624','state_id' => '824','name' => 'Kisangani'),\n \t array('id' => '13625','state_id' => '824','name' => 'Mambasa'),\n \t array('id' => '13626','state_id' => '824','name' => 'Mongbwalu'),\n \t array('id' => '13627','state_id' => '824','name' => 'Niangara'),\n \t array('id' => '13628','state_id' => '824','name' => 'Poko'),\n \t array('id' => '13629','state_id' => '824','name' => 'Simba'),\n \t array('id' => '13630','state_id' => '824','name' => 'Titule'),\n \t array('id' => '13631','state_id' => '824','name' => 'Ubundu'),\n \t array('id' => '13632','state_id' => '824','name' => 'Wamba'),\n \t array('id' => '13633','state_id' => '824','name' => 'Watsa'),\n \t array('id' => '13634','state_id' => '824','name' => 'Yangambi'),\n \t array('id' => '13635','state_id' => '825','name' => 'Demba'),\n \t array('id' => '13636','state_id' => '825','name' => 'Dibaya'),\n \t array('id' => '13637','state_id' => '825','name' => 'Ilebo'),\n \t array('id' => '13638','state_id' => '825','name' => 'Kananga'),\n \t array('id' => '13639','state_id' => '825','name' => 'Kazumba'),\n \t array('id' => '13640','state_id' => '825','name' => 'Luebo'),\n \t array('id' => '13641','state_id' => '825','name' => 'Mweka'),\n \t array('id' => '13642','state_id' => '825','name' => 'Tshikapa'),\n \t array('id' => '13643','state_id' => '826','name' => 'Gandajika'),\n \t array('id' => '13644','state_id' => '826','name' => 'Kabinda'),\n \t array('id' => '13645','state_id' => '826','name' => 'Katako-Kombe'),\n \t array('id' => '13646','state_id' => '826','name' => 'Kole'),\n \t array('id' => '13647','state_id' => '826','name' => 'Lodja'),\n \t array('id' => '13648','state_id' => '826','name' => 'Lubao'),\n \t array('id' => '13649','state_id' => '826','name' => 'Lubefu'),\n \t array('id' => '13650','state_id' => '826','name' => 'Lusambo'),\n \t array('id' => '13651','state_id' => '826','name' => 'Mbuji-Mayi'),\n \t array('id' => '13652','state_id' => '826','name' => 'Mwene-Ditu'),\n \t array('id' => '13653','state_id' => '826','name' => 'Tshilenge'),\n \t array('id' => '13654','state_id' => '826','name' => 'Tshofa'),\n \t array('id' => '13655','state_id' => '827','name' => 'Bukama'),\n \t array('id' => '13656','state_id' => '827','name' => 'Dilolo'),\n \t array('id' => '13657','state_id' => '827','name' => 'Kabalo'),\n \t array('id' => '13658','state_id' => '827','name' => 'Kalemie'),\n \t array('id' => '13659','state_id' => '827','name' => 'Kambove'),\n \t array('id' => '13660','state_id' => '827','name' => 'Kamina'),\n \t array('id' => '13661','state_id' => '827','name' => 'Kaniama'),\n \t array('id' => '13662','state_id' => '827','name' => 'Kikondjo'),\n \t array('id' => '13663','state_id' => '827','name' => 'Kipushi'),\n \t array('id' => '13664','state_id' => '827','name' => 'Kolwezi'),\n \t array('id' => '13665','state_id' => '827','name' => 'Kongolo'),\n \t array('id' => '13666','state_id' => '827','name' => 'Le Marinel'),\n \t array('id' => '13667','state_id' => '827','name' => 'Likasi'),\n \t array('id' => '13668','state_id' => '827','name' => 'Lubudi'),\n \t array('id' => '13669','state_id' => '827','name' => 'Lubumbashi'),\n \t array('id' => '13670','state_id' => '827','name' => 'Malemba-Nkulu'),\n \t array('id' => '13671','state_id' => '827','name' => 'Manono'),\n \t array('id' => '13672','state_id' => '827','name' => 'Moba'),\n \t array('id' => '13673','state_id' => '827','name' => 'Mulongo'),\n \t array('id' => '13674','state_id' => '827','name' => 'Mwanza'),\n \t array('id' => '13675','state_id' => '827','name' => 'Nyunzu'),\n \t array('id' => '13676','state_id' => '827','name' => 'Sakania'),\n \t array('id' => '13677','state_id' => '827','name' => 'Shinkolobwe'),\n \t array('id' => '13678','state_id' => '828','name' => 'Kinshasa'),\n \t array('id' => '13679','state_id' => '829','name' => 'Kalima'),\n \t array('id' => '13680','state_id' => '829','name' => 'Kasongo'),\n \t array('id' => '13681','state_id' => '829','name' => 'Kindu'),\n \t array('id' => '13682','state_id' => '830','name' => 'Beni'),\n \t array('id' => '13683','state_id' => '830','name' => 'Butembo'),\n \t array('id' => '13684','state_id' => '830','name' => 'Goma'),\n \t array('id' => '13685','state_id' => '831','name' => 'Bukavu'),\n \t array('id' => '13686','state_id' => '831','name' => 'Kabare'),\n \t array('id' => '13687','state_id' => '831','name' => 'Kama'),\n \t array('id' => '13688','state_id' => '831','name' => 'Kampene'),\n \t array('id' => '13689','state_id' => '831','name' => 'Kibombo'),\n \t array('id' => '13690','state_id' => '831','name' => 'Uvira'),\n \t array('id' => '13691','state_id' => '832','name' => 'Amuri'),\n \t array('id' => '13692','state_id' => '833','name' => 'Atiu'),\n \t array('id' => '13693','state_id' => '834','name' => 'Mangaia'),\n \t array('id' => '13694','state_id' => '835','name' => 'Tauhunu'),\n \t array('id' => '13695','state_id' => '836','name' => 'Mauke'),\n \t array('id' => '13696','state_id' => '837','name' => 'Mitiaro'),\n \t array('id' => '13697','state_id' => '838','name' => 'Nassau'),\n \t array('id' => '13698','state_id' => '839','name' => 'Roto'),\n \t array('id' => '13699','state_id' => '840','name' => 'Rakahanga'),\n \t array('id' => '13700','state_id' => '841','name' => 'Avarua'),\n \t array('id' => '13701','state_id' => '842','name' => 'Omoka'),\n \t array('id' => '13702','state_id' => '843','name' => 'Alajuela'),\n \t array('id' => '13703','state_id' => '843','name' => 'Atenas'),\n \t array('id' => '13704','state_id' => '843','name' => 'Bijagua'),\n \t array('id' => '13705','state_id' => '843','name' => 'Buenos Aires'),\n \t array('id' => '13706','state_id' => '843','name' => 'Carrillos'),\n \t array('id' => '13707','state_id' => '843','name' => 'Desemparados'),\n \t array('id' => '13708','state_id' => '843','name' => 'Dos Rios'),\n \t array('id' => '13709','state_id' => '843','name' => 'Esquipulas'),\n \t array('id' => '13710','state_id' => '843','name' => 'Florencia'),\n \t array('id' => '13711','state_id' => '843','name' => 'Fortuna'),\n \t array('id' => '13712','state_id' => '843','name' => 'Grecia'),\n \t array('id' => '13713','state_id' => '843','name' => 'Guacimo'),\n \t array('id' => '13714','state_id' => '843','name' => 'Laguna'),\n \t array('id' => '13715','state_id' => '843','name' => 'Los Chiles'),\n \t array('id' => '13716','state_id' => '843','name' => 'Mastate'),\n \t array('id' => '13717','state_id' => '843','name' => 'Naranjo'),\n \t array('id' => '13718','state_id' => '843','name' => 'Orotina'),\n \t array('id' => '13719','state_id' => '843','name' => 'Palmares'),\n \t array('id' => '13720','state_id' => '843','name' => 'Piedades Norte'),\n \t array('id' => '13721','state_id' => '843','name' => 'Pital'),\n \t array('id' => '13722','state_id' => '843','name' => 'Pocosol'),\n \t array('id' => '13723','state_id' => '843','name' => 'Quesada'),\n \t array('id' => '13724','state_id' => '843','name' => 'Rio Segundo'),\n \t array('id' => '13725','state_id' => '843','name' => 'Sabanilla'),\n \t array('id' => '13726','state_id' => '843','name' => 'San Antonio'),\n \t array('id' => '13727','state_id' => '843','name' => 'San Jose'),\n \t array('id' => '13728','state_id' => '843','name' => 'San Juan'),\n \t array('id' => '13729','state_id' => '843','name' => 'San Mateo'),\n \t array('id' => '13730','state_id' => '843','name' => 'San Pedro'),\n \t array('id' => '13731','state_id' => '843','name' => 'San Rafael'),\n \t array('id' => '13732','state_id' => '843','name' => 'San Ramon'),\n \t array('id' => '13733','state_id' => '843','name' => 'San Roque'),\n \t array('id' => '13734','state_id' => '843','name' => 'Santiago'),\n \t array('id' => '13735','state_id' => '843','name' => 'Sarchi Norte'),\n \t array('id' => '13736','state_id' => '843','name' => 'Sarchi Sur'),\n \t array('id' => '13737','state_id' => '843','name' => 'Tigra'),\n \t array('id' => '13738','state_id' => '843','name' => 'Turricares'),\n \t array('id' => '13739','state_id' => '843','name' => 'Upala'),\n \t array('id' => '13740','state_id' => '843','name' => 'Venado'),\n \t array('id' => '13741','state_id' => '843','name' => 'Zarcero'),\n \t array('id' => '13742','state_id' => '844','name' => 'Aguacaliente'),\n \t array('id' => '13743','state_id' => '844','name' => 'Capellades'),\n \t array('id' => '13744','state_id' => '844','name' => 'Carmen'),\n \t array('id' => '13745','state_id' => '844','name' => 'Cartago'),\n \t array('id' => '13746','state_id' => '844','name' => 'Concepcion'),\n \t array('id' => '13747','state_id' => '844','name' => 'Cot'),\n \t array('id' => '13748','state_id' => '844','name' => 'Dulce Nombre'),\n \t array('id' => '13749','state_id' => '844','name' => 'El Tejar'),\n \t array('id' => '13750','state_id' => '844','name' => 'Guadalupe'),\n \t array('id' => '13751','state_id' => '844','name' => 'Juan Vinas'),\n \t array('id' => '13752','state_id' => '844','name' => 'La Suiza'),\n \t array('id' => '13753','state_id' => '844','name' => 'Orosi'),\n \t array('id' => '13754','state_id' => '844','name' => 'Pacayas'),\n \t array('id' => '13755','state_id' => '844','name' => 'Paraiso'),\n \t array('id' => '13756','state_id' => '844','name' => 'Pejibaye'),\n \t array('id' => '13757','state_id' => '844','name' => 'San Diego'),\n \t array('id' => '13758','state_id' => '844','name' => 'San Isidro'),\n \t array('id' => '13759','state_id' => '844','name' => 'San Juan'),\n \t array('id' => '13760','state_id' => '844','name' => 'San Nicolas'),\n \t array('id' => '13761','state_id' => '844','name' => 'San Rafael'),\n \t array('id' => '13762','state_id' => '844','name' => 'San Ramon'),\n \t array('id' => '13763','state_id' => '844','name' => 'Tierra Blanca'),\n \t array('id' => '13764','state_id' => '844','name' => 'Tobosi'),\n \t array('id' => '13765','state_id' => '844','name' => 'Tres Rios'),\n \t array('id' => '13766','state_id' => '844','name' => 'Tucurrique'),\n \t array('id' => '13767','state_id' => '844','name' => 'Turrialba'),\n \t array('id' => '13768','state_id' => '845','name' => 'Bagaces'),\n \t array('id' => '13769','state_id' => '845','name' => 'Belen'),\n \t array('id' => '13770','state_id' => '845','name' => 'Canas'),\n \t array('id' => '13771','state_id' => '845','name' => 'Filadeldia'),\n \t array('id' => '13772','state_id' => '845','name' => 'Fortuna'),\n \t array('id' => '13773','state_id' => '845','name' => 'Hojancha'),\n \t array('id' => '13774','state_id' => '845','name' => 'Juntas'),\n \t array('id' => '13775','state_id' => '845','name' => 'La Cruz'),\n \t array('id' => '13776','state_id' => '845','name' => 'Liberia'),\n \t array('id' => '13777','state_id' => '845','name' => 'Mogote'),\n \t array('id' => '13778','state_id' => '845','name' => 'Nandayure'),\n \t array('id' => '13779','state_id' => '845','name' => 'Nicoya'),\n \t array('id' => '13780','state_id' => '845','name' => 'Samara'),\n \t array('id' => '13781','state_id' => '845','name' => 'Santa Cruz'),\n \t array('id' => '13782','state_id' => '845','name' => 'Sardinal'),\n \t array('id' => '13783','state_id' => '845','name' => 'Tilaran'),\n \t array('id' => '13784','state_id' => '846','name' => 'Angeles'),\n \t array('id' => '13785','state_id' => '846','name' => 'Asuncion'),\n \t array('id' => '13786','state_id' => '846','name' => 'Barrantes'),\n \t array('id' => '13787','state_id' => '846','name' => 'Barva'),\n \t array('id' => '13788','state_id' => '846','name' => 'Heredia'),\n \t array('id' => '13789','state_id' => '846','name' => 'Horquetas'),\n \t array('id' => '13790','state_id' => '846','name' => 'Llorente'),\n \t array('id' => '13791','state_id' => '846','name' => 'Mercedes'),\n \t array('id' => '13792','state_id' => '846','name' => 'Puerto Viejo'),\n \t array('id' => '13793','state_id' => '846','name' => 'Rivera'),\n \t array('id' => '13794','state_id' => '846','name' => 'San Antonio'),\n \t array('id' => '13795','state_id' => '846','name' => 'San Francisco'),\n \t array('id' => '13796','state_id' => '846','name' => 'San Isidro'),\n \t array('id' => '13797','state_id' => '846','name' => 'San Joaquin'),\n \t array('id' => '13798','state_id' => '846','name' => 'San Jose'),\n \t array('id' => '13799','state_id' => '846','name' => 'San Josecito'),\n \t array('id' => '13800','state_id' => '846','name' => 'San Juan'),\n \t array('id' => '13801','state_id' => '846','name' => 'San Miguel'),\n \t array('id' => '13802','state_id' => '846','name' => 'San Pablo'),\n \t array('id' => '13803','state_id' => '846','name' => 'San Pedro'),\n \t array('id' => '13804','state_id' => '846','name' => 'San Rafael'),\n \t array('id' => '13805','state_id' => '846','name' => 'San Roque'),\n \t array('id' => '13806','state_id' => '846','name' => 'San Vicente'),\n \t array('id' => '13807','state_id' => '846','name' => 'Santa Barbara'),\n \t array('id' => '13808','state_id' => '846','name' => 'Santa Lucia'),\n \t array('id' => '13809','state_id' => '846','name' => 'Santa Rosa'),\n \t array('id' => '13810','state_id' => '846','name' => 'Santiago'),\n \t array('id' => '13811','state_id' => '846','name' => 'Santo Domingo'),\n \t array('id' => '13812','state_id' => '846','name' => 'Santo Tomas'),\n \t array('id' => '13813','state_id' => '846','name' => 'Ulloa'),\n \t array('id' => '13814','state_id' => '847','name' => 'Batan'),\n \t array('id' => '13815','state_id' => '847','name' => 'Cahuita'),\n \t array('id' => '13816','state_id' => '847','name' => 'Cariari'),\n \t array('id' => '13817','state_id' => '847','name' => 'Guacimo'),\n \t array('id' => '13818','state_id' => '847','name' => 'Guapiles'),\n \t array('id' => '13819','state_id' => '847','name' => 'Jimenez'),\n \t array('id' => '13820','state_id' => '847','name' => 'Limon'),\n \t array('id' => '13821','state_id' => '847','name' => 'Matina'),\n \t array('id' => '13822','state_id' => '847','name' => 'Pocora'),\n \t array('id' => '13823','state_id' => '847','name' => 'Rita'),\n \t array('id' => '13824','state_id' => '847','name' => 'Roxana'),\n \t array('id' => '13825','state_id' => '847','name' => 'Siquirres'),\n \t array('id' => '13826','state_id' => '847','name' => 'Sixaola'),\n \t array('id' => '13827','state_id' => '847','name' => 'Valle la Estrella'),\n \t array('id' => '13828','state_id' => '848','name' => 'Buenos Aires'),\n \t array('id' => '13829','state_id' => '848','name' => 'Canoas'),\n \t array('id' => '13830','state_id' => '848','name' => 'Chacarita'),\n \t array('id' => '13831','state_id' => '848','name' => 'Corredor'),\n \t array('id' => '13832','state_id' => '848','name' => 'Esparta'),\n \t array('id' => '13833','state_id' => '848','name' => 'Espiritu Santo'),\n \t array('id' => '13834','state_id' => '848','name' => 'Golfito'),\n \t array('id' => '13835','state_id' => '848','name' => 'Guaycara'),\n \t array('id' => '13836','state_id' => '848','name' => 'Jaco'),\n \t array('id' => '13837','state_id' => '848','name' => 'La Cuesta'),\n \t array('id' => '13838','state_id' => '848','name' => 'Macacona'),\n \t array('id' => '13839','state_id' => '848','name' => 'Manzanillo'),\n \t array('id' => '13840','state_id' => '848','name' => 'Miramar'),\n \t array('id' => '13841','state_id' => '848','name' => 'Palmar'),\n \t array('id' => '13842','state_id' => '848','name' => 'Paquera'),\n \t array('id' => '13843','state_id' => '848','name' => 'Parrita'),\n \t array('id' => '13844','state_id' => '848','name' => 'Puerto Cortes'),\n \t array('id' => '13845','state_id' => '848','name' => 'Puerto Jimenez'),\n \t array('id' => '13846','state_id' => '848','name' => 'Puntarenas'),\n \t array('id' => '13847','state_id' => '848','name' => 'Quepos'),\n \t array('id' => '13848','state_id' => '848','name' => 'San Vito'),\n \t array('id' => '13849','state_id' => '850','name' => 'Marcory'),\n \t array('id' => '13850','state_id' => '851','name' => 'Adzope'),\n \t array('id' => '13851','state_id' => '851','name' => 'Affery'),\n \t array('id' => '13852','state_id' => '851','name' => 'Agboville'),\n \t array('id' => '13853','state_id' => '851','name' => 'Akoupe'),\n \t array('id' => '13854','state_id' => '851','name' => 'Rubino'),\n \t array('id' => '13855','state_id' => '852','name' => 'Touba'),\n \t array('id' => '13856','state_id' => '853','name' => 'Bako'),\n \t array('id' => '13857','state_id' => '853','name' => 'Odienne'),\n \t array('id' => '13858','state_id' => '855','name' => 'Gagnoa'),\n \t array('id' => '13859','state_id' => '855','name' => 'Guiberoua'),\n \t array('id' => '13860','state_id' => '855','name' => 'Hire'),\n \t array('id' => '13861','state_id' => '855','name' => 'Ndouci'),\n \t array('id' => '13862','state_id' => '855','name' => 'Oume'),\n \t array('id' => '13863','state_id' => '855','name' => 'Ouragahio'),\n \t array('id' => '13864','state_id' => '856','name' => 'Daloa'),\n \t array('id' => '13865','state_id' => '856','name' => 'Issia'),\n \t array('id' => '13866','state_id' => '856','name' => 'Vavoua'),\n \t array('id' => '13867','state_id' => '857','name' => 'Ndiekro'),\n \t array('id' => '13868','state_id' => '857','name' => 'Tiebissou'),\n \t array('id' => '13869','state_id' => '857','name' => 'Toumodi'),\n \t array('id' => '13870','state_id' => '857','name' => 'Yamoussoukro'),\n \t array('id' => '13871','state_id' => '858','name' => 'Abidjan'),\n \t array('id' => '13872','state_id' => '858','name' => 'Alepe'),\n \t array('id' => '13873','state_id' => '858','name' => 'Anyama'),\n \t array('id' => '13874','state_id' => '858','name' => 'Bingerville'),\n \t array('id' => '13875','state_id' => '858','name' => 'Dabou'),\n \t array('id' => '13876','state_id' => '858','name' => 'Grand-Lahou'),\n \t array('id' => '13877','state_id' => '858','name' => 'Jacqueville'),\n \t array('id' => '13878','state_id' => '858','name' => 'Tiassale'),\n \t array('id' => '13879','state_id' => '859','name' => 'Bouafle'),\n \t array('id' => '13880','state_id' => '859','name' => 'Sinfra'),\n \t array('id' => '13881','state_id' => '859','name' => 'Zuenoula'),\n \t array('id' => '13882','state_id' => '860','name' => 'Duekoue'),\n \t array('id' => '13883','state_id' => '860','name' => 'Guiglo'),\n \t array('id' => '13884','state_id' => '860','name' => 'Toulepleu'),\n \t array('id' => '13885','state_id' => '861','name' => 'Abengourou'),\n \t array('id' => '13886','state_id' => '861','name' => 'Agnibilekrou'),\n \t array('id' => '13887','state_id' => '862','name' => 'Arrah'),\n \t array('id' => '13888','state_id' => '862','name' => 'Bocanda'),\n \t array('id' => '13889','state_id' => '862','name' => 'Bongouanou'),\n \t array('id' => '13890','state_id' => '862','name' => 'Daoukro'),\n \t array('id' => '13891','state_id' => '862','name' => 'Dimbokro'),\n \t array('id' => '13892','state_id' => '862','name' => 'M\\'bahiakro'),\n \t array('id' => '13893','state_id' => '862','name' => 'Mbatto'),\n \t array('id' => '13894','state_id' => '862','name' => 'N\\'zi-Comoe'),\n \t array('id' => '13895','state_id' => '863','name' => 'San-Pedro'),\n \t array('id' => '13896','state_id' => '863','name' => 'Sassandra'),\n \t array('id' => '13897','state_id' => '863','name' => 'Soubre'),\n \t array('id' => '13898','state_id' => '863','name' => 'Tabou'),\n \t array('id' => '13899','state_id' => '864','name' => 'Boundiali'),\n \t array('id' => '13900','state_id' => '864','name' => 'Dikodougou'),\n \t array('id' => '13901','state_id' => '864','name' => 'Ferkessedougou'),\n \t array('id' => '13902','state_id' => '864','name' => 'Korhogo'),\n \t array('id' => '13903','state_id' => '864','name' => 'Tingrela'),\n \t array('id' => '13904','state_id' => '865','name' => 'Divo'),\n \t array('id' => '13905','state_id' => '865','name' => 'Fresco'),\n \t array('id' => '13906','state_id' => '865','name' => 'Lakota'),\n \t array('id' => '13907','state_id' => '866','name' => 'Aboisso'),\n \t array('id' => '13908','state_id' => '866','name' => 'Adiake'),\n \t array('id' => '13909','state_id' => '866','name' => 'Ayame'),\n \t array('id' => '13910','state_id' => '866','name' => 'Bonoua'),\n \t array('id' => '13911','state_id' => '866','name' => 'Grand Bassam'),\n \t array('id' => '13912','state_id' => '868','name' => 'Kani'),\n \t array('id' => '13913','state_id' => '868','name' => 'Mankono'),\n \t array('id' => '13914','state_id' => '868','name' => 'Seguela'),\n \t array('id' => '13915','state_id' => '869','name' => 'Bondoukou'),\n \t array('id' => '13916','state_id' => '869','name' => 'Bouna'),\n \t array('id' => '13917','state_id' => '869','name' => 'Tanda'),\n \t array('id' => '13918','state_id' => '870','name' => 'Bjelovar'),\n \t array('id' => '13919','state_id' => '870','name' => 'Brezovac'),\n \t array('id' => '13920','state_id' => '870','name' => 'Chazma'),\n \t array('id' => '13921','state_id' => '870','name' => 'Daruvar'),\n \t array('id' => '13922','state_id' => '870','name' => 'Daruvarski Brestovac'),\n \t array('id' => '13923','state_id' => '870','name' => 'Dezhanovac'),\n \t array('id' => '13924','state_id' => '870','name' => 'Dhulovac'),\n \t array('id' => '13925','state_id' => '870','name' => 'Gareshnica'),\n \t array('id' => '13926','state_id' => '870','name' => 'Gareshnichki Brestovac'),\n \t array('id' => '13927','state_id' => '870','name' => 'Grubishno Polje'),\n \t array('id' => '13928','state_id' => '870','name' => 'Gudovac'),\n \t array('id' => '13929','state_id' => '870','name' => 'Hercegovac'),\n \t array('id' => '13930','state_id' => '870','name' => 'Ivanska'),\n \t array('id' => '13931','state_id' => '870','name' => 'Klokochevac'),\n \t array('id' => '13932','state_id' => '870','name' => 'Konchanica'),\n \t array('id' => '13933','state_id' => '870','name' => 'Predavac'),\n \t array('id' => '13934','state_id' => '870','name' => 'Rovishce'),\n \t array('id' => '13935','state_id' => '870','name' => 'Shandrovac'),\n \t array('id' => '13936','state_id' => '870','name' => 'Sirach'),\n \t array('id' => '13937','state_id' => '870','name' => 'Trojstveni Markovac'),\n \t array('id' => '13938','state_id' => '870','name' => 'Velika Pisanica'),\n \t array('id' => '13939','state_id' => '870','name' => 'Veliki Grdhevac'),\n \t array('id' => '13940','state_id' => '870','name' => 'Veliki Zdenci'),\n \t array('id' => '13941','state_id' => '870','name' => 'Veliko Trojstvo'),\n \t array('id' => '13942','state_id' => '870','name' => 'Zhdralovi'),\n \t array('id' => '13943','state_id' => '871','name' => 'Blato'),\n \t array('id' => '13944','state_id' => '871','name' => 'Cavtat'),\n \t array('id' => '13945','state_id' => '871','name' => 'Chibacha'),\n \t array('id' => '13946','state_id' => '871','name' => 'Chilipi'),\n \t array('id' => '13947','state_id' => '871','name' => 'Dubrovnik'),\n \t array('id' => '13948','state_id' => '871','name' => 'Komin'),\n \t array('id' => '13949','state_id' => '871','name' => 'Korchula'),\n \t array('id' => '13950','state_id' => '871','name' => 'Lumbarda'),\n \t array('id' => '13951','state_id' => '871','name' => 'Metkovic'),\n \t array('id' => '13952','state_id' => '871','name' => 'Mlini'),\n \t array('id' => '13953','state_id' => '871','name' => 'Mokoshica'),\n \t array('id' => '13954','state_id' => '871','name' => 'Nova Mokoshica'),\n \t array('id' => '13955','state_id' => '871','name' => 'Opuzen'),\n \t array('id' => '13956','state_id' => '871','name' => 'Orebic'),\n \t array('id' => '13957','state_id' => '871','name' => 'Otrich-Seoci'),\n \t array('id' => '13958','state_id' => '871','name' => 'Ploche'),\n \t array('id' => '13959','state_id' => '871','name' => 'Smokvica'),\n \t array('id' => '13960','state_id' => '871','name' => 'Stashevica'),\n \t array('id' => '13961','state_id' => '871','name' => 'Vela Luka'),\n \t array('id' => '13962','state_id' => '871','name' => 'Zaton'),\n \t array('id' => '13963','state_id' => '871','name' => 'Zhrnovo'),\n \t array('id' => '13964','state_id' => '873','name' => 'Bale'),\n \t array('id' => '13965','state_id' => '873','name' => 'Banjole'),\n \t array('id' => '13966','state_id' => '873','name' => 'Brtonigla'),\n \t array('id' => '13967','state_id' => '873','name' => 'Buje'),\n \t array('id' => '13968','state_id' => '873','name' => 'Buzet'),\n \t array('id' => '13969','state_id' => '873','name' => 'Fazhana'),\n \t array('id' => '13970','state_id' => '873','name' => 'Funtana'),\n \t array('id' => '13971','state_id' => '873','name' => 'Galizhana'),\n \t array('id' => '13972','state_id' => '873','name' => 'Labin'),\n \t array('id' => '13973','state_id' => '873','name' => 'Lizhnjan'),\n \t array('id' => '13974','state_id' => '873','name' => 'Marchana'),\n \t array('id' => '13975','state_id' => '873','name' => 'Medulin'),\n \t array('id' => '13976','state_id' => '873','name' => 'Novigrad'),\n \t array('id' => '13977','state_id' => '873','name' => 'Pazin'),\n \t array('id' => '13978','state_id' => '873','name' => 'Porech'),\n \t array('id' => '13979','state_id' => '873','name' => 'Premantura'),\n \t array('id' => '13980','state_id' => '873','name' => 'Pula'),\n \t array('id' => '13981','state_id' => '873','name' => 'Rabac'),\n \t array('id' => '13982','state_id' => '873','name' => 'Rasha'),\n \t array('id' => '13983','state_id' => '873','name' => 'Rovinj'),\n \t array('id' => '13984','state_id' => '873','name' => 'Sveti Petar u Shumi'),\n \t array('id' => '13985','state_id' => '873','name' => 'Tar'),\n \t array('id' => '13986','state_id' => '873','name' => 'Umag'),\n \t array('id' => '13987','state_id' => '873','name' => 'Vinezh'),\n \t array('id' => '13988','state_id' => '873','name' => 'Vodnjan'),\n \t array('id' => '13989','state_id' => '873','name' => 'Vrsar'),\n \t array('id' => '13990','state_id' => '874','name' => 'Cerovac Vukmansichki'),\n \t array('id' => '13991','state_id' => '874','name' => 'Draganic'),\n \t array('id' => '13992','state_id' => '874','name' => 'Duga Resa'),\n \t array('id' => '13993','state_id' => '874','name' => 'Josipdol'),\n \t array('id' => '13994','state_id' => '874','name' => 'Karlovac'),\n \t array('id' => '13995','state_id' => '874','name' => 'Mrezhnichki Varosh'),\n \t array('id' => '13996','state_id' => '874','name' => 'Ogulin'),\n \t array('id' => '13997','state_id' => '874','name' => 'Oshtarije'),\n \t array('id' => '13998','state_id' => '874','name' => 'Ozalj'),\n \t array('id' => '13999','state_id' => '874','name' => 'Plashki'),\n \t array('id' => '14000','state_id' => '874','name' => 'Slunj'),\n \t array('id' => '14001','state_id' => '874','name' => 'Vojnic'),\n \t array('id' => '14002','state_id' => '875','name' => 'Dhelekovec'),\n \t array('id' => '14003','state_id' => '875','name' => 'Dhurdhevac'),\n \t array('id' => '14004','state_id' => '875','name' => 'Drnje'),\n \t array('id' => '14005','state_id' => '875','name' => 'Ferdinandovac'),\n \t array('id' => '14006','state_id' => '875','name' => 'Glogovac'),\n \t array('id' => '14007','state_id' => '875','name' => 'Gola'),\n \t array('id' => '14008','state_id' => '875','name' => 'Hlebine'),\n \t array('id' => '14009','state_id' => '875','name' => 'Kalinovac'),\n \t array('id' => '14010','state_id' => '875','name' => 'Kloshtar Podravski'),\n \t array('id' => '14011','state_id' => '875','name' => 'Koprivnica'),\n \t array('id' => '14012','state_id' => '875','name' => 'Koprivnichki Bregi'),\n \t array('id' => '14013','state_id' => '875','name' => 'Koprivnichki Ivanec'),\n \t array('id' => '14014','state_id' => '875','name' => 'Krizhevci'),\n \t array('id' => '14015','state_id' => '875','name' => 'Legrad'),\n \t array('id' => '14016','state_id' => '875','name' => 'Molve'),\n \t array('id' => '14017','state_id' => '875','name' => 'Novigrad Podravski'),\n \t array('id' => '14018','state_id' => '875','name' => 'Novo Virje'),\n \t array('id' => '14019','state_id' => '875','name' => 'Peteranec'),\n \t array('id' => '14020','state_id' => '875','name' => 'Podravske Sesvete'),\n \t array('id' => '14021','state_id' => '875','name' => 'Rasinja'),\n \t array('id' => '14022','state_id' => '875','name' => 'Reka'),\n \t array('id' => '14023','state_id' => '875','name' => 'Sigetec'),\n \t array('id' => '14024','state_id' => '875','name' => 'Starigrad'),\n \t array('id' => '14025','state_id' => '875','name' => 'Sveti Ivan Zhabno'),\n \t array('id' => '14026','state_id' => '875','name' => 'Trema'),\n \t array('id' => '14027','state_id' => '875','name' => 'Virje'),\n \t array('id' => '14028','state_id' => '876','name' => 'Andrashevec'),\n \t array('id' => '14029','state_id' => '876','name' => 'Bedekovchina'),\n \t array('id' => '14030','state_id' => '876','name' => 'Dhurmanec'),\n \t array('id' => '14031','state_id' => '876','name' => 'Donja Pachetina'),\n \t array('id' => '14032','state_id' => '876','name' => 'Donja Shemnica'),\n \t array('id' => '14033','state_id' => '876','name' => 'Donja Stubica'),\n \t array('id' => '14034','state_id' => '876','name' => 'Dubrovchan'),\n \t array('id' => '14035','state_id' => '876','name' => 'Gornja Stubica'),\n \t array('id' => '14036','state_id' => '876','name' => 'Hum na Sutli'),\n \t array('id' => '14037','state_id' => '876','name' => 'Klanjec'),\n \t array('id' => '14038','state_id' => '876','name' => 'Konjishchina'),\n \t array('id' => '14039','state_id' => '876','name' => 'Krapina'),\n \t array('id' => '14040','state_id' => '876','name' => 'Krapinske Toplice'),\n \t array('id' => '14041','state_id' => '876','name' => 'Laz Bistrichki'),\n \t array('id' => '14042','state_id' => '876','name' => 'Marija Bistrica'),\n \t array('id' => '14043','state_id' => '876','name' => 'Mihovljan'),\n \t array('id' => '14044','state_id' => '876','name' => 'Oroslavje'),\n \t array('id' => '14045','state_id' => '876','name' => 'Podgorje Bistrichko'),\n \t array('id' => '14046','state_id' => '876','name' => 'Poznanovec'),\n \t array('id' => '14047','state_id' => '876','name' => 'Pregrada'),\n \t array('id' => '14048','state_id' => '876','name' => 'Radoboj'),\n \t array('id' => '14049','state_id' => '876','name' => 'Shkaricevo'),\n \t array('id' => '14050','state_id' => '876','name' => 'Shpichkovina'),\n \t array('id' => '14051','state_id' => '876','name' => 'Stubichke Toplice'),\n \t array('id' => '14052','state_id' => '876','name' => 'Sveti Krizh Zachretje'),\n \t array('id' => '14053','state_id' => '876','name' => 'Veliko Trgovishce'),\n \t array('id' => '14054','state_id' => '876','name' => 'Zabok'),\n \t array('id' => '14055','state_id' => '876','name' => 'Zlatar'),\n \t array('id' => '14056','state_id' => '876','name' => 'Zlatar-Bistrica'),\n \t array('id' => '14057','state_id' => '877','name' => 'Brinje'),\n \t array('id' => '14058','state_id' => '877','name' => 'Donji Lapac'),\n \t array('id' => '14059','state_id' => '877','name' => 'Gospic'),\n \t array('id' => '14060','state_id' => '877','name' => 'Korenica'),\n \t array('id' => '14061','state_id' => '877','name' => 'Lichki Osik'),\n \t array('id' => '14062','state_id' => '877','name' => 'Lichko Leshce'),\n \t array('id' => '14063','state_id' => '877','name' => 'Novalja'),\n \t array('id' => '14064','state_id' => '877','name' => 'Otochac'),\n \t array('id' => '14065','state_id' => '877','name' => 'Perushic'),\n \t array('id' => '14066','state_id' => '877','name' => 'Prozor'),\n \t array('id' => '14067','state_id' => '877','name' => 'Senj'),\n \t array('id' => '14068','state_id' => '878','name' => 'Belica'),\n \t array('id' => '14069','state_id' => '878','name' => 'Chakovec'),\n \t array('id' => '14070','state_id' => '878','name' => 'Cirkovljan'),\n \t array('id' => '14071','state_id' => '878','name' => 'Dekanovec'),\n \t array('id' => '14072','state_id' => '878','name' => 'Domashinec'),\n \t array('id' => '14073','state_id' => '878','name' => 'Donja Dubrava'),\n \t array('id' => '14074','state_id' => '878','name' => 'Donji Kraljevec'),\n \t array('id' => '14075','state_id' => '878','name' => 'Donji Vidovec'),\n \t array('id' => '14076','state_id' => '878','name' => 'Drzhimurec'),\n \t array('id' => '14077','state_id' => '878','name' => 'Dunjkovec'),\n \t array('id' => '14078','state_id' => '878','name' => 'Gardinovec'),\n \t array('id' => '14079','state_id' => '878','name' => 'Gorichan'),\n \t array('id' => '14080','state_id' => '878','name' => 'Gornji Hrashcan'),\n \t array('id' => '14081','state_id' => '878','name' => 'Hodoshan'),\n \t array('id' => '14082','state_id' => '878','name' => 'Ivanovec'),\n \t array('id' => '14083','state_id' => '878','name' => 'Kotoriba'),\n \t array('id' => '14084','state_id' => '878','name' => 'Kurshanec'),\n \t array('id' => '14085','state_id' => '878','name' => 'Lopatinec'),\n \t array('id' => '14086','state_id' => '878','name' => 'Machkovec'),\n \t array('id' => '14087','state_id' => '878','name' => 'Mala Subotica'),\n \t array('id' => '14088','state_id' => '878','name' => 'Mihovljan'),\n \t array('id' => '14089','state_id' => '878','name' => 'Mursko Sredishce'),\n \t array('id' => '14090','state_id' => '878','name' => 'Nedelishce'),\n \t array('id' => '14091','state_id' => '878','name' => 'Novakovec'),\n \t array('id' => '14092','state_id' => '878','name' => 'Novo Selo Rok'),\n \t array('id' => '14093','state_id' => '878','name' => 'Orehovica'),\n \t array('id' => '14094','state_id' => '878','name' => 'Palovec'),\n \t array('id' => '14095','state_id' => '878','name' => 'Peklenica'),\n \t array('id' => '14096','state_id' => '878','name' => 'Podturen'),\n \t array('id' => '14097','state_id' => '878','name' => 'Prelog'),\n \t array('id' => '14098','state_id' => '878','name' => 'Pribislavec'),\n \t array('id' => '14099','state_id' => '878','name' => 'Pushcine'),\n \t array('id' => '14100','state_id' => '878','name' => 'Savska Ves'),\n \t array('id' => '14101','state_id' => '878','name' => 'Selnica'),\n \t array('id' => '14102','state_id' => '878','name' => 'Shenkovec'),\n \t array('id' => '14103','state_id' => '878','name' => 'Strahoninec'),\n \t array('id' => '14104','state_id' => '878','name' => 'Sveta Marija'),\n \t array('id' => '14105','state_id' => '878','name' => 'Trnovec'),\n \t array('id' => '14106','state_id' => '878','name' => 'Vratishinec'),\n \t array('id' => '14107','state_id' => '878','name' => 'Zasadbreg'),\n \t array('id' => '14108','state_id' => '880','name' => 'Antunovac'),\n \t array('id' => '14109','state_id' => '880','name' => 'Batina'),\n \t array('id' => '14110','state_id' => '880','name' => 'Beli Manastir'),\n \t array('id' => '14111','state_id' => '880','name' => 'Belishce'),\n \t array('id' => '14112','state_id' => '880','name' => 'Beljevina'),\n \t array('id' => '14113','state_id' => '880','name' => 'Bijelo Brdo'),\n \t array('id' => '14114','state_id' => '880','name' => 'Bilje'),\n \t array('id' => '14115','state_id' => '880','name' => 'Bistrinci'),\n \t array('id' => '14116','state_id' => '880','name' => 'Bizovac'),\n \t array('id' => '14117','state_id' => '880','name' => 'Branjin Vrh'),\n \t array('id' => '14118','state_id' => '880','name' => 'Brijeshce'),\n \t array('id' => '14119','state_id' => '880','name' => 'Brijest'),\n \t array('id' => '14120','state_id' => '880','name' => 'Ceminac'),\n \t array('id' => '14121','state_id' => '880','name' => 'Chepin'),\n \t array('id' => '14122','state_id' => '880','name' => 'Crnkovci'),\n \t array('id' => '14123','state_id' => '880','name' => 'Dalj'),\n \t array('id' => '14124','state_id' => '880','name' => 'Darda'),\n \t array('id' => '14125','state_id' => '880','name' => 'Dhakovo'),\n \t array('id' => '14126','state_id' => '880','name' => 'Dhurdhenovac'),\n \t array('id' => '14127','state_id' => '880','name' => 'Donja Motichina'),\n \t array('id' => '14128','state_id' => '880','name' => 'Donji Miholac'),\n \t array('id' => '14129','state_id' => '880','name' => 'Erdut'),\n \t array('id' => '14130','state_id' => '880','name' => 'Ernestinovo'),\n \t array('id' => '14131','state_id' => '880','name' => 'Ferichanci'),\n \t array('id' => '14132','state_id' => '880','name' => 'Gashinci'),\n \t array('id' => '14133','state_id' => '880','name' => 'Gorjani'),\n \t array('id' => '14134','state_id' => '880','name' => 'Grabovac'),\n \t array('id' => '14135','state_id' => '880','name' => 'Ivanovac'),\n \t array('id' => '14136','state_id' => '880','name' => 'Ivanovci Gorjanski'),\n \t array('id' => '14137','state_id' => '880','name' => 'Jagodnjak'),\n \t array('id' => '14138','state_id' => '880','name' => 'Jelisavac'),\n \t array('id' => '14139','state_id' => '880','name' => 'Josipovac'),\n \t array('id' => '14140','state_id' => '880','name' => 'Josipovac Punitovachki'),\n \t array('id' => '14141','state_id' => '880','name' => 'Karanac'),\n \t array('id' => '14142','state_id' => '880','name' => 'Keshinci'),\n \t array('id' => '14143','state_id' => '880','name' => 'Knezhevi Vinogradi'),\n \t array('id' => '14144','state_id' => '880','name' => 'Knezhevo'),\n \t array('id' => '14145','state_id' => '880','name' => 'Koritna'),\n \t array('id' => '14146','state_id' => '880','name' => 'Koshka'),\n \t array('id' => '14147','state_id' => '880','name' => 'Kushevac'),\n \t array('id' => '14148','state_id' => '880','name' => 'Ladimirevci'),\n \t array('id' => '14149','state_id' => '880','name' => 'Laslovo'),\n \t array('id' => '14150','state_id' => '880','name' => 'Lug'),\n \t array('id' => '14151','state_id' => '880','name' => 'Marijanci'),\n \t array('id' => '14152','state_id' => '880','name' => 'Markovac Nashichki'),\n \t array('id' => '14153','state_id' => '880','name' => 'Martin'),\n \t array('id' => '14154','state_id' => '880','name' => 'Mece'),\n \t array('id' => '14155','state_id' => '880','name' => 'Moslavina Podravska'),\n \t array('id' => '14156','state_id' => '880','name' => 'Nashice'),\n \t array('id' => '14157','state_id' => '880','name' => 'Osijek'),\n \t array('id' => '14158','state_id' => '880','name' => 'Ovchara'),\n \t array('id' => '14159','state_id' => '880','name' => 'Petlovac'),\n \t array('id' => '14160','state_id' => '880','name' => 'Petrijevci'),\n \t array('id' => '14161','state_id' => '880','name' => 'Pishkorevci'),\n \t array('id' => '14162','state_id' => '880','name' => 'Podgorach'),\n \t array('id' => '14163','state_id' => '880','name' => 'Popvac'),\n \t array('id' => '14164','state_id' => '880','name' => 'Rakitovica'),\n \t array('id' => '14165','state_id' => '880','name' => 'Sarvash'),\n \t array('id' => '14166','state_id' => '880','name' => 'Satnica Dhakovachka'),\n \t array('id' => '14167','state_id' => '880','name' => 'Selci Dhakovacki'),\n \t array('id' => '14168','state_id' => '880','name' => 'Semeljci'),\n \t array('id' => '14169','state_id' => '880','name' => 'Shiroko Polje'),\n \t array('id' => '14170','state_id' => '880','name' => 'Strizivojna'),\n \t array('id' => '14171','state_id' => '880','name' => 'Sveti Dhuradh'),\n \t array('id' => '14172','state_id' => '880','name' => 'Tenja'),\n \t array('id' => '14173','state_id' => '880','name' => 'Valpovo'),\n \t array('id' => '14174','state_id' => '880','name' => 'Velimirovac'),\n \t array('id' => '14175','state_id' => '880','name' => 'Viljevo'),\n \t array('id' => '14176','state_id' => '880','name' => 'Vishkovci'),\n \t array('id' => '14177','state_id' => '880','name' => 'Vishnjevac'),\n \t array('id' => '14178','state_id' => '880','name' => 'Vladislavci'),\n \t array('id' => '14179','state_id' => '880','name' => 'Vuka'),\n \t array('id' => '14180','state_id' => '880','name' => 'Vukojevci'),\n \t array('id' => '14181','state_id' => '880','name' => 'Zmajevac'),\n \t array('id' => '14182','state_id' => '880','name' => 'Zoljan'),\n \t array('id' => '14183','state_id' => '882','name' => 'Badljevina'),\n \t array('id' => '14184','state_id' => '882','name' => 'Brodski Drenovac'),\n \t array('id' => '14185','state_id' => '882','name' => 'Dervishaga'),\n \t array('id' => '14186','state_id' => '882','name' => 'Gradac'),\n \t array('id' => '14187','state_id' => '882','name' => 'Jakshic'),\n \t array('id' => '14188','state_id' => '882','name' => 'Kaptol'),\n \t array('id' => '14189','state_id' => '882','name' => 'Kutjevo'),\n \t array('id' => '14190','state_id' => '882','name' => 'Lipik'),\n \t array('id' => '14191','state_id' => '882','name' => 'Pakrac'),\n \t array('id' => '14192','state_id' => '882','name' => 'Pleternica'),\n \t array('id' => '14193','state_id' => '882','name' => 'Pozhega'),\n \t array('id' => '14194','state_id' => '882','name' => 'Prekopkra'),\n \t array('id' => '14195','state_id' => '882','name' => 'Trenkovo'),\n \t array('id' => '14196','state_id' => '882','name' => 'Velika'),\n \t array('id' => '14197','state_id' => '882','name' => 'Vetovo'),\n \t array('id' => '14198','state_id' => '882','name' => 'Vidovci'),\n \t array('id' => '14199','state_id' => '884','name' => 'Bilice'),\n \t array('id' => '14200','state_id' => '884','name' => 'Brodarica'),\n \t array('id' => '14201','state_id' => '884','name' => 'Drnish'),\n \t array('id' => '14202','state_id' => '884','name' => 'Dubrava kod Shibenika'),\n \t array('id' => '14203','state_id' => '884','name' => 'Grebashtica'),\n \t array('id' => '14204','state_id' => '884','name' => 'Jezera'),\n \t array('id' => '14205','state_id' => '884','name' => 'Kistanje'),\n \t array('id' => '14206','state_id' => '884','name' => 'Knin'),\n \t array('id' => '14207','state_id' => '884','name' => 'Kovachic'),\n \t array('id' => '14208','state_id' => '884','name' => 'Murter'),\n \t array('id' => '14209','state_id' => '884','name' => 'Pirovac'),\n \t array('id' => '14210','state_id' => '884','name' => 'Primoshten'),\n \t array('id' => '14211','state_id' => '884','name' => 'Rogoznica'),\n \t array('id' => '14212','state_id' => '884','name' => 'Shibenik'),\n \t array('id' => '14213','state_id' => '884','name' => 'Skradin'),\n \t array('id' => '14214','state_id' => '884','name' => 'Tisno'),\n \t array('id' => '14215','state_id' => '884','name' => 'Tribunj'),\n \t array('id' => '14216','state_id' => '884','name' => 'Vodice'),\n \t array('id' => '14217','state_id' => '884','name' => 'Vrpolje'),\n \t array('id' => '14218','state_id' => '884','name' => 'Zaton'),\n \t array('id' => '14219','state_id' => '885','name' => 'Brestacha'),\n \t array('id' => '14220','state_id' => '885','name' => 'Brochice'),\n \t array('id' => '14221','state_id' => '885','name' => 'Budashevo'),\n \t array('id' => '14222','state_id' => '885','name' => 'Donja Grachenica'),\n \t array('id' => '14223','state_id' => '885','name' => 'Dvor'),\n \t array('id' => '14224','state_id' => '885','name' => 'Glina'),\n \t array('id' => '14225','state_id' => '885','name' => 'Gornja Grachenica'),\n \t array('id' => '14226','state_id' => '885','name' => 'Gornja Jelenska'),\n \t array('id' => '14227','state_id' => '885','name' => 'Greda'),\n \t array('id' => '14228','state_id' => '885','name' => 'Gvozd'),\n \t array('id' => '14229','state_id' => '885','name' => 'Hrastelnica'),\n \t array('id' => '14230','state_id' => '885','name' => 'Hrvatska Dubica'),\n \t array('id' => '14231','state_id' => '885','name' => 'Hrvatska Kostajnica'),\n \t array('id' => '14232','state_id' => '885','name' => 'Husain'),\n \t array('id' => '14233','state_id' => '885','name' => 'Ilova'),\n \t array('id' => '14234','state_id' => '885','name' => 'Kutina'),\n \t array('id' => '14235','state_id' => '885','name' => 'Lekenik'),\n \t array('id' => '14236','state_id' => '885','name' => 'Lipovljani'),\n \t array('id' => '14237','state_id' => '885','name' => 'Moshchenica'),\n \t array('id' => '14238','state_id' => '885','name' => 'Novska'),\n \t array('id' => '14239','state_id' => '885','name' => 'Odra Sisachka'),\n \t array('id' => '14240','state_id' => '885','name' => 'Osekovo'),\n \t array('id' => '14241','state_id' => '885','name' => 'Peshcenica'),\n \t array('id' => '14242','state_id' => '885','name' => 'Petrinja'),\n \t array('id' => '14243','state_id' => '885','name' => 'Popovacha'),\n \t array('id' => '14244','state_id' => '885','name' => 'Potok'),\n \t array('id' => '14245','state_id' => '885','name' => 'Rajic'),\n \t array('id' => '14246','state_id' => '885','name' => 'Repushnica'),\n \t array('id' => '14247','state_id' => '885','name' => 'Sisak'),\n \t array('id' => '14248','state_id' => '885','name' => 'Staro Prachno'),\n \t array('id' => '14249','state_id' => '885','name' => 'Sunja'),\n \t array('id' => '14250','state_id' => '885','name' => 'Topolovac'),\n \t array('id' => '14251','state_id' => '885','name' => 'Voloder'),\n \t array('id' => '14252','state_id' => '887','name' => 'Bashka Voda'),\n \t array('id' => '14253','state_id' => '887','name' => 'Bol'),\n \t array('id' => '14254','state_id' => '887','name' => 'Brela'),\n \t array('id' => '14255','state_id' => '887','name' => 'Brnaze'),\n \t array('id' => '14256','state_id' => '887','name' => 'Cista Velika'),\n \t array('id' => '14257','state_id' => '887','name' => 'Donji Prolozhac'),\n \t array('id' => '14258','state_id' => '887','name' => 'Donji Vinjani'),\n \t array('id' => '14259','state_id' => '887','name' => 'Duce'),\n \t array('id' => '14260','state_id' => '887','name' => 'Dugi Rat'),\n \t array('id' => '14261','state_id' => '887','name' => 'Dugopolje'),\n \t array('id' => '14262','state_id' => '887','name' => 'Gala'),\n \t array('id' => '14263','state_id' => '887','name' => 'Glavice'),\n \t array('id' => '14264','state_id' => '887','name' => 'Glavina Donja'),\n \t array('id' => '14265','state_id' => '887','name' => 'Gornji Vincjani'),\n \t array('id' => '14266','state_id' => '887','name' => 'Gradac'),\n \t array('id' => '14267','state_id' => '887','name' => 'Grubine'),\n \t array('id' => '14268','state_id' => '887','name' => 'Hrvace'),\n \t array('id' => '14269','state_id' => '887','name' => 'Hvar'),\n \t array('id' => '14270','state_id' => '887','name' => 'Imotski'),\n \t array('id' => '14271','state_id' => '887','name' => 'Jelsa'),\n \t array('id' => '14272','state_id' => '887','name' => 'Jesenice'),\n \t array('id' => '14273','state_id' => '887','name' => 'Kamen'),\n \t array('id' => '14274','state_id' => '887','name' => 'Kashtel Gambelovac'),\n \t array('id' => '14275','state_id' => '887','name' => 'Kashtel Gomilica'),\n \t array('id' => '14276','state_id' => '887','name' => 'Kashtel Lukshic'),\n \t array('id' => '14277','state_id' => '887','name' => 'Kashtel Novi'),\n \t array('id' => '14278','state_id' => '887','name' => 'Kashtel Shtafilic'),\n \t array('id' => '14279','state_id' => '887','name' => 'Kashtel Stari'),\n \t array('id' => '14280','state_id' => '887','name' => 'Kashtel Sucurac'),\n \t array('id' => '14281','state_id' => '887','name' => 'Katuni'),\n \t array('id' => '14282','state_id' => '887','name' => 'Klis'),\n \t array('id' => '14283','state_id' => '887','name' => 'Komizha'),\n \t array('id' => '14284','state_id' => '887','name' => 'Koshute'),\n \t array('id' => '14285','state_id' => '887','name' => 'Lovrec'),\n \t array('id' => '14286','state_id' => '887','name' => 'Makarska'),\n \t array('id' => '14287','state_id' => '887','name' => 'Marina'),\n \t array('id' => '14288','state_id' => '887','name' => 'Mastrinka'),\n \t array('id' => '14289','state_id' => '887','name' => 'Milna'),\n \t array('id' => '14290','state_id' => '887','name' => 'Mravince'),\n \t array('id' => '14291','state_id' => '887','name' => 'Neoric'),\n \t array('id' => '14292','state_id' => '887','name' => 'Obrovac Sinjski'),\n \t array('id' => '14293','state_id' => '887','name' => 'Okrug Gornji'),\n \t array('id' => '14294','state_id' => '887','name' => 'Omish'),\n \t array('id' => '14295','state_id' => '887','name' => 'Otok'),\n \t array('id' => '14296','state_id' => '887','name' => 'Podgora'),\n \t array('id' => '14297','state_id' => '887','name' => 'Podstrana'),\n \t array('id' => '14298','state_id' => '887','name' => 'Poljica'),\n \t array('id' => '14299','state_id' => '887','name' => 'Postira'),\n \t array('id' => '14300','state_id' => '887','name' => 'Postranje'),\n \t array('id' => '14301','state_id' => '887','name' => 'Potravlje'),\n \t array('id' => '14302','state_id' => '887','name' => 'Primorski Dolac'),\n \t array('id' => '14303','state_id' => '887','name' => 'Puchishca'),\n \t array('id' => '14304','state_id' => '887','name' => 'Ruda'),\n \t array('id' => '14305','state_id' => '887','name' => 'Runovic'),\n \t array('id' => '14306','state_id' => '887','name' => 'Seget Donji'),\n \t array('id' => '14307','state_id' => '887','name' => 'Seget Vranjica'),\n \t array('id' => '14308','state_id' => '887','name' => 'Selca'),\n \t array('id' => '14309','state_id' => '887','name' => 'Sinj'),\n \t array('id' => '14310','state_id' => '887','name' => 'Slatine'),\n \t array('id' => '14311','state_id' => '887','name' => 'Solin'),\n \t array('id' => '14312','state_id' => '887','name' => 'Split'),\n \t array('id' => '14313','state_id' => '887','name' => 'Srinjine'),\n \t array('id' => '14314','state_id' => '887','name' => 'Stari Grad'),\n \t array('id' => '14315','state_id' => '887','name' => 'Stobrech'),\n \t array('id' => '14316','state_id' => '887','name' => 'Supetar'),\n \t array('id' => '14317','state_id' => '887','name' => 'Trilj'),\n \t array('id' => '14318','state_id' => '887','name' => 'Trogir'),\n \t array('id' => '14319','state_id' => '887','name' => 'Tuchepi'),\n \t array('id' => '14320','state_id' => '887','name' => 'Turjaci'),\n \t array('id' => '14321','state_id' => '887','name' => 'Vinishce'),\n \t array('id' => '14322','state_id' => '887','name' => 'Vis'),\n \t array('id' => '14323','state_id' => '887','name' => 'Vranjic'),\n \t array('id' => '14324','state_id' => '887','name' => 'Vrgorac'),\n \t array('id' => '14325','state_id' => '887','name' => 'Vrlika'),\n \t array('id' => '14326','state_id' => '887','name' => 'Zagvozd'),\n \t array('id' => '14327','state_id' => '887','name' => 'Zhrnovnica'),\n \t array('id' => '14328','state_id' => '887','name' => 'Zmijavci'),\n \t array('id' => '14329','state_id' => '888','name' => 'Bedenec'),\n \t array('id' => '14330','state_id' => '888','name' => 'Beletinec'),\n \t array('id' => '14331','state_id' => '888','name' => 'Beretinec'),\n \t array('id' => '14332','state_id' => '888','name' => 'Breznica'),\n \t array('id' => '14333','state_id' => '888','name' => 'Chreshnjevo'),\n \t array('id' => '14334','state_id' => '888','name' => 'Donja Voca'),\n \t array('id' => '14335','state_id' => '888','name' => 'Donje Ladanje'),\n \t array('id' => '14336','state_id' => '888','name' => 'Gornje Ladanje'),\n \t array('id' => '14337','state_id' => '888','name' => 'Gornje Vratno'),\n \t array('id' => '14338','state_id' => '888','name' => 'Gornji Kneginec'),\n \t array('id' => '14339','state_id' => '888','name' => 'Gornji Kucan'),\n \t array('id' => '14340','state_id' => '888','name' => 'Hrashcica'),\n \t array('id' => '14341','state_id' => '888','name' => 'Hrastovsko'),\n \t array('id' => '14342','state_id' => '888','name' => 'Hrzhenica'),\n \t array('id' => '14343','state_id' => '888','name' => 'Ivanec'),\n \t array('id' => '14344','state_id' => '888','name' => 'Jalkovec'),\n \t array('id' => '14345','state_id' => '888','name' => 'Jalzhabet'),\n \t array('id' => '14346','state_id' => '888','name' => 'Jerovec'),\n \t array('id' => '14347','state_id' => '888','name' => 'Klenovnik'),\n \t array('id' => '14348','state_id' => '888','name' => 'Kljuch'),\n \t array('id' => '14349','state_id' => '888','name' => 'Kucan Marof'),\n \t array('id' => '14350','state_id' => '888','name' => 'Lepoglava'),\n \t array('id' => '14351','state_id' => '888','name' => 'Ljubeshcica'),\n \t array('id' => '14352','state_id' => '888','name' => 'Ludbreg'),\n \t array('id' => '14353','state_id' => '888','name' => 'Madzharevo'),\n \t array('id' => '14354','state_id' => '888','name' => 'Mali Bukovec'),\n \t array('id' => '14355','state_id' => '888','name' => 'Nedeljanec'),\n \t array('id' => '14356','state_id' => '888','name' => 'Nova Ves Petrijanec'),\n \t array('id' => '14357','state_id' => '888','name' => 'Novi Marof'),\n \t array('id' => '14358','state_id' => '888','name' => 'Petrijanec'),\n \t array('id' => '14359','state_id' => '888','name' => 'Podevchevo'),\n \t array('id' => '14360','state_id' => '888','name' => 'Presechno'),\n \t array('id' => '14361','state_id' => '888','name' => 'Remetinec'),\n \t array('id' => '14362','state_id' => '888','name' => 'Selnik'),\n \t array('id' => '14363','state_id' => '888','name' => 'Shemovec'),\n \t array('id' => '14364','state_id' => '888','name' => 'Srachinec'),\n \t array('id' => '14365','state_id' => '888','name' => 'Sveti Petar'),\n \t array('id' => '14366','state_id' => '888','name' => 'Svibovec Podravski'),\n \t array('id' => '14367','state_id' => '888','name' => 'Trnovec'),\n \t array('id' => '14368','state_id' => '888','name' => 'Turchin'),\n \t array('id' => '14369','state_id' => '888','name' => 'Tuzhno'),\n \t array('id' => '14370','state_id' => '888','name' => 'Varazhdin'),\n \t array('id' => '14371','state_id' => '888','name' => 'Varazhdin Breg'),\n \t array('id' => '14372','state_id' => '888','name' => 'Varazhdinske Toplice'),\n \t array('id' => '14373','state_id' => '888','name' => 'Vidovec'),\n \t array('id' => '14374','state_id' => '888','name' => 'Vinica'),\n \t array('id' => '14375','state_id' => '888','name' => 'Zavrshje Podbelsko'),\n \t array('id' => '14376','state_id' => '888','name' => 'Zharovnica'),\n \t array('id' => '14377','state_id' => '889','name' => 'Borova'),\n \t array('id' => '14378','state_id' => '889','name' => 'Busetina'),\n \t array('id' => '14379','state_id' => '889','name' => 'Cabuna'),\n \t array('id' => '14380','state_id' => '889','name' => 'Chachinci'),\n \t array('id' => '14381','state_id' => '889','name' => 'Gradina'),\n \t array('id' => '14382','state_id' => '889','name' => 'Korija'),\n \t array('id' => '14383','state_id' => '889','name' => 'Mikleush'),\n \t array('id' => '14384','state_id' => '889','name' => 'Milanovac'),\n \t array('id' => '14385','state_id' => '889','name' => 'Nova Bukovica'),\n \t array('id' => '14386','state_id' => '889','name' => 'Orahovica'),\n \t array('id' => '14387','state_id' => '889','name' => 'Pitomacha'),\n \t array('id' => '14388','state_id' => '889','name' => 'Podgorje'),\n \t array('id' => '14389','state_id' => '889','name' => 'Rezovac'),\n \t array('id' => '14390','state_id' => '889','name' => 'Shpishic Bukovica'),\n \t array('id' => '14391','state_id' => '889','name' => 'Slatina'),\n \t array('id' => '14392','state_id' => '889','name' => 'Suhopolje'),\n \t array('id' => '14393','state_id' => '889','name' => 'Turanovac'),\n \t array('id' => '14394','state_id' => '889','name' => 'Virovitica'),\n \t array('id' => '14395','state_id' => '889','name' => 'Vocin'),\n \t array('id' => '14396','state_id' => '889','name' => 'Zdenci'),\n \t array('id' => '14397','state_id' => '890','name' => 'Andrijashevci'),\n \t array('id' => '14398','state_id' => '890','name' => 'Antin'),\n \t array('id' => '14399','state_id' => '890','name' => 'Babina Greda'),\n \t array('id' => '14400','state_id' => '890','name' => 'Bapska'),\n \t array('id' => '14401','state_id' => '890','name' => 'Bobota'),\n \t array('id' => '14402','state_id' => '890','name' => 'Bogdanovci'),\n \t array('id' => '14403','state_id' => '890','name' => 'Borovo'),\n \t array('id' => '14404','state_id' => '890','name' => 'Boshnjaci'),\n \t array('id' => '14405','state_id' => '890','name' => 'Brshadin'),\n \t array('id' => '14406','state_id' => '890','name' => 'Ceric'),\n \t array('id' => '14407','state_id' => '890','name' => 'Cerna'),\n \t array('id' => '14408','state_id' => '890','name' => 'Drenovci'),\n \t array('id' => '14409','state_id' => '890','name' => 'Gradishte'),\n \t array('id' => '14410','state_id' => '890','name' => 'Gunja'),\n \t array('id' => '14411','state_id' => '890','name' => 'Ilacha'),\n \t array('id' => '14412','state_id' => '890','name' => 'Ilok'),\n \t array('id' => '14413','state_id' => '890','name' => 'Ivankovo'),\n \t array('id' => '14414','state_id' => '890','name' => 'Jarmina'),\n \t array('id' => '14415','state_id' => '890','name' => 'Komletinci'),\n \t array('id' => '14416','state_id' => '890','name' => 'Lipovac'),\n \t array('id' => '14417','state_id' => '890','name' => 'Lovas'),\n \t array('id' => '14418','state_id' => '890','name' => 'Markushica'),\n \t array('id' => '14419','state_id' => '890','name' => 'Mirkovci'),\n \t array('id' => '14420','state_id' => '890','name' => 'Negoslavci'),\n \t array('id' => '14421','state_id' => '890','name' => 'Nijemci'),\n \t array('id' => '14422','state_id' => '890','name' => 'Novi Jankovci'),\n \t array('id' => '14423','state_id' => '890','name' => 'Nushtar'),\n \t array('id' => '14424','state_id' => '890','name' => 'Otok'),\n \t array('id' => '14425','state_id' => '890','name' => 'Petrovci'),\n \t array('id' => '14426','state_id' => '890','name' => 'Posavski Podgajci'),\n \t array('id' => '14427','state_id' => '890','name' => 'Privlaka'),\n \t array('id' => '14428','state_id' => '890','name' => 'Rachinovci'),\n \t array('id' => '14429','state_id' => '890','name' => 'Rajevo Selo'),\n \t array('id' => '14430','state_id' => '890','name' => 'Retkovci'),\n \t array('id' => '14431','state_id' => '890','name' => 'Rokovci'),\n \t array('id' => '14432','state_id' => '890','name' => 'Sharengrad'),\n \t array('id' => '14433','state_id' => '890','name' => 'Shishkovci'),\n \t array('id' => '14434','state_id' => '890','name' => 'Shtitar'),\n \t array('id' => '14435','state_id' => '890','name' => 'Slakovci'),\n \t array('id' => '14436','state_id' => '890','name' => 'Soljani'),\n \t array('id' => '14437','state_id' => '890','name' => 'Sotin'),\n \t array('id' => '14438','state_id' => '890','name' => 'Stari Jankovci'),\n \t array('id' => '14439','state_id' => '890','name' => 'Stari Mikanovci'),\n \t array('id' => '14440','state_id' => '890','name' => 'Tordinci'),\n \t array('id' => '14441','state_id' => '890','name' => 'Tovarnik'),\n \t array('id' => '14442','state_id' => '890','name' => 'Trpinja'),\n \t array('id' => '14443','state_id' => '890','name' => 'Vinkovci'),\n \t array('id' => '14444','state_id' => '890','name' => 'Vodhinci'),\n \t array('id' => '14445','state_id' => '890','name' => 'Vrbanja'),\n \t array('id' => '14446','state_id' => '890','name' => 'Vukovar'),\n \t array('id' => '14447','state_id' => '890','name' => 'Zhupanja'),\n \t array('id' => '14448','state_id' => '891','name' => 'Benkovac'),\n \t array('id' => '14449','state_id' => '891','name' => 'Bibinje'),\n \t array('id' => '14450','state_id' => '891','name' => 'Biograd na Moru'),\n \t array('id' => '14451','state_id' => '891','name' => 'Debeljak'),\n \t array('id' => '14452','state_id' => '891','name' => 'Galovac'),\n \t array('id' => '14453','state_id' => '891','name' => 'Gorica'),\n \t array('id' => '14454','state_id' => '891','name' => 'Gornji Karin'),\n \t array('id' => '14455','state_id' => '891','name' => 'Grachac'),\n \t array('id' => '14456','state_id' => '891','name' => 'Jasenice'),\n \t array('id' => '14457','state_id' => '891','name' => 'Kali'),\n \t array('id' => '14458','state_id' => '891','name' => 'Krushevo'),\n \t array('id' => '14459','state_id' => '891','name' => 'Nin'),\n \t array('id' => '14460','state_id' => '891','name' => 'Obrovac'),\n \t array('id' => '14461','state_id' => '891','name' => 'Pag'),\n \t array('id' => '14462','state_id' => '891','name' => 'Pakoshtane'),\n \t array('id' => '14463','state_id' => '891','name' => 'Polacha'),\n \t array('id' => '14464','state_id' => '891','name' => 'Polichnik'),\n \t array('id' => '14465','state_id' => '891','name' => 'Poljica'),\n \t array('id' => '14466','state_id' => '891','name' => 'Posedarje'),\n \t array('id' => '14467','state_id' => '891','name' => 'Preko'),\n \t array('id' => '14468','state_id' => '891','name' => 'Pridraga'),\n \t array('id' => '14469','state_id' => '891','name' => 'Privlaka'),\n \t array('id' => '14470','state_id' => '891','name' => 'Razhanac'),\n \t array('id' => '14471','state_id' => '891','name' => 'Shkabrnja'),\n \t array('id' => '14472','state_id' => '891','name' => 'Slivnica'),\n \t array('id' => '14473','state_id' => '891','name' => 'Starigrad'),\n \t array('id' => '14474','state_id' => '891','name' => 'Sukoshan'),\n \t array('id' => '14475','state_id' => '891','name' => 'Sveti Filip i Jakov'),\n \t array('id' => '14476','state_id' => '891','name' => 'Turanj'),\n \t array('id' => '14477','state_id' => '891','name' => 'Ugljan'),\n \t array('id' => '14478','state_id' => '891','name' => 'Vir'),\n \t array('id' => '14479','state_id' => '891','name' => 'Vrsi'),\n \t array('id' => '14480','state_id' => '891','name' => 'Zadar'),\n \t array('id' => '14481','state_id' => '891','name' => 'Zemunik Donji'),\n \t array('id' => '14482','state_id' => '892','name' => 'Bestovje'),\n \t array('id' => '14483','state_id' => '892','name' => 'Bishkupec Zelinski'),\n \t array('id' => '14484','state_id' => '892','name' => 'Brckovljani'),\n \t array('id' => '14485','state_id' => '892','name' => 'Brdovec'),\n \t array('id' => '14486','state_id' => '892','name' => 'Bregana'),\n \t array('id' => '14487','state_id' => '892','name' => 'Brezje'),\n \t array('id' => '14488','state_id' => '892','name' => 'Bushevec'),\n \t array('id' => '14489','state_id' => '892','name' => 'Celine'),\n \t array('id' => '14490','state_id' => '892','name' => 'Domaslovec'),\n \t array('id' => '14491','state_id' => '892','name' => 'Donja Bistra'),\n \t array('id' => '14492','state_id' => '892','name' => 'Donja Kupchina'),\n \t array('id' => '14493','state_id' => '892','name' => 'Donja Lomnica'),\n \t array('id' => '14494','state_id' => '892','name' => 'Donja Zdenchina'),\n \t array('id' => '14495','state_id' => '892','name' => 'Donji Desinec'),\n \t array('id' => '14496','state_id' => '892','name' => 'Donji Stupnik'),\n \t array('id' => '14497','state_id' => '892','name' => 'Dubrava'),\n \t array('id' => '14498','state_id' => '892','name' => 'Dugo Selo'),\n \t array('id' => '14499','state_id' => '892','name' => 'Gornja Bistra'),\n \t array('id' => '14500','state_id' => '892','name' => 'Gornji Laduch'),\n \t array('id' => '14501','state_id' => '892','name' => 'Gornji Stupnik'),\n \t array('id' => '14502','state_id' => '892','name' => 'Grachec'),\n \t array('id' => '14503','state_id' => '892','name' => 'Gradici'),\n \t array('id' => '14504','state_id' => '892','name' => 'Ivan Bistranski'),\n \t array('id' => '14505','state_id' => '892','name' => 'Ivanic-Grad'),\n \t array('id' => '14506','state_id' => '892','name' => 'Jablanovec'),\n \t array('id' => '14507','state_id' => '892','name' => 'Jakovlje'),\n \t array('id' => '14508','state_id' => '892','name' => 'Jastrebarsko'),\n \t array('id' => '14509','state_id' => '892','name' => 'Kerestinec'),\n \t array('id' => '14510','state_id' => '892','name' => 'Klincha Sela'),\n \t array('id' => '14511','state_id' => '892','name' => 'Kloshtar Ivanic'),\n \t array('id' => '14512','state_id' => '892','name' => 'Kozinshchak'),\n \t array('id' => '14513','state_id' => '892','name' => 'Krizh'),\n \t array('id' => '14514','state_id' => '892','name' => 'Kuche'),\n \t array('id' => '14515','state_id' => '892','name' => 'Kupinec'),\n \t array('id' => '14516','state_id' => '892','name' => 'Lonjica'),\n \t array('id' => '14517','state_id' => '892','name' => 'Luka'),\n \t array('id' => '14518','state_id' => '892','name' => 'Lukarishce'),\n \t array('id' => '14519','state_id' => '892','name' => 'Lukavec'),\n \t array('id' => '14520','state_id' => '892','name' => 'Lupoglav'),\n \t array('id' => '14521','state_id' => '892','name' => 'Michevec'),\n \t array('id' => '14522','state_id' => '892','name' => 'Mraclin'),\n \t array('id' => '14523','state_id' => '892','name' => 'Novaki'),\n \t array('id' => '14524','state_id' => '892','name' => 'Novo Chiche'),\n \t array('id' => '14525','state_id' => '892','name' => 'Novoselec'),\n \t array('id' => '14526','state_id' => '892','name' => 'Oborovo Bistranski'),\n \t array('id' => '14527','state_id' => '892','name' => 'Oreshje'),\n \t array('id' => '14528','state_id' => '892','name' => 'Pojatno'),\n \t array('id' => '14529','state_id' => '892','name' => 'Poljanica Bistranska'),\n \t array('id' => '14530','state_id' => '892','name' => 'Prigorje Brdovechko'),\n \t array('id' => '14531','state_id' => '892','name' => 'Rakitje'),\n \t array('id' => '14532','state_id' => '892','name' => 'Rakov Potok'),\n \t array('id' => '14533','state_id' => '892','name' => 'Rude'),\n \t array('id' => '14534','state_id' => '892','name' => 'Samobor'),\n \t array('id' => '14535','state_id' => '892','name' => 'Strmec'),\n \t array('id' => '14536','state_id' => '892','name' => 'Sveta Nedelja'),\n \t array('id' => '14537','state_id' => '892','name' => 'Sveti Ivan Zelina'),\n \t array('id' => '14538','state_id' => '892','name' => 'Turopolje'),\n \t array('id' => '14539','state_id' => '892','name' => 'Velika Gorica'),\n \t array('id' => '14540','state_id' => '892','name' => 'Velika Mlaka'),\n \t array('id' => '14541','state_id' => '892','name' => 'Velika Ostrna'),\n \t array('id' => '14542','state_id' => '892','name' => 'Vrbovec'),\n \t array('id' => '14543','state_id' => '892','name' => 'Vukovina'),\n \t array('id' => '14544','state_id' => '892','name' => 'Zapreshic'),\n \t array('id' => '14545','state_id' => '892','name' => 'Zdenci Brdovechki'),\n \t array('id' => '14546','state_id' => '893','name' => 'Camaguey'),\n \t array('id' => '14547','state_id' => '893','name' => 'Caney'),\n \t array('id' => '14548','state_id' => '893','name' => 'Carlos Manuel de Cespedes'),\n \t array('id' => '14549','state_id' => '893','name' => 'Esmeralda'),\n \t array('id' => '14550','state_id' => '893','name' => 'Florida'),\n \t array('id' => '14551','state_id' => '893','name' => 'Guaimaro'),\n \t array('id' => '14552','state_id' => '893','name' => 'Minas'),\n \t array('id' => '14553','state_id' => '893','name' => 'Nuevitas'),\n \t array('id' => '14554','state_id' => '893','name' => 'Santa Cruz del Sur'),\n \t array('id' => '14555','state_id' => '893','name' => 'Sibanicu'),\n \t array('id' => '14556','state_id' => '893','name' => 'Vertientes'),\n \t array('id' => '14557','state_id' => '895','name' => 'Cienfuegos'),\n \t array('id' => '14558','state_id' => '895','name' => 'Cruces'),\n \t array('id' => '14559','state_id' => '895','name' => 'Cumanayagua'),\n \t array('id' => '14560','state_id' => '895','name' => 'Palmira'),\n \t array('id' => '14561','state_id' => '895','name' => 'Rodas'),\n \t array('id' => '14562','state_id' => '897','name' => 'Bayamo'),\n \t array('id' => '14563','state_id' => '897','name' => 'Campechuela'),\n \t array('id' => '14564','state_id' => '897','name' => 'Guisa'),\n \t array('id' => '14565','state_id' => '897','name' => 'Jiguani'),\n \t array('id' => '14566','state_id' => '897','name' => 'Manzanillo'),\n \t array('id' => '14567','state_id' => '897','name' => 'Media Luna'),\n \t array('id' => '14568','state_id' => '897','name' => 'Niquero'),\n \t array('id' => '14569','state_id' => '897','name' => 'Pilon'),\n \t array('id' => '14570','state_id' => '897','name' => 'Rio Cauto'),\n \t array('id' => '14571','state_id' => '897','name' => 'Yara'),\n \t array('id' => '14572','state_id' => '898','name' => 'Baracoa'),\n \t array('id' => '14573','state_id' => '898','name' => 'Guantanamo'),\n \t array('id' => '14574','state_id' => '898','name' => 'Yateras'),\n \t array('id' => '14575','state_id' => '899','name' => 'Havana'),\n \t array('id' => '14576','state_id' => '900','name' => 'Antilla'),\n \t array('id' => '14577','state_id' => '900','name' => 'Baguanos'),\n \t array('id' => '14578','state_id' => '900','name' => 'Banes'),\n \t array('id' => '14579','state_id' => '900','name' => 'Cacocum'),\n \t array('id' => '14580','state_id' => '900','name' => 'Cauto Cristo'),\n \t array('id' => '14581','state_id' => '900','name' => 'Cueto'),\n \t array('id' => '14582','state_id' => '900','name' => 'Gibara'),\n \t array('id' => '14583','state_id' => '900','name' => 'Holguin'),\n \t array('id' => '14584','state_id' => '900','name' => 'Jobabo'),\n \t array('id' => '14585','state_id' => '900','name' => 'Moa'),\n \t array('id' => '14586','state_id' => '900','name' => 'Sagua de Tanamo'),\n \t array('id' => '14587','state_id' => '904','name' => 'Abreus'),\n \t array('id' => '14588','state_id' => '904','name' => 'Agramonte'),\n \t array('id' => '14589','state_id' => '904','name' => 'Aguacate'),\n \t array('id' => '14590','state_id' => '904','name' => 'Aguada de Pasajeros'),\n \t array('id' => '14591','state_id' => '904','name' => 'Alacranes'),\n \t array('id' => '14592','state_id' => '904','name' => 'Bolondron'),\n \t array('id' => '14593','state_id' => '904','name' => 'Calimete'),\n \t array('id' => '14594','state_id' => '904','name' => 'Cardenas'),\n \t array('id' => '14595','state_id' => '904','name' => 'Carlos Rojas'),\n \t array('id' => '14596','state_id' => '904','name' => 'Colon'),\n \t array('id' => '14597','state_id' => '904','name' => 'Corralillo'),\n \t array('id' => '14598','state_id' => '904','name' => 'Jaguey Grande'),\n \t array('id' => '14599','state_id' => '904','name' => 'Jovellanos'),\n \t array('id' => '14600','state_id' => '904','name' => 'Juan Gualberto Gomez'),\n \t array('id' => '14601','state_id' => '904','name' => 'Los Arabos'),\n \t array('id' => '14602','state_id' => '904','name' => 'Manguito'),\n \t array('id' => '14603','state_id' => '904','name' => 'Marti'),\n \t array('id' => '14604','state_id' => '904','name' => 'Matanzas'),\n \t array('id' => '14605','state_id' => '904','name' => 'Maximo Gomez'),\n \t array('id' => '14606','state_id' => '904','name' => 'Pedro Betancourt'),\n \t array('id' => '14607','state_id' => '904','name' => 'Perico'),\n \t array('id' => '14608','state_id' => '904','name' => 'Union de Reyes'),\n \t array('id' => '14609','state_id' => '904','name' => 'Varadero'),\n \t array('id' => '14610','state_id' => '910','name' => 'Limassol'),\n \t array('id' => '14611','state_id' => '912','name' => 'Paphos'),\n \t array('id' => '14612','state_id' => '915','name' => 'Frycovice'),\n \t array('id' => '14613','state_id' => '917','name' => 'Bechyne'),\n \t array('id' => '14614','state_id' => '917','name' => 'Blatna'),\n \t array('id' => '14615','state_id' => '917','name' => 'Cheske Budejovice'),\n \t array('id' => '14616','state_id' => '917','name' => 'Chesky Krumlov'),\n \t array('id' => '14617','state_id' => '917','name' => 'Dachice'),\n \t array('id' => '14618','state_id' => '917','name' => 'Jindrichuv Hradec'),\n \t array('id' => '14619','state_id' => '917','name' => 'Kaplice'),\n \t array('id' => '14620','state_id' => '917','name' => 'Milevsko'),\n \t array('id' => '14621','state_id' => '917','name' => 'Pisek'),\n \t array('id' => '14622','state_id' => '917','name' => 'Prachatice'),\n \t array('id' => '14623','state_id' => '917','name' => 'Protivin'),\n \t array('id' => '14624','state_id' => '917','name' => 'Sezimovo Usti'),\n \t array('id' => '14625','state_id' => '917','name' => 'Sobeslav'),\n \t array('id' => '14626','state_id' => '917','name' => 'Strakonice'),\n \t array('id' => '14627','state_id' => '917','name' => 'Tabor'),\n \t array('id' => '14628','state_id' => '917','name' => 'Trebon'),\n \t array('id' => '14629','state_id' => '917','name' => 'Tyn nad Vltavou'),\n \t array('id' => '14630','state_id' => '917','name' => 'Veseli nad Luzhnici'),\n \t array('id' => '14631','state_id' => '917','name' => 'Vimperk'),\n \t array('id' => '14632','state_id' => '917','name' => 'Vodnany'),\n \t array('id' => '14633','state_id' => '918','name' => 'Adamov'),\n \t array('id' => '14634','state_id' => '918','name' => 'Blansko'),\n \t array('id' => '14635','state_id' => '918','name' => 'Boskovice'),\n \t array('id' => '14636','state_id' => '918','name' => 'Breclav'),\n \t array('id' => '14637','state_id' => '918','name' => 'Brno'),\n \t array('id' => '14638','state_id' => '918','name' => 'Buchovice'),\n \t array('id' => '14639','state_id' => '918','name' => 'Dubnany'),\n \t array('id' => '14640','state_id' => '918','name' => 'Hodonin'),\n \t array('id' => '14641','state_id' => '918','name' => 'Hrusky'),\n \t array('id' => '14642','state_id' => '918','name' => 'Hustopeche'),\n \t array('id' => '14643','state_id' => '918','name' => 'Ivanchice'),\n \t array('id' => '14644','state_id' => '918','name' => 'Kurim'),\n \t array('id' => '14645','state_id' => '918','name' => 'Kyjov'),\n \t array('id' => '14646','state_id' => '918','name' => 'Letovice'),\n \t array('id' => '14647','state_id' => '918','name' => 'Mikulov'),\n \t array('id' => '14648','state_id' => '918','name' => 'Moravsky Krumlov'),\n \t array('id' => '14649','state_id' => '918','name' => 'Namesht\\' nad Oslavou'),\n \t array('id' => '14650','state_id' => '918','name' => 'Rosice'),\n \t array('id' => '14651','state_id' => '918','name' => 'Shlapanice'),\n \t array('id' => '14652','state_id' => '918','name' => 'Slavkov u Brna'),\n \t array('id' => '14653','state_id' => '918','name' => 'Tishnov'),\n \t array('id' => '14654','state_id' => '918','name' => 'Vyshkov'),\n \t array('id' => '14655','state_id' => '918','name' => 'Znojmo'),\n \t array('id' => '14656','state_id' => '919','name' => 'Ash'),\n \t array('id' => '14657','state_id' => '919','name' => 'Bozicany'),\n \t array('id' => '14658','state_id' => '919','name' => 'Cheb'),\n \t array('id' => '14659','state_id' => '919','name' => 'Chodov'),\n \t array('id' => '14660','state_id' => '919','name' => 'Frantishkovy Lazne'),\n \t array('id' => '14661','state_id' => '919','name' => 'Horni Slavkov'),\n \t array('id' => '14662','state_id' => '919','name' => 'Karlovy Vary'),\n \t array('id' => '14663','state_id' => '919','name' => 'Kraslice'),\n \t array('id' => '14664','state_id' => '919','name' => 'Kynshperk nad Ohri'),\n \t array('id' => '14665','state_id' => '919','name' => 'Marianske Lazne'),\n \t array('id' => '14666','state_id' => '919','name' => 'Nejdek'),\n \t array('id' => '14667','state_id' => '919','name' => 'Ostrov'),\n \t array('id' => '14668','state_id' => '919','name' => 'Sokolov'),\n \t array('id' => '14669','state_id' => '920','name' => 'Klecany'),\n \t array('id' => '14670','state_id' => '921','name' => 'Broumov'),\n \t array('id' => '14671','state_id' => '921','name' => 'Cherveny Kostelec'),\n \t array('id' => '14672','state_id' => '921','name' => 'Cheska Skalice'),\n \t array('id' => '14673','state_id' => '921','name' => 'Chlumec nad Cidlinou'),\n \t array('id' => '14674','state_id' => '921','name' => 'Dobrushka'),\n \t array('id' => '14675','state_id' => '921','name' => 'Dvur Kralove'),\n \t array('id' => '14676','state_id' => '921','name' => 'Habartov'),\n \t array('id' => '14677','state_id' => '921','name' => 'Holice'),\n \t array('id' => '14678','state_id' => '921','name' => 'Horice'),\n \t array('id' => '14679','state_id' => '921','name' => 'Hostinne'),\n \t array('id' => '14680','state_id' => '921','name' => 'Hradec Kralove'),\n \t array('id' => '14681','state_id' => '921','name' => 'Hronov'),\n \t array('id' => '14682','state_id' => '921','name' => 'Jaromer'),\n \t array('id' => '14683','state_id' => '921','name' => 'Jichin'),\n \t array('id' => '14684','state_id' => '921','name' => 'Kostelec nad Orlici'),\n \t array('id' => '14685','state_id' => '921','name' => 'Nachod'),\n \t array('id' => '14686','state_id' => '921','name' => 'Nova Paka'),\n \t array('id' => '14687','state_id' => '921','name' => 'Nove Mesto nad Metuji'),\n \t array('id' => '14688','state_id' => '921','name' => 'Novy Bydzhov'),\n \t array('id' => '14689','state_id' => '921','name' => 'Rychnov nad Knezhnou'),\n \t array('id' => '14690','state_id' => '921','name' => 'Trebechovice pod Orebem'),\n \t array('id' => '14691','state_id' => '921','name' => 'Trutnov'),\n \t array('id' => '14692','state_id' => '921','name' => 'Tynishte nad Orlici'),\n \t array('id' => '14693','state_id' => '921','name' => 'Upice'),\n \t array('id' => '14694','state_id' => '921','name' => 'Vrchlabi'),\n \t array('id' => '14695','state_id' => '922','name' => 'Ceska Lipa'),\n \t array('id' => '14696','state_id' => '922','name' => 'Cheska Kamenice'),\n \t array('id' => '14697','state_id' => '922','name' => 'Cheska Lipa'),\n \t array('id' => '14698','state_id' => '922','name' => 'Chrastava'),\n \t array('id' => '14699','state_id' => '922','name' => 'Doksy'),\n \t array('id' => '14700','state_id' => '922','name' => 'Frydlant'),\n \t array('id' => '14701','state_id' => '922','name' => 'Hradek'),\n \t array('id' => '14702','state_id' => '922','name' => 'Jablonec'),\n \t array('id' => '14703','state_id' => '922','name' => 'Jilemnice'),\n \t array('id' => '14704','state_id' => '922','name' => 'Liberec'),\n \t array('id' => '14705','state_id' => '922','name' => 'Lomnice nad Popelkou'),\n \t array('id' => '14706','state_id' => '922','name' => 'Mimon'),\n \t array('id' => '14707','state_id' => '922','name' => 'Novy Bor'),\n \t array('id' => '14708','state_id' => '922','name' => 'Semily'),\n \t array('id' => '14709','state_id' => '922','name' => 'Tanvald'),\n \t array('id' => '14710','state_id' => '922','name' => 'Turnov'),\n \t array('id' => '14711','state_id' => '922','name' => 'Zhelezny Brod'),\n \t array('id' => '14712','state_id' => '923','name' => 'Lipov'),\n \t array('id' => '14713','state_id' => '924','name' => 'Bilovec'),\n \t array('id' => '14714','state_id' => '924','name' => 'Bohumin'),\n \t array('id' => '14715','state_id' => '924','name' => 'Bruntal'),\n \t array('id' => '14716','state_id' => '924','name' => 'Chesky Teshin'),\n \t array('id' => '14717','state_id' => '924','name' => 'Frenshtat'),\n \t array('id' => '14718','state_id' => '924','name' => 'Frydek-Mistek'),\n \t array('id' => '14719','state_id' => '924','name' => 'Frydlant nad Ostravici'),\n \t array('id' => '14720','state_id' => '924','name' => 'Fulnek'),\n \t array('id' => '14721','state_id' => '924','name' => 'Havirov'),\n \t array('id' => '14722','state_id' => '924','name' => 'Hluchin'),\n \t array('id' => '14723','state_id' => '924','name' => 'Hradec nad Moravice'),\n \t array('id' => '14724','state_id' => '924','name' => 'Jablunkov'),\n \t array('id' => '14725','state_id' => '924','name' => 'Karvina'),\n \t array('id' => '14726','state_id' => '924','name' => 'Koprivnice'),\n \t array('id' => '14727','state_id' => '924','name' => 'Kravare'),\n \t array('id' => '14728','state_id' => '924','name' => 'Krnov'),\n \t array('id' => '14729','state_id' => '924','name' => 'Novy Jichin'),\n \t array('id' => '14730','state_id' => '924','name' => 'Odry'),\n \t array('id' => '14731','state_id' => '924','name' => 'Opava'),\n \t array('id' => '14732','state_id' => '924','name' => 'Orlova'),\n \t array('id' => '14733','state_id' => '924','name' => 'Ostrava'),\n \t array('id' => '14734','state_id' => '924','name' => 'Petrvald'),\n \t array('id' => '14735','state_id' => '924','name' => 'Pribor'),\n \t array('id' => '14736','state_id' => '924','name' => 'Rychvald'),\n \t array('id' => '14737','state_id' => '924','name' => 'Rymarov'),\n \t array('id' => '14738','state_id' => '924','name' => 'Shenov'),\n \t array('id' => '14739','state_id' => '924','name' => 'Studenka'),\n \t array('id' => '14740','state_id' => '924','name' => 'Trinec'),\n \t array('id' => '14741','state_id' => '924','name' => 'Vitkov'),\n \t array('id' => '14742','state_id' => '924','name' => 'Vratimov'),\n \t array('id' => '14743','state_id' => '924','name' => 'Vrbno pod Pradedem'),\n \t array('id' => '14744','state_id' => '925','name' => 'Hranice'),\n \t array('id' => '14745','state_id' => '925','name' => 'Jesenik'),\n \t array('id' => '14746','state_id' => '925','name' => 'Kojetin'),\n \t array('id' => '14747','state_id' => '925','name' => 'Lipnik nad Becvou'),\n \t array('id' => '14748','state_id' => '925','name' => 'Litovel'),\n \t array('id' => '14749','state_id' => '925','name' => 'Mohelnice'),\n \t array('id' => '14750','state_id' => '925','name' => 'Olomouc'),\n \t array('id' => '14751','state_id' => '925','name' => 'Prerov'),\n \t array('id' => '14752','state_id' => '925','name' => 'Prostejov'),\n \t array('id' => '14753','state_id' => '925','name' => 'Shternberk'),\n \t array('id' => '14754','state_id' => '925','name' => 'Shumperk'),\n \t array('id' => '14755','state_id' => '925','name' => 'Unichov'),\n \t array('id' => '14756','state_id' => '925','name' => 'Zabreh'),\n \t array('id' => '14757','state_id' => '926','name' => 'Hranice'),\n \t array('id' => '14758','state_id' => '926','name' => 'Jesenik'),\n \t array('id' => '14759','state_id' => '926','name' => 'Kojetin'),\n \t array('id' => '14760','state_id' => '926','name' => 'Lipnik nad Becvou'),\n \t array('id' => '14761','state_id' => '926','name' => 'Litovel'),\n \t array('id' => '14762','state_id' => '926','name' => 'Mohelnice'),\n \t array('id' => '14763','state_id' => '926','name' => 'Olomouc'),\n \t array('id' => '14764','state_id' => '926','name' => 'Prerov'),\n \t array('id' => '14765','state_id' => '926','name' => 'Prostejov'),\n \t array('id' => '14766','state_id' => '926','name' => 'Shternberk'),\n \t array('id' => '14767','state_id' => '926','name' => 'Shumperk'),\n \t array('id' => '14768','state_id' => '926','name' => 'Unichov'),\n \t array('id' => '14769','state_id' => '926','name' => 'Zabreh'),\n \t array('id' => '14770','state_id' => '927','name' => 'Cheska Trebova'),\n \t array('id' => '14771','state_id' => '927','name' => 'Chocen'),\n \t array('id' => '14772','state_id' => '927','name' => 'Chrudim'),\n \t array('id' => '14773','state_id' => '927','name' => 'Chvaletice'),\n \t array('id' => '14774','state_id' => '927','name' => 'Hermanuv Mestec'),\n \t array('id' => '14775','state_id' => '927','name' => 'Hlinsko'),\n \t array('id' => '14776','state_id' => '927','name' => 'Lanshkroun'),\n \t array('id' => '14777','state_id' => '927','name' => 'Letohrad'),\n \t array('id' => '14778','state_id' => '927','name' => 'Litomyshl'),\n \t array('id' => '14779','state_id' => '927','name' => 'Moravska Trebova'),\n \t array('id' => '14780','state_id' => '927','name' => 'Pardubice'),\n \t array('id' => '14781','state_id' => '927','name' => 'Polichka'),\n \t array('id' => '14782','state_id' => '927','name' => 'Policka'),\n \t array('id' => '14783','state_id' => '927','name' => 'Prelouch'),\n \t array('id' => '14784','state_id' => '927','name' => 'Skutech'),\n \t array('id' => '14785','state_id' => '927','name' => 'Svitavy'),\n \t array('id' => '14786','state_id' => '927','name' => 'Usti nad Orlici'),\n \t array('id' => '14787','state_id' => '927','name' => 'Vysoke Myto'),\n \t array('id' => '14788','state_id' => '927','name' => 'Zhamberk'),\n \t array('id' => '14789','state_id' => '928','name' => 'Dobrany'),\n \t array('id' => '14790','state_id' => '928','name' => 'Domazhlice'),\n \t array('id' => '14791','state_id' => '928','name' => 'Horazhd\\'ovice'),\n \t array('id' => '14792','state_id' => '928','name' => 'Horshovky Tyn'),\n \t array('id' => '14793','state_id' => '928','name' => 'Kdyne'),\n \t array('id' => '14794','state_id' => '928','name' => 'Klatovy'),\n \t array('id' => '14795','state_id' => '928','name' => 'Nyrany'),\n \t array('id' => '14796','state_id' => '928','name' => 'Nyrsko'),\n \t array('id' => '14797','state_id' => '928','name' => 'Plana'),\n \t array('id' => '14798','state_id' => '928','name' => 'Plzen'),\n \t array('id' => '14799','state_id' => '928','name' => 'Preshtice'),\n \t array('id' => '14800','state_id' => '928','name' => 'Radnice'),\n \t array('id' => '14801','state_id' => '928','name' => 'Rokycany'),\n \t array('id' => '14802','state_id' => '928','name' => 'Stribro'),\n \t array('id' => '14803','state_id' => '928','name' => 'Sushice'),\n \t array('id' => '14804','state_id' => '928','name' => 'Tachov'),\n \t array('id' => '14805','state_id' => '929','name' => 'Prague'),\n \t array('id' => '14806','state_id' => '929','name' => 'Praha'),\n \t array('id' => '14807','state_id' => '930','name' => 'Rajhrad'),\n \t array('id' => '14808','state_id' => '931','name' => 'Smirice'),\n \t array('id' => '14809','state_id' => '934','name' => 'Benatky nad Jizerou'),\n \t array('id' => '14810','state_id' => '934','name' => 'Beneshov'),\n \t array('id' => '14811','state_id' => '934','name' => 'Beroun'),\n \t array('id' => '14812','state_id' => '934','name' => 'Brandys nad Labem-Stara Bolesl'),\n \t array('id' => '14813','state_id' => '934','name' => 'Chaslav'),\n \t array('id' => '14814','state_id' => '934','name' => 'Chavaletice'),\n \t array('id' => '14815','state_id' => '934','name' => 'Chelakovice'),\n \t array('id' => '14816','state_id' => '934','name' => 'Chesky Brod'),\n \t array('id' => '14817','state_id' => '934','name' => 'Dobrish'),\n \t array('id' => '14818','state_id' => '934','name' => 'Horovice'),\n \t array('id' => '14819','state_id' => '934','name' => 'Kladno'),\n \t array('id' => '14820','state_id' => '934','name' => 'Kolin'),\n \t array('id' => '14821','state_id' => '934','name' => 'Kralupy nad Vltavou'),\n \t array('id' => '14822','state_id' => '934','name' => 'Kutna Hora'),\n \t array('id' => '14823','state_id' => '934','name' => 'Lysa nad Labem'),\n \t array('id' => '14824','state_id' => '934','name' => 'Melnik'),\n \t array('id' => '14825','state_id' => '934','name' => 'Mlada Boleslav'),\n \t array('id' => '14826','state_id' => '934','name' => 'Mnichovo Hradishte'),\n \t array('id' => '14827','state_id' => '934','name' => 'Neratovice'),\n \t array('id' => '14828','state_id' => '934','name' => 'Nove Strasheci'),\n \t array('id' => '14829','state_id' => '934','name' => 'Nymburk'),\n \t array('id' => '14830','state_id' => '934','name' => 'Podebrady'),\n \t array('id' => '14831','state_id' => '934','name' => 'Pribram'),\n \t array('id' => '14832','state_id' => '934','name' => 'Rakovnik'),\n \t array('id' => '14833','state_id' => '934','name' => 'Richany'),\n \t array('id' => '14834','state_id' => '934','name' => 'Rousinov'),\n \t array('id' => '14835','state_id' => '934','name' => 'Roztoky'),\n \t array('id' => '14836','state_id' => '934','name' => 'Sedlcany'),\n \t array('id' => '14837','state_id' => '934','name' => 'Slany'),\n \t array('id' => '14838','state_id' => '934','name' => 'Stochov'),\n \t array('id' => '14839','state_id' => '934','name' => 'Vlashim'),\n \t array('id' => '14840','state_id' => '934','name' => 'Zruch nad Sazavou'),\n \t array('id' => '14841','state_id' => '935','name' => 'Unicov'),\n \t array('id' => '14842','state_id' => '936','name' => 'Bilina'),\n \t array('id' => '14843','state_id' => '936','name' => 'Chomutov'),\n \t array('id' => '14844','state_id' => '936','name' => 'Dechin'),\n \t array('id' => '14845','state_id' => '936','name' => 'Dubi'),\n \t array('id' => '14846','state_id' => '936','name' => 'Duchcov'),\n \t array('id' => '14847','state_id' => '936','name' => 'Jilove'),\n \t array('id' => '14848','state_id' => '936','name' => 'Jirkov'),\n \t array('id' => '14849','state_id' => '936','name' => 'Kadan'),\n \t array('id' => '14850','state_id' => '936','name' => 'Klasterec nad Ohri'),\n \t array('id' => '14851','state_id' => '936','name' => 'Krupka'),\n \t array('id' => '14852','state_id' => '936','name' => 'Litomerice'),\n \t array('id' => '14853','state_id' => '936','name' => 'Litvinov'),\n \t array('id' => '14854','state_id' => '936','name' => 'Louny'),\n \t array('id' => '14855','state_id' => '936','name' => 'Lovosice'),\n \t array('id' => '14856','state_id' => '936','name' => 'Mezibori'),\n \t array('id' => '14857','state_id' => '936','name' => 'Most'),\n \t array('id' => '14858','state_id' => '936','name' => 'Osek'),\n \t array('id' => '14859','state_id' => '936','name' => 'Podborany'),\n \t array('id' => '14860','state_id' => '936','name' => 'Roudnice'),\n \t array('id' => '14861','state_id' => '936','name' => 'Rumburk'),\n \t array('id' => '14862','state_id' => '936','name' => 'Shluknov'),\n \t array('id' => '14863','state_id' => '936','name' => 'Shteti'),\n \t array('id' => '14864','state_id' => '936','name' => 'Teplice'),\n \t array('id' => '14865','state_id' => '936','name' => 'Usti'),\n \t array('id' => '14866','state_id' => '936','name' => 'Varnsdorf'),\n \t array('id' => '14867','state_id' => '936','name' => 'Zatec'),\n \t array('id' => '14868','state_id' => '937','name' => 'Valletta'),\n \t array('id' => '14869','state_id' => '938','name' => 'Velesin'),\n \t array('id' => '14870','state_id' => '939','name' => 'Bystrice nad Pernshtejnem'),\n \t array('id' => '14871','state_id' => '939','name' => 'Chotebor'),\n \t array('id' => '14872','state_id' => '939','name' => 'Havlichkuv Brod'),\n \t array('id' => '14873','state_id' => '939','name' => 'Humpolec'),\n \t array('id' => '14874','state_id' => '939','name' => 'Jihlava'),\n \t array('id' => '14875','state_id' => '939','name' => 'Ledech'),\n \t array('id' => '14876','state_id' => '939','name' => 'Moravske Budejovice'),\n \t array('id' => '14877','state_id' => '939','name' => 'Nove Mesto na Morave'),\n \t array('id' => '14878','state_id' => '939','name' => 'Okrisky'),\n \t array('id' => '14879','state_id' => '939','name' => 'Pacov'),\n \t array('id' => '14880','state_id' => '939','name' => 'Pelhrimov'),\n \t array('id' => '14881','state_id' => '939','name' => 'Polna'),\n \t array('id' => '14882','state_id' => '939','name' => 'Svetla nad Sazavou'),\n \t array('id' => '14883','state_id' => '939','name' => 'Telch'),\n \t array('id' => '14884','state_id' => '939','name' => 'Trebich'),\n \t array('id' => '14885','state_id' => '939','name' => 'Tresht\\''),\n \t array('id' => '14886','state_id' => '939','name' => 'Velke Mezirichi'),\n \t array('id' => '14887','state_id' => '939','name' => 'Zhd\\'ar'),\n \t array('id' => '14888','state_id' => '940','name' => 'Brumov'),\n \t array('id' => '14889','state_id' => '940','name' => 'Bystrice pod Hostynem'),\n \t array('id' => '14890','state_id' => '940','name' => 'Chropyne'),\n \t array('id' => '14891','state_id' => '940','name' => 'Holeshov'),\n \t array('id' => '14892','state_id' => '940','name' => 'Hulin'),\n \t array('id' => '14893','state_id' => '940','name' => 'Kromerizh'),\n \t array('id' => '14894','state_id' => '940','name' => 'Kunovice'),\n \t array('id' => '14895','state_id' => '940','name' => 'Napajedla'),\n \t array('id' => '14896','state_id' => '940','name' => 'Otrokovice'),\n \t array('id' => '14897','state_id' => '940','name' => 'Rozhnov'),\n \t array('id' => '14898','state_id' => '940','name' => 'Roznov pod Radhostem'),\n \t array('id' => '14899','state_id' => '940','name' => 'Slavicin'),\n \t array('id' => '14900','state_id' => '940','name' => 'Slusovice'),\n \t array('id' => '14901','state_id' => '940','name' => 'Stare Mesto'),\n \t array('id' => '14902','state_id' => '940','name' => 'Strazhnice'),\n \t array('id' => '14903','state_id' => '940','name' => 'Uherske Hradishte'),\n \t array('id' => '14904','state_id' => '940','name' => 'Uhersky Brod'),\n \t array('id' => '14905','state_id' => '940','name' => 'Valashske Klobouky'),\n \t array('id' => '14906','state_id' => '940','name' => 'Valashske Mezirichi'),\n \t array('id' => '14907','state_id' => '940','name' => 'Veseli nad Moravou'),\n \t array('id' => '14908','state_id' => '940','name' => 'Vsetin'),\n \t array('id' => '14909','state_id' => '940','name' => 'Zborovice'),\n \t array('id' => '14910','state_id' => '940','name' => 'Zlin'),\n \t array('id' => '14911','state_id' => '941','name' => 'Aarhus'),\n \t array('id' => '14912','state_id' => '941','name' => 'Allingabro'),\n \t array('id' => '14913','state_id' => '941','name' => 'Arhus'),\n \t array('id' => '14914','state_id' => '941','name' => 'Assentoft'),\n \t array('id' => '14915','state_id' => '941','name' => 'Auning'),\n \t array('id' => '14916','state_id' => '941','name' => 'Beder'),\n \t array('id' => '14917','state_id' => '941','name' => 'Brabrand'),\n \t array('id' => '14918','state_id' => '941','name' => 'Ebeltoft'),\n \t array('id' => '14919','state_id' => '941','name' => 'Framlev'),\n \t array('id' => '14920','state_id' => '941','name' => 'Galten'),\n \t array('id' => '14921','state_id' => '941','name' => 'Grenaa'),\n \t array('id' => '14922','state_id' => '941','name' => 'Hadsten'),\n \t array('id' => '14923','state_id' => '941','name' => 'Hammel'),\n \t array('id' => '14924','state_id' => '941','name' => 'Hinnerup'),\n \t array('id' => '14925','state_id' => '941','name' => 'Hjortshoj'),\n \t array('id' => '14926','state_id' => '941','name' => 'Horning'),\n \t array('id' => '14927','state_id' => '941','name' => 'Hornslet'),\n \t array('id' => '14928','state_id' => '941','name' => 'Kolt'),\n \t array('id' => '14929','state_id' => '941','name' => 'Langa'),\n \t array('id' => '14930','state_id' => '941','name' => 'Logten'),\n \t array('id' => '14931','state_id' => '941','name' => 'Lystrup'),\n \t array('id' => '14932','state_id' => '941','name' => 'Malling'),\n \t array('id' => '14933','state_id' => '941','name' => 'Mariager'),\n \t array('id' => '14934','state_id' => '941','name' => 'Marslet'),\n \t array('id' => '14935','state_id' => '941','name' => 'Odder'),\n \t array('id' => '14936','state_id' => '941','name' => 'Randers'),\n \t array('id' => '14937','state_id' => '941','name' => 'Risskov'),\n \t array('id' => '14938','state_id' => '941','name' => 'Ronde'),\n \t array('id' => '14939','state_id' => '941','name' => 'Ry'),\n \t array('id' => '14940','state_id' => '941','name' => 'Ryomgard'),\n \t array('id' => '14941','state_id' => '941','name' => 'Sabro'),\n \t array('id' => '14942','state_id' => '941','name' => 'Silkeborg'),\n \t array('id' => '14943','state_id' => '941','name' => 'Skanderborg'),\n \t array('id' => '14944','state_id' => '941','name' => 'Skovby'),\n \t array('id' => '14945','state_id' => '941','name' => 'Soften'),\n \t array('id' => '14946','state_id' => '941','name' => 'Solbjerg'),\n \t array('id' => '14947','state_id' => '941','name' => 'Spentrup'),\n \t array('id' => '14948','state_id' => '941','name' => 'Stavtrup'),\n \t array('id' => '14949','state_id' => '941','name' => 'Stilling'),\n \t array('id' => '14950','state_id' => '941','name' => 'Svejbak'),\n \t array('id' => '14951','state_id' => '941','name' => 'Tranbjerg'),\n \t array('id' => '14952','state_id' => '941','name' => 'Trige'),\n \t array('id' => '14953','state_id' => '941','name' => 'Virklund'),\n \t array('id' => '14954','state_id' => '942','name' => 'Aakirkeby'),\n \t array('id' => '14955','state_id' => '942','name' => 'Allinge-Sandvig'),\n \t array('id' => '14956','state_id' => '942','name' => 'Nexo'),\n \t array('id' => '14957','state_id' => '942','name' => 'Ronne'),\n \t array('id' => '14958','state_id' => '943','name' => 'Allerod'),\n \t array('id' => '14959','state_id' => '943','name' => 'Birkerod'),\n \t array('id' => '14960','state_id' => '943','name' => 'Blovstrod'),\n \t array('id' => '14961','state_id' => '943','name' => 'Espergarde'),\n \t array('id' => '14962','state_id' => '943','name' => 'Farum'),\n \t array('id' => '14963','state_id' => '943','name' => 'Fredensborg'),\n \t array('id' => '14964','state_id' => '943','name' => 'Frederikssund'),\n \t array('id' => '14965','state_id' => '943','name' => 'Frederiksvark'),\n \t array('id' => '14966','state_id' => '943','name' => 'Ganlose'),\n \t array('id' => '14967','state_id' => '943','name' => 'Gilleleje'),\n \t array('id' => '14968','state_id' => '943','name' => 'Grasted'),\n \t array('id' => '14969','state_id' => '943','name' => 'Hellebak'),\n \t array('id' => '14970','state_id' => '943','name' => 'Helsinge'),\n \t array('id' => '14971','state_id' => '943','name' => 'Helsingor'),\n \t array('id' => '14972','state_id' => '943','name' => 'Hillerod'),\n \t array('id' => '14973','state_id' => '943','name' => 'Hornbak'),\n \t array('id' => '14974','state_id' => '943','name' => 'Horsholm'),\n \t array('id' => '14975','state_id' => '943','name' => 'Humlebak'),\n \t array('id' => '14976','state_id' => '943','name' => 'Hundested'),\n \t array('id' => '14977','state_id' => '943','name' => 'Jagerspris'),\n \t array('id' => '14978','state_id' => '943','name' => 'Kvistgaard'),\n \t array('id' => '14979','state_id' => '943','name' => 'Lillerod'),\n \t array('id' => '14980','state_id' => '943','name' => 'Liseleje'),\n \t array('id' => '14981','state_id' => '943','name' => 'Lynge'),\n \t array('id' => '14982','state_id' => '943','name' => 'Niva'),\n \t array('id' => '14983','state_id' => '943','name' => 'Nodebo'),\n \t array('id' => '14984','state_id' => '943','name' => 'Olstykke'),\n \t array('id' => '14985','state_id' => '943','name' => 'Skibby'),\n \t array('id' => '14986','state_id' => '943','name' => 'Slangerup'),\n \t array('id' => '14987','state_id' => '943','name' => 'Stavnsholt'),\n \t array('id' => '14988','state_id' => '943','name' => 'Stenlose'),\n \t array('id' => '14989','state_id' => '943','name' => 'Valby'),\n \t array('id' => '14990','state_id' => '943','name' => 'Vekso'),\n \t array('id' => '14991','state_id' => '944','name' => 'Aarup'),\n \t array('id' => '14992','state_id' => '944','name' => 'Arslev'),\n \t array('id' => '14993','state_id' => '944','name' => 'Assens'),\n \t array('id' => '14994','state_id' => '944','name' => 'Bellinge'),\n \t array('id' => '14995','state_id' => '944','name' => 'Blommenslyst'),\n \t array('id' => '14996','state_id' => '944','name' => 'Bogense'),\n \t array('id' => '14997','state_id' => '944','name' => 'Brenderup'),\n \t array('id' => '14998','state_id' => '944','name' => 'Broby'),\n \t array('id' => '14999','state_id' => '944','name' => 'Bullerup'),\n \t array('id' => '15000','state_id' => '944','name' => 'Ejby'),\n \t array('id' => '15001','state_id' => '944','name' => 'Faaborg'),\n \t array('id' => '15002','state_id' => '944','name' => 'Glamsbjerg'),\n \t array('id' => '15003','state_id' => '944','name' => 'Haarby'),\n \t array('id' => '15004','state_id' => '944','name' => 'Hojby'),\n \t array('id' => '15005','state_id' => '944','name' => 'Kerteminde'),\n \t array('id' => '15006','state_id' => '944','name' => 'Langeskov'),\n \t array('id' => '15007','state_id' => '944','name' => 'Marstal'),\n \t array('id' => '15008','state_id' => '944','name' => 'Middelfart'),\n \t array('id' => '15009','state_id' => '944','name' => 'Munkebo'),\n \t array('id' => '15010','state_id' => '944','name' => 'Neder Holluf'),\n \t array('id' => '15011','state_id' => '944','name' => 'Norre Aaby'),\n \t array('id' => '15012','state_id' => '944','name' => 'Nyborg'),\n \t array('id' => '15013','state_id' => '944','name' => 'Odense'),\n \t array('id' => '15014','state_id' => '944','name' => 'Otterup'),\n \t array('id' => '15015','state_id' => '944','name' => 'Ringe'),\n \t array('id' => '15016','state_id' => '944','name' => 'Rudkobing'),\n \t array('id' => '15017','state_id' => '944','name' => 'Sankt Klemens'),\n \t array('id' => '15018','state_id' => '944','name' => 'Seden'),\n \t array('id' => '15019','state_id' => '944','name' => 'Sonderso'),\n \t array('id' => '15020','state_id' => '944','name' => 'Stige'),\n \t array('id' => '15021','state_id' => '944','name' => 'Strib'),\n \t array('id' => '15022','state_id' => '944','name' => 'Svendborg'),\n \t array('id' => '15023','state_id' => '944','name' => 'Thuro'),\n \t array('id' => '15024','state_id' => '944','name' => 'Tommerup'),\n \t array('id' => '15025','state_id' => '944','name' => 'Ullerslev'),\n \t array('id' => '15026','state_id' => '944','name' => 'Vindeby'),\n \t array('id' => '15027','state_id' => '944','name' => 'Vissenbjerg'),\n \t array('id' => '15028','state_id' => '945','name' => 'Ballerup'),\n \t array('id' => '15029','state_id' => '945','name' => 'Brondby'),\n \t array('id' => '15030','state_id' => '945','name' => 'Stenlose'),\n \t array('id' => '15031','state_id' => '945','name' => 'Vallensbaek'),\n \t array('id' => '15032','state_id' => '946','name' => 'Dragor'),\n \t array('id' => '15033','state_id' => '946','name' => 'Flong'),\n \t array('id' => '15034','state_id' => '946','name' => 'Gentofte'),\n \t array('id' => '15035','state_id' => '946','name' => 'Glostrup'),\n \t array('id' => '15036','state_id' => '946','name' => 'Herlev'),\n \t array('id' => '15037','state_id' => '946','name' => 'Hvidovre'),\n \t array('id' => '15038','state_id' => '946','name' => 'Ishoj'),\n \t array('id' => '15039','state_id' => '946','name' => 'Kastrup'),\n \t array('id' => '15040','state_id' => '946','name' => 'Lyngby'),\n \t array('id' => '15041','state_id' => '946','name' => 'Malov'),\n \t array('id' => '15042','state_id' => '946','name' => 'Smorumnedre'),\n \t array('id' => '15043','state_id' => '946','name' => 'Taastrup'),\n \t array('id' => '15044','state_id' => '946','name' => 'Trorod'),\n \t array('id' => '15045','state_id' => '946','name' => 'Vanlose'),\n \t array('id' => '15046','state_id' => '946','name' => 'Varlose'),\n \t array('id' => '15047','state_id' => '949','name' => 'Aabybro'),\n \t array('id' => '15048','state_id' => '949','name' => 'Aalborg'),\n \t array('id' => '15049','state_id' => '949','name' => 'Aars'),\n \t array('id' => '15050','state_id' => '949','name' => 'Arden'),\n \t array('id' => '15051','state_id' => '949','name' => 'Bindslev'),\n \t array('id' => '15052','state_id' => '949','name' => 'Bronderslev'),\n \t array('id' => '15053','state_id' => '949','name' => 'Brovst'),\n \t array('id' => '15054','state_id' => '949','name' => 'Dronninglund'),\n \t array('id' => '15055','state_id' => '949','name' => 'Farso'),\n \t array('id' => '15056','state_id' => '949','name' => 'Fjerritslev'),\n \t array('id' => '15057','state_id' => '949','name' => 'Frederikshavn'),\n \t array('id' => '15058','state_id' => '949','name' => 'Frejlev'),\n \t array('id' => '15059','state_id' => '949','name' => 'Gistrup'),\n \t array('id' => '15060','state_id' => '949','name' => 'Gorlose'),\n \t array('id' => '15061','state_id' => '949','name' => 'Hadsund'),\n \t array('id' => '15062','state_id' => '949','name' => 'Hals'),\n \t array('id' => '15063','state_id' => '949','name' => 'Hirtshals'),\n \t array('id' => '15064','state_id' => '949','name' => 'Hjallerup'),\n \t array('id' => '15065','state_id' => '949','name' => 'Hjorring'),\n \t array('id' => '15066','state_id' => '949','name' => 'Hobro'),\n \t array('id' => '15067','state_id' => '949','name' => 'Kas'),\n \t array('id' => '15068','state_id' => '949','name' => 'Klarup'),\n \t array('id' => '15069','state_id' => '949','name' => 'Logstor'),\n \t array('id' => '15070','state_id' => '949','name' => 'Nibe'),\n \t array('id' => '15071','state_id' => '949','name' => 'Norresundby'),\n \t array('id' => '15072','state_id' => '949','name' => 'Nørresundby'),\n \t array('id' => '15073','state_id' => '949','name' => 'Pandrup'),\n \t array('id' => '15074','state_id' => '949','name' => 'Saby'),\n \t array('id' => '15075','state_id' => '949','name' => 'Sindal'),\n \t array('id' => '15076','state_id' => '949','name' => 'Skagen'),\n \t array('id' => '15077','state_id' => '949','name' => 'Skorping'),\n \t array('id' => '15078','state_id' => '949','name' => 'Storvorde'),\n \t array('id' => '15079','state_id' => '949','name' => 'Stovring'),\n \t array('id' => '15080','state_id' => '949','name' => 'Strandby'),\n \t array('id' => '15081','state_id' => '949','name' => 'Sulsted'),\n \t array('id' => '15082','state_id' => '949','name' => 'Svenstrup'),\n \t array('id' => '15083','state_id' => '949','name' => 'Tars'),\n \t array('id' => '15084','state_id' => '949','name' => 'Tranekaer'),\n \t array('id' => '15085','state_id' => '949','name' => 'Vadum'),\n \t array('id' => '15086','state_id' => '949','name' => 'Vestbjerg'),\n \t array('id' => '15087','state_id' => '949','name' => 'Vester Hassing'),\n \t array('id' => '15088','state_id' => '949','name' => 'Vodskov'),\n \t array('id' => '15089','state_id' => '949','name' => 'Vra'),\n \t array('id' => '15090','state_id' => '950','name' => 'Ansager'),\n \t array('id' => '15091','state_id' => '950','name' => 'Billund'),\n \t array('id' => '15092','state_id' => '950','name' => 'Bramming'),\n \t array('id' => '15093','state_id' => '950','name' => 'Brorup'),\n \t array('id' => '15094','state_id' => '950','name' => 'Esbjerg'),\n \t array('id' => '15095','state_id' => '950','name' => 'Grindsted'),\n \t array('id' => '15096','state_id' => '950','name' => 'Holsted'),\n \t array('id' => '15097','state_id' => '950','name' => 'Nordby'),\n \t array('id' => '15098','state_id' => '950','name' => 'Oksbol'),\n \t array('id' => '15099','state_id' => '950','name' => 'Olgod'),\n \t array('id' => '15100','state_id' => '950','name' => 'Ribe'),\n \t array('id' => '15101','state_id' => '950','name' => 'Tjareborg'),\n \t array('id' => '15102','state_id' => '950','name' => 'Varde'),\n \t array('id' => '15103','state_id' => '950','name' => 'Vejen'),\n \t array('id' => '15104','state_id' => '950','name' => 'Vorbasse'),\n \t array('id' => '15105','state_id' => '951','name' => 'Aulum'),\n \t array('id' => '15106','state_id' => '951','name' => 'Bording'),\n \t array('id' => '15107','state_id' => '951','name' => 'Brande'),\n \t array('id' => '15108','state_id' => '951','name' => 'Gjellerup Kirkeby'),\n \t array('id' => '15109','state_id' => '951','name' => 'Hammerum'),\n \t array('id' => '15110','state_id' => '951','name' => 'Harboore'),\n \t array('id' => '15111','state_id' => '951','name' => 'Herning'),\n \t array('id' => '15112','state_id' => '951','name' => 'Holstebro'),\n \t array('id' => '15113','state_id' => '951','name' => 'Hvide Sande'),\n \t array('id' => '15114','state_id' => '951','name' => 'Ikast'),\n \t array('id' => '15115','state_id' => '951','name' => 'Kibak'),\n \t array('id' => '15116','state_id' => '951','name' => 'Lemvig'),\n \t array('id' => '15117','state_id' => '951','name' => 'Lind'),\n \t array('id' => '15118','state_id' => '951','name' => 'Ringkobing'),\n \t array('id' => '15119','state_id' => '951','name' => 'Skaerbaek'),\n \t array('id' => '15120','state_id' => '951','name' => 'Skjern'),\n \t array('id' => '15121','state_id' => '951','name' => 'Snejbjerg'),\n \t array('id' => '15122','state_id' => '951','name' => 'Struer'),\n \t array('id' => '15123','state_id' => '951','name' => 'Sunds'),\n \t array('id' => '15124','state_id' => '951','name' => 'Tarm'),\n \t array('id' => '15125','state_id' => '951','name' => 'Thyboron'),\n \t array('id' => '15126','state_id' => '951','name' => 'Ulfborg'),\n \t array('id' => '15127','state_id' => '951','name' => 'Videbak'),\n \t array('id' => '15128','state_id' => '951','name' => 'Vildbjerg'),\n \t array('id' => '15129','state_id' => '951','name' => 'Vinderup'),\n \t array('id' => '15130','state_id' => '952','name' => 'Roervig'),\n \t array('id' => '15131','state_id' => '953','name' => 'Bjaverskov'),\n \t array('id' => '15132','state_id' => '953','name' => 'Borup'),\n \t array('id' => '15133','state_id' => '953','name' => 'Ejby'),\n \t array('id' => '15134','state_id' => '953','name' => 'Greve Strand'),\n \t array('id' => '15135','state_id' => '953','name' => 'Gundsomagle'),\n \t array('id' => '15136','state_id' => '953','name' => 'Harlev'),\n \t array('id' => '15137','state_id' => '953','name' => 'Havdrup'),\n \t array('id' => '15138','state_id' => '953','name' => 'Hvalso'),\n \t array('id' => '15139','state_id' => '953','name' => 'Jyllinge'),\n \t array('id' => '15140','state_id' => '953','name' => 'Koge'),\n \t array('id' => '15141','state_id' => '953','name' => 'Lejre'),\n \t array('id' => '15142','state_id' => '953','name' => 'Osted'),\n \t array('id' => '15143','state_id' => '953','name' => 'Roskilde'),\n \t array('id' => '15144','state_id' => '953','name' => 'Solrod'),\n \t array('id' => '15145','state_id' => '953','name' => 'Stroby Egede'),\n \t array('id' => '15146','state_id' => '953','name' => 'Svogerslev'),\n \t array('id' => '15147','state_id' => '953','name' => 'Tune'),\n \t array('id' => '15148','state_id' => '953','name' => 'Viby'),\n \t array('id' => '15149','state_id' => '953','name' => 'Vindinge'),\n \t array('id' => '15150','state_id' => '954','name' => 'Glyngore'),\n \t array('id' => '15151','state_id' => '955','name' => 'Karise'),\n \t array('id' => '15152','state_id' => '955','name' => 'Naestved'),\n \t array('id' => '15153','state_id' => '956','name' => 'Soeborg'),\n \t array('id' => '15154','state_id' => '957','name' => 'Aabenraa'),\n \t array('id' => '15155','state_id' => '957','name' => 'Aarsleve'),\n \t array('id' => '15156','state_id' => '957','name' => 'Augustenborg'),\n \t array('id' => '15157','state_id' => '957','name' => 'Broager'),\n \t array('id' => '15158','state_id' => '957','name' => 'Christiansfeld'),\n \t array('id' => '15159','state_id' => '957','name' => 'Dybbol'),\n \t array('id' => '15160','state_id' => '957','name' => 'Gram'),\n \t array('id' => '15161','state_id' => '957','name' => 'Grasten'),\n \t array('id' => '15162','state_id' => '957','name' => 'Guderup'),\n \t array('id' => '15163','state_id' => '957','name' => 'Haderslev'),\n \t array('id' => '15164','state_id' => '957','name' => 'Horuphav'),\n \t array('id' => '15165','state_id' => '957','name' => 'Krusa'),\n \t array('id' => '15166','state_id' => '957','name' => 'Logumkloster'),\n \t array('id' => '15167','state_id' => '957','name' => 'Lojt Kirkeby'),\n \t array('id' => '15168','state_id' => '957','name' => 'Nordborg'),\n \t array('id' => '15169','state_id' => '957','name' => 'Padborg'),\n \t array('id' => '15170','state_id' => '957','name' => 'Rodding'),\n \t array('id' => '15171','state_id' => '957','name' => 'Rodekro'),\n \t array('id' => '15172','state_id' => '957','name' => 'Skarbak'),\n \t array('id' => '15173','state_id' => '957','name' => 'Sonderborg'),\n \t array('id' => '15174','state_id' => '957','name' => 'Starup'),\n \t array('id' => '15175','state_id' => '957','name' => 'Tinglev'),\n \t array('id' => '15176','state_id' => '957','name' => 'Toftlund'),\n \t array('id' => '15177','state_id' => '957','name' => 'Tonder'),\n \t array('id' => '15178','state_id' => '957','name' => 'Vojens'),\n \t array('id' => '15179','state_id' => '958','name' => 'Fakse'),\n \t array('id' => '15180','state_id' => '958','name' => 'Fakse Ladeplads'),\n \t array('id' => '15181','state_id' => '958','name' => 'Fensmark'),\n \t array('id' => '15182','state_id' => '958','name' => 'Holeby'),\n \t array('id' => '15183','state_id' => '958','name' => 'Maribo'),\n \t array('id' => '15184','state_id' => '958','name' => 'Nakskov'),\n \t array('id' => '15185','state_id' => '958','name' => 'Nastved'),\n \t array('id' => '15186','state_id' => '958','name' => 'Neder Vindinge'),\n \t array('id' => '15187','state_id' => '958','name' => 'Norre Alslev'),\n \t array('id' => '15188','state_id' => '958','name' => 'Nykobing'),\n \t array('id' => '15189','state_id' => '958','name' => 'Nyrad'),\n \t array('id' => '15190','state_id' => '958','name' => 'Orslev'),\n \t array('id' => '15191','state_id' => '958','name' => 'Prasto'),\n \t array('id' => '15192','state_id' => '958','name' => 'Rodby'),\n \t array('id' => '15193','state_id' => '958','name' => 'Rodbyhavn'),\n \t array('id' => '15194','state_id' => '958','name' => 'Ronnede'),\n \t array('id' => '15195','state_id' => '958','name' => 'Sakskobing'),\n \t array('id' => '15196','state_id' => '958','name' => 'Stege'),\n \t array('id' => '15197','state_id' => '958','name' => 'Store Heddinge'),\n \t array('id' => '15198','state_id' => '958','name' => 'Stubbekobing'),\n \t array('id' => '15199','state_id' => '958','name' => 'Sundby'),\n \t array('id' => '15200','state_id' => '958','name' => 'Vordingborg'),\n \t array('id' => '15201','state_id' => '959','name' => 'Bylderup-Bov'),\n \t array('id' => '15202','state_id' => '959','name' => 'Fovling'),\n \t array('id' => '15203','state_id' => '960','name' => 'Toelloese'),\n \t array('id' => '15204','state_id' => '961','name' => 'Borkop'),\n \t array('id' => '15205','state_id' => '961','name' => 'Bradstrup'),\n \t array('id' => '15206','state_id' => '961','name' => 'Brejning'),\n \t array('id' => '15207','state_id' => '961','name' => 'Egtved'),\n \t array('id' => '15208','state_id' => '961','name' => 'Fredericia'),\n \t array('id' => '15209','state_id' => '961','name' => 'Give'),\n \t array('id' => '15210','state_id' => '961','name' => 'Hedensted'),\n \t array('id' => '15211','state_id' => '961','name' => 'Horsens'),\n \t array('id' => '15212','state_id' => '961','name' => 'Jelling'),\n \t array('id' => '15213','state_id' => '961','name' => 'Juelsminde'),\n \t array('id' => '15214','state_id' => '961','name' => 'Kolding'),\n \t array('id' => '15215','state_id' => '961','name' => 'Lunderskov'),\n \t array('id' => '15216','state_id' => '961','name' => 'Snoghoj'),\n \t array('id' => '15217','state_id' => '961','name' => 'Sonder Bjert'),\n \t array('id' => '15218','state_id' => '961','name' => 'Taulov'),\n \t array('id' => '15219','state_id' => '961','name' => 'Torring'),\n \t array('id' => '15220','state_id' => '961','name' => 'Vamdrup'),\n \t array('id' => '15221','state_id' => '961','name' => 'Vejle'),\n \t array('id' => '15222','state_id' => '962','name' => 'Asnas'),\n \t array('id' => '15223','state_id' => '962','name' => 'Dianalund'),\n \t array('id' => '15224','state_id' => '962','name' => 'Forlev'),\n \t array('id' => '15225','state_id' => '962','name' => 'Frederiksberg'),\n \t array('id' => '15226','state_id' => '962','name' => 'Fuglebjerg'),\n \t array('id' => '15227','state_id' => '962','name' => 'Gorlev'),\n \t array('id' => '15228','state_id' => '962','name' => 'Haslev'),\n \t array('id' => '15229','state_id' => '962','name' => 'Holbaek'),\n \t array('id' => '15230','state_id' => '962','name' => 'Hong'),\n \t array('id' => '15231','state_id' => '962','name' => 'Horve'),\n \t array('id' => '15232','state_id' => '962','name' => 'Jyderup'),\n \t array('id' => '15233','state_id' => '962','name' => 'Kalundborg'),\n \t array('id' => '15234','state_id' => '962','name' => 'Korsor'),\n \t array('id' => '15235','state_id' => '962','name' => 'Nykobing'),\n \t array('id' => '15236','state_id' => '962','name' => 'Ringsted'),\n \t array('id' => '15237','state_id' => '962','name' => 'Skalskor'),\n \t array('id' => '15238','state_id' => '962','name' => 'Slagelse'),\n \t array('id' => '15239','state_id' => '962','name' => 'Soro'),\n \t array('id' => '15240','state_id' => '962','name' => 'Svebolle'),\n \t array('id' => '15241','state_id' => '962','name' => 'Svinninge'),\n \t array('id' => '15242','state_id' => '962','name' => 'Tollose'),\n \t array('id' => '15243','state_id' => '962','name' => 'Vipperod'),\n \t array('id' => '15244','state_id' => '963','name' => 'Aalestrup'),\n \t array('id' => '15245','state_id' => '963','name' => 'Bjerringbro'),\n \t array('id' => '15246','state_id' => '963','name' => 'Hanstholm'),\n \t array('id' => '15247','state_id' => '963','name' => 'Hojslev'),\n \t array('id' => '15248','state_id' => '963','name' => 'Hurup'),\n \t array('id' => '15249','state_id' => '963','name' => 'Karup'),\n \t array('id' => '15250','state_id' => '963','name' => 'Kjellerup'),\n \t array('id' => '15251','state_id' => '963','name' => 'Nykobing'),\n \t array('id' => '15252','state_id' => '963','name' => 'Skive'),\n \t array('id' => '15253','state_id' => '963','name' => 'Stoholm'),\n \t array('id' => '15254','state_id' => '963','name' => 'Thisted'),\n \t array('id' => '15255','state_id' => '963','name' => 'Ulstrup'),\n \t array('id' => '15256','state_id' => '963','name' => 'Viborg'),\n \t array('id' => '15257','state_id' => '965','name' => 'Dikhil'),\n \t array('id' => '15258','state_id' => '966','name' => 'Jibuti'),\n \t array('id' => '15259','state_id' => '967','name' => 'Tajurah'),\n \t array('id' => '15260','state_id' => '968','name' => 'Ubuk'),\n \t array('id' => '15261','state_id' => '979','name' => 'Azua'),\n \t array('id' => '15262','state_id' => '979','name' => 'Sabana Yegua'),\n \t array('id' => '15263','state_id' => '980','name' => 'Neyba'),\n \t array('id' => '15264','state_id' => '980','name' => 'Tamayo'),\n \t array('id' => '15265','state_id' => '981','name' => 'Barahona'),\n \t array('id' => '15266','state_id' => '981','name' => 'Cabral'),\n \t array('id' => '15267','state_id' => '981','name' => 'El Penon'),\n \t array('id' => '15268','state_id' => '982','name' => 'Dajabon'),\n \t array('id' => '15269','state_id' => '984','name' => 'Las Guaranas'),\n \t array('id' => '15270','state_id' => '984','name' => 'Pimentel'),\n \t array('id' => '15271','state_id' => '984','name' => 'San Francisco de Macoris'),\n \t array('id' => '15272','state_id' => '987','name' => 'Moca'),\n \t array('id' => '15273','state_id' => '989','name' => 'Duverge'),\n \t array('id' => '15274','state_id' => '989','name' => 'Jimani'),\n \t array('id' => '15275','state_id' => '997','name' => 'Pedernales'),\n \t array('id' => '15276','state_id' => '998','name' => 'Bani'),\n \t array('id' => '15277','state_id' => '998','name' => 'Ocoa'),\n \t array('id' => '15278','state_id' => '1000','name' => 'Salcedo'),\n \t array('id' => '15279','state_id' => '1001','name' => 'Samana'),\n \t array('id' => '15280','state_id' => '1001','name' => 'Sanchez'),\n \t array('id' => '15281','state_id' => '1006','name' => 'Santiago'),\n \t array('id' => '15282','state_id' => '1006','name' => 'Tamboril'),\n \t array('id' => '15283','state_id' => '1006','name' => 'Villa Bisono'),\n \t array('id' => '15284','state_id' => '1007','name' => 'Santiago'),\n \t array('id' => '15285','state_id' => '1007','name' => 'Tamboril'),\n \t array('id' => '15286','state_id' => '1007','name' => 'Villa Bisono'),\n \t array('id' => '15287','state_id' => '1008','name' => 'Esperanza'),\n \t array('id' => '15288','state_id' => '1008','name' => 'Mao'),\n \t array('id' => '15289','state_id' => '1009','name' => 'Aileu'),\n \t array('id' => '15290','state_id' => '1010','name' => 'Ainaro'),\n \t array('id' => '15291','state_id' => '1011','name' => 'Pante Macassar'),\n \t array('id' => '15292','state_id' => '1012','name' => 'Baucau'),\n \t array('id' => '15293','state_id' => '1013','name' => 'Auba'),\n \t array('id' => '15294','state_id' => '1013','name' => 'Lolotoi'),\n \t array('id' => '15295','state_id' => '1013','name' => 'Maliana'),\n \t array('id' => '15296','state_id' => '1015','name' => 'Dare'),\n \t array('id' => '15297','state_id' => '1015','name' => 'Dili'),\n \t array('id' => '15298','state_id' => '1015','name' => 'Metinaro'),\n \t array('id' => '15299','state_id' => '1016','name' => 'Ermera'),\n \t array('id' => '15300','state_id' => '1017','name' => 'Lautem'),\n \t array('id' => '15301','state_id' => '1017','name' => 'Los Palos'),\n \t array('id' => '15302','state_id' => '1018','name' => 'Bazartete'),\n \t array('id' => '15303','state_id' => '1018','name' => 'Liquica'),\n \t array('id' => '15304','state_id' => '1019','name' => 'Manatuto'),\n \t array('id' => '15305','state_id' => '1020','name' => 'Same'),\n \t array('id' => '15306','state_id' => '1021','name' => 'Viqueque'),\n \t array('id' => '15307','state_id' => '1022','name' => 'Cuenca'),\n \t array('id' => '15308','state_id' => '1022','name' => 'Gualaceo'),\n \t array('id' => '15309','state_id' => '1023','name' => 'Guaranda'),\n \t array('id' => '15310','state_id' => '1023','name' => 'San Miguel'),\n \t array('id' => '15311','state_id' => '1024','name' => 'Azogues'),\n \t array('id' => '15312','state_id' => '1024','name' => 'Canar'),\n \t array('id' => '15313','state_id' => '1024','name' => 'La Troncal'),\n \t array('id' => '15314','state_id' => '1025','name' => 'El Angel'),\n \t array('id' => '15315','state_id' => '1025','name' => 'San Gabriel'),\n \t array('id' => '15316','state_id' => '1025','name' => 'Tulcan'),\n \t array('id' => '15317','state_id' => '1026','name' => 'Alausi'),\n \t array('id' => '15318','state_id' => '1026','name' => 'Guano'),\n \t array('id' => '15319','state_id' => '1026','name' => 'Riobamba'),\n \t array('id' => '15320','state_id' => '1027','name' => 'La Mana'),\n \t array('id' => '15321','state_id' => '1027','name' => 'Latacunga'),\n \t array('id' => '15322','state_id' => '1027','name' => 'Pujili'),\n \t array('id' => '15323','state_id' => '1027','name' => 'San Miguel'),\n \t array('id' => '15324','state_id' => '1027','name' => 'Saquisili'),\n \t array('id' => '15325','state_id' => '1029','name' => 'Esmeraldas'),\n \t array('id' => '15326','state_id' => '1029','name' => 'Muisne'),\n \t array('id' => '15327','state_id' => '1029','name' => 'Rosa Zarate'),\n \t array('id' => '15328','state_id' => '1029','name' => 'San Lorenzo'),\n \t array('id' => '15329','state_id' => '1029','name' => 'Valdez'),\n \t array('id' => '15330','state_id' => '1030','name' => 'Puerto Ayora'),\n \t array('id' => '15331','state_id' => '1030','name' => 'Puerto Baquerizo Moreno'),\n \t array('id' => '15332','state_id' => '1030','name' => 'San Cristobal'),\n \t array('id' => '15333','state_id' => '1031','name' => 'Alfredo Baquerizo Moreno'),\n \t array('id' => '15334','state_id' => '1031','name' => 'Balao'),\n \t array('id' => '15335','state_id' => '1031','name' => 'Balzar'),\n \t array('id' => '15336','state_id' => '1031','name' => 'Colimes'),\n \t array('id' => '15337','state_id' => '1031','name' => 'Coronel Mariduena'),\n \t array('id' => '15338','state_id' => '1031','name' => 'Daule'),\n \t array('id' => '15339','state_id' => '1031','name' => 'El Salitre'),\n \t array('id' => '15340','state_id' => '1031','name' => 'El Triunfo'),\n \t array('id' => '15341','state_id' => '1031','name' => 'Eloy Alfaro'),\n \t array('id' => '15342','state_id' => '1031','name' => 'Guayaquil'),\n \t array('id' => '15343','state_id' => '1031','name' => 'La Libertad'),\n \t array('id' => '15344','state_id' => '1031','name' => 'Lomas de Sargentillo'),\n \t array('id' => '15345','state_id' => '1031','name' => 'Mapasingue'),\n \t array('id' => '15346','state_id' => '1031','name' => 'Milagro'),\n \t array('id' => '15347','state_id' => '1031','name' => 'Naranjal'),\n \t array('id' => '15348','state_id' => '1031','name' => 'Naranjito'),\n \t array('id' => '15349','state_id' => '1031','name' => 'Palestina'),\n \t array('id' => '15350','state_id' => '1031','name' => 'Pedro Carbo'),\n \t array('id' => '15351','state_id' => '1031','name' => 'Playas'),\n \t array('id' => '15352','state_id' => '1031','name' => 'Salinas'),\n \t array('id' => '15353','state_id' => '1031','name' => 'Samborondon'),\n \t array('id' => '15354','state_id' => '1031','name' => 'Santa Elena'),\n \t array('id' => '15355','state_id' => '1031','name' => 'Santa Lucia'),\n \t array('id' => '15356','state_id' => '1031','name' => 'Velasco Ibarra'),\n \t array('id' => '15357','state_id' => '1031','name' => 'Yaguachi'),\n \t array('id' => '15358','state_id' => '1032','name' => 'Atuntaqui'),\n \t array('id' => '15359','state_id' => '1032','name' => 'Cotacachi'),\n \t array('id' => '15360','state_id' => '1032','name' => 'Ibarra'),\n \t array('id' => '15361','state_id' => '1032','name' => 'Otavalo'),\n \t array('id' => '15362','state_id' => '1032','name' => 'Pimampiro'),\n \t array('id' => '15363','state_id' => '1033','name' => 'Alamor'),\n \t array('id' => '15364','state_id' => '1033','name' => 'Cariamanga'),\n \t array('id' => '15365','state_id' => '1033','name' => 'Catacocha'),\n \t array('id' => '15366','state_id' => '1033','name' => 'Catamayo'),\n \t array('id' => '15367','state_id' => '1033','name' => 'Celica'),\n \t array('id' => '15368','state_id' => '1033','name' => 'Loja'),\n \t array('id' => '15369','state_id' => '1033','name' => 'Macara'),\n \t array('id' => '15370','state_id' => '1035','name' => 'Bahia de Caraquez'),\n \t array('id' => '15371','state_id' => '1035','name' => 'Calceta'),\n \t array('id' => '15372','state_id' => '1035','name' => 'Chone'),\n \t array('id' => '15373','state_id' => '1035','name' => 'El Carmen'),\n \t array('id' => '15374','state_id' => '1035','name' => 'Jipijapa'),\n \t array('id' => '15375','state_id' => '1035','name' => 'Junin'),\n \t array('id' => '15376','state_id' => '1035','name' => 'Manta'),\n \t array('id' => '15377','state_id' => '1035','name' => 'Montecristi'),\n \t array('id' => '15378','state_id' => '1035','name' => 'Pajan'),\n \t array('id' => '15379','state_id' => '1035','name' => 'Pedernales'),\n \t array('id' => '15380','state_id' => '1035','name' => 'Portoviejo'),\n \t array('id' => '15381','state_id' => '1035','name' => 'Rocafuerte'),\n \t array('id' => '15382','state_id' => '1035','name' => 'Santa Ana'),\n \t array('id' => '15383','state_id' => '1035','name' => 'Sucre'),\n \t array('id' => '15384','state_id' => '1035','name' => 'Tosagua'),\n \t array('id' => '15385','state_id' => '1037','name' => 'Archidona'),\n \t array('id' => '15386','state_id' => '1037','name' => 'Tena'),\n \t array('id' => '15387','state_id' => '1038','name' => 'Orellana'),\n \t array('id' => '15388','state_id' => '1039','name' => 'Puyo'),\n \t array('id' => '15389','state_id' => '1040','name' => 'Cayambe'),\n \t array('id' => '15390','state_id' => '1040','name' => 'Machachi'),\n \t array('id' => '15391','state_id' => '1040','name' => 'Quito'),\n \t array('id' => '15392','state_id' => '1040','name' => 'Sangolqui'),\n \t array('id' => '15393','state_id' => '1040','name' => 'Santo Domingo'),\n \t array('id' => '15394','state_id' => '1041','name' => 'Nueva Loja'),\n \t array('id' => '15395','state_id' => '1041','name' => 'Shushufindi'),\n \t array('id' => '15396','state_id' => '1042','name' => 'Ambato'),\n \t array('id' => '15397','state_id' => '1042','name' => 'Banos'),\n \t array('id' => '15398','state_id' => '1042','name' => 'Pelileo'),\n \t array('id' => '15399','state_id' => '1042','name' => 'Pillaro'),\n \t array('id' => '15400','state_id' => '1044','name' => 'Aswan'),\n \t array('id' => '15401','state_id' => '1044','name' => 'Daraw'),\n \t array('id' => '15402','state_id' => '1044','name' => 'Kawm Umbu'),\n \t array('id' => '15403','state_id' => '1044','name' => 'an-Nasir'),\n \t array('id' => '15404','state_id' => '1045','name' => 'Abnub'),\n \t array('id' => '15405','state_id' => '1045','name' => 'Abu Tij'),\n \t array('id' => '15406','state_id' => '1045','name' => 'Asyut'),\n \t array('id' => '15407','state_id' => '1045','name' => 'Bani Muhammadiyat'),\n \t array('id' => '15408','state_id' => '1045','name' => 'Dayrut'),\n \t array('id' => '15409','state_id' => '1045','name' => 'Dayrut-ash-Sharif'),\n \t array('id' => '15410','state_id' => '1045','name' => 'Manfalut'),\n \t array('id' => '15411','state_id' => '1045','name' => 'Musha'),\n \t array('id' => '15412','state_id' => '1045','name' => 'Sahil Salim'),\n \t array('id' => '15413','state_id' => '1045','name' => 'Sanabu'),\n \t array('id' => '15414','state_id' => '1045','name' => 'Umm-al-Qusur'),\n \t array('id' => '15415','state_id' => '1045','name' => 'al-Badari'),\n \t array('id' => '15416','state_id' => '1045','name' => 'al-Qusiyah'),\n \t array('id' => '15417','state_id' => '1045','name' => 'an-Nukhaylah'),\n \t array('id' => '15418','state_id' => '1048','name' => '6th of October City'),\n \t array('id' => '15419','state_id' => '1048','name' => 'Ataba'),\n \t array('id' => '15420','state_id' => '1048','name' => 'Cairo'),\n \t array('id' => '15421','state_id' => '1048','name' => 'Nasr'),\n \t array('id' => '15422','state_id' => '1048','name' => 'Nasr City'),\n \t array('id' => '15423','state_id' => '1048','name' => 'Obour City'),\n \t array('id' => '15424','state_id' => '1049','name' => '\\'Izbat-al-Burj'),\n \t array('id' => '15425','state_id' => '1049','name' => 'Damietta'),\n \t array('id' => '15426','state_id' => '1049','name' => 'Dumyat'),\n \t array('id' => '15427','state_id' => '1049','name' => 'El-Zarka'),\n \t array('id' => '15428','state_id' => '1049','name' => 'Faraskur'),\n \t array('id' => '15429','state_id' => '1049','name' => 'Kafr Sa\\'d'),\n \t array('id' => '15430','state_id' => '1049','name' => 'Kafr-al-Battikh'),\n \t array('id' => '15431','state_id' => '1049','name' => 'az-Zarqa'),\n \t array('id' => '15432','state_id' => '1050','name' => 'Biyala'),\n \t array('id' => '15433','state_id' => '1050','name' => 'Disuq'),\n \t array('id' => '15434','state_id' => '1050','name' => 'Fuwah'),\n \t array('id' => '15435','state_id' => '1050','name' => 'Kafr-al-Jara\\'idah'),\n \t array('id' => '15436','state_id' => '1050','name' => 'Kafr-ash-Shaykh'),\n \t array('id' => '15437','state_id' => '1050','name' => 'Mutubis'),\n \t array('id' => '15438','state_id' => '1050','name' => 'Qallin'),\n \t array('id' => '15439','state_id' => '1050','name' => 'Sidi Salim'),\n \t array('id' => '15440','state_id' => '1050','name' => 'al-Burj'),\n \t array('id' => '15441','state_id' => '1050','name' => 'al-Burullus'),\n \t array('id' => '15442','state_id' => '1050','name' => 'al-Haddadi'),\n \t array('id' => '15443','state_id' => '1050','name' => 'al-Hamul'),\n \t array('id' => '15444','state_id' => '1051','name' => 'Marsa Matruh'),\n \t array('id' => '15445','state_id' => '1051','name' => 'Nasr'),\n \t array('id' => '15446','state_id' => '1051','name' => 'Sidi Barrani'),\n \t array('id' => '15447','state_id' => '1051','name' => 'Zawiyat Shammas'),\n \t array('id' => '15448','state_id' => '1051','name' => 'ad-Da\\'ba'),\n \t array('id' => '15449','state_id' => '1057','name' => 'Armant'),\n \t array('id' => '15450','state_id' => '1057','name' => 'Asfun-al-Mata\\'inah'),\n \t array('id' => '15451','state_id' => '1057','name' => 'Dandarah'),\n \t array('id' => '15452','state_id' => '1057','name' => 'Dishna'),\n \t array('id' => '15453','state_id' => '1057','name' => 'Farshut'),\n \t array('id' => '15454','state_id' => '1057','name' => 'Hijazah'),\n \t array('id' => '15455','state_id' => '1057','name' => 'Hiw'),\n \t array('id' => '15456','state_id' => '1057','name' => 'Idfu'),\n \t array('id' => '15457','state_id' => '1057','name' => 'Isna'),\n \t array('id' => '15458','state_id' => '1057','name' => 'Kiman-al-Mata\\'inah'),\n \t array('id' => '15459','state_id' => '1057','name' => 'Naj\\' Hammadi'),\n \t array('id' => '15460','state_id' => '1057','name' => 'Naqadah'),\n \t array('id' => '15461','state_id' => '1057','name' => 'Qift'),\n \t array('id' => '15462','state_id' => '1057','name' => 'Qina'),\n \t array('id' => '15463','state_id' => '1057','name' => 'Qus'),\n \t array('id' => '15464','state_id' => '1057','name' => 'ad-Dabbiyah'),\n \t array('id' => '15465','state_id' => '1057','name' => 'ad-Dayr'),\n \t array('id' => '15466','state_id' => '1057','name' => 'al-Ballas'),\n \t array('id' => '15467','state_id' => '1057','name' => 'al-Karnak'),\n \t array('id' => '15468','state_id' => '1057','name' => 'al-Waqf'),\n \t array('id' => '15469','state_id' => '1057','name' => 'ar-Radisiyat-al-Bahriyah'),\n \t array('id' => '15470','state_id' => '1058','name' => 'Akhmim'),\n \t array('id' => '15471','state_id' => '1058','name' => 'Awlad Tawq Sharq'),\n \t array('id' => '15472','state_id' => '1058','name' => 'Dar-as-Salam'),\n \t array('id' => '15473','state_id' => '1058','name' => 'Jirja'),\n \t array('id' => '15474','state_id' => '1058','name' => 'Juhaynah'),\n \t array('id' => '15475','state_id' => '1058','name' => 'Sawhaj'),\n \t array('id' => '15476','state_id' => '1058','name' => 'Tahta'),\n \t array('id' => '15477','state_id' => '1058','name' => 'Tima'),\n \t array('id' => '15478','state_id' => '1058','name' => 'al-Balyana'),\n \t array('id' => '15479','state_id' => '1058','name' => 'al-Manshah'),\n \t array('id' => '15480','state_id' => '1058','name' => 'al-Maragah'),\n \t array('id' => '15481','state_id' => '1061','name' => 'Aja'),\n \t array('id' => '15482','state_id' => '1061','name' => 'Bahut'),\n \t array('id' => '15483','state_id' => '1061','name' => 'Bilqas'),\n \t array('id' => '15484','state_id' => '1061','name' => 'Dikirnis'),\n \t array('id' => '15485','state_id' => '1061','name' => 'Minyat-an-Nasr'),\n \t array('id' => '15486','state_id' => '1061','name' => 'Mit Gamr'),\n \t array('id' => '15487','state_id' => '1061','name' => 'Shirbin'),\n \t array('id' => '15488','state_id' => '1061','name' => 'Talkha'),\n \t array('id' => '15489','state_id' => '1061','name' => 'al-Jamaliyah'),\n \t array('id' => '15490','state_id' => '1061','name' => 'al-Ma\\'sarah'),\n \t array('id' => '15491','state_id' => '1061','name' => 'al-Mansurah'),\n \t array('id' => '15492','state_id' => '1061','name' => 'al-Manzilah'),\n \t array('id' => '15493','state_id' => '1061','name' => 'al-Matariyah'),\n \t array('id' => '15494','state_id' => '1061','name' => 'as-Sinbillawayn'),\n \t array('id' => '15495','state_id' => '1062','name' => 'Ras Gharib'),\n \t array('id' => '15496','state_id' => '1062','name' => 'Safaja'),\n \t array('id' => '15497','state_id' => '1062','name' => 'al-Ghardaqah'),\n \t array('id' => '15498','state_id' => '1062','name' => 'al-Qusayr'),\n \t array('id' => '15499','state_id' => '1063','name' => 'Abu Hummus'),\n \t array('id' => '15500','state_id' => '1063','name' => 'Abu al-Matamir'),\n \t array('id' => '15501','state_id' => '1063','name' => 'Buturis'),\n \t array('id' => '15502','state_id' => '1063','name' => 'Damanhur'),\n \t array('id' => '15503','state_id' => '1063','name' => 'Edfina'),\n \t array('id' => '15504','state_id' => '1063','name' => 'Hawsh \\'Isa'),\n \t array('id' => '15505','state_id' => '1063','name' => 'Idku'),\n \t array('id' => '15506','state_id' => '1063','name' => 'Ityay-al-Barud'),\n \t array('id' => '15507','state_id' => '1063','name' => 'Kafr Salim'),\n \t array('id' => '15508','state_id' => '1063','name' => 'Kafr-ad-Dawwar'),\n \t array('id' => '15509','state_id' => '1063','name' => 'Kawm Hamada'),\n \t array('id' => '15510','state_id' => '1063','name' => 'Nubaria'),\n \t array('id' => '15511','state_id' => '1063','name' => 'Rashid'),\n \t array('id' => '15512','state_id' => '1063','name' => 'Shubra Khit'),\n \t array('id' => '15513','state_id' => '1063','name' => 'Zawiyat Sidi Gazi'),\n \t array('id' => '15514','state_id' => '1063','name' => 'ad-Dilinjat'),\n \t array('id' => '15515','state_id' => '1063','name' => 'al-Kawm-al-Akhdar'),\n \t array('id' => '15516','state_id' => '1063','name' => 'al-Mahmudiyah'),\n \t array('id' => '15517','state_id' => '1063','name' => 'ar-Rahmaniyah'),\n \t array('id' => '15518','state_id' => '1064','name' => 'Fidimin'),\n \t array('id' => '15519','state_id' => '1064','name' => 'Ibshaway'),\n \t array('id' => '15520','state_id' => '1064','name' => 'Itsa'),\n \t array('id' => '15521','state_id' => '1064','name' => 'Qasr Qarun'),\n \t array('id' => '15522','state_id' => '1064','name' => 'Sanhur'),\n \t array('id' => '15523','state_id' => '1064','name' => 'Sinnuris'),\n \t array('id' => '15524','state_id' => '1064','name' => 'Tamiyah'),\n \t array('id' => '15525','state_id' => '1064','name' => 'al-Fayyum'),\n \t array('id' => '15526','state_id' => '1065','name' => 'Abyar'),\n \t array('id' => '15527','state_id' => '1065','name' => 'Basyun'),\n \t array('id' => '15528','state_id' => '1065','name' => 'Kafr-az-Zayyat'),\n \t array('id' => '15529','state_id' => '1065','name' => 'Mahallat Marhum'),\n \t array('id' => '15530','state_id' => '1065','name' => 'Nisf Thani Bashbish'),\n \t array('id' => '15531','state_id' => '1065','name' => 'Qutur'),\n \t array('id' => '15532','state_id' => '1065','name' => 'Samannud'),\n \t array('id' => '15533','state_id' => '1065','name' => 'Tanta'),\n \t array('id' => '15534','state_id' => '1065','name' => 'Zifta'),\n \t array('id' => '15535','state_id' => '1065','name' => 'ad-Daljamun'),\n \t array('id' => '15536','state_id' => '1065','name' => 'al-Mahallah al-Kubra'),\n \t array('id' => '15537','state_id' => '1065','name' => 'as-Santah'),\n \t array('id' => '15538','state_id' => '1066','name' => 'Agamy'),\n \t array('id' => '15539','state_id' => '1066','name' => 'al-Iskandariyah'),\n \t array('id' => '15540','state_id' => '1066','name' => 'al-Maks'),\n \t array('id' => '15541','state_id' => '1067','name' => 'Fa\\'id'),\n \t array('id' => '15542','state_id' => '1067','name' => 'Sarabiyum'),\n \t array('id' => '15543','state_id' => '1067','name' => 'al-Ismailiyah'),\n \t array('id' => '15544','state_id' => '1068','name' => 'Atfih'),\n \t array('id' => '15545','state_id' => '1068','name' => 'Awsim'),\n \t array('id' => '15546','state_id' => '1068','name' => 'Giza'),\n \t array('id' => '15547','state_id' => '1068','name' => 'Madinat Sittah Uktubar'),\n \t array('id' => '15548','state_id' => '1068','name' => 'Nahya'),\n \t array('id' => '15549','state_id' => '1068','name' => 'Saqqarah'),\n \t array('id' => '15550','state_id' => '1068','name' => 'al-\\'Ayyat'),\n \t array('id' => '15551','state_id' => '1068','name' => 'al-Badrashayn'),\n \t array('id' => '15552','state_id' => '1068','name' => 'al-Hawamidiyah'),\n \t array('id' => '15553','state_id' => '1068','name' => 'al-Jizah'),\n \t array('id' => '15554','state_id' => '1068','name' => 'al-Mansuriyah'),\n \t array('id' => '15555','state_id' => '1068','name' => 'al-Wahat-al-Bahriyah'),\n \t array('id' => '15556','state_id' => '1068','name' => 'as-Saff'),\n \t array('id' => '15557','state_id' => '1069','name' => 'Ashmun'),\n \t array('id' => '15558','state_id' => '1069','name' => 'Birkat-as-Sab\\''),\n \t array('id' => '15559','state_id' => '1069','name' => 'Milij'),\n \t array('id' => '15560','state_id' => '1069','name' => 'Minuf'),\n \t array('id' => '15561','state_id' => '1069','name' => 'Quwaysina'),\n \t array('id' => '15562','state_id' => '1069','name' => 'Shibin-al-Kawm'),\n \t array('id' => '15563','state_id' => '1069','name' => 'Sirs-al-Layyanah'),\n \t array('id' => '15564','state_id' => '1069','name' => 'Tala'),\n \t array('id' => '15565','state_id' => '1069','name' => 'al-Bajur'),\n \t array('id' => '15566','state_id' => '1069','name' => 'al-Batanun'),\n \t array('id' => '15567','state_id' => '1069','name' => 'ash-Shuhada'),\n \t array('id' => '15568','state_id' => '1070','name' => 'Abu Qurqas'),\n \t array('id' => '15569','state_id' => '1070','name' => 'Bani Mazar'),\n \t array('id' => '15570','state_id' => '1070','name' => 'Dayr Mawas'),\n \t array('id' => '15571','state_id' => '1070','name' => 'Magagah'),\n \t array('id' => '15572','state_id' => '1070','name' => 'Mallawi'),\n \t array('id' => '15573','state_id' => '1070','name' => 'Matay'),\n \t array('id' => '15574','state_id' => '1070','name' => 'Samalut'),\n \t array('id' => '15575','state_id' => '1070','name' => 'Tallah'),\n \t array('id' => '15576','state_id' => '1070','name' => 'Tandah'),\n \t array('id' => '15577','state_id' => '1070','name' => 'al-Anayim'),\n \t array('id' => '15578','state_id' => '1070','name' => 'al-Fikriyah'),\n \t array('id' => '15579','state_id' => '1070','name' => 'al-Minya'),\n \t array('id' => '15580','state_id' => '1070','name' => 'ar-Rawdah'),\n \t array('id' => '15581','state_id' => '1071','name' => 'Badr City'),\n \t array('id' => '15582','state_id' => '1071','name' => 'Heliopolis'),\n \t array('id' => '15583','state_id' => '1071','name' => 'al-Qahira'),\n \t array('id' => '15584','state_id' => '1072','name' => 'Abu Za\\'bal'),\n \t array('id' => '15585','state_id' => '1072','name' => 'Banha'),\n \t array('id' => '15586','state_id' => '1072','name' => 'Qalyub'),\n \t array('id' => '15587','state_id' => '1072','name' => 'Shubra al-Khaymah'),\n \t array('id' => '15588','state_id' => '1072','name' => 'Sibin-al-Qanatir'),\n \t array('id' => '15589','state_id' => '1072','name' => 'Tukh'),\n \t array('id' => '15590','state_id' => '1072','name' => 'al-Khankah'),\n \t array('id' => '15591','state_id' => '1072','name' => 'al-Qanatir-al-Khayriyah'),\n \t array('id' => '15592','state_id' => '1073','name' => 'al-Uqsur'),\n \t array('id' => '15593','state_id' => '1075','name' => 'as-Suways'),\n \t array('id' => '15594','state_id' => '1076','name' => 'Abu Hammad'),\n \t array('id' => '15595','state_id' => '1076','name' => 'Abu Kabir'),\n \t array('id' => '15596','state_id' => '1076','name' => 'Bilbays'),\n \t array('id' => '15597','state_id' => '1076','name' => 'Diyarb Najm'),\n \t array('id' => '15598','state_id' => '1076','name' => 'Faqus'),\n \t array('id' => '15599','state_id' => '1076','name' => 'Hihya'),\n \t array('id' => '15600','state_id' => '1076','name' => 'Kafr Saqr'),\n \t array('id' => '15601','state_id' => '1076','name' => 'Mashtul-as-Suq'),\n \t array('id' => '15602','state_id' => '1076','name' => 'Minyat-al-Qamh'),\n \t array('id' => '15603','state_id' => '1076','name' => 'al-Ashir mir-Ramadan'),\n \t array('id' => '15604','state_id' => '1076','name' => 'al-Husayniyah'),\n \t array('id' => '15605','state_id' => '1076','name' => 'al-Ibrahimiyah'),\n \t array('id' => '15606','state_id' => '1076','name' => 'al-Qanayat'),\n \t array('id' => '15607','state_id' => '1076','name' => 'al-Qassasin'),\n \t array('id' => '15608','state_id' => '1076','name' => 'al-Qurayn'),\n \t array('id' => '15609','state_id' => '1076','name' => 'as-Salihiyah'),\n \t array('id' => '15610','state_id' => '1076','name' => 'at-Tall-al-Kabir'),\n \t array('id' => '15611','state_id' => '1076','name' => 'az-Zaqaziq'),\n \t array('id' => '15612','state_id' => '1077','name' => 'Ahuachapan'),\n \t array('id' => '15613','state_id' => '1077','name' => 'Atiquizaya'),\n \t array('id' => '15614','state_id' => '1077','name' => 'Concepcion de Ataco'),\n \t array('id' => '15615','state_id' => '1077','name' => 'Guaymango'),\n \t array('id' => '15616','state_id' => '1077','name' => 'Jujutla'),\n \t array('id' => '15617','state_id' => '1077','name' => 'San Francisco Menendez'),\n \t array('id' => '15618','state_id' => '1077','name' => 'Tacuba'),\n \t array('id' => '15619','state_id' => '1078','name' => 'Ilobasco'),\n \t array('id' => '15620','state_id' => '1078','name' => 'Sensuntepeque'),\n \t array('id' => '15621','state_id' => '1078','name' => 'Victoria'),\n \t array('id' => '15622','state_id' => '1079','name' => 'Chalatenango'),\n \t array('id' => '15623','state_id' => '1079','name' => 'La Palma'),\n \t array('id' => '15624','state_id' => '1079','name' => 'Nueva Concepcion'),\n \t array('id' => '15625','state_id' => '1079','name' => 'San Francisco Morazan'),\n \t array('id' => '15626','state_id' => '1080','name' => 'Cojutepeque'),\n \t array('id' => '15627','state_id' => '1080','name' => 'San Pedro Perulapan'),\n \t array('id' => '15628','state_id' => '1080','name' => 'Suchitoto'),\n \t array('id' => '15629','state_id' => '1080','name' => 'Tecoluca'),\n \t array('id' => '15630','state_id' => '1080','name' => 'Tenancingo'),\n \t array('id' => '15631','state_id' => '1084','name' => 'Cacaopera'),\n \t array('id' => '15632','state_id' => '1084','name' => 'Corinto'),\n \t array('id' => '15633','state_id' => '1084','name' => 'Gotera'),\n \t array('id' => '15634','state_id' => '1084','name' => 'Guatajiagua'),\n \t array('id' => '15635','state_id' => '1084','name' => 'Jocoro'),\n \t array('id' => '15636','state_id' => '1084','name' => 'Sociedad'),\n \t array('id' => '15637','state_id' => '1089','name' => 'Acajutla'),\n \t array('id' => '15638','state_id' => '1089','name' => 'Armenia'),\n \t array('id' => '15639','state_id' => '1089','name' => 'Izalco'),\n \t array('id' => '15640','state_id' => '1089','name' => 'Juayua'),\n \t array('id' => '15641','state_id' => '1089','name' => 'Nahuizalco'),\n \t array('id' => '15642','state_id' => '1089','name' => 'San Antonio del Monte'),\n \t array('id' => '15643','state_id' => '1089','name' => 'San Julian'),\n \t array('id' => '15644','state_id' => '1089','name' => 'Sonsonate'),\n \t array('id' => '15645','state_id' => '1089','name' => 'Sonzacate'),\n \t array('id' => '15646','state_id' => '1090','name' => 'Berlin'),\n \t array('id' => '15647','state_id' => '1090','name' => 'Concepcion Batres'),\n \t array('id' => '15648','state_id' => '1090','name' => 'Estanzuelas'),\n \t array('id' => '15649','state_id' => '1090','name' => 'Jiquilisco'),\n \t array('id' => '15650','state_id' => '1090','name' => 'Jucuapa'),\n \t array('id' => '15651','state_id' => '1090','name' => 'Jucuaran'),\n \t array('id' => '15652','state_id' => '1090','name' => 'Ozatlan'),\n \t array('id' => '15653','state_id' => '1090','name' => 'Puerto El Triunfo'),\n \t array('id' => '15654','state_id' => '1090','name' => 'San Agustin'),\n \t array('id' => '15655','state_id' => '1090','name' => 'Santa Elena'),\n \t array('id' => '15656','state_id' => '1090','name' => 'Santiago de Maria'),\n \t array('id' => '15657','state_id' => '1090','name' => 'Usulutan'),\n \t array('id' => '15658','state_id' => '1091','name' => 'Pale'),\n \t array('id' => '15659','state_id' => '1095','name' => 'Ebebiyin'),\n \t array('id' => '15660','state_id' => '1095','name' => 'Mikomeseng'),\n \t array('id' => '15661','state_id' => '1096','name' => 'Bata'),\n \t array('id' => '15662','state_id' => '1096','name' => 'Mbini'),\n \t array('id' => '15663','state_id' => '1097','name' => 'Aconibe'),\n \t array('id' => '15664','state_id' => '1097','name' => 'Anisoc'),\n \t array('id' => '15665','state_id' => '1097','name' => 'Mongomo'),\n \t array('id' => '15666','state_id' => '1097','name' => 'Nsok'),\n \t array('id' => '15667','state_id' => '1098','name' => 'Keren'),\n \t array('id' => '15668','state_id' => '1099','name' => 'Addi Kwala'),\n \t array('id' => '15669','state_id' => '1099','name' => 'Addi Ugri'),\n \t array('id' => '15670','state_id' => '1100','name' => 'Asseb'),\n \t array('id' => '15671','state_id' => '1100','name' => 'Beylul'),\n \t array('id' => '15672','state_id' => '1100','name' => 'Edd'),\n \t array('id' => '15673','state_id' => '1100','name' => 'Mersa Fatma'),\n \t array('id' => '15674','state_id' => '1101','name' => 'Ak\\'ordat'),\n \t array('id' => '15675','state_id' => '1101','name' => 'Barentu'),\n \t array('id' => '15676','state_id' => '1101','name' => 'Teseney'),\n \t array('id' => '15677','state_id' => '1102','name' => 'Asmara'),\n \t array('id' => '15678','state_id' => '1102','name' => 'Ginda'),\n \t array('id' => '15679','state_id' => '1102','name' => 'Himbirti'),\n \t array('id' => '15680','state_id' => '1102','name' => 'Nefasit'),\n \t array('id' => '15681','state_id' => '1103','name' => 'Addi K\\'eyih'),\n \t array('id' => '15682','state_id' => '1103','name' => 'Dek\\'emhare'),\n \t array('id' => '15683','state_id' => '1103','name' => 'Mitsiwa'),\n \t array('id' => '15684','state_id' => '1103','name' => 'Sen\\'afe'),\n \t array('id' => '15685','state_id' => '1104','name' => 'Aasmae'),\n \t array('id' => '15686','state_id' => '1104','name' => 'Aaviku'),\n \t array('id' => '15687','state_id' => '1104','name' => 'Aegviidu'),\n \t array('id' => '15688','state_id' => '1104','name' => 'Aigrumae'),\n \t array('id' => '15689','state_id' => '1104','name' => 'Aila'),\n \t array('id' => '15690','state_id' => '1104','name' => 'Alavere'),\n \t array('id' => '15691','state_id' => '1104','name' => 'Alliku'),\n \t array('id' => '15692','state_id' => '1104','name' => 'Amari'),\n \t array('id' => '15693','state_id' => '1104','name' => 'Anija'),\n \t array('id' => '15694','state_id' => '1104','name' => 'Ardu'),\n \t array('id' => '15695','state_id' => '1104','name' => 'Arukula'),\n \t array('id' => '15696','state_id' => '1104','name' => 'Aruvalla'),\n \t array('id' => '15697','state_id' => '1104','name' => 'Assaku'),\n \t array('id' => '15698','state_id' => '1104','name' => 'Ellamaa'),\n \t array('id' => '15699','state_id' => '1104','name' => 'Haabneeme'),\n \t array('id' => '15700','state_id' => '1104','name' => 'Habaja'),\n \t array('id' => '15701','state_id' => '1104','name' => 'Haiba'),\n \t array('id' => '15702','state_id' => '1104','name' => 'Haljava'),\n \t array('id' => '15703','state_id' => '1104','name' => 'Hara'),\n \t array('id' => '15704','state_id' => '1104','name' => 'Harju-Risti'),\n \t array('id' => '15705','state_id' => '1104','name' => 'Harku'),\n \t array('id' => '15706','state_id' => '1104','name' => 'Harkujarve'),\n \t array('id' => '15707','state_id' => '1104','name' => 'Harma'),\n \t array('id' => '15708','state_id' => '1104','name' => 'Huuru'),\n \t array('id' => '15709','state_id' => '1104','name' => 'Ilmandu'),\n \t array('id' => '15710','state_id' => '1104','name' => 'Iru'),\n \t array('id' => '15711','state_id' => '1104','name' => 'Jagala'),\n \t array('id' => '15712','state_id' => '1104','name' => 'Jalgimae'),\n \t array('id' => '15713','state_id' => '1104','name' => 'Jarsi'),\n \t array('id' => '15714','state_id' => '1104','name' => 'Jarvekula'),\n \t array('id' => '15715','state_id' => '1104','name' => 'Jogisoo'),\n \t array('id' => '15716','state_id' => '1104','name' => 'Juri'),\n \t array('id' => '15717','state_id' => '1104','name' => 'Kaasiku'),\n \t array('id' => '15718','state_id' => '1104','name' => 'Kaberneeme'),\n \t array('id' => '15719','state_id' => '1104','name' => 'Kahala'),\n \t array('id' => '15720','state_id' => '1104','name' => 'Kalesi'),\n \t array('id' => '15721','state_id' => '1104','name' => 'Kallavere'),\n \t array('id' => '15722','state_id' => '1104','name' => 'Karjakula'),\n \t array('id' => '15723','state_id' => '1104','name' => 'Karla'),\n \t array('id' => '15724','state_id' => '1104','name' => 'Kasepere'),\n \t array('id' => '15725','state_id' => '1104','name' => 'Kasispea'),\n \t array('id' => '15726','state_id' => '1104','name' => 'Kehra'),\n \t array('id' => '15727','state_id' => '1104','name' => 'Keila'),\n \t array('id' => '15728','state_id' => '1104','name' => 'Keila-Joa'),\n \t array('id' => '15729','state_id' => '1104','name' => 'Kelvingi'),\n \t array('id' => '15730','state_id' => '1104','name' => 'Kiia'),\n \t array('id' => '15731','state_id' => '1104','name' => 'Kiili'),\n \t array('id' => '15732','state_id' => '1104','name' => 'Kiisa'),\n \t array('id' => '15733','state_id' => '1104','name' => 'Kiiu'),\n \t array('id' => '15734','state_id' => '1104','name' => 'Klooga'),\n \t array('id' => '15735','state_id' => '1104','name' => 'Kloogaranna'),\n \t array('id' => '15736','state_id' => '1104','name' => 'Kohatu'),\n \t array('id' => '15737','state_id' => '1104','name' => 'Kolga'),\n \t array('id' => '15738','state_id' => '1104','name' => 'Kolga-Aabla'),\n \t array('id' => '15739','state_id' => '1104','name' => 'Kolgakula'),\n \t array('id' => '15740','state_id' => '1104','name' => 'Konnu'),\n \t array('id' => '15741','state_id' => '1104','name' => 'Kose'),\n \t array('id' => '15742','state_id' => '1104','name' => 'Kose-Uuemoisa'),\n \t array('id' => '15743','state_id' => '1104','name' => 'Kostivere'),\n \t array('id' => '15744','state_id' => '1104','name' => 'Krei'),\n \t array('id' => '15745','state_id' => '1104','name' => 'Kuivajoe'),\n \t array('id' => '15746','state_id' => '1104','name' => 'Kumna'),\n \t array('id' => '15747','state_id' => '1104','name' => 'Kurtna'),\n \t array('id' => '15748','state_id' => '1104','name' => 'Kuusalu'),\n \t array('id' => '15749','state_id' => '1104','name' => 'Laabi'),\n \t array('id' => '15750','state_id' => '1104','name' => 'Laagri'),\n \t array('id' => '15751','state_id' => '1104','name' => 'Lagedi'),\n \t array('id' => '15752','state_id' => '1104','name' => 'Laitse'),\n \t array('id' => '15753','state_id' => '1104','name' => 'Laulasmaa'),\n \t array('id' => '15754','state_id' => '1104','name' => 'Lehetu'),\n \t array('id' => '15755','state_id' => '1104','name' => 'Lehola'),\n \t array('id' => '15756','state_id' => '1104','name' => 'Lehtmetsa'),\n \t array('id' => '15757','state_id' => '1104','name' => 'Leppneeme'),\n \t array('id' => '15758','state_id' => '1104','name' => 'Liikva'),\n \t array('id' => '15759','state_id' => '1104','name' => 'Lilli'),\n \t array('id' => '15760','state_id' => '1104','name' => 'Lohusalu'),\n \t array('id' => '15761','state_id' => '1104','name' => 'Loksa'),\n \t array('id' => '15762','state_id' => '1104','name' => 'Lokuti'),\n \t array('id' => '15763','state_id' => '1104','name' => 'Loo'),\n \t array('id' => '15764','state_id' => '1104','name' => 'Lubja'),\n \t array('id' => '15765','state_id' => '1104','name' => 'Luige'),\n \t array('id' => '15766','state_id' => '1104','name' => 'Maardu'),\n \t array('id' => '15767','state_id' => '1104','name' => 'Maidla'),\n \t array('id' => '15768','state_id' => '1104','name' => 'Manniku'),\n \t array('id' => '15769','state_id' => '1104','name' => 'Metsakasti'),\n \t array('id' => '15770','state_id' => '1104','name' => 'Metsanurme'),\n \t array('id' => '15771','state_id' => '1104','name' => 'Miiduranna'),\n \t array('id' => '15772','state_id' => '1104','name' => 'Munalaskme'),\n \t array('id' => '15773','state_id' => '1104','name' => 'Muraste'),\n \t array('id' => '15774','state_id' => '1104','name' => 'Muuga'),\n \t array('id' => '15775','state_id' => '1104','name' => 'Nabala'),\n \t array('id' => '15776','state_id' => '1104','name' => 'Neeme'),\n \t array('id' => '15777','state_id' => '1104','name' => 'Ohtu'),\n \t array('id' => '15778','state_id' => '1104','name' => 'Ojasoo'),\n \t array('id' => '15779','state_id' => '1104','name' => 'Oru'),\n \t array('id' => '15780','state_id' => '1104','name' => 'Padise'),\n \t array('id' => '15781','state_id' => '1104','name' => 'Pae'),\n \t array('id' => '15782','state_id' => '1104','name' => 'Paekna'),\n \t array('id' => '15783','state_id' => '1104','name' => 'Pajupea'),\n \t array('id' => '15784','state_id' => '1104','name' => 'Paldiski'),\n \t array('id' => '15785','state_id' => '1104','name' => 'Palvere'),\n \t array('id' => '15786','state_id' => '1104','name' => 'Parispea'),\n \t array('id' => '15787','state_id' => '1104','name' => 'Patika'),\n \t array('id' => '15788','state_id' => '1104','name' => 'Paunkula'),\n \t array('id' => '15789','state_id' => '1104','name' => 'Peetri'),\n \t array('id' => '15790','state_id' => '1104','name' => 'Peningi'),\n \t array('id' => '15791','state_id' => '1104','name' => 'Perila'),\n \t array('id' => '15792','state_id' => '1104','name' => 'Pikva'),\n \t array('id' => '15793','state_id' => '1104','name' => 'Pillapalu'),\n \t array('id' => '15794','state_id' => '1104','name' => 'Pringi'),\n \t array('id' => '15795','state_id' => '1104','name' => 'Puunsi'),\n \t array('id' => '15796','state_id' => '1104','name' => 'Raasiku'),\n \t array('id' => '15797','state_id' => '1104','name' => 'Rae'),\n \t array('id' => '15798','state_id' => '1104','name' => 'Randvere'),\n \t array('id' => '15799','state_id' => '1104','name' => 'Rannamoisa'),\n \t array('id' => '15800','state_id' => '1104','name' => 'Ravila'),\n \t array('id' => '15801','state_id' => '1104','name' => 'Riisipere'),\n \t array('id' => '15802','state_id' => '1104','name' => 'Rohuneeme'),\n \t array('id' => '15803','state_id' => '1104','name' => 'Roobuka'),\n \t array('id' => '15804','state_id' => '1104','name' => 'Ruila'),\n \t array('id' => '15805','state_id' => '1104','name' => 'Rummu'),\n \t array('id' => '15806','state_id' => '1104','name' => 'Saha'),\n \t array('id' => '15807','state_id' => '1104','name' => 'Saku'),\n \t array('id' => '15808','state_id' => '1104','name' => 'Saue'),\n \t array('id' => '15809','state_id' => '1104','name' => 'Saula'),\n \t array('id' => '15810','state_id' => '1104','name' => 'Saunja'),\n \t array('id' => '15811','state_id' => '1104','name' => 'Suurpea'),\n \t array('id' => '15812','state_id' => '1104','name' => 'Suurupi'),\n \t array('id' => '15813','state_id' => '1104','name' => 'Tabasalu'),\n \t array('id' => '15814','state_id' => '1104','name' => 'Tagadi'),\n \t array('id' => '15815','state_id' => '1104','name' => 'Tagametsa'),\n \t array('id' => '15816','state_id' => '1104','name' => 'Tallinn'),\n \t array('id' => '15817','state_id' => '1104','name' => 'Tammneeme'),\n \t array('id' => '15818','state_id' => '1104','name' => 'Tiskre'),\n \t array('id' => '15819','state_id' => '1104','name' => 'Todva'),\n \t array('id' => '15820','state_id' => '1104','name' => 'Turba'),\n \t array('id' => '15821','state_id' => '1104','name' => 'Turisalu'),\n \t array('id' => '15822','state_id' => '1104','name' => 'Tutermaa'),\n \t array('id' => '15823','state_id' => '1104','name' => 'Tuula'),\n \t array('id' => '15824','state_id' => '1104','name' => 'Tuulna'),\n \t array('id' => '15825','state_id' => '1104','name' => 'Uksnurme'),\n \t array('id' => '15826','state_id' => '1104','name' => 'Ulejoe'),\n \t array('id' => '15827','state_id' => '1104','name' => 'Uuri'),\n \t array('id' => '15828','state_id' => '1104','name' => 'Uuskula'),\n \t array('id' => '15829','state_id' => '1104','name' => 'Vaana'),\n \t array('id' => '15830','state_id' => '1104','name' => 'Vaana-Joesuu'),\n \t array('id' => '15831','state_id' => '1104','name' => 'Vaida'),\n \t array('id' => '15832','state_id' => '1104','name' => 'Vaidasoo'),\n \t array('id' => '15833','state_id' => '1104','name' => 'Valingu'),\n \t array('id' => '15834','state_id' => '1104','name' => 'Valkla'),\n \t array('id' => '15835','state_id' => '1104','name' => 'Vanamoisa'),\n \t array('id' => '15836','state_id' => '1104','name' => 'Vardja'),\n \t array('id' => '15837','state_id' => '1104','name' => 'Vasalemma'),\n \t array('id' => '15838','state_id' => '1104','name' => 'Vaskjala'),\n \t array('id' => '15839','state_id' => '1104','name' => 'Vatsla'),\n \t array('id' => '15840','state_id' => '1104','name' => 'Veskikula'),\n \t array('id' => '15841','state_id' => '1104','name' => 'Vihasoo'),\n \t array('id' => '15842','state_id' => '1104','name' => 'Viimsi'),\n \t array('id' => '15843','state_id' => '1104','name' => 'Viinistu'),\n \t array('id' => '15844','state_id' => '1104','name' => 'Viti'),\n \t array('id' => '15845','state_id' => '1105','name' => 'Emmaste'),\n \t array('id' => '15846','state_id' => '1105','name' => 'Jausa'),\n \t array('id' => '15847','state_id' => '1105','name' => 'Kaina'),\n \t array('id' => '15848','state_id' => '1105','name' => 'Kardla'),\n \t array('id' => '15849','state_id' => '1105','name' => 'Korgessaare'),\n \t array('id' => '15850','state_id' => '1105','name' => 'Lauka'),\n \t array('id' => '15851','state_id' => '1105','name' => 'Lope'),\n \t array('id' => '15852','state_id' => '1105','name' => 'Mannamaa'),\n \t array('id' => '15853','state_id' => '1105','name' => 'Putkaste'),\n \t array('id' => '15854','state_id' => '1105','name' => 'Suuremoisa'),\n \t array('id' => '15855','state_id' => '1106','name' => 'Aa'),\n \t array('id' => '15856','state_id' => '1106','name' => 'Alajoe'),\n \t array('id' => '15857','state_id' => '1106','name' => 'Aseri'),\n \t array('id' => '15858','state_id' => '1106','name' => 'Avinurme'),\n \t array('id' => '15859','state_id' => '1106','name' => 'Edise'),\n \t array('id' => '15860','state_id' => '1106','name' => 'Erra'),\n \t array('id' => '15861','state_id' => '1106','name' => 'Iisaku'),\n \t array('id' => '15862','state_id' => '1106','name' => 'Jarve'),\n \t array('id' => '15863','state_id' => '1106','name' => 'Johvi'),\n \t array('id' => '15864','state_id' => '1106','name' => 'Kahula'),\n \t array('id' => '15865','state_id' => '1106','name' => 'Kiikla'),\n \t array('id' => '15866','state_id' => '1106','name' => 'Kivioli'),\n \t array('id' => '15867','state_id' => '1106','name' => 'Kohtla-Jarve'),\n \t array('id' => '15868','state_id' => '1106','name' => 'Kohtla-Nomme'),\n \t array('id' => '15869','state_id' => '1106','name' => 'Konju'),\n \t array('id' => '15870','state_id' => '1106','name' => 'Kose'),\n \t array('id' => '15871','state_id' => '1106','name' => 'Kuremae'),\n \t array('id' => '15872','state_id' => '1106','name' => 'Kurtna'),\n \t array('id' => '15873','state_id' => '1106','name' => 'Lohusuu'),\n \t array('id' => '15874','state_id' => '1106','name' => 'Luganuse'),\n \t array('id' => '15875','state_id' => '1106','name' => 'Maetaguse'),\n \t array('id' => '15876','state_id' => '1106','name' => 'Maidla'),\n \t array('id' => '15877','state_id' => '1106','name' => 'Narva'),\n \t array('id' => '15878','state_id' => '1106','name' => 'Narva-Joesuu'),\n \t array('id' => '15879','state_id' => '1106','name' => 'Olgina'),\n \t array('id' => '15880','state_id' => '1106','name' => 'Pagari'),\n \t array('id' => '15881','state_id' => '1106','name' => 'Puhajoe'),\n \t array('id' => '15882','state_id' => '1106','name' => 'Purtse'),\n \t array('id' => '15883','state_id' => '1106','name' => 'Pussi'),\n \t array('id' => '15884','state_id' => '1106','name' => 'Rannu'),\n \t array('id' => '15885','state_id' => '1106','name' => 'Saka'),\n \t array('id' => '15886','state_id' => '1106','name' => 'Savala'),\n \t array('id' => '15887','state_id' => '1106','name' => 'Sillamae'),\n \t array('id' => '15888','state_id' => '1106','name' => 'Sinimae'),\n \t array('id' => '15889','state_id' => '1106','name' => 'Soldina'),\n \t array('id' => '15890','state_id' => '1106','name' => 'Sompa'),\n \t array('id' => '15891','state_id' => '1106','name' => 'Sonda'),\n \t array('id' => '15892','state_id' => '1106','name' => 'Tammiku'),\n \t array('id' => '15893','state_id' => '1106','name' => 'Toila'),\n \t array('id' => '15894','state_id' => '1106','name' => 'Tudulinna'),\n \t array('id' => '15895','state_id' => '1106','name' => 'Ulvi'),\n \t array('id' => '15896','state_id' => '1106','name' => 'Vaivara'),\n \t array('id' => '15897','state_id' => '1106','name' => 'Varja'),\n \t array('id' => '15898','state_id' => '1106','name' => 'Vasavere'),\n \t array('id' => '15899','state_id' => '1106','name' => 'Voka'),\n \t array('id' => '15900','state_id' => '1107','name' => 'Ahula'),\n \t array('id' => '15901','state_id' => '1107','name' => 'Aiamaa'),\n \t array('id' => '15902','state_id' => '1107','name' => 'Albu'),\n \t array('id' => '15903','state_id' => '1107','name' => 'Ambla'),\n \t array('id' => '15904','state_id' => '1107','name' => 'Anari'),\n \t array('id' => '15905','state_id' => '1107','name' => 'Anna'),\n \t array('id' => '15906','state_id' => '1107','name' => 'Aravete'),\n \t array('id' => '15907','state_id' => '1107','name' => 'Ervita'),\n \t array('id' => '15908','state_id' => '1107','name' => 'Imavere'),\n \t array('id' => '15909','state_id' => '1107','name' => 'Janeda'),\n \t array('id' => '15910','state_id' => '1107','name' => 'Jarva-Jaani'),\n \t array('id' => '15911','state_id' => '1107','name' => 'Jogisoo'),\n \t array('id' => '15912','state_id' => '1107','name' => 'Jootme'),\n \t array('id' => '15913','state_id' => '1107','name' => 'Kaalepi'),\n \t array('id' => '15914','state_id' => '1107','name' => 'Kabala'),\n \t array('id' => '15915','state_id' => '1107','name' => 'Kahala'),\n \t array('id' => '15916','state_id' => '1107','name' => 'Karavete'),\n \t array('id' => '15917','state_id' => '1107','name' => 'Karevere'),\n \t array('id' => '15918','state_id' => '1107','name' => 'Karinu'),\n \t array('id' => '15919','state_id' => '1107','name' => 'Kasukonna'),\n \t array('id' => '15920','state_id' => '1107','name' => 'Kirna'),\n \t array('id' => '15921','state_id' => '1107','name' => 'Koeru'),\n \t array('id' => '15922','state_id' => '1107','name' => 'Koigi'),\n \t array('id' => '15923','state_id' => '1107','name' => 'Kolu'),\n \t array('id' => '15924','state_id' => '1107','name' => 'Kuksema'),\n \t array('id' => '15925','state_id' => '1107','name' => 'Laupa'),\n \t array('id' => '15926','state_id' => '1107','name' => 'Lehtse'),\n \t array('id' => '15927','state_id' => '1107','name' => 'Lokuta'),\n \t array('id' => '15928','state_id' => '1107','name' => 'Loola'),\n \t array('id' => '15929','state_id' => '1107','name' => 'Muusleri'),\n \t array('id' => '15930','state_id' => '1107','name' => 'Oisu'),\n \t array('id' => '15931','state_id' => '1107','name' => 'Paide'),\n \t array('id' => '15932','state_id' => '1107','name' => 'Painurme'),\n \t array('id' => '15933','state_id' => '1107','name' => 'Peetri'),\n \t array('id' => '15934','state_id' => '1107','name' => 'Poikva'),\n \t array('id' => '15935','state_id' => '1107','name' => 'Reopalu'),\n \t array('id' => '15936','state_id' => '1107','name' => 'Retla'),\n \t array('id' => '15937','state_id' => '1107','name' => 'Roa'),\n \t array('id' => '15938','state_id' => '1107','name' => 'Roosna'),\n \t array('id' => '15939','state_id' => '1107','name' => 'Roosna-Alliku'),\n \t array('id' => '15940','state_id' => '1107','name' => 'Sarevere'),\n \t array('id' => '15941','state_id' => '1107','name' => 'Sargvere'),\n \t array('id' => '15942','state_id' => '1107','name' => 'Taikse'),\n \t array('id' => '15943','state_id' => '1107','name' => 'Tarbja'),\n \t array('id' => '15944','state_id' => '1107','name' => 'Turi'),\n \t array('id' => '15945','state_id' => '1107','name' => 'Turi-Alliku'),\n \t array('id' => '15946','state_id' => '1107','name' => 'Vaatsa'),\n \t array('id' => '15947','state_id' => '1107','name' => 'Vahukula'),\n \t array('id' => '15948','state_id' => '1107','name' => 'Vao'),\n \t array('id' => '15949','state_id' => '1107','name' => 'Viisu'),\n \t array('id' => '15950','state_id' => '1107','name' => 'Villevere'),\n \t array('id' => '15951','state_id' => '1108','name' => 'Adavere'),\n \t array('id' => '15952','state_id' => '1108','name' => 'Esku'),\n \t array('id' => '15953','state_id' => '1108','name' => 'Harjanurme'),\n \t array('id' => '15954','state_id' => '1108','name' => 'Jogeva'),\n \t array('id' => '15955','state_id' => '1108','name' => 'Kaarepere'),\n \t array('id' => '15956','state_id' => '1108','name' => 'Kalana'),\n \t array('id' => '15957','state_id' => '1108','name' => 'Kalme'),\n \t array('id' => '15958','state_id' => '1108','name' => 'Kamari'),\n \t array('id' => '15959','state_id' => '1108','name' => 'Karde'),\n \t array('id' => '15960','state_id' => '1108','name' => 'Kasepaa'),\n \t array('id' => '15961','state_id' => '1108','name' => 'Kassinurme'),\n \t array('id' => '15962','state_id' => '1108','name' => 'Konnu'),\n \t array('id' => '15963','state_id' => '1108','name' => 'Kudina'),\n \t array('id' => '15964','state_id' => '1108','name' => 'Kukita'),\n \t array('id' => '15965','state_id' => '1108','name' => 'Kuremaa'),\n \t array('id' => '15966','state_id' => '1108','name' => 'Kurista'),\n \t array('id' => '15967','state_id' => '1108','name' => 'Lahavere'),\n \t array('id' => '15968','state_id' => '1108','name' => 'Laiuse'),\n \t array('id' => '15969','state_id' => '1108','name' => 'Laiusevalja'),\n \t array('id' => '15970','state_id' => '1108','name' => 'Leedi'),\n \t array('id' => '15971','state_id' => '1108','name' => 'Lustivere'),\n \t array('id' => '15972','state_id' => '1108','name' => 'Luua'),\n \t array('id' => '15973','state_id' => '1108','name' => 'Maarja'),\n \t array('id' => '15974','state_id' => '1108','name' => 'Mallikvere'),\n \t array('id' => '15975','state_id' => '1108','name' => 'Metsakula'),\n \t array('id' => '15976','state_id' => '1108','name' => 'Mohkula'),\n \t array('id' => '15977','state_id' => '1108','name' => 'Mustvee'),\n \t array('id' => '15978','state_id' => '1108','name' => 'Neanurme'),\n \t array('id' => '15979','state_id' => '1108','name' => 'Nova'),\n \t array('id' => '15980','state_id' => '1108','name' => 'Omedu'),\n \t array('id' => '15981','state_id' => '1108','name' => 'Ouna'),\n \t array('id' => '15982','state_id' => '1108','name' => 'Painkula'),\n \t array('id' => '15983','state_id' => '1108','name' => 'Pajusi'),\n \t array('id' => '15984','state_id' => '1108','name' => 'Pala'),\n \t array('id' => '15985','state_id' => '1108','name' => 'Palamuse'),\n \t array('id' => '15986','state_id' => '1108','name' => 'Pataste'),\n \t array('id' => '15987','state_id' => '1108','name' => 'Pauastvere'),\n \t array('id' => '15988','state_id' => '1108','name' => 'Pikkjarve'),\n \t array('id' => '15989','state_id' => '1108','name' => 'Pikknurme'),\n \t array('id' => '15990','state_id' => '1108','name' => 'Pisisaare'),\n \t array('id' => '15991','state_id' => '1108','name' => 'Poltsamaa'),\n \t array('id' => '15992','state_id' => '1108','name' => 'Poora'),\n \t array('id' => '15993','state_id' => '1108','name' => 'Puurmani'),\n \t array('id' => '15994','state_id' => '1108','name' => 'Raabise'),\n \t array('id' => '15995','state_id' => '1108','name' => 'Raja'),\n \t array('id' => '15996','state_id' => '1108','name' => 'Saare'),\n \t array('id' => '15997','state_id' => '1108','name' => 'Sadala'),\n \t array('id' => '15998','state_id' => '1108','name' => 'Sadukula'),\n \t array('id' => '15999','state_id' => '1108','name' => 'Siimusti'),\n \t array('id' => '16000','state_id' => '1108','name' => 'Tabivere'),\n \t array('id' => '16001','state_id' => '1108','name' => 'Tahkvere'),\n \t array('id' => '16002','state_id' => '1108','name' => 'Tiheda'),\n \t array('id' => '16003','state_id' => '1108','name' => 'Toikvere'),\n \t array('id' => '16004','state_id' => '1108','name' => 'Torma'),\n \t array('id' => '16005','state_id' => '1108','name' => 'Umbusi'),\n \t array('id' => '16006','state_id' => '1108','name' => 'Vagari'),\n \t array('id' => '16007','state_id' => '1108','name' => 'Vaiatu'),\n \t array('id' => '16008','state_id' => '1108','name' => 'Vaike-Kamari'),\n \t array('id' => '16009','state_id' => '1108','name' => 'Vaimastvere'),\n \t array('id' => '16010','state_id' => '1108','name' => 'Valgma'),\n \t array('id' => '16011','state_id' => '1108','name' => 'Visusti'),\n \t array('id' => '16012','state_id' => '1108','name' => 'Voduvere'),\n \t array('id' => '16013','state_id' => '1108','name' => 'Vohmanomme'),\n \t array('id' => '16014','state_id' => '1108','name' => 'Voisiku'),\n \t array('id' => '16015','state_id' => '1108','name' => 'Voldi'),\n \t array('id' => '16016','state_id' => '1108','name' => 'Voore'),\n \t array('id' => '16017','state_id' => '1108','name' => 'Votikvere'),\n \t array('id' => '16018','state_id' => '1109','name' => 'Haapsalu'),\n \t array('id' => '16019','state_id' => '1109','name' => 'Hullo'),\n \t array('id' => '16020','state_id' => '1109','name' => 'Joodre'),\n \t array('id' => '16021','state_id' => '1109','name' => 'Kirbla'),\n \t array('id' => '16022','state_id' => '1109','name' => 'Kirimae'),\n \t array('id' => '16023','state_id' => '1109','name' => 'Koluvere'),\n \t array('id' => '16024','state_id' => '1109','name' => 'Komsi'),\n \t array('id' => '16025','state_id' => '1109','name' => 'Kullamaa'),\n \t array('id' => '16026','state_id' => '1109','name' => 'Lihula'),\n \t array('id' => '16027','state_id' => '1109','name' => 'Liivi'),\n \t array('id' => '16028','state_id' => '1109','name' => 'Linnamae'),\n \t array('id' => '16029','state_id' => '1109','name' => 'Martna'),\n \t array('id' => '16030','state_id' => '1109','name' => 'Nigula'),\n \t array('id' => '16031','state_id' => '1109','name' => 'Nova'),\n \t array('id' => '16032','state_id' => '1109','name' => 'Palivere'),\n \t array('id' => '16033','state_id' => '1109','name' => 'Palli'),\n \t array('id' => '16034','state_id' => '1109','name' => 'Panga'),\n \t array('id' => '16035','state_id' => '1109','name' => 'Paralepa'),\n \t array('id' => '16036','state_id' => '1109','name' => 'Piirsalu'),\n \t array('id' => '16037','state_id' => '1109','name' => 'Purksi'),\n \t array('id' => '16038','state_id' => '1109','name' => 'Rannakula'),\n \t array('id' => '16039','state_id' => '1109','name' => 'Risti'),\n \t array('id' => '16040','state_id' => '1109','name' => 'Roude'),\n \t array('id' => '16041','state_id' => '1109','name' => 'Sutlepa'),\n \t array('id' => '16042','state_id' => '1109','name' => 'Taebla'),\n \t array('id' => '16043','state_id' => '1109','name' => 'Tuudi'),\n \t array('id' => '16044','state_id' => '1109','name' => 'Uuemoisa'),\n \t array('id' => '16045','state_id' => '1109','name' => 'Variku'),\n \t array('id' => '16046','state_id' => '1109','name' => 'Vatla'),\n \t array('id' => '16047','state_id' => '1109','name' => 'Virtsu'),\n \t array('id' => '16048','state_id' => '1110','name' => 'Aaspere'),\n \t array('id' => '16049','state_id' => '1110','name' => 'Ama'),\n \t array('id' => '16050','state_id' => '1110','name' => 'Arkna'),\n \t array('id' => '16051','state_id' => '1110','name' => 'Assamalla'),\n \t array('id' => '16052','state_id' => '1110','name' => 'Avanduse'),\n \t array('id' => '16053','state_id' => '1110','name' => 'Avispea'),\n \t array('id' => '16054','state_id' => '1110','name' => 'Ebavere'),\n \t array('id' => '16055','state_id' => '1110','name' => 'Eipri'),\n \t array('id' => '16056','state_id' => '1110','name' => 'Essu'),\n \t array('id' => '16057','state_id' => '1110','name' => 'Haljala'),\n \t array('id' => '16058','state_id' => '1110','name' => 'Hulja'),\n \t array('id' => '16059','state_id' => '1110','name' => 'Imastu'),\n \t array('id' => '16060','state_id' => '1110','name' => 'Inju'),\n \t array('id' => '16061','state_id' => '1110','name' => 'Kadapiku'),\n \t array('id' => '16062','state_id' => '1110','name' => 'Kadila'),\n \t array('id' => '16063','state_id' => '1110','name' => 'Kadrina'),\n \t array('id' => '16064','state_id' => '1110','name' => 'Kakumae'),\n \t array('id' => '16065','state_id' => '1110','name' => 'Karitsa'),\n \t array('id' => '16066','state_id' => '1110','name' => 'Karu'),\n \t array('id' => '16067','state_id' => '1110','name' => 'Kasmu'),\n \t array('id' => '16068','state_id' => '1110','name' => 'Kihlevere'),\n \t array('id' => '16069','state_id' => '1110','name' => 'Kiku'),\n \t array('id' => '16070','state_id' => '1110','name' => 'Kiltsi'),\n \t array('id' => '16071','state_id' => '1110','name' => 'Kohala'),\n \t array('id' => '16072','state_id' => '1110','name' => 'Kunda'),\n \t array('id' => '16073','state_id' => '1110','name' => 'Kuti'),\n \t array('id' => '16074','state_id' => '1110','name' => 'Laekvere'),\n \t array('id' => '16075','state_id' => '1110','name' => 'Lasila'),\n \t array('id' => '16076','state_id' => '1110','name' => 'Lepna'),\n \t array('id' => '16077','state_id' => '1110','name' => 'Levala'),\n \t array('id' => '16078','state_id' => '1110','name' => 'Liigvalla'),\n \t array('id' => '16079','state_id' => '1110','name' => 'Modriku'),\n \t array('id' => '16080','state_id' => '1110','name' => 'Moe'),\n \t array('id' => '16081','state_id' => '1110','name' => 'Moora'),\n \t array('id' => '16082','state_id' => '1110','name' => 'Muuga'),\n \t array('id' => '16083','state_id' => '1110','name' => 'Napi'),\n \t array('id' => '16084','state_id' => '1110','name' => 'Paasvere'),\n \t array('id' => '16085','state_id' => '1110','name' => 'Pajusti'),\n \t array('id' => '16086','state_id' => '1110','name' => 'Pandivere'),\n \t array('id' => '16087','state_id' => '1110','name' => 'Piira'),\n \t array('id' => '16088','state_id' => '1110','name' => 'Pikevere'),\n \t array('id' => '16089','state_id' => '1110','name' => 'Podrangu'),\n \t array('id' => '16090','state_id' => '1110','name' => 'Podruse'),\n \t array('id' => '16091','state_id' => '1110','name' => 'Porkuni'),\n \t array('id' => '16092','state_id' => '1110','name' => 'Rahkla'),\n \t array('id' => '16093','state_id' => '1110','name' => 'Rakke'),\n \t array('id' => '16094','state_id' => '1110','name' => 'Rakvere'),\n \t array('id' => '16095','state_id' => '1110','name' => 'Ridakula'),\n \t array('id' => '16096','state_id' => '1110','name' => 'Roela'),\n \t array('id' => '16097','state_id' => '1110','name' => 'Roodevalja'),\n \t array('id' => '16098','state_id' => '1110','name' => 'Saase'),\n \t array('id' => '16099','state_id' => '1110','name' => 'Salda'),\n \t array('id' => '16100','state_id' => '1110','name' => 'Salla'),\n \t array('id' => '16101','state_id' => '1110','name' => 'Simuna'),\n \t array('id' => '16102','state_id' => '1110','name' => 'Someru'),\n \t array('id' => '16103','state_id' => '1110','name' => 'Taaravainu'),\n \t array('id' => '16104','state_id' => '1110','name' => 'Tamsalu'),\n \t array('id' => '16105','state_id' => '1110','name' => 'Tapa'),\n \t array('id' => '16106','state_id' => '1110','name' => 'Torma'),\n \t array('id' => '16107','state_id' => '1110','name' => 'Torremae'),\n \t array('id' => '16108','state_id' => '1110','name' => 'Triigi'),\n \t array('id' => '16109','state_id' => '1110','name' => 'Tudu'),\n \t array('id' => '16110','state_id' => '1110','name' => 'Ubja'),\n \t array('id' => '16111','state_id' => '1110','name' => 'Udriku'),\n \t array('id' => '16112','state_id' => '1110','name' => 'Uhtna'),\n \t array('id' => '16113','state_id' => '1110','name' => 'Ulvi'),\n \t array('id' => '16114','state_id' => '1110','name' => 'Undla'),\n \t array('id' => '16115','state_id' => '1110','name' => 'Ussimae'),\n \t array('id' => '16116','state_id' => '1110','name' => 'Uudekula'),\n \t array('id' => '16117','state_id' => '1110','name' => 'Vaekula'),\n \t array('id' => '16118','state_id' => '1110','name' => 'Vahakulmu'),\n \t array('id' => '16119','state_id' => '1110','name' => 'Vaiatu'),\n \t array('id' => '16120','state_id' => '1110','name' => 'Vaike-Maarja'),\n \t array('id' => '16121','state_id' => '1110','name' => 'Vajangu'),\n \t array('id' => '16122','state_id' => '1110','name' => 'Vao'),\n \t array('id' => '16123','state_id' => '1110','name' => 'Veltsi'),\n \t array('id' => '16124','state_id' => '1110','name' => 'Venevere'),\n \t array('id' => '16125','state_id' => '1110','name' => 'Vergi'),\n \t array('id' => '16126','state_id' => '1110','name' => 'Vetiku'),\n \t array('id' => '16127','state_id' => '1110','name' => 'Vihula'),\n \t array('id' => '16128','state_id' => '1110','name' => 'Viitna'),\n \t array('id' => '16129','state_id' => '1110','name' => 'Vinni'),\n \t array('id' => '16130','state_id' => '1110','name' => 'Viru-Jaagupi'),\n \t array('id' => '16131','state_id' => '1110','name' => 'Viru-Kabala'),\n \t array('id' => '16132','state_id' => '1110','name' => 'Viru-Nigula'),\n \t array('id' => '16133','state_id' => '1110','name' => 'Vohnja'),\n \t array('id' => '16134','state_id' => '1110','name' => 'Vosu'),\n \t array('id' => '16135','state_id' => '1110','name' => 'Vosupere'),\n \t array('id' => '16136','state_id' => '1111','name' => 'Ahaste'),\n \t array('id' => '16137','state_id' => '1111','name' => 'Aluste'),\n \t array('id' => '16138','state_id' => '1111','name' => 'Are'),\n \t array('id' => '16139','state_id' => '1111','name' => 'Arumetsa'),\n \t array('id' => '16140','state_id' => '1111','name' => 'Audru'),\n \t array('id' => '16141','state_id' => '1111','name' => 'Eametsa'),\n \t array('id' => '16142','state_id' => '1111','name' => 'Haademeeste'),\n \t array('id' => '16143','state_id' => '1111','name' => 'Halinga'),\n \t array('id' => '16144','state_id' => '1111','name' => 'Ikla'),\n \t array('id' => '16145','state_id' => '1111','name' => 'Ilvese'),\n \t array('id' => '16146','state_id' => '1111','name' => 'Jaamakula'),\n \t array('id' => '16147','state_id' => '1111','name' => 'Jaarja'),\n \t array('id' => '16148','state_id' => '1111','name' => 'Joesuu'),\n \t array('id' => '16149','state_id' => '1111','name' => 'Joopre'),\n \t array('id' => '16150','state_id' => '1111','name' => 'Kaansoo'),\n \t array('id' => '16151','state_id' => '1111','name' => 'Kabli'),\n \t array('id' => '16152','state_id' => '1111','name' => 'Kadjaste'),\n \t array('id' => '16153','state_id' => '1111','name' => 'Kaisma'),\n \t array('id' => '16154','state_id' => '1111','name' => 'Kalita'),\n \t array('id' => '16155','state_id' => '1111','name' => 'Kanakula'),\n \t array('id' => '16156','state_id' => '1111','name' => 'Kergu'),\n \t array('id' => '16157','state_id' => '1111','name' => 'Kihlepa'),\n \t array('id' => '16158','state_id' => '1111','name' => 'Kilingi-Nomme'),\n \t array('id' => '16159','state_id' => '1111','name' => 'Kilksama'),\n \t array('id' => '16160','state_id' => '1111','name' => 'Koima'),\n \t array('id' => '16161','state_id' => '1111','name' => 'Koonga'),\n \t array('id' => '16162','state_id' => '1111','name' => 'Krundikula'),\n \t array('id' => '16163','state_id' => '1111','name' => 'Laadi'),\n \t array('id' => '16164','state_id' => '1111','name' => 'Langerma'),\n \t array('id' => '16165','state_id' => '1111','name' => 'Lavassaare'),\n \t array('id' => '16166','state_id' => '1111','name' => 'Leipste'),\n \t array('id' => '16167','state_id' => '1111','name' => 'Lemmetsa'),\n \t array('id' => '16168','state_id' => '1111','name' => 'Lemsi'),\n \t array('id' => '16169','state_id' => '1111','name' => 'Libatse'),\n \t array('id' => '16170','state_id' => '1111','name' => 'Linakula'),\n \t array('id' => '16171','state_id' => '1111','name' => 'Lindi'),\n \t array('id' => '16172','state_id' => '1111','name' => 'Liu'),\n \t array('id' => '16173','state_id' => '1111','name' => 'Lodja'),\n \t array('id' => '16174','state_id' => '1111','name' => 'Lope'),\n \t array('id' => '16175','state_id' => '1111','name' => 'Malda'),\n \t array('id' => '16176','state_id' => '1111','name' => 'Mannikuste'),\n \t array('id' => '16177','state_id' => '1111','name' => 'Massiaru'),\n \t array('id' => '16178','state_id' => '1111','name' => 'Metsaaare'),\n \t array('id' => '16179','state_id' => '1111','name' => 'Metsapoole'),\n \t array('id' => '16180','state_id' => '1111','name' => 'Moisakula'),\n \t array('id' => '16181','state_id' => '1111','name' => 'Muraka'),\n \t array('id' => '16182','state_id' => '1111','name' => 'Niidu'),\n \t array('id' => '16183','state_id' => '1111','name' => 'Nurme'),\n \t array('id' => '16184','state_id' => '1111','name' => 'Oara'),\n \t array('id' => '16185','state_id' => '1111','name' => 'Oidrema'),\n \t array('id' => '16186','state_id' => '1111','name' => 'Paikuse'),\n \t array('id' => '16187','state_id' => '1111','name' => 'Papsaare'),\n \t array('id' => '16188','state_id' => '1111','name' => 'Parnjoe'),\n \t array('id' => '16189','state_id' => '1111','name' => 'Parnu'),\n \t array('id' => '16190','state_id' => '1111','name' => 'Parnu-Jaagupi'),\n \t array('id' => '16191','state_id' => '1111','name' => 'Penu'),\n \t array('id' => '16192','state_id' => '1111','name' => 'Piistaoja'),\n \t array('id' => '16193','state_id' => '1111','name' => 'Pohara'),\n \t array('id' => '16194','state_id' => '1111','name' => 'Poldeotsa'),\n \t array('id' => '16195','state_id' => '1111','name' => 'Pootsi'),\n \t array('id' => '16196','state_id' => '1111','name' => 'Pulli'),\n \t array('id' => '16197','state_id' => '1111','name' => 'Rannametsa'),\n \t array('id' => '16198','state_id' => '1111','name' => 'Ratsepa'),\n \t array('id' => '16199','state_id' => '1111','name' => 'Reiu'),\n \t array('id' => '16200','state_id' => '1111','name' => 'Ridalepa'),\n \t array('id' => '16201','state_id' => '1111','name' => 'Rootsikula'),\n \t array('id' => '16202','state_id' => '1111','name' => 'Saarde'),\n \t array('id' => '16203','state_id' => '1111','name' => 'Saare'),\n \t array('id' => '16204','state_id' => '1111','name' => 'Sauga'),\n \t array('id' => '16205','state_id' => '1111','name' => 'Seliste'),\n \t array('id' => '16206','state_id' => '1111','name' => 'Selja'),\n \t array('id' => '16207','state_id' => '1111','name' => 'Seljametsa'),\n \t array('id' => '16208','state_id' => '1111','name' => 'Silla'),\n \t array('id' => '16209','state_id' => '1111','name' => 'Sindi'),\n \t array('id' => '16210','state_id' => '1111','name' => 'Soeva'),\n \t array('id' => '16211','state_id' => '1111','name' => 'Soometsa'),\n \t array('id' => '16212','state_id' => '1111','name' => 'Suigu'),\n \t array('id' => '16213','state_id' => '1111','name' => 'Surju'),\n \t array('id' => '16214','state_id' => '1111','name' => 'Suurejoe'),\n \t array('id' => '16215','state_id' => '1111','name' => 'Taali'),\n \t array('id' => '16216','state_id' => '1111','name' => 'Tahkuranna'),\n \t array('id' => '16217','state_id' => '1111','name' => 'Tali'),\n \t array('id' => '16218','state_id' => '1111','name' => 'Tammiste'),\n \t array('id' => '16219','state_id' => '1111','name' => 'Tammuru'),\n \t array('id' => '16220','state_id' => '1111','name' => 'Tihemetsa'),\n \t array('id' => '16221','state_id' => '1111','name' => 'Tolla'),\n \t array('id' => '16222','state_id' => '1111','name' => 'Tootsi'),\n \t array('id' => '16223','state_id' => '1111','name' => 'Tori'),\n \t array('id' => '16224','state_id' => '1111','name' => 'Tostamaa'),\n \t array('id' => '16225','state_id' => '1111','name' => 'Tousi'),\n \t array('id' => '16226','state_id' => '1111','name' => 'Treimani'),\n \t array('id' => '16227','state_id' => '1111','name' => 'Urge'),\n \t array('id' => '16228','state_id' => '1111','name' => 'Uulu'),\n \t array('id' => '16229','state_id' => '1111','name' => 'Vahenurme'),\n \t array('id' => '16230','state_id' => '1111','name' => 'Vaki'),\n \t array('id' => '16231','state_id' => '1111','name' => 'Vandra'),\n \t array('id' => '16232','state_id' => '1111','name' => 'Varbla'),\n \t array('id' => '16233','state_id' => '1111','name' => 'Veelikse'),\n \t array('id' => '16234','state_id' => '1111','name' => 'Vihtra'),\n \t array('id' => '16235','state_id' => '1111','name' => 'Voidu'),\n \t array('id' => '16236','state_id' => '1111','name' => 'Voiste'),\n \t array('id' => '16237','state_id' => '1112','name' => 'Aarna'),\n \t array('id' => '16238','state_id' => '1112','name' => 'Ahja'),\n \t array('id' => '16239','state_id' => '1112','name' => 'Erastvere'),\n \t array('id' => '16240','state_id' => '1112','name' => 'Himma'),\n \t array('id' => '16241','state_id' => '1112','name' => 'Himmaste'),\n \t array('id' => '16242','state_id' => '1112','name' => 'Holvandi'),\n \t array('id' => '16243','state_id' => '1112','name' => 'Ihamaru'),\n \t array('id' => '16244','state_id' => '1112','name' => 'Jaanimoisa'),\n \t array('id' => '16245','state_id' => '1112','name' => 'Kanepi'),\n \t array('id' => '16246','state_id' => '1112','name' => 'Karilatsi'),\n \t array('id' => '16247','state_id' => '1112','name' => 'Karsa'),\n \t array('id' => '16248','state_id' => '1112','name' => 'Karste'),\n \t array('id' => '16249','state_id' => '1112','name' => 'Kauksi'),\n \t array('id' => '16250','state_id' => '1112','name' => 'Kiidjarve'),\n \t array('id' => '16251','state_id' => '1112','name' => 'Kostrimae'),\n \t array('id' => '16252','state_id' => '1112','name' => 'Krootuse'),\n \t array('id' => '16253','state_id' => '1112','name' => 'Leevaku'),\n \t array('id' => '16254','state_id' => '1112','name' => 'Leevi'),\n \t array('id' => '16255','state_id' => '1112','name' => 'Leevijoe'),\n \t array('id' => '16256','state_id' => '1112','name' => 'Linte'),\n \t array('id' => '16257','state_id' => '1112','name' => 'Lootvina'),\n \t array('id' => '16258','state_id' => '1112','name' => 'Maaritsa'),\n \t array('id' => '16259','state_id' => '1112','name' => 'Mammaste'),\n \t array('id' => '16260','state_id' => '1112','name' => 'Metste'),\n \t array('id' => '16261','state_id' => '1112','name' => 'Mikitamae'),\n \t array('id' => '16262','state_id' => '1112','name' => 'Mooste'),\n \t array('id' => '16263','state_id' => '1112','name' => 'Naha'),\n \t array('id' => '16264','state_id' => '1112','name' => 'Orava'),\n \t array('id' => '16265','state_id' => '1112','name' => 'Pahtpaa'),\n \t array('id' => '16266','state_id' => '1112','name' => 'Partsi'),\n \t array('id' => '16267','state_id' => '1112','name' => 'Peri'),\n \t array('id' => '16268','state_id' => '1112','name' => 'Piigandi'),\n \t array('id' => '16269','state_id' => '1112','name' => 'Polgaste'),\n \t array('id' => '16270','state_id' => '1112','name' => 'Polva'),\n \t array('id' => '16271','state_id' => '1112','name' => 'Prangli'),\n \t array('id' => '16272','state_id' => '1112','name' => 'Puuri'),\n \t array('id' => '16273','state_id' => '1112','name' => 'Raadama'),\n \t array('id' => '16274','state_id' => '1112','name' => 'Rahumae'),\n \t array('id' => '16275','state_id' => '1112','name' => 'Raigla'),\n \t array('id' => '16276','state_id' => '1112','name' => 'Rapina'),\n \t array('id' => '16277','state_id' => '1112','name' => 'Rasina'),\n \t array('id' => '16278','state_id' => '1112','name' => 'Ristipalo'),\n \t array('id' => '16279','state_id' => '1112','name' => 'Rosma'),\n \t array('id' => '16280','state_id' => '1112','name' => 'Ruusa'),\n \t array('id' => '16281','state_id' => '1112','name' => 'Saverna'),\n \t array('id' => '16282','state_id' => '1112','name' => 'Sillapaa'),\n \t array('id' => '16283','state_id' => '1112','name' => 'Soodoma'),\n \t array('id' => '16284','state_id' => '1112','name' => 'Suurkula'),\n \t array('id' => '16285','state_id' => '1112','name' => 'Taevaskoja'),\n \t array('id' => '16286','state_id' => '1112','name' => 'Tannassilma'),\n \t array('id' => '16287','state_id' => '1112','name' => 'Tilsi'),\n \t array('id' => '16288','state_id' => '1112','name' => 'Treski'),\n \t array('id' => '16289','state_id' => '1112','name' => 'Vaike-Rosna'),\n \t array('id' => '16290','state_id' => '1112','name' => 'Valgjarve'),\n \t array('id' => '16291','state_id' => '1112','name' => 'Vana-Koiola'),\n \t array('id' => '16292','state_id' => '1112','name' => 'Vardja'),\n \t array('id' => '16293','state_id' => '1112','name' => 'Varska'),\n \t array('id' => '16294','state_id' => '1112','name' => 'Vastse-Kuuste'),\n \t array('id' => '16295','state_id' => '1112','name' => 'Veriora'),\n \t array('id' => '16296','state_id' => '1112','name' => 'Viluste'),\n \t array('id' => '16297','state_id' => '1112','name' => 'Voopsu'),\n \t array('id' => '16298','state_id' => '1113','name' => 'Aespa'),\n \t array('id' => '16299','state_id' => '1113','name' => 'Alu'),\n \t array('id' => '16300','state_id' => '1113','name' => 'Eidapere'),\n \t array('id' => '16301','state_id' => '1113','name' => 'Hageri'),\n \t array('id' => '16302','state_id' => '1113','name' => 'Hagudi'),\n \t array('id' => '16303','state_id' => '1113','name' => 'Haimre'),\n \t array('id' => '16304','state_id' => '1113','name' => 'Hertu'),\n \t array('id' => '16305','state_id' => '1113','name' => 'Iira'),\n \t array('id' => '16306','state_id' => '1113','name' => 'Ingliste'),\n \t array('id' => '16307','state_id' => '1113','name' => 'Jarlepa'),\n \t array('id' => '16308','state_id' => '1113','name' => 'Jarvakandi'),\n \t array('id' => '16309','state_id' => '1113','name' => 'Juuru'),\n \t array('id' => '16310','state_id' => '1113','name' => 'Kaerepere'),\n \t array('id' => '16311','state_id' => '1113','name' => 'Kaiu'),\n \t array('id' => '16312','state_id' => '1113','name' => 'Kalbu'),\n \t array('id' => '16313','state_id' => '1113','name' => 'Karu'),\n \t array('id' => '16314','state_id' => '1113','name' => 'Kasti'),\n \t array('id' => '16315','state_id' => '1113','name' => 'Keava'),\n \t array('id' => '16316','state_id' => '1113','name' => 'Kehtna'),\n \t array('id' => '16317','state_id' => '1113','name' => 'Kivi-Vigala'),\n \t array('id' => '16318','state_id' => '1113','name' => 'Kodila'),\n \t array('id' => '16319','state_id' => '1113','name' => 'Kohila'),\n \t array('id' => '16320','state_id' => '1113','name' => 'Kuimetsa'),\n \t array('id' => '16321','state_id' => '1113','name' => 'Kuusiku'),\n \t array('id' => '16322','state_id' => '1113','name' => 'Laukna'),\n \t array('id' => '16323','state_id' => '1113','name' => 'Lelle'),\n \t array('id' => '16324','state_id' => '1113','name' => 'Lipa'),\n \t array('id' => '16325','state_id' => '1113','name' => 'Lohu'),\n \t array('id' => '16326','state_id' => '1113','name' => 'Lokuta'),\n \t array('id' => '16327','state_id' => '1113','name' => 'Maidla'),\n \t array('id' => '16328','state_id' => '1113','name' => 'Marjamaa'),\n \t array('id' => '16329','state_id' => '1113','name' => 'Masti'),\n \t array('id' => '16330','state_id' => '1113','name' => 'Moisamaa'),\n \t array('id' => '16331','state_id' => '1113','name' => 'Naravere'),\n \t array('id' => '16332','state_id' => '1113','name' => 'Orgita'),\n \t array('id' => '16333','state_id' => '1113','name' => 'Paardu'),\n \t array('id' => '16334','state_id' => '1113','name' => 'Pae'),\n \t array('id' => '16335','state_id' => '1113','name' => 'Pahkla'),\n \t array('id' => '16336','state_id' => '1113','name' => 'Pihali'),\n \t array('id' => '16337','state_id' => '1113','name' => 'Pirgu'),\n \t array('id' => '16338','state_id' => '1113','name' => 'Prillimae'),\n \t array('id' => '16339','state_id' => '1113','name' => 'Purila'),\n \t array('id' => '16340','state_id' => '1113','name' => 'Purku'),\n \t array('id' => '16341','state_id' => '1113','name' => 'Rabivere'),\n \t array('id' => '16342','state_id' => '1113','name' => 'Raikkula'),\n \t array('id' => '16343','state_id' => '1113','name' => 'Rangu'),\n \t array('id' => '16344','state_id' => '1113','name' => 'Rapla'),\n \t array('id' => '16345','state_id' => '1113','name' => 'Salutaguse'),\n \t array('id' => '16346','state_id' => '1113','name' => 'Sipa'),\n \t array('id' => '16347','state_id' => '1113','name' => 'Sotke'),\n \t array('id' => '16348','state_id' => '1113','name' => 'Sutlema'),\n \t array('id' => '16349','state_id' => '1113','name' => 'Tamme'),\n \t array('id' => '16350','state_id' => '1113','name' => 'Teenuse'),\n \t array('id' => '16351','state_id' => '1113','name' => 'Uuskula'),\n \t array('id' => '16352','state_id' => '1113','name' => 'Vahastu'),\n \t array('id' => '16353','state_id' => '1113','name' => 'Valgu'),\n \t array('id' => '16354','state_id' => '1113','name' => 'Valtu'),\n \t array('id' => '16355','state_id' => '1113','name' => 'Vana-Kaiu'),\n \t array('id' => '16356','state_id' => '1113','name' => 'Vana-Vigala'),\n \t array('id' => '16357','state_id' => '1113','name' => 'Varbola'),\n \t array('id' => '16358','state_id' => '1113','name' => 'Vilivere'),\n \t array('id' => '16359','state_id' => '1114','name' => 'Arandi'),\n \t array('id' => '16360','state_id' => '1114','name' => 'Aste'),\n \t array('id' => '16361','state_id' => '1114','name' => 'Eikla'),\n \t array('id' => '16362','state_id' => '1114','name' => 'Hellamaa'),\n \t array('id' => '16363','state_id' => '1114','name' => 'Kao'),\n \t array('id' => '16364','state_id' => '1114','name' => 'Karja'),\n \t array('id' => '16365','state_id' => '1114','name' => 'Karla'),\n \t array('id' => '16366','state_id' => '1114','name' => 'Kihelkonna'),\n \t array('id' => '16367','state_id' => '1114','name' => 'Koimla'),\n \t array('id' => '16368','state_id' => '1114','name' => 'Koljala'),\n \t array('id' => '16369','state_id' => '1114','name' => 'Korkkula'),\n \t array('id' => '16370','state_id' => '1114','name' => 'Korkvere'),\n \t array('id' => '16371','state_id' => '1114','name' => 'Kudjape'),\n \t array('id' => '16372','state_id' => '1114','name' => 'Kuressaare'),\n \t array('id' => '16373','state_id' => '1114','name' => 'Laatsa'),\n \t array('id' => '16374','state_id' => '1114','name' => 'Lahekula'),\n \t array('id' => '16375','state_id' => '1114','name' => 'Laimjala'),\n \t array('id' => '16376','state_id' => '1114','name' => 'Leisi'),\n \t array('id' => '16377','state_id' => '1114','name' => 'Liiva'),\n \t array('id' => '16378','state_id' => '1114','name' => 'Lumanda'),\n \t array('id' => '16379','state_id' => '1114','name' => 'Metskula'),\n \t array('id' => '16380','state_id' => '1114','name' => 'Mustjala'),\n \t array('id' => '16381','state_id' => '1114','name' => 'Nasva'),\n \t array('id' => '16382','state_id' => '1114','name' => 'Nommkula'),\n \t array('id' => '16383','state_id' => '1114','name' => 'Orissaare'),\n \t array('id' => '16384','state_id' => '1114','name' => 'Pahkla'),\n \t array('id' => '16385','state_id' => '1114','name' => 'Parsama'),\n \t array('id' => '16386','state_id' => '1114','name' => 'Pihtla'),\n \t array('id' => '16387','state_id' => '1114','name' => 'Sakla'),\n \t array('id' => '16388','state_id' => '1114','name' => 'Salme'),\n \t array('id' => '16389','state_id' => '1114','name' => 'Sandla'),\n \t array('id' => '16390','state_id' => '1114','name' => 'Tagavere'),\n \t array('id' => '16391','state_id' => '1114','name' => 'Tornimae'),\n \t array('id' => '16392','state_id' => '1114','name' => 'Valjala'),\n \t array('id' => '16393','state_id' => '1114','name' => 'Vohma'),\n \t array('id' => '16394','state_id' => '1115','name' => 'Aardla'),\n \t array('id' => '16395','state_id' => '1115','name' => 'Aksi'),\n \t array('id' => '16396','state_id' => '1115','name' => 'Alasoo'),\n \t array('id' => '16397','state_id' => '1115','name' => 'Alatskivi'),\n \t array('id' => '16398','state_id' => '1115','name' => 'Annikoru'),\n \t array('id' => '16399','state_id' => '1115','name' => 'Aravu'),\n \t array('id' => '16400','state_id' => '1115','name' => 'Elva'),\n \t array('id' => '16401','state_id' => '1115','name' => 'Erala'),\n \t array('id' => '16402','state_id' => '1115','name' => 'Ervu'),\n \t array('id' => '16403','state_id' => '1115','name' => 'Haage'),\n \t array('id' => '16404','state_id' => '1115','name' => 'Haaslava'),\n \t array('id' => '16405','state_id' => '1115','name' => 'Ignase'),\n \t array('id' => '16406','state_id' => '1115','name' => 'Illi'),\n \t array('id' => '16407','state_id' => '1115','name' => 'Ilmatsalu'),\n \t array('id' => '16408','state_id' => '1115','name' => 'Kaagvere'),\n \t array('id' => '16409','state_id' => '1115','name' => 'Kaardi'),\n \t array('id' => '16410','state_id' => '1115','name' => 'Kaarlijarve'),\n \t array('id' => '16411','state_id' => '1115','name' => 'Kallaste'),\n \t array('id' => '16412','state_id' => '1115','name' => 'Kalme'),\n \t array('id' => '16413','state_id' => '1115','name' => 'Kambja'),\n \t array('id' => '16414','state_id' => '1115','name' => 'Kandikula'),\n \t array('id' => '16415','state_id' => '1115','name' => 'Karevere'),\n \t array('id' => '16416','state_id' => '1115','name' => 'Karkna'),\n \t array('id' => '16417','state_id' => '1115','name' => 'Kasepaa'),\n \t array('id' => '16418','state_id' => '1115','name' => 'Kavastu'),\n \t array('id' => '16419','state_id' => '1115','name' => 'Kirepi'),\n \t array('id' => '16420','state_id' => '1115','name' => 'Kodukula'),\n \t array('id' => '16421','state_id' => '1115','name' => 'Kokora'),\n \t array('id' => '16422','state_id' => '1115','name' => 'Kolkja'),\n \t array('id' => '16423','state_id' => '1115','name' => 'Konguta'),\n \t array('id' => '16424','state_id' => '1115','name' => 'Koosa'),\n \t array('id' => '16425','state_id' => '1115','name' => 'Koruste'),\n \t array('id' => '16426','state_id' => '1115','name' => 'Korvekula'),\n \t array('id' => '16427','state_id' => '1115','name' => 'Kulitse'),\n \t array('id' => '16428','state_id' => '1115','name' => 'Kurekula'),\n \t array('id' => '16429','state_id' => '1115','name' => 'Kurista'),\n \t array('id' => '16430','state_id' => '1115','name' => 'Laaniste'),\n \t array('id' => '16431','state_id' => '1115','name' => 'Laeva'),\n \t array('id' => '16432','state_id' => '1115','name' => 'Lahte'),\n \t array('id' => '16433','state_id' => '1115','name' => 'Lalli'),\n \t array('id' => '16434','state_id' => '1115','name' => 'Lapetukme'),\n \t array('id' => '16435','state_id' => '1115','name' => 'Lemmatsi'),\n \t array('id' => '16436','state_id' => '1115','name' => 'Lohkva'),\n \t array('id' => '16437','state_id' => '1115','name' => 'Lossimae'),\n \t array('id' => '16438','state_id' => '1115','name' => 'Luke'),\n \t array('id' => '16439','state_id' => '1115','name' => 'Luunja'),\n \t array('id' => '16440','state_id' => '1115','name' => 'Maksa'),\n \t array('id' => '16441','state_id' => '1115','name' => 'Maramaa'),\n \t array('id' => '16442','state_id' => '1115','name' => 'Marja'),\n \t array('id' => '16443','state_id' => '1115','name' => 'Meeksi'),\n \t array('id' => '16444','state_id' => '1115','name' => 'Meeri'),\n \t array('id' => '16445','state_id' => '1115','name' => 'Mehikoorma'),\n \t array('id' => '16446','state_id' => '1115','name' => 'Melliste'),\n \t array('id' => '16447','state_id' => '1115','name' => 'Metsakivi'),\n \t array('id' => '16448','state_id' => '1115','name' => 'Metsalaane'),\n \t array('id' => '16449','state_id' => '1115','name' => 'Moisanurme'),\n \t array('id' => '16450','state_id' => '1115','name' => 'Nina'),\n \t array('id' => '16451','state_id' => '1115','name' => 'Nogiaru'),\n \t array('id' => '16452','state_id' => '1115','name' => 'Noo'),\n \t array('id' => '16453','state_id' => '1115','name' => 'Pilka'),\n \t array('id' => '16454','state_id' => '1115','name' => 'Poka'),\n \t array('id' => '16455','state_id' => '1115','name' => 'Pooritsa'),\n \t array('id' => '16456','state_id' => '1115','name' => 'Puhja'),\n \t array('id' => '16457','state_id' => '1115','name' => 'Rahinge'),\n \t array('id' => '16458','state_id' => '1115','name' => 'Raigaste'),\n \t array('id' => '16459','state_id' => '1115','name' => 'Ramsi'),\n \t array('id' => '16460','state_id' => '1115','name' => 'Rani'),\n \t array('id' => '16461','state_id' => '1115','name' => 'Rannu'),\n \t array('id' => '16462','state_id' => '1115','name' => 'Rebase'),\n \t array('id' => '16463','state_id' => '1115','name' => 'Reola'),\n \t array('id' => '16464','state_id' => '1115','name' => 'Rohu'),\n \t array('id' => '16465','state_id' => '1115','name' => 'Roiu'),\n \t array('id' => '16466','state_id' => '1115','name' => 'Rongu'),\n \t array('id' => '16467','state_id' => '1115','name' => 'Saadjarve'),\n \t array('id' => '16468','state_id' => '1115','name' => 'Sinikula'),\n \t array('id' => '16469','state_id' => '1115','name' => 'Sirgu'),\n \t array('id' => '16470','state_id' => '1115','name' => 'Soinaste'),\n \t array('id' => '16471','state_id' => '1115','name' => 'Sojamaa'),\n \t array('id' => '16472','state_id' => '1115','name' => 'Tahtvere'),\n \t array('id' => '16473','state_id' => '1115','name' => 'Tammiste'),\n \t array('id' => '16474','state_id' => '1115','name' => 'Tammistu'),\n \t array('id' => '16475','state_id' => '1115','name' => 'Tartu'),\n \t array('id' => '16476','state_id' => '1115','name' => 'Teedla'),\n \t array('id' => '16477','state_id' => '1115','name' => 'Tilga'),\n \t array('id' => '16478','state_id' => '1115','name' => 'Toravere'),\n \t array('id' => '16479','state_id' => '1115','name' => 'Torvandi'),\n \t array('id' => '16480','state_id' => '1115','name' => 'Tuki'),\n \t array('id' => '16481','state_id' => '1115','name' => 'Uderna'),\n \t array('id' => '16482','state_id' => '1115','name' => 'Uhti'),\n \t array('id' => '16483','state_id' => '1115','name' => 'Ulenurme'),\n \t array('id' => '16484','state_id' => '1115','name' => 'Ulila'),\n \t array('id' => '16485','state_id' => '1115','name' => 'Unikula'),\n \t array('id' => '16486','state_id' => '1115','name' => 'Vahi'),\n \t array('id' => '16487','state_id' => '1115','name' => 'Vaike-Rakke'),\n \t array('id' => '16488','state_id' => '1115','name' => 'Valguta'),\n \t array('id' => '16489','state_id' => '1115','name' => 'Vana-Kuuste'),\n \t array('id' => '16490','state_id' => '1115','name' => 'Vara'),\n \t array('id' => '16491','state_id' => '1115','name' => 'Varnja'),\n \t array('id' => '16492','state_id' => '1115','name' => 'Vasula'),\n \t array('id' => '16493','state_id' => '1115','name' => 'Vedu'),\n \t array('id' => '16494','state_id' => '1115','name' => 'Vesneri'),\n \t array('id' => '16495','state_id' => '1115','name' => 'Vissi'),\n \t array('id' => '16496','state_id' => '1115','name' => 'Voibla'),\n \t array('id' => '16497','state_id' => '1115','name' => 'Voika'),\n \t array('id' => '16498','state_id' => '1115','name' => 'Vonnu'),\n \t array('id' => '16499','state_id' => '1115','name' => 'Voopste'),\n \t array('id' => '16500','state_id' => '1115','name' => 'Vorbuse'),\n \t array('id' => '16501','state_id' => '1116','name' => 'Aakre'),\n \t array('id' => '16502','state_id' => '1116','name' => 'Ala'),\n \t array('id' => '16503','state_id' => '1116','name' => 'Hargla'),\n \t array('id' => '16504','state_id' => '1116','name' => 'Hellenurme'),\n \t array('id' => '16505','state_id' => '1116','name' => 'Helme'),\n \t array('id' => '16506','state_id' => '1116','name' => 'Hummuli'),\n \t array('id' => '16507','state_id' => '1116','name' => 'Jeti'),\n \t array('id' => '16508','state_id' => '1116','name' => 'Jogeveste'),\n \t array('id' => '16509','state_id' => '1116','name' => 'Kaagjarve'),\n \t array('id' => '16510','state_id' => '1116','name' => 'Kalme'),\n \t array('id' => '16511','state_id' => '1116','name' => 'Karjatnurme'),\n \t array('id' => '16512','state_id' => '1116','name' => 'Karula'),\n \t array('id' => '16513','state_id' => '1116','name' => 'Keeni'),\n \t array('id' => '16514','state_id' => '1116','name' => 'Koikkula'),\n \t array('id' => '16515','state_id' => '1116','name' => 'Laanemetsa'),\n \t array('id' => '16516','state_id' => '1116','name' => 'Laatre'),\n \t array('id' => '16517','state_id' => '1116','name' => 'Laukula'),\n \t array('id' => '16518','state_id' => '1116','name' => 'Leebiku'),\n \t array('id' => '16519','state_id' => '1116','name' => 'Linna'),\n \t array('id' => '16520','state_id' => '1116','name' => 'Lossikula'),\n \t array('id' => '16521','state_id' => '1116','name' => 'Lullemae'),\n \t array('id' => '16522','state_id' => '1116','name' => 'Moldre'),\n \t array('id' => '16523','state_id' => '1116','name' => 'Nouni'),\n \t array('id' => '16524','state_id' => '1116','name' => 'Nupli'),\n \t array('id' => '16525','state_id' => '1116','name' => 'Oru'),\n \t array('id' => '16526','state_id' => '1116','name' => 'Oruste'),\n \t array('id' => '16527','state_id' => '1116','name' => 'Otepaa'),\n \t array('id' => '16528','state_id' => '1116','name' => 'Paidla'),\n \t array('id' => '16529','state_id' => '1116','name' => 'Paju'),\n \t array('id' => '16530','state_id' => '1116','name' => 'Palupera'),\n \t array('id' => '16531','state_id' => '1116','name' => 'Patkula'),\n \t array('id' => '16532','state_id' => '1116','name' => 'Piiri'),\n \t array('id' => '16533','state_id' => '1116','name' => 'Pikasilla'),\n \t array('id' => '16534','state_id' => '1116','name' => 'Pilkuse'),\n \t array('id' => '16535','state_id' => '1116','name' => 'Puhajarve'),\n \t array('id' => '16536','state_id' => '1116','name' => 'Puka'),\n \t array('id' => '16537','state_id' => '1116','name' => 'Restu'),\n \t array('id' => '16538','state_id' => '1116','name' => 'Riidaja'),\n \t array('id' => '16539','state_id' => '1116','name' => 'Sangaste'),\n \t array('id' => '16540','state_id' => '1116','name' => 'Sihva'),\n \t array('id' => '16541','state_id' => '1116','name' => 'Sooru'),\n \t array('id' => '16542','state_id' => '1116','name' => 'Taagepera'),\n \t array('id' => '16543','state_id' => '1116','name' => 'Tagula'),\n \t array('id' => '16544','state_id' => '1116','name' => 'Taheva'),\n \t array('id' => '16545','state_id' => '1116','name' => 'Tiidu'),\n \t array('id' => '16546','state_id' => '1116','name' => 'Tolliste'),\n \t array('id' => '16547','state_id' => '1116','name' => 'Torva'),\n \t array('id' => '16548','state_id' => '1116','name' => 'Tsirguliina'),\n \t array('id' => '16549','state_id' => '1116','name' => 'Valga'),\n \t array('id' => '16550','state_id' => '1116','name' => 'Vana-Otepaa'),\n \t array('id' => '16551','state_id' => '1117','name' => 'Abja-Paluoja'),\n \t array('id' => '16552','state_id' => '1117','name' => 'Abja-Vanamoisa'),\n \t array('id' => '16553','state_id' => '1117','name' => 'Aidu'),\n \t array('id' => '16554','state_id' => '1117','name' => 'Angi'),\n \t array('id' => '16555','state_id' => '1117','name' => 'Anikatsi'),\n \t array('id' => '16556','state_id' => '1117','name' => 'Arikula'),\n \t array('id' => '16557','state_id' => '1117','name' => 'Halliste'),\n \t array('id' => '16558','state_id' => '1117','name' => 'Heimtali'),\n \t array('id' => '16559','state_id' => '1117','name' => 'Holstre'),\n \t array('id' => '16560','state_id' => '1117','name' => 'Intsu'),\n \t array('id' => '16561','state_id' => '1117','name' => 'Jamejala'),\n \t array('id' => '16562','state_id' => '1117','name' => 'Jaska'),\n \t array('id' => '16563','state_id' => '1117','name' => 'Kaavere'),\n \t array('id' => '16564','state_id' => '1117','name' => 'Kamara'),\n \t array('id' => '16565','state_id' => '1117','name' => 'Karksi'),\n \t array('id' => '16566','state_id' => '1117','name' => 'Karksi-Nuia'),\n \t array('id' => '16567','state_id' => '1117','name' => 'Karstna'),\n \t array('id' => '16568','state_id' => '1117','name' => 'Karula'),\n \t array('id' => '16569','state_id' => '1117','name' => 'Kobruvere'),\n \t array('id' => '16570','state_id' => '1117','name' => 'Koidama'),\n \t array('id' => '16571','state_id' => '1117','name' => 'Koksvere'),\n \t array('id' => '16572','state_id' => '1117','name' => 'Kolga-Jaani'),\n \t array('id' => '16573','state_id' => '1117','name' => 'Koo'),\n \t array('id' => '16574','state_id' => '1117','name' => 'Kopu'),\n \t array('id' => '16575','state_id' => '1117','name' => 'Kulla'),\n \t array('id' => '16576','state_id' => '1117','name' => 'Lalsi'),\n \t array('id' => '16577','state_id' => '1117','name' => 'Leie'),\n \t array('id' => '16578','state_id' => '1117','name' => 'Lilli'),\n \t array('id' => '16579','state_id' => '1117','name' => 'Lohavere'),\n \t array('id' => '16580','state_id' => '1117','name' => 'Loodi'),\n \t array('id' => '16581','state_id' => '1117','name' => 'Maeltkula'),\n \t array('id' => '16582','state_id' => '1117','name' => 'Matapera'),\n \t array('id' => '16583','state_id' => '1117','name' => 'Meleski'),\n \t array('id' => '16584','state_id' => '1117','name' => 'Metskula'),\n \t array('id' => '16585','state_id' => '1117','name' => 'Moisakula'),\n \t array('id' => '16586','state_id' => '1117','name' => 'Monnaste'),\n \t array('id' => '16587','state_id' => '1117','name' => 'Mustivere'),\n \t array('id' => '16588','state_id' => '1117','name' => 'Mustla'),\n \t array('id' => '16589','state_id' => '1117','name' => 'Navesti'),\n \t array('id' => '16590','state_id' => '1117','name' => 'Odiste'),\n \t array('id' => '16591','state_id' => '1117','name' => 'Oisu'),\n \t array('id' => '16592','state_id' => '1117','name' => 'Olustvere'),\n \t array('id' => '16593','state_id' => '1117','name' => 'Pahuvere'),\n \t array('id' => '16594','state_id' => '1117','name' => 'Paistu'),\n \t array('id' => '16595','state_id' => '1117','name' => 'Parakula'),\n \t array('id' => '16596','state_id' => '1117','name' => 'Pari'),\n \t array('id' => '16597','state_id' => '1117','name' => 'Parsti'),\n \t array('id' => '16598','state_id' => '1117','name' => 'Peetrimoisa'),\n \t array('id' => '16599','state_id' => '1117','name' => 'Pilistvere'),\n \t array('id' => '16600','state_id' => '1117','name' => 'Pinska'),\n \t array('id' => '16601','state_id' => '1117','name' => 'Polde'),\n \t array('id' => '16602','state_id' => '1117','name' => 'Polli'),\n \t array('id' => '16603','state_id' => '1117','name' => 'Puiatu'),\n \t array('id' => '16604','state_id' => '1117','name' => 'Ramsi'),\n \t array('id' => '16605','state_id' => '1117','name' => 'Reegoldi'),\n \t array('id' => '16606','state_id' => '1117','name' => 'Saarepeedi'),\n \t array('id' => '16607','state_id' => '1117','name' => 'Savikoti'),\n \t array('id' => '16608','state_id' => '1117','name' => 'Sinialliku'),\n \t array('id' => '16609','state_id' => '1117','name' => 'Soe'),\n \t array('id' => '16610','state_id' => '1117','name' => 'Soomevere'),\n \t array('id' => '16611','state_id' => '1117','name' => 'Sudiste'),\n \t array('id' => '16612','state_id' => '1117','name' => 'Suislepa'),\n \t array('id' => '16613','state_id' => '1117','name' => 'Sultsi'),\n \t array('id' => '16614','state_id' => '1117','name' => 'Supsi'),\n \t array('id' => '16615','state_id' => '1117','name' => 'Surgavere'),\n \t array('id' => '16616','state_id' => '1117','name' => 'Suure-Jaani'),\n \t array('id' => '16617','state_id' => '1117','name' => 'Taaksi'),\n \t array('id' => '16618','state_id' => '1117','name' => 'Tanassilma'),\n \t array('id' => '16619','state_id' => '1117','name' => 'Tinnikuru'),\n \t array('id' => '16620','state_id' => '1117','name' => 'Tohvri'),\n \t array('id' => '16621','state_id' => '1117','name' => 'Tuhalaane'),\n \t array('id' => '16622','state_id' => '1117','name' => 'Tusti'),\n \t array('id' => '16623','state_id' => '1117','name' => 'Ulde'),\n \t array('id' => '16624','state_id' => '1117','name' => 'Ulensi'),\n \t array('id' => '16625','state_id' => '1117','name' => 'Uusna'),\n \t array('id' => '16626','state_id' => '1117','name' => 'Valgita'),\n \t array('id' => '16627','state_id' => '1117','name' => 'Valma'),\n \t array('id' => '16628','state_id' => '1117','name' => 'Valuste'),\n \t array('id' => '16629','state_id' => '1117','name' => 'Vana-Kariste'),\n \t array('id' => '16630','state_id' => '1117','name' => 'Vana-Voidu'),\n \t array('id' => '16631','state_id' => '1117','name' => 'Vardi'),\n \t array('id' => '16632','state_id' => '1117','name' => 'Vardja'),\n \t array('id' => '16633','state_id' => '1117','name' => 'Vastemoisa'),\n \t array('id' => '16634','state_id' => '1117','name' => 'Veelikse'),\n \t array('id' => '16635','state_id' => '1117','name' => 'Verilaske'),\n \t array('id' => '16636','state_id' => '1117','name' => 'Veskimae'),\n \t array('id' => '16637','state_id' => '1117','name' => 'Viiratsi'),\n \t array('id' => '16638','state_id' => '1117','name' => 'Viljandi'),\n \t array('id' => '16639','state_id' => '1117','name' => 'Villa'),\n \t array('id' => '16640','state_id' => '1117','name' => 'Vohma'),\n \t array('id' => '16641','state_id' => '1117','name' => 'Voivaku'),\n \t array('id' => '16642','state_id' => '1117','name' => 'Vooru'),\n \t array('id' => '16643','state_id' => '1118','name' => 'Antsla'),\n \t array('id' => '16644','state_id' => '1118','name' => 'Haanja'),\n \t array('id' => '16645','state_id' => '1118','name' => 'Jarvere'),\n \t array('id' => '16646','state_id' => '1118','name' => 'Kaapa'),\n \t array('id' => '16647','state_id' => '1118','name' => 'Kirumpaa'),\n \t array('id' => '16648','state_id' => '1118','name' => 'Kobela'),\n \t array('id' => '16649','state_id' => '1118','name' => 'Kollino'),\n \t array('id' => '16650','state_id' => '1118','name' => 'Kose'),\n \t array('id' => '16651','state_id' => '1118','name' => 'Kraavi'),\n \t array('id' => '16652','state_id' => '1118','name' => 'Krabi'),\n \t array('id' => '16653','state_id' => '1118','name' => 'Kulaoru'),\n \t array('id' => '16654','state_id' => '1118','name' => 'Kuldre'),\n \t array('id' => '16655','state_id' => '1118','name' => 'Kuutsi'),\n \t array('id' => '16656','state_id' => '1118','name' => 'Lasva'),\n \t array('id' => '16657','state_id' => '1118','name' => 'Loosu'),\n \t array('id' => '16658','state_id' => '1118','name' => 'Lusti'),\n \t array('id' => '16659','state_id' => '1118','name' => 'Meegomae'),\n \t array('id' => '16660','state_id' => '1118','name' => 'Meremae'),\n \t array('id' => '16661','state_id' => '1118','name' => 'Misso'),\n \t array('id' => '16662','state_id' => '1118','name' => 'Moniste'),\n \t array('id' => '16663','state_id' => '1118','name' => 'Navi'),\n \t array('id' => '16664','state_id' => '1118','name' => 'Nursi'),\n \t array('id' => '16665','state_id' => '1118','name' => 'Obinitsa'),\n \t array('id' => '16666','state_id' => '1118','name' => 'Osula'),\n \t array('id' => '16667','state_id' => '1118','name' => 'Otsa'),\n \t array('id' => '16668','state_id' => '1118','name' => 'Parksepa'),\n \t array('id' => '16669','state_id' => '1118','name' => 'Puiga'),\n \t array('id' => '16670','state_id' => '1118','name' => 'Raiste'),\n \t array('id' => '16671','state_id' => '1118','name' => 'Rimmi'),\n \t array('id' => '16672','state_id' => '1118','name' => 'Rouge'),\n \t array('id' => '16673','state_id' => '1118','name' => 'Ruusmae'),\n \t array('id' => '16674','state_id' => '1118','name' => 'Saru'),\n \t array('id' => '16675','state_id' => '1118','name' => 'Somerpalu'),\n \t array('id' => '16676','state_id' => '1118','name' => 'Sulbi'),\n \t array('id' => '16677','state_id' => '1118','name' => 'Taberlaane'),\n \t array('id' => '16678','state_id' => '1118','name' => 'Tagakula'),\n \t array('id' => '16679','state_id' => '1118','name' => 'Tsolgo'),\n \t array('id' => '16680','state_id' => '1118','name' => 'Tsooru'),\n \t array('id' => '16681','state_id' => '1118','name' => 'Urvaste'),\n \t array('id' => '16682','state_id' => '1118','name' => 'Uue-Antsla'),\n \t array('id' => '16683','state_id' => '1118','name' => 'Vaabina'),\n \t array('id' => '16684','state_id' => '1118','name' => 'Vagula'),\n \t array('id' => '16685','state_id' => '1118','name' => 'Vaimela'),\n \t array('id' => '16686','state_id' => '1118','name' => 'Vana-Antsla'),\n \t array('id' => '16687','state_id' => '1118','name' => 'Vana-Roosa'),\n \t array('id' => '16688','state_id' => '1118','name' => 'Vana-Vastseliina'),\n \t array('id' => '16689','state_id' => '1118','name' => 'Varstu'),\n \t array('id' => '16690','state_id' => '1118','name' => 'Vastseliina'),\n \t array('id' => '16691','state_id' => '1118','name' => 'Verijarve'),\n \t array('id' => '16692','state_id' => '1118','name' => 'Viitina'),\n \t array('id' => '16693','state_id' => '1118','name' => 'Viitka'),\n \t array('id' => '16694','state_id' => '1118','name' => 'Visela'),\n \t array('id' => '16695','state_id' => '1118','name' => 'Voru'),\n \t array('id' => '16696','state_id' => '1118','name' => 'Vorumoisa'),\n \t array('id' => '16697','state_id' => '1120','name' => 'Asayita'),\n \t array('id' => '16698','state_id' => '1120','name' => 'Awash'),\n \t array('id' => '16699','state_id' => '1120','name' => 'Dubti'),\n \t array('id' => '16700','state_id' => '1120','name' => 'Gewane'),\n \t array('id' => '16701','state_id' => '1121','name' => 'Addi Ark\\'ay'),\n \t array('id' => '16702','state_id' => '1121','name' => 'Addis \\'Alem'),\n \t array('id' => '16703','state_id' => '1121','name' => 'Addis Zemen'),\n \t array('id' => '16704','state_id' => '1121','name' => 'Adet'),\n \t array('id' => '16705','state_id' => '1121','name' => 'Bahir Dar'),\n \t array('id' => '16706','state_id' => '1121','name' => 'Bati'),\n \t array('id' => '16707','state_id' => '1121','name' => 'Bichena'),\n \t array('id' => '16708','state_id' => '1121','name' => 'Bure'),\n \t array('id' => '16709','state_id' => '1121','name' => 'Chagni'),\n \t array('id' => '16710','state_id' => '1121','name' => 'Dabat'),\n \t array('id' => '16711','state_id' => '1121','name' => 'Dangla'),\n \t array('id' => '16712','state_id' => '1121','name' => 'Debark'),\n \t array('id' => '16713','state_id' => '1121','name' => 'Debre Birhan'),\n \t array('id' => '16714','state_id' => '1121','name' => 'Debre Mark\\'os'),\n \t array('id' => '16715','state_id' => '1121','name' => 'Debre Sina'),\n \t array('id' => '16716','state_id' => '1121','name' => 'Debre Tabor'),\n \t array('id' => '16717','state_id' => '1121','name' => 'Debre Werk'),\n \t array('id' => '16718','state_id' => '1121','name' => 'Dejen'),\n \t array('id' => '16719','state_id' => '1121','name' => 'Dese'),\n \t array('id' => '16720','state_id' => '1121','name' => 'Finote Selam'),\n \t array('id' => '16721','state_id' => '1121','name' => 'Gondar'),\n \t array('id' => '16722','state_id' => '1121','name' => 'K\\'obo'),\n \t array('id' => '16723','state_id' => '1121','name' => 'Kembolcha'),\n \t array('id' => '16724','state_id' => '1121','name' => 'Kemise'),\n \t array('id' => '16725','state_id' => '1121','name' => 'Lalibela'),\n \t array('id' => '16726','state_id' => '1121','name' => 'Mott\\'a'),\n \t array('id' => '16727','state_id' => '1121','name' => 'Nefas Mewcha'),\n \t array('id' => '16728','state_id' => '1121','name' => 'Sek\\'ot\\'a'),\n \t array('id' => '16729','state_id' => '1121','name' => 'Shewa Robit'),\n \t array('id' => '16730','state_id' => '1121','name' => 'Weldiya'),\n \t array('id' => '16731','state_id' => '1121','name' => 'Were Ilu'),\n \t array('id' => '16732','state_id' => '1121','name' => 'Werota'),\n \t array('id' => '16733','state_id' => '1122','name' => 'Asosa'),\n \t array('id' => '16734','state_id' => '1123','name' => 'Dire Dawa'),\n \t array('id' => '16735','state_id' => '1124','name' => 'Gambela'),\n \t array('id' => '16736','state_id' => '1125','name' => 'Harer'),\n \t array('id' => '16737','state_id' => '1126','name' => 'Jigjiga'),\n \t array('id' => '16738','state_id' => '1128','name' => '\\'Alem Maya'),\n \t array('id' => '16739','state_id' => '1128','name' => 'Abomsa'),\n \t array('id' => '16740','state_id' => '1128','name' => 'Agaro'),\n \t array('id' => '16741','state_id' => '1128','name' => 'Asasa'),\n \t array('id' => '16742','state_id' => '1128','name' => 'Asbe Teferi'),\n \t array('id' => '16743','state_id' => '1128','name' => 'Assela'),\n \t array('id' => '16744','state_id' => '1128','name' => 'Bako'),\n \t array('id' => '16745','state_id' => '1128','name' => 'Bedele'),\n \t array('id' => '16746','state_id' => '1128','name' => 'Bedesa'),\n \t array('id' => '16747','state_id' => '1128','name' => 'Burayu'),\n \t array('id' => '16748','state_id' => '1128','name' => 'Debre Zeyit'),\n \t array('id' => '16749','state_id' => '1128','name' => 'Deder'),\n \t array('id' => '16750','state_id' => '1128','name' => 'Dembi Dolo'),\n \t array('id' => '16751','state_id' => '1128','name' => 'Dodola'),\n \t array('id' => '16752','state_id' => '1128','name' => 'Fiche'),\n \t array('id' => '16753','state_id' => '1128','name' => 'Gebre Guracha'),\n \t array('id' => '16754','state_id' => '1128','name' => 'Gedo'),\n \t array('id' => '16755','state_id' => '1128','name' => 'Gelemso'),\n \t array('id' => '16756','state_id' => '1128','name' => 'Gimbi'),\n \t array('id' => '16757','state_id' => '1128','name' => 'Ginch\\'i'),\n \t array('id' => '16758','state_id' => '1128','name' => 'Ginir'),\n \t array('id' => '16759','state_id' => '1128','name' => 'Giyon'),\n \t array('id' => '16760','state_id' => '1128','name' => 'Goba'),\n \t array('id' => '16761','state_id' => '1128','name' => 'Gore'),\n \t array('id' => '16762','state_id' => '1128','name' => 'Guder'),\n \t array('id' => '16763','state_id' => '1128','name' => 'Hagere Hiywet'),\n \t array('id' => '16764','state_id' => '1128','name' => 'Hagere Maryam'),\n \t array('id' => '16765','state_id' => '1128','name' => 'Hirna'),\n \t array('id' => '16766','state_id' => '1128','name' => 'Holeta Genet'),\n \t array('id' => '16767','state_id' => '1128','name' => 'Huruta'),\n \t array('id' => '16768','state_id' => '1128','name' => 'Jimma'),\n \t array('id' => '16769','state_id' => '1128','name' => 'Kibre Mengist'),\n \t array('id' => '16770','state_id' => '1128','name' => 'Kofele'),\n \t array('id' => '16771','state_id' => '1128','name' => 'Mega'),\n \t array('id' => '16772','state_id' => '1128','name' => 'Mek\\'i'),\n \t array('id' => '16773','state_id' => '1128','name' => 'Mendi'),\n \t array('id' => '16774','state_id' => '1128','name' => 'Metehara'),\n \t array('id' => '16775','state_id' => '1128','name' => 'Metu'),\n \t array('id' => '16776','state_id' => '1128','name' => 'Mojo'),\n \t array('id' => '16777','state_id' => '1128','name' => 'Moyale'),\n \t array('id' => '16778','state_id' => '1128','name' => 'Nazret'),\n \t array('id' => '16779','state_id' => '1128','name' => 'Nedjo'),\n \t array('id' => '16780','state_id' => '1128','name' => 'Negele'),\n \t array('id' => '16781','state_id' => '1128','name' => 'Nek\\'emte'),\n \t array('id' => '16782','state_id' => '1128','name' => 'Robe'),\n \t array('id' => '16783','state_id' => '1128','name' => 'Sebeta'),\n \t array('id' => '16784','state_id' => '1128','name' => 'Sendafa'),\n \t array('id' => '16785','state_id' => '1128','name' => 'Shakiso'),\n \t array('id' => '16786','state_id' => '1128','name' => 'Shambu'),\n \t array('id' => '16787','state_id' => '1128','name' => 'Shashemenne'),\n \t array('id' => '16788','state_id' => '1128','name' => 'Sheh Hussen'),\n \t array('id' => '16789','state_id' => '1128','name' => 'Sire'),\n \t array('id' => '16790','state_id' => '1128','name' => 'Tulu Bolo'),\n \t array('id' => '16791','state_id' => '1128','name' => 'Welench\\'iti'),\n \t array('id' => '16792','state_id' => '1128','name' => 'Welk\\'it\\'e'),\n \t array('id' => '16793','state_id' => '1128','name' => 'Wonji'),\n \t array('id' => '16794','state_id' => '1128','name' => 'Yabelo'),\n \t array('id' => '16795','state_id' => '1128','name' => 'Ziway'),\n \t array('id' => '16796','state_id' => '1129','name' => 'Bircot'),\n \t array('id' => '16797','state_id' => '1129','name' => 'Degeh Bur'),\n \t array('id' => '16798','state_id' => '1129','name' => 'Dollo Odo'),\n \t array('id' => '16799','state_id' => '1129','name' => 'Imi'),\n \t array('id' => '16800','state_id' => '1129','name' => 'Jijiga'),\n \t array('id' => '16801','state_id' => '1129','name' => 'Werder'),\n \t array('id' => '16802','state_id' => '1130','name' => 'Alaba Kulito'),\n \t array('id' => '16803','state_id' => '1130','name' => 'Arba Minch'),\n \t array('id' => '16804','state_id' => '1130','name' => 'Areka'),\n \t array('id' => '16805','state_id' => '1130','name' => 'Awassa'),\n \t array('id' => '16806','state_id' => '1130','name' => 'Bako'),\n \t array('id' => '16807','state_id' => '1130','name' => 'Boditi'),\n \t array('id' => '16808','state_id' => '1130','name' => 'Bonga'),\n \t array('id' => '16809','state_id' => '1130','name' => 'Butajira'),\n \t array('id' => '16810','state_id' => '1130','name' => 'Ch\\'ench\\'a'),\n \t array('id' => '16811','state_id' => '1130','name' => 'Dilla'),\n \t array('id' => '16812','state_id' => '1130','name' => 'Gidole'),\n \t array('id' => '16813','state_id' => '1130','name' => 'Hossa\\'ina'),\n \t array('id' => '16814','state_id' => '1130','name' => 'Jinka'),\n \t array('id' => '16815','state_id' => '1130','name' => 'Leku'),\n \t array('id' => '16816','state_id' => '1130','name' => 'Mizan Teferi'),\n \t array('id' => '16817','state_id' => '1130','name' => 'Sawla'),\n \t array('id' => '16818','state_id' => '1130','name' => 'Soddo'),\n \t array('id' => '16819','state_id' => '1130','name' => 'Teppi'),\n \t array('id' => '16820','state_id' => '1130','name' => 'Wendo'),\n \t array('id' => '16821','state_id' => '1130','name' => 'Yirga Alem'),\n \t array('id' => '16822','state_id' => '1130','name' => 'Yirga Ch\\'efe'),\n \t array('id' => '16823','state_id' => '1131','name' => 'Abiy Adi'),\n \t array('id' => '16824','state_id' => '1131','name' => 'Addigrat'),\n \t array('id' => '16825','state_id' => '1131','name' => 'Adwa'),\n \t array('id' => '16826','state_id' => '1131','name' => 'Aksum'),\n \t array('id' => '16827','state_id' => '1131','name' => 'Alamat\\'a'),\n \t array('id' => '16828','state_id' => '1131','name' => 'Endasilasie'),\n \t array('id' => '16829','state_id' => '1131','name' => 'Hagere Selam'),\n \t array('id' => '16830','state_id' => '1131','name' => 'Himora'),\n \t array('id' => '16831','state_id' => '1131','name' => 'Korem'),\n \t array('id' => '16832','state_id' => '1131','name' => 'Maych\\'ew'),\n \t array('id' => '16833','state_id' => '1131','name' => 'Mek\\'ele'),\n \t array('id' => '16834','state_id' => '1131','name' => 'Mekele'),\n \t array('id' => '16835','state_id' => '1131','name' => 'Wik\\'ro'),\n \t array('id' => '16836','state_id' => '1137','name' => 'Hvannasund'),\n \t array('id' => '16837','state_id' => '1137','name' => 'Klaksvik'),\n \t array('id' => '16838','state_id' => '1140','name' => 'Husavik'),\n \t array('id' => '16839','state_id' => '1140','name' => 'Sands'),\n \t array('id' => '16840','state_id' => '1140','name' => 'Skalavik'),\n \t array('id' => '16841','state_id' => '1140','name' => 'Skopun'),\n \t array('id' => '16842','state_id' => '1140','name' => 'Skuvoy'),\n \t array('id' => '16843','state_id' => '1141','name' => 'Haldarsvik'),\n \t array('id' => '16844','state_id' => '1141','name' => 'Hests'),\n \t array('id' => '16845','state_id' => '1141','name' => 'Hosvik'),\n \t array('id' => '16846','state_id' => '1141','name' => 'Hvalvik'),\n \t array('id' => '16847','state_id' => '1141','name' => 'Kirkjubo'),\n \t array('id' => '16848','state_id' => '1141','name' => 'Kollafjar '),\n \t array('id' => '16849','state_id' => '1141','name' => 'Kvivik'),\n \t array('id' => '16850','state_id' => '1141','name' => 'Nolsoy'),\n \t array('id' => '16851','state_id' => '1141','name' => 'Saksun'),\n \t array('id' => '16852','state_id' => '1141','name' => 'Torshavn'),\n \t array('id' => '16853','state_id' => '1141','name' => 'Vestmanna'),\n \t array('id' => '16854','state_id' => '1144','name' => 'Torshavn'),\n \t array('id' => '16855','state_id' => '1145','name' => 'Biggjar'),\n \t array('id' => '16856','state_id' => '1145','name' => 'Midvags'),\n \t array('id' => '16857','state_id' => '1145','name' => 'Mykines'),\n \t array('id' => '16858','state_id' => '1145','name' => 'Sandavags'),\n \t array('id' => '16859','state_id' => '1145','name' => 'Sorvags'),\n \t array('id' => '16860','state_id' => '1146','name' => 'Deuba'),\n \t array('id' => '16861','state_id' => '1146','name' => 'Korovou'),\n \t array('id' => '16862','state_id' => '1146','name' => 'Lami'),\n \t array('id' => '16863','state_id' => '1146','name' => 'Namosi'),\n \t array('id' => '16864','state_id' => '1146','name' => 'Nausori'),\n \t array('id' => '16865','state_id' => '1146','name' => 'Navua'),\n \t array('id' => '16866','state_id' => '1146','name' => 'Suva'),\n \t array('id' => '16867','state_id' => '1147','name' => 'Levuka'),\n \t array('id' => '16868','state_id' => '1147','name' => 'Malhaha'),\n \t array('id' => '16869','state_id' => '1147','name' => 'Tubou'),\n \t array('id' => '16870','state_id' => '1147','name' => 'Vunisea'),\n \t array('id' => '16871','state_id' => '1148','name' => 'Korokade'),\n \t array('id' => '16872','state_id' => '1148','name' => 'Labasa'),\n \t array('id' => '16873','state_id' => '1148','name' => 'Savusavu'),\n \t array('id' => '16874','state_id' => '1150','name' => 'Ba'),\n \t array('id' => '16875','state_id' => '1150','name' => 'Lautoka'),\n \t array('id' => '16876','state_id' => '1150','name' => 'Nadi'),\n \t array('id' => '16877','state_id' => '1150','name' => 'Rakiraki'),\n \t array('id' => '16878','state_id' => '1150','name' => 'Sigatoka'),\n \t array('id' => '16879','state_id' => '1150','name' => 'Tavua'),\n \t array('id' => '16880','state_id' => '1150','name' => 'Vatukoula'),\n \t array('id' => '16881','state_id' => '1151','name' => 'Maarianhamina'),\n \t array('id' => '16882','state_id' => '1152','name' => 'Imatra'),\n \t array('id' => '16883','state_id' => '1152','name' => 'Joutseno'),\n \t array('id' => '16884','state_id' => '1152','name' => 'Lappeenranta'),\n \t array('id' => '16885','state_id' => '1153','name' => 'Hyllykallio'),\n \t array('id' => '16886','state_id' => '1153','name' => 'Ilmajoki'),\n \t array('id' => '16887','state_id' => '1153','name' => 'Kauhajoki'),\n \t array('id' => '16888','state_id' => '1153','name' => 'Kurikka'),\n \t array('id' => '16889','state_id' => '1153','name' => 'Lapua'),\n \t array('id' => '16890','state_id' => '1153','name' => 'Seinajoki'),\n \t array('id' => '16891','state_id' => '1154','name' => 'Mikkeli'),\n \t array('id' => '16892','state_id' => '1154','name' => 'Savonlinna'),\n \t array('id' => '16893','state_id' => '1157','name' => 'Loviisa'),\n \t array('id' => '16894','state_id' => '1157','name' => 'Orimattila'),\n \t array('id' => '16895','state_id' => '1157','name' => 'Porvoo'),\n \t array('id' => '16896','state_id' => '1158','name' => 'Kajaani'),\n \t array('id' => '16897','state_id' => '1159','name' => 'Forssa'),\n \t array('id' => '16898','state_id' => '1159','name' => 'Hameenlinna'),\n \t array('id' => '16899','state_id' => '1159','name' => 'Janakkala'),\n \t array('id' => '16900','state_id' => '1159','name' => 'Riihimaki'),\n \t array('id' => '16901','state_id' => '1160','name' => 'Kokkola'),\n \t array('id' => '16902','state_id' => '1161','name' => 'Aanekoski'),\n \t array('id' => '16903','state_id' => '1161','name' => 'Jamsa'),\n \t array('id' => '16904','state_id' => '1161','name' => 'Jyvaskyla'),\n \t array('id' => '16905','state_id' => '1161','name' => 'Keuruu'),\n \t array('id' => '16906','state_id' => '1161','name' => 'Laukaa'),\n \t array('id' => '16907','state_id' => '1161','name' => 'Lieto'),\n \t array('id' => '16908','state_id' => '1162','name' => 'Anjalankoski'),\n \t array('id' => '16909','state_id' => '1162','name' => 'Hamina'),\n \t array('id' => '16910','state_id' => '1162','name' => 'Kotka'),\n \t array('id' => '16911','state_id' => '1162','name' => 'Kouvola'),\n \t array('id' => '16912','state_id' => '1162','name' => 'Kuusankoski'),\n \t array('id' => '16913','state_id' => '1162','name' => 'Valkeala'),\n \t array('id' => '16914','state_id' => '1162','name' => 'Vehkalahti'),\n \t array('id' => '16915','state_id' => '1164','name' => 'Kemi'),\n \t array('id' => '16916','state_id' => '1164','name' => 'Kemijarvi'),\n \t array('id' => '16917','state_id' => '1164','name' => 'Rovaniemi'),\n \t array('id' => '16918','state_id' => '1164','name' => 'Sonka'),\n \t array('id' => '16919','state_id' => '1164','name' => 'Tornio'),\n \t array('id' => '16920','state_id' => '1166','name' => 'Jakobstad'),\n \t array('id' => '16921','state_id' => '1166','name' => 'Oulunsalo'),\n \t array('id' => '16922','state_id' => '1168','name' => 'Heinola'),\n \t array('id' => '16923','state_id' => '1168','name' => 'Hollola'),\n \t array('id' => '16924','state_id' => '1168','name' => 'Lahti'),\n \t array('id' => '16925','state_id' => '1168','name' => 'Nastola'),\n \t array('id' => '16926','state_id' => '1169','name' => 'Kangasala'),\n \t array('id' => '16927','state_id' => '1169','name' => 'Lempaala'),\n \t array('id' => '16928','state_id' => '1169','name' => 'Nokia'),\n \t array('id' => '16929','state_id' => '1169','name' => 'Pirkkala'),\n \t array('id' => '16930','state_id' => '1169','name' => 'Sastamala'),\n \t array('id' => '16931','state_id' => '1169','name' => 'Tampere'),\n \t array('id' => '16932','state_id' => '1169','name' => 'Valkeakoski'),\n \t array('id' => '16933','state_id' => '1169','name' => 'Ylojarvi'),\n \t array('id' => '16934','state_id' => '1170','name' => 'Kristiinankaupunki'),\n \t array('id' => '16935','state_id' => '1170','name' => 'Mustasaari'),\n \t array('id' => '16936','state_id' => '1170','name' => 'Pietarsaari'),\n \t array('id' => '16937','state_id' => '1170','name' => 'Uusikarlepyy'),\n \t array('id' => '16938','state_id' => '1170','name' => 'Vaasa'),\n \t array('id' => '16939','state_id' => '1171','name' => 'Joensuu'),\n \t array('id' => '16940','state_id' => '1171','name' => 'Lieksa'),\n \t array('id' => '16941','state_id' => '1172','name' => 'Haukipudas'),\n \t array('id' => '16942','state_id' => '1172','name' => 'Kempele'),\n \t array('id' => '16943','state_id' => '1172','name' => 'Kuusamo'),\n \t array('id' => '16944','state_id' => '1172','name' => 'Muhos'),\n \t array('id' => '16945','state_id' => '1172','name' => 'Nivala'),\n \t array('id' => '16946','state_id' => '1172','name' => 'Oulainen'),\n \t array('id' => '16947','state_id' => '1172','name' => 'Oulu'),\n \t array('id' => '16948','state_id' => '1172','name' => 'Raahe'),\n \t array('id' => '16949','state_id' => '1172','name' => 'Ylivieska'),\n \t array('id' => '16950','state_id' => '1173','name' => 'Iisalmi'),\n \t array('id' => '16951','state_id' => '1173','name' => 'Kuopio'),\n \t array('id' => '16952','state_id' => '1173','name' => 'Sillinjarvi'),\n \t array('id' => '16953','state_id' => '1173','name' => 'Varkaus'),\n \t array('id' => '16954','state_id' => '1174','name' => 'Saarijarvi'),\n \t array('id' => '16955','state_id' => '1175','name' => 'Eura'),\n \t array('id' => '16956','state_id' => '1175','name' => 'Eurajoki'),\n \t array('id' => '16957','state_id' => '1175','name' => 'Harjavalta'),\n \t array('id' => '16958','state_id' => '1175','name' => 'Huittinen'),\n \t array('id' => '16959','state_id' => '1175','name' => 'Kankaanpaa'),\n \t array('id' => '16960','state_id' => '1175','name' => 'Kokemaki'),\n \t array('id' => '16961','state_id' => '1175','name' => 'Lappi'),\n \t array('id' => '16962','state_id' => '1175','name' => 'Nakkila'),\n \t array('id' => '16963','state_id' => '1175','name' => 'Noormarkku'),\n \t array('id' => '16964','state_id' => '1175','name' => 'Pori'),\n \t array('id' => '16965','state_id' => '1175','name' => 'Rauma'),\n \t array('id' => '16966','state_id' => '1175','name' => 'Sakyla'),\n \t array('id' => '16967','state_id' => '1175','name' => 'Ulvila'),\n \t array('id' => '16968','state_id' => '1175','name' => 'Vammala'),\n \t array('id' => '16969','state_id' => '1179','name' => 'Espoo'),\n \t array('id' => '16970','state_id' => '1179','name' => 'Hanko'),\n \t array('id' => '16971','state_id' => '1179','name' => 'Helsinki'),\n \t array('id' => '16972','state_id' => '1179','name' => 'Hyvinkaa'),\n \t array('id' => '16973','state_id' => '1179','name' => 'Jarvenpaa'),\n \t array('id' => '16974','state_id' => '1179','name' => 'Kauniainen'),\n \t array('id' => '16975','state_id' => '1179','name' => 'Kerava'),\n \t array('id' => '16976','state_id' => '1179','name' => 'Kirkkonummi'),\n \t array('id' => '16977','state_id' => '1179','name' => 'Lohja'),\n \t array('id' => '16978','state_id' => '1179','name' => 'Mantsala'),\n \t array('id' => '16979','state_id' => '1179','name' => 'Nurmijarvi'),\n \t array('id' => '16980','state_id' => '1179','name' => 'Sipoo'),\n \t array('id' => '16981','state_id' => '1179','name' => 'Tammisaari'),\n \t array('id' => '16982','state_id' => '1179','name' => 'Tuusula'),\n \t array('id' => '16983','state_id' => '1179','name' => 'Vantaa'),\n \t array('id' => '16984','state_id' => '1179','name' => 'Vihti'),\n \t array('id' => '16985','state_id' => '1180','name' => 'Kaarina'),\n \t array('id' => '16986','state_id' => '1180','name' => 'Naantali'),\n \t array('id' => '16987','state_id' => '1180','name' => 'Parainen'),\n \t array('id' => '16988','state_id' => '1180','name' => 'Raisio'),\n \t array('id' => '16989','state_id' => '1180','name' => 'Salo'),\n \t array('id' => '16990','state_id' => '1180','name' => 'Turku'),\n \t array('id' => '16991','state_id' => '1180','name' => 'Uusikaupunki'),\n \t array('id' => '16992','state_id' => '1181','name' => 'Amberieu-en-Bugey'),\n \t array('id' => '16993','state_id' => '1181','name' => 'Bellegarde-sur-Valserine'),\n \t array('id' => '16994','state_id' => '1181','name' => 'Bourg-en-Bresse'),\n \t array('id' => '16995','state_id' => '1181','name' => 'Oyonnax'),\n \t array('id' => '16996','state_id' => '1182','name' => 'Chateau-Thierry'),\n \t array('id' => '16997','state_id' => '1182','name' => 'Chauny'),\n \t array('id' => '16998','state_id' => '1182','name' => 'Hirson'),\n \t array('id' => '16999','state_id' => '1182','name' => 'Laon'),\n \t array('id' => '17000','state_id' => '1182','name' => 'Saint-Quentin'),\n \t array('id' => '17001','state_id' => '1182','name' => 'Soissons'),\n \t array('id' => '17002','state_id' => '1182','name' => 'Strassbourg'),\n \t array('id' => '17003','state_id' => '1182','name' => 'Tergnier'),\n \t array('id' => '17004','state_id' => '1184','name' => 'Cusset'),\n \t array('id' => '17005','state_id' => '1184','name' => 'Montlucon'),\n \t array('id' => '17006','state_id' => '1184','name' => 'Moulins'),\n \t array('id' => '17007','state_id' => '1184','name' => 'Vichy'),\n \t array('id' => '17008','state_id' => '1184','name' => 'Yzeure'),\n \t array('id' => '17009','state_id' => '1186','name' => 'Antibes'),\n \t array('id' => '17010','state_id' => '1186','name' => 'Beausoleil'),\n \t array('id' => '17011','state_id' => '1186','name' => 'Cagnes-sur-Mer'),\n \t array('id' => '17012','state_id' => '1186','name' => 'Cannes'),\n \t array('id' => '17013','state_id' => '1186','name' => 'Carros'),\n \t array('id' => '17014','state_id' => '1186','name' => 'Grasse'),\n \t array('id' => '17015','state_id' => '1186','name' => 'La Trinite'),\n \t array('id' => '17016','state_id' => '1186','name' => 'Le Cannet'),\n \t array('id' => '17017','state_id' => '1186','name' => 'Mandelieu-la-Napoule'),\n \t array('id' => '17018','state_id' => '1186','name' => 'Menton'),\n \t array('id' => '17019','state_id' => '1186','name' => 'Mougins'),\n \t array('id' => '17020','state_id' => '1186','name' => 'Nice'),\n \t array('id' => '17021','state_id' => '1186','name' => 'Roquebrune-Cap-Martin'),\n \t array('id' => '17022','state_id' => '1186','name' => 'Saint-Laurent-du-Var'),\n \t array('id' => '17023','state_id' => '1186','name' => 'Valbonne'),\n \t array('id' => '17024','state_id' => '1186','name' => 'Vallauris'),\n \t array('id' => '17025','state_id' => '1186','name' => 'Vence'),\n \t array('id' => '17026','state_id' => '1186','name' => 'Villeneuve-Loubet'),\n \t array('id' => '17027','state_id' => '1187','name' => 'Digne-les-Bains'),\n \t array('id' => '17028','state_id' => '1187','name' => 'Manosque'),\n \t array('id' => '17029','state_id' => '1188','name' => 'Adainville'),\n \t array('id' => '17030','state_id' => '1188','name' => 'Alby-sur-Cheran'),\n \t array('id' => '17031','state_id' => '1188','name' => 'Aubervilliers'),\n \t array('id' => '17032','state_id' => '1188','name' => 'Auterive'),\n \t array('id' => '17033','state_id' => '1188','name' => 'Baillet'),\n \t array('id' => '17034','state_id' => '1188','name' => 'Beaune'),\n \t array('id' => '17035','state_id' => '1188','name' => 'Beauzelle'),\n \t array('id' => '17036','state_id' => '1188','name' => 'Bonnet De Mure'),\n \t array('id' => '17037','state_id' => '1188','name' => 'Bormes-les-Mimosas'),\n \t array('id' => '17038','state_id' => '1188','name' => 'Brindas'),\n \t array('id' => '17039','state_id' => '1188','name' => 'Burlats'),\n \t array('id' => '17040','state_id' => '1188','name' => 'Buzancais'),\n \t array('id' => '17041','state_id' => '1188','name' => 'Candillargues'),\n \t array('id' => '17042','state_id' => '1188','name' => 'Carry-le-Rouet'),\n \t array('id' => '17043','state_id' => '1188','name' => 'Cassis'),\n \t array('id' => '17044','state_id' => '1188','name' => 'Cessenon-Sur-Orb'),\n \t array('id' => '17045','state_id' => '1188','name' => 'Chanac'),\n \t array('id' => '17046','state_id' => '1188','name' => 'Chevigny'),\n \t array('id' => '17047','state_id' => '1188','name' => 'Cogolin'),\n \t array('id' => '17048','state_id' => '1188','name' => 'Collioure'),\n \t array('id' => '17049','state_id' => '1188','name' => 'Cremieu'),\n \t array('id' => '17050','state_id' => '1188','name' => 'Drulingen'),\n \t array('id' => '17051','state_id' => '1188','name' => 'Ecouen'),\n \t array('id' => '17052','state_id' => '1188','name' => 'Eschau'),\n \t array('id' => '17053','state_id' => '1188','name' => 'Feignies'),\n \t array('id' => '17054','state_id' => '1188','name' => 'Ferus'),\n \t array('id' => '17055','state_id' => '1188','name' => 'Fourqueux'),\n \t array('id' => '17056','state_id' => '1188','name' => 'Franqueville'),\n \t array('id' => '17057','state_id' => '1188','name' => 'Gignac'),\n \t array('id' => '17058','state_id' => '1188','name' => 'Gravigny'),\n \t array('id' => '17059','state_id' => '1188','name' => 'Hangenbieten'),\n \t array('id' => '17060','state_id' => '1188','name' => 'Hunspach'),\n \t array('id' => '17061','state_id' => '1188','name' => 'Kilstett'),\n \t array('id' => '17062','state_id' => '1188','name' => 'La Chevroliere'),\n \t array('id' => '17063','state_id' => '1188','name' => 'La-Fare-Les-Oliviers'),\n \t array('id' => '17064','state_id' => '1188','name' => 'Lanvellec'),\n \t array('id' => '17065','state_id' => '1188','name' => 'Le Faget'),\n \t array('id' => '17066','state_id' => '1188','name' => 'Lesigny'),\n \t array('id' => '17067','state_id' => '1188','name' => 'Lesquin'),\n \t array('id' => '17068','state_id' => '1188','name' => 'Limonest'),\n \t array('id' => '17069','state_id' => '1188','name' => 'Messein'),\n \t array('id' => '17070','state_id' => '1188','name' => 'Morgat'),\n \t array('id' => '17071','state_id' => '1188','name' => 'Mundolsheim'),\n \t array('id' => '17072','state_id' => '1188','name' => 'Nantiat'),\n \t array('id' => '17073','state_id' => '1188','name' => 'Niederbronn-les-Bain'),\n \t array('id' => '17074','state_id' => '1188','name' => 'Nimes'),\n \t array('id' => '17075','state_id' => '1188','name' => 'Opoul'),\n \t array('id' => '17076','state_id' => '1188','name' => 'Pance'),\n \t array('id' => '17077','state_id' => '1188','name' => 'Peronne'),\n \t array('id' => '17078','state_id' => '1188','name' => 'Ploneour Lanvern'),\n \t array('id' => '17079','state_id' => '1188','name' => 'Realmont'),\n \t array('id' => '17080','state_id' => '1188','name' => 'Reichstett'),\n \t array('id' => '17081','state_id' => '1188','name' => 'Saint Aubin'),\n \t array('id' => '17082','state_id' => '1188','name' => 'Saint Christophe'),\n \t array('id' => '17083','state_id' => '1188','name' => 'Saint Martin d’Here'),\n \t array('id' => '17084','state_id' => '1188','name' => 'Saint-Berthevin'),\n \t array('id' => '17085','state_id' => '1188','name' => 'Saint-Cergues'),\n \t array('id' => '17086','state_id' => '1188','name' => 'Sancerre'),\n \t array('id' => '17087','state_id' => '1188','name' => 'Sarzeau'),\n \t array('id' => '17088','state_id' => '1188','name' => 'Seltz'),\n \t array('id' => '17089','state_id' => '1188','name' => 'Seyssins'),\n \t array('id' => '17090','state_id' => '1188','name' => 'Souffelweyersheim'),\n \t array('id' => '17091','state_id' => '1188','name' => 'Vireux-Molhain'),\n \t array('id' => '17092','state_id' => '1188','name' => 'Voves'),\n \t array('id' => '17093','state_id' => '1188','name' => 'Wambrechies'),\n \t array('id' => '17094','state_id' => '1188','name' => 'Wervocq Sud'),\n \t array('id' => '17095','state_id' => '1189','name' => 'Abzac'),\n \t array('id' => '17096','state_id' => '1189','name' => 'Bidart'),\n \t array('id' => '17097','state_id' => '1189','name' => 'Biganos'),\n \t array('id' => '17098','state_id' => '1189','name' => 'Buzet-sur-Baise'),\n \t array('id' => '17099','state_id' => '1189','name' => 'Coursac'),\n \t array('id' => '17100','state_id' => '1189','name' => 'Hasparren'),\n \t array('id' => '17101','state_id' => '1189','name' => 'Landiras'),\n \t array('id' => '17102','state_id' => '1189','name' => 'Le Haillan'),\n \t array('id' => '17103','state_id' => '1189','name' => 'Ledat'),\n \t array('id' => '17104','state_id' => '1189','name' => 'Martillac'),\n \t array('id' => '17105','state_id' => '1189','name' => 'Puyoo'),\n \t array('id' => '17106','state_id' => '1189','name' => 'Saint-Jean-dIllac'),\n \t array('id' => '17107','state_id' => '1189','name' => 'Seignosse'),\n \t array('id' => '17108','state_id' => '1189','name' => 'Tresses'),\n \t array('id' => '17109','state_id' => '1190','name' => 'Annonay'),\n \t array('id' => '17110','state_id' => '1190','name' => 'Aubenas'),\n \t array('id' => '17111','state_id' => '1190','name' => 'Guilherand-Granges'),\n \t array('id' => '17112','state_id' => '1190','name' => 'Privas'),\n \t array('id' => '17113','state_id' => '1190','name' => 'Tournon-sur-Rhone'),\n \t array('id' => '17114','state_id' => '1191','name' => 'Charleville-Mezieres'),\n \t array('id' => '17115','state_id' => '1191','name' => 'Les Hautes-Rivieres'),\n \t array('id' => '17116','state_id' => '1191','name' => 'Revin'),\n \t array('id' => '17117','state_id' => '1191','name' => 'Sedan'),\n \t array('id' => '17118','state_id' => '1192','name' => 'Foix'),\n \t array('id' => '17119','state_id' => '1192','name' => 'Pamier'),\n \t array('id' => '17120','state_id' => '1193','name' => 'Bar-sur-Seine'),\n \t array('id' => '17121','state_id' => '1193','name' => 'Romilly-sur-Seine'),\n \t array('id' => '17122','state_id' => '1193','name' => 'Saint-Andre-les-Vergers'),\n \t array('id' => '17123','state_id' => '1193','name' => 'Sainte-Savine'),\n \t array('id' => '17124','state_id' => '1193','name' => 'Troyes'),\n \t array('id' => '17125','state_id' => '1194','name' => 'Carcassonne'),\n \t array('id' => '17126','state_id' => '1194','name' => 'Castelnaudary'),\n \t array('id' => '17127','state_id' => '1194','name' => 'Limoux'),\n \t array('id' => '17128','state_id' => '1194','name' => 'Narbonne'),\n \t array('id' => '17129','state_id' => '1195','name' => 'Ambert'),\n \t array('id' => '17130','state_id' => '1195','name' => 'Creuzier-le-Vieux'),\n \t array('id' => '17131','state_id' => '1195','name' => 'Ferrieres'),\n \t array('id' => '17132','state_id' => '1195','name' => 'Peschadoires'),\n \t array('id' => '17133','state_id' => '1195','name' => 'Riotord'),\n \t array('id' => '17134','state_id' => '1195','name' => 'Saint-Pal-de-Chalencon'),\n \t array('id' => '17135','state_id' => '1195','name' => 'Saint-Romain-Lachalm'),\n \t array('id' => '17136','state_id' => '1195','name' => 'Saint-Vidal'),\n \t array('id' => '17137','state_id' => '1195','name' => 'Sainte-Sigolene'),\n \t array('id' => '17138','state_id' => '1196','name' => 'Millau'),\n \t array('id' => '17139','state_id' => '1196','name' => 'Onet-le-Chataeu'),\n \t array('id' => '17140','state_id' => '1196','name' => 'Rodez'),\n \t array('id' => '17141','state_id' => '1196','name' => 'Villefranche-de-Rouergue'),\n \t array('id' => '17142','state_id' => '1197','name' => 'Bischheim'),\n \t array('id' => '17143','state_id' => '1197','name' => 'Bischwiller'),\n \t array('id' => '17144','state_id' => '1197','name' => 'Haguenau'),\n \t array('id' => '17145','state_id' => '1197','name' => 'Hoenheim'),\n \t array('id' => '17146','state_id' => '1197','name' => 'Illkirch-Graffenstaden'),\n \t array('id' => '17147','state_id' => '1197','name' => 'Lingolsheim'),\n \t array('id' => '17148','state_id' => '1197','name' => 'Obernai'),\n \t array('id' => '17149','state_id' => '1197','name' => 'Ostwald'),\n \t array('id' => '17150','state_id' => '1197','name' => 'Saverne'),\n \t array('id' => '17151','state_id' => '1197','name' => 'Schiltigheim'),\n \t array('id' => '17152','state_id' => '1197','name' => 'Selestat'),\n \t array('id' => '17153','state_id' => '1197','name' => 'Strasbourg'),\n \t array('id' => '17154','state_id' => '1198','name' => 'Deauville'),\n \t array('id' => '17155','state_id' => '1199','name' => 'Aix-en-Provence'),\n \t array('id' => '17156','state_id' => '1199','name' => 'Allauch'),\n \t array('id' => '17157','state_id' => '1199','name' => 'Arles'),\n \t array('id' => '17158','state_id' => '1199','name' => 'Aubagne'),\n \t array('id' => '17159','state_id' => '1199','name' => 'Berre-l\\'Etang'),\n \t array('id' => '17160','state_id' => '1199','name' => 'Bouc-Bel-Air'),\n \t array('id' => '17161','state_id' => '1199','name' => 'Chateauneuf-les-Martigues'),\n \t array('id' => '17162','state_id' => '1199','name' => 'Chateaurenard'),\n \t array('id' => '17163','state_id' => '1199','name' => 'Fos-sur-Mer'),\n \t array('id' => '17164','state_id' => '1199','name' => 'Gardanne'),\n \t array('id' => '17165','state_id' => '1199','name' => 'Istres'),\n \t array('id' => '17166','state_id' => '1199','name' => 'La Ciotat'),\n \t array('id' => '17167','state_id' => '1199','name' => 'Les Pennes-Mirabeau'),\n \t array('id' => '17168','state_id' => '1199','name' => 'Maillane'),\n \t array('id' => '17169','state_id' => '1199','name' => 'Marignane'),\n \t array('id' => '17170','state_id' => '1199','name' => 'Marseille'),\n \t array('id' => '17171','state_id' => '1199','name' => 'Martigues'),\n \t array('id' => '17172','state_id' => '1199','name' => 'Miramas'),\n \t array('id' => '17173','state_id' => '1199','name' => 'Plan-de-Cuques'),\n \t array('id' => '17174','state_id' => '1199','name' => 'Port-de-Bouc'),\n \t array('id' => '17175','state_id' => '1199','name' => 'Rognac'),\n \t array('id' => '17176','state_id' => '1199','name' => 'Saint-Martin-de-Crau'),\n \t array('id' => '17177','state_id' => '1199','name' => 'Saint-Remy-de-Provence'),\n \t array('id' => '17178','state_id' => '1199','name' => 'Salon-de-Provence'),\n \t array('id' => '17179','state_id' => '1199','name' => 'Septemes-les-Vallons'),\n \t array('id' => '17180','state_id' => '1199','name' => 'Tarascon'),\n \t array('id' => '17181','state_id' => '1199','name' => 'Vitrolles'),\n \t array('id' => '17182','state_id' => '1200','name' => 'Migennes'),\n \t array('id' => '17183','state_id' => '1201','name' => 'Javene'),\n \t array('id' => '17184','state_id' => '1201','name' => 'Plouha'),\n \t array('id' => '17185','state_id' => '1202','name' => 'Brehan'),\n \t array('id' => '17186','state_id' => '1202','name' => 'Broons'),\n \t array('id' => '17187','state_id' => '1202','name' => 'Guipry'),\n \t array('id' => '17188','state_id' => '1202','name' => 'Miniac-Morvan'),\n \t array('id' => '17189','state_id' => '1202','name' => 'Ploudaniel'),\n \t array('id' => '17190','state_id' => '1202','name' => 'Vern-sur-Seiche'),\n \t array('id' => '17191','state_id' => '1203','name' => 'Aillant-sur-Tholon'),\n \t array('id' => '17192','state_id' => '1204','name' => 'Bayeux'),\n \t array('id' => '17193','state_id' => '1204','name' => 'Caen'),\n \t array('id' => '17194','state_id' => '1204','name' => 'Herouville-Saint-Clair'),\n \t array('id' => '17195','state_id' => '1204','name' => 'Lisieux'),\n \t array('id' => '17196','state_id' => '1204','name' => 'Mondeville'),\n \t array('id' => '17197','state_id' => '1204','name' => 'Vire'),\n \t array('id' => '17198','state_id' => '1205','name' => 'Aurillac'),\n \t array('id' => '17199','state_id' => '1206','name' => 'Brumath'),\n \t array('id' => '17200','state_id' => '1206','name' => 'Courtaboeuf'),\n \t array('id' => '17201','state_id' => '1206','name' => 'Iregny'),\n \t array('id' => '17202','state_id' => '1206','name' => 'cedex'),\n \t array('id' => '17203','state_id' => '1207','name' => 'Azay-le-Rideau'),\n \t array('id' => '17204','state_id' => '1207','name' => 'Chevillon-sur-Huillard'),\n \t array('id' => '17205','state_id' => '1207','name' => 'Cloyes-sur-le-Loir'),\n \t array('id' => '17206','state_id' => '1207','name' => 'Gellainville'),\n \t array('id' => '17207','state_id' => '1207','name' => 'La Chaussse-Saint-Victor'),\n \t array('id' => '17208','state_id' => '1207','name' => 'La Ville-aux-Clercs'),\n \t array('id' => '17209','state_id' => '1207','name' => 'Ladon'),\n \t array('id' => '17210','state_id' => '1207','name' => 'Le Chatelet'),\n \t array('id' => '17211','state_id' => '1208','name' => 'Angouleme'),\n \t array('id' => '17212','state_id' => '1208','name' => 'Cognac'),\n \t array('id' => '17213','state_id' => '1208','name' => 'Lencloitre'),\n \t array('id' => '17214','state_id' => '1208','name' => 'Soyaux'),\n \t array('id' => '17215','state_id' => '1209','name' => 'La Rochelle'),\n \t array('id' => '17216','state_id' => '1209','name' => 'Rochefort'),\n \t array('id' => '17217','state_id' => '1209','name' => 'Royan'),\n \t array('id' => '17218','state_id' => '1209','name' => 'Saintes'),\n \t array('id' => '17219','state_id' => '1210','name' => 'Bourges'),\n \t array('id' => '17220','state_id' => '1210','name' => 'Saint-Amand-Montrond'),\n \t array('id' => '17221','state_id' => '1210','name' => 'Saint-Doulchard'),\n \t array('id' => '17222','state_id' => '1210','name' => 'Vierzon'),\n \t array('id' => '17223','state_id' => '1211','name' => 'Brive-la-Gaillarde'),\n \t array('id' => '17224','state_id' => '1211','name' => 'Tulle'),\n \t array('id' => '17225','state_id' => '1211','name' => 'Ussel'),\n \t array('id' => '17226','state_id' => '1212','name' => 'Ajaccio'),\n \t array('id' => '17227','state_id' => '1212','name' => 'Porto-Vecchio'),\n \t array('id' => '17228','state_id' => '1213','name' => 'Beaune'),\n \t array('id' => '17229','state_id' => '1213','name' => 'Chenove'),\n \t array('id' => '17230','state_id' => '1213','name' => 'Dijon'),\n \t array('id' => '17231','state_id' => '1213','name' => 'Quetigny'),\n \t array('id' => '17232','state_id' => '1213','name' => 'Talant'),\n \t array('id' => '17233','state_id' => '1214','name' => 'Dinan'),\n \t array('id' => '17234','state_id' => '1214','name' => 'Lamballe'),\n \t array('id' => '17235','state_id' => '1214','name' => 'Lannion'),\n \t array('id' => '17236','state_id' => '1214','name' => 'Loudeac'),\n \t array('id' => '17237','state_id' => '1214','name' => 'Plerin'),\n \t array('id' => '17238','state_id' => '1214','name' => 'Ploufragan'),\n \t array('id' => '17239','state_id' => '1214','name' => 'Saint-Brieuc'),\n \t array('id' => '17240','state_id' => '1215','name' => 'Gueret'),\n \t array('id' => '17241','state_id' => '1216','name' => 'Crolles'),\n \t array('id' => '17242','state_id' => '1217','name' => 'Bressuire'),\n \t array('id' => '17243','state_id' => '1217','name' => 'Niort'),\n \t array('id' => '17244','state_id' => '1217','name' => 'Parthenay'),\n \t array('id' => '17245','state_id' => '1217','name' => 'Thouars'),\n \t array('id' => '17246','state_id' => '1218','name' => 'Bergerac'),\n \t array('id' => '17247','state_id' => '1218','name' => 'Perigueux'),\n \t array('id' => '17248','state_id' => '1218','name' => 'Sarlat-la-Caneda'),\n \t array('id' => '17249','state_id' => '1219','name' => 'Audincourt'),\n \t array('id' => '17250','state_id' => '1219','name' => 'Besancon'),\n \t array('id' => '17251','state_id' => '1219','name' => 'Beure'),\n \t array('id' => '17252','state_id' => '1219','name' => 'Montbeliard'),\n \t array('id' => '17253','state_id' => '1219','name' => 'Pontarlier'),\n \t array('id' => '17254','state_id' => '1219','name' => 'Valentigney'),\n \t array('id' => '17255','state_id' => '1220','name' => 'Bourg-les-Valence'),\n \t array('id' => '17256','state_id' => '1220','name' => 'Montelimar'),\n \t array('id' => '17257','state_id' => '1220','name' => 'Pierrelatte'),\n \t array('id' => '17258','state_id' => '1220','name' => 'Romans-sur-Isere'),\n \t array('id' => '17259','state_id' => '1220','name' => 'Valence'),\n \t array('id' => '17260','state_id' => '1221','name' => 'Athis-Mons'),\n \t array('id' => '17261','state_id' => '1221','name' => 'Bretigny-sur-Orge'),\n \t array('id' => '17262','state_id' => '1221','name' => 'Brunoy'),\n \t array('id' => '17263','state_id' => '1221','name' => 'Bures-sur-Yvette'),\n \t array('id' => '17264','state_id' => '1221','name' => 'Chilly-Mazarin'),\n \t array('id' => '17265','state_id' => '1221','name' => 'Corbeil-Essonnes'),\n \t array('id' => '17266','state_id' => '1221','name' => 'Courcouronnes'),\n \t array('id' => '17267','state_id' => '1221','name' => 'Dourdan'),\n \t array('id' => '17268','state_id' => '1221','name' => 'Draveil'),\n \t array('id' => '17269','state_id' => '1221','name' => 'Epinay-sous-Senart'),\n \t array('id' => '17270','state_id' => '1221','name' => 'Epinay-sur-Orge'),\n \t array('id' => '17271','state_id' => '1221','name' => 'Etampes'),\n \t array('id' => '17272','state_id' => '1221','name' => 'Evry'),\n \t array('id' => '17273','state_id' => '1221','name' => 'Fleury-Merogis'),\n \t array('id' => '17274','state_id' => '1221','name' => 'Gif-sur-Yvette'),\n \t array('id' => '17275','state_id' => '1221','name' => 'Grigny'),\n \t array('id' => '17276','state_id' => '1221','name' => 'Igny'),\n \t array('id' => '17277','state_id' => '1221','name' => 'Juvisy-sur-Orge'),\n \t array('id' => '17278','state_id' => '1221','name' => 'Les Ulis'),\n \t array('id' => '17279','state_id' => '1221','name' => 'Longjumeau'),\n \t array('id' => '17280','state_id' => '1221','name' => 'Massy'),\n \t array('id' => '17281','state_id' => '1221','name' => 'Mennecy'),\n \t array('id' => '17282','state_id' => '1221','name' => 'Montgeron'),\n \t array('id' => '17283','state_id' => '1221','name' => 'Morangis'),\n \t array('id' => '17284','state_id' => '1221','name' => 'Morsang-sur-Orge'),\n \t array('id' => '17285','state_id' => '1221','name' => 'Orsay'),\n \t array('id' => '17286','state_id' => '1221','name' => 'Palaiseau'),\n \t array('id' => '17287','state_id' => '1221','name' => 'Ris-Orangis'),\n \t array('id' => '17288','state_id' => '1221','name' => 'Saint-Michel-sur-Orge'),\n \t array('id' => '17289','state_id' => '1221','name' => 'Sainte-Genevieve-des-Bois'),\n \t array('id' => '17290','state_id' => '1221','name' => 'Savigny-sur-Orge'),\n \t array('id' => '17291','state_id' => '1221','name' => 'Verrieres-le-Buisson'),\n \t array('id' => '17292','state_id' => '1221','name' => 'Vigneux-sur-Seine'),\n \t array('id' => '17293','state_id' => '1221','name' => 'Villebon-sur-Yvette'),\n \t array('id' => '17294','state_id' => '1221','name' => 'Viry-Chatillon'),\n \t array('id' => '17295','state_id' => '1221','name' => 'Yerres'),\n \t array('id' => '17296','state_id' => '1222','name' => 'Bernay'),\n \t array('id' => '17297','state_id' => '1222','name' => 'Evreux'),\n \t array('id' => '17298','state_id' => '1222','name' => 'Gisors'),\n \t array('id' => '17299','state_id' => '1222','name' => 'Louviers'),\n \t array('id' => '17300','state_id' => '1222','name' => 'Pont-Audemer'),\n \t array('id' => '17301','state_id' => '1222','name' => 'Val-de-Reuil'),\n \t array('id' => '17302','state_id' => '1222','name' => 'Vernon'),\n \t array('id' => '17303','state_id' => '1223','name' => 'Chartres'),\n \t array('id' => '17304','state_id' => '1223','name' => 'Chateaudun'),\n \t array('id' => '17305','state_id' => '1223','name' => 'Dreux'),\n \t array('id' => '17306','state_id' => '1223','name' => 'Luce'),\n \t array('id' => '17307','state_id' => '1223','name' => 'Mainvillier'),\n \t array('id' => '17308','state_id' => '1223','name' => 'Nogent-le-Rotrou'),\n \t array('id' => '17309','state_id' => '1223','name' => 'Vernouillet'),\n \t array('id' => '17310','state_id' => '1224','name' => 'Feucherolles'),\n \t array('id' => '17311','state_id' => '1225','name' => 'Brest'),\n \t array('id' => '17312','state_id' => '1225','name' => 'Concarneau'),\n \t array('id' => '17313','state_id' => '1225','name' => 'Douarnenez'),\n \t array('id' => '17314','state_id' => '1225','name' => 'Guipavas'),\n \t array('id' => '17315','state_id' => '1225','name' => 'Landerneau'),\n \t array('id' => '17316','state_id' => '1225','name' => 'Le Relecq-Kerhoun'),\n \t array('id' => '17317','state_id' => '1225','name' => 'Morlaix'),\n \t array('id' => '17318','state_id' => '1225','name' => 'Plougastel-Daoulas'),\n \t array('id' => '17319','state_id' => '1225','name' => 'Plouzane'),\n \t array('id' => '17320','state_id' => '1225','name' => 'Quimper'),\n \t array('id' => '17321','state_id' => '1225','name' => 'Quimperle'),\n \t array('id' => '17322','state_id' => '1226','name' => 'Charquemont'),\n \t array('id' => '17323','state_id' => '1226','name' => 'Chemaudin'),\n \t array('id' => '17324','state_id' => '1226','name' => 'Pelousey'),\n \t array('id' => '17325','state_id' => '1226','name' => 'Perrigny'),\n \t array('id' => '17326','state_id' => '1226','name' => 'Pirey'),\n \t array('id' => '17327','state_id' => '1226','name' => 'Villers-le-Lac'),\n \t array('id' => '17328','state_id' => '1227','name' => 'Ales'),\n \t array('id' => '17329','state_id' => '1227','name' => 'Bagnols-sur-Ceze'),\n \t array('id' => '17330','state_id' => '1227','name' => 'Beaucaire'),\n \t array('id' => '17331','state_id' => '1227','name' => 'Nimes'),\n \t array('id' => '17332','state_id' => '1227','name' => 'Pont-Saint-Esprit'),\n \t array('id' => '17333','state_id' => '1227','name' => 'Saint-Gilles'),\n \t array('id' => '17334','state_id' => '1227','name' => 'Vauvert'),\n \t array('id' => '17335','state_id' => '1227','name' => 'Villeneuve-les-Avignon'),\n \t array('id' => '17336','state_id' => '1228','name' => 'Auch'),\n \t array('id' => '17337','state_id' => '1228','name' => 'Beraut'),\n \t array('id' => '17338','state_id' => '1229','name' => 'Ambares-et-Lagrave'),\n \t array('id' => '17339','state_id' => '1229','name' => 'Arcachon'),\n \t array('id' => '17340','state_id' => '1229','name' => 'Begles'),\n \t array('id' => '17341','state_id' => '1229','name' => 'Blanquefort'),\n \t array('id' => '17342','state_id' => '1229','name' => 'Bordeaux'),\n \t array('id' => '17343','state_id' => '1229','name' => 'Bruges'),\n \t array('id' => '17344','state_id' => '1229','name' => 'Cenon'),\n \t array('id' => '17345','state_id' => '1229','name' => 'Cestas'),\n \t array('id' => '17346','state_id' => '1229','name' => 'Eysines'),\n \t array('id' => '17347','state_id' => '1229','name' => 'Floirac'),\n \t array('id' => '17348','state_id' => '1229','name' => 'Gradignan'),\n \t array('id' => '17349','state_id' => '1229','name' => 'Gujan-Mestras'),\n \t array('id' => '17350','state_id' => '1229','name' => 'La Teste-de-Buch'),\n \t array('id' => '17351','state_id' => '1229','name' => 'Le Bouscat'),\n \t array('id' => '17352','state_id' => '1229','name' => 'Libourne'),\n \t array('id' => '17353','state_id' => '1229','name' => 'Lormont'),\n \t array('id' => '17354','state_id' => '1229','name' => 'Merignac'),\n \t array('id' => '17355','state_id' => '1229','name' => 'Pessac'),\n \t array('id' => '17356','state_id' => '1229','name' => 'Saint-Medard-en-Jalles'),\n \t array('id' => '17357','state_id' => '1229','name' => 'Talence'),\n \t array('id' => '17358','state_id' => '1229','name' => 'Villenave-d\\'Ornon'),\n \t array('id' => '17359','state_id' => '1230','name' => 'Cernay'),\n \t array('id' => '17360','state_id' => '1230','name' => 'Colmar'),\n \t array('id' => '17361','state_id' => '1230','name' => 'Guebwiller'),\n \t array('id' => '17362','state_id' => '1230','name' => 'Illzach'),\n \t array('id' => '17363','state_id' => '1230','name' => 'Kingersheim'),\n \t array('id' => '17364','state_id' => '1230','name' => 'Mulhouse'),\n \t array('id' => '17365','state_id' => '1230','name' => 'Riediesheim'),\n \t array('id' => '17366','state_id' => '1230','name' => 'Rixheim'),\n \t array('id' => '17367','state_id' => '1230','name' => 'Saint-Louis'),\n \t array('id' => '17368','state_id' => '1230','name' => 'Wittelsheim'),\n \t array('id' => '17369','state_id' => '1230','name' => 'Wittenheim'),\n \t array('id' => '17370','state_id' => '1231','name' => 'Bastia'),\n \t array('id' => '17371','state_id' => '1232','name' => 'Balma'),\n \t array('id' => '17372','state_id' => '1232','name' => 'Blagnac'),\n \t array('id' => '17373','state_id' => '1232','name' => 'Colomiers'),\n \t array('id' => '17374','state_id' => '1232','name' => 'Cugnaux'),\n \t array('id' => '17375','state_id' => '1232','name' => 'L\\'Union'),\n \t array('id' => '17376','state_id' => '1232','name' => 'Muret'),\n \t array('id' => '17377','state_id' => '1232','name' => 'Plaisance-du-Touch'),\n \t array('id' => '17378','state_id' => '1232','name' => 'Ramonville-Saint-Agne'),\n \t array('id' => '17379','state_id' => '1232','name' => 'Saint-Gaudens'),\n \t array('id' => '17380','state_id' => '1232','name' => 'Saint-Orens-de-Gameville'),\n \t array('id' => '17381','state_id' => '1232','name' => 'Toulouse'),\n \t array('id' => '17382','state_id' => '1232','name' => 'Tournefeuille'),\n \t array('id' => '17383','state_id' => '1233','name' => 'Blanzac'),\n \t array('id' => '17384','state_id' => '1233','name' => 'Le Puy-en-Velay'),\n \t array('id' => '17385','state_id' => '1234','name' => 'Chaumont'),\n \t array('id' => '17386','state_id' => '1234','name' => 'Langres'),\n \t array('id' => '17387','state_id' => '1234','name' => 'Saint-Dizier'),\n \t array('id' => '17388','state_id' => '1235','name' => 'Hericourt'),\n \t array('id' => '17389','state_id' => '1235','name' => 'Lure'),\n \t array('id' => '17390','state_id' => '1235','name' => 'Luxeuil-les-Bains'),\n \t array('id' => '17391','state_id' => '1235','name' => 'Vesoul'),\n \t array('id' => '17392','state_id' => '1236','name' => 'Annecy'),\n \t array('id' => '17393','state_id' => '1236','name' => 'Annecy-le-Vieux'),\n \t array('id' => '17394','state_id' => '1236','name' => 'Annemasse'),\n \t array('id' => '17395','state_id' => '1236','name' => 'Archamps'),\n \t array('id' => '17396','state_id' => '1236','name' => 'Bonneville'),\n \t array('id' => '17397','state_id' => '1236','name' => 'Chamonix-Mont-Blanc'),\n \t array('id' => '17398','state_id' => '1236','name' => 'Cluses'),\n \t array('id' => '17399','state_id' => '1236','name' => 'Contamine sur Arve'),\n \t array('id' => '17400','state_id' => '1236','name' => 'Cran-Gevrier'),\n \t array('id' => '17401','state_id' => '1236','name' => 'Passy'),\n \t array('id' => '17402','state_id' => '1236','name' => 'Rumilly'),\n \t array('id' => '17403','state_id' => '1236','name' => 'Sallanches'),\n \t array('id' => '17404','state_id' => '1236','name' => 'Seynod'),\n \t array('id' => '17405','state_id' => '1236','name' => 'Thonon-les-Bains'),\n \t array('id' => '17406','state_id' => '1237','name' => 'Gaillard'),\n \t array('id' => '17407','state_id' => '1237','name' => 'Limoges'),\n \t array('id' => '17408','state_id' => '1237','name' => 'Saint-Junien'),\n \t array('id' => '17409','state_id' => '1238','name' => 'Briancon'),\n \t array('id' => '17410','state_id' => '1238','name' => 'Gap'),\n \t array('id' => '17411','state_id' => '1239','name' => 'Lourdes'),\n \t array('id' => '17412','state_id' => '1239','name' => 'Tarbes'),\n \t array('id' => '17413','state_id' => '1240','name' => 'Antony'),\n \t array('id' => '17414','state_id' => '1240','name' => 'Asnieres-sur-Seine'),\n \t array('id' => '17415','state_id' => '1240','name' => 'Bagneux'),\n \t array('id' => '17416','state_id' => '1240','name' => 'Bois-Colombes'),\n \t array('id' => '17417','state_id' => '1240','name' => 'Boulogne-Billancourt'),\n \t array('id' => '17418','state_id' => '1240','name' => 'Bourg-la-Reine'),\n \t array('id' => '17419','state_id' => '1240','name' => 'Chatenay-Malabry'),\n \t array('id' => '17420','state_id' => '1240','name' => 'Chatillon'),\n \t array('id' => '17421','state_id' => '1240','name' => 'Chaville'),\n \t array('id' => '17422','state_id' => '1240','name' => 'Clamart'),\n \t array('id' => '17423','state_id' => '1240','name' => 'Clichy'),\n \t array('id' => '17424','state_id' => '1240','name' => 'Colombes'),\n \t array('id' => '17425','state_id' => '1240','name' => 'Courbevoie'),\n \t array('id' => '17426','state_id' => '1240','name' => 'Fontenay-aux-Roses'),\n \t array('id' => '17427','state_id' => '1240','name' => 'Garches'),\n \t array('id' => '17428','state_id' => '1240','name' => 'Gennevillers'),\n \t array('id' => '17429','state_id' => '1240','name' => 'Issy-les-Moulineaux'),\n \t array('id' => '17430','state_id' => '1240','name' => 'La Garenne-Colombes'),\n \t array('id' => '17431','state_id' => '1240','name' => 'Le Plessis-Robinson'),\n \t array('id' => '17432','state_id' => '1240','name' => 'Levallois-Perret'),\n \t array('id' => '17433','state_id' => '1240','name' => 'Malakoff'),\n \t array('id' => '17434','state_id' => '1240','name' => 'Meudon'),\n \t array('id' => '17435','state_id' => '1240','name' => 'Montrouge'),\n \t array('id' => '17436','state_id' => '1240','name' => 'Nanterre'),\n \t array('id' => '17437','state_id' => '1240','name' => 'Neuilly-sur-Seine'),\n \t array('id' => '17438','state_id' => '1240','name' => 'Puteaux'),\n \t array('id' => '17439','state_id' => '1240','name' => 'Rueil-Malmaison'),\n \t array('id' => '17440','state_id' => '1240','name' => 'Saint-Cloud'),\n \t array('id' => '17441','state_id' => '1240','name' => 'Sceaux'),\n \t array('id' => '17442','state_id' => '1240','name' => 'Sevres'),\n \t array('id' => '17443','state_id' => '1240','name' => 'Suresnes'),\n \t array('id' => '17444','state_id' => '1240','name' => 'Vanves'),\n \t array('id' => '17445','state_id' => '1240','name' => 'Ville-d\\'Avray'),\n \t array('id' => '17446','state_id' => '1240','name' => 'Villeneuve-la-Garenne'),\n \t array('id' => '17447','state_id' => '1241','name' => 'Agde'),\n \t array('id' => '17448','state_id' => '1241','name' => 'Beziers'),\n \t array('id' => '17449','state_id' => '1241','name' => 'Castelnau-le-Lez'),\n \t array('id' => '17450','state_id' => '1241','name' => 'Frontignan'),\n \t array('id' => '17451','state_id' => '1241','name' => 'Lattes'),\n \t array('id' => '17452','state_id' => '1241','name' => 'Lunel'),\n \t array('id' => '17453','state_id' => '1241','name' => 'Mauguio'),\n \t array('id' => '17454','state_id' => '1241','name' => 'Montpellier'),\n \t array('id' => '17455','state_id' => '1241','name' => 'Sete'),\n \t array('id' => '17456','state_id' => '1242','name' => 'Champagne-sur-Oise'),\n \t array('id' => '17457','state_id' => '1242','name' => 'Croissy-Beaubourg'),\n \t array('id' => '17458','state_id' => '1242','name' => 'Gennevilliers'),\n \t array('id' => '17459','state_id' => '1242','name' => 'Le Mesnil-le-Roi'),\n \t array('id' => '17460','state_id' => '1242','name' => 'Le Plessis-Bouchard'),\n \t array('id' => '17461','state_id' => '1242','name' => 'Rebais'),\n \t array('id' => '17462','state_id' => '1242','name' => 'Saint-Thibault-des-Vignes'),\n \t array('id' => '17463','state_id' => '1243','name' => 'Cesson-Sevigne'),\n \t array('id' => '17464','state_id' => '1243','name' => 'Dinard'),\n \t array('id' => '17465','state_id' => '1243','name' => 'Fougeres'),\n \t array('id' => '17466','state_id' => '1243','name' => 'Rennes'),\n \t array('id' => '17467','state_id' => '1243','name' => 'Saint-Malo'),\n \t array('id' => '17468','state_id' => '1243','name' => 'Vitre'),\n \t array('id' => '17469','state_id' => '1244','name' => 'Chateauroux'),\n \t array('id' => '17470','state_id' => '1244','name' => 'Issoudun'),\n \t array('id' => '17471','state_id' => '1245','name' => 'Amboise'),\n \t array('id' => '17472','state_id' => '1245','name' => 'Joue-les-Tours'),\n \t array('id' => '17473','state_id' => '1245','name' => 'Saint-Avertin'),\n \t array('id' => '17474','state_id' => '1245','name' => 'Saint-Cyr-sur-Loire'),\n \t array('id' => '17475','state_id' => '1245','name' => 'Saint-Pierre-des-Corps'),\n \t array('id' => '17476','state_id' => '1245','name' => 'Tours'),\n \t array('id' => '17477','state_id' => '1246','name' => 'Bourgoin-Jallieu'),\n \t array('id' => '17478','state_id' => '1246','name' => 'Crolles'),\n \t array('id' => '17479','state_id' => '1246','name' => 'Echirolles'),\n \t array('id' => '17480','state_id' => '1246','name' => 'Fontaine'),\n \t array('id' => '17481','state_id' => '1246','name' => 'Grenoble'),\n \t array('id' => '17482','state_id' => '1246','name' => 'Le Pont-de-Claix'),\n \t array('id' => '17483','state_id' => '1246','name' => 'Meylan'),\n \t array('id' => '17484','state_id' => '1246','name' => 'Saint-Egreve'),\n \t array('id' => '17485','state_id' => '1246','name' => 'Saint-Martin-d\\'Heres'),\n \t array('id' => '17486','state_id' => '1246','name' => 'Seyssinet-Pariset'),\n \t array('id' => '17487','state_id' => '1246','name' => 'Vienne'),\n \t array('id' => '17488','state_id' => '1246','name' => 'Villefontaine'),\n \t array('id' => '17489','state_id' => '1246','name' => 'Voiron'),\n \t array('id' => '17490','state_id' => '1247','name' => 'Champagnole'),\n \t array('id' => '17491','state_id' => '1247','name' => 'Dole'),\n \t array('id' => '17492','state_id' => '1247','name' => 'Lons-le-Saunier'),\n \t array('id' => '17493','state_id' => '1247','name' => 'Saint-Claude'),\n \t array('id' => '17494','state_id' => '1248','name' => 'Sebastiangasse'),\n \t array('id' => '17495','state_id' => '1249','name' => 'Biscarrosse'),\n \t array('id' => '17496','state_id' => '1249','name' => 'Dax'),\n \t array('id' => '17497','state_id' => '1249','name' => 'Hagetmau'),\n \t array('id' => '17498','state_id' => '1249','name' => 'Landes'),\n \t array('id' => '17499','state_id' => '1249','name' => 'Mont-de-Marsan'),\n \t array('id' => '17500','state_id' => '1249','name' => 'Saint-Paul-les-Dax'),\n \t array('id' => '17501','state_id' => '1249','name' => 'Tarnos'),\n \t array('id' => '17502','state_id' => '1250','name' => 'Codolet'),\n \t array('id' => '17503','state_id' => '1250','name' => 'Cuxac-d\\'Aude'),\n \t array('id' => '17504','state_id' => '1250','name' => 'Gigean'),\n \t array('id' => '17505','state_id' => '1250','name' => 'Grabels'),\n \t array('id' => '17506','state_id' => '1250','name' => 'Lamalou-les-Bains'),\n \t array('id' => '17507','state_id' => '1250','name' => 'Perols'),\n \t array('id' => '17508','state_id' => '1250','name' => 'Peyrens'),\n \t array('id' => '17509','state_id' => '1250','name' => 'Tuchan'),\n \t array('id' => '17510','state_id' => '1251','name' => 'Larcay'),\n \t array('id' => '17511','state_id' => '1254','name' => 'Voutezac'),\n \t array('id' => '17512','state_id' => '1255','name' => 'Blois'),\n \t array('id' => '17513','state_id' => '1255','name' => 'Romorantin-Lanthenay'),\n \t array('id' => '17514','state_id' => '1255','name' => 'Vendome'),\n \t array('id' => '17515','state_id' => '1256','name' => 'Andrezieux-Boutheon'),\n \t array('id' => '17516','state_id' => '1256','name' => 'Firminy'),\n \t array('id' => '17517','state_id' => '1256','name' => 'La Ricamarie'),\n \t array('id' => '17518','state_id' => '1256','name' => 'Le Chambon-Feugerolles'),\n \t array('id' => '17519','state_id' => '1256','name' => 'Montbrison'),\n \t array('id' => '17520','state_id' => '1256','name' => 'Riorges'),\n \t array('id' => '17521','state_id' => '1256','name' => 'Rive-de-Gier'),\n \t array('id' => '17522','state_id' => '1256','name' => 'Roanne'),\n \t array('id' => '17523','state_id' => '1256','name' => 'Roche-la-Moliere'),\n \t array('id' => '17524','state_id' => '1256','name' => 'Saint-Chamond'),\n \t array('id' => '17525','state_id' => '1256','name' => 'Saint-Etienne'),\n \t array('id' => '17526','state_id' => '1256','name' => 'Saint-Just-Saint-Rambert'),\n \t array('id' => '17527','state_id' => '1257','name' => 'Bouguenais'),\n \t array('id' => '17528','state_id' => '1257','name' => 'Carquefou'),\n \t array('id' => '17529','state_id' => '1257','name' => 'Chateaubriant'),\n \t array('id' => '17530','state_id' => '1257','name' => 'Coueron'),\n \t array('id' => '17531','state_id' => '1257','name' => 'Guerande'),\n \t array('id' => '17532','state_id' => '1257','name' => 'La Baule-Escoublac'),\n \t array('id' => '17533','state_id' => '1257','name' => 'La Chapelle-sur-Erdre'),\n \t array('id' => '17534','state_id' => '1257','name' => 'Nantes'),\n \t array('id' => '17535','state_id' => '1257','name' => 'Orvault'),\n \t array('id' => '17536','state_id' => '1257','name' => 'Reze'),\n \t array('id' => '17537','state_id' => '1257','name' => 'Saint Etienne de Mer Morte'),\n \t array('id' => '17538','state_id' => '1257','name' => 'Saint-Herblain'),\n \t array('id' => '17539','state_id' => '1257','name' => 'Saint-Nazaire'),\n \t array('id' => '17540','state_id' => '1257','name' => 'Saint-Sebastien-sur-Loire'),\n \t array('id' => '17541','state_id' => '1257','name' => 'Sainte-Luce-sur-Loire'),\n \t array('id' => '17542','state_id' => '1257','name' => 'Vertou'),\n \t array('id' => '17543','state_id' => '1258','name' => 'Amilly'),\n \t array('id' => '17544','state_id' => '1258','name' => 'Chalette-sur-Loing'),\n \t array('id' => '17545','state_id' => '1258','name' => 'Fleury-les-Aubrais'),\n \t array('id' => '17546','state_id' => '1258','name' => 'Gien'),\n \t array('id' => '17547','state_id' => '1258','name' => 'Montargis'),\n \t array('id' => '17548','state_id' => '1258','name' => 'Olivet'),\n \t array('id' => '17549','state_id' => '1258','name' => 'Orleans'),\n \t array('id' => '17550','state_id' => '1258','name' => 'Pithiviers'),\n \t array('id' => '17551','state_id' => '1258','name' => 'Saint-Jean-de-Braye'),\n \t array('id' => '17552','state_id' => '1258','name' => 'Saint-Jean-de-la-Ruelle'),\n \t array('id' => '17553','state_id' => '1258','name' => 'Saran'),\n \t array('id' => '17554','state_id' => '1259','name' => 'Montbronn'),\n \t array('id' => '17555','state_id' => '1260','name' => 'Cahors'),\n \t array('id' => '17556','state_id' => '1260','name' => 'Figeac'),\n \t array('id' => '17557','state_id' => '1261','name' => 'Agen'),\n \t array('id' => '17558','state_id' => '1261','name' => 'Le Passage'),\n \t array('id' => '17559','state_id' => '1261','name' => 'Marmande'),\n \t array('id' => '17560','state_id' => '1261','name' => 'Tonneins'),\n \t array('id' => '17561','state_id' => '1261','name' => 'Villeneuve-sur-Lot'),\n \t array('id' => '17562','state_id' => '1263','name' => 'Mende'),\n \t array('id' => '17563','state_id' => '1264','name' => 'Angers'),\n \t array('id' => '17564','state_id' => '1264','name' => 'Avrille'),\n \t array('id' => '17565','state_id' => '1264','name' => 'Cholet'),\n \t array('id' => '17566','state_id' => '1264','name' => 'Les Ponts-de-Ce'),\n \t array('id' => '17567','state_id' => '1264','name' => 'Saint-Barthelemy-d\\'Anjou'),\n \t array('id' => '17568','state_id' => '1264','name' => 'Saumur'),\n \t array('id' => '17569','state_id' => '1264','name' => 'Torfou'),\n \t array('id' => '17570','state_id' => '1264','name' => 'Trelaze'),\n \t array('id' => '17571','state_id' => '1265','name' => 'Cherbourg'),\n \t array('id' => '17572','state_id' => '1265','name' => 'Coutances'),\n \t array('id' => '17573','state_id' => '1265','name' => 'Equeurdreville-Hainneville'),\n \t array('id' => '17574','state_id' => '1265','name' => 'Granville'),\n \t array('id' => '17575','state_id' => '1265','name' => 'Octeville'),\n \t array('id' => '17576','state_id' => '1265','name' => 'Saint-Lo'),\n \t array('id' => '17577','state_id' => '1265','name' => 'Tourlaville'),\n \t array('id' => '17578','state_id' => '1266','name' => 'Chalons-en-Champagne'),\n \t array('id' => '17579','state_id' => '1266','name' => 'Epernay'),\n \t array('id' => '17580','state_id' => '1266','name' => 'Reims'),\n \t array('id' => '17581','state_id' => '1266','name' => 'Tinqueux'),\n \t array('id' => '17582','state_id' => '1266','name' => 'Vitry-le-Francois'),\n \t array('id' => '17583','state_id' => '1267','name' => 'Chateau-Gontier'),\n \t array('id' => '17584','state_id' => '1267','name' => 'Laval'),\n \t array('id' => '17585','state_id' => '1267','name' => 'Mayenne'),\n \t array('id' => '17586','state_id' => '1267','name' => 'Montsurs'),\n \t array('id' => '17587','state_id' => '1268','name' => 'Dombasle-sur-Meurthe'),\n \t array('id' => '17588','state_id' => '1268','name' => 'Jarville-la-Malgrange'),\n \t array('id' => '17589','state_id' => '1268','name' => 'Laxou'),\n \t array('id' => '17590','state_id' => '1268','name' => 'Longwy'),\n \t array('id' => '17591','state_id' => '1268','name' => 'Luneville'),\n \t array('id' => '17592','state_id' => '1268','name' => 'Nancy'),\n \t array('id' => '17593','state_id' => '1268','name' => 'Pont-a-Mousson'),\n \t array('id' => '17594','state_id' => '1268','name' => 'Saint-Max'),\n \t array('id' => '17595','state_id' => '1268','name' => 'Toul'),\n \t array('id' => '17596','state_id' => '1268','name' => 'Vandoeuvre-les-Nancy'),\n \t array('id' => '17597','state_id' => '1268','name' => 'Villers-les-Nancy'),\n \t array('id' => '17598','state_id' => '1268','name' => 'Villerupt'),\n \t array('id' => '17599','state_id' => '1269','name' => 'Bar-le-Duc'),\n \t array('id' => '17600','state_id' => '1269','name' => 'Verdun'),\n \t array('id' => '17601','state_id' => '1270','name' => 'Boissezon'),\n \t array('id' => '17602','state_id' => '1270','name' => 'Hauterive'),\n \t array('id' => '17603','state_id' => '1270','name' => 'Launaguet'),\n \t array('id' => '17604','state_id' => '1270','name' => 'Mauleon'),\n \t array('id' => '17605','state_id' => '1270','name' => 'Maurens-Scopont'),\n \t array('id' => '17606','state_id' => '1271','name' => 'Auray'),\n \t array('id' => '17607','state_id' => '1271','name' => 'Guidel'),\n \t array('id' => '17608','state_id' => '1271','name' => 'Hennebont'),\n \t array('id' => '17609','state_id' => '1271','name' => 'Lanester'),\n \t array('id' => '17610','state_id' => '1271','name' => 'Lorient'),\n \t array('id' => '17611','state_id' => '1271','name' => 'Ploemeur'),\n \t array('id' => '17612','state_id' => '1271','name' => 'Pontivy'),\n \t array('id' => '17613','state_id' => '1271','name' => 'Vannes'),\n \t array('id' => '17614','state_id' => '1272','name' => 'Amneville'),\n \t array('id' => '17615','state_id' => '1272','name' => 'Behren-les-Forbach'),\n \t array('id' => '17616','state_id' => '1272','name' => 'Creutzwald'),\n \t array('id' => '17617','state_id' => '1272','name' => 'Fameck'),\n \t array('id' => '17618','state_id' => '1272','name' => 'Florange'),\n \t array('id' => '17619','state_id' => '1272','name' => 'Forbach'),\n \t array('id' => '17620','state_id' => '1272','name' => 'Freyming-Merlebach'),\n \t array('id' => '17621','state_id' => '1272','name' => 'Hagondange'),\n \t array('id' => '17622','state_id' => '1272','name' => 'Hayange'),\n \t array('id' => '17623','state_id' => '1272','name' => 'Hombourg-Haut'),\n \t array('id' => '17624','state_id' => '1272','name' => 'Maizieres-les-Metz'),\n \t array('id' => '17625','state_id' => '1272','name' => 'Marly'),\n \t array('id' => '17626','state_id' => '1272','name' => 'Metz'),\n \t array('id' => '17627','state_id' => '1272','name' => 'Montigny-les-Metz'),\n \t array('id' => '17628','state_id' => '1272','name' => 'Moyeuvre-Grande'),\n \t array('id' => '17629','state_id' => '1272','name' => 'Rombas'),\n \t array('id' => '17630','state_id' => '1272','name' => 'Saint-Avold'),\n \t array('id' => '17631','state_id' => '1272','name' => 'Sarrebourg'),\n \t array('id' => '17632','state_id' => '1272','name' => 'Sarreguemines'),\n \t array('id' => '17633','state_id' => '1272','name' => 'Stiring-Wendel'),\n \t array('id' => '17634','state_id' => '1272','name' => 'Thionville'),\n \t array('id' => '17635','state_id' => '1272','name' => 'Uckange'),\n \t array('id' => '17636','state_id' => '1272','name' => 'Woippy'),\n \t array('id' => '17637','state_id' => '1272','name' => 'Yutz'),\n \t array('id' => '17638','state_id' => '1273','name' => 'Cosne-Cours-sur-Loire'),\n \t array('id' => '17639','state_id' => '1273','name' => 'Nevers'),\n \t array('id' => '17640','state_id' => '1273','name' => 'Varennes-Vauzelles'),\n \t array('id' => '17641','state_id' => '1274','name' => 'Aniche'),\n \t array('id' => '17642','state_id' => '1274','name' => 'Annoeullin'),\n \t array('id' => '17643','state_id' => '1274','name' => 'Anzin'),\n \t array('id' => '17644','state_id' => '1274','name' => 'Armentieres'),\n \t array('id' => '17645','state_id' => '1274','name' => 'Aulnoye-Aymeries'),\n \t array('id' => '17646','state_id' => '1274','name' => 'Bailleul'),\n \t array('id' => '17647','state_id' => '1274','name' => 'Bondues'),\n \t array('id' => '17648','state_id' => '1274','name' => 'Bruay-sur-l\\'Escaut'),\n \t array('id' => '17649','state_id' => '1274','name' => 'Cambrai'),\n \t array('id' => '17650','state_id' => '1274','name' => 'Cappelle-la-Grande'),\n \t array('id' => '17651','state_id' => '1274','name' => 'Caudry'),\n \t array('id' => '17652','state_id' => '1274','name' => 'Comines'),\n \t array('id' => '17653','state_id' => '1274','name' => 'Conde-sur-l\\'Escaut'),\n \t array('id' => '17654','state_id' => '1274','name' => 'Coudekerque-Branche'),\n \t array('id' => '17655','state_id' => '1274','name' => 'Croix'),\n \t array('id' => '17656','state_id' => '1274','name' => 'Denain'),\n \t array('id' => '17657','state_id' => '1274','name' => 'Douai'),\n \t array('id' => '17658','state_id' => '1274','name' => 'Douchy-les-Mines'),\n \t array('id' => '17659','state_id' => '1274','name' => 'Dunkerque'),\n \t array('id' => '17660','state_id' => '1274','name' => 'Escaudain'),\n \t array('id' => '17661','state_id' => '1274','name' => 'Fache-Thumesnil'),\n \t array('id' => '17662','state_id' => '1274','name' => 'Fourmies'),\n \t array('id' => '17663','state_id' => '1274','name' => 'Grande-Synthe'),\n \t array('id' => '17664','state_id' => '1274','name' => 'Graveline'),\n \t array('id' => '17665','state_id' => '1274','name' => 'Halluin'),\n \t array('id' => '17666','state_id' => '1274','name' => 'Haubourdin'),\n \t array('id' => '17667','state_id' => '1274','name' => 'Hautmont'),\n \t array('id' => '17668','state_id' => '1274','name' => 'Hazebrouck'),\n \t array('id' => '17669','state_id' => '1274','name' => 'Hem'),\n \t array('id' => '17670','state_id' => '1274','name' => 'Hulluch'),\n \t array('id' => '17671','state_id' => '1274','name' => 'Jeumont'),\n \t array('id' => '17672','state_id' => '1274','name' => 'La Madeleine'),\n \t array('id' => '17673','state_id' => '1274','name' => 'Lambersart'),\n \t array('id' => '17674','state_id' => '1274','name' => 'Leers'),\n \t array('id' => '17675','state_id' => '1274','name' => 'Lille'),\n \t array('id' => '17676','state_id' => '1274','name' => 'Lomme'),\n \t array('id' => '17677','state_id' => '1274','name' => 'Loos'),\n \t array('id' => '17678','state_id' => '1274','name' => 'Lys-lez-Lannoy'),\n \t array('id' => '17679','state_id' => '1274','name' => 'Marcq-en-Baroeul'),\n \t array('id' => '17680','state_id' => '1274','name' => 'Marennes'),\n \t array('id' => '17681','state_id' => '1274','name' => 'Marly'),\n \t array('id' => '17682','state_id' => '1274','name' => 'Marquette-lez-Lille'),\n \t array('id' => '17683','state_id' => '1274','name' => 'Maubeuge'),\n \t array('id' => '17684','state_id' => '1274','name' => 'Merville'),\n \t array('id' => '17685','state_id' => '1274','name' => 'Mons-en-Baroeul'),\n \t array('id' => '17686','state_id' => '1274','name' => 'Mouvaux'),\n \t array('id' => '17687','state_id' => '1274','name' => 'Neuville-en-Ferrain'),\n \t array('id' => '17688','state_id' => '1274','name' => 'Onnaing'),\n \t array('id' => '17689','state_id' => '1274','name' => 'Raismes'),\n \t array('id' => '17690','state_id' => '1274','name' => 'Ronchin'),\n \t array('id' => '17691','state_id' => '1274','name' => 'Roncq'),\n \t array('id' => '17692','state_id' => '1274','name' => 'Roubaix'),\n \t array('id' => '17693','state_id' => '1274','name' => 'Saint-Amand-les-Eaux'),\n \t array('id' => '17694','state_id' => '1274','name' => 'Saint-Andre-lez-Lille'),\n \t array('id' => '17695','state_id' => '1274','name' => 'Saint-Pol-sur-Mer'),\n \t array('id' => '17696','state_id' => '1274','name' => 'Saint-Saulve'),\n \t array('id' => '17697','state_id' => '1274','name' => 'Seclin'),\n \t array('id' => '17698','state_id' => '1274','name' => 'Sin-le-Noble'),\n \t array('id' => '17699','state_id' => '1274','name' => 'Somain'),\n \t array('id' => '17700','state_id' => '1274','name' => 'Tourcoing'),\n \t array('id' => '17701','state_id' => '1274','name' => 'Valenciennes'),\n \t array('id' => '17702','state_id' => '1274','name' => 'Vieux-Conde'),\n \t array('id' => '17703','state_id' => '1274','name' => 'Villeneuve-d\\'Ascq'),\n \t array('id' => '17704','state_id' => '1274','name' => 'Wasquehal'),\n \t array('id' => '17705','state_id' => '1274','name' => 'Wattignies'),\n \t array('id' => '17706','state_id' => '1274','name' => 'Wattrelos'),\n \t array('id' => '17707','state_id' => '1274','name' => 'Waziers'),\n \t array('id' => '17708','state_id' => '1275','name' => 'Esquelbecq'),\n \t array('id' => '17709','state_id' => '1276','name' => 'Beauvais'),\n \t array('id' => '17710','state_id' => '1276','name' => 'Chantilly'),\n \t array('id' => '17711','state_id' => '1276','name' => 'Clermont'),\n \t array('id' => '17712','state_id' => '1276','name' => 'Compiegne'),\n \t array('id' => '17713','state_id' => '1276','name' => 'Creil'),\n \t array('id' => '17714','state_id' => '1276','name' => 'Crepy-en-Valois'),\n \t array('id' => '17715','state_id' => '1276','name' => 'Gouvieux'),\n \t array('id' => '17716','state_id' => '1276','name' => 'Meru'),\n \t array('id' => '17717','state_id' => '1276','name' => 'Montataire'),\n \t array('id' => '17718','state_id' => '1276','name' => 'Nogent-sur-Oise'),\n \t array('id' => '17719','state_id' => '1276','name' => 'Noyon'),\n \t array('id' => '17720','state_id' => '1276','name' => 'Pont-Sainte-Maxence'),\n \t array('id' => '17721','state_id' => '1276','name' => 'Senlis'),\n \t array('id' => '17722','state_id' => '1277','name' => 'Alencon'),\n \t array('id' => '17723','state_id' => '1277','name' => 'Argentan'),\n \t array('id' => '17724','state_id' => '1277','name' => 'Flers'),\n \t array('id' => '17725','state_id' => '1277','name' => 'L\\'Aigle'),\n \t array('id' => '17726','state_id' => '1278','name' => 'Paris'),\n \t array('id' => '17727','state_id' => '1279','name' => 'Aire-sur-la-Lys'),\n \t array('id' => '17728','state_id' => '1279','name' => 'Arras'),\n \t array('id' => '17729','state_id' => '1279','name' => 'Auchel'),\n \t array('id' => '17730','state_id' => '1279','name' => 'Avion'),\n \t array('id' => '17731','state_id' => '1279','name' => 'Berck'),\n \t array('id' => '17732','state_id' => '1279','name' => 'Bethune'),\n \t array('id' => '17733','state_id' => '1279','name' => 'Boulogne-sur-Mer'),\n \t array('id' => '17734','state_id' => '1279','name' => 'Bruay-la-Brussiere'),\n \t array('id' => '17735','state_id' => '1279','name' => 'Bully-les-Mines'),\n \t array('id' => '17736','state_id' => '1279','name' => 'Calais'),\n \t array('id' => '17737','state_id' => '1279','name' => 'Carvin'),\n \t array('id' => '17738','state_id' => '1279','name' => 'Courrieres'),\n \t array('id' => '17739','state_id' => '1279','name' => 'Etaples'),\n \t array('id' => '17740','state_id' => '1279','name' => 'Harnes'),\n \t array('id' => '17741','state_id' => '1279','name' => 'Henin-Beaumont'),\n \t array('id' => '17742','state_id' => '1279','name' => 'Le Portel'),\n \t array('id' => '17743','state_id' => '1279','name' => 'Lens'),\n \t array('id' => '17744','state_id' => '1279','name' => 'Libercourt'),\n \t array('id' => '17745','state_id' => '1279','name' => 'Lievin'),\n \t array('id' => '17746','state_id' => '1279','name' => 'Lillers'),\n \t array('id' => '17747','state_id' => '1279','name' => 'Longuenesse'),\n \t array('id' => '17748','state_id' => '1279','name' => 'Marck'),\n \t array('id' => '17749','state_id' => '1279','name' => 'Mericourt'),\n \t array('id' => '17750','state_id' => '1279','name' => 'Montigny-en-Gohelle'),\n \t array('id' => '17751','state_id' => '1279','name' => 'Noeux-les-Mines'),\n \t array('id' => '17752','state_id' => '1279','name' => 'Oignies'),\n \t array('id' => '17753','state_id' => '1279','name' => 'Outreau'),\n \t array('id' => '17754','state_id' => '1279','name' => 'Rouvroy'),\n \t array('id' => '17755','state_id' => '1279','name' => 'Saint-Martin-Boulogne'),\n \t array('id' => '17756','state_id' => '1279','name' => 'Saint-Omer'),\n \t array('id' => '17757','state_id' => '1279','name' => 'Sallaumines'),\n \t array('id' => '17758','state_id' => '1279','name' => 'Vendin-le-Vieil'),\n \t array('id' => '17759','state_id' => '1281','name' => 'Loiron'),\n \t array('id' => '17760','state_id' => '1281','name' => 'Marolles-les-Braults'),\n \t array('id' => '17761','state_id' => '1281','name' => 'Mortagne-sur-Sevre'),\n \t array('id' => '17762','state_id' => '1281','name' => 'Mouzillon'),\n \t array('id' => '17763','state_id' => '1281','name' => 'Noirmoutier-en-l\\'Île'),\n \t array('id' => '17764','state_id' => '1282','name' => 'Friville'),\n \t array('id' => '17765','state_id' => '1282','name' => 'Liancourt'),\n \t array('id' => '17766','state_id' => '1282','name' => 'Maizy'),\n \t array('id' => '17767','state_id' => '1282','name' => 'Oust-Marest'),\n \t array('id' => '17768','state_id' => '1282','name' => 'Puiseux-le-Hauberger'),\n \t array('id' => '17769','state_id' => '1282','name' => 'Saint-Crepin-Ibouvillers'),\n \t array('id' => '17770','state_id' => '1283','name' => 'Aubiere'),\n \t array('id' => '17771','state_id' => '1283','name' => 'Beaumont'),\n \t array('id' => '17772','state_id' => '1283','name' => 'Chamalieres'),\n \t array('id' => '17773','state_id' => '1283','name' => 'Clermont-Ferrand'),\n \t array('id' => '17774','state_id' => '1283','name' => 'Cournon-d\\'Auvergne'),\n \t array('id' => '17775','state_id' => '1283','name' => 'Gerzat'),\n \t array('id' => '17776','state_id' => '1283','name' => 'Issoire'),\n \t array('id' => '17777','state_id' => '1283','name' => 'Riom'),\n \t array('id' => '17778','state_id' => '1283','name' => 'Thiers'),\n \t array('id' => '17779','state_id' => '1284','name' => 'Anglet'),\n \t array('id' => '17780','state_id' => '1284','name' => 'Bayonne'),\n \t array('id' => '17781','state_id' => '1284','name' => 'Biarritz'),\n \t array('id' => '17782','state_id' => '1284','name' => 'Billere'),\n \t array('id' => '17783','state_id' => '1284','name' => 'Hendaye'),\n \t array('id' => '17784','state_id' => '1284','name' => 'Lons'),\n \t array('id' => '17785','state_id' => '1284','name' => 'Oloron-Sainte-Marie'),\n \t array('id' => '17786','state_id' => '1284','name' => 'Orthez'),\n \t array('id' => '17787','state_id' => '1284','name' => 'Pau'),\n \t array('id' => '17788','state_id' => '1284','name' => 'Saint-Jean-de-Luz'),\n \t array('id' => '17789','state_id' => '1285','name' => 'Perpignan'),\n \t array('id' => '17790','state_id' => '1285','name' => 'Saint-Esteve'),\n \t array('id' => '17791','state_id' => '1286','name' => 'Quelmes'),\n \t array('id' => '17792','state_id' => '1287','name' => 'Brignais'),\n \t array('id' => '17793','state_id' => '1287','name' => 'Bron'),\n \t array('id' => '17794','state_id' => '1287','name' => 'Caluire-et-Cuire'),\n \t array('id' => '17795','state_id' => '1287','name' => 'Decines-Charpieu'),\n \t array('id' => '17796','state_id' => '1287','name' => 'Ecully'),\n \t array('id' => '17797','state_id' => '1287','name' => 'Francheville'),\n \t array('id' => '17798','state_id' => '1287','name' => 'Genas'),\n \t array('id' => '17799','state_id' => '1287','name' => 'Genay'),\n \t array('id' => '17800','state_id' => '1287','name' => 'Givors'),\n \t array('id' => '17801','state_id' => '1287','name' => 'Lyon'),\n \t array('id' => '17802','state_id' => '1287','name' => 'Meyzieu'),\n \t array('id' => '17803','state_id' => '1287','name' => 'Mions'),\n \t array('id' => '17804','state_id' => '1287','name' => 'Oullins'),\n \t array('id' => '17805','state_id' => '1287','name' => 'Pierre-Benite'),\n \t array('id' => '17806','state_id' => '1287','name' => 'Rillieux-la-Pape'),\n \t array('id' => '17807','state_id' => '1287','name' => 'Saint-Fons'),\n \t array('id' => '17808','state_id' => '1287','name' => 'Saint-Genis-Laval'),\n \t array('id' => '17809','state_id' => '1287','name' => 'Saint-Priest'),\n \t array('id' => '17810','state_id' => '1287','name' => 'Sainte-Foy-les-Lyon'),\n \t array('id' => '17811','state_id' => '1287','name' => 'Tarare'),\n \t array('id' => '17812','state_id' => '1287','name' => 'Tassin-la-Demi-Lune'),\n \t array('id' => '17813','state_id' => '1287','name' => 'Vaulx-en-Velin'),\n \t array('id' => '17814','state_id' => '1287','name' => 'Venissieux'),\n \t array('id' => '17815','state_id' => '1287','name' => 'Villefranche-sur-Saone'),\n \t array('id' => '17816','state_id' => '1287','name' => 'Villeurbanne'),\n \t array('id' => '17817','state_id' => '1288','name' => 'Beauvoir-en-Royans'),\n \t array('id' => '17818','state_id' => '1288','name' => 'Belley'),\n \t array('id' => '17819','state_id' => '1288','name' => 'Bons-en-Chablais'),\n \t array('id' => '17820','state_id' => '1288','name' => 'Chalain-d\\'Uzore'),\n \t array('id' => '17821','state_id' => '1288','name' => 'Chassieu'),\n \t array('id' => '17822','state_id' => '1288','name' => 'Chavanod'),\n \t array('id' => '17823','state_id' => '1288','name' => 'Chazay-d-Azergues'),\n \t array('id' => '17824','state_id' => '1288','name' => 'Chimilin'),\n \t array('id' => '17825','state_id' => '1288','name' => 'Civrieux-d Azergues'),\n \t array('id' => '17826','state_id' => '1288','name' => 'Corbas'),\n \t array('id' => '17827','state_id' => '1288','name' => 'Courzieu'),\n \t array('id' => '17828','state_id' => '1288','name' => 'Dardilly'),\n \t array('id' => '17829','state_id' => '1288','name' => 'Guereins'),\n \t array('id' => '17830','state_id' => '1288','name' => 'Izernore'),\n \t array('id' => '17831','state_id' => '1288','name' => 'La Talaudiere'),\n \t array('id' => '17832','state_id' => '1288','name' => 'La Tronche'),\n \t array('id' => '17833','state_id' => '1288','name' => 'La Verpilliere'),\n \t array('id' => '17834','state_id' => '1288','name' => 'Le Cheylard'),\n \t array('id' => '17835','state_id' => '1288','name' => 'Le Cheylas'),\n \t array('id' => '17836','state_id' => '1288','name' => 'Mery'),\n \t array('id' => '17837','state_id' => '1288','name' => 'Moirans'),\n \t array('id' => '17838','state_id' => '1288','name' => 'Montalieu-Vercieu'),\n \t array('id' => '17839','state_id' => '1288','name' => 'Montmiral'),\n \t array('id' => '17840','state_id' => '1288','name' => 'Peronnas'),\n \t array('id' => '17841','state_id' => '1288','name' => 'Poncin'),\n \t array('id' => '17842','state_id' => '1288','name' => 'Quincie-en-Beaujolais'),\n \t array('id' => '17843','state_id' => '1288','name' => 'Saint-Quentin-sur-Isere'),\n \t array('id' => '17844','state_id' => '1288','name' => 'Sainte Agathe la Bouteresse'),\n \t array('id' => '17845','state_id' => '1288','name' => 'Sainte-Consorce'),\n \t array('id' => '17846','state_id' => '1288','name' => 'Sisteron'),\n \t array('id' => '17847','state_id' => '1288','name' => 'Trevoux'),\n \t array('id' => '17848','state_id' => '1288','name' => 'Villard-Bonnot'),\n \t array('id' => '17849','state_id' => '1291','name' => 'Autun'),\n \t array('id' => '17850','state_id' => '1291','name' => 'Chalon-sur-Saone'),\n \t array('id' => '17851','state_id' => '1291','name' => 'Digoin'),\n \t array('id' => '17852','state_id' => '1291','name' => 'Gueugnon'),\n \t array('id' => '17853','state_id' => '1291','name' => 'Le Creusot'),\n \t array('id' => '17854','state_id' => '1291','name' => 'Macon'),\n \t array('id' => '17855','state_id' => '1291','name' => 'Montceau-les-Mines'),\n \t array('id' => '17856','state_id' => '1291','name' => 'Paray-le-Monial'),\n \t array('id' => '17857','state_id' => '1291','name' => 'Saint-Vallier'),\n \t array('id' => '17858','state_id' => '1292','name' => 'Allonnes'),\n \t array('id' => '17859','state_id' => '1292','name' => 'La Ferte-Bernard'),\n \t array('id' => '17860','state_id' => '1292','name' => 'La Fleche'),\n \t array('id' => '17861','state_id' => '1292','name' => 'Le Mans'),\n \t array('id' => '17862','state_id' => '1292','name' => 'Sable-sur-Sarthe'),\n \t array('id' => '17863','state_id' => '1293','name' => 'Aix-les-Bains'),\n \t array('id' => '17864','state_id' => '1293','name' => 'Albertville'),\n \t array('id' => '17865','state_id' => '1293','name' => 'Chambery'),\n \t array('id' => '17866','state_id' => '1293','name' => 'La Motte-Servolex'),\n \t array('id' => '17867','state_id' => '1293','name' => 'Saint-Jean-de-Maurienne'),\n \t array('id' => '17868','state_id' => '1294','name' => 'Barentin'),\n \t array('id' => '17869','state_id' => '1294','name' => 'Bihorel'),\n \t array('id' => '17870','state_id' => '1294','name' => 'Bois-Guillaume'),\n \t array('id' => '17871','state_id' => '1294','name' => 'Bolbec'),\n \t array('id' => '17872','state_id' => '1294','name' => 'Canteleu'),\n \t array('id' => '17873','state_id' => '1294','name' => 'Caudebec-les-Elbeuf'),\n \t array('id' => '17874','state_id' => '1294','name' => 'Darnetal'),\n \t array('id' => '17875','state_id' => '1294','name' => 'Deville-les-Rouen'),\n \t array('id' => '17876','state_id' => '1294','name' => 'Dieppe'),\n \t array('id' => '17877','state_id' => '1294','name' => 'Elbeuf'),\n \t array('id' => '17878','state_id' => '1294','name' => 'Fecamp'),\n \t array('id' => '17879','state_id' => '1294','name' => 'Gonfreville-l\\'Orcher'),\n \t array('id' => '17880','state_id' => '1294','name' => 'Grand-Couronne'),\n \t array('id' => '17881','state_id' => '1294','name' => 'Harfleur'),\n \t array('id' => '17882','state_id' => '1294','name' => 'Le Grand-Quevilly'),\n \t array('id' => '17883','state_id' => '1294','name' => 'Le Havre'),\n \t array('id' => '17884','state_id' => '1294','name' => 'Le Petit-Quevilly'),\n \t array('id' => '17885','state_id' => '1294','name' => 'Lillebonne'),\n \t array('id' => '17886','state_id' => '1294','name' => 'Maromme'),\n \t array('id' => '17887','state_id' => '1294','name' => 'Mont-Saint-Aignan'),\n \t array('id' => '17888','state_id' => '1294','name' => 'Montivilliers'),\n \t array('id' => '17889','state_id' => '1294','name' => 'Notre-Dame-de-Gravenchon'),\n \t array('id' => '17890','state_id' => '1294','name' => 'Oissel'),\n \t array('id' => '17891','state_id' => '1294','name' => 'Rouen'),\n \t array('id' => '17892','state_id' => '1294','name' => 'Saint-Etienne-du-Rouvray'),\n \t array('id' => '17893','state_id' => '1294','name' => 'Sotteville-les-Rouen'),\n \t array('id' => '17894','state_id' => '1294','name' => 'Yvetot'),\n \t array('id' => '17895','state_id' => '1295','name' => 'Aubervillers'),\n \t array('id' => '17896','state_id' => '1295','name' => 'Aulnay-sous-Bois'),\n \t array('id' => '17897','state_id' => '1295','name' => 'Bagnolet'),\n \t array('id' => '17898','state_id' => '1295','name' => 'Bobigny'),\n \t array('id' => '17899','state_id' => '1295','name' => 'Bondy'),\n \t array('id' => '17900','state_id' => '1295','name' => 'Clichy-sous-Bois'),\n \t array('id' => '17901','state_id' => '1295','name' => 'Drancy'),\n \t array('id' => '17902','state_id' => '1295','name' => 'Epinay-sur-Seine'),\n \t array('id' => '17903','state_id' => '1295','name' => 'Gagny'),\n \t array('id' => '17904','state_id' => '1295','name' => 'La Courneuve'),\n \t array('id' => '17905','state_id' => '1295','name' => 'Le Blanc-Mesnil'),\n \t array('id' => '17906','state_id' => '1295','name' => 'Le Bourget'),\n \t array('id' => '17907','state_id' => '1295','name' => 'Le Pre-Saint-Gervais'),\n \t array('id' => '17908','state_id' => '1295','name' => 'Le Raincy'),\n \t array('id' => '17909','state_id' => '1295','name' => 'Les Lilas'),\n \t array('id' => '17910','state_id' => '1295','name' => 'Les Pavillons-sous-Bois'),\n \t array('id' => '17911','state_id' => '1295','name' => 'Livry-Gargan'),\n \t array('id' => '17912','state_id' => '1295','name' => 'Montfermeil'),\n \t array('id' => '17913','state_id' => '1295','name' => 'Montreuil'),\n \t array('id' => '17914','state_id' => '1295','name' => 'Neuilly-Plaisance'),\n \t array('id' => '17915','state_id' => '1295','name' => 'Neuilly-sur-Marne'),\n \t array('id' => '17916','state_id' => '1295','name' => 'Noisy-le-Grand'),\n \t array('id' => '17917','state_id' => '1295','name' => 'Noisy-le-Sec'),\n \t array('id' => '17918','state_id' => '1295','name' => 'Pantin'),\n \t array('id' => '17919','state_id' => '1295','name' => 'Pierrefitte-sur-Seine'),\n \t array('id' => '17920','state_id' => '1295','name' => 'Romainville'),\n \t array('id' => '17921','state_id' => '1295','name' => 'Rosny-sous-Bois'),\n \t array('id' => '17922','state_id' => '1295','name' => 'Saint-Denis'),\n \t array('id' => '17923','state_id' => '1295','name' => 'Saint-Ouen'),\n \t array('id' => '17924','state_id' => '1295','name' => 'Sevran'),\n \t array('id' => '17925','state_id' => '1295','name' => 'Stains'),\n \t array('id' => '17926','state_id' => '1295','name' => 'Tremblay-en-France'),\n \t array('id' => '17927','state_id' => '1295','name' => 'Villemomble'),\n \t array('id' => '17928','state_id' => '1295','name' => 'Villepinte'),\n \t array('id' => '17929','state_id' => '1295','name' => 'Villetaneuse'),\n \t array('id' => '17930','state_id' => '1296','name' => 'Avon'),\n \t array('id' => '17931','state_id' => '1296','name' => 'Brie-Comte-Robert'),\n \t array('id' => '17932','state_id' => '1296','name' => 'Champs-sur-Marne'),\n \t array('id' => '17933','state_id' => '1296','name' => 'Chelles'),\n \t array('id' => '17934','state_id' => '1296','name' => 'Claye-Souilly'),\n \t array('id' => '17935','state_id' => '1296','name' => 'Combs-la-Ville'),\n \t array('id' => '17936','state_id' => '1296','name' => 'Coulommiers'),\n \t array('id' => '17937','state_id' => '1296','name' => 'Dammarie-les-Lys'),\n \t array('id' => '17938','state_id' => '1296','name' => 'Fontainebleau'),\n \t array('id' => '17939','state_id' => '1296','name' => 'Lagny-sur-Marne'),\n \t array('id' => '17940','state_id' => '1296','name' => 'Le Mee-sur-Seine'),\n \t array('id' => '17941','state_id' => '1296','name' => 'Lognes'),\n \t array('id' => '17942','state_id' => '1296','name' => 'Meaux'),\n \t array('id' => '17943','state_id' => '1296','name' => 'Melun'),\n \t array('id' => '17944','state_id' => '1296','name' => 'Mitry-Mory'),\n \t array('id' => '17945','state_id' => '1296','name' => 'Moissy-Cramayel'),\n \t array('id' => '17946','state_id' => '1296','name' => 'Montereau-Fault-Yonne'),\n \t array('id' => '17947','state_id' => '1296','name' => 'Nemours'),\n \t array('id' => '17948','state_id' => '1296','name' => 'Noisiel'),\n \t array('id' => '17949','state_id' => '1296','name' => 'Ozoir-la-Ferriere'),\n \t array('id' => '17950','state_id' => '1296','name' => 'Pontault-Combault'),\n \t array('id' => '17951','state_id' => '1296','name' => 'Provins'),\n \t array('id' => '17952','state_id' => '1296','name' => 'Roissy-en-Brie'),\n \t array('id' => '17953','state_id' => '1296','name' => 'Saint-Fargeau-Ponthierry'),\n \t array('id' => '17954','state_id' => '1296','name' => 'Savigny-le-Temple'),\n \t array('id' => '17955','state_id' => '1296','name' => 'Torcy'),\n \t array('id' => '17956','state_id' => '1296','name' => 'Vaires-sur-Marne'),\n \t array('id' => '17957','state_id' => '1296','name' => 'Veneux'),\n \t array('id' => '17958','state_id' => '1296','name' => 'Villeparisis'),\n \t array('id' => '17959','state_id' => '1297','name' => 'Abbeville'),\n \t array('id' => '17960','state_id' => '1297','name' => 'Albert'),\n \t array('id' => '17961','state_id' => '1297','name' => 'Amiens'),\n \t array('id' => '17962','state_id' => '1299','name' => 'Souvans'),\n \t array('id' => '17963','state_id' => '1300','name' => 'Albi'),\n \t array('id' => '17964','state_id' => '1300','name' => 'Carmaux'),\n \t array('id' => '17965','state_id' => '1300','name' => 'Castres'),\n \t array('id' => '17966','state_id' => '1300','name' => 'Gaillac'),\n \t array('id' => '17967','state_id' => '1300','name' => 'Graulhet'),\n \t array('id' => '17968','state_id' => '1300','name' => 'Mazamet'),\n \t array('id' => '17969','state_id' => '1301','name' => 'Castelsarassin'),\n \t array('id' => '17970','state_id' => '1301','name' => 'Moissac'),\n \t array('id' => '17971','state_id' => '1301','name' => 'Montauban'),\n \t array('id' => '17972','state_id' => '1303','name' => 'Chamberet'),\n \t array('id' => '17973','state_id' => '1305','name' => 'Argenteuil'),\n \t array('id' => '17974','state_id' => '1305','name' => 'Arnouville-les-Gonesse'),\n \t array('id' => '17975','state_id' => '1305','name' => 'Beauchamps'),\n \t array('id' => '17976','state_id' => '1305','name' => 'Bezons'),\n \t array('id' => '17977','state_id' => '1305','name' => 'Cergy'),\n \t array('id' => '17978','state_id' => '1305','name' => 'Cormeilles-en-Parisis'),\n \t array('id' => '17979','state_id' => '1305','name' => 'Deuil-la-Barre'),\n \t array('id' => '17980','state_id' => '1305','name' => 'Domont'),\n \t array('id' => '17981','state_id' => '1305','name' => 'Eaubonne'),\n \t array('id' => '17982','state_id' => '1305','name' => 'Enghien-les-Bains'),\n \t array('id' => '17983','state_id' => '1305','name' => 'Eragny'),\n \t array('id' => '17984','state_id' => '1305','name' => 'Ermont'),\n \t array('id' => '17985','state_id' => '1305','name' => 'Ezanville'),\n \t array('id' => '17986','state_id' => '1305','name' => 'Fosses'),\n \t array('id' => '17987','state_id' => '1305','name' => 'Franconville'),\n \t array('id' => '17988','state_id' => '1305','name' => 'Garges-les-Gonesse'),\n \t array('id' => '17989','state_id' => '1305','name' => 'Gonesse'),\n \t array('id' => '17990','state_id' => '1305','name' => 'Goussainville'),\n \t array('id' => '17991','state_id' => '1305','name' => 'Herblay'),\n \t array('id' => '17992','state_id' => '1305','name' => 'Jouy-le-Moutier'),\n \t array('id' => '17993','state_id' => '1305','name' => 'L\\'Isle-Adam'),\n \t array('id' => '17994','state_id' => '1305','name' => 'Montigny-les-Cormeilles'),\n \t array('id' => '17995','state_id' => '1305','name' => 'Montmagny'),\n \t array('id' => '17996','state_id' => '1305','name' => 'Montmorency'),\n \t array('id' => '17997','state_id' => '1305','name' => 'Osny'),\n \t array('id' => '17998','state_id' => '1305','name' => 'Persan'),\n \t array('id' => '17999','state_id' => '1305','name' => 'Pontoise'),\n \t array('id' => '18000','state_id' => '1305','name' => 'Saint-Brice-sous-Foret'),\n \t array('id' => '18001','state_id' => '1305','name' => 'Saint-Gratien'),\n \t array('id' => '18002','state_id' => '1305','name' => 'Saint-Leu-la-Foret'),\n \t array('id' => '18003','state_id' => '1305','name' => 'Saint-Ouen-l\\'Aumone'),\n \t array('id' => '18004','state_id' => '1305','name' => 'Sannois'),\n \t array('id' => '18005','state_id' => '1305','name' => 'Sarcelles'),\n \t array('id' => '18006','state_id' => '1305','name' => 'Soisy-sous-Montmorency'),\n \t array('id' => '18007','state_id' => '1305','name' => 'Taverny'),\n \t array('id' => '18008','state_id' => '1305','name' => 'Vaureal'),\n \t array('id' => '18009','state_id' => '1305','name' => 'Villiers-le-Bel'),\n \t array('id' => '18010','state_id' => '1306','name' => 'Alfortville'),\n \t array('id' => '18011','state_id' => '1306','name' => 'Arcueil'),\n \t array('id' => '18012','state_id' => '1306','name' => 'Boissy-Saint-Leger'),\n \t array('id' => '18013','state_id' => '1306','name' => 'Bonneuil'),\n \t array('id' => '18014','state_id' => '1306','name' => 'Bry-sur-Marne'),\n \t array('id' => '18015','state_id' => '1306','name' => 'Cachan'),\n \t array('id' => '18016','state_id' => '1306','name' => 'Champigny-sur-Marne'),\n \t array('id' => '18017','state_id' => '1306','name' => 'Charenton-le-Pont'),\n \t array('id' => '18018','state_id' => '1306','name' => 'Chennevieres-sur-Marne'),\n \t array('id' => '18019','state_id' => '1306','name' => 'Chevilly-Larue'),\n \t array('id' => '18020','state_id' => '1306','name' => 'Choisy-le-Roi'),\n \t array('id' => '18021','state_id' => '1306','name' => 'Creteil'),\n \t array('id' => '18022','state_id' => '1306','name' => 'Fontenay-sous-Bois'),\n \t array('id' => '18023','state_id' => '1306','name' => 'Fresnes'),\n \t array('id' => '18024','state_id' => '1306','name' => 'Gentilly'),\n \t array('id' => '18025','state_id' => '1306','name' => 'Ivry-sur-Seine'),\n \t array('id' => '18026','state_id' => '1306','name' => 'Joinville-le-Pont'),\n \t array('id' => '18027','state_id' => '1306','name' => 'L\\'Hay-les-Roses'),\n \t array('id' => '18028','state_id' => '1306','name' => 'La Queue-en-Brie'),\n \t array('id' => '18029','state_id' => '1306','name' => 'Le Kremlin-Bicetre'),\n \t array('id' => '18030','state_id' => '1306','name' => 'Le Perreux-sur-Marne'),\n \t array('id' => '18031','state_id' => '1306','name' => 'Le Plessis-Trevise'),\n \t array('id' => '18032','state_id' => '1306','name' => 'Limeil-Brevannes'),\n \t array('id' => '18033','state_id' => '1306','name' => 'Maisons-Alfort'),\n \t array('id' => '18034','state_id' => '1306','name' => 'Nogent-sur-Marne'),\n \t array('id' => '18035','state_id' => '1306','name' => 'Orly'),\n \t array('id' => '18036','state_id' => '1306','name' => 'Ormesson-sur-Marne'),\n \t array('id' => '18037','state_id' => '1306','name' => 'Saint-Mande'),\n \t array('id' => '18038','state_id' => '1306','name' => 'Saint-Maur-des-Fosses'),\n \t array('id' => '18039','state_id' => '1306','name' => 'Saint-Maurice'),\n \t array('id' => '18040','state_id' => '1306','name' => 'Sucy-en-Brie'),\n \t array('id' => '18041','state_id' => '1306','name' => 'Thiais'),\n \t array('id' => '18042','state_id' => '1306','name' => 'Valenton'),\n \t array('id' => '18043','state_id' => '1306','name' => 'Villejuif'),\n \t array('id' => '18044','state_id' => '1306','name' => 'Villeneuve-Saint-Georges'),\n \t array('id' => '18045','state_id' => '1306','name' => 'Villeneuve-le-Roi'),\n \t array('id' => '18046','state_id' => '1306','name' => 'Villiers-sur-Marne'),\n \t array('id' => '18047','state_id' => '1306','name' => 'Vincennes'),\n \t array('id' => '18048','state_id' => '1306','name' => 'Vitry-sur-Seine'),\n \t array('id' => '18049','state_id' => '1307','name' => 'Brignoles'),\n \t array('id' => '18050','state_id' => '1307','name' => 'Draguignan'),\n \t array('id' => '18051','state_id' => '1307','name' => 'Frejus'),\n \t array('id' => '18052','state_id' => '1307','name' => 'Hyeres'),\n \t array('id' => '18053','state_id' => '1307','name' => 'La Crau'),\n \t array('id' => '18054','state_id' => '1307','name' => 'La Garde'),\n \t array('id' => '18055','state_id' => '1307','name' => 'La Seyne-sur-Mer'),\n \t array('id' => '18056','state_id' => '1307','name' => 'La Valette-du-Var'),\n \t array('id' => '18057','state_id' => '1307','name' => 'Le Pradet'),\n \t array('id' => '18058','state_id' => '1307','name' => 'Ollioules'),\n \t array('id' => '18059','state_id' => '1307','name' => 'Roquebrune-sur-Argens'),\n \t array('id' => '18060','state_id' => '1307','name' => 'Saint-Maximin-la-Sainte-Baume'),\n \t array('id' => '18061','state_id' => '1307','name' => 'Saint-Raphael'),\n \t array('id' => '18062','state_id' => '1307','name' => 'Sainte-Maxime'),\n \t array('id' => '18063','state_id' => '1307','name' => 'Sanary-sur-Mer'),\n \t array('id' => '18064','state_id' => '1307','name' => 'Six-Fours-les-Plages'),\n \t array('id' => '18065','state_id' => '1307','name' => 'Sollies-Pont'),\n \t array('id' => '18066','state_id' => '1307','name' => 'Toulon'),\n \t array('id' => '18067','state_id' => '1308','name' => 'Apt'),\n \t array('id' => '18068','state_id' => '1308','name' => 'Avignon'),\n \t array('id' => '18069','state_id' => '1308','name' => 'Bollene'),\n \t array('id' => '18070','state_id' => '1308','name' => 'Carpentras'),\n \t array('id' => '18071','state_id' => '1308','name' => 'Cavaillon'),\n \t array('id' => '18072','state_id' => '1308','name' => 'L\\'Isle-sur-la-Sorgue'),\n \t array('id' => '18073','state_id' => '1308','name' => 'Le Pontet'),\n \t array('id' => '18074','state_id' => '1308','name' => 'Orange'),\n \t array('id' => '18075','state_id' => '1308','name' => 'Pertuis'),\n \t array('id' => '18076','state_id' => '1308','name' => 'Sorgues'),\n \t array('id' => '18077','state_id' => '1308','name' => 'Valreas'),\n \t array('id' => '18078','state_id' => '1309','name' => 'Vellise'),\n \t array('id' => '18079','state_id' => '1310','name' => 'Challans'),\n \t array('id' => '18080','state_id' => '1310','name' => 'Chateau-d\\'Olonne'),\n \t array('id' => '18081','state_id' => '1310','name' => 'Fontenay-le-Comte'),\n \t array('id' => '18082','state_id' => '1310','name' => 'La Chasnis'),\n \t array('id' => '18083','state_id' => '1310','name' => 'La Roche-sur-Yon'),\n \t array('id' => '18084','state_id' => '1310','name' => 'Les Herbiers'),\n \t array('id' => '18085','state_id' => '1310','name' => 'Les Sables-d\\'Olonne'),\n \t array('id' => '18086','state_id' => '1310','name' => 'Longeville-sur-Mer'),\n \t array('id' => '18087','state_id' => '1311','name' => 'Chatellerault'),\n \t array('id' => '18088','state_id' => '1311','name' => 'Poitiers'),\n \t array('id' => '18089','state_id' => '1312','name' => 'Epinal'),\n \t array('id' => '18090','state_id' => '1312','name' => 'Gerardmer'),\n \t array('id' => '18091','state_id' => '1312','name' => 'Remiremont'),\n \t array('id' => '18092','state_id' => '1312','name' => 'Saint-Die'),\n \t array('id' => '18093','state_id' => '1313','name' => 'Auxerre'),\n \t array('id' => '18094','state_id' => '1313','name' => 'Avallon'),\n \t array('id' => '18095','state_id' => '1313','name' => 'Joigny'),\n \t array('id' => '18096','state_id' => '1313','name' => 'Sens'),\n \t array('id' => '18097','state_id' => '1314','name' => 'Acheres'),\n \t array('id' => '18098','state_id' => '1314','name' => 'Andresy'),\n \t array('id' => '18099','state_id' => '1314','name' => 'Aubergenville'),\n \t array('id' => '18100','state_id' => '1314','name' => 'Bois-d\\'Arcy'),\n \t array('id' => '18101','state_id' => '1314','name' => 'Carrieres-sous-Poissy'),\n \t array('id' => '18102','state_id' => '1314','name' => 'Carrieres-sur-Seine'),\n \t array('id' => '18103','state_id' => '1314','name' => 'Chanteloup-les-Vignes'),\n \t array('id' => '18104','state_id' => '1314','name' => 'Chatou'),\n \t array('id' => '18105','state_id' => '1314','name' => 'Conflans-Sainte-Honorine'),\n \t array('id' => '18106','state_id' => '1314','name' => 'Croissy-sur-Seine'),\n \t array('id' => '18107','state_id' => '1314','name' => 'Elancourt'),\n \t array('id' => '18108','state_id' => '1314','name' => 'Fontenay-le-Fleury'),\n \t array('id' => '18109','state_id' => '1314','name' => 'Guyancourt'),\n \t array('id' => '18110','state_id' => '1314','name' => 'Houilles'),\n \t array('id' => '18111','state_id' => '1314','name' => 'La Celle-Saint-Cloud'),\n \t array('id' => '18112','state_id' => '1314','name' => 'Le Chesnay'),\n \t array('id' => '18113','state_id' => '1314','name' => 'Le Pecq'),\n \t array('id' => '18114','state_id' => '1314','name' => 'Le Vesinet'),\n \t array('id' => '18115','state_id' => '1314','name' => 'Les Clayes-sous-Bois'),\n \t array('id' => '18116','state_id' => '1314','name' => 'Les Mureaux'),\n \t array('id' => '18117','state_id' => '1314','name' => 'Limay'),\n \t array('id' => '18118','state_id' => '1314','name' => 'Maisons-Laffitte'),\n \t array('id' => '18119','state_id' => '1314','name' => 'Mantes-la-Jolie'),\n \t array('id' => '18120','state_id' => '1314','name' => 'Mantes-la-Ville'),\n \t array('id' => '18121','state_id' => '1314','name' => 'Marly-le-Roi'),\n \t array('id' => '18122','state_id' => '1314','name' => 'Maurepas'),\n \t array('id' => '18123','state_id' => '1314','name' => 'Montesson'),\n \t array('id' => '18124','state_id' => '1314','name' => 'Montigny-le-Bretonneux'),\n \t array('id' => '18125','state_id' => '1314','name' => 'Plaisir'),\n \t array('id' => '18126','state_id' => '1314','name' => 'Poissy'),\n \t array('id' => '18127','state_id' => '1314','name' => 'Rambouillet'),\n \t array('id' => '18128','state_id' => '1314','name' => 'Saint-Cyr-l\\'Ecole'),\n \t array('id' => '18129','state_id' => '1314','name' => 'Saint-Germain-en-Laye'),\n \t array('id' => '18130','state_id' => '1314','name' => 'Sartrouville'),\n \t array('id' => '18131','state_id' => '1314','name' => 'Trappes'),\n \t array('id' => '18132','state_id' => '1314','name' => 'Triel-sur-Seine'),\n \t array('id' => '18133','state_id' => '1314','name' => 'Velizy-Villacoublay'),\n \t array('id' => '18134','state_id' => '1314','name' => 'Verneuil-sur-Seine'),\n \t array('id' => '18135','state_id' => '1314','name' => 'Versailles'),\n \t array('id' => '18136','state_id' => '1314','name' => 'Viroflay'),\n \t array('id' => '18137','state_id' => '1314','name' => 'Voisins-le-Bretonneux'),\n \t array('id' => '18138','state_id' => '1315','name' => 'Camopi'),\n \t array('id' => '18139','state_id' => '1315','name' => 'Cayenne'),\n \t array('id' => '18140','state_id' => '1315','name' => 'Iracoubo'),\n \t array('id' => '18141','state_id' => '1315','name' => 'Kourou'),\n \t array('id' => '18142','state_id' => '1315','name' => 'Macouria'),\n \t array('id' => '18143','state_id' => '1315','name' => 'Matoury'),\n \t array('id' => '18144','state_id' => '1315','name' => 'Remire-Montjoly'),\n \t array('id' => '18145','state_id' => '1315','name' => 'Roura'),\n \t array('id' => '18146','state_id' => '1315','name' => 'Saint-Georges'),\n \t array('id' => '18147','state_id' => '1315','name' => 'Sinnamary'),\n \t array('id' => '18148','state_id' => '1316','name' => 'Apatou'),\n \t array('id' => '18149','state_id' => '1316','name' => 'Grand-Santi'),\n \t array('id' => '18150','state_id' => '1316','name' => 'Mana'),\n \t array('id' => '18151','state_id' => '1316','name' => 'Maripasoula'),\n \t array('id' => '18152','state_id' => '1316','name' => 'Saint-Laurent-du-Maroni'),\n \t array('id' => '18153','state_id' => '1319','name' => 'Atuona'),\n \t array('id' => '18154','state_id' => '1319','name' => 'Fatu-Hiva'),\n \t array('id' => '18155','state_id' => '1319','name' => 'Hakahao'),\n \t array('id' => '18156','state_id' => '1319','name' => 'Hakamaii'),\n \t array('id' => '18157','state_id' => '1319','name' => 'Hatiheu'),\n \t array('id' => '18158','state_id' => '1319','name' => 'Tahuata'),\n \t array('id' => '18159','state_id' => '1319','name' => 'Taiohae'),\n \t array('id' => '18160','state_id' => '1319','name' => 'Taipivai'),\n \t array('id' => '18161','state_id' => '1319','name' => 'Ua-Huka'),\n \t array('id' => '18162','state_id' => '1320','name' => 'Ahe'),\n \t array('id' => '18163','state_id' => '1320','name' => 'Amanu'),\n \t array('id' => '18164','state_id' => '1320','name' => 'Anaa'),\n \t array('id' => '18165','state_id' => '1320','name' => 'Apataki'),\n \t array('id' => '18166','state_id' => '1320','name' => 'Arutua'),\n \t array('id' => '18167','state_id' => '1320','name' => 'Faaite'),\n \t array('id' => '18168','state_id' => '1320','name' => 'Fakahima'),\n \t array('id' => '18169','state_id' => '1320','name' => 'Fakarava'),\n \t array('id' => '18170','state_id' => '1320','name' => 'Fangatau'),\n \t array('id' => '18171','state_id' => '1320','name' => 'Hao'),\n \t array('id' => '18172','state_id' => '1320','name' => 'Hereheretue'),\n \t array('id' => '18173','state_id' => '1320','name' => 'Hikueru'),\n \t array('id' => '18174','state_id' => '1320','name' => 'Katiu'),\n \t array('id' => '18175','state_id' => '1320','name' => 'Kauehi'),\n \t array('id' => '18176','state_id' => '1320','name' => 'Kaukura'),\n \t array('id' => '18177','state_id' => '1320','name' => 'Makatea'),\n \t array('id' => '18178','state_id' => '1320','name' => 'Makemo'),\n \t array('id' => '18179','state_id' => '1320','name' => 'Manihi'),\n \t array('id' => '18180','state_id' => '1320','name' => 'Marokau'),\n \t array('id' => '18181','state_id' => '1320','name' => 'Napuka'),\n \t array('id' => '18182','state_id' => '1320','name' => 'Niau'),\n \t array('id' => '18183','state_id' => '1320','name' => 'Nukutavake'),\n \t array('id' => '18184','state_id' => '1320','name' => 'Puamau'),\n \t array('id' => '18185','state_id' => '1320','name' => 'Pukapuka'),\n \t array('id' => '18186','state_id' => '1320','name' => 'Pukarua'),\n \t array('id' => '18187','state_id' => '1320','name' => 'Rangiroa'),\n \t array('id' => '18188','state_id' => '1320','name' => 'Raroia'),\n \t array('id' => '18189','state_id' => '1320','name' => 'Reao'),\n \t array('id' => '18190','state_id' => '1320','name' => 'Rikitea'),\n \t array('id' => '18191','state_id' => '1320','name' => 'Taenga'),\n \t array('id' => '18192','state_id' => '1320','name' => 'Takapoto'),\n \t array('id' => '18193','state_id' => '1320','name' => 'Takaroa'),\n \t array('id' => '18194','state_id' => '1320','name' => 'Tatakoto'),\n \t array('id' => '18195','state_id' => '1320','name' => 'Tepoto'),\n \t array('id' => '18196','state_id' => '1320','name' => 'Tikehau'),\n \t array('id' => '18197','state_id' => '1320','name' => 'Tureia'),\n \t array('id' => '18198','state_id' => '1320','name' => 'Vahitahi'),\n \t array('id' => '18199','state_id' => '1320','name' => 'Vairaatea'),\n \t array('id' => '18200','state_id' => '1321','name' => 'Amaru'),\n \t array('id' => '18201','state_id' => '1321','name' => 'Anapoto'),\n \t array('id' => '18202','state_id' => '1321','name' => 'Anatonu'),\n \t array('id' => '18203','state_id' => '1321','name' => 'Auti'),\n \t array('id' => '18204','state_id' => '1321','name' => 'Avera'),\n \t array('id' => '18205','state_id' => '1321','name' => 'Mahu'),\n \t array('id' => '18206','state_id' => '1321','name' => 'Mataura'),\n \t array('id' => '18207','state_id' => '1321','name' => 'Moerai'),\n \t array('id' => '18208','state_id' => '1321','name' => 'Mutuaura'),\n \t array('id' => '18209','state_id' => '1321','name' => 'Rairua'),\n \t array('id' => '18210','state_id' => '1321','name' => 'Rapa'),\n \t array('id' => '18211','state_id' => '1321','name' => 'Taahuaia'),\n \t array('id' => '18212','state_id' => '1321','name' => 'Vaiuru'),\n \t array('id' => '18213','state_id' => '1322','name' => 'Martin-de-Vivies'),\n \t array('id' => '18214','state_id' => '1324','name' => 'Port-aux-Francais'),\n \t array('id' => '18215','state_id' => '1325','name' => 'Cocobeach'),\n \t array('id' => '18216','state_id' => '1325','name' => 'Kango'),\n \t array('id' => '18217','state_id' => '1325','name' => 'Libreville'),\n \t array('id' => '18218','state_id' => '1325','name' => 'Nkan'),\n \t array('id' => '18219','state_id' => '1325','name' => 'Ntoum'),\n \t array('id' => '18220','state_id' => '1326','name' => 'Lekoni'),\n \t array('id' => '18221','state_id' => '1326','name' => 'Masuku'),\n \t array('id' => '18222','state_id' => '1326','name' => 'Moanda'),\n \t array('id' => '18223','state_id' => '1326','name' => 'Mounana'),\n \t array('id' => '18224','state_id' => '1326','name' => 'Okandja'),\n \t array('id' => '18225','state_id' => '1327','name' => 'Lambarene'),\n \t array('id' => '18226','state_id' => '1327','name' => 'Ndjole'),\n \t array('id' => '18227','state_id' => '1328','name' => 'Fougamou'),\n \t array('id' => '18228','state_id' => '1328','name' => 'Mbigou'),\n \t array('id' => '18229','state_id' => '1328','name' => 'Mimongo'),\n \t array('id' => '18230','state_id' => '1328','name' => 'Mouila'),\n \t array('id' => '18231','state_id' => '1328','name' => 'Ndende'),\n \t array('id' => '18232','state_id' => '1329','name' => 'Mayumba'),\n \t array('id' => '18233','state_id' => '1329','name' => 'Tchibanga'),\n \t array('id' => '18234','state_id' => '1329','name' => 'Tsogni'),\n \t array('id' => '18235','state_id' => '1330','name' => 'Booue'),\n \t array('id' => '18236','state_id' => '1330','name' => 'Makokou'),\n \t array('id' => '18237','state_id' => '1330','name' => 'Mekambo'),\n \t array('id' => '18238','state_id' => '1331','name' => 'Koulamoutou'),\n \t array('id' => '18239','state_id' => '1331','name' => 'Lastoursville'),\n \t array('id' => '18240','state_id' => '1332','name' => 'Gamba'),\n \t array('id' => '18241','state_id' => '1332','name' => 'Omboue'),\n \t array('id' => '18242','state_id' => '1332','name' => 'Port-Gentil'),\n \t array('id' => '18243','state_id' => '1332','name' => 'Sette Cama'),\n \t array('id' => '18244','state_id' => '1333','name' => 'Bitam'),\n \t array('id' => '18245','state_id' => '1333','name' => 'Lalara'),\n \t array('id' => '18246','state_id' => '1333','name' => 'Medouneu'),\n \t array('id' => '18247','state_id' => '1333','name' => 'Minvoul'),\n \t array('id' => '18248','state_id' => '1333','name' => 'Mitzic'),\n \t array('id' => '18249','state_id' => '1333','name' => 'Oyem'),\n \t array('id' => '18250','state_id' => '1334','name' => 'Banjul'),\n \t array('id' => '18251','state_id' => '1335','name' => 'Basse'),\n \t array('id' => '18252','state_id' => '1335','name' => 'Gambissara'),\n \t array('id' => '18253','state_id' => '1335','name' => 'Sabi'),\n \t array('id' => '18254','state_id' => '1335','name' => 'Salikeni'),\n \t array('id' => '18255','state_id' => '1336','name' => 'Brikama'),\n \t array('id' => '18256','state_id' => '1336','name' => 'Brufut'),\n \t array('id' => '18257','state_id' => '1336','name' => 'Gunjur'),\n \t array('id' => '18258','state_id' => '1336','name' => 'Sukuta'),\n \t array('id' => '18259','state_id' => '1337','name' => 'Bansang'),\n \t array('id' => '18260','state_id' => '1337','name' => 'Janjanbureh'),\n \t array('id' => '18261','state_id' => '1338','name' => 'Bakau'),\n \t array('id' => '18262','state_id' => '1338','name' => 'Serekunda'),\n \t array('id' => '18263','state_id' => '1339','name' => 'Barra'),\n \t array('id' => '18264','state_id' => '1339','name' => 'Essau'),\n \t array('id' => '18265','state_id' => '1339','name' => 'Farafenni'),\n \t array('id' => '18266','state_id' => '1339','name' => 'Kerewan'),\n \t array('id' => '18267','state_id' => '1339','name' => 'Lamin'),\n \t array('id' => '18268','state_id' => '1340','name' => 'Kuntaur'),\n \t array('id' => '18269','state_id' => '1341','name' => 'Mansakonko'),\n \t array('id' => '18270','state_id' => '1342','name' => 'Ahali Atoni'),\n \t array('id' => '18271','state_id' => '1342','name' => 'Bihvinta'),\n \t array('id' => '18272','state_id' => '1342','name' => 'Gagra'),\n \t array('id' => '18273','state_id' => '1342','name' => 'Gali'),\n \t array('id' => '18274','state_id' => '1342','name' => 'Gudauta'),\n \t array('id' => '18275','state_id' => '1342','name' => 'Gulripshi'),\n \t array('id' => '18276','state_id' => '1342','name' => 'Ochamchira'),\n \t array('id' => '18277','state_id' => '1342','name' => 'Suhumi'),\n \t array('id' => '18278','state_id' => '1342','name' => 'Tkvarcheli'),\n \t array('id' => '18279','state_id' => '1343','name' => 'Batumi'),\n \t array('id' => '18280','state_id' => '1343','name' => 'Dioknisi'),\n \t array('id' => '18281','state_id' => '1343','name' => 'Kobuleti'),\n \t array('id' => '18282','state_id' => '1343','name' => 'Mahindzhauri'),\n \t array('id' => '18283','state_id' => '1344','name' => 'Lanchhuti'),\n \t array('id' => '18284','state_id' => '1344','name' => 'Ozurgeti'),\n \t array('id' => '18285','state_id' => '1345','name' => 'Bagdadi'),\n \t array('id' => '18286','state_id' => '1345','name' => 'Chaltubo'),\n \t array('id' => '18287','state_id' => '1345','name' => 'Chiatura'),\n \t array('id' => '18288','state_id' => '1345','name' => 'Honi'),\n \t array('id' => '18289','state_id' => '1345','name' => 'Kutaisi'),\n \t array('id' => '18290','state_id' => '1345','name' => 'Sachhere'),\n \t array('id' => '18291','state_id' => '1345','name' => 'Samtredia'),\n \t array('id' => '18292','state_id' => '1345','name' => 'Terzhola'),\n \t array('id' => '18293','state_id' => '1345','name' => 'Tkibuli'),\n \t array('id' => '18294','state_id' => '1345','name' => 'Vani'),\n \t array('id' => '18295','state_id' => '1345','name' => 'Zestaponi'),\n \t array('id' => '18296','state_id' => '1346','name' => 'Ahmeta'),\n \t array('id' => '18297','state_id' => '1346','name' => 'Cnori'),\n \t array('id' => '18298','state_id' => '1346','name' => 'Dedoplisckaro'),\n \t array('id' => '18299','state_id' => '1346','name' => 'Gurdzhaani'),\n \t array('id' => '18300','state_id' => '1346','name' => 'Kvareli'),\n \t array('id' => '18301','state_id' => '1346','name' => 'Lagodehi'),\n \t array('id' => '18302','state_id' => '1346','name' => 'Sagaredzho'),\n \t array('id' => '18303','state_id' => '1346','name' => 'Signahi'),\n \t array('id' => '18304','state_id' => '1346','name' => 'Telavi'),\n \t array('id' => '18305','state_id' => '1348','name' => 'Dusheti'),\n \t array('id' => '18306','state_id' => '1348','name' => 'Mcheta'),\n \t array('id' => '18307','state_id' => '1349','name' => 'Ambrolauri'),\n \t array('id' => '18308','state_id' => '1349','name' => 'Cageri'),\n \t array('id' => '18309','state_id' => '1349','name' => 'Oni'),\n \t array('id' => '18310','state_id' => '1351','name' => 'Ahalcihe'),\n \t array('id' => '18311','state_id' => '1351','name' => 'Ahalkalaki'),\n \t array('id' => '18312','state_id' => '1351','name' => 'Borzhomi'),\n \t array('id' => '18313','state_id' => '1351','name' => 'Ninocminda'),\n \t array('id' => '18314','state_id' => '1351','name' => 'Vale'),\n \t array('id' => '18315','state_id' => '1353','name' => 'Tbilisi'),\n \t array('id' => '18316','state_id' => '1355','name' => 'Aalen'),\n \t array('id' => '18317','state_id' => '1355','name' => 'Achern'),\n \t array('id' => '18318','state_id' => '1355','name' => 'Aichtal'),\n \t array('id' => '18319','state_id' => '1355','name' => 'Albstadt'),\n \t array('id' => '18320','state_id' => '1355','name' => 'Aldingen'),\n \t array('id' => '18321','state_id' => '1355','name' => 'Allmersbach'),\n \t array('id' => '18322','state_id' => '1355','name' => 'Alpirsbach'),\n \t array('id' => '18323','state_id' => '1355','name' => 'Altensteig'),\n \t array('id' => '18324','state_id' => '1355','name' => 'Altlussheim'),\n \t array('id' => '18325','state_id' => '1355','name' => 'Ammerbuch'),\n \t array('id' => '18326','state_id' => '1355','name' => 'Appenweier'),\n \t array('id' => '18327','state_id' => '1355','name' => 'Asperg'),\n \t array('id' => '18328','state_id' => '1355','name' => 'Backnang'),\n \t array('id' => '18329','state_id' => '1355','name' => 'Bad Durrheim'),\n \t array('id' => '18330','state_id' => '1355','name' => 'Bad Friedrichshall'),\n \t array('id' => '18331','state_id' => '1355','name' => 'Bad Krozingen'),\n \t array('id' => '18332','state_id' => '1355','name' => 'Bad Liebenzell'),\n \t array('id' => '18333','state_id' => '1355','name' => 'Bad Mergentheim'),\n \t array('id' => '18334','state_id' => '1355','name' => 'Bad Rappenau'),\n \t array('id' => '18335','state_id' => '1355','name' => 'Bad Sackingen'),\n \t array('id' => '18336','state_id' => '1355','name' => 'Bad Schonborn'),\n \t array('id' => '18337','state_id' => '1355','name' => 'Bad Urach'),\n \t array('id' => '18338','state_id' => '1355','name' => 'Bad Waldsee'),\n \t array('id' => '18339','state_id' => '1355','name' => 'Bad Wurzach'),\n \t array('id' => '18340','state_id' => '1355','name' => 'Baden-Baden'),\n \t array('id' => '18341','state_id' => '1355','name' => 'Bahlingen'),\n \t array('id' => '18342','state_id' => '1355','name' => 'Baiersbronn'),\n \t array('id' => '18343','state_id' => '1355','name' => 'Balgheim'),\n \t array('id' => '18344','state_id' => '1355','name' => 'Balingen'),\n \t array('id' => '18345','state_id' => '1355','name' => 'Ballrechten-Dottingen'),\n \t array('id' => '18346','state_id' => '1355','name' => 'Besigheim'),\n \t array('id' => '18347','state_id' => '1355','name' => 'Biberach'),\n \t array('id' => '18348','state_id' => '1355','name' => 'Bietigheim-Bissingen'),\n \t array('id' => '18349','state_id' => '1355','name' => 'Binzen'),\n \t array('id' => '18350','state_id' => '1355','name' => 'Birkenfeld'),\n \t array('id' => '18351','state_id' => '1355','name' => 'Bisingen'),\n \t array('id' => '18352','state_id' => '1355','name' => 'Bitz'),\n \t array('id' => '18353','state_id' => '1355','name' => 'Blaubeuren'),\n \t array('id' => '18354','state_id' => '1355','name' => 'Blaustein'),\n \t array('id' => '18355','state_id' => '1355','name' => 'Blumberg'),\n \t array('id' => '18356','state_id' => '1355','name' => 'Boblingen'),\n \t array('id' => '18357','state_id' => '1355','name' => 'Bodelshausen'),\n \t array('id' => '18358','state_id' => '1355','name' => 'Bonndorf'),\n \t array('id' => '18359','state_id' => '1355','name' => 'Bonnigheim'),\n \t array('id' => '18360','state_id' => '1355','name' => 'Bopfingen'),\n \t array('id' => '18361','state_id' => '1355','name' => 'Bottingen'),\n \t array('id' => '18362','state_id' => '1355','name' => 'Brackenheim'),\n \t array('id' => '18363','state_id' => '1355','name' => 'Breisach'),\n \t array('id' => '18364','state_id' => '1355','name' => 'Bretten'),\n \t array('id' => '18365','state_id' => '1355','name' => 'Bretzfeld'),\n \t array('id' => '18366','state_id' => '1355','name' => 'Bruchsal'),\n \t array('id' => '18367','state_id' => '1355','name' => 'Bruhl'),\n \t array('id' => '18368','state_id' => '1355','name' => 'Buchen'),\n \t array('id' => '18369','state_id' => '1355','name' => 'Buchenbach'),\n \t array('id' => '18370','state_id' => '1355','name' => 'Buhl'),\n \t array('id' => '18371','state_id' => '1355','name' => 'Burgstetten'),\n \t array('id' => '18372','state_id' => '1355','name' => 'Burladingen'),\n \t array('id' => '18373','state_id' => '1355','name' => 'Calw'),\n \t array('id' => '18374','state_id' => '1355','name' => 'Crailsheim'),\n \t array('id' => '18375','state_id' => '1355','name' => 'Denkendorf'),\n \t array('id' => '18376','state_id' => '1355','name' => 'Denzlingen'),\n \t array('id' => '18377','state_id' => '1355','name' => 'Dettingen'),\n \t array('id' => '18378','state_id' => '1355','name' => 'Dietenheim'),\n \t array('id' => '18379','state_id' => '1355','name' => 'Ditzingen'),\n \t array('id' => '18380','state_id' => '1355','name' => 'Donaueschingen'),\n \t array('id' => '18381','state_id' => '1355','name' => 'Donzdorf'),\n \t array('id' => '18382','state_id' => '1355','name' => 'Dornhan'),\n \t array('id' => '18383','state_id' => '1355','name' => 'Dornstadt'),\n \t array('id' => '18384','state_id' => '1355','name' => 'Dornstetten'),\n \t array('id' => '18385','state_id' => '1355','name' => 'Dossenheim'),\n \t array('id' => '18386','state_id' => '1355','name' => 'Durbheim'),\n \t array('id' => '18387','state_id' => '1355','name' => 'Durmersheim'),\n \t array('id' => '18388','state_id' => '1355','name' => 'Eberbach'),\n \t array('id' => '18389','state_id' => '1355','name' => 'Ebersbach'),\n \t array('id' => '18390','state_id' => '1355','name' => 'Edingen'),\n \t array('id' => '18391','state_id' => '1355','name' => 'Edingen-Neckarhausen'),\n \t array('id' => '18392','state_id' => '1355','name' => 'Eggenstein-Leopoldshafen'),\n \t array('id' => '18393','state_id' => '1355','name' => 'Ehingen'),\n \t array('id' => '18394','state_id' => '1355','name' => 'Eislingen'),\n \t array('id' => '18395','state_id' => '1355','name' => 'Ellhofen'),\n \t array('id' => '18396','state_id' => '1355','name' => 'Ellwangen'),\n \t array('id' => '18397','state_id' => '1355','name' => 'Emmendingen'),\n \t array('id' => '18398','state_id' => '1355','name' => 'Emmingen-Liptingen'),\n \t array('id' => '18399','state_id' => '1355','name' => 'Engen'),\n \t array('id' => '18400','state_id' => '1355','name' => 'Eningen'),\n \t array('id' => '18401','state_id' => '1355','name' => 'Eppelheim'),\n \t array('id' => '18402','state_id' => '1355','name' => 'Eppingen'),\n \t array('id' => '18403','state_id' => '1355','name' => 'Erbach'),\n \t array('id' => '18404','state_id' => '1355','name' => 'Eriskirch'),\n \t array('id' => '18405','state_id' => '1355','name' => 'Eschach'),\n \t array('id' => '18406','state_id' => '1355','name' => 'Esslingen'),\n \t array('id' => '18407','state_id' => '1355','name' => 'Ettenheim'),\n \t array('id' => '18408','state_id' => '1355','name' => 'Ettlingen'),\n \t array('id' => '18409','state_id' => '1355','name' => 'Fellbach'),\n \t array('id' => '18410','state_id' => '1355','name' => 'Filderstadt'),\n \t array('id' => '18411','state_id' => '1355','name' => 'Freiberg'),\n \t array('id' => '18412','state_id' => '1355','name' => 'Freiburg'),\n \t array('id' => '18413','state_id' => '1355','name' => 'Freudenstadt'),\n \t array('id' => '18414','state_id' => '1355','name' => 'Frickenhausen'),\n \t array('id' => '18415','state_id' => '1355','name' => 'Fridingen'),\n \t array('id' => '18416','state_id' => '1355','name' => 'Friedrichshafen'),\n \t array('id' => '18417','state_id' => '1355','name' => 'Friesenheim'),\n \t array('id' => '18418','state_id' => '1355','name' => 'Frittlingen'),\n \t array('id' => '18419','state_id' => '1355','name' => 'Furtwangen'),\n \t array('id' => '18420','state_id' => '1355','name' => 'Gaggenau'),\n \t array('id' => '18421','state_id' => '1355','name' => 'Gaildorf'),\n \t array('id' => '18422','state_id' => '1355','name' => 'Gartringen'),\n \t array('id' => '18423','state_id' => '1355','name' => 'Gaufelden'),\n \t array('id' => '18424','state_id' => '1355','name' => 'Geislingen'),\n \t array('id' => '18425','state_id' => '1355','name' => 'Gengenbach'),\n \t array('id' => '18426','state_id' => '1355','name' => 'Gerlingen'),\n \t array('id' => '18427','state_id' => '1355','name' => 'Gernsbach'),\n \t array('id' => '18428','state_id' => '1355','name' => 'Gerstetten'),\n \t array('id' => '18429','state_id' => '1355','name' => 'Giengen'),\n \t array('id' => '18430','state_id' => '1355','name' => 'Goppingen'),\n \t array('id' => '18431','state_id' => '1355','name' => 'Gottmadingen'),\n \t array('id' => '18432','state_id' => '1355','name' => 'Graben-Neudorf'),\n \t array('id' => '18433','state_id' => '1355','name' => 'Grafenberg'),\n \t array('id' => '18434','state_id' => '1355','name' => 'Grafenhausen'),\n \t array('id' => '18435','state_id' => '1355','name' => 'Grenzach-Wyhlen'),\n \t array('id' => '18436','state_id' => '1355','name' => 'GroBbettlingen'),\n \t array('id' => '18437','state_id' => '1355','name' => 'Grunkraut'),\n \t array('id' => '18438','state_id' => '1355','name' => 'Gschwend'),\n \t array('id' => '18439','state_id' => '1355','name' => 'Guglingen'),\n \t array('id' => '18440','state_id' => '1355','name' => 'Gundelfingen'),\n \t array('id' => '18441','state_id' => '1355','name' => 'Gutach'),\n \t array('id' => '18442','state_id' => '1355','name' => 'Haigerloch'),\n \t array('id' => '18443','state_id' => '1355','name' => 'Haiterbach'),\n \t array('id' => '18444','state_id' => '1355','name' => 'Harmersabch'),\n \t array('id' => '18445','state_id' => '1355','name' => 'Hausach'),\n \t array('id' => '18446','state_id' => '1355','name' => 'Hechingen'),\n \t array('id' => '18447','state_id' => '1355','name' => 'Heddesheim'),\n \t array('id' => '18448','state_id' => '1355','name' => 'Heidelberg'),\n \t array('id' => '18449','state_id' => '1355','name' => 'Heidenheim'),\n \t array('id' => '18450','state_id' => '1355','name' => 'Heilbronn'),\n \t array('id' => '18451','state_id' => '1355','name' => 'Hemsbach'),\n \t array('id' => '18452','state_id' => '1355','name' => 'Herbrechtingen'),\n \t array('id' => '18453','state_id' => '1355','name' => 'Herrenberg'),\n \t array('id' => '18454','state_id' => '1355','name' => 'Heubach'),\n \t array('id' => '18455','state_id' => '1355','name' => 'Hirschberg'),\n \t array('id' => '18456','state_id' => '1355','name' => 'Hockenheim'),\n \t array('id' => '18457','state_id' => '1355','name' => 'Holzgerlingen'),\n \t array('id' => '18458','state_id' => '1355','name' => 'Horb'),\n \t array('id' => '18459','state_id' => '1355','name' => 'Hufingen'),\n \t array('id' => '18460','state_id' => '1355','name' => 'Huttlingen'),\n \t array('id' => '18461','state_id' => '1355','name' => 'Isny'),\n \t array('id' => '18462','state_id' => '1355','name' => 'Ispringen'),\n \t array('id' => '18463','state_id' => '1355','name' => 'Jungingen'),\n \t array('id' => '18464','state_id' => '1355','name' => 'Karlsbad'),\n \t array('id' => '18465','state_id' => '1355','name' => 'Karlsruhe'),\n \t array('id' => '18466','state_id' => '1355','name' => 'Kehl'),\n \t array('id' => '18467','state_id' => '1355','name' => 'Kernen'),\n \t array('id' => '18468','state_id' => '1355','name' => 'Ketsch'),\n \t array('id' => '18469','state_id' => '1355','name' => 'Kieselbronn'),\n \t array('id' => '18470','state_id' => '1355','name' => 'Kirchberg an der Jagst'),\n \t array('id' => '18471','state_id' => '1355','name' => 'Kirchheim'),\n \t array('id' => '18472','state_id' => '1355','name' => 'Kirchzarten'),\n \t array('id' => '18473','state_id' => '1355','name' => 'Kisslegg'),\n \t array('id' => '18474','state_id' => '1355','name' => 'Klettgau'),\n \t array('id' => '18475','state_id' => '1355','name' => 'Kongen'),\n \t array('id' => '18476','state_id' => '1355','name' => 'Konigsbach-Stein'),\n \t array('id' => '18477','state_id' => '1355','name' => 'Konigsbronn'),\n \t array('id' => '18478','state_id' => '1355','name' => 'Konstanz'),\n \t array('id' => '18479','state_id' => '1355','name' => 'Korb'),\n \t array('id' => '18480','state_id' => '1355','name' => 'Korntal-Munchingen'),\n \t array('id' => '18481','state_id' => '1355','name' => 'Kornwestheim'),\n \t array('id' => '18482','state_id' => '1355','name' => 'Kraichtal'),\n \t array('id' => '18483','state_id' => '1355','name' => 'Kressbronn an Bodensee'),\n \t array('id' => '18484','state_id' => '1355','name' => 'Kronau'),\n \t array('id' => '18485','state_id' => '1355','name' => 'Kuessaberg'),\n \t array('id' => '18486','state_id' => '1355','name' => 'Kunzelsau'),\n \t array('id' => '18487','state_id' => '1355','name' => 'Ladenburg'),\n \t array('id' => '18488','state_id' => '1355','name' => 'Lahr'),\n \t array('id' => '18489','state_id' => '1355','name' => 'Laichingen'),\n \t array('id' => '18490','state_id' => '1355','name' => 'Langenau'),\n \t array('id' => '18491','state_id' => '1355','name' => 'Lauda-Konigshofen'),\n \t array('id' => '18492','state_id' => '1355','name' => 'Lauffen'),\n \t array('id' => '18493','state_id' => '1355','name' => 'Laupheim'),\n \t array('id' => '18494','state_id' => '1355','name' => 'Leimen'),\n \t array('id' => '18495','state_id' => '1355','name' => 'Leinfelden-Echterdingen'),\n \t array('id' => '18496','state_id' => '1355','name' => 'Leingarten'),\n \t array('id' => '18497','state_id' => '1355','name' => 'Lenningen'),\n \t array('id' => '18498','state_id' => '1355','name' => 'Lenzkirch'),\n \t array('id' => '18499','state_id' => '1355','name' => 'Leonberg'),\n \t array('id' => '18500','state_id' => '1355','name' => 'Leutenbach'),\n \t array('id' => '18501','state_id' => '1355','name' => 'Leutkirch'),\n \t array('id' => '18502','state_id' => '1355','name' => 'Lichtenstein'),\n \t array('id' => '18503','state_id' => '1355','name' => 'Linkenheim-Hochstetten'),\n \t array('id' => '18504','state_id' => '1355','name' => 'Lorch'),\n \t array('id' => '18505','state_id' => '1355','name' => 'Lorrach'),\n \t array('id' => '18506','state_id' => '1355','name' => 'Ludwigsburg'),\n \t array('id' => '18507','state_id' => '1355','name' => 'Malsch'),\n \t array('id' => '18508','state_id' => '1355','name' => 'Mannheim'),\n \t array('id' => '18509','state_id' => '1355','name' => 'Marbach'),\n \t array('id' => '18510','state_id' => '1355','name' => 'Markdorf'),\n \t array('id' => '18511','state_id' => '1355','name' => 'Markgroningen'),\n \t array('id' => '18512','state_id' => '1355','name' => 'Maulburg'),\n \t array('id' => '18513','state_id' => '1355','name' => 'MeBstetten'),\n \t array('id' => '18514','state_id' => '1355','name' => 'Meckenbeuren'),\n \t array('id' => '18515','state_id' => '1355','name' => 'Meckesheim'),\n \t array('id' => '18516','state_id' => '1355','name' => 'Meersburg'),\n \t array('id' => '18517','state_id' => '1355','name' => 'Mengen'),\n \t array('id' => '18518','state_id' => '1355','name' => 'Metzingen'),\n \t array('id' => '18519','state_id' => '1355','name' => 'Mockmuhl'),\n \t array('id' => '18520','state_id' => '1355','name' => 'Moglingen'),\n \t array('id' => '18521','state_id' => '1355','name' => 'Monsheim'),\n \t array('id' => '18522','state_id' => '1355','name' => 'Mosbach'),\n \t array('id' => '18523','state_id' => '1355','name' => 'Mossingen'),\n \t array('id' => '18524','state_id' => '1355','name' => 'Muhlacker'),\n \t array('id' => '18525','state_id' => '1355','name' => 'Mullheim'),\n \t array('id' => '18526','state_id' => '1355','name' => 'Munsingen'),\n \t array('id' => '18527','state_id' => '1355','name' => 'Murrhardt'),\n \t array('id' => '18528','state_id' => '1355','name' => 'Nagold'),\n \t array('id' => '18529','state_id' => '1355','name' => 'Neckargemund'),\n \t array('id' => '18530','state_id' => '1355','name' => 'Neckarsulm'),\n \t array('id' => '18531','state_id' => '1355','name' => 'Neresheim'),\n \t array('id' => '18532','state_id' => '1355','name' => 'Neuenburg'),\n \t array('id' => '18533','state_id' => '1355','name' => 'Neuhausen'),\n \t array('id' => '18534','state_id' => '1355','name' => 'Niederstetten'),\n \t array('id' => '18535','state_id' => '1355','name' => 'Niefern-Oschelbronn'),\n \t array('id' => '18536','state_id' => '1355','name' => 'NuBloch'),\n \t array('id' => '18537','state_id' => '1355','name' => 'Nurtingen'),\n \t array('id' => '18538','state_id' => '1355','name' => 'Oberhausen-Rheinhausen'),\n \t array('id' => '18539','state_id' => '1355','name' => 'Oberkirch'),\n \t array('id' => '18540','state_id' => '1355','name' => 'Oberndorf'),\n \t array('id' => '18541','state_id' => '1355','name' => 'Oberstenfeld'),\n \t array('id' => '18542','state_id' => '1355','name' => 'Obersulm'),\n \t array('id' => '18543','state_id' => '1355','name' => 'Ochsenhausen'),\n \t array('id' => '18544','state_id' => '1355','name' => 'Offenburg'),\n \t array('id' => '18545','state_id' => '1355','name' => 'Ofterdingen'),\n \t array('id' => '18546','state_id' => '1355','name' => 'Oftersheim'),\n \t array('id' => '18547','state_id' => '1355','name' => 'Oggelshausen'),\n \t array('id' => '18548','state_id' => '1355','name' => 'Ohringen'),\n \t array('id' => '18549','state_id' => '1355','name' => 'Olbronn-Durrn'),\n \t array('id' => '18550','state_id' => '1355','name' => 'Oppenweiler'),\n \t array('id' => '18551','state_id' => '1355','name' => 'Ostfildern'),\n \t array('id' => '18552','state_id' => '1355','name' => 'Ostringen'),\n \t array('id' => '18553','state_id' => '1355','name' => 'Otisheim'),\n \t array('id' => '18554','state_id' => '1355','name' => 'Pfalzgrafenweiler'),\n \t array('id' => '18555','state_id' => '1355','name' => 'Pfinztal'),\n \t array('id' => '18556','state_id' => '1355','name' => 'Pforzheim'),\n \t array('id' => '18557','state_id' => '1355','name' => 'Pfullendorf'),\n \t array('id' => '18558','state_id' => '1355','name' => 'Pfullingen'),\n \t array('id' => '18559','state_id' => '1355','name' => 'Philippsburg'),\n \t array('id' => '18560','state_id' => '1355','name' => 'Plankstadt'),\n \t array('id' => '18561','state_id' => '1355','name' => 'Pleidelsheim'),\n \t array('id' => '18562','state_id' => '1355','name' => 'Pliezhausen'),\n \t array('id' => '18563','state_id' => '1355','name' => 'Plochingen'),\n \t array('id' => '18564','state_id' => '1355','name' => 'Pluderhausen'),\n \t array('id' => '18565','state_id' => '1355','name' => 'Radolfzell'),\n \t array('id' => '18566','state_id' => '1355','name' => 'Rastatt'),\n \t array('id' => '18567','state_id' => '1355','name' => 'Ravensburg'),\n \t array('id' => '18568','state_id' => '1355','name' => 'Reilingen'),\n \t array('id' => '18569','state_id' => '1355','name' => 'Remchingen'),\n \t array('id' => '18570','state_id' => '1355','name' => 'Remseck'),\n \t array('id' => '18571','state_id' => '1355','name' => 'Remshalden'),\n \t array('id' => '18572','state_id' => '1355','name' => 'Renchen'),\n \t array('id' => '18573','state_id' => '1355','name' => 'Renningen'),\n \t array('id' => '18574','state_id' => '1355','name' => 'Reutlingen'),\n \t array('id' => '18575','state_id' => '1355','name' => 'Rheinau'),\n \t array('id' => '18576','state_id' => '1355','name' => 'Rheinfelden'),\n \t array('id' => '18577','state_id' => '1355','name' => 'Rheinmunster'),\n \t array('id' => '18578','state_id' => '1355','name' => 'Rheinstetten'),\n \t array('id' => '18579','state_id' => '1355','name' => 'Riederich'),\n \t array('id' => '18580','state_id' => '1355','name' => 'Riedlingen'),\n \t array('id' => '18581','state_id' => '1355','name' => 'Rielasingen-Worblingen'),\n \t array('id' => '18582','state_id' => '1355','name' => 'Rosenfeld'),\n \t array('id' => '18583','state_id' => '1355','name' => 'Rottenburg'),\n \t array('id' => '18584','state_id' => '1355','name' => 'Rottweil'),\n \t array('id' => '18585','state_id' => '1355','name' => 'Rudersberg'),\n \t array('id' => '18586','state_id' => '1355','name' => 'Rutesheim'),\n \t array('id' => '18587','state_id' => '1355','name' => 'Sachsenheim'),\n \t array('id' => '18588','state_id' => '1355','name' => 'Salem'),\n \t array('id' => '18589','state_id' => '1355','name' => 'Sandhausen'),\n \t array('id' => '18590','state_id' => '1355','name' => 'Sankt Georgen'),\n \t array('id' => '18591','state_id' => '1355','name' => 'Sankt Leon-Rot'),\n \t array('id' => '18592','state_id' => '1355','name' => 'Saulgau'),\n \t array('id' => '18593','state_id' => '1355','name' => 'Scheer'),\n \t array('id' => '18594','state_id' => '1355','name' => 'Schlierbach'),\n \t array('id' => '18595','state_id' => '1355','name' => 'Schonaich'),\n \t array('id' => '18596','state_id' => '1355','name' => 'Schopfheim'),\n \t array('id' => '18597','state_id' => '1355','name' => 'Schorndorf'),\n \t array('id' => '18598','state_id' => '1355','name' => 'Schramberg'),\n \t array('id' => '18599','state_id' => '1355','name' => 'Schriesheim'),\n \t array('id' => '18600','state_id' => '1355','name' => 'Schwabisch Gmund'),\n \t array('id' => '18601','state_id' => '1355','name' => 'Schwabisch Hall'),\n \t array('id' => '18602','state_id' => '1355','name' => 'Schwaigern'),\n \t array('id' => '18603','state_id' => '1355','name' => 'Schwetzingen'),\n \t array('id' => '18604','state_id' => '1355','name' => 'Schwieberdingen'),\n \t array('id' => '18605','state_id' => '1355','name' => 'Seitingen-Oberflacht'),\n \t array('id' => '18606','state_id' => '1355','name' => 'Sexau'),\n \t array('id' => '18607','state_id' => '1355','name' => 'Sigmaringen'),\n \t array('id' => '18608','state_id' => '1355','name' => 'Sindelfingen'),\n \t array('id' => '18609','state_id' => '1355','name' => 'Singen'),\n \t array('id' => '18610','state_id' => '1355','name' => 'Sinsheim'),\n \t array('id' => '18611','state_id' => '1355','name' => 'Sinzheim'),\n \t array('id' => '18612','state_id' => '1355','name' => 'Sonnenbuhl'),\n \t array('id' => '18613','state_id' => '1355','name' => 'Sontheim'),\n \t array('id' => '18614','state_id' => '1355','name' => 'Spaichingen'),\n \t array('id' => '18615','state_id' => '1355','name' => 'Stegen'),\n \t array('id' => '18616','state_id' => '1355','name' => 'Steinen'),\n \t array('id' => '18617','state_id' => '1355','name' => 'Steinheim'),\n \t array('id' => '18618','state_id' => '1355','name' => 'Steinmauern'),\n \t array('id' => '18619','state_id' => '1355','name' => 'Stockach'),\n \t array('id' => '18620','state_id' => '1355','name' => 'Straubenhardt'),\n \t array('id' => '18621','state_id' => '1355','name' => 'Stutensee'),\n \t array('id' => '18622','state_id' => '1355','name' => 'Stuttgart'),\n \t array('id' => '18623','state_id' => '1355','name' => 'SuBen'),\n \t array('id' => '18624','state_id' => '1355','name' => 'Sulz'),\n \t array('id' => '18625','state_id' => '1355','name' => 'Sulzfeld'),\n \t array('id' => '18626','state_id' => '1355','name' => 'Tamm'),\n \t array('id' => '18627','state_id' => '1355','name' => 'Tauberbischofsheim'),\n \t array('id' => '18628','state_id' => '1355','name' => 'Teningen'),\n \t array('id' => '18629','state_id' => '1355','name' => 'Tettnang'),\n \t array('id' => '18630','state_id' => '1355','name' => 'Titisee-Neustadt'),\n \t array('id' => '18631','state_id' => '1355','name' => 'Trossingen'),\n \t array('id' => '18632','state_id' => '1355','name' => 'Tubingen'),\n \t array('id' => '18633','state_id' => '1355','name' => 'Tuningen'),\n \t array('id' => '18634','state_id' => '1355','name' => 'Tuttlingen'),\n \t array('id' => '18635','state_id' => '1355','name' => 'Uberlingen'),\n \t array('id' => '18636','state_id' => '1355','name' => 'Ubstadt-Weiher'),\n \t array('id' => '18637','state_id' => '1355','name' => 'Uhingen'),\n \t array('id' => '18638','state_id' => '1355','name' => 'Ulm'),\n \t array('id' => '18639','state_id' => '1355','name' => 'Umkirch'),\n \t array('id' => '18640','state_id' => '1355','name' => 'Vaihingen'),\n \t array('id' => '18641','state_id' => '1355','name' => 'Villingen-Schwenningen'),\n \t array('id' => '18642','state_id' => '1355','name' => 'Villingendorf'),\n \t array('id' => '18643','state_id' => '1355','name' => 'Waghausel'),\n \t array('id' => '18644','state_id' => '1355','name' => 'Waiblingen'),\n \t array('id' => '18645','state_id' => '1355','name' => 'Waldbronn'),\n \t array('id' => '18646','state_id' => '1355','name' => 'Waldkirch'),\n \t array('id' => '18647','state_id' => '1355','name' => 'Waldlaubersheim'),\n \t array('id' => '18648','state_id' => '1355','name' => 'Waldshut-Tiengen'),\n \t array('id' => '18649','state_id' => '1355','name' => 'Walldorf'),\n \t array('id' => '18650','state_id' => '1355','name' => 'Walldurn'),\n \t array('id' => '18651','state_id' => '1355','name' => 'Walzbachtal'),\n \t array('id' => '18652','state_id' => '1355','name' => 'Wangen'),\n \t array('id' => '18653','state_id' => '1355','name' => 'Wehr'),\n \t array('id' => '18654','state_id' => '1355','name' => 'Weikersheim'),\n \t array('id' => '18655','state_id' => '1355','name' => 'Weil'),\n \t array('id' => '18656','state_id' => '1355','name' => 'Weil am Rhein'),\n \t array('id' => '18657','state_id' => '1355','name' => 'Weil der Stadt'),\n \t array('id' => '18658','state_id' => '1355','name' => 'Weil im Schonbuch'),\n \t array('id' => '18659','state_id' => '1355','name' => 'Weilheim'),\n \t array('id' => '18660','state_id' => '1355','name' => 'Weingarten'),\n \t array('id' => '18661','state_id' => '1355','name' => 'Weinheim'),\n \t array('id' => '18662','state_id' => '1355','name' => 'Weinsberg'),\n \t array('id' => '18663','state_id' => '1355','name' => 'Weinstadt'),\n \t array('id' => '18664','state_id' => '1355','name' => 'Wellendingen'),\n \t array('id' => '18665','state_id' => '1355','name' => 'Welzheim'),\n \t array('id' => '18666','state_id' => '1355','name' => 'Wendlingen'),\n \t array('id' => '18667','state_id' => '1355','name' => 'Wernau'),\n \t array('id' => '18668','state_id' => '1355','name' => 'Wertheim'),\n \t array('id' => '18669','state_id' => '1355','name' => 'Wiesloch'),\n \t array('id' => '18670','state_id' => '1355','name' => 'Wildbad'),\n \t array('id' => '18671','state_id' => '1355','name' => 'Wildberg'),\n \t array('id' => '18672','state_id' => '1355','name' => 'Winnenden'),\n \t array('id' => '18673','state_id' => '1355','name' => 'Wolpertshausen'),\n \t array('id' => '18674','state_id' => '1355','name' => 'Zuzenhausen'),\n \t array('id' => '18675','state_id' => '1356','name' => 'Ahorn'),\n \t array('id' => '18676','state_id' => '1356','name' => 'Allershausen'),\n \t array('id' => '18677','state_id' => '1356','name' => 'Attenhofen'),\n \t array('id' => '18678','state_id' => '1356','name' => 'Bad Birnbach'),\n \t array('id' => '18679','state_id' => '1356','name' => 'Bad Endorf'),\n \t array('id' => '18680','state_id' => '1356','name' => 'Bad Gronenbach'),\n \t array('id' => '18681','state_id' => '1356','name' => 'Barbing'),\n \t array('id' => '18682','state_id' => '1356','name' => 'Benediktbeuern'),\n \t array('id' => '18683','state_id' => '1356','name' => 'Breitenberg'),\n \t array('id' => '18684','state_id' => '1356','name' => 'Bruckberg'),\n \t array('id' => '18685','state_id' => '1356','name' => 'Brunnthal'),\n \t array('id' => '18686','state_id' => '1356','name' => 'Burgheim'),\n \t array('id' => '18687','state_id' => '1356','name' => 'Chiemsee'),\n \t array('id' => '18688','state_id' => '1356','name' => 'Emersacker'),\n \t array('id' => '18689','state_id' => '1356','name' => 'Eresing'),\n \t array('id' => '18690','state_id' => '1356','name' => 'Fahrenzhausen'),\n \t array('id' => '18691','state_id' => '1356','name' => 'Faulbach'),\n \t array('id' => '18692','state_id' => '1356','name' => 'Finning'),\n \t array('id' => '18693','state_id' => '1356','name' => 'Forstinning'),\n \t array('id' => '18694','state_id' => '1356','name' => 'Georgensgmund'),\n \t array('id' => '18695','state_id' => '1356','name' => 'Haldenwang'),\n \t array('id' => '18696','state_id' => '1356','name' => 'Heideck'),\n \t array('id' => '18697','state_id' => '1356','name' => 'Heimenkirch'),\n \t array('id' => '18698','state_id' => '1356','name' => 'Hergensweiler'),\n \t array('id' => '18699','state_id' => '1356','name' => 'Hirschau'),\n \t array('id' => '18700','state_id' => '1356','name' => 'Iffeldorf'),\n \t array('id' => '18701','state_id' => '1356','name' => 'Karlstein'),\n \t array('id' => '18702','state_id' => '1356','name' => 'Kleinheubach'),\n \t array('id' => '18703','state_id' => '1356','name' => 'Kleinwallstadt'),\n \t array('id' => '18704','state_id' => '1356','name' => 'Kotz'),\n \t array('id' => '18705','state_id' => '1356','name' => 'Krailling'),\n \t array('id' => '18706','state_id' => '1356','name' => 'Langenbach'),\n \t array('id' => '18707','state_id' => '1356','name' => 'Laudenbach'),\n \t array('id' => '18708','state_id' => '1356','name' => 'Leutershausen'),\n \t array('id' => '18709','state_id' => '1356','name' => 'Mammendorf'),\n \t array('id' => '18710','state_id' => '1356','name' => 'Mombris'),\n \t array('id' => '18711','state_id' => '1356','name' => 'Munnerstadt'),\n \t array('id' => '18712','state_id' => '1356','name' => 'Neu-Ulm'),\n \t array('id' => '18713','state_id' => '1356','name' => 'Niederlauer'),\n \t array('id' => '18714','state_id' => '1356','name' => 'Obernburg'),\n \t array('id' => '18715','state_id' => '1356','name' => 'Oberpfaffenhofen'),\n \t array('id' => '18716','state_id' => '1356','name' => 'Ostallgau'),\n \t array('id' => '18717','state_id' => '1356','name' => 'Prittriching'),\n \t array('id' => '18718','state_id' => '1356','name' => 'Prutting'),\n \t array('id' => '18719','state_id' => '1356','name' => 'Pullach'),\n \t array('id' => '18720','state_id' => '1356','name' => 'Putzbrunn'),\n \t array('id' => '18721','state_id' => '1356','name' => 'Randersacker'),\n \t array('id' => '18722','state_id' => '1356','name' => 'Rednitzhembach'),\n \t array('id' => '18723','state_id' => '1356','name' => 'Ronsberg'),\n \t array('id' => '18724','state_id' => '1356','name' => 'Ruckersdorf'),\n \t array('id' => '18725','state_id' => '1356','name' => 'Schaufling'),\n \t array('id' => '18726','state_id' => '1356','name' => 'Schonberg'),\n \t array('id' => '18727','state_id' => '1356','name' => 'Seefeld'),\n \t array('id' => '18728','state_id' => '1356','name' => 'Sengenthal'),\n \t array('id' => '18729','state_id' => '1356','name' => 'Sondheim v.d.Rhon'),\n \t array('id' => '18730','state_id' => '1356','name' => 'Steinwiesen'),\n \t array('id' => '18731','state_id' => '1356','name' => 'Stockheim'),\n \t array('id' => '18732','state_id' => '1356','name' => 'Tagmersheim'),\n \t array('id' => '18733','state_id' => '1356','name' => 'Uettingen'),\n \t array('id' => '18734','state_id' => '1356','name' => 'Unterfohring'),\n \t array('id' => '18735','state_id' => '1356','name' => 'Weibensberg'),\n \t array('id' => '18736','state_id' => '1356','name' => 'Wiesthal'),\n \t array('id' => '18737','state_id' => '1356','name' => 'Wildflecken'),\n \t array('id' => '18738','state_id' => '1356','name' => 'Wolfertschwenden'),\n \t array('id' => '18739','state_id' => '1356','name' => 'Zorneding'),\n \t array('id' => '18740','state_id' => '1357','name' => 'Abensberg'),\n \t array('id' => '18741','state_id' => '1357','name' => 'Aichach'),\n \t array('id' => '18742','state_id' => '1357','name' => 'Ainring'),\n \t array('id' => '18743','state_id' => '1357','name' => 'Altdorf'),\n \t array('id' => '18744','state_id' => '1357','name' => 'Altotting'),\n \t array('id' => '18745','state_id' => '1357','name' => 'Altusried'),\n \t array('id' => '18746','state_id' => '1357','name' => 'Alzenau'),\n \t array('id' => '18747','state_id' => '1357','name' => 'Amberg'),\n \t array('id' => '18748','state_id' => '1357','name' => 'Amerang'),\n \t array('id' => '18749','state_id' => '1357','name' => 'Ansbach'),\n \t array('id' => '18750','state_id' => '1357','name' => 'Aschaffenburg'),\n \t array('id' => '18751','state_id' => '1357','name' => 'Augsburg'),\n \t array('id' => '18752','state_id' => '1357','name' => 'Bad Aibling'),\n \t array('id' => '18753','state_id' => '1357','name' => 'Bad Kissingen'),\n \t array('id' => '18754','state_id' => '1357','name' => 'Bad Neustadt'),\n \t array('id' => '18755','state_id' => '1357','name' => 'Bad Reichenhall'),\n \t array('id' => '18756','state_id' => '1357','name' => 'Bad Tolz'),\n \t array('id' => '18757','state_id' => '1357','name' => 'Bad Windsheim'),\n \t array('id' => '18758','state_id' => '1357','name' => 'Bad Worishofen'),\n \t array('id' => '18759','state_id' => '1357','name' => 'Bamberg'),\n \t array('id' => '18760','state_id' => '1357','name' => 'Bayreuth'),\n \t array('id' => '18761','state_id' => '1357','name' => 'Bobingen'),\n \t array('id' => '18762','state_id' => '1357','name' => 'Bogen'),\n \t array('id' => '18763','state_id' => '1357','name' => 'Bruckmuhl'),\n \t array('id' => '18764','state_id' => '1357','name' => 'Buchloe'),\n \t array('id' => '18765','state_id' => '1357','name' => 'Burghausen'),\n \t array('id' => '18766','state_id' => '1357','name' => 'Burgkirchen'),\n \t array('id' => '18767','state_id' => '1357','name' => 'Burglengenfeld'),\n \t array('id' => '18768','state_id' => '1357','name' => 'Burgthann'),\n \t array('id' => '18769','state_id' => '1357','name' => 'Buttenheim'),\n \t array('id' => '18770','state_id' => '1357','name' => 'Cadolzburg'),\n \t array('id' => '18771','state_id' => '1357','name' => 'Castell'),\n \t array('id' => '18772','state_id' => '1357','name' => 'Cham'),\n \t array('id' => '18773','state_id' => '1357','name' => 'Coburg'),\n \t array('id' => '18774','state_id' => '1357','name' => 'Dachau'),\n \t array('id' => '18775','state_id' => '1357','name' => 'Deggendorf'),\n \t array('id' => '18776','state_id' => '1357','name' => 'DieBen'),\n \t array('id' => '18777','state_id' => '1357','name' => 'Diedorf'),\n \t array('id' => '18778','state_id' => '1357','name' => 'Dietmannsried'),\n \t array('id' => '18779','state_id' => '1357','name' => 'Dietramszell'),\n \t array('id' => '18780','state_id' => '1357','name' => 'Dillingen'),\n \t array('id' => '18781','state_id' => '1357','name' => 'Dingolfing'),\n \t array('id' => '18782','state_id' => '1357','name' => 'Dinkelsbuhl'),\n \t array('id' => '18783','state_id' => '1357','name' => 'Dombuhl'),\n \t array('id' => '18784','state_id' => '1357','name' => 'Donauworth'),\n \t array('id' => '18785','state_id' => '1357','name' => 'Dorfen'),\n \t array('id' => '18786','state_id' => '1357','name' => 'Ebersberg'),\n \t array('id' => '18787','state_id' => '1357','name' => 'Eching'),\n \t array('id' => '18788','state_id' => '1357','name' => 'Eckental'),\n \t array('id' => '18789','state_id' => '1357','name' => 'Eggenfelden'),\n \t array('id' => '18790','state_id' => '1357','name' => 'Eichenau'),\n \t array('id' => '18791','state_id' => '1357','name' => 'Eichstatt'),\n \t array('id' => '18792','state_id' => '1357','name' => 'Elchingen'),\n \t array('id' => '18793','state_id' => '1357','name' => 'Erding'),\n \t array('id' => '18794','state_id' => '1357','name' => 'Ergolding'),\n \t array('id' => '18795','state_id' => '1357','name' => 'Erlangen'),\n \t array('id' => '18796','state_id' => '1357','name' => 'Erlenbach'),\n \t array('id' => '18797','state_id' => '1357','name' => 'Essenbach'),\n \t array('id' => '18798','state_id' => '1357','name' => 'Feldafing'),\n \t array('id' => '18799','state_id' => '1357','name' => 'Feldkirchen-Westerham'),\n \t array('id' => '18800','state_id' => '1357','name' => 'Feucht'),\n \t array('id' => '18801','state_id' => '1357','name' => 'Feuchtwangen'),\n \t array('id' => '18802','state_id' => '1357','name' => 'Forchheim'),\n \t array('id' => '18803','state_id' => '1357','name' => 'Freilassing'),\n \t array('id' => '18804','state_id' => '1357','name' => 'Freising'),\n \t array('id' => '18805','state_id' => '1357','name' => 'Fridolfing'),\n \t array('id' => '18806','state_id' => '1357','name' => 'Friedberg'),\n \t array('id' => '18807','state_id' => '1357','name' => 'Furstenfeldbruck'),\n \t array('id' => '18808','state_id' => '1357','name' => 'Furth'),\n \t array('id' => '18809','state_id' => '1357','name' => 'Furth im Wald'),\n \t array('id' => '18810','state_id' => '1357','name' => 'Fussen'),\n \t array('id' => '18811','state_id' => '1357','name' => 'Gachenbach'),\n \t array('id' => '18812','state_id' => '1357','name' => 'Gaimersheim'),\n \t array('id' => '18813','state_id' => '1357','name' => 'Garching'),\n \t array('id' => '18814','state_id' => '1357','name' => 'Garmisch-Partenkirchen'),\n \t array('id' => '18815','state_id' => '1357','name' => 'Gauting'),\n \t array('id' => '18816','state_id' => '1357','name' => 'Gemunden'),\n \t array('id' => '18817','state_id' => '1357','name' => 'Geretsried'),\n \t array('id' => '18818','state_id' => '1357','name' => 'Germering'),\n \t array('id' => '18819','state_id' => '1357','name' => 'Gersthofen'),\n \t array('id' => '18820','state_id' => '1357','name' => 'Gilching'),\n \t array('id' => '18821','state_id' => '1357','name' => 'Goldbach'),\n \t array('id' => '18822','state_id' => '1357','name' => 'Grafelfing'),\n \t array('id' => '18823','state_id' => '1357','name' => 'Grafenau'),\n \t array('id' => '18824','state_id' => '1357','name' => 'Grafing'),\n \t array('id' => '18825','state_id' => '1357','name' => 'GroBostheim'),\n \t array('id' => '18826','state_id' => '1357','name' => 'Grobenstadt'),\n \t array('id' => '18827','state_id' => '1357','name' => 'Grobenzell'),\n \t array('id' => '18828','state_id' => '1357','name' => 'Grunwald'),\n \t array('id' => '18829','state_id' => '1357','name' => 'Gunzburg'),\n \t array('id' => '18830','state_id' => '1357','name' => 'Gunzenhausen'),\n \t array('id' => '18831','state_id' => '1357','name' => 'HaBfurt'),\n \t array('id' => '18832','state_id' => '1357','name' => 'Haar'),\n \t array('id' => '18833','state_id' => '1357','name' => 'Hammelburg'),\n \t array('id' => '18834','state_id' => '1357','name' => 'Hasloch'),\n \t array('id' => '18835','state_id' => '1357','name' => 'Hauzenberg'),\n \t array('id' => '18836','state_id' => '1357','name' => 'Helmbrechts'),\n \t array('id' => '18837','state_id' => '1357','name' => 'Henfenfeld'),\n \t array('id' => '18838','state_id' => '1357','name' => 'Hersbruck'),\n \t array('id' => '18839','state_id' => '1357','name' => 'Herzogenaurach'),\n \t array('id' => '18840','state_id' => '1357','name' => 'Hilpoltstein'),\n \t array('id' => '18841','state_id' => '1357','name' => 'Hirschaid'),\n \t array('id' => '18842','state_id' => '1357','name' => 'Hochstadt'),\n \t array('id' => '18843','state_id' => '1357','name' => 'Hof'),\n \t array('id' => '18844','state_id' => '1357','name' => 'Holzkirchen'),\n \t array('id' => '18845','state_id' => '1357','name' => 'Hosbach'),\n \t array('id' => '18846','state_id' => '1357','name' => 'Illertissen'),\n \t array('id' => '18847','state_id' => '1357','name' => 'Immenstadt'),\n \t array('id' => '18848','state_id' => '1357','name' => 'Ingolstadt'),\n \t array('id' => '18849','state_id' => '1357','name' => 'Inning'),\n \t array('id' => '18850','state_id' => '1357','name' => 'Ismaning'),\n \t array('id' => '18851','state_id' => '1357','name' => 'Karlsfeld'),\n \t array('id' => '18852','state_id' => '1357','name' => 'Karlstadt'),\n \t array('id' => '18853','state_id' => '1357','name' => 'Kaufbeuren'),\n \t array('id' => '18854','state_id' => '1357','name' => 'Kelheim'),\n \t array('id' => '18855','state_id' => '1357','name' => 'Kempten'),\n \t array('id' => '18856','state_id' => '1357','name' => 'Kiefersfelden'),\n \t array('id' => '18857','state_id' => '1357','name' => 'Kirchheim'),\n \t array('id' => '18858','state_id' => '1357','name' => 'Kissing'),\n \t array('id' => '18859','state_id' => '1357','name' => 'Kitzingen'),\n \t array('id' => '18860','state_id' => '1357','name' => 'Kleinostheim'),\n \t array('id' => '18861','state_id' => '1357','name' => 'Klingenberg'),\n \t array('id' => '18862','state_id' => '1357','name' => 'Kolbermoor'),\n \t array('id' => '18863','state_id' => '1357','name' => 'Konigsbrunn'),\n \t array('id' => '18864','state_id' => '1357','name' => 'Kreuzwertheim'),\n \t array('id' => '18865','state_id' => '1357','name' => 'Kronach'),\n \t array('id' => '18866','state_id' => '1357','name' => 'Krumbach'),\n \t array('id' => '18867','state_id' => '1357','name' => 'Kulmbach'),\n \t array('id' => '18868','state_id' => '1357','name' => 'Kummersbruck'),\n \t array('id' => '18869','state_id' => '1357','name' => 'Landau'),\n \t array('id' => '18870','state_id' => '1357','name' => 'Landsberg'),\n \t array('id' => '18871','state_id' => '1357','name' => 'Landshut'),\n \t array('id' => '18872','state_id' => '1357','name' => 'Langenzenn'),\n \t array('id' => '18873','state_id' => '1357','name' => 'Lappersdorf'),\n \t array('id' => '18874','state_id' => '1357','name' => 'Lauf'),\n \t array('id' => '18875','state_id' => '1357','name' => 'Lauingen'),\n \t array('id' => '18876','state_id' => '1357','name' => 'Leinburg'),\n \t array('id' => '18877','state_id' => '1357','name' => 'Lenggries'),\n \t array('id' => '18878','state_id' => '1357','name' => 'Lichtenfels'),\n \t array('id' => '18879','state_id' => '1357','name' => 'Lindach'),\n \t array('id' => '18880','state_id' => '1357','name' => 'Lindau'),\n \t array('id' => '18881','state_id' => '1357','name' => 'Lindenberg'),\n \t array('id' => '18882','state_id' => '1357','name' => 'Lohr'),\n \t array('id' => '18883','state_id' => '1357','name' => 'Mainburg'),\n \t array('id' => '18884','state_id' => '1357','name' => 'Maisach'),\n \t array('id' => '18885','state_id' => '1357','name' => 'Manching'),\n \t array('id' => '18886','state_id' => '1357','name' => 'Markt Schwaben'),\n \t array('id' => '18887','state_id' => '1357','name' => 'Marktheidenfeld'),\n \t array('id' => '18888','state_id' => '1357','name' => 'Marktoberdorf'),\n \t array('id' => '18889','state_id' => '1357','name' => 'Marktredwitz'),\n \t array('id' => '18890','state_id' => '1357','name' => 'Maxhutte-Haidhof'),\n \t array('id' => '18891','state_id' => '1357','name' => 'Meitingen'),\n \t array('id' => '18892','state_id' => '1357','name' => 'Memmingen'),\n \t array('id' => '18893','state_id' => '1357','name' => 'Mering'),\n \t array('id' => '18894','state_id' => '1357','name' => 'Miesbach'),\n \t array('id' => '18895','state_id' => '1357','name' => 'Miltenberg'),\n \t array('id' => '18896','state_id' => '1357','name' => 'Mindelheim'),\n \t array('id' => '18897','state_id' => '1357','name' => 'Moosburg'),\n \t array('id' => '18898','state_id' => '1357','name' => 'Muhldorf'),\n \t array('id' => '18899','state_id' => '1357','name' => 'Munchberg'),\n \t array('id' => '18900','state_id' => '1357','name' => 'Munchen'),\n \t array('id' => '18901','state_id' => '1357','name' => 'Munningen'),\n \t array('id' => '18902','state_id' => '1357','name' => 'Murnau'),\n \t array('id' => '18903','state_id' => '1357','name' => 'Naila'),\n \t array('id' => '18904','state_id' => '1357','name' => 'Neubiberg'),\n \t array('id' => '18905','state_id' => '1357','name' => 'Neuburg'),\n \t array('id' => '18906','state_id' => '1357','name' => 'Neufahrn'),\n \t array('id' => '18907','state_id' => '1357','name' => 'Neumarkt'),\n \t array('id' => '18908','state_id' => '1357','name' => 'Neuried'),\n \t array('id' => '18909','state_id' => '1357','name' => 'NeusaB'),\n \t array('id' => '18910','state_id' => '1357','name' => 'Neustadt'),\n \t array('id' => '18911','state_id' => '1357','name' => 'Neutraubling'),\n \t array('id' => '18912','state_id' => '1357','name' => 'Nordlingen'),\n \t array('id' => '18913','state_id' => '1357','name' => 'Nuremberg'),\n \t array('id' => '18914','state_id' => '1357','name' => 'Nurnberg'),\n \t array('id' => '18915','state_id' => '1357','name' => 'Oberasbach'),\n \t array('id' => '18916','state_id' => '1357','name' => 'Oberhaching'),\n \t array('id' => '18917','state_id' => '1357','name' => 'OberschleiBheim'),\n \t array('id' => '18918','state_id' => '1357','name' => 'Oberstdorf'),\n \t array('id' => '18919','state_id' => '1357','name' => 'Ochsenfurt'),\n \t array('id' => '18920','state_id' => '1357','name' => 'Olching'),\n \t array('id' => '18921','state_id' => '1357','name' => 'Osterhofen'),\n \t array('id' => '18922','state_id' => '1357','name' => 'Ostheim'),\n \t array('id' => '18923','state_id' => '1357','name' => 'Ottobrunn'),\n \t array('id' => '18924','state_id' => '1357','name' => 'Parsberg'),\n \t array('id' => '18925','state_id' => '1357','name' => 'Passau'),\n \t array('id' => '18926','state_id' => '1357','name' => 'Pegnitz'),\n \t array('id' => '18927','state_id' => '1357','name' => 'PeiBenberg'),\n \t array('id' => '18928','state_id' => '1357','name' => 'Peiting'),\n \t array('id' => '18929','state_id' => '1357','name' => 'Pentling'),\n \t array('id' => '18930','state_id' => '1357','name' => 'Penzberg'),\n \t array('id' => '18931','state_id' => '1357','name' => 'Pfaffenhofen'),\n \t array('id' => '18932','state_id' => '1357','name' => 'Pfarrkirchen'),\n \t array('id' => '18933','state_id' => '1357','name' => 'Planegg'),\n \t array('id' => '18934','state_id' => '1357','name' => 'Plattling'),\n \t array('id' => '18935','state_id' => '1357','name' => 'Pocking'),\n \t array('id' => '18936','state_id' => '1357','name' => 'Poing'),\n \t array('id' => '18937','state_id' => '1357','name' => 'Polling'),\n \t array('id' => '18938','state_id' => '1357','name' => 'Pommelsbrunn'),\n \t array('id' => '18939','state_id' => '1357','name' => 'Prien'),\n \t array('id' => '18940','state_id' => '1357','name' => 'Puchheim'),\n \t array('id' => '18941','state_id' => '1357','name' => 'Rannersdorf'),\n \t array('id' => '18942','state_id' => '1357','name' => 'Raubling'),\n \t array('id' => '18943','state_id' => '1357','name' => 'Regen'),\n \t array('id' => '18944','state_id' => '1357','name' => 'Regensburg'),\n \t array('id' => '18945','state_id' => '1357','name' => 'Regenstauf'),\n \t array('id' => '18946','state_id' => '1357','name' => 'Rehau'),\n \t array('id' => '18947','state_id' => '1357','name' => 'Rodental'),\n \t array('id' => '18948','state_id' => '1357','name' => 'Roding'),\n \t array('id' => '18949','state_id' => '1357','name' => 'Rosenheim'),\n \t array('id' => '18950','state_id' => '1357','name' => 'Roth'),\n \t array('id' => '18951','state_id' => '1357','name' => 'Rothenbach'),\n \t array('id' => '18952','state_id' => '1357','name' => 'Rothenburg'),\n \t array('id' => '18953','state_id' => '1357','name' => 'Ruhstorf'),\n \t array('id' => '18954','state_id' => '1357','name' => 'Schnelldorf'),\n \t array('id' => '18955','state_id' => '1357','name' => 'Schongau'),\n \t array('id' => '18956','state_id' => '1357','name' => 'Schrobenhausen'),\n \t array('id' => '18957','state_id' => '1357','name' => 'Schwabach'),\n \t array('id' => '18958','state_id' => '1357','name' => 'Schwabmunchen'),\n \t array('id' => '18959','state_id' => '1357','name' => 'Schwandorf'),\n \t array('id' => '18960','state_id' => '1357','name' => 'Schwarzenbach'),\n \t array('id' => '18961','state_id' => '1357','name' => 'Schweinfurt'),\n \t array('id' => '18962','state_id' => '1357','name' => 'Selb'),\n \t array('id' => '18963','state_id' => '1357','name' => 'Selbitz'),\n \t array('id' => '18964','state_id' => '1357','name' => 'Senden'),\n \t array('id' => '18965','state_id' => '1357','name' => 'Simbach'),\n \t array('id' => '18966','state_id' => '1357','name' => 'Sonthofen'),\n \t array('id' => '18967','state_id' => '1357','name' => 'Spalt'),\n \t array('id' => '18968','state_id' => '1357','name' => 'Stadtbergen'),\n \t array('id' => '18969','state_id' => '1357','name' => 'Staffelstein'),\n \t array('id' => '18970','state_id' => '1357','name' => 'Starnberg'),\n \t array('id' => '18971','state_id' => '1357','name' => 'Stein'),\n \t array('id' => '18972','state_id' => '1357','name' => 'Stephanskirchen'),\n \t array('id' => '18973','state_id' => '1357','name' => 'Straubing'),\n \t array('id' => '18974','state_id' => '1357','name' => 'Sulzbach-Rosenberg'),\n \t array('id' => '18975','state_id' => '1357','name' => 'Taufkirchen'),\n \t array('id' => '18976','state_id' => '1357','name' => 'Thansau'),\n \t array('id' => '18977','state_id' => '1357','name' => 'Tirschenreuth'),\n \t array('id' => '18978','state_id' => '1357','name' => 'Toging'),\n \t array('id' => '18979','state_id' => '1357','name' => 'Traunreut'),\n \t array('id' => '18980','state_id' => '1357','name' => 'Traunstein'),\n \t array('id' => '18981','state_id' => '1357','name' => 'Treuchtlingen'),\n \t array('id' => '18982','state_id' => '1357','name' => 'Trostberg'),\n \t array('id' => '18983','state_id' => '1357','name' => 'Tutzing'),\n \t array('id' => '18984','state_id' => '1357','name' => 'Unterbergen'),\n \t array('id' => '18985','state_id' => '1357','name' => 'Unterhaching'),\n \t array('id' => '18986','state_id' => '1357','name' => 'UnterschleiBheim'),\n \t array('id' => '18987','state_id' => '1357','name' => 'Valley'),\n \t array('id' => '18988','state_id' => '1357','name' => 'Vaterstetten'),\n \t array('id' => '18989','state_id' => '1357','name' => 'Veitshochheim'),\n \t array('id' => '18990','state_id' => '1357','name' => 'Viechtach'),\n \t array('id' => '18991','state_id' => '1357','name' => 'Vilgertshofen'),\n \t array('id' => '18992','state_id' => '1357','name' => 'Vilsbiburg'),\n \t array('id' => '18993','state_id' => '1357','name' => 'Vilshofen'),\n \t array('id' => '18994','state_id' => '1357','name' => 'Vohringen'),\n \t array('id' => '18995','state_id' => '1357','name' => 'Volkach'),\n \t array('id' => '18996','state_id' => '1357','name' => 'Waldkirchen'),\n \t array('id' => '18997','state_id' => '1357','name' => 'Waldkraiburg'),\n \t array('id' => '18998','state_id' => '1357','name' => 'Walkertshofen'),\n \t array('id' => '18999','state_id' => '1357','name' => 'Wasserburg'),\n \t array('id' => '19000','state_id' => '1357','name' => 'WeiBenburg'),\n \t array('id' => '19001','state_id' => '1357','name' => 'WeiBenhorn'),\n \t array('id' => '19002','state_id' => '1357','name' => 'Weiden'),\n \t array('id' => '19003','state_id' => '1357','name' => 'Weidenberg'),\n \t array('id' => '19004','state_id' => '1357','name' => 'Weilheim'),\n \t array('id' => '19005','state_id' => '1357','name' => 'Wendelstein'),\n \t array('id' => '19006','state_id' => '1357','name' => 'Werneck'),\n \t array('id' => '19007','state_id' => '1357','name' => 'Wessling'),\n \t array('id' => '19008','state_id' => '1357','name' => 'Wolfratshausen'),\n \t array('id' => '19009','state_id' => '1357','name' => 'Wolnzach'),\n \t array('id' => '19010','state_id' => '1357','name' => 'Wunsiedel'),\n \t array('id' => '19011','state_id' => '1357','name' => 'Wurzburg'),\n \t array('id' => '19012','state_id' => '1357','name' => 'Zirndorf'),\n \t array('id' => '19013','state_id' => '1357','name' => 'Zwiesel'),\n \t array('id' => '19014','state_id' => '1359','name' => 'Berlin'),\n \t array('id' => '19015','state_id' => '1359','name' => 'Panketal'),\n \t array('id' => '19016','state_id' => '1359','name' => 'Steinfeld'),\n \t array('id' => '19017','state_id' => '1360','name' => 'Angermunde'),\n \t array('id' => '19018','state_id' => '1360','name' => 'Bad Freienwalde'),\n \t array('id' => '19019','state_id' => '1360','name' => 'Bad Liebenwerda'),\n \t array('id' => '19020','state_id' => '1360','name' => 'Barnim'),\n \t array('id' => '19021','state_id' => '1360','name' => 'Beeskow'),\n \t array('id' => '19022','state_id' => '1360','name' => 'Bernau'),\n \t array('id' => '19023','state_id' => '1360','name' => 'Blankenfelde'),\n \t array('id' => '19024','state_id' => '1360','name' => 'Brandenburg'),\n \t array('id' => '19025','state_id' => '1360','name' => 'Brieselang'),\n \t array('id' => '19026','state_id' => '1360','name' => 'Cottbus'),\n \t array('id' => '19027','state_id' => '1360','name' => 'Dahlewitz'),\n \t array('id' => '19028','state_id' => '1360','name' => 'Dahme'),\n \t array('id' => '19029','state_id' => '1360','name' => 'Eberswalde'),\n \t array('id' => '19030','state_id' => '1360','name' => 'Eisenhuttenstadt'),\n \t array('id' => '19031','state_id' => '1360','name' => 'Elsterwerda'),\n \t array('id' => '19032','state_id' => '1360','name' => 'Erkner'),\n \t array('id' => '19033','state_id' => '1360','name' => 'Falkensee'),\n \t array('id' => '19034','state_id' => '1360','name' => 'Finsterwalde'),\n \t array('id' => '19035','state_id' => '1360','name' => 'Forst'),\n \t array('id' => '19036','state_id' => '1360','name' => 'Frankfurt'),\n \t array('id' => '19037','state_id' => '1360','name' => 'Fredersdorf-Vogelsdorf'),\n \t array('id' => '19038','state_id' => '1360','name' => 'Furstenwalde'),\n \t array('id' => '19039','state_id' => '1360','name' => 'Glienicke'),\n \t array('id' => '19040','state_id' => '1360','name' => 'Gransee'),\n \t array('id' => '19041','state_id' => '1360','name' => 'GroBraschen'),\n \t array('id' => '19042','state_id' => '1360','name' => 'Guben'),\n \t array('id' => '19043','state_id' => '1360','name' => 'Heidesee'),\n \t array('id' => '19044','state_id' => '1360','name' => 'Hennigsdorf'),\n \t array('id' => '19045','state_id' => '1360','name' => 'Herzberg'),\n \t array('id' => '19046','state_id' => '1360','name' => 'Hohen Neuendorf'),\n \t array('id' => '19047','state_id' => '1360','name' => 'Jacobsdorf'),\n \t array('id' => '19048','state_id' => '1360','name' => 'Juterbog'),\n \t array('id' => '19049','state_id' => '1360','name' => 'Kleinmachnow'),\n \t array('id' => '19050','state_id' => '1360','name' => 'Kolkwitz'),\n \t array('id' => '19051','state_id' => '1360','name' => 'Konigs Wusterhausen'),\n \t array('id' => '19052','state_id' => '1360','name' => 'Kyritz'),\n \t array('id' => '19053','state_id' => '1360','name' => 'Lauchhammer'),\n \t array('id' => '19054','state_id' => '1360','name' => 'Lubben'),\n \t array('id' => '19055','state_id' => '1360','name' => 'Lubbenau'),\n \t array('id' => '19056','state_id' => '1360','name' => 'Luckenwalde'),\n \t array('id' => '19057','state_id' => '1360','name' => 'Ludwigsfelde'),\n \t array('id' => '19058','state_id' => '1360','name' => 'Nauen'),\n \t array('id' => '19059','state_id' => '1360','name' => 'Neuenhagen'),\n \t array('id' => '19060','state_id' => '1360','name' => 'Neuruppin'),\n \t array('id' => '19061','state_id' => '1360','name' => 'Oranienburg'),\n \t array('id' => '19062','state_id' => '1360','name' => 'Perleberg'),\n \t array('id' => '19063','state_id' => '1360','name' => 'Petershagen-Eggersdorf'),\n \t array('id' => '19064','state_id' => '1360','name' => 'Potsdam'),\n \t array('id' => '19065','state_id' => '1360','name' => 'Premnitz'),\n \t array('id' => '19066','state_id' => '1360','name' => 'Prenzlau'),\n \t array('id' => '19067','state_id' => '1360','name' => 'Pritzwalk'),\n \t array('id' => '19068','state_id' => '1360','name' => 'Rathenow'),\n \t array('id' => '19069','state_id' => '1360','name' => 'Rudersdorf'),\n \t array('id' => '19070','state_id' => '1360','name' => 'Schonefeld'),\n \t array('id' => '19071','state_id' => '1360','name' => 'Schoneiche'),\n \t array('id' => '19072','state_id' => '1360','name' => 'Schwedt'),\n \t array('id' => '19073','state_id' => '1360','name' => 'Schwielowsee'),\n \t array('id' => '19074','state_id' => '1360','name' => 'Senftenberg'),\n \t array('id' => '19075','state_id' => '1360','name' => 'Spremberg'),\n \t array('id' => '19076','state_id' => '1360','name' => 'Strausberg'),\n \t array('id' => '19077','state_id' => '1360','name' => 'Teltow'),\n \t array('id' => '19078','state_id' => '1360','name' => 'Templin'),\n \t array('id' => '19079','state_id' => '1360','name' => 'Velten'),\n \t array('id' => '19080','state_id' => '1360','name' => 'Werder'),\n \t array('id' => '19081','state_id' => '1360','name' => 'Wildau'),\n \t array('id' => '19082','state_id' => '1360','name' => 'Wittenberge'),\n \t array('id' => '19083','state_id' => '1360','name' => 'Wittstock'),\n \t array('id' => '19084','state_id' => '1360','name' => 'Zehdenick'),\n \t array('id' => '19085','state_id' => '1360','name' => 'Zepernick'),\n \t array('id' => '19086','state_id' => '1361','name' => 'Bremen'),\n \t array('id' => '19087','state_id' => '1361','name' => 'Bremerhaven'),\n \t array('id' => '19088','state_id' => '1364','name' => 'Berne'),\n \t array('id' => '19089','state_id' => '1364','name' => 'Hamburg'),\n \t array('id' => '19090','state_id' => '1365','name' => 'Diekholzen'),\n \t array('id' => '19091','state_id' => '1366','name' => 'Heroldstatt'),\n \t array('id' => '19092','state_id' => '1367','name' => 'ABlar'),\n \t array('id' => '19093','state_id' => '1367','name' => 'Alsbach-Hähnlein'),\n \t array('id' => '19094','state_id' => '1367','name' => 'Alsfeld'),\n \t array('id' => '19095','state_id' => '1367','name' => 'Altenstadt'),\n \t array('id' => '19096','state_id' => '1367','name' => 'Angelburg'),\n \t array('id' => '19097','state_id' => '1367','name' => 'Arolsen'),\n \t array('id' => '19098','state_id' => '1367','name' => 'Asslar'),\n \t array('id' => '19099','state_id' => '1367','name' => 'Babenhausen'),\n \t array('id' => '19100','state_id' => '1367','name' => 'Bad Camberg'),\n \t array('id' => '19101','state_id' => '1367','name' => 'Bad Hersfeld'),\n \t array('id' => '19102','state_id' => '1367','name' => 'Bad Homburg'),\n \t array('id' => '19103','state_id' => '1367','name' => 'Bad Nauheim'),\n \t array('id' => '19104','state_id' => '1367','name' => 'Bad Orb'),\n \t array('id' => '19105','state_id' => '1367','name' => 'Bad Schwalbach'),\n \t array('id' => '19106','state_id' => '1367','name' => 'Bad Soden'),\n \t array('id' => '19107','state_id' => '1367','name' => 'Bad Soden-Salmunster'),\n \t array('id' => '19108','state_id' => '1367','name' => 'Bad Sooden-Allendorf'),\n \t array('id' => '19109','state_id' => '1367','name' => 'Bad Vilbel'),\n \t array('id' => '19110','state_id' => '1367','name' => 'Bad Wildungen'),\n \t array('id' => '19111','state_id' => '1367','name' => 'Baunatal'),\n \t array('id' => '19112','state_id' => '1367','name' => 'Bebra'),\n \t array('id' => '19113','state_id' => '1367','name' => 'Beerfelden'),\n \t array('id' => '19114','state_id' => '1367','name' => 'Bensheim'),\n \t array('id' => '19115','state_id' => '1367','name' => 'Berkatal'),\n \t array('id' => '19116','state_id' => '1367','name' => 'Biblis'),\n \t array('id' => '19117','state_id' => '1367','name' => 'Bickenbach'),\n \t array('id' => '19118','state_id' => '1367','name' => 'Biebertal'),\n \t array('id' => '19119','state_id' => '1367','name' => 'Biedenkopf'),\n \t array('id' => '19120','state_id' => '1367','name' => 'Birkenau'),\n \t array('id' => '19121','state_id' => '1367','name' => 'Bischofsheim'),\n \t array('id' => '19122','state_id' => '1367','name' => 'Borken'),\n \t array('id' => '19123','state_id' => '1367','name' => 'Braunfels'),\n \t array('id' => '19124','state_id' => '1367','name' => 'Breidenbach'),\n \t array('id' => '19125','state_id' => '1367','name' => 'Bruchkobel'),\n \t array('id' => '19126','state_id' => '1367','name' => 'Budingen'),\n \t array('id' => '19127','state_id' => '1367','name' => 'Burstadt'),\n \t array('id' => '19128','state_id' => '1367','name' => 'Buseck'),\n \t array('id' => '19129','state_id' => '1367','name' => 'Buttelborn'),\n \t array('id' => '19130','state_id' => '1367','name' => 'Butzbach'),\n \t array('id' => '19131','state_id' => '1367','name' => 'Darmstadt'),\n \t array('id' => '19132','state_id' => '1367','name' => 'Dautphetal'),\n \t array('id' => '19133','state_id' => '1367','name' => 'Dieburg'),\n \t array('id' => '19134','state_id' => '1367','name' => 'Dietzenbach'),\n \t array('id' => '19135','state_id' => '1367','name' => 'Dillenburg'),\n \t array('id' => '19136','state_id' => '1367','name' => 'Dreieich'),\n \t array('id' => '19137','state_id' => '1367','name' => 'Egelsbach'),\n \t array('id' => '19138','state_id' => '1367','name' => 'Eichenzell'),\n \t array('id' => '19139','state_id' => '1367','name' => 'Eltville'),\n \t array('id' => '19140','state_id' => '1367','name' => 'Eppstein'),\n \t array('id' => '19141','state_id' => '1367','name' => 'Erbach'),\n \t array('id' => '19142','state_id' => '1367','name' => 'Erlensee'),\n \t array('id' => '19143','state_id' => '1367','name' => 'Erzhausen'),\n \t array('id' => '19144','state_id' => '1367','name' => 'Eschborn'),\n \t array('id' => '19145','state_id' => '1367','name' => 'Eschenburg'),\n \t array('id' => '19146','state_id' => '1367','name' => 'Eschwege'),\n \t array('id' => '19147','state_id' => '1367','name' => 'Felsberg'),\n \t array('id' => '19148','state_id' => '1367','name' => 'Fernwald'),\n \t array('id' => '19149','state_id' => '1367','name' => 'Florsheim'),\n \t array('id' => '19150','state_id' => '1367','name' => 'Frankenberg'),\n \t array('id' => '19151','state_id' => '1367','name' => 'Frankfurt'),\n \t array('id' => '19152','state_id' => '1367','name' => 'Freigericht'),\n \t array('id' => '19153','state_id' => '1367','name' => 'Friedberg'),\n \t array('id' => '19154','state_id' => '1367','name' => 'Friedrichsdorf'),\n \t array('id' => '19155','state_id' => '1367','name' => 'Fritzlar'),\n \t array('id' => '19156','state_id' => '1367','name' => 'Fulda'),\n \t array('id' => '19157','state_id' => '1367','name' => 'Fuldabruck'),\n \t array('id' => '19158','state_id' => '1367','name' => 'Fuldatal'),\n \t array('id' => '19159','state_id' => '1367','name' => 'Geisenheim'),\n \t array('id' => '19160','state_id' => '1367','name' => 'Gelnhausen'),\n \t array('id' => '19161','state_id' => '1367','name' => 'Gernsheim'),\n \t array('id' => '19162','state_id' => '1367','name' => 'GieBen'),\n \t array('id' => '19163','state_id' => '1367','name' => 'Giessen'),\n \t array('id' => '19164','state_id' => '1367','name' => 'Ginsheim-Gustavsburg'),\n \t array('id' => '19165','state_id' => '1367','name' => 'Gladenbach'),\n \t array('id' => '19166','state_id' => '1367','name' => 'Griesheim'),\n \t array('id' => '19167','state_id' => '1367','name' => 'GroB-Gerau'),\n \t array('id' => '19168','state_id' => '1367','name' => 'GroB-Umstadt'),\n \t array('id' => '19169','state_id' => '1367','name' => 'GroB-Zimmern'),\n \t array('id' => '19170','state_id' => '1367','name' => 'Grossenluder'),\n \t array('id' => '19171','state_id' => '1367','name' => 'Gruenberg'),\n \t array('id' => '19172','state_id' => '1367','name' => 'Grunberg'),\n \t array('id' => '19173','state_id' => '1367','name' => 'Grundau'),\n \t array('id' => '19174','state_id' => '1367','name' => 'Hadamar'),\n \t array('id' => '19175','state_id' => '1367','name' => 'Haiger'),\n \t array('id' => '19176','state_id' => '1367','name' => 'Hainburg'),\n \t array('id' => '19177','state_id' => '1367','name' => 'Hanau'),\n \t array('id' => '19178','state_id' => '1367','name' => 'Hattersheim'),\n \t array('id' => '19179','state_id' => '1367','name' => 'Heppenheim'),\n \t array('id' => '19180','state_id' => '1367','name' => 'Herborn'),\n \t array('id' => '19181','state_id' => '1367','name' => 'Hessisch Lichtenau'),\n \t array('id' => '19182','state_id' => '1367','name' => 'Heuchelheim'),\n \t array('id' => '19183','state_id' => '1367','name' => 'Heusenstamm'),\n \t array('id' => '19184','state_id' => '1367','name' => 'Hochheim'),\n \t array('id' => '19185','state_id' => '1367','name' => 'Hochst'),\n \t array('id' => '19186','state_id' => '1367','name' => 'Hofbieber'),\n \t array('id' => '19187','state_id' => '1367','name' => 'Hofgeismar'),\n \t array('id' => '19188','state_id' => '1367','name' => 'Hofheim'),\n \t array('id' => '19189','state_id' => '1367','name' => 'Homberg'),\n \t array('id' => '19190','state_id' => '1367','name' => 'Hunfeld'),\n \t array('id' => '19191','state_id' => '1367','name' => 'Hunfelden'),\n \t array('id' => '19192','state_id' => '1367','name' => 'Hungen'),\n \t array('id' => '19193','state_id' => '1367','name' => 'Huttenberg'),\n \t array('id' => '19194','state_id' => '1367','name' => 'Idstein'),\n \t array('id' => '19195','state_id' => '1367','name' => 'Karben'),\n \t array('id' => '19196','state_id' => '1367','name' => 'Kassel'),\n \t array('id' => '19197','state_id' => '1367','name' => 'Kaufungen'),\n \t array('id' => '19198','state_id' => '1367','name' => 'Kelkheim'),\n \t array('id' => '19199','state_id' => '1367','name' => 'Kelsterbach'),\n \t array('id' => '19200','state_id' => '1367','name' => 'Kirchhain'),\n \t array('id' => '19201','state_id' => '1367','name' => 'Konigstein'),\n \t array('id' => '19202','state_id' => '1367','name' => 'Korbach'),\n \t array('id' => '19203','state_id' => '1367','name' => 'Kriftel'),\n \t array('id' => '19204','state_id' => '1367','name' => 'Kronberg'),\n \t array('id' => '19205','state_id' => '1367','name' => 'Kunzell'),\n \t array('id' => '19206','state_id' => '1367','name' => 'Lahnau'),\n \t array('id' => '19207','state_id' => '1367','name' => 'Lahntal'),\n \t array('id' => '19208','state_id' => '1367','name' => 'Lampertheim'),\n \t array('id' => '19209','state_id' => '1367','name' => 'Langen'),\n \t array('id' => '19210','state_id' => '1367','name' => 'Langenselbold'),\n \t array('id' => '19211','state_id' => '1367','name' => 'Langgons'),\n \t array('id' => '19212','state_id' => '1367','name' => 'Laubach'),\n \t array('id' => '19213','state_id' => '1367','name' => 'Lauterbach'),\n \t array('id' => '19214','state_id' => '1367','name' => 'Lich'),\n \t array('id' => '19215','state_id' => '1367','name' => 'Limburg'),\n \t array('id' => '19216','state_id' => '1367','name' => 'Linden'),\n \t array('id' => '19217','state_id' => '1367','name' => 'Lindenholzhausen'),\n \t array('id' => '19218','state_id' => '1367','name' => 'Linsengericht'),\n \t array('id' => '19219','state_id' => '1367','name' => 'Lohfelden'),\n \t array('id' => '19220','state_id' => '1367','name' => 'Lollar'),\n \t array('id' => '19221','state_id' => '1367','name' => 'Lorsch'),\n \t array('id' => '19222','state_id' => '1367','name' => 'Maintal'),\n \t array('id' => '19223','state_id' => '1367','name' => 'Marburg'),\n \t array('id' => '19224','state_id' => '1367','name' => 'Melsungen'),\n \t array('id' => '19225','state_id' => '1367','name' => 'Mengerskirchen'),\n \t array('id' => '19226','state_id' => '1367','name' => 'Michelstadt'),\n \t array('id' => '19227','state_id' => '1367','name' => 'Morfelden-Walldorf'),\n \t array('id' => '19228','state_id' => '1367','name' => 'Morlenbach'),\n \t array('id' => '19229','state_id' => '1367','name' => 'Mucke'),\n \t array('id' => '19230','state_id' => '1367','name' => 'Muhlheim'),\n \t array('id' => '19231','state_id' => '1367','name' => 'Muhltal'),\n \t array('id' => '19232','state_id' => '1367','name' => 'Munster'),\n \t array('id' => '19233','state_id' => '1367','name' => 'Nauheim'),\n \t array('id' => '19234','state_id' => '1367','name' => 'Neu-Anspach'),\n \t array('id' => '19235','state_id' => '1367','name' => 'Neu-Isenburg'),\n \t array('id' => '19236','state_id' => '1367','name' => 'Neuhof'),\n \t array('id' => '19237','state_id' => '1367','name' => 'Neustadt'),\n \t array('id' => '19238','state_id' => '1367','name' => 'Nidda'),\n \t array('id' => '19239','state_id' => '1367','name' => 'Niddatal'),\n \t array('id' => '19240','state_id' => '1367','name' => 'Nidderau'),\n \t array('id' => '19241','state_id' => '1367','name' => 'Niederdorfelden'),\n \t array('id' => '19242','state_id' => '1367','name' => 'Niedernhausen'),\n \t array('id' => '19243','state_id' => '1367','name' => 'Niestetal'),\n \t array('id' => '19244','state_id' => '1367','name' => 'Ober-Ramstedt'),\n \t array('id' => '19245','state_id' => '1367','name' => 'Obertshausen'),\n \t array('id' => '19246','state_id' => '1367','name' => 'Oberursel'),\n \t array('id' => '19247','state_id' => '1367','name' => 'Oestrich-Winkel'),\n \t array('id' => '19248','state_id' => '1367','name' => 'Offenbach'),\n \t array('id' => '19249','state_id' => '1367','name' => 'Petersberg'),\n \t array('id' => '19250','state_id' => '1367','name' => 'Pfungstadt'),\n \t array('id' => '19251','state_id' => '1367','name' => 'Pohlheim'),\n \t array('id' => '19252','state_id' => '1367','name' => 'Raunheim'),\n \t array('id' => '19253','state_id' => '1367','name' => 'Reichelsheim'),\n \t array('id' => '19254','state_id' => '1367','name' => 'Reinheim'),\n \t array('id' => '19255','state_id' => '1367','name' => 'Reiskirchen'),\n \t array('id' => '19256','state_id' => '1367','name' => 'Riedstadt'),\n \t array('id' => '19257','state_id' => '1367','name' => 'Rimbach'),\n \t array('id' => '19258','state_id' => '1367','name' => 'RoBdorf'),\n \t array('id' => '19259','state_id' => '1367','name' => 'Rodenbach'),\n \t array('id' => '19260','state_id' => '1367','name' => 'Rodermark'),\n \t array('id' => '19261','state_id' => '1367','name' => 'Rodgau'),\n \t array('id' => '19262','state_id' => '1367','name' => 'Rosbach'),\n \t array('id' => '19263','state_id' => '1367','name' => 'Rotenburg'),\n \t array('id' => '19264','state_id' => '1367','name' => 'Rudesheim'),\n \t array('id' => '19265','state_id' => '1367','name' => 'Runkel'),\n \t array('id' => '19266','state_id' => '1367','name' => 'Russelsheim'),\n \t array('id' => '19267','state_id' => '1367','name' => 'Schauenburg'),\n \t array('id' => '19268','state_id' => '1367','name' => 'Schlangenbad'),\n \t array('id' => '19269','state_id' => '1367','name' => 'Schlitz'),\n \t array('id' => '19270','state_id' => '1367','name' => 'Schluchtern'),\n \t array('id' => '19271','state_id' => '1367','name' => 'Schoneck'),\n \t array('id' => '19272','state_id' => '1367','name' => 'Schotten'),\n \t array('id' => '19273','state_id' => '1367','name' => 'Schwalbach'),\n \t array('id' => '19274','state_id' => '1367','name' => 'Schwalbach am Taunus'),\n \t array('id' => '19275','state_id' => '1367','name' => 'Schwalmstadt'),\n \t array('id' => '19276','state_id' => '1367','name' => 'Seeheim-Jugenheim'),\n \t array('id' => '19277','state_id' => '1367','name' => 'Seligenstadt'),\n \t array('id' => '19278','state_id' => '1367','name' => 'Selters'),\n \t array('id' => '19279','state_id' => '1367','name' => 'Sinntal'),\n \t array('id' => '19280','state_id' => '1367','name' => 'Solms'),\n \t array('id' => '19281','state_id' => '1367','name' => 'Sontra'),\n \t array('id' => '19282','state_id' => '1367','name' => 'Spangenberg'),\n \t array('id' => '19283','state_id' => '1367','name' => 'Stadtallendorf'),\n \t array('id' => '19284','state_id' => '1367','name' => 'Steinau'),\n \t array('id' => '19285','state_id' => '1367','name' => 'Steinbach'),\n \t array('id' => '19286','state_id' => '1367','name' => 'Taunusstein'),\n \t array('id' => '19287','state_id' => '1367','name' => 'Trebur'),\n \t array('id' => '19288','state_id' => '1367','name' => 'Ulrichstein'),\n \t array('id' => '19289','state_id' => '1367','name' => 'Usingen'),\n \t array('id' => '19290','state_id' => '1367','name' => 'Vellmar'),\n \t array('id' => '19291','state_id' => '1367','name' => 'Viernheim'),\n \t array('id' => '19292','state_id' => '1367','name' => 'Volkmarsen'),\n \t array('id' => '19293','state_id' => '1367','name' => 'Wachtersbach'),\n \t array('id' => '19294','state_id' => '1367','name' => 'Wald-Michelbach'),\n \t array('id' => '19295','state_id' => '1367','name' => 'Waldbrunn'),\n \t array('id' => '19296','state_id' => '1367','name' => 'Waldems'),\n \t array('id' => '19297','state_id' => '1367','name' => 'Wehrheim'),\n \t array('id' => '19298','state_id' => '1367','name' => 'Weilburg'),\n \t array('id' => '19299','state_id' => '1367','name' => 'Weilmunster'),\n \t array('id' => '19300','state_id' => '1367','name' => 'Weiterstadt'),\n \t array('id' => '19301','state_id' => '1367','name' => 'Wettenberg'),\n \t array('id' => '19302','state_id' => '1367','name' => 'Wetter'),\n \t array('id' => '19303','state_id' => '1367','name' => 'Wetzlar'),\n \t array('id' => '19304','state_id' => '1367','name' => 'Wiesbaden'),\n \t array('id' => '19305','state_id' => '1367','name' => 'Witzenhausen'),\n \t array('id' => '19306','state_id' => '1367','name' => 'Wolfersheim'),\n \t array('id' => '19307','state_id' => '1367','name' => 'Wolfhagen'),\n \t array('id' => '19308','state_id' => '1367','name' => 'Zwingenberg'),\n \t array('id' => '19309','state_id' => '1368','name' => 'Kortenberg'),\n \t array('id' => '19310','state_id' => '1369','name' => 'Laasdorf'),\n \t array('id' => '19311','state_id' => '1381','name' => 'Anklam'),\n \t array('id' => '19312','state_id' => '1381','name' => 'Bad Doberan'),\n \t array('id' => '19313','state_id' => '1381','name' => 'Barth'),\n \t array('id' => '19314','state_id' => '1381','name' => 'Bergen'),\n \t array('id' => '19315','state_id' => '1381','name' => 'Boizenburg'),\n \t array('id' => '19316','state_id' => '1381','name' => 'Butzow'),\n \t array('id' => '19317','state_id' => '1381','name' => 'Demmin'),\n \t array('id' => '19318','state_id' => '1381','name' => 'Gagelow'),\n \t array('id' => '19319','state_id' => '1381','name' => 'Gallin'),\n \t array('id' => '19320','state_id' => '1381','name' => 'Grabow'),\n \t array('id' => '19321','state_id' => '1381','name' => 'Greifswald'),\n \t array('id' => '19322','state_id' => '1381','name' => 'Grevesmuhlen'),\n \t array('id' => '19323','state_id' => '1381','name' => 'Grimmen'),\n \t array('id' => '19324','state_id' => '1381','name' => 'Gustrow'),\n \t array('id' => '19325','state_id' => '1381','name' => 'Hagenow'),\n \t array('id' => '19326','state_id' => '1381','name' => 'Konigsee'),\n \t array('id' => '19327','state_id' => '1381','name' => 'Lubtheen'),\n \t array('id' => '19328','state_id' => '1381','name' => 'Ludersdorf'),\n \t array('id' => '19329','state_id' => '1381','name' => 'Ludwigslust'),\n \t array('id' => '19330','state_id' => '1381','name' => 'Malchin'),\n \t array('id' => '19331','state_id' => '1381','name' => 'Neubrandenburg'),\n \t array('id' => '19332','state_id' => '1381','name' => 'Neustrelitz'),\n \t array('id' => '19333','state_id' => '1381','name' => 'Parchim'),\n \t array('id' => '19334','state_id' => '1381','name' => 'Pasewalk'),\n \t array('id' => '19335','state_id' => '1381','name' => 'Ribnitz-Damgarten'),\n \t array('id' => '19336','state_id' => '1381','name' => 'Rostock'),\n \t array('id' => '19337','state_id' => '1381','name' => 'SaBnitz'),\n \t array('id' => '19338','state_id' => '1381','name' => 'Schweina'),\n \t array('id' => '19339','state_id' => '1381','name' => 'Schwerin'),\n \t array('id' => '19340','state_id' => '1381','name' => 'Selmsdorf'),\n \t array('id' => '19341','state_id' => '1381','name' => 'Stralsund'),\n \t array('id' => '19342','state_id' => '1381','name' => 'Teterow'),\n \t array('id' => '19343','state_id' => '1381','name' => 'Torgelow'),\n \t array('id' => '19344','state_id' => '1381','name' => 'Ueckermunde'),\n \t array('id' => '19345','state_id' => '1381','name' => 'Waren'),\n \t array('id' => '19346','state_id' => '1381','name' => 'Wismar'),\n \t array('id' => '19347','state_id' => '1381','name' => 'Wolgast'),\n \t array('id' => '19348','state_id' => '1381','name' => 'Zarrentin'),\n \t array('id' => '19349','state_id' => '1382','name' => 'Mulfingen'),\n \t array('id' => '19350','state_id' => '1383','name' => 'Grafing bei Munchen'),\n \t array('id' => '19351','state_id' => '1384','name' => 'Neubeuern'),\n \t array('id' => '19352','state_id' => '1385','name' => 'Achim'),\n \t array('id' => '19353','state_id' => '1385','name' => 'Adendorf'),\n \t array('id' => '19354','state_id' => '1385','name' => 'Aerzen'),\n \t array('id' => '19355','state_id' => '1385','name' => 'Alfeld'),\n \t array('id' => '19356','state_id' => '1385','name' => 'Ankum'),\n \t array('id' => '19357','state_id' => '1385','name' => 'Apen'),\n \t array('id' => '19358','state_id' => '1385','name' => 'Aurich'),\n \t array('id' => '19359','state_id' => '1385','name' => 'Bad Bentheim'),\n \t array('id' => '19360','state_id' => '1385','name' => 'Bad Bevensen'),\n \t array('id' => '19361','state_id' => '1385','name' => 'Bad Essen'),\n \t array('id' => '19362','state_id' => '1385','name' => 'Bad Gandersheim'),\n \t array('id' => '19363','state_id' => '1385','name' => 'Bad Harzburg'),\n \t array('id' => '19364','state_id' => '1385','name' => 'Bad Iburg'),\n \t array('id' => '19365','state_id' => '1385','name' => 'Bad Laer'),\n \t array('id' => '19366','state_id' => '1385','name' => 'Bad Lauterberg'),\n \t array('id' => '19367','state_id' => '1385','name' => 'Bad Munder'),\n \t array('id' => '19368','state_id' => '1385','name' => 'Bad Nenndorf'),\n \t array('id' => '19369','state_id' => '1385','name' => 'Bad Pyrmont'),\n \t array('id' => '19370','state_id' => '1385','name' => 'Bad Sachsa'),\n \t array('id' => '19371','state_id' => '1385','name' => 'Bad Salzdetfurth'),\n \t array('id' => '19372','state_id' => '1385','name' => 'Bad Zwischenahn'),\n \t array('id' => '19373','state_id' => '1385','name' => 'BarBel'),\n \t array('id' => '19374','state_id' => '1385','name' => 'Barsinghausen'),\n \t array('id' => '19375','state_id' => '1385','name' => 'Bassum'),\n \t array('id' => '19376','state_id' => '1385','name' => 'Beesten'),\n \t array('id' => '19377','state_id' => '1385','name' => 'Belm'),\n \t array('id' => '19378','state_id' => '1385','name' => 'Bergen'),\n \t array('id' => '19379','state_id' => '1385','name' => 'Bissendorf'),\n \t array('id' => '19380','state_id' => '1385','name' => 'Bleckede'),\n \t array('id' => '19381','state_id' => '1385','name' => 'Bockenem'),\n \t array('id' => '19382','state_id' => '1385','name' => 'Bohmte'),\n \t array('id' => '19383','state_id' => '1385','name' => 'Bovenden'),\n \t array('id' => '19384','state_id' => '1385','name' => 'Brake'),\n \t array('id' => '19385','state_id' => '1385','name' => 'Bramsche'),\n \t array('id' => '19386','state_id' => '1385','name' => 'Braunschweig'),\n \t array('id' => '19387','state_id' => '1385','name' => 'Bremervorde'),\n \t array('id' => '19388','state_id' => '1385','name' => 'Brockel'),\n \t array('id' => '19389','state_id' => '1385','name' => 'Brunswick'),\n \t array('id' => '19390','state_id' => '1385','name' => 'Buchholz'),\n \t array('id' => '19391','state_id' => '1385','name' => 'Buckeburg'),\n \t array('id' => '19392','state_id' => '1385','name' => 'Burgdorf'),\n \t array('id' => '19393','state_id' => '1385','name' => 'Burgwedel'),\n \t array('id' => '19394','state_id' => '1385','name' => 'Buxtehude'),\n \t array('id' => '19395','state_id' => '1385','name' => 'Celle'),\n \t array('id' => '19396','state_id' => '1385','name' => 'Clausthal-Zellerfeld'),\n \t array('id' => '19397','state_id' => '1385','name' => 'Clenze'),\n \t array('id' => '19398','state_id' => '1385','name' => 'Cloppenburg'),\n \t array('id' => '19399','state_id' => '1385','name' => 'Cremlingen'),\n \t array('id' => '19400','state_id' => '1385','name' => 'Cuxhaven'),\n \t array('id' => '19401','state_id' => '1385','name' => 'Dahlenburg'),\n \t array('id' => '19402','state_id' => '1385','name' => 'Damme'),\n \t array('id' => '19403','state_id' => '1385','name' => 'Dannenberg'),\n \t array('id' => '19404','state_id' => '1385','name' => 'Dassel'),\n \t array('id' => '19405','state_id' => '1385','name' => 'Deinste'),\n \t array('id' => '19406','state_id' => '1385','name' => 'Delmenhorst'),\n \t array('id' => '19407','state_id' => '1385','name' => 'Diepholz'),\n \t array('id' => '19408','state_id' => '1385','name' => 'Dinklage'),\n \t array('id' => '19409','state_id' => '1385','name' => 'Dorverden'),\n \t array('id' => '19410','state_id' => '1385','name' => 'Dransfeld'),\n \t array('id' => '19411','state_id' => '1385','name' => 'Drochtersen'),\n \t array('id' => '19412','state_id' => '1385','name' => 'Duderstadt'),\n \t array('id' => '19413','state_id' => '1385','name' => 'Edemissen'),\n \t array('id' => '19414','state_id' => '1385','name' => 'Edewecht'),\n \t array('id' => '19415','state_id' => '1385','name' => 'Einbeck'),\n \t array('id' => '19416','state_id' => '1385','name' => 'Elsfleth'),\n \t array('id' => '19417','state_id' => '1385','name' => 'Elze'),\n \t array('id' => '19418','state_id' => '1385','name' => 'Emden'),\n \t array('id' => '19419','state_id' => '1385','name' => 'Emlichheim'),\n \t array('id' => '19420','state_id' => '1385','name' => 'Emmerthal'),\n \t array('id' => '19421','state_id' => '1385','name' => 'Emsburen'),\n \t array('id' => '19422','state_id' => '1385','name' => 'Eppendorf'),\n \t array('id' => '19423','state_id' => '1385','name' => 'Fallingbostel'),\n \t array('id' => '19424','state_id' => '1385','name' => 'Frellstedt'),\n \t array('id' => '19425','state_id' => '1385','name' => 'Friedeburg'),\n \t array('id' => '19426','state_id' => '1385','name' => 'Friedland'),\n \t array('id' => '19427','state_id' => '1385','name' => 'Friesoythe'),\n \t array('id' => '19428','state_id' => '1385','name' => 'Ganderkesee'),\n \t array('id' => '19429','state_id' => '1385','name' => 'Garbsen'),\n \t array('id' => '19430','state_id' => '1385','name' => 'Garrel'),\n \t array('id' => '19431','state_id' => '1385','name' => 'Geeste'),\n \t array('id' => '19432','state_id' => '1385','name' => 'Gehrden'),\n \t array('id' => '19433','state_id' => '1385','name' => 'Georgsmarienhutte'),\n \t array('id' => '19434','state_id' => '1385','name' => 'Gifhorn'),\n \t array('id' => '19435','state_id' => '1385','name' => 'Gleichen'),\n \t array('id' => '19436','state_id' => '1385','name' => 'Goslar'),\n \t array('id' => '19437','state_id' => '1385','name' => 'Gottingen'),\n \t array('id' => '19438','state_id' => '1385','name' => 'GroBefehn'),\n \t array('id' => '19439','state_id' => '1385','name' => 'GroBenkneten'),\n \t array('id' => '19440','state_id' => '1385','name' => 'Hagen'),\n \t array('id' => '19441','state_id' => '1385','name' => 'Hambergen'),\n \t array('id' => '19442','state_id' => '1385','name' => 'Hameln'),\n \t array('id' => '19443','state_id' => '1385','name' => 'Hannover'),\n \t array('id' => '19444','state_id' => '1385','name' => 'Hannoversch Munden'),\n \t array('id' => '19445','state_id' => '1385','name' => 'Haren'),\n \t array('id' => '19446','state_id' => '1385','name' => 'Harsum'),\n \t array('id' => '19447','state_id' => '1385','name' => 'Hasbergen'),\n \t array('id' => '19448','state_id' => '1385','name' => 'Haselunne'),\n \t array('id' => '19449','state_id' => '1385','name' => 'Hatten'),\n \t array('id' => '19450','state_id' => '1385','name' => 'Hauslingen'),\n \t array('id' => '19451','state_id' => '1385','name' => 'Helmstedt'),\n \t array('id' => '19452','state_id' => '1385','name' => 'Hemmingen'),\n \t array('id' => '19453','state_id' => '1385','name' => 'Herzberg'),\n \t array('id' => '19454','state_id' => '1385','name' => 'Hessisch Oldendorf'),\n \t array('id' => '19455','state_id' => '1385','name' => 'Hildesheim'),\n \t array('id' => '19456','state_id' => '1385','name' => 'Hilter'),\n \t array('id' => '19457','state_id' => '1385','name' => 'Hittfeld'),\n \t array('id' => '19458','state_id' => '1385','name' => 'Holzminden'),\n \t array('id' => '19459','state_id' => '1385','name' => 'Hoya'),\n \t array('id' => '19460','state_id' => '1385','name' => 'Hude'),\n \t array('id' => '19461','state_id' => '1385','name' => 'Ihlow'),\n \t array('id' => '19462','state_id' => '1385','name' => 'Ilsede'),\n \t array('id' => '19463','state_id' => '1385','name' => 'Isernhagen'),\n \t array('id' => '19464','state_id' => '1385','name' => 'Jade'),\n \t array('id' => '19465','state_id' => '1385','name' => 'Jever'),\n \t array('id' => '19466','state_id' => '1385','name' => 'Jork'),\n \t array('id' => '19467','state_id' => '1385','name' => 'Kalefeld'),\n \t array('id' => '19468','state_id' => '1385','name' => 'Kirchlinteln'),\n \t array('id' => '19469','state_id' => '1385','name' => 'Knesebeck'),\n \t array('id' => '19470','state_id' => '1385','name' => 'Konigslutter'),\n \t array('id' => '19471','state_id' => '1385','name' => 'Krummhorn'),\n \t array('id' => '19472','state_id' => '1385','name' => 'Laatzen'),\n \t array('id' => '19473','state_id' => '1385','name' => 'Lahstedt'),\n \t array('id' => '19474','state_id' => '1385','name' => 'Langelsheim'),\n \t array('id' => '19475','state_id' => '1385','name' => 'Langen'),\n \t array('id' => '19476','state_id' => '1385','name' => 'Langenhagen'),\n \t array('id' => '19477','state_id' => '1385','name' => 'Langwedel'),\n \t array('id' => '19478','state_id' => '1385','name' => 'Lastrup'),\n \t array('id' => '19479','state_id' => '1385','name' => 'Leer'),\n \t array('id' => '19480','state_id' => '1385','name' => 'Lehre'),\n \t array('id' => '19481','state_id' => '1385','name' => 'Lehrte'),\n \t array('id' => '19482','state_id' => '1385','name' => 'Lemforde'),\n \t array('id' => '19483','state_id' => '1385','name' => 'Lengede'),\n \t array('id' => '19484','state_id' => '1385','name' => 'Liebenburg'),\n \t array('id' => '19485','state_id' => '1385','name' => 'Lilienthal'),\n \t array('id' => '19486','state_id' => '1385','name' => 'Lingen'),\n \t array('id' => '19487','state_id' => '1385','name' => 'Lohne'),\n \t array('id' => '19488','state_id' => '1385','name' => 'Loningen'),\n \t array('id' => '19489','state_id' => '1385','name' => 'Lorup'),\n \t array('id' => '19490','state_id' => '1385','name' => 'Loxstedt'),\n \t array('id' => '19491','state_id' => '1385','name' => 'Luchow'),\n \t array('id' => '19492','state_id' => '1385','name' => 'Luneburg'),\n \t array('id' => '19493','state_id' => '1385','name' => 'Melle'),\n \t array('id' => '19494','state_id' => '1385','name' => 'Meppen'),\n \t array('id' => '19495','state_id' => '1385','name' => 'Moormerland'),\n \t array('id' => '19496','state_id' => '1385','name' => 'Munster'),\n \t array('id' => '19497','state_id' => '1385','name' => 'Neu Wulmstorf'),\n \t array('id' => '19498','state_id' => '1385','name' => 'Neustadt'),\n \t array('id' => '19499','state_id' => '1385','name' => 'Nienburg'),\n \t array('id' => '19500','state_id' => '1385','name' => 'Norden'),\n \t array('id' => '19501','state_id' => '1385','name' => 'Nordenham'),\n \t array('id' => '19502','state_id' => '1385','name' => 'Nordhorn'),\n \t array('id' => '19503','state_id' => '1385','name' => 'Nordstemmen'),\n \t array('id' => '19504','state_id' => '1385','name' => 'Norten-Hardenberg'),\n \t array('id' => '19505','state_id' => '1385','name' => 'Northeim'),\n \t array('id' => '19506','state_id' => '1385','name' => 'Obernkirchen'),\n \t array('id' => '19507','state_id' => '1385','name' => 'Oldenburg'),\n \t array('id' => '19508','state_id' => '1385','name' => 'Osnabruck'),\n \t array('id' => '19509','state_id' => '1385','name' => 'Ostercappeln'),\n \t array('id' => '19510','state_id' => '1385','name' => 'Osterholz-Scharmbeck'),\n \t array('id' => '19511','state_id' => '1385','name' => 'Osterode'),\n \t array('id' => '19512','state_id' => '1385','name' => 'Ostrhauderfehn'),\n \t array('id' => '19513','state_id' => '1385','name' => 'Ottersberg'),\n \t array('id' => '19514','state_id' => '1385','name' => 'Oyten'),\n \t array('id' => '19515','state_id' => '1385','name' => 'Papenburg'),\n \t array('id' => '19516','state_id' => '1385','name' => 'Pattensen'),\n \t array('id' => '19517','state_id' => '1385','name' => 'Peine'),\n \t array('id' => '19518','state_id' => '1385','name' => 'Quakenbruck'),\n \t array('id' => '19519','state_id' => '1385','name' => 'Rastede'),\n \t array('id' => '19520','state_id' => '1385','name' => 'Rehburg-Loccum'),\n \t array('id' => '19521','state_id' => '1385','name' => 'Rhauderfehn'),\n \t array('id' => '19522','state_id' => '1385','name' => 'Rinteln'),\n \t array('id' => '19523','state_id' => '1385','name' => 'Ritterhude'),\n \t array('id' => '19524','state_id' => '1385','name' => 'Ronnenberg'),\n \t array('id' => '19525','state_id' => '1385','name' => 'Rosdorf'),\n \t array('id' => '19526','state_id' => '1385','name' => 'Rosengarten'),\n \t array('id' => '19527','state_id' => '1385','name' => 'Rotenburg'),\n \t array('id' => '19528','state_id' => '1385','name' => 'Salzgitter'),\n \t array('id' => '19529','state_id' => '1385','name' => 'Salzhemmendorf'),\n \t array('id' => '19530','state_id' => '1385','name' => 'Sarstedt'),\n \t array('id' => '19531','state_id' => '1385','name' => 'Saterland'),\n \t array('id' => '19532','state_id' => '1385','name' => 'ScheeBel'),\n \t array('id' => '19533','state_id' => '1385','name' => 'Schiffdorf'),\n \t array('id' => '19534','state_id' => '1385','name' => 'Schneverdingen'),\n \t array('id' => '19535','state_id' => '1385','name' => 'Schoningen'),\n \t array('id' => '19536','state_id' => '1385','name' => 'Schortens'),\n \t array('id' => '19537','state_id' => '1385','name' => 'Schuttorf'),\n \t array('id' => '19538','state_id' => '1385','name' => 'Schwanewede'),\n \t array('id' => '19539','state_id' => '1385','name' => 'Seelze'),\n \t array('id' => '19540','state_id' => '1385','name' => 'Seesen'),\n \t array('id' => '19541','state_id' => '1385','name' => 'Seevetal'),\n \t array('id' => '19542','state_id' => '1385','name' => 'Sehnde'),\n \t array('id' => '19543','state_id' => '1385','name' => 'Soltau'),\n \t array('id' => '19544','state_id' => '1385','name' => 'Springe'),\n \t array('id' => '19545','state_id' => '1385','name' => 'Stade'),\n \t array('id' => '19546','state_id' => '1385','name' => 'Stadthagen'),\n \t array('id' => '19547','state_id' => '1385','name' => 'Stadtoldendorf'),\n \t array('id' => '19548','state_id' => '1385','name' => 'Stelle'),\n \t array('id' => '19549','state_id' => '1385','name' => 'Stuhr'),\n \t array('id' => '19550','state_id' => '1385','name' => 'Sudbrookmerland'),\n \t array('id' => '19551','state_id' => '1385','name' => 'Sulingen'),\n \t array('id' => '19552','state_id' => '1385','name' => 'Syke'),\n \t array('id' => '19553','state_id' => '1385','name' => 'Tarmstedt'),\n \t array('id' => '19554','state_id' => '1385','name' => 'Tostedt'),\n \t array('id' => '19555','state_id' => '1385','name' => 'Twistringen'),\n \t array('id' => '19556','state_id' => '1385','name' => 'Uchte'),\n \t array('id' => '19557','state_id' => '1385','name' => 'Uelzen'),\n \t array('id' => '19558','state_id' => '1385','name' => 'Uetze'),\n \t array('id' => '19559','state_id' => '1385','name' => 'Uplengen'),\n \t array('id' => '19560','state_id' => '1385','name' => 'Uslar'),\n \t array('id' => '19561','state_id' => '1385','name' => 'Varel'),\n \t array('id' => '19562','state_id' => '1385','name' => 'Vechelde'),\n \t array('id' => '19563','state_id' => '1385','name' => 'Vechta'),\n \t array('id' => '19564','state_id' => '1385','name' => 'Verden'),\n \t array('id' => '19565','state_id' => '1385','name' => 'Vienenburg'),\n \t array('id' => '19566','state_id' => '1385','name' => 'Visselhovede'),\n \t array('id' => '19567','state_id' => '1385','name' => 'Walkenried'),\n \t array('id' => '19568','state_id' => '1385','name' => 'Wallenhorst'),\n \t array('id' => '19569','state_id' => '1385','name' => 'Walsrode'),\n \t array('id' => '19570','state_id' => '1385','name' => 'Wangerland'),\n \t array('id' => '19571','state_id' => '1385','name' => 'Wardenburg'),\n \t array('id' => '19572','state_id' => '1385','name' => 'Wedemark'),\n \t array('id' => '19573','state_id' => '1385','name' => 'Weener'),\n \t array('id' => '19574','state_id' => '1385','name' => 'Wendeburg'),\n \t array('id' => '19575','state_id' => '1385','name' => 'Wennigsen'),\n \t array('id' => '19576','state_id' => '1385','name' => 'Westerstede'),\n \t array('id' => '19577','state_id' => '1385','name' => 'Westoverledingen'),\n \t array('id' => '19578','state_id' => '1385','name' => 'Weyhe'),\n \t array('id' => '19579','state_id' => '1385','name' => 'Wiefelstede'),\n \t array('id' => '19580','state_id' => '1385','name' => 'Wiesmoor'),\n \t array('id' => '19581','state_id' => '1385','name' => 'Wildeshausen'),\n \t array('id' => '19582','state_id' => '1385','name' => 'Wilhelmshaven'),\n \t array('id' => '19583','state_id' => '1385','name' => 'Winsen'),\n \t array('id' => '19584','state_id' => '1385','name' => 'Wittingen'),\n \t array('id' => '19585','state_id' => '1385','name' => 'Wittmund'),\n \t array('id' => '19586','state_id' => '1385','name' => 'Wolfenbuttel'),\n \t array('id' => '19587','state_id' => '1385','name' => 'Wolfsburg'),\n \t array('id' => '19588','state_id' => '1385','name' => 'Worpswede'),\n \t array('id' => '19589','state_id' => '1385','name' => 'Wunstorf'),\n \t array('id' => '19590','state_id' => '1385','name' => 'Zetel'),\n \t array('id' => '19591','state_id' => '1385','name' => 'Zeven'),\n \t array('id' => '19592','state_id' => '1386','name' => 'Middenbeemster'),\n \t array('id' => '19593','state_id' => '1387','name' => 'Aachen'),\n \t array('id' => '19594','state_id' => '1387','name' => 'Ahaus'),\n \t array('id' => '19595','state_id' => '1387','name' => 'Ahlen'),\n \t array('id' => '19596','state_id' => '1387','name' => 'Aldenhoven'),\n \t array('id' => '19597','state_id' => '1387','name' => 'Alfter'),\n \t array('id' => '19598','state_id' => '1387','name' => 'Alpen'),\n \t array('id' => '19599','state_id' => '1387','name' => 'Alsdorf'),\n \t array('id' => '19600','state_id' => '1387','name' => 'Altena'),\n \t array('id' => '19601','state_id' => '1387','name' => 'Altendorf'),\n \t array('id' => '19602','state_id' => '1387','name' => 'Anrochte'),\n \t array('id' => '19603','state_id' => '1387','name' => 'Arnsberg'),\n \t array('id' => '19604','state_id' => '1387','name' => 'Ascheberg'),\n \t array('id' => '19605','state_id' => '1387','name' => 'Attendorn'),\n \t array('id' => '19606','state_id' => '1387','name' => 'Augustdorf'),\n \t array('id' => '19607','state_id' => '1387','name' => 'Bad Berleburg'),\n \t array('id' => '19608','state_id' => '1387','name' => 'Bad Driburg'),\n \t array('id' => '19609','state_id' => '1387','name' => 'Bad Honnef'),\n \t array('id' => '19610','state_id' => '1387','name' => 'Bad Laasphe'),\n \t array('id' => '19611','state_id' => '1387','name' => 'Bad Lippspringe'),\n \t array('id' => '19612','state_id' => '1387','name' => 'Bad Munstereifel'),\n \t array('id' => '19613','state_id' => '1387','name' => 'Bad Oeynhausen'),\n \t array('id' => '19614','state_id' => '1387','name' => 'Bad Salzuflen'),\n \t array('id' => '19615','state_id' => '1387','name' => 'Bad Sassendorf'),\n \t array('id' => '19616','state_id' => '1387','name' => 'Baesweiler'),\n \t array('id' => '19617','state_id' => '1387','name' => 'Balve'),\n \t array('id' => '19618','state_id' => '1387','name' => 'Barntrup'),\n \t array('id' => '19619','state_id' => '1387','name' => 'Beckum'),\n \t array('id' => '19620','state_id' => '1387','name' => 'Bedburg'),\n \t array('id' => '19621','state_id' => '1387','name' => 'Bedburg-Hau'),\n \t array('id' => '19622','state_id' => '1387','name' => 'Bergheim'),\n \t array('id' => '19623','state_id' => '1387','name' => 'Bergisch Gladbach'),\n \t array('id' => '19624','state_id' => '1387','name' => 'Bergkamen'),\n \t array('id' => '19625','state_id' => '1387','name' => 'Bergneustadt'),\n \t array('id' => '19626','state_id' => '1387','name' => 'Bestwig'),\n \t array('id' => '19627','state_id' => '1387','name' => 'Beverungen'),\n \t array('id' => '19628','state_id' => '1387','name' => 'Bielefeld'),\n \t array('id' => '19629','state_id' => '1387','name' => 'Billerbeck'),\n \t array('id' => '19630','state_id' => '1387','name' => 'Blomberg'),\n \t array('id' => '19631','state_id' => '1387','name' => 'Bocholt'),\n \t array('id' => '19632','state_id' => '1387','name' => 'Bochum'),\n \t array('id' => '19633','state_id' => '1387','name' => 'Bocket'),\n \t array('id' => '19634','state_id' => '1387','name' => 'Bonen'),\n \t array('id' => '19635','state_id' => '1387','name' => 'Bonn'),\n \t array('id' => '19636','state_id' => '1387','name' => 'Borchen'),\n \t array('id' => '19637','state_id' => '1387','name' => 'Borgentreich'),\n \t array('id' => '19638','state_id' => '1387','name' => 'Borgholzhausen'),\n \t array('id' => '19639','state_id' => '1387','name' => 'Borken'),\n \t array('id' => '19640','state_id' => '1387','name' => 'Bornheim'),\n \t array('id' => '19641','state_id' => '1387','name' => 'Bottrop'),\n \t array('id' => '19642','state_id' => '1387','name' => 'Brakel'),\n \t array('id' => '19643','state_id' => '1387','name' => 'Brilon'),\n \t array('id' => '19644','state_id' => '1387','name' => 'Bruggen'),\n \t array('id' => '19645','state_id' => '1387','name' => 'Bruhl'),\n \t array('id' => '19646','state_id' => '1387','name' => 'Bunde'),\n \t array('id' => '19647','state_id' => '1387','name' => 'Burbach'),\n \t array('id' => '19648','state_id' => '1387','name' => 'Buren'),\n \t array('id' => '19649','state_id' => '1387','name' => 'Burscheid'),\n \t array('id' => '19650','state_id' => '1387','name' => 'Castrop-Rauxel'),\n \t array('id' => '19651','state_id' => '1387','name' => 'Coesfeld'),\n \t array('id' => '19652','state_id' => '1387','name' => 'Cologne'),\n \t array('id' => '19653','state_id' => '1387','name' => 'Datteln'),\n \t array('id' => '19654','state_id' => '1387','name' => 'Delbruck'),\n \t array('id' => '19655','state_id' => '1387','name' => 'Denklingen'),\n \t array('id' => '19656','state_id' => '1387','name' => 'Detmold'),\n \t array('id' => '19657','state_id' => '1387','name' => 'Dingden'),\n \t array('id' => '19658','state_id' => '1387','name' => 'Dinslaken'),\n \t array('id' => '19659','state_id' => '1387','name' => 'Dormagen'),\n \t array('id' => '19660','state_id' => '1387','name' => 'Dorsten'),\n \t array('id' => '19661','state_id' => '1387','name' => 'Dortmund'),\n \t array('id' => '19662','state_id' => '1387','name' => 'Drensteinfurt'),\n \t array('id' => '19663','state_id' => '1387','name' => 'Drolshagen'),\n \t array('id' => '19664','state_id' => '1387','name' => 'Duisburg'),\n \t array('id' => '19665','state_id' => '1387','name' => 'Dulmen'),\n \t array('id' => '19666','state_id' => '1387','name' => 'Duren'),\n \t array('id' => '19667','state_id' => '1387','name' => 'Dusseldorf'),\n \t array('id' => '19668','state_id' => '1387','name' => 'Eitorf'),\n \t array('id' => '19669','state_id' => '1387','name' => 'Elsdorf'),\n \t array('id' => '19670','state_id' => '1387','name' => 'Emmerich'),\n \t array('id' => '19671','state_id' => '1387','name' => 'Emsdetten'),\n \t array('id' => '19672','state_id' => '1387','name' => 'Engelskirchen'),\n \t array('id' => '19673','state_id' => '1387','name' => 'Enger'),\n \t array('id' => '19674','state_id' => '1387','name' => 'Ennepetal'),\n \t array('id' => '19675','state_id' => '1387','name' => 'Ennigerloh'),\n \t array('id' => '19676','state_id' => '1387','name' => 'Ense'),\n \t array('id' => '19677','state_id' => '1387','name' => 'Erftstadt'),\n \t array('id' => '19678','state_id' => '1387','name' => 'Erkelenz'),\n \t array('id' => '19679','state_id' => '1387','name' => 'Erkrath'),\n \t array('id' => '19680','state_id' => '1387','name' => 'Erwitte'),\n \t array('id' => '19681','state_id' => '1387','name' => 'Espelkamp'),\n \t array('id' => '19682','state_id' => '1387','name' => 'Essen'),\n \t array('id' => '19683','state_id' => '1387','name' => 'Euskirchen'),\n \t array('id' => '19684','state_id' => '1387','name' => 'Extertal'),\n \t array('id' => '19685','state_id' => '1387','name' => 'Finnentrop'),\n \t array('id' => '19686','state_id' => '1387','name' => 'Frechen'),\n \t array('id' => '19687','state_id' => '1387','name' => 'Freudenberg'),\n \t array('id' => '19688','state_id' => '1387','name' => 'Frondenberg'),\n \t array('id' => '19689','state_id' => '1387','name' => 'Gangelt'),\n \t array('id' => '19690','state_id' => '1387','name' => 'Geilenkirchen'),\n \t array('id' => '19691','state_id' => '1387','name' => 'Geldern'),\n \t array('id' => '19692','state_id' => '1387','name' => 'Gelsenkirchen'),\n \t array('id' => '19693','state_id' => '1387','name' => 'Gescher'),\n \t array('id' => '19694','state_id' => '1387','name' => 'Geseke'),\n \t array('id' => '19695','state_id' => '1387','name' => 'Gevelsberg'),\n \t array('id' => '19696','state_id' => '1387','name' => 'Gladbeck'),\n \t array('id' => '19697','state_id' => '1387','name' => 'Goch'),\n \t array('id' => '19698','state_id' => '1387','name' => 'Grefrath'),\n \t array('id' => '19699','state_id' => '1387','name' => 'Greven'),\n \t array('id' => '19700','state_id' => '1387','name' => 'Grevenbroich'),\n \t array('id' => '19701','state_id' => '1387','name' => 'Gronau'),\n \t array('id' => '19702','state_id' => '1387','name' => 'Gummersbach'),\n \t array('id' => '19703','state_id' => '1387','name' => 'Gutersloh'),\n \t array('id' => '19704','state_id' => '1387','name' => 'Haan'),\n \t array('id' => '19705','state_id' => '1387','name' => 'Hagen'),\n \t array('id' => '19706','state_id' => '1387','name' => 'Halle'),\n \t array('id' => '19707','state_id' => '1387','name' => 'Haltern'),\n \t array('id' => '19708','state_id' => '1387','name' => 'Halver'),\n \t array('id' => '19709','state_id' => '1387','name' => 'Hamm'),\n \t array('id' => '19710','state_id' => '1387','name' => 'Hamminkeln'),\n \t array('id' => '19711','state_id' => '1387','name' => 'Harsewinkel'),\n \t array('id' => '19712','state_id' => '1387','name' => 'Hattingen'),\n \t array('id' => '19713','state_id' => '1387','name' => 'Havixbeck'),\n \t array('id' => '19714','state_id' => '1387','name' => 'Heiligenhaus'),\n \t array('id' => '19715','state_id' => '1387','name' => 'Heinsberg'),\n \t array('id' => '19716','state_id' => '1387','name' => 'Hemer'),\n \t array('id' => '19717','state_id' => '1387','name' => 'Hennef'),\n \t array('id' => '19718','state_id' => '1387','name' => 'Herdecke'),\n \t array('id' => '19719','state_id' => '1387','name' => 'Herford'),\n \t array('id' => '19720','state_id' => '1387','name' => 'Herne'),\n \t array('id' => '19721','state_id' => '1387','name' => 'Herten'),\n \t array('id' => '19722','state_id' => '1387','name' => 'Herzebrock-Clarholz'),\n \t array('id' => '19723','state_id' => '1387','name' => 'Herzogenrath'),\n \t array('id' => '19724','state_id' => '1387','name' => 'Hiddenhausen'),\n \t array('id' => '19725','state_id' => '1387','name' => 'Hilchenbach'),\n \t array('id' => '19726','state_id' => '1387','name' => 'Hilden'),\n \t array('id' => '19727','state_id' => '1387','name' => 'Hille'),\n \t array('id' => '19728','state_id' => '1387','name' => 'Holzwickede'),\n \t array('id' => '19729','state_id' => '1387','name' => 'Horn-Bad Meinberg'),\n \t array('id' => '19730','state_id' => '1387','name' => 'Horstel'),\n \t array('id' => '19731','state_id' => '1387','name' => 'Hovelhof'),\n \t array('id' => '19732','state_id' => '1387','name' => 'Hoxter'),\n \t array('id' => '19733','state_id' => '1387','name' => 'Huckelhoven'),\n \t array('id' => '19734','state_id' => '1387','name' => 'Huckeswagen'),\n \t array('id' => '19735','state_id' => '1387','name' => 'Hullhorst'),\n \t array('id' => '19736','state_id' => '1387','name' => 'Hunxe'),\n \t array('id' => '19737','state_id' => '1387','name' => 'Hurth'),\n \t array('id' => '19738','state_id' => '1387','name' => 'Ibbenburen'),\n \t array('id' => '19739','state_id' => '1387','name' => 'Iserlohn'),\n \t array('id' => '19740','state_id' => '1387','name' => 'Isselburg'),\n \t array('id' => '19741','state_id' => '1387','name' => 'Issum'),\n \t array('id' => '19742','state_id' => '1387','name' => 'Juchen'),\n \t array('id' => '19743','state_id' => '1387','name' => 'Julich'),\n \t array('id' => '19744','state_id' => '1387','name' => 'Kaarst'),\n \t array('id' => '19745','state_id' => '1387','name' => 'Kalkar'),\n \t array('id' => '19746','state_id' => '1387','name' => 'Kall'),\n \t array('id' => '19747','state_id' => '1387','name' => 'Kalletal'),\n \t array('id' => '19748','state_id' => '1387','name' => 'Kamen'),\n \t array('id' => '19749','state_id' => '1387','name' => 'Kamp-Lintfort'),\n \t array('id' => '19750','state_id' => '1387','name' => 'Kempen'),\n \t array('id' => '19751','state_id' => '1387','name' => 'Kerken'),\n \t array('id' => '19752','state_id' => '1387','name' => 'Kerpen'),\n \t array('id' => '19753','state_id' => '1387','name' => 'Kevelaer'),\n \t array('id' => '19754','state_id' => '1387','name' => 'Kierspe'),\n \t array('id' => '19755','state_id' => '1387','name' => 'Kirchhundem'),\n \t array('id' => '19756','state_id' => '1387','name' => 'Kirchlengern'),\n \t array('id' => '19757','state_id' => '1387','name' => 'Kleve'),\n \t array('id' => '19758','state_id' => '1387','name' => 'Koln'),\n \t array('id' => '19759','state_id' => '1387','name' => 'Konigswinter'),\n \t array('id' => '19760','state_id' => '1387','name' => 'Korschenbroich'),\n \t array('id' => '19761','state_id' => '1387','name' => 'Krefeld'),\n \t array('id' => '19762','state_id' => '1387','name' => 'Kreuzau'),\n \t array('id' => '19763','state_id' => '1387','name' => 'Kreuztal'),\n \t array('id' => '19764','state_id' => '1387','name' => 'Kurten'),\n \t array('id' => '19765','state_id' => '1387','name' => 'Lage'),\n \t array('id' => '19766','state_id' => '1387','name' => 'Langenfeld'),\n \t array('id' => '19767','state_id' => '1387','name' => 'Langerwehe'),\n \t array('id' => '19768','state_id' => '1387','name' => 'Leichlingen'),\n \t array('id' => '19769','state_id' => '1387','name' => 'Lemgo'),\n \t array('id' => '19770','state_id' => '1387','name' => 'Lengerich'),\n \t array('id' => '19771','state_id' => '1387','name' => 'Lennestadt'),\n \t array('id' => '19772','state_id' => '1387','name' => 'Leopoldshohe'),\n \t array('id' => '19773','state_id' => '1387','name' => 'Leverkusen'),\n \t array('id' => '19774','state_id' => '1387','name' => 'Lichtenau'),\n \t array('id' => '19775','state_id' => '1387','name' => 'Lindlar'),\n \t array('id' => '19776','state_id' => '1387','name' => 'Linnich'),\n \t array('id' => '19777','state_id' => '1387','name' => 'Lippetal'),\n \t array('id' => '19778','state_id' => '1387','name' => 'Lippstadt'),\n \t array('id' => '19779','state_id' => '1387','name' => 'Lohmar'),\n \t array('id' => '19780','state_id' => '1387','name' => 'Lohne'),\n \t array('id' => '19781','state_id' => '1387','name' => 'Lotte'),\n \t array('id' => '19782','state_id' => '1387','name' => 'Lubbecke'),\n \t array('id' => '19783','state_id' => '1387','name' => 'Ludenscheid'),\n \t array('id' => '19784','state_id' => '1387','name' => 'Ludinghausen'),\n \t array('id' => '19785','state_id' => '1387','name' => 'Lugde'),\n \t array('id' => '19786','state_id' => '1387','name' => 'Lunen'),\n \t array('id' => '19787','state_id' => '1387','name' => 'Marienheide'),\n \t array('id' => '19788','state_id' => '1387','name' => 'Marl'),\n \t array('id' => '19789','state_id' => '1387','name' => 'Marsberg'),\n \t array('id' => '19790','state_id' => '1387','name' => 'Mechernich'),\n \t array('id' => '19791','state_id' => '1387','name' => 'Meckenheim'),\n \t array('id' => '19792','state_id' => '1387','name' => 'Meerbusch'),\n \t array('id' => '19793','state_id' => '1387','name' => 'Meinerzhagen'),\n \t array('id' => '19794','state_id' => '1387','name' => 'Menden'),\n \t array('id' => '19795','state_id' => '1387','name' => 'Meschede'),\n \t array('id' => '19796','state_id' => '1387','name' => 'Mettingen'),\n \t array('id' => '19797','state_id' => '1387','name' => 'Mettmann'),\n \t array('id' => '19798','state_id' => '1387','name' => 'Minden'),\n \t array('id' => '19799','state_id' => '1387','name' => 'Moers'),\n \t array('id' => '19800','state_id' => '1387','name' => 'Mohnesee'),\n \t array('id' => '19801','state_id' => '1387','name' => 'Monchengladbach'),\n \t array('id' => '19802','state_id' => '1387','name' => 'Monheim'),\n \t array('id' => '19803','state_id' => '1387','name' => 'Monschau'),\n \t array('id' => '19804','state_id' => '1387','name' => 'Morsbach'),\n \t array('id' => '19805','state_id' => '1387','name' => 'Much'),\n \t array('id' => '19806','state_id' => '1387','name' => 'Mulheim'),\n \t array('id' => '19807','state_id' => '1387','name' => 'Munster'),\n \t array('id' => '19808','state_id' => '1387','name' => 'Netphen'),\n \t array('id' => '19809','state_id' => '1387','name' => 'Nettetal'),\n \t array('id' => '19810','state_id' => '1387','name' => 'Neuenkirchen'),\n \t array('id' => '19811','state_id' => '1387','name' => 'Neuenrade'),\n \t array('id' => '19812','state_id' => '1387','name' => 'Neukirchen-Vluyn'),\n \t array('id' => '19813','state_id' => '1387','name' => 'Neunkirchen'),\n \t array('id' => '19814','state_id' => '1387','name' => 'Neunkirchen-Seelscheid'),\n \t array('id' => '19815','state_id' => '1387','name' => 'Neuss'),\n \t array('id' => '19816','state_id' => '1387','name' => 'Nideggen'),\n \t array('id' => '19817','state_id' => '1387','name' => 'Niederkassel'),\n \t array('id' => '19818','state_id' => '1387','name' => 'Niederkruchten'),\n \t array('id' => '19819','state_id' => '1387','name' => 'Niederzier'),\n \t array('id' => '19820','state_id' => '1387','name' => 'Nordkirchen'),\n \t array('id' => '19821','state_id' => '1387','name' => 'Norvenich'),\n \t array('id' => '19822','state_id' => '1387','name' => 'Nottuln'),\n \t array('id' => '19823','state_id' => '1387','name' => 'Numbrecht'),\n \t array('id' => '19824','state_id' => '1387','name' => 'Oberhausen'),\n \t array('id' => '19825','state_id' => '1387','name' => 'Ochtrup'),\n \t array('id' => '19826','state_id' => '1387','name' => 'Odenthal'),\n \t array('id' => '19827','state_id' => '1387','name' => 'Oelde'),\n \t array('id' => '19828','state_id' => '1387','name' => 'Oer-Erkenschwick'),\n \t array('id' => '19829','state_id' => '1387','name' => 'Oerlinghausen'),\n \t array('id' => '19830','state_id' => '1387','name' => 'Olfen'),\n \t array('id' => '19831','state_id' => '1387','name' => 'Olpe'),\n \t array('id' => '19832','state_id' => '1387','name' => 'Olsberg'),\n \t array('id' => '19833','state_id' => '1387','name' => 'Overath'),\n \t array('id' => '19834','state_id' => '1387','name' => 'Paderborn'),\n \t array('id' => '19835','state_id' => '1387','name' => 'Petershagen'),\n \t array('id' => '19836','state_id' => '1387','name' => 'Plettenberg'),\n \t array('id' => '19837','state_id' => '1387','name' => 'Porta Westfalica'),\n \t array('id' => '19838','state_id' => '1387','name' => 'PreuBisch Oldendorf'),\n \t array('id' => '19839','state_id' => '1387','name' => 'Pulheim'),\n \t array('id' => '19840','state_id' => '1387','name' => 'Radevormwald'),\n \t array('id' => '19841','state_id' => '1387','name' => 'Raesfeld'),\n \t array('id' => '19842','state_id' => '1387','name' => 'Rahden'),\n \t array('id' => '19843','state_id' => '1387','name' => 'Ratingen'),\n \t array('id' => '19844','state_id' => '1387','name' => 'Recke'),\n \t array('id' => '19845','state_id' => '1387','name' => 'Recklinghausen'),\n \t array('id' => '19846','state_id' => '1387','name' => 'Rees'),\n \t array('id' => '19847','state_id' => '1387','name' => 'Reichshof'),\n \t array('id' => '19848','state_id' => '1387','name' => 'Reken'),\n \t array('id' => '19849','state_id' => '1387','name' => 'Remscheid'),\n \t array('id' => '19850','state_id' => '1387','name' => 'Rheda-Wiedenbruck'),\n \t array('id' => '19851','state_id' => '1387','name' => 'Rhede'),\n \t array('id' => '19852','state_id' => '1387','name' => 'Rheinbach'),\n \t array('id' => '19853','state_id' => '1387','name' => 'Rheinberg'),\n \t array('id' => '19854','state_id' => '1387','name' => 'Rheine'),\n \t array('id' => '19855','state_id' => '1387','name' => 'Rietberg'),\n \t array('id' => '19856','state_id' => '1387','name' => 'Rommerskirchen'),\n \t array('id' => '19857','state_id' => '1387','name' => 'Rosendahl'),\n \t array('id' => '19858','state_id' => '1387','name' => 'Rosrath'),\n \t array('id' => '19859','state_id' => '1387','name' => 'Ruthen'),\n \t array('id' => '19860','state_id' => '1387','name' => 'Salzkotten'),\n \t array('id' => '19861','state_id' => '1387','name' => 'Sassenberg'),\n \t array('id' => '19862','state_id' => '1387','name' => 'Schalksmuhle'),\n \t array('id' => '19863','state_id' => '1387','name' => 'Schermbeck'),\n \t array('id' => '19864','state_id' => '1387','name' => 'Schieder-Schwalenberg'),\n \t array('id' => '19865','state_id' => '1387','name' => 'Schleiden'),\n \t array('id' => '19866','state_id' => '1387','name' => 'SchloB Holte-Stukenbrock'),\n \t array('id' => '19867','state_id' => '1387','name' => 'Schmallenberg'),\n \t array('id' => '19868','state_id' => '1387','name' => 'Schwalmtal'),\n \t array('id' => '19869','state_id' => '1387','name' => 'Schwelm'),\n \t array('id' => '19870','state_id' => '1387','name' => 'Schwerte'),\n \t array('id' => '19871','state_id' => '1387','name' => 'Selm'),\n \t array('id' => '19872','state_id' => '1387','name' => 'Senden'),\n \t array('id' => '19873','state_id' => '1387','name' => 'Sendenhorst'),\n \t array('id' => '19874','state_id' => '1387','name' => 'Siegburg'),\n \t array('id' => '19875','state_id' => '1387','name' => 'Siegen'),\n \t array('id' => '19876','state_id' => '1387','name' => 'Simmerath'),\n \t array('id' => '19877','state_id' => '1387','name' => 'Soest'),\n \t array('id' => '19878','state_id' => '1387','name' => 'Solingen'),\n \t array('id' => '19879','state_id' => '1387','name' => 'Sonsbeck'),\n \t array('id' => '19880','state_id' => '1387','name' => 'Spenge'),\n \t array('id' => '19881','state_id' => '1387','name' => 'Sprockhovel'),\n \t array('id' => '19882','state_id' => '1387','name' => 'Stadtlohn'),\n \t array('id' => '19883','state_id' => '1387','name' => 'Steinfurt'),\n \t array('id' => '19884','state_id' => '1387','name' => 'Steinhagen'),\n \t array('id' => '19885','state_id' => '1387','name' => 'Steinheim'),\n \t array('id' => '19886','state_id' => '1387','name' => 'Stemwede'),\n \t array('id' => '19887','state_id' => '1387','name' => 'Stolberg'),\n \t array('id' => '19888','state_id' => '1387','name' => 'Straelen'),\n \t array('id' => '19889','state_id' => '1387','name' => 'Sundern'),\n \t array('id' => '19890','state_id' => '1387','name' => 'Swisttal'),\n \t array('id' => '19891','state_id' => '1387','name' => 'Tecklenburg'),\n \t array('id' => '19892','state_id' => '1387','name' => 'Telgte'),\n \t array('id' => '19893','state_id' => '1387','name' => 'Tonisvorst'),\n \t array('id' => '19894','state_id' => '1387','name' => 'Troisdorf'),\n \t array('id' => '19895','state_id' => '1387','name' => 'Ubach-Palenberg'),\n \t array('id' => '19896','state_id' => '1387','name' => 'Unna'),\n \t array('id' => '19897','state_id' => '1387','name' => 'Velbert'),\n \t array('id' => '19898','state_id' => '1387','name' => 'Velen'),\n \t array('id' => '19899','state_id' => '1387','name' => 'Verl'),\n \t array('id' => '19900','state_id' => '1387','name' => 'Versmold'),\n \t array('id' => '19901','state_id' => '1387','name' => 'Viersen'),\n \t array('id' => '19902','state_id' => '1387','name' => 'Vlotho'),\n \t array('id' => '19903','state_id' => '1387','name' => 'Voerde'),\n \t array('id' => '19904','state_id' => '1387','name' => 'Vreden'),\n \t array('id' => '19905','state_id' => '1387','name' => 'Wachtberg'),\n \t array('id' => '19906','state_id' => '1387','name' => 'Wachtendonk'),\n \t array('id' => '19907','state_id' => '1387','name' => 'Wadersloh'),\n \t array('id' => '19908','state_id' => '1387','name' => 'Waldbrol'),\n \t array('id' => '19909','state_id' => '1387','name' => 'Waltrop'),\n \t array('id' => '19910','state_id' => '1387','name' => 'Warburg'),\n \t array('id' => '19911','state_id' => '1387','name' => 'Warendorf'),\n \t array('id' => '19912','state_id' => '1387','name' => 'Warstein'),\n \t array('id' => '19913','state_id' => '1387','name' => 'Wassenberg'),\n \t array('id' => '19914','state_id' => '1387','name' => 'Weeze'),\n \t array('id' => '19915','state_id' => '1387','name' => 'Wegberg'),\n \t array('id' => '19916','state_id' => '1387','name' => 'Weilerswist'),\n \t array('id' => '19917','state_id' => '1387','name' => 'Welver'),\n \t array('id' => '19918','state_id' => '1387','name' => 'Wenden'),\n \t array('id' => '19919','state_id' => '1387','name' => 'Werdohl'),\n \t array('id' => '19920','state_id' => '1387','name' => 'Werl'),\n \t array('id' => '19921','state_id' => '1387','name' => 'Wermelskirchen'),\n \t array('id' => '19922','state_id' => '1387','name' => 'Werne'),\n \t array('id' => '19923','state_id' => '1387','name' => 'Werther'),\n \t array('id' => '19924','state_id' => '1387','name' => 'Wesel'),\n \t array('id' => '19925','state_id' => '1387','name' => 'Wesseling'),\n \t array('id' => '19926','state_id' => '1387','name' => 'Westerkappeln'),\n \t array('id' => '19927','state_id' => '1387','name' => 'Wetter'),\n \t array('id' => '19928','state_id' => '1387','name' => 'Wickede'),\n \t array('id' => '19929','state_id' => '1387','name' => 'Wiehl'),\n \t array('id' => '19930','state_id' => '1387','name' => 'Willich'),\n \t array('id' => '19931','state_id' => '1387','name' => 'Wilnsdorf'),\n \t array('id' => '19932','state_id' => '1387','name' => 'Windeck'),\n \t array('id' => '19933','state_id' => '1387','name' => 'Winterberg'),\n \t array('id' => '19934','state_id' => '1387','name' => 'Wipperfurth'),\n \t array('id' => '19935','state_id' => '1387','name' => 'Witten'),\n \t array('id' => '19936','state_id' => '1387','name' => 'Wulfrath'),\n \t array('id' => '19937','state_id' => '1387','name' => 'Wunnenberg'),\n \t array('id' => '19938','state_id' => '1387','name' => 'Wuppertal'),\n \t array('id' => '19939','state_id' => '1387','name' => 'Wurselen'),\n \t array('id' => '19940','state_id' => '1387','name' => 'Xanten'),\n \t array('id' => '19941','state_id' => '1387','name' => 'Zulpich'),\n \t array('id' => '19942','state_id' => '1389','name' => 'Herzberg am Harz'),\n \t array('id' => '19943','state_id' => '1390','name' => 'Alzey'),\n \t array('id' => '19944','state_id' => '1390','name' => 'Andernach'),\n \t array('id' => '19945','state_id' => '1390','name' => 'Bad Durkheim'),\n \t array('id' => '19946','state_id' => '1390','name' => 'Bad Ems'),\n \t array('id' => '19947','state_id' => '1390','name' => 'Bad Kreuznach'),\n \t array('id' => '19948','state_id' => '1390','name' => 'Bad Neuenahr-Ahrweiler'),\n \t array('id' => '19949','state_id' => '1390','name' => 'Bendorf'),\n \t array('id' => '19950','state_id' => '1390','name' => 'Betzdorf'),\n \t array('id' => '19951','state_id' => '1390','name' => 'Bingen'),\n \t array('id' => '19952','state_id' => '1390','name' => 'Bitburg'),\n \t array('id' => '19953','state_id' => '1390','name' => 'Bobenheim-Roxheim'),\n \t array('id' => '19954','state_id' => '1390','name' => 'Bohl-Iggelheim'),\n \t array('id' => '19955','state_id' => '1390','name' => 'Boppard'),\n \t array('id' => '19956','state_id' => '1390','name' => 'Daun'),\n \t array('id' => '19957','state_id' => '1390','name' => 'Diez'),\n \t array('id' => '19958','state_id' => '1390','name' => 'Eisenberg'),\n \t array('id' => '19959','state_id' => '1390','name' => 'Essingen'),\n \t array('id' => '19960','state_id' => '1390','name' => 'Frankenthal'),\n \t array('id' => '19961','state_id' => '1390','name' => 'Gau-Odernheim'),\n \t array('id' => '19962','state_id' => '1390','name' => 'Germersheim'),\n \t array('id' => '19963','state_id' => '1390','name' => 'Grunstadt'),\n \t array('id' => '19964','state_id' => '1390','name' => 'HaBloch'),\n \t array('id' => '19965','state_id' => '1390','name' => 'Hahnstatten'),\n \t array('id' => '19966','state_id' => '1390','name' => 'Hallschlag'),\n \t array('id' => '19967','state_id' => '1390','name' => 'Herschbach'),\n \t array('id' => '19968','state_id' => '1390','name' => 'Herxheim'),\n \t array('id' => '19969','state_id' => '1390','name' => 'Hirschhorn'),\n \t array('id' => '19970','state_id' => '1390','name' => 'Hohr-Grenzhausen'),\n \t array('id' => '19971','state_id' => '1390','name' => 'Holzheim'),\n \t array('id' => '19972','state_id' => '1390','name' => 'Idar-Oberstein'),\n \t array('id' => '19973','state_id' => '1390','name' => 'Ingelheim'),\n \t array('id' => '19974','state_id' => '1390','name' => 'Kaisersesch'),\n \t array('id' => '19975','state_id' => '1390','name' => 'Kaiserslautern'),\n \t array('id' => '19976','state_id' => '1390','name' => 'Kastellaun'),\n \t array('id' => '19977','state_id' => '1390','name' => 'Kindsbach'),\n \t array('id' => '19978','state_id' => '1390','name' => 'Kirchen'),\n \t array('id' => '19979','state_id' => '1390','name' => 'Kirn'),\n \t array('id' => '19980','state_id' => '1390','name' => 'Koblenz'),\n \t array('id' => '19981','state_id' => '1390','name' => 'Lahnstein'),\n \t array('id' => '19982','state_id' => '1390','name' => 'Landau'),\n \t array('id' => '19983','state_id' => '1390','name' => 'Limburgerhof'),\n \t array('id' => '19984','state_id' => '1390','name' => 'Luckenburg'),\n \t array('id' => '19985','state_id' => '1390','name' => 'Ludwigshafen'),\n \t array('id' => '19986','state_id' => '1390','name' => 'Mainz'),\n \t array('id' => '19987','state_id' => '1390','name' => 'Mayen'),\n \t array('id' => '19988','state_id' => '1390','name' => 'Montabaur'),\n \t array('id' => '19989','state_id' => '1390','name' => 'Morbach'),\n \t array('id' => '19990','state_id' => '1390','name' => 'Mulheim-Karlich'),\n \t array('id' => '19991','state_id' => '1390','name' => 'Mundersbach'),\n \t array('id' => '19992','state_id' => '1390','name' => 'Mutterstadt'),\n \t array('id' => '19993','state_id' => '1390','name' => 'Nassau'),\n \t array('id' => '19994','state_id' => '1390','name' => 'Neitersen'),\n \t array('id' => '19995','state_id' => '1390','name' => 'Neustadt'),\n \t array('id' => '19996','state_id' => '1390','name' => 'Neuwied'),\n \t array('id' => '19997','state_id' => '1390','name' => 'Niederzissen'),\n \t array('id' => '19998','state_id' => '1390','name' => 'Pirmasens'),\n \t array('id' => '19999','state_id' => '1390','name' => 'Plaidt'),\n \t array('id' => '20000','state_id' => '1390','name' => 'Remagen'),\n \t array('id' => '20001','state_id' => '1390','name' => 'Schifferstadt'),\n \t array('id' => '20002','state_id' => '1390','name' => 'Schoenenberg Kuebelberg'),\n \t array('id' => '20003','state_id' => '1390','name' => 'Sinzig'),\n \t array('id' => '20004','state_id' => '1390','name' => 'Speyer'),\n \t array('id' => '20005','state_id' => '1390','name' => 'St. Goar'),\n \t array('id' => '20006','state_id' => '1390','name' => 'Trier'),\n \t array('id' => '20007','state_id' => '1390','name' => 'Vallendar'),\n \t array('id' => '20008','state_id' => '1390','name' => 'Winterbach'),\n \t array('id' => '20009','state_id' => '1390','name' => 'Wittlich'),\n \t array('id' => '20010','state_id' => '1390','name' => 'Worms'),\n \t array('id' => '20011','state_id' => '1390','name' => 'Worth'),\n \t array('id' => '20012','state_id' => '1390','name' => 'Zweibrucken'),\n \t array('id' => '20013','state_id' => '1391','name' => 'Adenau'),\n \t array('id' => '20014','state_id' => '1391','name' => 'Anhausen'),\n \t array('id' => '20015','state_id' => '1391','name' => 'Barbelroth'),\n \t array('id' => '20016','state_id' => '1391','name' => 'Berndroth'),\n \t array('id' => '20017','state_id' => '1391','name' => 'Bernkastel-Kues'),\n \t array('id' => '20018','state_id' => '1391','name' => 'Burgbrohl'),\n \t array('id' => '20019','state_id' => '1391','name' => 'Dieblich'),\n \t array('id' => '20020','state_id' => '1391','name' => 'Dierdorf'),\n \t array('id' => '20021','state_id' => '1391','name' => 'Dreisbach'),\n \t array('id' => '20022','state_id' => '1391','name' => 'Elsoff'),\n \t array('id' => '20023','state_id' => '1391','name' => 'Enkenbach-Alsenborn'),\n \t array('id' => '20024','state_id' => '1391','name' => 'Etzbach'),\n \t array('id' => '20025','state_id' => '1391','name' => 'Flonheim'),\n \t array('id' => '20026','state_id' => '1391','name' => 'Fohren'),\n \t array('id' => '20027','state_id' => '1391','name' => 'Grafschaft'),\n \t array('id' => '20028','state_id' => '1391','name' => 'Hochspeyer'),\n \t array('id' => '20029','state_id' => '1391','name' => 'Leiningen'),\n \t array('id' => '20030','state_id' => '1391','name' => 'Moschheim'),\n \t array('id' => '20031','state_id' => '1391','name' => 'Murlenbach'),\n \t array('id' => '20032','state_id' => '1391','name' => 'Neuhofen'),\n \t array('id' => '20033','state_id' => '1391','name' => 'Nievern'),\n \t array('id' => '20034','state_id' => '1391','name' => 'Norken'),\n \t array('id' => '20035','state_id' => '1391','name' => 'Oberlahr'),\n \t array('id' => '20036','state_id' => '1391','name' => 'Otterstadt'),\n \t array('id' => '20037','state_id' => '1391','name' => 'Rennerod'),\n \t array('id' => '20038','state_id' => '1391','name' => 'Rheinbreitbach'),\n \t array('id' => '20039','state_id' => '1391','name' => 'Rieschweiler-Muhlbach'),\n \t array('id' => '20040','state_id' => '1391','name' => 'Saarburg'),\n \t array('id' => '20041','state_id' => '1391','name' => 'Stahlhofen'),\n \t array('id' => '20042','state_id' => '1391','name' => 'Steinebach'),\n \t array('id' => '20043','state_id' => '1391','name' => 'Weinsheim'),\n \t array('id' => '20044','state_id' => '1391','name' => 'Winnweiler'),\n \t array('id' => '20045','state_id' => '1391','name' => 'Wissen'),\n \t array('id' => '20046','state_id' => '1392','name' => 'Beckingen'),\n \t array('id' => '20047','state_id' => '1392','name' => 'Bexbach'),\n \t array('id' => '20048','state_id' => '1392','name' => 'Blieskastel'),\n \t array('id' => '20049','state_id' => '1392','name' => 'Dillingen'),\n \t array('id' => '20050','state_id' => '1392','name' => 'Duppenweiler'),\n \t array('id' => '20051','state_id' => '1392','name' => 'Eppelborn'),\n \t array('id' => '20052','state_id' => '1392','name' => 'Friedrichsthal'),\n \t array('id' => '20053','state_id' => '1392','name' => 'GroBrosseln'),\n \t array('id' => '20054','state_id' => '1392','name' => 'Heusweiler'),\n \t array('id' => '20055','state_id' => '1392','name' => 'Homburg'),\n \t array('id' => '20056','state_id' => '1392','name' => 'Illingen'),\n \t array('id' => '20057','state_id' => '1392','name' => 'Kirkel'),\n \t array('id' => '20058','state_id' => '1392','name' => 'Kleinblittersdorf'),\n \t array('id' => '20059','state_id' => '1392','name' => 'Lebach'),\n \t array('id' => '20060','state_id' => '1392','name' => 'Losheim'),\n \t array('id' => '20061','state_id' => '1392','name' => 'Mandelbachtal'),\n \t array('id' => '20062','state_id' => '1392','name' => 'Marpingen'),\n \t array('id' => '20063','state_id' => '1392','name' => 'Merchweiler'),\n \t array('id' => '20064','state_id' => '1392','name' => 'Merzig'),\n \t array('id' => '20065','state_id' => '1392','name' => 'Mettlach'),\n \t array('id' => '20066','state_id' => '1392','name' => 'Nalbach'),\n \t array('id' => '20067','state_id' => '1392','name' => 'Neunkirchen'),\n \t array('id' => '20068','state_id' => '1392','name' => 'Nohfelden'),\n \t array('id' => '20069','state_id' => '1392','name' => 'Nonnweiler'),\n \t array('id' => '20070','state_id' => '1392','name' => 'Oberthal'),\n \t array('id' => '20071','state_id' => '1392','name' => 'Ottweiler'),\n \t array('id' => '20072','state_id' => '1392','name' => 'Puttlingen'),\n \t array('id' => '20073','state_id' => '1392','name' => 'Quierschied'),\n \t array('id' => '20074','state_id' => '1392','name' => 'Rehlingen-Siersburg'),\n \t array('id' => '20075','state_id' => '1392','name' => 'Riegelsberg'),\n \t array('id' => '20076','state_id' => '1392','name' => 'Saarbrucken'),\n \t array('id' => '20077','state_id' => '1392','name' => 'Saarlouis'),\n \t array('id' => '20078','state_id' => '1392','name' => 'Saarwellingen'),\n \t array('id' => '20079','state_id' => '1392','name' => 'Sankt Ingbert'),\n \t array('id' => '20080','state_id' => '1392','name' => 'Sankt Wendel'),\n \t array('id' => '20081','state_id' => '1392','name' => 'Schiffweiler'),\n \t array('id' => '20082','state_id' => '1392','name' => 'Schmelz'),\n \t array('id' => '20083','state_id' => '1392','name' => 'Schwalbach'),\n \t array('id' => '20084','state_id' => '1392','name' => 'Spiesen-Elversberg'),\n \t array('id' => '20085','state_id' => '1392','name' => 'Sulzbach'),\n \t array('id' => '20086','state_id' => '1392','name' => 'Tholey'),\n \t array('id' => '20087','state_id' => '1392','name' => 'Uberherrn'),\n \t array('id' => '20088','state_id' => '1392','name' => 'Volklingen'),\n \t array('id' => '20089','state_id' => '1392','name' => 'Wadern'),\n \t array('id' => '20090','state_id' => '1392','name' => 'Wadgassen'),\n \t array('id' => '20091','state_id' => '1392','name' => 'Wallerfangen'),\n \t array('id' => '20092','state_id' => '1392','name' => 'Weiskirchen'),\n \t array('id' => '20093','state_id' => '1393','name' => 'Annaberg-Buchholz'),\n \t array('id' => '20094','state_id' => '1393','name' => 'Aue'),\n \t array('id' => '20095','state_id' => '1393','name' => 'Auerbach'),\n \t array('id' => '20096','state_id' => '1393','name' => 'Bautzen'),\n \t array('id' => '20097','state_id' => '1393','name' => 'Bischofswerda'),\n \t array('id' => '20098','state_id' => '1393','name' => 'Borna'),\n \t array('id' => '20099','state_id' => '1393','name' => 'Brand-Erbisdorf'),\n \t array('id' => '20100','state_id' => '1393','name' => 'Burgstadt'),\n \t array('id' => '20101','state_id' => '1393','name' => 'Chemnitz'),\n \t array('id' => '20102','state_id' => '1393','name' => 'Coswig'),\n \t array('id' => '20103','state_id' => '1393','name' => 'Crimmitschau'),\n \t array('id' => '20104','state_id' => '1393','name' => 'Delitzsch'),\n \t array('id' => '20105','state_id' => '1393','name' => 'Dobeln'),\n \t array('id' => '20106','state_id' => '1393','name' => 'Dresden'),\n \t array('id' => '20107','state_id' => '1393','name' => 'Ebersbach'),\n \t array('id' => '20108','state_id' => '1393','name' => 'Eilenburg'),\n \t array('id' => '20109','state_id' => '1393','name' => 'Falkenstein'),\n \t array('id' => '20110','state_id' => '1393','name' => 'Floha'),\n \t array('id' => '20111','state_id' => '1393','name' => 'Frankenberg'),\n \t array('id' => '20112','state_id' => '1393','name' => 'Freiberg'),\n \t array('id' => '20113','state_id' => '1393','name' => 'Freital'),\n \t array('id' => '20114','state_id' => '1393','name' => 'Friedewald'),\n \t array('id' => '20115','state_id' => '1393','name' => 'Glauchau'),\n \t array('id' => '20116','state_id' => '1393','name' => 'Gorlitz'),\n \t array('id' => '20117','state_id' => '1393','name' => 'Grimma'),\n \t array('id' => '20118','state_id' => '1393','name' => 'GroBenhain'),\n \t array('id' => '20119','state_id' => '1393','name' => 'Groditz'),\n \t array('id' => '20120','state_id' => '1393','name' => 'Hainichen'),\n \t array('id' => '20121','state_id' => '1393','name' => 'Heidenau'),\n \t array('id' => '20122','state_id' => '1393','name' => 'Hirschstein'),\n \t array('id' => '20123','state_id' => '1393','name' => 'Hohenstein-Ernstthal'),\n \t array('id' => '20124','state_id' => '1393','name' => 'Hoyerswerda'),\n \t array('id' => '20125','state_id' => '1393','name' => 'Kamenz'),\n \t array('id' => '20126','state_id' => '1393','name' => 'Klingenthal'),\n \t array('id' => '20127','state_id' => '1393','name' => 'Leipzig'),\n \t array('id' => '20128','state_id' => '1393','name' => 'Lichtenstein'),\n \t array('id' => '20129','state_id' => '1393','name' => 'Limbach-Oberfrohna'),\n \t array('id' => '20130','state_id' => '1393','name' => 'LoBnitz'),\n \t array('id' => '20131','state_id' => '1393','name' => 'Lobau'),\n \t array('id' => '20132','state_id' => '1393','name' => 'Lugau'),\n \t array('id' => '20133','state_id' => '1393','name' => 'Marienberg'),\n \t array('id' => '20134','state_id' => '1393','name' => 'Markkleeberg'),\n \t array('id' => '20135','state_id' => '1393','name' => 'Meerane'),\n \t array('id' => '20136','state_id' => '1393','name' => 'MeiBen'),\n \t array('id' => '20137','state_id' => '1393','name' => 'Mittweida'),\n \t array('id' => '20138','state_id' => '1393','name' => 'Muldenhammer'),\n \t array('id' => '20139','state_id' => '1393','name' => 'Neustadt'),\n \t array('id' => '20140','state_id' => '1393','name' => 'Niesky'),\n \t array('id' => '20141','state_id' => '1393','name' => 'Oelsnitz'),\n \t array('id' => '20142','state_id' => '1393','name' => 'Olbernhau'),\n \t array('id' => '20143','state_id' => '1393','name' => 'Olbersdorf'),\n \t array('id' => '20144','state_id' => '1393','name' => 'Oschatz'),\n \t array('id' => '20145','state_id' => '1393','name' => 'Pirna'),\n \t array('id' => '20146','state_id' => '1393','name' => 'Plauen'),\n \t array('id' => '20147','state_id' => '1393','name' => 'Radeberg'),\n \t array('id' => '20148','state_id' => '1393','name' => 'Radebeul'),\n \t array('id' => '20149','state_id' => '1393','name' => 'Reichenbach'),\n \t array('id' => '20150','state_id' => '1393','name' => 'Riesa'),\n \t array('id' => '20151','state_id' => '1393','name' => 'Rietschen'),\n \t array('id' => '20152','state_id' => '1393','name' => 'Schkeuditz'),\n \t array('id' => '20153','state_id' => '1393','name' => 'Schneeberg'),\n \t array('id' => '20154','state_id' => '1393','name' => 'Schwarzenberg'),\n \t array('id' => '20155','state_id' => '1393','name' => 'Sebnitz'),\n \t array('id' => '20156','state_id' => '1393','name' => 'Stollberg'),\n \t array('id' => '20157','state_id' => '1393','name' => 'Taubenheim'),\n \t array('id' => '20158','state_id' => '1393','name' => 'Taucha'),\n \t array('id' => '20159','state_id' => '1393','name' => 'Thalheim'),\n \t array('id' => '20160','state_id' => '1393','name' => 'Torgau'),\n \t array('id' => '20161','state_id' => '1393','name' => 'Waldheim'),\n \t array('id' => '20162','state_id' => '1393','name' => 'WeiBwasser'),\n \t array('id' => '20163','state_id' => '1393','name' => 'Werdau'),\n \t array('id' => '20164','state_id' => '1393','name' => 'Wilkau-HaBlau'),\n \t array('id' => '20165','state_id' => '1393','name' => 'Wurzen'),\n \t array('id' => '20166','state_id' => '1393','name' => 'Zittau'),\n \t array('id' => '20167','state_id' => '1393','name' => 'Zschopau'),\n \t array('id' => '20168','state_id' => '1393','name' => 'Zwickau'),\n \t array('id' => '20169','state_id' => '1393','name' => 'Zwonitz'),\n \t array('id' => '20170','state_id' => '1394','name' => 'Aken'),\n \t array('id' => '20171','state_id' => '1394','name' => 'Aschersleben'),\n \t array('id' => '20172','state_id' => '1394','name' => 'Bad Durrenberg'),\n \t array('id' => '20173','state_id' => '1394','name' => 'Bebitz'),\n \t array('id' => '20174','state_id' => '1394','name' => 'Bernburg'),\n \t array('id' => '20175','state_id' => '1394','name' => 'Bitterfeld'),\n \t array('id' => '20176','state_id' => '1394','name' => 'Blankenburg'),\n \t array('id' => '20177','state_id' => '1394','name' => 'Braunsbedra'),\n \t array('id' => '20178','state_id' => '1394','name' => 'Burg'),\n \t array('id' => '20179','state_id' => '1394','name' => 'Calbe'),\n \t array('id' => '20180','state_id' => '1394','name' => 'Coswig'),\n \t array('id' => '20181','state_id' => '1394','name' => 'Dessau'),\n \t array('id' => '20182','state_id' => '1394','name' => 'Eisleben'),\n \t array('id' => '20183','state_id' => '1394','name' => 'Gardelegen'),\n \t array('id' => '20184','state_id' => '1394','name' => 'Genthin'),\n \t array('id' => '20185','state_id' => '1394','name' => 'Gommern'),\n \t array('id' => '20186','state_id' => '1394','name' => 'Grafenhainichen'),\n \t array('id' => '20187','state_id' => '1394','name' => 'Halberstadt'),\n \t array('id' => '20188','state_id' => '1394','name' => 'Haldensleben'),\n \t array('id' => '20189','state_id' => '1394','name' => 'Halle'),\n \t array('id' => '20190','state_id' => '1394','name' => 'Hettstedt'),\n \t array('id' => '20191','state_id' => '1394','name' => 'Heyrothsberge'),\n \t array('id' => '20192','state_id' => '1394','name' => 'Hotensleben'),\n \t array('id' => '20193','state_id' => '1394','name' => 'Kothen'),\n \t array('id' => '20194','state_id' => '1394','name' => 'Leuna'),\n \t array('id' => '20195','state_id' => '1394','name' => 'Magdeburg'),\n \t array('id' => '20196','state_id' => '1394','name' => 'Merseburg'),\n \t array('id' => '20197','state_id' => '1394','name' => 'Naumburg'),\n \t array('id' => '20198','state_id' => '1394','name' => 'Oschersleben'),\n \t array('id' => '20199','state_id' => '1394','name' => 'Osterburg'),\n \t array('id' => '20200','state_id' => '1394','name' => 'Osterwieck'),\n \t array('id' => '20201','state_id' => '1394','name' => 'Quedlinburg'),\n \t array('id' => '20202','state_id' => '1394','name' => 'Querfurt'),\n \t array('id' => '20203','state_id' => '1394','name' => 'Raguhn'),\n \t array('id' => '20204','state_id' => '1394','name' => 'RoBlau'),\n \t array('id' => '20205','state_id' => '1394','name' => 'Salzwedel'),\n \t array('id' => '20206','state_id' => '1394','name' => 'Sangerhausen'),\n \t array('id' => '20207','state_id' => '1394','name' => 'Schonebeck'),\n \t array('id' => '20208','state_id' => '1394','name' => 'StaBfurt'),\n \t array('id' => '20209','state_id' => '1394','name' => 'Stendal'),\n \t array('id' => '20210','state_id' => '1394','name' => 'Tangermunde'),\n \t array('id' => '20211','state_id' => '1394','name' => 'Thale'),\n \t array('id' => '20212','state_id' => '1394','name' => 'WeiBenfels'),\n \t array('id' => '20213','state_id' => '1394','name' => 'Wittenberg'),\n \t array('id' => '20214','state_id' => '1394','name' => 'Wolfen'),\n \t array('id' => '20215','state_id' => '1394','name' => 'Wolmirstedt'),\n \t array('id' => '20216','state_id' => '1394','name' => 'Zeitz'),\n \t array('id' => '20217','state_id' => '1394','name' => 'Zerbst'),\n \t array('id' => '20218','state_id' => '1395','name' => 'Bad Lausick'),\n \t array('id' => '20219','state_id' => '1395','name' => 'Bernsdorf'),\n \t array('id' => '20220','state_id' => '1395','name' => 'Borde-Hakel'),\n \t array('id' => '20221','state_id' => '1395','name' => 'Gelenau'),\n \t array('id' => '20222','state_id' => '1395','name' => 'Groberkmannsdorf '),\n \t array('id' => '20223','state_id' => '1395','name' => 'Hartha'),\n \t array('id' => '20224','state_id' => '1395','name' => 'Kreischa'),\n \t array('id' => '20225','state_id' => '1395','name' => 'Malschwitz'),\n \t array('id' => '20226','state_id' => '1395','name' => 'Naunhof'),\n \t array('id' => '20227','state_id' => '1395','name' => 'Pausa'),\n \t array('id' => '20228','state_id' => '1395','name' => 'Seiffen'),\n \t array('id' => '20229','state_id' => '1395','name' => 'Stutzengrun'),\n \t array('id' => '20230','state_id' => '1396','name' => 'Ahrensbok'),\n \t array('id' => '20231','state_id' => '1396','name' => 'Ahrensburg'),\n \t array('id' => '20232','state_id' => '1396','name' => 'Altenholz'),\n \t array('id' => '20233','state_id' => '1396','name' => 'Alveslohe'),\n \t array('id' => '20234','state_id' => '1396','name' => 'Ammersbek'),\n \t array('id' => '20235','state_id' => '1396','name' => 'Bad Bramstedt'),\n \t array('id' => '20236','state_id' => '1396','name' => 'Bad Oldesloe'),\n \t array('id' => '20237','state_id' => '1396','name' => 'Bad Schwartau'),\n \t array('id' => '20238','state_id' => '1396','name' => 'Bad Segeberg'),\n \t array('id' => '20239','state_id' => '1396','name' => 'Bargteheide'),\n \t array('id' => '20240','state_id' => '1396','name' => 'Barmstedt'),\n \t array('id' => '20241','state_id' => '1396','name' => 'Barsbuttel'),\n \t array('id' => '20242','state_id' => '1396','name' => 'Bredstedt'),\n \t array('id' => '20243','state_id' => '1396','name' => 'Brunsbuttel'),\n \t array('id' => '20244','state_id' => '1396','name' => 'Budelsdorf'),\n \t array('id' => '20245','state_id' => '1396','name' => 'Eckernforde'),\n \t array('id' => '20246','state_id' => '1396','name' => 'Eddelak'),\n \t array('id' => '20247','state_id' => '1396','name' => 'Elmshorn'),\n \t array('id' => '20248','state_id' => '1396','name' => 'Eutin'),\n \t array('id' => '20249','state_id' => '1396','name' => 'Flensburg'),\n \t array('id' => '20250','state_id' => '1396','name' => 'Friedrichstadt'),\n \t array('id' => '20251','state_id' => '1396','name' => 'Geesthacht'),\n \t array('id' => '20252','state_id' => '1396','name' => 'Glinde'),\n \t array('id' => '20253','state_id' => '1396','name' => 'Gluckstadt'),\n \t array('id' => '20254','state_id' => '1396','name' => 'Grob Pampau'),\n \t array('id' => '20255','state_id' => '1396','name' => 'Halstenbek'),\n \t array('id' => '20256','state_id' => '1396','name' => 'Hamfelde'),\n \t array('id' => '20257','state_id' => '1396','name' => 'Harrislee'),\n \t array('id' => '20258','state_id' => '1396','name' => 'Hartenholm'),\n \t array('id' => '20259','state_id' => '1396','name' => 'Heide'),\n \t array('id' => '20260','state_id' => '1396','name' => 'Heiligenhafen'),\n \t array('id' => '20261','state_id' => '1396','name' => 'Henstedt-Ulzburg'),\n \t array('id' => '20262','state_id' => '1396','name' => 'Honenwestedt'),\n \t array('id' => '20263','state_id' => '1396','name' => 'Husum'),\n \t array('id' => '20264','state_id' => '1396','name' => 'Itzehoe'),\n \t array('id' => '20265','state_id' => '1396','name' => 'Kaltenkirchen'),\n \t array('id' => '20266','state_id' => '1396','name' => 'Kappeln'),\n \t array('id' => '20267','state_id' => '1396','name' => 'Kiel'),\n \t array('id' => '20268','state_id' => '1396','name' => 'Kronshagen'),\n \t array('id' => '20269','state_id' => '1396','name' => 'Lauenburg'),\n \t array('id' => '20270','state_id' => '1396','name' => 'Lensahn'),\n \t array('id' => '20271','state_id' => '1396','name' => 'Lubeck'),\n \t array('id' => '20272','state_id' => '1396','name' => 'Malente'),\n \t array('id' => '20273','state_id' => '1396','name' => 'Mielkendorf'),\n \t array('id' => '20274','state_id' => '1396','name' => 'Molfsee'),\n \t array('id' => '20275','state_id' => '1396','name' => 'Molln'),\n \t array('id' => '20276','state_id' => '1396','name' => 'Neuenbrook'),\n \t array('id' => '20277','state_id' => '1396','name' => 'Neumunster'),\n \t array('id' => '20278','state_id' => '1396','name' => 'Neustadt'),\n \t array('id' => '20279','state_id' => '1396','name' => 'Norderstedt'),\n \t array('id' => '20280','state_id' => '1396','name' => 'Oldenburg'),\n \t array('id' => '20281','state_id' => '1396','name' => 'Oststeinbek'),\n \t array('id' => '20282','state_id' => '1396','name' => 'Pinneberg'),\n \t array('id' => '20283','state_id' => '1396','name' => 'Plon'),\n \t array('id' => '20284','state_id' => '1396','name' => 'Preetz'),\n \t array('id' => '20285','state_id' => '1396','name' => 'Quickborn'),\n \t array('id' => '20286','state_id' => '1396','name' => 'Ratekau'),\n \t array('id' => '20287','state_id' => '1396','name' => 'Ratzeburg'),\n \t array('id' => '20288','state_id' => '1396','name' => 'Reinbek'),\n \t array('id' => '20289','state_id' => '1396','name' => 'Reinfeld'),\n \t array('id' => '20290','state_id' => '1396','name' => 'Rellingen'),\n \t array('id' => '20291','state_id' => '1396','name' => 'Rendsburg'),\n \t array('id' => '20292','state_id' => '1396','name' => 'Rethwisch'),\n \t array('id' => '20293','state_id' => '1396','name' => 'Satrup'),\n \t array('id' => '20294','state_id' => '1396','name' => 'Scharbeutz'),\n \t array('id' => '20295','state_id' => '1396','name' => 'Schenefeld'),\n \t array('id' => '20296','state_id' => '1396','name' => 'Schleswig'),\n \t array('id' => '20297','state_id' => '1396','name' => 'Schmalfeld'),\n \t array('id' => '20298','state_id' => '1396','name' => 'Schoenkirchen'),\n \t array('id' => '20299','state_id' => '1396','name' => 'Schwarzenbek'),\n \t array('id' => '20300','state_id' => '1396','name' => 'Seefeld'),\n \t array('id' => '20301','state_id' => '1396','name' => 'Sievershutten'),\n \t array('id' => '20302','state_id' => '1396','name' => 'Stockelsdorf'),\n \t array('id' => '20303','state_id' => '1396','name' => 'Tangstedt'),\n \t array('id' => '20304','state_id' => '1396','name' => 'Timmendorfer Strand'),\n \t array('id' => '20305','state_id' => '1396','name' => 'Tornesch'),\n \t array('id' => '20306','state_id' => '1396','name' => 'Travemunde'),\n \t array('id' => '20307','state_id' => '1396','name' => 'Uetersen'),\n \t array('id' => '20308','state_id' => '1396','name' => 'Wahlstedt'),\n \t array('id' => '20309','state_id' => '1396','name' => 'Wedel'),\n \t array('id' => '20310','state_id' => '1396','name' => 'Wentorf'),\n \t array('id' => '20311','state_id' => '1396','name' => 'Westerland'),\n \t array('id' => '20312','state_id' => '1396','name' => 'Westerronfeld'),\n \t array('id' => '20313','state_id' => '1396','name' => 'Wohltorf'),\n \t array('id' => '20314','state_id' => '1396','name' => 'Wotersen'),\n \t array('id' => '20315','state_id' => '1397','name' => 'Altenburg'),\n \t array('id' => '20316','state_id' => '1397','name' => 'Apolda'),\n \t array('id' => '20317','state_id' => '1397','name' => 'Arnstadt'),\n \t array('id' => '20318','state_id' => '1397','name' => 'Bad Frankenhausen'),\n \t array('id' => '20319','state_id' => '1397','name' => 'Bad Langensalza'),\n \t array('id' => '20320','state_id' => '1397','name' => 'Bad Salzungen'),\n \t array('id' => '20321','state_id' => '1397','name' => 'Cursdorf'),\n \t array('id' => '20322','state_id' => '1397','name' => 'Dornburg'),\n \t array('id' => '20323','state_id' => '1397','name' => 'Eisenach'),\n \t array('id' => '20324','state_id' => '1397','name' => 'Eisenberg'),\n \t array('id' => '20325','state_id' => '1397','name' => 'Erfurt'),\n \t array('id' => '20326','state_id' => '1397','name' => 'Gera'),\n \t array('id' => '20327','state_id' => '1397','name' => 'Geschwenda'),\n \t array('id' => '20328','state_id' => '1397','name' => 'Gotha'),\n \t array('id' => '20329','state_id' => '1397','name' => 'Greiz'),\n \t array('id' => '20330','state_id' => '1397','name' => 'Heiligenstadt'),\n \t array('id' => '20331','state_id' => '1397','name' => 'Hermsdorf'),\n \t array('id' => '20332','state_id' => '1397','name' => 'Hildburghausen'),\n \t array('id' => '20333','state_id' => '1397','name' => 'Ilmenau'),\n \t array('id' => '20334','state_id' => '1397','name' => 'Immelborn'),\n \t array('id' => '20335','state_id' => '1397','name' => 'Jena'),\n \t array('id' => '20336','state_id' => '1397','name' => 'Leinefelde'),\n \t array('id' => '20337','state_id' => '1397','name' => 'Leutenberg'),\n \t array('id' => '20338','state_id' => '1397','name' => 'Meiningen'),\n \t array('id' => '20339','state_id' => '1397','name' => 'Meuselwitz'),\n \t array('id' => '20340','state_id' => '1397','name' => 'Muhlhausen'),\n \t array('id' => '20341','state_id' => '1397','name' => 'Neustadt'),\n \t array('id' => '20342','state_id' => '1397','name' => 'Nordhausen'),\n \t array('id' => '20343','state_id' => '1397','name' => 'PoBneck'),\n \t array('id' => '20344','state_id' => '1397','name' => 'Rosenthal'),\n \t array('id' => '20345','state_id' => '1397','name' => 'Rositz'),\n \t array('id' => '20346','state_id' => '1397','name' => 'Rudolstadt'),\n \t array('id' => '20347','state_id' => '1397','name' => 'Ruhla'),\n \t array('id' => '20348','state_id' => '1397','name' => 'Saalfeld'),\n \t array('id' => '20349','state_id' => '1397','name' => 'Schmalkalden'),\n \t array('id' => '20350','state_id' => '1397','name' => 'Schmolln'),\n \t array('id' => '20351','state_id' => '1397','name' => 'Sommerda'),\n \t array('id' => '20352','state_id' => '1397','name' => 'Sondershausen'),\n \t array('id' => '20353','state_id' => '1397','name' => 'Sonneberg'),\n \t array('id' => '20354','state_id' => '1397','name' => 'Suhl'),\n \t array('id' => '20355','state_id' => '1397','name' => 'Triptis'),\n \t array('id' => '20356','state_id' => '1397','name' => 'Uhlstadt'),\n \t array('id' => '20357','state_id' => '1397','name' => 'Waltershausen'),\n \t array('id' => '20358','state_id' => '1397','name' => 'Weida'),\n \t array('id' => '20359','state_id' => '1397','name' => 'Weimar'),\n \t array('id' => '20360','state_id' => '1397','name' => 'Wernigerode'),\n \t array('id' => '20361','state_id' => '1397','name' => 'Wormstedt'),\n \t array('id' => '20362','state_id' => '1397','name' => 'Zella-Mehlis'),\n \t array('id' => '20363','state_id' => '1397','name' => 'Zeulenroda'),\n \t array('id' => '20364','state_id' => '1398','name' => 'Webling'),\n \t array('id' => '20365','state_id' => '1399','name' => 'Neustadt'),\n \t array('id' => '20366','state_id' => '1400','name' => 'Schlobborn'),\n \t array('id' => '20367','state_id' => '1401','name' => 'Agogo'),\n \t array('id' => '20368','state_id' => '1401','name' => 'Bekwai'),\n \t array('id' => '20369','state_id' => '1401','name' => 'Konongo'),\n \t array('id' => '20370','state_id' => '1401','name' => 'Kumasi'),\n \t array('id' => '20371','state_id' => '1401','name' => 'Mampong'),\n \t array('id' => '20372','state_id' => '1401','name' => 'Mankranso'),\n \t array('id' => '20373','state_id' => '1401','name' => 'Obuasi'),\n \t array('id' => '20374','state_id' => '1401','name' => 'Ofinso'),\n \t array('id' => '20375','state_id' => '1401','name' => 'Tafo'),\n \t array('id' => '20376','state_id' => '1402','name' => 'Bechem'),\n \t array('id' => '20377','state_id' => '1402','name' => 'Berekum'),\n \t array('id' => '20378','state_id' => '1402','name' => 'Duayaw Nkwanta'),\n \t array('id' => '20379','state_id' => '1402','name' => 'Kintampo'),\n \t array('id' => '20380','state_id' => '1402','name' => 'Sunyani'),\n \t array('id' => '20381','state_id' => '1402','name' => 'Techiman'),\n \t array('id' => '20382','state_id' => '1402','name' => 'Wenchi'),\n \t array('id' => '20383','state_id' => '1403','name' => 'Apam'),\n \t array('id' => '20384','state_id' => '1403','name' => 'Cape Coast'),\n \t array('id' => '20385','state_id' => '1403','name' => 'Dunkwa'),\n \t array('id' => '20386','state_id' => '1403','name' => 'Elmina'),\n \t array('id' => '20387','state_id' => '1403','name' => 'Foso'),\n \t array('id' => '20388','state_id' => '1403','name' => 'Komenda'),\n \t array('id' => '20389','state_id' => '1403','name' => 'Mauri'),\n \t array('id' => '20390','state_id' => '1403','name' => 'Mumford'),\n \t array('id' => '20391','state_id' => '1403','name' => 'Nyakrom'),\n \t array('id' => '20392','state_id' => '1403','name' => 'Okitsiu'),\n \t array('id' => '20393','state_id' => '1403','name' => 'Saltpond'),\n \t array('id' => '20394','state_id' => '1403','name' => 'Swedru'),\n \t array('id' => '20395','state_id' => '1403','name' => 'Winneba'),\n \t array('id' => '20396','state_id' => '1404','name' => 'Aburi'),\n \t array('id' => '20397','state_id' => '1404','name' => 'Ada'),\n \t array('id' => '20398','state_id' => '1404','name' => 'Akim Swedru'),\n \t array('id' => '20399','state_id' => '1404','name' => 'Akropong'),\n \t array('id' => '20400','state_id' => '1404','name' => 'Asamankese'),\n \t array('id' => '20401','state_id' => '1404','name' => 'Begoro'),\n \t array('id' => '20402','state_id' => '1404','name' => 'Kade'),\n \t array('id' => '20403','state_id' => '1404','name' => 'Kibi'),\n \t array('id' => '20404','state_id' => '1404','name' => 'Koforidua'),\n \t array('id' => '20405','state_id' => '1404','name' => 'Mpraeso'),\n \t array('id' => '20406','state_id' => '1404','name' => 'Nkawkaw'),\n \t array('id' => '20407','state_id' => '1404','name' => 'Nsawam'),\n \t array('id' => '20408','state_id' => '1404','name' => 'Oda'),\n \t array('id' => '20409','state_id' => '1404','name' => 'Somanya'),\n \t array('id' => '20410','state_id' => '1404','name' => 'Suhum'),\n \t array('id' => '20411','state_id' => '1406','name' => 'Kpandae'),\n \t array('id' => '20412','state_id' => '1406','name' => 'Salaga'),\n \t array('id' => '20413','state_id' => '1406','name' => 'Savelugu'),\n \t array('id' => '20414','state_id' => '1406','name' => 'Tamale'),\n \t array('id' => '20415','state_id' => '1406','name' => 'Yendi'),\n \t array('id' => '20416','state_id' => '1409','name' => 'Aflao'),\n \t array('id' => '20417','state_id' => '1409','name' => 'Anloga'),\n \t array('id' => '20418','state_id' => '1409','name' => 'Ho'),\n \t array('id' => '20419','state_id' => '1409','name' => 'Hohoe'),\n \t array('id' => '20420','state_id' => '1409','name' => 'Keta'),\n \t array('id' => '20421','state_id' => '1409','name' => 'Kete-Krachi'),\n \t array('id' => '20422','state_id' => '1409','name' => 'Kpandu'),\n \t array('id' => '20423','state_id' => '1410','name' => 'Aboso'),\n \t array('id' => '20424','state_id' => '1410','name' => 'Anomabu'),\n \t array('id' => '20425','state_id' => '1410','name' => 'Axim'),\n \t array('id' => '20426','state_id' => '1410','name' => 'Bibiani'),\n \t array('id' => '20427','state_id' => '1410','name' => 'Prestea'),\n \t array('id' => '20428','state_id' => '1410','name' => 'Sekondi'),\n \t array('id' => '20429','state_id' => '1410','name' => 'Shama'),\n \t array('id' => '20430','state_id' => '1410','name' => 'Takoradi'),\n \t array('id' => '20431','state_id' => '1410','name' => 'Tarkwa'),\n \t array('id' => '20432','state_id' => '1411','name' => 'Gibraltar'),\n \t array('id' => '20433','state_id' => '1412','name' => 'Elassonos'),\n \t array('id' => '20434','state_id' => '1413','name' => 'Aiyion'),\n \t array('id' => '20435','state_id' => '1413','name' => 'Patra'),\n \t array('id' => '20436','state_id' => '1415','name' => 'Argos'),\n \t array('id' => '20437','state_id' => '1415','name' => 'Navplion'),\n \t array('id' => '20438','state_id' => '1416','name' => 'Tripoli'),\n \t array('id' => '20439','state_id' => '1417','name' => 'Arta'),\n \t array('id' => '20440','state_id' => '1418','name' => 'Acharnes'),\n \t array('id' => '20441','state_id' => '1418','name' => 'Agios Ioannis Rentis'),\n \t array('id' => '20442','state_id' => '1418','name' => 'Drapetsona'),\n \t array('id' => '20443','state_id' => '1418','name' => 'Koropi'),\n \t array('id' => '20444','state_id' => '1418','name' => 'Lavrion'),\n \t array('id' => '20445','state_id' => '1418','name' => 'Mandra'),\n \t array('id' => '20446','state_id' => '1418','name' => 'Spata'),\n \t array('id' => '20447','state_id' => '1419','name' => 'Aharna'),\n \t array('id' => '20448','state_id' => '1419','name' => 'Aiyaleo'),\n \t array('id' => '20449','state_id' => '1419','name' => 'Alimos'),\n \t array('id' => '20450','state_id' => '1419','name' => 'Amarousion'),\n \t array('id' => '20451','state_id' => '1419','name' => 'Ano Liosia'),\n \t array('id' => '20452','state_id' => '1419','name' => 'Aryiroupoli'),\n \t array('id' => '20453','state_id' => '1419','name' => 'Aspropirgos'),\n \t array('id' => '20454','state_id' => '1419','name' => 'Athina'),\n \t array('id' => '20455','state_id' => '1419','name' => 'Athinai'),\n \t array('id' => '20456','state_id' => '1419','name' => 'Ayia Barbara'),\n \t array('id' => '20457','state_id' => '1419','name' => 'Ayia Paraskevi'),\n \t array('id' => '20458','state_id' => '1419','name' => 'Ayios Anaryiros'),\n \t array('id' => '20459','state_id' => '1419','name' => 'Ayios Dimitrios'),\n \t array('id' => '20460','state_id' => '1419','name' => 'Dafne'),\n \t array('id' => '20461','state_id' => '1419','name' => 'Elevsis'),\n \t array('id' => '20462','state_id' => '1419','name' => 'Ellenikon'),\n \t array('id' => '20463','state_id' => '1419','name' => 'Galatsion'),\n \t array('id' => '20464','state_id' => '1419','name' => 'Glifada'),\n \t array('id' => '20465','state_id' => '1419','name' => 'Haidarion'),\n \t array('id' => '20466','state_id' => '1419','name' => 'Halandrion'),\n \t array('id' => '20467','state_id' => '1419','name' => 'Holargos'),\n \t array('id' => '20468','state_id' => '1419','name' => 'Ilioupoli'),\n \t array('id' => '20469','state_id' => '1419','name' => 'Iraklion'),\n \t array('id' => '20470','state_id' => '1419','name' => 'Kaisariani'),\n \t array('id' => '20471','state_id' => '1419','name' => 'Kallithea'),\n \t array('id' => '20472','state_id' => '1419','name' => 'Kamateron'),\n \t array('id' => '20473','state_id' => '1419','name' => 'Keratea'),\n \t array('id' => '20474','state_id' => '1419','name' => 'Keratsinion'),\n \t array('id' => '20475','state_id' => '1419','name' => 'Kifisia'),\n \t array('id' => '20476','state_id' => '1419','name' => 'Koridallos'),\n \t array('id' => '20477','state_id' => '1419','name' => 'Kropion'),\n \t array('id' => '20478','state_id' => '1419','name' => 'Markopoulos Mesogaia'),\n \t array('id' => '20479','state_id' => '1419','name' => 'Maroussi'),\n \t array('id' => '20480','state_id' => '1419','name' => 'Megara'),\n \t array('id' => '20481','state_id' => '1419','name' => 'Melission'),\n \t array('id' => '20482','state_id' => '1419','name' => 'Metamorfosios'),\n \t array('id' => '20483','state_id' => '1419','name' => 'Moshatos'),\n \t array('id' => '20484','state_id' => '1419','name' => 'Nea Filedelfia'),\n \t array('id' => '20485','state_id' => '1419','name' => 'Nea Ionia'),\n \t array('id' => '20486','state_id' => '1419','name' => 'Nea Liosia'),\n \t array('id' => '20487','state_id' => '1419','name' => 'Nea Smirni'),\n \t array('id' => '20488','state_id' => '1419','name' => 'Nikaia'),\n \t array('id' => '20489','state_id' => '1419','name' => 'Palaion Faliron'),\n \t array('id' => '20490','state_id' => '1419','name' => 'Perama'),\n \t array('id' => '20491','state_id' => '1419','name' => 'Peristerion'),\n \t array('id' => '20492','state_id' => '1419','name' => 'Petroupoli'),\n \t array('id' => '20493','state_id' => '1419','name' => 'Pevka'),\n \t array('id' => '20494','state_id' => '1419','name' => 'Piraeus'),\n \t array('id' => '20495','state_id' => '1419','name' => 'Salamis'),\n \t array('id' => '20496','state_id' => '1419','name' => 'Tavros'),\n \t array('id' => '20497','state_id' => '1419','name' => 'Viron'),\n \t array('id' => '20498','state_id' => '1419','name' => 'Voula'),\n \t array('id' => '20499','state_id' => '1419','name' => 'Vrilission'),\n \t array('id' => '20500','state_id' => '1419','name' => 'Zografos'),\n \t array('id' => '20501','state_id' => '1421','name' => 'Heraklion'),\n \t array('id' => '20502','state_id' => '1422','name' => 'Arhangelos'),\n \t array('id' => '20503','state_id' => '1422','name' => 'Ialysos'),\n \t array('id' => '20504','state_id' => '1422','name' => 'Kos'),\n \t array('id' => '20505','state_id' => '1422','name' => 'Rodos'),\n \t array('id' => '20506','state_id' => '1423','name' => 'Drama'),\n \t array('id' => '20507','state_id' => '1424','name' => 'Chalkis'),\n \t array('id' => '20508','state_id' => '1425','name' => 'Karpenisi'),\n \t array('id' => '20509','state_id' => '1426','name' => 'Alexandroupoli'),\n \t array('id' => '20510','state_id' => '1426','name' => 'Orestias'),\n \t array('id' => '20511','state_id' => '1427','name' => 'Halkida'),\n \t array('id' => '20512','state_id' => '1428','name' => 'Florina'),\n \t array('id' => '20513','state_id' => '1429','name' => 'Amfissa'),\n \t array('id' => '20514','state_id' => '1430','name' => 'Lamia'),\n \t array('id' => '20515','state_id' => '1431','name' => 'Grevena'),\n \t array('id' => '20516','state_id' => '1432','name' => 'Halandri'),\n \t array('id' => '20517','state_id' => '1433','name' => 'Lakkoma'),\n \t array('id' => '20518','state_id' => '1433','name' => 'N. Kallikrateia'),\n \t array('id' => '20519','state_id' => '1433','name' => 'Poliyiros'),\n \t array('id' => '20520','state_id' => '1434','name' => 'Hania'),\n \t array('id' => '20521','state_id' => '1435','name' => 'Crete'),\n \t array('id' => '20522','state_id' => '1436','name' => 'Hios'),\n \t array('id' => '20523','state_id' => '1437','name' => 'Pirgos'),\n \t array('id' => '20524','state_id' => '1438','name' => 'Veroia'),\n \t array('id' => '20525','state_id' => '1439','name' => 'Ioannina'),\n \t array('id' => '20526','state_id' => '1441','name' => 'Karditsa'),\n \t array('id' => '20527','state_id' => '1442','name' => 'Kastoria'),\n \t array('id' => '20528','state_id' => '1443','name' => 'Kavala'),\n \t array('id' => '20529','state_id' => '1444','name' => 'Agioi Theodoroi'),\n \t array('id' => '20530','state_id' => '1444','name' => 'Argostolion'),\n \t array('id' => '20531','state_id' => '1445','name' => 'Kerkira'),\n \t array('id' => '20532','state_id' => '1446','name' => 'Ermoupoli'),\n \t array('id' => '20533','state_id' => '1446','name' => 'Fira'),\n \t array('id' => '20534','state_id' => '1446','name' => 'Mikonos'),\n \t array('id' => '20535','state_id' => '1447','name' => 'Kilkis'),\n \t array('id' => '20536','state_id' => '1448','name' => 'Korinthos'),\n \t array('id' => '20537','state_id' => '1449','name' => 'Kozani'),\n \t array('id' => '20538','state_id' => '1449','name' => 'Ptolemais'),\n \t array('id' => '20539','state_id' => '1450','name' => 'Sparti'),\n \t array('id' => '20540','state_id' => '1451','name' => 'Larisa'),\n \t array('id' => '20541','state_id' => '1451','name' => 'Larissa'),\n \t array('id' => '20542','state_id' => '1452','name' => 'Ayios Nikolaos'),\n \t array('id' => '20543','state_id' => '1452','name' => 'Ierapetra'),\n \t array('id' => '20544','state_id' => '1452','name' => 'Sitia'),\n \t array('id' => '20545','state_id' => '1453','name' => 'Mitilini'),\n \t array('id' => '20546','state_id' => '1454','name' => 'Levkas'),\n \t array('id' => '20547','state_id' => '1455','name' => 'Volos'),\n \t array('id' => '20548','state_id' => '1456','name' => 'Kalamata'),\n \t array('id' => '20549','state_id' => '1459','name' => 'Edessa'),\n \t array('id' => '20550','state_id' => '1459','name' => 'Yiannitsa'),\n \t array('id' => '20551','state_id' => '1460','name' => 'Katerini'),\n \t array('id' => '20552','state_id' => '1461','name' => 'Acharne'),\n \t array('id' => '20553','state_id' => '1461','name' => 'Pallini'),\n \t array('id' => '20554','state_id' => '1462','name' => 'Preveza'),\n \t array('id' => '20555','state_id' => '1463','name' => 'Rethimnon'),\n \t array('id' => '20556','state_id' => '1464','name' => 'Komotini'),\n \t array('id' => '20557','state_id' => '1465','name' => 'Samos'),\n \t array('id' => '20558','state_id' => '1466','name' => 'Serrai'),\n \t array('id' => '20559','state_id' => '1467','name' => 'Igoumenitsa'),\n \t array('id' => '20560','state_id' => '1468','name' => 'Ampelokipa'),\n \t array('id' => '20561','state_id' => '1468','name' => 'Kalamaria'),\n \t array('id' => '20562','state_id' => '1468','name' => 'Neapoli'),\n \t array('id' => '20563','state_id' => '1468','name' => 'Oristiada'),\n \t array('id' => '20564','state_id' => '1468','name' => 'Thessaloniki'),\n \t array('id' => '20565','state_id' => '1469','name' => 'Trikala'),\n \t array('id' => '20566','state_id' => '1470','name' => 'Levadia'),\n \t array('id' => '20567','state_id' => '1470','name' => 'Thivai'),\n \t array('id' => '20568','state_id' => '1472','name' => 'Xanthi'),\n \t array('id' => '20569','state_id' => '1473','name' => 'Zakinthos'),\n \t array('id' => '20570','state_id' => '1474','name' => 'Aasiaat'),\n \t array('id' => '20571','state_id' => '1474','name' => 'Akunnaaq'),\n \t array('id' => '20572','state_id' => '1474','name' => 'Kitsissuarsuit'),\n \t array('id' => '20573','state_id' => '1475','name' => 'Ikkatteq'),\n \t array('id' => '20574','state_id' => '1475','name' => 'Isortoq'),\n \t array('id' => '20575','state_id' => '1475','name' => 'Kulusuk'),\n \t array('id' => '20576','state_id' => '1475','name' => 'Kuumiut'),\n \t array('id' => '20577','state_id' => '1475','name' => 'Qernertuarssuit'),\n \t array('id' => '20578','state_id' => '1475','name' => 'Sermiligaaq'),\n \t array('id' => '20579','state_id' => '1475','name' => 'Tasiilaq'),\n \t array('id' => '20580','state_id' => '1475','name' => 'Tiniteqilaaq'),\n \t array('id' => '20581','state_id' => '1476','name' => 'Illoqqortoormiut'),\n \t array('id' => '20582','state_id' => '1476','name' => 'Itterajivit'),\n \t array('id' => '20583','state_id' => '1476','name' => 'Uunarteq'),\n \t array('id' => '20584','state_id' => '1477','name' => 'Ilimanaq'),\n \t array('id' => '20585','state_id' => '1477','name' => 'Ilulissat'),\n \t array('id' => '20586','state_id' => '1477','name' => 'Oqaatsut'),\n \t array('id' => '20587','state_id' => '1477','name' => 'Qeqertaq'),\n \t array('id' => '20588','state_id' => '1477','name' => 'Saqqaq'),\n \t array('id' => '20589','state_id' => '1478','name' => 'Ivittuut'),\n \t array('id' => '20590','state_id' => '1478','name' => 'Kangilinnguit'),\n \t array('id' => '20591','state_id' => '1479','name' => 'Attu'),\n \t array('id' => '20592','state_id' => '1479','name' => 'Iginniarfik'),\n \t array('id' => '20593','state_id' => '1479','name' => 'Ikerasaarsuk'),\n \t array('id' => '20594','state_id' => '1479','name' => 'Kangaatsiaq'),\n \t array('id' => '20595','state_id' => '1479','name' => 'Niaqornaarsuk'),\n \t array('id' => '20596','state_id' => '1480','name' => 'Atammik'),\n \t array('id' => '20597','state_id' => '1480','name' => 'Kangaamiut'),\n \t array('id' => '20598','state_id' => '1480','name' => 'Maniitsoq'),\n \t array('id' => '20599','state_id' => '1480','name' => 'Napasoq'),\n \t array('id' => '20600','state_id' => '1481','name' => 'Aappilattoq'),\n \t array('id' => '20601','state_id' => '1481','name' => 'Akuliaruseq'),\n \t array('id' => '20602','state_id' => '1481','name' => 'Alluitsoq'),\n \t array('id' => '20603','state_id' => '1481','name' => 'Alluitsup Paa'),\n \t array('id' => '20604','state_id' => '1481','name' => 'Ammassivik'),\n \t array('id' => '20605','state_id' => '1481','name' => 'Ikerasassuaq'),\n \t array('id' => '20606','state_id' => '1481','name' => 'Nanortalik'),\n \t array('id' => '20607','state_id' => '1481','name' => 'Narsarmijit'),\n \t array('id' => '20608','state_id' => '1481','name' => 'Nuugaarsuk'),\n \t array('id' => '20609','state_id' => '1481','name' => 'Qallimiut'),\n \t array('id' => '20610','state_id' => '1481','name' => 'Qortortorsuaq'),\n \t array('id' => '20611','state_id' => '1481','name' => 'Tasiusaq'),\n \t array('id' => '20612','state_id' => '1482','name' => 'Amannguit'),\n \t array('id' => '20613','state_id' => '1482','name' => 'Atarnaatsoq'),\n \t array('id' => '20614','state_id' => '1482','name' => 'Eqaluit Ilua'),\n \t array('id' => '20615','state_id' => '1482','name' => 'Igaliku'),\n \t array('id' => '20616','state_id' => '1482','name' => 'Igaliku Kujalleq'),\n \t array('id' => '20617','state_id' => '1482','name' => 'Inneruulalik'),\n \t array('id' => '20618','state_id' => '1482','name' => 'Issormiut'),\n \t array('id' => '20619','state_id' => '1482','name' => 'Iterlak'),\n \t array('id' => '20620','state_id' => '1482','name' => 'Kangerlua'),\n \t array('id' => '20621','state_id' => '1482','name' => 'Narsaq'),\n \t array('id' => '20622','state_id' => '1482','name' => 'Narsarsuaq'),\n \t array('id' => '20623','state_id' => '1482','name' => 'Nunataaq'),\n \t array('id' => '20624','state_id' => '1482','name' => 'Qassiarsuk'),\n \t array('id' => '20625','state_id' => '1482','name' => 'Qinngua'),\n \t array('id' => '20626','state_id' => '1482','name' => 'Qinngua Kangilleq'),\n \t array('id' => '20627','state_id' => '1482','name' => 'Qolortup Itinnera'),\n \t array('id' => '20628','state_id' => '1482','name' => 'Sillisit'),\n \t array('id' => '20629','state_id' => '1482','name' => 'Tasiusaq'),\n \t array('id' => '20630','state_id' => '1482','name' => 'Timerliit'),\n \t array('id' => '20631','state_id' => '1482','name' => 'Uummannartuuaraq'),\n \t array('id' => '20632','state_id' => '1483','name' => 'Kangerluarsoruseq'),\n \t array('id' => '20633','state_id' => '1483','name' => 'Kapisillit'),\n \t array('id' => '20634','state_id' => '1483','name' => 'Neriunaq'),\n \t array('id' => '20635','state_id' => '1483','name' => 'Nuuk'),\n \t array('id' => '20636','state_id' => '1483','name' => 'Qeqertarsuatsiaat'),\n \t array('id' => '20637','state_id' => '1483','name' => 'Qooqqut'),\n \t array('id' => '20638','state_id' => '1483','name' => 'Qoornoq'),\n \t array('id' => '20639','state_id' => '1484','name' => 'Arsuk'),\n \t array('id' => '20640','state_id' => '1484','name' => 'Paamiut'),\n \t array('id' => '20641','state_id' => '1485','name' => 'Moriusaq'),\n \t array('id' => '20642','state_id' => '1485','name' => 'Qaanaaq'),\n \t array('id' => '20643','state_id' => '1485','name' => 'Qeqertarsuaq'),\n \t array('id' => '20644','state_id' => '1485','name' => 'Qeqertat'),\n \t array('id' => '20645','state_id' => '1485','name' => 'Savissivik'),\n \t array('id' => '20646','state_id' => '1485','name' => 'Siorapaluk'),\n \t array('id' => '20647','state_id' => '1486','name' => 'Eqalugaarsuit'),\n \t array('id' => '20648','state_id' => '1486','name' => 'Illorsuit'),\n \t array('id' => '20649','state_id' => '1486','name' => 'Kangerluarsorujuk'),\n \t array('id' => '20650','state_id' => '1486','name' => 'Kangerluarsorujuup Qinngua'),\n \t array('id' => '20651','state_id' => '1486','name' => 'Qanisartuut'),\n \t array('id' => '20652','state_id' => '1486','name' => 'Qaqortokolook'),\n \t array('id' => '20653','state_id' => '1486','name' => 'Qaqortoq'),\n \t array('id' => '20654','state_id' => '1486','name' => 'Qassimiut'),\n \t array('id' => '20655','state_id' => '1486','name' => 'Saarloq'),\n \t array('id' => '20656','state_id' => '1486','name' => 'Saqqamiut'),\n \t array('id' => '20657','state_id' => '1486','name' => 'Tasiluk'),\n \t array('id' => '20658','state_id' => '1486','name' => 'Upernaviarsuk'),\n \t array('id' => '20659','state_id' => '1487','name' => 'Ikamiut'),\n \t array('id' => '20660','state_id' => '1487','name' => 'Qasigiannguit'),\n \t array('id' => '20661','state_id' => '1488','name' => 'Kangerluk'),\n \t array('id' => '20662','state_id' => '1488','name' => 'Qeqertarsuaq'),\n \t array('id' => '20663','state_id' => '1489','name' => 'Itilleq'),\n \t array('id' => '20664','state_id' => '1489','name' => 'Kangerlussuaq'),\n \t array('id' => '20665','state_id' => '1489','name' => 'Sarfannguit'),\n \t array('id' => '20666','state_id' => '1489','name' => 'Sisimiut'),\n \t array('id' => '20667','state_id' => '1491','name' => 'Aappilattoq'),\n \t array('id' => '20668','state_id' => '1491','name' => 'Ikerakuuk'),\n \t array('id' => '20669','state_id' => '1491','name' => 'Innarsuit'),\n \t array('id' => '20670','state_id' => '1491','name' => 'Kangersuatsiaq'),\n \t array('id' => '20671','state_id' => '1491','name' => 'Kullorsuaq'),\n \t array('id' => '20672','state_id' => '1491','name' => 'Naajaat'),\n \t array('id' => '20673','state_id' => '1491','name' => 'Nutaarmiut'),\n \t array('id' => '20674','state_id' => '1491','name' => 'Nuusuaq'),\n \t array('id' => '20675','state_id' => '1491','name' => 'Tasiusaq'),\n \t array('id' => '20676','state_id' => '1491','name' => 'Upernavik'),\n \t array('id' => '20677','state_id' => '1491','name' => 'Upernavik Kujalleq'),\n \t array('id' => '20678','state_id' => '1492','name' => 'Ikerasak'),\n \t array('id' => '20679','state_id' => '1492','name' => 'Illorsuit'),\n \t array('id' => '20680','state_id' => '1492','name' => 'Niaqornat'),\n \t array('id' => '20681','state_id' => '1492','name' => 'Nuugaatsiaq'),\n \t array('id' => '20682','state_id' => '1492','name' => 'Qaarsut'),\n \t array('id' => '20683','state_id' => '1492','name' => 'Saattut'),\n \t array('id' => '20684','state_id' => '1492','name' => 'Ukkusissat'),\n \t array('id' => '20685','state_id' => '1492','name' => 'Uummannaq'),\n \t array('id' => '20686','state_id' => '1500','name' => 'Baie-Mahault'),\n \t array('id' => '20687','state_id' => '1500','name' => 'Baillif'),\n \t array('id' => '20688','state_id' => '1500','name' => 'Basse-Terre'),\n \t array('id' => '20689','state_id' => '1500','name' => 'Bouillante'),\n \t array('id' => '20690','state_id' => '1500','name' => 'Capesterre-Belle-Eau'),\n \t array('id' => '20691','state_id' => '1500','name' => 'Gourbeyre'),\n \t array('id' => '20692','state_id' => '1500','name' => 'Lamentin'),\n \t array('id' => '20693','state_id' => '1500','name' => 'Petit-Bourg'),\n \t array('id' => '20694','state_id' => '1500','name' => 'Pointe-Noire'),\n \t array('id' => '20695','state_id' => '1500','name' => 'Saint-Claude'),\n \t array('id' => '20696','state_id' => '1500','name' => 'Sainte-Rose'),\n \t array('id' => '20697','state_id' => '1500','name' => 'Trois-Rivieres'),\n \t array('id' => '20698','state_id' => '1500','name' => 'Vieux-Habitants'),\n \t array('id' => '20699','state_id' => '1501','name' => 'Anse-Bertrand'),\n \t array('id' => '20700','state_id' => '1501','name' => 'Le Gosier'),\n \t array('id' => '20701','state_id' => '1501','name' => 'Le Moule'),\n \t array('id' => '20702','state_id' => '1501','name' => 'Les Abymes'),\n \t array('id' => '20703','state_id' => '1501','name' => 'Morne-a-l\\'Eau'),\n \t array('id' => '20704','state_id' => '1501','name' => 'Petit-Canal'),\n \t array('id' => '20705','state_id' => '1501','name' => 'Point-a-Pitre'),\n \t array('id' => '20706','state_id' => '1501','name' => 'Port-Louis'),\n \t array('id' => '20707','state_id' => '1501','name' => 'Saint-Francois'),\n \t array('id' => '20708','state_id' => '1501','name' => 'Sainte-Anne'),\n \t array('id' => '20709','state_id' => '1504','name' => 'Grand-Bourg'),\n \t array('id' => '20710','state_id' => '1508','name' => 'Agat'),\n \t array('id' => '20711','state_id' => '1509','name' => 'Barrigada'),\n \t array('id' => '20712','state_id' => '1509','name' => 'Barrigada Heights'),\n \t array('id' => '20713','state_id' => '1510','name' => 'Chalan Pago'),\n \t array('id' => '20714','state_id' => '1510','name' => 'Ordot'),\n \t array('id' => '20715','state_id' => '1511','name' => 'Astumbo'),\n \t array('id' => '20716','state_id' => '1511','name' => 'Dededo'),\n \t array('id' => '20717','state_id' => '1511','name' => 'Finegayan Station'),\n \t array('id' => '20718','state_id' => '1512','name' => 'Agana'),\n \t array('id' => '20719','state_id' => '1512','name' => 'Agana Station'),\n \t array('id' => '20720','state_id' => '1513','name' => 'Inarajan'),\n \t array('id' => '20721','state_id' => '1514','name' => 'Mangilao'),\n \t array('id' => '20722','state_id' => '1515','name' => 'Merizo'),\n \t array('id' => '20723','state_id' => '1516','name' => 'Mongmong'),\n \t array('id' => '20724','state_id' => '1516','name' => 'Toto'),\n \t array('id' => '20725','state_id' => '1518','name' => 'Sinajana'),\n \t array('id' => '20726','state_id' => '1519','name' => 'Talofofo'),\n \t array('id' => '20727','state_id' => '1520','name' => 'Tamuning'),\n \t array('id' => '20728','state_id' => '1521','name' => 'Anderson Air Force Base'),\n \t array('id' => '20729','state_id' => '1521','name' => 'Yigo'),\n \t array('id' => '20730','state_id' => '1522','name' => 'Yona'),\n \t array('id' => '20731','state_id' => '1525','name' => 'Chimaltenango'),\n \t array('id' => '20732','state_id' => '1525','name' => 'Comalapa'),\n \t array('id' => '20733','state_id' => '1525','name' => 'Itzapa'),\n \t array('id' => '20734','state_id' => '1525','name' => 'Patzun'),\n \t array('id' => '20735','state_id' => '1526','name' => 'Chiquimula'),\n \t array('id' => '20736','state_id' => '1526','name' => 'Esquipulas'),\n \t array('id' => '20737','state_id' => '1528','name' => 'Cotzumalguapa'),\n \t array('id' => '20738','state_id' => '1528','name' => 'Escuintla'),\n \t array('id' => '20739','state_id' => '1528','name' => 'Palin'),\n \t array('id' => '20740','state_id' => '1528','name' => 'San Jose'),\n \t array('id' => '20741','state_id' => '1528','name' => 'Tiquisate'),\n \t array('id' => '20742','state_id' => '1529','name' => 'Amatitlan'),\n \t array('id' => '20743','state_id' => '1529','name' => 'Chinautla'),\n \t array('id' => '20744','state_id' => '1529','name' => 'Guatemala'),\n \t array('id' => '20745','state_id' => '1529','name' => 'Mixco'),\n \t array('id' => '20746','state_id' => '1529','name' => 'Petapa'),\n \t array('id' => '20747','state_id' => '1529','name' => 'Villa Nueva'),\n \t array('id' => '20748','state_id' => '1530','name' => 'Huehuetenango'),\n \t array('id' => '20749','state_id' => '1531','name' => 'Puerto Barrios'),\n \t array('id' => '20750','state_id' => '1532','name' => 'Jalapa'),\n \t array('id' => '20751','state_id' => '1533','name' => 'Asuncion Mita'),\n \t array('id' => '20752','state_id' => '1533','name' => 'Jutiapa'),\n \t array('id' => '20753','state_id' => '1534','name' => 'Flores'),\n \t array('id' => '20754','state_id' => '1534','name' => 'San Benito'),\n \t array('id' => '20755','state_id' => '1535','name' => 'Quezaltenango'),\n \t array('id' => '20756','state_id' => '1536','name' => 'Quiche'),\n \t array('id' => '20757','state_id' => '1537','name' => 'Retalhuleu'),\n \t array('id' => '20758','state_id' => '1538','name' => 'Antigua'),\n \t array('id' => '20759','state_id' => '1538','name' => 'Ciudad Vieja'),\n \t array('id' => '20760','state_id' => '1538','name' => 'Jocotenango'),\n \t array('id' => '20761','state_id' => '1538','name' => 'Santa Maria de Jesus'),\n \t array('id' => '20762','state_id' => '1538','name' => 'Sumpango'),\n \t array('id' => '20763','state_id' => '1541','name' => 'Atitlan'),\n \t array('id' => '20764','state_id' => '1541','name' => 'Solola'),\n \t array('id' => '20765','state_id' => '1542','name' => 'Mazatenango'),\n \t array('id' => '20766','state_id' => '1543','name' => 'Totonicapan'),\n \t array('id' => '20767','state_id' => '1544','name' => 'Zacapa'),\n \t array('id' => '20768','state_id' => '1545','name' => 'Saint Anne\\'s'),\n \t array('id' => '20769','state_id' => '1546','name' => 'Castle'),\n \t array('id' => '20770','state_id' => '1547','name' => 'Forest'),\n \t array('id' => '20771','state_id' => '1554','name' => 'Sark'),\n \t array('id' => '20772','state_id' => '1555','name' => 'Torteval'),\n \t array('id' => '20773','state_id' => '1556','name' => 'Vale'),\n \t array('id' => '20774','state_id' => '1557','name' => 'Beyla'),\n \t array('id' => '20775','state_id' => '1558','name' => 'Boffa'),\n \t array('id' => '20776','state_id' => '1559','name' => 'Boke'),\n \t array('id' => '20777','state_id' => '1560','name' => 'Conakry'),\n \t array('id' => '20778','state_id' => '1561','name' => 'Coyah'),\n \t array('id' => '20779','state_id' => '1562','name' => 'Dabola'),\n \t array('id' => '20780','state_id' => '1563','name' => 'Dalaba'),\n \t array('id' => '20781','state_id' => '1564','name' => 'Dinguiraye'),\n \t array('id' => '20782','state_id' => '1565','name' => 'Faranah'),\n \t array('id' => '20783','state_id' => '1566','name' => 'Forecariah'),\n \t array('id' => '20784','state_id' => '1567','name' => 'Fria'),\n \t array('id' => '20785','state_id' => '1568','name' => 'Gaoual'),\n \t array('id' => '20786','state_id' => '1569','name' => 'Guekedou'),\n \t array('id' => '20787','state_id' => '1570','name' => 'Kankan'),\n \t array('id' => '20788','state_id' => '1571','name' => 'Kerouane'),\n \t array('id' => '20789','state_id' => '1572','name' => 'Kindia'),\n \t array('id' => '20790','state_id' => '1573','name' => 'Kissidougou'),\n \t array('id' => '20791','state_id' => '1574','name' => 'Koubia'),\n \t array('id' => '20792','state_id' => '1575','name' => 'Koundara'),\n \t array('id' => '20793','state_id' => '1576','name' => 'Kouroussa'),\n \t array('id' => '20794','state_id' => '1577','name' => 'Labe'),\n \t array('id' => '20795','state_id' => '1578','name' => 'Lola'),\n \t array('id' => '20796','state_id' => '1579','name' => 'Macenta'),\n \t array('id' => '20797','state_id' => '1580','name' => 'Mali'),\n \t array('id' => '20798','state_id' => '1581','name' => 'Mamou'),\n \t array('id' => '20799','state_id' => '1582','name' => 'Mandiana'),\n \t array('id' => '20800','state_id' => '1583','name' => 'Nzerekore'),\n \t array('id' => '20801','state_id' => '1584','name' => 'Pita'),\n \t array('id' => '20802','state_id' => '1585','name' => 'Siguiri'),\n \t array('id' => '20803','state_id' => '1586','name' => 'Telimele'),\n \t array('id' => '20804','state_id' => '1587','name' => 'Tougue'),\n \t array('id' => '20805','state_id' => '1588','name' => 'Yomou'),\n \t array('id' => '20806','state_id' => '1589','name' => 'Bafata'),\n \t array('id' => '20807','state_id' => '1590','name' => 'Bissau'),\n \t array('id' => '20808','state_id' => '1591','name' => 'Bolama'),\n \t array('id' => '20809','state_id' => '1591','name' => 'Bubaque'),\n \t array('id' => '20810','state_id' => '1592','name' => 'Cacheu'),\n \t array('id' => '20811','state_id' => '1592','name' => 'Canchungo'),\n \t array('id' => '20812','state_id' => '1593','name' => 'Gabu'),\n \t array('id' => '20813','state_id' => '1594','name' => 'Bissora'),\n \t array('id' => '20814','state_id' => '1594','name' => 'Farim'),\n \t array('id' => '20815','state_id' => '1594','name' => 'Mansoa'),\n \t array('id' => '20816','state_id' => '1595','name' => 'Buba'),\n \t array('id' => '20817','state_id' => '1595','name' => 'Fulacunda'),\n \t array('id' => '20818','state_id' => '1595','name' => 'Quebo'),\n \t array('id' => '20819','state_id' => '1596','name' => 'Catio'),\n \t array('id' => '20820','state_id' => '1597','name' => 'Mabaruma'),\n \t array('id' => '20821','state_id' => '1597','name' => 'Morawhanna'),\n \t array('id' => '20822','state_id' => '1598','name' => 'Bartica'),\n \t array('id' => '20823','state_id' => '1598','name' => 'Issano'),\n \t array('id' => '20824','state_id' => '1598','name' => 'Kamarang'),\n \t array('id' => '20825','state_id' => '1599','name' => 'Georgetown'),\n \t array('id' => '20826','state_id' => '1599','name' => 'Mahaica'),\n \t array('id' => '20827','state_id' => '1599','name' => 'Paradise'),\n \t array('id' => '20828','state_id' => '1599','name' => 'Queenstown'),\n \t array('id' => '20829','state_id' => '1602','name' => 'Fort Wellington'),\n \t array('id' => '20830','state_id' => '1602','name' => 'Mahaicony'),\n \t array('id' => '20831','state_id' => '1602','name' => 'Rosignol'),\n \t array('id' => '20832','state_id' => '1603','name' => 'Anna Regina'),\n \t array('id' => '20833','state_id' => '1603','name' => 'Charity'),\n \t array('id' => '20834','state_id' => '1603','name' => 'Suddie'),\n \t array('id' => '20835','state_id' => '1604','name' => 'Mahdia'),\n \t array('id' => '20836','state_id' => '1604','name' => 'Tumatumari'),\n \t array('id' => '20837','state_id' => '1607','name' => 'Desdunes'),\n \t array('id' => '20838','state_id' => '1607','name' => 'Dessalines'),\n \t array('id' => '20839','state_id' => '1607','name' => 'Gonaives'),\n \t array('id' => '20840','state_id' => '1607','name' => 'Gros-Morne'),\n \t array('id' => '20841','state_id' => '1607','name' => 'L\\'Artibonite'),\n \t array('id' => '20842','state_id' => '1607','name' => 'Saint-Marc'),\n \t array('id' => '20843','state_id' => '1607','name' => 'Saint-Michel-de-l\\'Atalaye'),\n \t array('id' => '20844','state_id' => '1607','name' => 'Saint-Raphael'),\n \t array('id' => '20845','state_id' => '1607','name' => 'Verrettes'),\n \t array('id' => '20846','state_id' => '1608','name' => 'Hinche'),\n \t array('id' => '20847','state_id' => '1608','name' => 'Mirebalais'),\n \t array('id' => '20848','state_id' => '1609','name' => 'Anse-d\\'Hainault'),\n \t array('id' => '20849','state_id' => '1609','name' => 'Dame Marie'),\n \t array('id' => '20850','state_id' => '1609','name' => 'Jeremie'),\n \t array('id' => '20851','state_id' => '1609','name' => 'Miragoane'),\n \t array('id' => '20852','state_id' => '1610','name' => 'Cap-Haitien'),\n \t array('id' => '20853','state_id' => '1610','name' => 'Croix-des-Bouquets'),\n \t array('id' => '20854','state_id' => '1610','name' => 'Grande Riviere du Nord'),\n \t array('id' => '20855','state_id' => '1610','name' => 'Limbe'),\n \t array('id' => '20856','state_id' => '1610','name' => 'Pignon'),\n \t array('id' => '20857','state_id' => '1611','name' => 'Derac'),\n \t array('id' => '20858','state_id' => '1611','name' => 'Fort-Liberte'),\n \t array('id' => '20859','state_id' => '1611','name' => 'Ouanaminthe'),\n \t array('id' => '20860','state_id' => '1611','name' => 'Trou-du-Nord'),\n \t array('id' => '20861','state_id' => '1612','name' => 'Port-de-Paix'),\n \t array('id' => '20862','state_id' => '1612','name' => 'Saint-Louis-du-Nord'),\n \t array('id' => '20863','state_id' => '1613','name' => 'Anse-a-Galets'),\n \t array('id' => '20864','state_id' => '1613','name' => 'Carrefour'),\n \t array('id' => '20865','state_id' => '1613','name' => 'Delmas'),\n \t array('id' => '20866','state_id' => '1613','name' => 'Kenscoff'),\n \t array('id' => '20867','state_id' => '1613','name' => 'Lascahobas'),\n \t array('id' => '20868','state_id' => '1613','name' => 'Leogane'),\n \t array('id' => '20869','state_id' => '1613','name' => 'Petionville'),\n \t array('id' => '20870','state_id' => '1613','name' => 'Petit Goave'),\n \t array('id' => '20871','state_id' => '1613','name' => 'Port-au-Prince'),\n \t array('id' => '20872','state_id' => '1614','name' => 'Aquin'),\n \t array('id' => '20873','state_id' => '1614','name' => 'Les Cayes'),\n \t array('id' => '20874','state_id' => '1615','name' => 'Jacmel'),\n \t array('id' => '20875','state_id' => '1617','name' => 'La Ceiba'),\n \t array('id' => '20876','state_id' => '1617','name' => 'Olanchito'),\n \t array('id' => '20877','state_id' => '1617','name' => 'Tela'),\n \t array('id' => '20878','state_id' => '1618','name' => 'Choluteca'),\n \t array('id' => '20879','state_id' => '1618','name' => 'El Triunfo'),\n \t array('id' => '20880','state_id' => '1618','name' => 'Pespire'),\n \t array('id' => '20881','state_id' => '1619','name' => 'Sonaguera'),\n \t array('id' => '20882','state_id' => '1619','name' => 'Tocoa'),\n \t array('id' => '20883','state_id' => '1619','name' => 'Trujillo'),\n \t array('id' => '20884','state_id' => '1620','name' => 'Comayagua'),\n \t array('id' => '20885','state_id' => '1620','name' => 'Siguatepeque'),\n \t array('id' => '20886','state_id' => '1621','name' => 'Copan'),\n \t array('id' => '20887','state_id' => '1621','name' => 'Corquin'),\n \t array('id' => '20888','state_id' => '1621','name' => 'Dulce Nombre'),\n \t array('id' => '20889','state_id' => '1621','name' => 'El Paraiso'),\n \t array('id' => '20890','state_id' => '1621','name' => 'San Antonio'),\n \t array('id' => '20891','state_id' => '1621','name' => 'San Nicolas'),\n \t array('id' => '20892','state_id' => '1621','name' => 'Santa Rosa de Copan'),\n \t array('id' => '20893','state_id' => '1622','name' => 'Choloma'),\n \t array('id' => '20894','state_id' => '1622','name' => 'La Lima'),\n \t array('id' => '20895','state_id' => '1622','name' => 'Omoa'),\n \t array('id' => '20896','state_id' => '1622','name' => 'Puerto Cortes'),\n \t array('id' => '20897','state_id' => '1622','name' => 'San Pedro Sula'),\n \t array('id' => '20898','state_id' => '1627','name' => 'Intibuca'),\n \t array('id' => '20899','state_id' => '1627','name' => 'La Esperanza'),\n \t array('id' => '20900','state_id' => '1627','name' => 'Utila'),\n \t array('id' => '20901','state_id' => '1630','name' => 'Gracias'),\n \t array('id' => '20902','state_id' => '1631','name' => 'Ocotepeque'),\n \t array('id' => '20903','state_id' => '1631','name' => 'San Marcos'),\n \t array('id' => '20904','state_id' => '1631','name' => 'Sinuapa'),\n \t array('id' => '20905','state_id' => '1632','name' => 'Catacamas'),\n \t array('id' => '20906','state_id' => '1632','name' => 'Juticalpa'),\n \t array('id' => '20907','state_id' => '1634','name' => 'Amapala'),\n \t array('id' => '20908','state_id' => '1634','name' => 'Langue'),\n \t array('id' => '20909','state_id' => '1634','name' => 'Nacaome'),\n \t array('id' => '20910','state_id' => '1634','name' => 'San Lorenzo'),\n \t array('id' => '20911','state_id' => '1635','name' => 'El Progreso'),\n \t array('id' => '20912','state_id' => '1635','name' => 'Morazan'),\n \t array('id' => '20913','state_id' => '1635','name' => 'Santa Rita'),\n \t array('id' => '20914','state_id' => '1635','name' => 'Yoro'),\n \t array('id' => '20915','state_id' => '1637','name' => 'Akaszto'),\n \t array('id' => '20916','state_id' => '1637','name' => 'Bacsalmas'),\n \t array('id' => '20917','state_id' => '1637','name' => 'Bacsbokod'),\n \t array('id' => '20918','state_id' => '1637','name' => 'Baja'),\n \t array('id' => '20919','state_id' => '1637','name' => 'Bugac'),\n \t array('id' => '20920','state_id' => '1637','name' => 'Davod'),\n \t array('id' => '20921','state_id' => '1637','name' => 'Dunapataj'),\n \t array('id' => '20922','state_id' => '1637','name' => 'Dunavecse'),\n \t array('id' => '20923','state_id' => '1637','name' => 'Fulopszallas'),\n \t array('id' => '20924','state_id' => '1637','name' => 'Hajos'),\n \t array('id' => '20925','state_id' => '1637','name' => 'Harta'),\n \t array('id' => '20926','state_id' => '1637','name' => 'Izsak'),\n \t array('id' => '20927','state_id' => '1637','name' => 'Jakabszallas'),\n \t array('id' => '20928','state_id' => '1637','name' => 'Janoshalma'),\n \t array('id' => '20929','state_id' => '1637','name' => 'Kalocsa'),\n \t array('id' => '20930','state_id' => '1637','name' => 'Kecel'),\n \t array('id' => '20931','state_id' => '1637','name' => 'Kecskemet'),\n \t array('id' => '20932','state_id' => '1637','name' => 'Kiskoros'),\n \t array('id' => '20933','state_id' => '1637','name' => 'Kiskunfelegyhaza'),\n \t array('id' => '20934','state_id' => '1637','name' => 'Kiskunhalas'),\n \t array('id' => '20935','state_id' => '1637','name' => 'Kiskunmajsa'),\n \t array('id' => '20936','state_id' => '1637','name' => 'Kunfeherto'),\n \t array('id' => '20937','state_id' => '1637','name' => 'Kunszentmiklos'),\n \t array('id' => '20938','state_id' => '1637','name' => 'Lajosmizse'),\n \t array('id' => '20939','state_id' => '1637','name' => 'Lakitelek'),\n \t array('id' => '20940','state_id' => '1637','name' => 'Madaras'),\n \t array('id' => '20941','state_id' => '1637','name' => 'Melykut'),\n \t array('id' => '20942','state_id' => '1637','name' => 'Nagybaracska'),\n \t array('id' => '20943','state_id' => '1637','name' => 'Orgovany'),\n \t array('id' => '20944','state_id' => '1637','name' => 'Palmonostora'),\n \t array('id' => '20945','state_id' => '1637','name' => 'Solt'),\n \t array('id' => '20946','state_id' => '1637','name' => 'Soltvadkert'),\n \t array('id' => '20947','state_id' => '1637','name' => 'Sukosd'),\n \t array('id' => '20948','state_id' => '1637','name' => 'Szabadszallas'),\n \t array('id' => '20949','state_id' => '1637','name' => 'Szalkszentmarton'),\n \t array('id' => '20950','state_id' => '1637','name' => 'Tass'),\n \t array('id' => '20951','state_id' => '1637','name' => 'Tiszakecske'),\n \t array('id' => '20952','state_id' => '1637','name' => 'Tompa'),\n \t array('id' => '20953','state_id' => '1638','name' => 'Beremend'),\n \t array('id' => '20954','state_id' => '1638','name' => 'Boly'),\n \t array('id' => '20955','state_id' => '1638','name' => 'Dunaszekcso'),\n \t array('id' => '20956','state_id' => '1638','name' => 'Harkany'),\n \t array('id' => '20957','state_id' => '1638','name' => 'Hosszuheteny'),\n \t array('id' => '20958','state_id' => '1638','name' => 'Komlo'),\n \t array('id' => '20959','state_id' => '1638','name' => 'Magocs'),\n \t array('id' => '20960','state_id' => '1638','name' => 'Mohacs'),\n \t array('id' => '20961','state_id' => '1638','name' => 'Pecs'),\n \t array('id' => '20962','state_id' => '1638','name' => 'Pecsvarad'),\n \t array('id' => '20963','state_id' => '1638','name' => 'Sasd'),\n \t array('id' => '20964','state_id' => '1638','name' => 'Sellye'),\n \t array('id' => '20965','state_id' => '1638','name' => 'Siklos'),\n \t array('id' => '20966','state_id' => '1638','name' => 'Szentlorinc'),\n \t array('id' => '20967','state_id' => '1638','name' => 'Szigetvar'),\n \t array('id' => '20968','state_id' => '1638','name' => 'Vajszlo'),\n \t array('id' => '20969','state_id' => '1638','name' => 'Villany'),\n \t array('id' => '20970','state_id' => '1639','name' => 'Battonya'),\n \t array('id' => '20971','state_id' => '1639','name' => 'Bekes'),\n \t array('id' => '20972','state_id' => '1639','name' => 'Bekescsaba'),\n \t array('id' => '20973','state_id' => '1639','name' => 'Bekessamson'),\n \t array('id' => '20974','state_id' => '1639','name' => 'Bekesszentandras'),\n \t array('id' => '20975','state_id' => '1639','name' => 'Csorvas'),\n \t array('id' => '20976','state_id' => '1639','name' => 'Devavanya'),\n \t array('id' => '20977','state_id' => '1639','name' => 'Doboz'),\n \t array('id' => '20978','state_id' => '1639','name' => 'Elek'),\n \t array('id' => '20979','state_id' => '1639','name' => 'Endrod'),\n \t array('id' => '20980','state_id' => '1639','name' => 'Fuzesgyarmat'),\n \t array('id' => '20981','state_id' => '1639','name' => 'Gyula'),\n \t array('id' => '20982','state_id' => '1639','name' => 'Ketegyhaza'),\n \t array('id' => '20983','state_id' => '1639','name' => 'Kondoros'),\n \t array('id' => '20984','state_id' => '1639','name' => 'Korosladany'),\n \t array('id' => '20985','state_id' => '1639','name' => 'Kunagota'),\n \t array('id' => '20986','state_id' => '1639','name' => 'Lokoshaza'),\n \t array('id' => '20987','state_id' => '1639','name' => 'Mezobereny'),\n \t array('id' => '20988','state_id' => '1639','name' => 'Mezohegyes'),\n \t array('id' => '20989','state_id' => '1639','name' => 'Mezokovacshaza'),\n \t array('id' => '20990','state_id' => '1639','name' => 'Nagyszenas'),\n \t array('id' => '20991','state_id' => '1639','name' => 'Oroshaza'),\n \t array('id' => '20992','state_id' => '1639','name' => 'Sarkad'),\n \t array('id' => '20993','state_id' => '1639','name' => 'Szabadkigyos'),\n \t array('id' => '20994','state_id' => '1639','name' => 'Szarvas'),\n \t array('id' => '20995','state_id' => '1639','name' => 'Szeghalom'),\n \t array('id' => '20996','state_id' => '1639','name' => 'Totkomlos'),\n \t array('id' => '20997','state_id' => '1639','name' => 'Veszto'),\n \t array('id' => '20998','state_id' => '1640','name' => 'Abaujszanto'),\n \t array('id' => '20999','state_id' => '1640','name' => 'Arlo'),\n \t array('id' => '21000','state_id' => '1640','name' => 'Bogacs'),\n \t array('id' => '21001','state_id' => '1640','name' => 'Cigand'),\n \t array('id' => '21002','state_id' => '1640','name' => 'Edeleny'),\n \t array('id' => '21003','state_id' => '1640','name' => 'Emod'),\n \t array('id' => '21004','state_id' => '1640','name' => 'Encs'),\n \t array('id' => '21005','state_id' => '1640','name' => 'Gonc'),\n \t array('id' => '21006','state_id' => '1640','name' => 'Karcsa'),\n \t array('id' => '21007','state_id' => '1640','name' => 'Kazincbarcika'),\n \t array('id' => '21008','state_id' => '1640','name' => 'Mad'),\n \t array('id' => '21009','state_id' => '1640','name' => 'Megyaszo'),\n \t array('id' => '21010','state_id' => '1640','name' => 'Mezokeresztes'),\n \t array('id' => '21011','state_id' => '1640','name' => 'Mezokovesd'),\n \t array('id' => '21012','state_id' => '1640','name' => 'Miskolc'),\n \t array('id' => '21013','state_id' => '1640','name' => 'Monok'),\n \t array('id' => '21014','state_id' => '1640','name' => 'Nyekladhaza'),\n \t array('id' => '21015','state_id' => '1640','name' => 'Olaszliszka'),\n \t array('id' => '21016','state_id' => '1640','name' => 'Onod'),\n \t array('id' => '21017','state_id' => '1640','name' => 'Ozd'),\n \t array('id' => '21018','state_id' => '1640','name' => 'Putnok'),\n \t array('id' => '21019','state_id' => '1640','name' => 'Rudabanya'),\n \t array('id' => '21020','state_id' => '1640','name' => 'Sajokaza'),\n \t array('id' => '21021','state_id' => '1640','name' => 'Sajolad'),\n \t array('id' => '21022','state_id' => '1640','name' => 'Sajoszentpeter'),\n \t array('id' => '21023','state_id' => '1640','name' => 'Saly'),\n \t array('id' => '21024','state_id' => '1640','name' => 'Sarospatak'),\n \t array('id' => '21025','state_id' => '1640','name' => 'Satoraljaujhely'),\n \t array('id' => '21026','state_id' => '1640','name' => 'Szendro'),\n \t array('id' => '21027','state_id' => '1640','name' => 'Szentistvan'),\n \t array('id' => '21028','state_id' => '1640','name' => 'Szerencs'),\n \t array('id' => '21029','state_id' => '1640','name' => 'Szihalom'),\n \t array('id' => '21030','state_id' => '1640','name' => 'Szikszo'),\n \t array('id' => '21031','state_id' => '1640','name' => 'Taktaharkany'),\n \t array('id' => '21032','state_id' => '1640','name' => 'Taktaszada'),\n \t array('id' => '21033','state_id' => '1640','name' => 'Tallya'),\n \t array('id' => '21034','state_id' => '1640','name' => 'Tarcal'),\n \t array('id' => '21035','state_id' => '1640','name' => 'Tiszaluc'),\n \t array('id' => '21036','state_id' => '1640','name' => 'Tiszaujvaros'),\n \t array('id' => '21037','state_id' => '1640','name' => 'Tokaj'),\n \t array('id' => '21038','state_id' => '1640','name' => 'Tolcsva'),\n \t array('id' => '21039','state_id' => '1641','name' => 'Budapest'),\n \t array('id' => '21040','state_id' => '1642','name' => 'Csongrad'),\n \t array('id' => '21041','state_id' => '1642','name' => 'Fabiansebestyen'),\n \t array('id' => '21042','state_id' => '1642','name' => 'Foldeak'),\n \t array('id' => '21043','state_id' => '1642','name' => 'Hodmezovasarhely'),\n \t array('id' => '21044','state_id' => '1642','name' => 'Kiskundorozsma'),\n \t array('id' => '21045','state_id' => '1642','name' => 'Kistelek'),\n \t array('id' => '21046','state_id' => '1642','name' => 'Kiszombor'),\n \t array('id' => '21047','state_id' => '1642','name' => 'Mako'),\n \t array('id' => '21048','state_id' => '1642','name' => 'Mindszent'),\n \t array('id' => '21049','state_id' => '1642','name' => 'Morahalom'),\n \t array('id' => '21050','state_id' => '1642','name' => 'Pusztaszer'),\n \t array('id' => '21051','state_id' => '1642','name' => 'Roszke'),\n \t array('id' => '21052','state_id' => '1642','name' => 'Sandorfalva'),\n \t array('id' => '21053','state_id' => '1642','name' => 'Szatymaz'),\n \t array('id' => '21054','state_id' => '1642','name' => 'Szeged'),\n \t array('id' => '21055','state_id' => '1642','name' => 'Szegvar'),\n \t array('id' => '21056','state_id' => '1642','name' => 'Szekkutas'),\n \t array('id' => '21057','state_id' => '1642','name' => 'Szentes'),\n \t array('id' => '21058','state_id' => '1643','name' => 'Aba'),\n \t array('id' => '21059','state_id' => '1643','name' => 'Adony'),\n \t array('id' => '21060','state_id' => '1643','name' => 'Alap'),\n \t array('id' => '21061','state_id' => '1643','name' => 'Apostag'),\n \t array('id' => '21062','state_id' => '1643','name' => 'Bakonycsernye'),\n \t array('id' => '21063','state_id' => '1643','name' => 'Bicske'),\n \t array('id' => '21064','state_id' => '1643','name' => 'Bodajk'),\n \t array('id' => '21065','state_id' => '1643','name' => 'Cece'),\n \t array('id' => '21066','state_id' => '1643','name' => 'Csakvar'),\n \t array('id' => '21067','state_id' => '1643','name' => 'Deg'),\n \t array('id' => '21068','state_id' => '1643','name' => 'Dios'),\n \t array('id' => '21069','state_id' => '1643','name' => 'Dunaujvaros'),\n \t array('id' => '21070','state_id' => '1643','name' => 'Enying'),\n \t array('id' => '21071','state_id' => '1643','name' => 'Ercsi'),\n \t array('id' => '21072','state_id' => '1643','name' => 'Etyek'),\n \t array('id' => '21073','state_id' => '1643','name' => 'Fehervarcsurgo'),\n \t array('id' => '21074','state_id' => '1643','name' => 'Lovasbereny'),\n \t array('id' => '21075','state_id' => '1643','name' => 'Martonvasar'),\n \t array('id' => '21076','state_id' => '1643','name' => 'Mezofalva'),\n \t array('id' => '21077','state_id' => '1643','name' => 'Mezoszilas'),\n \t array('id' => '21078','state_id' => '1643','name' => 'Mor'),\n \t array('id' => '21079','state_id' => '1643','name' => 'Pazmand'),\n \t array('id' => '21080','state_id' => '1643','name' => 'Polgardi'),\n \t array('id' => '21081','state_id' => '1643','name' => 'Pusztavam'),\n \t array('id' => '21082','state_id' => '1643','name' => 'Rackeresztur'),\n \t array('id' => '21083','state_id' => '1643','name' => 'Sarbogard'),\n \t array('id' => '21084','state_id' => '1643','name' => 'Seregelyes'),\n \t array('id' => '21085','state_id' => '1643','name' => 'Soponya'),\n \t array('id' => '21086','state_id' => '1643','name' => 'Szabadbattyan'),\n \t array('id' => '21087','state_id' => '1643','name' => 'Szekesfehervar'),\n \t array('id' => '21088','state_id' => '1643','name' => 'Val'),\n \t array('id' => '21089','state_id' => '1644','name' => 'Asvanyraro'),\n \t array('id' => '21090','state_id' => '1644','name' => 'Beled'),\n \t array('id' => '21091','state_id' => '1644','name' => 'Bosarkany'),\n \t array('id' => '21092','state_id' => '1644','name' => 'Csorna'),\n \t array('id' => '21093','state_id' => '1644','name' => 'Fertod'),\n \t array('id' => '21094','state_id' => '1644','name' => 'Fertorakos'),\n \t array('id' => '21095','state_id' => '1644','name' => 'Fertoszentmiklos'),\n \t array('id' => '21096','state_id' => '1644','name' => 'Gyor'),\n \t array('id' => '21097','state_id' => '1644','name' => 'Gyorujbarat'),\n \t array('id' => '21098','state_id' => '1644','name' => 'Hunyadi u.'),\n \t array('id' => '21099','state_id' => '1644','name' => 'Kapuvar'),\n \t array('id' => '21100','state_id' => '1644','name' => 'Lebeny'),\n \t array('id' => '21101','state_id' => '1644','name' => 'Mihalyi'),\n \t array('id' => '21102','state_id' => '1644','name' => 'Mosonmagyarovar'),\n \t array('id' => '21103','state_id' => '1644','name' => 'Nyul'),\n \t array('id' => '21104','state_id' => '1644','name' => 'Pannonhalma'),\n \t array('id' => '21105','state_id' => '1644','name' => 'Rajka'),\n \t array('id' => '21106','state_id' => '1644','name' => 'Sopron'),\n \t array('id' => '21107','state_id' => '1644','name' => 'Szany'),\n \t array('id' => '21108','state_id' => '1644','name' => 'Tet'),\n \t array('id' => '21109','state_id' => '1645','name' => 'Balmazujvaros'),\n \t array('id' => '21110','state_id' => '1645','name' => 'Barand'),\n \t array('id' => '21111','state_id' => '1645','name' => 'Berettyoujfalu'),\n \t array('id' => '21112','state_id' => '1645','name' => 'Biharkeresztes'),\n \t array('id' => '21113','state_id' => '1645','name' => 'Biharnagybajom'),\n \t array('id' => '21114','state_id' => '1645','name' => 'Debrecen'),\n \t array('id' => '21115','state_id' => '1645','name' => 'Derecske'),\n \t array('id' => '21116','state_id' => '1645','name' => 'Egyek'),\n \t array('id' => '21117','state_id' => '1645','name' => 'Foldes'),\n \t array('id' => '21118','state_id' => '1645','name' => 'Hajduboszormeny'),\n \t array('id' => '21119','state_id' => '1645','name' => 'Hajdudorog'),\n \t array('id' => '21120','state_id' => '1645','name' => 'Hajduhadhaz'),\n \t array('id' => '21121','state_id' => '1645','name' => 'Hajdusamson'),\n \t array('id' => '21122','state_id' => '1645','name' => 'Hajduszoboszlo'),\n \t array('id' => '21123','state_id' => '1645','name' => 'Hajduszovat'),\n \t array('id' => '21124','state_id' => '1645','name' => 'Hortobagy'),\n \t array('id' => '21125','state_id' => '1645','name' => 'Hosszupalyi'),\n \t array('id' => '21126','state_id' => '1645','name' => 'Kaba'),\n \t array('id' => '21127','state_id' => '1645','name' => 'Komadi'),\n \t array('id' => '21128','state_id' => '1645','name' => 'Mikepercs'),\n \t array('id' => '21129','state_id' => '1645','name' => 'Monostorpalyi'),\n \t array('id' => '21130','state_id' => '1645','name' => 'Nadudvar'),\n \t array('id' => '21131','state_id' => '1645','name' => 'Nagyleta'),\n \t array('id' => '21132','state_id' => '1645','name' => 'Nyirabrany'),\n \t array('id' => '21133','state_id' => '1645','name' => 'Nyiracsad'),\n \t array('id' => '21134','state_id' => '1645','name' => 'Nyiradony'),\n \t array('id' => '21135','state_id' => '1645','name' => 'Polgar'),\n \t array('id' => '21136','state_id' => '1645','name' => 'Puspokladany'),\n \t array('id' => '21137','state_id' => '1645','name' => 'Sarretudvari'),\n \t array('id' => '21138','state_id' => '1645','name' => 'Tiszacsege'),\n \t array('id' => '21139','state_id' => '1645','name' => 'Ujfeherto'),\n \t array('id' => '21140','state_id' => '1645','name' => 'Vamospercs'),\n \t array('id' => '21141','state_id' => '1646','name' => 'Abasar'),\n \t array('id' => '21142','state_id' => '1646','name' => 'Andornaktalya'),\n \t array('id' => '21143','state_id' => '1646','name' => 'Belapatfalva'),\n \t array('id' => '21144','state_id' => '1646','name' => 'Domoszlo'),\n \t array('id' => '21145','state_id' => '1646','name' => 'Eger'),\n \t array('id' => '21146','state_id' => '1646','name' => 'Erdotelek'),\n \t array('id' => '21147','state_id' => '1646','name' => 'Felsotarkany'),\n \t array('id' => '21148','state_id' => '1646','name' => 'Fuzesabony'),\n \t array('id' => '21149','state_id' => '1646','name' => 'Gyongyos'),\n \t array('id' => '21150','state_id' => '1646','name' => 'Gyongyospata'),\n \t array('id' => '21151','state_id' => '1646','name' => 'Gyongyossolymos'),\n \t array('id' => '21152','state_id' => '1646','name' => 'Gyongyostarjan'),\n \t array('id' => '21153','state_id' => '1646','name' => 'Hatvan'),\n \t array('id' => '21154','state_id' => '1646','name' => 'Heves'),\n \t array('id' => '21155','state_id' => '1646','name' => 'Kal'),\n \t array('id' => '21156','state_id' => '1646','name' => 'Lorinci'),\n \t array('id' => '21157','state_id' => '1646','name' => 'Matraderecske'),\n \t array('id' => '21158','state_id' => '1646','name' => 'Parad'),\n \t array('id' => '21159','state_id' => '1646','name' => 'Petervasara'),\n \t array('id' => '21160','state_id' => '1646','name' => 'Recsk'),\n \t array('id' => '21161','state_id' => '1646','name' => 'Sirok'),\n \t array('id' => '21162','state_id' => '1646','name' => 'Tarnalelesz'),\n \t array('id' => '21163','state_id' => '1646','name' => 'Verpelet'),\n \t array('id' => '21164','state_id' => '1647','name' => 'Abadszalok'),\n \t array('id' => '21165','state_id' => '1647','name' => 'Besenyszog'),\n \t array('id' => '21166','state_id' => '1647','name' => 'Cserkeszolo'),\n \t array('id' => '21167','state_id' => '1647','name' => 'Fegyvernek'),\n \t array('id' => '21168','state_id' => '1647','name' => 'Hegyeshalom'),\n \t array('id' => '21169','state_id' => '1647','name' => 'Jaszalsoszentgyorgy'),\n \t array('id' => '21170','state_id' => '1647','name' => 'Jaszapati'),\n \t array('id' => '21171','state_id' => '1647','name' => 'Jaszarokszallas'),\n \t array('id' => '21172','state_id' => '1647','name' => 'Jaszbereny'),\n \t array('id' => '21173','state_id' => '1647','name' => 'Jaszfenyzaru'),\n \t array('id' => '21174','state_id' => '1647','name' => 'Jaszjakohalma'),\n \t array('id' => '21175','state_id' => '1647','name' => 'Jaszkiser'),\n \t array('id' => '21176','state_id' => '1647','name' => 'Jaszladany'),\n \t array('id' => '21177','state_id' => '1647','name' => 'Jaszszentandras'),\n \t array('id' => '21178','state_id' => '1647','name' => 'Karcag'),\n \t array('id' => '21179','state_id' => '1647','name' => 'Kenderes'),\n \t array('id' => '21180','state_id' => '1647','name' => 'Kisujszallas'),\n \t array('id' => '21181','state_id' => '1647','name' => 'Kunhegyes'),\n \t array('id' => '21182','state_id' => '1647','name' => 'Kunmadaras'),\n \t array('id' => '21183','state_id' => '1647','name' => 'Kunszentmarton'),\n \t array('id' => '21184','state_id' => '1647','name' => 'Martfu'),\n \t array('id' => '21185','state_id' => '1647','name' => 'Mezotur'),\n \t array('id' => '21186','state_id' => '1647','name' => 'Ocsod'),\n \t array('id' => '21187','state_id' => '1647','name' => 'Szolnok'),\n \t array('id' => '21188','state_id' => '1647','name' => 'Tiszabura'),\n \t array('id' => '21189','state_id' => '1647','name' => 'Tiszafoldvar'),\n \t array('id' => '21190','state_id' => '1647','name' => 'Tiszafured'),\n \t array('id' => '21191','state_id' => '1647','name' => 'Tiszapuspoki'),\n \t array('id' => '21192','state_id' => '1647','name' => 'Tiszaroff'),\n \t array('id' => '21193','state_id' => '1647','name' => 'Tiszasuly'),\n \t array('id' => '21194','state_id' => '1647','name' => 'Torokszentmiklos'),\n \t array('id' => '21195','state_id' => '1647','name' => 'Toszeg'),\n \t array('id' => '21196','state_id' => '1647','name' => 'Turkeve'),\n \t array('id' => '21197','state_id' => '1647','name' => 'Ujszasz'),\n \t array('id' => '21198','state_id' => '1648','name' => 'Acs'),\n \t array('id' => '21199','state_id' => '1648','name' => 'Almasfuzito'),\n \t array('id' => '21200','state_id' => '1648','name' => 'Babolna'),\n \t array('id' => '21201','state_id' => '1648','name' => 'Bajna'),\n \t array('id' => '21202','state_id' => '1648','name' => 'Dorog'),\n \t array('id' => '21203','state_id' => '1648','name' => 'Esztergom'),\n \t array('id' => '21204','state_id' => '1648','name' => 'Kesztolc'),\n \t array('id' => '21205','state_id' => '1648','name' => 'Kisber'),\n \t array('id' => '21206','state_id' => '1648','name' => 'Komarom'),\n \t array('id' => '21207','state_id' => '1648','name' => 'Kornye'),\n \t array('id' => '21208','state_id' => '1648','name' => 'Labatlan'),\n \t array('id' => '21209','state_id' => '1648','name' => 'Mocsa'),\n \t array('id' => '21210','state_id' => '1648','name' => 'Nagyigmand'),\n \t array('id' => '21211','state_id' => '1648','name' => 'Nyergesujfalu'),\n \t array('id' => '21212','state_id' => '1648','name' => 'Oroszlany'),\n \t array('id' => '21213','state_id' => '1648','name' => 'Sarisap'),\n \t array('id' => '21214','state_id' => '1648','name' => 'Tardos'),\n \t array('id' => '21215','state_id' => '1648','name' => 'Tarjan'),\n \t array('id' => '21216','state_id' => '1648','name' => 'Tata'),\n \t array('id' => '21217','state_id' => '1648','name' => 'Tatabanya'),\n \t array('id' => '21218','state_id' => '1648','name' => 'Tokod'),\n \t array('id' => '21219','state_id' => '1648','name' => 'Vertesszolos'),\n \t array('id' => '21220','state_id' => '1649','name' => 'Balassagyarmat'),\n \t array('id' => '21221','state_id' => '1649','name' => 'Batonyterenye'),\n \t array('id' => '21222','state_id' => '1649','name' => 'Bercel'),\n \t array('id' => '21223','state_id' => '1649','name' => 'Bujak'),\n \t array('id' => '21224','state_id' => '1649','name' => 'Diosjeno'),\n \t array('id' => '21225','state_id' => '1649','name' => 'Karancskeszi'),\n \t array('id' => '21226','state_id' => '1649','name' => 'Matraverebely'),\n \t array('id' => '21227','state_id' => '1649','name' => 'Nagyoroszi'),\n \t array('id' => '21228','state_id' => '1649','name' => 'Paszto'),\n \t array('id' => '21229','state_id' => '1649','name' => 'Retsag'),\n \t array('id' => '21230','state_id' => '1649','name' => 'Romhany'),\n \t array('id' => '21231','state_id' => '1649','name' => 'Salgotarjan'),\n \t array('id' => '21232','state_id' => '1649','name' => 'Szecseny'),\n \t array('id' => '21233','state_id' => '1649','name' => 'Tar'),\n \t array('id' => '21234','state_id' => '1650','name' => 'Abony'),\n \t array('id' => '21235','state_id' => '1650','name' => 'Albertirsa'),\n \t array('id' => '21236','state_id' => '1650','name' => 'Aszod'),\n \t array('id' => '21237','state_id' => '1650','name' => 'Biatorbagy'),\n \t array('id' => '21238','state_id' => '1650','name' => 'Budakalasz'),\n \t array('id' => '21239','state_id' => '1650','name' => 'Budakeszi'),\n \t array('id' => '21240','state_id' => '1650','name' => 'Budaors'),\n \t array('id' => '21241','state_id' => '1650','name' => 'Bugyi'),\n \t array('id' => '21242','state_id' => '1650','name' => 'Cegled'),\n \t array('id' => '21243','state_id' => '1650','name' => 'Csobanka'),\n \t array('id' => '21244','state_id' => '1650','name' => 'Dabas'),\n \t array('id' => '21245','state_id' => '1650','name' => 'Domsod'),\n \t array('id' => '21246','state_id' => '1650','name' => 'Dunabogdany'),\n \t array('id' => '21247','state_id' => '1650','name' => 'Dunaharaszti'),\n \t array('id' => '21248','state_id' => '1650','name' => 'Dunakeszi'),\n \t array('id' => '21249','state_id' => '1650','name' => 'Erd'),\n \t array('id' => '21250','state_id' => '1650','name' => 'Forro'),\n \t array('id' => '21251','state_id' => '1650','name' => 'Fot'),\n \t array('id' => '21252','state_id' => '1650','name' => 'Galgaheviz'),\n \t array('id' => '21253','state_id' => '1650','name' => 'God'),\n \t array('id' => '21254','state_id' => '1650','name' => 'Godollo'),\n \t array('id' => '21255','state_id' => '1650','name' => 'Gyomro'),\n \t array('id' => '21256','state_id' => '1650','name' => 'Hevizgyork'),\n \t array('id' => '21257','state_id' => '1650','name' => 'Isaszeg'),\n \t array('id' => '21258','state_id' => '1650','name' => 'Jaszkarajeno'),\n \t array('id' => '21259','state_id' => '1650','name' => 'Kiskunlachaza'),\n \t array('id' => '21260','state_id' => '1650','name' => 'Kocser'),\n \t array('id' => '21261','state_id' => '1650','name' => 'Koka'),\n \t array('id' => '21262','state_id' => '1650','name' => 'Kosd'),\n \t array('id' => '21263','state_id' => '1650','name' => 'Maglod'),\n \t array('id' => '21264','state_id' => '1650','name' => 'Monor'),\n \t array('id' => '21265','state_id' => '1650','name' => 'Nagykata'),\n \t array('id' => '21266','state_id' => '1650','name' => 'Nagykoros'),\n \t array('id' => '21267','state_id' => '1650','name' => 'Nagykovacsi'),\n \t array('id' => '21268','state_id' => '1650','name' => 'Nagymaros'),\n \t array('id' => '21269','state_id' => '1650','name' => 'Nagytarcsa'),\n \t array('id' => '21270','state_id' => '1650','name' => 'Nyaregyhaza'),\n \t array('id' => '21271','state_id' => '1650','name' => 'Ocsa'),\n \t array('id' => '21272','state_id' => '1650','name' => 'Orbottyan'),\n \t array('id' => '21273','state_id' => '1650','name' => 'Orkeny'),\n \t array('id' => '21274','state_id' => '1650','name' => 'Paty'),\n \t array('id' => '21275','state_id' => '1650','name' => 'Pecel'),\n \t array('id' => '21276','state_id' => '1650','name' => 'Perbal'),\n \t array('id' => '21277','state_id' => '1650','name' => 'Pilis'),\n \t array('id' => '21278','state_id' => '1650','name' => 'Pilisborosjeno'),\n \t array('id' => '21279','state_id' => '1650','name' => 'Piliscsaba'),\n \t array('id' => '21280','state_id' => '1650','name' => 'Pilisszanto'),\n \t array('id' => '21281','state_id' => '1650','name' => 'Pilisszentivan'),\n \t array('id' => '21282','state_id' => '1650','name' => 'Pilisszentkereszt'),\n \t array('id' => '21283','state_id' => '1650','name' => 'Pilisvorosvar'),\n \t array('id' => '21284','state_id' => '1650','name' => 'Pomaz'),\n \t array('id' => '21285','state_id' => '1650','name' => 'Racalmas'),\n \t array('id' => '21286','state_id' => '1650','name' => 'Rackeve'),\n \t array('id' => '21287','state_id' => '1650','name' => 'Solymar'),\n \t array('id' => '21288','state_id' => '1650','name' => 'Soskut'),\n \t array('id' => '21289','state_id' => '1650','name' => 'Szada'),\n \t array('id' => '21290','state_id' => '1650','name' => 'Szazhalombatta'),\n \t array('id' => '21291','state_id' => '1650','name' => 'Szentendre'),\n \t array('id' => '21292','state_id' => '1650','name' => 'Szentmartonkata'),\n \t array('id' => '21293','state_id' => '1650','name' => 'Szigetcsep'),\n \t array('id' => '21294','state_id' => '1650','name' => 'Szigetszentmiklos'),\n \t array('id' => '21295','state_id' => '1650','name' => 'Szigetujfalu'),\n \t array('id' => '21296','state_id' => '1650','name' => 'Szob'),\n \t array('id' => '21297','state_id' => '1650','name' => 'Tahitofalu'),\n \t array('id' => '21298','state_id' => '1650','name' => 'Tapiobicske'),\n \t array('id' => '21299','state_id' => '1650','name' => 'Tapioszecso'),\n \t array('id' => '21300','state_id' => '1650','name' => 'Tapioszele'),\n \t array('id' => '21301','state_id' => '1650','name' => 'Toalmas'),\n \t array('id' => '21302','state_id' => '1650','name' => 'Torokbalint'),\n \t array('id' => '21303','state_id' => '1650','name' => 'Tortel'),\n \t array('id' => '21304','state_id' => '1650','name' => 'Tura'),\n \t array('id' => '21305','state_id' => '1650','name' => 'Ullo'),\n \t array('id' => '21306','state_id' => '1650','name' => 'Uri'),\n \t array('id' => '21307','state_id' => '1650','name' => 'Urom'),\n \t array('id' => '21308','state_id' => '1650','name' => 'Vac'),\n \t array('id' => '21309','state_id' => '1650','name' => 'Vecses'),\n \t array('id' => '21310','state_id' => '1650','name' => 'Veresegyhaz'),\n \t array('id' => '21311','state_id' => '1650','name' => 'Verocemaros'),\n \t array('id' => '21312','state_id' => '1650','name' => 'Visegrad'),\n \t array('id' => '21313','state_id' => '1650','name' => 'Zsambek'),\n \t array('id' => '21314','state_id' => '1650','name' => 'Zsambok'),\n \t array('id' => '21315','state_id' => '1651','name' => 'Adand'),\n \t array('id' => '21316','state_id' => '1651','name' => 'Balatonfoldvar'),\n \t array('id' => '21317','state_id' => '1651','name' => 'Balatonoszod'),\n \t array('id' => '21318','state_id' => '1651','name' => 'Balatonszabadi'),\n \t array('id' => '21319','state_id' => '1651','name' => 'Balatonszarszo'),\n \t array('id' => '21320','state_id' => '1651','name' => 'Barcs'),\n \t array('id' => '21321','state_id' => '1651','name' => 'Berzence'),\n \t array('id' => '21322','state_id' => '1651','name' => 'Boglarlelle'),\n \t array('id' => '21323','state_id' => '1651','name' => 'Bohonye'),\n \t array('id' => '21324','state_id' => '1651','name' => 'Csurgo'),\n \t array('id' => '21325','state_id' => '1651','name' => 'Fonyod'),\n \t array('id' => '21326','state_id' => '1651','name' => 'Kaposvar'),\n \t array('id' => '21327','state_id' => '1651','name' => 'Karad'),\n \t array('id' => '21328','state_id' => '1651','name' => 'Kethely'),\n \t array('id' => '21329','state_id' => '1651','name' => 'Lengyeltoti'),\n \t array('id' => '21330','state_id' => '1651','name' => 'Marcali'),\n \t array('id' => '21331','state_id' => '1651','name' => 'Nagyatad'),\n \t array('id' => '21332','state_id' => '1651','name' => 'Nagybajom'),\n \t array('id' => '21333','state_id' => '1651','name' => 'Siofok'),\n \t array('id' => '21334','state_id' => '1651','name' => 'Somogyvar'),\n \t array('id' => '21335','state_id' => '1651','name' => 'Tab'),\n \t array('id' => '21336','state_id' => '1651','name' => 'Zamardi'),\n \t array('id' => '21337','state_id' => '1652','name' => 'Ajak'),\n \t array('id' => '21338','state_id' => '1652','name' => 'Baktaloranthaza'),\n \t array('id' => '21339','state_id' => '1652','name' => 'Balkany'),\n \t array('id' => '21340','state_id' => '1652','name' => 'Buj'),\n \t array('id' => '21341','state_id' => '1652','name' => 'Demecser'),\n \t array('id' => '21342','state_id' => '1652','name' => 'Dombrad'),\n \t array('id' => '21343','state_id' => '1652','name' => 'Fehergyarmat'),\n \t array('id' => '21344','state_id' => '1652','name' => 'Ibrany'),\n \t array('id' => '21345','state_id' => '1652','name' => 'Kemecse'),\n \t array('id' => '21346','state_id' => '1652','name' => 'Kisvarda'),\n \t array('id' => '21347','state_id' => '1652','name' => 'Kotaj'),\n \t array('id' => '21348','state_id' => '1652','name' => 'Mandok'),\n \t array('id' => '21349','state_id' => '1652','name' => 'Mariapocs'),\n \t array('id' => '21350','state_id' => '1652','name' => 'Mateszalka'),\n \t array('id' => '21351','state_id' => '1652','name' => 'Nagyecsed'),\n \t array('id' => '21352','state_id' => '1652','name' => 'Nagyhalasz'),\n \t array('id' => '21353','state_id' => '1652','name' => 'Nagykallo'),\n \t array('id' => '21354','state_id' => '1652','name' => 'Nyirbator'),\n \t array('id' => '21355','state_id' => '1652','name' => 'Nyirbeltek'),\n \t array('id' => '21356','state_id' => '1652','name' => 'Nyiregyhaza'),\n \t array('id' => '21357','state_id' => '1652','name' => 'Nyirmada'),\n \t array('id' => '21358','state_id' => '1652','name' => 'Nyirpazony'),\n \t array('id' => '21359','state_id' => '1652','name' => 'Nyirtelek'),\n \t array('id' => '21360','state_id' => '1652','name' => 'Ofeherto'),\n \t array('id' => '21361','state_id' => '1652','name' => 'Rakamaz'),\n \t array('id' => '21362','state_id' => '1652','name' => 'Tarpa'),\n \t array('id' => '21363','state_id' => '1652','name' => 'Tiszabercel'),\n \t array('id' => '21364','state_id' => '1652','name' => 'Tiszalok'),\n \t array('id' => '21365','state_id' => '1652','name' => 'Tiszavasvari'),\n \t array('id' => '21366','state_id' => '1652','name' => 'Tuzser'),\n \t array('id' => '21367','state_id' => '1652','name' => 'Vaja'),\n \t array('id' => '21368','state_id' => '1652','name' => 'Vasarosnameny'),\n \t array('id' => '21369','state_id' => '1652','name' => 'Zahony'),\n \t array('id' => '21370','state_id' => '1653','name' => 'Bataszek'),\n \t array('id' => '21371','state_id' => '1653','name' => 'Bonyhad'),\n \t array('id' => '21372','state_id' => '1653','name' => 'Decs'),\n \t array('id' => '21373','state_id' => '1653','name' => 'Dombovar'),\n \t array('id' => '21374','state_id' => '1653','name' => 'Dunafoldvar'),\n \t array('id' => '21375','state_id' => '1653','name' => 'Fadd'),\n \t array('id' => '21376','state_id' => '1653','name' => 'Gyonk'),\n \t array('id' => '21377','state_id' => '1653','name' => 'Hogyesz'),\n \t array('id' => '21378','state_id' => '1653','name' => 'Iregszemcse'),\n \t array('id' => '21379','state_id' => '1653','name' => 'Madocsa'),\n \t array('id' => '21380','state_id' => '1653','name' => 'Nagymagocs'),\n \t array('id' => '21381','state_id' => '1653','name' => 'Nagymanyok'),\n \t array('id' => '21382','state_id' => '1653','name' => 'Ozora'),\n \t array('id' => '21383','state_id' => '1653','name' => 'Paks'),\n \t array('id' => '21384','state_id' => '1653','name' => 'Pincehely'),\n \t array('id' => '21385','state_id' => '1653','name' => 'Simontornya'),\n \t array('id' => '21386','state_id' => '1653','name' => 'Szekszard'),\n \t array('id' => '21387','state_id' => '1653','name' => 'Szentgal'),\n \t array('id' => '21388','state_id' => '1653','name' => 'Tamasi'),\n \t array('id' => '21389','state_id' => '1653','name' => 'Tengelic'),\n \t array('id' => '21390','state_id' => '1653','name' => 'Tolna'),\n \t array('id' => '21391','state_id' => '1653','name' => 'Zomba'),\n \t array('id' => '21392','state_id' => '1654','name' => 'Buk'),\n \t array('id' => '21393','state_id' => '1654','name' => 'Celldomolk'),\n \t array('id' => '21394','state_id' => '1654','name' => 'Csepreg'),\n \t array('id' => '21395','state_id' => '1654','name' => 'Gencsapati'),\n \t array('id' => '21396','state_id' => '1654','name' => 'Jak'),\n \t array('id' => '21397','state_id' => '1654','name' => 'Janoshaza'),\n \t array('id' => '21398','state_id' => '1654','name' => 'Kormend'),\n \t array('id' => '21399','state_id' => '1654','name' => 'Koszeg'),\n \t array('id' => '21400','state_id' => '1654','name' => 'Sarvar'),\n \t array('id' => '21401','state_id' => '1654','name' => 'Szentgotthard'),\n \t array('id' => '21402','state_id' => '1654','name' => 'Szombathely'),\n \t array('id' => '21403','state_id' => '1654','name' => 'Vasvar'),\n \t array('id' => '21404','state_id' => '1654','name' => 'Vep'),\n \t array('id' => '21405','state_id' => '1655','name' => 'Ajka'),\n \t array('id' => '21406','state_id' => '1655','name' => 'Badacsonytomaj'),\n \t array('id' => '21407','state_id' => '1655','name' => 'Balatonalmadi'),\n \t array('id' => '21408','state_id' => '1655','name' => 'Balatonfured'),\n \t array('id' => '21409','state_id' => '1655','name' => 'Balatonfuzfo'),\n \t array('id' => '21410','state_id' => '1655','name' => 'Balatonkenese'),\n \t array('id' => '21411','state_id' => '1655','name' => 'Band'),\n \t array('id' => '21412','state_id' => '1655','name' => 'Berhida'),\n \t array('id' => '21413','state_id' => '1655','name' => 'Csabrendek'),\n \t array('id' => '21414','state_id' => '1655','name' => 'Devecser'),\n \t array('id' => '21415','state_id' => '1655','name' => 'Herend'),\n \t array('id' => '21416','state_id' => '1655','name' => 'Papa'),\n \t array('id' => '21417','state_id' => '1655','name' => 'Sumeg'),\n \t array('id' => '21418','state_id' => '1655','name' => 'Tapolca'),\n \t array('id' => '21419','state_id' => '1655','name' => 'Urkut'),\n \t array('id' => '21420','state_id' => '1655','name' => 'Varpalota'),\n \t array('id' => '21421','state_id' => '1655','name' => 'Veszprem'),\n \t array('id' => '21422','state_id' => '1655','name' => 'Zirc'),\n \t array('id' => '21423','state_id' => '1656','name' => 'Becsehely'),\n \t array('id' => '21424','state_id' => '1656','name' => 'Heviz'),\n \t array('id' => '21425','state_id' => '1656','name' => 'Keszthely'),\n \t array('id' => '21426','state_id' => '1656','name' => 'Lenti'),\n \t array('id' => '21427','state_id' => '1656','name' => 'Letenye'),\n \t array('id' => '21428','state_id' => '1656','name' => 'Nagykanizsa'),\n \t array('id' => '21429','state_id' => '1656','name' => 'Sarmellek'),\n \t array('id' => '21430','state_id' => '1656','name' => 'Turje'),\n \t array('id' => '21431','state_id' => '1656','name' => 'Zalaegerszeg'),\n \t array('id' => '21432','state_id' => '1656','name' => 'Zalakomar'),\n \t array('id' => '21433','state_id' => '1656','name' => 'Zalalovo'),\n \t array('id' => '21434','state_id' => '1656','name' => 'Zalaszentgrot'),\n \t array('id' => '21435','state_id' => '1657','name' => 'Bakkafjor ur'),\n \t array('id' => '21436','state_id' => '1657','name' => 'Borgarfjor ur'),\n \t array('id' => '21437','state_id' => '1657','name' => 'Brei dalsvik'),\n \t array('id' => '21438','state_id' => '1657','name' => 'Djupivogur'),\n \t array('id' => '21439','state_id' => '1657','name' => 'Egilssta ir'),\n \t array('id' => '21440','state_id' => '1657','name' => 'Eskifjor ur'),\n \t array('id' => '21441','state_id' => '1657','name' => 'Faskru sfjor ur'),\n \t array('id' => '21442','state_id' => '1657','name' => 'Fellabar'),\n \t array('id' => '21443','state_id' => '1657','name' => 'Hallormssta ur'),\n \t array('id' => '21444','state_id' => '1657','name' => 'Hofn'),\n \t array('id' => '21445','state_id' => '1657','name' => 'Nesjakauptun'),\n \t array('id' => '21446','state_id' => '1657','name' => 'Neskaupsta ur'),\n \t array('id' => '21447','state_id' => '1657','name' => 'Rey arfjor ur'),\n \t array('id' => '21448','state_id' => '1657','name' => 'Sey isfjor ur'),\n \t array('id' => '21449','state_id' => '1657','name' => 'Sto varfjor ur'),\n \t array('id' => '21450','state_id' => '1657','name' => 'Vopnafjor ur'),\n \t array('id' => '21451','state_id' => '1665','name' => 'Akranes'),\n \t array('id' => '21452','state_id' => '1665','name' => 'Borgarnes'),\n \t array('id' => '21453','state_id' => '1665','name' => 'Bu ardalur'),\n \t array('id' => '21454','state_id' => '1665','name' => 'Grundarfjor ur'),\n \t array('id' => '21455','state_id' => '1665','name' => 'Hellissandur'),\n \t array('id' => '21456','state_id' => '1665','name' => 'Hvanneyri'),\n \t array('id' => '21457','state_id' => '1665','name' => 'Olafsvik'),\n \t array('id' => '21458','state_id' => '1665','name' => 'Rif'),\n \t array('id' => '21459','state_id' => '1665','name' => 'Stykkisholmur'),\n \t array('id' => '21460','state_id' => '1666','name' => 'Banda Aceh'),\n \t array('id' => '21461','state_id' => '1666','name' => 'Bireun'),\n \t array('id' => '21462','state_id' => '1666','name' => 'Langsa'),\n \t array('id' => '21463','state_id' => '1666','name' => 'Lhokseumawe'),\n \t array('id' => '21464','state_id' => '1666','name' => 'Meulaboh'),\n \t array('id' => '21465','state_id' => '1667','name' => 'Denpasar'),\n \t array('id' => '21466','state_id' => '1667','name' => 'Karangasem'),\n \t array('id' => '21467','state_id' => '1667','name' => 'Klungkung'),\n \t array('id' => '21468','state_id' => '1667','name' => 'Kuta'),\n \t array('id' => '21469','state_id' => '1667','name' => 'Negara'),\n \t array('id' => '21470','state_id' => '1667','name' => 'Singaraja'),\n \t array('id' => '21471','state_id' => '1667','name' => 'Tabanan'),\n \t array('id' => '21472','state_id' => '1667','name' => 'Ubud'),\n \t array('id' => '21473','state_id' => '1668','name' => 'Manggar'),\n \t array('id' => '21474','state_id' => '1668','name' => 'Mentok'),\n \t array('id' => '21475','state_id' => '1668','name' => 'Pangkal Pinang'),\n \t array('id' => '21476','state_id' => '1668','name' => 'Sungai Liat'),\n \t array('id' => '21477','state_id' => '1668','name' => 'Tanjung Pandan'),\n \t array('id' => '21478','state_id' => '1668','name' => 'Toboali-Rias'),\n \t array('id' => '21479','state_id' => '1669','name' => 'Cikupa'),\n \t array('id' => '21480','state_id' => '1669','name' => 'Cilegon'),\n \t array('id' => '21481','state_id' => '1669','name' => 'Ciputat'),\n \t array('id' => '21482','state_id' => '1669','name' => 'Curug'),\n \t array('id' => '21483','state_id' => '1669','name' => 'Kresek'),\n \t array('id' => '21484','state_id' => '1669','name' => 'Labuhan'),\n \t array('id' => '21485','state_id' => '1669','name' => 'Pandegelang'),\n \t array('id' => '21486','state_id' => '1669','name' => 'Pondok Aren'),\n \t array('id' => '21487','state_id' => '1669','name' => 'Rangkasbitung'),\n \t array('id' => '21488','state_id' => '1669','name' => 'Serang'),\n \t array('id' => '21489','state_id' => '1669','name' => 'Serpong'),\n \t array('id' => '21490','state_id' => '1669','name' => 'Tangerang'),\n \t array('id' => '21491','state_id' => '1669','name' => 'Teluknaga'),\n \t array('id' => '21492','state_id' => '1670','name' => 'Bengkulu'),\n \t array('id' => '21493','state_id' => '1670','name' => 'Curup'),\n \t array('id' => '21494','state_id' => '1671','name' => 'Gandaria'),\n \t array('id' => '21495','state_id' => '1672','name' => 'Gorontalo'),\n \t array('id' => '21496','state_id' => '1673','name' => 'Cengkareng'),\n \t array('id' => '21497','state_id' => '1673','name' => 'Jakarta'),\n \t array('id' => '21498','state_id' => '1674','name' => 'Jambi'),\n \t array('id' => '21499','state_id' => '1674','name' => 'Kualatungka'),\n \t array('id' => '21500','state_id' => '1674','name' => 'Simpang'),\n \t array('id' => '21501','state_id' => '1674','name' => 'Sungaipenuh'),\n \t array('id' => '21502','state_id' => '1682','name' => 'Kendal'),\n \t array('id' => '21503','state_id' => '1683','name' => 'Bandar Lampung'),\n \t array('id' => '21504','state_id' => '1683','name' => 'Kota Bumi'),\n \t array('id' => '21505','state_id' => '1683','name' => 'Metro'),\n \t array('id' => '21506','state_id' => '1683','name' => 'Pringsewu'),\n \t array('id' => '21507','state_id' => '1683','name' => 'Terbanggi Besar'),\n \t array('id' => '21508','state_id' => '1684','name' => 'Amahai'),\n \t array('id' => '21509','state_id' => '1684','name' => 'Ambon'),\n \t array('id' => '21510','state_id' => '1684','name' => 'Tual'),\n \t array('id' => '21511','state_id' => '1685','name' => 'Amahai'),\n \t array('id' => '21512','state_id' => '1685','name' => 'Ambon'),\n \t array('id' => '21513','state_id' => '1685','name' => 'Tual'),\n \t array('id' => '21514','state_id' => '1688','name' => 'Aberpura'),\n \t array('id' => '21515','state_id' => '1688','name' => 'Biak'),\n \t array('id' => '21516','state_id' => '1688','name' => 'Jaya Pura'),\n \t array('id' => '21517','state_id' => '1688','name' => 'Manokwari'),\n \t array('id' => '21518','state_id' => '1688','name' => 'Merauke'),\n \t array('id' => '21519','state_id' => '1688','name' => 'Sorong'),\n \t array('id' => '21520','state_id' => '1689','name' => 'Balaipungut'),\n \t array('id' => '21521','state_id' => '1689','name' => 'Bengkalis'),\n \t array('id' => '21522','state_id' => '1689','name' => 'Dumai'),\n \t array('id' => '21523','state_id' => '1689','name' => 'Duri'),\n \t array('id' => '21524','state_id' => '1689','name' => 'Pekan Baru'),\n \t array('id' => '21525','state_id' => '1689','name' => 'Selatpanjang'),\n \t array('id' => '21526','state_id' => '1689','name' => 'Tanjung Balai-Meral'),\n \t array('id' => '21527','state_id' => '1689','name' => 'Tembilahan'),\n \t array('id' => '21528','state_id' => '1690','name' => 'Balaipungut'),\n \t array('id' => '21529','state_id' => '1690','name' => 'Bengkalis'),\n \t array('id' => '21530','state_id' => '1690','name' => 'Dumai'),\n \t array('id' => '21531','state_id' => '1690','name' => 'Duri'),\n \t array('id' => '21532','state_id' => '1690','name' => 'Pekan Baru'),\n \t array('id' => '21533','state_id' => '1690','name' => 'Selatpanjang'),\n \t array('id' => '21534','state_id' => '1690','name' => 'Tanjung Balai-Meral'),\n \t array('id' => '21535','state_id' => '1690','name' => 'Tembilahan'),\n \t array('id' => '21536','state_id' => '1691','name' => 'Solo'),\n \t array('id' => '21537','state_id' => '1699','name' => 'Bambanglipuro'),\n \t array('id' => '21538','state_id' => '1699','name' => 'Banguntapan'),\n \t array('id' => '21539','state_id' => '1699','name' => 'Bantul'),\n \t array('id' => '21540','state_id' => '1699','name' => 'Depok'),\n \t array('id' => '21541','state_id' => '1699','name' => 'Gamping'),\n \t array('id' => '21542','state_id' => '1699','name' => 'Godean'),\n \t array('id' => '21543','state_id' => '1699','name' => 'Jetis'),\n \t array('id' => '21544','state_id' => '1699','name' => 'Kasihan'),\n \t array('id' => '21545','state_id' => '1699','name' => 'Ngaglik'),\n \t array('id' => '21546','state_id' => '1699','name' => 'Pandak'),\n \t array('id' => '21547','state_id' => '1699','name' => 'Pundong'),\n \t array('id' => '21548','state_id' => '1699','name' => 'Sewon'),\n \t array('id' => '21549','state_id' => '1699','name' => 'Seyegan'),\n \t array('id' => '21550','state_id' => '1699','name' => 'Sleman'),\n \t array('id' => '21551','state_id' => '1699','name' => 'Srandakan'),\n \t array('id' => '21552','state_id' => '1699','name' => 'Wonosari'),\n \t array('id' => '21553','state_id' => '1699','name' => 'Yogyakarta'),\n \t array('id' => '21554','state_id' => '1700','name' => 'Ardabil'),\n \t array('id' => '21555','state_id' => '1700','name' => 'Garmi'),\n \t array('id' => '21556','state_id' => '1700','name' => 'Khalkhal'),\n \t array('id' => '21557','state_id' => '1700','name' => 'Meshkinshahr'),\n \t array('id' => '21558','state_id' => '1700','name' => 'Parsabad'),\n \t array('id' => '21559','state_id' => '1703','name' => 'Bandar-e Gonaveh'),\n \t array('id' => '21560','state_id' => '1703','name' => 'Borazjan'),\n \t array('id' => '21561','state_id' => '1703','name' => 'Bushehr'),\n \t array('id' => '21562','state_id' => '1703','name' => 'Dashti'),\n \t array('id' => '21563','state_id' => '1703','name' => 'Dir'),\n \t array('id' => '21564','state_id' => '1703','name' => 'Khormuj'),\n \t array('id' => '21565','state_id' => '1703','name' => 'Kongan'),\n \t array('id' => '21566','state_id' => '1703','name' => 'Tangestan'),\n \t array('id' => '21567','state_id' => '1705','name' => 'Ardistan'),\n \t array('id' => '21568','state_id' => '1705','name' => 'Dorchehpiyaz'),\n \t array('id' => '21569','state_id' => '1705','name' => 'Dowlatabad'),\n \t array('id' => '21570','state_id' => '1705','name' => 'Esfahan'),\n \t array('id' => '21571','state_id' => '1705','name' => 'Falavarjan'),\n \t array('id' => '21572','state_id' => '1705','name' => 'Faridan'),\n \t array('id' => '21573','state_id' => '1705','name' => 'Fereydunshahr'),\n \t array('id' => '21574','state_id' => '1705','name' => 'Fuladshahr'),\n \t array('id' => '21575','state_id' => '1705','name' => 'Golara'),\n \t array('id' => '21576','state_id' => '1705','name' => 'Golpayegan'),\n \t array('id' => '21577','state_id' => '1705','name' => 'Kashan'),\n \t array('id' => '21578','state_id' => '1705','name' => 'Kelishad'),\n \t array('id' => '21579','state_id' => '1705','name' => 'Khomeynishahr'),\n \t array('id' => '21580','state_id' => '1705','name' => 'Khonsar'),\n \t array('id' => '21581','state_id' => '1705','name' => 'Khuresgan'),\n \t array('id' => '21582','state_id' => '1705','name' => 'Mobarakeh'),\n \t array('id' => '21583','state_id' => '1705','name' => 'Na\\'in'),\n \t array('id' => '21584','state_id' => '1705','name' => 'Najafabad'),\n \t array('id' => '21585','state_id' => '1705','name' => 'Natnaz'),\n \t array('id' => '21586','state_id' => '1705','name' => 'Qahdarijan'),\n \t array('id' => '21587','state_id' => '1705','name' => 'Rehnan'),\n \t array('id' => '21588','state_id' => '1705','name' => 'Semirom'),\n \t array('id' => '21589','state_id' => '1705','name' => 'Shahinshahr'),\n \t array('id' => '21590','state_id' => '1705','name' => 'Shahreza'),\n \t array('id' => '21591','state_id' => '1705','name' => 'Zarinshahr'),\n \t array('id' => '21592','state_id' => '1706','name' => 'Abadeh'),\n \t array('id' => '21593','state_id' => '1706','name' => 'Akbarabad'),\n \t array('id' => '21594','state_id' => '1706','name' => 'Darab'),\n \t array('id' => '21595','state_id' => '1706','name' => 'Eqlid'),\n \t array('id' => '21596','state_id' => '1706','name' => 'Estehban'),\n \t array('id' => '21597','state_id' => '1706','name' => 'Fasa'),\n \t array('id' => '21598','state_id' => '1706','name' => 'Firuzabad'),\n \t array('id' => '21599','state_id' => '1706','name' => 'Gerash'),\n \t array('id' => '21600','state_id' => '1706','name' => 'Jahrom'),\n \t array('id' => '21601','state_id' => '1706','name' => 'Kazerun'),\n \t array('id' => '21602','state_id' => '1706','name' => 'Lar'),\n \t array('id' => '21603','state_id' => '1706','name' => 'Marv Dasht'),\n \t array('id' => '21604','state_id' => '1706','name' => 'Neyriz'),\n \t array('id' => '21605','state_id' => '1706','name' => 'Nurabad'),\n \t array('id' => '21606','state_id' => '1706','name' => 'Qa\\'emiyeh'),\n \t array('id' => '21607','state_id' => '1706','name' => 'Sepidan'),\n \t array('id' => '21608','state_id' => '1706','name' => 'Shiraz'),\n \t array('id' => '21609','state_id' => '1707','name' => 'Astaneh-ye Ashrafiyeh'),\n \t array('id' => '21610','state_id' => '1707','name' => 'Astara'),\n \t array('id' => '21611','state_id' => '1707','name' => 'Bandar-e Anzali'),\n \t array('id' => '21612','state_id' => '1707','name' => 'Faman'),\n \t array('id' => '21613','state_id' => '1707','name' => 'Hashtpar'),\n \t array('id' => '21614','state_id' => '1707','name' => 'Lahijan'),\n \t array('id' => '21615','state_id' => '1707','name' => 'Langarud'),\n \t array('id' => '21616','state_id' => '1707','name' => 'Rasht'),\n \t array('id' => '21617','state_id' => '1707','name' => 'Rudbar'),\n \t array('id' => '21618','state_id' => '1707','name' => 'Rudsar'),\n \t array('id' => '21619','state_id' => '1707','name' => 'Sawma\\'eh Sara'),\n \t array('id' => '21620','state_id' => '1708','name' => 'Aq Qal\\'eh'),\n \t array('id' => '21621','state_id' => '1708','name' => 'Azad Shahr'),\n \t array('id' => '21622','state_id' => '1708','name' => 'Bandar-e Torkaman'),\n \t array('id' => '21623','state_id' => '1708','name' => 'Gonbad-e Qabus'),\n \t array('id' => '21624','state_id' => '1708','name' => 'Gorgan'),\n \t array('id' => '21625','state_id' => '1709','name' => 'Asadabad'),\n \t array('id' => '21626','state_id' => '1709','name' => 'Bahar'),\n \t array('id' => '21627','state_id' => '1709','name' => 'Hamadan'),\n \t array('id' => '21628','state_id' => '1709','name' => 'Malayer'),\n \t array('id' => '21629','state_id' => '1709','name' => 'Nahavand'),\n \t array('id' => '21630','state_id' => '1709','name' => 'Tuysarkan'),\n \t array('id' => '21631','state_id' => '1710','name' => 'Bandar Abbas'),\n \t array('id' => '21632','state_id' => '1710','name' => 'Bandar-e \\'Abbas'),\n \t array('id' => '21633','state_id' => '1710','name' => 'Bandar-e Lengeh'),\n \t array('id' => '21634','state_id' => '1710','name' => 'Gheshm'),\n \t array('id' => '21635','state_id' => '1710','name' => 'Jask'),\n \t array('id' => '21636','state_id' => '1710','name' => 'Kish'),\n \t array('id' => '21637','state_id' => '1710','name' => 'Kish Island'),\n \t array('id' => '21638','state_id' => '1710','name' => 'Minab'),\n \t array('id' => '21639','state_id' => '1711','name' => 'Abdanan'),\n \t array('id' => '21640','state_id' => '1711','name' => 'Darrehshahr'),\n \t array('id' => '21641','state_id' => '1711','name' => 'Dehloran'),\n \t array('id' => '21642','state_id' => '1711','name' => 'Ilam'),\n \t array('id' => '21643','state_id' => '1711','name' => 'Ivan'),\n \t array('id' => '21644','state_id' => '1711','name' => 'Mehran'),\n \t array('id' => '21645','state_id' => '1712','name' => 'Baft'),\n \t array('id' => '21646','state_id' => '1712','name' => 'Bam'),\n \t array('id' => '21647','state_id' => '1712','name' => 'Bardsir'),\n \t array('id' => '21648','state_id' => '1712','name' => 'Jiroft'),\n \t array('id' => '21649','state_id' => '1712','name' => 'Kahnuj'),\n \t array('id' => '21650','state_id' => '1712','name' => 'Kerman'),\n \t array('id' => '21651','state_id' => '1712','name' => 'Rafsanjan'),\n \t array('id' => '21652','state_id' => '1712','name' => 'Ravar'),\n \t array('id' => '21653','state_id' => '1712','name' => 'Shahr-e Babak'),\n \t array('id' => '21654','state_id' => '1712','name' => 'Sirjan'),\n \t array('id' => '21655','state_id' => '1712','name' => 'Zarand'),\n \t array('id' => '21656','state_id' => '1713','name' => 'Eslamabad'),\n \t array('id' => '21657','state_id' => '1713','name' => 'Gilan-e Garb'),\n \t array('id' => '21658','state_id' => '1713','name' => 'Harsin'),\n \t array('id' => '21659','state_id' => '1713','name' => 'Javanrud'),\n \t array('id' => '21660','state_id' => '1713','name' => 'Kangavar'),\n \t array('id' => '21661','state_id' => '1713','name' => 'Kermanshah'),\n \t array('id' => '21662','state_id' => '1713','name' => 'Paveh'),\n \t array('id' => '21663','state_id' => '1713','name' => 'Sahneh'),\n \t array('id' => '21664','state_id' => '1713','name' => 'Sar-e-Pol-e-Zohab'),\n \t array('id' => '21665','state_id' => '1713','name' => 'Sonqor'),\n \t array('id' => '21666','state_id' => '1714','name' => 'Birjand'),\n \t array('id' => '21667','state_id' => '1714','name' => 'Bojnurd'),\n \t array('id' => '21668','state_id' => '1714','name' => 'Chenaran'),\n \t array('id' => '21669','state_id' => '1714','name' => 'Darreh Gaz'),\n \t array('id' => '21670','state_id' => '1714','name' => 'Esfarayen'),\n \t array('id' => '21671','state_id' => '1714','name' => 'Fariman'),\n \t array('id' => '21672','state_id' => '1714','name' => 'Ferdus'),\n \t array('id' => '21673','state_id' => '1714','name' => 'Gha\\'nat'),\n \t array('id' => '21674','state_id' => '1714','name' => 'Gonabad'),\n \t array('id' => '21675','state_id' => '1714','name' => 'Kashmar'),\n \t array('id' => '21676','state_id' => '1714','name' => 'Mashad'),\n \t array('id' => '21677','state_id' => '1714','name' => 'Mashhad'),\n \t array('id' => '21678','state_id' => '1714','name' => 'Neyshabur'),\n \t array('id' => '21679','state_id' => '1714','name' => 'Qayen'),\n \t array('id' => '21680','state_id' => '1714','name' => 'Quchan'),\n \t array('id' => '21681','state_id' => '1714','name' => 'Sabzevar'),\n \t array('id' => '21682','state_id' => '1714','name' => 'Sarakhs'),\n \t array('id' => '21683','state_id' => '1714','name' => 'Shirvan'),\n \t array('id' => '21684','state_id' => '1714','name' => 'Tabas'),\n \t array('id' => '21685','state_id' => '1714','name' => 'Tayyebat'),\n \t array('id' => '21686','state_id' => '1714','name' => 'Torbat-e Heydariyeh'),\n \t array('id' => '21687','state_id' => '1714','name' => 'Torbat-e Jam'),\n \t array('id' => '21688','state_id' => '1715','name' => 'Abadan'),\n \t array('id' => '21689','state_id' => '1715','name' => 'Agha Jari'),\n \t array('id' => '21690','state_id' => '1715','name' => 'Ahvaz'),\n \t array('id' => '21691','state_id' => '1715','name' => 'Ahwaz'),\n \t array('id' => '21692','state_id' => '1715','name' => 'Andimeshk'),\n \t array('id' => '21693','state_id' => '1715','name' => 'Bandar-e Emam Khomeyni'),\n \t array('id' => '21694','state_id' => '1715','name' => 'Bandar-e Mahshahr'),\n \t array('id' => '21695','state_id' => '1715','name' => 'Behbahan'),\n \t array('id' => '21696','state_id' => '1715','name' => 'Dezful'),\n \t array('id' => '21697','state_id' => '1715','name' => 'Ezeh'),\n \t array('id' => '21698','state_id' => '1715','name' => 'Hendijan'),\n \t array('id' => '21699','state_id' => '1715','name' => 'Khorramshahr'),\n \t array('id' => '21700','state_id' => '1715','name' => 'Masjed-e Soleyman'),\n \t array('id' => '21701','state_id' => '1715','name' => 'Omidiyeh'),\n \t array('id' => '21702','state_id' => '1715','name' => 'Ramhormoz'),\n \t array('id' => '21703','state_id' => '1715','name' => 'Ramshir'),\n \t array('id' => '21704','state_id' => '1715','name' => 'Shadegan'),\n \t array('id' => '21705','state_id' => '1715','name' => 'Shush'),\n \t array('id' => '21706','state_id' => '1715','name' => 'Shushtar'),\n \t array('id' => '21707','state_id' => '1715','name' => 'Susangerd'),\n \t array('id' => '21708','state_id' => '1717','name' => 'Baneh'),\n \t array('id' => '21709','state_id' => '1717','name' => 'Bijar'),\n \t array('id' => '21710','state_id' => '1717','name' => 'Kamyaran'),\n \t array('id' => '21711','state_id' => '1717','name' => 'Marivan'),\n \t array('id' => '21712','state_id' => '1717','name' => 'Qorveh'),\n \t array('id' => '21713','state_id' => '1717','name' => 'Sanandaj'),\n \t array('id' => '21714','state_id' => '1717','name' => 'Saqqez'),\n \t array('id' => '21715','state_id' => '1718','name' => 'Alashtar'),\n \t array('id' => '21716','state_id' => '1718','name' => 'Aligudarz'),\n \t array('id' => '21717','state_id' => '1718','name' => 'Azna'),\n \t array('id' => '21718','state_id' => '1718','name' => 'Borujerd'),\n \t array('id' => '21719','state_id' => '1718','name' => 'Do Rud'),\n \t array('id' => '21720','state_id' => '1718','name' => 'Khorramabad'),\n \t array('id' => '21721','state_id' => '1718','name' => 'Kuhdasht'),\n \t array('id' => '21722','state_id' => '1718','name' => 'Nurabad'),\n \t array('id' => '21723','state_id' => '1719','name' => 'Arak'),\n \t array('id' => '21724','state_id' => '1719','name' => 'Ashtian'),\n \t array('id' => '21725','state_id' => '1719','name' => 'Delijan'),\n \t array('id' => '21726','state_id' => '1719','name' => 'Khomeyn'),\n \t array('id' => '21727','state_id' => '1719','name' => 'Mahallat'),\n \t array('id' => '21728','state_id' => '1719','name' => 'Sarband'),\n \t array('id' => '21729','state_id' => '1719','name' => 'Saveh'),\n \t array('id' => '21730','state_id' => '1719','name' => 'Tafresh'),\n \t array('id' => '21731','state_id' => '1720','name' => 'Aliabad'),\n \t array('id' => '21732','state_id' => '1720','name' => 'Amir Kala'),\n \t array('id' => '21733','state_id' => '1720','name' => 'Amol'),\n \t array('id' => '21734','state_id' => '1720','name' => 'Babol'),\n \t array('id' => '21735','state_id' => '1720','name' => 'Babol Sar'),\n \t array('id' => '21736','state_id' => '1720','name' => 'Behshahr'),\n \t array('id' => '21737','state_id' => '1720','name' => 'Chalus'),\n \t array('id' => '21738','state_id' => '1720','name' => 'Fereydunkenar'),\n \t array('id' => '21739','state_id' => '1720','name' => 'Juybar'),\n \t array('id' => '21740','state_id' => '1720','name' => 'Kalaleh'),\n \t array('id' => '21741','state_id' => '1720','name' => 'Kordkuy'),\n \t array('id' => '21742','state_id' => '1720','name' => 'Mahmudabad'),\n \t array('id' => '21743','state_id' => '1720','name' => 'Minudasht'),\n \t array('id' => '21744','state_id' => '1720','name' => 'Neka'),\n \t array('id' => '21745','state_id' => '1720','name' => 'Nur'),\n \t array('id' => '21746','state_id' => '1720','name' => 'Nushahr'),\n \t array('id' => '21747','state_id' => '1720','name' => 'Qa\\'emshahr'),\n \t array('id' => '21748','state_id' => '1720','name' => 'Ramsar'),\n \t array('id' => '21749','state_id' => '1720','name' => 'Sari'),\n \t array('id' => '21750','state_id' => '1720','name' => 'Savadkuh'),\n \t array('id' => '21751','state_id' => '1720','name' => 'Tonekabon'),\n \t array('id' => '21752','state_id' => '1722','name' => 'Abhar'),\n \t array('id' => '21753','state_id' => '1722','name' => 'Abyek'),\n \t array('id' => '21754','state_id' => '1722','name' => 'Qazvin'),\n \t array('id' => '21755','state_id' => '1722','name' => 'Takestan'),\n \t array('id' => '21756','state_id' => '1723','name' => 'Qom'),\n \t array('id' => '21757','state_id' => '1724','name' => 'Damghan'),\n \t array('id' => '21758','state_id' => '1724','name' => 'Garmsar'),\n \t array('id' => '21759','state_id' => '1724','name' => 'Semnan'),\n \t array('id' => '21760','state_id' => '1724','name' => 'Shahrud'),\n \t array('id' => '21761','state_id' => '1726','name' => 'Damavand'),\n \t array('id' => '21762','state_id' => '1726','name' => 'Eqbaliyeh'),\n \t array('id' => '21763','state_id' => '1726','name' => 'Eslamshahr'),\n \t array('id' => '21764','state_id' => '1726','name' => 'Hashtgerd'),\n \t array('id' => '21765','state_id' => '1726','name' => 'Karaj'),\n \t array('id' => '21766','state_id' => '1726','name' => 'Mahdasht'),\n \t array('id' => '21767','state_id' => '1726','name' => 'Malard'),\n \t array('id' => '21768','state_id' => '1726','name' => 'Mohammadiyeh'),\n \t array('id' => '21769','state_id' => '1726','name' => 'Nazarabad'),\n \t array('id' => '21770','state_id' => '1726','name' => 'Pakdasht'),\n \t array('id' => '21771','state_id' => '1726','name' => 'Pishva'),\n \t array('id' => '21772','state_id' => '1726','name' => 'Qarchak'),\n \t array('id' => '21773','state_id' => '1726','name' => 'Qods'),\n \t array('id' => '21774','state_id' => '1726','name' => 'Robat Karim'),\n \t array('id' => '21775','state_id' => '1726','name' => 'Shahriyar'),\n \t array('id' => '21776','state_id' => '1726','name' => 'Tehran'),\n \t array('id' => '21777','state_id' => '1726','name' => 'Varamin'),\n \t array('id' => '21778','state_id' => '1727','name' => 'Ardakan'),\n \t array('id' => '21779','state_id' => '1727','name' => 'Bafq'),\n \t array('id' => '21780','state_id' => '1727','name' => 'Mehriz'),\n \t array('id' => '21781','state_id' => '1727','name' => 'Meybod'),\n \t array('id' => '21782','state_id' => '1727','name' => 'Taft'),\n \t array('id' => '21783','state_id' => '1727','name' => 'Yazd'),\n \t array('id' => '21784','state_id' => '1728','name' => 'Alvand'),\n \t array('id' => '21785','state_id' => '1728','name' => 'Khorramdarreh'),\n \t array('id' => '21786','state_id' => '1728','name' => 'Zanjan'),\n \t array('id' => '21787','state_id' => '1729','name' => 'Jurf-as-Sakhr'),\n \t array('id' => '21788','state_id' => '1729','name' => 'Saddat-al-Hindiyah'),\n \t array('id' => '21789','state_id' => '1729','name' => 'al-Hillah'),\n \t array('id' => '21790','state_id' => '1729','name' => 'al-Madhatiyah'),\n \t array('id' => '21791','state_id' => '1729','name' => 'al-Musayyib'),\n \t array('id' => '21792','state_id' => '1729','name' => 'al-Qasim'),\n \t array('id' => '21793','state_id' => '1730','name' => 'Baghdad'),\n \t array('id' => '21794','state_id' => '1731','name' => 'Dahuk'),\n \t array('id' => '21795','state_id' => '1731','name' => 'Zakhu'),\n \t array('id' => '21796','state_id' => '1733','name' => 'Ba\\'qubah'),\n \t array('id' => '21797','state_id' => '1733','name' => 'Hanaqin'),\n \t array('id' => '21798','state_id' => '1733','name' => 'Jalula\\'\\''),\n \t array('id' => '21799','state_id' => '1733','name' => 'Kifri'),\n \t array('id' => '21800','state_id' => '1733','name' => 'Mandali'),\n \t array('id' => '21801','state_id' => '1733','name' => 'al-Fuhud'),\n \t array('id' => '21802','state_id' => '1733','name' => 'al-Khalis'),\n \t array('id' => '21803','state_id' => '1733','name' => 'al-Miqdadiyah'),\n \t array('id' => '21804','state_id' => '1733','name' => 'ash-Shatrah'),\n \t array('id' => '21805','state_id' => '1734','name' => 'Ankawa'),\n \t array('id' => '21806','state_id' => '1735','name' => 'Chaqalawa'),\n \t array('id' => '21807','state_id' => '1735','name' => 'Irbil'),\n \t array('id' => '21808','state_id' => '1735','name' => 'Rawanduz'),\n \t array('id' => '21809','state_id' => '1736','name' => 'Karbala'),\n \t array('id' => '21810','state_id' => '1736','name' => 'al-Hindiyah'),\n \t array('id' => '21811','state_id' => '1737','name' => 'Erbil'),\n \t array('id' => '21812','state_id' => '1738','name' => '\\'Ali al Gharbi'),\n \t array('id' => '21813','state_id' => '1738','name' => 'al-\\'Amarah'),\n \t array('id' => '21814','state_id' => '1738','name' => 'al-Majarr-al-Kabir'),\n \t array('id' => '21815','state_id' => '1739','name' => 'Qarah Qush'),\n \t array('id' => '21816','state_id' => '1739','name' => 'Sinjar'),\n \t array('id' => '21817','state_id' => '1739','name' => 'Tall \\'Afar'),\n \t array('id' => '21818','state_id' => '1739','name' => 'Tall Kayf'),\n \t array('id' => '21819','state_id' => '1739','name' => 'al-Mawsil'),\n \t array('id' => '21820','state_id' => '1739','name' => 'ash-Shaykhan'),\n \t array('id' => '21821','state_id' => '1740','name' => 'Balad'),\n \t array('id' => '21822','state_id' => '1740','name' => 'Bayji'),\n \t array('id' => '21823','state_id' => '1740','name' => 'Dhalu\\'iyah'),\n \t array('id' => '21824','state_id' => '1740','name' => 'Samarra'),\n \t array('id' => '21825','state_id' => '1740','name' => 'Tikrit'),\n \t array('id' => '21826','state_id' => '1740','name' => 'Tuz'),\n \t array('id' => '21827','state_id' => '1740','name' => 'ad-Dujayl'),\n \t array('id' => '21828','state_id' => '1741','name' => 'al-\\'Aziziyah'),\n \t array('id' => '21829','state_id' => '1741','name' => 'al-Hayy'),\n \t array('id' => '21830','state_id' => '1741','name' => 'al-Kut'),\n \t array('id' => '21831','state_id' => '1741','name' => 'an-Nu\\'maniyah'),\n \t array('id' => '21832','state_id' => '1741','name' => 'as-Suwayrah'),\n \t array('id' => '21833','state_id' => '1742','name' => '\\'Anah'),\n \t array('id' => '21834','state_id' => '1742','name' => 'Hit'),\n \t array('id' => '21835','state_id' => '1742','name' => 'Rawah'),\n \t array('id' => '21836','state_id' => '1742','name' => 'al-Fallujah'),\n \t array('id' => '21837','state_id' => '1742','name' => 'al-Habbaniyah'),\n \t array('id' => '21838','state_id' => '1742','name' => 'al-Hadithah'),\n \t array('id' => '21839','state_id' => '1742','name' => 'ar-Ramadi'),\n \t array('id' => '21840','state_id' => '1742','name' => 'ar-Rutbah'),\n \t array('id' => '21841','state_id' => '1743','name' => 'Abu al-Khasib'),\n \t array('id' => '21842','state_id' => '1743','name' => 'Harithah'),\n \t array('id' => '21843','state_id' => '1743','name' => 'Shatt-al-\\'Arab'),\n \t array('id' => '21844','state_id' => '1743','name' => 'al-Basrah'),\n \t array('id' => '21845','state_id' => '1743','name' => 'al-Faw'),\n \t array('id' => '21846','state_id' => '1743','name' => 'al-Qurnah'),\n \t array('id' => '21847','state_id' => '1743','name' => 'az-Zubayr'),\n \t array('id' => '21848','state_id' => '1744','name' => 'ar-Rumaythah'),\n \t array('id' => '21849','state_id' => '1744','name' => 'as-Samawah'),\n \t array('id' => '21850','state_id' => '1745','name' => '\\'Afak'),\n \t array('id' => '21851','state_id' => '1745','name' => 'ad-Diwaniyah'),\n \t array('id' => '21852','state_id' => '1745','name' => 'al-Ghammas'),\n \t array('id' => '21853','state_id' => '1745','name' => 'al-Hamzah'),\n \t array('id' => '21854','state_id' => '1745','name' => 'ash-Shamiyah'),\n \t array('id' => '21855','state_id' => '1745','name' => 'ash-Shinafiyah'),\n \t array('id' => '21856','state_id' => '1746','name' => 'al-Kufah'),\n \t array('id' => '21857','state_id' => '1746','name' => 'al-Mishkhab'),\n \t array('id' => '21858','state_id' => '1746','name' => 'an-Najaf'),\n \t array('id' => '21859','state_id' => '1747','name' => 'Chamchamal'),\n \t array('id' => '21860','state_id' => '1747','name' => 'Halabjah'),\n \t array('id' => '21861','state_id' => '1747','name' => 'Kusanjaq'),\n \t array('id' => '21862','state_id' => '1747','name' => 'Panjwin'),\n \t array('id' => '21863','state_id' => '1747','name' => 'Qal\\'at Dizeh'),\n \t array('id' => '21864','state_id' => '1747','name' => 'as-Sulaymaniyah'),\n \t array('id' => '21865','state_id' => '1748','name' => '\\'Aqrah'),\n \t array('id' => '21866','state_id' => '1748','name' => 'Kirkuk'),\n \t array('id' => '21867','state_id' => '1749','name' => 'Moira'),\n \t array('id' => '21868','state_id' => '1750','name' => 'Bagenalstown'),\n \t array('id' => '21869','state_id' => '1750','name' => 'Carlow'),\n \t array('id' => '21870','state_id' => '1750','name' => 'Tullow'),\n \t array('id' => '21871','state_id' => '1751','name' => 'Bailieborough'),\n \t array('id' => '21872','state_id' => '1751','name' => 'Belturbet'),\n \t array('id' => '21873','state_id' => '1751','name' => 'Cavan'),\n \t array('id' => '21874','state_id' => '1751','name' => 'Coothill'),\n \t array('id' => '21875','state_id' => '1752','name' => 'Ennis'),\n \t array('id' => '21876','state_id' => '1752','name' => 'Kilkee'),\n \t array('id' => '21877','state_id' => '1752','name' => 'Kilrush'),\n \t array('id' => '21878','state_id' => '1752','name' => 'Newmarket-on-Fergus'),\n \t array('id' => '21879','state_id' => '1752','name' => 'Shannon'),\n \t array('id' => '21880','state_id' => '1753','name' => 'Bandon'),\n \t array('id' => '21881','state_id' => '1753','name' => 'Bantry'),\n \t array('id' => '21882','state_id' => '1753','name' => 'Blarney'),\n \t array('id' => '21883','state_id' => '1753','name' => 'Carrigaline'),\n \t array('id' => '21884','state_id' => '1753','name' => 'Charleville'),\n \t array('id' => '21885','state_id' => '1753','name' => 'Clonakilty'),\n \t array('id' => '21886','state_id' => '1753','name' => 'Cobh'),\n \t array('id' => '21887','state_id' => '1753','name' => 'Cork'),\n \t array('id' => '21888','state_id' => '1753','name' => 'Drishane'),\n \t array('id' => '21889','state_id' => '1753','name' => 'Dunmanway'),\n \t array('id' => '21890','state_id' => '1753','name' => 'Fermoy'),\n \t array('id' => '21891','state_id' => '1753','name' => 'Kanturk'),\n \t array('id' => '21892','state_id' => '1753','name' => 'Kinsale'),\n \t array('id' => '21893','state_id' => '1753','name' => 'Macroom'),\n \t array('id' => '21894','state_id' => '1753','name' => 'Mallow'),\n \t array('id' => '21895','state_id' => '1753','name' => 'Midleton'),\n \t array('id' => '21896','state_id' => '1753','name' => 'Millstreet'),\n \t array('id' => '21897','state_id' => '1753','name' => 'Mitchelstown'),\n \t array('id' => '21898','state_id' => '1753','name' => 'Passage West'),\n \t array('id' => '21899','state_id' => '1753','name' => 'Skibbereen'),\n \t array('id' => '21900','state_id' => '1753','name' => 'Youghal'),\n \t array('id' => '21901','state_id' => '1754','name' => 'Ballybofey'),\n \t array('id' => '21902','state_id' => '1754','name' => 'Ballyshannon'),\n \t array('id' => '21903','state_id' => '1754','name' => 'Buncrana'),\n \t array('id' => '21904','state_id' => '1754','name' => 'Bundoran'),\n \t array('id' => '21905','state_id' => '1754','name' => 'Carndonagh'),\n \t array('id' => '21906','state_id' => '1754','name' => 'Donegal'),\n \t array('id' => '21907','state_id' => '1754','name' => 'Killybegs'),\n \t array('id' => '21908','state_id' => '1754','name' => 'Letterkenny'),\n \t array('id' => '21909','state_id' => '1754','name' => 'Lifford'),\n \t array('id' => '21910','state_id' => '1754','name' => 'Moville'),\n \t array('id' => '21911','state_id' => '1755','name' => 'Balbriggan'),\n \t array('id' => '21912','state_id' => '1755','name' => 'Ballsbridge'),\n \t array('id' => '21913','state_id' => '1755','name' => 'Dublin'),\n \t array('id' => '21914','state_id' => '1755','name' => 'Leixlip'),\n \t array('id' => '21915','state_id' => '1755','name' => 'Lucan'),\n \t array('id' => '21916','state_id' => '1755','name' => 'Malahide'),\n \t array('id' => '21917','state_id' => '1755','name' => 'Portrane'),\n \t array('id' => '21918','state_id' => '1755','name' => 'Rathcoole'),\n \t array('id' => '21919','state_id' => '1755','name' => 'Rush'),\n \t array('id' => '21920','state_id' => '1755','name' => 'Skerries'),\n \t array('id' => '21921','state_id' => '1755','name' => 'Swords'),\n \t array('id' => '21922','state_id' => '1756','name' => 'Athenry'),\n \t array('id' => '21923','state_id' => '1756','name' => 'Ballinasloe'),\n \t array('id' => '21924','state_id' => '1756','name' => 'Clifden'),\n \t array('id' => '21925','state_id' => '1756','name' => 'Galway'),\n \t array('id' => '21926','state_id' => '1756','name' => 'Gort'),\n \t array('id' => '21927','state_id' => '1756','name' => 'Loughrea'),\n \t array('id' => '21928','state_id' => '1756','name' => 'Tuam'),\n \t array('id' => '21929','state_id' => '1757','name' => 'Ballybunion'),\n \t array('id' => '21930','state_id' => '1757','name' => 'Cahirciveen'),\n \t array('id' => '21931','state_id' => '1757','name' => 'Castleisland'),\n \t array('id' => '21932','state_id' => '1757','name' => 'Dingle'),\n \t array('id' => '21933','state_id' => '1757','name' => 'Kenmare'),\n \t array('id' => '21934','state_id' => '1757','name' => 'Killarney'),\n \t array('id' => '21935','state_id' => '1757','name' => 'Killorglin'),\n \t array('id' => '21936','state_id' => '1757','name' => 'Listowel'),\n \t array('id' => '21937','state_id' => '1757','name' => 'Tralee'),\n \t array('id' => '21938','state_id' => '1758','name' => 'Athy'),\n \t array('id' => '21939','state_id' => '1758','name' => 'Celbridge'),\n \t array('id' => '21940','state_id' => '1758','name' => 'Clane'),\n \t array('id' => '21941','state_id' => '1758','name' => 'Kilcock'),\n \t array('id' => '21942','state_id' => '1758','name' => 'Kilcullen'),\n \t array('id' => '21943','state_id' => '1758','name' => 'Kildare'),\n \t array('id' => '21944','state_id' => '1758','name' => 'Maynooth'),\n \t array('id' => '21945','state_id' => '1758','name' => 'Monasterevan'),\n \t array('id' => '21946','state_id' => '1758','name' => 'Naas'),\n \t array('id' => '21947','state_id' => '1758','name' => 'Newbridge'),\n \t array('id' => '21948','state_id' => '1759','name' => 'Callan'),\n \t array('id' => '21949','state_id' => '1759','name' => 'Castlecomer'),\n \t array('id' => '21950','state_id' => '1759','name' => 'Kilkenny'),\n \t array('id' => '21951','state_id' => '1759','name' => 'Thomastown'),\n \t array('id' => '21952','state_id' => '1760','name' => 'Abbeyleix'),\n \t array('id' => '21953','state_id' => '1760','name' => 'Mountmellick'),\n \t array('id' => '21954','state_id' => '1760','name' => 'Mountrath'),\n \t array('id' => '21955','state_id' => '1760','name' => 'Port Laoise'),\n \t array('id' => '21956','state_id' => '1760','name' => 'Portarlington'),\n \t array('id' => '21957','state_id' => '1761','name' => 'Meath'),\n \t array('id' => '21958','state_id' => '1762','name' => 'Carrick-on-Shannon'),\n \t array('id' => '21959','state_id' => '1763','name' => 'Abbeyfeale'),\n \t array('id' => '21960','state_id' => '1763','name' => 'Kilmallock'),\n \t array('id' => '21961','state_id' => '1763','name' => 'Limerick'),\n \t array('id' => '21962','state_id' => '1763','name' => 'Newcastle'),\n \t array('id' => '21963','state_id' => '1763','name' => 'Rathkeale'),\n \t array('id' => '21964','state_id' => '1765','name' => 'Granard'),\n \t array('id' => '21965','state_id' => '1765','name' => 'Longford'),\n \t array('id' => '21966','state_id' => '1765','name' => 'Moate'),\n \t array('id' => '21967','state_id' => '1766','name' => 'Ardee'),\n \t array('id' => '21968','state_id' => '1766','name' => 'Drogheda'),\n \t array('id' => '21969','state_id' => '1766','name' => 'Drumcar'),\n \t array('id' => '21970','state_id' => '1766','name' => 'Dundalk'),\n \t array('id' => '21971','state_id' => '1767','name' => 'Ballina'),\n \t array('id' => '21972','state_id' => '1767','name' => 'Ballinrobe'),\n \t array('id' => '21973','state_id' => '1767','name' => 'Ballyhaunis'),\n \t array('id' => '21974','state_id' => '1767','name' => 'Castlebar'),\n \t array('id' => '21975','state_id' => '1767','name' => 'Claremorris'),\n \t array('id' => '21976','state_id' => '1767','name' => 'Swinford'),\n \t array('id' => '21977','state_id' => '1767','name' => 'Westport'),\n \t array('id' => '21978','state_id' => '1768','name' => 'Ashbourne'),\n \t array('id' => '21979','state_id' => '1768','name' => 'Duleek'),\n \t array('id' => '21980','state_id' => '1768','name' => 'Dunboyne'),\n \t array('id' => '21981','state_id' => '1768','name' => 'Dunshaughlin'),\n \t array('id' => '21982','state_id' => '1768','name' => 'Kells'),\n \t array('id' => '21983','state_id' => '1768','name' => 'Laytown'),\n \t array('id' => '21984','state_id' => '1768','name' => 'Navan'),\n \t array('id' => '21985','state_id' => '1768','name' => 'Trim'),\n \t array('id' => '21986','state_id' => '1769','name' => 'Carrickmacross'),\n \t array('id' => '21987','state_id' => '1769','name' => 'Castleblayney'),\n \t array('id' => '21988','state_id' => '1769','name' => 'Clones'),\n \t array('id' => '21989','state_id' => '1769','name' => 'Monaghan'),\n \t array('id' => '21990','state_id' => '1770','name' => 'Banagher'),\n \t array('id' => '21991','state_id' => '1770','name' => 'Birr'),\n \t array('id' => '21992','state_id' => '1770','name' => 'Clara'),\n \t array('id' => '21993','state_id' => '1770','name' => 'Edenderry'),\n \t array('id' => '21994','state_id' => '1770','name' => 'Kilcormac'),\n \t array('id' => '21995','state_id' => '1770','name' => 'Tullamore'),\n \t array('id' => '21996','state_id' => '1771','name' => 'Ballaghaderreen'),\n \t array('id' => '21997','state_id' => '1771','name' => 'Boyle'),\n \t array('id' => '21998','state_id' => '1771','name' => 'Castlerea'),\n \t array('id' => '21999','state_id' => '1771','name' => 'Roscommon'),\n \t array('id' => '22000','state_id' => '1772','name' => 'Sligo'),\n \t array('id' => '22001','state_id' => '1775','name' => 'Co Tyrone'),\n \t array('id' => '22002','state_id' => '1775','name' => 'Downpatrick'),\n \t array('id' => '22003','state_id' => '1776','name' => 'Dungarvan'),\n \t array('id' => '22004','state_id' => '1776','name' => 'Tramore'),\n \t array('id' => '22005','state_id' => '1776','name' => 'Waterford'),\n \t array('id' => '22006','state_id' => '1777','name' => 'Athlone'),\n \t array('id' => '22007','state_id' => '1777','name' => 'Mullingar'),\n \t array('id' => '22008','state_id' => '1778','name' => 'Enniscorthy'),\n \t array('id' => '22009','state_id' => '1778','name' => 'Gorey'),\n \t array('id' => '22010','state_id' => '1778','name' => 'New Ross'),\n \t array('id' => '22011','state_id' => '1778','name' => 'Wexford'),\n \t array('id' => '22012','state_id' => '1779','name' => 'Arklow'),\n \t array('id' => '22013','state_id' => '1779','name' => 'Baltinglass'),\n \t array('id' => '22014','state_id' => '1779','name' => 'Blessington'),\n \t array('id' => '22015','state_id' => '1779','name' => 'Bray'),\n \t array('id' => '22016','state_id' => '1779','name' => 'Greystones'),\n \t array('id' => '22017','state_id' => '1779','name' => 'Kilcoole'),\n \t array('id' => '22018','state_id' => '1779','name' => 'Newtownmountkennedy'),\n \t array('id' => '22019','state_id' => '1779','name' => 'Rathdrum'),\n \t array('id' => '22020','state_id' => '1779','name' => 'Wicklow'),\n \t array('id' => '22021','state_id' => '1782','name' => 'Bethlehem'),\n \t array('id' => '22022','state_id' => '1783','name' => 'Caesarea'),\n \t array('id' => '22023','state_id' => '1784','name' => 'Petach Tikva'),\n \t array('id' => '22024','state_id' => '1784','name' => 'Ramallah'),\n \t array('id' => '22025','state_id' => '1785','name' => 'Gaza'),\n \t array('id' => '22026','state_id' => '1786','name' => '\\'Arad'),\n \t array('id' => '22027','state_id' => '1786','name' => '\\'Omer'),\n \t array('id' => '22028','state_id' => '1786','name' => 'Ashdod'),\n \t array('id' => '22029','state_id' => '1786','name' => 'Ashqelon'),\n \t array('id' => '22030','state_id' => '1786','name' => 'Be\\'er Sheva'),\n \t array('id' => '22031','state_id' => '1786','name' => 'Beersheba'),\n \t array('id' => '22032','state_id' => '1786','name' => 'Bene Ayish'),\n \t array('id' => '22033','state_id' => '1786','name' => 'Dimona'),\n \t array('id' => '22034','state_id' => '1786','name' => 'Elat'),\n \t array('id' => '22035','state_id' => '1786','name' => 'Gan Yavne'),\n \t array('id' => '22036','state_id' => '1786','name' => 'Nahal `Oz'),\n \t array('id' => '22037','state_id' => '1786','name' => 'Netivot'),\n \t array('id' => '22038','state_id' => '1786','name' => 'Ofaqim'),\n \t array('id' => '22039','state_id' => '1786','name' => 'Qiryat Gat'),\n \t array('id' => '22040','state_id' => '1786','name' => 'Qiryat Mal\\'akhi'),\n \t array('id' => '22041','state_id' => '1786','name' => 'Sederot'),\n \t array('id' => '22042','state_id' => '1786','name' => 'Yeroham'),\n \t array('id' => '22043','state_id' => '1786','name' => 'kiryat Malachi'),\n \t array('id' => '22044','state_id' => '1788','name' => 'Be\\'er Ya\\'aqov'),\n \t array('id' => '22045','state_id' => '1788','name' => 'Beit Shemesh'),\n \t array('id' => '22046','state_id' => '1788','name' => 'Bene Beraq'),\n \t array('id' => '22047','state_id' => '1788','name' => 'Bnei Brak'),\n \t array('id' => '22048','state_id' => '1788','name' => 'Even Yehuda'),\n \t array('id' => '22049','state_id' => '1788','name' => 'Fureidis'),\n \t array('id' => '22050','state_id' => '1788','name' => 'Gat Rimon'),\n \t array('id' => '22051','state_id' => '1788','name' => 'Gedera'),\n \t array('id' => '22052','state_id' => '1788','name' => 'Givat Shmuel'),\n \t array('id' => '22053','state_id' => '1788','name' => 'Hibat Zion'),\n \t array('id' => '22054','state_id' => '1788','name' => 'Hod HaSharon'),\n \t array('id' => '22055','state_id' => '1788','name' => 'Hogar'),\n \t array('id' => '22056','state_id' => '1788','name' => 'Jaljulye'),\n \t array('id' => '22057','state_id' => '1788','name' => 'Jatt'),\n \t array('id' => '22058','state_id' => '1788','name' => 'Kafar Qasem'),\n \t array('id' => '22059','state_id' => '1788','name' => 'Kefar Sava'),\n \t array('id' => '22060','state_id' => '1788','name' => 'Kefar Yona'),\n \t array('id' => '22061','state_id' => '1788','name' => 'Kfar Saba'),\n \t array('id' => '22062','state_id' => '1788','name' => 'Kiryag Bialik'),\n \t array('id' => '22063','state_id' => '1788','name' => 'Lod'),\n \t array('id' => '22064','state_id' => '1788','name' => 'Mazkeret Batya'),\n \t array('id' => '22065','state_id' => '1788','name' => 'Modi\\'in'),\n \t array('id' => '22066','state_id' => '1788','name' => 'Nes Ziyyona'),\n \t array('id' => '22067','state_id' => '1788','name' => 'Ness Ziona'),\n \t array('id' => '22068','state_id' => '1788','name' => 'Netanya'),\n \t array('id' => '22069','state_id' => '1788','name' => 'Nordiya'),\n \t array('id' => '22070','state_id' => '1788','name' => 'Pardesiyya'),\n \t array('id' => '22071','state_id' => '1788','name' => 'Petakh Tiqwa'),\n \t array('id' => '22072','state_id' => '1788','name' => 'Qadima'),\n \t array('id' => '22073','state_id' => '1788','name' => 'Qalansawe'),\n \t array('id' => '22074','state_id' => '1788','name' => 'Qiryat \\'Eqron'),\n \t array('id' => '22075','state_id' => '1788','name' => 'Ra\\'anana'),\n \t array('id' => '22076','state_id' => '1788','name' => 'Ramla'),\n \t array('id' => '22077','state_id' => '1788','name' => 'Rehovot'),\n \t array('id' => '22078','state_id' => '1788','name' => 'Rekhovot'),\n \t array('id' => '22079','state_id' => '1788','name' => 'Rinnatya'),\n \t array('id' => '22080','state_id' => '1788','name' => 'Rishon LeZiyyon'),\n \t array('id' => '22081','state_id' => '1788','name' => 'Rosh HaAyin'),\n \t array('id' => '22082','state_id' => '1788','name' => 'Shoham'),\n \t array('id' => '22083','state_id' => '1788','name' => 'Tayibe'),\n \t array('id' => '22084','state_id' => '1788','name' => 'Tire'),\n \t array('id' => '22085','state_id' => '1788','name' => 'Tsur Igal'),\n \t array('id' => '22086','state_id' => '1788','name' => 'Udim'),\n \t array('id' => '22087','state_id' => '1788','name' => 'Yavne'),\n \t array('id' => '22088','state_id' => '1788','name' => 'Yehud'),\n \t array('id' => '22089','state_id' => '1789','name' => '\\'Afula'),\n \t array('id' => '22090','state_id' => '1789','name' => '\\'Akko'),\n \t array('id' => '22091','state_id' => '1789','name' => '\\'Arrabe'),\n \t array('id' => '22092','state_id' => '1789','name' => '\\'Ein Mahel'),\n \t array('id' => '22093','state_id' => '1789','name' => '\\'Ilut'),\n \t array('id' => '22094','state_id' => '1789','name' => 'Abu Sinan'),\n \t array('id' => '22095','state_id' => '1789','name' => 'Basmat Tab\\'un'),\n \t array('id' => '22096','state_id' => '1789','name' => 'Beit Jann'),\n \t array('id' => '22097','state_id' => '1789','name' => 'Bet She\\'an'),\n \t array('id' => '22098','state_id' => '1789','name' => 'Bi\\'ne'),\n \t array('id' => '22099','state_id' => '1789','name' => 'Bir-al-Maksur'),\n \t array('id' => '22100','state_id' => '1789','name' => 'Bu\\'eine-Nujeidat'),\n \t array('id' => '22101','state_id' => '1789','name' => 'Dabburye'),\n \t array('id' => '22102','state_id' => '1789','name' => 'Dayr Hannah'),\n \t array('id' => '22103','state_id' => '1789','name' => 'Dayr-al-Asad'),\n \t array('id' => '22104','state_id' => '1789','name' => 'Hazor HaGelilit'),\n \t array('id' => '22105','state_id' => '1789','name' => 'I\\'billin'),\n \t array('id' => '22106','state_id' => '1789','name' => 'Iksal'),\n \t array('id' => '22107','state_id' => '1789','name' => 'Judeide-Maker'),\n \t array('id' => '22108','state_id' => '1789','name' => 'Kabul'),\n \t array('id' => '22109','state_id' => '1789','name' => 'Kafar Kanna'),\n \t array('id' => '22110','state_id' => '1789','name' => 'Kafar Manda'),\n \t array('id' => '22111','state_id' => '1789','name' => 'Kafar Yasif'),\n \t array('id' => '22112','state_id' => '1789','name' => 'Karmiel'),\n \t array('id' => '22113','state_id' => '1789','name' => 'Kisra-Sumei'),\n \t array('id' => '22114','state_id' => '1789','name' => 'Ma\\'alot Tarshikha'),\n \t array('id' => '22115','state_id' => '1789','name' => 'Majd-al-Kurum'),\n \t array('id' => '22116','state_id' => '1789','name' => 'Migdal Ha\\'Emeq'),\n \t array('id' => '22117','state_id' => '1789','name' => 'Mugar'),\n \t array('id' => '22118','state_id' => '1789','name' => 'Nahariyya'),\n \t array('id' => '22119','state_id' => '1789','name' => 'Nahef'),\n \t array('id' => '22120','state_id' => '1789','name' => 'Nazerat'),\n \t array('id' => '22121','state_id' => '1789','name' => 'Nazerat \\'Illit'),\n \t array('id' => '22122','state_id' => '1789','name' => 'Qiryat Shemona'),\n \t array('id' => '22123','state_id' => '1789','name' => 'Qiryat Tiv\\'on'),\n \t array('id' => '22124','state_id' => '1789','name' => 'Rame'),\n \t array('id' => '22125','state_id' => '1789','name' => 'Reine'),\n \t array('id' => '22126','state_id' => '1789','name' => 'Sakhnin'),\n \t array('id' => '22127','state_id' => '1789','name' => 'Shefar\\'am'),\n \t array('id' => '22128','state_id' => '1789','name' => 'Tamra'),\n \t array('id' => '22129','state_id' => '1789','name' => 'Tiberias'),\n \t array('id' => '22130','state_id' => '1789','name' => 'Tur\\'an'),\n \t array('id' => '22131','state_id' => '1789','name' => 'Yirka'),\n \t array('id' => '22132','state_id' => '1789','name' => 'Yoqne\\'am Illit'),\n \t array('id' => '22133','state_id' => '1789','name' => 'Zefat'),\n \t array('id' => '22134','state_id' => '1789','name' => 'Zur Yigal'),\n \t array('id' => '22135','state_id' => '1790','name' => 'Hebron'),\n \t array('id' => '22136','state_id' => '1791','name' => 'Sgula'),\n \t array('id' => '22137','state_id' => '1792','name' => 'Jerusalem'),\n \t array('id' => '22138','state_id' => '1793','name' => '\\'Ar\\'ara'),\n \t array('id' => '22139','state_id' => '1793','name' => '\\'Isifya'),\n \t array('id' => '22140','state_id' => '1793','name' => 'Baqa al-Gharbiyyah'),\n \t array('id' => '22141','state_id' => '1793','name' => 'Binyamina'),\n \t array('id' => '22142','state_id' => '1793','name' => 'Daliyat-al-Karmil'),\n \t array('id' => '22143','state_id' => '1793','name' => 'Jizr-az-Zarqa'),\n \t array('id' => '22144','state_id' => '1793','name' => 'Khadera'),\n \t array('id' => '22145','state_id' => '1793','name' => 'Khefa'),\n \t array('id' => '22146','state_id' => '1793','name' => 'Nesher'),\n \t array('id' => '22147','state_id' => '1793','name' => 'Or \\'Aqiva'),\n \t array('id' => '22148','state_id' => '1793','name' => 'Pardes Khanna-Karkur'),\n \t array('id' => '22149','state_id' => '1793','name' => 'Qiryat Atta'),\n \t array('id' => '22150','state_id' => '1793','name' => 'Qiryat Bialik'),\n \t array('id' => '22151','state_id' => '1793','name' => 'Qiryat Motzkin'),\n \t array('id' => '22152','state_id' => '1793','name' => 'Qiryat Yam'),\n \t array('id' => '22153','state_id' => '1793','name' => 'Rekhasim'),\n \t array('id' => '22154','state_id' => '1793','name' => 'Tirat Karmel'),\n \t array('id' => '22155','state_id' => '1793','name' => 'Umm-al-Fahm'),\n \t array('id' => '22156','state_id' => '1793','name' => 'Zikhron Ya\\'aqov'),\n \t array('id' => '22157','state_id' => '1796','name' => 'Qalqilya'),\n \t array('id' => '22158','state_id' => '1799','name' => 'Hadera'),\n \t array('id' => '22159','state_id' => '1799','name' => 'Kiryag Bialik'),\n \t array('id' => '22160','state_id' => '1801','name' => 'Bet Shemesh'),\n \t array('id' => '22161','state_id' => '1801','name' => 'Mevasserat Ziyyon'),\n \t array('id' => '22162','state_id' => '1801','name' => 'Yerushalayim'),\n \t array('id' => '22163','state_id' => '1802','name' => 'Meta'),\n \t array('id' => '22164','state_id' => '1802','name' => 'Miano'),\n \t array('id' => '22165','state_id' => '1803','name' => 'Alba Adriatica'),\n \t array('id' => '22166','state_id' => '1803','name' => 'Atessa'),\n \t array('id' => '22167','state_id' => '1803','name' => 'Atri'),\n \t array('id' => '22168','state_id' => '1803','name' => 'Avezzano'),\n \t array('id' => '22169','state_id' => '1803','name' => 'Celano'),\n \t array('id' => '22170','state_id' => '1803','name' => 'Cepagatti'),\n \t array('id' => '22171','state_id' => '1803','name' => 'Chieti'),\n \t array('id' => '22172','state_id' => '1803','name' => 'Citta Sant\\'Angelo'),\n \t array('id' => '22173','state_id' => '1803','name' => 'Francavilla al Mare'),\n \t array('id' => '22174','state_id' => '1803','name' => 'Giulianova'),\n \t array('id' => '22175','state_id' => '1803','name' => 'Guardiagrele'),\n \t array('id' => '22176','state_id' => '1803','name' => 'L\\'Aquila'),\n \t array('id' => '22177','state_id' => '1803','name' => 'Lanciano'),\n \t array('id' => '22178','state_id' => '1803','name' => 'Martinsicuro'),\n \t array('id' => '22179','state_id' => '1803','name' => 'Montesilvano'),\n \t array('id' => '22180','state_id' => '1803','name' => 'Montorio al Vomano'),\n \t array('id' => '22181','state_id' => '1803','name' => 'Mosciano Sant\\'Angelo'),\n \t array('id' => '22182','state_id' => '1803','name' => 'Ortona'),\n \t array('id' => '22183','state_id' => '1803','name' => 'Penne'),\n \t array('id' => '22184','state_id' => '1803','name' => 'Pescara'),\n \t array('id' => '22185','state_id' => '1803','name' => 'Pineto'),\n \t array('id' => '22186','state_id' => '1803','name' => 'Roseto degli Abruzzi'),\n \t array('id' => '22187','state_id' => '1803','name' => 'San Giovanni Teatino'),\n \t array('id' => '22188','state_id' => '1803','name' => 'San Salvo'),\n \t array('id' => '22189','state_id' => '1803','name' => 'Sant\\'Egidio alla Vibrata'),\n \t array('id' => '22190','state_id' => '1803','name' => 'Silvi'),\n \t array('id' => '22191','state_id' => '1803','name' => 'Spoltore'),\n \t array('id' => '22192','state_id' => '1803','name' => 'Sulmona'),\n \t array('id' => '22193','state_id' => '1803','name' => 'Teramo'),\n \t array('id' => '22194','state_id' => '1803','name' => 'Vasto'),\n \t array('id' => '22195','state_id' => '1804','name' => 'Agrigento'),\n \t array('id' => '22196','state_id' => '1804','name' => 'Alessandria della Rocca'),\n \t array('id' => '22197','state_id' => '1804','name' => 'Aragona'),\n \t array('id' => '22198','state_id' => '1804','name' => 'Bivona'),\n \t array('id' => '22199','state_id' => '1804','name' => 'Burgio'),\n \t array('id' => '22200','state_id' => '1804','name' => 'Calamonaci'),\n \t array('id' => '22201','state_id' => '1804','name' => 'Caltabellotta'),\n \t array('id' => '22202','state_id' => '1804','name' => 'Camastra'),\n \t array('id' => '22203','state_id' => '1804','name' => 'Cammarata'),\n \t array('id' => '22204','state_id' => '1804','name' => 'Campobello di Licata'),\n \t array('id' => '22205','state_id' => '1804','name' => 'Canicattì'),\n \t array('id' => '22206','state_id' => '1804','name' => 'Casteltermini'),\n \t array('id' => '22207','state_id' => '1804','name' => 'Castrofilippo'),\n \t array('id' => '22208','state_id' => '1804','name' => 'Cattolica Eraclea'),\n \t array('id' => '22209','state_id' => '1804','name' => 'Cianciana'),\n \t array('id' => '22210','state_id' => '1804','name' => 'Comitini'),\n \t array('id' => '22211','state_id' => '1804','name' => 'Favara'),\n \t array('id' => '22212','state_id' => '1804','name' => 'Grotte'),\n \t array('id' => '22213','state_id' => '1804','name' => 'Joppolo Giancaxio'),\n \t array('id' => '22214','state_id' => '1804','name' => 'Lampedusa e Linosa'),\n \t array('id' => '22215','state_id' => '1804','name' => 'Licata'),\n \t array('id' => '22216','state_id' => '1804','name' => 'Lucca Sicula'),\n \t array('id' => '22217','state_id' => '1804','name' => 'Menfi'),\n \t array('id' => '22218','state_id' => '1804','name' => 'Montallegro'),\n \t array('id' => '22219','state_id' => '1804','name' => 'Montevago'),\n \t array('id' => '22220','state_id' => '1804','name' => 'Naro'),\n \t array('id' => '22221','state_id' => '1804','name' => 'Palma di Montechiaro'),\n \t array('id' => '22222','state_id' => '1804','name' => 'Porto Empedocle'),\n \t array('id' => '22223','state_id' => '1804','name' => 'Racalmuto'),\n \t array('id' => '22224','state_id' => '1804','name' => 'Raffadali'),\n \t array('id' => '22225','state_id' => '1804','name' => 'Ravanusa'),\n \t array('id' => '22226','state_id' => '1804','name' => 'Realmonte'),\n \t array('id' => '22227','state_id' => '1804','name' => 'Ribera'),\n \t array('id' => '22228','state_id' => '1804','name' => 'Sambuca di Sicilia'),\n \t array('id' => '22229','state_id' => '1804','name' => 'San Biagio Platani'),\n \t array('id' => '22230','state_id' => '1804','name' => 'San Giovanni Gemini'),\n \t array('id' => '22231','state_id' => '1804','name' => 'Sant Angelo Muxaro'),\n \t array('id' => '22232','state_id' => '1804','name' => 'Santa Elisabetta'),\n \t array('id' => '22233','state_id' => '1804','name' => 'Santa Margherita di Belice'),\n \t array('id' => '22234','state_id' => '1804','name' => 'Santo Stefano Quisquina'),\n \t array('id' => '22235','state_id' => '1804','name' => 'Sciacca'),\n \t array('id' => '22236','state_id' => '1804','name' => 'Siculiana'),\n \t array('id' => '22237','state_id' => '1804','name' => 'Villafranca Sicula'),\n \t array('id' => '22238','state_id' => '1805','name' => 'Castellazzo Bormida'),\n \t array('id' => '22239','state_id' => '1805','name' => 'Gavi'),\n \t array('id' => '22240','state_id' => '1805','name' => 'Villanova Monferrato'),\n \t array('id' => '22241','state_id' => '1806','name' => 'Camerano'),\n \t array('id' => '22242','state_id' => '1806','name' => 'Castelplanio'),\n \t array('id' => '22243','state_id' => '1807','name' => 'Capolona'),\n \t array('id' => '22244','state_id' => '1807','name' => 'Montevarchi'),\n \t array('id' => '22245','state_id' => '1807','name' => 'Subbiano'),\n \t array('id' => '22246','state_id' => '1809','name' => 'Buttigliera d\\'Asti'),\n \t array('id' => '22247','state_id' => '1810','name' => 'Flumeri'),\n \t array('id' => '22248','state_id' => '1810','name' => 'Nusco'),\n \t array('id' => '22249','state_id' => '1810','name' => 'Prata di Principato Ultra'),\n \t array('id' => '22250','state_id' => '1810','name' => 'Villanova del Battista'),\n \t array('id' => '22251','state_id' => '1812','name' => 'Avigliano'),\n \t array('id' => '22252','state_id' => '1812','name' => 'Bernalda'),\n \t array('id' => '22253','state_id' => '1812','name' => 'Ferrandina'),\n \t array('id' => '22254','state_id' => '1812','name' => 'Lauria'),\n \t array('id' => '22255','state_id' => '1812','name' => 'Lavello'),\n \t array('id' => '22256','state_id' => '1812','name' => 'Matera'),\n \t array('id' => '22257','state_id' => '1812','name' => 'Melfi'),\n \t array('id' => '22258','state_id' => '1812','name' => 'Montescaglioso'),\n \t array('id' => '22259','state_id' => '1812','name' => 'Pisticci'),\n \t array('id' => '22260','state_id' => '1812','name' => 'Policoro'),\n \t array('id' => '22261','state_id' => '1812','name' => 'Potenza'),\n \t array('id' => '22262','state_id' => '1812','name' => 'Rionero in Vulture'),\n \t array('id' => '22263','state_id' => '1812','name' => 'Venosa'),\n \t array('id' => '22264','state_id' => '1813','name' => 'Belluno'),\n \t array('id' => '22265','state_id' => '1813','name' => 'D\\'alpago'),\n \t array('id' => '22266','state_id' => '1813','name' => 'Longarone'),\n \t array('id' => '22267','state_id' => '1813','name' => 'Pedavena'),\n \t array('id' => '22268','state_id' => '1814','name' => 'San Bartolomeo'),\n \t array('id' => '22269','state_id' => '1815','name' => ''),\n \t array('id' => '22270','state_id' => '1815','name' => 'Bagnatica'),\n \t array('id' => '22271','state_id' => '1815','name' => 'Bergamo'),\n \t array('id' => '22272','state_id' => '1815','name' => 'Bolgare'),\n \t array('id' => '22273','state_id' => '1815','name' => 'Bottanuco'),\n \t array('id' => '22274','state_id' => '1815','name' => 'Brignano Gera d\\'Adda'),\n \t array('id' => '22275','state_id' => '1815','name' => 'Calcio'),\n \t array('id' => '22276','state_id' => '1815','name' => 'Caravaggio'),\n \t array('id' => '22277','state_id' => '1815','name' => 'Chiuduno'),\n \t array('id' => '22278','state_id' => '1815','name' => 'Ciserano'),\n \t array('id' => '22279','state_id' => '1815','name' => 'Comun Nuovo'),\n \t array('id' => '22280','state_id' => '1815','name' => 'Costa di Mezzate'),\n \t array('id' => '22281','state_id' => '1815','name' => 'Gandino'),\n \t array('id' => '22282','state_id' => '1815','name' => 'Grassobbio'),\n \t array('id' => '22283','state_id' => '1815','name' => 'Grumello Del Monte'),\n \t array('id' => '22284','state_id' => '1815','name' => 'Grumello del Monte'),\n \t array('id' => '22285','state_id' => '1815','name' => 'Lallio'),\n \t array('id' => '22286','state_id' => '1815','name' => 'Levate'),\n \t array('id' => '22287','state_id' => '1815','name' => 'Lurano'),\n \t array('id' => '22288','state_id' => '1815','name' => 'Mapello'),\n \t array('id' => '22289','state_id' => '1815','name' => 'Pagazzano'),\n \t array('id' => '22290','state_id' => '1815','name' => 'Ponteranica'),\n \t array('id' => '22291','state_id' => '1815','name' => 'Pontida'),\n \t array('id' => '22292','state_id' => '1815','name' => 'Sant Omobono Imagna'),\n \t array('id' => '22293','state_id' => '1815','name' => 'Torre Pallavicina'),\n \t array('id' => '22294','state_id' => '1815','name' => 'Trescore Balneario'),\n \t array('id' => '22295','state_id' => '1815','name' => 'Verdellino'),\n \t array('id' => '22296','state_id' => '1815','name' => 'Zingonia'),\n \t array('id' => '22297','state_id' => '1816','name' => 'Camburzano'),\n \t array('id' => '22298','state_id' => '1816','name' => 'Crevacuore'),\n \t array('id' => '22299','state_id' => '1816','name' => 'Gaglianico'),\n \t array('id' => '22300','state_id' => '1816','name' => 'Sandigliano'),\n \t array('id' => '22301','state_id' => '1816','name' => 'Vigliano Biellese'),\n \t array('id' => '22302','state_id' => '1817','name' => 'Anzola dell\\'Emilia'),\n \t array('id' => '22303','state_id' => '1817','name' => 'Bologna'),\n \t array('id' => '22304','state_id' => '1817','name' => 'Borgo Tossignano'),\n \t array('id' => '22305','state_id' => '1817','name' => 'Casalfiumanese'),\n \t array('id' => '22306','state_id' => '1817','name' => 'Castiglione Dei Pepoli '),\n \t array('id' => '22307','state_id' => '1817','name' => 'Funo'),\n \t array('id' => '22308','state_id' => '1817','name' => 'Loiano'),\n \t array('id' => '22309','state_id' => '1817','name' => 'Monterenzio'),\n \t array('id' => '22310','state_id' => '1817','name' => 'Osteria Grande'),\n \t array('id' => '22311','state_id' => '1818','name' => 'Frangarto'),\n \t array('id' => '22312','state_id' => '1819','name' => 'Agnosine'),\n \t array('id' => '22313','state_id' => '1819','name' => 'Brescia'),\n \t array('id' => '22314','state_id' => '1819','name' => 'Capriano del Colle'),\n \t array('id' => '22315','state_id' => '1819','name' => 'Capriolo'),\n \t array('id' => '22316','state_id' => '1819','name' => 'Castegnato'),\n \t array('id' => '22317','state_id' => '1819','name' => 'Castelcovati'),\n \t array('id' => '22318','state_id' => '1819','name' => 'Cellatica'),\n \t array('id' => '22319','state_id' => '1819','name' => 'Coccaglio'),\n \t array('id' => '22320','state_id' => '1819','name' => 'Comezzano-Cizzago'),\n \t array('id' => '22321','state_id' => '1819','name' => 'Erbusco'),\n \t array('id' => '22322','state_id' => '1819','name' => 'Flero'),\n \t array('id' => '22323','state_id' => '1819','name' => 'Lavenone'),\n \t array('id' => '22324','state_id' => '1819','name' => 'Longhena'),\n \t array('id' => '22325','state_id' => '1819','name' => 'Maclodio'),\n \t array('id' => '22326','state_id' => '1819','name' => 'Muscoline'),\n \t array('id' => '22327','state_id' => '1819','name' => 'Padenghe sul Garda'),\n \t array('id' => '22328','state_id' => '1819','name' => 'Paderno Franciacorta'),\n \t array('id' => '22329','state_id' => '1819','name' => 'Paratico'),\n \t array('id' => '22330','state_id' => '1819','name' => 'Passirano'),\n \t array('id' => '22331','state_id' => '1819','name' => 'Polaveno'),\n \t array('id' => '22332','state_id' => '1819','name' => 'Poncarale'),\n \t array('id' => '22333','state_id' => '1819','name' => 'Prevalle'),\n \t array('id' => '22334','state_id' => '1819','name' => 'Provaglio dIseo'),\n \t array('id' => '22335','state_id' => '1819','name' => 'Roncadelle'),\n \t array('id' => '22336','state_id' => '1819','name' => 'Verolavecchia'),\n \t array('id' => '22337','state_id' => '1819','name' => 'Visano'),\n \t array('id' => '22338','state_id' => '1820','name' => 'San Donaci'),\n \t array('id' => '22339','state_id' => '1821','name' => 'Acri'),\n \t array('id' => '22340','state_id' => '1821','name' => 'Amantea'),\n \t array('id' => '22341','state_id' => '1821','name' => 'Bagnara Calabra'),\n \t array('id' => '22342','state_id' => '1821','name' => 'Belvedere Marittimo'),\n \t array('id' => '22343','state_id' => '1821','name' => 'Bisignano'),\n \t array('id' => '22344','state_id' => '1821','name' => 'Bovalino'),\n \t array('id' => '22345','state_id' => '1821','name' => 'Cariati'),\n \t array('id' => '22346','state_id' => '1821','name' => 'Cassano allo Ionio'),\n \t array('id' => '22347','state_id' => '1821','name' => 'Castrolibero'),\n \t array('id' => '22348','state_id' => '1821','name' => 'Castrovillari'),\n \t array('id' => '22349','state_id' => '1821','name' => 'Catanzaro'),\n \t array('id' => '22350','state_id' => '1821','name' => 'Cetraro'),\n \t array('id' => '22351','state_id' => '1821','name' => 'Ciro Marina'),\n \t array('id' => '22352','state_id' => '1821','name' => 'Cittanova'),\n \t array('id' => '22353','state_id' => '1821','name' => 'Corigliano Calabro'),\n \t array('id' => '22354','state_id' => '1821','name' => 'Cosenza'),\n \t array('id' => '22355','state_id' => '1821','name' => 'Crosia'),\n \t array('id' => '22356','state_id' => '1821','name' => 'Crotone'),\n \t array('id' => '22357','state_id' => '1821','name' => 'Cutro'),\n \t array('id' => '22358','state_id' => '1821','name' => 'Fuscaldo'),\n \t array('id' => '22359','state_id' => '1821','name' => 'Gioia Tauro'),\n \t array('id' => '22360','state_id' => '1821','name' => 'Isola di Capo Rizzuto'),\n \t array('id' => '22361','state_id' => '1821','name' => 'Lamezia Terme'),\n \t array('id' => '22362','state_id' => '1821','name' => 'Locri'),\n \t array('id' => '22363','state_id' => '1821','name' => 'Luzzi'),\n \t array('id' => '22364','state_id' => '1821','name' => 'Melito di Porto Salvo'),\n \t array('id' => '22365','state_id' => '1821','name' => 'Mendicino'),\n \t array('id' => '22366','state_id' => '1821','name' => 'Montalto Uffugo'),\n \t array('id' => '22367','state_id' => '1821','name' => 'Palmi'),\n \t array('id' => '22368','state_id' => '1821','name' => 'Paola'),\n \t array('id' => '22369','state_id' => '1821','name' => 'Petilia Policastro'),\n \t array('id' => '22370','state_id' => '1821','name' => 'Pizzo'),\n \t array('id' => '22371','state_id' => '1821','name' => 'Polistena'),\n \t array('id' => '22372','state_id' => '1821','name' => 'Reggio di Calabria'),\n \t array('id' => '22373','state_id' => '1821','name' => 'Rende'),\n \t array('id' => '22374','state_id' => '1821','name' => 'Rosarno'),\n \t array('id' => '22375','state_id' => '1821','name' => 'Rossano'),\n \t array('id' => '22376','state_id' => '1821','name' => 'San Giovanni in Fiore'),\n \t array('id' => '22377','state_id' => '1821','name' => 'Scalea'),\n \t array('id' => '22378','state_id' => '1821','name' => 'Sellia Marina'),\n \t array('id' => '22379','state_id' => '1821','name' => 'Siderno'),\n \t array('id' => '22380','state_id' => '1821','name' => 'Soverato'),\n \t array('id' => '22381','state_id' => '1821','name' => 'Taurianova'),\n \t array('id' => '22382','state_id' => '1821','name' => 'Trebisacce'),\n \t array('id' => '22383','state_id' => '1821','name' => 'Vibo Valentia'),\n \t array('id' => '22384','state_id' => '1821','name' => 'Villa San Giovanni'),\n \t array('id' => '22385','state_id' => '1822','name' => 'Acerra'),\n \t array('id' => '22386','state_id' => '1822','name' => 'Afragola'),\n \t array('id' => '22387','state_id' => '1822','name' => 'Agropoli'),\n \t array('id' => '22388','state_id' => '1822','name' => 'Angri'),\n \t array('id' => '22389','state_id' => '1822','name' => 'Ariano Irpino'),\n \t array('id' => '22390','state_id' => '1822','name' => 'Arzano'),\n \t array('id' => '22391','state_id' => '1822','name' => 'Atripalda'),\n \t array('id' => '22392','state_id' => '1822','name' => 'Avellino'),\n \t array('id' => '22393','state_id' => '1822','name' => 'Aversa'),\n \t array('id' => '22394','state_id' => '1822','name' => 'Bacoli'),\n \t array('id' => '22395','state_id' => '1822','name' => 'Barano d\\'Ischia'),\n \t array('id' => '22396','state_id' => '1822','name' => 'Baronissi'),\n \t array('id' => '22397','state_id' => '1822','name' => 'Battipaglia'),\n \t array('id' => '22398','state_id' => '1822','name' => 'Bellizzi'),\n \t array('id' => '22399','state_id' => '1822','name' => 'Benevento'),\n \t array('id' => '22400','state_id' => '1822','name' => 'Boscoreale'),\n \t array('id' => '22401','state_id' => '1822','name' => 'Boscotrecase'),\n \t array('id' => '22402','state_id' => '1822','name' => 'Brusciano'),\n \t array('id' => '22403','state_id' => '1822','name' => 'Caivano'),\n \t array('id' => '22404','state_id' => '1822','name' => 'Calvizzano'),\n \t array('id' => '22405','state_id' => '1822','name' => 'Campagna'),\n \t array('id' => '22406','state_id' => '1822','name' => 'Capaccio'),\n \t array('id' => '22407','state_id' => '1822','name' => 'Capua'),\n \t array('id' => '22408','state_id' => '1822','name' => 'Cardito'),\n \t array('id' => '22409','state_id' => '1822','name' => 'Carinola'),\n \t array('id' => '22410','state_id' => '1822','name' => 'Casagiove'),\n \t array('id' => '22411','state_id' => '1822','name' => 'Casal di Principe'),\n \t array('id' => '22412','state_id' => '1822','name' => 'Casalnuovo di Napoli'),\n \t array('id' => '22413','state_id' => '1822','name' => 'Casaluce'),\n \t array('id' => '22414','state_id' => '1822','name' => 'Casandrino'),\n \t array('id' => '22415','state_id' => '1822','name' => 'Casavatore'),\n \t array('id' => '22416','state_id' => '1822','name' => 'Caserta'),\n \t array('id' => '22417','state_id' => '1822','name' => 'Casoria'),\n \t array('id' => '22418','state_id' => '1822','name' => 'Castel San Giorgio'),\n \t array('id' => '22419','state_id' => '1822','name' => 'Castel Volturno'),\n \t array('id' => '22420','state_id' => '1822','name' => 'Castellammare di Stabia'),\n \t array('id' => '22421','state_id' => '1822','name' => 'Cava de\\' Tirreni'),\n \t array('id' => '22422','state_id' => '1822','name' => 'Cercola'),\n \t array('id' => '22423','state_id' => '1822','name' => 'Cervinara'),\n \t array('id' => '22424','state_id' => '1822','name' => 'Cicciano'),\n \t array('id' => '22425','state_id' => '1822','name' => 'Crispano'),\n \t array('id' => '22426','state_id' => '1822','name' => 'Eboli'),\n \t array('id' => '22427','state_id' => '1822','name' => 'Ercolano'),\n \t array('id' => '22428','state_id' => '1822','name' => 'Fisciano'),\n \t array('id' => '22429','state_id' => '1822','name' => 'Forio'),\n \t array('id' => '22430','state_id' => '1822','name' => 'Frattamaggiore'),\n \t array('id' => '22431','state_id' => '1822','name' => 'Frattaminore'),\n \t array('id' => '22432','state_id' => '1822','name' => 'Frignano'),\n \t array('id' => '22433','state_id' => '1822','name' => 'Giffoni Valle Piana'),\n \t array('id' => '22434','state_id' => '1822','name' => 'Giugliano in Campania'),\n \t array('id' => '22435','state_id' => '1822','name' => 'Gragnano'),\n \t array('id' => '22436','state_id' => '1822','name' => 'Gricignano di Aversa'),\n \t array('id' => '22437','state_id' => '1822','name' => 'Grottaminarda'),\n \t array('id' => '22438','state_id' => '1822','name' => 'Grumo Nevano'),\n \t array('id' => '22439','state_id' => '1822','name' => 'Ischia'),\n \t array('id' => '22440','state_id' => '1822','name' => 'Lusciano'),\n \t array('id' => '22441','state_id' => '1822','name' => 'Macerata Campania'),\n \t array('id' => '22442','state_id' => '1822','name' => 'Maddaloni'),\n \t array('id' => '22443','state_id' => '1822','name' => 'Marano di Napoli'),\n \t array('id' => '22444','state_id' => '1822','name' => 'Marcianise'),\n \t array('id' => '22445','state_id' => '1822','name' => 'Marigliano'),\n \t array('id' => '22446','state_id' => '1822','name' => 'Massa Lubrense'),\n \t array('id' => '22447','state_id' => '1822','name' => 'Melito di Napoli'),\n \t array('id' => '22448','state_id' => '1822','name' => 'Mercato San Severino'),\n \t array('id' => '22449','state_id' => '1822','name' => 'Mercogliano'),\n \t array('id' => '22450','state_id' => '1822','name' => 'Meta'),\n \t array('id' => '22451','state_id' => '1822','name' => 'Mirabella Eclano'),\n \t array('id' => '22452','state_id' => '1822','name' => 'Mondragone'),\n \t array('id' => '22453','state_id' => '1822','name' => 'Monte di Procida'),\n \t array('id' => '22454','state_id' => '1822','name' => 'Montecorvino Rovella'),\n \t array('id' => '22455','state_id' => '1822','name' => 'Monteforte Irpino'),\n \t array('id' => '22456','state_id' => '1822','name' => 'Montesarchio'),\n \t array('id' => '22457','state_id' => '1822','name' => 'Montoro Inferiore'),\n \t array('id' => '22458','state_id' => '1822','name' => 'Mugnano di Napoli'),\n \t array('id' => '22459','state_id' => '1822','name' => 'Naples'),\n \t array('id' => '22460','state_id' => '1822','name' => 'Napoli'),\n \t array('id' => '22461','state_id' => '1822','name' => 'Nocera Inferiore'),\n \t array('id' => '22462','state_id' => '1822','name' => 'Nocera Superiore'),\n \t array('id' => '22463','state_id' => '1822','name' => 'Nola'),\n \t array('id' => '22464','state_id' => '1822','name' => 'Orta di Atella'),\n \t array('id' => '22465','state_id' => '1822','name' => 'Ottaviano'),\n \t array('id' => '22466','state_id' => '1822','name' => 'Pagani'),\n \t array('id' => '22467','state_id' => '1822','name' => 'Palma Campania'),\n \t array('id' => '22468','state_id' => '1822','name' => 'Parete'),\n \t array('id' => '22469','state_id' => '1822','name' => 'Pellezzano'),\n \t array('id' => '22470','state_id' => '1822','name' => 'Piano di Sorrento'),\n \t array('id' => '22471','state_id' => '1822','name' => 'Piedimonte Matese'),\n \t array('id' => '22472','state_id' => '1822','name' => 'Poggiomarino'),\n \t array('id' => '22473','state_id' => '1822','name' => 'Pollena Trocchia'),\n \t array('id' => '22474','state_id' => '1822','name' => 'Pomigliano d\\'Arco'),\n \t array('id' => '22475','state_id' => '1822','name' => 'Pompei'),\n \t array('id' => '22476','state_id' => '1822','name' => 'Pontecagnano'),\n \t array('id' => '22477','state_id' => '1822','name' => 'Portici'),\n \t array('id' => '22478','state_id' => '1822','name' => 'Positano'),\n \t array('id' => '22479','state_id' => '1822','name' => 'Pozzuoli'),\n \t array('id' => '22480','state_id' => '1822','name' => 'Procida'),\n \t array('id' => '22481','state_id' => '1822','name' => 'Qualiano'),\n \t array('id' => '22482','state_id' => '1822','name' => 'Quarto'),\n \t array('id' => '22483','state_id' => '1822','name' => 'Roccapiemonte'),\n \t array('id' => '22484','state_id' => '1822','name' => 'Sala Consilina'),\n \t array('id' => '22485','state_id' => '1822','name' => 'Salerno'),\n \t array('id' => '22486','state_id' => '1822','name' => 'San Cipriano d\\'Aversa'),\n \t array('id' => '22487','state_id' => '1822','name' => 'San Felice a Cancello'),\n \t array('id' => '22488','state_id' => '1822','name' => 'San Gennaro Vesuviano'),\n \t array('id' => '22489','state_id' => '1822','name' => 'San Giorgio a Cremano'),\n \t array('id' => '22490','state_id' => '1822','name' => 'San Giorgio del Sannio'),\n \t array('id' => '22491','state_id' => '1822','name' => 'San Giuseppe Vesuviano'),\n \t array('id' => '22492','state_id' => '1822','name' => 'San Marcellino'),\n \t array('id' => '22493','state_id' => '1822','name' => 'San Marzano sul Sarno'),\n \t array('id' => '22494','state_id' => '1822','name' => 'San Nicola'),\n \t array('id' => '22495','state_id' => '1822','name' => 'San Prisco'),\n \t array('id' => '22496','state_id' => '1822','name' => 'San Sebastiano al Vesuvio'),\n \t array('id' => '22497','state_id' => '1822','name' => 'San Valentino Torio'),\n \t array('id' => '22498','state_id' => '1822','name' => 'Sant Antimo'),\n \t array('id' => '22499','state_id' => '1822','name' => 'Sant\\'Agata de\\' Goti'),\n \t array('id' => '22500','state_id' => '1822','name' => 'Sant\\'Agnello'),\n \t array('id' => '22501','state_id' => '1822','name' => 'Sant\\'Anastasia'),\n \t array('id' => '22502','state_id' => '1822','name' => 'Sant\\'Antonio Abate'),\n \t array('id' => '22503','state_id' => '1822','name' => 'Sant\\'Arpino'),\n \t array('id' => '22504','state_id' => '1822','name' => 'Sant\\'Egidio del Monte Albino'),\n \t array('id' => '22505','state_id' => '1822','name' => 'Santa Maria Capua Vetere'),\n \t array('id' => '22506','state_id' => '1822','name' => 'Santa Maria a Vico'),\n \t array('id' => '22507','state_id' => '1822','name' => 'Santa Maria la Carita'),\n \t array('id' => '22508','state_id' => '1822','name' => 'Sarno'),\n \t array('id' => '22509','state_id' => '1822','name' => 'Saviano'),\n \t array('id' => '22510','state_id' => '1822','name' => 'Scafati'),\n \t array('id' => '22511','state_id' => '1822','name' => 'Sessa Aurunca'),\n \t array('id' => '22512','state_id' => '1822','name' => 'Siano'),\n \t array('id' => '22513','state_id' => '1822','name' => 'Solofra'),\n \t array('id' => '22514','state_id' => '1822','name' => 'Somma Vesuviana'),\n \t array('id' => '22515','state_id' => '1822','name' => 'Sorrento'),\n \t array('id' => '22516','state_id' => '1822','name' => 'Teano'),\n \t array('id' => '22517','state_id' => '1822','name' => 'Teggiano'),\n \t array('id' => '22518','state_id' => '1822','name' => 'Terzigno'),\n \t array('id' => '22519','state_id' => '1822','name' => 'Teverola'),\n \t array('id' => '22520','state_id' => '1822','name' => 'Torre Annunziata'),\n \t array('id' => '22521','state_id' => '1822','name' => 'Torre del Greco'),\n \t array('id' => '22522','state_id' => '1822','name' => 'Trecase'),\n \t array('id' => '22523','state_id' => '1822','name' => 'Trentola-Ducenta'),\n \t array('id' => '22524','state_id' => '1822','name' => 'Vallo della Lucania'),\n \t array('id' => '22525','state_id' => '1822','name' => 'Vico Equense'),\n \t array('id' => '22526','state_id' => '1822','name' => 'Vietri sul Mare'),\n \t array('id' => '22527','state_id' => '1822','name' => 'Villa Literno'),\n \t array('id' => '22528','state_id' => '1822','name' => 'Villaricca'),\n \t array('id' => '22529','state_id' => '1822','name' => 'Volla'),\n \t array('id' => '22530','state_id' => '1823','name' => 'Cartoceto'),\n \t array('id' => '22531','state_id' => '1824','name' => 'Carinaro'),\n \t array('id' => '22532','state_id' => '1824','name' => 'San Marco Evangelista'),\n \t array('id' => '22533','state_id' => '1825','name' => 'Fiandaca Di Acireale'),\n \t array('id' => '22534','state_id' => '1825','name' => 'San Cono'),\n \t array('id' => '22535','state_id' => '1826','name' => 'Altino'),\n \t array('id' => '22536','state_id' => '1826','name' => 'Archi'),\n \t array('id' => '22537','state_id' => '1826','name' => 'Ari'),\n \t array('id' => '22538','state_id' => '1826','name' => 'Arielli'),\n \t array('id' => '22539','state_id' => '1826','name' => 'Atessa'),\n \t array('id' => '22540','state_id' => '1826','name' => 'Bomba'),\n \t array('id' => '22541','state_id' => '1826','name' => 'Borrello'),\n \t array('id' => '22542','state_id' => '1826','name' => 'Bucchianico'),\n \t array('id' => '22543','state_id' => '1826','name' => 'Canosa Sannita'),\n \t array('id' => '22544','state_id' => '1826','name' => 'Carpineto Sinello'),\n \t array('id' => '22545','state_id' => '1826','name' => 'Carunchio'),\n \t array('id' => '22546','state_id' => '1826','name' => 'Casacanditella'),\n \t array('id' => '22547','state_id' => '1826','name' => 'Casalanguida'),\n \t array('id' => '22548','state_id' => '1826','name' => 'Casalbordino'),\n \t array('id' => '22549','state_id' => '1826','name' => 'Casalincontrada'),\n \t array('id' => '22550','state_id' => '1826','name' => 'Casoli'),\n \t array('id' => '22551','state_id' => '1826','name' => 'Castel Frentano'),\n \t array('id' => '22552','state_id' => '1826','name' => 'Castelguidone'),\n \t array('id' => '22553','state_id' => '1826','name' => 'Castiglione Messer Marino'),\n \t array('id' => '22554','state_id' => '1826','name' => 'Celenza sul Trigno'),\n \t array('id' => '22555','state_id' => '1826','name' => 'Chieti'),\n \t array('id' => '22556','state_id' => '1826','name' => 'Civitaluparella'),\n \t array('id' => '22557','state_id' => '1826','name' => 'Civitella Messer Raimondo'),\n \t array('id' => '22558','state_id' => '1826','name' => 'Colledimacine'),\n \t array('id' => '22559','state_id' => '1826','name' => 'Colledimezzo'),\n \t array('id' => '22560','state_id' => '1826','name' => 'Crecchio'),\n \t array('id' => '22561','state_id' => '1826','name' => 'Cupello'),\n \t array('id' => '22562','state_id' => '1826','name' => 'Dogliola'),\n \t array('id' => '22563','state_id' => '1826','name' => 'Fallo'),\n \t array('id' => '22564','state_id' => '1826','name' => 'Fara Filiorum Petri'),\n \t array('id' => '22565','state_id' => '1826','name' => 'Fara San Martino'),\n \t array('id' => '22566','state_id' => '1826','name' => 'Filetto'),\n \t array('id' => '22567','state_id' => '1826','name' => 'Fossacesia'),\n \t array('id' => '22568','state_id' => '1826','name' => 'Fraine'),\n \t array('id' => '22569','state_id' => '1826','name' => 'Francavilla al Mare'),\n \t array('id' => '22570','state_id' => '1826','name' => 'Fresagrandinaria'),\n \t array('id' => '22571','state_id' => '1826','name' => 'Frisa'),\n \t array('id' => '22572','state_id' => '1826','name' => 'Furci'),\n \t array('id' => '22573','state_id' => '1826','name' => 'Gamberale'),\n \t array('id' => '22574','state_id' => '1826','name' => 'Gessopalena'),\n \t array('id' => '22575','state_id' => '1826','name' => 'Gissi'),\n \t array('id' => '22576','state_id' => '1826','name' => 'Giuliano Teatino'),\n \t array('id' => '22577','state_id' => '1826','name' => 'Guardiagrele'),\n \t array('id' => '22578','state_id' => '1826','name' => 'Guilmi'),\n \t array('id' => '22579','state_id' => '1826','name' => 'Lama dei Peligni'),\n \t array('id' => '22580','state_id' => '1826','name' => 'Lanciano'),\n \t array('id' => '22581','state_id' => '1826','name' => 'Lentella'),\n \t array('id' => '22582','state_id' => '1826','name' => 'Lettopalena'),\n \t array('id' => '22583','state_id' => '1826','name' => 'Liscia'),\n \t array('id' => '22584','state_id' => '1826','name' => 'Miglianico'),\n \t array('id' => '22585','state_id' => '1826','name' => 'Montazzoli'),\n \t array('id' => '22586','state_id' => '1826','name' => 'Montebello sul Sangro'),\n \t array('id' => '22587','state_id' => '1826','name' => 'Monteferrante'),\n \t array('id' => '22588','state_id' => '1826','name' => 'Montelapiano'),\n \t array('id' => '22589','state_id' => '1826','name' => 'Montenerodomo'),\n \t array('id' => '22590','state_id' => '1826','name' => 'Monteodorisio'),\n \t array('id' => '22591','state_id' => '1826','name' => 'Mozzagrogna'),\n \t array('id' => '22592','state_id' => '1826','name' => 'Orsogna'),\n \t array('id' => '22593','state_id' => '1826','name' => 'Ortona'),\n \t array('id' => '22594','state_id' => '1826','name' => 'Paglieta'),\n \t array('id' => '22595','state_id' => '1826','name' => 'Palena'),\n \t array('id' => '22596','state_id' => '1826','name' => 'Palmoli'),\n \t array('id' => '22597','state_id' => '1826','name' => 'Palombaro'),\n \t array('id' => '22598','state_id' => '1826','name' => 'Pennadomo'),\n \t array('id' => '22599','state_id' => '1826','name' => 'Pennapiedimonte'),\n \t array('id' => '22600','state_id' => '1826','name' => 'Perano'),\n \t array('id' => '22601','state_id' => '1826','name' => 'Pietraferrazzana'),\n \t array('id' => '22602','state_id' => '1826','name' => 'Pizzoferrato'),\n \t array('id' => '22603','state_id' => '1826','name' => 'Poggiofiorito'),\n \t array('id' => '22604','state_id' => '1826','name' => 'Pollutri'),\n \t array('id' => '22605','state_id' => '1826','name' => 'Pretoro'),\n \t array('id' => '22606','state_id' => '1826','name' => 'Quadri'),\n \t array('id' => '22607','state_id' => '1826','name' => 'Rapino'),\n \t array('id' => '22608','state_id' => '1826','name' => 'Ripa Teatina'),\n \t array('id' => '22609','state_id' => '1826','name' => 'Rocca San Giovanni'),\n \t array('id' => '22610','state_id' => '1826','name' => 'Roccamontepiano'),\n \t array('id' => '22611','state_id' => '1826','name' => 'Roccascalegna'),\n \t array('id' => '22612','state_id' => '1826','name' => 'Roccaspinalveti'),\n \t array('id' => '22613','state_id' => '1826','name' => 'Roio del Sangro'),\n \t array('id' => '22614','state_id' => '1826','name' => 'Rosello'),\n \t array('id' => '22615','state_id' => '1826','name' => 'San Buono'),\n \t array('id' => '22616','state_id' => '1826','name' => 'San Giovanni Lipioni'),\n \t array('id' => '22617','state_id' => '1826','name' => 'San Giovanni Teatino'),\n \t array('id' => '22618','state_id' => '1826','name' => 'San Martino sulla Marrucina'),\n \t array('id' => '22619','state_id' => '1826','name' => 'San Salvo'),\n \t array('id' => '22620','state_id' => '1826','name' => 'San Vito Chietino'),\n \t array('id' => '22621','state_id' => '1826','name' => 'Sant Eusanio del Sangro'),\n \t array('id' => '22622','state_id' => '1826','name' => 'Santa Maria Imbaro'),\n \t array('id' => '22623','state_id' => '1826','name' => 'Scerni'),\n \t array('id' => '22624','state_id' => '1826','name' => 'Schiavi di Abruzzo'),\n \t array('id' => '22625','state_id' => '1826','name' => 'Taranta Peligna'),\n \t array('id' => '22626','state_id' => '1826','name' => 'Tollo'),\n \t array('id' => '22627','state_id' => '1826','name' => 'Torino di Sangro'),\n \t array('id' => '22628','state_id' => '1826','name' => 'Tornareccio'),\n \t array('id' => '22629','state_id' => '1826','name' => 'Torrebruna'),\n \t array('id' => '22630','state_id' => '1826','name' => 'Torrevecchia Teatina'),\n \t array('id' => '22631','state_id' => '1826','name' => 'Torricella Peligna'),\n \t array('id' => '22632','state_id' => '1826','name' => 'Treglio'),\n \t array('id' => '22633','state_id' => '1826','name' => 'Tufillo'),\n \t array('id' => '22634','state_id' => '1826','name' => 'Vacri'),\n \t array('id' => '22635','state_id' => '1826','name' => 'Vasto'),\n \t array('id' => '22636','state_id' => '1826','name' => 'Villa Santa Maria'),\n \t array('id' => '22637','state_id' => '1826','name' => 'Villalfonsina'),\n \t array('id' => '22638','state_id' => '1826','name' => 'Villamagna'),\n \t array('id' => '22639','state_id' => '1827','name' => 'Albavilla'),\n \t array('id' => '22640','state_id' => '1827','name' => 'Cadorago'),\n \t array('id' => '22641','state_id' => '1827','name' => 'Carimate'),\n \t array('id' => '22642','state_id' => '1827','name' => 'Castelmarte'),\n \t array('id' => '22643','state_id' => '1827','name' => 'Cavaria'),\n \t array('id' => '22644','state_id' => '1827','name' => 'Cernobbio'),\n \t array('id' => '22645','state_id' => '1827','name' => 'Comocrea'),\n \t array('id' => '22646','state_id' => '1827','name' => 'Dongo'),\n \t array('id' => '22647','state_id' => '1827','name' => 'Gironico'),\n \t array('id' => '22648','state_id' => '1827','name' => 'Grandate'),\n \t array('id' => '22649','state_id' => '1827','name' => 'Lurago dErba'),\n \t array('id' => '22650','state_id' => '1827','name' => 'Mozzate'),\n \t array('id' => '22651','state_id' => '1827','name' => 'Novedrate'),\n \t array('id' => '22652','state_id' => '1827','name' => 'Orsenigo'),\n \t array('id' => '22653','state_id' => '1827','name' => 'Turate'),\n \t array('id' => '22654','state_id' => '1827','name' => 'Uggiate'),\n \t array('id' => '22655','state_id' => '1828','name' => 'Corso del Tirreno'),\n \t array('id' => '22656','state_id' => '1828','name' => 'Mangone'),\n \t array('id' => '22657','state_id' => '1829','name' => 'Casalbuttano'),\n \t array('id' => '22658','state_id' => '1829','name' => 'Casalmaggiore'),\n \t array('id' => '22659','state_id' => '1829','name' => 'Castelverde'),\n \t array('id' => '22660','state_id' => '1829','name' => 'Madignano'),\n \t array('id' => '22661','state_id' => '1829','name' => 'Pieve San Giacomo'),\n \t array('id' => '22662','state_id' => '1830','name' => 'Bandito'),\n \t array('id' => '22663','state_id' => '1830','name' => 'Bra'),\n \t array('id' => '22664','state_id' => '1830','name' => 'Casalgrasso'),\n \t array('id' => '22665','state_id' => '1830','name' => 'Cossano Belbo'),\n \t array('id' => '22666','state_id' => '1830','name' => 'Magliano Alpi'),\n \t array('id' => '22667','state_id' => '1830','name' => 'Mondovi'),\n \t array('id' => '22668','state_id' => '1830','name' => 'Roddi'),\n \t array('id' => '22669','state_id' => '1830','name' => 'Santa Vittoria d\\'Alba'),\n \t array('id' => '22670','state_id' => '1830','name' => 'Verduno'),\n \t array('id' => '22671','state_id' => '1831','name' => 'Alfonsine'),\n \t array('id' => '22672','state_id' => '1831','name' => 'Argelato'),\n \t array('id' => '22673','state_id' => '1831','name' => 'Argenta'),\n \t array('id' => '22674','state_id' => '1831','name' => 'Bagnacavallo'),\n \t array('id' => '22675','state_id' => '1831','name' => 'Bagnolo in Piano'),\n \t array('id' => '22676','state_id' => '1831','name' => 'Bellaria-Igea Marina'),\n \t array('id' => '22677','state_id' => '1831','name' => 'Bertinoro'),\n \t array('id' => '22678','state_id' => '1831','name' => 'Bologna'),\n \t array('id' => '22679','state_id' => '1831','name' => 'Bondeno'),\n \t array('id' => '22680','state_id' => '1831','name' => 'Budrio'),\n \t array('id' => '22681','state_id' => '1831','name' => 'Calderara di Reno'),\n \t array('id' => '22682','state_id' => '1831','name' => 'Carpi'),\n \t array('id' => '22683','state_id' => '1831','name' => 'Casalecchio di Reno'),\n \t array('id' => '22684','state_id' => '1831','name' => 'Casalgrande'),\n \t array('id' => '22685','state_id' => '1831','name' => 'Castel Bolognese'),\n \t array('id' => '22686','state_id' => '1831','name' => 'Castel Maggiore'),\n \t array('id' => '22687','state_id' => '1831','name' => 'Castel San Giovanni'),\n \t array('id' => '22688','state_id' => '1831','name' => 'Castel San Pietro Terme'),\n \t array('id' => '22689','state_id' => '1831','name' => 'Castelfranco Emilia'),\n \t array('id' => '22690','state_id' => '1831','name' => 'Castellarano'),\n \t array('id' => '22691','state_id' => '1831','name' => 'Castelnovo ne\\' Monti'),\n \t array('id' => '22692','state_id' => '1831','name' => 'Castelnuovo Rangone'),\n \t array('id' => '22693','state_id' => '1831','name' => 'Castelvetro di Modena'),\n \t array('id' => '22694','state_id' => '1831','name' => 'Castenaso'),\n \t array('id' => '22695','state_id' => '1831','name' => 'Cattolica'),\n \t array('id' => '22696','state_id' => '1831','name' => 'Cavriago'),\n \t array('id' => '22697','state_id' => '1831','name' => 'Cento'),\n \t array('id' => '22698','state_id' => '1831','name' => 'Cervia'),\n \t array('id' => '22699','state_id' => '1831','name' => 'Cesena'),\n \t array('id' => '22700','state_id' => '1831','name' => 'Cesenatico'),\n \t array('id' => '22701','state_id' => '1831','name' => 'Codigoro'),\n \t array('id' => '22702','state_id' => '1831','name' => 'Collecchio'),\n \t array('id' => '22703','state_id' => '1831','name' => 'Comacchio'),\n \t array('id' => '22704','state_id' => '1831','name' => 'Concordia sulla Secchia'),\n \t array('id' => '22705','state_id' => '1831','name' => 'Conselice'),\n \t array('id' => '22706','state_id' => '1831','name' => 'Copparo'),\n \t array('id' => '22707','state_id' => '1831','name' => 'Coriano'),\n \t array('id' => '22708','state_id' => '1831','name' => 'Correggio'),\n \t array('id' => '22709','state_id' => '1831','name' => 'Crespellano'),\n \t array('id' => '22710','state_id' => '1831','name' => 'Crevalcore'),\n \t array('id' => '22711','state_id' => '1831','name' => 'Faenza'),\n \t array('id' => '22712','state_id' => '1831','name' => 'Ferrara'),\n \t array('id' => '22713','state_id' => '1831','name' => 'Fidenza'),\n \t array('id' => '22714','state_id' => '1831','name' => 'Finale Emilia'),\n \t array('id' => '22715','state_id' => '1831','name' => 'Fiorano Modenese'),\n \t array('id' => '22716','state_id' => '1831','name' => 'Fiorenzuola d\\'Arda'),\n \t array('id' => '22717','state_id' => '1831','name' => 'Forli'),\n \t array('id' => '22718','state_id' => '1831','name' => 'Forlimpopoli'),\n \t array('id' => '22719','state_id' => '1831','name' => 'Formigine'),\n \t array('id' => '22720','state_id' => '1831','name' => 'Gambettola'),\n \t array('id' => '22721','state_id' => '1831','name' => 'Granarolo dell\\'Emilia'),\n \t array('id' => '22722','state_id' => '1831','name' => 'Guastalla'),\n \t array('id' => '22723','state_id' => '1831','name' => 'Imola'),\n \t array('id' => '22724','state_id' => '1831','name' => 'Langhirano'),\n \t array('id' => '22725','state_id' => '1831','name' => 'Lugo'),\n \t array('id' => '22726','state_id' => '1831','name' => 'Luzzara'),\n \t array('id' => '22727','state_id' => '1831','name' => 'Maranello'),\n \t array('id' => '22728','state_id' => '1831','name' => 'Massa Lombarda'),\n \t array('id' => '22729','state_id' => '1831','name' => 'Medesano'),\n \t array('id' => '22730','state_id' => '1831','name' => 'Medicina'),\n \t array('id' => '22731','state_id' => '1831','name' => 'Meldola'),\n \t array('id' => '22732','state_id' => '1831','name' => 'Mirandola'),\n \t array('id' => '22733','state_id' => '1831','name' => 'Misano Adriatico'),\n \t array('id' => '22734','state_id' => '1831','name' => 'Modena'),\n \t array('id' => '22735','state_id' => '1831','name' => 'Molinella'),\n \t array('id' => '22736','state_id' => '1831','name' => 'Monte San Pietro'),\n \t array('id' => '22737','state_id' => '1831','name' => 'Montecchio Emilia'),\n \t array('id' => '22738','state_id' => '1831','name' => 'Montechiarugolo'),\n \t array('id' => '22739','state_id' => '1831','name' => 'Noceto'),\n \t array('id' => '22740','state_id' => '1831','name' => 'Nonantola'),\n \t array('id' => '22741','state_id' => '1831','name' => 'Novellara'),\n \t array('id' => '22742','state_id' => '1831','name' => 'Novi di Modena'),\n \t array('id' => '22743','state_id' => '1831','name' => 'Ozzano dell\\'Emilia'),\n \t array('id' => '22744','state_id' => '1831','name' => 'Parma'),\n \t array('id' => '22745','state_id' => '1831','name' => 'Pavullo nel Frignano'),\n \t array('id' => '22746','state_id' => '1831','name' => 'Piacenza'),\n \t array('id' => '22747','state_id' => '1831','name' => 'Pianoro'),\n \t array('id' => '22748','state_id' => '1831','name' => 'Ponticino'),\n \t array('id' => '22749','state_id' => '1831','name' => 'Portomaggiore'),\n \t array('id' => '22750','state_id' => '1831','name' => 'Quattro Castella'),\n \t array('id' => '22751','state_id' => '1831','name' => 'Ravenna'),\n \t array('id' => '22752','state_id' => '1831','name' => 'Reggio nell\\'Emilia'),\n \t array('id' => '22753','state_id' => '1831','name' => 'Reggiolo'),\n \t array('id' => '22754','state_id' => '1831','name' => 'Riccione'),\n \t array('id' => '22755','state_id' => '1831','name' => 'Rimini'),\n \t array('id' => '22756','state_id' => '1831','name' => 'Rottofreno'),\n \t array('id' => '22757','state_id' => '1831','name' => 'Rubiera'),\n \t array('id' => '22758','state_id' => '1831','name' => 'Russi'),\n \t array('id' => '22759','state_id' => '1831','name' => 'Salsomaggiore Terme'),\n \t array('id' => '22760','state_id' => '1831','name' => 'San Felice sul Panaro'),\n \t array('id' => '22761','state_id' => '1831','name' => 'San Giovanni in Persiceto'),\n \t array('id' => '22762','state_id' => '1831','name' => 'San Lazzaro di Savena'),\n \t array('id' => '22763','state_id' => '1831','name' => 'San Mauro Pascoli'),\n \t array('id' => '22764','state_id' => '1831','name' => 'San Pietro in Casale'),\n \t array('id' => '22765','state_id' => '1831','name' => 'Sant\\'Ilario d\\'Enza'),\n \t array('id' => '22766','state_id' => '1831','name' => 'Santarcangelo di Romagna'),\n \t array('id' => '22767','state_id' => '1831','name' => 'Sasso Marconi'),\n \t array('id' => '22768','state_id' => '1831','name' => 'Sassuolo'),\n \t array('id' => '22769','state_id' => '1831','name' => 'Savignano sul Panaro'),\n \t array('id' => '22770','state_id' => '1831','name' => 'Savignano sul Rubicone'),\n \t array('id' => '22771','state_id' => '1831','name' => 'Scandiano'),\n \t array('id' => '22772','state_id' => '1831','name' => 'Soliera'),\n \t array('id' => '22773','state_id' => '1831','name' => 'Sorbolo'),\n \t array('id' => '22774','state_id' => '1831','name' => 'Spilamberto'),\n \t array('id' => '22775','state_id' => '1831','name' => 'Verucchio'),\n \t array('id' => '22776','state_id' => '1831','name' => 'Vignola'),\n \t array('id' => '22777','state_id' => '1831','name' => 'Zola Predosa'),\n \t array('id' => '22778','state_id' => '1832','name' => 'Saint Agostino'),\n \t array('id' => '22779','state_id' => '1833','name' => 'Capalle'),\n \t array('id' => '22780','state_id' => '1833','name' => 'Firenze'),\n \t array('id' => '22781','state_id' => '1833','name' => 'Pelago'),\n \t array('id' => '22782','state_id' => '1833','name' => 'San Donnino'),\n \t array('id' => '22783','state_id' => '1833','name' => 'Scarperia'),\n \t array('id' => '22784','state_id' => '1834','name' => 'Scandicci'),\n \t array('id' => '22785','state_id' => '1834','name' => 'Sesto Fiorentino'),\n \t array('id' => '22786','state_id' => '1837','name' => 'Casalvieri'),\n \t array('id' => '22787','state_id' => '1837','name' => 'Frosinone'),\n \t array('id' => '22788','state_id' => '1837','name' => 'Sgurgola'),\n \t array('id' => '22789','state_id' => '1838','name' => 'Genoa'),\n \t array('id' => '22790','state_id' => '1838','name' => 'Moneglia'),\n \t array('id' => '22791','state_id' => '1839','name' => 'Romans d\\'Isonzo'),\n \t array('id' => '22792','state_id' => '1839','name' => 'Savogna d\\'Isonzo'),\n \t array('id' => '22793','state_id' => '1840','name' => 'Magliano de Marsi'),\n \t array('id' => '22794','state_id' => '1841','name' => 'Alatri'),\n \t array('id' => '22795','state_id' => '1841','name' => 'Albano Laziale'),\n \t array('id' => '22796','state_id' => '1841','name' => 'Anagni'),\n \t array('id' => '22797','state_id' => '1841','name' => 'Anguillara Sabazia'),\n \t array('id' => '22798','state_id' => '1841','name' => 'Anzio'),\n \t array('id' => '22799','state_id' => '1841','name' => 'Aprilia'),\n \t array('id' => '22800','state_id' => '1841','name' => 'Ardea'),\n \t array('id' => '22801','state_id' => '1841','name' => 'Ariccia'),\n \t array('id' => '22802','state_id' => '1841','name' => 'Artena'),\n \t array('id' => '22803','state_id' => '1841','name' => 'Boville Ernica'),\n \t array('id' => '22804','state_id' => '1841','name' => 'Bracciano'),\n \t array('id' => '22805','state_id' => '1841','name' => 'Campagnano di Roma'),\n \t array('id' => '22806','state_id' => '1841','name' => 'Cassino'),\n \t array('id' => '22807','state_id' => '1841','name' => 'Cave'),\n \t array('id' => '22808','state_id' => '1841','name' => 'Ceccano'),\n \t array('id' => '22809','state_id' => '1841','name' => 'Ceprano'),\n \t array('id' => '22810','state_id' => '1841','name' => 'Cerveteri'),\n \t array('id' => '22811','state_id' => '1841','name' => 'Ciampino'),\n \t array('id' => '22812','state_id' => '1841','name' => 'Cisterna'),\n \t array('id' => '22813','state_id' => '1841','name' => 'Civita Castellana'),\n \t array('id' => '22814','state_id' => '1841','name' => 'Civitavecchia'),\n \t array('id' => '22815','state_id' => '1841','name' => 'Colleferro'),\n \t array('id' => '22816','state_id' => '1841','name' => 'Cori'),\n \t array('id' => '22817','state_id' => '1841','name' => 'Fara in Sabina'),\n \t array('id' => '22818','state_id' => '1841','name' => 'Ferentino'),\n \t array('id' => '22819','state_id' => '1841','name' => 'Fiano Romano'),\n \t array('id' => '22820','state_id' => '1841','name' => 'Fiuggi'),\n \t array('id' => '22821','state_id' => '1841','name' => 'Fiumicino'),\n \t array('id' => '22822','state_id' => '1841','name' => 'Fondi'),\n \t array('id' => '22823','state_id' => '1841','name' => 'Fonte Nuova'),\n \t array('id' => '22824','state_id' => '1841','name' => 'Formello'),\n \t array('id' => '22825','state_id' => '1841','name' => 'Formia'),\n \t array('id' => '22826','state_id' => '1841','name' => 'Frascati'),\n \t array('id' => '22827','state_id' => '1841','name' => 'Frosinone'),\n \t array('id' => '22828','state_id' => '1841','name' => 'Gaeta'),\n \t array('id' => '22829','state_id' => '1841','name' => 'Genzano di Roma'),\n \t array('id' => '22830','state_id' => '1841','name' => 'Grottaferrata'),\n \t array('id' => '22831','state_id' => '1841','name' => 'Guidonia'),\n \t array('id' => '22832','state_id' => '1841','name' => 'Isola del Liri'),\n \t array('id' => '22833','state_id' => '1841','name' => 'Itri'),\n \t array('id' => '22834','state_id' => '1841','name' => 'Ladispoli'),\n \t array('id' => '22835','state_id' => '1841','name' => 'Lanuvio'),\n \t array('id' => '22836','state_id' => '1841','name' => 'Lariano'),\n \t array('id' => '22837','state_id' => '1841','name' => 'Latina'),\n \t array('id' => '22838','state_id' => '1841','name' => 'Marino'),\n \t array('id' => '22839','state_id' => '1841','name' => 'Mentana'),\n \t array('id' => '22840','state_id' => '1841','name' => 'Minturno'),\n \t array('id' => '22841','state_id' => '1841','name' => 'Monte San Giovanni Campano'),\n \t array('id' => '22842','state_id' => '1841','name' => 'Montefiascone'),\n \t array('id' => '22843','state_id' => '1841','name' => 'Monterotondo'),\n \t array('id' => '22844','state_id' => '1841','name' => 'Nettuno'),\n \t array('id' => '22845','state_id' => '1841','name' => 'Palestrina'),\n \t array('id' => '22846','state_id' => '1841','name' => 'Palombara Sabina'),\n \t array('id' => '22847','state_id' => '1841','name' => 'Pomezia'),\n \t array('id' => '22848','state_id' => '1841','name' => 'Pontecorvo'),\n \t array('id' => '22849','state_id' => '1841','name' => 'Pontinia'),\n \t array('id' => '22850','state_id' => '1841','name' => 'Priverno'),\n \t array('id' => '22851','state_id' => '1841','name' => 'Rieti'),\n \t array('id' => '22852','state_id' => '1841','name' => 'Rocca Priora'),\n \t array('id' => '22853','state_id' => '1841','name' => 'Rocca di Papa'),\n \t array('id' => '22854','state_id' => '1841','name' => 'Roma'),\n \t array('id' => '22855','state_id' => '1841','name' => 'Rome'),\n \t array('id' => '22856','state_id' => '1841','name' => 'Sabaudia'),\n \t array('id' => '22857','state_id' => '1841','name' => 'San Cesareo'),\n \t array('id' => '22858','state_id' => '1841','name' => 'Santa Marinella'),\n \t array('id' => '22859','state_id' => '1841','name' => 'Segni'),\n \t array('id' => '22860','state_id' => '1841','name' => 'Sezze'),\n \t array('id' => '22861','state_id' => '1841','name' => 'Sora'),\n \t array('id' => '22862','state_id' => '1841','name' => 'Soriano nel Cimino'),\n \t array('id' => '22863','state_id' => '1841','name' => 'Subiaco'),\n \t array('id' => '22864','state_id' => '1841','name' => 'Tarquinia'),\n \t array('id' => '22865','state_id' => '1841','name' => 'Terracina'),\n \t array('id' => '22866','state_id' => '1841','name' => 'Tivoli'),\n \t array('id' => '22867','state_id' => '1841','name' => 'Valmontone'),\n \t array('id' => '22868','state_id' => '1841','name' => 'Velletri'),\n \t array('id' => '22869','state_id' => '1841','name' => 'Veroli'),\n \t array('id' => '22870','state_id' => '1841','name' => 'Vetralla'),\n \t array('id' => '22871','state_id' => '1841','name' => 'Viterbo'),\n \t array('id' => '22872','state_id' => '1841','name' => 'Zagarolo'),\n \t array('id' => '22873','state_id' => '1842','name' => 'Acquarica del Capo'),\n \t array('id' => '22874','state_id' => '1843','name' => 'Airuno'),\n \t array('id' => '22875','state_id' => '1843','name' => 'Bosisio Parini'),\n \t array('id' => '22876','state_id' => '1843','name' => 'Lecco'),\n \t array('id' => '22877','state_id' => '1843','name' => 'Margno'),\n \t array('id' => '22878','state_id' => '1843','name' => 'Osnago'),\n \t array('id' => '22879','state_id' => '1843','name' => 'Sirone'),\n \t array('id' => '22886','state_id' => '1845','name' => 'Alassio'),\n \t array('id' => '22887','state_id' => '1845','name' => 'Albenga'),\n \t array('id' => '22888','state_id' => '1845','name' => 'Albisola Superiore'),\n \t array('id' => '22889','state_id' => '1845','name' => 'Arcola'),\n \t array('id' => '22890','state_id' => '1845','name' => 'Arenzano'),\n \t array('id' => '22891','state_id' => '1845','name' => 'Bordighera'),\n \t array('id' => '22892','state_id' => '1845','name' => 'Borgonuovo'),\n \t array('id' => '22893','state_id' => '1845','name' => 'Cairo Montenotte'),\n \t array('id' => '22894','state_id' => '1845','name' => 'Chiavari'),\n \t array('id' => '22895','state_id' => '1845','name' => 'Cogoleto'),\n \t array('id' => '22896','state_id' => '1845','name' => 'Finale Ligure'),\n \t array('id' => '22897','state_id' => '1845','name' => 'Genova'),\n \t array('id' => '22898','state_id' => '1845','name' => 'Imperia'),\n \t array('id' => '22899','state_id' => '1845','name' => 'La Spezia'),\n \t array('id' => '22900','state_id' => '1845','name' => 'Lavagna'),\n \t array('id' => '22901','state_id' => '1845','name' => 'Lerici'),\n \t array('id' => '22902','state_id' => '1845','name' => 'Loano'),\n \t array('id' => '22903','state_id' => '1845','name' => 'Ortonovo'),\n \t array('id' => '22904','state_id' => '1845','name' => 'Pietra Ligure'),\n \t array('id' => '22905','state_id' => '1845','name' => 'Rapallo'),\n \t array('id' => '22906','state_id' => '1845','name' => 'Recco'),\n \t array('id' => '22907','state_id' => '1845','name' => 'San Remo'),\n \t array('id' => '22908','state_id' => '1845','name' => 'Santa Margherita Ligure'),\n \t array('id' => '22909','state_id' => '1845','name' => 'Santo Stefano di Magra'),\n \t array('id' => '22910','state_id' => '1845','name' => 'Sarzana'),\n \t array('id' => '22911','state_id' => '1845','name' => 'Savona'),\n \t array('id' => '22912','state_id' => '1845','name' => 'Sestri Levante'),\n \t array('id' => '22913','state_id' => '1845','name' => 'Taggia'),\n \t array('id' => '22914','state_id' => '1845','name' => 'Varazze'),\n \t array('id' => '22915','state_id' => '1845','name' => 'Ventimiglia'),\n \t array('id' => '22916','state_id' => '1846','name' => 'Somaglia'),\n \t array('id' => '22917','state_id' => '1847','name' => 'Abbiategrasso'),\n \t array('id' => '22918','state_id' => '1847','name' => 'Agrate Brianza'),\n \t array('id' => '22919','state_id' => '1847','name' => 'Albiate'),\n \t array('id' => '22920','state_id' => '1847','name' => 'Albino'),\n \t array('id' => '22921','state_id' => '1847','name' => 'Albizzate'),\n \t array('id' => '22922','state_id' => '1847','name' => 'Alzano Lombardo'),\n \t array('id' => '22923','state_id' => '1847','name' => 'Arcisate'),\n \t array('id' => '22924','state_id' => '1847','name' => 'Arconate'),\n \t array('id' => '22925','state_id' => '1847','name' => 'Arcore'),\n \t array('id' => '22926','state_id' => '1847','name' => 'Arese'),\n \t array('id' => '22927','state_id' => '1847','name' => 'Arluno'),\n \t array('id' => '22928','state_id' => '1847','name' => 'Asola'),\n \t array('id' => '22929','state_id' => '1847','name' => 'Bagnolo Mella'),\n \t array('id' => '22930','state_id' => '1847','name' => 'Ballabio'),\n \t array('id' => '22931','state_id' => '1847','name' => 'Bareggio'),\n \t array('id' => '22932','state_id' => '1847','name' => 'Basiglio'),\n \t array('id' => '22933','state_id' => '1847','name' => 'Bedizzole'),\n \t array('id' => '22934','state_id' => '1847','name' => 'Bergamo'),\n \t array('id' => '22935','state_id' => '1847','name' => 'Bernareggio'),\n \t array('id' => '22936','state_id' => '1847','name' => 'Besana in Brianza'),\n \t array('id' => '22937','state_id' => '1847','name' => 'Besozzo'),\n \t array('id' => '22938','state_id' => '1847','name' => 'Biassono'),\n \t array('id' => '22939','state_id' => '1847','name' => 'Bienate'),\n \t array('id' => '22940','state_id' => '1847','name' => 'Bollate'),\n \t array('id' => '22941','state_id' => '1847','name' => 'Botticino'),\n \t array('id' => '22942','state_id' => '1847','name' => 'Bovisio-Masciago'),\n \t array('id' => '22943','state_id' => '1847','name' => 'Brembilla'),\n \t array('id' => '22944','state_id' => '1847','name' => 'Brescia'),\n \t array('id' => '22945','state_id' => '1847','name' => 'Bresso'),\n \t array('id' => '22946','state_id' => '1847','name' => 'Broni'),\n \t array('id' => '22947','state_id' => '1847','name' => 'Brugherio'),\n \t array('id' => '22948','state_id' => '1847','name' => 'Buccinasco'),\n \t array('id' => '22949','state_id' => '1847','name' => 'Bussero'),\n \t array('id' => '22950','state_id' => '1847','name' => 'Busto Arsizio'),\n \t array('id' => '22951','state_id' => '1847','name' => 'Busto Garolfo'),\n \t array('id' => '22952','state_id' => '1847','name' => 'Cairate'),\n \t array('id' => '22953','state_id' => '1847','name' => 'Calcinato'),\n \t array('id' => '22954','state_id' => '1847','name' => 'Calolziocorte'),\n \t array('id' => '22955','state_id' => '1847','name' => 'Calusco d\\'Adda'),\n \t array('id' => '22956','state_id' => '1847','name' => 'Canegrate'),\n \t array('id' => '22957','state_id' => '1847','name' => 'Cantu'),\n \t array('id' => '22958','state_id' => '1847','name' => 'Capriolo'),\n \t array('id' => '22959','state_id' => '1847','name' => 'Carate Brianza'),\n \t array('id' => '22960','state_id' => '1847','name' => 'Caravaggio'),\n \t array('id' => '22961','state_id' => '1847','name' => 'Cardano al Campo'),\n \t array('id' => '22962','state_id' => '1847','name' => 'Caronno Pertusella'),\n \t array('id' => '22963','state_id' => '1847','name' => 'Carpenedolo'),\n \t array('id' => '22964','state_id' => '1847','name' => 'Carugate'),\n \t array('id' => '22965','state_id' => '1847','name' => 'Carvico'),\n \t array('id' => '22966','state_id' => '1847','name' => 'Casalmaggiore'),\n \t array('id' => '22967','state_id' => '1847','name' => 'Casalpusterlengo'),\n \t array('id' => '22968','state_id' => '1847','name' => 'Casatenovo'),\n \t array('id' => '22969','state_id' => '1847','name' => 'Casazza'),\n \t array('id' => '22970','state_id' => '1847','name' => 'Casnigo'),\n \t array('id' => '22971','state_id' => '1847','name' => 'Cassano Magnago'),\n \t array('id' => '22972','state_id' => '1847','name' => 'Cassano d\\'Adda'),\n \t array('id' => '22973','state_id' => '1847','name' => 'Cassina de\\' Pecchi'),\n \t array('id' => '22974','state_id' => '1847','name' => 'Castano Primo'),\n \t array('id' => '22975','state_id' => '1847','name' => 'Castel Goffredo'),\n \t array('id' => '22976','state_id' => '1847','name' => 'Castel Mella'),\n \t array('id' => '22977','state_id' => '1847','name' => 'Castellanza'),\n \t array('id' => '22978','state_id' => '1847','name' => 'Castelleone'),\n \t array('id' => '22979','state_id' => '1847','name' => 'Castelli Calepio'),\n \t array('id' => '22980','state_id' => '1847','name' => 'Castenedolo'),\n \t array('id' => '22981','state_id' => '1847','name' => 'Castiglione delle Stiviere'),\n \t array('id' => '22982','state_id' => '1847','name' => 'Cazzago San Martino'),\n \t array('id' => '22983','state_id' => '1847','name' => 'Cene'),\n \t array('id' => '22984','state_id' => '1847','name' => 'Cermenate'),\n \t array('id' => '22985','state_id' => '1847','name' => 'Cernusco sul Naviglio'),\n \t array('id' => '22986','state_id' => '1847','name' => 'Cerro Maggiore'),\n \t array('id' => '22987','state_id' => '1847','name' => 'Cesano Boscone'),\n \t array('id' => '22988','state_id' => '1847','name' => 'Cesano Maderno'),\n \t array('id' => '22989','state_id' => '1847','name' => 'Cesate'),\n \t array('id' => '22990','state_id' => '1847','name' => 'Chiari'),\n \t array('id' => '22991','state_id' => '1847','name' => 'Cilavegna'),\n \t array('id' => '22992','state_id' => '1847','name' => 'Cinisello Balsamo'),\n \t array('id' => '22993','state_id' => '1847','name' => 'Cislago'),\n \t array('id' => '22994','state_id' => '1847','name' => 'Clusone'),\n \t array('id' => '22995','state_id' => '1847','name' => 'Codogno'),\n \t array('id' => '22996','state_id' => '1847','name' => 'Cologno Monzese'),\n \t array('id' => '22997','state_id' => '1847','name' => 'Cologno al Serio'),\n \t array('id' => '22998','state_id' => '1847','name' => 'Como'),\n \t array('id' => '22999','state_id' => '1847','name' => 'Concesio'),\n \t array('id' => '23000','state_id' => '1847','name' => 'Concorezzo'),\n \t array('id' => '23001','state_id' => '1847','name' => 'Corbetta'),\n \t array('id' => '23002','state_id' => '1847','name' => 'Cormano'),\n \t array('id' => '23003','state_id' => '1847','name' => 'Cornaredo'),\n \t array('id' => '23004','state_id' => '1847','name' => 'Cornate d\\'Adda'),\n \t array('id' => '23005','state_id' => '1847','name' => 'Corsico'),\n \t array('id' => '23006','state_id' => '1847','name' => 'Corte dei Cortesi'),\n \t array('id' => '23007','state_id' => '1847','name' => 'Costa Volpino'),\n \t array('id' => '23008','state_id' => '1847','name' => 'Crema'),\n \t array('id' => '23009','state_id' => '1847','name' => 'Cremona'),\n \t array('id' => '23010','state_id' => '1847','name' => 'Crocetta'),\n \t array('id' => '23011','state_id' => '1847','name' => 'Curtatone'),\n \t array('id' => '23012','state_id' => '1847','name' => 'Cusano Milanino'),\n \t array('id' => '23013','state_id' => '1847','name' => 'Dalmine'),\n \t array('id' => '23014','state_id' => '1847','name' => 'Darfo'),\n \t array('id' => '23015','state_id' => '1847','name' => 'Desenzano del Garda'),\n \t array('id' => '23016','state_id' => '1847','name' => 'Desio'),\n \t array('id' => '23017','state_id' => '1847','name' => 'Erba'),\n \t array('id' => '23018','state_id' => '1847','name' => 'Fagnano Olona'),\n \t array('id' => '23019','state_id' => '1847','name' => 'Fino Mornasco'),\n \t array('id' => '23020','state_id' => '1847','name' => 'Gaggiano'),\n \t array('id' => '23021','state_id' => '1847','name' => 'Galbiate'),\n \t array('id' => '23022','state_id' => '1847','name' => 'Gallarate'),\n \t array('id' => '23023','state_id' => '1847','name' => 'Gambolo'),\n \t array('id' => '23024','state_id' => '1847','name' => 'Garbagnate Milanese'),\n \t array('id' => '23025','state_id' => '1847','name' => 'Gardone Val Trompia'),\n \t array('id' => '23026','state_id' => '1847','name' => 'Garlasco'),\n \t array('id' => '23027','state_id' => '1847','name' => 'Gavardo'),\n \t array('id' => '23028','state_id' => '1847','name' => 'Gavirate'),\n \t array('id' => '23029','state_id' => '1847','name' => 'Gerenzano'),\n \t array('id' => '23030','state_id' => '1847','name' => 'Ghedi'),\n \t array('id' => '23031','state_id' => '1847','name' => 'Giussano'),\n \t array('id' => '23032','state_id' => '1847','name' => 'Goito'),\n \t array('id' => '23033','state_id' => '1847','name' => 'Gonzaga'),\n \t array('id' => '23034','state_id' => '1847','name' => 'Gorgonzola'),\n \t array('id' => '23035','state_id' => '1847','name' => 'Gussago'),\n \t array('id' => '23036','state_id' => '1847','name' => 'Gussola'),\n \t array('id' => '23037','state_id' => '1847','name' => 'Induno Olona'),\n \t array('id' => '23038','state_id' => '1847','name' => 'Inveruno'),\n \t array('id' => '23039','state_id' => '1847','name' => 'Inzago'),\n \t array('id' => '23040','state_id' => '1847','name' => 'Iseo'),\n \t array('id' => '23041','state_id' => '1847','name' => 'Isola Dovarese'),\n \t array('id' => '23042','state_id' => '1847','name' => 'Lacchiarella'),\n \t array('id' => '23043','state_id' => '1847','name' => 'Lainate'),\n \t array('id' => '23044','state_id' => '1847','name' => 'Laveno-Mombello'),\n \t array('id' => '23045','state_id' => '1847','name' => 'Lecco'),\n \t array('id' => '23046','state_id' => '1847','name' => 'Leffe'),\n \t array('id' => '23047','state_id' => '1847','name' => 'Legnano'),\n \t array('id' => '23048','state_id' => '1847','name' => 'Leno'),\n \t array('id' => '23049','state_id' => '1847','name' => 'Lentate sul Seveso'),\n \t array('id' => '23050','state_id' => '1847','name' => 'Limbiate'),\n \t array('id' => '23051','state_id' => '1847','name' => 'Lissone'),\n \t array('id' => '23052','state_id' => '1847','name' => 'Locate di Triulzi'),\n \t array('id' => '23053','state_id' => '1847','name' => 'Lodi'),\n \t array('id' => '23054','state_id' => '1847','name' => 'Lomazzo'),\n \t array('id' => '23055','state_id' => '1847','name' => 'Lonate Pozzolo'),\n \t array('id' => '23056','state_id' => '1847','name' => 'Lonato'),\n \t array('id' => '23057','state_id' => '1847','name' => 'Luino'),\n \t array('id' => '23058','state_id' => '1847','name' => 'Lumezzane'),\n \t array('id' => '23059','state_id' => '1847','name' => 'Lurate Caccivio'),\n \t array('id' => '23060','state_id' => '1847','name' => 'Magenta'),\n \t array('id' => '23061','state_id' => '1847','name' => 'Malnate'),\n \t array('id' => '23062','state_id' => '1847','name' => 'Mandello del Lario'),\n \t array('id' => '23063','state_id' => '1847','name' => 'Manerbio'),\n \t array('id' => '23064','state_id' => '1847','name' => 'Mantova'),\n \t array('id' => '23065','state_id' => '1847','name' => 'Mariano Comense'),\n \t array('id' => '23066','state_id' => '1847','name' => 'Martinengo'),\n \t array('id' => '23067','state_id' => '1847','name' => 'Mazzano'),\n \t array('id' => '23068','state_id' => '1847','name' => 'Meda'),\n \t array('id' => '23069','state_id' => '1847','name' => 'Mediglia'),\n \t array('id' => '23070','state_id' => '1847','name' => 'Melegnano'),\n \t array('id' => '23071','state_id' => '1847','name' => 'Melzo'),\n \t array('id' => '23072','state_id' => '1847','name' => 'Merate'),\n \t array('id' => '23073','state_id' => '1847','name' => 'Milano'),\n \t array('id' => '23074','state_id' => '1847','name' => 'Molteno'),\n \t array('id' => '23075','state_id' => '1847','name' => 'Montichiari'),\n \t array('id' => '23076','state_id' => '1847','name' => 'Monza'),\n \t array('id' => '23077','state_id' => '1847','name' => 'Morbegno'),\n \t array('id' => '23078','state_id' => '1847','name' => 'Mornago'),\n \t array('id' => '23079','state_id' => '1847','name' => 'Mortara'),\n \t array('id' => '23080','state_id' => '1847','name' => 'Muggio'),\n \t array('id' => '23081','state_id' => '1847','name' => 'Nave'),\n \t array('id' => '23082','state_id' => '1847','name' => 'Nembro'),\n \t array('id' => '23083','state_id' => '1847','name' => 'Nerviano'),\n \t array('id' => '23084','state_id' => '1847','name' => 'Nova Milanese'),\n \t array('id' => '23085','state_id' => '1847','name' => 'Novate Milanese'),\n \t array('id' => '23086','state_id' => '1847','name' => 'Olgiate Comasco'),\n \t array('id' => '23087','state_id' => '1847','name' => 'Olgiate Olona'),\n \t array('id' => '23088','state_id' => '1847','name' => 'Opera'),\n \t array('id' => '23089','state_id' => '1847','name' => 'Orzinuovi'),\n \t array('id' => '23090','state_id' => '1847','name' => 'Osio Sotto'),\n \t array('id' => '23091','state_id' => '1847','name' => 'Ospitaletto'),\n \t array('id' => '23092','state_id' => '1847','name' => 'Paderno Dugnano'),\n \t array('id' => '23093','state_id' => '1847','name' => 'Palazzolo sull\\'Oglio'),\n \t array('id' => '23094','state_id' => '1847','name' => 'Pandino'),\n \t array('id' => '23095','state_id' => '1847','name' => 'Parabiago'),\n \t array('id' => '23096','state_id' => '1847','name' => 'Paullo'),\n \t array('id' => '23097','state_id' => '1847','name' => 'Pavia'),\n \t array('id' => '23098','state_id' => '1847','name' => 'Pero'),\n \t array('id' => '23099','state_id' => '1847','name' => 'Peschiera Borromeo'),\n \t array('id' => '23100','state_id' => '1847','name' => 'Pessano con Bornago'),\n \t array('id' => '23101','state_id' => '1847','name' => 'Pieve Emanuele'),\n \t array('id' => '23102','state_id' => '1847','name' => 'Pioltello'),\n \t array('id' => '23103','state_id' => '1847','name' => 'Ponte Nossa'),\n \t array('id' => '23104','state_id' => '1847','name' => 'Ponte San Pietro'),\n \t array('id' => '23105','state_id' => '1847','name' => 'Porto Mantovano'),\n \t array('id' => '23106','state_id' => '1847','name' => 'Pozzolengo'),\n \t array('id' => '23107','state_id' => '1847','name' => 'Rescaldina'),\n \t array('id' => '23108','state_id' => '1847','name' => 'Rezzato'),\n \t array('id' => '23109','state_id' => '1847','name' => 'Rho'),\n \t array('id' => '23110','state_id' => '1847','name' => 'Rivarolo Mantovano'),\n \t array('id' => '23111','state_id' => '1847','name' => 'Rodano'),\n \t array('id' => '23112','state_id' => '1847','name' => 'Romano di Lombardia'),\n \t array('id' => '23113','state_id' => '1847','name' => 'Rovato'),\n \t array('id' => '23114','state_id' => '1847','name' => 'Rozzano'),\n \t array('id' => '23115','state_id' => '1847','name' => 'Saletto'),\n \t array('id' => '23116','state_id' => '1847','name' => 'Salo'),\n \t array('id' => '23117','state_id' => '1847','name' => 'Samarate'),\n \t array('id' => '23118','state_id' => '1847','name' => 'San Donato Milanese'),\n \t array('id' => '23119','state_id' => '1847','name' => 'San Giuliano Milanese'),\n \t array('id' => '23120','state_id' => '1847','name' => 'Sant\\'Angelo Lodigiano'),\n \t array('id' => '23121','state_id' => '1847','name' => 'Sarezzo'),\n \t array('id' => '23122','state_id' => '1847','name' => 'Saronno'),\n \t array('id' => '23123','state_id' => '1847','name' => 'Scanzorosciate'),\n \t array('id' => '23124','state_id' => '1847','name' => 'Sedriano'),\n \t array('id' => '23125','state_id' => '1847','name' => 'Segrate'),\n \t array('id' => '23126','state_id' => '1847','name' => 'Senago'),\n \t array('id' => '23127','state_id' => '1847','name' => 'Seregno'),\n \t array('id' => '23128','state_id' => '1847','name' => 'Seriate'),\n \t array('id' => '23129','state_id' => '1847','name' => 'Sesto Calende'),\n \t array('id' => '23130','state_id' => '1847','name' => 'Sesto San Giovanni'),\n \t array('id' => '23131','state_id' => '1847','name' => 'Settimo Milanese'),\n \t array('id' => '23132','state_id' => '1847','name' => 'Seveso'),\n \t array('id' => '23133','state_id' => '1847','name' => 'Sirmione'),\n \t array('id' => '23134','state_id' => '1847','name' => 'Solaro'),\n \t array('id' => '23135','state_id' => '1847','name' => 'Somma Lombardo'),\n \t array('id' => '23136','state_id' => '1847','name' => 'Sondrio'),\n \t array('id' => '23137','state_id' => '1847','name' => 'Soresina'),\n \t array('id' => '23138','state_id' => '1847','name' => 'Sorisole'),\n \t array('id' => '23139','state_id' => '1847','name' => 'Stezzano'),\n \t array('id' => '23140','state_id' => '1847','name' => 'Stradella'),\n \t array('id' => '23141','state_id' => '1847','name' => 'Suzzara'),\n \t array('id' => '23142','state_id' => '1847','name' => 'Tirano'),\n \t array('id' => '23143','state_id' => '1847','name' => 'Tornata'),\n \t array('id' => '23144','state_id' => '1847','name' => 'Tradate'),\n \t array('id' => '23145','state_id' => '1847','name' => 'Travagliato'),\n \t array('id' => '23146','state_id' => '1847','name' => 'Treviglio'),\n \t array('id' => '23147','state_id' => '1847','name' => 'Treviolo'),\n \t array('id' => '23148','state_id' => '1847','name' => 'Trezzano sul Naviglio'),\n \t array('id' => '23149','state_id' => '1847','name' => 'Trezzo'),\n \t array('id' => '23150','state_id' => '1847','name' => 'Tromello'),\n \t array('id' => '23151','state_id' => '1847','name' => 'Uboldo'),\n \t array('id' => '23152','state_id' => '1847','name' => 'Urgnano'),\n \t array('id' => '23153','state_id' => '1847','name' => 'Usmate Velate'),\n \t array('id' => '23154','state_id' => '1847','name' => 'Valmadrera'),\n \t array('id' => '23155','state_id' => '1847','name' => 'Varedo'),\n \t array('id' => '23156','state_id' => '1847','name' => 'Varese'),\n \t array('id' => '23157','state_id' => '1847','name' => 'Verano Brianza'),\n \t array('id' => '23158','state_id' => '1847','name' => 'Vergiate'),\n \t array('id' => '23159','state_id' => '1847','name' => 'Viadana'),\n \t array('id' => '23160','state_id' => '1847','name' => 'Vigevano'),\n \t array('id' => '23161','state_id' => '1847','name' => 'Vignate'),\n \t array('id' => '23162','state_id' => '1847','name' => 'Villa Carcina'),\n \t array('id' => '23163','state_id' => '1847','name' => 'Villa Guardia'),\n \t array('id' => '23164','state_id' => '1847','name' => 'Villasanta'),\n \t array('id' => '23165','state_id' => '1847','name' => 'Vimercate'),\n \t array('id' => '23166','state_id' => '1847','name' => 'Vimodrone'),\n \t array('id' => '23167','state_id' => '1847','name' => 'Virgilio'),\n \t array('id' => '23168','state_id' => '1847','name' => 'Voghera'),\n \t array('id' => '23169','state_id' => '1847','name' => 'Zibido San Giacomo'),\n \t array('id' => '23170','state_id' => '1847','name' => 'Zogno'),\n \t array('id' => '23171','state_id' => '1848','name' => 'Barasso'),\n \t array('id' => '23172','state_id' => '1848','name' => 'Bergamo'),\n \t array('id' => '23173','state_id' => '1848','name' => 'Bolladello'),\n \t array('id' => '23174','state_id' => '1848','name' => 'Capergnanica'),\n \t array('id' => '23175','state_id' => '1848','name' => 'Costa Masnaga'),\n \t array('id' => '23176','state_id' => '1848','name' => 'Medolago'),\n \t array('id' => '23177','state_id' => '1848','name' => 'Nibionno'),\n \t array('id' => '23178','state_id' => '1848','name' => 'Rodano'),\n \t array('id' => '23179','state_id' => '1848','name' => 'Sordio'),\n \t array('id' => '23180','state_id' => '1848','name' => 'Torre d\\'Isola'),\n \t array('id' => '23181','state_id' => '1848','name' => 'Varese'),\n \t array('id' => '23182','state_id' => '1848','name' => 'Villongo'),\n \t array('id' => '23183','state_id' => '1848','name' => 'milan'),\n \t array('id' => '23184','state_id' => '1849','name' => 'Colmurano'),\n \t array('id' => '23185','state_id' => '1849','name' => 'Monte San Giusto'),\n \t array('id' => '23186','state_id' => '1850','name' => 'Castel'),\n \t array('id' => '23187','state_id' => '1850','name' => 'Gazoldo'),\n \t array('id' => '23188','state_id' => '1850','name' => 'Marmirolo'),\n \t array('id' => '23189','state_id' => '1850','name' => 'Monzambano'),\n \t array('id' => '23190','state_id' => '1850','name' => 'Ostiglia'),\n \t array('id' => '23191','state_id' => '1850','name' => 'Pegognaga'),\n \t array('id' => '23192','state_id' => '1850','name' => 'Poggio Rusco'),\n \t array('id' => '23193','state_id' => '1850','name' => 'Quistello'),\n \t array('id' => '23194','state_id' => '1850','name' => 'Roverbella'),\n \t array('id' => '23195','state_id' => '1850','name' => 'Suzzara'),\n \t array('id' => '23196','state_id' => '1851','name' => 'Ancona'),\n \t array('id' => '23197','state_id' => '1851','name' => 'Ascoli Piceno'),\n \t array('id' => '23198','state_id' => '1851','name' => 'Barchi'),\n \t array('id' => '23199','state_id' => '1851','name' => 'Cagli'),\n \t array('id' => '23200','state_id' => '1851','name' => 'Castelfidardo'),\n \t array('id' => '23201','state_id' => '1851','name' => 'Chiaravalle'),\n \t array('id' => '23202','state_id' => '1851','name' => 'Cingoli'),\n \t array('id' => '23203','state_id' => '1851','name' => 'Civitanova Marche'),\n \t array('id' => '23204','state_id' => '1851','name' => 'Corridonia'),\n \t array('id' => '23205','state_id' => '1851','name' => 'Fabriano'),\n \t array('id' => '23206','state_id' => '1851','name' => 'Falconara Marittima'),\n \t array('id' => '23207','state_id' => '1851','name' => 'Fano'),\n \t array('id' => '23208','state_id' => '1851','name' => 'Fermo'),\n \t array('id' => '23209','state_id' => '1851','name' => 'Filottrano'),\n \t array('id' => '23210','state_id' => '1851','name' => 'Folignano'),\n \t array('id' => '23211','state_id' => '1851','name' => 'Fossombrone'),\n \t array('id' => '23212','state_id' => '1851','name' => 'Grottammare'),\n \t array('id' => '23213','state_id' => '1851','name' => 'Jesi'),\n \t array('id' => '23214','state_id' => '1851','name' => 'Loreto'),\n \t array('id' => '23215','state_id' => '1851','name' => 'Macerata'),\n \t array('id' => '23216','state_id' => '1851','name' => 'Matelica'),\n \t array('id' => '23217','state_id' => '1851','name' => 'Mondavio'),\n \t array('id' => '23218','state_id' => '1851','name' => 'Mondolfo'),\n \t array('id' => '23219','state_id' => '1851','name' => 'Montappone'),\n \t array('id' => '23220','state_id' => '1851','name' => 'Montecosaro'),\n \t array('id' => '23221','state_id' => '1851','name' => 'Montegranaro'),\n \t array('id' => '23222','state_id' => '1851','name' => 'Montemarciano'),\n \t array('id' => '23223','state_id' => '1851','name' => 'Monteprandone'),\n \t array('id' => '23224','state_id' => '1851','name' => 'Morrovalle'),\n \t array('id' => '23225','state_id' => '1851','name' => 'Osimo'),\n \t array('id' => '23226','state_id' => '1851','name' => 'Pesaro'),\n \t array('id' => '23227','state_id' => '1851','name' => 'Polverigi'),\n \t array('id' => '23228','state_id' => '1851','name' => 'Porto Recanati'),\n \t array('id' => '23229','state_id' => '1851','name' => 'Porto San Giorgio'),\n \t array('id' => '23230','state_id' => '1851','name' => 'Porto Sant\\'Elpidio'),\n \t array('id' => '23231','state_id' => '1851','name' => 'Potenza Picena'),\n \t array('id' => '23232','state_id' => '1851','name' => 'Recanati'),\n \t array('id' => '23233','state_id' => '1851','name' => 'San Benedetto del Tronto'),\n \t array('id' => '23234','state_id' => '1851','name' => 'San Severino Marche'),\n \t array('id' => '23235','state_id' => '1851','name' => 'Sant\\'Elpidio a Mare'),\n \t array('id' => '23236','state_id' => '1851','name' => 'Senigallia'),\n \t array('id' => '23237','state_id' => '1851','name' => 'Tolentino'),\n \t array('id' => '23238','state_id' => '1851','name' => 'Treia'),\n \t array('id' => '23239','state_id' => '1851','name' => 'Urbino'),\n \t array('id' => '23240','state_id' => '1852','name' => 'Cumiana'),\n \t array('id' => '23241','state_id' => '1852','name' => 'Giammoro'),\n \t array('id' => '23242','state_id' => '1853','name' => 'Assago'),\n \t array('id' => '23243','state_id' => '1853','name' => 'Besana in Brianza'),\n \t array('id' => '23244','state_id' => '1853','name' => 'Biassono'),\n \t array('id' => '23245','state_id' => '1853','name' => 'Burago Molgora'),\n \t array('id' => '23246','state_id' => '1853','name' => 'Cernusco Sul Naviglio'),\n \t array('id' => '23247','state_id' => '1853','name' => 'Cologno Monzese'),\n \t array('id' => '23248','state_id' => '1853','name' => 'Concorezzo'),\n \t array('id' => '23249','state_id' => '1853','name' => 'Cornaredo'),\n \t array('id' => '23250','state_id' => '1853','name' => 'Cuggiono'),\n \t array('id' => '23251','state_id' => '1853','name' => 'Cusago'),\n \t array('id' => '23252','state_id' => '1853','name' => 'Foro Buonaparte'),\n \t array('id' => '23253','state_id' => '1853','name' => 'Gessate'),\n \t array('id' => '23254','state_id' => '1853','name' => 'Gorgonzola'),\n \t array('id' => '23255','state_id' => '1853','name' => 'Liscate'),\n \t array('id' => '23256','state_id' => '1853','name' => 'Magenta'),\n \t array('id' => '23257','state_id' => '1853','name' => 'Milan'),\n \t array('id' => '23258','state_id' => '1853','name' => 'Noviglio'),\n \t array('id' => '23259','state_id' => '1853','name' => 'Passirana Di Rho'),\n \t array('id' => '23260','state_id' => '1853','name' => 'Pregnana Milane'),\n \t array('id' => '23261','state_id' => '1853','name' => 'San Donato Milanese'),\n \t array('id' => '23262','state_id' => '1853','name' => 'Seregno'),\n \t array('id' => '23263','state_id' => '1853','name' => 'Trezzo Sull\\'adda'),\n \t array('id' => '23264','state_id' => '1853','name' => 'Tribiano'),\n \t array('id' => '23265','state_id' => '1853','name' => 'Vaprio d\\'Adda'),\n \t array('id' => '23266','state_id' => '1853','name' => 'Vermezzo'),\n \t array('id' => '23267','state_id' => '1854','name' => 'Bomporto'),\n \t array('id' => '23268','state_id' => '1854','name' => 'Campogalliano'),\n \t array('id' => '23269','state_id' => '1854','name' => 'Cavezzo'),\n \t array('id' => '23270','state_id' => '1854','name' => 'Medolla'),\n \t array('id' => '23271','state_id' => '1854','name' => 'Nonantola'),\n \t array('id' => '23272','state_id' => '1854','name' => 'San Possidonio'),\n \t array('id' => '23273','state_id' => '1854','name' => 'Sassuolo'),\n \t array('id' => '23274','state_id' => '1854','name' => 'Spilamberto'),\n \t array('id' => '23275','state_id' => '1855','name' => 'Bojano'),\n \t array('id' => '23276','state_id' => '1855','name' => 'Campobasso'),\n \t array('id' => '23277','state_id' => '1855','name' => 'Cantalupo'),\n \t array('id' => '23278','state_id' => '1855','name' => 'Isernia'),\n \t array('id' => '23279','state_id' => '1855','name' => 'Termoli'),\n \t array('id' => '23280','state_id' => '1855','name' => 'Venafro'),\n \t array('id' => '23281','state_id' => '1857','name' => 'Montenegro'),\n \t array('id' => '23282','state_id' => '1859','name' => 'Forio d\\'Ischia'),\n \t array('id' => '23283','state_id' => '1860','name' => 'Bogogno'),\n \t array('id' => '23284','state_id' => '1860','name' => 'Invorio'),\n \t array('id' => '23285','state_id' => '1860','name' => 'Pombia'),\n \t array('id' => '23286','state_id' => '1861','name' => 'Bagnoli di Sopra'),\n \t array('id' => '23287','state_id' => '1861','name' => 'Bovolenta'),\n \t array('id' => '23288','state_id' => '1861','name' => 'Casale Di Scodosia'),\n \t array('id' => '23289','state_id' => '1861','name' => 'Cervarese Santa Croce'),\n \t array('id' => '23290','state_id' => '1861','name' => 'Fontaniva'),\n \t array('id' => '23291','state_id' => '1861','name' => 'Galliera Veneta'),\n \t array('id' => '23292','state_id' => '1861','name' => 'Legnaro'),\n \t array('id' => '23293','state_id' => '1861','name' => 'Limena'),\n \t array('id' => '23294','state_id' => '1861','name' => 'Loreggia'),\n \t array('id' => '23295','state_id' => '1861','name' => 'Massanzago'),\n \t array('id' => '23296','state_id' => '1861','name' => 'Onara'),\n \t array('id' => '23297','state_id' => '1861','name' => 'Ponso'),\n \t array('id' => '23298','state_id' => '1861','name' => 'Portogallo'),\n \t array('id' => '23299','state_id' => '1861','name' => 'Tribano'),\n \t array('id' => '23300','state_id' => '1862','name' => 'Baganzola'),\n \t array('id' => '23301','state_id' => '1862','name' => 'Busseto'),\n \t array('id' => '23302','state_id' => '1862','name' => 'Casale Di Mezzani'),\n \t array('id' => '23303','state_id' => '1862','name' => 'Fontevivo'),\n \t array('id' => '23304','state_id' => '1862','name' => 'Solignano'),\n \t array('id' => '23305','state_id' => '1862','name' => 'Torrile'),\n \t array('id' => '23306','state_id' => '1863','name' => 'Codevilla'),\n \t array('id' => '23307','state_id' => '1863','name' => 'Marcignago'),\n \t array('id' => '23308','state_id' => '1863','name' => 'Pavia'),\n \t array('id' => '23309','state_id' => '1863','name' => 'Siziano'),\n \t array('id' => '23310','state_id' => '1864','name' => 'Pianello'),\n \t array('id' => '23311','state_id' => '1864','name' => 'Ponte Felcino'),\n \t array('id' => '23312','state_id' => '1864','name' => 'Zanica'),\n \t array('id' => '23313','state_id' => '1865','name' => 'Gradara'),\n \t array('id' => '23314','state_id' => '1865','name' => 'Monte Porzio'),\n \t array('id' => '23315','state_id' => '1865','name' => 'Pergola'),\n \t array('id' => '23316','state_id' => '1865','name' => 'Tavullia'),\n \t array('id' => '23317','state_id' => '1866','name' => 'Alseno'),\n \t array('id' => '23318','state_id' => '1866','name' => 'Gossolengo'),\n \t array('id' => '23319','state_id' => '1866','name' => 'Vigolzone'),\n \t array('id' => '23320','state_id' => '1867','name' => 'Armeno'),\n \t array('id' => '23321','state_id' => '1867','name' => 'Bergamasco'),\n \t array('id' => '23322','state_id' => '1867','name' => 'Caselette'),\n \t array('id' => '23323','state_id' => '1867','name' => 'Rosta'),\n \t array('id' => '23324','state_id' => '1867','name' => 'San Damiano'),\n \t array('id' => '23325','state_id' => '1867','name' => 'Spinetta Marengo'),\n \t array('id' => '23326','state_id' => '1868','name' => 'Acqui Terme'),\n \t array('id' => '23327','state_id' => '1868','name' => 'Alba'),\n \t array('id' => '23328','state_id' => '1868','name' => 'Alessandria'),\n \t array('id' => '23329','state_id' => '1868','name' => 'Alpignano'),\n \t array('id' => '23330','state_id' => '1868','name' => 'Andezeno'),\n \t array('id' => '23331','state_id' => '1868','name' => 'Andonno'),\n \t array('id' => '23332','state_id' => '1868','name' => 'Arona'),\n \t array('id' => '23333','state_id' => '1868','name' => 'Asti'),\n \t array('id' => '23334','state_id' => '1868','name' => 'Avigliana'),\n \t array('id' => '23335','state_id' => '1868','name' => 'Baveno'),\n \t array('id' => '23336','state_id' => '1868','name' => 'Beinasco'),\n \t array('id' => '23337','state_id' => '1868','name' => 'Bellinzago Novarese'),\n \t array('id' => '23338','state_id' => '1868','name' => 'Biella'),\n \t array('id' => '23339','state_id' => '1868','name' => 'Borgaro Torinese'),\n \t array('id' => '23340','state_id' => '1868','name' => 'Borgo San Dalmazzo'),\n \t array('id' => '23341','state_id' => '1868','name' => 'Borgomanero'),\n \t array('id' => '23342','state_id' => '1868','name' => 'Borgosesia'),\n \t array('id' => '23343','state_id' => '1868','name' => 'Boves'),\n \t array('id' => '23344','state_id' => '1868','name' => 'Bra'),\n \t array('id' => '23345','state_id' => '1868','name' => 'Busca'),\n \t array('id' => '23346','state_id' => '1868','name' => 'Cameri'),\n \t array('id' => '23347','state_id' => '1868','name' => 'Canelli'),\n \t array('id' => '23348','state_id' => '1868','name' => 'Carignano'),\n \t array('id' => '23349','state_id' => '1868','name' => 'Carmagnola'),\n \t array('id' => '23350','state_id' => '1868','name' => 'Casale Monferrato'),\n \t array('id' => '23351','state_id' => '1868','name' => 'Caselle Torinese'),\n \t array('id' => '23352','state_id' => '1868','name' => 'Castellamonte'),\n \t array('id' => '23353','state_id' => '1868','name' => 'Castelletto sopra Ticino'),\n \t array('id' => '23354','state_id' => '1868','name' => 'Chieri'),\n \t array('id' => '23355','state_id' => '1868','name' => 'Chivasso'),\n \t array('id' => '23356','state_id' => '1868','name' => 'Cirie'),\n \t array('id' => '23357','state_id' => '1868','name' => 'Collegno'),\n \t array('id' => '23358','state_id' => '1868','name' => 'Cossato'),\n \t array('id' => '23359','state_id' => '1868','name' => 'Cuneo'),\n \t array('id' => '23360','state_id' => '1868','name' => 'Cuorgne'),\n \t array('id' => '23361','state_id' => '1868','name' => 'Domodossola'),\n \t array('id' => '23362','state_id' => '1868','name' => 'Druento'),\n \t array('id' => '23363','state_id' => '1868','name' => 'Fossano'),\n \t array('id' => '23364','state_id' => '1868','name' => 'Galliate'),\n \t array('id' => '23365','state_id' => '1868','name' => 'Gassino Torinese'),\n \t array('id' => '23366','state_id' => '1868','name' => 'Gattinara'),\n \t array('id' => '23367','state_id' => '1868','name' => 'Giaveno'),\n \t array('id' => '23368','state_id' => '1868','name' => 'Grugliasco'),\n \t array('id' => '23369','state_id' => '1868','name' => 'Ivrea'),\n \t array('id' => '23370','state_id' => '1868','name' => 'Leini'),\n \t array('id' => '23371','state_id' => '1868','name' => 'Lusigliè'),\n \t array('id' => '23372','state_id' => '1868','name' => 'Marano Ticino'),\n \t array('id' => '23373','state_id' => '1868','name' => 'Mergozzo'),\n \t array('id' => '23374','state_id' => '1868','name' => 'Moncalieri'),\n \t array('id' => '23375','state_id' => '1868','name' => 'Mondovi'),\n \t array('id' => '23376','state_id' => '1868','name' => 'Mongrando'),\n \t array('id' => '23377','state_id' => '1868','name' => 'Nichelino'),\n \t array('id' => '23378','state_id' => '1868','name' => 'Nizza Monferrato'),\n \t array('id' => '23379','state_id' => '1868','name' => 'Novara'),\n \t array('id' => '23380','state_id' => '1868','name' => 'Novi Ligure'),\n \t array('id' => '23381','state_id' => '1868','name' => 'Oleggio'),\n \t array('id' => '23382','state_id' => '1868','name' => 'Omegna'),\n \t array('id' => '23383','state_id' => '1868','name' => 'Orbassano'),\n \t array('id' => '23384','state_id' => '1868','name' => 'Ovada'),\n \t array('id' => '23385','state_id' => '1868','name' => 'Pianezza'),\n \t array('id' => '23386','state_id' => '1868','name' => 'Pinerolo'),\n \t array('id' => '23387','state_id' => '1868','name' => 'Pino Torinese'),\n \t array('id' => '23388','state_id' => '1868','name' => 'Piossasco'),\n \t array('id' => '23389','state_id' => '1868','name' => 'Poirino'),\n \t array('id' => '23390','state_id' => '1868','name' => 'Racconigi'),\n \t array('id' => '23391','state_id' => '1868','name' => 'Rivalta di Torino'),\n \t array('id' => '23392','state_id' => '1868','name' => 'Rivarolo Canavese'),\n \t array('id' => '23393','state_id' => '1868','name' => 'Rivoli'),\n \t array('id' => '23394','state_id' => '1868','name' => 'Saluzzo'),\n \t array('id' => '23395','state_id' => '1868','name' => 'San Maurizio'),\n \t array('id' => '23396','state_id' => '1868','name' => 'San Mauro Torinese'),\n \t array('id' => '23397','state_id' => '1868','name' => 'Sandigliano'),\n \t array('id' => '23398','state_id' => '1868','name' => 'Santena'),\n \t array('id' => '23399','state_id' => '1868','name' => 'Santhia'),\n \t array('id' => '23400','state_id' => '1868','name' => 'Savigliano'),\n \t array('id' => '23401','state_id' => '1868','name' => 'Settimo Torinese'),\n \t array('id' => '23402','state_id' => '1868','name' => 'Torino'),\n \t array('id' => '23403','state_id' => '1868','name' => 'Tortona'),\n \t array('id' => '23404','state_id' => '1868','name' => 'Trecate'),\n \t array('id' => '23405','state_id' => '1868','name' => 'Trofarello'),\n \t array('id' => '23406','state_id' => '1868','name' => 'Valduggia'),\n \t array('id' => '23407','state_id' => '1868','name' => 'Valenza'),\n \t array('id' => '23408','state_id' => '1868','name' => 'Venaria Reale'),\n \t array('id' => '23409','state_id' => '1868','name' => 'Verbania'),\n \t array('id' => '23410','state_id' => '1868','name' => 'Vercelli'),\n \t array('id' => '23411','state_id' => '1868','name' => 'Vigliano Biellese'),\n \t array('id' => '23412','state_id' => '1868','name' => 'Vinovo'),\n \t array('id' => '23413','state_id' => '1868','name' => 'Volpiano'),\n \t array('id' => '23414','state_id' => '1869','name' => 'Perignano'),\n \t array('id' => '23415','state_id' => '1869','name' => 'Ponte a Egola'),\n \t array('id' => '23416','state_id' => '1870','name' => 'San Quirino'),\n \t array('id' => '23417','state_id' => '1871','name' => 'Latronico'),\n \t array('id' => '23418','state_id' => '1872','name' => 'Acquaviva delle Fonti'),\n \t array('id' => '23419','state_id' => '1872','name' => 'Adelfia'),\n \t array('id' => '23420','state_id' => '1872','name' => 'Alberobello'),\n \t array('id' => '23421','state_id' => '1872','name' => 'Altamura'),\n \t array('id' => '23422','state_id' => '1872','name' => 'Andria'),\n \t array('id' => '23423','state_id' => '1872','name' => 'Apricena'),\n \t array('id' => '23424','state_id' => '1872','name' => 'Aradeo'),\n \t array('id' => '23425','state_id' => '1872','name' => 'Bari'),\n \t array('id' => '23426','state_id' => '1872','name' => 'Barletta'),\n \t array('id' => '23427','state_id' => '1872','name' => 'Bisceglie'),\n \t array('id' => '23428','state_id' => '1872','name' => 'Bitetto'),\n \t array('id' => '23429','state_id' => '1872','name' => 'Bitonto'),\n \t array('id' => '23430','state_id' => '1872','name' => 'Bitritto'),\n \t array('id' => '23431','state_id' => '1872','name' => 'Brindisi'),\n \t array('id' => '23432','state_id' => '1872','name' => 'Campi Salentina'),\n \t array('id' => '23433','state_id' => '1872','name' => 'Canosa di Puglia'),\n \t array('id' => '23434','state_id' => '1872','name' => 'Capurso'),\n \t array('id' => '23435','state_id' => '1872','name' => 'Carmiano'),\n \t array('id' => '23436','state_id' => '1872','name' => 'Carovigno'),\n \t array('id' => '23437','state_id' => '1872','name' => 'Casamassima'),\n \t array('id' => '23438','state_id' => '1872','name' => 'Casarano'),\n \t array('id' => '23439','state_id' => '1872','name' => 'Cassano delle Murge'),\n \t array('id' => '23440','state_id' => '1872','name' => 'Castellana Grotte'),\n \t array('id' => '23441','state_id' => '1872','name' => 'Castellaneta'),\n \t array('id' => '23442','state_id' => '1872','name' => 'Cavallino'),\n \t array('id' => '23443','state_id' => '1872','name' => 'Ceglie Messapica'),\n \t array('id' => '23444','state_id' => '1872','name' => 'Cerignola'),\n \t array('id' => '23445','state_id' => '1872','name' => 'Cisternino'),\n \t array('id' => '23446','state_id' => '1872','name' => 'Conversano'),\n \t array('id' => '23447','state_id' => '1872','name' => 'Copertino'),\n \t array('id' => '23448','state_id' => '1872','name' => 'Corato'),\n \t array('id' => '23449','state_id' => '1872','name' => 'Crispiano'),\n \t array('id' => '23450','state_id' => '1872','name' => 'Cutrofiano'),\n \t array('id' => '23451','state_id' => '1872','name' => 'Erchie'),\n \t array('id' => '23452','state_id' => '1872','name' => 'Fasano'),\n \t array('id' => '23453','state_id' => '1872','name' => 'Foggia'),\n \t array('id' => '23454','state_id' => '1872','name' => 'Francavilla Fontana'),\n \t array('id' => '23455','state_id' => '1872','name' => 'Galatina'),\n \t array('id' => '23456','state_id' => '1872','name' => 'Galatone'),\n \t array('id' => '23457','state_id' => '1872','name' => 'Gallipoli'),\n \t array('id' => '23458','state_id' => '1872','name' => 'Ginosa'),\n \t array('id' => '23459','state_id' => '1872','name' => 'Gioia del Colle'),\n \t array('id' => '23460','state_id' => '1872','name' => 'Giovinazzo'),\n \t array('id' => '23461','state_id' => '1872','name' => 'Gravina in Puglia'),\n \t array('id' => '23462','state_id' => '1872','name' => 'Grottaglie'),\n \t array('id' => '23463','state_id' => '1872','name' => 'Grumo Appula'),\n \t array('id' => '23464','state_id' => '1872','name' => 'Laterza'),\n \t array('id' => '23465','state_id' => '1872','name' => 'Latiano'),\n \t array('id' => '23466','state_id' => '1872','name' => 'Lecce'),\n \t array('id' => '23467','state_id' => '1872','name' => 'Leverano'),\n \t array('id' => '23468','state_id' => '1872','name' => 'Lizzanello'),\n \t array('id' => '23469','state_id' => '1872','name' => 'Lizzano'),\n \t array('id' => '23470','state_id' => '1872','name' => 'Locorotondo'),\n \t array('id' => '23471','state_id' => '1872','name' => 'Lucera'),\n \t array('id' => '23472','state_id' => '1872','name' => 'Maglie'),\n \t array('id' => '23473','state_id' => '1872','name' => 'Manduria'),\n \t array('id' => '23474','state_id' => '1872','name' => 'Manfredonia'),\n \t array('id' => '23475','state_id' => '1872','name' => 'Margherita di Savoia'),\n \t array('id' => '23476','state_id' => '1872','name' => 'Martano'),\n \t array('id' => '23477','state_id' => '1872','name' => 'Martina Franca'),\n \t array('id' => '23478','state_id' => '1872','name' => 'Massafra'),\n \t array('id' => '23479','state_id' => '1872','name' => 'Matino'),\n \t array('id' => '23480','state_id' => '1872','name' => 'Melendugno'),\n \t array('id' => '23481','state_id' => '1872','name' => 'Mesagne'),\n \t array('id' => '23482','state_id' => '1872','name' => 'Minervino Murge'),\n \t array('id' => '23483','state_id' => '1872','name' => 'Modugno'),\n \t array('id' => '23484','state_id' => '1872','name' => 'Mola di Bari'),\n \t array('id' => '23485','state_id' => '1872','name' => 'Molfetta'),\n \t array('id' => '23486','state_id' => '1872','name' => 'Monopoli'),\n \t array('id' => '23487','state_id' => '1872','name' => 'Monte Sant\\'Angelo'),\n \t array('id' => '23488','state_id' => '1872','name' => 'Monteroni di Lecce'),\n \t array('id' => '23489','state_id' => '1872','name' => 'Mottola'),\n \t array('id' => '23490','state_id' => '1872','name' => 'Nardo'),\n \t array('id' => '23491','state_id' => '1872','name' => 'Neviano'),\n \t array('id' => '23492','state_id' => '1872','name' => 'Noci'),\n \t array('id' => '23493','state_id' => '1872','name' => 'Noicattaro'),\n \t array('id' => '23494','state_id' => '1872','name' => 'Novoli'),\n \t array('id' => '23495','state_id' => '1872','name' => 'Oria'),\n \t array('id' => '23496','state_id' => '1872','name' => 'Orta Nova'),\n \t array('id' => '23497','state_id' => '1872','name' => 'Ostuni'),\n \t array('id' => '23498','state_id' => '1872','name' => 'Palagiano'),\n \t array('id' => '23499','state_id' => '1872','name' => 'Palo del Colle'),\n \t array('id' => '23500','state_id' => '1872','name' => 'Parabita'),\n \t array('id' => '23501','state_id' => '1872','name' => 'Polignano a Mare'),\n \t array('id' => '23502','state_id' => '1872','name' => 'Pulsano'),\n \t array('id' => '23503','state_id' => '1872','name' => 'Putignano'),\n \t array('id' => '23505','state_id' => '1872','name' => 'Racale'),\n \t array('id' => '23506','state_id' => '1872','name' => 'Ruffano'),\n \t array('id' => '23507','state_id' => '1872','name' => 'Rutigliano'),\n \t array('id' => '23508','state_id' => '1872','name' => 'Ruvo di Puglia'),\n \t array('id' => '23509','state_id' => '1872','name' => 'Salice Salentino'),\n \t array('id' => '23510','state_id' => '1872','name' => 'San Ferdinando di Puglia'),\n \t array('id' => '23511','state_id' => '1872','name' => 'San Giorgio Ionico'),\n \t array('id' => '23512','state_id' => '1872','name' => 'San Giovanni Rotondo'),\n \t array('id' => '23513','state_id' => '1872','name' => 'San Marco in Lamis'),\n \t array('id' => '23514','state_id' => '1872','name' => 'San Marzano di San Giuseppe'),\n \t array('id' => '23515','state_id' => '1872','name' => 'San Nicandro Garganico'),\n \t array('id' => '23516','state_id' => '1872','name' => 'San Pancrazio Salentino'),\n \t array('id' => '23517','state_id' => '1872','name' => 'San Pietro Vernotico'),\n \t array('id' => '23518','state_id' => '1872','name' => 'San Severo'),\n \t array('id' => '23519','state_id' => '1872','name' => 'San Vito dei Normanni'),\n \t array('id' => '23520','state_id' => '1872','name' => 'Sannicandro di Bari'),\n \t array('id' => '23521','state_id' => '1872','name' => 'Santeramo in Colle'),\n \t array('id' => '23522','state_id' => '1872','name' => 'Sava'),\n \t array('id' => '23523','state_id' => '1872','name' => 'Squinzano'),\n \t array('id' => '23524','state_id' => '1872','name' => 'Statte'),\n \t array('id' => '23525','state_id' => '1872','name' => 'Surbo'),\n \t array('id' => '23526','state_id' => '1872','name' => 'Taranto'),\n \t array('id' => '23527','state_id' => '1872','name' => 'Taurisano'),\n \t array('id' => '23528','state_id' => '1872','name' => 'Taviano'),\n \t array('id' => '23529','state_id' => '1872','name' => 'Terlizzi'),\n \t array('id' => '23530','state_id' => '1872','name' => 'Toritto'),\n \t array('id' => '23531','state_id' => '1872','name' => 'Torre Santa Susanna'),\n \t array('id' => '23532','state_id' => '1872','name' => 'Torremaggiore'),\n \t array('id' => '23533','state_id' => '1872','name' => 'Trani'),\n \t array('id' => '23534','state_id' => '1872','name' => 'Trepuzzi'),\n \t array('id' => '23535','state_id' => '1872','name' => 'Tricase'),\n \t array('id' => '23536','state_id' => '1872','name' => 'Triggiano'),\n \t array('id' => '23537','state_id' => '1872','name' => 'Trinitapoli'),\n \t array('id' => '23538','state_id' => '1872','name' => 'Turi'),\n \t array('id' => '23539','state_id' => '1872','name' => 'Ugento'),\n \t array('id' => '23540','state_id' => '1872','name' => 'Valenzano'),\n \t array('id' => '23541','state_id' => '1872','name' => 'Veglie'),\n \t array('id' => '23542','state_id' => '1872','name' => 'Vico del Gargano'),\n \t array('id' => '23543','state_id' => '1872','name' => 'Vieste'),\n \t array('id' => '23544','state_id' => '1872','name' => 'Villa Castelli'),\n \t array('id' => '23545','state_id' => '1874','name' => 'San Giovanni in Marignano'),\n \t array('id' => '23546','state_id' => '1874','name' => 'Torriana'),\n \t array('id' => '23547','state_id' => '1875','name' => 'Anzio'),\n \t array('id' => '23548','state_id' => '1876','name' => 'Atena Lucana'),\n \t array('id' => '23549','state_id' => '1876','name' => 'Castel San Giorgio'),\n \t array('id' => '23550','state_id' => '1876','name' => 'Fisciano'),\n \t array('id' => '23551','state_id' => '1876','name' => 'Giungano'),\n \t array('id' => '23552','state_id' => '1876','name' => 'Omignano'),\n \t array('id' => '23553','state_id' => '1877','name' => 'Alghero'),\n \t array('id' => '23554','state_id' => '1877','name' => 'Arzachena'),\n \t array('id' => '23555','state_id' => '1877','name' => 'Assemini'),\n \t array('id' => '23556','state_id' => '1877','name' => 'Cabras'),\n \t array('id' => '23557','state_id' => '1877','name' => 'Cagliari'),\n \t array('id' => '23558','state_id' => '1877','name' => 'Capoterra'),\n \t array('id' => '23559','state_id' => '1877','name' => 'Carbonia'),\n \t array('id' => '23560','state_id' => '1877','name' => 'Dorgali'),\n \t array('id' => '23561','state_id' => '1877','name' => 'Guspini'),\n \t array('id' => '23562','state_id' => '1877','name' => 'Iglesias'),\n \t array('id' => '23563','state_id' => '1877','name' => 'Ittiri'),\n \t array('id' => '23564','state_id' => '1877','name' => 'La Maddalena'),\n \t array('id' => '23565','state_id' => '1877','name' => 'Macomer'),\n \t array('id' => '23566','state_id' => '1877','name' => 'Monserrato'),\n \t array('id' => '23567','state_id' => '1877','name' => 'Nuoro'),\n \t array('id' => '23568','state_id' => '1877','name' => 'Olbia'),\n \t array('id' => '23569','state_id' => '1877','name' => 'Oristano'),\n \t array('id' => '23570','state_id' => '1877','name' => 'Ozieri'),\n \t array('id' => '23571','state_id' => '1877','name' => 'Porto Torres'),\n \t array('id' => '23572','state_id' => '1877','name' => 'Quartu Sant\\'Elena'),\n \t array('id' => '23573','state_id' => '1877','name' => 'Quartucciu'),\n \t array('id' => '23574','state_id' => '1877','name' => 'San Gavino Monreale'),\n \t array('id' => '23575','state_id' => '1877','name' => 'Sanluri'),\n \t array('id' => '23576','state_id' => '1877','name' => 'Sant\\'Antioco'),\n \t array('id' => '23577','state_id' => '1877','name' => 'Sassari'),\n \t array('id' => '23578','state_id' => '1877','name' => 'Selargius'),\n \t array('id' => '23579','state_id' => '1877','name' => 'Serramanna'),\n \t array('id' => '23580','state_id' => '1877','name' => 'Sestu'),\n \t array('id' => '23581','state_id' => '1877','name' => 'Siniscola'),\n \t array('id' => '23582','state_id' => '1877','name' => 'Sinnai'),\n \t array('id' => '23583','state_id' => '1877','name' => 'Sorso'),\n \t array('id' => '23584','state_id' => '1877','name' => 'Tempio Pausania'),\n \t array('id' => '23585','state_id' => '1877','name' => 'Terralba'),\n \t array('id' => '23586','state_id' => '1877','name' => 'Tortoli'),\n \t array('id' => '23587','state_id' => '1877','name' => 'Villacidro'),\n \t array('id' => '23588','state_id' => '1878','name' => 'Nule'),\n \t array('id' => '23589','state_id' => '1879','name' => 'Altare'),\n \t array('id' => '23590','state_id' => '1880','name' => 'Aci Castello'),\n \t array('id' => '23591','state_id' => '1880','name' => 'Aci Catena'),\n \t array('id' => '23592','state_id' => '1880','name' => 'Aci Sant\\'Antonio'),\n \t array('id' => '23593','state_id' => '1880','name' => 'Acireale'),\n \t array('id' => '23594','state_id' => '1880','name' => 'Adrano'),\n \t array('id' => '23595','state_id' => '1880','name' => 'Agira'),\n \t array('id' => '23596','state_id' => '1880','name' => 'Agrigento'),\n \t array('id' => '23597','state_id' => '1880','name' => 'Alcamo'),\n \t array('id' => '23598','state_id' => '1880','name' => 'Altofonte'),\n \t array('id' => '23599','state_id' => '1880','name' => 'Aragona'),\n \t array('id' => '23600','state_id' => '1880','name' => 'Augusta'),\n \t array('id' => '23601','state_id' => '1880','name' => 'Avola'),\n \t array('id' => '23602','state_id' => '1880','name' => 'Bagheria'),\n \t array('id' => '23603','state_id' => '1880','name' => 'Barcellona'),\n \t array('id' => '23604','state_id' => '1880','name' => 'Barrafranca'),\n \t array('id' => '23605','state_id' => '1880','name' => 'Belmonte Mezzagno'),\n \t array('id' => '23606','state_id' => '1880','name' => 'Belpasso'),\n \t array('id' => '23607','state_id' => '1880','name' => 'Biancavilla'),\n \t array('id' => '23608','state_id' => '1880','name' => 'Bronte'),\n \t array('id' => '23609','state_id' => '1880','name' => 'Caccamo'),\n \t array('id' => '23610','state_id' => '1880','name' => 'Caltagirone'),\n \t array('id' => '23611','state_id' => '1880','name' => 'Caltanissetta'),\n \t array('id' => '23612','state_id' => '1880','name' => 'Campobello di Licata'),\n \t array('id' => '23613','state_id' => '1880','name' => 'Campobello di Mazara'),\n \t array('id' => '23614','state_id' => '1880','name' => 'Canicatti'),\n \t array('id' => '23615','state_id' => '1880','name' => 'Capaci'),\n \t array('id' => '23616','state_id' => '1880','name' => 'Capo d\\'Orlando'),\n \t array('id' => '23617','state_id' => '1880','name' => 'Carini'),\n \t array('id' => '23618','state_id' => '1880','name' => 'Carlentini'),\n \t array('id' => '23619','state_id' => '1880','name' => 'Castelbuono'),\n \t array('id' => '23620','state_id' => '1880','name' => 'Casteldaccia'),\n \t array('id' => '23621','state_id' => '1880','name' => 'Castellammare del Golfo'),\n \t array('id' => '23622','state_id' => '1880','name' => 'Casteltermini'),\n \t array('id' => '23623','state_id' => '1880','name' => 'Castelvetrano'),\n \t array('id' => '23624','state_id' => '1880','name' => 'Catania'),\n \t array('id' => '23625','state_id' => '1880','name' => 'Catenanuova'),\n \t array('id' => '23626','state_id' => '1880','name' => 'Cefalu'),\n \t array('id' => '23627','state_id' => '1880','name' => 'Chiaramonte Gulfi'),\n \t array('id' => '23628','state_id' => '1880','name' => 'Cinisi'),\n \t array('id' => '23629','state_id' => '1880','name' => 'Comiso'),\n \t array('id' => '23630','state_id' => '1880','name' => 'Corleone'),\n \t array('id' => '23631','state_id' => '1880','name' => 'Enna'),\n \t array('id' => '23632','state_id' => '1880','name' => 'Erice'),\n \t array('id' => '23633','state_id' => '1880','name' => 'Favara'),\n \t array('id' => '23634','state_id' => '1880','name' => 'Ficarazzi'),\n \t array('id' => '23635','state_id' => '1880','name' => 'Fiumefreddo di Sicilia'),\n \t array('id' => '23636','state_id' => '1880','name' => 'Floridia'),\n \t array('id' => '23637','state_id' => '1880','name' => 'Francofonte'),\n \t array('id' => '23638','state_id' => '1880','name' => 'Gela'),\n \t array('id' => '23639','state_id' => '1880','name' => 'Giardini-Naxos'),\n \t array('id' => '23640','state_id' => '1880','name' => 'Giarre'),\n \t array('id' => '23641','state_id' => '1880','name' => 'Grammichele'),\n \t array('id' => '23642','state_id' => '1880','name' => 'Gravina di Catania'),\n \t array('id' => '23643','state_id' => '1880','name' => 'Ispica'),\n \t array('id' => '23644','state_id' => '1880','name' => 'Lentini'),\n \t array('id' => '23645','state_id' => '1880','name' => 'Leonforte'),\n \t array('id' => '23646','state_id' => '1880','name' => 'Licata'),\n \t array('id' => '23647','state_id' => '1880','name' => 'Lipari'),\n \t array('id' => '23648','state_id' => '1880','name' => 'Marsala'),\n \t array('id' => '23649','state_id' => '1880','name' => 'Mascali'),\n \t array('id' => '23650','state_id' => '1880','name' => 'Mascalucia'),\n \t array('id' => '23651','state_id' => '1880','name' => 'Mazara del Vallo'),\n \t array('id' => '23652','state_id' => '1880','name' => 'Mazzarino'),\n \t array('id' => '23653','state_id' => '1880','name' => 'Melilli'),\n \t array('id' => '23654','state_id' => '1880','name' => 'Menfi'),\n \t array('id' => '23655','state_id' => '1880','name' => 'Messina'),\n \t array('id' => '23656','state_id' => '1880','name' => 'Milazzo'),\n \t array('id' => '23657','state_id' => '1880','name' => 'Militello in Val di Catania'),\n \t array('id' => '23658','state_id' => '1880','name' => 'Misilmeri'),\n \t array('id' => '23659','state_id' => '1880','name' => 'Misterbianco'),\n \t array('id' => '23660','state_id' => '1880','name' => 'Modica'),\n \t array('id' => '23661','state_id' => '1880','name' => 'Monreale'),\n \t array('id' => '23662','state_id' => '1880','name' => 'Motta Sant\\'Anastasia'),\n \t array('id' => '23663','state_id' => '1880','name' => 'Mussomeli'),\n \t array('id' => '23664','state_id' => '1880','name' => 'Naro'),\n \t array('id' => '23665','state_id' => '1880','name' => 'Nicosia'),\n \t array('id' => '23666','state_id' => '1880','name' => 'Niscemi'),\n \t array('id' => '23667','state_id' => '1880','name' => 'Noto'),\n \t array('id' => '23668','state_id' => '1880','name' => 'Paceco'),\n \t array('id' => '23669','state_id' => '1880','name' => 'Pachino'),\n \t array('id' => '23670','state_id' => '1880','name' => 'Palagonia'),\n \t array('id' => '23671','state_id' => '1880','name' => 'Palazzolo Acreide'),\n \t array('id' => '23672','state_id' => '1880','name' => 'Palermo'),\n \t array('id' => '23673','state_id' => '1880','name' => 'Palma di Montechiaro'),\n \t array('id' => '23674','state_id' => '1880','name' => 'Partanna'),\n \t array('id' => '23675','state_id' => '1880','name' => 'Partinico'),\n \t array('id' => '23676','state_id' => '1880','name' => 'Paterno'),\n \t array('id' => '23677','state_id' => '1880','name' => 'Patti'),\n \t array('id' => '23678','state_id' => '1880','name' => 'Pedara'),\n \t array('id' => '23679','state_id' => '1880','name' => 'Piazza Armerina'),\n \t array('id' => '23680','state_id' => '1880','name' => 'Porto Empedocle'),\n \t array('id' => '23681','state_id' => '1880','name' => 'Pozzallo'),\n \t array('id' => '23682','state_id' => '1880','name' => 'Priolo Gargallo'),\n \t array('id' => '23683','state_id' => '1880','name' => 'Racalmuto'),\n \t array('id' => '23684','state_id' => '1880','name' => 'Raffadali'),\n \t array('id' => '23685','state_id' => '1880','name' => 'Ragusa'),\n \t array('id' => '23686','state_id' => '1880','name' => 'Ramacca'),\n \t array('id' => '23687','state_id' => '1880','name' => 'Randazzo'),\n \t array('id' => '23688','state_id' => '1880','name' => 'Ravanusa'),\n \t array('id' => '23689','state_id' => '1880','name' => 'Ribera'),\n \t array('id' => '23690','state_id' => '1880','name' => 'Riesi'),\n \t array('id' => '23691','state_id' => '1880','name' => 'Riposto'),\n \t array('id' => '23692','state_id' => '1880','name' => 'Rosolini'),\n \t array('id' => '23693','state_id' => '1880','name' => 'Salemi'),\n \t array('id' => '23694','state_id' => '1880','name' => 'San Cataldo'),\n \t array('id' => '23695','state_id' => '1880','name' => 'San Giovanni Gemini'),\n \t array('id' => '23696','state_id' => '1880','name' => 'San Giovanni la Punta'),\n \t array('id' => '23697','state_id' => '1880','name' => 'San Giuseppe Jato'),\n \t array('id' => '23698','state_id' => '1880','name' => 'San Gregorio di Catania'),\n \t array('id' => '23699','state_id' => '1880','name' => 'Sant\\'Agata di Militello'),\n \t array('id' => '23700','state_id' => '1880','name' => 'Sant\\'Agata li Battiati'),\n \t array('id' => '23701','state_id' => '1880','name' => 'Santa Croce Camerina'),\n \t array('id' => '23702','state_id' => '1880','name' => 'Santa Flavia'),\n \t array('id' => '23703','state_id' => '1880','name' => 'Santa Teresa di Riva'),\n \t array('id' => '23704','state_id' => '1880','name' => 'Sciacca'),\n \t array('id' => '23705','state_id' => '1880','name' => 'Scicli'),\n \t array('id' => '23706','state_id' => '1880','name' => 'Scordia'),\n \t array('id' => '23707','state_id' => '1880','name' => 'Siracusa'),\n \t array('id' => '23708','state_id' => '1880','name' => 'Sortino'),\n \t array('id' => '23709','state_id' => '1880','name' => 'Taormina'),\n \t array('id' => '23710','state_id' => '1880','name' => 'Termini Imerese'),\n \t array('id' => '23711','state_id' => '1880','name' => 'Terrasini'),\n \t array('id' => '23712','state_id' => '1880','name' => 'Trabia'),\n \t array('id' => '23713','state_id' => '1880','name' => 'Trapani'),\n \t array('id' => '23714','state_id' => '1880','name' => 'Trecastagni'),\n \t array('id' => '23715','state_id' => '1880','name' => 'Tremestieri Etneo'),\n \t array('id' => '23716','state_id' => '1880','name' => 'Troina'),\n \t array('id' => '23717','state_id' => '1880','name' => 'Valderice'),\n \t array('id' => '23718','state_id' => '1880','name' => 'Valguarnera Caropepe'),\n \t array('id' => '23719','state_id' => '1880','name' => 'Villabate'),\n \t array('id' => '23720','state_id' => '1880','name' => 'Villafranca Tirrena'),\n \t array('id' => '23721','state_id' => '1880','name' => 'Vittoria'),\n \t array('id' => '23722','state_id' => '1880','name' => 'Zafferana Etnea'),\n \t array('id' => '23723','state_id' => '1881','name' => 'Monteriggioni'),\n \t array('id' => '23724','state_id' => '1881','name' => 'Monteroni d Arbia'),\n \t array('id' => '23725','state_id' => '1882','name' => 'Delebio'),\n \t array('id' => '23726','state_id' => '1882','name' => 'Talamona'),\n \t array('id' => '23727','state_id' => '1884','name' => 'Faggiano'),\n \t array('id' => '23728','state_id' => '1884','name' => 'Riva del Garda'),\n \t array('id' => '23729','state_id' => '1885','name' => 'Castilenti'),\n \t array('id' => '23730','state_id' => '1885','name' => 'Controguerra'),\n \t array('id' => '23731','state_id' => '1886','name' => 'Bruino'),\n \t array('id' => '23732','state_id' => '1886','name' => 'Busano'),\n \t array('id' => '23733','state_id' => '1886','name' => 'Buttigliera Alta'),\n \t array('id' => '23734','state_id' => '1886','name' => 'Cavour'),\n \t array('id' => '23735','state_id' => '1886','name' => 'Chieri'),\n \t array('id' => '23736','state_id' => '1886','name' => 'Colleretto Giacosa'),\n \t array('id' => '23737','state_id' => '1886','name' => 'Cuceglio'),\n \t array('id' => '23738','state_id' => '1886','name' => 'Giaveno'),\n \t array('id' => '23739','state_id' => '1886','name' => 'Mazze'),\n \t array('id' => '23740','state_id' => '1886','name' => 'Mercenasco'),\n \t array('id' => '23741','state_id' => '1886','name' => 'Piobesi'),\n \t array('id' => '23742','state_id' => '1886','name' => 'Rivoli'),\n \t array('id' => '23743','state_id' => '1886','name' => 'Robassomero'),\n \t array('id' => '23744','state_id' => '1886','name' => 'Scarmagno'),\n \t array('id' => '23745','state_id' => '1886','name' => 'Strambino'),\n \t array('id' => '23746','state_id' => '1886','name' => 'Turin'),\n \t array('id' => '23747','state_id' => '1886','name' => 'Villar Perosa'),\n \t array('id' => '23748','state_id' => '1886','name' => 'Volpiano'),\n \t array('id' => '23749','state_id' => '1887','name' => 'Agliana'),\n \t array('id' => '23750','state_id' => '1887','name' => 'Altopascio'),\n \t array('id' => '23751','state_id' => '1887','name' => 'Anghiari'),\n \t array('id' => '23752','state_id' => '1887','name' => 'Arezzo'),\n \t array('id' => '23753','state_id' => '1887','name' => 'Aulla'),\n \t array('id' => '23754','state_id' => '1887','name' => 'Bagno a Ripoli'),\n \t array('id' => '23755','state_id' => '1887','name' => 'Barberino di Mugello'),\n \t array('id' => '23756','state_id' => '1887','name' => 'Barga'),\n \t array('id' => '23757','state_id' => '1887','name' => 'Bibbiena'),\n \t array('id' => '23758','state_id' => '1887','name' => 'Borgo San Lorenzo'),\n \t array('id' => '23759','state_id' => '1887','name' => 'Bucine'),\n \t array('id' => '23760','state_id' => '1887','name' => 'Buggiano'),\n \t array('id' => '23761','state_id' => '1887','name' => 'Calcinaia'),\n \t array('id' => '23762','state_id' => '1887','name' => 'Calenzano'),\n \t array('id' => '23763','state_id' => '1887','name' => 'Camaiore'),\n \t array('id' => '23764','state_id' => '1887','name' => 'Campi Bisenzio'),\n \t array('id' => '23765','state_id' => '1887','name' => 'Campiglia Marittima'),\n \t array('id' => '23766','state_id' => '1887','name' => 'Capannori'),\n \t array('id' => '23767','state_id' => '1887','name' => 'Cappelle'),\n \t array('id' => '23768','state_id' => '1887','name' => 'Capraia'),\n \t array('id' => '23769','state_id' => '1887','name' => 'Carmignano'),\n \t array('id' => '23770','state_id' => '1887','name' => 'Carrara'),\n \t array('id' => '23771','state_id' => '1887','name' => 'Cascina'),\n \t array('id' => '23772','state_id' => '1887','name' => 'Castagneto Carducci'),\n \t array('id' => '23773','state_id' => '1887','name' => 'Castelfiorentino'),\n \t array('id' => '23774','state_id' => '1887','name' => 'Castelfranco di Sotto'),\n \t array('id' => '23775','state_id' => '1887','name' => 'Castiglion Fiorentino'),\n \t array('id' => '23776','state_id' => '1887','name' => 'Cecina'),\n \t array('id' => '23777','state_id' => '1887','name' => 'Cerreto Guidi'),\n \t array('id' => '23778','state_id' => '1887','name' => 'Certaldo'),\n \t array('id' => '23779','state_id' => '1887','name' => 'Chiesina Uzzanese'),\n \t array('id' => '23780','state_id' => '1887','name' => 'Chiusi'),\n \t array('id' => '23781','state_id' => '1887','name' => 'Civitella in Val di Chiana'),\n \t array('id' => '23782','state_id' => '1887','name' => 'Colle di Val d\\'Elsa'),\n \t array('id' => '23783','state_id' => '1887','name' => 'Collesalvetti'),\n \t array('id' => '23784','state_id' => '1887','name' => 'Cortona'),\n \t array('id' => '23785','state_id' => '1887','name' => 'Empoli'),\n \t array('id' => '23786','state_id' => '1887','name' => 'Fiesole'),\n \t array('id' => '23787','state_id' => '1887','name' => 'Figline Valdarno'),\n \t array('id' => '23788','state_id' => '1887','name' => 'Firenze'),\n \t array('id' => '23789','state_id' => '1887','name' => 'Fivizzano'),\n \t array('id' => '23790','state_id' => '1887','name' => 'Florence'),\n \t array('id' => '23791','state_id' => '1887','name' => 'Foiano della Chiana'),\n \t array('id' => '23792','state_id' => '1887','name' => 'Follonica'),\n \t array('id' => '23793','state_id' => '1887','name' => 'Forte dei Marmi'),\n \t array('id' => '23794','state_id' => '1887','name' => 'Fucecchio'),\n \t array('id' => '23795','state_id' => '1887','name' => 'Gavorrano'),\n \t array('id' => '23796','state_id' => '1887','name' => 'Greve in Chianti'),\n \t array('id' => '23797','state_id' => '1887','name' => 'Grosseto'),\n \t array('id' => '23798','state_id' => '1887','name' => 'Impruneta'),\n \t array('id' => '23799','state_id' => '1887','name' => 'Lari'),\n \t array('id' => '23800','state_id' => '1887','name' => 'Lastra a Signa'),\n \t array('id' => '23801','state_id' => '1887','name' => 'Livorno'),\n \t array('id' => '23802','state_id' => '1887','name' => 'Lucca'),\n \t array('id' => '23803','state_id' => '1887','name' => 'Massa'),\n \t array('id' => '23804','state_id' => '1887','name' => 'Massa Marittima'),\n \t array('id' => '23805','state_id' => '1887','name' => 'Massarosa'),\n \t array('id' => '23806','state_id' => '1887','name' => 'Monsummano Terme'),\n \t array('id' => '23807','state_id' => '1887','name' => 'Montale'),\n \t array('id' => '23808','state_id' => '1887','name' => 'Monte Argentario'),\n \t array('id' => '23809','state_id' => '1887','name' => 'Monte San Savino'),\n \t array('id' => '23810','state_id' => '1887','name' => 'Montecatini-Terme'),\n \t array('id' => '23811','state_id' => '1887','name' => 'Montelupo Fiorentino'),\n \t array('id' => '23812','state_id' => '1887','name' => 'Montemurlo'),\n \t array('id' => '23813','state_id' => '1887','name' => 'Montepulciano'),\n \t array('id' => '23814','state_id' => '1887','name' => 'Montespertoli'),\n \t array('id' => '23815','state_id' => '1887','name' => 'Montevarchi'),\n \t array('id' => '23816','state_id' => '1887','name' => 'Montignoso'),\n \t array('id' => '23817','state_id' => '1887','name' => 'Montopoli in Val d\\'Arno'),\n \t array('id' => '23818','state_id' => '1887','name' => 'Orbetello'),\n \t array('id' => '23819','state_id' => '1887','name' => 'Pescia'),\n \t array('id' => '23820','state_id' => '1887','name' => 'Pietrasanta'),\n \t array('id' => '23821','state_id' => '1887','name' => 'Pieve a Nievole'),\n \t array('id' => '23822','state_id' => '1887','name' => 'Piombino'),\n \t array('id' => '23823','state_id' => '1887','name' => 'Pisa'),\n \t array('id' => '23824','state_id' => '1887','name' => 'Pistoia'),\n \t array('id' => '23825','state_id' => '1887','name' => 'Poggibonsi'),\n \t array('id' => '23826','state_id' => '1887','name' => 'Poggio a Caiano'),\n \t array('id' => '23827','state_id' => '1887','name' => 'Ponsacco'),\n \t array('id' => '23828','state_id' => '1887','name' => 'Pontassieve'),\n \t array('id' => '23829','state_id' => '1887','name' => 'Pontedera'),\n \t array('id' => '23830','state_id' => '1887','name' => 'Ponticino'),\n \t array('id' => '23831','state_id' => '1887','name' => 'Pontremoli'),\n \t array('id' => '23832','state_id' => '1887','name' => 'Portoferraio'),\n \t array('id' => '23833','state_id' => '1887','name' => 'Prato'),\n \t array('id' => '23834','state_id' => '1887','name' => 'Quarrata'),\n \t array('id' => '23835','state_id' => '1887','name' => 'Reggello'),\n \t array('id' => '23836','state_id' => '1887','name' => 'Rignano'),\n \t array('id' => '23837','state_id' => '1887','name' => 'Roccastrada'),\n \t array('id' => '23838','state_id' => '1887','name' => 'Rosignano Marittimo'),\n \t array('id' => '23839','state_id' => '1887','name' => 'San Casciano'),\n \t array('id' => '23840','state_id' => '1887','name' => 'San Giovanni Valdarno'),\n \t array('id' => '23841','state_id' => '1887','name' => 'San Giuliano Terme'),\n \t array('id' => '23842','state_id' => '1887','name' => 'San Miniato'),\n \t array('id' => '23843','state_id' => '1887','name' => 'Sansepolcro'),\n \t array('id' => '23844','state_id' => '1887','name' => 'Santa Croce sull\\'Arno'),\n \t array('id' => '23845','state_id' => '1887','name' => 'Santa Maria a Monte'),\n \t array('id' => '23846','state_id' => '1887','name' => 'Scandicci'),\n \t array('id' => '23847','state_id' => '1887','name' => 'Seravezza'),\n \t array('id' => '23848','state_id' => '1887','name' => 'Serravalle Pistoiese'),\n \t array('id' => '23849','state_id' => '1887','name' => 'Sesto Fiorentino'),\n \t array('id' => '23850','state_id' => '1887','name' => 'Siena'),\n \t array('id' => '23851','state_id' => '1887','name' => 'Signa'),\n \t array('id' => '23852','state_id' => '1887','name' => 'Sinalunga'),\n \t array('id' => '23853','state_id' => '1887','name' => 'Sovicille'),\n \t array('id' => '23854','state_id' => '1887','name' => 'Terranuova Bracciolini'),\n \t array('id' => '23855','state_id' => '1887','name' => 'Vaiano'),\n \t array('id' => '23856','state_id' => '1887','name' => 'Varna'),\n \t array('id' => '23857','state_id' => '1887','name' => 'Vecchiano'),\n \t array('id' => '23858','state_id' => '1887','name' => 'Viareggio'),\n \t array('id' => '23859','state_id' => '1887','name' => 'Vinci'),\n \t array('id' => '23860','state_id' => '1887','name' => 'Volterra'),\n \t array('id' => '23861','state_id' => '1888','name' => 'Guarrato'),\n \t array('id' => '23862','state_id' => '1890','name' => ' San Giorgio'),\n \t array('id' => '23863','state_id' => '1890','name' => 'Dro'),\n \t array('id' => '23864','state_id' => '1891','name' => 'Asolo'),\n \t array('id' => '23865','state_id' => '1891','name' => 'Conegliano'),\n \t array('id' => '23866','state_id' => '1891','name' => 'Cordignano'),\n \t array('id' => '23867','state_id' => '1891','name' => 'Gaiarine'),\n \t array('id' => '23868','state_id' => '1891','name' => 'Ormelle'),\n \t array('id' => '23869','state_id' => '1891','name' => 'Possagno'),\n \t array('id' => '23870','state_id' => '1891','name' => 'Revine Lago'),\n \t array('id' => '23871','state_id' => '1892','name' => 'Basiliano'),\n \t array('id' => '23872','state_id' => '1892','name' => 'Bicinicco'),\n \t array('id' => '23873','state_id' => '1892','name' => 'Buttrio'),\n \t array('id' => '23874','state_id' => '1892','name' => 'Coseano'),\n \t array('id' => '23875','state_id' => '1892','name' => 'Pradamano'),\n \t array('id' => '23876','state_id' => '1892','name' => 'San Giovanni al Natisone'),\n \t array('id' => '23877','state_id' => '1892','name' => 'Torreano'),\n \t array('id' => '23878','state_id' => '1893','name' => 'Amelia'),\n \t array('id' => '23879','state_id' => '1893','name' => 'Assisi'),\n \t array('id' => '23880','state_id' => '1893','name' => 'Bastia Umbra'),\n \t array('id' => '23881','state_id' => '1893','name' => 'Castiglione del Lago'),\n \t array('id' => '23882','state_id' => '1893','name' => 'Citta di Castello'),\n \t array('id' => '23883','state_id' => '1893','name' => 'Corciano'),\n \t array('id' => '23884','state_id' => '1893','name' => 'Deruta'),\n \t array('id' => '23885','state_id' => '1893','name' => 'Foligno'),\n \t array('id' => '23886','state_id' => '1893','name' => 'Gualdo Tadino'),\n \t array('id' => '23887','state_id' => '1893','name' => 'Gubbio'),\n \t array('id' => '23888','state_id' => '1893','name' => 'Magione'),\n \t array('id' => '23889','state_id' => '1893','name' => 'Marsciano'),\n \t array('id' => '23890','state_id' => '1893','name' => 'Narni'),\n \t array('id' => '23891','state_id' => '1893','name' => 'Orvieto'),\n \t array('id' => '23892','state_id' => '1893','name' => 'Perugia'),\n \t array('id' => '23893','state_id' => '1893','name' => 'San Giustino'),\n \t array('id' => '23894','state_id' => '1893','name' => 'Spello'),\n \t array('id' => '23895','state_id' => '1893','name' => 'Spoleto'),\n \t array('id' => '23896','state_id' => '1893','name' => 'Terni'),\n \t array('id' => '23897','state_id' => '1893','name' => 'Todi'),\n \t array('id' => '23898','state_id' => '1893','name' => 'Umbertide'),\n \t array('id' => '23899','state_id' => '1895','name' => 'Arsago Seprio'),\n \t array('id' => '23900','state_id' => '1895','name' => 'Busto Arsizio'),\n \t array('id' => '23901','state_id' => '1895','name' => 'Cassano Magnago'),\n \t array('id' => '23902','state_id' => '1895','name' => 'Gazzada'),\n \t array('id' => '23903','state_id' => '1895','name' => 'Oggiona Con Santo Stefano'),\n \t array('id' => '23904','state_id' => '1895','name' => 'Solbiate Arno'),\n \t array('id' => '23905','state_id' => '1895','name' => 'Solbiate Olona'),\n \t array('id' => '23906','state_id' => '1895','name' => 'Ternate'),\n \t array('id' => '23907','state_id' => '1895','name' => 'Venegono Inferiore'),\n \t array('id' => '23908','state_id' => '1896','name' => 'Abano Terme'),\n \t array('id' => '23909','state_id' => '1896','name' => 'Adria'),\n \t array('id' => '23910','state_id' => '1896','name' => 'Albignasego'),\n \t array('id' => '23911','state_id' => '1896','name' => 'Altavilla Vicentina'),\n \t array('id' => '23912','state_id' => '1896','name' => 'Arzignano'),\n \t array('id' => '23913','state_id' => '1896','name' => 'Badia Polesine'),\n \t array('id' => '23914','state_id' => '1896','name' => 'Bassano del Grappa'),\n \t array('id' => '23915','state_id' => '1896','name' => 'Belfiore'),\n \t array('id' => '23916','state_id' => '1896','name' => 'Belluno'),\n \t array('id' => '23917','state_id' => '1896','name' => 'Borso del Grappa'),\n \t array('id' => '23918','state_id' => '1896','name' => 'Bovolone'),\n \t array('id' => '23919','state_id' => '1896','name' => 'Bussolengo'),\n \t array('id' => '23920','state_id' => '1896','name' => 'Cadoneghe'),\n \t array('id' => '23921','state_id' => '1896','name' => 'Caldogno'),\n \t array('id' => '23922','state_id' => '1896','name' => 'Camisano Vicentino'),\n \t array('id' => '23923','state_id' => '1896','name' => 'Campodarsego'),\n \t array('id' => '23924','state_id' => '1896','name' => 'Campolongo Maggiore'),\n \t array('id' => '23925','state_id' => '1896','name' => 'Camponogara'),\n \t array('id' => '23926','state_id' => '1896','name' => 'Camposampiero'),\n \t array('id' => '23927','state_id' => '1896','name' => 'Caorle'),\n \t array('id' => '23928','state_id' => '1896','name' => 'Carbonera'),\n \t array('id' => '23929','state_id' => '1896','name' => 'Casale sul Sile'),\n \t array('id' => '23930','state_id' => '1896','name' => 'Casier'),\n \t array('id' => '23931','state_id' => '1896','name' => 'Cassola'),\n \t array('id' => '23932','state_id' => '1896','name' => 'Castel d\\'Azzano'),\n \t array('id' => '23933','state_id' => '1896','name' => 'Castelfranco Veneto'),\n \t array('id' => '23934','state_id' => '1896','name' => 'Castello di Godego'),\n \t array('id' => '23935','state_id' => '1896','name' => 'Castelnuovo del Garda'),\n \t array('id' => '23936','state_id' => '1896','name' => 'Cavallino-Treporti'),\n \t array('id' => '23937','state_id' => '1896','name' => 'Cavarzere'),\n \t array('id' => '23938','state_id' => '1896','name' => 'Cerea'),\n \t array('id' => '23939','state_id' => '1896','name' => 'Chiampo'),\n \t array('id' => '23940','state_id' => '1896','name' => 'Chioggia'),\n \t array('id' => '23941','state_id' => '1896','name' => 'Cittadella'),\n \t array('id' => '23942','state_id' => '1896','name' => 'Colombano'),\n \t array('id' => '23943','state_id' => '1896','name' => 'Concordia Sagittaria'),\n \t array('id' => '23944','state_id' => '1896','name' => 'Conegliano'),\n \t array('id' => '23945','state_id' => '1896','name' => 'Conselve'),\n \t array('id' => '23946','state_id' => '1896','name' => 'Cornedo Vicentino'),\n \t array('id' => '23947','state_id' => '1896','name' => 'Creazzo'),\n \t array('id' => '23948','state_id' => '1896','name' => 'Dolo'),\n \t array('id' => '23949','state_id' => '1896','name' => 'Due Carrare'),\n \t array('id' => '23950','state_id' => '1896','name' => 'Dueville'),\n \t array('id' => '23951','state_id' => '1896','name' => 'Eraclea'),\n \t array('id' => '23952','state_id' => '1896','name' => 'Este'),\n \t array('id' => '23953','state_id' => '1896','name' => 'Feltre'),\n \t array('id' => '23954','state_id' => '1896','name' => 'Galzignano Terme'),\n \t array('id' => '23955','state_id' => '1896','name' => 'Grezzana'),\n \t array('id' => '23956','state_id' => '1896','name' => 'Iesolo'),\n \t array('id' => '23957','state_id' => '1896','name' => 'Isola Vicentina'),\n \t array('id' => '23958','state_id' => '1896','name' => 'Isola della Scala'),\n \t array('id' => '23959','state_id' => '1896','name' => 'Jesolo'),\n \t array('id' => '23960','state_id' => '1896','name' => 'Legnago'),\n \t array('id' => '23961','state_id' => '1896','name' => 'Lendinara'),\n \t array('id' => '23962','state_id' => '1896','name' => 'Lonigo'),\n \t array('id' => '23963','state_id' => '1896','name' => 'Malo'),\n \t array('id' => '23964','state_id' => '1896','name' => 'Marano Vicentino'),\n \t array('id' => '23965','state_id' => '1896','name' => 'Marcon'),\n \t array('id' => '23966','state_id' => '1896','name' => 'Marostica'),\n \t array('id' => '23967','state_id' => '1896','name' => 'Martellago'),\n \t array('id' => '23968','state_id' => '1896','name' => 'Mestrino'),\n \t array('id' => '23969','state_id' => '1896','name' => 'Mira'),\n \t array('id' => '23970','state_id' => '1896','name' => 'Mirano'),\n \t array('id' => '23971','state_id' => '1896','name' => 'Mogliano Veneto'),\n \t array('id' => '23972','state_id' => '1896','name' => 'Monselice'),\n \t array('id' => '23973','state_id' => '1896','name' => 'Montagnana'),\n \t array('id' => '23974','state_id' => '1896','name' => 'Montebelluna'),\n \t array('id' => '23975','state_id' => '1896','name' => 'Montecchio Maggiore'),\n \t array('id' => '23976','state_id' => '1896','name' => 'Montegrotto Terme'),\n \t array('id' => '23977','state_id' => '1896','name' => 'Monticello Conte Otto'),\n \t array('id' => '23978','state_id' => '1896','name' => 'Motta di Livenza'),\n \t array('id' => '23979','state_id' => '1896','name' => 'Murano'),\n \t array('id' => '23980','state_id' => '1896','name' => 'Musile di Piave'),\n \t array('id' => '23981','state_id' => '1896','name' => 'Mussolente'),\n \t array('id' => '23982','state_id' => '1896','name' => 'Negrar'),\n \t array('id' => '23983','state_id' => '1896','name' => 'Noale'),\n \t array('id' => '23984','state_id' => '1896','name' => 'Noventa Padovana'),\n \t array('id' => '23985','state_id' => '1896','name' => 'Noventa Vicentina'),\n \t array('id' => '23986','state_id' => '1896','name' => 'Occhiobello'),\n \t array('id' => '23987','state_id' => '1896','name' => 'Oderzo'),\n \t array('id' => '23988','state_id' => '1896','name' => 'Ormelle'),\n \t array('id' => '23989','state_id' => '1896','name' => 'Padova'),\n \t array('id' => '23990','state_id' => '1896','name' => 'Padua'),\n \t array('id' => '23991','state_id' => '1896','name' => 'Paese'),\n \t array('id' => '23992','state_id' => '1896','name' => 'Pescantina'),\n \t array('id' => '23993','state_id' => '1896','name' => 'Peschiera del Garda'),\n \t array('id' => '23994','state_id' => '1896','name' => 'Pianiga'),\n \t array('id' => '23995','state_id' => '1896','name' => 'Piazzola sul Brenta'),\n \t array('id' => '23996','state_id' => '1896','name' => 'Pieve di Soligo'),\n \t array('id' => '23997','state_id' => '1896','name' => 'Pievebelvicino'),\n \t array('id' => '23998','state_id' => '1896','name' => 'Piombino Dese'),\n \t array('id' => '23999','state_id' => '1896','name' => 'Piove di Sacco'),\n \t array('id' => '24000','state_id' => '1896','name' => 'Ponte San Nicolo'),\n \t array('id' => '24001','state_id' => '1896','name' => 'Ponzano Veneto'),\n \t array('id' => '24002','state_id' => '1896','name' => 'Porto Tolle'),\n \t array('id' => '24003','state_id' => '1896','name' => 'Porto Viro'),\n \t array('id' => '24004','state_id' => '1896','name' => 'Portogruaro'),\n \t array('id' => '24005','state_id' => '1896','name' => 'Preganziol'),\n \t array('id' => '24006','state_id' => '1896','name' => 'Quinto di Treviso'),\n \t array('id' => '24007','state_id' => '1896','name' => 'Riese Pio X'),\n \t array('id' => '24008','state_id' => '1896','name' => 'Romano dEzzelino'),\n \t array('id' => '24009','state_id' => '1896','name' => 'Roncade'),\n \t array('id' => '24010','state_id' => '1896','name' => 'Rosa'),\n \t array('id' => '24011','state_id' => '1896','name' => 'Rovigo'),\n \t array('id' => '24012','state_id' => '1896','name' => 'Rubano'),\n \t array('id' => '24013','state_id' => '1896','name' => 'Salzano'),\n \t array('id' => '24014','state_id' => '1896','name' => 'San Biagio di Callalta'),\n \t array('id' => '24015','state_id' => '1896','name' => 'San Bonifacio'),\n \t array('id' => '24016','state_id' => '1896','name' => 'San Dona di Piave'),\n \t array('id' => '24017','state_id' => '1896','name' => 'San Giovanni Lupatoto'),\n \t array('id' => '24018','state_id' => '1896','name' => 'San Martino Buon Albergo'),\n \t array('id' => '24019','state_id' => '1896','name' => 'San Martino di Lupari'),\n \t array('id' => '24020','state_id' => '1896','name' => 'San Michele al Tagliamento'),\n \t array('id' => '24021','state_id' => '1896','name' => 'San Pietro in Cariano'),\n \t array('id' => '24022','state_id' => '1896','name' => 'San Vendemiano'),\n \t array('id' => '24023','state_id' => '1896','name' => 'Sant\\'Ambrogio'),\n \t array('id' => '24024','state_id' => '1896','name' => 'Santa Maria di Sala'),\n \t array('id' => '24025','state_id' => '1896','name' => 'Santo Stino di Livenza'),\n \t array('id' => '24026','state_id' => '1896','name' => 'Santorso'),\n \t array('id' => '24027','state_id' => '1896','name' => 'Saonara'),\n \t array('id' => '24028','state_id' => '1896','name' => 'Sarcedo'),\n \t array('id' => '24029','state_id' => '1896','name' => 'Schio'),\n \t array('id' => '24030','state_id' => '1896','name' => 'Scorze'),\n \t array('id' => '24031','state_id' => '1896','name' => 'Sedico'),\n \t array('id' => '24032','state_id' => '1896','name' => 'Selvazzano Dentro'),\n \t array('id' => '24033','state_id' => '1896','name' => 'Silea'),\n \t array('id' => '24034','state_id' => '1896','name' => 'Sivizzo'),\n \t array('id' => '24035','state_id' => '1896','name' => 'Sommacampagna'),\n \t array('id' => '24036','state_id' => '1896','name' => 'Sona'),\n \t array('id' => '24037','state_id' => '1896','name' => 'Spinea'),\n \t array('id' => '24038','state_id' => '1896','name' => 'Spresiano'),\n \t array('id' => '24039','state_id' => '1896','name' => 'Susegana'),\n \t array('id' => '24040','state_id' => '1896','name' => 'Taglio di Po'),\n \t array('id' => '24041','state_id' => '1896','name' => 'Teolo'),\n \t array('id' => '24042','state_id' => '1896','name' => 'Tezze sul Brenta'),\n \t array('id' => '24043','state_id' => '1896','name' => 'Thiene'),\n \t array('id' => '24044','state_id' => '1896','name' => 'Torri di Quartesolo'),\n \t array('id' => '24045','state_id' => '1896','name' => 'Trebaseleghe'),\n \t array('id' => '24046','state_id' => '1896','name' => 'Trevignano'),\n \t array('id' => '24047','state_id' => '1896','name' => 'Treviso'),\n \t array('id' => '24048','state_id' => '1896','name' => 'Trissino'),\n \t array('id' => '24049','state_id' => '1896','name' => 'Valdagno'),\n \t array('id' => '24050','state_id' => '1896','name' => 'Valdobbiadene'),\n \t array('id' => '24051','state_id' => '1896','name' => 'Valeggio sul Mincio'),\n \t array('id' => '24052','state_id' => '1896','name' => 'Vedelago'),\n \t array('id' => '24053','state_id' => '1896','name' => 'Venezia'),\n \t array('id' => '24054','state_id' => '1896','name' => 'Venice'),\n \t array('id' => '24055','state_id' => '1896','name' => 'Verona'),\n \t array('id' => '24056','state_id' => '1896','name' => 'Vicenza'),\n \t array('id' => '24057','state_id' => '1896','name' => 'Vigodarzere'),\n \t array('id' => '24058','state_id' => '1896','name' => 'Vigonovo'),\n \t array('id' => '24059','state_id' => '1896','name' => 'Vigonza'),\n \t array('id' => '24060','state_id' => '1896','name' => 'Villafranca di Verona'),\n \t array('id' => '24061','state_id' => '1896','name' => 'Villorba'),\n \t array('id' => '24062','state_id' => '1896','name' => 'Vittorio Veneto'),\n \t array('id' => '24063','state_id' => '1896','name' => 'Volpago del Montello'),\n \t array('id' => '24064','state_id' => '1896','name' => 'Zane'),\n \t array('id' => '24065','state_id' => '1896','name' => 'Zero Branco'),\n \t array('id' => '24066','state_id' => '1896','name' => 'Zevio'),\n \t array('id' => '24067','state_id' => '1897','name' => 'Cona'),\n \t array('id' => '24068','state_id' => '1897','name' => 'Marghera'),\n \t array('id' => '24069','state_id' => '1897','name' => 'Oriago di Mira'),\n \t array('id' => '24070','state_id' => '1897','name' => 'Tessera'),\n \t array('id' => '24071','state_id' => '1898','name' => 'Piedimulera'),\n \t array('id' => '24072','state_id' => '1899','name' => 'Crescentino'),\n \t array('id' => '24073','state_id' => '1899','name' => 'Moncrivello'),\n \t array('id' => '24074','state_id' => '1899','name' => 'Rovasenda'),\n \t array('id' => '24075','state_id' => '1899','name' => 'Trino'),\n \t array('id' => '24076','state_id' => '1900','name' => ' Valeggio Sul Mincio'),\n \t array('id' => '24077','state_id' => '1900','name' => 'Cadidavid'),\n \t array('id' => '24078','state_id' => '1900','name' => 'Colognola ai Colli'),\n \t array('id' => '24079','state_id' => '1900','name' => 'Pastrengo'),\n \t array('id' => '24080','state_id' => '1900','name' => 'Valgatara'),\n \t array('id' => '24081','state_id' => '1901','name' => ' Montebello Vicentino'),\n \t array('id' => '24082','state_id' => '1901','name' => 'Alonte'),\n \t array('id' => '24083','state_id' => '1901','name' => 'Arcugnano'),\n \t array('id' => '24084','state_id' => '1901','name' => 'Arzignano'),\n \t array('id' => '24085','state_id' => '1901','name' => 'Barbarano Vicentino'),\n \t array('id' => '24086','state_id' => '1901','name' => 'Breganze'),\n \t array('id' => '24087','state_id' => '1901','name' => 'Brendola'),\n \t array('id' => '24088','state_id' => '1901','name' => 'Bressanvido'),\n \t array('id' => '24089','state_id' => '1901','name' => 'Carre'),\n \t array('id' => '24090','state_id' => '1901','name' => 'Castelgomberto'),\n \t array('id' => '24091','state_id' => '1901','name' => 'Costabissara'),\n \t array('id' => '24092','state_id' => '1901','name' => 'Grumolo delle Abbadesse'),\n \t array('id' => '24093','state_id' => '1901','name' => 'Piovene Rocchette'),\n \t array('id' => '24094','state_id' => '1901','name' => 'Povolaro'),\n \t array('id' => '24095','state_id' => '1901','name' => 'Rossano Veneto'),\n \t array('id' => '24096','state_id' => '1901','name' => 'San Pietro di Rosa'),\n \t array('id' => '24097','state_id' => '1901','name' => 'San Vito di Leguzzano'),\n \t array('id' => '24098','state_id' => '1901','name' => 'Sandrigo'),\n \t array('id' => '24099','state_id' => '1901','name' => 'Thiene'),\n \t array('id' => '24100','state_id' => '1901','name' => 'Torrebelvicino'),\n \t array('id' => '24101','state_id' => '1901','name' => 'Torri di Quartesolo'),\n \t array('id' => '24102','state_id' => '1901','name' => 'Villaverla'),\n \t array('id' => '24103','state_id' => '1902','name' => 'Nepi'),\n \t array('id' => '24104','state_id' => '1904','name' => 'May Pen'),\n \t array('id' => '24105','state_id' => '1905','name' => 'Lucea'),\n \t array('id' => '24106','state_id' => '1906','name' => 'Kingston'),\n \t array('id' => '24107','state_id' => '1907','name' => 'Mandeville'),\n \t array('id' => '24108','state_id' => '1908','name' => 'Port Antonio'),\n \t array('id' => '24109','state_id' => '1916','name' => 'Albert Town'),\n \t array('id' => '24110','state_id' => '1916','name' => 'Falmouth'),\n \t array('id' => '24111','state_id' => '1917','name' => 'Savanna la Mar'),\n \t array('id' => '24112','state_id' => '1918','name' => 'Agui'),\n \t array('id' => '24113','state_id' => '1918','name' => 'Anjo'),\n \t array('id' => '24114','state_id' => '1918','name' => 'Atsumi'),\n \t array('id' => '24115','state_id' => '1918','name' => 'Bisai'),\n \t array('id' => '24116','state_id' => '1918','name' => 'Chiryu'),\n \t array('id' => '24117','state_id' => '1918','name' => 'Chita'),\n \t array('id' => '24118','state_id' => '1918','name' => 'Fujioka'),\n \t array('id' => '24119','state_id' => '1918','name' => 'Fuso'),\n \t array('id' => '24120','state_id' => '1918','name' => 'Gamagori'),\n \t array('id' => '24121','state_id' => '1918','name' => 'Handa'),\n \t array('id' => '24122','state_id' => '1918','name' => 'Hekinan'),\n \t array('id' => '24123','state_id' => '1918','name' => 'Higashiura'),\n \t array('id' => '24124','state_id' => '1918','name' => 'Ichinomiya'),\n \t array('id' => '24125','state_id' => '1918','name' => 'Inazawa'),\n \t array('id' => '24126','state_id' => '1918','name' => 'Inuyama'),\n \t array('id' => '24127','state_id' => '1918','name' => 'Isshiki'),\n \t array('id' => '24128','state_id' => '1918','name' => 'Iwakura'),\n \t array('id' => '24129','state_id' => '1918','name' => 'Jimokuji'),\n \t array('id' => '24130','state_id' => '1918','name' => 'Kanie'),\n \t array('id' => '24131','state_id' => '1918','name' => 'Kariya'),\n \t array('id' => '24132','state_id' => '1918','name' => 'Kasugai'),\n \t array('id' => '24133','state_id' => '1918','name' => 'Kira'),\n \t array('id' => '24134','state_id' => '1918','name' => 'Kisogawa'),\n \t array('id' => '24135','state_id' => '1918','name' => 'Komaki'),\n \t array('id' => '24136','state_id' => '1918','name' => 'Konan'),\n \t array('id' => '24137','state_id' => '1918','name' => 'Kota'),\n \t array('id' => '24138','state_id' => '1918','name' => 'Kozakai'),\n \t array('id' => '24139','state_id' => '1918','name' => 'Mihama'),\n \t array('id' => '24140','state_id' => '1918','name' => 'Minamichita'),\n \t array('id' => '24141','state_id' => '1918','name' => 'Miwa'),\n \t array('id' => '24142','state_id' => '1918','name' => 'Miyoshi'),\n \t array('id' => '24143','state_id' => '1918','name' => 'Nagakute'),\n \t array('id' => '24144','state_id' => '1918','name' => 'Nagoya'),\n \t array('id' => '24145','state_id' => '1918','name' => 'Nishiharu'),\n \t array('id' => '24146','state_id' => '1918','name' => 'Nishio'),\n \t array('id' => '24147','state_id' => '1918','name' => 'Nisshin'),\n \t array('id' => '24148','state_id' => '1918','name' => 'Obu'),\n \t array('id' => '24149','state_id' => '1918','name' => 'Oharu'),\n \t array('id' => '24150','state_id' => '1918','name' => 'Okazaki'),\n \t array('id' => '24151','state_id' => '1918','name' => 'Owariashi'),\n \t array('id' => '24152','state_id' => '1918','name' => 'Saori'),\n \t array('id' => '24153','state_id' => '1918','name' => 'Saya'),\n \t array('id' => '24154','state_id' => '1918','name' => 'Seto'),\n \t array('id' => '24155','state_id' => '1918','name' => 'Shikatsu'),\n \t array('id' => '24156','state_id' => '1918','name' => 'Shinshiro'),\n \t array('id' => '24157','state_id' => '1918','name' => 'Shippo'),\n \t array('id' => '24158','state_id' => '1918','name' => 'Sobue'),\n \t array('id' => '24159','state_id' => '1918','name' => 'Tahara'),\n \t array('id' => '24160','state_id' => '1918','name' => 'Takahama'),\n \t array('id' => '24161','state_id' => '1918','name' => 'Taketoyo'),\n \t array('id' => '24162','state_id' => '1918','name' => 'Togo'),\n \t array('id' => '24163','state_id' => '1918','name' => 'Tokai'),\n \t array('id' => '24164','state_id' => '1918','name' => 'Tokoname'),\n \t array('id' => '24165','state_id' => '1918','name' => 'Toyoake'),\n \t array('id' => '24166','state_id' => '1918','name' => 'Toyohashi'),\n \t array('id' => '24167','state_id' => '1918','name' => 'Toyokawa'),\n \t array('id' => '24168','state_id' => '1918','name' => 'Toyota'),\n \t array('id' => '24169','state_id' => '1918','name' => 'Tsushima'),\n \t array('id' => '24170','state_id' => '1918','name' => 'Yatomi'),\n \t array('id' => '24171','state_id' => '1919','name' => 'Akita'),\n \t array('id' => '24172','state_id' => '1919','name' => 'Honjo'),\n \t array('id' => '24173','state_id' => '1919','name' => 'Kazuno'),\n \t array('id' => '24174','state_id' => '1919','name' => 'Noshiro'),\n \t array('id' => '24175','state_id' => '1919','name' => 'Odate'),\n \t array('id' => '24176','state_id' => '1919','name' => 'Oga'),\n \t array('id' => '24177','state_id' => '1919','name' => 'Omagari'),\n \t array('id' => '24178','state_id' => '1919','name' => 'Takanosu'),\n \t array('id' => '24179','state_id' => '1919','name' => 'Tenno'),\n \t array('id' => '24180','state_id' => '1919','name' => 'Ugo'),\n \t array('id' => '24181','state_id' => '1919','name' => 'Yokote'),\n \t array('id' => '24182','state_id' => '1919','name' => 'Yuzawa'),\n \t array('id' => '24183','state_id' => '1920','name' => 'Aomori'),\n \t array('id' => '24184','state_id' => '1920','name' => 'Goshogawara'),\n \t array('id' => '24185','state_id' => '1920','name' => 'Hachinohe'),\n \t array('id' => '24186','state_id' => '1920','name' => 'Hiraka'),\n \t array('id' => '24187','state_id' => '1920','name' => 'Hirosaki'),\n \t array('id' => '24188','state_id' => '1920','name' => 'Kizukuri'),\n \t array('id' => '24189','state_id' => '1920','name' => 'Kuroishi'),\n \t array('id' => '24190','state_id' => '1920','name' => 'Misawa'),\n \t array('id' => '24191','state_id' => '1920','name' => 'Mutsu'),\n \t array('id' => '24192','state_id' => '1920','name' => 'Namioka'),\n \t array('id' => '24193','state_id' => '1920','name' => 'Towada'),\n \t array('id' => '24194','state_id' => '1921','name' => 'Abiko'),\n \t array('id' => '24195','state_id' => '1921','name' => 'Asahi'),\n \t array('id' => '24196','state_id' => '1921','name' => 'Chiba'),\n \t array('id' => '24197','state_id' => '1921','name' => 'Choshi'),\n \t array('id' => '24198','state_id' => '1921','name' => 'Funabashi'),\n \t array('id' => '24199','state_id' => '1921','name' => 'Fussa'),\n \t array('id' => '24200','state_id' => '1921','name' => 'Futtsu'),\n \t array('id' => '24201','state_id' => '1921','name' => 'Ichihara'),\n \t array('id' => '24202','state_id' => '1921','name' => 'Ichikawa'),\n \t array('id' => '24203','state_id' => '1921','name' => 'Inzai'),\n \t array('id' => '24204','state_id' => '1921','name' => 'Kamagaya'),\n \t array('id' => '24205','state_id' => '1921','name' => 'Kamogawa'),\n \t array('id' => '24206','state_id' => '1921','name' => 'Kashiwa'),\n \t array('id' => '24207','state_id' => '1921','name' => 'Katsuura'),\n \t array('id' => '24208','state_id' => '1921','name' => 'Kimitsu'),\n \t array('id' => '24209','state_id' => '1921','name' => 'Kisarazu'),\n \t array('id' => '24210','state_id' => '1921','name' => 'Kujukuri'),\n \t array('id' => '24211','state_id' => '1921','name' => 'Matsudo'),\n \t array('id' => '24212','state_id' => '1921','name' => 'Mobara'),\n \t array('id' => '24213','state_id' => '1921','name' => 'Nagareyama'),\n \t array('id' => '24214','state_id' => '1921','name' => 'Narashino'),\n \t array('id' => '24215','state_id' => '1921','name' => 'Narita'),\n \t array('id' => '24216','state_id' => '1921','name' => 'Naruto'),\n \t array('id' => '24217','state_id' => '1921','name' => 'Noda'),\n \t array('id' => '24218','state_id' => '1921','name' => 'Oamishirasato'),\n \t array('id' => '24219','state_id' => '1921','name' => 'Ohara'),\n \t array('id' => '24220','state_id' => '1921','name' => 'Omigawa'),\n \t array('id' => '24221','state_id' => '1921','name' => 'Sakae'),\n \t array('id' => '24222','state_id' => '1921','name' => 'Sakura'),\n \t array('id' => '24223','state_id' => '1921','name' => 'Sambu'),\n \t array('id' => '24224','state_id' => '1921','name' => 'Sawara'),\n \t array('id' => '24225','state_id' => '1921','name' => 'Sekiyado'),\n \t array('id' => '24226','state_id' => '1921','name' => 'Shiroi'),\n \t array('id' => '24227','state_id' => '1921','name' => 'Shisui'),\n \t array('id' => '24228','state_id' => '1921','name' => 'Shonan'),\n \t array('id' => '24229','state_id' => '1921','name' => 'Sodegaura'),\n \t array('id' => '24230','state_id' => '1921','name' => 'Tateyama'),\n \t array('id' => '24231','state_id' => '1921','name' => 'Togane'),\n \t array('id' => '24232','state_id' => '1921','name' => 'Tomisato'),\n \t array('id' => '24233','state_id' => '1921','name' => 'Urayasu'),\n \t array('id' => '24234','state_id' => '1921','name' => 'Yachimata'),\n \t array('id' => '24235','state_id' => '1921','name' => 'Yachiyo'),\n \t array('id' => '24236','state_id' => '1921','name' => 'Yokaichiba'),\n \t array('id' => '24237','state_id' => '1921','name' => 'Yotsukaido'),\n \t array('id' => '24238','state_id' => '1922','name' => 'Hojo'),\n \t array('id' => '24239','state_id' => '1922','name' => 'Imabari'),\n \t array('id' => '24240','state_id' => '1922','name' => 'Iyo'),\n \t array('id' => '24241','state_id' => '1922','name' => 'Iyomishima'),\n \t array('id' => '24242','state_id' => '1922','name' => 'Kawanoe'),\n \t array('id' => '24243','state_id' => '1922','name' => 'Masaki'),\n \t array('id' => '24244','state_id' => '1922','name' => 'Matsuyama'),\n \t array('id' => '24245','state_id' => '1922','name' => 'Niihama'),\n \t array('id' => '24246','state_id' => '1922','name' => 'Ozu'),\n \t array('id' => '24247','state_id' => '1922','name' => 'Saijo'),\n \t array('id' => '24248','state_id' => '1922','name' => 'Shigenobu'),\n \t array('id' => '24249','state_id' => '1922','name' => 'Tobe'),\n \t array('id' => '24250','state_id' => '1922','name' => 'Toyo'),\n \t array('id' => '24251','state_id' => '1922','name' => 'Uwajima'),\n \t array('id' => '24252','state_id' => '1922','name' => 'Yawatahama'),\n \t array('id' => '24253','state_id' => '1923','name' => 'Fukui'),\n \t array('id' => '24254','state_id' => '1923','name' => 'Harue'),\n \t array('id' => '24255','state_id' => '1923','name' => 'Katsuyama'),\n \t array('id' => '24256','state_id' => '1923','name' => 'Maruoka'),\n \t array('id' => '24257','state_id' => '1923','name' => 'Mikuni'),\n \t array('id' => '24258','state_id' => '1923','name' => 'Obama'),\n \t array('id' => '24259','state_id' => '1923','name' => 'Ono'),\n \t array('id' => '24260','state_id' => '1923','name' => 'Sabae'),\n \t array('id' => '24261','state_id' => '1923','name' => 'Takefu'),\n \t array('id' => '24262','state_id' => '1923','name' => 'Tsuruga'),\n \t array('id' => '24263','state_id' => '1924','name' => 'Amagi'),\n \t array('id' => '24264','state_id' => '1924','name' => 'Buzen'),\n \t array('id' => '24265','state_id' => '1924','name' => 'Chikugo'),\n \t array('id' => '24266','state_id' => '1924','name' => 'Chikushino'),\n \t array('id' => '24267','state_id' => '1924','name' => 'Dazaifu'),\n \t array('id' => '24268','state_id' => '1924','name' => 'Fukuma'),\n \t array('id' => '24269','state_id' => '1924','name' => 'Fukuoka'),\n \t array('id' => '24270','state_id' => '1924','name' => 'Hirokawa'),\n \t array('id' => '24271','state_id' => '1924','name' => 'Honami'),\n \t array('id' => '24272','state_id' => '1924','name' => 'Iizuka'),\n \t array('id' => '24273','state_id' => '1924','name' => 'Inatsuki'),\n \t array('id' => '24274','state_id' => '1924','name' => 'Kanda'),\n \t array('id' => '24275','state_id' => '1924','name' => 'Kasuga'),\n \t array('id' => '24276','state_id' => '1924','name' => 'Kasuya'),\n \t array('id' => '24277','state_id' => '1924','name' => 'Kawasaki'),\n \t array('id' => '24278','state_id' => '1924','name' => 'Kitakyushu'),\n \t array('id' => '24279','state_id' => '1924','name' => 'Koga'),\n \t array('id' => '24280','state_id' => '1924','name' => 'Kurate'),\n \t array('id' => '24281','state_id' => '1924','name' => 'Kurume'),\n \t array('id' => '24282','state_id' => '1924','name' => 'Maebaru'),\n \t array('id' => '24283','state_id' => '1924','name' => 'Miyata'),\n \t array('id' => '24284','state_id' => '1924','name' => 'Mizumaki'),\n \t array('id' => '24285','state_id' => '1924','name' => 'Munakata'),\n \t array('id' => '24286','state_id' => '1924','name' => 'Nakagawa'),\n \t array('id' => '24287','state_id' => '1924','name' => 'Nakama'),\n \t array('id' => '24288','state_id' => '1924','name' => 'Nogata'),\n \t array('id' => '24289','state_id' => '1924','name' => 'Ogori'),\n \t array('id' => '24290','state_id' => '1924','name' => 'Okagaki'),\n \t array('id' => '24291','state_id' => '1924','name' => 'Okawa'),\n \t array('id' => '24292','state_id' => '1924','name' => 'Omuta'),\n \t array('id' => '24293','state_id' => '1924','name' => 'Onojo'),\n \t array('id' => '24294','state_id' => '1924','name' => 'Sasaguri'),\n \t array('id' => '24295','state_id' => '1924','name' => 'Setaka'),\n \t array('id' => '24296','state_id' => '1924','name' => 'Shime'),\n \t array('id' => '24297','state_id' => '1924','name' => 'Shingu'),\n \t array('id' => '24298','state_id' => '1924','name' => 'Sue'),\n \t array('id' => '24299','state_id' => '1924','name' => 'Tagawa'),\n \t array('id' => '24300','state_id' => '1924','name' => 'Tanushimaru'),\n \t array('id' => '24301','state_id' => '1924','name' => 'Umi'),\n \t array('id' => '24302','state_id' => '1924','name' => 'Yamada'),\n \t array('id' => '24303','state_id' => '1924','name' => 'Yame'),\n \t array('id' => '24304','state_id' => '1924','name' => 'Yanagawa'),\n \t array('id' => '24305','state_id' => '1924','name' => 'Yukuhashi'),\n \t array('id' => '24306','state_id' => '1925','name' => 'Aizubange'),\n \t array('id' => '24307','state_id' => '1925','name' => 'Aizuwakamatsu'),\n \t array('id' => '24308','state_id' => '1925','name' => 'Fukushima'),\n \t array('id' => '24309','state_id' => '1925','name' => 'Funehiki'),\n \t array('id' => '24310','state_id' => '1925','name' => 'Haramachi'),\n \t array('id' => '24311','state_id' => '1925','name' => 'Hobara'),\n \t array('id' => '24312','state_id' => '1925','name' => 'Inawashiro'),\n \t array('id' => '24313','state_id' => '1925','name' => 'Ishikawa'),\n \t array('id' => '24314','state_id' => '1925','name' => 'Iwaki'),\n \t array('id' => '24315','state_id' => '1925','name' => 'Kawamata'),\n \t array('id' => '24316','state_id' => '1925','name' => 'Kitakata'),\n \t array('id' => '24317','state_id' => '1925','name' => 'Koriyama'),\n \t array('id' => '24318','state_id' => '1925','name' => 'Miharu'),\n \t array('id' => '24319','state_id' => '1925','name' => 'Motomiya'),\n \t array('id' => '24320','state_id' => '1925','name' => 'Namie'),\n \t array('id' => '24321','state_id' => '1925','name' => 'Nihommatsu'),\n \t array('id' => '24322','state_id' => '1925','name' => 'Shirakawa'),\n \t array('id' => '24323','state_id' => '1925','name' => 'Soma'),\n \t array('id' => '24324','state_id' => '1925','name' => 'Sukagawa'),\n \t array('id' => '24325','state_id' => '1925','name' => 'Yanagawa'),\n \t array('id' => '24326','state_id' => '1926','name' => 'Ena'),\n \t array('id' => '24327','state_id' => '1926','name' => 'Gifu'),\n \t array('id' => '24328','state_id' => '1926','name' => 'Ginan'),\n \t array('id' => '24329','state_id' => '1926','name' => 'Godo'),\n \t array('id' => '24330','state_id' => '1926','name' => 'Hashima'),\n \t array('id' => '24331','state_id' => '1926','name' => 'Hozumi'),\n \t array('id' => '24332','state_id' => '1926','name' => 'Ibigawa'),\n \t array('id' => '24333','state_id' => '1926','name' => 'Ikeda'),\n \t array('id' => '24334','state_id' => '1926','name' => 'Kakamigahara'),\n \t array('id' => '24335','state_id' => '1926','name' => 'Kani'),\n \t array('id' => '24336','state_id' => '1926','name' => 'Kasamatsu'),\n \t array('id' => '24337','state_id' => '1926','name' => 'Mino'),\n \t array('id' => '24338','state_id' => '1926','name' => 'Minokamo'),\n \t array('id' => '24339','state_id' => '1926','name' => 'Mitake'),\n \t array('id' => '24340','state_id' => '1926','name' => 'Mizunami'),\n \t array('id' => '24341','state_id' => '1926','name' => 'Nakatsugawa'),\n \t array('id' => '24342','state_id' => '1926','name' => 'Ogaki'),\n \t array('id' => '24343','state_id' => '1926','name' => 'Ono'),\n \t array('id' => '24344','state_id' => '1926','name' => 'Seki'),\n \t array('id' => '24345','state_id' => '1926','name' => 'Tajimi'),\n \t array('id' => '24346','state_id' => '1926','name' => 'Takayama'),\n \t array('id' => '24347','state_id' => '1926','name' => 'Tarui'),\n \t array('id' => '24348','state_id' => '1926','name' => 'Toki'),\n \t array('id' => '24349','state_id' => '1926','name' => 'Yoro'),\n \t array('id' => '24350','state_id' => '1927','name' => 'Annaka'),\n \t array('id' => '24351','state_id' => '1927','name' => 'Azuma'),\n \t array('id' => '24352','state_id' => '1927','name' => 'Fujimi'),\n \t array('id' => '24353','state_id' => '1927','name' => 'Fujioka'),\n \t array('id' => '24354','state_id' => '1927','name' => 'Gumma'),\n \t array('id' => '24355','state_id' => '1927','name' => 'Haruna'),\n \t array('id' => '24356','state_id' => '1927','name' => 'Isesaki'),\n \t array('id' => '24357','state_id' => '1927','name' => 'Kasakake'),\n \t array('id' => '24358','state_id' => '1927','name' => 'Kiryu'),\n \t array('id' => '24359','state_id' => '1927','name' => 'Maebashi'),\n \t array('id' => '24360','state_id' => '1927','name' => 'Nakanojo'),\n \t array('id' => '24361','state_id' => '1927','name' => 'Nitta'),\n \t array('id' => '24362','state_id' => '1927','name' => 'Numata'),\n \t array('id' => '24363','state_id' => '1927','name' => 'Oizumi'),\n \t array('id' => '24364','state_id' => '1927','name' => 'Omama'),\n \t array('id' => '24365','state_id' => '1927','name' => 'Ora'),\n \t array('id' => '24366','state_id' => '1927','name' => 'Ota'),\n \t array('id' => '24367','state_id' => '1927','name' => 'Sakai'),\n \t array('id' => '24368','state_id' => '1927','name' => 'Shibukawa'),\n \t array('id' => '24369','state_id' => '1927','name' => 'Takasaki'),\n \t array('id' => '24370','state_id' => '1927','name' => 'Tamamura'),\n \t array('id' => '24371','state_id' => '1927','name' => 'Tatebayashi'),\n \t array('id' => '24372','state_id' => '1927','name' => 'Tomioka'),\n \t array('id' => '24373','state_id' => '1927','name' => 'Yoshii'),\n \t array('id' => '24374','state_id' => '1928','name' => 'Fuchu'),\n \t array('id' => '24375','state_id' => '1928','name' => 'Fukuyama'),\n \t array('id' => '24376','state_id' => '1928','name' => 'Hatsukaichi'),\n \t array('id' => '24377','state_id' => '1928','name' => 'Higashihiroshima'),\n \t array('id' => '24378','state_id' => '1928','name' => 'Hiroshima'),\n \t array('id' => '24379','state_id' => '1928','name' => 'Innoshima'),\n \t array('id' => '24380','state_id' => '1928','name' => 'Kaita'),\n \t array('id' => '24381','state_id' => '1928','name' => 'Kannabe'),\n \t array('id' => '24382','state_id' => '1928','name' => 'Kumano'),\n \t array('id' => '24383','state_id' => '1928','name' => 'Kure'),\n \t array('id' => '24384','state_id' => '1928','name' => 'Kurose'),\n \t array('id' => '24385','state_id' => '1928','name' => 'Mihara'),\n \t array('id' => '24386','state_id' => '1928','name' => 'Miyoshi'),\n \t array('id' => '24387','state_id' => '1928','name' => 'Ono'),\n \t array('id' => '24388','state_id' => '1928','name' => 'Onomichi'),\n \t array('id' => '24389','state_id' => '1928','name' => 'Otake'),\n \t array('id' => '24390','state_id' => '1928','name' => 'Shinichi'),\n \t array('id' => '24391','state_id' => '1928','name' => 'Shobara'),\n \t array('id' => '24392','state_id' => '1928','name' => 'Takehara'),\n \t array('id' => '24393','state_id' => '1929','name' => 'Abashiri'),\n \t array('id' => '24394','state_id' => '1929','name' => 'Akabira'),\n \t array('id' => '24395','state_id' => '1929','name' => 'Asahikawa'),\n \t array('id' => '24396','state_id' => '1929','name' => 'Ashibetsu'),\n \t array('id' => '24397','state_id' => '1929','name' => 'Bibai'),\n \t array('id' => '24398','state_id' => '1929','name' => 'Bihoro'),\n \t array('id' => '24399','state_id' => '1929','name' => 'Chitose'),\n \t array('id' => '24400','state_id' => '1929','name' => 'Date'),\n \t array('id' => '24401','state_id' => '1929','name' => 'Ebetsu'),\n \t array('id' => '24402','state_id' => '1929','name' => 'Eniwa'),\n \t array('id' => '24403','state_id' => '1929','name' => 'Fukagawa'),\n \t array('id' => '24404','state_id' => '1929','name' => 'Furano'),\n \t array('id' => '24405','state_id' => '1929','name' => 'Hakodate'),\n \t array('id' => '24406','state_id' => '1929','name' => 'Hokkaido'),\n \t array('id' => '24407','state_id' => '1929','name' => 'Hyogo'),\n \t array('id' => '24408','state_id' => '1929','name' => 'Ishikari'),\n \t array('id' => '24409','state_id' => '1929','name' => 'Iwamizawa'),\n \t array('id' => '24410','state_id' => '1929','name' => 'Iwanai'),\n \t array('id' => '24411','state_id' => '1929','name' => 'Kamiiso'),\n \t array('id' => '24412','state_id' => '1929','name' => 'Kitahiroshima'),\n \t array('id' => '24413','state_id' => '1929','name' => 'Kitami'),\n \t array('id' => '24414','state_id' => '1929','name' => 'Kushiro'),\n \t array('id' => '24415','state_id' => '1929','name' => 'Makubetsu'),\n \t array('id' => '24416','state_id' => '1929','name' => 'Mikasa'),\n \t array('id' => '24417','state_id' => '1929','name' => 'Mombetsu'),\n \t array('id' => '24418','state_id' => '1929','name' => 'Muroran'),\n \t array('id' => '24419','state_id' => '1929','name' => 'Nakashibetsu'),\n \t array('id' => '24420','state_id' => '1929','name' => 'Nanae'),\n \t array('id' => '24421','state_id' => '1929','name' => 'Nayoro'),\n \t array('id' => '24422','state_id' => '1929','name' => 'Nemuro'),\n \t array('id' => '24423','state_id' => '1929','name' => 'Noboribetsu'),\n \t array('id' => '24424','state_id' => '1929','name' => 'Obihiro'),\n \t array('id' => '24425','state_id' => '1929','name' => 'Otaru'),\n \t array('id' => '24426','state_id' => '1929','name' => 'Otofuke'),\n \t array('id' => '24427','state_id' => '1929','name' => 'Rumoi'),\n \t array('id' => '24428','state_id' => '1929','name' => 'Sapporo'),\n \t array('id' => '24429','state_id' => '1929','name' => 'Shibetsu'),\n \t array('id' => '24430','state_id' => '1929','name' => 'Shiraoi'),\n \t array('id' => '24431','state_id' => '1929','name' => 'Shizunai'),\n \t array('id' => '24432','state_id' => '1929','name' => 'Sunagawa'),\n \t array('id' => '24433','state_id' => '1929','name' => 'Takikawa'),\n \t array('id' => '24434','state_id' => '1929','name' => 'Tobetsu'),\n \t array('id' => '24435','state_id' => '1929','name' => 'Tomakomai'),\n \t array('id' => '24436','state_id' => '1929','name' => 'Utashinai'),\n \t array('id' => '24437','state_id' => '1929','name' => 'Wakkanai'),\n \t array('id' => '24438','state_id' => '1929','name' => 'Yoichi'),\n \t array('id' => '24439','state_id' => '1929','name' => 'Yubari'),\n \t array('id' => '24440','state_id' => '1930','name' => 'Aioi'),\n \t array('id' => '24441','state_id' => '1930','name' => 'Akashi'),\n \t array('id' => '24442','state_id' => '1930','name' => 'Ako'),\n \t array('id' => '24443','state_id' => '1930','name' => 'Amagasaki'),\n \t array('id' => '24444','state_id' => '1930','name' => 'Ashiya'),\n \t array('id' => '24445','state_id' => '1930','name' => 'Fukusaki'),\n \t array('id' => '24446','state_id' => '1930','name' => 'Harima'),\n \t array('id' => '24447','state_id' => '1930','name' => 'Himeji'),\n \t array('id' => '24448','state_id' => '1930','name' => 'Inagawa'),\n \t array('id' => '24449','state_id' => '1930','name' => 'Inami'),\n \t array('id' => '24450','state_id' => '1930','name' => 'Itami'),\n \t array('id' => '24451','state_id' => '1930','name' => 'Kakogawa'),\n \t array('id' => '24452','state_id' => '1930','name' => 'Kasai'),\n \t array('id' => '24453','state_id' => '1930','name' => 'Kawanishi'),\n \t array('id' => '24454','state_id' => '1930','name' => 'Kobe'),\n \t array('id' => '24455','state_id' => '1930','name' => 'Kodera'),\n \t array('id' => '24456','state_id' => '1930','name' => 'Miki'),\n \t array('id' => '24457','state_id' => '1930','name' => 'Nandan'),\n \t array('id' => '24458','state_id' => '1930','name' => 'Nishinomiya'),\n \t array('id' => '24459','state_id' => '1930','name' => 'Nishiwaki'),\n \t array('id' => '24460','state_id' => '1930','name' => 'Ono'),\n \t array('id' => '24461','state_id' => '1930','name' => 'Sanda'),\n \t array('id' => '24462','state_id' => '1930','name' => 'Sasayama'),\n \t array('id' => '24463','state_id' => '1930','name' => 'Sumoto'),\n \t array('id' => '24464','state_id' => '1930','name' => 'Taishi'),\n \t array('id' => '24465','state_id' => '1930','name' => 'Takarazuka'),\n \t array('id' => '24466','state_id' => '1930','name' => 'Takasago'),\n \t array('id' => '24467','state_id' => '1930','name' => 'Tatsuno'),\n \t array('id' => '24468','state_id' => '1930','name' => 'Toyooka'),\n \t array('id' => '24469','state_id' => '1930','name' => 'Yamasaki'),\n \t array('id' => '24470','state_id' => '1930','name' => 'Yashiro'),\n \t array('id' => '24471','state_id' => '1930','name' => 'Yumesaki'),\n \t array('id' => '24472','state_id' => '1931','name' => 'Ami'),\n \t array('id' => '24473','state_id' => '1931','name' => 'Chiyoda'),\n \t array('id' => '24474','state_id' => '1931','name' => 'Daigo'),\n \t array('id' => '24475','state_id' => '1931','name' => 'Edosaki'),\n \t array('id' => '24476','state_id' => '1931','name' => 'Fujishiro'),\n \t array('id' => '24477','state_id' => '1931','name' => 'Hasaki'),\n \t array('id' => '24478','state_id' => '1931','name' => 'Hitachi'),\n \t array('id' => '24479','state_id' => '1931','name' => 'Hitachinaka'),\n \t array('id' => '24480','state_id' => '1931','name' => 'Hitachiota'),\n \t array('id' => '24481','state_id' => '1931','name' => 'Hokota'),\n \t array('id' => '24482','state_id' => '1931','name' => 'Ibaraki'),\n \t array('id' => '24483','state_id' => '1931','name' => 'Ina'),\n \t array('id' => '24484','state_id' => '1931','name' => 'Ishige'),\n \t array('id' => '24485','state_id' => '1931','name' => 'Ishioka'),\n \t array('id' => '24486','state_id' => '1931','name' => 'Itako'),\n \t array('id' => '24487','state_id' => '1931','name' => 'Iwai'),\n \t array('id' => '24488','state_id' => '1931','name' => 'Iwase'),\n \t array('id' => '24489','state_id' => '1931','name' => 'Kamisu'),\n \t array('id' => '24490','state_id' => '1931','name' => 'Kasama'),\n \t array('id' => '24491','state_id' => '1931','name' => 'Kashima'),\n \t array('id' => '24492','state_id' => '1931','name' => 'Kasumigaura'),\n \t array('id' => '24493','state_id' => '1931','name' => 'Kitaibaraki'),\n \t array('id' => '24494','state_id' => '1931','name' => 'Koga'),\n \t array('id' => '24495','state_id' => '1931','name' => 'Kukizaki'),\n \t array('id' => '24496','state_id' => '1931','name' => 'Makabe'),\n \t array('id' => '24497','state_id' => '1931','name' => 'Minori'),\n \t array('id' => '24498','state_id' => '1931','name' => 'Mito'),\n \t array('id' => '24499','state_id' => '1931','name' => 'Mitsukaido'),\n \t array('id' => '24500','state_id' => '1931','name' => 'Moriya'),\n \t array('id' => '24501','state_id' => '1931','name' => 'Naka'),\n \t array('id' => '24502','state_id' => '1931','name' => 'Oarai'),\n \t array('id' => '24503','state_id' => '1931','name' => 'Omiya'),\n \t array('id' => '24504','state_id' => '1931','name' => 'Ryugasaki'),\n \t array('id' => '24505','state_id' => '1931','name' => 'Sakai'),\n \t array('id' => '24506','state_id' => '1931','name' => 'Sanwa'),\n \t array('id' => '24507','state_id' => '1931','name' => 'Shimodate'),\n \t array('id' => '24508','state_id' => '1931','name' => 'Shimotsuma'),\n \t array('id' => '24509','state_id' => '1931','name' => 'Sowa'),\n \t array('id' => '24510','state_id' => '1931','name' => 'Takahagi'),\n \t array('id' => '24511','state_id' => '1931','name' => 'Tokai'),\n \t array('id' => '24512','state_id' => '1931','name' => 'Tomobe'),\n \t array('id' => '24513','state_id' => '1931','name' => 'Tone'),\n \t array('id' => '24514','state_id' => '1931','name' => 'Toride'),\n \t array('id' => '24515','state_id' => '1931','name' => 'Tsukuba'),\n \t array('id' => '24516','state_id' => '1931','name' => 'Ushiku'),\n \t array('id' => '24517','state_id' => '1931','name' => 'Yachiyo'),\n \t array('id' => '24518','state_id' => '1931','name' => 'Yasato'),\n \t array('id' => '24519','state_id' => '1931','name' => 'Yuki'),\n \t array('id' => '24520','state_id' => '1932','name' => 'Hakui'),\n \t array('id' => '24521','state_id' => '1932','name' => 'Kaga'),\n \t array('id' => '24522','state_id' => '1932','name' => 'Kanazawa'),\n \t array('id' => '24523','state_id' => '1932','name' => 'Komatsu'),\n \t array('id' => '24524','state_id' => '1932','name' => 'Matto'),\n \t array('id' => '24525','state_id' => '1932','name' => 'Nanao'),\n \t array('id' => '24526','state_id' => '1932','name' => 'Nonoichi'),\n \t array('id' => '24527','state_id' => '1932','name' => 'Suzu'),\n \t array('id' => '24528','state_id' => '1932','name' => 'Tsubata'),\n \t array('id' => '24529','state_id' => '1932','name' => 'Tsurugi'),\n \t array('id' => '24530','state_id' => '1932','name' => 'Uchinada'),\n \t array('id' => '24531','state_id' => '1932','name' => 'Wajima'),\n \t array('id' => '24532','state_id' => '1933','name' => 'Daito'),\n \t array('id' => '24533','state_id' => '1933','name' => 'Esashi'),\n \t array('id' => '24534','state_id' => '1933','name' => 'Hanamaki'),\n \t array('id' => '24535','state_id' => '1933','name' => 'Ichinohe'),\n \t array('id' => '24536','state_id' => '1933','name' => 'Ichinoseki'),\n \t array('id' => '24537','state_id' => '1933','name' => 'Iwate'),\n \t array('id' => '24538','state_id' => '1933','name' => 'Kamaishi'),\n \t array('id' => '24539','state_id' => '1933','name' => 'Kitakami'),\n \t array('id' => '24540','state_id' => '1933','name' => 'Kuji'),\n \t array('id' => '24541','state_id' => '1933','name' => 'Miyako'),\n \t array('id' => '24542','state_id' => '1933','name' => 'Mizusawa'),\n \t array('id' => '24543','state_id' => '1933','name' => 'Morioka'),\n \t array('id' => '24544','state_id' => '1933','name' => 'Ninohe'),\n \t array('id' => '24545','state_id' => '1933','name' => 'Ofunato'),\n \t array('id' => '24546','state_id' => '1933','name' => 'Otsuchi'),\n \t array('id' => '24547','state_id' => '1933','name' => 'Rikuzentakata'),\n \t array('id' => '24548','state_id' => '1933','name' => 'Shiwa'),\n \t array('id' => '24549','state_id' => '1933','name' => 'Shizukuishi'),\n \t array('id' => '24550','state_id' => '1933','name' => 'Takizawa'),\n \t array('id' => '24551','state_id' => '1933','name' => 'Tono'),\n \t array('id' => '24552','state_id' => '1933','name' => 'Yahaba'),\n \t array('id' => '24553','state_id' => '1933','name' => 'Yamada'),\n \t array('id' => '24554','state_id' => '1934','name' => 'Kagawa'),\n \t array('id' => '24555','state_id' => '1934','name' => 'Kanonji'),\n \t array('id' => '24556','state_id' => '1934','name' => 'Kokubunji'),\n \t array('id' => '24557','state_id' => '1934','name' => 'Marugame'),\n \t array('id' => '24558','state_id' => '1934','name' => 'Miki'),\n \t array('id' => '24559','state_id' => '1934','name' => 'Ryonan'),\n \t array('id' => '24560','state_id' => '1934','name' => 'Sakaide'),\n \t array('id' => '24561','state_id' => '1934','name' => 'Shido'),\n \t array('id' => '24562','state_id' => '1934','name' => 'Tadotsu'),\n \t array('id' => '24563','state_id' => '1934','name' => 'Takamatsu'),\n \t array('id' => '24564','state_id' => '1934','name' => 'Tonosho'),\n \t array('id' => '24565','state_id' => '1934','name' => 'Zentsuji'),\n \t array('id' => '24566','state_id' => '1935','name' => 'Aira'),\n \t array('id' => '24567','state_id' => '1935','name' => 'Akune'),\n \t array('id' => '24568','state_id' => '1935','name' => 'Hayato'),\n \t array('id' => '24569','state_id' => '1935','name' => 'Ibusuki'),\n \t array('id' => '24570','state_id' => '1935','name' => 'Ijuin'),\n \t array('id' => '24571','state_id' => '1935','name' => 'Izumi'),\n \t array('id' => '24572','state_id' => '1935','name' => 'Kagoshima'),\n \t array('id' => '24573','state_id' => '1935','name' => 'Kajiki'),\n \t array('id' => '24574','state_id' => '1935','name' => 'Kanoya'),\n \t array('id' => '24575','state_id' => '1935','name' => 'Kaseda'),\n \t array('id' => '24576','state_id' => '1935','name' => 'Kokubu'),\n \t array('id' => '24577','state_id' => '1935','name' => 'Kushikino'),\n \t array('id' => '24578','state_id' => '1935','name' => 'Makurazaki'),\n \t array('id' => '24579','state_id' => '1935','name' => 'Naze'),\n \t array('id' => '24580','state_id' => '1935','name' => 'Nishinoomote'),\n \t array('id' => '24581','state_id' => '1935','name' => 'Okuchi'),\n \t array('id' => '24582','state_id' => '1935','name' => 'Sendai'),\n \t array('id' => '24583','state_id' => '1935','name' => 'Shibushi'),\n \t array('id' => '24584','state_id' => '1935','name' => 'Sueyoshi'),\n \t array('id' => '24585','state_id' => '1935','name' => 'Tarumizu'),\n \t array('id' => '24586','state_id' => '1936','name' => 'Aikawa'),\n \t array('id' => '24587','state_id' => '1936','name' => 'Atsugi'),\n \t array('id' => '24588','state_id' => '1936','name' => 'Ayase'),\n \t array('id' => '24589','state_id' => '1936','name' => 'Chigasaki'),\n \t array('id' => '24590','state_id' => '1936','name' => 'Ebina'),\n \t array('id' => '24591','state_id' => '1936','name' => 'Fujisawa'),\n \t array('id' => '24592','state_id' => '1936','name' => 'Hadano'),\n \t array('id' => '24593','state_id' => '1936','name' => 'Hakone'),\n \t array('id' => '24594','state_id' => '1936','name' => 'Hayama'),\n \t array('id' => '24595','state_id' => '1936','name' => 'Hiratsuka'),\n \t array('id' => '24596','state_id' => '1936','name' => 'Isehara'),\n \t array('id' => '24597','state_id' => '1936','name' => 'Kamakura'),\n \t array('id' => '24598','state_id' => '1936','name' => 'Kawasaki'),\n \t array('id' => '24599','state_id' => '1936','name' => 'Minamiashigara'),\n \t array('id' => '24600','state_id' => '1936','name' => 'Miura'),\n \t array('id' => '24601','state_id' => '1936','name' => 'Ninomiya'),\n \t array('id' => '24602','state_id' => '1936','name' => 'Odawara'),\n \t array('id' => '24603','state_id' => '1936','name' => 'Oiso'),\n \t array('id' => '24604','state_id' => '1936','name' => 'Sagamihara'),\n \t array('id' => '24605','state_id' => '1936','name' => 'Samukawa'),\n \t array('id' => '24606','state_id' => '1936','name' => 'Shiroyama'),\n \t array('id' => '24607','state_id' => '1936','name' => 'Takatsu-Ku'),\n \t array('id' => '24608','state_id' => '1936','name' => 'Tsukui'),\n \t array('id' => '24609','state_id' => '1936','name' => 'Yamato'),\n \t array('id' => '24610','state_id' => '1936','name' => 'Yokohama'),\n \t array('id' => '24611','state_id' => '1936','name' => 'Yokosuka'),\n \t array('id' => '24612','state_id' => '1936','name' => 'Yugawara'),\n \t array('id' => '24613','state_id' => '1936','name' => 'Zama'),\n \t array('id' => '24614','state_id' => '1936','name' => 'Zushi'),\n \t array('id' => '24615','state_id' => '1937','name' => 'Gunma'),\n \t array('id' => '24616','state_id' => '1937','name' => 'Saitama'),\n \t array('id' => '24617','state_id' => '1938','name' => 'Aki'),\n \t array('id' => '24618','state_id' => '1938','name' => 'Ino'),\n \t array('id' => '24619','state_id' => '1938','name' => 'Kochi'),\n \t array('id' => '24620','state_id' => '1938','name' => 'Muroto'),\n \t array('id' => '24621','state_id' => '1938','name' => 'Nakamura'),\n \t array('id' => '24622','state_id' => '1938','name' => 'Nankoku'),\n \t array('id' => '24623','state_id' => '1938','name' => 'Sukumo'),\n \t array('id' => '24624','state_id' => '1938','name' => 'Susaki'),\n \t array('id' => '24625','state_id' => '1938','name' => 'Tosa'),\n \t array('id' => '24626','state_id' => '1938','name' => 'Tosashimizu'),\n \t array('id' => '24627','state_id' => '1938','name' => 'Tosayamada'),\n \t array('id' => '24628','state_id' => '1939','name' => 'Arao'),\n \t array('id' => '24629','state_id' => '1939','name' => 'Ashikita'),\n \t array('id' => '24630','state_id' => '1939','name' => 'Aso'),\n \t array('id' => '24631','state_id' => '1939','name' => 'Hitoyoshi'),\n \t array('id' => '24632','state_id' => '1939','name' => 'Hondo'),\n \t array('id' => '24633','state_id' => '1939','name' => 'Jonan'),\n \t array('id' => '24634','state_id' => '1939','name' => 'Kikuchi'),\n \t array('id' => '24635','state_id' => '1939','name' => 'Kikuyo'),\n \t array('id' => '24636','state_id' => '1939','name' => 'Koshi'),\n \t array('id' => '24637','state_id' => '1939','name' => 'Kumamoto'),\n \t array('id' => '24638','state_id' => '1939','name' => 'Mashiki'),\n \t array('id' => '24639','state_id' => '1939','name' => 'Matsubase'),\n \t array('id' => '24640','state_id' => '1939','name' => 'Minamata'),\n \t array('id' => '24641','state_id' => '1939','name' => 'Nishigoshi'),\n \t array('id' => '24642','state_id' => '1939','name' => 'Ozu'),\n \t array('id' => '24643','state_id' => '1939','name' => 'Tamana'),\n \t array('id' => '24644','state_id' => '1939','name' => 'Ueki'),\n \t array('id' => '24645','state_id' => '1939','name' => 'Ushibuka'),\n \t array('id' => '24646','state_id' => '1939','name' => 'Uto'),\n \t array('id' => '24647','state_id' => '1939','name' => 'Yamaga'),\n \t array('id' => '24648','state_id' => '1939','name' => 'Yatsushiro'),\n \t array('id' => '24649','state_id' => '1940','name' => 'Ayabe'),\n \t array('id' => '24650','state_id' => '1940','name' => 'Fukuchiyama'),\n \t array('id' => '24651','state_id' => '1940','name' => 'Joyo'),\n \t array('id' => '24652','state_id' => '1940','name' => 'Kameoka'),\n \t array('id' => '24653','state_id' => '1940','name' => 'Kizu'),\n \t array('id' => '24654','state_id' => '1940','name' => 'Kumiyama'),\n \t array('id' => '24655','state_id' => '1940','name' => 'Kyotanabe'),\n \t array('id' => '24656','state_id' => '1940','name' => 'Kyoto'),\n \t array('id' => '24657','state_id' => '1940','name' => 'Maizuru'),\n \t array('id' => '24658','state_id' => '1940','name' => 'Miyazu'),\n \t array('id' => '24659','state_id' => '1940','name' => 'Muko'),\n \t array('id' => '24660','state_id' => '1940','name' => 'Nagaokakyo'),\n \t array('id' => '24661','state_id' => '1940','name' => 'Seika'),\n \t array('id' => '24662','state_id' => '1940','name' => 'Uji'),\n \t array('id' => '24663','state_id' => '1940','name' => 'Yawata'),\n \t array('id' => '24664','state_id' => '1941','name' => 'Ago'),\n \t array('id' => '24665','state_id' => '1941','name' => 'Hisai'),\n \t array('id' => '24666','state_id' => '1941','name' => 'Ise'),\n \t array('id' => '24667','state_id' => '1941','name' => 'Kameyama'),\n \t array('id' => '24668','state_id' => '1941','name' => 'Komono'),\n \t array('id' => '24669','state_id' => '1941','name' => 'Kumano'),\n \t array('id' => '24670','state_id' => '1941','name' => 'Kuwana'),\n \t array('id' => '24671','state_id' => '1941','name' => 'Matsusaka'),\n \t array('id' => '24672','state_id' => '1941','name' => 'Meiwa'),\n \t array('id' => '24673','state_id' => '1941','name' => 'Nabari'),\n \t array('id' => '24674','state_id' => '1941','name' => 'Owase'),\n \t array('id' => '24675','state_id' => '1941','name' => 'Suzuka'),\n \t array('id' => '24676','state_id' => '1941','name' => 'Toba'),\n \t array('id' => '24677','state_id' => '1941','name' => 'Toin'),\n \t array('id' => '24678','state_id' => '1941','name' => 'Tsu'),\n \t array('id' => '24679','state_id' => '1941','name' => 'Ueno'),\n \t array('id' => '24680','state_id' => '1941','name' => 'Yokkaichi'),\n \t array('id' => '24681','state_id' => '1942','name' => 'Furukawa'),\n \t array('id' => '24682','state_id' => '1942','name' => 'Hasama'),\n \t array('id' => '24683','state_id' => '1942','name' => 'Ishinomaki'),\n \t array('id' => '24684','state_id' => '1942','name' => 'Iwanuma'),\n \t array('id' => '24685','state_id' => '1942','name' => 'Kakuda'),\n \t array('id' => '24686','state_id' => '1942','name' => 'Kesennuma'),\n \t array('id' => '24687','state_id' => '1942','name' => 'Kogota'),\n \t array('id' => '24688','state_id' => '1942','name' => 'Marumori'),\n \t array('id' => '24689','state_id' => '1942','name' => 'Natori'),\n \t array('id' => '24690','state_id' => '1942','name' => 'Ogawara'),\n \t array('id' => '24691','state_id' => '1942','name' => 'Rifu'),\n \t array('id' => '24692','state_id' => '1942','name' => 'Sendai'),\n \t array('id' => '24693','state_id' => '1942','name' => 'Shibata'),\n \t array('id' => '24694','state_id' => '1942','name' => 'Shichigahama'),\n \t array('id' => '24695','state_id' => '1942','name' => 'Shiogama'),\n \t array('id' => '24696','state_id' => '1942','name' => 'Shiroishi'),\n \t array('id' => '24697','state_id' => '1942','name' => 'Tagajo'),\n \t array('id' => '24698','state_id' => '1942','name' => 'Taiwa'),\n \t array('id' => '24699','state_id' => '1942','name' => 'Tomiya'),\n \t array('id' => '24700','state_id' => '1942','name' => 'Wakuya'),\n \t array('id' => '24701','state_id' => '1942','name' => 'Watari'),\n \t array('id' => '24702','state_id' => '1942','name' => 'Yamoto'),\n \t array('id' => '24703','state_id' => '1943','name' => 'Ebino'),\n \t array('id' => '24704','state_id' => '1943','name' => 'Hyuga'),\n \t array('id' => '24705','state_id' => '1943','name' => 'Kiyotake'),\n \t array('id' => '24706','state_id' => '1943','name' => 'Kobayashi'),\n \t array('id' => '24707','state_id' => '1943','name' => 'Kunitomi'),\n \t array('id' => '24708','state_id' => '1943','name' => 'Kushima'),\n \t array('id' => '24709','state_id' => '1943','name' => 'Mimata'),\n \t array('id' => '24710','state_id' => '1943','name' => 'Miyakonojo'),\n \t array('id' => '24711','state_id' => '1943','name' => 'Miyazaki'),\n \t array('id' => '24712','state_id' => '1943','name' => 'Nichinan'),\n \t array('id' => '24713','state_id' => '1943','name' => 'Nobeoka'),\n \t array('id' => '24714','state_id' => '1943','name' => 'Sadowara'),\n \t array('id' => '24715','state_id' => '1943','name' => 'Saito'),\n \t array('id' => '24716','state_id' => '1943','name' => 'Shintomi'),\n \t array('id' => '24717','state_id' => '1943','name' => 'Takanabe'),\n \t array('id' => '24718','state_id' => '1944','name' => 'Chino'),\n \t array('id' => '24719','state_id' => '1944','name' => 'Hotaka'),\n \t array('id' => '24720','state_id' => '1944','name' => 'Iida'),\n \t array('id' => '24721','state_id' => '1944','name' => 'Iiyama'),\n \t array('id' => '24722','state_id' => '1944','name' => 'Ina'),\n \t array('id' => '24723','state_id' => '1944','name' => 'Komagane'),\n \t array('id' => '24724','state_id' => '1944','name' => 'Komoro'),\n \t array('id' => '24725','state_id' => '1944','name' => 'Koshoku'),\n \t array('id' => '24726','state_id' => '1944','name' => 'Maruko'),\n \t array('id' => '24727','state_id' => '1944','name' => 'Matsumoto'),\n \t array('id' => '24728','state_id' => '1944','name' => 'Minowa'),\n \t array('id' => '24729','state_id' => '1944','name' => 'Nagano'),\n \t array('id' => '24730','state_id' => '1944','name' => 'Nakano'),\n \t array('id' => '24731','state_id' => '1944','name' => 'Okaya'),\n \t array('id' => '24732','state_id' => '1944','name' => 'Omachi'),\n \t array('id' => '24733','state_id' => '1944','name' => 'Saku'),\n \t array('id' => '24734','state_id' => '1944','name' => 'Shimosuwa'),\n \t array('id' => '24735','state_id' => '1944','name' => 'Shiojiri'),\n \t array('id' => '24736','state_id' => '1944','name' => 'Suwa'),\n \t array('id' => '24737','state_id' => '1944','name' => 'Suzaka'),\n \t array('id' => '24738','state_id' => '1944','name' => 'Tatsuno'),\n \t array('id' => '24739','state_id' => '1944','name' => 'Tobu'),\n \t array('id' => '24740','state_id' => '1944','name' => 'Toyoshina'),\n \t array('id' => '24741','state_id' => '1944','name' => 'Ueda'),\n \t array('id' => '24742','state_id' => '1945','name' => 'Fukue'),\n \t array('id' => '24743','state_id' => '1945','name' => 'Hirado'),\n \t array('id' => '24744','state_id' => '1945','name' => 'Isahaya'),\n \t array('id' => '24745','state_id' => '1945','name' => 'Matsuura'),\n \t array('id' => '24746','state_id' => '1945','name' => 'Nagasaki'),\n \t array('id' => '24747','state_id' => '1945','name' => 'Nagayo'),\n \t array('id' => '24748','state_id' => '1945','name' => 'Omura'),\n \t array('id' => '24749','state_id' => '1945','name' => 'Sasebo'),\n \t array('id' => '24750','state_id' => '1945','name' => 'Shimabara'),\n \t array('id' => '24751','state_id' => '1945','name' => 'Togitsu'),\n \t array('id' => '24752','state_id' => '1946','name' => 'Gojo'),\n \t array('id' => '24753','state_id' => '1946','name' => 'Gose'),\n \t array('id' => '24754','state_id' => '1946','name' => 'Haibara'),\n \t array('id' => '24755','state_id' => '1946','name' => 'Heguri'),\n \t array('id' => '24756','state_id' => '1946','name' => 'Ikagura'),\n \t array('id' => '24757','state_id' => '1946','name' => 'Ikoma'),\n \t array('id' => '24758','state_id' => '1946','name' => 'Kammaki'),\n \t array('id' => '24759','state_id' => '1946','name' => 'Kashiba'),\n \t array('id' => '24760','state_id' => '1946','name' => 'Kashihara'),\n \t array('id' => '24761','state_id' => '1946','name' => 'Kawai'),\n \t array('id' => '24762','state_id' => '1946','name' => 'Koryo'),\n \t array('id' => '24763','state_id' => '1946','name' => 'Nara'),\n \t array('id' => '24764','state_id' => '1946','name' => 'Oji'),\n \t array('id' => '24765','state_id' => '1946','name' => 'Oyodo'),\n \t array('id' => '24766','state_id' => '1946','name' => 'Sakurai'),\n \t array('id' => '24767','state_id' => '1946','name' => 'Sango'),\n \t array('id' => '24768','state_id' => '1946','name' => 'Tawaramoto'),\n \t array('id' => '24769','state_id' => '1946','name' => 'Tenri'),\n \t array('id' => '24770','state_id' => '1946','name' => 'Yamatokoriyama'),\n \t array('id' => '24771','state_id' => '1946','name' => 'Yamatotakada'),\n \t array('id' => '24772','state_id' => '1947','name' => 'Arai'),\n \t array('id' => '24773','state_id' => '1947','name' => 'Fuchu'),\n \t array('id' => '24774','state_id' => '1947','name' => 'Gosen'),\n \t array('id' => '24775','state_id' => '1947','name' => 'Itoigawa'),\n \t array('id' => '24776','state_id' => '1947','name' => 'Joetsu'),\n \t array('id' => '24777','state_id' => '1947','name' => 'Kameda'),\n \t array('id' => '24778','state_id' => '1947','name' => 'Kamo'),\n \t array('id' => '24779','state_id' => '1947','name' => 'Kashiwazaki'),\n \t array('id' => '24780','state_id' => '1947','name' => 'Kurosaki'),\n \t array('id' => '24781','state_id' => '1947','name' => 'Maki'),\n \t array('id' => '24782','state_id' => '1947','name' => 'Mitsuke'),\n \t array('id' => '24783','state_id' => '1947','name' => 'Muika'),\n \t array('id' => '24784','state_id' => '1947','name' => 'Murakami'),\n \t array('id' => '24785','state_id' => '1947','name' => 'Muramatsu'),\n \t array('id' => '24786','state_id' => '1947','name' => 'Nagaoka'),\n \t array('id' => '24787','state_id' => '1947','name' => 'Nakajo'),\n \t array('id' => '24788','state_id' => '1947','name' => 'Niigata'),\n \t array('id' => '24789','state_id' => '1947','name' => 'Niitsu'),\n \t array('id' => '24790','state_id' => '1947','name' => 'Ojiya'),\n \t array('id' => '24791','state_id' => '1947','name' => 'Ryotsu'),\n \t array('id' => '24792','state_id' => '1947','name' => 'Sanjo'),\n \t array('id' => '24793','state_id' => '1947','name' => 'Shibata'),\n \t array('id' => '24794','state_id' => '1947','name' => 'Shiozawa'),\n \t array('id' => '24795','state_id' => '1947','name' => 'Shirone'),\n \t array('id' => '24796','state_id' => '1947','name' => 'Suibara'),\n \t array('id' => '24797','state_id' => '1947','name' => 'Tochio'),\n \t array('id' => '24798','state_id' => '1947','name' => 'Tokamachi'),\n \t array('id' => '24799','state_id' => '1947','name' => 'Toyosaka'),\n \t array('id' => '24800','state_id' => '1947','name' => 'Tsubame'),\n \t array('id' => '24801','state_id' => '1947','name' => 'Yoshida'),\n \t array('id' => '24802','state_id' => '1948','name' => 'Beppu'),\n \t array('id' => '24803','state_id' => '1948','name' => 'Bungotakada'),\n \t array('id' => '24804','state_id' => '1948','name' => 'Hiji'),\n \t array('id' => '24805','state_id' => '1948','name' => 'Hita'),\n \t array('id' => '24806','state_id' => '1948','name' => 'Kitsuki'),\n \t array('id' => '24807','state_id' => '1948','name' => 'Kusu'),\n \t array('id' => '24808','state_id' => '1948','name' => 'Nakatsu'),\n \t array('id' => '24809','state_id' => '1948','name' => 'Oita'),\n \t array('id' => '24810','state_id' => '1948','name' => 'Saiki'),\n \t array('id' => '24811','state_id' => '1948','name' => 'Taketa'),\n \t array('id' => '24812','state_id' => '1948','name' => 'Tsukumi'),\n \t array('id' => '24813','state_id' => '1948','name' => 'Usa'),\n \t array('id' => '24814','state_id' => '1948','name' => 'Usuki'),\n \t array('id' => '24815','state_id' => '1949','name' => 'Bizen'),\n \t array('id' => '24816','state_id' => '1949','name' => 'Ibara'),\n \t array('id' => '24817','state_id' => '1949','name' => 'Kamogata'),\n \t array('id' => '24818','state_id' => '1949','name' => 'Kasaoka'),\n \t array('id' => '24819','state_id' => '1949','name' => 'Kurashiki'),\n \t array('id' => '24820','state_id' => '1949','name' => 'Mabi'),\n \t array('id' => '24821','state_id' => '1949','name' => 'Niimi'),\n \t array('id' => '24822','state_id' => '1949','name' => 'Okayama'),\n \t array('id' => '24823','state_id' => '1949','name' => 'Sanyo'),\n \t array('id' => '24824','state_id' => '1949','name' => 'Soja'),\n \t array('id' => '24825','state_id' => '1949','name' => 'Takahashi'),\n \t array('id' => '24826','state_id' => '1949','name' => 'Tamano'),\n \t array('id' => '24827','state_id' => '1949','name' => 'Tsuyama'),\n \t array('id' => '24828','state_id' => '1950','name' => 'Chatan'),\n \t array('id' => '24829','state_id' => '1950','name' => 'Ginowan'),\n \t array('id' => '24830','state_id' => '1950','name' => 'Gushikawa'),\n \t array('id' => '24831','state_id' => '1950','name' => 'Haebaru'),\n \t array('id' => '24832','state_id' => '1950','name' => 'Hirara'),\n \t array('id' => '24833','state_id' => '1950','name' => 'Ishigaki'),\n \t array('id' => '24834','state_id' => '1950','name' => 'Ishikawa'),\n \t array('id' => '24835','state_id' => '1950','name' => 'Itoman'),\n \t array('id' => '24836','state_id' => '1950','name' => 'Nago'),\n \t array('id' => '24837','state_id' => '1950','name' => 'Naha'),\n \t array('id' => '24838','state_id' => '1950','name' => 'Nishihara'),\n \t array('id' => '24839','state_id' => '1950','name' => 'Okinawa'),\n \t array('id' => '24840','state_id' => '1950','name' => 'Tomigusuku'),\n \t array('id' => '24841','state_id' => '1950','name' => 'Urasoe'),\n \t array('id' => '24842','state_id' => '1950','name' => 'Yomitan'),\n \t array('id' => '24843','state_id' => '1951','name' => 'Daito'),\n \t array('id' => '24844','state_id' => '1951','name' => 'Fujiidera'),\n \t array('id' => '24845','state_id' => '1951','name' => 'Habikino'),\n \t array('id' => '24846','state_id' => '1951','name' => 'Hannan'),\n \t array('id' => '24847','state_id' => '1951','name' => 'Higashiosaka'),\n \t array('id' => '24848','state_id' => '1951','name' => 'Hirakata'),\n \t array('id' => '24849','state_id' => '1951','name' => 'Ibaraki'),\n \t array('id' => '24850','state_id' => '1951','name' => 'Ikeda'),\n \t array('id' => '24851','state_id' => '1951','name' => 'Izumi'),\n \t array('id' => '24852','state_id' => '1951','name' => 'Izumiotsu'),\n \t array('id' => '24853','state_id' => '1951','name' => 'Izumisano'),\n \t array('id' => '24854','state_id' => '1951','name' => 'Kadoma'),\n \t array('id' => '24855','state_id' => '1951','name' => 'Kaizuka'),\n \t array('id' => '24856','state_id' => '1951','name' => 'Kashiwara'),\n \t array('id' => '24857','state_id' => '1951','name' => 'Katano'),\n \t array('id' => '24858','state_id' => '1951','name' => 'Kawachinagano'),\n \t array('id' => '24859','state_id' => '1951','name' => 'Kishiwada'),\n \t array('id' => '24860','state_id' => '1951','name' => 'Kobe'),\n \t array('id' => '24861','state_id' => '1951','name' => 'Kumatori'),\n \t array('id' => '24862','state_id' => '1951','name' => 'Matsubara'),\n \t array('id' => '24863','state_id' => '1951','name' => 'Mihara'),\n \t array('id' => '24864','state_id' => '1951','name' => 'Mino'),\n \t array('id' => '24865','state_id' => '1951','name' => 'Misaki'),\n \t array('id' => '24866','state_id' => '1951','name' => 'Moriguchi'),\n \t array('id' => '24867','state_id' => '1951','name' => 'Neyagawa'),\n \t array('id' => '24868','state_id' => '1951','name' => 'Osaka'),\n \t array('id' => '24869','state_id' => '1951','name' => 'Osakasayama'),\n \t array('id' => '24870','state_id' => '1951','name' => 'Sakai'),\n \t array('id' => '24871','state_id' => '1951','name' => 'Sennan'),\n \t array('id' => '24872','state_id' => '1951','name' => 'Settsu'),\n \t array('id' => '24873','state_id' => '1951','name' => 'Shijonawate'),\n \t array('id' => '24874','state_id' => '1951','name' => 'Shimamoto'),\n \t array('id' => '24875','state_id' => '1951','name' => 'Suita'),\n \t array('id' => '24876','state_id' => '1951','name' => 'Takaishi'),\n \t array('id' => '24877','state_id' => '1951','name' => 'Takatsuki'),\n \t array('id' => '24878','state_id' => '1951','name' => 'Tondabayashi'),\n \t array('id' => '24879','state_id' => '1951','name' => 'Toyonaka'),\n \t array('id' => '24880','state_id' => '1951','name' => 'Toyono'),\n \t array('id' => '24881','state_id' => '1951','name' => 'Yao'),\n \t array('id' => '24882','state_id' => '1952','name' => 'Imari'),\n \t array('id' => '24883','state_id' => '1952','name' => 'Kanzaki'),\n \t array('id' => '24884','state_id' => '1952','name' => 'Karatsu'),\n \t array('id' => '24885','state_id' => '1952','name' => 'Kashima'),\n \t array('id' => '24886','state_id' => '1952','name' => 'Kawasoe'),\n \t array('id' => '24887','state_id' => '1952','name' => 'Saga'),\n \t array('id' => '24888','state_id' => '1952','name' => 'Takeo'),\n \t array('id' => '24889','state_id' => '1952','name' => 'Taku'),\n \t array('id' => '24890','state_id' => '1952','name' => 'Tosu'),\n \t array('id' => '24891','state_id' => '1952','name' => 'Ureshino'),\n \t array('id' => '24892','state_id' => '1952','name' => 'Yamato'),\n \t array('id' => '24893','state_id' => '1953','name' => 'Ageo'),\n \t array('id' => '24894','state_id' => '1953','name' => 'Asaka'),\n \t array('id' => '24895','state_id' => '1953','name' => 'Chichibu'),\n \t array('id' => '24896','state_id' => '1953','name' => 'Fujimi'),\n \t array('id' => '24897','state_id' => '1953','name' => 'Fukaya'),\n \t array('id' => '24898','state_id' => '1953','name' => 'Fukiage'),\n \t array('id' => '24899','state_id' => '1953','name' => 'Gyoda'),\n \t array('id' => '24900','state_id' => '1953','name' => 'Hanno'),\n \t array('id' => '24901','state_id' => '1953','name' => 'Hanyu'),\n \t array('id' => '24902','state_id' => '1953','name' => 'Hasuda'),\n \t array('id' => '24903','state_id' => '1953','name' => 'Hatogaya'),\n \t array('id' => '24904','state_id' => '1953','name' => 'Hatoyama'),\n \t array('id' => '24905','state_id' => '1953','name' => 'Hidaka'),\n \t array('id' => '24906','state_id' => '1953','name' => 'Higashimatsuyama'),\n \t array('id' => '24907','state_id' => '1953','name' => 'Honjo'),\n \t array('id' => '24908','state_id' => '1953','name' => 'Ina'),\n \t array('id' => '24909','state_id' => '1953','name' => 'Iruma'),\n \t array('id' => '24910','state_id' => '1953','name' => 'Iwatsuki'),\n \t array('id' => '24911','state_id' => '1953','name' => 'Kamifukuoka'),\n \t array('id' => '24912','state_id' => '1953','name' => 'Kamisato'),\n \t array('id' => '24913','state_id' => '1953','name' => 'Kasukabe'),\n \t array('id' => '24914','state_id' => '1953','name' => 'Kawagoe'),\n \t array('id' => '24915','state_id' => '1953','name' => 'Kawaguchi'),\n \t array('id' => '24916','state_id' => '1953','name' => 'Kawajima'),\n \t array('id' => '24917','state_id' => '1953','name' => 'Kazo'),\n \t array('id' => '24918','state_id' => '1953','name' => 'Kisai'),\n \t array('id' => '24919','state_id' => '1953','name' => 'Kitamoto'),\n \t array('id' => '24920','state_id' => '1953','name' => 'Kodama'),\n \t array('id' => '24921','state_id' => '1953','name' => 'Konosu'),\n \t array('id' => '24922','state_id' => '1953','name' => 'Koshigaya'),\n \t array('id' => '24923','state_id' => '1953','name' => 'Kuki'),\n \t array('id' => '24924','state_id' => '1953','name' => 'Kumagaya'),\n \t array('id' => '24925','state_id' => '1953','name' => 'Kurihashi'),\n \t array('id' => '24926','state_id' => '1953','name' => 'Matsubushi'),\n \t array('id' => '24927','state_id' => '1953','name' => 'Menuma'),\n \t array('id' => '24928','state_id' => '1953','name' => 'Misato'),\n \t array('id' => '24929','state_id' => '1953','name' => 'Miyashiro'),\n \t array('id' => '24930','state_id' => '1953','name' => 'Miyoshi'),\n \t array('id' => '24931','state_id' => '1953','name' => 'Moroyama'),\n \t array('id' => '24932','state_id' => '1953','name' => 'Niiza'),\n \t array('id' => '24933','state_id' => '1953','name' => 'Ogawa'),\n \t array('id' => '24934','state_id' => '1953','name' => 'Oi'),\n \t array('id' => '24935','state_id' => '1953','name' => 'Okegawa'),\n \t array('id' => '24936','state_id' => '1953','name' => 'Omiya'),\n \t array('id' => '24937','state_id' => '1953','name' => 'Saitma-Shi'),\n \t array('id' => '24938','state_id' => '1953','name' => 'Sakado'),\n \t array('id' => '24939','state_id' => '1953','name' => 'Satte'),\n \t array('id' => '24940','state_id' => '1953','name' => 'Sayama'),\n \t array('id' => '24941','state_id' => '1953','name' => 'Shiki'),\n \t array('id' => '24942','state_id' => '1953','name' => 'Shiraoka'),\n \t array('id' => '24943','state_id' => '1953','name' => 'Shobu'),\n \t array('id' => '24944','state_id' => '1953','name' => 'Showa'),\n \t array('id' => '24945','state_id' => '1953','name' => 'Soka'),\n \t array('id' => '24946','state_id' => '1953','name' => 'Sugito'),\n \t array('id' => '24947','state_id' => '1953','name' => 'Toda'),\n \t array('id' => '24948','state_id' => '1953','name' => 'Tokorozawa'),\n \t array('id' => '24949','state_id' => '1953','name' => 'Tsurugashima'),\n \t array('id' => '24950','state_id' => '1953','name' => 'Urawa'),\n \t array('id' => '24951','state_id' => '1953','name' => 'Wako'),\n \t array('id' => '24952','state_id' => '1953','name' => 'Warabi'),\n \t array('id' => '24953','state_id' => '1953','name' => 'Washimiya'),\n \t array('id' => '24954','state_id' => '1953','name' => 'Yashio'),\n \t array('id' => '24955','state_id' => '1953','name' => 'Yono'),\n \t array('id' => '24956','state_id' => '1953','name' => 'Yorii'),\n \t array('id' => '24957','state_id' => '1953','name' => 'Yoshikawa'),\n \t array('id' => '24958','state_id' => '1953','name' => 'Yoshimi'),\n \t array('id' => '24959','state_id' => '1954','name' => 'Hikone'),\n \t array('id' => '24960','state_id' => '1954','name' => 'Hino'),\n \t array('id' => '24961','state_id' => '1954','name' => 'Konan'),\n \t array('id' => '24962','state_id' => '1954','name' => 'Kosei'),\n \t array('id' => '24963','state_id' => '1954','name' => 'Kusatsu'),\n \t array('id' => '24964','state_id' => '1954','name' => 'Minakuchi'),\n \t array('id' => '24965','state_id' => '1954','name' => 'Moriyama'),\n \t array('id' => '24966','state_id' => '1954','name' => 'Nagahama'),\n \t array('id' => '24967','state_id' => '1954','name' => 'Notogawa'),\n \t array('id' => '24968','state_id' => '1954','name' => 'Omihachiman'),\n \t array('id' => '24969','state_id' => '1954','name' => 'Otsu'),\n \t array('id' => '24970','state_id' => '1954','name' => 'Ritto'),\n \t array('id' => '24971','state_id' => '1954','name' => 'Shiga'),\n \t array('id' => '24972','state_id' => '1954','name' => 'Yasu'),\n \t array('id' => '24973','state_id' => '1954','name' => 'Yokaichi'),\n \t array('id' => '24974','state_id' => '1955','name' => 'Gotsu'),\n \t array('id' => '24975','state_id' => '1955','name' => 'Hamada'),\n \t array('id' => '24976','state_id' => '1955','name' => 'Hikawa'),\n \t array('id' => '24977','state_id' => '1955','name' => 'Hirata'),\n \t array('id' => '24978','state_id' => '1955','name' => 'Izumo'),\n \t array('id' => '24979','state_id' => '1955','name' => 'Masuda'),\n \t array('id' => '24980','state_id' => '1955','name' => 'Matsue'),\n \t array('id' => '24981','state_id' => '1955','name' => 'Oda'),\n \t array('id' => '24982','state_id' => '1955','name' => 'Yasugi'),\n \t array('id' => '24983','state_id' => '1956','name' => 'Asaba'),\n \t array('id' => '24984','state_id' => '1956','name' => 'Atami'),\n \t array('id' => '24985','state_id' => '1956','name' => 'Daito'),\n \t array('id' => '24986','state_id' => '1956','name' => 'Fuji'),\n \t array('id' => '24987','state_id' => '1956','name' => 'Fujieda'),\n \t array('id' => '24988','state_id' => '1956','name' => 'Fujinomiya'),\n \t array('id' => '24989','state_id' => '1956','name' => 'Fukuroi'),\n \t array('id' => '24990','state_id' => '1956','name' => 'Gotemba'),\n \t array('id' => '24991','state_id' => '1956','name' => 'Haibara'),\n \t array('id' => '24992','state_id' => '1956','name' => 'Hamakita'),\n \t array('id' => '24993','state_id' => '1956','name' => 'Hamamatsu'),\n \t array('id' => '24994','state_id' => '1956','name' => 'Hamaoka'),\n \t array('id' => '24995','state_id' => '1956','name' => 'Hosoe'),\n \t array('id' => '24996','state_id' => '1956','name' => 'Ito'),\n \t array('id' => '24997','state_id' => '1956','name' => 'Iwata'),\n \t array('id' => '24998','state_id' => '1956','name' => 'Kakegawa'),\n \t array('id' => '24999','state_id' => '1956','name' => 'Kanaya'),\n \t array('id' => '25000','state_id' => '1956','name' => 'Kannami'),\n \t array('id' => '25001','state_id' => '1956','name' => 'Kikugawa'),\n \t array('id' => '25002','state_id' => '1956','name' => 'Kosai'),\n \t array('id' => '25003','state_id' => '1956','name' => 'Mishima'),\n \t array('id' => '25004','state_id' => '1956','name' => 'Mori'),\n \t array('id' => '25005','state_id' => '1956','name' => 'Nagaizumi'),\n \t array('id' => '25006','state_id' => '1956','name' => 'Numazu'),\n \t array('id' => '25007','state_id' => '1956','name' => 'Oigawa'),\n \t array('id' => '25008','state_id' => '1956','name' => 'Oyama'),\n \t array('id' => '25009','state_id' => '1956','name' => 'Ryuyo'),\n \t array('id' => '25010','state_id' => '1956','name' => 'Sagara'),\n \t array('id' => '25011','state_id' => '1956','name' => 'Shimada'),\n \t array('id' => '25012','state_id' => '1956','name' => 'Shimizu'),\n \t array('id' => '25013','state_id' => '1956','name' => 'Shimoda'),\n \t array('id' => '25014','state_id' => '1956','name' => 'Shizuoka'),\n \t array('id' => '25015','state_id' => '1956','name' => 'Susono'),\n \t array('id' => '25016','state_id' => '1956','name' => 'Tenryu'),\n \t array('id' => '25017','state_id' => '1956','name' => 'Toyoda'),\n \t array('id' => '25018','state_id' => '1956','name' => 'Yaizu'),\n \t array('id' => '25019','state_id' => '1956','name' => 'Yoshida'),\n \t array('id' => '25020','state_id' => '1957','name' => 'Ashikaga'),\n \t array('id' => '25021','state_id' => '1957','name' => 'Fujioka'),\n \t array('id' => '25022','state_id' => '1957','name' => 'Imaichi'),\n \t array('id' => '25023','state_id' => '1957','name' => 'Iwafune'),\n \t array('id' => '25024','state_id' => '1957','name' => 'Kaminokawa'),\n \t array('id' => '25025','state_id' => '1957','name' => 'Kanuma'),\n \t array('id' => '25026','state_id' => '1957','name' => 'Karasuyama'),\n \t array('id' => '25027','state_id' => '1957','name' => 'Kawachi'),\n \t array('id' => '25028','state_id' => '1957','name' => 'Kuroiso'),\n \t array('id' => '25029','state_id' => '1957','name' => 'Mashiko'),\n \t array('id' => '25030','state_id' => '1957','name' => 'Mibu'),\n \t array('id' => '25031','state_id' => '1957','name' => 'Minamikawachi'),\n \t array('id' => '25032','state_id' => '1957','name' => 'Moka'),\n \t array('id' => '25033','state_id' => '1957','name' => 'Motegi'),\n \t array('id' => '25034','state_id' => '1957','name' => 'Nasu'),\n \t array('id' => '25035','state_id' => '1957','name' => 'Nikko'),\n \t array('id' => '25036','state_id' => '1957','name' => 'Nishinasuno'),\n \t array('id' => '25037','state_id' => '1957','name' => 'Nogi'),\n \t array('id' => '25038','state_id' => '1957','name' => 'Ohira'),\n \t array('id' => '25039','state_id' => '1957','name' => 'Otawara'),\n \t array('id' => '25040','state_id' => '1957','name' => 'Oyama'),\n \t array('id' => '25041','state_id' => '1957','name' => 'Sano'),\n \t array('id' => '25042','state_id' => '1957','name' => 'Takanezawa'),\n \t array('id' => '25043','state_id' => '1957','name' => 'Tanuma'),\n \t array('id' => '25044','state_id' => '1957','name' => 'Tochigi'),\n \t array('id' => '25045','state_id' => '1957','name' => 'Ujiie'),\n \t array('id' => '25046','state_id' => '1957','name' => 'Utsunomiya'),\n \t array('id' => '25047','state_id' => '1957','name' => 'Yaita'),\n \t array('id' => '25048','state_id' => '1958','name' => 'Aizumi'),\n \t array('id' => '25049','state_id' => '1958','name' => 'Anan'),\n \t array('id' => '25050','state_id' => '1958','name' => 'Ikeda'),\n \t array('id' => '25051','state_id' => '1958','name' => 'Ishii'),\n \t array('id' => '25052','state_id' => '1958','name' => 'Kamojima'),\n \t array('id' => '25053','state_id' => '1958','name' => 'Kitajima'),\n \t array('id' => '25054','state_id' => '1958','name' => 'Komatsushima'),\n \t array('id' => '25055','state_id' => '1958','name' => 'Naruto'),\n \t array('id' => '25056','state_id' => '1958','name' => 'Tokushima'),\n \t array('id' => '25057','state_id' => '1958','name' => 'Waki'),\n \t array('id' => '25058','state_id' => '1959','name' => 'Akiruno'),\n \t array('id' => '25059','state_id' => '1959','name' => 'Akishima'),\n \t array('id' => '25060','state_id' => '1959','name' => 'Chofu'),\n \t array('id' => '25061','state_id' => '1959','name' => 'Fuchu'),\n \t array('id' => '25062','state_id' => '1959','name' => 'Hachioji'),\n \t array('id' => '25063','state_id' => '1959','name' => 'Hamura'),\n \t array('id' => '25064','state_id' => '1959','name' => 'Higashikurume'),\n \t array('id' => '25065','state_id' => '1959','name' => 'Higashimurayama'),\n \t array('id' => '25066','state_id' => '1959','name' => 'Higashiyamato'),\n \t array('id' => '25067','state_id' => '1959','name' => 'Hino'),\n \t array('id' => '25068','state_id' => '1959','name' => 'Hoya'),\n \t array('id' => '25069','state_id' => '1959','name' => 'Inagi'),\n \t array('id' => '25070','state_id' => '1959','name' => 'Kiyose'),\n \t array('id' => '25071','state_id' => '1959','name' => 'Kodaira'),\n \t array('id' => '25072','state_id' => '1959','name' => 'Koganei'),\n \t array('id' => '25073','state_id' => '1959','name' => 'Kokubunji'),\n \t array('id' => '25074','state_id' => '1959','name' => 'Komae'),\n \t array('id' => '25075','state_id' => '1959','name' => 'Kunitachi'),\n \t array('id' => '25076','state_id' => '1959','name' => 'Machida'),\n \t array('id' => '25077','state_id' => '1959','name' => 'Mitaka'),\n \t array('id' => '25078','state_id' => '1959','name' => 'Mizuho'),\n \t array('id' => '25079','state_id' => '1959','name' => 'Musashimurayama'),\n \t array('id' => '25080','state_id' => '1959','name' => 'Musashino'),\n \t array('id' => '25081','state_id' => '1959','name' => 'Ome'),\n \t array('id' => '25082','state_id' => '1959','name' => 'Tachikawa'),\n \t array('id' => '25083','state_id' => '1959','name' => 'Tama'),\n \t array('id' => '25084','state_id' => '1959','name' => 'Tanashi'),\n \t array('id' => '25085','state_id' => '1959','name' => 'Tokyo'),\n \t array('id' => '25086','state_id' => '1960','name' => 'Kurayoshi'),\n \t array('id' => '25087','state_id' => '1960','name' => 'Sakaiminato'),\n \t array('id' => '25088','state_id' => '1960','name' => 'Tottori'),\n \t array('id' => '25089','state_id' => '1960','name' => 'Yonago'),\n \t array('id' => '25090','state_id' => '1961','name' => 'Fukumitsu'),\n \t array('id' => '25091','state_id' => '1961','name' => 'Himi'),\n \t array('id' => '25092','state_id' => '1961','name' => 'Kamiichi'),\n \t array('id' => '25093','state_id' => '1961','name' => 'Kosugi'),\n \t array('id' => '25094','state_id' => '1961','name' => 'Kurobe'),\n \t array('id' => '25095','state_id' => '1961','name' => 'Namerikawa'),\n \t array('id' => '25096','state_id' => '1961','name' => 'Nyuzen'),\n \t array('id' => '25097','state_id' => '1961','name' => 'Osawano'),\n \t array('id' => '25098','state_id' => '1961','name' => 'Oyabe'),\n \t array('id' => '25099','state_id' => '1961','name' => 'Shimminato'),\n \t array('id' => '25100','state_id' => '1961','name' => 'Takaoka'),\n \t array('id' => '25101','state_id' => '1961','name' => 'Tateyama'),\n \t array('id' => '25102','state_id' => '1961','name' => 'Tonami'),\n \t array('id' => '25103','state_id' => '1961','name' => 'Toyama'),\n \t array('id' => '25104','state_id' => '1961','name' => 'Uozu'),\n \t array('id' => '25105','state_id' => '1961','name' => 'Yatsuo'),\n \t array('id' => '25106','state_id' => '1962','name' => 'Arida'),\n \t array('id' => '25107','state_id' => '1962','name' => 'Gobo'),\n \t array('id' => '25108','state_id' => '1962','name' => 'Hashimoto'),\n \t array('id' => '25109','state_id' => '1962','name' => 'Iwade'),\n \t array('id' => '25110','state_id' => '1962','name' => 'Kainan'),\n \t array('id' => '25111','state_id' => '1962','name' => 'Katsuragi'),\n \t array('id' => '25112','state_id' => '1962','name' => 'Kishigawa'),\n \t array('id' => '25113','state_id' => '1962','name' => 'Nachikatsuura'),\n \t array('id' => '25114','state_id' => '1962','name' => 'Shingu'),\n \t array('id' => '25115','state_id' => '1962','name' => 'Tanabe'),\n \t array('id' => '25116','state_id' => '1962','name' => 'Wakayama'),\n \t array('id' => '25117','state_id' => '1963','name' => 'Higashine'),\n \t array('id' => '25118','state_id' => '1963','name' => 'Kahoku'),\n \t array('id' => '25119','state_id' => '1963','name' => 'Kaminoyama'),\n \t array('id' => '25120','state_id' => '1963','name' => 'Kawanishi'),\n \t array('id' => '25121','state_id' => '1963','name' => 'Murayama'),\n \t array('id' => '25122','state_id' => '1963','name' => 'Nagai'),\n \t array('id' => '25123','state_id' => '1963','name' => 'Nanyo'),\n \t array('id' => '25124','state_id' => '1963','name' => 'Obanazawa'),\n \t array('id' => '25125','state_id' => '1963','name' => 'Sagae'),\n \t array('id' => '25126','state_id' => '1963','name' => 'Sakata'),\n \t array('id' => '25127','state_id' => '1963','name' => 'Shinjo'),\n \t array('id' => '25128','state_id' => '1963','name' => 'Takahata'),\n \t array('id' => '25129','state_id' => '1963','name' => 'Tendo'),\n \t array('id' => '25130','state_id' => '1963','name' => 'Tsuchiura'),\n \t array('id' => '25131','state_id' => '1963','name' => 'Tsuruoka'),\n \t array('id' => '25132','state_id' => '1963','name' => 'Yamagata'),\n \t array('id' => '25133','state_id' => '1963','name' => 'Yonezawa'),\n \t array('id' => '25134','state_id' => '1963','name' => 'Yuza'),\n \t array('id' => '25135','state_id' => '1964','name' => 'Hagi'),\n \t array('id' => '25136','state_id' => '1964','name' => 'Hikari'),\n \t array('id' => '25137','state_id' => '1964','name' => 'Hofu'),\n \t array('id' => '25138','state_id' => '1964','name' => 'Iwakuni'),\n \t array('id' => '25139','state_id' => '1964','name' => 'Kudamatsu'),\n \t array('id' => '25140','state_id' => '1964','name' => 'Mine'),\n \t array('id' => '25141','state_id' => '1964','name' => 'Nagato'),\n \t array('id' => '25142','state_id' => '1964','name' => 'Ogori'),\n \t array('id' => '25143','state_id' => '1964','name' => 'Onoda'),\n \t array('id' => '25144','state_id' => '1964','name' => 'Sanyo'),\n \t array('id' => '25145','state_id' => '1964','name' => 'Shimonoseki'),\n \t array('id' => '25146','state_id' => '1964','name' => 'Shinnanyo'),\n \t array('id' => '25147','state_id' => '1964','name' => 'Tokuyama'),\n \t array('id' => '25148','state_id' => '1964','name' => 'Toyoura'),\n \t array('id' => '25149','state_id' => '1964','name' => 'Ube'),\n \t array('id' => '25150','state_id' => '1964','name' => 'Yamaguchi'),\n \t array('id' => '25151','state_id' => '1964','name' => 'Yanai'),\n \t array('id' => '25152','state_id' => '1965','name' => 'Enzan'),\n \t array('id' => '25153','state_id' => '1965','name' => 'Fujiyoshida'),\n \t array('id' => '25154','state_id' => '1965','name' => 'Isawa'),\n \t array('id' => '25155','state_id' => '1965','name' => 'Kofu'),\n \t array('id' => '25156','state_id' => '1965','name' => 'Nirasaki'),\n \t array('id' => '25157','state_id' => '1965','name' => 'Otsuki'),\n \t array('id' => '25158','state_id' => '1965','name' => 'Ryuo'),\n \t array('id' => '25159','state_id' => '1965','name' => 'Tsuru'),\n \t array('id' => '25160','state_id' => '1965','name' => 'Uenohara'),\n \t array('id' => '25161','state_id' => '1965','name' => 'Yamanashi'),\n \t array('id' => '25162','state_id' => '1966','name' => 'Grouville'),\n \t array('id' => '25163','state_id' => '1976','name' => 'Trinity'),\n \t array('id' => '25164','state_id' => '1977','name' => '\\'Abbin'),\n \t array('id' => '25165','state_id' => '1977','name' => '\\'Ajlun'),\n \t array('id' => '25166','state_id' => '1977','name' => '\\'Anjarah'),\n \t array('id' => '25167','state_id' => '1977','name' => '\\'Arjan'),\n \t array('id' => '25168','state_id' => '1977','name' => '\\'Ayn Janna'),\n \t array('id' => '25169','state_id' => '1977','name' => 'Halawah'),\n \t array('id' => '25170','state_id' => '1977','name' => 'Kharbat al-Wahadnah'),\n \t array('id' => '25171','state_id' => '1977','name' => 'Kufranjah'),\n \t array('id' => '25172','state_id' => '1977','name' => 'Sakhrah'),\n \t array('id' => '25173','state_id' => '1977','name' => 'al-Hashamiyah'),\n \t array('id' => '25174','state_id' => '1978','name' => 'Abu \\'Alanda'),\n \t array('id' => '25175','state_id' => '1978','name' => 'Amman'),\n \t array('id' => '25176','state_id' => '1978','name' => 'Askan Abu Nusayr'),\n \t array('id' => '25177','state_id' => '1978','name' => 'Jawa'),\n \t array('id' => '25178','state_id' => '1978','name' => 'Khalda wa Tila\\'-al-\\'Ali'),\n \t array('id' => '25179','state_id' => '1978','name' => 'Khraybat As-Suq'),\n \t array('id' => '25180','state_id' => '1978','name' => 'Marj al-Hammam'),\n \t array('id' => '25181','state_id' => '1978','name' => 'Na\\'ur'),\n \t array('id' => '25182','state_id' => '1978','name' => 'Nuzhat Sahab'),\n \t array('id' => '25183','state_id' => '1978','name' => 'Sahab'),\n \t array('id' => '25184','state_id' => '1978','name' => 'Shafa Badran'),\n \t array('id' => '25185','state_id' => '1978','name' => 'Suwaylih'),\n \t array('id' => '25186','state_id' => '1978','name' => 'Tariq'),\n \t array('id' => '25187','state_id' => '1978','name' => 'Umm As-Summaq'),\n \t array('id' => '25188','state_id' => '1978','name' => 'Umm Nuwarah'),\n \t array('id' => '25189','state_id' => '1978','name' => 'Umm Qusayr wal Muqabalin'),\n \t array('id' => '25190','state_id' => '1978','name' => 'Umm al-Basatin'),\n \t array('id' => '25191','state_id' => '1978','name' => 'Wadi as-Sir'),\n \t array('id' => '25192','state_id' => '1978','name' => 'al-\\'Abdaliyah'),\n \t array('id' => '25193','state_id' => '1978','name' => 'al-Binayat'),\n \t array('id' => '25194','state_id' => '1978','name' => 'al-Faysaliyah'),\n \t array('id' => '25195','state_id' => '1978','name' => 'al-Jizah'),\n \t array('id' => '25196','state_id' => '1978','name' => 'al-Jubayhah'),\n \t array('id' => '25197','state_id' => '1978','name' => 'al-Juwaydah'),\n \t array('id' => '25198','state_id' => '1978','name' => 'al-Quwaysimah'),\n \t array('id' => '25199','state_id' => '1978','name' => 'al-Yadudah'),\n \t array('id' => '25200','state_id' => '1978','name' => 'ar-Rawdah'),\n \t array('id' => '25201','state_id' => '1978','name' => 'at-Talbiyah'),\n \t array('id' => '25202','state_id' => '1978','name' => 'at-Taybah'),\n \t array('id' => '25203','state_id' => '1979','name' => '\\'Al\\'al'),\n \t array('id' => '25204','state_id' => '1979','name' => '\\'Anbah'),\n \t array('id' => '25205','state_id' => '1979','name' => 'Arhaba'),\n \t array('id' => '25206','state_id' => '1979','name' => 'Aydun'),\n \t array('id' => '25207','state_id' => '1979','name' => 'Bayt Idas'),\n \t array('id' => '25208','state_id' => '1979','name' => 'Bayt Ras'),\n \t array('id' => '25209','state_id' => '1979','name' => 'Bayt Yafa'),\n \t array('id' => '25210','state_id' => '1979','name' => 'Bushra'),\n \t array('id' => '25211','state_id' => '1979','name' => 'Dayr Abi Sa\\'id'),\n \t array('id' => '25212','state_id' => '1979','name' => 'Dayr Yusif'),\n \t array('id' => '25213','state_id' => '1979','name' => 'Dayr as-Sa\\'anah'),\n \t array('id' => '25214','state_id' => '1979','name' => 'Duwaqarah'),\n \t array('id' => '25215','state_id' => '1979','name' => 'Hakama'),\n \t array('id' => '25216','state_id' => '1979','name' => 'Hartha'),\n \t array('id' => '25217','state_id' => '1979','name' => 'Hatam'),\n \t array('id' => '25218','state_id' => '1979','name' => 'Hawwarah'),\n \t array('id' => '25219','state_id' => '1979','name' => 'Irbid'),\n \t array('id' => '25220','state_id' => '1979','name' => 'Jasar ash-Shaykh Hussayn'),\n \t array('id' => '25221','state_id' => '1979','name' => 'Judayta'),\n \t array('id' => '25222','state_id' => '1979','name' => 'Katam'),\n \t array('id' => '25223','state_id' => '1979','name' => 'Kharja'),\n \t array('id' => '25224','state_id' => '1979','name' => 'Kufur \\'Awan'),\n \t array('id' => '25225','state_id' => '1979','name' => 'Kufur Abil'),\n \t array('id' => '25226','state_id' => '1979','name' => 'Kufur Asad'),\n \t array('id' => '25227','state_id' => '1979','name' => 'Kufur Rakab'),\n \t array('id' => '25228','state_id' => '1979','name' => 'Kufur Sum'),\n \t array('id' => '25229','state_id' => '1979','name' => 'Kufur Yuba'),\n \t array('id' => '25230','state_id' => '1979','name' => 'Kufur al-Ma\\''),\n \t array('id' => '25231','state_id' => '1979','name' => 'Kuraymah'),\n \t array('id' => '25232','state_id' => '1979','name' => 'Malka'),\n \t array('id' => '25233','state_id' => '1979','name' => 'Mukhayyam al-Husun'),\n \t array('id' => '25234','state_id' => '1979','name' => 'Qumaym'),\n \t array('id' => '25235','state_id' => '1979','name' => 'Saham'),\n \t array('id' => '25236','state_id' => '1979','name' => 'Sal'),\n \t array('id' => '25237','state_id' => '1979','name' => 'Samma'),\n \t array('id' => '25238','state_id' => '1979','name' => 'Sammaw\\''),\n \t array('id' => '25239','state_id' => '1979','name' => 'Sum'),\n \t array('id' => '25240','state_id' => '1979','name' => 'Tabnah'),\n \t array('id' => '25241','state_id' => '1979','name' => 'Umm Qays'),\n \t array('id' => '25242','state_id' => '1979','name' => 'Wadi al-Yabas'),\n \t array('id' => '25243','state_id' => '1979','name' => 'Waqqas'),\n \t array('id' => '25244','state_id' => '1979','name' => 'Zahar'),\n \t array('id' => '25245','state_id' => '1979','name' => 'al-Ashrafiyah'),\n \t array('id' => '25246','state_id' => '1979','name' => 'al-Balawnah'),\n \t array('id' => '25247','state_id' => '1979','name' => 'al-Buwaydah'),\n \t array('id' => '25248','state_id' => '1979','name' => 'al-Husun'),\n \t array('id' => '25249','state_id' => '1979','name' => 'al-Manshiyah'),\n \t array('id' => '25250','state_id' => '1979','name' => 'al-Mashari\\'a'),\n \t array('id' => '25251','state_id' => '1979','name' => 'al-Mazar ash-Shamaliyah'),\n \t array('id' => '25252','state_id' => '1979','name' => 'al-Mughayyar'),\n \t array('id' => '25253','state_id' => '1979','name' => 'an-Nu\\'aymeh'),\n \t array('id' => '25254','state_id' => '1979','name' => 'ar-Ramtha'),\n \t array('id' => '25255','state_id' => '1979','name' => 'as-Sarih'),\n \t array('id' => '25256','state_id' => '1979','name' => 'ash-Shajarah'),\n \t array('id' => '25257','state_id' => '1979','name' => 'ash-Shunah ash-Shamaliyah'),\n \t array('id' => '25258','state_id' => '1979','name' => 'at-Taybah'),\n \t array('id' => '25259','state_id' => '1979','name' => 'at-Turrah'),\n \t array('id' => '25260','state_id' => '1980','name' => 'Balila'),\n \t array('id' => '25261','state_id' => '1980','name' => 'Burma'),\n \t array('id' => '25262','state_id' => '1980','name' => 'Jarash'),\n \t array('id' => '25263','state_id' => '1980','name' => 'Kufur Khall'),\n \t array('id' => '25264','state_id' => '1980','name' => 'Mukhayyam Ghazzah'),\n \t array('id' => '25265','state_id' => '1980','name' => 'Mukhayyam Suf'),\n \t array('id' => '25266','state_id' => '1980','name' => 'Qafqafa'),\n \t array('id' => '25267','state_id' => '1980','name' => 'Raymun'),\n \t array('id' => '25268','state_id' => '1980','name' => 'Sakab'),\n \t array('id' => '25269','state_id' => '1980','name' => 'Suf'),\n \t array('id' => '25270','state_id' => '1980','name' => 'al-Kattah'),\n \t array('id' => '25271','state_id' => '1981','name' => 'Bayar'),\n \t array('id' => '25272','state_id' => '1981','name' => 'Ma\\'an'),\n \t array('id' => '25273','state_id' => '1981','name' => 'Wadi Musa'),\n \t array('id' => '25274','state_id' => '1981','name' => 'al-Hussayniyah'),\n \t array('id' => '25275','state_id' => '1981','name' => 'al-Jafar'),\n \t array('id' => '25276','state_id' => '1981','name' => 'at-Taybah'),\n \t array('id' => '25277','state_id' => '1982','name' => 'Dhiban'),\n \t array('id' => '25278','state_id' => '1982','name' => 'Ma\\'in'),\n \t array('id' => '25279','state_id' => '1982','name' => 'Madaba'),\n \t array('id' => '25280','state_id' => '1982','name' => 'Mulayh'),\n \t array('id' => '25281','state_id' => '1982','name' => 'al-Faysaliyah'),\n \t array('id' => '25282','state_id' => '1983','name' => 'al-\\'Aqabah'),\n \t array('id' => '25283','state_id' => '1983','name' => 'al-Quwayrah'),\n \t array('id' => '25284','state_id' => '1984','name' => '\\'Ayn al-Basha'),\n \t array('id' => '25285','state_id' => '1984','name' => 'Darar'),\n \t array('id' => '25286','state_id' => '1984','name' => 'Juwafat al-Kafrayn'),\n \t array('id' => '25287','state_id' => '1984','name' => 'Ma\\'addi'),\n \t array('id' => '25288','state_id' => '1984','name' => 'Mahas'),\n \t array('id' => '25289','state_id' => '1984','name' => 'Safut'),\n \t array('id' => '25290','state_id' => '1984','name' => 'Suknat ash-Shunah'),\n \t array('id' => '25291','state_id' => '1984','name' => 'Yarqa'),\n \t array('id' => '25292','state_id' => '1984','name' => 'al-Baq\\'ah'),\n \t array('id' => '25293','state_id' => '1984','name' => 'al-Fuhays'),\n \t array('id' => '25294','state_id' => '1984','name' => 'al-Karamah'),\n \t array('id' => '25295','state_id' => '1984','name' => 'ar-Rawdah'),\n \t array('id' => '25296','state_id' => '1984','name' => 'as-Salt'),\n \t array('id' => '25297','state_id' => '1984','name' => 'as-Sawalhah'),\n \t array('id' => '25298','state_id' => '1984','name' => 'as-Subayhi'),\n \t array('id' => '25299','state_id' => '1984','name' => 'at-Tawal al-Janubi'),\n \t array('id' => '25300','state_id' => '1984','name' => 'at-Tuwal ash-Shamali'),\n \t array('id' => '25301','state_id' => '1985','name' => '\\'Ayy'),\n \t array('id' => '25302','state_id' => '1985','name' => 'Adar'),\n \t array('id' => '25303','state_id' => '1985','name' => 'Faqqu\\''),\n \t array('id' => '25304','state_id' => '1985','name' => 'Ghawr al-Mazra\\'ah'),\n \t array('id' => '25305','state_id' => '1985','name' => 'Ghawr as-Safi'),\n \t array('id' => '25306','state_id' => '1985','name' => 'Maw\\'tah'),\n \t array('id' => '25307','state_id' => '1985','name' => 'Sirfa'),\n \t array('id' => '25308','state_id' => '1985','name' => 'al-Hussayniyah'),\n \t array('id' => '25309','state_id' => '1985','name' => 'al-Karak'),\n \t array('id' => '25310','state_id' => '1985','name' => 'al-Mazar'),\n \t array('id' => '25311','state_id' => '1985','name' => 'al-Qasr'),\n \t array('id' => '25312','state_id' => '1985','name' => 'al-Qitranah'),\n \t array('id' => '25313','state_id' => '1985','name' => 'ar-Rabbah'),\n \t array('id' => '25314','state_id' => '1985','name' => 'ash-Shahabiyah'),\n \t array('id' => '25315','state_id' => '1985','name' => 'at-Taybah'),\n \t array('id' => '25316','state_id' => '1986','name' => 'Badiyat ar-Ruwayshid'),\n \t array('id' => '25317','state_id' => '1986','name' => 'Bal\\'ama'),\n \t array('id' => '25318','state_id' => '1986','name' => 'Manshiyat Bani Hassan'),\n \t array('id' => '25319','state_id' => '1986','name' => 'Mugayyar as-Sarhan'),\n \t array('id' => '25320','state_id' => '1986','name' => 'Sabha'),\n \t array('id' => '25321','state_id' => '1986','name' => 'Sama as-Sarhan'),\n \t array('id' => '25322','state_id' => '1986','name' => 'Umm al-Quttayn'),\n \t array('id' => '25323','state_id' => '1986','name' => 'al-Hamra\\''),\n \t array('id' => '25324','state_id' => '1986','name' => 'al-Khaldiyah al-Jadidah'),\n \t array('id' => '25325','state_id' => '1986','name' => 'al-Mabrukah'),\n \t array('id' => '25326','state_id' => '1986','name' => 'al-Mafraq'),\n \t array('id' => '25327','state_id' => '1986','name' => 'ar-Ruwayshid'),\n \t array('id' => '25328','state_id' => '1986','name' => 'az-Za\\'tari'),\n \t array('id' => '25329','state_id' => '1987','name' => 'Busayrah'),\n \t array('id' => '25330','state_id' => '1987','name' => 'al-\\'Ayn al-Bayda'),\n \t array('id' => '25331','state_id' => '1987','name' => 'al-Hasa'),\n \t array('id' => '25332','state_id' => '1987','name' => 'al-Qadisiyah'),\n \t array('id' => '25333','state_id' => '1987','name' => 'at-Tafilah'),\n \t array('id' => '25334','state_id' => '1988','name' => 'Iskan al-Hashamiyah'),\n \t array('id' => '25335','state_id' => '1988','name' => 'Mushayrfat Ras al-\\'Ayn'),\n \t array('id' => '25336','state_id' => '1988','name' => 'Shnillar'),\n \t array('id' => '25337','state_id' => '1988','name' => 'ad-Dulayl'),\n \t array('id' => '25338','state_id' => '1988','name' => 'al-Azraq ash-Shamali'),\n \t array('id' => '25339','state_id' => '1988','name' => 'al-Hashamiyah'),\n \t array('id' => '25340','state_id' => '1988','name' => 'ar-Russayfah'),\n \t array('id' => '25341','state_id' => '1988','name' => 'as-Sukhnah'),\n \t array('id' => '25342','state_id' => '1988','name' => 'az-Zarqa\\''),\n \t array('id' => '25343','state_id' => '1989','name' => 'Akmecet'),\n \t array('id' => '25344','state_id' => '1989','name' => 'Aral'),\n \t array('id' => '25345','state_id' => '1989','name' => 'Baykonir'),\n \t array('id' => '25346','state_id' => '1989','name' => 'Canakazali'),\n \t array('id' => '25347','state_id' => '1989','name' => 'Canakorgan'),\n \t array('id' => '25348','state_id' => '1989','name' => 'Cosali'),\n \t array('id' => '25349','state_id' => '1989','name' => 'Kazali'),\n \t array('id' => '25350','state_id' => '1989','name' => 'Sieli'),\n \t array('id' => '25351','state_id' => '1989','name' => 'Tasboget'),\n \t array('id' => '25352','state_id' => '1990','name' => 'Aksu'),\n \t array('id' => '25353','state_id' => '1990','name' => 'Alekseevka'),\n \t array('id' => '25354','state_id' => '1990','name' => 'Astana'),\n \t array('id' => '25355','state_id' => '1990','name' => 'Atbasar'),\n \t array('id' => '25356','state_id' => '1990','name' => 'Bestobe'),\n \t array('id' => '25357','state_id' => '1990','name' => 'Caltir'),\n \t array('id' => '25358','state_id' => '1990','name' => 'Colimbet'),\n \t array('id' => '25359','state_id' => '1990','name' => 'Ereymentau'),\n \t array('id' => '25360','state_id' => '1990','name' => 'Koksetau'),\n \t array('id' => '25361','state_id' => '1990','name' => 'Makin'),\n \t array('id' => '25362','state_id' => '1990','name' => 'Stepnogorsk'),\n \t array('id' => '25363','state_id' => '1991','name' => 'Aktobe'),\n \t array('id' => '25364','state_id' => '1991','name' => 'Alka'),\n \t array('id' => '25365','state_id' => '1991','name' => 'Batamsi'),\n \t array('id' => '25366','state_id' => '1991','name' => 'Embi'),\n \t array('id' => '25367','state_id' => '1991','name' => 'Hromtau'),\n \t array('id' => '25368','state_id' => '1991','name' => 'Kandagac'),\n \t array('id' => '25369','state_id' => '1991','name' => 'Salkar'),\n \t array('id' => '25370','state_id' => '1991','name' => 'Subarkudik'),\n \t array('id' => '25371','state_id' => '1991','name' => 'Subarsi'),\n \t array('id' => '25372','state_id' => '1991','name' => 'Temir'),\n \t array('id' => '25373','state_id' => '1992','name' => 'Almati'),\n \t array('id' => '25374','state_id' => '1992','name' => 'Almaty'),\n \t array('id' => '25375','state_id' => '1992','name' => 'Boralday'),\n \t array('id' => '25376','state_id' => '1992','name' => 'Carkant'),\n \t array('id' => '25377','state_id' => '1992','name' => 'Energetyceskiy'),\n \t array('id' => '25378','state_id' => '1992','name' => 'Esik'),\n \t array('id' => '25379','state_id' => '1992','name' => 'Fabrichniy'),\n \t array('id' => '25380','state_id' => '1992','name' => 'Kapsagay'),\n \t array('id' => '25381','state_id' => '1992','name' => 'Karabulak'),\n \t array('id' => '25382','state_id' => '1992','name' => 'Kaskelen'),\n \t array('id' => '25383','state_id' => '1992','name' => 'Kirov'),\n \t array('id' => '25384','state_id' => '1992','name' => 'Sariozek'),\n \t array('id' => '25385','state_id' => '1992','name' => 'Sarkand'),\n \t array('id' => '25386','state_id' => '1992','name' => 'Selek'),\n \t array('id' => '25387','state_id' => '1992','name' => 'Taldikorgan'),\n \t array('id' => '25388','state_id' => '1992','name' => 'Talgar'),\n \t array('id' => '25389','state_id' => '1992','name' => 'Tekeli'),\n \t array('id' => '25390','state_id' => '1992','name' => 'Ustobe'),\n \t array('id' => '25391','state_id' => '1992','name' => 'Uzunagac'),\n \t array('id' => '25392','state_id' => '1993','name' => 'Atirau'),\n \t array('id' => '25393','state_id' => '1993','name' => 'Atyrau'),\n \t array('id' => '25394','state_id' => '1993','name' => 'Dossor'),\n \t array('id' => '25395','state_id' => '1993','name' => 'Inderbor'),\n \t array('id' => '25396','state_id' => '1993','name' => 'Karaton'),\n \t array('id' => '25397','state_id' => '1993','name' => 'Kulsari'),\n \t array('id' => '25398','state_id' => '1993','name' => 'Makat'),\n \t array('id' => '25399','state_id' => '1993','name' => 'Oporni'),\n \t array('id' => '25400','state_id' => '1993','name' => 'Sumisker'),\n \t array('id' => '25401','state_id' => '1996','name' => 'Abay'),\n \t array('id' => '25402','state_id' => '1996','name' => 'Akadir'),\n \t array('id' => '25403','state_id' => '1996','name' => 'Aktas'),\n \t array('id' => '25404','state_id' => '1996','name' => 'Aktau'),\n \t array('id' => '25405','state_id' => '1996','name' => 'Atasu'),\n \t array('id' => '25406','state_id' => '1996','name' => 'Balkas'),\n \t array('id' => '25407','state_id' => '1996','name' => 'Cayrem'),\n \t array('id' => '25408','state_id' => '1996','name' => 'Cezkazgan'),\n \t array('id' => '25409','state_id' => '1996','name' => 'Gulsat'),\n \t array('id' => '25410','state_id' => '1996','name' => 'Karacal'),\n \t array('id' => '25411','state_id' => '1996','name' => 'Karaganda'),\n \t array('id' => '25412','state_id' => '1996','name' => 'Karkarali'),\n \t array('id' => '25413','state_id' => '1996','name' => 'Karsakbay'),\n \t array('id' => '25414','state_id' => '1996','name' => 'Konrat'),\n \t array('id' => '25415','state_id' => '1996','name' => 'Novodolinskiy'),\n \t array('id' => '25416','state_id' => '1996','name' => 'Osakarovka'),\n \t array('id' => '25417','state_id' => '1996','name' => 'Sahti'),\n \t array('id' => '25418','state_id' => '1996','name' => 'Saran'),\n \t array('id' => '25419','state_id' => '1996','name' => 'Sarisagan'),\n \t array('id' => '25420','state_id' => '1996','name' => 'Satpaev'),\n \t array('id' => '25421','state_id' => '1996','name' => 'Temirtau'),\n \t array('id' => '25422','state_id' => '1996','name' => 'Tokaryovka'),\n \t array('id' => '25423','state_id' => '1997','name' => 'Arkalik'),\n \t array('id' => '25424','state_id' => '1997','name' => 'Borovskoy'),\n \t array('id' => '25425','state_id' => '1997','name' => 'Cetikara'),\n \t array('id' => '25426','state_id' => '1997','name' => 'Derjavinsk'),\n \t array('id' => '25427','state_id' => '1997','name' => 'Esil'),\n \t array('id' => '25428','state_id' => '1997','name' => 'Fodorov'),\n \t array('id' => '25429','state_id' => '1997','name' => 'Kacar'),\n \t array('id' => '25430','state_id' => '1997','name' => 'Komsomol'),\n \t array('id' => '25431','state_id' => '1997','name' => 'Kostanay'),\n \t array('id' => '25432','state_id' => '1997','name' => 'Kusmurin'),\n \t array('id' => '25433','state_id' => '1997','name' => 'Lisakovsk'),\n \t array('id' => '25434','state_id' => '1997','name' => 'Rudni'),\n \t array('id' => '25435','state_id' => '1997','name' => 'Tobol'),\n \t array('id' => '25436','state_id' => '1997','name' => 'Uritsk'),\n \t array('id' => '25437','state_id' => '1997','name' => 'Zatobolsk'),\n \t array('id' => '25438','state_id' => '1998','name' => 'Aktau'),\n \t array('id' => '25439','state_id' => '1998','name' => 'Beyneu'),\n \t array('id' => '25440','state_id' => '1998','name' => 'Canaozen'),\n \t array('id' => '25441','state_id' => '1998','name' => 'Cetibay'),\n \t array('id' => '25442','state_id' => '1998','name' => 'Fort-Sevcenko'),\n \t array('id' => '25443','state_id' => '1998','name' => 'Kurik'),\n \t array('id' => '25444','state_id' => '1998','name' => 'Mangyslak'),\n \t array('id' => '25445','state_id' => '1998','name' => 'Setpe'),\n \t array('id' => '25446','state_id' => '2000','name' => 'Ekibastuz'),\n \t array('id' => '25447','state_id' => '2000','name' => 'Ermak'),\n \t array('id' => '25448','state_id' => '2000','name' => 'Ertis'),\n \t array('id' => '25449','state_id' => '2000','name' => 'Kaciri'),\n \t array('id' => '25450','state_id' => '2000','name' => 'Maykain'),\n \t array('id' => '25451','state_id' => '2000','name' => 'Pavlodar'),\n \t array('id' => '25452','state_id' => '2000','name' => 'Sarbakti'),\n \t array('id' => '25453','state_id' => '2003','name' => 'Canatas'),\n \t array('id' => '25454','state_id' => '2003','name' => 'Georgiyev'),\n \t array('id' => '25455','state_id' => '2003','name' => 'Karatau'),\n \t array('id' => '25456','state_id' => '2003','name' => 'Lugovoy'),\n \t array('id' => '25457','state_id' => '2003','name' => 'Merke'),\n \t array('id' => '25458','state_id' => '2003','name' => 'Mihaylov'),\n \t array('id' => '25459','state_id' => '2003','name' => 'Oytal'),\n \t array('id' => '25460','state_id' => '2003','name' => 'Su'),\n \t array('id' => '25461','state_id' => '2003','name' => 'Taraz'),\n \t array('id' => '25462','state_id' => '2004','name' => 'Gilgil'),\n \t array('id' => '25463','state_id' => '2004','name' => 'Karatina'),\n \t array('id' => '25464','state_id' => '2004','name' => 'Kiambu'),\n \t array('id' => '25465','state_id' => '2004','name' => 'Kijabe'),\n \t array('id' => '25466','state_id' => '2004','name' => 'Kikuyu'),\n \t array('id' => '25467','state_id' => '2004','name' => 'Limuru'),\n \t array('id' => '25468','state_id' => '2004','name' => 'Maragua'),\n \t array('id' => '25469','state_id' => '2004','name' => 'Muranga'),\n \t array('id' => '25470','state_id' => '2004','name' => 'Nyeri'),\n \t array('id' => '25471','state_id' => '2004','name' => 'Ruiru'),\n \t array('id' => '25472','state_id' => '2004','name' => 'Sagana'),\n \t array('id' => '25473','state_id' => '2004','name' => 'Thika'),\n \t array('id' => '25474','state_id' => '2004','name' => 'Vanga'),\n \t array('id' => '25475','state_id' => '2005','name' => 'Changamwe'),\n \t array('id' => '25476','state_id' => '2005','name' => 'Garsen'),\n \t array('id' => '25477','state_id' => '2005','name' => 'Gazi'),\n \t array('id' => '25478','state_id' => '2005','name' => 'Hola'),\n \t array('id' => '25479','state_id' => '2005','name' => 'Kaloleni'),\n \t array('id' => '25480','state_id' => '2005','name' => 'Kilifi'),\n \t array('id' => '25481','state_id' => '2005','name' => 'Kinango'),\n \t array('id' => '25482','state_id' => '2005','name' => 'Kipini'),\n \t array('id' => '25483','state_id' => '2005','name' => 'Kwale'),\n \t array('id' => '25484','state_id' => '2005','name' => 'Lamu'),\n \t array('id' => '25485','state_id' => '2005','name' => 'Malindi'),\n \t array('id' => '25486','state_id' => '2005','name' => 'Mambrui'),\n \t array('id' => '25487','state_id' => '2005','name' => 'Mombasa'),\n \t array('id' => '25488','state_id' => '2005','name' => 'Sawasawa'),\n \t array('id' => '25489','state_id' => '2005','name' => 'Shimoni'),\n \t array('id' => '25490','state_id' => '2005','name' => 'Takaungu'),\n \t array('id' => '25491','state_id' => '2005','name' => 'Taveta'),\n \t array('id' => '25492','state_id' => '2005','name' => 'Voi'),\n \t array('id' => '25493','state_id' => '2005','name' => 'Witu'),\n \t array('id' => '25494','state_id' => '2005','name' => 'Wundanyi'),\n \t array('id' => '25495','state_id' => '2006','name' => 'Athi River'),\n \t array('id' => '25496','state_id' => '2006','name' => 'Chuka'),\n \t array('id' => '25497','state_id' => '2006','name' => 'Embu'),\n \t array('id' => '25498','state_id' => '2006','name' => 'Isiolo'),\n \t array('id' => '25499','state_id' => '2006','name' => 'Kangonde'),\n \t array('id' => '25500','state_id' => '2006','name' => 'Kitui'),\n \t array('id' => '25501','state_id' => '2006','name' => 'Machakos'),\n \t array('id' => '25502','state_id' => '2006','name' => 'Mado Gashi'),\n \t array('id' => '25503','state_id' => '2006','name' => 'Marsabit'),\n \t array('id' => '25504','state_id' => '2006','name' => 'Meru'),\n \t array('id' => '25505','state_id' => '2006','name' => 'Moyale'),\n \t array('id' => '25506','state_id' => '2006','name' => 'Mutomo'),\n \t array('id' => '25507','state_id' => '2007','name' => 'Nairobi'),\n \t array('id' => '25508','state_id' => '2009','name' => 'Homa Bay'),\n \t array('id' => '25509','state_id' => '2009','name' => 'Kisii'),\n \t array('id' => '25510','state_id' => '2009','name' => 'Kisumu'),\n \t array('id' => '25511','state_id' => '2009','name' => 'Migori'),\n \t array('id' => '25512','state_id' => '2011','name' => 'Bungoma'),\n \t array('id' => '25513','state_id' => '2011','name' => 'Busia'),\n \t array('id' => '25514','state_id' => '2011','name' => 'Kakamega'),\n \t array('id' => '25515','state_id' => '2011','name' => 'Mumias'),\n \t array('id' => '25516','state_id' => '2011','name' => 'Webuye'),\n \t array('id' => '25517','state_id' => '2012','name' => 'Taburao'),\n \t array('id' => '25518','state_id' => '2013','name' => 'Binoinano'),\n \t array('id' => '25519','state_id' => '2014','name' => 'Takaeang'),\n \t array('id' => '25520','state_id' => '2015','name' => 'Roreti'),\n \t array('id' => '25521','state_id' => '2016','name' => 'Ooma'),\n \t array('id' => '25522','state_id' => '2017','name' => 'Tabukiniberu'),\n \t array('id' => '25523','state_id' => '2018','name' => 'Butaritari'),\n \t array('id' => '25524','state_id' => '2019','name' => 'London'),\n \t array('id' => '25525','state_id' => '2020','name' => 'Tabontebike'),\n \t array('id' => '25526','state_id' => '2021','name' => 'Tabiauea'),\n \t array('id' => '25527','state_id' => '2022','name' => 'Makin'),\n \t array('id' => '25528','state_id' => '2023','name' => 'Rawannawi'),\n \t array('id' => '25529','state_id' => '2024','name' => 'Rungata'),\n \t array('id' => '25530','state_id' => '2025','name' => 'Temaraia'),\n \t array('id' => '25531','state_id' => '2026','name' => 'Ijaki'),\n \t array('id' => '25532','state_id' => '2030','name' => 'Nabari'),\n \t array('id' => '25533','state_id' => '2031','name' => 'Abaokoro'),\n \t array('id' => '25534','state_id' => '2034','name' => 'Washington'),\n \t array('id' => '25535','state_id' => '2035','name' => 'Kanggye'),\n \t array('id' => '25536','state_id' => '2036','name' => 'Cheongjin'),\n \t array('id' => '25537','state_id' => '2036','name' => 'Kimchaek'),\n \t array('id' => '25538','state_id' => '2036','name' => 'Najin'),\n \t array('id' => '25539','state_id' => '2037','name' => 'Hamheung'),\n \t array('id' => '25540','state_id' => '2038','name' => 'Sariweon'),\n \t array('id' => '25541','state_id' => '2038','name' => 'Seongnim'),\n \t array('id' => '25542','state_id' => '2039','name' => 'Haeju'),\n \t array('id' => '25543','state_id' => '2040','name' => 'Kaeseong'),\n \t array('id' => '25544','state_id' => '2041','name' => 'Weonsan'),\n \t array('id' => '25545','state_id' => '2042','name' => 'Nampo'),\n \t array('id' => '25546','state_id' => '2043','name' => 'Sineuiju'),\n \t array('id' => '25547','state_id' => '2044','name' => 'Phyeongseong'),\n \t array('id' => '25548','state_id' => '2045','name' => 'Pyeongyang'),\n \t array('id' => '25549','state_id' => '2045','name' => 'Pyongyang'),\n \t array('id' => '25550','state_id' => '2046','name' => 'Hyesan'),\n \t array('id' => '25551','state_id' => '2047','name' => 'Busan'),\n \t array('id' => '25552','state_id' => '2048','name' => 'Aeweol'),\n \t array('id' => '25553','state_id' => '2048','name' => 'Cheju'),\n \t array('id' => '25554','state_id' => '2048','name' => 'Seogwipo'),\n \t array('id' => '25555','state_id' => '2049','name' => 'Cheonju'),\n \t array('id' => '25556','state_id' => '2049','name' => 'Chongup'),\n \t array('id' => '25557','state_id' => '2049','name' => 'Iksan'),\n \t array('id' => '25558','state_id' => '2049','name' => 'Kimje'),\n \t array('id' => '25559','state_id' => '2049','name' => 'Kochang'),\n \t array('id' => '25560','state_id' => '2049','name' => 'Kunsan'),\n \t array('id' => '25561','state_id' => '2049','name' => 'Namwon'),\n \t array('id' => '25562','state_id' => '2049','name' => 'Puan'),\n \t array('id' => '25563','state_id' => '2050','name' => 'Haenam'),\n \t array('id' => '25564','state_id' => '2050','name' => 'Hwasun'),\n \t array('id' => '25565','state_id' => '2050','name' => 'Kwangyang'),\n \t array('id' => '25566','state_id' => '2050','name' => 'Kwangyang Up'),\n \t array('id' => '25567','state_id' => '2050','name' => 'Mokpo'),\n \t array('id' => '25568','state_id' => '2050','name' => 'Naju'),\n \t array('id' => '25569','state_id' => '2050','name' => 'Peolgyo'),\n \t array('id' => '25570','state_id' => '2050','name' => 'Suncheon'),\n \t array('id' => '25571','state_id' => '2050','name' => 'Yeocheon'),\n \t array('id' => '25572','state_id' => '2050','name' => 'Yeosu'),\n \t array('id' => '25573','state_id' => '2050','name' => 'Yonggwang'),\n \t array('id' => '25574','state_id' => '2051','name' => 'Cheongwon-gun'),\n \t array('id' => '25575','state_id' => '2051','name' => 'Eumsung-Kun'),\n \t array('id' => '25576','state_id' => '2051','name' => 'Jinchunkun'),\n \t array('id' => '25577','state_id' => '2051','name' => 'Okcheon-gun'),\n \t array('id' => '25578','state_id' => '2051','name' => 'Um Sung Gun'),\n \t array('id' => '25579','state_id' => '2052','name' => 'Chechon'),\n \t array('id' => '25580','state_id' => '2052','name' => 'Cheongju'),\n \t array('id' => '25581','state_id' => '2052','name' => 'Chincheon'),\n \t array('id' => '25582','state_id' => '2052','name' => 'Chungju'),\n \t array('id' => '25583','state_id' => '2052','name' => 'Jincheon-gun'),\n \t array('id' => '25584','state_id' => '2052','name' => 'Okchon'),\n \t array('id' => '25585','state_id' => '2052','name' => 'Yongdong'),\n \t array('id' => '25586','state_id' => '2053','name' => 'Asan'),\n \t array('id' => '25587','state_id' => '2053','name' => 'Cheonan'),\n \t array('id' => '25588','state_id' => '2053','name' => 'Chochiwon'),\n \t array('id' => '25589','state_id' => '2053','name' => 'Geumsan-Gun'),\n \t array('id' => '25590','state_id' => '2053','name' => 'Hongseong'),\n \t array('id' => '25591','state_id' => '2053','name' => 'Kongju'),\n \t array('id' => '25592','state_id' => '2053','name' => 'Kumsan'),\n \t array('id' => '25593','state_id' => '2053','name' => 'Nonsan'),\n \t array('id' => '25594','state_id' => '2053','name' => 'Poryong'),\n \t array('id' => '25595','state_id' => '2053','name' => 'Puyeo'),\n \t array('id' => '25596','state_id' => '2053','name' => 'Seonghwan'),\n \t array('id' => '25597','state_id' => '2053','name' => 'Seosan'),\n \t array('id' => '25598','state_id' => '2053','name' => 'Taean'),\n \t array('id' => '25599','state_id' => '2053','name' => 'Taesan'),\n \t array('id' => '25600','state_id' => '2053','name' => 'Tangjin'),\n \t array('id' => '25601','state_id' => '2053','name' => 'Yesan'),\n \t array('id' => '25602','state_id' => '2053','name' => 'Yonmu'),\n \t array('id' => '25603','state_id' => '2054','name' => 'Chonan'),\n \t array('id' => '25604','state_id' => '2054','name' => 'Danjin-gun'),\n \t array('id' => '25605','state_id' => '2054','name' => 'Gongjusi'),\n \t array('id' => '25606','state_id' => '2055','name' => 'Daegu'),\n \t array('id' => '25607','state_id' => '2055','name' => 'Dalseo-gu'),\n \t array('id' => '25608','state_id' => '2056','name' => 'Chungcheong'),\n \t array('id' => '25609','state_id' => '2056','name' => 'Hoengseong'),\n \t array('id' => '25610','state_id' => '2056','name' => 'Mummakeup'),\n \t array('id' => '25611','state_id' => '2056','name' => 'Wonju'),\n \t array('id' => '25612','state_id' => '2057','name' => 'Gimhae'),\n \t array('id' => '25613','state_id' => '2057','name' => 'Goyang-si'),\n \t array('id' => '25614','state_id' => '2058','name' => 'Ansan'),\n \t array('id' => '25615','state_id' => '2058','name' => 'Anyang'),\n \t array('id' => '25616','state_id' => '2058','name' => 'Anyang-Si'),\n \t array('id' => '25617','state_id' => '2058','name' => 'Anyangsi'),\n \t array('id' => '25618','state_id' => '2058','name' => 'Buchon'),\n \t array('id' => '25619','state_id' => '2058','name' => 'Buchun-Si'),\n \t array('id' => '25620','state_id' => '2058','name' => 'Byeoryangdong'),\n \t array('id' => '25621','state_id' => '2058','name' => 'Dongan-gu'),\n \t array('id' => '25622','state_id' => '2058','name' => 'Gimpo City'),\n \t array('id' => '25623','state_id' => '2058','name' => 'Goyang'),\n \t array('id' => '25624','state_id' => '2058','name' => 'Gupo-si'),\n \t array('id' => '25625','state_id' => '2058','name' => 'Guri-Si'),\n \t array('id' => '25626','state_id' => '2058','name' => 'Gwacheon Si'),\n \t array('id' => '25627','state_id' => '2058','name' => 'Gwangju-Si'),\n \t array('id' => '25628','state_id' => '2058','name' => 'Hwaseong-si'),\n \t array('id' => '25629','state_id' => '2058','name' => 'Icheon-si'),\n \t array('id' => '25630','state_id' => '2058','name' => 'Iljuk-myeon'),\n \t array('id' => '25631','state_id' => '2058','name' => 'Kwangju'),\n \t array('id' => '25632','state_id' => '2058','name' => 'Pocheon-Si'),\n \t array('id' => '25633','state_id' => '2058','name' => 'Seongnam'),\n \t array('id' => '25634','state_id' => '2058','name' => 'Shihung-Si'),\n \t array('id' => '25635','state_id' => '2058','name' => 'Siheung'),\n \t array('id' => '25636','state_id' => '2058','name' => 'Sihung-si'),\n \t array('id' => '25637','state_id' => '2058','name' => 'Suwon'),\n \t array('id' => '25638','state_id' => '2058','name' => 'Uijeongbu-dong'),\n \t array('id' => '25639','state_id' => '2058','name' => 'Uiwang'),\n \t array('id' => '25640','state_id' => '2058','name' => 'Yangju'),\n \t array('id' => '25641','state_id' => '2058','name' => 'Yangpyeong-Gun'),\n \t array('id' => '25642','state_id' => '2058','name' => 'Yeokbuk-Dong-Si'),\n \t array('id' => '25643','state_id' => '2060','name' => 'Changwon'),\n \t array('id' => '25644','state_id' => '2060','name' => 'Gimhae-si'),\n \t array('id' => '25645','state_id' => '2061','name' => 'Incheon'),\n \t array('id' => '25646','state_id' => '2061','name' => 'Kanghwa'),\n \t array('id' => '25647','state_id' => '2061','name' => 'Namdongku'),\n \t array('id' => '25648','state_id' => '2062','name' => 'Jeju'),\n \t array('id' => '25649','state_id' => '2062','name' => 'Yeongpyeong-Dong'),\n \t array('id' => '25650','state_id' => '2063','name' => 'Jeonju-Si'),\n \t array('id' => '25651','state_id' => '2064','name' => 'Chuncheon'),\n \t array('id' => '25652','state_id' => '2064','name' => 'Hongcheon'),\n \t array('id' => '25653','state_id' => '2064','name' => 'Kangneung'),\n \t array('id' => '25654','state_id' => '2064','name' => 'Samchok'),\n \t array('id' => '25655','state_id' => '2064','name' => 'Seokcho'),\n \t array('id' => '25656','state_id' => '2064','name' => 'Taebaek'),\n \t array('id' => '25657','state_id' => '2064','name' => 'Tonghae'),\n \t array('id' => '25658','state_id' => '2064','name' => 'Weonju'),\n \t array('id' => '25659','state_id' => '2064','name' => 'Yeongweol'),\n \t array('id' => '25660','state_id' => '2065','name' => 'Kwangju'),\n \t array('id' => '25661','state_id' => '2066','name' => 'Ansan'),\n \t array('id' => '25662','state_id' => '2066','name' => 'Anseong'),\n \t array('id' => '25663','state_id' => '2066','name' => 'Anyang'),\n \t array('id' => '25664','state_id' => '2066','name' => 'Chongok'),\n \t array('id' => '25665','state_id' => '2066','name' => 'Euijeongbu'),\n \t array('id' => '25666','state_id' => '2066','name' => 'Euiwang'),\n \t array('id' => '25667','state_id' => '2066','name' => 'Hanam'),\n \t array('id' => '25668','state_id' => '2066','name' => 'Hoechon'),\n \t array('id' => '25669','state_id' => '2066','name' => 'Hwado'),\n \t array('id' => '25670','state_id' => '2066','name' => 'Hwasung'),\n \t array('id' => '25671','state_id' => '2066','name' => 'Ichon'),\n \t array('id' => '25672','state_id' => '2066','name' => 'Kihung'),\n \t array('id' => '25673','state_id' => '2066','name' => 'Kimpo'),\n \t array('id' => '25674','state_id' => '2066','name' => 'Koyang'),\n \t array('id' => '25675','state_id' => '2066','name' => 'Kumchon'),\n \t array('id' => '25676','state_id' => '2066','name' => 'Kunpo'),\n \t array('id' => '25677','state_id' => '2066','name' => 'Kuri'),\n \t array('id' => '25678','state_id' => '2066','name' => 'Kwacheon'),\n \t array('id' => '25679','state_id' => '2066','name' => 'Kwangju'),\n \t array('id' => '25680','state_id' => '2066','name' => 'Kwangmyeong'),\n \t array('id' => '25681','state_id' => '2066','name' => 'Munsan'),\n \t array('id' => '25682','state_id' => '2066','name' => 'Namyangju'),\n \t array('id' => '25683','state_id' => '2066','name' => 'Osan'),\n \t array('id' => '25684','state_id' => '2066','name' => 'Paengseong'),\n \t array('id' => '25685','state_id' => '2066','name' => 'Pochon'),\n \t array('id' => '25686','state_id' => '2066','name' => 'Pubal'),\n \t array('id' => '25687','state_id' => '2066','name' => 'Pucheon'),\n \t array('id' => '25688','state_id' => '2066','name' => 'Pyeongtaek'),\n \t array('id' => '25689','state_id' => '2066','name' => 'Seongnam'),\n \t array('id' => '25690','state_id' => '2066','name' => 'Shiheung'),\n \t array('id' => '25691','state_id' => '2066','name' => 'Suweon'),\n \t array('id' => '25692','state_id' => '2066','name' => 'Taean'),\n \t array('id' => '25693','state_id' => '2066','name' => 'Tongducheon'),\n \t array('id' => '25694','state_id' => '2066','name' => 'Wabu'),\n \t array('id' => '25695','state_id' => '2066','name' => 'Yeoju'),\n \t array('id' => '25696','state_id' => '2066','name' => 'Yongin'),\n \t array('id' => '25697','state_id' => '2067','name' => 'Andong'),\n \t array('id' => '25698','state_id' => '2067','name' => 'Angang'),\n \t array('id' => '25699','state_id' => '2067','name' => 'Hayang'),\n \t array('id' => '25700','state_id' => '2067','name' => 'Heunghae'),\n \t array('id' => '25701','state_id' => '2067','name' => 'Kimcheon'),\n \t array('id' => '25702','state_id' => '2067','name' => 'Kumi'),\n \t array('id' => '25703','state_id' => '2067','name' => 'Kyeongju'),\n \t array('id' => '25704','state_id' => '2067','name' => 'Kyeongsan'),\n \t array('id' => '25705','state_id' => '2067','name' => 'Mungyong'),\n \t array('id' => '25706','state_id' => '2067','name' => 'Ochon'),\n \t array('id' => '25707','state_id' => '2067','name' => 'Oedong'),\n \t array('id' => '25708','state_id' => '2067','name' => 'Pohang'),\n \t array('id' => '25709','state_id' => '2067','name' => 'Sangju'),\n \t array('id' => '25710','state_id' => '2067','name' => 'Seonsan'),\n \t array('id' => '25711','state_id' => '2067','name' => 'Waegwan'),\n \t array('id' => '25712','state_id' => '2067','name' => 'Yechon'),\n \t array('id' => '25713','state_id' => '2067','name' => 'Yeongcheon'),\n \t array('id' => '25714','state_id' => '2067','name' => 'Yeongju'),\n \t array('id' => '25715','state_id' => '2067','name' => 'Yeonil'),\n \t array('id' => '25716','state_id' => '2068','name' => 'Changweon'),\n \t array('id' => '25717','state_id' => '2068','name' => 'Chinhae'),\n \t array('id' => '25718','state_id' => '2068','name' => 'Chinju'),\n \t array('id' => '25719','state_id' => '2068','name' => 'Chinyeong'),\n \t array('id' => '25720','state_id' => '2068','name' => 'Keoje'),\n \t array('id' => '25721','state_id' => '2068','name' => 'Kimhae'),\n \t array('id' => '25722','state_id' => '2068','name' => 'Kochang'),\n \t array('id' => '25723','state_id' => '2068','name' => 'Koseong'),\n \t array('id' => '25724','state_id' => '2068','name' => 'Masan'),\n \t array('id' => '25725','state_id' => '2068','name' => 'Miryang'),\n \t array('id' => '25726','state_id' => '2068','name' => 'Naeso'),\n \t array('id' => '25727','state_id' => '2068','name' => 'Sacheon'),\n \t array('id' => '25728','state_id' => '2068','name' => 'Sinhyeon'),\n \t array('id' => '25729','state_id' => '2068','name' => 'Tongyong'),\n \t array('id' => '25730','state_id' => '2068','name' => 'Ungsang'),\n \t array('id' => '25731','state_id' => '2068','name' => 'Yangju'),\n \t array('id' => '25732','state_id' => '2068','name' => 'Yangsan'),\n \t array('id' => '25733','state_id' => '2069','name' => 'Anyang-Si'),\n \t array('id' => '25734','state_id' => '2069','name' => 'Bucheon'),\n \t array('id' => '25735','state_id' => '2069','name' => 'Paju'),\n \t array('id' => '25736','state_id' => '2069','name' => 'Sungnamshi'),\n \t array('id' => '25737','state_id' => '2069','name' => 'Suwon'),\n \t array('id' => '25738','state_id' => '2069','name' => 'Uijongbu'),\n \t array('id' => '25739','state_id' => '2069','name' => 'Yangju'),\n \t array('id' => '25740','state_id' => '2070','name' => 'Gumi-Shi'),\n \t array('id' => '25741','state_id' => '2070','name' => 'Kyungsan'),\n \t array('id' => '25742','state_id' => '2070','name' => 'Youngcheon-Si'),\n \t array('id' => '25743','state_id' => '2071','name' => 'Bundang'),\n \t array('id' => '25744','state_id' => '2071','name' => 'Gunpo'),\n \t array('id' => '25745','state_id' => '2071','name' => 'Yangu'),\n \t array('id' => '25746','state_id' => '2072','name' => 'Pochun'),\n \t array('id' => '25747','state_id' => '2072','name' => 'Yangju'),\n \t array('id' => '25748','state_id' => '2072','name' => 'Yonggi'),\n \t array('id' => '25749','state_id' => '2073','name' => 'Kijang'),\n \t array('id' => '25750','state_id' => '2073','name' => 'Pusan'),\n \t array('id' => '25751','state_id' => '2074','name' => 'Seoul'),\n \t array('id' => '25752','state_id' => '2075','name' => 'Paju'),\n \t array('id' => '25753','state_id' => '2076','name' => 'Hwawon'),\n \t array('id' => '25754','state_id' => '2076','name' => 'Taegu'),\n \t array('id' => '25755','state_id' => '2077','name' => 'Taejeon'),\n \t array('id' => '25756','state_id' => '2078','name' => 'Daejeon'),\n \t array('id' => '25757','state_id' => '2079','name' => 'Nongso'),\n \t array('id' => '25758','state_id' => '2079','name' => 'Ulsan'),\n \t array('id' => '25759','state_id' => '2080','name' => 'Heungup-Myun'),\n \t array('id' => '25760','state_id' => '2081','name' => 'Inchon'),\n \t array('id' => '25761','state_id' => '2081','name' => 'Pusan'),\n \t array('id' => '25762','state_id' => '2081','name' => 'Taejon'),\n \t array('id' => '25763','state_id' => '2083','name' => 'Bayan'),\n \t array('id' => '25764','state_id' => '2083','name' => 'Hawalli'),\n \t array('id' => '25765','state_id' => '2083','name' => 'Massilah'),\n \t array('id' => '25766','state_id' => '2083','name' => 'Mushrif'),\n \t array('id' => '25767','state_id' => '2083','name' => 'Salwa\\''),\n \t array('id' => '25768','state_id' => '2083','name' => 'Sha\\'\\'ab'),\n \t array('id' => '25769','state_id' => '2083','name' => 'Subbah-as-Salim'),\n \t array('id' => '25770','state_id' => '2083','name' => 'al-Funaytis'),\n \t array('id' => '25771','state_id' => '2083','name' => 'al-Funaytis-al-Garbiyah'),\n \t array('id' => '25772','state_id' => '2083','name' => 'al-Jabiriyah'),\n \t array('id' => '25773','state_id' => '2083','name' => 'al-Karim'),\n \t array('id' => '25774','state_id' => '2083','name' => 'ar-Rumaythiyah'),\n \t array('id' => '25775','state_id' => '2083','name' => 'as-Salimiyah'),\n \t array('id' => '25776','state_id' => '2084','name' => 'Mishref'),\n \t array('id' => '25777','state_id' => '2085','name' => 'Qadesiya'),\n \t array('id' => '25778','state_id' => '2086','name' => 'Safat'),\n \t array('id' => '25779','state_id' => '2087','name' => 'Salmiya'),\n \t array('id' => '25780','state_id' => '2088','name' => 'A\\'qaylah'),\n \t array('id' => '25781','state_id' => '2088','name' => 'Abu Hulayfah'),\n \t array('id' => '25782','state_id' => '2088','name' => 'Dahar'),\n \t array('id' => '25783','state_id' => '2088','name' => 'Desert Area'),\n \t array('id' => '25784','state_id' => '2088','name' => 'Hadiyah'),\n \t array('id' => '25785','state_id' => '2088','name' => 'Jabbar-al-\\'Ali'),\n \t array('id' => '25786','state_id' => '2088','name' => 'Shu\\'aybah'),\n \t array('id' => '25787','state_id' => '2088','name' => 'al-Ahmadi'),\n \t array('id' => '25788','state_id' => '2088','name' => 'al-Fintas'),\n \t array('id' => '25789','state_id' => '2088','name' => 'al-Fuhayhil'),\n \t array('id' => '25790','state_id' => '2088','name' => 'al-Mahbulah'),\n \t array('id' => '25791','state_id' => '2088','name' => 'al-Manqaf'),\n \t array('id' => '25792','state_id' => '2088','name' => 'al-Wafrah'),\n \t array('id' => '25793','state_id' => '2088','name' => 'ar-Riqqah'),\n \t array('id' => '25794','state_id' => '2088','name' => 'as-Sabahiyah'),\n \t array('id' => '25795','state_id' => '2088','name' => 'az-Zawr'),\n \t array('id' => '25796','state_id' => '2089','name' => '\\'Umayriyah'),\n \t array('id' => '25797','state_id' => '2089','name' => 'Abraq Khitan'),\n \t array('id' => '25798','state_id' => '2089','name' => 'Ardiyah'),\n \t array('id' => '25799','state_id' => '2089','name' => 'Fardaws'),\n \t array('id' => '25800','state_id' => '2089','name' => 'Jalib ash-Shuyuh'),\n \t array('id' => '25801','state_id' => '2089','name' => 'Janub-as-Surrah'),\n \t array('id' => '25802','state_id' => '2089','name' => 'Khitan-al-Janubiyah'),\n \t array('id' => '25803','state_id' => '2089','name' => 'Qartaba'),\n \t array('id' => '25804','state_id' => '2089','name' => 'Ray'),\n \t array('id' => '25805','state_id' => '2089','name' => 'Riqay'),\n \t array('id' => '25806','state_id' => '2089','name' => 'Sabhan'),\n \t array('id' => '25807','state_id' => '2089','name' => 'Sarbah-an-Nasr'),\n \t array('id' => '25808','state_id' => '2089','name' => 'Warmawk'),\n \t array('id' => '25809','state_id' => '2089','name' => 'al-Andalus'),\n \t array('id' => '25810','state_id' => '2089','name' => 'al-Farwaniyah'),\n \t array('id' => '25811','state_id' => '2089','name' => 'ar-Rabbiyah'),\n \t array('id' => '25812','state_id' => '2090','name' => 'Amgarah'),\n \t array('id' => '25813','state_id' => '2090','name' => 'Desert Area'),\n \t array('id' => '25814','state_id' => '2090','name' => 'Nasim'),\n \t array('id' => '25815','state_id' => '2090','name' => 'Tayma\\''),\n \t array('id' => '25816','state_id' => '2090','name' => 'Uyawn'),\n \t array('id' => '25817','state_id' => '2090','name' => 'Waha'),\n \t array('id' => '25818','state_id' => '2090','name' => 'al-Jahra'),\n \t array('id' => '25819','state_id' => '2090','name' => 'al-Qusayr'),\n \t array('id' => '25820','state_id' => '2090','name' => 'as-Sulaybiyah'),\n \t array('id' => '25821','state_id' => '2091','name' => '\\'Abullah-as-Salam'),\n \t array('id' => '25822','state_id' => '2091','name' => 'Ardhiyah'),\n \t array('id' => '25823','state_id' => '2091','name' => 'Banayd-al-Qar'),\n \t array('id' => '25824','state_id' => '2091','name' => 'Health District'),\n \t array('id' => '25825','state_id' => '2091','name' => 'Kayfan'),\n \t array('id' => '25826','state_id' => '2091','name' => 'Khalidiyah'),\n \t array('id' => '25827','state_id' => '2091','name' => 'Mansuriyah'),\n \t array('id' => '25828','state_id' => '2091','name' => 'Nuzha'),\n \t array('id' => '25829','state_id' => '2091','name' => 'Qarnadah'),\n \t array('id' => '25830','state_id' => '2091','name' => 'Shamiyah'),\n \t array('id' => '25831','state_id' => '2091','name' => 'ad-Da\\'iyah'),\n \t array('id' => '25832','state_id' => '2091','name' => 'ad-Dasma'),\n \t array('id' => '25833','state_id' => '2091','name' => 'ad-Dawhah'),\n \t array('id' => '25834','state_id' => '2091','name' => 'al-\\'Udayliyah'),\n \t array('id' => '25835','state_id' => '2091','name' => 'al-Fayha'),\n \t array('id' => '25836','state_id' => '2091','name' => 'al-Kuwayt'),\n \t array('id' => '25837','state_id' => '2091','name' => 'al-Qadisiyah'),\n \t array('id' => '25838','state_id' => '2091','name' => 'ar-Rawdah'),\n \t array('id' => '25839','state_id' => '2091','name' => 'as-Sulaybihat'),\n \t array('id' => '25840','state_id' => '2091','name' => 'ash-Shuwaykh Industrial'),\n \t array('id' => '25841','state_id' => '2091','name' => 'ash-Shuwaykh Reservoir'),\n \t array('id' => '25842','state_id' => '2092','name' => 'Batken'),\n \t array('id' => '25843','state_id' => '2092','name' => 'Isfana'),\n \t array('id' => '25844','state_id' => '2092','name' => 'Khaidarkan'),\n \t array('id' => '25845','state_id' => '2092','name' => 'Kyzyl-Kiya'),\n \t array('id' => '25846','state_id' => '2092','name' => 'Ravat'),\n \t array('id' => '25847','state_id' => '2092','name' => 'Sulukta'),\n \t array('id' => '25848','state_id' => '2093','name' => 'Bishkek'),\n \t array('id' => '25849','state_id' => '2094','name' => 'Ak-Suu'),\n \t array('id' => '25850','state_id' => '2094','name' => 'Belovodskoye'),\n \t array('id' => '25851','state_id' => '2094','name' => 'Boroldoy'),\n \t array('id' => '25852','state_id' => '2094','name' => 'Chaldovar'),\n \t array('id' => '25853','state_id' => '2094','name' => 'Chatkyol'),\n \t array('id' => '25854','state_id' => '2094','name' => 'Chui'),\n \t array('id' => '25855','state_id' => '2094','name' => 'Don Arik'),\n \t array('id' => '25856','state_id' => '2094','name' => 'Ivanovka'),\n \t array('id' => '25857','state_id' => '2094','name' => 'Jangyjar'),\n \t array('id' => '25858','state_id' => '2094','name' => 'Jangypakhtar'),\n \t array('id' => '25859','state_id' => '2094','name' => 'Kalininskoye'),\n \t array('id' => '25860','state_id' => '2094','name' => 'Kalinovka'),\n \t array('id' => '25861','state_id' => '2094','name' => 'Kant'),\n \t array('id' => '25862','state_id' => '2094','name' => 'Kara-Suu'),\n \t array('id' => '25863','state_id' => '2094','name' => 'Karabalta'),\n \t array('id' => '25864','state_id' => '2094','name' => 'Kayingdi'),\n \t array('id' => '25865','state_id' => '2094','name' => 'Kegety'),\n \t array('id' => '25866','state_id' => '2094','name' => 'Kemin'),\n \t array('id' => '25867','state_id' => '2094','name' => 'Kosh Tegirmen'),\n \t array('id' => '25868','state_id' => '2094','name' => 'Krasnaya Rechka'),\n \t array('id' => '25869','state_id' => '2094','name' => 'Orlovka'),\n \t array('id' => '25870','state_id' => '2094','name' => 'Sokuluk'),\n \t array('id' => '25871','state_id' => '2094','name' => 'Sopokov'),\n \t array('id' => '25872','state_id' => '2094','name' => 'Sosnovka'),\n \t array('id' => '25873','state_id' => '2094','name' => 'Tokmok'),\n \t array('id' => '25874','state_id' => '2094','name' => 'Tunuk'),\n \t array('id' => '25875','state_id' => '2094','name' => 'Yuryevka'),\n \t array('id' => '25876','state_id' => '2095','name' => 'Ak-Bulok'),\n \t array('id' => '25877','state_id' => '2095','name' => 'Ak-Terek'),\n \t array('id' => '25878','state_id' => '2095','name' => 'Ananyevo'),\n \t array('id' => '25879','state_id' => '2095','name' => 'Balykchy'),\n \t array('id' => '25880','state_id' => '2095','name' => 'Barskoon'),\n \t array('id' => '25881','state_id' => '2095','name' => 'Cholpon-Ata'),\n \t array('id' => '25882','state_id' => '2095','name' => 'Darkhon'),\n \t array('id' => '25883','state_id' => '2095','name' => 'Enilchek'),\n \t array('id' => '25884','state_id' => '2095','name' => 'Grigoryevka'),\n \t array('id' => '25885','state_id' => '2095','name' => 'Jyrgolon'),\n \t array('id' => '25886','state_id' => '2095','name' => 'Kara-Say'),\n \t array('id' => '25887','state_id' => '2095','name' => 'Karako'),\n \t array('id' => '25888','state_id' => '2095','name' => 'Karakol'),\n \t array('id' => '25889','state_id' => '2095','name' => 'Kuturgu'),\n \t array('id' => '25890','state_id' => '2095','name' => 'Mikhaylovka'),\n \t array('id' => '25891','state_id' => '2095','name' => 'Novovoznesenovka'),\n \t array('id' => '25892','state_id' => '2095','name' => 'Ottuk'),\n \t array('id' => '25893','state_id' => '2095','name' => 'Semyonovka'),\n \t array('id' => '25894','state_id' => '2095','name' => 'Taldy-Suu'),\n \t array('id' => '25895','state_id' => '2095','name' => 'Teploklyuchenka'),\n \t array('id' => '25896','state_id' => '2095','name' => 'Tyup'),\n \t array('id' => '25897','state_id' => '2096','name' => 'Ala Buka'),\n \t array('id' => '25898','state_id' => '2096','name' => 'Bazarkurgon'),\n \t array('id' => '25899','state_id' => '2096','name' => 'Jalal-Abad'),\n \t array('id' => '25900','state_id' => '2096','name' => 'Jangybazar'),\n \t array('id' => '25901','state_id' => '2096','name' => 'Karavan'),\n \t array('id' => '25902','state_id' => '2096','name' => 'Kochkor-Ata'),\n \t array('id' => '25903','state_id' => '2096','name' => 'Kok-Jangak'),\n \t array('id' => '25904','state_id' => '2096','name' => 'Mailuu-Suu'),\n \t array('id' => '25905','state_id' => '2096','name' => 'Tash-Kumyr'),\n \t array('id' => '25906','state_id' => '2097','name' => 'At-Bashi'),\n \t array('id' => '25907','state_id' => '2097','name' => 'Chaiek'),\n \t array('id' => '25908','state_id' => '2097','name' => 'Kara-Suu'),\n \t array('id' => '25909','state_id' => '2097','name' => 'Kayirma'),\n \t array('id' => '25910','state_id' => '2097','name' => 'Kek-Algyp'),\n \t array('id' => '25911','state_id' => '2097','name' => 'Kochkorka'),\n \t array('id' => '25912','state_id' => '2097','name' => 'Kulanak'),\n \t array('id' => '25913','state_id' => '2097','name' => 'Mingbulok'),\n \t array('id' => '25914','state_id' => '2097','name' => 'Mingkush'),\n \t array('id' => '25915','state_id' => '2097','name' => 'Naryn'),\n \t array('id' => '25916','state_id' => '2097','name' => 'Ugyut'),\n \t array('id' => '25917','state_id' => '2098','name' => 'Daraut-Korgan'),\n \t array('id' => '25918','state_id' => '2098','name' => 'Gulcha'),\n \t array('id' => '25919','state_id' => '2098','name' => 'Kara-Suu'),\n \t array('id' => '25920','state_id' => '2098','name' => 'Leninskoye'),\n \t array('id' => '25921','state_id' => '2098','name' => 'Osh'),\n \t array('id' => '25922','state_id' => '2098','name' => 'Uzgen'),\n \t array('id' => '25923','state_id' => '2099','name' => 'Chat-Bazar'),\n \t array('id' => '25924','state_id' => '2099','name' => 'Groznoye'),\n \t array('id' => '25925','state_id' => '2099','name' => 'Kara-Kul'),\n \t array('id' => '25926','state_id' => '2099','name' => 'Klyuchevka'),\n \t array('id' => '25927','state_id' => '2099','name' => 'Kyzyl-Adyr'),\n \t array('id' => '25928','state_id' => '2099','name' => 'Leninopol'),\n \t array('id' => '25929','state_id' => '2099','name' => 'Maimak'),\n \t array('id' => '25930','state_id' => '2099','name' => 'Talas'),\n \t array('id' => '25931','state_id' => '2099','name' => 'Toktogul'),\n \t array('id' => '25932','state_id' => '2100','name' => 'Samakhixai'),\n \t array('id' => '25933','state_id' => '2101','name' => 'Huayxay'),\n \t array('id' => '25934','state_id' => '2102','name' => 'Pakxan'),\n \t array('id' => '25935','state_id' => '2103','name' => 'Champasak'),\n \t array('id' => '25936','state_id' => '2103','name' => 'Muang Khong'),\n \t array('id' => '25937','state_id' => '2103','name' => 'Muang Khongxedon'),\n \t array('id' => '25938','state_id' => '2103','name' => 'Pakxe'),\n \t array('id' => '25939','state_id' => '2104','name' => 'Xam Nua'),\n \t array('id' => '25940','state_id' => '2105','name' => 'Thakek'),\n \t array('id' => '25941','state_id' => '2108','name' => 'Ban Nahin'),\n \t array('id' => '25942','state_id' => '2109','name' => 'Phongsaly'),\n \t array('id' => '25943','state_id' => '2110','name' => 'Saravan'),\n \t array('id' => '25944','state_id' => '2111','name' => 'Savannakhet'),\n \t array('id' => '25945','state_id' => '2112','name' => 'Sekong'),\n \t array('id' => '25946','state_id' => '2115','name' => 'Xaignabury'),\n \t array('id' => '25947','state_id' => '2117','name' => 'Aizkraukle'),\n \t array('id' => '25948','state_id' => '2117','name' => 'Jaunjelgava'),\n \t array('id' => '25949','state_id' => '2117','name' => 'Plavinas'),\n \t array('id' => '25950','state_id' => '2118','name' => 'Aluksne'),\n \t array('id' => '25951','state_id' => '2118','name' => 'Ape'),\n \t array('id' => '25952','state_id' => '2119','name' => 'Balvi'),\n \t array('id' => '25953','state_id' => '2119','name' => 'Vilaka'),\n \t array('id' => '25954','state_id' => '2120','name' => 'Bauska'),\n \t array('id' => '25955','state_id' => '2121','name' => 'Cesis'),\n \t array('id' => '25956','state_id' => '2121','name' => 'Ligatne'),\n \t array('id' => '25957','state_id' => '2122','name' => 'Ilukste'),\n \t array('id' => '25958','state_id' => '2122','name' => 'Subate'),\n \t array('id' => '25959','state_id' => '2123','name' => 'Ilukste'),\n \t array('id' => '25960','state_id' => '2123','name' => 'Subate'),\n \t array('id' => '25961','state_id' => '2124','name' => 'Auce'),\n \t array('id' => '25962','state_id' => '2124','name' => 'Dobele'),\n \t array('id' => '25963','state_id' => '2125','name' => 'Gulbene'),\n \t array('id' => '25964','state_id' => '2126','name' => 'Akniste'),\n \t array('id' => '25965','state_id' => '2126','name' => 'Jekabspils'),\n \t array('id' => '25966','state_id' => '2126','name' => 'Viesite'),\n \t array('id' => '25967','state_id' => '2127','name' => 'Jelgava'),\n \t array('id' => '25968','state_id' => '2128','name' => 'Kalnciems'),\n \t array('id' => '25969','state_id' => '2130','name' => 'Dagda'),\n \t array('id' => '25970','state_id' => '2130','name' => 'Kraslava'),\n \t array('id' => '25971','state_id' => '2131','name' => 'Kuldiga'),\n \t array('id' => '25972','state_id' => '2131','name' => 'Skrunda'),\n \t array('id' => '25973','state_id' => '2132','name' => 'Liepaja'),\n \t array('id' => '25974','state_id' => '2133','name' => 'Aizpute'),\n \t array('id' => '25975','state_id' => '2133','name' => 'Durbe'),\n \t array('id' => '25976','state_id' => '2133','name' => 'Grobina'),\n \t array('id' => '25977','state_id' => '2133','name' => 'Pavilosta'),\n \t array('id' => '25978','state_id' => '2133','name' => 'Priekule'),\n \t array('id' => '25979','state_id' => '2134','name' => 'Ainazhi'),\n \t array('id' => '25980','state_id' => '2134','name' => 'Aloja'),\n \t array('id' => '25981','state_id' => '2134','name' => 'Limbazhi'),\n \t array('id' => '25982','state_id' => '2134','name' => 'Salacgriva'),\n \t array('id' => '25983','state_id' => '2134','name' => 'Staicele'),\n \t array('id' => '25984','state_id' => '2135','name' => 'Karsava'),\n \t array('id' => '25985','state_id' => '2135','name' => 'Ludza'),\n \t array('id' => '25986','state_id' => '2135','name' => 'Zilupe'),\n \t array('id' => '25987','state_id' => '2136','name' => 'Cesvaine'),\n \t array('id' => '25988','state_id' => '2136','name' => 'Lubana'),\n \t array('id' => '25989','state_id' => '2136','name' => 'Madona'),\n \t array('id' => '25990','state_id' => '2136','name' => 'Varaklani'),\n \t array('id' => '25991','state_id' => '2137','name' => 'Ikskile'),\n \t array('id' => '25992','state_id' => '2137','name' => 'Kegums'),\n \t array('id' => '25993','state_id' => '2137','name' => 'Les Hautes-Rivieres'),\n \t array('id' => '25994','state_id' => '2137','name' => 'Lielvarde'),\n \t array('id' => '25995','state_id' => '2137','name' => 'Ogre'),\n \t array('id' => '25996','state_id' => '2138','name' => 'Livani'),\n \t array('id' => '25997','state_id' => '2138','name' => 'Preili'),\n \t array('id' => '25998','state_id' => '2139','name' => 'Rezekne'),\n \t array('id' => '25999','state_id' => '2140','name' => 'Vilani'),\n \t array('id' => '26000','state_id' => '2141','name' => 'Riga'),\n \t array('id' => '26001','state_id' => '2142','name' => 'Baldone'),\n \t array('id' => '26002','state_id' => '2142','name' => 'Balozhi'),\n \t array('id' => '26003','state_id' => '2142','name' => 'Olaine'),\n \t array('id' => '26004','state_id' => '2142','name' => 'Salaspils'),\n \t array('id' => '26005','state_id' => '2142','name' => 'Saulkrasti'),\n \t array('id' => '26006','state_id' => '2142','name' => 'Sigulda'),\n \t array('id' => '26007','state_id' => '2142','name' => 'Vangazhi'),\n \t array('id' => '26008','state_id' => '2143','name' => 'Broceni'),\n \t array('id' => '26009','state_id' => '2143','name' => 'Saldus'),\n \t array('id' => '26010','state_id' => '2144','name' => 'Sabile'),\n \t array('id' => '26011','state_id' => '2144','name' => 'Stende'),\n \t array('id' => '26012','state_id' => '2144','name' => 'Talsi'),\n \t array('id' => '26013','state_id' => '2144','name' => 'Valdemarpils'),\n \t array('id' => '26014','state_id' => '2145','name' => 'Kandava'),\n \t array('id' => '26015','state_id' => '2145','name' => 'Tukums'),\n \t array('id' => '26016','state_id' => '2146','name' => 'Seda'),\n \t array('id' => '26017','state_id' => '2146','name' => 'Smiltene'),\n \t array('id' => '26018','state_id' => '2146','name' => 'Strenchi'),\n \t array('id' => '26019','state_id' => '2146','name' => 'Valka'),\n \t array('id' => '26020','state_id' => '2147','name' => 'Mazsalaca'),\n \t array('id' => '26021','state_id' => '2147','name' => 'Rujiena'),\n \t array('id' => '26022','state_id' => '2147','name' => 'Valmiera'),\n \t array('id' => '26023','state_id' => '2148','name' => 'Piltene'),\n \t array('id' => '26024','state_id' => '2149','name' => 'Piltene'),\n \t array('id' => '26025','state_id' => '2150','name' => 'Beirut'),\n \t array('id' => '26026','state_id' => '2150','name' => 'Jdeidet el Metn'),\n \t array('id' => '26027','state_id' => '2150','name' => 'Jnaah'),\n \t array('id' => '26028','state_id' => '2154','name' => 'Sidon'),\n \t array('id' => '26029','state_id' => '2155','name' => 'Ba\\'labakk'),\n \t array('id' => '26030','state_id' => '2155','name' => 'Jubb Jannin'),\n \t array('id' => '26031','state_id' => '2155','name' => 'Rashayya'),\n \t array('id' => '26032','state_id' => '2155','name' => 'Riyak'),\n \t array('id' => '26033','state_id' => '2155','name' => 'Zahlah'),\n \t array('id' => '26034','state_id' => '2155','name' => 'al-Hirmil'),\n \t array('id' => '26035','state_id' => '2156','name' => 'Jazzin'),\n \t array('id' => '26036','state_id' => '2156','name' => 'Juwayya'),\n \t array('id' => '26037','state_id' => '2156','name' => 'Sayda\\''),\n \t array('id' => '26038','state_id' => '2156','name' => 'Sur'),\n \t array('id' => '26039','state_id' => '2157','name' => 'Marj \\'Uyun'),\n \t array('id' => '26040','state_id' => '2157','name' => 'Nabatieh'),\n \t array('id' => '26041','state_id' => '2157','name' => 'an-Nabatiyat-at-Tahta'),\n \t array('id' => '26042','state_id' => '2158','name' => 'Tarabulus ash-Sham'),\n \t array('id' => '26043','state_id' => '2158','name' => 'al-Batrun'),\n \t array('id' => '26044','state_id' => '2159','name' => 'Teyateyaneng'),\n \t array('id' => '26045','state_id' => '2160','name' => 'Butha Buthe'),\n \t array('id' => '26046','state_id' => '2161','name' => 'Hlotse'),\n \t array('id' => '26047','state_id' => '2161','name' => 'Maputsoa'),\n \t array('id' => '26048','state_id' => '2162','name' => 'Mafeteng'),\n \t array('id' => '26049','state_id' => '2163','name' => 'Maseru'),\n \t array('id' => '26050','state_id' => '2165','name' => 'Mokhotlong'),\n \t array('id' => '26051','state_id' => '2167','name' => 'Quthing'),\n \t array('id' => '26052','state_id' => '2168','name' => 'Thaba-Tseka'),\n \t array('id' => '26053','state_id' => '2169','name' => 'Tubmanburg'),\n \t array('id' => '26054','state_id' => '2170','name' => 'Gbarnga'),\n \t array('id' => '26055','state_id' => '2174','name' => 'Voinjama'),\n \t array('id' => '26056','state_id' => '2175','name' => 'Harbel'),\n \t array('id' => '26057','state_id' => '2175','name' => 'Kakata'),\n \t array('id' => '26058','state_id' => '2177','name' => 'Bensonville'),\n \t array('id' => '26059','state_id' => '2177','name' => 'Monrovia'),\n \t array('id' => '26060','state_id' => '2178','name' => 'Ganta'),\n \t array('id' => '26061','state_id' => '2178','name' => 'Sanniquellie'),\n \t array('id' => '26062','state_id' => '2178','name' => 'Yekepa'),\n \t array('id' => '26063','state_id' => '2179','name' => 'Rivercess'),\n \t array('id' => '26064','state_id' => '2180','name' => 'Greenville'),\n \t array('id' => '26065','state_id' => '2181','name' => 'Ajdabiya'),\n \t array('id' => '26066','state_id' => '2181','name' => 'Awjilah'),\n \t array('id' => '26067','state_id' => '2181','name' => 'Marsa al-Burayqah'),\n \t array('id' => '26068','state_id' => '2181','name' => 'az-Zuwaytinah'),\n \t array('id' => '26069','state_id' => '2182','name' => 'Awbari'),\n \t array('id' => '26070','state_id' => '2182','name' => 'Ghat'),\n \t array('id' => '26071','state_id' => '2183','name' => 'Banghazi'),\n \t array('id' => '26072','state_id' => '2183','name' => 'Suluq'),\n \t array('id' => '26073','state_id' => '2183','name' => 'al-Quriyah'),\n \t array('id' => '26074','state_id' => '2184','name' => 'Darnah'),\n \t array('id' => '26075','state_id' => '2185','name' => 'Ghadamis'),\n \t array('id' => '26076','state_id' => '2185','name' => 'Nalut'),\n \t array('id' => '26077','state_id' => '2186','name' => 'Gharyan'),\n \t array('id' => '26078','state_id' => '2186','name' => 'Mizdah'),\n \t array('id' => '26079','state_id' => '2186','name' => 'al-Qaryah-ash-Sharqiyah'),\n \t array('id' => '26080','state_id' => '2187','name' => 'Misratah'),\n \t array('id' => '26081','state_id' => '2188','name' => 'Murzuq'),\n \t array('id' => '26082','state_id' => '2189','name' => 'Sabha'),\n \t array('id' => '26083','state_id' => '2190','name' => 'Bani Walid'),\n \t array('id' => '26084','state_id' => '2191','name' => 'Surt'),\n \t array('id' => '26085','state_id' => '2192','name' => 'Tarabulus'),\n \t array('id' => '26086','state_id' => '2192','name' => 'Tripoli'),\n \t array('id' => '26087','state_id' => '2193','name' => 'Tarhunah'),\n \t array('id' => '26088','state_id' => '2194','name' => 'Misrata'),\n \t array('id' => '26089','state_id' => '2195','name' => 'Bardiyah'),\n \t array('id' => '26090','state_id' => '2195','name' => 'Tubruq'),\n \t array('id' => '26091','state_id' => '2196','name' => 'Yafran'),\n \t array('id' => '26092','state_id' => '2197','name' => 'Zlitan'),\n \t array('id' => '26093','state_id' => '2198','name' => 'al-Aziziyah'),\n \t array('id' => '26094','state_id' => '2199','name' => 'al-Abyar'),\n \t array('id' => '26095','state_id' => '2199','name' => 'al-Marj'),\n \t array('id' => '26096','state_id' => '2201','name' => 'Waddan'),\n \t array('id' => '26097','state_id' => '2202','name' => 'al-Khums'),\n \t array('id' => '26098','state_id' => '2203','name' => 'al-Jawf'),\n \t array('id' => '26099','state_id' => '2205','name' => 'Birak'),\n \t array('id' => '26100','state_id' => '2206','name' => 'az-Zawiyah'),\n \t array('id' => '26101','state_id' => '2207','name' => 'Balzers'),\n \t array('id' => '26102','state_id' => '2208','name' => 'Eschen'),\n \t array('id' => '26103','state_id' => '2209','name' => 'Gamprin'),\n \t array('id' => '26104','state_id' => '2210','name' => 'Mauren'),\n \t array('id' => '26105','state_id' => '2211','name' => 'Planken'),\n \t array('id' => '26106','state_id' => '2212','name' => 'Ruggell'),\n \t array('id' => '26107','state_id' => '2213','name' => 'Schaan'),\n \t array('id' => '26108','state_id' => '2214','name' => 'Schellenberg'),\n \t array('id' => '26109','state_id' => '2215','name' => 'Triesen'),\n \t array('id' => '26110','state_id' => '2216','name' => 'Triesenberg'),\n \t array('id' => '26111','state_id' => '2217','name' => 'Vaduz'),\n \t array('id' => '26112','state_id' => '2218','name' => 'Alytus'),\n \t array('id' => '26113','state_id' => '2218','name' => 'Daugai'),\n \t array('id' => '26114','state_id' => '2218','name' => 'Druskininkai'),\n \t array('id' => '26115','state_id' => '2218','name' => 'Lazdijai'),\n \t array('id' => '26116','state_id' => '2218','name' => 'Simnas'),\n \t array('id' => '26117','state_id' => '2218','name' => 'Varena'),\n \t array('id' => '26118','state_id' => '2218','name' => 'Veisiejai'),\n \t array('id' => '26119','state_id' => '2219','name' => 'Anyksciai'),\n \t array('id' => '26120','state_id' => '2220','name' => 'Ariogala'),\n \t array('id' => '26121','state_id' => '2220','name' => 'Birshtonas'),\n \t array('id' => '26122','state_id' => '2220','name' => 'Dotnuva'),\n \t array('id' => '26123','state_id' => '2220','name' => 'Ezherelis'),\n \t array('id' => '26124','state_id' => '2220','name' => 'Garliava'),\n \t array('id' => '26125','state_id' => '2220','name' => 'Jieznas'),\n \t array('id' => '26126','state_id' => '2220','name' => 'Jonava'),\n \t array('id' => '26127','state_id' => '2220','name' => 'Kachergine'),\n \t array('id' => '26128','state_id' => '2220','name' => 'Kaishiadorys'),\n \t array('id' => '26129','state_id' => '2220','name' => 'Kaunas'),\n \t array('id' => '26130','state_id' => '2220','name' => 'Kedainiai'),\n \t array('id' => '26131','state_id' => '2220','name' => 'Kulautuva'),\n \t array('id' => '26132','state_id' => '2220','name' => 'Prienai'),\n \t array('id' => '26133','state_id' => '2220','name' => 'Raseiniai'),\n \t array('id' => '26134','state_id' => '2220','name' => 'Vilkija'),\n \t array('id' => '26135','state_id' => '2220','name' => 'Zhiezhmariai'),\n \t array('id' => '26136','state_id' => '2221','name' => 'Gargzhdai'),\n \t array('id' => '26137','state_id' => '2221','name' => 'Klaipeda'),\n \t array('id' => '26138','state_id' => '2221','name' => 'Kretinga'),\n \t array('id' => '26139','state_id' => '2221','name' => 'Neringa'),\n \t array('id' => '26140','state_id' => '2221','name' => 'Pagegiai'),\n \t array('id' => '26141','state_id' => '2221','name' => 'Palanga'),\n \t array('id' => '26142','state_id' => '2221','name' => 'Panemune'),\n \t array('id' => '26143','state_id' => '2221','name' => 'Priekule'),\n \t array('id' => '26144','state_id' => '2221','name' => 'Rusne'),\n \t array('id' => '26145','state_id' => '2221','name' => 'Salantai'),\n \t array('id' => '26146','state_id' => '2221','name' => 'Shilute'),\n \t array('id' => '26147','state_id' => '2221','name' => 'Skuodas'),\n \t array('id' => '26148','state_id' => '2221','name' => 'Zhemaichiu Naumiestis'),\n \t array('id' => '26149','state_id' => '2222','name' => 'Gelgaudishkis'),\n \t array('id' => '26150','state_id' => '2222','name' => 'Kalvarija'),\n \t array('id' => '26151','state_id' => '2222','name' => 'Kazlu Ruda'),\n \t array('id' => '26152','state_id' => '2222','name' => 'Kudirkos Naumiestis'),\n \t array('id' => '26153','state_id' => '2222','name' => 'Kybartai'),\n \t array('id' => '26154','state_id' => '2222','name' => 'Marijampole'),\n \t array('id' => '26155','state_id' => '2222','name' => 'Shakiai'),\n \t array('id' => '26156','state_id' => '2222','name' => 'Vilkavishkis'),\n \t array('id' => '26157','state_id' => '2222','name' => 'Virbalis'),\n \t array('id' => '26158','state_id' => '2223','name' => 'Birzhai'),\n \t array('id' => '26159','state_id' => '2223','name' => 'Jonishkelis'),\n \t array('id' => '26160','state_id' => '2223','name' => 'Juodupe'),\n \t array('id' => '26161','state_id' => '2223','name' => 'Kupishkis'),\n \t array('id' => '26162','state_id' => '2223','name' => 'Obeliai'),\n \t array('id' => '26163','state_id' => '2223','name' => 'Pandelys'),\n \t array('id' => '26164','state_id' => '2223','name' => 'Panevezhys'),\n \t array('id' => '26165','state_id' => '2223','name' => 'Panevezio'),\n \t array('id' => '26166','state_id' => '2223','name' => 'Pasvalys'),\n \t array('id' => '26167','state_id' => '2223','name' => 'Ramygala'),\n \t array('id' => '26168','state_id' => '2223','name' => 'Rokishkis'),\n \t array('id' => '26169','state_id' => '2223','name' => 'Subachius'),\n \t array('id' => '26170','state_id' => '2223','name' => 'Vabalninkas'),\n \t array('id' => '26171','state_id' => '2224','name' => 'Panevezys'),\n \t array('id' => '26172','state_id' => '2225','name' => 'Akmene'),\n \t array('id' => '26173','state_id' => '2225','name' => 'Jonishkis'),\n \t array('id' => '26174','state_id' => '2225','name' => 'Kelme'),\n \t array('id' => '26175','state_id' => '2225','name' => 'Kurshenai'),\n \t array('id' => '26176','state_id' => '2225','name' => 'Linkuva'),\n \t array('id' => '26177','state_id' => '2225','name' => 'Naujoji Akmene'),\n \t array('id' => '26178','state_id' => '2225','name' => 'Pakruojis'),\n \t array('id' => '26179','state_id' => '2225','name' => 'Radvilishkis'),\n \t array('id' => '26180','state_id' => '2225','name' => 'Sheduva'),\n \t array('id' => '26181','state_id' => '2225','name' => 'Shiauliai'),\n \t array('id' => '26182','state_id' => '2225','name' => 'Siauliai'),\n \t array('id' => '26183','state_id' => '2225','name' => 'Tyruliai'),\n \t array('id' => '26184','state_id' => '2225','name' => 'Tytuvenai'),\n \t array('id' => '26185','state_id' => '2225','name' => 'Uzhventis'),\n \t array('id' => '26186','state_id' => '2225','name' => 'Venta'),\n \t array('id' => '26187','state_id' => '2225','name' => 'Viekshniai'),\n \t array('id' => '26188','state_id' => '2225','name' => 'Zhagare'),\n \t array('id' => '26189','state_id' => '2226','name' => 'Jurbarkas'),\n \t array('id' => '26190','state_id' => '2226','name' => 'Shilale'),\n \t array('id' => '26191','state_id' => '2226','name' => 'Skaudvile'),\n \t array('id' => '26192','state_id' => '2226','name' => 'Smalininkai'),\n \t array('id' => '26193','state_id' => '2226','name' => 'Taurage'),\n \t array('id' => '26194','state_id' => '2227','name' => 'Guglingen'),\n \t array('id' => '26195','state_id' => '2227','name' => 'Mazheikiai'),\n \t array('id' => '26196','state_id' => '2227','name' => 'Plunge'),\n \t array('id' => '26197','state_id' => '2227','name' => 'Rietavas'),\n \t array('id' => '26198','state_id' => '2227','name' => 'Seda'),\n \t array('id' => '26199','state_id' => '2227','name' => 'Telshiai'),\n \t array('id' => '26200','state_id' => '2227','name' => 'Varniai'),\n \t array('id' => '26201','state_id' => '2228','name' => 'Mazeikiai'),\n \t array('id' => '26202','state_id' => '2229','name' => 'Anykshchiai'),\n \t array('id' => '26203','state_id' => '2229','name' => 'Dukshtas'),\n \t array('id' => '26204','state_id' => '2229','name' => 'Dusetos'),\n \t array('id' => '26205','state_id' => '2229','name' => 'Ignalina'),\n \t array('id' => '26206','state_id' => '2229','name' => 'Kavarskas'),\n \t array('id' => '26207','state_id' => '2229','name' => 'Moletai'),\n \t array('id' => '26208','state_id' => '2229','name' => 'Troshkunai'),\n \t array('id' => '26209','state_id' => '2229','name' => 'Turmantas'),\n \t array('id' => '26210','state_id' => '2229','name' => 'Utena'),\n \t array('id' => '26211','state_id' => '2229','name' => 'Visaginas'),\n \t array('id' => '26212','state_id' => '2229','name' => 'Zarasai'),\n \t array('id' => '26213','state_id' => '2230','name' => 'Baltoji Voke'),\n \t array('id' => '26214','state_id' => '2230','name' => 'Eishishkes'),\n \t array('id' => '26215','state_id' => '2230','name' => 'Elektrenai'),\n \t array('id' => '26216','state_id' => '2230','name' => 'Grigishkes'),\n \t array('id' => '26217','state_id' => '2230','name' => 'Lentvaris'),\n \t array('id' => '26218','state_id' => '2230','name' => 'Nemenchine'),\n \t array('id' => '26219','state_id' => '2230','name' => 'Pabrade'),\n \t array('id' => '26220','state_id' => '2230','name' => 'Rudishkes'),\n \t array('id' => '26221','state_id' => '2230','name' => 'Shalchininkai'),\n \t array('id' => '26222','state_id' => '2230','name' => 'Shirvintos'),\n \t array('id' => '26223','state_id' => '2230','name' => 'Shvenchioneliai'),\n \t array('id' => '26224','state_id' => '2230','name' => 'Shvenchionys'),\n \t array('id' => '26225','state_id' => '2230','name' => 'Trakai'),\n \t array('id' => '26226','state_id' => '2230','name' => 'Ukmerge'),\n \t array('id' => '26227','state_id' => '2230','name' => 'Vievis'),\n \t array('id' => '26228','state_id' => '2230','name' => 'Vilnius'),\n \t array('id' => '26229','state_id' => '2231','name' => 'Bascharage'),\n \t array('id' => '26230','state_id' => '2231','name' => 'Bettange-sur-Mess'),\n \t array('id' => '26231','state_id' => '2231','name' => 'Bridel'),\n \t array('id' => '26232','state_id' => '2231','name' => 'Capellen'),\n \t array('id' => '26233','state_id' => '2231','name' => 'Clemency'),\n \t array('id' => '26234','state_id' => '2231','name' => 'Dahlem'),\n \t array('id' => '26235','state_id' => '2231','name' => 'Dippach'),\n \t array('id' => '26236','state_id' => '2231','name' => 'Dondelange'),\n \t array('id' => '26237','state_id' => '2231','name' => 'Eischen'),\n \t array('id' => '26238','state_id' => '2231','name' => 'Fingig'),\n \t array('id' => '26239','state_id' => '2231','name' => 'Garnich'),\n \t array('id' => '26240','state_id' => '2231','name' => 'Goeblange'),\n \t array('id' => '26241','state_id' => '2231','name' => 'Goetzingen'),\n \t array('id' => '26242','state_id' => '2231','name' => 'Grass'),\n \t array('id' => '26243','state_id' => '2231','name' => 'Greisch'),\n \t array('id' => '26244','state_id' => '2231','name' => 'Hagen'),\n \t array('id' => '26245','state_id' => '2231','name' => 'Hautcharage'),\n \t array('id' => '26246','state_id' => '2231','name' => 'Hivange'),\n \t array('id' => '26247','state_id' => '2231','name' => 'Hobscheid'),\n \t array('id' => '26248','state_id' => '2231','name' => 'Holzem'),\n \t array('id' => '26249','state_id' => '2231','name' => 'Kahler'),\n \t array('id' => '26250','state_id' => '2231','name' => 'Kehlen'),\n \t array('id' => '26251','state_id' => '2231','name' => 'Keispelt'),\n \t array('id' => '26252','state_id' => '2231','name' => 'Kleinbettingen'),\n \t array('id' => '26253','state_id' => '2231','name' => 'Koerich'),\n \t array('id' => '26254','state_id' => '2231','name' => 'Kospstal'),\n \t array('id' => '26255','state_id' => '2231','name' => 'Linger'),\n \t array('id' => '26256','state_id' => '2231','name' => 'Mamer'),\n \t array('id' => '26257','state_id' => '2231','name' => 'Meispelt'),\n \t array('id' => '26258','state_id' => '2231','name' => 'Nospelt'),\n \t array('id' => '26259','state_id' => '2231','name' => 'Olm'),\n \t array('id' => '26260','state_id' => '2231','name' => 'Roodt'),\n \t array('id' => '26261','state_id' => '2231','name' => 'Schouweiler'),\n \t array('id' => '26262','state_id' => '2231','name' => 'Septfontaines'),\n \t array('id' => '26263','state_id' => '2231','name' => 'Sprinkange'),\n \t array('id' => '26264','state_id' => '2231','name' => 'Steinfort'),\n \t array('id' => '26265','state_id' => '2232','name' => 'Allerborn'),\n \t array('id' => '26266','state_id' => '2232','name' => 'Asselborn'),\n \t array('id' => '26267','state_id' => '2232','name' => 'Basbellain'),\n \t array('id' => '26268','state_id' => '2232','name' => 'Beiler'),\n \t array('id' => '26269','state_id' => '2232','name' => 'Binsfeld'),\n \t array('id' => '26270','state_id' => '2232','name' => 'Biwisch'),\n \t array('id' => '26271','state_id' => '2232','name' => 'Bockholtz'),\n \t array('id' => '26272','state_id' => '2232','name' => 'Boevange'),\n \t array('id' => '26273','state_id' => '2232','name' => 'Boxhorn'),\n \t array('id' => '26274','state_id' => '2232','name' => 'Brachtenbach'),\n \t array('id' => '26275','state_id' => '2232','name' => 'Breidfeld'),\n \t array('id' => '26276','state_id' => '2232','name' => 'Cinqfontaines'),\n \t array('id' => '26277','state_id' => '2232','name' => 'Clervaux'),\n \t array('id' => '26278','state_id' => '2232','name' => 'Consthum'),\n \t array('id' => '26279','state_id' => '2232','name' => 'Crendal'),\n \t array('id' => '26280','state_id' => '2232','name' => 'Deiffelt-Lentzweiler'),\n \t array('id' => '26281','state_id' => '2232','name' => 'Derenbach'),\n \t array('id' => '26282','state_id' => '2232','name' => 'Doennange'),\n \t array('id' => '26283','state_id' => '2232','name' => 'Dorscheid'),\n \t array('id' => '26284','state_id' => '2232','name' => 'Drauffelt'),\n \t array('id' => '26285','state_id' => '2232','name' => 'Drinklange'),\n \t array('id' => '26286','state_id' => '2232','name' => 'Eisenbach'),\n \t array('id' => '26287','state_id' => '2232','name' => 'Eselborn'),\n \t array('id' => '26288','state_id' => '2232','name' => 'Fischbach'),\n \t array('id' => '26289','state_id' => '2232','name' => 'Goedange'),\n \t array('id' => '26290','state_id' => '2232','name' => 'Grindhausen'),\n \t array('id' => '26291','state_id' => '2232','name' => 'Hachiville'),\n \t array('id' => '26292','state_id' => '2232','name' => 'Hamiville'),\n \t array('id' => '26293','state_id' => '2232','name' => 'Hautbellain'),\n \t array('id' => '26294','state_id' => '2232','name' => 'Heinerscheid'),\n \t array('id' => '26295','state_id' => '2232','name' => 'Hoffelt'),\n \t array('id' => '26296','state_id' => '2232','name' => 'Holler'),\n \t array('id' => '26297','state_id' => '2232','name' => 'Holzthum'),\n \t array('id' => '26298','state_id' => '2232','name' => 'Hosingen'),\n \t array('id' => '26299','state_id' => '2232','name' => 'Huldange'),\n \t array('id' => '26300','state_id' => '2232','name' => 'Hupperdange'),\n \t array('id' => '26301','state_id' => '2232','name' => 'Kalborn'),\n \t array('id' => '26302','state_id' => '2232','name' => 'Leithum'),\n \t array('id' => '26303','state_id' => '2232','name' => 'Lieler'),\n \t array('id' => '26304','state_id' => '2232','name' => 'Lullange'),\n \t array('id' => '26305','state_id' => '2232','name' => 'Marnach'),\n \t array('id' => '26306','state_id' => '2232','name' => 'Maulusmuehle'),\n \t array('id' => '26307','state_id' => '2232','name' => 'Munshausen'),\n \t array('id' => '26308','state_id' => '2232','name' => 'Neidhausen'),\n \t array('id' => '26309','state_id' => '2232','name' => 'Niederwampach-Schimpach'),\n \t array('id' => '26310','state_id' => '2232','name' => 'Oberwampach'),\n \t array('id' => '26311','state_id' => '2232','name' => 'Reuler'),\n \t array('id' => '26312','state_id' => '2232','name' => 'Roder'),\n \t array('id' => '26313','state_id' => '2232','name' => 'Rodershausen'),\n \t array('id' => '26314','state_id' => '2232','name' => 'Rumlange-Lentzweiler'),\n \t array('id' => '26315','state_id' => '2232','name' => 'Sassel'),\n \t array('id' => '26316','state_id' => '2232','name' => 'Siebenaler'),\n \t array('id' => '26317','state_id' => '2232','name' => 'Stockem'),\n \t array('id' => '26318','state_id' => '2232','name' => 'Troine-Hinterhasselt'),\n \t array('id' => '26319','state_id' => '2232','name' => 'Troine-Route'),\n \t array('id' => '26320','state_id' => '2232','name' => 'Troisvierges'),\n \t array('id' => '26321','state_id' => '2232','name' => 'Urspelt'),\n \t array('id' => '26322','state_id' => '2232','name' => 'Wahlhausen'),\n \t array('id' => '26323','state_id' => '2232','name' => 'Weicherdange'),\n \t array('id' => '26324','state_id' => '2232','name' => 'Weiler'),\n \t array('id' => '26325','state_id' => '2232','name' => 'Weiswampach'),\n \t array('id' => '26326','state_id' => '2232','name' => 'Wilwerdange'),\n \t array('id' => '26327','state_id' => '2232','name' => 'Wincrange'),\n \t array('id' => '26328','state_id' => '2233','name' => 'Bastendorf'),\n \t array('id' => '26329','state_id' => '2233','name' => 'Bettendorf'),\n \t array('id' => '26330','state_id' => '2233','name' => 'Bigelbach'),\n \t array('id' => '26331','state_id' => '2233','name' => 'Bourscheid'),\n \t array('id' => '26332','state_id' => '2233','name' => 'Brandenbourg'),\n \t array('id' => '26333','state_id' => '2233','name' => 'Burden'),\n \t array('id' => '26334','state_id' => '2233','name' => 'Diekirch'),\n \t array('id' => '26335','state_id' => '2233','name' => 'Eppeldorf'),\n \t array('id' => '26336','state_id' => '2233','name' => 'Ermsdorf'),\n \t array('id' => '26337','state_id' => '2233','name' => 'Erpeldange'),\n \t array('id' => '26338','state_id' => '2233','name' => 'Ettelbruck'),\n \t array('id' => '26339','state_id' => '2233','name' => 'Folkendange'),\n \t array('id' => '26340','state_id' => '2233','name' => 'Gilsdorf'),\n \t array('id' => '26341','state_id' => '2233','name' => 'Hoesdorf'),\n \t array('id' => '26342','state_id' => '2233','name' => 'Hoscheid'),\n \t array('id' => '26343','state_id' => '2233','name' => 'Hoscheid-Dickt'),\n \t array('id' => '26344','state_id' => '2233','name' => 'Ingeldorf'),\n \t array('id' => '26345','state_id' => '2233','name' => 'Kehmen-Scheidel'),\n \t array('id' => '26346','state_id' => '2233','name' => 'Landscheid'),\n \t array('id' => '26347','state_id' => '2233','name' => 'Lipperscheid'),\n \t array('id' => '26348','state_id' => '2233','name' => 'Medernach'),\n \t array('id' => '26349','state_id' => '2233','name' => 'Mertzig'),\n \t array('id' => '26350','state_id' => '2233','name' => 'Michelau'),\n \t array('id' => '26351','state_id' => '2233','name' => 'Moestroff'),\n \t array('id' => '26352','state_id' => '2233','name' => 'Niederfeulen'),\n \t array('id' => '26353','state_id' => '2233','name' => 'Oberfeulen'),\n \t array('id' => '26354','state_id' => '2233','name' => 'Reisdorf'),\n \t array('id' => '26355','state_id' => '2233','name' => 'Savelborn + Fermes'),\n \t array('id' => '26356','state_id' => '2233','name' => 'Schieren'),\n \t array('id' => '26357','state_id' => '2233','name' => 'Schlindermanderscheid'),\n \t array('id' => '26358','state_id' => '2233','name' => 'Stegen'),\n \t array('id' => '26359','state_id' => '2233','name' => 'Tandel'),\n \t array('id' => '26360','state_id' => '2233','name' => 'Wallendorf'),\n \t array('id' => '26361','state_id' => '2233','name' => 'Warken'),\n \t array('id' => '26362','state_id' => '2233','name' => 'Welscheid'),\n \t array('id' => '26363','state_id' => '2234','name' => 'Altrier'),\n \t array('id' => '26364','state_id' => '2234','name' => 'Beaufort'),\n \t array('id' => '26365','state_id' => '2234','name' => 'Bech'),\n \t array('id' => '26366','state_id' => '2234','name' => 'Berdorf'),\n \t array('id' => '26367','state_id' => '2234','name' => 'Bollendorf-Pont'),\n \t array('id' => '26368','state_id' => '2234','name' => 'Born'),\n \t array('id' => '26369','state_id' => '2234','name' => 'Boursdorf'),\n \t array('id' => '26370','state_id' => '2234','name' => 'Breidweiler'),\n \t array('id' => '26371','state_id' => '2234','name' => 'Christnach'),\n \t array('id' => '26372','state_id' => '2234','name' => 'Consdorf'),\n \t array('id' => '26373','state_id' => '2234','name' => 'Dickweiler'),\n \t array('id' => '26374','state_id' => '2234','name' => 'Dillingen'),\n \t array('id' => '26375','state_id' => '2234','name' => 'Echternach'),\n \t array('id' => '26376','state_id' => '2234','name' => 'Girst'),\n \t array('id' => '26377','state_id' => '2234','name' => 'Girsterklaus'),\n \t array('id' => '26378','state_id' => '2234','name' => 'Givenich'),\n \t array('id' => '26379','state_id' => '2234','name' => 'Grundhof'),\n \t array('id' => '26380','state_id' => '2234','name' => 'Haller'),\n \t array('id' => '26381','state_id' => '2234','name' => 'Hemstal'),\n \t array('id' => '26382','state_id' => '2234','name' => 'Herborn'),\n \t array('id' => '26383','state_id' => '2234','name' => 'Hersberg-Kobenbour-Graulinster'),\n \t array('id' => '26384','state_id' => '2234','name' => 'Hinkel'),\n \t array('id' => '26385','state_id' => '2234','name' => 'Moersdorf'),\n \t array('id' => '26386','state_id' => '2234','name' => 'Mompach'),\n \t array('id' => '26387','state_id' => '2234','name' => 'Mullerthal'),\n \t array('id' => '26388','state_id' => '2234','name' => 'Osweiler'),\n \t array('id' => '26389','state_id' => '2234','name' => 'Rippig'),\n \t array('id' => '26390','state_id' => '2234','name' => 'Rosport'),\n \t array('id' => '26391','state_id' => '2234','name' => 'Scheidgen'),\n \t array('id' => '26392','state_id' => '2234','name' => 'Steinheim'),\n \t array('id' => '26393','state_id' => '2234','name' => 'Waldbillig'),\n \t array('id' => '26394','state_id' => '2234','name' => 'Weilerbach'),\n \t array('id' => '26395','state_id' => '2234','name' => 'Zittig'),\n \t array('id' => '26396','state_id' => '2235','name' => 'Abweiler'),\n \t array('id' => '26397','state_id' => '2235','name' => 'Aspelt'),\n \t array('id' => '26398','state_id' => '2235','name' => 'Belvaux'),\n \t array('id' => '26399','state_id' => '2235','name' => 'Berchem'),\n \t array('id' => '26400','state_id' => '2235','name' => 'Bergem'),\n \t array('id' => '26401','state_id' => '2235','name' => 'Bettembourg'),\n \t array('id' => '26402','state_id' => '2235','name' => 'Bivange'),\n \t array('id' => '26403','state_id' => '2235','name' => 'Crauthem'),\n \t array('id' => '26404','state_id' => '2235','name' => 'Differdange'),\n \t array('id' => '26405','state_id' => '2235','name' => 'Dudelange'),\n \t array('id' => '26406','state_id' => '2235','name' => 'Ehlange'),\n \t array('id' => '26407','state_id' => '2235','name' => 'Ehlerange'),\n \t array('id' => '26408','state_id' => '2235','name' => 'Esch-Alzette'),\n \t array('id' => '26409','state_id' => '2235','name' => 'Fennange'),\n \t array('id' => '26410','state_id' => '2235','name' => 'Foetz'),\n \t array('id' => '26411','state_id' => '2235','name' => 'Fousbann'),\n \t array('id' => '26412','state_id' => '2235','name' => 'Frisange'),\n \t array('id' => '26413','state_id' => '2235','name' => 'Hellange'),\n \t array('id' => '26414','state_id' => '2235','name' => 'Huncherange'),\n \t array('id' => '26415','state_id' => '2235','name' => 'Kayl'),\n \t array('id' => '26416','state_id' => '2235','name' => 'Kockelscheuer'),\n \t array('id' => '26417','state_id' => '2235','name' => 'Lamadelaine'),\n \t array('id' => '26418','state_id' => '2235','name' => 'Lasauvage'),\n \t array('id' => '26419','state_id' => '2235','name' => 'Leudelange'),\n \t array('id' => '26420','state_id' => '2235','name' => 'Limpach'),\n \t array('id' => '26421','state_id' => '2235','name' => 'Livange'),\n \t array('id' => '26422','state_id' => '2235','name' => 'Mondercange'),\n \t array('id' => '26423','state_id' => '2235','name' => 'Niedercorn'),\n \t array('id' => '26424','state_id' => '2235','name' => 'Noertzange'),\n \t array('id' => '26425','state_id' => '2235','name' => 'Obercorn'),\n \t array('id' => '26426','state_id' => '2235','name' => 'Peppange'),\n \t array('id' => '26427','state_id' => '2235','name' => 'Petange'),\n \t array('id' => '26428','state_id' => '2235','name' => 'Pissange'),\n \t array('id' => '26429','state_id' => '2235','name' => 'Pontpierre'),\n \t array('id' => '26430','state_id' => '2235','name' => 'Reckange-sur-Mess'),\n \t array('id' => '26431','state_id' => '2235','name' => 'Rodange'),\n \t array('id' => '26432','state_id' => '2235','name' => 'Roedgen'),\n \t array('id' => '26433','state_id' => '2235','name' => 'Roeser'),\n \t array('id' => '26434','state_id' => '2235','name' => 'Rumelange'),\n \t array('id' => '26435','state_id' => '2235','name' => 'Sanem'),\n \t array('id' => '26436','state_id' => '2235','name' => 'Schifflange'),\n \t array('id' => '26437','state_id' => '2235','name' => 'Soleuvre'),\n \t array('id' => '26438','state_id' => '2235','name' => 'Tetange'),\n \t array('id' => '26439','state_id' => '2235','name' => 'Wickrange'),\n \t array('id' => '26440','state_id' => '2236','name' => 'Ahn-Dreiborn'),\n \t array('id' => '26441','state_id' => '2236','name' => 'Altlinster'),\n \t array('id' => '26442','state_id' => '2236','name' => 'Beidweiler'),\n \t array('id' => '26443','state_id' => '2236','name' => 'Berbourg'),\n \t array('id' => '26444','state_id' => '2236','name' => 'Berg'),\n \t array('id' => '26445','state_id' => '2236','name' => 'Betzdorf'),\n \t array('id' => '26446','state_id' => '2236','name' => 'Beyren'),\n \t array('id' => '26447','state_id' => '2236','name' => 'Biwer'),\n \t array('id' => '26448','state_id' => '2236','name' => 'Biwerbach'),\n \t array('id' => '26449','state_id' => '2236','name' => 'Boudler'),\n \t array('id' => '26450','state_id' => '2236','name' => 'Boudlerbach'),\n \t array('id' => '26451','state_id' => '2236','name' => 'Bourglinster'),\n \t array('id' => '26452','state_id' => '2236','name' => 'Breinert'),\n \t array('id' => '26453','state_id' => '2236','name' => 'Brouch'),\n \t array('id' => '26454','state_id' => '2236','name' => 'Ehnen'),\n \t array('id' => '26455','state_id' => '2236','name' => 'Eisenborn'),\n \t array('id' => '26456','state_id' => '2236','name' => 'Eschweiler'),\n \t array('id' => '26457','state_id' => '2236','name' => 'Flaxweiler'),\n \t array('id' => '26458','state_id' => '2236','name' => 'Godbrange'),\n \t array('id' => '26459','state_id' => '2236','name' => 'Gonderange'),\n \t array('id' => '26460','state_id' => '2236','name' => 'Gostingen'),\n \t array('id' => '26461','state_id' => '2236','name' => 'Graulinster-Blumenthal'),\n \t array('id' => '26462','state_id' => '2236','name' => 'Grevenmacher'),\n \t array('id' => '26463','state_id' => '2236','name' => 'Hagelsdorf'),\n \t array('id' => '26464','state_id' => '2236','name' => 'Imbringen'),\n \t array('id' => '26465','state_id' => '2236','name' => 'Junglinster'),\n \t array('id' => '26466','state_id' => '2236','name' => 'Lellig'),\n \t array('id' => '26467','state_id' => '2236','name' => 'Machtum'),\n \t array('id' => '26468','state_id' => '2236','name' => 'Manternach'),\n \t array('id' => '26469','state_id' => '2236','name' => 'Mensdorf'),\n \t array('id' => '26470','state_id' => '2236','name' => 'Mertert'),\n \t array('id' => '26471','state_id' => '2236','name' => 'Munschecker'),\n \t array('id' => '26472','state_id' => '2236','name' => 'Niederdonven'),\n \t array('id' => '26473','state_id' => '2236','name' => 'Oberdonven'),\n \t array('id' => '26474','state_id' => '2236','name' => 'Olingen'),\n \t array('id' => '26475','state_id' => '2236','name' => 'Rodenbourg'),\n \t array('id' => '26476','state_id' => '2236','name' => 'Roodt-sur-Syr'),\n \t array('id' => '26477','state_id' => '2236','name' => 'Wasserbillig'),\n \t array('id' => '26478','state_id' => '2236','name' => 'Wecker'),\n \t array('id' => '26479','state_id' => '2236','name' => 'Wecker-Gare'),\n \t array('id' => '26480','state_id' => '2236','name' => 'Weydig'),\n \t array('id' => '26481','state_id' => '2236','name' => 'Wormeldange'),\n \t array('id' => '26482','state_id' => '2236','name' => 'Wormeldange-Haut'),\n \t array('id' => '26483','state_id' => '2237','name' => 'Alzingen'),\n \t array('id' => '26484','state_id' => '2237','name' => 'Bereldange'),\n \t array('id' => '26485','state_id' => '2237','name' => 'Bertrange'),\n \t array('id' => '26486','state_id' => '2237','name' => 'Contern'),\n \t array('id' => '26487','state_id' => '2237','name' => 'Ernster'),\n \t array('id' => '26488','state_id' => '2237','name' => 'Fentange'),\n \t array('id' => '26489','state_id' => '2237','name' => 'Findel'),\n \t array('id' => '26490','state_id' => '2237','name' => 'Hassel'),\n \t array('id' => '26491','state_id' => '2237','name' => 'Heisdorf'),\n \t array('id' => '26492','state_id' => '2237','name' => 'Helmsange'),\n \t array('id' => '26493','state_id' => '2237','name' => 'Hesperange'),\n \t array('id' => '26494','state_id' => '2237','name' => 'Hostert'),\n \t array('id' => '26495','state_id' => '2237','name' => 'Howald'),\n \t array('id' => '26496','state_id' => '2237','name' => 'Itzig'),\n \t array('id' => '26497','state_id' => '2237','name' => 'Luxembourg'),\n \t array('id' => '26498','state_id' => '2237','name' => 'Medingen'),\n \t array('id' => '26499','state_id' => '2237','name' => 'Moutfort'),\n \t array('id' => '26500','state_id' => '2237','name' => 'Mullendorf'),\n \t array('id' => '26501','state_id' => '2237','name' => 'Munsbach'),\n \t array('id' => '26502','state_id' => '2237','name' => 'Neuhaeusgen'),\n \t array('id' => '26503','state_id' => '2237','name' => 'Niederanven'),\n \t array('id' => '26504','state_id' => '2237','name' => 'Oberanven'),\n \t array('id' => '26505','state_id' => '2237','name' => 'Oetrange'),\n \t array('id' => '26506','state_id' => '2237','name' => 'Rameldange'),\n \t array('id' => '26507','state_id' => '2237','name' => 'Sandweiler'),\n \t array('id' => '26508','state_id' => '2237','name' => 'Schrassig'),\n \t array('id' => '26509','state_id' => '2237','name' => 'Schuttrange'),\n \t array('id' => '26510','state_id' => '2237','name' => 'Senningen'),\n \t array('id' => '26511','state_id' => '2237','name' => 'Senningerberg'),\n \t array('id' => '26512','state_id' => '2237','name' => 'Steinsel'),\n \t array('id' => '26513','state_id' => '2237','name' => 'Strassen'),\n \t array('id' => '26514','state_id' => '2237','name' => 'Syren'),\n \t array('id' => '26515','state_id' => '2237','name' => 'Uebersyren'),\n \t array('id' => '26516','state_id' => '2237','name' => 'Waldhof'),\n \t array('id' => '26517','state_id' => '2237','name' => 'Walferdange'),\n \t array('id' => '26518','state_id' => '2237','name' => 'Weiler-la-Tour'),\n \t array('id' => '26519','state_id' => '2238','name' => 'Angelsberg'),\n \t array('id' => '26520','state_id' => '2238','name' => 'Ansembourg'),\n \t array('id' => '26521','state_id' => '2238','name' => 'Beringen'),\n \t array('id' => '26522','state_id' => '2238','name' => 'Bissen'),\n \t array('id' => '26523','state_id' => '2238','name' => 'Blaschette'),\n \t array('id' => '26524','state_id' => '2238','name' => 'Boevange-Attert'),\n \t array('id' => '26525','state_id' => '2238','name' => 'Bofferdange'),\n \t array('id' => '26526','state_id' => '2238','name' => 'Bour'),\n \t array('id' => '26527','state_id' => '2238','name' => 'Brouch'),\n \t array('id' => '26528','state_id' => '2238','name' => 'Buschdorf'),\n \t array('id' => '26529','state_id' => '2238','name' => 'Colmar-Berg'),\n \t array('id' => '26530','state_id' => '2238','name' => 'Cruchten'),\n \t array('id' => '26531','state_id' => '2238','name' => 'Ernzen'),\n \t array('id' => '26532','state_id' => '2238','name' => 'Essingen'),\n \t array('id' => '26533','state_id' => '2238','name' => 'Fischbach'),\n \t array('id' => '26534','state_id' => '2238','name' => 'Glabach'),\n \t array('id' => '26535','state_id' => '2238','name' => 'Gosseldange'),\n \t array('id' => '26536','state_id' => '2238','name' => 'Grevenknapp-Bill-Finsterthal'),\n \t array('id' => '26537','state_id' => '2238','name' => 'Heffingen'),\n \t array('id' => '26538','state_id' => '2238','name' => 'Helmdange'),\n \t array('id' => '26539','state_id' => '2238','name' => 'Hollenfels'),\n \t array('id' => '26540','state_id' => '2238','name' => 'Hunsdorf'),\n \t array('id' => '26541','state_id' => '2238','name' => 'Larochette'),\n \t array('id' => '26542','state_id' => '2238','name' => 'Lintgen'),\n \t array('id' => '26543','state_id' => '2238','name' => 'Lorentzweiler'),\n \t array('id' => '26544','state_id' => '2238','name' => 'Marienthal'),\n \t array('id' => '26545','state_id' => '2238','name' => 'Mersch'),\n \t array('id' => '26546','state_id' => '2238','name' => 'Moesdorf'),\n \t array('id' => '26547','state_id' => '2238','name' => 'Nommern'),\n \t array('id' => '26548','state_id' => '2238','name' => 'Pettingen'),\n \t array('id' => '26549','state_id' => '2238','name' => 'Prettange'),\n \t array('id' => '26550','state_id' => '2238','name' => 'Reckange'),\n \t array('id' => '26551','state_id' => '2238','name' => 'Reuland'),\n \t array('id' => '26552','state_id' => '2238','name' => 'Rollingen'),\n \t array('id' => '26553','state_id' => '2238','name' => 'Scherbach'),\n \t array('id' => '26554','state_id' => '2238','name' => 'Scherfenhof'),\n \t array('id' => '26555','state_id' => '2238','name' => 'Schiltzberg'),\n \t array('id' => '26556','state_id' => '2238','name' => 'Schoenfels'),\n \t array('id' => '26557','state_id' => '2238','name' => 'Schoos'),\n \t array('id' => '26558','state_id' => '2238','name' => 'Schrondweiler'),\n \t array('id' => '26559','state_id' => '2238','name' => 'Tuntange'),\n \t array('id' => '26560','state_id' => '2239','name' => 'Arsdorf'),\n \t array('id' => '26561','state_id' => '2239','name' => 'Beckerich'),\n \t array('id' => '26562','state_id' => '2239','name' => 'Bettborn'),\n \t array('id' => '26563','state_id' => '2239','name' => 'Bigonville'),\n \t array('id' => '26564','state_id' => '2239','name' => 'Bilsdorf'),\n \t array('id' => '26565','state_id' => '2239','name' => 'Brattert-Rindschleiden'),\n \t array('id' => '26566','state_id' => '2239','name' => 'Buschrodt'),\n \t array('id' => '26567','state_id' => '2239','name' => 'Calmus'),\n \t array('id' => '26568','state_id' => '2239','name' => 'Colpach-Bas'),\n \t array('id' => '26569','state_id' => '2239','name' => 'Colpach-Haut'),\n \t array('id' => '26570','state_id' => '2239','name' => 'Dellen-Lehrhof-Grevels'),\n \t array('id' => '26571','state_id' => '2239','name' => 'Ehner'),\n \t array('id' => '26572','state_id' => '2239','name' => 'Ell'),\n \t array('id' => '26573','state_id' => '2239','name' => 'Eltz'),\n \t array('id' => '26574','state_id' => '2239','name' => 'Elvange'),\n \t array('id' => '26575','state_id' => '2239','name' => 'Eschette'),\n \t array('id' => '26576','state_id' => '2239','name' => 'Everlange'),\n \t array('id' => '26577','state_id' => '2239','name' => 'Folschette'),\n \t array('id' => '26578','state_id' => '2239','name' => 'Grevels'),\n \t array('id' => '26579','state_id' => '2239','name' => 'Grosbous'),\n \t array('id' => '26580','state_id' => '2239','name' => 'Haut-Martelange'),\n \t array('id' => '26581','state_id' => '2239','name' => 'Heispelt'),\n \t array('id' => '26582','state_id' => '2239','name' => 'Holtz'),\n \t array('id' => '26583','state_id' => '2239','name' => 'Hostert'),\n \t array('id' => '26584','state_id' => '2239','name' => 'Hovelange'),\n \t array('id' => '26585','state_id' => '2239','name' => 'Huttange'),\n \t array('id' => '26586','state_id' => '2239','name' => 'Kapweiler'),\n \t array('id' => '26587','state_id' => '2239','name' => 'Koetschette'),\n \t array('id' => '26588','state_id' => '2239','name' => 'Kuborn'),\n \t array('id' => '26589','state_id' => '2239','name' => 'Lannen'),\n \t array('id' => '26590','state_id' => '2239','name' => 'Levelange'),\n \t array('id' => '26591','state_id' => '2239','name' => 'Michelbouch'),\n \t array('id' => '26592','state_id' => '2239','name' => 'Nagem'),\n \t array('id' => '26593','state_id' => '2239','name' => 'Niederpallen'),\n \t array('id' => '26594','state_id' => '2239','name' => 'Noerdange'),\n \t array('id' => '26595','state_id' => '2239','name' => 'Oberpallen'),\n \t array('id' => '26596','state_id' => '2239','name' => 'Ospern'),\n \t array('id' => '26597','state_id' => '2239','name' => 'Perle'),\n \t array('id' => '26598','state_id' => '2239','name' => 'Petit-Nobressart'),\n \t array('id' => '26599','state_id' => '2239','name' => 'Platen'),\n \t array('id' => '26600','state_id' => '2239','name' => 'Pratz'),\n \t array('id' => '26601','state_id' => '2239','name' => 'Rambrouch'),\n \t array('id' => '26602','state_id' => '2239','name' => 'Redange'),\n \t array('id' => '26603','state_id' => '2239','name' => 'Reichlange'),\n \t array('id' => '26604','state_id' => '2239','name' => 'Reimberg'),\n \t array('id' => '26605','state_id' => '2239','name' => 'Rippweiler'),\n \t array('id' => '26606','state_id' => '2239','name' => 'Rombach'),\n \t array('id' => '26607','state_id' => '2239','name' => 'Roodt'),\n \t array('id' => '26608','state_id' => '2239','name' => 'Saeul'),\n \t array('id' => '26609','state_id' => '2239','name' => 'Schandel'),\n \t array('id' => '26610','state_id' => '2239','name' => 'Schwebach'),\n \t array('id' => '26611','state_id' => '2239','name' => 'Schweich'),\n \t array('id' => '26612','state_id' => '2239','name' => 'Useldange'),\n \t array('id' => '26613','state_id' => '2239','name' => 'Vichten'),\n \t array('id' => '26614','state_id' => '2239','name' => 'Wahl'),\n \t array('id' => '26615','state_id' => '2239','name' => 'Wolwelange'),\n \t array('id' => '26616','state_id' => '2240','name' => 'Altwies'),\n \t array('id' => '26617','state_id' => '2240','name' => 'Assel'),\n \t array('id' => '26618','state_id' => '2240','name' => 'Bech-Kleinmacher'),\n \t array('id' => '26619','state_id' => '2240','name' => 'Bous'),\n \t array('id' => '26620','state_id' => '2240','name' => 'Burmerange'),\n \t array('id' => '26621','state_id' => '2240','name' => 'Canach'),\n \t array('id' => '26622','state_id' => '2240','name' => 'Dalheim'),\n \t array('id' => '26623','state_id' => '2240','name' => 'Ellange'),\n \t array('id' => '26624','state_id' => '2240','name' => 'Elvange'),\n \t array('id' => '26625','state_id' => '2240','name' => 'Emerange'),\n \t array('id' => '26626','state_id' => '2240','name' => 'Erpeldange'),\n \t array('id' => '26627','state_id' => '2240','name' => 'Filsdorf'),\n \t array('id' => '26628','state_id' => '2240','name' => 'Greiveldange'),\n \t array('id' => '26629','state_id' => '2240','name' => 'Lenningen'),\n \t array('id' => '26630','state_id' => '2240','name' => 'Mondorf-les-Bains'),\n \t array('id' => '26631','state_id' => '2240','name' => 'Remerschen'),\n \t array('id' => '26632','state_id' => '2240','name' => 'Remich'),\n \t array('id' => '26633','state_id' => '2240','name' => 'Rolling'),\n \t array('id' => '26634','state_id' => '2240','name' => 'Schengen'),\n \t array('id' => '26635','state_id' => '2240','name' => 'Schwebsingen'),\n \t array('id' => '26636','state_id' => '2240','name' => 'Stadtbredimus'),\n \t array('id' => '26637','state_id' => '2240','name' => 'Trintange'),\n \t array('id' => '26638','state_id' => '2240','name' => 'Trintange-Ersange-Roedt'),\n \t array('id' => '26639','state_id' => '2240','name' => 'Waldbredimus'),\n \t array('id' => '26640','state_id' => '2240','name' => 'Welfrange'),\n \t array('id' => '26641','state_id' => '2240','name' => 'Wellenstein'),\n \t array('id' => '26642','state_id' => '2240','name' => 'Wintrange'),\n \t array('id' => '26643','state_id' => '2241','name' => 'Bettel'),\n \t array('id' => '26644','state_id' => '2241','name' => 'Bivels'),\n \t array('id' => '26645','state_id' => '2241','name' => 'Fouhren'),\n \t array('id' => '26646','state_id' => '2241','name' => 'Gralingen'),\n \t array('id' => '26647','state_id' => '2241','name' => 'Longsdorf'),\n \t array('id' => '26648','state_id' => '2241','name' => 'Merscheid'),\n \t array('id' => '26649','state_id' => '2241','name' => 'Nachtmanderscheid'),\n \t array('id' => '26650','state_id' => '2241','name' => 'Putscheid'),\n \t array('id' => '26651','state_id' => '2241','name' => 'Stolzembourg'),\n \t array('id' => '26652','state_id' => '2241','name' => 'Vianden'),\n \t array('id' => '26653','state_id' => '2241','name' => 'Walsdorf'),\n \t array('id' => '26654','state_id' => '2241','name' => 'Weiler'),\n \t array('id' => '26655','state_id' => '2242','name' => 'Alscheid'),\n \t array('id' => '26656','state_id' => '2242','name' => 'Baschleiden'),\n \t array('id' => '26657','state_id' => '2242','name' => 'Bavigne'),\n \t array('id' => '26658','state_id' => '2242','name' => 'Berle'),\n \t array('id' => '26659','state_id' => '2242','name' => 'Bockholtz'),\n \t array('id' => '26660','state_id' => '2242','name' => 'Boulaide'),\n \t array('id' => '26661','state_id' => '2242','name' => 'Buderscheid'),\n \t array('id' => '26662','state_id' => '2242','name' => 'Dahl'),\n \t array('id' => '26663','state_id' => '2242','name' => 'Doncols'),\n \t array('id' => '26664','state_id' => '2242','name' => 'Enscherange'),\n \t array('id' => '26665','state_id' => '2242','name' => 'Erpeldange'),\n \t array('id' => '26666','state_id' => '2242','name' => 'Esch-sur-Sure'),\n \t array('id' => '26667','state_id' => '2242','name' => 'Eschdorf'),\n \t array('id' => '26668','state_id' => '2242','name' => 'Eschweiler'),\n \t array('id' => '26669','state_id' => '2242','name' => 'Goesdorf'),\n \t array('id' => '26670','state_id' => '2242','name' => 'Grumelscheid'),\n \t array('id' => '26671','state_id' => '2242','name' => 'Harlange'),\n \t array('id' => '26672','state_id' => '2242','name' => 'Heiderscheid'),\n \t array('id' => '26673','state_id' => '2242','name' => 'Heiderscheid-Fond'),\n \t array('id' => '26674','state_id' => '2242','name' => 'Hierheck'),\n \t array('id' => '26675','state_id' => '2242','name' => 'Insenborn'),\n \t array('id' => '26676','state_id' => '2242','name' => 'Kaundorf'),\n \t array('id' => '26677','state_id' => '2242','name' => 'Kautenbach'),\n \t array('id' => '26678','state_id' => '2242','name' => 'Knaphoscheid'),\n \t array('id' => '26679','state_id' => '2242','name' => 'Lellingen'),\n \t array('id' => '26680','state_id' => '2242','name' => 'Liefrange'),\n \t array('id' => '26681','state_id' => '2242','name' => 'Lultzhausen'),\n \t array('id' => '26682','state_id' => '2242','name' => 'Masseler'),\n \t array('id' => '26683','state_id' => '2242','name' => 'Mecher'),\n \t array('id' => '26684','state_id' => '2242','name' => 'Merckholtz'),\n \t array('id' => '26685','state_id' => '2242','name' => 'Merscheid'),\n \t array('id' => '26686','state_id' => '2242','name' => 'Neunhausen'),\n \t array('id' => '26687','state_id' => '2242','name' => 'Nocher'),\n \t array('id' => '26688','state_id' => '2242','name' => 'Nocher-Route'),\n \t array('id' => '26689','state_id' => '2242','name' => 'Noertrange'),\n \t array('id' => '26690','state_id' => '2242','name' => 'Nothum'),\n \t array('id' => '26691','state_id' => '2242','name' => 'Pintsch'),\n \t array('id' => '26692','state_id' => '2242','name' => 'Pommerloch'),\n \t array('id' => '26693','state_id' => '2242','name' => 'Schleif'),\n \t array('id' => '26694','state_id' => '2242','name' => 'Selscheid'),\n \t array('id' => '26695','state_id' => '2242','name' => 'Sonlez'),\n \t array('id' => '26696','state_id' => '2242','name' => 'Surre'),\n \t array('id' => '26697','state_id' => '2242','name' => 'Tadler-Ringel-Dirbach'),\n \t array('id' => '26698','state_id' => '2242','name' => 'Tarchamps'),\n \t array('id' => '26699','state_id' => '2242','name' => 'Watrange'),\n \t array('id' => '26700','state_id' => '2242','name' => 'Wiltz'),\n \t array('id' => '26701','state_id' => '2242','name' => 'Wilwerwiltz'),\n \t array('id' => '26702','state_id' => '2242','name' => 'Winseler'),\n \t array('id' => '26703','state_id' => '2243','name' => 'Macau'),\n \t array('id' => '26704','state_id' => '2244','name' => 'Berovo'),\n \t array('id' => '26705','state_id' => '2244','name' => 'Pehchevo'),\n \t array('id' => '26706','state_id' => '2245','name' => 'Bach'),\n \t array('id' => '26707','state_id' => '2245','name' => 'Bistrica'),\n \t array('id' => '26708','state_id' => '2245','name' => 'Bitola'),\n \t array('id' => '26709','state_id' => '2245','name' => 'Capari'),\n \t array('id' => '26710','state_id' => '2245','name' => 'Dobrushevo'),\n \t array('id' => '26711','state_id' => '2245','name' => 'Kukurechani'),\n \t array('id' => '26712','state_id' => '2245','name' => 'Mogila'),\n \t array('id' => '26713','state_id' => '2245','name' => 'Novaci'),\n \t array('id' => '26714','state_id' => '2245','name' => 'Staravina'),\n \t array('id' => '26715','state_id' => '2246','name' => 'Brod'),\n \t array('id' => '26716','state_id' => '2246','name' => 'Plasnica'),\n \t array('id' => '26717','state_id' => '2246','name' => 'Samokov'),\n \t array('id' => '26718','state_id' => '2247','name' => 'Debar'),\n \t array('id' => '26719','state_id' => '2247','name' => 'Zhupa'),\n \t array('id' => '26720','state_id' => '2248','name' => 'Delchevo'),\n \t array('id' => '26721','state_id' => '2248','name' => 'Kamenica'),\n \t array('id' => '26722','state_id' => '2250','name' => 'Bogdanci'),\n \t array('id' => '26723','state_id' => '2250','name' => 'Gevgelija'),\n \t array('id' => '26724','state_id' => '2250','name' => 'Miravci'),\n \t array('id' => '26725','state_id' => '2250','name' => 'Star Dojran'),\n \t array('id' => '26726','state_id' => '2251','name' => 'Chegrane'),\n \t array('id' => '26727','state_id' => '2251','name' => 'Dolna Banjica'),\n \t array('id' => '26728','state_id' => '2251','name' => 'Gostivar'),\n \t array('id' => '26729','state_id' => '2251','name' => 'Mavrovi Anovi'),\n \t array('id' => '26730','state_id' => '2251','name' => 'Negotino-Poloshko'),\n \t array('id' => '26731','state_id' => '2251','name' => 'Rostusha'),\n \t array('id' => '26732','state_id' => '2251','name' => 'Srbinovo'),\n \t array('id' => '26733','state_id' => '2251','name' => 'Vrapchishte'),\n \t array('id' => '26734','state_id' => '2251','name' => 'Vrutok'),\n \t array('id' => '26735','state_id' => '2252','name' => 'Kavadarci'),\n \t array('id' => '26736','state_id' => '2252','name' => 'Konopishte'),\n \t array('id' => '26737','state_id' => '2252','name' => 'Rosoman'),\n \t array('id' => '26738','state_id' => '2253','name' => 'Drugovo'),\n \t array('id' => '26739','state_id' => '2253','name' => 'Kichevo'),\n \t array('id' => '26740','state_id' => '2253','name' => 'Oslomej'),\n \t array('id' => '26741','state_id' => '2253','name' => 'Vraneshtica'),\n \t array('id' => '26742','state_id' => '2253','name' => 'Zajas'),\n \t array('id' => '26743','state_id' => '2254','name' => 'Cheshinovo'),\n \t array('id' => '26744','state_id' => '2254','name' => 'Kochani'),\n \t array('id' => '26745','state_id' => '2254','name' => 'Obleshevo'),\n \t array('id' => '26746','state_id' => '2254','name' => 'Zletovo'),\n \t array('id' => '26747','state_id' => '2255','name' => 'Kratovo'),\n \t array('id' => '26748','state_id' => '2257','name' => 'Krushevo'),\n \t array('id' => '26749','state_id' => '2257','name' => 'Zhitoshe'),\n \t array('id' => '26750','state_id' => '2258','name' => 'Izvor'),\n \t array('id' => '26751','state_id' => '2258','name' => 'Klechevce'),\n \t array('id' => '26752','state_id' => '2258','name' => 'Kumanovo'),\n \t array('id' => '26753','state_id' => '2258','name' => 'Lipkovo'),\n \t array('id' => '26754','state_id' => '2258','name' => 'Orashac'),\n \t array('id' => '26755','state_id' => '2258','name' => 'Staro Nagorichane'),\n \t array('id' => '26756','state_id' => '2259','name' => 'Demir Kapija'),\n \t array('id' => '26757','state_id' => '2259','name' => 'Negotino'),\n \t array('id' => '26758','state_id' => '2260','name' => 'Belchishta'),\n \t array('id' => '26759','state_id' => '2260','name' => 'Kosel'),\n \t array('id' => '26760','state_id' => '2260','name' => 'Mesheishta'),\n \t array('id' => '26761','state_id' => '2260','name' => 'Ohrid'),\n \t array('id' => '26762','state_id' => '2261','name' => 'Dolneni'),\n \t array('id' => '26763','state_id' => '2261','name' => 'Krivogashtani'),\n \t array('id' => '26764','state_id' => '2261','name' => 'Prilep'),\n \t array('id' => '26765','state_id' => '2261','name' => 'Topolchani'),\n \t array('id' => '26766','state_id' => '2261','name' => 'Vitolishte'),\n \t array('id' => '26767','state_id' => '2262','name' => 'Probishtip'),\n \t array('id' => '26768','state_id' => '2263','name' => 'Konche'),\n \t array('id' => '26769','state_id' => '2263','name' => 'Podaresh'),\n \t array('id' => '26770','state_id' => '2263','name' => 'Radovish'),\n \t array('id' => '26771','state_id' => '2264','name' => 'Resen'),\n \t array('id' => '26772','state_id' => '2265','name' => 'Karbinci'),\n \t array('id' => '26773','state_id' => '2265','name' => 'Shtip'),\n \t array('id' => '26774','state_id' => '2265','name' => 'Stip'),\n \t array('id' => '26775','state_id' => '2266','name' => 'Arachinovo'),\n \t array('id' => '26776','state_id' => '2266','name' => 'Chucher'),\n \t array('id' => '26777','state_id' => '2266','name' => 'Ilinden'),\n \t array('id' => '26778','state_id' => '2266','name' => 'Kondovo'),\n \t array('id' => '26779','state_id' => '2266','name' => 'Petrovec'),\n \t array('id' => '26780','state_id' => '2266','name' => 'Saraj'),\n \t array('id' => '26781','state_id' => '2266','name' => 'Skopje'),\n \t array('id' => '26782','state_id' => '2266','name' => 'Sopishte'),\n \t array('id' => '26783','state_id' => '2266','name' => 'Studenichani'),\n \t array('id' => '26784','state_id' => '2266','name' => 'Zelenikovo'),\n \t array('id' => '26785','state_id' => '2267','name' => 'Delogozhdi'),\n \t array('id' => '26786','state_id' => '2267','name' => 'Labunishta'),\n \t array('id' => '26787','state_id' => '2267','name' => 'Lukovo'),\n \t array('id' => '26788','state_id' => '2267','name' => 'Struga'),\n \t array('id' => '26789','state_id' => '2267','name' => 'Veleshta'),\n \t array('id' => '26790','state_id' => '2267','name' => 'Vevchani'),\n \t array('id' => '26791','state_id' => '2268','name' => 'Bosilovo'),\n \t array('id' => '26792','state_id' => '2268','name' => 'Kuklish'),\n \t array('id' => '26793','state_id' => '2268','name' => 'Murtino'),\n \t array('id' => '26794','state_id' => '2268','name' => 'Novo Selo'),\n \t array('id' => '26795','state_id' => '2268','name' => 'Strumica'),\n \t array('id' => '26796','state_id' => '2268','name' => 'Vasilevo'),\n \t array('id' => '26797','state_id' => '2270','name' => 'Bogovinje'),\n \t array('id' => '26798','state_id' => '2270','name' => 'Brvenica'),\n \t array('id' => '26799','state_id' => '2270','name' => 'Dzhepchishte'),\n \t array('id' => '26800','state_id' => '2270','name' => 'Jegunovce'),\n \t array('id' => '26801','state_id' => '2270','name' => 'Kamenjance'),\n \t array('id' => '26802','state_id' => '2270','name' => 'Shipkovica'),\n \t array('id' => '26803','state_id' => '2270','name' => 'Tearce'),\n \t array('id' => '26804','state_id' => '2270','name' => 'Tetovo'),\n \t array('id' => '26805','state_id' => '2270','name' => 'Vratnica'),\n \t array('id' => '26806','state_id' => '2270','name' => 'Zhelino'),\n \t array('id' => '26807','state_id' => '2271','name' => 'Valandovo'),\n \t array('id' => '26808','state_id' => '2272','name' => 'Bogomila'),\n \t array('id' => '26809','state_id' => '2272','name' => 'Chashka'),\n \t array('id' => '26810','state_id' => '2272','name' => 'Gradsko'),\n \t array('id' => '26811','state_id' => '2272','name' => 'Veles'),\n \t array('id' => '26812','state_id' => '2273','name' => 'Blatec'),\n \t array('id' => '26813','state_id' => '2273','name' => 'Orizari'),\n \t array('id' => '26814','state_id' => '2273','name' => 'Vinica'),\n \t array('id' => '26815','state_id' => '2273','name' => 'Zrnovci'),\n \t array('id' => '26816','state_id' => '2274','name' => 'Ambatolampy'),\n \t array('id' => '26817','state_id' => '2274','name' => 'Anjozorobe'),\n \t array('id' => '26818','state_id' => '2274','name' => 'Ankazobe'),\n \t array('id' => '26819','state_id' => '2274','name' => 'Antananarivo'),\n \t array('id' => '26820','state_id' => '2274','name' => 'Antanifotsy'),\n \t array('id' => '26821','state_id' => '2274','name' => 'Antsirabe'),\n \t array('id' => '26822','state_id' => '2274','name' => 'Arivonimamo'),\n \t array('id' => '26823','state_id' => '2274','name' => 'Betafo'),\n \t array('id' => '26824','state_id' => '2274','name' => 'Faratsiho'),\n \t array('id' => '26825','state_id' => '2274','name' => 'Fenoarivo'),\n \t array('id' => '26826','state_id' => '2274','name' => 'Manjakandriana'),\n \t array('id' => '26827','state_id' => '2274','name' => 'Soavinandriana'),\n \t array('id' => '26828','state_id' => '2274','name' => 'Tsiroanomandidy'),\n \t array('id' => '26829','state_id' => '2275','name' => 'Ambanja'),\n \t array('id' => '26830','state_id' => '2275','name' => 'Ambilobe'),\n \t array('id' => '26831','state_id' => '2275','name' => 'Andapa'),\n \t array('id' => '26832','state_id' => '2275','name' => 'Antalaha'),\n \t array('id' => '26833','state_id' => '2275','name' => 'Antsirambazaha'),\n \t array('id' => '26834','state_id' => '2275','name' => 'Antsiranana'),\n \t array('id' => '26835','state_id' => '2275','name' => 'Sambava'),\n \t array('id' => '26836','state_id' => '2276','name' => 'Ambalavao'),\n \t array('id' => '26837','state_id' => '2276','name' => 'Ambatofinandrahana'),\n \t array('id' => '26838','state_id' => '2276','name' => 'Ambositra'),\n \t array('id' => '26839','state_id' => '2276','name' => 'Fandriana'),\n \t array('id' => '26840','state_id' => '2276','name' => 'Farafangana'),\n \t array('id' => '26841','state_id' => '2276','name' => 'Fianarantsoa'),\n \t array('id' => '26842','state_id' => '2276','name' => 'Ifanadiana'),\n \t array('id' => '26843','state_id' => '2276','name' => 'Ihosy'),\n \t array('id' => '26844','state_id' => '2276','name' => 'Ikalamavony'),\n \t array('id' => '26845','state_id' => '2276','name' => 'Ikongo'),\n \t array('id' => '26846','state_id' => '2276','name' => 'Manakara'),\n \t array('id' => '26847','state_id' => '2276','name' => 'Manandriana'),\n \t array('id' => '26848','state_id' => '2276','name' => 'Mananjary'),\n \t array('id' => '26849','state_id' => '2276','name' => 'Nosy Varika'),\n \t array('id' => '26850','state_id' => '2276','name' => 'Vangaindrano'),\n \t array('id' => '26851','state_id' => '2276','name' => 'Vondrozo'),\n \t array('id' => '26852','state_id' => '2277','name' => 'Ambato Boina'),\n \t array('id' => '26853','state_id' => '2277','name' => 'Antsohihy'),\n \t array('id' => '26854','state_id' => '2277','name' => 'Bealanana'),\n \t array('id' => '26855','state_id' => '2277','name' => 'Mahajanga'),\n \t array('id' => '26856','state_id' => '2277','name' => 'Marovoay'),\n \t array('id' => '26857','state_id' => '2277','name' => 'Tsaratanana'),\n \t array('id' => '26858','state_id' => '2278','name' => 'Ambatondrazaka'),\n \t array('id' => '26859','state_id' => '2278','name' => 'Ambodifototra'),\n \t array('id' => '26860','state_id' => '2278','name' => 'Amparafaravola'),\n \t array('id' => '26861','state_id' => '2278','name' => 'Andevoranto'),\n \t array('id' => '26862','state_id' => '2278','name' => 'Andilamena'),\n \t array('id' => '26863','state_id' => '2278','name' => 'Anosibe An\\'ala'),\n \t array('id' => '26864','state_id' => '2278','name' => 'Fenoarivo Atsinanana'),\n \t array('id' => '26865','state_id' => '2278','name' => 'Mahanoro'),\n \t array('id' => '26866','state_id' => '2278','name' => 'Mananara'),\n \t array('id' => '26867','state_id' => '2278','name' => 'Maroantsetra'),\n \t array('id' => '26868','state_id' => '2278','name' => 'Marolambo'),\n \t array('id' => '26869','state_id' => '2278','name' => 'Moramanga'),\n \t array('id' => '26870','state_id' => '2278','name' => 'Soanierana Ivongo'),\n \t array('id' => '26871','state_id' => '2278','name' => 'Toamasina'),\n \t array('id' => '26872','state_id' => '2278','name' => 'Vavatenina'),\n \t array('id' => '26873','state_id' => '2278','name' => 'Vohibinany'),\n \t array('id' => '26874','state_id' => '2279','name' => 'Amboasary'),\n \t array('id' => '26875','state_id' => '2279','name' => 'Ambovombe'),\n \t array('id' => '26876','state_id' => '2279','name' => 'Ampanihy'),\n \t array('id' => '26877','state_id' => '2279','name' => 'Ankazoabo'),\n \t array('id' => '26878','state_id' => '2279','name' => 'Beloha'),\n \t array('id' => '26879','state_id' => '2279','name' => 'Belon\\'i Tsiribihina'),\n \t array('id' => '26880','state_id' => '2279','name' => 'Beroroha'),\n \t array('id' => '26881','state_id' => '2279','name' => 'Betioky'),\n \t array('id' => '26882','state_id' => '2279','name' => 'Miandrivazo'),\n \t array('id' => '26883','state_id' => '2279','name' => 'Morondava'),\n \t array('id' => '26884','state_id' => '2279','name' => 'Sakaraha'),\n \t array('id' => '26885','state_id' => '2279','name' => 'Taolanaro'),\n \t array('id' => '26886','state_id' => '2279','name' => 'Toliary'),\n \t array('id' => '26887','state_id' => '2279','name' => 'Tsihombe'),\n \t array('id' => '26888','state_id' => '2280','name' => 'Balaka'),\n \t array('id' => '26889','state_id' => '2282','name' => 'Chikwawa'),\n \t array('id' => '26890','state_id' => '2283','name' => 'Chiradzulu'),\n \t array('id' => '26891','state_id' => '2284','name' => 'Chitipa'),\n \t array('id' => '26892','state_id' => '2285','name' => 'Chipoka'),\n \t array('id' => '26893','state_id' => '2285','name' => 'Dedza'),\n \t array('id' => '26894','state_id' => '2286','name' => 'Dowa'),\n \t array('id' => '26895','state_id' => '2286','name' => 'Mponela'),\n \t array('id' => '26896','state_id' => '2287','name' => 'Chilumba'),\n \t array('id' => '26897','state_id' => '2287','name' => 'Karonga'),\n \t array('id' => '26898','state_id' => '2287','name' => 'Livingstonia'),\n \t array('id' => '26899','state_id' => '2288','name' => 'Kasungu'),\n \t array('id' => '26900','state_id' => '2290','name' => 'Liwonde'),\n \t array('id' => '26901','state_id' => '2290','name' => 'Machinga'),\n \t array('id' => '26902','state_id' => '2291','name' => 'Mangochi'),\n \t array('id' => '26903','state_id' => '2291','name' => 'Monkey Bay'),\n \t array('id' => '26904','state_id' => '2292','name' => 'Mchinji'),\n \t array('id' => '26905','state_id' => '2293','name' => 'Mulanje'),\n \t array('id' => '26906','state_id' => '2294','name' => 'Mwanza'),\n \t array('id' => '26907','state_id' => '2295','name' => 'Mzimba'),\n \t array('id' => '26908','state_id' => '2298','name' => 'Nkhotakota'),\n \t array('id' => '26909','state_id' => '2299','name' => 'Nsanje'),\n \t array('id' => '26910','state_id' => '2300','name' => 'Ntcheu'),\n \t array('id' => '26911','state_id' => '2301','name' => 'Ntchisi'),\n \t array('id' => '26912','state_id' => '2302','name' => 'Phalombe'),\n \t array('id' => '26913','state_id' => '2303','name' => 'Rumphi'),\n \t array('id' => '26914','state_id' => '2304','name' => 'Salima'),\n \t array('id' => '26915','state_id' => '2305','name' => 'Luchenza'),\n \t array('id' => '26916','state_id' => '2305','name' => 'Thyolo'),\n \t array('id' => '26917','state_id' => '2307','name' => 'Bandar Maharani'),\n \t array('id' => '26918','state_id' => '2307','name' => 'Bandar Penggaram'),\n \t array('id' => '26919','state_id' => '2307','name' => 'Bukit Bakri'),\n \t array('id' => '26920','state_id' => '2307','name' => 'Buloh Kasap'),\n \t array('id' => '26921','state_id' => '2307','name' => 'Chaah'),\n \t array('id' => '26922','state_id' => '2307','name' => 'Johor Bahru'),\n \t array('id' => '26923','state_id' => '2307','name' => 'Kelapa Sawit'),\n \t array('id' => '26924','state_id' => '2307','name' => 'Kluang'),\n \t array('id' => '26925','state_id' => '2307','name' => 'Kota Tinggi'),\n \t array('id' => '26926','state_id' => '2307','name' => 'Kulai'),\n \t array('id' => '26927','state_id' => '2307','name' => 'Labis'),\n \t array('id' => '26928','state_id' => '2307','name' => 'Ledang'),\n \t array('id' => '26929','state_id' => '2307','name' => 'Masai'),\n \t array('id' => '26930','state_id' => '2307','name' => 'Mersing'),\n \t array('id' => '26931','state_id' => '2307','name' => 'Parit Raja'),\n \t array('id' => '26932','state_id' => '2307','name' => 'Pasir Gudang'),\n \t array('id' => '26933','state_id' => '2307','name' => 'Pekan Nenas'),\n \t array('id' => '26934','state_id' => '2307','name' => 'Pontian Kecil'),\n \t array('id' => '26935','state_id' => '2307','name' => 'Segamat'),\n \t array('id' => '26936','state_id' => '2307','name' => 'Sekudai'),\n \t array('id' => '26937','state_id' => '2307','name' => 'Senai'),\n \t array('id' => '26938','state_id' => '2307','name' => 'Simpang Rengam'),\n \t array('id' => '26939','state_id' => '2307','name' => 'Tangkak'),\n \t array('id' => '26940','state_id' => '2307','name' => 'Ulu Tiram'),\n \t array('id' => '26941','state_id' => '2307','name' => 'Yong Peng'),\n \t array('id' => '26942','state_id' => '2308','name' => 'Alor Setar'),\n \t array('id' => '26943','state_id' => '2308','name' => 'Bailing'),\n \t array('id' => '26944','state_id' => '2308','name' => 'Bedong'),\n \t array('id' => '26945','state_id' => '2308','name' => 'Gurun'),\n \t array('id' => '26946','state_id' => '2308','name' => 'Jitra'),\n \t array('id' => '26947','state_id' => '2308','name' => 'Kuah'),\n \t array('id' => '26948','state_id' => '2308','name' => 'Kuala Kedah'),\n \t array('id' => '26949','state_id' => '2308','name' => 'Kulim'),\n \t array('id' => '26950','state_id' => '2308','name' => 'Langgar'),\n \t array('id' => '26951','state_id' => '2308','name' => 'Sungai Petani'),\n \t array('id' => '26952','state_id' => '2309','name' => 'Gua Musang'),\n \t array('id' => '26953','state_id' => '2309','name' => 'Kadok'),\n \t array('id' => '26954','state_id' => '2309','name' => 'Kota Bahru'),\n \t array('id' => '26955','state_id' => '2309','name' => 'Kuala Krai'),\n \t array('id' => '26956','state_id' => '2309','name' => 'Pangkal Kalong'),\n \t array('id' => '26957','state_id' => '2309','name' => 'Pasir Mas'),\n \t array('id' => '26958','state_id' => '2309','name' => 'Peringat'),\n \t array('id' => '26959','state_id' => '2309','name' => 'Tanah Merah'),\n \t array('id' => '26960','state_id' => '2309','name' => 'Tumpat'),\n \t array('id' => '26961','state_id' => '2309','name' => 'Wakaf Baru'),\n \t array('id' => '26962','state_id' => '2311','name' => 'Labuan'),\n \t array('id' => '26963','state_id' => '2312','name' => 'Alor Gajah'),\n \t array('id' => '26964','state_id' => '2312','name' => 'Ayer Keroh'),\n \t array('id' => '26965','state_id' => '2312','name' => 'Ayer Molek'),\n \t array('id' => '26966','state_id' => '2312','name' => 'Batu Berendam'),\n \t array('id' => '26967','state_id' => '2312','name' => 'Bemban'),\n \t array('id' => '26968','state_id' => '2312','name' => 'Bukit Baru'),\n \t array('id' => '26969','state_id' => '2312','name' => 'Bukit Rambai'),\n \t array('id' => '26970','state_id' => '2312','name' => 'Klebang'),\n \t array('id' => '26971','state_id' => '2312','name' => 'Kuala Sungai Baru'),\n \t array('id' => '26972','state_id' => '2312','name' => 'Malacca'),\n \t array('id' => '26973','state_id' => '2312','name' => 'Masjid Tanah'),\n \t array('id' => '26974','state_id' => '2312','name' => 'Melaka'),\n \t array('id' => '26975','state_id' => '2312','name' => 'Pulau Sebang'),\n \t array('id' => '26976','state_id' => '2312','name' => 'Sungai Udang'),\n \t array('id' => '26977','state_id' => '2315','name' => 'Bandar Jengka Pusat'),\n \t array('id' => '26978','state_id' => '2315','name' => 'Bentong'),\n \t array('id' => '26979','state_id' => '2315','name' => 'Bukit Tinggi'),\n \t array('id' => '26980','state_id' => '2315','name' => 'Jerantut'),\n \t array('id' => '26981','state_id' => '2315','name' => 'Karak'),\n \t array('id' => '26982','state_id' => '2315','name' => 'Kuala Lipis'),\n \t array('id' => '26983','state_id' => '2315','name' => 'Kuantan'),\n \t array('id' => '26984','state_id' => '2315','name' => 'Mentakab'),\n \t array('id' => '26985','state_id' => '2315','name' => 'Pekan'),\n \t array('id' => '26986','state_id' => '2315','name' => 'Pulau Pinang'),\n \t array('id' => '26987','state_id' => '2315','name' => 'Raub'),\n \t array('id' => '26988','state_id' => '2315','name' => 'Temerloh'),\n \t array('id' => '26989','state_id' => '2316','name' => 'Bayan Lepas'),\n \t array('id' => '26990','state_id' => '2316','name' => 'Church Town'),\n \t array('id' => '26991','state_id' => '2316','name' => 'George Town'),\n \t array('id' => '26992','state_id' => '2317','name' => 'Ayer Tawar'),\n \t array('id' => '26993','state_id' => '2317','name' => 'Bagan Serai'),\n \t array('id' => '26994','state_id' => '2317','name' => 'Batu Gajah'),\n \t array('id' => '26995','state_id' => '2317','name' => 'Bidor'),\n \t array('id' => '26996','state_id' => '2317','name' => 'Ipoh'),\n \t array('id' => '26997','state_id' => '2317','name' => 'Jelapang'),\n \t array('id' => '26998','state_id' => '2317','name' => 'Kampar'),\n \t array('id' => '26999','state_id' => '2317','name' => 'Kampong Koh'),\n \t array('id' => '27000','state_id' => '2317','name' => 'Kuala Kangsar'),\n \t array('id' => '27001','state_id' => '2317','name' => 'Lawan Kuda Baharu'),\n \t array('id' => '27002','state_id' => '2317','name' => 'Lumut'),\n \t array('id' => '27003','state_id' => '2317','name' => 'Pantai Remis'),\n \t array('id' => '27004','state_id' => '2317','name' => 'Parit Buntar'),\n \t array('id' => '27005','state_id' => '2317','name' => 'Perak'),\n \t array('id' => '27006','state_id' => '2317','name' => 'Pusing'),\n \t array('id' => '27007','state_id' => '2317','name' => 'Simpang Empat'),\n \t array('id' => '27008','state_id' => '2317','name' => 'Sungai Siput Utara'),\n \t array('id' => '27009','state_id' => '2317','name' => 'Taiping'),\n \t array('id' => '27010','state_id' => '2317','name' => 'Tanjong Malim'),\n \t array('id' => '27011','state_id' => '2317','name' => 'Tapah'),\n \t array('id' => '27012','state_id' => '2317','name' => 'Teluk Intan'),\n \t array('id' => '27013','state_id' => '2318','name' => 'Kangar'),\n \t array('id' => '27014','state_id' => '2318','name' => 'Kuala Perlis'),\n \t array('id' => '27015','state_id' => '2320','name' => 'Beaufort'),\n \t array('id' => '27016','state_id' => '2320','name' => 'Donggongon'),\n \t array('id' => '27017','state_id' => '2320','name' => 'Keningau'),\n \t array('id' => '27018','state_id' => '2320','name' => 'Kinarut'),\n \t array('id' => '27019','state_id' => '2320','name' => 'Kota Belud'),\n \t array('id' => '27020','state_id' => '2320','name' => 'Kota Kinabalu'),\n \t array('id' => '27021','state_id' => '2320','name' => 'Kudat'),\n \t array('id' => '27022','state_id' => '2320','name' => 'Kunak'),\n \t array('id' => '27023','state_id' => '2320','name' => 'Lahad Datu'),\n \t array('id' => '27024','state_id' => '2320','name' => 'Papar'),\n \t array('id' => '27025','state_id' => '2320','name' => 'Putatan'),\n \t array('id' => '27026','state_id' => '2320','name' => 'Ranau'),\n \t array('id' => '27027','state_id' => '2320','name' => 'Sandakan'),\n \t array('id' => '27028','state_id' => '2320','name' => 'Semporna'),\n \t array('id' => '27029','state_id' => '2320','name' => 'Tawau'),\n \t array('id' => '27030','state_id' => '2321','name' => 'Batu Delapan Bazaar'),\n \t array('id' => '27031','state_id' => '2321','name' => 'Bintulu'),\n \t array('id' => '27032','state_id' => '2321','name' => 'Kapit'),\n \t array('id' => '27033','state_id' => '2321','name' => 'Kota Samarahan'),\n \t array('id' => '27034','state_id' => '2321','name' => 'Kuching'),\n \t array('id' => '27035','state_id' => '2321','name' => 'Limbang'),\n \t array('id' => '27036','state_id' => '2321','name' => 'Miri'),\n \t array('id' => '27037','state_id' => '2321','name' => 'Sarawak'),\n \t array('id' => '27038','state_id' => '2321','name' => 'Sarikel'),\n \t array('id' => '27039','state_id' => '2321','name' => 'Sibu'),\n \t array('id' => '27040','state_id' => '2321','name' => 'Sri Aman'),\n \t array('id' => '27041','state_id' => '2322','name' => 'Ampang'),\n \t array('id' => '27042','state_id' => '2322','name' => 'Ampang Jaya'),\n \t array('id' => '27043','state_id' => '2322','name' => 'Balakong'),\n \t array('id' => '27044','state_id' => '2322','name' => 'Bandar Baru Bangi'),\n \t array('id' => '27045','state_id' => '2322','name' => 'Bandar Baru Salak Tinggi'),\n \t array('id' => '27046','state_id' => '2322','name' => 'Bander Baro Bangi'),\n \t array('id' => '27047','state_id' => '2322','name' => 'Banting'),\n \t array('id' => '27048','state_id' => '2322','name' => 'Batang Berjuntai'),\n \t array('id' => '27049','state_id' => '2322','name' => 'Batu Arang'),\n \t array('id' => '27050','state_id' => '2322','name' => 'Batu Sembilan Cheras'),\n \t array('id' => '27051','state_id' => '2322','name' => 'Beranang'),\n \t array('id' => '27052','state_id' => '2322','name' => 'Bukit Beruntung'),\n \t array('id' => '27053','state_id' => '2322','name' => 'Cyberjaya'),\n \t array('id' => '27054','state_id' => '2322','name' => 'Darul Ehsan'),\n \t array('id' => '27055','state_id' => '2322','name' => 'Dungun'),\n \t array('id' => '27056','state_id' => '2322','name' => 'Gombak Setia'),\n \t array('id' => '27057','state_id' => '2322','name' => 'Jenjarom'),\n \t array('id' => '27058','state_id' => '2322','name' => 'Kajang'),\n \t array('id' => '27059','state_id' => '2322','name' => 'Kajang-Sungai Chua'),\n \t array('id' => '27060','state_id' => '2322','name' => 'Klang'),\n \t array('id' => '27061','state_id' => '2322','name' => 'Kuala Kubu Baru'),\n \t array('id' => '27062','state_id' => '2322','name' => 'Kuala Selangor'),\n \t array('id' => '27063','state_id' => '2322','name' => 'Kuang'),\n \t array('id' => '27064','state_id' => '2322','name' => 'Pengkalan Kundang'),\n \t array('id' => '27065','state_id' => '2322','name' => 'Petaling Jaya'),\n \t array('id' => '27066','state_id' => '2322','name' => 'Port Klang'),\n \t array('id' => '27067','state_id' => '2322','name' => 'Puchong'),\n \t array('id' => '27068','state_id' => '2322','name' => 'Rawang'),\n \t array('id' => '27069','state_id' => '2322','name' => 'Sabak'),\n \t array('id' => '27070','state_id' => '2322','name' => 'Sekinchan'),\n \t array('id' => '27071','state_id' => '2322','name' => 'Selayang Baru'),\n \t array('id' => '27072','state_id' => '2322','name' => 'Semenyih'),\n \t array('id' => '27073','state_id' => '2322','name' => 'Serendah'),\n \t array('id' => '27074','state_id' => '2322','name' => 'Seri Kembangan'),\n \t array('id' => '27075','state_id' => '2322','name' => 'Shah Alam'),\n \t array('id' => '27076','state_id' => '2322','name' => 'Subang Jaya'),\n \t array('id' => '27077','state_id' => '2322','name' => 'Sungai Besar'),\n \t array('id' => '27078','state_id' => '2322','name' => 'Sungai Buloh'),\n \t array('id' => '27079','state_id' => '2322','name' => 'Sungai Pelek'),\n \t array('id' => '27080','state_id' => '2322','name' => 'Taman Greenwood'),\n \t array('id' => '27081','state_id' => '2322','name' => 'Tanjong Karang'),\n \t array('id' => '27082','state_id' => '2322','name' => 'Tanjong Sepat'),\n \t array('id' => '27083','state_id' => '2323','name' => 'Bahaiyah'),\n \t array('id' => '27084','state_id' => '2323','name' => 'Langkap'),\n \t array('id' => '27085','state_id' => '2324','name' => 'Cukai'),\n \t array('id' => '27086','state_id' => '2324','name' => 'Jertih'),\n \t array('id' => '27087','state_id' => '2324','name' => 'Kemaman'),\n \t array('id' => '27088','state_id' => '2324','name' => 'Kerteh'),\n \t array('id' => '27089','state_id' => '2324','name' => 'Kuala Terengganu'),\n \t array('id' => '27090','state_id' => '2324','name' => 'Marang'),\n \t array('id' => '27091','state_id' => '2324','name' => 'Paka'),\n \t array('id' => '27092','state_id' => '2324','name' => 'Serdang'),\n \t array('id' => '27093','state_id' => '2327','name' => 'Dharavandhoo'),\n \t array('id' => '27094','state_id' => '2327','name' => 'Dhonfanu'),\n \t array('id' => '27095','state_id' => '2327','name' => 'Eydhafushi'),\n \t array('id' => '27096','state_id' => '2327','name' => 'Fehendhoo'),\n \t array('id' => '27097','state_id' => '2327','name' => 'Fulhadhoo'),\n \t array('id' => '27098','state_id' => '2327','name' => 'Goidhoo'),\n \t array('id' => '27099','state_id' => '2327','name' => 'Hithaadhoo'),\n \t array('id' => '27100','state_id' => '2327','name' => 'Kamadhoo'),\n \t array('id' => '27101','state_id' => '2327','name' => 'Kendhoo'),\n \t array('id' => '27102','state_id' => '2327','name' => 'Kihaadhoo'),\n \t array('id' => '27103','state_id' => '2327','name' => 'Kudarikilu'),\n \t array('id' => '27104','state_id' => '2327','name' => 'Maalhos'),\n \t array('id' => '27105','state_id' => '2327','name' => 'Thulhaadhoo'),\n \t array('id' => '27106','state_id' => '2328','name' => 'Badidhoo'),\n \t array('id' => '27107','state_id' => '2328','name' => 'Gemendhoo'),\n \t array('id' => '27108','state_id' => '2328','name' => 'Hulhudheli'),\n \t array('id' => '27109','state_id' => '2328','name' => 'Kudahuvadhoo'),\n \t array('id' => '27110','state_id' => '2328','name' => 'Maaeboodhoo'),\n \t array('id' => '27111','state_id' => '2328','name' => 'Meedhoo'),\n \t array('id' => '27112','state_id' => '2328','name' => 'Ribudhoo'),\n \t array('id' => '27113','state_id' => '2328','name' => 'Vaanee'),\n \t array('id' => '27114','state_id' => '2329','name' => 'Biledhdhoo'),\n \t array('id' => '27115','state_id' => '2329','name' => 'Dharaboodhoo'),\n \t array('id' => '27116','state_id' => '2329','name' => 'Feeali'),\n \t array('id' => '27117','state_id' => '2329','name' => 'Magoodhoo'),\n \t array('id' => '27118','state_id' => '2329','name' => 'Nilandhoo'),\n \t array('id' => '27119','state_id' => '2332','name' => 'Fuvammulah'),\n \t array('id' => '27120','state_id' => '2335','name' => 'Dhiffushi'),\n \t array('id' => '27121','state_id' => '2335','name' => 'Gaafaru'),\n \t array('id' => '27122','state_id' => '2335','name' => 'Gulhi'),\n \t array('id' => '27123','state_id' => '2335','name' => 'Guraidhoo'),\n \t array('id' => '27124','state_id' => '2335','name' => 'Himmafushi'),\n \t array('id' => '27125','state_id' => '2335','name' => 'Huraa'),\n \t array('id' => '27126','state_id' => '2335','name' => 'Kaashidhoo'),\n \t array('id' => '27127','state_id' => '2335','name' => 'Maafushi'),\n \t array('id' => '27128','state_id' => '2335','name' => 'Thulusdhoo'),\n \t array('id' => '27129','state_id' => '2336','name' => 'Dhabidhoo'),\n \t array('id' => '27130','state_id' => '2336','name' => 'Fonadhoo'),\n \t array('id' => '27131','state_id' => '2336','name' => 'Gaadhoo'),\n \t array('id' => '27132','state_id' => '2336','name' => 'Gamu'),\n \t array('id' => '27133','state_id' => '2336','name' => 'Hithadhoo'),\n \t array('id' => '27134','state_id' => '2336','name' => 'Isdhoo'),\n \t array('id' => '27135','state_id' => '2336','name' => 'Kalhaidhoo'),\n \t array('id' => '27136','state_id' => '2336','name' => 'Kunahandhoo'),\n \t array('id' => '27137','state_id' => '2336','name' => 'Maabaidhoo'),\n \t array('id' => '27138','state_id' => '2336','name' => 'Maamendhoo'),\n \t array('id' => '27139','state_id' => '2336','name' => 'Maavah'),\n \t array('id' => '27140','state_id' => '2336','name' => 'Mundhoo'),\n \t array('id' => '27141','state_id' => '2337','name' => 'Hinnavaru'),\n \t array('id' => '27142','state_id' => '2337','name' => 'Kurendhoo'),\n \t array('id' => '27143','state_id' => '2337','name' => 'Maafilaafushi'),\n \t array('id' => '27144','state_id' => '2337','name' => 'Naifaru'),\n \t array('id' => '27145','state_id' => '2337','name' => 'Olhuvelifushi'),\n \t array('id' => '27146','state_id' => '2339','name' => 'Dhiggaru'),\n \t array('id' => '27147','state_id' => '2339','name' => 'Kolhufushi'),\n \t array('id' => '27148','state_id' => '2339','name' => 'Madifushi'),\n \t array('id' => '27149','state_id' => '2339','name' => 'Maduvvari'),\n \t array('id' => '27150','state_id' => '2339','name' => 'Mulah'),\n \t array('id' => '27151','state_id' => '2339','name' => 'Muli'),\n \t array('id' => '27152','state_id' => '2339','name' => 'Naalaafushi'),\n \t array('id' => '27153','state_id' => '2339','name' => 'Raimandhoo'),\n \t array('id' => '27154','state_id' => '2339','name' => 'Veyvah'),\n \t array('id' => '27155','state_id' => '2340','name' => 'Fodhdhoo'),\n \t array('id' => '27156','state_id' => '2340','name' => 'Hebadhoo'),\n \t array('id' => '27157','state_id' => '2340','name' => 'Holhudhoo'),\n \t array('id' => '27158','state_id' => '2340','name' => 'Kedhikolhudhoo'),\n \t array('id' => '27159','state_id' => '2340','name' => 'Kudafari'),\n \t array('id' => '27160','state_id' => '2340','name' => 'Landhoo'),\n \t array('id' => '27161','state_id' => '2340','name' => 'Lhohi'),\n \t array('id' => '27162','state_id' => '2340','name' => 'Maafaru'),\n \t array('id' => '27163','state_id' => '2340','name' => 'Maalhendhoo'),\n \t array('id' => '27164','state_id' => '2340','name' => 'Magoodhoo'),\n \t array('id' => '27165','state_id' => '2340','name' => 'Manadhoo'),\n \t array('id' => '27166','state_id' => '2340','name' => 'Miladhoo'),\n \t array('id' => '27167','state_id' => '2340','name' => 'Velidhoo'),\n \t array('id' => '27168','state_id' => '2341','name' => 'Agolhitheemu'),\n \t array('id' => '27169','state_id' => '2341','name' => 'Alifushi'),\n \t array('id' => '27170','state_id' => '2341','name' => 'Fainu'),\n \t array('id' => '27171','state_id' => '2341','name' => 'Hulhudhuffaaru'),\n \t array('id' => '27172','state_id' => '2341','name' => 'Iguraidhoo'),\n \t array('id' => '27173','state_id' => '2341','name' => 'Innamaadhoo'),\n \t array('id' => '27174','state_id' => '2341','name' => 'Kadholhudhoo'),\n \t array('id' => '27175','state_id' => '2341','name' => 'Kinolhas'),\n \t array('id' => '27176','state_id' => '2341','name' => 'Maakurathu'),\n \t array('id' => '27177','state_id' => '2341','name' => 'Maduvvari'),\n \t array('id' => '27178','state_id' => '2341','name' => 'Meedhoo'),\n \t array('id' => '27179','state_id' => '2341','name' => 'Rasgetheemu'),\n \t array('id' => '27180','state_id' => '2341','name' => 'Rasmaadhoo'),\n \t array('id' => '27181','state_id' => '2341','name' => 'Ugoofaaru'),\n \t array('id' => '27182','state_id' => '2341','name' => 'Vaadhoo'),\n \t array('id' => '27183','state_id' => '2342','name' => 'Bilehffahi'),\n \t array('id' => '27184','state_id' => '2342','name' => 'Feevah'),\n \t array('id' => '27185','state_id' => '2342','name' => 'Feydhoo'),\n \t array('id' => '27186','state_id' => '2342','name' => 'Firubaidhoo'),\n \t array('id' => '27187','state_id' => '2342','name' => 'Foakaidhoo'),\n \t array('id' => '27188','state_id' => '2342','name' => 'Funadhoo'),\n \t array('id' => '27189','state_id' => '2342','name' => 'Goidhoo'),\n \t array('id' => '27190','state_id' => '2342','name' => 'Kaditheemu'),\n \t array('id' => '27191','state_id' => '2342','name' => 'Komandoo'),\n \t array('id' => '27192','state_id' => '2342','name' => 'Lhaimagu'),\n \t array('id' => '27193','state_id' => '2342','name' => 'Maakandoodhoo'),\n \t array('id' => '27194','state_id' => '2342','name' => 'Maaugoodhoo'),\n \t array('id' => '27195','state_id' => '2342','name' => 'Maroshi'),\n \t array('id' => '27196','state_id' => '2342','name' => 'Narudhoo'),\n \t array('id' => '27197','state_id' => '2342','name' => 'Noomaraa'),\n \t array('id' => '27198','state_id' => '2343','name' => 'Feydhoo'),\n \t array('id' => '27199','state_id' => '2343','name' => 'Hithadhoo'),\n \t array('id' => '27200','state_id' => '2343','name' => 'Hulhudhoo'),\n \t array('id' => '27201','state_id' => '2343','name' => 'Maradhoo'),\n \t array('id' => '27202','state_id' => '2343','name' => 'Maradhoo-Feydhoo'),\n \t array('id' => '27203','state_id' => '2343','name' => 'Meedhoo'),\n \t array('id' => '27204','state_id' => '2344','name' => 'Buruni'),\n \t array('id' => '27205','state_id' => '2344','name' => 'Dhiyamigili'),\n \t array('id' => '27206','state_id' => '2344','name' => 'Gaadhiffushi'),\n \t array('id' => '27207','state_id' => '2344','name' => 'Guraidhoo'),\n \t array('id' => '27208','state_id' => '2344','name' => 'Hirilandhoo'),\n \t array('id' => '27209','state_id' => '2344','name' => 'Kadoodhoo'),\n \t array('id' => '27210','state_id' => '2344','name' => 'Kibidhoo'),\n \t array('id' => '27211','state_id' => '2344','name' => 'Madifushi'),\n \t array('id' => '27212','state_id' => '2344','name' => 'Omadhoo'),\n \t array('id' => '27213','state_id' => '2344','name' => 'Thimarafushi'),\n \t array('id' => '27214','state_id' => '2344','name' => 'Vandhoo'),\n \t array('id' => '27215','state_id' => '2344','name' => 'Veymandhoo'),\n \t array('id' => '27216','state_id' => '2344','name' => 'Vilufushi'),\n \t array('id' => '27217','state_id' => '2345','name' => 'Felidhoo'),\n \t array('id' => '27218','state_id' => '2345','name' => 'Fulidhoo'),\n \t array('id' => '27219','state_id' => '2345','name' => 'Keyodhoo'),\n \t array('id' => '27220','state_id' => '2345','name' => 'Rakeedhoo'),\n \t array('id' => '27221','state_id' => '2345','name' => 'Thinadhoo'),\n \t array('id' => '27222','state_id' => '2346','name' => 'Bamako'),\n \t array('id' => '27223','state_id' => '2347','name' => 'Gao'),\n \t array('id' => '27224','state_id' => '2348','name' => 'Bafoulabe'),\n \t array('id' => '27225','state_id' => '2348','name' => 'Kayes'),\n \t array('id' => '27226','state_id' => '2348','name' => 'Kita'),\n \t array('id' => '27227','state_id' => '2348','name' => 'Nioro'),\n \t array('id' => '27228','state_id' => '2349','name' => 'Kidal'),\n \t array('id' => '27229','state_id' => '2349','name' => 'Tessalit'),\n \t array('id' => '27230','state_id' => '2350','name' => 'Banamba'),\n \t array('id' => '27231','state_id' => '2350','name' => 'Kangaba'),\n \t array('id' => '27232','state_id' => '2350','name' => 'Kati'),\n \t array('id' => '27233','state_id' => '2350','name' => 'Kolokani'),\n \t array('id' => '27234','state_id' => '2350','name' => 'Koulikoro'),\n \t array('id' => '27235','state_id' => '2350','name' => 'Nara'),\n \t array('id' => '27236','state_id' => '2351','name' => 'Bandiagara'),\n \t array('id' => '27237','state_id' => '2351','name' => 'Djenne'),\n \t array('id' => '27238','state_id' => '2351','name' => 'Douentza'),\n \t array('id' => '27239','state_id' => '2351','name' => 'Koro'),\n \t array('id' => '27240','state_id' => '2351','name' => 'Mopti'),\n \t array('id' => '27241','state_id' => '2351','name' => 'Tenenkou'),\n \t array('id' => '27242','state_id' => '2352','name' => 'Ke-Massina'),\n \t array('id' => '27243','state_id' => '2352','name' => 'Kimparana'),\n \t array('id' => '27244','state_id' => '2352','name' => 'Markala'),\n \t array('id' => '27245','state_id' => '2352','name' => 'Niono'),\n \t array('id' => '27246','state_id' => '2352','name' => 'San'),\n \t array('id' => '27247','state_id' => '2352','name' => 'Segou'),\n \t array('id' => '27248','state_id' => '2352','name' => 'Sokolo'),\n \t array('id' => '27249','state_id' => '2353','name' => 'Bougouni'),\n \t array('id' => '27250','state_id' => '2353','name' => 'Kolondieba'),\n \t array('id' => '27251','state_id' => '2353','name' => 'Koutiala'),\n \t array('id' => '27252','state_id' => '2353','name' => 'Sikasso'),\n \t array('id' => '27253','state_id' => '2353','name' => 'Yorosso'),\n \t array('id' => '27254','state_id' => '2354','name' => 'Araouane'),\n \t array('id' => '27255','state_id' => '2354','name' => 'Dire'),\n \t array('id' => '27256','state_id' => '2354','name' => 'Goundam'),\n \t array('id' => '27257','state_id' => '2354','name' => 'Niafunke'),\n \t array('id' => '27258','state_id' => '2354','name' => 'Taoudenni'),\n \t array('id' => '27259','state_id' => '2354','name' => 'Tombouctou'),\n \t array('id' => '27260','state_id' => '2357','name' => 'Gharghur'),\n \t array('id' => '27261','state_id' => '2357','name' => 'Mellieha'),\n \t array('id' => '27262','state_id' => '2357','name' => 'Mgarr'),\n \t array('id' => '27263','state_id' => '2357','name' => 'Mosta'),\n \t array('id' => '27264','state_id' => '2357','name' => 'Naxxar'),\n \t array('id' => '27265','state_id' => '2357','name' => 'San Pawl il-Bahar'),\n \t array('id' => '27266','state_id' => '2360','name' => 'L-Iklin'),\n \t array('id' => '27267','state_id' => '2361','name' => 'Attard'),\n \t array('id' => '27268','state_id' => '2361','name' => 'Balzan'),\n \t array('id' => '27269','state_id' => '2361','name' => 'Dingli'),\n \t array('id' => '27270','state_id' => '2361','name' => 'Iklin'),\n \t array('id' => '27271','state_id' => '2361','name' => 'Lija'),\n \t array('id' => '27272','state_id' => '2361','name' => 'Mdina'),\n \t array('id' => '27273','state_id' => '2361','name' => 'Rabat'),\n \t array('id' => '27274','state_id' => '2361','name' => 'Sighghiewi'),\n \t array('id' => '27275','state_id' => '2361','name' => 'Zebbug'),\n \t array('id' => '27276','state_id' => '2362','name' => 'Castletown'),\n \t array('id' => '27277','state_id' => '2363','name' => 'Douglas'),\n \t array('id' => '27278','state_id' => '2364','name' => 'Laxey'),\n \t array('id' => '27279','state_id' => '2365','name' => 'Onchan'),\n \t array('id' => '27280','state_id' => '2366','name' => 'Peel'),\n \t array('id' => '27281','state_id' => '2369','name' => 'Ramsey'),\n \t array('id' => '27282','state_id' => '2370','name' => 'Aerok'),\n \t array('id' => '27283','state_id' => '2370','name' => 'Beran'),\n \t array('id' => '27284','state_id' => '2370','name' => 'Bikeer'),\n \t array('id' => '27285','state_id' => '2370','name' => 'Buoj'),\n \t array('id' => '27286','state_id' => '2370','name' => 'Enewe'),\n \t array('id' => '27287','state_id' => '2370','name' => 'Jabwan'),\n \t array('id' => '27288','state_id' => '2370','name' => 'Jah'),\n \t array('id' => '27289','state_id' => '2370','name' => 'Jeh'),\n \t array('id' => '27290','state_id' => '2370','name' => 'Kattiej'),\n \t array('id' => '27291','state_id' => '2370','name' => 'Mejajok'),\n \t array('id' => '27292','state_id' => '2370','name' => 'Mejil'),\n \t array('id' => '27293','state_id' => '2370','name' => 'Tobomaro'),\n \t array('id' => '27294','state_id' => '2370','name' => 'Woja'),\n \t array('id' => '27295','state_id' => '2370','name' => 'Wolar'),\n \t array('id' => '27296','state_id' => '2371','name' => 'Ailuk'),\n \t array('id' => '27297','state_id' => '2371','name' => 'Ajelep'),\n \t array('id' => '27298','state_id' => '2371','name' => 'Aliej'),\n \t array('id' => '27299','state_id' => '2371','name' => 'Biken'),\n \t array('id' => '27300','state_id' => '2371','name' => 'Enejabrok'),\n \t array('id' => '27301','state_id' => '2371','name' => 'Enejelar'),\n \t array('id' => '27302','state_id' => '2371','name' => 'Kapen'),\n \t array('id' => '27303','state_id' => '2372','name' => 'Arno Arno'),\n \t array('id' => '27304','state_id' => '2372','name' => 'Bikarej'),\n \t array('id' => '27305','state_id' => '2372','name' => 'Bikonele'),\n \t array('id' => '27306','state_id' => '2372','name' => 'Boken'),\n \t array('id' => '27307','state_id' => '2372','name' => 'Eneaidrik'),\n \t array('id' => '27308','state_id' => '2372','name' => 'Enirik'),\n \t array('id' => '27309','state_id' => '2372','name' => 'Ijoen'),\n \t array('id' => '27310','state_id' => '2372','name' => 'Ine'),\n \t array('id' => '27311','state_id' => '2372','name' => 'Japo'),\n \t array('id' => '27312','state_id' => '2372','name' => 'Jilane'),\n \t array('id' => '27313','state_id' => '2372','name' => 'Kejbwe'),\n \t array('id' => '27314','state_id' => '2372','name' => 'Kilange'),\n \t array('id' => '27315','state_id' => '2372','name' => 'Kilemman'),\n \t array('id' => '27316','state_id' => '2372','name' => 'Kinajon'),\n \t array('id' => '27317','state_id' => '2372','name' => 'Langor'),\n \t array('id' => '27318','state_id' => '2372','name' => 'Lukoj'),\n \t array('id' => '27319','state_id' => '2372','name' => 'Malel'),\n \t array('id' => '27320','state_id' => '2372','name' => 'Manrar'),\n \t array('id' => '27321','state_id' => '2372','name' => 'Matolen'),\n \t array('id' => '27322','state_id' => '2372','name' => 'Meetdik'),\n \t array('id' => '27323','state_id' => '2372','name' => 'Mian'),\n \t array('id' => '27324','state_id' => '2372','name' => 'Najaj'),\n \t array('id' => '27325','state_id' => '2372','name' => 'Namwi'),\n \t array('id' => '27326','state_id' => '2372','name' => 'Neenkotkot'),\n \t array('id' => '27327','state_id' => '2372','name' => 'Taklep'),\n \t array('id' => '27328','state_id' => '2372','name' => 'Tinak'),\n \t array('id' => '27329','state_id' => '2372','name' => 'Tutu'),\n \t array('id' => '27330','state_id' => '2372','name' => 'Ulien'),\n \t array('id' => '27331','state_id' => '2373','name' => 'Aur'),\n \t array('id' => '27332','state_id' => '2373','name' => 'Tabal'),\n \t array('id' => '27333','state_id' => '2374','name' => 'Eneu'),\n \t array('id' => '27334','state_id' => '2375','name' => 'Emej'),\n \t array('id' => '27335','state_id' => '2375','name' => 'Enearmij'),\n \t array('id' => '27336','state_id' => '2375','name' => 'Enekoion'),\n \t array('id' => '27337','state_id' => '2375','name' => 'Enilok'),\n \t array('id' => '27338','state_id' => '2375','name' => 'Jittaken'),\n \t array('id' => '27339','state_id' => '2375','name' => 'Jittoen'),\n \t array('id' => '27340','state_id' => '2375','name' => 'Rerok'),\n \t array('id' => '27341','state_id' => '2375','name' => 'Toka'),\n \t array('id' => '27342','state_id' => '2376','name' => 'Enewetak'),\n \t array('id' => '27343','state_id' => '2376','name' => 'Japtan'),\n \t array('id' => '27344','state_id' => '2376','name' => 'Medren'),\n \t array('id' => '27345','state_id' => '2377','name' => 'Jabat'),\n \t array('id' => '27346','state_id' => '2378','name' => 'Ae'),\n \t array('id' => '27347','state_id' => '2378','name' => 'Ajejen'),\n \t array('id' => '27348','state_id' => '2378','name' => 'Anilep'),\n \t array('id' => '27349','state_id' => '2378','name' => 'Arreen'),\n \t array('id' => '27350','state_id' => '2378','name' => 'Bokanake'),\n \t array('id' => '27351','state_id' => '2378','name' => 'Bokkan'),\n \t array('id' => '27352','state_id' => '2378','name' => 'Bukantorak'),\n \t array('id' => '27353','state_id' => '2378','name' => 'Dede'),\n \t array('id' => '27354','state_id' => '2378','name' => 'Ewo'),\n \t array('id' => '27355','state_id' => '2378','name' => 'Imiej'),\n \t array('id' => '27356','state_id' => '2378','name' => 'Imroj'),\n \t array('id' => '27357','state_id' => '2378','name' => 'Jabnoren'),\n \t array('id' => '27358','state_id' => '2378','name' => 'Jabwor'),\n \t array('id' => '27359','state_id' => '2378','name' => 'Jaluit'),\n \t array('id' => '27360','state_id' => '2378','name' => 'Lonone'),\n \t array('id' => '27361','state_id' => '2378','name' => 'Mejatto'),\n \t array('id' => '27362','state_id' => '2378','name' => 'Mejrirok'),\n \t array('id' => '27363','state_id' => '2378','name' => 'Menge'),\n \t array('id' => '27364','state_id' => '2378','name' => 'Nabbe'),\n \t array('id' => '27365','state_id' => '2378','name' => 'Narmej'),\n \t array('id' => '27366','state_id' => '2378','name' => 'Urbaj'),\n \t array('id' => '27367','state_id' => '2379','name' => 'Kili'),\n \t array('id' => '27368','state_id' => '2380','name' => 'Arbwa'),\n \t array('id' => '27369','state_id' => '2380','name' => 'Ebadon'),\n \t array('id' => '27370','state_id' => '2380','name' => 'Ebeye'),\n \t array('id' => '27371','state_id' => '2380','name' => 'Ebjadik'),\n \t array('id' => '27372','state_id' => '2380','name' => 'Ebwaj'),\n \t array('id' => '27373','state_id' => '2380','name' => 'Ennilabegan'),\n \t array('id' => '27374','state_id' => '2380','name' => 'Enubirr'),\n \t array('id' => '27375','state_id' => '2380','name' => 'Enubuj'),\n \t array('id' => '27376','state_id' => '2380','name' => 'Gugeegue'),\n \t array('id' => '27377','state_id' => '2380','name' => 'Mejatto'),\n \t array('id' => '27378','state_id' => '2380','name' => 'Ningi'),\n \t array('id' => '27379','state_id' => '2380','name' => 'North Loi'),\n \t array('id' => '27380','state_id' => '2380','name' => 'Orpap'),\n \t array('id' => '27381','state_id' => '2380','name' => 'South Loi'),\n \t array('id' => '27382','state_id' => '2381','name' => 'Enerein'),\n \t array('id' => '27383','state_id' => '2381','name' => 'Lae'),\n \t array('id' => '27384','state_id' => '2381','name' => 'Lejab'),\n \t array('id' => '27385','state_id' => '2382','name' => 'Lib'),\n \t array('id' => '27386','state_id' => '2383','name' => 'Jebal'),\n \t array('id' => '27387','state_id' => '2383','name' => 'Likiep'),\n \t array('id' => '27388','state_id' => '2383','name' => 'Liklal'),\n \t array('id' => '27389','state_id' => '2383','name' => 'Melang'),\n \t array('id' => '27390','state_id' => '2384','name' => 'Ajeltake'),\n \t array('id' => '27391','state_id' => '2384','name' => 'Aneenwudej'),\n \t array('id' => '27392','state_id' => '2384','name' => 'Aneko'),\n \t array('id' => '27393','state_id' => '2384','name' => 'Arrak'),\n \t array('id' => '27394','state_id' => '2384','name' => 'Biken'),\n \t array('id' => '27395','state_id' => '2384','name' => 'Bokaetoktok'),\n \t array('id' => '27396','state_id' => '2384','name' => 'Denmeo'),\n \t array('id' => '27397','state_id' => '2384','name' => 'Didej'),\n \t array('id' => '27398','state_id' => '2384','name' => 'Ejit'),\n \t array('id' => '27399','state_id' => '2384','name' => 'Enemanet'),\n \t array('id' => '27400','state_id' => '2384','name' => 'Jelter'),\n \t array('id' => '27401','state_id' => '2384','name' => 'Kalalen'),\n \t array('id' => '27402','state_id' => '2384','name' => 'Kemman'),\n \t array('id' => '27403','state_id' => '2384','name' => 'Laura'),\n \t array('id' => '27404','state_id' => '2384','name' => 'Pikiriin'),\n \t array('id' => '27405','state_id' => '2384','name' => 'Rita'),\n \t array('id' => '27406','state_id' => '2384','name' => 'Rongrong'),\n \t array('id' => '27407','state_id' => '2384','name' => 'Woja'),\n \t array('id' => '27408','state_id' => '2385','name' => 'Airok'),\n \t array('id' => '27409','state_id' => '2385','name' => 'Jang'),\n \t array('id' => '27410','state_id' => '2385','name' => 'Kaben'),\n \t array('id' => '27411','state_id' => '2385','name' => 'Tarawa'),\n \t array('id' => '27412','state_id' => '2385','name' => 'Wolot'),\n \t array('id' => '27413','state_id' => '2386','name' => 'Mejit'),\n \t array('id' => '27414','state_id' => '2387','name' => 'Aeloneo'),\n \t array('id' => '27415','state_id' => '2387','name' => 'Anel'),\n \t array('id' => '27416','state_id' => '2387','name' => 'Arbar'),\n \t array('id' => '27417','state_id' => '2387','name' => 'Bar'),\n \t array('id' => '27418','state_id' => '2387','name' => 'Bikonel'),\n \t array('id' => '27419','state_id' => '2387','name' => 'Enajet'),\n \t array('id' => '27420','state_id' => '2387','name' => 'Eoo'),\n \t array('id' => '27421','state_id' => '2387','name' => 'Jabonwod'),\n \t array('id' => '27422','state_id' => '2387','name' => 'Loen'),\n \t array('id' => '27423','state_id' => '2387','name' => 'Lukoj'),\n \t array('id' => '27424','state_id' => '2387','name' => 'Lukonwor'),\n \t array('id' => '27425','state_id' => '2387','name' => 'Mae'),\n \t array('id' => '27426','state_id' => '2387','name' => 'Majkin'),\n \t array('id' => '27427','state_id' => '2387','name' => 'Mili'),\n \t array('id' => '27428','state_id' => '2387','name' => 'Nad'),\n \t array('id' => '27429','state_id' => '2387','name' => 'Nallu'),\n \t array('id' => '27430','state_id' => '2387','name' => 'Tokewa'),\n \t array('id' => '27431','state_id' => '2387','name' => 'Wau'),\n \t array('id' => '27432','state_id' => '2388','name' => 'Namorik'),\n \t array('id' => '27433','state_id' => '2389','name' => 'Namu'),\n \t array('id' => '27434','state_id' => '2390','name' => 'Rongelap'),\n \t array('id' => '27435','state_id' => '2391','name' => 'Ujae'),\n \t array('id' => '27436','state_id' => '2392','name' => 'Utirik'),\n \t array('id' => '27437','state_id' => '2393','name' => 'Wotho'),\n \t array('id' => '27438','state_id' => '2394','name' => 'Didi'),\n \t array('id' => '27439','state_id' => '2394','name' => 'Nibun'),\n \t array('id' => '27440','state_id' => '2394','name' => 'Wormej'),\n \t array('id' => '27441','state_id' => '2394','name' => 'Wotje'),\n \t array('id' => '27442','state_id' => '2395','name' => 'Fort-de-France'),\n \t array('id' => '27443','state_id' => '2395','name' => 'Le Lamentin'),\n \t array('id' => '27444','state_id' => '2395','name' => 'Saint-Joseph'),\n \t array('id' => '27445','state_id' => '2395','name' => 'Schoelcher'),\n \t array('id' => '27446','state_id' => '2398','name' => 'Le Morne-Rouge'),\n \t array('id' => '27447','state_id' => '2398','name' => 'Saint-Pierre'),\n \t array('id' => '27448','state_id' => '2399','name' => 'Atar'),\n \t array('id' => '27449','state_id' => '2399','name' => 'Shingati'),\n \t array('id' => '27450','state_id' => '2400','name' => 'Kifah'),\n \t array('id' => '27451','state_id' => '2401','name' => 'Alaq'),\n \t array('id' => '27452','state_id' => '2401','name' => 'Buqah'),\n \t array('id' => '27453','state_id' => '2401','name' => 'Magta\\' Lahjar'),\n \t array('id' => '27454','state_id' => '2403','name' => '\\'Ayun-al-\\'Atrus'),\n \t array('id' => '27455','state_id' => '2403','name' => 'Kubanni'),\n \t array('id' => '27456','state_id' => '2404','name' => 'Timbedra'),\n \t array('id' => '27457','state_id' => '2404','name' => 'Walatah'),\n \t array('id' => '27458','state_id' => '2404','name' => 'an-Na\\'mah'),\n \t array('id' => '27459','state_id' => '2405','name' => 'Aqjawajat'),\n \t array('id' => '27460','state_id' => '2406','name' => 'Nawakshut'),\n \t array('id' => '27461','state_id' => '2407','name' => 'Hsay Walad \\'Ali Babi'),\n \t array('id' => '27462','state_id' => '2408','name' => 'Kayhaydi'),\n \t array('id' => '27463','state_id' => '2409','name' => 'Tijiqjah'),\n \t array('id' => '27464','state_id' => '2411','name' => 'Rusu'),\n \t array('id' => '27465','state_id' => '2414','name' => 'Bel Air'),\n \t array('id' => '27466','state_id' => '2414','name' => 'Bon Accueil'),\n \t array('id' => '27467','state_id' => '2414','name' => 'Brisee Verdiere'),\n \t array('id' => '27468','state_id' => '2414','name' => 'Camp Ithier'),\n \t array('id' => '27469','state_id' => '2414','name' => 'Camp de Masque'),\n \t array('id' => '27470','state_id' => '2414','name' => 'Camp de Masque Pave'),\n \t array('id' => '27471','state_id' => '2414','name' => 'Central Flacq'),\n \t array('id' => '27472','state_id' => '2414','name' => 'Clemencia'),\n \t array('id' => '27473','state_id' => '2414','name' => 'Ecroignard'),\n \t array('id' => '27474','state_id' => '2414','name' => 'Grand River South East'),\n \t array('id' => '27475','state_id' => '2414','name' => 'Lalmatie'),\n \t array('id' => '27476','state_id' => '2414','name' => 'Laventure'),\n \t array('id' => '27477','state_id' => '2414','name' => 'Mare La Chaux'),\n \t array('id' => '27478','state_id' => '2414','name' => 'Medine-Camp de Masque'),\n \t array('id' => '27479','state_id' => '2414','name' => 'Olivia'),\n \t array('id' => '27480','state_id' => '2414','name' => 'Poste de Flacq'),\n \t array('id' => '27481','state_id' => '2414','name' => 'Quatre Cocos'),\n \t array('id' => '27482','state_id' => '2414','name' => 'Quatre Soeurs'),\n \t array('id' => '27483','state_id' => '2414','name' => 'Queen Victoria'),\n \t array('id' => '27484','state_id' => '2414','name' => 'Saint Julien'),\n \t array('id' => '27485','state_id' => '2414','name' => 'Saint Julien d\\'Hotman'),\n \t array('id' => '27486','state_id' => '2414','name' => 'Sebastopol'),\n \t array('id' => '27487','state_id' => '2414','name' => 'Trou d\\'Eau Douce'),\n \t array('id' => '27488','state_id' => '2415','name' => 'Floreal'),\n \t array('id' => '27489','state_id' => '2417','name' => 'Camp Thorel'),\n \t array('id' => '27490','state_id' => '2417','name' => 'Dagotiere'),\n \t array('id' => '27491','state_id' => '2417','name' => 'Dubreuil'),\n \t array('id' => '27492','state_id' => '2417','name' => 'Esperance'),\n \t array('id' => '27493','state_id' => '2417','name' => 'L\\'Avenir'),\n \t array('id' => '27494','state_id' => '2417','name' => 'La Laura-Malenga'),\n \t array('id' => '27495','state_id' => '2417','name' => 'Melrose'),\n \t array('id' => '27496','state_id' => '2417','name' => 'Moka'),\n \t array('id' => '27497','state_id' => '2417','name' => 'Montagne Blanche'),\n \t array('id' => '27498','state_id' => '2417','name' => 'Pailles'),\n \t array('id' => '27499','state_id' => '2417','name' => 'Providence'),\n \t array('id' => '27500','state_id' => '2417','name' => 'Quartier Militaire'),\n \t array('id' => '27501','state_id' => '2417','name' => 'Ripailles'),\n \t array('id' => '27502','state_id' => '2417','name' => 'Saint Pierre'),\n \t array('id' => '27503','state_id' => '2417','name' => 'Verdun'),\n \t array('id' => '27504','state_id' => '2418','name' => 'Arsenal'),\n \t array('id' => '27505','state_id' => '2418','name' => 'Baie du Tombeau'),\n \t array('id' => '27506','state_id' => '2418','name' => 'Calebasses'),\n \t array('id' => '27507','state_id' => '2418','name' => 'Congomah'),\n \t array('id' => '27508','state_id' => '2418','name' => 'Creve Coeur'),\n \t array('id' => '27509','state_id' => '2418','name' => 'D\\'Epinay'),\n \t array('id' => '27510','state_id' => '2418','name' => 'Fond du Sac'),\n \t array('id' => '27511','state_id' => '2418','name' => 'La Tour Koenig'),\n \t array('id' => '27512','state_id' => '2418','name' => 'Le Hochet'),\n \t array('id' => '27513','state_id' => '2418','name' => 'Long Mountain'),\n \t array('id' => '27514','state_id' => '2418','name' => 'Morcellement Saint Andre'),\n \t array('id' => '27515','state_id' => '2418','name' => 'Notre Dame'),\n \t array('id' => '27516','state_id' => '2418','name' => 'Pamplemousse'),\n \t array('id' => '27517','state_id' => '2418','name' => 'Plaines des Papayes'),\n \t array('id' => '27518','state_id' => '2418','name' => 'Pointe aux Piments'),\n \t array('id' => '27519','state_id' => '2418','name' => 'Terre Rouge'),\n \t array('id' => '27520','state_id' => '2418','name' => 'Triolet'),\n \t array('id' => '27521','state_id' => '2418','name' => 'Villebague'),\n \t array('id' => '27522','state_id' => '2422','name' => 'Baie Malgache'),\n \t array('id' => '27523','state_id' => '2422','name' => 'Coromandel-Graviers'),\n \t array('id' => '27524','state_id' => '2422','name' => 'Grand Baie-Montagne Goyaves'),\n \t array('id' => '27525','state_id' => '2422','name' => 'La Ferme'),\n \t array('id' => '27526','state_id' => '2422','name' => 'Lataniers-Mont Lubin'),\n \t array('id' => '27527','state_id' => '2422','name' => 'Mangues-Quatre Vents'),\n \t array('id' => '27528','state_id' => '2422','name' => 'Oyster Bay'),\n \t array('id' => '27529','state_id' => '2422','name' => 'Petit Gabriel'),\n \t array('id' => '27530','state_id' => '2422','name' => 'Piments-Baie Topaze'),\n \t array('id' => '27531','state_id' => '2422','name' => 'Plaine Corail-La Fouche Corail'),\n \t array('id' => '27532','state_id' => '2422','name' => 'Port Mathurin'),\n \t array('id' => '27533','state_id' => '2422','name' => 'Port Sud-Est'),\n \t array('id' => '27534','state_id' => '2422','name' => 'Riviere Cocos'),\n \t array('id' => '27535','state_id' => '2422','name' => 'Roche Bon Dieu-Trefles'),\n \t array('id' => '27536','state_id' => '2424','name' => 'Baie du Cap'),\n \t array('id' => '27537','state_id' => '2424','name' => 'Bel Ombre'),\n \t array('id' => '27538','state_id' => '2424','name' => 'Benares'),\n \t array('id' => '27539','state_id' => '2424','name' => 'Bois Cheri'),\n \t array('id' => '27540','state_id' => '2424','name' => 'Britannia'),\n \t array('id' => '27541','state_id' => '2424','name' => 'Camp Diable'),\n \t array('id' => '27542','state_id' => '2424','name' => 'Chamouny'),\n \t array('id' => '27543','state_id' => '2424','name' => 'Chemin Grenier'),\n \t array('id' => '27544','state_id' => '2424','name' => 'Grand Bois'),\n \t array('id' => '27545','state_id' => '2424','name' => 'Riviere des Anguilles'),\n \t array('id' => '27546','state_id' => '2424','name' => 'Saint Aubin'),\n \t array('id' => '27547','state_id' => '2424','name' => 'Souillac'),\n \t array('id' => '27548','state_id' => '2424','name' => 'Surinam'),\n \t array('id' => '27549','state_id' => '2425','name' => 'Acoua'),\n \t array('id' => '27550','state_id' => '2425','name' => 'Bandraboua'),\n \t array('id' => '27551','state_id' => '2425','name' => 'Bandrele'),\n \t array('id' => '27552','state_id' => '2425','name' => 'Boueni'),\n \t array('id' => '27553','state_id' => '2425','name' => 'Chiconi'),\n \t array('id' => '27554','state_id' => '2425','name' => 'Chirongui'),\n \t array('id' => '27555','state_id' => '2425','name' => 'Dembeni'),\n \t array('id' => '27556','state_id' => '2425','name' => 'Kanikeli'),\n \t array('id' => '27557','state_id' => '2425','name' => 'Koungou'),\n \t array('id' => '27558','state_id' => '2425','name' => 'Mamoudzou'),\n \t array('id' => '27559','state_id' => '2425','name' => 'Mtsamboro'),\n \t array('id' => '27560','state_id' => '2425','name' => 'Mtsangamouji'),\n \t array('id' => '27561','state_id' => '2425','name' => 'Ouangani'),\n \t array('id' => '27562','state_id' => '2425','name' => 'Sada'),\n \t array('id' => '27563','state_id' => '2425','name' => 'Tsingoni'),\n \t array('id' => '27564','state_id' => '2426','name' => 'Dzaoudzi'),\n \t array('id' => '27565','state_id' => '2426','name' => 'Pamanzi'),\n \t array('id' => '27566','state_id' => '2427','name' => 'Aguascalientes'),\n \t array('id' => '27567','state_id' => '2427','name' => 'Asientos'),\n \t array('id' => '27568','state_id' => '2427','name' => 'Calvillo'),\n \t array('id' => '27569','state_id' => '2427','name' => 'Cosio'),\n \t array('id' => '27570','state_id' => '2427','name' => 'Margaritas'),\n \t array('id' => '27571','state_id' => '2427','name' => 'Ojocaliente'),\n \t array('id' => '27572','state_id' => '2427','name' => 'Pabellon de Arteaga'),\n \t array('id' => '27573','state_id' => '2427','name' => 'Pabellon de Hidalgo'),\n \t array('id' => '27574','state_id' => '2427','name' => 'Palo Alto'),\n \t array('id' => '27575','state_id' => '2427','name' => 'Rincon de Romos'),\n \t array('id' => '27576','state_id' => '2427','name' => 'San Francisco de los Romo'),\n \t array('id' => '27577','state_id' => '2427','name' => 'San Jose de Gracia'),\n \t array('id' => '27578','state_id' => '2427','name' => 'Tepezala'),\n \t array('id' => '27579','state_id' => '2427','name' => 'Villa Juarez'),\n \t array('id' => '27580','state_id' => '2430','name' => 'Becal'),\n \t array('id' => '27581','state_id' => '2430','name' => 'Bolonchen'),\n \t array('id' => '27582','state_id' => '2430','name' => 'Calkini'),\n \t array('id' => '27583','state_id' => '2430','name' => 'Campeche'),\n \t array('id' => '27584','state_id' => '2430','name' => 'Candelaria'),\n \t array('id' => '27585','state_id' => '2430','name' => 'Carmen'),\n \t array('id' => '27586','state_id' => '2430','name' => 'Champoton'),\n \t array('id' => '27587','state_id' => '2430','name' => 'China'),\n \t array('id' => '27588','state_id' => '2430','name' => 'Dzitbalche'),\n \t array('id' => '27589','state_id' => '2430','name' => 'Escarcega'),\n \t array('id' => '27590','state_id' => '2430','name' => 'Hecelchakan'),\n \t array('id' => '27591','state_id' => '2430','name' => 'Hopelchen'),\n \t array('id' => '27592','state_id' => '2430','name' => 'Isla Aguada'),\n \t array('id' => '27593','state_id' => '2430','name' => 'Nuevo Progreso'),\n \t array('id' => '27594','state_id' => '2430','name' => 'Nunkini'),\n \t array('id' => '27595','state_id' => '2430','name' => 'Palizada'),\n \t array('id' => '27596','state_id' => '2430','name' => 'Pomuch'),\n \t array('id' => '27597','state_id' => '2430','name' => 'Sabancuy'),\n \t array('id' => '27598','state_id' => '2430','name' => 'Seybaplaya'),\n \t array('id' => '27599','state_id' => '2430','name' => 'Tenabo'),\n \t array('id' => '27600','state_id' => '2431','name' => 'Acacoyagua'),\n \t array('id' => '27601','state_id' => '2431','name' => 'Acala'),\n \t array('id' => '27602','state_id' => '2431','name' => 'Acapetahua'),\n \t array('id' => '27603','state_id' => '2431','name' => 'Altamirano'),\n \t array('id' => '27604','state_id' => '2431','name' => 'Alvaro Obregon'),\n \t array('id' => '27605','state_id' => '2431','name' => 'Amatan'),\n \t array('id' => '27606','state_id' => '2431','name' => 'Amatenango del Valle'),\n \t array('id' => '27607','state_id' => '2431','name' => 'Arriaga'),\n \t array('id' => '27608','state_id' => '2431','name' => 'Benemerito de las Americas'),\n \t array('id' => '27609','state_id' => '2431','name' => 'Berriozabal'),\n \t array('id' => '27610','state_id' => '2431','name' => 'Bochil'),\n \t array('id' => '27611','state_id' => '2431','name' => 'Cacahoatan'),\n \t array('id' => '27612','state_id' => '2431','name' => 'Cancuc'),\n \t array('id' => '27613','state_id' => '2431','name' => 'Catazaja'),\n \t array('id' => '27614','state_id' => '2431','name' => 'Chalchihiutan'),\n \t array('id' => '27615','state_id' => '2431','name' => 'Chanal'),\n \t array('id' => '27616','state_id' => '2431','name' => 'Chiapa'),\n \t array('id' => '27617','state_id' => '2431','name' => 'Chiapilla'),\n \t array('id' => '27618','state_id' => '2431','name' => 'Chicomuselo'),\n \t array('id' => '27619','state_id' => '2431','name' => 'Chilon'),\n \t array('id' => '27620','state_id' => '2431','name' => 'Cintalapa'),\n \t array('id' => '27621','state_id' => '2431','name' => 'Comaltitlan'),\n \t array('id' => '27622','state_id' => '2431','name' => 'Comitan'),\n \t array('id' => '27623','state_id' => '2431','name' => 'Copainala'),\n \t array('id' => '27624','state_id' => '2431','name' => 'Copoya'),\n \t array('id' => '27625','state_id' => '2431','name' => 'Cristobal Obregon'),\n \t array('id' => '27626','state_id' => '2431','name' => 'El Bosque'),\n \t array('id' => '27627','state_id' => '2431','name' => 'El Parral'),\n \t array('id' => '27628','state_id' => '2431','name' => 'Escuintla'),\n \t array('id' => '27629','state_id' => '2431','name' => 'Frontera Comalapa'),\n \t array('id' => '27630','state_id' => '2431','name' => 'Frontera Corozal'),\n \t array('id' => '27631','state_id' => '2431','name' => 'Frontera Hidalgo'),\n \t array('id' => '27632','state_id' => '2431','name' => 'Huehuetan'),\n \t array('id' => '27633','state_id' => '2431','name' => 'Huehuetan Estacion'),\n \t array('id' => '27634','state_id' => '2431','name' => 'Huixtla'),\n \t array('id' => '27635','state_id' => '2431','name' => 'Ixhuatan'),\n \t array('id' => '27636','state_id' => '2431','name' => 'Ixtacomitan'),\n \t array('id' => '27637','state_id' => '2431','name' => 'Ixtapa'),\n \t array('id' => '27638','state_id' => '2431','name' => 'Jaltenango'),\n \t array('id' => '27639','state_id' => '2431','name' => 'Jesus Maria Garza'),\n \t array('id' => '27640','state_id' => '2431','name' => 'Jiquipilas'),\n \t array('id' => '27641','state_id' => '2431','name' => 'Jitotol'),\n \t array('id' => '27642','state_id' => '2431','name' => 'Juarez'),\n \t array('id' => '27643','state_id' => '2431','name' => 'La Concordia'),\n \t array('id' => '27644','state_id' => '2431','name' => 'La Libertad'),\n \t array('id' => '27645','state_id' => '2431','name' => 'La Trinitaria'),\n \t array('id' => '27646','state_id' => '2431','name' => 'Las Margaritas'),\n \t array('id' => '27647','state_id' => '2431','name' => 'Las Rosas'),\n \t array('id' => '27648','state_id' => '2431','name' => 'Mapastepec'),\n \t array('id' => '27649','state_id' => '2431','name' => 'Mazatan'),\n \t array('id' => '27650','state_id' => '2431','name' => 'Motozintla'),\n \t array('id' => '27651','state_id' => '2431','name' => 'Navenchauc'),\n \t array('id' => '27652','state_id' => '2431','name' => 'Nicolas Ruiz'),\n \t array('id' => '27653','state_id' => '2431','name' => 'Ocosingo'),\n \t array('id' => '27654','state_id' => '2431','name' => 'Ocotepec'),\n \t array('id' => '27655','state_id' => '2431','name' => 'Ocozocoautla'),\n \t array('id' => '27656','state_id' => '2431','name' => 'Ostuacan'),\n \t array('id' => '27657','state_id' => '2431','name' => 'Oxchuc'),\n \t array('id' => '27658','state_id' => '2431','name' => 'Palenque'),\n \t array('id' => '27659','state_id' => '2431','name' => 'Palestina'),\n \t array('id' => '27660','state_id' => '2431','name' => 'Pantelho'),\n \t array('id' => '27661','state_id' => '2431','name' => 'Paredon'),\n \t array('id' => '27662','state_id' => '2431','name' => 'Petalcingo'),\n \t array('id' => '27663','state_id' => '2431','name' => 'Pichucalco'),\n \t array('id' => '27664','state_id' => '2431','name' => 'Pijijiapan'),\n \t array('id' => '27665','state_id' => '2431','name' => 'Pueblo Nuevo Solistahuacan'),\n \t array('id' => '27666','state_id' => '2431','name' => 'Puerto Madero'),\n \t array('id' => '27667','state_id' => '2431','name' => 'Pujiltic'),\n \t array('id' => '27668','state_id' => '2431','name' => 'Raudales Malpaso'),\n \t array('id' => '27669','state_id' => '2431','name' => 'Rayon'),\n \t array('id' => '27670','state_id' => '2431','name' => 'Reforma'),\n \t array('id' => '27671','state_id' => '2431','name' => 'Revolucion Mexicana'),\n \t array('id' => '27672','state_id' => '2431','name' => 'Rincon Chamula'),\n \t array('id' => '27673','state_id' => '2431','name' => 'Salto de Agua'),\n \t array('id' => '27674','state_id' => '2431','name' => 'San Cristobal de las Casas'),\n \t array('id' => '27675','state_id' => '2431','name' => 'San Fernando'),\n \t array('id' => '27676','state_id' => '2431','name' => 'San Lucas'),\n \t array('id' => '27677','state_id' => '2431','name' => 'San Pedro Buenavista'),\n \t array('id' => '27678','state_id' => '2431','name' => 'Simojovel'),\n \t array('id' => '27679','state_id' => '2431','name' => 'Socoltenango'),\n \t array('id' => '27680','state_id' => '2431','name' => 'Soyalo'),\n \t array('id' => '27681','state_id' => '2431','name' => 'Suchiapa'),\n \t array('id' => '27682','state_id' => '2431','name' => 'Suchiate'),\n \t array('id' => '27683','state_id' => '2431','name' => 'Tapachula'),\n \t array('id' => '27684','state_id' => '2431','name' => 'Tapilula'),\n \t array('id' => '27685','state_id' => '2431','name' => 'Tecpatan'),\n \t array('id' => '27686','state_id' => '2431','name' => 'Tenango'),\n \t array('id' => '27687','state_id' => '2431','name' => 'Teopisca'),\n \t array('id' => '27688','state_id' => '2431','name' => 'Tila'),\n \t array('id' => '27689','state_id' => '2431','name' => 'Tonala'),\n \t array('id' => '27690','state_id' => '2431','name' => 'Totolapa'),\n \t array('id' => '27691','state_id' => '2431','name' => 'Tres Picos'),\n \t array('id' => '27692','state_id' => '2431','name' => 'Tuxtla Chico'),\n \t array('id' => '27693','state_id' => '2431','name' => 'Tuxtla Gutierrez'),\n \t array('id' => '27694','state_id' => '2431','name' => 'Tzimol'),\n \t array('id' => '27695','state_id' => '2431','name' => 'Veinte de Noviembre'),\n \t array('id' => '27696','state_id' => '2431','name' => 'Venustiano Carranza'),\n \t array('id' => '27697','state_id' => '2431','name' => 'Villa Corzo'),\n \t array('id' => '27698','state_id' => '2431','name' => 'Villaflores'),\n \t array('id' => '27699','state_id' => '2431','name' => 'Yajalon'),\n \t array('id' => '27700','state_id' => '2431','name' => 'Zinacantan'),\n \t array('id' => '27701','state_id' => '2432','name' => 'Adolfo Lopez Mateos'),\n \t array('id' => '27702','state_id' => '2432','name' => 'Ahumada'),\n \t array('id' => '27703','state_id' => '2432','name' => 'Anahuac'),\n \t array('id' => '27704','state_id' => '2432','name' => 'Ascension'),\n \t array('id' => '27705','state_id' => '2432','name' => 'Benito Juarez'),\n \t array('id' => '27706','state_id' => '2432','name' => 'Camargo'),\n \t array('id' => '27707','state_id' => '2432','name' => 'Carichi'),\n \t array('id' => '27708','state_id' => '2432','name' => 'Casas Grandes'),\n \t array('id' => '27709','state_id' => '2432','name' => 'Chihuahua'),\n \t array('id' => '27710','state_id' => '2432','name' => 'Colonia Municipio Libre'),\n \t array('id' => '27711','state_id' => '2432','name' => 'Creel'),\n \t array('id' => '27712','state_id' => '2432','name' => 'Cuauhtemoc'),\n \t array('id' => '27713','state_id' => '2432','name' => 'Delicias'),\n \t array('id' => '27714','state_id' => '2432','name' => 'El Largo'),\n \t array('id' => '27715','state_id' => '2432','name' => 'Guachochi'),\n \t array('id' => '27716','state_id' => '2432','name' => 'Guadalupe'),\n \t array('id' => '27717','state_id' => '2432','name' => 'Guadalupe y Calvo'),\n \t array('id' => '27718','state_id' => '2432','name' => 'Hermenegildo Galeana'),\n \t array('id' => '27719','state_id' => '2432','name' => 'Hidalgo'),\n \t array('id' => '27720','state_id' => '2432','name' => 'Ignacio Zaragoza'),\n \t array('id' => '27721','state_id' => '2432','name' => 'Jimenez'),\n \t array('id' => '27722','state_id' => '2432','name' => 'Juan Aldama'),\n \t array('id' => '27723','state_id' => '2432','name' => 'Juarez'),\n \t array('id' => '27724','state_id' => '2432','name' => 'Lazaro Cardenas'),\n \t array('id' => '27725','state_id' => '2432','name' => 'Madera'),\n \t array('id' => '27726','state_id' => '2432','name' => 'Majimachi'),\n \t array('id' => '27727','state_id' => '2432','name' => 'Meoqui'),\n \t array('id' => '27728','state_id' => '2432','name' => 'Naica'),\n \t array('id' => '27729','state_id' => '2432','name' => 'Nuevo Casas Grandes'),\n \t array('id' => '27730','state_id' => '2432','name' => 'Octaviano Lopez'),\n \t array('id' => '27731','state_id' => '2432','name' => 'Ojinaga'),\n \t array('id' => '27732','state_id' => '2432','name' => 'Praxedis Guerrero'),\n \t array('id' => '27733','state_id' => '2432','name' => 'Puerto Palomas'),\n \t array('id' => '27734','state_id' => '2432','name' => 'Puerto de Anapra'),\n \t array('id' => '27735','state_id' => '2432','name' => 'San Buenaventura'),\n \t array('id' => '27736','state_id' => '2432','name' => 'San Francisco el Oro'),\n \t array('id' => '27737','state_id' => '2432','name' => 'Santa Barbara'),\n \t array('id' => '27738','state_id' => '2432','name' => 'Santa Cruz de Rosales'),\n \t array('id' => '27739','state_id' => '2432','name' => 'Saucillo'),\n \t array('id' => '27740','state_id' => '2432','name' => 'Valentin Gomez Farias'),\n \t array('id' => '27741','state_id' => '2432','name' => 'Valle de Allende'),\n \t array('id' => '27742','state_id' => '2432','name' => 'Vicente Guerrero'),\n \t array('id' => '27743','state_id' => '2433','name' => 'Acuna'),\n \t array('id' => '27744','state_id' => '2433','name' => 'Allende'),\n \t array('id' => '27745','state_id' => '2433','name' => 'Arteaga'),\n \t array('id' => '27746','state_id' => '2433','name' => 'Castanos'),\n \t array('id' => '27747','state_id' => '2433','name' => 'Concordia'),\n \t array('id' => '27748','state_id' => '2433','name' => 'Cuatrocienagas'),\n \t array('id' => '27749','state_id' => '2433','name' => 'El Coyote'),\n \t array('id' => '27750','state_id' => '2433','name' => 'Frontera'),\n \t array('id' => '27751','state_id' => '2433','name' => 'General Cepeda'),\n \t array('id' => '27752','state_id' => '2433','name' => 'Hercules'),\n \t array('id' => '27753','state_id' => '2433','name' => 'Matamoros'),\n \t array('id' => '27754','state_id' => '2433','name' => 'Minas de Barroteran'),\n \t array('id' => '27755','state_id' => '2433','name' => 'Monclova'),\n \t array('id' => '27756','state_id' => '2433','name' => 'Muzquiz'),\n \t array('id' => '27757','state_id' => '2433','name' => 'Nadadores'),\n \t array('id' => '27758','state_id' => '2433','name' => 'Nava'),\n \t array('id' => '27759','state_id' => '2433','name' => 'Nueva Rosita'),\n \t array('id' => '27760','state_id' => '2433','name' => 'Ocampo'),\n \t array('id' => '27761','state_id' => '2433','name' => 'Palau'),\n \t array('id' => '27762','state_id' => '2433','name' => 'Parras'),\n \t array('id' => '27763','state_id' => '2433','name' => 'Piedras Negras'),\n \t array('id' => '27764','state_id' => '2433','name' => 'Ramos Arizpe'),\n \t array('id' => '27765','state_id' => '2433','name' => 'Sabinas'),\n \t array('id' => '27766','state_id' => '2433','name' => 'Saltillo'),\n \t array('id' => '27767','state_id' => '2433','name' => 'San Buenaventura'),\n \t array('id' => '27768','state_id' => '2433','name' => 'San Pedro'),\n \t array('id' => '27769','state_id' => '2433','name' => 'Torreon'),\n \t array('id' => '27770','state_id' => '2433','name' => 'Venustiano Carranza'),\n \t array('id' => '27771','state_id' => '2433','name' => 'Viesca'),\n \t array('id' => '27772','state_id' => '2433','name' => 'Villa Madero'),\n \t array('id' => '27773','state_id' => '2433','name' => 'Villa Union'),\n \t array('id' => '27774','state_id' => '2433','name' => 'Zaragoza'),\n \t array('id' => '27775','state_id' => '2434','name' => 'Armeria'),\n \t array('id' => '27776','state_id' => '2434','name' => 'Cofradia'),\n \t array('id' => '27777','state_id' => '2434','name' => 'Colima'),\n \t array('id' => '27778','state_id' => '2434','name' => 'Colonia Bayardo'),\n \t array('id' => '27779','state_id' => '2434','name' => 'Comala'),\n \t array('id' => '27780','state_id' => '2434','name' => 'Coquimatlan'),\n \t array('id' => '27781','state_id' => '2434','name' => 'Cuauhtemoc'),\n \t array('id' => '27782','state_id' => '2434','name' => 'El Colomo'),\n \t array('id' => '27783','state_id' => '2434','name' => 'Madrid'),\n \t array('id' => '27784','state_id' => '2434','name' => 'Manzanillo'),\n \t array('id' => '27785','state_id' => '2434','name' => 'Minatitlan'),\n \t array('id' => '27786','state_id' => '2434','name' => 'Queseria'),\n \t array('id' => '27787','state_id' => '2434','name' => 'Suchitlan'),\n \t array('id' => '27788','state_id' => '2434','name' => 'Tecoman'),\n \t array('id' => '27789','state_id' => '2434','name' => 'Villa de Alvarez'),\n \t array('id' => '27790','state_id' => '2436','name' => 'Bermejillo'),\n \t array('id' => '27791','state_id' => '2436','name' => 'Canatlan'),\n \t array('id' => '27792','state_id' => '2436','name' => 'Cuencame'),\n \t array('id' => '27793','state_id' => '2436','name' => 'Durango'),\n \t array('id' => '27794','state_id' => '2436','name' => 'Gomez Palacio'),\n \t array('id' => '27795','state_id' => '2436','name' => 'Guadalupe Victoria'),\n \t array('id' => '27796','state_id' => '2436','name' => 'Juarez'),\n \t array('id' => '27797','state_id' => '2436','name' => 'Lerdo'),\n \t array('id' => '27798','state_id' => '2436','name' => 'Mapimi'),\n \t array('id' => '27799','state_id' => '2436','name' => 'Nazareno'),\n \t array('id' => '27800','state_id' => '2436','name' => 'Nazas'),\n \t array('id' => '27801','state_id' => '2436','name' => 'Nombre de Dios'),\n \t array('id' => '27802','state_id' => '2436','name' => 'Nuevo Ideal'),\n \t array('id' => '27803','state_id' => '2436','name' => 'Ocampo'),\n \t array('id' => '27804','state_id' => '2436','name' => 'Panuco'),\n \t array('id' => '27805','state_id' => '2436','name' => 'Papasquiaro'),\n \t array('id' => '27806','state_id' => '2436','name' => 'Penon Blanco'),\n \t array('id' => '27807','state_id' => '2436','name' => 'Poanas'),\n \t array('id' => '27808','state_id' => '2436','name' => 'Pueblo Nuevo'),\n \t array('id' => '27809','state_id' => '2436','name' => 'Rodeo'),\n \t array('id' => '27810','state_id' => '2436','name' => 'Santa Catarina de Tepehuanes'),\n \t array('id' => '27811','state_id' => '2436','name' => 'Santa Clara'),\n \t array('id' => '27812','state_id' => '2436','name' => 'Santa Maria del Oro'),\n \t array('id' => '27813','state_id' => '2436','name' => 'Suchil'),\n \t array('id' => '27814','state_id' => '2436','name' => 'Tayoltita'),\n \t array('id' => '27815','state_id' => '2436','name' => 'Tlahualilo'),\n \t array('id' => '27816','state_id' => '2436','name' => 'Vicente Guerrero'),\n \t array('id' => '27817','state_id' => '2438','name' => 'Abasolo'),\n \t array('id' => '27818','state_id' => '2438','name' => 'Acambaro'),\n \t array('id' => '27819','state_id' => '2438','name' => 'Aldama'),\n \t array('id' => '27820','state_id' => '2438','name' => 'Allende'),\n \t array('id' => '27821','state_id' => '2438','name' => 'Antonio Rodriguez'),\n \t array('id' => '27822','state_id' => '2438','name' => 'Apaseo el Alto'),\n \t array('id' => '27823','state_id' => '2438','name' => 'Apaseo el Grande'),\n \t array('id' => '27824','state_id' => '2438','name' => 'Celaya'),\n \t array('id' => '27825','state_id' => '2438','name' => 'Centro Familiar la Soledad'),\n \t array('id' => '27826','state_id' => '2438','name' => 'Cerano'),\n \t array('id' => '27827','state_id' => '2438','name' => 'Cerro Gordo'),\n \t array('id' => '27828','state_id' => '2438','name' => 'Colonias Nuevo Mexico'),\n \t array('id' => '27829','state_id' => '2438','name' => 'Comonfort'),\n \t array('id' => '27830','state_id' => '2438','name' => 'Coroneo'),\n \t array('id' => '27831','state_id' => '2438','name' => 'Cortazar'),\n \t array('id' => '27832','state_id' => '2438','name' => 'Cueramaro'),\n \t array('id' => '27833','state_id' => '2438','name' => 'Doctor Mora'),\n \t array('id' => '27834','state_id' => '2438','name' => 'Dolores Hidalgo'),\n \t array('id' => '27835','state_id' => '2438','name' => 'Duarte'),\n \t array('id' => '27836','state_id' => '2438','name' => 'El Sabino'),\n \t array('id' => '27837','state_id' => '2438','name' => 'Escobedo'),\n \t array('id' => '27838','state_id' => '2438','name' => 'Guanajuato'),\n \t array('id' => '27839','state_id' => '2438','name' => 'Huanimaro'),\n \t array('id' => '27840','state_id' => '2438','name' => 'Iramuco'),\n \t array('id' => '27841','state_id' => '2438','name' => 'Irapuato'),\n \t array('id' => '27842','state_id' => '2438','name' => 'Jaral del Progreso'),\n \t array('id' => '27843','state_id' => '2438','name' => 'Jerecuaro'),\n \t array('id' => '27844','state_id' => '2438','name' => 'Juventino Rosas'),\n \t array('id' => '27845','state_id' => '2438','name' => 'La Aldea'),\n \t array('id' => '27846','state_id' => '2438','name' => 'La Calera'),\n \t array('id' => '27847','state_id' => '2438','name' => 'La Ermita'),\n \t array('id' => '27848','state_id' => '2438','name' => 'La Moncada'),\n \t array('id' => '27849','state_id' => '2438','name' => 'Leon'),\n \t array('id' => '27850','state_id' => '2438','name' => 'Loma Pelada'),\n \t array('id' => '27851','state_id' => '2438','name' => 'Manuel Doblado'),\n \t array('id' => '27852','state_id' => '2438','name' => 'Maravatio'),\n \t array('id' => '27853','state_id' => '2438','name' => 'Marfil'),\n \t array('id' => '27854','state_id' => '2438','name' => 'Medina'),\n \t array('id' => '27855','state_id' => '2438','name' => 'Mexicanos'),\n \t array('id' => '27856','state_id' => '2438','name' => 'Moroleon'),\n \t array('id' => '27857','state_id' => '2438','name' => 'Ocampo'),\n \t array('id' => '27858','state_id' => '2438','name' => 'Octopan'),\n \t array('id' => '27859','state_id' => '2438','name' => 'Pacueco'),\n \t array('id' => '27860','state_id' => '2438','name' => 'Palo Verde'),\n \t array('id' => '27861','state_id' => '2438','name' => 'Paracuaro'),\n \t array('id' => '27862','state_id' => '2438','name' => 'Penjamo'),\n \t array('id' => '27863','state_id' => '2438','name' => 'Plan de Ayala'),\n \t array('id' => '27864','state_id' => '2438','name' => 'Pueblo Nuevo'),\n \t array('id' => '27865','state_id' => '2438','name' => 'Purisima de Bustos'),\n \t array('id' => '27866','state_id' => '2438','name' => 'Rincon de Tamayo'),\n \t array('id' => '27867','state_id' => '2438','name' => 'Romita'),\n \t array('id' => '27868','state_id' => '2438','name' => 'Salamanca'),\n \t array('id' => '27869','state_id' => '2438','name' => 'Salvatierra'),\n \t array('id' => '27870','state_id' => '2438','name' => 'San Bartolo de Berrios'),\n \t array('id' => '27871','state_id' => '2438','name' => 'San Cristobal'),\n \t array('id' => '27872','state_id' => '2438','name' => 'San Diego de la Union'),\n \t array('id' => '27873','state_id' => '2438','name' => 'San Felipe'),\n \t array('id' => '27874','state_id' => '2438','name' => 'San Francisco del Rincon'),\n \t array('id' => '27875','state_id' => '2438','name' => 'San Jose Agua Azul'),\n \t array('id' => '27876','state_id' => '2438','name' => 'San Jose Iturbide'),\n \t array('id' => '27877','state_id' => '2438','name' => 'San Jose Temascatio'),\n \t array('id' => '27878','state_id' => '2438','name' => 'San Juan de la Vega'),\n \t array('id' => '27879','state_id' => '2438','name' => 'San Luis de la Paz'),\n \t array('id' => '27880','state_id' => '2438','name' => 'San Nicolas de los Agustinos'),\n \t array('id' => '27881','state_id' => '2438','name' => 'San Pedro de los Naranjos'),\n \t array('id' => '27882','state_id' => '2438','name' => 'San Roque'),\n \t array('id' => '27883','state_id' => '2438','name' => 'Santa Teresa'),\n \t array('id' => '27884','state_id' => '2438','name' => 'Santiago de Cuenda'),\n \t array('id' => '27885','state_id' => '2438','name' => 'Sarabia'),\n \t array('id' => '27886','state_id' => '2438','name' => 'Silao'),\n \t array('id' => '27887','state_id' => '2438','name' => 'Tarandacuao'),\n \t array('id' => '27888','state_id' => '2438','name' => 'Tarimoro'),\n \t array('id' => '27889','state_id' => '2438','name' => 'Teneria del Santuario'),\n \t array('id' => '27890','state_id' => '2438','name' => 'Uriangato'),\n \t array('id' => '27891','state_id' => '2438','name' => 'Urireo'),\n \t array('id' => '27892','state_id' => '2438','name' => 'Valle de Santiago'),\n \t array('id' => '27893','state_id' => '2438','name' => 'Valtierrilla'),\n \t array('id' => '27894','state_id' => '2438','name' => 'Victoria'),\n \t array('id' => '27895','state_id' => '2438','name' => 'Villagran'),\n \t array('id' => '27896','state_id' => '2438','name' => 'Villas de Irapuato'),\n \t array('id' => '27897','state_id' => '2438','name' => 'Yerbabuena'),\n \t array('id' => '27898','state_id' => '2438','name' => 'Yuriria'),\n \t array('id' => '27899','state_id' => '2439','name' => 'Acamixtla'),\n \t array('id' => '27900','state_id' => '2439','name' => 'Acapulco'),\n \t array('id' => '27901','state_id' => '2439','name' => 'Acatlan'),\n \t array('id' => '27902','state_id' => '2439','name' => 'Ajuchitlan'),\n \t array('id' => '27903','state_id' => '2439','name' => 'Alpoyeca'),\n \t array('id' => '27904','state_id' => '2439','name' => 'Altamirano'),\n \t array('id' => '27905','state_id' => '2439','name' => 'Apango'),\n \t array('id' => '27906','state_id' => '2439','name' => 'Apaxtla'),\n \t array('id' => '27907','state_id' => '2439','name' => 'Arcelia'),\n \t array('id' => '27908','state_id' => '2439','name' => 'Atliaca'),\n \t array('id' => '27909','state_id' => '2439','name' => 'Atoyac'),\n \t array('id' => '27910','state_id' => '2439','name' => 'Ayutla'),\n \t array('id' => '27911','state_id' => '2439','name' => 'Azoyu'),\n \t array('id' => '27912','state_id' => '2439','name' => 'Bajos de Ejido'),\n \t array('id' => '27913','state_id' => '2439','name' => 'Buenavista'),\n \t array('id' => '27914','state_id' => '2439','name' => 'Chichihualco'),\n \t array('id' => '27915','state_id' => '2439','name' => 'Chilapa'),\n \t array('id' => '27916','state_id' => '2439','name' => 'Chilpancingo'),\n \t array('id' => '27917','state_id' => '2439','name' => 'Coacoyul'),\n \t array('id' => '27918','state_id' => '2439','name' => 'Cocula'),\n \t array('id' => '27919','state_id' => '2439','name' => 'Copala'),\n \t array('id' => '27920','state_id' => '2439','name' => 'Copalillo'),\n \t array('id' => '27921','state_id' => '2439','name' => 'Coyuca'),\n \t array('id' => '27922','state_id' => '2439','name' => 'Cruz Grande'),\n \t array('id' => '27923','state_id' => '2439','name' => 'Cuajinicuilapa'),\n \t array('id' => '27924','state_id' => '2439','name' => 'Cuautepec'),\n \t array('id' => '27925','state_id' => '2439','name' => 'Cutzamala'),\n \t array('id' => '27926','state_id' => '2439','name' => 'El Ocotito'),\n \t array('id' => '27927','state_id' => '2439','name' => 'El Paraiso'),\n \t array('id' => '27928','state_id' => '2439','name' => 'El Suchil'),\n \t array('id' => '27929','state_id' => '2439','name' => 'Huamuxtitlan'),\n \t array('id' => '27930','state_id' => '2439','name' => 'Huitziltepec'),\n \t array('id' => '27931','state_id' => '2439','name' => 'Huitzuco'),\n \t array('id' => '27932','state_id' => '2439','name' => 'Iguala'),\n \t array('id' => '27933','state_id' => '2439','name' => 'Ixtapa'),\n \t array('id' => '27934','state_id' => '2439','name' => 'Kilometro Treinta'),\n \t array('id' => '27935','state_id' => '2439','name' => 'La Loma'),\n \t array('id' => '27936','state_id' => '2439','name' => 'La Union'),\n \t array('id' => '27937','state_id' => '2439','name' => 'Las Petaquillas'),\n \t array('id' => '27938','state_id' => '2439','name' => 'Las Vigas'),\n \t array('id' => '27939','state_id' => '2439','name' => 'Marquelia'),\n \t array('id' => '27940','state_id' => '2439','name' => 'Mazatlan'),\n \t array('id' => '27941','state_id' => '2439','name' => 'Mochitlan'),\n \t array('id' => '27942','state_id' => '2439','name' => 'Olinala'),\n \t array('id' => '27943','state_id' => '2439','name' => 'Ometepec'),\n \t array('id' => '27944','state_id' => '2439','name' => 'Petatlan'),\n \t array('id' => '27945','state_id' => '2439','name' => 'Pilcaya'),\n \t array('id' => '27946','state_id' => '2439','name' => 'Quechultenango'),\n \t array('id' => '27947','state_id' => '2439','name' => 'San Jeronimito'),\n \t array('id' => '27948','state_id' => '2439','name' => 'San Jeronimo'),\n \t array('id' => '27949','state_id' => '2439','name' => 'San Jose Ixtapa'),\n \t array('id' => '27950','state_id' => '2439','name' => 'San Luis San Pedro'),\n \t array('id' => '27951','state_id' => '2439','name' => 'San Marcos'),\n \t array('id' => '27952','state_id' => '2439','name' => 'Taxco'),\n \t array('id' => '27953','state_id' => '2439','name' => 'Taxco de Alarcon'),\n \t array('id' => '27954','state_id' => '2439','name' => 'Tecoanapa'),\n \t array('id' => '27955','state_id' => '2439','name' => 'Tecpan'),\n \t array('id' => '27956','state_id' => '2439','name' => 'Teloloapan'),\n \t array('id' => '27957','state_id' => '2439','name' => 'Tepecoacuilco'),\n \t array('id' => '27958','state_id' => '2439','name' => 'Tierra Colorada'),\n \t array('id' => '27959','state_id' => '2439','name' => 'Tixtla'),\n \t array('id' => '27960','state_id' => '2439','name' => 'Tlacoachistlahuaca'),\n \t array('id' => '27961','state_id' => '2439','name' => 'Tlacotepec'),\n \t array('id' => '27962','state_id' => '2439','name' => 'Tlalchapa'),\n \t array('id' => '27963','state_id' => '2439','name' => 'Tlamacazapa'),\n \t array('id' => '27964','state_id' => '2439','name' => 'Tlapa'),\n \t array('id' => '27965','state_id' => '2439','name' => 'Tlapehuala'),\n \t array('id' => '27966','state_id' => '2439','name' => 'Totolapan'),\n \t array('id' => '27967','state_id' => '2439','name' => 'Tres Palos'),\n \t array('id' => '27968','state_id' => '2439','name' => 'Xalpatlahuac'),\n \t array('id' => '27969','state_id' => '2439','name' => 'Xaltianguis'),\n \t array('id' => '27970','state_id' => '2439','name' => 'Xochihuehuetlan'),\n \t array('id' => '27971','state_id' => '2439','name' => 'Xochistlahuaca'),\n \t array('id' => '27972','state_id' => '2439','name' => 'Zacualpan'),\n \t array('id' => '27973','state_id' => '2439','name' => 'Zihuatanejo'),\n \t array('id' => '27974','state_id' => '2439','name' => 'Zirandaro'),\n \t array('id' => '27975','state_id' => '2439','name' => 'Zitlala'),\n \t array('id' => '27976','state_id' => '2439','name' => 'Zumpango'),\n \t array('id' => '27977','state_id' => '2440','name' => 'Acaxochitlan'),\n \t array('id' => '27978','state_id' => '2440','name' => 'Acayuca'),\n \t array('id' => '27979','state_id' => '2440','name' => 'Actopan'),\n \t array('id' => '27980','state_id' => '2440','name' => 'Ajacuba'),\n \t array('id' => '27981','state_id' => '2440','name' => 'Almoloya'),\n \t array('id' => '27982','state_id' => '2440','name' => 'Apan'),\n \t array('id' => '27983','state_id' => '2440','name' => 'Atengo'),\n \t array('id' => '27984','state_id' => '2440','name' => 'Atitalaquia'),\n \t array('id' => '27985','state_id' => '2440','name' => 'Atotonilco de Tula'),\n \t array('id' => '27986','state_id' => '2440','name' => 'Atotonilco el Grande'),\n \t array('id' => '27987','state_id' => '2440','name' => 'Calnali'),\n \t array('id' => '27988','state_id' => '2440','name' => 'Cardonal'),\n \t array('id' => '27989','state_id' => '2440','name' => 'Chapulhuacan'),\n \t array('id' => '27990','state_id' => '2440','name' => 'Cuautepec'),\n \t array('id' => '27991','state_id' => '2440','name' => 'Doxey'),\n \t array('id' => '27992','state_id' => '2440','name' => 'El Arenal'),\n \t array('id' => '27993','state_id' => '2440','name' => 'El Llano'),\n \t array('id' => '27994','state_id' => '2440','name' => 'El Rosario'),\n \t array('id' => '27995','state_id' => '2440','name' => 'Emiliano Zapata'),\n \t array('id' => '27996','state_id' => '2440','name' => 'Huautla'),\n \t array('id' => '27997','state_id' => '2440','name' => 'Huejutla'),\n \t array('id' => '27998','state_id' => '2440','name' => 'Hueytlalpan'),\n \t array('id' => '27999','state_id' => '2440','name' => 'Huichapan'),\n \t array('id' => '28000','state_id' => '2440','name' => 'Ixmiquilpan'),\n \t array('id' => '28001','state_id' => '2440','name' => 'Jacala'),\n \t array('id' => '28002','state_id' => '2440','name' => 'Jaltocan'),\n \t array('id' => '28003','state_id' => '2440','name' => 'Los Reyes'),\n \t array('id' => '28004','state_id' => '2440','name' => 'Mineral del Monte'),\n \t array('id' => '28005','state_id' => '2440','name' => 'Mixquiahuala'),\n \t array('id' => '28006','state_id' => '2440','name' => 'Molango'),\n \t array('id' => '28007','state_id' => '2440','name' => 'Orizatlan'),\n \t array('id' => '28008','state_id' => '2440','name' => 'Pachuca'),\n \t array('id' => '28009','state_id' => '2440','name' => 'Pachuquilla'),\n \t array('id' => '28010','state_id' => '2440','name' => 'Progreso'),\n \t array('id' => '28011','state_id' => '2440','name' => 'Sahagun'),\n \t array('id' => '28012','state_id' => '2440','name' => 'San Ildefonso'),\n \t array('id' => '28013','state_id' => '2440','name' => 'San Juan Tepa'),\n \t array('id' => '28014','state_id' => '2440','name' => 'San Marcos'),\n \t array('id' => '28015','state_id' => '2440','name' => 'Singuilucan'),\n \t array('id' => '28016','state_id' => '2440','name' => 'Tasquillo'),\n \t array('id' => '28017','state_id' => '2440','name' => 'Tecozautla'),\n \t array('id' => '28018','state_id' => '2440','name' => 'Tepatepec'),\n \t array('id' => '28019','state_id' => '2440','name' => 'Tepeapulco'),\n \t array('id' => '28020','state_id' => '2440','name' => 'Tepeji'),\n \t array('id' => '28021','state_id' => '2440','name' => 'Tepepa'),\n \t array('id' => '28022','state_id' => '2440','name' => 'Tetepango'),\n \t array('id' => '28023','state_id' => '2440','name' => 'Tezontepec'),\n \t array('id' => '28024','state_id' => '2440','name' => 'Tizayuca'),\n \t array('id' => '28025','state_id' => '2440','name' => 'Tlahuelilpan'),\n \t array('id' => '28026','state_id' => '2440','name' => 'Tlanalapa'),\n \t array('id' => '28027','state_id' => '2440','name' => 'Tlanchinol'),\n \t array('id' => '28028','state_id' => '2440','name' => 'Tlaxcoapan'),\n \t array('id' => '28029','state_id' => '2440','name' => 'Tlaxiaca'),\n \t array('id' => '28030','state_id' => '2440','name' => 'Tolcayuca'),\n \t array('id' => '28031','state_id' => '2440','name' => 'Tula de Allende'),\n \t array('id' => '28032','state_id' => '2440','name' => 'Tulancingo'),\n \t array('id' => '28033','state_id' => '2440','name' => 'Tulantepec'),\n \t array('id' => '28034','state_id' => '2440','name' => 'Vindho'),\n \t array('id' => '28035','state_id' => '2440','name' => 'Zacualtipan'),\n \t array('id' => '28036','state_id' => '2440','name' => 'Zapotlan'),\n \t array('id' => '28037','state_id' => '2440','name' => 'Zempoala'),\n \t array('id' => '28038','state_id' => '2440','name' => 'Zimapan'),\n \t array('id' => '28039','state_id' => '2441','name' => 'Acatic'),\n \t array('id' => '28040','state_id' => '2441','name' => 'Acatlan'),\n \t array('id' => '28041','state_id' => '2441','name' => 'Ahualulco'),\n \t array('id' => '28042','state_id' => '2441','name' => 'Ajijic'),\n \t array('id' => '28043','state_id' => '2441','name' => 'Alejandria'),\n \t array('id' => '28044','state_id' => '2441','name' => 'Amatitan'),\n \t array('id' => '28045','state_id' => '2441','name' => 'Ameca'),\n \t array('id' => '28046','state_id' => '2441','name' => 'Antonio Escobedo'),\n \t array('id' => '28047','state_id' => '2441','name' => 'Arandas'),\n \t array('id' => '28048','state_id' => '2441','name' => 'Atemajac'),\n \t array('id' => '28049','state_id' => '2441','name' => 'Atequiza'),\n \t array('id' => '28050','state_id' => '2441','name' => 'Atotonilco el Alto'),\n \t array('id' => '28051','state_id' => '2441','name' => 'Atotonilquillo'),\n \t array('id' => '28052','state_id' => '2441','name' => 'Atoyac'),\n \t array('id' => '28053','state_id' => '2441','name' => 'Autlan'),\n \t array('id' => '28054','state_id' => '2441','name' => 'Ayotlan'),\n \t array('id' => '28055','state_id' => '2441','name' => 'Ayutla'),\n \t array('id' => '28056','state_id' => '2441','name' => 'Bellavista'),\n \t array('id' => '28057','state_id' => '2441','name' => 'Cajititlan'),\n \t array('id' => '28058','state_id' => '2441','name' => 'Capilla de Guadalupe'),\n \t array('id' => '28059','state_id' => '2441','name' => 'Casimiro Castillo'),\n \t array('id' => '28060','state_id' => '2441','name' => 'Centro de Readaptacion Social'),\n \t array('id' => '28061','state_id' => '2441','name' => 'Chapala'),\n \t array('id' => '28062','state_id' => '2441','name' => 'Chiquilistlan'),\n \t array('id' => '28063','state_id' => '2441','name' => 'Cihuatlan'),\n \t array('id' => '28064','state_id' => '2441','name' => 'Cocula'),\n \t array('id' => '28065','state_id' => '2441','name' => 'Colotlan'),\n \t array('id' => '28066','state_id' => '2441','name' => 'Concepcion de Buenos Aires'),\n \t array('id' => '28067','state_id' => '2441','name' => 'Cosala'),\n \t array('id' => '28068','state_id' => '2441','name' => 'Coyula'),\n \t array('id' => '28069','state_id' => '2441','name' => 'Cuitzeo'),\n \t array('id' => '28070','state_id' => '2441','name' => 'Cuqio'),\n \t array('id' => '28071','state_id' => '2441','name' => 'Cuyutlan'),\n \t array('id' => '28072','state_id' => '2441','name' => 'Degollado'),\n \t array('id' => '28073','state_id' => '2441','name' => 'El Arenal'),\n \t array('id' => '28074','state_id' => '2441','name' => 'El Grullo'),\n \t array('id' => '28075','state_id' => '2441','name' => 'El Limon'),\n \t array('id' => '28076','state_id' => '2441','name' => 'El Quince'),\n \t array('id' => '28077','state_id' => '2441','name' => 'El Refugio'),\n \t array('id' => '28078','state_id' => '2441','name' => 'El Salto'),\n \t array('id' => '28079','state_id' => '2441','name' => 'El Verde'),\n \t array('id' => '28080','state_id' => '2441','name' => 'Encarnacion'),\n \t array('id' => '28081','state_id' => '2441','name' => 'Etzatlan'),\n \t array('id' => '28082','state_id' => '2441','name' => 'Guadalajara'),\n \t array('id' => '28083','state_id' => '2441','name' => 'Guzman'),\n \t array('id' => '28084','state_id' => '2441','name' => 'Hidalgo'),\n \t array('id' => '28085','state_id' => '2441','name' => 'Hostotipaquillo'),\n \t array('id' => '28086','state_id' => '2441','name' => 'Huejucar'),\n \t array('id' => '28087','state_id' => '2441','name' => 'Huejuquilla el Alto'),\n \t array('id' => '28088','state_id' => '2441','name' => 'Itzican'),\n \t array('id' => '28089','state_id' => '2441','name' => 'Ixtapa'),\n \t array('id' => '28090','state_id' => '2441','name' => 'Ixtlahuacan de los Membrillos'),\n \t array('id' => '28091','state_id' => '2441','name' => 'Ixtlahuacan del Rio'),\n \t array('id' => '28092','state_id' => '2441','name' => 'Ixtlan'),\n \t array('id' => '28093','state_id' => '2441','name' => 'Jalostotitlan'),\n \t array('id' => '28094','state_id' => '2441','name' => 'Jamay'),\n \t array('id' => '28095','state_id' => '2441','name' => 'Jesus Maria'),\n \t array('id' => '28096','state_id' => '2441','name' => 'Jocotepec'),\n \t array('id' => '28097','state_id' => '2441','name' => 'Juanacatlan'),\n \t array('id' => '28098','state_id' => '2441','name' => 'Juchitlan'),\n \t array('id' => '28099','state_id' => '2441','name' => 'La Barca'),\n \t array('id' => '28100','state_id' => '2441','name' => 'La Huerta'),\n \t array('id' => '28101','state_id' => '2441','name' => 'La Ribera'),\n \t array('id' => '28102','state_id' => '2441','name' => 'La Tijera'),\n \t array('id' => '28103','state_id' => '2441','name' => 'La Venta del Astillero'),\n \t array('id' => '28104','state_id' => '2441','name' => 'Lagos de Moreno'),\n \t array('id' => '28105','state_id' => '2441','name' => 'Las Juntas'),\n \t array('id' => '28106','state_id' => '2441','name' => 'Las Pintas'),\n \t array('id' => '28107','state_id' => '2441','name' => 'Las Pintitas'),\n \t array('id' => '28108','state_id' => '2441','name' => 'Lo Arado'),\n \t array('id' => '28109','state_id' => '2441','name' => 'Magdalena'),\n \t array('id' => '28110','state_id' => '2441','name' => 'Mascota'),\n \t array('id' => '28111','state_id' => '2441','name' => 'Mazamitla'),\n \t array('id' => '28112','state_id' => '2441','name' => 'Mexticacan'),\n \t array('id' => '28113','state_id' => '2441','name' => 'Mezcala'),\n \t array('id' => '28114','state_id' => '2441','name' => 'Nuevo Mexico'),\n \t array('id' => '28115','state_id' => '2441','name' => 'Ocotlan'),\n \t array('id' => '28116','state_id' => '2441','name' => 'Ojuelos de Jalisco'),\n \t array('id' => '28117','state_id' => '2441','name' => 'Pihuamo'),\n \t array('id' => '28118','state_id' => '2441','name' => 'Poncitlan'),\n \t array('id' => '28119','state_id' => '2441','name' => 'Puente Grande'),\n \t array('id' => '28120','state_id' => '2441','name' => 'Puerto Vallarta'),\n \t array('id' => '28121','state_id' => '2441','name' => 'Purificacion'),\n \t array('id' => '28122','state_id' => '2441','name' => 'San Agustin'),\n \t array('id' => '28123','state_id' => '2441','name' => 'San Francisco de Asis'),\n \t array('id' => '28124','state_id' => '2441','name' => 'San Gabriel'),\n \t array('id' => '28125','state_id' => '2441','name' => 'San Jose de Gracia'),\n \t array('id' => '28126','state_id' => '2441','name' => 'San Jose del Castillo'),\n \t array('id' => '28127','state_id' => '2441','name' => 'San Juan de los Lagos'),\n \t array('id' => '28128','state_id' => '2441','name' => 'San Julian'),\n \t array('id' => '28129','state_id' => '2441','name' => 'San Marcos'),\n \t array('id' => '28130','state_id' => '2441','name' => 'San Martin de Hidalgo'),\n \t array('id' => '28131','state_id' => '2441','name' => 'San Miguel el Alto'),\n \t array('id' => '28132','state_id' => '2441','name' => 'San Patricio'),\n \t array('id' => '28133','state_id' => '2441','name' => 'San Sebastian del Sur'),\n \t array('id' => '28134','state_id' => '2441','name' => 'San Sebastian el Grande'),\n \t array('id' => '28135','state_id' => '2441','name' => 'Santa Anita'),\n \t array('id' => '28136','state_id' => '2441','name' => 'Santa Cruz de las Flores'),\n \t array('id' => '28137','state_id' => '2441','name' => 'Santa Cruz del Valle'),\n \t array('id' => '28138','state_id' => '2441','name' => 'Sayula'),\n \t array('id' => '28139','state_id' => '2441','name' => 'Tala'),\n \t array('id' => '28140','state_id' => '2441','name' => 'Talpa'),\n \t array('id' => '28141','state_id' => '2441','name' => 'Tamazula'),\n \t array('id' => '28142','state_id' => '2441','name' => 'Tapalpa'),\n \t array('id' => '28143','state_id' => '2441','name' => 'Tecalitlan'),\n \t array('id' => '28144','state_id' => '2441','name' => 'Tecolotlan'),\n \t array('id' => '28145','state_id' => '2441','name' => 'Tenamaxtlan'),\n \t array('id' => '28146','state_id' => '2441','name' => 'Teocaltiche'),\n \t array('id' => '28147','state_id' => '2441','name' => 'Teocuitatlan de Corona'),\n \t array('id' => '28148','state_id' => '2441','name' => 'Tepatitlan'),\n \t array('id' => '28149','state_id' => '2441','name' => 'Tequila'),\n \t array('id' => '28150','state_id' => '2441','name' => 'Tesistan'),\n \t array('id' => '28151','state_id' => '2441','name' => 'Teuchitlan'),\n \t array('id' => '28152','state_id' => '2441','name' => 'Tizapan el Alto'),\n \t array('id' => '28153','state_id' => '2441','name' => 'Tlajomulco'),\n \t array('id' => '28154','state_id' => '2441','name' => 'Tlaquepaque'),\n \t array('id' => '28155','state_id' => '2441','name' => 'Tomatlan'),\n \t array('id' => '28156','state_id' => '2441','name' => 'Tonala'),\n \t array('id' => '28157','state_id' => '2441','name' => 'Tonaya'),\n \t array('id' => '28158','state_id' => '2441','name' => 'Tonila'),\n \t array('id' => '28159','state_id' => '2441','name' => 'Tototlan'),\n \t array('id' => '28160','state_id' => '2441','name' => 'Tuxpan'),\n \t array('id' => '28161','state_id' => '2441','name' => 'Union de San Antonio'),\n \t array('id' => '28162','state_id' => '2441','name' => 'Union de Tula'),\n \t array('id' => '28163','state_id' => '2441','name' => 'Usmajac'),\n \t array('id' => '28164','state_id' => '2441','name' => 'Valle de Guadalupe'),\n \t array('id' => '28165','state_id' => '2441','name' => 'Valle de Juarez'),\n \t array('id' => '28166','state_id' => '2441','name' => 'Villa Corona'),\n \t array('id' => '28167','state_id' => '2441','name' => 'Villa Guerrero'),\n \t array('id' => '28168','state_id' => '2441','name' => 'Yahualica'),\n \t array('id' => '28169','state_id' => '2441','name' => 'Zacoalco'),\n \t array('id' => '28170','state_id' => '2441','name' => 'Zapopan'),\n \t array('id' => '28171','state_id' => '2441','name' => 'Zapote'),\n \t array('id' => '28172','state_id' => '2441','name' => 'Zapotiltic'),\n \t array('id' => '28173','state_id' => '2441','name' => 'Zapotlanejo'),\n \t array('id' => '28174','state_id' => '2442','name' => 'Acahualco'),\n \t array('id' => '28175','state_id' => '2442','name' => 'Acambay'),\n \t array('id' => '28176','state_id' => '2442','name' => 'Acazulco'),\n \t array('id' => '28177','state_id' => '2442','name' => 'Acolman'),\n \t array('id' => '28178','state_id' => '2442','name' => 'Acuautla'),\n \t array('id' => '28179','state_id' => '2442','name' => 'Acutzilapan'),\n \t array('id' => '28180','state_id' => '2442','name' => 'Ajoloapan'),\n \t array('id' => '28181','state_id' => '2442','name' => 'Alborada'),\n \t array('id' => '28182','state_id' => '2442','name' => 'Almaya'),\n \t array('id' => '28183','state_id' => '2442','name' => 'Almoloya'),\n \t array('id' => '28184','state_id' => '2442','name' => 'Almoloya del Rio'),\n \t array('id' => '28185','state_id' => '2442','name' => 'Amanalco'),\n \t array('id' => '28186','state_id' => '2442','name' => 'Amecameca'),\n \t array('id' => '28187','state_id' => '2442','name' => 'Ameyalco'),\n \t array('id' => '28188','state_id' => '2442','name' => 'Apaxco'),\n \t array('id' => '28189','state_id' => '2442','name' => 'Atarasquillo'),\n \t array('id' => '28190','state_id' => '2442','name' => 'Atenco'),\n \t array('id' => '28191','state_id' => '2442','name' => 'Atizapan'),\n \t array('id' => '28192','state_id' => '2442','name' => 'Atlacomulco'),\n \t array('id' => '28193','state_id' => '2442','name' => 'Atlatlahuca'),\n \t array('id' => '28194','state_id' => '2442','name' => 'Atlatongo'),\n \t array('id' => '28195','state_id' => '2442','name' => 'Atlautla'),\n \t array('id' => '28196','state_id' => '2442','name' => 'Atlazalpan'),\n \t array('id' => '28197','state_id' => '2442','name' => 'Autopan'),\n \t array('id' => '28198','state_id' => '2442','name' => 'Axapusco'),\n \t array('id' => '28199','state_id' => '2442','name' => 'Ayotuzco'),\n \t array('id' => '28200','state_id' => '2442','name' => 'Ayotzingo'),\n \t array('id' => '28201','state_id' => '2442','name' => 'Azcatepec'),\n \t array('id' => '28202','state_id' => '2442','name' => 'Balderas'),\n \t array('id' => '28203','state_id' => '2442','name' => 'Bocanegra'),\n \t array('id' => '28204','state_id' => '2442','name' => 'Boreje'),\n \t array('id' => '28205','state_id' => '2442','name' => 'Buenavista'),\n \t array('id' => '28206','state_id' => '2442','name' => 'Cacalomacan'),\n \t array('id' => '28207','state_id' => '2442','name' => 'Cahuacan'),\n \t array('id' => '28208','state_id' => '2442','name' => 'Calimaya'),\n \t array('id' => '28209','state_id' => '2442','name' => 'Calixtlahuaca'),\n \t array('id' => '28210','state_id' => '2442','name' => 'Capulhuac'),\n \t array('id' => '28211','state_id' => '2442','name' => 'Carbon'),\n \t array('id' => '28212','state_id' => '2442','name' => 'Cautzingo'),\n \t array('id' => '28213','state_id' => '2442','name' => 'Chalco'),\n \t array('id' => '28214','state_id' => '2442','name' => 'Chapultepec'),\n \t array('id' => '28215','state_id' => '2442','name' => 'Chiautla'),\n \t array('id' => '28216','state_id' => '2442','name' => 'Chicoloapan'),\n \t array('id' => '28217','state_id' => '2442','name' => 'Chiconautla'),\n \t array('id' => '28218','state_id' => '2442','name' => 'Chiconcuac'),\n \t array('id' => '28219','state_id' => '2442','name' => 'Chimalhuacan'),\n \t array('id' => '28220','state_id' => '2442','name' => 'Chimalpa'),\n \t array('id' => '28221','state_id' => '2442','name' => 'Cholula'),\n \t array('id' => '28222','state_id' => '2442','name' => 'Citendeje'),\n \t array('id' => '28223','state_id' => '2442','name' => 'Coacalco'),\n \t array('id' => '28224','state_id' => '2442','name' => 'Coachochitlan'),\n \t array('id' => '28225','state_id' => '2442','name' => 'Coacomulco'),\n \t array('id' => '28226','state_id' => '2442','name' => 'Coapango'),\n \t array('id' => '28227','state_id' => '2442','name' => 'Coatepec'),\n \t array('id' => '28228','state_id' => '2442','name' => 'Coatepec Harinas'),\n \t array('id' => '28229','state_id' => '2442','name' => 'Coatlinchan'),\n \t array('id' => '28230','state_id' => '2442','name' => 'Cocotitlan'),\n \t array('id' => '28231','state_id' => '2442','name' => 'Colorines'),\n \t array('id' => '28232','state_id' => '2442','name' => 'Concepcion Jolalpan'),\n \t array('id' => '28233','state_id' => '2442','name' => 'Coyotepec'),\n \t array('id' => '28234','state_id' => '2442','name' => 'Cuauhtemoc'),\n \t array('id' => '28235','state_id' => '2442','name' => 'Cuauhtenco'),\n \t array('id' => '28236','state_id' => '2442','name' => 'Cuautitlan'),\n \t array('id' => '28237','state_id' => '2442','name' => 'Cuautitlan Izcalli'),\n \t array('id' => '28238','state_id' => '2442','name' => 'Cuautlalpan'),\n \t array('id' => '28239','state_id' => '2442','name' => 'Cuaxustenco'),\n \t array('id' => '28240','state_id' => '2442','name' => 'Cuexontitlan'),\n \t array('id' => '28241','state_id' => '2442','name' => 'Cuijingo'),\n \t array('id' => '28242','state_id' => '2442','name' => 'Ecatepec'),\n \t array('id' => '28243','state_id' => '2442','name' => 'Ecatzingo'),\n \t array('id' => '28244','state_id' => '2442','name' => 'Ejido Cahuacan'),\n \t array('id' => '28245','state_id' => '2442','name' => 'Ejido Veinte de Noviembre la C'),\n \t array('id' => '28246','state_id' => '2442','name' => 'Ejido de la Y Seccion Siete a '),\n \t array('id' => '28247','state_id' => '2442','name' => 'El Coporo'),\n \t array('id' => '28248','state_id' => '2442','name' => 'El Oro'),\n \t array('id' => '28249','state_id' => '2442','name' => 'Enchisi'),\n \t array('id' => '28250','state_id' => '2442','name' => 'Enthavi'),\n \t array('id' => '28251','state_id' => '2442','name' => 'Fuentes del Valle'),\n \t array('id' => '28252','state_id' => '2442','name' => 'Huehuetoca'),\n \t array('id' => '28253','state_id' => '2442','name' => 'Huexoculco'),\n \t array('id' => '28254','state_id' => '2442','name' => 'Hueypoxtla'),\n \t array('id' => '28255','state_id' => '2442','name' => 'Huilango'),\n \t array('id' => '28256','state_id' => '2442','name' => 'Huitzilzingo'),\n \t array('id' => '28257','state_id' => '2442','name' => 'Huixquilucan'),\n \t array('id' => '28258','state_id' => '2442','name' => 'Huixquilucan de Degollado'),\n \t array('id' => '28259','state_id' => '2442','name' => 'Huixtoco'),\n \t array('id' => '28260','state_id' => '2442','name' => 'Ixlahuaca'),\n \t array('id' => '28261','state_id' => '2442','name' => 'Ixtacalco'),\n \t array('id' => '28262','state_id' => '2442','name' => 'Ixtapaluca'),\n \t array('id' => '28263','state_id' => '2442','name' => 'Ixtapan'),\n \t array('id' => '28264','state_id' => '2442','name' => 'Ixtlahuatzingo'),\n \t array('id' => '28265','state_id' => '2442','name' => 'Jajalpa'),\n \t array('id' => '28266','state_id' => '2442','name' => 'Jaltenco'),\n \t array('id' => '28267','state_id' => '2442','name' => 'Jaltepec'),\n \t array('id' => '28268','state_id' => '2442','name' => 'Jesus del Monte'),\n \t array('id' => '28269','state_id' => '2442','name' => 'Jicaltepec Autopan'),\n \t array('id' => '28270','state_id' => '2442','name' => 'Jilotepec'),\n \t array('id' => '28271','state_id' => '2442','name' => 'Jilotzingo'),\n \t array('id' => '28272','state_id' => '2442','name' => 'Jocotitlan'),\n \t array('id' => '28273','state_id' => '2442','name' => 'Joquicingo'),\n \t array('id' => '28274','state_id' => '2442','name' => 'Jorge Jimenez Cantu'),\n \t array('id' => '28275','state_id' => '2442','name' => 'Juchitepec'),\n \t array('id' => '28276','state_id' => '2442','name' => 'La Concepcion los Banos'),\n \t array('id' => '28277','state_id' => '2442','name' => 'La Constitucion'),\n \t array('id' => '28278','state_id' => '2442','name' => 'La Magdalema'),\n \t array('id' => '28279','state_id' => '2442','name' => 'Lerma'),\n \t array('id' => '28280','state_id' => '2442','name' => 'Loma de Juarez'),\n \t array('id' => '28281','state_id' => '2442','name' => 'Lomas de Zacamulpa'),\n \t array('id' => '28282','state_id' => '2442','name' => 'Lopez Mateos'),\n \t array('id' => '28283','state_id' => '2442','name' => 'Los Esparragos'),\n \t array('id' => '28284','state_id' => '2442','name' => 'Los Reyes'),\n \t array('id' => '28285','state_id' => '2442','name' => 'Los Reyes Acozac'),\n \t array('id' => '28286','state_id' => '2442','name' => 'Luvianos'),\n \t array('id' => '28287','state_id' => '2442','name' => 'Malinalco'),\n \t array('id' => '28288','state_id' => '2442','name' => 'Melchor Ocampo'),\n \t array('id' => '28289','state_id' => '2442','name' => 'Metepec'),\n \t array('id' => '28290','state_id' => '2442','name' => 'Mexicaltzingo'),\n \t array('id' => '28291','state_id' => '2442','name' => 'Mextepec'),\n \t array('id' => '28292','state_id' => '2442','name' => 'Montecillo'),\n \t array('id' => '28293','state_id' => '2442','name' => 'Nativitas'),\n \t array('id' => '28294','state_id' => '2442','name' => 'Naucalpan'),\n \t array('id' => '28295','state_id' => '2442','name' => 'Nexquipayac'),\n \t array('id' => '28296','state_id' => '2442','name' => 'Nextlalpan'),\n \t array('id' => '28297','state_id' => '2442','name' => 'Nezahualcoyotl'),\n \t array('id' => '28298','state_id' => '2442','name' => 'Nicolas Romero'),\n \t array('id' => '28299','state_id' => '2442','name' => 'Nopaltepec'),\n \t array('id' => '28300','state_id' => '2442','name' => 'Ocotitlan'),\n \t array('id' => '28301','state_id' => '2442','name' => 'Ocotlan'),\n \t array('id' => '28302','state_id' => '2442','name' => 'Ocoyoacac'),\n \t array('id' => '28303','state_id' => '2442','name' => 'Ojo de Agua'),\n \t array('id' => '28304','state_id' => '2442','name' => 'Otumba'),\n \t array('id' => '28305','state_id' => '2442','name' => 'Otzacatipan'),\n \t array('id' => '28306','state_id' => '2442','name' => 'Oyamel'),\n \t array('id' => '28307','state_id' => '2442','name' => 'Oztolotepec'),\n \t array('id' => '28308','state_id' => '2442','name' => 'Ozumba'),\n \t array('id' => '28309','state_id' => '2442','name' => 'Papalotla'),\n \t array('id' => '28310','state_id' => '2442','name' => 'Progreso Industrial'),\n \t array('id' => '28311','state_id' => '2442','name' => 'Pueblo Nuevo'),\n \t array('id' => '28312','state_id' => '2442','name' => 'Rayon'),\n \t array('id' => '28313','state_id' => '2442','name' => 'Rio Frio'),\n \t array('id' => '28314','state_id' => '2442','name' => 'Salitrillo'),\n \t array('id' => '28315','state_id' => '2442','name' => 'San Antonio Buenavista'),\n \t array('id' => '28316','state_id' => '2442','name' => 'San Antonio La Isla'),\n \t array('id' => '28317','state_id' => '2442','name' => 'San Bartolo'),\n \t array('id' => '28318','state_id' => '2442','name' => 'San Bartolo del Llano'),\n \t array('id' => '28319','state_id' => '2442','name' => 'San Bernardino'),\n \t array('id' => '28320','state_id' => '2442','name' => 'San Buenaventura'),\n \t array('id' => '28321','state_id' => '2442','name' => 'San Felipe del Progreso'),\n \t array('id' => '28322','state_id' => '2442','name' => 'San Jeronimo'),\n \t array('id' => '28323','state_id' => '2442','name' => 'San Jose Guadalupe'),\n \t array('id' => '28324','state_id' => '2442','name' => 'San Jose el Vidrio'),\n \t array('id' => '28325','state_id' => '2442','name' => 'San Juan Tilapa'),\n \t array('id' => '28326','state_id' => '2442','name' => 'San Juan de las Huertas'),\n \t array('id' => '28327','state_id' => '2442','name' => 'San Juan y San Pedro Tezompa'),\n \t array('id' => '28328','state_id' => '2442','name' => 'San Lorenzo Cuauhtenco'),\n \t array('id' => '28329','state_id' => '2442','name' => 'San Martin de las Piramides'),\n \t array('id' => '28330','state_id' => '2442','name' => 'San Miguel la Labor'),\n \t array('id' => '28331','state_id' => '2442','name' => 'San Nicolas Guadalupe'),\n \t array('id' => '28332','state_id' => '2442','name' => 'San Nicolas Tolentino'),\n \t array('id' => '28333','state_id' => '2442','name' => 'San Pablo de las Salinas'),\n \t array('id' => '28334','state_id' => '2442','name' => 'San Pedro Abajo'),\n \t array('id' => '28335','state_id' => '2442','name' => 'San Pedro Arriba'),\n \t array('id' => '28336','state_id' => '2442','name' => 'San Pedro el Alto'),\n \t array('id' => '28337','state_id' => '2442','name' => 'San Pedro los Banos'),\n \t array('id' => '28338','state_id' => '2442','name' => 'San Simon de la Laguna'),\n \t array('id' => '28339','state_id' => '2442','name' => 'Santa Catarina del Monte'),\n \t array('id' => '28340','state_id' => '2442','name' => 'Santa Cruz del Monte'),\n \t array('id' => '28341','state_id' => '2442','name' => 'Santa Gertrudis'),\n \t array('id' => '28342','state_id' => '2442','name' => 'Santa Maria del Monte'),\n \t array('id' => '28343','state_id' => '2442','name' => 'Santo Domingo de Guzman'),\n \t array('id' => '28344','state_id' => '2442','name' => 'Soyaniquilpan'),\n \t array('id' => '28345','state_id' => '2442','name' => 'Sultepec'),\n \t array('id' => '28346','state_id' => '2442','name' => 'Tecalco'),\n \t array('id' => '28347','state_id' => '2442','name' => 'Tecamac'),\n \t array('id' => '28348','state_id' => '2442','name' => 'Techuchulco'),\n \t array('id' => '28349','state_id' => '2442','name' => 'Tecuahutitlan'),\n \t array('id' => '28350','state_id' => '2442','name' => 'Tehuixtitlan'),\n \t array('id' => '28351','state_id' => '2442','name' => 'Tejupilco'),\n \t array('id' => '28352','state_id' => '2442','name' => 'Temamatla'),\n \t array('id' => '28353','state_id' => '2442','name' => 'Temascalapa'),\n \t array('id' => '28354','state_id' => '2442','name' => 'Temascalcingo'),\n \t array('id' => '28355','state_id' => '2442','name' => 'Temoaya'),\n \t array('id' => '28356','state_id' => '2442','name' => 'Tenancingo'),\n \t array('id' => '28357','state_id' => '2442','name' => 'Tenango de Arista'),\n \t array('id' => '28358','state_id' => '2442','name' => 'Tenango del Aire'),\n \t array('id' => '28359','state_id' => '2442','name' => 'Tenochtitlan'),\n \t array('id' => '28360','state_id' => '2442','name' => 'Teoloyucan'),\n \t array('id' => '28361','state_id' => '2442','name' => 'Teotihuacan'),\n \t array('id' => '28362','state_id' => '2442','name' => 'Tepeolulco'),\n \t array('id' => '28363','state_id' => '2442','name' => 'Tepetitlan'),\n \t array('id' => '28364','state_id' => '2442','name' => 'Tepetlaoxtoc'),\n \t array('id' => '28365','state_id' => '2442','name' => 'Tepetlixpa'),\n \t array('id' => '28366','state_id' => '2442','name' => 'Tepexpan'),\n \t array('id' => '28367','state_id' => '2442','name' => 'Tepotzotlan'),\n \t array('id' => '28368','state_id' => '2442','name' => 'Tequexquinahuac'),\n \t array('id' => '28369','state_id' => '2442','name' => 'Tequisistlan'),\n \t array('id' => '28370','state_id' => '2442','name' => 'Tequixquiac'),\n \t array('id' => '28371','state_id' => '2442','name' => 'Texcalyacac'),\n \t array('id' => '28372','state_id' => '2442','name' => 'Texcoco'),\n \t array('id' => '28373','state_id' => '2442','name' => 'Teyahualco'),\n \t array('id' => '28374','state_id' => '2442','name' => 'Tezoquipan'),\n \t array('id' => '28375','state_id' => '2442','name' => 'Tezoyuca'),\n \t array('id' => '28376','state_id' => '2442','name' => 'Tianguistenco'),\n \t array('id' => '28377','state_id' => '2442','name' => 'Tilapa'),\n \t array('id' => '28378','state_id' => '2442','name' => 'Tlachaloya Segunda Seccion'),\n \t array('id' => '28379','state_id' => '2442','name' => 'Tlachihualpa'),\n \t array('id' => '28380','state_id' => '2442','name' => 'Tlacotepec'),\n \t array('id' => '28381','state_id' => '2442','name' => 'Tlahuelilpan'),\n \t array('id' => '28382','state_id' => '2442','name' => 'Tlaixpan'),\n \t array('id' => '28383','state_id' => '2442','name' => 'Tlalcilalcalli'),\n \t array('id' => '28384','state_id' => '2442','name' => 'Tlalcilalcalpan'),\n \t array('id' => '28385','state_id' => '2442','name' => 'Tlalmanalco'),\n \t array('id' => '28386','state_id' => '2442','name' => 'Tlalmimilolpan'),\n \t array('id' => '28387','state_id' => '2442','name' => 'Tlalnepantla'),\n \t array('id' => '28388','state_id' => '2442','name' => 'Tlaltelulco'),\n \t array('id' => '28389','state_id' => '2442','name' => 'Tlaltizapan'),\n \t array('id' => '28390','state_id' => '2442','name' => 'Tlanisco'),\n \t array('id' => '28391','state_id' => '2442','name' => 'Toluca'),\n \t array('id' => '28392','state_id' => '2442','name' => 'Tonanitla'),\n \t array('id' => '28393','state_id' => '2442','name' => 'Tonatico'),\n \t array('id' => '28394','state_id' => '2442','name' => 'Totocuitlapilco'),\n \t array('id' => '28395','state_id' => '2442','name' => 'Totoltepec'),\n \t array('id' => '28396','state_id' => '2442','name' => 'Tulantongo'),\n \t array('id' => '28397','state_id' => '2442','name' => 'Tultepec'),\n \t array('id' => '28398','state_id' => '2442','name' => 'Tultitlan'),\n \t array('id' => '28399','state_id' => '2442','name' => 'Valle de Bravo'),\n \t array('id' => '28400','state_id' => '2442','name' => 'Victoria'),\n \t array('id' => '28401','state_id' => '2442','name' => 'Villa Guerrero'),\n \t array('id' => '28402','state_id' => '2442','name' => 'Vista Hermosa'),\n \t array('id' => '28403','state_id' => '2442','name' => 'Xalatlaco'),\n \t array('id' => '28404','state_id' => '2442','name' => 'Xalpa'),\n \t array('id' => '28405','state_id' => '2442','name' => 'Xico'),\n \t array('id' => '28406','state_id' => '2442','name' => 'Xochimanca'),\n \t array('id' => '28407','state_id' => '2442','name' => 'Xolalpa'),\n \t array('id' => '28408','state_id' => '2442','name' => 'Xoloc'),\n \t array('id' => '28409','state_id' => '2442','name' => 'Xometla'),\n \t array('id' => '28410','state_id' => '2442','name' => 'Xonacatlan'),\n \t array('id' => '28411','state_id' => '2442','name' => 'Yachihuacaltepec'),\n \t array('id' => '28412','state_id' => '2442','name' => 'Yancuitlalpan'),\n \t array('id' => '28413','state_id' => '2442','name' => 'Zacacalco'),\n \t array('id' => '28414','state_id' => '2442','name' => 'Zacamulpa'),\n \t array('id' => '28415','state_id' => '2442','name' => 'Zacualpan'),\n \t array('id' => '28416','state_id' => '2442','name' => 'Zaragoza'),\n \t array('id' => '28417','state_id' => '2442','name' => 'Zictepec'),\n \t array('id' => '28418','state_id' => '2442','name' => 'Zinacantepec'),\n \t array('id' => '28419','state_id' => '2442','name' => 'Zolotepec'),\n \t array('id' => '28420','state_id' => '2442','name' => 'Zumpahuacan'),\n \t array('id' => '28421','state_id' => '2442','name' => 'Zumpango'),\n \t array('id' => '28422','state_id' => '2443','name' => 'Acuitzio'),\n \t array('id' => '28423','state_id' => '2443','name' => 'Aguililla'),\n \t array('id' => '28424','state_id' => '2443','name' => 'Alvaro Obregon'),\n \t array('id' => '28425','state_id' => '2443','name' => 'Angahuan'),\n \t array('id' => '28426','state_id' => '2443','name' => 'Angamacutiro'),\n \t array('id' => '28427','state_id' => '2443','name' => 'Angangueo'),\n \t array('id' => '28428','state_id' => '2443','name' => 'Antunez'),\n \t array('id' => '28429','state_id' => '2443','name' => 'Apatzingan'),\n \t array('id' => '28430','state_id' => '2443','name' => 'Ario'),\n \t array('id' => '28431','state_id' => '2443','name' => 'Arteaga'),\n \t array('id' => '28432','state_id' => '2443','name' => 'Benito Juarez'),\n \t array('id' => '28433','state_id' => '2443','name' => 'Brisenas'),\n \t array('id' => '28434','state_id' => '2443','name' => 'Buenavista'),\n \t array('id' => '28435','state_id' => '2443','name' => 'Buenos Aires'),\n \t array('id' => '28436','state_id' => '2443','name' => 'Caltzontzin'),\n \t array('id' => '28437','state_id' => '2443','name' => 'Capacuaro'),\n \t array('id' => '28438','state_id' => '2443','name' => 'Capula'),\n \t array('id' => '28439','state_id' => '2443','name' => 'Caracuaro'),\n \t array('id' => '28440','state_id' => '2443','name' => 'Charapan'),\n \t array('id' => '28441','state_id' => '2443','name' => 'Charo'),\n \t array('id' => '28442','state_id' => '2443','name' => 'Chavinda'),\n \t array('id' => '28443','state_id' => '2443','name' => 'Cheran'),\n \t array('id' => '28444','state_id' => '2443','name' => 'Chilchota'),\n \t array('id' => '28445','state_id' => '2443','name' => 'Churintzio'),\n \t array('id' => '28446','state_id' => '2443','name' => 'Churumuco'),\n \t array('id' => '28447','state_id' => '2443','name' => 'Coahuayana'),\n \t array('id' => '28448','state_id' => '2443','name' => 'Coalcoman'),\n \t array('id' => '28449','state_id' => '2443','name' => 'Coeneo'),\n \t array('id' => '28450','state_id' => '2443','name' => 'Cojumatlan'),\n \t array('id' => '28451','state_id' => '2443','name' => 'Comachuen'),\n \t array('id' => '28452','state_id' => '2443','name' => 'Contepec'),\n \t array('id' => '28453','state_id' => '2443','name' => 'Copandaro'),\n \t array('id' => '28454','state_id' => '2443','name' => 'Cotija'),\n \t array('id' => '28455','state_id' => '2443','name' => 'Cuanajo'),\n \t array('id' => '28456','state_id' => '2443','name' => 'Cuitareo'),\n \t array('id' => '28457','state_id' => '2443','name' => 'Cuitzeo'),\n \t array('id' => '28458','state_id' => '2443','name' => 'Ecuandureo'),\n \t array('id' => '28459','state_id' => '2443','name' => 'Hidalgo'),\n \t array('id' => '28460','state_id' => '2443','name' => 'Huandacareo'),\n \t array('id' => '28461','state_id' => '2443','name' => 'Huetamo'),\n \t array('id' => '28462','state_id' => '2443','name' => 'Indaparapeo'),\n \t array('id' => '28463','state_id' => '2443','name' => 'Irimbo'),\n \t array('id' => '28464','state_id' => '2443','name' => 'Ixtlan'),\n \t array('id' => '28465','state_id' => '2443','name' => 'Jacona'),\n \t array('id' => '28466','state_id' => '2443','name' => 'Jiquilpan'),\n \t array('id' => '28467','state_id' => '2443','name' => 'Jungapeo'),\n \t array('id' => '28468','state_id' => '2443','name' => 'La Huacana'),\n \t array('id' => '28469','state_id' => '2443','name' => 'La Mira'),\n \t array('id' => '28470','state_id' => '2443','name' => 'La Orilla'),\n \t array('id' => '28471','state_id' => '2443','name' => 'La Piedad'),\n \t array('id' => '28472','state_id' => '2443','name' => 'La Ruana'),\n \t array('id' => '28473','state_id' => '2443','name' => 'Las Guacamayas'),\n \t array('id' => '28474','state_id' => '2443','name' => 'Lazaro Cardenas'),\n \t array('id' => '28475','state_id' => '2443','name' => 'Lombardia'),\n \t array('id' => '28476','state_id' => '2443','name' => 'Los Reyes'),\n \t array('id' => '28477','state_id' => '2443','name' => 'Madero'),\n \t array('id' => '28478','state_id' => '2443','name' => 'Maravatio'),\n \t array('id' => '28479','state_id' => '2443','name' => 'Maya'),\n \t array('id' => '28480','state_id' => '2443','name' => 'Morelia'),\n \t array('id' => '28481','state_id' => '2443','name' => 'Morelos'),\n \t array('id' => '28482','state_id' => '2443','name' => 'Nahuatzen'),\n \t array('id' => '28483','state_id' => '2443','name' => 'Nocupetaro'),\n \t array('id' => '28484','state_id' => '2443','name' => 'Nueva Italia de Ruiz'),\n \t array('id' => '28485','state_id' => '2443','name' => 'Nuevo San Juan Parangaricutiro'),\n \t array('id' => '28486','state_id' => '2443','name' => 'Numaran'),\n \t array('id' => '28487','state_id' => '2443','name' => 'Ocampo'),\n \t array('id' => '28488','state_id' => '2443','name' => 'Opopeo'),\n \t array('id' => '28489','state_id' => '2443','name' => 'Pajacuaran'),\n \t array('id' => '28490','state_id' => '2443','name' => 'Panindicuaro'),\n \t array('id' => '28491','state_id' => '2443','name' => 'Paracho'),\n \t array('id' => '28492','state_id' => '2443','name' => 'Paracuaro'),\n \t array('id' => '28493','state_id' => '2443','name' => 'Pastor Ortiz'),\n \t array('id' => '28494','state_id' => '2443','name' => 'Patzcuaro'),\n \t array('id' => '28495','state_id' => '2443','name' => 'Pedernales'),\n \t array('id' => '28496','state_id' => '2443','name' => 'Penjamillo'),\n \t array('id' => '28497','state_id' => '2443','name' => 'Periban'),\n \t array('id' => '28498','state_id' => '2443','name' => 'Pichataro'),\n \t array('id' => '28499','state_id' => '2443','name' => 'Purepero'),\n \t array('id' => '28500','state_id' => '2443','name' => 'Puruandiro'),\n \t array('id' => '28501','state_id' => '2443','name' => 'Puruaran'),\n \t array('id' => '28502','state_id' => '2443','name' => 'Querendaro'),\n \t array('id' => '28503','state_id' => '2443','name' => 'Quiroga'),\n \t array('id' => '28504','state_id' => '2443','name' => 'Rincon de Nicolas Romero'),\n \t array('id' => '28505','state_id' => '2443','name' => 'Riva Palacio'),\n \t array('id' => '28506','state_id' => '2443','name' => 'Sahuayo'),\n \t array('id' => '28507','state_id' => '2443','name' => 'San Jose de Gracia'),\n \t array('id' => '28508','state_id' => '2443','name' => 'San Lucas'),\n \t array('id' => '28509','state_id' => '2443','name' => 'San Matias Grande'),\n \t array('id' => '28510','state_id' => '2443','name' => 'Santa Clara de Valladares'),\n \t array('id' => '28511','state_id' => '2443','name' => 'Santa Clara del Cobre'),\n \t array('id' => '28512','state_id' => '2443','name' => 'Santa Fe de la Laguna'),\n \t array('id' => '28513','state_id' => '2443','name' => 'Tacambaro'),\n \t array('id' => '28514','state_id' => '2443','name' => 'Tancitaro'),\n \t array('id' => '28515','state_id' => '2443','name' => 'Tangamandapio'),\n \t array('id' => '28516','state_id' => '2443','name' => 'Tangancicuaro'),\n \t array('id' => '28517','state_id' => '2443','name' => 'Tanhuato'),\n \t array('id' => '28518','state_id' => '2443','name' => 'Tarecuato'),\n \t array('id' => '28519','state_id' => '2443','name' => 'Taretan'),\n \t array('id' => '28520','state_id' => '2443','name' => 'Tarimbaro'),\n \t array('id' => '28521','state_id' => '2443','name' => 'Tejaro'),\n \t array('id' => '28522','state_id' => '2443','name' => 'Tepalcatepec'),\n \t array('id' => '28523','state_id' => '2443','name' => 'Tingambato'),\n \t array('id' => '28524','state_id' => '2443','name' => 'Tinguindin'),\n \t array('id' => '28525','state_id' => '2443','name' => 'Tiquicheo'),\n \t array('id' => '28526','state_id' => '2443','name' => 'Tlalpujahua'),\n \t array('id' => '28527','state_id' => '2443','name' => 'Tlazazalca'),\n \t array('id' => '28528','state_id' => '2443','name' => 'Tungareo'),\n \t array('id' => '28529','state_id' => '2443','name' => 'Tuxpan'),\n \t array('id' => '28530','state_id' => '2443','name' => 'Tzintzuntzan'),\n \t array('id' => '28531','state_id' => '2443','name' => 'Uruapan'),\n \t array('id' => '28532','state_id' => '2443','name' => 'Venustiano Carranza'),\n \t array('id' => '28533','state_id' => '2443','name' => 'Villa Jimenez'),\n \t array('id' => '28534','state_id' => '2443','name' => 'Villachuato'),\n \t array('id' => '28535','state_id' => '2443','name' => 'Villamar'),\n \t array('id' => '28536','state_id' => '2443','name' => 'Vista Hermosa'),\n \t array('id' => '28537','state_id' => '2443','name' => 'Yurecuaro'),\n \t array('id' => '28538','state_id' => '2443','name' => 'Zacapu'),\n \t array('id' => '28539','state_id' => '2443','name' => 'Zamora'),\n \t array('id' => '28540','state_id' => '2443','name' => 'Zinapecuaro'),\n \t array('id' => '28541','state_id' => '2443','name' => 'Zitacuaro'),\n \t array('id' => '28542','state_id' => '2444','name' => 'Alpuyeca'),\n \t array('id' => '28543','state_id' => '2444','name' => 'Amacuzac'),\n \t array('id' => '28544','state_id' => '2444','name' => 'Amayuca'),\n \t array('id' => '28545','state_id' => '2444','name' => 'Anenecuilco'),\n \t array('id' => '28546','state_id' => '2444','name' => 'Apatlaco'),\n \t array('id' => '28547','state_id' => '2444','name' => 'Atlatlahucan'),\n \t array('id' => '28548','state_id' => '2444','name' => 'Axochiapan'),\n \t array('id' => '28549','state_id' => '2444','name' => 'Ayala'),\n \t array('id' => '28550','state_id' => '2444','name' => 'Calera Chica'),\n \t array('id' => '28551','state_id' => '2444','name' => 'Chiconcuac'),\n \t array('id' => '28552','state_id' => '2444','name' => 'Coatetelco'),\n \t array('id' => '28553','state_id' => '2444','name' => 'Cocoyoc'),\n \t array('id' => '28554','state_id' => '2444','name' => 'Cuautla'),\n \t array('id' => '28555','state_id' => '2444','name' => 'Cuernavaca'),\n \t array('id' => '28556','state_id' => '2444','name' => 'Emiliano Zapata'),\n \t array('id' => '28557','state_id' => '2444','name' => 'Higueron'),\n \t array('id' => '28558','state_id' => '2444','name' => 'Hueyapan'),\n \t array('id' => '28559','state_id' => '2444','name' => 'Huiztilac'),\n \t array('id' => '28560','state_id' => '2444','name' => 'Independencia'),\n \t array('id' => '28561','state_id' => '2444','name' => 'Jantetelco'),\n \t array('id' => '28562','state_id' => '2444','name' => 'Jiutepec'),\n \t array('id' => '28563','state_id' => '2444','name' => 'Jojutla'),\n \t array('id' => '28564','state_id' => '2444','name' => 'Jonacatepec'),\n \t array('id' => '28565','state_id' => '2444','name' => 'Juan Morales'),\n \t array('id' => '28566','state_id' => '2444','name' => 'La Joya'),\n \t array('id' => '28567','state_id' => '2444','name' => 'Los Arcos'),\n \t array('id' => '28568','state_id' => '2444','name' => 'Mazatepec'),\n \t array('id' => '28569','state_id' => '2444','name' => 'Miacatlan'),\n \t array('id' => '28570','state_id' => '2444','name' => 'Oaxtepec'),\n \t array('id' => '28571','state_id' => '2444','name' => 'Ocuituco'),\n \t array('id' => '28572','state_id' => '2444','name' => 'Pedro Amaro'),\n \t array('id' => '28573','state_id' => '2444','name' => 'Progreso'),\n \t array('id' => '28574','state_id' => '2444','name' => 'Puente de Ixtla'),\n \t array('id' => '28575','state_id' => '2444','name' => 'San Jose Vista Hermosa'),\n \t array('id' => '28576','state_id' => '2444','name' => 'San Nicolas Galeana'),\n \t array('id' => '28577','state_id' => '2444','name' => 'Santa Catarina'),\n \t array('id' => '28578','state_id' => '2444','name' => 'Santa Rosa Treinta'),\n \t array('id' => '28579','state_id' => '2444','name' => 'Tehuixtla'),\n \t array('id' => '28580','state_id' => '2444','name' => 'Telixtac'),\n \t array('id' => '28581','state_id' => '2444','name' => 'Temixco'),\n \t array('id' => '28582','state_id' => '2444','name' => 'Temoac'),\n \t array('id' => '28583','state_id' => '2444','name' => 'Tenextepango'),\n \t array('id' => '28584','state_id' => '2444','name' => 'Tepalcingo'),\n \t array('id' => '28585','state_id' => '2444','name' => 'Tepoztlan'),\n \t array('id' => '28586','state_id' => '2444','name' => 'Tetecala'),\n \t array('id' => '28587','state_id' => '2444','name' => 'Tetela del Volcan'),\n \t array('id' => '28588','state_id' => '2444','name' => 'Tilzapotla'),\n \t array('id' => '28589','state_id' => '2444','name' => 'Tlacotepec'),\n \t array('id' => '28590','state_id' => '2444','name' => 'Tlalnepantla'),\n \t array('id' => '28591','state_id' => '2444','name' => 'Tlaltizapan'),\n \t array('id' => '28592','state_id' => '2444','name' => 'Tlaquiltenango'),\n \t array('id' => '28593','state_id' => '2444','name' => 'Tlatenchi'),\n \t array('id' => '28594','state_id' => '2444','name' => 'Tlayacapan'),\n \t array('id' => '28595','state_id' => '2444','name' => 'Totolapan'),\n \t array('id' => '28596','state_id' => '2444','name' => 'Tres Marias'),\n \t array('id' => '28597','state_id' => '2444','name' => 'Unidad Habitacional Jose Maria'),\n \t array('id' => '28598','state_id' => '2444','name' => 'Xochitepec'),\n \t array('id' => '28599','state_id' => '2444','name' => 'Xoxocotla'),\n \t array('id' => '28600','state_id' => '2444','name' => 'Yautepec'),\n \t array('id' => '28601','state_id' => '2444','name' => 'Yecapixtla'),\n \t array('id' => '28602','state_id' => '2444','name' => 'Zacatepec'),\n \t array('id' => '28603','state_id' => '2444','name' => 'Zacualpan'),\n \t array('id' => '28604','state_id' => '2445','name' => 'Acaponeta'),\n \t array('id' => '28605','state_id' => '2445','name' => 'Ahuacatlan'),\n \t array('id' => '28606','state_id' => '2445','name' => 'Amatlan'),\n \t array('id' => '28607','state_id' => '2445','name' => 'Aztatan'),\n \t array('id' => '28608','state_id' => '2445','name' => 'Bucerias'),\n \t array('id' => '28609','state_id' => '2445','name' => 'Carmen'),\n \t array('id' => '28610','state_id' => '2445','name' => 'Cerralvo'),\n \t array('id' => '28611','state_id' => '2445','name' => 'Compostela'),\n \t array('id' => '28612','state_id' => '2445','name' => 'Hidalgo'),\n \t array('id' => '28613','state_id' => '2445','name' => 'Ixcuintla'),\n \t array('id' => '28614','state_id' => '2445','name' => 'Ixtlan del Rio'),\n \t array('id' => '28615','state_id' => '2445','name' => 'Jala'),\n \t array('id' => '28616','state_id' => '2445','name' => 'Jalcocotan'),\n \t array('id' => '28617','state_id' => '2445','name' => 'La Penita de Jaltemba'),\n \t array('id' => '28618','state_id' => '2445','name' => 'La Presa'),\n \t array('id' => '28619','state_id' => '2445','name' => 'Lagunillas'),\n \t array('id' => '28620','state_id' => '2445','name' => 'Las Jarretaderas'),\n \t array('id' => '28621','state_id' => '2445','name' => 'Las Varas'),\n \t array('id' => '28622','state_id' => '2445','name' => 'Puga'),\n \t array('id' => '28623','state_id' => '2445','name' => 'Rosamorada'),\n \t array('id' => '28624','state_id' => '2445','name' => 'Ruiz'),\n \t array('id' => '28625','state_id' => '2445','name' => 'San Blas'),\n \t array('id' => '28626','state_id' => '2445','name' => 'San Jose del Valle'),\n \t array('id' => '28627','state_id' => '2445','name' => 'San Juan de Abajo'),\n \t array('id' => '28628','state_id' => '2445','name' => 'San Vicente'),\n \t array('id' => '28629','state_id' => '2445','name' => 'Santa Maria del Oro'),\n \t array('id' => '28630','state_id' => '2445','name' => 'Tecuala'),\n \t array('id' => '28631','state_id' => '2445','name' => 'Tepic'),\n \t array('id' => '28632','state_id' => '2445','name' => 'Tuxpan'),\n \t array('id' => '28633','state_id' => '2445','name' => 'Valle de Banderas'),\n \t array('id' => '28634','state_id' => '2445','name' => 'Xalisco'),\n \t array('id' => '28635','state_id' => '2445','name' => 'Yago'),\n \t array('id' => '28636','state_id' => '2445','name' => 'Zacualpan'),\n \t array('id' => '28637','state_id' => '2447','name' => 'Acatlan'),\n \t array('id' => '28638','state_id' => '2447','name' => 'Amatlan'),\n \t array('id' => '28639','state_id' => '2447','name' => 'Amilpas'),\n \t array('id' => '28640','state_id' => '2447','name' => 'Amuzgos'),\n \t array('id' => '28641','state_id' => '2447','name' => 'Asuncion Ixtaltepec'),\n \t array('id' => '28642','state_id' => '2447','name' => 'Asuncion Nochixtlan'),\n \t array('id' => '28643','state_id' => '2447','name' => 'Asuncion Ocotlan'),\n \t array('id' => '28644','state_id' => '2447','name' => 'Atempa'),\n \t array('id' => '28645','state_id' => '2447','name' => 'Atzompa'),\n \t array('id' => '28646','state_id' => '2447','name' => 'Ayautla'),\n \t array('id' => '28647','state_id' => '2447','name' => 'Ayoquezco'),\n \t array('id' => '28648','state_id' => '2447','name' => 'Ayotzintepec'),\n \t array('id' => '28649','state_id' => '2447','name' => 'Bajos de Chila'),\n \t array('id' => '28650','state_id' => '2447','name' => 'Brisas de Zicatela'),\n \t array('id' => '28651','state_id' => '2447','name' => 'Cacahuatepec'),\n \t array('id' => '28652','state_id' => '2447','name' => 'Cacaotepec'),\n \t array('id' => '28653','state_id' => '2447','name' => 'Chahuites'),\n \t array('id' => '28654','state_id' => '2447','name' => 'Chichicapam'),\n \t array('id' => '28655','state_id' => '2447','name' => 'Chiltepec'),\n \t array('id' => '28656','state_id' => '2447','name' => 'Cienaga de Zimatlan'),\n \t array('id' => '28657','state_id' => '2447','name' => 'Coatlan'),\n \t array('id' => '28658','state_id' => '2447','name' => 'Comitancillo'),\n \t array('id' => '28659','state_id' => '2447','name' => 'Cosolapa'),\n \t array('id' => '28660','state_id' => '2447','name' => 'Coyotepec'),\n \t array('id' => '28661','state_id' => '2447','name' => 'Crucecita'),\n \t array('id' => '28662','state_id' => '2447','name' => 'Cuicatlan'),\n \t array('id' => '28663','state_id' => '2447','name' => 'Cuilapam'),\n \t array('id' => '28664','state_id' => '2447','name' => 'Ejutla de Crespo'),\n \t array('id' => '28665','state_id' => '2447','name' => 'El Espinal'),\n \t array('id' => '28666','state_id' => '2447','name' => 'Etla'),\n \t array('id' => '28667','state_id' => '2447','name' => 'Fraccionamiento el Rosario'),\n \t array('id' => '28668','state_id' => '2447','name' => 'Guelavia'),\n \t array('id' => '28669','state_id' => '2447','name' => 'Guichicovi'),\n \t array('id' => '28670','state_id' => '2447','name' => 'Huajuapan'),\n \t array('id' => '28671','state_id' => '2447','name' => 'Huatulco'),\n \t array('id' => '28672','state_id' => '2447','name' => 'Huautla'),\n \t array('id' => '28673','state_id' => '2447','name' => 'Huaxpaltepec'),\n \t array('id' => '28674','state_id' => '2447','name' => 'Huayapam'),\n \t array('id' => '28675','state_id' => '2447','name' => 'Huazolotitlan'),\n \t array('id' => '28676','state_id' => '2447','name' => 'Huitzo'),\n \t array('id' => '28677','state_id' => '2447','name' => 'Huixtepec'),\n \t array('id' => '28678','state_id' => '2447','name' => 'Ingenio'),\n \t array('id' => '28679','state_id' => '2447','name' => 'Ixcatlan'),\n \t array('id' => '28680','state_id' => '2447','name' => 'Ixhuatan'),\n \t array('id' => '28681','state_id' => '2447','name' => 'Ixtepec'),\n \t array('id' => '28682','state_id' => '2447','name' => 'Jalapa'),\n \t array('id' => '28683','state_id' => '2447','name' => 'Jamiltepec'),\n \t array('id' => '28684','state_id' => '2447','name' => 'Jicayan'),\n \t array('id' => '28685','state_id' => '2447','name' => 'Juchitan'),\n \t array('id' => '28686','state_id' => '2447','name' => 'Juquila'),\n \t array('id' => '28687','state_id' => '2447','name' => 'Juxtlahuaca'),\n \t array('id' => '28688','state_id' => '2447','name' => 'Loma Bonita'),\n \t array('id' => '28689','state_id' => '2447','name' => 'Magdalena Teitipac'),\n \t array('id' => '28690','state_id' => '2447','name' => 'Magdalena Tequisistlan'),\n \t array('id' => '28691','state_id' => '2447','name' => 'Matatlan'),\n \t array('id' => '28692','state_id' => '2447','name' => 'Matias Romero'),\n \t array('id' => '28693','state_id' => '2447','name' => 'Mechoacan'),\n \t array('id' => '28694','state_id' => '2447','name' => 'Miahuatlan'),\n \t array('id' => '28695','state_id' => '2447','name' => 'Mitla'),\n \t array('id' => '28696','state_id' => '2447','name' => 'Mixtepec'),\n \t array('id' => '28697','state_id' => '2447','name' => 'Mixtequilla'),\n \t array('id' => '28698','state_id' => '2447','name' => 'Nazareno Etla'),\n \t array('id' => '28699','state_id' => '2447','name' => 'Niltepec'),\n \t array('id' => '28700','state_id' => '2447','name' => 'Oaxaca'),\n \t array('id' => '28701','state_id' => '2447','name' => 'Ocotepec'),\n \t array('id' => '28702','state_id' => '2447','name' => 'Ocotlan'),\n \t array('id' => '28703','state_id' => '2447','name' => 'Ojitlan'),\n \t array('id' => '28704','state_id' => '2447','name' => 'Palomares'),\n \t array('id' => '28705','state_id' => '2447','name' => 'Panixtlahuaca'),\n \t array('id' => '28706','state_id' => '2447','name' => 'Petapa'),\n \t array('id' => '28707','state_id' => '2447','name' => 'Pinotepa Nacional'),\n \t array('id' => '28708','state_id' => '2447','name' => 'Pinotepa de Don Luis'),\n \t array('id' => '28709','state_id' => '2447','name' => 'Pochutla'),\n \t array('id' => '28710','state_id' => '2447','name' => 'Puerto Escondido'),\n \t array('id' => '28711','state_id' => '2447','name' => 'Putla'),\n \t array('id' => '28712','state_id' => '2447','name' => 'Quetzaltepec'),\n \t array('id' => '28713','state_id' => '2447','name' => 'Rincon Viejo'),\n \t array('id' => '28714','state_id' => '2447','name' => 'Rio Grande'),\n \t array('id' => '28715','state_id' => '2447','name' => 'Salina Cruz'),\n \t array('id' => '28716','state_id' => '2447','name' => 'San Agustin de las Juntas'),\n \t array('id' => '28717','state_id' => '2447','name' => 'San Antonio Castillo Velasco'),\n \t array('id' => '28718','state_id' => '2447','name' => 'San Antonio de la Cal'),\n \t array('id' => '28719','state_id' => '2447','name' => 'San Dionisio del Mar'),\n \t array('id' => '28720','state_id' => '2447','name' => 'San Francisco del Mar'),\n \t array('id' => '28721','state_id' => '2447','name' => 'San Jose del Progreso'),\n \t array('id' => '28722','state_id' => '2447','name' => 'San Juan Colorado'),\n \t array('id' => '28723','state_id' => '2447','name' => 'San Mateo del Mar'),\n \t array('id' => '28724','state_id' => '2447','name' => 'Santa Lucia del Camino'),\n \t array('id' => '28725','state_id' => '2447','name' => 'Santa Maria del Tule'),\n \t array('id' => '28726','state_id' => '2447','name' => 'Santiago Apostol'),\n \t array('id' => '28727','state_id' => '2447','name' => 'Santos Reyes Nopala'),\n \t array('id' => '28728','state_id' => '2447','name' => 'Soyaltepec'),\n \t array('id' => '28729','state_id' => '2447','name' => 'Suchilquitongo'),\n \t array('id' => '28730','state_id' => '2447','name' => 'Tamazulapam'),\n \t array('id' => '28731','state_id' => '2447','name' => 'Tapanatepec'),\n \t array('id' => '28732','state_id' => '2447','name' => 'Tehuantepec'),\n \t array('id' => '28733','state_id' => '2447','name' => 'Teitipac'),\n \t array('id' => '28734','state_id' => '2447','name' => 'Telixtlahuaca'),\n \t array('id' => '28735','state_id' => '2447','name' => 'Teotitlan'),\n \t array('id' => '28736','state_id' => '2447','name' => 'Teotitlan den Valle'),\n \t array('id' => '28737','state_id' => '2447','name' => 'Tilquiapam'),\n \t array('id' => '28738','state_id' => '2447','name' => 'Tlacolula'),\n \t array('id' => '28739','state_id' => '2447','name' => 'Tlalixtac'),\n \t array('id' => '28740','state_id' => '2447','name' => 'Tlaxiaco'),\n \t array('id' => '28741','state_id' => '2447','name' => 'Tutla'),\n \t array('id' => '28742','state_id' => '2447','name' => 'Tuxtepec'),\n \t array('id' => '28743','state_id' => '2447','name' => 'Union Hidalgo'),\n \t array('id' => '28744','state_id' => '2447','name' => 'Usila'),\n \t array('id' => '28745','state_id' => '2447','name' => 'Valle Nacional'),\n \t array('id' => '28746','state_id' => '2447','name' => 'Vicente Camalote'),\n \t array('id' => '28747','state_id' => '2447','name' => 'Vicente Guerrero'),\n \t array('id' => '28748','state_id' => '2447','name' => 'Xadani'),\n \t array('id' => '28749','state_id' => '2447','name' => 'Xitla'),\n \t array('id' => '28750','state_id' => '2447','name' => 'Xoxocotlan'),\n \t array('id' => '28751','state_id' => '2447','name' => 'Yaitepec'),\n \t array('id' => '28752','state_id' => '2447','name' => 'Yatareni'),\n \t array('id' => '28753','state_id' => '2447','name' => 'Zaachila'),\n \t array('id' => '28754','state_id' => '2447','name' => 'Zacatepec'),\n \t array('id' => '28755','state_id' => '2447','name' => 'Zanatepec'),\n \t array('id' => '28756','state_id' => '2447','name' => 'Zimatlan'),\n \t array('id' => '28757','state_id' => '2448','name' => 'Acajete'),\n \t array('id' => '28758','state_id' => '2448','name' => 'Acateno'),\n \t array('id' => '28759','state_id' => '2448','name' => 'Acatlan'),\n \t array('id' => '28760','state_id' => '2448','name' => 'Acatzingo'),\n \t array('id' => '28761','state_id' => '2448','name' => 'Actipan'),\n \t array('id' => '28762','state_id' => '2448','name' => 'Acuexcomac'),\n \t array('id' => '28763','state_id' => '2448','name' => 'Ahuatempan'),\n \t array('id' => '28764','state_id' => '2448','name' => 'Ajalpan'),\n \t array('id' => '28765','state_id' => '2448','name' => 'Aljojuca'),\n \t array('id' => '28766','state_id' => '2448','name' => 'Almecatla'),\n \t array('id' => '28767','state_id' => '2448','name' => 'Alseseca'),\n \t array('id' => '28768','state_id' => '2448','name' => 'Altepexi'),\n \t array('id' => '28769','state_id' => '2448','name' => 'Amecac'),\n \t array('id' => '28770','state_id' => '2448','name' => 'Amozoc'),\n \t array('id' => '28771','state_id' => '2448','name' => 'Aparicio'),\n \t array('id' => '28772','state_id' => '2448','name' => 'Atempan'),\n \t array('id' => '28773','state_id' => '2448','name' => 'Atencingo'),\n \t array('id' => '28774','state_id' => '2448','name' => 'Atlixco'),\n \t array('id' => '28775','state_id' => '2448','name' => 'Atoyatempan'),\n \t array('id' => '28776','state_id' => '2448','name' => 'Atzitzintla'),\n \t array('id' => '28777','state_id' => '2448','name' => 'Atzompa'),\n \t array('id' => '28778','state_id' => '2448','name' => 'Ayutla'),\n \t array('id' => '28779','state_id' => '2448','name' => 'Azumiatla'),\n \t array('id' => '28780','state_id' => '2448','name' => 'Benito Juarez'),\n \t array('id' => '28781','state_id' => '2448','name' => 'Buenos Aires'),\n \t array('id' => '28782','state_id' => '2448','name' => 'Cacaloxuchitl'),\n \t array('id' => '28783','state_id' => '2448','name' => 'Calipan'),\n \t array('id' => '28784','state_id' => '2448','name' => 'Calmeca'),\n \t array('id' => '28785','state_id' => '2448','name' => 'Calpan'),\n \t array('id' => '28786','state_id' => '2448','name' => 'Caltenco'),\n \t array('id' => '28787','state_id' => '2448','name' => 'Canada'),\n \t array('id' => '28788','state_id' => '2448','name' => 'Canoa'),\n \t array('id' => '28789','state_id' => '2448','name' => 'Caxhuacan'),\n \t array('id' => '28790','state_id' => '2448','name' => 'Chalchihuapan'),\n \t array('id' => '28791','state_id' => '2448','name' => 'Chapulco'),\n \t array('id' => '28792','state_id' => '2448','name' => 'Chautla'),\n \t array('id' => '28793','state_id' => '2448','name' => 'Chiapa'),\n \t array('id' => '28794','state_id' => '2448','name' => 'Chiautla'),\n \t array('id' => '28795','state_id' => '2448','name' => 'Chiautzingo'),\n \t array('id' => '28796','state_id' => '2448','name' => 'Chiconquiac'),\n \t array('id' => '28797','state_id' => '2448','name' => 'Chietla'),\n \t array('id' => '28798','state_id' => '2448','name' => 'Chignahuapan'),\n \t array('id' => '28799','state_id' => '2448','name' => 'Chignautla'),\n \t array('id' => '28800','state_id' => '2448','name' => 'Chilac'),\n \t array('id' => '28801','state_id' => '2448','name' => 'Chilchotla'),\n \t array('id' => '28802','state_id' => '2448','name' => 'Cholula'),\n \t array('id' => '28803','state_id' => '2448','name' => 'Citlaltepetl'),\n \t array('id' => '28804','state_id' => '2448','name' => 'Coatepec'),\n \t array('id' => '28805','state_id' => '2448','name' => 'Coronango'),\n \t array('id' => '28806','state_id' => '2448','name' => 'Coxcatlan'),\n \t array('id' => '28807','state_id' => '2448','name' => 'Coyula'),\n \t array('id' => '28808','state_id' => '2448','name' => 'Cuacnopalan'),\n \t array('id' => '28809','state_id' => '2448','name' => 'Cuanala'),\n \t array('id' => '28810','state_id' => '2448','name' => 'Cuapiaxtla'),\n \t array('id' => '28811','state_id' => '2448','name' => 'Cuautlancingo'),\n \t array('id' => '28812','state_id' => '2448','name' => 'Cuayucatepec'),\n \t array('id' => '28813','state_id' => '2448','name' => 'Cuetzalan'),\n \t array('id' => '28814','state_id' => '2448','name' => 'Domingo Arenas'),\n \t array('id' => '28815','state_id' => '2448','name' => 'Escape'),\n \t array('id' => '28816','state_id' => '2448','name' => 'Esperanza'),\n \t array('id' => '28817','state_id' => '2448','name' => 'Guadalupe Victoria'),\n \t array('id' => '28818','state_id' => '2448','name' => 'Huaquechula'),\n \t array('id' => '28819','state_id' => '2448','name' => 'Huauchinango'),\n \t array('id' => '28820','state_id' => '2448','name' => 'Huehuetlan'),\n \t array('id' => '28821','state_id' => '2448','name' => 'Huejotzingo'),\n \t array('id' => '28822','state_id' => '2448','name' => 'Hueyapan'),\n \t array('id' => '28823','state_id' => '2448','name' => 'Hueyotlipan'),\n \t array('id' => '28824','state_id' => '2448','name' => 'Hueytamalco'),\n \t array('id' => '28825','state_id' => '2448','name' => 'Huixcolotla'),\n \t array('id' => '28826','state_id' => '2448','name' => 'Ixcaquixtla'),\n \t array('id' => '28827','state_id' => '2448','name' => 'Ixtiyucan'),\n \t array('id' => '28828','state_id' => '2448','name' => 'Izucar'),\n \t array('id' => '28829','state_id' => '2448','name' => 'Jolalpan'),\n \t array('id' => '28830','state_id' => '2448','name' => 'La Ceiba'),\n \t array('id' => '28831','state_id' => '2448','name' => 'La Galarza'),\n \t array('id' => '28832','state_id' => '2448','name' => 'La Resureccion'),\n \t array('id' => '28833','state_id' => '2448','name' => 'Lazaro Cardenas'),\n \t array('id' => '28834','state_id' => '2448','name' => 'Libres'),\n \t array('id' => '28835','state_id' => '2448','name' => 'Los Ranchos'),\n \t array('id' => '28836','state_id' => '2448','name' => 'Los Reyes de Juarez'),\n \t array('id' => '28837','state_id' => '2448','name' => 'Malacatepec'),\n \t array('id' => '28838','state_id' => '2448','name' => 'Metlaltoyuca'),\n \t array('id' => '28839','state_id' => '2448','name' => 'Miahuatlan'),\n \t array('id' => '28840','state_id' => '2448','name' => 'Mihuacan'),\n \t array('id' => '28841','state_id' => '2448','name' => 'Momoxpan'),\n \t array('id' => '28842','state_id' => '2448','name' => 'Moyotzingo'),\n \t array('id' => '28843','state_id' => '2448','name' => 'Nealtican'),\n \t array('id' => '28844','state_id' => '2448','name' => 'Necaxa'),\n \t array('id' => '28845','state_id' => '2448','name' => 'Nopalucan'),\n \t array('id' => '28846','state_id' => '2448','name' => 'Ocotitlan'),\n \t array('id' => '28847','state_id' => '2448','name' => 'Ocotlan'),\n \t array('id' => '28848','state_id' => '2448','name' => 'Ocoyucan'),\n \t array('id' => '28849','state_id' => '2448','name' => 'Oriental'),\n \t array('id' => '28850','state_id' => '2448','name' => 'Pahuatlan'),\n \t array('id' => '28851','state_id' => '2448','name' => 'Palmar de Bravo'),\n \t array('id' => '28852','state_id' => '2448','name' => 'Puebla'),\n \t array('id' => '28853','state_id' => '2448','name' => 'Quecholac'),\n \t array('id' => '28854','state_id' => '2448','name' => 'Raboso'),\n \t array('id' => '28855','state_id' => '2448','name' => 'Rafael Lara Grajales'),\n \t array('id' => '28856','state_id' => '2448','name' => 'San Gabriel Casa Blanca'),\n \t array('id' => '28857','state_id' => '2448','name' => 'San Lucas el Grande'),\n \t array('id' => '28858','state_id' => '2448','name' => 'San Salvador el Seco'),\n \t array('id' => '28859','state_id' => '2448','name' => 'San Sebastian Villanueva'),\n \t array('id' => '28860','state_id' => '2448','name' => 'Sanctorum'),\n \t array('id' => '28861','state_id' => '2448','name' => 'Santa Maria la Alta'),\n \t array('id' => '28862','state_id' => '2448','name' => 'Serdan'),\n \t array('id' => '28863','state_id' => '2448','name' => 'Soltepec'),\n \t array('id' => '28864','state_id' => '2448','name' => 'Tatoxcac'),\n \t array('id' => '28865','state_id' => '2448','name' => 'Tecali'),\n \t array('id' => '28866','state_id' => '2448','name' => 'Tecamachalco'),\n \t array('id' => '28867','state_id' => '2448','name' => 'Tehuacan'),\n \t array('id' => '28868','state_id' => '2448','name' => 'Tehuitzingo'),\n \t array('id' => '28869','state_id' => '2448','name' => 'Tenango'),\n \t array('id' => '28870','state_id' => '2448','name' => 'Tenango de las Flores'),\n \t array('id' => '28871','state_id' => '2448','name' => 'Tenextatiloyan'),\n \t array('id' => '28872','state_id' => '2448','name' => 'Teontepec'),\n \t array('id' => '28873','state_id' => '2448','name' => 'Teopantlan'),\n \t array('id' => '28874','state_id' => '2448','name' => 'Teotlalcingo'),\n \t array('id' => '28875','state_id' => '2448','name' => 'Tepango'),\n \t array('id' => '28876','state_id' => '2448','name' => 'Tepatlaxco'),\n \t array('id' => '28877','state_id' => '2448','name' => 'Tepeaca'),\n \t array('id' => '28878','state_id' => '2448','name' => 'Tepeojuma'),\n \t array('id' => '28879','state_id' => '2448','name' => 'Tepexi'),\n \t array('id' => '28880','state_id' => '2448','name' => 'Tepulco'),\n \t array('id' => '28881','state_id' => '2448','name' => 'Tetela Morelos'),\n \t array('id' => '28882','state_id' => '2448','name' => 'Tetela de Ocampo'),\n \t array('id' => '28883','state_id' => '2448','name' => 'Teteles'),\n \t array('id' => '28884','state_id' => '2448','name' => 'Tetzoyocan'),\n \t array('id' => '28885','state_id' => '2448','name' => 'Texmelucan'),\n \t array('id' => '28886','state_id' => '2448','name' => 'Teziutlan'),\n \t array('id' => '28887','state_id' => '2448','name' => 'Tianguismanalco'),\n \t array('id' => '28888','state_id' => '2448','name' => 'Tlachichuca'),\n \t array('id' => '28889','state_id' => '2448','name' => 'Tlacotepec'),\n \t array('id' => '28890','state_id' => '2448','name' => 'Tlacoyalco'),\n \t array('id' => '28891','state_id' => '2448','name' => 'Tlahuapan'),\n \t array('id' => '28892','state_id' => '2448','name' => 'Tlaixpan'),\n \t array('id' => '28893','state_id' => '2448','name' => 'Tlalancaleca'),\n \t array('id' => '28894','state_id' => '2448','name' => 'Tlaltenango'),\n \t array('id' => '28895','state_id' => '2448','name' => 'Tlanalapan'),\n \t array('id' => '28896','state_id' => '2448','name' => 'Tlancualpican'),\n \t array('id' => '28897','state_id' => '2448','name' => 'Tlanepantla'),\n \t array('id' => '28898','state_id' => '2448','name' => 'Tlapanala'),\n \t array('id' => '28899','state_id' => '2448','name' => 'Tlatlauquitepec'),\n \t array('id' => '28900','state_id' => '2448','name' => 'Tlaxcalancingo'),\n \t array('id' => '28901','state_id' => '2448','name' => 'Tlaxco'),\n \t array('id' => '28902','state_id' => '2448','name' => 'Tochapan'),\n \t array('id' => '28903','state_id' => '2448','name' => 'Tochimilco'),\n \t array('id' => '28904','state_id' => '2448','name' => 'Tochtepec'),\n \t array('id' => '28905','state_id' => '2448','name' => 'Tulcingo'),\n \t array('id' => '28906','state_id' => '2448','name' => 'Tuxco'),\n \t array('id' => '28907','state_id' => '2448','name' => 'Venustiano Carranza'),\n \t array('id' => '28908','state_id' => '2448','name' => 'Xalmimilulco'),\n \t array('id' => '28909','state_id' => '2448','name' => 'Xaltepec'),\n \t array('id' => '28910','state_id' => '2448','name' => 'Xicotepec'),\n \t array('id' => '28911','state_id' => '2448','name' => 'Xiutetelco'),\n \t array('id' => '28912','state_id' => '2448','name' => 'Xochiltenango'),\n \t array('id' => '28913','state_id' => '2448','name' => 'Xochitlan'),\n \t array('id' => '28914','state_id' => '2448','name' => 'Xonatepec'),\n \t array('id' => '28915','state_id' => '2448','name' => 'Xoxtla'),\n \t array('id' => '28916','state_id' => '2448','name' => 'Yaonahuac'),\n \t array('id' => '28917','state_id' => '2448','name' => 'Yehualtepec'),\n \t array('id' => '28918','state_id' => '2448','name' => 'Zacapechpan'),\n \t array('id' => '28919','state_id' => '2448','name' => 'Zacapoaxtla'),\n \t array('id' => '28920','state_id' => '2448','name' => 'Zacatepec'),\n \t array('id' => '28921','state_id' => '2448','name' => 'Zacatlan'),\n \t array('id' => '28922','state_id' => '2448','name' => 'Zaragoza'),\n \t array('id' => '28923','state_id' => '2448','name' => 'Zinacatepec'),\n \t array('id' => '28924','state_id' => '2448','name' => 'Zongozotla'),\n \t array('id' => '28925','state_id' => '2448','name' => 'Zozutla'),\n \t array('id' => '28926','state_id' => '2449','name' => 'Ajuchitlan'),\n \t array('id' => '28927','state_id' => '2449','name' => 'Amazcala'),\n \t array('id' => '28928','state_id' => '2449','name' => 'Amealco'),\n \t array('id' => '28929','state_id' => '2449','name' => 'Cadereyta'),\n \t array('id' => '28930','state_id' => '2449','name' => 'Candiles'),\n \t array('id' => '28931','state_id' => '2449','name' => 'Colon'),\n \t array('id' => '28932','state_id' => '2449','name' => 'El Colorado'),\n \t array('id' => '28933','state_id' => '2449','name' => 'El Pueblito'),\n \t array('id' => '28934','state_id' => '2449','name' => 'El Sauz'),\n \t array('id' => '28935','state_id' => '2449','name' => 'Ezequiel Montes'),\n \t array('id' => '28936','state_id' => '2449','name' => 'Huimilpan'),\n \t array('id' => '28937','state_id' => '2449','name' => 'Jalpan'),\n \t array('id' => '28938','state_id' => '2449','name' => 'Jauregui'),\n \t array('id' => '28939','state_id' => '2449','name' => 'La Canada'),\n \t array('id' => '28940','state_id' => '2449','name' => 'La Estancia'),\n \t array('id' => '28941','state_id' => '2449','name' => 'La Lira'),\n \t array('id' => '28942','state_id' => '2449','name' => 'La Llave'),\n \t array('id' => '28943','state_id' => '2449','name' => 'Paso de Mata'),\n \t array('id' => '28944','state_id' => '2449','name' => 'Pedro Escobedo'),\n \t array('id' => '28945','state_id' => '2449','name' => 'Queretaro'),\n \t array('id' => '28946','state_id' => '2449','name' => 'San Jose de los Olvera'),\n \t array('id' => '28947','state_id' => '2449','name' => 'San Jose el Alto'),\n \t array('id' => '28948','state_id' => '2449','name' => 'San Juan del Rio'),\n \t array('id' => '28949','state_id' => '2449','name' => 'San Nicolas'),\n \t array('id' => '28950','state_id' => '2449','name' => 'San Pedro Martir'),\n \t array('id' => '28951','state_id' => '2449','name' => 'Santa Maria Magdalena'),\n \t array('id' => '28952','state_id' => '2449','name' => 'Tequisquiapan'),\n \t array('id' => '28953','state_id' => '2449','name' => 'Tlacote el Bajo'),\n \t array('id' => '28954','state_id' => '2452','name' => 'Adolfo Ruiz Cortines'),\n \t array('id' => '28955','state_id' => '2452','name' => 'Agua Verde'),\n \t array('id' => '28956','state_id' => '2452','name' => 'Ahome'),\n \t array('id' => '28957','state_id' => '2452','name' => 'Angostura'),\n \t array('id' => '28958','state_id' => '2452','name' => 'Badiraguato'),\n \t array('id' => '28959','state_id' => '2452','name' => 'Bagojo'),\n \t array('id' => '28960','state_id' => '2452','name' => 'Benito Juarez'),\n \t array('id' => '28961','state_id' => '2452','name' => 'Campo Gobierno'),\n \t array('id' => '28962','state_id' => '2452','name' => 'Choix'),\n \t array('id' => '28963','state_id' => '2452','name' => 'Compuertas'),\n \t array('id' => '28964','state_id' => '2452','name' => 'Concordia'),\n \t array('id' => '28965','state_id' => '2452','name' => 'Constancia'),\n \t array('id' => '28966','state_id' => '2452','name' => 'Cosala'),\n \t array('id' => '28967','state_id' => '2452','name' => 'Costa Rica'),\n \t array('id' => '28968','state_id' => '2452','name' => 'Culiacan'),\n \t array('id' => '28969','state_id' => '2452','name' => 'Culiacancito'),\n \t array('id' => '28970','state_id' => '2452','name' => 'El Burrion'),\n \t array('id' => '28971','state_id' => '2452','name' => 'El Carrizo'),\n \t array('id' => '28972','state_id' => '2452','name' => 'El Diez'),\n \t array('id' => '28973','state_id' => '2452','name' => 'El Estero'),\n \t array('id' => '28974','state_id' => '2452','name' => 'El Fuerte'),\n \t array('id' => '28975','state_id' => '2452','name' => 'El Rosario'),\n \t array('id' => '28976','state_id' => '2452','name' => 'El Tamarindo'),\n \t array('id' => '28977','state_id' => '2452','name' => 'Eldorado'),\n \t array('id' => '28978','state_id' => '2452','name' => 'Escuinapa'),\n \t array('id' => '28979','state_id' => '2452','name' => 'Estacion Naranjo'),\n \t array('id' => '28980','state_id' => '2452','name' => 'Estancia Bamoa'),\n \t array('id' => '28981','state_id' => '2452','name' => 'Gabriel Leyva Solano'),\n \t array('id' => '28982','state_id' => '2452','name' => 'Guamuchil'),\n \t array('id' => '28983','state_id' => '2452','name' => 'Guasave'),\n \t array('id' => '28984','state_id' => '2452','name' => 'Higuera'),\n \t array('id' => '28985','state_id' => '2452','name' => 'Isla del Bosque'),\n \t array('id' => '28986','state_id' => '2452','name' => 'Jahuara Segundo'),\n \t array('id' => '28987','state_id' => '2452','name' => 'Juan Jose Rios'),\n \t array('id' => '28988','state_id' => '2452','name' => 'La Cruz'),\n \t array('id' => '28989','state_id' => '2452','name' => 'La Palma'),\n \t array('id' => '28990','state_id' => '2452','name' => 'La Reforma'),\n \t array('id' => '28991','state_id' => '2452','name' => 'La Trinidad'),\n \t array('id' => '28992','state_id' => '2452','name' => 'Los Mochis'),\n \t array('id' => '28993','state_id' => '2452','name' => 'Mazatlan'),\n \t array('id' => '28994','state_id' => '2452','name' => 'Mochicahui'),\n \t array('id' => '28995','state_id' => '2452','name' => 'Mocorito'),\n \t array('id' => '28996','state_id' => '2452','name' => 'Navolato'),\n \t array('id' => '28997','state_id' => '2452','name' => 'Pericos'),\n \t array('id' => '28998','state_id' => '2452','name' => 'Pueblos Unidos'),\n \t array('id' => '28999','state_id' => '2452','name' => 'Quila'),\n \t array('id' => '29000','state_id' => '2452','name' => 'San Blas'),\n \t array('id' => '29001','state_id' => '2452','name' => 'San Ignacio'),\n \t array('id' => '29002','state_id' => '2452','name' => 'Sinaloa'),\n \t array('id' => '29003','state_id' => '2452','name' => 'Teacapan'),\n \t array('id' => '29004','state_id' => '2452','name' => 'Topolobampo'),\n \t array('id' => '29005','state_id' => '2452','name' => 'Villa Union'),\n \t array('id' => '29006','state_id' => '2452','name' => 'Zapotitlan'),\n \t array('id' => '29007','state_id' => '2453','name' => 'Agua Prieta'),\n \t array('id' => '29008','state_id' => '2453','name' => 'Alamos'),\n \t array('id' => '29009','state_id' => '2453','name' => 'Altar'),\n \t array('id' => '29010','state_id' => '2453','name' => 'Bacobampo'),\n \t array('id' => '29011','state_id' => '2453','name' => 'Bacum'),\n \t array('id' => '29012','state_id' => '2453','name' => 'Bahia de Kino'),\n \t array('id' => '29013','state_id' => '2453','name' => 'Benjamin Hill'),\n \t array('id' => '29014','state_id' => '2453','name' => 'Caborca'),\n \t array('id' => '29015','state_id' => '2453','name' => 'Campo Sesenta'),\n \t array('id' => '29016','state_id' => '2453','name' => 'Cananea'),\n \t array('id' => '29017','state_id' => '2453','name' => 'Carbo'),\n \t array('id' => '29018','state_id' => '2453','name' => 'Cocorit'),\n \t array('id' => '29019','state_id' => '2453','name' => 'Cumpas'),\n \t array('id' => '29020','state_id' => '2453','name' => 'Empalme'),\n \t array('id' => '29021','state_id' => '2453','name' => 'Esperanza'),\n \t array('id' => '29022','state_id' => '2453','name' => 'Esqueda'),\n \t array('id' => '29023','state_id' => '2453','name' => 'Etchojoa'),\n \t array('id' => '29024','state_id' => '2453','name' => 'Etchoropo'),\n \t array('id' => '29025','state_id' => '2453','name' => 'Guaymas'),\n \t array('id' => '29026','state_id' => '2453','name' => 'Hermosillo'),\n \t array('id' => '29027','state_id' => '2453','name' => 'Huatabampo'),\n \t array('id' => '29028','state_id' => '2453','name' => 'Imuris'),\n \t array('id' => '29029','state_id' => '2453','name' => 'Juarez'),\n \t array('id' => '29030','state_id' => '2453','name' => 'Kino'),\n \t array('id' => '29031','state_id' => '2453','name' => 'La Doce'),\n \t array('id' => '29032','state_id' => '2453','name' => 'La Union'),\n \t array('id' => '29033','state_id' => '2453','name' => 'Moctezuma'),\n \t array('id' => '29034','state_id' => '2453','name' => 'Naco'),\n \t array('id' => '29035','state_id' => '2453','name' => 'Nacozari'),\n \t array('id' => '29036','state_id' => '2453','name' => 'Navajoa'),\n \t array('id' => '29037','state_id' => '2453','name' => 'Nogales'),\n \t array('id' => '29038','state_id' => '2453','name' => 'Obregon'),\n \t array('id' => '29039','state_id' => '2453','name' => 'Pitiquito'),\n \t array('id' => '29040','state_id' => '2453','name' => 'Potam'),\n \t array('id' => '29041','state_id' => '2453','name' => 'Providencia'),\n \t array('id' => '29042','state_id' => '2453','name' => 'Puerto Penasco'),\n \t array('id' => '29043','state_id' => '2453','name' => 'Rio Muerto'),\n \t array('id' => '29044','state_id' => '2453','name' => 'Sahuaripa'),\n \t array('id' => '29045','state_id' => '2453','name' => 'San Jose de Bacum'),\n \t array('id' => '29046','state_id' => '2453','name' => 'San Luis Rio Colorado'),\n \t array('id' => '29047','state_id' => '2453','name' => 'Sanchez'),\n \t array('id' => '29048','state_id' => '2453','name' => 'Santa Ana'),\n \t array('id' => '29049','state_id' => '2453','name' => 'Sonoita'),\n \t array('id' => '29050','state_id' => '2453','name' => 'Tobarito'),\n \t array('id' => '29051','state_id' => '2453','name' => 'Ures'),\n \t array('id' => '29052','state_id' => '2453','name' => 'Vicam'),\n \t array('id' => '29053','state_id' => '2453','name' => 'Yaqui'),\n \t array('id' => '29054','state_id' => '2453','name' => 'Yavaros'),\n \t array('id' => '29055','state_id' => '2454','name' => 'Aquiles Serdan'),\n \t array('id' => '29056','state_id' => '2454','name' => 'Ayapa'),\n \t array('id' => '29057','state_id' => '2454','name' => 'Balancan'),\n \t array('id' => '29058','state_id' => '2454','name' => 'Barra de Santa Ana'),\n \t array('id' => '29059','state_id' => '2454','name' => 'Belen'),\n \t array('id' => '29060','state_id' => '2454','name' => 'Bosque de Saloya'),\n \t array('id' => '29061','state_id' => '2454','name' => 'Buenavista'),\n \t array('id' => '29062','state_id' => '2454','name' => 'Campo Magellanes'),\n \t array('id' => '29063','state_id' => '2454','name' => 'Cardenas'),\n \t array('id' => '29064','state_id' => '2454','name' => 'Chichicapa'),\n \t array('id' => '29065','state_id' => '2454','name' => 'Chontalpa'),\n \t array('id' => '29066','state_id' => '2454','name' => 'Comalcalco'),\n \t array('id' => '29067','state_id' => '2454','name' => 'Cunduacan'),\n \t array('id' => '29068','state_id' => '2454','name' => 'El Triunfo'),\n \t array('id' => '29069','state_id' => '2454','name' => 'Emiliano Zapata'),\n \t array('id' => '29070','state_id' => '2454','name' => 'Fraccionamiento la Selva'),\n \t array('id' => '29071','state_id' => '2454','name' => 'Frontera'),\n \t array('id' => '29072','state_id' => '2454','name' => 'Huimanguillo'),\n \t array('id' => '29073','state_id' => '2454','name' => 'Jalapa'),\n \t array('id' => '29074','state_id' => '2454','name' => 'Jalpa'),\n \t array('id' => '29075','state_id' => '2454','name' => 'Jonuta'),\n \t array('id' => '29076','state_id' => '2454','name' => 'La Curva'),\n \t array('id' => '29077','state_id' => '2454','name' => 'La Venta'),\n \t array('id' => '29078','state_id' => '2454','name' => 'Luis Gil Perez'),\n \t array('id' => '29079','state_id' => '2454','name' => 'Macultepec'),\n \t array('id' => '29080','state_id' => '2454','name' => 'Macuspana'),\n \t array('id' => '29081','state_id' => '2454','name' => 'Magana'),\n \t array('id' => '29082','state_id' => '2454','name' => 'Miguel Hidalgo'),\n \t array('id' => '29083','state_id' => '2454','name' => 'Nacajuca'),\n \t array('id' => '29084','state_id' => '2454','name' => 'Ocuiltzapotlan'),\n \t array('id' => '29085','state_id' => '2454','name' => 'Once de Febrero'),\n \t array('id' => '29086','state_id' => '2454','name' => 'Paraiso'),\n \t array('id' => '29087','state_id' => '2454','name' => 'Parrilla'),\n \t array('id' => '29088','state_id' => '2454','name' => 'Pemex'),\n \t array('id' => '29089','state_id' => '2454','name' => 'Playas del Rosario'),\n \t array('id' => '29090','state_id' => '2454','name' => 'Rio Viejo'),\n \t array('id' => '29091','state_id' => '2454','name' => 'San Carlos'),\n \t array('id' => '29092','state_id' => '2454','name' => 'Santa Rosalia'),\n \t array('id' => '29093','state_id' => '2454','name' => 'Simon Sarlat'),\n \t array('id' => '29094','state_id' => '2454','name' => 'Tacotalpa'),\n \t array('id' => '29095','state_id' => '2454','name' => 'Tamulte'),\n \t array('id' => '29096','state_id' => '2454','name' => 'Teapa'),\n \t array('id' => '29097','state_id' => '2454','name' => 'Tecolutilla'),\n \t array('id' => '29098','state_id' => '2454','name' => 'Tenosique'),\n \t array('id' => '29099','state_id' => '2454','name' => 'Vicente Guerrero'),\n \t array('id' => '29100','state_id' => '2454','name' => 'Villa Aldama'),\n \t array('id' => '29101','state_id' => '2454','name' => 'Villahermosa'),\n \t array('id' => '29102','state_id' => '2455','name' => 'Abasolo'),\n \t array('id' => '29103','state_id' => '2455','name' => 'Aldama'),\n \t array('id' => '29104','state_id' => '2455','name' => 'Altamira'),\n \t array('id' => '29105','state_id' => '2455','name' => 'Antiguo Morelos'),\n \t array('id' => '29106','state_id' => '2455','name' => 'Camargo'),\n \t array('id' => '29107','state_id' => '2455','name' => 'Cuauhtemoc'),\n \t array('id' => '29108','state_id' => '2455','name' => 'El Mante'),\n \t array('id' => '29109','state_id' => '2455','name' => 'Estacion Manuel'),\n \t array('id' => '29110','state_id' => '2455','name' => 'Gonzalez'),\n \t array('id' => '29111','state_id' => '2455','name' => 'Graciano Sanchez'),\n \t array('id' => '29112','state_id' => '2455','name' => 'Guerrero'),\n \t array('id' => '29113','state_id' => '2455','name' => 'Gustavo Diaz Ordaz'),\n \t array('id' => '29114','state_id' => '2455','name' => 'Hidalgo'),\n \t array('id' => '29115','state_id' => '2455','name' => 'Jaumave'),\n \t array('id' => '29116','state_id' => '2455','name' => 'Llerca'),\n \t array('id' => '29117','state_id' => '2455','name' => 'Los Guerra'),\n \t array('id' => '29118','state_id' => '2455','name' => 'Madero'),\n \t array('id' => '29119','state_id' => '2455','name' => 'Matamoros'),\n \t array('id' => '29120','state_id' => '2455','name' => 'Mier'),\n \t array('id' => '29121','state_id' => '2455','name' => 'Miguel Aleman'),\n \t array('id' => '29122','state_id' => '2455','name' => 'Miramar'),\n \t array('id' => '29123','state_id' => '2455','name' => 'Nuevo Laredo'),\n \t array('id' => '29124','state_id' => '2455','name' => 'Nuevo Progreso'),\n \t array('id' => '29125','state_id' => '2455','name' => 'Ocampo'),\n \t array('id' => '29126','state_id' => '2455','name' => 'Padilla'),\n \t array('id' => '29127','state_id' => '2455','name' => 'Reynosa'),\n \t array('id' => '29128','state_id' => '2455','name' => 'Rio Bravo'),\n \t array('id' => '29129','state_id' => '2455','name' => 'San Fernando'),\n \t array('id' => '29130','state_id' => '2455','name' => 'Santa Engracia'),\n \t array('id' => '29131','state_id' => '2455','name' => 'Santander Jimenez'),\n \t array('id' => '29132','state_id' => '2455','name' => 'Soto la Marina'),\n \t array('id' => '29133','state_id' => '2455','name' => 'Tampico'),\n \t array('id' => '29134','state_id' => '2455','name' => 'Tula'),\n \t array('id' => '29135','state_id' => '2455','name' => 'Valle Hermoso'),\n \t array('id' => '29136','state_id' => '2455','name' => 'Victoria'),\n \t array('id' => '29137','state_id' => '2455','name' => 'Xicotencatl'),\n \t array('id' => '29138','state_id' => '2456','name' => 'Ahuashuatepec'),\n \t array('id' => '29139','state_id' => '2456','name' => 'Altzayanca'),\n \t array('id' => '29140','state_id' => '2456','name' => 'Amaxac'),\n \t array('id' => '29141','state_id' => '2456','name' => 'Apetatitlan'),\n \t array('id' => '29142','state_id' => '2456','name' => 'Apizaco'),\n \t array('id' => '29143','state_id' => '2456','name' => 'Apizaquito'),\n \t array('id' => '29144','state_id' => '2456','name' => 'Atexcatzingo'),\n \t array('id' => '29145','state_id' => '2456','name' => 'Axocomanitla'),\n \t array('id' => '29146','state_id' => '2456','name' => 'Ayometla'),\n \t array('id' => '29147','state_id' => '2456','name' => 'Benito Juarez'),\n \t array('id' => '29148','state_id' => '2456','name' => 'Buen Suceso'),\n \t array('id' => '29149','state_id' => '2456','name' => 'Calpulalpan'),\n \t array('id' => '29150','state_id' => '2456','name' => 'Chiautempan'),\n \t array('id' => '29151','state_id' => '2456','name' => 'Contla'),\n \t array('id' => '29152','state_id' => '2456','name' => 'Cuapiaxtla'),\n \t array('id' => '29153','state_id' => '2456','name' => 'Huactzinco'),\n \t array('id' => '29154','state_id' => '2456','name' => 'Huamantla'),\n \t array('id' => '29155','state_id' => '2456','name' => 'Hueyotlipan'),\n \t array('id' => '29156','state_id' => '2456','name' => 'Huiloac'),\n \t array('id' => '29157','state_id' => '2456','name' => 'Ignacio Zaragoza'),\n \t array('id' => '29158','state_id' => '2456','name' => 'Ixtacuixtla'),\n \t array('id' => '29159','state_id' => '2456','name' => 'Ixtenco'),\n \t array('id' => '29160','state_id' => '2456','name' => 'Mazatecochco'),\n \t array('id' => '29161','state_id' => '2456','name' => 'Nanacamilpa'),\n \t array('id' => '29162','state_id' => '2456','name' => 'Nativitas'),\n \t array('id' => '29163','state_id' => '2456','name' => 'Nopalucan'),\n \t array('id' => '29164','state_id' => '2456','name' => 'Panotla'),\n \t array('id' => '29165','state_id' => '2456','name' => 'Papalotla'),\n \t array('id' => '29166','state_id' => '2456','name' => 'Quilehtla'),\n \t array('id' => '29167','state_id' => '2456','name' => 'Sanctorum'),\n \t array('id' => '29168','state_id' => '2456','name' => 'Teacalco'),\n \t array('id' => '29169','state_id' => '2456','name' => 'Tenancingo'),\n \t array('id' => '29170','state_id' => '2456','name' => 'Teolocholco'),\n \t array('id' => '29171','state_id' => '2456','name' => 'Tepetitla'),\n \t array('id' => '29172','state_id' => '2456','name' => 'Tepeyanco'),\n \t array('id' => '29173','state_id' => '2456','name' => 'Tequixquitla'),\n \t array('id' => '29174','state_id' => '2456','name' => 'Terrenate'),\n \t array('id' => '29175','state_id' => '2456','name' => 'Tetla'),\n \t array('id' => '29176','state_id' => '2456','name' => 'Tetlanohcan'),\n \t array('id' => '29177','state_id' => '2456','name' => 'Tetlatlahuca'),\n \t array('id' => '29178','state_id' => '2456','name' => 'Texcalac'),\n \t array('id' => '29179','state_id' => '2456','name' => 'Texoloc'),\n \t array('id' => '29180','state_id' => '2456','name' => 'Tlaltelulco'),\n \t array('id' => '29181','state_id' => '2456','name' => 'Tlaxcala'),\n \t array('id' => '29182','state_id' => '2456','name' => 'Tlaxco'),\n \t array('id' => '29183','state_id' => '2456','name' => 'Tocatlan'),\n \t array('id' => '29184','state_id' => '2456','name' => 'Totolac'),\n \t array('id' => '29185','state_id' => '2456','name' => 'Vicente Guerrero'),\n \t array('id' => '29186','state_id' => '2456','name' => 'Villa Alta'),\n \t array('id' => '29187','state_id' => '2456','name' => 'Xaloztoc'),\n \t array('id' => '29188','state_id' => '2456','name' => 'Xaltocan'),\n \t array('id' => '29189','state_id' => '2456','name' => 'Xicohtzinco'),\n \t array('id' => '29190','state_id' => '2456','name' => 'Xicotencatl'),\n \t array('id' => '29191','state_id' => '2456','name' => 'Xiloxoxtla'),\n \t array('id' => '29192','state_id' => '2456','name' => 'Yauhquemecan'),\n \t array('id' => '29193','state_id' => '2456','name' => 'Zacatelco'),\n \t array('id' => '29194','state_id' => '2456','name' => 'Zacualpan'),\n \t array('id' => '29195','state_id' => '2456','name' => 'Zitlaltepec'),\n \t array('id' => '29196','state_id' => '2457','name' => 'Acayucan'),\n \t array('id' => '29197','state_id' => '2457','name' => 'Actopan'),\n \t array('id' => '29198','state_id' => '2457','name' => 'Acultzingo'),\n \t array('id' => '29199','state_id' => '2457','name' => 'Agua Dulce'),\n \t array('id' => '29200','state_id' => '2457','name' => 'Alamo'),\n \t array('id' => '29201','state_id' => '2457','name' => 'Allende'),\n \t array('id' => '29202','state_id' => '2457','name' => 'Altamirano'),\n \t array('id' => '29203','state_id' => '2457','name' => 'Alto Lucero'),\n \t array('id' => '29204','state_id' => '2457','name' => 'Altotonga'),\n \t array('id' => '29205','state_id' => '2457','name' => 'Alvarado'),\n \t array('id' => '29206','state_id' => '2457','name' => 'Amatlan'),\n \t array('id' => '29207','state_id' => '2457','name' => 'Anahuac'),\n \t array('id' => '29208','state_id' => '2457','name' => 'Anton Lizardo'),\n \t array('id' => '29209','state_id' => '2457','name' => 'Atzacan'),\n \t array('id' => '29210','state_id' => '2457','name' => 'Azueta'),\n \t array('id' => '29211','state_id' => '2457','name' => 'Banderilla'),\n \t array('id' => '29212','state_id' => '2457','name' => 'Benito Juarez'),\n \t array('id' => '29213','state_id' => '2457','name' => 'Boca del Monte'),\n \t array('id' => '29214','state_id' => '2457','name' => 'Boca del Rio'),\n \t array('id' => '29215','state_id' => '2457','name' => 'Cabada'),\n \t array('id' => '29216','state_id' => '2457','name' => 'Cabezas'),\n \t array('id' => '29217','state_id' => '2457','name' => 'Carrillo'),\n \t array('id' => '29218','state_id' => '2457','name' => 'Castillo de Teayo'),\n \t array('id' => '29219','state_id' => '2457','name' => 'Catemaco'),\n \t array('id' => '29220','state_id' => '2457','name' => 'Cazones'),\n \t array('id' => '29221','state_id' => '2457','name' => 'Cerro Azul'),\n \t array('id' => '29222','state_id' => '2457','name' => 'Chacaltianguis'),\n \t array('id' => '29223','state_id' => '2457','name' => 'Chicontepec'),\n \t array('id' => '29224','state_id' => '2457','name' => 'Chinameca'),\n \t array('id' => '29225','state_id' => '2457','name' => 'Chinampa'),\n \t array('id' => '29226','state_id' => '2457','name' => 'Chocaman'),\n \t array('id' => '29227','state_id' => '2457','name' => 'Citlaltepetl'),\n \t array('id' => '29228','state_id' => '2457','name' => 'Clara'),\n \t array('id' => '29229','state_id' => '2457','name' => 'Coacoatzintla'),\n \t array('id' => '29230','state_id' => '2457','name' => 'Coacotla'),\n \t array('id' => '29231','state_id' => '2457','name' => 'Coatepec'),\n \t array('id' => '29232','state_id' => '2457','name' => 'Coatzacoalcos'),\n \t array('id' => '29233','state_id' => '2457','name' => 'Coatzintla'),\n \t array('id' => '29234','state_id' => '2457','name' => 'Comoapan'),\n \t array('id' => '29235','state_id' => '2457','name' => 'Cordoba'),\n \t array('id' => '29236','state_id' => '2457','name' => 'Corral Nuevo'),\n \t array('id' => '29237','state_id' => '2457','name' => 'Cosamaloapan'),\n \t array('id' => '29238','state_id' => '2457','name' => 'Cosautlan'),\n \t array('id' => '29239','state_id' => '2457','name' => 'Coscomatepec'),\n \t array('id' => '29240','state_id' => '2457','name' => 'Cosoleacaque'),\n \t array('id' => '29241','state_id' => '2457','name' => 'Covarrubias'),\n \t array('id' => '29242','state_id' => '2457','name' => 'Coxquihui'),\n \t array('id' => '29243','state_id' => '2457','name' => 'Coyutla'),\n \t array('id' => '29244','state_id' => '2457','name' => 'Cuauhtemoc'),\n \t array('id' => '29245','state_id' => '2457','name' => 'Cuautlapan'),\n \t array('id' => '29246','state_id' => '2457','name' => 'Cuichapa'),\n \t array('id' => '29247','state_id' => '2457','name' => 'Cuitlahuac'),\n \t array('id' => '29248','state_id' => '2457','name' => 'El Castillo'),\n \t array('id' => '29249','state_id' => '2457','name' => 'El Higo'),\n \t array('id' => '29250','state_id' => '2457','name' => 'El Naranjito'),\n \t array('id' => '29251','state_id' => '2457','name' => 'El Pueblito'),\n \t array('id' => '29252','state_id' => '2457','name' => 'El Tejar'),\n \t array('id' => '29253','state_id' => '2457','name' => 'Emilio Carranza'),\n \t array('id' => '29254','state_id' => '2457','name' => 'Estacion Juanita'),\n \t array('id' => '29255','state_id' => '2457','name' => 'Estacion del Idolo'),\n \t array('id' => '29256','state_id' => '2457','name' => 'Filomeno Mata'),\n \t array('id' => '29257','state_id' => '2457','name' => 'Fortin'),\n \t array('id' => '29258','state_id' => '2457','name' => 'Gabino Barreda'),\n \t array('id' => '29259','state_id' => '2457','name' => 'Guadalupe Victoria'),\n \t array('id' => '29260','state_id' => '2457','name' => 'Gutierrez Zamora'),\n \t array('id' => '29261','state_id' => '2457','name' => 'Hidalgo'),\n \t array('id' => '29262','state_id' => '2457','name' => 'Hidalgotitlan'),\n \t array('id' => '29263','state_id' => '2457','name' => 'Huatusco'),\n \t array('id' => '29264','state_id' => '2457','name' => 'Huayacoctla'),\n \t array('id' => '29265','state_id' => '2457','name' => 'Hueyapan'),\n \t array('id' => '29266','state_id' => '2457','name' => 'Huiloapan'),\n \t array('id' => '29267','state_id' => '2457','name' => 'Ignacio de la Llave'),\n \t array('id' => '29268','state_id' => '2457','name' => 'Isla'),\n \t array('id' => '29269','state_id' => '2457','name' => 'Ixcatepec'),\n \t array('id' => '29270','state_id' => '2457','name' => 'Ixhuatlan del Cafe'),\n \t array('id' => '29271','state_id' => '2457','name' => 'Ixhuatlan del Sureste'),\n \t array('id' => '29272','state_id' => '2457','name' => 'Ixhuatlancillo'),\n \t array('id' => '29273','state_id' => '2457','name' => 'Ixtaczoquitlan'),\n \t array('id' => '29274','state_id' => '2457','name' => 'Jalacingo'),\n \t array('id' => '29275','state_id' => '2457','name' => 'Jalapilla'),\n \t array('id' => '29276','state_id' => '2457','name' => 'Jaltipan'),\n \t array('id' => '29277','state_id' => '2457','name' => 'Jamapa'),\n \t array('id' => '29278','state_id' => '2457','name' => 'Jesus Carranza'),\n \t array('id' => '29279','state_id' => '2457','name' => 'Jilotepec'),\n \t array('id' => '29280','state_id' => '2457','name' => 'La Antigua'),\n \t array('id' => '29281','state_id' => '2457','name' => 'La Estanzuela'),\n \t array('id' => '29282','state_id' => '2457','name' => 'La Pena'),\n \t array('id' => '29283','state_id' => '2457','name' => 'La Perla'),\n \t array('id' => '29284','state_id' => '2457','name' => 'La Poza'),\n \t array('id' => '29285','state_id' => '2457','name' => 'Las Amapolas'),\n \t array('id' => '29286','state_id' => '2457','name' => 'Las Choapas'),\n \t array('id' => '29287','state_id' => '2457','name' => 'Las Vigas'),\n \t array('id' => '29288','state_id' => '2457','name' => 'Lerdo'),\n \t array('id' => '29289','state_id' => '2457','name' => 'Lomas de Barillas'),\n \t array('id' => '29290','state_id' => '2457','name' => 'Los Altos'),\n \t array('id' => '29291','state_id' => '2457','name' => 'Los Mangos'),\n \t array('id' => '29292','state_id' => '2457','name' => 'Maltrata'),\n \t array('id' => '29293','state_id' => '2457','name' => 'Mariano Escobedo'),\n \t array('id' => '29294','state_id' => '2457','name' => 'Martinez'),\n \t array('id' => '29295','state_id' => '2457','name' => 'Mecatlan'),\n \t array('id' => '29296','state_id' => '2457','name' => 'Mecayapan'),\n \t array('id' => '29297','state_id' => '2457','name' => 'Mendoza'),\n \t array('id' => '29298','state_id' => '2457','name' => 'Minatitlan'),\n \t array('id' => '29299','state_id' => '2457','name' => 'Misantla'),\n \t array('id' => '29300','state_id' => '2457','name' => 'Monte Blanco'),\n \t array('id' => '29301','state_id' => '2457','name' => 'Moralillo'),\n \t array('id' => '29302','state_id' => '2457','name' => 'Motzorongo'),\n \t array('id' => '29303','state_id' => '2457','name' => 'Mundo Nuevo'),\n \t array('id' => '29304','state_id' => '2457','name' => 'Nanchital'),\n \t array('id' => '29305','state_id' => '2457','name' => 'Naolinco'),\n \t array('id' => '29306','state_id' => '2457','name' => 'Naranjos'),\n \t array('id' => '29307','state_id' => '2457','name' => 'Nautla'),\n \t array('id' => '29308','state_id' => '2457','name' => 'Nogales'),\n \t array('id' => '29309','state_id' => '2457','name' => 'Oluta'),\n \t array('id' => '29310','state_id' => '2457','name' => 'Omealca'),\n \t array('id' => '29311','state_id' => '2457','name' => 'Orizaba'),\n \t array('id' => '29312','state_id' => '2457','name' => 'Otatitlan'),\n \t array('id' => '29313','state_id' => '2457','name' => 'Oteapan'),\n \t array('id' => '29314','state_id' => '2457','name' => 'Ozuluama'),\n \t array('id' => '29315','state_id' => '2457','name' => 'Pajapan'),\n \t array('id' => '29316','state_id' => '2457','name' => 'Palmira'),\n \t array('id' => '29317','state_id' => '2457','name' => 'Panuco'),\n \t array('id' => '29318','state_id' => '2457','name' => 'Papantla'),\n \t array('id' => '29319','state_id' => '2457','name' => 'Paraje Nuevo'),\n \t array('id' => '29320','state_id' => '2457','name' => 'Paso de Ovejas'),\n \t array('id' => '29321','state_id' => '2457','name' => 'Paso del Macho'),\n \t array('id' => '29322','state_id' => '2457','name' => 'Paso del Toro'),\n \t array('id' => '29323','state_id' => '2457','name' => 'Penuela'),\n \t array('id' => '29324','state_id' => '2457','name' => 'Perote'),\n \t array('id' => '29325','state_id' => '2457','name' => 'Piedras Negras'),\n \t array('id' => '29326','state_id' => '2457','name' => 'Plan de Ayala'),\n \t array('id' => '29327','state_id' => '2457','name' => 'Platon Sanchez'),\n \t array('id' => '29328','state_id' => '2457','name' => 'Playa Vicente'),\n \t array('id' => '29329','state_id' => '2457','name' => 'Potrero Nuevo'),\n \t array('id' => '29330','state_id' => '2457','name' => 'Potrero del Llano'),\n \t array('id' => '29331','state_id' => '2457','name' => 'Poza Rica'),\n \t array('id' => '29332','state_id' => '2457','name' => 'Puntilla Aldama'),\n \t array('id' => '29333','state_id' => '2457','name' => 'Rafael Delgado'),\n \t array('id' => '29334','state_id' => '2457','name' => 'Rafael Lucio'),\n \t array('id' => '29335','state_id' => '2457','name' => 'Rinconada'),\n \t array('id' => '29336','state_id' => '2457','name' => 'Saltabarranca'),\n \t array('id' => '29337','state_id' => '2457','name' => 'San Juan Evangelista'),\n \t array('id' => '29338','state_id' => '2457','name' => 'San Marcos'),\n \t array('id' => '29339','state_id' => '2457','name' => 'San Rafael'),\n \t array('id' => '29340','state_id' => '2457','name' => 'San Roman'),\n \t array('id' => '29341','state_id' => '2457','name' => 'Santiago Tuxtla'),\n \t array('id' => '29342','state_id' => '2457','name' => 'Sayula'),\n \t array('id' => '29343','state_id' => '2457','name' => 'Soconusco'),\n \t array('id' => '29344','state_id' => '2457','name' => 'Soledad'),\n \t array('id' => '29345','state_id' => '2457','name' => 'Soteapan'),\n \t array('id' => '29346','state_id' => '2457','name' => 'Tamalin'),\n \t array('id' => '29347','state_id' => '2457','name' => 'Tamiahua'),\n \t array('id' => '29348','state_id' => '2457','name' => 'Tantoyuca'),\n \t array('id' => '29349','state_id' => '2457','name' => 'Tatahuicapan'),\n \t array('id' => '29350','state_id' => '2457','name' => 'Tecolutla'),\n \t array('id' => '29351','state_id' => '2457','name' => 'Tempoal'),\n \t array('id' => '29352','state_id' => '2457','name' => 'Tenango de Rio Blanco'),\n \t array('id' => '29353','state_id' => '2457','name' => 'Teocelo'),\n \t array('id' => '29354','state_id' => '2457','name' => 'Tepetzintla'),\n \t array('id' => '29355','state_id' => '2457','name' => 'Tequila'),\n \t array('id' => '29356','state_id' => '2457','name' => 'Tetelzingo'),\n \t array('id' => '29357','state_id' => '2457','name' => 'Texistepec'),\n \t array('id' => '29358','state_id' => '2457','name' => 'Tezonapa'),\n \t array('id' => '29359','state_id' => '2457','name' => 'Tierra Blanca'),\n \t array('id' => '29360','state_id' => '2457','name' => 'Tihuatlan'),\n \t array('id' => '29361','state_id' => '2457','name' => 'Tlacojalpan'),\n \t array('id' => '29362','state_id' => '2457','name' => 'Tlacotalpan'),\n \t array('id' => '29363','state_id' => '2457','name' => 'Tlaltetela'),\n \t array('id' => '29364','state_id' => '2457','name' => 'Tlapacoyan'),\n \t array('id' => '29365','state_id' => '2457','name' => 'Tocuila'),\n \t array('id' => '29366','state_id' => '2457','name' => 'Tomatlan'),\n \t array('id' => '29367','state_id' => '2457','name' => 'Totolapa'),\n \t array('id' => '29368','state_id' => '2457','name' => 'Totula'),\n \t array('id' => '29369','state_id' => '2457','name' => 'Tres Valles'),\n \t array('id' => '29370','state_id' => '2457','name' => 'Tuxpam'),\n \t array('id' => '29371','state_id' => '2457','name' => 'Tuxtla'),\n \t array('id' => '29372','state_id' => '2457','name' => 'Tuzamapan'),\n \t array('id' => '29373','state_id' => '2457','name' => 'Union y Progreso'),\n \t array('id' => '29374','state_id' => '2457','name' => 'Ursulo Galvan'),\n \t array('id' => '29375','state_id' => '2457','name' => 'Valente Diaz'),\n \t array('id' => '29376','state_id' => '2457','name' => 'Vega de Alatorre'),\n \t array('id' => '29377','state_id' => '2457','name' => 'Veracruz'),\n \t array('id' => '29378','state_id' => '2457','name' => 'Xalapa'),\n \t array('id' => '29379','state_id' => '2457','name' => 'Xico'),\n \t array('id' => '29380','state_id' => '2457','name' => 'Xocotla'),\n \t array('id' => '29381','state_id' => '2457','name' => 'Yanga'),\n \t array('id' => '29382','state_id' => '2457','name' => 'Yecuatla'),\n \t array('id' => '29383','state_id' => '2457','name' => 'Zaragoza'),\n \t array('id' => '29384','state_id' => '2457','name' => 'Zempoala'),\n \t array('id' => '29385','state_id' => '2457','name' => 'Zongolica'),\n \t array('id' => '29386','state_id' => '2457','name' => 'Zozocolco'),\n \t array('id' => '29387','state_id' => '2458','name' => 'Acanceh'),\n \t array('id' => '29388','state_id' => '2458','name' => 'Akil'),\n \t array('id' => '29389','state_id' => '2458','name' => 'Baca'),\n \t array('id' => '29390','state_id' => '2458','name' => 'Buctzotz'),\n \t array('id' => '29391','state_id' => '2458','name' => 'Cacalchen'),\n \t array('id' => '29392','state_id' => '2458','name' => 'Cansahcab'),\n \t array('id' => '29393','state_id' => '2458','name' => 'Caucel'),\n \t array('id' => '29394','state_id' => '2458','name' => 'Celestun'),\n \t array('id' => '29395','state_id' => '2458','name' => 'Cenotillo'),\n \t array('id' => '29396','state_id' => '2458','name' => 'Chemax'),\n \t array('id' => '29397','state_id' => '2458','name' => 'Chichimila'),\n \t array('id' => '29398','state_id' => '2458','name' => 'Chicxulub'),\n \t array('id' => '29399','state_id' => '2458','name' => 'Chochola'),\n \t array('id' => '29400','state_id' => '2458','name' => 'Cholul'),\n \t array('id' => '29401','state_id' => '2458','name' => 'Chumayel'),\n \t array('id' => '29402','state_id' => '2458','name' => 'Conkal'),\n \t array('id' => '29403','state_id' => '2458','name' => 'Cuzama'),\n \t array('id' => '29404','state_id' => '2458','name' => 'Dzan'),\n \t array('id' => '29405','state_id' => '2458','name' => 'Dzemul'),\n \t array('id' => '29406','state_id' => '2458','name' => 'Dzidzantun'),\n \t array('id' => '29407','state_id' => '2458','name' => 'Dzilam Gonzalez'),\n \t array('id' => '29408','state_id' => '2458','name' => 'Dzitas'),\n \t array('id' => '29409','state_id' => '2458','name' => 'Espita'),\n \t array('id' => '29410','state_id' => '2458','name' => 'Halacho'),\n \t array('id' => '29411','state_id' => '2458','name' => 'Hocaba'),\n \t array('id' => '29412','state_id' => '2458','name' => 'Hoctun'),\n \t array('id' => '29413','state_id' => '2458','name' => 'Homun'),\n \t array('id' => '29414','state_id' => '2458','name' => 'Huhi'),\n \t array('id' => '29415','state_id' => '2458','name' => 'Hunucma'),\n \t array('id' => '29416','state_id' => '2458','name' => 'Itzincab'),\n \t array('id' => '29417','state_id' => '2458','name' => 'Ixil'),\n \t array('id' => '29418','state_id' => '2458','name' => 'Izamal'),\n \t array('id' => '29419','state_id' => '2458','name' => 'Kanasin'),\n \t array('id' => '29420','state_id' => '2458','name' => 'Kantunil'),\n \t array('id' => '29421','state_id' => '2458','name' => 'Kinchil'),\n \t array('id' => '29422','state_id' => '2458','name' => 'Mama'),\n \t array('id' => '29423','state_id' => '2458','name' => 'Mani'),\n \t array('id' => '29424','state_id' => '2458','name' => 'Maxcanu'),\n \t array('id' => '29425','state_id' => '2458','name' => 'Merida'),\n \t array('id' => '29426','state_id' => '2458','name' => 'Motul'),\n \t array('id' => '29427','state_id' => '2458','name' => 'Muna'),\n \t array('id' => '29428','state_id' => '2458','name' => 'Opichen'),\n \t array('id' => '29429','state_id' => '2458','name' => 'Oxkutzcab'),\n \t array('id' => '29430','state_id' => '2458','name' => 'Panaba'),\n \t array('id' => '29431','state_id' => '2458','name' => 'Peto'),\n \t array('id' => '29432','state_id' => '2458','name' => 'Piste'),\n \t array('id' => '29433','state_id' => '2458','name' => 'Progreso'),\n \t array('id' => '29434','state_id' => '2458','name' => 'Sacalum'),\n \t array('id' => '29435','state_id' => '2458','name' => 'Santa Elena'),\n \t array('id' => '29436','state_id' => '2458','name' => 'Seye'),\n \t array('id' => '29437','state_id' => '2458','name' => 'Sotuta'),\n \t array('id' => '29438','state_id' => '2458','name' => 'Sucila'),\n \t array('id' => '29439','state_id' => '2458','name' => 'Tahmek'),\n \t array('id' => '29440','state_id' => '2458','name' => 'Teabo'),\n \t array('id' => '29441','state_id' => '2458','name' => 'Tecoh'),\n \t array('id' => '29442','state_id' => '2458','name' => 'Tekanto'),\n \t array('id' => '29443','state_id' => '2458','name' => 'Tekax'),\n \t array('id' => '29444','state_id' => '2458','name' => 'Tekit'),\n \t array('id' => '29445','state_id' => '2458','name' => 'Telchac'),\n \t array('id' => '29446','state_id' => '2458','name' => 'Temax'),\n \t array('id' => '29447','state_id' => '2458','name' => 'Temozon'),\n \t array('id' => '29448','state_id' => '2458','name' => 'Tetiz'),\n \t array('id' => '29449','state_id' => '2458','name' => 'Ticul'),\n \t array('id' => '29450','state_id' => '2458','name' => 'Timucuy'),\n \t array('id' => '29451','state_id' => '2458','name' => 'Tixkokob'),\n \t array('id' => '29452','state_id' => '2458','name' => 'Tixpehual'),\n \t array('id' => '29453','state_id' => '2458','name' => 'Tizimin'),\n \t array('id' => '29454','state_id' => '2458','name' => 'Tunkas'),\n \t array('id' => '29455','state_id' => '2458','name' => 'Tzucacab'),\n \t array('id' => '29456','state_id' => '2458','name' => 'Uman'),\n \t array('id' => '29457','state_id' => '2458','name' => 'Valladolid'),\n \t array('id' => '29458','state_id' => '2458','name' => 'X-Can'),\n \t array('id' => '29459','state_id' => '2458','name' => 'Yucatan'),\n \t array('id' => '29460','state_id' => '2459','name' => 'Apozol'),\n \t array('id' => '29461','state_id' => '2459','name' => 'Banon'),\n \t array('id' => '29462','state_id' => '2459','name' => 'Canitas'),\n \t array('id' => '29463','state_id' => '2459','name' => 'Chalchihuites'),\n \t array('id' => '29464','state_id' => '2459','name' => 'Concepcion del Oro'),\n \t array('id' => '29465','state_id' => '2459','name' => 'Cos'),\n \t array('id' => '29466','state_id' => '2459','name' => 'Estrada'),\n \t array('id' => '29467','state_id' => '2459','name' => 'Fresnillo'),\n \t array('id' => '29468','state_id' => '2459','name' => 'Garcia'),\n \t array('id' => '29469','state_id' => '2459','name' => 'Gonzalez Ortega'),\n \t array('id' => '29470','state_id' => '2459','name' => 'Guadalupe'),\n \t array('id' => '29471','state_id' => '2459','name' => 'Hidalgo'),\n \t array('id' => '29472','state_id' => '2459','name' => 'Jalpa'),\n \t array('id' => '29473','state_id' => '2459','name' => 'Jerez'),\n \t array('id' => '29474','state_id' => '2459','name' => 'Juan Aldama'),\n \t array('id' => '29475','state_id' => '2459','name' => 'Juchipila'),\n \t array('id' => '29476','state_id' => '2459','name' => 'Loreto'),\n \t array('id' => '29477','state_id' => '2459','name' => 'Lourdes'),\n \t array('id' => '29478','state_id' => '2459','name' => 'Luis Moya'),\n \t array('id' => '29479','state_id' => '2459','name' => 'Miguel Auza'),\n \t array('id' => '29480','state_id' => '2459','name' => 'Monte Escobedo'),\n \t array('id' => '29481','state_id' => '2459','name' => 'Morelos'),\n \t array('id' => '29482','state_id' => '2459','name' => 'Natera'),\n \t array('id' => '29483','state_id' => '2459','name' => 'Nieves'),\n \t array('id' => '29484','state_id' => '2459','name' => 'Nochistlan'),\n \t array('id' => '29485','state_id' => '2459','name' => 'Ojo Caliente'),\n \t array('id' => '29486','state_id' => '2459','name' => 'Piedra Gorda'),\n \t array('id' => '29487','state_id' => '2459','name' => 'Pinos'),\n \t array('id' => '29488','state_id' => '2459','name' => 'Plateros'),\n \t array('id' => '29489','state_id' => '2459','name' => 'Pozo de Gamboa'),\n \t array('id' => '29490','state_id' => '2459','name' => 'Rio Grande'),\n \t array('id' => '29491','state_id' => '2459','name' => 'Sain Alto'),\n \t array('id' => '29492','state_id' => '2459','name' => 'Sombrerete'),\n \t array('id' => '29493','state_id' => '2459','name' => 'Tabasco'),\n \t array('id' => '29494','state_id' => '2459','name' => 'Tacoaleche'),\n \t array('id' => '29495','state_id' => '2459','name' => 'Tepechitlan'),\n \t array('id' => '29496','state_id' => '2459','name' => 'Teul'),\n \t array('id' => '29497','state_id' => '2459','name' => 'Tlaltenango'),\n \t array('id' => '29498','state_id' => '2459','name' => 'Toribio'),\n \t array('id' => '29499','state_id' => '2459','name' => 'Trancoso'),\n \t array('id' => '29500','state_id' => '2459','name' => 'Valparaiso'),\n \t array('id' => '29501','state_id' => '2459','name' => 'Victor Rosales'),\n \t array('id' => '29502','state_id' => '2459','name' => 'Villa Gonzalez Ortega'),\n \t array('id' => '29503','state_id' => '2459','name' => 'Villanueva'),\n \t array('id' => '29504','state_id' => '2459','name' => 'Zacatecas'),\n \t array('id' => '29505','state_id' => '2460','name' => 'Tol'),\n \t array('id' => '29506','state_id' => '2460','name' => 'Weno'),\n \t array('id' => '29507','state_id' => '2461','name' => 'Lelu'),\n \t array('id' => '29508','state_id' => '2462','name' => 'Kolonia'),\n \t array('id' => '29509','state_id' => '2462','name' => 'Palikir'),\n \t array('id' => '29510','state_id' => '2463','name' => 'Colonia'),\n \t array('id' => '29511','state_id' => '2464','name' => 'Balti'),\n \t array('id' => '29512','state_id' => '2464','name' => 'Falesti'),\n \t array('id' => '29513','state_id' => '2464','name' => 'Glodeni'),\n \t array('id' => '29514','state_id' => '2464','name' => 'Rascani'),\n \t array('id' => '29515','state_id' => '2465','name' => 'Cahul'),\n \t array('id' => '29516','state_id' => '2466','name' => 'Straseni'),\n \t array('id' => '29517','state_id' => '2467','name' => 'Straseni'),\n \t array('id' => '29518','state_id' => '2468','name' => 'Briceni'),\n \t array('id' => '29519','state_id' => '2468','name' => 'Donduseni'),\n \t array('id' => '29520','state_id' => '2468','name' => 'Edinet'),\n \t array('id' => '29521','state_id' => '2468','name' => 'Ocnita'),\n \t array('id' => '29522','state_id' => '2469','name' => 'Ciadar Lunga'),\n \t array('id' => '29523','state_id' => '2469','name' => 'Comrat'),\n \t array('id' => '29524','state_id' => '2469','name' => 'Vulcanesti'),\n \t array('id' => '29525','state_id' => '2470','name' => 'Basarabeasca'),\n \t array('id' => '29526','state_id' => '2470','name' => 'Cimislia'),\n \t array('id' => '29527','state_id' => '2470','name' => 'Hancesti'),\n \t array('id' => '29528','state_id' => '2470','name' => 'Leova'),\n \t array('id' => '29529','state_id' => '2471','name' => 'Orhei'),\n \t array('id' => '29530','state_id' => '2471','name' => 'Rezina'),\n \t array('id' => '29531','state_id' => '2471','name' => 'Telenesti'),\n \t array('id' => '29532','state_id' => '2472','name' => 'Drochia'),\n \t array('id' => '29533','state_id' => '2472','name' => 'Floresti'),\n \t array('id' => '29534','state_id' => '2472','name' => 'Soroca'),\n \t array('id' => '29535','state_id' => '2473','name' => 'Taraclia'),\n \t array('id' => '29536','state_id' => '2474','name' => 'Causani'),\n \t array('id' => '29537','state_id' => '2475','name' => 'Camenca'),\n \t array('id' => '29538','state_id' => '2475','name' => 'Dnestrovsc'),\n \t array('id' => '29539','state_id' => '2475','name' => 'Dubasari'),\n \t array('id' => '29540','state_id' => '2475','name' => 'Griguriopol'),\n \t array('id' => '29541','state_id' => '2475','name' => 'Rabnita'),\n \t array('id' => '29542','state_id' => '2475','name' => 'Slobozia'),\n \t array('id' => '29543','state_id' => '2475','name' => 'Tighina'),\n \t array('id' => '29544','state_id' => '2475','name' => 'Tiraspol\\''),\n \t array('id' => '29545','state_id' => '2476','name' => 'Calarasi'),\n \t array('id' => '29546','state_id' => '2476','name' => 'Nisporeni'),\n \t array('id' => '29547','state_id' => '2476','name' => 'Ungheni'),\n \t array('id' => '29548','state_id' => '2477','name' => 'Fontvieille'),\n \t array('id' => '29549','state_id' => '2479','name' => 'Monaco-Ville'),\n \t array('id' => '29550','state_id' => '2481','name' => 'Cecerleg'),\n \t array('id' => '29551','state_id' => '2482','name' => 'Olgij'),\n \t array('id' => '29552','state_id' => '2483','name' => 'Bajanhongor'),\n \t array('id' => '29553','state_id' => '2484','name' => 'Bulgan'),\n \t array('id' => '29554','state_id' => '2485','name' => 'Darhan'),\n \t array('id' => '29555','state_id' => '2486','name' => 'Chojbalsan'),\n \t array('id' => '29556','state_id' => '2487','name' => 'Sajnshand'),\n \t array('id' => '29557','state_id' => '2488','name' => 'Mandalgovi'),\n \t array('id' => '29558','state_id' => '2489','name' => 'Altaj'),\n \t array('id' => '29559','state_id' => '2490','name' => 'Chojr'),\n \t array('id' => '29560','state_id' => '2491','name' => 'Ondorhaan'),\n \t array('id' => '29561','state_id' => '2492','name' => 'Hovd'),\n \t array('id' => '29562','state_id' => '2493','name' => 'Moron'),\n \t array('id' => '29563','state_id' => '2494','name' => 'Dalanzadgad'),\n \t array('id' => '29564','state_id' => '2495','name' => 'Erdenet'),\n \t array('id' => '29565','state_id' => '2496','name' => 'Arvajheer'),\n \t array('id' => '29566','state_id' => '2497','name' => 'Suhbaatar'),\n \t array('id' => '29567','state_id' => '2497','name' => 'Zuunharaa'),\n \t array('id' => '29568','state_id' => '2498','name' => 'Baruun-Urt'),\n \t array('id' => '29569','state_id' => '2499','name' => 'Nalajh'),\n \t array('id' => '29570','state_id' => '2499','name' => 'Zuunmod'),\n \t array('id' => '29571','state_id' => '2500','name' => 'Ulaanbaatar'),\n \t array('id' => '29572','state_id' => '2501','name' => 'Ulaangom'),\n \t array('id' => '29573','state_id' => '2502','name' => 'Tosoncengel'),\n \t array('id' => '29574','state_id' => '2502','name' => 'Uliastaj'),\n \t array('id' => '29575','state_id' => '2503','name' => 'Montserrat'),\n \t array('id' => '29576','state_id' => '2504','name' => 'Agadir'),\n \t array('id' => '29577','state_id' => '2505','name' => 'Mohammedia'),\n \t array('id' => '29578','state_id' => '2505','name' => 'ad-Dar-al-Bayda'),\n \t array('id' => '29579','state_id' => '2506','name' => 'Bin Sulayman'),\n \t array('id' => '29580','state_id' => '2506','name' => 'Bir Rashid'),\n \t array('id' => '29581','state_id' => '2506','name' => 'Bu-al-Jad'),\n \t array('id' => '29582','state_id' => '2506','name' => 'Buznika'),\n \t array('id' => '29583','state_id' => '2506','name' => 'Khuribghah'),\n \t array('id' => '29584','state_id' => '2506','name' => 'Sattat'),\n \t array('id' => '29585','state_id' => '2506','name' => 'Wad Zam'),\n \t array('id' => '29586','state_id' => '2507','name' => 'Asfi'),\n \t array('id' => '29587','state_id' => '2507','name' => 'Azimur'),\n \t array('id' => '29588','state_id' => '2507','name' => 'Sidi Binnur'),\n \t array('id' => '29589','state_id' => '2507','name' => 'Sidi Isma\\'il'),\n \t array('id' => '29590','state_id' => '2507','name' => 'Yussufiyah'),\n \t array('id' => '29591','state_id' => '2507','name' => 'al-Jadidah'),\n \t array('id' => '29592','state_id' => '2508','name' => 'Fas'),\n \t array('id' => '29593','state_id' => '2508','name' => 'Fes'),\n \t array('id' => '29594','state_id' => '2508','name' => 'Safru'),\n \t array('id' => '29595','state_id' => '2510','name' => 'Ghulimim'),\n \t array('id' => '29596','state_id' => '2510','name' => 'Sidi Ifni'),\n \t array('id' => '29597','state_id' => '2510','name' => 'Tafraut'),\n \t array('id' => '29598','state_id' => '2510','name' => 'Tantan'),\n \t array('id' => '29599','state_id' => '2511','name' => 'Kenitra'),\n \t array('id' => '29600','state_id' => '2513','name' => 'Amalu Ighriban'),\n \t array('id' => '29601','state_id' => '2513','name' => 'Azru'),\n \t array('id' => '29602','state_id' => '2513','name' => 'Jama\\'at-al-Marirt'),\n \t array('id' => '29603','state_id' => '2513','name' => 'Khanifrah'),\n \t array('id' => '29604','state_id' => '2513','name' => 'Meknes'),\n \t array('id' => '29605','state_id' => '2513','name' => 'Midalt'),\n \t array('id' => '29606','state_id' => '2513','name' => 'Miknas'),\n \t array('id' => '29607','state_id' => '2513','name' => 'Mulay Idris'),\n \t array('id' => '29608','state_id' => '2513','name' => 'al-Hajab'),\n \t array('id' => '29609','state_id' => '2513','name' => 'ar-Rasidiyah'),\n \t array('id' => '29610','state_id' => '2514','name' => 'Ahfir'),\n \t array('id' => '29611','state_id' => '2514','name' => 'Bin Ansar'),\n \t array('id' => '29612','state_id' => '2514','name' => 'Birkan'),\n \t array('id' => '29613','state_id' => '2514','name' => 'Fijij'),\n \t array('id' => '29614','state_id' => '2514','name' => 'Jaradah'),\n \t array('id' => '29615','state_id' => '2514','name' => 'Tawrirt'),\n \t array('id' => '29616','state_id' => '2514','name' => 'Ujdah'),\n \t array('id' => '29617','state_id' => '2514','name' => 'Zayu'),\n \t array('id' => '29618','state_id' => '2514','name' => 'al-Arwi'),\n \t array('id' => '29619','state_id' => '2514','name' => 'al-Ayun Sidi Malluk'),\n \t array('id' => '29620','state_id' => '2514','name' => 'an-Nadur'),\n \t array('id' => '29621','state_id' => '2515','name' => 'Oujda'),\n \t array('id' => '29622','state_id' => '2517','name' => 'Khamissat'),\n \t array('id' => '29623','state_id' => '2517','name' => 'Sakhirat'),\n \t array('id' => '29624','state_id' => '2517','name' => 'Tiflat'),\n \t array('id' => '29625','state_id' => '2517','name' => 'ar-Ribat'),\n \t array('id' => '29626','state_id' => '2519','name' => 'Settat'),\n \t array('id' => '29627','state_id' => '2521','name' => 'Bani Mallal'),\n \t array('id' => '29628','state_id' => '2521','name' => 'Beni Mellal'),\n \t array('id' => '29629','state_id' => '2521','name' => 'Qasbat Tadlah'),\n \t array('id' => '29630','state_id' => '2521','name' => 'Suq Sabt Awlat Nama'),\n \t array('id' => '29631','state_id' => '2521','name' => 'al-Faqih Bin Salah'),\n \t array('id' => '29632','state_id' => '2522','name' => 'Asilah'),\n \t array('id' => '29633','state_id' => '2522','name' => 'Finidiq'),\n \t array('id' => '29634','state_id' => '2522','name' => 'Martil'),\n \t array('id' => '29635','state_id' => '2522','name' => 'Midiq'),\n \t array('id' => '29636','state_id' => '2522','name' => 'Shifshawn'),\n \t array('id' => '29637','state_id' => '2522','name' => 'Tangier'),\n \t array('id' => '29638','state_id' => '2522','name' => 'Tanjah'),\n \t array('id' => '29639','state_id' => '2522','name' => 'Tittawin'),\n \t array('id' => '29640','state_id' => '2522','name' => 'Titwan'),\n \t array('id' => '29641','state_id' => '2522','name' => 'al-\\'Ara\\'ish'),\n \t array('id' => '29642','state_id' => '2522','name' => 'al-Qasr-al-Kabir'),\n \t array('id' => '29643','state_id' => '2527','name' => 'Chibuto'),\n \t array('id' => '29644','state_id' => '2527','name' => 'Chidenguele'),\n \t array('id' => '29645','state_id' => '2527','name' => 'Chokwe'),\n \t array('id' => '29646','state_id' => '2527','name' => 'Chongoene'),\n \t array('id' => '29647','state_id' => '2527','name' => 'Guija'),\n \t array('id' => '29648','state_id' => '2527','name' => 'Macia'),\n \t array('id' => '29649','state_id' => '2527','name' => 'Manjacaze'),\n \t array('id' => '29650','state_id' => '2527','name' => 'Xai-Xai'),\n \t array('id' => '29651','state_id' => '2528','name' => 'Homoine'),\n \t array('id' => '29652','state_id' => '2528','name' => 'Inhambane'),\n \t array('id' => '29653','state_id' => '2528','name' => 'Inharrime'),\n \t array('id' => '29654','state_id' => '2528','name' => 'Jangamo'),\n \t array('id' => '29655','state_id' => '2528','name' => 'Maxixe'),\n \t array('id' => '29656','state_id' => '2528','name' => 'Panda'),\n \t array('id' => '29657','state_id' => '2528','name' => 'Quissico'),\n \t array('id' => '29658','state_id' => '2529','name' => 'Chimoio'),\n \t array('id' => '29659','state_id' => '2529','name' => 'Manica'),\n \t array('id' => '29660','state_id' => '2530','name' => 'Maputo'),\n \t array('id' => '29661','state_id' => '2531','name' => 'Maputo'),\n \t array('id' => '29662','state_id' => '2532','name' => 'Angoche'),\n \t array('id' => '29663','state_id' => '2532','name' => 'Lumbo'),\n \t array('id' => '29664','state_id' => '2532','name' => 'Mocambique'),\n \t array('id' => '29665','state_id' => '2532','name' => 'Nacala'),\n \t array('id' => '29666','state_id' => '2532','name' => 'Nampula'),\n \t array('id' => '29667','state_id' => '2533','name' => 'Cuamba'),\n \t array('id' => '29668','state_id' => '2533','name' => 'Lichinga'),\n \t array('id' => '29669','state_id' => '2533','name' => 'Mandimba'),\n \t array('id' => '29670','state_id' => '2533','name' => 'Maniamba'),\n \t array('id' => '29671','state_id' => '2533','name' => 'Marrupa'),\n \t array('id' => '29672','state_id' => '2534','name' => 'Beira'),\n \t array('id' => '29673','state_id' => '2534','name' => 'Dondo'),\n \t array('id' => '29674','state_id' => '2535','name' => 'Tete'),\n \t array('id' => '29675','state_id' => '2535','name' => 'Zumbo'),\n \t array('id' => '29676','state_id' => '2536','name' => 'Garue'),\n \t array('id' => '29677','state_id' => '2536','name' => 'Mocuba'),\n \t array('id' => '29678','state_id' => '2536','name' => 'Quelimane'),\n \t array('id' => '29679','state_id' => '2537','name' => 'Bogale'),\n \t array('id' => '29680','state_id' => '2537','name' => 'Henzada'),\n \t array('id' => '29681','state_id' => '2537','name' => 'Kyaiklat'),\n \t array('id' => '29682','state_id' => '2537','name' => 'Labutta'),\n \t array('id' => '29683','state_id' => '2537','name' => 'Maubin'),\n \t array('id' => '29684','state_id' => '2537','name' => 'Moulmeingyun'),\n \t array('id' => '29685','state_id' => '2537','name' => 'Myanaung'),\n \t array('id' => '29686','state_id' => '2537','name' => 'Pathein'),\n \t array('id' => '29687','state_id' => '2537','name' => 'Pyapon'),\n \t array('id' => '29688','state_id' => '2537','name' => 'Wakema'),\n \t array('id' => '29689','state_id' => '2537','name' => 'Yandoon'),\n \t array('id' => '29690','state_id' => '2537','name' => 'Ye'),\n \t array('id' => '29691','state_id' => '2538','name' => 'Bago'),\n \t array('id' => '29692','state_id' => '2538','name' => 'Letpadan'),\n \t array('id' => '29693','state_id' => '2538','name' => 'Nyaunglebin'),\n \t array('id' => '29694','state_id' => '2538','name' => 'Paungde'),\n \t array('id' => '29695','state_id' => '2538','name' => 'Pyay'),\n \t array('id' => '29696','state_id' => '2538','name' => 'Pyu'),\n \t array('id' => '29697','state_id' => '2538','name' => 'Thanatpin'),\n \t array('id' => '29698','state_id' => '2538','name' => 'Tharrawaddy'),\n \t array('id' => '29699','state_id' => '2538','name' => 'Toungoo'),\n \t array('id' => '29700','state_id' => '2539','name' => 'Falam'),\n \t array('id' => '29701','state_id' => '2540','name' => 'Banmo'),\n \t array('id' => '29702','state_id' => '2540','name' => 'Myitkyina'),\n \t array('id' => '29703','state_id' => '2541','name' => 'Loikaw'),\n \t array('id' => '29704','state_id' => '2542','name' => 'Hpa-an'),\n \t array('id' => '29705','state_id' => '2543','name' => 'Allanmyo'),\n \t array('id' => '29706','state_id' => '2543','name' => 'Chauk'),\n \t array('id' => '29707','state_id' => '2543','name' => 'Magway'),\n \t array('id' => '29708','state_id' => '2543','name' => 'Minbu'),\n \t array('id' => '29709','state_id' => '2543','name' => 'Pakokku'),\n \t array('id' => '29710','state_id' => '2543','name' => 'Taungdwingyi'),\n \t array('id' => '29711','state_id' => '2543','name' => 'Thayetmyo'),\n \t array('id' => '29712','state_id' => '2543','name' => 'Yenangyaung'),\n \t array('id' => '29713','state_id' => '2544','name' => 'Kyaukse'),\n \t array('id' => '29714','state_id' => '2544','name' => 'Mandalay'),\n \t array('id' => '29715','state_id' => '2544','name' => 'Maymyo'),\n \t array('id' => '29716','state_id' => '2544','name' => 'Meiktila'),\n \t array('id' => '29717','state_id' => '2544','name' => 'Mogok'),\n \t array('id' => '29718','state_id' => '2544','name' => 'Myingyan'),\n \t array('id' => '29719','state_id' => '2544','name' => 'Pyinmana'),\n \t array('id' => '29720','state_id' => '2544','name' => 'Yamethin'),\n \t array('id' => '29721','state_id' => '2545','name' => 'Kyaikkami'),\n \t array('id' => '29722','state_id' => '2545','name' => 'Kyaikto'),\n \t array('id' => '29723','state_id' => '2545','name' => 'Martaban'),\n \t array('id' => '29724','state_id' => '2545','name' => 'Mawlamyine'),\n \t array('id' => '29725','state_id' => '2545','name' => 'Mudon'),\n \t array('id' => '29726','state_id' => '2545','name' => 'Thaton'),\n \t array('id' => '29727','state_id' => '2547','name' => 'Akyab'),\n \t array('id' => '29728','state_id' => '2547','name' => 'Arakan'),\n \t array('id' => '29729','state_id' => '2548','name' => 'Kalay'),\n \t array('id' => '29730','state_id' => '2548','name' => 'Katha'),\n \t array('id' => '29731','state_id' => '2548','name' => 'Mawlaik'),\n \t array('id' => '29732','state_id' => '2548','name' => 'Monywa'),\n \t array('id' => '29733','state_id' => '2548','name' => 'Sagaing'),\n \t array('id' => '29734','state_id' => '2548','name' => 'Shwebo'),\n \t array('id' => '29735','state_id' => '2549','name' => 'Keng Tung'),\n \t array('id' => '29736','state_id' => '2549','name' => 'Lashio'),\n \t array('id' => '29737','state_id' => '2549','name' => 'Taunggyi'),\n \t array('id' => '29738','state_id' => '2550','name' => 'Dawei'),\n \t array('id' => '29739','state_id' => '2550','name' => 'Mergui'),\n \t array('id' => '29740','state_id' => '2551','name' => 'Kanbe'),\n \t array('id' => '29741','state_id' => '2551','name' => 'Kayan'),\n \t array('id' => '29742','state_id' => '2551','name' => 'Syriam'),\n \t array('id' => '29743','state_id' => '2551','name' => 'Thongwa'),\n \t array('id' => '29744','state_id' => '2551','name' => 'Twante'),\n \t array('id' => '29745','state_id' => '2551','name' => 'Yangon'),\n \t array('id' => '29746','state_id' => '2552','name' => 'Katima Mulilo'),\n \t array('id' => '29747','state_id' => '2553','name' => 'Henties Bay'),\n \t array('id' => '29748','state_id' => '2553','name' => 'Karibib'),\n \t array('id' => '29749','state_id' => '2553','name' => 'Kuisebmond'),\n \t array('id' => '29750','state_id' => '2553','name' => 'Omaruru'),\n \t array('id' => '29751','state_id' => '2553','name' => 'Otjimbingwe'),\n \t array('id' => '29752','state_id' => '2553','name' => 'Swakopmund'),\n \t array('id' => '29753','state_id' => '2553','name' => 'Usakos'),\n \t array('id' => '29754','state_id' => '2553','name' => 'Walvis Bay'),\n \t array('id' => '29755','state_id' => '2554','name' => 'Aranos'),\n \t array('id' => '29756','state_id' => '2554','name' => 'Maltahohe'),\n \t array('id' => '29757','state_id' => '2554','name' => 'Mariental'),\n \t array('id' => '29758','state_id' => '2554','name' => 'Rehoboth'),\n \t array('id' => '29759','state_id' => '2555','name' => 'Bethanien'),\n \t array('id' => '29760','state_id' => '2555','name' => 'Karasburg'),\n \t array('id' => '29761','state_id' => '2555','name' => 'Keetmanshoop'),\n \t array('id' => '29762','state_id' => '2555','name' => 'Luderitz'),\n \t array('id' => '29763','state_id' => '2555','name' => 'Oranjemund'),\n \t array('id' => '29764','state_id' => '2555','name' => 'Warmbad'),\n \t array('id' => '29765','state_id' => '2556','name' => 'Rundu'),\n \t array('id' => '29766','state_id' => '2557','name' => 'Windhoek'),\n \t array('id' => '29767','state_id' => '2558','name' => 'Arandis'),\n \t array('id' => '29768','state_id' => '2558','name' => 'Khorixas'),\n \t array('id' => '29769','state_id' => '2558','name' => 'Opuwo'),\n \t array('id' => '29770','state_id' => '2558','name' => 'Outjo'),\n \t array('id' => '29771','state_id' => '2559','name' => 'Oshikango'),\n \t array('id' => '29772','state_id' => '2560','name' => 'Gobabis'),\n \t array('id' => '29773','state_id' => '2560','name' => 'Leonardville'),\n \t array('id' => '29774','state_id' => '2561','name' => 'Ongandjera'),\n \t array('id' => '29775','state_id' => '2562','name' => 'Ongwediva'),\n \t array('id' => '29776','state_id' => '2562','name' => 'Oshakati'),\n \t array('id' => '29777','state_id' => '2563','name' => 'Ondangwa'),\n \t array('id' => '29778','state_id' => '2563','name' => 'Otavi'),\n \t array('id' => '29779','state_id' => '2563','name' => 'Tsumeb'),\n \t array('id' => '29780','state_id' => '2564','name' => 'Grootfontein'),\n \t array('id' => '29781','state_id' => '2564','name' => 'Okahandja'),\n \t array('id' => '29782','state_id' => '2564','name' => 'Okakarara'),\n \t array('id' => '29783','state_id' => '2564','name' => 'Otjiwarongo'),\n \t array('id' => '29784','state_id' => '2565','name' => 'Yaren'),\n \t array('id' => '29785','state_id' => '2566','name' => 'Banepa'),\n \t array('id' => '29786','state_id' => '2566','name' => 'Bhaktapur'),\n \t array('id' => '29787','state_id' => '2566','name' => 'Bidur'),\n \t array('id' => '29788','state_id' => '2566','name' => 'Bishalter'),\n \t array('id' => '29789','state_id' => '2566','name' => 'Dhulikhel'),\n \t array('id' => '29790','state_id' => '2566','name' => 'Kathmandu'),\n \t array('id' => '29791','state_id' => '2566','name' => 'Kirtipur'),\n \t array('id' => '29792','state_id' => '2566','name' => 'Lalitpur'),\n \t array('id' => '29793','state_id' => '2566','name' => 'Madhyapur Thimi'),\n \t array('id' => '29794','state_id' => '2566','name' => 'Panauti'),\n \t array('id' => '29795','state_id' => '2566','name' => 'Tribuvannagar'),\n \t array('id' => '29796','state_id' => '2567','name' => 'Birendranagar'),\n \t array('id' => '29797','state_id' => '2567','name' => 'Gulariya'),\n \t array('id' => '29798','state_id' => '2567','name' => 'Narayan'),\n \t array('id' => '29799','state_id' => '2567','name' => 'Nepalganj'),\n \t array('id' => '29800','state_id' => '2567','name' => 'Surkhet'),\n \t array('id' => '29801','state_id' => '2568','name' => 'Baglung'),\n \t array('id' => '29802','state_id' => '2568','name' => 'Weni'),\n \t array('id' => '29803','state_id' => '2569','name' => 'Byas'),\n \t array('id' => '29804','state_id' => '2569','name' => 'Leknath'),\n \t array('id' => '29805','state_id' => '2569','name' => 'Pokhara'),\n \t array('id' => '29806','state_id' => '2569','name' => 'Prithivinarayan'),\n \t array('id' => '29807','state_id' => '2569','name' => 'Putalibazar'),\n \t array('id' => '29808','state_id' => '2569','name' => 'Waling'),\n \t array('id' => '29809','state_id' => '2570','name' => 'Bhimeshwar'),\n \t array('id' => '29810','state_id' => '2570','name' => 'Jaleshwar'),\n \t array('id' => '29811','state_id' => '2570','name' => 'Janakpur'),\n \t array('id' => '29812','state_id' => '2570','name' => 'Kamalamai'),\n \t array('id' => '29813','state_id' => '2570','name' => 'Malangwa'),\n \t array('id' => '29814','state_id' => '2570','name' => 'Sinduli Marhi'),\n \t array('id' => '29815','state_id' => '2571','name' => 'Jumla'),\n \t array('id' => '29816','state_id' => '2572','name' => 'Biratnagar'),\n \t array('id' => '29817','state_id' => '2572','name' => 'Dhankuta'),\n \t array('id' => '29818','state_id' => '2572','name' => 'Dharan'),\n \t array('id' => '29819','state_id' => '2572','name' => 'Inaruwa'),\n \t array('id' => '29820','state_id' => '2572','name' => 'Itahari'),\n \t array('id' => '29821','state_id' => '2572','name' => 'Khandbari'),\n \t array('id' => '29822','state_id' => '2573','name' => 'Butwal'),\n \t array('id' => '29823','state_id' => '2573','name' => 'Kapilwastu'),\n \t array('id' => '29824','state_id' => '2573','name' => 'Ramgram'),\n \t array('id' => '29825','state_id' => '2573','name' => 'Sidharthanagar'),\n \t array('id' => '29826','state_id' => '2573','name' => 'Tansen'),\n \t array('id' => '29827','state_id' => '2573','name' => 'Wahadurganj'),\n \t array('id' => '29828','state_id' => '2574','name' => 'Amargadhi'),\n \t array('id' => '29829','state_id' => '2574','name' => 'Dashrathchand'),\n \t array('id' => '29830','state_id' => '2574','name' => 'Mahendranagar'),\n \t array('id' => '29831','state_id' => '2575','name' => 'Bhadrapur'),\n \t array('id' => '29832','state_id' => '2575','name' => 'Damak'),\n \t array('id' => '29833','state_id' => '2575','name' => 'Ilam'),\n \t array('id' => '29834','state_id' => '2575','name' => 'Mechinagar'),\n \t array('id' => '29835','state_id' => '2576','name' => 'Bharatpur'),\n \t array('id' => '29836','state_id' => '2576','name' => 'Birganj'),\n \t array('id' => '29837','state_id' => '2576','name' => 'Chitwan'),\n \t array('id' => '29838','state_id' => '2576','name' => 'Gaur'),\n \t array('id' => '29839','state_id' => '2576','name' => 'Hetauda'),\n \t array('id' => '29840','state_id' => '2576','name' => 'Kalaiya'),\n \t array('id' => '29841','state_id' => '2576','name' => 'Ratnanagar'),\n \t array('id' => '29842','state_id' => '2577','name' => 'Salyan'),\n \t array('id' => '29843','state_id' => '2577','name' => 'Tulsipur'),\n \t array('id' => '29844','state_id' => '2578','name' => 'Lahan'),\n \t array('id' => '29845','state_id' => '2578','name' => 'Rajbiraj'),\n \t array('id' => '29846','state_id' => '2578','name' => 'Siraha'),\n \t array('id' => '29847','state_id' => '2578','name' => 'Triyuga'),\n \t array('id' => '29848','state_id' => '2579','name' => 'Dhangadi'),\n \t array('id' => '29849','state_id' => '2579','name' => 'Dipayal'),\n \t array('id' => '29850','state_id' => '2579','name' => 'Tikapur'),\n \t array('id' => '29851','state_id' => '2580','name' => 'Kralendijk'),\n \t array('id' => '29852','state_id' => '2581','name' => 'Curacao'),\n \t array('id' => '29853','state_id' => '2581','name' => 'Willemstad'),\n \t array('id' => '29854','state_id' => '2582','name' => 'The Bottom'),\n \t array('id' => '29855','state_id' => '2585','name' => 'SchipolRijk'),\n \t array('id' => '29856','state_id' => '2586','name' => 'Amstelveen'),\n \t array('id' => '29857','state_id' => '2587','name' => 'Aa en Hunze'),\n \t array('id' => '29858','state_id' => '2587','name' => 'Assen'),\n \t array('id' => '29859','state_id' => '2587','name' => 'Borger-Odoorn'),\n \t array('id' => '29860','state_id' => '2587','name' => 'Coevorden'),\n \t array('id' => '29861','state_id' => '2587','name' => 'De Wolden'),\n \t array('id' => '29862','state_id' => '2587','name' => 'Den Oever'),\n \t array('id' => '29863','state_id' => '2587','name' => 'Emmen'),\n \t array('id' => '29864','state_id' => '2587','name' => 'Gasteren'),\n \t array('id' => '29865','state_id' => '2587','name' => 'Hoogeveen'),\n \t array('id' => '29866','state_id' => '2587','name' => 'Menterwolde'),\n \t array('id' => '29867','state_id' => '2587','name' => 'Meppel'),\n \t array('id' => '29868','state_id' => '2587','name' => 'Midden-Drenthe'),\n \t array('id' => '29869','state_id' => '2587','name' => 'Noordenveld'),\n \t array('id' => '29870','state_id' => '2587','name' => 'Stadskanaal'),\n \t array('id' => '29871','state_id' => '2587','name' => 'Tynaarlo'),\n \t array('id' => '29872','state_id' => '2587','name' => 'Veenoord'),\n \t array('id' => '29873','state_id' => '2587','name' => 'Westerveld'),\n \t array('id' => '29874','state_id' => '2587','name' => 'Zuidlaren'),\n \t array('id' => '29875','state_id' => '2588','name' => 'Almere'),\n \t array('id' => '29876','state_id' => '2588','name' => 'Dronten'),\n \t array('id' => '29877','state_id' => '2588','name' => 'Lelystad'),\n \t array('id' => '29878','state_id' => '2588','name' => 'Noordoostpolder'),\n \t array('id' => '29879','state_id' => '2588','name' => 'Urk'),\n \t array('id' => '29880','state_id' => '2588','name' => 'Zeewolde'),\n \t array('id' => '29881','state_id' => '2589','name' => 'Achtkarspelen'),\n \t array('id' => '29882','state_id' => '2589','name' => 'Ameland'),\n \t array('id' => '29883','state_id' => '2589','name' => 'Boarnsterhim'),\n \t array('id' => '29884','state_id' => '2589','name' => 'Bolsward'),\n \t array('id' => '29885','state_id' => '2589','name' => 'Dantumadeel'),\n \t array('id' => '29886','state_id' => '2589','name' => 'Dongeradeel'),\n \t array('id' => '29887','state_id' => '2589','name' => 'Drachten'),\n \t array('id' => '29888','state_id' => '2589','name' => 'Ferwerderadiel'),\n \t array('id' => '29889','state_id' => '2589','name' => 'Franekeradeel'),\n \t array('id' => '29890','state_id' => '2589','name' => 'Gaasterlan-Sleat'),\n \t array('id' => '29891','state_id' => '2589','name' => 'Gorredijk'),\n \t array('id' => '29892','state_id' => '2589','name' => 'Harlingen'),\n \t array('id' => '29893','state_id' => '2589','name' => 'Heerenveen'),\n \t array('id' => '29894','state_id' => '2589','name' => 'Het Bildt'),\n \t array('id' => '29895','state_id' => '2589','name' => 'Kollumerland'),\n \t array('id' => '29896','state_id' => '2589','name' => 'Leeuwarden'),\n \t array('id' => '29897','state_id' => '2589','name' => 'Leeuwarderadeel'),\n \t array('id' => '29898','state_id' => '2589','name' => 'Lemsterland'),\n \t array('id' => '29899','state_id' => '2589','name' => 'Littenseradiel'),\n \t array('id' => '29900','state_id' => '2589','name' => 'Menaldumadeel'),\n \t array('id' => '29901','state_id' => '2589','name' => 'Nijefurd'),\n \t array('id' => '29902','state_id' => '2589','name' => 'Oostrum'),\n \t array('id' => '29903','state_id' => '2589','name' => 'Ooststellingwerf'),\n \t array('id' => '29904','state_id' => '2589','name' => 'Opsterland'),\n \t array('id' => '29905','state_id' => '2589','name' => 'Schiermonnikoog'),\n \t array('id' => '29906','state_id' => '2589','name' => 'Skasterlan'),\n \t array('id' => '29907','state_id' => '2589','name' => 'Smallingerland'),\n \t array('id' => '29908','state_id' => '2589','name' => 'Sneek'),\n \t array('id' => '29909','state_id' => '2589','name' => 'Terschelling'),\n \t array('id' => '29910','state_id' => '2589','name' => 'Tytsjerksteradiel'),\n \t array('id' => '29911','state_id' => '2589','name' => 'Ureterp'),\n \t array('id' => '29912','state_id' => '2589','name' => 'Weststellingwerf'),\n \t array('id' => '29913','state_id' => '2589','name' => 'Wolvega'),\n \t array('id' => '29914','state_id' => '2589','name' => 'Wunseradiel'),\n \t array('id' => '29915','state_id' => '2589','name' => 'Wymbritseradiel'),\n \t array('id' => '29916','state_id' => '2590','name' => 'Aalten'),\n \t array('id' => '29917','state_id' => '2590','name' => 'Angerlo'),\n \t array('id' => '29918','state_id' => '2590','name' => 'Apeldoorn'),\n \t array('id' => '29919','state_id' => '2590','name' => 'Appeldoorn'),\n \t array('id' => '29920','state_id' => '2590','name' => 'Arnhem'),\n \t array('id' => '29921','state_id' => '2590','name' => 'Barneveld'),\n \t array('id' => '29922','state_id' => '2590','name' => 'Bemmel'),\n \t array('id' => '29923','state_id' => '2590','name' => 'Bergh'),\n \t array('id' => '29924','state_id' => '2590','name' => 'Beuningen'),\n \t array('id' => '29925','state_id' => '2590','name' => 'Borculo'),\n \t array('id' => '29926','state_id' => '2590','name' => 'Brummen'),\n \t array('id' => '29927','state_id' => '2590','name' => 'Buren'),\n \t array('id' => '29928','state_id' => '2590','name' => 'Culemborg'),\n \t array('id' => '29929','state_id' => '2590','name' => 'Delden'),\n \t array('id' => '29930','state_id' => '2590','name' => 'Didam'),\n \t array('id' => '29931','state_id' => '2590','name' => 'Dieren'),\n \t array('id' => '29932','state_id' => '2590','name' => 'Dinxperlo'),\n \t array('id' => '29933','state_id' => '2590','name' => 'Dodewaard'),\n \t array('id' => '29934','state_id' => '2590','name' => 'Doesburg'),\n \t array('id' => '29935','state_id' => '2590','name' => 'Doetinchem'),\n \t array('id' => '29936','state_id' => '2590','name' => 'Druten'),\n \t array('id' => '29937','state_id' => '2590','name' => 'Duiven'),\n \t array('id' => '29938','state_id' => '2590','name' => 'Ede'),\n \t array('id' => '29939','state_id' => '2590','name' => 'Eerbeek'),\n \t array('id' => '29940','state_id' => '2590','name' => 'Eibergen'),\n \t array('id' => '29941','state_id' => '2590','name' => 'Elburg'),\n \t array('id' => '29942','state_id' => '2590','name' => 'Epe'),\n \t array('id' => '29943','state_id' => '2590','name' => 'Ermelo'),\n \t array('id' => '29944','state_id' => '2590','name' => 'Geldermalsen'),\n \t array('id' => '29945','state_id' => '2590','name' => 'Gendringen'),\n \t array('id' => '29946','state_id' => '2590','name' => 'Giesbeek'),\n \t array('id' => '29947','state_id' => '2590','name' => 'Gorssel'),\n \t array('id' => '29948','state_id' => '2590','name' => 'Groenlo'),\n \t array('id' => '29949','state_id' => '2590','name' => 'Groesbeek'),\n \t array('id' => '29950','state_id' => '2590','name' => 'Harderwijk'),\n \t array('id' => '29951','state_id' => '2590','name' => 'Hattem'),\n \t array('id' => '29952','state_id' => '2590','name' => 'Heerde'),\n \t array('id' => '29953','state_id' => '2590','name' => 'Hengelo'),\n \t array('id' => '29954','state_id' => '2590','name' => 'Heumen'),\n \t array('id' => '29955','state_id' => '2590','name' => 'Huisen'),\n \t array('id' => '29956','state_id' => '2590','name' => 'Hummelo en Keppel'),\n \t array('id' => '29957','state_id' => '2590','name' => 'Kesteren'),\n \t array('id' => '29958','state_id' => '2590','name' => 'Kootwijkerbroek'),\n \t array('id' => '29959','state_id' => '2590','name' => 'Leerdam'),\n \t array('id' => '29960','state_id' => '2590','name' => 'Leeuwen'),\n \t array('id' => '29961','state_id' => '2590','name' => 'Lichtenvoorde'),\n \t array('id' => '29962','state_id' => '2590','name' => 'Lingewaal'),\n \t array('id' => '29963','state_id' => '2590','name' => 'Lochem'),\n \t array('id' => '29964','state_id' => '2590','name' => 'Loppersum'),\n \t array('id' => '29965','state_id' => '2590','name' => 'Maasdriel'),\n \t array('id' => '29966','state_id' => '2590','name' => 'Malden'),\n \t array('id' => '29967','state_id' => '2590','name' => 'Millingen'),\n \t array('id' => '29968','state_id' => '2590','name' => 'Molenhoek'),\n \t array('id' => '29969','state_id' => '2590','name' => 'Neede'),\n \t array('id' => '29970','state_id' => '2590','name' => 'Neerijnen'),\n \t array('id' => '29971','state_id' => '2590','name' => 'Nijkerk'),\n \t array('id' => '29972','state_id' => '2590','name' => 'Nijmegen'),\n \t array('id' => '29973','state_id' => '2590','name' => 'Nunspeet'),\n \t array('id' => '29974','state_id' => '2590','name' => 'Oldebroek'),\n \t array('id' => '29975','state_id' => '2590','name' => 'Oosterbeek'),\n \t array('id' => '29976','state_id' => '2590','name' => 'Overbetuwe'),\n \t array('id' => '29977','state_id' => '2590','name' => 'Putten'),\n \t array('id' => '29978','state_id' => '2590','name' => 'Renkum'),\n \t array('id' => '29979','state_id' => '2590','name' => 'Rheden'),\n \t array('id' => '29980','state_id' => '2590','name' => 'Rijnwaarden'),\n \t array('id' => '29981','state_id' => '2590','name' => 'Rozendaal'),\n \t array('id' => '29982','state_id' => '2590','name' => 'Ruurlo'),\n \t array('id' => '29983','state_id' => '2590','name' => 'Scherpenzeel'),\n \t array('id' => '29984','state_id' => '2590','name' => 'Steenderen'),\n \t array('id' => '29985','state_id' => '2590','name' => 'Terborg'),\n \t array('id' => '29986','state_id' => '2590','name' => 'Tiel'),\n \t array('id' => '29987','state_id' => '2590','name' => 'Twello'),\n \t array('id' => '29988','state_id' => '2590','name' => 'Ubbergen'),\n \t array('id' => '29989','state_id' => '2590','name' => 'Vaassen'),\n \t array('id' => '29990','state_id' => '2590','name' => 'Varsseveld'),\n \t array('id' => '29991','state_id' => '2590','name' => 'Voorst'),\n \t array('id' => '29992','state_id' => '2590','name' => 'Vorden'),\n \t array('id' => '29993','state_id' => '2590','name' => 'Waardenburg'),\n \t array('id' => '29994','state_id' => '2590','name' => 'Wageningen'),\n \t array('id' => '29995','state_id' => '2590','name' => 'Warmsveld'),\n \t array('id' => '29996','state_id' => '2590','name' => 'Wehl'),\n \t array('id' => '29997','state_id' => '2590','name' => 'Westervoort'),\n \t array('id' => '29998','state_id' => '2590','name' => 'Wijchen'),\n \t array('id' => '29999','state_id' => '2590','name' => 'Winterswijk'),\n \t array('id' => '30000','state_id' => '2590','name' => 'Wisch'),\n \t array('id' => '30001','state_id' => '2590','name' => 'Zaltbommel'),\n \t array('id' => '30002','state_id' => '2590','name' => 'Zelhem'),\n \t array('id' => '30003','state_id' => '2590','name' => 'Zevenaar'),\n \t array('id' => '30004','state_id' => '2590','name' => 'Zutphen'),\n \t array('id' => '30005','state_id' => '2590','name' => 's-Heerenberg'),\n \t array('id' => '30006','state_id' => '2591','name' => 'Appingedam'),\n \t array('id' => '30007','state_id' => '2591','name' => 'Bedum'),\n \t array('id' => '30008','state_id' => '2591','name' => 'Bellingwedde'),\n \t array('id' => '30009','state_id' => '2591','name' => 'De Marne'),\n \t array('id' => '30010','state_id' => '2591','name' => 'Delfzijl'),\n \t array('id' => '30011','state_id' => '2591','name' => 'Eemsmond'),\n \t array('id' => '30012','state_id' => '2591','name' => 'Groningen'),\n \t array('id' => '30013','state_id' => '2591','name' => 'Grootegast'),\n \t array('id' => '30014','state_id' => '2591','name' => 'Haren'),\n \t array('id' => '30015','state_id' => '2591','name' => 'Hoogezand-Sappemeer'),\n \t array('id' => '30016','state_id' => '2591','name' => 'Leek'),\n \t array('id' => '30017','state_id' => '2591','name' => 'Marum'),\n \t array('id' => '30018','state_id' => '2591','name' => 'Midwolda'),\n \t array('id' => '30019','state_id' => '2591','name' => 'Muntendam'),\n \t array('id' => '30020','state_id' => '2591','name' => 'Pekela'),\n \t array('id' => '30021','state_id' => '2591','name' => 'Reiderland'),\n \t array('id' => '30022','state_id' => '2591','name' => 'Scheemda'),\n \t array('id' => '30023','state_id' => '2591','name' => 'Slochteren'),\n \t array('id' => '30024','state_id' => '2591','name' => 'Ten Boer'),\n \t array('id' => '30025','state_id' => '2591','name' => 'Tolbert'),\n \t array('id' => '30026','state_id' => '2591','name' => 'Veendam'),\n \t array('id' => '30027','state_id' => '2591','name' => 'Vlagtwedde'),\n \t array('id' => '30028','state_id' => '2591','name' => 'Winschoten'),\n \t array('id' => '30029','state_id' => '2591','name' => 'Winsum'),\n \t array('id' => '30030','state_id' => '2591','name' => 'Zuidhorn'),\n \t array('id' => '30031','state_id' => '2592','name' => 'Ambt Montfort'),\n \t array('id' => '30032','state_id' => '2592','name' => 'Arcen en Velden'),\n \t array('id' => '30033','state_id' => '2592','name' => 'Beek'),\n \t array('id' => '30034','state_id' => '2592','name' => 'Beesel'),\n \t array('id' => '30035','state_id' => '2592','name' => 'Bergen'),\n \t array('id' => '30036','state_id' => '2592','name' => 'Blerick'),\n \t array('id' => '30037','state_id' => '2592','name' => 'Brunssum'),\n \t array('id' => '30038','state_id' => '2592','name' => 'Echt'),\n \t array('id' => '30039','state_id' => '2592','name' => 'Eijsden'),\n \t array('id' => '30040','state_id' => '2592','name' => 'Gennep'),\n \t array('id' => '30041','state_id' => '2592','name' => 'Gulpen-Wittem'),\n \t array('id' => '30042','state_id' => '2592','name' => 'Haelen'),\n \t array('id' => '30043','state_id' => '2592','name' => 'Heel'),\n \t array('id' => '30044','state_id' => '2592','name' => 'Heerlen'),\n \t array('id' => '30045','state_id' => '2592','name' => 'Helden'),\n \t array('id' => '30046','state_id' => '2592','name' => 'Heythuysen'),\n \t array('id' => '30047','state_id' => '2592','name' => 'Horst'),\n \t array('id' => '30048','state_id' => '2592','name' => 'Hunsel'),\n \t array('id' => '30049','state_id' => '2592','name' => 'Kerkrade'),\n \t array('id' => '30050','state_id' => '2592','name' => 'Kessel'),\n \t array('id' => '30051','state_id' => '2592','name' => 'Landgraaf'),\n \t array('id' => '30052','state_id' => '2592','name' => 'Maasbracht'),\n \t array('id' => '30053','state_id' => '2592','name' => 'Maasbree'),\n \t array('id' => '30054','state_id' => '2592','name' => 'Maastricht'),\n \t array('id' => '30055','state_id' => '2592','name' => 'Margraten'),\n \t array('id' => '30056','state_id' => '2592','name' => 'Meerlo-Wanssum'),\n \t array('id' => '30057','state_id' => '2592','name' => 'Meerssen'),\n \t array('id' => '30058','state_id' => '2592','name' => 'Meijel'),\n \t array('id' => '30059','state_id' => '2592','name' => 'Mook en Middelaar'),\n \t array('id' => '30060','state_id' => '2592','name' => 'Nederweert'),\n \t array('id' => '30061','state_id' => '2592','name' => 'Nuth'),\n \t array('id' => '30062','state_id' => '2592','name' => 'Onderbanken'),\n \t array('id' => '30063','state_id' => '2592','name' => 'Roerdalen'),\n \t array('id' => '30064','state_id' => '2592','name' => 'Roermond'),\n \t array('id' => '30065','state_id' => '2592','name' => 'Roggel'),\n \t array('id' => '30066','state_id' => '2592','name' => 'Roggel en Neer'),\n \t array('id' => '30067','state_id' => '2592','name' => 'Schinnen'),\n \t array('id' => '30068','state_id' => '2592','name' => 'Sevenum'),\n \t array('id' => '30069','state_id' => '2592','name' => 'Simpelveld'),\n \t array('id' => '30070','state_id' => '2592','name' => 'Sittard'),\n \t array('id' => '30071','state_id' => '2592','name' => 'Sittard-Geleen'),\n \t array('id' => '30072','state_id' => '2592','name' => 'Stein'),\n \t array('id' => '30073','state_id' => '2592','name' => 'Stramproy'),\n \t array('id' => '30074','state_id' => '2592','name' => 'Susteren'),\n \t array('id' => '30075','state_id' => '2592','name' => 'Swalmen'),\n \t array('id' => '30076','state_id' => '2592','name' => 'Tegelen'),\n \t array('id' => '30077','state_id' => '2592','name' => 'Thorn'),\n \t array('id' => '30078','state_id' => '2592','name' => 'Vaals'),\n \t array('id' => '30079','state_id' => '2592','name' => 'Valkenburg'),\n \t array('id' => '30080','state_id' => '2592','name' => 'Venlo'),\n \t array('id' => '30081','state_id' => '2592','name' => 'Venray'),\n \t array('id' => '30082','state_id' => '2592','name' => 'Vilt Limburg'),\n \t array('id' => '30083','state_id' => '2592','name' => 'Voerendaal'),\n \t array('id' => '30084','state_id' => '2592','name' => 'Weert'),\n \t array('id' => '30085','state_id' => '2593','name' => '\\'s-Hertogenbosch'),\n \t array('id' => '30086','state_id' => '2593','name' => 'Aalburg'),\n \t array('id' => '30087','state_id' => '2593','name' => 'Alphen-Chaam'),\n \t array('id' => '30088','state_id' => '2593','name' => 'Asten'),\n \t array('id' => '30089','state_id' => '2593','name' => 'Baarle-Nassau'),\n \t array('id' => '30090','state_id' => '2593','name' => 'Bergeijk'),\n \t array('id' => '30091','state_id' => '2593','name' => 'Bergen op Zoom'),\n \t array('id' => '30092','state_id' => '2593','name' => 'Berghem'),\n \t array('id' => '30093','state_id' => '2593','name' => 'Bernheze'),\n \t array('id' => '30094','state_id' => '2593','name' => 'Bernisse'),\n \t array('id' => '30095','state_id' => '2593','name' => 'Best'),\n \t array('id' => '30096','state_id' => '2593','name' => 'Bladel'),\n \t array('id' => '30097','state_id' => '2593','name' => 'Boekel'),\n \t array('id' => '30098','state_id' => '2593','name' => 'Boxmeer'),\n \t array('id' => '30099','state_id' => '2593','name' => 'Boxtel'),\n \t array('id' => '30100','state_id' => '2593','name' => 'Breda'),\n \t array('id' => '30101','state_id' => '2593','name' => 'Budel'),\n \t array('id' => '30102','state_id' => '2593','name' => 'Cranendonck'),\n \t array('id' => '30103','state_id' => '2593','name' => 'Cuijk'),\n \t array('id' => '30104','state_id' => '2593','name' => 'Den Bosch'),\n \t array('id' => '30105','state_id' => '2593','name' => 'Den Dungen'),\n \t array('id' => '30106','state_id' => '2593','name' => 'Deurne'),\n \t array('id' => '30107','state_id' => '2593','name' => 'Dongen'),\n \t array('id' => '30108','state_id' => '2593','name' => 'Drimmelen'),\n \t array('id' => '30109','state_id' => '2593','name' => 'Drunen'),\n \t array('id' => '30110','state_id' => '2593','name' => 'Duizel'),\n \t array('id' => '30111','state_id' => '2593','name' => 'Eersel'),\n \t array('id' => '30112','state_id' => '2593','name' => 'Eindhoven'),\n \t array('id' => '30113','state_id' => '2593','name' => 'Etten-Leur'),\n \t array('id' => '30114','state_id' => '2593','name' => 'Geertruidenberg'),\n \t array('id' => '30115','state_id' => '2593','name' => 'Geldrop'),\n \t array('id' => '30116','state_id' => '2593','name' => 'Gemert-Bakel'),\n \t array('id' => '30117','state_id' => '2593','name' => 'Gilze en Rijen'),\n \t array('id' => '30118','state_id' => '2593','name' => 'Goirle'),\n \t array('id' => '30119','state_id' => '2593','name' => 'Grave'),\n \t array('id' => '30120','state_id' => '2593','name' => 'Haaren'),\n \t array('id' => '30121','state_id' => '2593','name' => 'Halderberge'),\n \t array('id' => '30122','state_id' => '2593','name' => 'Heeze-Leende'),\n \t array('id' => '30123','state_id' => '2593','name' => 'Heijningen'),\n \t array('id' => '30124','state_id' => '2593','name' => 'Helmond'),\n \t array('id' => '30125','state_id' => '2593','name' => 'Heusden'),\n \t array('id' => '30126','state_id' => '2593','name' => 'Hilvarenbeek'),\n \t array('id' => '30127','state_id' => '2593','name' => 'Hoeven'),\n \t array('id' => '30128','state_id' => '2593','name' => 'Hoogerheide'),\n \t array('id' => '30129','state_id' => '2593','name' => 'Kaatsheuvel'),\n \t array('id' => '30130','state_id' => '2593','name' => 'Korendijk'),\n \t array('id' => '30131','state_id' => '2593','name' => 'Laarbeek'),\n \t array('id' => '30132','state_id' => '2593','name' => 'Landerd'),\n \t array('id' => '30133','state_id' => '2593','name' => 'Lith'),\n \t array('id' => '30134','state_id' => '2593','name' => 'Loon op Zand'),\n \t array('id' => '30135','state_id' => '2593','name' => 'Maarheeze'),\n \t array('id' => '30136','state_id' => '2593','name' => 'Maasdonk'),\n \t array('id' => '30137','state_id' => '2593','name' => 'Mierlo'),\n \t array('id' => '30138','state_id' => '2593','name' => 'Mill en Sint Hubert'),\n \t array('id' => '30139','state_id' => '2593','name' => 'Moerdijk'),\n \t array('id' => '30140','state_id' => '2593','name' => 'Nieuwkuijk'),\n \t array('id' => '30141','state_id' => '2593','name' => 'Nuenen'),\n \t array('id' => '30142','state_id' => '2593','name' => 'Oirschot'),\n \t array('id' => '30143','state_id' => '2593','name' => 'Oisterwijk'),\n \t array('id' => '30144','state_id' => '2593','name' => 'Oosterhout'),\n \t array('id' => '30145','state_id' => '2593','name' => 'Oss'),\n \t array('id' => '30146','state_id' => '2593','name' => 'Raamsdonksveer'),\n \t array('id' => '30147','state_id' => '2593','name' => 'Ravenstein'),\n \t array('id' => '30148','state_id' => '2593','name' => 'Reusel-De Mierden'),\n \t array('id' => '30149','state_id' => '2593','name' => 'Roosendaal'),\n \t array('id' => '30150','state_id' => '2593','name' => 'Rosmalen'),\n \t array('id' => '30151','state_id' => '2593','name' => 'Rucphen'),\n \t array('id' => '30152','state_id' => '2593','name' => 'Schaijk'),\n \t array('id' => '30153','state_id' => '2593','name' => 'Schijndel'),\n \t array('id' => '30154','state_id' => '2593','name' => 'Sint Anthonis'),\n \t array('id' => '30155','state_id' => '2593','name' => 'Sint Willebrord'),\n \t array('id' => '30156','state_id' => '2593','name' => 'Sint-Michielsgestel'),\n \t array('id' => '30157','state_id' => '2593','name' => 'Sint-Oedenrode'),\n \t array('id' => '30158','state_id' => '2593','name' => 'Sleeuwijk'),\n \t array('id' => '30159','state_id' => '2593','name' => 'Someren'),\n \t array('id' => '30160','state_id' => '2593','name' => 'Son en Breugel'),\n \t array('id' => '30161','state_id' => '2593','name' => 'Steenbergen'),\n \t array('id' => '30162','state_id' => '2593','name' => 'Tilburg'),\n \t array('id' => '30163','state_id' => '2593','name' => 'Uden'),\n \t array('id' => '30164','state_id' => '2593','name' => 'Valkenswaard'),\n \t array('id' => '30165','state_id' => '2593','name' => 'Veghel'),\n \t array('id' => '30166','state_id' => '2593','name' => 'Veldhoven'),\n \t array('id' => '30167','state_id' => '2593','name' => 'Vinkel'),\n \t array('id' => '30168','state_id' => '2593','name' => 'Vught'),\n \t array('id' => '30169','state_id' => '2593','name' => 'Waalre'),\n \t array('id' => '30170','state_id' => '2593','name' => 'Waalwijk'),\n \t array('id' => '30171','state_id' => '2593','name' => 'Werkendam'),\n \t array('id' => '30172','state_id' => '2593','name' => 'Woensdrecht'),\n \t array('id' => '30173','state_id' => '2593','name' => 'Woudrichem'),\n \t array('id' => '30174','state_id' => '2593','name' => 'Zundert'),\n \t array('id' => '30175','state_id' => '2594','name' => 'Aalsmeer'),\n \t array('id' => '30176','state_id' => '2594','name' => 'Alkmaar'),\n \t array('id' => '30177','state_id' => '2594','name' => 'Amstelveen'),\n \t array('id' => '30178','state_id' => '2594','name' => 'Amsterdam'),\n \t array('id' => '30179','state_id' => '2594','name' => 'Andijk'),\n \t array('id' => '30180','state_id' => '2594','name' => 'Ankeveen'),\n \t array('id' => '30181','state_id' => '2594','name' => 'Anna Paulowna'),\n \t array('id' => '30182','state_id' => '2594','name' => 'Assendelft'),\n \t array('id' => '30183','state_id' => '2594','name' => 'Badhoevedorp'),\n \t array('id' => '30184','state_id' => '2594','name' => 'Beemster'),\n \t array('id' => '30185','state_id' => '2594','name' => 'Bennebroek'),\n \t array('id' => '30186','state_id' => '2594','name' => 'Bergen'),\n \t array('id' => '30187','state_id' => '2594','name' => 'Beverwijk'),\n \t array('id' => '30188','state_id' => '2594','name' => 'Blaricum'),\n \t array('id' => '30189','state_id' => '2594','name' => 'Bloemendaal'),\n \t array('id' => '30190','state_id' => '2594','name' => 'Bovenkarspel'),\n \t array('id' => '30191','state_id' => '2594','name' => 'Bussum'),\n \t array('id' => '30192','state_id' => '2594','name' => 'Castricum'),\n \t array('id' => '30193','state_id' => '2594','name' => 'Den Helder'),\n \t array('id' => '30194','state_id' => '2594','name' => 'Diemen'),\n \t array('id' => '30195','state_id' => '2594','name' => 'Drechterland'),\n \t array('id' => '30196','state_id' => '2594','name' => 'Edam-Volendam'),\n \t array('id' => '30197','state_id' => '2594','name' => 'Enkhuizen'),\n \t array('id' => '30198','state_id' => '2594','name' => 'Graft-De Rijp'),\n \t array('id' => '30199','state_id' => '2594','name' => 'Haarlem'),\n \t array('id' => '30200','state_id' => '2594','name' => 'Haarlemmerliede'),\n \t array('id' => '30201','state_id' => '2594','name' => 'Haarlemmermeer'),\n \t array('id' => '30202','state_id' => '2594','name' => 'Harenkarspel'),\n \t array('id' => '30203','state_id' => '2594','name' => 'Heemskerk'),\n \t array('id' => '30204','state_id' => '2594','name' => 'Heemstede'),\n \t array('id' => '30205','state_id' => '2594','name' => 'Heerhugowaard'),\n \t array('id' => '30206','state_id' => '2594','name' => 'Heiloo'),\n \t array('id' => '30207','state_id' => '2594','name' => 'Hillegom'),\n \t array('id' => '30208','state_id' => '2594','name' => 'Hilversum'),\n \t array('id' => '30209','state_id' => '2594','name' => 'Hoofddorp'),\n \t array('id' => '30210','state_id' => '2594','name' => 'Hoorn'),\n \t array('id' => '30211','state_id' => '2594','name' => 'Huizen'),\n \t array('id' => '30212','state_id' => '2594','name' => 'Ijmuiden'),\n \t array('id' => '30213','state_id' => '2594','name' => 'Katwijk'),\n \t array('id' => '30214','state_id' => '2594','name' => 'Krommenie'),\n \t array('id' => '30215','state_id' => '2594','name' => 'Landsmeer'),\n \t array('id' => '30216','state_id' => '2594','name' => 'Langedijk'),\n \t array('id' => '30217','state_id' => '2594','name' => 'Laren'),\n \t array('id' => '30218','state_id' => '2594','name' => 'Loosdrecht'),\n \t array('id' => '30219','state_id' => '2594','name' => 'Medemblik'),\n \t array('id' => '30220','state_id' => '2594','name' => 'Middenbeemster'),\n \t array('id' => '30221','state_id' => '2594','name' => 'Muiden'),\n \t array('id' => '30222','state_id' => '2594','name' => 'Naarden'),\n \t array('id' => '30223','state_id' => '2594','name' => 'Niedorp'),\n \t array('id' => '30224','state_id' => '2594','name' => 'Nieuw-Vennep'),\n \t array('id' => '30225','state_id' => '2594','name' => 'Noorder-Koggenland'),\n \t array('id' => '30226','state_id' => '2594','name' => 'Obdam'),\n \t array('id' => '30227','state_id' => '2594','name' => 'Oostzaan'),\n \t array('id' => '30228','state_id' => '2594','name' => 'Opmeer'),\n \t array('id' => '30229','state_id' => '2594','name' => 'Oude Meer'),\n \t array('id' => '30230','state_id' => '2594','name' => 'Ouder-Amstel'),\n \t array('id' => '30231','state_id' => '2594','name' => 'Oudkarspel'),\n \t array('id' => '30232','state_id' => '2594','name' => 'Purmerend'),\n \t array('id' => '30233','state_id' => '2594','name' => 'Rozenburg'),\n \t array('id' => '30234','state_id' => '2594','name' => 'Schagen'),\n \t array('id' => '30235','state_id' => '2594','name' => 'Schermer'),\n \t array('id' => '30236','state_id' => '2594','name' => 'Stede Broec'),\n \t array('id' => '30237','state_id' => '2594','name' => 'Texel'),\n \t array('id' => '30238','state_id' => '2594','name' => 'Tuitjenhorn'),\n \t array('id' => '30239','state_id' => '2594','name' => 'Uitgeest'),\n \t array('id' => '30240','state_id' => '2594','name' => 'Uithoorn'),\n \t array('id' => '30241','state_id' => '2594','name' => 'Velsen'),\n \t array('id' => '30242','state_id' => '2594','name' => 'Venhuizen'),\n \t array('id' => '30243','state_id' => '2594','name' => 'Vijfhuizen'),\n \t array('id' => '30244','state_id' => '2594','name' => 'Waarland'),\n \t array('id' => '30245','state_id' => '2594','name' => 'Waterland'),\n \t array('id' => '30246','state_id' => '2594','name' => 'Weesp'),\n \t array('id' => '30247','state_id' => '2594','name' => 'Wervershoof'),\n \t array('id' => '30248','state_id' => '2594','name' => 'Wester-Koggenland'),\n \t array('id' => '30249','state_id' => '2594','name' => 'Westwoud'),\n \t array('id' => '30250','state_id' => '2594','name' => 'Wieringen'),\n \t array('id' => '30251','state_id' => '2594','name' => 'Wieringermeer'),\n \t array('id' => '30252','state_id' => '2594','name' => 'Wognum'),\n \t array('id' => '30253','state_id' => '2594','name' => 'Wormer'),\n \t array('id' => '30254','state_id' => '2594','name' => 'Wormerland'),\n \t array('id' => '30255','state_id' => '2594','name' => 'Wormerveer'),\n \t array('id' => '30256','state_id' => '2594','name' => 'Zaandam'),\n \t array('id' => '30257','state_id' => '2594','name' => 'Zaanstad'),\n \t array('id' => '30258','state_id' => '2594','name' => 'Zandvoort'),\n \t array('id' => '30259','state_id' => '2594','name' => 'Zeevang'),\n \t array('id' => '30260','state_id' => '2594','name' => 'Zwaag'),\n \t array('id' => '30261','state_id' => '2594','name' => 'Zwanenburg'),\n \t array('id' => '30262','state_id' => '2595','name' => 'Almelo'),\n \t array('id' => '30263','state_id' => '2595','name' => 'Bathmen'),\n \t array('id' => '30264','state_id' => '2595','name' => 'Borne'),\n \t array('id' => '30265','state_id' => '2595','name' => 'Dalfsen'),\n \t array('id' => '30266','state_id' => '2595','name' => 'Dedemsvaart'),\n \t array('id' => '30267','state_id' => '2595','name' => 'Denekamp'),\n \t array('id' => '30268','state_id' => '2595','name' => 'Deventer'),\n \t array('id' => '30269','state_id' => '2595','name' => 'Diepenheim'),\n \t array('id' => '30270','state_id' => '2595','name' => 'Enschede'),\n \t array('id' => '30271','state_id' => '2595','name' => 'Genemuiden'),\n \t array('id' => '30272','state_id' => '2595','name' => 'Haaksbergen'),\n \t array('id' => '30273','state_id' => '2595','name' => 'Hardenberg'),\n \t array('id' => '30274','state_id' => '2595','name' => 'Hasselt'),\n \t array('id' => '30275','state_id' => '2595','name' => 'Hellendoorn'),\n \t array('id' => '30276','state_id' => '2595','name' => 'Hengelo'),\n \t array('id' => '30277','state_id' => '2595','name' => 'Hof van Twente'),\n \t array('id' => '30278','state_id' => '2595','name' => 'IJsselmuiden'),\n \t array('id' => '30279','state_id' => '2595','name' => 'Kampen'),\n \t array('id' => '30280','state_id' => '2595','name' => 'Lemelerveld'),\n \t array('id' => '30281','state_id' => '2595','name' => 'Losser'),\n \t array('id' => '30282','state_id' => '2595','name' => 'Nieuwleusen'),\n \t array('id' => '30283','state_id' => '2595','name' => 'Nijverdal'),\n \t array('id' => '30284','state_id' => '2595','name' => 'Oldenzaal'),\n \t array('id' => '30285','state_id' => '2595','name' => 'Olst'),\n \t array('id' => '30286','state_id' => '2595','name' => 'Ommen'),\n \t array('id' => '30287','state_id' => '2595','name' => 'Ootmarsum'),\n \t array('id' => '30288','state_id' => '2595','name' => 'Raalte'),\n \t array('id' => '30289','state_id' => '2595','name' => 'Rijssen'),\n \t array('id' => '30290','state_id' => '2595','name' => 'Staphorst'),\n \t array('id' => '30291','state_id' => '2595','name' => 'Steenwijk'),\n \t array('id' => '30292','state_id' => '2595','name' => 'Tubbergen'),\n \t array('id' => '30293','state_id' => '2595','name' => 'Vriezenveen'),\n \t array('id' => '30294','state_id' => '2595','name' => 'Vroomshoop'),\n \t array('id' => '30295','state_id' => '2595','name' => 'Weerselo'),\n \t array('id' => '30296','state_id' => '2595','name' => 'Wierden'),\n \t array('id' => '30297','state_id' => '2595','name' => 'Zwartewaterland'),\n \t array('id' => '30298','state_id' => '2595','name' => 'Zwolle'),\n \t array('id' => '30299','state_id' => '2597','name' => 'Abcoude'),\n \t array('id' => '30300','state_id' => '2597','name' => 'Amerongen'),\n \t array('id' => '30301','state_id' => '2597','name' => 'Amersfoort'),\n \t array('id' => '30302','state_id' => '2597','name' => 'Baarn'),\n \t array('id' => '30303','state_id' => '2597','name' => 'Benschop'),\n \t array('id' => '30304','state_id' => '2597','name' => 'Breukelen'),\n \t array('id' => '30305','state_id' => '2597','name' => 'Bunnik'),\n \t array('id' => '30306','state_id' => '2597','name' => 'Bunschoten'),\n \t array('id' => '30307','state_id' => '2597','name' => 'De Bilt'),\n \t array('id' => '30308','state_id' => '2597','name' => 'De Ronde Venen'),\n \t array('id' => '30309','state_id' => '2597','name' => 'Den Dolder'),\n \t array('id' => '30310','state_id' => '2597','name' => 'Doorn'),\n \t array('id' => '30311','state_id' => '2597','name' => 'Driebergen-Rijsenburg'),\n \t array('id' => '30312','state_id' => '2597','name' => 'Eemnes'),\n \t array('id' => '30313','state_id' => '2597','name' => 'Houten'),\n \t array('id' => '30314','state_id' => '2597','name' => 'IJsselstein'),\n \t array('id' => '30315','state_id' => '2597','name' => 'Kockengen'),\n \t array('id' => '30316','state_id' => '2597','name' => 'Leersum'),\n \t array('id' => '30317','state_id' => '2597','name' => 'Leusden'),\n \t array('id' => '30318','state_id' => '2597','name' => 'Loenen'),\n \t array('id' => '30319','state_id' => '2597','name' => 'Lopik'),\n \t array('id' => '30320','state_id' => '2597','name' => 'Maarn'),\n \t array('id' => '30321','state_id' => '2597','name' => 'Maarsen'),\n \t array('id' => '30322','state_id' => '2597','name' => 'Mijdrecht'),\n \t array('id' => '30323','state_id' => '2597','name' => 'Montfoort'),\n \t array('id' => '30324','state_id' => '2597','name' => 'Nieuwegein'),\n \t array('id' => '30325','state_id' => '2597','name' => 'Nigtevecht'),\n \t array('id' => '30326','state_id' => '2597','name' => 'Odijk'),\n \t array('id' => '30327','state_id' => '2597','name' => 'Oudewater'),\n \t array('id' => '30328','state_id' => '2597','name' => 'Renswoude'),\n \t array('id' => '30329','state_id' => '2597','name' => 'Rhenen'),\n \t array('id' => '30330','state_id' => '2597','name' => 'Soest'),\n \t array('id' => '30331','state_id' => '2597','name' => 'Soesterberg'),\n \t array('id' => '30332','state_id' => '2597','name' => 'Utrecht'),\n \t array('id' => '30333','state_id' => '2597','name' => 'Veenendaal'),\n \t array('id' => '30334','state_id' => '2597','name' => 'Vianen'),\n \t array('id' => '30335','state_id' => '2597','name' => 'Wijdemeren'),\n \t array('id' => '30336','state_id' => '2597','name' => 'Wijk'),\n \t array('id' => '30337','state_id' => '2597','name' => 'Wilnis'),\n \t array('id' => '30338','state_id' => '2597','name' => 'Woerden'),\n \t array('id' => '30339','state_id' => '2597','name' => 'Woudenberg'),\n \t array('id' => '30340','state_id' => '2597','name' => 'Zeist'),\n \t array('id' => '30341','state_id' => '2598','name' => 'Axel'),\n \t array('id' => '30342','state_id' => '2598','name' => 'Borsele'),\n \t array('id' => '30343','state_id' => '2598','name' => 'Goes'),\n \t array('id' => '30344','state_id' => '2598','name' => 'Hontenisse'),\n \t array('id' => '30345','state_id' => '2598','name' => 'Hulst'),\n \t array('id' => '30346','state_id' => '2598','name' => 'Kapelle'),\n \t array('id' => '30347','state_id' => '2598','name' => 'Middelburg'),\n \t array('id' => '30348','state_id' => '2598','name' => 'Noord-Beveland'),\n \t array('id' => '30349','state_id' => '2598','name' => 'Oostburg'),\n \t array('id' => '30350','state_id' => '2598','name' => 'Reimerswaal'),\n \t array('id' => '30351','state_id' => '2598','name' => 'Sas van Gent'),\n \t array('id' => '30352','state_id' => '2598','name' => 'Schouwen-Duiveland'),\n \t array('id' => '30353','state_id' => '2598','name' => 'Sluis-Aardenburg'),\n \t array('id' => '30354','state_id' => '2598','name' => 'Terneuzen'),\n \t array('id' => '30355','state_id' => '2598','name' => 'Tholen'),\n \t array('id' => '30356','state_id' => '2598','name' => 'Veere'),\n \t array('id' => '30357','state_id' => '2598','name' => 'Vlissingen'),\n \t array('id' => '30358','state_id' => '2598','name' => 'Zierikzee'),\n \t array('id' => '30359','state_id' => '2598','name' => 'Zijpe'),\n \t array('id' => '30360','state_id' => '2599','name' => '\\'s-Gravendeel'),\n \t array('id' => '30361','state_id' => '2599','name' => '\\'s-Gravenhage'),\n \t array('id' => '30362','state_id' => '2599','name' => '\\'s-Gravenzande'),\n \t array('id' => '30363','state_id' => '2599','name' => 'Alblasserdam'),\n \t array('id' => '30364','state_id' => '2599','name' => 'Albrandswaard'),\n \t array('id' => '30365','state_id' => '2599','name' => 'Alkemade'),\n \t array('id' => '30366','state_id' => '2599','name' => 'Alphen'),\n \t array('id' => '30367','state_id' => '2599','name' => 'Alphen aan den Rijn'),\n \t array('id' => '30368','state_id' => '2599','name' => 'Barendrecht'),\n \t array('id' => '30369','state_id' => '2599','name' => 'Bergambacht'),\n \t array('id' => '30370','state_id' => '2599','name' => 'Bergschenhoek'),\n \t array('id' => '30371','state_id' => '2599','name' => 'Berkel en Rodenrijs'),\n \t array('id' => '30372','state_id' => '2599','name' => 'Binnenmaas'),\n \t array('id' => '30373','state_id' => '2599','name' => 'Bleiswijk'),\n \t array('id' => '30374','state_id' => '2599','name' => 'Bodegraven'),\n \t array('id' => '30375','state_id' => '2599','name' => 'Boskoop'),\n \t array('id' => '30376','state_id' => '2599','name' => 'Brielle'),\n \t array('id' => '30377','state_id' => '2599','name' => 'Capelle'),\n \t array('id' => '30378','state_id' => '2599','name' => 'Cromstrijen'),\n \t array('id' => '30379','state_id' => '2599','name' => 'De Lier'),\n \t array('id' => '30380','state_id' => '2599','name' => 'Delft'),\n \t array('id' => '30381','state_id' => '2599','name' => 'Dirksland'),\n \t array('id' => '30382','state_id' => '2599','name' => 'Dordrecht'),\n \t array('id' => '30383','state_id' => '2599','name' => 'Giessenlanden'),\n \t array('id' => '30384','state_id' => '2599','name' => 'Goedereede'),\n \t array('id' => '30385','state_id' => '2599','name' => 'Gorinchem'),\n \t array('id' => '30386','state_id' => '2599','name' => 'Gouda'),\n \t array('id' => '30387','state_id' => '2599','name' => 'Graafstroom'),\n \t array('id' => '30388','state_id' => '2599','name' => 'Hardinxveld-Giessendam'),\n \t array('id' => '30389','state_id' => '2599','name' => 'Heerjansdam'),\n \t array('id' => '30390','state_id' => '2599','name' => 'Hellevoetsluis'),\n \t array('id' => '30391','state_id' => '2599','name' => 'Hendrik-Ido-Ambacht'),\n \t array('id' => '30392','state_id' => '2599','name' => 'Jacobswoude'),\n \t array('id' => '30393','state_id' => '2599','name' => 'Katwijk'),\n \t array('id' => '30394','state_id' => '2599','name' => 'Kinderdijk'),\n \t array('id' => '30395','state_id' => '2599','name' => 'Krimpen'),\n \t array('id' => '30396','state_id' => '2599','name' => 'Leiden'),\n \t array('id' => '30397','state_id' => '2599','name' => 'Leiderdorp'),\n \t array('id' => '30398','state_id' => '2599','name' => 'Leidschendam-Voorburg'),\n \t array('id' => '30399','state_id' => '2599','name' => 'Liemeer'),\n \t array('id' => '30400','state_id' => '2599','name' => 'Liesveld'),\n \t array('id' => '30401','state_id' => '2599','name' => 'Lisse'),\n \t array('id' => '30402','state_id' => '2599','name' => 'Maasland'),\n \t array('id' => '30403','state_id' => '2599','name' => 'Maassluis'),\n \t array('id' => '30404','state_id' => '2599','name' => 'Middelharnis'),\n \t array('id' => '30405','state_id' => '2599','name' => 'Monster'),\n \t array('id' => '30406','state_id' => '2599','name' => 'Moordrecht'),\n \t array('id' => '30407','state_id' => '2599','name' => 'Naaldwijk'),\n \t array('id' => '30408','state_id' => '2599','name' => 'Nederlek'),\n \t array('id' => '30409','state_id' => '2599','name' => 'Nieuw-Lekkerland'),\n \t array('id' => '30410','state_id' => '2599','name' => 'Nieuwekerk aan den IJssel'),\n \t array('id' => '30411','state_id' => '2599','name' => 'Nieuwkoop'),\n \t array('id' => '30412','state_id' => '2599','name' => 'Noordwijk'),\n \t array('id' => '30413','state_id' => '2599','name' => 'Noordwijkerhout'),\n \t array('id' => '30414','state_id' => '2599','name' => 'Oegestgeest'),\n \t array('id' => '30415','state_id' => '2599','name' => 'Oostflakkee'),\n \t array('id' => '30416','state_id' => '2599','name' => 'Oud-Beijerland'),\n \t array('id' => '30417','state_id' => '2599','name' => 'Ouderkerk'),\n \t array('id' => '30418','state_id' => '2599','name' => 'Papendrecht'),\n \t array('id' => '30419','state_id' => '2599','name' => 'Pijnacker-Nootdorp'),\n \t array('id' => '30420','state_id' => '2599','name' => 'Reeuwijk'),\n \t array('id' => '30421','state_id' => '2599','name' => 'Ridderkerk'),\n \t array('id' => '30422','state_id' => '2599','name' => 'Rijnsburg'),\n \t array('id' => '30423','state_id' => '2599','name' => 'Rijnwoude'),\n \t array('id' => '30424','state_id' => '2599','name' => 'Rijswijk'),\n \t array('id' => '30425','state_id' => '2599','name' => 'Rotterdam'),\n \t array('id' => '30426','state_id' => '2599','name' => 'Sassenheim'),\n \t array('id' => '30427','state_id' => '2599','name' => 'Schiedam'),\n \t array('id' => '30428','state_id' => '2599','name' => 'Schipluiden'),\n \t array('id' => '30429','state_id' => '2599','name' => 'Schoonhoven'),\n \t array('id' => '30430','state_id' => '2599','name' => 'Sliedrecht'),\n \t array('id' => '30431','state_id' => '2599','name' => 'Spijkenisse'),\n \t array('id' => '30432','state_id' => '2599','name' => 'Strijen'),\n \t array('id' => '30433','state_id' => '2599','name' => 'Ter Aar'),\n \t array('id' => '30434','state_id' => '2599','name' => 'The Hague'),\n \t array('id' => '30435','state_id' => '2599','name' => 'Valkenburg'),\n \t array('id' => '30436','state_id' => '2599','name' => 'Vierpolders'),\n \t array('id' => '30437','state_id' => '2599','name' => 'Vlaardingen'),\n \t array('id' => '30438','state_id' => '2599','name' => 'Vlist'),\n \t array('id' => '30439','state_id' => '2599','name' => 'Voorhout'),\n \t array('id' => '30440','state_id' => '2599','name' => 'Voorschoten'),\n \t array('id' => '30441','state_id' => '2599','name' => 'Waddinxveen'),\n \t array('id' => '30442','state_id' => '2599','name' => 'Warmond'),\n \t array('id' => '30443','state_id' => '2599','name' => 'Wassenaar'),\n \t array('id' => '30444','state_id' => '2599','name' => 'Wateringen'),\n \t array('id' => '30445','state_id' => '2599','name' => 'West Maas en Waal'),\n \t array('id' => '30446','state_id' => '2599','name' => 'Westvoorne'),\n \t array('id' => '30447','state_id' => '2599','name' => 'Zederik'),\n \t array('id' => '30448','state_id' => '2599','name' => 'Zevenhuizen-Moerkapelle'),\n \t array('id' => '30449','state_id' => '2599','name' => 'Zoetermeer'),\n \t array('id' => '30450','state_id' => '2599','name' => 'Zoeterwoude'),\n \t array('id' => '30451','state_id' => '2599','name' => 'Zwijndrecht'),\n \t array('id' => '30452','state_id' => '2600','name' => 'Belep'),\n \t array('id' => '30453','state_id' => '2600','name' => 'Fayaoue'),\n \t array('id' => '30454','state_id' => '2600','name' => 'Tadine'),\n \t array('id' => '30455','state_id' => '2600','name' => 'Vao'),\n \t array('id' => '30456','state_id' => '2600','name' => 'We'),\n \t array('id' => '30457','state_id' => '2601','name' => 'Canala'),\n \t array('id' => '30458','state_id' => '2601','name' => 'Hienghene'),\n \t array('id' => '30459','state_id' => '2601','name' => 'Houailu'),\n \t array('id' => '30460','state_id' => '2601','name' => 'Kaala Gomen'),\n \t array('id' => '30461','state_id' => '2601','name' => 'Kone'),\n \t array('id' => '30462','state_id' => '2601','name' => 'Koumac'),\n \t array('id' => '30463','state_id' => '2601','name' => 'Ouegoa'),\n \t array('id' => '30464','state_id' => '2601','name' => 'Poindimie'),\n \t array('id' => '30465','state_id' => '2601','name' => 'Ponerihouen'),\n \t array('id' => '30466','state_id' => '2601','name' => 'Pouebo'),\n \t array('id' => '30467','state_id' => '2601','name' => 'Pouembout'),\n \t array('id' => '30468','state_id' => '2601','name' => 'Poum'),\n \t array('id' => '30469','state_id' => '2601','name' => 'Poya'),\n \t array('id' => '30470','state_id' => '2601','name' => 'Touho'),\n \t array('id' => '30471','state_id' => '2601','name' => 'Voh'),\n \t array('id' => '30472','state_id' => '2602','name' => 'Bouloupari'),\n \t array('id' => '30473','state_id' => '2602','name' => 'Bourail'),\n \t array('id' => '30474','state_id' => '2602','name' => 'Dumbea'),\n \t array('id' => '30475','state_id' => '2602','name' => 'Farino'),\n \t array('id' => '30476','state_id' => '2602','name' => 'La Foa'),\n \t array('id' => '30477','state_id' => '2602','name' => 'Moindou'),\n \t array('id' => '30478','state_id' => '2602','name' => 'Mont-Dore'),\n \t array('id' => '30479','state_id' => '2602','name' => 'Noumea'),\n \t array('id' => '30480','state_id' => '2602','name' => 'Paita'),\n \t array('id' => '30481','state_id' => '2602','name' => 'Sarramea'),\n \t array('id' => '30482','state_id' => '2602','name' => 'Thio'),\n \t array('id' => '30483','state_id' => '2602','name' => 'Yate'),\n \t array('id' => '30484','state_id' => '2604','name' => 'Auckland'),\n \t array('id' => '30485','state_id' => '2604','name' => 'Helensville'),\n \t array('id' => '30486','state_id' => '2604','name' => 'Henderson'),\n \t array('id' => '30487','state_id' => '2604','name' => 'Hillsborough'),\n \t array('id' => '30488','state_id' => '2604','name' => 'Lynfield'),\n \t array('id' => '30489','state_id' => '2604','name' => 'Manukau'),\n \t array('id' => '30490','state_id' => '2604','name' => 'Manurewa'),\n \t array('id' => '30491','state_id' => '2604','name' => 'Mt. Roskill'),\n \t array('id' => '30492','state_id' => '2604','name' => 'North Shore'),\n \t array('id' => '30493','state_id' => '2604','name' => 'Onehunga'),\n \t array('id' => '30494','state_id' => '2604','name' => 'Orewa'),\n \t array('id' => '30495','state_id' => '2604','name' => 'Otahuhu'),\n \t array('id' => '30496','state_id' => '2604','name' => 'Panmure'),\n \t array('id' => '30497','state_id' => '2604','name' => 'Papakura'),\n \t array('id' => '30498','state_id' => '2604','name' => 'Papatoetoe'),\n \t array('id' => '30499','state_id' => '2604','name' => 'Ponsonby'),\n \t array('id' => '30500','state_id' => '2604','name' => 'Royal Oak'),\n \t array('id' => '30501','state_id' => '2604','name' => 'Sandringham'),\n \t array('id' => '30502','state_id' => '2604','name' => 'Snells Beach'),\n \t array('id' => '30503','state_id' => '2604','name' => 'Takanini'),\n \t array('id' => '30504','state_id' => '2604','name' => 'Waiheke'),\n \t array('id' => '30505','state_id' => '2604','name' => 'Waitakere'),\n \t array('id' => '30506','state_id' => '2606','name' => 'Amberley'),\n \t array('id' => '30507','state_id' => '2606','name' => 'Ashburton'),\n \t array('id' => '30508','state_id' => '2606','name' => 'Christchurch'),\n \t array('id' => '30509','state_id' => '2606','name' => 'Fairlie'),\n \t array('id' => '30510','state_id' => '2606','name' => 'Geraldine'),\n \t array('id' => '30511','state_id' => '2606','name' => 'Kaikoura'),\n \t array('id' => '30512','state_id' => '2606','name' => 'Leeston'),\n \t array('id' => '30513','state_id' => '2606','name' => 'Lyttelton'),\n \t array('id' => '30514','state_id' => '2606','name' => 'Oamaru'),\n \t array('id' => '30515','state_id' => '2606','name' => 'Rangiora'),\n \t array('id' => '30516','state_id' => '2606','name' => 'Temuka'),\n \t array('id' => '30517','state_id' => '2606','name' => 'Timaru'),\n \t array('id' => '30518','state_id' => '2606','name' => 'Waimate'),\n \t array('id' => '30519','state_id' => '2608','name' => 'Gisborne'),\n \t array('id' => '30520','state_id' => '2610','name' => 'Dannevirke'),\n \t array('id' => '30521','state_id' => '2610','name' => 'Feilding'),\n \t array('id' => '30522','state_id' => '2610','name' => 'Foxton'),\n \t array('id' => '30523','state_id' => '2610','name' => 'Levin'),\n \t array('id' => '30524','state_id' => '2610','name' => 'Marton'),\n \t array('id' => '30525','state_id' => '2610','name' => 'Palmerston North'),\n \t array('id' => '30526','state_id' => '2610','name' => 'Picton'),\n \t array('id' => '30527','state_id' => '2610','name' => 'Taumarunui'),\n \t array('id' => '30528','state_id' => '2610','name' => 'Wanganui'),\n \t array('id' => '30529','state_id' => '2611','name' => 'Blenheim'),\n \t array('id' => '30530','state_id' => '2611','name' => 'Havelock'),\n \t array('id' => '30531','state_id' => '2612','name' => 'Nelson'),\n \t array('id' => '30532','state_id' => '2613','name' => 'Dargaville'),\n \t array('id' => '30533','state_id' => '2613','name' => 'Kaikohe'),\n \t array('id' => '30534','state_id' => '2613','name' => 'Kaitaia'),\n \t array('id' => '30535','state_id' => '2613','name' => 'Kerikeri'),\n \t array('id' => '30536','state_id' => '2613','name' => 'Maungatapere'),\n \t array('id' => '30537','state_id' => '2613','name' => 'Whangarei'),\n \t array('id' => '30538','state_id' => '2614','name' => 'Alexandra'),\n \t array('id' => '30539','state_id' => '2614','name' => 'Balclutha'),\n \t array('id' => '30540','state_id' => '2614','name' => 'Dunedin'),\n \t array('id' => '30541','state_id' => '2614','name' => 'Queenstown'),\n \t array('id' => '30542','state_id' => '2614','name' => 'Wanaka'),\n \t array('id' => '30543','state_id' => '2615','name' => 'Warkworth'),\n \t array('id' => '30544','state_id' => '2616','name' => 'Gore'),\n \t array('id' => '30545','state_id' => '2616','name' => 'Invercargill'),\n \t array('id' => '30546','state_id' => '2617','name' => 'Eltham'),\n \t array('id' => '30547','state_id' => '2617','name' => 'Hawera'),\n \t array('id' => '30548','state_id' => '2617','name' => 'Inglewood'),\n \t array('id' => '30549','state_id' => '2617','name' => 'New Plymouth'),\n \t array('id' => '30550','state_id' => '2617','name' => 'Oakura'),\n \t array('id' => '30551','state_id' => '2617','name' => 'Stratford'),\n \t array('id' => '30552','state_id' => '2617','name' => 'Waitara'),\n \t array('id' => '30553','state_id' => '2618','name' => 'Motueka'),\n \t array('id' => '30554','state_id' => '2618','name' => 'Richmond'),\n \t array('id' => '30555','state_id' => '2619','name' => 'Cambridge'),\n \t array('id' => '30556','state_id' => '2619','name' => 'Coromandel'),\n \t array('id' => '30557','state_id' => '2619','name' => 'Hamilton'),\n \t array('id' => '30558','state_id' => '2619','name' => 'Hillcrest'),\n \t array('id' => '30559','state_id' => '2619','name' => 'Huntly'),\n \t array('id' => '30560','state_id' => '2619','name' => 'Matamata'),\n \t array('id' => '30561','state_id' => '2619','name' => 'Morrinsville'),\n \t array('id' => '30562','state_id' => '2619','name' => 'Ngaruawahia'),\n \t array('id' => '30563','state_id' => '2619','name' => 'Otorohanga'),\n \t array('id' => '30564','state_id' => '2619','name' => 'Paeroa'),\n \t array('id' => '30565','state_id' => '2619','name' => 'Pukekohe'),\n \t array('id' => '30566','state_id' => '2619','name' => 'Putaruru'),\n \t array('id' => '30567','state_id' => '2619','name' => 'Taupo'),\n \t array('id' => '30568','state_id' => '2619','name' => 'Te Aroha'),\n \t array('id' => '30569','state_id' => '2619','name' => 'Te Awamutu'),\n \t array('id' => '30570','state_id' => '2619','name' => 'Te Kuiti'),\n \t array('id' => '30571','state_id' => '2619','name' => 'Thames'),\n \t array('id' => '30572','state_id' => '2619','name' => 'Tokoroa'),\n \t array('id' => '30573','state_id' => '2619','name' => 'Turangi'),\n \t array('id' => '30574','state_id' => '2619','name' => 'Waiuku'),\n \t array('id' => '30575','state_id' => '2619','name' => 'Whangamata'),\n \t array('id' => '30576','state_id' => '2619','name' => 'Whitianga'),\n \t array('id' => '30577','state_id' => '2620','name' => 'Carterton'),\n \t array('id' => '30578','state_id' => '2620','name' => 'Kapiti'),\n \t array('id' => '30579','state_id' => '2620','name' => 'Lower Hutt'),\n \t array('id' => '30580','state_id' => '2620','name' => 'Martinborough'),\n \t array('id' => '30581','state_id' => '2620','name' => 'Masterton'),\n \t array('id' => '30582','state_id' => '2620','name' => 'Otaki'),\n \t array('id' => '30583','state_id' => '2620','name' => 'Paraparaumu'),\n \t array('id' => '30584','state_id' => '2620','name' => 'Porirua'),\n \t array('id' => '30585','state_id' => '2620','name' => 'Upper Hutt'),\n \t array('id' => '30586','state_id' => '2620','name' => 'Wairarapa'),\n \t array('id' => '30587','state_id' => '2620','name' => 'Wellington'),\n \t array('id' => '30588','state_id' => '2624','name' => 'Boaco'),\n \t array('id' => '30589','state_id' => '2624','name' => 'Camoapa'),\n \t array('id' => '30590','state_id' => '2624','name' => 'San Lorenzo'),\n \t array('id' => '30591','state_id' => '2625','name' => 'Diriamba'),\n \t array('id' => '30592','state_id' => '2625','name' => 'Dolores'),\n \t array('id' => '30593','state_id' => '2625','name' => 'Jinotepe'),\n \t array('id' => '30594','state_id' => '2625','name' => 'Masatepe'),\n \t array('id' => '30595','state_id' => '2625','name' => 'San Marcos'),\n \t array('id' => '30596','state_id' => '2625','name' => 'Santa Teresa'),\n \t array('id' => '30597','state_id' => '2626','name' => 'Chichigalpa'),\n \t array('id' => '30598','state_id' => '2626','name' => 'Chinandega'),\n \t array('id' => '30599','state_id' => '2626','name' => 'Corinto'),\n \t array('id' => '30600','state_id' => '2626','name' => 'El Viejo'),\n \t array('id' => '30601','state_id' => '2626','name' => 'Puerto Morazan'),\n \t array('id' => '30602','state_id' => '2626','name' => 'Somotillo'),\n \t array('id' => '30603','state_id' => '2627','name' => 'Acoyapa'),\n \t array('id' => '30604','state_id' => '2627','name' => 'Juigalpa'),\n \t array('id' => '30605','state_id' => '2627','name' => 'Santo Domingo'),\n \t array('id' => '30606','state_id' => '2627','name' => 'Santo Tomas'),\n \t array('id' => '30607','state_id' => '2627','name' => 'Villa Sandino'),\n \t array('id' => '30608','state_id' => '2628','name' => 'Condega'),\n \t array('id' => '30609','state_id' => '2628','name' => 'Esteli'),\n \t array('id' => '30610','state_id' => '2628','name' => 'La Trinidad'),\n \t array('id' => '30611','state_id' => '2629','name' => 'Diriomo'),\n \t array('id' => '30612','state_id' => '2629','name' => 'Granada'),\n \t array('id' => '30613','state_id' => '2629','name' => 'Nandaime'),\n \t array('id' => '30614','state_id' => '2630','name' => 'Jinotega'),\n \t array('id' => '30615','state_id' => '2630','name' => 'Wiwili'),\n \t array('id' => '30616','state_id' => '2631','name' => 'El Sauce'),\n \t array('id' => '30617','state_id' => '2631','name' => 'La Paz Centro'),\n \t array('id' => '30618','state_id' => '2631','name' => 'Larreynaga'),\n \t array('id' => '30619','state_id' => '2631','name' => 'Leon'),\n \t array('id' => '30620','state_id' => '2631','name' => 'Nagarote'),\n \t array('id' => '30621','state_id' => '2631','name' => 'Telica'),\n \t array('id' => '30622','state_id' => '2632','name' => 'Somoto'),\n \t array('id' => '30623','state_id' => '2633','name' => 'Managua'),\n \t array('id' => '30624','state_id' => '2633','name' => 'Mateare'),\n \t array('id' => '30625','state_id' => '2633','name' => 'San Rafael del Sur'),\n \t array('id' => '30626','state_id' => '2633','name' => 'Ticuantepe'),\n \t array('id' => '30627','state_id' => '2633','name' => 'Tipitapa'),\n \t array('id' => '30628','state_id' => '2634','name' => 'La Concepcion'),\n \t array('id' => '30629','state_id' => '2634','name' => 'Masaya'),\n \t array('id' => '30630','state_id' => '2634','name' => 'Nandasmo'),\n \t array('id' => '30631','state_id' => '2634','name' => 'Nindiri'),\n \t array('id' => '30632','state_id' => '2634','name' => 'Niquinohomo'),\n \t array('id' => '30633','state_id' => '2635','name' => 'Ciudad Dario'),\n \t array('id' => '30634','state_id' => '2635','name' => 'Esquipulas'),\n \t array('id' => '30635','state_id' => '2635','name' => 'Matagalpa'),\n \t array('id' => '30636','state_id' => '2635','name' => 'Matiguas'),\n \t array('id' => '30637','state_id' => '2635','name' => 'Rio Blanco'),\n \t array('id' => '30638','state_id' => '2635','name' => 'San Isidro'),\n \t array('id' => '30639','state_id' => '2635','name' => 'Sebaco'),\n \t array('id' => '30640','state_id' => '2638','name' => 'Belen'),\n \t array('id' => '30641','state_id' => '2638','name' => 'Rivas'),\n \t array('id' => '30642','state_id' => '2638','name' => 'San Jorge'),\n \t array('id' => '30643','state_id' => '2638','name' => 'San Juan del Sur'),\n \t array('id' => '30644','state_id' => '2639','name' => 'Agadez'),\n \t array('id' => '30645','state_id' => '2639','name' => 'Arlit'),\n \t array('id' => '30646','state_id' => '2639','name' => 'Bilma'),\n \t array('id' => '30647','state_id' => '2639','name' => 'Fachi'),\n \t array('id' => '30648','state_id' => '2639','name' => 'Ingall'),\n \t array('id' => '30649','state_id' => '2639','name' => 'Tchirozerine'),\n \t array('id' => '30650','state_id' => '2640','name' => 'Diffa'),\n \t array('id' => '30651','state_id' => '2640','name' => 'Maine-Soroa'),\n \t array('id' => '30652','state_id' => '2640','name' => 'N\\'Guigmi'),\n \t array('id' => '30653','state_id' => '2641','name' => 'Birni N\\'Gaoure'),\n \t array('id' => '30654','state_id' => '2641','name' => 'Boboye'),\n \t array('id' => '30655','state_id' => '2641','name' => 'Dogondoutchi'),\n \t array('id' => '30656','state_id' => '2641','name' => 'Dosso'),\n \t array('id' => '30657','state_id' => '2641','name' => 'Gaya'),\n \t array('id' => '30658','state_id' => '2641','name' => 'Loga'),\n \t array('id' => '30659','state_id' => '2642','name' => 'Aguie'),\n \t array('id' => '30660','state_id' => '2642','name' => 'Dakoro'),\n \t array('id' => '30661','state_id' => '2642','name' => 'Gazaoua'),\n \t array('id' => '30662','state_id' => '2642','name' => 'Guidan Roumdji'),\n \t array('id' => '30663','state_id' => '2642','name' => 'Madarounfa'),\n \t array('id' => '30664','state_id' => '2642','name' => 'Maradi'),\n \t array('id' => '30665','state_id' => '2642','name' => 'Mayahi'),\n \t array('id' => '30666','state_id' => '2642','name' => 'Tessaoua'),\n \t array('id' => '30667','state_id' => '2642','name' => 'Tibiri'),\n \t array('id' => '30668','state_id' => '2643','name' => 'Niamey'),\n \t array('id' => '30669','state_id' => '2644','name' => 'Birni N\\'Konni'),\n \t array('id' => '30670','state_id' => '2644','name' => 'Bouza'),\n \t array('id' => '30671','state_id' => '2644','name' => 'Illela'),\n \t array('id' => '30672','state_id' => '2644','name' => 'Keita'),\n \t array('id' => '30673','state_id' => '2644','name' => 'Madaoua'),\n \t array('id' => '30674','state_id' => '2644','name' => 'Malbaza\\'uzine'),\n \t array('id' => '30675','state_id' => '2644','name' => 'Tahoua'),\n \t array('id' => '30676','state_id' => '2644','name' => 'Tchintabaraden'),\n \t array('id' => '30677','state_id' => '2645','name' => 'Ayorou'),\n \t array('id' => '30678','state_id' => '2645','name' => 'Filingue'),\n \t array('id' => '30679','state_id' => '2645','name' => 'Kollo'),\n \t array('id' => '30680','state_id' => '2645','name' => 'Ouallam'),\n \t array('id' => '30681','state_id' => '2645','name' => 'Say'),\n \t array('id' => '30682','state_id' => '2645','name' => 'Tera'),\n \t array('id' => '30683','state_id' => '2645','name' => 'Tillabery'),\n \t array('id' => '30684','state_id' => '2646','name' => 'Goure'),\n \t array('id' => '30685','state_id' => '2646','name' => 'Kantche'),\n \t array('id' => '30686','state_id' => '2646','name' => 'Magaria'),\n \t array('id' => '30687','state_id' => '2646','name' => 'Matameye'),\n \t array('id' => '30688','state_id' => '2646','name' => 'Mirriah'),\n \t array('id' => '30689','state_id' => '2646','name' => 'Tanout'),\n \t array('id' => '30690','state_id' => '2646','name' => 'Zinder'),\n \t array('id' => '30691','state_id' => '2647','name' => 'Aba'),\n \t array('id' => '30692','state_id' => '2647','name' => 'Amaigbo'),\n \t array('id' => '30693','state_id' => '2647','name' => 'Arochukwu'),\n \t array('id' => '30694','state_id' => '2647','name' => 'Bende'),\n \t array('id' => '30695','state_id' => '2647','name' => 'Ohafia'),\n \t array('id' => '30696','state_id' => '2647','name' => 'Okwe'),\n \t array('id' => '30697','state_id' => '2647','name' => 'Umuahia'),\n \t array('id' => '30698','state_id' => '2649','name' => 'Demsa'),\n \t array('id' => '30699','state_id' => '2649','name' => 'Ganye'),\n \t array('id' => '30700','state_id' => '2649','name' => 'Girei'),\n \t array('id' => '30701','state_id' => '2649','name' => 'Gombi'),\n \t array('id' => '30702','state_id' => '2649','name' => 'Jada'),\n \t array('id' => '30703','state_id' => '2649','name' => 'Jimeta'),\n \t array('id' => '30704','state_id' => '2649','name' => 'Lamurde'),\n \t array('id' => '30705','state_id' => '2649','name' => 'Madagala'),\n \t array('id' => '30706','state_id' => '2649','name' => 'Maiha'),\n \t array('id' => '30707','state_id' => '2649','name' => 'Mubi'),\n \t array('id' => '30708','state_id' => '2649','name' => 'Ngurore'),\n \t array('id' => '30709','state_id' => '2649','name' => 'Numan'),\n \t array('id' => '30710','state_id' => '2649','name' => 'Shelleng'),\n \t array('id' => '30711','state_id' => '2649','name' => 'Song'),\n \t array('id' => '30712','state_id' => '2649','name' => 'Toungo'),\n \t array('id' => '30713','state_id' => '2649','name' => 'Yola'),\n \t array('id' => '30714','state_id' => '2651','name' => 'Aguata'),\n \t array('id' => '30715','state_id' => '2651','name' => 'Agulu'),\n \t array('id' => '30716','state_id' => '2651','name' => 'Anambra'),\n \t array('id' => '30717','state_id' => '2651','name' => 'Awka'),\n \t array('id' => '30718','state_id' => '2651','name' => 'Enugu Ukwu'),\n \t array('id' => '30719','state_id' => '2651','name' => 'Igbo Ukwu'),\n \t array('id' => '30720','state_id' => '2651','name' => 'Ihiala'),\n \t array('id' => '30721','state_id' => '2651','name' => 'Nkpor'),\n \t array('id' => '30722','state_id' => '2651','name' => 'Nnewi'),\n \t array('id' => '30723','state_id' => '2651','name' => 'Obosi'),\n \t array('id' => '30724','state_id' => '2651','name' => 'Okija'),\n \t array('id' => '30725','state_id' => '2651','name' => 'Okpoko'),\n \t array('id' => '30726','state_id' => '2651','name' => 'Onitsha'),\n \t array('id' => '30727','state_id' => '2651','name' => 'Ozubulu'),\n \t array('id' => '30728','state_id' => '2651','name' => 'Uga'),\n \t array('id' => '30729','state_id' => '2652','name' => 'Alkaleri'),\n \t array('id' => '30730','state_id' => '2652','name' => 'Azare'),\n \t array('id' => '30731','state_id' => '2652','name' => 'Bauchi'),\n \t array('id' => '30732','state_id' => '2652','name' => 'Bogoro'),\n \t array('id' => '30733','state_id' => '2652','name' => 'Bununu Dass'),\n \t array('id' => '30734','state_id' => '2652','name' => 'Darazo'),\n \t array('id' => '30735','state_id' => '2652','name' => 'Gamawa'),\n \t array('id' => '30736','state_id' => '2652','name' => 'Ganjuwa'),\n \t array('id' => '30737','state_id' => '2652','name' => 'Jamari'),\n \t array('id' => '30738','state_id' => '2652','name' => 'Katagum'),\n \t array('id' => '30739','state_id' => '2652','name' => 'Misau'),\n \t array('id' => '30740','state_id' => '2652','name' => 'Ningi'),\n \t array('id' => '30741','state_id' => '2652','name' => 'Tafawa Balewa'),\n \t array('id' => '30742','state_id' => '2653','name' => 'Brass'),\n \t array('id' => '30743','state_id' => '2653','name' => 'Ekeremor'),\n \t array('id' => '30744','state_id' => '2653','name' => 'Nembe'),\n \t array('id' => '30745','state_id' => '2653','name' => 'Yenagoa'),\n \t array('id' => '30746','state_id' => '2654','name' => 'Aliade'),\n \t array('id' => '30747','state_id' => '2654','name' => 'Gboko'),\n \t array('id' => '30748','state_id' => '2654','name' => 'Katsina-Ala'),\n \t array('id' => '30749','state_id' => '2654','name' => 'Makurdi'),\n \t array('id' => '30750','state_id' => '2654','name' => 'Otukpo'),\n \t array('id' => '30751','state_id' => '2654','name' => 'Ukum'),\n \t array('id' => '30752','state_id' => '2654','name' => 'Zaki Biam'),\n \t array('id' => '30753','state_id' => '2655','name' => 'Abadan'),\n \t array('id' => '30754','state_id' => '2655','name' => 'Askira'),\n \t array('id' => '30755','state_id' => '2655','name' => 'Bama'),\n \t array('id' => '30756','state_id' => '2655','name' => 'Biu'),\n \t array('id' => '30757','state_id' => '2655','name' => 'Chibok'),\n \t array('id' => '30758','state_id' => '2655','name' => 'Damboa'),\n \t array('id' => '30759','state_id' => '2655','name' => 'Dikwa'),\n \t array('id' => '30760','state_id' => '2655','name' => 'Gamboru'),\n \t array('id' => '30761','state_id' => '2655','name' => 'Gubio'),\n \t array('id' => '30762','state_id' => '2655','name' => 'Gwoza'),\n \t array('id' => '30763','state_id' => '2655','name' => 'Kaga'),\n \t array('id' => '30764','state_id' => '2655','name' => 'Kala'),\n \t array('id' => '30765','state_id' => '2655','name' => 'Konduga'),\n \t array('id' => '30766','state_id' => '2655','name' => 'Kukawa'),\n \t array('id' => '30767','state_id' => '2655','name' => 'Mafa'),\n \t array('id' => '30768','state_id' => '2655','name' => 'Magumeri'),\n \t array('id' => '30769','state_id' => '2655','name' => 'Maiduguri'),\n \t array('id' => '30770','state_id' => '2655','name' => 'Marte'),\n \t array('id' => '30771','state_id' => '2655','name' => 'Monguno'),\n \t array('id' => '30772','state_id' => '2655','name' => 'Ngala'),\n \t array('id' => '30773','state_id' => '2655','name' => 'Shani'),\n \t array('id' => '30774','state_id' => '2657','name' => 'Agbor'),\n \t array('id' => '30775','state_id' => '2657','name' => 'Asaba'),\n \t array('id' => '30776','state_id' => '2657','name' => 'Bomadi'),\n \t array('id' => '30777','state_id' => '2657','name' => 'Burutu'),\n \t array('id' => '30778','state_id' => '2657','name' => 'Okpe'),\n \t array('id' => '30779','state_id' => '2657','name' => 'Patani'),\n \t array('id' => '30780','state_id' => '2657','name' => 'Sapele'),\n \t array('id' => '30781','state_id' => '2657','name' => 'Ughelli'),\n \t array('id' => '30782','state_id' => '2657','name' => 'Warri'),\n \t array('id' => '30783','state_id' => '2658','name' => 'Abakaliki'),\n \t array('id' => '30784','state_id' => '2658','name' => 'Afikpo'),\n \t array('id' => '30785','state_id' => '2658','name' => 'Effium'),\n \t array('id' => '30786','state_id' => '2658','name' => 'Ezza'),\n \t array('id' => '30787','state_id' => '2658','name' => 'Ishieke'),\n \t array('id' => '30788','state_id' => '2658','name' => 'Uburu'),\n \t array('id' => '30789','state_id' => '2659','name' => 'Auchi'),\n \t array('id' => '30790','state_id' => '2659','name' => 'Benin'),\n \t array('id' => '30791','state_id' => '2659','name' => 'Ekpoma'),\n \t array('id' => '30792','state_id' => '2659','name' => 'Igarra'),\n \t array('id' => '30793','state_id' => '2659','name' => 'Ikpoba'),\n \t array('id' => '30794','state_id' => '2659','name' => 'Irrua'),\n \t array('id' => '30795','state_id' => '2659','name' => 'Sabongida'),\n \t array('id' => '30796','state_id' => '2659','name' => 'Ubiaja'),\n \t array('id' => '30797','state_id' => '2659','name' => 'Uromi'),\n \t array('id' => '30798','state_id' => '2660','name' => 'Ado'),\n \t array('id' => '30799','state_id' => '2660','name' => 'Aramoko'),\n \t array('id' => '30800','state_id' => '2660','name' => 'Efon Alaye'),\n \t array('id' => '30801','state_id' => '2660','name' => 'Emure'),\n \t array('id' => '30802','state_id' => '2660','name' => 'Igbara Odo'),\n \t array('id' => '30803','state_id' => '2660','name' => 'Igede'),\n \t array('id' => '30804','state_id' => '2660','name' => 'Ijero'),\n \t array('id' => '30805','state_id' => '2660','name' => 'Ikere'),\n \t array('id' => '30806','state_id' => '2660','name' => 'Ikole'),\n \t array('id' => '30807','state_id' => '2660','name' => 'Ilawe'),\n \t array('id' => '30808','state_id' => '2660','name' => 'Ipoti'),\n \t array('id' => '30809','state_id' => '2660','name' => 'Ise'),\n \t array('id' => '30810','state_id' => '2660','name' => 'Ode'),\n \t array('id' => '30811','state_id' => '2660','name' => 'Omuo'),\n \t array('id' => '30812','state_id' => '2660','name' => 'Osi'),\n \t array('id' => '30813','state_id' => '2661','name' => 'Agwa'),\n \t array('id' => '30814','state_id' => '2661','name' => 'Aku'),\n \t array('id' => '30815','state_id' => '2661','name' => 'Awgu'),\n \t array('id' => '30816','state_id' => '2661','name' => 'Eha Amufu'),\n \t array('id' => '30817','state_id' => '2661','name' => 'Enugu'),\n \t array('id' => '30818','state_id' => '2661','name' => 'Enugu Ezike'),\n \t array('id' => '30819','state_id' => '2661','name' => 'Enugu Ngwo'),\n \t array('id' => '30820','state_id' => '2661','name' => 'Ezeagu'),\n \t array('id' => '30821','state_id' => '2661','name' => 'Mberubu'),\n \t array('id' => '30822','state_id' => '2661','name' => 'Nsukka'),\n \t array('id' => '30823','state_id' => '2661','name' => 'Oji'),\n \t array('id' => '30824','state_id' => '2661','name' => 'Udi'),\n \t array('id' => '30825','state_id' => '2662','name' => 'Ako'),\n \t array('id' => '30826','state_id' => '2662','name' => 'Deba'),\n \t array('id' => '30827','state_id' => '2662','name' => 'Duku'),\n \t array('id' => '30828','state_id' => '2662','name' => 'Garko'),\n \t array('id' => '30829','state_id' => '2662','name' => 'Gombe'),\n \t array('id' => '30830','state_id' => '2662','name' => 'Kaltungo'),\n \t array('id' => '30831','state_id' => '2662','name' => 'Kumo'),\n \t array('id' => '30832','state_id' => '2662','name' => 'Nafada'),\n \t array('id' => '30833','state_id' => '2662','name' => 'Pindiga'),\n \t array('id' => '30834','state_id' => '2663','name' => 'Aboh'),\n \t array('id' => '30835','state_id' => '2663','name' => 'Etiti'),\n \t array('id' => '30836','state_id' => '2663','name' => 'Ihite'),\n \t array('id' => '30837','state_id' => '2663','name' => 'Nkwerre'),\n \t array('id' => '30838','state_id' => '2663','name' => 'Oguta'),\n \t array('id' => '30839','state_id' => '2663','name' => 'Okigwe'),\n \t array('id' => '30840','state_id' => '2663','name' => 'Owerri'),\n \t array('id' => '30841','state_id' => '2664','name' => 'Babura'),\n \t array('id' => '30842','state_id' => '2664','name' => 'Birnin Kudu'),\n \t array('id' => '30843','state_id' => '2664','name' => 'Buji'),\n \t array('id' => '30844','state_id' => '2664','name' => 'Dutse'),\n \t array('id' => '30845','state_id' => '2664','name' => 'Garki'),\n \t array('id' => '30846','state_id' => '2664','name' => 'Gumel'),\n \t array('id' => '30847','state_id' => '2664','name' => 'Gwaram'),\n \t array('id' => '30848','state_id' => '2664','name' => 'Gwiwa'),\n \t array('id' => '30849','state_id' => '2664','name' => 'Hadejia'),\n \t array('id' => '30850','state_id' => '2664','name' => 'Jahun'),\n \t array('id' => '30851','state_id' => '2664','name' => 'Kaugama'),\n \t array('id' => '30852','state_id' => '2664','name' => 'Kazaure'),\n \t array('id' => '30853','state_id' => '2664','name' => 'Keffin Hausa'),\n \t array('id' => '30854','state_id' => '2664','name' => 'Kiyawa'),\n \t array('id' => '30855','state_id' => '2664','name' => 'Maigatari'),\n \t array('id' => '30856','state_id' => '2664','name' => 'Malammaduri'),\n \t array('id' => '30857','state_id' => '2664','name' => 'Ringim'),\n \t array('id' => '30858','state_id' => '2664','name' => 'Sule Tankarkar'),\n \t array('id' => '30859','state_id' => '2664','name' => 'Taura'),\n \t array('id' => '30860','state_id' => '2665','name' => 'Birnin Gwari'),\n \t array('id' => '30861','state_id' => '2665','name' => 'Doka'),\n \t array('id' => '30862','state_id' => '2665','name' => 'Giwa'),\n \t array('id' => '30863','state_id' => '2665','name' => 'Gwagwada'),\n \t array('id' => '30864','state_id' => '2665','name' => 'Hunkuyi'),\n \t array('id' => '30865','state_id' => '2665','name' => 'Igabi'),\n \t array('id' => '30866','state_id' => '2665','name' => 'Ikara'),\n \t array('id' => '30867','state_id' => '2665','name' => 'Jemaa'),\n \t array('id' => '30868','state_id' => '2665','name' => 'Kachia'),\n \t array('id' => '30869','state_id' => '2665','name' => 'Kaduna'),\n \t array('id' => '30870','state_id' => '2665','name' => 'Kafanchan'),\n \t array('id' => '30871','state_id' => '2665','name' => 'Kagarko'),\n \t array('id' => '30872','state_id' => '2665','name' => 'Kagoro'),\n \t array('id' => '30873','state_id' => '2665','name' => 'Kaura'),\n \t array('id' => '30874','state_id' => '2665','name' => 'Kudan'),\n \t array('id' => '30875','state_id' => '2665','name' => 'Lere'),\n \t array('id' => '30876','state_id' => '2665','name' => 'Makarfi'),\n \t array('id' => '30877','state_id' => '2665','name' => 'Sabon Birnin Gwari'),\n \t array('id' => '30878','state_id' => '2665','name' => 'Sabongari'),\n \t array('id' => '30879','state_id' => '2665','name' => 'Sanga'),\n \t array('id' => '30880','state_id' => '2665','name' => 'Soba'),\n \t array('id' => '30881','state_id' => '2665','name' => 'Tudun Wada'),\n \t array('id' => '30882','state_id' => '2665','name' => 'Zangon Katab'),\n \t array('id' => '30883','state_id' => '2665','name' => 'Zaria'),\n \t array('id' => '30884','state_id' => '2666','name' => 'Ajingi'),\n \t array('id' => '30885','state_id' => '2666','name' => 'Albasu'),\n \t array('id' => '30886','state_id' => '2666','name' => 'Bagwai'),\n \t array('id' => '30887','state_id' => '2666','name' => 'Bebeji'),\n \t array('id' => '30888','state_id' => '2666','name' => 'Bichi'),\n \t array('id' => '30889','state_id' => '2666','name' => 'Bunkure'),\n \t array('id' => '30890','state_id' => '2666','name' => 'Dambarta'),\n \t array('id' => '30891','state_id' => '2666','name' => 'Dawakin Tofe'),\n \t array('id' => '30892','state_id' => '2666','name' => 'Fagge'),\n \t array('id' => '30893','state_id' => '2666','name' => 'Garko'),\n \t array('id' => '30894','state_id' => '2666','name' => 'Garun Mallam'),\n \t array('id' => '30895','state_id' => '2666','name' => 'Gaya'),\n \t array('id' => '30896','state_id' => '2666','name' => 'Gezawa'),\n \t array('id' => '30897','state_id' => '2666','name' => 'Gwarzo'),\n \t array('id' => '30898','state_id' => '2666','name' => 'Kabo'),\n \t array('id' => '30899','state_id' => '2666','name' => 'Kano'),\n \t array('id' => '30900','state_id' => '2666','name' => 'Karaye'),\n \t array('id' => '30901','state_id' => '2666','name' => 'Kibiya'),\n \t array('id' => '30902','state_id' => '2666','name' => 'Kiru'),\n \t array('id' => '30903','state_id' => '2666','name' => 'Kumbotso'),\n \t array('id' => '30904','state_id' => '2666','name' => 'Kunchi'),\n \t array('id' => '30905','state_id' => '2666','name' => 'Kura'),\n \t array('id' => '30906','state_id' => '2666','name' => 'Madobi'),\n \t array('id' => '30907','state_id' => '2666','name' => 'Makoda'),\n \t array('id' => '30908','state_id' => '2666','name' => 'Nassarawa'),\n \t array('id' => '30909','state_id' => '2666','name' => 'Rano'),\n \t array('id' => '30910','state_id' => '2666','name' => 'Rimin Gado'),\n \t array('id' => '30911','state_id' => '2666','name' => 'Shanono'),\n \t array('id' => '30912','state_id' => '2666','name' => 'Sumaila'),\n \t array('id' => '30913','state_id' => '2666','name' => 'Takai'),\n \t array('id' => '30914','state_id' => '2666','name' => 'Tofa'),\n \t array('id' => '30915','state_id' => '2666','name' => 'Tudun Wada'),\n \t array('id' => '30916','state_id' => '2666','name' => 'Wudil'),\n \t array('id' => '30917','state_id' => '2667','name' => 'Bakori'),\n \t array('id' => '30918','state_id' => '2667','name' => 'Batsari'),\n \t array('id' => '30919','state_id' => '2667','name' => 'Bindawa'),\n \t array('id' => '30920','state_id' => '2667','name' => 'Cheranchi'),\n \t array('id' => '30921','state_id' => '2667','name' => 'Dan Dume'),\n \t array('id' => '30922','state_id' => '2667','name' => 'Danja'),\n \t array('id' => '30923','state_id' => '2667','name' => 'Daura'),\n \t array('id' => '30924','state_id' => '2667','name' => 'Dutsi'),\n \t array('id' => '30925','state_id' => '2667','name' => 'Dutsin Ma'),\n \t array('id' => '30926','state_id' => '2667','name' => 'Faskari'),\n \t array('id' => '30927','state_id' => '2667','name' => 'Funtua'),\n \t array('id' => '30928','state_id' => '2667','name' => 'Ingawa'),\n \t array('id' => '30929','state_id' => '2667','name' => 'Jibiya'),\n \t array('id' => '30930','state_id' => '2667','name' => 'Kangiwa'),\n \t array('id' => '30931','state_id' => '2667','name' => 'Kankara'),\n \t array('id' => '30932','state_id' => '2667','name' => 'Kankiya'),\n \t array('id' => '30933','state_id' => '2667','name' => 'Katsina'),\n \t array('id' => '30934','state_id' => '2667','name' => 'Kurfi'),\n \t array('id' => '30935','state_id' => '2667','name' => 'Malumfashi'),\n \t array('id' => '30936','state_id' => '2667','name' => 'Mani'),\n \t array('id' => '30937','state_id' => '2667','name' => 'Mashi'),\n \t array('id' => '30938','state_id' => '2667','name' => 'Musawa'),\n \t array('id' => '30939','state_id' => '2667','name' => 'Rimi'),\n \t array('id' => '30940','state_id' => '2667','name' => 'Sandamu'),\n \t array('id' => '30941','state_id' => '2667','name' => 'Zango'),\n \t array('id' => '30942','state_id' => '2668','name' => 'Argungu'),\n \t array('id' => '30943','state_id' => '2668','name' => 'Augie'),\n \t array('id' => '30944','state_id' => '2668','name' => 'Bagudo'),\n \t array('id' => '30945','state_id' => '2668','name' => 'Birnin Kebbi'),\n \t array('id' => '30946','state_id' => '2668','name' => 'Birnin Yauri'),\n \t array('id' => '30947','state_id' => '2668','name' => 'Bunza'),\n \t array('id' => '30948','state_id' => '2668','name' => 'Fakai'),\n \t array('id' => '30949','state_id' => '2668','name' => 'Gwandu'),\n \t array('id' => '30950','state_id' => '2668','name' => 'Jega'),\n \t array('id' => '30951','state_id' => '2668','name' => 'Kalgo'),\n \t array('id' => '30952','state_id' => '2668','name' => 'Koko'),\n \t array('id' => '30953','state_id' => '2668','name' => 'Maiyema'),\n \t array('id' => '30954','state_id' => '2668','name' => 'Sakaba'),\n \t array('id' => '30955','state_id' => '2668','name' => 'Shanga'),\n \t array('id' => '30956','state_id' => '2668','name' => 'Suru'),\n \t array('id' => '30957','state_id' => '2668','name' => 'Wasagu'),\n \t array('id' => '30958','state_id' => '2668','name' => 'Zuru'),\n \t array('id' => '30959','state_id' => '2669','name' => 'Ajaokuta'),\n \t array('id' => '30960','state_id' => '2669','name' => 'Ankpa'),\n \t array('id' => '30961','state_id' => '2669','name' => 'Dekina'),\n \t array('id' => '30962','state_id' => '2669','name' => 'Idah'),\n \t array('id' => '30963','state_id' => '2669','name' => 'Kabba'),\n \t array('id' => '30964','state_id' => '2669','name' => 'Koton-Karifi'),\n \t array('id' => '30965','state_id' => '2669','name' => 'Kuroro'),\n \t array('id' => '30966','state_id' => '2669','name' => 'Lokoja'),\n \t array('id' => '30967','state_id' => '2669','name' => 'Mopa'),\n \t array('id' => '30968','state_id' => '2669','name' => 'Ogaminana'),\n \t array('id' => '30969','state_id' => '2669','name' => 'Ogori'),\n \t array('id' => '30970','state_id' => '2669','name' => 'Okene'),\n \t array('id' => '30971','state_id' => '2670','name' => 'Ajasse'),\n \t array('id' => '30972','state_id' => '2670','name' => 'Ilorin'),\n \t array('id' => '30973','state_id' => '2670','name' => 'Jebba'),\n \t array('id' => '30974','state_id' => '2670','name' => 'Kaiama'),\n \t array('id' => '30975','state_id' => '2670','name' => 'Lafiagi'),\n \t array('id' => '30976','state_id' => '2670','name' => 'Offa'),\n \t array('id' => '30977','state_id' => '2670','name' => 'Pategi'),\n \t array('id' => '30978','state_id' => '2671','name' => 'Apapa'),\n \t array('id' => '30979','state_id' => '2671','name' => 'Badagri'),\n \t array('id' => '30980','state_id' => '2671','name' => 'Epe'),\n \t array('id' => '30981','state_id' => '2671','name' => 'Ibeju'),\n \t array('id' => '30982','state_id' => '2671','name' => 'Iganmi'),\n \t array('id' => '30983','state_id' => '2671','name' => 'Ikeja'),\n \t array('id' => '30984','state_id' => '2671','name' => 'Ikorodu'),\n \t array('id' => '30985','state_id' => '2671','name' => 'Lagos'),\n \t array('id' => '30986','state_id' => '2671','name' => 'Ojo'),\n \t array('id' => '30987','state_id' => '2671','name' => 'Surulere'),\n \t array('id' => '30988','state_id' => '2672','name' => 'Akwanga'),\n \t array('id' => '30989','state_id' => '2672','name' => 'Awe'),\n \t array('id' => '30990','state_id' => '2672','name' => 'Doma'),\n \t array('id' => '30991','state_id' => '2672','name' => 'Keana'),\n \t array('id' => '30992','state_id' => '2672','name' => 'Keffi'),\n \t array('id' => '30993','state_id' => '2672','name' => 'Lafia'),\n \t array('id' => '30994','state_id' => '2672','name' => 'Nassarawa'),\n \t array('id' => '30995','state_id' => '2672','name' => 'Obi'),\n \t array('id' => '30996','state_id' => '2672','name' => 'Toto'),\n \t array('id' => '30997','state_id' => '2672','name' => 'Wamba'),\n \t array('id' => '30998','state_id' => '2673','name' => 'Agale'),\n \t array('id' => '30999','state_id' => '2673','name' => 'Babana'),\n \t array('id' => '31000','state_id' => '2673','name' => 'Bida'),\n \t array('id' => '31001','state_id' => '2673','name' => 'Bosso'),\n \t array('id' => '31002','state_id' => '2673','name' => 'Chanchaga'),\n \t array('id' => '31003','state_id' => '2673','name' => 'Gbako'),\n \t array('id' => '31004','state_id' => '2673','name' => 'Kontagora'),\n \t array('id' => '31005','state_id' => '2673','name' => 'Lapai'),\n \t array('id' => '31006','state_id' => '2673','name' => 'Minna'),\n \t array('id' => '31007','state_id' => '2673','name' => 'Mokwa'),\n \t array('id' => '31008','state_id' => '2673','name' => 'New Bussa'),\n \t array('id' => '31009','state_id' => '2673','name' => 'Rijau'),\n \t array('id' => '31010','state_id' => '2673','name' => 'Shiroro'),\n \t array('id' => '31011','state_id' => '2673','name' => 'Suleja'),\n \t array('id' => '31012','state_id' => '2673','name' => 'Wushishi'),\n \t array('id' => '31013','state_id' => '2674','name' => 'Abeokuta'),\n \t array('id' => '31014','state_id' => '2674','name' => 'Ado Odo'),\n \t array('id' => '31015','state_id' => '2674','name' => 'Agbara'),\n \t array('id' => '31016','state_id' => '2674','name' => 'Aiyetoro'),\n \t array('id' => '31017','state_id' => '2674','name' => 'Ewekoro'),\n \t array('id' => '31018','state_id' => '2674','name' => 'Ifo'),\n \t array('id' => '31019','state_id' => '2674','name' => 'Ijebu Igbo'),\n \t array('id' => '31020','state_id' => '2674','name' => 'Ijebu Ode'),\n \t array('id' => '31021','state_id' => '2674','name' => 'Ikene'),\n \t array('id' => '31022','state_id' => '2674','name' => 'Ilaro'),\n \t array('id' => '31023','state_id' => '2674','name' => 'Ipokia'),\n \t array('id' => '31024','state_id' => '2674','name' => 'Odogbolu'),\n \t array('id' => '31025','state_id' => '2674','name' => 'Owode'),\n \t array('id' => '31026','state_id' => '2674','name' => 'Sango Ota'),\n \t array('id' => '31027','state_id' => '2674','name' => 'Shagamu'),\n \t array('id' => '31028','state_id' => '2675','name' => 'Akure'),\n \t array('id' => '31029','state_id' => '2675','name' => 'Idanre'),\n \t array('id' => '31030','state_id' => '2675','name' => 'Ikare'),\n \t array('id' => '31031','state_id' => '2675','name' => 'Irele'),\n \t array('id' => '31032','state_id' => '2675','name' => 'Odigbo'),\n \t array('id' => '31033','state_id' => '2675','name' => 'Oka'),\n \t array('id' => '31034','state_id' => '2675','name' => 'Okitipupa'),\n \t array('id' => '31035','state_id' => '2675','name' => 'Ondo'),\n \t array('id' => '31036','state_id' => '2675','name' => 'Owo'),\n \t array('id' => '31037','state_id' => '2676','name' => 'Apomu'),\n \t array('id' => '31038','state_id' => '2676','name' => 'Ede'),\n \t array('id' => '31039','state_id' => '2676','name' => 'Ejigbo'),\n \t array('id' => '31040','state_id' => '2676','name' => 'Erin-Oshogbo'),\n \t array('id' => '31041','state_id' => '2676','name' => 'Gbongan'),\n \t array('id' => '31042','state_id' => '2676','name' => 'Ife'),\n \t array('id' => '31043','state_id' => '2676','name' => 'Ifon Osun'),\n \t array('id' => '31044','state_id' => '2676','name' => 'Ijesha'),\n \t array('id' => '31045','state_id' => '2676','name' => 'Ikire'),\n \t array('id' => '31046','state_id' => '2676','name' => 'Ikirun'),\n \t array('id' => '31047','state_id' => '2676','name' => 'Ila'),\n \t array('id' => '31048','state_id' => '2676','name' => 'Ilesha'),\n \t array('id' => '31049','state_id' => '2676','name' => 'Ilobu'),\n \t array('id' => '31050','state_id' => '2676','name' => 'Inisa'),\n \t array('id' => '31051','state_id' => '2676','name' => 'Iwo'),\n \t array('id' => '31052','state_id' => '2676','name' => 'Modakeke'),\n \t array('id' => '31053','state_id' => '2676','name' => 'Oke-Mesi'),\n \t array('id' => '31054','state_id' => '2676','name' => 'Olorunda'),\n \t array('id' => '31055','state_id' => '2676','name' => 'Olupona'),\n \t array('id' => '31056','state_id' => '2676','name' => 'Ore'),\n \t array('id' => '31057','state_id' => '2676','name' => 'Orolu'),\n \t array('id' => '31058','state_id' => '2676','name' => 'Oshogbo'),\n \t array('id' => '31059','state_id' => '2676','name' => 'Oyan'),\n \t array('id' => '31060','state_id' => '2677','name' => 'Akinyele'),\n \t array('id' => '31061','state_id' => '2677','name' => 'Egbeda'),\n \t array('id' => '31062','state_id' => '2677','name' => 'Eruwa'),\n \t array('id' => '31063','state_id' => '2677','name' => 'Fiditi'),\n \t array('id' => '31064','state_id' => '2677','name' => 'Ibadan'),\n \t array('id' => '31065','state_id' => '2677','name' => 'Ibeto'),\n \t array('id' => '31066','state_id' => '2677','name' => 'Igbo Ora'),\n \t array('id' => '31067','state_id' => '2677','name' => 'Igboho'),\n \t array('id' => '31068','state_id' => '2677','name' => 'Iseyin'),\n \t array('id' => '31069','state_id' => '2677','name' => 'Kajola'),\n \t array('id' => '31070','state_id' => '2677','name' => 'Kishi'),\n \t array('id' => '31071','state_id' => '2677','name' => 'Lalupon'),\n \t array('id' => '31072','state_id' => '2677','name' => 'Ogbomosho'),\n \t array('id' => '31073','state_id' => '2677','name' => 'Ogo'),\n \t array('id' => '31074','state_id' => '2677','name' => 'Oke-Iho'),\n \t array('id' => '31075','state_id' => '2677','name' => 'Oyo'),\n \t array('id' => '31076','state_id' => '2677','name' => 'Shaki'),\n \t array('id' => '31077','state_id' => '2678','name' => 'Barakin'),\n \t array('id' => '31078','state_id' => '2678','name' => 'Bassa'),\n \t array('id' => '31079','state_id' => '2678','name' => 'Bokkos'),\n \t array('id' => '31080','state_id' => '2678','name' => 'Bukuru'),\n \t array('id' => '31081','state_id' => '2678','name' => 'Jos'),\n \t array('id' => '31082','state_id' => '2678','name' => 'Langtang'),\n \t array('id' => '31083','state_id' => '2678','name' => 'Pankshin'),\n \t array('id' => '31084','state_id' => '2678','name' => 'Riyom'),\n \t array('id' => '31085','state_id' => '2678','name' => 'Shendam'),\n \t array('id' => '31086','state_id' => '2678','name' => 'Vom'),\n \t array('id' => '31087','state_id' => '2678','name' => 'Wase'),\n \t array('id' => '31088','state_id' => '2679','name' => 'Abonnema'),\n \t array('id' => '31089','state_id' => '2679','name' => 'Abua'),\n \t array('id' => '31090','state_id' => '2679','name' => 'Ahoada'),\n \t array('id' => '31091','state_id' => '2679','name' => 'Bonny'),\n \t array('id' => '31092','state_id' => '2679','name' => 'Bugama'),\n \t array('id' => '31093','state_id' => '2679','name' => 'Degema'),\n \t array('id' => '31094','state_id' => '2679','name' => 'Egbema'),\n \t array('id' => '31095','state_id' => '2679','name' => 'Ogu'),\n \t array('id' => '31096','state_id' => '2679','name' => 'Okrika'),\n \t array('id' => '31097','state_id' => '2679','name' => 'Omoko'),\n \t array('id' => '31098','state_id' => '2679','name' => 'Opobo'),\n \t array('id' => '31099','state_id' => '2679','name' => 'Oyigbo'),\n \t array('id' => '31100','state_id' => '2679','name' => 'Port Harcourt'),\n \t array('id' => '31101','state_id' => '2680','name' => 'Binji'),\n \t array('id' => '31102','state_id' => '2680','name' => 'Bodinga'),\n \t array('id' => '31103','state_id' => '2680','name' => 'Dange'),\n \t array('id' => '31104','state_id' => '2680','name' => 'Gada'),\n \t array('id' => '31105','state_id' => '2680','name' => 'Goronyo'),\n \t array('id' => '31106','state_id' => '2680','name' => 'Gwadabawa'),\n \t array('id' => '31107','state_id' => '2680','name' => 'Illela'),\n \t array('id' => '31108','state_id' => '2680','name' => 'Kebbe'),\n \t array('id' => '31109','state_id' => '2680','name' => 'Kware'),\n \t array('id' => '31110','state_id' => '2680','name' => 'Rabah'),\n \t array('id' => '31111','state_id' => '2680','name' => 'Raka'),\n \t array('id' => '31112','state_id' => '2680','name' => 'Sabon Birni'),\n \t array('id' => '31113','state_id' => '2680','name' => 'Sokoto'),\n \t array('id' => '31114','state_id' => '2680','name' => 'Tambawel'),\n \t array('id' => '31115','state_id' => '2680','name' => 'Tureta'),\n \t array('id' => '31116','state_id' => '2680','name' => 'Wamako'),\n \t array('id' => '31117','state_id' => '2680','name' => 'Wurno'),\n \t array('id' => '31118','state_id' => '2681','name' => 'Bali'),\n \t array('id' => '31119','state_id' => '2681','name' => 'Gashaka'),\n \t array('id' => '31120','state_id' => '2681','name' => 'Gassol'),\n \t array('id' => '31121','state_id' => '2681','name' => 'Ibi'),\n \t array('id' => '31122','state_id' => '2681','name' => 'Jalingo'),\n \t array('id' => '31123','state_id' => '2681','name' => 'Lau'),\n \t array('id' => '31124','state_id' => '2681','name' => 'Takum'),\n \t array('id' => '31125','state_id' => '2681','name' => 'Wukari'),\n \t array('id' => '31126','state_id' => '2681','name' => 'Yorro'),\n \t array('id' => '31127','state_id' => '2682','name' => 'Damaturu'),\n \t array('id' => '31128','state_id' => '2682','name' => 'Fika'),\n \t array('id' => '31129','state_id' => '2682','name' => 'Gashua'),\n \t array('id' => '31130','state_id' => '2682','name' => 'Geidam'),\n \t array('id' => '31131','state_id' => '2682','name' => 'Gorgoram'),\n \t array('id' => '31132','state_id' => '2682','name' => 'Gujba'),\n \t array('id' => '31133','state_id' => '2682','name' => 'Gulani'),\n \t array('id' => '31134','state_id' => '2682','name' => 'Jakusko'),\n \t array('id' => '31135','state_id' => '2682','name' => 'Matsena'),\n \t array('id' => '31136','state_id' => '2682','name' => 'Nguru'),\n \t array('id' => '31137','state_id' => '2682','name' => 'Potiskum'),\n \t array('id' => '31138','state_id' => '2682','name' => 'Yusufari'),\n \t array('id' => '31139','state_id' => '2683','name' => 'Anka'),\n \t array('id' => '31140','state_id' => '2683','name' => 'Bungudu'),\n \t array('id' => '31141','state_id' => '2683','name' => 'Chafe'),\n \t array('id' => '31142','state_id' => '2683','name' => 'Gummi'),\n \t array('id' => '31143','state_id' => '2683','name' => 'Gusau'),\n \t array('id' => '31144','state_id' => '2683','name' => 'Isa'),\n \t array('id' => '31145','state_id' => '2683','name' => 'Kaura Namoda'),\n \t array('id' => '31146','state_id' => '2683','name' => 'Kiyawa'),\n \t array('id' => '31147','state_id' => '2683','name' => 'Maradun'),\n \t array('id' => '31148','state_id' => '2683','name' => 'Maru'),\n \t array('id' => '31149','state_id' => '2683','name' => 'Shinkafe'),\n \t array('id' => '31150','state_id' => '2683','name' => 'Talata Mafara'),\n \t array('id' => '31151','state_id' => '2683','name' => 'Zurmi'),\n \t array('id' => '31152','state_id' => '2684','name' => 'Niue'),\n \t array('id' => '31153','state_id' => '2687','name' => 'Songsong'),\n \t array('id' => '31154','state_id' => '2688','name' => 'Capital Hill'),\n \t array('id' => '31155','state_id' => '2688','name' => 'Chalan Kanoa'),\n \t array('id' => '31156','state_id' => '2688','name' => 'Dandan'),\n \t array('id' => '31157','state_id' => '2688','name' => 'Garapan'),\n \t array('id' => '31158','state_id' => '2688','name' => 'Gualo Rai'),\n \t array('id' => '31159','state_id' => '2688','name' => 'Kagman'),\n \t array('id' => '31160','state_id' => '2688','name' => 'Koblerville'),\n \t array('id' => '31161','state_id' => '2688','name' => 'San Antonio'),\n \t array('id' => '31162','state_id' => '2688','name' => 'San Jose'),\n \t array('id' => '31163','state_id' => '2688','name' => 'San Roque'),\n \t array('id' => '31164','state_id' => '2688','name' => 'San Vicente'),\n \t array('id' => '31165','state_id' => '2688','name' => 'Susupe'),\n \t array('id' => '31166','state_id' => '2688','name' => 'Tanapag'),\n \t array('id' => '31167','state_id' => '2689','name' => 'San Jose'),\n \t array('id' => '31168','state_id' => '2690','name' => 'Asker'),\n \t array('id' => '31169','state_id' => '2690','name' => 'Billingstad'),\n \t array('id' => '31170','state_id' => '2690','name' => 'Haslum'),\n \t array('id' => '31171','state_id' => '2690','name' => 'Hosle'),\n \t array('id' => '31172','state_id' => '2690','name' => 'Kjeller'),\n \t array('id' => '31173','state_id' => '2690','name' => 'Lillestrom'),\n \t array('id' => '31174','state_id' => '2690','name' => 'Lorenskog'),\n \t array('id' => '31175','state_id' => '2690','name' => 'Lysaker'),\n \t array('id' => '31176','state_id' => '2690','name' => 'Lørenskog'),\n \t array('id' => '31177','state_id' => '2690','name' => 'Rud'),\n \t array('id' => '31178','state_id' => '2690','name' => 'Sandvika'),\n \t array('id' => '31179','state_id' => '2690','name' => 'Strommen'),\n \t array('id' => '31180','state_id' => '2692','name' => 'Kokstad'),\n \t array('id' => '31181','state_id' => '2693','name' => 'Drammen'),\n \t array('id' => '31182','state_id' => '2693','name' => 'Hokksund'),\n \t array('id' => '31183','state_id' => '2693','name' => 'Honefoss'),\n \t array('id' => '31184','state_id' => '2693','name' => 'Kongsberg'),\n \t array('id' => '31185','state_id' => '2693','name' => 'Lyngdal'),\n \t array('id' => '31186','state_id' => '2693','name' => 'Nærsnes'),\n \t array('id' => '31187','state_id' => '2693','name' => 'Vestby'),\n \t array('id' => '31188','state_id' => '2694','name' => 'Baatsfjord'),\n \t array('id' => '31189','state_id' => '2694','name' => 'Hammerfest'),\n \t array('id' => '31190','state_id' => '2695','name' => 'Brumunddal'),\n \t array('id' => '31191','state_id' => '2695','name' => 'Elverum'),\n \t array('id' => '31192','state_id' => '2695','name' => 'Hamar'),\n \t array('id' => '31193','state_id' => '2695','name' => 'Ilseng'),\n \t array('id' => '31194','state_id' => '2695','name' => 'Rena'),\n \t array('id' => '31195','state_id' => '2695','name' => 'Trysil'),\n \t array('id' => '31196','state_id' => '2696','name' => 'Bergen'),\n \t array('id' => '31197','state_id' => '2696','name' => 'Høylandsbygd'),\n \t array('id' => '31198','state_id' => '2696','name' => 'Lonevag'),\n \t array('id' => '31199','state_id' => '2696','name' => 'Straume'),\n \t array('id' => '31200','state_id' => '2696','name' => 'Tysnes'),\n \t array('id' => '31201','state_id' => '2696','name' => 'Voss'),\n \t array('id' => '31202','state_id' => '2699','name' => 'Bodo'),\n \t array('id' => '31203','state_id' => '2699','name' => 'Mosjoen'),\n \t array('id' => '31204','state_id' => '2699','name' => 'Narvik'),\n \t array('id' => '31205','state_id' => '2699','name' => 'Nesna'),\n \t array('id' => '31206','state_id' => '2699','name' => 'Saltdal'),\n \t array('id' => '31207','state_id' => '2699','name' => 'Sortland'),\n \t array('id' => '31208','state_id' => '2699','name' => 'Steigen'),\n \t array('id' => '31209','state_id' => '2700','name' => 'Askim'),\n \t array('id' => '31210','state_id' => '2700','name' => 'Fredrikstad'),\n \t array('id' => '31211','state_id' => '2700','name' => 'Halden'),\n \t array('id' => '31212','state_id' => '2700','name' => 'Hovik'),\n \t array('id' => '31213','state_id' => '2700','name' => 'Moss'),\n \t array('id' => '31214','state_id' => '2700','name' => 'Mysen'),\n \t array('id' => '31215','state_id' => '2700','name' => 'Sarpsborg'),\n \t array('id' => '31216','state_id' => '2700','name' => 'Tistedal'),\n \t array('id' => '31217','state_id' => '2701','name' => 'Lena'),\n \t array('id' => '31218','state_id' => '2701','name' => 'Lillehammer'),\n \t array('id' => '31219','state_id' => '2702','name' => 'Oslo'),\n \t array('id' => '31220','state_id' => '2702','name' => 'Skedsmo'),\n \t array('id' => '31221','state_id' => '2702','name' => 'Skjetten'),\n \t array('id' => '31222','state_id' => '2703','name' => 'Egersund'),\n \t array('id' => '31223','state_id' => '2703','name' => 'Haugesund'),\n \t array('id' => '31224','state_id' => '2703','name' => 'Kleppe'),\n \t array('id' => '31225','state_id' => '2703','name' => 'Sandnes'),\n \t array('id' => '31226','state_id' => '2703','name' => 'Sola'),\n \t array('id' => '31227','state_id' => '2703','name' => 'Stavanger'),\n \t array('id' => '31228','state_id' => '2706','name' => 'Stavern'),\n \t array('id' => '31229','state_id' => '2707','name' => 'Sykkylven'),\n \t array('id' => '31230','state_id' => '2708','name' => 'Notodden'),\n \t array('id' => '31231','state_id' => '2708','name' => 'Skien'),\n \t array('id' => '31232','state_id' => '2709','name' => 'Harstad'),\n \t array('id' => '31233','state_id' => '2709','name' => 'Troms'),\n \t array('id' => '31234','state_id' => '2709','name' => 'Tromsø'),\n \t array('id' => '31235','state_id' => '2711','name' => 'Horten'),\n \t array('id' => '31236','state_id' => '2711','name' => 'Husøysund'),\n \t array('id' => '31237','state_id' => '2711','name' => 'Larvik'),\n \t array('id' => '31238','state_id' => '2711','name' => 'Rygge'),\n \t array('id' => '31239','state_id' => '2711','name' => 'Sandefjord'),\n \t array('id' => '31240','state_id' => '2711','name' => 'Tønsberg'),\n \t array('id' => '31241','state_id' => '2714','name' => 'Salalah'),\n \t array('id' => '31242','state_id' => '2715','name' => 'Azaiba'),\n \t array('id' => '31243','state_id' => '2715','name' => 'Bawshar'),\n \t array('id' => '31244','state_id' => '2715','name' => 'Madinat Qabus'),\n \t array('id' => '31245','state_id' => '2715','name' => 'Masqat'),\n \t array('id' => '31246','state_id' => '2715','name' => 'Matrah'),\n \t array('id' => '31247','state_id' => '2715','name' => 'Muscat'),\n \t array('id' => '31248','state_id' => '2715','name' => 'Muttrah'),\n \t array('id' => '31249','state_id' => '2715','name' => 'Qurayyat'),\n \t array('id' => '31250','state_id' => '2715','name' => 'Qurm'),\n \t array('id' => '31251','state_id' => '2715','name' => 'Ruwi'),\n \t array('id' => '31252','state_id' => '2715','name' => 'Wadi Al Kabir'),\n \t array('id' => '31253','state_id' => '2715','name' => 'as-Sib'),\n \t array('id' => '31254','state_id' => '2716','name' => 'Khasab'),\n \t array('id' => '31255','state_id' => '2717','name' => 'Rusayl'),\n \t array('id' => '31256','state_id' => '2719','name' => 'Bahla\\''),\n \t array('id' => '31257','state_id' => '2719','name' => 'Nizwa'),\n \t array('id' => '31258','state_id' => '2719','name' => 'Sumayl'),\n \t array('id' => '31259','state_id' => '2720','name' => '\\'Ibri'),\n \t array('id' => '31260','state_id' => '2720','name' => 'al-Buraymi'),\n \t array('id' => '31261','state_id' => '2721','name' => 'Al khuwair'),\n \t array('id' => '31262','state_id' => '2721','name' => 'Barkah'),\n \t array('id' => '31263','state_id' => '2721','name' => 'Saham'),\n \t array('id' => '31264','state_id' => '2721','name' => 'Shinas'),\n \t array('id' => '31265','state_id' => '2721','name' => 'Suhar'),\n \t array('id' => '31266','state_id' => '2721','name' => 'al-Khaburah'),\n \t array('id' => '31267','state_id' => '2721','name' => 'al-Masna\\'ah'),\n \t array('id' => '31268','state_id' => '2721','name' => 'ar-Rustaq'),\n \t array('id' => '31269','state_id' => '2721','name' => 'as-Suwayq'),\n \t array('id' => '31270','state_id' => '2722','name' => 'Ibra'),\n \t array('id' => '31271','state_id' => '2722','name' => 'Sur'),\n \t array('id' => '31272','state_id' => '2722','name' => 'al-Mudaybi'),\n \t array('id' => '31273','state_id' => '2723','name' => 'Barkhan'),\n \t array('id' => '31274','state_id' => '2723','name' => 'Bela'),\n \t array('id' => '31275','state_id' => '2723','name' => 'Bhag'),\n \t array('id' => '31276','state_id' => '2723','name' => 'Chaman'),\n \t array('id' => '31277','state_id' => '2723','name' => 'Chitkan'),\n \t array('id' => '31278','state_id' => '2723','name' => 'Dalbandin'),\n \t array('id' => '31279','state_id' => '2723','name' => 'Dera Allah Yar'),\n \t array('id' => '31280','state_id' => '2723','name' => 'Dera Bugti'),\n \t array('id' => '31281','state_id' => '2723','name' => 'Dera Murad Jamali'),\n \t array('id' => '31282','state_id' => '2723','name' => 'Dhadar'),\n \t array('id' => '31283','state_id' => '2723','name' => 'Duki'),\n \t array('id' => '31284','state_id' => '2723','name' => 'Gaddani'),\n \t array('id' => '31285','state_id' => '2723','name' => 'Gwadar'),\n \t array('id' => '31286','state_id' => '2723','name' => 'Harnai'),\n \t array('id' => '31287','state_id' => '2723','name' => 'Hub'),\n \t array('id' => '31288','state_id' => '2723','name' => 'Jiwani'),\n \t array('id' => '31289','state_id' => '2723','name' => 'Kalat'),\n \t array('id' => '31290','state_id' => '2723','name' => 'Kharan'),\n \t array('id' => '31291','state_id' => '2723','name' => 'Khuzdar'),\n \t array('id' => '31292','state_id' => '2723','name' => 'Kohlu'),\n \t array('id' => '31293','state_id' => '2723','name' => 'Loralai'),\n \t array('id' => '31294','state_id' => '2723','name' => 'Mach'),\n \t array('id' => '31295','state_id' => '2723','name' => 'Mastung'),\n \t array('id' => '31296','state_id' => '2723','name' => 'Nushki'),\n \t array('id' => '31297','state_id' => '2723','name' => 'Ormara'),\n \t array('id' => '31298','state_id' => '2723','name' => 'Pasni'),\n \t array('id' => '31299','state_id' => '2723','name' => 'Pishin'),\n \t array('id' => '31300','state_id' => '2723','name' => 'Quetta'),\n \t array('id' => '31301','state_id' => '2723','name' => 'Sibi'),\n \t array('id' => '31302','state_id' => '2723','name' => 'Sohbatpur'),\n \t array('id' => '31303','state_id' => '2723','name' => 'Surab'),\n \t array('id' => '31304','state_id' => '2723','name' => 'Turbat'),\n \t array('id' => '31305','state_id' => '2723','name' => 'Usta Muhammad'),\n \t array('id' => '31306','state_id' => '2723','name' => 'Uthal'),\n \t array('id' => '31307','state_id' => '2723','name' => 'Wadh'),\n \t array('id' => '31308','state_id' => '2723','name' => 'Winder'),\n \t array('id' => '31309','state_id' => '2723','name' => 'Zehri'),\n \t array('id' => '31310','state_id' => '2723','name' => 'Zhob'),\n \t array('id' => '31311','state_id' => '2723','name' => 'Ziarat'),\n \t array('id' => '31312','state_id' => '2728','name' => '\\'Abdul Hakim'),\n \t array('id' => '31313','state_id' => '2728','name' => 'Ahmadpur East'),\n \t array('id' => '31314','state_id' => '2728','name' => 'Ahmadpur Lumma'),\n \t array('id' => '31315','state_id' => '2728','name' => 'Ahmadpur Sial'),\n \t array('id' => '31316','state_id' => '2728','name' => 'Ahmedabad'),\n \t array('id' => '31317','state_id' => '2728','name' => 'Alipur'),\n \t array('id' => '31318','state_id' => '2728','name' => 'Alipur Chatha'),\n \t array('id' => '31319','state_id' => '2728','name' => 'Arifwala'),\n \t array('id' => '31320','state_id' => '2728','name' => 'Attock'),\n \t array('id' => '31321','state_id' => '2728','name' => 'Baddomalhi'),\n \t array('id' => '31322','state_id' => '2728','name' => 'Bagh'),\n \t array('id' => '31323','state_id' => '2728','name' => 'Bahawalnagar'),\n \t array('id' => '31324','state_id' => '2728','name' => 'Bahawalpur'),\n \t array('id' => '31325','state_id' => '2728','name' => 'Bai Pheru'),\n \t array('id' => '31326','state_id' => '2728','name' => 'Basirpur'),\n \t array('id' => '31327','state_id' => '2728','name' => 'Begowala'),\n \t array('id' => '31328','state_id' => '2728','name' => 'Bhakkar'),\n \t array('id' => '31329','state_id' => '2728','name' => 'Bhalwal'),\n \t array('id' => '31330','state_id' => '2728','name' => 'Bhawana'),\n \t array('id' => '31331','state_id' => '2728','name' => 'Bhera'),\n \t array('id' => '31332','state_id' => '2728','name' => 'Bhopalwala'),\n \t array('id' => '31333','state_id' => '2728','name' => 'Burewala'),\n \t array('id' => '31334','state_id' => '2728','name' => 'Chak Azam Sahu'),\n \t array('id' => '31335','state_id' => '2728','name' => 'Chak Jhumra'),\n \t array('id' => '31336','state_id' => '2728','name' => 'Chak Sarwar Shahid'),\n \t array('id' => '31337','state_id' => '2728','name' => 'Chakwal'),\n \t array('id' => '31338','state_id' => '2728','name' => 'Chawinda'),\n \t array('id' => '31339','state_id' => '2728','name' => 'Chichawatni'),\n \t array('id' => '31340','state_id' => '2728','name' => 'Chiniot'),\n \t array('id' => '31341','state_id' => '2728','name' => 'Chishtian Mandi'),\n \t array('id' => '31342','state_id' => '2728','name' => 'Choa Saidan Shah'),\n \t array('id' => '31343','state_id' => '2728','name' => 'Chuhar Kana'),\n \t array('id' => '31344','state_id' => '2728','name' => 'Chunian'),\n \t array('id' => '31345','state_id' => '2728','name' => 'Dajal'),\n \t array('id' => '31346','state_id' => '2728','name' => 'Darya Khan'),\n \t array('id' => '31347','state_id' => '2728','name' => 'Daska'),\n \t array('id' => '31348','state_id' => '2728','name' => 'Daud Khel'),\n \t array('id' => '31349','state_id' => '2728','name' => 'Daultala'),\n \t array('id' => '31350','state_id' => '2728','name' => 'Dera Din Panah'),\n \t array('id' => '31351','state_id' => '2728','name' => 'Dera Ghazi Khan'),\n \t array('id' => '31352','state_id' => '2728','name' => 'Dhanote'),\n \t array('id' => '31353','state_id' => '2728','name' => 'Dhonkal'),\n \t array('id' => '31354','state_id' => '2728','name' => 'Dijkot'),\n \t array('id' => '31355','state_id' => '2728','name' => 'Dina'),\n \t array('id' => '31356','state_id' => '2728','name' => 'Dinga'),\n \t array('id' => '31357','state_id' => '2728','name' => 'Dipalpur'),\n \t array('id' => '31358','state_id' => '2728','name' => 'Dullewala'),\n \t array('id' => '31359','state_id' => '2728','name' => 'Dunga Bunga'),\n \t array('id' => '31360','state_id' => '2728','name' => 'Dunyapur'),\n \t array('id' => '31361','state_id' => '2728','name' => 'Eminabad'),\n \t array('id' => '31362','state_id' => '2728','name' => 'Faisalabad'),\n \t array('id' => '31363','state_id' => '2728','name' => 'Faqirwali'),\n \t array('id' => '31364','state_id' => '2728','name' => 'Faruka'),\n \t array('id' => '31365','state_id' => '2728','name' => 'Fateh Jang'),\n \t array('id' => '31366','state_id' => '2728','name' => 'Fatehpur'),\n \t array('id' => '31367','state_id' => '2728','name' => 'Fazalpur'),\n \t array('id' => '31368','state_id' => '2728','name' => 'Ferozwala'),\n \t array('id' => '31369','state_id' => '2728','name' => 'Fort Abbas'),\n \t array('id' => '31370','state_id' => '2728','name' => 'Garh Maharaja'),\n \t array('id' => '31371','state_id' => '2728','name' => 'Ghakar'),\n \t array('id' => '31372','state_id' => '2728','name' => 'Ghurgushti'),\n \t array('id' => '31373','state_id' => '2728','name' => 'Gojra'),\n \t array('id' => '31374','state_id' => '2728','name' => 'Gujar Khan'),\n \t array('id' => '31375','state_id' => '2728','name' => 'Gujranwala'),\n \t array('id' => '31376','state_id' => '2728','name' => 'Gujrat'),\n \t array('id' => '31377','state_id' => '2728','name' => 'Hadali'),\n \t array('id' => '31378','state_id' => '2728','name' => 'Hafizabad'),\n \t array('id' => '31379','state_id' => '2728','name' => 'Harnoli'),\n \t array('id' => '31380','state_id' => '2728','name' => 'Harunabad'),\n \t array('id' => '31381','state_id' => '2728','name' => 'Hasan Abdal'),\n \t array('id' => '31382','state_id' => '2728','name' => 'Hasilpur'),\n \t array('id' => '31383','state_id' => '2728','name' => 'Haveli'),\n \t array('id' => '31384','state_id' => '2728','name' => 'Hazro'),\n \t array('id' => '31385','state_id' => '2728','name' => 'Hujra Shah Muqim'),\n \t array('id' => '31386','state_id' => '2728','name' => 'Isa Khel'),\n \t array('id' => '31387','state_id' => '2728','name' => 'Jahanian'),\n \t array('id' => '31388','state_id' => '2728','name' => 'Jalalpur Bhattian'),\n \t array('id' => '31389','state_id' => '2728','name' => 'Jalalpur Jattan'),\n \t array('id' => '31390','state_id' => '2728','name' => 'Jalalpur Pirwala'),\n \t array('id' => '31391','state_id' => '2728','name' => 'Jalla Jeem'),\n \t array('id' => '31392','state_id' => '2728','name' => 'Jamke Chima'),\n \t array('id' => '31393','state_id' => '2728','name' => 'Jampur'),\n \t array('id' => '31394','state_id' => '2728','name' => 'Jand'),\n \t array('id' => '31395','state_id' => '2728','name' => 'Jandanwala'),\n \t array('id' => '31396','state_id' => '2728','name' => 'Jandiala Sherkhan'),\n \t array('id' => '31397','state_id' => '2728','name' => 'Jaranwala'),\n \t array('id' => '31398','state_id' => '2728','name' => 'Jatoi'),\n \t array('id' => '31399','state_id' => '2728','name' => 'Jauharabad'),\n \t array('id' => '31400','state_id' => '2728','name' => 'Jhang'),\n \t array('id' => '31401','state_id' => '2728','name' => 'Jhawarian'),\n \t array('id' => '31402','state_id' => '2728','name' => 'Jhelum'),\n \t array('id' => '31403','state_id' => '2728','name' => 'Kabirwala'),\n \t array('id' => '31404','state_id' => '2728','name' => 'Kahna Nau'),\n \t array('id' => '31405','state_id' => '2728','name' => 'Kahror Pakka'),\n \t array('id' => '31406','state_id' => '2728','name' => 'Kahuta'),\n \t array('id' => '31407','state_id' => '2728','name' => 'Kalabagh'),\n \t array('id' => '31408','state_id' => '2728','name' => 'Kalaswala'),\n \t array('id' => '31409','state_id' => '2728','name' => 'Kaleke'),\n \t array('id' => '31410','state_id' => '2728','name' => 'Kalur Kot'),\n \t array('id' => '31411','state_id' => '2728','name' => 'Kamalia'),\n \t array('id' => '31412','state_id' => '2728','name' => 'Kamar Mashani'),\n \t array('id' => '31413','state_id' => '2728','name' => 'Kamir'),\n \t array('id' => '31414','state_id' => '2728','name' => 'Kamoke'),\n \t array('id' => '31415','state_id' => '2728','name' => 'Kamra'),\n \t array('id' => '31416','state_id' => '2728','name' => 'Kanganpur'),\n \t array('id' => '31417','state_id' => '2728','name' => 'Karampur'),\n \t array('id' => '31418','state_id' => '2728','name' => 'Karor Lal Esan'),\n \t array('id' => '31419','state_id' => '2728','name' => 'Kasur'),\n \t array('id' => '31420','state_id' => '2728','name' => 'Khairpur Tamewali'),\n \t array('id' => '31421','state_id' => '2728','name' => 'Khanewal'),\n \t array('id' => '31422','state_id' => '2728','name' => 'Khangah Dogran'),\n \t array('id' => '31423','state_id' => '2728','name' => 'Khangarh'),\n \t array('id' => '31424','state_id' => '2728','name' => 'Khanpur'),\n \t array('id' => '31425','state_id' => '2728','name' => 'Kharian'),\n \t array('id' => '31426','state_id' => '2728','name' => 'Khewra'),\n \t array('id' => '31427','state_id' => '2728','name' => 'Khundian'),\n \t array('id' => '31428','state_id' => '2728','name' => 'Khurianwala'),\n \t array('id' => '31429','state_id' => '2728','name' => 'Khushab'),\n \t array('id' => '31430','state_id' => '2728','name' => 'Kot Abdul Malik'),\n \t array('id' => '31431','state_id' => '2728','name' => 'Kot Addu'),\n \t array('id' => '31432','state_id' => '2728','name' => 'Kot Mithan'),\n \t array('id' => '31433','state_id' => '2728','name' => 'Kot Moman'),\n \t array('id' => '31434','state_id' => '2728','name' => 'Kot Radha Kishan'),\n \t array('id' => '31435','state_id' => '2728','name' => 'Kot Samaba'),\n \t array('id' => '31436','state_id' => '2728','name' => 'Kotli Loharan'),\n \t array('id' => '31437','state_id' => '2728','name' => 'Kundian'),\n \t array('id' => '31438','state_id' => '2728','name' => 'Kunjah'),\n \t array('id' => '31439','state_id' => '2728','name' => 'Lahore'),\n \t array('id' => '31440','state_id' => '2728','name' => 'Lalamusa'),\n \t array('id' => '31441','state_id' => '2728','name' => 'Lalian'),\n \t array('id' => '31442','state_id' => '2728','name' => 'Liaqatabad'),\n \t array('id' => '31443','state_id' => '2728','name' => 'Liaqatpur'),\n \t array('id' => '31444','state_id' => '2728','name' => 'Lieah'),\n \t array('id' => '31445','state_id' => '2728','name' => 'Liliani'),\n \t array('id' => '31446','state_id' => '2728','name' => 'Lodhran'),\n \t array('id' => '31447','state_id' => '2728','name' => 'Ludhewala Waraich'),\n \t array('id' => '31448','state_id' => '2728','name' => 'Mailsi'),\n \t array('id' => '31449','state_id' => '2728','name' => 'Makhdumpur'),\n \t array('id' => '31450','state_id' => '2728','name' => 'Makhdumpur Rashid'),\n \t array('id' => '31451','state_id' => '2728','name' => 'Malakwal'),\n \t array('id' => '31452','state_id' => '2728','name' => 'Mamu Kanjan'),\n \t array('id' => '31453','state_id' => '2728','name' => 'Mananwala Jodh Singh'),\n \t array('id' => '31454','state_id' => '2728','name' => 'Mandi Bahauddin'),\n \t array('id' => '31455','state_id' => '2728','name' => 'Mandi Sadiq Ganj'),\n \t array('id' => '31456','state_id' => '2728','name' => 'Mangat'),\n \t array('id' => '31457','state_id' => '2728','name' => 'Mangla'),\n \t array('id' => '31458','state_id' => '2728','name' => 'Mankera'),\n \t array('id' => '31459','state_id' => '2728','name' => 'Mian Channun'),\n \t array('id' => '31460','state_id' => '2728','name' => 'Miani'),\n \t array('id' => '31461','state_id' => '2728','name' => 'Mianwali'),\n \t array('id' => '31462','state_id' => '2728','name' => 'Minchinabad'),\n \t array('id' => '31463','state_id' => '2728','name' => 'Mitha Tiwana'),\n \t array('id' => '31464','state_id' => '2728','name' => 'Multan'),\n \t array('id' => '31465','state_id' => '2728','name' => 'Muridke'),\n \t array('id' => '31466','state_id' => '2728','name' => 'Murree'),\n \t array('id' => '31467','state_id' => '2728','name' => 'Mustafabad'),\n \t array('id' => '31468','state_id' => '2728','name' => 'Muzaffargarh'),\n \t array('id' => '31469','state_id' => '2728','name' => 'Nankana Sahib'),\n \t array('id' => '31470','state_id' => '2728','name' => 'Narang'),\n \t array('id' => '31471','state_id' => '2728','name' => 'Narowal'),\n \t array('id' => '31472','state_id' => '2728','name' => 'Noorpur Thal'),\n \t array('id' => '31473','state_id' => '2728','name' => 'Nowshera'),\n \t array('id' => '31474','state_id' => '2728','name' => 'Nowshera Virkan'),\n \t array('id' => '31475','state_id' => '2728','name' => 'Okara'),\n \t array('id' => '31476','state_id' => '2728','name' => 'Pakpattan'),\n \t array('id' => '31477','state_id' => '2728','name' => 'Pasrur'),\n \t array('id' => '31478','state_id' => '2728','name' => 'Pattoki'),\n \t array('id' => '31479','state_id' => '2728','name' => 'Phalia'),\n \t array('id' => '31480','state_id' => '2728','name' => 'Phularwan'),\n \t array('id' => '31481','state_id' => '2728','name' => 'Pind Dadan Khan'),\n \t array('id' => '31482','state_id' => '2728','name' => 'Pindi Bhattian'),\n \t array('id' => '31483','state_id' => '2728','name' => 'Pindi Gheb'),\n \t array('id' => '31484','state_id' => '2728','name' => 'Pirmahal'),\n \t array('id' => '31485','state_id' => '2728','name' => 'Qadirabad'),\n \t array('id' => '31486','state_id' => '2728','name' => 'Qadirpur Ran'),\n \t array('id' => '31487','state_id' => '2728','name' => 'Qila Disar Singh'),\n \t array('id' => '31488','state_id' => '2728','name' => 'Qila Sobha Singh'),\n \t array('id' => '31489','state_id' => '2728','name' => 'Quaidabad'),\n \t array('id' => '31490','state_id' => '2728','name' => 'Rabwah'),\n \t array('id' => '31491','state_id' => '2728','name' => 'Rahim Yar Khan'),\n \t array('id' => '31492','state_id' => '2728','name' => 'Raiwind'),\n \t array('id' => '31493','state_id' => '2728','name' => 'Raja Jang'),\n \t array('id' => '31494','state_id' => '2728','name' => 'Rajanpur'),\n \t array('id' => '31495','state_id' => '2728','name' => 'Rasulnagar'),\n \t array('id' => '31496','state_id' => '2728','name' => 'Rawalpindi'),\n \t array('id' => '31497','state_id' => '2728','name' => 'Renala Khurd'),\n \t array('id' => '31498','state_id' => '2728','name' => 'Rojhan'),\n \t array('id' => '31499','state_id' => '2728','name' => 'Saddar Gogera'),\n \t array('id' => '31500','state_id' => '2728','name' => 'Sadiqabad'),\n \t array('id' => '31501','state_id' => '2728','name' => 'Safdarabad'),\n \t array('id' => '31502','state_id' => '2728','name' => 'Sahiwal'),\n \t array('id' => '31503','state_id' => '2728','name' => 'Samasatta'),\n \t array('id' => '31504','state_id' => '2728','name' => 'Sambrial'),\n \t array('id' => '31505','state_id' => '2728','name' => 'Sammundri'),\n \t array('id' => '31506','state_id' => '2728','name' => 'Sangala Hill'),\n \t array('id' => '31507','state_id' => '2728','name' => 'Sanjwal'),\n \t array('id' => '31508','state_id' => '2728','name' => 'Sarai Alamgir'),\n \t array('id' => '31509','state_id' => '2728','name' => 'Sarai Sidhu'),\n \t array('id' => '31510','state_id' => '2728','name' => 'Sargodha'),\n \t array('id' => '31511','state_id' => '2728','name' => 'Shadiwal'),\n \t array('id' => '31512','state_id' => '2728','name' => 'Shahkot'),\n \t array('id' => '31513','state_id' => '2728','name' => 'Shahpur City'),\n \t array('id' => '31514','state_id' => '2728','name' => 'Shahpur Saddar'),\n \t array('id' => '31515','state_id' => '2728','name' => 'Shakargarh'),\n \t array('id' => '31516','state_id' => '2728','name' => 'Sharqpur'),\n \t array('id' => '31517','state_id' => '2728','name' => 'Shehr Sultan'),\n \t array('id' => '31518','state_id' => '2728','name' => 'Shekhupura'),\n \t array('id' => '31519','state_id' => '2728','name' => 'Shujaabad'),\n \t array('id' => '31520','state_id' => '2728','name' => 'Sialkot'),\n \t array('id' => '31521','state_id' => '2728','name' => 'Sillanwali'),\n \t array('id' => '31522','state_id' => '2728','name' => 'Sodhra'),\n \t array('id' => '31523','state_id' => '2728','name' => 'Sohawa'),\n \t array('id' => '31524','state_id' => '2728','name' => 'Sukheke'),\n \t array('id' => '31525','state_id' => '2728','name' => 'Talagang'),\n \t array('id' => '31526','state_id' => '2728','name' => 'Tandlianwala'),\n \t array('id' => '31527','state_id' => '2728','name' => 'Taunsa'),\n \t array('id' => '31528','state_id' => '2728','name' => 'Taxila'),\n \t array('id' => '31529','state_id' => '2728','name' => 'Tibba Sultanpur'),\n \t array('id' => '31530','state_id' => '2728','name' => 'Toba Tek Singh'),\n \t array('id' => '31531','state_id' => '2728','name' => 'Tulamba'),\n \t array('id' => '31532','state_id' => '2728','name' => 'Uch'),\n \t array('id' => '31533','state_id' => '2728','name' => 'Vihari'),\n \t array('id' => '31534','state_id' => '2728','name' => 'Wah'),\n \t array('id' => '31535','state_id' => '2728','name' => 'Warburton'),\n \t array('id' => '31536','state_id' => '2728','name' => 'Wazirabad'),\n \t array('id' => '31537','state_id' => '2728','name' => 'Yazman'),\n \t array('id' => '31538','state_id' => '2728','name' => 'Zafarwal'),\n \t array('id' => '31539','state_id' => '2728','name' => 'Zahir Pir'),\n \t array('id' => '31540','state_id' => '2729','name' => 'Adilpur'),\n \t array('id' => '31541','state_id' => '2729','name' => 'Badah'),\n \t array('id' => '31542','state_id' => '2729','name' => 'Badin'),\n \t array('id' => '31543','state_id' => '2729','name' => 'Bagarji'),\n \t array('id' => '31544','state_id' => '2729','name' => 'Bakshshapur'),\n \t array('id' => '31545','state_id' => '2729','name' => 'Bandhi'),\n \t array('id' => '31546','state_id' => '2729','name' => 'Berani'),\n \t array('id' => '31547','state_id' => '2729','name' => 'Bhan'),\n \t array('id' => '31548','state_id' => '2729','name' => 'Bhiria City'),\n \t array('id' => '31549','state_id' => '2729','name' => 'Bhiria Road'),\n \t array('id' => '31550','state_id' => '2729','name' => 'Bhit Shah'),\n \t array('id' => '31551','state_id' => '2729','name' => 'Bozdar'),\n \t array('id' => '31552','state_id' => '2729','name' => 'Bulri'),\n \t array('id' => '31553','state_id' => '2729','name' => 'Chak'),\n \t array('id' => '31554','state_id' => '2729','name' => 'Chambar'),\n \t array('id' => '31555','state_id' => '2729','name' => 'Chohar Jamali'),\n \t array('id' => '31556','state_id' => '2729','name' => 'Chor'),\n \t array('id' => '31557','state_id' => '2729','name' => 'Dadu'),\n \t array('id' => '31558','state_id' => '2729','name' => 'Daharki'),\n \t array('id' => '31559','state_id' => '2729','name' => 'Daro'),\n \t array('id' => '31560','state_id' => '2729','name' => 'Darya Khan Mari'),\n \t array('id' => '31561','state_id' => '2729','name' => 'Daulatpur'),\n \t array('id' => '31562','state_id' => '2729','name' => 'Daur'),\n \t array('id' => '31563','state_id' => '2729','name' => 'Dhoronaro'),\n \t array('id' => '31564','state_id' => '2729','name' => 'Digri'),\n \t array('id' => '31565','state_id' => '2729','name' => 'Diplo'),\n \t array('id' => '31566','state_id' => '2729','name' => 'Dokri'),\n \t array('id' => '31567','state_id' => '2729','name' => 'Faqirabad'),\n \t array('id' => '31568','state_id' => '2729','name' => 'Gambat'),\n \t array('id' => '31569','state_id' => '2729','name' => 'Garello'),\n \t array('id' => '31570','state_id' => '2729','name' => 'Garhi Khairo'),\n \t array('id' => '31571','state_id' => '2729','name' => 'Garhi Yasin'),\n \t array('id' => '31572','state_id' => '2729','name' => 'Gharo'),\n \t array('id' => '31573','state_id' => '2729','name' => 'Ghauspur'),\n \t array('id' => '31574','state_id' => '2729','name' => 'Ghotki'),\n \t array('id' => '31575','state_id' => '2729','name' => 'Golarchi'),\n \t array('id' => '31576','state_id' => '2729','name' => 'Guddu'),\n \t array('id' => '31577','state_id' => '2729','name' => 'Gulistan-E-Jauhar'),\n \t array('id' => '31578','state_id' => '2729','name' => 'Hala'),\n \t array('id' => '31579','state_id' => '2729','name' => 'Hingorja'),\n \t array('id' => '31580','state_id' => '2729','name' => 'Hyderabad'),\n \t array('id' => '31581','state_id' => '2729','name' => 'Islamkot'),\n \t array('id' => '31582','state_id' => '2729','name' => 'Jacobabad'),\n \t array('id' => '31583','state_id' => '2729','name' => 'Jam Nawaz Ali'),\n \t array('id' => '31584','state_id' => '2729','name' => 'Jam Sahib'),\n \t array('id' => '31585','state_id' => '2729','name' => 'Jati'),\n \t array('id' => '31586','state_id' => '2729','name' => 'Jhol'),\n \t array('id' => '31587','state_id' => '2729','name' => 'Jhudo'),\n \t array('id' => '31588','state_id' => '2729','name' => 'Johi'),\n \t array('id' => '31589','state_id' => '2729','name' => 'Kadhan'),\n \t array('id' => '31590','state_id' => '2729','name' => 'Kambar'),\n \t array('id' => '31591','state_id' => '2729','name' => 'Kandhra'),\n \t array('id' => '31592','state_id' => '2729','name' => 'Kandiari'),\n \t array('id' => '31593','state_id' => '2729','name' => 'Kandiaro'),\n \t array('id' => '31594','state_id' => '2729','name' => 'Karachi'),\n \t array('id' => '31595','state_id' => '2729','name' => 'Karampur'),\n \t array('id' => '31596','state_id' => '2729','name' => 'Kario Ghanwar'),\n \t array('id' => '31597','state_id' => '2729','name' => 'Karoondi'),\n \t array('id' => '31598','state_id' => '2729','name' => 'Kashmor'),\n \t array('id' => '31599','state_id' => '2729','name' => 'Kazi Ahmad'),\n \t array('id' => '31600','state_id' => '2729','name' => 'Keti Bandar'),\n \t array('id' => '31601','state_id' => '2729','name' => 'Khadro'),\n \t array('id' => '31602','state_id' => '2729','name' => 'Khairpur'),\n \t array('id' => '31603','state_id' => '2729','name' => 'Khairpur Nathan Shah'),\n \t array('id' => '31604','state_id' => '2729','name' => 'Khandh Kot'),\n \t array('id' => '31605','state_id' => '2729','name' => 'Khanpur'),\n \t array('id' => '31606','state_id' => '2729','name' => 'Khipro'),\n \t array('id' => '31607','state_id' => '2729','name' => 'Khoski'),\n \t array('id' => '31608','state_id' => '2729','name' => 'Khuhra'),\n \t array('id' => '31609','state_id' => '2729','name' => 'Khyber'),\n \t array('id' => '31610','state_id' => '2729','name' => 'Kot Diji'),\n \t array('id' => '31611','state_id' => '2729','name' => 'Kot Ghulam Mohammad'),\n \t array('id' => '31612','state_id' => '2729','name' => 'Kotri'),\n \t array('id' => '31613','state_id' => '2729','name' => 'Kumb'),\n \t array('id' => '31614','state_id' => '2729','name' => 'Kunri'),\n \t array('id' => '31615','state_id' => '2729','name' => 'Lakhi'),\n \t array('id' => '31616','state_id' => '2729','name' => 'Larkana'),\n \t array('id' => '31617','state_id' => '2729','name' => 'Madeji'),\n \t array('id' => '31618','state_id' => '2729','name' => 'Matiari'),\n \t array('id' => '31619','state_id' => '2729','name' => 'Matli'),\n \t array('id' => '31620','state_id' => '2729','name' => 'Mehar'),\n \t array('id' => '31621','state_id' => '2729','name' => 'Mehrabpur'),\n \t array('id' => '31622','state_id' => '2729','name' => 'Miro Khan'),\n \t array('id' => '31623','state_id' => '2729','name' => 'Mirpur Bathoro'),\n \t array('id' => '31624','state_id' => '2729','name' => 'Mirpur Khas'),\n \t array('id' => '31625','state_id' => '2729','name' => 'Mirpur Mathelo'),\n \t array('id' => '31626','state_id' => '2729','name' => 'Mirpur Sakro'),\n \t array('id' => '31627','state_id' => '2729','name' => 'Mirwah'),\n \t array('id' => '31628','state_id' => '2729','name' => 'Mithi'),\n \t array('id' => '31629','state_id' => '2729','name' => 'Moro'),\n \t array('id' => '31630','state_id' => '2729','name' => 'Nabisar'),\n \t array('id' => '31631','state_id' => '2729','name' => 'Nasarpur'),\n \t array('id' => '31632','state_id' => '2729','name' => 'Nasirabad'),\n \t array('id' => '31633','state_id' => '2729','name' => 'Naudero'),\n \t array('id' => '31634','state_id' => '2729','name' => 'Naukot'),\n \t array('id' => '31635','state_id' => '2729','name' => 'Naushahro Firoz'),\n \t array('id' => '31636','state_id' => '2729','name' => 'Nawabshah'),\n \t array('id' => '31637','state_id' => '2729','name' => 'Oderolal Station'),\n \t array('id' => '31638','state_id' => '2729','name' => 'Pacca Chang'),\n \t array('id' => '31639','state_id' => '2729','name' => 'Padidan'),\n \t array('id' => '31640','state_id' => '2729','name' => 'Pano Aqil'),\n \t array('id' => '31641','state_id' => '2729','name' => 'Perumal'),\n \t array('id' => '31642','state_id' => '2729','name' => 'Phulji'),\n \t array('id' => '31643','state_id' => '2729','name' => 'Pirjo Goth'),\n \t array('id' => '31644','state_id' => '2729','name' => 'Piryaloi'),\n \t array('id' => '31645','state_id' => '2729','name' => 'Pithoro'),\n \t array('id' => '31646','state_id' => '2729','name' => 'Radhan'),\n \t array('id' => '31647','state_id' => '2729','name' => 'Rajo Khanani'),\n \t array('id' => '31648','state_id' => '2729','name' => 'Ranipur'),\n \t array('id' => '31649','state_id' => '2729','name' => 'Ratodero'),\n \t array('id' => '31650','state_id' => '2729','name' => 'Rohri'),\n \t array('id' => '31651','state_id' => '2729','name' => 'Rustam'),\n \t array('id' => '31652','state_id' => '2729','name' => 'Saeedabad'),\n \t array('id' => '31653','state_id' => '2729','name' => 'Sakrand'),\n \t array('id' => '31654','state_id' => '2729','name' => 'Samaro'),\n \t array('id' => '31655','state_id' => '2729','name' => 'Sanghar'),\n \t array('id' => '31656','state_id' => '2729','name' => 'Sann'),\n \t array('id' => '31657','state_id' => '2729','name' => 'Sarhari'),\n \t array('id' => '31658','state_id' => '2729','name' => 'Sehwan'),\n \t array('id' => '31659','state_id' => '2729','name' => 'Setharja'),\n \t array('id' => '31660','state_id' => '2729','name' => 'Shah Dipalli'),\n \t array('id' => '31661','state_id' => '2729','name' => 'Shahdadkot'),\n \t array('id' => '31662','state_id' => '2729','name' => 'Shahdadpur'),\n \t array('id' => '31663','state_id' => '2729','name' => 'Shahpur Chakar'),\n \t array('id' => '31664','state_id' => '2729','name' => 'Shahpur Jahania'),\n \t array('id' => '31665','state_id' => '2729','name' => 'Shikarpur'),\n \t array('id' => '31666','state_id' => '2729','name' => 'Sinjhoro'),\n \t array('id' => '31667','state_id' => '2729','name' => 'Sita Road'),\n \t array('id' => '31668','state_id' => '2729','name' => 'Sobhodero'),\n \t array('id' => '31669','state_id' => '2729','name' => 'Sujawal'),\n \t array('id' => '31670','state_id' => '2729','name' => 'Sukkur'),\n \t array('id' => '31671','state_id' => '2729','name' => 'Talhar'),\n \t array('id' => '31672','state_id' => '2729','name' => 'Tando Adam'),\n \t array('id' => '31673','state_id' => '2729','name' => 'Tando Allah Yar'),\n \t array('id' => '31674','state_id' => '2729','name' => 'Tando Bagho'),\n \t array('id' => '31675','state_id' => '2729','name' => 'Tando Ghulam Ali'),\n \t array('id' => '31676','state_id' => '2729','name' => 'Tando Jam'),\n \t array('id' => '31677','state_id' => '2729','name' => 'Tando Jan Mohammad'),\n \t array('id' => '31678','state_id' => '2729','name' => 'Tando Mitha Khan'),\n \t array('id' => '31679','state_id' => '2729','name' => 'Tando Muhammad Khan'),\n \t array('id' => '31680','state_id' => '2729','name' => 'Tangwani'),\n \t array('id' => '31681','state_id' => '2729','name' => 'Thano Bula Khan'),\n \t array('id' => '31682','state_id' => '2729','name' => 'Thari Mirwah'),\n \t array('id' => '31683','state_id' => '2729','name' => 'Tharushah'),\n \t array('id' => '31684','state_id' => '2729','name' => 'Thatta'),\n \t array('id' => '31685','state_id' => '2729','name' => 'Ther I'),\n \t array('id' => '31686','state_id' => '2729','name' => 'Ther I Mohabat'),\n \t array('id' => '31687','state_id' => '2729','name' => 'Thul'),\n \t array('id' => '31688','state_id' => '2729','name' => 'Ubauro'),\n \t array('id' => '31689','state_id' => '2729','name' => 'Umarkot'),\n \t array('id' => '31690','state_id' => '2729','name' => 'Warah'),\n \t array('id' => '31691','state_id' => '2730','name' => 'Ulimang'),\n \t array('id' => '31692','state_id' => '2731','name' => 'Airai'),\n \t array('id' => '31693','state_id' => '2732','name' => 'Ngaramash'),\n \t array('id' => '31694','state_id' => '2733','name' => 'Hatohobei'),\n \t array('id' => '31695','state_id' => '2734','name' => 'Kayangel'),\n \t array('id' => '31696','state_id' => '2735','name' => 'Koror'),\n \t array('id' => '31697','state_id' => '2735','name' => 'Meyungs'),\n \t array('id' => '31698','state_id' => '2736','name' => 'Melekeok'),\n \t array('id' => '31699','state_id' => '2737','name' => 'Ngermechau'),\n \t array('id' => '31700','state_id' => '2738','name' => 'Chol'),\n \t array('id' => '31701','state_id' => '2739','name' => 'Ollei'),\n \t array('id' => '31702','state_id' => '2740','name' => 'Oikul'),\n \t array('id' => '31703','state_id' => '2741','name' => 'Ngerkeai'),\n \t array('id' => '31704','state_id' => '2742','name' => 'Imeong'),\n \t array('id' => '31705','state_id' => '2743','name' => 'Ngetkip'),\n \t array('id' => '31706','state_id' => '2744','name' => 'Kloulklubed'),\n \t array('id' => '31707','state_id' => '2745','name' => 'Dongosaru'),\n \t array('id' => '31708','state_id' => '2746','name' => 'Ariha'),\n \t array('id' => '31709','state_id' => '2748','name' => 'Beit Jala'),\n \t array('id' => '31710','state_id' => '2749','name' => 'Dayr-al-Balah'),\n \t array('id' => '31711','state_id' => '2749','name' => 'al-Burayj'),\n \t array('id' => '31712','state_id' => '2749','name' => 'al-Insayrat'),\n \t array('id' => '31713','state_id' => '2749','name' => 'al-Maghazi'),\n \t array('id' => '31714','state_id' => '2750','name' => 'Ghazzah'),\n \t array('id' => '31715','state_id' => '2751','name' => 'Ghazzah'),\n \t array('id' => '31716','state_id' => '2752','name' => 'Janin'),\n \t array('id' => '31717','state_id' => '2752','name' => 'Qabatiyah'),\n \t array('id' => '31718','state_id' => '2754','name' => 'Nabulus'),\n \t array('id' => '31719','state_id' => '2755','name' => 'Qalqilyah'),\n \t array('id' => '31720','state_id' => '2756','name' => 'Rafah'),\n \t array('id' => '31721','state_id' => '2756','name' => 'Tall as-Sultan'),\n \t array('id' => '31722','state_id' => '2758','name' => 'Salfit'),\n \t array('id' => '31723','state_id' => '2759','name' => 'Tubas'),\n \t array('id' => '31724','state_id' => '2760','name' => 'Tulkarm'),\n \t array('id' => '31725','state_id' => '2761','name' => 'Dura'),\n \t array('id' => '31726','state_id' => '2761','name' => 'Halhul'),\n \t array('id' => '31727','state_id' => '2761','name' => 'Yattah'),\n \t array('id' => '31728','state_id' => '2761','name' => 'ad-Dahiriyah'),\n \t array('id' => '31729','state_id' => '2761','name' => 'al-Khalil'),\n \t array('id' => '31730','state_id' => '2762','name' => 'Ma\\'ale Adummim'),\n \t array('id' => '31731','state_id' => '2762','name' => 'al-Quds'),\n \t array('id' => '31732','state_id' => '2764','name' => 'Alanje'),\n \t array('id' => '31733','state_id' => '2764','name' => 'Bajo Boquete'),\n \t array('id' => '31734','state_id' => '2764','name' => 'Boqueron'),\n \t array('id' => '31735','state_id' => '2764','name' => 'Bugaba'),\n \t array('id' => '31736','state_id' => '2764','name' => 'David'),\n \t array('id' => '31737','state_id' => '2764','name' => 'Dolega'),\n \t array('id' => '31738','state_id' => '2764','name' => 'Gualaca'),\n \t array('id' => '31739','state_id' => '2764','name' => 'Horconcitos'),\n \t array('id' => '31740','state_id' => '2764','name' => 'Las Lajas'),\n \t array('id' => '31741','state_id' => '2764','name' => 'Puerto Armuelles'),\n \t array('id' => '31742','state_id' => '2764','name' => 'Remedios'),\n \t array('id' => '31743','state_id' => '2764','name' => 'Rio Sereno'),\n \t array('id' => '31744','state_id' => '2764','name' => 'Tole'),\n \t array('id' => '31745','state_id' => '2765','name' => 'Aguadulce'),\n \t array('id' => '31746','state_id' => '2765','name' => 'Anton'),\n \t array('id' => '31747','state_id' => '2765','name' => 'La Pintada'),\n \t array('id' => '31748','state_id' => '2765','name' => 'Nata'),\n \t array('id' => '31749','state_id' => '2765','name' => 'Ola'),\n \t array('id' => '31750','state_id' => '2765','name' => 'Penonome'),\n \t array('id' => '31751','state_id' => '2766','name' => 'Colon'),\n \t array('id' => '31752','state_id' => '2766','name' => 'Miguel de la Borda'),\n \t array('id' => '31753','state_id' => '2766','name' => 'Nuevo Chagres'),\n \t array('id' => '31754','state_id' => '2766','name' => 'Portobelo'),\n \t array('id' => '31755','state_id' => '2766','name' => 'Santa Isabel'),\n \t array('id' => '31756','state_id' => '2767','name' => 'El Real de Santa Maria'),\n \t array('id' => '31757','state_id' => '2767','name' => 'La Palma'),\n \t array('id' => '31758','state_id' => '2768','name' => 'Cirilo Guainora'),\n \t array('id' => '31759','state_id' => '2768','name' => 'Rio Sabalo'),\n \t array('id' => '31760','state_id' => '2769','name' => 'Chitre'),\n \t array('id' => '31761','state_id' => '2769','name' => 'Las Minas'),\n \t array('id' => '31762','state_id' => '2769','name' => 'Los Pozos'),\n \t array('id' => '31763','state_id' => '2769','name' => 'Ocu'),\n \t array('id' => '31764','state_id' => '2769','name' => 'Parita'),\n \t array('id' => '31765','state_id' => '2769','name' => 'Pese'),\n \t array('id' => '31766','state_id' => '2769','name' => 'Santa Maria'),\n \t array('id' => '31767','state_id' => '2773','name' => 'Arraijan'),\n \t array('id' => '31768','state_id' => '2773','name' => 'Capira'),\n \t array('id' => '31769','state_id' => '2773','name' => 'Chame'),\n \t array('id' => '31770','state_id' => '2773','name' => 'Chepo'),\n \t array('id' => '31771','state_id' => '2773','name' => 'Chiman'),\n \t array('id' => '31772','state_id' => '2773','name' => 'La Chorrera'),\n \t array('id' => '31773','state_id' => '2773','name' => 'Panama'),\n \t array('id' => '31774','state_id' => '2773','name' => 'San Carlos'),\n \t array('id' => '31775','state_id' => '2773','name' => 'San Miguel'),\n \t array('id' => '31776','state_id' => '2773','name' => 'San Miguelito'),\n \t array('id' => '31777','state_id' => '2773','name' => 'Taboga'),\n \t array('id' => '31778','state_id' => '2774','name' => 'Atalaya'),\n \t array('id' => '31779','state_id' => '2774','name' => 'Calobre'),\n \t array('id' => '31780','state_id' => '2774','name' => 'Canazas'),\n \t array('id' => '31781','state_id' => '2774','name' => 'La Mesa'),\n \t array('id' => '31782','state_id' => '2774','name' => 'Las Palmas'),\n \t array('id' => '31783','state_id' => '2774','name' => 'Montijo'),\n \t array('id' => '31784','state_id' => '2774','name' => 'Rio de Jesus'),\n \t array('id' => '31785','state_id' => '2774','name' => 'San Francisco'),\n \t array('id' => '31786','state_id' => '2774','name' => 'Santa Fe'),\n \t array('id' => '31787','state_id' => '2774','name' => 'Santiago'),\n \t array('id' => '31788','state_id' => '2774','name' => 'Sona'),\n \t array('id' => '31789','state_id' => '2778','name' => 'Laiagam'),\n \t array('id' => '31790','state_id' => '2778','name' => 'Porgera'),\n \t array('id' => '31791','state_id' => '2778','name' => 'Wabag'),\n \t array('id' => '31792','state_id' => '2780','name' => 'Kerema'),\n \t array('id' => '31793','state_id' => '2781','name' => 'Finschhafen'),\n \t array('id' => '31794','state_id' => '2781','name' => 'Madang'),\n \t array('id' => '31795','state_id' => '2782','name' => 'Lorengau'),\n \t array('id' => '31796','state_id' => '2784','name' => 'Bulolo'),\n \t array('id' => '31797','state_id' => '2784','name' => 'Lae'),\n \t array('id' => '31798','state_id' => '2784','name' => 'Wau'),\n \t array('id' => '31799','state_id' => '2788','name' => 'Kokoda'),\n \t array('id' => '31800','state_id' => '2788','name' => 'Popondetta'),\n \t array('id' => '31801','state_id' => '2789','name' => 'Vanimo'),\n \t array('id' => '31802','state_id' => '2790','name' => 'Kundiawa'),\n \t array('id' => '31803','state_id' => '2796','name' => 'Bella Vista'),\n \t array('id' => '31804','state_id' => '2796','name' => 'Capitan Bado'),\n \t array('id' => '31805','state_id' => '2796','name' => 'Pedro Juan Caballero'),\n \t array('id' => '31806','state_id' => '2797','name' => 'Asuncion'),\n \t array('id' => '31807','state_id' => '2798','name' => 'Doctor Pedro P. Pena'),\n \t array('id' => '31808','state_id' => '2798','name' => 'Filadelfia'),\n \t array('id' => '31809','state_id' => '2798','name' => 'Marechal Estigarribia'),\n \t array('id' => '31810','state_id' => '2798','name' => 'Menno'),\n \t array('id' => '31811','state_id' => '2798','name' => 'Neuland'),\n \t array('id' => '31812','state_id' => '2799','name' => 'Caaguazu'),\n \t array('id' => '31813','state_id' => '2799','name' => 'Carayao'),\n \t array('id' => '31814','state_id' => '2799','name' => 'Coronel Oviedo'),\n \t array('id' => '31815','state_id' => '2799','name' => 'Doctor Cecilio Baez'),\n \t array('id' => '31816','state_id' => '2799','name' => 'Doctor Eulogio Estigarribia'),\n \t array('id' => '31817','state_id' => '2799','name' => 'Doctor Juan Manuel Frutos'),\n \t array('id' => '31818','state_id' => '2799','name' => 'Jose Ocampos'),\n \t array('id' => '31819','state_id' => '2799','name' => 'La Pastoria'),\n \t array('id' => '31820','state_id' => '2799','name' => 'Marechal Francisco Solano Lope'),\n \t array('id' => '31821','state_id' => '2799','name' => 'Mbutuy'),\n \t array('id' => '31822','state_id' => '2799','name' => 'Nueva Londres'),\n \t array('id' => '31823','state_id' => '2799','name' => 'Raul Arsenio Oviedo'),\n \t array('id' => '31824','state_id' => '2799','name' => 'Repatriacion'),\n \t array('id' => '31825','state_id' => '2799','name' => 'San Joaquin'),\n \t array('id' => '31826','state_id' => '2799','name' => 'San Jose de los Arroyos'),\n \t array('id' => '31827','state_id' => '2799','name' => 'Simon Bolivar'),\n \t array('id' => '31828','state_id' => '2799','name' => 'Tres Corrales'),\n \t array('id' => '31829','state_id' => '2799','name' => 'Tres de Febrero'),\n \t array('id' => '31830','state_id' => '2799','name' => 'Vaqueria'),\n \t array('id' => '31831','state_id' => '2799','name' => 'Yhu'),\n \t array('id' => '31832','state_id' => '2800','name' => 'Abai'),\n \t array('id' => '31833','state_id' => '2800','name' => 'Buena Vista'),\n \t array('id' => '31834','state_id' => '2800','name' => 'Caazapa'),\n \t array('id' => '31835','state_id' => '2800','name' => 'Doctor Moises Bertoni'),\n \t array('id' => '31836','state_id' => '2800','name' => 'General Higinio Morinigo'),\n \t array('id' => '31837','state_id' => '2800','name' => 'Maciel'),\n \t array('id' => '31838','state_id' => '2800','name' => 'San Juan Nepomuceno'),\n \t array('id' => '31839','state_id' => '2800','name' => 'Tavai'),\n \t array('id' => '31840','state_id' => '2800','name' => 'Yegros'),\n \t array('id' => '31841','state_id' => '2800','name' => 'Yuty'),\n \t array('id' => '31842','state_id' => '2801','name' => 'Corpus Christi'),\n \t array('id' => '31843','state_id' => '2801','name' => 'Curuguaty'),\n \t array('id' => '31844','state_id' => '2801','name' => 'General Francisco Alvarez'),\n \t array('id' => '31845','state_id' => '2801','name' => 'Itanara'),\n \t array('id' => '31846','state_id' => '2801','name' => 'Katuete'),\n \t array('id' => '31847','state_id' => '2801','name' => 'La Paloma'),\n \t array('id' => '31848','state_id' => '2801','name' => 'Nueva Esperanza'),\n \t array('id' => '31849','state_id' => '2801','name' => 'Salto del Guaira'),\n \t array('id' => '31850','state_id' => '2801','name' => 'Ygatimi'),\n \t array('id' => '31851','state_id' => '2801','name' => 'Ypehu'),\n \t array('id' => '31852','state_id' => '2802','name' => 'Aregua'),\n \t array('id' => '31853','state_id' => '2802','name' => 'Capiata'),\n \t array('id' => '31854','state_id' => '2802','name' => 'Fernando de la Mora'),\n \t array('id' => '31855','state_id' => '2802','name' => 'Guarambare'),\n \t array('id' => '31856','state_id' => '2802','name' => 'Ita'),\n \t array('id' => '31857','state_id' => '2802','name' => 'Itaugua'),\n \t array('id' => '31858','state_id' => '2802','name' => 'Juan Augusto Saldivar'),\n \t array('id' => '31859','state_id' => '2802','name' => 'Lambare'),\n \t array('id' => '31860','state_id' => '2802','name' => 'Limpio'),\n \t array('id' => '31861','state_id' => '2802','name' => 'Luque'),\n \t array('id' => '31862','state_id' => '2802','name' => 'Nemby'),\n \t array('id' => '31863','state_id' => '2802','name' => 'Nueva Italia'),\n \t array('id' => '31864','state_id' => '2802','name' => 'San Antonio'),\n \t array('id' => '31865','state_id' => '2802','name' => 'San Lorenzo'),\n \t array('id' => '31866','state_id' => '2802','name' => 'Villa Elisa'),\n \t array('id' => '31867','state_id' => '2802','name' => 'Villeta'),\n \t array('id' => '31868','state_id' => '2802','name' => 'Ypacarai'),\n \t array('id' => '31869','state_id' => '2802','name' => 'Ypane'),\n \t array('id' => '31870','state_id' => '2803','name' => 'Belen'),\n \t array('id' => '31871','state_id' => '2803','name' => 'Concepcion'),\n \t array('id' => '31872','state_id' => '2803','name' => 'Horqueta'),\n \t array('id' => '31873','state_id' => '2803','name' => 'Loreto'),\n \t array('id' => '31874','state_id' => '2803','name' => 'San Carlos'),\n \t array('id' => '31875','state_id' => '2803','name' => 'San Lazaro'),\n \t array('id' => '31876','state_id' => '2804','name' => 'Altos'),\n \t array('id' => '31877','state_id' => '2804','name' => 'Arroyos y Esteros'),\n \t array('id' => '31878','state_id' => '2804','name' => 'Atyra'),\n \t array('id' => '31879','state_id' => '2804','name' => 'Caacupe'),\n \t array('id' => '31880','state_id' => '2804','name' => 'Caraguatay'),\n \t array('id' => '31881','state_id' => '2804','name' => 'Emboscada'),\n \t array('id' => '31882','state_id' => '2804','name' => 'Eusebio Ayala'),\n \t array('id' => '31883','state_id' => '2804','name' => 'Isla Pucu'),\n \t array('id' => '31884','state_id' => '2804','name' => 'Itacurubi de la Cordillera'),\n \t array('id' => '31885','state_id' => '2804','name' => 'Juan de Mena'),\n \t array('id' => '31886','state_id' => '2804','name' => 'Loma Grande'),\n \t array('id' => '31887','state_id' => '2804','name' => 'Mbocayty del Yhaguy'),\n \t array('id' => '31888','state_id' => '2804','name' => 'Nueva Colombia'),\n \t array('id' => '31889','state_id' => '2804','name' => 'Piribebuy'),\n \t array('id' => '31890','state_id' => '2804','name' => 'Primero de Marzo'),\n \t array('id' => '31891','state_id' => '2804','name' => 'San Bernardino'),\n \t array('id' => '31892','state_id' => '2804','name' => 'San Jose Obrero'),\n \t array('id' => '31893','state_id' => '2804','name' => 'Santa Elena'),\n \t array('id' => '31894','state_id' => '2804','name' => 'Tobati'),\n \t array('id' => '31895','state_id' => '2804','name' => 'Valenzuela'),\n \t array('id' => '31896','state_id' => '2805','name' => 'Borja'),\n \t array('id' => '31897','state_id' => '2805','name' => 'Capitan Mauricio Jose Troche'),\n \t array('id' => '31898','state_id' => '2805','name' => 'Coronel Martinez'),\n \t array('id' => '31899','state_id' => '2805','name' => 'Doctor Botrell'),\n \t array('id' => '31900','state_id' => '2805','name' => 'Felix Perez Cardozo'),\n \t array('id' => '31901','state_id' => '2805','name' => 'General Eugenio Alejandrino Ga'),\n \t array('id' => '31902','state_id' => '2805','name' => 'Independencia'),\n \t array('id' => '31903','state_id' => '2805','name' => 'Itape'),\n \t array('id' => '31904','state_id' => '2805','name' => 'Iturbe'),\n \t array('id' => '31905','state_id' => '2805','name' => 'Jose Fasardi'),\n \t array('id' => '31906','state_id' => '2805','name' => 'Mbocayaty'),\n \t array('id' => '31907','state_id' => '2805','name' => 'Natalicio Talavera'),\n \t array('id' => '31908','state_id' => '2805','name' => 'Numi'),\n \t array('id' => '31909','state_id' => '2805','name' => 'Paso Yobai'),\n \t array('id' => '31910','state_id' => '2805','name' => 'San Salvador'),\n \t array('id' => '31911','state_id' => '2805','name' => 'Villarrica'),\n \t array('id' => '31912','state_id' => '2805','name' => 'Yataity'),\n \t array('id' => '31913','state_id' => '2806','name' => 'Alto Vera'),\n \t array('id' => '31914','state_id' => '2806','name' => 'Bella Vista'),\n \t array('id' => '31915','state_id' => '2806','name' => 'Cambyreta'),\n \t array('id' => '31916','state_id' => '2806','name' => 'Capitan Meza'),\n \t array('id' => '31917','state_id' => '2806','name' => 'Capitan Miranda'),\n \t array('id' => '31918','state_id' => '2806','name' => 'Carlos Antonio Lopez'),\n \t array('id' => '31919','state_id' => '2806','name' => 'Carmen del Parana'),\n \t array('id' => '31920','state_id' => '2806','name' => 'Coronel Bogado'),\n \t array('id' => '31921','state_id' => '2806','name' => 'Edelira'),\n \t array('id' => '31922','state_id' => '2806','name' => 'Encarnacion'),\n \t array('id' => '31923','state_id' => '2806','name' => 'Fram'),\n \t array('id' => '31924','state_id' => '2806','name' => 'General Artigas'),\n \t array('id' => '31925','state_id' => '2806','name' => 'General Delgado'),\n \t array('id' => '31926','state_id' => '2806','name' => 'Hohenau'),\n \t array('id' => '31927','state_id' => '2806','name' => 'Itapua Poty'),\n \t array('id' => '31928','state_id' => '2806','name' => 'Jesus'),\n \t array('id' => '31929','state_id' => '2806','name' => 'La Paz'),\n \t array('id' => '31930','state_id' => '2806','name' => 'Leandro Oviedo'),\n \t array('id' => '31931','state_id' => '2806','name' => 'Mayor Otano'),\n \t array('id' => '31932','state_id' => '2806','name' => 'Natalio'),\n \t array('id' => '31933','state_id' => '2806','name' => 'Nueva Alborada'),\n \t array('id' => '31934','state_id' => '2806','name' => 'Obligado'),\n \t array('id' => '31935','state_id' => '2806','name' => 'Pirapo'),\n \t array('id' => '31936','state_id' => '2806','name' => 'San Cosme y Damian'),\n \t array('id' => '31937','state_id' => '2806','name' => 'San Juan del Parana'),\n \t array('id' => '31938','state_id' => '2806','name' => 'San Pedro del Parana'),\n \t array('id' => '31939','state_id' => '2806','name' => 'San Rafael del Parana'),\n \t array('id' => '31940','state_id' => '2806','name' => 'Tomas Romero Pereira'),\n \t array('id' => '31941','state_id' => '2806','name' => 'Trinidad'),\n \t array('id' => '31942','state_id' => '2806','name' => 'Yatytay'),\n \t array('id' => '31943','state_id' => '2807','name' => 'Ayolas'),\n \t array('id' => '31944','state_id' => '2807','name' => 'San Ignacio'),\n \t array('id' => '31945','state_id' => '2807','name' => 'San Juan Bautista'),\n \t array('id' => '31946','state_id' => '2807','name' => 'San Miguel'),\n \t array('id' => '31947','state_id' => '2807','name' => 'San Patricio'),\n \t array('id' => '31948','state_id' => '2807','name' => 'Santa Maria'),\n \t array('id' => '31949','state_id' => '2807','name' => 'Santa Rosa'),\n \t array('id' => '31950','state_id' => '2807','name' => 'Santiago'),\n \t array('id' => '31951','state_id' => '2807','name' => 'Villa Florida'),\n \t array('id' => '31952','state_id' => '2807','name' => 'Yabebyry'),\n \t array('id' => '31953','state_id' => '2808','name' => 'Alberdi'),\n \t array('id' => '31954','state_id' => '2808','name' => 'Cerrito'),\n \t array('id' => '31955','state_id' => '2808','name' => 'Desmochados'),\n \t array('id' => '31956','state_id' => '2808','name' => 'General Jose Eduvigis Diaz'),\n \t array('id' => '31957','state_id' => '2808','name' => 'Guazu Cua'),\n \t array('id' => '31958','state_id' => '2808','name' => 'Humaita'),\n \t array('id' => '31959','state_id' => '2808','name' => 'Isla Umbu'),\n \t array('id' => '31960','state_id' => '2808','name' => 'Laureles'),\n \t array('id' => '31961','state_id' => '2808','name' => 'Mayor Jose Dejesus Martinez'),\n \t array('id' => '31962','state_id' => '2808','name' => 'Paso de Patria'),\n \t array('id' => '31963','state_id' => '2808','name' => 'Pilar'),\n \t array('id' => '31964','state_id' => '2808','name' => 'San Juan Bautista de Neembucu'),\n \t array('id' => '31965','state_id' => '2808','name' => 'Tacuaras'),\n \t array('id' => '31966','state_id' => '2808','name' => 'Villa Franca'),\n \t array('id' => '31967','state_id' => '2808','name' => 'Villa Oliva'),\n \t array('id' => '31968','state_id' => '2808','name' => 'Villalbin'),\n \t array('id' => '31969','state_id' => '2809','name' => 'Acahay'),\n \t array('id' => '31970','state_id' => '2809','name' => 'Caapucu'),\n \t array('id' => '31971','state_id' => '2809','name' => 'Carapegua'),\n \t array('id' => '31972','state_id' => '2809','name' => 'Escobar'),\n \t array('id' => '31973','state_id' => '2809','name' => 'General Bernardino Caballero'),\n \t array('id' => '31974','state_id' => '2809','name' => 'La Colmena'),\n \t array('id' => '31975','state_id' => '2809','name' => 'Mbuyapey'),\n \t array('id' => '31976','state_id' => '2809','name' => 'Paraguari'),\n \t array('id' => '31977','state_id' => '2809','name' => 'Pirayu'),\n \t array('id' => '31978','state_id' => '2809','name' => 'Quiindy'),\n \t array('id' => '31979','state_id' => '2809','name' => 'Quyquyho'),\n \t array('id' => '31980','state_id' => '2809','name' => 'San Roque Gonzalez de Santa Cr'),\n \t array('id' => '31981','state_id' => '2809','name' => 'Sapucai'),\n \t array('id' => '31982','state_id' => '2809','name' => 'Tebicuarymi'),\n \t array('id' => '31983','state_id' => '2809','name' => 'Yaguaron'),\n \t array('id' => '31984','state_id' => '2809','name' => 'Ybycui'),\n \t array('id' => '31985','state_id' => '2809','name' => 'Ybytimi'),\n \t array('id' => '31986','state_id' => '2812','name' => 'Bagua Grande'),\n \t array('id' => '31987','state_id' => '2812','name' => 'Cajaruro'),\n \t array('id' => '31988','state_id' => '2812','name' => 'Chachapoyas'),\n \t array('id' => '31989','state_id' => '2812','name' => 'Jazan'),\n \t array('id' => '31990','state_id' => '2812','name' => 'La Peca'),\n \t array('id' => '31991','state_id' => '2813','name' => 'Ancash'),\n \t array('id' => '31992','state_id' => '2813','name' => 'Caraz'),\n \t array('id' => '31993','state_id' => '2813','name' => 'Carhuaz'),\n \t array('id' => '31994','state_id' => '2813','name' => 'Casma'),\n \t array('id' => '31995','state_id' => '2813','name' => 'Chimbote'),\n \t array('id' => '31996','state_id' => '2813','name' => 'Choishco'),\n \t array('id' => '31997','state_id' => '2813','name' => 'Huallanca'),\n \t array('id' => '31998','state_id' => '2813','name' => 'Huaraz'),\n \t array('id' => '31999','state_id' => '2813','name' => 'Huari'),\n \t array('id' => '32000','state_id' => '2813','name' => 'Huarmey'),\n \t array('id' => '32001','state_id' => '2813','name' => 'Pomabamba'),\n \t array('id' => '32002','state_id' => '2813','name' => 'Santa'),\n \t array('id' => '32003','state_id' => '2813','name' => 'Yungay'),\n \t array('id' => '32004','state_id' => '2814','name' => 'Abancay'),\n \t array('id' => '32005','state_id' => '2814','name' => 'Andahuaylas'),\n \t array('id' => '32006','state_id' => '2814','name' => 'San Jeronimo'),\n \t array('id' => '32007','state_id' => '2814','name' => 'Talavera'),\n \t array('id' => '32008','state_id' => '2815','name' => 'Acari'),\n \t array('id' => '32009','state_id' => '2815','name' => 'Arequipa'),\n \t array('id' => '32010','state_id' => '2815','name' => 'Camana'),\n \t array('id' => '32011','state_id' => '2815','name' => 'Chivay'),\n \t array('id' => '32012','state_id' => '2815','name' => 'Cocachacra'),\n \t array('id' => '32013','state_id' => '2815','name' => 'Dean Valdivia'),\n \t array('id' => '32014','state_id' => '2815','name' => 'Lluta'),\n \t array('id' => '32015','state_id' => '2815','name' => 'Mollendo'),\n \t array('id' => '32016','state_id' => '2815','name' => 'Nicolas de Pierola'),\n \t array('id' => '32017','state_id' => '2815','name' => 'Orcopampa'),\n \t array('id' => '32018','state_id' => '2815','name' => 'Punta de Bombon'),\n \t array('id' => '32019','state_id' => '2815','name' => 'Rio Grande'),\n \t array('id' => '32020','state_id' => '2815','name' => 'Yura'),\n \t array('id' => '32021','state_id' => '2816','name' => 'Ayacucho'),\n \t array('id' => '32022','state_id' => '2816','name' => 'Ayna'),\n \t array('id' => '32023','state_id' => '2816','name' => 'Coracora'),\n \t array('id' => '32024','state_id' => '2816','name' => 'Huanta'),\n \t array('id' => '32025','state_id' => '2816','name' => 'Puquio'),\n \t array('id' => '32026','state_id' => '2816','name' => 'San Miguel'),\n \t array('id' => '32027','state_id' => '2816','name' => 'Santa Rosa'),\n \t array('id' => '32028','state_id' => '2816','name' => 'Silvia'),\n \t array('id' => '32029','state_id' => '2816','name' => 'Tambo'),\n \t array('id' => '32030','state_id' => '2817','name' => 'Bambamarca'),\n \t array('id' => '32031','state_id' => '2817','name' => 'Bellavista'),\n \t array('id' => '32032','state_id' => '2817','name' => 'Cajabamba'),\n \t array('id' => '32033','state_id' => '2817','name' => 'Cajamarca'),\n \t array('id' => '32034','state_id' => '2817','name' => 'Celendin'),\n \t array('id' => '32035','state_id' => '2817','name' => 'Chota'),\n \t array('id' => '32036','state_id' => '2817','name' => 'Cutervo'),\n \t array('id' => '32037','state_id' => '2817','name' => 'Jaen'),\n \t array('id' => '32038','state_id' => '2817','name' => 'Pedro Galvez'),\n \t array('id' => '32039','state_id' => '2817','name' => 'Pucara'),\n \t array('id' => '32040','state_id' => '2817','name' => 'San Ignacio'),\n \t array('id' => '32041','state_id' => '2817','name' => 'Santa Cruz'),\n \t array('id' => '32042','state_id' => '2817','name' => 'Yonan'),\n \t array('id' => '32043','state_id' => '2818','name' => 'Anta'),\n \t array('id' => '32044','state_id' => '2818','name' => 'Calca'),\n \t array('id' => '32045','state_id' => '2818','name' => 'Cusco'),\n \t array('id' => '32046','state_id' => '2818','name' => 'Espinar'),\n \t array('id' => '32047','state_id' => '2818','name' => 'Oropesa'),\n \t array('id' => '32048','state_id' => '2818','name' => 'Quillabamba'),\n \t array('id' => '32049','state_id' => '2818','name' => 'Santa Ana'),\n \t array('id' => '32050','state_id' => '2818','name' => 'Santo Tomas'),\n \t array('id' => '32051','state_id' => '2818','name' => 'Sicuani'),\n \t array('id' => '32052','state_id' => '2818','name' => 'Urcos'),\n \t array('id' => '32053','state_id' => '2818','name' => 'Urubamba'),\n \t array('id' => '32054','state_id' => '2819','name' => 'Huancavelica'),\n \t array('id' => '32055','state_id' => '2819','name' => 'Lircay'),\n \t array('id' => '32056','state_id' => '2819','name' => 'Pampas'),\n \t array('id' => '32057','state_id' => '2820','name' => 'Ambos'),\n \t array('id' => '32058','state_id' => '2820','name' => 'Huanuco'),\n \t array('id' => '32059','state_id' => '2820','name' => 'Jose Crespo y Castillo'),\n \t array('id' => '32060','state_id' => '2820','name' => 'La Union'),\n \t array('id' => '32061','state_id' => '2820','name' => 'Llata'),\n \t array('id' => '32062','state_id' => '2820','name' => 'Rupa-Rupa'),\n \t array('id' => '32063','state_id' => '2820','name' => 'San Miguel de Cauri'),\n \t array('id' => '32064','state_id' => '2820','name' => 'Tingo Maria'),\n \t array('id' => '32065','state_id' => '2821','name' => 'Chincha Alta'),\n \t array('id' => '32066','state_id' => '2821','name' => 'Ica'),\n \t array('id' => '32067','state_id' => '2821','name' => 'Los Aquijes'),\n \t array('id' => '32068','state_id' => '2821','name' => 'Marcona'),\n \t array('id' => '32069','state_id' => '2821','name' => 'Nazca'),\n \t array('id' => '32070','state_id' => '2821','name' => 'Pachacutec'),\n \t array('id' => '32071','state_id' => '2821','name' => 'Palpa'),\n \t array('id' => '32072','state_id' => '2821','name' => 'Pisco'),\n \t array('id' => '32073','state_id' => '2821','name' => 'Salas'),\n \t array('id' => '32074','state_id' => '2821','name' => 'San Andres'),\n \t array('id' => '32075','state_id' => '2821','name' => 'San Clemente'),\n \t array('id' => '32076','state_id' => '2821','name' => 'San Juan Bautista'),\n \t array('id' => '32077','state_id' => '2821','name' => 'Santiago'),\n \t array('id' => '32078','state_id' => '2821','name' => 'Subtanjalla'),\n \t array('id' => '32079','state_id' => '2821','name' => 'Tupac Amaru Inca'),\n \t array('id' => '32080','state_id' => '2821','name' => 'Vista Alegre'),\n \t array('id' => '32081','state_id' => '2822','name' => 'Acobamba'),\n \t array('id' => '32082','state_id' => '2822','name' => 'Acolla'),\n \t array('id' => '32083','state_id' => '2822','name' => 'Carhuamayo'),\n \t array('id' => '32084','state_id' => '2822','name' => 'Chanchamayo'),\n \t array('id' => '32085','state_id' => '2822','name' => 'Chupaca'),\n \t array('id' => '32086','state_id' => '2822','name' => 'Concepcion'),\n \t array('id' => '32087','state_id' => '2822','name' => 'Huancayo'),\n \t array('id' => '32088','state_id' => '2822','name' => 'Huasahuasi'),\n \t array('id' => '32089','state_id' => '2822','name' => 'Huayucachi'),\n \t array('id' => '32090','state_id' => '2822','name' => 'Jauja'),\n \t array('id' => '32091','state_id' => '2822','name' => 'Junin'),\n \t array('id' => '32092','state_id' => '2822','name' => 'La Oroya'),\n \t array('id' => '32093','state_id' => '2822','name' => 'Mazamari'),\n \t array('id' => '32094','state_id' => '2822','name' => 'Morococha'),\n \t array('id' => '32095','state_id' => '2822','name' => 'Orcotuna'),\n \t array('id' => '32096','state_id' => '2822','name' => 'Pangoa'),\n \t array('id' => '32097','state_id' => '2822','name' => 'Perene'),\n \t array('id' => '32098','state_id' => '2822','name' => 'Pichanaqui'),\n \t array('id' => '32099','state_id' => '2822','name' => 'Pilcomayo'),\n \t array('id' => '32100','state_id' => '2822','name' => 'San Agustin'),\n \t array('id' => '32101','state_id' => '2822','name' => 'San Jeronimo de Tunan'),\n \t array('id' => '32102','state_id' => '2822','name' => 'San Pedro de Cajas'),\n \t array('id' => '32103','state_id' => '2822','name' => 'San Ramon'),\n \t array('id' => '32104','state_id' => '2822','name' => 'Santa Rosa de Saco'),\n \t array('id' => '32105','state_id' => '2822','name' => 'Satipo'),\n \t array('id' => '32106','state_id' => '2822','name' => 'Sicaya'),\n \t array('id' => '32107','state_id' => '2822','name' => 'Tarma'),\n \t array('id' => '32108','state_id' => '2822','name' => 'Yauli'),\n \t array('id' => '32109','state_id' => '2822','name' => 'Yauya'),\n \t array('id' => '32110','state_id' => '2824','name' => 'Chiclayo'),\n \t array('id' => '32111','state_id' => '2824','name' => 'Chongoyape'),\n \t array('id' => '32112','state_id' => '2824','name' => 'Eten'),\n \t array('id' => '32113','state_id' => '2824','name' => 'Ferrenafe'),\n \t array('id' => '32114','state_id' => '2824','name' => 'Illimo'),\n \t array('id' => '32115','state_id' => '2824','name' => 'Jayanca'),\n \t array('id' => '32116','state_id' => '2824','name' => 'Lagunas'),\n \t array('id' => '32117','state_id' => '2824','name' => 'Lambayeque'),\n \t array('id' => '32118','state_id' => '2824','name' => 'Manuel Mesones Muro'),\n \t array('id' => '32119','state_id' => '2824','name' => 'Mochumi'),\n \t array('id' => '32120','state_id' => '2824','name' => 'Monsefu'),\n \t array('id' => '32121','state_id' => '2824','name' => 'Morrope'),\n \t array('id' => '32122','state_id' => '2824','name' => 'Motupe'),\n \t array('id' => '32123','state_id' => '2824','name' => 'Olmos'),\n \t array('id' => '32124','state_id' => '2824','name' => 'Oyotun'),\n \t array('id' => '32125','state_id' => '2824','name' => 'Picsi'),\n \t array('id' => '32126','state_id' => '2824','name' => 'Pimentel'),\n \t array('id' => '32127','state_id' => '2824','name' => 'Pueblo Nuevo'),\n \t array('id' => '32128','state_id' => '2824','name' => 'Reque'),\n \t array('id' => '32129','state_id' => '2824','name' => 'San Jose'),\n \t array('id' => '32130','state_id' => '2824','name' => 'Sana'),\n \t array('id' => '32131','state_id' => '2824','name' => 'Santa Rosa'),\n \t array('id' => '32132','state_id' => '2824','name' => 'Tucume'),\n \t array('id' => '32133','state_id' => '2826','name' => 'Barranca'),\n \t array('id' => '32134','state_id' => '2826','name' => 'Contamana'),\n \t array('id' => '32135','state_id' => '2826','name' => 'Fernando Lores'),\n \t array('id' => '32136','state_id' => '2826','name' => 'Iquitos'),\n \t array('id' => '32137','state_id' => '2826','name' => 'Lagunas'),\n \t array('id' => '32138','state_id' => '2826','name' => 'Nauta'),\n \t array('id' => '32139','state_id' => '2826','name' => 'Paucarpata'),\n \t array('id' => '32140','state_id' => '2826','name' => 'Ramon Castilla'),\n \t array('id' => '32141','state_id' => '2826','name' => 'Requena'),\n \t array('id' => '32142','state_id' => '2826','name' => 'Saquena'),\n \t array('id' => '32143','state_id' => '2826','name' => 'Vargas Guerra'),\n \t array('id' => '32144','state_id' => '2826','name' => 'Yurimaguas'),\n \t array('id' => '32145','state_id' => '2828','name' => 'Ilo'),\n \t array('id' => '32146','state_id' => '2828','name' => 'Moquegua'),\n \t array('id' => '32147','state_id' => '2828','name' => 'Pacocha'),\n \t array('id' => '32148','state_id' => '2828','name' => 'Torata'),\n \t array('id' => '32149','state_id' => '2829','name' => 'Cerro de Pasco'),\n \t array('id' => '32150','state_id' => '2829','name' => 'Chaupimarca'),\n \t array('id' => '32151','state_id' => '2829','name' => 'Oxapampa'),\n \t array('id' => '32152','state_id' => '2829','name' => 'Paucartambo'),\n \t array('id' => '32153','state_id' => '2829','name' => 'Simon Bolivar'),\n \t array('id' => '32154','state_id' => '2829','name' => 'Tinyahuarco'),\n \t array('id' => '32155','state_id' => '2829','name' => 'Villa Rica'),\n \t array('id' => '32156','state_id' => '2829','name' => 'Yanacancha'),\n \t array('id' => '32157','state_id' => '2829','name' => 'Yanahuanca'),\n \t array('id' => '32158','state_id' => '2830','name' => 'Ayabaca'),\n \t array('id' => '32159','state_id' => '2830','name' => 'Bernal'),\n \t array('id' => '32160','state_id' => '2830','name' => 'Buenos Aires'),\n \t array('id' => '32161','state_id' => '2830','name' => 'Catacaos'),\n \t array('id' => '32162','state_id' => '2830','name' => 'Chulucanas'),\n \t array('id' => '32163','state_id' => '2830','name' => 'Colan'),\n \t array('id' => '32164','state_id' => '2830','name' => 'Cura Mori'),\n \t array('id' => '32165','state_id' => '2830','name' => 'El Alto'),\n \t array('id' => '32166','state_id' => '2830','name' => 'Huancabamba'),\n \t array('id' => '32167','state_id' => '2830','name' => 'Ignacio Escudero'),\n \t array('id' => '32168','state_id' => '2830','name' => 'La Arena'),\n \t array('id' => '32169','state_id' => '2830','name' => 'La Brea'),\n \t array('id' => '32170','state_id' => '2830','name' => 'La Huaca'),\n \t array('id' => '32171','state_id' => '2830','name' => 'La Matanza'),\n \t array('id' => '32172','state_id' => '2830','name' => 'La Union'),\n \t array('id' => '32173','state_id' => '2830','name' => 'Las Lomas'),\n \t array('id' => '32174','state_id' => '2830','name' => 'Los Organos'),\n \t array('id' => '32175','state_id' => '2830','name' => 'Mancora'),\n \t array('id' => '32176','state_id' => '2830','name' => 'Marcavelica'),\n \t array('id' => '32177','state_id' => '2830','name' => 'Morropon'),\n \t array('id' => '32178','state_id' => '2830','name' => 'Paita'),\n \t array('id' => '32179','state_id' => '2830','name' => 'Piura'),\n \t array('id' => '32180','state_id' => '2830','name' => 'Querecotillo'),\n \t array('id' => '32181','state_id' => '2830','name' => 'Salitral'),\n \t array('id' => '32182','state_id' => '2830','name' => 'San Juan de Bigote'),\n \t array('id' => '32183','state_id' => '2830','name' => 'Sechura'),\n \t array('id' => '32184','state_id' => '2830','name' => 'Sullana'),\n \t array('id' => '32185','state_id' => '2830','name' => 'Talara'),\n \t array('id' => '32186','state_id' => '2830','name' => 'Tamarindo'),\n \t array('id' => '32187','state_id' => '2830','name' => 'Tambo Grande'),\n \t array('id' => '32188','state_id' => '2830','name' => 'Vice'),\n \t array('id' => '32189','state_id' => '2830','name' => 'Vichayal'),\n \t array('id' => '32190','state_id' => '2831','name' => 'Ayaviri'),\n \t array('id' => '32191','state_id' => '2831','name' => 'Azangaro'),\n \t array('id' => '32192','state_id' => '2831','name' => 'Desaguadero'),\n \t array('id' => '32193','state_id' => '2831','name' => 'Huancane'),\n \t array('id' => '32194','state_id' => '2831','name' => 'Ilave'),\n \t array('id' => '32195','state_id' => '2831','name' => 'Juli'),\n \t array('id' => '32196','state_id' => '2831','name' => 'Juliaca'),\n \t array('id' => '32197','state_id' => '2831','name' => 'Lampa'),\n \t array('id' => '32198','state_id' => '2831','name' => 'Macusani'),\n \t array('id' => '32199','state_id' => '2831','name' => 'Nunoa'),\n \t array('id' => '32200','state_id' => '2831','name' => 'Puno'),\n \t array('id' => '32201','state_id' => '2831','name' => 'Putina'),\n \t array('id' => '32202','state_id' => '2831','name' => 'Santa Lucia'),\n \t array('id' => '32203','state_id' => '2831','name' => 'Yanahuara'),\n \t array('id' => '32204','state_id' => '2831','name' => 'Yunguyo'),\n \t array('id' => '32205','state_id' => '2833','name' => 'Ilabaya'),\n \t array('id' => '32206','state_id' => '2833','name' => 'Tacna'),\n \t array('id' => '32207','state_id' => '2833','name' => 'Tarata'),\n \t array('id' => '32208','state_id' => '2834','name' => 'Aguas Verdes'),\n \t array('id' => '32209','state_id' => '2834','name' => 'Corrales'),\n \t array('id' => '32210','state_id' => '2834','name' => 'La Cruz'),\n \t array('id' => '32211','state_id' => '2834','name' => 'Papayal'),\n \t array('id' => '32212','state_id' => '2834','name' => 'San Jacinto'),\n \t array('id' => '32213','state_id' => '2834','name' => 'Tumbes'),\n \t array('id' => '32214','state_id' => '2834','name' => 'Zarumilla'),\n \t array('id' => '32215','state_id' => '2834','name' => 'Zorritos'),\n \t array('id' => '32216','state_id' => '2835','name' => 'Campoverde'),\n \t array('id' => '32217','state_id' => '2835','name' => 'Padre Abad'),\n \t array('id' => '32218','state_id' => '2835','name' => 'Pucallpa'),\n \t array('id' => '32219','state_id' => '2835','name' => 'Raymondi'),\n \t array('id' => '32220','state_id' => '2836','name' => 'San Juan'),\n \t array('id' => '32221','state_id' => '2837','name' => 'Albay'),\n \t array('id' => '32222','state_id' => '2837','name' => 'Daet'),\n \t array('id' => '32223','state_id' => '2837','name' => 'Iriga'),\n \t array('id' => '32224','state_id' => '2837','name' => 'Legaspi'),\n \t array('id' => '32225','state_id' => '2837','name' => 'Naga'),\n \t array('id' => '32226','state_id' => '2837','name' => 'Sorsogon'),\n \t array('id' => '32227','state_id' => '2838','name' => 'Bulacan'),\n \t array('id' => '32228','state_id' => '2838','name' => 'Marilao'),\n \t array('id' => '32229','state_id' => '2839','name' => 'Cagayan de Oro'),\n \t array('id' => '32230','state_id' => '2839','name' => 'Santiago'),\n \t array('id' => '32231','state_id' => '2839','name' => 'Solano'),\n \t array('id' => '32232','state_id' => '2839','name' => 'Tuguegarao'),\n \t array('id' => '32233','state_id' => '2840','name' => 'Bislig'),\n \t array('id' => '32234','state_id' => '2840','name' => 'Butuan'),\n \t array('id' => '32235','state_id' => '2840','name' => 'Surigao'),\n \t array('id' => '32236','state_id' => '2844','name' => 'Baguio'),\n \t array('id' => '32237','state_id' => '2844','name' => 'Bangued'),\n \t array('id' => '32238','state_id' => '2845','name' => 'Davao'),\n \t array('id' => '32239','state_id' => '2848','name' => 'Dagupan'),\n \t array('id' => '32240','state_id' => '2848','name' => 'Laoag'),\n \t array('id' => '32241','state_id' => '2848','name' => 'Manaoag'),\n \t array('id' => '32242','state_id' => '2848','name' => 'Mangaldan'),\n \t array('id' => '32243','state_id' => '2848','name' => 'San Fernando'),\n \t array('id' => '32244','state_id' => '2848','name' => 'Urdaneta'),\n \t array('id' => '32245','state_id' => '2848','name' => 'Vigan'),\n \t array('id' => '32246','state_id' => '2849','name' => 'Binan'),\n \t array('id' => '32247','state_id' => '2849','name' => 'Laguna'),\n \t array('id' => '32248','state_id' => '2849','name' => 'Pangil'),\n \t array('id' => '32249','state_id' => '2849','name' => 'San Pedro'),\n \t array('id' => '32250','state_id' => '2850','name' => 'Manila'),\n \t array('id' => '32251','state_id' => '2850','name' => 'Marikina'),\n \t array('id' => '32252','state_id' => '2851','name' => 'Mactan'),\n \t array('id' => '32253','state_id' => '2861','name' => 'Fabryczna'),\n \t array('id' => '32254','state_id' => '2862','name' => 'Bielawa'),\n \t array('id' => '32255','state_id' => '2862','name' => 'Bogatynia'),\n \t array('id' => '32256','state_id' => '2862','name' => 'Boguszow-Gorce'),\n \t array('id' => '32257','state_id' => '2862','name' => 'Boleslawiec'),\n \t array('id' => '32258','state_id' => '2862','name' => 'Brzeg Dolny'),\n \t array('id' => '32259','state_id' => '2862','name' => 'Bystrzyca Klodzka'),\n \t array('id' => '32260','state_id' => '2862','name' => 'Chojnow'),\n \t array('id' => '32261','state_id' => '2862','name' => 'Dzierzoniow'),\n \t array('id' => '32262','state_id' => '2862','name' => 'Glogow'),\n \t array('id' => '32263','state_id' => '2862','name' => 'Gora'),\n \t array('id' => '32264','state_id' => '2862','name' => 'Jawor'),\n \t array('id' => '32265','state_id' => '2862','name' => 'Jelcz-Laskowice'),\n \t array('id' => '32266','state_id' => '2862','name' => 'Jelenia Gora'),\n \t array('id' => '32267','state_id' => '2862','name' => 'Kamienna Gora'),\n \t array('id' => '32268','state_id' => '2862','name' => 'Klodzko'),\n \t array('id' => '32269','state_id' => '2862','name' => 'Kowary'),\n \t array('id' => '32270','state_id' => '2862','name' => 'Kudowa-Zdroj'),\n \t array('id' => '32271','state_id' => '2862','name' => 'Legnica'),\n \t array('id' => '32272','state_id' => '2862','name' => 'Luban'),\n \t array('id' => '32273','state_id' => '2862','name' => 'Lubin'),\n \t array('id' => '32274','state_id' => '2862','name' => 'Lwowek Slaski'),\n \t array('id' => '32275','state_id' => '2862','name' => 'Milicz'),\n \t array('id' => '32276','state_id' => '2862','name' => 'Nowa Ruda'),\n \t array('id' => '32277','state_id' => '2862','name' => 'Olawa'),\n \t array('id' => '32278','state_id' => '2862','name' => 'Olesnica'),\n \t array('id' => '32279','state_id' => '2862','name' => 'Piechowice'),\n \t array('id' => '32280','state_id' => '2862','name' => 'Pieszyce'),\n \t array('id' => '32281','state_id' => '2862','name' => 'Polkowice'),\n \t array('id' => '32282','state_id' => '2862','name' => 'Strzegom'),\n \t array('id' => '32283','state_id' => '2862','name' => 'Strzelin'),\n \t array('id' => '32284','state_id' => '2862','name' => 'Swidnica'),\n \t array('id' => '32285','state_id' => '2862','name' => 'Swiebodzice'),\n \t array('id' => '32286','state_id' => '2862','name' => 'Sycow'),\n \t array('id' => '32287','state_id' => '2862','name' => 'Trzebnica'),\n \t array('id' => '32288','state_id' => '2862','name' => 'Walbrzych'),\n \t array('id' => '32289','state_id' => '2862','name' => 'Wolow'),\n \t array('id' => '32290','state_id' => '2862','name' => 'Wroclaw'),\n \t array('id' => '32291','state_id' => '2862','name' => 'Zabkowice Slaskie'),\n \t array('id' => '32292','state_id' => '2862','name' => 'Zgorzelec'),\n \t array('id' => '32293','state_id' => '2862','name' => 'Ziebice'),\n \t array('id' => '32294','state_id' => '2862','name' => 'Zlotoryja'),\n \t array('id' => '32295','state_id' => '2864','name' => 'Hopowo'),\n \t array('id' => '32296','state_id' => '2865','name' => 'Chwaszczyno'),\n \t array('id' => '32297','state_id' => '2866','name' => 'Smigiel'),\n \t array('id' => '32298','state_id' => '2867','name' => 'Jerzmanowice'),\n \t array('id' => '32299','state_id' => '2867','name' => 'Zabierzow'),\n \t array('id' => '32300','state_id' => '2868','name' => 'Aleksandrow Kujawski'),\n \t array('id' => '32301','state_id' => '2868','name' => 'Brodnica'),\n \t array('id' => '32302','state_id' => '2868','name' => 'Bydgoszcz'),\n \t array('id' => '32303','state_id' => '2868','name' => 'Chelmno'),\n \t array('id' => '32304','state_id' => '2868','name' => 'Chelmza'),\n \t array('id' => '32305','state_id' => '2868','name' => 'Ciechocinek'),\n \t array('id' => '32306','state_id' => '2868','name' => 'Golub-Dobrzyn'),\n \t array('id' => '32307','state_id' => '2868','name' => 'Grudziadz'),\n \t array('id' => '32308','state_id' => '2868','name' => 'Inowroclaw'),\n \t array('id' => '32309','state_id' => '2868','name' => 'Janikowo'),\n \t array('id' => '32310','state_id' => '2868','name' => 'Koronowo'),\n \t array('id' => '32311','state_id' => '2868','name' => 'Kruszwica'),\n \t array('id' => '32312','state_id' => '2868','name' => 'Lipno'),\n \t array('id' => '32313','state_id' => '2868','name' => 'Mogilno'),\n \t array('id' => '32314','state_id' => '2868','name' => 'Naklo nad Notecia'),\n \t array('id' => '32315','state_id' => '2868','name' => 'Radziejow'),\n \t array('id' => '32316','state_id' => '2868','name' => 'Rypin'),\n \t array('id' => '32317','state_id' => '2868','name' => 'Sepolno Krajenskie'),\n \t array('id' => '32318','state_id' => '2868','name' => 'Solec Kujawski'),\n \t array('id' => '32319','state_id' => '2868','name' => 'Swiecie'),\n \t array('id' => '32320','state_id' => '2868','name' => 'Szubin'),\n \t array('id' => '32321','state_id' => '2868','name' => 'Torun'),\n \t array('id' => '32322','state_id' => '2868','name' => 'Tuchola'),\n \t array('id' => '32323','state_id' => '2868','name' => 'Wabrzezno'),\n \t array('id' => '32324','state_id' => '2868','name' => 'Wloclawek'),\n \t array('id' => '32325','state_id' => '2868','name' => 'Znin'),\n \t array('id' => '32326','state_id' => '2869','name' => 'Aleksandrow Lodzki'),\n \t array('id' => '32327','state_id' => '2869','name' => 'Belchatow'),\n \t array('id' => '32328','state_id' => '2869','name' => 'Bratoszewice'),\n \t array('id' => '32329','state_id' => '2869','name' => 'Brzeziny'),\n \t array('id' => '32330','state_id' => '2869','name' => 'Glowno'),\n \t array('id' => '32331','state_id' => '2869','name' => 'Koluszki'),\n \t array('id' => '32332','state_id' => '2869','name' => 'Konstantynow Lodzki'),\n \t array('id' => '32333','state_id' => '2869','name' => 'Kutno'),\n \t array('id' => '32334','state_id' => '2869','name' => 'Lask'),\n \t array('id' => '32335','state_id' => '2869','name' => 'Leczyca'),\n \t array('id' => '32336','state_id' => '2869','name' => 'Lodz'),\n \t array('id' => '32337','state_id' => '2869','name' => 'Lowicz'),\n \t array('id' => '32338','state_id' => '2869','name' => 'Opoczno'),\n \t array('id' => '32339','state_id' => '2869','name' => 'Ozorkow'),\n \t array('id' => '32340','state_id' => '2869','name' => 'Pabianice'),\n \t array('id' => '32341','state_id' => '2869','name' => 'Piotrkow Trybunalski'),\n \t array('id' => '32342','state_id' => '2869','name' => 'Radomsko'),\n \t array('id' => '32343','state_id' => '2869','name' => 'Rawa Mazowiecka'),\n \t array('id' => '32344','state_id' => '2869','name' => 'Sieradz'),\n \t array('id' => '32345','state_id' => '2869','name' => 'Skierniewice'),\n \t array('id' => '32346','state_id' => '2869','name' => 'Tomaszow Mazowiecki'),\n \t array('id' => '32347','state_id' => '2869','name' => 'Tuszyn'),\n \t array('id' => '32348','state_id' => '2869','name' => 'Wielun'),\n \t array('id' => '32349','state_id' => '2869','name' => 'Zdunska Wola'),\n \t array('id' => '32350','state_id' => '2869','name' => 'Zgierz'),\n \t array('id' => '32351','state_id' => '2869','name' => 'Zychlin'),\n \t array('id' => '32352','state_id' => '2870','name' => 'Biala Podlaska'),\n \t array('id' => '32353','state_id' => '2870','name' => 'Bilgoraj'),\n \t array('id' => '32354','state_id' => '2870','name' => 'Chelm'),\n \t array('id' => '32355','state_id' => '2870','name' => 'Deblin'),\n \t array('id' => '32356','state_id' => '2870','name' => 'Hrubieszow'),\n \t array('id' => '32357','state_id' => '2870','name' => 'Janow Lubelski'),\n \t array('id' => '32358','state_id' => '2870','name' => 'Krasnik'),\n \t array('id' => '32359','state_id' => '2870','name' => 'Krasnystaw'),\n \t array('id' => '32360','state_id' => '2870','name' => 'Leczna'),\n \t array('id' => '32361','state_id' => '2870','name' => 'Lubartow'),\n \t array('id' => '32362','state_id' => '2870','name' => 'Lublin'),\n \t array('id' => '32363','state_id' => '2870','name' => 'Lukow'),\n \t array('id' => '32364','state_id' => '2870','name' => 'Miedzyrzec Podlaski'),\n \t array('id' => '32365','state_id' => '2870','name' => 'Opole Lubelskie'),\n \t array('id' => '32366','state_id' => '2870','name' => 'Parczew'),\n \t array('id' => '32367','state_id' => '2870','name' => 'Poniatowa'),\n \t array('id' => '32368','state_id' => '2870','name' => 'Pulawy'),\n \t array('id' => '32369','state_id' => '2870','name' => 'Radzyn Podlaski'),\n \t array('id' => '32370','state_id' => '2870','name' => 'Ryki'),\n \t array('id' => '32371','state_id' => '2870','name' => 'Swidnik'),\n \t array('id' => '32372','state_id' => '2870','name' => 'Tomaszow Lubelski'),\n \t array('id' => '32373','state_id' => '2870','name' => 'Wlodawa'),\n \t array('id' => '32374','state_id' => '2870','name' => 'Zamosc'),\n \t array('id' => '32375','state_id' => '2871','name' => 'Drezdenko'),\n \t array('id' => '32376','state_id' => '2871','name' => 'Gorzow Wielkopolski'),\n \t array('id' => '32377','state_id' => '2871','name' => 'Gubin'),\n \t array('id' => '32378','state_id' => '2871','name' => 'Kostrzyn'),\n \t array('id' => '32379','state_id' => '2871','name' => 'Kozuchow'),\n \t array('id' => '32380','state_id' => '2871','name' => 'Krosno Odrzanskie'),\n \t array('id' => '32381','state_id' => '2871','name' => 'Lubsko'),\n \t array('id' => '32382','state_id' => '2871','name' => 'Miedzyrzecz'),\n \t array('id' => '32383','state_id' => '2871','name' => 'Nowa Sol'),\n \t array('id' => '32384','state_id' => '2871','name' => 'Skwierzyna'),\n \t array('id' => '32385','state_id' => '2871','name' => 'Slubice'),\n \t array('id' => '32386','state_id' => '2871','name' => 'Strzelce Krajenskie'),\n \t array('id' => '32387','state_id' => '2871','name' => 'Sulechow'),\n \t array('id' => '32388','state_id' => '2871','name' => 'Sulecin'),\n \t array('id' => '32389','state_id' => '2871','name' => 'Swiebodzin'),\n \t array('id' => '32390','state_id' => '2871','name' => 'Szprotawa'),\n \t array('id' => '32391','state_id' => '2871','name' => 'Wschowa'),\n \t array('id' => '32392','state_id' => '2871','name' => 'Zagan'),\n \t array('id' => '32393','state_id' => '2871','name' => 'Zary'),\n \t array('id' => '32394','state_id' => '2871','name' => 'Zielona Gora'),\n \t array('id' => '32395','state_id' => '2872','name' => 'Malomice'),\n \t array('id' => '32396','state_id' => '2873','name' => 'Andrychow'),\n \t array('id' => '32397','state_id' => '2873','name' => 'Bochnia'),\n \t array('id' => '32398','state_id' => '2873','name' => 'Brzesko'),\n \t array('id' => '32399','state_id' => '2873','name' => 'Brzeszcze'),\n \t array('id' => '32400','state_id' => '2873','name' => 'Bukowno'),\n \t array('id' => '32401','state_id' => '2873','name' => 'Chelmek'),\n \t array('id' => '32402','state_id' => '2873','name' => 'Chrzanow'),\n \t array('id' => '32403','state_id' => '2873','name' => 'Dabrowa Tarnowska'),\n \t array('id' => '32404','state_id' => '2873','name' => 'Gorlice'),\n \t array('id' => '32405','state_id' => '2873','name' => 'Kety'),\n \t array('id' => '32406','state_id' => '2873','name' => 'Krakow'),\n \t array('id' => '32407','state_id' => '2873','name' => 'Krynica'),\n \t array('id' => '32408','state_id' => '2873','name' => 'Krzeszowice'),\n \t array('id' => '32409','state_id' => '2873','name' => 'Libiaz'),\n \t array('id' => '32410','state_id' => '2873','name' => 'Limanowa'),\n \t array('id' => '32411','state_id' => '2873','name' => 'Miechow'),\n \t array('id' => '32412','state_id' => '2873','name' => 'Myslenice'),\n \t array('id' => '32413','state_id' => '2873','name' => 'Nowy Sacz'),\n \t array('id' => '32414','state_id' => '2873','name' => 'Nowy Targ'),\n \t array('id' => '32415','state_id' => '2873','name' => 'Olkusz'),\n \t array('id' => '32416','state_id' => '2873','name' => 'Oswiecim'),\n \t array('id' => '32417','state_id' => '2873','name' => 'Poronin'),\n \t array('id' => '32418','state_id' => '2873','name' => 'Rabka'),\n \t array('id' => '32419','state_id' => '2873','name' => 'Skawina'),\n \t array('id' => '32420','state_id' => '2873','name' => 'Stary Sacz'),\n \t array('id' => '32421','state_id' => '2873','name' => 'Sucha Beskidzka'),\n \t array('id' => '32422','state_id' => '2873','name' => 'Tarnow'),\n \t array('id' => '32423','state_id' => '2873','name' => 'Trzebinia'),\n \t array('id' => '32424','state_id' => '2873','name' => 'Wadowice'),\n \t array('id' => '32425','state_id' => '2873','name' => 'Wieliczka'),\n \t array('id' => '32426','state_id' => '2873','name' => 'Wolbrom'),\n \t array('id' => '32427','state_id' => '2873','name' => 'Zakopane'),\n \t array('id' => '32428','state_id' => '2874','name' => 'Blonie'),\n \t array('id' => '32429','state_id' => '2874','name' => 'Brwinow'),\n \t array('id' => '32430','state_id' => '2874','name' => 'Ciechanow'),\n \t array('id' => '32431','state_id' => '2874','name' => 'Garwolin'),\n \t array('id' => '32432','state_id' => '2874','name' => 'Gora Kalwaria'),\n \t array('id' => '32433','state_id' => '2874','name' => 'Gostynin'),\n \t array('id' => '32434','state_id' => '2874','name' => 'Grodzisk Mazowiecki'),\n \t array('id' => '32435','state_id' => '2874','name' => 'Grojec'),\n \t array('id' => '32436','state_id' => '2874','name' => 'Jozefow'),\n \t array('id' => '32437','state_id' => '2874','name' => 'Karczew'),\n \t array('id' => '32438','state_id' => '2874','name' => 'Kobylka'),\n \t array('id' => '32439','state_id' => '2874','name' => 'Konstancin-Jeziorna'),\n \t array('id' => '32440','state_id' => '2874','name' => 'Kozienice'),\n \t array('id' => '32441','state_id' => '2874','name' => 'Legionowo'),\n \t array('id' => '32442','state_id' => '2874','name' => 'Lomianki'),\n \t array('id' => '32443','state_id' => '2874','name' => 'Makow Mazowiecki'),\n \t array('id' => '32444','state_id' => '2874','name' => 'Marki'),\n \t array('id' => '32445','state_id' => '2874','name' => 'Milanowek'),\n \t array('id' => '32446','state_id' => '2874','name' => 'Minsk Mazowiecki'),\n \t array('id' => '32447','state_id' => '2874','name' => 'Mlawa'),\n \t array('id' => '32448','state_id' => '2874','name' => 'Nowy Dwor Mazowiecki'),\n \t array('id' => '32449','state_id' => '2874','name' => 'Ostroleka'),\n \t array('id' => '32450','state_id' => '2874','name' => 'Ostrow Mazowiecka'),\n \t array('id' => '32451','state_id' => '2874','name' => 'Otwock'),\n \t array('id' => '32452','state_id' => '2874','name' => 'Piaseczno'),\n \t array('id' => '32453','state_id' => '2874','name' => 'Piastow'),\n \t array('id' => '32454','state_id' => '2874','name' => 'Pionki'),\n \t array('id' => '32455','state_id' => '2874','name' => 'Plock'),\n \t array('id' => '32456','state_id' => '2874','name' => 'Plonsk'),\n \t array('id' => '32457','state_id' => '2874','name' => 'Pruszkow'),\n \t array('id' => '32458','state_id' => '2874','name' => 'Przasnysz'),\n \t array('id' => '32459','state_id' => '2874','name' => 'Pultusk'),\n \t array('id' => '32460','state_id' => '2874','name' => 'Radom'),\n \t array('id' => '32461','state_id' => '2874','name' => 'Siedlce'),\n \t array('id' => '32462','state_id' => '2874','name' => 'Sierpc'),\n \t array('id' => '32463','state_id' => '2874','name' => 'Sochaczew'),\n \t array('id' => '32464','state_id' => '2874','name' => 'Sokolow Podlaski'),\n \t array('id' => '32465','state_id' => '2874','name' => 'Sulejowek'),\n \t array('id' => '32466','state_id' => '2874','name' => 'Szydlowiec'),\n \t array('id' => '32467','state_id' => '2874','name' => 'Warka'),\n \t array('id' => '32468','state_id' => '2874','name' => 'Warszawa'),\n \t array('id' => '32469','state_id' => '2874','name' => 'Wegrow'),\n \t array('id' => '32470','state_id' => '2874','name' => 'Wesola'),\n \t array('id' => '32471','state_id' => '2874','name' => 'Wolomin'),\n \t array('id' => '32472','state_id' => '2874','name' => 'Wyszkow'),\n \t array('id' => '32473','state_id' => '2874','name' => 'Zabki'),\n \t array('id' => '32474','state_id' => '2874','name' => 'Zielonka'),\n \t array('id' => '32475','state_id' => '2874','name' => 'Zyrardow'),\n \t array('id' => '32476','state_id' => '2875','name' => 'Dlugoteka'),\n \t array('id' => '32477','state_id' => '2876','name' => 'Brzeg'),\n \t array('id' => '32478','state_id' => '2876','name' => 'Glubczyce'),\n \t array('id' => '32479','state_id' => '2876','name' => 'Glucholazy'),\n \t array('id' => '32480','state_id' => '2876','name' => 'Grodkow'),\n \t array('id' => '32481','state_id' => '2876','name' => 'Kedzierzyn-Kozle'),\n \t array('id' => '32482','state_id' => '2876','name' => 'Kluczbork'),\n \t array('id' => '32483','state_id' => '2876','name' => 'Krapkowice'),\n \t array('id' => '32484','state_id' => '2876','name' => 'Namyslow'),\n \t array('id' => '32485','state_id' => '2876','name' => 'Niemodlin'),\n \t array('id' => '32486','state_id' => '2876','name' => 'Nysa'),\n \t array('id' => '32487','state_id' => '2876','name' => 'Olesno'),\n \t array('id' => '32488','state_id' => '2876','name' => 'Opole'),\n \t array('id' => '32489','state_id' => '2876','name' => 'Ozimek'),\n \t array('id' => '32490','state_id' => '2876','name' => 'Prudnik'),\n \t array('id' => '32491','state_id' => '2876','name' => 'Strzelce Opolskie'),\n \t array('id' => '32492','state_id' => '2876','name' => 'Zawadzkie'),\n \t array('id' => '32493','state_id' => '2876','name' => 'Zdzieszowice'),\n \t array('id' => '32494','state_id' => '2877','name' => 'Cmielow'),\n \t array('id' => '32495','state_id' => '2878','name' => 'Debica'),\n \t array('id' => '32496','state_id' => '2878','name' => 'Jaroslaw'),\n \t array('id' => '32497','state_id' => '2878','name' => 'Jaslo'),\n \t array('id' => '32498','state_id' => '2878','name' => 'Krosno'),\n \t array('id' => '32499','state_id' => '2878','name' => 'Lancut'),\n \t array('id' => '32500','state_id' => '2878','name' => 'Lezajsk'),\n \t array('id' => '32501','state_id' => '2878','name' => 'Lubaczow'),\n \t array('id' => '32502','state_id' => '2878','name' => 'Mielec'),\n \t array('id' => '32503','state_id' => '2878','name' => 'Nisko'),\n \t array('id' => '32504','state_id' => '2878','name' => 'Nowa Deba'),\n \t array('id' => '32505','state_id' => '2878','name' => 'Przemysl'),\n \t array('id' => '32506','state_id' => '2878','name' => 'Przeworsk'),\n \t array('id' => '32507','state_id' => '2878','name' => 'Ropczyce'),\n \t array('id' => '32508','state_id' => '2878','name' => 'Rzeszow'),\n \t array('id' => '32509','state_id' => '2878','name' => 'Sanok'),\n \t array('id' => '32510','state_id' => '2878','name' => 'Stalowa Wola'),\n \t array('id' => '32511','state_id' => '2878','name' => 'Tarnobrzeg'),\n \t array('id' => '32512','state_id' => '2878','name' => 'Ustrzyki Dolne'),\n \t array('id' => '32513','state_id' => '2879','name' => 'Augustow'),\n \t array('id' => '32514','state_id' => '2879','name' => 'Bialystok'),\n \t array('id' => '32515','state_id' => '2879','name' => 'Bielsk Podlaski'),\n \t array('id' => '32516','state_id' => '2879','name' => 'Czarna Bialostocka'),\n \t array('id' => '32517','state_id' => '2879','name' => 'Grajewo'),\n \t array('id' => '32518','state_id' => '2879','name' => 'Hajnowka'),\n \t array('id' => '32519','state_id' => '2879','name' => 'Kolno'),\n \t array('id' => '32520','state_id' => '2879','name' => 'Lapy'),\n \t array('id' => '32521','state_id' => '2879','name' => 'Lomza'),\n \t array('id' => '32522','state_id' => '2879','name' => 'Monki'),\n \t array('id' => '32523','state_id' => '2879','name' => 'Siemiatycze'),\n \t array('id' => '32524','state_id' => '2879','name' => 'Sokolka'),\n \t array('id' => '32525','state_id' => '2879','name' => 'Suwalki'),\n \t array('id' => '32526','state_id' => '2879','name' => 'Wysokie Mazowieckie'),\n \t array('id' => '32527','state_id' => '2879','name' => 'Zambrow'),\n \t array('id' => '32528','state_id' => '2880','name' => 'Bogumilowice'),\n \t array('id' => '32529','state_id' => '2881','name' => 'Bytow'),\n \t array('id' => '32530','state_id' => '2881','name' => 'Chojnice'),\n \t array('id' => '32531','state_id' => '2881','name' => 'Czersk'),\n \t array('id' => '32532','state_id' => '2881','name' => 'Czluchow'),\n \t array('id' => '32533','state_id' => '2881','name' => 'Gdansk'),\n \t array('id' => '32534','state_id' => '2881','name' => 'Gdynia'),\n \t array('id' => '32535','state_id' => '2881','name' => 'Kartuzy'),\n \t array('id' => '32536','state_id' => '2881','name' => 'Koscierzyna'),\n \t array('id' => '32537','state_id' => '2881','name' => 'Kwidzyn'),\n \t array('id' => '32538','state_id' => '2881','name' => 'Lebork'),\n \t array('id' => '32539','state_id' => '2881','name' => 'Malbork'),\n \t array('id' => '32540','state_id' => '2881','name' => 'Miastko'),\n \t array('id' => '32541','state_id' => '2881','name' => 'Nowy Dwor Gdanski'),\n \t array('id' => '32542','state_id' => '2881','name' => 'Pruszcz Gdanski'),\n \t array('id' => '32543','state_id' => '2881','name' => 'Puck'),\n \t array('id' => '32544','state_id' => '2881','name' => 'Reda'),\n \t array('id' => '32545','state_id' => '2881','name' => 'Rumia'),\n \t array('id' => '32546','state_id' => '2881','name' => 'Slupsk'),\n \t array('id' => '32547','state_id' => '2881','name' => 'Sopot'),\n \t array('id' => '32548','state_id' => '2881','name' => 'Starogard Gdanski'),\n \t array('id' => '32549','state_id' => '2881','name' => 'Sztum'),\n \t array('id' => '32550','state_id' => '2881','name' => 'Tczew'),\n \t array('id' => '32551','state_id' => '2881','name' => 'Ustka'),\n \t array('id' => '32552','state_id' => '2881','name' => 'Wejherowo'),\n \t array('id' => '32553','state_id' => '2881','name' => 'Wladyslawowo'),\n \t array('id' => '32554','state_id' => '2882','name' => 'Komorniki'),\n \t array('id' => '32555','state_id' => '2882','name' => 'Steszew'),\n \t array('id' => '32556','state_id' => '2883','name' => 'Raszyn'),\n \t array('id' => '32557','state_id' => '2884','name' => 'Rymanowska'),\n \t array('id' => '32558','state_id' => '2885','name' => 'Glogow Malopolski'),\n \t array('id' => '32559','state_id' => '2886','name' => 'Bedzin'),\n \t array('id' => '32560','state_id' => '2886','name' => 'Bielsko-Biala'),\n \t array('id' => '32561','state_id' => '2886','name' => 'Bierun'),\n \t array('id' => '32562','state_id' => '2886','name' => 'Blachowania'),\n \t array('id' => '32563','state_id' => '2886','name' => 'Bytom'),\n \t array('id' => '32564','state_id' => '2886','name' => 'Chorzow'),\n \t array('id' => '32565','state_id' => '2886','name' => 'Cieszyn'),\n \t array('id' => '32566','state_id' => '2886','name' => 'Czechowice-Dziedzice'),\n \t array('id' => '32567','state_id' => '2886','name' => 'Czeladz'),\n \t array('id' => '32568','state_id' => '2886','name' => 'Czerwionka-Leszczyny'),\n \t array('id' => '32569','state_id' => '2886','name' => 'Czestochowa'),\n \t array('id' => '32570','state_id' => '2886','name' => 'Dabrowa Gornicza'),\n \t array('id' => '32571','state_id' => '2886','name' => 'Gliwice'),\n \t array('id' => '32572','state_id' => '2886','name' => 'Jastrzebie-Zdroj'),\n \t array('id' => '32573','state_id' => '2886','name' => 'Jaworzno'),\n \t array('id' => '32574','state_id' => '2886','name' => 'Kalety'),\n \t array('id' => '32575','state_id' => '2886','name' => 'Katowice'),\n \t array('id' => '32576','state_id' => '2886','name' => 'Klobuck'),\n \t array('id' => '32577','state_id' => '2886','name' => 'Knurow'),\n \t array('id' => '32578','state_id' => '2886','name' => 'Laziska Gorne'),\n \t array('id' => '32579','state_id' => '2886','name' => 'Ledziny'),\n \t array('id' => '32580','state_id' => '2886','name' => 'Lubliniec'),\n \t array('id' => '32581','state_id' => '2886','name' => 'Mikolow'),\n \t array('id' => '32582','state_id' => '2886','name' => 'Myslowice'),\n \t array('id' => '32583','state_id' => '2886','name' => 'Myszkow'),\n \t array('id' => '32584','state_id' => '2886','name' => 'Orzesze'),\n \t array('id' => '32585','state_id' => '2886','name' => 'Piekary Slaskie'),\n \t array('id' => '32586','state_id' => '2886','name' => 'Poreba'),\n \t array('id' => '32587','state_id' => '2886','name' => 'Pszczyna'),\n \t array('id' => '32588','state_id' => '2886','name' => 'Pszow'),\n \t array('id' => '32589','state_id' => '2886','name' => 'Pyskowice'),\n \t array('id' => '32590','state_id' => '2886','name' => 'Raciborz'),\n \t array('id' => '32591','state_id' => '2886','name' => 'Radlin'),\n \t array('id' => '32592','state_id' => '2886','name' => 'Radzionkow'),\n \t array('id' => '32593','state_id' => '2886','name' => 'Ruda Slaska'),\n \t array('id' => '32594','state_id' => '2886','name' => 'Rybnik'),\n \t array('id' => '32595','state_id' => '2886','name' => 'Rydultowy'),\n \t array('id' => '32596','state_id' => '2886','name' => 'Siemianowice Slaskie'),\n \t array('id' => '32597','state_id' => '2886','name' => 'Skoczow'),\n \t array('id' => '32598','state_id' => '2886','name' => 'Sosnowiec'),\n \t array('id' => '32599','state_id' => '2886','name' => 'Swietochlowice'),\n \t array('id' => '32600','state_id' => '2886','name' => 'Tarnowskie Gory'),\n \t array('id' => '32601','state_id' => '2886','name' => 'Tychy'),\n \t array('id' => '32602','state_id' => '2886','name' => 'Ustron'),\n \t array('id' => '32603','state_id' => '2886','name' => 'Wisla'),\n \t array('id' => '32604','state_id' => '2886','name' => 'Wodzislaw Slaski'),\n \t array('id' => '32605','state_id' => '2886','name' => 'Wojkowice'),\n \t array('id' => '32606','state_id' => '2886','name' => 'Zabrze'),\n \t array('id' => '32607','state_id' => '2886','name' => 'Zawiercie'),\n \t array('id' => '32608','state_id' => '2886','name' => 'Zory'),\n \t array('id' => '32609','state_id' => '2886','name' => 'Zywiec'),\n \t array('id' => '32610','state_id' => '2888','name' => 'Busko-Zdroj'),\n \t array('id' => '32611','state_id' => '2888','name' => 'Jedrzejow'),\n \t array('id' => '32612','state_id' => '2888','name' => 'Kielce'),\n \t array('id' => '32613','state_id' => '2888','name' => 'Konskie'),\n \t array('id' => '32614','state_id' => '2888','name' => 'Ostrowiec Swietokrzyski'),\n \t array('id' => '32615','state_id' => '2888','name' => 'Pinczow'),\n \t array('id' => '32616','state_id' => '2888','name' => 'Polaniec'),\n \t array('id' => '32617','state_id' => '2888','name' => 'Sandomierz'),\n \t array('id' => '32618','state_id' => '2888','name' => 'Skarzysko-Kamienna'),\n \t array('id' => '32619','state_id' => '2888','name' => 'Starachowice'),\n \t array('id' => '32620','state_id' => '2888','name' => 'Staszow'),\n \t array('id' => '32621','state_id' => '2888','name' => 'Suchedniow'),\n \t array('id' => '32622','state_id' => '2888','name' => 'Wloszczowa'),\n \t array('id' => '32623','state_id' => '2889','name' => 'Bartoszyce'),\n \t array('id' => '32624','state_id' => '2889','name' => 'Biskupiec'),\n \t array('id' => '32625','state_id' => '2889','name' => 'Braniewo'),\n \t array('id' => '32626','state_id' => '2889','name' => 'Dobre Miasto'),\n \t array('id' => '32627','state_id' => '2889','name' => 'Dzialdowo'),\n \t array('id' => '32628','state_id' => '2889','name' => 'Elblag'),\n \t array('id' => '32629','state_id' => '2889','name' => 'Elk'),\n \t array('id' => '32630','state_id' => '2889','name' => 'Gizycko'),\n \t array('id' => '32631','state_id' => '2889','name' => 'Goldap'),\n \t array('id' => '32632','state_id' => '2889','name' => 'Ilawa'),\n \t array('id' => '32633','state_id' => '2889','name' => 'Ketrzyn'),\n \t array('id' => '32634','state_id' => '2889','name' => 'Lidzbark Warminski'),\n \t array('id' => '32635','state_id' => '2889','name' => 'Lubawa'),\n \t array('id' => '32636','state_id' => '2889','name' => 'Morag'),\n \t array('id' => '32637','state_id' => '2889','name' => 'Mragowo'),\n \t array('id' => '32638','state_id' => '2889','name' => 'Nidzica'),\n \t array('id' => '32639','state_id' => '2889','name' => 'Nowe Miasto Lubawskie'),\n \t array('id' => '32640','state_id' => '2889','name' => 'Olecko'),\n \t array('id' => '32641','state_id' => '2889','name' => 'Olsztyn'),\n \t array('id' => '32642','state_id' => '2889','name' => 'Orneta'),\n \t array('id' => '32643','state_id' => '2889','name' => 'Ostroda'),\n \t array('id' => '32644','state_id' => '2889','name' => 'Paslek'),\n \t array('id' => '32645','state_id' => '2889','name' => 'Pisz'),\n \t array('id' => '32646','state_id' => '2889','name' => 'Szczytno'),\n \t array('id' => '32647','state_id' => '2889','name' => 'Wegorzewo'),\n \t array('id' => '32648','state_id' => '2890','name' => 'Nadarzyn'),\n \t array('id' => '32649','state_id' => '2890','name' => 'Szemud'),\n \t array('id' => '32650','state_id' => '2890','name' => 'Warsaw'),\n \t array('id' => '32651','state_id' => '2891','name' => 'Goscicino'),\n \t array('id' => '32652','state_id' => '2892','name' => 'Chodziez'),\n \t array('id' => '32653','state_id' => '2892','name' => 'Czarnkow'),\n \t array('id' => '32654','state_id' => '2892','name' => 'Gniezno'),\n \t array('id' => '32655','state_id' => '2892','name' => 'Gostyn'),\n \t array('id' => '32656','state_id' => '2892','name' => 'Grodzisk Wielkopolski'),\n \t array('id' => '32657','state_id' => '2892','name' => 'Jarocin'),\n \t array('id' => '32658','state_id' => '2892','name' => 'Kalisz'),\n \t array('id' => '32659','state_id' => '2892','name' => 'Kepno'),\n \t array('id' => '32660','state_id' => '2892','name' => 'Kolo'),\n \t array('id' => '32661','state_id' => '2892','name' => 'Konin'),\n \t array('id' => '32662','state_id' => '2892','name' => 'Koscian'),\n \t array('id' => '32663','state_id' => '2892','name' => 'Krotoszyn'),\n \t array('id' => '32664','state_id' => '2892','name' => 'Leszno'),\n \t array('id' => '32665','state_id' => '2892','name' => 'Lubon'),\n \t array('id' => '32666','state_id' => '2892','name' => 'Miedzychod'),\n \t array('id' => '32667','state_id' => '2892','name' => 'Mosina'),\n \t array('id' => '32668','state_id' => '2892','name' => 'Murowana Goslina'),\n \t array('id' => '32669','state_id' => '2892','name' => 'Nowy Tomysl'),\n \t array('id' => '32670','state_id' => '2892','name' => 'Oborniki'),\n \t array('id' => '32671','state_id' => '2892','name' => 'Opalenica'),\n \t array('id' => '32672','state_id' => '2892','name' => 'Ostrow Wielkopolski'),\n \t array('id' => '32673','state_id' => '2892','name' => 'Ostrzeszow'),\n \t array('id' => '32674','state_id' => '2892','name' => 'Pila'),\n \t array('id' => '32675','state_id' => '2892','name' => 'Pleszew'),\n \t array('id' => '32676','state_id' => '2892','name' => 'Poznan'),\n \t array('id' => '32677','state_id' => '2892','name' => 'Rawicz'),\n \t array('id' => '32678','state_id' => '2892','name' => 'Rogozno'),\n \t array('id' => '32679','state_id' => '2892','name' => 'Slupca'),\n \t array('id' => '32680','state_id' => '2892','name' => 'Srem'),\n \t array('id' => '32681','state_id' => '2892','name' => 'Sroda Wielkopolska'),\n \t array('id' => '32682','state_id' => '2892','name' => 'Swarzedz'),\n \t array('id' => '32683','state_id' => '2892','name' => 'Szamotuly'),\n \t array('id' => '32684','state_id' => '2892','name' => 'Trzcianka'),\n \t array('id' => '32685','state_id' => '2892','name' => 'Tuliszkow'),\n \t array('id' => '32686','state_id' => '2892','name' => 'Turek'),\n \t array('id' => '32687','state_id' => '2892','name' => 'Wagrowiec'),\n \t array('id' => '32688','state_id' => '2892','name' => 'Wolsztyn'),\n \t array('id' => '32689','state_id' => '2892','name' => 'Wronki'),\n \t array('id' => '32690','state_id' => '2892','name' => 'Wrzesnia'),\n \t array('id' => '32691','state_id' => '2892','name' => 'Zlotow'),\n \t array('id' => '32692','state_id' => '2893','name' => 'Borowa'),\n \t array('id' => '32693','state_id' => '2894','name' => 'Barlinek'),\n \t array('id' => '32694','state_id' => '2894','name' => 'Bialogard'),\n \t array('id' => '32695','state_id' => '2894','name' => 'Choszczno'),\n \t array('id' => '32696','state_id' => '2894','name' => 'Darlowo'),\n \t array('id' => '32697','state_id' => '2894','name' => 'Debno'),\n \t array('id' => '32698','state_id' => '2894','name' => 'Drawsko Pomorskie'),\n \t array('id' => '32699','state_id' => '2894','name' => 'Goleniow'),\n \t array('id' => '32700','state_id' => '2894','name' => 'Gryfice'),\n \t array('id' => '32701','state_id' => '2894','name' => 'Gryfino'),\n \t array('id' => '32702','state_id' => '2894','name' => 'Kamien Pomorski'),\n \t array('id' => '32703','state_id' => '2894','name' => 'Kolobrzeg'),\n \t array('id' => '32704','state_id' => '2894','name' => 'Koszalin'),\n \t array('id' => '32705','state_id' => '2894','name' => 'Lobez'),\n \t array('id' => '32706','state_id' => '2894','name' => 'Mysliborz'),\n \t array('id' => '32707','state_id' => '2894','name' => 'Nowogard'),\n \t array('id' => '32708','state_id' => '2894','name' => 'Polczyn-Zdroj'),\n \t array('id' => '32709','state_id' => '2894','name' => 'Police'),\n \t array('id' => '32710','state_id' => '2894','name' => 'Pyrzyce'),\n \t array('id' => '32711','state_id' => '2894','name' => 'Slawno'),\n \t array('id' => '32712','state_id' => '2894','name' => 'Stargard Szczecinski'),\n \t array('id' => '32713','state_id' => '2894','name' => 'Swidwin'),\n \t array('id' => '32714','state_id' => '2894','name' => 'Swinoujscie'),\n \t array('id' => '32715','state_id' => '2894','name' => 'Szczecin'),\n \t array('id' => '32716','state_id' => '2894','name' => 'Szczecinek'),\n \t array('id' => '32717','state_id' => '2894','name' => 'Trzebiatow'),\n \t array('id' => '32718','state_id' => '2894','name' => 'Walcz'),\n \t array('id' => '32719','state_id' => '2894','name' => 'Zlocieniec'),\n \t array('id' => '32720','state_id' => '2895','name' => 'Zukowskie'),\n \t array('id' => '32721','state_id' => '2896','name' => 'Tramagal'),\n \t array('id' => '32722','state_id' => '2897','name' => 'Angra'),\n \t array('id' => '32723','state_id' => '2897','name' => 'Arrifes'),\n \t array('id' => '32724','state_id' => '2897','name' => 'Faja de Baixo'),\n \t array('id' => '32725','state_id' => '2897','name' => 'Horta'),\n \t array('id' => '32726','state_id' => '2897','name' => 'Lagoa'),\n \t array('id' => '32727','state_id' => '2897','name' => 'Ponta Delgada'),\n \t array('id' => '32728','state_id' => '2897','name' => 'Praia da Vitoria'),\n \t array('id' => '32729','state_id' => '2897','name' => 'Rabo de Peixe'),\n \t array('id' => '32730','state_id' => '2897','name' => 'Ribeira Grande'),\n \t array('id' => '32731','state_id' => '2897','name' => 'Rosto do Cao'),\n \t array('id' => '32732','state_id' => '2897','name' => 'Vila Franca do Campo'),\n \t array('id' => '32733','state_id' => '2898','name' => 'Alcacer do Sal'),\n \t array('id' => '32734','state_id' => '2898','name' => 'Aljustrel'),\n \t array('id' => '32735','state_id' => '2898','name' => 'Beja'),\n \t array('id' => '32736','state_id' => '2898','name' => 'Borba'),\n \t array('id' => '32737','state_id' => '2898','name' => 'Caia e Sao Pedro'),\n \t array('id' => '32738','state_id' => '2898','name' => 'Campo Maior'),\n \t array('id' => '32739','state_id' => '2898','name' => 'Castro Verde'),\n \t array('id' => '32740','state_id' => '2898','name' => 'Cercal'),\n \t array('id' => '32741','state_id' => '2898','name' => 'Elvas'),\n \t array('id' => '32742','state_id' => '2898','name' => 'Estremoz'),\n \t array('id' => '32743','state_id' => '2898','name' => 'Evora'),\n \t array('id' => '32744','state_id' => '2898','name' => 'Ferreira do Alentejo'),\n \t array('id' => '32745','state_id' => '2898','name' => 'Grandola'),\n \t array('id' => '32746','state_id' => '2898','name' => 'Montemor-o-Novo'),\n \t array('id' => '32747','state_id' => '2898','name' => 'Moura'),\n \t array('id' => '32748','state_id' => '2898','name' => 'Odemira'),\n \t array('id' => '32749','state_id' => '2898','name' => 'Ponte de Sor'),\n \t array('id' => '32750','state_id' => '2898','name' => 'Portalegre'),\n \t array('id' => '32751','state_id' => '2898','name' => 'Redondo'),\n \t array('id' => '32752','state_id' => '2898','name' => 'Reguengos de Monsaraz'),\n \t array('id' => '32753','state_id' => '2898','name' => 'Santiago do Cacem'),\n \t array('id' => '32754','state_id' => '2898','name' => 'Santo Andre'),\n \t array('id' => '32755','state_id' => '2898','name' => 'Sao Teotonio'),\n \t array('id' => '32756','state_id' => '2898','name' => 'Serpa'),\n \t array('id' => '32757','state_id' => '2898','name' => 'Sines'),\n \t array('id' => '32758','state_id' => '2898','name' => 'Vendas Novas'),\n \t array('id' => '32759','state_id' => '2898','name' => 'Vila Nova de Milfontes'),\n \t array('id' => '32760','state_id' => '2898','name' => 'Vila Vicosa'),\n \t array('id' => '32761','state_id' => '2899','name' => 'Albufeira'),\n \t array('id' => '32762','state_id' => '2899','name' => 'Aljezur'),\n \t array('id' => '32763','state_id' => '2899','name' => 'Almancil'),\n \t array('id' => '32764','state_id' => '2899','name' => 'Alvor'),\n \t array('id' => '32765','state_id' => '2899','name' => 'Armacao de Pera'),\n \t array('id' => '32766','state_id' => '2899','name' => 'Boliqueime'),\n \t array('id' => '32767','state_id' => '2899','name' => 'Castro Marim'),\n \t array('id' => '32768','state_id' => '2899','name' => 'Estombar'),\n \t array('id' => '32769','state_id' => '2899','name' => 'Faro'),\n \t array('id' => '32770','state_id' => '2899','name' => 'Ferreiras'),\n \t array('id' => '32771','state_id' => '2899','name' => 'Guia'),\n \t array('id' => '32772','state_id' => '2899','name' => 'Lagoa'),\n \t array('id' => '32773','state_id' => '2899','name' => 'Lagos'),\n \t array('id' => '32774','state_id' => '2899','name' => 'Loule'),\n \t array('id' => '32775','state_id' => '2899','name' => 'Luz'),\n \t array('id' => '32776','state_id' => '2899','name' => 'Moncarapacho'),\n \t array('id' => '32777','state_id' => '2899','name' => 'Monchique'),\n \t array('id' => '32778','state_id' => '2899','name' => 'Monte Gordo'),\n \t array('id' => '32779','state_id' => '2899','name' => 'Montenegro'),\n \t array('id' => '32780','state_id' => '2899','name' => 'Olhao'),\n \t array('id' => '32781','state_id' => '2899','name' => 'Portimao'),\n \t array('id' => '32782','state_id' => '2899','name' => 'Quarteira'),\n \t array('id' => '32783','state_id' => '2899','name' => 'Santa Barbara de Nexe'),\n \t array('id' => '32784','state_id' => '2899','name' => 'Sao Bartolomeu de Messines'),\n \t array('id' => '32785','state_id' => '2899','name' => 'Sao Bras de Alportel'),\n \t array('id' => '32786','state_id' => '2899','name' => 'Silves'),\n \t array('id' => '32787','state_id' => '2899','name' => 'Tavira'),\n \t array('id' => '32788','state_id' => '2899','name' => 'Vila Real de Santo Antonio'),\n \t array('id' => '32789','state_id' => '2900','name' => 'Fafe'),\n \t array('id' => '32790','state_id' => '2900','name' => 'Forjaes'),\n \t array('id' => '32791','state_id' => '2900','name' => 'Vianna do Castello'),\n \t array('id' => '32792','state_id' => '2901','name' => 'Abraveses'),\n \t array('id' => '32793','state_id' => '2901','name' => 'Aguada de Cima'),\n \t array('id' => '32794','state_id' => '2901','name' => 'Agueda'),\n \t array('id' => '32795','state_id' => '2901','name' => 'Albergaria-A-Velha'),\n \t array('id' => '32796','state_id' => '2901','name' => 'Alcains'),\n \t array('id' => '32797','state_id' => '2901','name' => 'Alhadas'),\n \t array('id' => '32798','state_id' => '2901','name' => 'Amor'),\n \t array('id' => '32799','state_id' => '2901','name' => 'Aradas'),\n \t array('id' => '32800','state_id' => '2901','name' => 'Arazede'),\n \t array('id' => '32801','state_id' => '2901','name' => 'Arcos'),\n \t array('id' => '32802','state_id' => '2901','name' => 'Arganil'),\n \t array('id' => '32803','state_id' => '2901','name' => 'Avanca'),\n \t array('id' => '32804','state_id' => '2901','name' => 'Aveiro'),\n \t array('id' => '32805','state_id' => '2901','name' => 'Batalha'),\n \t array('id' => '32806','state_id' => '2901','name' => 'Beduido'),\n \t array('id' => '32807','state_id' => '2901','name' => 'Branca'),\n \t array('id' => '32808','state_id' => '2901','name' => 'Buarcos'),\n \t array('id' => '32809','state_id' => '2901','name' => 'Campo'),\n \t array('id' => '32810','state_id' => '2901','name' => 'Cantanhede'),\n \t array('id' => '32811','state_id' => '2901','name' => 'Caranguejeira'),\n \t array('id' => '32812','state_id' => '2901','name' => 'Castanheira de Pera'),\n \t array('id' => '32813','state_id' => '2901','name' => 'Castelo Branco'),\n \t array('id' => '32814','state_id' => '2901','name' => 'Castro Daire'),\n \t array('id' => '32815','state_id' => '2901','name' => 'Coimbra'),\n \t array('id' => '32816','state_id' => '2901','name' => 'Condeixa-A-Nova'),\n \t array('id' => '32817','state_id' => '2901','name' => 'Cortegaca'),\n \t array('id' => '32818','state_id' => '2901','name' => 'Covilha'),\n \t array('id' => '32819','state_id' => '2901','name' => 'Eixo'),\n \t array('id' => '32820','state_id' => '2901','name' => 'Esmoriz'),\n \t array('id' => '32821','state_id' => '2901','name' => 'Figueira da Foz'),\n \t array('id' => '32822','state_id' => '2901','name' => 'Fundao'),\n \t array('id' => '32823','state_id' => '2901','name' => 'Gafanha da Encarnacao'),\n \t array('id' => '32824','state_id' => '2901','name' => 'Gafanha da Nazare'),\n \t array('id' => '32825','state_id' => '2901','name' => 'Guarda'),\n \t array('id' => '32826','state_id' => '2901','name' => 'Ilhavo'),\n \t array('id' => '32827','state_id' => '2901','name' => 'Lavos'),\n \t array('id' => '32828','state_id' => '2901','name' => 'Leiria'),\n \t array('id' => '32829','state_id' => '2901','name' => 'Lorvao'),\n \t array('id' => '32830','state_id' => '2901','name' => 'Lourical'),\n \t array('id' => '32831','state_id' => '2901','name' => 'Lousa'),\n \t array('id' => '32832','state_id' => '2901','name' => 'Maceira'),\n \t array('id' => '32833','state_id' => '2901','name' => 'Mangualde'),\n \t array('id' => '32834','state_id' => '2901','name' => 'Marinha Grande'),\n \t array('id' => '32835','state_id' => '2901','name' => 'Mealhada'),\n \t array('id' => '32836','state_id' => '2901','name' => 'Mira'),\n \t array('id' => '32837','state_id' => '2901','name' => 'Mira de Aire'),\n \t array('id' => '32838','state_id' => '2901','name' => 'Miranda do Corvo'),\n \t array('id' => '32839','state_id' => '2901','name' => 'Monte Redondo'),\n \t array('id' => '32840','state_id' => '2901','name' => 'Nelas'),\n \t array('id' => '32841','state_id' => '2901','name' => 'Oia'),\n \t array('id' => '32842','state_id' => '2901','name' => 'Oliveira do Bairro'),\n \t array('id' => '32843','state_id' => '2901','name' => 'Oliveira do Hospital'),\n \t array('id' => '32844','state_id' => '2901','name' => 'Oliveirinha'),\n \t array('id' => '32845','state_id' => '2901','name' => 'Ovar'),\n \t array('id' => '32846','state_id' => '2901','name' => 'Pampilhosa'),\n \t array('id' => '32847','state_id' => '2901','name' => 'Pardilho'),\n \t array('id' => '32848','state_id' => '2901','name' => 'Poiares'),\n \t array('id' => '32849','state_id' => '2901','name' => 'Pombal'),\n \t array('id' => '32850','state_id' => '2901','name' => 'Porto de Mos'),\n \t array('id' => '32851','state_id' => '2901','name' => 'Proenca-A-Nova'),\n \t array('id' => '32852','state_id' => '2901','name' => 'Rio de Loba'),\n \t array('id' => '32853','state_id' => '2901','name' => 'Salreu'),\n \t array('id' => '32854','state_id' => '2901','name' => 'Sangalhos'),\n \t array('id' => '32855','state_id' => '2901','name' => 'Santa Catarina da Serra'),\n \t array('id' => '32856','state_id' => '2901','name' => 'Sao Joao'),\n \t array('id' => '32857','state_id' => '2901','name' => 'Sao Pedro do Sul'),\n \t array('id' => '32858','state_id' => '2901','name' => 'Satao'),\n \t array('id' => '32859','state_id' => '2901','name' => 'Seia'),\n \t array('id' => '32860','state_id' => '2901','name' => 'Serta'),\n \t array('id' => '32861','state_id' => '2901','name' => 'Soure'),\n \t array('id' => '32862','state_id' => '2901','name' => 'Souto da Carpalhosa'),\n \t array('id' => '32863','state_id' => '2901','name' => 'Tavarede'),\n \t array('id' => '32864','state_id' => '2901','name' => 'Teixoso'),\n \t array('id' => '32865','state_id' => '2901','name' => 'Tondela'),\n \t array('id' => '32866','state_id' => '2901','name' => 'Tortosendo'),\n \t array('id' => '32867','state_id' => '2901','name' => 'Vagos'),\n \t array('id' => '32868','state_id' => '2901','name' => 'Valega'),\n \t array('id' => '32869','state_id' => '2901','name' => 'Valongo do Vouga'),\n \t array('id' => '32870','state_id' => '2901','name' => 'Vieira de Leiria'),\n \t array('id' => '32871','state_id' => '2901','name' => 'Viseu'),\n \t array('id' => '32872','state_id' => '2907','name' => 'Camacha'),\n \t array('id' => '32873','state_id' => '2907','name' => 'Camara de Lobos'),\n \t array('id' => '32874','state_id' => '2907','name' => 'Campanario'),\n \t array('id' => '32875','state_id' => '2907','name' => 'Canico'),\n \t array('id' => '32876','state_id' => '2907','name' => 'Funchal'),\n \t array('id' => '32877','state_id' => '2907','name' => 'Machico'),\n \t array('id' => '32878','state_id' => '2907','name' => 'Ponta do Sol'),\n \t array('id' => '32879','state_id' => '2907','name' => 'Porto Santo'),\n \t array('id' => '32880','state_id' => '2907','name' => 'Ribeira Brava'),\n \t array('id' => '32881','state_id' => '2907','name' => 'Santa Cruz'),\n \t array('id' => '32882','state_id' => '2908','name' => 'A Ver-o-Mar'),\n \t array('id' => '32883','state_id' => '2908','name' => 'Adaufe'),\n \t array('id' => '32884','state_id' => '2908','name' => 'Aguas Santas'),\n \t array('id' => '32885','state_id' => '2908','name' => 'Agucadoura'),\n \t array('id' => '32886','state_id' => '2908','name' => 'Alfena'),\n \t array('id' => '32887','state_id' => '2908','name' => 'Alpendurada e Matos'),\n \t array('id' => '32888','state_id' => '2908','name' => 'Amarante'),\n \t array('id' => '32889','state_id' => '2908','name' => 'Anta'),\n \t array('id' => '32890','state_id' => '2908','name' => 'Antas'),\n \t array('id' => '32891','state_id' => '2908','name' => 'Apulia'),\n \t array('id' => '32892','state_id' => '2908','name' => 'Arcozelo'),\n \t array('id' => '32893','state_id' => '2908','name' => 'Areosa'),\n \t array('id' => '32894','state_id' => '2908','name' => 'Argoncilhe'),\n \t array('id' => '32895','state_id' => '2908','name' => 'Aroes'),\n \t array('id' => '32896','state_id' => '2908','name' => 'Arrifana'),\n \t array('id' => '32897','state_id' => '2908','name' => 'Arvore'),\n \t array('id' => '32898','state_id' => '2908','name' => 'Aves'),\n \t array('id' => '32899','state_id' => '2908','name' => 'Avintes'),\n \t array('id' => '32900','state_id' => '2908','name' => 'Baguim do Monte'),\n \t array('id' => '32901','state_id' => '2908','name' => 'Baltar'),\n \t array('id' => '32902','state_id' => '2908','name' => 'Barcelos'),\n \t array('id' => '32903','state_id' => '2908','name' => 'Barrosas'),\n \t array('id' => '32904','state_id' => '2908','name' => 'Bougado'),\n \t array('id' => '32905','state_id' => '2908','name' => 'Braga'),\n \t array('id' => '32906','state_id' => '2908','name' => 'Braganca'),\n \t array('id' => '32907','state_id' => '2908','name' => 'Brito'),\n \t array('id' => '32908','state_id' => '2908','name' => 'Caldas de Vizela'),\n \t array('id' => '32909','state_id' => '2908','name' => 'Caldelas'),\n \t array('id' => '32910','state_id' => '2908','name' => 'Calendario'),\n \t array('id' => '32911','state_id' => '2908','name' => 'Campo'),\n \t array('id' => '32912','state_id' => '2908','name' => 'Candoso'),\n \t array('id' => '32913','state_id' => '2908','name' => 'Canedo'),\n \t array('id' => '32914','state_id' => '2908','name' => 'Canelas'),\n \t array('id' => '32915','state_id' => '2908','name' => 'Canidelo'),\n \t array('id' => '32916','state_id' => '2908','name' => 'Carvalhosa'),\n \t array('id' => '32917','state_id' => '2908','name' => 'Casteloes de Cepeda'),\n \t array('id' => '32918','state_id' => '2908','name' => 'Chaves'),\n \t array('id' => '32919','state_id' => '2908','name' => 'Coronado'),\n \t array('id' => '32920','state_id' => '2908','name' => 'Couto'),\n \t array('id' => '32921','state_id' => '2908','name' => 'Custoias'),\n \t array('id' => '32922','state_id' => '2908','name' => 'Darque'),\n \t array('id' => '32923','state_id' => '2908','name' => 'Ermesinde'),\n \t array('id' => '32924','state_id' => '2908','name' => 'Espinho'),\n \t array('id' => '32925','state_id' => '2908','name' => 'Fafe'),\n \t array('id' => '32926','state_id' => '2908','name' => 'Fanzeres'),\n \t array('id' => '32927','state_id' => '2908','name' => 'Feira'),\n \t array('id' => '32928','state_id' => '2908','name' => 'Ferreira'),\n \t array('id' => '32929','state_id' => '2908','name' => 'Ferreiros'),\n \t array('id' => '32930','state_id' => '2908','name' => 'Fiaes'),\n \t array('id' => '32931','state_id' => '2908','name' => 'Figueiro'),\n \t array('id' => '32932','state_id' => '2908','name' => 'Foz do Sousa'),\n \t array('id' => '32933','state_id' => '2908','name' => 'Frazao'),\n \t array('id' => '32934','state_id' => '2908','name' => 'Freamunde'),\n \t array('id' => '32935','state_id' => '2908','name' => 'Galegos'),\n \t array('id' => '32936','state_id' => '2908','name' => 'Gandra'),\n \t array('id' => '32937','state_id' => '2908','name' => 'Gemunde'),\n \t array('id' => '32938','state_id' => '2908','name' => 'Godim'),\n \t array('id' => '32939','state_id' => '2908','name' => 'Gondomar'),\n \t array('id' => '32940','state_id' => '2908','name' => 'Grijo'),\n \t array('id' => '32941','state_id' => '2908','name' => 'Gueifaes'),\n \t array('id' => '32942','state_id' => '2908','name' => 'Guifoes'),\n \t array('id' => '32943','state_id' => '2908','name' => 'Guimaraes'),\n \t array('id' => '32944','state_id' => '2908','name' => 'Gulpilhares'),\n \t array('id' => '32945','state_id' => '2908','name' => 'Joane'),\n \t array('id' => '32946','state_id' => '2908','name' => 'Jovim'),\n \t array('id' => '32947','state_id' => '2908','name' => 'Lamego'),\n \t array('id' => '32948','state_id' => '2908','name' => 'Lavra'),\n \t array('id' => '32949','state_id' => '2908','name' => 'Leca da Palmeira'),\n \t array('id' => '32950','state_id' => '2908','name' => 'Leca do Bailio'),\n \t array('id' => '32951','state_id' => '2908','name' => 'Lobao'),\n \t array('id' => '32952','state_id' => '2908','name' => 'Lordelo'),\n \t array('id' => '32953','state_id' => '2908','name' => 'Lourosa'),\n \t array('id' => '32954','state_id' => '2908','name' => 'Lustosa'),\n \t array('id' => '32955','state_id' => '2908','name' => 'Macedo de Cavaleiros'),\n \t array('id' => '32956','state_id' => '2908','name' => 'Macieira de Cambra'),\n \t array('id' => '32957','state_id' => '2908','name' => 'Madalena'),\n \t array('id' => '32958','state_id' => '2908','name' => 'Maia'),\n \t array('id' => '32959','state_id' => '2908','name' => 'Margaride'),\n \t array('id' => '32960','state_id' => '2908','name' => 'Marinhas'),\n \t array('id' => '32961','state_id' => '2908','name' => 'Matosinhos'),\n \t array('id' => '32962','state_id' => '2908','name' => 'Meadela'),\n \t array('id' => '32963','state_id' => '2908','name' => 'Meinedo'),\n \t array('id' => '32964','state_id' => '2908','name' => 'Milheiros'),\n \t array('id' => '32965','state_id' => '2908','name' => 'Milheiros de Poiares'),\n \t array('id' => '32966','state_id' => '2908','name' => 'Mirandela'),\n \t array('id' => '32967','state_id' => '2908','name' => 'Mogadouro'),\n \t array('id' => '32968','state_id' => '2908','name' => 'Moreira'),\n \t array('id' => '32969','state_id' => '2908','name' => 'Moreira de Conegos'),\n \t array('id' => '32970','state_id' => '2908','name' => 'Mozelos'),\n \t array('id' => '32971','state_id' => '2908','name' => 'Negrelos'),\n \t array('id' => '32972','state_id' => '2908','name' => 'Nogueira'),\n \t array('id' => '32973','state_id' => '2908','name' => 'Nogueira da Regedoura'),\n \t array('id' => '32974','state_id' => '2908','name' => 'Olival'),\n \t array('id' => '32975','state_id' => '2908','name' => 'Oliveira'),\n \t array('id' => '32976','state_id' => '2908','name' => 'Oliveira de Azemeis'),\n \t array('id' => '32977','state_id' => '2908','name' => 'Oliveira do Douro'),\n \t array('id' => '32978','state_id' => '2908','name' => 'Pacos de Brandao'),\n \t array('id' => '32979','state_id' => '2908','name' => 'Pacos de Ferreira'),\n \t array('id' => '32980','state_id' => '2908','name' => 'Pedroso'),\n \t array('id' => '32981','state_id' => '2908','name' => 'Pedroucos'),\n \t array('id' => '32982','state_id' => '2908','name' => 'Penafiel'),\n \t array('id' => '32983','state_id' => '2908','name' => 'Perafita'),\n \t array('id' => '32984','state_id' => '2908','name' => 'Perozinho'),\n \t array('id' => '32985','state_id' => '2908','name' => 'Peso da Regua'),\n \t array('id' => '32986','state_id' => '2908','name' => 'Ponte'),\n \t array('id' => '32987','state_id' => '2908','name' => 'Porto'),\n \t array('id' => '32988','state_id' => '2908','name' => 'Povoa de Lanhoso'),\n \t array('id' => '32989','state_id' => '2908','name' => 'Povoa de Varzim'),\n \t array('id' => '32990','state_id' => '2908','name' => 'Real'),\n \t array('id' => '32991','state_id' => '2908','name' => 'Rebordosa'),\n \t array('id' => '32992','state_id' => '2908','name' => 'Recarei'),\n \t array('id' => '32993','state_id' => '2908','name' => 'Refojos de Basto'),\n \t array('id' => '32994','state_id' => '2908','name' => 'Ribeirao'),\n \t array('id' => '32995','state_id' => '2908','name' => 'Rio Meao'),\n \t array('id' => '32996','state_id' => '2908','name' => 'Rio Tinto'),\n \t array('id' => '32997','state_id' => '2908','name' => 'Ronfe'),\n \t array('id' => '32998','state_id' => '2908','name' => 'Sande'),\n \t array('id' => '32999','state_id' => '2908','name' => 'Sandim'),\n \t array('id' => '33000','state_id' => '2908','name' => 'Santa Cruz do Bispo'),\n \t array('id' => '33001','state_id' => '2908','name' => 'Santa Maria de Lamas'),\n \t array('id' => '33002','state_id' => '2908','name' => 'Santiago da Riba-Ul'),\n \t array('id' => '33003','state_id' => '2908','name' => 'Santo Tirso'),\n \t array('id' => '33004','state_id' => '2908','name' => 'Sao Felix da Marinha'),\n \t array('id' => '33005','state_id' => '2908','name' => 'Sao Joao da Madeira'),\n \t array('id' => '33006','state_id' => '2908','name' => 'Sao Joao de Ver'),\n \t array('id' => '33007','state_id' => '2908','name' => 'Sao Mamede de Infesta'),\n \t array('id' => '33008','state_id' => '2908','name' => 'Sao Pedro da Cova'),\n \t array('id' => '33009','state_id' => '2908','name' => 'Sao Pedro de Casteloes'),\n \t array('id' => '33010','state_id' => '2908','name' => 'Sao Roque'),\n \t array('id' => '33011','state_id' => '2908','name' => 'Selho'),\n \t array('id' => '33012','state_id' => '2908','name' => 'Senhora da Hora'),\n \t array('id' => '33013','state_id' => '2908','name' => 'Seroa'),\n \t array('id' => '33014','state_id' => '2908','name' => 'Serzedelo'),\n \t array('id' => '33015','state_id' => '2908','name' => 'Serzedo'),\n \t array('id' => '33016','state_id' => '2908','name' => 'Silvalde'),\n \t array('id' => '33017','state_id' => '2908','name' => 'Sobrado'),\n \t array('id' => '33018','state_id' => '2908','name' => 'Sobreira'),\n \t array('id' => '33019','state_id' => '2908','name' => 'Souto'),\n \t array('id' => '33020','state_id' => '2908','name' => 'Teloes'),\n \t array('id' => '33021','state_id' => '2908','name' => 'Urgezes'),\n \t array('id' => '33022','state_id' => '2908','name' => 'Valadares'),\n \t array('id' => '33023','state_id' => '2908','name' => 'Valbom'),\n \t array('id' => '33024','state_id' => '2908','name' => 'Vale'),\n \t array('id' => '33025','state_id' => '2908','name' => 'Valongo'),\n \t array('id' => '33026','state_id' => '2908','name' => 'Valpacos'),\n \t array('id' => '33027','state_id' => '2908','name' => 'Viana do Castelo'),\n \t array('id' => '33028','state_id' => '2908','name' => 'Vila Cha'),\n \t array('id' => '33029','state_id' => '2908','name' => 'Vila Frescainha'),\n \t array('id' => '33030','state_id' => '2908','name' => 'Vila Nova da Telha'),\n \t array('id' => '33031','state_id' => '2908','name' => 'Vila Nova de Famalicao'),\n \t array('id' => '33032','state_id' => '2908','name' => 'Vila Nova de Gaia'),\n \t array('id' => '33033','state_id' => '2908','name' => 'Vila Praia de Ancora'),\n \t array('id' => '33034','state_id' => '2908','name' => 'Vila Real'),\n \t array('id' => '33035','state_id' => '2908','name' => 'Vila Verde'),\n \t array('id' => '33036','state_id' => '2908','name' => 'Vila de Cucujaes'),\n \t array('id' => '33037','state_id' => '2908','name' => 'Vila de Prado'),\n \t array('id' => '33038','state_id' => '2908','name' => 'Vila do Conde'),\n \t array('id' => '33039','state_id' => '2908','name' => 'Vilar de Andorinho'),\n \t array('id' => '33040','state_id' => '2908','name' => 'Vilar do Paraiso'),\n \t array('id' => '33041','state_id' => '2908','name' => 'Vilarinho'),\n \t array('id' => '33042','state_id' => '2908','name' => 'Vilela'),\n \t array('id' => '33043','state_id' => '2908','name' => 'Vizela'),\n \t array('id' => '33044','state_id' => '2909','name' => 'Paivas'),\n \t array('id' => '33045','state_id' => '2910','name' => 'Arecibo'),\n \t array('id' => '33046','state_id' => '2910','name' => 'Barceloneta'),\n \t array('id' => '33047','state_id' => '2910','name' => 'Camuy'),\n \t array('id' => '33048','state_id' => '2910','name' => 'Dorado'),\n \t array('id' => '33049','state_id' => '2910','name' => 'Isabela'),\n \t array('id' => '33050','state_id' => '2910','name' => 'Manati'),\n \t array('id' => '33051','state_id' => '2910','name' => 'Vega Alta'),\n \t array('id' => '33052','state_id' => '2910','name' => 'Vega Baja'),\n \t array('id' => '33053','state_id' => '2911','name' => 'Bayamon'),\n \t array('id' => '33054','state_id' => '2911','name' => 'Catano'),\n \t array('id' => '33055','state_id' => '2911','name' => 'Guaynabo'),\n \t array('id' => '33056','state_id' => '2911','name' => 'Levittown'),\n \t array('id' => '33057','state_id' => '2911','name' => 'Valencia'),\n \t array('id' => '33058','state_id' => '2912','name' => 'Canovanas'),\n \t array('id' => '33059','state_id' => '2912','name' => 'Carolina'),\n \t array('id' => '33060','state_id' => '2912','name' => 'Trujillo Alto'),\n \t array('id' => '33061','state_id' => '2913','name' => 'Florida'),\n \t array('id' => '33062','state_id' => '2914','name' => 'Aibonito'),\n \t array('id' => '33063','state_id' => '2914','name' => 'Arroyo'),\n \t array('id' => '33064','state_id' => '2914','name' => 'Barranquitas'),\n \t array('id' => '33065','state_id' => '2914','name' => 'Cayey'),\n \t array('id' => '33066','state_id' => '2914','name' => 'Coamo'),\n \t array('id' => '33067','state_id' => '2914','name' => 'Corozal'),\n \t array('id' => '33068','state_id' => '2914','name' => 'Guayama'),\n \t array('id' => '33069','state_id' => '2914','name' => 'Juana Diaz'),\n \t array('id' => '33070','state_id' => '2915','name' => 'Aguas Buenas'),\n \t array('id' => '33071','state_id' => '2915','name' => 'Caguas'),\n \t array('id' => '33072','state_id' => '2915','name' => 'Culebra'),\n \t array('id' => '33073','state_id' => '2915','name' => 'Fajardo'),\n \t array('id' => '33074','state_id' => '2915','name' => 'Gurabo'),\n \t array('id' => '33075','state_id' => '2915','name' => 'Humacao'),\n \t array('id' => '33076','state_id' => '2915','name' => 'Juncos'),\n \t array('id' => '33077','state_id' => '2915','name' => 'Rio Grande'),\n \t array('id' => '33078','state_id' => '2915','name' => 'Vieques'),\n \t array('id' => '33079','state_id' => '2916','name' => 'Aguada'),\n \t array('id' => '33080','state_id' => '2916','name' => 'Aguadilla'),\n \t array('id' => '33081','state_id' => '2916','name' => 'Anasco'),\n \t array('id' => '33082','state_id' => '2916','name' => 'Cabo Rojo'),\n \t array('id' => '33083','state_id' => '2916','name' => 'Hormigueros'),\n \t array('id' => '33084','state_id' => '2916','name' => 'Mayaguez'),\n \t array('id' => '33085','state_id' => '2916','name' => 'San German'),\n \t array('id' => '33086','state_id' => '2916','name' => 'San Sebastian'),\n \t array('id' => '33087','state_id' => '2917','name' => 'Adjuntas'),\n \t array('id' => '33088','state_id' => '2917','name' => 'Guanica'),\n \t array('id' => '33089','state_id' => '2917','name' => 'Ponce'),\n \t array('id' => '33090','state_id' => '2917','name' => 'Utuado'),\n \t array('id' => '33091','state_id' => '2917','name' => 'Yauco'),\n \t array('id' => '33092','state_id' => '2918','name' => 'Salinas'),\n \t array('id' => '33093','state_id' => '2920','name' => 'Doha'),\n \t array('id' => '33094','state_id' => '2921','name' => 'Umm Bab'),\n \t array('id' => '33095','state_id' => '2923','name' => 'ad-Dawhah'),\n \t array('id' => '33096','state_id' => '2924','name' => 'al-Ghuwayriyah'),\n \t array('id' => '33097','state_id' => '2925','name' => 'Dukhan'),\n \t array('id' => '33098','state_id' => '2925','name' => 'al-Jumayliyah'),\n \t array('id' => '33099','state_id' => '2926','name' => 'al-Khawr'),\n \t array('id' => '33100','state_id' => '2927','name' => 'Musay\\'id'),\n \t array('id' => '33101','state_id' => '2927','name' => 'al-Wakrah'),\n \t array('id' => '33102','state_id' => '2927','name' => 'al-Wukayr'),\n \t array('id' => '33103','state_id' => '2928','name' => 'ar-Rayyan'),\n \t array('id' => '33104','state_id' => '2928','name' => 'ash-Shahaniyah'),\n \t array('id' => '33105','state_id' => '2929','name' => 'ar-Ruways'),\n \t array('id' => '33106','state_id' => '2930','name' => 'Bras-Panon'),\n \t array('id' => '33107','state_id' => '2930','name' => 'Saint-Andre'),\n \t array('id' => '33108','state_id' => '2930','name' => 'Saint-Benoit'),\n \t array('id' => '33109','state_id' => '2930','name' => 'Sainte-Rose'),\n \t array('id' => '33110','state_id' => '2930','name' => 'Salazie'),\n \t array('id' => '33111','state_id' => '2931','name' => 'La Possession'),\n \t array('id' => '33112','state_id' => '2931','name' => 'Le Port'),\n \t array('id' => '33113','state_id' => '2931','name' => 'Saint-Denis'),\n \t array('id' => '33114','state_id' => '2931','name' => 'Sainte-Marie'),\n \t array('id' => '33115','state_id' => '2931','name' => 'Sainte-Suzanne'),\n \t array('id' => '33116','state_id' => '2932','name' => 'L\\'Etang-Sale'),\n \t array('id' => '33117','state_id' => '2932','name' => 'Les Aviron'),\n \t array('id' => '33118','state_id' => '2932','name' => 'Les Trois-Bassins'),\n \t array('id' => '33119','state_id' => '2932','name' => 'Saint-Leu'),\n \t array('id' => '33120','state_id' => '2932','name' => 'Saint-Paul'),\n \t array('id' => '33121','state_id' => '2933','name' => 'Cilaos'),\n \t array('id' => '33122','state_id' => '2933','name' => 'Entre-Deux'),\n \t array('id' => '33123','state_id' => '2933','name' => 'Le Tampon'),\n \t array('id' => '33124','state_id' => '2933','name' => 'Petite-Ile'),\n \t array('id' => '33125','state_id' => '2933','name' => 'Saint-Joseph'),\n \t array('id' => '33126','state_id' => '2933','name' => 'Saint-Louis'),\n \t array('id' => '33127','state_id' => '2933','name' => 'Saint-Philippe'),\n \t array('id' => '33128','state_id' => '2933','name' => 'Saint-Pierre'),\n \t array('id' => '33129','state_id' => '2934','name' => 'Abrud'),\n \t array('id' => '33130','state_id' => '2934','name' => 'Aiud'),\n \t array('id' => '33131','state_id' => '2934','name' => 'Alba Iulia'),\n \t array('id' => '33132','state_id' => '2934','name' => 'Albac'),\n \t array('id' => '33133','state_id' => '2934','name' => 'Almasu Mare'),\n \t array('id' => '33134','state_id' => '2934','name' => 'Arieseni'),\n \t array('id' => '33135','state_id' => '2934','name' => 'Avram Iancu'),\n \t array('id' => '33136','state_id' => '2934','name' => 'Baia de Aries'),\n \t array('id' => '33137','state_id' => '2934','name' => 'Berghin'),\n \t array('id' => '33138','state_id' => '2934','name' => 'Bistra'),\n \t array('id' => '33139','state_id' => '2934','name' => 'Blaj'),\n \t array('id' => '33140','state_id' => '2934','name' => 'Blandiana'),\n \t array('id' => '33141','state_id' => '2934','name' => 'Bucium'),\n \t array('id' => '33142','state_id' => '2934','name' => 'Calnic'),\n \t array('id' => '33143','state_id' => '2934','name' => 'Campeni'),\n \t array('id' => '33144','state_id' => '2934','name' => 'Cenade'),\n \t array('id' => '33145','state_id' => '2934','name' => 'Cergau'),\n \t array('id' => '33146','state_id' => '2934','name' => 'Ceru-Bacainti'),\n \t array('id' => '33147','state_id' => '2934','name' => 'Cetatea de Balta'),\n \t array('id' => '33148','state_id' => '2934','name' => 'Ciugud'),\n \t array('id' => '33149','state_id' => '2934','name' => 'Ciuruleasa'),\n \t array('id' => '33150','state_id' => '2934','name' => 'Craciunelu de Jos'),\n \t array('id' => '33151','state_id' => '2934','name' => 'Cricau'),\n \t array('id' => '33152','state_id' => '2934','name' => 'Cugir'),\n \t array('id' => '33153','state_id' => '2934','name' => 'Daia Romana'),\n \t array('id' => '33154','state_id' => '2934','name' => 'Dostat'),\n \t array('id' => '33155','state_id' => '2934','name' => 'Farau'),\n \t array('id' => '33156','state_id' => '2934','name' => 'Galda de Jos'),\n \t array('id' => '33157','state_id' => '2934','name' => 'Garbova'),\n \t array('id' => '33158','state_id' => '2934','name' => 'Garda de Sus'),\n \t array('id' => '33159','state_id' => '2934','name' => 'Hoparta'),\n \t array('id' => '33160','state_id' => '2934','name' => 'Horea'),\n \t array('id' => '33161','state_id' => '2934','name' => 'Ighiu'),\n \t array('id' => '33162','state_id' => '2934','name' => 'Intregalde'),\n \t array('id' => '33163','state_id' => '2934','name' => 'Jidvei'),\n \t array('id' => '33164','state_id' => '2934','name' => 'Livezile'),\n \t array('id' => '33165','state_id' => '2934','name' => 'Lopadea Noua'),\n \t array('id' => '33166','state_id' => '2934','name' => 'Lunca Muresului'),\n \t array('id' => '33167','state_id' => '2934','name' => 'Lupsa'),\n \t array('id' => '33168','state_id' => '2934','name' => 'Metes'),\n \t array('id' => '33169','state_id' => '2934','name' => 'Mihalt'),\n \t array('id' => '33170','state_id' => '2934','name' => 'Miraslau'),\n \t array('id' => '33171','state_id' => '2934','name' => 'Mogos'),\n \t array('id' => '33172','state_id' => '2934','name' => 'Noslac'),\n \t array('id' => '33173','state_id' => '2934','name' => 'Ocna Mures'),\n \t array('id' => '33174','state_id' => '2934','name' => 'Ocolis'),\n \t array('id' => '33175','state_id' => '2934','name' => 'Ohaba'),\n \t array('id' => '33176','state_id' => '2934','name' => 'Pianu'),\n \t array('id' => '33177','state_id' => '2934','name' => 'Poiana Vadului'),\n \t array('id' => '33178','state_id' => '2934','name' => 'Ponor'),\n \t array('id' => '33179','state_id' => '2934','name' => 'Posaga'),\n \t array('id' => '33180','state_id' => '2934','name' => 'Radesti'),\n \t array('id' => '33181','state_id' => '2934','name' => 'Ramet'),\n \t array('id' => '33182','state_id' => '2934','name' => 'Rimetea'),\n \t array('id' => '33183','state_id' => '2934','name' => 'Rosia Montana'),\n \t array('id' => '33184','state_id' => '2934','name' => 'Rosia de Secas'),\n \t array('id' => '33185','state_id' => '2934','name' => 'Salciua'),\n \t array('id' => '33186','state_id' => '2934','name' => 'Salistea'),\n \t array('id' => '33187','state_id' => '2934','name' => 'Sancel'),\n \t array('id' => '33188','state_id' => '2934','name' => 'Santimbru'),\n \t array('id' => '33189','state_id' => '2934','name' => 'Sasciori'),\n \t array('id' => '33190','state_id' => '2934','name' => 'Scarisoara'),\n \t array('id' => '33191','state_id' => '2934','name' => 'Sebes'),\n \t array('id' => '33192','state_id' => '2934','name' => 'Sibot'),\n \t array('id' => '33193','state_id' => '2934','name' => 'Sohodol'),\n \t array('id' => '33194','state_id' => '2934','name' => 'Sona'),\n \t array('id' => '33195','state_id' => '2934','name' => 'Spring'),\n \t array('id' => '33196','state_id' => '2934','name' => 'Stremt'),\n \t array('id' => '33197','state_id' => '2934','name' => 'Sugag'),\n \t array('id' => '33198','state_id' => '2934','name' => 'Teius'),\n \t array('id' => '33199','state_id' => '2934','name' => 'Unirea'),\n \t array('id' => '33200','state_id' => '2934','name' => 'Vadu Motilor'),\n \t array('id' => '33201','state_id' => '2934','name' => 'Valea Lunga'),\n \t array('id' => '33202','state_id' => '2934','name' => 'Vidra'),\n \t array('id' => '33203','state_id' => '2934','name' => 'Vintu de Jos'),\n \t array('id' => '33204','state_id' => '2934','name' => 'Zlatna'),\n \t array('id' => '33205','state_id' => '2935','name' => 'Almas'),\n \t array('id' => '33206','state_id' => '2935','name' => 'Apateu'),\n \t array('id' => '33207','state_id' => '2935','name' => 'Arad'),\n \t array('id' => '33208','state_id' => '2935','name' => 'Archis'),\n \t array('id' => '33209','state_id' => '2935','name' => 'Barsa'),\n \t array('id' => '33210','state_id' => '2935','name' => 'Barzava'),\n \t array('id' => '33211','state_id' => '2935','name' => 'Bata'),\n \t array('id' => '33212','state_id' => '2935','name' => 'Beliu'),\n \t array('id' => '33213','state_id' => '2935','name' => 'Birchis'),\n \t array('id' => '33214','state_id' => '2935','name' => 'Bocsig'),\n \t array('id' => '33215','state_id' => '2935','name' => 'Brazii'),\n \t array('id' => '33216','state_id' => '2935','name' => 'Buteni'),\n \t array('id' => '33217','state_id' => '2935','name' => 'Carand'),\n \t array('id' => '33218','state_id' => '2935','name' => 'Cermei'),\n \t array('id' => '33219','state_id' => '2935','name' => 'Chisindia'),\n \t array('id' => '33220','state_id' => '2935','name' => 'Chisineu Cris'),\n \t array('id' => '33221','state_id' => '2935','name' => 'Conop'),\n \t array('id' => '33222','state_id' => '2935','name' => 'Covasint'),\n \t array('id' => '33223','state_id' => '2935','name' => 'Craiva'),\n \t array('id' => '33224','state_id' => '2935','name' => 'Curtici'),\n \t array('id' => '33225','state_id' => '2935','name' => 'Dezna'),\n \t array('id' => '33226','state_id' => '2935','name' => 'Dieci'),\n \t array('id' => '33227','state_id' => '2935','name' => 'Dorgos'),\n \t array('id' => '33228','state_id' => '2935','name' => 'Fantanele'),\n \t array('id' => '33229','state_id' => '2935','name' => 'Felnac'),\n \t array('id' => '33230','state_id' => '2935','name' => 'Ghioroc'),\n \t array('id' => '33231','state_id' => '2935','name' => 'Graniceri'),\n \t array('id' => '33232','state_id' => '2935','name' => 'Gurahont'),\n \t array('id' => '33233','state_id' => '2935','name' => 'Halmagel'),\n \t array('id' => '33234','state_id' => '2935','name' => 'Halmagiu'),\n \t array('id' => '33235','state_id' => '2935','name' => 'Hasmas'),\n \t array('id' => '33236','state_id' => '2935','name' => 'Ignesti'),\n \t array('id' => '33237','state_id' => '2935','name' => 'Ineu'),\n \t array('id' => '33238','state_id' => '2935','name' => 'Iratosu'),\n \t array('id' => '33239','state_id' => '2935','name' => 'Lipova'),\n \t array('id' => '33240','state_id' => '2935','name' => 'Livada'),\n \t array('id' => '33241','state_id' => '2935','name' => 'Macea'),\n \t array('id' => '33242','state_id' => '2935','name' => 'Masca'),\n \t array('id' => '33243','state_id' => '2935','name' => 'Moneasa'),\n \t array('id' => '33244','state_id' => '2935','name' => 'Nadlac'),\n \t array('id' => '33245','state_id' => '2935','name' => 'Olari'),\n \t array('id' => '33246','state_id' => '2935','name' => 'Pancota'),\n \t array('id' => '33247','state_id' => '2935','name' => 'Paulis'),\n \t array('id' => '33248','state_id' => '2935','name' => 'Pecica'),\n \t array('id' => '33249','state_id' => '2935','name' => 'Peregu Mare'),\n \t array('id' => '33250','state_id' => '2935','name' => 'Petris'),\n \t array('id' => '33251','state_id' => '2935','name' => 'Pilu'),\n \t array('id' => '33252','state_id' => '2935','name' => 'Plescuta'),\n \t array('id' => '33253','state_id' => '2935','name' => 'Sagu'),\n \t array('id' => '33254','state_id' => '2935','name' => 'Santana'),\n \t array('id' => '33255','state_id' => '2935','name' => 'Savarsin'),\n \t array('id' => '33256','state_id' => '2935','name' => 'Sebis'),\n \t array('id' => '33257','state_id' => '2935','name' => 'Secusigiu'),\n \t array('id' => '33258','state_id' => '2935','name' => 'Seitin'),\n \t array('id' => '33259','state_id' => '2935','name' => 'Seleus'),\n \t array('id' => '33260','state_id' => '2935','name' => 'Semlac'),\n \t array('id' => '33261','state_id' => '2935','name' => 'Sepreus'),\n \t array('id' => '33262','state_id' => '2935','name' => 'Sicula'),\n \t array('id' => '33263','state_id' => '2935','name' => 'Silindia'),\n \t array('id' => '33264','state_id' => '2935','name' => 'Simand'),\n \t array('id' => '33265','state_id' => '2935','name' => 'Sintea Mare'),\n \t array('id' => '33266','state_id' => '2935','name' => 'Siria'),\n \t array('id' => '33267','state_id' => '2935','name' => 'Sistarovat'),\n \t array('id' => '33268','state_id' => '2935','name' => 'Socodor'),\n \t array('id' => '33269','state_id' => '2935','name' => 'Sofronea'),\n \t array('id' => '33270','state_id' => '2935','name' => 'Tarnova'),\n \t array('id' => '33271','state_id' => '2935','name' => 'Taut'),\n \t array('id' => '33272','state_id' => '2935','name' => 'Varadia de Mures'),\n \t array('id' => '33273','state_id' => '2935','name' => 'Varfurile'),\n \t array('id' => '33274','state_id' => '2935','name' => 'Vinga'),\n \t array('id' => '33275','state_id' => '2935','name' => 'Vladimirescu'),\n \t array('id' => '33276','state_id' => '2935','name' => 'Zabrani'),\n \t array('id' => '33277','state_id' => '2935','name' => 'Zarand'),\n \t array('id' => '33278','state_id' => '2935','name' => 'Zerind'),\n \t array('id' => '33279','state_id' => '2935','name' => 'Zimandu Nou'),\n \t array('id' => '33280','state_id' => '2936','name' => 'Albesti'),\n \t array('id' => '33281','state_id' => '2936','name' => 'Albestii-Pamanteni'),\n \t array('id' => '33282','state_id' => '2936','name' => 'Albota'),\n \t array('id' => '33283','state_id' => '2936','name' => 'Aninoasa'),\n \t array('id' => '33284','state_id' => '2936','name' => 'Arefu'),\n \t array('id' => '33285','state_id' => '2936','name' => 'Babana'),\n \t array('id' => '33286','state_id' => '2936','name' => 'Baiculesti'),\n \t array('id' => '33287','state_id' => '2936','name' => 'Balilesti'),\n \t array('id' => '33288','state_id' => '2936','name' => 'Barla'),\n \t array('id' => '33289','state_id' => '2936','name' => 'Bascov'),\n \t array('id' => '33290','state_id' => '2936','name' => 'Beleti-Negresti'),\n \t array('id' => '33291','state_id' => '2936','name' => 'Berevoesti'),\n \t array('id' => '33292','state_id' => '2936','name' => 'Bogati'),\n \t array('id' => '33293','state_id' => '2936','name' => 'Boteni'),\n \t array('id' => '33294','state_id' => '2936','name' => 'Botesti'),\n \t array('id' => '33295','state_id' => '2936','name' => 'Bradu'),\n \t array('id' => '33296','state_id' => '2936','name' => 'Bradulet'),\n \t array('id' => '33297','state_id' => '2936','name' => 'Budeasa'),\n \t array('id' => '33298','state_id' => '2936','name' => 'Bughea de Jos'),\n \t array('id' => '33299','state_id' => '2936','name' => 'Buzoesti'),\n \t array('id' => '33300','state_id' => '2936','name' => 'Caldararu'),\n \t array('id' => '33301','state_id' => '2936','name' => 'Calinesti'),\n \t array('id' => '33302','state_id' => '2936','name' => 'Campulung'),\n \t array('id' => '33303','state_id' => '2936','name' => 'Cateasca'),\n \t array('id' => '33304','state_id' => '2936','name' => 'Cepari'),\n \t array('id' => '33305','state_id' => '2936','name' => 'Cetateni'),\n \t array('id' => '33306','state_id' => '2936','name' => 'Cicanesti'),\n \t array('id' => '33307','state_id' => '2936','name' => 'Ciofrangeni'),\n \t array('id' => '33308','state_id' => '2936','name' => 'Ciomagesti'),\n \t array('id' => '33309','state_id' => '2936','name' => 'Cocu'),\n \t array('id' => '33310','state_id' => '2936','name' => 'Corbeni'),\n \t array('id' => '33311','state_id' => '2936','name' => 'Corbi'),\n \t array('id' => '33312','state_id' => '2936','name' => 'Cosesti'),\n \t array('id' => '33313','state_id' => '2936','name' => 'Costesti'),\n \t array('id' => '33314','state_id' => '2936','name' => 'Cotmeana'),\n \t array('id' => '33315','state_id' => '2936','name' => 'Cuca'),\n \t array('id' => '33316','state_id' => '2936','name' => 'Curtea de Arges'),\n \t array('id' => '33317','state_id' => '2936','name' => 'Dambovicioara'),\n \t array('id' => '33318','state_id' => '2936','name' => 'Darmanesti'),\n \t array('id' => '33319','state_id' => '2936','name' => 'Davidesti'),\n \t array('id' => '33320','state_id' => '2936','name' => 'Dobresti'),\n \t array('id' => '33321','state_id' => '2936','name' => 'Domnesti'),\n \t array('id' => '33322','state_id' => '2936','name' => 'Draganu'),\n \t array('id' => '33323','state_id' => '2936','name' => 'Dragoslavele'),\n \t array('id' => '33324','state_id' => '2936','name' => 'Godeni'),\n \t array('id' => '33325','state_id' => '2936','name' => 'Harsesti'),\n \t array('id' => '33326','state_id' => '2936','name' => 'Hartiesti'),\n \t array('id' => '33327','state_id' => '2936','name' => 'Izvoru'),\n \t array('id' => '33328','state_id' => '2936','name' => 'Leordeni'),\n \t array('id' => '33329','state_id' => '2936','name' => 'Leresti'),\n \t array('id' => '33330','state_id' => '2936','name' => 'Lunca Corbului'),\n \t array('id' => '33331','state_id' => '2936','name' => 'Malureni'),\n \t array('id' => '33332','state_id' => '2936','name' => 'Maracineni'),\n \t array('id' => '33333','state_id' => '2936','name' => 'Merisani'),\n \t array('id' => '33334','state_id' => '2936','name' => 'Micesti'),\n \t array('id' => '33335','state_id' => '2936','name' => 'Mihaesti'),\n \t array('id' => '33336','state_id' => '2936','name' => 'Mioarele'),\n \t array('id' => '33337','state_id' => '2936','name' => 'Mioveni'),\n \t array('id' => '33338','state_id' => '2936','name' => 'Mirosi'),\n \t array('id' => '33339','state_id' => '2936','name' => 'Moraresti'),\n \t array('id' => '33340','state_id' => '2936','name' => 'Mosoaia'),\n \t array('id' => '33341','state_id' => '2936','name' => 'Mozaceni'),\n \t array('id' => '33342','state_id' => '2936','name' => 'Musatesti'),\n \t array('id' => '33343','state_id' => '2936','name' => 'Negrasi'),\n \t array('id' => '33344','state_id' => '2936','name' => 'Nucsoara'),\n \t array('id' => '33345','state_id' => '2936','name' => 'Oarja'),\n \t array('id' => '33346','state_id' => '2936','name' => 'Pietrosani'),\n \t array('id' => '33347','state_id' => '2936','name' => 'Pitesti'),\n \t array('id' => '33348','state_id' => '2936','name' => 'Poenari'),\n \t array('id' => '33349','state_id' => '2936','name' => 'Poiana Lacului'),\n \t array('id' => '33350','state_id' => '2936','name' => 'Popesti'),\n \t array('id' => '33351','state_id' => '2936','name' => 'Priboieni'),\n \t array('id' => '33352','state_id' => '2936','name' => 'Ratesti'),\n \t array('id' => '33353','state_id' => '2936','name' => 'Recea'),\n \t array('id' => '33354','state_id' => '2936','name' => 'Rociu'),\n \t array('id' => '33355','state_id' => '2936','name' => 'Rucar'),\n \t array('id' => '33356','state_id' => '2936','name' => 'Salatrucu'),\n \t array('id' => '33357','state_id' => '2936','name' => 'Sapata'),\n \t array('id' => '33358','state_id' => '2936','name' => 'Schitu-Golesti'),\n \t array('id' => '33359','state_id' => '2936','name' => 'Slobozia'),\n \t array('id' => '33360','state_id' => '2936','name' => 'Stalpeni'),\n \t array('id' => '33361','state_id' => '2936','name' => 'Stefan cel Mare'),\n \t array('id' => '33362','state_id' => '2936','name' => 'Stefanesti'),\n \t array('id' => '33363','state_id' => '2936','name' => 'Stoenesti'),\n \t array('id' => '33364','state_id' => '2936','name' => 'Stolnici'),\n \t array('id' => '33365','state_id' => '2936','name' => 'Suici'),\n \t array('id' => '33366','state_id' => '2936','name' => 'Suseni'),\n \t array('id' => '33367','state_id' => '2936','name' => 'Teiu'),\n \t array('id' => '33368','state_id' => '2936','name' => 'Tigveni'),\n \t array('id' => '33369','state_id' => '2936','name' => 'Titesti'),\n \t array('id' => '33370','state_id' => '2936','name' => 'Topoloveni'),\n \t array('id' => '33371','state_id' => '2936','name' => 'Uda'),\n \t array('id' => '33372','state_id' => '2936','name' => 'Ungheni'),\n \t array('id' => '33373','state_id' => '2936','name' => 'Valea Danului'),\n \t array('id' => '33374','state_id' => '2936','name' => 'Valea Iasului'),\n \t array('id' => '33375','state_id' => '2936','name' => 'Valea Mare-Pravat'),\n \t array('id' => '33376','state_id' => '2936','name' => 'Vedea'),\n \t array('id' => '33377','state_id' => '2936','name' => 'Vladesti'),\n \t array('id' => '33378','state_id' => '2937','name' => 'Agas'),\n \t array('id' => '33379','state_id' => '2937','name' => 'Ardeoani'),\n \t array('id' => '33380','state_id' => '2937','name' => 'Asau'),\n \t array('id' => '33381','state_id' => '2937','name' => 'Bacau'),\n \t array('id' => '33382','state_id' => '2937','name' => 'Balcani'),\n \t array('id' => '33383','state_id' => '2937','name' => 'Barsanesti'),\n \t array('id' => '33384','state_id' => '2937','name' => 'Beresti-Bistrita'),\n \t array('id' => '33385','state_id' => '2937','name' => 'Beresti-Tazlau'),\n \t array('id' => '33386','state_id' => '2937','name' => 'Berzunti'),\n \t array('id' => '33387','state_id' => '2937','name' => 'Blagesti'),\n \t array('id' => '33388','state_id' => '2937','name' => 'Bogdanesti'),\n \t array('id' => '33389','state_id' => '2937','name' => 'Brusturoasa'),\n \t array('id' => '33390','state_id' => '2937','name' => 'Buhoci'),\n \t array('id' => '33391','state_id' => '2937','name' => 'Buhusi'),\n \t array('id' => '33392','state_id' => '2937','name' => 'Caiuti'),\n \t array('id' => '33393','state_id' => '2937','name' => 'Casin'),\n \t array('id' => '33394','state_id' => '2937','name' => 'Cleja'),\n \t array('id' => '33395','state_id' => '2937','name' => 'Colonesti'),\n \t array('id' => '33396','state_id' => '2937','name' => 'Comanesti'),\n \t array('id' => '33397','state_id' => '2937','name' => 'Corbasca'),\n \t array('id' => '33398','state_id' => '2937','name' => 'Cotofanesti'),\n \t array('id' => '33399','state_id' => '2937','name' => 'Damienesti'),\n \t array('id' => '33400','state_id' => '2937','name' => 'Darmanesti'),\n \t array('id' => '33401','state_id' => '2937','name' => 'Dealu Morii'),\n \t array('id' => '33402','state_id' => '2937','name' => 'Dofteana'),\n \t array('id' => '33403','state_id' => '2937','name' => 'Faraoani'),\n \t array('id' => '33404','state_id' => '2937','name' => 'Filipeni'),\n \t array('id' => '33405','state_id' => '2937','name' => 'Filipesti'),\n \t array('id' => '33406','state_id' => '2937','name' => 'Gaiceana'),\n \t array('id' => '33407','state_id' => '2937','name' => 'Garleni'),\n \t array('id' => '33408','state_id' => '2937','name' => 'Ghimes-Faget'),\n \t array('id' => '33409','state_id' => '2937','name' => 'Glavanesti'),\n \t array('id' => '33410','state_id' => '2937','name' => 'Gura Vaii'),\n \t array('id' => '33411','state_id' => '2937','name' => 'Helegiu'),\n \t array('id' => '33412','state_id' => '2937','name' => 'Hemeius'),\n \t array('id' => '33413','state_id' => '2937','name' => 'Horgesti'),\n \t array('id' => '33414','state_id' => '2937','name' => 'Huruesti'),\n \t array('id' => '33415','state_id' => '2937','name' => 'Izvoru Berheciului'),\n \t array('id' => '33416','state_id' => '2937','name' => 'Letea Veche'),\n \t array('id' => '33417','state_id' => '2937','name' => 'Lipova'),\n \t array('id' => '33418','state_id' => '2937','name' => 'Livezi'),\n \t array('id' => '33419','state_id' => '2937','name' => 'Luizi-Calugara'),\n \t array('id' => '33420','state_id' => '2937','name' => 'Magiresti'),\n \t array('id' => '33421','state_id' => '2937','name' => 'Magura'),\n \t array('id' => '33422','state_id' => '2937','name' => 'Manastirea Casin'),\n \t array('id' => '33423','state_id' => '2937','name' => 'Margineni'),\n \t array('id' => '33424','state_id' => '2937','name' => 'Moinesti'),\n \t array('id' => '33425','state_id' => '2937','name' => 'Motoseni'),\n \t array('id' => '33426','state_id' => '2937','name' => 'Negri'),\n \t array('id' => '33427','state_id' => '2937','name' => 'Nicolae Balcescu'),\n \t array('id' => '33428','state_id' => '2937','name' => 'Oituz'),\n \t array('id' => '33429','state_id' => '2937','name' => 'Oncesti'),\n \t array('id' => '33430','state_id' => '2937','name' => 'Onesti'),\n \t array('id' => '33431','state_id' => '2937','name' => 'Orbeni'),\n \t array('id' => '33432','state_id' => '2937','name' => 'Palanca'),\n \t array('id' => '33433','state_id' => '2937','name' => 'Pancesti'),\n \t array('id' => '33434','state_id' => '2937','name' => 'Parava'),\n \t array('id' => '33435','state_id' => '2937','name' => 'Pargaresti'),\n \t array('id' => '33436','state_id' => '2937','name' => 'Parincea'),\n \t array('id' => '33437','state_id' => '2937','name' => 'Parjol'),\n \t array('id' => '33438','state_id' => '2937','name' => 'Plopana'),\n \t array('id' => '33439','state_id' => '2937','name' => 'Podu Turcului'),\n \t array('id' => '33440','state_id' => '2937','name' => 'Poduri'),\n \t array('id' => '33441','state_id' => '2937','name' => 'Racaciuni'),\n \t array('id' => '33442','state_id' => '2937','name' => 'Rachitoasa'),\n \t array('id' => '33443','state_id' => '2937','name' => 'Racova'),\n \t array('id' => '33444','state_id' => '2937','name' => 'Rosiori'),\n \t array('id' => '33445','state_id' => '2937','name' => 'Sanduleni'),\n \t array('id' => '33446','state_id' => '2937','name' => 'Sascut'),\n \t array('id' => '33447','state_id' => '2937','name' => 'Saucesti'),\n \t array('id' => '33448','state_id' => '2937','name' => 'Scorteni'),\n \t array('id' => '33449','state_id' => '2937','name' => 'Secuieni'),\n \t array('id' => '33450','state_id' => '2937','name' => 'Slanic-Moldova'),\n \t array('id' => '33451','state_id' => '2937','name' => 'Solont'),\n \t array('id' => '33452','state_id' => '2937','name' => 'Stanisesti'),\n \t array('id' => '33453','state_id' => '2937','name' => 'Stefan cel Mare'),\n \t array('id' => '33454','state_id' => '2937','name' => 'Strugari'),\n \t array('id' => '33455','state_id' => '2937','name' => 'Tamasi'),\n \t array('id' => '33456','state_id' => '2937','name' => 'Targu Ocna'),\n \t array('id' => '33457','state_id' => '2937','name' => 'Targu-Trotus'),\n \t array('id' => '33458','state_id' => '2937','name' => 'Tatarasti'),\n \t array('id' => '33459','state_id' => '2937','name' => 'Traian'),\n \t array('id' => '33460','state_id' => '2937','name' => 'Ungureni'),\n \t array('id' => '33461','state_id' => '2937','name' => 'Urechesti'),\n \t array('id' => '33462','state_id' => '2937','name' => 'Valea Seaca'),\n \t array('id' => '33463','state_id' => '2937','name' => 'Vultureni'),\n \t array('id' => '33464','state_id' => '2937','name' => 'Zemes'),\n \t array('id' => '33465','state_id' => '2938','name' => 'Abram'),\n \t array('id' => '33466','state_id' => '2938','name' => 'Abramut'),\n \t array('id' => '33467','state_id' => '2938','name' => 'Alesd'),\n \t array('id' => '33468','state_id' => '2938','name' => 'Astileu'),\n \t array('id' => '33469','state_id' => '2938','name' => 'Auseu'),\n \t array('id' => '33470','state_id' => '2938','name' => 'Avram Iancu'),\n \t array('id' => '33471','state_id' => '2938','name' => 'Balc'),\n \t array('id' => '33472','state_id' => '2938','name' => 'Batar'),\n \t array('id' => '33473','state_id' => '2938','name' => 'Beius'),\n \t array('id' => '33474','state_id' => '2938','name' => 'Biharia'),\n \t array('id' => '33475','state_id' => '2938','name' => 'Boianu Mare'),\n \t array('id' => '33476','state_id' => '2938','name' => 'Borod'),\n \t array('id' => '33477','state_id' => '2938','name' => 'Bors'),\n \t array('id' => '33478','state_id' => '2938','name' => 'Bratca'),\n \t array('id' => '33479','state_id' => '2938','name' => 'Brusturi'),\n \t array('id' => '33480','state_id' => '2938','name' => 'Budureasa'),\n \t array('id' => '33481','state_id' => '2938','name' => 'Buduslau'),\n \t array('id' => '33482','state_id' => '2938','name' => 'Bulz'),\n \t array('id' => '33483','state_id' => '2938','name' => 'Buntesti'),\n \t array('id' => '33484','state_id' => '2938','name' => 'Cabesti'),\n \t array('id' => '33485','state_id' => '2938','name' => 'Campani'),\n \t array('id' => '33486','state_id' => '2938','name' => 'Capalna'),\n \t array('id' => '33487','state_id' => '2938','name' => 'Carpinet'),\n \t array('id' => '33488','state_id' => '2938','name' => 'Cefa'),\n \t array('id' => '33489','state_id' => '2938','name' => 'Ceica'),\n \t array('id' => '33490','state_id' => '2938','name' => 'Cetariu'),\n \t array('id' => '33491','state_id' => '2938','name' => 'Cherechiu'),\n \t array('id' => '33492','state_id' => '2938','name' => 'Chislaz'),\n \t array('id' => '33493','state_id' => '2938','name' => 'Ciuhoiu'),\n \t array('id' => '33494','state_id' => '2938','name' => 'Ciumeghiu'),\n \t array('id' => '33495','state_id' => '2938','name' => 'Cociuba Mare'),\n \t array('id' => '33496','state_id' => '2938','name' => 'Copacel'),\n \t array('id' => '33497','state_id' => '2938','name' => 'Cristioru de Jos'),\n \t array('id' => '33498','state_id' => '2938','name' => 'Curatele'),\n \t array('id' => '33499','state_id' => '2938','name' => 'Curtuiseni'),\n \t array('id' => '33500','state_id' => '2938','name' => 'Derna'),\n \t array('id' => '33501','state_id' => '2938','name' => 'Diosig'),\n \t array('id' => '33502','state_id' => '2938','name' => 'Dobresti'),\n \t array('id' => '33503','state_id' => '2938','name' => 'Draganesti'),\n \t array('id' => '33504','state_id' => '2938','name' => 'Dragesti'),\n \t array('id' => '33505','state_id' => '2938','name' => 'Finis'),\n \t array('id' => '33506','state_id' => '2938','name' => 'Girisu de Cris'),\n \t array('id' => '33507','state_id' => '2938','name' => 'Hidiselu de Sus'),\n \t array('id' => '33508','state_id' => '2938','name' => 'Holod'),\n \t array('id' => '33509','state_id' => '2938','name' => 'Husasau de Tinca'),\n \t array('id' => '33510','state_id' => '2938','name' => 'Ineu'),\n \t array('id' => '33511','state_id' => '2938','name' => 'Lazareni'),\n \t array('id' => '33512','state_id' => '2938','name' => 'Lazuri de Beius'),\n \t array('id' => '33513','state_id' => '2938','name' => 'Lugasu de Jos'),\n \t array('id' => '33514','state_id' => '2938','name' => 'Lunca'),\n \t array('id' => '33515','state_id' => '2938','name' => 'Madaras'),\n \t array('id' => '33516','state_id' => '2938','name' => 'Magesti'),\n \t array('id' => '33517','state_id' => '2938','name' => 'Marghita'),\n \t array('id' => '33518','state_id' => '2938','name' => 'Nojorid'),\n \t array('id' => '33519','state_id' => '2938','name' => 'Nucet'),\n \t array('id' => '33520','state_id' => '2938','name' => 'Olcea'),\n \t array('id' => '33521','state_id' => '2938','name' => 'Oradea'),\n \t array('id' => '33522','state_id' => '2938','name' => 'Osorheiu'),\n \t array('id' => '33523','state_id' => '2938','name' => 'Pietroasa'),\n \t array('id' => '33524','state_id' => '2938','name' => 'Pocola'),\n \t array('id' => '33525','state_id' => '2938','name' => 'Pomezeu'),\n \t array('id' => '33526','state_id' => '2938','name' => 'Popesti'),\n \t array('id' => '33527','state_id' => '2938','name' => 'Rabagani'),\n \t array('id' => '33528','state_id' => '2938','name' => 'Remetea'),\n \t array('id' => '33529','state_id' => '2938','name' => 'Rieni'),\n \t array('id' => '33530','state_id' => '2938','name' => 'Rosia'),\n \t array('id' => '33531','state_id' => '2938','name' => 'Sacadat'),\n \t array('id' => '33532','state_id' => '2938','name' => 'Sacueni'),\n \t array('id' => '33533','state_id' => '2938','name' => 'Salacea'),\n \t array('id' => '33534','state_id' => '2938','name' => 'Salard'),\n \t array('id' => '33535','state_id' => '2938','name' => 'Salonta'),\n \t array('id' => '33536','state_id' => '2938','name' => 'Sambata'),\n \t array('id' => '33537','state_id' => '2938','name' => 'Sanmartin'),\n \t array('id' => '33538','state_id' => '2938','name' => 'Santandrei'),\n \t array('id' => '33539','state_id' => '2938','name' => 'Sarbi'),\n \t array('id' => '33540','state_id' => '2938','name' => 'Simian'),\n \t array('id' => '33541','state_id' => '2938','name' => 'Sinteu'),\n \t array('id' => '33542','state_id' => '2938','name' => 'Soimi'),\n \t array('id' => '33543','state_id' => '2938','name' => 'Spinus'),\n \t array('id' => '33544','state_id' => '2938','name' => 'Stei'),\n \t array('id' => '33545','state_id' => '2938','name' => 'Suncuius'),\n \t array('id' => '33546','state_id' => '2938','name' => 'Suplacu de Barcau'),\n \t array('id' => '33547','state_id' => '2938','name' => 'Tarcaia'),\n \t array('id' => '33548','state_id' => '2938','name' => 'Tarcea'),\n \t array('id' => '33549','state_id' => '2938','name' => 'Tauteu'),\n \t array('id' => '33550','state_id' => '2938','name' => 'Tetchea'),\n \t array('id' => '33551','state_id' => '2938','name' => 'Tileagd'),\n \t array('id' => '33552','state_id' => '2938','name' => 'Tinca'),\n \t array('id' => '33553','state_id' => '2938','name' => 'Tulca'),\n \t array('id' => '33554','state_id' => '2938','name' => 'Uileacu de Beius'),\n \t array('id' => '33555','state_id' => '2938','name' => 'Vadu Crisului'),\n \t array('id' => '33556','state_id' => '2938','name' => 'Valea lui Mihai'),\n \t array('id' => '33557','state_id' => '2938','name' => 'Varciorog'),\n \t array('id' => '33558','state_id' => '2938','name' => 'Vascau'),\n \t array('id' => '33559','state_id' => '2938','name' => 'Viisoara'),\n \t array('id' => '33560','state_id' => '2939','name' => 'Beclean'),\n \t array('id' => '33561','state_id' => '2939','name' => 'Bistrita'),\n \t array('id' => '33562','state_id' => '2939','name' => 'Bistrita Bargaului'),\n \t array('id' => '33563','state_id' => '2939','name' => 'Branistea'),\n \t array('id' => '33564','state_id' => '2939','name' => 'Budacu de Jos'),\n \t array('id' => '33565','state_id' => '2939','name' => 'Budesti'),\n \t array('id' => '33566','state_id' => '2939','name' => 'Caianu Mic'),\n \t array('id' => '33567','state_id' => '2939','name' => 'Cetate'),\n \t array('id' => '33568','state_id' => '2939','name' => 'Chiochis'),\n \t array('id' => '33569','state_id' => '2939','name' => 'Chiuza'),\n \t array('id' => '33570','state_id' => '2939','name' => 'Ciceu-Giurgesti'),\n \t array('id' => '33571','state_id' => '2939','name' => 'Cosbuc'),\n \t array('id' => '33572','state_id' => '2939','name' => 'Dumitra'),\n \t array('id' => '33573','state_id' => '2939','name' => 'Feldru'),\n \t array('id' => '33574','state_id' => '2939','name' => 'Galatii Bistritei'),\n \t array('id' => '33575','state_id' => '2939','name' => 'Ilva Mare'),\n \t array('id' => '33576','state_id' => '2939','name' => 'Ilva Mica'),\n \t array('id' => '33577','state_id' => '2939','name' => 'Josenii Bargaului'),\n \t array('id' => '33578','state_id' => '2939','name' => 'Lechinta'),\n \t array('id' => '33579','state_id' => '2939','name' => 'Lesu'),\n \t array('id' => '33580','state_id' => '2939','name' => 'Livezile'),\n \t array('id' => '33581','state_id' => '2939','name' => 'Lunca Ilvei'),\n \t array('id' => '33582','state_id' => '2939','name' => 'Magura Ilvei'),\n \t array('id' => '33583','state_id' => '2939','name' => 'Maieru'),\n \t array('id' => '33584','state_id' => '2939','name' => 'Mariselu'),\n \t array('id' => '33585','state_id' => '2939','name' => 'Matei'),\n \t array('id' => '33586','state_id' => '2939','name' => 'Micestii de Campie'),\n \t array('id' => '33587','state_id' => '2939','name' => 'Milas'),\n \t array('id' => '33588','state_id' => '2939','name' => 'Monor'),\n \t array('id' => '33589','state_id' => '2939','name' => 'Nasaud'),\n \t array('id' => '33590','state_id' => '2939','name' => 'Nimigea'),\n \t array('id' => '33591','state_id' => '2939','name' => 'Nuseni'),\n \t array('id' => '33592','state_id' => '2939','name' => 'Parva'),\n \t array('id' => '33593','state_id' => '2939','name' => 'Petru Rares'),\n \t array('id' => '33594','state_id' => '2939','name' => 'Prundu Bargaului'),\n \t array('id' => '33595','state_id' => '2939','name' => 'Rebra'),\n \t array('id' => '33596','state_id' => '2939','name' => 'Rebrisoara'),\n \t array('id' => '33597','state_id' => '2939','name' => 'Rodna'),\n \t array('id' => '33598','state_id' => '2939','name' => 'Romuli'),\n \t array('id' => '33599','state_id' => '2939','name' => 'Salva'),\n \t array('id' => '33600','state_id' => '2939','name' => 'Sangeorz-Bai'),\n \t array('id' => '33601','state_id' => '2939','name' => 'Sanmihaiu de Campie'),\n \t array('id' => '33602','state_id' => '2939','name' => 'Sant'),\n \t array('id' => '33603','state_id' => '2939','name' => 'Sieu'),\n \t array('id' => '33604','state_id' => '2939','name' => 'Sieu-Magherus'),\n \t array('id' => '33605','state_id' => '2939','name' => 'Sieu-Odorhei'),\n \t array('id' => '33606','state_id' => '2939','name' => 'Sieut'),\n \t array('id' => '33607','state_id' => '2939','name' => 'Silvasu de Campie'),\n \t array('id' => '33608','state_id' => '2939','name' => 'Sintereag'),\n \t array('id' => '33609','state_id' => '2939','name' => 'Spermezeu'),\n \t array('id' => '33610','state_id' => '2939','name' => 'Tarlisua'),\n \t array('id' => '33611','state_id' => '2939','name' => 'Teaca'),\n \t array('id' => '33612','state_id' => '2939','name' => 'Telciu'),\n \t array('id' => '33613','state_id' => '2939','name' => 'Tiha Bargaului'),\n \t array('id' => '33614','state_id' => '2939','name' => 'Uriu'),\n \t array('id' => '33615','state_id' => '2939','name' => 'Urmenis'),\n \t array('id' => '33616','state_id' => '2939','name' => 'Zagra'),\n \t array('id' => '33617','state_id' => '2940','name' => 'Albesti'),\n \t array('id' => '33618','state_id' => '2940','name' => 'Avrameni'),\n \t array('id' => '33619','state_id' => '2940','name' => 'Baluseni'),\n \t array('id' => '33620','state_id' => '2940','name' => 'Botosani'),\n \t array('id' => '33621','state_id' => '2940','name' => 'Braesti'),\n \t array('id' => '33622','state_id' => '2940','name' => 'Broscauti'),\n \t array('id' => '33623','state_id' => '2940','name' => 'Bucecea'),\n \t array('id' => '33624','state_id' => '2940','name' => 'Calarasi'),\n \t array('id' => '33625','state_id' => '2940','name' => 'Concesti'),\n \t array('id' => '33626','state_id' => '2940','name' => 'Copalau'),\n \t array('id' => '33627','state_id' => '2940','name' => 'Cordareni'),\n \t array('id' => '33628','state_id' => '2940','name' => 'Corlateni'),\n \t array('id' => '33629','state_id' => '2940','name' => 'Corni'),\n \t array('id' => '33630','state_id' => '2940','name' => 'Cotusca'),\n \t array('id' => '33631','state_id' => '2940','name' => 'Cristesti'),\n \t array('id' => '33632','state_id' => '2940','name' => 'Cristinesti'),\n \t array('id' => '33633','state_id' => '2940','name' => 'Curtesti'),\n \t array('id' => '33634','state_id' => '2940','name' => 'Dangeni'),\n \t array('id' => '33635','state_id' => '2940','name' => 'Darabani'),\n \t array('id' => '33636','state_id' => '2940','name' => 'Dersca'),\n \t array('id' => '33637','state_id' => '2940','name' => 'Dobarceni'),\n \t array('id' => '33638','state_id' => '2940','name' => 'Dorohoi'),\n \t array('id' => '33639','state_id' => '2940','name' => 'Draguseni'),\n \t array('id' => '33640','state_id' => '2940','name' => 'Durnesti'),\n \t array('id' => '33641','state_id' => '2940','name' => 'Flamanzi'),\n \t array('id' => '33642','state_id' => '2940','name' => 'Frumusica'),\n \t array('id' => '33643','state_id' => '2940','name' => 'George Enescu'),\n \t array('id' => '33644','state_id' => '2940','name' => 'Gorbanesti'),\n \t array('id' => '33645','state_id' => '2940','name' => 'Hanesti'),\n \t array('id' => '33646','state_id' => '2940','name' => 'Havarna'),\n \t array('id' => '33647','state_id' => '2940','name' => 'Hiliseu-Horia'),\n \t array('id' => '33648','state_id' => '2940','name' => 'Hlipiceni'),\n \t array('id' => '33649','state_id' => '2940','name' => 'Hudesti'),\n \t array('id' => '33650','state_id' => '2940','name' => 'Ibanesti'),\n \t array('id' => '33651','state_id' => '2940','name' => 'Leorda'),\n \t array('id' => '33652','state_id' => '2940','name' => 'Lunca'),\n \t array('id' => '33653','state_id' => '2940','name' => 'Manoleasa'),\n \t array('id' => '33654','state_id' => '2940','name' => 'Mihail Eminescu'),\n \t array('id' => '33655','state_id' => '2940','name' => 'Mihaileni'),\n \t array('id' => '33656','state_id' => '2940','name' => 'Mihalaseni'),\n \t array('id' => '33657','state_id' => '2940','name' => 'Mileanca'),\n \t array('id' => '33658','state_id' => '2940','name' => 'Mitoc'),\n \t array('id' => '33659','state_id' => '2940','name' => 'Nicseni'),\n \t array('id' => '33660','state_id' => '2940','name' => 'Paltinis'),\n \t array('id' => '33661','state_id' => '2940','name' => 'Pomarla'),\n \t array('id' => '33662','state_id' => '2940','name' => 'Prajeni'),\n \t array('id' => '33663','state_id' => '2940','name' => 'Rachiti'),\n \t array('id' => '33664','state_id' => '2940','name' => 'Radauti-Prut'),\n \t array('id' => '33665','state_id' => '2940','name' => 'Rauseni'),\n \t array('id' => '33666','state_id' => '2940','name' => 'Ripiceni'),\n \t array('id' => '33667','state_id' => '2940','name' => 'Roma'),\n \t array('id' => '33668','state_id' => '2940','name' => 'Romanesti'),\n \t array('id' => '33669','state_id' => '2940','name' => 'Santa-Maria'),\n \t array('id' => '33670','state_id' => '2940','name' => 'Saveni'),\n \t array('id' => '33671','state_id' => '2940','name' => 'Sendriceni'),\n \t array('id' => '33672','state_id' => '2940','name' => 'Stauceni'),\n \t array('id' => '33673','state_id' => '2940','name' => 'Stefanesti'),\n \t array('id' => '33674','state_id' => '2940','name' => 'Stiubieni'),\n \t array('id' => '33675','state_id' => '2940','name' => 'Suharau'),\n \t array('id' => '33676','state_id' => '2940','name' => 'Sulita'),\n \t array('id' => '33677','state_id' => '2940','name' => 'Todireni'),\n \t array('id' => '33678','state_id' => '2940','name' => 'Trusesti'),\n \t array('id' => '33679','state_id' => '2940','name' => 'Tudora'),\n \t array('id' => '33680','state_id' => '2940','name' => 'Ungureni'),\n \t array('id' => '33681','state_id' => '2940','name' => 'Unteni'),\n \t array('id' => '33682','state_id' => '2940','name' => 'Vaculesti'),\n \t array('id' => '33683','state_id' => '2940','name' => 'Varfu Campului'),\n \t array('id' => '33684','state_id' => '2940','name' => 'Viisoara'),\n \t array('id' => '33685','state_id' => '2940','name' => 'Vladeni'),\n \t array('id' => '33686','state_id' => '2940','name' => 'Vlasinesti'),\n \t array('id' => '33687','state_id' => '2940','name' => 'Vorniceni'),\n \t array('id' => '33688','state_id' => '2940','name' => 'Vorona'),\n \t array('id' => '33689','state_id' => '2941','name' => 'Baraganul'),\n \t array('id' => '33690','state_id' => '2941','name' => 'Bertestii de Jos'),\n \t array('id' => '33691','state_id' => '2941','name' => 'Bordei Verde'),\n \t array('id' => '33692','state_id' => '2941','name' => 'Braila'),\n \t array('id' => '33693','state_id' => '2941','name' => 'Chiscani'),\n \t array('id' => '33694','state_id' => '2941','name' => 'Ciocile'),\n \t array('id' => '33695','state_id' => '2941','name' => 'Ciresu'),\n \t array('id' => '33696','state_id' => '2941','name' => 'Dudesti'),\n \t array('id' => '33697','state_id' => '2941','name' => 'Faurei'),\n \t array('id' => '33698','state_id' => '2941','name' => 'Frecatei'),\n \t array('id' => '33699','state_id' => '2941','name' => 'Galbenu'),\n \t array('id' => '33700','state_id' => '2941','name' => 'Gemenele'),\n \t array('id' => '33701','state_id' => '2941','name' => 'Gradistea'),\n \t array('id' => '33702','state_id' => '2941','name' => 'Gropeni'),\n \t array('id' => '33703','state_id' => '2941','name' => 'Ianca'),\n \t array('id' => '33704','state_id' => '2941','name' => 'Insuratei'),\n \t array('id' => '33705','state_id' => '2941','name' => 'Jirlau'),\n \t array('id' => '33706','state_id' => '2941','name' => 'Marasu'),\n \t array('id' => '33707','state_id' => '2941','name' => 'Maxineni'),\n \t array('id' => '33708','state_id' => '2941','name' => 'Mircea Voda'),\n \t array('id' => '33709','state_id' => '2941','name' => 'Movila Miresei'),\n \t array('id' => '33710','state_id' => '2941','name' => 'Racovita'),\n \t array('id' => '33711','state_id' => '2941','name' => 'Ramnicelu'),\n \t array('id' => '33712','state_id' => '2941','name' => 'Romanu'),\n \t array('id' => '33713','state_id' => '2941','name' => 'Rosiori'),\n \t array('id' => '33714','state_id' => '2941','name' => 'Salcia Tudor'),\n \t array('id' => '33715','state_id' => '2941','name' => 'Scortaru Nou'),\n \t array('id' => '33716','state_id' => '2941','name' => 'Silistea'),\n \t array('id' => '33717','state_id' => '2941','name' => 'Stancuta'),\n \t array('id' => '33718','state_id' => '2941','name' => 'Surdila-Gaiseanca'),\n \t array('id' => '33719','state_id' => '2941','name' => 'Surdila-Greci'),\n \t array('id' => '33720','state_id' => '2941','name' => 'Sutesti'),\n \t array('id' => '33721','state_id' => '2941','name' => 'Tichilesti'),\n \t array('id' => '33722','state_id' => '2941','name' => 'Traian'),\n \t array('id' => '33723','state_id' => '2941','name' => 'Tudor Vladimirescu'),\n \t array('id' => '33724','state_id' => '2941','name' => 'Tufesti'),\n \t array('id' => '33725','state_id' => '2941','name' => 'Ulmu'),\n \t array('id' => '33726','state_id' => '2941','name' => 'Unirea'),\n \t array('id' => '33727','state_id' => '2941','name' => 'Vadeni'),\n \t array('id' => '33728','state_id' => '2941','name' => 'Victoria'),\n \t array('id' => '33729','state_id' => '2941','name' => 'Visani'),\n \t array('id' => '33730','state_id' => '2941','name' => 'Viziru'),\n \t array('id' => '33731','state_id' => '2941','name' => 'Zavoaia'),\n \t array('id' => '33732','state_id' => '2942','name' => 'Apata'),\n \t array('id' => '33733','state_id' => '2942','name' => 'Beclean'),\n \t array('id' => '33734','state_id' => '2942','name' => 'Bod'),\n \t array('id' => '33735','state_id' => '2942','name' => 'Bran'),\n \t array('id' => '33736','state_id' => '2942','name' => 'Brasov'),\n \t array('id' => '33737','state_id' => '2942','name' => 'Budila'),\n \t array('id' => '33738','state_id' => '2942','name' => 'Bunesti'),\n \t array('id' => '33739','state_id' => '2942','name' => 'Cata'),\n \t array('id' => '33740','state_id' => '2942','name' => 'Cincu'),\n \t array('id' => '33741','state_id' => '2942','name' => 'Codlea'),\n \t array('id' => '33742','state_id' => '2942','name' => 'Comana'),\n \t array('id' => '33743','state_id' => '2942','name' => 'Cristian'),\n \t array('id' => '33744','state_id' => '2942','name' => 'Dumbravita'),\n \t array('id' => '33745','state_id' => '2942','name' => 'Fagaras'),\n \t array('id' => '33746','state_id' => '2942','name' => 'Feldioara'),\n \t array('id' => '33747','state_id' => '2942','name' => 'Fundata'),\n \t array('id' => '33748','state_id' => '2942','name' => 'Ghimbav'),\n \t array('id' => '33749','state_id' => '2942','name' => 'Halchiu'),\n \t array('id' => '33750','state_id' => '2942','name' => 'Harman'),\n \t array('id' => '33751','state_id' => '2942','name' => 'Harseni'),\n \t array('id' => '33752','state_id' => '2942','name' => 'Hoghiz'),\n \t array('id' => '33753','state_id' => '2942','name' => 'Homorod'),\n \t array('id' => '33754','state_id' => '2942','name' => 'Jibert'),\n \t array('id' => '33755','state_id' => '2942','name' => 'Lisa'),\n \t array('id' => '33756','state_id' => '2942','name' => 'Maierus'),\n \t array('id' => '33757','state_id' => '2942','name' => 'Mandra'),\n \t array('id' => '33758','state_id' => '2942','name' => 'Moeciu'),\n \t array('id' => '33759','state_id' => '2942','name' => 'Ormenis'),\n \t array('id' => '33760','state_id' => '2942','name' => 'Parau'),\n \t array('id' => '33761','state_id' => '2942','name' => 'Poiana Marului'),\n \t array('id' => '33762','state_id' => '2942','name' => 'Predeal'),\n \t array('id' => '33763','state_id' => '2942','name' => 'Prejmer'),\n \t array('id' => '33764','state_id' => '2942','name' => 'Racos'),\n \t array('id' => '33765','state_id' => '2942','name' => 'Rasnov'),\n \t array('id' => '33766','state_id' => '2942','name' => 'Recea'),\n \t array('id' => '33767','state_id' => '2942','name' => 'Rupea'),\n \t array('id' => '33768','state_id' => '2942','name' => 'Sacele'),\n \t array('id' => '33769','state_id' => '2942','name' => 'Sanpetru'),\n \t array('id' => '33770','state_id' => '2942','name' => 'Sercaia'),\n \t array('id' => '33771','state_id' => '2942','name' => 'Sinca'),\n \t array('id' => '33772','state_id' => '2942','name' => 'Soars'),\n \t array('id' => '33773','state_id' => '2942','name' => 'Tarlungeni'),\n \t array('id' => '33774','state_id' => '2942','name' => 'Teliu'),\n \t array('id' => '33775','state_id' => '2942','name' => 'Ticusul'),\n \t array('id' => '33776','state_id' => '2942','name' => 'Ucea'),\n \t array('id' => '33777','state_id' => '2942','name' => 'Ungra'),\n \t array('id' => '33778','state_id' => '2942','name' => 'Vama Buzaului'),\n \t array('id' => '33779','state_id' => '2942','name' => 'Victoria'),\n \t array('id' => '33780','state_id' => '2942','name' => 'Vistea'),\n \t array('id' => '33781','state_id' => '2942','name' => 'Voila'),\n \t array('id' => '33782','state_id' => '2942','name' => 'Vulcan'),\n \t array('id' => '33783','state_id' => '2942','name' => 'Zarnesti'),\n \t array('id' => '33784','state_id' => '2943','name' => 'Bucharest'),\n \t array('id' => '33785','state_id' => '2943','name' => 'Bucuresti'),\n \t array('id' => '33786','state_id' => '2944','name' => 'Amaru'),\n \t array('id' => '33787','state_id' => '2944','name' => 'Balaceanu'),\n \t array('id' => '33788','state_id' => '2944','name' => 'Balta Alba'),\n \t array('id' => '33789','state_id' => '2944','name' => 'Beceni'),\n \t array('id' => '33790','state_id' => '2944','name' => 'Berca'),\n \t array('id' => '33791','state_id' => '2944','name' => 'Bisoca'),\n \t array('id' => '33792','state_id' => '2944','name' => 'Blajani'),\n \t array('id' => '33793','state_id' => '2944','name' => 'Boldu'),\n \t array('id' => '33794','state_id' => '2944','name' => 'Bozioru'),\n \t array('id' => '33795','state_id' => '2944','name' => 'Bradeanu'),\n \t array('id' => '33796','state_id' => '2944','name' => 'Braesti'),\n \t array('id' => '33797','state_id' => '2944','name' => 'Breaza'),\n \t array('id' => '33798','state_id' => '2944','name' => 'Buda'),\n \t array('id' => '33799','state_id' => '2944','name' => 'Buzau'),\n \t array('id' => '33800','state_id' => '2944','name' => 'Calvini'),\n \t array('id' => '33801','state_id' => '2944','name' => 'Canesti'),\n \t array('id' => '33802','state_id' => '2944','name' => 'Catina'),\n \t array('id' => '33803','state_id' => '2944','name' => 'Cernatesti'),\n \t array('id' => '33804','state_id' => '2944','name' => 'Chiliile'),\n \t array('id' => '33805','state_id' => '2944','name' => 'Chiojdu'),\n \t array('id' => '33806','state_id' => '2944','name' => 'Cilibia'),\n \t array('id' => '33807','state_id' => '2944','name' => 'Cislau'),\n \t array('id' => '33808','state_id' => '2944','name' => 'Cochirleanca'),\n \t array('id' => '33809','state_id' => '2944','name' => 'Colti'),\n \t array('id' => '33810','state_id' => '2944','name' => 'Constantin Rosetti'),\n \t array('id' => '33811','state_id' => '2944','name' => 'Costesti'),\n \t array('id' => '33812','state_id' => '2944','name' => 'Cozieni'),\n \t array('id' => '33813','state_id' => '2944','name' => 'Galbinasi'),\n \t array('id' => '33814','state_id' => '2944','name' => 'Gheraseni'),\n \t array('id' => '33815','state_id' => '2944','name' => 'Ghergheasa'),\n \t array('id' => '33816','state_id' => '2944','name' => 'Glodeanu-Silistea'),\n \t array('id' => '33817','state_id' => '2944','name' => 'Glodeanul Sarat'),\n \t array('id' => '33818','state_id' => '2944','name' => 'Grebanu'),\n \t array('id' => '33819','state_id' => '2944','name' => 'Gura Teghii'),\n \t array('id' => '33820','state_id' => '2944','name' => 'Largu'),\n \t array('id' => '33821','state_id' => '2944','name' => 'Lopatari'),\n \t array('id' => '33822','state_id' => '2944','name' => 'Luciu'),\n \t array('id' => '33823','state_id' => '2944','name' => 'Magura'),\n \t array('id' => '33824','state_id' => '2944','name' => 'Manzalesti'),\n \t array('id' => '33825','state_id' => '2944','name' => 'Maracineni'),\n \t array('id' => '33826','state_id' => '2944','name' => 'Margaritesti'),\n \t array('id' => '33827','state_id' => '2944','name' => 'Merei'),\n \t array('id' => '33828','state_id' => '2944','name' => 'Mihailesti'),\n \t array('id' => '33829','state_id' => '2944','name' => 'Movila Banului'),\n \t array('id' => '33830','state_id' => '2944','name' => 'Murgesti'),\n \t array('id' => '33831','state_id' => '2944','name' => 'Naeni'),\n \t array('id' => '33832','state_id' => '2944','name' => 'Nehoiu'),\n \t array('id' => '33833','state_id' => '2944','name' => 'Odaile'),\n \t array('id' => '33834','state_id' => '2944','name' => 'Padina'),\n \t array('id' => '33835','state_id' => '2944','name' => 'Panatau'),\n \t array('id' => '33836','state_id' => '2944','name' => 'Pardosi'),\n \t array('id' => '33837','state_id' => '2944','name' => 'Parscov'),\n \t array('id' => '33838','state_id' => '2944','name' => 'Patarlagele'),\n \t array('id' => '33839','state_id' => '2944','name' => 'Pietroasele'),\n \t array('id' => '33840','state_id' => '2944','name' => 'Podgoria'),\n \t array('id' => '33841','state_id' => '2944','name' => 'Pogoanele'),\n \t array('id' => '33842','state_id' => '2944','name' => 'Posta Calnau'),\n \t array('id' => '33843','state_id' => '2944','name' => 'Puiesti'),\n \t array('id' => '33844','state_id' => '2944','name' => 'Racoviteni'),\n \t array('id' => '33845','state_id' => '2944','name' => 'Ramnicelu'),\n \t array('id' => '33846','state_id' => '2944','name' => 'Ramnicu Sarat'),\n \t array('id' => '33847','state_id' => '2944','name' => 'Robeasca'),\n \t array('id' => '33848','state_id' => '2944','name' => 'Rusetu'),\n \t array('id' => '33849','state_id' => '2944','name' => 'Sageata'),\n \t array('id' => '33850','state_id' => '2944','name' => 'Sahateni'),\n \t array('id' => '33851','state_id' => '2944','name' => 'Sapoca'),\n \t array('id' => '33852','state_id' => '2944','name' => 'Sarulesti'),\n \t array('id' => '33853','state_id' => '2944','name' => 'Scortoasa'),\n \t array('id' => '33854','state_id' => '2944','name' => 'Scutelnici'),\n \t array('id' => '33855','state_id' => '2944','name' => 'Siriu'),\n \t array('id' => '33856','state_id' => '2944','name' => 'Smeeni'),\n \t array('id' => '33857','state_id' => '2944','name' => 'Stalpu'),\n \t array('id' => '33858','state_id' => '2944','name' => 'Tintesti'),\n \t array('id' => '33859','state_id' => '2944','name' => 'Tisau'),\n \t array('id' => '33860','state_id' => '2944','name' => 'Topliceni'),\n \t array('id' => '33861','state_id' => '2944','name' => 'Ulmeni'),\n \t array('id' => '33862','state_id' => '2944','name' => 'Vadu Pasii'),\n \t array('id' => '33863','state_id' => '2944','name' => 'Valcelele'),\n \t array('id' => '33864','state_id' => '2944','name' => 'Valea Ramnicului'),\n \t array('id' => '33865','state_id' => '2944','name' => 'Valea Salciei'),\n \t array('id' => '33866','state_id' => '2944','name' => 'Vernesti'),\n \t array('id' => '33867','state_id' => '2944','name' => 'Vintila Voda'),\n \t array('id' => '33868','state_id' => '2944','name' => 'Viperesti'),\n \t array('id' => '33869','state_id' => '2944','name' => 'Zarnesti'),\n \t array('id' => '33870','state_id' => '2944','name' => 'Ziduri'),\n \t array('id' => '33871','state_id' => '2945','name' => 'Alexandru Odobescu'),\n \t array('id' => '33872','state_id' => '2945','name' => 'Belciugatele'),\n \t array('id' => '33873','state_id' => '2945','name' => 'Borcea'),\n \t array('id' => '33874','state_id' => '2945','name' => 'Budesti'),\n \t array('id' => '33875','state_id' => '2945','name' => 'Calarasi'),\n \t array('id' => '33876','state_id' => '2945','name' => 'Cascioarele'),\n \t array('id' => '33877','state_id' => '2945','name' => 'Chirnogi'),\n \t array('id' => '33878','state_id' => '2945','name' => 'Chiselet'),\n \t array('id' => '33879','state_id' => '2945','name' => 'Ciocanesti'),\n \t array('id' => '33880','state_id' => '2945','name' => 'Curcani'),\n \t array('id' => '33881','state_id' => '2945','name' => 'Cuza Voda'),\n \t array('id' => '33882','state_id' => '2945','name' => 'Dichiseni'),\n \t array('id' => '33883','state_id' => '2945','name' => 'Dor Marunt'),\n \t array('id' => '33884','state_id' => '2945','name' => 'Dorobantu'),\n \t array('id' => '33885','state_id' => '2945','name' => 'Dragalina'),\n \t array('id' => '33886','state_id' => '2945','name' => 'Dragos Voda'),\n \t array('id' => '33887','state_id' => '2945','name' => 'Frasinet'),\n \t array('id' => '33888','state_id' => '2945','name' => 'Frumusani'),\n \t array('id' => '33889','state_id' => '2945','name' => 'Fundeni'),\n \t array('id' => '33890','state_id' => '2945','name' => 'Fundulea'),\n \t array('id' => '33891','state_id' => '2945','name' => 'Gradistea'),\n \t array('id' => '33892','state_id' => '2945','name' => 'Gurbanesti'),\n \t array('id' => '33893','state_id' => '2945','name' => 'Ileana'),\n \t array('id' => '33894','state_id' => '2945','name' => 'Independenta'),\n \t array('id' => '33895','state_id' => '2945','name' => 'Jegalia'),\n \t array('id' => '33896','state_id' => '2945','name' => 'Lehliu'),\n \t array('id' => '33897','state_id' => '2945','name' => 'Lehliu-Gara'),\n \t array('id' => '33898','state_id' => '2945','name' => 'Luica'),\n \t array('id' => '33899','state_id' => '2945','name' => 'Lupsanu'),\n \t array('id' => '33900','state_id' => '2945','name' => 'Manastirea'),\n \t array('id' => '33901','state_id' => '2945','name' => 'Mitreni'),\n \t array('id' => '33902','state_id' => '2945','name' => 'Modelu'),\n \t array('id' => '33903','state_id' => '2945','name' => 'Nana'),\n \t array('id' => '33904','state_id' => '2945','name' => 'Nicolae Balcescu'),\n \t array('id' => '33905','state_id' => '2945','name' => 'Oltenita'),\n \t array('id' => '33906','state_id' => '2945','name' => 'Perisoru'),\n \t array('id' => '33907','state_id' => '2945','name' => 'Plataresti'),\n \t array('id' => '33908','state_id' => '2945','name' => 'Radovanu'),\n \t array('id' => '33909','state_id' => '2945','name' => 'Roseti'),\n \t array('id' => '33910','state_id' => '2945','name' => 'Sarulesti'),\n \t array('id' => '33911','state_id' => '2945','name' => 'Sohatu'),\n \t array('id' => '33912','state_id' => '2945','name' => 'Soldanu'),\n \t array('id' => '33913','state_id' => '2945','name' => 'Spantov'),\n \t array('id' => '33914','state_id' => '2945','name' => 'Stefan Voda'),\n \t array('id' => '33915','state_id' => '2945','name' => 'Stefan cel Mare'),\n \t array('id' => '33916','state_id' => '2945','name' => 'Tamadau Mare'),\n \t array('id' => '33917','state_id' => '2945','name' => 'Ulmeni'),\n \t array('id' => '33918','state_id' => '2945','name' => 'Ulmu'),\n \t array('id' => '33919','state_id' => '2945','name' => 'Unirea'),\n \t array('id' => '33920','state_id' => '2945','name' => 'Valcelele'),\n \t array('id' => '33921','state_id' => '2945','name' => 'Valea Argovei'),\n \t array('id' => '33922','state_id' => '2945','name' => 'Vasilati'),\n \t array('id' => '33923','state_id' => '2945','name' => 'Vlad Tepes'),\n \t array('id' => '33924','state_id' => '2946','name' => 'Anina'),\n \t array('id' => '33925','state_id' => '2946','name' => 'Armenis'),\n \t array('id' => '33926','state_id' => '2946','name' => 'Baile Herculane'),\n \t array('id' => '33927','state_id' => '2946','name' => 'Bania'),\n \t array('id' => '33928','state_id' => '2946','name' => 'Bautar'),\n \t array('id' => '33929','state_id' => '2946','name' => 'Berliste'),\n \t array('id' => '33930','state_id' => '2946','name' => 'Berzasca'),\n \t array('id' => '33931','state_id' => '2946','name' => 'Berzovia'),\n \t array('id' => '33932','state_id' => '2946','name' => 'Bocsa'),\n \t array('id' => '33933','state_id' => '2946','name' => 'Bolvasnita'),\n \t array('id' => '33934','state_id' => '2946','name' => 'Bozovici'),\n \t array('id' => '33935','state_id' => '2946','name' => 'Brebu'),\n \t array('id' => '33936','state_id' => '2946','name' => 'Brebu Nou'),\n \t array('id' => '33937','state_id' => '2946','name' => 'Buchin'),\n \t array('id' => '33938','state_id' => '2946','name' => 'Bucosnita'),\n \t array('id' => '33939','state_id' => '2946','name' => 'Caransebes'),\n \t array('id' => '33940','state_id' => '2946','name' => 'Carasova'),\n \t array('id' => '33941','state_id' => '2946','name' => 'Carbunari'),\n \t array('id' => '33942','state_id' => '2946','name' => 'Ciclova Romana'),\n \t array('id' => '33943','state_id' => '2946','name' => 'Ciuchici'),\n \t array('id' => '33944','state_id' => '2946','name' => 'Ciudanovita'),\n \t array('id' => '33945','state_id' => '2946','name' => 'Constantin Daicoviciu'),\n \t array('id' => '33946','state_id' => '2946','name' => 'Copacele'),\n \t array('id' => '33947','state_id' => '2946','name' => 'Cornea'),\n \t array('id' => '33948','state_id' => '2946','name' => 'Cornereva'),\n \t array('id' => '33949','state_id' => '2946','name' => 'Coronini'),\n \t array('id' => '33950','state_id' => '2946','name' => 'Dalboset'),\n \t array('id' => '33951','state_id' => '2946','name' => 'Doclin'),\n \t array('id' => '33952','state_id' => '2946','name' => 'Dognecea'),\n \t array('id' => '33953','state_id' => '2946','name' => 'Domasnea'),\n \t array('id' => '33954','state_id' => '2946','name' => 'Eftimie Murgu'),\n \t array('id' => '33955','state_id' => '2946','name' => 'Ezeris'),\n \t array('id' => '33956','state_id' => '2946','name' => 'Farliug'),\n \t array('id' => '33957','state_id' => '2946','name' => 'Forotic'),\n \t array('id' => '33958','state_id' => '2946','name' => 'Garnic'),\n \t array('id' => '33959','state_id' => '2946','name' => 'Glimboca'),\n \t array('id' => '33960','state_id' => '2946','name' => 'Goruia'),\n \t array('id' => '33961','state_id' => '2946','name' => 'Gradinari'),\n \t array('id' => '33962','state_id' => '2946','name' => 'Iablanita'),\n \t array('id' => '33963','state_id' => '2946','name' => 'Lapusnicel'),\n \t array('id' => '33964','state_id' => '2946','name' => 'Lapusnicu Mare'),\n \t array('id' => '33965','state_id' => '2946','name' => 'Luncavita'),\n \t array('id' => '33966','state_id' => '2946','name' => 'Lupac'),\n \t array('id' => '33967','state_id' => '2946','name' => 'Marga'),\n \t array('id' => '33968','state_id' => '2946','name' => 'Maureni'),\n \t array('id' => '33969','state_id' => '2946','name' => 'Mehadia'),\n \t array('id' => '33970','state_id' => '2946','name' => 'Mehadica'),\n \t array('id' => '33971','state_id' => '2946','name' => 'Moldova Noua'),\n \t array('id' => '33972','state_id' => '2946','name' => 'Naidas'),\n \t array('id' => '33973','state_id' => '2946','name' => 'Obreja'),\n \t array('id' => '33974','state_id' => '2946','name' => 'Ocna de Fier'),\n \t array('id' => '33975','state_id' => '2946','name' => 'Oravita'),\n \t array('id' => '33976','state_id' => '2946','name' => 'Otelu Rosu'),\n \t array('id' => '33977','state_id' => '2946','name' => 'Paltinis'),\n \t array('id' => '33978','state_id' => '2946','name' => 'Pojejena'),\n \t array('id' => '33979','state_id' => '2946','name' => 'Prigor'),\n \t array('id' => '33980','state_id' => '2946','name' => 'Racasdia'),\n \t array('id' => '33981','state_id' => '2946','name' => 'Ramna'),\n \t array('id' => '33982','state_id' => '2946','name' => 'Resita'),\n \t array('id' => '33983','state_id' => '2946','name' => 'Rusca Montana'),\n \t array('id' => '33984','state_id' => '2946','name' => 'Sacu'),\n \t array('id' => '33985','state_id' => '2946','name' => 'Sasca Montana'),\n \t array('id' => '33986','state_id' => '2946','name' => 'Sichevita'),\n \t array('id' => '33987','state_id' => '2946','name' => 'Slatina-Timis'),\n \t array('id' => '33988','state_id' => '2946','name' => 'Socol'),\n \t array('id' => '33989','state_id' => '2946','name' => 'Sopotu Nou'),\n \t array('id' => '33990','state_id' => '2946','name' => 'Tarnova'),\n \t array('id' => '33991','state_id' => '2946','name' => 'Teregova'),\n \t array('id' => '33992','state_id' => '2946','name' => 'Ticvaniu Mare'),\n \t array('id' => '33993','state_id' => '2946','name' => 'Toplet'),\n \t array('id' => '33994','state_id' => '2946','name' => 'Turnu Ruieni'),\n \t array('id' => '33995','state_id' => '2946','name' => 'Valiug'),\n \t array('id' => '33996','state_id' => '2946','name' => 'Varadia'),\n \t array('id' => '33997','state_id' => '2946','name' => 'Vermes'),\n \t array('id' => '33998','state_id' => '2946','name' => 'Vrani'),\n \t array('id' => '33999','state_id' => '2946','name' => 'Zavoi'),\n \t array('id' => '34000','state_id' => '2946','name' => 'Zorlentu Mare'),\n \t array('id' => '34001','state_id' => '2947','name' => 'Aghiresu'),\n \t array('id' => '34002','state_id' => '2947','name' => 'Aiton'),\n \t array('id' => '34003','state_id' => '2947','name' => 'Alunis'),\n \t array('id' => '34004','state_id' => '2947','name' => 'Apahida'),\n \t array('id' => '34005','state_id' => '2947','name' => 'Aschileu'),\n \t array('id' => '34006','state_id' => '2947','name' => 'Baciu'),\n \t array('id' => '34007','state_id' => '2947','name' => 'Baisoara'),\n \t array('id' => '34008','state_id' => '2947','name' => 'Belis'),\n \t array('id' => '34009','state_id' => '2947','name' => 'Bobalna'),\n \t array('id' => '34010','state_id' => '2947','name' => 'Bontida'),\n \t array('id' => '34011','state_id' => '2947','name' => 'Borsa'),\n \t array('id' => '34012','state_id' => '2947','name' => 'Buza'),\n \t array('id' => '34013','state_id' => '2947','name' => 'Caianu'),\n \t array('id' => '34014','state_id' => '2947','name' => 'Calarasi'),\n \t array('id' => '34015','state_id' => '2947','name' => 'Calatele'),\n \t array('id' => '34016','state_id' => '2947','name' => 'Camarasu'),\n \t array('id' => '34017','state_id' => '2947','name' => 'Campia Turzii'),\n \t array('id' => '34018','state_id' => '2947','name' => 'Capusu Mare'),\n \t array('id' => '34019','state_id' => '2947','name' => 'Caseiu'),\n \t array('id' => '34020','state_id' => '2947','name' => 'Catcau'),\n \t array('id' => '34021','state_id' => '2947','name' => 'Catina'),\n \t array('id' => '34022','state_id' => '2947','name' => 'Ceanu Mare'),\n \t array('id' => '34023','state_id' => '2947','name' => 'Chinteni'),\n \t array('id' => '34024','state_id' => '2947','name' => 'Chiuiesti'),\n \t array('id' => '34025','state_id' => '2947','name' => 'Ciucea'),\n \t array('id' => '34026','state_id' => '2947','name' => 'Ciurila'),\n \t array('id' => '34027','state_id' => '2947','name' => 'Cluj-Napoca'),\n \t array('id' => '34028','state_id' => '2947','name' => 'Cojocna'),\n \t array('id' => '34029','state_id' => '2947','name' => 'Cornesti'),\n \t array('id' => '34030','state_id' => '2947','name' => 'Cuzdrioara'),\n \t array('id' => '34031','state_id' => '2947','name' => 'Dabaca'),\n \t array('id' => '34032','state_id' => '2947','name' => 'Dej'),\n \t array('id' => '34033','state_id' => '2947','name' => 'Feleacu'),\n \t array('id' => '34034','state_id' => '2947','name' => 'Fizesu Gherlii'),\n \t array('id' => '34035','state_id' => '2947','name' => 'Floresti'),\n \t array('id' => '34036','state_id' => '2947','name' => 'Frata'),\n \t array('id' => '34037','state_id' => '2947','name' => 'Garbau'),\n \t array('id' => '34038','state_id' => '2947','name' => 'Geaca'),\n \t array('id' => '34039','state_id' => '2947','name' => 'Gherla'),\n \t array('id' => '34040','state_id' => '2947','name' => 'Gilau'),\n \t array('id' => '34041','state_id' => '2947','name' => 'Huedin'),\n \t array('id' => '34042','state_id' => '2947','name' => 'Iara'),\n \t array('id' => '34043','state_id' => '2947','name' => 'Iclod'),\n \t array('id' => '34044','state_id' => '2947','name' => 'Izvoru Crisului'),\n \t array('id' => '34045','state_id' => '2947','name' => 'Jichisu de Jos'),\n \t array('id' => '34046','state_id' => '2947','name' => 'Jucu'),\n \t array('id' => '34047','state_id' => '2947','name' => 'Luna'),\n \t array('id' => '34048','state_id' => '2947','name' => 'Maguri-Racatau'),\n \t array('id' => '34049','state_id' => '2947','name' => 'Manastireni'),\n \t array('id' => '34050','state_id' => '2947','name' => 'Margau'),\n \t array('id' => '34051','state_id' => '2947','name' => 'Marisel'),\n \t array('id' => '34052','state_id' => '2947','name' => 'Mica'),\n \t array('id' => '34053','state_id' => '2947','name' => 'Mihai Viteazu'),\n \t array('id' => '34054','state_id' => '2947','name' => 'Mintiu Gherlii'),\n \t array('id' => '34055','state_id' => '2947','name' => 'Mociu'),\n \t array('id' => '34056','state_id' => '2947','name' => 'Moldovenesti'),\n \t array('id' => '34057','state_id' => '2947','name' => 'Palatca'),\n \t array('id' => '34058','state_id' => '2947','name' => 'Panticeu'),\n \t array('id' => '34059','state_id' => '2947','name' => 'Petrestii de Jos'),\n \t array('id' => '34060','state_id' => '2947','name' => 'Ploscos'),\n \t array('id' => '34061','state_id' => '2947','name' => 'Poieni'),\n \t array('id' => '34062','state_id' => '2947','name' => 'Rasca'),\n \t array('id' => '34063','state_id' => '2947','name' => 'Recea Cristur'),\n \t array('id' => '34064','state_id' => '2947','name' => 'Sacuieu'),\n \t array('id' => '34065','state_id' => '2947','name' => 'Sancraiu'),\n \t array('id' => '34066','state_id' => '2947','name' => 'Sandulesti'),\n \t array('id' => '34067','state_id' => '2947','name' => 'Sanmartin'),\n \t array('id' => '34068','state_id' => '2947','name' => 'Sanpaul'),\n \t array('id' => '34069','state_id' => '2947','name' => 'Savadisla'),\n \t array('id' => '34070','state_id' => '2947','name' => 'Sic'),\n \t array('id' => '34071','state_id' => '2947','name' => 'Suatu'),\n \t array('id' => '34072','state_id' => '2947','name' => 'Taga'),\n \t array('id' => '34073','state_id' => '2947','name' => 'Tritenii de Jos'),\n \t array('id' => '34074','state_id' => '2947','name' => 'Turda'),\n \t array('id' => '34075','state_id' => '2947','name' => 'Tureni'),\n \t array('id' => '34076','state_id' => '2947','name' => 'Unguras'),\n \t array('id' => '34077','state_id' => '2947','name' => 'Vad'),\n \t array('id' => '34078','state_id' => '2947','name' => 'Valea Ierii'),\n \t array('id' => '34079','state_id' => '2947','name' => 'Viisoara'),\n \t array('id' => '34080','state_id' => '2947','name' => 'Vultureni'),\n \t array('id' => '34081','state_id' => '2948','name' => 'Adamclisi'),\n \t array('id' => '34082','state_id' => '2948','name' => 'Agigea'),\n \t array('id' => '34083','state_id' => '2948','name' => 'Albesti'),\n \t array('id' => '34084','state_id' => '2948','name' => 'Aliman'),\n \t array('id' => '34085','state_id' => '2948','name' => 'Amzacea'),\n \t array('id' => '34086','state_id' => '2948','name' => 'Baneasa'),\n \t array('id' => '34087','state_id' => '2948','name' => 'Basarabi'),\n \t array('id' => '34088','state_id' => '2948','name' => 'Castelu'),\n \t array('id' => '34089','state_id' => '2948','name' => 'Cerchezu'),\n \t array('id' => '34090','state_id' => '2948','name' => 'Cernavoda'),\n \t array('id' => '34091','state_id' => '2948','name' => 'Chirnogeni'),\n \t array('id' => '34092','state_id' => '2948','name' => 'Ciobanu'),\n \t array('id' => '34093','state_id' => '2948','name' => 'Ciocarlia'),\n \t array('id' => '34094','state_id' => '2948','name' => 'Cobadin'),\n \t array('id' => '34095','state_id' => '2948','name' => 'Cogealac'),\n \t array('id' => '34096','state_id' => '2948','name' => 'Comana'),\n \t array('id' => '34097','state_id' => '2948','name' => 'Constanta'),\n \t array('id' => '34098','state_id' => '2948','name' => 'Corbu'),\n \t array('id' => '34099','state_id' => '2948','name' => 'Costinesti'),\n \t array('id' => '34100','state_id' => '2948','name' => 'Crucea'),\n \t array('id' => '34101','state_id' => '2948','name' => 'Cumpana'),\n \t array('id' => '34102','state_id' => '2948','name' => 'Deleni'),\n \t array('id' => '34103','state_id' => '2948','name' => 'Dobromir'),\n \t array('id' => '34104','state_id' => '2948','name' => 'Douazeci si Trei August'),\n \t array('id' => '34105','state_id' => '2948','name' => 'Dumbraveni'),\n \t array('id' => '34106','state_id' => '2948','name' => 'Eforie'),\n \t array('id' => '34107','state_id' => '2948','name' => 'Garliciu'),\n \t array('id' => '34108','state_id' => '2948','name' => 'Ghindaresti'),\n \t array('id' => '34109','state_id' => '2948','name' => 'Harsova'),\n \t array('id' => '34110','state_id' => '2948','name' => 'Horia'),\n \t array('id' => '34111','state_id' => '2948','name' => 'Independenta'),\n \t array('id' => '34112','state_id' => '2948','name' => 'Ion Corvin'),\n \t array('id' => '34113','state_id' => '2948','name' => 'Istria'),\n \t array('id' => '34114','state_id' => '2948','name' => 'Limanu'),\n \t array('id' => '34115','state_id' => '2948','name' => 'Lipnita'),\n \t array('id' => '34116','state_id' => '2948','name' => 'Lumina'),\n \t array('id' => '34117','state_id' => '2948','name' => 'Mangalia'),\n \t array('id' => '34118','state_id' => '2948','name' => 'Medgidia'),\n \t array('id' => '34119','state_id' => '2948','name' => 'Mereni'),\n \t array('id' => '34120','state_id' => '2948','name' => 'Mihai Viteazu'),\n \t array('id' => '34121','state_id' => '2948','name' => 'Mihail Kogalniceanu'),\n \t array('id' => '34122','state_id' => '2948','name' => 'Mircea Voda'),\n \t array('id' => '34123','state_id' => '2948','name' => 'Navodari'),\n \t array('id' => '34124','state_id' => '2948','name' => 'Negru Voda'),\n \t array('id' => '34125','state_id' => '2948','name' => 'Nicolae Balcescu'),\n \t array('id' => '34126','state_id' => '2948','name' => 'Oltina'),\n \t array('id' => '34127','state_id' => '2948','name' => 'Ostrov'),\n \t array('id' => '34128','state_id' => '2948','name' => 'Ovidiu'),\n \t array('id' => '34129','state_id' => '2948','name' => 'Pantelimon'),\n \t array('id' => '34130','state_id' => '2948','name' => 'Pecineaga'),\n \t array('id' => '34131','state_id' => '2948','name' => 'Pestera'),\n \t array('id' => '34132','state_id' => '2948','name' => 'Poarta Alba'),\n \t array('id' => '34133','state_id' => '2948','name' => 'Rasova'),\n \t array('id' => '34134','state_id' => '2948','name' => 'Sacele'),\n \t array('id' => '34135','state_id' => '2948','name' => 'Saraiu'),\n \t array('id' => '34136','state_id' => '2948','name' => 'Seimeni'),\n \t array('id' => '34137','state_id' => '2948','name' => 'Silistea'),\n \t array('id' => '34138','state_id' => '2948','name' => 'Targusor'),\n \t array('id' => '34139','state_id' => '2948','name' => 'Techirghiol'),\n \t array('id' => '34140','state_id' => '2948','name' => 'Topalu'),\n \t array('id' => '34141','state_id' => '2948','name' => 'Topraisar'),\n \t array('id' => '34142','state_id' => '2948','name' => 'Tortoman'),\n \t array('id' => '34143','state_id' => '2948','name' => 'Tuzla'),\n \t array('id' => '34144','state_id' => '2948','name' => 'Valu lui Traian'),\n \t array('id' => '34145','state_id' => '2948','name' => 'Vulturu'),\n \t array('id' => '34146','state_id' => '2949','name' => 'Aita Mare'),\n \t array('id' => '34147','state_id' => '2949','name' => 'Baraolt'),\n \t array('id' => '34148','state_id' => '2949','name' => 'Barcani'),\n \t array('id' => '34149','state_id' => '2949','name' => 'Batani'),\n \t array('id' => '34150','state_id' => '2949','name' => 'Belin'),\n \t array('id' => '34151','state_id' => '2949','name' => 'Bodoc'),\n \t array('id' => '34152','state_id' => '2949','name' => 'Borosneu Mare'),\n \t array('id' => '34153','state_id' => '2949','name' => 'Bradut'),\n \t array('id' => '34154','state_id' => '2949','name' => 'Brates'),\n \t array('id' => '34155','state_id' => '2949','name' => 'Bretcu'),\n \t array('id' => '34156','state_id' => '2949','name' => 'Catalina'),\n \t array('id' => '34157','state_id' => '2949','name' => 'Cernat'),\n \t array('id' => '34158','state_id' => '2949','name' => 'Chichis'),\n \t array('id' => '34159','state_id' => '2949','name' => 'Comandau'),\n \t array('id' => '34160','state_id' => '2949','name' => 'Covasna'),\n \t array('id' => '34161','state_id' => '2949','name' => 'Dobarlau'),\n \t array('id' => '34162','state_id' => '2949','name' => 'Ghelinta'),\n \t array('id' => '34163','state_id' => '2949','name' => 'Ghidfalau'),\n \t array('id' => '34164','state_id' => '2949','name' => 'Haghig'),\n \t array('id' => '34165','state_id' => '2949','name' => 'Ilieni'),\n \t array('id' => '34166','state_id' => '2949','name' => 'Intorsura Buzaului'),\n \t array('id' => '34167','state_id' => '2949','name' => 'Lemnia'),\n \t array('id' => '34168','state_id' => '2949','name' => 'Malnas'),\n \t array('id' => '34169','state_id' => '2949','name' => 'Moacsa'),\n \t array('id' => '34170','state_id' => '2949','name' => 'Ojdula'),\n \t array('id' => '34171','state_id' => '2949','name' => 'Ozun'),\n \t array('id' => '34172','state_id' => '2949','name' => 'Poian'),\n \t array('id' => '34173','state_id' => '2949','name' => 'Reci'),\n \t array('id' => '34174','state_id' => '2949','name' => 'Sanzieni'),\n \t array('id' => '34175','state_id' => '2949','name' => 'Sfantu Gheorghe'),\n \t array('id' => '34176','state_id' => '2949','name' => 'Sita Buzaului'),\n \t array('id' => '34177','state_id' => '2949','name' => 'Targu Secuiesc'),\n \t array('id' => '34178','state_id' => '2949','name' => 'Turia'),\n \t array('id' => '34179','state_id' => '2949','name' => 'Valcele'),\n \t array('id' => '34180','state_id' => '2949','name' => 'Valea Crisului'),\n \t array('id' => '34181','state_id' => '2949','name' => 'Valea Mare'),\n \t array('id' => '34182','state_id' => '2949','name' => 'Varghis'),\n \t array('id' => '34183','state_id' => '2949','name' => 'Zabala'),\n \t array('id' => '34184','state_id' => '2949','name' => 'Zagon'),\n \t array('id' => '34185','state_id' => '2950','name' => 'Aninoasa'),\n \t array('id' => '34186','state_id' => '2950','name' => 'Baleni'),\n \t array('id' => '34187','state_id' => '2950','name' => 'Barbuletu'),\n \t array('id' => '34188','state_id' => '2950','name' => 'Bezdead'),\n \t array('id' => '34189','state_id' => '2950','name' => 'Bilciuresti'),\n \t array('id' => '34190','state_id' => '2950','name' => 'Branesti'),\n \t array('id' => '34191','state_id' => '2950','name' => 'Branistea'),\n \t array('id' => '34192','state_id' => '2950','name' => 'Brezoaiele'),\n \t array('id' => '34193','state_id' => '2950','name' => 'Buciumeni'),\n \t array('id' => '34194','state_id' => '2950','name' => 'Bucsani'),\n \t array('id' => '34195','state_id' => '2950','name' => 'Butimanu'),\n \t array('id' => '34196','state_id' => '2950','name' => 'Candesti'),\n \t array('id' => '34197','state_id' => '2950','name' => 'Ciocanesti'),\n \t array('id' => '34198','state_id' => '2950','name' => 'Cobia'),\n \t array('id' => '34199','state_id' => '2950','name' => 'Cojasca'),\n \t array('id' => '34200','state_id' => '2950','name' => 'Comisani'),\n \t array('id' => '34201','state_id' => '2950','name' => 'Contesti'),\n \t array('id' => '34202','state_id' => '2950','name' => 'Corbii Mari'),\n \t array('id' => '34203','state_id' => '2950','name' => 'Cornatelu'),\n \t array('id' => '34204','state_id' => '2950','name' => 'Cornesti'),\n \t array('id' => '34205','state_id' => '2950','name' => 'Costestii din Vale'),\n \t array('id' => '34206','state_id' => '2950','name' => 'Crangurile de Sus'),\n \t array('id' => '34207','state_id' => '2950','name' => 'Crevedia'),\n \t array('id' => '34208','state_id' => '2950','name' => 'Darmanesti'),\n \t array('id' => '34209','state_id' => '2950','name' => 'Dobra'),\n \t array('id' => '34210','state_id' => '2950','name' => 'Doicesti'),\n \t array('id' => '34211','state_id' => '2950','name' => 'Dragodana'),\n \t array('id' => '34212','state_id' => '2950','name' => 'Dragomiresti'),\n \t array('id' => '34213','state_id' => '2950','name' => 'Edera de Jos'),\n \t array('id' => '34214','state_id' => '2950','name' => 'Fieni'),\n \t array('id' => '34215','state_id' => '2950','name' => 'Finta'),\n \t array('id' => '34216','state_id' => '2950','name' => 'Gaesti'),\n \t array('id' => '34217','state_id' => '2950','name' => 'Glodeni'),\n \t array('id' => '34218','state_id' => '2950','name' => 'Gura Foii'),\n \t array('id' => '34219','state_id' => '2950','name' => 'Gura Ocnitei'),\n \t array('id' => '34220','state_id' => '2950','name' => 'Gura Sutii'),\n \t array('id' => '34221','state_id' => '2950','name' => 'Hulubesti'),\n \t array('id' => '34222','state_id' => '2950','name' => 'Ion luca Caragiale'),\n \t array('id' => '34223','state_id' => '2950','name' => 'Lucieni'),\n \t array('id' => '34224','state_id' => '2950','name' => 'Ludesti'),\n \t array('id' => '34225','state_id' => '2950','name' => 'Lunguletu'),\n \t array('id' => '34226','state_id' => '2950','name' => 'Malu cu Flori'),\n \t array('id' => '34227','state_id' => '2950','name' => 'Manesti'),\n \t array('id' => '34228','state_id' => '2950','name' => 'Matasaru'),\n \t array('id' => '34229','state_id' => '2950','name' => 'Mogosani'),\n \t array('id' => '34230','state_id' => '2950','name' => 'Moreni'),\n \t array('id' => '34231','state_id' => '2950','name' => 'Moroeni'),\n \t array('id' => '34232','state_id' => '2950','name' => 'Morteni'),\n \t array('id' => '34233','state_id' => '2950','name' => 'Motaeni'),\n \t array('id' => '34234','state_id' => '2950','name' => 'Niculesti'),\n \t array('id' => '34235','state_id' => '2950','name' => 'Nucet'),\n \t array('id' => '34236','state_id' => '2950','name' => 'Ocnita'),\n \t array('id' => '34237','state_id' => '2950','name' => 'Odobesti'),\n \t array('id' => '34238','state_id' => '2950','name' => 'Petresti'),\n \t array('id' => '34239','state_id' => '2950','name' => 'Pietrosita'),\n \t array('id' => '34240','state_id' => '2950','name' => 'Poiana'),\n \t array('id' => '34241','state_id' => '2950','name' => 'Potlogi'),\n \t array('id' => '34242','state_id' => '2950','name' => 'Produlesti'),\n \t array('id' => '34243','state_id' => '2950','name' => 'Pucheni'),\n \t array('id' => '34244','state_id' => '2950','name' => 'Pucioasa'),\n \t array('id' => '34245','state_id' => '2950','name' => 'Racari'),\n \t array('id' => '34246','state_id' => '2950','name' => 'Razvad'),\n \t array('id' => '34247','state_id' => '2950','name' => 'Runcu'),\n \t array('id' => '34248','state_id' => '2950','name' => 'Salcioara'),\n \t array('id' => '34249','state_id' => '2950','name' => 'Selaru'),\n \t array('id' => '34250','state_id' => '2950','name' => 'Slobozia Moara'),\n \t array('id' => '34251','state_id' => '2950','name' => 'Sotanga'),\n \t array('id' => '34252','state_id' => '2950','name' => 'Targoviste'),\n \t array('id' => '34253','state_id' => '2950','name' => 'Tartasesti'),\n \t array('id' => '34254','state_id' => '2950','name' => 'Tatarani'),\n \t array('id' => '34255','state_id' => '2950','name' => 'Titu'),\n \t array('id' => '34256','state_id' => '2950','name' => 'Uliesti'),\n \t array('id' => '34257','state_id' => '2950','name' => 'Ulmi'),\n \t array('id' => '34258','state_id' => '2950','name' => 'Vacaresti'),\n \t array('id' => '34259','state_id' => '2950','name' => 'Valea Lunga'),\n \t array('id' => '34260','state_id' => '2950','name' => 'Valea Mare'),\n \t array('id' => '34261','state_id' => '2950','name' => 'Valeni-Dambovita'),\n \t array('id' => '34262','state_id' => '2950','name' => 'Varfuri'),\n \t array('id' => '34263','state_id' => '2950','name' => 'Visina'),\n \t array('id' => '34264','state_id' => '2950','name' => 'Visinesti'),\n \t array('id' => '34265','state_id' => '2950','name' => 'Voinesti'),\n \t array('id' => '34266','state_id' => '2950','name' => 'Vulcana Bai'),\n \t array('id' => '34267','state_id' => '2951','name' => 'Afumati'),\n \t array('id' => '34268','state_id' => '2951','name' => 'Almajiu'),\n \t array('id' => '34269','state_id' => '2951','name' => 'Amarastii de Jos'),\n \t array('id' => '34270','state_id' => '2951','name' => 'Amarastii de Sus'),\n \t array('id' => '34271','state_id' => '2951','name' => 'Apele Vii'),\n \t array('id' => '34272','state_id' => '2951','name' => 'Argetoaia'),\n \t array('id' => '34273','state_id' => '2951','name' => 'Bailesti'),\n \t array('id' => '34274','state_id' => '2951','name' => 'Barca'),\n \t array('id' => '34275','state_id' => '2951','name' => 'Bechet'),\n \t array('id' => '34276','state_id' => '2951','name' => 'Bistret'),\n \t array('id' => '34277','state_id' => '2951','name' => 'Botosesti-Paia'),\n \t array('id' => '34278','state_id' => '2951','name' => 'Brabova'),\n \t array('id' => '34279','state_id' => '2951','name' => 'Bradesti'),\n \t array('id' => '34280','state_id' => '2951','name' => 'Bralostita'),\n \t array('id' => '34281','state_id' => '2951','name' => 'Bratovoesti'),\n \t array('id' => '34282','state_id' => '2951','name' => 'Breasta'),\n \t array('id' => '34283','state_id' => '2951','name' => 'Bucovat'),\n \t array('id' => '34284','state_id' => '2951','name' => 'Bulzesti'),\n \t array('id' => '34285','state_id' => '2951','name' => 'Calafat'),\n \t array('id' => '34286','state_id' => '2951','name' => 'Calarasi'),\n \t array('id' => '34287','state_id' => '2951','name' => 'Calopar'),\n \t array('id' => '34288','state_id' => '2951','name' => 'Caraula'),\n \t array('id' => '34289','state_id' => '2951','name' => 'Carpen'),\n \t array('id' => '34290','state_id' => '2951','name' => 'Castra-Nova'),\n \t array('id' => '34291','state_id' => '2951','name' => 'Celaru'),\n \t array('id' => '34292','state_id' => '2951','name' => 'Ceratu'),\n \t array('id' => '34293','state_id' => '2951','name' => 'Cernatesti'),\n \t array('id' => '34294','state_id' => '2951','name' => 'Cetate'),\n \t array('id' => '34295','state_id' => '2951','name' => 'Cioroiasiu'),\n \t array('id' => '34296','state_id' => '2951','name' => 'Ciupercenii Noi'),\n \t array('id' => '34297','state_id' => '2951','name' => 'Cosoveni'),\n \t array('id' => '34298','state_id' => '2951','name' => 'Cotofenii din Dos'),\n \t array('id' => '34299','state_id' => '2951','name' => 'Craiova'),\n \t array('id' => '34300','state_id' => '2951','name' => 'Dabuleni'),\n \t array('id' => '34301','state_id' => '2951','name' => 'Daneti'),\n \t array('id' => '34302','state_id' => '2951','name' => 'Desa'),\n \t array('id' => '34303','state_id' => '2951','name' => 'Diosti'),\n \t array('id' => '34304','state_id' => '2951','name' => 'Dobresti'),\n \t array('id' => '34305','state_id' => '2951','name' => 'Dragotesti'),\n \t array('id' => '34306','state_id' => '2951','name' => 'Dranic'),\n \t array('id' => '34307','state_id' => '2951','name' => 'Farcasu'),\n \t array('id' => '34308','state_id' => '2951','name' => 'Filiasi'),\n \t array('id' => '34309','state_id' => '2951','name' => 'Galicea Mare'),\n \t array('id' => '34310','state_id' => '2951','name' => 'Gangiova'),\n \t array('id' => '34311','state_id' => '2951','name' => 'Ghercesti'),\n \t array('id' => '34312','state_id' => '2951','name' => 'Gighera'),\n \t array('id' => '34313','state_id' => '2951','name' => 'Giubega'),\n \t array('id' => '34314','state_id' => '2951','name' => 'Giurgita'),\n \t array('id' => '34315','state_id' => '2951','name' => 'Gogosu'),\n \t array('id' => '34316','state_id' => '2951','name' => 'Goicea'),\n \t array('id' => '34317','state_id' => '2951','name' => 'Goiesti'),\n \t array('id' => '34318','state_id' => '2951','name' => 'Grecesti'),\n \t array('id' => '34319','state_id' => '2951','name' => 'Isalnita'),\n \t array('id' => '34320','state_id' => '2951','name' => 'Izvoare'),\n \t array('id' => '34321','state_id' => '2951','name' => 'Leu'),\n \t array('id' => '34322','state_id' => '2951','name' => 'Lipovu'),\n \t array('id' => '34323','state_id' => '2951','name' => 'Macesu de Jos'),\n \t array('id' => '34324','state_id' => '2951','name' => 'Macesu de Sus'),\n \t array('id' => '34325','state_id' => '2951','name' => 'Maglavit'),\n \t array('id' => '34326','state_id' => '2951','name' => 'Malu Mare'),\n \t array('id' => '34327','state_id' => '2951','name' => 'Marsani'),\n \t array('id' => '34328','state_id' => '2951','name' => 'Melinesti'),\n \t array('id' => '34329','state_id' => '2951','name' => 'Mischii'),\n \t array('id' => '34330','state_id' => '2951','name' => 'Motatei'),\n \t array('id' => '34331','state_id' => '2951','name' => 'Murgasi'),\n \t array('id' => '34332','state_id' => '2951','name' => 'Negoi'),\n \t array('id' => '34333','state_id' => '2951','name' => 'Orodel'),\n \t array('id' => '34334','state_id' => '2951','name' => 'Ostroveni'),\n \t array('id' => '34335','state_id' => '2951','name' => 'Perisor'),\n \t array('id' => '34336','state_id' => '2951','name' => 'Pielesti'),\n \t array('id' => '34337','state_id' => '2951','name' => 'Piscu Vechi'),\n \t array('id' => '34338','state_id' => '2951','name' => 'Plenita'),\n \t array('id' => '34339','state_id' => '2951','name' => 'Podari'),\n \t array('id' => '34340','state_id' => '2951','name' => 'Poiana Mare'),\n \t array('id' => '34341','state_id' => '2951','name' => 'Predesti'),\n \t array('id' => '34342','state_id' => '2951','name' => 'Radovan'),\n \t array('id' => '34343','state_id' => '2951','name' => 'Rastu'),\n \t array('id' => '34344','state_id' => '2951','name' => 'Robanesti'),\n \t array('id' => '34345','state_id' => '2951','name' => 'Sadova'),\n \t array('id' => '34346','state_id' => '2951','name' => 'Salcuta'),\n \t array('id' => '34347','state_id' => '2951','name' => 'Scaesti'),\n \t array('id' => '34348','state_id' => '2951','name' => 'Seaca de Camp'),\n \t array('id' => '34349','state_id' => '2951','name' => 'Seaca de Padure'),\n \t array('id' => '34350','state_id' => '2951','name' => 'Secu'),\n \t array('id' => '34351','state_id' => '2951','name' => 'Segarcea'),\n \t array('id' => '34352','state_id' => '2951','name' => 'Silistea Crucii'),\n \t array('id' => '34353','state_id' => '2951','name' => 'Simnicu de Sus'),\n \t array('id' => '34354','state_id' => '2951','name' => 'Sopot'),\n \t array('id' => '34355','state_id' => '2951','name' => 'Teasc'),\n \t array('id' => '34356','state_id' => '2951','name' => 'Terpezita'),\n \t array('id' => '34357','state_id' => '2951','name' => 'Teslui'),\n \t array('id' => '34358','state_id' => '2951','name' => 'Tuglui'),\n \t array('id' => '34359','state_id' => '2951','name' => 'Unirea'),\n \t array('id' => '34360','state_id' => '2951','name' => 'Urzicuta'),\n \t array('id' => '34361','state_id' => '2951','name' => 'Valea Stanciului'),\n \t array('id' => '34362','state_id' => '2951','name' => 'Vartop'),\n \t array('id' => '34363','state_id' => '2951','name' => 'Varvoru'),\n \t array('id' => '34364','state_id' => '2951','name' => 'Vela'),\n \t array('id' => '34365','state_id' => '2951','name' => 'Verbita'),\n \t array('id' => '34366','state_id' => '2952','name' => 'Balabanesti'),\n \t array('id' => '34367','state_id' => '2952','name' => 'Balasesti'),\n \t array('id' => '34368','state_id' => '2952','name' => 'Baleni'),\n \t array('id' => '34369','state_id' => '2952','name' => 'Baneasa'),\n \t array('id' => '34370','state_id' => '2952','name' => 'Barcea'),\n \t array('id' => '34371','state_id' => '2952','name' => 'Beresti'),\n \t array('id' => '34372','state_id' => '2952','name' => 'Beresti-Sat'),\n \t array('id' => '34373','state_id' => '2952','name' => 'Brahasesti'),\n \t array('id' => '34374','state_id' => '2952','name' => 'Branistea'),\n \t array('id' => '34375','state_id' => '2952','name' => 'Buciumeni'),\n \t array('id' => '34376','state_id' => '2952','name' => 'Cavadinesti'),\n \t array('id' => '34377','state_id' => '2952','name' => 'Certesti'),\n \t array('id' => '34378','state_id' => '2952','name' => 'Corni'),\n \t array('id' => '34379','state_id' => '2952','name' => 'Corod'),\n \t array('id' => '34380','state_id' => '2952','name' => 'Cosmesti'),\n \t array('id' => '34381','state_id' => '2952','name' => 'Costache Negri'),\n \t array('id' => '34382','state_id' => '2952','name' => 'Cuca'),\n \t array('id' => '34383','state_id' => '2952','name' => 'Cudalbi'),\n \t array('id' => '34384','state_id' => '2952','name' => 'Draganesti'),\n \t array('id' => '34385','state_id' => '2952','name' => 'Draguseni'),\n \t array('id' => '34386','state_id' => '2952','name' => 'Fartanesti'),\n \t array('id' => '34387','state_id' => '2952','name' => 'Foltesti'),\n \t array('id' => '34388','state_id' => '2952','name' => 'Frumusita'),\n \t array('id' => '34389','state_id' => '2952','name' => 'Fundeni'),\n \t array('id' => '34390','state_id' => '2952','name' => 'Galati'),\n \t array('id' => '34391','state_id' => '2952','name' => 'Ghidigeni'),\n \t array('id' => '34392','state_id' => '2952','name' => 'Gohor'),\n \t array('id' => '34393','state_id' => '2952','name' => 'Grivita'),\n \t array('id' => '34394','state_id' => '2952','name' => 'Independenta'),\n \t array('id' => '34395','state_id' => '2952','name' => 'Ivesti'),\n \t array('id' => '34396','state_id' => '2952','name' => 'Jorasti'),\n \t array('id' => '34397','state_id' => '2952','name' => 'Liesti'),\n \t array('id' => '34398','state_id' => '2952','name' => 'Mastacani'),\n \t array('id' => '34399','state_id' => '2952','name' => 'Matca'),\n \t array('id' => '34400','state_id' => '2952','name' => 'Movileni'),\n \t array('id' => '34401','state_id' => '2952','name' => 'Munteni'),\n \t array('id' => '34402','state_id' => '2952','name' => 'Namoloasa'),\n \t array('id' => '34403','state_id' => '2952','name' => 'Nicoresti'),\n \t array('id' => '34404','state_id' => '2952','name' => 'Oancea'),\n \t array('id' => '34405','state_id' => '2952','name' => 'Pechea'),\n \t array('id' => '34406','state_id' => '2952','name' => 'Piscu'),\n \t array('id' => '34407','state_id' => '2952','name' => 'Priponesti'),\n \t array('id' => '34408','state_id' => '2952','name' => 'Rediu'),\n \t array('id' => '34409','state_id' => '2952','name' => 'Scanteiesti'),\n \t array('id' => '34410','state_id' => '2952','name' => 'Schela'),\n \t array('id' => '34411','state_id' => '2952','name' => 'Sendreni'),\n \t array('id' => '34412','state_id' => '2952','name' => 'Slobozia-Conachi'),\n \t array('id' => '34413','state_id' => '2952','name' => 'Smardan'),\n \t array('id' => '34414','state_id' => '2952','name' => 'Smulti'),\n \t array('id' => '34415','state_id' => '2952','name' => 'Suceveni'),\n \t array('id' => '34416','state_id' => '2952','name' => 'Targu Bujor'),\n \t array('id' => '34417','state_id' => '2952','name' => 'Tecuci'),\n \t array('id' => '34418','state_id' => '2952','name' => 'Tepu'),\n \t array('id' => '34419','state_id' => '2952','name' => 'Tudor Vladimirescu'),\n \t array('id' => '34420','state_id' => '2952','name' => 'Tulucesti'),\n \t array('id' => '34421','state_id' => '2952','name' => 'Umbraresti'),\n \t array('id' => '34422','state_id' => '2952','name' => 'Valea Marului'),\n \t array('id' => '34423','state_id' => '2952','name' => 'Vanatori'),\n \t array('id' => '34424','state_id' => '2952','name' => 'Varlezi'),\n \t array('id' => '34425','state_id' => '2952','name' => 'Vladesti'),\n \t array('id' => '34426','state_id' => '2953','name' => 'Adunatii-Copaceni'),\n \t array('id' => '34427','state_id' => '2953','name' => 'Baneasa'),\n \t array('id' => '34428','state_id' => '2953','name' => 'Bolintin Deal'),\n \t array('id' => '34429','state_id' => '2953','name' => 'Bolintinu-din-Vale'),\n \t array('id' => '34430','state_id' => '2953','name' => 'Bucsani'),\n \t array('id' => '34431','state_id' => '2953','name' => 'Bulbucata'),\n \t array('id' => '34432','state_id' => '2953','name' => 'Buturugeni'),\n \t array('id' => '34433','state_id' => '2953','name' => 'Calugareni'),\n \t array('id' => '34434','state_id' => '2953','name' => 'Clejani'),\n \t array('id' => '34435','state_id' => '2953','name' => 'Colibasi'),\n \t array('id' => '34436','state_id' => '2953','name' => 'Comana'),\n \t array('id' => '34437','state_id' => '2953','name' => 'Crevedia Mare'),\n \t array('id' => '34438','state_id' => '2953','name' => 'Daia'),\n \t array('id' => '34439','state_id' => '2953','name' => 'Floresti-Stoenesti'),\n \t array('id' => '34440','state_id' => '2953','name' => 'Fratesti'),\n \t array('id' => '34441','state_id' => '2953','name' => 'Gaiseni'),\n \t array('id' => '34442','state_id' => '2953','name' => 'Gaujani'),\n \t array('id' => '34443','state_id' => '2953','name' => 'Ghimpati'),\n \t array('id' => '34444','state_id' => '2953','name' => 'Giurgiu'),\n \t array('id' => '34445','state_id' => '2953','name' => 'Gogosari'),\n \t array('id' => '34446','state_id' => '2953','name' => 'Gostinari'),\n \t array('id' => '34447','state_id' => '2953','name' => 'Gostinu'),\n \t array('id' => '34448','state_id' => '2953','name' => 'Gradinari'),\n \t array('id' => '34449','state_id' => '2953','name' => 'Greaca'),\n \t array('id' => '34450','state_id' => '2953','name' => 'Hotarele'),\n \t array('id' => '34451','state_id' => '2953','name' => 'Iepuresti'),\n \t array('id' => '34452','state_id' => '2953','name' => 'Izvoarele'),\n \t array('id' => '34453','state_id' => '2953','name' => 'Joita'),\n \t array('id' => '34454','state_id' => '2953','name' => 'Letca Noua'),\n \t array('id' => '34455','state_id' => '2953','name' => 'Marsa'),\n \t array('id' => '34456','state_id' => '2953','name' => 'Mihai Bravu'),\n \t array('id' => '34457','state_id' => '2953','name' => 'Mihailesti'),\n \t array('id' => '34458','state_id' => '2953','name' => 'Ogrezeni'),\n \t array('id' => '34459','state_id' => '2953','name' => 'Oinacu'),\n \t array('id' => '34460','state_id' => '2953','name' => 'Prundu'),\n \t array('id' => '34461','state_id' => '2953','name' => 'Putineiu'),\n \t array('id' => '34462','state_id' => '2953','name' => 'Rasuceni'),\n \t array('id' => '34463','state_id' => '2953','name' => 'Roata de Jos'),\n \t array('id' => '34464','state_id' => '2953','name' => 'Schitu'),\n \t array('id' => '34465','state_id' => '2953','name' => 'Singureni'),\n \t array('id' => '34466','state_id' => '2953','name' => 'Slobozia'),\n \t array('id' => '34467','state_id' => '2953','name' => 'Stanesti'),\n \t array('id' => '34468','state_id' => '2953','name' => 'Stoenesti'),\n \t array('id' => '34469','state_id' => '2953','name' => 'Toporu'),\n \t array('id' => '34470','state_id' => '2953','name' => 'Ulmi'),\n \t array('id' => '34471','state_id' => '2953','name' => 'Valea Dragului'),\n \t array('id' => '34472','state_id' => '2953','name' => 'Vanatorii Mici'),\n \t array('id' => '34473','state_id' => '2953','name' => 'Varasti'),\n \t array('id' => '34474','state_id' => '2953','name' => 'Vedea'),\n \t array('id' => '34475','state_id' => '2954','name' => 'Albeni'),\n \t array('id' => '34476','state_id' => '2954','name' => 'Alimpesti'),\n \t array('id' => '34477','state_id' => '2954','name' => 'Aninoasa'),\n \t array('id' => '34478','state_id' => '2954','name' => 'Arcani'),\n \t array('id' => '34479','state_id' => '2954','name' => 'Baia de Fier'),\n \t array('id' => '34480','state_id' => '2954','name' => 'Balanesti'),\n \t array('id' => '34481','state_id' => '2954','name' => 'Balesti'),\n \t array('id' => '34482','state_id' => '2954','name' => 'Balteni'),\n \t array('id' => '34483','state_id' => '2954','name' => 'Barbatesti'),\n \t array('id' => '34484','state_id' => '2954','name' => 'Bengesti'),\n \t array('id' => '34485','state_id' => '2954','name' => 'Berlesti'),\n \t array('id' => '34486','state_id' => '2954','name' => 'Bolbosi'),\n \t array('id' => '34487','state_id' => '2954','name' => 'Borascu'),\n \t array('id' => '34488','state_id' => '2954','name' => 'Branesti'),\n \t array('id' => '34489','state_id' => '2954','name' => 'Bumbesti-Jiu'),\n \t array('id' => '34490','state_id' => '2954','name' => 'Bumbesti-Piticu'),\n \t array('id' => '34491','state_id' => '2954','name' => 'Bustuchin'),\n \t array('id' => '34492','state_id' => '2954','name' => 'Calnic'),\n \t array('id' => '34493','state_id' => '2954','name' => 'Capreni'),\n \t array('id' => '34494','state_id' => '2954','name' => 'Catunele'),\n \t array('id' => '34495','state_id' => '2954','name' => 'Ciuperceni'),\n \t array('id' => '34496','state_id' => '2954','name' => 'Crasna'),\n \t array('id' => '34497','state_id' => '2954','name' => 'Crusetu'),\n \t array('id' => '34498','state_id' => '2954','name' => 'Danciulesti'),\n \t array('id' => '34499','state_id' => '2954','name' => 'Danesti'),\n \t array('id' => '34500','state_id' => '2954','name' => 'Dragotesti'),\n \t array('id' => '34501','state_id' => '2954','name' => 'Dragutesti'),\n \t array('id' => '34502','state_id' => '2954','name' => 'Farcasesti'),\n \t array('id' => '34503','state_id' => '2954','name' => 'Glogova'),\n \t array('id' => '34504','state_id' => '2954','name' => 'Godinesti'),\n \t array('id' => '34505','state_id' => '2954','name' => 'Hurezani'),\n \t array('id' => '34506','state_id' => '2954','name' => 'Ionesti'),\n \t array('id' => '34507','state_id' => '2954','name' => 'Jupanesti'),\n \t array('id' => '34508','state_id' => '2954','name' => 'Lelesti'),\n \t array('id' => '34509','state_id' => '2954','name' => 'Licuriciu'),\n \t array('id' => '34510','state_id' => '2954','name' => 'Logresti'),\n \t array('id' => '34511','state_id' => '2954','name' => 'Matasari'),\n \t array('id' => '34512','state_id' => '2954','name' => 'Motru'),\n \t array('id' => '34513','state_id' => '2954','name' => 'Musetesti'),\n \t array('id' => '34514','state_id' => '2954','name' => 'Negomiru'),\n \t array('id' => '34515','state_id' => '2954','name' => 'Novaci'),\n \t array('id' => '34516','state_id' => '2954','name' => 'Pades'),\n \t array('id' => '34517','state_id' => '2954','name' => 'Pestisani'),\n \t array('id' => '34518','state_id' => '2954','name' => 'Plopsoru'),\n \t array('id' => '34519','state_id' => '2954','name' => 'Polovragi'),\n \t array('id' => '34520','state_id' => '2954','name' => 'Prigoria'),\n \t array('id' => '34521','state_id' => '2954','name' => 'Rosia de Amaradia'),\n \t array('id' => '34522','state_id' => '2954','name' => 'Rovinari'),\n \t array('id' => '34523','state_id' => '2954','name' => 'Runcu'),\n \t array('id' => '34524','state_id' => '2954','name' => 'Sacelu'),\n \t array('id' => '34525','state_id' => '2954','name' => 'Samarinesti'),\n \t array('id' => '34526','state_id' => '2954','name' => 'Saulesti'),\n \t array('id' => '34527','state_id' => '2954','name' => 'Schela'),\n \t array('id' => '34528','state_id' => '2954','name' => 'Scoarta'),\n \t array('id' => '34529','state_id' => '2954','name' => 'Slivilesti'),\n \t array('id' => '34530','state_id' => '2954','name' => 'Stanesti'),\n \t array('id' => '34531','state_id' => '2954','name' => 'Stejari'),\n \t array('id' => '34532','state_id' => '2954','name' => 'Stoina'),\n \t array('id' => '34533','state_id' => '2954','name' => 'Tantareni'),\n \t array('id' => '34534','state_id' => '2954','name' => 'Targu Carbunesti'),\n \t array('id' => '34535','state_id' => '2954','name' => 'Targu Jiu'),\n \t array('id' => '34536','state_id' => '2954','name' => 'Telesti'),\n \t array('id' => '34537','state_id' => '2954','name' => 'Ticleni'),\n \t array('id' => '34538','state_id' => '2954','name' => 'Tismana'),\n \t array('id' => '34539','state_id' => '2954','name' => 'Turburea'),\n \t array('id' => '34540','state_id' => '2954','name' => 'Turceni'),\n \t array('id' => '34541','state_id' => '2954','name' => 'Turcinesti'),\n \t array('id' => '34542','state_id' => '2954','name' => 'Urdari'),\n \t array('id' => '34543','state_id' => '2954','name' => 'Vagiulesti'),\n \t array('id' => '34544','state_id' => '2954','name' => 'Vladimir'),\n \t array('id' => '34545','state_id' => '2955','name' => 'Atid'),\n \t array('id' => '34546','state_id' => '2955','name' => 'Avramesti'),\n \t array('id' => '34547','state_id' => '2955','name' => 'Baile Tusnad'),\n \t array('id' => '34548','state_id' => '2955','name' => 'Balan'),\n \t array('id' => '34549','state_id' => '2955','name' => 'Bilbor'),\n \t array('id' => '34550','state_id' => '2955','name' => 'Borsec'),\n \t array('id' => '34551','state_id' => '2955','name' => 'Bradesti'),\n \t array('id' => '34552','state_id' => '2955','name' => 'Capalnita'),\n \t array('id' => '34553','state_id' => '2955','name' => 'Carta'),\n \t array('id' => '34554','state_id' => '2955','name' => 'Ciucsangeorgiu'),\n \t array('id' => '34555','state_id' => '2955','name' => 'Ciumani'),\n \t array('id' => '34556','state_id' => '2955','name' => 'Corbu'),\n \t array('id' => '34557','state_id' => '2955','name' => 'Corund'),\n \t array('id' => '34558','state_id' => '2955','name' => 'Cristuru Secuiesc'),\n \t array('id' => '34559','state_id' => '2955','name' => 'Danesti'),\n \t array('id' => '34560','state_id' => '2955','name' => 'Darjiu'),\n \t array('id' => '34561','state_id' => '2955','name' => 'Dealu'),\n \t array('id' => '34562','state_id' => '2955','name' => 'Ditrau'),\n \t array('id' => '34563','state_id' => '2955','name' => 'Feliceni'),\n \t array('id' => '34564','state_id' => '2955','name' => 'Frumoasa'),\n \t array('id' => '34565','state_id' => '2955','name' => 'Galautas'),\n \t array('id' => '34566','state_id' => '2955','name' => 'Gheorgheni'),\n \t array('id' => '34567','state_id' => '2955','name' => 'Joseni'),\n \t array('id' => '34568','state_id' => '2955','name' => 'Lazarea'),\n \t array('id' => '34569','state_id' => '2955','name' => 'Lueta'),\n \t array('id' => '34570','state_id' => '2955','name' => 'Lunca de Jos'),\n \t array('id' => '34571','state_id' => '2955','name' => 'Lunca de Sus'),\n \t array('id' => '34572','state_id' => '2955','name' => 'Lupeni'),\n \t array('id' => '34573','state_id' => '2955','name' => 'Martinis'),\n \t array('id' => '34574','state_id' => '2955','name' => 'Meresti'),\n \t array('id' => '34575','state_id' => '2955','name' => 'Miercurea-Ciuc'),\n \t array('id' => '34576','state_id' => '2955','name' => 'Mihaileni'),\n \t array('id' => '34577','state_id' => '2955','name' => 'Mugeni'),\n \t array('id' => '34578','state_id' => '2955','name' => 'Ocland'),\n \t array('id' => '34579','state_id' => '2955','name' => 'Odorheiu Secuiesc'),\n \t array('id' => '34580','state_id' => '2955','name' => 'Pauleni-Ciuc'),\n \t array('id' => '34581','state_id' => '2955','name' => 'Plaiesii-de-Jos'),\n \t array('id' => '34582','state_id' => '2955','name' => 'Praid'),\n \t array('id' => '34583','state_id' => '2955','name' => 'Remetea'),\n \t array('id' => '34584','state_id' => '2955','name' => 'Sacel'),\n \t array('id' => '34585','state_id' => '2955','name' => 'Sancraieni'),\n \t array('id' => '34586','state_id' => '2955','name' => 'Sandominic'),\n \t array('id' => '34587','state_id' => '2955','name' => 'Sanmartin'),\n \t array('id' => '34588','state_id' => '2955','name' => 'Sansimion'),\n \t array('id' => '34589','state_id' => '2955','name' => 'Sarmas'),\n \t array('id' => '34590','state_id' => '2955','name' => 'Secuieni'),\n \t array('id' => '34591','state_id' => '2955','name' => 'Siculeni'),\n \t array('id' => '34592','state_id' => '2955','name' => 'Simonesti'),\n \t array('id' => '34593','state_id' => '2955','name' => 'Subcetate'),\n \t array('id' => '34594','state_id' => '2955','name' => 'Suseni'),\n \t array('id' => '34595','state_id' => '2955','name' => 'Toplita'),\n \t array('id' => '34596','state_id' => '2955','name' => 'Tulghes'),\n \t array('id' => '34597','state_id' => '2955','name' => 'Tusnad'),\n \t array('id' => '34598','state_id' => '2955','name' => 'Ulies'),\n \t array('id' => '34599','state_id' => '2955','name' => 'Varsag'),\n \t array('id' => '34600','state_id' => '2955','name' => 'Vlahita'),\n \t array('id' => '34601','state_id' => '2955','name' => 'Voslobeni'),\n \t array('id' => '34602','state_id' => '2955','name' => 'Zetea'),\n \t array('id' => '34603','state_id' => '2956','name' => 'Aninoasa'),\n \t array('id' => '34604','state_id' => '2956','name' => 'Bacia'),\n \t array('id' => '34605','state_id' => '2956','name' => 'Baia de Cris'),\n \t array('id' => '34606','state_id' => '2956','name' => 'Baita'),\n \t array('id' => '34607','state_id' => '2956','name' => 'Balsa'),\n \t array('id' => '34608','state_id' => '2956','name' => 'Banita'),\n \t array('id' => '34609','state_id' => '2956','name' => 'Baru'),\n \t array('id' => '34610','state_id' => '2956','name' => 'Batrana'),\n \t array('id' => '34611','state_id' => '2956','name' => 'Beriu'),\n \t array('id' => '34612','state_id' => '2956','name' => 'Berthelot'),\n \t array('id' => '34613','state_id' => '2956','name' => 'Blajeni'),\n \t array('id' => '34614','state_id' => '2956','name' => 'Bosorod'),\n \t array('id' => '34615','state_id' => '2956','name' => 'Brad'),\n \t array('id' => '34616','state_id' => '2956','name' => 'Branisca'),\n \t array('id' => '34617','state_id' => '2956','name' => 'Bretea Romana'),\n \t array('id' => '34618','state_id' => '2956','name' => 'Buces'),\n \t array('id' => '34619','state_id' => '2956','name' => 'Bucuresci'),\n \t array('id' => '34620','state_id' => '2956','name' => 'Bulzesti'),\n \t array('id' => '34621','state_id' => '2956','name' => 'Bunila'),\n \t array('id' => '34622','state_id' => '2956','name' => 'Burjuc'),\n \t array('id' => '34623','state_id' => '2956','name' => 'Calan'),\n \t array('id' => '34624','state_id' => '2956','name' => 'Carjiti'),\n \t array('id' => '34625','state_id' => '2956','name' => 'Cerbal'),\n \t array('id' => '34626','state_id' => '2956','name' => 'Certeju de Sus'),\n \t array('id' => '34627','state_id' => '2956','name' => 'Criscior'),\n \t array('id' => '34628','state_id' => '2956','name' => 'Densus'),\n \t array('id' => '34629','state_id' => '2956','name' => 'Deva'),\n \t array('id' => '34630','state_id' => '2956','name' => 'Dobra'),\n \t array('id' => '34631','state_id' => '2956','name' => 'Geoagiu'),\n \t array('id' => '34632','state_id' => '2956','name' => 'Ghelari'),\n \t array('id' => '34633','state_id' => '2956','name' => 'Gurasada'),\n \t array('id' => '34634','state_id' => '2956','name' => 'Harau'),\n \t array('id' => '34635','state_id' => '2956','name' => 'Hateg'),\n \t array('id' => '34636','state_id' => '2956','name' => 'Hunedoara'),\n \t array('id' => '34637','state_id' => '2956','name' => 'Ilia'),\n \t array('id' => '34638','state_id' => '2956','name' => 'Lapugiu de Jos'),\n \t array('id' => '34639','state_id' => '2956','name' => 'Lelese'),\n \t array('id' => '34640','state_id' => '2956','name' => 'Lunca Cernii de Jos'),\n \t array('id' => '34641','state_id' => '2956','name' => 'Luncoiu de Jos'),\n \t array('id' => '34642','state_id' => '2956','name' => 'Lupeni'),\n \t array('id' => '34643','state_id' => '2956','name' => 'Martinesti'),\n \t array('id' => '34644','state_id' => '2956','name' => 'Orastie'),\n \t array('id' => '34645','state_id' => '2956','name' => 'Orastioara de Sus'),\n \t array('id' => '34646','state_id' => '2956','name' => 'Pestisu Mic'),\n \t array('id' => '34647','state_id' => '2956','name' => 'Petrila'),\n \t array('id' => '34648','state_id' => '2956','name' => 'Petrosani'),\n \t array('id' => '34649','state_id' => '2956','name' => 'Pui'),\n \t array('id' => '34650','state_id' => '2956','name' => 'Rachitova'),\n \t array('id' => '34651','state_id' => '2956','name' => 'Rapoltu Mare'),\n \t array('id' => '34652','state_id' => '2956','name' => 'Rau de Mori'),\n \t array('id' => '34653','state_id' => '2956','name' => 'Ribita'),\n \t array('id' => '34654','state_id' => '2956','name' => 'Romos'),\n \t array('id' => '34655','state_id' => '2956','name' => 'Salasu de Sus'),\n \t array('id' => '34656','state_id' => '2956','name' => 'Santamaria Orlea'),\n \t array('id' => '34657','state_id' => '2956','name' => 'Sarmizegetusa'),\n \t array('id' => '34658','state_id' => '2956','name' => 'Simeria'),\n \t array('id' => '34659','state_id' => '2956','name' => 'Soimus'),\n \t array('id' => '34660','state_id' => '2956','name' => 'Teliucu Inferior'),\n \t array('id' => '34661','state_id' => '2956','name' => 'Tomesti'),\n \t array('id' => '34662','state_id' => '2956','name' => 'Toplita'),\n \t array('id' => '34663','state_id' => '2956','name' => 'Totesti'),\n \t array('id' => '34664','state_id' => '2956','name' => 'Turdas'),\n \t array('id' => '34665','state_id' => '2956','name' => 'Uricani'),\n \t array('id' => '34666','state_id' => '2956','name' => 'Valisoara'),\n \t array('id' => '34667','state_id' => '2956','name' => 'Vata de Jos'),\n \t array('id' => '34668','state_id' => '2956','name' => 'Vetel'),\n \t array('id' => '34669','state_id' => '2956','name' => 'Vorta'),\n \t array('id' => '34670','state_id' => '2956','name' => 'Vulcan'),\n \t array('id' => '34671','state_id' => '2956','name' => 'Zam'),\n \t array('id' => '34672','state_id' => '2957','name' => 'Adancata'),\n \t array('id' => '34673','state_id' => '2957','name' => 'Albesti'),\n \t array('id' => '34674','state_id' => '2957','name' => 'Alexeni'),\n \t array('id' => '34675','state_id' => '2957','name' => 'Amara'),\n \t array('id' => '34676','state_id' => '2957','name' => 'Andrasesti'),\n \t array('id' => '34677','state_id' => '2957','name' => 'Armasesti'),\n \t array('id' => '34678','state_id' => '2957','name' => 'Axintele'),\n \t array('id' => '34679','state_id' => '2957','name' => 'Balaciu'),\n \t array('id' => '34680','state_id' => '2957','name' => 'Barcanesti'),\n \t array('id' => '34681','state_id' => '2957','name' => 'Bordusani'),\n \t array('id' => '34682','state_id' => '2957','name' => 'Brazii'),\n \t array('id' => '34683','state_id' => '2957','name' => 'Bucu'),\n \t array('id' => '34684','state_id' => '2957','name' => 'Cazanesti'),\n \t array('id' => '34685','state_id' => '2957','name' => 'Ciocarlia'),\n \t array('id' => '34686','state_id' => '2957','name' => 'Ciochina'),\n \t array('id' => '34687','state_id' => '2957','name' => 'Ciulnita'),\n \t array('id' => '34688','state_id' => '2957','name' => 'Cocora'),\n \t array('id' => '34689','state_id' => '2957','name' => 'Cosambesti'),\n \t array('id' => '34690','state_id' => '2957','name' => 'Cosereni'),\n \t array('id' => '34691','state_id' => '2957','name' => 'Dragoesti'),\n \t array('id' => '34692','state_id' => '2957','name' => 'Dridu'),\n \t array('id' => '34693','state_id' => '2957','name' => 'Facaeni'),\n \t array('id' => '34694','state_id' => '2957','name' => 'Fetesti'),\n \t array('id' => '34695','state_id' => '2957','name' => 'Fierbinti-Targ'),\n \t array('id' => '34696','state_id' => '2957','name' => 'Garbovi'),\n \t array('id' => '34697','state_id' => '2957','name' => 'Gheorghe Doja'),\n \t array('id' => '34698','state_id' => '2957','name' => 'Gheorghe Lazar'),\n \t array('id' => '34699','state_id' => '2957','name' => 'Giurgeni'),\n \t array('id' => '34700','state_id' => '2957','name' => 'Grindu'),\n \t array('id' => '34701','state_id' => '2957','name' => 'Grivita'),\n \t array('id' => '34702','state_id' => '2957','name' => 'Ion Roata'),\n \t array('id' => '34703','state_id' => '2957','name' => 'Jilavele'),\n \t array('id' => '34704','state_id' => '2957','name' => 'Manasia'),\n \t array('id' => '34705','state_id' => '2957','name' => 'Mihail Kogalniceanu'),\n \t array('id' => '34706','state_id' => '2957','name' => 'Milosesti'),\n \t array('id' => '34707','state_id' => '2957','name' => 'Movila'),\n \t array('id' => '34708','state_id' => '2957','name' => 'Movilita'),\n \t array('id' => '34709','state_id' => '2957','name' => 'Munteni Buzau'),\n \t array('id' => '34710','state_id' => '2957','name' => 'Perieti'),\n \t array('id' => '34711','state_id' => '2957','name' => 'Reviga'),\n \t array('id' => '34712','state_id' => '2957','name' => 'Salcioara'),\n \t array('id' => '34713','state_id' => '2957','name' => 'Saveni'),\n \t array('id' => '34714','state_id' => '2957','name' => 'Scanteia'),\n \t array('id' => '34715','state_id' => '2957','name' => 'Sfantu Gheorghe'),\n \t array('id' => '34716','state_id' => '2957','name' => 'Sinesti'),\n \t array('id' => '34717','state_id' => '2957','name' => 'Slobozia'),\n \t array('id' => '34718','state_id' => '2957','name' => 'Stelnica'),\n \t array('id' => '34719','state_id' => '2957','name' => 'Suditi'),\n \t array('id' => '34720','state_id' => '2957','name' => 'Tandarei'),\n \t array('id' => '34721','state_id' => '2957','name' => 'Urziceni'),\n \t array('id' => '34722','state_id' => '2957','name' => 'Valea Ciorii'),\n \t array('id' => '34723','state_id' => '2957','name' => 'Valea Macrisului'),\n \t array('id' => '34724','state_id' => '2957','name' => 'Vladeni'),\n \t array('id' => '34725','state_id' => '2958','name' => 'Alexandru Ioan Cuza'),\n \t array('id' => '34726','state_id' => '2958','name' => 'Andrieseni'),\n \t array('id' => '34727','state_id' => '2958','name' => 'Aroneanu'),\n \t array('id' => '34728','state_id' => '2958','name' => 'Baltati'),\n \t array('id' => '34729','state_id' => '2958','name' => 'Barnova'),\n \t array('id' => '34730','state_id' => '2958','name' => 'Belcesti'),\n \t array('id' => '34731','state_id' => '2958','name' => 'Bivolari'),\n \t array('id' => '34732','state_id' => '2958','name' => 'Braesti'),\n \t array('id' => '34733','state_id' => '2958','name' => 'Butea'),\n \t array('id' => '34734','state_id' => '2958','name' => 'Ceplenita'),\n \t array('id' => '34735','state_id' => '2958','name' => 'Ciortesti'),\n \t array('id' => '34736','state_id' => '2958','name' => 'Ciurea'),\n \t array('id' => '34737','state_id' => '2958','name' => 'Coarnele Caprei'),\n \t array('id' => '34738','state_id' => '2958','name' => 'Comarna'),\n \t array('id' => '34739','state_id' => '2958','name' => 'Costuleni'),\n \t array('id' => '34740','state_id' => '2958','name' => 'Cotnari'),\n \t array('id' => '34741','state_id' => '2958','name' => 'Cozmesti'),\n \t array('id' => '34742','state_id' => '2958','name' => 'Cristesti'),\n \t array('id' => '34743','state_id' => '2958','name' => 'Cucuteni'),\n \t array('id' => '34744','state_id' => '2958','name' => 'Dagata'),\n \t array('id' => '34745','state_id' => '2958','name' => 'Deleni'),\n \t array('id' => '34746','state_id' => '2958','name' => 'Dobrovat'),\n \t array('id' => '34747','state_id' => '2958','name' => 'Dolhesti'),\n \t array('id' => '34748','state_id' => '2958','name' => 'Dumesti'),\n \t array('id' => '34749','state_id' => '2958','name' => 'Erbiceni'),\n \t array('id' => '34750','state_id' => '2958','name' => 'Focuri'),\n \t array('id' => '34751','state_id' => '2958','name' => 'Golaesti'),\n \t array('id' => '34752','state_id' => '2958','name' => 'Gorban'),\n \t array('id' => '34753','state_id' => '2958','name' => 'Grajduri'),\n \t array('id' => '34754','state_id' => '2958','name' => 'Gropnita'),\n \t array('id' => '34755','state_id' => '2958','name' => 'Grozesti'),\n \t array('id' => '34756','state_id' => '2958','name' => 'Halaucesti'),\n \t array('id' => '34757','state_id' => '2958','name' => 'Harlau'),\n \t array('id' => '34758','state_id' => '2958','name' => 'Helesteni Harmaneasa'),\n \t array('id' => '34759','state_id' => '2958','name' => 'Holboca'),\n \t array('id' => '34760','state_id' => '2958','name' => 'Horlesti'),\n \t array('id' => '34761','state_id' => '2958','name' => 'Iasi'),\n \t array('id' => '34762','state_id' => '2958','name' => 'Ipatele'),\n \t array('id' => '34763','state_id' => '2958','name' => 'Lespezi'),\n \t array('id' => '34764','state_id' => '2958','name' => 'Letcani'),\n \t array('id' => '34765','state_id' => '2958','name' => 'Lungani'),\n \t array('id' => '34766','state_id' => '2958','name' => 'Madarjac'),\n \t array('id' => '34767','state_id' => '2958','name' => 'Mircesti'),\n \t array('id' => '34768','state_id' => '2958','name' => 'Mironeasa'),\n \t array('id' => '34769','state_id' => '2958','name' => 'Miroslava'),\n \t array('id' => '34770','state_id' => '2958','name' => 'Miroslovesti'),\n \t array('id' => '34771','state_id' => '2958','name' => 'Mogosesti'),\n \t array('id' => '34772','state_id' => '2958','name' => 'Mogosesti-Siret'),\n \t array('id' => '34773','state_id' => '2958','name' => 'Mosna'),\n \t array('id' => '34774','state_id' => '2958','name' => 'Motca'),\n \t array('id' => '34775','state_id' => '2958','name' => 'Movileni'),\n \t array('id' => '34776','state_id' => '2958','name' => 'Oteleni'),\n \t array('id' => '34777','state_id' => '2958','name' => 'Pascani'),\n \t array('id' => '34778','state_id' => '2958','name' => 'Plugari'),\n \t array('id' => '34779','state_id' => '2958','name' => 'Podu Iloaiei'),\n \t array('id' => '34780','state_id' => '2958','name' => 'Popesti'),\n \t array('id' => '34781','state_id' => '2958','name' => 'Popricani'),\n \t array('id' => '34782','state_id' => '2958','name' => 'Prisacani'),\n \t array('id' => '34783','state_id' => '2958','name' => 'Probota'),\n \t array('id' => '34784','state_id' => '2958','name' => 'Raducaneni'),\n \t array('id' => '34785','state_id' => '2958','name' => 'Rediu'),\n \t array('id' => '34786','state_id' => '2958','name' => 'Romanesti'),\n \t array('id' => '34787','state_id' => '2958','name' => 'Ruginoasa'),\n \t array('id' => '34788','state_id' => '2958','name' => 'Scanteia'),\n \t array('id' => '34789','state_id' => '2958','name' => 'Scheia'),\n \t array('id' => '34790','state_id' => '2958','name' => 'Schitu-Duca'),\n \t array('id' => '34791','state_id' => '2958','name' => 'Scobinti'),\n \t array('id' => '34792','state_id' => '2958','name' => 'Sinesti'),\n \t array('id' => '34793','state_id' => '2958','name' => 'Sipote'),\n \t array('id' => '34794','state_id' => '2958','name' => 'Siretel'),\n \t array('id' => '34795','state_id' => '2958','name' => 'Stolniceni-Prajescu'),\n \t array('id' => '34796','state_id' => '2958','name' => 'Strunga'),\n \t array('id' => '34797','state_id' => '2958','name' => 'Tansa'),\n \t array('id' => '34798','state_id' => '2958','name' => 'Targu Gangiulesti'),\n \t array('id' => '34799','state_id' => '2958','name' => 'Tatarusi'),\n \t array('id' => '34800','state_id' => '2958','name' => 'Tibana'),\n \t array('id' => '34801','state_id' => '2958','name' => 'Tibanesti'),\n \t array('id' => '34802','state_id' => '2958','name' => 'Tiganasi'),\n \t array('id' => '34803','state_id' => '2958','name' => 'Todiresti'),\n \t array('id' => '34804','state_id' => '2958','name' => 'Tomesti'),\n \t array('id' => '34805','state_id' => '2958','name' => 'Trifesti'),\n \t array('id' => '34806','state_id' => '2958','name' => 'Tutora'),\n \t array('id' => '34807','state_id' => '2958','name' => 'Ungheni'),\n \t array('id' => '34808','state_id' => '2958','name' => 'Valea Seaca'),\n \t array('id' => '34809','state_id' => '2958','name' => 'Vanatori'),\n \t array('id' => '34810','state_id' => '2958','name' => 'Victoria'),\n \t array('id' => '34811','state_id' => '2958','name' => 'Vladeni'),\n \t array('id' => '34812','state_id' => '2958','name' => 'Voinesti'),\n \t array('id' => '34813','state_id' => '2959','name' => 'Afumati'),\n \t array('id' => '34814','state_id' => '2959','name' => 'Balotesti'),\n \t array('id' => '34815','state_id' => '2959','name' => 'Berceni'),\n \t array('id' => '34816','state_id' => '2959','name' => 'Bragadiru'),\n \t array('id' => '34817','state_id' => '2959','name' => 'Branesti'),\n \t array('id' => '34818','state_id' => '2959','name' => 'Buftea'),\n \t array('id' => '34819','state_id' => '2959','name' => 'Cernica'),\n \t array('id' => '34820','state_id' => '2959','name' => 'Chiajna'),\n \t array('id' => '34821','state_id' => '2959','name' => 'Chitila'),\n \t array('id' => '34822','state_id' => '2959','name' => 'Ciolpani'),\n \t array('id' => '34823','state_id' => '2959','name' => 'Ciorogarla'),\n \t array('id' => '34824','state_id' => '2959','name' => 'Clinceni'),\n \t array('id' => '34825','state_id' => '2959','name' => 'Corbeanca'),\n \t array('id' => '34826','state_id' => '2959','name' => 'Cornetu'),\n \t array('id' => '34827','state_id' => '2959','name' => 'Darasti-Ilfov'),\n \t array('id' => '34828','state_id' => '2959','name' => 'Dascalu'),\n \t array('id' => '34829','state_id' => '2959','name' => 'Dobroesti'),\n \t array('id' => '34830','state_id' => '2959','name' => 'Domnesti'),\n \t array('id' => '34831','state_id' => '2959','name' => 'Dragomiresti-Vale'),\n \t array('id' => '34832','state_id' => '2959','name' => 'Ganeasa'),\n \t array('id' => '34833','state_id' => '2959','name' => 'Glina'),\n \t array('id' => '34834','state_id' => '2959','name' => 'Gradistea'),\n \t array('id' => '34835','state_id' => '2959','name' => 'Gruiu'),\n \t array('id' => '34836','state_id' => '2959','name' => 'Jilava'),\n \t array('id' => '34837','state_id' => '2959','name' => 'Magurele'),\n \t array('id' => '34838','state_id' => '2959','name' => 'Moara Vlasiei'),\n \t array('id' => '34839','state_id' => '2959','name' => 'Mogosoaia'),\n \t array('id' => '34840','state_id' => '2959','name' => 'Nuci'),\n \t array('id' => '34841','state_id' => '2959','name' => 'Otopeni'),\n \t array('id' => '34842','state_id' => '2959','name' => 'Pantelimon'),\n \t array('id' => '34843','state_id' => '2959','name' => 'Peris'),\n \t array('id' => '34844','state_id' => '2959','name' => 'Petrachioaia'),\n \t array('id' => '34845','state_id' => '2959','name' => 'Popesti-Leordeni'),\n \t array('id' => '34846','state_id' => '2959','name' => 'Prim Decembrie'),\n \t array('id' => '34847','state_id' => '2959','name' => 'Snagov'),\n \t array('id' => '34848','state_id' => '2959','name' => 'Stefanestii de Jos'),\n \t array('id' => '34849','state_id' => '2959','name' => 'Tunari'),\n \t array('id' => '34850','state_id' => '2959','name' => 'Vidra'),\n \t array('id' => '34851','state_id' => '2959','name' => 'Voluntari'),\n \t array('id' => '34852','state_id' => '2960','name' => 'Ardusat'),\n \t array('id' => '34853','state_id' => '2960','name' => 'Arinis'),\n \t array('id' => '34854','state_id' => '2960','name' => 'Asuaju de Sus'),\n \t array('id' => '34855','state_id' => '2960','name' => 'Baia Mare'),\n \t array('id' => '34856','state_id' => '2960','name' => 'Baia-Sprie'),\n \t array('id' => '34857','state_id' => '2960','name' => 'Baita de sub Codru'),\n \t array('id' => '34858','state_id' => '2960','name' => 'Baiut'),\n \t array('id' => '34859','state_id' => '2960','name' => 'Barsana'),\n \t array('id' => '34860','state_id' => '2960','name' => 'Basesti'),\n \t array('id' => '34861','state_id' => '2960','name' => 'Bicaz'),\n \t array('id' => '34862','state_id' => '2960','name' => 'Bistra'),\n \t array('id' => '34863','state_id' => '2960','name' => 'Bocicoiu Mare'),\n \t array('id' => '34864','state_id' => '2960','name' => 'Bogdan Voda'),\n \t array('id' => '34865','state_id' => '2960','name' => 'Boiu Mare'),\n \t array('id' => '34866','state_id' => '2960','name' => 'Borsa'),\n \t array('id' => '34867','state_id' => '2960','name' => 'Botiza'),\n \t array('id' => '34868','state_id' => '2960','name' => 'Budesti'),\n \t array('id' => '34869','state_id' => '2960','name' => 'Calinesti'),\n \t array('id' => '34870','state_id' => '2960','name' => 'Campulung la Tisa'),\n \t array('id' => '34871','state_id' => '2960','name' => 'Cavnic'),\n \t array('id' => '34872','state_id' => '2960','name' => 'Cernesti'),\n \t array('id' => '34873','state_id' => '2960','name' => 'Cicarlau'),\n \t array('id' => '34874','state_id' => '2960','name' => 'Copalnic Manastur'),\n \t array('id' => '34875','state_id' => '2960','name' => 'Coroieni'),\n \t array('id' => '34876','state_id' => '2960','name' => 'Cupseni'),\n \t array('id' => '34877','state_id' => '2960','name' => 'Desesti'),\n \t array('id' => '34878','state_id' => '2960','name' => 'Dragomiresti'),\n \t array('id' => '34879','state_id' => '2960','name' => 'Dumbravita'),\n \t array('id' => '34880','state_id' => '2960','name' => 'Farcasa'),\n \t array('id' => '34881','state_id' => '2960','name' => 'Giulesti'),\n \t array('id' => '34882','state_id' => '2960','name' => 'Grosi'),\n \t array('id' => '34883','state_id' => '2960','name' => 'Ieud'),\n \t array('id' => '34884','state_id' => '2960','name' => 'Lapus'),\n \t array('id' => '34885','state_id' => '2960','name' => 'Leordina'),\n \t array('id' => '34886','state_id' => '2960','name' => 'Miresu Mare'),\n \t array('id' => '34887','state_id' => '2960','name' => 'Moisei'),\n \t array('id' => '34888','state_id' => '2960','name' => 'Oarta de Jos'),\n \t array('id' => '34889','state_id' => '2960','name' => 'Ocna Sugatag'),\n \t array('id' => '34890','state_id' => '2960','name' => 'Petrova'),\n \t array('id' => '34891','state_id' => '2960','name' => 'Poienile Izei'),\n \t array('id' => '34892','state_id' => '2960','name' => 'Poienile de sub Munte'),\n \t array('id' => '34893','state_id' => '2960','name' => 'Recea'),\n \t array('id' => '34894','state_id' => '2960','name' => 'Remetea Chioarului'),\n \t array('id' => '34895','state_id' => '2960','name' => 'Remeti'),\n \t array('id' => '34896','state_id' => '2960','name' => 'Repedea'),\n \t array('id' => '34897','state_id' => '2960','name' => 'Rona de Jos'),\n \t array('id' => '34898','state_id' => '2960','name' => 'Rona de Sus'),\n \t array('id' => '34899','state_id' => '2960','name' => 'Rozavlea'),\n \t array('id' => '34900','state_id' => '2960','name' => 'Ruscova'),\n \t array('id' => '34901','state_id' => '2960','name' => 'Sacalaseni'),\n \t array('id' => '34902','state_id' => '2960','name' => 'Sacel'),\n \t array('id' => '34903','state_id' => '2960','name' => 'Salistea de Sus'),\n \t array('id' => '34904','state_id' => '2960','name' => 'Salsig'),\n \t array('id' => '34905','state_id' => '2960','name' => 'Sapanta'),\n \t array('id' => '34906','state_id' => '2960','name' => 'Sarasau'),\n \t array('id' => '34907','state_id' => '2960','name' => 'Sasar'),\n \t array('id' => '34908','state_id' => '2960','name' => 'Satulung'),\n \t array('id' => '34909','state_id' => '2960','name' => 'Seini'),\n \t array('id' => '34910','state_id' => '2960','name' => 'Sighetu Marmatiei'),\n \t array('id' => '34911','state_id' => '2960','name' => 'Sisesti'),\n \t array('id' => '34912','state_id' => '2960','name' => 'Somcuta Mare'),\n \t array('id' => '34913','state_id' => '2960','name' => 'Stramtura'),\n \t array('id' => '34914','state_id' => '2960','name' => 'Suciu de Sus'),\n \t array('id' => '34915','state_id' => '2960','name' => 'Targu-Lapus'),\n \t array('id' => '34916','state_id' => '2960','name' => 'Tautii Margheraus'),\n \t array('id' => '34917','state_id' => '2960','name' => 'Ulmeni'),\n \t array('id' => '34918','state_id' => '2960','name' => 'Vadu Izei'),\n \t array('id' => '34919','state_id' => '2960','name' => 'Valea Chioarului'),\n \t array('id' => '34920','state_id' => '2960','name' => 'Vima Mica'),\n \t array('id' => '34921','state_id' => '2960','name' => 'Viseu de Jos'),\n \t array('id' => '34922','state_id' => '2960','name' => 'Viseu de Sus'),\n \t array('id' => '34923','state_id' => '2961','name' => 'Baclesu'),\n \t array('id' => '34924','state_id' => '2961','name' => 'Baia de Arama'),\n \t array('id' => '34925','state_id' => '2961','name' => 'Bala'),\n \t array('id' => '34926','state_id' => '2961','name' => 'Balacita'),\n \t array('id' => '34927','state_id' => '2961','name' => 'Balta'),\n \t array('id' => '34928','state_id' => '2961','name' => 'Balvanesti'),\n \t array('id' => '34929','state_id' => '2961','name' => 'Breznita Ocol'),\n \t array('id' => '34930','state_id' => '2961','name' => 'Breznita-Motru'),\n \t array('id' => '34931','state_id' => '2961','name' => 'Brosteni'),\n \t array('id' => '34932','state_id' => '2961','name' => 'Burila Mare'),\n \t array('id' => '34933','state_id' => '2961','name' => 'Butoiesti'),\n \t array('id' => '34934','state_id' => '2961','name' => 'Cazanesti'),\n \t array('id' => '34935','state_id' => '2961','name' => 'Ciresu'),\n \t array('id' => '34936','state_id' => '2961','name' => 'Corcova'),\n \t array('id' => '34937','state_id' => '2961','name' => 'Corlatel'),\n \t array('id' => '34938','state_id' => '2961','name' => 'Cujmir'),\n \t array('id' => '34939','state_id' => '2961','name' => 'Darvari'),\n \t array('id' => '34940','state_id' => '2961','name' => 'Devesel'),\n \t array('id' => '34941','state_id' => '2961','name' => 'Drobeta-Turnu Severin'),\n \t array('id' => '34942','state_id' => '2961','name' => 'Dubova'),\n \t array('id' => '34943','state_id' => '2961','name' => 'Dumbrava'),\n \t array('id' => '34944','state_id' => '2961','name' => 'Eselnita'),\n \t array('id' => '34945','state_id' => '2961','name' => 'Floresti'),\n \t array('id' => '34946','state_id' => '2961','name' => 'Garla Mare'),\n \t array('id' => '34947','state_id' => '2961','name' => 'Godeanu'),\n \t array('id' => '34948','state_id' => '2961','name' => 'Gogosu'),\n \t array('id' => '34949','state_id' => '2961','name' => 'Greci'),\n \t array('id' => '34950','state_id' => '2961','name' => 'Grozesti'),\n \t array('id' => '34951','state_id' => '2961','name' => 'Gruia'),\n \t array('id' => '34952','state_id' => '2961','name' => 'Hinova'),\n \t array('id' => '34953','state_id' => '2961','name' => 'Husnicioara'),\n \t array('id' => '34954','state_id' => '2961','name' => 'Ilovat'),\n \t array('id' => '34955','state_id' => '2961','name' => 'Ilovita'),\n \t array('id' => '34956','state_id' => '2961','name' => 'Isverna'),\n \t array('id' => '34957','state_id' => '2961','name' => 'Izvoru Barzii'),\n \t array('id' => '34958','state_id' => '2961','name' => 'Jiana'),\n \t array('id' => '34959','state_id' => '2961','name' => 'Livezile'),\n \t array('id' => '34960','state_id' => '2961','name' => 'Malovat'),\n \t array('id' => '34961','state_id' => '2961','name' => 'Obarsia Noua'),\n \t array('id' => '34962','state_id' => '2961','name' => 'Obarsia-Closani'),\n \t array('id' => '34963','state_id' => '2961','name' => 'Oprisor'),\n \t array('id' => '34964','state_id' => '2961','name' => 'Orsova'),\n \t array('id' => '34965','state_id' => '2961','name' => 'Padina'),\n \t array('id' => '34966','state_id' => '2961','name' => 'Patulele'),\n \t array('id' => '34967','state_id' => '2961','name' => 'Podeni'),\n \t array('id' => '34968','state_id' => '2961','name' => 'Ponoarele'),\n \t array('id' => '34969','state_id' => '2961','name' => 'Poroina Mare'),\n \t array('id' => '34970','state_id' => '2961','name' => 'Pristol'),\n \t array('id' => '34971','state_id' => '2961','name' => 'Prunisor'),\n \t array('id' => '34972','state_id' => '2961','name' => 'Punghina'),\n \t array('id' => '34973','state_id' => '2961','name' => 'Rogova'),\n \t array('id' => '34974','state_id' => '2961','name' => 'Salcia'),\n \t array('id' => '34975','state_id' => '2961','name' => 'Simian'),\n \t array('id' => '34976','state_id' => '2961','name' => 'Sisesti'),\n \t array('id' => '34977','state_id' => '2961','name' => 'Sovarna'),\n \t array('id' => '34978','state_id' => '2961','name' => 'Stangaceaua'),\n \t array('id' => '34979','state_id' => '2961','name' => 'Strehaia'),\n \t array('id' => '34980','state_id' => '2961','name' => 'Svinita'),\n \t array('id' => '34981','state_id' => '2961','name' => 'Tamna'),\n \t array('id' => '34982','state_id' => '2961','name' => 'Vanatori'),\n \t array('id' => '34983','state_id' => '2961','name' => 'Vanju Mare'),\n \t array('id' => '34984','state_id' => '2961','name' => 'Vanjulet'),\n \t array('id' => '34985','state_id' => '2961','name' => 'Vladaia'),\n \t array('id' => '34986','state_id' => '2961','name' => 'Voloiac'),\n \t array('id' => '34987','state_id' => '2962','name' => 'Acatari'),\n \t array('id' => '34988','state_id' => '2962','name' => 'Adamus'),\n \t array('id' => '34989','state_id' => '2962','name' => 'Albesti'),\n \t array('id' => '34990','state_id' => '2962','name' => 'Alunis'),\n \t array('id' => '34991','state_id' => '2962','name' => 'Apold'),\n \t array('id' => '34992','state_id' => '2962','name' => 'Atintis'),\n \t array('id' => '34993','state_id' => '2962','name' => 'Bagaciu'),\n \t array('id' => '34994','state_id' => '2962','name' => 'Bahnea'),\n \t array('id' => '34995','state_id' => '2962','name' => 'Bala'),\n \t array('id' => '34996','state_id' => '2962','name' => 'Balauseri'),\n \t array('id' => '34997','state_id' => '2962','name' => 'Band'),\n \t array('id' => '34998','state_id' => '2962','name' => 'Batos'),\n \t array('id' => '34999','state_id' => '2962','name' => 'Beica de Jos'),\n \t array('id' => '35000','state_id' => '2962','name' => 'Bichis'),\n \t array('id' => '35001','state_id' => '2962','name' => 'Bogata'),\n \t array('id' => '35002','state_id' => '2962','name' => 'Brancovenesti'),\n \t array('id' => '35003','state_id' => '2962','name' => 'Breaza'),\n \t array('id' => '35004','state_id' => '2962','name' => 'Ceuasul-de Campie'),\n \t array('id' => '35005','state_id' => '2962','name' => 'Chetani'),\n \t array('id' => '35006','state_id' => '2962','name' => 'Chiheru de Jos'),\n \t array('id' => '35007','state_id' => '2962','name' => 'Coroisanmartin'),\n \t array('id' => '35008','state_id' => '2962','name' => 'Cozma'),\n \t array('id' => '35009','state_id' => '2962','name' => 'Craciunesti'),\n \t array('id' => '35010','state_id' => '2962','name' => 'Craiesti'),\n \t array('id' => '35011','state_id' => '2962','name' => 'Cristesti'),\n \t array('id' => '35012','state_id' => '2962','name' => 'Cucerdea'),\n \t array('id' => '35013','state_id' => '2962','name' => 'Cuci'),\n \t array('id' => '35014','state_id' => '2962','name' => 'Danes'),\n \t array('id' => '35015','state_id' => '2962','name' => 'Deda'),\n \t array('id' => '35016','state_id' => '2962','name' => 'Eremitu'),\n \t array('id' => '35017','state_id' => '2962','name' => 'Ernei'),\n \t array('id' => '35018','state_id' => '2962','name' => 'Fantanele'),\n \t array('id' => '35019','state_id' => '2962','name' => 'Faragau'),\n \t array('id' => '35020','state_id' => '2962','name' => 'Galesti'),\n \t array('id' => '35021','state_id' => '2962','name' => 'Ganesti'),\n \t array('id' => '35022','state_id' => '2962','name' => 'Gheorghe Doja'),\n \t array('id' => '35023','state_id' => '2962','name' => 'Ghindari'),\n \t array('id' => '35024','state_id' => '2962','name' => 'Glodeni'),\n \t array('id' => '35025','state_id' => '2962','name' => 'Gornesti'),\n \t array('id' => '35026','state_id' => '2962','name' => 'Grebenisu de Campie'),\n \t array('id' => '35027','state_id' => '2962','name' => 'Gurghiu'),\n \t array('id' => '35028','state_id' => '2962','name' => 'Hodac'),\n \t array('id' => '35029','state_id' => '2962','name' => 'Hodosa'),\n \t array('id' => '35030','state_id' => '2962','name' => 'Ibanesti'),\n \t array('id' => '35031','state_id' => '2962','name' => 'Iclanzel'),\n \t array('id' => '35032','state_id' => '2962','name' => 'Ideciu de Jos'),\n \t array('id' => '35033','state_id' => '2962','name' => 'Iernut'),\n \t array('id' => '35034','state_id' => '2962','name' => 'Livezeni'),\n \t array('id' => '35035','state_id' => '2962','name' => 'Ludus'),\n \t array('id' => '35036','state_id' => '2962','name' => 'Lunca'),\n \t array('id' => '35037','state_id' => '2962','name' => 'Lunca Bradului'),\n \t array('id' => '35038','state_id' => '2962','name' => 'Magherani'),\n \t array('id' => '35039','state_id' => '2962','name' => 'Mica'),\n \t array('id' => '35040','state_id' => '2962','name' => 'Miercurea Nirajului'),\n \t array('id' => '35041','state_id' => '2962','name' => 'Mihesu de Campie'),\n \t array('id' => '35042','state_id' => '2962','name' => 'Nades'),\n \t array('id' => '35043','state_id' => '2962','name' => 'Neaua'),\n \t array('id' => '35044','state_id' => '2962','name' => 'Ogra'),\n \t array('id' => '35045','state_id' => '2962','name' => 'Panet'),\n \t array('id' => '35046','state_id' => '2962','name' => 'Papiu Ilarian'),\n \t array('id' => '35047','state_id' => '2962','name' => 'Pasareni'),\n \t array('id' => '35048','state_id' => '2962','name' => 'Petelea'),\n \t array('id' => '35049','state_id' => '2962','name' => 'Pogaceaua'),\n \t array('id' => '35050','state_id' => '2962','name' => 'Raciu'),\n \t array('id' => '35051','state_id' => '2962','name' => 'Rastolita'),\n \t array('id' => '35052','state_id' => '2962','name' => 'Reghin'),\n \t array('id' => '35053','state_id' => '2962','name' => 'Rusii Munti'),\n \t array('id' => '35054','state_id' => '2962','name' => 'Sancraiul-de-Mures'),\n \t array('id' => '35055','state_id' => '2962','name' => 'Sangeorg-de Mures'),\n \t array('id' => '35056','state_id' => '2962','name' => 'Sangeorgiu-de-Padure'),\n \t array('id' => '35057','state_id' => '2962','name' => 'Sanger'),\n \t array('id' => '35058','state_id' => '2962','name' => 'Sanpaul'),\n \t array('id' => '35059','state_id' => '2962','name' => 'Sanpetru-de-Campie'),\n \t array('id' => '35060','state_id' => '2962','name' => 'Santana-de-Mures'),\n \t array('id' => '35061','state_id' => '2962','name' => 'Sarmasu'),\n \t array('id' => '35062','state_id' => '2962','name' => 'Saschiz'),\n \t array('id' => '35063','state_id' => '2962','name' => 'Saulia'),\n \t array('id' => '35064','state_id' => '2962','name' => 'Sighisoara'),\n \t array('id' => '35065','state_id' => '2962','name' => 'Sincai'),\n \t array('id' => '35066','state_id' => '2962','name' => 'Solovastru'),\n \t array('id' => '35067','state_id' => '2962','name' => 'Sovata'),\n \t array('id' => '35068','state_id' => '2962','name' => 'Stanceni'),\n \t array('id' => '35069','state_id' => '2962','name' => 'Suplac'),\n \t array('id' => '35070','state_id' => '2962','name' => 'Suseni'),\n \t array('id' => '35071','state_id' => '2962','name' => 'Targu-Mures'),\n \t array('id' => '35072','state_id' => '2962','name' => 'Tarnaveni'),\n \t array('id' => '35073','state_id' => '2962','name' => 'Taureni'),\n \t array('id' => '35074','state_id' => '2962','name' => 'Ungheni'),\n \t array('id' => '35075','state_id' => '2962','name' => 'Valea Larga'),\n \t array('id' => '35076','state_id' => '2962','name' => 'Vanatori'),\n \t array('id' => '35077','state_id' => '2962','name' => 'Vargata'),\n \t array('id' => '35078','state_id' => '2962','name' => 'Vatava'),\n \t array('id' => '35079','state_id' => '2962','name' => 'Vetca'),\n \t array('id' => '35080','state_id' => '2962','name' => 'Viisoara'),\n \t array('id' => '35081','state_id' => '2962','name' => 'Voivodeni'),\n \t array('id' => '35082','state_id' => '2962','name' => 'Zagar'),\n \t array('id' => '35083','state_id' => '2962','name' => 'Zau de Campie'),\n \t array('id' => '35084','state_id' => '2963','name' => 'Agapia'),\n \t array('id' => '35085','state_id' => '2963','name' => 'Bahna'),\n \t array('id' => '35086','state_id' => '2963','name' => 'Baltatesti'),\n \t array('id' => '35087','state_id' => '2963','name' => 'Bara'),\n \t array('id' => '35088','state_id' => '2963','name' => 'Bargaoani'),\n \t array('id' => '35089','state_id' => '2963','name' => 'Bicaz'),\n \t array('id' => '35090','state_id' => '2963','name' => 'Bicaz Chei'),\n \t array('id' => '35091','state_id' => '2963','name' => 'Bicazu Ardelean'),\n \t array('id' => '35092','state_id' => '2963','name' => 'Bodesti'),\n \t array('id' => '35093','state_id' => '2963','name' => 'Borca'),\n \t array('id' => '35094','state_id' => '2963','name' => 'Borlesti'),\n \t array('id' => '35095','state_id' => '2963','name' => 'Botesti'),\n \t array('id' => '35096','state_id' => '2963','name' => 'Bozieni'),\n \t array('id' => '35097','state_id' => '2963','name' => 'Brusturi-Draganesti'),\n \t array('id' => '35098','state_id' => '2963','name' => 'Candesti'),\n \t array('id' => '35099','state_id' => '2963','name' => 'Ceahlau'),\n \t array('id' => '35100','state_id' => '2963','name' => 'Cordun'),\n \t array('id' => '35101','state_id' => '2963','name' => 'Costisa'),\n \t array('id' => '35102','state_id' => '2963','name' => 'Cracaoani'),\n \t array('id' => '35103','state_id' => '2963','name' => 'Damuc'),\n \t array('id' => '35104','state_id' => '2963','name' => 'Dobreni'),\n \t array('id' => '35105','state_id' => '2963','name' => 'Doljesti'),\n \t array('id' => '35106','state_id' => '2963','name' => 'Dragomiresti'),\n \t array('id' => '35107','state_id' => '2963','name' => 'Dulcesti'),\n \t array('id' => '35108','state_id' => '2963','name' => 'Dumbrava Rosie'),\n \t array('id' => '35109','state_id' => '2963','name' => 'Farcasa'),\n \t array('id' => '35110','state_id' => '2963','name' => 'Faurei'),\n \t array('id' => '35111','state_id' => '2963','name' => 'Garcina'),\n \t array('id' => '35112','state_id' => '2963','name' => 'Gheraesti'),\n \t array('id' => '35113','state_id' => '2963','name' => 'Girov'),\n \t array('id' => '35114','state_id' => '2963','name' => 'Grinties'),\n \t array('id' => '35115','state_id' => '2963','name' => 'Grumazesti'),\n \t array('id' => '35116','state_id' => '2963','name' => 'Hangu'),\n \t array('id' => '35117','state_id' => '2963','name' => 'Horia'),\n \t array('id' => '35118','state_id' => '2963','name' => 'Icusesti'),\n \t array('id' => '35119','state_id' => '2963','name' => 'Ion Creanga'),\n \t array('id' => '35120','state_id' => '2963','name' => 'Margineni'),\n \t array('id' => '35121','state_id' => '2963','name' => 'Moldoveni'),\n \t array('id' => '35122','state_id' => '2963','name' => 'Oniceni'),\n \t array('id' => '35123','state_id' => '2963','name' => 'Pangarati'),\n \t array('id' => '35124','state_id' => '2963','name' => 'Pastraveni'),\n \t array('id' => '35125','state_id' => '2963','name' => 'Petricani'),\n \t array('id' => '35126','state_id' => '2963','name' => 'Piatra Neamt'),\n \t array('id' => '35127','state_id' => '2963','name' => 'Piatra Soimului'),\n \t array('id' => '35128','state_id' => '2963','name' => 'Pipirig'),\n \t array('id' => '35129','state_id' => '2963','name' => 'Podoleni'),\n \t array('id' => '35130','state_id' => '2963','name' => 'Poiana Teiului'),\n \t array('id' => '35131','state_id' => '2963','name' => 'Poienari'),\n \t array('id' => '35132','state_id' => '2963','name' => 'Raucesti'),\n \t array('id' => '35133','state_id' => '2963','name' => 'Razboieni'),\n \t array('id' => '35134','state_id' => '2963','name' => 'Rediu'),\n \t array('id' => '35135','state_id' => '2963','name' => 'Roman'),\n \t array('id' => '35136','state_id' => '2963','name' => 'Romani'),\n \t array('id' => '35137','state_id' => '2963','name' => 'Roznov'),\n \t array('id' => '35138','state_id' => '2963','name' => 'Sabaoani'),\n \t array('id' => '35139','state_id' => '2963','name' => 'Sagna'),\n \t array('id' => '35140','state_id' => '2963','name' => 'Savinesti'),\n \t array('id' => '35141','state_id' => '2963','name' => 'Secuieni'),\n \t array('id' => '35142','state_id' => '2963','name' => 'Stanita'),\n \t array('id' => '35143','state_id' => '2963','name' => 'Stefan cel Mare'),\n \t array('id' => '35144','state_id' => '2963','name' => 'Tamaseni'),\n \t array('id' => '35145','state_id' => '2963','name' => 'Tarcau'),\n \t array('id' => '35146','state_id' => '2963','name' => 'Targu-Neamt'),\n \t array('id' => '35147','state_id' => '2963','name' => 'Tasca'),\n \t array('id' => '35148','state_id' => '2963','name' => 'Tazlau'),\n \t array('id' => '35149','state_id' => '2963','name' => 'Tibucani'),\n \t array('id' => '35150','state_id' => '2963','name' => 'Timisesti'),\n \t array('id' => '35151','state_id' => '2963','name' => 'Trifesti'),\n \t array('id' => '35152','state_id' => '2963','name' => 'Tupilati'),\n \t array('id' => '35153','state_id' => '2963','name' => 'Urecheni'),\n \t array('id' => '35154','state_id' => '2963','name' => 'Valea Ursului'),\n \t array('id' => '35155','state_id' => '2963','name' => 'Vanatori-Neamt'),\n \t array('id' => '35156','state_id' => '2963','name' => 'Viisoara'),\n \t array('id' => '35157','state_id' => '2963','name' => 'Zanesti'),\n \t array('id' => '35158','state_id' => '2964','name' => 'Babiciu'),\n \t array('id' => '35159','state_id' => '2964','name' => 'Baldovinesti'),\n \t array('id' => '35160','state_id' => '2964','name' => 'Bals'),\n \t array('id' => '35161','state_id' => '2964','name' => 'Barasti'),\n \t array('id' => '35162','state_id' => '2964','name' => 'Barza'),\n \t array('id' => '35163','state_id' => '2964','name' => 'Bobicesti'),\n \t array('id' => '35164','state_id' => '2964','name' => 'Brancoveni'),\n \t array('id' => '35165','state_id' => '2964','name' => 'Brastavatu'),\n \t array('id' => '35166','state_id' => '2964','name' => 'Brebeni'),\n \t array('id' => '35167','state_id' => '2964','name' => 'Bucinisu'),\n \t array('id' => '35168','state_id' => '2964','name' => 'Caracal'),\n \t array('id' => '35169','state_id' => '2964','name' => 'Carlogani'),\n \t array('id' => '35170','state_id' => '2964','name' => 'Cezieni'),\n \t array('id' => '35171','state_id' => '2964','name' => 'Cilieni'),\n \t array('id' => '35172','state_id' => '2964','name' => 'Colonesti'),\n \t array('id' => '35173','state_id' => '2964','name' => 'Corabia'),\n \t array('id' => '35174','state_id' => '2964','name' => 'Corbu'),\n \t array('id' => '35175','state_id' => '2964','name' => 'Coteana'),\n \t array('id' => '35176','state_id' => '2964','name' => 'Crampoaia'),\n \t array('id' => '35177','state_id' => '2964','name' => 'Cungrea'),\n \t array('id' => '35178','state_id' => '2964','name' => 'Curtisoara'),\n \t array('id' => '35179','state_id' => '2964','name' => 'Daneasa'),\n \t array('id' => '35180','state_id' => '2964','name' => 'Deveselu'),\n \t array('id' => '35181','state_id' => '2964','name' => 'Dobretu'),\n \t array('id' => '35182','state_id' => '2964','name' => 'Dobrosloveni'),\n \t array('id' => '35183','state_id' => '2964','name' => 'Dobroteasa'),\n \t array('id' => '35184','state_id' => '2964','name' => 'Dobrun'),\n \t array('id' => '35185','state_id' => '2964','name' => 'Draganesti-Olt'),\n \t array('id' => '35186','state_id' => '2964','name' => 'Draghiceni'),\n \t array('id' => '35187','state_id' => '2964','name' => 'Fagetelu'),\n \t array('id' => '35188','state_id' => '2964','name' => 'Falcoiu'),\n \t array('id' => '35189','state_id' => '2964','name' => 'Farcasele'),\n \t array('id' => '35190','state_id' => '2964','name' => 'Ganeasa'),\n \t array('id' => '35191','state_id' => '2964','name' => 'Garcovu'),\n \t array('id' => '35192','state_id' => '2964','name' => 'Giuvarasti'),\n \t array('id' => '35193','state_id' => '2964','name' => 'Gostavatu'),\n \t array('id' => '35194','state_id' => '2964','name' => 'Gradinari'),\n \t array('id' => '35195','state_id' => '2964','name' => 'Grojdibodu'),\n \t array('id' => '35196','state_id' => '2964','name' => 'Ianca'),\n \t array('id' => '35197','state_id' => '2964','name' => 'Iancu Jianu'),\n \t array('id' => '35198','state_id' => '2964','name' => 'Icoana'),\n \t array('id' => '35199','state_id' => '2964','name' => 'Izbiceni'),\n \t array('id' => '35200','state_id' => '2964','name' => 'Izvoarele'),\n \t array('id' => '35201','state_id' => '2964','name' => 'Leleasca'),\n \t array('id' => '35202','state_id' => '2964','name' => 'Maruntei'),\n \t array('id' => '35203','state_id' => '2964','name' => 'Mihaesti'),\n \t array('id' => '35204','state_id' => '2964','name' => 'Milcov'),\n \t array('id' => '35205','state_id' => '2964','name' => 'Morunglav'),\n \t array('id' => '35206','state_id' => '2964','name' => 'Movileni'),\n \t array('id' => '35207','state_id' => '2964','name' => 'Nicolae Titulescu'),\n \t array('id' => '35208','state_id' => '2964','name' => 'Obarsia'),\n \t array('id' => '35209','state_id' => '2964','name' => 'Oboga'),\n \t array('id' => '35210','state_id' => '2964','name' => 'Oporelu'),\n \t array('id' => '35211','state_id' => '2964','name' => 'Optasi'),\n \t array('id' => '35212','state_id' => '2964','name' => 'Orlea'),\n \t array('id' => '35213','state_id' => '2964','name' => 'Osica de Sus'),\n \t array('id' => '35214','state_id' => '2964','name' => 'Parscoveni'),\n \t array('id' => '35215','state_id' => '2964','name' => 'Perieti'),\n \t array('id' => '35216','state_id' => '2964','name' => 'Piatra Olt'),\n \t array('id' => '35217','state_id' => '2964','name' => 'Plesoiu'),\n \t array('id' => '35218','state_id' => '2964','name' => 'Poboru'),\n \t array('id' => '35219','state_id' => '2964','name' => 'Potcoava'),\n \t array('id' => '35220','state_id' => '2964','name' => 'Priseaca'),\n \t array('id' => '35221','state_id' => '2964','name' => 'Radomiresti'),\n \t array('id' => '35222','state_id' => '2964','name' => 'Redea'),\n \t array('id' => '35223','state_id' => '2964','name' => 'Rotunda'),\n \t array('id' => '35224','state_id' => '2964','name' => 'Rusanesti'),\n \t array('id' => '35225','state_id' => '2964','name' => 'Samburesti'),\n \t array('id' => '35226','state_id' => '2964','name' => 'Scarisoara'),\n \t array('id' => '35227','state_id' => '2964','name' => 'Schitu'),\n \t array('id' => '35228','state_id' => '2964','name' => 'Scornicesti'),\n \t array('id' => '35229','state_id' => '2964','name' => 'Seaca'),\n \t array('id' => '35230','state_id' => '2964','name' => 'Serbanesti'),\n \t array('id' => '35231','state_id' => '2964','name' => 'Slatina'),\n \t array('id' => '35232','state_id' => '2964','name' => 'Slatioara'),\n \t array('id' => '35233','state_id' => '2964','name' => 'Spineni'),\n \t array('id' => '35234','state_id' => '2964','name' => 'Sprancenata'),\n \t array('id' => '35235','state_id' => '2964','name' => 'Stefan cel Mare'),\n \t array('id' => '35236','state_id' => '2964','name' => 'Stoenesti'),\n \t array('id' => '35237','state_id' => '2964','name' => 'Stoicanesti'),\n \t array('id' => '35238','state_id' => '2964','name' => 'Strejesti'),\n \t array('id' => '35239','state_id' => '2964','name' => 'Studina'),\n \t array('id' => '35240','state_id' => '2964','name' => 'Tatulesti'),\n \t array('id' => '35241','state_id' => '2964','name' => 'Teslui'),\n \t array('id' => '35242','state_id' => '2964','name' => 'Tia Mare'),\n \t array('id' => '35243','state_id' => '2964','name' => 'Topana'),\n \t array('id' => '35244','state_id' => '2964','name' => 'Traian'),\n \t array('id' => '35245','state_id' => '2964','name' => 'Tufeni'),\n \t array('id' => '35246','state_id' => '2964','name' => 'Urzica'),\n \t array('id' => '35247','state_id' => '2964','name' => 'Vadastra'),\n \t array('id' => '35248','state_id' => '2964','name' => 'Vadastrita'),\n \t array('id' => '35249','state_id' => '2964','name' => 'Valcele'),\n \t array('id' => '35250','state_id' => '2964','name' => 'Valea Mare'),\n \t array('id' => '35251','state_id' => '2964','name' => 'Valeni'),\n \t array('id' => '35252','state_id' => '2964','name' => 'Verguleasa'),\n \t array('id' => '35253','state_id' => '2964','name' => 'Visina'),\n \t array('id' => '35254','state_id' => '2964','name' => 'Vitomiresti'),\n \t array('id' => '35255','state_id' => '2964','name' => 'Vladila'),\n \t array('id' => '35256','state_id' => '2964','name' => 'Voineasa'),\n \t array('id' => '35257','state_id' => '2964','name' => 'Vulpeni'),\n \t array('id' => '35258','state_id' => '2964','name' => 'Vulturesti'),\n \t array('id' => '35259','state_id' => '2965','name' => 'Adunati'),\n \t array('id' => '35260','state_id' => '2965','name' => 'Albesti-Paleologu'),\n \t array('id' => '35261','state_id' => '2965','name' => 'Alunis'),\n \t array('id' => '35262','state_id' => '2965','name' => 'Apostolache'),\n \t array('id' => '35263','state_id' => '2965','name' => 'Aricestii-Rahtivani'),\n \t array('id' => '35264','state_id' => '2965','name' => 'Aricestii-Zeletin'),\n \t array('id' => '35265','state_id' => '2965','name' => 'Azuga'),\n \t array('id' => '35266','state_id' => '2965','name' => 'Baba Ana'),\n \t array('id' => '35267','state_id' => '2965','name' => 'Baicoi'),\n \t array('id' => '35268','state_id' => '2965','name' => 'Balta Doamnei'),\n \t array('id' => '35269','state_id' => '2965','name' => 'Baltesti'),\n \t array('id' => '35270','state_id' => '2965','name' => 'Banesti'),\n \t array('id' => '35271','state_id' => '2965','name' => 'Barcanesti'),\n \t array('id' => '35272','state_id' => '2965','name' => 'Berceni'),\n \t array('id' => '35273','state_id' => '2965','name' => 'Bertea'),\n \t array('id' => '35274','state_id' => '2965','name' => 'Blejoi'),\n \t array('id' => '35275','state_id' => '2965','name' => 'Boldesti'),\n \t array('id' => '35276','state_id' => '2965','name' => 'Boldesti-Scaeni'),\n \t array('id' => '35277','state_id' => '2965','name' => 'Brazi'),\n \t array('id' => '35278','state_id' => '2965','name' => 'Breaza'),\n \t array('id' => '35279','state_id' => '2965','name' => 'Brebu'),\n \t array('id' => '35280','state_id' => '2965','name' => 'Bucov'),\n \t array('id' => '35281','state_id' => '2965','name' => 'Busteni'),\n \t array('id' => '35282','state_id' => '2965','name' => 'Calugareni'),\n \t array('id' => '35283','state_id' => '2965','name' => 'Campina'),\n \t array('id' => '35284','state_id' => '2965','name' => 'Carbunesti'),\n \t array('id' => '35285','state_id' => '2965','name' => 'Ceptura'),\n \t array('id' => '35286','state_id' => '2965','name' => 'Cerasu'),\n \t array('id' => '35287','state_id' => '2965','name' => 'Chiojdeanca'),\n \t array('id' => '35288','state_id' => '2965','name' => 'Ciorani'),\n \t array('id' => '35289','state_id' => '2965','name' => 'Cocorastii-Misli'),\n \t array('id' => '35290','state_id' => '2965','name' => 'Colceag'),\n \t array('id' => '35291','state_id' => '2965','name' => 'Comarnic'),\n \t array('id' => '35292','state_id' => '2965','name' => 'Cornu'),\n \t array('id' => '35293','state_id' => '2965','name' => 'Cosminele'),\n \t array('id' => '35294','state_id' => '2965','name' => 'Doftana'),\n \t array('id' => '35295','state_id' => '2965','name' => 'Draganesti'),\n \t array('id' => '35296','state_id' => '2965','name' => 'Drajna'),\n \t array('id' => '35297','state_id' => '2965','name' => 'Dumbrava'),\n \t array('id' => '35298','state_id' => '2965','name' => 'Dumbravesti'),\n \t array('id' => '35299','state_id' => '2965','name' => 'Fantanele'),\n \t array('id' => '35300','state_id' => '2965','name' => 'Filipestii de Padure'),\n \t array('id' => '35301','state_id' => '2965','name' => 'Filipestii de Targ'),\n \t array('id' => '35302','state_id' => '2965','name' => 'Floresti'),\n \t array('id' => '35303','state_id' => '2965','name' => 'Fulga'),\n \t array('id' => '35304','state_id' => '2965','name' => 'Gherghita'),\n \t array('id' => '35305','state_id' => '2965','name' => 'Gorgota'),\n \t array('id' => '35306','state_id' => '2965','name' => 'Gornet'),\n \t array('id' => '35307','state_id' => '2965','name' => 'Gornet-Cricov'),\n \t array('id' => '35308','state_id' => '2965','name' => 'Gura Vadului'),\n \t array('id' => '35309','state_id' => '2965','name' => 'Gura Vitioarei'),\n \t array('id' => '35310','state_id' => '2965','name' => 'Iordacheanu'),\n \t array('id' => '35311','state_id' => '2965','name' => 'Izvoarele'),\n \t array('id' => '35312','state_id' => '2965','name' => 'Jugureni'),\n \t array('id' => '35313','state_id' => '2965','name' => 'Lapos'),\n \t array('id' => '35314','state_id' => '2965','name' => 'Lipanesti'),\n \t array('id' => '35315','state_id' => '2965','name' => 'Magurele'),\n \t array('id' => '35316','state_id' => '2965','name' => 'Magureni'),\n \t array('id' => '35317','state_id' => '2965','name' => 'Maneciu'),\n \t array('id' => '35318','state_id' => '2965','name' => 'Manesti'),\n \t array('id' => '35319','state_id' => '2965','name' => 'Mizil'),\n \t array('id' => '35320','state_id' => '2965','name' => 'Pacureti'),\n \t array('id' => '35321','state_id' => '2965','name' => 'Paulesti'),\n \t array('id' => '35322','state_id' => '2965','name' => 'Ploiesti'),\n \t array('id' => '35323','state_id' => '2965','name' => 'Plopeni'),\n \t array('id' => '35324','state_id' => '2965','name' => 'Plopu'),\n \t array('id' => '35325','state_id' => '2965','name' => 'Podenii Noi'),\n \t array('id' => '35326','state_id' => '2965','name' => 'Poenarii-Burchi'),\n \t array('id' => '35327','state_id' => '2965','name' => 'Poiana Campina'),\n \t array('id' => '35328','state_id' => '2965','name' => 'Posesti'),\n \t array('id' => '35329','state_id' => '2965','name' => 'Predeal-Sarari'),\n \t array('id' => '35330','state_id' => '2965','name' => 'Provita de Jos'),\n \t array('id' => '35331','state_id' => '2965','name' => 'Provita de Sus'),\n \t array('id' => '35332','state_id' => '2965','name' => 'Puchenii Mari'),\n \t array('id' => '35333','state_id' => '2965','name' => 'Rafov'),\n \t array('id' => '35334','state_id' => '2965','name' => 'Salcia'),\n \t array('id' => '35335','state_id' => '2965','name' => 'Salciile'),\n \t array('id' => '35336','state_id' => '2965','name' => 'Sangeru'),\n \t array('id' => '35337','state_id' => '2965','name' => 'Scorteni'),\n \t array('id' => '35338','state_id' => '2965','name' => 'Secaria'),\n \t array('id' => '35339','state_id' => '2965','name' => 'Sinaia'),\n \t array('id' => '35340','state_id' => '2965','name' => 'Sirna'),\n \t array('id' => '35341','state_id' => '2965','name' => 'Slanic'),\n \t array('id' => '35342','state_id' => '2965','name' => 'Soimari'),\n \t array('id' => '35343','state_id' => '2965','name' => 'Sotrile'),\n \t array('id' => '35344','state_id' => '2965','name' => 'Starchiojd'),\n \t array('id' => '35345','state_id' => '2965','name' => 'Stefesti'),\n \t array('id' => '35346','state_id' => '2965','name' => 'Surani'),\n \t array('id' => '35347','state_id' => '2965','name' => 'Talea'),\n \t array('id' => '35348','state_id' => '2965','name' => 'Targsorul-Vechi'),\n \t array('id' => '35349','state_id' => '2965','name' => 'Tataru'),\n \t array('id' => '35350','state_id' => '2965','name' => 'Teisani'),\n \t array('id' => '35351','state_id' => '2965','name' => 'Telega'),\n \t array('id' => '35352','state_id' => '2965','name' => 'Tinosu'),\n \t array('id' => '35353','state_id' => '2965','name' => 'Tomsani'),\n \t array('id' => '35354','state_id' => '2965','name' => 'Urlati'),\n \t array('id' => '35355','state_id' => '2965','name' => 'Valcanesti'),\n \t array('id' => '35356','state_id' => '2965','name' => 'Valea Calugareasca'),\n \t array('id' => '35357','state_id' => '2965','name' => 'Valenii de Munte'),\n \t array('id' => '35358','state_id' => '2965','name' => 'Varbilau'),\n \t array('id' => '35359','state_id' => '2966','name' => 'Agrij'),\n \t array('id' => '35360','state_id' => '2966','name' => 'Almasu'),\n \t array('id' => '35361','state_id' => '2966','name' => 'Babeni'),\n \t array('id' => '35362','state_id' => '2966','name' => 'Balan'),\n \t array('id' => '35363','state_id' => '2966','name' => 'Banisor'),\n \t array('id' => '35364','state_id' => '2966','name' => 'Benesat'),\n \t array('id' => '35365','state_id' => '2966','name' => 'Bobota'),\n \t array('id' => '35366','state_id' => '2966','name' => 'Bocsa'),\n \t array('id' => '35367','state_id' => '2966','name' => 'Buciumi'),\n \t array('id' => '35368','state_id' => '2966','name' => 'Camar'),\n \t array('id' => '35369','state_id' => '2966','name' => 'Carastelec'),\n \t array('id' => '35370','state_id' => '2966','name' => 'Cehu Silvaniei'),\n \t array('id' => '35371','state_id' => '2966','name' => 'Chiesd'),\n \t array('id' => '35372','state_id' => '2966','name' => 'Cizer'),\n \t array('id' => '35373','state_id' => '2966','name' => 'Coseiu'),\n \t array('id' => '35374','state_id' => '2966','name' => 'Crasna'),\n \t array('id' => '35375','state_id' => '2966','name' => 'Creaca'),\n \t array('id' => '35376','state_id' => '2966','name' => 'Criseni'),\n \t array('id' => '35377','state_id' => '2966','name' => 'Cristolt'),\n \t array('id' => '35378','state_id' => '2966','name' => 'Cuzaplac'),\n \t array('id' => '35379','state_id' => '2966','name' => 'Dobrin'),\n \t array('id' => '35380','state_id' => '2966','name' => 'Dragu'),\n \t array('id' => '35381','state_id' => '2966','name' => 'Fildu de Jos'),\n \t array('id' => '35382','state_id' => '2966','name' => 'Galgau'),\n \t array('id' => '35383','state_id' => '2966','name' => 'Garbou'),\n \t array('id' => '35384','state_id' => '2966','name' => 'Halmasd'),\n \t array('id' => '35385','state_id' => '2966','name' => 'Hereclean'),\n \t array('id' => '35386','state_id' => '2966','name' => 'Hida'),\n \t array('id' => '35387','state_id' => '2966','name' => 'Horoatu Crasnei'),\n \t array('id' => '35388','state_id' => '2966','name' => 'Ileanda'),\n \t array('id' => '35389','state_id' => '2966','name' => 'Ip'),\n \t array('id' => '35390','state_id' => '2966','name' => 'Jibou'),\n \t array('id' => '35391','state_id' => '2966','name' => 'Letca'),\n \t array('id' => '35392','state_id' => '2966','name' => 'Lozna'),\n \t array('id' => '35393','state_id' => '2966','name' => 'Maeriste'),\n \t array('id' => '35394','state_id' => '2966','name' => 'Marca'),\n \t array('id' => '35395','state_id' => '2966','name' => 'Mesesenii de Jos'),\n \t array('id' => '35396','state_id' => '2966','name' => 'Mirsid'),\n \t array('id' => '35397','state_id' => '2966','name' => 'Napradea'),\n \t array('id' => '35398','state_id' => '2966','name' => 'Nusfalau'),\n \t array('id' => '35399','state_id' => '2966','name' => 'Periceiu'),\n \t array('id' => '35400','state_id' => '2966','name' => 'Plopis'),\n \t array('id' => '35401','state_id' => '2966','name' => 'Poiana Blenchii'),\n \t array('id' => '35402','state_id' => '2966','name' => 'Romanasi'),\n \t array('id' => '35403','state_id' => '2966','name' => 'Rus'),\n \t array('id' => '35404','state_id' => '2966','name' => 'Sag'),\n \t array('id' => '35405','state_id' => '2966','name' => 'Salatig'),\n \t array('id' => '35406','state_id' => '2966','name' => 'Samsud'),\n \t array('id' => '35407','state_id' => '2966','name' => 'Sanmihaiul-Almasului'),\n \t array('id' => '35408','state_id' => '2966','name' => 'Sarmasag'),\n \t array('id' => '35409','state_id' => '2966','name' => 'Simleu Silvaniei'),\n \t array('id' => '35410','state_id' => '2966','name' => 'Somes-Odorhei'),\n \t array('id' => '35411','state_id' => '2966','name' => 'Surduc'),\n \t array('id' => '35412','state_id' => '2966','name' => 'Treznea'),\n \t array('id' => '35413','state_id' => '2966','name' => 'Valcau de Jos'),\n \t array('id' => '35414','state_id' => '2966','name' => 'Varsolt'),\n \t array('id' => '35415','state_id' => '2966','name' => 'Zalau'),\n \t array('id' => '35416','state_id' => '2966','name' => 'Zalha'),\n \t array('id' => '35417','state_id' => '2966','name' => 'Zimbor'),\n \t array('id' => '35418','state_id' => '2968','name' => 'Agnita'),\n \t array('id' => '35419','state_id' => '2968','name' => 'Altina'),\n \t array('id' => '35420','state_id' => '2968','name' => 'Apoldu de Jos'),\n \t array('id' => '35421','state_id' => '2968','name' => 'Arpasu de Jos'),\n \t array('id' => '35422','state_id' => '2968','name' => 'Atel'),\n \t array('id' => '35423','state_id' => '2968','name' => 'Avrig'),\n \t array('id' => '35424','state_id' => '2968','name' => 'Axente Sever'),\n \t array('id' => '35425','state_id' => '2968','name' => 'Barghis'),\n \t array('id' => '35426','state_id' => '2968','name' => 'Bazna'),\n \t array('id' => '35427','state_id' => '2968','name' => 'Biertan'),\n \t array('id' => '35428','state_id' => '2968','name' => 'Blajel'),\n \t array('id' => '35429','state_id' => '2968','name' => 'Bradeni'),\n \t array('id' => '35430','state_id' => '2968','name' => 'Brateiu'),\n \t array('id' => '35431','state_id' => '2968','name' => 'Bruiu'),\n \t array('id' => '35432','state_id' => '2968','name' => 'Carta'),\n \t array('id' => '35433','state_id' => '2968','name' => 'Cartisoara'),\n \t array('id' => '35434','state_id' => '2968','name' => 'Chirpar'),\n \t array('id' => '35435','state_id' => '2968','name' => 'Cisnadie'),\n \t array('id' => '35436','state_id' => '2968','name' => 'Copsa Mica'),\n \t array('id' => '35437','state_id' => '2968','name' => 'Cristian'),\n \t array('id' => '35438','state_id' => '2968','name' => 'Darlos'),\n \t array('id' => '35439','state_id' => '2968','name' => 'Dumbraveni'),\n \t array('id' => '35440','state_id' => '2968','name' => 'Gura Raului'),\n \t array('id' => '35441','state_id' => '2968','name' => 'Hoghilag'),\n \t array('id' => '35442','state_id' => '2968','name' => 'Iacobeni'),\n \t array('id' => '35443','state_id' => '2968','name' => 'Jina'),\n \t array('id' => '35444','state_id' => '2968','name' => 'Laslea'),\n \t array('id' => '35445','state_id' => '2968','name' => 'Loamnes'),\n \t array('id' => '35446','state_id' => '2968','name' => 'Ludos'),\n \t array('id' => '35447','state_id' => '2968','name' => 'Marpod'),\n \t array('id' => '35448','state_id' => '2968','name' => 'Medias'),\n \t array('id' => '35449','state_id' => '2968','name' => 'Merghindeal'),\n \t array('id' => '35450','state_id' => '2968','name' => 'Micasasa'),\n \t array('id' => '35451','state_id' => '2968','name' => 'Miercurea Sibiului'),\n \t array('id' => '35452','state_id' => '2968','name' => 'Mihaileni'),\n \t array('id' => '35453','state_id' => '2968','name' => 'Mosna'),\n \t array('id' => '35454','state_id' => '2968','name' => 'Nocrich'),\n \t array('id' => '35455','state_id' => '2968','name' => 'Ocna Sibiului'),\n \t array('id' => '35456','state_id' => '2968','name' => 'Orlat'),\n \t array('id' => '35457','state_id' => '2968','name' => 'Pauca'),\n \t array('id' => '35458','state_id' => '2968','name' => 'Poiana Sibiului'),\n \t array('id' => '35459','state_id' => '2968','name' => 'Poplaca'),\n \t array('id' => '35460','state_id' => '2968','name' => 'Porumbacu de Jos'),\n \t array('id' => '35461','state_id' => '2968','name' => 'Racovita'),\n \t array('id' => '35462','state_id' => '2968','name' => 'Rasinari'),\n \t array('id' => '35463','state_id' => '2968','name' => 'Rau Sadului'),\n \t array('id' => '35464','state_id' => '2968','name' => 'Rosia'),\n \t array('id' => '35465','state_id' => '2968','name' => 'Sadu'),\n \t array('id' => '35466','state_id' => '2968','name' => 'Saliste'),\n \t array('id' => '35467','state_id' => '2968','name' => 'Seica Mare'),\n \t array('id' => '35468','state_id' => '2968','name' => 'Seica Mica'),\n \t array('id' => '35469','state_id' => '2968','name' => 'Selimbar'),\n \t array('id' => '35470','state_id' => '2968','name' => 'Sibiu'),\n \t array('id' => '35471','state_id' => '2968','name' => 'Slimnic'),\n \t array('id' => '35472','state_id' => '2968','name' => 'Sura Mare'),\n \t array('id' => '35473','state_id' => '2968','name' => 'Sura Mica'),\n \t array('id' => '35474','state_id' => '2968','name' => 'Talmaciu'),\n \t array('id' => '35475','state_id' => '2968','name' => 'Tarnava'),\n \t array('id' => '35476','state_id' => '2968','name' => 'Tilisca'),\n \t array('id' => '35477','state_id' => '2968','name' => 'Turnu Rosu'),\n \t array('id' => '35478','state_id' => '2968','name' => 'Valea Viilor'),\n \t array('id' => '35479','state_id' => '2968','name' => 'Vurpar'),\n \t array('id' => '35480','state_id' => '2969','name' => 'Sondelor'),\n \t array('id' => '35481','state_id' => '2970','name' => 'Adancata'),\n \t array('id' => '35482','state_id' => '2970','name' => 'Arbore'),\n \t array('id' => '35483','state_id' => '2970','name' => 'Baia'),\n \t array('id' => '35484','state_id' => '2970','name' => 'Balcauti'),\n \t array('id' => '35485','state_id' => '2970','name' => 'Bilca'),\n \t array('id' => '35486','state_id' => '2970','name' => 'Bogdanesti'),\n \t array('id' => '35487','state_id' => '2970','name' => 'Boroaia'),\n \t array('id' => '35488','state_id' => '2970','name' => 'Bosanci'),\n \t array('id' => '35489','state_id' => '2970','name' => 'Botosana'),\n \t array('id' => '35490','state_id' => '2970','name' => 'Breaza'),\n \t array('id' => '35491','state_id' => '2970','name' => 'Brodina'),\n \t array('id' => '35492','state_id' => '2970','name' => 'Brosteni'),\n \t array('id' => '35493','state_id' => '2970','name' => 'Bunesti'),\n \t array('id' => '35494','state_id' => '2970','name' => 'Cacica'),\n \t array('id' => '35495','state_id' => '2970','name' => 'Cajvana'),\n \t array('id' => '35496','state_id' => '2970','name' => 'Calafindesti'),\n \t array('id' => '35497','state_id' => '2970','name' => 'Campulung Moldovenesc'),\n \t array('id' => '35498','state_id' => '2970','name' => 'Carlibaba'),\n \t array('id' => '35499','state_id' => '2970','name' => 'Ciprian Porumbescu'),\n \t array('id' => '35500','state_id' => '2970','name' => 'Cornu Luncii'),\n \t array('id' => '35501','state_id' => '2970','name' => 'Crucea'),\n \t array('id' => '35502','state_id' => '2970','name' => 'Darmanesti'),\n \t array('id' => '35503','state_id' => '2970','name' => 'Dolhasca'),\n \t array('id' => '35504','state_id' => '2970','name' => 'Dolhesti'),\n \t array('id' => '35505','state_id' => '2970','name' => 'Dorna'),\n \t array('id' => '35506','state_id' => '2970','name' => 'Dorna Candrenilor'),\n \t array('id' => '35507','state_id' => '2970','name' => 'Dornesti'),\n \t array('id' => '35508','state_id' => '2970','name' => 'Dragoesti'),\n \t array('id' => '35509','state_id' => '2970','name' => 'Draguseni'),\n \t array('id' => '35510','state_id' => '2970','name' => 'Dumbraveni'),\n \t array('id' => '35511','state_id' => '2970','name' => 'Falticeni'),\n \t array('id' => '35512','state_id' => '2970','name' => 'Fantanele'),\n \t array('id' => '35513','state_id' => '2970','name' => 'Forasti'),\n \t array('id' => '35514','state_id' => '2970','name' => 'Frasin'),\n \t array('id' => '35515','state_id' => '2970','name' => 'Fratautii Noi'),\n \t array('id' => '35516','state_id' => '2970','name' => 'Fratautii Vechi'),\n \t array('id' => '35517','state_id' => '2970','name' => 'Frumosu'),\n \t array('id' => '35518','state_id' => '2970','name' => 'Fundu Moldovei'),\n \t array('id' => '35519','state_id' => '2970','name' => 'Galanesti'),\n \t array('id' => '35520','state_id' => '2970','name' => 'Gramesti'),\n \t array('id' => '35521','state_id' => '2970','name' => 'Granicesti'),\n \t array('id' => '35522','state_id' => '2970','name' => 'Gura Humorului'),\n \t array('id' => '35523','state_id' => '2970','name' => 'Horodniceni'),\n \t array('id' => '35524','state_id' => '2970','name' => 'Horodnicu'),\n \t array('id' => '35525','state_id' => '2970','name' => 'Iacobeni'),\n \t array('id' => '35526','state_id' => '2970','name' => 'Ipotesti'),\n \t array('id' => '35527','state_id' => '2970','name' => 'Izvoarele Sucevei'),\n \t array('id' => '35528','state_id' => '2970','name' => 'Liteni'),\n \t array('id' => '35529','state_id' => '2970','name' => 'Malini'),\n \t array('id' => '35530','state_id' => '2970','name' => 'Manastirea Homorului'),\n \t array('id' => '35531','state_id' => '2970','name' => 'Marginea'),\n \t array('id' => '35532','state_id' => '2970','name' => 'Milisauti'),\n \t array('id' => '35533','state_id' => '2970','name' => 'Mitocu Dragomirnei'),\n \t array('id' => '35534','state_id' => '2970','name' => 'Moara'),\n \t array('id' => '35535','state_id' => '2970','name' => 'Moldova Sulita'),\n \t array('id' => '35536','state_id' => '2970','name' => 'Moldovita'),\n \t array('id' => '35537','state_id' => '2970','name' => 'Musenita'),\n \t array('id' => '35538','state_id' => '2970','name' => 'Ostra'),\n \t array('id' => '35539','state_id' => '2970','name' => 'Paltinoasa'),\n \t array('id' => '35540','state_id' => '2970','name' => 'Panaci'),\n \t array('id' => '35541','state_id' => '2970','name' => 'Partestii de Jos'),\n \t array('id' => '35542','state_id' => '2970','name' => 'Patrauti'),\n \t array('id' => '35543','state_id' => '2970','name' => 'Poiana Stampei'),\n \t array('id' => '35544','state_id' => '2970','name' => 'Pojorata'),\n \t array('id' => '35545','state_id' => '2970','name' => 'Preutesti'),\n \t array('id' => '35546','state_id' => '2970','name' => 'Putna'),\n \t array('id' => '35547','state_id' => '2970','name' => 'Radaseni'),\n \t array('id' => '35548','state_id' => '2970','name' => 'Radauti'),\n \t array('id' => '35549','state_id' => '2970','name' => 'Rasca'),\n \t array('id' => '35550','state_id' => '2970','name' => 'Sadova'),\n \t array('id' => '35551','state_id' => '2970','name' => 'Salcea'),\n \t array('id' => '35552','state_id' => '2970','name' => 'Saru Dornei'),\n \t array('id' => '35553','state_id' => '2970','name' => 'Satu Mare'),\n \t array('id' => '35554','state_id' => '2970','name' => 'Scheia'),\n \t array('id' => '35555','state_id' => '2970','name' => 'Siminicea'),\n \t array('id' => '35556','state_id' => '2970','name' => 'Siret'),\n \t array('id' => '35557','state_id' => '2970','name' => 'Slatina'),\n \t array('id' => '35558','state_id' => '2970','name' => 'Solca'),\n \t array('id' => '35559','state_id' => '2970','name' => 'Straja'),\n \t array('id' => '35560','state_id' => '2970','name' => 'Stroiesti'),\n \t array('id' => '35561','state_id' => '2970','name' => 'Stulpicani'),\n \t array('id' => '35562','state_id' => '2970','name' => 'Suceava'),\n \t array('id' => '35563','state_id' => '2970','name' => 'Sucevita'),\n \t array('id' => '35564','state_id' => '2970','name' => 'Todiresti'),\n \t array('id' => '35565','state_id' => '2970','name' => 'Udesti'),\n \t array('id' => '35566','state_id' => '2970','name' => 'Ulma'),\n \t array('id' => '35567','state_id' => '2970','name' => 'Vadu Moldovei'),\n \t array('id' => '35568','state_id' => '2970','name' => 'Valea Moldovei'),\n \t array('id' => '35569','state_id' => '2970','name' => 'Vama'),\n \t array('id' => '35570','state_id' => '2970','name' => 'Vatra Dornei'),\n \t array('id' => '35571','state_id' => '2970','name' => 'Vatra Moldovitei'),\n \t array('id' => '35572','state_id' => '2970','name' => 'Veresti'),\n \t array('id' => '35573','state_id' => '2970','name' => 'Vicovu de Jos'),\n \t array('id' => '35574','state_id' => '2970','name' => 'Vicovu de Sus'),\n \t array('id' => '35575','state_id' => '2970','name' => 'Volovat'),\n \t array('id' => '35576','state_id' => '2970','name' => 'Vulturesti'),\n \t array('id' => '35577','state_id' => '2970','name' => 'Zamostea'),\n \t array('id' => '35578','state_id' => '2970','name' => 'Zvoristea'),\n \t array('id' => '35579','state_id' => '2971','name' => 'Alexandria'),\n \t array('id' => '35580','state_id' => '2971','name' => 'Babaita'),\n \t array('id' => '35581','state_id' => '2971','name' => 'Balaci'),\n \t array('id' => '35582','state_id' => '2971','name' => 'Blejesti'),\n \t array('id' => '35583','state_id' => '2971','name' => 'Bogdana'),\n \t array('id' => '35584','state_id' => '2971','name' => 'Botoroaga'),\n \t array('id' => '35585','state_id' => '2971','name' => 'Bragadiru'),\n \t array('id' => '35586','state_id' => '2971','name' => 'Branceni'),\n \t array('id' => '35587','state_id' => '2971','name' => 'Bujoreni'),\n \t array('id' => '35588','state_id' => '2971','name' => 'Bujoru'),\n \t array('id' => '35589','state_id' => '2971','name' => 'Buzescu'),\n \t array('id' => '35590','state_id' => '2971','name' => 'Calinesti'),\n \t array('id' => '35591','state_id' => '2971','name' => 'Calmatuiu'),\n \t array('id' => '35592','state_id' => '2971','name' => 'Cervenia'),\n \t array('id' => '35593','state_id' => '2971','name' => 'Ciolanesti'),\n \t array('id' => '35594','state_id' => '2971','name' => 'Ciuperceni'),\n \t array('id' => '35595','state_id' => '2971','name' => 'Contesti'),\n \t array('id' => '35596','state_id' => '2971','name' => 'Cosmesti'),\n \t array('id' => '35597','state_id' => '2971','name' => 'Crangeni'),\n \t array('id' => '35598','state_id' => '2971','name' => 'Crangu'),\n \t array('id' => '35599','state_id' => '2971','name' => 'Crevenicu'),\n \t array('id' => '35600','state_id' => '2971','name' => 'Didesti'),\n \t array('id' => '35601','state_id' => '2971','name' => 'Dobrotesti'),\n \t array('id' => '35602','state_id' => '2971','name' => 'Dracsenei'),\n \t array('id' => '35603','state_id' => '2971','name' => 'Draganesti de Vede'),\n \t array('id' => '35604','state_id' => '2971','name' => 'Draganesti-Vlasca'),\n \t array('id' => '35605','state_id' => '2971','name' => 'Frumoasa'),\n \t array('id' => '35606','state_id' => '2971','name' => 'Furculesti'),\n \t array('id' => '35607','state_id' => '2971','name' => 'Galateni'),\n \t array('id' => '35608','state_id' => '2971','name' => 'Gratia'),\n \t array('id' => '35609','state_id' => '2971','name' => 'Islaz'),\n \t array('id' => '35610','state_id' => '2971','name' => 'Izvoarele'),\n \t array('id' => '35611','state_id' => '2971','name' => 'Lisa'),\n \t array('id' => '35612','state_id' => '2971','name' => 'Lita'),\n \t array('id' => '35613','state_id' => '2971','name' => 'Lunca'),\n \t array('id' => '35614','state_id' => '2971','name' => 'Magura'),\n \t array('id' => '35615','state_id' => '2971','name' => 'Maldaeni'),\n \t array('id' => '35616','state_id' => '2971','name' => 'Marzanesti'),\n \t array('id' => '35617','state_id' => '2971','name' => 'Mavrodin'),\n \t array('id' => '35618','state_id' => '2971','name' => 'Mereni'),\n \t array('id' => '35619','state_id' => '2971','name' => 'Mosteni'),\n \t array('id' => '35620','state_id' => '2971','name' => 'Nanov'),\n \t array('id' => '35621','state_id' => '2971','name' => 'Nasturelu'),\n \t array('id' => '35622','state_id' => '2971','name' => 'Necsesti'),\n \t array('id' => '35623','state_id' => '2971','name' => 'Olteni'),\n \t array('id' => '35624','state_id' => '2971','name' => 'Orbeasca'),\n \t array('id' => '35625','state_id' => '2971','name' => 'Peretu'),\n \t array('id' => '35626','state_id' => '2971','name' => 'Piatra'),\n \t array('id' => '35627','state_id' => '2971','name' => 'Pietrosani'),\n \t array('id' => '35628','state_id' => '2971','name' => 'Plopii Slavitesti'),\n \t array('id' => '35629','state_id' => '2971','name' => 'Plosca'),\n \t array('id' => '35630','state_id' => '2971','name' => 'Poeni'),\n \t array('id' => '35631','state_id' => '2971','name' => 'Poroschia'),\n \t array('id' => '35632','state_id' => '2971','name' => 'Putineiu'),\n \t array('id' => '35633','state_id' => '2971','name' => 'Radoiesti'),\n \t array('id' => '35634','state_id' => '2971','name' => 'Rasmiresti'),\n \t array('id' => '35635','state_id' => '2971','name' => 'Rosiori de Vede'),\n \t array('id' => '35636','state_id' => '2971','name' => 'Saceni'),\n \t array('id' => '35637','state_id' => '2971','name' => 'Salcia'),\n \t array('id' => '35638','state_id' => '2971','name' => 'Sarbeni'),\n \t array('id' => '35639','state_id' => '2971','name' => 'Scrioastea'),\n \t array('id' => '35640','state_id' => '2971','name' => 'Scurtu Mare'),\n \t array('id' => '35641','state_id' => '2971','name' => 'Seaca'),\n \t array('id' => '35642','state_id' => '2971','name' => 'Segarcea Vale'),\n \t array('id' => '35643','state_id' => '2971','name' => 'Sfintesti'),\n \t array('id' => '35644','state_id' => '2971','name' => 'Silistea'),\n \t array('id' => '35645','state_id' => '2971','name' => 'Silistea-Gumesti'),\n \t array('id' => '35646','state_id' => '2971','name' => 'Slobozia-Mandra'),\n \t array('id' => '35647','state_id' => '2971','name' => 'Smardioasa'),\n \t array('id' => '35648','state_id' => '2971','name' => 'Stejaru'),\n \t array('id' => '35649','state_id' => '2971','name' => 'Storobaneasa'),\n \t array('id' => '35650','state_id' => '2971','name' => 'Suhaia'),\n \t array('id' => '35651','state_id' => '2971','name' => 'Talpa'),\n \t array('id' => '35652','state_id' => '2971','name' => 'Tatarastii de Jos'),\n \t array('id' => '35653','state_id' => '2971','name' => 'Tatarastii de Sus'),\n \t array('id' => '35654','state_id' => '2971','name' => 'Tiganesti'),\n \t array('id' => '35655','state_id' => '2971','name' => 'Traian'),\n \t array('id' => '35656','state_id' => '2971','name' => 'Trivalea-Mosteni'),\n \t array('id' => '35657','state_id' => '2971','name' => 'Troianul'),\n \t array('id' => '35658','state_id' => '2971','name' => 'Turnu Magurele'),\n \t array('id' => '35659','state_id' => '2971','name' => 'Vartoapele-de-Jos'),\n \t array('id' => '35660','state_id' => '2971','name' => 'Vedea'),\n \t array('id' => '35661','state_id' => '2971','name' => 'Videle'),\n \t array('id' => '35662','state_id' => '2971','name' => 'Viisoara'),\n \t array('id' => '35663','state_id' => '2971','name' => 'Vitanesti'),\n \t array('id' => '35664','state_id' => '2971','name' => 'Zambreasca'),\n \t array('id' => '35665','state_id' => '2971','name' => 'Zimnicea'),\n \t array('id' => '35666','state_id' => '2972','name' => 'Balint'),\n \t array('id' => '35667','state_id' => '2972','name' => 'Banloc'),\n \t array('id' => '35668','state_id' => '2972','name' => 'Bara'),\n \t array('id' => '35669','state_id' => '2972','name' => 'Barna'),\n \t array('id' => '35670','state_id' => '2972','name' => 'Beba Veche'),\n \t array('id' => '35671','state_id' => '2972','name' => 'Becicherecu Mic'),\n \t array('id' => '35672','state_id' => '2972','name' => 'Belint'),\n \t array('id' => '35673','state_id' => '2972','name' => 'Bethausen'),\n \t array('id' => '35674','state_id' => '2972','name' => 'Biled'),\n \t array('id' => '35675','state_id' => '2972','name' => 'Bogda'),\n \t array('id' => '35676','state_id' => '2972','name' => 'Boldur'),\n \t array('id' => '35677','state_id' => '2972','name' => 'Brestovat'),\n \t array('id' => '35678','state_id' => '2972','name' => 'Buzias'),\n \t array('id' => '35679','state_id' => '2972','name' => 'Carpinis'),\n \t array('id' => '35680','state_id' => '2972','name' => 'Cenad'),\n \t array('id' => '35681','state_id' => '2972','name' => 'Cenei'),\n \t array('id' => '35682','state_id' => '2972','name' => 'Cheveresu Mare'),\n \t array('id' => '35683','state_id' => '2972','name' => 'Ciacova'),\n \t array('id' => '35684','state_id' => '2972','name' => 'Comlosu Mare'),\n \t array('id' => '35685','state_id' => '2972','name' => 'Costeiu'),\n \t array('id' => '35686','state_id' => '2972','name' => 'Criciova'),\n \t array('id' => '35687','state_id' => '2972','name' => 'Curtea'),\n \t array('id' => '35688','state_id' => '2972','name' => 'Darova'),\n \t array('id' => '35689','state_id' => '2972','name' => 'Denta'),\n \t array('id' => '35690','state_id' => '2972','name' => 'Deta'),\n \t array('id' => '35691','state_id' => '2972','name' => 'Dudestii Vechi'),\n \t array('id' => '35692','state_id' => '2972','name' => 'Dumbrava'),\n \t array('id' => '35693','state_id' => '2972','name' => 'Dumbravita'),\n \t array('id' => '35694','state_id' => '2972','name' => 'Faget'),\n \t array('id' => '35695','state_id' => '2972','name' => 'Fardea'),\n \t array('id' => '35696','state_id' => '2972','name' => 'Foeni'),\n \t array('id' => '35697','state_id' => '2972','name' => 'Gataia'),\n \t array('id' => '35698','state_id' => '2972','name' => 'Gavojdia'),\n \t array('id' => '35699','state_id' => '2972','name' => 'Ghiroda'),\n \t array('id' => '35700','state_id' => '2972','name' => 'Ghizela'),\n \t array('id' => '35701','state_id' => '2972','name' => 'Giarmata'),\n \t array('id' => '35702','state_id' => '2972','name' => 'Giera'),\n \t array('id' => '35703','state_id' => '2972','name' => 'Giroc'),\n \t array('id' => '35704','state_id' => '2972','name' => 'Giulvaz'),\n \t array('id' => '35705','state_id' => '2972','name' => 'Jamu Mare'),\n \t array('id' => '35706','state_id' => '2972','name' => 'Jebel'),\n \t array('id' => '35707','state_id' => '2972','name' => 'Jimbolia'),\n \t array('id' => '35708','state_id' => '2972','name' => 'Lenauheim'),\n \t array('id' => '35709','state_id' => '2972','name' => 'Liebling'),\n \t array('id' => '35710','state_id' => '2972','name' => 'Lovrin'),\n \t array('id' => '35711','state_id' => '2972','name' => 'Lugoj'),\n \t array('id' => '35712','state_id' => '2972','name' => 'Manastiur'),\n \t array('id' => '35713','state_id' => '2972','name' => 'Margina'),\n \t array('id' => '35714','state_id' => '2972','name' => 'Masloc'),\n \t array('id' => '35715','state_id' => '2972','name' => 'Moravita'),\n \t array('id' => '35716','state_id' => '2972','name' => 'Mosnita Noua'),\n \t array('id' => '35717','state_id' => '2972','name' => 'Nadrag'),\n \t array('id' => '35718','state_id' => '2972','name' => 'Nitchidorf'),\n \t array('id' => '35719','state_id' => '2972','name' => 'Ohaba Lunga'),\n \t array('id' => '35720','state_id' => '2972','name' => 'Ortisoara'),\n \t array('id' => '35721','state_id' => '2972','name' => 'Peciu Nou'),\n \t array('id' => '35722','state_id' => '2972','name' => 'Periam'),\n \t array('id' => '35723','state_id' => '2972','name' => 'Pietroasa'),\n \t array('id' => '35724','state_id' => '2972','name' => 'Pischia'),\n \t array('id' => '35725','state_id' => '2972','name' => 'Racovita'),\n \t array('id' => '35726','state_id' => '2972','name' => 'Recas'),\n \t array('id' => '35727','state_id' => '2972','name' => 'Remetea Mare'),\n \t array('id' => '35728','state_id' => '2972','name' => 'Sacalaz'),\n \t array('id' => '35729','state_id' => '2972','name' => 'Sacosu Turcesc'),\n \t array('id' => '35730','state_id' => '2972','name' => 'Sag'),\n \t array('id' => '35731','state_id' => '2972','name' => 'Sanandrei'),\n \t array('id' => '35732','state_id' => '2972','name' => 'Sanmihaiu Roman'),\n \t array('id' => '35733','state_id' => '2972','name' => 'Sannicolaul Mare'),\n \t array('id' => '35734','state_id' => '2972','name' => 'Sanpetrul-Mare'),\n \t array('id' => '35735','state_id' => '2972','name' => 'Satchinez'),\n \t array('id' => '35736','state_id' => '2972','name' => 'Secas'),\n \t array('id' => '35737','state_id' => '2972','name' => 'Stiuca'),\n \t array('id' => '35738','state_id' => '2972','name' => 'Teremia Mare'),\n \t array('id' => '35739','state_id' => '2972','name' => 'Timisoara'),\n \t array('id' => '35740','state_id' => '2972','name' => 'Tomesti'),\n \t array('id' => '35741','state_id' => '2972','name' => 'Topolovatu Mare'),\n \t array('id' => '35742','state_id' => '2972','name' => 'Tormac'),\n \t array('id' => '35743','state_id' => '2972','name' => 'Traian Vuia'),\n \t array('id' => '35744','state_id' => '2972','name' => 'Uivar'),\n \t array('id' => '35745','state_id' => '2972','name' => 'Varias'),\n \t array('id' => '35746','state_id' => '2972','name' => 'Victor Vlad Delamarina'),\n \t array('id' => '35747','state_id' => '2972','name' => 'Voiteg'),\n \t array('id' => '35748','state_id' => '2973','name' => 'Babadag'),\n \t array('id' => '35749','state_id' => '2973','name' => 'Baia'),\n \t array('id' => '35750','state_id' => '2973','name' => 'Beidaud'),\n \t array('id' => '35751','state_id' => '2973','name' => 'Carcaliu'),\n \t array('id' => '35752','state_id' => '2973','name' => 'Casimcea'),\n \t array('id' => '35753','state_id' => '2973','name' => 'Ceamurlia de Jos'),\n \t array('id' => '35754','state_id' => '2973','name' => 'Ceatalchioi'),\n \t array('id' => '35755','state_id' => '2973','name' => 'Cerna'),\n \t array('id' => '35756','state_id' => '2973','name' => 'Chilia Veche'),\n \t array('id' => '35757','state_id' => '2973','name' => 'Ciucurova'),\n \t array('id' => '35758','state_id' => '2973','name' => 'Constantin Rosetti'),\n \t array('id' => '35759','state_id' => '2973','name' => 'Crisan'),\n \t array('id' => '35760','state_id' => '2973','name' => 'Daeni'),\n \t array('id' => '35761','state_id' => '2973','name' => 'Dorobantu'),\n \t array('id' => '35762','state_id' => '2973','name' => 'Frecatei'),\n \t array('id' => '35763','state_id' => '2973','name' => 'Greci'),\n \t array('id' => '35764','state_id' => '2973','name' => 'Grindu'),\n \t array('id' => '35765','state_id' => '2973','name' => 'Hamcearca'),\n \t array('id' => '35766','state_id' => '2973','name' => 'Horia'),\n \t array('id' => '35767','state_id' => '2973','name' => 'Ion Bratianu'),\n \t array('id' => '35768','state_id' => '2973','name' => 'Isaccea'),\n \t array('id' => '35769','state_id' => '2973','name' => 'Izvoarele'),\n \t array('id' => '35770','state_id' => '2973','name' => 'Jijila'),\n \t array('id' => '35771','state_id' => '2973','name' => 'Jurilovca'),\n \t array('id' => '35772','state_id' => '2973','name' => 'Luncavita'),\n \t array('id' => '35773','state_id' => '2973','name' => 'Macin'),\n \t array('id' => '35774','state_id' => '2973','name' => 'Mahmudia'),\n \t array('id' => '35775','state_id' => '2973','name' => 'Malnas'),\n \t array('id' => '35776','state_id' => '2973','name' => 'Mihai Bravu'),\n \t array('id' => '35777','state_id' => '2973','name' => 'Mihail Kogalniceanu'),\n \t array('id' => '35778','state_id' => '2973','name' => 'Murighiol'),\n \t array('id' => '35779','state_id' => '2973','name' => 'Nalbant'),\n \t array('id' => '35780','state_id' => '2973','name' => 'Niculitel'),\n \t array('id' => '35781','state_id' => '2973','name' => 'Nufaru'),\n \t array('id' => '35782','state_id' => '2973','name' => 'Ostrov'),\n \t array('id' => '35783','state_id' => '2973','name' => 'Pardina'),\n \t array('id' => '35784','state_id' => '2973','name' => 'Peceneaga'),\n \t array('id' => '35785','state_id' => '2973','name' => 'Sarichioi'),\n \t array('id' => '35786','state_id' => '2973','name' => 'Sfantu Gheorghe'),\n \t array('id' => '35787','state_id' => '2973','name' => 'Slava Cercheza'),\n \t array('id' => '35788','state_id' => '2973','name' => 'Smardan'),\n \t array('id' => '35789','state_id' => '2973','name' => 'Somova'),\n \t array('id' => '35790','state_id' => '2973','name' => 'Stejaru'),\n \t array('id' => '35791','state_id' => '2973','name' => 'Sulina'),\n \t array('id' => '35792','state_id' => '2973','name' => 'Topolog'),\n \t array('id' => '35793','state_id' => '2973','name' => 'Tulcea'),\n \t array('id' => '35794','state_id' => '2973','name' => 'Turcoaia'),\n \t array('id' => '35795','state_id' => '2973','name' => 'Valea Nucarilor'),\n \t array('id' => '35796','state_id' => '2974','name' => 'Alunu'),\n \t array('id' => '35797','state_id' => '2974','name' => 'Amarasti'),\n \t array('id' => '35798','state_id' => '2974','name' => 'Babeni'),\n \t array('id' => '35799','state_id' => '2974','name' => 'Baile Govora'),\n \t array('id' => '35800','state_id' => '2974','name' => 'Baile Olanesti'),\n \t array('id' => '35801','state_id' => '2974','name' => 'Balcesti'),\n \t array('id' => '35802','state_id' => '2974','name' => 'Barbatesti'),\n \t array('id' => '35803','state_id' => '2974','name' => 'Berbesti'),\n \t array('id' => '35804','state_id' => '2974','name' => 'Berislavesti'),\n \t array('id' => '35805','state_id' => '2974','name' => 'Boisoara'),\n \t array('id' => '35806','state_id' => '2974','name' => 'Brezoi'),\n \t array('id' => '35807','state_id' => '2974','name' => 'Budesti'),\n \t array('id' => '35808','state_id' => '2974','name' => 'Bujoreni'),\n \t array('id' => '35809','state_id' => '2974','name' => 'Bunesti'),\n \t array('id' => '35810','state_id' => '2974','name' => 'Caineni'),\n \t array('id' => '35811','state_id' => '2974','name' => 'Calimanesti'),\n \t array('id' => '35812','state_id' => '2974','name' => 'Cernisoara'),\n \t array('id' => '35813','state_id' => '2974','name' => 'Copaceni'),\n \t array('id' => '35814','state_id' => '2974','name' => 'Costesti'),\n \t array('id' => '35815','state_id' => '2974','name' => 'Creteni'),\n \t array('id' => '35816','state_id' => '2974','name' => 'Daesti'),\n \t array('id' => '35817','state_id' => '2974','name' => 'Danicei'),\n \t array('id' => '35818','state_id' => '2974','name' => 'Dragasani'),\n \t array('id' => '35819','state_id' => '2974','name' => 'Dragoesti'),\n \t array('id' => '35820','state_id' => '2974','name' => 'Fartatesti'),\n \t array('id' => '35821','state_id' => '2974','name' => 'Fauresti'),\n \t array('id' => '35822','state_id' => '2974','name' => 'Francesti'),\n \t array('id' => '35823','state_id' => '2974','name' => 'Galicea'),\n \t array('id' => '35824','state_id' => '2974','name' => 'Ghioroiu'),\n \t array('id' => '35825','state_id' => '2974','name' => 'Glavile'),\n \t array('id' => '35826','state_id' => '2974','name' => 'Golesti'),\n \t array('id' => '35827','state_id' => '2974','name' => 'Gradistea'),\n \t array('id' => '35828','state_id' => '2974','name' => 'Gusoeni'),\n \t array('id' => '35829','state_id' => '2974','name' => 'Horezu'),\n \t array('id' => '35830','state_id' => '2974','name' => 'Ionesti'),\n \t array('id' => '35831','state_id' => '2974','name' => 'Ladesti'),\n \t array('id' => '35832','state_id' => '2974','name' => 'Lalosu'),\n \t array('id' => '35833','state_id' => '2974','name' => 'Lapusata'),\n \t array('id' => '35834','state_id' => '2974','name' => 'Livezi'),\n \t array('id' => '35835','state_id' => '2974','name' => 'Lungesti'),\n \t array('id' => '35836','state_id' => '2974','name' => 'Maciuca'),\n \t array('id' => '35837','state_id' => '2974','name' => 'Madulari'),\n \t array('id' => '35838','state_id' => '2974','name' => 'Malaia'),\n \t array('id' => '35839','state_id' => '2974','name' => 'Maldaresti'),\n \t array('id' => '35840','state_id' => '2974','name' => 'Mateesti'),\n \t array('id' => '35841','state_id' => '2974','name' => 'Mihaesti'),\n \t array('id' => '35842','state_id' => '2974','name' => 'Milcoiu'),\n \t array('id' => '35843','state_id' => '2974','name' => 'Muereasca'),\n \t array('id' => '35844','state_id' => '2974','name' => 'Nicolae Balcescu'),\n \t array('id' => '35845','state_id' => '2974','name' => 'Ocnele Mari'),\n \t array('id' => '35846','state_id' => '2974','name' => 'Olanu'),\n \t array('id' => '35847','state_id' => '2974','name' => 'Orlesti'),\n \t array('id' => '35848','state_id' => '2974','name' => 'Otesani'),\n \t array('id' => '35849','state_id' => '2974','name' => 'Pausesti'),\n \t array('id' => '35850','state_id' => '2974','name' => 'Pausesti-Maglasi'),\n \t array('id' => '35851','state_id' => '2974','name' => 'Perisani'),\n \t array('id' => '35852','state_id' => '2974','name' => 'Pesceana'),\n \t array('id' => '35853','state_id' => '2974','name' => 'Pietrari'),\n \t array('id' => '35854','state_id' => '2974','name' => 'Popesti'),\n \t array('id' => '35855','state_id' => '2974','name' => 'Prundeni'),\n \t array('id' => '35856','state_id' => '2974','name' => 'Racovita'),\n \t array('id' => '35857','state_id' => '2974','name' => 'Ramnicu Valcea'),\n \t array('id' => '35858','state_id' => '2974','name' => 'Roesti'),\n \t array('id' => '35859','state_id' => '2974','name' => 'Rosiile'),\n \t array('id' => '35860','state_id' => '2974','name' => 'Runcu'),\n \t array('id' => '35861','state_id' => '2974','name' => 'Salatrucel'),\n \t array('id' => '35862','state_id' => '2974','name' => 'Scundu'),\n \t array('id' => '35863','state_id' => '2974','name' => 'Sinesti'),\n \t array('id' => '35864','state_id' => '2974','name' => 'Sirineasa'),\n \t array('id' => '35865','state_id' => '2974','name' => 'Slatioara'),\n \t array('id' => '35866','state_id' => '2974','name' => 'Stanesti'),\n \t array('id' => '35867','state_id' => '2974','name' => 'Stefanesti'),\n \t array('id' => '35868','state_id' => '2974','name' => 'Stoenesti'),\n \t array('id' => '35869','state_id' => '2974','name' => 'Stoilesti'),\n \t array('id' => '35870','state_id' => '2974','name' => 'Stroesti'),\n \t array('id' => '35871','state_id' => '2974','name' => 'Susani'),\n \t array('id' => '35872','state_id' => '2974','name' => 'Sutesti'),\n \t array('id' => '35873','state_id' => '2974','name' => 'Tetoiu'),\n \t array('id' => '35874','state_id' => '2974','name' => 'Tomsani'),\n \t array('id' => '35875','state_id' => '2974','name' => 'Vaideeni'),\n \t array('id' => '35876','state_id' => '2974','name' => 'Valea Mare'),\n \t array('id' => '35877','state_id' => '2974','name' => 'Vladesti'),\n \t array('id' => '35878','state_id' => '2974','name' => 'Voicesti'),\n \t array('id' => '35879','state_id' => '2974','name' => 'Voineasa'),\n \t array('id' => '35880','state_id' => '2974','name' => 'Zatreni'),\n \t array('id' => '35881','state_id' => '2975','name' => 'Albesti'),\n \t array('id' => '35882','state_id' => '2975','name' => 'Alexandru Vlahuta'),\n \t array('id' => '35883','state_id' => '2975','name' => 'Arsura'),\n \t array('id' => '35884','state_id' => '2975','name' => 'Bacani'),\n \t array('id' => '35885','state_id' => '2975','name' => 'Bacesti'),\n \t array('id' => '35886','state_id' => '2975','name' => 'Balteni'),\n \t array('id' => '35887','state_id' => '2975','name' => 'Banca'),\n \t array('id' => '35888','state_id' => '2975','name' => 'Barlad'),\n \t array('id' => '35889','state_id' => '2975','name' => 'Berezeni'),\n \t array('id' => '35890','state_id' => '2975','name' => 'Blagesti'),\n \t array('id' => '35891','state_id' => '2975','name' => 'Bogdana'),\n \t array('id' => '35892','state_id' => '2975','name' => 'Bogdanesti'),\n \t array('id' => '35893','state_id' => '2975','name' => 'Bogdanita'),\n \t array('id' => '35894','state_id' => '2975','name' => 'Botesti'),\n \t array('id' => '35895','state_id' => '2975','name' => 'Bunesti'),\n \t array('id' => '35896','state_id' => '2975','name' => 'Codaesti'),\n \t array('id' => '35897','state_id' => '2975','name' => 'Coroiesti'),\n \t array('id' => '35898','state_id' => '2975','name' => 'Costesti'),\n \t array('id' => '35899','state_id' => '2975','name' => 'Cretesti'),\n \t array('id' => '35900','state_id' => '2975','name' => 'Danesti'),\n \t array('id' => '35901','state_id' => '2975','name' => 'Deleni'),\n \t array('id' => '35902','state_id' => '2975','name' => 'Delesti'),\n \t array('id' => '35903','state_id' => '2975','name' => 'Dimitrie Cantemir'),\n \t array('id' => '35904','state_id' => '2975','name' => 'Dragomiresti'),\n \t array('id' => '35905','state_id' => '2975','name' => 'Dranceni Sat'),\n \t array('id' => '35906','state_id' => '2975','name' => 'Duda'),\n \t array('id' => '35907','state_id' => '2975','name' => 'Dumesti'),\n \t array('id' => '35908','state_id' => '2975','name' => 'Epureni'),\n \t array('id' => '35909','state_id' => '2975','name' => 'Falciu'),\n \t array('id' => '35910','state_id' => '2975','name' => 'Gagesti'),\n \t array('id' => '35911','state_id' => '2975','name' => 'Garceni'),\n \t array('id' => '35912','state_id' => '2975','name' => 'Gherghesti'),\n \t array('id' => '35913','state_id' => '2975','name' => 'Grivita'),\n \t array('id' => '35914','state_id' => '2975','name' => 'Hoceni'),\n \t array('id' => '35915','state_id' => '2975','name' => 'Husi'),\n \t array('id' => '35916','state_id' => '2975','name' => 'Iana'),\n \t array('id' => '35917','state_id' => '2975','name' => 'Ivanesti'),\n \t array('id' => '35918','state_id' => '2975','name' => 'Ivesti'),\n \t array('id' => '35919','state_id' => '2975','name' => 'Laza'),\n \t array('id' => '35920','state_id' => '2975','name' => 'Lipovat'),\n \t array('id' => '35921','state_id' => '2975','name' => 'Lunca Banului'),\n \t array('id' => '35922','state_id' => '2975','name' => 'Malusteni'),\n \t array('id' => '35923','state_id' => '2975','name' => 'Miclesti'),\n \t array('id' => '35924','state_id' => '2975','name' => 'Muntenii de Jos'),\n \t array('id' => '35925','state_id' => '2975','name' => 'Murgeni'),\n \t array('id' => '35926','state_id' => '2975','name' => 'Negresti'),\n \t array('id' => '35927','state_id' => '2975','name' => 'Oltenesti'),\n \t array('id' => '35928','state_id' => '2975','name' => 'Osesti'),\n \t array('id' => '35929','state_id' => '2975','name' => 'Padureni'),\n \t array('id' => '35930','state_id' => '2975','name' => 'Perieni'),\n \t array('id' => '35931','state_id' => '2975','name' => 'Pogana'),\n \t array('id' => '35932','state_id' => '2975','name' => 'Poienesti'),\n \t array('id' => '35933','state_id' => '2975','name' => 'Puiesti'),\n \t array('id' => '35934','state_id' => '2975','name' => 'Pungesti'),\n \t array('id' => '35935','state_id' => '2975','name' => 'Rebricea'),\n \t array('id' => '35936','state_id' => '2975','name' => 'Rosiesti'),\n \t array('id' => '35937','state_id' => '2975','name' => 'Solesti'),\n \t array('id' => '35938','state_id' => '2975','name' => 'Stanilesti'),\n \t array('id' => '35939','state_id' => '2975','name' => 'Stefan cel Mare'),\n \t array('id' => '35940','state_id' => '2975','name' => 'Suletea'),\n \t array('id' => '35941','state_id' => '2975','name' => 'Tacuta'),\n \t array('id' => '35942','state_id' => '2975','name' => 'Tanacu'),\n \t array('id' => '35943','state_id' => '2975','name' => 'Tatarani'),\n \t array('id' => '35944','state_id' => '2975','name' => 'Todiresti'),\n \t array('id' => '35945','state_id' => '2975','name' => 'Tutova'),\n \t array('id' => '35946','state_id' => '2975','name' => 'Valeni'),\n \t array('id' => '35947','state_id' => '2975','name' => 'Vaslui'),\n \t array('id' => '35948','state_id' => '2975','name' => 'Vetrisoaia'),\n \t array('id' => '35949','state_id' => '2975','name' => 'Viisoara'),\n \t array('id' => '35950','state_id' => '2975','name' => 'Vinderei'),\n \t array('id' => '35951','state_id' => '2975','name' => 'Voinesti'),\n \t array('id' => '35952','state_id' => '2975','name' => 'Vulturesti'),\n \t array('id' => '35953','state_id' => '2975','name' => 'Vutcani'),\n \t array('id' => '35954','state_id' => '2975','name' => 'Zapodeni'),\n \t array('id' => '35955','state_id' => '2975','name' => 'Zorleni'),\n \t array('id' => '35956','state_id' => '2976','name' => 'Adjud'),\n \t array('id' => '35957','state_id' => '2976','name' => 'Andreiasu de Jos'),\n \t array('id' => '35958','state_id' => '2976','name' => 'Balesti'),\n \t array('id' => '35959','state_id' => '2976','name' => 'Barsesti'),\n \t array('id' => '35960','state_id' => '2976','name' => 'Boghesti'),\n \t array('id' => '35961','state_id' => '2976','name' => 'Bolotesti'),\n \t array('id' => '35962','state_id' => '2976','name' => 'Bordesti'),\n \t array('id' => '35963','state_id' => '2976','name' => 'Brosteni'),\n \t array('id' => '35964','state_id' => '2976','name' => 'Campineanca'),\n \t array('id' => '35965','state_id' => '2976','name' => 'Campuri'),\n \t array('id' => '35966','state_id' => '2976','name' => 'Carligele'),\n \t array('id' => '35967','state_id' => '2976','name' => 'Chiojdeni'),\n \t array('id' => '35968','state_id' => '2976','name' => 'Ciorasti'),\n \t array('id' => '35969','state_id' => '2976','name' => 'Corbita'),\n \t array('id' => '35970','state_id' => '2976','name' => 'Cotesti'),\n \t array('id' => '35971','state_id' => '2976','name' => 'Dumbraveni'),\n \t array('id' => '35972','state_id' => '2976','name' => 'Dumitresti'),\n \t array('id' => '35973','state_id' => '2976','name' => 'Fitionesti'),\n \t array('id' => '35974','state_id' => '2976','name' => 'Focsani'),\n \t array('id' => '35975','state_id' => '2976','name' => 'Garoafa'),\n \t array('id' => '35976','state_id' => '2976','name' => 'Golesti'),\n \t array('id' => '35977','state_id' => '2976','name' => 'Gugesti'),\n \t array('id' => '35978','state_id' => '2976','name' => 'Gura Calitei'),\n \t array('id' => '35979','state_id' => '2976','name' => 'Homocea'),\n \t array('id' => '35980','state_id' => '2976','name' => 'Jaristea'),\n \t array('id' => '35981','state_id' => '2976','name' => 'Jitia'),\n \t array('id' => '35982','state_id' => '2976','name' => 'Maicanesti'),\n \t array('id' => '35983','state_id' => '2976','name' => 'Marasesti'),\n \t array('id' => '35984','state_id' => '2976','name' => 'Mera'),\n \t array('id' => '35985','state_id' => '2976','name' => 'Milcovul'),\n \t array('id' => '35986','state_id' => '2976','name' => 'Movilita'),\n \t array('id' => '35987','state_id' => '2976','name' => 'Nanesti'),\n \t array('id' => '35988','state_id' => '2976','name' => 'Naruja'),\n \t array('id' => '35989','state_id' => '2976','name' => 'Nereju'),\n \t array('id' => '35990','state_id' => '2976','name' => 'Nistoresti'),\n \t array('id' => '35991','state_id' => '2976','name' => 'Odobesti'),\n \t array('id' => '35992','state_id' => '2976','name' => 'Paltin'),\n \t array('id' => '35993','state_id' => '2976','name' => 'Panciu'),\n \t array('id' => '35994','state_id' => '2976','name' => 'Paunesti'),\n \t array('id' => '35995','state_id' => '2976','name' => 'Poiana Cristei'),\n \t array('id' => '35996','state_id' => '2976','name' => 'Pufesti'),\n \t array('id' => '35997','state_id' => '2976','name' => 'Racoasa'),\n \t array('id' => '35998','state_id' => '2976','name' => 'Reghiu'),\n \t array('id' => '35999','state_id' => '2976','name' => 'Ruginesti'),\n \t array('id' => '36000','state_id' => '2976','name' => 'Sihlea'),\n \t array('id' => '36001','state_id' => '2976','name' => 'Slobozia Bradului'),\n \t array('id' => '36002','state_id' => '2976','name' => 'Slobozia-Ciorasti'),\n \t array('id' => '36003','state_id' => '2976','name' => 'Soveja'),\n \t array('id' => '36004','state_id' => '2976','name' => 'Straoane'),\n \t array('id' => '36005','state_id' => '2976','name' => 'Suraia'),\n \t array('id' => '36006','state_id' => '2976','name' => 'Tamboesti'),\n \t array('id' => '36007','state_id' => '2976','name' => 'Tanasoaia'),\n \t array('id' => '36008','state_id' => '2976','name' => 'Tataranu'),\n \t array('id' => '36009','state_id' => '2976','name' => 'Tifesti'),\n \t array('id' => '36010','state_id' => '2976','name' => 'Tulnici'),\n \t array('id' => '36011','state_id' => '2976','name' => 'Urechesti'),\n \t array('id' => '36012','state_id' => '2976','name' => 'Valea Sarii'),\n \t array('id' => '36013','state_id' => '2976','name' => 'Vanatori'),\n \t array('id' => '36014','state_id' => '2976','name' => 'Vartescoiu'),\n \t array('id' => '36015','state_id' => '2976','name' => 'Vidra'),\n \t array('id' => '36016','state_id' => '2976','name' => 'Vintileasca'),\n \t array('id' => '36017','state_id' => '2976','name' => 'Vizantea'),\n \t array('id' => '36018','state_id' => '2976','name' => 'Vrancioaia'),\n \t array('id' => '36019','state_id' => '2976','name' => 'Vulturu'),\n \t array('id' => '36020','state_id' => '2977','name' => 'Adygejsk'),\n \t array('id' => '36021','state_id' => '2977','name' => 'Enem'),\n \t array('id' => '36022','state_id' => '2977','name' => 'Jablonovskij'),\n \t array('id' => '36023','state_id' => '2977','name' => 'Kamennomostskij'),\n \t array('id' => '36024','state_id' => '2977','name' => 'Majkop'),\n \t array('id' => '36025','state_id' => '2977','name' => 'Tulskij'),\n \t array('id' => '36026','state_id' => '2978','name' => 'Aginskoje'),\n \t array('id' => '36027','state_id' => '2979','name' => 'Alagir'),\n \t array('id' => '36028','state_id' => '2979','name' => 'Ardon'),\n \t array('id' => '36029','state_id' => '2979','name' => 'Beslan'),\n \t array('id' => '36030','state_id' => '2979','name' => 'Digora'),\n \t array('id' => '36031','state_id' => '2979','name' => 'Mozdok'),\n \t array('id' => '36032','state_id' => '2979','name' => 'Vladikavkaz'),\n \t array('id' => '36033','state_id' => '2979','name' => 'Zavodskoj'),\n \t array('id' => '36034','state_id' => '2980','name' => 'Alejsk'),\n \t array('id' => '36035','state_id' => '2980','name' => 'Barnaul'),\n \t array('id' => '36036','state_id' => '2980','name' => 'Belojarsk'),\n \t array('id' => '36037','state_id' => '2980','name' => 'Belokuriha'),\n \t array('id' => '36038','state_id' => '2980','name' => 'Bijsk'),\n \t array('id' => '36039','state_id' => '2980','name' => 'Blagoveshchenka'),\n \t array('id' => '36040','state_id' => '2980','name' => 'Gornjak'),\n \t array('id' => '36041','state_id' => '2980','name' => 'Jarovoe'),\n \t array('id' => '36042','state_id' => '2980','name' => 'Juzhnyj'),\n \t array('id' => '36043','state_id' => '2980','name' => 'Kamen-na-Obi'),\n \t array('id' => '36044','state_id' => '2980','name' => 'Novoaltajsk'),\n \t array('id' => '36045','state_id' => '2980','name' => 'Novosilikatnyj'),\n \t array('id' => '36046','state_id' => '2980','name' => 'Rubcovsk'),\n \t array('id' => '36047','state_id' => '2980','name' => 'Sibirskiy'),\n \t array('id' => '36048','state_id' => '2980','name' => 'Slavgorod'),\n \t array('id' => '36049','state_id' => '2980','name' => 'Talmenka'),\n \t array('id' => '36050','state_id' => '2980','name' => 'Zarinsk'),\n \t array('id' => '36051','state_id' => '2980','name' => 'Zmeinogorsk'),\n \t array('id' => '36052','state_id' => '2981','name' => 'Arhara'),\n \t array('id' => '36053','state_id' => '2981','name' => 'Belogorsk'),\n \t array('id' => '36054','state_id' => '2981','name' => 'Blagoveshchensk'),\n \t array('id' => '36055','state_id' => '2981','name' => 'Jerofej Pavlovich'),\n \t array('id' => '36056','state_id' => '2981','name' => 'Magdagachi'),\n \t array('id' => '36057','state_id' => '2981','name' => 'Novoburejskij'),\n \t array('id' => '36058','state_id' => '2981','name' => 'Progress'),\n \t array('id' => '36059','state_id' => '2981','name' => 'Rajchihinsk'),\n \t array('id' => '36060','state_id' => '2981','name' => 'Seryshevo'),\n \t array('id' => '36061','state_id' => '2981','name' => 'Shimanovsk'),\n \t array('id' => '36062','state_id' => '2981','name' => 'Skovorodino'),\n \t array('id' => '36063','state_id' => '2981','name' => 'Svobodnyj'),\n \t array('id' => '36064','state_id' => '2981','name' => 'Tynda'),\n \t array('id' => '36065','state_id' => '2981','name' => 'Urusha'),\n \t array('id' => '36066','state_id' => '2981','name' => 'Zavitinsk'),\n \t array('id' => '36067','state_id' => '2981','name' => 'Zeja'),\n \t array('id' => '36068','state_id' => '2982','name' => 'Arhangelsk'),\n \t array('id' => '36069','state_id' => '2982','name' => 'Jemca'),\n \t array('id' => '36070','state_id' => '2982','name' => 'Jercevo'),\n \t array('id' => '36071','state_id' => '2982','name' => 'Kargopol'),\n \t array('id' => '36072','state_id' => '2982','name' => 'Konosha'),\n \t array('id' => '36073','state_id' => '2982','name' => 'Korjazhma'),\n \t array('id' => '36074','state_id' => '2982','name' => 'Kotlas'),\n \t array('id' => '36075','state_id' => '2982','name' => 'Kuloj'),\n \t array('id' => '36076','state_id' => '2982','name' => 'Maloshujka'),\n \t array('id' => '36077','state_id' => '2982','name' => 'Mirnyj'),\n \t array('id' => '36078','state_id' => '2982','name' => 'Njandoma'),\n \t array('id' => '36079','state_id' => '2982','name' => 'Novodvinsk'),\n \t array('id' => '36080','state_id' => '2982','name' => 'Obozjorskij'),\n \t array('id' => '36081','state_id' => '2982','name' => 'Oktjabrskij'),\n \t array('id' => '36082','state_id' => '2982','name' => 'Onega'),\n \t array('id' => '36083','state_id' => '2982','name' => 'Plesetsk'),\n \t array('id' => '36084','state_id' => '2982','name' => 'Podjuga'),\n \t array('id' => '36085','state_id' => '2982','name' => 'Puksoozero'),\n \t array('id' => '36086','state_id' => '2982','name' => 'Samoded'),\n \t array('id' => '36087','state_id' => '2982','name' => 'Savinskij'),\n \t array('id' => '36088','state_id' => '2982','name' => 'Severodvinsk'),\n \t array('id' => '36089','state_id' => '2982','name' => 'Shenkursk'),\n \t array('id' => '36090','state_id' => '2982','name' => 'Udimskij'),\n \t array('id' => '36091','state_id' => '2982','name' => 'Urdoma'),\n \t array('id' => '36092','state_id' => '2982','name' => 'Velsk'),\n \t array('id' => '36093','state_id' => '2982','name' => 'Vychegodskij'),\n \t array('id' => '36094','state_id' => '2983','name' => 'Ahtubinsk'),\n \t array('id' => '36095','state_id' => '2983','name' => 'Astrahan'),\n \t array('id' => '36096','state_id' => '2983','name' => 'Harabali'),\n \t array('id' => '36097','state_id' => '2983','name' => 'Kamyzjak'),\n \t array('id' => '36098','state_id' => '2983','name' => 'Kapustin Jar'),\n \t array('id' => '36099','state_id' => '2983','name' => 'Liman'),\n \t array('id' => '36100','state_id' => '2983','name' => 'Narimanov'),\n \t array('id' => '36101','state_id' => '2983','name' => 'Verhnij Baskunchak'),\n \t array('id' => '36102','state_id' => '2983','name' => 'Volodarskij'),\n \t array('id' => '36103','state_id' => '2983','name' => 'Znamensk'),\n \t array('id' => '36104','state_id' => '2984','name' => 'Agidel'),\n \t array('id' => '36105','state_id' => '2984','name' => 'Bajmak'),\n \t array('id' => '36106','state_id' => '2984','name' => 'Belebej'),\n \t array('id' => '36107','state_id' => '2984','name' => 'Beloreck'),\n \t array('id' => '36108','state_id' => '2984','name' => 'Birsk'),\n \t array('id' => '36109','state_id' => '2984','name' => 'Blagoveshchensk'),\n \t array('id' => '36110','state_id' => '2984','name' => 'Chishmy'),\n \t array('id' => '36111','state_id' => '2984','name' => 'Davlekanovo'),\n \t array('id' => '36112','state_id' => '2984','name' => 'Djurtjuli'),\n \t array('id' => '36113','state_id' => '2984','name' => 'Iglino'),\n \t array('id' => '36114','state_id' => '2984','name' => 'Ishimbaj'),\n \t array('id' => '36115','state_id' => '2984','name' => 'Janaul'),\n \t array('id' => '36116','state_id' => '2984','name' => 'Jermolajevo'),\n \t array('id' => '36117','state_id' => '2984','name' => 'Kandry'),\n \t array('id' => '36118','state_id' => '2984','name' => 'Krasnousolskij'),\n \t array('id' => '36119','state_id' => '2984','name' => 'Kumertau'),\n \t array('id' => '36120','state_id' => '2984','name' => 'Meleuz'),\n \t array('id' => '36121','state_id' => '2984','name' => 'Mezhgorje'),\n \t array('id' => '36122','state_id' => '2984','name' => 'Neftekamsk'),\n \t array('id' => '36123','state_id' => '2984','name' => 'Oktjabrskij'),\n \t array('id' => '36124','state_id' => '2984','name' => 'Oktyabrsky'),\n \t array('id' => '36125','state_id' => '2984','name' => 'Prijutovo'),\n \t array('id' => '36126','state_id' => '2984','name' => 'Rajevskij'),\n \t array('id' => '36127','state_id' => '2984','name' => 'Salavat'),\n \t array('id' => '36128','state_id' => '2984','name' => 'Serafimovskij'),\n \t array('id' => '36129','state_id' => '2984','name' => 'Sibaj'),\n \t array('id' => '36130','state_id' => '2984','name' => 'Sterlitamak'),\n \t array('id' => '36131','state_id' => '2984','name' => 'Tujmazy'),\n \t array('id' => '36132','state_id' => '2984','name' => 'Uchaly'),\n \t array('id' => '36133','state_id' => '2984','name' => 'Ufa'),\n \t array('id' => '36134','state_id' => '2985','name' => 'Aleksejevka'),\n \t array('id' => '36135','state_id' => '2985','name' => 'Belgorod'),\n \t array('id' => '36136','state_id' => '2985','name' => 'Borisovka'),\n \t array('id' => '36137','state_id' => '2985','name' => 'Chernjanka'),\n \t array('id' => '36138','state_id' => '2985','name' => 'Grajvoron'),\n \t array('id' => '36139','state_id' => '2985','name' => 'Gubkin'),\n \t array('id' => '36140','state_id' => '2985','name' => 'Novyj Oskol'),\n \t array('id' => '36141','state_id' => '2985','name' => 'Rakitnoe'),\n \t array('id' => '36142','state_id' => '2985','name' => 'Razumnoe'),\n \t array('id' => '36143','state_id' => '2985','name' => 'Shebekino'),\n \t array('id' => '36144','state_id' => '2985','name' => 'Staryj Oskol'),\n \t array('id' => '36145','state_id' => '2985','name' => 'Stroitel'),\n \t array('id' => '36146','state_id' => '2985','name' => 'Tomarovka'),\n \t array('id' => '36147','state_id' => '2985','name' => 'Valujki'),\n \t array('id' => '36148','state_id' => '2985','name' => 'Volokonovka'),\n \t array('id' => '36149','state_id' => '2986','name' => 'Belye Berega'),\n \t array('id' => '36150','state_id' => '2986','name' => 'Brjansk'),\n \t array('id' => '36151','state_id' => '2986','name' => 'Djatkovo'),\n \t array('id' => '36152','state_id' => '2986','name' => 'Fokino'),\n \t array('id' => '36153','state_id' => '2986','name' => 'Karachev'),\n \t array('id' => '36154','state_id' => '2986','name' => 'Kletnja'),\n \t array('id' => '36155','state_id' => '2986','name' => 'Klimovo'),\n \t array('id' => '36156','state_id' => '2986','name' => 'Klincy'),\n \t array('id' => '36157','state_id' => '2986','name' => 'Lokot'),\n \t array('id' => '36158','state_id' => '2986','name' => 'Navlja'),\n \t array('id' => '36159','state_id' => '2986','name' => 'Novozybkov'),\n \t array('id' => '36160','state_id' => '2986','name' => 'Pochjop'),\n \t array('id' => '36161','state_id' => '2986','name' => 'Pogar'),\n \t array('id' => '36162','state_id' => '2986','name' => 'Selco'),\n \t array('id' => '36163','state_id' => '2986','name' => 'Starodub'),\n \t array('id' => '36164','state_id' => '2986','name' => 'Surazh'),\n \t array('id' => '36165','state_id' => '2986','name' => 'Suzjomka'),\n \t array('id' => '36166','state_id' => '2986','name' => 'Trubchjovsk'),\n \t array('id' => '36167','state_id' => '2986','name' => 'Unecha'),\n \t array('id' => '36168','state_id' => '2986','name' => 'Zhukovka'),\n \t array('id' => '36169','state_id' => '2987','name' => 'Gusinoozjorsk'),\n \t array('id' => '36170','state_id' => '2987','name' => 'Kamensk'),\n \t array('id' => '36171','state_id' => '2987','name' => 'Kjahta'),\n \t array('id' => '36172','state_id' => '2987','name' => 'Novyj Uojan'),\n \t array('id' => '36173','state_id' => '2987','name' => 'Onohoj'),\n \t array('id' => '36174','state_id' => '2987','name' => 'Selenginsk'),\n \t array('id' => '36175','state_id' => '2987','name' => 'Severobajkalsk'),\n \t array('id' => '36176','state_id' => '2987','name' => 'Taksimo'),\n \t array('id' => '36177','state_id' => '2987','name' => 'Ulan-Ude'),\n \t array('id' => '36178','state_id' => '2987','name' => 'Zakamensk'),\n \t array('id' => '36179','state_id' => '2987','name' => 'Zarechnyj'),\n \t array('id' => '36180','state_id' => '2988','name' => 'Groznyj'),\n \t array('id' => '36181','state_id' => '2988','name' => 'Gudermes'),\n \t array('id' => '36182','state_id' => '2988','name' => 'Malgobek'),\n \t array('id' => '36183','state_id' => '2988','name' => 'Urus-Martan'),\n \t array('id' => '36184','state_id' => '2989','name' => 'Asha'),\n \t array('id' => '36185','state_id' => '2989','name' => 'Bakal'),\n \t array('id' => '36186','state_id' => '2989','name' => 'Bazhovo'),\n \t array('id' => '36187','state_id' => '2989','name' => 'Berdjaush'),\n \t array('id' => '36188','state_id' => '2989','name' => 'Chebarkul'),\n \t array('id' => '36189','state_id' => '2989','name' => 'Cheljabinsk'),\n \t array('id' => '36190','state_id' => '2989','name' => 'Chelyabinsk'),\n \t array('id' => '36191','state_id' => '2989','name' => 'Gornjak'),\n \t array('id' => '36192','state_id' => '2989','name' => 'Jemanzhelinsk'),\n \t array('id' => '36193','state_id' => '2989','name' => 'Jurjuzan'),\n \t array('id' => '36194','state_id' => '2989','name' => 'Juznouralsk'),\n \t array('id' => '36195','state_id' => '2989','name' => 'Karabash'),\n \t array('id' => '36196','state_id' => '2989','name' => 'Kartaly'),\n \t array('id' => '36197','state_id' => '2989','name' => 'Kasli'),\n \t array('id' => '36198','state_id' => '2989','name' => 'Katav-Ivanovsk'),\n \t array('id' => '36199','state_id' => '2989','name' => 'Kopejsk'),\n \t array('id' => '36200','state_id' => '2989','name' => 'Korkino'),\n \t array('id' => '36201','state_id' => '2989','name' => 'Krasnogorskij'),\n \t array('id' => '36202','state_id' => '2989','name' => 'Kusa'),\n \t array('id' => '36203','state_id' => '2989','name' => 'Kyshtym'),\n \t array('id' => '36204','state_id' => '2989','name' => 'Lokomotivnyj'),\n \t array('id' => '36205','state_id' => '2989','name' => 'Magnitka'),\n \t array('id' => '36206','state_id' => '2989','name' => 'Magnitogorsk'),\n \t array('id' => '36207','state_id' => '2989','name' => 'Miass'),\n \t array('id' => '36208','state_id' => '2989','name' => 'Minjar'),\n \t array('id' => '36209','state_id' => '2989','name' => 'Njazepetrovsk'),\n \t array('id' => '36210','state_id' => '2989','name' => 'Novosineglazovskij'),\n \t array('id' => '36211','state_id' => '2989','name' => 'Ozjorsk'),\n \t array('id' => '36212','state_id' => '2989','name' => 'Pervomajskij'),\n \t array('id' => '36213','state_id' => '2989','name' => 'Plast'),\n \t array('id' => '36214','state_id' => '2989','name' => 'Roza'),\n \t array('id' => '36215','state_id' => '2989','name' => 'Satka'),\n \t array('id' => '36216','state_id' => '2989','name' => 'Sim'),\n \t array('id' => '36217','state_id' => '2989','name' => 'Snezhinsk'),\n \t array('id' => '36218','state_id' => '2989','name' => 'Starokamyshinsk'),\n \t array('id' => '36219','state_id' => '2989','name' => 'Suleja'),\n \t array('id' => '36220','state_id' => '2989','name' => 'Trjohgornij'),\n \t array('id' => '36221','state_id' => '2989','name' => 'Troick'),\n \t array('id' => '36222','state_id' => '2989','name' => 'Ust-Katav'),\n \t array('id' => '36223','state_id' => '2989','name' => 'Verhneuralsk'),\n \t array('id' => '36224','state_id' => '2989','name' => 'Verhnij Ufalej'),\n \t array('id' => '36225','state_id' => '2989','name' => 'Zlatoust'),\n \t array('id' => '36226','state_id' => '2990','name' => 'Atamanovka'),\n \t array('id' => '36227','state_id' => '2990','name' => 'Balej'),\n \t array('id' => '36228','state_id' => '2990','name' => 'Borzja'),\n \t array('id' => '36229','state_id' => '2990','name' => 'Bukachacha'),\n \t array('id' => '36230','state_id' => '2990','name' => 'Chernyshevsk'),\n \t array('id' => '36231','state_id' => '2990','name' => 'Chita'),\n \t array('id' => '36232','state_id' => '2990','name' => 'Darasun'),\n \t array('id' => '36233','state_id' => '2990','name' => 'Gornyy'),\n \t array('id' => '36234','state_id' => '2990','name' => 'Hilok'),\n \t array('id' => '36235','state_id' => '2990','name' => 'Karymskoje'),\n \t array('id' => '36236','state_id' => '2990','name' => 'Krasnokamensk'),\n \t array('id' => '36237','state_id' => '2990','name' => 'Mogocha'),\n \t array('id' => '36238','state_id' => '2990','name' => 'Nerchinsk'),\n \t array('id' => '36239','state_id' => '2990','name' => 'Novaja Chara'),\n \t array('id' => '36240','state_id' => '2990','name' => 'Novokruchuninskij'),\n \t array('id' => '36241','state_id' => '2990','name' => 'Olovjannaja'),\n \t array('id' => '36242','state_id' => '2990','name' => 'Pervomajskij'),\n \t array('id' => '36243','state_id' => '2990','name' => 'Petrovsk-Zabajkalskij'),\n \t array('id' => '36244','state_id' => '2990','name' => 'Sherlovaja Gora'),\n \t array('id' => '36245','state_id' => '2990','name' => 'Shilka'),\n \t array('id' => '36246','state_id' => '2990','name' => 'Sretensk'),\n \t array('id' => '36247','state_id' => '2990','name' => 'Vershino-Darasunskij'),\n \t array('id' => '36248','state_id' => '2990','name' => 'Zabajkalsk'),\n \t array('id' => '36249','state_id' => '2991','name' => 'Anadyr'),\n \t array('id' => '36250','state_id' => '2991','name' => 'Bilibino'),\n \t array('id' => '36251','state_id' => '2991','name' => 'Pevek'),\n \t array('id' => '36252','state_id' => '2991','name' => 'Ugolnyje Kopi'),\n \t array('id' => '36253','state_id' => '2992','name' => 'Alatyr'),\n \t array('id' => '36254','state_id' => '2992','name' => 'Cheboksary'),\n \t array('id' => '36255','state_id' => '2992','name' => 'Civilsk'),\n \t array('id' => '36256','state_id' => '2992','name' => 'Ibresi'),\n \t array('id' => '36257','state_id' => '2992','name' => 'Jadrin'),\n \t array('id' => '36258','state_id' => '2992','name' => 'Kanash'),\n \t array('id' => '36259','state_id' => '2992','name' => 'Kozlovka'),\n \t array('id' => '36260','state_id' => '2992','name' => 'Kugesy'),\n \t array('id' => '36261','state_id' => '2992','name' => 'Mariinskij Posad'),\n \t array('id' => '36262','state_id' => '2992','name' => 'Novocheboksarsk'),\n \t array('id' => '36263','state_id' => '2992','name' => 'Shumerlja'),\n \t array('id' => '36264','state_id' => '2992','name' => 'Vurnary'),\n \t array('id' => '36265','state_id' => '2993','name' => 'Belidzhi'),\n \t array('id' => '36266','state_id' => '2993','name' => 'Bujnaksk'),\n \t array('id' => '36267','state_id' => '2993','name' => 'Dagestanskije Ogni'),\n \t array('id' => '36268','state_id' => '2993','name' => 'Derbent'),\n \t array('id' => '36269','state_id' => '2993','name' => 'Hasavjurt'),\n \t array('id' => '36270','state_id' => '2993','name' => 'Izberbash'),\n \t array('id' => '36271','state_id' => '2993','name' => 'Juzhno-Suhokumsk'),\n \t array('id' => '36272','state_id' => '2993','name' => 'Kaspijsk'),\n \t array('id' => '36273','state_id' => '2993','name' => 'Kiziljurt'),\n \t array('id' => '36274','state_id' => '2993','name' => 'Kizljar'),\n \t array('id' => '36275','state_id' => '2993','name' => 'Mahackala'),\n \t array('id' => '36276','state_id' => '2994','name' => 'Tura'),\n \t array('id' => '36277','state_id' => '2995','name' => 'Gorno-Altajsk'),\n \t array('id' => '36278','state_id' => '2996','name' => 'Amursk'),\n \t array('id' => '36279','state_id' => '2996','name' => 'Bikin'),\n \t array('id' => '36280','state_id' => '2996','name' => 'Chegdomyn'),\n \t array('id' => '36281','state_id' => '2996','name' => 'Cherdomyn'),\n \t array('id' => '36282','state_id' => '2996','name' => 'Habarovsk'),\n \t array('id' => '36283','state_id' => '2996','name' => 'Hor'),\n \t array('id' => '36284','state_id' => '2996','name' => 'Jelban'),\n \t array('id' => '36285','state_id' => '2996','name' => 'Komsomolsk-na-Amure'),\n \t array('id' => '36286','state_id' => '2996','name' => 'Litovko'),\n \t array('id' => '36287','state_id' => '2996','name' => 'Nikolajevsk-na-Amure'),\n \t array('id' => '36288','state_id' => '2996','name' => 'Ohotsk'),\n \t array('id' => '36289','state_id' => '2996','name' => 'Perejaslavka'),\n \t array('id' => '36290','state_id' => '2996','name' => 'Solnechnyj'),\n \t array('id' => '36291','state_id' => '2996','name' => 'Sovetskaja Gavan'),\n \t array('id' => '36292','state_id' => '2996','name' => 'Uglegorsk'),\n \t array('id' => '36293','state_id' => '2996','name' => 'Vanino'),\n \t array('id' => '36294','state_id' => '2996','name' => 'Vjazemskij'),\n \t array('id' => '36295','state_id' => '2996','name' => 'Zavety Iljicha'),\n \t array('id' => '36296','state_id' => '2997','name' => 'Abakan'),\n \t array('id' => '36297','state_id' => '2997','name' => 'Abaza'),\n \t array('id' => '36298','state_id' => '2997','name' => 'Cherjomushki'),\n \t array('id' => '36299','state_id' => '2997','name' => 'Chernogorsk'),\n \t array('id' => '36300','state_id' => '2997','name' => 'Sajanogorsk'),\n \t array('id' => '36301','state_id' => '2997','name' => 'Shira'),\n \t array('id' => '36302','state_id' => '2997','name' => 'Sorsk'),\n \t array('id' => '36303','state_id' => '2997','name' => 'Ust-Abakan'),\n \t array('id' => '36304','state_id' => '2998','name' => 'Belojarskij'),\n \t array('id' => '36305','state_id' => '2998','name' => 'Belyj Jar'),\n \t array('id' => '36306','state_id' => '2998','name' => 'Fjodorovskij'),\n \t array('id' => '36307','state_id' => '2998','name' => 'Hanty-Mansijsk'),\n \t array('id' => '36308','state_id' => '2998','name' => 'Igrim'),\n \t array('id' => '36309','state_id' => '2998','name' => 'Izluchinsk'),\n \t array('id' => '36310','state_id' => '2998','name' => 'Jugorsk'),\n \t array('id' => '36311','state_id' => '2998','name' => 'Kogalym'),\n \t array('id' => '36312','state_id' => '2998','name' => 'Langepas'),\n \t array('id' => '36313','state_id' => '2998','name' => 'Ljantor'),\n \t array('id' => '36314','state_id' => '2998','name' => 'Megion'),\n \t array('id' => '36315','state_id' => '2998','name' => 'Mezhdurechenskij'),\n \t array('id' => '36316','state_id' => '2998','name' => 'Neftejugansk'),\n \t array('id' => '36317','state_id' => '2998','name' => 'Nizhnevartovsk'),\n \t array('id' => '36318','state_id' => '2998','name' => 'Njagan'),\n \t array('id' => '36319','state_id' => '2998','name' => 'Novoagansk'),\n \t array('id' => '36320','state_id' => '2998','name' => 'Pojkovskij'),\n \t array('id' => '36321','state_id' => '2998','name' => 'Pokachi'),\n \t array('id' => '36322','state_id' => '2998','name' => 'Raduzhnyj'),\n \t array('id' => '36323','state_id' => '2998','name' => 'Sovetskij'),\n \t array('id' => '36324','state_id' => '2998','name' => 'Surgut'),\n \t array('id' => '36325','state_id' => '2998','name' => 'Uraj'),\n \t array('id' => '36326','state_id' => '2999','name' => 'Karabulak'),\n \t array('id' => '36327','state_id' => '2999','name' => 'Nazran'),\n \t array('id' => '36328','state_id' => '3000','name' => 'Angarsk'),\n \t array('id' => '36329','state_id' => '3000','name' => 'Bajkalsk'),\n \t array('id' => '36330','state_id' => '3000','name' => 'Balagansk'),\n \t array('id' => '36331','state_id' => '3000','name' => 'Birjusinsk'),\n \t array('id' => '36332','state_id' => '3000','name' => 'Bodajbo'),\n \t array('id' => '36333','state_id' => '3000','name' => 'Bratsk'),\n \t array('id' => '36334','state_id' => '3000','name' => 'Cheremhovo'),\n \t array('id' => '36335','state_id' => '3000','name' => 'Chunskij'),\n \t array('id' => '36336','state_id' => '3000','name' => 'Irkutsk'),\n \t array('id' => '36337','state_id' => '3000','name' => 'Kirensk'),\n \t array('id' => '36338','state_id' => '3000','name' => 'Kujtun'),\n \t array('id' => '36339','state_id' => '3000','name' => 'Mihajlovka'),\n \t array('id' => '36340','state_id' => '3000','name' => 'Nizhneudinsk'),\n \t array('id' => '36341','state_id' => '3000','name' => 'Novaja Igirma'),\n \t array('id' => '36342','state_id' => '3000','name' => 'Sajansk'),\n \t array('id' => '36343','state_id' => '3000','name' => 'Shelehov'),\n \t array('id' => '36344','state_id' => '3000','name' => 'Sljudjanka'),\n \t array('id' => '36345','state_id' => '3000','name' => 'Svirsk'),\n \t array('id' => '36346','state_id' => '3000','name' => 'Tajshet'),\n \t array('id' => '36347','state_id' => '3000','name' => 'Tulun'),\n \t array('id' => '36348','state_id' => '3000','name' => 'Usolje-Sibirskoje'),\n \t array('id' => '36349','state_id' => '3000','name' => 'Ust-Ilimsk'),\n \t array('id' => '36350','state_id' => '3000','name' => 'Ust-Kut'),\n \t array('id' => '36351','state_id' => '3000','name' => 'Vihorevka'),\n \t array('id' => '36352','state_id' => '3000','name' => 'Zalari'),\n \t array('id' => '36353','state_id' => '3000','name' => 'Zheleznodorozhnyj'),\n \t array('id' => '36354','state_id' => '3000','name' => 'Zheleznogorsk-Ilimskij'),\n \t array('id' => '36355','state_id' => '3000','name' => 'Zima'),\n \t array('id' => '36356','state_id' => '3001','name' => 'Furmanov'),\n \t array('id' => '36357','state_id' => '3001','name' => 'Ivanovo'),\n \t array('id' => '36358','state_id' => '3001','name' => 'Jurjevec'),\n \t array('id' => '36359','state_id' => '3001','name' => 'Juzha'),\n \t array('id' => '36360','state_id' => '3001','name' => 'Kineshma'),\n \t array('id' => '36361','state_id' => '3001','name' => 'Kohma'),\n \t array('id' => '36362','state_id' => '3001','name' => 'Komsomolsk'),\n \t array('id' => '36363','state_id' => '3001','name' => 'Lezhnjovo'),\n \t array('id' => '36364','state_id' => '3001','name' => 'Navoloki'),\n \t array('id' => '36365','state_id' => '3001','name' => 'Privolzhsk'),\n \t array('id' => '36366','state_id' => '3001','name' => 'Puchezh'),\n \t array('id' => '36367','state_id' => '3001','name' => 'Rodniki'),\n \t array('id' => '36368','state_id' => '3001','name' => 'Shuja'),\n \t array('id' => '36369','state_id' => '3001','name' => 'Tejkovo'),\n \t array('id' => '36370','state_id' => '3001','name' => 'Vichuga'),\n \t array('id' => '36371','state_id' => '3002','name' => 'Gubkinskij'),\n \t array('id' => '36372','state_id' => '3002','name' => 'Korotchajevo'),\n \t array('id' => '36373','state_id' => '3002','name' => 'Labytnangi'),\n \t array('id' => '36374','state_id' => '3002','name' => 'Muravlenko'),\n \t array('id' => '36375','state_id' => '3002','name' => 'Nadym'),\n \t array('id' => '36376','state_id' => '3002','name' => 'Nojabrsk'),\n \t array('id' => '36377','state_id' => '3002','name' => 'Novyj Urengoj'),\n \t array('id' => '36378','state_id' => '3002','name' => 'Pangody'),\n \t array('id' => '36379','state_id' => '3002','name' => 'Salehard'),\n \t array('id' => '36380','state_id' => '3002','name' => 'Tarko-Sale'),\n \t array('id' => '36381','state_id' => '3002','name' => 'Urengoj'),\n \t array('id' => '36382','state_id' => '3003','name' => 'Danilov'),\n \t array('id' => '36383','state_id' => '3003','name' => 'Gavrilov-Jam'),\n \t array('id' => '36384','state_id' => '3003','name' => 'Jaroslavl'),\n \t array('id' => '36385','state_id' => '3003','name' => 'Pereslavl-Zalesskij'),\n \t array('id' => '36386','state_id' => '3003','name' => 'Rostov'),\n \t array('id' => '36387','state_id' => '3003','name' => 'Rybinsk'),\n \t array('id' => '36388','state_id' => '3003','name' => 'Tutajev'),\n \t array('id' => '36389','state_id' => '3003','name' => 'Uglich'),\n \t array('id' => '36390','state_id' => '3004','name' => 'Birakan'),\n \t array('id' => '36391','state_id' => '3004','name' => 'Birobidzhan'),\n \t array('id' => '36392','state_id' => '3004','name' => 'Imeni Telmana'),\n \t array('id' => '36393','state_id' => '3004','name' => 'Izvestkovyj'),\n \t array('id' => '36394','state_id' => '3004','name' => 'Londoko'),\n \t array('id' => '36395','state_id' => '3004','name' => 'Obluchje'),\n \t array('id' => '36396','state_id' => '3004','name' => 'Teploozjorsk'),\n \t array('id' => '36397','state_id' => '3005','name' => 'Baksan'),\n \t array('id' => '36398','state_id' => '3005','name' => 'Chegem Pervyj'),\n \t array('id' => '36399','state_id' => '3005','name' => 'Majskij'),\n \t array('id' => '36400','state_id' => '3005','name' => 'Nalchik'),\n \t array('id' => '36401','state_id' => '3005','name' => 'Nartkala'),\n \t array('id' => '36402','state_id' => '3005','name' => 'Prohladnyj'),\n \t array('id' => '36403','state_id' => '3005','name' => 'Terek'),\n \t array('id' => '36404','state_id' => '3005','name' => 'Tyrnyauz'),\n \t array('id' => '36405','state_id' => '3006','name' => 'Bagrationovsk'),\n \t array('id' => '36406','state_id' => '3006','name' => 'Baltijsk'),\n \t array('id' => '36407','state_id' => '3006','name' => 'Chernjahovsk'),\n \t array('id' => '36408','state_id' => '3006','name' => 'Gurjevsk'),\n \t array('id' => '36409','state_id' => '3006','name' => 'Gusev'),\n \t array('id' => '36410','state_id' => '3006','name' => 'Gvardejsk'),\n \t array('id' => '36411','state_id' => '3006','name' => 'Kaliningrad'),\n \t array('id' => '36412','state_id' => '3006','name' => 'Mamonovo'),\n \t array('id' => '36413','state_id' => '3006','name' => 'Neman'),\n \t array('id' => '36414','state_id' => '3006','name' => 'Nesterov'),\n \t array('id' => '36415','state_id' => '3006','name' => 'Ozjorsk'),\n \t array('id' => '36416','state_id' => '3006','name' => 'Pionerskij'),\n \t array('id' => '36417','state_id' => '3006','name' => 'Sovetsk'),\n \t array('id' => '36418','state_id' => '3006','name' => 'Svetlogorsk'),\n \t array('id' => '36419','state_id' => '3006','name' => 'Svetlyj'),\n \t array('id' => '36420','state_id' => '3006','name' => 'Zeljenogradsk'),\n \t array('id' => '36421','state_id' => '3006','name' => 'Znamensk'),\n \t array('id' => '36422','state_id' => '3007','name' => 'Elista'),\n \t array('id' => '36423','state_id' => '3007','name' => 'Gorodovikovsk'),\n \t array('id' => '36424','state_id' => '3007','name' => 'Lagan'),\n \t array('id' => '36425','state_id' => '3008','name' => 'Balabanovo'),\n \t array('id' => '36426','state_id' => '3008','name' => 'Belousovo'),\n \t array('id' => '36427','state_id' => '3008','name' => 'Borovsk'),\n \t array('id' => '36428','state_id' => '3008','name' => 'Jermolino'),\n \t array('id' => '36429','state_id' => '3008','name' => 'Kaluga'),\n \t array('id' => '36430','state_id' => '3008','name' => 'Kirov'),\n \t array('id' => '36431','state_id' => '3008','name' => 'Kondrovo'),\n \t array('id' => '36432','state_id' => '3008','name' => 'Kozelsk'),\n \t array('id' => '36433','state_id' => '3008','name' => 'Kremenki'),\n \t array('id' => '36434','state_id' => '3008','name' => 'Ljudinovo'),\n \t array('id' => '36435','state_id' => '3008','name' => 'Malojaroslavec'),\n \t array('id' => '36436','state_id' => '3008','name' => 'Obninsk'),\n \t array('id' => '36437','state_id' => '3008','name' => 'Sosenskij'),\n \t array('id' => '36438','state_id' => '3008','name' => 'Suhinichi'),\n \t array('id' => '36439','state_id' => '3008','name' => 'Tarusa'),\n \t array('id' => '36440','state_id' => '3008','name' => 'Tovarkovo'),\n \t array('id' => '36441','state_id' => '3008','name' => 'Zhukov'),\n \t array('id' => '36442','state_id' => '3009','name' => 'Jelizovo'),\n \t array('id' => '36443','state_id' => '3009','name' => 'Kljuchi'),\n \t array('id' => '36444','state_id' => '3009','name' => 'Mohovaja'),\n \t array('id' => '36445','state_id' => '3009','name' => 'Petropavlovsk-Kamchatskij'),\n \t array('id' => '36446','state_id' => '3009','name' => 'Ust-Kamchatsk'),\n \t array('id' => '36447','state_id' => '3009','name' => 'Viljuchinsk'),\n \t array('id' => '36448','state_id' => '3009','name' => 'Vulkannyj'),\n \t array('id' => '36449','state_id' => '3010','name' => 'Cherkessk'),\n \t array('id' => '36450','state_id' => '3010','name' => 'Karachajevsk'),\n \t array('id' => '36451','state_id' => '3010','name' => 'Ust-Dzheguta'),\n \t array('id' => '36452','state_id' => '3011','name' => 'Belomorsk'),\n \t array('id' => '36453','state_id' => '3011','name' => 'Kem'),\n \t array('id' => '36454','state_id' => '3011','name' => 'Kondopoga'),\n \t array('id' => '36455','state_id' => '3011','name' => 'Kostomuksha'),\n \t array('id' => '36456','state_id' => '3011','name' => 'Lahdenpohja'),\n \t array('id' => '36457','state_id' => '3011','name' => 'Medvezhjegorsk'),\n \t array('id' => '36458','state_id' => '3011','name' => 'Nadvoicy'),\n \t array('id' => '36459','state_id' => '3011','name' => 'Olonec'),\n \t array('id' => '36460','state_id' => '3011','name' => 'Petrozavodsk'),\n \t array('id' => '36461','state_id' => '3011','name' => 'Pitkjaranta'),\n \t array('id' => '36462','state_id' => '3011','name' => 'Pudozh'),\n \t array('id' => '36463','state_id' => '3011','name' => 'Segezha'),\n \t array('id' => '36464','state_id' => '3011','name' => 'Sortavala'),\n \t array('id' => '36465','state_id' => '3011','name' => 'Suojarvi'),\n \t array('id' => '36466','state_id' => '3012','name' => 'Anzhero-Sudzhensk'),\n \t array('id' => '36467','state_id' => '3012','name' => 'Bachatskij'),\n \t array('id' => '36468','state_id' => '3012','name' => 'Belovo'),\n \t array('id' => '36469','state_id' => '3012','name' => 'Berjozovskij'),\n \t array('id' => '36470','state_id' => '3012','name' => 'Gramoteino'),\n \t array('id' => '36471','state_id' => '3012','name' => 'Gurjevsk'),\n \t array('id' => '36472','state_id' => '3012','name' => 'Inskoj'),\n \t array('id' => '36473','state_id' => '3012','name' => 'Jashkino'),\n \t array('id' => '36474','state_id' => '3012','name' => 'Jurga'),\n \t array('id' => '36475','state_id' => '3012','name' => 'Kaltan'),\n \t array('id' => '36476','state_id' => '3012','name' => 'Kedrovka'),\n \t array('id' => '36477','state_id' => '3012','name' => 'Kemerovo'),\n \t array('id' => '36478','state_id' => '3012','name' => 'Kiseljovsk'),\n \t array('id' => '36479','state_id' => '3012','name' => 'Krasnobrodskij'),\n \t array('id' => '36480','state_id' => '3012','name' => 'Leninsk-Kuzneckij'),\n \t array('id' => '36481','state_id' => '3012','name' => 'Malinovka'),\n \t array('id' => '36482','state_id' => '3012','name' => 'Mariinsk'),\n \t array('id' => '36483','state_id' => '3012','name' => 'Mezhdurechensk'),\n \t array('id' => '36484','state_id' => '3012','name' => 'Myski'),\n \t array('id' => '36485','state_id' => '3012','name' => 'Novokuzneck'),\n \t array('id' => '36486','state_id' => '3012','name' => 'Novokuznetsk'),\n \t array('id' => '36487','state_id' => '3012','name' => 'Novyj Gorodok'),\n \t array('id' => '36488','state_id' => '3012','name' => 'Osinniki'),\n \t array('id' => '36489','state_id' => '3012','name' => 'Polsaevo'),\n \t array('id' => '36490','state_id' => '3012','name' => 'Prokopjevsk'),\n \t array('id' => '36491','state_id' => '3012','name' => 'Promyshlennaja'),\n \t array('id' => '36492','state_id' => '3012','name' => 'Promyshlennovskij'),\n \t array('id' => '36493','state_id' => '3012','name' => 'Salair'),\n \t array('id' => '36494','state_id' => '3012','name' => 'Starobachaty'),\n \t array('id' => '36495','state_id' => '3012','name' => 'Tajga'),\n \t array('id' => '36496','state_id' => '3012','name' => 'Tajzhina'),\n \t array('id' => '36497','state_id' => '3012','name' => 'Tashtagol'),\n \t array('id' => '36498','state_id' => '3012','name' => 'Temirtau'),\n \t array('id' => '36499','state_id' => '3012','name' => 'Tisul'),\n \t array('id' => '36500','state_id' => '3012','name' => 'Tjazhinskij'),\n \t array('id' => '36501','state_id' => '3012','name' => 'Topki'),\n \t array('id' => '36502','state_id' => '3014','name' => 'Belaja Holunica'),\n \t array('id' => '36503','state_id' => '3014','name' => 'Jaransk'),\n \t array('id' => '36504','state_id' => '3014','name' => 'Jurja'),\n \t array('id' => '36505','state_id' => '3014','name' => 'Kirov'),\n \t array('id' => '36506','state_id' => '3014','name' => 'Kirovo-Chepeck'),\n \t array('id' => '36507','state_id' => '3014','name' => 'Kirs'),\n \t array('id' => '36508','state_id' => '3014','name' => 'Kotelnich'),\n \t array('id' => '36509','state_id' => '3014','name' => 'Ljangasovo'),\n \t array('id' => '36510','state_id' => '3014','name' => 'Luza'),\n \t array('id' => '36511','state_id' => '3014','name' => 'Malmyzh'),\n \t array('id' => '36512','state_id' => '3014','name' => 'Murashi'),\n \t array('id' => '36513','state_id' => '3014','name' => 'Nolinsk'),\n \t array('id' => '36514','state_id' => '3014','name' => 'Omutninsk'),\n \t array('id' => '36515','state_id' => '3014','name' => 'Orichi'),\n \t array('id' => '36516','state_id' => '3014','name' => 'Orlov'),\n \t array('id' => '36517','state_id' => '3014','name' => 'Pervomajskij'),\n \t array('id' => '36518','state_id' => '3014','name' => 'Peskovka'),\n \t array('id' => '36519','state_id' => '3014','name' => 'Slobodskoj'),\n \t array('id' => '36520','state_id' => '3014','name' => 'Sosnovka'),\n \t array('id' => '36521','state_id' => '3014','name' => 'Sovetsk'),\n \t array('id' => '36522','state_id' => '3014','name' => 'Urzhum'),\n \t array('id' => '36523','state_id' => '3014','name' => 'Vahrushi'),\n \t array('id' => '36524','state_id' => '3014','name' => 'Vjatskije Poljany'),\n \t array('id' => '36525','state_id' => '3014','name' => 'Zujevka'),\n \t array('id' => '36526','state_id' => '3015','name' => 'Blagoevo'),\n \t array('id' => '36527','state_id' => '3015','name' => 'Inta'),\n \t array('id' => '36528','state_id' => '3015','name' => 'Jarega'),\n \t array('id' => '36529','state_id' => '3015','name' => 'Jeletskij'),\n \t array('id' => '36530','state_id' => '3015','name' => 'Jemva'),\n \t array('id' => '36531','state_id' => '3015','name' => 'Komsomolskij'),\n \t array('id' => '36532','state_id' => '3015','name' => 'Krasnozatonskij'),\n \t array('id' => '36533','state_id' => '3015','name' => 'Mikun'),\n \t array('id' => '36534','state_id' => '3015','name' => 'Nizhnij Odes'),\n \t array('id' => '36535','state_id' => '3015','name' => 'Pechora'),\n \t array('id' => '36536','state_id' => '3015','name' => 'Promyshlennyj'),\n \t array('id' => '36537','state_id' => '3015','name' => 'Severnyj'),\n \t array('id' => '36538','state_id' => '3015','name' => 'Sosnogorsk'),\n \t array('id' => '36539','state_id' => '3015','name' => 'Syktyvkar'),\n \t array('id' => '36540','state_id' => '3015','name' => 'Troicko-Pechorsk'),\n \t array('id' => '36541','state_id' => '3015','name' => 'Uhta'),\n \t array('id' => '36542','state_id' => '3015','name' => 'Usinsk'),\n \t array('id' => '36543','state_id' => '3015','name' => 'Usogorsk'),\n \t array('id' => '36544','state_id' => '3015','name' => 'Vorgashor'),\n \t array('id' => '36545','state_id' => '3015','name' => 'Vorkuta'),\n \t array('id' => '36546','state_id' => '3015','name' => 'Vuktyl'),\n \t array('id' => '36547','state_id' => '3015','name' => 'Zheshart'),\n \t array('id' => '36548','state_id' => '3016','name' => 'Kudymkar'),\n \t array('id' => '36549','state_id' => '3017','name' => 'Palana'),\n \t array('id' => '36550','state_id' => '3018','name' => 'Buj'),\n \t array('id' => '36551','state_id' => '3018','name' => 'Galich'),\n \t array('id' => '36552','state_id' => '3018','name' => 'Kostroma'),\n \t array('id' => '36553','state_id' => '3018','name' => 'Makarjev'),\n \t array('id' => '36554','state_id' => '3018','name' => 'Manturovo'),\n \t array('id' => '36555','state_id' => '3018','name' => 'Neja'),\n \t array('id' => '36556','state_id' => '3018','name' => 'Nerehta'),\n \t array('id' => '36557','state_id' => '3018','name' => 'Sharja'),\n \t array('id' => '36558','state_id' => '3018','name' => 'Vetluzhskij'),\n \t array('id' => '36559','state_id' => '3018','name' => 'Volgorechensk'),\n \t array('id' => '36560','state_id' => '3018','name' => 'Zavolzhsk'),\n \t array('id' => '36561','state_id' => '3019','name' => 'Abinsk'),\n \t array('id' => '36562','state_id' => '3019','name' => 'Achujevo'),\n \t array('id' => '36563','state_id' => '3019','name' => 'Afipskij'),\n \t array('id' => '36564','state_id' => '3019','name' => 'Ahtyrskij'),\n \t array('id' => '36565','state_id' => '3019','name' => 'Anapa'),\n \t array('id' => '36566','state_id' => '3019','name' => 'Apsheronsk'),\n \t array('id' => '36567','state_id' => '3019','name' => 'Armavir'),\n \t array('id' => '36568','state_id' => '3019','name' => 'Belorechensk'),\n \t array('id' => '36569','state_id' => '3019','name' => 'Gelendzhik'),\n \t array('id' => '36570','state_id' => '3019','name' => 'Gorjachi Kljuch'),\n \t array('id' => '36571','state_id' => '3019','name' => 'Gulkevichi'),\n \t array('id' => '36572','state_id' => '3019','name' => 'Hadyzhensk'),\n \t array('id' => '36573','state_id' => '3019','name' => 'Ilskij'),\n \t array('id' => '36574','state_id' => '3019','name' => 'Jejsk'),\n \t array('id' => '36575','state_id' => '3019','name' => 'Kalinino'),\n \t array('id' => '36576','state_id' => '3019','name' => 'Korenovsk'),\n \t array('id' => '36577','state_id' => '3019','name' => 'Krasnodar'),\n \t array('id' => '36578','state_id' => '3019','name' => 'Kropotkin'),\n \t array('id' => '36579','state_id' => '3019','name' => 'Krymsk'),\n \t array('id' => '36580','state_id' => '3019','name' => 'Kurganinsk'),\n \t array('id' => '36581','state_id' => '3019','name' => 'Labinsk'),\n \t array('id' => '36582','state_id' => '3019','name' => 'Mostovskoj'),\n \t array('id' => '36583','state_id' => '3019','name' => 'Neftegorsk'),\n \t array('id' => '36584','state_id' => '3019','name' => 'Novokubansk'),\n \t array('id' => '36585','state_id' => '3019','name' => 'Novomihajlovskij'),\n \t array('id' => '36586','state_id' => '3019','name' => 'Novorossijsk'),\n \t array('id' => '36587','state_id' => '3019','name' => 'Pashkovskij'),\n \t array('id' => '36588','state_id' => '3019','name' => 'Primorsko-Ahtarsk'),\n \t array('id' => '36589','state_id' => '3019','name' => 'Psebaj'),\n \t array('id' => '36590','state_id' => '3019','name' => 'Slavjansk-na-Kubani'),\n \t array('id' => '36591','state_id' => '3019','name' => 'Sochi'),\n \t array('id' => '36592','state_id' => '3019','name' => 'Srednjaja Ahtuba'),\n \t array('id' => '36593','state_id' => '3019','name' => 'Temrjuk'),\n \t array('id' => '36594','state_id' => '3019','name' => 'Tihoreck'),\n \t array('id' => '36595','state_id' => '3019','name' => 'Timashevsk'),\n \t array('id' => '36596','state_id' => '3019','name' => 'Tuapse'),\n \t array('id' => '36597','state_id' => '3019','name' => 'Ust-Labinsk'),\n \t array('id' => '36598','state_id' => '3020','name' => 'Aban'),\n \t array('id' => '36599','state_id' => '3020','name' => 'Achinsk'),\n \t array('id' => '36600','state_id' => '3020','name' => 'Artjomovsk'),\n \t array('id' => '36601','state_id' => '3020','name' => 'Berjozovka'),\n \t array('id' => '36602','state_id' => '3020','name' => 'Bogotol'),\n \t array('id' => '36603','state_id' => '3020','name' => 'Borodino'),\n \t array('id' => '36604','state_id' => '3020','name' => 'Divnogorsk'),\n \t array('id' => '36605','state_id' => '3020','name' => 'Dubinino'),\n \t array('id' => '36606','state_id' => '3020','name' => 'Igarka'),\n \t array('id' => '36607','state_id' => '3020','name' => 'Ilanskij'),\n \t array('id' => '36608','state_id' => '3020','name' => 'Jemeljanovo'),\n \t array('id' => '36609','state_id' => '3020','name' => 'Jenisejsk'),\n \t array('id' => '36610','state_id' => '3020','name' => 'Kajerkan'),\n \t array('id' => '36611','state_id' => '3020','name' => 'Kansk'),\n \t array('id' => '36612','state_id' => '3020','name' => 'Kedrovyj'),\n \t array('id' => '36613','state_id' => '3020','name' => 'Kodinsk'),\n \t array('id' => '36614','state_id' => '3020','name' => 'Krasnojarsk'),\n \t array('id' => '36615','state_id' => '3020','name' => 'Kuragino'),\n \t array('id' => '36616','state_id' => '3020','name' => 'Lesosibirsk'),\n \t array('id' => '36617','state_id' => '3020','name' => 'Minusinsk'),\n \t array('id' => '36618','state_id' => '3020','name' => 'Nazarovo'),\n \t array('id' => '36619','state_id' => '3020','name' => 'Nizhnjaja Pojma'),\n \t array('id' => '36620','state_id' => '3020','name' => 'Norilsk'),\n \t array('id' => '36621','state_id' => '3020','name' => 'Podgornyj'),\n \t array('id' => '36622','state_id' => '3020','name' => 'Sharypovo'),\n \t array('id' => '36623','state_id' => '3020','name' => 'Shushenskoe'),\n \t array('id' => '36624','state_id' => '3020','name' => 'Solnechnyj'),\n \t array('id' => '36625','state_id' => '3020','name' => 'Sosnovoborsk'),\n \t array('id' => '36626','state_id' => '3020','name' => 'Talnah'),\n \t array('id' => '36627','state_id' => '3020','name' => 'Ujar'),\n \t array('id' => '36628','state_id' => '3020','name' => 'Uzhur'),\n \t array('id' => '36629','state_id' => '3020','name' => 'Zaozjornyj'),\n \t array('id' => '36630','state_id' => '3020','name' => 'Zelenogorsk'),\n \t array('id' => '36631','state_id' => '3020','name' => 'Zheleznogorsk'),\n \t array('id' => '36632','state_id' => '3022','name' => 'Dalmatovo'),\n \t array('id' => '36633','state_id' => '3022','name' => 'Kargapolje'),\n \t array('id' => '36634','state_id' => '3022','name' => 'Katajsk'),\n \t array('id' => '36635','state_id' => '3022','name' => 'Kurgan'),\n \t array('id' => '36636','state_id' => '3022','name' => 'Kurtamysh'),\n \t array('id' => '36637','state_id' => '3022','name' => 'Makushino'),\n \t array('id' => '36638','state_id' => '3022','name' => 'Petuhovo'),\n \t array('id' => '36639','state_id' => '3022','name' => 'Shadrinsk'),\n \t array('id' => '36640','state_id' => '3022','name' => 'Shumiha'),\n \t array('id' => '36641','state_id' => '3022','name' => 'Vargashi'),\n \t array('id' => '36642','state_id' => '3023','name' => 'Dmitriev Lgovskij'),\n \t array('id' => '36643','state_id' => '3023','name' => 'Imeni Karla Libknehta'),\n \t array('id' => '36644','state_id' => '3023','name' => 'Kurchatov'),\n \t array('id' => '36645','state_id' => '3023','name' => 'Kursk'),\n \t array('id' => '36646','state_id' => '3023','name' => 'Lgov'),\n \t array('id' => '36647','state_id' => '3023','name' => 'Obojan'),\n \t array('id' => '36648','state_id' => '3023','name' => 'Rylsk'),\n \t array('id' => '36649','state_id' => '3023','name' => 'Shchigry'),\n \t array('id' => '36650','state_id' => '3023','name' => 'Shchuchje'),\n \t array('id' => '36651','state_id' => '3023','name' => 'Sudzha'),\n \t array('id' => '36652','state_id' => '3023','name' => 'Zheleznogorsk'),\n \t array('id' => '36653','state_id' => '3024','name' => 'Boksitogorsk'),\n \t array('id' => '36654','state_id' => '3024','name' => 'Dubrovka'),\n \t array('id' => '36655','state_id' => '3024','name' => 'Gatchina'),\n \t array('id' => '36656','state_id' => '3024','name' => 'Imeni Morozova'),\n \t array('id' => '36657','state_id' => '3024','name' => 'Ivangorod'),\n \t array('id' => '36658','state_id' => '3024','name' => 'Kingisepp'),\n \t array('id' => '36659','state_id' => '3024','name' => 'Kirishi'),\n \t array('id' => '36660','state_id' => '3024','name' => 'Kirovsk'),\n \t array('id' => '36661','state_id' => '3024','name' => 'Kolpino'),\n \t array('id' => '36662','state_id' => '3024','name' => 'Kommunar'),\n \t array('id' => '36663','state_id' => '3024','name' => 'Kuzmolovskiy'),\n \t array('id' => '36664','state_id' => '3024','name' => 'Lodejnoje Pole'),\n \t array('id' => '36665','state_id' => '3024','name' => 'Luga'),\n \t array('id' => '36666','state_id' => '3024','name' => 'Nikolskoe'),\n \t array('id' => '36667','state_id' => '3024','name' => 'Novaja Ladoga'),\n \t array('id' => '36668','state_id' => '3024','name' => 'Otradnoe'),\n \t array('id' => '36669','state_id' => '3024','name' => 'Pikaljovo'),\n \t array('id' => '36670','state_id' => '3024','name' => 'Podporozhje'),\n \t array('id' => '36671','state_id' => '3024','name' => 'Priozjorsk'),\n \t array('id' => '36672','state_id' => '3024','name' => 'Sertolovo'),\n \t array('id' => '36673','state_id' => '3024','name' => 'Shlisselburg'),\n \t array('id' => '36674','state_id' => '3024','name' => 'Siverskij'),\n \t array('id' => '36675','state_id' => '3024','name' => 'Sjasstroj'),\n \t array('id' => '36676','state_id' => '3024','name' => 'Slancy'),\n \t array('id' => '36677','state_id' => '3024','name' => 'Sosnovyj Bor'),\n \t array('id' => '36678','state_id' => '3024','name' => 'Svetogorsk'),\n \t array('id' => '36679','state_id' => '3024','name' => 'Tihvin'),\n \t array('id' => '36680','state_id' => '3024','name' => 'Tosno'),\n \t array('id' => '36681','state_id' => '3024','name' => 'Uljanovka'),\n \t array('id' => '36682','state_id' => '3024','name' => 'Volhov'),\n \t array('id' => '36683','state_id' => '3024','name' => 'Volosovo'),\n \t array('id' => '36684','state_id' => '3024','name' => 'Vsevolozhsk'),\n \t array('id' => '36685','state_id' => '3024','name' => 'Vyborg'),\n \t array('id' => '36686','state_id' => '3024','name' => 'Vyrica'),\n \t array('id' => '36687','state_id' => '3024','name' => 'Zarskoje Selo'),\n \t array('id' => '36688','state_id' => '3025','name' => 'Chaplygin'),\n \t array('id' => '36689','state_id' => '3025','name' => 'Dankov'),\n \t array('id' => '36690','state_id' => '3025','name' => 'Dobrinka'),\n \t array('id' => '36691','state_id' => '3025','name' => 'Grjazi'),\n \t array('id' => '36692','state_id' => '3025','name' => 'Jelec'),\n \t array('id' => '36693','state_id' => '3025','name' => 'Lebedjan'),\n \t array('id' => '36694','state_id' => '3025','name' => 'Lipeck'),\n \t array('id' => '36695','state_id' => '3025','name' => 'Usman'),\n \t array('id' => '36696','state_id' => '3025','name' => 'Zadonsk'),\n \t array('id' => '36697','state_id' => '3026','name' => 'Jagodnoje'),\n \t array('id' => '36698','state_id' => '3026','name' => 'Magadan'),\n \t array('id' => '36699','state_id' => '3026','name' => 'Ola'),\n \t array('id' => '36700','state_id' => '3026','name' => 'Omsukchan'),\n \t array('id' => '36701','state_id' => '3026','name' => 'Palatka'),\n \t array('id' => '36702','state_id' => '3026','name' => 'Sinegorje'),\n \t array('id' => '36703','state_id' => '3026','name' => 'Susuman'),\n \t array('id' => '36704','state_id' => '3026','name' => 'Ust-Omchug'),\n \t array('id' => '36705','state_id' => '3028','name' => 'Ardatov'),\n \t array('id' => '36706','state_id' => '3028','name' => 'Chamzinka'),\n \t array('id' => '36707','state_id' => '3028','name' => 'Insar'),\n \t array('id' => '36708','state_id' => '3028','name' => 'Komsomolskij'),\n \t array('id' => '36709','state_id' => '3028','name' => 'Kovylkino'),\n \t array('id' => '36710','state_id' => '3028','name' => 'Krasnoslobodsk'),\n \t array('id' => '36711','state_id' => '3028','name' => 'Luhovka'),\n \t array('id' => '36712','state_id' => '3028','name' => 'Romodanovo'),\n \t array('id' => '36713','state_id' => '3028','name' => 'Ruzajevka'),\n \t array('id' => '36714','state_id' => '3028','name' => 'Saransk'),\n \t array('id' => '36715','state_id' => '3028','name' => 'Temnikov'),\n \t array('id' => '36716','state_id' => '3028','name' => 'Torbeevo'),\n \t array('id' => '36717','state_id' => '3028','name' => 'Zubova Poljana'),\n \t array('id' => '36718','state_id' => '3029','name' => 'Moscow'),\n \t array('id' => '36719','state_id' => '3032','name' => 'Moskva'),\n \t array('id' => '36720','state_id' => '3032','name' => 'Vostochnyj'),\n \t array('id' => '36721','state_id' => '3032','name' => 'Zeljenograd'),\n \t array('id' => '36722','state_id' => '3033','name' => 'Apatity'),\n \t array('id' => '36723','state_id' => '3033','name' => 'Gadzhievo'),\n \t array('id' => '36724','state_id' => '3033','name' => 'Kandalaksha'),\n \t array('id' => '36725','state_id' => '3033','name' => 'Kirovsk'),\n \t array('id' => '36726','state_id' => '3033','name' => 'Kola'),\n \t array('id' => '36727','state_id' => '3033','name' => 'Kovdor'),\n \t array('id' => '36728','state_id' => '3033','name' => 'Monchegorsk'),\n \t array('id' => '36729','state_id' => '3033','name' => 'Murmansk'),\n \t array('id' => '36730','state_id' => '3033','name' => 'Murmashi'),\n \t array('id' => '36731','state_id' => '3033','name' => 'Nikel'),\n \t array('id' => '36732','state_id' => '3033','name' => 'Olenegorsk'),\n \t array('id' => '36733','state_id' => '3033','name' => 'Ostrovnoj'),\n \t array('id' => '36734','state_id' => '3033','name' => 'Poljarnye Zory'),\n \t array('id' => '36735','state_id' => '3033','name' => 'Poljarnyj'),\n \t array('id' => '36736','state_id' => '3033','name' => 'Revda'),\n \t array('id' => '36737','state_id' => '3033','name' => 'Severomorsk'),\n \t array('id' => '36738','state_id' => '3033','name' => 'Snezhnogorsk'),\n \t array('id' => '36739','state_id' => '3033','name' => 'Zaozjorsk'),\n \t array('id' => '36740','state_id' => '3033','name' => 'Zapoljarnyj'),\n \t array('id' => '36741','state_id' => '3033','name' => 'Zeljenoborskij'),\n \t array('id' => '36742','state_id' => '3034','name' => 'Narjan-Mar'),\n \t array('id' => '36743','state_id' => '3036','name' => 'Borovichi'),\n \t array('id' => '36744','state_id' => '3036','name' => 'Chudovo'),\n \t array('id' => '36745','state_id' => '3036','name' => 'Krestcy'),\n \t array('id' => '36746','state_id' => '3036','name' => 'Malaja Vishera'),\n \t array('id' => '36747','state_id' => '3036','name' => 'Okulovka'),\n \t array('id' => '36748','state_id' => '3036','name' => 'Pestovo'),\n \t array('id' => '36749','state_id' => '3036','name' => 'Proletarij'),\n \t array('id' => '36750','state_id' => '3036','name' => 'Solcy'),\n \t array('id' => '36751','state_id' => '3036','name' => 'Staraja Russa'),\n \t array('id' => '36752','state_id' => '3036','name' => 'Uglovka'),\n \t array('id' => '36753','state_id' => '3036','name' => 'Valdaj'),\n \t array('id' => '36754','state_id' => '3036','name' => 'Velikij Novgorod'),\n \t array('id' => '36755','state_id' => '3037','name' => 'Novokusnezk'),\n \t array('id' => '36756','state_id' => '3038','name' => 'Barabinsk'),\n \t array('id' => '36757','state_id' => '3038','name' => 'Berdsk'),\n \t array('id' => '36758','state_id' => '3038','name' => 'Bolotnoe'),\n \t array('id' => '36759','state_id' => '3038','name' => 'Chany'),\n \t array('id' => '36760','state_id' => '3038','name' => 'Cherepanovo'),\n \t array('id' => '36761','state_id' => '3038','name' => 'Chulym'),\n \t array('id' => '36762','state_id' => '3038','name' => 'Iskitim'),\n \t array('id' => '36763','state_id' => '3038','name' => 'Karasuk'),\n \t array('id' => '36764','state_id' => '3038','name' => 'Kargat'),\n \t array('id' => '36765','state_id' => '3038','name' => 'Kochenjovo'),\n \t array('id' => '36766','state_id' => '3038','name' => 'Kolcovo'),\n \t array('id' => '36767','state_id' => '3038','name' => 'Kolyvan'),\n \t array('id' => '36768','state_id' => '3038','name' => 'Krasnoobsk'),\n \t array('id' => '36769','state_id' => '3038','name' => 'Krasnozerskoe'),\n \t array('id' => '36770','state_id' => '3038','name' => 'Kujbyshev'),\n \t array('id' => '36771','state_id' => '3038','name' => 'Kupino'),\n \t array('id' => '36772','state_id' => '3038','name' => 'Linjovo'),\n \t array('id' => '36773','state_id' => '3038','name' => 'Masljanino'),\n \t array('id' => '36774','state_id' => '3038','name' => 'Novosibirsk'),\n \t array('id' => '36775','state_id' => '3038','name' => 'Ob'),\n \t array('id' => '36776','state_id' => '3038','name' => 'Suzun'),\n \t array('id' => '36777','state_id' => '3038','name' => 'Tatarsk'),\n \t array('id' => '36778','state_id' => '3038','name' => 'Toguchin'),\n \t array('id' => '36779','state_id' => '3039','name' => 'Bolsherechje'),\n \t array('id' => '36780','state_id' => '3039','name' => 'Cherlak'),\n \t array('id' => '36781','state_id' => '3039','name' => 'Isilkul'),\n \t array('id' => '36782','state_id' => '3039','name' => 'Kalachinsk'),\n \t array('id' => '36783','state_id' => '3039','name' => 'Kormilovka'),\n \t array('id' => '36784','state_id' => '3039','name' => 'Ljubinskij'),\n \t array('id' => '36785','state_id' => '3039','name' => 'Moskaljoni'),\n \t array('id' => '36786','state_id' => '3039','name' => 'Muromcevo'),\n \t array('id' => '36787','state_id' => '3039','name' => 'Nazyvajevsk'),\n \t array('id' => '36788','state_id' => '3039','name' => 'Omsk'),\n \t array('id' => '36789','state_id' => '3039','name' => 'Tara'),\n \t array('id' => '36790','state_id' => '3039','name' => 'Tavricheskoje'),\n \t array('id' => '36791','state_id' => '3039','name' => 'Tjukalinsk'),\n \t array('id' => '36792','state_id' => '3040','name' => 'Abdulino'),\n \t array('id' => '36793','state_id' => '3040','name' => 'Buguruslan'),\n \t array('id' => '36794','state_id' => '3040','name' => 'Buzuluk'),\n \t array('id' => '36795','state_id' => '3040','name' => 'Jasnyj'),\n \t array('id' => '36796','state_id' => '3040','name' => 'Komarovskiy'),\n \t array('id' => '36797','state_id' => '3040','name' => 'Kuvandyk'),\n \t array('id' => '36798','state_id' => '3040','name' => 'Mednogorsk'),\n \t array('id' => '36799','state_id' => '3040','name' => 'Novotroick'),\n \t array('id' => '36800','state_id' => '3040','name' => 'Orenburg'),\n \t array('id' => '36801','state_id' => '3040','name' => 'Orsk'),\n \t array('id' => '36802','state_id' => '3040','name' => 'Sol-Ileck'),\n \t array('id' => '36803','state_id' => '3040','name' => 'Sorochinsk'),\n \t array('id' => '36804','state_id' => '3041','name' => 'Bolhov'),\n \t array('id' => '36805','state_id' => '3041','name' => 'Gaj'),\n \t array('id' => '36806','state_id' => '3041','name' => 'Livny'),\n \t array('id' => '36807','state_id' => '3041','name' => 'Mcensk'),\n \t array('id' => '36808','state_id' => '3041','name' => 'Orjol'),\n \t array('id' => '36809','state_id' => '3041','name' => 'Znamenka'),\n \t array('id' => '36810','state_id' => '3042','name' => 'Bashmakovo'),\n \t array('id' => '36811','state_id' => '3042','name' => 'Bekovo'),\n \t array('id' => '36812','state_id' => '3042','name' => 'Belinskiy'),\n \t array('id' => '36813','state_id' => '3042','name' => 'Kamenka'),\n \t array('id' => '36814','state_id' => '3042','name' => 'Kolyshlej'),\n \t array('id' => '36815','state_id' => '3042','name' => 'Kuzneck'),\n \t array('id' => '36816','state_id' => '3042','name' => 'Mokshan'),\n \t array('id' => '36817','state_id' => '3042','name' => 'Nikolsk'),\n \t array('id' => '36818','state_id' => '3042','name' => 'Nizhnij Lomov'),\n \t array('id' => '36819','state_id' => '3042','name' => 'Pachelma'),\n \t array('id' => '36820','state_id' => '3042','name' => 'Penza'),\n \t array('id' => '36821','state_id' => '3042','name' => 'Serdobsk'),\n \t array('id' => '36822','state_id' => '3042','name' => 'Sursk'),\n \t array('id' => '36823','state_id' => '3042','name' => 'Zarechnyj'),\n \t array('id' => '36824','state_id' => '3042','name' => 'Zemetchino'),\n \t array('id' => '36825','state_id' => '3043','name' => 'Aleksandrovsk'),\n \t array('id' => '36826','state_id' => '3043','name' => 'Berezniki'),\n \t array('id' => '36827','state_id' => '3043','name' => 'Chajkovskij'),\n \t array('id' => '36828','state_id' => '3043','name' => 'Chermoz'),\n \t array('id' => '36829','state_id' => '3043','name' => 'Chernushka'),\n \t array('id' => '36830','state_id' => '3043','name' => 'Chusovoj'),\n \t array('id' => '36831','state_id' => '3043','name' => 'Dobrjanka'),\n \t array('id' => '36832','state_id' => '3043','name' => 'Gornozavodsk'),\n \t array('id' => '36833','state_id' => '3043','name' => 'Gremjachinsk'),\n \t array('id' => '36834','state_id' => '3043','name' => 'Gubaha'),\n \t array('id' => '36835','state_id' => '3043','name' => 'Jajva'),\n \t array('id' => '36836','state_id' => '3043','name' => 'Kizel'),\n \t array('id' => '36837','state_id' => '3043','name' => 'Komsomolsky'),\n \t array('id' => '36838','state_id' => '3043','name' => 'Krasnokamsk'),\n \t array('id' => '36839','state_id' => '3043','name' => 'Krasnovishersk'),\n \t array('id' => '36840','state_id' => '3043','name' => 'Kungur'),\n \t array('id' => '36841','state_id' => '3043','name' => 'Lysva'),\n \t array('id' => '36842','state_id' => '3043','name' => 'Novye Ljady'),\n \t array('id' => '36843','state_id' => '3043','name' => 'Nytva'),\n \t array('id' => '36844','state_id' => '3043','name' => 'Ocher'),\n \t array('id' => '36845','state_id' => '3043','name' => 'Oktjabrskij'),\n \t array('id' => '36846','state_id' => '3043','name' => 'Osa'),\n \t array('id' => '36847','state_id' => '3043','name' => 'Pashija'),\n \t array('id' => '36848','state_id' => '3043','name' => 'Perm'),\n \t array('id' => '36849','state_id' => '3043','name' => 'Polazna'),\n \t array('id' => '36850','state_id' => '3043','name' => 'Skalnyj'),\n \t array('id' => '36851','state_id' => '3043','name' => 'Solikamsk'),\n \t array('id' => '36852','state_id' => '3043','name' => 'Ugleuralskij'),\n \t array('id' => '36853','state_id' => '3043','name' => 'Uralskij'),\n \t array('id' => '36854','state_id' => '3043','name' => 'Usolje'),\n \t array('id' => '36855','state_id' => '3043','name' => 'Vereshchagino'),\n \t array('id' => '36856','state_id' => '3043','name' => 'Zvjozdnyj'),\n \t array('id' => '36857','state_id' => '3044','name' => 'Arsenjev'),\n \t array('id' => '36858','state_id' => '3044','name' => 'Artjom'),\n \t array('id' => '36859','state_id' => '3044','name' => 'Artjomovskij'),\n \t array('id' => '36860','state_id' => '3044','name' => 'Bolshoj Kamen'),\n \t array('id' => '36861','state_id' => '3044','name' => 'Dalnegorsk'),\n \t array('id' => '36862','state_id' => '3044','name' => 'Dalnerechensk'),\n \t array('id' => '36863','state_id' => '3044','name' => 'Dunaj'),\n \t array('id' => '36864','state_id' => '3044','name' => 'Fokino'),\n \t array('id' => '36865','state_id' => '3044','name' => 'Jaroslavskij'),\n \t array('id' => '36866','state_id' => '3044','name' => 'Kavalerovo'),\n \t array('id' => '36867','state_id' => '3044','name' => 'Kirovskiy'),\n \t array('id' => '36868','state_id' => '3044','name' => 'Lesozavodsk'),\n \t array('id' => '36869','state_id' => '3044','name' => 'Lipovcy'),\n \t array('id' => '36870','state_id' => '3044','name' => 'Livadija'),\n \t array('id' => '36871','state_id' => '3044','name' => 'Luchegorsk'),\n \t array('id' => '36872','state_id' => '3044','name' => 'Nahodka'),\n \t array('id' => '36873','state_id' => '3044','name' => 'Novoshahtinskij'),\n \t array('id' => '36874','state_id' => '3044','name' => 'Partizansk'),\n \t array('id' => '36875','state_id' => '3044','name' => 'Pogranichnyj'),\n \t array('id' => '36876','state_id' => '3044','name' => 'Preobrazhenie'),\n \t array('id' => '36877','state_id' => '3044','name' => 'Putjatin'),\n \t array('id' => '36878','state_id' => '3044','name' => 'Sibircevo'),\n \t array('id' => '36879','state_id' => '3044','name' => 'Slavjanka'),\n \t array('id' => '36880','state_id' => '3044','name' => 'Spassk-Dalnij'),\n \t array('id' => '36881','state_id' => '3044','name' => 'Tavrichanka'),\n \t array('id' => '36882','state_id' => '3044','name' => 'Trudovoe'),\n \t array('id' => '36883','state_id' => '3044','name' => 'Uglekamensk'),\n \t array('id' => '36884','state_id' => '3044','name' => 'Uglovoe'),\n \t array('id' => '36885','state_id' => '3044','name' => 'Ussurijsk'),\n \t array('id' => '36886','state_id' => '3044','name' => 'Vladivostok'),\n \t array('id' => '36887','state_id' => '3044','name' => 'Vrangel'),\n \t array('id' => '36888','state_id' => '3044','name' => 'Zavodskoj'),\n \t array('id' => '36889','state_id' => '3045','name' => 'Dedovichi'),\n \t array('id' => '36890','state_id' => '3045','name' => 'Dno'),\n \t array('id' => '36891','state_id' => '3045','name' => 'Nevel'),\n \t array('id' => '36892','state_id' => '3045','name' => 'Novosokolniki'),\n \t array('id' => '36893','state_id' => '3045','name' => 'Opochka'),\n \t array('id' => '36894','state_id' => '3045','name' => 'Ostrov'),\n \t array('id' => '36895','state_id' => '3045','name' => 'Pechory'),\n \t array('id' => '36896','state_id' => '3045','name' => 'Porhov'),\n \t array('id' => '36897','state_id' => '3045','name' => 'Pskov'),\n \t array('id' => '36898','state_id' => '3045','name' => 'Sebezh'),\n \t array('id' => '36899','state_id' => '3045','name' => 'Strugi-Krasnye'),\n \t array('id' => '36900','state_id' => '3045','name' => 'Velikije Luki'),\n \t array('id' => '36901','state_id' => '3047','name' => 'Kasimov'),\n \t array('id' => '36902','state_id' => '3047','name' => 'Korablino'),\n \t array('id' => '36903','state_id' => '3047','name' => 'Mihajlov'),\n \t array('id' => '36904','state_id' => '3047','name' => 'Novomichurinsk'),\n \t array('id' => '36905','state_id' => '3047','name' => 'Rjazan'),\n \t array('id' => '36906','state_id' => '3047','name' => 'Rjazhsk'),\n \t array('id' => '36907','state_id' => '3047','name' => 'Rybnoje'),\n \t array('id' => '36908','state_id' => '3047','name' => 'Sasovo'),\n \t array('id' => '36909','state_id' => '3047','name' => 'Shilovo'),\n \t array('id' => '36910','state_id' => '3047','name' => 'Skopin'),\n \t array('id' => '36911','state_id' => '3048','name' => 'Ajutinskij'),\n \t array('id' => '36912','state_id' => '3048','name' => 'Aksaj'),\n \t array('id' => '36913','state_id' => '3048','name' => 'Azov'),\n \t array('id' => '36914','state_id' => '3048','name' => 'Batajsk'),\n \t array('id' => '36915','state_id' => '3048','name' => 'Belaja Kalitva'),\n \t array('id' => '36916','state_id' => '3048','name' => 'Cimljansk'),\n \t array('id' => '36917','state_id' => '3048','name' => 'Doneck'),\n \t array('id' => '36918','state_id' => '3048','name' => 'Donskoj'),\n \t array('id' => '36919','state_id' => '3048','name' => 'Gigant'),\n \t array('id' => '36920','state_id' => '3048','name' => 'Glubokij'),\n \t array('id' => '36921','state_id' => '3048','name' => 'Gornjackij'),\n \t array('id' => '36922','state_id' => '3048','name' => 'Gukovo'),\n \t array('id' => '36923','state_id' => '3048','name' => 'Kamenolomni'),\n \t array('id' => '36924','state_id' => '3048','name' => 'Kamensk-Shahtinskij'),\n \t array('id' => '36925','state_id' => '3048','name' => 'Konstantinovsk'),\n \t array('id' => '36926','state_id' => '3048','name' => 'Krasnyj Sulin'),\n \t array('id' => '36927','state_id' => '3048','name' => 'Lihovskoj'),\n \t array('id' => '36928','state_id' => '3048','name' => 'Majskij'),\n \t array('id' => '36929','state_id' => '3048','name' => 'Millerovo'),\n \t array('id' => '36930','state_id' => '3048','name' => 'Morozovsk'),\n \t array('id' => '36931','state_id' => '3048','name' => 'Novocherkassk'),\n \t array('id' => '36932','state_id' => '3048','name' => 'Novoshahtinsk'),\n \t array('id' => '36933','state_id' => '3048','name' => 'Proletarsk'),\n \t array('id' => '36934','state_id' => '3048','name' => 'Rostov'),\n \t array('id' => '36935','state_id' => '3048','name' => 'Rostov-na-Donu'),\n \t array('id' => '36936','state_id' => '3048','name' => 'Salsk'),\n \t array('id' => '36937','state_id' => '3048','name' => 'Semikarakorsk'),\n \t array('id' => '36938','state_id' => '3048','name' => 'Shahty'),\n \t array('id' => '36939','state_id' => '3048','name' => 'Sholohovskij'),\n \t array('id' => '36940','state_id' => '3048','name' => 'Sinegorskij'),\n \t array('id' => '36941','state_id' => '3048','name' => 'Sokolovo'),\n \t array('id' => '36942','state_id' => '3048','name' => 'Taganrog'),\n \t array('id' => '36943','state_id' => '3048','name' => 'Ust-Doneckij'),\n \t array('id' => '36944','state_id' => '3048','name' => 'Volgodonsk'),\n \t array('id' => '36945','state_id' => '3048','name' => 'Zernograd'),\n \t array('id' => '36946','state_id' => '3048','name' => 'Zhirnov'),\n \t array('id' => '36947','state_id' => '3048','name' => 'Zverevo'),\n \t array('id' => '36948','state_id' => '3049','name' => 'Ajhan'),\n \t array('id' => '36949','state_id' => '3049','name' => 'Aldan'),\n \t array('id' => '36950','state_id' => '3049','name' => 'Cherskij'),\n \t array('id' => '36951','state_id' => '3049','name' => 'Chulman'),\n \t array('id' => '36952','state_id' => '3049','name' => 'Deputatskij'),\n \t array('id' => '36953','state_id' => '3049','name' => 'Jakutsk'),\n \t array('id' => '36954','state_id' => '3049','name' => 'Lensk'),\n \t array('id' => '36955','state_id' => '3049','name' => 'Marha'),\n \t array('id' => '36956','state_id' => '3049','name' => 'Mirnyj'),\n \t array('id' => '36957','state_id' => '3049','name' => 'Nerjungri'),\n \t array('id' => '36958','state_id' => '3049','name' => 'Njurba'),\n \t array('id' => '36959','state_id' => '3049','name' => 'Oljokminsk'),\n \t array('id' => '36960','state_id' => '3049','name' => 'Pokrovsk'),\n \t array('id' => '36961','state_id' => '3049','name' => 'Sangar'),\n \t array('id' => '36962','state_id' => '3049','name' => 'Serebrjanyj Bor'),\n \t array('id' => '36963','state_id' => '3049','name' => 'Tiksi'),\n \t array('id' => '36964','state_id' => '3049','name' => 'Tommot'),\n \t array('id' => '36965','state_id' => '3049','name' => 'Udachnyj'),\n \t array('id' => '36966','state_id' => '3049','name' => 'Ust-Nera'),\n \t array('id' => '36967','state_id' => '3049','name' => 'Verhojansk'),\n \t array('id' => '36968','state_id' => '3049','name' => 'Viljujsk'),\n \t array('id' => '36969','state_id' => '3050','name' => 'Aleksandrovsk-Sahalinskij'),\n \t array('id' => '36970','state_id' => '3050','name' => 'Dolinsk'),\n \t array('id' => '36971','state_id' => '3050','name' => 'Gornozavodsk'),\n \t array('id' => '36972','state_id' => '3050','name' => 'Holmsk'),\n \t array('id' => '36973','state_id' => '3050','name' => 'Juzhno-Sahalinsk'),\n \t array('id' => '36974','state_id' => '3050','name' => 'Korsakov'),\n \t array('id' => '36975','state_id' => '3050','name' => 'Makarov'),\n \t array('id' => '36976','state_id' => '3050','name' => 'Nevelsk'),\n \t array('id' => '36977','state_id' => '3050','name' => 'Nogliki'),\n \t array('id' => '36978','state_id' => '3050','name' => 'Oha'),\n \t array('id' => '36979','state_id' => '3050','name' => 'Poronajsk'),\n \t array('id' => '36980','state_id' => '3050','name' => 'Shahtjorsk'),\n \t array('id' => '36981','state_id' => '3050','name' => 'Tymovskoje'),\n \t array('id' => '36982','state_id' => '3050','name' => 'Uglegorsk'),\n \t array('id' => '36983','state_id' => '3051','name' => 'Aleksejevka'),\n \t array('id' => '36984','state_id' => '3051','name' => 'Bezenchuk'),\n \t array('id' => '36985','state_id' => '3051','name' => 'Chapajevsk'),\n \t array('id' => '36986','state_id' => '3051','name' => 'Fjodorovka'),\n \t array('id' => '36987','state_id' => '3051','name' => 'Kinel'),\n \t array('id' => '36988','state_id' => '3051','name' => 'Mirnyj'),\n \t array('id' => '36989','state_id' => '3051','name' => 'Novokujbyshevsk'),\n \t array('id' => '36990','state_id' => '3051','name' => 'Novosemejkino'),\n \t array('id' => '36991','state_id' => '3051','name' => 'Oktjabrsk'),\n \t array('id' => '36992','state_id' => '3051','name' => 'Otradnyj'),\n \t array('id' => '36993','state_id' => '3051','name' => 'Pohvistnevo'),\n \t array('id' => '36994','state_id' => '3051','name' => 'Povolzhskij'),\n \t array('id' => '36995','state_id' => '3051','name' => 'Pribrezhnyj'),\n \t array('id' => '36996','state_id' => '3051','name' => 'Roscinskij'),\n \t array('id' => '36997','state_id' => '3051','name' => 'Samara'),\n \t array('id' => '36998','state_id' => '3051','name' => 'Smyshljaevka'),\n \t array('id' => '36999','state_id' => '3051','name' => 'Suhodol'),\n \t array('id' => '37000','state_id' => '3051','name' => 'Syzran'),\n \t array('id' => '37001','state_id' => '3051','name' => 'Timashjovo'),\n \t array('id' => '37002','state_id' => '3051','name' => 'Toljatti'),\n \t array('id' => '37003','state_id' => '3051','name' => 'Zhigulevsk'),\n \t array('id' => '37004','state_id' => '3052','name' => 'Togliatti'),\n \t array('id' => '37005','state_id' => '3053','name' => 'Saint Petersburg'),\n \t array('id' => '37006','state_id' => '3053','name' => 'Sankt Peterburg'),\n \t array('id' => '37007','state_id' => '3054','name' => 'Arkadak'),\n \t array('id' => '37008','state_id' => '3054','name' => 'Atkarsk'),\n \t array('id' => '37009','state_id' => '3054','name' => 'Balakovo'),\n \t array('id' => '37010','state_id' => '3054','name' => 'Balashov'),\n \t array('id' => '37011','state_id' => '3054','name' => 'Bazarnyj Karabulak'),\n \t array('id' => '37012','state_id' => '3054','name' => 'Dergachi'),\n \t array('id' => '37013','state_id' => '3054','name' => 'Engels'),\n \t array('id' => '37014','state_id' => '3054','name' => 'Hvalynsk'),\n \t array('id' => '37015','state_id' => '3054','name' => 'Jershov'),\n \t array('id' => '37016','state_id' => '3054','name' => 'Kalininsk'),\n \t array('id' => '37017','state_id' => '3054','name' => 'Krasnoarmejsk'),\n \t array('id' => '37018','state_id' => '3054','name' => 'Krasnyj Kut'),\n \t array('id' => '37019','state_id' => '3054','name' => 'Marks'),\n \t array('id' => '37020','state_id' => '3054','name' => 'Novouzensk'),\n \t array('id' => '37021','state_id' => '3054','name' => 'Ozinki'),\n \t array('id' => '37022','state_id' => '3054','name' => 'Petrovsk'),\n \t array('id' => '37023','state_id' => '3054','name' => 'Privolzhskij'),\n \t array('id' => '37024','state_id' => '3054','name' => 'Pugachjov'),\n \t array('id' => '37025','state_id' => '3054','name' => 'Rtishchevo'),\n \t array('id' => '37026','state_id' => '3054','name' => 'Saratov'),\n \t array('id' => '37027','state_id' => '3054','name' => 'Shihany'),\n \t array('id' => '37028','state_id' => '3054','name' => 'Stepnoe'),\n \t array('id' => '37029','state_id' => '3054','name' => 'Svetlyj'),\n \t array('id' => '37030','state_id' => '3054','name' => 'Tatishchevo'),\n \t array('id' => '37031','state_id' => '3054','name' => 'Volsk'),\n \t array('id' => '37032','state_id' => '3055','name' => 'Demidov'),\n \t array('id' => '37033','state_id' => '3055','name' => 'Desnogorsk'),\n \t array('id' => '37034','state_id' => '3055','name' => 'Dorogobuzh'),\n \t array('id' => '37035','state_id' => '3055','name' => 'Gagarin'),\n \t array('id' => '37036','state_id' => '3055','name' => 'Hislavichi'),\n \t array('id' => '37037','state_id' => '3055','name' => 'Jarcevo'),\n \t array('id' => '37038','state_id' => '3055','name' => 'Jelnja'),\n \t array('id' => '37039','state_id' => '3055','name' => 'Pochinok'),\n \t array('id' => '37040','state_id' => '3055','name' => 'Roslavl'),\n \t array('id' => '37041','state_id' => '3055','name' => 'Rudnja'),\n \t array('id' => '37042','state_id' => '3055','name' => 'Safonovo'),\n \t array('id' => '37043','state_id' => '3055','name' => 'Smolensk'),\n \t array('id' => '37044','state_id' => '3055','name' => 'Verhnedneprovskij'),\n \t array('id' => '37045','state_id' => '3055','name' => 'Vjazma'),\n \t array('id' => '37046','state_id' => '3056','name' => 'Blagodarnyj'),\n \t array('id' => '37047','state_id' => '3056','name' => 'Budjonnovsk'),\n \t array('id' => '37048','state_id' => '3056','name' => 'Georgijevsk'),\n \t array('id' => '37049','state_id' => '3056','name' => 'Gorjachevodskij'),\n \t array('id' => '37050','state_id' => '3056','name' => 'Inozemcevo'),\n \t array('id' => '37051','state_id' => '3056','name' => 'Ipatovo'),\n \t array('id' => '37052','state_id' => '3056','name' => 'Izobilnyj'),\n \t array('id' => '37053','state_id' => '3056','name' => 'Jessentuki'),\n \t array('id' => '37054','state_id' => '3056','name' => 'Kislovodsk'),\n \t array('id' => '37055','state_id' => '3056','name' => 'Lermontov'),\n \t array('id' => '37056','state_id' => '3056','name' => 'Mihajlovsk'),\n \t array('id' => '37057','state_id' => '3056','name' => 'Mineralnyje Vody'),\n \t array('id' => '37058','state_id' => '3056','name' => 'Neftekumsk'),\n \t array('id' => '37059','state_id' => '3056','name' => 'Nevinnomyssk'),\n \t array('id' => '37060','state_id' => '3056','name' => 'Novoaleksandrovsk'),\n \t array('id' => '37061','state_id' => '3056','name' => 'Novopavlovsk'),\n \t array('id' => '37062','state_id' => '3056','name' => 'Pjatigorsk'),\n \t array('id' => '37063','state_id' => '3056','name' => 'Solnechnodolsk'),\n \t array('id' => '37064','state_id' => '3056','name' => 'Stavropol'),\n \t array('id' => '37065','state_id' => '3056','name' => 'Svetlograd'),\n \t array('id' => '37066','state_id' => '3056','name' => 'Svobody'),\n \t array('id' => '37067','state_id' => '3056','name' => 'Zeljenokumsk'),\n \t array('id' => '37068','state_id' => '3056','name' => 'Zheleznovodsk'),\n \t array('id' => '37069','state_id' => '3057','name' => 'Alapajevsk'),\n \t array('id' => '37070','state_id' => '3057','name' => 'Aramil'),\n \t array('id' => '37071','state_id' => '3057','name' => 'Arti'),\n \t array('id' => '37072','state_id' => '3057','name' => 'Artjomovskij'),\n \t array('id' => '37073','state_id' => '3057','name' => 'Asbest'),\n \t array('id' => '37074','state_id' => '3057','name' => 'Baranchinskij'),\n \t array('id' => '37075','state_id' => '3057','name' => 'Belojarskij'),\n \t array('id' => '37076','state_id' => '3057','name' => 'Berjozovskij'),\n \t array('id' => '37077','state_id' => '3057','name' => 'Bisert'),\n \t array('id' => '37078','state_id' => '3057','name' => 'Bogdanovich'),\n \t array('id' => '37079','state_id' => '3057','name' => 'Bulanash'),\n \t array('id' => '37080','state_id' => '3057','name' => 'Degtjarsk'),\n \t array('id' => '37081','state_id' => '3057','name' => 'Ekaterinburg'),\n \t array('id' => '37082','state_id' => '3057','name' => 'Irbit'),\n \t array('id' => '37083','state_id' => '3057','name' => 'Ivdel'),\n \t array('id' => '37084','state_id' => '3057','name' => 'Izumrud'),\n \t array('id' => '37085','state_id' => '3057','name' => 'Jekaterinburg'),\n \t array('id' => '37086','state_id' => '3057','name' => 'Kachkanar'),\n \t array('id' => '37087','state_id' => '3057','name' => 'Kamensk-Uralskij'),\n \t array('id' => '37088','state_id' => '3057','name' => 'Kamyshlov'),\n \t array('id' => '37089','state_id' => '3057','name' => 'Karpinsk'),\n \t array('id' => '37090','state_id' => '3057','name' => 'Kirovgrad'),\n \t array('id' => '37091','state_id' => '3057','name' => 'Kolcovo'),\n \t array('id' => '37092','state_id' => '3057','name' => 'Krasnoturinsk'),\n \t array('id' => '37093','state_id' => '3057','name' => 'Krasnoufimsk'),\n \t array('id' => '37094','state_id' => '3057','name' => 'Krasnouralsk'),\n \t array('id' => '37095','state_id' => '3057','name' => 'Kushva'),\n \t array('id' => '37096','state_id' => '3057','name' => 'Lesnoj'),\n \t array('id' => '37097','state_id' => '3057','name' => 'Leviha'),\n \t array('id' => '37098','state_id' => '3057','name' => 'Lobva'),\n \t array('id' => '37099','state_id' => '3057','name' => 'Malysheva'),\n \t array('id' => '37100','state_id' => '3057','name' => 'Mihajlovsk'),\n \t array('id' => '37101','state_id' => '3057','name' => 'Monetnyj'),\n \t array('id' => '37102','state_id' => '3057','name' => 'Nevjansk'),\n \t array('id' => '37103','state_id' => '3057','name' => 'Nizhnie Sergi'),\n \t array('id' => '37104','state_id' => '3057','name' => 'Nizhnij Tagil'),\n \t array('id' => '37105','state_id' => '3057','name' => 'Nizhnjaja Salda'),\n \t array('id' => '37106','state_id' => '3057','name' => 'Nizhnjaja Tura'),\n \t array('id' => '37107','state_id' => '3057','name' => 'Novaja Ljalja'),\n \t array('id' => '37108','state_id' => '3057','name' => 'Novouralsk'),\n \t array('id' => '37109','state_id' => '3057','name' => 'Pervouralsk'),\n \t array('id' => '37110','state_id' => '3057','name' => 'Polevskoj'),\n \t array('id' => '37111','state_id' => '3057','name' => 'Pyshma'),\n \t array('id' => '37112','state_id' => '3057','name' => 'Pyt-Jah'),\n \t array('id' => '37113','state_id' => '3057','name' => 'Reftinskij'),\n \t array('id' => '37114','state_id' => '3057','name' => 'Revda'),\n \t array('id' => '37115','state_id' => '3057','name' => 'Rezh'),\n \t array('id' => '37116','state_id' => '3057','name' => 'Serov'),\n \t array('id' => '37117','state_id' => '3057','name' => 'Severouralsk'),\n \t array('id' => '37118','state_id' => '3057','name' => 'Sosva'),\n \t array('id' => '37119','state_id' => '3057','name' => 'Sredneuralsk'),\n \t array('id' => '37120','state_id' => '3057','name' => 'Suhoj Log'),\n \t array('id' => '37121','state_id' => '3057','name' => 'Svobodnyj'),\n \t array('id' => '37122','state_id' => '3057','name' => 'Sysert'),\n \t array('id' => '37123','state_id' => '3057','name' => 'Talica'),\n \t array('id' => '37124','state_id' => '3057','name' => 'Tavda'),\n \t array('id' => '37125','state_id' => '3057','name' => 'Troickij'),\n \t array('id' => '37126','state_id' => '3057','name' => 'Turinsk'),\n \t array('id' => '37127','state_id' => '3057','name' => 'Uralskij'),\n \t array('id' => '37128','state_id' => '3057','name' => 'Verhnij Tagil'),\n \t array('id' => '37129','state_id' => '3057','name' => 'Verhnjaja Pyshma'),\n \t array('id' => '37130','state_id' => '3057','name' => 'Verhnjaja Salda'),\n \t array('id' => '37131','state_id' => '3057','name' => 'Verhnjaja Sinyachiha'),\n \t array('id' => '37132','state_id' => '3057','name' => 'Verhnjaja Tura'),\n \t array('id' => '37133','state_id' => '3057','name' => 'Verhoturje'),\n \t array('id' => '37134','state_id' => '3057','name' => 'Volchansk'),\n \t array('id' => '37135','state_id' => '3057','name' => 'Yekaterinburg'),\n \t array('id' => '37136','state_id' => '3057','name' => 'Zarechnyj'),\n \t array('id' => '37137','state_id' => '3057','name' => 'Zjuzelskij'),\n \t array('id' => '37138','state_id' => '3058','name' => 'Dudinka'),\n \t array('id' => '37139','state_id' => '3059','name' => 'Dmitrievka'),\n \t array('id' => '37140','state_id' => '3059','name' => 'Inzhavino'),\n \t array('id' => '37141','state_id' => '3059','name' => 'Kirsanov'),\n \t array('id' => '37142','state_id' => '3059','name' => 'Kotovsk'),\n \t array('id' => '37143','state_id' => '3059','name' => 'Michurinsk'),\n \t array('id' => '37144','state_id' => '3059','name' => 'Morshansk'),\n \t array('id' => '37145','state_id' => '3059','name' => 'Pervomajskij'),\n \t array('id' => '37146','state_id' => '3059','name' => 'Rasskazovo'),\n \t array('id' => '37147','state_id' => '3059','name' => 'Sosnovka'),\n \t array('id' => '37148','state_id' => '3059','name' => 'Tambov'),\n \t array('id' => '37149','state_id' => '3059','name' => 'Uvarovo'),\n \t array('id' => '37150','state_id' => '3059','name' => 'Zherdevka'),\n \t array('id' => '37151','state_id' => '3059','name' => 'Znamenka'),\n \t array('id' => '37152','state_id' => '3060','name' => 'Agryz'),\n \t array('id' => '37153','state_id' => '3060','name' => 'Aksubajevo'),\n \t array('id' => '37154','state_id' => '3060','name' => 'Aktjubinskij'),\n \t array('id' => '37155','state_id' => '3060','name' => 'Aleksejevskoje'),\n \t array('id' => '37156','state_id' => '3060','name' => 'Almetjevsk'),\n \t array('id' => '37157','state_id' => '3060','name' => 'Arsk'),\n \t array('id' => '37158','state_id' => '3060','name' => 'Aznakajevo'),\n \t array('id' => '37159','state_id' => '3060','name' => 'Bavly'),\n \t array('id' => '37160','state_id' => '3060','name' => 'Bugulma'),\n \t array('id' => '37161','state_id' => '3060','name' => 'Buinsk'),\n \t array('id' => '37162','state_id' => '3060','name' => 'Chistopol'),\n \t array('id' => '37163','state_id' => '3060','name' => 'Dzhalil'),\n \t array('id' => '37164','state_id' => '3060','name' => 'Jelabuga'),\n \t array('id' => '37165','state_id' => '3060','name' => 'Kamskie Poljany'),\n \t array('id' => '37166','state_id' => '3060','name' => 'Kazan'),\n \t array('id' => '37167','state_id' => '3060','name' => 'Kukmor'),\n \t array('id' => '37168','state_id' => '3060','name' => 'Leninogorsk'),\n \t array('id' => '37169','state_id' => '3060','name' => 'Mamadysh'),\n \t array('id' => '37170','state_id' => '3060','name' => 'Mendelejevsk'),\n \t array('id' => '37171','state_id' => '3060','name' => 'Menzelinsk'),\n \t array('id' => '37172','state_id' => '3060','name' => 'Naberezhnyje Chelny'),\n \t array('id' => '37173','state_id' => '3060','name' => 'Nizhnekamsk'),\n \t array('id' => '37174','state_id' => '3060','name' => 'Niznjaja Maktama'),\n \t array('id' => '37175','state_id' => '3060','name' => 'Nurlat'),\n \t array('id' => '37176','state_id' => '3060','name' => 'Tetjushi'),\n \t array('id' => '37177','state_id' => '3060','name' => 'Urussu'),\n \t array('id' => '37178','state_id' => '3060','name' => 'Vasiljevo'),\n \t array('id' => '37179','state_id' => '3060','name' => 'Zainsk'),\n \t array('id' => '37180','state_id' => '3060','name' => 'Zeljonodolsk'),\n \t array('id' => '37181','state_id' => '3061','name' => 'Bogandinskij'),\n \t array('id' => '37182','state_id' => '3061','name' => 'Borovskij'),\n \t array('id' => '37183','state_id' => '3061','name' => 'Golyshmanovo'),\n \t array('id' => '37184','state_id' => '3061','name' => 'Ishim'),\n \t array('id' => '37185','state_id' => '3061','name' => 'Jalutorovosk'),\n \t array('id' => '37186','state_id' => '3061','name' => 'Tjumen'),\n \t array('id' => '37187','state_id' => '3061','name' => 'Tobolsk'),\n \t array('id' => '37188','state_id' => '3061','name' => 'Vinzili'),\n \t array('id' => '37189','state_id' => '3061','name' => 'Zavodoukovsk'),\n \t array('id' => '37190','state_id' => '3062','name' => 'Asino'),\n \t array('id' => '37191','state_id' => '3062','name' => 'Jaja'),\n \t array('id' => '37192','state_id' => '3062','name' => 'Kolpashevo'),\n \t array('id' => '37193','state_id' => '3062','name' => 'Seversk'),\n \t array('id' => '37194','state_id' => '3062','name' => 'Strezhevoj'),\n \t array('id' => '37195','state_id' => '3062','name' => 'Tomsk'),\n \t array('id' => '37196','state_id' => '3063','name' => 'Agejevo'),\n \t array('id' => '37197','state_id' => '3063','name' => 'Aleksin'),\n \t array('id' => '37198','state_id' => '3063','name' => 'Beljov'),\n \t array('id' => '37199','state_id' => '3063','name' => 'Bogoroditsk'),\n \t array('id' => '37200','state_id' => '3063','name' => 'Bolohovo'),\n \t array('id' => '37201','state_id' => '3063','name' => 'Donskoj'),\n \t array('id' => '37202','state_id' => '3063','name' => 'Dubovka'),\n \t array('id' => '37203','state_id' => '3063','name' => 'Jasnogorsk'),\n \t array('id' => '37204','state_id' => '3063','name' => 'Jefremov'),\n \t array('id' => '37205','state_id' => '3063','name' => 'Kimovsk'),\n \t array('id' => '37206','state_id' => '3063','name' => 'Kirejevsk'),\n \t array('id' => '37207','state_id' => '3063','name' => 'Kosaja Gora'),\n \t array('id' => '37208','state_id' => '3063','name' => 'Leninskij'),\n \t array('id' => '37209','state_id' => '3063','name' => 'Lipki'),\n \t array('id' => '37210','state_id' => '3063','name' => 'Mendelejevskij'),\n \t array('id' => '37211','state_id' => '3063','name' => 'Novomoskovsk'),\n \t array('id' => '37212','state_id' => '3063','name' => 'Pervomajskij'),\n \t array('id' => '37213','state_id' => '3063','name' => 'Plavsk'),\n \t array('id' => '37214','state_id' => '3063','name' => 'Severo-Zadonsk'),\n \t array('id' => '37215','state_id' => '3063','name' => 'Shchjokino'),\n \t array('id' => '37216','state_id' => '3063','name' => 'Skuratovskij'),\n \t array('id' => '37217','state_id' => '3063','name' => 'Sokolniki'),\n \t array('id' => '37218','state_id' => '3063','name' => 'Sovetsk'),\n \t array('id' => '37219','state_id' => '3063','name' => 'Suvorov'),\n \t array('id' => '37220','state_id' => '3063','name' => 'Tovarkovskij'),\n \t array('id' => '37221','state_id' => '3063','name' => 'Tula'),\n \t array('id' => '37222','state_id' => '3063','name' => 'Uzlovaja'),\n \t array('id' => '37223','state_id' => '3063','name' => 'Venjov'),\n \t array('id' => '37224','state_id' => '3064','name' => 'Andreapol'),\n \t array('id' => '37225','state_id' => '3064','name' => 'Bezheck'),\n \t array('id' => '37226','state_id' => '3064','name' => 'Bologoe'),\n \t array('id' => '37227','state_id' => '3064','name' => 'Kaljazin'),\n \t array('id' => '37228','state_id' => '3064','name' => 'Kashin'),\n \t array('id' => '37229','state_id' => '3064','name' => 'Kimry'),\n \t array('id' => '37230','state_id' => '3064','name' => 'Konakovo'),\n \t array('id' => '37231','state_id' => '3064','name' => 'Kuvshinovo'),\n \t array('id' => '37232','state_id' => '3064','name' => 'Lihoslavl'),\n \t array('id' => '37233','state_id' => '3064','name' => 'Maksatiha'),\n \t array('id' => '37234','state_id' => '3064','name' => 'Ostashkov'),\n \t array('id' => '37235','state_id' => '3064','name' => 'Ozjornyj'),\n \t array('id' => '37236','state_id' => '3064','name' => 'Pelidovo'),\n \t array('id' => '37237','state_id' => '3064','name' => 'Rameshki'),\n \t array('id' => '37238','state_id' => '3064','name' => 'Redkino'),\n \t array('id' => '37239','state_id' => '3064','name' => 'Rzhev'),\n \t array('id' => '37240','state_id' => '3064','name' => 'Solnechnyj'),\n \t array('id' => '37241','state_id' => '3064','name' => 'Starica'),\n \t array('id' => '37242','state_id' => '3064','name' => 'Toropec'),\n \t array('id' => '37243','state_id' => '3064','name' => 'Torzhok'),\n \t array('id' => '37244','state_id' => '3064','name' => 'Tver'),\n \t array('id' => '37245','state_id' => '3064','name' => 'Udomlja'),\n \t array('id' => '37246','state_id' => '3064','name' => 'Vyshnij Volochok'),\n \t array('id' => '37247','state_id' => '3064','name' => 'Zapadnaja Dvina'),\n \t array('id' => '37248','state_id' => '3065','name' => 'Ak-Dovurak'),\n \t array('id' => '37249','state_id' => '3065','name' => 'Kyzyl'),\n \t array('id' => '37250','state_id' => '3066','name' => 'Balezino'),\n \t array('id' => '37251','state_id' => '3066','name' => 'Glazov'),\n \t array('id' => '37252','state_id' => '3066','name' => 'Igra'),\n \t array('id' => '37253','state_id' => '3066','name' => 'Izhevsk'),\n \t array('id' => '37254','state_id' => '3066','name' => 'Kambarka'),\n \t array('id' => '37255','state_id' => '3066','name' => 'Kez'),\n \t array('id' => '37256','state_id' => '3066','name' => 'Kizner'),\n \t array('id' => '37257','state_id' => '3066','name' => 'Mozhga'),\n \t array('id' => '37258','state_id' => '3066','name' => 'Sarapul'),\n \t array('id' => '37259','state_id' => '3066','name' => 'Uva'),\n \t array('id' => '37260','state_id' => '3066','name' => 'Votkinsk'),\n \t array('id' => '37261','state_id' => '3067','name' => 'Barysh'),\n \t array('id' => '37262','state_id' => '3067','name' => 'Cherdakly'),\n \t array('id' => '37263','state_id' => '3067','name' => 'Dimitrovgrad'),\n \t array('id' => '37264','state_id' => '3067','name' => 'Inza'),\n \t array('id' => '37265','state_id' => '3067','name' => 'Isheevka'),\n \t array('id' => '37266','state_id' => '3067','name' => 'Novospasskoe'),\n \t array('id' => '37267','state_id' => '3067','name' => 'Novouljanovsk'),\n \t array('id' => '37268','state_id' => '3067','name' => 'Sengilej'),\n \t array('id' => '37269','state_id' => '3067','name' => 'Uljanovsk'),\n \t array('id' => '37270','state_id' => '3069','name' => 'Ust-Ordynskij'),\n \t array('id' => '37271','state_id' => '3070','name' => 'Aleksandrov'),\n \t array('id' => '37272','state_id' => '3070','name' => 'Balakirevo'),\n \t array('id' => '37273','state_id' => '3070','name' => 'Gorohovec'),\n \t array('id' => '37274','state_id' => '3070','name' => 'Gus-Hrustalnyj'),\n \t array('id' => '37275','state_id' => '3070','name' => 'Jurjev Polskij'),\n \t array('id' => '37276','state_id' => '3070','name' => 'Kameshkovo'),\n \t array('id' => '37277','state_id' => '3070','name' => 'Karabanovo'),\n \t array('id' => '37278','state_id' => '3070','name' => 'Kirzhach'),\n \t array('id' => '37279','state_id' => '3070','name' => 'Kolchugino'),\n \t array('id' => '37280','state_id' => '3070','name' => 'Kosterovo'),\n \t array('id' => '37281','state_id' => '3070','name' => 'Kovrov'),\n \t array('id' => '37282','state_id' => '3070','name' => 'Krasnaja Gorbatka'),\n \t array('id' => '37283','state_id' => '3070','name' => 'Krasnyj Oktjabr'),\n \t array('id' => '37284','state_id' => '3070','name' => 'Lakinsk'),\n \t array('id' => '37285','state_id' => '3070','name' => 'Melenki'),\n \t array('id' => '37286','state_id' => '3070','name' => 'Murom'),\n \t array('id' => '37287','state_id' => '3070','name' => 'Novovjazniki'),\n \t array('id' => '37288','state_id' => '3070','name' => 'Pokrov'),\n \t array('id' => '37289','state_id' => '3070','name' => 'Raduzhnyj'),\n \t array('id' => '37290','state_id' => '3070','name' => 'Sobinka'),\n \t array('id' => '37291','state_id' => '3070','name' => 'Strunino'),\n \t array('id' => '37292','state_id' => '3070','name' => 'Sudogda'),\n \t array('id' => '37293','state_id' => '3070','name' => 'Suzdal'),\n \t array('id' => '37294','state_id' => '3070','name' => 'Vjazniki'),\n \t array('id' => '37295','state_id' => '3070','name' => 'Vladimir'),\n \t array('id' => '37296','state_id' => '3071','name' => 'Dubovka'),\n \t array('id' => '37297','state_id' => '3071','name' => 'Frolovo'),\n \t array('id' => '37298','state_id' => '3071','name' => 'Gorkovskij'),\n \t array('id' => '37299','state_id' => '3071','name' => 'Gorodishche'),\n \t array('id' => '37300','state_id' => '3071','name' => 'Ilovlja'),\n \t array('id' => '37301','state_id' => '3071','name' => 'Jelan'),\n \t array('id' => '37302','state_id' => '3071','name' => 'Kalach-na-Donu'),\n \t array('id' => '37303','state_id' => '3071','name' => 'Kamyshin'),\n \t array('id' => '37304','state_id' => '3071','name' => 'Kotelnikovo'),\n \t array('id' => '37305','state_id' => '3071','name' => 'Kotovo'),\n \t array('id' => '37306','state_id' => '3071','name' => 'Krasnoslobodsk'),\n \t array('id' => '37307','state_id' => '3071','name' => 'Leninsk'),\n \t array('id' => '37308','state_id' => '3071','name' => 'Mihajlovka'),\n \t array('id' => '37309','state_id' => '3071','name' => 'Nikolajevsk'),\n \t array('id' => '37310','state_id' => '3071','name' => 'Nizhny Novgorod'),\n \t array('id' => '37311','state_id' => '3071','name' => 'Novoanninskij'),\n \t array('id' => '37312','state_id' => '3071','name' => 'Novonikolajevskij'),\n \t array('id' => '37313','state_id' => '3071','name' => 'Pallasovka'),\n \t array('id' => '37314','state_id' => '3071','name' => 'Petrov Val'),\n \t array('id' => '37315','state_id' => '3071','name' => 'Serafimovich'),\n \t array('id' => '37316','state_id' => '3071','name' => 'Surovikino'),\n \t array('id' => '37317','state_id' => '3071','name' => 'Svetlyj Jar'),\n \t array('id' => '37318','state_id' => '3071','name' => 'Urjupinsk'),\n \t array('id' => '37319','state_id' => '3071','name' => 'Volgograd'),\n \t array('id' => '37320','state_id' => '3071','name' => 'Volzhskij'),\n \t array('id' => '37321','state_id' => '3071','name' => 'Zhirnovsk'),\n \t array('id' => '37322','state_id' => '3072','name' => 'Babajevo'),\n \t array('id' => '37323','state_id' => '3072','name' => 'Belozjorsk'),\n \t array('id' => '37324','state_id' => '3072','name' => 'Cherepovec'),\n \t array('id' => '37325','state_id' => '3072','name' => 'Grjazovec'),\n \t array('id' => '37326','state_id' => '3072','name' => 'Harovsk'),\n \t array('id' => '37327','state_id' => '3072','name' => 'Kaduj'),\n \t array('id' => '37328','state_id' => '3072','name' => 'Krasavino'),\n \t array('id' => '37329','state_id' => '3072','name' => 'Sheksna'),\n \t array('id' => '37330','state_id' => '3072','name' => 'Sokol'),\n \t array('id' => '37331','state_id' => '3072','name' => 'Totma'),\n \t array('id' => '37332','state_id' => '3072','name' => 'Velikij Ustjug'),\n \t array('id' => '37333','state_id' => '3072','name' => 'Vologda'),\n \t array('id' => '37334','state_id' => '3072','name' => 'Vytegra'),\n \t array('id' => '37335','state_id' => '3073','name' => 'Anna'),\n \t array('id' => '37336','state_id' => '3073','name' => 'Bobrov'),\n \t array('id' => '37337','state_id' => '3073','name' => 'Boguchar'),\n \t array('id' => '37338','state_id' => '3073','name' => 'Borisoglebsk'),\n \t array('id' => '37339','state_id' => '3073','name' => 'Buturlinovka'),\n \t array('id' => '37340','state_id' => '3073','name' => 'Ertil'),\n \t array('id' => '37341','state_id' => '3073','name' => 'Gribanovskij'),\n \t array('id' => '37342','state_id' => '3073','name' => 'Kalach'),\n \t array('id' => '37343','state_id' => '3073','name' => 'Kamenka'),\n \t array('id' => '37344','state_id' => '3073','name' => 'Kantemirovka'),\n \t array('id' => '37345','state_id' => '3073','name' => 'Liski'),\n \t array('id' => '37346','state_id' => '3073','name' => 'Novohopjorsk'),\n \t array('id' => '37347','state_id' => '3073','name' => 'Novovoronezh'),\n \t array('id' => '37348','state_id' => '3073','name' => 'Ostrogozhsk'),\n \t array('id' => '37349','state_id' => '3073','name' => 'Pavlovsk'),\n \t array('id' => '37350','state_id' => '3073','name' => 'Povorino'),\n \t array('id' => '37351','state_id' => '3073','name' => 'Pridonskij'),\n \t array('id' => '37352','state_id' => '3073','name' => 'Rossosh'),\n \t array('id' => '37353','state_id' => '3073','name' => 'Semiluki'),\n \t array('id' => '37354','state_id' => '3073','name' => 'Somovo'),\n \t array('id' => '37355','state_id' => '3073','name' => 'Talovaja'),\n \t array('id' => '37356','state_id' => '3073','name' => 'Voronezh'),\n \t array('id' => '37357','state_id' => '3074','name' => 'Butare'),\n \t array('id' => '37358','state_id' => '3074','name' => 'Nyanza'),\n \t array('id' => '37359','state_id' => '3075','name' => 'Byumba'),\n \t array('id' => '37360','state_id' => '3076','name' => 'Cyangugu'),\n \t array('id' => '37361','state_id' => '3077','name' => 'Gikongoro'),\n \t array('id' => '37362','state_id' => '3078','name' => 'Gisenyi'),\n \t array('id' => '37363','state_id' => '3079','name' => 'Gitarama'),\n \t array('id' => '37364','state_id' => '3080','name' => 'Kibungo'),\n \t array('id' => '37365','state_id' => '3080','name' => 'Rwamagana'),\n \t array('id' => '37366','state_id' => '3081','name' => 'Kibuye'),\n \t array('id' => '37367','state_id' => '3082','name' => 'Kigali'),\n \t array('id' => '37368','state_id' => '3083','name' => 'Ruhengeri'),\n \t array('id' => '37369','state_id' => '3084','name' => 'Georgetown'),\n \t array('id' => '37370','state_id' => '3102','name' => 'Anse-la-Raye'),\n \t array('id' => '37371','state_id' => '3103','name' => 'Canaries'),\n \t array('id' => '37372','state_id' => '3104','name' => 'Castries'),\n \t array('id' => '37373','state_id' => '3104','name' => 'Choc'),\n \t array('id' => '37374','state_id' => '3105','name' => 'Choiseul'),\n \t array('id' => '37375','state_id' => '3106','name' => 'Dennery'),\n \t array('id' => '37376','state_id' => '3108','name' => 'Laborie'),\n \t array('id' => '37377','state_id' => '3109','name' => 'Micoud'),\n \t array('id' => '37378','state_id' => '3110','name' => 'Soufriere'),\n \t array('id' => '37379','state_id' => '3112','name' => 'Miquelon'),\n \t array('id' => '37380','state_id' => '3113','name' => 'Saint-Pierre'),\n \t array('id' => '37381','state_id' => '3114','name' => 'Biabou'),\n \t array('id' => '37382','state_id' => '3114','name' => 'Byera'),\n \t array('id' => '37383','state_id' => '3114','name' => 'Georgetown'),\n \t array('id' => '37384','state_id' => '3115','name' => 'Dovers'),\n \t array('id' => '37385','state_id' => '3115','name' => 'Hamilton'),\n \t array('id' => '37386','state_id' => '3115','name' => 'Port Elizabeth'),\n \t array('id' => '37387','state_id' => '3120','name' => 'Falelatai'),\n \t array('id' => '37388','state_id' => '3121','name' => 'Mulifanua'),\n \t array('id' => '37389','state_id' => '3122','name' => 'Solosolo'),\n \t array('id' => '37390','state_id' => '3123','name' => 'Safotulafai'),\n \t array('id' => '37391','state_id' => '3124','name' => 'Samalae\\'ulu'),\n \t array('id' => '37392','state_id' => '3125','name' => 'A\\'opo'),\n \t array('id' => '37393','state_id' => '3126','name' => 'Taga'),\n \t array('id' => '37394','state_id' => '3127','name' => 'Gautavai'),\n \t array('id' => '37395','state_id' => '3128','name' => 'Apia'),\n \t array('id' => '37396','state_id' => '3129','name' => 'Samamea'),\n \t array('id' => '37397','state_id' => '3130','name' => 'Neiafu'),\n \t array('id' => '37398','state_id' => '3131','name' => 'Acquaviva'),\n \t array('id' => '37399','state_id' => '3133','name' => 'Chiesanuova'),\n \t array('id' => '37400','state_id' => '3134','name' => 'Domagnano'),\n \t array('id' => '37401','state_id' => '3135','name' => 'Faetano'),\n \t array('id' => '37402','state_id' => '3136','name' => 'Fiorentino'),\n \t array('id' => '37403','state_id' => '3137','name' => 'Montegiardino'),\n \t array('id' => '37404','state_id' => '3139','name' => 'Serravalle'),\n \t array('id' => '37405','state_id' => '3141','name' => 'Santana'),\n \t array('id' => '37406','state_id' => '3142','name' => 'Neves'),\n \t array('id' => '37407','state_id' => '3143','name' => 'Santo Amaro'),\n \t array('id' => '37408','state_id' => '3144','name' => 'Trindade'),\n \t array('id' => '37409','state_id' => '3145','name' => 'Santo Antonio'),\n \t array('id' => '37410','state_id' => '3147','name' => 'Mahayel'),\n \t array('id' => '37411','state_id' => '3149','name' => 'Abha'),\n \t array('id' => '37412','state_id' => '3149','name' => 'Abu \\'Aris'),\n \t array('id' => '37413','state_id' => '3149','name' => 'Khamis Mushayt'),\n \t array('id' => '37414','state_id' => '3149','name' => 'Qal\\'at Bishah'),\n \t array('id' => '37415','state_id' => '3152','name' => 'Ha\\'il'),\n \t array('id' => '37416','state_id' => '3153','name' => 'Jawf'),\n \t array('id' => '37417','state_id' => '3153','name' => 'Sakakah'),\n \t array('id' => '37418','state_id' => '3154','name' => 'Jizan'),\n \t array('id' => '37419','state_id' => '3154','name' => 'Sabya'),\n \t array('id' => '37420','state_id' => '3155','name' => 'Makkah'),\n \t array('id' => '37421','state_id' => '3155','name' => 'Rabig'),\n \t array('id' => '37422','state_id' => '3155','name' => 'al-Hawiyah'),\n \t array('id' => '37423','state_id' => '3155','name' => 'at-Ta\\'if'),\n \t array('id' => '37424','state_id' => '3156','name' => 'Dar\\'iyah'),\n \t array('id' => '37425','state_id' => '3156','name' => 'Najran'),\n \t array('id' => '37426','state_id' => '3156','name' => 'Sharurah'),\n \t array('id' => '37427','state_id' => '3157','name' => '\\'Unayzah'),\n \t array('id' => '37428','state_id' => '3157','name' => 'Buraydah'),\n \t array('id' => '37429','state_id' => '3157','name' => 'ar-Rass'),\n \t array('id' => '37430','state_id' => '3158','name' => 'Tabuk'),\n \t array('id' => '37431','state_id' => '3158','name' => 'Umm Lajj'),\n \t array('id' => '37432','state_id' => '3160','name' => 'al-Bahah'),\n \t array('id' => '37433','state_id' => '3161','name' => 'Ara\\'ar'),\n \t array('id' => '37434','state_id' => '3161','name' => 'Rafha'),\n \t array('id' => '37435','state_id' => '3161','name' => 'Turayf'),\n \t array('id' => '37436','state_id' => '3161','name' => 'al-Qurayyat'),\n \t array('id' => '37437','state_id' => '3162','name' => 'Yanbu'),\n \t array('id' => '37438','state_id' => '3162','name' => 'al-Madinah'),\n \t array('id' => '37439','state_id' => '3163','name' => '\\'Afif'),\n \t array('id' => '37440','state_id' => '3163','name' => 'ad-Dawadimi'),\n \t array('id' => '37441','state_id' => '3163','name' => 'ad-Dilam'),\n \t array('id' => '37442','state_id' => '3163','name' => 'al-Kharj'),\n \t array('id' => '37443','state_id' => '3163','name' => 'al-Majma\\'ah'),\n \t array('id' => '37444','state_id' => '3163','name' => 'ar-Riyad'),\n \t array('id' => '37445','state_id' => '3163','name' => 'az-Zulfi'),\n \t array('id' => '37446','state_id' => '3164','name' => 'Dakar'),\n \t array('id' => '37447','state_id' => '3165','name' => 'Bambey'),\n \t array('id' => '37448','state_id' => '3165','name' => 'Diourbel'),\n \t array('id' => '37449','state_id' => '3165','name' => 'Mbacke'),\n \t array('id' => '37450','state_id' => '3165','name' => 'Touba'),\n \t array('id' => '37451','state_id' => '3166','name' => 'Diofior'),\n \t array('id' => '37452','state_id' => '3166','name' => 'Fatick'),\n \t array('id' => '37453','state_id' => '3166','name' => 'Foundiougne'),\n \t array('id' => '37454','state_id' => '3166','name' => 'Gossas'),\n \t array('id' => '37455','state_id' => '3166','name' => 'Guinguineo'),\n \t array('id' => '37456','state_id' => '3166','name' => 'Kahone'),\n \t array('id' => '37457','state_id' => '3166','name' => 'Passy'),\n \t array('id' => '37458','state_id' => '3166','name' => 'Sokone'),\n \t array('id' => '37459','state_id' => '3167','name' => 'Gandiaye'),\n \t array('id' => '37460','state_id' => '3167','name' => 'Kaffrine'),\n \t array('id' => '37461','state_id' => '3167','name' => 'Kaolack'),\n \t array('id' => '37462','state_id' => '3167','name' => 'Koungheul'),\n \t array('id' => '37463','state_id' => '3167','name' => 'Medina'),\n \t array('id' => '37464','state_id' => '3167','name' => 'Ndoffane Lagheme'),\n \t array('id' => '37465','state_id' => '3167','name' => 'Nioro du Rip'),\n \t array('id' => '37466','state_id' => '3167','name' => 'Toubakouta'),\n \t array('id' => '37467','state_id' => '3168','name' => 'Dabo'),\n \t array('id' => '37468','state_id' => '3168','name' => 'Goudomp'),\n \t array('id' => '37469','state_id' => '3168','name' => 'Kolda'),\n \t array('id' => '37470','state_id' => '3168','name' => 'Marsassoum'),\n \t array('id' => '37471','state_id' => '3168','name' => 'Medina Gounas'),\n \t array('id' => '37472','state_id' => '3168','name' => 'Sedhiou'),\n \t array('id' => '37473','state_id' => '3168','name' => 'Velingara'),\n \t array('id' => '37474','state_id' => '3168','name' => 'Wassadou'),\n \t array('id' => '37475','state_id' => '3169','name' => 'Dahra'),\n \t array('id' => '37476','state_id' => '3169','name' => 'Kebemer'),\n \t array('id' => '37477','state_id' => '3169','name' => 'Linguere'),\n \t array('id' => '37478','state_id' => '3169','name' => 'Louga'),\n \t array('id' => '37479','state_id' => '3170','name' => 'Dagana'),\n \t array('id' => '37480','state_id' => '3170','name' => 'Gollere'),\n \t array('id' => '37481','state_id' => '3170','name' => 'Kanel'),\n \t array('id' => '37482','state_id' => '3170','name' => 'Matam'),\n \t array('id' => '37483','state_id' => '3170','name' => 'Ndioum'),\n \t array('id' => '37484','state_id' => '3170','name' => 'Ourossogui'),\n \t array('id' => '37485','state_id' => '3170','name' => 'Podor'),\n \t array('id' => '37486','state_id' => '3170','name' => 'Richard Toll'),\n \t array('id' => '37487','state_id' => '3170','name' => 'Saint-Louis'),\n \t array('id' => '37488','state_id' => '3170','name' => 'Semme'),\n \t array('id' => '37489','state_id' => '3170','name' => 'Thilogne'),\n \t array('id' => '37490','state_id' => '3170','name' => 'Waounde'),\n \t array('id' => '37491','state_id' => '3171','name' => 'Bakel'),\n \t array('id' => '37492','state_id' => '3171','name' => 'Kedougou'),\n \t array('id' => '37493','state_id' => '3171','name' => 'Tambacounda'),\n \t array('id' => '37494','state_id' => '3172','name' => 'Joal-Fadiouth'),\n \t array('id' => '37495','state_id' => '3172','name' => 'Kayar'),\n \t array('id' => '37496','state_id' => '3172','name' => 'Khombole'),\n \t array('id' => '37497','state_id' => '3172','name' => 'Mbour'),\n \t array('id' => '37498','state_id' => '3172','name' => 'Meckhe'),\n \t array('id' => '37499','state_id' => '3172','name' => 'Nguekhokh'),\n \t array('id' => '37500','state_id' => '3172','name' => 'Pout'),\n \t array('id' => '37501','state_id' => '3172','name' => 'Thiadiaye'),\n \t array('id' => '37502','state_id' => '3172','name' => 'Thies'),\n \t array('id' => '37503','state_id' => '3172','name' => 'Tivaouane'),\n \t array('id' => '37504','state_id' => '3173','name' => 'Bignona'),\n \t array('id' => '37505','state_id' => '3173','name' => 'Oussouye'),\n \t array('id' => '37506','state_id' => '3173','name' => 'Thionck-Essyl'),\n \t array('id' => '37507','state_id' => '3173','name' => 'Ziguinchor'),\n \t array('id' => '37508','state_id' => '3179','name' => 'Cascade'),\n \t array('id' => '37509','state_id' => '3180','name' => 'Takamaka'),\n \t array('id' => '37510','state_id' => '3181','name' => 'Mahe'),\n \t array('id' => '37511','state_id' => '3182','name' => 'Biama'),\n \t array('id' => '37512','state_id' => '3182','name' => 'Daru'),\n \t array('id' => '37513','state_id' => '3182','name' => 'Kailahun'),\n \t array('id' => '37514','state_id' => '3182','name' => 'Kenema'),\n \t array('id' => '37515','state_id' => '3182','name' => 'Koidu'),\n \t array('id' => '37516','state_id' => '3182','name' => 'Koindu'),\n \t array('id' => '37517','state_id' => '3182','name' => 'Pendembu'),\n \t array('id' => '37518','state_id' => '3182','name' => 'Sefadu'),\n \t array('id' => '37519','state_id' => '3182','name' => 'Segbwema'),\n \t array('id' => '37520','state_id' => '3182','name' => 'Yengema'),\n \t array('id' => '37521','state_id' => '3183','name' => 'Kabala'),\n \t array('id' => '37522','state_id' => '3183','name' => 'Kambia'),\n \t array('id' => '37523','state_id' => '3183','name' => 'Lungi'),\n \t array('id' => '37524','state_id' => '3183','name' => 'Lunsar'),\n \t array('id' => '37525','state_id' => '3183','name' => 'Magburaka'),\n \t array('id' => '37526','state_id' => '3183','name' => 'Makeni'),\n \t array('id' => '37527','state_id' => '3183','name' => 'Mambolo'),\n \t array('id' => '37528','state_id' => '3183','name' => 'Moyamba'),\n \t array('id' => '37529','state_id' => '3183','name' => 'Pepel'),\n \t array('id' => '37530','state_id' => '3183','name' => 'Port Loko'),\n \t array('id' => '37531','state_id' => '3183','name' => 'Yele'),\n \t array('id' => '37532','state_id' => '3184','name' => 'Binkolo'),\n \t array('id' => '37533','state_id' => '3184','name' => 'Bo'),\n \t array('id' => '37534','state_id' => '3184','name' => 'Bonthe'),\n \t array('id' => '37535','state_id' => '3184','name' => 'Bumpe'),\n \t array('id' => '37536','state_id' => '3184','name' => 'Matru'),\n \t array('id' => '37537','state_id' => '3184','name' => 'Pujehun'),\n \t array('id' => '37538','state_id' => '3184','name' => 'Taiama'),\n \t array('id' => '37539','state_id' => '3185','name' => 'Freetown'),\n \t array('id' => '37540','state_id' => '3185','name' => 'York'),\n \t array('id' => '37541','state_id' => '3186','name' => 'Singapore'),\n \t array('id' => '37542','state_id' => '3187','name' => 'Banska Bystrica'),\n \t array('id' => '37543','state_id' => '3187','name' => 'Banska Shtiavnica'),\n \t array('id' => '37544','state_id' => '3187','name' => 'Brezno'),\n \t array('id' => '37545','state_id' => '3187','name' => 'Chierny Balog'),\n \t array('id' => '37546','state_id' => '3187','name' => 'Detva'),\n \t array('id' => '37547','state_id' => '3187','name' => 'Fil\\'akovo'),\n \t array('id' => '37548','state_id' => '3187','name' => 'Hnusht\\'a'),\n \t array('id' => '37549','state_id' => '3187','name' => 'Hrinova'),\n \t array('id' => '37550','state_id' => '3187','name' => 'Kremnica'),\n \t array('id' => '37551','state_id' => '3187','name' => 'Krupina'),\n \t array('id' => '37552','state_id' => '3187','name' => 'Luchenec'),\n \t array('id' => '37553','state_id' => '3187','name' => 'Nova Bana'),\n \t array('id' => '37554','state_id' => '3187','name' => 'Podbrezova'),\n \t array('id' => '37555','state_id' => '3187','name' => 'Poltar'),\n \t array('id' => '37556','state_id' => '3187','name' => 'Revuca'),\n \t array('id' => '37557','state_id' => '3187','name' => 'Rimavska Sobota'),\n \t array('id' => '37558','state_id' => '3187','name' => 'Sliach'),\n \t array('id' => '37559','state_id' => '3187','name' => 'Tisovec'),\n \t array('id' => '37560','state_id' => '3187','name' => 'Tornal\\'a'),\n \t array('id' => '37561','state_id' => '3187','name' => 'Vel\\'ky Krtish'),\n \t array('id' => '37562','state_id' => '3187','name' => 'Vlkanova'),\n \t array('id' => '37563','state_id' => '3187','name' => 'Zharnovica'),\n \t array('id' => '37564','state_id' => '3187','name' => 'Zhiar'),\n \t array('id' => '37565','state_id' => '3187','name' => 'Ziar nad Hronom'),\n \t array('id' => '37566','state_id' => '3187','name' => 'Zvolen'),\n \t array('id' => '37567','state_id' => '3188','name' => 'Bernolakovo'),\n \t array('id' => '37568','state_id' => '3188','name' => 'Bratislava'),\n \t array('id' => '37569','state_id' => '3188','name' => 'Ivanka pri Dunaji'),\n \t array('id' => '37570','state_id' => '3188','name' => 'Malacky'),\n \t array('id' => '37571','state_id' => '3188','name' => 'Modra'),\n \t array('id' => '37572','state_id' => '3188','name' => 'Pezinok'),\n \t array('id' => '37573','state_id' => '3188','name' => 'Senec'),\n \t array('id' => '37574','state_id' => '3188','name' => 'Shenkvice'),\n \t array('id' => '37575','state_id' => '3188','name' => 'Stupava'),\n \t array('id' => '37576','state_id' => '3188','name' => 'Svaty Jur'),\n \t array('id' => '37577','state_id' => '3189','name' => 'Chana'),\n \t array('id' => '37578','state_id' => '3189','name' => 'Chierna nad Tisou'),\n \t array('id' => '37579','state_id' => '3189','name' => 'Dobshina'),\n \t array('id' => '37580','state_id' => '3189','name' => 'Gelnica'),\n \t array('id' => '37581','state_id' => '3189','name' => 'Kosice'),\n \t array('id' => '37582','state_id' => '3189','name' => 'Kral\\'ovsky Chlmec'),\n \t array('id' => '37583','state_id' => '3189','name' => 'Krompachy'),\n \t array('id' => '37584','state_id' => '3189','name' => 'Medzev'),\n \t array('id' => '37585','state_id' => '3189','name' => 'Michalovce'),\n \t array('id' => '37586','state_id' => '3189','name' => 'Moldava nad Bodvou'),\n \t array('id' => '37587','state_id' => '3189','name' => 'Pavlovce nad Uhom'),\n \t array('id' => '37588','state_id' => '3189','name' => 'Rozhnava'),\n \t array('id' => '37589','state_id' => '3189','name' => 'Sechovce'),\n \t array('id' => '37590','state_id' => '3189','name' => 'Smizhany'),\n \t array('id' => '37591','state_id' => '3189','name' => 'Sobrance'),\n \t array('id' => '37592','state_id' => '3189','name' => 'Strazhske'),\n \t array('id' => '37593','state_id' => '3189','name' => 'Trebishov'),\n \t array('id' => '37594','state_id' => '3189','name' => 'Vel\\'ke Kapushany'),\n \t array('id' => '37595','state_id' => '3189','name' => 'Vranov'),\n \t array('id' => '37596','state_id' => '3190','name' => 'Dvory nad Zhitavou'),\n \t array('id' => '37597','state_id' => '3190','name' => 'Hurbanovo'),\n \t array('id' => '37598','state_id' => '3190','name' => 'Kolarovo'),\n \t array('id' => '37599','state_id' => '3190','name' => 'Komarno'),\n \t array('id' => '37600','state_id' => '3190','name' => 'Komjatice'),\n \t array('id' => '37601','state_id' => '3190','name' => 'Levice'),\n \t array('id' => '37602','state_id' => '3190','name' => 'Levocha'),\n \t array('id' => '37603','state_id' => '3190','name' => 'Mocenok'),\n \t array('id' => '37604','state_id' => '3190','name' => 'Nesvady'),\n \t array('id' => '37605','state_id' => '3190','name' => 'Nitra'),\n \t array('id' => '37606','state_id' => '3190','name' => 'Nove Zamky'),\n \t array('id' => '37607','state_id' => '3190','name' => 'Palarikovo'),\n \t array('id' => '37608','state_id' => '3190','name' => 'Shahy'),\n \t array('id' => '37609','state_id' => '3190','name' => 'Shal\\'a'),\n \t array('id' => '37610','state_id' => '3190','name' => 'Shturovo'),\n \t array('id' => '37611','state_id' => '3190','name' => 'Shurany'),\n \t array('id' => '37612','state_id' => '3190','name' => 'Svodin'),\n \t array('id' => '37613','state_id' => '3190','name' => 'Tlmache'),\n \t array('id' => '37614','state_id' => '3190','name' => 'Tvrdoshovce'),\n \t array('id' => '37615','state_id' => '3190','name' => 'Vrable'),\n \t array('id' => '37616','state_id' => '3190','name' => 'Zlate Moravce'),\n \t array('id' => '37617','state_id' => '3191','name' => 'Bardejov'),\n \t array('id' => '37618','state_id' => '3191','name' => 'Giraltovce'),\n \t array('id' => '37619','state_id' => '3191','name' => 'Humenne'),\n \t array('id' => '37620','state_id' => '3191','name' => 'Jarovnice'),\n \t array('id' => '37621','state_id' => '3191','name' => 'Kezhmarok'),\n \t array('id' => '37622','state_id' => '3191','name' => 'Lipany'),\n \t array('id' => '37623','state_id' => '3191','name' => 'Medzilaborce'),\n \t array('id' => '37624','state_id' => '3191','name' => 'Podolinec'),\n \t array('id' => '37625','state_id' => '3191','name' => 'Poprad'),\n \t array('id' => '37626','state_id' => '3191','name' => 'Preshov'),\n \t array('id' => '37627','state_id' => '3191','name' => 'Presov'),\n \t array('id' => '37628','state_id' => '3191','name' => 'Sabinov'),\n \t array('id' => '37629','state_id' => '3191','name' => 'Snina'),\n \t array('id' => '37630','state_id' => '3191','name' => 'Spishska Bela'),\n \t array('id' => '37631','state_id' => '3191','name' => 'Spishska Nova Ves'),\n \t array('id' => '37632','state_id' => '3191','name' => 'Spishske Podhradie'),\n \t array('id' => '37633','state_id' => '3191','name' => 'Stara L\\'ubovna'),\n \t array('id' => '37634','state_id' => '3191','name' => 'Stropkov'),\n \t array('id' => '37635','state_id' => '3191','name' => 'Svidnik'),\n \t array('id' => '37636','state_id' => '3191','name' => 'Svit'),\n \t array('id' => '37637','state_id' => '3191','name' => 'Vel\\'ky Sharish'),\n \t array('id' => '37638','state_id' => '3191','name' => 'Vysoke Tatry'),\n \t array('id' => '37639','state_id' => '3192','name' => 'Banovce'),\n \t array('id' => '37640','state_id' => '3192','name' => 'Belusha'),\n \t array('id' => '37641','state_id' => '3192','name' => 'Bojnice'),\n \t array('id' => '37642','state_id' => '3192','name' => 'Boshany'),\n \t array('id' => '37643','state_id' => '3192','name' => 'Dubnica'),\n \t array('id' => '37644','state_id' => '3192','name' => 'Handlova'),\n \t array('id' => '37645','state_id' => '3192','name' => 'Ilava'),\n \t array('id' => '37646','state_id' => '3192','name' => 'Lednicke Rovne'),\n \t array('id' => '37647','state_id' => '3192','name' => 'Lendak'),\n \t array('id' => '37648','state_id' => '3192','name' => 'Myjava'),\n \t array('id' => '37649','state_id' => '3192','name' => 'Nemshova'),\n \t array('id' => '37650','state_id' => '3192','name' => 'Nova Dubnica'),\n \t array('id' => '37651','state_id' => '3192','name' => 'Novaky'),\n \t array('id' => '37652','state_id' => '3192','name' => 'Nove Mesto'),\n \t array('id' => '37653','state_id' => '3192','name' => 'Partizanske'),\n \t array('id' => '37654','state_id' => '3192','name' => 'Povazhska Bystrica'),\n \t array('id' => '37655','state_id' => '3192','name' => 'Prievidza'),\n \t array('id' => '37656','state_id' => '3192','name' => 'Puchov'),\n \t array('id' => '37657','state_id' => '3192','name' => 'Stara Tura'),\n \t array('id' => '37658','state_id' => '3192','name' => 'Topol\\'chany'),\n \t array('id' => '37659','state_id' => '3192','name' => 'Trenchianske Teplice'),\n \t array('id' => '37660','state_id' => '3192','name' => 'Trenchin'),\n \t array('id' => '37661','state_id' => '3192','name' => 'Trencin'),\n \t array('id' => '37662','state_id' => '3193','name' => 'Brezova pod Bradlom'),\n \t array('id' => '37663','state_id' => '3193','name' => 'Dunajska Streda'),\n \t array('id' => '37664','state_id' => '3193','name' => 'Gabchikovo'),\n \t array('id' => '37665','state_id' => '3193','name' => 'Galanta'),\n \t array('id' => '37666','state_id' => '3193','name' => 'Gbely'),\n \t array('id' => '37667','state_id' => '3193','name' => 'Hlohovec'),\n \t array('id' => '37668','state_id' => '3193','name' => 'Holich'),\n \t array('id' => '37669','state_id' => '3193','name' => 'Kuty'),\n \t array('id' => '37670','state_id' => '3193','name' => 'Leopoldov'),\n \t array('id' => '37671','state_id' => '3193','name' => 'Piesht\\'any'),\n \t array('id' => '37672','state_id' => '3193','name' => 'Piestany'),\n \t array('id' => '37673','state_id' => '3193','name' => 'Senica'),\n \t array('id' => '37674','state_id' => '3193','name' => 'Sered\\''),\n \t array('id' => '37675','state_id' => '3193','name' => 'Shamorin'),\n \t array('id' => '37676','state_id' => '3193','name' => 'Shashtin-Strazhe'),\n \t array('id' => '37677','state_id' => '3193','name' => 'Shoporna'),\n \t array('id' => '37678','state_id' => '3193','name' => 'Skalica'),\n \t array('id' => '37679','state_id' => '3193','name' => 'Sladkovichovo'),\n \t array('id' => '37680','state_id' => '3193','name' => 'Trnava'),\n \t array('id' => '37681','state_id' => '3193','name' => 'Vel\\'ke Ul\\'any'),\n \t array('id' => '37682','state_id' => '3193','name' => 'Vel\\'ky Meder'),\n \t array('id' => '37683','state_id' => '3193','name' => 'Vrbove'),\n \t array('id' => '37684','state_id' => '3194','name' => 'Bytcha'),\n \t array('id' => '37685','state_id' => '3194','name' => 'Chadca'),\n \t array('id' => '37686','state_id' => '3194','name' => 'Chierne'),\n \t array('id' => '37687','state_id' => '3194','name' => 'Dolny Kubin'),\n \t array('id' => '37688','state_id' => '3194','name' => 'Krasno nad Kysucou'),\n \t array('id' => '37689','state_id' => '3194','name' => 'Kysucke Nove Mesto'),\n \t array('id' => '37690','state_id' => '3194','name' => 'Liptovsky Hradok'),\n \t array('id' => '37691','state_id' => '3194','name' => 'Liptovsky Mikulash'),\n \t array('id' => '37692','state_id' => '3194','name' => 'Martin'),\n \t array('id' => '37693','state_id' => '3194','name' => 'Namestovo'),\n \t array('id' => '37694','state_id' => '3194','name' => 'Nizhna'),\n \t array('id' => '37695','state_id' => '3194','name' => 'Oshchadnica'),\n \t array('id' => '37696','state_id' => '3194','name' => 'Rabcha'),\n \t array('id' => '37697','state_id' => '3194','name' => 'Rajec'),\n \t array('id' => '37698','state_id' => '3194','name' => 'Rakova'),\n \t array('id' => '37699','state_id' => '3194','name' => 'Ruzhomberok'),\n \t array('id' => '37700','state_id' => '3194','name' => 'Ruzomberok'),\n \t array('id' => '37701','state_id' => '3194','name' => 'Shtiavnik'),\n \t array('id' => '37702','state_id' => '3194','name' => 'Skalite'),\n \t array('id' => '37703','state_id' => '3194','name' => 'Suchany'),\n \t array('id' => '37704','state_id' => '3194','name' => 'Terchova'),\n \t array('id' => '37705','state_id' => '3194','name' => 'Trstena'),\n \t array('id' => '37706','state_id' => '3194','name' => 'Turany'),\n \t array('id' => '37707','state_id' => '3194','name' => 'Turchianske Teplice'),\n \t array('id' => '37708','state_id' => '3194','name' => 'Turzovka'),\n \t array('id' => '37709','state_id' => '3194','name' => 'Tvrdoshin'),\n \t array('id' => '37710','state_id' => '3194','name' => 'Vel\\'ke Rovne'),\n \t array('id' => '37711','state_id' => '3194','name' => 'Vrutky'),\n \t array('id' => '37712','state_id' => '3194','name' => 'Zakamenne'),\n \t array('id' => '37713','state_id' => '3194','name' => 'Zhilina'),\n \t array('id' => '37714','state_id' => '3194','name' => 'Zilina'),\n \t array('id' => '37715','state_id' => '3195','name' => 'Semic'),\n \t array('id' => '37716','state_id' => '3195','name' => 'Skofljica'),\n \t array('id' => '37717','state_id' => '3195','name' => 'Zelezniki'),\n \t array('id' => '37718','state_id' => '3196','name' => 'Begunje na Gorenjskem'),\n \t array('id' => '37719','state_id' => '3196','name' => 'Bistrica ob Trzhichu'),\n \t array('id' => '37720','state_id' => '3196','name' => 'Bled'),\n \t array('id' => '37721','state_id' => '3196','name' => 'Blejska Dobrava'),\n \t array('id' => '37722','state_id' => '3196','name' => 'Bohinjska Bistrica'),\n \t array('id' => '37723','state_id' => '3196','name' => 'Britof'),\n \t array('id' => '37724','state_id' => '3196','name' => 'Cerklje na Gorenjskem'),\n \t array('id' => '37725','state_id' => '3196','name' => 'Golnik'),\n \t array('id' => '37726','state_id' => '3196','name' => 'Gorenja Vas'),\n \t array('id' => '37727','state_id' => '3196','name' => 'Hrastje'),\n \t array('id' => '37728','state_id' => '3196','name' => 'Hrushica'),\n \t array('id' => '37729','state_id' => '3196','name' => 'Jesenice'),\n \t array('id' => '37730','state_id' => '3196','name' => 'Kokrica'),\n \t array('id' => '37731','state_id' => '3196','name' => 'Koroshka Bela'),\n \t array('id' => '37732','state_id' => '3196','name' => 'Kranj'),\n \t array('id' => '37733','state_id' => '3196','name' => 'Kranjska Gora'),\n \t array('id' => '37734','state_id' => '3196','name' => 'Krizhe'),\n \t array('id' => '37735','state_id' => '3196','name' => 'Kropa'),\n \t array('id' => '37736','state_id' => '3196','name' => 'Lesce'),\n \t array('id' => '37737','state_id' => '3196','name' => 'Mlaka pri Kranju'),\n \t array('id' => '37738','state_id' => '3196','name' => 'Mojstrana'),\n \t array('id' => '37739','state_id' => '3196','name' => 'Preddvor'),\n \t array('id' => '37740','state_id' => '3196','name' => 'Predoslje'),\n \t array('id' => '37741','state_id' => '3196','name' => 'Pristava'),\n \t array('id' => '37742','state_id' => '3196','name' => 'Radovljica'),\n \t array('id' => '37743','state_id' => '3196','name' => 'Shenchur'),\n \t array('id' => '37744','state_id' => '3196','name' => 'Shkofja Loka'),\n \t array('id' => '37745','state_id' => '3196','name' => 'Slovenski Javornik'),\n \t array('id' => '37746','state_id' => '3196','name' => 'Spodnja Besnica'),\n \t array('id' => '37747','state_id' => '3196','name' => 'Spodnje Gorje'),\n \t array('id' => '37748','state_id' => '3196','name' => 'Stara Loka'),\n \t array('id' => '37749','state_id' => '3196','name' => 'Sveti Duh'),\n \t array('id' => '37750','state_id' => '3196','name' => 'Trzhich'),\n \t array('id' => '37751','state_id' => '3196','name' => 'Visoko'),\n \t array('id' => '37752','state_id' => '3196','name' => 'Zasip'),\n \t array('id' => '37753','state_id' => '3196','name' => 'Zgornje Bitnje'),\n \t array('id' => '37754','state_id' => '3196','name' => 'Zhelezniki'),\n \t array('id' => '37755','state_id' => '3196','name' => 'Zhiri'),\n \t array('id' => '37756','state_id' => '3197','name' => 'Ajdovshchina'),\n \t array('id' => '37757','state_id' => '3197','name' => 'Bilje'),\n \t array('id' => '37758','state_id' => '3197','name' => 'Bovec'),\n \t array('id' => '37759','state_id' => '3197','name' => 'Branik'),\n \t array('id' => '37760','state_id' => '3197','name' => 'Cerkno'),\n \t array('id' => '37761','state_id' => '3197','name' => 'Deskle'),\n \t array('id' => '37762','state_id' => '3197','name' => 'Idrija'),\n \t array('id' => '37763','state_id' => '3197','name' => 'Kanal'),\n \t array('id' => '37764','state_id' => '3197','name' => 'Kobarid'),\n \t array('id' => '37765','state_id' => '3197','name' => 'Kromberk'),\n \t array('id' => '37766','state_id' => '3197','name' => 'Lokavec'),\n \t array('id' => '37767','state_id' => '3197','name' => 'Miren'),\n \t array('id' => '37768','state_id' => '3197','name' => 'Nova Gorica'),\n \t array('id' => '37769','state_id' => '3197','name' => 'Prvachina'),\n \t array('id' => '37770','state_id' => '3197','name' => 'Renche'),\n \t array('id' => '37771','state_id' => '3197','name' => 'Rozhna Dolina'),\n \t array('id' => '37772','state_id' => '3197','name' => 'Shempas'),\n \t array('id' => '37773','state_id' => '3197','name' => 'Shempeter'),\n \t array('id' => '37774','state_id' => '3197','name' => 'Solkan'),\n \t array('id' => '37775','state_id' => '3197','name' => 'Spodnja Idrija'),\n \t array('id' => '37776','state_id' => '3197','name' => 'Tolmin'),\n \t array('id' => '37777','state_id' => '3197','name' => 'Vipava'),\n \t array('id' => '37778','state_id' => '3197','name' => 'Vrtojba'),\n \t array('id' => '37779','state_id' => '3199','name' => 'Chrna na Koroshkem'),\n \t array('id' => '37780','state_id' => '3199','name' => 'Dravograd'),\n \t array('id' => '37781','state_id' => '3199','name' => 'Legen'),\n \t array('id' => '37782','state_id' => '3199','name' => 'Mezhica'),\n \t array('id' => '37783','state_id' => '3199','name' => 'Mislinja'),\n \t array('id' => '37784','state_id' => '3199','name' => 'Muta'),\n \t array('id' => '37785','state_id' => '3199','name' => 'Otishki Vrh'),\n \t array('id' => '37786','state_id' => '3199','name' => 'Pameche'),\n \t array('id' => '37787','state_id' => '3199','name' => 'Podgorje'),\n \t array('id' => '37788','state_id' => '3199','name' => 'Prevalje'),\n \t array('id' => '37789','state_id' => '3199','name' => 'Radlje ob Dravi'),\n \t array('id' => '37790','state_id' => '3199','name' => 'Ravne'),\n \t array('id' => '37791','state_id' => '3199','name' => 'Shmartno pri Slovenj Gradcu'),\n \t array('id' => '37792','state_id' => '3199','name' => 'Slovenj Gradec'),\n \t array('id' => '37793','state_id' => '3199','name' => 'Vuhred'),\n \t array('id' => '37794','state_id' => '3199','name' => 'Vuzenica'),\n \t array('id' => '37795','state_id' => '3200','name' => 'Cerknica'),\n \t array('id' => '37796','state_id' => '3200','name' => 'Ilirska Bistrica'),\n \t array('id' => '37797','state_id' => '3200','name' => 'Pivka'),\n \t array('id' => '37798','state_id' => '3200','name' => 'Postojna'),\n \t array('id' => '37799','state_id' => '3200','name' => 'Rakek'),\n \t array('id' => '37800','state_id' => '3200','name' => 'Stari trg pri Lozhu'),\n \t array('id' => '37801','state_id' => '3201','name' => 'Ankaran'),\n \t array('id' => '37802','state_id' => '3201','name' => 'Bertoki'),\n \t array('id' => '37803','state_id' => '3201','name' => 'Dekani'),\n \t array('id' => '37804','state_id' => '3201','name' => 'Divacha'),\n \t array('id' => '37805','state_id' => '3201','name' => 'Hrvatni'),\n \t array('id' => '37806','state_id' => '3201','name' => 'Izola'),\n \t array('id' => '37807','state_id' => '3201','name' => 'Jagodje'),\n \t array('id' => '37808','state_id' => '3201','name' => 'Koper'),\n \t array('id' => '37809','state_id' => '3201','name' => 'Lucija'),\n \t array('id' => '37810','state_id' => '3201','name' => 'Pareceg'),\n \t array('id' => '37811','state_id' => '3201','name' => 'Piran'),\n \t array('id' => '37812','state_id' => '3201','name' => 'Pobegi'),\n \t array('id' => '37813','state_id' => '3201','name' => 'Portorozh'),\n \t array('id' => '37814','state_id' => '3201','name' => 'Prade'),\n \t array('id' => '37815','state_id' => '3201','name' => 'Secha'),\n \t array('id' => '37816','state_id' => '3201','name' => 'Sezhana'),\n \t array('id' => '37817','state_id' => '3201','name' => 'Spodnje Shkofije'),\n \t array('id' => '37818','state_id' => '3201','name' => 'Sveti Anton'),\n \t array('id' => '37819','state_id' => '3204','name' => 'Borovnica'),\n \t array('id' => '37820','state_id' => '3204','name' => 'Brezovica pri Ljubljani'),\n \t array('id' => '37821','state_id' => '3204','name' => 'Dob'),\n \t array('id' => '37822','state_id' => '3204','name' => 'Dobrova'),\n \t array('id' => '37823','state_id' => '3204','name' => 'Domzhale'),\n \t array('id' => '37824','state_id' => '3204','name' => 'Dragomer'),\n \t array('id' => '37825','state_id' => '3204','name' => 'Grosuplje'),\n \t array('id' => '37826','state_id' => '3204','name' => 'Horjul'),\n \t array('id' => '37827','state_id' => '3204','name' => 'Ig'),\n \t array('id' => '37828','state_id' => '3204','name' => 'Ivanchna Gorica'),\n \t array('id' => '37829','state_id' => '3204','name' => 'Kamnik'),\n \t array('id' => '37830','state_id' => '3204','name' => 'Komenda'),\n \t array('id' => '37831','state_id' => '3204','name' => 'Lavrica'),\n \t array('id' => '37832','state_id' => '3204','name' => 'Litija'),\n \t array('id' => '37833','state_id' => '3204','name' => 'Ljubljana'),\n \t array('id' => '37834','state_id' => '3204','name' => 'Log pri Brezovici'),\n \t array('id' => '37835','state_id' => '3204','name' => 'Logatec'),\n \t array('id' => '37836','state_id' => '3204','name' => 'Medvode'),\n \t array('id' => '37837','state_id' => '3204','name' => 'Mekinje'),\n \t array('id' => '37838','state_id' => '3204','name' => 'Mengesh'),\n \t array('id' => '37839','state_id' => '3204','name' => 'Moravche'),\n \t array('id' => '37840','state_id' => '3204','name' => 'Notranje'),\n \t array('id' => '37841','state_id' => '3204','name' => 'Podgorje'),\n \t array('id' => '37842','state_id' => '3204','name' => 'Preserje pri Radomljah'),\n \t array('id' => '37843','state_id' => '3204','name' => 'Radomlje'),\n \t array('id' => '37844','state_id' => '3204','name' => 'Rovte'),\n \t array('id' => '37845','state_id' => '3204','name' => 'Shentvid pri Stichni'),\n \t array('id' => '37846','state_id' => '3204','name' => 'Shkofljica'),\n \t array('id' => '37847','state_id' => '3204','name' => 'Shmarca'),\n \t array('id' => '37848','state_id' => '3204','name' => 'Shmartno pri Litiji'),\n \t array('id' => '37849','state_id' => '3204','name' => 'Smarje-Sap'),\n \t array('id' => '37850','state_id' => '3204','name' => 'Trzin'),\n \t array('id' => '37851','state_id' => '3204','name' => 'Verd'),\n \t array('id' => '37852','state_id' => '3204','name' => 'Vir'),\n \t array('id' => '37853','state_id' => '3204','name' => 'Vishnja Gora'),\n \t array('id' => '37854','state_id' => '3204','name' => 'Vnanje Gorice'),\n \t array('id' => '37855','state_id' => '3204','name' => 'Vodice'),\n \t array('id' => '37856','state_id' => '3204','name' => 'Vrhnika'),\n \t array('id' => '37857','state_id' => '3204','name' => 'Zgornje Pirniche'),\n \t array('id' => '37858','state_id' => '3205','name' => 'Bistrica ob Dravi'),\n \t array('id' => '37859','state_id' => '3205','name' => 'Bresternica'),\n \t array('id' => '37860','state_id' => '3205','name' => 'Bukovci'),\n \t array('id' => '37861','state_id' => '3205','name' => 'Dogoshe'),\n \t array('id' => '37862','state_id' => '3205','name' => 'Dornava'),\n \t array('id' => '37863','state_id' => '3205','name' => 'Fram'),\n \t array('id' => '37864','state_id' => '3205','name' => 'Hotinja Vas'),\n \t array('id' => '37865','state_id' => '3205','name' => 'Kamnica'),\n \t array('id' => '37866','state_id' => '3205','name' => 'Kidrichevo'),\n \t array('id' => '37867','state_id' => '3205','name' => 'Koshaki'),\n \t array('id' => '37868','state_id' => '3205','name' => 'Krchevina pri Vurbergu'),\n \t array('id' => '37869','state_id' => '3205','name' => 'Lenart'),\n \t array('id' => '37870','state_id' => '3205','name' => 'Limbush'),\n \t array('id' => '37871','state_id' => '3205','name' => 'Lovrenc na Pohorju'),\n \t array('id' => '37872','state_id' => '3205','name' => 'Maribor'),\n \t array('id' => '37873','state_id' => '3205','name' => 'Miklavzh na Dravskem Polju'),\n \t array('id' => '37874','state_id' => '3205','name' => 'Ormozh'),\n \t array('id' => '37875','state_id' => '3205','name' => 'Pekre'),\n \t array('id' => '37876','state_id' => '3205','name' => 'Pesnica pri Mariboru'),\n \t array('id' => '37877','state_id' => '3205','name' => 'Pobrezhje'),\n \t array('id' => '37878','state_id' => '3205','name' => 'Podvinci'),\n \t array('id' => '37879','state_id' => '3205','name' => 'Poljchane'),\n \t array('id' => '37880','state_id' => '3205','name' => 'Pragersko'),\n \t array('id' => '37881','state_id' => '3205','name' => 'Ptuj'),\n \t array('id' => '37882','state_id' => '3205','name' => 'Rache'),\n \t array('id' => '37883','state_id' => '3205','name' => 'Radizel'),\n \t array('id' => '37884','state_id' => '3205','name' => 'Razvanje'),\n \t array('id' => '37885','state_id' => '3205','name' => 'Rogoza'),\n \t array('id' => '37886','state_id' => '3205','name' => 'Rushe'),\n \t array('id' => '37887','state_id' => '3205','name' => 'Selnica ob Dravi'),\n \t array('id' => '37888','state_id' => '3205','name' => 'Selnica ob Muri'),\n \t array('id' => '37889','state_id' => '3205','name' => 'Shentilj'),\n \t array('id' => '37890','state_id' => '3205','name' => 'Skoke'),\n \t array('id' => '37891','state_id' => '3205','name' => 'Slovenska Bistrica'),\n \t array('id' => '37892','state_id' => '3205','name' => 'Spodnja Polskava'),\n \t array('id' => '37893','state_id' => '3205','name' => 'Spodnje Hoche'),\n \t array('id' => '37894','state_id' => '3205','name' => 'Spodnji Duplek'),\n \t array('id' => '37895','state_id' => '3205','name' => 'Spuhlja'),\n \t array('id' => '37896','state_id' => '3205','name' => 'Sredishche ob Dravi'),\n \t array('id' => '37897','state_id' => '3205','name' => 'Stojnci'),\n \t array('id' => '37898','state_id' => '3205','name' => 'Zgornja Polskava'),\n \t array('id' => '37899','state_id' => '3205','name' => 'Zgornje Poljchane'),\n \t array('id' => '37900','state_id' => '3205','name' => 'Zgornji Duplek'),\n \t array('id' => '37901','state_id' => '3206','name' => 'Bakovci'),\n \t array('id' => '37902','state_id' => '3206','name' => 'Beltinci'),\n \t array('id' => '37903','state_id' => '3206','name' => 'Chernelavci'),\n \t array('id' => '37904','state_id' => '3206','name' => 'Chrenshovci'),\n \t array('id' => '37905','state_id' => '3206','name' => 'Dobrovnik'),\n \t array('id' => '37906','state_id' => '3206','name' => 'Doklezhovje'),\n \t array('id' => '37907','state_id' => '3206','name' => 'Ganchani'),\n \t array('id' => '37908','state_id' => '3206','name' => 'Gornja Radgona'),\n \t array('id' => '37909','state_id' => '3206','name' => 'Izhakovci'),\n \t array('id' => '37910','state_id' => '3206','name' => 'Krog'),\n \t array('id' => '37911','state_id' => '3206','name' => 'Lendava'),\n \t array('id' => '37912','state_id' => '3206','name' => 'Lipovci'),\n \t array('id' => '37913','state_id' => '3206','name' => 'Ljutomer'),\n \t array('id' => '37914','state_id' => '3206','name' => 'Melinci'),\n \t array('id' => '37915','state_id' => '3206','name' => 'Murska Sobota'),\n \t array('id' => '37916','state_id' => '3206','name' => 'Odranci'),\n \t array('id' => '37917','state_id' => '3206','name' => 'Petishovci'),\n \t array('id' => '37918','state_id' => '3206','name' => 'Radenci'),\n \t array('id' => '37919','state_id' => '3206','name' => 'Rakichan'),\n \t array('id' => '37920','state_id' => '3206','name' => 'Turnishche'),\n \t array('id' => '37921','state_id' => '3206','name' => 'Velika Polana'),\n \t array('id' => '37922','state_id' => '3206','name' => 'Verzej'),\n \t array('id' => '37923','state_id' => '3207','name' => 'Breg pri Polzeli'),\n \t array('id' => '37924','state_id' => '3207','name' => 'Celje'),\n \t array('id' => '37925','state_id' => '3207','name' => 'Gornji Grad'),\n \t array('id' => '37926','state_id' => '3207','name' => 'Gotovlje'),\n \t array('id' => '37927','state_id' => '3207','name' => 'Kasaze'),\n \t array('id' => '37928','state_id' => '3207','name' => 'Lashko'),\n \t array('id' => '37929','state_id' => '3207','name' => 'Ljubechna'),\n \t array('id' => '37930','state_id' => '3207','name' => 'Ljubno ob Savinji'),\n \t array('id' => '37931','state_id' => '3207','name' => 'Loka pri Zusmu'),\n \t array('id' => '37932','state_id' => '3207','name' => 'Lokovica'),\n \t array('id' => '37933','state_id' => '3207','name' => 'Mozirje'),\n \t array('id' => '37934','state_id' => '3207','name' => 'Naklo'),\n \t array('id' => '37935','state_id' => '3207','name' => 'Nazarje'),\n \t array('id' => '37936','state_id' => '3207','name' => 'Oplotnica'),\n \t array('id' => '37937','state_id' => '3207','name' => 'Petrovche'),\n \t array('id' => '37938','state_id' => '3207','name' => 'Polzela'),\n \t array('id' => '37939','state_id' => '3207','name' => 'Prebold'),\n \t array('id' => '37940','state_id' => '3207','name' => 'Radeche'),\n \t array('id' => '37941','state_id' => '3207','name' => 'Ravne'),\n \t array('id' => '37942','state_id' => '3207','name' => 'Rimske Toplica'),\n \t array('id' => '37943','state_id' => '3207','name' => 'Rogashka Slatina'),\n \t array('id' => '37944','state_id' => '3207','name' => 'Rogatec'),\n \t array('id' => '37945','state_id' => '3207','name' => 'Sentjernej'),\n \t array('id' => '37946','state_id' => '3207','name' => 'Shempeter'),\n \t array('id' => '37947','state_id' => '3207','name' => 'Shentjur'),\n \t array('id' => '37948','state_id' => '3207','name' => 'Shkale'),\n \t array('id' => '37949','state_id' => '3207','name' => 'Shmarje pri Jelshah'),\n \t array('id' => '37950','state_id' => '3207','name' => 'Shoshtanj'),\n \t array('id' => '37951','state_id' => '3207','name' => 'Shtore'),\n \t array('id' => '37952','state_id' => '3207','name' => 'Slovenske Konjice'),\n \t array('id' => '37953','state_id' => '3207','name' => 'Topolshica'),\n \t array('id' => '37954','state_id' => '3207','name' => 'Trnovlje pri Celju'),\n \t array('id' => '37955','state_id' => '3207','name' => 'Velenje'),\n \t array('id' => '37956','state_id' => '3207','name' => 'Vitanje'),\n \t array('id' => '37957','state_id' => '3207','name' => 'Vojnik'),\n \t array('id' => '37958','state_id' => '3207','name' => 'Zabukovica'),\n \t array('id' => '37959','state_id' => '3207','name' => 'Zadobrova'),\n \t array('id' => '37960','state_id' => '3207','name' => 'Zhalec'),\n \t array('id' => '37961','state_id' => '3207','name' => 'Zreche'),\n \t array('id' => '37962','state_id' => '3209','name' => 'Brestanica'),\n \t array('id' => '37963','state_id' => '3209','name' => 'Brezhice'),\n \t array('id' => '37964','state_id' => '3209','name' => 'Krshko'),\n \t array('id' => '37965','state_id' => '3209','name' => 'Leskovac pri Krshkem'),\n \t array('id' => '37966','state_id' => '3209','name' => 'Senovo'),\n \t array('id' => '37967','state_id' => '3209','name' => 'Sevnica'),\n \t array('id' => '37968','state_id' => '3210','name' => 'Dol pri Hrastniku'),\n \t array('id' => '37969','state_id' => '3210','name' => 'Hrastnik'),\n \t array('id' => '37970','state_id' => '3210','name' => 'Izlake'),\n \t array('id' => '37971','state_id' => '3210','name' => 'Kisovec'),\n \t array('id' => '37972','state_id' => '3210','name' => 'Trbovlje'),\n \t array('id' => '37973','state_id' => '3210','name' => 'Zagorje ob Savi'),\n \t array('id' => '37974','state_id' => '3211','name' => 'Adamstown'),\n \t array('id' => '37975','state_id' => '3212','name' => 'Tulagi'),\n \t array('id' => '37976','state_id' => '3213','name' => 'Taro Island'),\n \t array('id' => '37977','state_id' => '3214','name' => 'Honiara'),\n \t array('id' => '37978','state_id' => '3215','name' => 'Buala'),\n \t array('id' => '37979','state_id' => '3217','name' => 'Auki'),\n \t array('id' => '37980','state_id' => '3219','name' => 'Lata'),\n \t array('id' => '37981','state_id' => '3220','name' => 'Gizo'),\n \t array('id' => '37982','state_id' => '3221','name' => 'Baki'),\n \t array('id' => '37983','state_id' => '3221','name' => 'Borama'),\n \t array('id' => '37984','state_id' => '3221','name' => 'Gebilay'),\n \t array('id' => '37985','state_id' => '3221','name' => 'Sayla\\''),\n \t array('id' => '37986','state_id' => '3222','name' => 'Tayeglo'),\n \t array('id' => '37987','state_id' => '3222','name' => 'Xuddur'),\n \t array('id' => '37988','state_id' => '3222','name' => 'Yet'),\n \t array('id' => '37989','state_id' => '3223','name' => 'Muqdisho'),\n \t array('id' => '37990','state_id' => '3224','name' => '\\'Alula'),\n \t array('id' => '37991','state_id' => '3224','name' => 'Bandarbeyla'),\n \t array('id' => '37992','state_id' => '3224','name' => 'Bandarmu\\'ayo'),\n \t array('id' => '37993','state_id' => '3224','name' => 'Bargal'),\n \t array('id' => '37994','state_id' => '3224','name' => 'Bereda'),\n \t array('id' => '37995','state_id' => '3224','name' => 'Bosaso'),\n \t array('id' => '37996','state_id' => '3224','name' => 'Iskushuban'),\n \t array('id' => '37997','state_id' => '3224','name' => 'Qandala'),\n \t array('id' => '37998','state_id' => '3224','name' => 'Qardho'),\n \t array('id' => '37999','state_id' => '3224','name' => 'Xafun'),\n \t array('id' => '38000','state_id' => '3225','name' => 'Baydhabo'),\n \t array('id' => '38001','state_id' => '3225','name' => 'Bur Hakkaba'),\n \t array('id' => '38002','state_id' => '3225','name' => 'Dinsor'),\n \t array('id' => '38003','state_id' => '3226','name' => '\\'Elbur'),\n \t array('id' => '38004','state_id' => '3226','name' => '\\'Eldhere'),\n \t array('id' => '38005','state_id' => '3226','name' => 'Dhusa Marreb'),\n \t array('id' => '38006','state_id' => '3227','name' => 'Bardhere'),\n \t array('id' => '38007','state_id' => '3227','name' => 'Dolaw'),\n \t array('id' => '38008','state_id' => '3227','name' => 'Dujuma'),\n \t array('id' => '38009','state_id' => '3227','name' => 'Garbaharey'),\n \t array('id' => '38010','state_id' => '3227','name' => 'Luq'),\n \t array('id' => '38011','state_id' => '3227','name' => 'Sa\\'o'),\n \t array('id' => '38012','state_id' => '3227','name' => 'Wajid'),\n \t array('id' => '38013','state_id' => '3228','name' => 'Bal\\'ad'),\n \t array('id' => '38014','state_id' => '3228','name' => 'Beled Weyne'),\n \t array('id' => '38015','state_id' => '3228','name' => 'Bulobarde'),\n \t array('id' => '38016','state_id' => '3228','name' => 'Jalalassi'),\n \t array('id' => '38017','state_id' => '3231','name' => 'Galka\\'yo'),\n \t array('id' => '38018','state_id' => '3231','name' => 'Hobyo'),\n \t array('id' => '38019','state_id' => '3231','name' => 'Xarardhere'),\n \t array('id' => '38020','state_id' => '3232','name' => 'Eyl'),\n \t array('id' => '38021','state_id' => '3232','name' => 'Garowe'),\n \t array('id' => '38022','state_id' => '3232','name' => 'Las\\'anod'),\n \t array('id' => '38023','state_id' => '3233','name' => '\\'Erigabo'),\n \t array('id' => '38024','state_id' => '3233','name' => 'Lasqoray'),\n \t array('id' => '38025','state_id' => '3236','name' => '\\'Ek'),\n \t array('id' => '38026','state_id' => '3236','name' => 'Bur\\'o'),\n \t array('id' => '38027','state_id' => '3236','name' => 'Odweyne'),\n \t array('id' => '38028','state_id' => '3240','name' => 'Alberton'),\n \t array('id' => '38029','state_id' => '3240','name' => 'Alrode'),\n \t array('id' => '38030','state_id' => '3240','name' => 'Benmore'),\n \t array('id' => '38031','state_id' => '3240','name' => 'Benoni'),\n \t array('id' => '38032','state_id' => '3240','name' => 'Boksburg'),\n \t array('id' => '38033','state_id' => '3240','name' => 'Booysens'),\n \t array('id' => '38034','state_id' => '3240','name' => 'Brakpan'),\n \t array('id' => '38035','state_id' => '3240','name' => 'Bronkhorstspruit'),\n \t array('id' => '38036','state_id' => '3240','name' => 'Bryanston'),\n \t array('id' => '38037','state_id' => '3240','name' => 'Carltonville'),\n \t array('id' => '38038','state_id' => '3240','name' => 'Centurion'),\n \t array('id' => '38039','state_id' => '3240','name' => 'Cullinan'),\n \t array('id' => '38040','state_id' => '3240','name' => 'Dainfern'),\n \t array('id' => '38041','state_id' => '3240','name' => 'Edenvale'),\n \t array('id' => '38042','state_id' => '3240','name' => 'Ferndale'),\n \t array('id' => '38043','state_id' => '3240','name' => 'Fourways'),\n \t array('id' => '38044','state_id' => '3240','name' => 'Gardenview'),\n \t array('id' => '38045','state_id' => '3240','name' => 'Gauteng'),\n \t array('id' => '38046','state_id' => '3240','name' => 'Grant Park'),\n \t array('id' => '38047','state_id' => '3240','name' => 'Heidelberg'),\n \t array('id' => '38048','state_id' => '3240','name' => 'Isando'),\n \t array('id' => '38049','state_id' => '3240','name' => 'Johannesburg'),\n \t array('id' => '38050','state_id' => '3240','name' => 'Kelvin'),\n \t array('id' => '38051','state_id' => '3240','name' => 'Krugersdorp'),\n \t array('id' => '38052','state_id' => '3240','name' => 'Linmeyer'),\n \t array('id' => '38053','state_id' => '3240','name' => 'Maraisburg'),\n \t array('id' => '38054','state_id' => '3240','name' => 'Midrand'),\n \t array('id' => '38055','state_id' => '3240','name' => 'Nigel'),\n \t array('id' => '38056','state_id' => '3240','name' => 'Northmead'),\n \t array('id' => '38057','state_id' => '3240','name' => 'Petervale'),\n \t array('id' => '38058','state_id' => '3240','name' => 'Pinegowrie'),\n \t array('id' => '38059','state_id' => '3240','name' => 'Pretoria'),\n \t array('id' => '38060','state_id' => '3240','name' => 'Primrose'),\n \t array('id' => '38061','state_id' => '3240','name' => 'Randburg'),\n \t array('id' => '38062','state_id' => '3240','name' => 'Randfontein'),\n \t array('id' => '38063','state_id' => '3240','name' => 'Randvaal'),\n \t array('id' => '38064','state_id' => '3240','name' => 'Rivonia'),\n \t array('id' => '38065','state_id' => '3240','name' => 'Robertville'),\n \t array('id' => '38066','state_id' => '3240','name' => 'Soweto'),\n \t array('id' => '38067','state_id' => '3240','name' => 'Springs'),\n \t array('id' => '38068','state_id' => '3240','name' => 'Temba'),\n \t array('id' => '38069','state_id' => '3240','name' => 'Tembisa'),\n \t array('id' => '38070','state_id' => '3240','name' => 'Troyeville'),\n \t array('id' => '38071','state_id' => '3240','name' => 'Vanderbijlpark'),\n \t array('id' => '38072','state_id' => '3240','name' => 'Vereeniging'),\n \t array('id' => '38073','state_id' => '3240','name' => 'Verwoerdburg'),\n \t array('id' => '38074','state_id' => '3240','name' => 'Vorna Valley'),\n \t array('id' => '38075','state_id' => '3240','name' => 'Wadeville'),\n \t array('id' => '38076','state_id' => '3240','name' => 'Westonaria'),\n \t array('id' => '38077','state_id' => '3242','name' => 'Sandton'),\n \t array('id' => '38078','state_id' => '3244','name' => 'Bela-Bela'),\n \t array('id' => '38079','state_id' => '3244','name' => 'Dendron'),\n \t array('id' => '38080','state_id' => '3244','name' => 'Duiwelskloof'),\n \t array('id' => '38081','state_id' => '3244','name' => 'Ellisras'),\n \t array('id' => '38082','state_id' => '3244','name' => 'Giyani'),\n \t array('id' => '38083','state_id' => '3244','name' => 'Lebowakgomo'),\n \t array('id' => '38084','state_id' => '3244','name' => 'Louis Trichardt'),\n \t array('id' => '38085','state_id' => '3244','name' => 'Lulekani'),\n \t array('id' => '38086','state_id' => '3244','name' => 'Mankweng'),\n \t array('id' => '38087','state_id' => '3244','name' => 'Messina'),\n \t array('id' => '38088','state_id' => '3244','name' => 'Mogalakwena'),\n \t array('id' => '38089','state_id' => '3244','name' => 'Mutale'),\n \t array('id' => '38090','state_id' => '3244','name' => 'Nkowakowa'),\n \t array('id' => '38091','state_id' => '3244','name' => 'Nylstroom'),\n \t array('id' => '38092','state_id' => '3244','name' => 'Phalaborwa'),\n \t array('id' => '38093','state_id' => '3244','name' => 'Pietersburg'),\n \t array('id' => '38094','state_id' => '3244','name' => 'Polokwane'),\n \t array('id' => '38095','state_id' => '3244','name' => 'Soekmekaar'),\n \t array('id' => '38096','state_id' => '3244','name' => 'Southdale'),\n \t array('id' => '38097','state_id' => '3244','name' => 'Thabazimbi'),\n \t array('id' => '38098','state_id' => '3244','name' => 'Thohoyandou'),\n \t array('id' => '38099','state_id' => '3244','name' => 'Thulamahashe'),\n \t array('id' => '38100','state_id' => '3244','name' => 'Tzaneen'),\n \t array('id' => '38101','state_id' => '3245','name' => 'Botleng'),\n \t array('id' => '38102','state_id' => '3245','name' => 'Ekangala'),\n \t array('id' => '38103','state_id' => '3245','name' => 'Embalenhle'),\n \t array('id' => '38104','state_id' => '3245','name' => 'Emjindini'),\n \t array('id' => '38105','state_id' => '3245','name' => 'Empuluzi'),\n \t array('id' => '38106','state_id' => '3245','name' => 'Emzinoni'),\n \t array('id' => '38107','state_id' => '3245','name' => 'Ermelo'),\n \t array('id' => '38108','state_id' => '3245','name' => 'Ethandakukhanja'),\n \t array('id' => '38109','state_id' => '3245','name' => 'Groblersdal'),\n \t array('id' => '38110','state_id' => '3245','name' => 'Komatipoort'),\n \t array('id' => '38111','state_id' => '3245','name' => 'Kriel'),\n \t array('id' => '38112','state_id' => '3245','name' => 'KwaZanele'),\n \t array('id' => '38113','state_id' => '3245','name' => 'Kwazamokuhle'),\n \t array('id' => '38114','state_id' => '3245','name' => 'Lebohang'),\n \t array('id' => '38115','state_id' => '3245','name' => 'Marblehall'),\n \t array('id' => '38116','state_id' => '3245','name' => 'Mashishing'),\n \t array('id' => '38117','state_id' => '3245','name' => 'Mhluzi'),\n \t array('id' => '38118','state_id' => '3245','name' => 'Nelspruit'),\n \t array('id' => '38119','state_id' => '3245','name' => 'Phola'),\n \t array('id' => '38120','state_id' => '3245','name' => 'Sakhile'),\n \t array('id' => '38121','state_id' => '3245','name' => 'Secunda'),\n \t array('id' => '38122','state_id' => '3245','name' => 'Siyabuswa'),\n \t array('id' => '38123','state_id' => '3245','name' => 'Siyathemba'),\n \t array('id' => '38124','state_id' => '3245','name' => 'Siyathuthuka'),\n \t array('id' => '38125','state_id' => '3245','name' => 'Vukuzakhe'),\n \t array('id' => '38126','state_id' => '3245','name' => 'Witbank'),\n \t array('id' => '38127','state_id' => '3245','name' => 'Witrivier'),\n \t array('id' => '38128','state_id' => '3245','name' => 'eLukwatini'),\n \t array('id' => '38129','state_id' => '3248','name' => 'Parow'),\n \t array('id' => '38130','state_id' => '3250','name' => 'Umtentweni'),\n \t array('id' => '38131','state_id' => '3255','name' => 'ALbatera'),\n \t array('id' => '38132','state_id' => '3255','name' => 'Alacant'),\n \t array('id' => '38133','state_id' => '3255','name' => 'Alcoi'),\n \t array('id' => '38134','state_id' => '3255','name' => 'Almoradi'),\n \t array('id' => '38135','state_id' => '3255','name' => 'Altea'),\n \t array('id' => '38136','state_id' => '3255','name' => 'Aspe'),\n \t array('id' => '38137','state_id' => '3255','name' => 'Benidorm'),\n \t array('id' => '38138','state_id' => '3255','name' => 'Benissa'),\n \t array('id' => '38139','state_id' => '3255','name' => 'Callosa de Segura'),\n \t array('id' => '38140','state_id' => '3255','name' => 'Calp'),\n \t array('id' => '38141','state_id' => '3255','name' => 'Cocentaina'),\n \t array('id' => '38142','state_id' => '3255','name' => 'Crevillent'),\n \t array('id' => '38143','state_id' => '3255','name' => 'Denia'),\n \t array('id' => '38144','state_id' => '3255','name' => 'El Campello'),\n \t array('id' => '38145','state_id' => '3255','name' => 'Elda'),\n \t array('id' => '38146','state_id' => '3255','name' => 'Elx'),\n \t array('id' => '38147','state_id' => '3255','name' => 'Guardamar del Segura'),\n \t array('id' => '38148','state_id' => '3255','name' => 'Ibi'),\n \t array('id' => '38149','state_id' => '3255','name' => 'L\\'Alfas del Pi'),\n \t array('id' => '38150','state_id' => '3255','name' => 'La Vila Joiosa'),\n \t array('id' => '38151','state_id' => '3255','name' => 'Monover'),\n \t array('id' => '38152','state_id' => '3255','name' => 'Mutxamel'),\n \t array('id' => '38153','state_id' => '3255','name' => 'Novelda'),\n \t array('id' => '38154','state_id' => '3255','name' => 'Orihuela'),\n \t array('id' => '38155','state_id' => '3255','name' => 'Pedreguer'),\n \t array('id' => '38156','state_id' => '3255','name' => 'Pego'),\n \t array('id' => '38157','state_id' => '3255','name' => 'Petrer'),\n \t array('id' => '38158','state_id' => '3255','name' => 'Pilar de la Horadada'),\n \t array('id' => '38159','state_id' => '3255','name' => 'Pinoso'),\n \t array('id' => '38160','state_id' => '3255','name' => 'Rojales'),\n \t array('id' => '38161','state_id' => '3255','name' => 'Sant Joan d\\'Alacant'),\n \t array('id' => '38162','state_id' => '3255','name' => 'Sant Vicent del Raspeig'),\n \t array('id' => '38163','state_id' => '3255','name' => 'Santa Pola'),\n \t array('id' => '38164','state_id' => '3255','name' => 'Sax'),\n \t array('id' => '38165','state_id' => '3255','name' => 'Teulada'),\n \t array('id' => '38166','state_id' => '3255','name' => 'Torrevieja'),\n \t array('id' => '38167','state_id' => '3255','name' => 'Villena'),\n \t array('id' => '38168','state_id' => '3255','name' => 'Xabia'),\n \t array('id' => '38169','state_id' => '3256','name' => 'Amurrio'),\n \t array('id' => '38170','state_id' => '3256','name' => 'Llodio'),\n \t array('id' => '38171','state_id' => '3256','name' => 'Vitoria'),\n \t array('id' => '38172','state_id' => '3257','name' => 'Albacete'),\n \t array('id' => '38173','state_id' => '3257','name' => 'Almansa'),\n \t array('id' => '38174','state_id' => '3257','name' => 'Caudete'),\n \t array('id' => '38175','state_id' => '3257','name' => 'Hellin'),\n \t array('id' => '38176','state_id' => '3257','name' => 'La Roda'),\n \t array('id' => '38177','state_id' => '3257','name' => 'Villarrobledo'),\n \t array('id' => '38178','state_id' => '3258','name' => 'Adra'),\n \t array('id' => '38179','state_id' => '3258','name' => 'Albox'),\n \t array('id' => '38180','state_id' => '3258','name' => 'Almeria'),\n \t array('id' => '38181','state_id' => '3258','name' => 'Berja'),\n \t array('id' => '38182','state_id' => '3258','name' => 'Cuevas del Almanzora'),\n \t array('id' => '38183','state_id' => '3258','name' => 'El Ejido'),\n \t array('id' => '38184','state_id' => '3258','name' => 'Huercal de Almeria'),\n \t array('id' => '38185','state_id' => '3258','name' => 'Huercal-Overa'),\n \t array('id' => '38186','state_id' => '3258','name' => 'Nijar'),\n \t array('id' => '38187','state_id' => '3258','name' => 'Roquetas de Mar'),\n \t array('id' => '38188','state_id' => '3258','name' => 'Vicar'),\n \t array('id' => '38189','state_id' => '3298','name' => 'Benalmadena'),\n \t array('id' => '38190','state_id' => '3260','name' => 'Aller'),\n \t array('id' => '38191','state_id' => '3260','name' => 'Aviles'),\n \t array('id' => '38192','state_id' => '3260','name' => 'C/ Pena Salon'),\n \t array('id' => '38193','state_id' => '3260','name' => 'Cangas del Narcea'),\n \t array('id' => '38194','state_id' => '3260','name' => 'Carreno'),\n \t array('id' => '38195','state_id' => '3260','name' => 'Castrillon'),\n \t array('id' => '38196','state_id' => '3260','name' => 'Corvera de Asturias'),\n \t array('id' => '38197','state_id' => '3260','name' => 'Gijon'),\n \t array('id' => '38198','state_id' => '3260','name' => 'Gozon'),\n \t array('id' => '38199','state_id' => '3260','name' => 'Grado'),\n \t array('id' => '38200','state_id' => '3260','name' => 'Langreo'),\n \t array('id' => '38201','state_id' => '3260','name' => 'Laviana'),\n \t array('id' => '38202','state_id' => '3260','name' => 'Lena'),\n \t array('id' => '38203','state_id' => '3260','name' => 'Llanera'),\n \t array('id' => '38204','state_id' => '3260','name' => 'Llanes'),\n \t array('id' => '38205','state_id' => '3260','name' => 'Mieres'),\n \t array('id' => '38206','state_id' => '3260','name' => 'Navia'),\n \t array('id' => '38207','state_id' => '3260','name' => 'Oviedo'),\n \t array('id' => '38208','state_id' => '3260','name' => 'Pilona'),\n \t array('id' => '38209','state_id' => '3260','name' => 'Pravia'),\n \t array('id' => '38210','state_id' => '3260','name' => 'San Martin del Rey Aurelio'),\n \t array('id' => '38211','state_id' => '3260','name' => 'Siero'),\n \t array('id' => '38212','state_id' => '3260','name' => 'Tineo'),\n \t array('id' => '38213','state_id' => '3260','name' => 'Valdes'),\n \t array('id' => '38214','state_id' => '3260','name' => 'Villaviciosa'),\n \t array('id' => '38215','state_id' => '3261','name' => 'Avila'),\n \t array('id' => '38216','state_id' => '3262','name' => 'Almendralejo'),\n \t array('id' => '38217','state_id' => '3262','name' => 'Azuaga'),\n \t array('id' => '38218','state_id' => '3262','name' => 'Badajoz'),\n \t array('id' => '38219','state_id' => '3262','name' => 'Don Benito'),\n \t array('id' => '38220','state_id' => '3262','name' => 'Jerez de los Caballeros'),\n \t array('id' => '38221','state_id' => '3262','name' => 'Merida'),\n \t array('id' => '38222','state_id' => '3262','name' => 'Montijo'),\n \t array('id' => '38223','state_id' => '3262','name' => 'Olivenza'),\n \t array('id' => '38224','state_id' => '3262','name' => 'Villafranca de los Barros'),\n \t array('id' => '38225','state_id' => '3262','name' => 'Villanueva de la Serena'),\n \t array('id' => '38226','state_id' => '3262','name' => 'Zafra'),\n \t array('id' => '38227','state_id' => '3263','name' => 'Alayor-Menorca'),\n \t array('id' => '38228','state_id' => '3263','name' => 'Alcudia'),\n \t array('id' => '38229','state_id' => '3263','name' => 'Calvia'),\n \t array('id' => '38230','state_id' => '3263','name' => 'Capdepera'),\n \t array('id' => '38231','state_id' => '3263','name' => 'Ciutadella de Menorca'),\n \t array('id' => '38232','state_id' => '3263','name' => 'Eivissa'),\n \t array('id' => '38233','state_id' => '3263','name' => 'Felanitx'),\n \t array('id' => '38234','state_id' => '3263','name' => 'Inca'),\n \t array('id' => '38235','state_id' => '3263','name' => 'Llucmajor'),\n \t array('id' => '38236','state_id' => '3263','name' => 'Mahon'),\n \t array('id' => '38237','state_id' => '3263','name' => 'Manacor'),\n \t array('id' => '38238','state_id' => '3263','name' => 'Marratxi'),\n \t array('id' => '38239','state_id' => '3263','name' => 'Palma'),\n \t array('id' => '38240','state_id' => '3263','name' => 'Pollenca'),\n \t array('id' => '38241','state_id' => '3263','name' => 'Sa Pobla'),\n \t array('id' => '38242','state_id' => '3263','name' => 'Sant Antoni de Portmany'),\n \t array('id' => '38243','state_id' => '3263','name' => 'Sant Josep de sa Talaia'),\n \t array('id' => '38244','state_id' => '3263','name' => 'Santa Eulalia del Rio'),\n \t array('id' => '38245','state_id' => '3263','name' => 'Santanyi'),\n \t array('id' => '38246','state_id' => '3263','name' => 'Soller'),\n \t array('id' => '38247','state_id' => '3264','name' => 'Abrera'),\n \t array('id' => '38248','state_id' => '3264','name' => 'Alella'),\n \t array('id' => '38249','state_id' => '3264','name' => 'Arenys de Mar'),\n \t array('id' => '38250','state_id' => '3264','name' => 'Argentona'),\n \t array('id' => '38251','state_id' => '3264','name' => 'Badalona'),\n \t array('id' => '38252','state_id' => '3264','name' => 'Badia del Valles'),\n \t array('id' => '38253','state_id' => '3264','name' => 'Barbera del Valles'),\n \t array('id' => '38254','state_id' => '3264','name' => 'Barcelona'),\n \t array('id' => '38255','state_id' => '3264','name' => 'Berga'),\n \t array('id' => '38256','state_id' => '3264','name' => 'Cabrera de Mar'),\n \t array('id' => '38257','state_id' => '3264','name' => 'Caldes de Montbui'),\n \t array('id' => '38258','state_id' => '3264','name' => 'Calella'),\n \t array('id' => '38259','state_id' => '3264','name' => 'Canet de Mar'),\n \t array('id' => '38260','state_id' => '3264','name' => 'Canovelles'),\n \t array('id' => '38261','state_id' => '3264','name' => 'Cardedeu'),\n \t array('id' => '38262','state_id' => '3264','name' => 'Castellar del Valles'),\n \t array('id' => '38263','state_id' => '3264','name' => 'Castellbisbal'),\n \t array('id' => '38264','state_id' => '3264','name' => 'Castelldefels'),\n \t array('id' => '38265','state_id' => '3264','name' => 'Cerdanyola'),\n \t array('id' => '38266','state_id' => '3264','name' => 'Corbera de Llobregat'),\n \t array('id' => '38267','state_id' => '3264','name' => 'Cornella'),\n \t array('id' => '38268','state_id' => '3264','name' => 'El Masnou'),\n \t array('id' => '38269','state_id' => '3264','name' => 'El Prat de Llobregat'),\n \t array('id' => '38270','state_id' => '3264','name' => 'Esparreguera'),\n \t array('id' => '38271','state_id' => '3264','name' => 'Esplugues de Llobregat'),\n \t array('id' => '38272','state_id' => '3264','name' => 'Gava'),\n \t array('id' => '38273','state_id' => '3264','name' => 'Granollers'),\n \t array('id' => '38274','state_id' => '3264','name' => 'Igualada'),\n \t array('id' => '38275','state_id' => '3264','name' => 'L\\'Hospitalet de Llobregat'),\n \t array('id' => '38276','state_id' => '3264','name' => 'La Garriga'),\n \t array('id' => '38277','state_id' => '3264','name' => 'La Llagosta'),\n \t array('id' => '38278','state_id' => '3264','name' => 'Les Franquesas del Valles'),\n \t array('id' => '38279','state_id' => '3264','name' => 'Llica d\\'Amunt'),\n \t array('id' => '38280','state_id' => '3264','name' => 'Malgrat de Mar'),\n \t array('id' => '38281','state_id' => '3264','name' => 'Manlleu'),\n \t array('id' => '38282','state_id' => '3264','name' => 'Manresa'),\n \t array('id' => '38283','state_id' => '3264','name' => 'Martorell'),\n \t array('id' => '38284','state_id' => '3264','name' => 'Mataro'),\n \t array('id' => '38285','state_id' => '3264','name' => 'Molins de Rei'),\n \t array('id' => '38286','state_id' => '3264','name' => 'Mollet del Valles'),\n \t array('id' => '38287','state_id' => '3264','name' => 'Montcada i Reixac'),\n \t array('id' => '38288','state_id' => '3264','name' => 'Montgat')\n \t);\n foreach(array_chunk($cities,500) as $city){\n Cities::insert($city);\n } \n }", "title": "" }, { "docid": "9b6ecd606d05aa28f113efd9fa68b0c1", "score": "0.48982787", "text": "public function deviceCompliancePolicySettingStateSummaries(): DeviceCompliancePolicySettingStateSummariesRequestBuilder {\n return new DeviceCompliancePolicySettingStateSummariesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "da39d99bb9f3223033bec98b4523595e", "score": "0.48925346", "text": "public function prepareStatesQuery(){\n\t\t$ids = array();\n\n\t\tforeach($this->data as $value){\n\n\t\t\tif (!isset($value->id)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$ids[] = $value->id;\n\t\t}\n\n\t\t$idsToString = implode(',', $ids);\n\n\t\treturn $idsToString;\n\t}", "title": "" }, { "docid": "3c6a22c37ce64c9abff34edaeb87b09a", "score": "0.4887113", "text": "public function getSelectedStateIds() {\n\t\t$this->loadStates();\n\t\t$ids = $this->CI->user->state_ids;\n\t\tif(!empty($this->selectedState)) {\n\t\t\t$ids = array($this->selectedState->id);\n\t\t} else if(!empty($this->selectedSet)) {\n\t\t\t$ids = array();\n\t\t\tforeach($this->selectedSet as $state) {\n\t\t\t\t$ids[] = $state->id;\n\t\t\t}\n\t\t}\n\t\treturn array_map('intval', $ids);\n\t}", "title": "" }, { "docid": "8ed756525da5cfd23f286b78b9bd46f3", "score": "0.4880231", "text": "public function getStateSelections() {\n\t\t$this->loadStates();\n\n\t\t$ret = NULL;\n\n\t\tif(!empty($this->selectedState)) {\n\t\t\t$ret = $this->selectedState;\n\t\t} else if(!empty($this->selectedSet)) {\n\t\t\t$ret = reset($this->selectedSet)->set;\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "a64aeaba4f27f0def764855ce8e89183", "score": "0.48782724", "text": "public function run(){\n\t\tState::truncate();\n\t\tArrays::each($this->states, fn($state) => State::create($state));\n\t}", "title": "" }, { "docid": "2e422e9ebae75c786cf89bbaf3db1b2b", "score": "0.48727068", "text": "function get_all_state(){\n $this->db->select('s.iStateId,s.iCountryId,s.vState,s.eStatus,c.vCountry');\n $this->db->from('state as s');\n $this->db->join('country as c','s.iCountryId =c.iCountryId');\n $this->db->order_by('vState');\n //$this->db->order_by('iStateId desc');\n $query = $this->db->get();\n return $query->result_array();\n }", "title": "" }, { "docid": "d26457a63b0355a582667bf7066dfc40", "score": "0.48700345", "text": "protected function _buildArray()\n {\n $trunk = array();\n if (!isset($this->_indentSort[0])) {\n return $trunk;\n }\n\n foreach ($this->_indentSort[0] as $n) {\n if (empty($n->parent)) {\n $this->_nodeArrayizeData($n);\n\n // Check for references and copy the needed data to complete them.\n $this->_makeReferences($n);\n\n // Merge our data with the big array we're building\n $trunk = $this->_array_kmerge($trunk, $n->data);\n }\n }\n\n return $trunk;\n }", "title": "" }, { "docid": "954cf076a98738fba4e45d09f5bab4e2", "score": "0.48678076", "text": "protected function _buildArray()\n {\n $trunk = array();\n if (!isset($this->_indentSort[0])) {\n return $trunk;\n }\n\n foreach ($this->_indentSort[0] as $n) {\n if (empty($n->parent)) {\n $this->_nodeArrayizeData($n);\n\n // Check for references and copy the needed data to complete\n // them.\n $this->_makeReferences($n);\n\n // Merge our data with the big array we're building\n $trunk = $this->_array_kmerge($trunk, $n->data);\n }\n }\n\n return $trunk;\n }", "title": "" }, { "docid": "5d8e50712ba22acc141f0c7727eeed37", "score": "0.4857633", "text": "function StatesList() {\n\t\treturn array(\n\t\t\t'AL'=>\"Alabama\", \n\t\t\t'AK'=>\"Alaska\", \n\t\t\t'AZ'=>\"Arizona\", \n\t\t\t'AR'=>\"Arkansas\", \n\t\t\t'CA'=>\"California\", \n\t\t\t'CO'=>\"Colorado\", \n\t\t\t'CT'=>\"Connecticut\", \n\t\t\t'DE'=>\"Delaware\", \n\t\t\t'DC'=>\"District Of Columbia\", \n\t\t\t'FL'=>\"Florida\", \n\t\t\t'GA'=>\"Georgia\", \n\t\t\t'HI'=>\"Hawaii\", \n\t\t\t'ID'=>\"Idaho\", \n\t\t\t'IL'=>\"Illinois\", \n\t\t\t'IN'=>\"Indiana\", \n\t\t\t'IA'=>\"Iowa\", \n\t\t\t'KS'=>\"Kansas\", \n\t\t\t'KY'=>\"Kentucky\", \n\t\t\t'LA'=>\"Louisiana\", \n\t\t\t'ME'=>\"Maine\", \n\t\t\t'MD'=>\"Maryland\", \n\t\t\t'MA'=>\"Massachusetts\", \n\t\t\t'MI'=>\"Michigan\", \n\t\t\t'MN'=>\"Minnesota\", \n\t\t\t'MS'=>\"Mississippi\", \n\t\t\t'MO'=>\"Missouri\", \n\t\t\t'MT'=>\"Montana\",\n\t\t\t'NE'=>\"Nebraska\",\n\t\t\t'NV'=>\"Nevada\",\n\t\t\t'NH'=>\"New Hampshire\",\n\t\t\t'NJ'=>\"New Jersey\",\n\t\t\t'NM'=>\"New Mexico\",\n\t\t\t'NY'=>\"New York\",\n\t\t\t'NC'=>\"North Carolina\",\n\t\t\t'ND'=>\"North Dakota\",\n\t\t\t'OH'=>\"Ohio\", \n\t\t\t'OK'=>\"Oklahoma\", \n\t\t\t'OR'=>\"Oregon\", \n\t\t\t'PA'=>\"Pennsylvania\", \n\t\t\t'RI'=>\"Rhode Island\", \n\t\t\t'SC'=>\"South Carolina\", \n\t\t\t'SD'=>\"South Dakota\",\n\t\t\t'TN'=>\"Tennessee\", \n\t\t\t'TX'=>\"Texas\", \n\t\t\t'UT'=>\"Utah\", \n\t\t\t'VT'=>\"Vermont\", \n\t\t\t'VA'=>\"Virginia\", \n\t\t\t'WA'=>\"Washington\", \n\t\t\t'WV'=>\"West Virginia\", \n\t\t\t'WI'=>\"Wisconsin\", \n\t\t\t'WY'=>\"Wyoming\",\n\t\t\t'-' => '-----',\n\t\t\t'AB' => 'Alberta',\n\t\t\t'BC' => 'British Columbia',\n\t\t\t'MB' => 'Manitoba',\n\t\t\t'NB' => 'New Brunswick',\n\t\t\t'NL' => 'Newfoundland and Labrador',\n\t\t\t'NS' => 'Nova Scotia',\n\t\t\t'ON' => 'Ontario',\n\t\t\t'PE' => 'Prince Edward Island',\n\t\t\t'QC' => 'Quebec',\n\t\t\t'SK' => 'Saskatchewan'\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "fe21c2222ce495737db13ceea6625fc7", "score": "0.48551205", "text": "function getStateAbbrs(){\n $state_abbrs = array( 'al','ak','az','ar','ca','co','ct','de','fl','ga','hi','id','il','in','ia','ks','ky','la','me','md','ma','mi','mn','ms','mo','mt','ne','nv','nh','nj','nm','ny','nc','nd','oh','ok','or','pa','ri','sc','sd','tn','tx','ut','vt','va','wa','wv','wi','wy');\n\n return $state_abbrs;\n}", "title": "" }, { "docid": "7931740954978985eec686ad75010b40", "score": "0.48540413", "text": "protected function retrieveListState(){\n $state = Array();\n $state['filters'] = Array();\n\n //Sort and Order\n $state['sort'] = (in_array(Input::get('sort'), $this->listSort) ? Input::get('sort') : $this->defaultSort);\n $state['order'] = (in_array(Input::get('order'), array('asc', 'desc')) ? Input::get('order') : $this->defaultOrder);\n\n //Pagination\n $state['page'] = Input::get('page', 1);\n $state['page_size'] = Input::get('page_size', $this->pageSize);\n\n //Search String\n $state['q'] = Input::get('q', '');\n\n $country = null;\n\n if (Input::get('country')) {\n $country = Country::find(Input::get('country'));\n if (!is_null($country)){\n $countryFilter = new \\stdClass;\n $countryFilter->value = $country->id;\n $countryFilter->label = $country->country_name;\n $countryFilter->type = 'country';\n $state['filters'][] = $countryFilter;\n }\n }\n\n //Only display states if country is selected\n if (Input::get('state') && !is_null($country)) {\n $location = State::find(Input::get('state'));\n if (!is_null($location)){\n $locationFilter = new \\stdClass;\n $locationFilter->value = $location->id;\n $locationFilter->label = $location->name;\n $locationFilter->type = 'state';\n $state['filters'][] = $locationFilter;\n }\n }\n\n if (Input::get('category')) {\n $category = Category::getFromCache(Input::get('category'));\n if (!is_null($category)) {\n $categoryFilter = new \\stdClass;\n $categoryFilter->value = $category->id;\n $categoryFilter->label = $category->name;\n $categoryFilter->type = 'category';\n $state['filters'][] = $categoryFilter;\n }\n }\n\n return $state;\n }", "title": "" }, { "docid": "a22e3ea4fed1d3765181b0e8fb20f416", "score": "0.4845702", "text": "public function get_states_list(){\n //echo '<pre>'; print_r($_POST);exit;\n $id = $this->input->post('id');\n $data['states'] = $this->lessions_model->get_states_list($id);\n if($data['states']){\n $data['status'] = 0;\n }else{\n $data['status'] = 1;\n }\n //echo '<pre>'; print_r($states);exit;\n echo json_encode($data);\n }", "title": "" }, { "docid": "4a44a961d81108e461eafc9a0f54ac3d", "score": "0.48400488", "text": "private function initializeStateMachine(){\r\n $state0 = new State();\r\n $state1 = new State();\r\n $state2 = new State();\r\n\r\n $state0->setTransition(0, $state0);\r\n $state0->setTransition(1, $state1);\r\n $state1->setTransition(0, $state2);\r\n $state1->setTransition(1, $state0);\r\n $state2->setTransition(0, $state1);\r\n $state2->setTransition(1, $state2);\r\n\r\n $state0->setFinalState(0);\r\n $state1->setFinalState(1);\r\n $state2->setFinalState(2);\r\n\r\n //set the current state\r\n $this->currentState = $state0;\r\n }", "title": "" }, { "docid": "742761547bc2ecb4c759d279d9e77995", "score": "0.48329988", "text": "public function listNeededOutgoingStates(): array;", "title": "" }, { "docid": "3f9cabb10f194f512bde1f3d4a919dca", "score": "0.48201665", "text": "public function provideTotalSetsData()\n {\n return [\n [0, 3, 3],\n [1, 3, 4],\n [2, 3, 5],\n [3, 0, 3],\n [3, 1, 4],\n [3, 2, 5],\n ];\n }", "title": "" }, { "docid": "417e5fd952aa674737f139f400f1b06a", "score": "0.48149708", "text": "public function get_states()\n {\n $companyID = $this->uri->segment(4);\n \n $this->db->select(\"*\")\n ->from('tbl_div')\n ->where('iDivCompany', $companyID);\n $db = $this->db->get();\n \n $array = array();\n foreach($db->result() as $row):\n $array[] = array(\"value\" => $row->iDivId, \"property\" => $row->cDivName);\n endforeach;\n \n echo json_encode($array);\n exit;\n }", "title": "" }, { "docid": "3dc64b778cb4a10dcf02708760d453ea", "score": "0.48119172", "text": "public static function build_date_sets( $dates_array = array() )\n\t{\n\t \t// prepare results array\n\t\t$multi = array();\n\n\t\t// take the first date from the submitted array\n\t\t$group_start = array_shift($dates_array);\n\t\t$timestamp_previous_iteration = strtotime($group_start);\n\n\t\t// iterate over remaining values\n\t\tforeach ($dates_array as $date) {\n\t\t\t// calculate current iteration's timestamp\n\t\t\t$timestamp_current = strtotime($date);\n\n\t\t\t// calculate timestamp for 1 day before the current value\n\t\t\t$timestamp_yesterday = strtotime('-1 day', $timestamp_current);\n\n\t\t\tif ($timestamp_previous_iteration != $timestamp_yesterday) {\n\t\t\t\t// create group...\n\t\t\t\t$multi[$group_start] = date('Y-m-d', $timestamp_previous_iteration);\n\t\t\t\t// ...and store the next group's start date\n\t\t\t\t$group_start = $date;\n\t\t\t}\n\n\t\t\t// log timestamp for next iteration\n\t\t\t$timestamp_previous_iteration = $timestamp_current;\n\t\t}\n\n\t\t// add final group\n\t\t$multi[$group_start] = date('Y-m-d', $timestamp_previous_iteration);\n\n\t\t$result = array();\n\t\tforeach ($multi as $key=>$val) {\n\t\t\t$result[] = array($key , $val );\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "fbff087e6913a148551461f74285a828", "score": "0.47924864", "text": "public static abstract function getStages(): array;", "title": "" }, { "docid": "f7fd023c3ddf735c3417eb51ab93d86f", "score": "0.4792022", "text": "public static function getStates($workflowName) {\n if (empty($workflowName)) {\n return [];\n }\n\n $workflow = Workflow::load($workflowName);\n $states = $workflow->getStates('CREATION');\n $available = [];\n foreach ($states as $machineName => $state) {\n $available[$machineName] = $state->label();\n }\n\n return $available;\n }", "title": "" }, { "docid": "c0ef7fce3a51b37a1b2316034bef1896", "score": "0.4780658", "text": "function print_state_select($selected_state) {\n\n$state_array = array(\n'AL' => 'Alabama',\n'AK' => 'Alaska',\n'AZ' => 'Arizona',\n'AR' => 'Arkansas',\n'CA' => 'California',\n'CO' => 'Colorado',\n'CT' => 'Connecticut',\n'DE' => 'Delaware',\n'DC' => 'District Of Columbia',\n'FL' => 'Florida',\n'GA' => 'Georgia',\n'HI' => 'Hawaii',\n'ID' => 'Idaho',\n'IL' => 'Illinois',\n'IN' => 'Indiana',\n'IA' => 'Iowa',\n'KS' => 'Kansas',\n'KY' => 'Kentucky',\n'LA' => 'Louisiana',\n'ME' => 'Maine',\n'MD' => 'Maryland',\n'MA' => 'Massachusetts',\n'MI' => 'Michigan',\n'MN' => 'Minnesota',\n'MS' => 'Mississippi',\n'MO' => 'Missouri',\n'MT' => 'Montana',\n'NE' => 'Nebraska',\n'NV' => 'Nevada',\n'NH' => 'New Hampshire',\n'NJ' => 'New Jersey',\n'NM' => 'New Mexico',\n'NY' => 'New York',\n'NC' => 'North Carolina',\n'ND' => 'North Dakota',\n'OH' => 'Ohio',\n'OK' => 'Oklahoma',\n'OR' => 'Oregon',\n'PA' => 'Pennsylvania',\n'RI' => 'Rhode Island',\n'SC' => 'South Carolina',\n'SD' => 'South Dakota',\n'TN' => 'Tennessee',\n'TX' => 'Texas',\n'UT' => 'Utah',\n'VT' => 'Vermont',\n'VA' => 'Virginia',\n'WA' => 'Washington',\n'WV' => 'West Virginia',\n'WI' => 'Wisconsin',\n'WY' => 'Wyoming'\n);\n\n$select_box = \"<select name=\\\"state\\\" limit=\\\"7\\\"> \n<option value=\\\"\\\" selected=\\\"selected\\\">Select a State</option> \\r\\n\";\nforeach ($state_array as $ini => $name) {\n$select_box .= \"<option value=\\\"\".$ini.\"\\\" \".($selected_state == $ini ? \"selected\" : \"\"). \">\".$name.\"</option> \\r\\n\";\n}\n$select_box .= \"</select>\";\n\nreturn $select_box;\n}", "title": "" }, { "docid": "c90313a73732acaf714023145f2ea712", "score": "0.4755608", "text": "public function _buildRegionalCategories($countries = null) {\n $groupingId = $this->addCustomGrouping();\n\n $tree = array();\n $tree['countries'] = array();\n $tree['states'] = array();\n $tree['cities'] = array();\n $tree['groups'] = array();\n $tree_count = array();\n $used_countries = array();\n $groups_count_in_city = array();\n $currentGroup = Warecorp_Group_Factory::loadById($this->getGroupId(),Warecorp_Group_Enum_GroupType::GROUP_TYPE_FAMILY);\n if ( !($currentGroup instanceof Warecorp_Group_Family) ) throw new Zend_Exception('Can not use hierarchy tools for non family group');\n $groups = $currentGroup->getGroups()->setTypes(array('simple','family'))->returnAsAssoc()->getList();\n\n \n\n /**\n * Все выбранные для фокуса страны добавляются независемо, есть в них группы или нет.\n */\n if ( sizeof($countries) != 0 ) {\n foreach ( $countries as $country ) {\n $tmpCountry = Warecorp_Location_Country::create($country);\n $tree['countries'][] = array(\n 'id' => $tmpCountry->id,\n 'name' => $tmpCountry->name,\n 'parent' => null\n );\n $used_countries[] = $tmpCountry->id;\n $tree_count['country_'.$tmpCountry->id] = 0;\n }\n }\n\n /**\n * build tree\n * в дерево добавляются только страны, штаты, город в которых ЕСТЬ группы\n * остальные не добавляются\n */\n if ( is_array($groups) && sizeof($groups) > 0 ) {\n $used_states = array();\n $used_cities = array();\n $tree['allow_countries'] = $countries;\n\n foreach ( $groups as $groupId=>$groupName ) {\n $group = Warecorp_Group_Factory::loadById($groupId,Warecorp_Group_Enum_GroupType::GROUP_TYPE_SIMPLE);\n $tmpCountry = $group->getCountry();\n if ( null === $tree['allow_countries'] || in_array($tmpCountry->id, $tree['allow_countries']) ) {\n if ( $tmpCountry->id && !in_array($tmpCountry->id, $used_countries) ) {\n //$tree['countries'][$tmpCountry->id] = $this->addCustomCategory($tmpCountry->name, $groupingId);\n $tree['countries'][] = array(\n 'id' => $tmpCountry->id,\n 'name' => $tmpCountry->name,\n 'parent' => null\n );\n $used_countries[] = $tmpCountry->id;\n $tree_count['country_'.$tmpCountry->id] = 0;\n }\n $tmpState = $group->getState();\n if ( $tmpState->id && !in_array($tmpState->id, $used_states) ) {\n //$tree['states'][$tmpState->id] = $this->addCustomCategory($tmpState->name, $tree['countries'][$tmpCountry->id]);\n $tree['states'][] = array(\n 'id' => $tmpState->id,\n 'name' => $tmpState->name,\n 'parent' => $tmpCountry->id\n );\n $used_states[] = $tmpState->id;\n $tree_count['state_'.$tmpState->id] = 0;\n }\n $tmpCity = $group->getCity();\n if ( $tmpCity->id && !in_array($tmpCity->id, $used_cities) ) {\n //$tree['cities'][$tmpCity->id] = $this->addCustomCategory($tmpCity->name, $tree['states'][$tmpState->id]);\n $tree['cities'][] = array(\n 'id' => $tmpCity->id,\n 'name' => $tmpCity->name,\n 'parent' => $tmpState->id\n );\n $used_cities[] = $tmpCity->id;\n $tree_count['city_'.$tmpCity->id] = 0;\n }\n if ( $tmpCountry->id && $tmpState->id && $tmpCity->id ) {\n $tree['groups'][] = array(\n 'id' => $group->getId(),\n 'name' => $group->getName(),\n 'parent' => $tmpCity->id\n );\n $tree_count['country_'.$tmpCountry->id] ++;\n $tree_count['state_'.$tmpState->id] ++;\n $tree_count['city_'.$tmpCity->id] ++;\n }\n }\n }\n usort($tree['countries'], 'sortHierarchyByName');\n usort($tree['states'], 'sortHierarchyByName');\n usort($tree['cities'], 'sortHierarchyByName');\n usort($tree['groups'], 'sortHierarchyByName');\n }\n foreach ( $tree['countries'] as $item ) {\n $countries[$item['id']] = $this->addCustomCategory($item['name'], $groupingId);\n }\n foreach ( $tree['states'] as $item ) {\n $states[$item['id']] = $this->addCustomCategory($item['name'], $countries[$item['parent']]);\n }\n foreach ( $tree['cities'] as $item ) {\n $cities[$item['id']] = $this->addCustomCategory($item['name'], $states[$item['parent']]);\n }\n foreach ( $tree['groups'] as $item ) {\n $this->addCustomItem($item['id'], $cities[$item['parent']] );\n }\n\n // Вывод полного списка штатов для выбранных в фокусе стран.\n// if ( sizeof($countries) != 0 ) {\n// $countries_list = Warecorp_Location::getCountriesListByIds($countries);\n// }\n// if ( sizeof($countries_list) != 0 ) {\n// foreach ( $countries_list as $country ) {\n// $countryId = $this->addCustomCategory($country->name, $groupingId);\n// $states_list = $country->getStatesList();\n// if ( sizeof($states_list) != 0 ) {\n// foreach( $states_list as $state ) {\n// $stateId = $this->addCustomCategory($state->name, $countryId);\n// /*\n// $cities_list = $state->getCitiesList();\n// if ( sizeof($cities_list) != 0 ) {\n// foreach ( $cities_list as $city ) {\n// $cityId = $this->addCustomCategory($city->name, $stateId);\n// }\n// }\n// */\n// }\n// }\n// }\n// }\n }", "title": "" }, { "docid": "989975dbbe34dd965fddb57c26fb914c", "score": "0.473053", "text": "function find_all_states() {\n global $db;\n $sql = \"SELECT * FROM states \";\n $sql .= \"ORDER BY name ASC;\";\n $state_result = db_query($db, $sql);\n return $state_result;\n }", "title": "" }, { "docid": "cdaf6b72fd3ecf09b88d82ce2ee3b360", "score": "0.4727502", "text": "function get_all_states_in_country( $settings = array() ){\n\t\tif( isset( $settings['country_id'] ) && $settings['country_id'] ){\n\t\t\t$cache_key = 'state_list';\n\t\t\treturn get_from_cached( array(\n\t\t\t\t'data' => $settings['country_id'],\n\t\t\t\t'cache_key' => $cache_key . '-' . $settings['country_id'],\n\t\t\t\t'directory_name' => $cache_key,\n\t\t\t) );\n\t\t}\n\t}", "title": "" } ]
a41736337c61608af6887110b2be0d54
Returns all team participating this competition.
[ { "docid": "56646be279d7463d368c826c016762c6", "score": "0.0", "text": "public function getTeams($ignoreDummies = true)\n {\n if (!is_array($this->teams)) {\n $uids = $this->getProperty('teams');\n $options['where'] = 'uid IN ('.$uids.') ';\n if ($ignoreDummies) {\n $options['where'] .= ' AND dummy <> 1 ';\n }\n\n $options['wrapperclass'] = 'tx_cfcleaguefe_models_team';\n $options['orderby'] = 'sorting';\n $this->teams = Tx_Rnbase_Database_Connection::getInstance()->doSelect('*', 'tx_cfcleague_teams', $options, 0);\n }\n\n return $this->teams;\n }", "title": "" } ]
[ { "docid": "2305c2b92f36acd6160ba730950c9639", "score": "0.6908215", "text": "public function getAll()\n {\n return Team::all();\n }", "title": "" }, { "docid": "8b7a609e52f373105914caf648f56925", "score": "0.67529607", "text": "public function getAll(){\n\t\t$url = WEBSERVICE. \"teams/getAll\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"GET\");\n\t\t$arrayResponse = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $this->arrayToTeam($arrayResponse, false);\n\t}", "title": "" }, { "docid": "dae3c283488596da33c48d21d7bf8ae0", "score": "0.67110884", "text": "public function findAllParticipants() {\n\n\t\t$stmt = $this->db->query(\"SELECT * FROM participaciones, usuarios WHERE usuarios.email = participaciones.email\");\n\t\t$participantes_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t$participantes = array();\n\n\t\tforeach ($participantes_db as $participante) {\n\n\t\t\tarray_push($participantes, new Participante($participante[\"idEncuesta\"], $participante[\"email\"]));\n\t\t}\n\n\t\treturn $participantes;\n\t}", "title": "" }, { "docid": "86f555c34f0d0af035fe59bdc3dffb35", "score": "0.6709176", "text": "public static function get_all_team()\r\n {\r\n $result = db::sql(\"SELECT DISTINCT Team FROM `superrugby_2016_scores_18`;\", DB_NAME);\r\n $all_team = null;\r\n if (mysqli_num_rows($result)){\r\n while(list($team) = mysqli_fetch_array($result)){\r\n $all_team[] = $team;\r\n }\r\n }\r\n return $all_team;\r\n }", "title": "" }, { "docid": "9197a15cc9a5a09d5a8cfe578e71389f", "score": "0.6633813", "text": "public function getParticipants()\r\n {\r\n return $this->hasMany(MeetingParticipant::className(), ['meeting_id' => 'id']);\r\n }", "title": "" }, { "docid": "c03fb16e20d76c8f67b35de174c48b72", "score": "0.6438545", "text": "public function getTeams();", "title": "" }, { "docid": "9baee65ecd1d8a6dd9eda412f4cafb80", "score": "0.6430702", "text": "public function getTeamList() {\n if ($this->cached['Team']) return array_values($this->cache['Team']);\n return XPClass::forName('de.uska.db.Team')\n ->getMethod('getPeer')\n ->invoke()\n ->doSelect(new Criteria(\n array('team_id', $this->getTeam_id(), EQUAL)\n ));\n }", "title": "" }, { "docid": "5039eeb5d2bdaa045286ca761f95b50e", "score": "0.64123887", "text": "public function participants()\n {\n return $this->members()->wherePivot('role', '=', Member::ROLE_PARTICIPANT)->get();\n }", "title": "" }, { "docid": "ef28738c4af8b75ccc8a4bb0dc6ca9b4", "score": "0.6409647", "text": "public function getTeams()\n {\n $em = $this->getEntityManager();\n $query = $em->createQuery(\n 'SELECT p\n FROM Vlreleases\\UserBundle\\Entity\\Team p\n ORDER BY p.tname ASC'\n );\n $result = $query->getResult();\n \n return $result;\n }", "title": "" }, { "docid": "872ff114c2fdc6393de9b7d808c298a4", "score": "0.63720214", "text": "public function get_teams()\r\n\t\t{\r\n\t\t\t$retArr = $this->obj->result;\r\n\r\n\t\t\treturn $retArr;\r\n\t\t}", "title": "" }, { "docid": "55ee56b1a43ff21c6c1a393e9bf19e04", "score": "0.6364654", "text": "public function teams()\n {\n return $this->belongsToMany('App\\Team', 'competitions_teams', 'competitionId', 'teamId');\n }", "title": "" }, { "docid": "c7c3ebd941e8cbadd7d78b6caec75564", "score": "0.63470775", "text": "public function getParticipants(): Collection;", "title": "" }, { "docid": "94a4ce42f2234f4d12318abce23f4f92", "score": "0.6321935", "text": "final public function getParticipants() {\n\n\t\t// all events\n\t\t$search = new MetaSearch($config);\n\t\t$search->setWebNameFilter('Main');\n\t\t$search->setFormNameFilter('EventForm');\n\t\t$search->executeQuery();\n\n\t\t$this->config->pushStrictMode(false);\n\t\tforeach($search->getResults() as $eventTopicName) {\n\t\t\t$topic = $this->topicFactory->loadTopicByName($eventTopicName);\n\t\t\t$event = new CiantEvent($topic);\n\n\t\t\t$collaborators = $event->getCollaborators();\n\t\t}\n\t\t$this->config->popStrictMode();\n\n//\t\t$list = array();\n//\t\tforeach($search->getResults() as $topicName) {\n//\t\t\t$topic = $db->loadTopicByName($topicName);\n//\t\t\t$event = new CiantEvent($topic);\n//\t\t\t$collab = $event->getCollaborators();\n//\t\t\tforeach($collab as $user) {\n//\t\t\t\tif($user instanceof CiantUser) {\n//\t\t\t\t\t$list[spl_object_hash($user)] = $user;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n//\t\tforeach($list as $idx => $user) {\n//\t\t\tassert($user instanceof CiantUser);\n//\t\t\techo $user->getName().\", \";\n//\t\t}\n\t}", "title": "" }, { "docid": "dd3f8be4aa0326066240cc9e8a1b3f88", "score": "0.6303223", "text": "function get_all_tournament_players()\n {\n $this->db->select('tournament_players_id,team_name,player_name,employee_id,company');\n $this->db->join('tournament_teams as TT', 'TT.tournament_team_id = TP.tournament_team_id');\n $this->db->join('tournaments as T', 'T.tournament_id = TT.tournament_id AND T.is_active = \"T\"');\n $this->db->join('players as P' , 'TP.player_id = P.player_id ');\n $this->db->join('teams as T1' , 'TT.team_id = T1.team_id');\n \n return $this->db->get_where('tournament_players as TP',array('TP.is_deleted'=>0))->result_array();\n }", "title": "" }, { "docid": "e0c1d374b9e893b63ef42f545dc0450f", "score": "0.63014376", "text": "public function getCompetitions() {\n if ($this->competitionsLoaded) return $this->competitions;\n\n // else load them from database\n $req = CompetitionDBClient::selectByTournamentId($this->getId());\n while ($comp = mysql_fetch_assoc($req)) {\n try {\n $this->competitions[] = Competition::getById($comp['id']);\n } catch (Exception $e) {\n // TODO use error log file\n echo $e->getMessage();\n }\n }\n\n $this->competitionsLoaded = true;\n return $this->competitions;\n }", "title": "" }, { "docid": "b79483e7d1000e15c1585ff77ae5f74f", "score": "0.6276183", "text": "public function getTeams() {\n return $this->teams;\n }", "title": "" }, { "docid": "ff67047a91d502a7b07bf52796306199", "score": "0.6270212", "text": "public function GetAllPlayers()\n {\n $dbTalker = new DbTalker();\n return $dbTalker->GetAllPlayers();\n }", "title": "" }, { "docid": "3d2486782c09ab72b723133a2cf9097a", "score": "0.623288", "text": "public static function loadAllTeams()\n {\n\n $sql_connection = new mySqlConnection();\n $sql = \"SELECT * FROM team ORDER BY team_name ASC\";\n\n $statement = $sql_connection->connect()->prepare($sql);\n $statement->execute();\n $allTeams = $statement->fetchAll(PDO::FETCH_UNIQUE);\n\n return $allTeams;\n }", "title": "" }, { "docid": "d9e53a98ea166937d859390f14633d1d", "score": "0.62139785", "text": "public function team()\n\t{\n\t\treturn $this->oneToMany(__NAMESPACE__ . '\\\\Owner', 'projectid');\n\t}", "title": "" }, { "docid": "d6cd48490f2e6942b43d52aefa2b146b", "score": "0.6195198", "text": "public function get_competitors(){\n $sql = \"SELECT DISTINCT * from members WHERE members.id IN \"\n .\"(SELECT competitorID FROM tournamentCompetitors WHERE tournamentID=$this->id)\";\n return Member::find_by_sql($sql);\n }", "title": "" }, { "docid": "7f7ad6f2076860d7472ee9d504c2699b", "score": "0.6187322", "text": "public function getTeamList() {\n\t\treturn $this->getData('/team/list');\n\t}", "title": "" }, { "docid": "086306e6308e1d846ff5e334f6972695", "score": "0.61674774", "text": "public function allTeamNames() {\n return $this->allTeams()->pluck('name')->toArray();\n }", "title": "" }, { "docid": "f781d31b82829d62b78ca7cc8cc59c36", "score": "0.6147675", "text": "public function recupererToutesLesCompetitions()\n {\n return $this->getAll('competition','Competition');\n }", "title": "" }, { "docid": "a6df332d5e830224d61ae20ff84a3cd2", "score": "0.6141246", "text": "public function getAllPlayers()\n {\n return $this->players;\n }", "title": "" }, { "docid": "964e8c1093e781fd1521717afbf6f5a0", "score": "0.6108341", "text": "public function teams()\n {\n return $this->request('get', '/api/teams');\n }", "title": "" }, { "docid": "0c65ff345b5223cf018dea60c74bb0f6", "score": "0.6079993", "text": "public function getTeams()\n {\n $teams = array();\n $teamsEm = $this->getRepo()->findAll();\n foreach ($teamsEm as $team) {\n $teams[] = $team;\n }\n \n return $teams;\n }", "title": "" }, { "docid": "8ed38d1a2b24e5907eb69ac4ae906535", "score": "0.6079225", "text": "public function getTeams() : Collection\n {\n return $this->teams;\n }", "title": "" }, { "docid": "23746a058e3545dfd157edf50c526115", "score": "0.60780144", "text": "public function members()\n\t{\n\t\treturn $this -> hasMany(__CLASS__.'\\Member', 'participant_team_id');\n\t}", "title": "" }, { "docid": "ff59826fb9a010211efdc72f895b2241", "score": "0.6063281", "text": "protected function getTeams()\n\t{\n\t\tif(!$this->teams)\n\t\t{\n\t\t\t$this->teams = Team::orderBy('title', 'asc')->get();\n\t\t}\n\t\t\n\t\treturn $this->teams;\n\t}", "title": "" }, { "docid": "be4e878ceaeb04d814ac6f311eab9a15", "score": "0.6062959", "text": "public function competition_team_get()\n\t{\n\n\t\tif($_SERVER['REQUEST_METHOD'] != \"GET\")\n\t\t{\n\t\t $this->response('Not Acceptable',406);\n\t\t}\n\t\t$comp_team_list_arr=array();\n\n\t\t$this->load->model('Table_model');\n\t\t$comp_team_list_arr=$this->Table_model->GetCompetitionTeam();\n\t\tif(count($comp_team_list_arr)>0)\n\t\t{\n\t\t\t$this->response(array('status'=>'success','competition_team'=>$comp_team_list_arr), 200);\n\t\t}\n\t\telse\n\t\t\t$this->response(array('status'=>'failed','message'=>'No records in database'),200);\n\t\n\t\n\t}", "title": "" }, { "docid": "d3e8c3f719665580cfa7f27c777b65b9", "score": "0.6061303", "text": "public function getTeam();", "title": "" }, { "docid": "27dd45bc66f25925ab980308fb2095d8", "score": "0.6053743", "text": "public function ownedTeams()\n {\n return $this->request('get', '/api/owned-teams');\n }", "title": "" }, { "docid": "0e0eda6ed8808d83ec20d2228cdeed3e", "score": "0.6044579", "text": "public function teamMembers()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/members');\n }", "title": "" }, { "docid": "4c9a7e5a2b7b18c71866935fe26d304e", "score": "0.60347015", "text": "public function getTeams()\n\t{\n\t\treturn $this->_teams;\n\t}", "title": "" }, { "docid": "8a6125da0b5f346ac5a7cb6222b5be4a", "score": "0.6029638", "text": "public function getAllActive()\n {\n return Team::enabled()->get();\n }", "title": "" }, { "docid": "70aabc04c604e49290f63cea2514816c", "score": "0.6004514", "text": "public function getTeamMembers(){\n // body\n $team = new Team();\n $data = $team->getAllTeamByGroup();\n\n // return response.\n return response()->json($data);\n }", "title": "" }, { "docid": "3716eb2b85e87ff20f652f3238482253", "score": "0.60017616", "text": "public function getAllPlayers() : Collection\n {\n return $this->players;\n }", "title": "" }, { "docid": "48099a5f6b5b3b9004b79dc78d944b3b", "score": "0.5985697", "text": "function get_all_tournament_teams()\n {\n $this->db->select('TT.tournament_team_id,TT.team_id,T.tournament_name,T1.team_name,P.player_name as captain,P.employee_id,P1.player_name as vice_captain');\n $this->db->join('tournaments as T', 'T.tournament_id = TT.tournament_id');\n $this->db->join('teams as T1' , 'TT.team_id = T1.team_id');\n $this->db->join('players as P' , 'TT.captain = P.player_id ');\n $this->db->join('players as P1' , 'TT.vice_captain = P1.player_id ');\n $this->db->where(array('TT.is_active'=>'T','T.is_active'=>'T')); \n\n return $this->db->get('tournament_teams as TT')->result_array();\n }", "title": "" }, { "docid": "78ffae5046448b9cb5a1295d86d0a602", "score": "0.597053", "text": "public function getPlayersByTeam(){\n $team = Input::get('id');\n if(Request::ajax()) {\n // Select players where team = get_id and pivot_team_id = get_id and pivot_activity=1\n $teams = Team::with(['players' => function($query) use ($team){\n $query->wherePivot('team_id' , '=' , $team)\n ->wherePivot('activity', '=', 1);\n }])->where('id', '=', $team)->get();\n return view('admin.partials.playersAjax', compact('teams'));\n }\n }", "title": "" }, { "docid": "072d5d1501d7fa0e66503ec3fc6c4307", "score": "0.59544", "text": "public function teams()\n {\n return $this->hasManyThrough('App\\Models\\Championship\\Team', 'App\\Models\\Championship\\Tournament');\n }", "title": "" }, { "docid": "a4f2f6c48e771207d53746081c6f2045", "score": "0.59512645", "text": "public function getPlayers();", "title": "" }, { "docid": "a4f2f6c48e771207d53746081c6f2045", "score": "0.59512645", "text": "public function getPlayers();", "title": "" }, { "docid": "ac8599628804bbfb6440234247545813", "score": "0.59100586", "text": "public function participants()\n {\n return $this->belongsToMany(User::class, 'conversation_participants', 'conversation_id', 'user_id');\n }", "title": "" }, { "docid": "821640b6956d67a1283a314320256d01", "score": "0.58925974", "text": "public function getTeams() { \r\n $uri = $this->payload->_links->teams->href;\r\n $response = file_get_contents($uri, false, stream_context_create($this->reqPrefs)); \r\n $response = json_decode($response);\r\n \r\n return $response->teams;\r\n }", "title": "" }, { "docid": "361d293ae9dbf284e8ba472cd389c9d3", "score": "0.58922005", "text": "public function team_users()\n {\n return $this->hasMany(TeamUser::class);\n }", "title": "" }, { "docid": "85197d635f1b1fee61ff4263599521bc", "score": "0.5866788", "text": "public function tournaments()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\Tournament', 'team_tournament')\n ->withPivot(['checked_in', 'disqualified']);\n\t}", "title": "" }, { "docid": "b4cca5a5aaf0804bec374ef5a0b882d8", "score": "0.58613026", "text": "function listTeams() {\n global $oDbHelper;\n\n $sQuery = \"SELECT * FROM team WHERE competition_id = \" . COMPETITION_ID;\n $oResult = $oDbHelper->executeQuery($sQuery);\n $oDbHelper->printDbResult($oResult);\n}", "title": "" }, { "docid": "b697b1f5793e42a2235ac5a0d7e72c36", "score": "0.58571905", "text": "public function getParticipantUsers()\r\n {\r\n return $this->hasMany(User::class, ['id' => 'user_id'])->via('participants');\r\n }", "title": "" }, { "docid": "afd53d5c8e42913b1ef6c2e1ce21995a", "score": "0.58511317", "text": "public function index()\n {\n $team = Team::all();\n return $team;\n }", "title": "" }, { "docid": "cac789bd571a0f515fc66658f8a5179d", "score": "0.58465564", "text": "protected function getFighters()\n {\n return $this->championship->teams;\n }", "title": "" }, { "docid": "0a0500dd7c768295837a007e3f564853", "score": "0.5837594", "text": "public function getPlayers(array $accounts): Collection;", "title": "" }, { "docid": "6ccb91f95f38cfbad2003a450600db2b", "score": "0.58199316", "text": "public function getPlayers ()\r\n {\r\n return $this->players;\r\n }", "title": "" }, { "docid": "5ea97e79f3f1367577387fdf2262df48", "score": "0.5818932", "text": "public function allPlayers()\n {\n return array_values($this->players);\n }", "title": "" }, { "docid": "f041961035c9376bd9ad193aa61f68bf", "score": "0.58069646", "text": "public static function loadAllTeams()\n\t{\n\t\t$tmpDataMgr = createNewDataManager();\n\t\t$sql = self::getQueryTextAndCurYearWeek();\n\t\t$qTeam = $tmpDataMgr->runQuery($sql);\n\t\t$aTeams = array();\n\t\t\n\t\twhile($row = mysql_fetch_assoc($qTeam))\n\t\t{\t\t\n\t\t\t$aTeams[$row[\"id\"]] = new Team($row);\n\t\t}\n\t\t\n\t\treturn $aTeams;\n\t\t\n\t}", "title": "" }, { "docid": "38a3afa0f9bdcd083d232a275b12934b", "score": "0.58026844", "text": "public function getPlayers()\n {\n return $this->hasMany(Player::className(), ['id' => 'player_id'])\n ->viaTable('game_has_player', ['game_id' => 'id'])\n ->select('*, (SELECT presence FROM game_has_player WHERE game_id='.$this->id.' AND player_id=players.id LIMIT 1) as presence');\n }", "title": "" }, { "docid": "9b17d55206401530acf24a7f3694ea95", "score": "0.58015305", "text": "public function getAll(){\n return view('/backoffice/teams_read', ['teams' => Team::with('users')->paginate(Config::get('constants.backoffice.NUMBER_OF_DISPLAYED_TEAMS_PER_PAGE'))]);\n }", "title": "" }, { "docid": "c096ce69cf000e4a1488f583d57c6ed3", "score": "0.579536", "text": "public function tournaments()\n {\n return $this->hasMany('App\\Models\\Championship\\Tournament', 'game_id', 'id');\n }", "title": "" }, { "docid": "b88908dc55c34841109719bfb08bfce0", "score": "0.57915735", "text": "public function getPlayers()\n {\n return $this->players;\n }", "title": "" }, { "docid": "acc52b77b1d93fc7e1d98a88c8ba4e5f", "score": "0.57907355", "text": "public function participants()\n { \n // $date = explode(\" \", $this->created_at)[0];\n $date = $this->created_at;\n $matches = Match::whereDate('created_at', $date )\n ->where('location_id', $this->location_id)->get();\n $participants = collect([]);\n foreach ($matches as $m) {\n $participants->push($m->user);\n }\n return $participants;\n }", "title": "" }, { "docid": "d7ddbd2c5a198840201d07f987e19ea1", "score": "0.57587755", "text": "public function get_organisers(){\n $sql = \"SELECT DISTINCT * from members WHERE members.id IN \"\n .\"(SELECT organiserID FROM tournamentOrganisers WHERE tournamentID=$this->id)\";\n return Member::find_by_sql($sql);\n }", "title": "" }, { "docid": "46f8a4f30384bd51779bf8920bdb1541", "score": "0.5746737", "text": "public function teams()\n {\n return $this->belongsToMany(\\App\\Models\\Team\\Team::class, 'teams_matches', 'match_id', 'team_id')->withPivot(['goals']);\n }", "title": "" }, { "docid": "cb1b1f75ac49e9108f5ab139ddd7239b", "score": "0.57464945", "text": "public function participants()\n {\n return $this->hasMany( 'App\\Participant' );\n }", "title": "" }, { "docid": "f9f4852cfc8fbbf58eb74fabe663a03b", "score": "0.572148", "text": "public function getAll()\n {\n $teams = Team::all();\n\n return new Http\\Response($teams, 200);\n }", "title": "" }, { "docid": "66f5207c515b7ae08c52e7af96cafe28", "score": "0.57112867", "text": "public function getAllTeachers()\n {\n return Teacher::all();\n }", "title": "" }, { "docid": "b27a07f918f5b2f0181d422a5348eb4b", "score": "0.56949663", "text": "protected function listConversations() {\n $conversations = Participant::where('user_id', Auth::user()->id)->get(['conversation_id']);\n\n return Conversation::with(['participants' => function($query) {\n $query->with(['user' => function($query) {\n $query->select('id', 'username', 'picture');\n }]);\n }])->whereIn('id', $conversations)->get();\n }", "title": "" }, { "docid": "21d6cdeddd78907526740c8851a5d917", "score": "0.56903964", "text": "public function index()\n {\n return response()->json(Contest::with('participants')->get());\n }", "title": "" }, { "docid": "b1813465499953dd9c80e27a5c8f88ba", "score": "0.56796145", "text": "public static function getAllPlayers() {\n CommonDao::connectToDb();\n $query = \"select p.*\n from player p\n order by p.last_name, p.first_name\";\n return PlayerDao::createPlayersFromQuery($query);\n }", "title": "" }, { "docid": "5316aeae9e4cff99a97bb8c2e2a01ac7", "score": "0.56794685", "text": "public function teams()\n {\n return $this->belongsToMany('Litepie\\Team\\Models\\Team')\n ->withPivot([\n 'id', 'role',\n ]);\n }", "title": "" }, { "docid": "c574d83481f1a8314ec6d7731ce18909", "score": "0.5675411", "text": "public function tournament()\n {\n return $this->tournament;\n }", "title": "" }, { "docid": "88308ffe1db0289a073a2df9c48884ab", "score": "0.566098", "text": "public function teams()\n {\n return $this->hasMany('Fantasee\\Team');\n }", "title": "" }, { "docid": "8593cdde4eaa01455f7f16521d5e98eb", "score": "0.56605566", "text": "public function project_team()\n {\n return $this->hasMany(ProjectTeam::class, 'team_project_id');\n }", "title": "" }, { "docid": "011a71b0f7f281c43f49eb308277b785", "score": "0.56514245", "text": "public function getPlayers() : array {\r\n\r\n return $this->players;\r\n\r\n }", "title": "" }, { "docid": "7f36139d330537b0d90bf613a2b7abba", "score": "0.56389683", "text": "public function teams()\n {\n return $this->belongsToMany('Skunenieki\\System\\Models\\Team');\n }", "title": "" }, { "docid": "d530944d3adae23d8f6994d9a1cb994f", "score": "0.5630256", "text": "public function playersOfGame(): array\n {\n return $this->players;\n }", "title": "" }, { "docid": "683c4be3fad82381a04529cd29b83be5", "score": "0.56257117", "text": "public function get_players(){\n\t\t$players = $this->players;\n\t\t$classes_arr = array(\n\t\t\t'Sportorg_Games_Matchplayer' => 'sportorg_games_matchplayer',\n\t\t);\n\t\t$players = ORM::_sql_exclude_deleted($classes_arr, $players);\n\t\t$playerArr = null;\n\t\tforeach($players->find_all() as $player){\n\t\t\t$playerArr[] = $player->getBasics();\n\t\t}\n\n\t\treturn $playerArr;\n\t}", "title": "" }, { "docid": "9f581fb1855c7778c57b52cb6351da4e", "score": "0.5623653", "text": "public function participants()\n {\n return $this->belongsToMany(User::class)->withPivot('project_role_id');\n }", "title": "" }, { "docid": "5b4d3c9a0c863ea7e8fb59effd2f8d59", "score": "0.56219393", "text": "public function sportTeams()\n { \n\n $finalTeams = array();\n $technicalTeams = DB::table('teams')->where('domain', '=', 'SPORT')->get();\n $user_id = Auth::user()->id;\n foreach ($technicalTeams as $team) {\n if($team->id != $user_id)\n array_push($finalTeams, $team);\n }\n \n return view('technicalTeams')->with('sportTeams',$finalTeams);\n }", "title": "" }, { "docid": "b6e1662a715b2662f0c58a1fff61185a", "score": "0.56214267", "text": "public function listAll()\n {\n $tournament = Tournaments::get();\n return response()->json($tournament, 200);\n }", "title": "" }, { "docid": "20b492aa0d24ff3e9a17c193ab66c3dc", "score": "0.5613456", "text": "public function getParticipants($contestid);", "title": "" }, { "docid": "e960b6b16a81e8b99b1a9f1ed13cf269", "score": "0.56110084", "text": "public function participants()\n {\n return $this->hasMany('App\\Models\\Participant');\n }", "title": "" }, { "docid": "b1392c64a62f7d50ffd18a33342f4470", "score": "0.56090224", "text": "public static function get_players($team)\r\n {\r\n $result = db::sql(\"SELECT player_id, first_name, last_name FROM `superrugby_2016_scores_18` WHERE Team = '$team' ORDER BY first_name;\", DB_NAME);\r\n $player_reference = null;\r\n if (mysqli_num_rows($result)){\r\n while(list($player_id, $firstname, $lastname) = mysqli_fetch_array($result)){\r\n $player_reference[] = array('id'=>$player_id, 'firstname'=>$firstname, 'lastname'=>$lastname);\r\n }\r\n }\r\n return $player_reference;\r\n }", "title": "" }, { "docid": "690d88d45e507dac8e7ee0ffc0676fcb", "score": "0.5608579", "text": "public function getTeamIterator() {\n if ($this->cached['Team']) return new HashmapIterator($this->cache['Team']);\n return XPClass::forName('de.uska.db.Team')\n ->getMethod('getPeer')\n ->invoke()\n ->iteratorFor(new Criteria(\n array('team_id', $this->getTeam_id(), EQUAL)\n ));\n }", "title": "" }, { "docid": "d42a60c7c93deaf3e4b072d0a3b85efa", "score": "0.5604247", "text": "public function getAllPlayers() {\n $stmt = $this->dbh->prepare(\"SELECT * FROM players WHERE site_id = :site_id\");\n $stmt->bindValue(':site_id', $this->id, PDO::PARAM_INT);\n $stmt->setFetchMode(PDO::FETCH_CLASS, 'Player', [null, $this->register]);\n\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "f3d4ec603ff12e71269626f50ce6cf34", "score": "0.5600094", "text": "public function fetchAllTeams(){\n $sqlQuery = \"SELECT teamID, teamID, teamName, dateCreated, lastUpdate, isBusy, (select count(userID)\n FROM Users where Users.teamID = Teams.teamID) as'memberCount' \n FROM Teams\";\n $statement = $this->_dbHandle->prepare($sqlQuery);\n $statement->execute();\n\n $dataSet = [];\n while ($dbRow = $statement->fetch(PDO::FETCH_ASSOC)) {\n $dataSet[] = new Team($dbRow);\n\n }\n\n $this->_dbInstance->destruct();\n return $dataSet;\n }", "title": "" }, { "docid": "9363f77dc82e96fc621879efeb7e1a7a", "score": "0.5598544", "text": "public function get_teams()\n\t\t{\n\t\t\t$retArr = null;\n\n\t\t\t// Scaffolding Code For Array:\n\t\t\t$objs = $this->obj->find_all();\n\t\t\tforeach($objs as $obj)\n\t\t\t{\n\t\t\t\t$retArr[] = $obj->getBasics();\n\t\t\t}\n\n\t\t\treturn $retArr;\n\t\t}", "title": "" }, { "docid": "3839a09064e9ba7002e30fa4136254ef", "score": "0.55843407", "text": "public function getAllConversations()\n {\n return ConversationModel::getMyConversations($this);\n }", "title": "" }, { "docid": "3f1e35c467ba10f9f15239eb2df32d33", "score": "0.55833596", "text": "public function team()\n {\n return $this->belongsToMany('App\\Team', 'team_user')->withPivot('captain', 'user_id')->withTimestamps();\n }", "title": "" }, { "docid": "2d879f0ceabe45465710d318876927ea", "score": "0.5567455", "text": "public function playersInTeam(Team $team) {\n return $this->players->filter(function ($player) use ($team) {\n return $team->playerInTeam($player);\n });\n }", "title": "" }, { "docid": "18e20221f448c5cd338a175d94947abd", "score": "0.5560532", "text": "public function getMembers($project)\n {\n return $this->dao->select('*')->from(TABLE_TEAM)->where('type')->eq('project')->andWhere('id')->eq($project)->fetchGroup('role');\n }", "title": "" }, { "docid": "dc9db1cbf0f80e4bb648e286d81ca7e4", "score": "0.55463344", "text": "public function get_players()\n {\n return $this->players;\n }", "title": "" }, { "docid": "850be58b9fbf09e57e6d9b9e5b686c93", "score": "0.55396175", "text": "public function teams()\n {\n return $this -> belongsToMany( 'App\\Models\\Team', 'album_team' );\n }", "title": "" }, { "docid": "d2e47e6467161eff052a5d9fd9acca6a", "score": "0.5537636", "text": "public static function getAll() \n\t{\n\n\t\t$sql = 'select * from players';\n\n\t\treturn self::getBySql($sql);\t\t\t\t\n\t}", "title": "" }, { "docid": "07fd41498675829de382c2ed0a06e86c", "score": "0.55213934", "text": "function getRequestedTeamTeaches() {\n global $CFG;\n\n $sql = \"SELECT * FROM\n {$CFG->prefix}block_courseprefs_teamteach\n WHERE usersid = {$this->id}\n AND status != 'undo'\";\n\n $results = get_records_sql($sql);\n $teamteaches = array();\n\n // Return an empty array if there are no records to process\n if (!$results) {\n return $teamteaches;\n }\n\n foreach ($results as $result) {\n $teamteaches[$result->id] = new CoursePrefsTeamTeach($result->usersid, \n $result->sectionsid, $result->tt_sectionsid, $result->status,\n $result->approval_flag, $result->id);\n }\n return $teamteaches;\n }", "title": "" }, { "docid": "26838081c6cb0e657d48ed8c4b0a8ed6", "score": "0.5503115", "text": "function teams(){\n\t\t$this->autoRender = false;\n\t\t$this->response->type('json');\n\t\ttry {\n\t\t\t$teams = $this->Team->find('all');\n\t\t}catch (Exception $e){\n\t\t\techo $this->dbError;\n\t\t}\n\t\tif (!empty($teams)){\n\t\t\techo json_encode($teams);\n\t\t}else{\n\t\t\techo $this->noResult;\n\t\t}\n\t}", "title": "" }, { "docid": "4789c2f48fab6e094b2db4ec9b5c86e2", "score": "0.5494799", "text": "public function teams()\n {\n return $this->belongsToMany('App\\Team')->withPivot('isCaptain');\n }", "title": "" }, { "docid": "dcb61c085a681dbd55930eeaf996fd5e", "score": "0.5490417", "text": "public function getPlayers() {\n\t\treturn $this -> data['players'];\n\t}", "title": "" }, { "docid": "96234548ee52ccb9ea383aa3d393c55b", "score": "0.5488766", "text": "public function getPlayers(): array;", "title": "" }, { "docid": "03faf213feb663a0b1cc2444732af0ad", "score": "0.5483161", "text": "public static function getPlayersByTeam(Team $team) {\n CommonDao::connectToDb();\n $lastYear = TimeUtil::getYearByEvent(Event::OFFSEASON_START) - 1;\n $query = \"select p.*, s.fantasy_pts\n \t from player p\n \t left outer join (select * from stat where year = $lastYear) s\n on s.player_id = p.player_id\n \t inner join team_player tp on p.player_id = tp.player_id\n \t where tp.team_id = \" . $team->getId() .\n \t\" order by p.last_name, p.first_name\";\n $res = mysql_query($query);\n $playersDb = array();\n while($playerDb = mysql_fetch_assoc($res)) {\n \t$player = PlayerDao::populatePlayer($playerDb);\n \t$player->setStatLine($lastYear, StatDao::populateStatLine($playerDb));\n \t$playersDb[] = $player;\n }\n return $playersDb;\n }", "title": "" }, { "docid": "1a0a64149394afbd163f58e211c487cc", "score": "0.5459212", "text": "public function players()\n {\n return $this;\n }", "title": "" }, { "docid": "c4076e11f3de94f4f9539336e280206f", "score": "0.545694", "text": "function lanorg_get_tournament_list() {\n\tglobal $wpdb;\n\n\t$table_name = $wpdb->prefix . 'lanorg_tournaments';\n\n\t$tournaments = $wpdb->get_results(\"SELECT id, game FROM $table_name\", ARRAY_A);\n\t$tournament_list = array();\n\tforeach ($tournaments as $tournament) {\n\t\t$tournament_list[$tournament['id']] = $tournament['game'];\n\t}\n\n\treturn $tournament_list;\n}", "title": "" }, { "docid": "f2b4a9b5c2f78caf877a285917542196", "score": "0.54533505", "text": "public function teamMembers(): HasMany\n {\n return $this->hasMany(TeamMember::class);\n }", "title": "" } ]
d05fe5552306d8d4819f84489bbaf711
Makes a clone of the given Route object.
[ { "docid": "b877d5a13cc7436fb3af9caa89504752", "score": "0.79272246", "text": "public function cloneRoute(Route $route)\n {\n return new Route(\n $route->getPath(),\n $route->getDefaults(),\n $route->getRequirements(),\n $route->getOptions(),\n $route->getHost(),\n $route->getSchemes(),\n $route->getMethods()\n );\n }", "title": "" } ]
[ { "docid": "cc13865cf1ae979274c1e5230341a6a5", "score": "0.6717756", "text": "public function __clone(){}", "title": "" }, { "docid": "2a05682a083d970a35a3e936e0bbed37", "score": "0.6624687", "text": "public function __clone() {}", "title": "" }, { "docid": "3089390b7e581976dfc13ed0c7d299f4", "score": "0.6587687", "text": "public function __clone();", "title": "" }, { "docid": "3089390b7e581976dfc13ed0c7d299f4", "score": "0.6587687", "text": "public function __clone();", "title": "" }, { "docid": "3089390b7e581976dfc13ed0c7d299f4", "score": "0.6587687", "text": "public function __clone();", "title": "" }, { "docid": "3089390b7e581976dfc13ed0c7d299f4", "score": "0.6587687", "text": "public function __clone();", "title": "" }, { "docid": "3089390b7e581976dfc13ed0c7d299f4", "score": "0.6587687", "text": "public function __clone();", "title": "" }, { "docid": "818524942f36a6d241c50d93e21bf9d4", "score": "0.6529696", "text": "final public function __clone() {}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.65228033", "text": "private function __clone(){}", "title": "" }, { "docid": "64c39cff8920d18aafb660f3dfdc15a1", "score": "0.6512768", "text": "public function __clone()\n {\n $this->scheme = clone $this->scheme;\n $this->user = clone $this->user;\n $this->pass = clone $this->pass;\n $this->host = clone $this->host;\n $this->port = clone $this->port;\n $this->path = clone $this->path;\n $this->query = clone $this->query;\n $this->fragment = clone $this->fragment;\n }", "title": "" }, { "docid": "3dcdb8c82e81c097955c8695d04b0b0b", "score": "0.6479967", "text": "private function __clone(){}", "title": "" }, { "docid": "2a537df98d51bfb8229ef2607069aa2d", "score": "0.6415786", "text": "public function __clone() { }", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.64153796", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.64153796", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.64153796", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.64153796", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.64153796", "text": "protected function __clone(){}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.6413423", "text": "private function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6375597", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6375597", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6375597", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6375597", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6375597", "text": "protected function __clone() {}", "title": "" }, { "docid": "29b8c69e36456d66d8e9ef7337adc729", "score": "0.63647294", "text": "public function createClone();", "title": "" }, { "docid": "954d9797202b908622976fe0b9ad52aa", "score": "0.6332155", "text": "final private function __clone() {}", "title": "" }, { "docid": "954d9797202b908622976fe0b9ad52aa", "score": "0.6332155", "text": "final private function __clone() {}", "title": "" }, { "docid": "1301abdc5af972c21777ca385e71083d", "score": "0.6328312", "text": "function __clone();", "title": "" }, { "docid": "97ab26fce8a632a576fa0dc255e70276", "score": "0.63235533", "text": "final private function __clone() {}", "title": "" }, { "docid": "88d879f8b5aa339960a8c60a4faa04fd", "score": "0.6261539", "text": "public function __clone()\n {\n $this->object = clone $this->object;\n }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.6253637", "text": "private function __clone() { }", "title": "" }, { "docid": "7b58972e15d35c74349179b16ba9320b", "score": "0.624931", "text": "public function getClone();", "title": "" }, { "docid": "5282c8b2d02c6246d8e0a081f75080c9", "score": "0.62404937", "text": "public function createRouteObject()\n {\n $route = $this->modelFactory()->create($this->getObjectRouteClass());\n\n return $route;\n }", "title": "" }, { "docid": "7d5f730526fcf00ecbbcf116c4ea737f", "score": "0.62383634", "text": "private function __clone()\n {}", "title": "" }, { "docid": "c8bbf71c7a23ddd29c1808c851fc9084", "score": "0.6224215", "text": "function __clone() {\n if(isset($this->object)) {\n $this->object = clone $this->object;\n }\n }", "title": "" }, { "docid": "becffe4fff5d0cb60c0e166c99102cec", "score": "0.6220472", "text": "function __clone() {\n }", "title": "" }, { "docid": "becffe4fff5d0cb60c0e166c99102cec", "score": "0.6220472", "text": "function __clone() {\n }", "title": "" }, { "docid": "becffe4fff5d0cb60c0e166c99102cec", "score": "0.6220472", "text": "function __clone() {\n }", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.6214185", "text": "protected function __clone() { }", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.6214185", "text": "protected function __clone() { }", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.6214185", "text": "protected function __clone() { }", "title": "" }, { "docid": "ad51a78b4127a553bbc6bfcc624fbd44", "score": "0.62137115", "text": "final private function __clone() { }", "title": "" }, { "docid": "2df3d8e63130206b35d35d920b1daf9d", "score": "0.6204651", "text": "function __clone()\n {\n }", "title": "" }, { "docid": "2df3d8e63130206b35d35d920b1daf9d", "score": "0.6204651", "text": "function __clone()\n {\n }", "title": "" }, { "docid": "f8bad031a2b4cdaf9639ac5a9ad4222b", "score": "0.619616", "text": "public function __clone() {\n trigger_error('No se permite clonar este objeto.', E_USER_ERROR);\n }", "title": "" }, { "docid": "598a99e8c69e810c6d57727e857ae4a5", "score": "0.61675", "text": "public function __clone() {\n }", "title": "" }, { "docid": "86926a663fce9fe4e010005045b1799c", "score": "0.6162371", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'pojo-places' ), '1.0.0' );\n\t}", "title": "" }, { "docid": "f12e034f6498d7e3c81e6f1d2f17e84d", "score": "0.61426055", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "807dc4eef01ae125bfbb12b9b91b7ec8", "score": "0.61266035", "text": "final public function __clone()\n {\n }", "title": "" }, { "docid": "7d325d700d799df58be057979b1a9163", "score": "0.6125555", "text": "public function __clone()\n {\n $this->params = array_map([$this, 'recursiveClone'], $this->params);\n }", "title": "" }, { "docid": "deb8c428c5f1ca5ded64afadb9fd69bf", "score": "0.61253154", "text": "public function __clone()\n {\n trigger_error('La clonación de este objeto no está permitida', E_USER_ERROR);\n }", "title": "" }, { "docid": "2870580ee94cafef497d0493ac48b90a", "score": "0.61183286", "text": "public function __clone()\n {\n if ($this->id) {\n $this->id = null;\n $this->setRole($this->role, false);\n }\n }", "title": "" }, { "docid": "6186b82601721e6d13a562dd0c0f3aa1", "score": "0.61178595", "text": "public function __clone()\n {\n\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.6116955", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.6116955", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.6116955", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.6116955", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.6116955", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "e5b76052d21bcdd564d69c7ec9bb3f7a", "score": "0.6115991", "text": "final public function __clone()\n {\n\n }", "title": "" }, { "docid": "7c5800983b8dfd92e65136a09b936658", "score": "0.6103039", "text": "public function __clone() {\n\t}", "title": "" } ]
4a652c90d9631a13ba4f9e4931a4ad1d
A swagtrack was saved from the admin.
[ { "docid": "2db0559de956d4a2dfe39f995bda9795", "score": "0.0", "text": "public function onSave($termId) {\n\t\tupdate_term_meta($termId,\"color\",$_REQUEST[\"swagtrackColor\"]);\n\t}", "title": "" } ]
[ { "docid": "ef9913147feaaaaf2fa528213c389c72", "score": "0.6003783", "text": "private function saveTrackingDataToDB(): void\n {\n $this->setTrackingData();\n App::$db->insertRow('tracker', $this->tracking_data);\n }", "title": "" }, { "docid": "c23b832eca3edd6a33e09eb06994fe86", "score": "0.5991213", "text": "function save()\r\n\t{\r\n\t\t// Check for request forgeries\r\n\t\tJRequest::checkToken() or die( 'Invalid Token' );\r\n\t\t\r\n\t\t$task\t\t= JRequest::getVar('task');\r\n\r\n\t\t// Sanitize\r\n\t\t$post = JRequest::get( 'post' );\r\n\t\t$post['locdescription'] = JRequest::getVar( 'locdescription', '', 'post', 'string', JREQUEST_ALLOWRAW );\r\n\t\t$post['locdescription']\t= str_replace( '<br>', '<br />', $post['locdescription'] );\r\n\r\n\r\n\t\t$model = $this->getModel('venue');\r\n\r\n\t\tif ($returnid = $model->store($post)) {\r\n\r\n\t\t\tswitch ($task)\r\n\t\t\t{\r\n\t\t\t\tcase 'apply':\r\n\t\t\t\t\t$link = 'index.php?option=com_eventlist&view=venue&hidemainmenu=1&cid[]='.$returnid;\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$link = 'index.php?option=com_eventlist&view=venues';\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$msg\t= JText::_( 'VENUE SAVED');\r\n\r\n\t\t\t$cache = &JFactory::getCache('com_eventlist');\r\n\t\t\t$cache->clean();\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$msg \t= '';\r\n\t\t\t$link \t= 'index.php?option=com_eventlist&view=venue';\r\n\r\n\t\t}\r\n\r\n\t\t$model->checkin();\r\n\r\n\t\t$this->setRedirect( $link, $msg );\r\n\t}", "title": "" }, { "docid": "f3bc5b77dc45c4c00f511d692e293a35", "score": "0.5985616", "text": "public function triggerOnSaves();", "title": "" }, { "docid": "7e6ba6475bbd6331b616de7d6d952748", "score": "0.59235996", "text": "protected function saved() \n {\n parent::saved();\n }", "title": "" }, { "docid": "f95a6f89f8d7ce61819c8743ef95f309", "score": "0.591873", "text": "function save()\n {\n $model = $this->getModel('Dewplayer');\n\n if($model->store())\n {\n $msg = JText::_('Record Saved');\n }\n else\n {\n $msg = JText::_('Error Saving Record');\n }\n\n $link = 'index.php?option=com_dewplayer';\n $this->setRedirect($link, $msg);\n }", "title": "" }, { "docid": "c1a25a263234a960abf587cf88447617", "score": "0.5886708", "text": "protected function saved()\r\n\t{\r\n\t}", "title": "" }, { "docid": "728c60bf3b9ed0d10d53a2ea1a0c088c", "score": "0.5885481", "text": "public function save()\n {\n }", "title": "" }, { "docid": "728c60bf3b9ed0d10d53a2ea1a0c088c", "score": "0.5885481", "text": "public function save()\n {\n }", "title": "" }, { "docid": "728c60bf3b9ed0d10d53a2ea1a0c088c", "score": "0.5885481", "text": "public function save()\n {\n }", "title": "" }, { "docid": "728c60bf3b9ed0d10d53a2ea1a0c088c", "score": "0.5885481", "text": "public function save()\n {\n }", "title": "" }, { "docid": "bb7d1735251158cd5b690bbbeab8dcbe", "score": "0.5807915", "text": "public function save () {\r\n }", "title": "" }, { "docid": "3cffd01855656a88c53884776fb25ced", "score": "0.5787834", "text": "function save(){\n //in the post parameters\n $this->params_imported = true;\n $this->set('date', time());\n parent::save();\n }", "title": "" }, { "docid": "a19b1df3d92b4dd9671ee35da9bd2590", "score": "0.5769032", "text": "protected function save()\n {\n }", "title": "" }, { "docid": "23d0cab278eca619f20a381b851a292c", "score": "0.57642984", "text": "public function actionSave() {\n $story_values = Yii::$app->request->post('story_values');\n $model = new StoryTag;\n $model->setScenario(StoryTag::SCENARIO_STORY_TAG);\n $model->attributes = $story_values;\n\n // maintain uniqueness between tags\n $tag_list = StoryTag::find()\n ->select('story_tag_id, tag_name')\n ->where('UPPER(tag_name) = \"' . strtoupper($story_values['tag_name']) . '\"')\n ->asArray()\n ->all();\n\n if(count($tag_list) == 0){\n if(isset($story_values['story_tag_id'])){\n echo json_encode(['save_success' => $model->saveStoryTag(), 'errors' => $model->getErrors()]);\n } else {\n echo json_encode(['save_success' => $model->save(), 'errors' => $model->getErrors()]);\n }\n } else {\n echo json_encode(['save_success' => false, 'errors' => ['tag_name' => ['Tag \\'' . $story_values['tag_name'] . '\\' already exists']]]);\n }\n }", "title": "" }, { "docid": "c45f4254f71e0141c6ef5baf9e0866ee", "score": "0.57101303", "text": "public function save()\n {\n $this->log(\"save start\");\n }", "title": "" }, { "docid": "39e5418b76578e0ae4740df5ad2b20b2", "score": "0.570193", "text": "public function save() { }", "title": "" }, { "docid": "39e5418b76578e0ae4740df5ad2b20b2", "score": "0.570193", "text": "public function save() { }", "title": "" }, { "docid": "102cbdf0383f36e38ec52103c2efc391", "score": "0.5698226", "text": "public function onAfterSave();", "title": "" }, { "docid": "8420a0bbabb5808b6c32a6c5f44da651", "score": "0.56904703", "text": "public function save(){}", "title": "" }, { "docid": "0e3cb8795fafeda61e3ba0297cf423dd", "score": "0.5668951", "text": "public function onAfterSave()\n\t{\n\t}", "title": "" }, { "docid": "c4f0678071888745ee9b6ff4a7e55765", "score": "0.5664096", "text": "protected function afterSave()\n {\n //\n }", "title": "" }, { "docid": "c3c4476913809a497661cea66be18b99", "score": "0.5663865", "text": "protected function _afterSave() {}", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.56608236", "text": "public function save()\n {\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.56608236", "text": "public function save()\n {\n }", "title": "" }, { "docid": "56279ca57c523d916dc9e954a89e0a30", "score": "0.5640857", "text": "public function save( $args ){\n parent::save( $args );\n }", "title": "" }, { "docid": "9f7f2ba6022573cd605d7e7bc58b1d91", "score": "0.5615964", "text": "public function afterSave()\n {\n \n }", "title": "" }, { "docid": "4fcda153500a61afb2205203041bbeb8", "score": "0.5605325", "text": "public function _save();", "title": "" }, { "docid": "957fe650465b79d82d59c84ceed16be1", "score": "0.5600773", "text": "public function saveState()\n\t{\n\t\tif(($this->_stateTracker!==null)\n\t\t\t&& $this->getControl()->getActiveControl()->canUpdateClientSide(true))\n\t\t{\n\t\t\t$this->_stateTracker->respondToChanges();\n\t\t}\n\t\tparent::saveState();\n\t}", "title": "" }, { "docid": "7c0b58b3c221737e430140a4df4b502e", "score": "0.5587252", "text": "function wf_update() {\n\t\tif (!empty($this->data)) {\n\t\t\t\n\t\t\t// Publish?\n\t if (isset($this->data['__save']['publish'])) {\n\t $this->data[$this->modelClass]['draft'] = 0;\n\t }\n\t unset($this->data['__save']);\n\t\t\tif (isset($this->data[$this->modelClass]['location'])) {\n\t\t\t\t$this->data[$this->modelClass]['location'] = serialize($this->data[$this->modelClass]['location']);\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($this->data[$this->modelClass]['slug'])) {\n\t $this->data[$this->modelClass]['slug'] = AppHelper::slug($this->data[$this->modelClass]['slug']);\n\t }\n\t\t\t\n\t\t\t$this->{$this->modelClass}->create($this->data);\n\t\t\tif ($this->{$this->modelClass}->save()) {\n\t\t\t\t$message = __('Event has been saved.', true);\n\t\t\t\t$msgClass = 'message';\n\t\t\t} else {\n\t\t\t\t$message = __('An error occured while saving your event.' , true);\n\t\t\t\t$msgClass = 'error';\n\t\t\t}\n\t\t\t\n\t\t\t$this->Session->setFlash($message, 'default', array('class' => $msgClass));\n\t\t\n\t\t\t$this->redirect(array('action' => 'edit', $this->{$this->modelClass}->id));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3af26acbcfb9dd346171e7b8beaffdae", "score": "0.55827886", "text": "public function save() {\n\n $values = [\n new ColumnItem('username', $this->username),\n new ColumnItem('projectWeekEntryId', $this->projectWeekEntry->getId()),\n new ColumnItem('year', $this->projectWeekEntry->getYear()),\n new ColumnItem('week', $this->projectWeekEntry->getWeek()),\n new ColumnItem('priority', $this->priority),\n new ColumnItem('approved', $this->approved),\n new ColumnItem('registrationDate', $this->registrationDate)\n ];\n\n if ($this->id != NULL) {\n $where = 'eventRegistrationId = ' . $this->id;\n $this->databaseHandler->update(self::TABLE, $values, $where);\n } else {\n $this->databaseHandler->insert(self::TABLE, $values);\n }\n }", "title": "" }, { "docid": "3c614db1d2f57eeca1299660266fe76d", "score": "0.55525124", "text": "public function save()\n {\n parent::save();\n }", "title": "" }, { "docid": "692182a273c216fdd803892dc9d86f83", "score": "0.5545646", "text": "public function afterSave()\n {\n }", "title": "" }, { "docid": "692182a273c216fdd803892dc9d86f83", "score": "0.5545646", "text": "public function afterSave()\n {\n }", "title": "" }, { "docid": "c3fec7ec1406b582c9c3155b679d044c", "score": "0.55368054", "text": "public function save() {\n $this->manageNotifications('save');\n }", "title": "" }, { "docid": "239e8897ff4e966406310fc581055e58", "score": "0.55331016", "text": "public function save()\n\t{\n\t\tparent::save();\n\t}", "title": "" }, { "docid": "58a464c57698bbddee4c06dc3725e5d7", "score": "0.5532152", "text": "function save() {\n\n $this->mdl_mcb_data->save('astr_forfait_filter_inventory_type', $this->input->post('astr_forfait_filter_inventory_type'));\n $this->mdl_mcb_data->save('astr_base_hour_inventory', $this->input->post('astr_base_hour_inventory'));\n \n $this->mdl_mcb_data->save('astr_nightly_hours_start', $this->input->post('astr_nightly_hours_start'));\n $this->mdl_mcb_data->save('astr_nightly_hours_end', $this->input->post('astr_nightly_hours_end'));\n\n if ($this->input->post('astr_dashboard_show_astreintes')) {\n $this->mdl_mcb_data->save('astr_dashboard_show_astreintes', \"TRUE\");\n } else {\n $this->mdl_mcb_data->save('astr_dashboard_show_astreintes', \"FALSE\");\n }\n\t}", "title": "" }, { "docid": "55977152215ff22ae02f23caba87c6b4", "score": "0.5528803", "text": "public function afterSave()\n\t{\n\t\tif ($this->status && $this->status->episode_status) {\n\t\t\tif ($this->event->isLatestOfTypeInEpisode()) {\n\t\t\t\t$this->event->episode->episode_status_id = $this->status->episode_status_id;\n\t\t\t\tif (!$this->event->episode->save()) {\n\t\t\t\t\tthrow new Exception('Unable to save episode status: '.print_r($this->event->episode->getErrors(),true));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tparent::afterSave();\n\t}", "title": "" }, { "docid": "ee0e4c3f1637aaf81ddf05474fbab3b7", "score": "0.5526988", "text": "public function save()\n {\n $request_param = CRequest::param();\n $this->_param = $request_param[$this->_editFormData];\n /*\n * if attribute is date or date time , db storage format is int ,by frontend pass param is int ,\n * you must convert string datetime to time , use strtotime function.\n */\n $this->_service->save($this->_param);\n $errors = Yii::$service->helper->errors->get();\n if (!$errors) {\n echo json_encode([\n 'statusCode' => '200',\n 'message' => Yii::$service->page->translate->__('Save Success'),\n ]);\n exit;\n } else {\n echo json_encode([\n 'statusCode' => '300',\n 'message' => $errors,\n ]);\n exit;\n }\n }", "title": "" }, { "docid": "886f2a19fae3ac3b6ad37bd66e64ae47", "score": "0.55246377", "text": "function save()\n {\n parent::save();\n }", "title": "" }, { "docid": "f226a88e08e9b8f6041e262b46e0d659", "score": "0.5517996", "text": "public function save()\n {\n $request_param = CRequest::param();\n $this->_param = $request_param[$this->_editFormData];\n /*\n * if attribute is date or date time , db storage format is int ,by frontend pass param is int ,\n * you must convert string datetime to time , use strtotime function.\n */\n $this->_service->save($this->_param);\n $errors = Yii::$service->helper->errors->get();\n if (!$errors) {\n echo json_encode([\n 'statusCode'=>'200',\n 'message'=>'save success',\n ]);\n exit;\n } else {\n echo json_encode([\n 'statusCode'=>'300',\n 'message'=>$errors,\n ]);\n exit;\n }\n }", "title": "" }, { "docid": "ed897164c245d087b0c3eba1b4622287", "score": "0.55123186", "text": "public function onBeforeSave();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5508026", "text": "public function save();", "title": "" }, { "docid": "0544db5b4261b7cb300d119378183cfe", "score": "0.54950607", "text": "protected function save()\n {\n cqContext::getInstance()->getRequest()->setParameter('cqBreadcrumbs', $this);\n }", "title": "" }, { "docid": "dcbd240bbf53a5b64ecc571d884f29ca", "score": "0.5485185", "text": "private function saveImportedEntity() {\n // Now save the entity.\n $success = $this->contentHubEntitiesTracking->save();\n\n // Log event.\n if (!$success) {\n $args = [\n '%type' => $this->contentHubEntitiesTracking->getEntityType(),\n '%uuid' => $this->contentHubEntitiesTracking->getUuid(),\n ];\n $message = $this->t('Imported entity type = %type with uuid=%uuid could not be saved in the tracking table.', $args);\n }\n else {\n $args = [\n '%type' => $this->contentHubEntitiesTracking->getEntityType(),\n '%uuid' => $this->contentHubEntitiesTracking->getUuid(),\n ];\n $message = $this->t('Saving %type entity with uuid=%uuid. Tracking imported entity with auto updates.', $args);\n }\n $this->loggerFactory->get('acquia_contenthub')->debug($message);\n }", "title": "" }, { "docid": "d3668811e467dfff10df9817b27d45aa", "score": "0.5463251", "text": "protected function onDataPostSave(){\n\t\t// Raised after save\n\t}", "title": "" }, { "docid": "6eea75a6b5206901f82e3916d4d3c492", "score": "0.5442396", "text": "public function doSave();", "title": "" }, { "docid": "fc86a0e99a67e6ccbd125d453c68346e", "score": "0.54401976", "text": "public function onBeforeSave()\n\t{\n\t}", "title": "" }, { "docid": "92851e176f0e4f30b04d2d1007df0c06", "score": "0.5437858", "text": "public function model_save();", "title": "" }, { "docid": "dda4cd5ae72f147eeb935b45db623241", "score": "0.5414359", "text": "protected function save_dismissal_status()\n {\n }", "title": "" }, { "docid": "f31730b82730c78afeb1dedf470058b3", "score": "0.53909564", "text": "public function save() {\n\n\t\tif ( empty( $this->details ) ) { return false; }\n\t\tif ( empty( $this->user ) ) { return false; }\n\t\tif ( empty( $this->ticket_id ) ) { return false; }\n\n\t\tglobal $wpdb;\n\n\t\t$table = $this->model;\n\n\t\t$data = array(\n\t\t\t\t'details' => $this->details,\n\t\t\t\t'user' => $this->user,\n\t\t\t\t'ticket_id' => $this->ticket_id,\n\t\t\t\t'status' => $this->get_status(),\n\t\t\t);\n\n\t\t$formats = array(\n\t\t\t\t'%s', // The format for details.,\n\t\t\t\t'%d', // The format for user.\n\t\t\t\t'%d', // The format for ticket_id.\n\t\t\t\t'%d', // The format for status.\n\t\t\t);\n\n\t\t$insert_comments = $wpdb->insert( $table, $data, $formats ); // Db call ok.\n\n\t\tif ( $insert_comments ) {\n\n\t\t\t$last_insert_id = $wpdb->insert_id;\n\n\t\t\t// Add new activity. Check if buddypress is active first\n\t\t\tif ( function_exists( 'bp_activity_add' ) ) {\n\n\t\t\t\t$bp_user_link = '';\n\n\t\t\t \tif ( function_exists( 'bp_core_get_userlink' ) ) {\n\t\t\t \t\t$bp_user_link = bp_core_get_userlink( $this->user );\n\t\t\t \t}\n\n\t\t\t \t$status_label = array(\n\t\t\t \t\t\t__( 'posted new updated in', 'thrive' ),\n\t\t\t \t\t\t__( 'completed', 'thrive' ),\n\t\t\t \t\t\t__( 'reopened', 'theive' ),\n\t\t\t \t\t);\n\n\t\t\t \t$type = $status_label[$this->get_status()];\n\n\t\t\t \t$action = sprintf( __( '%s %s the task: %s - ', 'thrive' ), $bp_user_link, $type, '#' . $this->ticket_id );\n\n\t\t\t \tbp_activity_add(\n\t\t\t \t\tarray(\n\t\t\t\t\t\t'user_id' => $this->user,\n\t\t\t\t\t\t'action' => apply_filters( 'thrive_update_task_activity_action', $action, $this->user ),\n\t\t\t\t\t\t'component' => 'project',\n\t\t\t\t\t\t'content' => $this->details,\n\t\t\t\t\t\t'type' => sanitize_title( 'thrive-'.$type ),\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} // End function_exists ( 'bp_activity_add' ).\n\n\t\t\treturn $last_insert_id;\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "03cc9515753580bcba07ab3b70708e6c", "score": "0.5390423", "text": "public function onSaveNewRecord()\n {\n $this->created = $this->updated = new \\DateTime();\n $this->rev = 1;\n }", "title": "" }, { "docid": "96f8d6f6de43bfba1298ab126abc14d6", "score": "0.53891927", "text": "private function save()\n {\n $this->model->titulo = $this->getTitulo();\n $this->model->texto = $this->getTexto();\n $this->model->atleta_id = $this->getAtleta()->id;\n $this->model->user_id = 1; // user ficticio\n\n $this->model->save();\n\n $this->setNota($this->model->find($this->model->id));\n }", "title": "" }, { "docid": "ad6de8a4cd6093939b891d53bf62c3b3", "score": "0.5384841", "text": "protected function afterSave() {\n parent::afterSave();\n }", "title": "" }, { "docid": "bb30e93ce55267d6fe0c7e654232c84c", "score": "0.5384456", "text": "public function saved(Ticket $ticket)\n {\n //code...\n }", "title": "" }, { "docid": "cdbc4c9118db942ea24de05df6825cbb", "score": "0.5379751", "text": "public function save()\n {\n global $master_db_handle;\n\n // Prepare it\n $statement = $master_db_handle->prepare('UPDATE Plugin SET Name = :Name, Author = :Author, Hidden = :Hidden, GlobalHits = :GlobalHits WHERE ID = :ID');\n\n // Execute\n $statement->execute(array(':ID' => $this->id, ':Name' => $this->name, ':Author' => $this->authors,\n ':Hidden' => $this->hidden, ':GlobalHits' => $this->globalHits));\n }", "title": "" }, { "docid": "b33c151666e91a0b7e51ec107035f5c5", "score": "0.53795373", "text": "public function save(array $options = []) \n {\n $before = json_encode($this->original);\n parent::save($options);\n\n //check if item is loggable\n if (isset($this->activities)){\n $after = json_encode($this->attributes);\n $activity = new Activity;\n $activity->user_id = 0;\n $activity->value_from = $before;\n $activity->value_to = $after;\n $activity->identifier_value = self::retrieve_identifier_field($this->attributes);\n if ($before != $after && $before != '[]') { //skip if from create\n if (Auth::user()) {\n $activity->user_id = Auth::user()->id;\n $activity->log = Auth::user()->name . ' updated: '.get_class($this).' ID: '. $activity->identifier_value;\n }\n $this->activities()->save($activity);\n }\n }\n }", "title": "" }, { "docid": "7cbb4e1024ef4ad4275c768fb4e844f1", "score": "0.5374469", "text": "public function saved()\n\t\t{\n\t\t\t$this->_changed = FALSE;\n\t\t\t$this->_saving = FALSE;\n\t\t}", "title": "" }, { "docid": "0af49973779b4c76597021167b24333f", "score": "0.5371822", "text": "function save(){}", "title": "" }, { "docid": "ad2d107c834aa3674e1a31d905ff7f6a", "score": "0.5367032", "text": "public function save()\n {\n event(new BeforeSave($this));\n\n $this->beforeSave();\n\n $this->doSave();\n\n $this->afterSave();\n\n event(new AfterSave($this));\n }", "title": "" }, { "docid": "8fdb53d791be9029fcd05310b2d051c9", "score": "0.53499275", "text": "function save(FormFlowInterface $flow, array $data);", "title": "" }, { "docid": "b7cbcabeb0cd12d40c7eae3206e2635a", "score": "0.5347477", "text": "function save()\n {\n $w = DistantWarrior::get();\n $w = BaseWarrior::saveBase($w);\n // Save\n DistantWarrior::post(htmlentities(serialize($w)));\n }", "title": "" }, { "docid": "719f461f481fff4b23b50ac0283c25cb", "score": "0.53472775", "text": "public function save()\n {\n $this->connection->database('channels')\n ->insertOrUpdate([\n 'name', '=', $this->location,\n ], $this->toArray());\n }", "title": "" }, { "docid": "9153b9ff5fd1e25f31137111d7386572", "score": "0.53471833", "text": "public function intercept_save_update_notification()\n {\n }", "title": "" }, { "docid": "1b0b440582d74fc82cf9c7643d3644c2", "score": "0.5343181", "text": "public function actionSave() {\n if (Yii::$app->getUser()->getIsGuest()) {\n Yii::$app->getResponse()->redirect(array('site/login'));\n } else {\n if (Yii::$app->getRequest()->getIsPost()) {\n $eventForm = new EventForm();\n\n if ($eventForm->load($_POST) && $eventForm->saveEvent()) {\n Yii::$app->getResponse()->redirect(array('event/dashboard'));\n } else {\n $eventForm->setAttributes($_POST);\n echo $this->render('add', array('model' => $eventForm));\n }\n\n } else {\n Yii::$app->getResponse()->redirect(array('site/error'));\n }\n }\n }", "title": "" }, { "docid": "6ed419bb3f32f1482f58a09c26e251ba", "score": "0.53410536", "text": "public function _afterSave()\n {\n Mage::getResourceModel('dpd/specialparcelshops')->uploadAndImport($this);\n }", "title": "" }, { "docid": "fec124da22cdbdc7c5905abc14d11835", "score": "0.53391904", "text": "public function onAfterEntitySave()\n\t{\n\t}", "title": "" }, { "docid": "e232f24ec4951660c98c02fa38fd95dc", "score": "0.5338325", "text": "protected function saveVisit()\n\t{\n\t\t$this->setFakeRequest();\n\t\t$process = new Piwik_KSVisitorImport_Tracker();\n\t\t$process->setForceIp($this->clientIP);\n\t\t$process->setForceDateTime($this->timestampToUse);\n\t\t$process->main();\n\t\tunset($process);\n\t}", "title": "" }, { "docid": "1abc049c09503ede99354196b0bc2827", "score": "0.5337", "text": "public function save() {\n\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'title' => $this->title,\n 'full_post' => $this->full_post,\n 'description' => $this->description,\n 'image_url' => $this->image_url,\n 'username' => $this->username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "title": "" }, { "docid": "260b3ac40cd542b063407be9c9fd9afd", "score": "0.53362703", "text": "public function saving(Ticket $ticket)\n {\n //code...\n }", "title": "" }, { "docid": "8b3151e42d380745559be03666dbd972", "score": "0.53352416", "text": "private function actionSave()\n\t{\n\t\t$id = FgUtill::checkVar(MSK_ZAHL, FgUtill::getVal('pid',$_REQUEST));\n\n\t\t$saveArray = array(\n\t\t\t\t'Name'=>$_REQUEST['Name'],\n\t\t\t\t'Info'=>$_REQUEST['Info'],\n\t\t\t\t'Updated'=>'now()',\n\t\t\t\t'Active'=>$_REQUEST['Active']==1?1:0\n\t\t\t);\n\n\t\tif($id) // update\n\t\t{\n\t\t\t$this->DB->update(\"fg_partner\",$saveArray,false,\"ID=\".$id,2,1);\n\t\t}\n\t\telse //insert\n\t\t{\n\t\t\t$saveArray['Created']='now()';\n\n\t\t\t$id=$this->DB->insert('fg_partner', $saveArray, false, 2,1);\n\t\t}\t\t\n\n\t\treturn $this->actionShow($id);\n\t}", "title": "" }, { "docid": "de32648433764b3f1208f843417cb5ec", "score": "0.5331908", "text": "protected function postSave() {\n\t\t// default: do nothing\n\t}", "title": "" }, { "docid": "4ec6f87a8d961e263227fa0767157f12", "score": "0.5329128", "text": "public function save()\n {\n if($this->id != -1)\n {\n $this->update_entry_qual();\n }\n else\n {\n $this->insert_entry_qual();\n }\n }", "title": "" }, { "docid": "91f3e71f33c2c6b7775d88d9caf4132c", "score": "0.5326767", "text": "public function save ()\r\n\t{\r\n\t\t$this->saveObject();\r\n\t}", "title": "" }, { "docid": "7cb0248118a357c6ff4d1939d05f8c52", "score": "0.5319985", "text": "public function save() {\n if (!$this->id) {\n $this->create();\n } else if ($this->changedMembers()) {\n $sql = 'UPDATE ' . Lexi::DB_NAME_TOPICS . ' SET title = :title, description = :description,\n identifier = :identifier WHERE id = :id';\n $sth = $this->database->prepare($sql);\n $params = array(\n 'title' => $this->title,\n 'identifier' => $this->identifier,\n 'description' => $this->description,\n 'id' => $this->id,\n );\n $sth->execute($params);\n $this->untrackChange('title');\n $this->untrackChange('description');\n $this->untrackChange('identifier');\n }\n // Save changed translations\n foreach ($this->getChanges() as $langId) {\n $this->saveTranslations($langId);\n }\n $this->resetTrackChanges();\n }", "title": "" }, { "docid": "f2eec4faa59d7cdb342cb81b4b29c415", "score": "0.5308157", "text": "public function hookActionAdminMetaSave()\n {\n\n }", "title": "" }, { "docid": "c4178632835d1dc061d6141d4442e8c5", "score": "0.53066003", "text": "public function save(){\n return;\n }", "title": "" }, { "docid": "af5686de6fb956b2a94085c9be6b287a", "score": "0.5288063", "text": "function save() {\n\t\tif(!$this->timestamp) {\n\t\t\t$this->timestamp = sql_datetime(time());\n\t\t}\n\t\t\n\t\tparent::save();\n\t}", "title": "" }, { "docid": "4bfca13d30f7d2c3232f94e5584c46d3", "score": "0.52870315", "text": "public function onSaving(FileUploader $uploader, AssetPaths $paths)\n {\n $entry = $this->getFormEntry();\n $club = $this->getClub();\n\n // Handle Club\n $entry->club_id = $club->getId();\n }", "title": "" }, { "docid": "2a84b1d5193822bfe59dd6a6917cd905", "score": "0.52832246", "text": "function wpseo_save_what( $what ) {\n\tcheck_ajax_referer( 'wpseo-bulk-editor' );\n\n\t$new = filter_input( INPUT_POST, 'new_value' );\n\t$post_id = intval( filter_input( INPUT_POST, 'wpseo_post_id' ) );\n\t$original = filter_input( INPUT_POST, 'existing_value' );\n\n\t$results = wpseo_upsert_new( $what, $post_id, $new, $original );\n\n\twpseo_ajax_json_echo_die( $results );\n}", "title": "" }, { "docid": "5303743827865b77c6e057fe407f430d", "score": "0.52830327", "text": "public function save()\n {\n $this->variableApi->set('MUAutoLinksModule', 'autoLinkEntriesPerPage', $this->getAutoLinkEntriesPerPage());\n $this->variableApi->set('MUAutoLinksModule', 'showOnlyOwnEntries', $this->getShowOnlyOwnEntries());\n $this->variableApi->set('MUAutoLinksModule', 'allowModerationSpecificCreatorForAutoLink', $this->getAllowModerationSpecificCreatorForAutoLink());\n $this->variableApi->set('MUAutoLinksModule', 'allowModerationSpecificCreationDateForAutoLink', $this->getAllowModerationSpecificCreationDateForAutoLink());\n }", "title": "" }, { "docid": "8c9a7ea2fc5faa75ab322513ff579810", "score": "0.5281656", "text": "public function saveAction()\n {\n if (!$this->request->isPost()) {\n $this->dispatcher->forward([\n 'controller' => \"caterings\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n $Id = $this->request->getPost(\"Id\");\n $order = DishOrders::findFirst($Id);\n\n if (!$order) {\n $this->flash->error(\"Order does not exist \" . $Id);\n\n $this->dispatcher->forward([\n 'controller' => \"caterings\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n $order->setDishId($this->request->getPost(\"Dish\"));\n if ($this->request->getPost(\"Takeaway\") == 'Y') {\n $order->setTakeaway(1);\n } else {\n $order->setTakeaway(0);\n }\n\n if (!$order->save()) {\n\n foreach ($order->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n $this->dispatcher->forward([\n 'controller' => \"dishorders\",\n 'action' => 'edit',\n 'params' => [$order->getId()]\n ]);\n\n return;\n }\n\n $this->flash->success(\"Order was updated successfully\");\n\n $this->dispatcher->forward([\n 'controller' => \"caterings\",\n 'action' => 'index'\n ]);\n }", "title": "" }, { "docid": "e6203412ec1f2f269930aa053013995e", "score": "0.52803147", "text": "public function save($force_create = FALSE)\n {\n parent::save($force_create);\n\n $this->log_changes($this, $this->previous());\n }", "title": "" }, { "docid": "6e0a6243f4032709a9e7fe2fbf952846", "score": "0.527623", "text": "public function preSaveAction(){\n }", "title": "" }, { "docid": "f951ff8cafd02d9213331a135eae995c", "score": "0.52760327", "text": "function backup_skillsoft_au_track ($bf,$preferences,$skillsoft) {\n\tglobal $CFG;\n\t$status = true;\n\n\t$skillsoft_au_track = get_records('skillsoft_au_track','skillsoftid',$skillsoft,'id');\n\t//If there is track\n\tif ($skillsoft_au_track) {\n\t\t//Write start tag\n\t\t$status =fwrite ($bf,start_tag('AU_TRACKS',4,true));\n\t\t//Iterate over each au\n\t\tforeach ($skillsoft_au_track as $au_track) {\n\t\t\t//Start track\n\t\t\t$status =fwrite ($bf,start_tag('AU_TRACK',5,true));\n\t\t\t//Print track contents\n\t\t\tfwrite ($bf,full_tag('ID',6,false,$au_track->id));\n\t\t\tfwrite ($bf,full_tag('USERID',6,false,$au_track->userid));\n\t\t\tfwrite ($bf,full_tag('ELEMENT',6,false,$au_track->element));\n\t\t\tfwrite ($bf,full_tag('VALUE',6,false,$au_track->value));\n\t\t\tfwrite ($bf,full_tag('ATTEMPT',6,false,$au_track->attempt));\n\t\t\tfwrite ($bf,full_tag('TIMEMODIFIED',6,false,$au_track->timemodified));\n\t\t\t//End track\n\t\t\t$status =fwrite ($bf,end_tag('AU_TRACK',5,true));\n\t\t}\n\t\t//Write end tag\n\t\t$status =fwrite ($bf,end_tag('AU_TRACKS',4,true));\n\t}\n\treturn $status;\n}", "title": "" }, { "docid": "140c7832bbe13b34541278dfebb2b295", "score": "0.5270581", "text": "function save() {\n \n\t\tglobal $clockTime;\n \n\t\t$timestamp = date('r', $clockTime); debug(\"timestamp\", $timestamp);\n\t\tdb_write(\"INSERT INTO sea (stock, price, time, maintenance) \n VALUES('$this->stock', '$this->marketPrice', '$timestamp', '$this->maintenance')\");\n\t\t}", "title": "" }, { "docid": "94560c5ac483a75189eb6ee9e81f2fdb", "score": "0.52641517", "text": "protected function _saveCountry()\n\t{\n\t\tif ($this->__country_changed)\n\t\t{\n\t\t\t$this->_setSavedParams(['siteid' => $this->country->data]);\n\t\t\t$this->_saveSavedParams();\n\t\t\tunset($this->__country_changed);\n\t\t}\n\t}", "title": "" }, { "docid": "6dd530ae07fb2703918ee8b13767c4e1", "score": "0.52602327", "text": "function lr_shiptrack_tracking_field_save( $post_id ) {\n if( !isset( $_POST['lr_shiptrack_tracking_nonce'] ) ) {\n return $post_id;\n }\n\n // Verify nonce.\n if( !wp_verify_nonce( $_REQUEST['lr_shiptrack_tracking_nonce'] ) ) {\n return $post_id;\n }\n\n // Check if this is an autosave.\n if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n return $post_id;\n }\n\n // Check the users permissions.\n if( 'page' == $_POST['post_type'] ) {\n\n // Check current user.\n if( !current_user_can( 'edit_page', $post_id ) ) {\n return $post_id;\n }\n\n } else {\n\n // Check current user.\n if( !current_user_can( 'edit_post', $post_id ) ) {\n return $post_id;\n }\n\n }\n\n // Sanitize.\n $tracking = sanitize_text_field( $_POST['lr_shiptrack_tracking_number'] );\n\n // Save.\n update_post_meta( $post_id, '_lr_shiptrack_tracking', $tracking );\n\n}", "title": "" }, { "docid": "d77907d06d326872ace92eb6143315ff", "score": "0.52567685", "text": "public function saveDetails() {\n\t\t\n\t\t/* save to database */\n\t\tparent::saveDetails ();\n\t\t\n\t\t/* create slug - for sef link */\n\t\tif (! $this->slug) {\n\t\t\t$this->slug = bfString::slug4mysql ( $this->title );\n\t\t}\n\t\t$this->store ();\n\t\n\t}", "title": "" }, { "docid": "fc19388794564bad1c374f78b494a1c0", "score": "0.5254869", "text": "public function preSave() {\n\t}", "title": "" } ]
f29b3f5055502f22109952b3152023c6
Format the array of URL parameters.
[ { "docid": "c70d7adfa4342922ae2d43a6899e8ff1", "score": "0.0", "text": "public function formatParameters($parameters)\n {\n $parameters = Arr::wrap($parameters);\n\n foreach ($parameters as $key => $parameter) {\n if ($parameter instanceof UrlRoutable) {\n $parameters[$key] = $parameter->getRouteKey();\n }\n }\n\n return $parameters;\n }", "title": "" } ]
[ { "docid": "844ce63420a7513cb8f329126b8458ab", "score": "0.7378848", "text": "private function _format_params()\n\t{\n\t\t$param_names = $this->EE->input->post('param_names');\n\t\t$param_values = $this->EE->input->post('param_values');\n\n\t\t// Convert useless HTML array into useful PHP array\n\t\t$params = array();\n\t\tfor($i = 0; $i < count($param_names); $i++)\n\t\t{\n\t\t\tif(!empty($param_names[$i]))\n\t\t\t{\n\t\t\t\t$params[$param_names[$i]] = $param_values[$i];\n\t\t\t}\n\t\t}\n\n\t\treturn self::_build_query($params);\n\t}", "title": "" }, { "docid": "b9eb7f646a345e93aaf6da396c248f0b", "score": "0.6419853", "text": "protected function prepareParams()\n\t{\n\t\t$size = count($this->params);\n\t\t$params = '';\n\n\t\tif($size > 1)\n\t\t{\n\t\t\t$params = http_build_query($this->params, null, $this->argSeparator);\n\t\t}\n\t\telseif($size == 1)\n\t\t{\n\t\t\t$keys = array_keys($this->params);\n\n\t\t\tif($keys[0] === 0)\n\t\t\t\t$params = $this->params[0];\n\t\t\telse\n\t\t\t\t$params = http_build_query($this->params, null, $this->argSeparator);\n\t\t}\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "32954da1c96cfd75f90fa680e2f363ae", "score": "0.6280962", "text": "function http_format_query($query){\n $formatted_query = array();\n $query = explode('&', $query);\n foreach ($query as $pairs){\n $query_parts = explode('=', $pairs);\n $formatted_query[$query_parts[0]] = $query_parts[1];\n }\n return $formatted_query;\n }", "title": "" }, { "docid": "3492a9b1351982917fe1ba9cb3f76e4e", "score": "0.61851", "text": "private function getFormattedParameterNames() {\n $retval = array();\n foreach($_GET as $key => $value) {\n if(strpos($key, '_dot_') !== false) {\n $retval[str_replace('_dot_', '.', $key)] = $value;\n }else{\n $retval[$key] = $value;\n }\n }\n\n return $retval;\n }", "title": "" }, { "docid": "3ac7c45f8dc8dc8504388206e2acfb00", "score": "0.61450225", "text": "private function formatData() {\n\t\t// Initialise arr variable\n\t\t$str = array();\n\n\t\t// Step through the fields\n\t\tforeach($this->data as $key => $value){\n\t\t\t// Stick them together as key=value pairs (url encoded)\n\t\t\t$str[] = $key . '=' . urlencode($value);\n\t\t}\n\n\t\t// Implode the arry using & as the glue and store the data\n\t\t$this->curl_str = implode('&', $str);\n\t}", "title": "" }, { "docid": "5a6d7833e7041a1c8107bcb2c3711f9b", "score": "0.6135061", "text": "public function getUrlParams();", "title": "" }, { "docid": "dcec704df374158ae2c2c3c1ca617e19", "score": "0.6108472", "text": "public function buildUrl() {\n\t\t$params = ['plugin' => $this->Controller->request->params['plugin'], 'controller' => $this->Controller->request->params['controller'], 'action' => $this->Controller->request->params['action']];\n\t\t$params = array_merge($params, $this->Controller->request->params['pass']);\n\n\t\t$ratingParams = array_keys($this->_config['params']);\n\t\tforeach ($this->Controller->request->getQuery() as $name => $value) {\n\t\t\tif (!in_array($name, $ratingParams)) {\n\t\t\t\t$params['?'][$name] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "5900582ab5eb4f50ecdca5323e0a57b5", "score": "0.6096523", "text": "function url_encode_array(&$array){\r\n\t$postvars = array();\r\n\tforeach($array as $key=>$value){\r\n\t\tif ($key != 'save') $postvars[] = \\urlencode($key) . '=' . \\urlencode($value);\r\n\t}\r\n\t$string = \\implode('&', $postvars);\r\n\treturn $string;\r\n}", "title": "" }, { "docid": "e76631788c59b562412bd9c09cd09cf0", "score": "0.60650766", "text": "private static function formatParameters ($params)\n {\n $parameters = [];\n\n foreach ($params as $key => $value)\n {\n if (is_null($value))\n {\n continue;\n }\n else if (is_bool($value))\n {\n $value = StringUtilities::booleanLiteral($value);\n }\n else if (is_array($value))\n {\n $formattedArray = self::formatArray($key, $value);\n $parameters[] = self::formatParameters($formattedArray);\n\n continue;\n }\n\n $parameters[] = rawurlencode($key) . \"=\" . rawurlencode($value);\n }\n\n return implode(\"&\", $parameters);\n }", "title": "" }, { "docid": "72ec77460e6740e816994dd122d41925", "score": "0.604422", "text": "public function getParams (string $format = \"array\")\n {\n if ($format == \"array\")\n return $this->params;\n\n if ($format == \"string\")\n return \"?\".http_build_query($this->params);\n }", "title": "" }, { "docid": "6b3f7c7960497f9863123ad0f23ccb18", "score": "0.6028716", "text": "protected function ipnUrlParams() {\n // No params for now..\n return array();\n }", "title": "" }, { "docid": "1aec1df70e85e5d50478cf516cb00297", "score": "0.60074747", "text": "function array_toquerystring ($args) {\r\n if (!is_array($args)) {\r\n return false;\r\n }\r\n $out = '';\r\n foreach($args as $name => $value)\r\n {\r\n if(is_array($value))\r\n {\r\n foreach($value as $key => $val) {\r\n $out .= $name.'['.$key.']'.'=';\r\n $out .= $val.'&';\r\n\r\n }\r\n }else{\r\n $out .= $name.'=';\r\n $out .= $value.'&';\r\n }\r\n }\r\n return substr($out,0,-1); //trim the last & }\r\n}", "title": "" }, { "docid": "8c1590ea67327a6d812377bb22768d90", "score": "0.59852445", "text": "private function _compileURLparams()\n\t{\n\t\t$encoded = array();\n\n\t\t// Now we have all the parameters, combine them together for pagination and the like...\n\t\tforeach ($this->_search_params as $k => $v)\n\t\t{\n\t\t\t$encoded[] = $k . '|\\'|' . $v;\n\t\t}\n\n\t\t// Base64 encode, then replace +/= with uri safe ones that can be reverted\n\t\treturn str_replace(array('+', '/', '='), array('-', '_', '.'), base64_encode(implode('|\"|', $encoded)));\n\t}", "title": "" }, { "docid": "a7b15a0a991b4695d1468ad6bdcaa25e", "score": "0.5981109", "text": "public function urlWithParametersDataProvider(): array\n {\n return [\n 'with-fragment' => [\n self::ABSOLUTE_URL_HTTPS . '?param1=entry1#some-hashtag',\n self::ABSOLUTE_URL_HTTPS,\n ['param1' => 'entry1', '#' => 'some-hashtag'],\n 'urlWithParams'\n ],\n 'anchor-gets-kept' => [\n self::ABSOLUTE_URL_HTTPS . '?param1=entry1&param2=entry2#anchor',\n self::ABSOLUTE_URL_HTTPS . '#anchor',\n 'param1=entry1&param2=entry2',\n 'urlWithParams'\n ],\n 'prev-param-gets-kept' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?param3=entry3&param1=entry1&param2=entry2#anchor',\n self::ABSOLUTE_URL_HTTPS_WWW . '?param3=entry3#anchor',\n '?param1=entry1&param2=entry2',\n 'urlWithParams'\n ],\n '#' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?param1=name&param2=name2#anchor',\n self::ABSOLUTE_URL_HTTPS_WWW,\n ['param1' => 'name', 'param2' => 'name2', '#' => 'anchor'],\n 'urlWithParams'\n ],\n 'basic-array' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?param1=name&param2=name2',\n self::ABSOLUTE_URL_HTTPS_WWW,\n ['param1' => 'name', 'param2' => 'name2'],\n 'urlWithParams'\n ],\n 'empty-array' => [\n self::ABSOLUTE_URL_HTTPS_WWW,\n self::ABSOLUTE_URL_HTTPS_WWW,\n [],\n 'urlWithParams'\n ],\n '4-spaces' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?++++=',\n self::ABSOLUTE_URL_HTTPS_WWW,\n ' ',\n 'urlWithParams'\n ],\n 'numerical-index-array' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?0=someparam',\n self::ABSOLUTE_URL_HTTPS_WWW,\n ['someparam'],\n 'urlWithParams'\n ],\n 'query-string' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?param1=name&param2=name2',\n self::ABSOLUTE_URL_HTTPS_WWW,\n '?param1=name&param2=name2',\n 'urlWithParams'\n ],\n 'pre-queried-url' => [\n self::ABSOLUTE_URL_HTTPS_WWW . '?param3=name3&param1=name&param2=name2',\n self::ABSOLUTE_URL_HTTPS_WWW . '?param3=name3',\n '?param1=name&param2=name2',\n 'urlWithParams'\n ],\n ];\n }", "title": "" }, { "docid": "729d7b021073441204e5c8a4f5bcf8dd", "score": "0.5966532", "text": "protected function getRequestUrlParameters(): array\n {\n return [];\n }", "title": "" }, { "docid": "20a68fc83247cf024ec3feff15e87558", "score": "0.5964077", "text": "public function get_url_params()\n {\n }", "title": "" }, { "docid": "29abf5299e2668421f94549dc2871ac0", "score": "0.590514", "text": "function buildURLArray ($filterarray) {\r\n global $urlfilter;\r\n global $i;\r\n // Iterate through each filter in the array\r\n foreach($filterarray as $itemfilter) {\r\n // Iterate through each key in the filter\r\n foreach ($itemfilter as $key =>$value) {\r\n if(is_array($value)) {\r\n foreach($value as $j => $content) { // Index the key for each value\r\n $urlfilter .= \"&itemFilter($i).$key($j)=$content\";\r\n }\r\n }\r\n else {\r\n if($value != \"\") {\r\n $urlfilter .= \"&itemFilter($i).$key=$value\";\r\n }\r\n }\r\n }\r\n $i++;\r\n }\r\n return \"$urlfilter\";\r\n }", "title": "" }, { "docid": "b3f3d0c4bb86e3327b89f70d044cf0ec", "score": "0.59024674", "text": "private function getParameters()\n {\n $inputParametersStr = \"\";\n\n foreach ($_GET as $key => $input) {\n\n if(empty($input)){\n continue ; //ignore empty field \n }\n $inputParametersStr .= \"$key=\" . urlencode($input) . \"&\"; // convert string into url syntax.\n\n }\n $inputParametersStr = trim($inputParametersStr, '&'); // separate parameters by \"&\" .\n\n return $inputParametersStr ;\n }", "title": "" }, { "docid": "3eb59a8be330eba6ce7c8e10adf521c4", "score": "0.59024346", "text": "function http_serialize_params($params) {\n\t\t$query_string = array();\n\t\tif(is_array($params)):\n\t\t\tforeach($params as $key => $value):\n\t\t\t\tif(is_array($value)):\n\t\t\t\t\tforeach($value as $k => $fieldvalue):\n\t\t\t\t\t\t$query_string[] = urlencode($key) . '=' . rawurlencode($fieldvalue);\n\t\t\t\t\tendforeach;\n\t\t\t\telse:\n\t\t\t\t\t$query_string[] = urlencode($key) . '=' . rawurlencode($value);\n\t\t\t\tendif;\n\t\t\tendforeach;\n\t\telse:\n\t\t\treturn $params;\n\t\tendif;\n\t\treturn implode('&', $query_string);\n\t}", "title": "" }, { "docid": "5c4d54c992931b0b5f1be70fa7be0f69", "score": "0.5900248", "text": "public function setParams($arrayUrl) {\n $this->params = array();\n\n if (count($arrayUrl) > 0) {\n\n \t$parametros = explode(\"&\", $arrayUrl); \n for ($i = 0; $i < count($parametros); $i++) {\n \t$param = explode(\"=\", $parametros[$i]);\n \t\n \tif ( $param[0] != null && $param[1] != null ){\n \t\t$this->params[addslashes(trim($param[0]))] = addslashes(trim($param[1]));\n \t}\n }\n }\n\n if (count($_POST) > 0) {\n $this->params = $_POST;\n\n $keys = array_keys($_POST);\n\n for ($i = 0; $i < count($keys); $i++) {\n $this->params[addslashes(trim($keys[$i]))] = addslashes(trim($_POST[$keys[$i]]));\n }\n }\n }", "title": "" }, { "docid": "7cb683400d1e9aa684a0bb40f78715a6", "score": "0.58830655", "text": "function params( $array ) {\n\t\t$this->params_list = $array;\n\t\t}", "title": "" }, { "docid": "b2baf28facc2d0e1fb70457a9aa1ee27", "score": "0.587531", "text": "function requestParamsToStrig($user_params_arr) {\r\n $string =\"\";\r\n foreach($user_params_arr as $key=>$user_param){\r\n $string =$string.\"/\".$key.\"/\".$user_param;\r\n }\r\n return $string =$string.\"/\";\r\n }", "title": "" }, { "docid": "ed59139f28cddd52e0ffaa2d00b0eea4", "score": "0.5861797", "text": "function processUriParams() {\n\t\t$params = array();\n\t\t$uriParams = explode('/', trim($this->_uri, '/'));\n\t\t$count = count($uriParams);\n\t\tif($count > 0) {\n\t\t\tfor($i = 0; $i < $count; $i++) {\n\t\t\t\t$val = isset($uriParams[($i + 1)]) ? $uriParams[($i + 1)] : null;\n\t\t\t\t$params[$uriParams[$i]] = urldecode(is_numeric($val) ? (int) $val : $val);\n\t\t\t}\n\t\t\t$this->_uriParams = $params;\n\t\t}\n\t}", "title": "" }, { "docid": "f64fbc7b9f4a5cdedac769be5b90b5f9", "score": "0.5860799", "text": "private function arrangeParams($params) {\n\t\t$this->api_key and $params['auth_token'] = $this->api_key;\n\t\tif (!$params) return $params;\n\t\t\n\t\tforeach([\"trim_start\", \"trim_end\"] as $v) {\n\t\t\tif (isset($params[$v]) )\n\t\t\t\t$params[$v] = self::convertToQuandlDate($params[$v]);\n\t\t}\n\n\t\treturn http_build_query($params);\n\t}", "title": "" }, { "docid": "1ead754a670f993410cb6d6a25135480", "score": "0.5845633", "text": "public function asUrlParam()\n {\n return http_build_query([\n 'startDate' => $this->startDate,\n 'startWeight' => $this->startWeight,\n 'weight' => $this->weight,\n ]);\n }", "title": "" }, { "docid": "45fc0efee0fb69567b1095a4e2d5a7ec", "score": "0.5845077", "text": "function set_allowed_uri_params_list()\r\n{\r\n //allowed params disabled. All allowed\r\n//\tif ($ar_params = func_get_args())\r\n//\t{\r\n//\t\tglobal $tpl_allowed_uri_params_list;\r\n//\r\n//\t\tif (is_array($tpl_allowed_uri_params_list))\r\n//\t\t{\r\n//\t\t\tforeach ($ar_params as $val)\r\n//\t\t\t{\r\n//\t\t\t\t$tpl_allowed_uri_params_list[] = $val;\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\telse\r\n//\t\t{\r\n//\t\t\t$tpl_allowed_uri_params_list = $ar_params;\r\n//\t\t}\r\n//\t}\r\n}", "title": "" }, { "docid": "60d203a222a34db49b5d768537616bf5", "score": "0.5810007", "text": "private function getParameter() {\r\n\r\n\t\t$parameter = array();\r\n\t\tarray_push($parameter, \"locale=\" . Locales::getLocale());\r\n\t\tarray_push($parameter, \"currency=\" . Currencies::getCurrency());\r\n\r\n\t\tif (!InputValidator::isEmpty($this->page)) array_push($parameter, \"page=\" . $this->page);\r\n\t\tif (!InputValidator::isEmpty($this->resultsPerPage)) array_push($parameter, \"resultsPerPage=\" . $this->resultsPerPage);\r\n\t\tif (!InputValidator::isEmpty($this->direction)) array_push($parameter, \"direction=\" . $this->direction);\r\n\t\tif (!InputValidator::isEmpty($this->sort)) array_push($parameter, \"sort=\" . $this->sort);\r\n\t\tif (!InputValidator::isEmpty($this->q)) array_push($parameter, \"q=\" . $this->q);\r\n\t\tif (!InputValidator::isEmpty($this->categoryID)) array_push($parameter, \"categoryId=\" . $this->categoryID);\r\n\r\n\t\tforeach ($this->IDs as $number => $id) {\r\n\r\n\t\t\tarray_push($parameter, \"id=\" . $id);\r\n\t\t}\r\n\r\n\t\treturn implode(\"&\", $parameter);\r\n\t}", "title": "" }, { "docid": "8ea655d37831b2b140a9458c45613293", "score": "0.58081853", "text": "function getParams($input){\n $filterParams = [];\n foreach($input as $param => $value){\n $filterParams[] = \"$param=:$param\";\n }\n return implode(\", \", $filterParams);\n\t}", "title": "" }, { "docid": "e7b838970ce76bdcff92566d3fd3e04e", "score": "0.5786482", "text": "public function getFilterUrlParamAsArray() {\n\t\treturn $this->bannerFilterString ?\n\t\t\t[ 'filter' => $this->bannerFilterString ] : [];\n\t}", "title": "" }, { "docid": "8424bd6d67420b9ac0d88b1629ee302f", "score": "0.5785265", "text": "function parseGetParams()\n {\n $this->parameters = array();\n\n $uriParts = explode('?', $this->userURI);\n $itemCount = count($uriParts);\n if ($itemCount == 0)\n {\n return;\n }\n\n //remove last item if it's empty\n if (isset($uriParts[$itemCount - 1]) && $uriParts[$itemCount - 1] == '')\n {\n array_pop($uriParts);\n }\n \n //remove first item if it's empty\n if (isset($uriParts[0]) && $uriParts[0] == '')\n {\n array_shift($uriParts);\n }\n\n //if has no valid item then return\n if (count($uriParts) == 0)\n {\n return;\n }\n writeLog(print_r($uriParts, true));\n \n foreach($uriParts as $inputData)\n {\n $data = html_entity_decode($inputData);\n $pair = explode('=', $data);\n\n if (count($pair)>1)\n {\n $this->parameters[$pair[0]] = $pair[1];\n }\n }\n \n writeLog(\"params = \".print_r($this->parameters, true));\n }", "title": "" }, { "docid": "7fddcc71d4fa5a3bb0b5e95fc68898ab", "score": "0.57654923", "text": "function urlify($fields = array())\n{\n\t$fields_string = '';\n\n\tforeach($fields as $key=>$value)\n\t{\n\t\t$fields_string .= $key.'='.$value.'&';\n\t}\n\trtrim($fields_string, '&');\n\n\treturn $fields_string;\n}", "title": "" }, { "docid": "814218ee4e89a7a33293c0a2a12e5200", "score": "0.576285", "text": "private function formatParams(array $params, ?CrudActionEnum $action = null): array\n {\n $formatted = [];\n foreach ($this->getModel()->getFillable() as $element) {\n if ($action->value === CrudActionEnum::UPDATE && !isset($params[$element])) {\n continue;\n }\n\n $formatted[$element] = $params[$element] ?? null;\n }\n\n return $formatted;\n }", "title": "" }, { "docid": "5a9e387fb1fe8dcab0c2d41e3ece3ef5", "score": "0.57589746", "text": "private function getUrlParameters(): array {\n $uri = $this->getLocation();\n $param = [];\n preg_match_all('#{[^}]+}#', $uri, $param);\n return $param[0];\n }", "title": "" }, { "docid": "74e8be2815f8561030b3d339a1c35273", "score": "0.57531655", "text": "function array2url($arr){\n\t\tif (!is_array($arr)){\n\t\t\treturn false;\n\t\t}\n\t\t$query = '';\n\t\tforeach($arr as $key => $value){\n\t\t\t$query .= $key . \"=\" . $value . \"&\";\n\t\t}\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "5ddeecbef5c1974379d39d6597f4e221", "score": "0.57201165", "text": "protected function buildQueryParams() {\n $params = array(\n 'Action' => $this->ActionName,\n 'ResponseGroup' => $this->ResponseGroupName,\n 'AWSAccessKeyId' => $this->accessKeyId,\n 'Timestamp' => self::getTimestamp(),\n 'Count' => $this->NumReturn,\n 'Start' => $this->StartNum,\n 'SignatureVersion' => self::$SigVersion,\n 'SignatureMethod' => self::$HashAlgorithm,\n 'Url' => $this->site\n );\n if (isset($this->countryCode)) {\n $params['CountryCode'] = $this->countryCode;\n }\n ksort($params);\n $keyvalue = array();\n foreach($params as $k => $v) {\n $keyvalue[] = $k . '=' . rawurlencode($v);\n }\n return implode('&',$keyvalue);\n }", "title": "" }, { "docid": "7b845d31cd301b7f1b0b526a7b88ea14", "score": "0.5706459", "text": "public function getUriParameters()\n {\n // This function automatically urldecodes values\n parse_str($this->uriQuery, $params);\n\n return $params;\n }", "title": "" }, { "docid": "d81ce59799904f99df3df1e05dace883", "score": "0.56880236", "text": "function formatDateParams() {\n $session = CRM_Core_Session::singleton();\n $dateType = $session->get('dateTypes');\n $setDateFields = array_intersect_key($this->_params, array_flip($this->_dateFields));\n foreach ($setDateFields as $key => $value) {\n CRM_Utils_Date::convertToDefaultDate($this->_params, $dateType, $key);\n $this->_params[$key] = CRM_Utils_Date::processDate($this->_params[$key]);\n }\n }", "title": "" }, { "docid": "b4e3a36270fe55913d2e347b74a6517d", "score": "0.56683326", "text": "public function getParamsAsArray();", "title": "" }, { "docid": "513ff38824ebd59cbc2cd5e81ace5fe2", "score": "0.5665656", "text": "public function urlArguments()\n {\n return [\n 'id' => $this->id,\n ];\n }", "title": "" }, { "docid": "443904a7a41da56899a84ee1473502fc", "score": "0.5659835", "text": "public function getUrlParameters()\n {\n // TODO: Implement getUrlParameters() method.\n }", "title": "" }, { "docid": "70cf2cccde32da02fdf2aa2e51779bab", "score": "0.5655682", "text": "private function explodeParams() {\n $arrayUrl = explode(\"?\", $_SERVER['REQUEST_URI']);\n if (count($arrayUrl) > 1)\n $explodeParams = $arrayUrl[1];\n else\n $explodeParams = \"\";\n\n $this->setParams($explodeParams);\n }", "title": "" }, { "docid": "456aa1d37f25740917ad5c38984a4a7d", "score": "0.5654924", "text": "private function formatParams($params, $action = 'create')\n {\n $formatted = [\n 'name' => isset($params['name']) ? $params['name'] : null,\n 'description' => isset($params['description']) ? $params['description'] : null\n ];\n\n return $formatted;\n }", "title": "" }, { "docid": "6a9a1c46f8f188f24e57d5eb739d5fcb", "score": "0.5647488", "text": "public function asUrlParam()\n {\n return http_build_query([\n 'gender' => is_null($this->gender) ? null : (string) $this->gender,\n 'birthday' => $this->birthday,\n 'height' => $this->height,\n 'aboutMe' => $this->aboutMe,\n 'fullname' => $this->fullname,\n 'country' => $this->country,\n 'state' => $this->state,\n 'city' => $this->city,\n 'strideLengthWalking' => $this->strideLengthWalking,\n 'strideLengthRunning' => $this->strideLengthRunning,\n 'weightUnit' => is_null($this->weightUnit) ? null : (string) $this->weightUnit,\n 'heightUnit' => is_null($this->heightUnit) ? null : (string) $this->heightUnit,\n 'waterUnit' => is_null($this->waterUnit) ? null : (string) $this->waterUnit,\n 'glucoseUnit' => is_null($this->glucoseUnit) ? null : (string) $this->glucoseUnit,\n 'timezone' => $this->timezone,\n 'foodsLocale' => $this->foodsLocale,\n 'locale' => is_null($this->locale) ? null : (string) $this->locale,\n 'localeLang' => $this->localeLang,\n 'localeCountry' => $this->localeCountry,\n 'startDayOfWeek' => is_null($this->startDayOfWeek) ? null : (string) $this->startDayOfWeek,\n 'clockTimeDisplayFormat' => is_null($this->clockTimeDisplayFormat) ? null : (string) $this->clockTimeDisplayFormat,\n ]);\n }", "title": "" }, { "docid": "f68207a9d90793b524d18c36965a421a", "score": "0.56463337", "text": "protected function prepare($params) {\r\n\t\tif (isset($params['_args_'])) {\r\n\t\t\t$params = array_merge_recursive(Router::getArgs($params['_args_']), $params);\r\n\t\t\tunset($params['_args_']);\r\n\t\t}\r\n\t\treturn $params + array('url' => array());\r\n\t}", "title": "" }, { "docid": "5823ece5f9f6ca0bc83c433eaeecfcb9", "score": "0.5645206", "text": "protected function compileParameterNames()\n {\n preg_match_all('/\\{(.*?)\\}/', $this->getDomain() . $this->uri, $matches);\n\n return array_map(function ($m) {\n return trim($m, '?');\n }, $matches[1]);\n }", "title": "" }, { "docid": "75ce05d1c1e55deb08076bc7c04d79d8", "score": "0.56265116", "text": "function get_all_get_params($exclude_array = '') {\n if (!is_array($exclude_array))\n $exclude_array = array();\n $get_url = '';\n if (is_array($_GET) && (sizeof($_GET) > 0)) {\n reset($_GET);\n $arr = $_GET;\n foreach ($arr as $k => $value) {\n if (gettype($arr[$k]) == \"array\") {\n foreach ($arr[$k] as $key => $values) {\n if ((strlen($values) > 0) && (!in_array($key, $exclude_array))) {\n $get_url .= sanitize_string($k) . '[]=' . rawurlencode(stripslashes($values)) . '&';\n }\n }\n } else {\n if ((strlen($value) > 0) && ($k != 'error') && (!in_array($k, $exclude_array)) && ($k != 'x') && ($k != 'y')) {\n $get_url .= sanitize_string($k) . '=' . rawurlencode(stripslashes($value)) . '&';\n }\n }\n }\n }\n while (strstr($get_url, '&&'))\n $get_url = str_replace('&&', '&', $get_url);\n while (strstr($get_url, '&amp;&amp;'))\n $get_url = str_replace('&amp;&amp;', '&amp;', $get_url);\n return $get_url;\n}", "title": "" }, { "docid": "aed1fa325a145d5a3b3fb45475eb93ce", "score": "0.56161785", "text": "protected function _parseParams($url) {\n\t\tif (strpos($url, '?') !== false) {\n\t\t\tlist($url, $queryParameters) = explode('?', $url, 2);\n\t\t\tparse_str($queryParameters, $queryParameters);\n\t\t}\n\t\tif (substr($url, -1, 1) === '/') {\n\t\t\t$url = substr($url, 0, -1);\n\t\t}\n\t\tif (substr($url, 0, 1) !== '/') {\n\t\t\t$url = '/' . $url;\n\t\t}\n\t\t$urlArr = explode('/', $url);\n\t\t$countUrlArr = count($urlArr);\n\n\t\t$params = false;\n\t\tforeach ($this->settings['routingFormat'] as $format) {\n\t\t\t$formatArr = explode('/', $format);\n\t\t\tif ($countUrlArr === count($formatArr)) {\n\t\t\t\tfor ($i = 1; $countUrlArr > $i; $i++) {\n\t\t\t\t\t$params[substr($formatArr[$i], 1)] = $urlArr[$i];\n\t\t\t\t}\n\t\t\t\t$params += ['named' => [], 'pass' => []];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "3a7b5a38e8f602c690d38446af927cfb", "score": "0.5605596", "text": "function convArrayForSanitizing($src, &$array)\n{\n $array = array();\n foreach ($src as $key => $val) {\n if (key_exists($key, $_GET)) {\n array_push($array, sprintf(\"%s=%s\", $key, $val));\n }\n }\n}", "title": "" }, { "docid": "dc34275556cbb084f82109b049a382a7", "score": "0.5603033", "text": "public function getUrlParameters() {\n\t\t$parameters = $this->parameters;\n\t\tif ($this->profile) {\n\t\t\t$parameters['profile'] = $this->profile;\n\t\t}\n\t\treturn $parameters;\n\t}", "title": "" }, { "docid": "0f57d24a33d7ebe21b7a60564560330e", "score": "0.5596361", "text": "function get_params_array()\n {\n $values = array(\n 'paged' => (isset($_GET['paged'])?$_GET['paged']:(isset($_POST['paged'])?$_POST['paged']:1)),\n 'l' => (isset($_GET['l'])?$_GET['l']:(isset($_POST['l'])?$_POST['l']:'all')),\n 'group' => (isset($_GET['group'])?$_GET['group']:(isset($_POST['group'])?$_POST['group']:'')),\n 'ip' => (isset($_GET['ip'])?$_GET['ip']:(isset($_POST['ip'])?$_POST['ip']:'')),\n 'vuid' => (isset($_GET['vuid'])?$_GET['vuid']:(isset($_POST['vuid'])?$_POST['vuid']:'')),\n 'sdate' => (isset($_GET['sdate'])?$_GET['sdate']:(isset($_POST['sdate'])?$_POST['sdate']:'')),\n 'edate' => (isset($_GET['edate'])?$_GET['edate']:(isset($_POST['edate'])?$_POST['edate']:'')),\n 'type' => (isset($_GET['type'])?$_GET['type']:(isset($_POST['type'])?$_POST['type']:'all')),\n 'search' => (isset($_GET['search'])?$_GET['search']:(isset($_POST['search'])?$_POST['search']:'')),\n 'sort' => (isset($_GET['sort'])?$_GET['sort']:(isset($_POST['sort'])?$_POST['sort']:'')),\n 'sdir' => (isset($_GET['sdir'])?$_GET['sdir']:(isset($_POST['sdir'])?$_POST['sdir']:''))\n );\n\n return $values;\n }", "title": "" }, { "docid": "8317b01596caf0189b5d49009c542c71", "score": "0.5588563", "text": "public function getUrlParams()\n {\n return [\n 'id' => $this->user_id,\n 'slug' => $this->slug,\n ];\n }", "title": "" }, { "docid": "a942280a424a8724ee222149dd8f801e", "score": "0.55796236", "text": "final public static function getParams()\n {\n $param = self::getUrl();\n\n $y=0;while($y <= 2){\n unset($param[$y]);\n $y++;\n }\n\n foreach($param as $t ){\n $p[] = array($t);\n }\n\n $r=0;\n while($r <= count($p)){\n\n $par[$p[$r][0]] = $p[$r + 1][0];\n\n $r += 2;\n }\n\n return array_filter($par);\n }", "title": "" }, { "docid": "ac4560d7d0ab3f5064ea2587172d7b10", "score": "0.55655485", "text": "public function makeHTTPParameters()\n { \n $b =\"&\";\n $b.=\"id=\".$this->id.\"&\";\n $b.=\"release=\".$this->release.\"&\";\n $b.=\"position=\".$this->position.\"&\";\n $b.=\"format=\".$this->format.\"&\";\n $b.=\"name=\".$this->name.\"&\";\n $b.=\"edits_pending=\".$this->edits_pending.\"&\";\n $b.=\"last_updated=\".$this->last_updated.\"&\";\n $b.=\"track_count=\".$this->track_count.\"&\";\n return($b);\n\n\n }", "title": "" }, { "docid": "1147667487648832e80abf577baa2747", "score": "0.5562594", "text": "public function getUriParams()\n {\n $values = array();\n $string = parse_url(filter_input(INPUT_SERVER, 'REQUEST_URI'));\n if (isset($string['query'])) {\n $exp = explode('&', $string['query']);\n $count = count($exp);\n for ($i = 0; $i < $count; $i++) {\n $value = explode('=', $exp[$i]);\n $values[$value[0]] = self::setAntiInjection($value[1]);\n }\n }\n return $values;\n }", "title": "" }, { "docid": "2029471718d882b942ece3a03d7b039c", "score": "0.5559898", "text": "public function params($params) {\n if(is_array($params)) return $params;\n $result = array();\n foreach(explode('|', $params) as $param) {\n $pos = strpos($param, ':');\n $result[trim(substr($param, 0, $pos))] = trim(substr($param, $pos+1));\n }\n return $result;\n }", "title": "" }, { "docid": "8b297b653259ff022ce498139c18f9ac", "score": "0.55527216", "text": "function paramify(array $array, $valueItem=null, $delimiter=\"&\", $hiddenKeyRegex=null) {\r\n\t$params = array();\r\n\tforeach ($array as $key=>$value) {\r\n\t\tif (isset($hiddenKeyRegex) && preg_match($hiddenKeyRegex, $key)) {\r\n\t\t\t$value = \"{HIDDEN}\";\r\n\t\t} else if (is_array($value)) {\r\n\t\t\t$value = $value[$valueItem];\r\n\t\t} else if (is_object($value)) {\r\n\t\t\t$value = $value->{$valueItem};\r\n\t\t}\r\n\t\t$params[] = \"{$key}=\" . json_encode($value);\r\n\t}\r\n\treturn implode($delimiter, $params);\r\n}", "title": "" }, { "docid": "0b1dcdecc792095a71354ce062948adc", "score": "0.5531247", "text": "private function getParams(&$url){\n $this->params = $url ? array_values($url) : [];\n }", "title": "" }, { "docid": "f191a4dcfc5e1066d8ea344f26bf968e", "score": "0.5522484", "text": "public function asUrlParam()\n {\n $nutritionalValues = is_null($this->nutritionalValues) ?\n [] :\n $this->nutritionalValues->toArray();\n\n return http_build_query(\n array_merge([\n 'foodId' => $this->foodId,\n 'foodName' => $this->foodName,\n 'mealTypeId' => (string) $this->mealType,\n 'unitId' => $this->unitId,\n 'amount' => $this->amount,\n 'date' => $this->date,\n 'favorite' => $this->favorite ? 'true' : 'false', //TODO: This should be null sometimes\n 'brandName' => $this->brandName,\n 'calories' => $this->calories,\n ], $nutritionalValues)\n );\n }", "title": "" }, { "docid": "370c26c913197790d39cbdbe28f413ff", "score": "0.55218", "text": "private function make_params($params){\n\t\t//Lazy guy!\n\t\t$to_implode = array();\n\t\tforeach($params as $k => $v){\n\t\t\t$to_implode[] = $k.'='.$v;\n\t\t}\n\t\treturn(implode('&', $to_implode));\n\t}", "title": "" }, { "docid": "e8fc565c03d9c142b214621c03f67597", "score": "0.55027163", "text": "public function parseUrl()\n\t{\n\t\t$request=$this->getRequest();\n\t\tforeach($this->_patterns as $pattern)\n\t\t{\n\t\t\t$matches=$pattern->getPatternMatches($request);\n\t\t\tif(count($matches)>0)\n\t\t\t{\n\t\t\t\t$this->_matched=$pattern;\n\t\t\t\t$params=array();\n\t\t\t\tforeach($matches as $key=>$value)\n\t\t\t\t{\n\t\t\t\t\tif(is_string($key))\n\t\t\t\t\t\t$params[$key]=$value;\n\t\t\t\t}\n\t\t\t\tif (!$pattern->getIsWildCardPattern())\n\t\t\t\t\t$params[$pattern->getServiceID()]=$pattern->getServiceParameter();\n\t\t\t\treturn $params;\n\t\t\t}\n\t\t}\n\t\treturn parent::parseUrl();\n\t}", "title": "" }, { "docid": "eec59ec969ad9c188a777b19c64dc78e", "score": "0.5499168", "text": "public function urlParam($format, $params = array())\n {\n if (!empty($params)) {\n $attr = null;\n $i = 0;\n switch ($format) {\n case 'get':\n foreach ($params as $key => $value) {\n $value = urlencode($value);\n if ($i > 0) {\n $attr .= '&';\n }\n $attr .= \"{$key}={$value}\";\n $i++;\n }\n break;\n case 'path':\n foreach ($params as $key => $value) {\n $value = urlencode($value);\n $attr .= \"/$key/$value\";\n }\n break;\n }\n return $attr;\n }\n }", "title": "" }, { "docid": "716470af0bf014f44441f66c964d56ba", "score": "0.54970855", "text": "public static function CreateUrlParamString(array $params)\n {\n $nameValPairs\t= array();\n foreach ($params as $key => $val) {\n if (is_array($val)) {\n foreach ($val as $arrVal) {\n $nameValPairs[]\t= urlencode($key.'[]') . '=' . urlencode($arrVal);\n }\n } else if (is_null($val)) {\n $nameValPairs[]\t= urlencode($key);\n } else {\n $nameValPairs[]\t= urlencode($key) . '=' . urlencode($val);\n }\n }\n $paramString = implode('&', $nameValPairs);\n return $paramString;\n }", "title": "" }, { "docid": "46e69b763933684d85620d6b213460a6", "score": "0.54922295", "text": "public function _restructureParams($params)\n{\nif (empty($params))\n{\nreturn '';\n}\n\n$temp = array();\n\nforeach ($params as $key => $value)\n{\n$temp[] = sprintf('%s=%s', $key, $value);\n}\n\nreturn implode(';', $temp);\n}", "title": "" }, { "docid": "7d1963087c0aa0257f1016eb703a48a0", "score": "0.5486687", "text": "function array2qs($array, $urlencode=false) {\n\n $qs_ar=array();\n foreach($array as $k=>$v) {\n if(is_array($v)) {\n //dump($v);\n } else if($k && strlen($v)) {\n $qs_ar[] = \"$k=\".rawurlencode($v);\n }\n }\n $glue = $urlencode ? \"&amp;\" : \"&\";\n return implode($glue, $qs_ar);\n}", "title": "" }, { "docid": "cbdf68cb88f491cbdab059aa5d7549d0", "score": "0.54835516", "text": "public function getRequiredUriParameter()\n {\n return array();\n }", "title": "" }, { "docid": "9b57ace097f0617d2289758c8f20003f", "score": "0.5474782", "text": "protected function _getUrlParams()\n {\n return array(\n '_store' => $this->getStore(),\n '_store_to_url' => true\n );\n }", "title": "" }, { "docid": "eaeb8fc78693a45733763534db0ccaaf", "score": "0.5474768", "text": "protected function urlToArray(&$item)\n {\n $parse_url = parse_url($item['url']);\n\n if ($parse_url) {\n $path = $parse_url['path'];\n $params = [];\n\n # Set Url\n $item['url'] = [$path];\n\n if (!empty($parse_url['query'])) {\n $query = $parse_url['query'];\n $queries = explode('&', $query);\n\n foreach ($queries as $key => $value) {\n $split_equal = explode('=', $value);\n $params += [$split_equal[0] => $split_equal[1]];\n }\n\n $item['url'] += $params;\n }\n }\n }", "title": "" }, { "docid": "5a9438cea112430bbc1252ab72844b0d", "score": "0.54697084", "text": "protected function formatParams($params = null)\n {\n if (!is_array($params) || empty($params)) {\n return $params;\n }\n\n foreach ($params as $key => $val) {\n if (in_array($key, $this->needPrefixKeys)) {\n unset($params[$key]);\n $key = self::KEY_PREFIX . $key;\n }\n\n if (is_array($val)) {\n $val = $this->formatParams($val);\n } elseif (is_string($val)) {\n if ($unixTime = strtotime($val)) {\n $val = $unixTime;\n }\n }\n\n $params[$key] = $val;\n }\n\n return $params;\n }", "title": "" }, { "docid": "c0283fc8d57b0857318e6206a7669393", "score": "0.5466601", "text": "private function getParams()\n {\n $queryParams = $this->request->getQueryParams();\n\n $params = [\n 'openid.assoc_handle' => array_get($queryParams,self::OPENID_ASSOC_HANDLE),\n 'openid.signed' => array_get($queryParams,self::OPENID_SIGNED),\n 'openid.sig' => array_get($queryParams,self::OPENID_SIG),\n 'openid.ns' => self::OPENID_NS,\n 'openid.mode' => 'check_authentication',\n ];\n\n $signedParams = explode(',', array_get($queryParams,self::OPENID_SIGNED));\n\n foreach ($signedParams as $item) {\n $value = array_get($queryParams,'openid_'.str_replace('.', '_', $item));\n $params['openid.'.$item] = $value;\n }\n\n return $params;\n }", "title": "" }, { "docid": "d7da19b8389effd3026b2959b997070d", "score": "0.5454422", "text": "public function normalize($params) {\n\t\tksort($params);\n\t\t$paramList = array();\n\t\tforeach($params as $k => $values) {\n\t\t\tif (is_array($values)) {\n\t\t\t\tasort($values);\n\t\t\t\tforeach($values as $v) {\n\t\t\t\t\t$paramList[] = OauthHelper::escape($k) . '=' . OauthHelper::escape($v);\n\t\t\t\t}\n\t\t\t} else {\t\t\n\t\t\t\t$paramList[] = OauthHelper::escape($k) . '=' . OauthHelper::escape($values);\n\t\t\t}\n\t\t}\n\t\treturn implode('&', $paramList);\n\t}", "title": "" }, { "docid": "a1260ec7100d4fd8f4d4f62467c4c39e", "score": "0.54505605", "text": "public function createUrlArgs()\n {\n return [\n 'id' => $this->getId()\n ];\n }", "title": "" }, { "docid": "8e42fb22b808bd6dbfd39c3116c233e3", "score": "0.5447862", "text": "private static function formatRequestUrl( $url ) {\n\t\t$params = array();\n\n\t\t$locale = self::getLocale();\n\t\t$key = self::getKey();\n\n\t\tif ( $locale ) {\n\t\t\t$params['locale'] = $locale;\n\t\t}\n\n\t\tif ( $key ) {\n\t\t\t$params['apikey'] = $key;\n\t\t}\n\n\t\tif ( ! empty( $params ) ) {\n\t\t\t$queryString = http_build_query( $params );\n\n\t\t\tif ( strpos( $url, '?' ) ) {\n\t\t\t\t$url .= '&' . $queryString;\n\t\t\t} else {\n\t\t\t\t$url .= '?' . $queryString;\n\t\t\t}\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "b431587dba90f502cae0131c7b30f39a", "score": "0.5447298", "text": "private function formatParams($params, $action = 'create')\n {\n $formatted = [\n 'date' => isset($params['date']) ? $params['date'] : null,\n 'time' => isset($params['time']) ? $params['time'] : null,\n 'species' => isset($params['species']) ? $params['species'] : null,\n 'river' => isset($params['river']) ? $params['river'] : null,\n 'zone' => isset($params['zone']) ? $params['zone'] : null,\n 'lat' => isset($params['lat']) ? $params['lat'] : null,\n 'lng' => isset($params['lng']) ? $params['lng'] : null,\n 'weight' => isset($params['weight']) ? $params['weight'] : null,\n 'length' => isset($params['length']) ? $params['length'] : null,\n 'bait' => isset($params['bait']) ? $params['bait'] : null,\n 'line' => isset($params['line']) ? $params['line'] : null,\n 'waterTemp' => isset($params['waterTemp']) ? $params['waterTemp'] : null,\n 'waterLevel' => isset($params['waterLevel']) ? $params['waterLevel'] : null,\n 'sex' => isset($params['sex']) ? $params['sex'] : null,\n 'farmed' => isset($params['farmed']) ? $params['farmed'] : null,\n 'lice' => isset($params['lice']) ? $params['lice'] : null,\n 'released' => isset($params['released']) ? $params['released'] : null,\n 'photo' => isset($params['photo']) ? $params['photo'] : null,\n 'description' => isset($params['description']) ? $params['description'] : null\n\n ];\n\n if ($action === 'create') {\n $formatted['user_id'] = \\Auth::user()->id;\n $formatted['uuid'] = Str::uuid();\n }\n\n return $formatted;\n }", "title": "" }, { "docid": "59dde62989fe29c960f47e96251ef01d", "score": "0.5434394", "text": "protected function SetupURLqueryParameters()\n\t{\n\t\t$this->OrientAxis();\n\n\t\tparent::SetupURLqueryParameters();\n\n\t\t$this->_urlQueryParameters[] = \"cht=\" . $this->BuildChartType();\n\t\t$this->_urlQueryParameters[] = $this->BuildSizeAndSpacing();\n\t}", "title": "" }, { "docid": "52962a4c0bd25cb48af5d9d9fffc1199", "score": "0.5426368", "text": "protected function buildHttpParams(array $params = [])\n {\n $result = '';\n\n foreach ($params as $key => $value) {\n $result .= \"&$key=$value\";\n }\n\n return trim($result, '&');\n }", "title": "" }, { "docid": "dd411aef75ea93f33c8244b92ba51449", "score": "0.5425838", "text": "private function setGetParameters() {\n\t\tforeach(array_keys($_GET) as $currentKey) {\n\t\t\t$this->getArray[$currentKey] = $_GET[$currentKey];\n\t\t}\n\t}", "title": "" }, { "docid": "80e2e11479007810301863f274d1ce0e", "score": "0.54257697", "text": "function arr2url ($arr) {\n\tif (!is_array($arr))\n\t\treturn;\n\t$rar = array();\n\tforeach($arr as $key => $value) {\n\t\tif ($value === null)\n\t\t\tcontinue;\n\t\tif (is_array($value)){\n\t\t\tforeach($value as $arr_val)\n\t\t\t\t$rar[] = \"$key\" . '[]=' . rawurlencode($arr_val);\n\t\t}else\n\t\t$rar[] = \"$key\" . '=' . rawurlencode($value);\n\t}\n\treturn implode('&',$rar);\n}", "title": "" }, { "docid": "ec47058a08a070def3c409e55c89ddfb", "score": "0.5422246", "text": "protected function _get_params()\n\t{\n\t\treturn array('key', 'name', 'provider', 'fee', 'provider_sub', 'image', 'status', 'profit');\n\t}", "title": "" }, { "docid": "06bfbe6f548468bc43d9e49a4015061d", "score": "0.5419696", "text": "function allowed_get_params($allowed_params = []){\r\n //$allowed_array will contain only allowed url parameters\r\n $allowed_array = [];\r\n foreach($allowed_params as $param){\r\n if(isset($_GET[$param])){\r\n $allowed_array[$param] = $_GET[$param];\r\n }else{\r\n $allowed_array[$param] = NULL;\r\n }\r\n }\r\n return $allowed_array;\r\n\r\n}", "title": "" }, { "docid": "7627c99a5921556e150249efd0fdc640", "score": "0.54195774", "text": "public function allowedParams(): array\n {\n return [\n 'title',\n 'year'\n ];\n }", "title": "" }, { "docid": "de2de28e7629ef2ee52150d0af1713f3", "score": "0.5413833", "text": "private function _gen_string_params($arr_params = Array()){\n $__str_params = '';\n if(!is_array($arr_params)){\n return $__str_params;\n }\n ksort($arr_params);\n foreach ($arr_params as $key => $value) {\n if(trim($value) == '') {\n continue;\n }\n if($key == \"email_address\") {\n $__str_params .= $key . '=' . str_replace('@','%40', trim($value)) . '&';\n } else {\n $__str_params .= $key . '=' . trim($value) . '&';\n }\n }\n if(strlen($__str_params) > 0 && substr($__str_params, -1) == '&'){\n $__str_params = substr($__str_params, 0, -1);\n }\n\n return $__str_params;\n }", "title": "" }, { "docid": "0fde732f2c3c20e9d9571daea49aba0d", "score": "0.5413702", "text": "public function prepare_oauth_parameters($url, $params, $http_method = 'POST') {\n if (is_array($params)) {\n $oauth_params = $params;\n } else {\n $oauth_params = array();\n }\n $oauth_params['oauth_version']\t = '1.0';\n $oauth_params['oauth_nonce']\t = $this->get_nonce();\n $oauth_params['oauth_timestamp'] = $this->get_timestamp();\n $oauth_params['oauth_consumer_key'] = $this->consumer_key;\n $oauth_params['oauth_signature_method']\t= 'HMAC-SHA1';\n $oauth_params['oauth_signature']\t= $this->sign($http_method, $url, $oauth_params, $this->sign_secret);\n return $oauth_params;\n }", "title": "" }, { "docid": "d54f67f89cecd63356faa1b3877018e6", "score": "0.541227", "text": "protected function _buildURLParams(array $params)\n {\n $parameters = null;\n foreach ($params as $param => $value) {\n if (is_array($value)) {\n $parameters .= $this->_buildURLParams($value);\n }\n else {\n $parameters .= $param . '=' . urlencode($value) . '&';\n }\n }\n\n return $parameters;\n }", "title": "" }, { "docid": "2571cb2d530ce587b3e9992a7155ba63", "score": "0.5409355", "text": "private function _implode()\n {\n\t$this->_uri = implode('/', $this->params );\n }", "title": "" }, { "docid": "7a73840fc8101737befdc32a6e0f00d5", "score": "0.5409151", "text": "protected function encodeUriParameters(array $uriParameters)\n {\n return array_map(function ($uriParameter) {\n $uriParameter = rawurlencode($uriParameter);\n return preg_replace('~\\%2F~', '/', $uriParameter);\n }, $uriParameters);\n }", "title": "" }, { "docid": "8c27cee43438ad7f63cff3fe396ae29b", "score": "0.540636", "text": "private function _searchParamsFromString()\n\t{\n\t\t$this->_search_params = array();\n\n\t\tif (isset($this->_req->query->params) || isset($this->_req->post->params))\n\t\t{\n\t\t\t// Feed it\n\t\t\t$temp_params = $this->_req->query->params ?? $this->_req->post->params;\n\n\t\t\t// Decode and replace the uri safe characters we added\n\t\t\t$temp_params = base64_decode(str_replace(array('-', '_', '.'), array('+', '/', '='), $temp_params));\n\n\t\t\t$temp_params = explode('|\"|', $temp_params);\n\t\t\tforeach ($temp_params as $i => $data)\n\t\t\t{\n\t\t\t\tlist ($k, $v) = array_pad(explode('|\\'|', $data), 2, '');\n\t\t\t\t$this->_search_params[$k] = $v;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_search_params;\n\t}", "title": "" }, { "docid": "b3c8d3dd3330d07af7a21b88da0c2e05", "score": "0.54059446", "text": "public function getAdditionalParams()\n {\n return oxRegistry::get(\"oxUtilsUrl\")->processUrl('', false);\n }", "title": "" }, { "docid": "c40d0adc5a3a2914c90173d965a9e98a", "score": "0.54042727", "text": "private function convertUrlQuery($query) {\n/* print_r();\nexit; */\n $query = ($query);\n /* echo htmlspecialchars_decode($query);\n echo '<br/>'; */\n $queryParts = explode('&', htmlspecialchars_decode($query));\n /* print_r($queryParts);\n exit;*/\n $params = array();\n foreach ($queryParts as $param)\t{\n\n $item = explode('=', $param);\n $params[$item[0]] = $item[1];\n }\n return $params;\n\n }", "title": "" }, { "docid": "f213586e01cc786e4b85d0482700094d", "score": "0.5402533", "text": "public function getUriParams()\n {\n $params = array_merge($this->get, $this->params);\n\n return $params;\n }", "title": "" }, { "docid": "c1e68901b1be85c9e7e5ab41c03c691b", "score": "0.53992397", "text": "private function mergeUrlParametersWithRequestData(array $requestData): array\n {\n if (isset($this->urlParameters) && !empty($this->urlParameters)) {\n /** @var string $param */\n foreach ($this->urlParameters as $param) {\n $requestData[$param] = $this->route($param);\n }\n }\n\n return $requestData;\n }", "title": "" }, { "docid": "e66f337d7c908933be107c05066602ab", "score": "0.5384461", "text": "function queryString($param_array){\n\t$cnt = 0;\n\t$qstring = null;\n\tforeach ($param_array as $key => $value){\n\t\tif($cnt > 0){\n\t\t\t$qstring .= \"&\" . $key . \"=\" . $value;\n\t\t} else {\n\t\t\t$qstring = $key . \"=\" . $value;\n\t\t}\n\t\t$cnt++;\n\t}\n\treturn $qstring;\n}", "title": "" }, { "docid": "c1012e6a51c6ee6ec363c788918610b2", "score": "0.53844124", "text": "public function implodeArrayForUrlDataProvider() {}", "title": "" }, { "docid": "77b1236b3e7c834bbfb5cebc971a10a1", "score": "0.53712356", "text": "function addQuery($url, $params)\n{\n if (is_array($params)){\n if (count($params) > 0){\n $url .= '?';\n foreach ($params as $key => $value):\n $url .= $key . '=' . $value . '&';\n endforeach;\n $url = substr($url, 0, -1);\n }\n } \n return $url;\n}", "title": "" }, { "docid": "3ebff75ccd3456e25e2cae7ff2de17ae", "score": "0.53633606", "text": "function createUrlQuery($params)\n{\n $query = \"\";\n foreach ($params as $key => $value) {\n $query .= ($query == \"\") ? \"?\" : \"&\";\n $query .= $key.\"=\".strval($value);\n }\n return $query;\n}", "title": "" }, { "docid": "d22a3788a015f921bffe8fd0d69f600d", "score": "0.5359093", "text": "protected function buildURL($output_format)\n {\n $urlArray = array();\n $coordsParam = $this->buildCoordinateParameter();\n foreach ($coordsParam as $param) {\n $query = array(\n 'locations' => $param,\n 'key' => self::$KEY\n );\n \n $url = sprintf(self::$URL, $output_format);\n $url .= '?' . http_build_query($query);\n array_push($urlArray, $url);\n }\n \n return $urlArray;\n }", "title": "" }, { "docid": "e5bff0fdebb6dae7d769d0d585e933c9", "score": "0.5357348", "text": "public function getUrlParams()\n {\n\n if ($this->gc_publish_all_albums != 1)\n {\n if (!unserialize($this->gc_publish_albums))\n {\n return;\n }\n }\n\n if (\\Input::get('items'))\n {\n //aktueller Albumalias\n $this->strAlbumalias = \\Input::get('items');\n\n //Authentifizierung bei vor Zugriff geschützten Alben, dh. der Benutzer bekommt, wenn nicht berechtigt, nur das Albumvorschaubild zu sehen.\n $this->authenticate($this->strAlbumalias);\n\n //fuer jw_imagerotator ajax-requests\n if (\\Input::get('jw_imagerotator'))\n {\n return;\n }\n }\n\n //wenn nur ein Album ausgewaehlt wurde und Weiterleitung in den Inhaltselementeinstellungen aktiviert wurde, wird weitergeleitet\n if ($this->doRedirectOnSingleAlbum())\n {\n $arrAlbId = unserialize($this->gc_publish_albums);\n if ($this->gc_publish_all_albums)\n {\n //if all albums are selected\n $objAlbum = $this->Database->prepare('SELECT alias FROM tl_gallery_creator_albums WHERE published=?')\n ->execute('1');\n }\n else\n {\n $objAlbum = $this->Database->prepare('SELECT alias FROM tl_gallery_creator_albums WHERE id=?')\n ->execute($arrAlbId[0]);\n }\n\n //Authentifizierung bei vor Zugriff geschützten Alben, dh. der Benutzer bekommt, wenn nicht berechtigt, nur das Albumvorschaubild zu sehen.\n $this->authenticate($objAlbum->alias);\n\n \\Input::setGet('items', $objAlbum->alias);\n $this->strAlbumalias = $objAlbum->alias;\n }\n\n // Get the Album Id\n if (\\Input::get('items'))\n {\n $objAlbum = \\GalleryCreatorAlbumsModel::findByAlias($this->strAlbumalias);\n if ($objAlbum !== null)\n {\n $this->intAlbumId = $objAlbum->id;\n $this->DETAIL_VIEW = true;\n }\n }\n }", "title": "" }, { "docid": "e7d61f569f4f0a5a6a224324f4e83b44", "score": "0.53572565", "text": "function getParams()\n{\n $queryParams = array();\n $params = filter_input_array(INPUT_GET);\n if ($params) {\n foreach (array('page', 'pageSize', 'orderBy', 'fields', 'searchId') as $term) {\n if (filter_input(INPUT_GET, $term)) {\n $queryParams[$term] = filter_input(INPUT_GET, $term);\n unset($params[$term]);\n }\n }\n \n $queryParams['filter'] = http_build_query($params, null, ':');\n }\n \n return $queryParams;\n}", "title": "" }, { "docid": "580ab416dd06dd533ea101fceb8a2cf9", "score": "0.5351547", "text": "public function get_params();", "title": "" }, { "docid": "580ab416dd06dd533ea101fceb8a2cf9", "score": "0.5351547", "text": "public function get_params();", "title": "" }, { "docid": "d2bae23c110e8154680dafb4f14ceac0", "score": "0.5347812", "text": "public function params($id = null, $array = false)\n {\n $config = Grav::instance()['config'];\n $sep = $config->get('system.param_sep');\n\n $params = null;\n if ($id === null) {\n if ($array) {\n return $this->params;\n }\n $output = [];\n foreach ($this->params as $key => $value) {\n $output[] = \"{$key}{$sep}{$value}\";\n $params = '/' . implode('/', $output);\n }\n } elseif (isset($this->params[$id])) {\n if ($array) {\n return $this->params[$id];\n }\n $params = \"/{$id}{$sep}{$this->params[$id]}\";\n }\n\n return $params;\n }", "title": "" }, { "docid": "4f71a200ed3cad2906b82cff4db42c32", "score": "0.5343527", "text": "protected function cleanQueryParams(iterable $params):array{\n\t\treturn QueryUtil::cleanParams($params, QueryUtil::BOOLEANS_AS_INT_STRING, true);\n\t}", "title": "" } ]
44ac4a097ad4548302ded7af2e7b7438
Navigation dans les nodes
[ { "docid": "44cc4e97589121e19cc4e60079dc4a9b", "score": "0.5797845", "text": "public function list_nodesAction()\n {\n $parentNodeId = filter_var( $_REQUEST['id'], FILTER_SANITIZE_STRING );\n $this->params['show_parent_column'] = false;\n if ( $nodes = GestionNotes_Model_Node::fetchByParentNodeId($parentNodeId) )\n {\n $this->params['nodes'] = & $nodes;\n $this->params['parent'] = $nodes['parent'];\n $this->params['list_title'] = $nodes['parent']['title'];\n unset($nodes['parent']);\n }\n else\n {\n $parentNode = GestionNotes_Model_Node::fetchOneByNodeId($parentNodeId);\n $this->params['nodes'] = array();\n $this->params['list_title'] = $parentNode ? $parentNode['title'] : 'Element inconnu';\n }\n return $this->renderPage('admin/list-nodes');\n }", "title": "" } ]
[ { "docid": "0d305c035061f69b51b2da2023318660", "score": "0.6681315", "text": "public function nodes();", "title": "" }, { "docid": "e9bfe09f87c48bda0f645394c51b87cb", "score": "0.63506407", "text": "public function getFullNavigation()\n {\n $result = $this->_tree->getFullNavigation(true, true);\n foreach ($result->arr as $node) {\n $node->path = BASEURL . $this->_lang . '/' . $node->path;\n //$node -> page = $this -> _localize($node -> page);\n }\n\n return $result;\n }", "title": "" }, { "docid": "e742b2557efbe1124ad4aa06bd38da14", "score": "0.6250771", "text": "public function getNodes();", "title": "" }, { "docid": "14a9ea209bea87e6419b688e4c803962", "score": "0.61518574", "text": "public function getNavigateHierarchy();", "title": "" }, { "docid": "4790ace06e57d9506ecf81d432b87425", "score": "0.60579765", "text": "public function GetNavigationRows()\n\t{\n\t\t$in = Utils::TreeToIn($this->parents);\n\n\t\tif (strlen($in))\n\t\t{\n\t\t\t$rows = $this->Node->SelectValues(\"id IN $in\");\n\t\t\t$rows = Utils::OrderByParents($in, $rows);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$rows = array();\n\t\t}\n\n\t\t$result = $rows;\n\t\t$result[] = array(\n\t\t\t'name'\t=> $this->curName,\n\t\t\t'url'\t=> ''\n\t\t);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e04d1a00ea43d5f58962731a88e63bf6", "score": "0.6041617", "text": "public function get_nav_items() {\n\t\treturn ORM::for_table('navigation')->where('folder_id', $this->folder_id)->find_many();\n\t}", "title": "" }, { "docid": "95d559a70a2e9efbf0629d89d4122265", "score": "0.6040091", "text": "private function makeMenu() {\n $current_path = \\Drupal::service('path.current')->getPath();\n $current = \\Drupal::service('path.alias_manager')->getAliasByPath($current_path);\n\n $slugs = explode('/', $current);\n $n = count($slugs);\n if ($n == 1) {\n $parent = '';\n }\n else {\n array_pop($slugs);\n $parent = implode('/', $slugs);\n }\n\n $siblings = [];\n $title = '';\n\n $node = $this->getNode();\n if ($node) {\n $title = $node->get('title');\n if ($title) {\n $title = $title->value;\n }\n }\n\n $current_page = [\n 'url' => $current,\n 'title' => $title,\n 'current' => TRUE,\n ];\n $current_page_pid = 0;\n\n $result = db_query('SELECT * FROM url_alias');\n foreach ($result as $record) {\n if ($record->alias == $current) {\n $current_page_pid = $record->pid;\n }\n\n if ($record->alias == $parent) {\n $this->parent = [\n 'title' => $this->getTitleFromPath($record->source),\n 'url' => $record->alias,\n ];\n }\n\n $record_n = count(explode('/', $record->alias));\n\n if (strpos($record->alias, $current . '/')===0\n && $record_n == ($n + 1)) {\n if (!isset($current_page['children'])) {\n $current_page['children'] = [];\n }\n $current_page['children'][$record->pid] = [\n 'title' => $this->getTitleFromPath($record->source),\n 'url' => $record->alias,\n ];\n }\n\n if ($n > 1) {\n // second level or below\n if (strpos($record->alias, $parent . '/')===0 && $n == $record_n) {\n $siblings[$record->pid] = [\n 'title' => $this->getTitleFromPath($record->source),\n 'url' => $record->alias,\n ];\n }\n }\n else {\n // top level\n if ($record_n == 1) {\n $siblings[$record->pid] = [\n $this->getTitleFromPath($record->source),\n 'url' => $record->alias,\n ];\n }\n }\n }\n\n if (isset($current_page['children']) && count($current_page['children'])) {\n usort($current_page['children'], [$this, 'sortNav']);\n }\n $siblings[$current_page_pid] = $current_page;\n usort($siblings, [$this, 'sortNav']);\n\n return $siblings;\n }", "title": "" }, { "docid": "be351035d1de82390d01b5d1f2cf5976", "score": "0.60255736", "text": "public function navigation()\r\n {\r\n // get all first level page (parentid = 0)\r\n $Pages = Zend_Registry::get(\"db\");\r\n $Select = $Pages->select()\r\n ->from('PagesIndex')\r\n ->join('Pages', 'Pages.P_ID = PagesIndex.PI_PageID')\r\n ->where('PagesIndex.PI_LanguageID = ?', Zend_Registry::get(\"languageID\"))\r\n ->where('Pages.P_ParentID = ?', '0')\r\n ->where('PagesIndex.PI_Status = ?', 'en ligne')\r\n ->order('Pages.P_Position');\r\n $Rows = $Pages->fetchAll($Select);\r\n \r\n // build the menu to display\r\n $menu = \"<ul class='navigation'>\";\r\n \r\n foreach($Rows as $Row){\r\n $menu .= \"<li><a href='\".Zend_Registry::get('baseUrl').\"/\".$Row['PI_PageIndex'].\"'>\".$Row['PI_PageTitle'].\"</a>\";\r\n // get all childrens of the page\r\n $menu .= $this->findChildrensPage($Row['P_ID']);\r\n $menu .= \"</li>\";\r\n }\r\n \r\n $menu .= \"</ul>\";\r\n \r\n return $menu;\r\n }", "title": "" }, { "docid": "c709753888fe62511c72ea385b4428b0", "score": "0.6008759", "text": "function getNodes()\n {\n }", "title": "" }, { "docid": "eefabd7d9290eb70fa5f49b648782b22", "score": "0.59850496", "text": "function treeview_navigation_array($cms_connect){\r\n\t$output = array();\r\n\t$sql = \"SELECT id, label, parent FROM nav_cat\";\r\n\t$result = $cms_connect->query($sql);\r\n\twhile($row = $result->fetch_assoc()){\r\n\t\t$tmp = array();\r\n\t\t$tmp['id'] = $row['id'];\r\n\t\t$tmp['parent'] = $row['parent'] == 0 ? '#' : $row['parent'];\r\n\t\t$tmp['text'] = '['.$row['id'].'] '.$row['label'];\r\n\t\t$output[] = $tmp;\r\n\t}\r\n\treturn $output;\r\n}", "title": "" }, { "docid": "b33381df6a899fa37d488a29ef0aa10e", "score": "0.5972376", "text": "protected function _navigationVisitorTabLinks1()\r\n\t{\r\n\t}", "title": "" }, { "docid": "c391625cfebe5c2900ebfab339159271", "score": "0.59699285", "text": "public static function navTree()\n {\n\n $data = Header::navigationdata();\n \n $view = '';\n\n foreach ($data as $key => $content) {\n $view .= '<li ><ul class=\"nav nav-list\">';\n $view .= '<li class=\"nav-header\" style=\"height:30px\"><i class=\"icon-hdd\"></i>&nbsp;'.Str::upper($content['header']);\n $view .= '<div class=\"form-inline pull-right\" >';\n $view .= '<a href=\"#\" onclick=\"deleteModule('.$content['snh_id'].')\" style=\"margin-bottom:10px;margin-left:5px;\"><i class=\"icon-remove alert-error\"></i></a>';//<em><small>Remove Module</small></em>\n $view .= '</div>';\n $view .= Form::hidden('module[]',$content['snh_id']);\n $view .= '</li>';\n if(!empty($content['parent']) || isset($content['parent'])){\n $view .= '<li ><ul id=\"sortparent\" class=\"nav nav-list connectedparent\" style=\"padding-right:0px\">';\n\n foreach ($content['parent'] as $parentkey => $parentcontent) {\n $view .= '<li style=\"height:30px\" ><i class=\"icon-arrow-right\"></i>&nbsp;'.Str::title($parentcontent['alias']);\n $view .= '<div class=\"form-inline pull-right\">';\n $view .= '<a href=\"#\" onclick=\"addchildpages('.$parentcontent['pageid'].')\" data-toggle=\"modal\" style=\"margin-bottom:10px;margin-left:5px;\"><i class=\"icon-plus\"></i></a>';//<em><small>Add Sub Page</small></em>\n $view .= '<a href=\"#\" onclick=\"deletePage('.$parentcontent['pageid'].')\" style=\"margin-bottom:10px;margin-left:5px;\"><i class=\"icon-remove alert-error\"></i></a>';//<em><small>Remove Page</small></em>\n $view .= '</div>';\n $view .= Form::hidden('parent[]',$parentcontent['pageid']);\n $view .= '</li>';\n\n if(!empty($parentcontent['child'])){\n $view .= '<li ><ul id=\"sortchild\" class=\"nav nav-list connectedchild\" style=\"padding-right:0px\">';\n\n foreach ($parentcontent['child'] as $childkey => $childvalue) {\n\n $view .= '<li style=\"height:30px\" ><i class=\"icon-arrow-right\"></i>&nbsp;'.Str::title($childvalue['alias']);\n $view .= '<div class=\"form-inline pull-right\">';\n $view .= '<a href=\"#\" onclick=\"deletePage('.$childvalue['childid'].')\" style=\"margin-bottom:10px;margin-left:5px;\"><i class=\"icon-remove alert-error\"></i></a>';//<em><small>Remove Sub Page</small></em>\n $view .= '</div>';\n $view .= '</li>';\n\n }\n \n $view .= '</ul></li>';\n }\n\n }\n\n $view .= '</ul></li>';\n }\n $view .= '</ul></li>';\n \n }\n\n return $view;\n\n }", "title": "" }, { "docid": "7ab1e8f4f656dc6be5b802e40fe06c8c", "score": "0.5957356", "text": "protected function _navigationVisitorTabLinks2()\r\n\t{\r\n\t}", "title": "" }, { "docid": "2b109ab7492b71a59564a8af163d80d6", "score": "0.5886333", "text": "public function getNodes() {\nreturn $this->nodes;\n}", "title": "" }, { "docid": "614851fe076f04b3d5ab0fbc05f281e0", "score": "0.5877084", "text": "function govcms_parkes_menu_tree__global_navigation($variables) {\n return '<ul>' . $variables['tree'] . '</ul>';\n}", "title": "" }, { "docid": "275388fd1c5493952ae4841d113c3871", "score": "0.58680683", "text": "public function inorderTraverse(){\r\n\t\tif($this->left!==NULL){\r\n\t\t\t$this->left->inorderTraverse();\r\n\t\t}\r\n\t\techo $this->nodeValue.\"\\n\";\r\n\r\n\t\tif($this->right!==NULL){\r\n\t\t\t$this->right->inorderTraverse();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e51e238265835119ea102107ae2f3686", "score": "0.5841151", "text": "private function getSubnavigationItems() {\n $root = $this->rootUp($this->id);\n return $this->children(new Page($root));\n }", "title": "" }, { "docid": "4255848789e38b6446fe0e978cc99f5d", "score": "0.58397377", "text": "function tab_extend_navigation($navigation, $course, $module, $cm) {\n /**\n * This is currently just a stub so that it can be easily expanded upon.\n * When expanding just remove this comment and the line below and then add\n * you content.\n */\n $navigation->nodetype = navigation_node::NODETYPE_LEAF;\n}", "title": "" }, { "docid": "feff4ca40dcce787c7060b73070dd1ac", "score": "0.5828035", "text": "function showMenu($currentPage,$lang)\n{\n $db = readDatabase(\"./menus.xml\");\n echo \"<div class=\\\"menu\\\">\\n\";\n echo \"<ul>\\n\";\n $fsm_inFolder = 0;\n for ($i = 0 ; $i< count($db); $i++) {\n if ($db[$i]->getValid() == \"1\") {\n // if (root folder)&(not first item)&(not yet in a folder)\n if (($db[$i]->getRank() == 0)&& ($i!=0)&& ($fsm_inFolder == 0)) {\n echo \"</li>\\n\";\n }\n \n //if (node not in root folder) and (not yet in a folder)\n //ie: first step in a folder\n if (($db[$i]->getRank() != 0) && ($fsm_inFolder == 0)) {\n $fsm_inFolder = 1;\n echo \"\\n<ul>\\n\";\n }\n \n //if (node in root folder) and (already in a folder)\n //ie: Go back to root folder\n if (($db[$i]->getRank() == 0) && ($fsm_inFolder == 1)) {\n $fsm_inFolder = 0;\n $father = \"\";\n echo \"\\n</ul>\\n</li>\\n\";\n }\n echo \"\\t<li><a href=\\\"?page=\";\n echo $db[$i]->getName();\n \n //If current node is already displayed\n if ($db[$i]->getName() == $currentPage) {\n echo \"&amp;lang=$lang\\\" class=\\\"current\\\">\";\n } else {\n echo \"&amp;lang=$lang\\\">\";\n }\n echo $db[$i]->getText();\n echo \"</a>\";\n if ($fsm_inFolder == 1) {\n echo \"</li>\";\n }\n echo \"\\n\";\n }\n }\n if ($fsm_inFolder == 1) {\n echo \"</ul>\";\n }\n echo \"</li>\\n\";\n echo \"</ul>\\n\";\n echo \"</div>\\n\";\n}", "title": "" }, { "docid": "5234bedc1915c41bb0c43637c8db36de", "score": "0.577358", "text": "public function navigate();", "title": "" }, { "docid": "a7901955b11478d9509e6356e413f558", "score": "0.5760464", "text": "function getmenu() {\n Configure::write('debug', '0');\n // Se recibe el ID del nodo que se desea expandir\n\n $nodo = $_REQUEST[\"node\"];\n\n //Si el nodo a cargar es el principal, el id que se recibe es = root asi que lo cambio para acomodarlo a mi base de datos\n\n if ($nodo == 'root') {\n\n //buscamos todos los sistemas\n\n $sql = \"SELECT sis.sistema_id as id, sis.sistema_nombre as text, 'false' as leaf, '0' as parentId\n FROM sistemas sis ORDER BY sis.sistema_nombre\";\n\n }else {\n $datos=$this->tieneSesion();\n //buscamos las opciones del sistema\n if($datos['rol_id']!=0)\n $cons_rol=\" INNER JOIN rols_opcions rp ON rp.opcion_id=op.opcion_id AND rp.rol_id=\".$datos['rol_id'];\n else\n $cons_rol=\"\";\n\n $sql = \"SELECT op.opcion_id as id, op.opcion_nombre as text, op.leaf as leaf, op.opcion_padre as parentId,\n '../app/webroot/img/icons/' || op.opcion_icon || '.png' as icon, op.opcion_url as url, op.opcion_icon as icontab\n FROM sistemas sis\n INNER JOIN opciones op ON op.sistema_id=sis.sistema_id\n $cons_rol\n WHERE op.leaf=false AND op.opcion_padre=$nodo ORDER BY op.opcion_nombre\";\n $consulta = $this->Sistema->query($sql);\n $cadena = Set::extract($consulta, '{n}.0');\n if(count($cadena)==0) {\n\n\n\n $sql=\"SELECT op.opcion_id as id, op.opcion_nombre as text, op.leaf as leaf, op.opcion_padre as parentId,\n '../app/webroot/img/icons/' || op.opcion_icon || '.png' as icon, op.opcion_url as url, op.opcion_icon as icontab\n\n FROM opciones op\n $cons_rol\n WHERE op.leaf=true AND op.opcion_padre=$nodo ORDER BY op.opcion_nombre\";\n }\n\n\n }\n\n\n // echo $sql;exit;\n $consulta = $this->Sistema->query($sql);\n $cadena = Set::extract($consulta, '{n}.0');\n echo '{modulos:' . json_encode($cadena) . '}';\n $this->render('eventos/getmenu');\n }", "title": "" }, { "docid": "b3abe2e7214702d63bef38bbc97b23cf", "score": "0.57595396", "text": "function local_adsafe_extend_navigation(global_navigation $nav) {\n $parentnode = navigation_node::create(\n get_string('churchoreventnav', 'local_adsafe'),\n null,\n navigation_node::TYPE_CUSTOM,\n null,\n null,\n new pix_icon('i/folder', ''));\n\n /*if (has_capability('local/evtp:manage', context_system::instance())) {\n $listurl = new moodle_url('/local/evtp/templateplanlist.php');\n $listnode = navigation_node::create(\n get_string('templateplanlist', 'local_evtp'),\n $listurl,\n navigation_node::NODETYPE_LEAF,\n null,\n null,\n new pix_icon('i/settings', ''));\n $parentnode->add_node($listnode);\n }*/\n\n $newaccounturl = new moodle_url('/local/adsafe/churchoreventlist.php');\n $newaccountnode = navigation_node::create(\n get_string('myaccount', 'local_adsafe'),\n $newaccounturl,\n navigation_node::NODETYPE_LEAF,\n null,\n null,\n new pix_icon('i/settings', ''));\n $parentnode->add_node($newaccountnode);\n\n $codashboardurl = new moodle_url('/local/adsafe/coordinatordashboardlist.php');\n $codashboardnode = navigation_node::create(\n get_string('coordinatordashboard', 'local_adsafe'),\n $codashboardurl,\n navigation_node::NODETYPE_LEAF,\n null,\n null,\n new pix_icon('t/groupv', ''));\n $parentnode->add_node($codashboardnode);\n\n /*$searchurl = new moodle_url('/local/evtp/plansearch.php');\n $searchnode = navigation_node::create(\n get_string('trainingplansearch', 'local_evtp'),\n $searchurl,\n navigation_node::NODETYPE_LEAF,\n null,\n null,\n new pix_icon('i/settings', ''));\n $parentnode->add_node($searchnode);*/\n\n $nav->add_node($parentnode);\n}", "title": "" }, { "docid": "c08371227344bca70b3d311ddac4d0ea", "score": "0.5701737", "text": "function output_nav(){\n// $pages = G3n1us\\Editor\\Page::where('path', 'not like', '%/%')->get();\n $pages = G3n1us\\Editor\\Page::whereNull('parent_page_id')\n ->where('metadata->hidden_from_nav', '!=', \"1\")\n ->orWhereNull('metadata')\n ->get();\n return $pages;\n }", "title": "" }, { "docid": "9a429377d41bcfc21db35b12d3ef3397", "score": "0.56680983", "text": "public function getNav() {\n return $this->where('pid=0')->order('sort asc')->select();\n }", "title": "" }, { "docid": "d7186142661ef2b9f30ec49c7f71ee62", "score": "0.56544507", "text": "public function setNavigateHierarchy($val);", "title": "" }, { "docid": "50a28e81ceef3c3a63ea6084e1b0c20f", "score": "0.5651344", "text": "public static function menu(){\r\n $sql = \"select * from categorie where id_parent = 1 AND ORDER BY ordre\";\r\n $parents = DB::get_sql_tab($sql);\r\n for($i=0;$i<count($parents);$i++) {\r\n $sql2 = \"select * from categorie where id_parent = '\".$parents[$i][\"id\"].\"'\";\r\n $enfants = DB::get_sql_tab($sql2);\r\n $parents[$i][\"enfants\"] = $enfants;\r\n }\r\n return $parents;\r\n }", "title": "" }, { "docid": "c50f7295201a1926da8d7aeb9de4810c", "score": "0.5638048", "text": "function displayTree()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$roleId = \\FATS\\Application\\ObjectManager::getContextUser()->role;\n\n\t\t\tif (!isset($roleId))\n\t\t\t{\n\t\t\t\tthrow new \\Exception('Cannot display navigation tree for empty or missing role ID.');\n\t\t\t}\n\n\t\t\t$sql = $this->_database->prepare('SELECT node.*, (COUNT(parent.title) - 1) AS depth FROM faculty_documents_category AS node CROSS JOIN faculty_documents_category AS parent LEFT JOIN faculty_documents_access AS access ON node.id = access.faculty_documents_category_id WHERE node.lft BETWEEN parent.lft AND parent.rgt AND access.roles_id = ? GROUP BY node.id ORDER BY node.lft');\n\t\t\t$sql->execute(array($roleId));\n\n\t\t\t$result = $sql->fetchAll();\n\n\t\t\t$tree = array();\n\n\t\t\tforeach ($result as $row)\n\t\t\t{\n\t\t\t\t$tree[] = $row;\n\t\t\t}\n\n\t\t\t$html = '';\n\t\t\t$currentDepth = -1;\n\n\t\t\twhile (!empty($tree))\n\t\t\t{\n\t\t\t\tunset($sql, $result);\n\n\t\t\t\t$currentNode = array_shift($tree);\n\n\t\t\t\tif ($currentNode['depth'] > $currentDepth)\n\t\t\t\t{\n\t\t\t\t\tif ($currentDepth == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$html .= '<ul class=\"navigation-tree\">';\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$html .= '<ul>';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($currentNode['depth'] < $currentDepth)\n\t\t\t\t{\n\t\t\t\t\t$html .= str_repeat('</ul>', $currentDepth - $currentNode['depth']);\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * If the current node has children, add a CSS class to expand/collapse it\n\t\t\t\t */\n\t\t\t\t$sql = $this->_database->prepare('SELECT COUNT(*) AS cnt FROM faculty_documents_category WHERE parent_id = ?');\n\t\t\t\t$sql->execute(array($currentNode['id']));\n\t\t\t\t$result = $sql->fetchColumn();\n\n\t\t\t\t$class = '';\n\t\t\t\t$icon = '';\n\n\t\t\t\tif (intval($result) > 0)\n\t\t\t\t{\n\t\t\t\t\t$class = ' class=\"navigation-toggle collapsed\"';\n\t\t\t\t\t$icon = '<span class=\"icon-toggle-nav\"></span>';\n\t\t\t\t}\n\n\t\t\t\t$title = $currentNode['title'];\n\n\t\t\t\tif (strtolower($title) == 'root')\n\t\t\t\t{\n\t\t\t\t\t$faculty = \\FATS\\Application\\ObjectManager::getContextFaculty();\n\t\t\t\t\t$title = $faculty->name;\n\t\t\t\t\t$class = ' class=\"navigation-toggle\"';\n\t\t\t\t}\n\n\t\t\t\t$html .= '<li class=\"navigation-item\" data-id=\"' . $currentNode['id'] . '\" data-parent=\"' . $currentNode['parent_id'] . '\" data-lft=\"' . $currentNode['lft'] . '\" data-rgt=\"' . $currentNode['rgt'] . '\">' . $icon . '<a' . $class . ' href=\"#\">' . $title . '</a>';\n\t\t\t\t$currentDepth = $currentNode['depth'];\n\n\t\t\t\tif (empty($tree))\n\t\t\t\t{\n\t\t\t\t\t$html .= str_repeat('</li></ul>', $currentDepth + 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $html;\n\t\t}\n\t\tcatch (\\Exception $x)\n\t\t{\n\t\t\t$this->setState(new \\FATS\\BLL\\LogEntry(\\FATS\\Diagnostics\\LogOperation::READ, \\FATS\\Diagnostics\\LogLevel::ERROR, \"Failed to display navigation tree : {$x->getMessage()}\"));\n\t\t\ttrigger_error($x->getMessage(), E_USER_ERROR);\n\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.56205565", "text": "public function links();", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.56205565", "text": "public function links();", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.56205565", "text": "public function links();", "title": "" }, { "docid": "04ed9bbd6a53abac15f3bd5602443645", "score": "0.5573396", "text": "function rabp_genesis_site_nav() {\n\tgconnect_site_nav();\n}", "title": "" }, { "docid": "5b7e6ec3aa73e0a4b506f0097abe0453", "score": "0.5565692", "text": "function getNavigationStructure()\n {\n $aTree = array();\n $aModules = SGL_Util::getAllModuleDirs(true);\n foreach ($aModules as $dirName) {\n $structureFile = SGL_MOD_DIR . '/' . $dirName . '/data/navigation.php';\n if (!file_exists($structureFile)) {\n continue;\n }\n include $structureFile;\n // skip if no sections were defined\n if (empty($aSections) || !is_array($aSections)) {\n continue;\n }\n\n $rootId = $parentId = null;\n foreach ($aSections as $aSection) {\n ArrayDriver::_simplifyNode($aSection);\n\n $parentId = $aSection['parent_id'];\n unset($aSection['parent_id']);\n\n // find root ID and assign relevant node ID to current node\n if (empty($rootId) || $parentId != SGL_NODE_GROUP) {\n $rootId = $parentId;\n $parentNodeId = ArrayDriver::_getNextNodeId($aTree[$rootId]);\n $aNode = &$aTree[$rootId][$parentNodeId];\n\n // assign relevant node ID to current node\n // under current parent node ID\n } else {\n $nodeId = ArrayDriver::_getNextNodeId(\n $aTree[$rootId][$parentNodeId]['sub']);\n $aNode = &$aTree[$rootId][$parentNodeId]['sub'][$nodeId];\n }\n\n // process subtrees populating proper node IDs\n ArrayDriver::_populateNodeIds($aSection);\n\n $aNode = $aSection;\n }\n unset($aSections);\n }\n return $aTree;\n }", "title": "" }, { "docid": "92433adaefbbb79cd87e9fd031241e58", "score": "0.55607456", "text": "public function nevigationTree()\n {\n // set setting when show the categories in menu\n $categoryPlacement = getStoreSettings('categories_menu_placement');\n $this->categoryPlacement = $categoryPlacement = ($categoryPlacement == 2 or $categoryPlacement == 3) ? $categoryPlacement : false;\n\n // set setting when show the brands in menu\n $brandsPlacement = getStoreSettings('brand_menu_placement');\n $this->brandsPlacement = $brandsPlacement = ($brandsPlacement == 2 or $brandsPlacement == 3) ? $brandsPlacement : false;\n\n // page object\n $object = $this->getPages();\n\n // if conditionally the categories show in menu is true the categories object Marge in continue pass object\n // if not the object pass to next process\n $object = __ifIsset($categoryPlacement,\n collect($object->toArray())->merge($this->getCategories()),\n collect($object->toArray())\n );\n\n // if conditionally the brand show in menu is true the brand object marge in continue pass object\n // if not the object pass to next process\n $object = __ifIsset($brandsPlacement,\n collect($object->toArray())->merge($this->getBrands()),\n collect($object->toArray())\n );\n\n return $this->buildTree($object, null);\n }", "title": "" }, { "docid": "d4fd8d197fd9f70fd57d79218a6e22c5", "score": "0.5534749", "text": "abstract public function addNodes();", "title": "" }, { "docid": "24dc1b580e9e7dd9e75e8970b2c4d6c0", "score": "0.5528091", "text": "public function navigation_tree() {\n\n $folders = FileManagerFolder::with('folders:id,parent_id,unique_id,name')\n ->where('parent_id', 0)\n ->where('user_id', Auth::id())\n ->get(['id', 'parent_id', 'unique_id', 'name']);\n\n return [\n [\n 'unique_id' => 0,\n 'name' => __('vuefilemanager.home'),\n 'location' => 'base',\n 'folders' => $folders,\n ]\n ];\n }", "title": "" }, { "docid": "a8a71b041c418cc6e991363f4b1985b8", "score": "0.55164295", "text": "function mynotebook_extends_navigation(global_navigation $navigation) {\n\nrequire_once(dirname(dirname(dirname(__FILE__))).'/config.php');\n\nglobal $CFG;\n\n$url = new moodle_url($CFG->wwwroot.'/local/mynotebook/view.php');\n\n//Adds the makenote plugin under \"Navigation\" block\n$node = $navigation->add('MyNotebook', $url);\n\n//Force node to open on display\n$node->forceopen = false;\n\n}", "title": "" }, { "docid": "9357312f75f53c68bef192bc6db359ed", "score": "0.5513203", "text": "public function getChildNodes() {}", "title": "" }, { "docid": "b6e519286719c46133ea02b837d61054", "score": "0.5479884", "text": "protected function _forumListNodes()\r\n\t{\r\n\t}", "title": "" }, { "docid": "61de07817e79f02ca4ae2510c9214ae7", "score": "0.5478841", "text": "public function bookTreeCollectNodeLinks(&$tree, &$node_links);", "title": "" }, { "docid": "e168832cd7c72ccabbdb26866df42957", "score": "0.5470117", "text": "function showNavigation($lesson) {\n $previous = getLessonInfo($lesson, false);\n $next = getLessonInfo($lesson, true);\n?>\n\n<div style=\"text-align: center;\">\n<?php\n if ($previous) {\n?> \n <a href=\"index.php?page=lessons&lesson=<?php echo $previous[\"lessonid\"] ?>\">&lt;= <b><?php echo $previous[\"name\"] ?></b> předchozí lekce</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<?php\n }\n \n if ($next) {\n?> \n <a href=\"index.php?page=lessons&lesson=<?php echo $next[\"lessonid\"] ?>\">následující lekce <b><?php echo $next[\"name\"] ?></b> =&gt;</a>\n<?php\n }\n?>\n</div>\n\n<?php\n }", "title": "" }, { "docid": "7c949d14afe01ec8dc93da345b6a7b26", "score": "0.54683954", "text": "function showTinyMenu($currentPage,$lang)\n{\n $db = readDatabase(\"./menus.xml\");\n \n echo \"<nav class=\\\"tab-bar show-for-small\\\">\\n\";\n echo \"<section class=\\\"left-small\\\">\\n\";\n echo \"<a class=\\\"left-off-canvas-toggle menu-icon\\\"><span></span></a>\\n\";\n echo \"</section>\\n\";\n echo \"<section class=\\\"middle tab-bar-section\\\">\\n\";\n echo \"<h1 class=\\\"title\\\">Viveris Technologies</h1>\\n\";\n echo \"</section>\\n\";\n echo \"<section class=\\\"right-small\\\">\\n\";\n echo \"<a class=\\\"right-off-canvas-toggle menu-icon\\\"><span></span></a>\\n\";\n echo \"</section>\\n\";\n echo \"</nav>\\n\";\n echo \"<aside class=\\\"left-off-canvas-menu\\\">\\n\";\n echo \"<ul class=\\\"off-canvas-list\\\">\\n\";\n\n $fsm_inFolder = 0;\n $bool_label = false;\n for ($i = 0 ; $i< count($db); $i++) {\n if ($db[$i]->getValid() == \"1\") {\n\n //if (node in root folder) and (not yet in a folder)\n if (($db[$i]->getRank() == 0) && ($fsm_inFolder == 0)) {\n echo \"\\t<li><label>\";\n $bool_label = true;\n } else {\n echo \"\\t<li>\";\n }\n echo \"<a href=\\\"?page=\";\n echo $db[$i]->getName();\n \n //If current node is already displayed\n if ($db[$i]->getName() == $currentPage) {\n echo \"&amp;lang=$lang\\\" class=\\\"current\\\">\";\n } else {\n echo \"&amp;lang=$lang\\\">\";\n }\n echo $db[$i]->getText();\n echo \"</a>\";\n if ($bool_label) {\n echo \"</label>\";\n $bool_label = false;\n }\n echo \"</li>\\n\";\n if ($fsm_inFolder == 1) {\n echo \"\\n\\t<li class=\\\"divider\\\"></li>\\n\";\n }\n }\n }\n echo \"</ul>\\n</aside>\\n\";\n echo \"<aside class=\\\"right-off-canvas-menu\\\">\\n\";\n include \"./gauche.html\";\n echo \"\\n</aside>\\n\"; \n}", "title": "" }, { "docid": "664f6b2015e880de7e17b32667d80ef4", "score": "0.54606044", "text": "function opc_stree($data){\n parent::opc_dnarray($data);\n $this->vis_init();\n }", "title": "" }, { "docid": "e94e5b3277dbf16f2722232d751aa2d8", "score": "0.54600596", "text": "function GetNavigation()\n\t{\n\t\t$dirs = explode('/', $this->dir);\n $list = array();\n \n\t\t$linksPath = '';\n\n\t\tforeach ($dirs as $dir)\n\t\t{\n\t\t\tif (strlen($dir)&& $dir!='..')\n\t\t\t{\n\t\t\t\t$linksPath .= $dir.'/';\n\t\t\t\t$list[] = array(\n \t\t\t\t'link_name' => $dir,\n \t\t\t\t'link_dir_path' => $linksPath,\n \t\t\t\t'type' => $this->GetDirectoryType($linksPath)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "dc86dfe4a0b09c665c2d8a2955fcdfd5", "score": "0.5459813", "text": "function registerNavigation() {\n\t\t\n\t\t$this->addNavigationLinkInSubGroup( 'Content', 'base.reportDomstreams', 'Domstreams', 5);\n\t}", "title": "" }, { "docid": "821a761872338c4f3d27c732245936ec", "score": "0.5433488", "text": "function drupal_streamline_theme_menu_tree($vars) {\n return '<ul class=\"nav navbar-nav\">' . $vars['tree'] . '</ul>';\n}", "title": "" }, { "docid": "708750c349104eea90ee98643d4d69ca", "score": "0.54256296", "text": "function menu_tree_collect_node_links(&$tree, &$node_links) {\n foreach ($tree as $key => $v) {\n if ($tree[$key]['link']['router_path'] == 'node/%') {\n $nid = substr($tree[$key]['link']['link_path'], 5);\n if (is_numeric($nid)) {\n $node_links[$nid][$tree[$key]['link']['mlid']] = &$tree[$key]['link'];\n $tree[$key]['link']['access'] = FALSE;\n }\n }\n if ($tree[$key]['below']) {\n menu_tree_collect_node_links($tree[$key]['below'], $node_links);\n }\n }\n}", "title": "" }, { "docid": "bc5e868426c6171ba908d5d789e595d7", "score": "0.54189634", "text": "function setNavigation() {\n\n $li_items_l = array();\n if ($this->page_depth > 0) {\n $markdown_sliced = array_slice(array_values($this->markdown_parts), 0, -1);\n $back_url = BASE_PATH . join('/', $markdown_sliced);\n $li_items_l[] = '<li id=\"back\">'\n . sprintf('<a href=\"%s\" title=\"back\">«</a>', $back_url)\n . '</li>'\n ;\n }\n else {\n $li_items_l[] = '<li></li>';\n }\n\n $li_items_r = array();\n\n // Set the social media stuff.\n if (!empty($this->social_media_info)) {\n foreach ($this->social_media_info as $social_media_key => $social_media_value) {\n $li_items_r[] = sprintf('<li id=\"%s\">', $social_media_key)\n . sprintf('<a href=\"%s\" title=\"%s\">%s %s</a>', $social_media_value['url'], $social_media_value['description'], $social_media_value['short_name'], $social_media_value['emoji'])\n . '</li>'\n ;\n }\n }\n\n if (!empty($li_items_l)) {\n $content_l = sprintf('<ul>%s</ul>', implode('', $li_items_l));\n }\n\n if (!empty($li_items_r)) {\n $content_r = sprintf('<ul>%s</ul>', implode('', $li_items_r));\n }\n\n $div_l = '';\n if (!empty($content_l)) {\n $div_l = '<div class=\"Left\">'\n . $content_l\n . '</div><!-- .Left -->'\n ;\n }\n\n $div_r = '';\n if (!empty($content_r)) {\n $div_r = '<div class=\"Right\">'\n . $content_r\n . '</div><!-- .Right -->'\n ;\n }\n\n $ret = '';\n if (!empty($content_l) || !empty($content_r)) {\n $ret = '<div class=\"Navigation\">'\n . $div_l\n . $div_r\n . '</div><!-- .Navigation -->'\n ;\n }\n\n return $ret;\n\n }", "title": "" }, { "docid": "151e7f30afff4f279e7138196d6113dc", "score": "0.54074824", "text": "private function _build_nav($tagdata, $taxonomy, $params)\n\t{\n\t\t\n\t\t$tree_id = ee()->taxonomy->tree_id;\n\n\t\t// filter out nodes we don't want from this level\n\t\t$taxonomy = $this->_pre_process_level($taxonomy, $params);\n\n\t\t// flag subsequent requests to this method as false.\n\t\t$params['first_pass'] = FALSE;\n\n\t\t$level_count = 1;\n\t\t$level_total_count = count($taxonomy);\n\t\t$str = '';\n\t\t// pre-process the nodes here to make sure they are the ones we want.\n\t\t// loop into each node on this level\n\t\tforeach($taxonomy as $node)\n \t{\t\n\n \t\tif($level_count == 1 && $params['include_ul'] == 'yes' && $params['style'] == 'nested') \n\t\t\t{\n\n\t\t\t\tif(isset($params['ul_css_id:level_'.$node['level']]) && $params['ul_css_id:level_'.$node['level']] != '')\n\t\t\t\t{\n\n\t\t\t\t\t$params['ul_css_id'] = $params['ul_css_id:level_'.$node['level']];\n\t\t\t\t}\n\n\t\t\t\tif(isset($params['ul_css_class:level_'.$node['level']]) && $params['ul_css_class:level_'.$node['level']] != '')\n\t\t\t\t{\n\t\t\t\t\t$params['ul_css_class'] = $params['ul_css_class:level_'.$node['level']];\n\t\t\t\t}\n\n\t\t\t\t$ul_css_id = ($params['ul_css_id'] != '') ? ' id=\"'.$params['ul_css_id'].'\"' : '';\n\t\t\t\t$ul_css_class = ($params['ul_css_class'] != '') ? ' class=\"'.$params['ul_css_class'].'\"' : '';\n\t\t\t\t$str = \"\\n<\".$params['list_type'].$ul_css_id.$ul_css_class.'>';\n\n\t\t\t\t// reset outer parameters.\n\t\t\t\t$params['ul_css_class'] = $params['ul_css_id'] = '';\n\n\t\t\t}\n \t\t// set the default vars\n \t\t$vars = $this->node_vars;\n\n \t\tif(isset($this->cache['trees'][$tree_id]['nodes']['by_node_id'][ $node['id'] ]))\n \t\t{\n \t\t\t// get the node attributes\n \t\t\t$att = $this->cache['trees'][$tree_id]['nodes']['by_node_id'][ $node['id'] ];\n\n \t\t\t$active = '';\n \t\t\t$active_parent = '';\n\n \t\t\t// flag the active class\n \t\t\tif($params['entry_id'] != '' && $params['entry_id'] != \"{entry_id}\") // there's always some tit.\n \t\t\t{\n \t\t\t\tif( $att['entry_id'] == $params['entry_id'] )\n \t\t\t\t{\n \t\t\t\t\t$active = 'active';\n \t\t\t\t}\n \t\t\t}\n \t\t\telseif($att['node_id'] == $params['node_id'])\n \t\t\t{\n \t\t\t\t$active = 'active';\n \t\t\t} \n\n \t\t\tif(in_array($att['node_id'], $params['parents']))\n \t\t\t{\n \t\t\t\t$active_parent = 'active_parent';\n \t\t\t}\n\n \t\t\t$vars = array(\n \t\t\t\t'tree_label' => $this->cache['trees'][$tree_id]['label'],\n \t\t\t\t'tree_name' => $this->cache['trees'][$tree_id]['name'],\n \t\t\t\t'tree_id' => $tree_id,\n\t\t\t\t\t'node_id' => $att['node_id'],\n\t\t\t\t\t'node_title' => $att['label'],\n\t\t\t\t\t'node_url' => $att['url'],\n\t\t\t\t\t'node_uri' => str_replace(ee()->functions->fetch_site_index(), '', $att['url']),\n\t\t\t\t\t'node_active' => $active,\n\t\t\t\t\t'node_active_parent' => $active_parent,\n\t\t\t\t\t'node_active_class' => ($active) ? $active : $active_parent,\n\t\t\t\t\t'node_lft' => $att['lft'],\n\t\t\t\t\t'node_rgt' => $att['rgt'],\n\t\t\t\t\t'node_entry_id' => $att['entry_id'],\n\t\t\t\t\t'node_custom_url' => $att['custom_url'],\n\t\t\t\t\t// 'node_field_data' => $att['field_data'],\n\t\t\t\t\t'node_entry_title' => $att['title'],\n\t\t\t\t\t'node_entry_url_title' => $att['url_title'],\n\t\t\t\t\t'node_entry_status' => $att['status'],\n\t\t\t\t\t'node_entry_entry_date' => $att['entry_date'],\n\t\t\t\t\t'node_entry_expiration_date' => $att['expiration_date'],\n\t\t\t\t\t'node_entry_template_name' => '', // @todo\n\t\t\t\t\t'node_entry_template_group_name' => '', // @todo\n\t\t\t\t\t'node_has_children' => (isset($node['children'])) ? 'yes' : 0,\n\t\t\t\t\t'node_next_child' => $att['lft']+1,\n\t\t\t\t\t'node_level' => $node['level'],\n\t\t\t\t\t'node_level_count' => $level_count,\n\t\t\t\t\t'node_level_total_count' => $level_total_count,\n\t\t\t\t\t'node_indent' => str_repeat(' ', $level_count),\n\t\t\t\t\t'node_count' => ee()->session->cache['taxonomy_node_count']++,\n\t\t\t\t\t'children' => '',\n\t\t\t\t\t'node_previous_level' => ee()->session->cache['taxonomy_node_previous_level'],\n\t\t\t\t\t'node_previous_level_diff' => ee()->session->cache['taxonomy_node_previous_level'] - $node['level']\n\t\t\t\t);\n\n\n\t\t\t\tee()->session->cache['taxonomy_node_previous_level'] = $node['level'];\n\t\t\t\t\n\t\t\t\t// add our default field values\n\t\t\t\t$vars += $params['field_keys'];\n\n\t\t\t\t// if values exist, swap 'em out\n\t\t\t\tif($att['field_data'] != '' && is_array($att['field_data']))\n\t\t\t\t{\n\t\t\t\t\tforeach($att['field_data'] as $key => $field)\n\t\t\t\t\t{\n\t\t\t\t\t\t$vars[$key] = $field;\n\t\t\t\t\t}\n\t\t\t\t}\n\n \t\t}\n\n \t\t// have we got children, go through this method recursively\n \t\tif((isset($node['children'])))\n \t\t{\t\n \t\t\tee()->TMPL->log_item(\"TAXONOMY:NAV: processing child nodes\");\n \t\t\t$vars['children'] = $this->_build_nav($tagdata, $node['children'], $params);\n \t\t}\n \t\t\n \t\t// swappy swappy\n \t\t$tmp = ee()->functions->prep_conditionals($tagdata, $vars);\n \t\t$str .= ee()->functions->var_swap($tmp, $vars);\n\n \t\t// close out our list\n \t\tif($level_count == $level_total_count && $params['include_ul'] == 'yes' && $params['style'] == 'nested') \n\t\t\t{\n\t\t\t\t$str .= \"\\n</\".$params['list_type'].'>';\n\t\t\t}\n\n\t\t\t$level_count++;\n\n\n \t}\n\n \t// et voila\n\t\treturn $str;\n\n\t}", "title": "" }, { "docid": "aa47cb15893c9b1edc8367628303ca05", "score": "0.5402679", "text": "static public function navigation($dom_doc){\n\t\t$body_element = DOMParser::body_element($dom_doc);\n\t\t$navigation_element = DOMParser::dom_node_by_name_and_attribute($body_element,\"div\",\"id\",\"navigation\");\n\t\t$ul_element = $navigation_element->getElementsByTagName('ul')->item(0);\n\t\t$menu_titles = array(\"projects\",\"news\",\"about\",\"contact\");\n\t\tforeach($menu_titles as $menu_title){\n\t\t\t$link_element = DOMParser::list_link($dom_doc,ucfirst($menu_title),\"/\".$menu_title.\"/\");\n\t\t\t$ul_element->appendChild($link_element);\n\t\t}\n\t\t/*set current list link in nav to bold*/\n\t\tif(ArrayAsserter::any(basename(getcwd()),$menu_titles)){/*emphasize only pages that are in the menu*/\n\t\t\tDOMModifier::emphasize_list_link($dom_doc,ucfirst(basename(getcwd())));/*derive Contact from the document name then uppercase etc*/\n\t\t}\n\t\treturn $navigation_element;\n\t}", "title": "" }, { "docid": "7065c7b22d75bcdd25b0f1d13052e4e7", "score": "0.53989434", "text": "public function links(){\n }", "title": "" }, { "docid": "95a5ce958894d99c767603a4a75579a8", "score": "0.5396298", "text": "private static function loadNavigationFromDB()\n {\n return app(MenuRepository::class)->allParentsWithChildren();\n }", "title": "" }, { "docid": "eea439086f55e280a957b3b3196d3d09", "score": "0.53904426", "text": "public function index()\n {\n $nodes_parent = DB::select('Select * from relations INNER JOIN nodes ON nodes.id = relations.parent_node');\n\n return view('relations.index')->with('nodes_parent', $nodes_parent);\n }", "title": "" }, { "docid": "7e96326c7490c0b7c9fc87ae82030ba0", "score": "0.53902346", "text": "function getNodePath($mysqli,$nodes){\n foreach ($nodes as $node) {\n $lft=intval($node[2]);\n $rgt=intval($node[3]);\n }\n $sql=\"select name from root where lft <=\".$lft .\" and rgt >=\".$rgt.\" order by lft asc\";\n $res=$mysqli->query($sql);\n $rows=$res->fetch_all();\n $path='';\n foreach($rows as $row){\n $path.=$row[0].\" \";\n }\n return $path;\n}", "title": "" }, { "docid": "5bc3da93879b35d0c27e634160924faf", "score": "0.53896177", "text": "public function gettree()\n {\n echo $this->preTree();\n parent::gettree();\n echo self::$postTree;\n }", "title": "" }, { "docid": "120a75ed6c89598118f1fb759b0fe207", "score": "0.53842926", "text": "function getMenuNodes_main($menuNodesObject)\n{\n\t$menuNodesObject->menuNodes[\"main\"] = array();\n\t\t\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"1\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"conference\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Conference\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"2\";\n\t$menuNode[\"name\"] = \"PAPER\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"PAPER\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"3\";\n\t$menuNode[\"name\"] = \"Paper Pending\";\n\t$menuNode[\"href\"] = \"mypage.htm \";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"paper\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"q=(paperStatus~notequal~FP-OK)\";\n\t$menuNode[\"parent\"] = \"2\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Paper Pending\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"4\";\n\t$menuNode[\"name\"] = \"Paper Completed\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"paper\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"q=(paperStatus~equal~FP-OK)\";\n\t$menuNode[\"parent\"] = \"2\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Paper Completed\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"5\";\n\t$menuNode[\"name\"] = \"PARTICIPANT\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"PARTICIPANT\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"6\";\n\t$menuNode[\"name\"] = \"Presenter\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"participate\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"5\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Presenter\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"7\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"listener\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"5\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Listener\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"8\";\n\t$menuNode[\"name\"] = \"FOLLOW UP\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"FOLLOW UP\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"9\";\n\t$menuNode[\"name\"] = \"Request User to Participate\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"followup_user\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"8\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Request User to Participate\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"10\";\n\t$menuNode[\"name\"] = \"Request Abstract from Participant\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"followup_abstract\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"8\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Request Abstract from Participant\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"11\";\n\t$menuNode[\"name\"] = \"Request Payment from Presenter\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"followup_payment\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"8\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Request Payment from Presenter\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"12\";\n\t$menuNode[\"name\"] = \"Request Payment for FullPaper Review\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"followup_payment_fullPaper\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"8\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Request Payment for FullPaper Review\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"13\";\n\t$menuNode[\"name\"] = \"Request Full Paper\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"followup_full_paper\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"8\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Request Full Paper\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"14\";\n\t$menuNode[\"name\"] = \"PROCESS\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"PROCESS\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"15\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"inviteLetter\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"14\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Invite Letter\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"16\";\n\t$menuNode[\"name\"] = \"Payment\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"payments\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"14\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Payment\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"17\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"slot\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"14\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Slot\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"18\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"certificate\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"14\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Certificate\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"19\";\n\t$menuNode[\"name\"] = \"WEBSITE\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"WEBSITE\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"20\";\n\t$menuNode[\"name\"] = \"Slider\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"webslider\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"19\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Slider\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"21\";\n\t$menuNode[\"name\"] = \"Partner\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"conpartner\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"19\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Partner\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"22\";\n\t$menuNode[\"name\"] = \"STATISTIC\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"STATISTIC\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"23\";\n\t$menuNode[\"name\"] = \"User\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"graph_user\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"22\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"Chart\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"User\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"24\";\n\t$menuNode[\"name\"] = \"Participant\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"graph_participate\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"22\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"Chart\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Participant\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"25\";\n\t$menuNode[\"name\"] = \"Presenter\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"graph_presenter\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"22\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"Chart\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Presenter\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"26\";\n\t$menuNode[\"name\"] = \"SETTING\";\n\t$menuNode[\"href\"] = \"\";\n\t$menuNode[\"type\"] = \"Group\";\n\t$menuNode[\"table\"] = \"\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"0\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"None\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"SETTING\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"27\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"quote\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Quote\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"28\";\n\t$menuNode[\"name\"] = \"Setting\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"set_cat\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Setting\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"29\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"company\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Company\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"30\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"set_fee\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Set Fee\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"31\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"user\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"User\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n\t$menuNode = array();\n\t$menuNode[\"id\"] = \"32\";\n\t$menuNode[\"name\"] = \"\";\n\t$menuNode[\"href\"] = \"mypage.htm\";\n\t$menuNode[\"type\"] = \"Leaf\";\n\t$menuNode[\"table\"] = \"testmail\";\n\t$menuNode[\"style\"] = \"\";\n\t$menuNode[\"params\"] = \"\";\n\t$menuNode[\"parent\"] = \"26\";\n\t$menuNode[\"nameType\"] = \"Text\";\n\t$menuNode[\"linkType\"] = \"Internal\";\n\t$menuNode[\"pageType\"] = \"List\";//\n\t$menuNode[\"openType\"] = \"None\";\n\t$menuNode[\"title\"] = \"Testmail\";\n\t$menuNodesObject->menuNodes[\"main\"][] = $menuNode;\n}", "title": "" }, { "docid": "7a7f7e51ec8b44f61e8ebc87419863d1", "score": "0.5377355", "text": "function as_navigation() {\t\n\t\t$as_nav_items = array();\t\t\t\t\t\n\t\t$myaccount = isset( $_SESSION['appsmata_account'] ) ? $_SESSION['appsmata_account'] : null;\n\t\tif ($myaccount){ \n\t\t\t/*$as_nav_items['client_all']=array(\n\t\t\t\t'label' => 'Clients',\n\t\t\t\t'url' => 'index.php?action=client_all',\n\t\t\t);*/\n\t\t\t$as_nav_items['payment_all']=array(\n\t\t\t\t'label' => 'Orders',\n\t\t\t\t'url' => 'index.php?action=payment_all',\n\t\t\t);\n\t\t\t$as_nav_items['user_all']=array(\n\t\t\t\t'label' => 'Waiters',\n\t\t\t\t'url' => 'index.php?action=user_all',\n\t\t\t);\n\t\t\n\t\t} else {\n\t\t\t$as_nav_items['forgot_password']=array(\n\t\t\t\t'label' => 'Forgot Password',\n\t\t\t\t'url' => 'index.php?action=forgot_password',\n\t\t\t);\n\t\t\t$as_nav_items['forgot_username']=array(\n\t\t\t\t'label' => 'Forgot Username',\n\t\t\t\t'url' => 'index.php?action=forgot_username',\n\t\t\t);\n\t\t}\n\t\treturn $as_nav_items;\n\t}", "title": "" }, { "docid": "333143e1dd243b57e0d8e5cef4b510f7", "score": "0.53737676", "text": "function pods_navigation($uri = '/', $max_depth = 1)\n{\n $last_depth = -1;\n\n if ($menu = build_nav_array($uri, $max_depth))\n {\n foreach ($menu as $key => $val)\n {\n $uri = $val['uri'];\n $title = $val['title'];\n $depth = $val['depth'];\n $diff = ($depth - $last_depth);\n $last_depth = $depth;\n\n if (0 < $diff)\n {\n echo '<ul><li>';\n }\n elseif (0 > $diff)\n {\n for ($i = $diff; $i < 0; $i++)\n {\n echo '</li></ul></li>';\n }\n echo '<li>';\n }\n else\n {\n echo '</li><li>';\n }\n echo \"<a href='$uri'>$title</a>\";\n }\n\n for ($i = 0; $i <= $depth; $i++)\n {\n echo '</li></ul>';\n }\n }\n}", "title": "" }, { "docid": "f553c3388ee0dfc5157d3fa53ca777c2", "score": "0.5364108", "text": "private function createHtmlTree2($data) {\n echo Html::openTag('ul');\n foreach ($data as $node) {\n\n echo Html::openTag('li', array(\n 'id' => $this->id . 'Node_' . $node['id'],\n 'data-status' => $node['switch'],\n 'class' => ($node['switch']) ? '' : 'hiddenClass'\n ));\n echo Html::link(Html::encode($node->name));\n if ($node['hasChildren'] === true) {\n // echo Html::openTag('ul');\n $this->createHtmlTree($node['children']);\n // echo Html::closeTag('ul');\n }\n echo Html::closeTag('li');\n }\n echo Html::closeTag('ul');\n }", "title": "" }, { "docid": "33cb87fcbf6f07c6955ed2bdd12db035", "score": "0.53631526", "text": "function admintabs_default_navigation() {\r\n $menutree = menu_build_tree('management');\r\n $menu = array_shift($menutree);\r\n $admin = $menu['below'];\r\n $items = array();\r\n foreach ((array)$admin as $path => $rootmenu) {\r\n if (!empty($rootmenu['below'])) {\r\n $items['root'][$rootmenu['link']['mlid']] = theme('parent_tab', $rootmenu['link']);\r\n $items[$rootmenu['link']['mlid']] = theme('child_tab', $rootmenu['below']);\r\n }\r\n }\r\n if (isset($items['root'])) {\r\n $items['root'] = theme('item_list', array('items' => $items['root']));\r\n }\r\n return $items;\r\n}", "title": "" }, { "docid": "f79940ef9068ee90ab37d7a6905092e4", "score": "0.53300536", "text": "public function sitemgr_nav()\n {\n return [\n 'links' => [\n \t'Users' => '/users/users',\n \t'Permissions' => '/sitemgr/pages/permissions',\n \t'divider1' => 'divider',\n 'Deliver' => '/sitemgr/files',\n 'Tables' => '/sitemgr/tables',\n 'divider2' => 'divider',\n 'Read Me' => '/sitemgr/pages/readme',\n 'Cake Status' => '/sitemgr/pages/cake_status'\n ],\n 'dropdown' => 'Site Manager',\n 'right' => true,\n 'show' => 'admin'\n ];\n }", "title": "" }, { "docid": "54185ab2489008e858e3cc5f3e533954", "score": "0.532991", "text": "public function loadNavigation() {\n\t\t$fm = Registry::get(\"sys\") -> getForumManager();\n\t\t$span = \"Forums Home\";\n\t\t$a = \"<a><i class='fa fa-arrow-right'></i>\";\n\t\tif (isset($_GET['board_id']) && isset($_GET['page'])) {\n\t\t\t$board = $fm -> getBoard($_GET['board_id']);\n\t\t\tif (!$board) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$span = \"\" . $board -> getTitle();\n\t\t\t$a = \"<a href=\\\"/community\\\"><i class='fa fa-arrow-left'></i> Back\";\n\t\t}\n\t\techo \"<div class=\\\"titleBar\\\" style=\\\"width:650px;padding:13px; margin: 1px auto 0 auto; margin-bottom: 6px;\\\">\n\t\t\" . $a . \"</a><span>Viewing: \" . $span . \"</span>\n\t\t</div>\";\n\t}", "title": "" }, { "docid": "b2f4d5aa84555a69ee7961b4b2043e87", "score": "0.5324753", "text": "function doclistnav()\r\n {\r\n\r\n $uid=sp_get_current_userid();\r\n\r\n $rold_model = M(\"Users\");\r\n $role = $rold_model->where(\"id=$uid\")->select();\r\n $roleid = $role[0][\"role_id\"];\r\n\r\n $user_docrolelist_model=M(\"DocroletermRelationships\");\r\n $docrolelists=$user_docrolelist_model->where(\"role_id=$roleid\")->select();\r\n\r\n\r\n\r\n $user_doclist_model=M(\"DoctermRelationships\");\r\n\r\n foreach($docrolelists as $key=> $val)\r\n {\r\n $termid1= $val[\"term_id\"];\r\n $objectid =$user_doclist_model->where(\"term_id=$termid1\")->select();\r\n\r\n foreach($objectid as $k => $oid)\r\n {\r\n $docidlists[] = $oid[\"object_id\"];\r\n }\r\n }\r\n\r\n //$doclists =array();\r\n $docs_model = M(\"Docs\");\r\n $map['id'] = array('in',$docidlists);\r\n $this->doclists=$docs_model->where($map)->select();\r\n\r\n\r\n $this->assign(\"doclist\",$this->doclists);\r\n }", "title": "" }, { "docid": "2337c770fbfd6e1d406fc2f5477cd553", "score": "0.5319429", "text": "public function getNavigation()\n\t{\n\t\t$pages = array();\n\n\t\t$categories = Doctrine_Core::getTable('Category_Model_Category')->getTree()->fetchTree()->toArray();\n\n\t\t$categoryRoot = array_shift($categories);\n\t\t$pages = $this->recursiveNavigation($categories, $categoryRoot['level']+1, $categoryRoot['lft'], $categoryRoot['rgt']);\n\n\t\t$container = new Zend_Navigation($pages);\n\t\treturn $container;\n\t}", "title": "" }, { "docid": "52491cc853443641ceecb8f88411606d", "score": "0.5312515", "text": "function travlio_post_nav() {\n\t\t$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n\t\t$next = get_adjacent_post( false, '', false );\n\n\t\tif ( ! $next && ! $previous ) {\n\t\t\treturn;\n\t\t}\n\n\t\t?>\n\t\t<nav class=\"navigation post-navigation\" role=\"navigation\">\n\t\t\t<h3 class=\"screen-reader-text\"><?php esc_html_e( 'Post navigation', 'travlio' ); ?></h3>\n\t\t\t<div class=\"nav-links clearfix\">\n\t\t\t\t<?php\n\t\t\t\tif ( is_attachment() ) :\n\t\t\t\t\tprevious_post_link( '%link','<div class=\"col-lg-6\"><span class=\"meta-nav\">'. esc_html__('Published In', 'travlio').'</span></div>');\n\t\t\t\telse :\n\t\t\t\t\tprevious_post_link( '%link','<div class=\"pull-left\"><span class=\"meta-nav\">'. esc_html__('Previous Post', 'travlio').'</span></div>' );\n\t\t\t\t\tnext_post_link( '%link', '<div class=\"pull-right\"><span class=\"meta-nav\">' . esc_html__('Next Post', 'travlio').'</span><span></span></div>');\n\t\t\t\tendif;\n\t\t\t\t?>\n\t\t\t</div><!-- .nav-links -->\n\t\t</nav><!-- .navigation -->\n\t\t<?php\n\t}", "title": "" }, { "docid": "adad4121db4fed278af7ef8a7b2c716e", "score": "0.5310069", "text": "public function tree();", "title": "" }, { "docid": "53bba40a6759e9d46fa25067f6a5108f", "score": "0.53057146", "text": "public function navigation()\n {\n \t// Get the categories list\n \t$categories = CmsNavigationCategory::where(['status' => '1'])->select('id', 'category')->get();\n\n \treturn view('administrator/navigation', ['categories' => $categories]);\n }", "title": "" }, { "docid": "0bf3fc4bf491a18b6c07bf68df8c955b", "score": "0.52959645", "text": "function smarty_function_show_tree($params, &$smarty) {\n\t//init setting for current module\n\tCore_SettingValue::$module = $params['module'];\n\tif ( !isset($params['tpl_path']) ) {\n\t\t$tpl_path = \"dit:pages;admin/\";\n\t} else {\n\t\t$tpl_path = $params['tpl_path'];\n\t}\n\t$params['tree_paragraph']++;\n\t$tree_object = $params['tree_object'];\n\t$len = count($tree_object); \n\t\n\tforeach ( $tree_object as $tree_node ) {\n\t\t$smarty->assign('tpl_path', $tpl_path);\n\t\t$smarty->assign('tree_node', $tree_node);\n\t\t$smarty->assign('tree_paragraph',$params['tree_paragraph']);\n\t\t//default from config\n\t\tif(!$params['menu_type'])\n\t\t\t$smarty->assign('menu_type',D::$config->setting->menu_orientation);\n\t\telse $smarty->assign('menu_type',$params['menu_type']);\n\t\t$smarty->assign('img_path',$params['img_path']);\n\t\t$smarty->assign('level',$params['level']);\n\t\t\n\t\tif( count($tree_node->childrenTree) ) {\n\t\t\t$smarty->assign('tree_object',$tree_node->childrenTree);\n\t\t\t$smarty->assign('tree_childrens',count($tree_node->childrenTree));\t\n\t\t\t$smarty->display($tpl_path.'tree_subnode');\n\t\t} else {\n\t\t\t$smarty->display($tpl_path.'tree_node');\n\t\t}\n\t}\n\treturn;\n}", "title": "" }, { "docid": "42b9ad229b4cd36134be80c7a24abb8c", "score": "0.5293209", "text": "function post_navigation() {\n\t\techo '<div class=\"navigation\">';\n\t\techo '\t<div class=\"next-posts\">'.get_next_posts_link('&laquo; Ältere').'</div>';\n\t\techo '\t<div class=\"prev-posts\">'.get_previous_posts_link('Neuere &raquo;').'</div>';\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "7e9b078de835169ae7f64987ae72cf3a", "score": "0.5291327", "text": "function yanaMenu($node, $defaultDisplay)\n{\n}", "title": "" }, { "docid": "5c1257a20b83f412113a8a4f50b8de06", "score": "0.52873266", "text": "public function registerNavigation()\n {\n return [\n 'tilda' => [\n 'label' => 'Tilda connect',\n 'url' => Backend::url('cds/tilda/tildaprojects'),\n 'icon' => 'icon-refresh',\n 'permissions' => ['cds.tilda.*'],\n 'order' => 500,\n ],\n ];\n }", "title": "" }, { "docid": "678c3279ea1ab4e105adc1055f97ed7d", "score": "0.52833295", "text": "public function navigation()\n {\n return $this->hasMany('App\\Navigation', 'page_id', 'id');\n }", "title": "" }, { "docid": "5705e77afe513b288632ebb3d7c9734e", "score": "0.5282809", "text": "function add_node_obj($node)\n {\n $temp_node = $this->first_child;\n $this->first_child = $node;\n if(isset($temp_node))\n {\n \n $this->first_child->next_node = $temp_node;\n $this->first_child->next_node->previous_node = $this->first_child;\n }\n }", "title": "" }, { "docid": "62a5689d6a3be8fe505a3079f539dc7d", "score": "0.52765405", "text": "public function loadnav(){\n\t\t$userlog = $this->session->userdata('usuario');\n\t\t$fila= $this->Model->getUser($userlog);\n\t\t$datos =array('nombre'=>$fila->nombre,'apellido1'=>$fila->apellido1,'apellido2'=>$fila->apellido2, 'rol'=>$fila->id_rol);\n\t\t$this->load->view(\"head\",$datos);\n\n\t}", "title": "" }, { "docid": "5b1e586cf79e6dbc4935a7c646d839e5", "score": "0.5260829", "text": "public function run()\n {\n $navigation = new navigation;\n $navigation->title = 'О компании';\n $navigation->slug = 'about';\n $navigation->parent_id = 0;\n $navigation->order = 100;\n $navigation->save();\n\n $navigation = new navigation;\n $navigation->title = 'Услуги';\n $navigation->slug = 'uslugi';\n $navigation->parent_id = 0;\n $navigation->order = 200;\n $navigation->save();\n\n $navigation = new navigation;\n $navigation->title = 'Восстановление двигателей';\n $navigation->slug = 'reman-engines';\n $navigation->parent_id = 1;\n $navigation->order = 100;\n $navigation->save();\n\n $navigation = new navigation;\n $navigation->title = 'Ремонт двигателей';\n $navigation->slug = 'service-engines';\n $navigation->parent_id = 1;\n $navigation->order = 200;\n $navigation->save();\n\n\n $navigation = new navigation;\n $navigation->title = 'Запчасти';\n $navigation->slug = 'parts';\n $navigation->parent_id = 0;\n $navigation->order = 300;\n $navigation->save();\n\n\n $navigation = new navigation;\n $navigation->title = 'Запчасти';\n $navigation->slug = 'parts';\n $navigation->parent_id = 0;\n $navigation->order = 400;\n $navigation->save();\n\n $navigation = new navigation;\n $navigation->title = 'JEREH';\n $navigation->slug = 'jereh';\n $navigation->parent_id = 0;\n $navigation->order = 500;\n $navigation->save();\n\n }", "title": "" }, { "docid": "e318dfef242c475616b694757273b3a1", "score": "0.52453834", "text": "public function nodeAdminLinks()\n {\n return $this->nodeAdminLinksRelationship->where('active', 1);\n }", "title": "" }, { "docid": "7ee2eff55ce45bc5ffa6bc5aa5aaa0e2", "score": "0.52435017", "text": "public function get_navigation(){\n\t\treturn $this->navigation;\n\t}", "title": "" }, { "docid": "957c1c389c992f0713693749edb759bc", "score": "0.52377105", "text": "function debug_traverse($level)\n {\n $node = $this->first_child; \n while($node != null)\n {\n echo str_repeat(\"-\\t\",$level).$node->id . '<br />' .str_repeat(\"-\\t\",$level);\n echo $node->obj_value->title . '<br />';\n $node->children->debug_traverse(($level + 1));\n \n $node = $node->next_node;\n }\n }", "title": "" }, { "docid": "3638cd59f98259b5ef38e2fb3c4ba9e2", "score": "0.52328074", "text": "public function setNavigateHierarchy($val){\n\t\t$this->m_navigateHierarcy = $val;\n\t}", "title": "" }, { "docid": "479af993dacf06bb94b32a71a7b582df", "score": "0.52238446", "text": "public function nodes()\n {\n return $this->nodeLinkRelationship()->get()->map(function($nodeLink) {\n $node = $nodeLink->getNode();\n\n return $node->is_hidden ? null : $node;\n })->filter();\n }", "title": "" }, { "docid": "413e2228344d9fc32203a6f129b77d29", "score": "0.52169937", "text": "function getDescendants();", "title": "" }, { "docid": "eb47e6dde1deaac19326dac056531287", "score": "0.52141476", "text": "public function test_get_navigation() {\n $this->resetAfterTest(true);\n\n $student1 = $this->getDataGenerator()->create_user();\n $this->getDataGenerator()->enrol_user($student1->id, $this->workshop->course->id);\n $workshopgenerator = $this->getDataGenerator()->get_plugin_generator('mod_workshop');\n $subid1 = $workshopgenerator->create_submission($this->workshop->id, $student1->id);\n\n $portfoliocaller = new mod_workshop_portfolio_caller(['id' => $this->workshop->cm->id, 'submissionid' => $subid1]);\n $portfoliocaller->set_formats_from_button([]);\n $portfoliocaller->load_data();\n\n $this->assertTrue(is_array($portfoliocaller->get_navigation()));\n }", "title": "" }, { "docid": "c4e2f868ec53829196c962c7efec7481", "score": "0.5202686", "text": "protected function _navigationTabsForums()\r\n\t{\r\n\t}", "title": "" }, { "docid": "4db2ffe31e606a4f23071fff39b31eec", "score": "0.5200009", "text": "function nav() { \n\t\t\n\t\tfilepaths();\n\t\tremove_posts();\n\t\tcurrent_url();\n\n\t\tforeach ($GLOBALS['filepaths'] as $files) {\n\t\t\t$page_link = preg_replace('#'.$GLOBALS['dropbox_posts_dir'].'/([a-z-]*)_[0-9]*\\.md#', '$1', $files);\n\t\t\t$the_file = fopen($files, 'r');\n\t\t\t$page_title = fgets($the_file);\n\t\t\t$page_title = str_replace('# ', '', $page_title);\n\n\t\t\tif (strpos($GLOBALS['current_url'], $page_link)) {\n\t\t\t\t$active_nav = ' class=\"active_nav\"';\n\t\t\t} else {\n\t\t\t\t$active_nav = '';\n\t\t\t}\n\t\t\t\n\t\t\techo ('<li><a href=\"'.$page_link.'\"'.$active_nav.'>'.$page_title.'</a></li>');\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "41a05702820844c2c20311ad7885eb9f", "score": "0.5197943", "text": "public function viewNode($node)\r\n {\r\n }", "title": "" }, { "docid": "09a58c336329d438fdfcbf0216cfbc16", "score": "0.5195479", "text": "function swift_framework_generate_menu_path($node) {\n\n // if we are dealing with a translation, load the original node and use that one\n $default_language = language_default('language');\n if ($node->language !== $default_language && $node->language !== LANGUAGE_NONE && $node->tnid) {\n $node = node_load($node->tnid);\n }\n\n if (empty($node->menu['menu_name'])) {\n $menu = db_select('menu_links', 'ml')->fields('ml')->condition('link_path', 'node/'. $node->nid)->execute()->fetchAssoc();\n if ($menu) {\n $node->menu = $menu;\n }\n }\n\n if (!empty($node->menu['menu_name']) && !empty($node->menu['mlid'])) {\n $parents = token_menu_link_load_all_parents($node->menu['mlid']);\n $parents += array($node->menu['mlid'] => $node->menu['link_title']);\n }\n elseif (swift_framework_type_is('topic_child', $node->type) && $topic_menu = swift_framework_topic_menu_from_node($node)) {\n $topic_link = swift_framework_get_topic_link($topic_menu);\n if ($topic_link) {\n $parents = token_menu_link_load_all_parents($topic_link->mlid);\n $parents += array($topic_link->mlid => $topic_link->link_title);\n }\n else {\n $parents = array();\n }\n if ($topic_menu->child_link['depth'] == 2) {\n $child1 = swift_framework_topic_menu_link_load($topic_menu->child_link['p1']);\n $parents += array($child1['mlid'] => $child1['link_title']);\n }\n $parents += array($topic_menu->child_link['mlid'] => $topic_menu->child_link['link_title']);\n }\n // SDC-1275 introduced menu position\n // take it into account\n elseif ($menu_position = _swift_framework_get_node_menu_position($node)) {\n $parents = token_menu_link_load_all_parents($menu_position->mlid);\n $parents += array('menu-position' => $node->title);\n }\n\n if (!empty($parents)) {\n return implode('/', array_map('swift_framework_sanitize_url', $parents));\n }\n return '';\n}", "title": "" }, { "docid": "cfcd52e36f178bdbc454a8971c3a7315", "score": "0.5190435", "text": "public static function get_navigation($language_id,$category=1,$max_levels=false,$breadcrumbs=array(),$parent_id=0,$counter=1)\n {\n $result_data=array();\n $nodes = DB::select(\"product_category_data.nazev\",\"routes.nazev_seo\",\"routes.language_id\",\"product_categories.parent_id\",\"product_categories.id\")\n ->from(\"product_categories\")\n ->join(\"product_category_data\")->on(\"product_categories.id\",\"=\",\"product_category_data.product_category_id\")\n ->join(\"routes\")->on(\"product_category_data.route_id\",\"=\",\"routes.id\")\n ->where(\"product_categories.parent_id\",\"=\",db::expr($parent_id))\n ->where(\"routes.language_id\",\"=\",DB::expr($language_id))\n ->where(\"routes.zobrazit\",\"=\",DB::expr(1))\n ->order_by(\"poradi\")\n ->as_object()->execute();\n foreach($nodes as $node)\n { \n $result_data[$node->nazev_seo]=(array)$node;\n // podrizene vetve\n $child_nodes=array();\n if(($max_levels && $max_levels>$counter) || $max_levels===false)\n {\n if((!empty($breadcrumbs) && key_exists($node->nazev_seo, $breadcrumbs)) || empty($breadcrumbs))\n {\n $child_nodes=self::get_navigation($language_id, $category, $max_levels, $breadcrumbs, $node->id, $counter+1);\n if(!empty($child_nodes))\n {\n $result_data[$node->nazev_seo][\"children\"]=$child_nodes;\n\n }\n }\n }\n }\n return $result_data;\n \n }", "title": "" }, { "docid": "e9c9a4ce89cb417a7e8ccd88d2ec118f", "score": "0.5180437", "text": "function fsfcms_getNavigation()\n {\n global $fsfcms_api_url;\n \n $fsf_api_file = \"fsf.cms.getNavigation.php\";\n $fsf_api_options = \"?sortColumn=navigationAlias\";\n $fsf_api_options .= \"&sortOrder=ASC\";\n\n $fsfcms_getNavigation_pages_json = fsf_preacher_curl($fsfcms_api_url, $fsf_api_file, $fsf_api_options); \n $fsfcms_getNavigation_pages = json_decode($fsfcms_getNavigation_pages_json,true);\n foreach($fsfcms_getNavigation_pages as $fsfcms_getNavigation_page)\n {\n $fsfcms_getNavigation_output .= \"<li><a href=\\\"/\" . $fsfcms_getNavigation_page['pageSlug'] . \"\\\">\" . $fsfcms_getNavigation_page['navigationAlias'] . \"</a></li>\"; \n }\n return $fsfcms_getNavigation_output; \n }", "title": "" }, { "docid": "56b10f8b8ace374135cc555c20745a47", "score": "0.5179681", "text": "function showNavigation()\n {\n if($this->TotalPage>1) return '<div class=\"paginationInner\">'.$this->previousPage() .\" \". $this->showLink() .\" \". $this->nextPage().'</div>';\n }", "title": "" }, { "docid": "53af85a8767302fef405acef88e5b555", "score": "0.5174085", "text": "function _tk_index_nav() {\n\tif( !function_exists('cc2_pagination' ) ) {\n\t\treturn;\n\t}\n\t\n\tcc2_pagination();\n}", "title": "" }, { "docid": "34b89c085920265773fb5d315c67ca74", "score": "0.5169393", "text": "final private function menu()\r\n {\r\n \r\n $menu = array(); // Initialice menu.\r\n $menu['menu']['home'] = array('link' => FRAMEWORK_URL); // \r\n $menu['menu']['tables']['menu']['All tables'] = array('link' => 'index.php');\r\n foreach ($this->_tables as $id => $tableData)\r\n {\r\n $menu['menu']['tables']['menu'][$tableData['table_caption']] = array('link' => 'index.php?table_id=' . $id);\r\n }\r\n \r\n \r\n /*\r\n * TEST MENU\r\n */\r\n /*\r\n $menu = array(\r\n 'menu' => array (\r\n 'home' => array(\r\n 'link' => FRAMEWORK_URL,\r\n ),\r\n 'about us' => array(\r\n 'link' => FRAMEWORK_URL . 'aboutus',\r\n ),\r\n 'admin' => array (\r\n 'menu' => array (\r\n 'countries' => array(\r\n 'link' => FRAMEWORK_URL . 'siteadmin/countries',\r\n ),\r\n 'cities' => array(\r\n 'link' => FRAMEWORK_URL . 'siteadmin/cities',\r\n 'menu' => array(\r\n 'prueba 1' => array(\r\n 'link' => '1.html',\r\n ),\r\n 'prueba 2' => array(\r\n 'link' => '2.html',\r\n 'menu' => array(\r\n 'prueba 3' => array(\r\n 'link' => '1.html',\r\n ),\r\n 'prueba 4' => array(\r\n 'link' => '2.html',\r\n ),\r\n ),\r\n ),\r\n ),\r\n ),\r\n ),\r\n ),\r\n )\r\n );\r\n * \r\n */ \r\n Html::createMenu($menu);\r\n }", "title": "" }, { "docid": "f728bbe9105b65059597655952dec468", "score": "0.5169143", "text": "protected function _navigationTabsMembers()\r\n\t{\r\n\t}", "title": "" }, { "docid": "a6d5cf51fccb05e487a7e8d04bd0e53a", "score": "0.5166982", "text": "public function getNav() {\n return false;\n }", "title": "" }, { "docid": "1db216ee7674883feb9d8c1de803c63e", "score": "0.51643276", "text": "public function navs()\n\t{\n\t\treturn $this->belongsToMany('App\\Http\\Models\\Navigation','user_to_nav','user_id','navigation_id');\n\t}", "title": "" }, { "docid": "9ba537645671c84854123953f8fe9bae", "score": "0.5162713", "text": "function setNavi ( $naviforce='') {\n \t\t\n \t// Elle est transmise soit dans une variable de type GET (lien),\n \t// soit dans une variable de type POST (formulaire).\n \t// ajout manu: soit dans la variable get 'clean'\n \tif ( ENCODERURL ) $navi = 'QWNjdWVpbA=='; else $navi = 'Accueil' ;\n \tif ( isset($_GET['navi']) && $_GET['navi'] ) $navi = $_GET['navi'] ;\n \tif ( isset($_POST['navi']) && $_POST['navi'] ) $navi = $_POST['navi'] ;\n \t\tif ( isset($_GET['navi']) && ereg('http://',$_GET['navi']) ) $navi = 'Accueil' ; // antispam\n \t\t\n \t$this->navifull = $navi ;\n \tif ( isset($_REQUEST['Déconnexion']) && $_REQUEST['Déconnexion'] ) { $this->navifull = '' ; $navi = '' ; }\n \tif ( $naviforce ) {\n \t\t$navi = $naviforce;\n \t\t$this->navifull = $navi ;\n \t}\n \t\t// print \"<br/><br/>on est dans setnavi. navifull=\".$this->navifull.'<br/>';\n \t// Si la navigation a bien été transmise, alors on récupère les différents\n \t// niveaux dans un tableau.\n \tif ( ENCODERURL ) { \n \t\t// NOTE : un petit str_replace histoire que base64_encode('FABIENLAFOUINE') soit un peu partout dans les URL.\n \t\tif ( $navi ) { $this->navi = explode ( \"|\", base64_decode ( str_replace ( \"RkFCSUVOTEFGT1VJTkU\", \"+\", $navi ))) ;\n \t\t} else { $this->navi[0] = \"Accueil\" ; } \n \t} else { \n \t\tif ( $navi ) { \n \t\t\t$this->navi = explode ( \"|\", $navi ) ; \n \t\t\t// Sinon, on initialise le premier niveau à la page d'accueil du terminal.\n \t\t } else { \n \t\t \t$this->navi[0] = \"Accueil\" ; \n \t\t } \n \t}\n \t$_SESSION['XHAM_veryOldNavi']=(isset($_SESSION['XHAM_oldNavi'])?$_SESSION['XHAM_oldNavi']:''); \n \t$_SESSION['XHAM_oldNavi']=(isset($_SESSION['XHAM_Navi'])?$_SESSION['XHAM_Navi']:'');\n \t$_SESSION['XHAM_Navi']=$this->navi;\n \t}", "title": "" }, { "docid": "8bb34dc6c412cbe454a8dc6bf8678dc6", "score": "0.5162129", "text": "protected function _navigationVisitorTabsStart()\r\n\t{\r\n\t}", "title": "" }, { "docid": "57b1a95905958ce80407f5909d3b77f3", "score": "0.51580316", "text": "function get_nav_1($lu){\n\n$this->fixed_nav($this->get_tabs_set_1($lu));\n\n}", "title": "" }, { "docid": "4bb2afb902540c5488ac811c96d896ab", "score": "0.51535094", "text": "public function registerNavigation()\n {\n\n\n return [\n 'rooms' => [\n 'label' => 'Rooms',\n 'url' => Backend::url('katana/rooms/rooms'),\n 'icon' => 'icon-leaf',\n 'permissions' => ['katana.rooms.*'],\n 'order' => 500,\n ],\n ];\n }", "title": "" }, { "docid": "519a2551058048a77b4c5f1907de3758", "score": "0.5151474", "text": "public function registerNavigation(): array\n {\n return [];\n }", "title": "" }, { "docid": "cc67a2e2d45630072e286d8f3311ccc8", "score": "0.5150084", "text": "function archive_navigation()\n{\n\tglobal $navbits, $mybb, $lang;\n\n\t$navsep = \" &gt; \";\n\t$nav = $activesep = '';\n\tif(is_array($navbits))\n\t{\n\t\treset($navbits);\n\t\tforeach($navbits as $key => $navbit)\n\t\t{\n\t\t\tif(!empty($navbits[$key+1]))\n\t\t\t{\n\t\t\t\tif(!empty($navbits[$key+2]))\n\t\t\t\t{\n\t\t\t\t\t$sep = $navsep;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sep = \"\";\n\t\t\t\t}\n\t\t\t\t$nav .= \"<a href=\\\"\".$navbit['url'].\"\\\">\".$navbit['name'].\"</a>$sep\";\n\t\t\t}\n\t\t}\n\t\t$navsize = count($navbits);\n\t\t$navbit = $navbits[$navsize-1];\n\t}\n\tif(!empty($nav))\n\t{\n\t\t$activesep = $navsep;\n\t}\n\t$nav .= $activesep.$navbit['name'];\n\n\treturn $nav;\n}", "title": "" }, { "docid": "10b9abaeca9a0e42b155731e5e471ec8", "score": "0.51447845", "text": "function expressregion_menu_link($variables) {\n $element = $variables['element'];\n $sub_menu = '';\n\n if ($element['#below']) {\n $sub_menu = drupal_render($element['#below']);\n }\n $output = l($element['#title'], $element['#href'], array_merge($element['#localized_options'], array('absolute' => TRUE)));\n return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . \"</li>\\n\";\n}", "title": "" } ]
fc91233738042d7da8fd5aebfb149923
/ Initialize action controller here
[ { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.0", "text": "public function init() {\n }", "title": "" } ]
[ { "docid": "638a809f808f6f3ad0c7f8de3cb1882e", "score": "0.8955217", "text": "public function init()\n {\n /* Initialize action controller here */\n }", "title": "" }, { "docid": "638a809f808f6f3ad0c7f8de3cb1882e", "score": "0.8955217", "text": "public function init()\n {\n /* Initialize action controller here */\n }", "title": "" }, { "docid": "34afe0f26fbce3adcd6664979c3a027e", "score": "0.82039714", "text": "protected function initializeController() {}", "title": "" }, { "docid": "2e766d8f2b18b65599d0131fd5cb1800", "score": "0.8001775", "text": "protected function initializeAction() {}", "title": "" }, { "docid": "2e766d8f2b18b65599d0131fd5cb1800", "score": "0.8001775", "text": "protected function initializeAction() {}", "title": "" }, { "docid": "2e766d8f2b18b65599d0131fd5cb1800", "score": "0.8001715", "text": "protected function initializeAction() {}", "title": "" }, { "docid": "2b6526b805f5ab5b8bd32f1cbb4960a3", "score": "0.7926931", "text": "protected function initAction()\n {\n }", "title": "" }, { "docid": "527d9efcf44891df0935681826c96f01", "score": "0.78014845", "text": "protected function initializeAction() {\n\t\t/* Merge flexform and setup settings\n\t\t * \n\t\t */\n\t\t$this->settings['action'] = $this->actionMethodName;\n\t}", "title": "" }, { "docid": "3766141ab28735b39bbb4d3c4c84125f", "score": "0.77481383", "text": "public function initializeAction() {}", "title": "" }, { "docid": "3766141ab28735b39bbb4d3c4c84125f", "score": "0.77481383", "text": "public function initializeAction() {}", "title": "" }, { "docid": "3766141ab28735b39bbb4d3c4c84125f", "score": "0.77481383", "text": "public function initializeAction() {}", "title": "" }, { "docid": "3766141ab28735b39bbb4d3c4c84125f", "score": "0.77481383", "text": "public function initializeAction() {}", "title": "" }, { "docid": "3766141ab28735b39bbb4d3c4c84125f", "score": "0.77481383", "text": "public function initializeAction() {}", "title": "" }, { "docid": "d98bff3a7494e429cdb89851f74701de", "score": "0.77400875", "text": "public function initializeAction() {\n\n\t}", "title": "" }, { "docid": "7fcf639581fd6020a3b7c3ed99d584a9", "score": "0.76493543", "text": "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "title": "" }, { "docid": "08aad7b4ff3f58ad60ad9cc1ae62f360", "score": "0.7541144", "text": "protected function initializeAction() {\n\t\t$this->akismetService->setCurrentRequest($this->request->getHttpRequest());\n\t}", "title": "" }, { "docid": "a50dc0be51ecd88debafb857a24d2816", "score": "0.7541064", "text": "public function __construct($controller,$action) {\n\t\tparent::__construct($controller, $action);\n\t\t\n\t}", "title": "" }, { "docid": "bb9a98b98dc129b0da4ed652e8e83336", "score": "0.7458066", "text": "public function init()\n {\n $controller = $this->router->getController();\n $action = $this->router->getAction();\n $params = $this->router->getParams();\n\n $objController = registerObject($controller);\n\n call_user_func_array([$objController, $action], $params);\n }", "title": "" }, { "docid": "7efa742f452c9c6383bdb8b0ac90ec8a", "score": "0.74296707", "text": "public function __construct($controller, $action) {\n parent::__construct($controller, $action); //parent is Controller.php\n }", "title": "" }, { "docid": "d9a03366d84c310bf474de59b9381746", "score": "0.73827255", "text": "protected function initAction()\r\n {\r\n $return = false;\r\n\r\n // parse request URI\r\n $parts_url = parse_url(strtolower(trim($_SERVER['REQUEST_URI'], '/')));\r\n // @TODO: fix\r\n $parts_url_array = explode('/', $parts_url['path']);\r\n list($this->controllerName, $this->itemId) = $parts_url_array;\r\n\r\n // parse method\r\n $this->requestMethod = strtolower($_SERVER['REQUEST_METHOD']);\r\n\r\n switch ($this->requestMethod) {\r\n case 'get':\r\n // default actions for GET\r\n if ($this->controllerName == 'login' || $this->controllerName == 'logout') {\r\n $this->actionName = $this->controllerName;\r\n $this->controllerName = 'users';\r\n } elseif (is_null($this->itemId)) {\r\n $this->actionName = 'index';\r\n } else {\r\n $this->actionName = 'view';\r\n }\r\n break;\r\n case 'post':\r\n // default action for POST\r\n $this->actionName = 'add';\r\n break;\r\n case 'put':\r\n // default action for PUT\r\n $this->actionName = 'edit';\r\n break;\r\n case 'delete':\r\n // default action for DELETE\r\n $this->actionName = 'delete';\r\n break;\r\n }\r\n\r\n if (!$this->controllerName) {\r\n $this->controllerName = 'main';\r\n }\r\n if (!$this->actionName) {\r\n $this->actionName = 'index';\r\n }\r\n\r\n // get, check & requre class\r\n $className = sprintf('mob%s', ucfirst($this->controllerName));\r\n $className = 'pages\\\\' . $className;\r\n \r\n if (class_exists($className)) {\r\n //create a instance of the controller\r\n $this->controller = new $className();\r\n\r\n //check if the action exists in the controller. if not, throw an exception.\r\n $actionName = sprintf('action%s', ucfirst($this->actionName));\r\n if (method_exists($this->controller, $actionName) !== false) {\r\n $this->action = $actionName;\r\n // set request params\r\n if ($this->itemId) {\r\n $this->controller->setParams(array('id' => $this->itemId));\r\n }\r\n $this->controller->setRequestParams($this->requestMethod);\r\n\r\n $return = true;\r\n } else {\r\n $this->controller->httpStatusCode = HTTP_STATUS_METHOD_NOT_ALLOWED;\r\n// throw new \\Exception('Action is invalid.');\r\n }\r\n } else {\r\n $this->controller = new clsMobController();\r\n $this->controller->httpStatusCode = HTTP_STATUS_NOT_FOUND;\r\n// throw new \\Exception('Controller class is invalid.');\r\n }\r\n\r\n return $return;\r\n }", "title": "" }, { "docid": "57c75b137fb71f38d551b64635f226ad", "score": "0.73478764", "text": "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "title": "" }, { "docid": "0a7e03d6a1b26c07276e4af6e551fbbe", "score": "0.73314655", "text": "public function __construct() {\n // filter controller, action and params\n $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); // $_GET['url']\n $params = explode('/', trim($url, '/'));\n\n // store first and seccond params, removing them from params list\n $controller_name = ucfirst(array_shift($params)); // uppercase classname\n $action_name = array_shift($params);\n\n require_once APP . 'config.php';\n\n // default controller and action\n if (empty($controller_name)) {\n $controller_name = AppConfig::DEFAULT_CONTROLLER;\n }\n if (empty($action_name)) {\n $action_name = AppConfig::DEFAULT_ACTION;\n }\n\n // load requested controller\n if (file_exists(APP . \"Controller/$controller_name.php\")) {\n require CORE . \"Controller.php\";\n require CORE . \"Model.php\";\n require APP . \"Controller/$controller_name.php\";\n $controller = new $controller_name();\n\n // verify if action is valid\n if (method_exists($controller, $action_name)) {\n call_user_func_array(array($controller, $action_name), $params);\n $controller->render(\"$controller_name/$action_name\"); // skipped if already rendered\n } else {\n // action not found\n $this->notFound();\n }\n } else {\n // controller not found\n $this->notFound();\n }\n }", "title": "" }, { "docid": "7273330906cea09e9d6bf15f79ed1b75", "score": "0.7320744", "text": "public static function init() {\n\t\tself::setup_actions();\n\t}", "title": "" }, { "docid": "2992e0736b0a70972e4c2f0d93df4737", "score": "0.73044795", "text": "protected function initializeAction()\n\t{\n\t\tparent::init('Form');\n\t}", "title": "" }, { "docid": "234ef98e0d62914a40f931e89851fcaf", "score": "0.7294765", "text": "public function initController()\n {\n $this->model = new AliveSettingServiceMeta();\n\n $this->middleware([\n\n ]);\n }", "title": "" }, { "docid": "ce6d7449438627d17d404b18ba43c9bf", "score": "0.72756356", "text": "public function init() {\n\n $this->jobs = new Hb_Jobs();\n if ($this->_request->getActionName() == 'view') {\n\n $this->_request->setActionName('index');\n }\n\n $this->searchParams = $this->_request->getParams();\n $this->view->searchParams = $this->searchParams;\n\n $this->view->actionName = $this->_request->getActionName();\n }", "title": "" }, { "docid": "3182861b1125429e9b476eff0ad32628", "score": "0.7252126", "text": "protected function initializeAction()\n {\n $this->extKey = GeneralUtility::camelCaseToLowerCaseUnderscored('BwrkOnepage');\n /** @var LanguageAspect $languageAspect */\n $languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');\n $this->languageUid = $languageAspect->getId();\n }", "title": "" }, { "docid": "dc7f9ba117335df5a8903217b9ac6f07", "score": "0.72445315", "text": "protected function initializeAction()\n {\n parent::initializeAction();\n $this->customer = SubjectResolver::get()\n ->forClassName(Customer::class)\n ->forPropertyName('user')\n ->resolve();\n }", "title": "" }, { "docid": "8f63379adccd7c76cbc18e1a8fb7ac69", "score": "0.72121567", "text": "public function initialize()\n {\n parent::initialize();\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Cookie');\n $this->cors();\n\n $currentController = $this->request->getParam('controller');\n // pr($currentController); die();\n if($currentController == 'Tenants'){\n $currentController = 'TenantUsers';\n }\n if($currentController == 'CorporateClients'){\n $currentController = 'CorporateClientUsers';\n // pr($currentController);die();\n }\n // $currentController = $this->request->params['controller'];\n $loginAction = $this->Cookie->read('loginAction');\n if(!$loginAction){\n $loginAction = ['controller' => $currentController,'action' => 'login'];\n }\n // pr($loginAction);die;\n $this->loadComponent('Auth',[\n 'loginAction' => ['controller' => $currentController,'action' => 'login'],\n 'authenticate' => [\n 'Form' =>\n [\n 'userModel' => $currentController,\n 'fields' => ['username' => 'email', 'password' => 'password']\n ]\n ],\n 'authorize'=> ['Controller'],\n 'loginAction' => $loginAction,\n 'loginRedirect' => $loginAction,\n 'logoutRedirect' => $loginAction \n\n ]);\n // $this->loadComponent('Auth', [\n\n // 'unauthorizedRedirect' => false,\n // 'checkAuthIn' => 'Controller.initialize',\n\n // // If you don't have a login action in your application set\n // // 'loginAction' to false to prevent getting a MissingRouteException.\n // 'loginAction' => false\n // ]);\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n }", "title": "" }, { "docid": "6cff1c50ec5d2598de310deb81213278", "score": "0.7204742", "text": "public function init() {\n\t\t$this->load_actions();\n\t}", "title": "" }, { "docid": "185ad1e56115f447f7410e92039e717c", "score": "0.7167268", "text": "public function init()\r\n {\r\n\r\n /* Initialize action controller here */\r\n\r\n //=====================================must add in all Controller class constructor ===================================//\r\n if(defined('SITEURL')) $this->site_url = SITEURL;\r\n if(defined('SITEASSET')) $this->site_asset = SITEASSET;\r\n $this->view->site_url = $this->site_url;\r\n $this->view->site_asset = $this->site_asset;\r\n Zend_Loader::loadClass('Signup');\r\n Zend_Loader::loadClass('User');\r\n Zend_Loader::loadClass('Request');\r\n //Zend_Loader::loadClass('mailerphp');\r\n\t\t//Zend_Loader::loadClass('Permission');\r\n\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n Zend_Loader::loadClass('LoginAuth');\r\n $this->view->ob_LoginAuth = $this->sessionAuth = new LoginAuth();\r\n\r\n $this->sessionAuth->login_user_check();\r\n\r\n $this->sessionAuth->cookie_check();\r\n $this->view->server_msg = $this->sessionAuth->msg_centre();\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n unset($_SESSION['tranzgo_session']['export_list']);\r\n $this->view->ControllerName = $this->_request->getControllerName();\r\n $this->view->page_id = ($_SESSION['tranzgo_session']['role_id']==1)?'5':'7';\r\n //______________________________________must add in all Controller class constructor _____________________________________//\r\n\r\n\r\n }", "title": "" }, { "docid": "34316052eb9d1d0b6a9453bff10450aa", "score": "0.71536463", "text": "public function __construct() {\n\t\t\t$this->init_globals();\n\t\t\t$this->init_actions();\n\t\t}", "title": "" }, { "docid": "9e95aef48acb239fe32a8d05e4bfbc7d", "score": "0.7129169", "text": "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->resolution_summary = \"\";\n\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "aafb148518cbb49d0fe7a0c7c9944b78", "score": "0.7116111", "text": "public function __init()\n\t{\n\t\t// This code will run before your controller's code is called\n\t}", "title": "" }, { "docid": "e6ad9ecc44aaf6cbbf1bfa8cd94fee04", "score": "0.7087213", "text": "function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->_actionModel = new Action_Model();//khoi tao class\n\t\t}", "title": "" }, { "docid": "ac6388a791747c5283318e8f0acd4ee6", "score": "0.7080939", "text": "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "title": "" }, { "docid": "f84572bd43e7414ee95adbf79047f47c", "score": "0.70782715", "text": "protected function initializeAction() {\t\n\t\t$this->persdataRepository = t3lib_div::makeInstance('Tx_PtConference_Domain_Repository_persdataRepository');\n\t}", "title": "" }, { "docid": "984789c0959dfa40256a7a341dd19602", "score": "0.7064033", "text": "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->media_values = array(\n\t\t\t101 => Kohana::lang('ui_main.all'),\n\t\t\t102 => Kohana::lang('actionable.actionable'),\n\t\t\t103 => Kohana::lang('actionable.urgent'),\n\t\t\t104 => Kohana::lang('actionable.action_taken')\n\t\t);\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "2bafe73393d3c4407540e17a956d79ec", "score": "0.70551634", "text": "public function __construct() {\n\n list($null,$controller, $action, $id) = explode(\"/\", $_SERVER['PATH_INFO']);\n \n $this->urlValues['base'] = \"http://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n $this->urlValues['controller'] = $controller ? $controller : \"home\";\n $this->urlValues['action'] = $action;\n $this->urlValues['id'] = $id;\n\n $this->controllerName = strtolower($this->urlValues['controller']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['controller'])) . \"Controller\";\n\n if ($this->urlValues['action'] == \"\") {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['action'];\n }\n }", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.7047994", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a09f6400de5a18cbbfd4e78536b4b52e", "score": "0.70350116", "text": "public function init()\n {\n $this->vars['CRUD']['Object'] = $this;\n $this->kernel = kernel();\n\n // Dynamic initialization\n if (! $this->modelName) {\n $modelRefl = new ReflectionClass($this->modelClass);\n $this->modelName = $modelRefl->getShortName();\n }\n\n\n if (! $this->crudId) {\n $this->crudId = \\Phifty\\Inflector::getInstance()->underscore($this->modelName);;\n }\n if (! $this->templateId) {\n $this->templateId = $this->crudId;\n }\n\n // Derive options from request\n if ($request = $this->getRequest()) {\n if ($useFormControls = $request->param('_form_controls')) {\n $this->actionViewOptions['submit_btn'] = true;\n $this->actionViewOptions['_form_controls'] = true;\n }\n }\n\n $this->reflect = new ReflectionClass($this);\n $this->namespace = $ns = $this->reflect->getNamespaceName();\n\n // XXX: currently we use FooBundle\\FooBundle as the main bundle class.\n $bundleClass = \"$ns\\\\$ns\";\n if (class_exists($bundleClass)) {\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n } else {\n $bundleClass = \"$ns\\\\Application\";\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n }\n\n $this->vars['Handler'] = $this;\n $this->vars['Controller'] = $this;\n\n // anyway, we have the model classname, and the namespace, \n // we should be able to registerRecordAction automatically, so we don't have to write the code.\n if ($this->registerRecordAction) {\n $self = $this;\n $this->kernel->event->register('phifty.before_action',function() use($self) {\n $self->kernel->action->registerAction('RecordActionTemplate', array(\n 'namespace' => $self->namespace,\n 'model' => $self->modelName,\n 'types' => (array) $self->registerRecordAction\n ));\n });\n }\n\n\n $this->initPermissions();\n\n /*\n * TODO: Move this to before render CRUD page, keep init method simple\n\n if ( $this->isI18NEnabled() ) {\n $this->primaryFields[] = 'lang';\n }\n */\n $this->initNavBar();\n }", "title": "" }, { "docid": "2d11989a0ada73a917fbd97c13fbd3ae", "score": "0.70280015", "text": "public function _initialize()\n {\n $this->cate=CONTROLLER_NAME;\n }", "title": "" }, { "docid": "4f438a84aa08c4f89286a8df13b01d45", "score": "0.69940084", "text": "protected function initializeActionEntries() {}", "title": "" }, { "docid": "0c2859949d1b32cbdb585b4e6c241098", "score": "0.6990764", "text": "protected function initializeAction() {\n\t\t$this->feusers = $this->feusersRepository->findByUid( $GLOBALS['TSFE']->fe_user->user['uid'] ) ;\n\t\t$this->schule = $this->feusers->getSchule();\n\t\n\t\t$this->extKey = $this->request->getControllerExtensionKey();\n\t\t$this->extPath = t3lib_extMgm::extPath($this->extKey);\n\t\n\t\t$this->importClassFile = $this->extPath.'Classes/tmp/class.importtext.php';\n\t\t$this->importClass = 'ImportText';\n\t \n\t\tif ( $this->settings[pidAjaxContainerKlassenuebersicht] > 0) $this->pidAjaxContainerKlassenuebersicht = (int) $this->settings[pidAjaxContainerKlassenuebersicht];\n\t\n\t}", "title": "" }, { "docid": "9263e662bd7db4d9792c990865fed715", "score": "0.69830865", "text": "public function init(){\r\n\t$this->_helper->_acl->allow('public',NULL);\r\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\r\n\t$this->_contexts = array('xml','json');\r\n\t$this->_helper->contextSwitch()\r\n\t\t->setAutoDisableLayout(true)\r\n\t\t->addActionContext('oneto50k',$this->_contexts)\r\n\t\t->addActionContext('index',$this->_contexts)\r\n\t\t->initContext();\r\n\t}", "title": "" }, { "docid": "d2abe796c2e934d6af4eb56535f83974", "score": "0.69817984", "text": "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "title": "" }, { "docid": "174c3b72b0825c2df7f2529ef6e803f3", "score": "0.6978081", "text": "public function initBaseController();", "title": "" }, { "docid": "3a15e11363adecfb3228058f4df6e4eb", "score": "0.6970883", "text": "public function init() {\n $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t\t$this->_helper->acl->allow('public',null);\n\t\t$this->_helper->contextSwitch()\n\t\t\t ->setAutoDisableLayout(true)\n\t\t\t ->addActionContext('index', array('xml','json'))\n ->initContext();\n\t}", "title": "" }, { "docid": "ac87a123fdcf78ea615ab1ecabd05db9", "score": "0.6965309", "text": "public function __construct()\n {\n // Call the CI_Controller constructor\n parent::__construct();\n }", "title": "" }, { "docid": "b96eaecdb8a4a9f09f81ca8b3cecf1ea", "score": "0.69345635", "text": "public function initAction() : object\n {\n /**\n * Show all movies.\n */\n $response = $this->app->response;\n return $response->redirect(\"cms/posts\");\n }", "title": "" }, { "docid": "42417c67fa238d9872812d8e7610305f", "score": "0.6934367", "text": "public function __construct()\n\t{\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "eb44670d09618055035323ed55067e2e", "score": "0.69254166", "text": "protected function initializeAction() {\n\t\t$this->frontendUserRepository = t3lib_div::makeInstance('Tx_GrbFeusermanager_Domain_Repository_FrontendUserRepository');\n\t}", "title": "" }, { "docid": "c63cb8c25289b5de11107e5577b9e9e4", "score": "0.69236684", "text": "public function contentControllerInit()\n\t{\n\t}", "title": "" }, { "docid": "dd56c380f0de0414ac74ae2c535e6f56", "score": "0.6910715", "text": "protected function initializeAction()\n {\n parent::initializeAction();\n\n $query = GeneralUtility::_GET('q');\n if ($query !== null) {\n $this->request->setArgument('q', $query);\n }\n }", "title": "" }, { "docid": "97e2bd1e7a3797d155bb4e8d18f34ab3", "score": "0.6909036", "text": "public function __construct()\n {\n $this->setAction('index', array('idle', 'toggleEnabled', 'expunge'));\n }", "title": "" }, { "docid": "efb6cf9eded6219c5c7d7c1938f6c295", "score": "0.6897526", "text": "public static function init() {\n\t\t$_GET = App::filterGET();\n\t\t\n\t\t// Checken of er params zijn meegegeven\n\t\ttry {\n\t\t\tif (count($_GET) == 0) {\n\t\t\t\t$_GET[0] = '';\n\t\t\t}\n\t\t\t\n\t\t\t// Is de eerste param een controller ? Anders een pageView\n\t\t\tif (self::isController($_GET[0])) {\n\t\t\t\t$controllerName = self::formatAsController($_GET[0]);\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Er is sprake van een pageview\n\t\t\t\t$controllerName = 'PagesController';\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\t\n\t\t\t$action = self::getAction($controller);\n\t\t\t$controller->setAction($action);\n\n\t\t\t// Try to exec the action\n\t\t\ttry {\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(ActionDoesNotExistException $ex) {\n\n\t\t\t\techo $action;\n\t\t\t\t// Action bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidAction');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(MissingArgumentsException $ex) {\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('missingArguments');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\t\n\t\t\t// Try to render the view\n\t\t\ttry {\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\tcatch(ViewDoesNotExistException $ex) {\n\t\t\t\t// View bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidView');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t\t\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(NoValidTemplateException $ex) {\n\t\t\techo 'Invalid template';\n\t\t}\n\t\tcatch(IsNotControllerException $ex) {\n\t\t\techo 'Controller not found';\n\t\t}\n\t}", "title": "" }, { "docid": "8025d0198169e2f2da2de1f43531116f", "score": "0.68911135", "text": "public function init()\r\n { \r\n //date_default_timezone_set('America/Phoenix');\r\n $ajaxContext = $this->_helper->getHelper('AjaxContext');\r\n\t$ajaxContext->addActionContext('list', 'html')\r\n ->addActionContext('edit', 'html')\r\n ->addActionContext('dashboard', 'html')\r\n ->addActionContext('handler', 'html')\r\n ->initContext();\r\n $auth = Zend_Auth::getInstance();\r\n $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\r\n $type = $this->getRequest()->getParam('type');\r\n if (!$auth->hasIdentity() && $action!='handler') {\r\n //echo \"THIS IS AN ERROR: \".$action;\r\n $this->_redirect('login', array('UseBaseUrl' => true));\r\n }\r\n }", "title": "" }, { "docid": "91c73b18c28cc761f1acea7cdc3970bb", "score": "0.68749166", "text": "public function __construct()\n {\n $this->model = new MainModel();\n $this->params[\"pagination\"][\"totalItemsPerPage\"] = 5;\n view()->share ('controllerName', $this->controllerName);//đặt controllerName cho all action\n }", "title": "" }, { "docid": "e1e2cd7c7482256439f9676e7652bc2c", "score": "0.6869671", "text": "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "e1e2cd7c7482256439f9676e7652bc2c", "score": "0.6869671", "text": "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "178c9c72e34d5123dd6395e3b0c677d1", "score": "0.68632853", "text": "public function init() {\n $this->_temporizador = new Trf1_Admin_Timer ();\n $this->_temporizador->Inicio();\n\n /* Initialize action controller here */\n $this->view->titleBrowser = 'e-Sisad';\n }", "title": "" }, { "docid": "2374b7f9d3f2ccbaf5393fe1d335ad6e", "score": "0.68467206", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "1be50beedce37b703d177c8bd3c8da5c", "score": "0.6845186", "text": "public function controller()\n\t{\n\t\n\t}", "title": "" }, { "docid": "798d5748b8617f96095908e2a1e901ed", "score": "0.6843706", "text": "function __construct()\n {\n parent::Controller();\n }", "title": "" }, { "docid": "91ba1bfc2c1473756c26c576f4ca2208", "score": "0.6806951", "text": "public function init() {\n\t\t\t\t\t\t$this->view->controller = $this->_request->getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->action = $this->_request->getParam ( 'action' );\n\t\t\t\t\t\t$this->getLibBaseUrl = new Zend_View_Helper_BaseUrl ();\n\t\t\t\t\t\t$this->GetModelOrganize = new Application_Model_ModOrganizeDb ();\n\t\t\t\t\t\t$this->_helper->ajaxContext->addActionContext('deleteOrganisme1','json')->initContext();\n\t\t\t\t\t\t// call function for dynamic sidebar\n\t\t\t\t\t\t$this->_Categories = new Application_Model_ModCatTerm ();\n\t\t\t\t\t\t$parent_id = $this->_getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->secondSideBar = $this->_Categories->showCateParent ( $parent_id );\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "4b8405d54cfe30fa824d1a54c6c209f8", "score": "0.6803958", "text": "public function initializeAction() {\t\t\n\t\t$this->contactRepository = t3lib_div::makeInstance('Tx_Addresses_Domain_Repository_ContactRepository');\t\n\t}", "title": "" }, { "docid": "6f84fae1dc8ce2a700c4fcac1cdac57d", "score": "0.6801667", "text": "public function init() {\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t$this->_helper->acl->allow('public',null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('mint', array('xml','json'))\n\t\t->initContext();\n }", "title": "" }, { "docid": "1ea3f8aef249526e584637a95aa183fe", "score": "0.6791675", "text": "public function __construct()\n {\n if (get_called_class() != 'ApplicationController') {\n $this->_set_default_layout();\n $this->_vars = new stdClass();\n $this->_init();\n }\n }", "title": "" }, { "docid": "06160ae0dd846f8852c434d857316e22", "score": "0.6768758", "text": "public function initializeAction() {\n parent::initializeAction();\n $this->umDiv = new Tx_Magenerator_Domain_UserManagement_Div();\n }", "title": "" }, { "docid": "de65716cb5c0640a232957bbdb3dd01f", "score": "0.6766873", "text": "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "title": "" }, { "docid": "afc81036881d7fef6dd364f50ca70ff8", "score": "0.6765063", "text": "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "title": "" }, { "docid": "7d23ead24d20a5ef07574124266d3019", "score": "0.6756932", "text": "public function getControllerAction() {}", "title": "" }, { "docid": "f589e10a195e56e1d705c11a699a6702", "score": "0.6724229", "text": "public function __construct($action = '') {\n\t\t$this->app = Application::app();\n\t\t$this->setAction($action);\n\t}", "title": "" }, { "docid": "00a3921fe4c007ab2d37fcbce2f66864", "score": "0.67210186", "text": "public function __construct($controller, $action) {\n parent::__construct($controller, $action);\n $this->loadModel('Baskets');\n $this->loadModel('Orders');\n $this->loadModel('Messages');\n $this->loadModel('Products');\n\n if(Session::exists(BUYER_SESSION_NAME)) {\n $this->view->totalProductInBasket = $this->BasketsModel->countProductInBasket();\n $this->view->totalOrders = $this->OrdersModel->countSentOrder();\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n } elseif(Session::exists(STORE_SESSION_NAME)) {\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n $this->view->newOrders = $this->OrdersModel->newOrders(Session::get(STORE_SESSION_NAME));\n }\n\n $this->view->setLayout('details');\n }", "title": "" }, { "docid": "0e5a32636c2c05b63cb6b27e133d8710", "score": "0.67206913", "text": "function initialize(Controller $controller) {\n $this->controller=&$controller;\n \t}", "title": "" }, { "docid": "29fa67577918b676123871640ea60258", "score": "0.6718223", "text": "function initialize(Controller $controller) {\n $this->controller = $controller;\n }", "title": "" }, { "docid": "a47ea1cecac9474ad43b16087a64bf4d", "score": "0.67091835", "text": "public function __construct() {\n if (isset($_GET['rc'])) {\n $this->url = rtrim($_GET['rc'], '/'); // We don't want no empty arg\n $this->args = explode('/', $this->url);\n }\n \n // Load index controller by default, or first arg if specified\n $controller = ($this->url === null) ? 'null' : array_shift($this->args);\n $this->controllerName = ucfirst($controller);\n\n // Create controller and call method\n $this->route();\n // Make the controller display something\n $this->controllerClass->render();\n }", "title": "" }, { "docid": "dc9e40296e4a6cdd79355ae129fa4ec4", "score": "0.6707724", "text": "public function __construct() {\r\n\t\t\r\n\t\tSession::init();\n\t\tif (!Session::get('local'))\n\t\t\tSession::set('local', DEFAULT_LANGUAGE);\r\n\t\t\r\n\t\t$this->getUrl();\r\n\t\t\r\n\t\t//No controller is specified.\r\n\t\tif (empty($this->url[0])) {\r\n\t\t\t$this->loadDefaultController();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$this->loadCurrentController();\r\n\t\t$this->callControllerMethod();\r\n\r\n\t}", "title": "" }, { "docid": "5896909da8d18cb4a81c8727352fcb07", "score": "0.67073387", "text": "public function __construct() {\n $this->urlValues = $_GET;\n if (!isset($this->urlValues['c'])) {\n $this->controllerName = \"home\";\n $this->controllerClass = \"HomeController\";\n } else {\n $this->controllerName = strtolower($this->urlValues['c']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['c'])) . \"Controller\";\n }\n \n if (!isset($this->urlValues['a'])) {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['a']; \n }\n }", "title": "" }, { "docid": "07daf37d1bcc7c0bba08973dd223e2d1", "score": "0.67025465", "text": "public function preAction() {\n $this->apiBrowser = new ApiBrowser();\n\n $basePath = $this->request->getBasePath();\n $this->namespaceAction = $basePath . '/namespace/';\n $this->classAction = $basePath . '/class/';\n $this->searchAction = $basePath . '/search';\n }", "title": "" }, { "docid": "3175b9130fa7baa222b0ccaf0a3b70de", "score": "0.6699776", "text": "function __construct($controller, $action)\n {\n global $inflect;\n\n $this->renderPage = true;\n $this->renderHeader = true;\n \t\n\t\t$this->requireUser = false;\n\t\t \n $this->_controller = ucfirst($controller);\n $this->_action = $action;\n \n $model = ucfirst($inflect->singularize($controller));\n $this->$model = new $model;\n\n $this->_template = new Template($controller, $action);\n }", "title": "" }, { "docid": "175bd2460b2a5e7e1eadb40de8317f30", "score": "0.6698878", "text": "public function init()\n {\n $this->ctrlModel = new Admin_Model_Acl_ControllersActions();\n $this->dbCtrl = new Admin_Model_DbTable_Acl_ModuleController();\n }", "title": "" }, { "docid": "21b7abc9f1c9f7539fdd7f20c1918898", "score": "0.66941214", "text": "public function setup_actions() {}", "title": "" }, { "docid": "9d473030768ed23ecadab535e3019856", "score": "0.66933763", "text": "public function init(){\r\n\t\t$this->_data = $this->_request->getParams();\r\n $controller = $this->_data['controller']; //Get controller\r\n $action = $this->_data['action']; //Get action\r\n \r\n $loadfunction = new Default_Model_Common();\r\n foreach($loadfunction->loadFunction($controller) as $value){\r\n if($action == $value['action']){\r\n $load = new $value['model_load']();\r\n $this->view->$value['varname'] = $load->$value['function_load']();\r\n }\r\n }\r\n\r\n $this->view->lang = Zend_Registry::get(\"lang\"); //load language\r\n \r\n //List menu\r\n $listmenu = Zend_Registry::get(\"listmenu\");\r\n $this->view->listmenu = $listmenu;\r\n \r\n $this->view->selectaccount = ' class=\"selected\"';\r\n }", "title": "" }, { "docid": "6722669ff54676e570fe736730c0fa0a", "score": "0.6692711", "text": "function __construct() {\n\t\t\n\t\tparent::__construct();\n\t\t\n\t\t// skip the timestamp check for this app\n\t\tSession::check(true);\n\t\t$this->data[\"showActions\"] = true;\n\t\t$this->data[\"csrfToken\"] = CSRF::generateToken();\n\t\t\n\t}", "title": "" }, { "docid": "4ee844ec17fede11381f40cb7182aef2", "score": "0.66870576", "text": "public function _construct($controller,$view){\r\n $this->controller = $controller;\r\n }", "title": "" }, { "docid": "12c881c883870a714623dd0e48cbb918", "score": "0.66870147", "text": "abstract public function getControllerAction();", "title": "" }, { "docid": "f8d38bd5f642a9ed3a68aaa502394903", "score": "0.6683114", "text": "public function initialize()\n { $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"notification\");\n }", "title": "" }, { "docid": "f6e6c564a3138f704d820e1d1058476a", "score": "0.66732085", "text": "protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}", "title": "" }, { "docid": "43a0b0cc15458ec89cd07a7f2a49d749", "score": "0.6666899", "text": "public function init()\n {\n $this->ctrlActionModel = new Admin_Model_Acl_ControllersActions();\n $this->dbController = new Admin_Model_DbTable_Acl_ModuleController();\n $this->dbAction = new Admin_Model_DbTable_Acl_Action();\n }", "title": "" }, { "docid": "608647f1bc79af03ae84b0bdfc9f1d30", "score": "0.665839", "text": "public function init()\n {\n $this->projectController->init();\n }", "title": "" }, { "docid": "7f3f31e39fb6fca84cd26b7e34683e89", "score": "0.6650563", "text": "function __construct() {\n\t\t\t$this->register_actions();\t\t\n\t\t\t$this->register_filters();\n\t\t}", "title": "" }, { "docid": "45286ae0d202153aa07636b004520e88", "score": "0.6642661", "text": "public function __construct() {\n // Call Module constructur\n parent::__construct();\n\n // Add additional route\n $this->_actions['GET']['/people/:id'] = 'people';\n }", "title": "" }, { "docid": "fa995a18e9e27631456f75dac6d2308d", "score": "0.6639558", "text": "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"refund\");\n }", "title": "" }, { "docid": "9ef9bfcbeb303144f215c927e0110e47", "score": "0.6635331", "text": "function Controller()\n\t{\t\t\n\t\t$this->method = \"showView\";\n\t\tif (array_key_exists(\"method\", $_REQUEST))\n\t\t\t$this->method = $_REQUEST[\"method\"];\n\t\t\t\t\n\t\t$this->icfTemplating = new IcfTemplating();\n\t\t$this->tpl =& $this->icfTemplating->getTpl();\n\t\t$this->text =& $this->icfTemplating->getText();\t\t\n\t\t$this->controllerMessageArray = array();\n\t\t$this->pageTitle = \"\";\n\t\t$this->dateFormat = DateFormatFactory::getDateFormat();\n\t\t$this->controllerData =& $this->newControllerData();\n\t}", "title": "" }, { "docid": "00d388932acd1dcf303ac4f39a144654", "score": "0.6610504", "text": "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "title": "" }, { "docid": "c5274990ea09eb4ab1f0a64fc7f55cb0", "score": "0.66098905", "text": "function __construct($module,$controller,$action) {\n\t\t$this->action = $action;\n\t\t$this->controller = preg_replace('%Controller$%','',$controller);\n\t\t$this->module = $module;\n\n\t\t$jadeCacheDir = J::path(\"App/Cache/Jade/$this->module/$this->controller\");\n\t\t(is_dir($jadeCacheDir)) || mkdir($jadeCacheDir,0777,true);\n\t\t$this->cacheFile = J::path(\"$jadeCacheDir/$this->action.php\");\n\t\t$this->viewFile = J::path(\"App/Modules/$this->module/Views/$this->controller/$this->action.jade\");\n\t}", "title": "" }, { "docid": "22b057ee0162f3a33fa74c231c508854", "score": "0.66080356", "text": "public function __construct()\n {\n $url = $this->getUrl();\n // Look in controllers folder for first value and ucwords(); will capitalise first letter \n if (isset($url[0]) && file_exists('../app/controllers/' . ucwords($url[0]) . '.php')) {\n $this->currentController = ucwords($url[0]); // Setting the current controllers name to the name capitilised first letter\n unset($url[0]); \n }\n\n // Require the controller\n require_once '../app/controllers/' . $this->currentController . '.php';\n // Taking the current controller and instantiating the controller class \n $this->currentController = new $this->currentController;\n // This is checking for the second part of the URL\n if (isset($url[1])) {\n if (method_exists($this->currentController, $url[1])) { // Checking the seond part of the url which is the corresponding method from the controller class\n $this->currentMethod = $url[1];\n unset($url[1]);\n }\n }\n\n // Get params, if no params, keep it empty\n $this->params = $url ? array_values($url) : []; \n\n // Call a callback with array of params\n call_user_func_array([$this->currentController, $this->currentMethod], $this->params);\n }", "title": "" }, { "docid": "faa64035a3a04718327d1ac530f1ba00", "score": "0.66066074", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->view = new ViewController();\t\t\n\t}", "title": "" }, { "docid": "dc3c37865e676abb3e538046bf8075a7", "score": "0.66000646", "text": "public function __construct()\n {\n $this->controller = new Controller;\n $this->error_message = 'bad request or duplicate data';\n }", "title": "" }, { "docid": "9c60fbff64810741d378ec324a56be82", "score": "0.65996873", "text": "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "title": "" } ]
7f54b6f7b3983fcf81cfa679b89cf35d
Loads geocoder provider configuration
[ { "docid": "38fede7412da5aced2aebe9e3c966624", "score": "0.61956924", "text": "protected function loadGeocoder(array $config, ContainerBuilder $container)\n {\n if(!is_null($config['geocoder']['fake_ip']))\n $container\n ->getDefinition('ivory_google_map.geocoder.event_listener.fake_request')\n ->replaceArgument(0, $config['geocoder']['fake_ip']);\n\n if(!is_null($config['geocoder']['class']))\n $container->setParameter('ivory_google_map.geocoder.class', $config['geocoder']['class']);\n\n if(!is_null($config['geocoder']['adapter']))\n $container->setParameter('ivory_google_map.geocoder.adapter.class', $config['geocoder']['adapter']);\n\n if(!is_null($config['geocoder']['provider']['class']))\n $container->setParameter('ivory_google_map.geocoder.provider.class', $config['geocoder']['provider']['class']);\n\n if(!is_null($config['geocoder']['provider']['api_key']))\n $container\n ->getDefinition('ivory_google_map.geocoder.provider')\n ->replaceArgument(1, $config['geocoder']['provider']['api_key']);\n\n if(!is_null($config['geocoder']['provider']['locale']))\n $container\n ->getDefinition('ivory_google_map.geocoder.provider')\n ->replaceArgument(!is_null($config['geocoder']['provider']['api_key']) ? 2 : 1, $config['geocoder']['provider']['locale']);\n }", "title": "" } ]
[ { "docid": "45f5ee7cca944a5705a9fafdb31b35e3", "score": "0.56833184", "text": "public static function getGeocoderProvider(): ProviderCache\n\t{\n\t\ttry {\n\t\t\t$stack = HandlerStack::create();\n\t\t\t$stack->push(RateLimiterMiddleware::perSecond(1));\n\n\t\t\t$httpClient = new \\GuzzleHttp\\Client([\n\t\t\t\t'handler' => $stack,\n\t\t\t\t'timeout' => Configs::getValueAsInt('location_decoding_timeout'),\n\t\t\t]);\n\n\t\t\t$httpAdapter = new \\Http\\Adapter\\Guzzle7\\Client($httpClient);\n\n\t\t\t$provider = new Nominatim($httpAdapter, 'https://nominatim.openstreetmap.org', config('app.name'));\n\n\t\t\treturn new ProviderCache($provider, app('cache.store'));\n\t\t} catch (GeocoderException|GuzzleException|\\RuntimeException|BindingResolutionException|\\InvalidArgumentException $e) {\n\t\t\tthrow new ExternalComponentFailedException('Could not create geocoder provider', $e);\n\t\t}\n\t}", "title": "" }, { "docid": "d5029d1aac927998368a434a53be39f7", "score": "0.5677415", "text": "private function loadCoreConfig()\n {\n try {\n ($this->app->make(ConfigProvider::class))->register();\n } catch (BindingResolutionException $e) {\n \\wp_die($e->getMessage());\n }\n }", "title": "" }, { "docid": "9f4b47ff331656d3780347ee5a2aa1b5", "score": "0.5465741", "text": "public function load_config() {\n if (!isset($this->config)) {\n $name = $this->get_name();\n $this->config = get_config(\"local_$name\");\n }\n }", "title": "" }, { "docid": "caecf78668eaf0084bf8b5eaae6687e4", "score": "0.536202", "text": "public function loadConfig();", "title": "" }, { "docid": "d56668751ba91a85de3926c7e39a7663", "score": "0.53073543", "text": "function plugin_googlemaps2_init()\n{\n\t// config 読み込み\n\t$config_file = PLUGIN_DATA_DIR.\"googlemaps2/config.php\";\n\tif (file_exists($config_file))\n\t{\n\t\tinclude($config_file);\n\t}\n}", "title": "" }, { "docid": "5d8955759d13892f4c52e6c55b19cf2f", "score": "0.5305967", "text": "function gmap_initialize_configuration() {\r\n\tinclude_spip('inc/gmap_config_utils');\r\n\t\r\n\t// API utilisée\r\n\tif ($initGis = charger_fonction(\"initialiser\", \"formulaires/configurer_gmap_gis\", true))\r\n\t\tcall_user_func($initGis);\r\n\telse\r\n\t\tgmap_init_config('gmap_api', 'api', 'gma3');\r\n\t\t\r\n\t// Paramétrage par défaut de l'API\r\n\tif ($iniAPI = charger_fonction(\"initialiser\", \"formulaires/configurer_gmap_api\", true))\r\n\t\tcall_user_func($initAPI);\r\n\t\r\n\t// Initialiser les zones autorisées\r\n\t$iniRUB = charger_fonction('init_rubgeo', 'configuration', true);\r\n\tif ($iniRUB)\r\n\t\t$iniRUB();\r\n\t\t\r\n\t// Initialiser l'interface dans toutes les APIs\r\n\t$iniUI = charger_fonction('init_map_defaults', 'configuration', true);\r\n\tif ($iniUI)\r\n\t\t$iniUI();\r\n\t$iniMarkersUI = charger_fonction('init_markers_behavior', 'configuration', true);\r\n\tif ($iniMarkersUI)\r\n\t\t$iniMarkersUI();\r\n\r\n // Réécrire tous les paramètres\r\n ecrire_metas();\r\n\r\n}", "title": "" }, { "docid": "0d9f625db2d4845d090fcb4569bd20bc", "score": "0.52961016", "text": "public function configureFacilityGeomap();", "title": "" }, { "docid": "1e10bf0726d653c51996a2b95c302db4", "score": "0.52455705", "text": "public function load_wp_sweepbright_geo() {\n\t\trequire_once plugin_dir_path( __DIR__ ). 'modules/class-wp-sweepbright-geo.php';\n\t}", "title": "" }, { "docid": "cfbf2eb917fdc4e29fe5d3e2c718f193", "score": "0.52329075", "text": "protected function loadGeocoderRequest(array $config, ContainerBuilder $container)\n {\n $container->setParameter('ivory_google_map.geocoder_request.address', $config['geocoder_request']['address']);\n\n $container->setParameter('ivory_google_map.geocoder_request.coordinate.latitude', $config['geocoder_request']['coordinate']['latitude']);\n $container->setParameter('ivory_google_map.geocoder_request.coordinate.longitude', $config['geocoder_request']['coordinate']['longitude']);\n $container->setParameter('ivory_google_map.geocoder_request.coordinate.no_wrap', $config['geocoder_request']['coordinate']['no_wrap']);\n\n $container->setParameter('ivory_google_map.geocoder_request.bound.south_west.latitude', $config['geocoder_request']['bound']['south_west']['latitude']);\n $container->setParameter('ivory_google_map.geocoder_request.bound.south_west.longitude', $config['geocoder_request']['bound']['south_west']['longitude']);\n $container->setParameter('ivory_google_map.geocoder_request.bound.south_west.no_wrap', $config['geocoder_request']['bound']['south_west']['no_wrap']);\n $container->setParameter('ivory_google_map.geocoder_request.bound.north_east.latitude', $config['geocoder_request']['bound']['north_east']['latitude']);\n $container->setParameter('ivory_google_map.geocoder_request.bound.north_east.longitude', $config['geocoder_request']['bound']['north_east']['longitude']);\n $container->setParameter('ivory_google_map.geocoder_request.bound.north_east.no_wrap', $config['geocoder_request']['bound']['north_east']['no_wrap']);\n\n $container->setParameter('ivory_google_map.geocoder_request.region', $config['geocoder_request']['region']);\n $container->setParameter('ivory_google_map.geocoder_request.language', $config['geocoder_request']['language']);\n $container->setParameter('ivory_google_map.geocoder_request.sensor', $config['geocoder_request']['sensor']);\n }", "title": "" }, { "docid": "34757d208a0dc1ca44adfc448cbbff06", "score": "0.5208333", "text": "protected function setUpProvider()\n {\n $this->provider = resolve(GoogleProvider::class);\n }", "title": "" }, { "docid": "549ae7800af348a7d2a9f42f8e4f6119", "score": "0.5164697", "text": "private function _loadConfig() {\n\n\n }", "title": "" }, { "docid": "b702785705258f3d26df56e088ee187e", "score": "0.5115735", "text": "protected abstract function loadConfig();", "title": "" }, { "docid": "82e2b884539fc3f18607046d42118bd7", "score": "0.5016731", "text": "public function getConfig()\n {\n return [\n 'service_manager' => [\n 'factories' => [\n Country\\CountryManager::class => Country\\Service\\CountryManagerServiceFactory::class,\n ],\n ],\n 'translator' => [\n 'translation_file_patterns' => [\n [\n 'type' => 'gettext',\n 'base_dir' => __DIR__ . '/../language/iso-3166-1',\n 'text_domain' => 'iso-3166-1',\n 'pattern' => '%s.mo',\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "dd7f794cb07edfe39beec63a3d6d24d5", "score": "0.4958643", "text": "protected function load_global_config() {\n if (is_null(self::$globalconfig)) {\n self::$globalconfig = get_config('filter_vowels');\n }\n }", "title": "" }, { "docid": "e769c637720f2596abf373053bf2fd87", "score": "0.49450877", "text": "public function getGeoCoderHelper()\n {\n return Mage::helper('innoexts_geocoder');\n }", "title": "" }, { "docid": "812ee00d9dc5ac483a5d97ecba159f44", "score": "0.49440292", "text": "public function __construct() {\n\n\t\t$local_pickup_plus = $this->get_plugin();\n\t\t$shipping_method = $local_pickup_plus->get_shipping_method_instance();\n\n\t\tif ( $shipping_method && $shipping_method->is_enabled() && $local_pickup_plus->geocoding_enabled() ) {\n\n\t\t\t$path = $local_pickup_plus->get_plugin_path() . '/includes/api/';\n\n\t\t\trequire_once( $path . 'class-wc-local-pickup-plus-geocoding-api-request.php' );\n\t\t\trequire_once( $path . 'class-wc-local-pickup-plus-geocoding-api-response.php' );\n\n\t\t\t$this->response_handler = 'WC_Local_Pickup_Plus_Geocoding_API_Response';\n\t\t\t$this->request_uri = 'https://maps.googleapis.com/maps/api/geocode';\n\t\t\t$this->enabled = true;\n\t\t}\n\t}", "title": "" }, { "docid": "d88e79079a4be7f9c7018e499bfa8a87", "score": "0.4904553", "text": "function get_ggeocoder_json($address='',$latlng='',$language='en',$sensor ='false') {\n\t$ggeo = new simple_ggeocoder_json_parser($address,$latlng,$language,$sensor);\n return $ggeo;\n}", "title": "" }, { "docid": "e820d8c5664e031541598e35f7072b28", "score": "0.49035263", "text": "public function getDefaultDriver()\n {\n return $this->container['config']['geocoder.default'] ?? 'nominatim';\n }", "title": "" }, { "docid": "869219b893e1eb89898e7bbfe737e4d6", "score": "0.48995042", "text": "public function __construct()\n {\n $this->sApiKey = appSetting('apiKey', 'nails/driver-geo-code-google');\n\n if (empty($this->sApiKey)) {\n throw new GeoCodeDriverException('A Google API key must be provided.');\n }\n\n // --------------------------------------------------------------------------\n\n $this->oHttpClient = Factory::factory('HttpClient');\n }", "title": "" }, { "docid": "d2a21cd706b0549af0c89e1f044d870c", "score": "0.48793817", "text": "private function _loadRouter()\n {\n $this->_config[ 'router' ] = $this->parseJSON( 'data/router.json' );\n }", "title": "" }, { "docid": "c958ef761c3a52b8d7cd2a02af36502b", "score": "0.48594078", "text": "private function loadConfig()\n {\n $this->config->loadConfig();\n }", "title": "" }, { "docid": "0e53417819fda9c5fafc3832997c1bb8", "score": "0.48485067", "text": "protected function initializeAction() {\n\t\tif (isset($this->settings['override']) && is_array($this->settings['override'])) {\n\t\t\t$override = $this->settings['override'];\n\t\t\tunset($this->settings['override']);\n\n\t\t\t$this->settings = array_merge($this->settings, $override);\n\t\t}\n\n\t\t$this->settings['allowedCountries'] = explode(',', $this->settings['allowedCountries']);\n\t\t$this->geocodeService->setSettings($this->settings);\n\t\t$this->locationRepository->setSettings($this->settings);\n\t}", "title": "" }, { "docid": "71bf50dd56b7a17f9be140fff85c2284", "score": "0.48393804", "text": "public function registerConfiguredProviders()\n {\n (new ProviderRepository($this, new Filesystem, $this->getCachedServicesPath()))\n ->load($this->config['app.providers']);\n }", "title": "" }, { "docid": "d445d6f3c410cb715d377d1656d47eea", "score": "0.48383123", "text": "public function __construct($name = null, $attribute = null, $resolveCallback = null) {\n parent::__construct($name, $attribute, $resolveCallback);\n\n $this->initLocation(Config::get('extended-place.default_geopoint.latitude'), Config::get('extended-place.default_geopoint.longitude'))\n ->zoom(Config::get('extended-place.default_zoom'));\n }", "title": "" }, { "docid": "c873fbdab781f686459b4eedb612426d", "score": "0.4837113", "text": "protected function setGeoIP2()\n {\n foreach ($this->config as $method => $file) {\n $method = ucwords(str_replace(['-', '_'], ' ', $method));\n $method = str_replace(' ', '', $method);\n\n if (method_exists($this, \"getFromGeoIP2\" . $method)) {\n $this->{\"getFromGeoIP2\" . $method}($file);\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "f20fd396c973912379f82aad03e0f14d", "score": "0.48253426", "text": "private function loadConfig()\n {\n // L4 does not currently have a method for loading an entire config file\n // so we have so spin through them individually for now\n $options = array('formClass', 'autocomplete', 'nameAsId', 'idPrefix', 'requiredLabel', 'requiredPrefix',\n 'requiredSuffix', 'requiredClass', 'controlGroupError', 'displayInlineErrors', 'commentClass'\n );\n foreach($options as $option)\n {\n $this->options[$option] = Config::get('formly::' . $option);\n }\n }", "title": "" }, { "docid": "620c088ef90d899745e3c51ce2fa7af1", "score": "0.47849584", "text": "public static function _init()\r\n\t{\r\n\t\tConfig::load('gateway', true);\r\n\t}", "title": "" }, { "docid": "eef636edd70ace04bda1ca0013dcee58", "score": "0.4770735", "text": "public function __construct(GeocoderInterface $geocoder)\n {\n $this->geocoder = $geocoder;\n }", "title": "" }, { "docid": "3f1e45fc264e22aef6cb5a9dd8a4e1ea", "score": "0.47549608", "text": "public function loadConfig()\n {\n $config_file = join(DIRECTORY_SEPARATOR, [$this->plugin_path, 'asset-loader.config.json']);\n if (file_exists($config_file)) {\n $this->config = json_decode(file_get_contents($config_file), TRUE);\n // if the config file exists but is invalid json, throw an error\n if (json_last_error() !== JSON_ERROR_NONE) {\n throw new \\Exception('DECODING the config file failed');\n }\n }\n }", "title": "" }, { "docid": "246e1ea358ba5707a12d17e8972647a0", "score": "0.47457382", "text": "function initialize() {\n $this->_configure = $this->config->item('user_map_configure');\n $this->_pagination = $this->config->item('pagination');\n $this->_validation = $this->config->item('user_map_validation');\n }", "title": "" }, { "docid": "ce17d1dd18b77e95ccf679ea04d50cc1", "score": "0.47348824", "text": "protected function initializeConfig()\n {\n $configLoader = new ConfigLoader(\n $this->getRootDir(),\n $this->getCacheDir(),\n $this->environment,\n $this->name\n );\n\n $this->config = $configLoader->loadConfig(\n $this->getConfigPath()\n );\n }", "title": "" }, { "docid": "a99f1dc7ed7e814fb1859e0675b64310", "score": "0.4718838", "text": "private function loadConfig() {\n $this->config['nbEltPerPage'] = 10;\n $this->config['firstPage'] = 1;\n }", "title": "" }, { "docid": "41273a0a0465cd093ddbd7e604821e51", "score": "0.47185907", "text": "private function loadConfig(){\n\n\t\t$xml = getConfigSection('services');\n\n\t\t$this->host = $xml->service[0]->host;\n\t\t$this->apiKey = $xml->service[0]->api_key;\n\t}", "title": "" }, { "docid": "2b3ae8abde7fb5fcacbe3755817833c6", "score": "0.47147796", "text": "public function registerConfiguredProviders();", "title": "" }, { "docid": "ad3ea273dab33b07ec79e16c745e573f", "score": "0.46870235", "text": "public function getConfig(){\n return [\n 'upship' => [\n 'location_js_url' => $this->helperData->getPickupLocationJsUrl()\n ],\n ];\n }", "title": "" }, { "docid": "221395637cda586b6f62edc682cd78e9", "score": "0.46853903", "text": "public function getConfig()\n {\n return $this->_addressConfig;\n }", "title": "" }, { "docid": "bea47b07b48af88d3a969537a1e02ec4", "score": "0.46697405", "text": "public function provides()\n {\n return ['geo'];\n }", "title": "" }, { "docid": "5c090ee7e69479ab3863b14d6404cb9a", "score": "0.46408924", "text": "public function __construct()\n {\n $this->model = new Countries(new Config([\n 'hydrate' => [\n 'elements' => [\n 'currencies' => false,\n 'flag' => true,\n 'timezones' => false,\n ],\n ],\n ]));\n }", "title": "" }, { "docid": "0d8936ac905478825afe61be31087253", "score": "0.46406645", "text": "public function provides(): array\n {\n return [\n GoogleGeocoding::class,\n ];\n }", "title": "" }, { "docid": "ea501650c97a57e6741a8713331ff0d4", "score": "0.4637042", "text": "function init_config() {\n $this->add_hook('config_get', array($this, 'hook_config_get'));\n $this->provide_default();\n }", "title": "" }, { "docid": "4fe17e78d58363835023957f2f52a3f8", "score": "0.46182907", "text": "protected function providerConfigOptions() {\n return [];\n }", "title": "" }, { "docid": "05eef221d5b2f72d6568034bdfb89096", "score": "0.45947328", "text": "private function initConfig()\n {\n if (!empty($this->container->getParameter('proxy.app_key')))\n {\n Config::set('app_key', $this->container->getParameter('proxy.app_key'));\n }\n\n if (!empty($this->container->getParameter('proxy.url_mode')))\n {\n Config::set('url_mode', $this->container->getParameter('proxy.url_mode'));\n }\n\n if (!empty($this->container->getParameter('proxy.index_redirect')))\n {\n Config::set('index_redirect', $this->container->getParameter('proxy.index_redirect'));\n }\n\n if (!empty($this->container->getParameter('proxy.error_redirect')))\n {\n Config::set('error_redirect', $this->container->getParameter('proxy.error_redirect'));\n }\n\n if (!empty($this->container->getParameter('proxy.plugins')))\n {\n Config::set('plugins', $this->container->getParameter('proxy.plugins'));\n }\n \n if (!empty($this->container->getParameter('proxy.curl')))\n {\n $proxyOptions = $this->container->getParameter('proxy.curl');\n $resultProxyOptions = [];\n\n foreach ($proxyOptions as $key => $value)\n {\n switch ($key)\n {\n case 'CURLOPT_PROXY':\n $key = CURLOPT_PROXY;\n break;\n case 'CURLOPT_PORT':\n $key = CURLOPT_PORT;\n break;\n case 'CURLOPT_HTTPPROXYTUNNEL':\n $key = CURLOPT_HTTPPROXYTUNNEL;\n break;\n case 'CURLOPT_CONNECTTIMEOUT':\n $key = CURLOPT_CONNECTTIMEOUT;\n break;\n }\n\n $resultProxyOptions[$key] = $value;\n }\n\n Config::set('curl', $resultProxyOptions);\n }\n }", "title": "" }, { "docid": "c019f4f8d77b94f59ae359402f831b75", "score": "0.45884362", "text": "public function loadMVCLayerConfiguration() {\n\t\t# INitialize vars\n\t\t$config =& $this->getConfig();\n\t\t# Load MVC Configuration objects\n\t\t$config->loadMVCObjects()\n\t\t# Load Services Configuration objects\n\t\t\t\t\t ->loadServices();\n\t}", "title": "" }, { "docid": "7da8fca85b8b99e48596ef1fec98c8d0", "score": "0.4580646", "text": "public function init()\n\t{\n\t\t$base_path = \\Juniper::registry('base_path');\n\t\t$base_config_path = $base_path.\"App/Config/Juniper.config.json\";\n\n\t\t$this->loadFile($base_config_path, 'juniper');\n\t}", "title": "" }, { "docid": "40c03ce829f1d36d5edd44535d4f497c", "score": "0.45743054", "text": "protected function loadConfig()\n {\n $file = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/config.json');\n $this->config = collect(json_decode($file, true));\n }", "title": "" }, { "docid": "69aae4fa6ce5eb28e9624ccf0db491c5", "score": "0.45623356", "text": "public function LoadCountryCodes()\n {\n if (empty($this->Country_Codes)) {\n $path = dirname(__FILE__);\n $lines = file(RootPath(\"/lib/country_codes.dat\"));\n foreach ($lines as $line) {\n list($co, $name) = explode(\"\\t\", trim($line));\n if ($co) {\n $this->Country_Codes[$co] = $name;\n }\n }\n }\n }", "title": "" }, { "docid": "ea7c6faa321f9b0b019578516ee55419", "score": "0.45611623", "text": "protected function getUserLocation()\n {\n $lRemoteAddr = $_SERVER['REMOTE_ADDR'];\n\n if ( $lRemoteAddr == '::1')\n {\n $lRemoteAddr = '91.109.47.11';\n $lRemoteAddr = '79.141.163.6';\n }\n\n $lConfiguration = array();\n\n //detect user town in Database\n $lData = $this->mEntityManager->getRepository(\"WegeooDataLayerBundle:Data\")\n ->findOneBy(array(\"key\" => $lRemoteAddr, \"type\" => \"userLocation\"));\n\n if ( count($lData) == 1)\n {\n $lConfiguration = $lData->getValue();\n }else{\n @$lContents = file_get_contents('http://www.geoplugin.net/php.gp?ip='.$lRemoteAddr);\n\n if ( $lContents !== FALSE)\n {\n $lUserLocalisation = unserialize($lContents);\n\n if ( is_null($lUserLocalisation) == FALSE && is_array($lUserLocalisation) && isset($lUserLocalisation[\"geoplugin_city\"]))\n {\n //country\n $lConfiguration[\"countryCode\"] \t= $lUserLocalisation[\"geoplugin_countryCode\"];\n\n //city\n $lConfiguration[\"cityName\"] \t= $lUserLocalisation[\"geoplugin_city\"];\n\n //get position\n $lConfiguration[\"lat\"] \t= $lUserLocalisation[\"geoplugin_latitude\"];\n $lConfiguration[\"lng\"] = $lUserLocalisation[\"geoplugin_longitude\"];\n\n //store data\n $lData = new Data();\n $lData->setKey($lRemoteAddr);\n $lData->setValue($lConfiguration);\n $lData->setType(\"userLocation\");\n $this->getDoctrine()->getManager()->persist($lData);\n $this->getDoctrine()->getManager()->flush();\n\n }else{\n $this->mLogger->warn(\"Can not get the user location\");\n }\n }else{\n $lConfiguration = FALSE;\n }\n }\n\n return $lConfiguration;\n }", "title": "" }, { "docid": "7c3a519e36e7bd49b91bbcc1f47be168", "score": "0.45606434", "text": "private function loadSourceMap(){\n $sources = $this->modx->getCollection('sources.modMediaSource');\n foreach($sources as $source){\n $source->initialize();\n $this->config['sources'][$source->get('id')] = new stdClass();\n $this->config['sources'][$source->get('id')]->url = $source->getBaseUrl();\n };\n }", "title": "" }, { "docid": "5ade7416c1bc2fcc54145e854cdcb45f", "score": "0.45604974", "text": "function getLatLongFromPostcodeOrSuburb($postcodeOrSuburb, $country, $gmapApiKey)\n{\n $postcodeOrSuburb = urlencode(trim($postcodeOrSuburb));\n \n /* connect to the google geocode service */ \n $file = \"https://maps.google.com/maps/api/geocode/xml?address=$postcodeOrSuburb,+AU&key=AIzaSyA5papzfh_eu6xDIvk4CLmyQ_0pDcKYJA8\";\n //echo $file;\n $xml = simplexml_load_file($file) or die(\"url not loading\");\n\t\n return ($xml);\n}", "title": "" }, { "docid": "da85e12adcdd17cc76ef3337b8b7481c", "score": "0.45511413", "text": "protected function init()\n {\n $this->config_file = FactoryDefault::getDefault()->get('config')->globals->config_path . \"config.xml\";\n try {\n $this->load();\n } catch (\\Exception $e) {\n $this->configxml = null ;\n }\n\n }", "title": "" }, { "docid": "e568cd7af40f18cd9835b8567e0e1191", "score": "0.45494148", "text": "protected static function get_config() {\n if (is_null(self::$config)) {\n self::$config = get_config('local_campusconnect');\n }\n return self::$config;\n }", "title": "" }, { "docid": "c74fee4c690e2402e7993306f9a66e20", "score": "0.45398206", "text": "protected static function _loadConfig()\n\t\t{\n\t\t\tglobal $config;\n\t\t\tself::$_config = $config;\n\t\t\tself::$_loaded = true;\n\t\t}", "title": "" }, { "docid": "049dc8d3bd7d6295ac3db83345a06f82", "score": "0.45384696", "text": "public static function register() {\n\t\tglobal $egMapsGeoNamesUser;\n\t\t\n\t\tif ( $egMapsGeoNamesUser !== '' ) {\n\t\t\t\\Maps\\Geocoders::registerGeocoder( 'geonames', __CLASS__ );\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c6b67e48dbe52af0ff46edae94802023", "score": "0.45384398", "text": "public function __construct(array $configuration, $plugin_id, $plugin_definition, Geocoder $geocoder, ProviderPluginManager $providerPluginManager, FormatterPluginManager $formatterPluginManager) {\n parent::__construct($configuration, $plugin_id, $plugin_definition, $geocoder, $providerPluginManager, $formatterPluginManager);\n $this->useAutocomplete = isset($configuration['use_autocomplete']) ? $configuration['use_autocomplete'] : 1;\n }", "title": "" }, { "docid": "c0042eb191a01ddcafeddce4e92909ed", "score": "0.4534292", "text": "public function registerConfiguredProviders()\n {\n $upload_dir_info = wp_upload_dir();\n $manifestPath_directory = $upload_dir_info['basedir'] . '/avh-rps/framework';\n CommonHelper::createDirectory($manifestPath_directory);\n $manifestPath = $manifestPath_directory . '/services.json';\n\n (new ProviderRepository($this, new Filesystem(), $manifestPath))->load($this->config['app.providers']);\n }", "title": "" }, { "docid": "bc7544a432d397b6f114fc3b2be3c716", "score": "0.45341578", "text": "public function registerConfiguredProviders()\n {\n //\n }", "title": "" }, { "docid": "bf10e9a046f716640329e94309a9b4c6", "score": "0.45271376", "text": "public function __construct(\\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {\n parent::__construct(\n 'Plugin/GeoLocator',\n $namespaces,\n $module_handler,\n 'Drupal\\geoip\\Plugin\\GeoLocator\\GeoLocatorInterface',\n 'Drupal\\geoip\\Annotation\\GeoLocator'\n );\n $this->alterInfo('geolocator_info');\n $this->setCacheBackend($cache_backend, 'geolocator_plugins', ['geoip']);\n }", "title": "" }, { "docid": "7816e44f42ea9614c8a451431e53061c", "score": "0.45266366", "text": "private static function _init()\n {\n if (!self::$_isInitialized) {\n self::$_sources = [];\n\n // Get list of default connection string sources.\n $default = ConnectionStringSource::getDefaultSources();\n foreach ($default as $name => $provider) {\n self::$_sources[$name] = $provider;\n }\n\n self::$_isInitialized = true;\n }\n }", "title": "" }, { "docid": "027a7eb81be2b0938d082132e4196f8d", "score": "0.45206124", "text": "public function __construct()\n {\n $countryCodeMap = array();\n $countryCodeMap[\"AS,WS,\"] = [\"US/Samoa\"]; // American Samoa, Western Samoa\n $countryCodeMap[\"CA,\"] = [\"US/Pacific\", \"US/Mountain\", \"US/Central\", \"Canada/Saskatchewan\", \"US/Eastern\", \"Canada/Atlantic\", \"Canada/Newfoundland\"]; // Canada\n $countryCodeMap[\"US,\"] = [\"US/Hawaii\", \"US/Alaska\", \"US/Pacific\", \"US/Arizona\", \"US/Mountain\", \"US/Central\", \"US/Eastern\", \"US/East-Indiana\"]; // USA\n $countryCodeMap[\"MX,\"] = [\"America/Tijuana\", \"America/Chihuahua\", \"America/Mexico_City\"]; // Mexico\n $countryCodeMap[\"CO,PE,EC,\"] = [\"America/Bogota\"]; // Columbia, Peru, Ecuador\n $countryCodeMap[\"BR,\"] = [\"America/Bogota\", \"America/Manaus\", \"Brazil/East\"]; // Brazil\n $countryCodeMap[\"VE,BO,\"] = [\"America/La_Paz\"]; // Venezuela, Bolivia\n $countryCodeMap[\"CL,\"] = [\"America/Santiago\"]; // Chile\n $countryCodeMap[\"AR,GY,\"] = [\"America/Buenos_Aires\"]; // Argentina, Guyana\n $countryCodeMap[\"GL,\"] = [\"America/Godthab\"]; // Greenland\n $countryCodeMap[\"UY,\"] = [\"America/Montevideo\"]; // Uruguay\n $countryCodeMap[\"GS,\"] = [\"Atlantic/South_Georgia\"]; // South Georgia\n $countryCodeMap[\"CV,\"] = [\"Atlantic/Cape_Verde\"]; // Cape Verde Is\n $countryCodeMap[\"IS,MA,LR,\"] = [\"Atlantic/Reykjavik\"]; // Iceland, Morocco, Liberia\n $countryCodeMap[\"GB,PT,IE,\"] = [\"Europe/London\"]; // Britain, Portugal, Ireland\n $countryCodeMap[\"FR,ES,BE,DK,\"] = [\"Europe/Paris\"]; //France, Spain, Belgium, Denmark\n $countryCodeMap[\"DE,NL,IT,AT,CH,SE,NO,\"] = [\"Europe/Amsterdam\"]; // Germany, Netherlans, Italy, Austria, Switzerland, Sweden, Norway (assumed)\n $countryCodeMap[\"GR,TR,RO,\"] = [\"Europe/Bucharest\"]; // Greece, Turkey, Romania\n $countryCodeMap[\"FI,UA,LV,BG,EE,LT,\"] = [\"Europe/Helsinki\"]; // Finland, Ukraine, Latvia, Bulgaria, Estonia, Lithuania\n $countryCodeMap[\"PL,HR,BA,MK,\"] = [\"Europe/Sarajevo\"]; // Poland, Croatia, Bosnia, Macedonia\n $countryCodeMap[\"CZ,SK,HU,SI,RS,\"] = [\"Europe/Belgrade\"]; // Czech R, Slovakia, Hungary, Slovenia, Serbia\n $countryCodeMap[\"JO,\"] = [\"Asia/Amman\"]; // Jordan\n $countryCodeMap[\"LB,\"] = [\"Asia/Beirut\"]; // Lebanon\n $countryCodeMap[\"EG,\"] = [\"Africa/Cairo\"]; // Egypt\n $countryCodeMap[\"ZW,ZA,\"] = [\"Africa/Harare\"]; // Zimbabwe, South Africa\n $countryCodeMap[\"IL,\"] = [\"Asia/Jerusalem\"]; // Israel\n $countryCodeMap[\"BY,\"] = [\"Europe/Minsk\"]; // Belarus\n $countryCodeMap[\"IQ,\"] = [\"Asia/Baghdad\"]; // Iraq\n $countryCodeMap[\"KW,SA,\"] = [\"Asia/Kuwait\"]; // Kuwait, Saudi Arabia\n $countryCodeMap[\"RU,\"] = [\"Europe/Moscow\", \"Asia/Yekaterinburg\", \"Asia/Novosibirsk\", \"Asia/Krasnoyarsk\", \"Asia/Ulaanbaatar\", \"Asia/Yakutsk\", \"Asia/Vladivostok\", \"Asia/Magadan\", \"Pacific/Fiji\"]; // Russia\n $countryCodeMap[\"KE,\"] = [\"Africa/Nairobi\"]; // Kenya\n $countryCodeMap[\"IR,\"] = [\"Asia/Tehran\"]; // Iran\n $countryCodeMap[\"AE,OM,\"] = [\"Asia/Muscat\"]; // UAE, Oman\n $countryCodeMap[\"AZ,\"] = [\"Asia/Baku\"]; // Azerbaijan\n $countryCodeMap[\"AM,\"] = [\"Asia/Yerevan\"]; // Armenia\n $countryCodeMap[\"AF,\"] = [\"Asia/Kabul\"]; // Afghanistan\n $countryCodeMap[\"PK,UZ,\"] = [\"Asia/Tashkent\"]; // Pakistan, Uzbekistan\n $countryCodeMap[\"IN,\"] = [\"Asia/Calcutta\"]; // India\n $countryCodeMap[\"NP,\"] = [\"Asia/Katmandu\"]; // Nepal\n $countryCodeMap[\"KZ,BD,\"] = [\"Asia/Dhaka\"]; // Kazakhstan, Bangladesh\n $countryCodeMap[\"MM,\"] = [\"Asia/Rangoon\"]; // Burma\n $countryCodeMap[\"TH,VN,\"] = [\"Asia/Jakarta\"]; // Thailand, Vietnam, Indonesia\n $countryCodeMap[\"MN,\"] = [\"Asia/Ulaanbaatar\"]; // Mongolia\n $countryCodeMap[\"MY,\"] = [\"Asia/Kuala_Lumpur\"]; // Malaysia\n $countryCodeMap[\"JP,\"] = [\"Asia/Tokyo\"]; // Japan\n $countryCodeMap[\"KR,KP,\"] = [\"Asia/Seoul\"]; // North Korea, South Korea\n $countryCodeMap[\"PG,\"] = [\"Pacific/Port_Moresby\"]; // Papua New Guinea\n $countryCodeMap[\"SB,NC,\"] = [\"Asia/Magadan\"]; // Solomon Is, New Caledonia\n $countryCodeMap[\"NZ,\"] = [\"Pacific/Auckland\"]; // New Zealand\n $countryCodeMap[\"CN,\"] = [\"Asia/Hong_Kong\"]; // China\n $countryCodeMap[\"AU,\"] = [\"Australia/Perth\", \"Australia/Adelaide\", \"Australia/Darwin\", \"Australia/Brisbane\", \"Australia/Sydney\", \"Australia/Hobart\"]; // Australia\n $countryCodeMap[\"FJ,MH,\"] = [\"Pacific/Fiji\"]; // Fiji, Marshall Is\n $countryCodeMap[\"TO,\"] = [\"Pacific/Tongatapu\"]; // Tonga\n $this->countryCodeMap = $countryCodeMap;\n\n // A limited list of time zones loosely based on Windows and/or Android date settings.\n // Unknown countries Indonesia, most of Africa, some of South America, Costa Rica, Cuba, Haiti, Domenican Republic\n // Potentially incorrect countries Congo, Kazakhstan.\n $timeZones = array();\n $timeZones[] = new TimeZone(\"UTC\", \"Coordinated Universal Time\");\n $timeZones[] = new TimeZone(\"US/Samoa\", \"Midway Island, Samoa\");\n $timeZones[] = new TimeZone(\"US/Hawaii\", \"Hawaii\");\n $timeZones[] = new TimeZone(\"US/Alaska\", \"Alaska\");\n $timeZones[] = new TimeZone(\"US/Pacific\", \"Pacific Time (US & Canada)\");\n $timeZones[] = new TimeZone(\"America/Tijuana\", \"Tijuana, Baja California\");\n $timeZones[] = new TimeZone(\"US/Arizona\", \"Arizona\");\n $timeZones[] = new TimeZone(\"America/Chihuahua\", \"Chihuahua, La Paz, Mazatlan\");\n $timeZones[] = new TimeZone(\"US/Mountain\", \"Mountain Time (US & Canada)\");\n $timeZones[] = new TimeZone(\"US/Central\", \"Central Time (US & Canada)\");\n $timeZones[] = new TimeZone(\"America/Mexico_City\", \"Guadalajara, Mexico City, Monterray\");\n $timeZones[] = new TimeZone(\"Canada/Saskatchewan\", \"Saskatchewan\");\n $timeZones[] = new TimeZone(\"America/Bogota\", \"Bogota, Lima, Quito, Rio Branco\");\n $timeZones[] = new TimeZone(\"US/Eastern\", \"Eastern Time (US & Canada)\");\n $timeZones[] = new TimeZone(\"US/East-Indiana\", \"Indiana (East)\");\n $timeZones[] = new TimeZone(\"Canada/Atlantic\", \"Atlantic Time (Canada)\");\n $timeZones[] = new TimeZone(\"America/La_Paz\", \"Caracas, La Paz\");\n $timeZones[] = new TimeZone(\"America/Manaus\", \"Manaus\");\n $timeZones[] = new TimeZone(\"America/Santiago\", \"Santiago\");\n $timeZones[] = new TimeZone(\"Canada/Newfoundland\", \"Newfoundland\");\n $timeZones[] = new TimeZone(\"Brazil/East\", \"Brasilia\");\n $timeZones[] = new TimeZone(\"America/Buenos_Aires\", \"Buenos Aires, Georgetown\");\n $timeZones[] = new TimeZone(\"America/Godthab\", \"Greenland\");\n $timeZones[] = new TimeZone(\"America/Montevideo\", \"Montevideo\");\n $timeZones[] = new TimeZone(\"Atlantic/South_Georgia\", \"Mid-Atlantic\");\n $timeZones[] = new TimeZone(\"Atlantic/Azores\", \"Azores\");\n $timeZones[] = new TimeZone(\"Atlantic/Cape_Verde\", \"Cape Verde Is.\");\n $timeZones[] = new TimeZone(\"Atlantic/Reykjavik\", \"Casablanca, Monrovia, Reykjavik\");\n $timeZones[] = new TimeZone(\"Europe/London\", \"Dublin, Edinburgh, Lisbon, London\");\n $timeZones[] = new TimeZone(\"Europe/Amsterdam\", \"Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna\");\n $timeZones[] = new TimeZone(\"Europe/Belgrade\", \"Belgrade, Bratislava, Budapest, Ljubliana, Prague\");\n $timeZones[] = new TimeZone(\"Europe/Paris\", \"Brussels, Copenhagen, Madrid, Paris\");\n $timeZones[] = new TimeZone(\"Europe/Sarajevo\", \"Sarajevo, Skopje, Warsaw, Zagreb\");\n $timeZones[] = new TimeZone(\"Asia/Amman\", \"Amman\");\n $timeZones[] = new TimeZone(\"Europe/Bucharest\", \"Athens, Bucharest, Istanbul\");\n $timeZones[] = new TimeZone(\"Asia/Beirut\", \"Beirut\");\n $timeZones[] = new TimeZone(\"Africa/Cairo\", \"Cairo\");\n $timeZones[] = new TimeZone(\"Africa/Harare\", \"Harare, Pretoria\");\n $timeZones[] = new TimeZone(\"Europe/Helsinki\", \"Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius\");\n $timeZones[] = new TimeZone(\"Asia/Jerusalem\", \"Jerusalem\");\n $timeZones[] = new TimeZone(\"Europe/Minsk\", \"Minsk\");\n $timeZones[] = new TimeZone(\"Asia/Baghdad\", \"Baghdad\");\n $timeZones[] = new TimeZone(\"Asia/Kuwait\", \"Kuwait, Riyadh\");\n $timeZones[] = new TimeZone(\"Europe/Moscow\", \"Moscow, St. Petersburg, Volgograd\");\n $timeZones[] = new TimeZone(\"Africa/Nairobi\", \"Nairobi\");\n $timeZones[] = new TimeZone(\"Asia/Tehran\", \"Tehran\");\n $timeZones[] = new TimeZone(\"Asia/Muscat\", \"Abu Dhabi, Muscat\");\n $timeZones[] = new TimeZone(\"Asia/Baku\", \"Baku\");\n $timeZones[] = new TimeZone(\"Asia/Yerevan\", \"Yerevan\");\n $timeZones[] = new TimeZone(\"Asia/Kabul\", \"Kabul\");\n $timeZones[] = new TimeZone(\"Asia/Yekaterinburg\", \"Ekaterinburg\");\n $timeZones[] = new TimeZone(\"Asia/Tashkent\", \"Islamabad, Karachi, Tashkent\");\n $timeZones[] = new TimeZone(\"Asia/Calcutta\", \"Chennai, Kolkata, Mumbai, New Delhi\");\n $timeZones[] = new TimeZone(\"Asia/Katmandu\", \"Katmandu\");\n $timeZones[] = new TimeZone(\"Asia/Novosibirsk\", \"Novosibirsk\");\n $timeZones[] = new TimeZone(\"Asia/Dhaka\", \"Astana, Dhaka\");\n $timeZones[] = new TimeZone(\"Asia/Rangoon\", \"Yangon (Rangoon)\");\n $timeZones[] = new TimeZone(\"Asia/Jakarta\", \"Bangkok, Hanoi, Jakarta\");\n $timeZones[] = new TimeZone(\"Asia/Krasnoyarsk\", \"Krasnoyarsk\");\n $timeZones[] = new TimeZone(\"Asia/Hong_Kong\", \"Beijing, Chongqing, Hong Kong, Urumqi\");\n $timeZones[] = new TimeZone(\"Asia/Ulaanbaatar\", \"Irkutsk, Ulaan Bataar\");\n $timeZones[] = new TimeZone(\"Asia/Kuala_Lumpur\", \"Kuala Lumpur, Singapore\");\n $timeZones[] = new TimeZone(\"Australia/Perth\", \"Perth\");\n $timeZones[] = new TimeZone(\"Asia/Taipei\", \"Taipei\");\n $timeZones[] = new TimeZone(\"Asia/Tokyo\", \"Osaka, Sapporo, Tokyo\");\n $timeZones[] = new TimeZone(\"Asia/Seoul\", \"Seoul\");\n $timeZones[] = new TimeZone(\"Asia/Yakutsk\", \"Yakutsk\");\n $timeZones[] = new TimeZone(\"Australia/Adelaide\", \"Adelaide\");\n $timeZones[] = new TimeZone(\"Australia/Darwin\", \"Darwin\");\n $timeZones[] = new TimeZone(\"Australia/Brisbane\", \"Brisbane\");\n $timeZones[] = new TimeZone(\"Pacific/Port_Moresby\", \"Guam, Port Moresby\");\n $timeZones[] = new TimeZone(\"Australia/Sydney\", \"Canberra, Melbourne, Sydney\");\n $timeZones[] = new TimeZone(\"Australia/Hobart\", \"Hobart\");\n $timeZones[] = new TimeZone(\"Asia/Vladivostok\", \"Vladivostok\");\n $timeZones[] = new TimeZone(\"Asia/Magadan\", \"Magadan, Solomon Is., New Caledonia\");\n $timeZones[] = new TimeZone(\"Pacific/Auckland\", \"Auckland, Wellington\");\n $timeZones[] = new TimeZone(\"Pacific/Fiji\", \"Fiji, Kamchatka, Marshall Is.\");\n $timeZones[] = new TimeZone(\"Pacific/Tongatapu\", \"Nuku'alofa\");\n $this->timeZones = $timeZones;\n }", "title": "" }, { "docid": "f8cd02c5a823c7afcade1daa465f5df9", "score": "0.45165253", "text": "public function geolocateCallback($js) {\n\t\tif ($js === false) {\n\t\t\t$this->_runtimeConfig['callbacks']['geolocate'] = false;\n\n\t\t\treturn;\n\t\t}\n\t\t$this->_runtimeConfig['callbacks']['geolocate'] = $js;\n\t}", "title": "" }, { "docid": "8bae96717303ebe6af509a058d9f78e3", "score": "0.45085832", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('Address.Address');\n }", "title": "" }, { "docid": "340eb9e5a068a7ad4e5fb48f8fa9766c", "score": "0.45034763", "text": "static public function loadConfig()\n {\n self::$mConfig = self::$mConfig ? : self::getFile('config');\n }", "title": "" }, { "docid": "6f05e839120f1a92a317aa9b29e0ed0b", "score": "0.4496793", "text": "public function getProvider()\n {\n if (!$this->provider) {\n $this->provider = config($this->configPath . '.gateway', 'braintree');\n }\n\n $provider = config(\n $this->configPath . '.providers.' . $this->provider\n );\n\n return app()->make($provider);\n }", "title": "" }, { "docid": "4fb29afd7e5b9121645cbd4be7a39764", "score": "0.44928443", "text": "public function get_provider_settings() {\n\t\t\treturn $this->_provider_settings;\n\t\t}", "title": "" }, { "docid": "b4bc5f262021e7567a990001e9a4e82d", "score": "0.44887054", "text": "function serendipity_load_configuration($author = null) {\n global $serendipity;\n static $config_loaded = array();\n\n if (isset($config_loaded[$author])) {\n return true;\n }\n\n if (!empty($author)) {\n // Replace default configuration directives with user-relevant data\n $rows =& serendipity_db_query(\"SELECT name,value\n FROM {$serendipity['dbPrefix']}config\n WHERE authorid = '\". (int)$author .\"'\");\n } else {\n // Only get default variables, user-independent (frontend)\n $rows =& serendipity_db_query(\"SELECT name, value\n FROM {$serendipity['dbPrefix']}config\n WHERE authorid = 0\");\n }\n\n if (is_array($rows)) {\n foreach ($rows as $row) {\n // Convert 'true' and 'false' into booleans\n $serendipity[$row['name']] = serendipity_get_bool($row['value']);\n }\n }\n $config_loaded[$author] = true;\n\n // Set baseURL to defaultBaseURL\n if ((empty($author) || empty($serendipity['baseURL'])) && isset($serendipity['defaultBaseURL'])) {\n $serendipity['baseURL'] = $serendipity['defaultBaseURL'];\n }\n\n // check language selection or fallback\n if (isset($serendipity['lang']) && !isset($serendipity['languages'][$serendipity['lang']])) {\n $serendipity['lang'] = $serendipity['autolang'];\n }\n \n if (empty($author)) {\n $serendipity['default_lang'] = $serendipity['lang'];\n }\n\n}", "title": "" }, { "docid": "b8001e7dcae6ed9d00483d34365b6212", "score": "0.44801724", "text": "public function init() {\n\t\tif( $acf_key = get_field( $this->acf_api_key, 'option' ) )\n\t\t\tself::$gmaps_api_key = $acf_key;\n\n\t\tif( self::$gmaps_api_key )\n\t\t\t$this->register_js();\n\n\t}", "title": "" }, { "docid": "a3d0160b784ea53d2010192bfc6737fc", "score": "0.44718423", "text": "public static function loadDotbConfig()\n {\n global $dotb_config;\n\n if ($dotb_config) {\n return;\n }\n\n if (is_file('config.php')) {\n require_once('config.php');\n }\n\n if (is_file('config_override.php')) {\n require_once('config_override.php');\n }\n }", "title": "" }, { "docid": "9f8eb9ed8fbe109d8337c0e840aa7cb2", "score": "0.4467625", "text": "function balise_GEOIP_COUNTRY_CODE ($p) \n{\n\t$args = interprete_argument_balise(1, $p);\n\t\n\t$p->code = \"calculer_GEOIP_COUNTRY_CODE($args)\";\n\t$p->interdire_scripts = false;\n\treturn ($p);\n}", "title": "" }, { "docid": "5823d9b91693bc5e551a9d1970ab7d69", "score": "0.4459993", "text": "protected function loadPlaceSearch(array $config, ContainerBuilder $container)\n {\n $container->setParameter('ivory_google_map.place_search.https', $config['place_search']['https']);\n $container->setParameter('ivory_google_map.place_search.format', $config['place_search']['format']);\n $container->setParameter('ivory_google_map.place_search.url', $config['place_search']['url']);\n }", "title": "" }, { "docid": "a8bd673472c9827aa38b6cb7bad045d7", "score": "0.4455039", "text": "public static function getDefaultConfig()\n {\n return [\n 'provider' => 'leaflet', 'zoom' => 13, 'tileLayer_url' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', 'tileLayer_attribution' => 'Map data © <a href=\"https://openstreetmap.org\">OpenStreetMap</a> contributors', 'tileLayer_minZoom' => 0, 'tileLayer_maxZoom' => 18, 'tileLayer_id' => '', 'tileLayer_accessToken' => '',\n ];\n }", "title": "" }, { "docid": "bb4f841518874749d9f63bebeda52b76", "score": "0.44523406", "text": "public function load() {\n\n\t\t$providers = array(\n\t\t\t'constant-contact',\n\t\t);\n\n\t\t$providers = apply_filters( 'wpforms_load_providers', $providers );\n\n\t\tforeach ( $providers as $provider ) {\n\n\t\t\t$provider = sanitize_file_name( $provider );\n\n\t\t\trequire_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php';\n\t\t}\n\t}", "title": "" }, { "docid": "dbd8072262ba03f970511fa918823946", "score": "0.4442447", "text": "function yt_migration_drush_latlon() {\n module_load_include('inc', 'geocoder', 'plugins/geocoder_handler/google');\n include_once(drupal_get_path('module', 'geofield') . '/includes/GeoGenerator.php');\n $all_entity_info = entity_get_info();\n foreach ($all_entity_info as $entity_type => $entity_info) {\n if ($entity_type == 'profile2') {\n if ($entity_info['fieldable']) {\n foreach ($entity_info['bundles'] as $bundle_name => $bundle_info) {\n foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $field_instance) {\n $field_info = field_info_field($field_name);\n if ($field_instance['widget']['type'] === 'geocoder') {\n $entity_load = $entity_info['load hook'];\n $query = db_select($entity_info['base table'])\n ->fields($entity_info['base table'], array($entity_info['entity keys']['id']))\n ->condition($entity_info['entity keys']['bundle'], $bundle_name);\n $results = $query->execute();\n while ($id = $results->fetchField()) {\n $profile_array = array();\n if (in_array($id, $profile_array)) {\n $entity = $entity_load($id);\n $langcode = field_language($entity_type, $entity, $field_name);\n $items = field_get_items($entity_type, $entity, $field_name, $langcode);\n if (count($entity->field_office_address)) {\n $field_item = array();\n $options = array();\n $geometries = array();\n if ($field_info['type'] == 'geofield') {\n geophp_load();\n $field_item['name'] = $entity->field_office_address[LANGUAGE_NONE][0]['name'];\n $field_item['street'] = $entity->field_office_address[LANGUAGE_NONE][0]['street'];\n $field_item['additional'] = $entity->field_office_address[LANGUAGE_NONE][0]['additional'];\n $field_item['city'] = $entity->field_office_address[LANGUAGE_NONE][0]['city'];\n $field_item['province'] = $entity->field_office_address[LANGUAGE_NONE][0]['province'];\n $field_item['country'] = $entity->field_office_address[LANGUAGE_NONE][0]['country'];\n $field_item['postal_code'] = $entity->field_office_address[LANGUAGE_NONE][0]['postal_code'];\n $options['geometry_type'] = 'viewport';\n $options['all_results'] = '1';\n $options['reject_results'] = array('APPROXIMATE' => 0, 'GEOMETRIC_CENTER' => 0, 'RANGE_INTERPOLATED' => 0, 'ROOFTOP' => 0);\n $address = geocoder_widget_parse_locationfield($field_item);\n $geometry = geocoder_google($address, $options);\n if ($geometry instanceof Geometry) {\n $geometries[] = $geometry;\n }\n $target_info = field_info_field($field_instance['field_name']);\n $target_type = $target_info['type'];\n $values = geocoder_widget_resolve_deltas($geometries, 'default', $target_type);\n //$field_value['geohash'] = $point['geohash'];\n $entity->field_latlong = array(LANGUAGE_NONE => $values);\n //$entity->original = array();\n entity_save($entity_type, $entity);\n /* db_merge('field_data_field_latlong')\n ->fields(array(\n 'geom' => $values['0']['geom'],\n 'geo_type' => $values['0']['geo_type'],\n 'lat' => $values['0']['lat'],\n 'lon' => $values['0']['lon'],\n 'top' => $values['0']['top'],\n 'bottom' => $values['0']['bottom'],\n 'right' => $values['0']['right'],\n 'left' => $values['0']['left'],\n 'geohash' => $values['0']['geohash']\n ))\n ->key(array(\n 'entity_type' => 'profile2',\n 'bundle' => 'author',\n 'deleted' => '0',\n 'revision_id' => $entity->pid,\n 'entity_id' => $entity->pid,\n 'delta' => '0',\n 'language' => LANGUAGE_NONE,\n ))->execute();\n\n db_merge('field_revision_field_latlong')\n ->key(array(\n 'entity_type' => 'profile2',\n 'bundle' => 'author',\n 'deleted' => '0',\n 'revision_id' => $entity->pid,\n 'entity_id' => $entity->pid,\n 'delta' => '0',\n 'language' => LANGUAGE_NONE,\n ))\n ->fields(array(\n 'geom' => $values['0']['geom'],\n 'geo_type' => $values['0']['geo_type'],\n 'lat' => $values['0']['lat'],\n 'lon' => $values['0']['lon'],\n 'top' => $values['0']['top'],\n 'bottom' => $values['0']['bottom'],\n 'right' => $values['0']['right'],\n 'left' => $values['0']['left'],\n 'geohash' => $values['0']['geohash'],\n ))\n ->execute(); */\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n cache_clear_all('*', 'cache_entity_profile2', TRUE);\n}", "title": "" }, { "docid": "f15fdb64c0a8e01a937f4c01c6b4ea88", "score": "0.44412124", "text": "private function load(): void\n {\n $this->locales->loadFromArray($this->getConfig('locales'));\n $this->setSupportedLocales($this->getConfig('supported-locales'));\n $this->setDefaultLocale();\n }", "title": "" }, { "docid": "b12bcb240c18e6cfc88b8e8df890523f", "score": "0.44410384", "text": "public function getByGeocode(): ByGeocode\n {\n return $this->byGeocode;\n }", "title": "" }, { "docid": "e4d1a04c075801d8cb312454026aec1b", "score": "0.44405025", "text": "public function __construct($postcode){\n\t\t// file_get_contents is a really rubbish function, would usually use cURL but not all version of PHP come with cURL installed by default\n\t\tif(!$postcodeInfo = @json_decode(file_get_contents(self::POSTCODE_API_LOOKUP . $postcode))){\n\t\t\tthrow new Exception('Postcode Not Found');\n\t\t}\n\t\tif($postcodeInfo->status == 200){\n\t\t\t$this->latitude = $postcodeInfo->result->latitude;\n\t\t\t$this->longitude = $postcodeInfo->result->longitude;\n\t\t\t$this->getGeoPointsAroundPoint($this->latitude, $this->longitude, 5000);\n\t\t}\n\n\t}", "title": "" }, { "docid": "b6edca688013b4cfa709c9c6800068f1", "score": "0.44402584", "text": "private function loadConfig(): void\n {\n $request = new UnitRequest($this->socket, $this->address);\n $result = $request->send('/config');\n $this->_config = new Config($result, new UnitRequest($this->socket, $this->address));\n }", "title": "" }, { "docid": "e865a9d5602b872d4eabf816bd96cf7a", "score": "0.44260278", "text": "protected function loadExtConf()\r\n {\r\n // Load the configuration\r\n $this->lConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['l10nmgr']);\r\n }", "title": "" }, { "docid": "0392a76689dcff6d831e26dc5e40eba5", "score": "0.44229198", "text": "protected function _getOriginAddressFromConfig()\n {\n /** @var Oggetto_Shipping_Helper_Data $helper */\n $helper = Mage::helper('oggetto_shipping');\n\n $originAddress = [\n 'country' => $helper->getShippingOriginCountryId(),\n 'region' => $helper->getShippingOriginRegionId(),\n 'city' => $helper->getShippingOriginCity()\n ];\n\n return $originAddress;\n }", "title": "" }, { "docid": "43c159df215c4ef756e6088c130b15da", "score": "0.44191295", "text": "function getGeocodeAddress($geocode_stats = null) {\n //http://maps.googleapis.com/maps/api/geocode/json?latlng=51.47144,-0.21101&sensor=true\n //http://maps.googleapis.com/maps/api/geocode/json?latlng=-37.84237,144.94707&sensor=true\n\n $city = \"\";\n\n\n $geocode_stats = @file_get_contents(\"http://maps.googleapis.com/maps/api/geocode/json?latlng=\" . $lat . \",\" . $long . \"&sensor=false\");\n $output = json_decode($geocode_stats);\n\n if (isset($output->results)) {\n $cityGeoCodeArr = $output->results;\n// pr($cityGeoCodeArr);die;\n foreach ($cityGeoCodeArr as $singleCityGeoCode) {\n if (isset($singleCityGeoCode->types)) {\n $addressComponentTypes = $singleCityGeoCode->types;\n foreach ($addressComponentTypes as $addrTypeObj) {\n if ($addrTypeObj == 'street_address') {\n if (isset($singleCityGeoCode->address_components)) {\n $addressComponents = $singleCityGeoCode->address_components;\n $singleTypeArr = array();\n foreach ($addressComponents as $singleAddrComponent) {\n //pr($addressComponents);die;\n $singleTypeArr = $singleAddrComponent->types;\n if (!empty($singleTypeArr)) {\n foreach ($singleTypeArr as $singleType) {\n if ($singleType == 'locality') {\n $city = $singleAddrComponent->long_name;\n break;\n }\n\n if ($city != \"\") {\n break;\n }\n }\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n\n if ($city != \"\") {\n break;\n }\n } elseif ($addrTypeObj == 'locality') {\n\n\n if (isset($singleCityGeoCode->address_components)) {\n $addressComponents = $singleCityGeoCode->address_components;\n $singleTypeArr = array();\n foreach ($addressComponents as $singleAddrComponent) {\n //pr($singleAddrComponent);die;\n $singleTypeArr = $singleAddrComponent->types;\n if (!empty($singleTypeArr)) {\n foreach ($singleTypeArr as $singleType) {\n if ($singleType == 'locality') {\n $city = $singleAddrComponent->short_name;\n break;\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n } elseif ($addrTypeObj == 'country') {\n if (isset($singleCityGeoCode->address_components)) {\n $addressComponents = $singleCityGeoCode->address_components;\n $singleTypeArr = array();\n foreach ($addressComponents as $singleAddrComponent) {\n //pr($singleAddrComponent);die;\n $singleTypeArr = $singleAddrComponent->types;\n if (!empty($singleTypeArr)) {\n foreach ($singleTypeArr as $singleType) {\n if ($singleType == 'locality') {\n $city = $singleAddrComponent->short_name;\n break;\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n if ($city != \"\") {\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "2b22e8a556a99c7fb3301628c536638a", "score": "0.44139275", "text": "function jeo_map_conf() {\r\n\tglobal $jeo;\r\n\treturn $jeo->map_conf();\r\n}", "title": "" }, { "docid": "d9d68b2a74e0cc22cdbb6e6fc1450565", "score": "0.44116172", "text": "public static function init()\n {\n static $init_complete = false;\n if(!$init_complete) {\n //echo \"Initializing config...\", PHP_EOL;\n $localConfigFilePath = self::locateLocalConfigFile();\n //echo \"Checking local config {$localConfigFilePath} ...\", PHP_EOL;\n if(file_exists($localConfigFilePath)) {\n //echo \"Local config {$localConfigFilePath} found, loading...\", PHP_EOL;\n require_once $localConfigFilePath;\n }\n self::loadAdditionalConfigs();\n $init_complete = true;\n }\n }", "title": "" }, { "docid": "ae44c77e33919296f83c3426183abf19", "score": "0.44107103", "text": "private function load_config()\n\t{\n\t\tif (self::$config == null) {\n\t\t\tif (file_exists(CONFIG_DIR.'exception'.EXT)) {\n\t\t\t\tinclude CONFIG_DIR.'exception'.EXT;\n\t\t\t\tself::$config = $config;\n\t\t\t} else {\n\t\t\t\texit('Unable to load Exception configuration from \"'.CONFIG_DIR.'exception'.EXT.'\".');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6fae077352e3570433b7e72d86afd0e3", "score": "0.44099477", "text": "public static function get_config();", "title": "" }, { "docid": "5c9432ebe743ab1f001ea3a08070d21b", "score": "0.44074324", "text": "private function _getConfig() {\r\n\t\t$this->_config = json_decode(file_get_contents('config.json'), true);\r\n\t}", "title": "" }, { "docid": "933ecaf2ecc4b2a169e0ed52831a8b0a", "score": "0.4397132", "text": "public function load(ObjectManager $manager)\n {\n // Afghanistan\n $country = new Country('Afghanistan', 'AF', 'AFG');\n $country->addRegion(new Region('Badakhshan', 'BAD'));\n $country->addRegion(new Region('Badghis', 'BAH'));\n $country->addRegion(new Region('Baghlan', 'BAG'));\n $country->addRegion(new Region('Balkh', 'BAL'));\n $country->addRegion(new Region('Bamian', 'BAM'));\n $country->addRegion(new Region('Farah', 'FAR'));\n $country->addRegion(new Region('Faryab', 'FAY'));\n $country->addRegion(new Region('Ghazni', 'GHA'));\n $country->addRegion(new Region('Ghowr', 'GHO'));\n $country->addRegion(new Region('Helmand', 'HEL'));\n $country->addRegion(new Region('Herat', 'HER'));\n $country->addRegion(new Region('Jowzjan', 'JOW'));\n $country->addRegion(new Region('Kabol', 'KAB'));\n $country->addRegion(new Region('Kandahar', 'KAN'));\n $country->addRegion(new Region('Kapisa', 'KAP'));\n $country->addRegion(new Region('Khowst', 'KHW'));\n $country->addRegion(new Region('Konar', 'KNR'));\n $country->addRegion(new Region('Kondoz', 'KON'));\n $country->addRegion(new Region('Laghman', 'LAG'));\n $country->addRegion(new Region('Lowgar', 'LOW'));\n $country->addRegion(new Region('Nangarhar', 'NAN'));\n $country->addRegion(new Region('Nimruz', 'NIM'));\n $country->addRegion(new Region('Nurestan', 'NUR'));\n $country->addRegion(new Region('Oruzgan', 'ORU'));\n $country->addRegion(new Region('Paktia', 'PKT'));\n $country->addRegion(new Region('Paktika', 'PAK'));\n $country->addRegion(new Region('Parvan', 'PAR'));\n $country->addRegion(new Region('Samangan', 'SAM'));\n $country->addRegion(new Region('Sar-e', 'Pol'));\n $country->addRegion(new Region('Takhar', 'TAK'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Vardak', 'VAR'));\n $country->addRegion(new Region('Zabol', 'ZAB'));\n $manager->persist($country);\n\n // Albania\n $country = new Country('Albania', 'AL', 'ALB');\n $country->addRegion(new Region('Beratit', 'BER'));\n $country->addRegion(new Region('Dibres', 'DIB'));\n $country->addRegion(new Region('Durresit', 'DUR'));\n $country->addRegion(new Region('Elbasanit', 'ELB'));\n $country->addRegion(new Region('Fierit', 'FIE'));\n $country->addRegion(new Region('Gjirokastres', 'GJI'));\n $country->addRegion(new Region('Korces', 'KOR'));\n $country->addRegion(new Region('Kukesit', 'KUK'));\n $country->addRegion(new Region('Lezhes', 'LEZ'));\n $country->addRegion(new Region('Shkodres', 'SHK'));\n $country->addRegion(new Region('Tiranes', 'TIR'));\n $country->addRegion(new Region('Vlores', 'VLO'));\n $manager->persist($country);\n\n // Algeria\n $country = new Country('Algeria', 'DZ', 'DZA');\n $country->addRegion(new Region('Adrar', 'ADR'));\n $country->addRegion(new Region('Ain', 'Def'));\n $country->addRegion(new Region('Ain', 'Tem'));\n $country->addRegion(new Region('Alger', 'ALG'));\n $country->addRegion(new Region('Annaba', 'ANN'));\n $country->addRegion(new Region('Batna', 'BAT'));\n $country->addRegion(new Region('Bechar', 'BEC'));\n $country->addRegion(new Region('Bejaia', 'BEJ'));\n $country->addRegion(new Region('Biskra', 'BIS'));\n $country->addRegion(new Region('Blida', 'BLI'));\n $country->addRegion(new Region('Bordj', 'Bou'));\n $country->addRegion(new Region('Bouira', 'BOU'));\n $country->addRegion(new Region('Chlef', 'CHL'));\n $country->addRegion(new Region('Constantine', 'CON'));\n $country->addRegion(new Region('Djelfa', 'DJE'));\n $country->addRegion(new Region('El', 'Bay'));\n $country->addRegion(new Region('El', 'Oue'));\n $country->addRegion(new Region('Ghardaia', 'GHA'));\n $country->addRegion(new Region('Guelma', 'GUE'));\n $country->addRegion(new Region('Illizi', 'ILL'));\n $country->addRegion(new Region('Jijel', 'JIJ'));\n $country->addRegion(new Region('Khenchela', 'KHE'));\n $country->addRegion(new Region('Laghouat', 'LAG'));\n $country->addRegion(new Region('Mascara', 'MAS'));\n $country->addRegion(new Region('Medea', 'MED'));\n $country->addRegion(new Region('Mila', 'MIL'));\n $country->addRegion(new Region('Mostaganem', 'MOS'));\n $country->addRegion(new Region('Naama', 'NAA'));\n $country->addRegion(new Region('Oran', 'ORA'));\n $country->addRegion(new Region('Ouargla', 'OUA'));\n $country->addRegion(new Region('Oum', 'el'));\n $country->addRegion(new Region('Relizane', 'REL'));\n $country->addRegion(new Region('Saida', 'SAI'));\n $country->addRegion(new Region('Setif', 'SET'));\n $country->addRegion(new Region('Sidi', 'Bel'));\n $country->addRegion(new Region('Skikda', 'SKI'));\n $country->addRegion(new Region('Souk', 'Ahr'));\n $country->addRegion(new Region('Tamanghasset', 'TAM'));\n $country->addRegion(new Region('Tebessa', 'TEB'));\n $country->addRegion(new Region('Tiaret', 'TIA'));\n $country->addRegion(new Region('Tindouf', 'TIN'));\n $country->addRegion(new Region('Tipaza', 'TIP'));\n $country->addRegion(new Region('Tissemsilt', 'TIS'));\n $country->addRegion(new Region('Tizi', 'Ouz'));\n $country->addRegion(new Region('Tlemcen', 'TLE'));\n $manager->persist($country);\n\n // American Samoa\n $country = new Country('American Samoa', 'AS', 'ASM');\n $country->addRegion(new Region('American Samoa', 'AS'));\n $manager->persist($country);\n\n // Andorra\n $country = new Country('Andorra', 'AD', 'AND');\n $country->addRegion(new Region('Andorra', 'AND'));\n $manager->persist($country);\n\n // Angola\n $country = new Country('Angola', 'AO', 'AGO');\n $country->addRegion(new Region('Benguela', 'BEN'));\n $country->addRegion(new Region('Huambo', 'HUA'));\n $country->addRegion(new Region('Luanda', 'LUA'));\n $country->addRegion(new Region('Lunda', 'Sul'));\n $manager->persist($country);\n\n // Anguilla\n $country = new Country('Anguilla', 'AI', 'AIA');\n $country->addRegion(new Region('Anguilla', 'ANG'));\n $manager->persist($country);\n\n // Antarctica\n $country = new Country('Antarctica', 'AQ', 'ATA');\n $country->addRegion(new Region('Antarctica', 'ARC'));\n $manager->persist($country);\n\n // Antigua and Barbuda\n $country = new Country('Antigua and Barbuda', 'AG', 'ATG');\n $manager->persist($country);\n\n // Argentina\n $country = new Country('Argentina', 'AR', 'ARG');\n $country->addRegion(new Region('Buenos', 'Air'));\n $country->addRegion(new Region('Catamarca', 'CAT'));\n $country->addRegion(new Region('Chaco', 'CHA'));\n $country->addRegion(new Region('Chubut', 'CHU'));\n $country->addRegion(new Region('Cordoba', 'CDB'));\n $country->addRegion(new Region('Corrientes', 'COR'));\n $country->addRegion(new Region('Distrito', 'Fed'));\n $country->addRegion(new Region('Entre', 'Rio'));\n $country->addRegion(new Region('Formosa', 'FOR'));\n $country->addRegion(new Region('Jujuy', 'JUJ'));\n $country->addRegion(new Region('La', 'Pam'));\n $country->addRegion(new Region('La', 'Rio'));\n $country->addRegion(new Region('Mendoza', 'MEN'));\n $country->addRegion(new Region('Misiones', 'MIS'));\n $country->addRegion(new Region('Neuquen', 'NEU'));\n $country->addRegion(new Region('Rio', 'Neg'));\n $country->addRegion(new Region('Salta', 'SAL'));\n $country->addRegion(new Region('San', 'Jua'));\n $country->addRegion(new Region('San', 'Lui'));\n $country->addRegion(new Region('Santa', 'Cru'));\n $country->addRegion(new Region('Santa', 'Fe'));\n $country->addRegion(new Region('Santiago', 'del'));\n $country->addRegion(new Region('Tierra', 'del'));\n $country->addRegion(new Region('Tucuman', 'TUC'));\n $manager->persist($country);\n\n // Armenia\n $country = new Country('Armenia', 'AM', 'ARM');\n $country->addRegion(new Region('Aragatsotni', 'ARA'));\n $country->addRegion(new Region('Ararati', 'ARR'));\n $country->addRegion(new Region('Armaviri', 'ARM'));\n $country->addRegion(new Region('Kalininskiy', 'Ray'));\n $country->addRegion(new Region('Lorru', 'KAL'));\n $country->addRegion(new Region('Shiraki', 'SHI'));\n $country->addRegion(new Region('Tavushi', 'TAV'));\n $manager->persist($country);\n\n // Aruba\n $country = new Country('Aruba', 'AW', 'ABW');\n $country->addRegion(new Region('Aruba', 'ARU'));\n $manager->persist($country);\n\n // Australia\n $country = new Country('Australia', 'AU', 'AUS');\n $country->addRegion(new Region('Australian', 'Cap'));\n $country->addRegion(new Region('New South Wales', 'NS'));\n $country->addRegion(new Region('Northern Territory', 'NT'));\n $country->addRegion(new Region('Queensland', 'QL'));\n $country->addRegion(new Region('South Australia', 'SA'));\n $country->addRegion(new Region('Tasmania', 'TS'));\n $country->addRegion(new Region('Victoria', 'VI'));\n $country->addRegion(new Region('Western Australia', 'WA'));\n $country->addRegion(new Region('Australian Capital Territory', 'CT'));\n $country->addRegion(new Region('New', 'Sou'));\n $country->addRegion(new Region('New', 'Sou'));\n $manager->persist($country);\n\n // Austria\n $country = new Country('Austria', 'AT', 'AUT');\n $country->addRegion(new Region('Burgenland', 'BUR'));\n $country->addRegion(new Region('Karnten', 'KAR'));\n $country->addRegion(new Region('Niederosterreich', 'NIE'));\n $country->addRegion(new Region('Oberosterreich', 'OBE'));\n $country->addRegion(new Region('Salzburg', 'SAL'));\n $country->addRegion(new Region('Steiermark', 'STE'));\n $country->addRegion(new Region('Tirol', 'TIR'));\n $country->addRegion(new Region('Vorarlberg', 'VOR'));\n $country->addRegion(new Region('Wien', 'WIE'));\n $manager->persist($country);\n\n // Azerbaijan\n $country = new Country('Azerbaijan', 'AZ', 'AZE');\n $country->addRegion(new Region('Abseron', 'ABS'));\n $country->addRegion(new Region('Agcabadi', 'AGC'));\n $country->addRegion(new Region('Agdam', 'AGM'));\n $country->addRegion(new Region('Agdas', 'AGD'));\n $country->addRegion(new Region('Agstafa', 'AGS'));\n $country->addRegion(new Region('Agsu', 'AGU'));\n $country->addRegion(new Region('Ali', 'Bay'));\n $country->addRegion(new Region('Astara', 'AST'));\n $country->addRegion(new Region('Baki', 'Sah'));\n $country->addRegion(new Region('Balakan', 'BAL'));\n $country->addRegion(new Region('Barda', 'BAR'));\n $country->addRegion(new Region('Beylaqan', 'BEY'));\n $country->addRegion(new Region('Bilasuvar', 'BIL'));\n $country->addRegion(new Region('Cabrayil', 'CAB'));\n $country->addRegion(new Region('Calilabad', 'CAL'));\n $country->addRegion(new Region('Daskasan', 'DAS'));\n $country->addRegion(new Region('Davaci', 'DAV'));\n $country->addRegion(new Region('Fuzuli', 'FUZ'));\n $country->addRegion(new Region('Gadabay', 'GAD'));\n $country->addRegion(new Region('Ganca', 'Sah'));\n $country->addRegion(new Region('Goranboy', 'GOR'));\n $country->addRegion(new Region('Goycay', 'GOY'));\n $country->addRegion(new Region('Haciqabul', 'HAC'));\n $country->addRegion(new Region('Imisli', 'IMI'));\n $country->addRegion(new Region('Ismayilli', 'ISM'));\n $country->addRegion(new Region('Kalbacar', 'KAL'));\n $country->addRegion(new Region('Kurdamir', 'KUR'));\n $country->addRegion(new Region('Lacin', 'LAC'));\n $country->addRegion(new Region('Lankaran', 'LAN'));\n $country->addRegion(new Region('Lankaran', 'Sah'));\n $country->addRegion(new Region('Lerik', 'LER'));\n $country->addRegion(new Region('Masalli', 'MAS'));\n $country->addRegion(new Region('Mingacevir', 'Sah'));\n $country->addRegion(new Region('Naftalan', 'Sah'));\n $country->addRegion(new Region('Naxcivan', 'Mux'));\n $country->addRegion(new Region('Neftcala', 'NEF'));\n $country->addRegion(new Region('Oguz', 'OGU'));\n $country->addRegion(new Region('Qabala', 'QAB'));\n $country->addRegion(new Region('Qax', 'QAX'));\n $country->addRegion(new Region('Qazax', 'QAZ'));\n $country->addRegion(new Region('Qobustan', 'QOB'));\n $country->addRegion(new Region('Quba', 'QUB'));\n $country->addRegion(new Region('Qubadli', 'QUL'));\n $country->addRegion(new Region('Qusar', 'QUS'));\n $country->addRegion(new Region('Saatli', 'SAA'));\n $country->addRegion(new Region('Sabirabad', 'SAB'));\n $country->addRegion(new Region('Saki', 'SAK'));\n $country->addRegion(new Region('Saki', 'Sah'));\n $country->addRegion(new Region('Salyan', 'SAL'));\n $country->addRegion(new Region('Samaxi', 'SAM'));\n $country->addRegion(new Region('Samkir', 'SAR'));\n $country->addRegion(new Region('Samux', 'SAX'));\n $country->addRegion(new Region('Siyazan', 'SIY'));\n $country->addRegion(new Region('Susa', 'SUR'));\n $country->addRegion(new Region('Tartar', 'TAR'));\n $country->addRegion(new Region('Tovuz', 'TOV'));\n $country->addRegion(new Region('Ucar', 'UCA'));\n $country->addRegion(new Region('Xacmaz', 'XAC'));\n $country->addRegion(new Region('Xankandi', 'Sah'));\n $country->addRegion(new Region('Xanlar', 'XAL'));\n $country->addRegion(new Region('Xizi', 'XIZ'));\n $country->addRegion(new Region('Xocali', 'XOC'));\n $country->addRegion(new Region('Xocavand', 'XOV'));\n $country->addRegion(new Region('Yardimli', 'YAR'));\n $country->addRegion(new Region('Yevlax', 'YEV'));\n $country->addRegion(new Region('Yevlax', 'Sah'));\n $country->addRegion(new Region('Zangilan', 'ZAN'));\n $country->addRegion(new Region('Zaqatala', 'ZAQ'));\n $country->addRegion(new Region('Zardab', 'ZAR'));\n $manager->persist($country);\n\n // Bahamas\n $country = new Country('Bahamas', 'BS', 'BHS');\n $country->addRegion(new Region('Abaco', 'ABA'));\n $country->addRegion(new Region('Andros', 'AND'));\n $country->addRegion(new Region('Bimini', 'Isl'));\n $country->addRegion(new Region('Cat', 'Isl'));\n $country->addRegion(new Region('Eleuthera', 'ELE'));\n $country->addRegion(new Region('Exuma', '&'));\n $country->addRegion(new Region('Grand', 'Bah'));\n $country->addRegion(new Region('Harbour', 'Isl'));\n $country->addRegion(new Region('Inagua', 'INA'));\n $country->addRegion(new Region('Long', 'Isl'));\n $country->addRegion(new Region('Mayaguana', 'MAY'));\n $country->addRegion(new Region('New', 'Pro'));\n $country->addRegion(new Region('Ragged', 'Isl'));\n $manager->persist($country);\n\n // Bahrain\n $country = new Country('Bahrain', 'BH', 'BHR');\n $country->addRegion(new Region('Al', 'Had'));\n $country->addRegion(new Region('Al', 'Man'));\n $country->addRegion(new Region('Al', 'Min'));\n $country->addRegion(new Region('Al', 'Min'));\n $country->addRegion(new Region('Al', 'Min'));\n $country->addRegion(new Region('Al', 'Muh'));\n $country->addRegion(new Region('Ar', 'Rif'));\n $country->addRegion(new Region('Jidd', 'Haf'));\n $country->addRegion(new Region('Madinat', 'Ham'));\n $country->addRegion(new Region('Madinat', '`Is'));\n $country->addRegion(new Region('Mintaqat', 'Juz'));\n $country->addRegion(new Region('Sitrah', 'SIT'));\n $manager->persist($country);\n\n // Bangladesh\n $country = new Country('Bangladesh', 'BD', 'BGD');\n $country->addRegion(new Region('Chittagong', 'CHI'));\n $country->addRegion(new Region('Dhaka', 'DHA'));\n $country->addRegion(new Region('Khulna', 'KHU'));\n $country->addRegion(new Region('Rajshahi', 'RAJ'));\n $manager->persist($country);\n\n // Barbados\n $country = new Country('Barbados', 'BB', 'BRB');\n $country->addRegion(new Region('Christ', 'Chu'));\n $country->addRegion(new Region('Saint', 'And'));\n $country->addRegion(new Region('Saint', 'Geo'));\n $country->addRegion(new Region('Saint', 'Jam'));\n $country->addRegion(new Region('Saint', 'Joh'));\n $country->addRegion(new Region('Saint', 'Jos'));\n $country->addRegion(new Region('Saint', 'Luc'));\n $country->addRegion(new Region('Saint', 'Mic'));\n $country->addRegion(new Region('Saint', 'Pet'));\n $country->addRegion(new Region('Saint', 'Phi'));\n $country->addRegion(new Region('Saint', 'Tho'));\n $manager->persist($country);\n\n // Belarus\n $country = new Country('Belarus', 'BY', 'BLR');\n $country->addRegion(new Region('Brestskaya', 'BRE'));\n $country->addRegion(new Region('Hrodzyenskaya', 'HRO'));\n $country->addRegion(new Region('Mahilyowskaya', 'MAH'));\n $country->addRegion(new Region('Minskaya', 'MIN'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Vitsyebskaya', 'VIT'));\n $manager->persist($country);\n\n // Belgium\n $country = new Country('Belgium', 'BE', 'BEL');\n $country->addRegion(new Region('Antwerpen', 'ANT'));\n $country->addRegion(new Region('Hainaut', 'HAI'));\n $country->addRegion(new Region('Liege', 'LIE'));\n $country->addRegion(new Region('Limburg', 'LIM'));\n $country->addRegion(new Region('Luxembourg', 'LUX'));\n $country->addRegion(new Region('Namur', 'NAM'));\n $country->addRegion(new Region('Oost-Vlaanderen', 'OOV'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('West-Vlaanderen', 'WEV'));\n $manager->persist($country);\n\n // Belize\n $country = new Country('Belize', 'BZ', 'BLZ');\n $country->addRegion(new Region('Belize', 'BEL'));\n $country->addRegion(new Region('Cayo', 'CAY'));\n $country->addRegion(new Region('Corozal', 'COR'));\n $country->addRegion(new Region('Orange', 'Wal'));\n $country->addRegion(new Region('Stann', 'Cre'));\n $country->addRegion(new Region('Toledo', 'TOL'));\n $manager->persist($country);\n\n // Benin\n $country = new Country('Benin', 'BJ', 'BEN');\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Bermuda\n $country = new Country('Bermuda', 'BM', 'BMU');\n $country->addRegion(new Region('Devonshire', 'DEV'));\n $country->addRegion(new Region('Hamilton', 'HAM'));\n $country->addRegion(new Region('Paget', 'PAG'));\n $country->addRegion(new Region('Pembroke', 'PEM'));\n $country->addRegion(new Region('Saint', 'Geo'));\n $country->addRegion(new Region('Sandys', 'SAN'));\n $country->addRegion(new Region('Smiths', 'SMI'));\n $country->addRegion(new Region('Southampton', 'SOU'));\n $country->addRegion(new Region('Warwick', 'WAR'));\n $manager->persist($country);\n\n // Bhutan\n $country = new Country('Bhutan', 'BT', 'BTN');\n $country->addRegion(new Region('Bhutan', 'BHU'));\n $manager->persist($country);\n\n // Bolivia\n $country = new Country('Bolivia', 'BO', 'BOL');\n $country->addRegion(new Region('Beni', 'BEN'));\n $country->addRegion(new Region('Chuquisaca', 'CHU'));\n $country->addRegion(new Region('Cochabamba', 'COC'));\n $country->addRegion(new Region('La', 'Paz'));\n $country->addRegion(new Region('Oruro', 'ORU'));\n $country->addRegion(new Region('Pando', 'PAN'));\n $country->addRegion(new Region('Potosi', 'POT'));\n $country->addRegion(new Region('Santa', 'Cru'));\n $country->addRegion(new Region('Tarija', 'TAR'));\n $manager->persist($country);\n\n // Bosnia and Herzegowina\n $country = new Country('Bosnia and Herzegowina', 'BA', 'BIH');\n $manager->persist($country);\n\n // Botswana\n $country = new Country('Botswana', 'BW', 'BWA');\n $country->addRegion(new Region('Gaborone', 'GAB'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Bouvet Island\n $country = new Country('Bouvet Island', 'BV', 'BVT');\n $manager->persist($country);\n\n // Brazil\n $country = new Country('Brazil', 'BR', 'BRA');\n $country->addRegion(new Region('Acre', 'AC'));\n $country->addRegion(new Region('Alagoas', 'AL'));\n $country->addRegion(new Region('Amapa', 'AP'));\n $country->addRegion(new Region('Amazonas', 'AM'));\n $country->addRegion(new Region('Bahia', 'BA'));\n $country->addRegion(new Region('Ceara', 'CE'));\n $country->addRegion(new Region('Distrito Federal', 'DF'));\n $country->addRegion(new Region('Espirito Santo', 'ES'));\n $country->addRegion(new Region('Goias', 'GO'));\n $country->addRegion(new Region('Maranhao', 'MA'));\n $country->addRegion(new Region('Mato Grosso', 'MT'));\n $country->addRegion(new Region('Mato Gross do Sul', 'MS'));\n $country->addRegion(new Region('Minas Gerais', 'MG'));\n $country->addRegion(new Region('Para', 'PA'));\n $country->addRegion(new Region('Paraiba', 'PB'));\n $country->addRegion(new Region('Parana', 'PR'));\n $country->addRegion(new Region('Pernambuco', 'PE'));\n $country->addRegion(new Region('Piaui', 'PI'));\n $country->addRegion(new Region('Rio de Janeiro', 'RJ'));\n $country->addRegion(new Region('Rio Grande do Norte', 'RN'));\n $country->addRegion(new Region('Rio Grande do Sul', 'RS'));\n $country->addRegion(new Region('Rondonia', 'RO'));\n $country->addRegion(new Region('Roraima', 'RR'));\n $country->addRegion(new Region('Santa Catarina', 'SC'));\n $country->addRegion(new Region('Sao Paulo', 'SP'));\n $country->addRegion(new Region('Sergipe', 'SE'));\n $country->addRegion(new Region('Tocantins', 'TO'));\n $manager->persist($country);\n\n // British Indian Ocean Territory\n $country = new Country('British Indian Ocean Territory', 'IO', 'IOT');\n $manager->persist($country);\n\n // Brunei Darussalam\n $country = new Country('Brunei Darussalam', 'BN', 'BRN');\n $country->addRegion(new Region('Brunei', 'BRU'));\n $country->addRegion(new Region('Burundi', 'BUR'));\n $manager->persist($country);\n\n // Bulgaria\n $country = new Country('Bulgaria', 'BG', 'BGR');\n $country->addRegion(new Region('Blagoevgrad', 'BLA'));\n $country->addRegion(new Region('Burgas', 'BUR'));\n $country->addRegion(new Region('Dobrich', 'DOB'));\n $country->addRegion(new Region('Gabrovo', 'GAB'));\n $country->addRegion(new Region('Khaskovo', 'KHA'));\n $country->addRegion(new Region('Kurdzhali', 'KUR'));\n $country->addRegion(new Region('Kyustendil', 'KYU'));\n $country->addRegion(new Region('Lovech', 'LOV'));\n $country->addRegion(new Region('Montana', 'MON'));\n $country->addRegion(new Region('Pazardzhik', 'PAZ'));\n $country->addRegion(new Region('Pernik', 'PER'));\n $country->addRegion(new Region('Pleven', 'PLE'));\n $country->addRegion(new Region('Plovdiv', 'PLO'));\n $country->addRegion(new Region('Razgrad', 'RAZ'));\n $country->addRegion(new Region('Ruse', 'RUS'));\n $country->addRegion(new Region('Shumen', 'SHU'));\n $country->addRegion(new Region('Silistra', 'SIL'));\n $country->addRegion(new Region('Sliven', 'SLI'));\n $country->addRegion(new Region('Smolyan', 'SMO'));\n $country->addRegion(new Region('Sofiya', 'SOF'));\n $country->addRegion(new Region('Sofiya-Grad', 'SFG'));\n $country->addRegion(new Region('Stara', 'Zag'));\n $country->addRegion(new Region('Turgovishte', 'TUR'));\n $country->addRegion(new Region('Varna', 'VAR'));\n $country->addRegion(new Region('Veliko', 'Tur'));\n $country->addRegion(new Region('Vidin', 'VID'));\n $country->addRegion(new Region('Vratsa', 'VRA'));\n $country->addRegion(new Region('Yambol', 'YAM'));\n $manager->persist($country);\n\n // Burkina Faso\n $country = new Country('Burkina Faso', 'BF', 'BFA');\n $manager->persist($country);\n\n // Burundi\n $country = new Country('Burundi', 'BI', 'BDI');\n $manager->persist($country);\n\n // Cambodia\n $country = new Country('Cambodia', 'KH', 'KHM');\n $country->addRegion(new Region('Batdambang', 'BAT'));\n $country->addRegion(new Region('Kampong', 'Cha'));\n $country->addRegion(new Region('Kampong', 'Chh'));\n $country->addRegion(new Region('Kampong', 'Spo'));\n $country->addRegion(new Region('Kampong', 'Thu'));\n $country->addRegion(new Region('Kampot', 'KAM'));\n $country->addRegion(new Region('Kandal', 'KAN'));\n $country->addRegion(new Region('Kaoh', 'Kon'));\n $country->addRegion(new Region('Kracheh', 'KRA'));\n $country->addRegion(new Region('Mondol', 'Kir'));\n $country->addRegion(new Region('Pouthisat', 'POU'));\n $country->addRegion(new Region('Preah', 'Vih'));\n $country->addRegion(new Region('Prey', 'Ven'));\n $country->addRegion(new Region('Rotanah', 'Kir'));\n $country->addRegion(new Region('Siem', 'Rea'));\n $country->addRegion(new Region('Stoeng', 'Tre'));\n $country->addRegion(new Region('Svay', 'Rie'));\n $country->addRegion(new Region('Takev', 'TAK'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Cameroon\n $country = new Country('Cameroon', 'CM', 'CMR');\n $country->addRegion(new Region('Cameroon', 'CAM'));\n $manager->persist($country);\n\n // Canada\n $country = new Country('Canada', 'CA', 'CAN');\n $country->addRegion(new Region('Alberta', 'AB'));\n $country->addRegion(new Region('British Columbia', 'BC'));\n $country->addRegion(new Region('Manitoba', 'MB'));\n $country->addRegion(new Region('New Brunswick', 'NB'));\n $country->addRegion(new Region('Newfoundland and Labrador', 'NL'));\n $country->addRegion(new Region('Northwest Territories', 'NT'));\n $country->addRegion(new Region('Nova Scotia', 'NS'));\n $country->addRegion(new Region('Nunavut', 'NU'));\n $country->addRegion(new Region('Ontario', 'ON'));\n $country->addRegion(new Region('Prince Edward Island', 'PE'));\n $country->addRegion(new Region('Quebec', 'QC'));\n $country->addRegion(new Region('Saskatchewan', 'SK'));\n $country->addRegion(new Region('Yukon', 'YT'));\n $manager->persist($country);\n\n // Cape Verde\n $country = new Country('Cape Verde', 'CV', 'CPV');\n $manager->persist($country);\n\n // Cayman Islands\n $country = new Country('Cayman Islands', 'KY', 'CYM');\n $manager->persist($country);\n\n // Central African Republic\n $country = new Country('Central African Republic', 'CF', 'CAF');\n $manager->persist($country);\n\n // Chad\n $country = new Country('Chad', 'TD', 'TCD');\n $country->addRegion(new Region('Batha', 'BAT'));\n $country->addRegion(new Region('Biltine', 'BIL'));\n $country->addRegion(new Region('Borkou-Ennedi-Tibesti', 'BET'));\n $country->addRegion(new Region('Chari-Baguirmi', 'CHB'));\n $country->addRegion(new Region('Guera', 'GUE'));\n $country->addRegion(new Region('Kanem', 'KAN'));\n $country->addRegion(new Region('Lac', 'LAC'));\n $country->addRegion(new Region('Logone', 'Occ'));\n $country->addRegion(new Region('Logone', 'Ori'));\n $country->addRegion(new Region('Mayo-Kebbi', 'MAK'));\n $country->addRegion(new Region('Moyen-Chari', 'MOC'));\n $country->addRegion(new Region('Ouaddai', 'OUA'));\n $country->addRegion(new Region('Salamat', 'SAL'));\n $country->addRegion(new Region('Tandjile', 'TAN'));\n $manager->persist($country);\n\n // Chile\n $country = new Country('Chile', 'CL', 'CHL');\n $country->addRegion(new Region('Aisen', 'del'));\n $country->addRegion(new Region('Antofagasta', 'ANT'));\n $country->addRegion(new Region('Araucania', 'ARA'));\n $country->addRegion(new Region('Atacama', 'ATA'));\n $country->addRegion(new Region('Bio-Bio', 'BIO'));\n $country->addRegion(new Region('Coquimbo', 'COQ'));\n $country->addRegion(new Region('Libertador', 'G.B'));\n $country->addRegion(new Region('Los', 'Lag'));\n $country->addRegion(new Region('Magallanes', 'y'));\n $country->addRegion(new Region('Maule', 'MAU'));\n $country->addRegion(new Region('Region', 'Met'));\n $country->addRegion(new Region('Tarapaca', 'TAR'));\n $country->addRegion(new Region('Valparaiso', 'VAL'));\n $manager->persist($country);\n\n // China\n $country = new Country('China', 'CN', 'CHN');\n $country->addRegion(new Region('Anhui', 'ANH'));\n $country->addRegion(new Region('Beijing', 'Shi'));\n $country->addRegion(new Region('Chongqing', 'Shi'));\n $country->addRegion(new Region('Fujian', 'FUJ'));\n $country->addRegion(new Region('Gansu', 'GAN'));\n $country->addRegion(new Region('Guangdong', 'GUA'));\n $country->addRegion(new Region('Guangxi', 'Zhu'));\n $country->addRegion(new Region('Guizhou', 'GUI'));\n $country->addRegion(new Region('Hainan', 'HAI'));\n $country->addRegion(new Region('Hebei', 'HEB'));\n $country->addRegion(new Region('Heilongjiang', 'HEI'));\n $country->addRegion(new Region('Henan', 'HEN'));\n $country->addRegion(new Region('Hubei', 'HUB'));\n $country->addRegion(new Region('Hunan', 'HUN'));\n $country->addRegion(new Region('Inner', 'Mon'));\n $country->addRegion(new Region('Jiangsu', 'JIU'));\n $country->addRegion(new Region('Jiangxi', 'JII'));\n $country->addRegion(new Region('Jilin', 'JIN'));\n $country->addRegion(new Region('Liaoning', 'LIA'));\n $country->addRegion(new Region('Ningxia', 'Hui'));\n $country->addRegion(new Region('Qinghai', 'QIN'));\n $country->addRegion(new Region('Shaanxi', 'SHX'));\n $country->addRegion(new Region('Shandong', 'SHG'));\n $country->addRegion(new Region('Shanxi', 'SHI'));\n $country->addRegion(new Region('Sichuan', 'SIC'));\n $country->addRegion(new Region('Tibet', 'TIB'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Xinjiang', 'Uyg'));\n $country->addRegion(new Region('Yunnan', 'YUN'));\n $country->addRegion(new Region('Zhejiang', 'ZHE'));\n $manager->persist($country);\n\n // Christmas Island\n $country = new Country('Christmas Island', 'CX', 'CXR');\n $manager->persist($country);\n\n // Cocos (Keeling) Islands\n $country = new Country('Cocos (Keeling) Islands', 'CC', 'CCK');\n $manager->persist($country);\n\n // Colombia\n $country = new Country('Colombia', 'CO', 'COL');\n $country->addRegion(new Region('Antioquia', 'ANT'));\n $country->addRegion(new Region('Atlantico', 'ALT'));\n $country->addRegion(new Region('Bogota', 'BOG'));\n $country->addRegion(new Region('Bolivar', 'BOL'));\n $country->addRegion(new Region('Cauca', 'CAU'));\n $country->addRegion(new Region('Cundinamarca', 'CUN'));\n $country->addRegion(new Region('Magdalena', 'MAG'));\n $country->addRegion(new Region('Meta', 'MET'));\n $country->addRegion(new Region('Santander', 'SAN'));\n $country->addRegion(new Region('Valle', 'del'));\n $manager->persist($country);\n\n // Comoros\n $country = new Country('Comoros', 'KM', 'COM');\n $country->addRegion(new Region('Comoros', 'COM'));\n $manager->persist($country);\n\n // Congo\n $country = new Country('Congo', 'CG', 'COG');\n $country->addRegion(new Region('Bouenza', 'BOU'));\n $country->addRegion(new Region('Brazzaville', 'BRA'));\n $country->addRegion(new Region('Cuvette', 'CUV'));\n $country->addRegion(new Region('Kouilou', 'KOU'));\n $country->addRegion(new Region('Lekoumou', 'LEK'));\n $country->addRegion(new Region('Likouala', 'LIK'));\n $country->addRegion(new Region('Niari', 'NIA'));\n $country->addRegion(new Region('Plateaux', 'PLA'));\n $country->addRegion(new Region('Pool', 'POO'));\n $country->addRegion(new Region('Sangha', 'SAN'));\n $manager->persist($country);\n\n // Cook Islands\n $country = new Country('Cook Islands', 'CK', 'COK');\n $manager->persist($country);\n\n // Costa Rica\n $country = new Country('Costa Rica', 'CR', 'CRI');\n $manager->persist($country);\n\n // Cote D'Ivoire\n $country = new Country('Cote D\\'Ivoire', 'CI', 'CIV');\n $manager->persist($country);\n\n // Croatia\n $country = new Country('Croatia', 'HR', 'HRV');\n $country->addRegion(new Region('Bjelovarsko-Bilogorska', 'BJE'));\n $country->addRegion(new Region('Brodsko-Posavska', 'BRO'));\n $country->addRegion(new Region('Dubrovacko-Neretvanska', 'DUB'));\n $country->addRegion(new Region('Grad', 'Zag'));\n $country->addRegion(new Region('Istarska', 'IST'));\n $country->addRegion(new Region('Karlovacka', 'KAR'));\n $country->addRegion(new Region('Koprivnicko-Krizevacka', 'KOP'));\n $country->addRegion(new Region('Krapinsko-Zagorska', 'KRA'));\n $country->addRegion(new Region('Licko-Senjska', 'LIC'));\n $country->addRegion(new Region('Medimurska', 'MED'));\n $country->addRegion(new Region('Osjecko-Baranjska', 'OSJ'));\n $country->addRegion(new Region('Pozesko-Slavonska', 'POZ'));\n $country->addRegion(new Region('Primorsko-Goranska', 'PRI'));\n $country->addRegion(new Region('Sibensko-Kninska', 'SIB'));\n $country->addRegion(new Region('Sisacko-Moslavacka', 'SIS'));\n $country->addRegion(new Region('Splitsko-Dalmatinska', 'SPL'));\n $country->addRegion(new Region('Varazdinska', 'VAR'));\n $country->addRegion(new Region('Viroviticko-Podravska', 'VIR'));\n $country->addRegion(new Region('Vukovarsko-Srijemska', 'VUK'));\n $country->addRegion(new Region('Zagrebacka', 'ZAG'));\n $manager->persist($country);\n\n // Cuba\n $country = new Country('Cuba', 'CU', 'CUB');\n $country->addRegion(new Region('Camaguey', 'CAM'));\n $country->addRegion(new Region('Ciego', 'de'));\n $country->addRegion(new Region('Cienfuegos', 'CIE'));\n $country->addRegion(new Region('Ciudad', 'de'));\n $country->addRegion(new Region('Granma', 'GRA'));\n $country->addRegion(new Region('Guantanamo', 'GUA'));\n $country->addRegion(new Region('Holguin', 'HOL'));\n $country->addRegion(new Region('Isla', 'de'));\n $country->addRegion(new Region('La', 'Hab'));\n $country->addRegion(new Region('Las', 'Tun'));\n $country->addRegion(new Region('Matanzas', 'MAT'));\n $country->addRegion(new Region('Pinar', 'del'));\n $country->addRegion(new Region('Sancti', 'Spi'));\n $country->addRegion(new Region('Santiago', 'de'));\n $country->addRegion(new Region('Villa', 'Cla'));\n $manager->persist($country);\n\n // Cyprus\n $country = new Country('Cyprus', 'CY', 'CYP');\n $country->addRegion(new Region('Cyprus', 'CYP'));\n $manager->persist($country);\n\n // Czech Republic\n $country = new Country('Czech Republic', 'CZ', 'CZE');\n $manager->persist($country);\n\n // Denmark\n $country = new Country('Denmark', 'DK', 'DNK');\n $country->addRegion(new Region('Arhus', 'Amt'));\n $country->addRegion(new Region('Bornholms', 'Amt'));\n $country->addRegion(new Region('Frederiksberg', 'Kom'));\n $country->addRegion(new Region('Frederiksborg', 'Amt'));\n $country->addRegion(new Region('Fyns', 'Amt'));\n $country->addRegion(new Region('Kobenhavns', 'Amt'));\n $country->addRegion(new Region('Kobenhavns', 'Kom'));\n $country->addRegion(new Region('Nordjyllands', 'Amt'));\n $country->addRegion(new Region('Ribe', 'Amt'));\n $country->addRegion(new Region('Ringkobing', 'Amt'));\n $country->addRegion(new Region('Roskilde', 'Amt'));\n $country->addRegion(new Region('Sonderjyllands', 'Amt'));\n $country->addRegion(new Region('Storstroms', 'Amt'));\n $country->addRegion(new Region('Vejle', 'Amt'));\n $country->addRegion(new Region('Vestsjaellands', 'Amt'));\n $country->addRegion(new Region('Viborg', 'Amt'));\n $manager->persist($country);\n\n // Djibouti\n $country = new Country('Djibouti', 'DJ', 'DJI');\n $country->addRegion(new Region('Djibouti', 'DJI'));\n $manager->persist($country);\n\n // Dominica\n $country = new Country('Dominica', 'DM', 'DMA');\n $country->addRegion(new Region('Dominica', 'DOM'));\n $manager->persist($country);\n\n // Dominican Republic\n $country = new Country('Dominican Republic', 'DO', 'DOM');\n $manager->persist($country);\n\n // East Timor\n $country = new Country('East Timor', 'TP', 'TMP');\n $manager->persist($country);\n\n // Ecuador\n $country = new Country('Ecuador', 'EC', 'ECU');\n $country->addRegion(new Region('Azuay', 'AZU'));\n $country->addRegion(new Region('Boliar', 'BOL'));\n $country->addRegion(new Region('Canar', 'CAN'));\n $country->addRegion(new Region('Carchi', 'CAR'));\n $country->addRegion(new Region('Chimborazo', 'CHI'));\n $country->addRegion(new Region('Cotopaxi', 'COT'));\n $country->addRegion(new Region('El', 'Oro'));\n $country->addRegion(new Region('Esmeraldas', 'ESM'));\n $country->addRegion(new Region('Galapagos', 'GAL'));\n $country->addRegion(new Region('Guayas', 'GUA'));\n $country->addRegion(new Region('Imbabura', 'IMB'));\n $country->addRegion(new Region('Loja', 'LOJ'));\n $country->addRegion(new Region('Los', 'Rio'));\n $country->addRegion(new Region('Manabi', 'MAN'));\n $country->addRegion(new Region('Morona-Santiago', 'MSA'));\n $country->addRegion(new Region('Napo', 'NAP'));\n $country->addRegion(new Region('Orellana', 'ORE'));\n $country->addRegion(new Region('Pastaza', 'PAS'));\n $country->addRegion(new Region('Pichincha', 'PIC'));\n $country->addRegion(new Region('Sucumbios', 'SUC'));\n $country->addRegion(new Region('Zamora-Chinchipe', 'ZCH'));\n $manager->persist($country);\n\n // Egypt\n $country = new Country('Egypt', 'EG', 'EGY');\n $country->addRegion(new Region('Ad-Daqahiyah', 'DAQ'));\n $country->addRegion(new Region('Al-Bahr', 'al-'));\n $country->addRegion(new Region('Al-Buhayrah', 'BUH'));\n $country->addRegion(new Region('Al-Fayyum', 'FAY'));\n $country->addRegion(new Region('Al-Gharbiyah', 'GHA'));\n $country->addRegion(new Region('Al-Iskandariyah', 'ISK'));\n $country->addRegion(new Region('Al-Jizah', 'JIZ'));\n $country->addRegion(new Region('Al-Minufiyah', 'MNF'));\n $country->addRegion(new Region('Al-Minya', 'MIN'));\n $country->addRegion(new Region('Al-Qahirah', 'QAH'));\n $country->addRegion(new Region('Al-Qalyubyah', 'QAL'));\n $country->addRegion(new Region('Al-Wadi', 'al-'));\n $country->addRegion(new Region('As-Suways', 'SUW'));\n $country->addRegion(new Region('Ash-Sharqiyah', 'SHA'));\n $country->addRegion(new Region('Aswan', 'ASW'));\n $country->addRegion(new Region('Asyut', 'ASY'));\n $country->addRegion(new Region('Bani', 'Suw'));\n $country->addRegion(new Region('Dumyat', 'DUM'));\n $country->addRegion(new Region('Kafr', 'ash'));\n $country->addRegion(new Region('Marsa', 'Mat'));\n $country->addRegion(new Region('Qina', 'QIN'));\n $country->addRegion(new Region('Sawhaj', 'SAW'));\n $manager->persist($country);\n\n // El Salvador\n $country = new Country('El Salvador', 'SV', 'SLV');\n $manager->persist($country);\n\n // Equatorial Guinea\n $country = new Country('Equatorial Guinea', 'GQ', 'GNQ');\n $manager->persist($country);\n\n // Eritrea\n $country = new Country('Eritrea', 'ER', 'ERI');\n $country->addRegion(new Region('Eritrea', 'ERI'));\n $manager->persist($country);\n\n // Estonia\n $country = new Country('Estonia', 'EE', 'EST');\n $country->addRegion(new Region('Estonia', 'EST'));\n $manager->persist($country);\n\n // Ethiopia\n $country = new Country('Ethiopia', 'ET', 'ETH');\n $country->addRegion(new Region('Ethiopia', 'ETH'));\n $manager->persist($country);\n\n // Falkland Islands (Malvinas)\n $country = new Country('Falkland Islands (Malvinas)', 'FK', 'FLK');\n $manager->persist($country);\n\n // Faroe Islands\n $country = new Country('Faroe Islands', 'FO', 'FRO');\n $manager->persist($country);\n\n // Fiji\n $country = new Country('Fiji', 'FJ', 'FJI');\n $country->addRegion(new Region('Fiji', 'FIJ'));\n $manager->persist($country);\n\n // Finland\n $country = new Country('Finland', 'FI', 'FIN');\n $country->addRegion(new Region('Alands', 'Lan'));\n $country->addRegion(new Region('Lapplands', 'Lan'));\n $country->addRegion(new Region('Ostra', 'Fin'));\n $country->addRegion(new Region('Sodra', 'Fin'));\n $country->addRegion(new Region('Uleaborgs', 'Lan'));\n $country->addRegion(new Region('Vastra', 'Fin'));\n $manager->persist($country);\n\n // France\n $country = new Country('France', 'FR', 'FRA');\n $country->addRegion(new Region('Alsace', 'ALS'));\n $country->addRegion(new Region('Aquitaine', 'AQU'));\n $country->addRegion(new Region('Auvergne', 'AUV'));\n $country->addRegion(new Region('Basse-Normandie', 'BAS'));\n $country->addRegion(new Region('Bourgogne', 'BOU'));\n $country->addRegion(new Region('Bretagne', 'BRE'));\n $country->addRegion(new Region('Centre', 'CEN'));\n $country->addRegion(new Region('Champagne-Ardenne', 'CHA'));\n $country->addRegion(new Region('Corse', 'COR'));\n $country->addRegion(new Region('Franche-Comte', 'FRA'));\n $country->addRegion(new Region('Haute-Normandie', 'HAU'));\n $country->addRegion(new Region('Ile-de-France', 'ILE'));\n $country->addRegion(new Region('Languedoc-Roussillon', 'LAN'));\n $country->addRegion(new Region('Limousin', 'LIM'));\n $country->addRegion(new Region('Lorraine', 'LOR'));\n $country->addRegion(new Region('Midi-Pyrenees', 'MID'));\n $country->addRegion(new Region('Nord-Pas-de-Calais', 'NOR'));\n $country->addRegion(new Region('Pays-de-la', 'Loi'));\n $country->addRegion(new Region('Picardie', 'PIC'));\n $country->addRegion(new Region('Poitou-Charentes', 'POI'));\n $country->addRegion(new Region('Rhooe-Alpes', 'RHO'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // France, Metropolitan\n $country = new Country('France, Metropolitan', 'FX', 'FXX');\n $manager->persist($country);\n\n // French Guiana\n $country = new Country('French Guiana', 'GF', 'GUF');\n $manager->persist($country);\n\n // French Polynesia\n $country = new Country('French Polynesia', 'PF', 'PYF');\n $manager->persist($country);\n\n // French Southern Territories\n $country = new Country('French Southern Territories', 'TF', 'ATF');\n $manager->persist($country);\n\n // Gabon\n $country = new Country('Gabon', 'GA', 'GAB');\n $country->addRegion(new Region('Gabon', 'GAB'));\n $manager->persist($country);\n\n // Gambia\n $country = new Country('Gambia', 'GM', 'GMB');\n $country->addRegion(new Region('Gambia', 'GAM'));\n $manager->persist($country);\n\n // Georgia\n $country = new Country('Georgia', 'GE', 'GEO');\n $country->addRegion(new Region('Georgia', 'GEO'));\n $manager->persist($country);\n\n // Germany\n $country = new Country('Germany', 'DE', 'DEU');\n $country->addRegion(new Region('Baden-Wurttemberg', 'BW'));\n $country->addRegion(new Region('Bayern', 'BY'));\n $country->addRegion(new Region('Berlin', 'BE'));\n $country->addRegion(new Region('Brandenburg', 'BB'));\n $country->addRegion(new Region('Bremen', 'HB'));\n $country->addRegion(new Region('Hamburg', 'HH'));\n $country->addRegion(new Region('Hessen', 'HE'));\n $country->addRegion(new Region('Mecklenburg-Vorpommern', 'MV'));\n $country->addRegion(new Region('Niedersachsen', 'NI'));\n $country->addRegion(new Region('Nordrhein-Westfalen', 'NW'));\n $country->addRegion(new Region('Rheinland-Pfalz', 'RP'));\n $country->addRegion(new Region('Saarland', 'SL'));\n $country->addRegion(new Region('Sachsen', 'SN'));\n $country->addRegion(new Region('Sachsen-Anhalt', 'ST'));\n $country->addRegion(new Region('Schleswig-Holstein', 'SH'));\n $country->addRegion(new Region('Thuringen', 'TH'));\n $manager->persist($country);\n\n // Ghana\n $country = new Country('Ghana', 'GH', 'GHA');\n $country->addRegion(new Region('Ghana', 'GHA'));\n $manager->persist($country);\n\n // Gibraltar\n $country = new Country('Gibraltar', 'GI', 'GIB');\n $country->addRegion(new Region('Gibraltar', 'GIB'));\n $manager->persist($country);\n\n // Greece\n $country = new Country('Greece', 'GR', 'GRC');\n $country->addRegion(new Region('Aegean', 'Isl'));\n $country->addRegion(new Region('Attiki', 'ATT'));\n $country->addRegion(new Region('Central', 'Gre'));\n $country->addRegion(new Region('Crete', 'KRI'));\n $country->addRegion(new Region('Epirus', 'IPI'));\n $country->addRegion(new Region('Ionia', 'Isl'));\n $country->addRegion(new Region('Macedonia', 'MAK'));\n $country->addRegion(new Region('Peloponnesus', 'PEL'));\n $country->addRegion(new Region('Thessalia', 'THE'));\n $country->addRegion(new Region('Thrace', 'THR'));\n $manager->persist($country);\n\n // Greenland\n $country = new Country('Greenland', 'GL', 'GRL');\n $country->addRegion(new Region('Greenland', 'GL'));\n $manager->persist($country);\n\n // Grenada\n $country = new Country('Grenada', 'GD', 'GRD');\n $country->addRegion(new Region('Grenada', 'GJ'));\n $manager->persist($country);\n\n // Guadeloupe\n $country = new Country('Guadeloupe', 'GP', 'GLP');\n $country->addRegion(new Region('Guadeloupe', 'GUA'));\n $manager->persist($country);\n\n // Guam\n $country = new Country('Guam', 'GU', 'GUM');\n $manager->persist($country);\n\n // Guatemala\n $country = new Country('Guatemala', 'GT', 'GTM');\n $country->addRegion(new Region('Alta', 'Ver'));\n $country->addRegion(new Region('Baja', 'Ver'));\n $country->addRegion(new Region('Chimaltenango', 'CMT'));\n $country->addRegion(new Region('Chiquimula', 'CQM'));\n $country->addRegion(new Region('El', 'Pro'));\n $country->addRegion(new Region('Escuintla', 'ESC'));\n $country->addRegion(new Region('Guatemala', 'GUA'));\n $country->addRegion(new Region('Huehuetenango', 'HUE'));\n $country->addRegion(new Region('Izabal', 'IZA'));\n $country->addRegion(new Region('Jalapa', 'JAL'));\n $country->addRegion(new Region('Jutiapa', 'JUT'));\n $country->addRegion(new Region('Peten', 'PET'));\n $country->addRegion(new Region('Quetzaltenango', 'QUE'));\n $country->addRegion(new Region('Quiche', 'QUI'));\n $country->addRegion(new Region('Retalhuleu', 'RET'));\n $country->addRegion(new Region('Sacatepequez', 'SAC'));\n $country->addRegion(new Region('San', 'Mar'));\n $country->addRegion(new Region('Santa', 'Ros'));\n $country->addRegion(new Region('Solola', 'SOL'));\n $country->addRegion(new Region('Suchitepequez', 'SUC'));\n $country->addRegion(new Region('Totonicapan', 'TOT'));\n $country->addRegion(new Region('Zacapa', 'ZAC'));\n $manager->persist($country);\n\n // Guinea\n $country = new Country('Guinea', 'GN', 'GIN');\n $country->addRegion(new Region('Guinea', 'GUI'));\n $manager->persist($country);\n\n // Guinea-bissau\n $country = new Country('Guinea-bissau', 'GW', 'GNB');\n $country->addRegion(new Region('Guinea-Bissau', 'GUB'));\n $manager->persist($country);\n\n // Guyana\n $country = new Country('Guyana', 'GY', 'GUY');\n $country->addRegion(new Region('Guyana', 'GUY'));\n $manager->persist($country);\n\n // Haiti\n $country = new Country('Haiti', 'HT', 'HTI');\n $country->addRegion(new Region('Haiti', 'HAI'));\n $manager->persist($country);\n\n // Heard and Mc Donald Islands\n $country = new Country('Heard and Mc Donald Islands', 'HM', 'HMD');\n $manager->persist($country);\n\n // Honduras\n $country = new Country('Honduras', 'HN', 'HND');\n $country->addRegion(new Region('Atlantida', 'ATL'));\n $country->addRegion(new Region('Choluteca', 'CHO'));\n $country->addRegion(new Region('Colon', 'COL'));\n $country->addRegion(new Region('Comayagua', 'COM'));\n $country->addRegion(new Region('Copan', 'COP'));\n $country->addRegion(new Region('El', 'Par'));\n $country->addRegion(new Region('Francisco', 'Mor'));\n $country->addRegion(new Region('Gracias', 'a'));\n $country->addRegion(new Region('Intibuca', 'INT'));\n $country->addRegion(new Region('Islas', 'de'));\n $country->addRegion(new Region('La', 'Paz'));\n $country->addRegion(new Region('Lempira', 'LEM'));\n $country->addRegion(new Region('Ocotepeque', 'OCO'));\n $country->addRegion(new Region('Olancho', 'OLA'));\n $country->addRegion(new Region('Santa', 'Bar'));\n $country->addRegion(new Region('Valle', 'VAL'));\n $country->addRegion(new Region('Yoro', 'YOR'));\n $manager->persist($country);\n\n // Hong Kong\n $country = new Country('Hong Kong', 'HK', 'HKG');\n $manager->persist($country);\n\n // Hungary\n $country = new Country('Hungary', 'HU', 'HUN');\n $country->addRegion(new Region('Bacs-Kiskun', 'Meg'));\n $country->addRegion(new Region('Baranya', 'Meg'));\n $country->addRegion(new Region('Bekes', 'Meg'));\n $country->addRegion(new Region('Borsod-Abauj-Zemplen', 'Meg'));\n $country->addRegion(new Region('Budapest', 'Fov'));\n $country->addRegion(new Region('Csongrad', 'Meg'));\n $country->addRegion(new Region('Debrecen', 'Meg'));\n $country->addRegion(new Region('Fejer', 'Meg'));\n $country->addRegion(new Region('Gyor', 'Meg'));\n $country->addRegion(new Region('Gyor-Moson-Sopron', 'Meg'));\n $country->addRegion(new Region('Hajdu-Bihar', 'Meg'));\n $country->addRegion(new Region('Heves', 'Meg'));\n $country->addRegion(new Region('Jasz-Nagykun-Szolnok', 'Meg'));\n $country->addRegion(new Region('Komarom-Esztergom', 'Meg'));\n $country->addRegion(new Region('Miskolc', 'Meg'));\n $country->addRegion(new Region('Nograd', 'Meg'));\n $country->addRegion(new Region('Pecs', 'Meg'));\n $country->addRegion(new Region('Pest', 'Meg'));\n $country->addRegion(new Region('Somogy', 'Meg'));\n $country->addRegion(new Region('Szabolcs-Szatmar-Bereg', 'Meg'));\n $country->addRegion(new Region('Szeged', 'Meg'));\n $country->addRegion(new Region('Tolna', 'Meg'));\n $country->addRegion(new Region('Vas', 'Meg'));\n $country->addRegion(new Region('Veszprem', 'Meg'));\n $country->addRegion(new Region('Zala', 'Meg'));\n $manager->persist($country);\n\n // Iceland\n $country = new Country('Iceland', 'IS', 'ISL');\n $country->addRegion(new Region('Arnessysla', 'ARN'));\n $country->addRegion(new Region('Austur-Bardhastrandarsysla', 'ABA'));\n $country->addRegion(new Region('Austur-Hunavatnssysla', 'AHU'));\n $country->addRegion(new Region('Austur-Skaftafellssysla', 'ASK'));\n $country->addRegion(new Region('Borgarfjardharsysla', 'BOR'));\n $country->addRegion(new Region('Dalasysla', 'DAL'));\n $country->addRegion(new Region('Eyjafjardharsysla', 'EYJ'));\n $country->addRegion(new Region('Gullbringusysla', 'GUL'));\n $country->addRegion(new Region('Kjosarsysla', 'KJY'));\n $country->addRegion(new Region('Myrasysla', 'MYR'));\n $country->addRegion(new Region('Nordhur-Isafjardharsysla', 'NIS'));\n $country->addRegion(new Region('Nordhur-Mulasysla', 'NMU'));\n $country->addRegion(new Region('Nordhur-Thingeyjarsysla', 'NTY'));\n $country->addRegion(new Region('Rangarvallasysla', 'RNG'));\n $country->addRegion(new Region('Skagafjardharsysla', 'SKA'));\n $country->addRegion(new Region('Snaefellsnessysla-', 'og'));\n $country->addRegion(new Region('Strandasysla', 'STR'));\n $country->addRegion(new Region('Sudhur-Mulasysla', 'SMU'));\n $country->addRegion(new Region('Sudhur-Thingeijjar', 'STI'));\n $country->addRegion(new Region('Vestur-Bardhastrandarsysla', 'VBA'));\n $country->addRegion(new Region('Vestur-Hunavatnssysla', 'VHU'));\n $country->addRegion(new Region('Vestur-Isafjardharsysla', 'VIS'));\n $country->addRegion(new Region('Vestur-Skaftafellssysla', 'VSK'));\n $manager->persist($country);\n\n // India\n $country = new Country('India', 'IN', 'IND');\n $country->addRegion(new Region('Andaman', '&'));\n $country->addRegion(new Region('Andhra', 'Pra'));\n $country->addRegion(new Region('Arunachal', 'Pra'));\n $country->addRegion(new Region('Assam', 'ASS'));\n $country->addRegion(new Region('Bihar', 'BIH'));\n $country->addRegion(new Region('Chandigarh', 'CHA'));\n $country->addRegion(new Region('Dadra', '&'));\n $country->addRegion(new Region('Delhi', 'DEL'));\n $country->addRegion(new Region('Goa', 'GOA'));\n $country->addRegion(new Region('Gujarat', 'GUJ'));\n $country->addRegion(new Region('Haryana', 'HAR'));\n $country->addRegion(new Region('Himachal', 'Pra'));\n $country->addRegion(new Region('Jammu', '&'));\n $country->addRegion(new Region('Jharkhand', 'JHA'));\n $country->addRegion(new Region('Karnataka', 'KAR'));\n $country->addRegion(new Region('Kerala', 'KER'));\n $country->addRegion(new Region('Lakshadweep', 'LAK'));\n $country->addRegion(new Region('Madhya', 'Pra'));\n $country->addRegion(new Region('Maharashtra', 'MAH'));\n $country->addRegion(new Region('Manipur', 'MAN'));\n $country->addRegion(new Region('Meghalaya', 'MEG'));\n $country->addRegion(new Region('Mizoram', 'MIZ'));\n $country->addRegion(new Region('Nagaland', 'NAG'));\n $country->addRegion(new Region('Orissa', 'ORI'));\n $country->addRegion(new Region('Pondicherry', 'PON'));\n $country->addRegion(new Region('Punjab', 'PUN'));\n $country->addRegion(new Region('Rajasthan', 'RAJ'));\n $country->addRegion(new Region('Sikkim', 'SIK'));\n $country->addRegion(new Region('Tamil', 'Nad'));\n $country->addRegion(new Region('Tripura', 'TRI'));\n $country->addRegion(new Region('Uttar', 'Pra'));\n $country->addRegion(new Region('Uttaranchal', 'UAR'));\n $country->addRegion(new Region('West', 'Ben'));\n $manager->persist($country);\n\n // Indonesia\n $country = new Country('Indonesia', 'ID', 'IDN');\n $country->addRegion(new Region('Aceh', 'ACE'));\n $country->addRegion(new Region('Bali', 'BAL'));\n $country->addRegion(new Region('Bengkulu', 'BEN'));\n $country->addRegion(new Region('Jambi', 'JAM'));\n $country->addRegion(new Region('Jawa', 'Bar'));\n $country->addRegion(new Region('Jawa', 'Ten'));\n $country->addRegion(new Region('Jawa', 'Tim'));\n $country->addRegion(new Region('Kalimantan', 'Bar'));\n $country->addRegion(new Region('Kalimantan', 'Sel'));\n $country->addRegion(new Region('Kalimantan', 'Ten'));\n $country->addRegion(new Region('Kalimantan', 'Tim'));\n $country->addRegion(new Region('Lampung', 'LAM'));\n $country->addRegion(new Region('Maluku', 'MAL'));\n $country->addRegion(new Region('Nusa', 'Ten'));\n $country->addRegion(new Region('Nusa', 'Ten'));\n $country->addRegion(new Region('Papua', 'PAP'));\n $country->addRegion(new Region('Riau', 'RIA'));\n $country->addRegion(new Region('Sulawesi', 'Sel'));\n $country->addRegion(new Region('Sulawesi', 'Ten'));\n $country->addRegion(new Region('Sulawesi', 'Ten'));\n $country->addRegion(new Region('Sulawesi', 'Uta'));\n $country->addRegion(new Region('Sumatera', 'Bar'));\n $country->addRegion(new Region('Sumatera', 'Uta'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Yogyakarta', 'YOG'));\n $manager->persist($country);\n\n // Iran (Islamic Republic of)\n $country = new Country('Iran (Islamic Republic of)', 'IR', 'IRN');\n $country->addRegion(new Region('a', 'Bal'));\n $country->addRegion(new Region('ahall', 'va'));\n $country->addRegion(new Region('an-e', 'Gha'));\n $country->addRegion(new Region('an-e', 'Sha'));\n $country->addRegion(new Region('eh', 'va'));\n $country->addRegion(new Region('n', 'KOR'));\n $country->addRegion(new Region('n', 'KHU'));\n $country->addRegion(new Region('n', 'HOR'));\n $manager->persist($country);\n\n // Iraq\n $country = new Country('Iraq', 'IQ', 'IRQ');\n $country->addRegion(new Region('Anbar', 'ANB'));\n $country->addRegion(new Region('Arbil', 'ARB'));\n $country->addRegion(new Region('Babil', 'BAB'));\n $country->addRegion(new Region('Baghdad', 'BAG'));\n $country->addRegion(new Region('Basrah', 'BAS'));\n $country->addRegion(new Region('Dahuk', 'DAH'));\n $country->addRegion(new Region('Dhi', 'Qar'));\n $country->addRegion(new Region('Diyala', 'DIY'));\n $country->addRegion(new Region('Maysan', 'MAY'));\n $country->addRegion(new Region('Muthanna', 'MUT'));\n $country->addRegion(new Region('Najaf', 'NAJ'));\n $country->addRegion(new Region('Ninawa', 'NIN'));\n $country->addRegion(new Region('Qadisiyah', 'QAD'));\n $country->addRegion(new Region('Salah', 'ad'));\n $country->addRegion(new Region('Sulaymaniyah', 'SUL'));\n $country->addRegion(new Region('Wasit', 'WAS'));\n $manager->persist($country);\n\n // Ireland\n $country = new Country('Ireland', 'IE', 'IRL');\n $country->addRegion(new Region('Carlow', 'CAR'));\n $country->addRegion(new Region('Cavan', 'CAV'));\n $country->addRegion(new Region('Clare', 'CLA'));\n $country->addRegion(new Region('Cork', 'COR'));\n $country->addRegion(new Region('Donegal', 'DON'));\n $country->addRegion(new Region('Dublin', 'DUB'));\n $country->addRegion(new Region('Galway', 'GAL'));\n $country->addRegion(new Region('Kerry', 'KRY'));\n $country->addRegion(new Region('Kildare', 'KID'));\n $country->addRegion(new Region('Kilkenny', 'KIK'));\n $country->addRegion(new Region('Laois', 'LAO'));\n $country->addRegion(new Region('Leitrim', 'LEI'));\n $country->addRegion(new Region('Limerick', 'LIM'));\n $country->addRegion(new Region('Longford', 'LON'));\n $country->addRegion(new Region('Louth', 'LOU'));\n $country->addRegion(new Region('Mayo', 'MAY'));\n $country->addRegion(new Region('Meath', 'MEA'));\n $country->addRegion(new Region('Monaghan', 'MON'));\n $country->addRegion(new Region('Offaly', 'OFF'));\n $country->addRegion(new Region('Roscommon', 'ROS'));\n $country->addRegion(new Region('Sligo', 'SLI'));\n $country->addRegion(new Region('Tipperary', 'TIP'));\n $country->addRegion(new Region('Wicklow', 'UNK'));\n $country->addRegion(new Region('Waterford', 'WAT'));\n $country->addRegion(new Region('Westmeath', 'WES'));\n $country->addRegion(new Region('Wexford', 'WEX'));\n $country->addRegion(new Region('Wicklow', 'WIC'));\n $manager->persist($country);\n\n // Israel\n $country = new Country('Israel', 'IL', 'ISR');\n $country->addRegion(new Region('Central', 'Dis'));\n $country->addRegion(new Region('Haifa', 'Dis'));\n $country->addRegion(new Region('Jerusalem', 'Dis'));\n $country->addRegion(new Region('Northern', 'Dis'));\n $country->addRegion(new Region('Southern', 'Dis'));\n $country->addRegion(new Region('Tel', 'Avi'));\n $manager->persist($country);\n\n // Italy\n $country = new Country('Italy', 'IT', 'ITA');\n $country->addRegion(new Region('Abruzzi', 'ABR'));\n $country->addRegion(new Region('Basilicata', 'BAS'));\n $country->addRegion(new Region('Calabria', 'CAL'));\n $country->addRegion(new Region('Campania', 'CAM'));\n $country->addRegion(new Region('Emilia-Romagna', 'EMI'));\n $country->addRegion(new Region('Friuli-Venezia', 'Giu'));\n $country->addRegion(new Region('Lazio', 'LAZ'));\n $country->addRegion(new Region('Liguria', 'LIG'));\n $country->addRegion(new Region('Lombardia', 'LOM'));\n $country->addRegion(new Region('Marche', 'MAR'));\n $country->addRegion(new Region('Molise', 'MOL'));\n $country->addRegion(new Region('Piemonte', 'PIE'));\n $country->addRegion(new Region('Puglia', 'PUG'));\n $country->addRegion(new Region('Sardegna', 'SAR'));\n $country->addRegion(new Region('Sicilia', 'SIC'));\n $country->addRegion(new Region('Toscana', 'TOS'));\n $country->addRegion(new Region('Trentino-Alto', 'Adi'));\n $country->addRegion(new Region('Umbria', 'UMB'));\n $country->addRegion(new Region('Veneto', 'VEN'));\n $manager->persist($country);\n\n // Jamaica\n $country = new Country('Jamaica', 'JM', 'JAM');\n $country->addRegion(new Region('Clarendon', 'CLA'));\n $country->addRegion(new Region('Hanover', 'HAN'));\n $country->addRegion(new Region('Kingston', 'KIN'));\n $country->addRegion(new Region('Manchester', 'MAN'));\n $country->addRegion(new Region('Portland', 'POR'));\n $country->addRegion(new Region('Saint', 'And'));\n $country->addRegion(new Region('Saint', 'Ann'));\n $country->addRegion(new Region('Saint', 'Cat'));\n $country->addRegion(new Region('Saint', 'Eli'));\n $country->addRegion(new Region('Saint', 'Jam'));\n $country->addRegion(new Region('Saint', 'Mar'));\n $country->addRegion(new Region('Saint', 'Tho'));\n $country->addRegion(new Region('Trelawny', 'TRE'));\n $country->addRegion(new Region('Westmoreland', 'WML'));\n $manager->persist($country);\n\n // Japan\n $country = new Country('Japan', 'JP', 'JPN');\n $country->addRegion(new Region('Aichi', 'AIC'));\n $country->addRegion(new Region('Akita', 'AKI'));\n $country->addRegion(new Region('Aomori', 'AOM'));\n $country->addRegion(new Region('Chiba', 'CHI'));\n $country->addRegion(new Region('Ehime', 'EHI'));\n $country->addRegion(new Region('Fukui', 'FUI'));\n $country->addRegion(new Region('Fukuoka', 'FUA'));\n $country->addRegion(new Region('Fukushima', 'FUM'));\n $country->addRegion(new Region('Gifu', 'GIF'));\n $country->addRegion(new Region('Gumma', 'GUM'));\n $country->addRegion(new Region('Hiroshima', 'HIR'));\n $country->addRegion(new Region('Hokkaido', 'HOK'));\n $country->addRegion(new Region('Hyogo', 'HYO'));\n $country->addRegion(new Region('Ibaraki', 'IBA'));\n $country->addRegion(new Region('Ishikawa', 'ISH'));\n $country->addRegion(new Region('Iwate', 'IWA'));\n $country->addRegion(new Region('Kagawa', 'KAG'));\n $country->addRegion(new Region('Kagoshima', 'KAM'));\n $country->addRegion(new Region('Kanagawa', 'KAN'));\n $country->addRegion(new Region('Kochi', 'KOC'));\n $country->addRegion(new Region('Kumamoto', 'KUM'));\n $country->addRegion(new Region('Kyoto', 'KYO'));\n $country->addRegion(new Region('Mie', 'MIE'));\n $country->addRegion(new Region('Miyagi', 'MIG'));\n $country->addRegion(new Region('Miyazaki', 'MIZ'));\n $country->addRegion(new Region('Nagano', 'NAG'));\n $country->addRegion(new Region('Nagasaki', 'NAK'));\n $country->addRegion(new Region('Nara', 'NAR'));\n $country->addRegion(new Region('Niigata', 'NII'));\n $country->addRegion(new Region('Oita', 'OIT'));\n $country->addRegion(new Region('Okayama', 'OKA'));\n $country->addRegion(new Region('Okinawa', 'OKI'));\n $country->addRegion(new Region('Osaka', 'OSA'));\n $country->addRegion(new Region('Saga', 'SAG'));\n $country->addRegion(new Region('Saitama', 'SAI'));\n $country->addRegion(new Region('Shiga', 'SHG'));\n $country->addRegion(new Region('Shimane', 'SHM'));\n $country->addRegion(new Region('Shizuoka', 'SHZ'));\n $country->addRegion(new Region('Tochigi', 'TOC'));\n $country->addRegion(new Region('Tokushima', 'TOK'));\n $country->addRegion(new Region('Tokyo', 'TOY'));\n $country->addRegion(new Region('Tottori', 'TOT'));\n $country->addRegion(new Region('Toyama', 'TYM'));\n $country->addRegion(new Region('Wakayama', 'WAK'));\n $country->addRegion(new Region('Yamagata', 'YMT'));\n $country->addRegion(new Region('Yamaguchi', 'YMG'));\n $country->addRegion(new Region('Yamanashi', 'YMN'));\n $manager->persist($country);\n\n // Jordan\n $country = new Country('Jordan', 'JO', 'JOR');\n $country->addRegion(new Region('Jordan', 'JOR'));\n $manager->persist($country);\n\n // Kazakhstan\n $country = new Country('Kazakhstan', 'KZ', 'KAZ');\n $country->addRegion(new Region('Kazakhstan', 'KAZ'));\n $manager->persist($country);\n\n // Kenya\n $country = new Country('Kenya', 'KE', 'KEN');\n $country->addRegion(new Region('Central', 'CEN'));\n $country->addRegion(new Region('Coast', 'CST'));\n $country->addRegion(new Region('Eastern', 'EST'));\n $country->addRegion(new Region('Nairobi', 'NAI'));\n $country->addRegion(new Region('North', 'Eas'));\n $country->addRegion(new Region('Nyanza', 'NYA'));\n $country->addRegion(new Region('Rift', 'Val'));\n $country->addRegion(new Region('Western', 'WST'));\n $manager->persist($country);\n\n // Kiribati\n $country = new Country('Kiribati', 'KI', 'KIR');\n $country->addRegion(new Region('Kiribati', 'KIR'));\n $manager->persist($country);\n\n // Korea, North\n $country = new Country('Korea, North', 'KP', 'PRK');\n $manager->persist($country);\n\n // Korea, South\n $country = new Country('Korea, South', 'KR', 'KOR');\n $manager->persist($country);\n\n // Kuwait\n $country = new Country('Kuwait', 'KW', 'KWT');\n $country->addRegion(new Region('Al-Ahmadi', 'AHM'));\n $country->addRegion(new Region('Al-Farwaniyah', 'FAR'));\n $country->addRegion(new Region('Al-Kuwayt', 'KUW'));\n $country->addRegion(new Region('Bubiyan', '&'));\n $country->addRegion(new Region('Hawalli', 'HAW'));\n $manager->persist($country);\n\n // Kyrgyzstan\n $country = new Country('Kyrgyzstan', 'KG', 'KGZ');\n $country->addRegion(new Region('Kyrgyzstan', 'KYR'));\n $manager->persist($country);\n\n // Lao People's Democratic Republic\n $country = new Country('Lao People\\'s Democratic Republic', 'LA', 'LAO');\n $country->addRegion(new Region('Laos', 'LAO'));\n $manager->persist($country);\n\n // Latvia\n $country = new Country('Latvia', 'LV', 'LVA');\n $country->addRegion(new Region('Latvia', 'LAT'));\n $manager->persist($country);\n\n // Lebanon\n $country = new Country('Lebanon', 'LB', 'LBN');\n $country->addRegion(new Region('Lebanon', 'LEB'));\n $manager->persist($country);\n\n // Lesotho\n $country = new Country('Lesotho', 'LS', 'LSO');\n $country->addRegion(new Region('Lesotho', 'LES'));\n $manager->persist($country);\n\n // Liberia\n $country = new Country('Liberia', 'LR', 'LBR');\n $country->addRegion(new Region('Liberia', 'LIB'));\n $manager->persist($country);\n\n // Libyan Arab Jamahiriya\n $country = new Country('Libyan Arab Jamahiriya', 'LY', 'LBY');\n $country->addRegion(new Region('Libya', 'LIB'));\n $manager->persist($country);\n\n // Liechtenstein\n $country = new Country('Liechtenstein', 'LI', 'LIE');\n $country->addRegion(new Region('Liechtenstein', 'LIE'));\n $manager->persist($country);\n\n // Lithuania\n $country = new Country('Lithuania', 'LT', 'LTU');\n $country->addRegion(new Region('Lithuania', 'LIT'));\n $manager->persist($country);\n\n // Luxembourg\n $country = new Country('Luxembourg', 'LU', 'LUX');\n $country->addRegion(new Region('Luxembourg', 'LUX'));\n $manager->persist($country);\n\n // Macau\n $country = new Country('Macau', 'MO', 'MAC');\n $manager->persist($country);\n\n // Macedonia\n $country = new Country('Macedonia', 'MK', 'MKD');\n $country->addRegion(new Region('Macedonia', 'MAC'));\n $manager->persist($country);\n\n // Madagascar\n $country = new Country('Madagascar', 'MG', 'MDG');\n $country->addRegion(new Region('Antananarivo', 'ANT'));\n $country->addRegion(new Region('Antsiranana', 'ASI'));\n $country->addRegion(new Region('Fianarantsoa', 'FIA'));\n $country->addRegion(new Region('Mahajanga', 'MAH'));\n $country->addRegion(new Region('Toamasina', 'TOA'));\n $country->addRegion(new Region('Toliary', 'TOL'));\n $manager->persist($country);\n\n // Malawi\n $country = new Country('Malawi', 'MW', 'MWI');\n $country->addRegion(new Region('Malawi', 'MAL'));\n $manager->persist($country);\n\n // Malaysia\n $country = new Country('Malaysia', 'MY', 'MYS');\n $country->addRegion(new Region('Johor', 'JOH'));\n $country->addRegion(new Region('Kedah', 'KED'));\n $country->addRegion(new Region('Kelantan', 'KEL'));\n $country->addRegion(new Region('Melaka', 'MEL'));\n $country->addRegion(new Region('Pahang', 'PAH'));\n $country->addRegion(new Region('Perak', 'PER'));\n $country->addRegion(new Region('Perlis', 'PES'));\n $country->addRegion(new Region('Pulau', 'Pin'));\n $country->addRegion(new Region('Sabah', 'SAB'));\n $country->addRegion(new Region('Sarawak', 'SAR'));\n $country->addRegion(new Region('Selangor', 'SEL'));\n $country->addRegion(new Region('Sembilan', 'SEM'));\n $country->addRegion(new Region('Terengganu', 'TER'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Wilayah', 'Per'));\n $manager->persist($country);\n\n // Maldives\n $country = new Country('Maldives', 'MV', 'MDV');\n $country->addRegion(new Region('Maldives', 'MAL'));\n $manager->persist($country);\n\n // Mali\n $country = new Country('Mali', 'ML', 'MLI');\n $country->addRegion(new Region('Mali', 'MAL'));\n $manager->persist($country);\n\n // Malta\n $country = new Country('Malta', 'MT', 'MLT');\n $country->addRegion(new Region('Malta', 'MAL'));\n $manager->persist($country);\n\n // Marshall Islands\n $country = new Country('Marshall Islands', 'MH', 'MHL');\n $manager->persist($country);\n\n // Martinique\n $country = new Country('Martinique', 'MQ', 'MTQ');\n $manager->persist($country);\n\n // Mauritania\n $country = new Country('Mauritania', 'MR', 'MRT');\n $country->addRegion(new Region('Mauritania', 'MAU'));\n $manager->persist($country);\n\n // Mauritius\n $country = new Country('Mauritius', 'MU', 'MUS');\n $country->addRegion(new Region('Mauritius', 'MAU'));\n $manager->persist($country);\n\n // Mayotte\n $country = new Country('Mayotte', 'YT', 'MYT');\n $country->addRegion(new Region('Mayotte', 'MAY'));\n $manager->persist($country);\n\n // Mexico\n $country = new Country('Mexico', 'MX', 'MEX');\n $country->addRegion(new Region('Aguascalientes', 'AGS'));\n $country->addRegion(new Region('Baja California', 'BCN'));\n $country->addRegion(new Region('Baja California Sur', 'BCS'));\n $country->addRegion(new Region('Campeche', 'CAM'));\n $country->addRegion(new Region('Coahuila', 'COA'));\n $country->addRegion(new Region('Colima', 'COL'));\n $country->addRegion(new Region('Chiapas', 'CHP'));\n $country->addRegion(new Region('Chihuahua', 'CHH'));\n $country->addRegion(new Region('Distrito Federal', 'DIF'));\n $country->addRegion(new Region('Durango', 'DUR'));\n $country->addRegion(new Region('Guanajuato', 'GUA'));\n $country->addRegion(new Region('Guerrero', 'GRO'));\n $country->addRegion(new Region('Hidalgo', 'HID'));\n $country->addRegion(new Region('Jalisco', 'JAL'));\n $country->addRegion(new Region('México', 'MEX'));\n $country->addRegion(new Region('Michoacán', 'MIC'));\n $country->addRegion(new Region('Morelos', 'MOR'));\n $country->addRegion(new Region('Nayarit', 'NAY'));\n $country->addRegion(new Region('Nuevo León', 'NLE'));\n $country->addRegion(new Region('Oaxaca', 'OAX'));\n $country->addRegion(new Region('Puebla', 'PUE'));\n $country->addRegion(new Region('Querétaro', 'QUE'));\n $country->addRegion(new Region('Quintana Roo', 'ROO'));\n $country->addRegion(new Region('San Luis Potosí', 'SLP'));\n $country->addRegion(new Region('Sinaloa', 'SIN'));\n $country->addRegion(new Region('Sonora', 'SON'));\n $country->addRegion(new Region('Tabasco', 'TAB'));\n $country->addRegion(new Region('Tamaulipas', 'TAM'));\n $country->addRegion(new Region('Tlaxcala', 'TLA'));\n $country->addRegion(new Region('Veracruz', 'VER'));\n $country->addRegion(new Region('Yucatán', 'YUC'));\n $country->addRegion(new Region('Zacatecas', 'ZAC'));\n $manager->persist($country);\n\n // Micronesia, Federated States of\n $country = new Country('Micronesia, Federated States of', 'FM', 'FSM');\n $country->addRegion(new Region('Micronesia', 'MIC'));\n $country->addRegion(new Region('Federated states of micronesia', 'FM'));\n $manager->persist($country);\n\n // Moldova, Republic of\n $country = new Country('Moldova, Republic of', 'MD', 'MDA');\n $country->addRegion(new Region('Moldova', 'MOL'));\n $manager->persist($country);\n\n // Monaco\n $country = new Country('Monaco', 'MC', 'MCO');\n $country->addRegion(new Region('Monaco', 'MON'));\n $manager->persist($country);\n\n // Mongolia\n $country = new Country('Mongolia', 'MN', 'MNG');\n $country->addRegion(new Region('Mongolia', 'MNG'));\n $manager->persist($country);\n\n // Montserrat\n $country = new Country('Montserrat', 'MS', 'MSR');\n $country->addRegion(new Region('Montserrat', 'MON'));\n $manager->persist($country);\n\n // Morocco\n $country = new Country('Morocco', 'MA', 'MAR');\n $country->addRegion(new Region('Macau', 'MAC'));\n $country->addRegion(new Region('Chaouia-Ouardigha', 'CHO'));\n $country->addRegion(new Region('Doukkala-Abda', 'DOA'));\n $country->addRegion(new Region('Fes-Boulemane', 'FEB'));\n $country->addRegion(new Region('Gharb-Chrarda-Beni', 'Hse'));\n $country->addRegion(new Region('Grand', 'Cas'));\n $country->addRegion(new Region('Marrakech-Tensift-El', 'Hao'));\n $country->addRegion(new Region('Meknes-Tafilalt', 'MET'));\n $country->addRegion(new Region('Rabat-Sale-Zemmour-Zaer', 'RSZ'));\n $country->addRegion(new Region('Sous-Massa-Draa', 'SMD'));\n $country->addRegion(new Region('Tanger-Tetouan', 'TAT'));\n $country->addRegion(new Region('Taza-Al', 'Hoc'));\n $manager->persist($country);\n\n // Mozambique\n $country = new Country('Mozambique', 'MZ', 'MOZ');\n $country->addRegion(new Region('Mozambique', 'MOZ'));\n $manager->persist($country);\n\n // Myanmar\n $country = new Country('Myanmar', 'MM', 'MMR');\n $country->addRegion(new Region('Ayeyarwady', 'AYE'));\n $country->addRegion(new Region('Bago', 'BAG'));\n $country->addRegion(new Region('Chin', 'CHI'));\n $country->addRegion(new Region('Kachin', 'KAC'));\n $country->addRegion(new Region('Kayah', 'KAH'));\n $country->addRegion(new Region('Kayin', 'KAN'));\n $country->addRegion(new Region('Magway', 'MAG'));\n $country->addRegion(new Region('Mandalay', 'MAN'));\n $country->addRegion(new Region('Mon', 'MON'));\n $country->addRegion(new Region('Rakhine', 'RAK'));\n $country->addRegion(new Region('Sagaing', 'SAG'));\n $country->addRegion(new Region('Shan', 'SHA'));\n $country->addRegion(new Region('Tanintharyi', 'TAN'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Namibia\n $country = new Country('Namibia', 'NA', 'NAM');\n $country->addRegion(new Region('Namibia', 'NAM'));\n $manager->persist($country);\n\n // Nauru\n $country = new Country('Nauru', 'NR', 'NRU');\n $country->addRegion(new Region('Nauru', 'NAU'));\n $manager->persist($country);\n\n // Nepal\n $country = new Country('Nepal', 'NP', 'NPL');\n $country->addRegion(new Region('Nepal', 'NEP'));\n $manager->persist($country);\n\n // Netherlands\n $country = new Country('Netherlands', 'NL', 'NLD');\n $country->addRegion(new Region('Drenthe', 'DRE'));\n $country->addRegion(new Region('Flevoland', 'FLE'));\n $country->addRegion(new Region('Friesland', 'FRI'));\n $country->addRegion(new Region('Gelderland', 'GEL'));\n $country->addRegion(new Region('Groningen', 'GRO'));\n $country->addRegion(new Region('Limburg', 'LIM'));\n $country->addRegion(new Region('Noord-Brabant', 'NBR'));\n $country->addRegion(new Region('Noord-Holland', 'NHL'));\n $country->addRegion(new Region('Overijssel', 'OVE'));\n $country->addRegion(new Region('Utrecht', 'UTR'));\n $country->addRegion(new Region('Zeeland', 'ZEE'));\n $country->addRegion(new Region('Zuid-Holland', 'ZHO'));\n $manager->persist($country);\n\n // Netherlands Antilles\n $country = new Country('Netherlands Antilles', 'AN', 'ANT');\n $manager->persist($country);\n\n // New Caledonia\n $country = new Country('New Caledonia', 'NC', 'NCL');\n $manager->persist($country);\n\n // New Zealand\n $country = new Country('New Zealand', 'NZ', 'NZL');\n $country->addRegion(new Region('Auckland', 'AUK'));\n $country->addRegion(new Region('Bay of Plenty', 'BOP'));\n $country->addRegion(new Region('Canterbury', 'CAN'));\n $country->addRegion(new Region('Gisborne', 'GIS'));\n $country->addRegion(new Region('Hawke\\'s Bay', 'HKB'));\n $country->addRegion(new Region('Marlborough', 'MBH'));\n $country->addRegion(new Region('Manawatu-Wanganui', 'MWT'));\n $country->addRegion(new Region('Nelson', 'NSN'));\n $country->addRegion(new Region('Northland', 'NTL'));\n $country->addRegion(new Region('Otago', 'OTA'));\n $country->addRegion(new Region('Southland', 'STL'));\n $country->addRegion(new Region('Tasman', 'TAS'));\n $country->addRegion(new Region('Taranaki', 'TKI'));\n $country->addRegion(new Region('Wellington', 'WGN'));\n $country->addRegion(new Region('Waikato', 'WKO'));\n $country->addRegion(new Region('West Coast', 'WTC'));\n $manager->persist($country);\n\n // Nicaragua\n $country = new Country('Nicaragua', 'NI', 'NIC');\n $country->addRegion(new Region('Atlantico', 'Nor'));\n $country->addRegion(new Region('Atlantico', 'Sur'));\n $country->addRegion(new Region('Boaco', 'BOA'));\n $country->addRegion(new Region('Carazo', 'CAR'));\n $country->addRegion(new Region('Chinandega', 'CHI'));\n $country->addRegion(new Region('Chontales', 'CHO'));\n $country->addRegion(new Region('Esteli', 'EST'));\n $country->addRegion(new Region('Granada', 'GRA'));\n $country->addRegion(new Region('Jinotega', 'JIN'));\n $country->addRegion(new Region('Leon', 'LEO'));\n $country->addRegion(new Region('Madriz', 'MAD'));\n $country->addRegion(new Region('Managua', 'MAN'));\n $country->addRegion(new Region('Masaya', 'MAS'));\n $country->addRegion(new Region('Matagalpa', 'MAT'));\n $country->addRegion(new Region('Nueva', 'Seg'));\n $country->addRegion(new Region('Rio', 'San'));\n $country->addRegion(new Region('Rivas', 'RIV'));\n $manager->persist($country);\n\n // Niger\n $country = new Country('Niger', 'NE', 'NER');\n $country->addRegion(new Region('Agadez', 'AGA'));\n $country->addRegion(new Region('Diffa', 'DIF'));\n $country->addRegion(new Region('Dosso', 'DOS'));\n $country->addRegion(new Region('Maradi', 'MAR'));\n $country->addRegion(new Region('Niamey', 'NIA'));\n $country->addRegion(new Region('Tahoua', 'TAH'));\n $country->addRegion(new Region('Tillaberi', 'TIL'));\n $country->addRegion(new Region('Zinder', 'ZIN'));\n $manager->persist($country);\n\n // Nigeria\n $country = new Country('Nigeria', 'NG', 'NGA');\n $country->addRegion(new Region('Abuja', 'FC'));\n $country->addRegion(new Region('Adamawa', 'AD'));\n $country->addRegion(new Region('Bauchi', 'BA'));\n $country->addRegion(new Region('Benue', 'BE'));\n $country->addRegion(new Region('Borno', 'BO'));\n $country->addRegion(new Region('Delta', 'DE'));\n $country->addRegion(new Region('Gombe', 'GO'));\n $country->addRegion(new Region('Gongola', 'UNK'));\n $country->addRegion(new Region('Jigawa', 'JI'));\n $country->addRegion(new Region('Kaduna', 'KD'));\n $country->addRegion(new Region('Kano', 'KN'));\n $country->addRegion(new Region('Katsina', 'KT'));\n $country->addRegion(new Region('Kwara', 'KW'));\n $country->addRegion(new Region('Lagos', 'LA'));\n $country->addRegion(new Region('Nassarawa', 'NA'));\n $country->addRegion(new Region('Niger', 'NI'));\n $country->addRegion(new Region('Ogun', 'OG'));\n $country->addRegion(new Region('Oyo', 'OY'));\n $country->addRegion(new Region('Plateau', 'PL'));\n $country->addRegion(new Region('Sokoto', 'SO'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Zamfara', 'ZA'));\n $manager->persist($country);\n\n // Niue\n $country = new Country('Niue', 'NU', 'NIU');\n $country->addRegion(new Region('Niue', 'NIU'));\n $manager->persist($country);\n\n // Norfolk Island\n $country = new Country('Norfolk Island', 'NF', 'NFK');\n $manager->persist($country);\n\n // Northern Mariana Islands\n $country = new Country('Northern Mariana Islands', 'MP', 'MNP');\n $manager->persist($country);\n\n // Norway\n $country = new Country('Norway', 'NO', 'NOR');\n $country->addRegion(new Region('Akershus', 'AKE'));\n $country->addRegion(new Region('Aust-Agder', 'AAG'));\n $country->addRegion(new Region('Buskerud', 'BUS'));\n $country->addRegion(new Region('Finnmark', 'FIN'));\n $country->addRegion(new Region('Hedmark', 'HED'));\n $country->addRegion(new Region('Hordaland', 'HOR'));\n $country->addRegion(new Region('More', 'og'));\n $country->addRegion(new Region('Nord-Trondelag', 'NTR'));\n $country->addRegion(new Region('Nordland', 'NOR'));\n $country->addRegion(new Region('Oppland', 'OPP'));\n $country->addRegion(new Region('Oslo', 'OSL'));\n $country->addRegion(new Region('Ostfold', 'OFO'));\n $country->addRegion(new Region('Rogaland', 'ROG'));\n $country->addRegion(new Region('Sogn', 'og'));\n $country->addRegion(new Region('Sor-Trondelag', 'STR'));\n $country->addRegion(new Region('Telemark', 'TEL'));\n $country->addRegion(new Region('Troms', 'TRO'));\n $country->addRegion(new Region('Vest-Agder', 'VAG'));\n $country->addRegion(new Region('Vestfold', 'VFO'));\n $manager->persist($country);\n\n // Oman\n $country = new Country('Oman', 'OM', 'OMN');\n $country->addRegion(new Region('Oman', 'OMN'));\n $manager->persist($country);\n\n // Pakistan\n $country = new Country('Pakistan', 'PK', 'PAK');\n $country->addRegion(new Region('Balochistan', 'BAL'));\n $country->addRegion(new Region('Federally', 'Adm'));\n $country->addRegion(new Region('Islamabad', 'Cap'));\n $country->addRegion(new Region('North-West', 'Fro'));\n $country->addRegion(new Region('Punjab', 'PUN'));\n $country->addRegion(new Region('Sind', 'SIN'));\n $manager->persist($country);\n\n // Palau\n $country = new Country('Palau', 'PW', 'PLW');\n $country->addRegion(new Region('Palau', 'PAL'));\n $manager->persist($country);\n\n // Panama\n $country = new Country('Panama', 'PA', 'PAN');\n $country->addRegion(new Region('Bocas', 'del'));\n $country->addRegion(new Region('Chiriqui', 'CHI'));\n $country->addRegion(new Region('Colon', 'COL'));\n $country->addRegion(new Region('Darien', 'DAR'));\n $country->addRegion(new Region('Herrera', 'HER'));\n $country->addRegion(new Region('Kuna', 'Yal'));\n $country->addRegion(new Region('Los', 'San'));\n $country->addRegion(new Region('Panama', 'PAN'));\n $country->addRegion(new Region('Veraguas', 'VER'));\n $manager->persist($country);\n\n // Papua New Guinea\n $country = new Country('Papua New Guinea', 'PG', 'PNG');\n $manager->persist($country);\n\n // Paraguay\n $country = new Country('Paraguay', 'PY', 'PRY');\n $country->addRegion(new Region('Alto', 'Par'));\n $country->addRegion(new Region('Alto', 'Par'));\n $country->addRegion(new Region('Amambay', 'AMA'));\n $country->addRegion(new Region('Boqueron', 'BOQ'));\n $country->addRegion(new Region('Caaguazu', 'CGZ'));\n $country->addRegion(new Region('Caazapa', 'CZP'));\n $country->addRegion(new Region('Canindeyu', 'CAN'));\n $country->addRegion(new Region('Central', 'CEN'));\n $country->addRegion(new Region('Concepcion', 'CON'));\n $country->addRegion(new Region('Cordillera', 'COR'));\n $country->addRegion(new Region('Guaira', 'GUA'));\n $country->addRegion(new Region('Itapua', 'ITA'));\n $country->addRegion(new Region('Misiones', 'MIS'));\n $country->addRegion(new Region('Neembucu', 'NEE'));\n $country->addRegion(new Region('Paraguari', 'PAR'));\n $country->addRegion(new Region('Presidente', 'Hay'));\n $country->addRegion(new Region('San', 'Ped'));\n $manager->persist($country);\n\n // Peru\n $country = new Country('Peru', 'PE', 'PER');\n $country->addRegion(new Region('Amazonas', 'AMA'));\n $country->addRegion(new Region('Ancash', 'ANC'));\n $country->addRegion(new Region('Apurimac', 'APU'));\n $country->addRegion(new Region('Arequipa', 'ARE'));\n $country->addRegion(new Region('Ayacucho', 'AYA'));\n $country->addRegion(new Region('Cajamarca', 'CAJ'));\n $country->addRegion(new Region('Callao', 'CAL'));\n $country->addRegion(new Region('Cusco', 'CUS'));\n $country->addRegion(new Region('Huancavelica', 'HUA'));\n $country->addRegion(new Region('Huanuco', 'HUO'));\n $country->addRegion(new Region('Ica', 'ICA'));\n $country->addRegion(new Region('Junin', 'JUN'));\n $country->addRegion(new Region('La', 'Lib'));\n $country->addRegion(new Region('Lambayeque', 'LAM'));\n $country->addRegion(new Region('Lima', 'LIM'));\n $country->addRegion(new Region('Loreto', 'LOR'));\n $country->addRegion(new Region('Madre', 'de'));\n $country->addRegion(new Region('Moquegua', 'MOQ'));\n $country->addRegion(new Region('Pasco', 'PAS'));\n $country->addRegion(new Region('Piura', 'PIU'));\n $country->addRegion(new Region('Puno', 'PUN'));\n $country->addRegion(new Region('San', 'Mar'));\n $country->addRegion(new Region('Tacna', 'TAC'));\n $country->addRegion(new Region('Tumbes', 'TUM'));\n $country->addRegion(new Region('Ucayali', 'UCA'));\n $manager->persist($country);\n\n // Philippines\n $country = new Country('Philippines', 'PH', 'PHL');\n $country->addRegion(new Region('Abra', '01'));\n $country->addRegion(new Region('Agusan', 'del'));\n $country->addRegion(new Region('Agusan', 'del'));\n $country->addRegion(new Region('Aklan', '04'));\n $country->addRegion(new Region('Albay', '05'));\n $country->addRegion(new Region('Angeles', 'Cit'));\n $country->addRegion(new Region('Antique', '06'));\n $country->addRegion(new Region('Aurora', 'G8'));\n $country->addRegion(new Region('Bacolod', 'Cit'));\n $country->addRegion(new Region('Bago', 'Cit'));\n $country->addRegion(new Region('Baguio', 'Cit'));\n $country->addRegion(new Region('Basilan', '22'));\n $country->addRegion(new Region('Bataan', '07'));\n $country->addRegion(new Region('Batanes', '08'));\n $country->addRegion(new Region('Batangas', '09'));\n $country->addRegion(new Region('Batangas', 'Cit'));\n $country->addRegion(new Region('Benguet', '10'));\n $country->addRegion(new Region('Bohol', '11'));\n $country->addRegion(new Region('Bukidnon', '12'));\n $country->addRegion(new Region('Bulacan', '13'));\n $country->addRegion(new Region('Butuan', 'Cit'));\n $country->addRegion(new Region('Cabanatuan', 'Cit'));\n $country->addRegion(new Region('Cadiz', 'Cit'));\n $country->addRegion(new Region('Cagayan', '14'));\n $country->addRegion(new Region('Cagayan', 'de'));\n $country->addRegion(new Region('Calbayog', 'Cit'));\n $country->addRegion(new Region('Caloocan', 'Cit'));\n $country->addRegion(new Region('Camarines', 'Nor'));\n $country->addRegion(new Region('Camarines', 'Sur'));\n $country->addRegion(new Region('Camiguin', '17'));\n $country->addRegion(new Region('Canlaon', 'Cit'));\n $country->addRegion(new Region('Capiz', '18'));\n $country->addRegion(new Region('Catanduanes', '19'));\n $country->addRegion(new Region('Cavite', '20'));\n $country->addRegion(new Region('Cavite', 'Cit'));\n $country->addRegion(new Region('Cebu', '21'));\n $country->addRegion(new Region('Cebu', 'Cit'));\n $country->addRegion(new Region('City', 'of'));\n $country->addRegion(new Region('Cotabato', 'Cit'));\n $country->addRegion(new Region('Dagupan', 'Cit'));\n $country->addRegion(new Region('Danao', 'Cit'));\n $country->addRegion(new Region('Dapitan', 'Cit'));\n $country->addRegion(new Region('Davao', 'Cit'));\n $country->addRegion(new Region('Davao', 'del'));\n $country->addRegion(new Region('Davao', 'del'));\n $country->addRegion(new Region('Davao', 'Ori'));\n $country->addRegion(new Region('Dipolog', 'Cit'));\n $country->addRegion(new Region('Dumaguete', 'Cit'));\n $country->addRegion(new Region('Eastern', 'Sam'));\n $country->addRegion(new Region('General', 'San'));\n $country->addRegion(new Region('Gingoog', 'Cit'));\n $country->addRegion(new Region('Ifugao', '27'));\n $country->addRegion(new Region('Iligan', 'Cit'));\n $country->addRegion(new Region('Ilocos', 'Nor'));\n $country->addRegion(new Region('Ilocos', 'Sur'));\n $country->addRegion(new Region('Iloilo', '30'));\n $country->addRegion(new Region('Iloilo', 'Cit'));\n $country->addRegion(new Region('Iriga', 'Cit'));\n $country->addRegion(new Region('Isabela', '31'));\n $country->addRegion(new Region('Kalinga-Apayao', '32'));\n $country->addRegion(new Region('La', 'Car'));\n $country->addRegion(new Region('La', 'Uni'));\n $country->addRegion(new Region('Laguna', '33'));\n $country->addRegion(new Region('Lanao', 'del'));\n $country->addRegion(new Region('Lanao', 'del'));\n $country->addRegion(new Region('Laoag', 'Cit'));\n $country->addRegion(new Region('Lapu-Lapu', 'Cit'));\n $country->addRegion(new Region('Legaspi', 'Cit'));\n $country->addRegion(new Region('Leyte', '37'));\n $country->addRegion(new Region('Lipa', 'Cit'));\n $country->addRegion(new Region('Lucena', 'Cit'));\n $country->addRegion(new Region('Maguindanao', '56'));\n $country->addRegion(new Region('Mandaue', 'Cit'));\n $country->addRegion(new Region('Marawi', 'Cit'));\n $country->addRegion(new Region('Marinduque', '38'));\n $country->addRegion(new Region('Masbate', '39'));\n $country->addRegion(new Region('Mindoro', 'Occ'));\n $country->addRegion(new Region('Mindoro', 'Ori'));\n $country->addRegion(new Region('Misamis', 'Occ'));\n $country->addRegion(new Region('Misamis', 'Ori'));\n $country->addRegion(new Region('Mountain', 'Pro'));\n $country->addRegion(new Region('Naga', 'Cit'));\n $country->addRegion(new Region('Negros', 'Occ'));\n $country->addRegion(new Region('Negros', 'Ori'));\n $country->addRegion(new Region('North', 'Cot'));\n $country->addRegion(new Region('Northern', 'Sam'));\n $country->addRegion(new Region('Nueva', 'Eci'));\n $country->addRegion(new Region('Nueva', 'Viz'));\n $country->addRegion(new Region('Olongapo', 'Cit'));\n $country->addRegion(new Region('Ormoc', 'Cit'));\n $country->addRegion(new Region('Oroquieta', 'Cit'));\n $country->addRegion(new Region('Ozamis', 'Cit'));\n $country->addRegion(new Region('Pagadian', 'Cit'));\n $country->addRegion(new Region('Palawan', '49'));\n $country->addRegion(new Region('Palayan', 'Cit'));\n $country->addRegion(new Region('Pampanga', '50'));\n $country->addRegion(new Region('Pangasinan', '51'));\n $country->addRegion(new Region('Pasay', 'Cit'));\n $country->addRegion(new Region('Puerto', 'Pri'));\n $country->addRegion(new Region('Quezon', 'H2'));\n $country->addRegion(new Region('Quezon', 'Cit'));\n $country->addRegion(new Region('Quirino', '68'));\n $country->addRegion(new Region('Rizal', '53'));\n $country->addRegion(new Region('Romblon', '54'));\n $country->addRegion(new Region('Roxas', 'Cit'));\n $country->addRegion(new Region('Samar', '55'));\n $country->addRegion(new Region('San', 'Car'));\n $country->addRegion(new Region('San', 'Pab'));\n $country->addRegion(new Region('Silay', 'Cit'));\n $country->addRegion(new Region('Siquijor', '69'));\n $country->addRegion(new Region('Sorsogon', '58'));\n $country->addRegion(new Region('South', 'Cot'));\n $country->addRegion(new Region('Southern', 'Ley'));\n $country->addRegion(new Region('Sultan', 'Kud'));\n $country->addRegion(new Region('Sulu', '60'));\n $country->addRegion(new Region('Surigao', 'Cit'));\n $country->addRegion(new Region('Surigao', 'del'));\n $country->addRegion(new Region('Surigao', 'del'));\n $country->addRegion(new Region('Tacloban', 'Cit'));\n $country->addRegion(new Region('Tagaytay', 'Cit'));\n $country->addRegion(new Region('Tagbilaran', 'Cit'));\n $country->addRegion(new Region('Tangub', 'Cit'));\n $country->addRegion(new Region('Tarlac', '63'));\n $country->addRegion(new Region('Tawi-Tawi', '72'));\n $country->addRegion(new Region('Toledo', 'Cit'));\n $country->addRegion(new Region('Trece', 'Mar'));\n $country->addRegion(new Region('Zambales', '64'));\n $country->addRegion(new Region('Zamboanga', 'Cit'));\n $country->addRegion(new Region('Zamboanga', 'del'));\n $country->addRegion(new Region('Zamboanga', 'del'));\n $manager->persist($country);\n\n // Pitcairn\n $country = new Country('Pitcairn', 'PN', 'PCN');\n $manager->persist($country);\n\n // Poland\n $country = new Country('Poland', 'PL', 'POL');\n $country->addRegion(new Region('Dolnoslaskie', 'DOL'));\n $country->addRegion(new Region('Kujawsko-Pomorskie', 'KUJ'));\n $country->addRegion(new Region('Lodzkie', 'LOD'));\n $country->addRegion(new Region('Lubelskie', 'LUB'));\n $country->addRegion(new Region('Lubuskie', 'LBU'));\n $country->addRegion(new Region('Malopolskie', 'MAL'));\n $country->addRegion(new Region('Mazowieckie', 'MAZ'));\n $country->addRegion(new Region('Opolskie', 'OPO'));\n $country->addRegion(new Region('Podkarpackie', 'PDK'));\n $country->addRegion(new Region('Podlaskie', 'POD'));\n $country->addRegion(new Region('Pomorskie', 'POM'));\n $country->addRegion(new Region('Slaskie', 'SLA'));\n $country->addRegion(new Region('Swietokrzyskie', 'SWI'));\n $country->addRegion(new Region('Warminsko-Mazurskie', 'WAR'));\n $country->addRegion(new Region('Wielkopolskie', 'WIE'));\n $country->addRegion(new Region('Zachodniopomorskie', 'ZAC'));\n $manager->persist($country);\n\n // Portugal\n $country = new Country('Portugal', 'PT', 'PRT');\n $country->addRegion(new Region('Acores', 'ACO'));\n $country->addRegion(new Region('Alentejo', 'ALE'));\n $country->addRegion(new Region('Algarve', 'ALG'));\n $country->addRegion(new Region('Centro', 'CEN'));\n $country->addRegion(new Region('Lisboa', 'LIS'));\n $country->addRegion(new Region('Madeira', 'MAD'));\n $country->addRegion(new Region('Norte', 'NOR'));\n $manager->persist($country);\n\n // Puerto Rico\n $country = new Country('Puerto Rico', 'PR', 'PRI');\n $manager->persist($country);\n\n // Qatar\n $country = new Country('Qatar', 'QA', 'QAT');\n $country->addRegion(new Region('Qatar', 'QTR'));\n $manager->persist($country);\n\n // Reunion\n $country = new Country('Reunion', 'RE', 'REU');\n $country->addRegion(new Region('Reunion', 'RE'));\n $manager->persist($country);\n\n // Romania\n $country = new Country('Romania', 'RO', 'ROM');\n $country->addRegion(new Region('Alba', 'ALB'));\n $country->addRegion(new Region('Arad', 'ARA'));\n $country->addRegion(new Region('Arges', 'ARG'));\n $country->addRegion(new Region('Bacau', 'BAC'));\n $country->addRegion(new Region('Bihor', 'BIH'));\n $country->addRegion(new Region('Bistrita-Nasaud', 'BIS'));\n $country->addRegion(new Region('Botosani', 'BOT'));\n $country->addRegion(new Region('Braila', 'BRA'));\n $country->addRegion(new Region('Brasov', 'BRS'));\n $country->addRegion(new Region('Buzau', 'BUZ'));\n $country->addRegion(new Region('Calarasi', 'CAL'));\n $country->addRegion(new Region('Caras-Severin', 'CAR'));\n $country->addRegion(new Region('Cluj', 'CLU'));\n $country->addRegion(new Region('Constanta', 'CON'));\n $country->addRegion(new Region('Covasna', 'COV'));\n $country->addRegion(new Region('Dambovita', 'DAM'));\n $country->addRegion(new Region('Dolj', 'DOL'));\n $country->addRegion(new Region('Galati', 'GAL'));\n $country->addRegion(new Region('Giurgiu', 'GIU'));\n $country->addRegion(new Region('Gorj', 'GOR'));\n $country->addRegion(new Region('Harghita', 'HAR'));\n $country->addRegion(new Region('Hunedoara', 'HUN'));\n $country->addRegion(new Region('Ialomita', 'IAL'));\n $country->addRegion(new Region('Iasi', 'IAS'));\n $country->addRegion(new Region('Ilfov', 'ILF'));\n $country->addRegion(new Region('Maramures', 'MAR'));\n $country->addRegion(new Region('Mehedinti', 'MEH'));\n $country->addRegion(new Region('Municipiul', 'Buc'));\n $country->addRegion(new Region('Mures', 'MUR'));\n $country->addRegion(new Region('Neamt', 'NEA'));\n $country->addRegion(new Region('Olt', 'OLT'));\n $country->addRegion(new Region('Prahova', 'PRA'));\n $country->addRegion(new Region('Salaj', 'SAL'));\n $country->addRegion(new Region('Satu', 'Mar'));\n $country->addRegion(new Region('Sibiu', 'SIB'));\n $country->addRegion(new Region('Suceava', 'SUC'));\n $country->addRegion(new Region('Teleorman', 'TEL'));\n $country->addRegion(new Region('Timis', 'TIM'));\n $country->addRegion(new Region('Tulcea', 'TUL'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Valcea', 'VAL'));\n $country->addRegion(new Region('Vaslui', 'VAS'));\n $country->addRegion(new Region('Vrancea', 'VRA'));\n $manager->persist($country);\n\n // Russian Federation\n $country = new Country('Russian Federation', 'RU', 'RUS');\n $country->addRegion(new Region('Aginskiy', 'Bur'));\n $country->addRegion(new Region('Altayskiy', 'Kra'));\n $country->addRegion(new Region('Amurskaya', '05'));\n $country->addRegion(new Region('Astrakhanskaya', '07'));\n $country->addRegion(new Region('Belgorodskaya', '09'));\n $country->addRegion(new Region('Bryanskaya', '10'));\n $country->addRegion(new Region('Chechenskaya', 'CI'));\n $country->addRegion(new Region('Chelyabinskaya', '13'));\n $country->addRegion(new Region('Chitinskaya', '14'));\n $country->addRegion(new Region('Chukotskiy', '15'));\n $country->addRegion(new Region('Chuvashskaya', '16'));\n $country->addRegion(new Region('Evenkiyskiy', '18'));\n $country->addRegion(new Region('Gorod', 'Mos'));\n $country->addRegion(new Region('Gorod', 'San'));\n $country->addRegion(new Region('Irkutskaya', '20'));\n $country->addRegion(new Region('Ivanovskaya', '21'));\n $country->addRegion(new Region('Kabardino-Balkarskaya', '22'));\n $country->addRegion(new Region('Kaliningradskaya', '23'));\n $country->addRegion(new Region('Kaluzhskaya', '25'));\n $country->addRegion(new Region('Kamchatskaya', '26'));\n $country->addRegion(new Region('Karachayevo-Cherkesskaya', '27'));\n $country->addRegion(new Region('Kemerovskaya', '29'));\n $country->addRegion(new Region('Khabarovskiy', 'Kra'));\n $country->addRegion(new Region('Khanty-Mansiyskiy', '32'));\n $country->addRegion(new Region('Kirovskaya', '33'));\n $country->addRegion(new Region('Komi-Permyatskiy', '35'));\n $country->addRegion(new Region('Koryakskiy', '36'));\n $country->addRegion(new Region('Kostromskaya', '37'));\n $country->addRegion(new Region('Krasnodarskiy', 'Kra'));\n $country->addRegion(new Region('Krasnoyarskiy', 'Kra'));\n $country->addRegion(new Region('Kurganskaya', '40'));\n $country->addRegion(new Region('Kurskaya', '41'));\n $country->addRegion(new Region('Leningradskaya', '42'));\n $country->addRegion(new Region('Lipetskaya', '43'));\n $country->addRegion(new Region('Magadanskaya', '44'));\n $country->addRegion(new Region('Moskovskaya', '47'));\n $country->addRegion(new Region('Murmanskaya', '49'));\n $country->addRegion(new Region('Nenetskiy', '50'));\n $country->addRegion(new Region('Nizhegorodskaya', '51'));\n $country->addRegion(new Region('Novgorodskaya', '52'));\n $country->addRegion(new Region('Novosibirskaya', '53'));\n $country->addRegion(new Region('Omskaya', '54'));\n $country->addRegion(new Region('Orenburgskaya', '55'));\n $country->addRegion(new Region('Orlovskaya', '56'));\n $country->addRegion(new Region('Penzenskaya', '57'));\n $country->addRegion(new Region('Permskaya', '58'));\n $country->addRegion(new Region('Primorskiy', 'Kra'));\n $country->addRegion(new Region('Pskovskaya', '60'));\n $country->addRegion(new Region('Respublika', 'Ady'));\n $country->addRegion(new Region('Respublika', 'Alt'));\n $country->addRegion(new Region('Respublika', 'Bas'));\n $country->addRegion(new Region('Respublika', 'Bur'));\n $country->addRegion(new Region('Respublika', 'Dag'));\n $country->addRegion(new Region('Respublika', 'Kal'));\n $country->addRegion(new Region('Respublika', 'Kar'));\n $country->addRegion(new Region('Respublika', 'Kha'));\n $country->addRegion(new Region('Respublika', 'Kom'));\n $country->addRegion(new Region('Respublika', 'Mar'));\n $country->addRegion(new Region('Respublika', 'Mor'));\n $country->addRegion(new Region('Respublika', 'Sak'));\n $country->addRegion(new Region('Respublika', 'Sev'));\n $country->addRegion(new Region('Respublika', 'Tat'));\n $country->addRegion(new Region('Respublika', 'Tyv'));\n $country->addRegion(new Region('Rostovskaya', '61'));\n $country->addRegion(new Region('Ryazanskaya', '62'));\n $country->addRegion(new Region('Sakhalinskaya', '64'));\n $country->addRegion(new Region('Samarskaya', '65'));\n $country->addRegion(new Region('Saratovskaya', '67'));\n $country->addRegion(new Region('Smolenskaya', '69'));\n $country->addRegion(new Region('Sverdlovskaya', '71'));\n $country->addRegion(new Region('Tambovskaya', '72'));\n $country->addRegion(new Region('Taymyrskiy', 'Dol'));\n $country->addRegion(new Region('Tomskaya', '75'));\n $country->addRegion(new Region('Tverskaya', '77'));\n $country->addRegion(new Region('Tyumenskaya', '78'));\n $country->addRegion(new Region('Udmurtskaya', '80'));\n $country->addRegion(new Region('Vladimirskaya', '83'));\n $country->addRegion(new Region('Volgogradskaya', '84'));\n $country->addRegion(new Region('Vologodskaya', '85'));\n $country->addRegion(new Region('Voronezhskaya', '86'));\n $country->addRegion(new Region('Yamalo-Nenetskiy', '87'));\n $country->addRegion(new Region('Yaroslavskaya', '88'));\n $country->addRegion(new Region('Yevreyskaya', '89'));\n $manager->persist($country);\n\n // Rwanda\n $country = new Country('Rwanda', 'RW', 'RWA');\n $country->addRegion(new Region('Rwanda', 'RWA'));\n $manager->persist($country);\n\n // Saint Kitts and Nevis\n $country = new Country('Saint Kitts and Nevis', 'KN', 'KNA');\n $manager->persist($country);\n\n // Saint Lucia\n $country = new Country('Saint Lucia', 'LC', 'LCA');\n $manager->persist($country);\n\n // Saint Vincent and the Grenadines\n $country = new Country('Saint Vincent and the Grenadines', 'VC', 'VCT');\n $manager->persist($country);\n\n // Samoa\n $country = new Country('Samoa', 'WS', 'WSM');\n $country->addRegion(new Region('Samoa', 'SAM'));\n $manager->persist($country);\n\n // San Marino\n $country = new Country('San Marino', 'SM', 'SMR');\n $manager->persist($country);\n\n // Sao Tome and Principe\n $country = new Country('Sao Tome and Principe', 'ST', 'STP');\n $manager->persist($country);\n\n // Saudi Arabia\n $country = new Country('Saudi Arabia', 'SA', 'SAU');\n $manager->persist($country);\n\n // Senegal\n $country = new Country('Senegal', 'SN', 'SEN');\n $country->addRegion(new Region('Dakar', 'DAK'));\n $country->addRegion(new Region('Saint-Louis', 'STL'));\n $country->addRegion(new Region('Thies', 'THI'));\n $manager->persist($country);\n\n // Seychelles\n $country = new Country('Seychelles', 'SC', 'SYC');\n $country->addRegion(new Region('Seychelles', 'SEY'));\n $manager->persist($country);\n\n // Sierra Leone\n $country = new Country('Sierra Leone', 'SL', 'SLE');\n $manager->persist($country);\n\n // Singapore\n $country = new Country('Singapore', 'SG', 'SGP');\n $country->addRegion(new Region('Singapore', 'SNG'));\n $manager->persist($country);\n\n // Slovakia (Slovak Republic)\n $country = new Country('Slovakia (Slovak Republic)', 'SK', 'SVK');\n $country->addRegion(new Region('Slovakia', 'SLO'));\n $manager->persist($country);\n\n // Slovenia\n $country = new Country('Slovenia', 'SI', 'SVN');\n $country->addRegion(new Region('Slovenia', 'SLO'));\n $manager->persist($country);\n\n // Solomon Islands\n $country = new Country('Solomon Islands', 'SB', 'SLB');\n $manager->persist($country);\n\n // Somalia\n $country = new Country('Somalia', 'SO', 'SOM');\n $country->addRegion(new Region('Bakool', 'BAK'));\n $country->addRegion(new Region('Banaadir', 'BAN'));\n $country->addRegion(new Region('Bari', 'BAR'));\n $country->addRegion(new Region('Bay', 'BAY'));\n $country->addRegion(new Region('Gedo', 'GED'));\n $country->addRegion(new Region('Jubbada', 'Dhe'));\n $country->addRegion(new Region('Jubbada', 'Hoo'));\n $country->addRegion(new Region('Shabeellaha', 'Hoo'));\n $manager->persist($country);\n\n // South Africa\n $country = new Country('South Africa', 'ZA', 'ZAF');\n $country->addRegion(new Region('Eastern Cape', 'EC'));\n $country->addRegion(new Region('Free State', 'FS'));\n $country->addRegion(new Region('Gauteng', 'GT'));\n $country->addRegion(new Region('KwaZulu-Natal', 'NL'));\n $country->addRegion(new Region('Limpopo', 'LP'));\n $country->addRegion(new Region('Mpumalanga', 'MP'));\n $country->addRegion(new Region('Northern Cape', 'NC'));\n $country->addRegion(new Region('North-West', 'NW'));\n $country->addRegion(new Region('Western Cape', 'WC'));\n $manager->persist($country);\n\n // South Georgia\n $country = new Country('South Georgia', 'GS', 'SGS');\n $manager->persist($country);\n\n // Spain\n $country = new Country('Spain', 'ES', 'ESP');\n $country->addRegion(new Region('Andalucia', 'AND'));\n $country->addRegion(new Region('Aragon', 'ARA'));\n $country->addRegion(new Region('Asturias', 'AST'));\n $country->addRegion(new Region('Baleares', 'BAL'));\n $country->addRegion(new Region('Canarias', 'CAN'));\n $country->addRegion(new Region('Cantabria', 'CAR'));\n $country->addRegion(new Region('Castilla', 'y'));\n $country->addRegion(new Region('Castilla-La', 'Man'));\n $country->addRegion(new Region('Cataluna', 'CAT'));\n $country->addRegion(new Region('Ceuta', 'y'));\n $country->addRegion(new Region('Extremadura', 'EXT'));\n $country->addRegion(new Region('Galicia', 'GAL'));\n $country->addRegion(new Region('La', 'Rio'));\n $country->addRegion(new Region('Madrid', 'MAD'));\n $country->addRegion(new Region('Murcia', 'MUR'));\n $country->addRegion(new Region('Navarra', 'NAV'));\n $country->addRegion(new Region('Pais', 'Vas'));\n $country->addRegion(new Region('Valencia', 'VAL'));\n $manager->persist($country);\n\n // Sri Lanka\n $country = new Country('Sri Lanka', 'LK', 'LKA');\n $manager->persist($country);\n\n // St. Helena\n $country = new Country('St. Helena', 'SH', 'SHN');\n $manager->persist($country);\n\n // St. Pierre and Miquelon\n $country = new Country('St. Pierre and Miquelon', 'PM', 'SPM');\n $manager->persist($country);\n\n // Sudan\n $country = new Country('Sudan', 'SD', 'SDN');\n $country->addRegion(new Region('Sudan', 'SUD'));\n $manager->persist($country);\n\n // Suriname\n $country = new Country('Suriname', 'SR', 'SUR');\n $country->addRegion(new Region('Suriname', 'SUR'));\n $manager->persist($country);\n\n // Svalbard and Jan Mayen Islands\n $country = new Country('Svalbard and Jan Mayen Islands', 'SJ', 'SJM');\n $country->addRegion(new Region('Svalbard', 'SVL'));\n $manager->persist($country);\n\n // Swaziland\n $country = new Country('Swaziland', 'SZ', 'SWZ');\n $country->addRegion(new Region('Swaziland', 'SWZ'));\n $manager->persist($country);\n\n // Sweden\n $country = new Country('Sweden', 'SE', 'SWE');\n $country->addRegion(new Region('Blekinge', 'lan'));\n $country->addRegion(new Region('Dalarnas', 'lan'));\n $country->addRegion(new Region('Gavleborgs', 'lan'));\n $country->addRegion(new Region('Gotlands', 'lan'));\n $country->addRegion(new Region('Hallands', 'lan'));\n $country->addRegion(new Region('Jamtlands', 'lan'));\n $country->addRegion(new Region('Jonkopings', 'lan'));\n $country->addRegion(new Region('Kalmar', 'lan'));\n $country->addRegion(new Region('Kronobergs', 'lan'));\n $country->addRegion(new Region('Norrbottens', 'lan'));\n $country->addRegion(new Region('Orebro', 'lan'));\n $country->addRegion(new Region('Ostergotlands', 'lan'));\n $country->addRegion(new Region('Skane', 'lan'));\n $country->addRegion(new Region('Sodermanlands', 'lan'));\n $country->addRegion(new Region('Stockholms', 'lan'));\n $country->addRegion(new Region('Uppsala', 'lan'));\n $country->addRegion(new Region('Varmlands', 'lan'));\n $country->addRegion(new Region('Vasterbottens', 'lan'));\n $country->addRegion(new Region('Vasternorrlands', 'lan'));\n $country->addRegion(new Region('Vastmanlands', 'lan'));\n $country->addRegion(new Region('Vastra', 'Got'));\n $manager->persist($country);\n\n // Switzerland\n $country = new Country('Switzerland', 'CH', 'CHE');\n $country->addRegion(new Region('Switzerland', 'SWZ'));\n $manager->persist($country);\n\n // Syrian Arab Republic\n $country = new Country('Syrian Arab Republic', 'SY', 'SYR');\n $country->addRegion(new Region('Dar`a', 'DAR'));\n $country->addRegion(new Region('Dayr', 'az'));\n $country->addRegion(new Region('Dimashq', 'DIM'));\n $country->addRegion(new Region('Hamah', 'HAM'));\n $country->addRegion(new Region('Hasakah', 'HAS'));\n $country->addRegion(new Region('Hims', 'HIM'));\n $country->addRegion(new Region('Ladhiqiyah', 'LAD'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Taiwan\n $country = new Country('Taiwan', 'TW', 'TWN');\n $country->addRegion(new Region('Kao-hsiung', 'KAO'));\n $manager->persist($country);\n\n // Tajikistan\n $country = new Country('Tajikistan', 'TJ', 'TJK');\n $country->addRegion(new Region('Khatlon', 'KHA'));\n $country->addRegion(new Region('Mukhtori', 'Kuh'));\n $country->addRegion(new Region('Sughd', 'SUG'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Tanzania, United Republic of\n $country = new Country('Tanzania, United Republic of', 'TZ', 'TZA');\n $country->addRegion(new Region('Kagera', 'KAG'));\n $country->addRegion(new Region('Kigoma', 'KIG'));\n $country->addRegion(new Region('Mwanza', 'MWA'));\n $country->addRegion(new Region('Rukwa', 'RUK'));\n $country->addRegion(new Region('Shinyanga', 'SHI'));\n $country->addRegion(new Region('Tabora', 'TAB'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Thailand\n $country = new Country('Thailand', 'TH', 'THA');\n $country->addRegion(new Region('Bangkok', 'Met'));\n $country->addRegion(new Region('Central', 'CEN'));\n $country->addRegion(new Region('Northeastern', 'NEA'));\n $country->addRegion(new Region('Northern', 'NOR'));\n $country->addRegion(new Region('Southern', 'SOU'));\n $manager->persist($country);\n\n // Togo\n $country = new Country('Togo', 'TG', 'TGO');\n $country->addRegion(new Region('Togo', 'TOG'));\n $manager->persist($country);\n\n // Tokelau\n $country = new Country('Tokelau', 'TK', 'TKL');\n $country->addRegion(new Region('Tokelau', 'TOK'));\n $manager->persist($country);\n\n // Tonga\n $country = new Country('Tonga', 'TO', 'TON');\n $country->addRegion(new Region('Tonga', 'TNG'));\n $manager->persist($country);\n\n // Trinidad and Tobago\n $country = new Country('Trinidad and Tobago', 'TT', 'TTO');\n $manager->persist($country);\n\n // Tunisia\n $country = new Country('Tunisia', 'TN', 'TUN');\n $country->addRegion(new Region('Ariana', 'ARI'));\n $country->addRegion(new Region('Mahdia', 'MAH'));\n $country->addRegion(new Region('Sousse', 'SOU'));\n $country->addRegion(new Region('Tunis', 'TUN'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n // Turkey\n $country = new Country('Turkey', 'TR', 'TUR');\n $country->addRegion(new Region('Adana', 'ADA'));\n $country->addRegion(new Region('Ankara', 'ANK'));\n $country->addRegion(new Region('Antalya', 'ANT'));\n $country->addRegion(new Region('Aydin', 'AYD'));\n $country->addRegion(new Region('Bilecik', 'BIL'));\n $country->addRegion(new Region('Bursa', 'BUR'));\n $country->addRegion(new Region('Diyarbakir', 'DIY'));\n $country->addRegion(new Region('Erzurum', 'ERZ'));\n $country->addRegion(new Region('Hakkari', 'HAK'));\n $country->addRegion(new Region('Hatay', 'HAT'));\n $country->addRegion(new Region('Icel', 'ICE'));\n $country->addRegion(new Region('Isparta', 'ISP'));\n $country->addRegion(new Region('Istanbul', 'IST'));\n $country->addRegion(new Region('Izmir', 'IZM'));\n $country->addRegion(new Region('Karaman', 'KAM'));\n $country->addRegion(new Region('Kilis', 'KIL'));\n $country->addRegion(new Region('Kocaeli', 'KOC'));\n $country->addRegion(new Region('Konya', 'KON'));\n $country->addRegion(new Region('Manisa', 'MAN'));\n $country->addRegion(new Region('Nigde', 'NIG'));\n $country->addRegion(new Region('Sirnak', 'SIR'));\n $country->addRegion(new Region('Sivas', 'SIV'));\n $country->addRegion(new Region('Yalova', 'YAL'));\n $manager->persist($country);\n\n // Turkmenistan\n $country = new Country('Turkmenistan', 'TM', 'TKM');\n $country->addRegion(new Region('Ahal', 'AHL'));\n $country->addRegion(new Region('Balkan', 'BAL'));\n $country->addRegion(new Region('Dasoguz', 'DAS'));\n $country->addRegion(new Region('Lebap', 'LEB'));\n $country->addRegion(new Region('Mary', 'MAR'));\n $manager->persist($country);\n\n // Turks and Caicos Islands\n $country = new Country('Turks and Caicos Islands', 'TC', 'TCA');\n $manager->persist($country);\n\n // Tuvalu\n $country = new Country('Tuvalu', 'TV', 'TUV');\n $country->addRegion(new Region('Tuvalu', 'TUV'));\n $manager->persist($country);\n\n // Uganda\n $country = new Country('Uganda', 'UG', 'UGA');\n $country->addRegion(new Region('Uganda', 'UGA'));\n $manager->persist($country);\n\n // Ukraine\n $country = new Country('Ukraine', 'UA', 'UKR');\n $country->addRegion(new Region('Kyrm', 'KRY'));\n $country->addRegion(new Region('Misto', 'Kyy'));\n $manager->persist($country);\n\n // United Arab Emirates\n $country = new Country('United Arab Emirates', 'AE', 'ARE');\n $manager->persist($country);\n\n // United Kingdom\n $country = new Country('United Kingdom', 'GB', 'GBR');\n $country->addRegion(new Region('Cheshire', 'CHS'));\n $country->addRegion(new Region('Camden', 'CMD'));\n $country->addRegion(new Region('Cambridgeshire', 'CAM'));\n $country->addRegion(new Region('Calderdale', 'CLD'));\n $country->addRegion(new Region('Bury', 'BUR'));\n $country->addRegion(new Region('Buckinghamshire', 'BKM'));\n $country->addRegion(new Region('Bromley', 'BRY'));\n $country->addRegion(new Region('Bristol', 'BST'));\n $country->addRegion(new Region('Brighton and Hove', 'BNH'));\n $country->addRegion(new Region('Brent', 'BEN'));\n $country->addRegion(new Region('Bradford', 'BRD'));\n $country->addRegion(new Region('Bracknell Forest', 'BRC'));\n $country->addRegion(new Region('Bournemouth', 'BMH'));\n $country->addRegion(new Region('Bolton', 'BOL'));\n $country->addRegion(new Region('Blackpool', 'BPL'));\n $country->addRegion(new Region('Birmingham', 'BIR'));\n $country->addRegion(new Region('Bexley', 'BEX'));\n $country->addRegion(new Region('Bedfordshire', 'BDF'));\n $country->addRegion(new Region('Bath and North East Somerset', 'BAS'));\n $country->addRegion(new Region('Barnsley', 'BNS'));\n $country->addRegion(new Region('Barnet', 'BNE'));\n $country->addRegion(new Region('Cornwall', 'CON'));\n $country->addRegion(new Region('Coventry', 'COV'));\n $country->addRegion(new Region('Croydon', 'CRY'));\n $country->addRegion(new Region('Cumbria', 'CMA'));\n $country->addRegion(new Region('Darlington', 'DAL'));\n $country->addRegion(new Region('Derby', 'DER'));\n $country->addRegion(new Region('Derbyshire', 'DBY'));\n $country->addRegion(new Region('Devon', 'DEV'));\n $country->addRegion(new Region('Doncaster', 'DNC'));\n $country->addRegion(new Region('Dorset', 'DOR'));\n $country->addRegion(new Region('Dudley', 'DUD'));\n $country->addRegion(new Region('Durham', 'DUR'));\n $country->addRegion(new Region('Blackburn with Darwen', 'BBD'));\n $country->addRegion(new Region('Ealing', 'EAL'));\n $country->addRegion(new Region('East Riding of Yorkshire', 'ERY'));\n $country->addRegion(new Region('East Sussex', 'ESX'));\n $country->addRegion(new Region('Enfield', 'ENF'));\n $country->addRegion(new Region('Essex', 'ESS'));\n $country->addRegion(new Region('Gateshead', 'GAT'));\n $country->addRegion(new Region('Gloucestershire', 'GLS'));\n $country->addRegion(new Region('Greenwich', 'GRE'));\n $country->addRegion(new Region('Hackney', 'HCK'));\n $country->addRegion(new Region('Halton', 'HAL'));\n $country->addRegion(new Region('Hammersmith and Fulham', 'HMF'));\n $country->addRegion(new Region('Hampshire', 'HAM'));\n $country->addRegion(new Region('Haringey', 'HRY'));\n $country->addRegion(new Region('Harrow', 'HRW'));\n $country->addRegion(new Region('Hartlepool', 'HPL'));\n $country->addRegion(new Region('Havering', 'HAV'));\n $country->addRegion(new Region('Herefordshire, County of', 'HEF'));\n $country->addRegion(new Region('Hertfordshire', 'HRT'));\n $country->addRegion(new Region('Hillingdon', 'HIL'));\n $country->addRegion(new Region('Hounslow', 'HNS'));\n $country->addRegion(new Region('Isle of Wight', 'IOW'));\n $country->addRegion(new Region('Isles of Scilly', 'IOS'));\n $country->addRegion(new Region('Islington', 'ISL'));\n $country->addRegion(new Region('Kensington and Chelsea', 'KEC'));\n $country->addRegion(new Region('Kent', 'KEN'));\n $country->addRegion(new Region('Kingston upon Hull', 'KHL'));\n $country->addRegion(new Region('Kingston upon Thames', 'KTT'));\n $country->addRegion(new Region('Kirklees', 'KIR'));\n $country->addRegion(new Region('Knowsley', 'KWL'));\n $country->addRegion(new Region('Lambeth', 'LBH'));\n $country->addRegion(new Region('Lancashire', 'LAN'));\n $country->addRegion(new Region('Leeds', 'LDS'));\n $country->addRegion(new Region('Leicester', 'LCE'));\n $country->addRegion(new Region('Leicestershire', 'LEC'));\n $country->addRegion(new Region('Lewisham', 'LEW'));\n $country->addRegion(new Region('Lincolnshire', 'LIN'));\n $country->addRegion(new Region('Liverpool', 'LIV'));\n $country->addRegion(new Region('London', 'LND'));\n $country->addRegion(new Region('Luton', 'LUT'));\n $country->addRegion(new Region('Manchester', 'MAN'));\n $country->addRegion(new Region('Medway', 'MDW'));\n $country->addRegion(new Region('Merton', 'MRT'));\n $country->addRegion(new Region('Middlesbrough', 'MDB'));\n $country->addRegion(new Region('Milton Keynes', 'MIK'));\n $country->addRegion(new Region('Newcastle upon Tyne', 'NET'));\n $country->addRegion(new Region('Newham', 'NWM'));\n $country->addRegion(new Region('Norfolk', 'NFK'));\n $country->addRegion(new Region('North East Lincolnshire', 'NEL'));\n $country->addRegion(new Region('North Lincolnshire', 'NLN'));\n $country->addRegion(new Region('North Somerset', 'NSM'));\n $country->addRegion(new Region('North Tyneside', 'NTY'));\n $country->addRegion(new Region('North Yorkshire', 'NYK'));\n $country->addRegion(new Region('Northhamptonshire', 'NTH'));\n $country->addRegion(new Region('Northumerland', 'NBL'));\n $country->addRegion(new Region('Nottingham', 'NGM'));\n $country->addRegion(new Region('Nottinghamshire', 'NTT'));\n $country->addRegion(new Region('Oldham', 'OLD'));\n $country->addRegion(new Region('Oxfordshire', 'OXF'));\n $country->addRegion(new Region('Peterborough', 'PTE'));\n $country->addRegion(new Region('Plymouth', 'PLY'));\n $country->addRegion(new Region('Portsmouth', 'POR'));\n $country->addRegion(new Region('Reading', 'RDG'));\n $country->addRegion(new Region('Redbridge', 'RDB'));\n $country->addRegion(new Region('Redcar and Cleveland', 'RCC'));\n $country->addRegion(new Region('Richmond upon Thames', 'RIC'));\n $country->addRegion(new Region('Rochdale', 'RCH'));\n $country->addRegion(new Region('Rotherham', 'ROT'));\n $country->addRegion(new Region('Rutland', 'RUT'));\n $country->addRegion(new Region('St Helens', 'SHN'));\n $country->addRegion(new Region('Salford', 'SLF'));\n $country->addRegion(new Region('Sandwell', 'SAW'));\n $country->addRegion(new Region('Sefton', 'SFT'));\n $country->addRegion(new Region('Sheffield', 'SHF'));\n $country->addRegion(new Region('Shropeshire', 'SHR'));\n $country->addRegion(new Region('Slough', 'SLG'));\n $country->addRegion(new Region('Solihull', 'SOL'));\n $country->addRegion(new Region('Somerset', 'SOM'));\n $country->addRegion(new Region('South Gloucestershire', 'SGC'));\n $country->addRegion(new Region('South Tyneside', 'STY'));\n $country->addRegion(new Region('Southampton', 'STH'));\n $country->addRegion(new Region('Southend-on-Sea', 'SOS'));\n $country->addRegion(new Region('Southwark', 'SWK'));\n $country->addRegion(new Region('Staffordshire', 'STS'));\n $country->addRegion(new Region('Stockport', 'SKP'));\n $country->addRegion(new Region('Stockton-on-Tees', 'STE'));\n $country->addRegion(new Region('Suffolk', 'SFK'));\n $country->addRegion(new Region('Sunderland', 'SND'));\n $country->addRegion(new Region('Surrey', 'SRY'));\n $country->addRegion(new Region('Sutton', 'STN'));\n $country->addRegion(new Region('Swindon', 'SWD'));\n $country->addRegion(new Region('Tameside', 'TAM'));\n $country->addRegion(new Region('Telford and Wrekin', 'TFW'));\n $country->addRegion(new Region('Thurrock', 'THR'));\n $country->addRegion(new Region('Torbay', 'TOB'));\n $country->addRegion(new Region('Tower Hamlets', 'TWH'));\n $country->addRegion(new Region('Trafford', 'TRF'));\n $country->addRegion(new Region('Wakefield', 'WKF'));\n $country->addRegion(new Region('Walsall', 'WLL'));\n $country->addRegion(new Region('Waltham Forest', 'WFT'));\n $country->addRegion(new Region('Wandsworth', 'WND'));\n $country->addRegion(new Region('Warrington', 'WRT'));\n $country->addRegion(new Region('Warrwickshire', 'WAR'));\n $country->addRegion(new Region('West Berkshire', 'WBK'));\n $country->addRegion(new Region('West Sussex', 'WSX'));\n $country->addRegion(new Region('Westminster', 'WSM'));\n $country->addRegion(new Region('Wigan', 'WGN'));\n $country->addRegion(new Region('Wiltshire', 'WIL'));\n $country->addRegion(new Region('Windsor and Maidenhead', 'WNM'));\n $country->addRegion(new Region('Wirral', 'WRL'));\n $country->addRegion(new Region('Workingham', 'WOK'));\n $country->addRegion(new Region('Wolverhampton', 'WLV'));\n $country->addRegion(new Region('Worcestershire', 'WOR'));\n $country->addRegion(new Region('York', 'YOR'));\n $country->addRegion(new Region('Stoke-on-Trent', 'STE'));\n $country->addRegion(new Region('North Somerset', 'NSM'));\n $country->addRegion(new Region('Luton', 'LUT'));\n $country->addRegion(new Region('Hartlepool', 'HPL'));\n $country->addRegion(new Region('Poole', 'POL'));\n $country->addRegion(new Region('Isle of Anglesey', 'AGY'));\n $country->addRegion(new Region('Wrexham', 'WRX'));\n $manager->persist($country);\n\n // United States\n $country = new Country('United States', 'US', 'USA');\n $country->addRegion(new Region('Alabama', 'AL'));\n $country->addRegion(new Region('Alaska', 'AK'));\n $country->addRegion(new Region('American Samoa', 'AS'));\n $country->addRegion(new Region('Arizona', 'AZ'));\n $country->addRegion(new Region('Arkansas', 'AR'));\n $country->addRegion(new Region('California', 'CA'));\n $country->addRegion(new Region('Colorado', 'CO'));\n $country->addRegion(new Region('Connecticut', 'CT'));\n $country->addRegion(new Region('Delaware', 'DE'));\n $country->addRegion(new Region('District of Columbia', 'DC'));\n $country->addRegion(new Region('Florida', 'FL'));\n $country->addRegion(new Region('Georgia', 'GA'));\n $country->addRegion(new Region('Guam', 'GU'));\n $country->addRegion(new Region('Hawaii', 'HI'));\n $country->addRegion(new Region('Idaho', 'ID'));\n $country->addRegion(new Region('Illinois', 'IL'));\n $country->addRegion(new Region('Indiana', 'IN'));\n $country->addRegion(new Region('Iowa', 'IA'));\n $country->addRegion(new Region('Kansas', 'KS'));\n $country->addRegion(new Region('Kentucky', 'KY'));\n $country->addRegion(new Region('Louisiana', 'LA'));\n $country->addRegion(new Region('Maine', 'ME'));\n $country->addRegion(new Region('Maryland', 'MD'));\n $country->addRegion(new Region('Massachusetts', 'MA'));\n $country->addRegion(new Region('Michigan', 'MI'));\n $country->addRegion(new Region('Minnesota', 'MN'));\n $country->addRegion(new Region('Mississippi', 'MS'));\n $country->addRegion(new Region('Missouri', 'MO'));\n $country->addRegion(new Region('Montana', 'MT'));\n $country->addRegion(new Region('Nebraska', 'NE'));\n $country->addRegion(new Region('Nevada', 'NV'));\n $country->addRegion(new Region('New Hampshire', 'NH'));\n $country->addRegion(new Region('New Jersey', 'NJ'));\n $country->addRegion(new Region('New Mexico', 'NM'));\n $country->addRegion(new Region('New York', 'NY'));\n $country->addRegion(new Region('North Carolina', 'NC'));\n $country->addRegion(new Region('North Dakota', 'ND'));\n $country->addRegion(new Region('Northern Mariana Islands', 'MP'));\n $country->addRegion(new Region('Ohio', 'OH'));\n $country->addRegion(new Region('Oklahoma', 'OK'));\n $country->addRegion(new Region('Oregon', 'OR'));\n $country->addRegion(new Region('Pennsylvania', 'PA'));\n $country->addRegion(new Region('Puerto Rico', 'PR'));\n $country->addRegion(new Region('Rhode Island', 'RI'));\n $country->addRegion(new Region('South Carolina', 'SC'));\n $country->addRegion(new Region('South Dakota', 'SD'));\n $country->addRegion(new Region('Tennessee', 'TN'));\n $country->addRegion(new Region('Texas', 'TX'));\n $country->addRegion(new Region('United States Minor Outlying Islands', 'UM'));\n $country->addRegion(new Region('Utah', 'UT'));\n $country->addRegion(new Region('Vermont', 'VT'));\n $country->addRegion(new Region('Virgin Islands', 'VI'));\n $country->addRegion(new Region('Virginia', 'VA'));\n $country->addRegion(new Region('Washington', 'WA'));\n $country->addRegion(new Region('West Virginia', 'WV'));\n $country->addRegion(new Region('Wisconsin', 'WI'));\n $country->addRegion(new Region('Wyoming', 'WY'));\n $manager->persist($country);\n\n // Uruguay\n $country = new Country('Uruguay', 'UY', 'URY');\n $country->addRegion(new Region('Artigas', 'ART'));\n $country->addRegion(new Region('Canelones', 'CAN'));\n $country->addRegion(new Region('Cerro', 'Lar'));\n $country->addRegion(new Region('Colonia', 'COL'));\n $country->addRegion(new Region('Durazno', 'DUR'));\n $country->addRegion(new Region('Florida', 'FLO'));\n $country->addRegion(new Region('Lavalleja', 'LAV'));\n $country->addRegion(new Region('Maldonado', 'MAL'));\n $country->addRegion(new Region('Montevideo', 'MON'));\n $country->addRegion(new Region('Paysandu', 'PAY'));\n $country->addRegion(new Region('Rio', 'Neg'));\n $country->addRegion(new Region('Rivera', 'RIV'));\n $country->addRegion(new Region('Rocha', 'ROC'));\n $country->addRegion(new Region('Salto', 'SAL'));\n $country->addRegion(new Region('San', 'Jos'));\n $country->addRegion(new Region('Soriano', 'SOR'));\n $country->addRegion(new Region('Tacuarembo', 'TAC'));\n $country->addRegion(new Region('Treinta', 'y'));\n $manager->persist($country);\n\n // Uzbekistan\n $country = new Country('Uzbekistan', 'UZ', 'UZB');\n $country->addRegion(new Region('Andijon', 'AND'));\n $country->addRegion(new Region('Buxoro', 'BUX'));\n $country->addRegion(new Region('Jizzax', 'JIZ'));\n $country->addRegion(new Region('Namangan', 'NAM'));\n $country->addRegion(new Region('Navoiy', 'NAV'));\n $country->addRegion(new Region('Qashqadaryo', 'QAS'));\n $country->addRegion(new Region('Qoraqalpog`iston', 'QOR'));\n $country->addRegion(new Region('Samarqand', 'SAM'));\n $country->addRegion(new Region('Sirdaryo', 'SIR'));\n $country->addRegion(new Region('Surxondaryo', 'SUR'));\n $country->addRegion(new Region('Toshkent', 'TOS'));\n $country->addRegion(new Region('Toshkent', 'Sha'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Xorazm', 'XOR'));\n $manager->persist($country);\n\n // Vanuatu\n $country = new Country('Vanuatu', 'VU', 'VUT');\n $country->addRegion(new Region('Vanuatu', 'VAN'));\n $manager->persist($country);\n\n // Vatican City State (Holy See)\n $country = new Country('Vatican City State (Holy See)', 'VA', 'VAT');\n $manager->persist($country);\n\n // Venezuela\n $country = new Country('Venezuela', 'VE', 'VEN');\n $country->addRegion(new Region('Amazonas', 'AMA'));\n $country->addRegion(new Region('Anzoategui', 'ANZ'));\n $country->addRegion(new Region('Apure', 'APU'));\n $country->addRegion(new Region('Aragua', 'ARA'));\n $country->addRegion(new Region('Barinas', 'BAR'));\n $country->addRegion(new Region('Bolivar', 'BOL'));\n $country->addRegion(new Region('Carabobo', 'CAR'));\n $country->addRegion(new Region('Falcon', 'FAL'));\n $country->addRegion(new Region('Guarico', 'GUA'));\n $country->addRegion(new Region('Lara', 'LAR'));\n $country->addRegion(new Region('Merida', 'MER'));\n $country->addRegion(new Region('Miranda', 'MIR'));\n $country->addRegion(new Region('Monagas', 'MON'));\n $country->addRegion(new Region('Nueva', 'Esp'));\n $country->addRegion(new Region('Sucre', 'SUC'));\n $country->addRegion(new Region('Tachira', 'TAC'));\n $country->addRegion(new Region('Trujillo', 'TRU'));\n $country->addRegion(new Region('Vargas', 'VAR'));\n $country->addRegion(new Region('Yaracuy', 'YAR'));\n $country->addRegion(new Region('Zulia', 'ZUL'));\n $manager->persist($country);\n\n // Viet Nam\n $country = new Country('Viet Nam', 'VN', 'VNM');\n $country->addRegion(new Region('An', 'Gia'));\n $country->addRegion(new Region('Ba', 'Ria'));\n $country->addRegion(new Region('Bac', 'Gia'));\n $country->addRegion(new Region('Bac', 'Kan'));\n $country->addRegion(new Region('Bac', 'Lie'));\n $country->addRegion(new Region('Bac', 'Nin'));\n $country->addRegion(new Region('Ben', 'Tre'));\n $country->addRegion(new Region('Binh', 'Din'));\n $country->addRegion(new Region('Binh', 'Duo'));\n $country->addRegion(new Region('Binh', 'Phu'));\n $country->addRegion(new Region('Binh', 'Thu'));\n $country->addRegion(new Region('Ca', 'Mau'));\n $country->addRegion(new Region('Can', 'Tho'));\n $country->addRegion(new Region('Cao', 'Ban'));\n $country->addRegion(new Region('Da', 'Nan'));\n $country->addRegion(new Region('Dac', 'Lak'));\n $country->addRegion(new Region('Dong', 'Nai'));\n $country->addRegion(new Region('Dong', 'Tha'));\n $country->addRegion(new Region('Gia', 'Lai'));\n $country->addRegion(new Region('Ha', 'Gia'));\n $country->addRegion(new Region('Ha', 'Nam'));\n $country->addRegion(new Region('Ha', 'Tay'));\n $country->addRegion(new Region('Ha', 'Tin'));\n $country->addRegion(new Region('Hai', 'Duo'));\n $country->addRegion(new Region('Hoa', 'Bin'));\n $country->addRegion(new Region('Hung', 'Yen'));\n $country->addRegion(new Region('Khanh', 'Hoa'));\n $country->addRegion(new Region('Kien', 'Gia'));\n $country->addRegion(new Region('Kon', 'Tum'));\n $country->addRegion(new Region('Lai', 'Cha'));\n $country->addRegion(new Region('Lam', 'Don'));\n $country->addRegion(new Region('Lang', 'Son'));\n $country->addRegion(new Region('Lao', 'Cai'));\n $country->addRegion(new Region('Long', 'An'));\n $country->addRegion(new Region('Nam', 'Din'));\n $country->addRegion(new Region('Nghe', 'An'));\n $country->addRegion(new Region('Ninh', 'Bin'));\n $country->addRegion(new Region('Ninh', 'Thu'));\n $country->addRegion(new Region('Phu', 'Tho'));\n $country->addRegion(new Region('Phu', 'Yen'));\n $country->addRegion(new Region('Quang', 'Bin'));\n $country->addRegion(new Region('Quang', 'Nam'));\n $country->addRegion(new Region('Quang', 'Nga'));\n $country->addRegion(new Region('Quang', 'Nin'));\n $country->addRegion(new Region('Quang', 'Tri'));\n $country->addRegion(new Region('Soc', 'Tra'));\n $country->addRegion(new Region('Son', 'La'));\n $country->addRegion(new Region('Tay', 'Nin'));\n $country->addRegion(new Region('Thai', 'Bin'));\n $country->addRegion(new Region('Thai', 'Ngu'));\n $country->addRegion(new Region('Thanh', 'Hoa'));\n $country->addRegion(new Region('Thanh', 'Pho'));\n $country->addRegion(new Region('Thanh', 'Pho'));\n $country->addRegion(new Region('Thu', 'Do'));\n $country->addRegion(new Region('Thua', 'Thi'));\n $country->addRegion(new Region('Tien', 'Gia'));\n $country->addRegion(new Region('Tra', 'Vin'));\n $country->addRegion(new Region('Tuyen', 'Qua'));\n $country->addRegion(new Region('Vinh', 'Lon'));\n $country->addRegion(new Region('Vinh', 'Phu'));\n $country->addRegion(new Region('Yen', 'Bai'));\n $manager->persist($country);\n\n // Virgin Islands (British)\n $country = new Country('Virgin Islands (British)', 'VG', 'VGB');\n $manager->persist($country);\n\n // Virgin Islands (U.S.)\n $country = new Country('Virgin Islands (U.S.)', 'VI', 'VIR');\n $manager->persist($country);\n\n // Wallis and Futuna Islands\n $country = new Country('Wallis and Futuna Islands', 'WF', 'WLF');\n $manager->persist($country);\n\n // Western Sahara\n $country = new Country('Western Sahara', 'EH', 'ESH');\n $manager->persist($country);\n\n // Yemen\n $country = new Country('Yemen', 'YE', 'YEM');\n $country->addRegion(new Region('Yemen', 'YEM'));\n $manager->persist($country);\n\n // Yugoslavia\n $country = new Country('Yugoslavia', 'YU', 'YUG');\n $manager->persist($country);\n\n // Zaire\n $country = new Country('Zaire', 'ZR', 'ZAR');\n $manager->persist($country);\n\n // Zambia\n $country = new Country('Zambia', 'ZM', 'ZMB');\n $country->addRegion(new Region('Central', 'CEN'));\n $country->addRegion(new Region('Eastern', 'EAS'));\n $country->addRegion(new Region('Lusaka', 'LUS'));\n $country->addRegion(new Region('Southern', 'SOU'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $country->addRegion(new Region('Western', 'WES'));\n $manager->persist($country);\n\n // Zimbabwe\n $country = new Country('Zimbabwe', 'ZW', 'ZWE');\n $country->addRegion(new Region('Harare', 'HAR'));\n $country->addRegion(new Region('Manicaland', 'MNL'));\n $country->addRegion(new Region('Mashonaland', 'Eas'));\n $country->addRegion(new Region('Mashonaland', 'Wes'));\n $country->addRegion(new Region('Masvingo', 'MVG'));\n $country->addRegion(new Region('Matabeleland', 'Nor'));\n $country->addRegion(new Region('Matabeleland', 'Sou'));\n $country->addRegion(new Region('Midlands', 'MID'));\n $country->addRegion(new Region('Unknown', 'UNK'));\n $manager->persist($country);\n\n $manager->flush();\n }", "title": "" }, { "docid": "f5ead3cd85cc19bbdb7bd40ea0084434", "score": "0.43878067", "text": "public static function _init()\n {\n \\Config::load('cache', true);\n }", "title": "" }, { "docid": "ccd7c8313f6a347b26b66adc763af850", "score": "0.4380757", "text": "protected abstract function getConfig();", "title": "" }, { "docid": "1c22604012bf4d6d12f12e2ae6bdae74", "score": "0.43800408", "text": "public function moduleOptionsLoad()\n\t{\n\t\t$GLOBALS['TL_DCA']['tl_iso_shipping_options']['palettes']['default'] = '{general_legend},name,description;{config_legend},rate,minimum_total,maximum_total';\n\t}", "title": "" }, { "docid": "9c96ee341ad7433f4598f67d2327ffe2", "score": "0.4379125", "text": "public static function getProvider(){}", "title": "" }, { "docid": "844377ec6f3740d7efe5686b4a559a7a", "score": "0.43732226", "text": "abstract protected function setProvider($config);", "title": "" }, { "docid": "532f3f9b61a003ef9ec4131ed42ae12e", "score": "0.43726566", "text": "public function getWegeooConfiguration($wegeooType, $categoryLocaleName,$cityPostCode=null, $cityName=null, $map = null, $search=null)\n {\n //find the city from name and postCode\n $lCityName = NULL;\n $lCityPostCode = NULL;\n\n if ( $cityPostCode !== \"\" && $cityName !== \"\")\n {\n $lSlugName = $this->getSlugName($cityPostCode,$cityName);\n\n $this->mLogger->info(\"lSlugName:\" . $lSlugName);\n $lCities = $this->mEntityManager\n ->getRepository(\"WegeooDataLayerBundle:City\")\n ->findBy(array(\"slugName\" => $lSlugName));\n\n $this->mLogger->info(\"count(lCities):\" . count($lCities));\n\n if (count($lCities) == 1)\n {\n $lCityPostCode = $lCities[0]->getPostCode();\n $lCityName = $lCities[0]->getName();\n }\n }\n\n //set the default city if nothing is specified or found above\n if ( $lCityName === NULL && $lCityPostCode === NULL)\n {\n $lCityPostCode = $this->mContainer->getParameter(\"default_city_postcode\");\n $lCityName = $this->mContainer->getParameter(\"default_city_name\");\n }\n\n $lConfiguration = array();\n $lConfiguration[\"cityPostCode\"] = $lCityPostCode;\n $lConfiguration[\"cityName\"] = $lCityName;\n $lConfiguration[\"title\"] \t\t = $this->mTranslator->trans(\"wegeoo.meta.title\");\n $lConfiguration[\"title\"] = sprintf($lConfiguration[\"title\"] , ucfirst($lConfiguration[\"cityName\"]));\n $lConfiguration[\"description\"] \t\t = $this->mTranslator->trans(\"wegeoo.meta.description\");\n $lConfiguration[\"category\"] = $this->mTranslator->trans($categoryLocaleName , array(), \"routing\");\n $lConfiguration[\"mostPopulatedTowns\"] \t= $this->getMostPopulatedTowns();\n $lConfiguration[\"baseURL\"] \t\t\t\t= $this->mRouter->getContext()->getBaseUrl();\n $lConfiguration[\"previewClassifiedAdTemplateURL\"] = \"\";//@TODO create a config file\n\n $this->mLogger->info(\"lConfiguration1:\".var_export($lConfiguration,true));\n\n return $lConfiguration;\n }", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.4366377", "text": "public function getConfig();", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "97c51cab4a2ebd0c97c646aca8926260", "score": "0.7629593", "text": "public function remove(ResourceInterface $resource);", "title": "" }, { "docid": "2b9d2c85f4c5a3ea90f0276710558864", "score": "0.73587126", "text": "public function removeResource(ResourceInterface $resource);", "title": "" }, { "docid": "f3145913d36c871004ac569d3ea3b842", "score": "0.68346053", "text": "public function remove()\n {\n /** Not needed in this storage */\n }", "title": "" }, { "docid": "4899cb69f473bc3ba1f4a04f43330487", "score": "0.67682105", "text": "public function delete($resource, $id);", "title": "" }, { "docid": "0339cc54ab464d5806494f53b7d84761", "score": "0.66848737", "text": "public function destroy(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "52c1a7c30e906794e889381e09749736", "score": "0.63817745", "text": "public function delete(ResourceTypeInterface $resourceType);", "title": "" }, { "docid": "5a5e27d4baf0a8d48a3ac4cd3f04c3ed", "score": "0.6287119", "text": "function removeStorage($imgName,$storagePath){\n return Storage::delete($storagePath.\"/\".$imgName);\n }", "title": "" }, { "docid": "dbe827e5c99e979e1cb815eddd797184", "score": "0.6278533", "text": "public function destroy($id)\n {\n// Storage::delete('file.jpg');\n }", "title": "" }, { "docid": "78c3b7fd0c00f45a9e6a8a5f6ed56a7a", "score": "0.6199108", "text": "protected function removeResourceAndThumbnailsByResource(Resource $resource)\n {\n // delete from database\n $this->deleteThumbnailsByResource($resource);\n\n $resource->disableLifecycleEvents();\n $this->persistenceManager->remove($resource);\n }", "title": "" }, { "docid": "64fdd6f4d9385414cdb313161249d8ec", "score": "0.6190533", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "d3de183319816e68e04b4ba5ab69a652", "score": "0.6125602", "text": "public function wipeStorage(): void;", "title": "" }, { "docid": "9a3fb17518efe8911c9caa31836bf58e", "score": "0.6083851", "text": "public function destroy($id)\n {\n //\n $storage = Storage::findOrFail($id);\n $storage->delete();\n return redirect()->route('admin.specificate.storage.index');\n }", "title": "" }, { "docid": "0d390882ed3b7497dc5a3ef5f578179f", "score": "0.6073157", "text": "function cleanup_resource($request_path, $created_resource)\n {\n $this->emit_detail(\"Cleaning up (DELETE) Resource {$request_path}/{$created_resource['id']}\");\n $this->assert_api_delete(\"{$request_path}/{$created_resource['id']}\");\n }", "title": "" }, { "docid": "5eb527f9c836748cdd39d6f19527a3bc", "score": "0.6071406", "text": "public function destroy(Resource $resource) {\n $resource->delete();\n return redirect()->route('admin.resources.index')->with('success', 'Resource deleted!');\n }", "title": "" }, { "docid": "2bc45e3efcdaeea24d7871374eee5196", "score": "0.606356", "text": "public function delete(): void\n {\n $absoluteFolder = __FILE_STORAGE_PATH__ . $this->file->folder;\n $absoluteFile = $absoluteFolder . '/' . $this->file->fileName;\n unlink($absoluteFile);\n }", "title": "" }, { "docid": "56ef86723a3ce311a8ed60a2c434aaba", "score": "0.60469806", "text": "private function destroyResource()\n {\n foreach ($this->events as $event) {\n $this->removeEvent($event);\n }\n\n if ($this->handle) {\n event_base_loopexit($this->handle, 1);\n event_base_free($this->handle);\n $this->handle = null;\n }\n }", "title": "" }, { "docid": "cf8f9645c05b25edb15fe5ac3b20e0d9", "score": "0.6045932", "text": "protected function delete($resource){\n $entity = $this->dataService->delete($resource);\n return $entity;\n }", "title": "" }, { "docid": "27f5fe23fb8978b59377436419e62306", "score": "0.6006565", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n $resource = new ResourceResource($resource);\n return $this->success('Resource Deleted Successfully.', $resource);\n }", "title": "" }, { "docid": "ce2d9089bdc6105e259a8fc7435710e3", "score": "0.5969368", "text": "public function physicalRemove(){\n \n global $strings;\n\n if ($this->isOnS3()){\n if(!$this->getS3()->deleteObject($this->bucket, $this->path)){\n throw new Exception($strings['cantDeleteFileS3']);\n }\n }else{\n if (!unlink($this->getPhysicalPath())){\n throw new Exception(\"Can't delete: \" . $this->getPhysicalPath());\n }\n }\n\n }", "title": "" }, { "docid": "342298363719c61574c6860bd21aaa5c", "score": "0.5961146", "text": "public function remove($id)\n {\n $media = Media::findOrFail($id);\n // Storage::delete('storage/'.$media->filename);\n // return redirect('dashboard/media');\n $path = public_path().\"/storage/\".$media->filename;\n if(File::exists($path)){\n File::delete($path);\n } \n $media->delete();\n return redirect('dashboard/media');\n }", "title": "" }, { "docid": "256b2882eab04971d66d3cd5fe279069", "score": "0.5953901", "text": "function remove_by_resource_id($faistate_resource_id) {\n\t$db=htvcenter_get_db_connection();\n\t$rs = $db->Execute(\"delete from \".$this->_db_table.\" where fai_resource_id=\".$faistate_resource_id);\n}", "title": "" }, { "docid": "0f33fc82bbb0ee650523b55fee3fd916", "score": "0.59241194", "text": "public function deleteResource(\n Resource\\ResourceType $resourceType,\n Resource\\ResourceId $resourceId\n );", "title": "" }, { "docid": "36651b549fe41bd0664da956114a9c49", "score": "0.5921025", "text": "private function _deleteStorage($name) {\r\n\t\tunset($this->_storage[$name]);\r\n\t}", "title": "" }, { "docid": "52076dacbb2bf9f60da7deed7636119b", "score": "0.5918752", "text": "public function destroy($id)\n {\n $get=Slide::where('id',$id)->first();\n if($get->image!=null&&file_exists(\"/storage/$get->image\")){\n unlink('storage/'.$get->image);\n }\n $get->delete();\n return redirect()->route('listSlide');\n }", "title": "" }, { "docid": "f51dca1995fbb4ea013dc67c8631ad87", "score": "0.5914943", "text": "public function trash($resourceId)\n {\n $resource = $this->resourceContract->findOnlyTrashed($resourceId);\n Storage::disk('public')->delete('resources/' . $resource->document);\n\n $result = $this->resourceContract->destory($resource);\n\n $result ? Flash::success('Resource has been forcefully deleted.')\n : Flash::error('Resource could not be forcefully deleted.');\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "a026f3ede198f3fb93bcad88386d926d", "score": "0.58884346", "text": "public function remove()\r\n\t{\r\n\t\tif ($this->id)\r\n\t\t{\r\n\t\t\t// TODO: delete\r\n\t\t\t$this->id = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "45d0719ac780944f2d2b2ab31d280549", "score": "0.58856535", "text": "public function remove($id, $filename = null);", "title": "" }, { "docid": "6431de611c573a19db0ba3678e104c9e", "score": "0.58781254", "text": "public function destroy($id)\n {\n //eliminar por id\n $usuario= Usuarios::findOrFail($id);\n\n if( Storage::delete('public/'.$usuario->Foto)){\n Usuarios::destroy($id);\n }\n \n return redirect('usuarios');\n\n }", "title": "" }, { "docid": "49d15f822dfd652237898762b1555ff1", "score": "0.5869462", "text": "public function onRemove()\n {\n try {\n $this->repository->getFilesystem()->delete($this->storageKey);\n } catch (FileNotFound $e) {\n if (!$this->isMissingFileIgnoredOnDelete()) {\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "a5b45321d84c25ff616ce9aaffca6cb1", "score": "0.58543277", "text": "public function remove(FileInterface $media);", "title": "" }, { "docid": "6fa97a75d590a5487f6acd2521e91056", "score": "0.5812348", "text": "public function destroy($id)\n {\n $resource = $this->CourseSectionResource->find($id);\n try{\n if(!empty($resource->file)){\n deleteFileFromPrivateStorage($resource->file);\n }\n }\n catch(\\Exception $e){\n session()->flash('error_msg' , 'Couldn`t delete resource file from storage!');\n }\n $this->CourseSectionResource->delete($resource->id);\n return redirect()->back()->with('success_msg', 'Course section resource deleted successfully!');\n }", "title": "" }, { "docid": "e1628f8f31899e5e41eb946b26eb231a", "score": "0.58072346", "text": "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n// if(Storage::exists('uploads/'.$product->avatar))\n// {\n// unlink('storage/uploads/'.$product->avatar);\n// }\n if(file_exists(public_path('uploads/'.$product->avatar)))\n {\n // dd(\"yes\");\n unlink(public_path('uploads/'.$product->avatar));\n }\n $product->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "33d10a0171eabd9b8fe683d93d2886aa", "score": "0.5801854", "text": "public function destroy() {\n $this->provider->trash( $this->getData() );\n }", "title": "" }, { "docid": "c76ba5203390ca9cf0624c810c367c90", "score": "0.5798788", "text": "public function deleteResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n\n try {\n // delete() returns boolean\n $wasDeleted = $client->delete(Path::fromString($resource->getSha1()));\n } catch (FileDoesNotExistsException $exception) {\n // In some rare cases the file might be missing in the storage but is still present in the db.\n // We need to process the corresponding exception to be able to also remove the resource from the db.\n $wasDeleted = true;\n }\n\n return $wasDeleted;\n }", "title": "" }, { "docid": "221de0333cec1309efddd33a75bcb64c", "score": "0.57902867", "text": "public function remove() {\r\n self::removeById($this->id);\r\n }", "title": "" }, { "docid": "58dd1e60cf8a295194560ca90fca3669", "score": "0.57566226", "text": "public function removeFromStorage($image)\n {\n Storage::disk('public')->delete($image);\n }", "title": "" }, { "docid": "c41a8c586f3cfc39935459b577d1b862", "score": "0.575272", "text": "public function removeUpload()\n {\n if (isset($this->temp)) {\n unlink($this->temp);\n }\n }", "title": "" }, { "docid": "750ee1857a66f841616cd130d5793980", "score": "0.57492644", "text": "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "title": "" }, { "docid": "3efb4e7d01d53fcd85a29779b8a9e415", "score": "0.5737984", "text": "public function remove(): void\n\t{\n\t\t$this->start();\n\t\t$this->data = null;\n\t\t$this->meta = null;\n\t}", "title": "" }, { "docid": "1fa59c233c11ccd35321ef052c3bb1c2", "score": "0.5732476", "text": "public function destroy($id){\n $slider = Slider::findOrFail($id);\n $myfile = public_path('public/uploads/slider/'.$slider->image_name);\n if (file_exists($myfile)){\n unlink($myfile);\n $slider->delete();\n \\Session::flash('flash_msg','Slider has been successfully deleted!');\n return redirect('/admin/slider/'); \n }else{\n $slider->delete();\n \\Session::flash('flash_msg','Slider has been successfully deleted!');\n return redirect('/admin/slider/');\n }\n\n }", "title": "" }, { "docid": "ca7fb18e5d4c43e979f30bce3c8319df", "score": "0.57185286", "text": "public function clearStorage(): void\n {\n $this -> getStorage() -> clear();\n }", "title": "" }, { "docid": "366c0d7d78edfe804e2c2262e8291b78", "score": "0.57133925", "text": "public function remove(Stream $person): void;", "title": "" }, { "docid": "ed7546f0b845fa3c3353ea35a4a20a99", "score": "0.5709106", "text": "public function remove() {\n\t\t$this->read();\n\t\t$this->clearBlock();\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "166e690e4f196682a2a814a6027b0db7", "score": "0.56951386", "text": "public function destroy($id)\n {\n $question=Question::find($id);\n //delete related file from storage\n $question->delete();\n return redirect()->route('questions.index');\n }", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.56849074", "text": "public function remove(): void;", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.56849074", "text": "public function remove(): void;", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "2c1af4221a72590e3cb0cd0ad912aa00", "score": "0.5676235", "text": "public function delete($key)\n {\n try{\n if ($this->fs->has($key)) {\n $this->fs->delete($key);\n }\n } catch (\\RuntimeException $ex) {\n throw StorageException::fromPrevious($ex);\n }\n }", "title": "" }, { "docid": "54cf17987ccf71e05fd4894be16724fe", "score": "0.56715244", "text": "public function destroy($id)\n {\n $result = Storage::destroy($id);\n\n if (!$result) return response(null, 404);\n\n return response(null, 200);\n }", "title": "" }, { "docid": "a1996902e0be9853d1ca44ee082f83c4", "score": "0.5652084", "text": "public function delete(StorageDeleteRequest $request)\n {\n $this->storages->remove($request->input('link'));\n\n return $this->respondJson([]);\n }", "title": "" }, { "docid": "4e1b157fd4962cd773a05c730cd6bf95", "score": "0.5639948", "text": "public function remove($payload);", "title": "" }, { "docid": "6a133bf2a539adcebeeef545cb23bdf7", "score": "0.56398225", "text": "public function removeEntity($entity);", "title": "" }, { "docid": "d8cf040d5d088baee69ea50d0218c37e", "score": "0.56377107", "text": "function delete_quiz_resource($id_quiz_resource) {\n if (!$this->ion_auth->logged_in()) {\n redirect();\n } else {\n $temp = $this->load->model_quiz->select_quiz_resource_by_id($id_quiz_resource)->row();\n if ($temp->ext != '') {\n unlink('./resource/' . $temp->file);\n $this->load->model_quiz->delete_quiz_resource($id_quiz_resource);\n } else {\n $this->load->model_quiz->delete_quiz_resource($id_quiz_resource);\n }\n $data1['resource_id'] = 0;\n $data2['summary_id'] = 0;\n $this->load->model_quiz->delete_quiz_resource_from_soal($id_quiz_resource, $data1);\n $this->load->model_quiz->delete_quiz_summary_from_soal($id_quiz_resource, $data2);\n }\n }", "title": "" }, { "docid": "6f829749f6f0cfbf567b9b89e34dcc1c", "score": "0.56330186", "text": "function external_resource_delete_delete($resource_id=null)\n\t{\t\t\n\t\t$this->load->model(\"Survey_resource_model\");\t\t\n\t\ttry{\n\t\t\tif(!is_numeric($resource_id)){\n\t\t\t\tthrow new Exception(\"MISSING_PARAM: resource_id\");\n\t\t\t}\n\n\t\t\t$this->Survey_resource_model->delete($resource_id);\n\t\t\t$this->set_response('DELETED', REST_Controller::HTTP_OK);\t\t\t\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\t$this->set_response($e->getMessage(), REST_Controller::HTTP_BAD_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "23aa98c0e45a4d5bc13c5c73f9bd3dde", "score": "0.56284964", "text": "public function destroy($id)\n {\n $getpost = Post::where('slug', '=',$id)->first();\n $filename = $getpost->thumbnail;\n $filename = public_path('uploads/photos'. $filename);\n if($getpost->delete()){\n if (file_exists($filename)) {\n @unlink($filename);\n }\n }\n\n \n}", "title": "" }, { "docid": "ce4dd2b67d8a9a32540569f994a6989e", "score": "0.562772", "text": "public function destroy(Supplier $supplier)\n {\n $remove = Supplier::find($supplier->id);\n $photo = $supplier->photo;\n if($photo){\n unlink($photo);\n }\n $remove->delete();\n }", "title": "" }, { "docid": "83296d43845200428d3f972a111c72f8", "score": "0.5608048", "text": "public function remove($id)\n {\n $this->persistence->remove($id);\n }", "title": "" }, { "docid": "3d22d714e6088f6711137bbeb6db1bbb", "score": "0.5600981", "text": "public function remove($path){\n return unlink($path);\n }", "title": "" }, { "docid": "27c4016299257e94c3026a2ba2ba5c83", "score": "0.55814904", "text": "public function destroy($id)\n {\n $slider = Slider::findOrFail($id);\n /*\n * unlink('backend/Images/'.$slider->image);\n *\n * the code is delete the image but we need image don't deltete it so for that reason we will\n * make comment to this code\n */\n $slider->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "2866af9241b67fd5770b87451aa83579", "score": "0.55732435", "text": "public function delete(string $path): self;", "title": "" }, { "docid": "7c943bc0e1841b8090151d8b0b8ca4ac", "score": "0.5568121", "text": "function remove(){\n Resource::remove($_SESSION[\"object_id\"]);\n\n DB::db_query(\"delete_collection\", \"DELETE FROM resource WHERE id='\".$_SESSION[\"object_id\"].\"'\");\n if(DB::db_check_result(\"delete_collection\") > 0){\n include($GLOBALS[\"draw_includes_path\"].\"/Resource/.BookDeleted.html\");\n }\n }", "title": "" }, { "docid": "bd1f8717cf8c32b58c71fe82e627e4e1", "score": "0.55641353", "text": "public function my_delete() {\n Storage::delete($this->path);\n \\Log::info('Deleted file: ' . $this->path);\n $this->delete();\n }", "title": "" }, { "docid": "c69a6aec9441a09ecb4034c5f58d9e56", "score": "0.55601335", "text": "public function destroy($id)\n {\n $post=Post::find($id);\n\n if(File::exists('storage/'.$post->image)){\n File::delete('storage/'.$post->image);\n }\n\n $post->tags()->detach();\n $post->delete();\n return redirect('/admin/posts');\n }", "title": "" }, { "docid": "b87ec107871ee33340d2fa1536c6d83e", "score": "0.55535823", "text": "public function destroy(Request $request)\n {\n $path = $request->input('path');\n $path = preg_replace('|^https?://[^\\/]+/storage/|', '', $path);\n Storage::disk('public')->delete($path);\n return response('ok', 204);\n }", "title": "" }, { "docid": "1445f22d5bc412cd6a2e4068e0188f31", "score": "0.5553502", "text": "public function destroy($id)\n {\n $data = User::find($id);\n if ($data->image != \"default.PNG\" && $data->image != \"\" ){ \n $fileName = $data->image;\n Storage::delete($fileName);\n }\n $data->delete();\n return redirect()->route('user.index');\n }", "title": "" }, { "docid": "9306b600c172932b3726caa50eab111c", "score": "0.55530834", "text": "public function destroy($id)\n {\n $file = MediaFiles::find($id);\n /*$mediaFiles->deleted = true;\n $mediaFiles->save();*/ \n $file->delete();\n }", "title": "" }, { "docid": "25fb474df202e3c8494a2eb910e15a59", "score": "0.55449986", "text": "public function deleteResource(){\n if(parent::delete()){\n return \"ok\";\n }\n return \"error\";\n }", "title": "" }, { "docid": "39f3b4981da393b14f808c0c0b6ef46c", "score": "0.55448544", "text": "public function delete($path) {\n try {\n $status = $this->_s3->deleteObject($this->_bucket, $this->_getObjectName($path));\n } catch(S3Exception $e) {\n $this->_log($e->getMessage());\n throw new Scalar_Storage_Exception('Unable to delete file.');\n }\n }", "title": "" }, { "docid": "bcab9946ef86c53d040c2a39fa7ecb57", "score": "0.55423814", "text": "public function remove($id)\n {\n if ($this->fileSystem->fileExists($id)) {\n $this->fileSystem->delete($id);\n }\n }", "title": "" }, { "docid": "619b554e580350c34f6536df94d8d29f", "score": "0.55413246", "text": "function remove_resource($resource_id) {\n if (empty($resource_id)) return FALSE;\n\t $this->db->trans_begin();\n\n\t\t$this->db->where('resource_id',$resource_id);\n\t\t$this->db->delete($this->tables['resources']);\n\n\t\t$this->db->where('resource_id',$resource_id);\n\t\t$this->db->delete($this->tables['grants']);\n\n\t\tif ($this->db->trans_status() === FALSE)\n\t {\n\t\t\t$this->db->trans_rollback();\n\t\t\treturn FALSE;\n\t }\n\n\t $this->db->trans_commit();\n\t return TRUE;\n }", "title": "" }, { "docid": "426f594c80545265eb0a48c145c39378", "score": "0.5540242", "text": "public function destroy($id)\n {\n $get=Blog::where('id',$id)->first();\n unlink('storage/'.$get->thumbnail);\n Blog::where('id',$id)->delete();\n return redirect()->route('listBlog');\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "b5b688091a31c75ff8615389051972dc", "score": "0.5539336", "text": "public function delete()\n {\n $this->removeImage();\n parent::delete();\n }", "title": "" }, { "docid": "4697a00d553d37cc8d8db652c56c76b2", "score": "0.5534565", "text": "public function remove($id)\n {\n $image = $this->image->find($id);\n\n $full_path = public_path('/images/product/'.$image->imagePath);\n\n File::delete($full_path);\n\n $image->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "2cce19e05c22aab21227d7f37af1fd4e", "score": "0.55311805", "text": "public function destroy($id)\n {\n $data=Slider::findOrFail($id);\n $img_path='public/uploads/sliders/'.$data['slider_image'];\n if($data['slider_image']!=null and file_exists($img_path)){\n unlink($img_path);\n }\n $data->delete();\n return redirect('slider')->with('msg_success','Slide Successfully Deleted!');\n }", "title": "" }, { "docid": "c63d38df163184005e90c31c619d88b8", "score": "0.5529311", "text": "public function delete()\n {\n return $this->storage->disk()->delete($this->path);\n }", "title": "" }, { "docid": "f75f489326b0b6ab4bdfe2ad0a2a4cb3", "score": "0.5527862", "text": "public function delete(): void\n {\n $this->api->delete($this);\n $this->api->getPool()->remove($this->_getPoolKeys());\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
3cd7fb14cf4231288efe2d4c195f70c4
Delete multiple Extrafield on list
[ { "docid": "c3998c81c93a393cb382294243842f14", "score": "0.5528587", "text": "function deleteBookingExtrafields() {\n if (isset($_POST['fields']) && !empty($_POST['fields'])) {\n $extra = new iwBookingExtra();\n $ids = $_POST['fields'];\n $msg = $extra->deleteBookingExtras($ids);\n if (isset($msg['error']) && isset($msg['success'])) {\n $_SESSION['bt_message'] = iwBookingUtility::getMessage(__($msg['error'] . $msg['success']), 'notice');\n } elseif (isset($msg['error']) && !isset($msg['success'])) {\n $_SESSION['bt_message'] = iwBookingUtility::getMessage(__($msg['error']), 'error');\n } elseif (!isset($msg['error']) && isset($msg['success'])) {\n $_SESSION['bt_message'] = iwBookingUtility::getMessage(__($msg['success']));\n } else {\n $_SESSION['bt_message'] = iwBookingUtility::getMessage(__('Unknown error', 'inwavethemes'));\n }\n } else {\n $_SESSION['bt_message'] = iwBookingUtility::getMessage(__('Please select row(s) to delete', IW_TEXT_DOMAIN), 'error');\n }\n wp_redirect(admin_url('edit.php?post_type=iw_booking&page=room-extra'));\n}", "title": "" } ]
[ { "docid": "f198a24fb021a0de83325454efaee379", "score": "0.6699298", "text": "private function removeExtraFields(FieldList $fields) {\n $fields->removeByName('FirstName');\n $fields->removeByName('Surname');\n $fields->removeByName('Country');\n $fields->removeByName('City');\n }", "title": "" }, { "docid": "6d82854113abedf77854e02ca8cfe429", "score": "0.6069525", "text": "public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }", "title": "" }, { "docid": "ca326ff4cd5dd86e290a8e0322c64d43", "score": "0.6057824", "text": "public function delete() {\n //TODO: preguntar si desea eliminar tambien los contactos de la lista\n $this->load->auto('marketing/list');\n if (($this->request->server['REQUEST_METHOD'] == 'POST')) {\n foreach ($this->request->post['selected'] as $id) {\n $this->modelList->delete($id);\n }\n } else {\n $this->modelList->delete($_GET['id']);\n }\n }", "title": "" }, { "docid": "01934b96c2b467d70059d36bae63bbf8", "score": "0.60245913", "text": "protected function doDeleteFieldItems($entities)\n {\n // TODO: Implement doDeleteFieldItems() method.\n }", "title": "" }, { "docid": "327ab4144e306d153f5e831339b23740", "score": "0.60014004", "text": "public function delete_duplicates()\n {\n if (empty($this->params['named']['field']))\n {\n echo 'You must enter a field to work with. http://recipe-manager/ingredients/delete_duplicates/field:ingredient';\n exit();\n }\n\n $field = $this->params['named']['field'];\n\n var_dump($field);\n\n $params = array();\n $result = $this->{$this->modelClass}->find('all', $params);\n\n\n foreach ($result as $item)\n {\n $params = array(\n 'conditions' => array($this->modelClass . '.' . $field => $item[$this->modelClass][$field]), //array of conditions\n );\n $r = $this->{$this->modelClass}->find('all', $params);\n\n if (count($r) == 2)\n {\n while (count($r) > 1)\n {\n $t = array_pop($r);\n var_dump($t[$this->modelClass]['_id']);\n $this->{$this->modelClass}->delete($t[$this->modelClass]['_id']);\n }\n }\n }\n\n\n exit('done');\n }", "title": "" }, { "docid": "d749c89214241fdb5200c5291e5cdb70", "score": "0.59802276", "text": "function del_all(){\n\t\t\t$ids = $this->input->post('ids');\n\t\t\tforeach($ids as $id){\n\t\t\t\t$this->_del($id, false);\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "628e2e8dfc299bc1938c374e56d2fa13", "score": "0.59685475", "text": "function rules_action_data_list_remove($list, $item) {\n foreach (array_keys($list, $item) as $key) {\n unset($list[$key]);\n }\n return array('list' => $list);\n}", "title": "" }, { "docid": "d57b928fdefcc1a09f3c3e2315cde590", "score": "0.59063786", "text": "public function delete()\n {\n $textvalues = $this->gettextvalues();\n $this->deleteValues($textvalues);\n \n $componentvalues = $this->getcomponentvalues();\n $this->deleteValues($componentvalues);\n \n $filevalues = $this->getfilevalues();\n $this->deleteValues($filevalues);\n \n $contributorvalues = $this->getcontributorvalues();\n $this->deleteValues($contributorvalues);\n \n parent::delete();\n }", "title": "" }, { "docid": "68ccaf83cc7b6582f0d02b4130350e83", "score": "0.5900393", "text": "function prp_delete_all_field_profile_permissions() {\r\n // comprobamos el usuario administrador\r\n if (!elgg_is_admin_logged_in()){\r\n // no es administrador, abandonamos\r\n register_error(elgg_echo('prp:error:admin_required'));\r\n return false;\r\n }\r\n \r\n // recuperamos los tipos de relacion definidos\r\n $options = array(\r\n 'type' => 'object',\r\n 'subtype' => 'prp_field_profile_permission',\r\n );\r\n $field_profile_permissions_list = elgg_get_entities($options);\r\n // recorremos las relaciones definidas\r\n foreach ($field_profile_permissions_list as $field_profile_permission) {\r\n // eliminamos el permiso\r\n $field_profile_permission->delete();\r\n }\r\n\r\n // devolvemos resultado OK\r\n return true;\r\n \r\n}", "title": "" }, { "docid": "8448a9562e834b84a91e96f1722082b9", "score": "0.5880262", "text": "public function afterDelete()\n {\n $this->deleteAllCustomFields();\n }", "title": "" }, { "docid": "0aa456c0c49bdc6bfabcf03a234423eb", "score": "0.58782274", "text": "public function remove(...$items);", "title": "" }, { "docid": "e7dcd1e471f2ad0a57956bcd40fb4fb4", "score": "0.5876809", "text": "function delete_list($ids)\n {\n $this->db->where_in('id', $ids);\n $success = $this->db->delete('attribute_sets');\n return $success;\n }", "title": "" }, { "docid": "e2c2900ad40d832b1ec99dc0c9bbc4b1", "score": "0.5866502", "text": "function multi_delete () {\n\t\t$ids_to_delete = array();\n\t\t// Prepare ids to delete\n\t\tforeach ((array)$_POST[\"items\"] as $_cur_id) {\n\t\t\tif (empty($_cur_id)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$ids_to_delete[$_cur_id] = $_cur_id;\n\t\t}\n\t\t// Do delete ids\n\t\tif (!empty($ids_to_delete)) {\n\t\t\tdb()->query(\"DELETE FROM \".db('search_keywords').\" WHERE id IN(\".implode(\",\",$ids_to_delete).\")\");\n\t\t}\n\t\t// Return user back\n\t\treturn js_redirect($_SERVER[\"HTTP_REFERER\"]);\n\t}", "title": "" }, { "docid": "3e2e8072cacae86f7e53096464061e99", "score": "0.5853047", "text": "function time_tracker_entry_delete_multiple($entities) {\n entity_get_controller('time_tracker_entry')->delete_multiple($entities);\n}", "title": "" }, { "docid": "a40b38a545af82e8a9f0d7fbbcea15c1", "score": "0.5812438", "text": "public function destroy(Request $request)\n {\n $Input = $request->all();\n $pagesIDs = $Input['fieldsIDs'];\n $fieldsIdArray = explode(',', $pagesIDs);\n\n\n\n\n foreach ($fieldsIdArray as $key => $fieldId)\n {\n\n $subFields = Fields::where('group_id', $fieldId)->first();\n\n if($subFields)\n {\n if($subFields->id)\n {\n return redirect()->route('fields.index')->with('delete_message',\"You can not delete this group, It's contain some fields\");\n }\n }\n\n Fields::find($fieldId)->delete();\n\n // Store in audit\n $auditData = array();\n $auditData['user_id'] = \\Auth::user()->id;\n $auditData['section'] = 'formFields';\n $auditData['action'] = 'formFields.delete';\n $auditData['time_stamp'] = time();\n $auditData['device_id'] = \\Request::ip();\n $auditData['device_type'] = 'web';\n auditTrackRecord($auditData);\n }\n return redirect()->route('fields.index')->with('flash_message','Field deleted successfully');\n }", "title": "" }, { "docid": "a28aac86fd10b00c51d179477a7cb5e7", "score": "0.58096826", "text": "function admin_delete_multiple($id = null){\r\n $ids = array();\r\n foreach($this->data[$this->modelClass] as $record) {\r\n\t\t\tif($record != 0)\r\n\t\t\t\t$this->{$this->modelClass}->delete($record);\r\n\t}\r\n\t$this->redirect($this->referer());\r\n }", "title": "" }, { "docid": "3153cc6daf681d4c72da9418dab32160", "score": "0.58051103", "text": "public function destroy(List_Extra_Siswa $list_Extra_Siswa)\n {\n //\n }", "title": "" }, { "docid": "31df84e8ab32aa09b795877a24dfb5c0", "score": "0.57910407", "text": "function RemoveCustomFields($fields=array())\n\t{\n\t\t$user = &GetUser();\n\t\tif (!$user->HasAccess('CustomFields', 'Delete')) {\n\t\t\t$this->DenyAccess();\n\t\t\treturn;\n\t\t}\n\n\t\tif (!is_array($fields)) {\n\t\t\t$fields = array($fields);\n\t\t}\n\n\t\t$fields_api = $this->GetApi();\n\n\t\t$removed = 0; $notremoved = 0;\n\t\t$not_removed_errors = array();\n\t\tforeach ($fields as $pos => $fieldid) {\n\t\t\t$loaded = $fields_api->Load($fieldid);\n\t\t\tif (!$loaded) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!$user->Admin() && $user->Get('userid') != $fields_api->Get('ownerid')) {\n\t\t\t\t$not_removed_errors[$fieldid] = sprintf(GetLang('CannotDeleteCustomField_NoAccess'), $fields_api->Settings['FieldName']);\n\t\t\t\t$notremoved++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$status = $fields_api->Delete($fieldid);\n\t\t\tif ($status) {\n\t\t\t\t$removed++;\n\t\t\t} else {\n\t\t\t\t$notremoved++;\n\t\t\t}\n\t\t}\n\n\t\t$msg = '';\n\n\t\tif ($notremoved > 0) {\n\t\t\tif (empty($not_removed_errors)) {\n\t\t\t\tif ($notremoved == 1) {\n\t\t\t\t\t$GLOBALS['Error'] = GetLang('CustomFieldDeleteFail_One');\n\t\t\t\t} else {\n\t\t\t\t\t$GLOBALS['Error'] = sprintf(GetLang('CustomFieldDeleteFail_Many'), $this->FormatNumber($notremoved));\n\t\t\t\t}\n\t\t\t\t$msg .= $this->ParseTemplate('ErrorMsg', true, false);\n\t\t\t} else {\n\t\t\t\tforeach ($not_removed_errors as $fieldid => $message) {\n\t\t\t\t\t$GLOBALS['Error'] = $message;\n\t\t\t\t\t$msg .= $this->ParseTemplate('ErrorMsg', true, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($removed > 0) {\n\t\t\tif ($removed == 1) {\n\t\t\t\t$msg .= $this->PrintSuccess('CustomFieldDeleteSuccess_One');\n\t\t\t} else {\n\t\t\t\t$msg .= $this->PrintSuccess('CustomFieldDeleteSuccess_Many', $this->FormatNumber($removed));\n\t\t\t}\n\t\t}\n\t\t$GLOBALS['Message'] = $msg;\n\n\t $this->ManageCustomFields();\n\t}", "title": "" }, { "docid": "203e0a57d8192a054fc2fd67d042339d", "score": "0.577197", "text": "public static function massdelete($items) {\r\n\t\t$retval = Doctrine_Query::create ()->delete ()->from ( 'DomainsTlds d' )->whereIn ( 'd.tld_id', $items )->execute ();\r\n\t\treturn $retval;\r\n\t}", "title": "" }, { "docid": "737c141cd24141484f9767e1b8165d16", "score": "0.5759533", "text": "public function ___uninstall() {\n\n $fields = wire('fields');\n\n // Array of fields to delete\n $fs = array(\n 'lumb_ip_log',\n 'lumb_ua_log',\n );\n\n foreach($fs as $f) {\n // Get each field from the array above\n $f = $fields->get($f);\n // Get the fieldgroups for each field\n $fgs = $f->getFieldgroups();\n // Loop through each fieldgroup \n foreach($fgs as $fg) {\n // Remove the field from each fieldgroup it's linked to\n $fg->remove($f);\n $fg->save();\n }\n // Now delete the field\n $fields->delete($f);\n }\n }", "title": "" }, { "docid": "b92943839a55ce8366c2c8afd92da251", "score": "0.57589734", "text": "function fn_giftreg_delete_field_variants($field_id)\n{\n\n $vars = db_get_fields(\"SELECT variant_id FROM ?:giftreg_field_variants WHERE field_id = ?i\", $field_id);\n if (!empty($vars)) {\n db_query(\"DELETE FROM ?:giftreg_descriptions WHERE object_id IN (?a) AND object_type = 'V'\", $vars);\n db_query(\"DELETE FROM ?:giftreg_field_variants WHERE field_id = ?i\", $field_id);\n }\n}", "title": "" }, { "docid": "61bda2ebc57c46712e94454d4756ed7f", "score": "0.5755058", "text": "public function deleteMultiple(Request $request)\n {\n if($request->arraySelected) {\n $params = array_map('intval', explode(',', $request->arraySelected));\n\n foreach ($params as $key => $value) {\n $sale = $this->saleService->findByID($value);\n if ($sale instanceof Sale) {\n $sale->delete();\n } else {\n return $this->responseJSON(false, trans('sale.notFound'));\n }\n }\n }\n return redirect()->route('admin.promotions.index')->with('message', trans('sale.removedSuccessfull'));\n }", "title": "" }, { "docid": "0fcc132674fd7cba02e1d1925e5a3006", "score": "0.5748122", "text": "public function bulkRemoveFieldValue($field_name)\n {\n foreach ($this->getIds() as $id) {\n $this->connection->hdel($this->getKeyById($id), $field_name);\n }\n }", "title": "" }, { "docid": "a34efee073083e0d3841e7c4d8762277", "score": "0.5744515", "text": "public function do_delete_record()\n {\n $v_list_delete = get_post_var('hdn_item_id_list','');\n $this->model->do_delete_record($v_list_delete);\n }", "title": "" }, { "docid": "7cb54e6e3d36bb2d6d98e4049f2a16e0", "score": "0.5731523", "text": "protected function entityDeleteMultiple($entity_ids) {\n \n }", "title": "" }, { "docid": "edaf7e009fd0b9dc618163d62dc25e7b", "score": "0.5729691", "text": "public function deleteSelect(Request $request){\n Log::info(\"deleteSelect \");\n $checkboxs_hidden= Input::get('checkboxs_hidden');\n\n $checkboxs_explode = explode(\"_\", $checkboxs_hidden);\n for( $i=0;$i<sizeof($checkboxs_explode);$i++){\n if(!empty($checkboxs_explode[$i])){\n Log::info(\" [\".$i.\"]\".$checkboxs_explode[$i]);\n MmcalculationModel::find($checkboxs_explode[$i])->delete();\n }\n\n }\n return redirect('ais/designCalculation');\n }", "title": "" }, { "docid": "05d7b5027a341dcd375197de01e39e08", "score": "0.57217914", "text": "public function delMultiple($key);", "title": "" }, { "docid": "513ef30e45a7c7f93395e8aab21e82b3", "score": "0.57182664", "text": "public function actionBulkDelete() {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n if ($model->tipo_paciente == 'Dependiente') {\n $dependiente = \\app\\models\\Dependiente::findOne($pk);\n if ($dependiente != null) {\n $dependiente->delete();\n }\n }\n $model->delete();\n }\n if ($request->isAjax) {\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n return $this->redirect(['index']);\n }\n }", "title": "" }, { "docid": "6998cdeee1eab4464c737603ca450553", "score": "0.5707833", "text": "function delete_list($item_kit_ids)\n\t{\n\t\t$this->db->where_in('item_kit_id',$item_kit_ids);\n\t\treturn $this->db->update('item_kits', array('deleted' => 1));\n \t}", "title": "" }, { "docid": "85e0cce6efbad845fe7527068cfb6974", "score": "0.5706358", "text": "public function delete_email($list,$val){\n if(get_instance()->ecl('Instance')->mod('lists', 'delete_meta', [get_instance()->ecl('Instance')->user(),$list,$val]))\n {\n echo 1;\n } else {\n echo 0;\n }\n }", "title": "" }, { "docid": "b689731cc535c4ea0cd884fda9d7bb59", "score": "0.57030714", "text": "function DeleteNotOrdinaryFields($fields = array()){\n if ($this->nonordinary) {\n foreach ($this->form_fields as $sectionname => $section) {\n foreach ($section as $number => $field) {\n switch ($field[\"control\"]) {\n case \"dbcombobox\":\n case \"dbcheckboxgroup\":\n case \"checkboxgroup\":\n case \"dbtreecombobox\":\n if ($field[\"multiple\"])\n EditPageHelper::DeleteDBMultipleField($field, $fields, $this);\n break;\n case \"autocomplete\":\n \tif ($field[\"field_table\"]!=\"\")\n EditPageHelper::DeleteAutocompleteField($field, $fields, $this);break;\n default:\n \t$this->DeleteCustomNotOrdinaryField($field, $fields);\n break;\n }\n\n }\n }\n }\n }", "title": "" }, { "docid": "2def0d479b969a1a91c01424437e8d7c", "score": "0.5701287", "text": "static function &removeFields(&$fields,$removes){\r\n\t\t foreach($removes as $erase) {\r\n\t\t\t\t\t\t $fields->removeByName($erase);\r\n\t\t\t\t\t\t\t\t\t\t } \r\n\t\t\t\t\t return $fields;\r\n\t\t\t\t\t }", "title": "" }, { "docid": "9e1b9d31321fbcfcc57a54242727a27b", "score": "0.56940794", "text": "public function deleteSelected(Request $request)\n {\n foreach ($request['id'] as $id) {\n $pengeluaran = PengeluaranInshaModel::find($id);\n $pengeluaran->delete();\n }\n }", "title": "" }, { "docid": "6bcf4f34fa58c21543e61c1ced84f3e6", "score": "0.5675698", "text": "public function delete()\n {\n $items = $this->item();\n $items->delete();\n parent::delete();\n }", "title": "" }, { "docid": "a3b601990888074e98093bc4cb48337e", "score": "0.56689936", "text": "abstract protected function relationFieldDeleteExit($model);", "title": "" }, { "docid": "dff5c2fbfe1d8189effddfec64f21f7e", "score": "0.56439716", "text": "protected function clearList() {\n $article_uids = array();\n foreach ($this->getArticles($this->getNumArticles()) as $article) {\n $article_uids[] = $article->getUid();\n }\n if ($article_uids) {\n tx_newspaper::deleteRows(\n self::mm_table,\n $article_uids,\n 'uid_foreign', // check uid_foreign = article uid\n 'uid_local=' . $this->getUid() // process current article list only\n );\n }\n }", "title": "" }, { "docid": "2be704422592580b1eb70776b4b80b52", "score": "0.5640878", "text": "protected function removeAttributeItems()\n\t{\n\t\t$manager = \\Aimeos\\MShop\\Factory::createManager( $this->getContext(), 'attribute' );\n\n\t\t$search = $manager->createSearch();\n\t\t$search->setConditions( $search->compare( '=~', 'attribute.label', 'Demo:' ) );\n\n\t\t$manager->deleteItems( array_keys( $manager->searchItems( $search ) ) );\n\t}", "title": "" }, { "docid": "58411047fc5eb210538c4e22975e975c", "score": "0.56349576", "text": "public function remove()\n {\n $arg = func_get_args();\n\n foreach ($this->group as $form) {\n if (! is_object($form)) {\n $form = new $form();\n }\n\n if (method_exists($form, 'delete')) {\n $form->delete(...$arg);\n }\n }\n }", "title": "" }, { "docid": "8f387513fc3e89541b54a10645a4f384", "score": "0.5632151", "text": "function undelete_list($item_kit_ids)\n\t{\n\t\t$this->db->where_in('item_kit_id',$item_kit_ids);\n\t\treturn $this->db->update('item_kits', array('deleted' => 0));\n \t}", "title": "" }, { "docid": "507fd9b12a4fe42e9b5b4af35d9f85c4", "score": "0.5631898", "text": "public function multiple_delete()\r\n\t{\r\n\t\tif(is_array($this->input->post('mhs')))\r\n\t\t{\r\n\t\t\tforeach ($this->input->post('mhs') as $key => $value) \r\n\t\t\t\t$this->delete($value);\r\n\r\n\t\t\t$this->template->alert(\r\n\t\t\t\t' Data Mahasiswwa dihapus.', \r\n\t\t\t\tarray('type' => 'success','icon' => 'check')\r\n\t\t\t);\t\r\n\t\t} \r\n\t}", "title": "" }, { "docid": "3e5c17f29bbc3ee7ce59376e7aed85a6", "score": "0.56287104", "text": "function delete_all_flags($discussion, $userid)\n{\nglobal $CFG;\n$where_sql = \"userid = $userid and postid in (select id from {$CFG->prefix}extendedforum_posts where discussion = $discussion->id)\" ;\n \n \n delete_records_select('extendedforum_flags', $where_sql );\n\n\n}", "title": "" }, { "docid": "ba43c84a777962de5647518fd843a1fe", "score": "0.5627332", "text": "public function removeFields($fields){\n foreach ($fields as $idx => $field){\n unset($this->_data[$field]);\n }\n }", "title": "" }, { "docid": "3db16ecd27416517eb02b0db650229fd", "score": "0.5627266", "text": "public function actionBulkTrash() {\n\n if (Yii::$app->request->post('selection')) {\n\n $where = ['id' => Yii::$app->request->post('selection', [])];\n $this->modelViaClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_TRASH, 'deleted_at' => time()], $where);\n }\n }", "title": "" }, { "docid": "387920b805bb3d271e86e2e94a549385", "score": "0.56261665", "text": "public function deleteMultiple($keys) : void\n {\n }", "title": "" }, { "docid": "6bfa8ba1849d600fe9f71a2277730f64", "score": "0.56247836", "text": "public function delete( $value = NULL, $field = 'id' );", "title": "" }, { "docid": "c39c989ad250d58fe517b1cc4f625a8b", "score": "0.56215024", "text": "public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}", "title": "" }, { "docid": "56f0e2d53abf8c4198770484cf8b6a62", "score": "0.56209856", "text": "public function bulkDelete()\n\t{\n\t\t$ids = Input::get('id');\n\t\tforeach($ids as $id){\n\t\t\t$entry = $this->form_repo->get($id);\n\t\t\t$entry->delete();\n\t\t}\n\t\treturn Redirect::back()->with('success', 'Entries successfully deleted.');\n\t}", "title": "" }, { "docid": "b62c2699ed7d86efc042536d76543fee", "score": "0.5619351", "text": "function delField($ar=NULL) {\n $p=new XParam($ar,NULL);\n $field=$p->get('field');\n $message='';\n $error=false;\n if(!$this->deleteIsSafe($message,$field)) {\n $message.='<br/>Field $field not deleted. <br/>';\n $error=true;\n }else{\n $def=$this->desc[$field];\n // Action specifique sur suppression d'un champ, par exemple suppression des fichier\n $def->delfield();\n // Suppression du tuple dans les tables\n updateQuery('DELETE FROM SETS WHERE STAB=\"'.$this->base.'\" AND FIELD=\"'.$field.'\"');\n $this->sql_delFieldDesc($field);\n $this->majDownOtherFieldOrder($field,$def->get_forder());\n $this->sql_delField($field);\n $this->delDesc($field);\n // Suppression des droits sur le champ\n $mods=XModule::modulesUsingTable($this->base,true,false,false);\n if(!empty($mods)) {\n\tforeach($mods as $moid => $name) {\n\t updateQuery('delete from ACL4 where AMOID=\"'.$moid.'\" and AKOID=\"_field-'.$field.'\"');\n\t}\n }\n // Il n'y a plus de champ de description. Suppression des tuples de data dans Txxx et Kernel et les annexes\n if(!count($this->desc)) $this->clear();\n $message.='Field '.$field.' '.XLabels::getSysLabel('general.deleted').'.<br/>';\n }\n XLogs::update('delfield', NULL, $this->base.':'.$field.' '.$message);\n XDbIni::clear('modules'.$this->base);\n return array('message'=>$message,'error'=>$error);\n }", "title": "" }, { "docid": "eb4a8be8f66b765ca712cb716dabc7b9", "score": "0.56182265", "text": "public function delete() {\n parent::delete();\n if ($this->id()!='') {\n $this->updateObjects('delete', array());\n }\n }", "title": "" }, { "docid": "9f9502df12a036fb74fec92561e5cddb", "score": "0.56079596", "text": "public function multiDeleteAction() {\n if ($this->getRequest()->isPost()) {\n $values = $this->getRequest()->getPost();\n\n //IF ADMIN CLICK ON DELETE SELECTED BUTTON\n if (!empty($values['delete'])) {\n foreach ($values as $key => $value) {\n if ($key == 'delete_' . $value) {\n $importfile_id = (int) $value;\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n try {\n //IMPORT FILE OBJECT\n $importFile = Engine_Api::_()->getItem('sitegroup_importfile', $importfile_id);\n\n if (!empty($importFile)) {\n\n $first_import_id = $importFile->first_import_id;\n $last_import_id = $importFile->last_import_id;\n\n //MAKE QUERY FOR FETCH THE DATA\n $tableImport = Engine_Api::_()->getDbtable('imports', 'sitegroup');\n\n $sqlStr = \"import_id BETWEEN \" . \"'\" . $first_import_id . \"'\" . \" AND \" . \"'\" . $last_import_id . \"'\" . \"\";\n\n $select = $tableImport->select()\n ->from($tableImport->info('name'), array('import_id'))\n ->where($sqlStr);\n $importDatas = $select->query()->fetchAll();\n\n if (!empty($importDatas)) {\n foreach ($importDatas as $importData) {\n $import_id = $importData['import_id'];\n\n //DELETE IMPORT DATA BELONG TO IMPORT FILE\n $tableImport->delete(array('import_id = ?' => $import_id));\n }\n }\n\n //FINALLY DELETE IMPORT FILE DATA\n Engine_Api::_()->getDbtable('importfiles', 'sitegroup')->delete(array('importfile_id = ?' => $importfile_id));\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n }\n }\n }\n }\n return $this->_helper->redirector->gotoRoute(array('action' => 'manage'));\n }", "title": "" }, { "docid": "58939a60a943a3b785ff620c7d5d5c62", "score": "0.5604545", "text": "function deleteDataInfo()\n {\n $formPost=array();\n $formPost[deleted]=1;\n \n foreach($this->piVars['selectionList'] as $idVal)\n {\n $GLOBALS['TYPO3_DB']->exec_UPDATEquery($this->tableName,'uid='.$idVal,$formPost);\n }\n return $this->showListings();\n }", "title": "" }, { "docid": "82a7a81437ad13732709953b44f7c872", "score": "0.5594411", "text": "public function multiDeleteMemberAction() {\n\n if ($this->getRequest()->isPost()) {\n\n $values = $this->getRequest()->getPost();\n\n foreach ($values as $key => $value) {\n if ($key == 'delete_' . $value) {\n $sitepageitemofthedays = Engine_Api::_()->getItem('sitepage_itemofthedays', (int) $value);\n if (!empty($sitepageitemofthedays)) {\n $sitepageitemofthedays->delete();\n }\n }\n }\n }\n return $this->_helper->redirector->gotoRoute(array('action' => 'index'));\n }", "title": "" }, { "docid": "9a2f2927f23bef4bbdf10eb2c0d8e421", "score": "0.55941516", "text": "public function remove_all_cat_field()\n\t{\n\t\t//Get logged in session admin id\n\t\t$user_id \t\t\t\t\t\t= ($this->session->userdata('user_id_hotcargo')) ? $this->session->userdata('user_id_hotcargo') : 1;\n\t\t$setting_data \t\t\t\t\t= $this->myaccount_model->get_account_data($user_id);\n\t\t$data['data']['setting_data'] \t= $setting_data;\n\t\t$data['data']['settings'] \t\t= $this->sitesetting_model->get_settings();\n\t\t$data['data']['dealer_id'] \t\t= $user_id;\n\t\t\n\t\t//getting all admin data \n\t\t$data['myaccount_data'] \t\t\t= $this->myaccount_model->get_account_data($user_id);\n\t\t\n\t\t\n\t\t//Get requested form type from url segment position 3\n\t\t$field_id \t\t\t\t\t= $this->uri->segment(3);\n\t\t\n\t\t//deleting query\n\t\t$this->mongo_db->where(array('form_type' => $field_id));\n\t\tif($this->mongo_db->delete_all('form_fields'))\n\t\t\t$this->session->set_flashdata('flash_message', 'info_deleted');\n\t\telse\n\t\t\t$this->session->set_flashdata('flash_message', 'info_delete_failed');\n\t\t\t\n\t\tredirect('control/data-forms');\n\t}", "title": "" }, { "docid": "bb5ff5d2cc8cc28aa82e6b069c4a6dad", "score": "0.55834377", "text": "public function deleteSelected(): void\n {\n $this->emit('userMultipleDelete', $this->selectedKeys());\n }", "title": "" }, { "docid": "eead8aa4c9d836c250e78b9351bc00bf", "score": "0.55723095", "text": "private function deleteOptions()\n {\n Mage::getResourceModel('scrappagescheme/scrap')->truncate();\n\n /** @var Mage_Catalog_Model_Product $product */\n $products = Mage::getModel('catalog/product')->getCollection();\n\n foreach ($products as $_product) {\n $product = Mage::getModel('catalog/product')->load($_product->getId());\n $customOptions = $product->getOptions();\n\n foreach ($customOptions as $key => $option) {\n if ($option->getTitle() == 'Scrappage Scheme Trade In') {\n $option->delete();\n $product->save();\n }\n }\n }\n }", "title": "" }, { "docid": "bdc604108cb92f62f6dfaccdef39083e", "score": "0.5565539", "text": "private function removeField(string $parent, array &$content) {\n $path = preg_replace('/(\\d+)([.*\\d+])/x', '$1.fields$2', $parent);\n\n //$element = Arr::get($content['questions'], $path);\n\n Arr::forget($content[$this->configuration['fields_key']], $path);\n\n // remove fields index if it is empty\n /*$parentElement = Arr::get($content['questions'], $element['parent']);\n if (isset($parentElement['fields']) && empty($parentElement['fields'])) {\n $children = preg_replace('/([.]\\d+$)/', '', $path);\n Arr::forget($content['questions'], $children);\n }*/\n }", "title": "" }, { "docid": "0ba6789f544a7824c2afea377665bb65", "score": "0.55646336", "text": "protected function afterDelete()\n\t{\n\t\tparent::afterDelete();\n\t\tComment::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tBookmark::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tHowtoCategory::model()->deleteAll( 'howto_id=' . $this->id );\n \t\tSlide::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tStep::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tHowtoTag::model()->deleteAll( 'howto_id=' . $this->id );\n\t}", "title": "" }, { "docid": "06a3517093f607f0e792f237ae633993", "score": "0.5554693", "text": "public function multidestroy(request $request){\n $input=$request->all();\n var_dump($input[\"ArticleBorrar\"]);\n\n if(isset($input[\"ArticleBorrar\"])) {\n foreach($input[\"ArticleBorrar\"] as $idArticle) {\n $article = $this->articleRepository->findWithoutFail($idArticle);\n foreach($article->imatges as $imatge) {\n $imatge->delete();\n }\n $this->articleRepository->delete($idArticle);\n }\n }\n\n Flash::success('Articles eliminats correctament.');\n\n return redirect(route('articles.index'));\n }", "title": "" }, { "docid": "65eafebe952551877efb33e775b95008", "score": "0.55543023", "text": "public function deleteAllCustomFields() : bool\n {\n $companyId = $this->companies_id ?? 0;\n\n $this->deleteAllCustomFieldsFromRedis();\n\n $result = Di::getDefault()->get('db')->prepare('DELETE FROM apps_custom_fields WHERE companies_id = ? AND model_name = ? and entity_id = ?');\n return $result->execute([\n $companyId,\n get_class($this),\n $this->getId(),\n ]);\n }", "title": "" }, { "docid": "0e8489f2448fd98a81fd4ed6242904eb", "score": "0.55397284", "text": "public function actionDeleteMultiple()\n {\n $request = Yii::$app->request;\n Yii::$app->response->format = Response::FORMAT_JSON;\n $js = $request->post('js');\n $jk = $request->post('jk');\n\n $mata_kuliah_tayang = MataKuliahTayang::find()\n ->joinWith('refCpmks')\n ->where([MataKuliahTayang::tableName() . '.id' => $jk])\n ->all();\n // $count = count($mata_kuliah_tayang[0]['refCpmks']);\n\n foreach ($js as $id_mahasiswa) {\n foreach ($mata_kuliah_tayang as $key => $value) {\n foreach ($value['refCpmks'] as $key => $value) {\n CapaianMahasiswa::deleteAll(['id_ref_mahasiswa' => $id_mahasiswa, 'id_ref_cpmk' => $value->id]);\n }\n }\n }\n }", "title": "" }, { "docid": "7841396c48372cff61142ea8cea619e3", "score": "0.55356884", "text": "protected function beforeDelete() {}", "title": "" }, { "docid": "a4a3a5effa8b110d16035149fb03e680", "score": "0.5533834", "text": "protected function entityDeleteMultiple($ids) {\n waywire_video_delete_multiple($ids);\n }", "title": "" }, { "docid": "26a2c75ce4adbd648e666f4e0dbf21ee", "score": "0.55328596", "text": "public function removeFromWishlist($fields) {\n\t\tif ($this->db->delete('wishlist', $fields)) {\n\t\t\treturn \"OK\";\n\t\t} else {\n\t\t\treturn \"KO\";\n\t\t}\n\t}", "title": "" }, { "docid": "85ce2f4ba3f4dec0493d3ef9a811b520", "score": "0.5531468", "text": "public function rmFromListRemovesElementsFromCommaSeparatedListDataProvider() {}", "title": "" }, { "docid": "8dbe5ba456288544564492dfec2c3889", "score": "0.55238307", "text": "function deleteStudentList()\n {\n $GLOBALS['DB']->exec(\"DELETE FROM courses_students WHERE course_id = {$this->id};\");\n }", "title": "" }, { "docid": "23cda3c1c6afea34d8b3e5e870ba92ea", "score": "0.5520983", "text": "public function actionBulkDelete() {\n\n if (Yii::$app->request->post('selection')) {\n $where = ['id' => Yii::$app->request->post('selection', []), 'sender_id' => Yii::$app->user->identity->id, 'status_del' => $this->modelClass::STATUS_DEL_TRASH];\n $this->modelClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_DELETE, 'deleted_at' => time()], $where);\n\n $whereVia = ['mailbox_id' => Yii::$app->request->post('selection', []), 'receiver_id' => Yii::$app->user->identity->id, 'status_del' => $this->modelClass::STATUS_DEL_TRASH];\n $this->modelViaClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_DELETE, 'deleted_at' => time()], $whereVia);\n }\n }", "title": "" }, { "docid": "e8ad9cd74842efb01ddc5d4675daafbd", "score": "0.5517626", "text": "public function deletePostSelection(){\n if(!empty($_POST['dg_item']))\n return $this->CI->db\n ->from($this->tbl_name)\n ->where_in($this->pk_col,$_POST['dg_item'])\n ->delete();\n }", "title": "" }, { "docid": "82a23e21e68e662c8d3b051b155e9481", "score": "0.5515682", "text": "function delete_multiple_image_card_data()\n {\n $image_cards = $this->input->post('table_records');\n $page_id = $this->input->post('page_id');\n foreach ($image_cards as $image_card):\n $this->db->where(array(\n 'id' => $image_card,\n 'page_id' => $page_id\n ));\n $this->db->update($this->table_name, array(\n 'is_deleted' => 1\n ));\n endforeach;\n }", "title": "" }, { "docid": "5beaefde382e3b1c1562ec462f3812e3", "score": "0.5503095", "text": "public function supprimer()\n {\n if(\\Request::ajax())\n {\n $numbers = substr( \\Input::get('boxes'),0,-1);\n $ids = explode(',',$numbers);\n $ids = array_unique($ids);\n foreach($ids as $id)\n {\n $child = Child::findOrFail($id);\n $child->bills()->delete();\n $child->attendances()->delete();\n $child->delete();\n if($child->trashed())\n {\n $c= Child::onlyTrashed()->findOrFail($id);\n $c->bills()->forceDelete();\n $c->attendances()->forceDelete();\n $c->forceDelete();\n\n }\n }\n }\n }", "title": "" }, { "docid": "c01e8d3c0ae551698706de41243473b3", "score": "0.55023557", "text": "function delete($table, $targetedElements = []){\n global $db;\n $query = 'DELETE FROM '. $table;\n if(!empty($targetedElements)){\n $query .= ' WHERE '. sqlTextWHERE_Constructor($targetedElements);\n }\n\n $params = array_values($targetedElements);\n\n return $db->update($query,$params);\n}", "title": "" }, { "docid": "bc533451f277b2fe7f8c39d450596b76", "score": "0.5501568", "text": "public function deleteAllAction(Request $request)\n{\n $data_delete = $request->request->get('record');\n\n if($data_delete){\n foreach($data_delete as $data){\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('CMSCoresBundle:Color')->find($data);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Color entity.');\n }\n\n $em->remove($entity);\n $em->flush();\n\n $this->get('session')->getFlashBag()->add('title', 'Color');\n $this->get('session')->getFlashBag()->add('message', 'Lista de Color excluidos com sucesso');\n }\n }\n\n\n return $this->redirect($this->generateUrl('cms_cores'));\n}", "title": "" }, { "docid": "3616876a4091b38d633619209bca6176", "score": "0.5488767", "text": "function delArticleAttribut($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n /* you can itentify the article with $object->reference->ShopId */ \n}", "title": "" }, { "docid": "9fc82cb23bc648fef90e2b62a889574f", "score": "0.54884833", "text": "public function massDestroy(Request $request)\n {\n if (! Gate::allows('item_delete')) {\n return abort(401);\n }\n if ($request->input('ids')) {\n $entries = Company::whereIn('id', $request->input('ids'))->get();\n\n foreach ($entries as $entry) {\n $entry->delete();\n }\n }\n }", "title": "" }, { "docid": "13e067f8defa4d9a42af8d886efb3841", "score": "0.5487533", "text": "protected function afterDelete() {}", "title": "" }, { "docid": "03bf65cc1e6f864e467381b34b6bf21c", "score": "0.5481491", "text": "public function deleteList()\n {\n if (!request()->ajax()) {\n return response()->json(['error' => 1, 'msg' => 'Method not allow!']);\n } else {\n $ids = request('ids');\n $arrID = explode(',', $ids);\n $arrDontPermission = [];\n foreach ($arrID as $key => $id) {\n if(!$this->checkPermisisonItem($id)) {\n $arrDontPermission[] = $id;\n }\n }\n if (count($arrDontPermission)) {\n return response()->json(['error' => 1, 'msg' => sc_language_render('admin.remove_dont_permisison') . ': ' . json_encode($arrDontPermission)]);\n }\n AdminCmsContent::destroy($arrID);\n sc_clear_cache('cache_cms_content');\n return response()->json(['error' => 0, 'msg' => '']);\n }\n }", "title": "" }, { "docid": "7b6861e5be9866c4628e21fea1bfc36b", "score": "0.5480335", "text": "public function actionDeleteList()\n {\n $ids = Yii::$app->request->post('ids');\n $success = false;\n\n if (!empty($ids)) {\n foreach ($ids as $id) {\n $model = $this->findModel($id);\n $success = $model->delete();\n }\n }\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n return [\n 'success' => $success,\n ];\n }", "title": "" }, { "docid": "4becf6da4ea5a2cfa08d36750a3001b2", "score": "0.5478798", "text": "public function _deleteLista(){\r\n $res = $this->db->truncate('recorrida');\r\n return $res;\r\n\r\n }", "title": "" }, { "docid": "8007f42bafe3180b28498aa1a8512d51", "score": "0.5474739", "text": "public function actionDeleteList()\n {\n $ids = Yii::$app->request->post('ids');\n $success = false;\n if (!empty($ids)) {\n foreach ($ids as $id) {\n $model = $this->findModel($id);\n $success = $model->delete();\n }\n }\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n\n return [\n 'success' => $success,\n ];\n }", "title": "" }, { "docid": "f5c0097dc364deaadafc68c3b538ee86", "score": "0.5473386", "text": "public function remove_list_from_table($list){\n\t\t$query = \"DELETE * FROM \" . $this->table . \" WHERE \" . $this->column_name . \"=\";\n\t\t$list = commas_to_array($list);\n\t\t$just_added = array();\n\t\tif($old_list = Database::get_results_as_numerical_array($query, $this->column_name)){\n\t\t\t//var_dump($old_list); echo \"<br>\";\n\t\t\t\n\t\t\tforeach($list as $list_item){\n\t\t\t\t\n\t\t\t\tif(!in_array($list_item, $old_list) &&\n\t\t\t\t !in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{ //if there is nothing in the organizations table\n\t\t\tforeach($list as $list_item){\n\t\t\t\tif(!in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "752e140b56ced0fb002189b6cbb67e69", "score": "0.54581946", "text": "function process_bulk_action() {\n global $wpdb;\n $table_name = $wpdb->prefix . 'custom_db_tbl'; // do not forget about tables prefix\n\n if ('delete' === $this->current_action()) {\n $ids = isset($_REQUEST['id']) ? $_REQUEST['id'] : array();\n if (is_array($ids))\n $ids = implode(',', $ids);\n\n if (!empty($ids)) {\n $wpdb->query(\"DELETE FROM $table_name WHERE id IN($ids)\");\n }\n }\n }", "title": "" }, { "docid": "e4fbbd3466f63e18103127ecada5b92a", "score": "0.5452657", "text": "public function onCustomFieldBeforeDelete($args)\n {\n $cfModel = $args['model'];\n $fieldName = $this->Sellvana_IndexTank_Index_Product->getCustomFieldKey($cfModel);\n /** @var Sellvana_IndexTank_Model_ProductField $doc */\n $doc = $this->Sellvana_IndexTank_Model_ProductField->orm()->where('field_name', $fieldName)->find_one();\n if (!$doc) {\n return;\n }\n $products = $cfModel->products();\n if (!$products) {\n return;\n }\n if ($doc->search) {\n $this->Sellvana_IndexTank_Index_Product->updateTextField($products, $fieldName, '');\n }\n if ($doc->facets) {\n foreach ($products as $product) {\n $this->Sellvana_IndexTank_Index_Product->deleteCategory($product, $fieldName);\n }\n }\n $doc->delete();\n }", "title": "" }, { "docid": "e590f41c9d4a2b3ab2e7a6a8be21d2be", "score": "0.54526025", "text": "protected function entityDeleteMultiple($ids) {\n farm_asset_delete_multiple($ids);\n }", "title": "" }, { "docid": "cac54322c257bcdf8c41551575664d88", "score": "0.54486614", "text": "private function deleteRecords(){\r\n\t\r\n\t\t$fileNames = explode(',', $this->collection['images']);\r\n\t\t// remove imagerecords which are not used anymore\r\n\t\tforeach($this->images as $filename => $image){\r\n\t\t\tif(array_search($filename, $fileNames) === false){\r\n\t\t\r\n\t\t\t\t$this->db->exec_DELETEquery('tx_gorillary_images', \"image='$filename' AND collection='\".$this->collection['uid'].\"'\");\r\n\t\t\t\t//unset ($this->images[$filename]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9385a6eafd45d1b3b12e9579e3c69e79", "score": "0.5444815", "text": "function delete_list($office_ids)\n {\n $this->db->where_in('office_id',$office_ids);\n return $this->db->update('offices', array('deleted' => 1));\n }", "title": "" }, { "docid": "422785862307f1e9e8611b5728cfd513", "score": "0.544014", "text": "private function completeErasure()\n {\n $data = empty($this->fields_to_erase) ? [] : json_decode($this->fields_to_erase, true);\n\n foreach ($data as $link => $moduleData) {\n $moduleName = null;\n if ($this->load_relationship($link) && $this->$link) {\n $moduleName = $this->$link->getRelatedModuleName();\n }\n if (empty($moduleName)) {\n continue;\n }\n foreach ($moduleData as $id => $fields) {\n if (empty($fields)) {\n continue;\n }\n\n $bean = BeanFactory::retrieveBean($moduleName, $id);\n if (!$bean) {\n continue;\n }\n\n $list = FieldList::fromArray($fields);\n $bean->erase($list, false);\n }\n }\n }", "title": "" }, { "docid": "67e795e2af67c478debdd62c2385d112", "score": "0.5434531", "text": "protected function avantSuppression() {\n $passagers = $this->getListePassagers();\n foreach ($passagers as $passager) {\n $passager->supprimer();\n }\n }", "title": "" }, { "docid": "497d879c4b96f09a5f58a3e0cb041f3a", "score": "0.54180497", "text": "function absenrich_delete(){\r\n\t\t$ids = $_POST['ids']; // Get our array back and translate it :\r\n\t\t$pkid = json_decode(stripslashes($ids));\r\n\t\t$result=$this->m_absensi_enrichment->absenrich_delete($pkid);\r\n\t\techo $result;\r\n\t}", "title": "" }, { "docid": "d03dd92db022e431ba357d8700d7cb11", "score": "0.5417938", "text": "abstract public function delete(array $prm = array());", "title": "" }, { "docid": "15cc4db71c4070384c8be4f6f0639acc", "score": "0.5415215", "text": "public function destroy($id, Request $request)\n {\n if ($id == 'MULTI') {\n if (empty($request->ids)) {\n Flash::warning(__('messages.document_metas__multi_delete_no_item'));\n return redirect(route('admin.documentMetas.index'));\n } else {\n foreach ($request->ids as $id) {\n $documentMetasValues = $this->documentMetaValueRepository->findByField('doc_meta_id', '=', $id);\n $canDelete = true;\n foreach ($documentMetasValues as $key => $documentMetasValue) {\n if (count($documentMetasValue) > 0 && $documentMetasValue->value != null) {\n $canDelete = false;\n break;\n }\n }\n if ($canDelete == true) {\n foreach ($documentMetasValues as $key => $documentMetasValue) {\n $this->documentMetaValueRepository->delete($documentMetasValue->id);\n }\n $this->documentMetaRepository->delete($id);\n }\n }\n if ($canDelete == true) {\n Flash::success(__('messages.deleted'));\n }\n else{\n Flash::error(__('messages.document_metas_cannot_delete_have_metas_value'));\n }\n return redirect(route('admin.documentMetas.index'));\n }\n } else {\n $documentMetasValues = $this->documentMetaValueRepository->findByField('doc_meta_id', '=', $id);\n $canDelete = true;\n foreach ($documentMetasValues as $key => $documentMetasValue) {\n if (count($documentMetasValue) > 0 && $documentMetasValue->value != null) {\n $canDelete = false;\n break;\n }\n }\n if ($canDelete == true) {\n foreach ($documentMetasValues as $key => $documentMetasValue) {\n $this->documentMetaValueRepository->delete($documentMetasValue->id);\n }\n $this->documentMetaRepository->delete($id);\n Flash::success(__('messages.deleted'));\n } else {\n Flash::error(__('messages.document_metas_cannot_delete_have_metas_value'));\n }\n return redirect(route('admin.documentMetas.index'));\n }\n }", "title": "" }, { "docid": "2700278d12a8e01159b136c6edb9d0fb", "score": "0.54147434", "text": "function deleteItems($args, &$request) {\n\t\t$userGroupDao =& DAORegistry::getDAO('UserGroupDAO');\n\n\t\tforeach($args as $userGroupId) {\n\t\t\t$userGroupDao->deleteById($userGroupId);\n\t\t\t$itemIds[] = $userGroupId;\n\t\t}\n\n\t\t// List other listbuilders on the page to delete these items from\n\t\t$additionalAttributes = array('removeFromSources' => 'true',\n\t\t\t\t\t\t\t\t\t'itemIds' => implode(',', $itemIds),\n\t\t\t\t\t\t\t\t\t'sourceIds' => 'selectList-listbuilder-setup-submissionroleslistbuilder');\n\n\t\t$json = new JSON('true', '', 'false', 0, $additionalAttributes);\n\t\treturn $json->getString();\n\t}", "title": "" }, { "docid": "c47797e312cbfdb2b3ee80c2a4eed307", "score": "0.5414241", "text": "public function deleteToList(&$firstMultiTabMats){\n $index = array_search($this, $firstMultiTabMats);\n unset($firstMultiTabMats[$index]);\n}", "title": "" }, { "docid": "d51db8233ba10220da767a40b9ae2077", "score": "0.5412874", "text": "public function delete_multiple(array $keys, $group = '')\n {\n }", "title": "" }, { "docid": "e4833adc2ee6126d8667de4e53311cbf", "score": "0.54123807", "text": "public function destroyAll(){\n $dates = trademark::whereIn(\"id\",request(\"item\"))->get();\n foreach ($dates as $data) {\n Storage::delete($data->logo);\n }\n\n/*\n**if request item is in array with id ,so take it and destroy all\n**else find this id and delete it\n*/\nif(is_array(request(\"item\")))\n{\n trademark::destroy(request(\"item\"));\n} \nelse {\n\n trademark::find(request(\"item\"))->delete();\n} \nsession()->flash(\"success\",trans(\"admin.record_deleted\"));\n\nreturn redirect(adminUrl(\"trademarks\"));\n}", "title": "" }, { "docid": "1e77a719fbeff2b572bbff524dfb95fa", "score": "0.5410874", "text": "public function deleteAllFields()\n\t{\n\t\t//todo: delete từng field và remove trong cache\n\t\t$cmd = self::getDb()->createCommand(\"DELETE FROM tbl_cms_post_field WHERE post_id=:pid\");\n\t\t$cmd->bindValue(\":pid\", $this->id);\n\t\treturn (bool)$cmd->execute();\n\t}", "title": "" }, { "docid": "2523d297144fb65f6c8eb24dc55e3fdf", "score": "0.54063475", "text": "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "title": "" }, { "docid": "5639ed2abd7a52e7f5ead094ede1a5db", "score": "0.54059666", "text": "function cms_delete($id) {\n GLOBAL $db;\n// удаление данных о статье\n $db -> query(\"DELETE FROM content WHERE id='$id'\");\n $db -> query(\"DELETE FROM content WHERE pid = '$id'\");\n// удаление информации о статьях из \"связанных\" таблиц\n $db -> query(\"UPDATE items SET article=REPLACE(article,'|\".$id.\"|','|') WHERE article LIKE '%|\".$id.\"|%'\");\n $db -> query(\"UPDATE spec SET article=REPLACE(article,'|\".$id.\"|','|') WHERE article LIKE '%|\".$id.\"|%'\");\n\n}", "title": "" }, { "docid": "c72399c5237068dc157ab3e391640f52", "score": "0.54057574", "text": "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n\n }", "title": "" }, { "docid": "0f6f18ffece0b521b469959b0df8f5a9", "score": "0.54045767", "text": "public function beforeDelete()\n {\n // Find the related custom value\n $customValues = CustomValueModel::where('product_id', '=', $this->id)->get();\n\n $customValues->each(function ($value) {\n // Delete relation\n $relation = DB::table('tiipiik_catalog_csf_csv')\n ->where('custom_value_id', '=', $value->id)\n ->delete();\n\n // Delete custom value\n CustomValueModel::find($value->id)->delete();\n });\n\n // Detach properties\n $this->properties()->detach();\n }", "title": "" }, { "docid": "bd4a3bad9a8a9a76b9c04a31c4e8d4eb", "score": "0.54025614", "text": "public function destroyMany(Request $request) {\n //Check Delete Access Permission\n $this->DeleteAccess = Permit::AccessPermission('permissions-delete');\n if (!$this->DeleteAccess)\n return redirect('errors/401');\n\n $all_data = $request->except('_token', 'table-4_length'); \n \n //logActivity\n //fetch title\n $Permission = Permission::\n select('groupname')\n ->whereIn('id', $all_data['ids'])\n ->get();\n\n $name = $Permission->pluck('groupname');\n $groupname = $name->toJson();\n\n LogActivity::addToLog('Permission - ' . $groupname, 'deleted');\n\n $all_data = array_get($all_data, 'ids');\n foreach ($all_data as $id) {\n Permission::destroy($id);\n }\n\n // redirect\n Session::flash('message', config('global.deletedRecords'));\n\n return redirect('admin/permissions');\n }", "title": "" }, { "docid": "0f507d69afdefa97b452f3c48444c93f", "score": "0.5402553", "text": "public function mass_unremove_group()\n {\n $ids = json_decode($this->input->post('ids'), true); //convert json into array\n foreach ($ids as $id) {\n $resultat = $this->m_feuille_controle->unremove_group($id);\n }\n }", "title": "" } ]
4e75a0798cab472dad651c7f5959699d
list all unverified clients
[ { "docid": "140eef68fe0fd1155a171d53cf59d5cb", "score": "0.0", "text": "public function disabled_list(){\n\t\t$verified = 2;\n\t\t$active = 0;\n \t$this->load->model('Clients_model');\n $list = $this->Clients_model->get_datatables($active,$verified);\n $data = array();\n $no = $_POST['start'];\n foreach ($list as $clients) {\n $no++;\n $row = array();\n $row[] = $no;\n $row[] = $clients->lname.', '.$clients->fname.' '.$clients->mname;\n $row[] = $clients->address.' '.$clients->brgyDesc.' '.$clients->citymunDesc;\n $row[] = $clients->birthday;\n $row[] = $clients->contact_number; \n \t\t$row[] = $clients->c_classification;\n\n //actions\n $row[] = '<a class=\"edit_stats\" href=\"javascript:void(0)\" title=\"Edit\" onclick=\"edit_stats('.\"'\".$clients->id.\"'\".')\"><i class=\"fa fa-edit fa-lg\"></i></a>'\n ;\n \n $data[] = $row;\n }\n \n $output = array(\n \"draw\" => $_POST['draw'],\n \"recordsTotal\" => $this->Clients_model->count_all($active,$verified),\n \"recordsFiltered\" => $this->Clients_model->count_filtered($active,$verified),\n \"data\" => $data,\n );\n //output to json format\n echo json_encode($output);\n }", "title": "" } ]
[ { "docid": "816c592a64a236fde2dcd824d4a31bbe", "score": "0.6659228", "text": "public static function fetchIncompleteClients() {\n //Generate the query\n $clients = DB::table('client')\n ->whereRaw(\"client.status = 1 AND (lastname_1 = '' OR client.address = '' OR client.address = 'C/' OR client.poblation = '' OR client.city = '' OR ((phone_parents = '' AND phone_client = '' AND phone_whatsapp = '') OR (phone_parents = 0 AND phone_client = 0 AND phone_whatsapp = 0) OR fk_contact_way = 99)) AND client.fk_company = \" . \\Auth::user()->fk_company)\n ->join('users', 'users.id', '=', 'client.fk_user')\n ->select(DB::raw('client.*, users.name AS username'))\n ->get();\n return $clients;\n }", "title": "" }, { "docid": "2db23aaae1a822ca2769a28c75431220", "score": "0.620756", "text": "function infos_clients()\n{\n\t $infos = array();\n\t\n\t $bdd = new PDO('mysql:host=localhost;dbname=ffs;charset=utf8','root','');\n\t //$bdd = new PDO ('mysql:host=mysql.hostinger.fr;dbname=u974008334_ffs;charset=utf8','u974008334_ffs','97098482ffs');\n\t $requser = $bdd->query(\"SELECT * FROM clients WHERE id_client != '30'\");\n\t\n\t while($userinfo = $requser->fetch())\n\t {\n\t\t$infos[] = $userinfo;\n\t }\n\t return $infos;\n}", "title": "" }, { "docid": "e7832ec4b75564c289f1b0f2fff4fc12", "score": "0.60331196", "text": "public function _get_unverified_reports()\n\t{\n\t\tif ($_POST)\n\t\t{\n\t\t\t$where = \"\\nWHERE i.incident_verified = 0 \";\n\n\t\t\t$where .= \"ORDER BY i.id DESC \";\n\n\t\t\t$limit = \"\\nLIMIT 0, $this->list_limit\";\n\n\t\t\treturn $this->_get_reports($where, $limit);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->response(3);\n\t\t}\n\n\t}", "title": "" }, { "docid": "329710761ae86b7f1204465d8684ba84", "score": "0.6032725", "text": "public function list_clients()\n {\n $return = array();\n if (!$this->is_loggedin) {\n echo \"not logged in?\";\n return $return;\n }\n $return = array();\n $json = json_encode(array());\n $content = $this->exec_curl($this->baseurl . \"/api/s/\" . $this->site . \"/stat/sta\", \"json=\" . $json);\n $content_decoded = json_decode($content);\n if (isset($content_decoded->meta->rc)) {\n if ($content_decoded->meta->rc == \"ok\") {\n if (is_array($content_decoded->data)) {\n foreach ($content_decoded->data as $client) {\n $return[] = $client;\n }\n }\n }\n }\n return $return;\n }", "title": "" }, { "docid": "4293d786cc77f8e17b470d09aec11b3d", "score": "0.60276735", "text": "public static function allUnverified()\n\t{\n\t\treturn static::doesnthave('verification')->get();\n\t}", "title": "" }, { "docid": "5b1a985531abb768d959aa65088f4ec1", "score": "0.5626674", "text": "public function listAllClientInfo() {\n\t \t\tglobal $db;\n\t \t\t$all_clients = [];\n\n\t \t\t//create a query and execute it\n\t\t\t$results = $db->query(\"SELECT id, first_name, last_name FROM clients\");\n\n \twhile ($row = $results->fetch_assoc()) {\n \t$client = new Client(NULL, NULL, NULL, NULL, NULL);\n \t$client->ID = $row[\"id\"];\n \t$client->first_name = $row[\"first_name\"];\n \t$client->last_name = $row[\"last_name\"];\n\n \tarray_push($all_clients, $client);\n \t}\n\n \t$results->free();\n \treturn $all_clients;\n\t \t}", "title": "" }, { "docid": "802a6886aa2952902172eb17d07b9e78", "score": "0.5620649", "text": "public function Findallclients()\n {\n \treturn TblAcaClients::find()->where(['is_deleted'=>'0'])->orderBy(['client_name' => SORT_ASC])->All();\n }", "title": "" }, { "docid": "2b7cddbf8fa9fe18d29ba399df88ced8", "score": "0.5577591", "text": "public function getAllClients() {\n\t\treturn $this->clients;\n\t}", "title": "" }, { "docid": "716af261445104ac05e5edafadeda460", "score": "0.55773807", "text": "public function getUnmappedClients($currentUser) {\n $clientAccountMapper = $this->getClientAccountMapper();\n $unmappedClients = $clientAccountMapper->findUnmappedClients($currentUser);\n $client = $this->getClientMapper(); \n if ($unmappedClients) {\n foreach ($unmappedClients as $uc) {\n \n $data[] = array(\"name\" => $client->findById($uc->getClientId())->getName(),\n \"channel\" => $uc->getChannel(),\n \"accountId\" => $uc->getAccountId(),\n \"id\" => $uc->getId()\n );\n \n }\n }\n return $data;\n }", "title": "" }, { "docid": "a16b984659d1ec8b6c7b212b9d28ada0", "score": "0.55586356", "text": "public function getAllNonAdminUsers(): Collection;", "title": "" }, { "docid": "d5d0bbe5206beed3f820a7b4b356176c", "score": "0.55536413", "text": "function getClientsInfo(?string $except = NULL): array\n{\n\tglobal $sockets, $users;\n\t$keys = array_keys($sockets);\n\t$clients_info = array();\n\n\tif ($except && in_array($except, $keys)) {\n\t\t$index = array_search($except, $keys);\n\t\tunset($keys[$index]);\n\t}\n\n\tforeach ($keys as $key) {\n\t\t$user = $users[$key];\n\t\tarray_push($clients_info, array(\n\t\t\t'username' => $user->getUsername(),\n\t\t\t'avatar' => $user->getAvatar(),\n\t\t\t'address' => $key\n\t\t));\n\t}\n\n\treturn $clients_info;\n}", "title": "" }, { "docid": "574680f2d9c466960efafd73e91844b4", "score": "0.55476135", "text": "public function listClients() {\n\n\t\t\trequire_once('db/ConnectClass.php');\n\t\t\t$Oconn = new connectClass();\n\t\t\t$Oconn -> openConnect();\n\t\t\t$conn = $Oconn -> getConn();\n\t\t\t$sql = 'SELECT * FROM customers';\n\t\t\t$this -> result = $conn -> query($sql);\n\t\t}", "title": "" }, { "docid": "fe98ec8570fa3d9229b14e93532d6a7d", "score": "0.5538678", "text": "public function clientUuids() {\n return $this->clientUuids;\n }", "title": "" }, { "docid": "53663316f171f20b08c259023dbf4dfb", "score": "0.553654", "text": "public function servers()\n {\n return collect(parent::servers())->filter(function ($server) {\n return $server->revoked == false;\n })->values()->all();\n }", "title": "" }, { "docid": "e40eb2b211e723119f3430af2f3e14b4", "score": "0.5535512", "text": "public function get_all_clients() {\r\n\t\t\t\r\n\t\t\tglobal $db;\r\n\t\t\t\r\n\t\t\t$connection_string = 'SELECT * FROM clients';\r\n\t\t\t$result = $db->query($connection_string);\r\n\t\t\t\r\n\t\t\tif(PEAR::isError($result)) {\r\n\t\t\r\n\t\t\t\treturn FALSE;\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\t$numRows = $result->numRows();\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif($numRows > 0) {\r\n\t\t\t\r\n\t\t\t\t// initialize a counter to increment for adding objects to the client_row array below\r\n\t\t\t\t$counter = 0;\r\n\t\t\t\t// initialize an array to the number of rows returned\r\n\t\t\t\t$client_array = array();\r\n\t\t\t\r\n\t\t\t\twhile($row = $result->fetchRow()) {\r\n\t\t\t\r\n\t\t\t\t\t$client_row = new Client;\r\n\t\t\t\t\t$client_row->set_id($row[0]);\r\n\t\t\t\t\t$client_row->set_name($row[1]);\r\n\t\t\t\t\t$client_row->set_client_type($row[2]);\r\n\t\t\t\t\t$client_row->set_phone($row[3]);\r\n\t\t\t\t\t$client_row->set_status($row[4]);\r\n\t\t\t\t\t$client_row->set_notes($row[5]);\r\n\t\t\t\t\t$client_row->set_account_rep($row[6]);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// add the current client object to its respective index in the array\r\n\t\t\t\t\t$client_array[$counter] = $client_row;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// increment the counter\r\n\t\t\t\t\t$counter++;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// return the array of Clients\r\n\t\t\treturn $client_array;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "423b165d3eaf8519e7330b7d75431e36", "score": "0.55204093", "text": "public function getAllClients()\n\t\t{\n\t\t\t$objDatabase = new Database();\n\t\t\t$arrClients = $objDatabase->returnAllRows(\"clients\");\n\n\t\t\treturn $arrClients;\n\t\t}", "title": "" }, { "docid": "7d24156d8b44e52fd5d091661b424b65", "score": "0.54999286", "text": "public function getLesClients()\n\t{\n\t\t$req = \"SELECT * from client ORDER BY nom\";\n\t\t$res = PdoCastellane::$monPdo->query($req);\n\t\t$lesLignes = $res->fetchAll();\n\t\treturn $lesLignes;\n }", "title": "" }, { "docid": "09cc588a8442645ff8489ece3e73a493", "score": "0.54783565", "text": "public function testGetUsersNotYours(): void\n {\n $this->requestAuthenticated(\n '[email protected]',\n 'GET',\n self::USERS_LIST_URI\n );\n\n $this->assertSame(Response::HTTP_FORBIDDEN,$this->client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "a2c5064b1af85aada32ee31a28132ffd", "score": "0.547291", "text": "function get_existing_clients() {\n\t\tglobal $db;\n\n\t\t$r = $db->query(\"SELECT DISTINCT `client_name`, `client_address`, `client_phone` FROM `jobs` ORDER BY `client_name`\");\n\t\tif (!$r || $r->num_rows == 0) return array();\n\n\t\t$res = array();\n\t\twhile ($arr = $r->fetch_assoc())\n\t\t\t$res[] = array('name'=>$arr['client_name'], 'add'=>$arr['client_address'], 'phone'=>$arr['client_phone']);\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "a5150564f7a9518bac575277226715c4", "score": "0.5463458", "text": "public function allOnline();", "title": "" }, { "docid": "99737a4854f90614ba2c23940d063d2f", "score": "0.543818", "text": "function getAllClients(){\r\n\t\t# Open database connection\r\n\t\topenDatabaseConnection();\r\n\t\t$query = \"SELECT * FROM clients ORDER BY id DESC\";\r\n\t\t#echo $query;\r\n\t\t$result = mysql_query($query);\r\n\t\t$clients = array();\r\n\t\t# Create an array of all the clients returned\r\n\t\twhile($client = mysql_fetch_assoc($result)) {\r\n\t\t\t$clients[] = $client;\r\n\t\t}\r\n\t\treturn $clients;\r\n\t}", "title": "" }, { "docid": "a8e7d41dded535c2c000b624f94ef925", "score": "0.54272705", "text": "public function getMissingZonesList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "a8e7d41dded535c2c000b624f94ef925", "score": "0.54272705", "text": "public function getMissingZonesList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "94084d02728bd4cacb65e23ebf06f096", "score": "0.5422495", "text": "protected function getNoneAdminAccounts(){\n $sql = \"SELECT id, username, email, adminLevel, isBanned FROM accounts WHERE adminLevel > 3\";\n $stmt = $this->connect()->prepare($sql); \n $stmt->execute();\n $results = $stmt->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "e81b221b6be3696d6f299d95efcd0638", "score": "0.54168475", "text": "public function getClients() : Collection;", "title": "" }, { "docid": "9bb67a49ce005eea8a374ba0f3f98272", "score": "0.5411585", "text": "public function getStatusAllClients() {\n \n $filterByLetter = (isset($_GET['letter'])) ? $_GET['letter'] : NULL;\n \n if ($this->connectionFactoryBI == NULL) {\n $this->connectionFactoryBI = new ConnectionFactoryBI();\n }\n\n $connection = $this->connectionFactoryBI->createConnectionWithTransaction(FALSE);\n $userBI = new UserBI($connection);\n if (!is_null($statusAllUsers = $userBI->getStatusAllClients($filterByLetter))) {\n\n $userBI->releaseConnection($connection);\n return $statusAllUsers;\n }\n $userBI->releaseConnection($connection);\n return NULL;\n \n }", "title": "" }, { "docid": "c073867770e4f8e9615c42052d7c193b", "score": "0.5394187", "text": "public function getNonResponders() {\n\t\t$all_workers = $this->getWorkers();\n\t\t$responders = $this->getResponders();\n\t\treturn array_diff($all_workers, $responders);\n\t}", "title": "" }, { "docid": "303043b298cf9de2c829b2d47bf5e123", "score": "0.5380219", "text": "function get_ws_clients() {\n\n $result = $this->db->get('client');\n return $result->result_array();\n }", "title": "" }, { "docid": "9c8baec83ab46b1e527da738ea6a42e9", "score": "0.5370489", "text": "private function list_clients($client_mac = null) {\n /*if (!$this->is_loggedin)\n return false; */\n $content_decoded = json_decode($this->exec_curl($this->baseURL . '/api/s/' . $this->site . '/stat/sta/' . trim($client_mac)));\n return $this->process_response($content_decoded);\n }", "title": "" }, { "docid": "2bdba1a421ce461e8cd30f470a59324b", "score": "0.53642267", "text": "public function findAcknowledgementsForNonAdminUser(): array;", "title": "" }, { "docid": "0ffd573ff9a7502986a543a589b4ba07", "score": "0.5320881", "text": "function getAllClients()\n {\n // database connection\n $db = openDatabaseConnection();\n\n $sql = \"SELECT * FROM clients\";\n $query = $db->prepare($sql);\n $query->execute();\n\n $db = null;\n //geef resultaat terug\n return $query->fetchAll();\n\n }", "title": "" }, { "docid": "4ec101b4675e99aa32971ae0645ee4bd", "score": "0.52968645", "text": "public function test_list_disconnected_players()\n {\n $playerList = $this->squadServer->listDisconnectedPlayers();\n\n $this->assertCount(3, $playerList);\n\n foreach ($playerList as $player) {\n if ($player->id === 88) {\n $this->assertSame(195, $player->disconnectedSince);\n } else if ($player->id === 84) {\n $this->assertSame(108, $player->disconnectedSince);\n } else if ($player->id === 42) {\n $this->assertSame(3, $player->disconnectedSince);\n }\n }\n }", "title": "" }, { "docid": "fd4436eca32f82ada7fd7625f2e97b91", "score": "0.5290998", "text": "public function getClients()\r\n {\r\n return $this->clients;\r\n }", "title": "" }, { "docid": "d905e455d7b7ce621c08699517be5777", "score": "0.5283919", "text": "function get_all_deprovisioned_ids() {\n\t\t$cloudrequest_list = array();\n\t\t$query = \"select cr_id from \".$this->_db_table.\" where cr_status=5 order by cr_id DESC\";\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_deprovisioned_ids\", $_SERVER['REQUEST_TIME'], 2, \"cloudrequest.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudrequest_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudrequest_list;\n\n\t}", "title": "" }, { "docid": "bf76d1d2f0d9a9b12f5855f6ced317c7", "score": "0.5281139", "text": "public function getAllClients()\n {\n $clientService = new ClientService($this->client);\n return $clientService->getAllClients();\n }", "title": "" }, { "docid": "cf40a39b6e5f8c3acc61a409fb873247", "score": "0.52638924", "text": "public function getAll()\n {\n return Db::getInstance()\n ->executeS(\n 'SELECT * FROM '._DB_PREFIX_.'clients'\n );\n }", "title": "" }, { "docid": "d538f16effc4047d063b30332d1d4efa", "score": "0.5240102", "text": "public function index()\n {\n return response()->json(Auth::user()->clients()->get());\n }", "title": "" }, { "docid": "005164d84277c2ee52cb39a1e22305e8", "score": "0.5235849", "text": "public function actionListAllUnverifiedPayments(){\n \n $userid = Yii::app()->user->id; \n //get the domain of the logged in user\n \n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='status=:status';\n $criteria->params = array(':status'=>'unconfirmed');\n $payment= Payment::model()->findAll($criteria);\n \n if($payment===null) {\n http_response_code(404);\n $payment['error'] ='No record found';\n echo CJSON::encode($data);\n } else {\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"payment\" => $payment\n \n \n ));\n \n }\n \n \n }", "title": "" }, { "docid": "9027b2f1f7d174fd9bbc99cfc0037c10", "score": "0.52239853", "text": "public static function invalidClientKeys(): array { return [\n [null],\n [''],\n [0],\n [false],\n [-3.3],\n [array()],\n [new \\stdClass()],\n ]; }", "title": "" }, { "docid": "f8176ec226c2115432d4585052a5e691", "score": "0.52176887", "text": "public function get_all_by_client()\n\t{\n\t\t$client_no = $this->session->userdata('client_no');\n\t\t$this->db->select('*');\n\t\t$this->db->from('rb_acct a');\n\t\t$this->db->where('a.CLIENT_NO',$client_no);\n\t\t$this->db->join('rb_stmt_header s','s.INTERNAL_KEY = a.INTERNAL_KEY');\n\t\treturn $this->db->get()->result_object();\n\t}", "title": "" }, { "docid": "893dbc15cd2a3233de58608d47a5a97c", "score": "0.5216814", "text": "public function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "893dbc15cd2a3233de58608d47a5a97c", "score": "0.5216814", "text": "public function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "2931d7f9b5c3301641aff44213a78fec", "score": "0.52077526", "text": "function get_registered_social_networks_not_assoc() {\n\t$assoc = get_registered_social_networks();\n\t$networks = array();\n\n\tforeach($assoc as $network) {\n\t\t$networks[] = $network;\n\t}\n\n\treturn $networks;\n}", "title": "" }, { "docid": "06ec1c6942e9222ba68aa4699d2ccd5a", "score": "0.52000594", "text": "public function testNormalUserShouldntList()\n {\n $response = $this->get($this->apiPath . '/users', $this->createAuthHeaderToNormalUser());\n\n $response->assertStatus(403);\n }", "title": "" }, { "docid": "6bf4987bf042369d903ce00fcefa8e29", "score": "0.5192397", "text": "public function testNoFriends() {\n $response = $this->curlService->curlMe(\"nofriends\");\n }", "title": "" }, { "docid": "2e982a3cc1724d7ce9e08b0d370ee42f", "score": "0.51859987", "text": "function GetNonActiveUsers(){\n\t\t\tglobal $db;\n\t\t\t\n\t\t\t$result = $db->query(\"SELECT * FROM users WHERE Actief = false ORDER BY GroupID, Naam, Voornaam\");\n\t\t\t\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "f6ee5c0e700d132ff64e12bc7f1f37e5", "score": "0.51841384", "text": "public function listar(){\n $clientes = Cliente::get();\n\n return ($clientes);\n }", "title": "" }, { "docid": "6c94555ba34e89b7c6ce41b42e6302d5", "score": "0.51763403", "text": "public function allUsers()\n {\n return view('client.all-clients');\n }", "title": "" }, { "docid": "796fe021170f53be1967d13e66ee9d10", "score": "0.51707816", "text": "function list_remote_servers() {\n global $CFG, $DB;\n\n $sql = \"\n SELECT DISTINCT\n h.id,\n h.name\n FROM\n {mnet_service} s\n INNER JOIN {mnet_host2service} h2s on h2s.serviceid = s.id\n INNER JOIN {mnet_host} h on h.id = h2s.hostid\n WHERE\n s.name = 'mnet_enrol' AND\n h2s.subscribe = 1\";\n\n $res = $DB->get_records_sql($sql);\n if (is_array($res)) {\n return $res;\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "733f027dd2708113cb6fdbaf2e94c3d2", "score": "0.51642346", "text": "public function getClientUnreadMessages()\n {\n $result = $this->chat_model->getClientUnreadMessages();\n if ($result) {\n echo json_encode($result);\n } else {\n echo json_encode($result);\n }\n }", "title": "" }, { "docid": "4e6c41551231cf9efa9c72581fbd0cf3", "score": "0.5164054", "text": "public function listRemovedUsers()\n\t{\n\t\t$users = $this->listUsers(array('query' => 'isSuspended=false'));\n\t\t\n\t\t$removeList = array();\n\t\t\n\t\t/* @var $user \\Google_Service_Directory_User */\n\t\tforeach ($users as $user) {\n\t\t\t$email = $user->getPrimaryEmail();\n\t\t\t\t\n\t\t\tif (in_array($email, $this->exempt)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\t\n\t\t\tif ($this->roster->findEmail($email)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\n\t\t\tif ($user->suspended) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\t\n\t\t\t$removeList[] = $user;\n\t\t}\n\t\t\n\t\treturn $removeList;\n\t}", "title": "" }, { "docid": "d824404390569934c2a9c46a48679d2b", "score": "0.51523405", "text": "public function verifyClient() {\n // Check if the IP of the client is unknown or not\n if(IpUtils::isClientIpUnknown()) {\n // TODO: Check if clients from unknown IP's are blocked or not\n // TODO: Check for country, hosting provider, check if is proxy, etc...\n } else {\n // Get the IP address of the client\n //$client_ip = IpUtils::getClientIp();\n\n // TODO: Check if the IP address of the client is blocked\n\n /*if(fsockopen($client_ip, 80, $errstr, $errno, 1)) {\n die(\"Proxy access not allowed\");\n }*/\n }\n\n // TODO: Check if proxies should be blocked\n\n // TODO: Show info message when using site through localhost\n }", "title": "" }, { "docid": "211894f90d7a4f6c6d7da82b94e04a86", "score": "0.51503086", "text": "protected function checkPayedClients()\n {\n $isSuccess = [];\n foreach ($this->clients as $key => $client) {\n if ($client->isPayments())\n $isSuccess[] = $key;\n }\n\n $this->servedClients += count($isSuccess);\n foreach ($isSuccess as $key) {\n unset($this->clients[$key]);\n }\n }", "title": "" }, { "docid": "424d574248098038a7e676bd27521984", "score": "0.514328", "text": "function obtener_clientes(){\n $conexion = getConexion(); \n $sql = \"SELECT * FROM users WHERE tipo = 'cl'\"; \n $resultado = $conexion->query($sql);\n if ($conexion->connect_errno) {\n $conexion->close();\n return false;\n }\n $lisUser= array();\n $usuarios = $resultado->fetch_all();\n foreach($usuarios as $u){\n array_push($lisUser, obtener_usuario($u)); \n }\n return $lisUser; \n }", "title": "" }, { "docid": "eac180ce7d8446c7f8abe162488dc9e0", "score": "0.51370114", "text": "public function client()\n {\n return Client::all()->lists('name','name');\n }", "title": "" }, { "docid": "198054494945642a8cf7dbfa86975ed2", "score": "0.5136442", "text": "public function listarClientes(){\n\t\t\t$sql=\"select * from clientes\";\n\t\t\t$resultado= $this->listar($sql);\n\t\t\tif(!$resultado){\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\treturn $resultado;\n\n\t\t}", "title": "" }, { "docid": "52519aa7174a2c2a39c1fe2b78ef7f1c", "score": "0.5133767", "text": "public static function getListUserCli(){\n \n $sql = new Sql();\n $res = $sql->select('SELECT * FROM \n usuarios as a, clientes as b\n WHERE a.id_usuario = b.id_usuario');\n return $res;\n \n }", "title": "" }, { "docid": "a7e222f936de2c74cb8f76b8b1e7dffd", "score": "0.5132348", "text": "protected function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "8ba81909dffaf265661b6dfa48e80593", "score": "0.5127629", "text": "function get_advertiser_list()\n\t{\n\t\t$this->db->select('ox_clients.clientid,ox_clients.contact,ox_users.contact_name');\n\n\t\t$this->db->where('ox_accounts.account_type','ADVERTISER');\n\n\t\t$this->db->join('ox_accounts','ox_accounts.account_id=ox_clients.account_id');\n\n\t\t$this->db->join('ox_users','ox_users.default_account_id=ox_clients.account_id');\n\n\t\t$this->db->order_by('ox_clients.contact','asc');\n\n\t\t$query = $this->db->get('ox_clients');\n\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "b8e9ed093b721c2f0627b13becc23fb0", "score": "0.5125062", "text": "public function list_unknowns()\n\t{\n\n\t\treturn $this->unknowns;\n\t}", "title": "" }, { "docid": "90cc641de1a0b7bf99f0b334f7beda1f", "score": "0.51234514", "text": "public function getUnfinishedProviders();", "title": "" }, { "docid": "1b5e669a7f60f30774e21f93a2ad9ade", "score": "0.5122218", "text": "public static function get_no_invites($user_id){\n\t\t$invites = ORM::factory('friend')\n\t\t->where('fk_user_two','=',$user_id)\n\t\t->where('status','=','0')\n\t\t->count_all();\n\t\treturn $invites;\n\t}", "title": "" }, { "docid": "090eb716e5fd2322a2865468ed3df742", "score": "0.510083", "text": "abstract protected function getSubClientNames();", "title": "" }, { "docid": "ab88d6fdcd0c34810eba5ab4cb815ef4", "score": "0.5092768", "text": "public function get_cantact_us_list() {\n $tableName = 'contact_us';\n $columns = array(\"$tableName.contact_us_id\",\n \"$tableName.refno\",\n \"$tableName.name\",\n \"$tableName.mobile_no\", \n \"$tableName.email\",\n\t\t\t\t\t\t \"$tableName.messege\",\n \"$tableName.contact_us_id\"\n );\n $indexId = '$tableName.contact_us_id';\n $columnOrder = \"$tableName.contact_us_id\";\n $orderby = \"\";\n $joinMe = \"\";\n $condition = \" WHERE $tableName.contact_us_id != '' \";\n return $this->db->drawdatatable($tableName, $columns, $indexId, $joinMe, $condition, $orderby);\n }", "title": "" }, { "docid": "13fb933c6d74056a4caf8f938e0fd45f", "score": "0.5080876", "text": "protected function getUnseenAnnouncements()\n {\n /** @var $announcementService Announcement */\n $announcementService = $this->getServiceLocator()->get('EMRDelegator\\Service\\Announcement\\Announcement');\n return $announcementService->getOutstandingAnnouncements($this->getUserId());\n }", "title": "" }, { "docid": "e310bdb156a0431d015b0e3eb48ab96f", "score": "0.5079507", "text": "private function filterCacheByClient($client) {\n $messages = [];\n // Timer\n foreach($this->timer as $name => $timer) {\n $duration = (($timer['start'] + $timer['duration']) - time());\n if($duration > 0)\n $messages[] = $this->createMessage('timer', $name, $duration);\n }\n // List\n foreach($this->cache['list'] as $name => $list) {\n foreach($list as &$row) {\n $message = $this->filterRow($client, 'list', $name, $row);\n if($message)\n $messages[] = $message;\n }\n }\n // Dict\n foreach($this->cache['dict'] as $name => $data) {\n $message = $this->filterRow($client, 'dict', $name, $data);\n if($message)\n $messages[] = $message;\n }\n return $messages;\n }", "title": "" }, { "docid": "9e04be05e10930f33a489da1b4fd4b0f", "score": "0.507587", "text": "public function findAllExcept(array $usernames): array;", "title": "" }, { "docid": "862133641f01c1e079ff263ed9960be4", "score": "0.50755113", "text": "abstract public function getIncidents();", "title": "" }, { "docid": "b73b1de608e4e6b08b718a463c836682", "score": "0.507514", "text": "public function listAllContactsViaApiWithoutAuthentication(\\ApiTester $I): void\n {\n // Add header to accept json.\n $I->haveHttpHeader('Accept', 'application/json');\n\n // Create an user with valid data.\n $I->sendGET('api/contacts');\n\n // Check the response code is correct.\n $I->seeResponseCodeIs(\\Codeception\\Util\\HttpCode::UNAUTHORIZED);\n\n // Check the response is an array and contains data.\n $I->seeResponseIsJson();\n $I->assertArrayHasKey(\n 'message',\n \\json_decode($I->grabResponse(), true)\n );\n }", "title": "" }, { "docid": "35a89eee289d1f6a1090feb513883860", "score": "0.5072554", "text": "public function allClients()\n {\n $this->table = \"t_client\";\n $this->champs =['rowid','CONCAT(prenom, \" \",nom) as client'];\n $this->condition=[\"etat =\"=>1];\n return $this->__select() ;\n }", "title": "" }, { "docid": "66653bc64187c7e60f486459bce905bb", "score": "0.5070697", "text": "public function unActivatedCustomerAccounts()\n {\n $customers = array();\n $select = $this->select()\n ->where('email_validated = 0')\n ->where('registration_date = DATE_SUB(CURDATE(), INTERVAL 3 DAY)');\n\n $rowSet = $this->fetchAll($select);\n if (count($rowSet)) {\n foreach ($rowSet as $row) {\n // For each account not yet activated after 3 days, create a customer object\n $customers[] = $this->getCustomer($row['id']);\n }\n }\n\n return $customers;\n }", "title": "" }, { "docid": "3e27de8def1572f8c1a56c7db9ae82ca", "score": "0.5060347", "text": "public function listAction(ClientService $clientService) {\n $response = new ResponseUtils($this->get(\"translator\"));\n\n $clients = $clientService->getList('adminSerializer', array(\"isDisable\"=>'0'));\n\n return $response->getListResponse($clients);\n }", "title": "" }, { "docid": "a7b231ce2bc4bad61fede7615d41f603", "score": "0.50601184", "text": "function get_all_client()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('mysteryShopperUsers');\n\t\t$this->db->where('user_type', 'CLIENT');\n\t\t$query = $this->db->get();\n\t\t$result = $query->result_array();\n\t\treturn $result;\n\n\t\t\n\t}", "title": "" }, { "docid": "2c72739ca94cf0d577830b5cfa6f4d16", "score": "0.5053894", "text": "public function showOnlyNotTargetVisits(){\n return response()->json(Visitor::showOnlyNotTargetVisits(),200);\n }", "title": "" }, { "docid": "6b7abd86a818cf5b60551a626f415cb1", "score": "0.50489336", "text": "public function getReportPeers()\n {\n return [\n $_ENV['ADMIN_LOGIN']\n ];\n }", "title": "" }, { "docid": "fd50e7555768cb60ecdf77e5b3e04314", "score": "0.50453824", "text": "public function clients()\n {\n $sql = \"select userid,firstname,middlename,lastname from users where users.status='active' and usertype='P' ORDER BY firstname ASC \";\n $res = $this->db->query($sql);\n\n $result = $res->fetchAll();\n\n $i = 0;\n $val = array();\n foreach ($result as $res) {\n if (!empty($res['userid'])) {\n $val[$i]['userid'] = $res['userid'];\n $val[$i]['name'] = $res['firstname'] . \" \" . $res['middlename'] . \" \" . $res['lastname'];\n $i++;\n }\n }\n\n return $val;\n }", "title": "" }, { "docid": "86f2a98eedf95e8d7ba66474e4e930f1", "score": "0.5043425", "text": "public function testGetUserNotYours(): void\n {\n $this->requestAuthenticated(\n '[email protected]',\n 'GET',\n self::USERS_LIST_URI.'/'.self::USER_ID\n );\n $this->assertSame(Response::HTTP_FORBIDDEN, $this->client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "86648978044794486e32ebcd177656ea", "score": "0.504085", "text": "public function getBlacklist() {\n\t\treturn $this->db->query(\"SELECT useragent FROM Robots\")->fetchAll();\n\t}", "title": "" }, { "docid": "98052ac2e0b16bff7f283b466044a430", "score": "0.5038745", "text": "public function getAllNotices() {\n $stmt = $this->dbo->prepare(\"SELECT `id`, `text`, `type`, `expires` FROM notices\");\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "e6977631f65a34a0f1cf8ddb0dcb70e2", "score": "0.50362295", "text": "public function getClientes(){\n\n\t\t\t$clientes = $this->query(\"SELECT * FROM devedores\");\n\t\t\treturn $clientes;\n\t\t}", "title": "" }, { "docid": "c1a6a83ec1261233656f84b974ed243a", "score": "0.50198424", "text": "public function getUninvoicedOrders();", "title": "" }, { "docid": "4c4e4f97d1e0ca54c2565f8727e5e7db", "score": "0.5015767", "text": "public function findUnmappedClients($parent) {\n $select = $this->getSelect()\n ->columns(array('*'))->join('client', 'client_accounts.client_id = client.client_id',array('client_id'))\n ->where(array('client.parent' => $parent))\n ->where(array('client_accounts.user_token_id' => null, 'client_accounts.user_token_id' => 0));\n $entity = $this->select($select);\n $this->getEventManager()->trigger('find', $this, array('entity' => $entity));\n return $entity;\n }", "title": "" }, { "docid": "2c9a843e0fed42e1b54b331a8a209227", "score": "0.5009679", "text": "function getAllUsersDeactivated($order,$conn){\n $sql_ad = \"SELECT * FROM `users` WHERE `users_ststus`=0 AND `users_deleted`=1 ORDER BY `users_id` $order\";\n $result=$conn->query($sql_ad);\n\t\t\tif ($result->num_rows > 0) {\n\t\t\t\t// output data of each row\n\t\t\t\t$i=0;\n\t\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t\t$responce[$i++]=$row;\n\t\t\t\t}\n\t\t\t}\n\n return $responce;\n}", "title": "" }, { "docid": "c49c23301e6ec8a23367a6774efc1920", "score": "0.49980187", "text": "public function getAllClientTickets()\n\n {\n $this->checkPermission(4);\n $pageTitle = \"All Client Tickets\";\n\n // model data\n $tickets = $this->clientTicketModel->getAllClients();\n\n // get user by id (created_by)\n $usersModel = new webinty_usersModel();\n\n // view\n include (WEBINTY_VIEWS.'/admin/header.html');\n include (WEBINTY_VIEWS.'/admin/menu.html');\n include (WEBINTY_VIEWS.'/admin/nav.html');\n include (WEBINTY_VIEWS.'/admin/clientTickets.html');\n\n\n }", "title": "" }, { "docid": "90213cd814caf649b2cebbb63cad3c75", "score": "0.49956244", "text": "public function getAll()\n\t{\n\t\treturn Client::all();\n\t}", "title": "" }, { "docid": "4b374b64997e3996a1f8e38dfa23c806", "score": "0.49809843", "text": "public function listAll()\n\t{\n\t\t$dataArray = [];\n\t\t// create new sqlite object that will open or create a new db called challenge\n\t\t$db = $this->model('sqlite');\n\n\t\t$sql = 'SELECT EMAIL, NAME FROM clients;';\n\t\t$return = $db->query($sql);\n\t\twhile ($row = $return->fetchArray()) {\n\t\t $dataArray[] = [$row[\"EMAIL\"], $row[\"NAME\"]];\n\t\t}\n\t\t$db->close();\n\n\t\t// specify the view\n\t\t$this->view('home/list', ['clients' => $dataArray]);\n\t}", "title": "" }, { "docid": "f30430f165a84bb50696d8eface0e95c", "score": "0.49719155", "text": "public function mostrarClientesVentas() { \n try {\n \n $clientesVentas = ClienteVenta::all();\n return $clientesVentas;\n } catch(Exception $e) {\n \n return Utils::enviarRespuesta('Exception', $e->getMessage(), 500);\n }\n }", "title": "" }, { "docid": "b928879717c612dc5458ee75320f0407", "score": "0.49662206", "text": "public function getUnpaidBillsOfThisClient($clientId, GetClientUnpaidBillsRequest $request) {\n return Clients::paginateUnpaidBills($clientId, $request->get('page'));\n }", "title": "" }, { "docid": "04133169802203d938da01dd977af509", "score": "0.4955385", "text": "public function getAllClients()\n {\n $clients = Client::find()->all();\n \n $clientsArr = [];\n foreach ($clients as $client) {\n $clientArr = ['label' => $client->name, \n 'value' => $client->name,\n 'id' => $client->id];\n $clientsArr[] = $clientArr;\n \n }\n \n return $clientsArr;\n }", "title": "" }, { "docid": "42180add5a987d9760e13d49e1a43a0c", "score": "0.49527708", "text": "function lib_login_list_online_users()\n{\n\tGLOBAL\t$SUB_HEAD_TAG_OPEN;\n\tGLOBAL\t$SUB_HEAD_TAG_CLOSE;\n\tGLOBAL \t$TIMEOUT_IN_SECONDS;\n\tGLOBAL \t$gDB;\n\t$db = \t$gDB;\n\t$expired = time() - $TIMEOUT_IN_SECONDS;\n\t\n\t$sql_list =<<<SQL10\n\t\tSELECT\tusername, email\n\t\tFROM\ttbl_users \n\t\tWHERE\tlastlogin>$expired\nSQL10;\n\n\t$result = $db->Execute($sql_list);\n\t\n\twhile(!$result->EOF)\n\t{\n\t\t$html .= \t\"<a href=\\\"mailto:\" .\n\t\t\t\t\t$result->Fields[\"email\"] . \"\\\">\" . \n\t\t\t\t\t$SUB_HEAD_TAG_OPEN .\n\t\t\t\t\t$result->Fields[\"username\"] .\n\t\t\t\t\t$SUB_HEAD_TAG_CLOSE . \"</a><br>\\n\";\n\t\t$result->MoveNext();\n\t}\n\t\n\treturn $html;\n}", "title": "" }, { "docid": "ed49bca51b982d7523480aa1f282935e", "score": "0.4949498", "text": "public function listClient($table) {\n $pdo = parent::get_instance();\n $sql = \"SELECT * FROM $table ORDER BY name ASC\";\n $statement = $pdo->query($sql);\n $statement->execute();\n\n //return all records \n return $statement->fetchAll();\n }", "title": "" }, { "docid": "ec589dbb26c8d299de21b9e2e99cb4ea", "score": "0.49492753", "text": "public function clientEmails()\n {\n //take the list of emails from the ECBC database and find the @energycap.com address's to use in the BCC for any email that is sent\n $splitEmails = explode(\",\", $this->clientEmail);\n $clientEmails = [];\n \n foreach ($splitEmails as $email) {\n if (!preg_match('/@energycap\\.com/i', $email)) {\n $clientEmails[] = $email;\n }\n }\n \n if (count($clientEmails) == 0) {\n return null;\n } else {\n return $clientEmails;\n }\n }", "title": "" }, { "docid": "4fe123f9b67ad4cb49c0c7c9652641ec", "score": "0.4945673", "text": "protected function anonymousAccessDeniedAllTest()\n {\n $endpoint = $this->getPluralName();\n $loader = $this->getDataLoader();\n $this->createJsonRequest(\n 'GET',\n $this->getUrl(\n $this->kernelBrowser,\n \"app_api_{$endpoint}_getall\",\n ['version' => $this->apiVersion]\n ),\n );\n\n $response = $this->kernelBrowser->getResponse();\n\n $this->assertJsonResponse($response, Response::HTTP_UNAUTHORIZED);\n }", "title": "" }, { "docid": "cdc004fa154c3e5d30fab91b1961ca5b", "score": "0.494375", "text": "public function mcNoRetryCodeProvider() {\n\t\treturn [\n\t\t\t[ '430260' ],\n\t\t\t[ '430306' ],\n\t\t\t[ '430330' ],\n\t\t\t[ '430354' ],\n\t\t\t[ '430357' ],\n\t\t];\n\t}", "title": "" }, { "docid": "c1910969dccf6a7400f47f936df196a4", "score": "0.49337342", "text": "function ListarClientes()\n\t{\n\t\t$sql = \"SELECT * FROM persona where tipo_persona='Cliente'\";\n\t\treturn EjecutarConsulta($sql);\n\n\t}", "title": "" }, { "docid": "be862b2502650d27410f668ee434816d", "score": "0.49278978", "text": "public function fetch_clients(){\n $sql = $this->db->prepare(\"SELECT * FROM cliente\");\n $sql->execute();\n $list_db = $sql->fetchAll(PDO::FETCH_ASSOC);\n\n if ($list_db!= NULL) {\n return $list_db;\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "d30fb9eeeea3f1e8bbd5dcb8c09e9003", "score": "0.49271032", "text": "public function getValidateHttpUserAgentSkip()\n {\n return array();\n }", "title": "" }, { "docid": "c083570de885f887197cbfb47721616e", "score": "0.4924697", "text": "function getClientUserIds($client_id){\n\t$r=mysql_query(\"select client_user_ids from client where client_id='$client_id'\")or die(mysql_error());\n\t$a=mysql_fetch_assoc($r);\n\treturn $a[client_user_ids];\n}", "title": "" }, { "docid": "1cbfc63e32bf14c3e56c58d011b01fd9", "score": "0.49235716", "text": "public static function getUsersNoBasestation() \n\t{\n $collection = new \\Illuminate\\Database\\Eloquent\\Collection;\n foreach (User::all() as $user) {\n \tif(!isset(Basestation::whereUserId($user->id)->first()->id) && !$user->isAdmin())\n \t\t$collection->add($user);\n }\n \n return $collection->reverse();\n\t}", "title": "" }, { "docid": "e5ee06571c63abcf72abe7313485e9f4", "score": "0.492113", "text": "public function getRemoteLists();", "title": "" }, { "docid": "3edd537dd26fb019f325b7e55f05b033", "score": "0.49192935", "text": "public function index()\n {\n\n for($i=0;$i<15;$i++) {\n $notifs = auth()->user()->notifications()->where('status', 0)->orderBy('id', 'desc')->get();\n\n if($notifs->isEmpty()) {\n sleep(1);\n } else {\n return $notifs;\n }\n }\n\n return $notifs;\n }", "title": "" } ]
90ff0e090f305fdf1d264e6792156c38
Get the given formatter
[ { "docid": "c29c5514caa48c4045127a597ccadf46", "score": "0.0", "text": "public function format( $name, $class = null, $options = null )\n\t{\n\t\tif ( isset( $this->formatters[ $name ] ) )\n\t\t{\n\t\t\treturn $this->formatters[ $name ];\n\t\t}\n\n\t\treturn $this->add( $name, $class, $options );\n\t}", "title": "" } ]
[ { "docid": "500e44daa21a15b334a9a863a1656c51", "score": "0.8227317", "text": "public function getFormatter();", "title": "" }, { "docid": "500e44daa21a15b334a9a863a1656c51", "score": "0.8227317", "text": "public function getFormatter();", "title": "" }, { "docid": "3795d447467889d18171d6a855ef3ca4", "score": "0.8079601", "text": "public function getFormatter()\n {\n return $this -> formatter;\n }", "title": "" }, { "docid": "567d18feea53e006067d654f1f3dc271", "score": "0.8064542", "text": "public function getFormatter()\n {\n return $this->_formatter;\n }", "title": "" }, { "docid": "250d937bfd4db898764fda0b920f148d", "score": "0.7919833", "text": "public static function getFormatter()\n {\n if (empty(static::$formatter)) {\n static::setFormatter();\n }\n return static::$formatter;\n }", "title": "" }, { "docid": "084eeb5532fa18a23b5648304985604b", "score": "0.78794813", "text": "function getFormatter()\n {\n if(!isset($this->formatter)){\n $this->formatter = $this->makeFormatter();\n }\n return $this->formatter;\n }", "title": "" }, { "docid": "cbb6e52ab4896f8a683123fb40f1791b", "score": "0.7625309", "text": "public function getFormatter($name);", "title": "" }, { "docid": "ea4017475fb912204ee9827700c5c9fc", "score": "0.74445766", "text": "private function getFormatter($format_str)\n\t{\n\t\t$more_formatters = $this->more_formatters;\n\t\t/* \t\t\n\t\tif($more_formatters instanceof JsonTemplateCallbackAbstract){\n\t\t\t$formatter = $more_formatters->call($format_str);\n\t\t}elseif(is_array($more_formatters)){\n\t\t\t$formatter = $more_formatters[$format_str];\n\t\t}elseif(function_exists($more_formatters)){\n\t\t\t$formatter = $more_formatters($format_str);\n\t\t}\n\t\t*/\n\t\t$orig_format_str = $format_str;\n\t\t$args = array();\n\t\t$func = 'format';\n\t\t$slash = explode('/', $format_str);\n\t\tif(count($slash) == 1){\n\t\t\t$space = explode(' ', $format_str);\n\t\t\t$format_str = $space[0];\n\t\t\tunset($space[0]);\n\t\t\t$args = $space;\n\t\t\tunset($space);\n\t\t} else {\n\t\t\t$format_str = $slash[0];\n\t\t\tunset($slash[0]);\n\t\t\t$args = $slash;\n\t\t\tunset($slash);\n\t\t}\n\t\t\n\t\tif(is_array($more_formatters)){\n\t\t\t$func = $more_formatters[$format_str];\n\t\t}elseif(function_exists($more_formatters)){\n\t\t\t$func = $more_formatters($format_str);\n\t\t}\n\t\t\n\t\tif(isset(JsonTemplateModule::pointer()->default_formatters[$format_str])){\n\t\t\t$formatter = JsonTemplateModule::pointer()->default_formatters[$format_str];\n\t\t} else {\n\t\t\t$formatter = 'JsonTemplateGenericFormatter';\n\t\t}\n\t\t\n\t\t\n\t\t$formatter_obj = new $formatter($func);\n\t\t$formatter_obj->addArgs($args);\n\n\t\treturn $formatter_obj;\n\t\t/* throw new JsonTemplateBadFormatterError(sprintf('%s is not a valid formatter', $format_str)); */\n\t}", "title": "" }, { "docid": "b6ca1472595683a33b20b836ea6e1771", "score": "0.72542804", "text": "public function getFormatter()\n {\n return $this->output->getFormatter();\n }", "title": "" }, { "docid": "1d09f0cf491a9d849aa5f7ccfbf35e57", "score": "0.69478863", "text": "public function getFormatter($format)\n {\n if (!$this->hasFormatter($format)) {\n throw new UnknownFormatException($format);\n }\n $formatter = new $this->formatters[$format];\n return $formatter;\n }", "title": "" }, { "docid": "32a9fa04c1a3dd98d204085bfe0dcb80", "score": "0.69123155", "text": "public function getFormatter(): OutputFormatterInterface\n {\n return $this->formatter;\n }", "title": "" }, { "docid": "f4f15ebc64982436fa0a21be3d21c1d5", "score": "0.6845869", "text": "protected function getFormatter($entity_type)\n {\n return $this->formatters[$entity_type];\n }", "title": "" }, { "docid": "6e2805e9b1178f27d2c3318a6462cc7d", "score": "0.68416965", "text": "public function format(): Formatter\n {\n return new JsonFormatService();\n }", "title": "" }, { "docid": "871d5a37d90861283f251ab07be91faa", "score": "0.68349284", "text": "public function getFormat();", "title": "" }, { "docid": "871d5a37d90861283f251ab07be91faa", "score": "0.68349284", "text": "public function getFormat();", "title": "" }, { "docid": "871d5a37d90861283f251ab07be91faa", "score": "0.68349284", "text": "public function getFormat();", "title": "" }, { "docid": "0bb52dad54ea7506e4c655cf52c9b614", "score": "0.67009246", "text": "public function getFormat()\r\n {\r\n return $this->_formats[ $this->_activeFormat ];\r\n }", "title": "" }, { "docid": "47950c65bd7e02fa0c5a95ce794b7083", "score": "0.6700782", "text": "function f( $formatter = '' ) {\n\t\t$rv = clone $this;\n\t\treturn $rv->format( $formatter );\n\t}", "title": "" }, { "docid": "26e27184926f1c80d2b064519e222693", "score": "0.6695158", "text": "public function getFormat(): string;", "title": "" }, { "docid": "26e27184926f1c80d2b064519e222693", "score": "0.6695158", "text": "public function getFormat(): string;", "title": "" }, { "docid": "2651f9dc8e1df7fd490b2038ad1e1242", "score": "0.6686347", "text": "public function getFormatter(string $format): ResponseFormatterInterface\n {\n Assert::inArray($format, array_keys($this->config));\n $config = $this->config[$format];\n $class = array_keys($config)[0];\n $args = array_values($config)[0];\n Assert::implementsInterface($class, ResponseFormatterInterface::class);\n\n return new $class(...$args);\n }", "title": "" }, { "docid": "290e3180dfefa913f7744b151d360ade", "score": "0.66558135", "text": "function getFormatFunction();", "title": "" }, { "docid": "3930011441f0a173a81383ec092e1f11", "score": "0.6653671", "text": "public function getFormatted($format);", "title": "" }, { "docid": "10879c6e516cf05e4db2495beb67bd2c", "score": "0.6650323", "text": "public function getBatchFormatter(): FormatterInterface\n {\n if (!$this->batchFormatter) {\n $this->batchFormatter = $this->getDefaultBatchFormatter();\n }\n\n return $this->batchFormatter;\n }", "title": "" }, { "docid": "1d1519466e38c957c53c62bb7a40b256", "score": "0.66450036", "text": "protected function getFormatter($options) {\n if (!isset($options['settings'])) {\n $options['settings'] = [];\n }\n\n $options += [\n 'field_definition' => $this->fieldDefinition,\n 'view_mode' => $this->viewMode,\n 'configuration' => ['type' => $options['id'], 'settings' => $options['settings']],\n ];\n\n return $this->formatterManager->getInstance($options);\n }", "title": "" }, { "docid": "fc1b589cd8f155616915d6ac518ccdf8", "score": "0.6641195", "text": "protected function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "a4ff67b2a2a37cf183d3d0f1250f735a", "score": "0.66269696", "text": "public function getFormatter(): LineFormatter\n {\n if (!$this->_formatter) {\n $this->_formatter = new LineFormatter(\n $this->config['format'] ?? '[%type%][%date%] %message%',\n $this->config['date_format'] ?? 'Y-m-d H:i:s'\n );\n }\n\n return $this->_formatter;\n }", "title": "" }, { "docid": "1ed201e6209aba25b95bbed19cae6990", "score": "0.6605885", "text": "function getFormat();", "title": "" }, { "docid": "c9850db0a159a63e04bea228c1fbeaae", "score": "0.66047984", "text": "public function getFormat()\n {\n if (null === $this->format) {\n $this->format = static::getDefaultFormat();\n }\n\n return $this->format;\n }", "title": "" }, { "docid": "3ae6a2cd8d4645899fa045644a64e6bc", "score": "0.6599334", "text": "protected function formatter()\n {\n $formatter = new LineFormatter(null, $this->dateFormat, true, true);\n $formatter->includeStacktraces();\n\n return $formatter;\n }", "title": "" }, { "docid": "c4818b3c84f1d9e7924f785007d3327d", "score": "0.6559847", "text": "private function getCurrencyFormatter()\n {\n if ($this->currencyFormatter) {\n return $this->currencyFormatter;\n }\n\n return $this->currencyFormatter = NumberFormatter::create($this->locale, NumberFormatter::CURRENCY);\n }", "title": "" }, { "docid": "4ba25da53284f6580638d5e31643cd39", "score": "0.655865", "text": "protected function getDefaultFormatter()\n {\n return new LineFormatter(null, null, false, false);\n }", "title": "" }, { "docid": "fb618e6e76e84e77ed11bdf91dc56d03", "score": "0.6475165", "text": "abstract protected function getFormatter(Convert $convert);", "title": "" }, { "docid": "8fec14a67abda4e5e7ed6958e7b09254", "score": "0.6449506", "text": "public function getFormat()\n {\n if (is_null($this->format)) {\n $this->setFormat(self::DEFAULT_FORMAT);\n }\n\n return $this->format;\n }", "title": "" }, { "docid": "c66bb527e6b7fb109d6e4d76d34eb131", "score": "0.6441526", "text": "public function getFormat() {\n\t\treturn $this->format;\n\t}", "title": "" }, { "docid": "c66bb527e6b7fb109d6e4d76d34eb131", "score": "0.6441526", "text": "public function getFormat() {\n\t\treturn $this->format;\n\t}", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "35c500a491cb9a2bf1bc684d32d4429f", "score": "0.64252615", "text": "public function getFormat()\n {\n return $this->format;\n }", "title": "" }, { "docid": "7df9ca1863a7f21b46891b0bb51dc5a2", "score": "0.64056146", "text": "public function GetFormat ();", "title": "" }, { "docid": "996234c77c684c0c4d2d1ac295ecc372", "score": "0.64050734", "text": "public function getFormat()\n {\n return $this->fusionValue('format');\n }", "title": "" }, { "docid": "ef68cca40553bd2ff591f227280bcc8c", "score": "0.63959277", "text": "public function getFormat() {\n\t\treturn $this->_format;\n\t}", "title": "" }, { "docid": "9eaa2cc4f6cbdc842140d0e262a430d0", "score": "0.636732", "text": "public function getFormat() {\n return $this->format;\n }", "title": "" }, { "docid": "164644df6df3fe7db43489300420354e", "score": "0.63607", "text": "public function format()\n {\n return $formated = new Formatter($this);\n }", "title": "" }, { "docid": "4d7e80125c2140cf074c4d6a2a3594fd", "score": "0.6357347", "text": "public function getFormat() {\n return $this->format;\n }", "title": "" }, { "docid": "4d7e80125c2140cf074c4d6a2a3594fd", "score": "0.6357347", "text": "public function getFormat() {\n return $this->format;\n }", "title": "" }, { "docid": "9d02939af1f6a24c74c59cef9e692909", "score": "0.63106465", "text": "public function getFormat()\n {\n if (is_null($this->format)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_FORMAT);\n if (is_null($data)) {\n return null;\n }\n $className = DeliveryFormatModel::resolveDiscriminatorClass($data);\n $this->format = $className::of($data);\n }\n\n return $this->format;\n }", "title": "" }, { "docid": "343fa4fa37f3d16aa7ded12d3fe9c5aa", "score": "0.6306747", "text": "protected function getDefaultFormatter()\n {\n //return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%');\n return new \\Shulgin\\AdvancedLogger\\Logger\\Formatter\\MultiLineFormatter(null, null, true, true);\n }", "title": "" }, { "docid": "7e936268659e0de595424079405e1f9d", "score": "0.6306222", "text": "protected function format($format = null)\n {\n if (!$format) {\n return $this->format;\n }\n\n return $format;\n }", "title": "" }, { "docid": "823bae1107a8cfdb9feafefcceacc7a8", "score": "0.6295834", "text": "public function getFormatSetting()\n {\n return $this->format_setting;\n }", "title": "" }, { "docid": "fad476b6b93885e98400192a82342aba", "score": "0.62944865", "text": "public function getFormat(): string\n {\n return $this->options['format'];\n }", "title": "" }, { "docid": "83321e7d414c5ec23ccf9a3184552067", "score": "0.6287583", "text": "private function getNumberFormatter()\n {\n return $this->numberFormatter;\n }", "title": "" }, { "docid": "50ca4b0cbcc977e381b766dc70a3b773", "score": "0.6274334", "text": "public function getFormat() {\n // 4.5.x compatibility\n }", "title": "" }, { "docid": "7bfadb1c1139c893424a52d27102030c", "score": "0.6265961", "text": "public function get_format()\n\t{\n\t\treturn $this->format;\n\t}", "title": "" }, { "docid": "2e1c8685983364ddd8d318031f9eea0f", "score": "0.6260417", "text": "public function get_format()\n {\n return $this->format;\n }", "title": "" }, { "docid": "1d92613dad849811996b8c04515012e1", "score": "0.62564915", "text": "public static function formatService(): FormatService {\n return self::getContainer()->get(FormatService::class);\n }", "title": "" }, { "docid": "e21dc936024af29131b94efb326bfefb", "score": "0.62316555", "text": "public static function getWordFormatterPersoner()\n {\n if (is_null(static::$wordFormatterPersoner)) {\n static::$wordFormatterPersoner = new FormatterPersoner(static::getConfig());\n }\n return static::$wordFormatterPersoner;\n }", "title": "" }, { "docid": "4ac04ed0a34c4d87e68a2d564f205666", "score": "0.6213857", "text": "function getFormat() { return $this->m_format; }", "title": "" }, { "docid": "6409b964a93fdbf1d37e6d0fc5081ee1", "score": "0.6180808", "text": "public function getformat(){\r\n\t\treturn $this->format;\r\n\t}", "title": "" }, { "docid": "7ad3abfce84bfbcdfc41c719da3bad0b", "score": "0.61784583", "text": "protected function parse_format($format) {\n\t\treturn $format;\n\t}", "title": "" }, { "docid": "ebbfc99badf223df248c6a37bba3bc1d", "score": "0.61647654", "text": "protected function loadFormatter($formatterName)\n {\n $formatter = $this->formatterFactory->get($formatterName);\n\n if (null !== $formatter) {\n return $formatter;\n }\n\n $formatter = $this->formatterFactory->getDefaultFormatter();\n\n return $formatter;\n }", "title": "" }, { "docid": "8a31870fe886fbf5ad7d36f84c6a3de5", "score": "0.6098995", "text": "protected function _getFormat()\n {\n \treturn $this->_format;\n }", "title": "" }, { "docid": "a85e44271d3beb611083e53d54b278c2", "score": "0.6098744", "text": "protected function getFormat(){\n return $this->partialDateFormatStorage->load($this->getSetting('format'));\n }", "title": "" }, { "docid": "b9c815ae87ac46f4c22a9c231c49cbd3", "score": "0.60657114", "text": "abstract protected function getFormatIdentifier();", "title": "" }, { "docid": "c09836eadedc5fa4ba5f6e512700ab61", "score": "0.60217845", "text": "protected function getDefaultBatchFormatter(): FormatterInterface\n {\n return new LineFormatter();\n }", "title": "" }, { "docid": "ac6bb2a8cbcbe97369bedce8feb5246c", "score": "0.6019465", "text": "function Format($text, $formatter=false) {return $text;}", "title": "" }, { "docid": "3ab4cf5a2100f58eb2fd58efdae6afc8", "score": "0.59982586", "text": "public function getFormat(): ?string\n {\n return null;\n }", "title": "" }, { "docid": "ee9d620fc6d06071657aac3bb3d62f66", "score": "0.59847087", "text": "protected function getFormat()\n {\n $format = $this->defaultFormat;\n\n if (!Request::wantsJson()) {\n $format = Request::format($format);\n }\n\n return $format;\n }", "title": "" }, { "docid": "b0c017223bd42c82f8d493ed362c8918", "score": "0.59737414", "text": "protected function formatter() {\n return \\RestfulManager::outputFormat($this);\n }", "title": "" }, { "docid": "db3c8ffc4a921abdd0da92ec01a13de0", "score": "0.5961818", "text": "public function defaultFormat()\r\n\t{\r\n\t\treturn $this->defaultFormat;\r\n\t}", "title": "" }, { "docid": "51a5594cebcc31719b8e0033f55c609f", "score": "0.5955499", "text": "public function setFormatter(FormatterInterface $formatter) {}", "title": "" }, { "docid": "41d016b2539313a3d4943c0147193728", "score": "0.5938966", "text": "public static function getWordFormatterTitler()\n {\n if (is_null(static::$wordFormatterTitler)) {\n static::$wordFormatterTitler = new FormatterTitler(static::getConfig());\n }\n return static::$wordFormatterTitler;\n }", "title": "" }, { "docid": "981a311ecd4b8f914cdcfcd45ead1c68", "score": "0.592008", "text": "function getType(){\n return 'formatting';\n }", "title": "" }, { "docid": "981a311ecd4b8f914cdcfcd45ead1c68", "score": "0.592008", "text": "function getType(){\n return 'formatting';\n }", "title": "" }, { "docid": "ab180c1b31be88ab33f25798398d0996", "score": "0.5917903", "text": "public function get($extension = null)\r\n\t{\r\n\t\tif ($extension === null) {\r\n\t\t\treturn $this->defaultFormat;\r\n\t\t}\r\n\t\t\r\n\t\tif (!isset($this->formats[$extension])) {\r\n\t\t\t$this->formats[$extension] = $this->_generate($extension);\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->formats[$extension];\r\n\t}", "title": "" }, { "docid": "309dfc8149b4b1e6e2cb9990e7758c8a", "score": "0.58801615", "text": "abstract public function getFormatLabel();", "title": "" }, { "docid": "bd2e42175b8c3bf30546e8e44f856f9a", "score": "0.5877278", "text": "public function getFormat(){\n $exploded = explode('.', $this->refFile);\n return $exploded[1]; \n }", "title": "" }, { "docid": "3d13f68848489408cd58d4e4968fdbe1", "score": "0.5872776", "text": "public function scheduleFormatter() : ScheduleFormatter {\n return ScheduleFormatter::instance();\n }", "title": "" }, { "docid": "26e43b5fb59545292c1bcb3f7f160bde", "score": "0.5862741", "text": "function getType()\n {\n return 'formatting';\n }", "title": "" }, { "docid": "f0ef8ce9e899a092b9bc231affa7c655", "score": "0.58443916", "text": "private function getNumberFormatter()\n {\n if ($this->numberFormatter) {\n return $this->numberFormatter;\n }\n\n return $this->numberFormatter = NumberFormatter::create($this->locale, NumberFormatter::DECIMAL);\n }", "title": "" }, { "docid": "eb24c621e628499d4f158842be8042cd", "score": "0.5838634", "text": "protected function getSubjectFormatter($format)\n {\n return new LineFormatter($format);\n }", "title": "" }, { "docid": "845e605ce1b1253d58256a635f556a4f", "score": "0.58347553", "text": "public static function getDefaultFormat()\n {\n return static::$defaultFormat;\n }", "title": "" }, { "docid": "a64cad6863a99d182598599c8be121b8", "score": "0.58313966", "text": "public static function formatters()\n\t{\n\t\t$formatter = new stdClass();\n\n\t\t// Text styles\n\t\t$formatter->green = new OutputFormatterStyle('green', null, array('bold'));\n\t\t$formatter->yellow = new OutputFormatterStyle('yellow', null, array('bold'));\n\t\t$formatter->_white_ = new OutputFormatterStyle('white', null, array('bold', 'underscore'));\n\t\t$formatter->gold = new OutputFormatterStyle('yellow');\n\t\t$formatter->grey = new OutputFormatterStyle('white');\n\t\t$formatter->dark_grey = new OutputFormatterStyle('black');\n\n\t\t// Highlighted styles\n\t\t$formatter->info = new OutputFormatterStyle('white', 'blue', array('bold'));\n\t\t$formatter->success = new OutputFormatterStyle('white', 'green', array('bold'));\n\t\t$formatter->warning = new OutputFormatterStyle('white', 'red', array('bold'));\n\t\t$formatter->pending = new OutputFormatterStyle('black', 'white');\n\n\t\treturn $formatter;\n\t}", "title": "" }, { "docid": "d28123d06d2e1efdcc5dcc0e0bea4cbd", "score": "0.5828138", "text": "public function getMessageFormatterValue()\n {\n return $this->messageFormatterValue;\n }", "title": "" }, { "docid": "b36da28ac07b2ef3edb81802781afc70", "score": "0.5827541", "text": "public function pathFormatter()\n {\n return $this->formatPathUsing ?: function ($path) {\n return $path;\n };\n }", "title": "" }, { "docid": "9cf3392582fb31698c0d4996191a8654", "score": "0.58024246", "text": "protected function getFormatter($version) {\n\t\tswitch ($version) {\n\t\t\tcase '2.0':\n\t\t\t\treturn new C20ImportFormatter;\n\t\t\tdefault:\n\t\t\t\tthrow new InvalidArgumentException('Unknown import version.');\n\t\t}\n\t}", "title": "" }, { "docid": "2e74b7d1412c68d91140c223f6d60a3c", "score": "0.5793611", "text": "public function getFormat()\n {\n if (!isset($this->_format)) {\n $params = $this->getParameters();\n if (isset($params['format'])) {\n $this->_format = Mad_Controller_Mime_Type::lookupByExtension($params['format']);\n } else {\n $this->_format = current($this->getAccepts());\n }\n }\n return $this->_format;\n }", "title": "" }, { "docid": "303546aeb84ac815896b849aeedb9aaa", "score": "0.5772734", "text": "protected function getFormatter(ServerRequestInterface $request)\n {\n $accept = $request->getHeaderLine('Accept');\n $priorities = $this->priorities();\n if (!empty($accept)) {\n $preferred = $this->negotiator->getBest($accept, array_keys($priorities));\n }\n if (!empty($preferred) && $preferred instanceof AcceptEncoding) {\n $formatter = $priorities[$preferred->getValue()];\n } else {\n $formatter = array_shift($priorities);\n }\n\n return $this->resolve($formatter);\n }", "title": "" }, { "docid": "eb170365be6d541da257092af6035338", "score": "0.57318497", "text": "private function getCurrencyFormatter(CurrencyFormatOptions $options): NumberFormatter\n {\n return $this->cache->get((string)$options, fn() => $this->currencyFactory->create($options));\n }", "title": "" }, { "docid": "69c83e4d902ef74c6e312cc86251db0e", "score": "0.56888676", "text": "private function getDateFormatter()\n {\n if ($this->dateFormatter) {\n return $this->dateFormatter;\n }\n\n return $this->dateFormatter = IntlDateFormatter::create(\n $this->locale,\n IntlDateFormatter::SHORT,\n IntlDateFormatter::NONE,\n ini_get('date.timezone'),\n //PHP_VERSION_ID >= 50500 ? $date->getTimezone() : $date->getTimezone()->getName(),\n IntlDateFormatter::GREGORIAN\n );\n }", "title": "" }, { "docid": "d60442702cfcf096d2d753dd9ec950a5", "score": "0.5682623", "text": "public function requirementsFormatter() : RequirementsFormatter {\n return RequirementsFormatter::instance();\n }", "title": "" }, { "docid": "8d0d5380ba225f52d6f2334bfe8943d9", "score": "0.5660029", "text": "public function getLogFormat(): string\n {\n return $this->logFormat;\n }", "title": "" } ]
11050d0ff1bad8547b718a4f165a8998
Pushes an String onto the error stack
[ { "docid": "3ed20b8e21b964cfbf01b3cf8d1e25e4", "score": "0.65146327", "text": "public function pushErrorStr($error_str, $level = 0, $pad = self::DEFAULT_PAD)\n\t{\n\t\t$this->error_stack->append(str_repeat($pad, $level) . $error_str);\n\t}", "title": "" } ]
[ { "docid": "37e4ff4a030895bd171045cff6f223dc", "score": "0.61645305", "text": "function appendErrorMsg($string){\r\n\t\t$this->error[$this->errorIndex] = $string;\r\n\t\t$this->errorIndex++;\r\n\t}", "title": "" }, { "docid": "7e687c15775b907f12f3d56a1ce2299b", "score": "0.5999463", "text": "public static function Push($str)\n {\n $str = str_replace('.', '/', trim($str));\n \n if (!is_array(self :: $stack))\n self :: $stack = array();\n \n if (!is_array($str))\n $str = array($str);\n \n foreach ($str as $val)\n {\n if (self :: Assert($val))\n self :: $stack[] = $val;\n else\n throw new SystemException(err_stack);\n }\n \n return true;\n }", "title": "" }, { "docid": "f26ac05fa9c0c16513d99d5ce21a286f", "score": "0.59083414", "text": "public function error($string);", "title": "" }, { "docid": "5bbee85108cd03b2d6c994a2ac022878", "score": "0.58265305", "text": "function print_error_local($str){\n global $error;\n \n $error=$str;\n\n print_template('error');\n print_template('bottom');\n \n exit;\n}", "title": "" }, { "docid": "b8d224898dbf3e9e0c567c2bd7e93b52", "score": "0.58190256", "text": "public function add_error($str)\n\t{\n\t\tif( !is_array($this->errors) ) $this->errors = array();\n\t\t$this->errors[] = $str;\n\t}", "title": "" }, { "docid": "ff2861985ba7db33c1f8afdfd2dc4538", "score": "0.5734254", "text": "protected function error(string $st){\n \\bbn\\X::log($st, \"ide\");\n $this->last_error = $st;\n return $this->last_error;\n }", "title": "" }, { "docid": "ab5b1f3ede1e4ca31a9c058d090e07c9", "score": "0.5571496", "text": "function graphError($errString)\n{\n echo '<div class=\"errMsg\">'.htmlspecialchars($errString).'</div>'.\"\\n\";\n}", "title": "" }, { "docid": "55e11ef9e06103d428351b0a461162ac", "score": "0.5553201", "text": "public function error($str = '') {\n\t\tif(strlen($str)) $this->errors[] = $str; // append error message\n\t\treturn count($this->errors) ? end($this->errors) : ''; // return last error\n\t}", "title": "" }, { "docid": "72c626f32c1eea72353ade21ada2e0d4", "score": "0.55323344", "text": "function jsonErrorPush($sql, $error){\n\t\tglobal $json;\n\t\t$json['status'] = true;\n\t\tarray_push( $json['error']['msg'], ['Error'.$sql.'<br>'.$error] );\n\t}", "title": "" }, { "docid": "aef70e0360f1310dc73bcb4510d5de1f", "score": "0.5503732", "text": "public function error($string)\n {\n echo $string . \"\\n\";\n }", "title": "" }, { "docid": "fb11a8b7e1f2142baae1fe4ba0ee0a52", "score": "0.5499699", "text": "protected function error($string)\n\t{\n\t\treturn $this->line($string, Console::FG_RED);\n\t}", "title": "" }, { "docid": "c04893e0f63193a507e228a66a22fa98", "score": "0.5452787", "text": "public function pushError($aMessage)\n {\n if (!isset($this->Data['error']))\n $this->pushValue('error', Array($aMessage));\n else\n $this->pushValue('error', $aMessage);\n\n }", "title": "" }, { "docid": "b7c0562726e24948d0a612eec0fe7453", "score": "0.5448852", "text": "protected function storeMsg(string $string)\n {\n if ($this->errorStore) {\n $this->errorStore->storeMsg($string);\n }\n }", "title": "" }, { "docid": "fbd464c0ad2b660946de50b9b3b2254a", "score": "0.5433022", "text": "public function push($string) {\n $this->output .= $string;\n }", "title": "" }, { "docid": "8c1b8ab9f761f2df095f7e3e0cc93cfd", "score": "0.5400309", "text": "function errorString( )\r\n {\r\n return $this->ErrorString;\r\n }", "title": "" }, { "docid": "a2c49013a0afc59d9fc98558cbcae480", "score": "0.5378505", "text": "public function add_error( $str_error ) {\n\t\t\t$arr_errors = $this->get_errors();\n\t\t\t$arr_errors[] = $str_error;\n\t\t\t$this->set_errors( $arr_errors );\n\t\t}", "title": "" }, { "docid": "c82731c070b1ed3b58474dc7fc72d028", "score": "0.5358773", "text": "protected function failOut(string $error = null)\n\t{\n\t\tif ($error)\n\t\t{\n\t\t\t$this->errors[] = $error;\n\t\t}\n\t\t\n\t\tthrow new PushoverException(implode(' | ', $this->errors));\t\t\n\t}", "title": "" }, { "docid": "fb1a69d5aeaf7b22a2e157de3f1bd907", "score": "0.5333421", "text": "function error_string()\r\n\t{\r\n\t\tif ($errorstring = @xml_error_string($this->error_code()))\r\n\t\t{\r\n\t\t\treturn $errorstring;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 'unknown';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce4d3d84e24e1c2301923fcac0d83f62", "score": "0.53285927", "text": "function self_set_error_msg($error_str)\n{\n global $logger;\n $logger->error(SELF.\" \".$error_str);\n $error['error'] = $error_str;\n $msg = json_encode($error);\n echo $msg;\n exit;\n}", "title": "" }, { "docid": "1d36794f4323970e25522a3ae5ef1d99", "score": "0.531741", "text": "private function setErr() {\n //we can derive method_name calling the error from a stack trace....\n $stack = debug_backtrace();\n $method_name = $stack[1]['function'];\n\n $this->error_str = \"Failure on {$method_name}. Reason: \" . socket_strerror(socket_last_error($this->socket));\n $this->error_code = socket_last_error($this->socket);\n }", "title": "" }, { "docid": "ccbc8042ac8c474e413a70f678040ac5", "score": "0.52809405", "text": "public function error($string)\n {\n $this->output->writeln(\"<error>$string</error>\");\n }", "title": "" }, { "docid": "49000c92f1f67e39e206e0f4691f289e", "score": "0.5269436", "text": "public function getErrorstack() : \\codename\\core\\errorstack {\n return $this->errorstack;\n }", "title": "" }, { "docid": "9ee0bde45c83a865e02699b65b23634f", "score": "0.52586937", "text": "function addError($errorString) {\n\t/*\n\t$arr = $_SESSION['error'];\n\t\n\t// add new one\n\tarray_push($arr, $errorString);\n \n $_SESSION['error'] = $arr;\n */\n \n $_SESSION['error'][] = $errorString;\n}", "title": "" }, { "docid": "d846cdb5ad303713ae8403888d5123ef", "score": "0.52484155", "text": "function create_error($str)\n\t{\n\t\treturn \"<div class='alert alert-danger top-buffer'><strong>{$str}</strong></div>\";\n\t}", "title": "" }, { "docid": "b9ad627a75e5695345495314e239fc34", "score": "0.52303493", "text": "function set_error_msg($error_str)\n{\n\t$error['error'] = $error_str;\n\t$msg = json_encode($error);\n\techo $msg;\n\texit;\n}", "title": "" }, { "docid": "b9ad627a75e5695345495314e239fc34", "score": "0.52303493", "text": "function set_error_msg($error_str)\n{\n\t$error['error'] = $error_str;\n\t$msg = json_encode($error);\n\techo $msg;\n\texit;\n}", "title": "" }, { "docid": "581725eb13476754e961616f2f2a488c", "score": "0.5160349", "text": "static function get_error($ex) {\n //\n //Replace the hash with a line break in teh terace message\n $trace = str_replace(\"#\", \"<br/>\", $ex->getTraceAsString());\n //\n //Retirn the full message\n return $ex->getMessage() . \"<br/>$trace\";\n }", "title": "" }, { "docid": "28bf59a6e81e8698f32135e349fd975e", "score": "0.5152327", "text": "function myError()\n{\n echo \"sdemError\";\n}", "title": "" }, { "docid": "091f4c14b9f8d8cdae66e21eb5b499ae", "score": "0.51280564", "text": "public function prevError()\n {\n }", "title": "" }, { "docid": "0c64fc64c4d2ef0d9f7b562e626874d7", "score": "0.51093054", "text": "function ff_stackTrace()\n{\n\t$st = array_reverse(debug_backtrace());\n\t$ret = '';\n\tforeach ($st as $k => $v) {\n\t\tif($k === count($st) - 1) {\n\t\t\tcontinue;\n\t\t}\n\t\tif(\n\t\t\t!isset($v['file']) ||\n\t\t\t!isset($v['line']) ||\n\t\t\t!isset($v['class']) ||\n\t\t\t!isset($v['type']) ||\n\t\t\t!isset($v['function']) ||\n\t\t\t!isset($v['args'])\n\t\t) {\n\t\t\t$ret .= \"[{$k}]: Unknown\\r\\n\";\n\t\t\tcontinue;\n\t\t}\n\t\t$ret .= \"[{$k}]: {$v['file']} ({$v['line']}) {$v['class']}{$v['type']}{$v['function']}(\". implode(', ', array_map(function(&$x) {\n\t\t\tif(is_numeric($x)) {\n\t\t\t\treturn $x;\n\t\t\t}\n\n\t\t\tif(is_bool($x)) {\n\t\t\t\treturn $x ? 'true' : 'false';\n\t\t\t}\n\n\t\t\tif(is_null($x)) {\n\t\t\t\treturn 'NULL';\n\t\t\t}\n\n\t\t\tif(is_object($x)) {\n\t\t\t\treturn '[Object]';\n\t\t\t}\n\n\t\t\tif(is_resource($x)) {\n\t\t\t\treturn '[Resource]';\n\t\t\t}\n\n\t\t\tif(is_array($x)) {\n\t\t\t\treturn '[Array]';\n\t\t\t}\n\n\t\t\tif(is_string($x)) {\n\t\t\t\tif(strlen($x) > 15) {\n\t\t\t\t\t$x = substr($x, 0, 15) . '...';\n\t\t\t\t}\n\t\t\t\treturn '\"'. addslashes($x) .'\"';\n\t\t\t}\n\t\t}, $v['args'])) . \")\\r\\n\";\n\t}\n\treturn $ret;\n}", "title": "" }, { "docid": "b65c1bc079a424c9a5c7bc5d3a226563", "score": "0.50977147", "text": "public function error(): ?string;", "title": "" }, { "docid": "8fc6ab0eef376421c5c63c9ada4298d5", "score": "0.5068162", "text": "public function getError() : string;", "title": "" }, { "docid": "09007b3447bbedce2fad9b24d51d832a", "score": "0.50497854", "text": "static function error($errstr, $backtrace_level=0)\n\t\t{\n\t\t\tif(Kennel::getSetting('application', 'debug_mode'))\n\t\t\t{\n\t\t\t\tself::dumpError($errstr, $backtrace_level);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9c39ea9be39ba8cd9f8b6050e84ae8e3", "score": "0.50360227", "text": "protected function addError($name, $message, $params=null, $source='model', $stack=null)\n {\n $this->_errors[] = array(\n 'name' => $name,\n 'message' => $message,\n 'param'=>$params,\n 'source' => $source,\n 'stack' => $stack,\n );\n }", "title": "" }, { "docid": "dd22bbf05a2d0125712881c9d44f7a6f", "score": "0.5029075", "text": "function err(&$errorvar) {\n\n if (isset($errorvar)) {\n echo \"<font color=#ff0000><B>&lt;&lt;</B></font>\";\n }\n}", "title": "" }, { "docid": "54b44d108298c6ab09e52eca326eaf9e", "score": "0.50282437", "text": "function terror($text) {\n\treturn \"<span class=\\\"ERROR_TEXT_STYLE\\\">$text</span>\";\n}", "title": "" }, { "docid": "db3403e06470007c29729c260e5929a1", "score": "0.5022952", "text": "function ae_handle_error ( $e ) {\n\n\tif ( debuggin () )\n\t{\n\t\techo '<pre>';\n\t\techo '[EXCEPTION] ' . $e->getMessage() . \"\\n\\n\" ;\n\t\techo 'Exception location: <strong>' . $e->getFile() . '</strong> / Line: <strong>' . $e->getLine() . \"</strong>\\n\\n\" ;\n\n\n\t\t$trace = $e->getTrace() ;\n\n\t\t$c = count ( $trace ) ;\n\n\t\techo 'Call stask ('.$c.'):' . \"\\n\" ;\n\n\t\t$class = null ;\n\n\t\t$stack = '' ;\n\n\t\t$leading = \"%01d\" ;\n\n\t\tif ( $c > 100 )\n\t\t{\n\t\t\t$leading = \"%03d\" ;\n\t\t} else if ( $c > 10 )\n\t\t{\n\t\t\t$leading = \"%02d\" ;\n\t\t}\n\n\t\t$ind = 0 ;\n\n\t\tforeach ( $trace as $call )\n\t\t{\n\t\t\t$c -- ;\n\n\n\t\t\t$str = '['.sprintf($leading,$c) .'] ' ;\n\n\t\t\tfor ( $ind2 = 0 ; $ind2 < $ind ; $ind2 ++ )\n\t\t\t{\n\t\t\t\t$str .= ' ' ;\n\t\t\t}\n\n\t\t\t$str .= '<strong>' .( ake ( 'class' , $call ) ? $call['class'] . ' ' . $call['type'] . ' ' : '' ) ;\n\t\t\t$str .= $call['function'] . '</strong>' ;\n\t\t\t$str .= ake ( 'file' , $call) ? ' (' . $call['file'] . ':' . $call['line'] . ')' : ' (?)';\n\n\t\t\t$stack .= $str . \"\\n\" ;\n\n\t\t\t$ind ++ ;\n\n\t\t\tif ( $ind == 6 ) $ind = 0 ;\n\t\t}\n\n\t\techo trim ( $stack , \"\\n\" ) ;\n\n\t\techo '</pre>';\n\t}\n\n\tApp::end () ;\n\n}", "title": "" }, { "docid": "7e8c8bde106eb5e91304968f9d7a520e", "score": "0.50163054", "text": "function addError($message, $tokens, $line_nr, $filename)\n\t{\n\t\t$GLOBALS['info'][] = '<font color=\"red\">Parsing error occured. Use verbosity level=debug for details.</font>';\n\t\tif($GLOBALS['verbosity'] == 5)\n\t\t{\n\t\t\t$value = highlightline($tokens, '', $line_nr);\n\t\t\t$new_find = new InfoTreeNode($value);\n\t\t\t$new_find->title = 'Parse error: '.$message;\n\t\t\t$new_find->lines[] = $line_nr;\n\t\t\t$new_find->filename = $filename;\n\t\t\t\t\t\t\t\t\n\t\t\t$new_block = new VulnBlock('error', 'Debug');\n\t\t\t$new_block->treenodes[] = $new_find;\n\t\t\t$new_block->vuln = true;\n\t\t\t$GLOBALS['output'][$filename]['error'] = $new_block;\n\t\t}\t\n\t}", "title": "" }, { "docid": "63327d47b207000ab8e24ae81db3c15e", "score": "0.50142455", "text": "function customError($errorno,$errorstr){\r\n\techo \"ERROR: [$errorno] $errorstr\";\r\n}", "title": "" }, { "docid": "eb9aa768f446de2775065ed67ec4167c", "score": "0.5002577", "text": "public function addError(string $error)\n {\n $this->errorMessage[]=$error;\n }", "title": "" }, { "docid": "57604fbd044bca59a1d5e9ac005f620a", "score": "0.4989787", "text": "function addUserError(string $value) {\n $_SESSION['errors'][] = $value;\n}", "title": "" }, { "docid": "38f6cb1c7727c4191c81105658b8ce32", "score": "0.49876204", "text": "public function getError(): ?string;", "title": "" }, { "docid": "c517eedee582c36ae8e0005e3db46dc0", "score": "0.49754763", "text": "function bbcode_array_push(&$stack, $value) {\n $stack[] = $value;\n return(sizeof($stack));\n}", "title": "" }, { "docid": "b59e9e93c81c211159f1950872118122", "score": "0.4966376", "text": "function myErrorHandler ($errno, $errstr, $errfile, $errline, $vars)\r\n{\r\n // Ensure that we should be displaying and/or logging errors\r\n //if ( ! ($errno & error_reporting ()) || ! (ini_get ('display_errors') || ini_get ('log_errors'))) return;\r\n if(($errno & (E_NOTICE | E_STRICT)) OR error_reporting()==0) return;\r\n\r\n // define an assoc array of error string\r\n // in reality the only entries we should\r\n // consider are 2,8,256,512 and 1024\r\n $errortype = array (\r\n 1 => 'Error',\r\n 2 => 'Warning',\r\n 4 => 'Parsing Error',\r\n 8 => 'Notice',\r\n 16 => 'Core Error',\r\n 32 => 'Core Warning',\r\n 64 => 'Compile Error',\r\n 128 => 'Compile Warning',\r\n 256 => 'User Error',\r\n 512 => 'User Warning',\r\n 1024=> 'User Notice',\r\n 2048=> 'Strict Mode',\r\n 4096=> 'Recoverable Error'\r\n );\r\n $s = '{\"error\": { \"type\": \"'.$errortype[$errno].'\", \"text\": \"'.addslashes($errstr).'\", \"line\": '.$errline.', \"file\": \"'.addslashes($errfile).'\", \"trace\": [';\r\n\t$MAXSTRLEN = 300;\r\n\t$a = debug_backtrace();\r\n\t$traceArr = array_reverse($a);\r\n\tif(count($traceArr)) foreach($traceArr as $arr)\r\n\t{\r\n\t\tif($arr['function']=='myErrorHandler') continue;\r\n\t\t$Line = (isset($arr['line'])? $arr['line'] : \"unknown\");\r\n\t\t$File = (isset($arr['file'])? str_replace($_GLOBALS['tmpdir'],'',$arr['file']) : \"unknown\");\r\n\t\t$s.= '{\"line\": '.$Line.', \"file\": \"'.addslashes($File).'\"';\r\n if (isset($arr['class']))\r\n\t\t $s .= ', \"class\": \"'.$arr['class'].'\"';\r\n\t\t$args = array();\r\n\t\tif(!empty($arr['args'])) foreach($arr['args'] as $v)\r\n\t\t{\r\n\t\t\tif (is_null($v)) $args[] = 'NULL';\r\n\t\t\telseif (is_array($v)) $args[] = '\"Array['.sizeof($v).']'.(sizeof($v)<=5 ? ' '.addslashes(substr(serialize($v),0,$MAXSTRLEN)) : '').'\"';\r\n\t\t\telseif (is_object($v)) $args[] = '\"Object: '.get_class($v).'\"';\r\n\t\t\telseif (is_bool($v)) $args[] = $v ? 'true' : 'false';\r\n\t\t\telse\r\n {\r\n\t\t\t\t$v = (string) @$v;\r\n\t\t\t\t$str = substr($v,0,$MAXSTRLEN);\r\n\t\t\t\tif (strlen($v) > $MAXSTRLEN) $str .= '...';\r\n\t\t\t\t$args[] = '\"'.addslashes($str).'\"';\r\n\t\t\t}\r\n\t\t}\r\n if(isset($arr['function']))\r\n\t\t{\r\n\t\t $s .= ', \"function\": { \"name\": \"'.$arr['function'].'\", \"args\": ['.implode(', ',$args).'] }';\r\n\t\t}\r\n else\r\n\t\t{\r\n\t\t $s .= ', \"kernel\": ['.implode(', ',$args).']';\r\n\t\t}\r\n\t}\r\n\t$s.= '] } }';\r\n\techo $s;\r\n die;\r\n}", "title": "" }, { "docid": "d11ef7b37c41afee41afbfd6d20b29a8", "score": "0.49657014", "text": "function error($errorString){\r\n\tprint(\"<p class='error'> $errorString</p>\");\r\n}", "title": "" }, { "docid": "8eb41529a6b78229afa13b3eb744da5f", "score": "0.49547464", "text": "function error($text) {\r\n $ret = \"<br/><div class=\\\"ui-widget\\\" style=\\\"position:relative; width: 820px;\\\">\\n\";\r\n $ret .= \"<div class=\\\"ui-state-error ui-corner-all\\\">\\n\";\r\n $ret .= \"<p><span class=\\\"ui-icon ui-icon-alert\\\" style=\\\"float: left; margin-right: .3em;\\\"></span>\\n\";\r\n $ret .= \"<strong>Error!</strong> \" . $text;\r\n $ret .= \"</div></div>\\n\";\r\n\r\n return $ret;\r\n}", "title": "" }, { "docid": "a62716cccef1b00204d596d250ad21f2", "score": "0.4954103", "text": "public abstract function getError(): string;", "title": "" }, { "docid": "1176a6692528e0dc10ffa94349e7591e", "score": "0.4953379", "text": "public function error($text, $flags = 0) {\n\t\t$this->errors[] = $text; \n\t\treturn parent::error($text, $flags); \n\t}", "title": "" }, { "docid": "cd4ebaa683c0292f2d45a8ad3c8f98be", "score": "0.4952988", "text": "function getErrorStr($errno,$errstr,$file,$line) {\n return date('r').\" [$errno] $errstr\\n\";\n}", "title": "" }, { "docid": "81836ead1620d31a4311c23b3568b8df", "score": "0.49441063", "text": "function die_freepbx($text, $extended_text=\"\", $type=\"FATAL\") {\n\tif(is_object($extended_text) && method_exists($extended_text,\"getMessage\")) {\n\t\t$e = $extended_text;\n\t\t$extended_text = htmlentities($e->getMessage());\n\t\t$code = $e->getCode();\n\t\tthrow new \\Exception($text . \"::\" . $extended_text,$code,$e);\n\t} else {\n\t\t$extended_text = htmlentities($extended_text);\n\t\tthrow new \\Exception($text . \"::\" . $extended_text);\n\t}\n}", "title": "" }, { "docid": "b6b87bfdcff4d1be12b00492ac855982", "score": "0.49431092", "text": "function lastError() {\n\t }", "title": "" }, { "docid": "487c631e8326639174740f920cf4a127", "score": "0.49175632", "text": "function showError($str) {\n global $error;\n $strMsg = \"<script>alert(\\\"\" .$error[$str]. \"\\\")</script>\";\n echo $strMsg;\n }", "title": "" }, { "docid": "f67cec2a91fac26373597741283d2813", "score": "0.49164474", "text": "public function getError($string)\n {\n return array_key_exists($string, $this->errors) ?\n $this->errors[$string] :\n $this->errors['unknown'];\n }", "title": "" }, { "docid": "9457788e3445b2b3e04d353de94fc186", "score": "0.49013403", "text": "function Error(){}", "title": "" }, { "docid": "e1452261abce7c5ffe4bfa1dff0f0add", "score": "0.4900205", "text": "function _error($str) {\n $this->errno[] = $str;\n return true;\n }", "title": "" }, { "docid": "fb3985566c30944aa899a7b975ab8651", "score": "0.48987672", "text": "public function getErrMsg();", "title": "" }, { "docid": "243693c8839e1f642fba7dc96459a236", "score": "0.48974878", "text": "function error_result(&$array)\r\n{\r\n\t$arg_list = func_get_args();\r\n\tarray_shift($arg_list);\r\n\t$str = array_shift($arg_list);\r\n\t$array['result'] = 'error';\r\n\t$array['reason'] = vsprintf($str, $arg_list);\r\n}", "title": "" }, { "docid": "f757ec9d8e648d2b1b1f96a97f1db633", "score": "0.48844066", "text": "private function add_debug ( $string, $error = false ) {\n\t\n\t\t$this->debug .= ( $error == true ? '<b>' : '' ) . '<br><br>Profit:' . str_replace( '||', '<br>', str_replace ( '>', '&gt;', str_replace ( '<', '&lt;', $string ))) . ( $error == true ? '</b>' : '' );\n\n\t}", "title": "" }, { "docid": "ce20841bb7c2ba6ad519a62412fbab8c", "score": "0.48806092", "text": "function tracker_error($error) \n{\n\texit('d14:failure reason' . strlen($error) . \":{$error}e\");\n}", "title": "" }, { "docid": "c71a20f40df4308f15c4c3b1d280fbc7", "score": "0.4877365", "text": "function error($sMessage, $pReturn = null)\r\n{\r\n\r\n debug(ERROR, $sMessage);\r\n return $pReturn;\r\n}", "title": "" }, { "docid": "f52cf4596f5e76a63d298a815d538639", "score": "0.4877174", "text": "function fatal_error_handler($buffer){\n\n $error=error_get_last();\n\n if ($error['type'] == 1){\n\n // type, message, file, line\n\n $newBuffer='<html><header><title>Fatal Error </title></header>\n <style> \n .error_content{ \n background: ghostwhite;\n vertical-align: middle;\n margin:0 auto;\n padding:10px;\n width:50%; \n } \n .error_content label{color: red;font-family: Georgia;font-size: 16pt;font-style: italic;}\n .error_content ul li{ background: none repeat scroll 0 0 FloralWhite; \n border: 1px solid AliceBlue;\n display: block;\n font-family: monospace;\n padding: 2%;\n text-align: left;\n }\n </style>\n <body style=\"text-align: center;\"> \n <div class=\"error_content\">\n <label >Fatal Error </label>\n <ul>\n <li><b>Line</b> '.$error['line'].'</li>\n <li><b>Message</b> '.$error['message'].'</li>\n <li><b>File</b> '.$error['file'].'</li> \n </ul>\n\n <a href=\"javascript:history.back()\"> Back </a> \n </div>\n </body></html>';\n\n return $newBuffer;\n\n } # end if = 1\n\n return $buffer;\n\n}", "title": "" }, { "docid": "bbdd6c5d0a146f73f55f6274be792928", "score": "0.48717836", "text": "public function __toString()\n\t{\n\t\t// TODO: need to add the stacked exceptions here somehow\n\t\treturn sprintf(\n\t\t\t'Exception %1$d message \\'%2$s\\' in %3$s:%4$d',\n\t\t\t$this->getCode(), $this->getMessage(),\n\t\t\t$this->getFile(), $this->getLine()\n\t\t);\n\t}", "title": "" }, { "docid": "991ad539a0ce2532bd39ad2b12582562", "score": "0.48700005", "text": "public function addError(string $error)\n {\n $this->errors[] = $error;\n }", "title": "" }, { "docid": "4e32a49a52e412623adb0eb7e2c44c79", "score": "0.48696095", "text": "public function err($string = null)\n {\n $this->vt100->write($this->stderr, $string);\n }", "title": "" }, { "docid": "336331ec2caafb1b15909f2a4dc33941", "score": "0.48695213", "text": "public function ToString() { //$userFriendlyName, $requiredValue = null){\n if ( isset( self::$errorTypeArray[ $this->errType ] ) ) {\n $error = self::$errorTypeArray[ $this->errType ];\n foreach ( $this->data as $infoName => $infoValue ) {\n $error = str_replace( \"%$infoName%\", $infoValue, $error );\n }\n return $error;\n }\n if ( isset( self::$errorTypeArray[ 'DEFAULT' ] ) ) {\n return self::$errorTypeArray[ 'DEFAULT' ];\n }\n return 'Unknown error';\n }", "title": "" }, { "docid": "d5b9cb89a918d04a659e147bbd7ac304", "score": "0.48689345", "text": "public function addError( $text, ?string $code = null );", "title": "" }, { "docid": "0a68b1950b02583227c3362e34db0cf5", "score": "0.48679665", "text": "public static function restore(): void\n {\n if (!empty(self::$stack)) {\n error_reporting(array_pop(self::$stack));\n }\n }", "title": "" }, { "docid": "ab28e4fb0b242f357681cf8d8eacfdc3", "score": "0.48606017", "text": "public static function php_error($number, $string, $file, $line){\n if($number == -1 && is_array($string))\n list($number, $string) = self::unpack_mysqli_error($string);\n\n self::log_error($number, $string, $file, $line);\n if(self::OUTPUT_ENABLED){ self::print_error(end(self::$errors_seen)); }\n }", "title": "" }, { "docid": "ea0aac91bd5191c5b4304817a8eccb23", "score": "0.4859738", "text": "function _error_msg($error_msg) {\n\t\ttrigger_error('SafeSQL: ' . $error_msg);\t\n\t}", "title": "" }, { "docid": "ed8fe50677350874c609a038e125d419", "score": "0.48418236", "text": "private function error($message, $dump=false){\n\t\tarray_push($this->errors, $message);\n\t\tif($dump) $this->dumpErrors();\n\t}", "title": "" }, { "docid": "6fad5440dfc834b9f333f19ae5f8512a", "score": "0.48389313", "text": "function report_error( $msg ) {\n $status_encoded = json_encode( \"error\" );\n $msg_encoded = json_encode( '<b><em style=\"color:red;\" >Error:</em></b>&nbsp;'.$msg );\n print <<< HERE\n{\n \"Status\": {$status_encoded},\n \"Message\": {$msg_encoded}\n}\nHERE;\n exit;\n}", "title": "" }, { "docid": "6fad5440dfc834b9f333f19ae5f8512a", "score": "0.48389313", "text": "function report_error( $msg ) {\n $status_encoded = json_encode( \"error\" );\n $msg_encoded = json_encode( '<b><em style=\"color:red;\" >Error:</em></b>&nbsp;'.$msg );\n print <<< HERE\n{\n \"Status\": {$status_encoded},\n \"Message\": {$msg_encoded}\n}\nHERE;\n exit;\n}", "title": "" }, { "docid": "89945abb03959a97df28d1791e60621e", "score": "0.48313057", "text": "public function AddToStack($value) {\n if(count($this->_stack) < $this->_size) {\n array_unshift($this->_stack, $value);\n } else {\n echo \"Stack size exceeded\";\n exit;\n }\n }", "title": "" }, { "docid": "f18ddf639ff93b7247a57066740c8481", "score": "0.48303765", "text": "function error($string,$title = \"Fatal Error\",$exit=true)\n{\n?>\n\t<table cellspacing=\"1\" cellpadding=\"2\" border=\"1\" width=\"50%\">\n\t<tr bgcolor=\"#FF0000\"><td align=\"center\"><font color=\"#000000\">\n\t\t<b><? echo $title;?></b>\n\t</td></tr>\n\t<tr bgcolor=\"#FFFFFF\"><td valign=\"top\">\n\t<font color=\"#000000\"><? echo $string;?></font>\n\t</td></tr></table>\n<?\n\tif($exit)\n\t\tdie();\n}", "title": "" }, { "docid": "860e2ff7f0af71720df5ef2e3799895d", "score": "0.48267922", "text": "public function __toString() {\n\t\treturn $this->_error->message;\n\t}", "title": "" }, { "docid": "3ef398cb4891c5c4e4f2d5bd07405a3c", "score": "0.4818071", "text": "public function markError(){}", "title": "" }, { "docid": "59d47f297a1017f9642ab64e3409a332", "score": "0.48151052", "text": "public function stack();", "title": "" }, { "docid": "59d47f297a1017f9642ab64e3409a332", "score": "0.48151052", "text": "public function stack();", "title": "" }, { "docid": "6cee3fa51f1f85d89d9aa0db4f206ef0", "score": "0.48126334", "text": "function setCreateErrorString($err_id, $str){ $this->createErrors[$err_id] = $str; }", "title": "" }, { "docid": "347cc28a3f38f14b191af7478903f099", "score": "0.48115543", "text": "public function getError() : ?string;", "title": "" }, { "docid": "c90f1791d0ab80c89f66c04729af5cbc", "score": "0.48034102", "text": "public function getErrorType(): string;", "title": "" }, { "docid": "97b8a0cf9a65d4ed45572cc26f8ddf04", "score": "0.48017937", "text": "abstract public function error();", "title": "" }, { "docid": "4a3dd6b68248de5c7e5549a298903a95", "score": "0.48000732", "text": "function _error_debug() {}", "title": "" }, { "docid": "97ad30f15909dd6346ec190bdb095f7d", "score": "0.4798361", "text": "public function printErrorMessageAfter($current,$next){\n\t\t// remove slashes\n\t\t$current = $this->removeQuotes($current);\n\t\t$next = $this->removeQuotes($next);\n\n\t\t$_SESSION['error']=1;\n\t\techo '<br/>Syntax error: Unexpected \"'.$next.'\" after \"'.$current.'\".';\n\t}", "title": "" }, { "docid": "5e8897b043b1d7cbd9115c88eaf1c18d", "score": "0.4793226", "text": "public function push($name_str, $operation_str=null, $args_mix=null)\n {\n array_push($this->_tree, array(\n \"previous\"=>$this->_index,\n \"func\"=>array(),\n \"name\"=>$name_str\n ));\n \n $this->_index = count($this->_tree)-1;\n if(!is_null($operation_str))\n $this->applyProcedure($operation_str, $args_mix);\n }", "title": "" }, { "docid": "d79d63915bbc1d6c5818cbabfe22471b", "score": "0.4791892", "text": "public function errln($string = null)\n {\n $this->vt100->writeln($this->stderr, $string);\n }", "title": "" }, { "docid": "9799a3bb9f1011c2c36e14d8616ee0a2", "score": "0.47852728", "text": "function echo_error($error) {\n global $errordefs;\n echo \"Error #\".$error.\": \".$errordefs[$error];\n}", "title": "" }, { "docid": "c4a72f0d12d189af8ef9b992df8c88fc", "score": "0.4782889", "text": "public function get_error();", "title": "" }, { "docid": "e24e114ac7540ef603f313eb2fde5fa4", "score": "0.47815147", "text": "function getErrorMsg();", "title": "" }, { "docid": "dbad3009acd397e639303d6aa670dfa1", "score": "0.47795737", "text": "protected function addError($phpcsFile, $stackPtr, $typeName)\n {\n $error = '';\n\n $isError = false;\n foreach ($this->newTypes[$typeName] as $version => $present) {\n if ($this->supportsBelow($version)) {\n if ($present === false) {\n $isError = true;\n $error .= 'not present in PHP version ' . $version . ' or earlier';\n }\n }\n }\n if (strlen($error) > 0) {\n $error = '%s return type is ' . $error;\n $data = array(\n $typeName,\n );\n\n if ($isError === true) {\n $phpcsFile->addError($error, $stackPtr, 'Found', $data);\n } else {\n $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);\n }\n }\n\n }", "title": "" }, { "docid": "8bded5745f0d0cbe55f76f5408bb0da2", "score": "0.477462", "text": "function my_error_handler($errno, $errstr, $errfile, $errline, $errcontext)\n {\n try{\n $mssg = new Message();\n throw new Exception($errstr);\n }catch(Exception $e){\n $mssg->show_message(\"Error: \" . $errstr . \" <br> File: \" . $errfile . \" <br> Line: \" . $errline, \"error\", \"\");\n }\n }", "title": "" }, { "docid": "88c9ffca37ed1b6d543f4f80b3ae2a32", "score": "0.4760249", "text": "function errM($ar /* add inf, ... retvalue*/){\n if(!is_array($ar)) $ar = func_get_args();\n $ret = is_string($ar[count($ar)-1])?NULL:array_pop($ar);\n return $this->set($ar,$ret);\n }", "title": "" }, { "docid": "567882e10a5465aaef993f148935966b", "score": "0.47598043", "text": "function display_error1($err) {\n echo \"<script language='javascript'> alert('\" . $err . \"'); history.go(1);</script>\";\n exit();\n }", "title": "" }, { "docid": "f2a9fcd40980cf07ba7e4e9944269592", "score": "0.47593442", "text": "function error($string){\r\n\terror_log($string, 3, \"/tmp/FAILURE.txt\");\r\n}", "title": "" }, { "docid": "e5abc7b002233bb845c13e8be8411216", "score": "0.475692", "text": "public abstract function error();", "title": "" }, { "docid": "312b8e9a33fa8691d2f4c273d6352324", "score": "0.47561064", "text": "function customError($errno, $errstr) {\r\n echo \"<b>Error:</b> [$errno] $errstr\";\r\n }", "title": "" }, { "docid": "b6a0676e8bd45e239650078ca640a9c4", "score": "0.47511348", "text": "function _error_message($text)\n\t{\n\t\t$this->data['message'] .= $this->auth->message_settings['delimiters']['error_prefix'] . $text . $this->auth->message_settings['delimiters']['error_suffix'];\n\t}", "title": "" }, { "docid": "46e33b1e1bddf7bd25740a16eaee0ccf", "score": "0.47484967", "text": "public function addError($error)\n\t{\n\t\t$this->errors .= (string) $error;\n\t}", "title": "" }, { "docid": "cd07ab564965d13f93fba844f7e9de20", "score": "0.47431383", "text": "function get_error() {\n // JRC: 3/1/2003 Added ouptut wrapper and detection of output type for error message output\n if ($this->OutputType == 'HTML') {\n return ($this->ERROR==\"\")?0: \"<b>[XTemplate]</b><ul>\" . nl2br(str_replace('* ', '<li>', str_replace(\" *\\n\", \"</li>\\n\", $this->ERROR))) . \"</ul>\";\n } else {\n return ($this->ERROR==\"\")?0: \"[XTemplate] \" . str_replace(\" *\\n\", \"\\n\", $this->ERROR);\n }\n }", "title": "" }, { "docid": "5959f724499fce937ed931d7c01dab02", "score": "0.47413766", "text": "public function set_error_message()\n {\n $args = func_get_args();\n $format = \"Error line #%d: \" . array_shift($args);\n array_unshift($args, $this->line_number);\n $message = vprintf($format, $args);\n\n return $message;\n }", "title": "" } ]
3e36c0327494c6cb8377a5ca6676ebe0
Set disabled payment method for current request
[ { "docid": "15dea7157df3cec35cf8a27acea344db", "score": "0.6991625", "text": "public function disablePayMethod(string $method): void {\n if ($this->isValidPayMethod($method)) {\n $this->setParam('DISABLEPAYMETHOD', $method);\n }\n }", "title": "" } ]
[ { "docid": "39d9be0014cfeedafcf6bbcb504cbb81", "score": "0.74553144", "text": "public function disablePayment()\n {\n $this->disableEpayco();\n $this->disablePayU();\n $this->disableMercadopago();\n $this->disableOpenPay();\n $this->disableKushki();\n $this->disablePaymentez();\n $this->disablePaypal();\n $this->disableWompi();\n }", "title": "" }, { "docid": "a5eb8e94cea623de836a59d12b4e9aa0", "score": "0.66414034", "text": "public function setPaymentMethod($paymentMethod);", "title": "" }, { "docid": "a5eb8e94cea623de836a59d12b4e9aa0", "score": "0.66414034", "text": "public function setPaymentMethod($paymentMethod);", "title": "" }, { "docid": "e711e79e483a7a960da0c72e9c346d20", "score": "0.6315204", "text": "public function excludeDirectPaymentMethods() {\n $this->excludedPaymentMethods[] = SystemPaymentMethod::BANKAXESS;\n $this->excludedPaymentMethods[] = SystemPaymentMethod::DBNORDEASE;\n $this->excludedPaymentMethods[] = SystemPaymentMethod::DBSEBSE;\n $this->excludedPaymentMethods[] = SystemPaymentMethod::DBSEBFTGSE;\n $this->excludedPaymentMethods[] = SystemPaymentMethod::DBSHBSE;\n $this->excludedPaymentMethods[] = SystemPaymentMethod::DBSWEDBANKSE;\n return $this;\n }", "title": "" }, { "docid": "0eba1e82bd976df6e68c4125e73ce4a7", "score": "0.6289539", "text": "public function procShopToolSetPaymentMethodAsDefault()\r\n\t\t{\r\n\t\t\t$name = Context::get('name');\r\n\t\t\tif(!$name)\r\n\t\t\t{\r\n\t\t\t\treturn new Object(-1, 'msg_invalid_request');\r\n\t\t\t}\r\n\r\n\t\t\t$payment_repository = new PaymentMethodRepository();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$payment_repository->setDefault($name, $this->module_srl);\r\n\t\t\t\t$this->setMessage('success_registed');\r\n\t\t\t}\r\n\t\t\tcatch(ArgumentException $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage($e->getMessage());\r\n\t\t\t}\r\n\t\t\tcatch(DbQueryException $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage('db_query_failed');\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage('fail_to_update');\r\n\t\t\t}\r\n\r\n\t\t\t$vid = Context::get('vid');\r\n\t\t\t$returnUrl = getNotEncodedUrl('', 'vid', $vid, 'act', 'dispShopToolManagePaymentMethods');\r\n\t\t\t$this->setRedirectUrl($returnUrl);\r\n\t\t}", "title": "" }, { "docid": "326f3124a211a938c1e35c4be83f9ddf", "score": "0.6251098", "text": "public function setPayMethod()\n {\n $this->payMethod = new DebitCardPaymentMethod();\n $this->id = 'hp_dc';\n $this->name = __('Debit Card', 'woocommerce-heidelpay');\n }", "title": "" }, { "docid": "b0b912dae807efecc56fb4095b8cc5b9", "score": "0.62281245", "text": "public function setAllowedPaymentMethods(array $allowedPaymentMethods);", "title": "" }, { "docid": "b2d5d8f5dfca95c115bd9e2f74553681", "score": "0.61624074", "text": "function paymentMethod()\r\n {\r\n return $this->PaymentMethod;\r\n }", "title": "" }, { "docid": "5b06fe732dc2a7141dd935626ecc5243", "score": "0.61417145", "text": "public static function disablePaymentMethod($options = array())\n {\n $api = new Api\\DisablePaymentOption();\n\n if (!isset($options['serviceId'])) {\n throw new Required('serviceId');\n } else {\n $api->setServiceId($options['serviceId']);\n }\n if (!isset($options['paymentMethodId'])) {\n throw new Required('paymentMethodId');\n } else {\n $api->setPaymentProfileId($options['paymentMethodId']);\n }\n\n\n $result = $api->doRequest();\n\n return $result['request']['result'] == 1;\n }", "title": "" }, { "docid": "5deb780dda18484554dbef61718d8846", "score": "0.61400753", "text": "function setPaymentMethod($method)\n {\n $this->_payment_method = $method;\n $this->payment_method_id = $method->id;\n }", "title": "" }, { "docid": "3c92b3661dc077a38f32279081cbe887", "score": "0.61238956", "text": "public static function paymentStepDisabled()\n {\n return ! ( Config::payLocallyEnabled()\n || Config::twoCheckoutEnabled()\n || Config::authorizeNetEnabled()\n || Config::mollieEnabled()\n || Config::paysonEnabled()\n || Config::payuLatamEnabled()\n || Config::stripeEnabled()\n || Config::paypalEnabled()\n );\n }", "title": "" }, { "docid": "1446c87c32b54debb2e7467d011bac0c", "score": "0.6109407", "text": "function setPaymentMethod( $value )\r\n {\r\n if ( is_array ( $value ) )\r\n {\r\n $i = 0;\r\n foreach ( $value as $item )\r\n {\r\n if ( $i == 0 )\r\n $method = $item;\r\n else\r\n $method .= \",\" . $item;\r\n }\r\n $value = $method;\r\n }\r\n $this->PaymentMethod = $value;\r\n }", "title": "" }, { "docid": "49071314d4288184d31d7207542d7c6b", "score": "0.60444826", "text": "protected function setPaymentDataToRequest()\n {\n }", "title": "" }, { "docid": "25402951b0e81ce0c51baa3191b499e0", "score": "0.6040947", "text": "public function canCreatePaymentMethods() {\n return false;\n }", "title": "" }, { "docid": "44611c96073b5fc70753c19846902526", "score": "0.60397434", "text": "public function procUpdateShopDeactivatePaymentMethod() {\r\n\r\n $name = Context::get('name');\r\n\r\n if(!$name)\r\n {\r\n return new Object(-1, 'msg_invalid_request');\r\n }\r\n\r\n $payment_repository = new PaymentMethodRepository();\r\n $payment_method = $payment_repository->getPaymentMethod($name, $this->module_srl);\r\n\r\n\t\t\tif($payment_method->isDefault())\r\n\t\t\t{\r\n\t\t\t\treturn new Object(-1, 'msg_invalid_request');\r\n\t\t\t}\r\n\r\n $payment_method->status = 0;\r\n $payment_repository->updatePaymentMethod($payment_method);\r\n\r\n $vid = Context::get('vid');\r\n $returnUrl = getNotEncodedUrl('', 'vid', $vid, 'act', 'dispShopToolManagePaymentMethods');\r\n $this->setRedirectUrl($returnUrl);\r\n\r\n }", "title": "" }, { "docid": "cdcbec1927c5e96e219570c314d7a0fb", "score": "0.6023889", "text": "public function getPaymentMethod();", "title": "" }, { "docid": "cdcbec1927c5e96e219570c314d7a0fb", "score": "0.6023889", "text": "public function getPaymentMethod();", "title": "" }, { "docid": "cdcbec1927c5e96e219570c314d7a0fb", "score": "0.6023889", "text": "public function getPaymentMethod();", "title": "" }, { "docid": "cdcbec1927c5e96e219570c314d7a0fb", "score": "0.6023889", "text": "public function getPaymentMethod();", "title": "" }, { "docid": "6b74dda73787521036d1c3f770b6ea5e", "score": "0.600799", "text": "public function excludePaymentMethods() {\n $excludes = func_get_args();\n\n foreach ($excludes as $method) {\n if ($method == \\PaymentMethod::INVOICE) {\n $this->excludedPaymentMethods[] =\"SVEAINVOICEEU_\".$this->order->countryCode;\n $this->excludedPaymentMethods[] =\"SVEAINVOICE\".$this->order->countryCode;\n } elseif ($this->paymentMethod == \\PaymentMethod::PAYMENTPLAN) {\n $this->excludedPaymentMethods[] = \"SVEASPLITEU_\".$this->order->countryCode;\n } else {\n $this->excludedPaymentMethods[] = $method;\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "fbf573a7e3c0c48bc1a71760bdf2fdbc", "score": "0.6005634", "text": "function set_payment_method(){\n $current_user = wp_get_current_user();\n if(wpdm_query_var('method', 'txt') != ''){\n //$order = new Order($_SESSION['orderid']);\n //$order->set('payment_method', wpdm_query_var('method', 'txt'));\n //$order->save();\n Session::set('payment_method', wpdm_query_var('method', 'txt'));\n $payment = new \\WPDMPP\\Libs\\Payment();\n $payment->initiateProcessor( wpdm_query_var('method', 'txt') );\n\n ob_start();\n $billing_required = isset($payment->Processor->billing) ? (int)$payment->Processor->billing : 0;\n $billing = array();\n if(is_user_logged_in()) {\n $billing = BillingInfo::get(get_current_user_id());\n }\n // If you payment menthod requires to fill a custom form during checkout\n if(method_exists($payment->Processor, \"checkoutForm\"))\n echo $payment->Processor->checkoutForm();\n else {\n if (get_wpdmpp_option('billing_address') == 1 || wpdmpp_tax_active() || $billing_required) {\n // Ask Billing Address When Checkout\n include \\WPDM\\__\\Template::locate('checkout-cart/checkout-billing-info.php', dirname(__FILE__) . '/templates' . WPDM()->bsversion . \"/\", WPDMPP_TPL_FALLBACK);\n } else {\n // Ask only Name and Email When Checkout\n include \\WPDM\\__\\Template::locate('checkout-cart/checkout-name-email.php', dirname(__FILE__) . '/templates' . WPDM()->bsversion . \"/\", WPDMPP_TPL_FALLBACK);\n }\n }\n $billing_form = ob_get_clean();\n\n if(method_exists($payment->Processor, 'customPayButton')){\n $cb = $payment->Processor->customPayButton();\n if($cb != '')\n wp_send_json(array('button' => 'custom', 'html' => $cb, 'billing_form' => $billing_form));\n }\n wp_send_json(array('button' => 'default', 'html' => '', 'billing_form' => $billing_form));\n }\n }", "title": "" }, { "docid": "480a9cd7bdc6fc98050b688ff157ad0d", "score": "0.5991481", "text": "public function getAllowedPaymentMethods();", "title": "" }, { "docid": "7a59ab3a18be0201ea47da199e4f6067", "score": "0.597333", "text": "abstract public function setPaymentGateway(): void;", "title": "" }, { "docid": "87b31eaef1429f7aceb71f51cfd13ebf", "score": "0.5920122", "text": "public function paymentMethod(): self\n {\n $this->apiUrl = self::BASE_API.self::ENDPOINT_PAYMENT_METHOD;\n $this->returnModel = PaymentMethod::class;\n\n return $this;\n }", "title": "" }, { "docid": "ba56536c1db6037b4d034c9421f69a57", "score": "0.5890207", "text": "public function setDisabled();", "title": "" }, { "docid": "0b2402c9ededba81048a314797c98c82", "score": "0.5889407", "text": "function bbloomer_paypal_disable_manager( $available_gateways ) {\nglobal $woocommerce;\nif ( isset( $available_gateways['paytm'] ) && !current_user_can('administrator') ) {\n\tunset( $available_gateways['paytm'] );\n} \nreturn $available_gateways;\n}", "title": "" }, { "docid": "5f6acbf8f36d2134fc719c48d4e15c94", "score": "0.5867526", "text": "function definePaymentMethods();", "title": "" }, { "docid": "dc782224f7427a3cd235fcaa1e991646", "score": "0.57858354", "text": "public static function payment_method() {\n\t\tglobal $app_abbr;\n\n\t\tif ( 'yes' === get_option( $app_abbr . '_pronamic_ideal_enable' ) ) {\n\t\t\tprintf(\n\t\t\t\t'<option value=\"pronamic_ideal\">%s</option>',\n\t\t\t\t// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t\t\t\tPaymentMethods::get_name( PaymentMethods::IDEAL )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "099b93561752f91fe0829cae391c9908", "score": "0.5779963", "text": "public function disable() {\n $client = Utils\\CloudClient::getClient();\n $client->post($this->url . \"/disable\");\n }", "title": "" }, { "docid": "8203b4f95194e84f148e28955f26002e", "score": "0.576113", "text": "private function updatePaymentMethods()\n {\n $list = Mage::getModel('xpaymentsconnector/paymentconfiguration')->getCollection();\n\n $this->saveCardsActive = false;\n $this->activeCount = 0;\n\n $this->updateData = Mage::app()->getRequest()->getParam('payment_methods');\n $this->methodData = Mage::app()->getRequest()->getParam('payment_method_data');\n\n foreach ($list as $paymentConf) {\n\n // Save data for payment configuration\n $this->setActiveParamValue($paymentConf);\n $this->setSaveCardsParamValue($paymentConf);\n $this->setPaymentMethodDataParamValue($paymentConf);\n $paymentConf->save();\n\n // Update payment method\n $this->processPaymentConfMethod($paymentConf);\n }\n\n // Deactivate \"extra\" payment methods\n $this->deactivatePaymentMethods($this->activeCount + 1);\n\n // Update saved cards payment method\n $this->processSavedCardsMethod();\n }", "title": "" }, { "docid": "c86d9229a9a33b08bac3b12010eff57d", "score": "0.57386273", "text": "public function setNotForPayment($notForPayment = true)\n {\n parent::setNotForPayment($notForPayment);\n\n if ($notForPayment === true) {\n if ($this->getWithReferenceNumber() === true) {\n $this->setReferenceNumber('XXXXXXXXXXXXXXXXXXXX');\n }\n if ($this->getWithBankingCustomerId() === true) {\n $this->setBankingCustomerId('XXXXXX');\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "368907e4f7c12777923588cb7388b1b2", "score": "0.5725725", "text": "function ppp_payment_mode_select() {\r\n\t$gateways = edd_get_enabled_payment_gateways( true );\r\n\t$page_URL = edd_get_current_page_url();\r\n\tdo_action('edd_payment_mode_top'); ?>\r\n\t<?php if( edd_is_ajax_disabled() ) { ?>\r\n\t<form id=\"edd_payment_mode\" action=\"<?php echo $page_URL; ?>\" method=\"GET\">\r\n\t<?php } ?>\r\n\t\t<fieldset id=\"edd_payment_mode_select\">\r\n\t\t\t<legend>Payment Method</legend>\r\n\t\t\t<?php do_action( 'edd_payment_mode_before_gateways_wrap' ); ?>\r\n\t\t\t<div id=\"edd-payment-mode-wrap\">\r\n\t\t\t\t<?php\r\n\r\n\t\t\t\tdo_action( 'edd_payment_mode_before_gateways' );\r\n\t\t\t\t?>\r\n\t\t\t\t<label for=\"edd-gateway-paypalexpress\" class=\"edd-gateway-option edd-gateway-option-selected\" id=\"edd-gateway-option-paypalexpress\">\r\n\t\t\t\t\t<span class=\"payment-type\"><input type=\"radio\" name=\"payment-mode\" class=\"edd-gateway\" id=\"edd-gateway-paypalexpress\" value=\"paypalexpress\" checked=\"checked\" />PayPal <i class=\"fa fa-cc-paypal\" aria-hidden=\"true\"></i></span>\r\n\t\t\t\t\t<span class=\"card-info\">Pay quickly and securly with PayPal</span>\r\n\t\t\t\t</label>\r\n\t\t\t\t<label for=\"edd-gateway-stripe\" class=\"edd-gateway-option\" id=\"edd-gateway-option-stripe\">\r\n\t\t\t\t\t<span class=\"payment-type\"><input type=\"radio\" name=\"payment-mode\" class=\"edd-gateway\" id=\"edd-gateway-stripe\" value=\"stripe\" />Credit Card <i class=\"fa fa-credit-card-alt\" aria-hidden=\"true\"></i></span>\r\n\t\t\t\t\t<span class=\"card-info\">Use your Visa, Mastercard, AMEX, or Discover</span>\r\n\t\t\t\t</label>\r\n\t\t\t\t<?php\r\n\t\t\t\tdo_action( 'edd_payment_mode_after_gateways' );\r\n\r\n\t\t\t\t?>\r\n\t\t\t</div>\r\n\t\t\t<?php do_action( 'edd_payment_mode_after_gateways_wrap' ); ?>\r\n\t\t</fieldset>\r\n\t\t<fieldset id=\"edd_payment_mode_submit\" class=\"edd-no-js\">\r\n\t\t\t<p id=\"edd-next-submit-wrap\">\r\n\t\t\t\t<?php echo edd_checkout_button_next(); ?>\r\n\t\t\t</p>\r\n\t\t</fieldset>\r\n\t<?php if( edd_is_ajax_disabled() ) { ?>\r\n\t</form>\r\n\t<?php } ?>\r\n\t<div id=\"edd_purchase_form_wrap\"></div><!-- the checkout fields are loaded into this-->\r\n\t<?php do_action('edd_payment_mode_bottom');\r\n}", "title": "" }, { "docid": "262dc6e4efd87b38913df40159e9465e", "score": "0.571971", "text": "function updatePayMethod(){}", "title": "" }, { "docid": "8eb0f35233711087a1bde45174465855", "score": "0.57119095", "text": "public function setPayMethod(string $method): void {\n if ($this->isValidPayMethod($method)) {\n $this->setParam('PAYMETHOD',$method);\n }\n }", "title": "" }, { "docid": "94f8002accabb574915c309ba50663e0", "score": "0.5706131", "text": "public function asConektaPaymentMethod()\n {\n return $this->paymentMethod;\n }", "title": "" }, { "docid": "b3a550c0f3dbe7793179c11690366cbf", "score": "0.56962806", "text": "private function clearPaymentMethods()\n {\n $list = Mage::getModel('xpaymentsconnector/paymentconfiguration')->getCollection();\n\n if ($list) {\n foreach ($list as $pc) {\n\n $this->remember[$pc->getConfid()] = array(\n 'name' => $pc->getName(), \n 'module' => $pc->getModule(),\n 'hash' => $pc->getHash(),\n 'save_cards' => $pc->getSaveCards(),\n 'active' => $pc->getActive(),\n 'data' => $pc->getPaymentMethodData(),\n );\n\n $pc->delete();\n }\n }\n\n // Deactivate all payment methods\n $this->deactivatePaymentMethods();\n }", "title": "" }, { "docid": "185298354e51504217710694363044e8", "score": "0.5695359", "text": "public function disable_payment_gateway( $available_gateways ) {\r\n\t\tglobal $woocommerce;\r\n\t\t$shippingAddress = $woocommerce->customer->get_shipping_address();\r\n\t\tif( strpos($shippingAddress, 'Pack station') !== false || strpos($shippingAddress, 'Packstation') !== false ){\r\n\t\t\t// loop through all available gateways and check if disable for packstation option is true (yes)\r\n\t\t\tforeach ($available_gateways as $key => $value) {\r\n\t\t\t\tif( isset( $value->settings['tim_packstation_disable_for_packstation'] ) && 'yes' == $value->settings['tim_packstation_disable_for_packstation'] ){\r\n\t\t\t\t\tunset( $available_gateways[$key] ); // unset gateway when disable packstation option is true (yes)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn $available_gateways;\r\n\t}", "title": "" }, { "docid": "98f70a3c6ee43a686ae839d824f11709", "score": "0.5694549", "text": "public function getPaymentMethod()\n {\n return $this->paymentMethod;\n }", "title": "" }, { "docid": "0f795249e562ea1b47711ced7a944856", "score": "0.5692795", "text": "public function setDisabled(): void\n\t{\n\t}", "title": "" }, { "docid": "c22af564fdf8749e1aeaf3ce6d6caba1", "score": "0.568951", "text": "public function disable(){\r\n\t\t$this->disabled = true;\r\n\t}", "title": "" }, { "docid": "75d45032c4de64d73e780b9b87addd9e", "score": "0.5670241", "text": "public function setMethod ($request_method) {}", "title": "" }, { "docid": "97c9a005210d59f7e31131942af9d868", "score": "0.5667427", "text": "private function deactivatePaymentMethods($startSlot = 1)\n {\n $settings = Mage::helper('settings_xpc');\n\n // Deactivate \n for ($xpcSlot = $startSlot; $xpcSlot <= Cdev_XPaymentsConnector_Helper_Settings_Data::MAX_SLOTS; $xpcSlot++) {\n $settings->setPaymentConfig('active', 0, $xpcSlot);\n }\n\n // Deactivate \"Saved cards\" payment method\n $settings->setSavedCardsConfig('active', false);\n }", "title": "" }, { "docid": "f9f76486f68358ccb01324df3cf0f428", "score": "0.5651951", "text": "function setPaidBit() {\n\t\t$paymentMethod = $this->dataArr[ 'payment_method' ];\n\t\tif ('paymentMethod_RedemptionCode'==$paymentMethod || 'credit_card' == $paymentMethod ) {\n\t\t\t$this->dataArr['paid']= 1;\n\t\t}\n\t}", "title": "" }, { "docid": "255ce6375a17e4475c181cc47fc3e044", "score": "0.5641565", "text": "public function disable();", "title": "" }, { "docid": "255ce6375a17e4475c181cc47fc3e044", "score": "0.5641565", "text": "public function disable();", "title": "" }, { "docid": "255ce6375a17e4475c181cc47fc3e044", "score": "0.5641565", "text": "public function disable();", "title": "" }, { "docid": "7b0b63d2a9a4af9aca26efda08e24be3", "score": "0.5641344", "text": "protected function setBasePaymentToRequest()\n {\n if ($this->isGenericRequest()) {\n $this->setParam('request', 'genericpayment');\n } else {\n $this->setParam('request', $this->getPayment()->getRequestType());\n }\n\n $this->setParam('mode', $this->getConnectionMode());\n $this->setParam('clearingtype', $this->getPayment()->getClearingType());\n $this->setParam('reference', $this->getReference());\n $this->setParam('amount', $this->getOrderTotal());\n $this->setParam('currency', $this->getCurrency()->iso_code);\n }", "title": "" }, { "docid": "4c411b5bda3146bb3ebeb9218b79b619", "score": "0.5639566", "text": "public function disabled();", "title": "" }, { "docid": "4c411b5bda3146bb3ebeb9218b79b619", "score": "0.5639566", "text": "public function disabled();", "title": "" }, { "docid": "a57cbc7769074d10808e7a038d16daab", "score": "0.5634704", "text": "public function onChangePaymentMethod()\n {\n $rules = [\n 'id' => 'required|exists:offline_mall_payment_methods,id',\n ];\n\n $validation = Validator::make(post(), $rules);\n if ($validation->fails()) {\n throw new ValidationException($validation);\n }\n\n $id = post('id');\n\n $method = PaymentMethod::find($id);\n $this->cart->setPaymentMethod($method);\n $this->setData();\n\n return $this->updateForm(\n [\n 'method' => $method,\n ]\n );\n }", "title": "" }, { "docid": "3fefb768618cc1278bb0f01764c898fb", "score": "0.56330913", "text": "protected function _getPaymentMethodCode() {\r\n return self::PAYMENT_METHOD_CODE;\r\n }", "title": "" }, { "docid": "193cf17c73e758d72b076afc516a9130", "score": "0.5599172", "text": "protected function isSavedCardsPaymentMethod()\n {\n return false;\n }", "title": "" }, { "docid": "828be3669b2eebc89ddb445cf7c51730", "score": "0.559556", "text": "public static function onDeactivate()\n {\n $oPayment = oxNew('oxpayment');\n $aPayments = array('novalnetcreditcard', 'novalnetsepa', 'novalnetinvoice', 'novalnetprepayment', 'novalnetonlinetransfer', 'novalnetideal', 'novalnetpaypal', 'novalneteps', 'novalnetgiropay', 'novalnetprzelewy24','novalnetbarzahlen');\n\n $oDb = oxDb::getDb();\n $oDb->execute('DELETE FROM oxconfig where OXVARNAME = \"aNovalnetConfig\"');\n // deactivates the payment while uninstalling our module\n foreach ($aPayments as $aPayment) {\n if ($oPayment->load($aPayment)) {\n $oPayment->oxpayments__oxactive = new oxField(0);\n $oPayment->save();\n }\n }\n }", "title": "" }, { "docid": "48cd170ee6685e6c5cb511dec9bda611", "score": "0.55787224", "text": "public function testSetPaymentMethodInvalidUrls()\n {\n $cartId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');\n\n $query\n = <<<QUERY\n mutation {\n setPaymentMethodOnCart(input: {\n cart_id: \"$cartId\"\n payment_method: {\n code: \"$this->paymentMethod\"\n hosted_pro: {\n cancel_url:\"http://mysite.com/paypal/hostedpro/customCancel\"\n return_url:\"http://mysite.com/paypal/hostedpro/customReturnUrl\"\n }\n }\n }) {\n cart {\n selected_payment_method {\n code\n }\n }\n }\n}\nQUERY;\n\n $expectedExceptionMessage = 'Invalid Url.';\n\n $response = $this->graphQlRequest->send($query);\n $responseData = $this->json->unserialize($response->getContent());\n $this->assertArrayHasKey('errors', $responseData);\n $actualError = $responseData['errors'][0];\n $this->assertEquals($expectedExceptionMessage, $actualError['message']);\n $this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);\n }", "title": "" }, { "docid": "b8d5f7d9a1fafbff9f727d814399bf22", "score": "0.5533577", "text": "public function disableMethodRoute(string $methodName): self\n {\n $this->delegate->tag(self::DOMAIN_MESSAGING_ROUTING_DISABLED_METHOD_TAG, ['name' => $methodName]);\n return $this;\n }", "title": "" }, { "docid": "29caeba6af480f796167ad4c28a3f0bd", "score": "0.5526731", "text": "public function disable(): void;", "title": "" }, { "docid": "fbc032b558cf648568345100742031bd", "score": "0.55237854", "text": "public function setPaymentMethod(PaymentMethodInterface $paymentType);", "title": "" }, { "docid": "b1d789a6c8d2acdf7cf4592415a85f2f", "score": "0.5505972", "text": "public function disableNextRequest() {\n $this->disabledForNextOnly = true;\n return $this;\n }", "title": "" }, { "docid": "281e30fd8a9a69261a9dbe760a57a31c", "score": "0.5492568", "text": "function _paymentMethods( $field='offline_payment_method', $default='', $options='' )\n {\n $types = array();\n if ($this->params->get('enable_check')) {\n $types[] = JHTML::_('select.option', 'check', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_CHECK') ); \n }\n if ($this->params->get('enable_moneyorder')) {\n $types[] = JHTML::_('select.option', 'moneyorder', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_MONEYORDER') ); \n }\n if ($this->params->get('enable_cash')) {\n $types[] = JHTML::_('select.option', 'cash', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_CASH') ); \n }\n if ($this->params->get('enable_wire')) {\n $types[] = JHTML::_('select.option', 'wire', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_WIRE') ); \n }\n if ($this->params->get('enable_invoice')) {\n $types[] = JHTML::_('select.option', 'invoice', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_INVOICE') ); \n }\n if ($this->params->get('enable_other')) {\n $types[] = JHTML::_('select.option', 'other', JText::_('PLG_TIENDA_PAYMENT_OFFLINE_OFFLINE_PAYMENT_OTHER') ); \n } \n $return = JHTML::_('select.genericlist', $types, $field, $options, 'value','text', $default);\n return $return;\n }", "title": "" }, { "docid": "0fb72bd2d28e71ff3f3543432b9d95f8", "score": "0.54552543", "text": "public function getUnacceptablePaymentType()\n {\n return $this->unacceptablePaymentType;\n }", "title": "" }, { "docid": "5052827adc952243caa957a3ff0ca3bd", "score": "0.54546416", "text": "public static function addNovalnetPaymentMethods()\n {\n $aPayments = array( 'novalnetcreditcard' => array( 'OXID' => 'novalnetcreditcard',\n 'OXDESC_DE' => 'Kreditkarte',\n 'OXDESC_EN' => 'Credit Card',\n 'OXLONGDESC_DE' => 'Der Betrag wird von Ihrer Kreditkarte abgebucht, sobald die Bestellung abgeschickt wird',\n 'OXLONGDESC_EN' => 'The amount will be debited from your credit card once the order is submitted'\n ),\n 'novalnetsepa' => array( 'OXID' => 'novalnetsepa',\n 'OXDESC_DE' => 'Lastschrift SEPA',\n 'OXDESC_EN' => 'Direct Debit SEPA',\n 'OXLONGDESC_DE' => 'Ihr Konto wird nach Abschicken der Bestellung belastet',\n 'OXLONGDESC_EN' => 'Your account will be debited upon the order submission'\n ),\n 'novalnetinvoice' => array( 'OXID' => 'novalnetinvoice',\n 'OXDESC_DE' => 'Kauf auf Rechnung',\n 'OXDESC_EN' => 'Invoice',\n 'OXLONGDESC_DE' => 'Nachdem Sie die Bestellung abgeschickt haben, erhalten Sie eine Email mit den Bankdaten, um die Zahlung durchzuführen.',\n 'OXLONGDESC_EN' => 'Once you\\'ve submitted the order, you will receive an e-mail with account details to make payment'\n ),\n 'novalnetprepayment' => array( 'OXID' => 'novalnetprepayment',\n 'OXDESC_DE' => 'Vorauskasse',\n 'OXDESC_EN' => 'Prepayment',\n 'OXLONGDESC_DE' => 'Nachdem Sie die Bestellung abgeschickt haben, erhalten Sie eine Email mit den Bankdaten, um die Zahlung durchzuführen',\n 'OXLONGDESC_EN' => 'Once you\\'ve submitted the order, you will receive an e-mail with account details to make payment'\n ),\n 'novalnetonlinetransfer' => array( 'OXID' => 'novalnetonlinetransfer',\n 'OXDESC_DE' => 'Sofort',\n 'OXDESC_EN' => 'Instant Bank Transfer',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ),\n 'novalnetideal' => array( 'OXID' => 'novalnetideal',\n 'OXDESC_DE' => 'iDEAL',\n 'OXDESC_EN' => 'iDEAL',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ),\n 'novalnetpaypal' => array( 'OXID' => 'novalnetpaypal',\n 'OXDESC_DE' => 'PayPal',\n 'OXDESC_EN' => 'PayPal',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ),\n 'novalneteps' => array( 'OXID' => 'novalneteps',\n 'OXDESC_DE' => 'eps',\n 'OXDESC_EN' => 'eps',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ), \n 'novalnetgiropay' => array( 'OXID' => 'novalnetgiropay',\n 'OXDESC_DE' => 'giropay',\n 'OXDESC_EN' => 'giropay',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ),\n 'novalnetprzelewy24' => array( 'OXID' => 'novalnetprzelewy24',\n 'OXDESC_DE' => 'Przelewy24',\n 'OXDESC_EN' => 'Przelewy24',\n 'OXLONGDESC_DE' => 'Nach der erfolgreichen Überprüfung werden Sie auf die abgesicherte Novalnet-Bestellseite umgeleitet, um die Zahlung fortzusetzen',\n 'OXLONGDESC_EN' => 'After the successful verification, you will be redirected to Novalnet secure order page to proceed with the payment'\n ),\n 'novalnetbarzahlen' => array( 'OXID' => 'novalnetbarzahlen',\n 'OXDESC_DE' => 'Barzahlen',\n 'OXDESC_EN' => 'Barzahlen',\n 'OXLONGDESC_DE' => 'Mit Abschluss der Bestellung bekommen Sie einen Zahlschein angezeigt, den Sie sich ausdrucken oder auf Ihr Handy schicken lassen können. Bezahlen Sie den Online-Einkauf mit Hilfe des Zahlscheins an der Kasse einer Barzahlen-Partnerfiliale.',\n 'OXLONGDESC_EN' => 'After completing your order you get a payment slip from Barzahlen that you can easily print out or have it sent via SMS to your mobile phone. With the help of that payment slip you can pay your online purchase at one of our retail partners (e.g. supermarket)'\n )\n );\n $oLangArray = oxRegistry::getLang()->getLanguageArray();\n // inserts all the payments in shop\n foreach ($aPayments as $aPayment) {\n $oPayment = oxNew('oxPayment');\n $oPayment->setEnableMultilang(false);\n if (!$oPayment->load($aPayment['OXID'])) {\n $oPayment->setId($aPayment['OXID']);\n $oPayment->oxpayments__oxid = new oxField($aPayment['OXID'], oxField::T_RAW);\n $oPayment->oxpayments__oxaddsumrules = new oxField('31', oxField::T_RAW);\n $oPayment->oxpayments__oxtoamount = new oxField('1000000', oxField::T_RAW);\n $oPayment->oxpayments__oxtspaymentid = new oxField('', oxField::T_RAW);\n foreach ($oLangArray as $oLang) {\n $sTag = oxRegistry::getLang()->getLanguageTag($oLang->id);\n\n // Sets description and title for the payments\n if ($oLang->abbr == 'de') {\n $oPayment->{'oxpayments__oxdesc' . $sTag} = new oxField($aPayment['OXDESC_DE'], oxField::T_RAW);\n $oPayment->{'oxpayments__oxlongdesc' . $sTag} = new oxField($aPayment['OXLONGDESC_DE'], oxField::T_RAW);\n } else {\n $oPayment->{'oxpayments__oxdesc' . $sTag} = new oxField($aPayment['OXDESC_EN'], oxField::T_RAW);\n $oPayment->{'oxpayments__oxlongdesc' . $sTag} = new oxField($aPayment['OXLONGDESC_EN'], oxField::T_RAW);\n }\n }\n $oPayment->save();\n } else {\n $oPayment->oxpayments__oxactive = new oxField(1);\n $oPayment->oxpayments__oxvaldesc = new oxField('');\n $oPayment->oxpayments__oxvaldesc_1 = new oxField('');\n foreach ($oLangArray as $oLang) {\n $sTag = oxRegistry::getLang()->getLanguageTag($oLang->id);\n\n // Sets description and title for the payments\n if ($oLang->abbr == 'de') {\n $oPayment->{'oxpayments__oxdesc' . $sTag} = new oxField($aPayment['OXDESC_DE'], oxField::T_RAW);\n $oPayment->{'oxpayments__oxlongdesc' . $sTag} = new oxField($aPayment['OXLONGDESC_DE'], oxField::T_RAW);\n } else {\n $oPayment->{'oxpayments__oxdesc' . $sTag} = new oxField($aPayment['OXDESC_EN'], oxField::T_RAW);\n $oPayment->{'oxpayments__oxlongdesc' . $sTag} = new oxField($aPayment['OXLONGDESC_EN'], oxField::T_RAW);\n }\n }\n $oPayment->save();\n }\n unset($oPayment);\n }\n }", "title": "" }, { "docid": "50ca7be145dc475f16bbcea436b90c4c", "score": "0.54428643", "text": "function payment_premium_off($id) {\n ModelPayment::newInstance()->premiumOff($id);\n }", "title": "" }, { "docid": "780fed6588b2766f51d87747303e1c91", "score": "0.5433768", "text": "public static function disable()\n {\n self::$disabled = true;\n }", "title": "" }, { "docid": "a0fcc2c40b6f22a8a9e7dff2e3d051d9", "score": "0.542792", "text": "function setDisable( $disable ) { $this->disable = $disable; }", "title": "" }, { "docid": "fd8bf285b693898817b372bf17b5012c", "score": "0.5421244", "text": "protected function setNoCarrier(){\n $context = JeproshopContext::getContext();\n $context->cart->setDeliveryOption(null);\n $context->cart->update();\n }", "title": "" }, { "docid": "201a7f7073d1640536bd153411e4bb74", "score": "0.54153985", "text": "public function allowedPayMethods(array $methods): void {\n if (!empty($validMethods = array_filter($methods, [$this, \"isValidPayMethod\"]))) {\n $this->setParam('PAYMETHODS', implode(\",\", $validMethods));\n }\n }", "title": "" }, { "docid": "50f85ad2d31c91f78544ef1e80f54310", "score": "0.5391502", "text": "function selectpaymentMethod()\n {\n global $CFG, $admin_smarty;\n\n if ($_POST['changestatusval'] == 'Yes')\n {\n\n $ins = \"INSERT INTO \n\t\t\t\t\t\t\t\t\" . $CFG['table']['restaurant_choose_paymentoption'] . \" \n\t\t\t\t\t\t\tSET \n\t\t\t\t\t\t\t\trestaurant_id = '\" . $this->filterInput($_POST['resid']) . \"',\n\t\t\t\t\t\t\t\tpaymentoption = '\" . $this->filterInput($_POST['maincateid']) . \"',\n\t\t\t\t\t\t\t\tpaymentmethod = '\" . $this->filterInput($_POST['changestatusval']) . \"',\n\t\t\t\t\t\t\t\taddeddate = '\" . CUR_TIME . \"' \";\n $res = $this->ExecuteQuery($ins, 'insert');\n echo 'success';\n } else\n {\n\n $del = \"DELETE FROM \" . $CFG['table']['restaurant_choose_paymentoption'] .\n \" WHERE restaurant_id = '\" . $this->filterInput($_POST['resid']) . \"' AND paymentoption = '\" . $this->filterInput($_POST['maincateid']) .\n \"'\";\n $res = $this->ExecuteQuery($del, 'delete');\n echo 'success';\n }\n }", "title": "" }, { "docid": "2a8cea7c315a72ad6b5c929ada32a6ae", "score": "0.53895444", "text": "function getPaymentMethods(){\n\t\treturn array(1=>'Mobile Money',2=>'Cash', 3=>'Cheque', 4=>'Other');\n\t}", "title": "" }, { "docid": "5868eb0e282742afce1b5367e651e8b1", "score": "0.5380404", "text": "public function getPaymentMethodType()\r\n {\r\n return $this->_paymentMethod;\r\n }", "title": "" }, { "docid": "ecfa2d861ff666c0af32a267d8ced5fd", "score": "0.5376418", "text": "private function disableBraintree()\n {\n $enablers = $this->braintreeConfigBlock->getEnablerFields();\n $this->braintreeConfigBlock->clickConfigureButton();\n $this->assertFieldsAreActive->processAssert($this->systemConfigEditSectionPayment, $enablers);\n $this->assertFieldsAreEnabled->processAssert(\n $this->systemConfigEditSectionPayment,\n [$enablers['Enable this Solution']]\n );\n $this->braintreeConfigBlock->disableBraintree();\n $this->assertFieldsAreActive->processAssert($this->systemConfigEditSectionPayment, $enablers);\n $this->systemConfigEditSectionPayment->getPageActions()->save();\n $this->systemConfigEditSectionPayment->getMessagesBlock()->waitSuccessMessage();\n }", "title": "" }, { "docid": "e87f8d2908897f13165f3fcae2521bc4", "score": "0.5376084", "text": "public function isDisallowedHttpMethod()\n {\n return $this->status === self::HTTP_METHOD_NOT_ALLOWED;\n }", "title": "" }, { "docid": "dd52e4791a602db5272ee6f5bf8b02fe", "score": "0.53721565", "text": "function payment_gateway_disable_country( $available_gateways ) {\n\tglobal $woocommerce;\n\tif ( is_admin() ) return;\n\tif ( isset( $available_gateways['cod'] ) && $woocommerce->customer->get_billing_country() <> 'RS' ) {\n\t\tunset( $available_gateways['cod'] );\n\t} elseif (isset( $available_gateways['cheque'] ) && $woocommerce->customer->get_billing_country() <> 'RS'){\n\t\tunset( $available_gateways['cheque'] );\n\t} elseif (isset( $available_gateways['wc_payment_asseco'] ) && $woocommerce->customer->get_billing_country() <> 'RS'){\n unset( $available_gateways['wc_payment_asseco'] );\n } elseif (isset( $available_gateways['bacs'] ) && $woocommerce->customer->get_billing_country() <> 'RS'){\n unset( $available_gateways['bacs'] );\n }/* else if ( isset( $available_gateways['paypal'] ) && $woocommerce->customer->get_billing_country() == 'US' ) {\n\tunset( $available_gateways['paypal'] );*/\n\t//}\n\treturn $available_gateways;\n}", "title": "" }, { "docid": "beeb995db2adce86bf06f354401d2798", "score": "0.5366687", "text": "public function submit_offline_payment(Request $request)\n {\n $order = Order::findOrFail($request->order_id);\n\n if($request->name != null && $request->amount != null && $request->trx_id != null){\n $data['name'] = $request->name;\n $data['amount'] = $request->amount;\n $data['trx_id'] = $request->trx_id;\n $data['photo'] = $request->photo;\n }\n else {\n flash(translate('Please fill all the fields'))->warning();\n return back();\n }\n\n $order->manual_payment_data = json_encode($data);\n $order->payment_type = $request->payment_option;\n $order->payment_status = 'Submitted';\n $order->manual_payment = 1;\n\n $order->save();\n\n // if (BusinessSetting::where('type', 'category_wise_commission')->first()->value != 1) {\n // $commission_percentage = BusinessSetting::where('type', 'vendor_commission')->first()->value;\n // foreach ($order->orderDetails as $key => $orderDetail) {\n // $orderDetail->payment_status = 'paid';\n // $orderDetail->save();\n // if($orderDetail->product->user->user_type == 'seller'){\n // $seller = $orderDetail->product->user->seller;\n // $seller->admin_to_pay = $seller->admin_to_pay + ($orderDetail->price*(100-$commission_percentage))/100;\n // $seller->save();\n // }\n // }\n // }\n // else{\n // foreach ($order->orderDetails as $key => $orderDetail) {\n // $orderDetail->payment_status = 'paid';\n // $orderDetail->save();\n // if($orderDetail->product->user->user_type == 'seller'){\n // $commission_percentage = $orderDetail->product->category->commision_rate;\n // $seller = $orderDetail->product->user->seller;\n // $seller->admin_to_pay = $seller->admin_to_pay + ($orderDetail->price*(100-$commission_percentage))/100;\n // $seller->save();\n // }\n // }\n // }\n\n flash(translate('Your payment data has been submitted successfully'))->success();\n return redirect()->route('home');\n }", "title": "" }, { "docid": "a8960f418a7283cb7f6f3bec2011d7cc", "score": "0.5363311", "text": "protected function registerPaymentOption()\n {\n $payment = new CardPayment();\n Payment::put($payment);\n }", "title": "" }, { "docid": "4aea1c7a39c46216293b9d39de3cafbd", "score": "0.53553146", "text": "function hide_standard_shipping_when_free_is_available( $available_methods ) {\r\nif( isset( $available_methods['free_shipping'] ) AND isset( $available_methods['flat_rate'] ) ) {\r\n \r\n\t// remove standard shipping option\r\n\tunset( $available_methods['flat_rate'] );\r\n\t}\r\n\t \r\n\treturn $available_methods;\r\n}", "title": "" }, { "docid": "ee0bcd773f051fa71c5cb3c5883e7f15", "score": "0.53324425", "text": "public function getPaymentMethodCode()\n {\n return ConfigProvider::CODE;\n }", "title": "" }, { "docid": "519fc4fa4ab11a27ffc5cdceaead3b40", "score": "0.5326542", "text": "public function savePaymentMethodAction()\r\n {\r\n if ($this->_expireAjax()) {\r\n return;\r\n }\r\n $result = array(\r\n 'success' => true,\r\n 'messages' => array(),\r\n 'blocks' => array(),\r\n 'grand_total' => \"\"\r\n );\r\n try {\r\n if ($this->getRequest()->isPost()) {\r\n $data = $this->getRequest()->getPost('payment', array());\r\n\r\n $session = Mage::getSingleton('checkout/session');\r\n $saveResult = $this->getOnepage()->savePayment($data);\r\n if (isset($saveResult['error'])) {\r\n $result['success'] = false;\r\n $result['messages'][] = $saveResult['message'];\r\n }\r\n $this->getOnepage()->getQuote()->collectTotals()->save();\r\n $result['blocks'] = $this->getUpdater()->getBlocks();\r\n $result['grand_total'] = Mage::helper('onestepcheckout')->getGrandTotal($this->getOnepage()->getQuote());\r\n } else {\r\n $result['success'] = false;\r\n $result['messages'][] = $this->__('Please specify payment method.');\r\n }\r\n } catch (Exception $e) {\r\n Mage::logException($data);\r\n $result['success'] = false;\r\n $result['error'][] = $this->__('Unable to set Payment Method.');\r\n }\r\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\r\n }", "title": "" }, { "docid": "56de7aa56698e14fbfaded7edc96a906", "score": "0.53243583", "text": "public function disable_option_from_rest( $request ) {\n\t\t// Get the option key.\n\t\t$key = $this->validate_and_get_option_value( $request, 'option_key' );\n\t\t$is_network = $this->validate_and_get_option_value( $request, 'is_multisite', false );\n\t\t$result = Options::disable_option( $key, $is_network );\n\n\t\t// Disable the option.\n\t\treturn wp_send_json(\n\t\t\tarray(\n\t\t\t\t'success' => $result,\n\t\t\t\t'data' => array(\n\t\t\t\t\t'message' => $this->options->get_response_message( $result, $key, false ),\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "bdad9ce93ed99fbc30b44b9c2c71e869", "score": "0.5314683", "text": "public function activatePaymentMethod($paymentMethod)\n {\n $this->amOnPage($this->getLocator()->page->payments);\n\n $paymentMethodTab = 'payments_tab_' . strtolower($paymentMethod);\n\n $this->preparedSeeElement($this->getLocator()->$paymentMethodTab->slider_disabled);\n $this->preparedClick($this->getLocator()->$paymentMethodTab->slider_disabled);\n $this->preparedSeeElement($this->getLocator()->$paymentMethodTab->slider_enabled);\n\n $this->preparedClick($this->getLocator()->$paymentMethodTab->set_up);\n\n $paymentMethodPage = 'payments_' . strtolower($paymentMethod);\n $this->waitUntil(60, [$this, 'waitUntilPageLoaded'], [$this->getLocator()->page->$paymentMethodPage]);\n }", "title": "" }, { "docid": "9e663f91a464443c4af75f8ed1c367e5", "score": "0.5307224", "text": "protected function getPaymentMethod() {\n \n \t // Payment Methods\n\t\t\t$method_data = array();\n \n $total = 0;\n\n\t\t\t$this->load->model('extension/extension');\n\n\t\t\t$results = $this->model_extension_extension->getExtensions('payment');\n \n $address = array(\n \n 'firstname' => '',\n 'lastname' => '',\n 'company' => '',\n 'address_1' => '',\n 'address_2' => '',\n 'postcode' => '',\n 'city' => 'Днепр',\n 'country_id' => $this->value['country_id'],\n 'zone_id' => $this->value['zone_id']\n \n );\n\n\t\t\t$recurring = $this->cart->hasRecurringProducts();\n \n $i = 0;\n \n\t\t\tforeach ($results as $result) {\n\t\t\t\tif ($this->config->get($result['code'] . '_status') && strtolower(strval($result['code'])) == 'quick') {\n\t\t\t\t\t$this->load->model('payment/' . $result['code']);\n\n\t\t\t\t\t$method = $this->{'model_payment_' . $result['code']}->getMethod($address, $total);\n\n\t\t\t\t\tif ($method) {\n\t\t\t\t\t\tif ($recurring) {\n\t\t\t\t\t\t\tif (method_exists($this->{'model_payment_' . $result['code']}, 'recurringPayments') && $this->{'model_payment_' . $result['code']}->recurringPayments()) {\n\t\t\t\t\t\t\t\t$method_data[$i] = $method;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$method_data[$i] = $method;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n \n $i++;\n\t\t\t}\n\n\t\t\t$sort_order = array();\n \n \n\n\t\t\tforeach ($method_data as $key => $value) {\n\t\t\t\t$sort_order[$key] = $value['sort_order'];\n \n\t\t\t}\n\n\t\t\tarray_multisort($sort_order, SORT_ASC, $method_data);\n \n if (is_array($method_data)) {\n \n $this->value['payment_methods'] = $method_data;\n } else {\n \n $this->value['payment_methods'] = array();\n }\n\n\t\t\t\n \n \n }", "title": "" }, { "docid": "abc2eabc94ffb196d69e7494757ee154", "score": "0.53062564", "text": "public function disable() {\n\t\t$this->mDisabled = true;\n\t}", "title": "" }, { "docid": "3d0e4a26aa63e2cb2c9383671f4b2f43", "score": "0.53021413", "text": "public function getPaymentMethod()\n {\n return $this->_data['payment_method'];\n }", "title": "" }, { "docid": "c4b191d0432bac828c4b1a3e278bf979", "score": "0.5300884", "text": "private function _savePaymentMethod(UserPaymentMethod $userPaymentMethod) {\n\t\t$userPaymentMethod->attributes = Yii::app()->request->getPost('UserPaymentMethod');\n\n\t\t\t#Intermediary bank option is not setted for the first line.\n\t\t$data = Yii::app()->request->getPost('UserPaymentMethod');\n\t\t$userPaymentMethod->intermediary_bank_option = $data['intermediary_bank_option'];\n\n\t\t// if it is ajax validation request\n\t\tif (Yii::app()->request->isAjaxRequest) {\n\t\t\techo CActiveForm::validate($userPaymentMethod);\n\t\t\tYii::app()->end();\n\t\t}\n\n\t\t/**\n\t\t * Set money booker id as NULL if user has changed the\n\t\t * payment method\n\t\t */\n\t\tif(!$userPaymentMethod->isMoneyBookers())\n\t\t\t$userPaymentMethod->money_bookers_id = NULL;\n\n\t\t/**\n\t\t * Set bank attributes as NULL if user has changed the\n\t\t * payment method\n\t\t */\n\t\tif(!$userPaymentMethod->isWiretransfer()) {\n\t\t\t$userPaymentMethod->bank_name = NULL;\n\t\t\t$userPaymentMethod->bank_address = NULL;\n\t\t\t$userPaymentMethod->bank_swift_code = NULL;\n\t\t\t$userPaymentMethod->bank_account_number = NULL;\n\t\t\t$userPaymentMethod->intermediary_bank_option = 0;\n\t\t\t$userPaymentMethod->intermediary_bank_name = NULL;\n\t\t\t$userPaymentMethod->intermediary_bank_address = NULL;\n\t\t\t$userPaymentMethod->intermediary_bank_swift_code = NULL;\n\t\t\t$userPaymentMethod->intermediary_bank_account_number = NULL; \n\t\t}\n\n\t\t$save = true;\n\t\tif($userPaymentMethod->isWiretransfer()) $save = false;\n\t\tif($userPaymentMethod->isNoPayment()) $save = false;\n\n\t\tif($userPaymentMethod->save($save)) {\n\t\t\tYii::app()->user->setFlash('success', 'Payment Method Saved Successfully');\n\n\t\t\t$this->redirect($this->createUrl('index') . '#method_of_payment');\n\t\t}\n\n\t\tYii::app()->end();\n\t}", "title": "" }, { "docid": "d4fdae394e65af3f6c9f80a267b823f5", "score": "0.52989614", "text": "public function getPaymentMethodCallback();", "title": "" }, { "docid": "9c0c6070684242e900c2a8480229f793", "score": "0.52980924", "text": "public function removeCardPaymentOption()\n {\n // @todo\n }", "title": "" }, { "docid": "7ef48bd159ac21d4376f9f3202076962", "score": "0.52812994", "text": "public function getForbidEnableNote(\\XLite\\Model\\Payment\\Method $method)\n {\n $result = parent::getForbidEnableNote($method);\n\n if (Paypal\\Main::PP_METHOD_PPA === $method->getServiceName()) {\n $result = 'This payment method cannot be enabled together with PayPal Payments Standard method';\n }\n\n return $result;\n }", "title": "" }, { "docid": "9a57a98a5b60b05a7d2adcf3448b27f7", "score": "0.5280512", "text": "function cp_action_payment_method() {\n\tdo_action( 'cp_action_payment_method' );\n}", "title": "" }, { "docid": "cd65597fcdbf38cc490f2379eeb3d9b8", "score": "0.52760285", "text": "public static function disable(): void\n {\n self::$isEnabled = false;\n }", "title": "" }, { "docid": "c6895d38a68028140572ed5accf71e00", "score": "0.52752143", "text": "public function getPaymentMethodType()\n {\n return $this->_paymentMethod;\n }", "title": "" }, { "docid": "388ea8f20ca4ab42755b623570428bfa", "score": "0.52746516", "text": "protected function getPaymentMethods()\n {\n return $this->paymentMethodsConfig->toOptionArray();\n }", "title": "" }, { "docid": "364dbce28020422914ea927fb4e88524", "score": "0.526253", "text": "public static function disable() {\n\n\t\t// Use the skip-next cookie to stop Freezer from creating caches\n\t\tself::makeSkipNextCookie();\n\n\t\t// Set a session variable to prevent Freezer from clearing the skip-next cookie\n\t\tstatic::$app->make('session')->put(self::DISABLE_KEY, true);\n\t}", "title": "" }, { "docid": "153ba90c6a9e4855eb9544734b9530dc", "score": "0.5259404", "text": "public function patchPayment(Varien_Event_Observer $observer)\n {\n try {\n $quote = $observer->getEvent()->getQuote();\n if (\n !Mage::getSingleton('customer/session')->getPayPalPaymentPatched()\n && $quote->getPayment()\n && $quote->getPayment()->getMethodInstance()->getCode() == Iways_PayPalPlus_Model_Payment::METHOD_CODE\n ) {\n Mage::getModel('iways_paypalplus/api')->patchPayment($quote);\n }\n } catch (Exception $ex) {\n if ($ex->getMessage() != 'The requested Payment Method is not available.') {\n Mage::logException($ex);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "6c4ddad0c0ad39dcce0c856edd3600c9", "score": "0.5253297", "text": "public function saveShippingMethodAction()\n {\n if ($this->_expireAjax()) {\n return;\n }\n if ($this->getRequest()->isPost()) {\n $data = $this->getRequest()->getPost('shipping_method', '');\n\n $pargoAddress = Mage::app()->getRequest()->getParams();\n $pargoHelper = Mage::helper('pargo');\n $pargoHelper->setShipping($pargoAddress);\n $pargoMethod = $pargoHelper->getShippingCode() . \"_\" . $pargoHelper->getShippingMethod();\n $pargoSession = $pargoHelper->getShipping();\n if ($data == $pargoMethod && !isset($pargoSession['pargo'])) {\n // pargo shipping method was selected but no address was chosen\n $result['goto_section'] = 'shipping_method';\n $result['update_section'] = array(\n 'name' => 'shipping-method',\n 'html' => $pargoHelper->showMessage('error', 'Please choose a Pargo pickup point from the map.') . $this->_getShippingMethodsHtml() . $this->_getPargoHtml()\n );\n } else {\n $result = $this->getOnepage()->saveShippingMethod($data);\n // $result will contain error data if shipping method is empty\n if (!$result) {\n Mage::dispatchEvent(\n 'checkout_controller_onepage_save_shipping_method',\n array(\n 'request' => $this->getRequest(),\n 'quote' => $this->getOnepage()->getQuote()));\n $this->getOnepage()->getQuote()->collectTotals();\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n\n $result['goto_section'] = 'payment';\n $result['update_section'] = array(\n 'name' => 'payment-method',\n 'html' => $this->_getPaymentMethodsHtml()\n );\n }\n\n $this->getOnepage()->getQuote()->collectTotals()->save();\n }\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n }\n }", "title": "" }, { "docid": "fb087cef4a456fb996be2e4cb7081b3d", "score": "0.52519417", "text": "public function procShopToolSetShippingMethodAsDefault()\r\n\t\t{\r\n\t\t\t$name = Context::get('name');\r\n\t\t\tif(!$name)\r\n\t\t\t{\r\n\t\t\t\treturn new Object(-1, 'msg_invalid_request');\r\n\t\t\t}\r\n\r\n\t\t\t$shipping_repository = new ShippingMethodRepository();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$shipping_repository->setDefault($name, $this->module_srl);\r\n\t\t\t\t$this->setMessage('success_registed');\r\n\t\t\t}\r\n\t\t\tcatch(ArgumentException $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage($e->getMessage());\r\n\t\t\t}\r\n\t\t\tcatch(DbQueryException $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage('db_query_failed');\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e)\r\n\t\t\t{\r\n\t\t\t\t$this->setError(-1);\r\n\t\t\t\t$this->setMessage('fail_to_update');\r\n\t\t\t}\r\n\r\n\t\t\t$vid = Context::get('vid');\r\n\t\t\t$returnUrl = getNotEncodedUrl('', 'vid', $vid, 'act', 'dispShopToolManageShippingMethods');\r\n\t\t\t$this->setRedirectUrl($returnUrl);\r\n\t\t}", "title": "" }, { "docid": "94b53573ade0c13ee35f9f6233568b9d", "score": "0.524364", "text": "public function getPaymentMethod()\n {\n $paymentMethods = $this->paymentMethodRepository->allForPlugin('plenty_novalnet');\n\n if( !is_null($paymentMethods) )\n {\n foreach($paymentMethods as $paymentMethod)\n {\n if($paymentMethod->paymentKey == 'NOVALNET')\n {\n return $paymentMethod->id;\n }\n }\n }\n return 'no_paymentmethod_found';\n }", "title": "" }, { "docid": "8fa778ba85b959c353e2a5376be4efae", "score": "0.5215018", "text": "private function updatePaymentMethod(PaymentMethodConfiguration $paymentMethod){\n\t\t$newMethod = false;\n\t\t\n\t\t$payment = oxNew(\\OxidEsales\\Eshop\\Application\\Model\\Payment::class);\n\t\t/* @var $payment \\OxidEsales\\Eshop\\Application\\Model\\Payment */\n\t\tif (!$payment->load(self::getOxPaymentId($paymentMethod->getId()))) {\n\t\t\t$payment->setId(self::getOxPaymentId($paymentMethod->getId()));\n\t\t\t$payment->oxpayments__oxactive = new \\OxidEsales\\Eshop\\Core\\Field(1);\n\t\t\t$payment->oxpayments__oxaddsum = new \\OxidEsales\\Eshop\\Core\\Field(0);\n\t\t\t$payment->oxpayments__oxaddsumtype = new \\OxidEsales\\Eshop\\Core\\Field('abs');\n\t\t\t$payment->oxpayments__oxfromboni = new \\OxidEsales\\Eshop\\Core\\Field(0);\n\t\t\t$payment->oxpayments__oxfromamount = new \\OxidEsales\\Eshop\\Core\\Field(0);\n\t\t\t$payment->oxpayments__oxtoamount = new \\OxidEsales\\Eshop\\Core\\Field(100000);\n\t\t\t$newMethod = true;\n\t\t}\n\t\t\n\t\t$payment->oxpayments__oxsort = new \\OxidEsales\\Eshop\\Core\\Field($paymentMethod->getSortOrder());\n\t\t\n\t\t$language = \\OxidEsales\\Eshop\\Core\\Registry::getLang();\n\t\t$languages = $language->getLanguageIds();\n\t\t\n\t\t$titles = $paymentMethod->getResolvedTitle();\n\t\t$descriptions = $paymentMethod->getResolvedDescription();\n\t\t\n\t\t/**\n\t\t * @noinspection PhpParamsInspection\n\t\t */\n\t\tforeach (array_keys($titles) as $languageCode) {\n\t\t\t$languageId = array_search(substr($languageCode, 0, 2), $languages);\n\t\t\tif ($languageId !== false) {\n\t\t\t\t$payment->setLanguage($languageId);\n\t\t\t\t$payment->oxpayments__oxdesc = new \\OxidEsales\\Eshop\\Core\\Field($titles[$languageCode]);\n\t\t\t\t$payment->oxpayments__oxlongdesc = new \\OxidEsales\\Eshop\\Core\\Field($descriptions[$languageCode]);\n\t\t\t\t$payment->save();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $newMethod;\n\t}", "title": "" }, { "docid": "6214006a73b05fab00855d7635f7a2ad", "score": "0.5208657", "text": "public function getAvailablePaymentMethods()\n {\n $setting = $this->settingService->getOneByName('payment_methods');\n return $this->getResponse($setting);\n }", "title": "" }, { "docid": "50d2bf72917a408b46b097919560cb9c", "score": "0.51919925", "text": "public function testPreFlightWithNotAllowedMethod(): void\n {\n $allowedOrigin = $this->getFirstAllowedOriginFromSettings();\n $notAllowedMethod = $this->getFirstNotAllowedMethod();\n $this->theseHeadersWillBeGotOnce(\n [\n CorsRequestHeaders::HOST => [$this->getServerHost()],\n CorsRequestHeaders::ORIGIN => [$allowedOrigin],\n CorsRequestHeaders::METHOD => [$notAllowedMethod],\n CorsRequestHeaders::HEADERS => [],\n ],\n );\n\n $this->existenceOfTheseHeadersWillBeCheckedOnce(\n [\n CorsRequestHeaders::ORIGIN => true,\n ],\n );\n\n $this->thisMethodWillBeGotOnce('OPTIONS');\n\n $result = $this->analyzer->analyze($this->request);\n\n $this->assertEquals(AnalysisResultInterface::ERR_METHOD_NOT_SUPPORTED, $result->getRequestType());\n $this->assertEquals([], $result->getResponseHeaders());\n }", "title": "" }, { "docid": "b9db90dd8bc3d1c0712b95b2d01224b7", "score": "0.51853347", "text": "static public function disable() : void {\n\t\tself::$_enable = false;\n\t}", "title": "" }, { "docid": "824ab708ff3375e049a3b5bab7250dee", "score": "0.5180381", "text": "public function setPMethod($pMethod)\n {\n if(!in_array($pMethod, [\n Api::CREDITCARDTYPE_AMEX,\n Api::CREDITCARDTYPE_DINERSCLUB,\n Api::CREDITCARDTYPE_JCB,\n Api::CREDITCARDTYPE_MASTERCARD,\n Api::CREDITCARDTYPE_VISA,\n ])) {\n throw new InvalidArgumentException('Invalid payment card type.');\n }\n\n $this->request_pMethod = $pMethod;\n }", "title": "" } ]
38cff6bf38d9bc97c6d8f320afa60a3b
Preloads a node so it can optionally be rendered later.
[ { "docid": "886a823da6e55c9803426fd5b7b0398f", "score": "0.6179275", "text": "public function preloadNode(mixed $ref, string $namespace = NcrPreloader::DEFAULT_NAMESPACE): void\n {\n $nodeRef = $this->toNodeRef($ref);\n if (!$nodeRef instanceof NodeRef) {\n return;\n }\n\n $this->ncrPreloader->addNodeRef($nodeRef, $namespace);\n }", "title": "" } ]
[ { "docid": "67b73dddf340808c53e45a15d6123c18", "score": "0.57768553", "text": "function tripal_bulk_loader_node_presave($node) {\n\n // We need to set the title using loader details before the node is saved\n // which has already been done by the time hook_insert is called\n switch ($node->type) {\n case 'tripal_bulk_loader':\n $node->title = 'Bulk Loading Job: ' . $node->loader_name;\n break;\n }\n}", "title": "" }, { "docid": "af4ac1de03b538293960db8f04ae952e", "score": "0.5719719", "text": "private function preload()\n {\n $this->point( Point::POINT_PRELOAD );\n $this->point( Point::POINT_CALIBRATE );\n }", "title": "" }, { "docid": "80c8becadd0fd4d05fe9b06ddc0ac594", "score": "0.56782895", "text": "private function _preorder($node) {\n $color='white';\n if ($node->data->getMB_STATUS()=='3'){\n $color='red';\n }\n if ($node->data->getPV()>=4300){\n $color='blue';\n }\n// $this->path=$this->path.'<li><font color=\"'.$color.'\" face=\"標楷體\">'.$node->data->getMB_NAME().'(層級:'.$node->data->getLEVEL_NO_T().',加入日期:'.$node->data->getPG_DATE().','.$this->weekNo.'業績:'.$node->data->getPV().')</font>';\n $this->path=$this->path.'<li><font color=\"'.$color.'\" face=\"標楷體\">'.$node->data->getMB_NAME().'('.$node->data->getMB_NO().'加入日期:'.$node->data->getPG_DATE().', '.$this->weekNo.'業績:'.$node->data->getPV().')</font>';\n if (sizeof($node->child)>0){\n $this->path=$this->path.'<ul>';\n foreach ($node->child as $child){\n $this->_preorder($child);\n $node->setTotalPV($node->getTotalPV()+$child->getTotalPV());\n }\n $this->path=$this->path.'</ul>';\n }\n $this->Summary->setMumberct($this->Summary->getMumberct()+1);\n $this->path=$this->path.'</li>';\n }", "title": "" }, { "docid": "ddb1711222a2948026c8294a79f72bc8", "score": "0.55763036", "text": "public function preload(): void\n {\n while ($this->valid()) {\n $this->next();\n }\n }", "title": "" }, { "docid": "a71e7265fcd38277741d848feeb5cc93", "score": "0.5574456", "text": "public function setPreload($preload) {\n return $this->setAttribute('preload', $preload);\n }", "title": "" }, { "docid": "5e84672235adf5cc0b402df4f6cf8122", "score": "0.54882854", "text": "public function preload() {\n //Any other preloading in the parent class\n parent::preload();\n\n //$this->app['htmlblock']->add('header.end', $this->renderMeta());\n $this->app['htmlblock']->addTemplate('header.end', $this->getTemplateFile('meta'), $this->getMeta());\n }", "title": "" }, { "docid": "d3f78739068afcdb09b172c9ada2e62a", "score": "0.5391677", "text": "public function presave() {\n $node = $this->node;\n if (isset($node->translation_source)) {\n // webform_template-7.x-1.x\n $_SESSION['webform_template'] = $node->translation_source->nid;\n // webform_template-7.x-4.x\n $node->webform_template = $node->translation_source->nid;\n } else {\n if (!isset($node->nid) && empty($node->webform['components'])) {\n if ($nid = $this->defaultTemplateNid($node)) {\n // webform_template-7.x-1.x\n $_SESSION['webform_template'] = $nid;\n // webform_template-7.x-4.x\n $node->webform_template = (int) $nid;\n }\n }\n }\n }", "title": "" }, { "docid": "cf94b5b3716acd583afe4fb3e7c39d28", "score": "0.53783053", "text": "public function preRender();", "title": "" }, { "docid": "cf94b5b3716acd583afe4fb3e7c39d28", "score": "0.53783053", "text": "public function preRender();", "title": "" }, { "docid": "36116e6f5a9076911717809aaf707380", "score": "0.53748363", "text": "public function pre_render() {}", "title": "" }, { "docid": "a597a34d34ea19cbf54119152aef667d", "score": "0.5353553", "text": "public function preAction() {\n parent::preAction();\n\n $this->region = $this->session->get(self::SESSION_REGION . $this->node->id);\n $this->lastRegion = $this->session->get(self::SESSION_REGION_LAST);\n }", "title": "" }, { "docid": "19eee197add3ef88e7f09dad3b1d8a34", "score": "0.5306994", "text": "public function should_be_preloaded(): bool {\n\t\treturn $this->should_be_preloaded;\n\t}", "title": "" }, { "docid": "0d46184b5c34b5218d1ae5c5ef79e252", "score": "0.52882916", "text": "public function setPreload(string $preload){\n $this->addAttribute('preload', $preload);\n }", "title": "" }, { "docid": "df2942f679720c92cd5f7f6aabdf3294", "score": "0.5271547", "text": "abstract protected function _preRendering();", "title": "" }, { "docid": "a2b6451350491d02b0f989d03f944d16", "score": "0.5245644", "text": "function pre_load_post_id($null, $post_id)\n {\n }", "title": "" }, { "docid": "bb24a1411d2060244c7d841f1a2f61aa", "score": "0.5231398", "text": "protected function preRender() {\n\t\t\n\t}", "title": "" }, { "docid": "29ba0ea5d9cea449aa2c882b057dd6f8", "score": "0.51938236", "text": "public function prepare($node, $row) {\n $node->auto_entitylabel_applied = TRUE;\n\n // Remove any empty or illegal delta field values.\n EntityHelper::removeInvalidFieldDeltas('node', $node);\n EntityHelper::removeEmptyFieldValues('node', $node);\n }", "title": "" }, { "docid": "9058ea88e91bb95c24721218f4c2884c", "score": "0.5186124", "text": "public function populateNode(Node $node, $data)\n\t{\n\t\t$node->useLazyLoad(false);\n\t\t$node->setProperties($data['data']);\n\t\treturn $node;\n\t}", "title": "" }, { "docid": "56421ef475863c15868add5af8d9c425", "score": "0.5183738", "text": "abstract protected function preRender();", "title": "" }, { "docid": "c99bbdcac0a4b3cc21ae620a6c10d7bf", "score": "0.5173316", "text": "function baretheme7_preprocess_node($vars) {\r\n if (drupal_get_path_alias(\"node/{$vars['#node']->nid}\") == 'foo') {\r\n drupal_add_css(drupal_get_path('theme', 'MYTHEME') . \"/css/foo.css\");\r\n }\r\n}", "title": "" }, { "docid": "d9f7882f2d7929210bffc6930f6855ca", "score": "0.5143676", "text": "function _loadNode($node) \n {\n \n for($p = 0; $p < $node->childNodes->length;$p++) {\n $nodeName = $node->childNodes->item($p)->nodeName;\n $nodeValue = $node->childNodes->item($p)->nodeValue;\n if ($nodeName !== \"#text\") {\n $this->$nodeName = $nodeValue;\n } \n }\n \n $parts = explode(\".\",$this->widget);\n $app = array_shift($parts);\n $this->url = \"index.php\";\n \n if (!empty($app)) {\n $this->url .= \"?app=$app\"; \n if (count($parts) > 0) {\n $widget = implode(\".\",$parts);\n $this->url .= \"&widget=$widget\";\n if (!empty($this->ref)) {\n $this->url .= \"&ref=\".$this->ref;\n }\n }\n } \n return true; \n }", "title": "" }, { "docid": "74c0336790ecd988f756915223753a11", "score": "0.51399267", "text": "public function preProcess(Block $block);", "title": "" }, { "docid": "03bce03351e37e7a9d6159119b89c021", "score": "0.5055958", "text": "function atp_set_frontpage() {\n $nid = 0;\n\n if (drush_get_option('uuid')) {\n $uuid = drush_get_option('uuid');\n $fp = entity_get_id_by_uuid('node', array($uuid));\n if (!empty($fp) && !empty($fp[$uuid])) {\n $nid = (int) $fp[$uuid];\n }\n }\n elseif (drush_get_option('nid')) {\n $nid = drush_get_option('nid');\n }\n else {\n $fp = entity_get_id_by_uuid('node', array(ATP_DEV_UUID_FRONTPAGE));\n if (!empty($fp) && !empty($fp[ATP_DEV_UUID_FRONTPAGE])) {\n $nid = (int) $fp[ATP_DEV_UUID_FRONTPAGE];\n }\n }\n\n if ($nid) {\n $frontpage_path = sprintf('node/%s', $nid);\n watchdog(\n 'atp_dev:update',\n t('Setting front page path to %path', array('%path' => $frontpage_path))\n );\n variable_set('site_frontpage', $frontpage_path);\n }\n\n}", "title": "" }, { "docid": "45b7c620602c204e9477cfd508aa19e0", "score": "0.5028296", "text": "public function predecessor($node);", "title": "" }, { "docid": "913ed39914db883c00e4e5ead03597b3", "score": "0.5016062", "text": "public function elementPreRender(array $element);", "title": "" }, { "docid": "66b6b4ea004510d7fd859e6a1a21c975", "score": "0.5012032", "text": "function _dlts_viewer_photo_loader($node, $reset = FALSE) {\n\n $wrapper = entity_metadata_wrapper('node', $node);\n\n $bundle = dlts_viewer_get_bundle_alias($wrapper->getBundle());\n\n $identifier = $wrapper->field_identifier->value();\n\n $query_parameters = drupal_get_query_parameters();\n\n $requestedLang = 'en';\n\n // Need to make sure lang exists.\n if (isset($query_parameters['lang'])) {\n $requestedLang = $query_parameters['lang'];\n }\n\n if (isset($query_parameters['reset'])) {\n $reset = TRUE;\n }\n\n $realpath = drupal_realpath('public://');\n\n $cachepath = \"$realpath/datasource/$bundle/$identifier/info.$requestedLang.json\";\n \n if (file_exists($cachepath) && !$reset) {\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Methods: GET');\n header('Content-Type: application/json;charset=utf-8');\n echo file_get_contents($cachepath);\n exit(0);\n }\n\n return dlts_viewer_api_photo_json($node);\n\n}", "title": "" }, { "docid": "3fafab7f502e224df478e7e24dd16498", "score": "0.5006646", "text": "public function visitIncludeOrEval(Node $node);", "title": "" }, { "docid": "159b59566c8e29e0027cfdd73acfa710", "score": "0.50001526", "text": "protected function __pre_render()\n\t{\n\n\t}", "title": "" }, { "docid": "21366960df720449d767b7931c182574", "score": "0.49905565", "text": "function _pre() {}", "title": "" }, { "docid": "27a7fbbfb667df8500d612a43f3187c2", "score": "0.49787843", "text": "public function preRender()\n {\n }", "title": "" }, { "docid": "bd2ff0cd42e8ce5cdd8338d810179b64", "score": "0.49190253", "text": "function _pre() {\n\t\n\t}", "title": "" }, { "docid": "a4741b8c62e22fe7b024a86ad3be7853", "score": "0.48969582", "text": "function starter_preloader_tag() {\n\tif ( ! is_cart() && ! is_checkout() && ! is_account_page() ) {\n\t\tadd_filter( 'style_loader_tag', 'starter_css_preloader_tag' );\n\t}\n}", "title": "" }, { "docid": "2a01194d5a7a8ccf815255e15919a7df", "score": "0.48912257", "text": "function _pre() {\n\n\t}", "title": "" }, { "docid": "de001ac5ab78897e98b863025e81f30a", "score": "0.48822185", "text": "function _dlts_viewer_book_loader($node, $reset = FALSE) {\n\n $wrapper = entity_metadata_wrapper('node', $node);\n\n $bundle = dlts_viewer_get_bundle_alias($wrapper->getBundle());\n\n $identifier = $wrapper->field_identifier->value();\n\n $query_parameters = drupal_get_query_parameters();\n\n $requestedLang = 'en';\n\n // Need to make sure lang exists.\n if (isset($query_parameters['lang'])) {\n $requestedLang = $query_parameters['lang'];\n }\n\n if (isset($query_parameters['reset'])) {\n $reset = TRUE;\n }\n\n $realpath = drupal_realpath('public://');\n\n $cachepath = \"$realpath/datasource/$bundle/$identifier/info.$requestedLang.json\";\n\n if (file_exists($cachepath) && !$reset) {\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Methods: GET');\n header('Content-Type: application/json;charset=utf-8');\n echo file_get_contents($cachepath);\n exit(0);\n }\n\n return dlts_viewer_api_book_json($node);\n\n}", "title": "" }, { "docid": "27af991464bff0d991d4e885de7f51e8", "score": "0.48716488", "text": "function _dlts_viewer_map_loader($node, $reset = FALSE) {\n $wrapper = entity_metadata_wrapper('node', $node);\n\n $bundle = dlts_viewer_get_bundle_alias($wrapper->getBundle());\n\n $identifier = $wrapper->field_identifier->value();\n\n $query_parameters = drupal_get_query_parameters();\n\n $requestedLang = 'en';\n\n // Need to make sure lang exists.\n if (isset($query_parameters['lang'])) {\n $requestedLang = $query_parameters['lang'];\n }\n\n if (isset($query_parameters['reset'])) {\n $reset = TRUE;\n }\n\n $realpath = drupal_realpath('public://');\n\n $cachepath = \"$realpath/datasource/$bundle/$identifier/info.$requestedLang.json\";\n \n if (file_exists($cachepath) && !$reset) {\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Methods: GET');\n header('Content-Type: application/json;charset=utf-8');\n echo file_get_contents($cachepath);\n exit(0);\n }\n\n return dlts_viewer_api_map_json($node);\n\n}", "title": "" }, { "docid": "42812783f3da3feeffaf6a945519a0d0", "score": "0.48639593", "text": "function tripal_featuremap_node_presave($node) {\n switch ($node->type) {\n // This step is for setting the title for the Drupal node. This title\n // is permanent and thus is created to be unique. Title changes provided\n // by tokens are generated on the fly dynamically, but the node title\n // seen in the content listing needs to be set here. Do not call\n // the chado_get_node_title() function here to set the title as the node\n // object isn't properly filled out and the function will fail.\n case 'chado_featuremap':\n // for a form submission the 'fmapname' field will be set,\n // for a sync, we must pull from the featuremap object\n if (property_exists($node, 'fmapname')) {\n // set the title\n $node->title = $node->fmapname;\n }\n else if (property_exists($node, 'featuremap')) {\n $node->title = $node->featuremap->name;\n }\n break;\n }\n}", "title": "" }, { "docid": "669e500f56b30fd48ccd8ccb5cfc3af9", "score": "0.48609933", "text": "public function enterNode(Node $node) {\n if (!empty($this->stack)) {\n $node->setAttribute('myparent', $this->stack[count($this->stack)-1]);\n }\n if ($this->prev && $this->prev->getAttribute('parent') == $node->getAttribute('parent')) {\n $node->setAttribute('prev', get_class($this->prev));\n }\n $this->stack[] = $node;\n }", "title": "" }, { "docid": "bde8e182c82eac5665663ea16b74b809", "score": "0.48579782", "text": "public function insertBefore( $node, $refChild = null ): Node {\n\t\t$ret = parent::insertBefore( $node, $refChild );\n\t\t$this->_updateDoctypeAndDocumentElement();\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "a61cc6a41513df76032e1968399b6c9f", "score": "0.48533723", "text": "public function preRender()\n {\n \n }", "title": "" }, { "docid": "1fec94ed21c5b882283bf9c4ba53d0da", "score": "0.48416963", "text": "function starter_css_preloader_tag( $tag ) {\n\t$tag = preg_replace( \"/rel='stylesheet'/\", \"rel='preload' as='style' onload=\\\"this.rel='stylesheet'\\\" \", $tag );\n\treturn $tag;\n}", "title": "" }, { "docid": "6d935ba2a7032bb1c2e65646dff4900a", "score": "0.48275468", "text": "protected function _pre() {\n \n }", "title": "" }, { "docid": "76ab469fcd3a14d32f398d42d6f9290b", "score": "0.47630945", "text": "function pre_load_metadata($null, $post_id, $name, $hidden)\n {\n }", "title": "" }, { "docid": "44cfe19e6d8f12f6987d297f651bc009", "score": "0.476067", "text": "public function testBlockPrependUndefined() {\n\t\t$this->View->prepend('test', 'Unknown');\n\t\t$result = $this->View->fetch('test');\n\t\t$this->assertEquals('Unknown', $result);\n\t}", "title": "" }, { "docid": "f3fad4360e00e65ece53ba633a5ee01a", "score": "0.4756832", "text": "function base_creative_preprocess_node(&$vars){\n\t$node = $vars['node'];\n\t$options = array('absolute' => true);\n\t$nid = $vars['vid']; // Node ID\n\t$url = url('node/' . $nid, $options);\n\t//kpr($vars);\n\t\n\t// Add general theme suggestions for all content types and view modes\n\t$vars['theme_hook_suggestions'][] = 'node__' . $vars['type'] . '__' . $vars['view_mode'];\n\n\t$vars['body'] = render($vars['content']['body']);\n\t$vars['bg_body'] = render($vars['content']['field_bg_body']);\n\n\t$vars['title'] = html_entity_decode($vars['title']);\n\t\n\n\tif(isset($vars['content']['field_bg_image'])){\n\t\t$vars['bg_image'] = render($vars['content']['field_bg_image']);\n\n\t\t$bg_settings = array(\n\t\t\t'bg_image_url' => '/' . variable_get('file_public_path', conf_path() . '/files') . '/' . $vars['field_bg_image'][0]['filename'],\n\t\t);\n\n\t\tdrupal_add_js(array('bg_settings' => $bg_settings), 'setting');\n\t\t//drupal_add_js(path_to_theme() . '/js/jquery.tubular.js');\n\n\t}\n\t\n\n\t// ARTICLE ====================================================\n\tif($vars['type'] == 'project'){\n\t\t$vars['services'] = render($vars['content']['field_services']);\n\t\t$vars['website'] = render($vars['content']['field_website_link']);\n\t\t$vars['service_links'] = render($vars['content']['service_links']);\n\n\n\t\tif($vars['view_mode'] == 'teaser'){\n\t\t\t$vars['title'] = l($vars['title'], $url);\n\t\t\t$vars['cover'] = render($vars['content']['field_cover_image']);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "1c4ecbc2124936508977bb3a8e7d8abf", "score": "0.47506464", "text": "protected function loadNodeFromRoute() {\n // @todo Dependecy injection\n $node = \\Drupal::routeMatch()->getParameter('node');\n if (!empty($node)) {\n // WTF? Why do sometimes get a fully loaded node and others just the id?\n if (is_string($node) || is_int($node)) {\n $node = Node::Load($node);\n }\n if ($node instanceof NodeInterface) {\n return $node;\n }\n }\n }", "title": "" }, { "docid": "39b5d2d35ba023a750decfa3480da375", "score": "0.47493827", "text": "public function preDispatch()\n {\n $this->Front()->Plugins()->ViewRenderer()->setNoRender(true);\n\n }", "title": "" }, { "docid": "f9b0a4b1dec580afd81207075907c58d", "score": "0.47400042", "text": "public function visitPreDec(Node $node);", "title": "" }, { "docid": "b675983ad40853e02c044f3b5711eeff", "score": "0.47251683", "text": "public static function deserializePremiere(DOMNode $domNode): Premiere {\n\n static::log($domNode);\n\n $model = new Premiere();\n $model->setLang(static::getDomNodeAttributeValue($domNode, SerializerKeys::LANG));\n $model->setContent(trim($domNode->textContent));\n\n return $model;\n }", "title": "" }, { "docid": "9e4e6820cc1e7ee19f5671779b31863c", "score": "0.47130582", "text": "public static function preRenderPage($element) {\n $element['#cache']['tags'][] = 'theme:' . \\Drupal::theme()->getActiveTheme()->getName();\n $element['#cache']['tags'][] = 'theme_global_settings';\n return $element;\n }", "title": "" }, { "docid": "478c90f1afee0d6df0dd936ed2019907", "score": "0.47002852", "text": "public static function load_node($node_id, $explicit = true)\n\t{\n\t\t$node_id = intval($node_id);\n\t\t\n\t\t// finnes ikke?\n\t\tif (!isset(self::$nodes[$node_id]))\n\t\t{\n\t\t\tif ($explicit) page_not_found();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tself::$node_id = $node_id;\n\t\t$parent_enabled = 1;\n\t\t\n\t\t// finn hvilke parent nodes vi har\n\t\t$parent_nodes = array();\n\t\t$parent_id = $node_id == 0 || !isset(self::$nodes[self::$nodes[$node_id]['node_parent_node_id']]) ? 0 : self::$nodes[self::$nodes[$node_id]['node_parent_node_id']]['node_id'];\n\t\t\n\t\twhile (isset(self::$nodes[$parent_id]) && $row = self::$nodes[$parent_id])\n\t\t{\n\t\t\t$parent_nodes[] = $parent_id;\n\t\t\t$parent_id = $row['node_parent_node_id'];\n\t\t\t\n\t\t\tif ($row['node_enabled'] == 0) $parent_enabled = 0;\n\t\t}\n\t\t\n\t\t// fant ikke tilbake til root?\n\t\tif ($parent_id != 0)\n\t\t{\n\t\t\tif ($explicit) page_not_found();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// hent mer info\n\t\tself::$node_info = self::$nodes[$node_id];\n\t\tself::$node_info['parent_enabled'] = $parent_enabled;\n\t\tself::$node_params = new params(self::$node_info['node_params']);\n\t\t\n\t\t// sett opp path\n\t\t$parent_nodes = array_reverse($parent_nodes);\n\t\t$parent_nodes[] = $node_id;\n\t\tforeach ($parent_nodes as $id)\n\t\t{\n\t\t\t$row = self::$nodes[$id];\n\t\t\t\n\t\t\t// sett opp linken\n\t\t\tswitch ($row['node_type'])\n\t\t\t{\n\t\t\t\tcase \"url_absolute\":\n\t\t\t\t\t$params = new params($row['node_params']);\n\t\t\t\t\t$url = htmlspecialchars($params->get(\"url\"));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"url_relative\":\n\t\t\t\t\t$params = new params($row['node_params']);\n\t\t\t\t\t$url = ess::$s['relative_path'].htmlspecialchars($params->get(\"url\"));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault: // container\n\t\t\t\t\tif ($row['node_id'] == self::$default_node)\n\t\t\t\t\t{\n\t\t\t\t\t\t$url = ess::$s['relative_path'].'/node';\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$url = ess::$s['relative_path'].'/node/'.$row['node_id'];\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// legg til\n\t\t\tnodes::add_node($row['node_id'], $row['node_title'], $url);\n\t\t\tess::$b->page->add_title($row['node_title']);\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e665ce12142f7ea6c699a4f0d4d9e2d3", "score": "0.4697212", "text": "protected function pre_render()\n {\n $this->_initialize_variables();\n $this->_initialize_helpers();\n $this->_load_language();\n $this->state_code = $this->getStateCode();\n\n if ($this->basic_model === null) {\n $this->set_default_Model();\n }\n\n $this->set_basic_db_table($this->get_table());\n\n $this->_load_date_format();\n\n $this->_set_primary_keys_to_model();\n }", "title": "" }, { "docid": "5fc20c931a29675e1d3ff5ce7e76733f", "score": "0.46919638", "text": "public function insertBefore(\\DOMNode $newnode, \\DOMNode $refnode = null)\n {\n parent::insertBefore($newnode, $refnode);\n\n return $this;\n }", "title": "" }, { "docid": "ae2cb7a653a44a3b71c4dc55eb7090ac", "score": "0.469169", "text": "function boots_preprocess_node_task(&$vars) {\n\n}", "title": "" }, { "docid": "c9ab59b55be6f22760d27cfdb85af423", "score": "0.46741045", "text": "function pre_load_reference($field_key, $field_name, $post_id)\n {\n }", "title": "" }, { "docid": "4d86c248c34499e1ec284331fe9b8278", "score": "0.46454078", "text": "protected function preloadData(array $data)\n\t{\n\t}", "title": "" }, { "docid": "faf4998219508dc0a1d4b8a490118f97", "score": "0.46400285", "text": "public function preload( array $args = [], array $assoc_args = [] ) {\n\n\t\tif ( ! empty( $assoc_args['sitemap'] ) && $assoc_args['sitemap'] ) {\n\t\t\tWP_CLI::line( 'Triggering sitemap-based preloading.' );\n\t\t\trun_rocket_sitemap_preload();\n\t\t} else {\n\t\t\tif ( run_rocket_bot() ) {\n\t\t\t\tWP_CLI::success( 'Triggering homepage-based preloading.' );\n\t\t\t}else{\n\t\t\t\tWP_CLI::error( 'Cannot start preload cache, please check preload option is activated.' );\n\t\t\t}\n\t\t}\n\n\t\tWP_CLI::success( 'Finished WP Rocket preload cache files.' );\n\t}", "title": "" }, { "docid": "4906744f4de3447f5fb80e5f3b07d3f4", "score": "0.46379396", "text": "function cherry_get_page_preloader() {\n\t$page_preloader = get_theme_mod( 'page_preloader', cherry_theme()->customizer->get_default( 'page_preloader' ) );\n\n\tif ( $page_preloader ) {\n\t\techo '<div class=\"page-preloader-cover\">\n\t\t\t<div class=\"page-preloader\">\n\t\t\t\t<div class=\"page-preloader__part page-preloader-leaf\"></div>\n\t\t\t\t<div class=\"page-preloader__part page-preloader-cherry\"></div>\n\t\t\t\t<div class=\"page-preloader__part page-preloader-cherry\"></div>\n\t\t\t</div>\n\t\t</div>';\n\n\t\t/*echo '<div class=\"page-preloader-cover\">\n\t\t\t<div class=\"page-preloader\">\n\t\t\t\t<div class=\"page-preloader__cube page-preloader--cube1\"></div>\n\t\t\t\t<div class=\"page-preloader__cube page-preloader--cube2\"></div>\n\t\t\t\t<div class=\"page-preloader__cube page-preloader--cube4\"></div>\n\t\t\t\t<div class=\"page-preloader__cube page-preloader--cube3\"></div>\n\t\t\t</div>\n\t\t</div>';*/\n\t}\n}", "title": "" }, { "docid": "c8fcd1f846bf5b3e8326eb2a2a7257f7", "score": "0.46369925", "text": "public function importNode (DomNode $importedNode, $deep = null) {}", "title": "" }, { "docid": "7e76fd7576a78b46c8bfa6dedebddc9e", "score": "0.4617925", "text": "function _importNode($newnode)\n {\n if ($this->document === $newnode->document) {\n return $newnode->node;\n } else {\n return $this->document->node->importNode($newnode->node, true);\n }\n }", "title": "" }, { "docid": "1db55610e4d2c7419f397946ff3b4bed", "score": "0.46143812", "text": "public function prepend(ContainerBuilder $container)\n {\n $config = [];\n $configuration = $this->getConfigurationInstance();\n if ($configuration instanceof ConfigurationInterface) {\n $config = $container->getExtensionConfig($this->getAlias());\n\n $config = $this->processConfiguration($configuration, $config);\n $config = $container->getParameterBag()->resolveValue($config);\n $this->applyParametrizedValues($config, $container);\n }\n\n $this->overrideEntities($container);\n\n $this->preLoad($config, $container);\n }", "title": "" }, { "docid": "91db9cec89b45f9e123768c22d01b3e1", "score": "0.46131593", "text": "public static function startToPrep($nodeActivity)\n {\n return true;\n }", "title": "" }, { "docid": "0c4b45784cd206a6cb0b64c9144af62e", "score": "0.46055463", "text": "function _choropleth_resource_node_load($nid = '') {\n // Simple check to see if the $nid provided is nid-like.\n if (!empty($nid) && (ctype_digit(strval($nid)))) {\n // Attempt to load the node.\n $node = entity_load('node', array($nid));\n $node = array_shift($node);\n if ((!empty($node)) && ($node->type == 'resource')) {\n return $node;\n }\n else {\n return FALSE;\n }\n }\n}", "title": "" }, { "docid": "f0345edb3893efa09176563aa50bb1ff", "score": "0.4603619", "text": "public function visitPreInc(Node $node);", "title": "" }, { "docid": "2ad9c1f52154d5844aab1c1477274b9f", "score": "0.4600541", "text": "function _node_onpredelete() {\n\t\t$parent = $this->getParent();\n\t\t$parent->removeChild($this);\n\t\t$parent->_node_onchange_child();\n\t}", "title": "" }, { "docid": "2b28de08d4e6b07bb13531c470deb5b7", "score": "0.45962426", "text": "public function setPreContext(array $preContext): void\n {\n $this->preContext = $preContext;\n }", "title": "" }, { "docid": "1c7bba6e380f7b95e664be69ff4302e7", "score": "0.4595367", "text": "function pre_load_meta($null, $post_id)\n {\n }", "title": "" }, { "docid": "f1e846e75126dabafbce6e41cebd9aef", "score": "0.45931607", "text": "public function preinit()\n {\n $this->action->nested = true;\n $this->action->relationships['product_categories']['renderable'] = false;\n }", "title": "" }, { "docid": "72e4a24bdc6d75dca8f6d7e7478ddf56", "score": "0.45874876", "text": "public function preRender()\n {\n foreach ($this->_plugins as $plugin) {\n $plugin->setView($this->_view);\n $plugin->preRender();\n }\n }", "title": "" }, { "docid": "9a201bde880a841abd502177ed81719f", "score": "0.45821556", "text": "function bibsdb_preprocess_node(&$variables){\n\n\tif ('ding_news' == $variables['type'] || 'ding_page' == $variables['type']) {\n\t\t$node = $variables['node'];\n\n\t\t// Make the publication date available. This depends on the publication_date module being installed.\n\t\t$variables['bibsdb_publication_date'] = format_date($node->published_at, 'ding_long_date_only');\n\n\t // Make authors full name available using the RealName module\n\t\t$uid = user_load($node->uid);\n\t\t$variables['bibsdb_author_full_name'] = check_plain(format_username($uid));\n\t}\n\n\tif ('ding_eresource' == $variables['type']) {\n\t\t\n\t\t$node = $variables['node'];\n\t\t$wrapper = entity_metadata_wrapper('node', $node);\n\t\t$image = $wrapper->field_ding_eresource_list_image->value();\n\t\t$linktitle = $wrapper->field_bibsdb_eresource_link->value()['title'];\n\t\t$url = $wrapper->field_bibsdb_eresource_link->value()['url'];\n\t\t$url = str_replace('%3A', ':', $url);\n\t\t$url = str_replace('%3F', '?', $url);\n\n\t\t$img = theme('image_style', array('path'=>$image['uri'], 'style_name' => 'bibsdb_expose_large'));\n\t\t$variables['bibsdb_linked_logo'] = l($img, $url, array('html'=>TRUE, 'attributes' => array('target' => '_blank')));\n\t\t$variables['bibsdb_link_with_target_blank'] = l($linktitle, $url, array('html'=>TRUE, 'attributes' => array('target' => '_blank')));\n\t}\n}", "title": "" }, { "docid": "ce60f547aa8baf7042538b73f4cb4d8d", "score": "0.45761985", "text": "public function enterNode(Node $node)\n {\n if ($node instanceof File) {\n $this->file = $this->getName($node);\n return null;\n }\n\n return null;\n }", "title": "" }, { "docid": "cd55013ddab7d748d0eccd86ac4f03c5", "score": "0.4558696", "text": "protected function prepare()\n {\n $this->equation = new EquationNode;\n }", "title": "" }, { "docid": "ed0eb659f6e4146a47ea4fba02737283", "score": "0.4558531", "text": "function preload($id);", "title": "" }, { "docid": "3bd6d549d2ec96f7701bc57840044c90", "score": "0.455753", "text": "public function preProcess($entity);", "title": "" }, { "docid": "17ebec6f3becdda89c00b291c9b35404", "score": "0.45392895", "text": "function i18n_sync_node_translation_attached_node(&$node, &$translation, $field) {\n if ($attached = node_load($node->$field)) {\n $translation->$field = i18n_sync_node_translation_reference_field($attached, $node->$field, $translation->language);\n }\n}", "title": "" }, { "docid": "53a107a5d9037d08e1a04065bc26b398", "score": "0.45378426", "text": "public function before()\n {\n parent::before();\n\n if (true === $this->autoRender)\n {\n // Load the template\n $this->template = View::factory($this->template);\n }\n }", "title": "" }, { "docid": "615b86a2a8d55eca89a3af9dd6ceff5b", "score": "0.45363605", "text": "public function prepend(...$nodes): void\n {\n if ($this->firstChild)\n {\n foreach ($nodes as $node)\n {\n $this->insertBefore($node, $this->firstChild);\n }\n }\n else\n {\n $this->append($nodes);\n }\n }", "title": "" }, { "docid": "1fd6d89cd65b8f3914ed570ee9ce7099", "score": "0.45337883", "text": "function brutus_bootstrap_preprocess_node(&$variables) {\n if ($variables['teaser']) {\n $variables['classes_array'][] = 'row-fluid';\n }\n $variables['view_mode'] = $variables['elements']['#view_mode'];\n // Provide a distinct $teaser boolean.\n $variables['teaser'] = $variables['view_mode'] == 'teaser';\n $variables['node'] = $variables['elements']['#node'];\n $node = $variables['node'];\n\n $variables['date'] = format_date($node->created);\n $variables['name'] = theme('username', array('account' => $node));\n\n $uri = entity_uri('node', $node);\n $variables['node_url'] = url($uri['path'], $uri['options']);\n $variables['title'] = check_plain($node->title);\n $variables['page'] = $variables['view_mode'] == 'full' && node_is_page($node);\n\n // Flatten the node object's member fields.\n $variables = array_merge((array) $node, $variables);\n // Clean up name so there are no underscores.\n $node = $variables['node'];\n $variables['theme_hook_suggestions'][] = 'node__' . $node->type;\n $variables['theme_hook_suggestions'][] = 'node__' . $node->nid;\n // Add to array of handy node classes\n $variables['classes_array'][] = $variables['zebra']; // Node is odd or even\n $variables['classes_array'][] = (!$variables['teaser']) ? 'full-node' : ''; // Node is teaser or full-node\n\n $node_top_blocks = block_get_blocks_by_region('node_top');\n $node_bottom_blocks = block_get_blocks_by_region('node_bottom');\n if ($node_top_blocks) {\n $variables['node_top'] = $node_top_blocks; \n }\n if ($node_bottom_blocks) {\n $variables['node_bottom'] = $node_bottom_blocks;\n }\n\n // Node is published\n $variables['classes_array'][] = ($variables['status']) ? 'published' : 'unpublished';\n\n // Node has comments?\n $variables['classes_array'][] = ($variables['comment']) ? 'with-comments' : 'no-comments';\n\n if ($variables['sticky']) {\n $variables['classes_array'][] = 'sticky'; // Node is sticky\n }\n\n if ($variables['promote']) {\n $variables['classes_array'][] = 'promote'; // Node is promoted to front page\n }\n\n\n if ($variables['uid'] && $variables['uid'] === $GLOBALS['user']->uid) {\n $classes[] = 'node-mine'; // Node is authored by current user.\n }\n \n $variables['submitted'] = t('Submitted by !username on', array('!username' => $variables['name']));\n $variables['submitted_date'] = t('!datetime', array('!datetime' => $variables['date']));\n $variables['submitted_pubdate'] = format_date($variables['created'], 'custom', 'Y-m-d');\n}", "title": "" }, { "docid": "bbc5f3e53178f9e940d7e5aa97fe2b3a", "score": "0.45307383", "text": "function _choropleth_dataset_node_load($nid = '') {\n // Simple check to see if the $nid provided is nid-like.\n if (!empty($nid) && (ctype_digit(strval($nid)))) {\n // Attempt to load the node.\n $node = entity_load('node', array($nid));\n $node = array_shift($node);\n if ((!empty($node)) && ($node->type == 'dataset') && isset($node->field_resources)) {\n return $node;\n }\n else {\n return FALSE;\n }\n }\n}", "title": "" }, { "docid": "980bfe1d3b2ae08fd2d6c833f6f20927", "score": "0.4523991", "text": "public function changeNodeState(Node $node);", "title": "" }, { "docid": "197b3d7911b171dd2f374d9529c79e3a", "score": "0.451683", "text": "public function importNode(PrototypeNode $newNode):PrototypeNode;", "title": "" }, { "docid": "1e773850829bfe81f16108cc85d5ea3b", "score": "0.45159644", "text": "public function hEditFormPreloadText( &$text, &$title )\n\t// This hook is called to preload text upon initial page creation.\n\t// If we are in the NS_SCRIPTS namespace and no article is found ('initial creation')\n\t// then let's check if the underlying file exists and preload it.\r\n\t//\r\n\t// NOTE that the 'edit' permission is assumed to be checked prior to entering this hook.\r\n\t//\n\t{\r\n\t\t$ns = $title->getNamespace();\r\n\t\tif ($ns != NS_SCRIPTS) return true; // continue hook chain.\r\n\r\n\t\t$filename = $title->getBaseText();\r\n\t\t$text = file_get_contents( $filename );\r\n\t\r\n\t\treturn true; // be nice.\n\t}", "title": "" }, { "docid": "8c64905ce2b796573c7fdd216670f4e3", "score": "0.45056662", "text": "protected function preFetch(){ }", "title": "" }, { "docid": "dc4f5ce99b77f5375efe023ffcf6732e", "score": "0.4503253", "text": "public function before()\n\t{\n\t\tif ($this->template === NULL)\n\t\t{\n\t\t\t// Load the template\n\t\t\t$this->template = $this->template_name($this->request->controller(), $this->request->action());\n\t\t}\n\n\t\t$this->template = Twig_View::factory($this->template);\n\n\t\t// run parent before method after twig is loaded\n\t\t// so template is avaiable to entire application\n\t\tparent::before();\n\t}", "title": "" }, { "docid": "c8c3426b9a4eb78fa555d328d1f69cf8", "score": "0.45008445", "text": "public function importStylesheet(\\DOMNode $node)\n\t{\n\t\t$this->xslFirstTemplateNode = null;\n\t\t$this->xsl = $node;\n\t\t\n\t\t$xpath = new \\DOMXPath($this->xsl);\n\t\t$xpath->registerNamespace(XSLT_PREFIX, XSLT_NS);\n\t\t\n\t\t$res = $xpath->query(\"xsl:template[1]\", $this->xsl->documentElement);\n\t\tif ($res->length)\n\t\t{\n\t\t\t$this->xslFirstTemplateNode = $res->item(0);\n\t\t}\n\t}", "title": "" }, { "docid": "1f5a0d44b6730a6ff92517305ab644f7", "score": "0.44948968", "text": "function restore() {\n if (!empty($this->head)) {\n drupal_set_html_head($this->head);\n }\n if (!empty($this->css)) {\n foreach ($this->css as $args) {\n call_user_func_array('drupal_add_css', $args);\n }\n }\n if (!empty($this->js)) {\n foreach ($this->js as $args) {\n call_user_func_array('drupal_add_js', $args);\n }\n }\n\n if (!empty($this->tokens)) {\n foreach ($this->tokens as $token => $key) {\n list($type, $argument) = $key;\n ctools_set_page_token($token, $type, $argument);\n }\n }\n }", "title": "" }, { "docid": "4d518582ceb58167d1905b2ce9ad5053", "score": "0.4493774", "text": "protected function __pre_dispatch()\n\t{\n $this->setAutoRender(false);\n\t}", "title": "" }, { "docid": "abef80b4d28271fde872649637dcb76a", "score": "0.44925955", "text": "public function preRender(TwigPreRenderEvent $event)\n {\n }", "title": "" }, { "docid": "20d86f055e0ed0001c8eebc58a263814", "score": "0.4483059", "text": "public function importNode( $node, bool $deep = false ): Node {\n\t\t// @phan-suppress-next-line PhanTypeMismatchReturnSuperType\n\t\treturn $this->adoptNode( $node->cloneNode( $deep ) );\n\t}", "title": "" }, { "docid": "071469a279be0c2de6068478911e9df3", "score": "0.44828156", "text": "public function beforeTraverse(array $nodes);", "title": "" }, { "docid": "c7da6924e6d0d8328d6491cf80bbcc8c", "score": "0.44804686", "text": "public function preDispatch()\n {\n $locale = $this->_translate->getAdapter()->getLocale();\n $scriptPathSpec = $this->_helper->viewRenderer->getViewScriptPathSpec();\n $this->_helper->viewRenderer->setViewScriptPathSpec(':module.' . $locale . '/:controller/:action.:suffix', $this->_request->getModuleName());\n $scriptPath = $this->_helper->viewRenderer->getViewScript();\n if (!$this->view->getScriptPath($scriptPath)) {\n $this->_helper->viewRenderer->setViewScriptPathSpec($scriptPathSpec, $this->_request->getModuleName());\n }\n }", "title": "" }, { "docid": "1fc7da1661fb22267b52502c3a577c58", "score": "0.447247", "text": "final public function setPreFilter(PHPTAL_Filter $filter)\n {\n $this->resetPrepared();\n $this->prefilters['_phptal_old_filter_'] = $filter;\n }", "title": "" }, { "docid": "b0d03cf5c66716866dd37e0ec6b04ea2", "score": "0.4471317", "text": "function load_node($field = null, $value = null) {\r\n if (!$field) { die(); }\r\n echo '{\"data\":'.json_encode($this->structure_website_model->load_node($field, $value)).'}';\r\n }", "title": "" }, { "docid": "0230a088b2de93d7422bc846bb9662e7", "score": "0.44628093", "text": "public static function setupBeforeScene() {\n\t}", "title": "" }, { "docid": "ce508c62be66cc61ddae8072f0ea7872", "score": "0.44624212", "text": "public function preRender(Engine $engine);", "title": "" }, { "docid": "a90cb78016788a7c9a58435304394031", "score": "0.44622064", "text": "public function addBeforeHead(string $data){\n\t\t$newnode = new Node($data);\n\t\tif($this->isEmpty()){\n\t\t\t$this->head = &$newnode;\n\t\t\t$this->tail = $newnode;\n\t\t}else{\n\t\t\t$tmpNode = $this->head;\n\t\t\t$this->head = &$newnode;\n\t\t\t$newnode->next = $tmpNode;\n\t\t\t$tmpNode->prev = $this->head;\n\t\t}\n\t\t$this->num++;\n\t}", "title": "" }, { "docid": "17b736d47c9a12a00bb359a58ebdacf4", "score": "0.4459167", "text": "function load() {\n\n\t\t\t/* do nothing */\n\n\t\t}", "title": "" }, { "docid": "a4d8441be5b6e5a5ddc4d35245cd50fe", "score": "0.44576034", "text": "function disable_lazyload_in_rest() {\n\tglobal $lazy_loader;\n\n\tif (\n\t\tisset( $lazy_loader )\n\t\t&& $lazy_loader instanceof FlorianBrinkmann\\LazyLoadResponsiveImages\\Plugin\n\t) {\n\t\tremove_filter( 'the_content', array( $lazy_loader, 'filter_markup' ), 10001 );\n\t}\n}", "title": "" }, { "docid": "a52209b8ff5374b474621ee58ae12045", "score": "0.44551364", "text": "function business_preprocess_node(&$variables)\n{\n $node = $variables['node'];\n if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) {\n $variables['classes_array'][] = 'node-full';\n }\n}", "title": "" }, { "docid": "5aa95d91d1897fe0170ee48739e2ce22", "score": "0.44543195", "text": "public function prepare($node, $row) {\n $node->purl = array('value' => $row->purl);\n }", "title": "" }, { "docid": "c851ec5b8a05d8f8b3de9d3e12f03793", "score": "0.44536933", "text": "function beforeRenderElement(HTML_QuickForm2_Node & $element, & $elTpl) {}", "title": "" } ]
313d11e694cec8ff77ee5c8d5ee74370
Returns the workhistory data for a civicrm contact_id and a record id.
[ { "docid": "32cf2b98c92e70026fcdd95eb2714a80", "score": "0.74260587", "text": "function _expert_mycv_workhistory_get($contact_id, $id) {\n $params = array();\n $params['entity_id'] = $contact_id;\n\n $fields = array();\n $group_info = civicrm_api3('CustomGroup', 'getsingle', array('name' => 'Workhistory'));\n $custom_fields = civicrm_api3('CustomField', 'get', array('custom_group_id' => $group_info['id']));\n foreach($custom_fields['values'] as $field) {\n $fields[$field['id']] = array(\n 'name' => $field['name'],\n 'id' => $field['id'],\n 'custom_group_id' => $field['custom_group_id'],\n 'custom_group_name' => $group_info['name'],\n );\n $params['return.custom_'.$field['id']] = 1;\n }\n\n $values = civicrm_api3('CustomValue', 'get', $params);\n $return = array();\n foreach($values['values'] as $value) {\n $field_name = $fields[$value['id']]['custom_group_name'].'::'.$fields[$value['id']]['name'];\n foreach($value as $key => $v) {\n if (is_numeric($key) && $key == $id) {\n $return['id'] = $key;\n $return[$field_name] = $v;\n }\n }\n }\n\n return $return;\n}", "title": "" } ]
[ { "docid": "6e4f86251a71c9d53619e3236c5badd5", "score": "0.66336393", "text": "function get_history($id)\n\t{\n\t\tglobal $log;\n $log->debug(\"Entering get_history(\".$id.\") method ...\");\n\n\t\t$entityIds = $this->getRelatedContactsIds();\n\t\t$entityIds = implode(',', $entityIds);\n\n\t\t$userNameSql = getSqlForNameInDisplayFormat(array('first_name'=>'vtiger_users.first_name', 'last_name' => 'vtiger_users.last_name'), 'Users');\n\n\t\t$query = \"SELECT DISTINCT(vtiger_activity.activityid), vtiger_activity.subject, vtiger_activity.status, vtiger_activity.eventstatus,\n\t\t\t\tvtiger_activity.activitytype, vtiger_activity.date_start, vtiger_activity.due_date, vtiger_activity.time_start, vtiger_activity.time_end,\n\t\t\t\tvtiger_crmentity.modifiedtime, vtiger_crmentity.createdtime, vtiger_crmentity.description,\n\t\t\t\tcase when (vtiger_users.user_name not like '') then $userNameSql else vtiger_groups.groupname end as user_name\n\t\t\t\tFROM vtiger_activity\n\t\t\t\tINNER JOIN vtiger_crmentity ON vtiger_crmentity.crmid = vtiger_activity.activityid\n\t\t\t\tLEFT JOIN vtiger_seactivityrel ON vtiger_seactivityrel.activityid = vtiger_activity.activityid\n\t\t\t\tLEFT JOIN vtiger_cntactivityrel ON vtiger_cntactivityrel.activityid = vtiger_activity.activityid\n\t\t\t\tLEFT JOIN vtiger_contactdetails ON vtiger_contactdetails.contactid = vtiger_cntactivityrel.contactid\n\t\t\t\tLEFT JOIN vtiger_groups ON vtiger_groups.groupid = vtiger_crmentity.smownerid\n\t\t\t\tLEFT JOIN vtiger_users ON vtiger_users.id=vtiger_crmentity.smownerid\n\t\t\t\tWHERE (vtiger_activity.activitytype != 'Emails')\n\t\t\t\tAND (vtiger_activity.status = 'Completed'\n\t\t\t\t\tOR vtiger_activity.status = 'Deferred'\n\t\t\t\t\tOR (vtiger_activity.eventstatus = 'Held' AND vtiger_activity.eventstatus != ''))\n\t\t\t\tAND vtiger_crmentity.deleted = 0 AND (vtiger_seactivityrel.crmid = $id\";\n\n\t\tif(!empty ($entityIds)){\n\t\t\t$query .= \" OR vtiger_cntactivityrel.contactid IN (\".$entityIds.\"))\";\n\t\t} else {\n\t\t\t$query .= \")\";\n\t\t}\n\n\t\t//Don't add order by, because, for security, one more condition will be added with this query in include/RelatedListView.php\n\t\t$log->debug(\"Exiting get_history method ...\");\n\t\treturn getHistory('Rumors',$query,$id);\n\t}", "title": "" }, { "docid": "435c1f4c8195daab465a67f04a956fde", "score": "0.63589877", "text": "function expert_cv_workhistory($form, &$form_state, $contact_id, $id=null) {\n expert_cv_workhistory_check_count($contact_id);\n civicrm_initialize();\n\n $form_state['civicrm']['id'] = $id;\n $form_state['civicrm']['contact_id'] = $contact_id;\n\n if (!empty($id)) {\n $workhistory = _expert_mycv_workhistory_get($contact_id, $id);\n } else {\n $workhistory = array();\n }\n $values = array();\n if (isset($form_state['values'])) {\n $values = $form_state['values'];\n }\n\n $form['workhistory_info']['#type'] = 'fieldset';\n $form['workhistory_info']['#title'] = t('Workhistory');\n $form['workhistory_info']['#description'] = 'Please provide us with your relevant work experience details starting with your most recent work experience and working backwards in chronological order. For each additional work experience entry you wish to submit, click the box at the bottom of the form. The maximum number of work experience entries you can list is 10.';\n $form['workhistory_info']['info'] = array(\n '#type' => 'markup',\n '#markup' => t('Please provide us with your relevant work experience details. For each additional work experience you wish to submit, klick the box at the bottom of the form.'),\n );\n\n $form['workhistory_entries']['workhistory_name_of_organisation'] = array(\n '#type' => 'textfield',\n '#title' => t('Name of organisation'),\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_name_of_organisation', 'Workhistory::Name_of_Organisation', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_city'] = array(\n '#type' => 'textfield',\n '#title' => t('City'),\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_city', 'Workhistory::City', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_country'] = array(\n '#type' => 'select',\n '#title' => t('Country'),\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_country', 'Workhistory::Country', '', '1152', false),\n '#options' => CRM_Core_PseudoConstant::country(),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_years_from'] = array(\n '#type' => 'textfield',\n '#title' => t('From (year)'),\n '#field_suffix' => '<code class=\"help\">Use the full year notation (example: 1980)</code>',\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_years_from', 'Workhistory::Yeard_From', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_to'] = array(\n '#type' => 'textfield',\n '#title' => t('Until (year)'),\n '#field_suffix' => '<code class=\"help\">Use the full year notation (example: 1980). In case you are still in active employment, write down \"ongoing\".</code>',\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_to', 'Workhistory::To', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_job_title'] = array(\n '#type' => 'textfield',\n '#title' => t('Job title'),\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_job_title', 'Workhistory::Job_Title', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_description'] = array(\n '#type' => 'textarea',\n '#title' => t('Description'),\n '#field_suffix' => '<code class=\"help\">Specify as accurately as possible the nature of your  tasks, and any special activities.</code>',\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_description', 'Workhistory::Description', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_competences'] = array(\n '#type' => 'textarea',\n '#title' => t('Competences used in this job'),\n '#field_suffix' => '<code class=\"help\">This refers to distinctive expertise, related to the specific responsibilities you had in this position. The purpose of this information is to give the PUM customer insight about specific knowledge that you acquired while you held this job. <br>For instance: commercial insight in the food retail market, specific expertise in the field of ..., product knowledge, product development, financial insight, Human Resources, acquisition etc. (Use terms and areas of expertise that describe your professional duties and used expertise in this specific job).<br><br>It is NOT the intention to mention personal characteristics referring to general qualities regarding creativity, innovation, collaboration, quality minded, team player, leadership etc.</code>',\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_competences', 'Workhistory::Competences_used_in_this_job', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_responsibilities'] = array(\n '#type' => 'textarea',\n '#title' => t('Responsibilities'),\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_responsibilities', 'Workhistory::Responsibilities', '', '', false),\n '#required' => true,\n );\n\n $form['workhistory_entries']['workhistory_countries_visited'] = array(\n '#type' => 'select',\n '#title' => t('Countries visited in relation to the job'),\n '#multiple' => true,\n '#default_value' => pum_expert_mycv_value($values, $workhistory, 'workhistory_countries_visited', 'Workhistory::Countries_visited_in_relation_to_the_job', '', '1152', false),\n '#options' => CRM_Core_PseudoConstant::country(),\n '#required' => true,\n );\n\n $form['actions'] = array('#type' => 'actions');\n $form['actions']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save'),\n );\n $form['actions']['cancel'] = array(\n '#type' => 'submit',\n '#value' => t('Cancel'),\n '#submit' => array('pum_expert_cv_cancel'),\n '#limit_validation_errors' => array(),\n );\n\n $path = drupal_get_path('module', 'pum_portal_webform_help');\n drupal_add_js($path . '/ppwh.js');\n drupal_add_css($path . '/ppwh.css');\n\n return $form;\n}", "title": "" }, { "docid": "05e17f771fba447bd0eed43b29eb346a", "score": "0.6214683", "text": "function _expert_mycv_workhistory_save($contact_id, $id, $data) {\n if (!empty($id)) {\n $key = $id;\n }\n else {\n $key = -1;\n }\n\n $fields = array();\n $group_info = civicrm_api3('CustomGroup', 'getsingle', array('name' => 'Workhistory'));\n $custom_fields = civicrm_api3('CustomField', 'get', array('custom_group_id' => $group_info['id']));\n $columns = array();\n foreach($custom_fields['values'] as $field) {\n $fields[$field['name']] = 'custom_'.$field['id'];\n $columns[$field['name']] = $field['column_name'];\n }\n\n $workhistory_params[$fields['Name_of_Organisation'].':'.$key] = $data['workhistory_name_of_organisation'];\n $workhistory_params[$fields['City'].':'.$key] = $data['workhistory_city'];\n $workhistory_params[$fields['Country'].':'.$key] = $data['workhistory_country'];\n $workhistory_params[$fields['Yeard_From'].':'.$key] = $data['workhistory_years_from'];\n $workhistory_params[$fields['To'].':'.$key] = $data['workhistory_to'];\n $workhistory_params[$fields['Job_Title'].':'.$key] = $data['workhistory_job_title'];\n $workhistory_params[$fields['Description'].':'.$key] = $data['workhistory_description'];\n $workhistory_params[$fields['Competences_used_in_this_job'].':'.$key] = $data['workhistory_competences'];\n $workhistory_params[$fields['Responsibilities'].':'.$key] = $data['workhistory_responsibilities'];\n $workhistory_params[$fields['Countries_visited_in_relation_to_the_job'].':'.$key] = is_array($data['workhistory_countries_visited'])?reset($data['workhistory_countries_visited']):$data['workhistory_countries_visited']; //only save first first one\n\n civicrm_api3('Cvmutation', 'pre', array('contact_id' => $contact_id));\n if (count($workhistory_params)) {\n $workhistory_params['entity_id'] = $contact_id;\n $return = civicrm_api3('CustomValue', 'create', $workhistory_params);\n }\n\n\n //save work experiences, the api doesnt save multiple values\n if ($id) {\n $dao = CRM_Core_DAO::executeQuery(\"SELECT * FROM `\".$group_info['table_name'].\"` WHERE `entity_id` = %1 and id = %2 LIMIT 0,1\", array(\n 1=>array($contact_id, 'Integer'),\n 2=>array($id, 'Integer')\n ));\n } else {\n $dao = CRM_Core_DAO::executeQuery(\"SELECT * FROM `\".$group_info['table_name'].\"` WHERE `entity_id` = %1 ORDER BY id DESC LIMIT 0,1\", array(\n 1=>array($contact_id, 'Integer')\n ));\n }\n while($dao->fetch()) {\n $sql = \"UPDATE `\".$group_info['table_name'].\"` SET `\".$columns['Countries_visited_in_relation_to_the_job'].\"` = %2 WHERE `id` = %1\";\n if (isset($data['workhistory_countries_visited']) && is_array($data['workhistory_countries_visited'])) {\n $val = implode(CRM_Core_DAO::VALUE_SEPARATOR, $data['workhistory_countries_visited']);\n if (strlen($val)) {\n $val = CRM_Core_DAO::VALUE_SEPARATOR.$val.CRM_Core_DAO::VALUE_SEPARATOR;\n $params = array();\n $params[1] = array($dao->id, 'Integer');\n $params[2] = array($val, 'String');\n CRM_Core_DAO::executeQuery($sql, $params);\n }\n }\n }\n civicrm_api3('Cvmutation', 'post', array('contact_id' => $contact_id));\n}", "title": "" }, { "docid": "d9c0a132d5ccd25008e5e7babda1adb9", "score": "0.59976715", "text": "function get_history($id, $cur_tab_id, $rel_tab_id, $actions)\n\t{\n\t\t\tglobal $log;\n\t\t\t$log->debug(\"Entering get_history(\".$id.\") method ...\");\n\t\t\t$query = \"SELECT vtiger_activity.activityid, vtiger_activity.subject, vtiger_activity.status,\n\t\tvtiger_activity.eventstatus, vtiger_activity.activitytype,vtiger_activity.date_start, \n\t\tvtiger_activity.due_date, vtiger_activity.time_start,vtiger_activity.time_end,\n\t\tvtiger_crmentity.modifiedtime, vtiger_crmentity.createdtime, \n\t\tvtiger_crmentity.description,case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end as user_name \n\t\t\t\tfrom vtiger_activity\n\t\t\t\tinner join vtiger_seactivityrel on vtiger_seactivityrel.activityid=vtiger_activity.activityid\n\t\t\t\tinner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_activity.activityid\n\t\t\t\tleft join vtiger_groups on vtiger_groups.groupid=vtiger_crmentity.smownerid\n\t\t\t\tleft join vtiger_users on vtiger_users.id=vtiger_crmentity.smownerid\n\t\t\t\twhere (vtiger_activity.activitytype = 'Meeting' or vtiger_activity.activitytype='Call' or vtiger_activity.activitytype='Task')\n\t\t\t\tand (vtiger_activity.status = 'Completed' or vtiger_activity.status = 'Deferred' or (vtiger_activity.eventstatus = 'Held' and vtiger_activity.eventstatus != ''))\n\t\t\t\tand vtiger_seactivityrel.crmid=\".$id.\"\n and vtiger_crmentity.deleted = 0\";\n\t\t//Don't add order by, because, for security, one more condition will be added with this query in include/RelatedListView.php\n\n\t\t$log->debug(\"Exiting get_history method ...\");\n\t\treturn getHistory('CobroPago',$query,$id);\n\t}", "title": "" }, { "docid": "3ad87efe51c84311dd1619aba702be84", "score": "0.55596554", "text": "public function GetComHistory($id)\n\t{\n\t\t$this->db->select(\"*\");\n\t\t$this->db->from(\"tbl_comissions\");\n\t\t$this->db->where(\"member_id\",$id);\n\t\t$query=$this->db->get();\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "5c377c5009c0a79b62d8b959c1759384", "score": "0.55394715", "text": "public function getHistory(User_Model_Row_Account $account) {\r\n\t\r\n\t}", "title": "" }, { "docid": "bf035fb894677f6811546b717e362e53", "score": "0.54435486", "text": "public function history($id) {\n return Contragent::history($id);\n }", "title": "" }, { "docid": "f6fffb4bf7ff5415aeebe0b071b24ea8", "score": "0.5410972", "text": "public function get_history($data){\r\n\t\t$symbol \t\t= empty($data['id']) \t\t\t? \"\" \t\t: $data['id'];\r\n\t\t$symbol \t\t= is_array($symbol) \t\t? implode(\",\", $symbol) : $symbol;\r\n\r\n\t\t$period \t\t= empty($data['period']) \t? \"1h\" \t: $data['period'];\r\n\t\t$limit \t\t\t= empty($data['limit']) \t\t? \"1\" \t: $data['limit'];\r\n\t\t$from \t\t\t= empty($data['from']) \t\t? \"\" \t\t: $data['from'];\r\n\t\t$to \t\t\t\t= empty($data['to']) \t\t\t? \"\" \t\t: $data['to'];\r\n\r\n\t\tif(!$this->check_api_key())\r\n\t\t\treturn $this->api_message;\r\n\r\n\t\tif(empty($symbol))\r\n\t\t\treturn false;\r\n\r\n\t\t$symbol_id = $this->check_symbol_id($symbol); // id or symbol\r\n\r\n\t\t$params \t= array();\r\n\t\t$params[$symbol_id] \t= $symbol; // ID/symbol\r\n\t\t$params['period'] \t\t= $period;\r\n\t\t$params['level'] \t\t= $limit;\r\n\r\n\r\n\t\tif(!empty($from) && !empty($to)){\r\n\t\t\t$params['from'] \t\t= $from;\r\n\t\t\t$params['to'] \t\t= $to;\r\n\t\t}\r\n\r\n\t\t$link = $this->basic_url.\"/history\";\r\n\t\treturn $this->response($link, $params);\r\n\t}", "title": "" }, { "docid": "8b9d8c30a92ede0325fea13e05cc04da", "score": "0.53963584", "text": "function getCall($id) {\n\n $sql=\"select T.*,W.finishdate as wvldate,W.id as wvlid from contact_events T left join wiedervorlage W on W.tellid=T.id where T.id=$id\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n\n if(!$rs) {\n $daten=false;\n } else {\n $daten[\"Datum\"]=db2date(substr($rs[0][\"calldate\"],0,10));\n $daten[\"Zeit\"]=substr($rs[0][\"calldate\"],11,5);\n $daten[\"Betreff\"]=$rs[0][\"cause\"];\n $daten[\"Kontakt\"]=$rs[0][\"type_of_contact\"];\n// $c_cause=ereg_replace(\"<br />\",\"\",$rs[0][\"cause_long\"]);\n $c_cause=preg_replace(\"<br />\",\"\",$rs[0][\"cause_long\"]);\n $c_cause=stripslashes($c_cause);\n $daten[\"cause_long\"]=$c_cause;\n\n $daten[\"CID\"]=$rs[0][\"caller_id\"];\n $daten[\"inout\"]=$rs[0][\"inout\"];\n $daten[\"Bezug\"]=$rs[0][\"contact_reference\"];\n $daten[\"wvldate\"]=db2date(substr($rs[0][\"wvldate\"],0,10));\n $daten[\"wvlid\"]=$rs[0][\"wvlid\"];\n $daten[\"employee\"]=$rs[0][\"employee\"];\n $daten[\"DateiID\"]=$rs[0][\"document\"];\n if ($rs[0][\"document\"]==1) {\n $daten[\"Files\"]=getAllDokument($id);\n $daten[\"Datei\"]=1;\n } else if ($rs[0][\"document\"]>1) {\n $dat=getDokument($rs[0][\"document\"]);\n if ($dat) {\n $daten[\"Kunde\"]=($dat[\"kunde\"]>0)?$dat[\"kunde\"]:$dat[\"employee\"];\n $daten[\"Datei\"]=$dat[\"filename\"];\n $daten[\"Dpfad\"]=$dat[\"pfad\"];\n $daten[\"DCaption\"]=$dat[\"descript\"];\n } else {\n $daten[\"Dpfad\"]=\"\";\n $daten[\"Datei\"]=\"\";\n $daten[\"DCaption\"]=\"\";\n $daten[\"Kunde\"]=\"\";\n }\n } else {\n $daten[\"Dpfad\"]=\"\";\n $daten[\"Datei\"]=\"\";\n $daten[\"DCaption\"]=\"\";\n $daten[\"Kunde\"]=\"\";\n }\n $daten[\"ID\"]=$id;\n $daten[\"history\"]=getCntCallHist($id);\n }\n return $daten;\n}", "title": "" }, { "docid": "8c4cb46f87d17bbde90ce79a504544c5", "score": "0.53744125", "text": "public function get_history() {\r\n\t\t$db = $this->db;\r\n\t\treturn $db->get_history_data();\r\n\t}", "title": "" }, { "docid": "596114f48547b534630b55992e26a529", "score": "0.5330707", "text": "public function getRowHistory(int $rowId) : array;", "title": "" }, { "docid": "cc4d0b3aad38b20a501a3c02a5245d20", "score": "0.53019005", "text": "function getEmailsRelatedLeads($record_id)\n{\n\tglobal $log;\n\t$log->debug(\"Entering getEmailsRelatedLeads(\".$record_id.\") method ...\");\n\tglobal $adb;\n\t$query = \"select vtiger_seactivityrel.crmid from vtiger_seactivityrel inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_seactivityrel.crmid where vtiger_crmentity.setype='Leads' and activityid=\".$record_id;\n\t$result = $adb->query($query);\n\t$leadid=$adb->query_result($result,0,'crmid');\n\t$log->debug(\"Exiting getEmailsRelatedLeads method ...\");\n\treturn $leadid;\n}", "title": "" }, { "docid": "ea366f604c91a462250f5e5416dc4d58", "score": "0.52731913", "text": "function si_get_invoice_history( $id = 0 ) {\n\t\tif ( ! $id ) {\n\t\t\t$id = get_the_ID();\n\t\t}\n\t\t$invoice = SI_Invoice::get_instance( $id );\n\t\treturn apply_filters( 'si_get_invoice_history', $invoice->get_history(), $invoice );\n\t}", "title": "" }, { "docid": "91a57f74d37c4e68e5ad7887a4808291", "score": "0.52622086", "text": "public function returnComplaintHistoryDetail($res, $UserProfileId) {\r\n $ComplaintHistoryId = $res['ComplaintHistoryId'];\r\n $ComplaintId = $res['ComplaintId'];\r\n $ParentComplaintHistoryId = $res['ParentComplaintHistoryId'];\r\n $AddedBy = $res['AddedBy'];\r\n \r\n $HistoryTitle = (($res['HistoryTitle'] != NULL) ? $res['HistoryTitle'] : \"\");\r\n $HistoryDescription = (($res['HistoryDescription'] != NULL) ? $res['HistoryDescription'] : \"\");\r\n $HistoryStatus = $res['HistoryStatus'];\r\n\r\n $AddedOn = return_time_ago($res['AddedOn']);\r\n\r\n $ComplaintHistoryProfile = $this->User_Model->getMinimumUserProfileInformation($AddedBy, $UserProfileId);\r\n $ComplaintHistoryAttachment = $this->getComplaintHistoryAttachment($ComplaintHistoryId, $UserProfileId);\r\n\r\n $ComplaintHistoryHistory = $this->getComplaintHistoryDetail($ParentComplaintHistoryId, $UserProfileId);\r\n\r\n $data_array = array(\r\n \"ComplaintHistoryId\" => $ComplaintHistoryId,\r\n \"ComplaintId\" => $ComplaintId,\r\n \"ParentComplaintHistoryId\" => $ParentComplaintHistoryId,\r\n \"HistoryTitle\" => $HistoryTitle,\r\n \"HistoryDescription\" => $HistoryDescription,\r\n \"HistoryStatus\" => $HistoryStatus,\r\n \"AddedOn\" => $AddedOn,\r\n \"AddedOnTime\" => $res['AddedOn'],\r\n \"ComplaintHistoryProfile\" => $ComplaintHistoryProfile,\r\n \"ComplaintHistoryAttachment\" => $ComplaintHistoryAttachment,\r\n \"ComplaintHistoryHistory\" => $ComplaintHistoryHistory,\r\n );\r\n return $data_array;\r\n }", "title": "" }, { "docid": "f30e7089b0d4ab9a0d4387399e9625a9", "score": "0.52512574", "text": "function get_history($id,$options=null)\r\n\t{\r\n\t\t$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;\r\n\t\t$my['options'] = array('output' => \"map\", 'decode_user' => false, 'order_by_dir' => 'DESC');\r\n \t$my['options'] = array_merge($my['options'], (array)$options);\r\n\r\n\t\t$labels['undefined'] = lang_get('undefined');\r\n\t\t$sql = \t\"/* $debugMsg */\" .\r\n \t\t\t\" SELECT RSREV.id AS revision_id, RSREV.revision,\" .\r\n \t\t\t\"\t\t RSREV.creation_ts, RSREV.author_id, \" .\r\n\t\t\t\t\"\t\t RSREV.modification_ts, RSREV.modifier_id, \" . \r\n \t\t\t\" \t\t RSREV.revision, RSREV.scope, \" .\r\n \t\t\t\" \t\t RSREV.status,RSREV.type,RSREV.name, RSREV.doc_id, \" .\r\n \t\t\t\" COALESCE(RSREV.log_message,'') AS log_message\" .\r\n// \t\t\t\" FROM {$this->tables['req_specs_revisions']} RSREV \" .\r\n \t\t\t\" FROM \".$this->db->get_table('req_specs_revisions').\" RSREV \" .\r\n\t\t\t\t\" WHERE RSREV.parent_id = {$id} \" .\r\n\t\t\t\t\" ORDER BY RSREV.revision {$my['options']['order_by_dir']} \";\r\n\t\t\t\t\r\n\t\t\r\n\t\tswitch($my['options']['output'])\r\n\t\t{\r\n\t\t\tcase 'map':\r\n \t\t\t$rs = $this->db->fetchRowsIntoMap($sql,'revision_id');\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'array':\r\n\t\t\t\t$rs = $this->db->get_recordset($sql);\r\n\t\t\tbreak;\r\n\t\t}\r\n \t\t\r\n \t\tif( !is_null($rs) )\r\n \t\t{\r\n \t\t\t$key2loop = array_keys($rs);\r\n \t\t\tforeach($key2loop as $ap)\r\n \t\t\t{\r\n \t\t\t\t$rs[$ap]['item_id'] = $rs[$ap]['revision_id'];\r\n \t\t\t\t\r\n \t\t\t\t// IMPORTANT NOTICE\r\n \t\t\t\t// each DBMS uses a different (unfortunatelly) way to signal NULL DATE\r\n \t\t\t\t//\r\n \t\t\t\t// We need to Check with ALL DB types\r\n\t\t\t\t// MySQL NULL DATE -> \"0000-00-00 00:00:00\" \r\n\t\t\t\t// Postgres NULL DATE -> NULL\r\n\t\t\t\t// MSSQL NULL DATE - ???\r\n\t\t\t\t$key4date = 'creation_ts';\r\n\t\t\t\t$key4user = 'author_id';\r\n\t\t\t\tif( ($rs[$ap]['modification_ts'] != '0000-00-00 00:00:00') && !is_null($rs[$ap]['modification_ts']) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$key4date = 'modification_ts';\r\n\t\t\t\t\t$key4user = 'modifier_id';\r\n\t\t\t\t}\r\n \t\t\t\t$rs[$ap]['timestamp'] = $rs[$ap][$key4date];\r\n \t\t\t\t$rs[$ap]['last_editor'] = $rs[$ap][$key4user];\r\n \t\t\t\t// decode user_id for last_editor\r\n \t\t\t\t$user = tlUser::getByID($this->db,$rs[$ap]['last_editor']);\r\n \t\t\t\t$rs[$ap]['last_editor'] = $user ? $user->getDisplayName() : $labels['undefined'];\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t$history = $rs;\r\n \t\tif( $my['options']['decode_user'] && !is_null($history) )\r\n \t\t{\r\n \t\t\t$this->decode_users($history);\r\n\t\t}\r\n \r\n \treturn $history;\r\n\t}", "title": "" }, { "docid": "c1bda44463d09776f943072f1b558596", "score": "0.5243374", "text": "public function getHistory()\n\t{\n\t\tif (empty( $this->_data ))\n\t\t{\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_data = $this->_getList($query);\n\t\t}\n\n\t\treturn $this->_data;\n\t}", "title": "" }, { "docid": "5bff2962885c0ed3cbc866619f60ddd5", "score": "0.52004427", "text": "function get_payment_history($id)\n\t{\t\n\t\tglobal $log;\n\t\t$log->debug(\"Entering get_stage_history(\".$id.\") method ...\");\n\n\t\tglobal $adb;\n\t\tglobal $mod_strings;\n\t\tglobal $app_strings;\n\n\t\t$query = 'select vtiger_potstagehistory.*, vtiger_cobropago.reference from vtiger_potstagehistory inner join vtiger_cobropago on vtiger_cobropago.cobropagoid = vtiger_potstagehistory.cobropagoid inner join vtiger_crmentity on vtiger_crmentity.crmid = vtiger_cobropago.cobropagoid where vtiger_crmentity.deleted = 0 and vtiger_cobropago.cobropagoid = ?';\n\t\t$result=$adb->pquery($query, array($id));\n\t\t$noofrows = $adb->num_rows($result);\n\n\t\t$header[] = $app_strings['LBL_AMOUNT'];\n\t\t$header[] = $app_strings['LBL_SALES_STAGE'];\n\t\t$header[] = $app_strings['LBL_PROBABILITY'];\n\t\t$header[] = $app_strings['LBL_CLOSE_DATE'];\n\t\t$header[] = $app_strings['LBL_LAST_MODIFIED'];\n\n\t\t//Getting the field permission for the current user. 1 - Not Accessible, 0 - Accessible\n\t\t//Sales Stage, Expected Close Dates are mandatory fields. So no need to do security check to these fields.\n\t\tglobal $current_user;\n\n\t\t//If field is accessible then getFieldVisibilityPermission function will return 0 else return 1\n\t\t$amount_access = (getFieldVisibilityPermission('CobroPago', $current_user->id, 'amount') != '0')? 1 : 0;\n\t\t$probability_access = (getFieldVisibilityPermission('CobroPago', $current_user->id, 'probability') != '0')? 1 : 0;\n\t\t$picklistarray = getAccessPickListValues('CobroPago');\n\n\t\t$potential_stage_array = $picklistarray['sales_stage'];\n\t\t//- ==> picklist field is not permitted in profile\n\t\t//Not Accessible - picklist is permitted in profile but picklist value is not permitted\n\t\t$error_msg = 'Not Accessible';\n\n\t\twhile($row = $adb->fetch_array($result))\n\t\t{\n\t\t\t$entries = Array();\n\n\t\t\t$entries[] = ($amount_access != 1)? $row['amount'] : 0;\n\t\t\t$entries[] = (in_array($row['stage'], $potential_stage_array))? $row['stage']: $error_msg;\n\t\t\t$entries[] = ($probability_access != 1) ? $row['probability'] : 0;\n\t\t\t$entries[] = getDisplayDate($row['closedate']);\n\t\t\t$entries[] = getDisplayDate($row['lastmodified']);\n\n\t\t\t$entries_list[] = $entries;\n\t\t}\n\n\t\t$return_data = Array('header'=>$header,'entries'=>$entries_list);\n\n\t \t$log->debug(\"Exiting get_stage_history method ...\");\n\n\t\treturn $return_data;\n\t}", "title": "" }, { "docid": "22325d5fb24a49b0744c2739128a03ec", "score": "0.51815325", "text": "public function getHistory ($APP_ID, $CASE_ID)\n {\n\n $html = \"<table border='0' cellpadding='0' cellspacing='0'>\";\n $sw_add = false;\n\n $audits = $this->objMysql->_select (\"audit\", [], [\"project_id\" => $APP_ID, \"case_id\" => $CASE_ID]);\n\n foreach ($audits as $audit) {\n $sql2 = \"SELECT usrid, firstName, lastName, CONCAT(lastName, ' ', firstName) AS USR_NAME FROM user_management.poms_users WHERE username = ?\";\n $result2 = $this->objMysql->_query ($sql2, [$audit['username']]);\n\n if ( isset ($result2[0]) && !empty ($result2[0]) )\n {\n $username = $result2[0]['USR_NAME'];\n $userId = $result2[0]['usrid'];\n $firstName = $result2[0]['firstName'];\n $lastName = $result2[0]['lastName'];\n }\n\n $changedValues = unserialize ($audit['message']);\n\n foreach ($changedValues as $key => $value) {\n if ( ($value != null) && (!is_array ($value)) )\n {\n $sw_add = true;\n $html.=\"<tr>\";\n $html.=\"<td><b>$key:</b> </td>\";\n $html.=\"<td>$value</td>\";\n $html.=\"</tr>\";\n }\n if ( is_array ($value) )\n {\n $html.=\"<tr>\";\n $html.=\"<td><b>$key (grid):</b> </td>\";\n $html.=\"<td>\";\n $html.=\"<table>\";\n foreach ($value as $key1 => $value1) {\n $html.=\"<tr>\";\n $html.=\"<td><b>$key1</b></td>\";\n $html.=\"<td>\";\n if ( is_array ($value1) )\n {\n $sw_add = true;\n $html.=\"<table>\";\n foreach ($value1 as $key2 => $value2) {\n $html.=\"<tr>\";\n $html.=\"<td><b>$key2</b></td>\";\n $html.=\"<td>$value2</td>\";\n $html.=\"</tr>\";\n }\n $html.=\"</table>\";\n }\n $html.=\"</td>\";\n $html.=\"</tr>\";\n }\n $html.=\"</table>\";\n $html.=\"</td>\";\n $html.=\"</tr>\";\n $html.=\"</td>\";\n\n if ( $sw_add )\n {\n $aDynHistory[] = $audit;\n }\n }\n }\n }\n\n $html.=\"</table>\";\n\n $aDynHistory['FIELDS'] = $html;\n\n\n return $aDynHistory;\n }", "title": "" }, { "docid": "0c35c0d0cbe28382d304fbc9afd1284b", "score": "0.5175811", "text": "public function get_history( $type = '' ) {\n\t\treturn SI_Record::get_records_by_association( $this->ID );\n\t}", "title": "" }, { "docid": "837c73e6f1e935a137473325bace8610", "score": "0.51635677", "text": "function getEmailsRelatedAccounts($record_id)\n{\n\tglobal $log;\n\t$log->debug(\"Entering getEmailsRelatedAccounts(\".$record_id.\") method ...\");\n\tglobal $adb;\n\t$query = \"select vtiger_seactivityrel.crmid from vtiger_seactivityrel inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_seactivityrel.crmid where vtiger_crmentity.setype='Accounts' and activityid=\".$record_id;\n\t$result = $adb->query($query);\n\t$accountid=$adb->query_result($result,0,'crmid');\n\t$log->debug(\"Exiting getEmailsRelatedAccounts method ...\");\n\treturn $accountid;\n}", "title": "" }, { "docid": "b57a1357e24e04c83230b8777e55a9ea", "score": "0.51591", "text": "public function getFriendsWorkHistory() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"friends_work_history\");\n\t}", "title": "" }, { "docid": "44c669c5ca4c7d0b9a01a852e2232a94", "score": "0.51540613", "text": "public function actionWorkhistory()\n {\n if(isset($_GET['update']) && !Yii::app()->user->isGuest)\n {\n $linkedin = new LinkedIn(array(\n 'appKey' => Yii::app()->params['linkedinAppKey'],\n 'appSecret' => Yii::app()->params['linkedinAppSecret']\n ));\n $linkedin->setTokenAccess(array(\n 'oauth_token' => Yii::app()->params['linkedinOauthToken'],\n 'oauth_token_secret' => Yii::app()->params['linkedinOauthTokenSecret']\n ));\n $linkedin->setResponseFormat(LINKEDIN::_RESPONSE_JSON);\n $positions = $linkedin->profile('~:(positions)');\n $positions = json_decode($positions['linkedin'])->positions->values;\n\n $model = new Position();\n $model->deleteAll('1=1');\n $successfullyInserted = 0;\n foreach($positions as $position)\n {\n $model->attributes=array(\n 'title'=>$position->title,\n 'summary'=>$position->summary,\n 'startdate'=>$position->startDate->year.'-'.(($position->startDate->month < 10) ? '0'.$position->startDate->month : $position->startDate->month),\n 'enddate'=>($position->endDate) ? ($position->endDate->year.'-'.(($position->endDate->month < 10) ? '0'.$position->endDate->month : $position->endDate->month)) : '',\n 'companyname'=>$position->company->name,\n 'companysize'=>$position->company->size,\n 'companyindustry'=>$position->company->industry,\n );\n $model->setPrimaryKey(null);\n $model->setIsNewRecord(true);\n if($model->insert())$successfullyInserted++;\n }\n Yii::app()->user->setFlash('positions',\"$successfullyInserted out of \".count($positions).\" positions added to the db.\");\n $this->redirect($this->createUrl('/site/workhistory'));\n }\n $dataProvider = new CActiveDataProvider('Position');\n $this->render('workhistory',array('dataProvider'=>$dataProvider));\n }", "title": "" }, { "docid": "eb3449d58feb5e80b4519bba5b303412", "score": "0.5110406", "text": "public function getComplaintHistory($ComplaintId, $UserProfileId) {\r\n $complaint_history_detail = array();\r\n if(isset($ComplaintId) && $ComplaintId > 0) {\r\n\r\n $query = $this->db->query(\"SELECT ComplaintHistoryId FROM $this->complaintHistoryTbl WHERE ComplaintId = '\".$ComplaintId.\"' ORDER BY AddedOn DESC\");\r\n\r\n $res = $query->result_array();\r\n foreach($res AS $key => $result) {\r\n $complaint_history_detail[] = $this->getComplaintHistoryDetail($result['ComplaintHistoryId'], $UserProfileId);\r\n }\r\n\r\n } else {\r\n $complaint_history_detail = array();\r\n }\r\n return $complaint_history_detail;\r\n }", "title": "" }, { "docid": "de35ecb54c5801d689ccd2148bad3c2f", "score": "0.5100225", "text": "public function get_account_history($account_id, $limit = 1000)\n {\n $d = $this->_send_request('accounts/' . $account_id . '/history?limit=' . $limit, 'get_account_history');\n return (isset($d['history']['event'])) ? $d['history']['event'] : false; \n }", "title": "" }, { "docid": "2bb059dabdb6c2c6d27f2d104bf0d87e", "score": "0.50895375", "text": "public function getTicketHistoryById($ticket_id=0) {\n\t\t$ticket = $this->getTicketById($ticket_id);\n\n\t\t$this->db->select('*');\n\t\t$this->db->where('ticket_id', $ticket_id);\n\t\t$this->db->where('group_id', $this->group_model->getCurrentGroupId());\n\t\t$this->db->order_by('inserted_ts', 'DESC');\n\t\t$query = $this->db->get('ticket_history');\n\n\t\t$ticket_history = $query->result();\n\t\treturn $ticket_history;\n\t}", "title": "" }, { "docid": "aff2e9965ee7b6311f9cd3e20c966379", "score": "0.50731283", "text": "public function getAssetHistoryData($customerid, $assetid, $size, $start, $field, $order, $filter, $params) {\n \n \n \n $this->db->select('ah.asset_history_id');\n $this->db->from('asset_history ah');\n $this->db->join('asset_activity ac', 'ac.asset_activity_id=ah.activity_category', 'left');\n $this->db->where('ah.asset_id', $assetid);\n foreach ($params as $fn=> $fv) {\n if ($fv != '') {\n $this->db->where($fn, $fv);\n }\n }\n \n if ($filter != '') {\n \n }\n \n \n \n $trows = count($this->db->get()->result_array());\n \n $this->db->select('ah.jobid, ah.poref, ah.activity_date, ah.activity_description, ah.activity_category, ac.activity_name, ah.activity_date');\n \n $this->db->from('asset_history ah');\n $this->db->join('asset_activity ac', 'ac.asset_activity_id=ah.activity_category', 'left');\n $this->db->where('ah.asset_id', $assetid);\n foreach ($params as $fn=> $fv) {\n if ($fv != '') {\n $this->db->where($fn, $fv);\n }\n }\n \n if ($filter != '') {\n }\n \n if($size != NULL){\n $this->db->limit($size, $start);\n }\n \n if ($field != '') {\n $this->db->order_by($field, $order);\n }\n \n $data = array(\n 'trows' => $trows, \n 'data' => $this->db->get()->result_array()\n );\n\n $this->LogClass->log('Get Asset History Data Query : '. $this->db->last_query());\n\n return $data;\n }", "title": "" }, { "docid": "c04f89ea026cedaa9e5686e370d14381", "score": "0.50599784", "text": "public static function getAddressHistory($personId, $addressType)\r\n {\r\n $db = JFactory::getDbo();\r\n $query = $db->getQuery(true);\r\n $query->select('street AS street_'.$addressType.', additional_address AS additional_address_'.$addressType.','.\r\n\t 'city AS city_'.$addressType.', postcode AS postcode_'.$addressType.', phone AS phone_'.$addressType.','.\r\n\t\t 'mobile AS mobile_'.$addressType.', fax AS fax_'.$addressType.', cee AS cee_'.$addressType.','.\r\n\t\t 'country_code AS country_code_'.$addressType.', created AS created_'.$addressType.','.\r\n\t\t 'created_by AS created_by_'.$addressType.', modified AS modified_'.$addressType.','.\r\n\t\t 'modified_by AS modified_by_'.$addressType);\r\n\r\n //Gets some extra columns according to the address type.\r\n if($addressType == 'pa') {\r\n $query->select('employer_name AS employer_name_pa, email AS email_pa');\r\n }\r\n else { //ha\r\n $query->select('sripf_id AS sripf_id_ha');\r\n }\r\n\r\n $query->from('#__snipf_address')\r\n\t ->where('person_id='.(int)$personId)\r\n\t ->where('type='.$db->Quote($addressType))\r\n\t //Fetches the addresses in the history.\r\n\t ->where('history=1')\r\n\t ->order('created DESC');\r\n $db->setQuery($query);\r\n\r\n return $db->loadObjectList();\r\n }", "title": "" }, { "docid": "58c01fb32d0279f1ee0da869c12065ae", "score": "0.50592947", "text": "public static function getQuery($recordId, $moduleName, $type)\n\t{\n\t\t$queries = [];\n\t\t$db = App\\Db::getInstance();\n\t\tif (\\in_array('Calendar', $type) && ($field = current(\\Vtiger_Module_Model::getInstance('Calendar')->getReferenceFieldsForModule($moduleName)))) {\n\t\t\t$query = (new \\App\\Db\\Query())\n\t\t\t\t->select([\n\t\t\t\t\t'body' => new \\yii\\db\\Expression($db->quoteValue('')),\n\t\t\t\t\t'attachments_exist' => new \\yii\\db\\Expression($db->quoteValue('')),\n\t\t\t\t\t'type' => new \\yii\\db\\Expression($db->quoteValue('Calendar')),\n\t\t\t\t\t'id' => 'vtiger_crmentity.crmid',\n\t\t\t\t\t'content' => 'a.subject',\n\t\t\t\t\t'user' => 'vtiger_crmentity.smownerid',\n\t\t\t\t\t'time' => new \\yii\\db\\Expression('CONCAT(a.date_start, ' . $db->quoteValue(' ') . ', a.time_start)'),\n\t\t\t\t])\n\t\t\t\t->from('vtiger_activity a')\n\t\t\t\t->innerJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = a.activityid')\n\t\t\t\t->where(['vtiger_crmentity.deleted' => 0])\n\t\t\t\t->andWhere(['=', 'a.' . $field->getColumnName(), $recordId]);\n\t\t\t\\App\\PrivilegeQuery::getConditions($query, 'Calendar', false, $recordId);\n\t\t\t$queries[] = $query;\n\t\t}\n\t\tif (\\in_array('ModComments', $type)) {\n\t\t\t$query = (new \\App\\Db\\Query())\n\t\t\t\t->select([\n\t\t\t\t\t'body' => new \\yii\\db\\Expression($db->quoteValue('')),\n\t\t\t\t\t'attachments_exist' => new \\yii\\db\\Expression($db->quoteValue('')),\n\t\t\t\t\t'type' => new \\yii\\db\\Expression($db->quoteValue('ModComments')),\n\t\t\t\t\t'id' => 'm.modcommentsid',\n\t\t\t\t\t'content' => 'm.commentcontent',\n\t\t\t\t\t'user' => 'vtiger_crmentity.smownerid',\n\t\t\t\t\t'time' => 'vtiger_crmentity.createdtime',\n\t\t\t\t])\n\t\t\t\t->from('vtiger_modcomments m')\n\t\t\t\t->innerJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = m.modcommentsid')\n\t\t\t\t->where(['vtiger_crmentity.deleted' => 0])\n\t\t\t\t->andWhere(['=', 'related_to', $recordId]);\n\t\t\t\\App\\PrivilegeQuery::getConditions($query, 'ModComments', false, $recordId);\n\t\t\t$queries[] = $query;\n\t\t}\n\t\tif (\\in_array('OSSMailView', $type)) {\n\t\t\t$query = (new \\App\\Db\\Query())\n\t\t\t\t->select([\n\t\t\t\t\t'body' => 'o.content',\n\t\t\t\t\t'attachments_exist',\n\t\t\t\t\t'type' => new \\yii\\db\\Expression('CONCAT(\\'OSSMailView\\', o.ossmailview_sendtype)'),\n\t\t\t\t\t'id' => 'o.ossmailviewid',\n\t\t\t\t\t'content' => 'o.subject',\n\t\t\t\t\t'user' => 'vtiger_crmentity.smownerid',\n\t\t\t\t\t'time' => 'vtiger_crmentity.createdtime',\n\t\t\t\t])\n\t\t\t\t->from('vtiger_ossmailview o')\n\t\t\t\t->innerJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = o.ossmailviewid')\n\t\t\t\t->innerJoin('vtiger_ossmailview_relation r', 'r.ossmailviewid = o.ossmailviewid ')\n\t\t\t\t->where(['vtiger_crmentity.deleted' => 0])\n\t\t\t\t->andWhere(['=', 'r.crmid', $recordId]);\n\t\t\t\\App\\PrivilegeQuery::getConditions($query, 'OSSMailView', false, $recordId);\n\t\t\t$queries[] = $query;\n\t\t}\n\t\tif (1 == \\count($queries)) {\n\t\t\t$sql = reset($queries);\n\t\t} else {\n\t\t\t$subQuery = reset($queries);\n\t\t\t$index = 0;\n\t\t\tforeach ($queries as $query) {\n\t\t\t\tif (0 !== $index) {\n\t\t\t\t\t$subQuery->union($query, true);\n\t\t\t\t}\n\n\t\t\t\t++$index;\n\t\t\t}\n\t\t\tif ($subQuery) {\n\t\t\t\t$sql = (new \\App\\Db\\Query())->from(['records' => $subQuery]);\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn $sql->orderBy(['time' => SORT_DESC]);\n\t}", "title": "" }, { "docid": "d2d8a5580c6de2229c6f199e9dc0b7e3", "score": "0.504252", "text": "public function getHistoryData() {\n \t$result = $this->execute('gethistory');\n if (Session::getConfig()->debugmode) {\n \tHookHandler::getInstance()->fire(\"onDebug\", \"getHistoryData :: nothing returned by inverter result=\" + $result);\n }\n \n //return $result;\n return null;\n }", "title": "" }, { "docid": "a87f51641c9fe7be150216d91d231e0d", "score": "0.5038644", "text": "public function GetPayHistory($id)\n\t{\n\t\t$this->db->select(\"*\");\n\t\t$this->db->from(\"tbl_payout_history\");\n\t\t$this->db->where(\"member_id\",$id);\n\t\t$query=$this->db->get();\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "3b2ff7bb3eadfecc4ae602dadbcdf789", "score": "0.5034146", "text": "function getHelpDeskRelatedAccounts($record_id)\n{\n\tglobal $log;\n\t$log->debug(\"Entering getHelpDeskRelatedAccounts(\".$record_id.\") method ...\");\n\tglobal $adb;\n $query=\"select parent_id from vtiger_troubletickets inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_troubletickets.parent_id where ticketid=\".$record_id.\" and vtiger_crmentity.setype='Accounts'\";\n $result=$adb->query($query);\n $accountid=$adb->query_result($result,0,'parent_id');\n\t$log->debug(\"Exiting getHelpDeskRelatedAccounts method ...\");\n return $accountid;\n}", "title": "" }, { "docid": "6717155a69c758a18b59e843ff876160", "score": "0.5028636", "text": "public function getHistoricalCall($data = array())\r\n {\r\n if(!empty($data)) {\r\n $this->db->where($data);\r\n }\r\n $query = $this->db->get('lead_historical_calls');\r\n return $query->result_array();\r\n }", "title": "" }, { "docid": "f1baa164d8b9a71b410aeeb9848cc61d", "score": "0.5015674", "text": "public function getHistory($params);", "title": "" }, { "docid": "77b1436a55c0028d866906293a2be3ac", "score": "0.50135505", "text": "function history() {\n if($this->history === false) {\n $this->history = new IHistoryImplementation($this, array('company_id', 'company_name', 'company_address', 'currency_id', 'language_id', 'note', 'private_note', 'status'));\n } // if\n\n return $this->history;\n }", "title": "" }, { "docid": "3d27548c9d00c1511f710c03129471ff", "score": "0.5004401", "text": "public function history($id)\n {\n if (empty($this->table)) throw new Exception(\"No table argument specified\");\n if (!isset($id)) list($id) = $this->getGetVars();\n if (!isset($id)) throw new Exception(\"No id argument specified\");\n \n $id_col = $this->td->getFieldProperty('#role:id', 'name_db');\n $rev_future = DB::i()->query(\"SELECT xql_forest('revision' AS `xql:root`, `r`.`_revision_` AS `this`, `r`.`_revision_previous` AS `previous`, `r`.`_revision_current` AS `current`, `r`.`_revision_time_activate` AS `time_activate`, `r`.`_revision_comment` AS `xql:cdata:comment`, `r`.`_revision_action` AS `action`, xql_element('user', revuser.fullname, revuser.id, revuser.user AS `username`), `r`.`_revision_timestamp` AS `timestamp`, `r`.`_revision_log` AS `xql:cdata:log`) FROM `_revision_-{$this->table}` AS `r` LEFT JOIN `user` AS `revuser` ON `r`.`_revision_user_id`=`revuser`.`id` WHERE `r`.`$id_col`=? AND `r`.`_revision_time_activate` IS NOT NULL AND `r`.`_revision_time_activate` != '9999-12-30' ORDER BY `r`.`_revision_time_activate` DESC\", $id)->getColumn();\n $rev_history = DB::i()->query(\"SELECT xql_forest('revision' AS `xql:root`, `r`.`_revision_` AS `this`, `r`.`_revision_previous` AS `previous`, `r`.`_revision_current` AS `current`, `h`.`_revision_time_activate` AS `time_activate`, `r`.`_revision_comment` AS `xql:cdata:comment`, `r`.`_revision_action` AS `action`, xql_element('user', revuser.fullname, revuser.id, revuser.user AS `username`), `r`.`_revision_timestamp` AS `timestamp`, `r`.`_revision_log` AS `xql:cdata:log`) FROM `_revision_-{$this->table}-_history_` AS `h` INNER JOIN `_revision_-{$this->table}` AS `r` ON `h`.`_revision_`=`r`.`_revision_` LEFT JOIN `user` AS `revuser` ON `r`.`_revision_user_id`=`revuser`.`id` WHERE `r`.`$id_col`=? ORDER BY `h`.`_revision_time_activate` DESC\", $id)->getColumn();\n \n $xml = \"<history table=\\\"{$this->table}\\\" id=\\\"$id\\\">\" . join(\"\\n\", (array)$rev_future) . join(\"\\n\", (array)$rev_history) . \"</history>\";\n self::outputXML($xml);\n }", "title": "" }, { "docid": "6292084e1067691366dbf62956e43f3b", "score": "0.50013393", "text": "function joinLatestActivityFromContact() {\n if(!$this->isTableSelected('civicrm_activity')) {\n return;\n }\n static $tmpTableName = null;\n if(empty($tmpTableName)){\n\n $tmpTableName = 'civicrm_report_temp_lastestActivity' . date('his') . rand(1, 1000);\n $targetTable = 'civicrm_report_temp_target' . date('his') . rand(1, 1000);\n $assigneeTable = 'civicrm_report_temp_assignee' . date('his') . rand(1, 1000);\n $sql = \"CREATE {$this->_temporary} TABLE $tmpTableName\n (\n `contact_id` INT(10) NULL,\n `id` INT(10) NULL,\n `activity_type_id` VARCHAR(50) NULL,\n `activity_date_time` DATETIME NULL,\n PRIMARY KEY (`contact_id`)\n )\n ENGINE=HEAP;\";\n CRM_Core_DAO::executeQuery($sql);\n\n if($this->isActivityContact()) {\n $sql= \"\n REPLACE INTO $tmpTableName\n SELECT contact_id, a.id, activity_type_id, activity_date_time\n FROM\n ( SELECT contact_id, a.id, activity_type_id, activity_date_time FROM\n civicrm_activity_contact ac\n LEFT JOIN civicrm_activity a ON a.id = ac.activity_id\n ORDER BY contact_id, activity_date_time DESC\n ) as a\n GROUP BY contact_id\n \";\n CRM_Core_DAO::executeQuery($sql);\n }\n else {\n $sql = \"\n CREATE TABLE $assigneeTable\n (\n `contact_id` INT(10) NULL,\n `id` INT(10) NULL,\n `activity_type_id` VARCHAR(50) NULL,\n `activity_date_time` DATETIME NULL,\n PRIMARY KEY (`contact_id`)\n )\n ENGINE=HEAP;\";\n\n CRM_Core_DAO::executeQuery($sql);\n $sql = \"\n CREATE TABLE $targetTable\n (\n `contact_id` INT(10) NULL,\n `id` INT(10) NULL,\n `activity_type_id` VARCHAR(50) NULL,\n `activity_date_time` DATETIME NULL,\n PRIMARY KEY (`contact_id`)\n )\n ENGINE=HEAP;\";\n CRM_Core_DAO::executeQuery($sql);\n\n $sql= \"\n REPLACE INTO $tmpTableName\n SELECT source_contact_id as contact_id, max(id), activity_type_id, activity_date_time\n FROM civicrm_activity\n GROUP BY source_contact_id, activity_date_time DESC\n \";\n CRM_Core_DAO::executeQuery($sql);\n\n $sql = \"\n REPLACE INTO $assigneeTable\n SELECT assignee_contact_id as contact_id, activity_id as id, a.activity_type_id, a.activity_date_time\n FROM civicrm_activity_assignment aa\n LEFT JOIN civicrm_activity a on a.id = aa.activity_id\n LEFT JOIN $tmpTableName tmp ON tmp.contact_id = aa.assignee_contact_id\n WHERE (a.activity_date_time < tmp.activity_date_time OR tmp.activity_date_time IS NULL)\n GROUP BY assignee_contact_id, a.activity_date_time DESC\n \";\n CRM_Core_DAO::executeQuery($sql);\n\n $sql = \"\n REPLACE INTO $tmpTableName\n SELECT * FROM $assigneeTable\n \";\n CRM_Core_DAO::executeQuery($sql);\n\n $sql = \"\n REPLACE INTO $targetTable\n SELECT target_contact_id as contact_id, activity_id as id, a.activity_type_id, a.activity_date_time\n FROM civicrm_activity_target aa\n LEFT JOIN civicrm_activity a on a.id = aa.activity_id\n LEFT JOIN $tmpTableName tmp ON tmp.contact_id = aa.target_contact_id\n WHERE (a.activity_date_time < tmp.activity_date_time OR tmp.activity_date_time IS NULL)\n GROUP BY target_contact_id, a.activity_date_time DESC\n \";\n\n CRM_Core_DAO::executeQuery($sql);\n $sql = \"\n REPLACE INTO $tmpTableName\n SELECT * FROM $targetTable\n \";\n CRM_Core_DAO::executeQuery($sql);\n }\n }\n $this->_from .= \" LEFT JOIN $tmpTableName {$this->_aliases['civicrm_activity']}\n ON {$this->_aliases['civicrm_activity']}.contact_id = {$this->_aliases['civicrm_contact']}.id\";\n\n }", "title": "" }, { "docid": "3810064b8e143b775eb8772c5b0e5411", "score": "0.50003433", "text": "public function getHistory();", "title": "" }, { "docid": "3810064b8e143b775eb8772c5b0e5411", "score": "0.50003433", "text": "public function getHistory();", "title": "" }, { "docid": "3810064b8e143b775eb8772c5b0e5411", "score": "0.50003433", "text": "public function getHistory();", "title": "" }, { "docid": "5527846977fc1088cded52633601123c", "score": "0.49784145", "text": "function get_customer_history()\n{\n\t$history = [];\n\t$query = \"SELECT \";\n\t$query .= \"t1.first_name AS user_first, t1.last_name AS user_last, \";\n\t$query .= \"t2.first_name AS customer_first, t2.last_name as customer_last, \";\n\t$query .= \"t3.history_date, t3.new_customer, \";\n\t$query .= \"t3.update_data, t3.update_credit, t3.update_payment, \";\n\t$query .= \"t3.new_payment, t3.new_credit, t3.amount \";\n\t$query .= \"FROM customer_history AS t3 \";\n\t$query .= \"LEFT JOIN (user as t1, customer as t2) \";\n\t$query .= \"ON t3.user_id = t1.user_id \";\n\t$query .= \"and t3.customer_id = t2.customer_id \";\n\t$query .= \"ORDER BY t3.history_date DESC\";\n\ttry {\n\t\t$conn = get_connection();\n\t\t$stmt = $conn->query($query);\n\n\t\twhile ($row = $stmt->fetch()) {\n\t\t\t$user_first_name = htmlspecialchars_decode($row['user_first']);\n\t\t\t$user_last_name = $row['user_last'] === 'NULL'\n\t\t\t\t? ''\n\t\t\t\t: htmlspecialchars_decode($row['user_last']);\n\n\t\t\t$customer_first_name = htmlspecialchars_decode($row['customer_first']);\n\t\t\t$customer_last_name = $row['customer_last']\n\t\t\t\t? ''\n\t\t\t\t: htmlspecialchars_decode($row['customer_last']);\n\n\t\t\t$history_date = $row['history_date'];\n\t\t\t$new_customer = $row['new_customer'] === '1' ? true : false;\n\t\t\t$update_data = $row['update_data'] === '1' ? true : false;\n\t\t\t$update_credit = $row['update_credit'] === '1' ? true : false;\n\t\t\t$update_payment = $row['update_payment'] === '1' ? true : false;\n\t\t\t$new_payment = $row['new_payment'] === '1' ? true : false;\n\t\t\t$new_credit = $row['new_credit'] === '1' ? true : false;\n\t\t\t$amount = $row['amount'] === 'NULL' ? 0 : floatval($row['amount']);\n\n\t\t\t$user = $user_first_name . \" \" . $user_last_name;\n\t\t\t$customer = $customer_first_name . \" \" . $customer_last_name;\n\n\t\t\t$history[] = [\n\t\t\t\t'author' => $user,\n\t\t\t\t'customer' => $customer,\n\t\t\t\t'historyDate' => $history_date,\n\t\t\t\t'newCustomer' => $new_customer,\n\t\t\t\t'updateData' => $update_data,\n\t\t\t\t'updateCredit' => $update_credit,\n\t\t\t\t'updatePayment' => $update_payment,\n\t\t\t\t'newPayment' => $new_payment,\n\t\t\t\t'newCredit' => $new_credit,\n\t\t\t\t'amount' => $amount\n\t\t\t];\n\t\t} //Fin de while\n\t} catch (PDOException $e) {\n\t\t$message = \"Error al consultar el reporte anual: {$e->getMessage()}\";\n\t\twrite_error($message);\n\t} //Fin de try-catch\n\treturn $history;\n}", "title": "" }, { "docid": "1f4c942c0dbe50ba987ed8b5056a4262", "score": "0.49710515", "text": "public function getInContact($contactId, $params = [])\n {\n return $this->owner->requestFactory([\n \"method\" => \"GET\",\n \"action\" => \"/contacts/{$contactId}/timelogs\",\n \"params\" => $params,\n ]);\n }", "title": "" }, { "docid": "a4cf56d780409d9e6490b3153d2d69d7", "score": "0.49631596", "text": "function getCallHistory($id,$bezug=false) {\n\n if ($bezug) {\n $sql=\"select * from telcallhistory where bezug=$id order by datum desc\";\n } else {\n $sql=\"select * from telcallhistory where orgid=$id order by datum desc\";\n }\n $rs=$GLOBALS['dbh']->getAll($sql);\n return $rs;\n}", "title": "" }, { "docid": "f632e78e0b502a914116b9a80cf7e979", "score": "0.49601075", "text": "public function getEditHistory($item_id) {\r\n\t\t$this->db->from('inventory_audit');\r\n\t\t$this->db->where('item_id', $item_id);\r\n\t\t$this->db->order_by('date_changed', 'DESC');\r\n\r\n\t\t$query = $this->db->get();\r\n\t\t$history = array();\r\n\t\tif($query->num_rows() > 0) {\r\n\t\t\t$history['num_rows'] = $query->num_rows();\r\n\t\t\tforeach ($query->result_array() as $row) {\r\n\t\t\t\t$history['history'][] = $row;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $history; //array\r\n\t}", "title": "" }, { "docid": "c92fd2e8fa2cd44b4e4e30373b85742c", "score": "0.49572593", "text": "function expert_cv_workhistory_switch($contact_id, $id_1, $id_2) {\n global $user;\n civicrm_initialize();\n $record_1 = _expert_cv_workhistory_get($contact_id, $id_1);\n $record_2 = _expert_cv_workhistory_get($contact_id, $id_2);\n _expert_mycv_workhistory_save($contact_id, $id_2, $record_1);\n _expert_mycv_workhistory_save($contact_id, $id_1, $record_2);\n drupal_set_message(t('Your CV is successfully updated'));\n if (in_array(\"Expert\", $user->roles)) {\n drupal_goto('expert/my-cv');\n } elseif (in_array(\"Candidate expert\", $user->roles)) {\n drupal_goto('portal');\n } else {\n drupal_goto('expert/my-cv');\n }\n}", "title": "" }, { "docid": "3376a492054936a59503614cc9947659", "score": "0.49537134", "text": "public function getCustomersHistory($customersId) {\r\n\t\t$sql = \"SELECT * FROM customer_history where customer_id = '\" . $customersId . \"' ORDER BY updated_date DESC\";\r\n\t\t$query = $this->db->prepare ( $sql );\r\n\t\t\r\n\t\t$query->execute (); // $parameters);\r\n\t\t \r\n\t\t// fetchAll() is the PDO method that gets all result rows, here in object-style because we defined this in\r\n\t\t // core/controller.php! If you prefer to get an associative array as the result, then do\r\n\t\t // $query->fetchAll(PDO::FETCH_ASSOC); or change core/controller.php's PDO options to\r\n\t\t // $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC ...\r\n\t\treturn $query->fetchAll ();\r\n\t}", "title": "" }, { "docid": "3e5aa06b56953d971003228d15b2208e", "score": "0.49454474", "text": "public function getHistory(Request $request) {\n\n $this->validate($request, [\n \"companyId\" => \"required|integer\",\n 'code' => 'required|max:50|exists:competency_models,code',\n 'id' => 'required|integer|exists:competency_models,id']);\n\n $data = $this->competencyModelDao->getHistory($request->code, $request->id);\n $totalRow = count($data);\n\n if($totalRow > 0) {\n for ($i = 0 ; $i < $totalRow ; $i ++) {\n $data[$i]->competencyGroupList = $this->competencyModelDao->getCompetencyGroupByCompetencyModelId($data[$i]->id);\n }\n }\n\n $resp = new AppResponse($data, trans('messages.dataRetrieved'));\n return $this->renderResponse($resp);\n }", "title": "" }, { "docid": "ca0e810bddee87db1274a5939b19ce68", "score": "0.49116838", "text": "public function get_hist_record_by_lookup($tb_hist,$id,$fields,$formtype)\n\t{\n\t\tlist($idfield,$cur_no) = preg_split('/;/',$id);\n\t\t$table = $tb_hist;\n\t\t$querystr = sprintf('SELECT %s FROM %s WHERE id = \"%s\" AND current_no = \"%s\"', join(',', $fields),$table,$idfield,$cur_no);\n\t\t$result = $this->db->query(Database::SELECT,$querystr,TRUE);\n\t\tif ($row = $result[0])\n\t\t{\n\t\t\treturn $row;\n }\n\t\t$str = '<div class=\"frmmsg\">Record [ '.$id.' ] does not exist.</div>';\n\t\t$this->set_db_err_msg($str);;\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "9ff0bbb70e9daa417eac3817f0f9eaa7", "score": "0.48966974", "text": "public function getSpecificLogHistory($workoutId){\n\t\t$userId = $_SESSION['id'];\n\t\t$stmt = $this->prepare(\"SELECT \n\t\t\tlogId,reps,kilo,DATE_FORMAT(date,'%d.%m.%Y') as date FROM log\n\t\t\tWHERE log.userId = :userId AND log.workoutId = :workoutId;\");\n\t\t$stmt->bindParam(':userId',$userId);\n\t\t$stmt->bindParam(':workoutId',$workoutId);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll();\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "f2d524a376c266666dac341121f9352f", "score": "0.4872586", "text": "public function getUserWorkHistory() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"user_work_history\");\n\t}", "title": "" }, { "docid": "aa020a55167e8ab25f714df14c3bd845", "score": "0.48714975", "text": "public function history() {\n\t\t// check user login\n\t\t$this->valid_login();\n\t\t// data view\n\t\t$data['uploads'] = $this->get_upload_path();\n\t\t$data['_menu'] = $this->admin;\n\t\t$data['_sub_menu'] = $this->content_management;\n\t\t$data['_title'] = \"Sejarah\";\n\t\t$data['_title_content'] = \" \" . $data['_title'];\n\t\t// data model\n\t\t$this->mdl_content->set_pk(\"id_content\");\n\t\t$this->mdl_content->set_tb(\"content\");\n\t\t$bcu = true;\n\t\t$display = \"history\";\n\t\t$data['historyes'] = $this->mdl_content->history_records()->result();\n\t\t// input post history\n\t\t$data['id_content'] = $this->uri->segment(4);\n\t\t$dataRecord['id_content'] = $this->uri->segment(4);\n\t\t$dataRecord['id_user'] = $this->session->userdata(\"id_user\");\n\t\t$dataRecord['name_content'] = $this->input->post(\"name_content\");\n\t\t$dataRecord['desc_content'] = $this->input->post(\"desc_content\");\n\t\t$dataRecord['is_acontent'] = $this->input->post(\"is_acontent\");\n\t\t$dataRecord['is_dcontent'] = $this->input->post(\"is_dcontent\");\n\t\t// input post comment\n\t\t$data['id_comment'] = $this->uri->segment(5);\n\t\t$dataRecord['id_comment'] = $this->uri->segment(5);\n\t\t$dataRecord['author_comment'] = $this->input->post(\"author_comment\");\n\t\t$dataRecord['email_comment'] = $this->input->post(\"email_comment\");\n\t\t$dataRecord['desc_comment'] = $this->input->post(\"desc_comment\");\n\t\t$dataRecord['parent_comment'] = $this->input->post(\"parent_comment\");\n\t\tif($dataRecord['parent_comment'] == null) $dataRecord['parent_comment'] = \"0\";\n\t\t// update history\n\t\tif($this->uri->segment(3) == \"update\" && $this->uri->segment(4) != null) {\n\t\t\t$data['_title_content'] = \"Perbaharui \" . $data['_title'];\n\t\t\t$display = \"historyUpdate\";\n\t\t\t$data['history_update'] = $this->mdl_content->history_record($data['id_content'])->result();\n\t\t\t// validation history\n\t\t\t$this->form_validation->set_rules('name_content', 'history Name', 'trim|required|min_length[5]|max_length[50]|xss_clean|');\n\t\t\t$this->form_validation->set_rules('desc_content', 'Description', 'trim|required|min_length[20]|xss_clean|');\n\t\t\tif(isset($_POST['doUpdate'])) {\n\t\t\t\tif($this->form_validation->run() == TRUE) {\n\t\t\t\t\t$this->mdl_content->history_update($dataRecord);\n\t\t\t\t\tredirect(\"admin/history\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if($this->uri->segment(3) == \"view\" && $this->uri->segment(4) != null) {\n\t\t\t$data['_title_content'] = \"Detail \" . $data['_title'];\n\t\t\t$display = \"historyDetail\";\n\t\t\t$data['historyes'] = $this->mdl_content->history_record($data['id_content'])->result();\n\t\t\t$data['comments'] = $this->mdl_comment->id_content_records($data['id_content'])->result();\n\t\t}\n\t\t$this->template->backend('content/contentManagement/'.$display, $data);\n\t}", "title": "" }, { "docid": "824140b99c52b0e9e57e43c608456193", "score": "0.48675144", "text": "public function getComponentChangeDetail($servicelog_id = 0) {\n $detail = R::getAll(\n \"SELECT\n cc.component_data, c.component, ct.component_type, cc.notes\n FROM componentchange cc\n LEFT JOIN componenttype ct ON ct.id = cc.component_type\n LEFT JOIN component c ON c.id = cc.component\n WHERE cc.servicelog_id = '\" . $servicelog_id . \"'\");\n\n return $detail[0];\n }", "title": "" }, { "docid": "33d495f0cac14a64280ed6b8bd0f4872", "score": "0.4860067", "text": "public function testGetRecordHistory(): void\n\t{\n\t\t$request = $this->httpClient->get('HelpDesk/RecordHistory/' . self::$recordId, self::$requestOptions);\n\t\t$this->logs = $body = $request->getBody()->getContents();\n\t\t$response = \\App\\Json::decode($body);\n\t\tstatic::assertSame(200, $request->getStatusCode(), 'HelpDesk/RecordHistory/{ID} API error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tstatic::assertSame(1, $response['status'], 'HelpDesk/RecordHistory/{ID} API error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tself::assertResponseBodyMatch($response, self::$schemaManager, '/webservice/WebservicePremium/{moduleName}/RecordHistory/{recordId}', 'get', 200);\n\t}", "title": "" }, { "docid": "62c09650af4b1a224fd729a5ca16c33b", "score": "0.48566675", "text": "public static function get_history($discuss_id = 0, $user_id = 0,\n $limit = 20, $offset = 0)\n {\n $discuss_id = intval($discuss_id);\n $user_id = intval($user_id);\n $limit = intval($limit);\n $offset = intval($offset);\n\n $condition = 'WHERE 1=1';\n if ($discuss_id > 0)\n $condition .= ' AND discuss_id='.$discuss_id;\n if ($user_id > 0)\n $condition .= ' AND user_id='.$user_id;\n\n global $db;\n $query = query($db,\n \"SELECT history_id, content, time, discuss_id, user_id\n FROM history $condition ORDER BY history_id DESC\n LIMIT $limit OFFSET $offset\");\n\n $result = array();\n while (($row = $query->fetch()) !== false) {\n $inst = new History($row->history_id);\n $inst->fill_info($row);\n $result[] = $inst;\n }\n return $result;\n }", "title": "" }, { "docid": "f77d6ee4c87fb934da56be6545ad1cd8", "score": "0.4855718", "text": "public function getComplaintHistoryDetail($ComplaintHistoryId, $UserProfileId) {\r\n $complaint_history_detail = array();\r\n if(isset($ComplaintHistoryId) && $ComplaintHistoryId > 0) {\r\n\r\n $query = $this->db->query(\"SELECT * FROM $this->complaintHistoryTbl WHERE ComplaintHistoryId = '\".$ComplaintHistoryId.\"'\");\r\n\r\n $res = $query->row_array();\r\n \r\n $complaint_history_detail = $this->returnComplaintHistoryDetail($res, $UserProfileId);\r\n\r\n } else {\r\n $complaint_history_detail = array();\r\n }\r\n return $complaint_history_detail;\r\n }", "title": "" }, { "docid": "80ae970513465b1808d1c2b4d55b8e0b", "score": "0.48552677", "text": "function companyHistoryListing($companyId=NULL)\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n else\n\t\t{\n\t\t\tif($companyId == null)\n {\n redirect('companyListing');\n }\n\t\t\t\n $this->load->model('company_model');\n \n $searchText = $this->input->post('searchText');\n $data['searchText'] = $searchText;\n \n $this->load->library('pagination');\n \n $count = $this->company_model->companyHistoryListingCount($searchText,$companyId);\n\n\t\t\t$returns = $this->paginationCompress( \"company/\", $count, 50 );\n \n $data['companyHistoryRecords'] = $this->company_model->companyHistoryListing($searchText, $returns[\"page\"], $returns[\"segment\"],$companyId);\n\t\t\t//print_r($data); die();\n\t\t\t$data['companyID'] = $companyId;\n\t\t\t\n\t\t\t$companyInfo = $this->company_model->getCompanyInfo($companyId);\n\t\t\t//print_r($companyInfo[0]); die();\n\t\t\t$data['companyName'] = $companyInfo[0]->CompanyName;\n\t\t\t\n $this->global['pageTitle'] = 'CodeInsect : Company History Listing';\n \n $this->loadViews(\"companyHistory\", $this->global, $data, NULL);\n }\n }", "title": "" }, { "docid": "06d925aef7d179d7698fb966c27e00d6", "score": "0.48516002", "text": "public function sales_history()\n {\n $this->sale_index();\n $dat = array(\n \"customer \" => \" customer.customer_id = sales.customer_id\",\n \"company\" => \"company.company_id=sales.company_id\"\n );\n\n $data['sales'] = $this->Main_model->get_join($dat);\n\n $this->header();\n $this->load->view('sales/sales_history', $data);\n $this->footer();\n }", "title": "" }, { "docid": "f16adcf0688ef9f4965105bda0c8fcdc", "score": "0.48450175", "text": "public function getChatHistory(Request $request)\n {\n $myJob = EmployeeHelper::getJob();\n\n if (ToS::translate($myJob->TypeOfJob) != ToS::$LIVE_CHAT) {\n return ['status' => 'error', 'status_message' => 'wrong_job'];\n }\n\n $me = EmployeeHelper::getEmployee();\n\n $threadId = ChatClient::getThreadId(['EmployeeId' => $me->Id]);\n\n if ($threadId == ChatClient::$ERROR) {\n return ['status' => ChatClient::$ERROR];\n }\n\n if (ChatClient::isRequestedToEnd($threadId)) {\n $toReturn = [\n 'data' => ChatClient::pull($threadId, ChatClient::$EMPLOYEE,$request->input('clean')),\n 'status' => 'final',\n 'memberName' => EmployeeHelper::getMemberNameWithThread($threadId),\n 'employeeName' => EmployeeHelper::getEmployeeInfo()['name'],\n 'goodbye' => ChatClient::defaultGoodbye($threadId)\n ];\n\n ChatClient::requestEnd($threadId);\n\n return $toReturn;\n }\n\n return [\n 'data' => ChatClient::pull($threadId, ChatClient::$EMPLOYEE),\n 'status' => 'ok',\n 'memberName' => EmployeeHelper::getMemberNameWithThread($threadId),\n 'employeeName' => EmployeeHelper::getEmployeeInfo()['name'],\n ];\n }", "title": "" }, { "docid": "708d956f7c90c0b666e652416853aa93", "score": "0.48367265", "text": "public function history()\n {\n $sql = \"\n SELECT * FROM \" . $this->table .\n \" WHERE `resourceType` = \" . $this->db->pdb($this->resourceType()) .\n \" AND `resourceID` = \" . $this->db->pdb($this->resourceID()) .\n \" AND `actionDateTime` <= \" . $this->db->pdb($this->actionDateTime()) .\n \" ORDER BY `actionDateTime` DESC\";\n\n $result = $this->db->get_rows($sql);\n\n return $result;\n }", "title": "" }, { "docid": "7c8dc7380db7727eab04f9403f2e966b", "score": "0.4818675", "text": "public function get_record_cached($record_id);", "title": "" }, { "docid": "0a498e14951f25938c7e87d9cee69922", "score": "0.48167366", "text": "public function findJobHistoryById($id) {\n try{\n AppLogger::info(\"Entering userDataService().findJobHistoryByIdRest()\");\n AppLogger::info(\"Preparing SQL Statement\");\n $stmt = $this->db->prepare(\"SELECT * FROM `jobhistory` WHERE `user_userID` = :id\");\n \n $stmt->bindParam(\":id\", $id);\n \n if($id != null) {\n AppLogger:info(\"Executing SQL Stamtement\");\n $stmt->execute();\n \n $jhArray = array();\n $index = 0;\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $jh = new JobHistoryModel($row[\"HISTORYID\"], $row[\"TITLE\"], $row[\"COMPANY\"], $row[\"DATE\"], $row[\"user_userID\"]);\n $jhArray[$index++] = $jh;\n }\n AppLogger::info(\"Leaving findJobHistoryByIdRest() with an array of job history of a user\");\n return $jhArray;\n }\n AppLogger::info(\"Leaving findJobHistoryByIdRest() without an array of job history of a user\");\n return $jhArray;\n }\n catch(PDOException $e)\n {\n AppLogger::error(\"Exception: \", array(\"message: \" => $e->getMessage()));\n throw new DatabaseException(\"Database Exception: \" . $e->getMessage(), 0, $e);\n \n }\n}", "title": "" }, { "docid": "88ed077bcb5226bbf19d16d9df21f1c1", "score": "0.48034596", "text": "public function getRecord($record_id) {\n\t\t$query = DB::select_array($this->fieldNames)->from($this->tableName)->where($this->fieldNames[0], \"=\", $record_id);\n\t\t$result = $query->as_object()->execute();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "cfbc11c8551f25baf73f82294931b111", "score": "0.47995096", "text": "public function getEntry($record_id) {\r\n\t return $this->courses[$record_id];\r\n\t}", "title": "" }, { "docid": "3623d82c6f36437d3b60130762de9517", "score": "0.47955254", "text": "function expert_cv_workhistory_remove($contact_id, $id) {\n global $user;\n civicrm_initialize();\n civicrm_api3('Cvmutation', 'pre', array('contact_id' => $contact_id));\n $group_info = civicrm_api3('CustomGroup', 'getsingle', array('name' => 'Workhistory'));\n CRM_Core_DAO::executeQuery(\"DELETE FROM `\".$group_info['table_name'].\"` WHERE `id` = %1 AND `entity_id` = %2\", array(\n 1 => array($id, 'Integer'),\n 2 => array($contact_id, 'Integer')\n ));\n civicrm_api3('Cvmutation', 'post', array('contact_id' => $contact_id));\n drupal_set_message(t('Your CV is successfully updated'));\n if (in_array(\"Expert\", $user->roles)) {\n drupal_goto('expert/my-cv');\n } elseif (in_array(\"Candidate expert\", $user->roles)) {\n drupal_goto('portal');\n }\n}", "title": "" }, { "docid": "1304c70d9d3d6deaa1df4f798c4c164b", "score": "0.47884545", "text": "function getStatusNewLastHistoryEntry($link,$pid,$idRev,$myfile){\r\n\r\n\t$previousHistEntryID = getPreviousHistoryEntryID($link,$pid);\r\n\tfwrite($myfile, \"<br>Previous history entry id = \".$previousHistEntryID);\r\n\t$id = $idRev - 1;//the previous history entry\r\n\tfwrite($myfile, \"<br>Looking up revision id \".$id);\r\n $sql = \"SELECT statusNew FROM ProjectDetailHistory where projectID = '$pid' AND ID = $previousHistEntryID\";\r\n if($results=mysqli_query($link,$sql))\r\n {\r\n if($row=mysqli_fetch_array($results,MYSQLI_ASSOC)){\r\n return $row[\"statusNew\"];\r\n }\r\n else{\r\n //echo \"getPreviousChangeDate FAILED :(\";\r\n }\r\n }\r\n else\r\n {\r\n echo(\"Error description: \" . mysqli_error($link));\r\n echo \"getStatusNewLastHistoryEntry QUERY FAILED\";\r\n }\r\n}", "title": "" }, { "docid": "570dea6bbd31055c10e036af58c6ebf4", "score": "0.47633103", "text": "public function actionAjaxHistory($id)\n\t{\n $cs=Yii::app()->getClientScript();\n if(null!==($scriptMap=Yii::app()->request->getParam('scriptMap')) && is_string($scriptMap)){\n foreach(explode(',', $scriptMap) as $script)\n $cs->scriptMap[$script]=false;\n }\n \n $this->_clearScriptMap();\n\n if( Yii::app()->request->isAjaxRequest ) {\n \n /*- Begin History order ----------------------------------------------------------------*/\n $model_order_histories=new OrderHistories('search');\n\t\t$model_order_histories->unsetAttributes(); // clear any default values \n \n\t\tif(isset($_GET['OrderHistories'])) { \n $model_order_histories->attributes=$_GET['OrderHistories'];\n } \n \n $model_order_histories->order_id=$id;\n \n $this->renderPartial('_list_ajax',array(\n 'model'=>$model_order_histories),false,true\n ); \n /*- End History order ----------------------------------------------------------------*/\n } \n }", "title": "" }, { "docid": "28aedfc858c521be57f46b96bcbed3e1", "score": "0.47493818", "text": "function get_history($HISTORY_RID)\n {\n return $this->db->get_where('HISTORY_ASSET',array('HISTORY_RID'=>$HISTORY_RID))->row_array();\n }", "title": "" }, { "docid": "6af790d8092d8daba4b0aa92ef599eb1", "score": "0.47405702", "text": "function &getRowRecord($row){\n\t\tif ( !isset($this->_cache) ) $this->_cache = array();\n\t\tif ( !isset($this->_cache['records']) ) $this->_cache['records'] = array();\n\t\t$id = $this->ids[$row];\n\t\tif ( $id == '__new__' ){\n\t\t\t$null = null;\n\t\t\treturn $null;\n\t\t}\n\t\telse {\n\t\t\tif ( !isset($this->_cache['records'][$id]) ) $this->_cache['records'][$id] =& df_get_record_by_id($id);\n\t\t}\n\t\treturn $this->_cache['records'][$id];\n\t}", "title": "" }, { "docid": "7925d6a9041c333495fdf1001eddc094", "score": "0.4740073", "text": "function requisition_history_by_id($id){\n\t\tglobal $db;\n\t\t$sql =\" SELECT ra.*,u.name as person,designation\";\n\t\t$sql .=\" FROM requisition_action ra\";\n\t\t$sql .=\" inner join users u on u.id=ra.action_by\";\n\t\t$sql .=\" where ra.req_id=\".$id;\n\t\treturn find_by_sql($sql);\n\n\t}", "title": "" }, { "docid": "dca64270875a10e17e957ffcab69aaeb", "score": "0.47331026", "text": "function getRequestHistory($db_link){\n \n $sql = \"SELECT `vehicle_id`, CONCAT_WS(' ',`staff_firstname`,`staff_surname`) \n ,`request_date`,`request`.`start_date`\n ,`end_date`,`request_destination`\n ,`request_reason`,`request_level`\n ,`request_travellers`,`request_approver_id`\n ,`request_approval_date`,`request_id`\n ,`request_rejectReason`,`request_view`\n ,`request_vehicle_transmission`,type_id\n ,`request_cancelled`,`request`.`branch_id`\n ,`designation_id`,`dept_id`\n ,`request_driver`, `request_supervisor_id`\n FROM `request`,`staff`\n WHERE `staff`.`staff_id`=`request`.`staff_id` \n and (request_supervisor_date!='' || role_id=7 || role_id=5 || role_id=6 ) and request_supervisorRejectReason='\\'\\'' ORDER BY request_date DESC LIMIT 60 \" ;\n\n $results = mysqli_query($db_link,$sql);\n if(mysqli_num_rows($results))\n {\n return $results;\n }\n }", "title": "" }, { "docid": "4b2e9535ea579f21ccf9bdcbc6e89ff7", "score": "0.47252727", "text": "public function getChanges($record, $elements = array(), $onlyElements = false)\n {\n return $this->_db->getTable('HistoryLogChange')\n ->getChanges($record, $elements, $onlyElements);\n }", "title": "" }, { "docid": "1a03186a97b296530301e752ca8a2fcf", "score": "0.47248405", "text": "function get_history($_history, $_title, $_rec){\n $cnt = 0;\n $col = 0;\n foreach($_history as $events):\n $cnt++;\n unset($row);\n foreach($events as $event):\n $col++;\n if ($cnt==1):\n $name = ucwords(strtolower($event->getName()));\n $row_head .= \"<th id='{$event->getName()}'>$name</th>\\n\";\n endif;\n $row .= \"<td headers='{$event->getName()}'>&nbsp;$event</td>\\n\";\n endforeach;\n $rows .= \"<tr>$row</tr>\\n\";\n endforeach;\n return <<<IYONA\n <section class='history_section modal hide fade' id='his$_rec'>\n <div class='modal-header'>\n <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>\n $_title\n </div>\n <div class='modal-body'>\n <table class='table' summary=\"$_title\" >\n <tr>$row_head</tr>\n $rows\n </table>\n </div>\n <!---\n <div class='modal-footer'><a href='#' class='btn'>Close</a><a href='#' class='btn btn-primary'>Save change</a></div>\n -->\n </section>\nIYONA;\n}", "title": "" }, { "docid": "a1aa0960956121eac4d1d12778a70f5d", "score": "0.47212118", "text": "public function history_get()\n {\n\n #\t$auth = $this->IsAuth();\n\n \t$id_user = 32;\n\n\n $list = \t$this->AjaxListHistory($id_user,3);\n\n $this->response(\n\n \tarray('status' => 'true',\n \t\t'history' => $list\n\n \t));\n \n\n}", "title": "" }, { "docid": "2a083c861ddb1eb081301e9d765b3f60", "score": "0.4718978", "text": "public function getRevenueReportHistory();", "title": "" }, { "docid": "2fadd57650965f2f1597af8820bc6977", "score": "0.47158736", "text": "public function getContact($contactId);", "title": "" }, { "docid": "769b0904bb5591b19681f71eda5cb440", "score": "0.471496", "text": "function notesDetail()\n {\n global $_ARRAYLANG, $objDatabase, $wysiwygEditor, $FCKeditorBasePath ,$objJs;\n\n \\JS::activate(\"cx\");\n\n $json = array();\n $this->_objTpl->loadTemplateFile('module_'.$this->moduleNameLC.'_customer_notes_history.html');\n $this->_objTpl->setGlobalVariable(array(\n 'MODULE_NAME' => $this->moduleName\n ));\n\n $custId = (isset($_REQUEST['id']))? (int) trim($_REQUEST['id']):0;\n $noteId = (isset($_GET['nid']))? (int) $_GET['nid'] : 0; //Requset from pm module\n $projectid = isset($_REQUEST['projectid']) ? (int) $_REQUEST['projectid'] : 0; //Requset from pm module at the time of ajax\n\n $intPerpage = 50;\n $intPage = (isset($_GET['page']) ? (int) $_GET['page']-1 : 0) * $intPerpage;\n\n if (!empty($noteId)) {\n $filter_note_id = \" AND comment.notes_type_id = \".$noteId;\n }\n\n if (!empty($custId)) {\n $objComment = $objDatabase->Execute(\"SELECT comment.id,\n customer_id,\n notes_type_id,\n comment,\n added_date,\n date,\n notes.icon,\n notes.name AS notes,\n comment.updated_on,\n comment.user_id,\n comment.updated_by\n FROM \".DBPREFIX.\"module_\".$this->moduleNameLC.\"_customer_comment AS comment\n LEFT JOIN \".DBPREFIX.\"module_\".$this->moduleNameLC.\"_notes AS notes\n ON comment.notes_type_id = notes.id\n WHERE customer_id = '$custId' $filter_note_id ORDER BY added_date DESC LIMIT $intPage, $intPerpage\");\n if ($objComment->RecordCount() == 0 && $_GET['ajax'] == true) {\n $json['msg'] = '0';\n }\n\n if ($objComment->RecordCount() == 0) {\n $this->_objTpl->hideBlock('showComment');\n $this->_objTpl->touchBlock('noNotesEntries');\n } else {\n $this->_objTpl->touchBlock('showComment');\n $this->_objTpl->hideBlock('noNotesEntries');\n }\n\n $row = 'row2';\n while (!$objComment->EOF) {\n if (!empty ($objComment->fields['icon'])) {\n $iconPath = \\Cx\\Core\\Core\\Controller\\Cx::instanciate()->getWebsiteImagesCrmWebPath().'/'.contrexx_raw2xhtml($objComment->fields['icon']).\"_16X16.thumb\";\n } else {\n $iconPath = '../modules/Crm/View/Media/customer_note.png';\n }\n $this->_objTpl->setVariable(array(\n 'TXT_COMMENT_ID' => (int) $objComment->fields['id'],\n 'TXT_COMMENT_CUSTOMER_ID' => (int) $objComment->fields['customer_id'],\n 'CRM_COMMENT_ADDEDDATETIME' => date('Y-m-d h:i A', strtotime($objComment->fields['added_date'])),\n 'CRM_COMMENT_UPDATEDDATETIME' => !empty($objComment->fields['updated_on']) ? date('Y-m-d h:i A', strtotime($objComment->fields['updated_on'])) : '-',\n 'CRM_COMMENT_DATE' => contrexx_raw2xhtml($objComment->fields['date']),\n 'CRM_NOTES_TYPE' => contrexx_raw2xhtml($objComment->fields['notes']),\n 'CRM_NOTES_TYPE_ICON' => $iconPath,\n 'CRM_NOTES_TYPE_ID' => intval($objComment->fields['notes_type_id']),\n 'CRM_ADDED_USER' => $this->getUserName($objComment->fields['user_id']),\n 'CRM_UPDATED_USER' => $this->getUserName($objComment->fields['updated_by']),\n 'TXT_CRM_COMMENT_DESCRIPTION' => $this->stripOnlyTags($objComment->fields['comment'], '<script><iframe>', $stripContent = false),\n 'TXT_CRM_IMAGE_EDIT' => $_ARRAYLANG['TXT_CRM_IMAGE_EDIT'],\n 'TXT_CRM_IMAGE_DELETE' => $_ARRAYLANG['TXT_CRM_IMAGE_DELETE'],\n 'ENTRY_ROWCLASS' => $row = ($row == 'row1') ? 'row2' : 'row1',\n 'TXT_CUST_ID' => $custId,\n 'CRM_REDIRECT' => (isset($_REQUEST['design']) && $_REQUEST['design'] == 'pm') ? \"&redirect=\".base64_encode(\"./index.php?cmd=\".$this->moduleName.\"&act=projects&tpl=showcustnotes&id={$custId}&projectid={$projectid}\") : \"\",\n 'TXT_DISPLAY' => 'display: block',\n ));\n $this->_objTpl->parse('showComment');\n $objComment->MoveNext();\n }\n }\n $this->_objTpl->setGlobalVariable(array(\n 'CRM_CUST_ID' => $custId,\n 'CSRF_PARAM' => \\Cx\\Core\\Csrf\\Controller\\Csrf::param(),\n 'TXT_CRM_NO_RECORDS_FOUND' => $_ARRAYLANG['TXT_CRM_NO_RECORDS_FOUND'],\n 'TXT_CRM_NOTES_TYPE' => $_ARRAYLANG['TXT_CRM_NOTE_TYPE'],\n 'TXT_CRM_SHOW_COMMENT_HISTORY' => $_ARRAYLANG['TXT_CRM_SHOW_COMMENT_HISTORY'],\n 'TXT_CRM_COMMENT_TITLE' => $_ARRAYLANG['TXT_CRM_COMMENT_TITLE'],\n 'TXT_CRM_COMMENT_DATE_TIME' => $_ARRAYLANG['TXT_CRM_COMMENT_DATE_TIME'],\n 'TXT_CRM_TASK_FUNCTIONS' => $_ARRAYLANG['TXT_CRM_TASK_FUNCTIONS'],\n 'TXT_CRM_DUE_DATE' => $_ARRAYLANG['TXT_CRM_DUE_DATE'],\n 'TXT_CRM_ADD_NOTE' => $_ARRAYLANG['TXT_CRM_NOTES_ADD'],\n 'TXT_CRM_ADDED_BY' => $_ARRAYLANG['TXT_CRM_ADDED_BY'],\n 'TXT_CRM_LAST_UPDATED_BY' => $_ARRAYLANG['TXT_CRM_LAST_UPDATED_BY']\n ));\n\n if (isset($_GET['ajax'])) {\n $this->_objTpl->hideBlock(\"skipAjaxBlock\");\n $this->_objTpl->hideBlock(\"skipAjaxBlock1\");\n } else {\n $this->_objTpl->touchBlock(\"skipAjaxBlock\");\n $this->_objTpl->touchBlock(\"skipAjaxBlock1\");\n }\n $json['content'] = $this->makeLinksInTheContent($this->_objTpl->get());\n echo $result = json_encode($json);\n exit();\n }", "title": "" }, { "docid": "5d30f182997a92b07a60d1c7bfd4707b", "score": "0.47122312", "text": "function getContactData($contactId)\n{\n $sqlClient = \"SELECT Nom,Prenom,Fonction,NumTelephone1,AdresseMail1 FROM webcommercial_contact WHERE \nid='$contactId';\";\n $rowClient = querySQL($sqlClient, $GLOBALS['connection'], true, true);\n\n $lname = $rowClient['Nom'];\n $fname = $rowClient['Prenom'];\n $title = $rowClient['Fonction'];\n $email = $rowClient['AdresseMail1'];\n $phone = $rowClient['NumTelephone1'];\n\n $contactData = array('lname' => $lname, 'fname' => $fname, 'job' => $title, 'email' => $email, 'phone' => $phone);\n return ($contactData);\n}", "title": "" }, { "docid": "2e2e2cc72ed3d1a494cd7f31939caf11", "score": "0.4689203", "text": "function wpcivicrmuserstats_widget_data($instance) {\n if ( ! function_exists( 'civicrm_initialize' ) ) { return; }\n civicrm_initialize();\n //get current employer details when\n $current_userID = CRM_Core_Session::singleton()->getLoggedInContactID();\n $currentEmployer = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact',\n (int) $current_userID,\n 'employer_id'\n );\n $employee_list = civicrm_api3('Contact', 'get', array(\n 'sequential' => 1,\n 'employer_id' => $currentEmployer,\n ));\n $employeeID = array();\n if(!empty($employee_list['values']) ){\n foreach($employee_list['values'] as $data) {\n $employeeID[] = CRM_Utils_Array::value('contact_id', $data);\n }\n }\n $employees = implode(\", \",$employeeID);\n \n $clauses = array();\n //where clause for contact id and participant status(registered or attended)\n $clauses[] = \"civicrm_participant.contact_id IN ($employees)\";\n $clauses[] = \"civicrm_participant.status_id IN ( 1, 2 )\";\n \n if ( !empty($instance['event_type_id']) ) {\n $event_id = $instance['event_type_id'];\n $clauses[] = \"civicrm_event.event_type_id IN ($event_id)\";\n }\n if ( !empty($instance['event_year']) ) {\n $date = $instance['event_year'];\n $clauses[] = \"\n (\n (DATE_FORMAT(civicrm_event.start_date, '%Y') <= $date AND DATE_FORMAT(civicrm_event.end_date, '%Y') >= $date) OR\n (DATE_FORMAT(civicrm_event.start_date, '%Y') = $date AND civicrm_event.end_date IS NULL)\n )\n \";\n }\n \n $whereClause = !empty($clauses) ? implode(' AND ', $clauses) : '(1)';\n $query = \"\n SELECT civicrm_participant.id\n FROM civicrm_participant\n INNER JOIN civicrm_event\n ON civicrm_participant.event_id = civicrm_event.id\n WHERE $whereClause\n \";\n //Civi::log()->debug('', array('query' => $query));\n\n // execute query\n $dao = CRM_Core_DAO::executeQuery($query);\n $count = $dao->N;\n if ( !empty($instance['style']) && $instance['style'] == 'graphic') {\n $block_width = '';\n $block_height = '';\n if(!empty($instance['width']) && !empty($instance['height'])){\n $block_width = $instance['width'];\n $block_height = $instance['height'];\n }\n $row_image_count = ceil($block_width/23);\n $total_row_printable = ceil($count/$row_image_count);\n $expected_rows_in_box = $block_height/50;\n if($total_row_printable > $expected_rows_in_box){\n $dynamic_width = floor($block_width/($total_row_printable+$row_image_count))-2;\n $image = '<img src=\"' . plugins_url( 'images/person.png', __FILE__ ) . '\" height=\"35\" width=\"'.$dynamic_width.'\" > ';\n }else{\n $image = '<img src=\"' . plugins_url( 'images/person.png', __FILE__ ) . '\" height=\"40\" width=\"20\" > ';\n }\n $result = '<div class=\"wpcivicrmuserstats-widget-data-content\" style=\"width: '.$block_width.'px; height: '.$block_height.'px;\" >';\n }else{\n $result = '<div class=\"wpcivicrmuserstats-widget-data-content\">';\n }\n \n if ( !empty($instance['style']) && $instance['style'] == 'graphic') {\n for($i=1; $i<= $count; $i++){\n $result .= $image;\n }\n }\n else{\n $result .= $count;\n }\n $result .= '</div>';\n echo $result; \n}", "title": "" }, { "docid": "d520fcca89485a1492f3481fc3596a7b", "score": "0.46657622", "text": "function get_contacts()\r\n\t{\r\n\t\t// First, get the list of IDs.\r\n\t\t$query = \"SELECT c.id, c.first_name, c.last_name, c.title, c.email1, c.phone_work, o_c.contact_role as Contracts_role, o_c.id as Contracts_rel_id \".\r\n\t\t\t\t \"from $this->rel_contact_table o_c, contacts c \".\r\n\t\t\t\t \"where o_c.Contracts_id = '$this->id' and o_c.deleted=0 and c.id = o_c.contact_id AND c.deleted=0 order by c.last_name\";\r\n\r\n\t $temp = Array('id', 'first_name', 'last_name', 'title', 'email1', 'phone_work', 'Contracts_role', 'Contracts_rel_id');\r\n\t\treturn $this->build_related_list2($query, new Contact(), $temp);\r\n\t}", "title": "" }, { "docid": "20516cccc27b89ad19f3a6f1f6888eeb", "score": "0.46534362", "text": "public function corporationHistory()\n {\n if (!$this->corporationHistory) {\n $this->isIdProvided();\n\n $data = (new Request(\"/characters/{$this->characterId}/corporationhistory/\"))\n ->execute();\n foreach ($data as $record) {\n $this->corporationHistory[] = new CharacterCorporationHistoryRecord($record);\n }\n }\n\n return $this->corporationHistory;\n }", "title": "" }, { "docid": "628b7825e6f1882b5a991e1fc4a56230", "score": "0.46522358", "text": "public function getRecord();", "title": "" }, { "docid": "628b7825e6f1882b5a991e1fc4a56230", "score": "0.46522358", "text": "public function getRecord();", "title": "" }, { "docid": "4a8df1b11424f3c3593f7f6eb524d1a9", "score": "0.4648943", "text": "public function viewHistory()\n\t{\n\t\t//get the user id from uri\n\t\t$user_id=$this->uri->segment(3);\n\t\t//now get the data from database\n\t\t$result['data']=$this->admin_model->getRecord('medicine',array('user_id'=>$user_id,'end_date <'=>date('Y-m-d')));\n\t\t$this->load->view('admin/view_history',$result);\n\t}", "title": "" }, { "docid": "93017e470655de4f6272d69c8416ce2a", "score": "0.46262094", "text": "public function getRecordById();", "title": "" }, { "docid": "ee950e89cf483b0ea212179b2e8e8a15", "score": "0.46242428", "text": "public function get_projects_for_contact($contact_id)\n {\n $data = DB::select('select amount from activities where project_id= ? and is_added = true and amount <> 0',[$project_id]);\n return $data;\n }", "title": "" }, { "docid": "be7bc8599760ff95baadfd2efca5a20e", "score": "0.4618364", "text": "function RCgetCallLog($platform, $extension, $dateFrom, $dateTo) {\n\t\n\treturn $platform->get('/account/~/extension/' . $extension->id . '/call-log', array(\n\t 'type' => 'Voice',\n\t\t\t\t 'direction' => 'Inbound',\n//\t 'withRecording' => 'True',\n\t 'dateFrom' => $dateFrom,\n\t 'dateTo' => $dateTo\n\t\t\t\t ))\n\t ->json()->records; /**/\n}", "title": "" }, { "docid": "70b8b6798392c7905282a14236f9baa9", "score": "0.46123558", "text": "function GetHistoryBase($parentmodule, $query, $id)\n{\n\t\n}", "title": "" }, { "docid": "a454a78cc7bd195d3895696bc3b1bf4d", "score": "0.4611814", "text": "function historyCheckin($docId)\n{\n \n global $DB_HOST, $DB_USER,$DB_PASS, $BD_TABLE,$KEY; \n $con = mysqli_connect($DB_HOST,$DB_USER,$DB_PASS,$BD_TABLE);\n \n // $sqlString='SELECT bacdocument_id,bacdocumentdetail,prcost,pr_date,`bacdocumentlist`.`transdate`,sortorder,receive_date,expire_date,activity,receive_by, office_description FROM bacdocumentlist JOIN bacdocumentlist_tracker ON bacdocumentlist.bacdocument_id = bacdocumentlist_tracker.fk_bacdocumentlist_id JOIN office on bacdocumentlist.fk_officename_bacdocumentlist = office.office_name WHERE bacdocument_id = \"'.$docId.'\" ';\n $sqlString='SELECT bacdocumentlist_tracker_id,checkin_date,bacdocument_id,bacdocumentdetail,prcost,pr_date,`bacdocumentlist`.`transdate` as transdate,sortorder,receive_date,expire_days,activity,receive_by, fk_officename_bacdocumentlist FROM bacdocumentlist JOIN bacdocumentlist_tracker ON bacdocumentlist.bacdocument_id = bacdocumentlist_tracker.fk_bacdocumentlist_id WHERE bacdocument_id = \"'.$docId.'\" ORDER BY sortorder asc';\n \n $result=mysqli_query($con, $sqlString);\n $recSet = mysqli_fetch_array($result);\n mysqli_free_result($result);\n \n// $result=mysqli_query($con, $sqlString);\n \n // if (!$result)\n //{\n// $x=0;\n// $color='gray';\n echo '<div id=\"ajaxhistory\"><form>';\n \n \t\t\t\t\t\techo '<div id=\"details\" class=\"retriveDataAllign\">';\n echo \"<div class='row'>\";\n \techo \"<div class='col-xs-6 col-sm-4'>\";\n \t\t\t\t\t\techo '<input id=\"pKey\" type=\"hidden\" readonly=\"readonly\" value=\"'.$recSet[\"bacdocument_id\"].'\" />';\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Barcode No:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['bacdocument_id'].'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-sm-4'>\";\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Cost:\"; echo\"&nbsp;<b style='color:#00556F;'>\". number_format($recSet[\"prcost\"], 2, '.', ',').'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"PR Date:\"; echo\"&nbsp;<b style='color:#00556F;'>\".date(\"F j, Y\",strtotime($recSet[\"pr_date\"])).'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Details:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['bacdocumentdetail'].'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Office:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['fk_officename_bacdocumentlist'].'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Entry Date:\"; echo\"&nbsp;<b style='color:#00556F;'>\".date(\"F j, Y, g:i a\",strtotime($recSet['transdate'])).'</b>';\n\t\t\t\t\t\t\t\t\t echo \"</div>\";\n\t\t \n\t\t\t\t echo '</div>';\n echo '</div>';\n \n echo '<div id=\"checkinScroll\">';\n echo '<table id=\"historydata\"\n \t\t\tdata-height=\"450\"\n\t\t\t\t\t\t\t\t data-toggle=\"table\"\n\t\t\t\t\t\t\t\t class=\"display table table-bordered\"\n\t\t\t\t\t\t\t\t data-striped=\"true\"\t\n >';\n echo \"<thead>\";\n \t\t\techo \"<tr>\";\n echo '<th>Steps</th>';\n echo '<th>Activity</th>';\n echo '<th>Checked-in</th>';\n echo '<th>Checked-out</th>';\n echo '<th>Responsible</th>';\n echo '<th>Details</th>';\n \t\t\techo \"</tr>\";\n echo \"</thead>\";\n \n \n $result=mysqli_query($con, $sqlString);\n while ($recSet = mysqli_fetch_array($result))\n {\n \n \n// if ($x==0)\n// { \n// echo '<div id=\"details\" class=\"retriveDataAllign\">';\n// echo \"<div class='row'>\";\n// \techo \"<div class='col-xs-6 col-sm-4'>\";\n// \t\t\t\t\t\techo '<input id=\"pKey\" type=\"hidden\" readonly=\"readonly\" value=\"'.$recSet[\"bacdocument_id\"].'\" />';\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Barcode No:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['bacdocument_id'].'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-sm-4'>\";\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Cost:\"; echo\"&nbsp;<b style='color:#00556F;'>\". number_format($recSet[\"prcost\"], 2, '.', ',').'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"PR Date:\"; echo\"&nbsp;<b style='color:#00556F;'>\".date(\"F j, Y\",strtotime($recSet[\"pr_date\"])).'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t\t\t\t\t\t\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Details:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['bacdocumentdetail'].'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Office:\"; echo\"&nbsp;<b style='color:#00556F;'>\".$recSet['fk_officename_bacdocumentlist'].'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t echo \"<div class='col-xs-6 col-md-4'>\";\n//\t\t\t\t\t\t\t\t\t \t\t\t\t\techo \"Entry Date:\"; echo\"&nbsp;<b style='color:#00556F;'>\".date(\"F j, Y, g:i a\",strtotime($recSet['transdate'])).'</b>';\n//\t\t\t\t\t\t\t\t\t echo \"</div>\";\n//\t\t \n//\t\t\t\t echo '</div>';\n// echo '</div>';\n \n// echo '<div id=\"checkinScroll\">';\n// echo '<table id=\"historydata\"\n// \t\t\tdata-height=\"450\"\n//\t\t\t\t\t\t\t\t data-toggle=\"table\"\n//\t\t\t\t\t\t\t\t class=\"display table table-bordered\"\n//\t\t\t\t\t\t\t\t data-striped=\"true\"\t\n// >';\n// echo '<tr class=\"bgcolor\">';\n// echo '<th style=\"width:2%;\">STEP</th>';\n// echo '<th style=\"width:25%;\">ACTIVITY</th>';\n// echo '<th style=\"width:15%;\">CHECKED-IN</th>';\n// echo '<th style=\"width:15%;\">CHECKED-OUT</th>';\n// echo '<th style=\"width:15%;\">RESPONSIBLE</th>';\n// echo '<th style=\"width:15%;\">DETAILS</th>';\n// echo '</tr>';\n \n \n// }\n// if ($color=='gray')\n// {\n// echo \"<tr class='usercolor1'><td>\";\n// $color='notgray';\n// }\n// else\n// {\n// echo \"<tr class='usercolor'><td>\";\n// $color='gray';\n// }\n echo \"<tr><td>\";\n echo $recSet['sortorder'];\n echo \"</td><td>\";\n echo $recSet['activity'];\n echo \"</td><td>\";\n echo $recSet['checkin_date']; \n echo \"</td><td>\";\n echo $recSet['receive_date']; \n echo \"</td><td>\";\n echo $recSet['receive_by'];\n \n if (checkDetails($recSet['bacdocumentlist_tracker_id']))\n {\n echo \"</td><td>\";\n echo \"<a href='javascript:clickTransDetail(\".$recSet['bacdocumentlist_tracker_id'].\")' title='Click for complete detail'>details</a>\";\n }\n else\n {\n echo \"</td><td>\"; \n }\n echo \"</td></tr>\";\n \n \n \n \n// $x++;\n }\n echo '</table>';\n echo '</div>';\n echo '</div>';\n \n echo '<div id=\"checkinRIGHT\">';\n echo '<button id=\"checkMe\" type=\"submit\" class=\"btn btn-primary\" onclick=\"javascript:checkMeIn()\">Check In</button>';\n echo '</div></form>';\n \n\n}", "title": "" }, { "docid": "d75675e4900194d2005b9337507f9d0c", "score": "0.46082035", "text": "function getAllCauseCall($id) {\n\n $sql=\"select * from contact_events where id=$id\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n if(!$rs) {\n $rs=false;\n } else {\n if ($rs[0][\"contact_reference\"]===0) { // oberste Ebene\n $sql=\"select * from contact_events where contact_reference=\".$rs[0][\"id\"].\"order by calldate desc\";\n } else {\n $sql=\"select * from contact_events where contact_reference=\".$rs[0][\"id\"].\" or id=$id order by calldate desc\";\n }\n $rs=$GLOBALS['dbh']->getAll($sql);\n if(!$rs) {\n $rs=false;\n }\n }\n return $rs;\n}", "title": "" }, { "docid": "bae5b33361e3736d5058e937f32e87e7", "score": "0.4607808", "text": "public function conHistoryListQ() {\n $staff_id = $this->input->post('staff_id', true);\n $staff_name = $this->input->post('staff_name', true);\n $svc_code = $this->input->post('svc_code', true);\n $svc_desc = $this->input->post('svc_desc', true);\n $mod = $this->input->post('mod', true);\n\n if(!empty($staff_id) && !empty($staff_name) && !empty($svc_code) && !empty($svc_code)) {\n $data['staff_id'] = $staff_id;\n $data['staff_name'] = $staff_name;\n $data['svc_code'] = $svc_code;\n $data['svc_desc'] = $svc_desc;\n $data['con_inf'] = $this->mdl_pmp->conHistoryListQ($staff_id, $mod);\n } elseif(!empty($staff_id) && empty($staff_name) && empty($svc_code) && empty($svc_code)) {\n $data['staff_id'] = $staff_id;\n\n // GET STAFF NAME & SERVICE CODE\n $data['stf_inf'] = $this->mdl_pmp->getStaffDetlAca($staff_id);\n if(!empty($data['stf_inf'])) {\n $data['staff_name'] = $data['stf_inf']->SM_STAFF_NAME;\n $data['svc_code'] = $data['stf_inf']->SM_JOB_CODE;\n $data['svc_desc'] = $data['stf_inf']->SS_SERVICE_DESC;\n } else {\n $data['staff_name'] = '';\n $data['svc_code'] = '';\n $data['svc_desc'] = '';\n }\n\n $data['con_inf'] = $this->mdl_pmp->conHistoryListQ($staff_id, $mod);\n }\n\n $this->render($data);\n }", "title": "" }, { "docid": "f1320047ab80dfa451c067ae7f5dbe1d", "score": "0.46054742", "text": "public function AjaxListHistory($id_user ,$limit = '')\n {\n\n\n /*\n tlb_history_transaction_model.php Line 29\n */\n//$query = $this->Tbl_order->get_history_x10($id_user);\n $this->db->order_by('date', 'DESC');\n\n if (!empty($limit)) {\n \t$this->db->limit($limit);\n }\n $query = $this->db->where('id_user', $id_user)->or_where('id_to', $id_user)->get('Tbl_order');\n\n\n # $query = $this->db->get();\n $data = [];\n\n foreach($query->result() as $r) {\n\n\n // table history v1.1\n \n $data[] = array(\n\n\n \"id_track\" =>$r->id_track,\n \"id\" =>$r->id,\n \"action\" => action_helper($id_user, $r->id_to, $r->id_from,$r->refund), \n\n \"refund\" => $r->refund, \n\n \"action_id\" => action_id_helper($id_user, $r->id_to, $r->id_from,$r->refund), \n\n \"state\" => state_helper($r->state),\n \"dispute\" => $r->dispute,\n\n \"owner\" => owner_helper($id_user, $r->id_to, $r->id_from, $r->name_to, $r->name_from), \n\n \"method_payment\" => method_helper($r->id_paymethod),\n\n \"id_paymethod\" => $r->id_paymethod, \n\n \"card_number\" => truncate_card($r->card_number), \n \"card_type\" => card_img_helper($r->card_type), \n # \"sender\" => user_helper($r->id_from),\n # \"receiver\" => user_helper($r->id_to),\n \"commission\" => number_format($r->commission,2),\n \"currency\" => currency_helper($r->id_currency),\n \"currency_base\" => $r->currency,\n \"money_send\" => number_format($r->moneysend,2),\n \"money_received\" => number_format($r->moneyreceived,2),\n \"general_money\" => general_money_helper($id_user, $r->id_to, $r->id_from, $r->moneysend , $r->moneyreceived),\n \"total_money\" => number_format($r->total,2),\n \"time\" => date(\" h:i a\", strtotime($r->time_order)),\n \"date\" => date(\" d/m/Y\",strtotime($r->date_order)),\n \"D\" => date(\" d\", strtotime($r->date_order)),\n \"M\" => date(\"M\", strtotime($r->date_order))\n\n );\n }\n\n // table history v1\n\n return $data;\n\n exit();\n \n\n}", "title": "" }, { "docid": "57c62bb9c187eec73dca838622e1c097", "score": "0.46045256", "text": "public function getScheduledHistory($params);", "title": "" }, { "docid": "e66aaf3a033d6aa0628e2f3cd282e87b", "score": "0.46041462", "text": "public function get_history(){\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "227e06f62c7608b1e0238cef18b5637e", "score": "0.4601576", "text": "public function readHistory($params);", "title": "" }, { "docid": "227e06f62c7608b1e0238cef18b5637e", "score": "0.4601576", "text": "public function readHistory($params);", "title": "" }, { "docid": "d49442e47b18c99415dea39a3a6262a6", "score": "0.45991635", "text": "public function getCurContactAssignDetails( $query_id ){\n\t\t$this->db->select(TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS.'.date,'.TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS.'.status,'.TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS.'.status,'.TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS.'.comment,'.TBL_PREFIX.TBL_EMPLOYEE.'.name');\n\t\t$this->db->from(TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS);\n\t\t$this->db->join(TBL_PREFIX.TBL_EMPLOYEE, TBL_PREFIX.TBL_CONTACT_RESPONSIBILITY_PREVIOUS.'.assigned_to = '.TBL_PREFIX.TBL_EMPLOYEE.'.id');\n\t\t$this->db->where('customer_id', $query_id);\n\t\t$assignToDetails = $this->db->get();\n\t\t//log_message('debug','Last Query ['.$this->db->last_query().']');\n\t\tif( !$assignToDetails ){\n\t\t\treturn null;\n\t\t}else{\n\t\t\treturn $assignToDetails->result_array();\n\t\t}\n\t}", "title": "" }, { "docid": "1a559540d0cd99bd3890fdb8c45cabcb", "score": "0.4597327", "text": "public static function getHistory(App\\Request $request, Vtiger_Paging_Model $pagingModel)\n\t{\n\t\t$recordId = $request->getInteger('record');\n\t\tif ($request->isEmpty('type')) {\n\t\t\treturn [];\n\t\t}\n\t\t$query = static::getQuery($recordId, $request->getModule(), $request->getArray('type', 'Alnum'));\n\t\tif (empty($query)) {\n\t\t\treturn [];\n\t\t}\n\t\t$startIndex = $pagingModel->getStartIndex();\n\t\t$pageLimit = $pagingModel->getPageLimit();\n\n\t\t$query->limit($pageLimit)->offset($startIndex);\n\t\t$history = [];\n\t\t$groups = Settings_Groups_Record_Model::getAll();\n\t\t$groupIds = array_keys($groups);\n\t\t$dataReader = $query->createCommand()->query();\n\t\twhile ($row = $dataReader->read()) {\n\t\t\tif (\\in_array($row['user'], $groupIds)) {\n\t\t\t\t$row['isGroup'] = true;\n\t\t\t\t$row['userModel'] = $groups[$row['user']];\n\t\t\t} else {\n\t\t\t\t$row['isGroup'] = false;\n\t\t\t\t$row['userModel'] = Users_Privileges_Model::getInstanceById($row['user']);\n\t\t\t}\n\t\t\t$row['class'] = self::$colors[$row['type']];\n\t\t\tif (false !== strpos($row['type'], 'OSSMailView')) {\n\t\t\t\t$row['type'] = 'OSSMailView';\n\t\t\t\t$row['url'] = Vtiger_Module_Model::getInstance('OSSMailView')->getPreviewViewUrl($row['id']);\n\t\t\t} else {\n\t\t\t\t$row['url'] = Vtiger_Module_Model::getInstance($row['type'])->getDetailViewUrl($row['id']);\n\t\t\t}\n\t\t\t$body = trim(App\\Purifier::purify($row['body']));\n\t\t\tif (!$request->getBoolean('isFullscreen')) {\n\t\t\t\t$body = App\\TextParser::textTruncate($body, 100);\n\t\t\t} else {\n\t\t\t\t$body = str_replace(['<p></p>', '<p class=\"MsoNormal\">'], [\"\\r\\n\", \"\\r\\n\"], App\\Purifier::decodeHtml(App\\Purifier::purify($body)));\n\t\t\t\t$body = nl2br(App\\TextParser::textTruncate($body, 500), false);\n\t\t\t}\n\t\t\t$row['body'] = $body;\n\t\t\t$history[] = $row;\n\t\t}\n\n\t\treturn $history;\n\t}", "title": "" }, { "docid": "cd05c33f0326757dcbe807ea68bd3689", "score": "0.45946258", "text": "public function getAccountHistory($accountId, $param = [\n 'before' => 0,\n 'after' => 1000,\n 'limit' => 100\n ]) {\n return $this->_privateRequest(\"GET\", \"accounts/$accountId/ledger\", $param);\n }", "title": "" }, { "docid": "28114e68241fa59ef93968b98c477b9c", "score": "0.4592204", "text": "public function get_details_by_ids( $contact_ids = array() ) {\n\n\t\t$contacts = $this->get_contacts_by_ids( $contact_ids );\n\n\t\t$results = array();\n\t\tif ( ! empty( $contacts ) && count( $contacts ) > 0 ) {\n\n\t\t\tforeach ( $contacts as $contact ) {\n\t\t\t\t$results[ $contact['id'] ] = $contact;\n\t\t\t}\n\t\t}\n\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "2b165965514b423e7ab500948f94200c", "score": "0.45884702", "text": "public function getHistory()\n {\n if (!$this->history) {\n $this->history = new History();\n }\n return $this->history;\n }", "title": "" }, { "docid": "8362360c0d9153b527075bf7de5b83dc", "score": "0.45867917", "text": "public function mgetHistory($CustomerID){\n $SQL = \"SELECT ORD.*, DET.*\n FROM orders ORD, order_detail DET\n WHERE CustomerID = '$CustomerID'\n AND ORD.OrderID = DET.OrderID\n GROUP BY\n OrderDate DESC LIMIT 5\n \";\n\n $query = $this->db->query($SQL);\n if ($query->num_rows() > 0) {\n return $query->result();\n }else{\n return 'empty';\n }\n }", "title": "" } ]
2c885de221ca026eb6edbede17a98649
instacia model e/ou repository
[ { "docid": "a7f3f4cf7ff0d7d03928fd1f428ad983", "score": "0.0", "text": "private function validate()\n {\n //aqui podemos subtituir por outra coisa\n\n/* $model = $this->getModel();\n $reposiroty = $this->getRepository(); */\n\n if($this->secret == base64_encode(date('d-m-Y'))){\n\n $this->createHash();\n\n }else{\n $this->token = 'Not Authorized';\n }\n\n\n\n return $this;\n }", "title": "" } ]
[ { "docid": "eb427e5d56cbb0cd2012eb148f346a1b", "score": "0.64355457", "text": "function getou() {\n return $this->pdo->select('fi_ou', '1 ORDER BY ou_short_name ASC');\n }", "title": "" }, { "docid": "bc3b3b908ef02c7dbe368635d4690d6f", "score": "0.609363", "text": "public function listMainOu() { \n $this->only_search = array(\"ou\");\n $this->search_base = configSetting('personsearchbase');\n $this->search=ldap_list($this->search_con, $this->search_base, \"(ou=*)\", $this->only_search);\n $this->search_info = ldap_get_entries($this->search_con, $this->search);\n \n for ($i=0; $i<$this->search_info[\"count\"]; $i++){\n $this->ous[$i] = $this->search_info[$i][\"ou\"][0];\n }\n \n return $this->ous; \n}", "title": "" }, { "docid": "beefd5dd68c93f224c0775c707d31a7f", "score": "0.6046739", "text": "abstract public function ouCreate(Ou_model $o);", "title": "" }, { "docid": "00cd3c5ac968cac25aa8f98344637097", "score": "0.5935725", "text": "public function objectClassOu();", "title": "" }, { "docid": "a64e7f22bd5098fc9070499c39b23dab", "score": "0.57805187", "text": "public function listSubOu($ou) { \n $this->only_search = array(\"ou\");\n $this->search_base = $ou . \", \" .configSetting('personsearchbase');\n $this->search=ldap_list($this->search_con, $this->search_base, \"(ou=*)\", $this->only_search);\n $this->search_info = ldap_get_entries($this->search_con, $this->search);\n \n for ($i=0; $i<$this->search_info[\"count\"]; $i++){\n $this->ous[$i] = $this->search_info[$i][\"ou\"][0];\n }\n \n return $this->ous; \n}", "title": "" }, { "docid": "07df775a287da90a43890711d9d9c97a", "score": "0.55237865", "text": "public function asRepository();", "title": "" }, { "docid": "b7beb8c660822941b6cb9c8635c26eae", "score": "0.5471259", "text": "protected function getIndexableHierarchyRepositoryService()\n {\n }", "title": "" }, { "docid": "0168172d4858b50097cf7567f9e4ad8e", "score": "0.5469816", "text": "public function getCategoryIntRepository();", "title": "" }, { "docid": "383ab2895445ce27da976aab90c71c23", "score": "0.54036003", "text": "public function getRepositoryInfo();", "title": "" }, { "docid": "b75c0306dbe625ff7a053c6c82cf51a1", "score": "0.5401384", "text": "function map_institution($inst) {\n if ($inst == variable_get('islandora_repository_pid', 'islandora:root')) {\n return $inst;\n }\n else if (module_exists('islandora_namespace_homepage')) {\n $qargs = [':inst' => rtrim($inst, '-')];\n $query = 'select * from {islandora_namespace_homepage} where prefix = :inst';\n $ns_homepage_table = db_query($query, $qargs);\n foreach ($ns_homepage_table as $row) {\n if ($row->title == '') {\n return $inst;\n }\n return $row->title;\n }\n // if there are no hits in the db:\n return $inst;\n }\n else {\n return $inst;\n }\n}", "title": "" }, { "docid": "a2bd8cc0c570f2b8bd0012e5e7e17fb6", "score": "0.5388652", "text": "public function getEavAttributeRepository();", "title": "" }, { "docid": "2b88b566b5ae988b698a373492c3e13b", "score": "0.53444046", "text": "public function organizationalUnitModel();", "title": "" }, { "docid": "ee61970d68322d24176393a645994c83", "score": "0.5323478", "text": "public function lista_instituicaos()\n {\n $this->CooperacaoAcordo->Instituicao->contain([\n 'Continente',\n 'Pais',\n 'Provincia',\n 'Cidade',\n ]);\n $this->set('instituicaos', $this->Paginator->paginate('Instituicao'));\n }", "title": "" }, { "docid": "ef7e57b919aee78fefa3270ea4c8e386", "score": "0.5309817", "text": "public function getAuteur() {\n $pdo = new wPdo('mysql:host=localhost;dbname=tests_orm', 'root', '');\n $db = new wDb($pdo);\n wOrm::setDataSource($db);\n return Auteur::findOne(array('id' => $this->getAuteur_id()));\n }", "title": "" }, { "docid": "9f1fc585b86a1b46f435e8a21057e568", "score": "0.528338", "text": "public function getCategoryRepository();", "title": "" }, { "docid": "322fe532200a03c6db771b4b9d94d86b", "score": "0.52745396", "text": "protected function UserCatalog()\n {\n parent::PersonCatalog();\n }", "title": "" }, { "docid": "8b9949d460f8a35b82c48659831f9bfe", "score": "0.52555037", "text": "public function index()\n {\n //list all owners in model\n // return Owner::all();\n // $owner = Owner::all();\n // return new OwnerResource($owner);\n return OwnerResource::collection(Owner::all());\n }", "title": "" }, { "docid": "1448b08ee390fd118e61d69f6f574070", "score": "0.52507776", "text": "public function objectCategoryOrganizationalUnit();", "title": "" }, { "docid": "36f19c5208e2e9d35bb1eaee7efbfcd8", "score": "0.52488315", "text": "function build_oai_objects($record, $namespace, $collection_pid, $content_model) {\n set_time_limit(0);\n module_load_include('inc', 'fedora_repository', 'api/fedora_utils');\n module_load_include('inc', 'fedora_repository', 'api/fedora_item');\n $thumbnail_file = drupal_get_path('module', 'islandora_harvester') . '/images/Crystal_Clear_action_filenew.png';\n\n $pid = fedora_item::get_next_PID_in_namespace($namespace);\n $dcStream = $record['dc'];\n $modsStream = oai_create_mods($dcStream);\n preg_match('/<dc:title>.*<\\/dc:title>/', $dcStream, $matches);\n $title = preg_replace('/<\\/?dc:title>/', \"\", $matches[0]);\n $item = fedora_item::ingest_new_item($pid, 'A', $title, 'Owner');\n $item->modify_datastream_by_value($dcStream, 'DC', \"Dublin Core\", 'text/xml');\n $item->add_datastream_from_string($modsStream, 'MODS', \"MODS\", 'text/xml');\n $item->add_relationship('isMemberOfCollection', $collection_pid, 'info:fedora/fedora-system:def/relations-external#');\n $item->add_relationship('hasModel', $content_model, 'info:fedora/fedora-system:def/model#');\n $item->add_datastream_from_file($thumbnail_file, 'TN');\n}", "title": "" }, { "docid": "2b05c8e2f2b4d1cab5c0ca7250ad4fb0", "score": "0.52402216", "text": "function getOUs($ds, $dn) {\r\n\t$filter = array('ForeignSecurityPrincipals', 'Managed Service Accounts', 'Program Data', 'System');\r\n\r\n\t$ou = array();\r\n\r\n\t$result = ldap_list($ds, $dn, \"name=*\", array(\"ou\", \"cn\", \"objectclass\")) or die(\"LDAP Error: \".ldap_error($ds));\r\n\t$entries = ldap_get_entries($ds, $result);\r\n\tif ($entries[\"count\"] > 0) {\r\n\t\tfor ($i=0; $i < $entries[\"count\"]; $i++) {\r\n\t\t\t//if (!isComputer($entries[$i][\"objectclass\"]) && !isUser($entries[$i][\"objectclass\"]) && !isGroup($entries[$i][\"objectclass\"])) {\r\n\t\t\tif ((isContainer($entries[$i][\"objectclass\"]) || isOU($entries[$i][\"objectclass\"])) && (!in_array($entries[$i][\"cn\"][0], $filter) && !in_array($entries[$i][\"ou\"][0], $filter))) {\r\n\t\t\t\t$ou[$entries[$i][\"dn\"]] = getOUs($ds, $entries[$i][\"dn\"]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tuksort($ou, 'key_sort');\r\n\treturn $ou;\r\n}", "title": "" }, { "docid": "b78fbf7b1bef20915e118c99fbdfc8f4", "score": "0.5219777", "text": "function campagnes_autoriser(){}", "title": "" }, { "docid": "3cfc6b060ea593772fad87d2b94e2f5a", "score": "0.52144784", "text": "abstract protected function getUserRepository(IContainer $container) : IUserRepository;", "title": "" }, { "docid": "6003e53da0816221cfd592a64a18dc62", "score": "0.5182468", "text": "public function getRepository();", "title": "" }, { "docid": "6003e53da0816221cfd592a64a18dc62", "score": "0.5182468", "text": "public function getRepository();", "title": "" }, { "docid": "b56e7780b8986c232555902296d1cb96", "score": "0.51790875", "text": "protected static function getInstancia() {\n\n if (self::$oInstance == null) {\n self::$oInstance = new MensageriaAcordoUsuarioRepository();\n }\n return self::$oInstance;\n }", "title": "" }, { "docid": "9672e86b74c566781f60d86e9ecb38ee", "score": "0.5170516", "text": "function getOwnerWebsites($oid,$type) {\n\t\t$sql = 'SELECT WEB_Vendor as VendorID FROM Websites WHERE OWNER_Type = \"' . $type . '\" AND OWNER_ID = \"' . $oid . '\";';\n\t\t$query = $this->db->query($sql);\n\t\treturn ($query) ? $query->result() : FALSE;\n\t}", "title": "" }, { "docid": "1398efdc4c54cb9546fcf623658da1e1", "score": "0.5163301", "text": "public function index() {\n// $this->set('clientes',$this->Client->find('all',$param)); //SELECT * FROM STUDENTS WHERE name desc\n// $this->set('estudiantes',$this->Student->findAllByLastName('solano', array() ,array('Student.id' => 'desc')));\n //$this->set('estudiantes',$this->Student->findAllByLastNameOrName('solano','rudy', array() ,array('Student.id' => 'desc')));\n }", "title": "" }, { "docid": "199c92d341c8a801d0b810d7b16f2b85", "score": "0.5160151", "text": "public function uminus()\n {\n }", "title": "" }, { "docid": "0d27456e9c979dc68a1bd093d4ca3c75", "score": "0.5145333", "text": "abstract public function getMemberDAO();", "title": "" }, { "docid": "527e4d5d0c369527a02bfb7a073845f5", "score": "0.5123956", "text": "abstract protected function loadRepositories();", "title": "" }, { "docid": "82095ecacac7f20291e4e051527b7fef", "score": "0.51200795", "text": "public function getRepository()\n {\n }", "title": "" }, { "docid": "0dc3084097b4867918ad9563fa5c43a3", "score": "0.511613", "text": "public function initialize()\n {\n $this->setSchema(\"biblioteca\");\n $this->setSource(\"usuario\");\n $this->hasMany('id', 'Emprestimo', 'cd_usuario', ['alias' => 'Emprestimo']);\n }", "title": "" }, { "docid": "6231939e5d7e5973dfbf7dfcfeafcc97", "score": "0.5109839", "text": "function livraison_autoriser(){}", "title": "" }, { "docid": "b08d44d6834394ad70fa19d07aa7e144", "score": "0.50924754", "text": "protected function getUserEntity()\n {\n }", "title": "" }, { "docid": "3b5efa019733b3f8e3d37c2f652b250d", "score": "0.50881827", "text": "abstract public function syncOu(Ou_model $o);", "title": "" }, { "docid": "63434a80c8394b1b9d4ea8a22bafc14a", "score": "0.5088099", "text": "function taxonomie_autoriser(){}", "title": "" }, { "docid": "4dec08312818035c3618203995bac8c1", "score": "0.50842726", "text": "public function getArticles(){\n return $this->getAll('articles2','Article');\n}", "title": "" }, { "docid": "aa249761098781a242efd5ae84deb4b9", "score": "0.50822574", "text": "protected function getSEOLinksRepositoryService()\n {\n }", "title": "" }, { "docid": "6007a2416c862ff41370d565d58405d7", "score": "0.5065838", "text": "public function owner();", "title": "" }, { "docid": "4a08163d0b6bd7fc46a5f746309fb431", "score": "0.5062544", "text": "protected function getIndexableRepositoryService()\n {\n }", "title": "" }, { "docid": "b8d86eafc8b0777ff776e7e613f5e3c5", "score": "0.5057691", "text": "public function __construct(){\n $this->setModelInstance('User');\n\n }", "title": "" }, { "docid": "fb7ca818e585839c36d740298349fbb9", "score": "0.50381386", "text": "public function organizationalUnit();", "title": "" }, { "docid": "923e69bc38ba3c6e0ddf8e7ac6dcc841", "score": "0.5028352", "text": "function __construct(){\n\t\t\t$this->modelo = new UsuarioBSS();\n\t\t}", "title": "" }, { "docid": "e459cfcbd8bbf867c46c0b9628385d58", "score": "0.50231326", "text": "abstract public function getEntidad();", "title": "" }, { "docid": "65de6d2b1bb2cc61dd4dd076548f0261", "score": "0.5021645", "text": "function projets_sites_autoriser(){}", "title": "" }, { "docid": "57cc3a8a86e8c2969957ea0d1be4157d", "score": "0.50195044", "text": "public function __construct()\n {\n $this->repo = new ResultaatRepository();\n $this->repoStudent = new StudentRepository();\n }", "title": "" }, { "docid": "7ee0edd04af17e0318fc333af2c2a5f2", "score": "0.5012833", "text": "public function getCategoryVarcharRepository();", "title": "" }, { "docid": "fec2e73357e777ce1b9353200557fde5", "score": "0.5006609", "text": "function getAbstractEntity ($entity){\n\tglobal $resource;\n\tglobal $resource_module;\n\tglobal $resource_activ;\n\t\n\t$attr[\"intitule\"] = addslashes($entity->getAttribute(\"nom\"));\n\t$attr[\"description\"] = addslashes($entity->getAttribute(\"description\"));\n\t$attr[\"type_digital\"] = 1;\n\t$attr[\"modalite\"] = addslashes($entity->getAttribute(\"modalite\"));\n\t$attr[\"chemin_icon\"] = \"\";\n\n\t\n\t//pour obtenir id du type\n\t$type = explode(\"_\",$entity->getAttribute(\"type\"),2);\n\t$query = \"SELECT id FROM inl_type WHERE name = '\".$type[1].\"'\";\n\t$result = mysql_query($query);\n\twhile ($row = mysql_fetch_array($result)) {\n\t\t$attr[\"id_type\"] = $row[\"id\"];\n\t}\n\n\t\n\t$attr[\"id_local_role\"] = 1;\n\t//write_local_role\n\n\t\n\t$query = \"SELECT A.id, W.roleentity_id FROM inl_abstract_entity A , inl_roleentity_abstractentity R, inl_roleentity_abstractworkspace W WHERE A.name = '\".$attr[\"intitule\"].\"'\";\n\t$query .= \" AND A.id = R.abstractentity_id\";\n\t$query .= \" AND R.roleentity_id = W.roleentity_id\";\n\t$query .= \" AND W.abstractworkspace_id = \".$resource_module;\n\t$result = mysql_query($query);\n\tif ($result !=false){\n\t\t$compteur = mysql_num_rows($result);\n\t\tif ($compteur ==0){\n\t\t\t//avec le local_role \n\t\t\t/*\n\t\t\t$attr[\"id_local_role\"] = ;\n\t\t\t$sql = \"INSERT INTO `abstract_entity`(`intitule`, `id_type`, `id_local_role`, `description`, `type_digital`, `modalite`) VALUES\"; \n\t\t\t$sql .= \"('\".$attr[\"intitule\"].\"','\".$attr[\"id_type\"].\"','\".$attr[\"id_local_role\"].\"','\".$attr[\"description\"].\"','\".$attr[\"type_digital\"].\"','\".$attr[\"modalite\"].\"')\";\n\t\t\t$query = $sql;\n\t\t\tmysql_query($query);*/\n\t\t\t\n\t\t\t//sans le local_role\n\t\t\tset_time_limit(10) ;\n\t\t\tif ($resource_module !=0){\n\t\t\t\t$sql = \"INSERT INTO `inl_abstract_entity`(`name`, `type_id`, `description`, `digital`, `pathIcon`) VALUES\"; \n\t\t\t\t$sql .= \"('\".$attr[\"intitule\"].\"','\".$attr[\"id_type\"].\"','\".$attr[\"description\"].\"','\".$attr[\"type_digital\"].\"','\".$attr[\"chemin_icon\"].\"')\";\n\t\t\t\tmysql_query($sql);\n\t\t\t\t$id_entity = mysql_insert_id();\n\t\t\t\t\n\t\t\t\t$sql = \"INSERT INTO `inl_role_entity`(`description`) VALUES\"; \n\t\t\t\t$sql .= \"('Ressource')\";\n\t\t\t\tmysql_query($sql);\n\t\t\t\t$id_role_entity = mysql_insert_id();\n\t\t\t\t\n\t\t\t\t$sql = \"INSERT INTO `inl_roleentity_abstractentity`(`roleentity_id`, `abstractentity_id`) VALUES\"; \n\t\t\t\t$sql .= \"(\".$id_role_entity.\",\".$id_entity.\")\";\n\t\t\t\tmysql_query($sql);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$sql = \"INSERT INTO `inl_roleentity_abstractworkspace`(`roleentity_id`, `abstractworkspace_id`) VALUES\"; \n\t\t\t\t$sql .= \"(\".$id_role_entity.\",\".$resource_module.\")\";\n\t\t\t\tmysql_query($sql);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$concrete_entity = $entity -> getElementsByTagName('concrete_entity');\n\t\t\t\tforeach($concrete_entity as $c_entity){\n\t\t\t\t\tgetConcreteEntity($c_entity, $entity, $id_entity, $id_role_entity);\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\twhile ($row = mysql_fetch_array($result)) {\n\t\t\t\t$id_role_entity = $row[\"roleentity_id\"];\n\t\t\t}\n\t\t\tif ($resource_activ !=0){\n\t\t\t\t$sql = \"UPDATE `inl_roleentity_abstractworkspace` SET `abstractworkspace` = \".$resource_activ ;\n\t\t\t\t$sql .= \" WHERE `roleentity_id` =\".$id_role_entity ;\n\t\t\t\tmysql_query($sql);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "d42948a7473736fbdd081be436352a33", "score": "0.500298", "text": "function AjouterAnnonceUtilisateur($nom_article, $description_article, $prix_article, $photo_article, $categorie_id, $utilisateur_id, $region_id){\n //Instance du model\n $article = new ClassArticleUtilisateur();\n\n //Appel de la methode du model\n $ajouterArtcileUser = $article->AjouterArticleUtilisateur($nom_article, $description_article, $prix_article, $photo_article, $categorie_id, $utilisateur_id, $region_id);\n\n}", "title": "" }, { "docid": "6150e0847d86109d2b9041a33784730e", "score": "0.49993515", "text": "function ProvinciaDAO ()\r\n {\r\n parent::DAO();\r\n return; \r\n }", "title": "" }, { "docid": "bb5af3923ad6f75e551204ecd48ce185", "score": "0.4998134", "text": "public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"pessoa_juridica\");\n $this->belongsTo('id_tipoesfera', 'Circuitos\\Models\\Lov', 'id', ['alias' => 'Lov']);\n $this->belongsTo('id_setor', 'Circuitos\\Models\\Lov', 'id', ['alias' => 'Lov2']);\n $this->hasOne('id', 'Circuitos\\Models\\Pessoa', 'id', ['alias' => 'Pessoa']);\n }", "title": "" }, { "docid": "53cbaf99476ccac75f4e490b11a3c318", "score": "0.4995525", "text": "function ChiTietSuKienDAO(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "02247159825ca61625650df9430ff2ff", "score": "0.4991339", "text": "public function manageInstitutions() {\n $institutions = $this->getDoctrine()->getRepository('TkglCoreBundle:Institution')->findAll();\n return array('institutions' => $institutions);\n }", "title": "" }, { "docid": "e9a0b79b996f969334de2e1d6b5b13fc", "score": "0.49822876", "text": "function admin_ownerlist()\n\t{\n\t\t$type='4';\n\t\t$result['owners']=$this->Mymodel->ownerlists($type);\n\t\t$this->load->view('admin/admin_ownerlist',$result);\n\t}", "title": "" }, { "docid": "071e4c9b84310d796096a18f8c67c8f2", "score": "0.49754226", "text": "public function syncOu(Ou_model $o) {\n\t\t$usergroups = UserGroup_model::list_by_ou_id($o -> ou_id);\n\t\tforeach($usergroups as $ug) {\n\t\t\toutp(\"\\tGroup: \" . $ug -> group_cn);\n\n\t\t\ttry {\n\t\t\t\t$subUserGroups = UserGroup_api::list_children($ug -> group_id);\n\t\t\t\t$ownerusergroups = OwnerUserGroup_model::list_by_group_id($ug -> group_id);\n\n\t\t\t\t$groupEmail = $this -> makeEmail($ug -> group_cn, $ug -> ListDomain);\n\t\t\t\ttry {\n\t\t\t\t\t/* Get group and enumerate group members */\n\t\t\t\t\t$group = $this -> gds -> groups -> get($groupEmail);\n\t\t\t\t\t$memberList = $this -> gds -> members -> listMembers($groupEmail);\n\t\t\t\t\t$members = $memberList -> members;\n\t\t\t\t\twhile($memberList -> nextPageToken != \"\") {\n\t\t\t\t\t\t$memberList = $this -> gds -> members -> listMembers($group -> email, array(\"pageToken\" => $memberList -> nextPageToken));\n\t\t\t\t\t\tforeach($memberList -> members as $m) {\n\t\t\t\t\t\t\t$members[] = $m;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(!is_array($members)) {\n\t\t\t\t\t\t$members = array();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* Make an index */\n\t\t\t\t\t$idxAccount = array();\n\t\t\t\t\t$idxGroup = array();\n\t\t\t\t\tforeach($members as $member) {\n\t\t\t\t\t\t$pe = new Provisioning_Email($member -> email);\n\t\t\t\t\t\t$domain_id = $this -> getDomainId($pe -> domain);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($domain_id && $member -> type == 'GROUP') {\n\t\t\t\t\t\t\t$group_cn = $pe -> local;\n\t\t\t\t\t\t\t$idxGroup[$domain_id][$group_cn] = true;\n\t\t\t\t\t\t} else if($domain_id && $member -> type == 'USER') {\n\t\t\t\t\t\t\t$account_login = $pe -> local;\n\t\t\t\t\t\t\t$idxAccount[$domain_id][$account_login] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Add sub-groups */\n\t\t\t\t\tforeach($subUserGroups as $sug) {\n\t\t\t\t\t\tif(!isset($idxGroup[$sug -> group_domain][$sug -> group_cn])) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t$memberEmail = $this -> makeEmail($sug -> group_cn, $sug -> ListDomain);\n\t\t\t\t\t\t\t\t$m = new Google_Member();\n\t\t\t\t\t\t\t\t$m -> setEmail($memberEmail);\n\t\t\t\t\t\t\t\t$this -> gds -> members -> insert($groupEmail, $m);\n\t\t\t\t\t\t\t\toutp(\"\\t\\tAdded sub-group: \" . $sug -> group_cn);\n\t\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\tError adding sub-group \" . $sug -> group_cn . \": \" . $e -> getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tunset($idxGroup[$sug -> group_domain][$sug -> group_cn]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tforeach($idxGroup as $domain_id => $list) {\n\t\t\t\t\t\tif(count($list) > 0) {\n\t\t\t\t\t\t\toutp(\"\\t\\tNotice: There are \" . count($list) . \" $domain_id groups unaccounted for locally. Run search to import them.\");\n\t\t\t\t\t\t\tforeach($list as $m => $t) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\t\\t$m\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Add users */\n\t\t\t\t\tforeach($ownerusergroups as $oug) {\n\t\t\t\t\t\tif($a = $this -> getOwnersAccount($oug -> AccountOwner)) {\n\t\t\t\t\t\t\tif(!isset($idxAccount[$a -> account_domain][$a -> account_login])) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t$memberEmail = $this -> makeEmail($a -> account_login, $a -> ListDomain);\n\t\t\t\t\t\t\t\t\t$m = new Google_Member();\n\t\t\t\t\t\t\t\t\t$m -> setEmail($memberEmail);\n\t\t\t\t\t\t\t\t\t$this -> gds -> members -> insert($groupEmail, $m);\n\t\t\t\t\t\t\t\t\toutp(\"\\t\\tAdded user: \" . $a -> account_login . \" \" . $a -> account_domain);\n\t\t\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\t\t\toutp(\"\\t\\tError adding user \" . $a -> account_login . \": \" . $e -> getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tunset($idxAccount[$a -> account_domain][$a -> account_login]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tforeach($idxAccount as $domain_id => $list) {\n\t\t\t\t\t\tif(count($list) > 0) {\n\t\t\t\t\t\t\toutp(\"\\t\\tNotice: There are \" . count($list) . \" $domain_id users unaccounted for locally. Run search to import them:\");\n\t\t\t\t\t\t\tforeach($list as $m => $t) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\t\\t$m\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t/* Need to create group */\n\t\t\t\t\t$this -> groupCreate($ug);\n\t\t\t\t\toutp(\"\\t\\tCreated just now\");\n\n\t\t\t\t\tforeach($subUserGroups as $sug) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t$memberEmail = $this -> makeEmail($sug -> group_cn, $sug -> ListDomain);\n\t\t\t\t\t\t\t$m = new Google_Member();\n\t\t\t\t\t\t\t$m -> setEmail($memberEmail);\n\t\t\t\t\t\t\t$this -> gds -> members -> insert($groupEmail, $m);\n\t\t\t\t\t\t\toutp(\"\\t\\tAdded sub-group: \" . $sug -> group_cn);\n\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\toutp(\"\\t\\tError adding sub-group \" . $sug -> group_cn . \": \" . $e -> getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($ownerusergroups as $oug) {\n\t\t\t\t\t\tif($a = $this -> getOwnersAccount($oug -> AccountOwner)) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t$memberEmail = $this -> makeEmail($a -> account_login, $a -> ListDomain);\n\t\t\t\t\t\t\t\t$m = new Google_Member();\n\t\t\t\t\t\t\t\t$m -> setEmail($memberEmail);\n\t\t\t\t\t\t\t\t$this -> gds -> members -> insert($groupEmail, $m);\n\t\t\t\t\t\t\t\toutp(\"\\t\\tAdded user: \" . $a -> account_login . \" \" . $a -> account_domain);\n\t\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\tError adding user \" . $a -> account_login . \": \" . $e -> getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(Exception $e) {\n\t\t\t\toutp(\"\\t\\t\".$e -> getMessage());\n\t\t\t}\n\t\t}\n\n\t\t$accountOwners = AccountOwner_model::list_by_ou_id($o -> ou_id);\n\t\t$orgUnitPath = $this -> orgUnitPath(false, $o -> ou_id);\n\t\tforeach($accountOwners as $ao) {\n\t\t\tif($a = $this -> getOwnersAccount($ao)) {\n\t\t\t\toutp(\"\\tUser: \" . $a -> account_login . \" (\" . $a -> account_domain . \")\");\n\t\t\t\t$userEmail = $this -> makeEmail($a -> account_login, $a -> ListDomain);\n\t\t\t\ttry {\n\t\t\t\t\t$user = $this -> gds -> users -> get($userEmail);\n\t\t\t\t\t$name = $user -> getName();\n\t\t\t\t\tif($name -> getGivenName() != $ao -> owner_firstname || $name -> getFamilyName() != $ao -> owner_surname) {\n\t\t\t\t\t\toutp(\"\\t\\tUser firstname or surname mis-match ( '\" . $name -> getGivenName() . \", \" . $name -> getFamilyName() . \"' should be '\" . $ao -> owner_surname . \", \" . $ao -> owner_firstname . \"'). Pushing through an update.\");\n\t\t\t\t\t\t$this -> accountUpdate($a, $a -> account_login);\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/* Check org unit */\n\t\t\t\t\tif($user -> getOrgUnitPath() != $orgUnitPath) {\n\t\t\t\t\t\t/* Incorrect org Unit */\n\t\t\t\t\t\toutp(\"\\t\\tFixing orgUnit mis-match: Should be \" . $orgUnitPath . \" (not \" . $user -> getorgUnitPath() . \")\");\n\t\t\t\t\t\t$user -> setOrgUnitPath($orgUnitPath);\n\t\t\t\t\t\t$this -> gds -> users -> update($userEmail, $user);\n\t\t\t\t\t}\n\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t/* Note: This block previously deleted the account locally. This is not good, as errors will be thrown for rate\n\t\t\t\t\t * limiting which would untrack many accounts. */\n\t\t\t\t\toutp(\"\\t\\tWarning: Could not load the account: \".$e -> getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$organizationalunits = Ou_model::list_by_ou_parent_id($o -> ou_id);\n\t\tforeach($organizationalunits as $ou) {\n\t\t\toutp(\"\\tUnit: \" . $ou -> ou_name);\n\t\t\ttry {\n\t\t\t\t$orgUnitPath = $this -> orgUnitPath(false, $ou -> ou_id, false);\n\t\t\t\ttry {\n\t\t\t\t\t$orgUnit = $this -> gds -> orgunits -> get($this -> customerId, $orgUnitPath);\n\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t$this -> ouCreate($ou);\n\t\t\t\t\toutp(\"\\t\\tCreated just now\");\n\t\t\t\t}\n\t\t\t\tActionQueue_api::submit($this -> service -> service_id, $this -> service -> service_domain, 'syncOu', $ou -> ou_name);\n\t\t\t} catch(Exception $e) {\n\t\t\t\toutp(\"\\t\\t\".$e -> getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "eb64b146226a399b4d1b20aa58763c4f", "score": "0.49742308", "text": "function modelorganism () {\n return ModelOrganismModule::getInstance();\n}", "title": "" }, { "docid": "ac42144afbc79d22c61fdf818c08518a", "score": "0.49734333", "text": "function abonnement_autoriser(){}", "title": "" }, { "docid": "0cbabe8885ba0010bcfa5d5819b8731b", "score": "0.4947125", "text": "public function getList() {\r\n\r\n// return new JsonModel(array('data'=>array('nome'=>'Tenil')));\r\n\r\n $em = $this->getServiceLocator()->get('Doctrine\\ORM\\EntityManager');\r\n $result = $em->getRepository('TenilUser\\Entity\\User')\r\n ->findArray();\r\n\r\n return new JsonModel(array('data' => $result));\r\n }", "title": "" }, { "docid": "ea0b07f1c32f0fdbb1fe32bd7b444a94", "score": "0.4945868", "text": "public function getUniversidad()\n {\n return $this->hasOne(Universidades::className(), ['id' => 'universidad_id']);\n }", "title": "" }, { "docid": "1d7629ab5ed2cd767fc15edee176b754", "score": "0.49327683", "text": "public function getHasOneAndHasMany(\\Phalcon\\Mvc\\ModelInterface $model) {}", "title": "" }, { "docid": "335e5d06fa820579ec9ddfffb96fddaa", "score": "0.49322346", "text": "function __construct() {\n require_once Parametre::$MVC_BASE.'/entities/Jeton.php';\n require_once Parametre::$MVC_BASE.'/entities/User.php';\n require_once Parametre::$MVC_BASE.'/helpers/DaoJeton.php';\n require_once Parametre::$MVC_BASE.'/helpers/Vue_generique.php';\n require_once Parametre::$MVC_BASE.'/mini_modules/mod_inscription/model/Dao_inscription.php';\n require_once Parametre::$MVC_BASE.'/mini_modules/mod_inscription/vue/Vue_inscription.php';\n \n }", "title": "" }, { "docid": "681818b89595a1d11c2cdc5ba05e0ad3", "score": "0.49276978", "text": "function getUser(){ \n\t\t$odin = phpCAS::getUser();\n\t\t$uhandler = new UserHandler();\n\t\t$user = $uhandler->get(array(\n\t\t\t'field'=>'Odin',\n\t\t\t'operator'=>'LIKE',\n\t\t\t'value'=>$odin,\n 'assoc'=>'false'));\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "002fd7181ebd501732e19bfb119d0b9e", "score": "0.4927375", "text": "function NguoiDungDAO()\r\n\t{\r\n\t}", "title": "" }, { "docid": "e608f1250eecca4a8e4d1f0c2e947589", "score": "0.4923454", "text": "public function index()\n {\n return UplandResource::collection(Upland::all());\n }", "title": "" }, { "docid": "91181b2dd3a7799f67078e57abe1d5d6", "score": "0.49160457", "text": "public function users();", "title": "" }, { "docid": "82f4c026777c450754f7cfffc10c0573", "score": "0.49088943", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('cnes',$this->cnes,true);\r\n\r\n\t\t$criteria->compare('nome',$this->nome,true);\r\n\r\n\t\treturn new CActiveDataProvider('Unidade', array(\r\n\t\t\t'criteria'=>$criteria,\r\n 'pagination'=>array(\r\n 'pageSize'=>20\r\n )\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "600a183a897856cbbf1b188dc2bc97b7", "score": "0.4904559", "text": "abstract public function recursiveSearch(Ou_model $o);", "title": "" }, { "docid": "dd0f06dfc31c604e8ec7587a9b0e724a", "score": "0.49012852", "text": "function encheres_autoriser(){}", "title": "" }, { "docid": "8cfb3d037978f0c822bfebd198d19679", "score": "0.48980105", "text": "function llenarCatalogosModelo()\n\t{\n\t\t$this->modelo->hacerArreglosBase();\n\t}", "title": "" }, { "docid": "abd863aa66f034ce4a0f9280117eaf8b", "score": "0.4893718", "text": "function getConcreteEntity ($c_entity, $a_entity, $id_a_entity, $id_role_entity){\n\tglobal $id_userspace;\n\tglobal $nom_formation;\n\n\t//déplacement du fichier\n\t$chemin_esprit = addslashes($a_entity->getAttribute(\"nom\"));\n\t$chemin_claro = \"datas/\".$id_userspace.\"/\".$nom_formation;\n\t/*\n\t$chemin_esprit = $c_entity->getAttribute(\"datas\");\n\n\trename ($chemin_esprit, $chemin_claro);\n\t*/\n\n\t//récupére les folder et créer si besoin \n\t$query = \"SELECT * FROM inl_folder WHERE name = \\\"\".$nom_formation.\"\\\" AND userspace_id = \".$id_userspace;\n\t$result = mysql_query($query);\n\t$compteur = mysql_num_rows($result);\n\tif ($compteur ==0){\n\t\t$sql = \"INSERT INTO `inl_folder`(`name`, `path`, `userspace_id`) VALUES \";\n\t\t$sql .= \"('\".$nom_formation.\"','\".$chemin_claro.\"',\".$id_userspace.\")\";\n\t\tmysql_query($sql);\n\t\t$id_folder = mysql_insert_id(); \n\t}\n\telse {\n\t\twhile ($row = mysql_fetch_array($result)) {\n\t\t\t$id_folder = $row[\"id\"];\n\t\t}\n\t}\n\t\n\t\n\t//création de concrete_resource\n\t$attr[\"nom\"] = addslashes($a_entity->getAttribute(\"nom\"));\n\t$attr[\"description\"] = addslashes($a_entity->getAttribute(\"description\")); ;\n\t$attr[\"chemin\"] = $chemin_claro;\n\t\n\t\n\t$sql = \"INSERT INTO `inl_concrete_resource`(`name`, `path`, `description`) VALUES\"; \n\t$sql .= \"('\".$attr[\"nom\"].\"','\".$attr[\"chemin\"].\"','\".$attr[\"description\"].\"')\";\n\tmysql_query($sql);\n\t$id_c_entity = mysql_insert_id();\n\t\n\t\n\t//création de concrete_entity_userspace\n\t$sql = \"INSERT INTO `inl_concreteresource_userspace`(`concreteresource_id`, `userspace_id`) VALUES\"; \n\t$sql .= \"(\".$id_c_entity.\",\".$id_userspace.\")\";\n\tmysql_query($sql);\n\t\n\t\n\t//création de folder_entity \n\t$sql = \"INSERT INTO `inl_concreteresource_folder`(`concreteresource_id`, `folder_id`) VALUES\"; \n\t$sql .= \"('\".$id_c_entity.\"','\".$id_folder.\"')\";\n\tmysql_query($sql);\n\t\n}", "title": "" }, { "docid": "0dd6deac933657c94e351c899a574e99", "score": "0.48901632", "text": "public function getUtenti(){\n $this->db->setvariabili($this->tabella,\"1\",\"\");\n\t return $this->db->queryGenerica(\"*\",\"\");\n }", "title": "" }, { "docid": "8e1f2df3689b22849feb18b268c8538e", "score": "0.4882416", "text": "public function getInstituicao() {\n return $this->oInstituicao;\n }", "title": "" }, { "docid": "e9acf4d4738faed1d9b35f2b88999f17", "score": "0.48787007", "text": "private function addUserData()\n {\n \t$this->model = $this->model->leftJoin('users as u', 'p.owner_id', '=', 'u.id')->addSelect('u.name as uname');\n }", "title": "" }, { "docid": "27f302529ae3f03193070ee3993d4f27", "score": "0.48786274", "text": "abstract protected function getRepos();", "title": "" }, { "docid": "8808471be98582abbe6e90dbf3d704e8", "score": "0.487702", "text": "function partageur_autoriser(){}", "title": "" }, { "docid": "4aa7cd41838d46d9c4d6110512f245f0", "score": "0.48730168", "text": "function model()\n {\n return 'App\\Organismos';\n }", "title": "" }, { "docid": "b9ecdf0cbfafe551926dbc4fd0c46b2c", "score": "0.48644844", "text": "public function institution()\n {\n return $this->belongsTo(institution::class);\n }", "title": "" }, { "docid": "77a165dbcf35835af6389b883d92bb50", "score": "0.48641098", "text": "public function usersearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('id_region',$this->id_region,true);\n\t\t$criteria->compare('id_country',$this->id_country);\n\t\t$criteria->compare('oid',$this->oid,true);\n\t\t$criteria->compare('city_name_ru',$this->city_name_ru,true);\n\t\t$criteria->compare('city_name_en',$this->city_name_en,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e16f383083aedd912059adb8c13e8301", "score": "0.48584306", "text": "public function loadUserByUsername($username)\n{\t\n\t\nif ($user = $this->userRepo->findOneBy(array('uuid' => $username))) {\n\nreturn $user;\n\n}\n\n// Try service\n\n\nthrow new UsernameNotFoundException(sprintf('No record found for user %s', $username));\n}", "title": "" }, { "docid": "a12d640929c5fe2e881a45099d46459d", "score": "0.48575318", "text": "function ncsu_directory_query() {\n\t$ds = @ldap_connect(\"ldap.ncsu.edu\");\t# Open connection to ldap.ncsu.edu\n\tif (!$ds) {\n\t\tdie(\"Unable to connect to ldap.ncsu.edu.\");\n\t}\n\n\t$department = get_option('department');\n\n\t$res = @ldap_bind($ds);\t\t\t# Anonymous bind\n\t$srch = @ldap_search($ds,\n\t\t\"ou=employees,ou=people,dc=ncsu,dc=edu\",\t# Search in employees tree (directory info)\n\t\t\"(|(ou=\" . $department . \")(ncsuAffilitation=\" . $department . \")(ncsuCurriculumCode=\" . $department . \"))\", # Search on Department\n\t\tarray('uid'), # We want Unity ID\n\t\t0,\t\t\t\t# We want values and types (see docs)\n\t\t0\t\t\t\t# We want all results\n\t);\n\n\tif ($srch) {\n\t\t$results = @ldap_get_entries($ds, $srch); # Retrieve all results\n\t\t$temp_ids = get_option('unity_ids');\n\t\t$manual_ids = explode(',', $temp_ids);\n\t\tforeach ($manual_ids as $id) {\n\t\t\t$obj_id = array('uid' => array(trim($id)));\n\t\t\tarray_push($results, $obj_id);\n\t\t}\n\t\tforeach ($results as $i) {\n\t\t\tif($i['uid'][0]!=\"\") {\n\t\t\t\t$dn = \"uid=\" . $i['uid'][0] . \",ou=employees,ou=people,dc=ncsu,dc=edu\";\n\t\t\t\t$filter=\"(objectclass=*)\"; // this command requires some filter\n\t\t\t\t$justthese = array('displayName', 'ncsuAltDisplayName', 'ncsuPreferredDepartment', 'mail', 'ncsuWebSite', 'registeredAddress', 'telephoneNumber', 'title', 'uid', 'ncsuPrimaryRole');\n\t\t\t\t$sr=ldap_read($ds, $dn, $filter, $justthese);\n\t\t\t\t$entry = ldap_get_entries($ds, $sr);\n\t\t\t\t$i = $entry[0];\n\t\t\t\tncsu_directory_db_insert_data($i['displayname'][0], $i['ncsualtdisplayname'][0], $i['ncsupreferreddepartment'][0], $i['mail'][0], $i['ncsuwebsite'][0], $i['registeredaddress'][0], $i['telephonenumber'][0], $i['title'][0], $i['uid'][0], $i['ncsuprimaryrole'][0]);\n\t\t\t\t$existing_post = array(\n\t\t\t\t\t'name' => $i['uid'][0],\n\t\t\t\t\t'post_type' => 'ncsu_person'\n\t\t\t\t);\n\t\t\t\tif(!get_posts($existing_post)) {\n\t\t\t\t\t$post = array(\n\t\t\t\t\t\t'post_title' => $i['displayname'][0],\n\t\t\t\t\t\t'post_name' => $i['uid'][0],\n\t\t\t\t\t\t'post_type' => 'ncsu_person',\n\t\t\t\t\t\t'post_status' => 'publish'\n\t\t\t\t\t);\n\t\t\t\t\twp_insert_post($post);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$args = array(\n\t\t\t'post_type' => 'ncsu_person',\n\t\t\t'post_status' => 'publish',\n\t\t\t'posts_per_page' => -1\n\t\t);\n\t\t$current_people = get_posts($args);\n\t\tforeach($current_people as $person) {\n\t\t\tglobal $wpdb;\n\t\t\t$unity_id = $person->post_name;\n\t\t\t$result = $wpdb->get_row(\"SELECT unity_id FROM wp_ncsu_directory WHERE unity_id='$unity_id'\");\n\t\t\tif($result==null) {\n\t\t\t\twp_trash_post($person->ID);\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tprint \"<B>Directory lookup failed: \".ldap_error($ds).\"</B><BR>\\n\";\n\t}\n\n\t@ldap_close($ds);\t\t\t# Close off my connection\n}", "title": "" }, { "docid": "5e31279734ddec2f943695d92c5cc5f5", "score": "0.48554868", "text": "function listarEstructuraUo() {\r\n\t\t//crea el objetoFunSeguridad que contiene todos los metodos del sistema de seguridad\r\n\t\t//$this->objFunSeguridad=$this->create('MODEstructuraUo');\r\n\r\n\t\t//obtiene el parametro nodo enviado por la vista\r\n\t\t$node = $this -> objParam -> getParametro('node');\r\n\t\t$id_uo = $this -> objParam -> getParametro('id_uo');\r\n\r\n\t\tif ($node == 'id') {\r\n\t\t\t$this -> objParam -> addParametro('id_padre', '%');\r\n\t\t} else {\r\n\t\t\t$this -> objParam -> addParametro('id_padre', $id_uo);\r\n\t\t}\r\n\r\n\t\tif ($this -> objParam -> getParametro('filtro') == 'activo' && $node == 'id') {\r\n\t\t\t$count = 0;\r\n\t\t\t$pri = 1;\r\n\t\t\t$json = '';\r\n\t\t\t$count_temporal = 0;\r\n\t\t\t//$criterio_filtro = $this->objParam->getParametro('valor_filtro');\r\n\r\n\t\t\tif ($node == 'id') {\r\n\t\t\t\t$this -> objParam -> addParametro('id_padre', '%');\r\n\t\t\t} else {\r\n\t\t\t\t$this -> objParam -> addParametro('id_padre', $id_uo);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->objFunSeguridad=$this->create('MODUo');\r\n\t\t\t$this -> res = $this -> objFunSeguridad -> listarUoFiltro($this -> objParam);\r\n\t\t\t\r\n\t\t\tif ($this -> res) {\r\n\t\t\t\t\r\n\t\t\t\tforeach ($this->res->datos as $f) {\r\n\t\t\t\t\t//var_dump($f);\r\n\t\t\t\t\tif ($pri == 1) {\r\n\t\t\t\t\t\t//guardo el nivel\r\n\t\t\t\t\t\t$niveles[$count] = $f[\"niveles\"];\r\n\t\t\t\t\t\t//suponemos que el nivel inicial no tiene hijos\r\n\t\t\t\t\t\t$hijos[$count] = 0;\r\n\t\t\t\t\t\t$pri = 0;\r\n\t\t\t\t\t\t//prepara nodo\r\n\t\t\t\t\t\t$json = '[{';\r\n\t\t\t\t\t\t$json = $json . $this -> asignar($json, $f);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//este nodo es hijo del anterior nodo??\r\n\t\t\t\t\t\t//$posicion = strpos($f[\"niveles\"],$niveles[$count].'_');\r\n\t\t\t\t\t\t$posicion = strpos($f[\"niveles\"], $niveles[$count]);\r\n\t\t\t\t\t\t//var_dump($posicion);\r\n\t\t\t\t\t\t//var_dump($f[\"niveles\"]);\r\n\t\t\t\t\t\tif ($posicion !== false) {\r\n\r\n\t\t\t\t\t\t\t//echo \"ENTRA\";\r\n\t\t\t\t\t\t\t//var_dump($posicion);\r\n\r\n\t\t\t\t\t\t\t//pregunta mos si este el primer hijo del nivel padre\r\n\t\t\t\t\t\t\tif ($hijos[$count] == 0) {\r\n\r\n\t\t\t\t\t\t\t\t//si es el primero iniciamos las llaves\r\n\t\t\t\t\t\t\t\t$json = $json . ',children:[{';\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t//si no es el primero cerramos el hijo anterior y preparamos sllavez para el siguiente\r\n\t\t\t\t\t\t\t\t$json = $json . '},{';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//llenamos el nodo\r\n\t\t\t\t\t\t\t$json = $json . $this -> asignar($json, $f);\r\n\r\n\t\t\t\t\t\t\t//si el primer hijo incrementamos el nivel\r\n\t\t\t\t\t\t\tif ($hijos[$count] == 0) {\r\n\r\n\t\t\t\t\t\t\t\t//se incrementa el nivel\r\n\t\t\t\t\t\t\t\t$count++;\r\n\t\t\t\t\t\t\t\t//suponemos que este nuevo nivel no tiene hijos\r\n\t\t\t\t\t\t\t\t$hijos[$count] = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//se incrementa un hijo en el anterior nivel\r\n\t\t\t\t\t\t\t$hijos[$count - 1]++;\r\n\t\t\t\t\t\t\t//almacena el identificador del actual nivel\r\n\t\t\t\t\t\t\t$niveles[$count] = $f[\"niveles\"];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t//si el nodo no es hijo del anterio nivel\r\n\t\t\t\t\t\t\t//buscamos mas arriba hasta encontrar un padre o la raiz\r\n\t\t\t\t\t\t\t//en el camino vamos cerrando llavez\r\n\t\t\t\t\t\t\t$sw_tmp = 0;\r\n\t\t\t\t\t\t\t// sw temporal\r\n\t\t\t\t\t\t\t$count_temporal = 0;\r\n\t\t\t\t\t\t\twhile ($sw_tmp == 0) {\r\n\r\n\t\t\t\t\t\t\t\t$hijos[$count] = 0;\r\n\t\t\t\t\t\t\t\t$count--;\r\n\r\n\t\t\t\t\t\t\t\t$count_temporal++;\r\n\t\t\t\t\t\t\t\tif ($count_temporal == 1) {\r\n\r\n\t\t\t\t\t\t\t\t\t//$json =$json.' * ('.$count.')';\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$json = $json . '}]';\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t//$posicion = strpos($f[\"niveles\"],$niveles[$count].'_');\r\n\t\t\t\t\t\t\t\t$posicion = strpos($f[\"niveles\"], $niveles[$count]);\r\n\t\t\t\t\t\t\t\tif ($posicion !== false) {\r\n\r\n\t\t\t\t\t\t\t\t\t$sw_tmp = 1;\r\n\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\t//si revisamos el ultimo nivel\r\n\t\t\t\t\t\t\t\t\tif ($count <= -1) {\r\n\t\t\t\t\t\t\t\t\t\t$sw_tmp = 1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$json = $json . '},{';\r\n\t\t\t\t\t\t\t$json = $json . $this -> asignar($json, $f);\r\n\r\n\t\t\t\t\t\t\t//se incrementa un hijo en el anterior nivel\r\n\t\t\t\t\t\t\t$hijos[$count]++;\r\n\t\t\t\t\t\t\t//almacena el identificador del actual nivel\r\n\t\t\t\t\t\t\t$count++;\r\n\t\t\t\t\t\t\t$niveles[$count] = $f[\"niveles\"];\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile ($count > 0) {\r\n\r\n\t\t\t\t\t$count--;\r\n\t\t\t\t\t$json = $json . '}]';\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif ($pri == 0) {\r\n\t\t\t\t\t$json = $json . '}]';\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$json = $json . '[]';\r\n\r\n\t\t\t\t}\r\n\t\t\t\theader(\"Content-Type:text/json; charset=\" . $_SESSION[\"CODIFICACION_HEADER\"]);\r\n\t\t\t\t//echo utf8_encode\r\n\t\t\t\techo($json);\r\n\t\t\t\texit ;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/////////////////////////\r\n\t\t} else {\r\n\t\t\t$this->objFunSeguridad=$this->create('MODEstructuraUo');\r\n\t\t\t$this -> res = $this -> objFunSeguridad -> listarEstructuraUo($this -> objParam);\r\n\r\n\t\t\t$this -> res -> setTipoRespuestaArbol();\r\n\r\n\t\t\t$arreglo = array();\r\n\t\t\t//array_push($arreglo,array('nombre'=>'id','valor'=>'id_gui'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'id', 'valor' => 'id_uo'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'codigo', 'valor' => 'codigo'));\r\n\t\t\tarray_push($arreglo,array('nombre'=>'text','valores'=>'<b>(#codigo#)</b> - #nombre_unidad#'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'desc', 'valor' => 'descripcion'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'cargo', 'valor' => 'nombre_cargo'));\r\n\r\n\t\t\tarray_push($arreglo, array('nombre' => 'presupuesta', 'valor' => 'presupuesta'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'nodo_base', 'valor' => 'nodo_base'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'estado_reg', 'valor' => 'estado_reg'));\r\n\t\t\tarray_push($arreglo, array('nombre' => 'id_p', 'valor' => 'id_uo_padre'));\r\n\r\n\t\t\t/*se ande un nivel al arbol incluyendo con tido de nivel carpeta con su arreglo de equivalencias\r\n\t\t\t es importante que entre los resultados devueltos por la base exista la variable\\\r\n\t\t\t tipo_dato que tenga el valor en texto = 'carpeta' */\r\n\r\n\t\t\t$this -> res -> addNivelArbol('nodo_base', 'si', array('leaf' => false, 'allowDelete' => true, 'allowEdit' => true, 'cls' => 'folder', 'tipo' => 'si'), $arreglo);\r\n\r\n\t\t\tarray_push($arreglo, array('nombre' => 'cls', 'valor' => 'descripcion'));\r\n\r\n\t\t\t/*se ande un nivel al arbol incluyendo con tido de nivel carpeta con su arreglo de equivalencias\r\n\t\t\t es importante que entre los resultados devueltos por la base exista la variable\\\r\n\t\t\t tipo_dato que tenga el valor en texto = 'hoja' */\r\n\r\n\t\t\t$this -> res -> addNivelArbol('nodo_base', 'no', array('leaf' => false, 'allowDelete' => true, 'allowEdit' => true, 'tipo' => 'no', 'icon' => '../../../lib/imagenes/a_form.png'), $arreglo);\r\n\r\n\t\t\tarray_push($arreglo, array('nombre' => 'id_estructura_uo', 'valor' => 'id_estructura_uo'));\r\n\r\n\t\t\t//Se imprime el arbol en formato JSON\r\n\t\t\t$this -> res -> imprimirRespuesta($this -> res -> generarJson());\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "8fdaba3bba07ab4628ddc79d7aea6110", "score": "0.48365408", "text": "public function index()\n {\n return ExameResource::collection(Exame::all());\n //listar todos usuarios\n }", "title": "" }, { "docid": "65c682cbe9d417f80b57bd72a8bdffbc", "score": "0.48354924", "text": "public function instituto(){\n return $this->belongsTo('App\\Models\\Instituto','id_instituto');\n }", "title": "" }, { "docid": "f7c7f52f92a62c5f286d15fa8381bded", "score": "0.48296311", "text": "public function objectClassUser();", "title": "" }, { "docid": "214f87839db83251b1e9059ef71bdeeb", "score": "0.48296115", "text": "public function getNiv()\n {\n return $this->hasOne(Nivel::className(), ['niv_id' => 'niv_id']);\n }", "title": "" }, { "docid": "8f6509a6e42e2be58982ddb3182ba950", "score": "0.482799", "text": "public function getPersonaAsesorUgai()\n {\n return $this->hasOne(Personas::className(), ['id' => 'persona_asesor_ugai_id']);\n }", "title": "" }, { "docid": "99536f973062b94f9732bc5756147939", "score": "0.4824113", "text": "public function getUtilizador()\n {\n return $this->hasOne(Utilizador::className(), ['id_utilizador' => 'id_utilizador']);\n }", "title": "" }, { "docid": "609df9a787ec7a0fc0c1a23496ac364a", "score": "0.48228446", "text": "abstract protected static function entityCls();", "title": "" }, { "docid": "264efb4b31b03275c1282d0a2d5ca9df", "score": "0.4822156", "text": "public function getHasOne(\\Phalcon\\Mvc\\ModelInterface $model) {}", "title": "" }, { "docid": "044a2089d9ba8d54584794c4930fbefe", "score": "0.48196736", "text": "public function recursiveSearch(Ou_model $o) {\n\t\tif($o -> ou_name == 'root') {\n\t\t\t$this -> recSearch_usercache = false;\n\t\t\t$unknown = array(); // Unknown logins, to avoid looking them up a zillion times\n\t\t\t\n\t\t\t/* Retrieve groups in pages of 50, and join them together */\n\t\t\t$groupList = $this -> gds -> groups -> listGroups(array(\"customer\" => $this ->customerId));\n\t\t\t$groups = $groupList -> groups;\n\t\t\twhile($groupList -> nextPageToken != \"\") {\n\t\t\t\t$groupList = $this -> gds -> groups -> listGroups(array(\"customer\" => $this ->customerId, \"pageToken\" => $groupList -> nextPageToken));\n\t\t\t\tforeach($groupList -> groups as $g) {\n\t\t\t\t\t$groups[] = $g;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!is_array($groups)) {\n\t\t\t\t$groups = array();\n\t\t\t}\n\n\t\t\tforeach($groups as $group) {\n\t\t\t\t$pe = new Provisioning_Email($group -> email);\n\t\t\t\t$group_cn = $pe -> local;\n\t\t\t\ttry {\n\t\t\t\t\t$ug = UserGroup_api::get_by_group_cn($group_cn);\n\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t/* Doesn't exist, need to create it */\n\t\t\t\t\t$domain_id = $this -> getDomainId($pe -> domain);\n\t\t\t\t\t$ug = UserGroup_api::create($group_cn, $group -> name, $o -> ou_id, $domain_id);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t/* Retrieve all members of the group */\n\t\t\t\toutp(\"\\tChecking $group_cn\");\n\t\t\t\t$memberList = $this -> gds -> members -> listMembers($group -> email);\n\t\t\t\t$members = $memberList -> members;\n\t\t\t\twhile($memberList -> nextPageToken != \"\") {\n\t\t\t\t\t$memberList = $this -> gds -> members -> listMembers($group -> email, array(\"pageToken\" => $memberList -> nextPageToken));\n\t\t\t\t\tforeach($memberList -> members as $m) {\n\t\t\t\t\t\t$members[] = $m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!is_array($members)) {\n\t\t\t\t\t$members = array();\n\t\t\t\t}\n\n\t\t\t\t/* Check that each group member is also a member in Auth */\n\t\t\t\tforeach($members as $member) {\n\t\t\t\t\t$memberEmail = $member -> email;\n\t\t\t\t\t$pe = new Provisioning_Email($memberEmail);\n\t\t\t\t\tif($domain_id = $this -> getDomainId($pe -> domain)) { // Ignore outside accounts\n\t\t\t\t\t\tif($member -> type == 'USER') {\n\t\t\t\t\t\t\t$account_login = $pe -> local;\n\t\t\t\t\t\t\tif(!isset($unknown[$account_login]) && !$account = Account_model::get_by_account_login($account_login, $this -> service -> service_id, $domain_id)) {\n\t\t\t\t\t\t\t\t/* If the account can't be found ... */\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t$user = $this -> gds -> users -> get($memberEmail);\n\t\t\t\t\t\t\t\t\t$userEmail = $user -> getPrimaryEmail();\n\t\t\t\t\t\t\t\t\tif($userEmail != $memberEmail) {\n\t\t\t\t\t\t\t\t\t\t/* Found as a nickname */\n\t\t\t\t\t\t\t\t\t\toutp(\"\\t\\t Re-adding nickname ($account_login) without nickname ($userEmail). Run again to add to group later.\");\n\t\t\t\t\t\t\t\t\t\t$m = new Google_Member();\n\t\t\t\t\t\t\t\t\t\t$m -> setEmail($userEmail);\n\t\t\t\t\t\t\t\t\t\t$this -> gds -> members -> delete($groupEmail, $memberEmail);\n\t\t\t\t\t\t\t\t\t\t$this -> gds -> members -> insert($groupEmail, $m);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$unknown[$account_login] = true;\n\t\t\t\t\t\t\t\t\t\toutp(\"\\t\\t User unknown ($account_login), skipping. Run again to add to group after the user is found.\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\t\t\toutp(\"\\t\\t Error working with \" . $member -> getmemberId() . \", skipping\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(isset($unknown[$account_login])) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\t User still unknown ($account_login), skipping.\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(!OwnerUserGroup_model::get($account -> owner_id, $ug -> group_id)) {\n\t\t\t\t\t\t\t\t\t// Add owner to group\n\t\t\t\t\t\t\t\t\tAccountOwner_api::addtogroup($account -> owner_id, $ug -> group_id);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if($member -> type == 'GROUP') {\n\t\t\t\t\t\t\t$subgroup_cn = $pe -> local;\n\t\t\t\t\t\t\tif(!$subgroup = UserGroup_model::get_by_group_cn($subgroup_cn)) {\n\t\t\t\t\t\t\t\toutp(\"\\t\\t Group unknown ($subgroup_cn), skipping\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(!SubUserGroup_model::get($ug -> group_id, $subgroup -> group_id)) {\n\t\t\t\t\t\t\t\t\t// Add sub-group to group\n\t\t\t\t\t\t\t\t\tUserGroup_api::addchild($ug -> group_id, $subgroup -> group_id);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tif($this -> recSearch_usercache === false) {\n\t\t\toutp(\"\\tLoading all users.. This will take some time\");\n\t\t\t/* The directory API does not support listing users by orgUnit, so instead, they are all loaded and cached */\n\t\t\t$this -> recSearch_usercache = array();\n\t\t\t$total = 0;\n\t\t\t$userList = $this -> gds -> users -> listUsers(array(\"customer\" => $this -> customerId));\n\t\t\tforeach($userList -> users as $u) {\n\t\t\t\t$this -> recSearch_usercache[$u -> orgUnitPath][] = $u;\n\t\t\t\t$total++;\n\t\t\t}\n\t\t\toutp(\"\\t\\tLoaded $total users\");\n\t\t\t/* Next page.. */\n\t\t\twhile($userList -> nextPageToken != \"\") {\n\t\t\t\t$userList = $this -> gds -> users -> listUsers(array(\"customer\" => $this -> customerId, \"pageToken\" => $userList -> nextPageToken));\n\t\t\t\tforeach($userList -> users as $u) {\n\t\t\t\t\t$this -> recSearch_usercache[$u -> orgUnitPath][] = $u;\n\t\t\t\t\t$total++;\n\t\t\t\t}\n\t\t\t\toutp(\"\\t\\tLoaded $total users\");\n\t\t\t}\n\t\t}\n\n\t\t/* Handle users */\n\t\t$orgUnitPath = $this -> orgUnitPath(false, $o -> ou_id);\n\t\t$orgUsers = array();\n\t\tif(isset($this -> recSearch_usercache[$orgUnitPath])) {\n\t\t\t$orgUsers = $this -> recSearch_usercache[$orgUnitPath];\n\t\t\tunset($this -> recSearch_usercache[$orgUnitPath]);\n\t\t}\n\t\tforeach($orgUsers as $orgUser) {\n\t\t\t$orgUserEmail = $orgUser -> getPrimaryEmail();\n\t\t\t$pe = new Provisioning_email($orgUserEmail);\n\t\t\t$account_login = $pe -> local;\n\t\t\t$domain_id = $this -> getDomainId($pe -> domain);\n\t\t\tif(!$account = Account_model::get_by_account_login($account_login, $this -> service -> service_id, $domain_id)) {\n\t\t\t\t/* Account does not exist - find details to make it */\n\t\t\t\toutp(\"\\tFound account $orgUserEmail\");\n\t\t\t\t$name = $orgUser -> getName();\n\t\t\t\t$owner_firstname = $name -> getGivenName();\n\t\t\t\t$owner_surname = $name -> getFamilyName();\n\t\t\t\t$owner = AccountOwner_api::create($o -> ou_id, $owner_firstname, $owner_surname, $account_login, $domain_id, array($this -> service -> service_id));\n\t\t\t} else if ($account -> AccountOwner -> ou_id != $o -> ou_id) {\n\t\t\t\toutp(\"\\tNotice: Moving account to where it should be.\");\n\t\t\t\ttry {\n\t\t\t\t\t$this -> accountRelocate($account, $o);\n\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\toutp(\"\\tWarning: failed to move $account_login: \" . $e -> getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Handle sub-organizations */\n\t\t$orgUnitList = $this -> gds -> orgunits -> listOrgunits($this -> customerId, array(\"orgUnitPath\" => $orgUnitPath, \"type\" => \"children\"));\n\t\t$orgUnits = $orgUnitList -> organizationUnits;\n\t\tif(!is_array($orgUnits)) {\n\t\t\t$orgUnits = array();\n\t\t}\n\t\t\n\t\tforeach($orgUnits as $orgUnit) {\n\t\t\t$ou_name = Auth::normaliseName($orgUnit -> name);\n\t\t\tif(!$ou = Ou_model::get_by_ou_name($ou_name)) {\n\t\t\t\t/* Needs to be created */\n\t\t\t\toutp(\"\\t$ou_name\");\n\t\t\t\t$ou = Ou_api::create($ou_name, $o -> ou_id);\n\t\t\t} else {\n\t\t\t\tif($ou -> ou_parent_id != $o -> ou_id) {\n\t\t\t\t\t/* Wrong place. Move it over before the search (otherwise we'll get errors!) */\n\t\t\t\t\ttry {\n\t\t\t\t\t\toutp(\"\\tNotice: Found $ou_name here, moving it to where it should be.\");\n\t\t\t\t\t\t$this -> OuMove($ou, $o);\n\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\toutp(\"\\tWarning: failed to move $ou_name.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tActionQueue_api::submit($this -> service -> service_id, $this -> service -> service_domain, 'recSearch', $ou -> ou_name);\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1fe6bef952e5c69bc212a316045a255d", "score": "0.4818166", "text": "public function __construct()\n\t{\n\t $this->entity = new Paises;\n\t}", "title": "" }, { "docid": "80a135be73c50c6a1c36aae3fd016141", "score": "0.48173302", "text": "public function getRepository(): GroupRepositoryInterface;", "title": "" }, { "docid": "f70aed59464fd062b8cd83d3fc2ac3ba", "score": "0.4816465", "text": "function bannieres_autoriser(){}", "title": "" }, { "docid": "16fedf6954025e1b087b4279dd84805c", "score": "0.4812146", "text": "public function getSearchRepositoryView($model)\n {\n // Title\n // Url\n }", "title": "" }, { "docid": "15fb23a4ef76005f6ff571b9e7ffbc1a", "score": "0.48055214", "text": "private function getRepository()\n {\n return 'repository';\n }", "title": "" }, { "docid": "da5ca650eb221b8d8f240373d9f08ca9", "score": "0.48037177", "text": "public function domainComponent();", "title": "" }, { "docid": "04c747ef231ae98dd93be6c1a15e919f", "score": "0.48002258", "text": "public function index1 ($u)\n {\n\n return '2cp7';\n }", "title": "" }, { "docid": "fe8316b0906ec4fb2c560a6275850913", "score": "0.47952744", "text": "public function organizationalPerson();", "title": "" }, { "docid": "375fb0a3619881664f06d4769d7335fb", "score": "0.47882318", "text": "function cv_get_prof_owned_courses($user)\n{\n $searchcriteria = array\n ('type' => 'object',\n 'owner_guid' => $user->guid,\n 'metadata_names' => array('cvcourse'),\n 'metadata_values' => array(1),\n //'subtype' => 'cvcourse',\n 'limit' => false,\n );\n $ownedcourses = elgg_get_entities_from_relationship($searchcriteria);\n return $ownedcourses;\n}", "title": "" }, { "docid": "a5741b2ce7efbf92553df47ddb2a8edb", "score": "0.4787748", "text": "public function get_owner() { return $this->$owner; }", "title": "" }, { "docid": "a3ec25524140f217c414bc602f63576f", "score": "0.47786105", "text": "protected function Album()\n {\n /* Need acl system */\n }", "title": "" } ]
f1320e2f600264a0ef6d4ea82e2cd767
Get Next Auto Increment
[ { "docid": "84a626f24e0e0bf6af7080c2e62074e0", "score": "0.76441973", "text": "public static function getNextAutoIncrement($table) {\n $sql = 'SHOW TABLE STATUS LIKE :table';\n $cmd = Yii::app()->db->createCommand($sql);\n $cmd->bindValue(':table', $table);\n $result = $cmd->queryRow();\n return $result['Auto_increment'];\n }", "title": "" } ]
[ { "docid": "8a85a3e6b3ef5a4dd448e82995f787fc", "score": "0.8414829", "text": "private function _next_id()\n {\n return $this->last_id + 1;\n }", "title": "" }, { "docid": "c41dc471c4a9a91441a09811ec2d4e7b", "score": "0.8179681", "text": "protected function _nextId() {\n return $this->_id++;\n }", "title": "" }, { "docid": "bdf336f73297aea9af628b0d39efae88", "score": "0.7945596", "text": "public function getNextId()\n {\n return $this->next_id;\n }", "title": "" }, { "docid": "4eb5f8f6aec74acc68205aa664dde70d", "score": "0.7817105", "text": "public function autoincrement(): static;", "title": "" }, { "docid": "a5ed2183343999b1d565d97a3ca6a2f2", "score": "0.7800776", "text": "function get_nr_of_next_auto_increment($table_name) {\r\n $querry = \"SHOW TABLE STATUS LIKE '$table_name'\";\r\n $result_set = executeSelectQuery($querry);\r\n $row = mysqli_fetch_array($result_set);\r\n $nextId = $row['Auto_increment'];\r\n mysqli_free_result($result_set);\r\n echo $nextId;\r\n}", "title": "" }, { "docid": "96aadb68d83b4830783a7c710489a035", "score": "0.7772964", "text": "public function nextPrimaryKey()\n {\n $value = $this->primaryKeyValue;\n $this->primaryKeyValue += 1;\n return $value;\n }", "title": "" }, { "docid": "c8de338f0da15a57bbfed56254b73d1c", "score": "0.76992786", "text": "public function autoIncrement();", "title": "" }, { "docid": "aa49ff3567654b37779cf83e9b37e99c", "score": "0.76750314", "text": "public function getNextId()\n {\n $collection = $this->getSource();\n $idCollection = $this->getConnection()->{'phalcore.autoid'};\n /*$nextIdRecord = $idCollection->findAndModify(\n [ 'collection' => $collection ],\n [ '$inc' => [ 'currentId' => 1] ],\n [ 'upsert' => true, 'new' => true]\n );*/\n $nextIdRecord = $idCollection->findOneAndUpdate(\n [ 'collection' => $collection ],\n [ '$set' => [ 'collection' => $collection ], '$inc' => [ 'currentId' => 1 ] ],\n [ 'upsert' => true, 'returnDocument' => \\Phalcon\\Db\\Adapter\\MongoDB\\Operation\\FindOneAndUpdate::RETURN_DOCUMENT_AFTER ]\n // should be \"returnNewDocument => true\" but Phalcon decided otherwise?\n );\n\n return $nextIdRecord->currentId;\n }", "title": "" }, { "docid": "6319016ffe14cfa084e131090ad8237a", "score": "0.76607275", "text": "public function nextId() {\n\t\treturn $this->honeyPotId++;\n\t}", "title": "" }, { "docid": "6f7355a7a48cb419fe65ab8c54e1c9c7", "score": "0.76008874", "text": "function getNextInsertId(){\n \t$nextId = 0;\n \t$resellers = VMS::$resellers;\n \t$resellers[] = 'main';\n \t\tforeach($resellers as $r){\n \t\t\t$this->useDbConfig = $r;\n \t\t\t$lastId = $this->field('id', array(), 'id DESC');\n \t\t\tif($lastId > $nextId){\n\t\t\t\t$nextId = $lastId;\n \t\t\t}\n \t}\n \t//Reset the DB config\n \t$this->useDbConfig = 'default';\n \t//Add one more\n \t$nextId++;\n \treturn $nextId;\n }", "title": "" }, { "docid": "83c2ce6becb11911f69e25ff9e57c9ec", "score": "0.75806534", "text": "protected function getNextIdRevue()\n {\n\t\treturn $this->idRevue++;\n\t}", "title": "" }, { "docid": "35e33f87945b2614e34b41b9c4176dac", "score": "0.7562242", "text": "public function nextId(){\n $current_id = Counters::find('contest_result_id');\n if(!empty($current_id)){\n $_id = $current_id->seq;\n $_id = $_id + 1;\n $current_id->seq = $_id;\n $current_id->update();\n $this->_id = $_id;\n }\n }", "title": "" }, { "docid": "d701f0aebaaaf7b18b163d9e9d130d4a", "score": "0.7518195", "text": "public function getIncrementId();", "title": "" }, { "docid": "9ed7d83aa3ae48c44dfe31b9c07cda5d", "score": "0.7441631", "text": "private function getNextId() {\n\n $query = $this->client->createSelect();\n\n $query->setQuery('*:*');\n $query->setFields(array('id'));\n $query->setSorts(array('id' => 'desc'));\n $query->setRows(1);\n\n // Execute the query and return the result\n $resultset = $this->client->select($query);\n\n try {\n $documentId = $resultset->getDocuments()[0]->id;\n $documentId++;\n } catch (ErrorException $e) {\n // this only happens if the index does not exist\n // TODO: do something with the error\n $documentId = 1;\n }\n\n return $documentId;\n }", "title": "" }, { "docid": "a9fc3eacbc588d81aa184f7e8bf8bf60", "score": "0.74224365", "text": "protected function generateId()\n {\n return ++$this->lastId;\n }", "title": "" }, { "docid": "0de343142cf1e63cac9b5e5889b721b1", "score": "0.74151385", "text": "public function get_next_record_id() {\n if (!empty($this->nextrecordid)) {\n return $this->nextrecordid;\n }\n $order = array(new stdClass());\n $order[0]->name = 'id';\n $order[0]->sort = 'DESC';\n $order[0]->type = 'int';\n\n $result = $this->query_dataplus_database_single(array('id'), array(), $order);\n\n if (!$result) {\n // If there's nothing there, create a dummy record...\n $this->insert_dataplus_record(array());\n $result = $this->query_dataplus_database_single(array('id'));\n // Delete the dummy.\n $parameters = array();\n $parameters[0] = new stdClass();\n $parameters[0]->name = 'id';\n $parameters[0]->value = $result->id;\n $this->delete_dataplus_record($parameters);\n }\n\n $this->nextrecordid = ((int)$result->id) + 1;\n return $this->nextrecordid;\n }", "title": "" }, { "docid": "838f657958e0fdaa2924274de88837da", "score": "0.74001235", "text": "function getNextID($tablename) {\n\t\t\t$db = new managerDb();\n\t\t\t$pdo = $db->connect();\n\n\t\t\t$sel = 'SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = \"'.self::DBNAME.'\" AND TABLE_NAME = ?';\n\t\t\t$ps = $pdo->prepare($sel);\n\t\t\t$ps->execute(array($tablename));\n\t\t\t$id = $ps->fetchColumn();\n\t\t\treturn $id;\n\t\t}", "title": "" }, { "docid": "1dc6101978fa02536d894f92950fc247", "score": "0.73860526", "text": "public function giveNextId()\n\t{\t\t\n\t\t$sql = \"SELECT \".\"\\n\".\n\t\t\t\t\" `\".$this->_primaryKey.\"` AS nextId \".\"\\n\".\"\n\t\t\t\tFROM \".\"\\n\".\n\t\t\t\t\" `\".$this->_table.\"` \".\"\\n\".\n\t\t\t\t\"ORDER BY \".\"\\n\".\n\t\t\t\t\" `\".$this->_primaryKey.\"` DESC \".\"\\n\".\n\t\t\t\t\"LIMIT \".\"\\n\".\n\t\t\t\t\" 1\";\n\t\ttry\n\t\t{\t\t\t\n\t\t\treturn array_shift($this->_db->select($sql));\t\t\t\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\t\t\t\n\t\t\tSLS_Tracing::addTrace($e,true);\n\t\t\treturn false;\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "2d4274c6deb2fb20aecb464d5eb9c31a", "score": "0.73754805", "text": "public function last_auto_increment();", "title": "" }, { "docid": "8697bee30d996124f579b2ca4b85a5c5", "score": "0.7352736", "text": "function getNextOrder()\n{\n\tglobal $mysqli;\n\n\t$result = $mysqli->query(\"SELECT * FROM system\")\n\t\tor die (\"System read error\");\n\t$record = $result->fetch_array(MYSQLI_ASSOC);\n\t$ordId = $record['nextorder'] + 1;\n\t$sql = \"UPDATE system SET nextorder = $ordId\";\n\t$mysqli->query($sql);\n\n\treturn $ordId;\n}", "title": "" }, { "docid": "29229eefc555eb7e9ae328f946caeccb", "score": "0.7310276", "text": "public function getNextId() {\n $userLen = sizeof($this->userList['user']);\n\n $lastId = $this->userList['user'][$userLen - 1]['id'];\n\n return ($lastId + 1);\n }", "title": "" }, { "docid": "c69aa61889694ffdaa735058dd161506", "score": "0.72907716", "text": "protected function _nextId(): int\n {\n $ls_tree_result = $this->git->lsTreeHead(\n '.',\n $this->filesystem,\n $this->isBag(),\n $this->config['database-address'] . DIRECTORY_SEPARATOR . $this->_getDatabaseLocation()\n );\n\n if ($ls_tree_result->count() < 1)\n return 1;\n\n $ls_tree_result = $ls_tree_result->map(function ($record) {\n return (int)$record->getId();\n });\n\n $ls_tree_result->sort();\n\n return $ls_tree_result->last() + 1;\n }", "title": "" }, { "docid": "863881c626d76ff1cef37cdf111eeb7c", "score": "0.71907973", "text": "function NextPrimaryKey($strDatabase, $strTable)//might need to update this for addDatabaseIfNecessary($strDatabase, $strTable)\n{\n\t$sql=conDB();\n\t$strSQL=\"SHOW TABLE STATUS LIKE '\" . $strTable . \"'\";\n\t$records = $sql->query($strSQL, true, $strDatabase);\n\t$record=$records[0];\n \t$intVal=intval($record[\"Auto_increment\"]);\n\tif($intVal<1)\n\t{\n\t\treturn highestprimarykey($strDatabase, $strTable)+1;\n\t}\n\telse\n\t{\n\t\treturn $intVal;\n\t}\n}", "title": "" }, { "docid": "a60a25bb4a6852ad6d90188a24d89ade", "score": "0.71422595", "text": "public function getNextID($tabela) {\r\n $sql = \"SHOW TABLE STATUS LIKE '$tabela'\";\r\n $res = null;\r\n foreach (self::getInstance()->query($sql) as $row) {\r\n $res = $row['Auto_increment'];\r\n }\r\n return $res;\r\n }", "title": "" }, { "docid": "c82a69da4d7b0bdbf16f1d24fa1c1c1b", "score": "0.71260875", "text": "public function getNext() : int;", "title": "" }, { "docid": "bd75ca6a0e6ea7870ce32eb3112142bb", "score": "0.71156543", "text": "public function getSequenceNumber()\n {\n $next = max($this->lastSequenceNumber + 1, time() * 1000);\n $this->lastSequenceNumber = $next;\n return $next;\n }", "title": "" }, { "docid": "04169505beb1f804236e7f4d92854eb9", "score": "0.7109968", "text": "protected function id() {\n\t\treturn $this->last_id + 1;\n\t}", "title": "" }, { "docid": "d489f37427374543cf0031a3a2619044", "score": "0.7085763", "text": "function get_next_sequence($client_id)\n\t{\n\t\t$this->db->select_max('sequence');\n\t\t$this->db->where('client_id',$client_id);\n\t\t$res = $this->db->get('clients_products')->row();\n\t\treturn $res->sequence + 1;\n\t}", "title": "" }, { "docid": "2ce7d222a6862cd832d95472314f3bac", "score": "0.70736575", "text": "public function moveNextId() : int\n {\n $next = $this->index + 1;\n $this->index = $next;\n if ($next < $this->ct) {\n $this->token = $this->tokens[$next];\n return $this->token->getId();\n }\n return 0;\n }", "title": "" }, { "docid": "918225a0ea7f4dbeef8ddceee8915e73", "score": "0.7040557", "text": "private static function getAutoIncrement() {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$connection = self::_getConnection(self::$current_connecton);\n\t\t\n\t\t$query = $connection->getAutoIncrement();\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $query);\n\t\t$query = self::_applyFilter(get_class(), __FUNCTION__, $query, array('event' => 'return'));\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "ecfc62f3b24b429bd9e9c78f71ade383", "score": "0.70184106", "text": "public function insertid()\n\t{\n\t\t$this->connect();\n\t\t$insertQuery = $this->getQuery(false, true);\n\t\t$table = $insertQuery->__get('insert')->getElements();\n\n\t\t/* find sequence column name */\n\t\t$colNameQuery = $this->getQuery(true);\n\t\t$colNameQuery->select('column_default')\n\t\t\t->from('information_schema.columns')\n\t\t\t->where(\"table_name=\" . $this->quote($this->replacePrefix(str_replace('\"', '', $table[0]))), 'AND')\n\t\t\t->where(\"column_default LIKE '%nextval%'\");\n\n\t\t$this->setQuery($colNameQuery);\n\t\t$colName = $this->loadRow();\n\t\t$changedColName = str_replace('nextval', 'currval', $colName);\n\n\t\t$insertidQuery = $this->getQuery(true);\n\t\t$insertidQuery->select($changedColName);\n\t\t$this->setQuery($insertidQuery);\n\t\t$insertVal = $this->loadRow();\n\n\t\treturn $insertVal[0];\n\t}", "title": "" }, { "docid": "ba8eb73824f7cfaea57f9d5fe55271fa", "score": "0.6963449", "text": "public function getNextID($table) {\n\t\tuser_error('getNextID is OBSOLETE (and will no longer work properly)', E_USER_WARNING);\n\t\t$stmt = $this->dbConn->prepare(\"SELECT MAX(ID)+1 FROM $table\");\n\t\t$handle = $stmt->execute();\n\t\t$result = $stmt->fetchColumn();\n\t\treturn $handle ? $result : 1;\n\t}", "title": "" }, { "docid": "68a4f70f0ea30c0b2443835727798dd2", "score": "0.69632334", "text": "public function sel_next_id()\n\t{\n\t\t$query_str = \"select nextval(pg_catalog.pg_get_serial_sequence('t_prog', 'prog_id'))\";\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$seq = $query->execute($this->db, true);\n\t\t\n\t\treturn $seq[0]->nextval;\n\t}", "title": "" }, { "docid": "39b985bf16a9cf8b173b94d8e0fc819f", "score": "0.69631493", "text": "public function sel_next_id()\n\t{\n\t\t$query_str = \"select nextval(pg_catalog.pg_get_serial_sequence('m_auth_grp', 'auth_grp_id'))\";\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$seq = $query->execute($this->db, true);\n\t\t\n\t\treturn $seq[0]->nextval;\n\t}", "title": "" }, { "docid": "ebd4ee7a2909fb9dfc582d505601df6c", "score": "0.6941501", "text": "public function generateCreditNo() { \n\t\t$sql = $this->remoteDb->fetchOne('SELECT credit_no FROM credit ORDER BY id DESC');\n\t\t\tif(isset($sql) && !empty($sql)) {\n\t\t\t\t$credit_no = ++$sql;\n\t\t\t} else {\n\t\t\t\t$credit_no = 'CR-0000000001';\n\t\t\t}\n\t\t\treturn $credit_no;\n\t}", "title": "" }, { "docid": "00772988b76633b5f42d93e763034195", "score": "0.6939318", "text": "function nextId($tabla){\n $this->idQuery= mysql_query(\"SELECT AUTO_INCREMENT next FROM information_schema.tables WHERE table_name = '$tabla' AND table_schema = 'applab'\")\n or die(\"Error en sql: \".mysql_errno(). \" \".mysql_error(). \" \".__FILE__. \" \" .__LINE__.\" \".__CLASS__. \" \".__FUNCTION__. \" \".__METHOD__. \" \".$_SERVER['SCRIPT_FILENAME']. \" \". $this->sql);\n\t\t\n \n if ($this->numRegistros()>0)\n {\n $row = mysql_fetch_object($this->idQuery);\n return $row->next; \n @mysql_free_result($this->idQuery); \n }\n else\n return null;\n }", "title": "" }, { "docid": "600d312d060a5b01c478ee14aaa21984", "score": "0.69381785", "text": "public static function nextid($table) {\n\t\tif($this->type === 'mysql') {\n\t\t\t$sql = \"SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME=?\";\n\t\t\tif(($result = $this->safequery($sql, array($table), true)) === false) return false;\n\t\t\treturn $result[0]['AUTO_INCREMENT'];\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6ba09ba0c9b8c765c96731c7a068bddd", "score": "0.6913858", "text": "public function getNextAutoincrement($tableName)\n {\n $connection = $this->getConnection();\n $entityStatus = $connection->showTableStatus($tableName);\n\n if (empty($entityStatus['Auto_increment'])) {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__('Cannot get autoincrement value'));\n }\n return $entityStatus['Auto_increment'];\n }", "title": "" }, { "docid": "755b5a7e3468e9427a35d7ccf50ac4c6", "score": "0.6896379", "text": "function get_next_session_id() {\n global $linki;\n $result = mysqli_query_with_error_handling(\"SELECT MAX(sessionid) FROM Sessions;\");\n if (!$result) {\n return \"\";\n }\n list($maxid) = mysqli_fetch_array($result, MYSQLI_NUM);\n mysqli_free_result($result);\n if (!$maxid) {\n return \"1\";\n }\n return $maxid + 1;\n}", "title": "" }, { "docid": "0c13a6d3dedf46f8a98c8f1d3d94d590", "score": "0.68717724", "text": "public function getIncrementAuto() {\n return $this->incrementAuto;\n }", "title": "" }, { "docid": "c65d54376e197d18ec2ca9e85faeccc0", "score": "0.68556726", "text": "public function getIncrement()\n {\n if ($this->incrementValue === null) {\n $increment = $this->resource->getConnection()->fetchRow('SHOW VARIABLES LIKE \"auto_increment_increment\"');\n $this->incrementValue = !empty($increment['Value']) ? (int)$increment['Value'] : 1;\n }\n return $this->incrementValue;\n }", "title": "" }, { "docid": "958d4dbb0d27c163bae4d25be3c1c675", "score": "0.68377423", "text": "public function getNextExpenseTransaction() { \n\t\t$sql = $this->remoteDb->fetchOne('SELECT id FROM expense_transaction ORDER BY id DESC LIMIT 1');\n\t\t\tif(isset($sql) && !empty($sql)) {\n\t\t\t\t$eid = ++$sql;\n\t\t\t} else {\n\t\t\t\t$eid = 1;\n\t\t\t}\n\t\t\treturn $eid;\n\t}", "title": "" }, { "docid": "838f7c1584e6a6e1dbb6848fcb5cda42", "score": "0.6820789", "text": "public function nextItemId() {\n try{\n $stmt = $this->conn->prepare(\"SELECT * FROM (SELECT t1.id as id FROM items t1 WHERE NOT EXISTS(SELECT * FROM items t2 WHERE t2.id=t1.id + 1 AND user_id = ?)UNION SELECT 0 AS id WHERE NOT EXISTS (SELECT* FROM items t3 WHERE t3.id=1 AND user_id = ?)) ot ORDER BY 1\");\n $stmt->execute(array($this->user_id, $this->user_id));\n } catch(PDOException $e) {\n throw new Exception(\"Error getting next id\");\n }\n $row = $stmt->fetch();\n if(isset($row[0])) {\n return $row[0] + 1;\n }\n return null;\n }", "title": "" }, { "docid": "c8c8c077157510add885531a47c0e50b", "score": "0.6811647", "text": "function getNewID()\n {\n\n // define all the global variables\n global $database, $message;\n\n $sql = \"SELECT \" . TBL_USERS_ID . \" FROM \" . TBL_USERS . \" ORDER BY \" . TBL_USERS_ID . \" DESC LIMIT 1\";\n $results = $database->getQueryResults($sql);\n if ($database->anyError()) {\n $message->setError(\"SQL error : \" . $database->getError(), Message::Fatal);\n die;\n }\n\n if ($database->getQueryNumRows($results, true) < 1) {\n return 1;\n }\n\n $row = $database->getQueryEffectedRow($results, true);\n return $row[TBL_USERS_ID] + 1;\n }", "title": "" }, { "docid": "4544fa86a774548c009aef56d77a28fe", "score": "0.67924", "text": "public function getNextIncomeTransaction() { \n\t\t$sql = $this->remoteDb->fetchOne('SELECT id FROM income_transaction ORDER BY id DESC LIMIT 1');\n\t\t\tif(isset($sql) && !empty($sql)) {\n\t\t\t\t$iid = ++$sql;\n\t\t\t} else {\n\t\t\t\t$iid = 1;\n\t\t\t}\n\t\t\treturn $iid;\n\t}", "title": "" }, { "docid": "c186a4a7b4508eae6b713addd69b3b02", "score": "0.6790877", "text": "private function _generateAccountNumber()\n {\n /** @var Account $latestAccount */\n $latestAccount = Account::find()->orderBy('number DESC')->one();\n $latestNumber = ($latestAccount && $latestAccount->number) ?\n $latestAccount->number :\n self::ACCOUNT_NUMBER_SERIES;\n $latestNumber++;\n\n return $latestNumber;\n }", "title": "" }, { "docid": "1a88b0f2a977a5b8983d5527478852b5", "score": "0.6787182", "text": "function pollingkomentar_createid($tbl_pollingkomentar){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_pollingkomentar ORDER BY id DESC\");\n\t\t$data = mysql_fetch_object($sql);\n\t\t$id = $data->id + 1;\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "f1b6091b8e412ffe10312fbbf773903b", "score": "0.6759171", "text": "public function createNewRegistrarId(){\n $sql = \"SELECT `user_master`.`user_id` FROM `user_master` WHERE `user_master`.`user_type` = 'REGISTRAR' ORDER BY `created` DESC LIMIT 1\";\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)==1){\n $rows = mysqli_fetch_array($res);\n $currentId = (int) substr($rows[0],3);\n return ++$currentId; \n }\n return 1;\n }", "title": "" }, { "docid": "a9920a9a3d580a7f9d88e378258b2859", "score": "0.6752957", "text": "public function getNextNumber()\n {\n $claim = new Datasource_Insurance_KeyHouse_Claim();\n return $claim->getNextNumber();\n }", "title": "" }, { "docid": "aff1b2b090c1f56fbdafb5a1279dc831", "score": "0.67404664", "text": "function nextId($name) {\n\t\t$sequence = $this->getSequenceName($name);\n\t\t$sql = \"SELECT NEXTVAL('$sequence')\";\n\n\t\ttry {\n\t\t\t$id = $this->getOne($sql);\n\t\t}\n\t\tcatch (DatabaseException $e) {\n\t\t\ttry {\n\t\t\t\t$sql2 = \"\n\t\t\t\t\tCREATE SEQUENCE \".$this->getSequenceName($name).\" \n\t\t\t\t\tCACHE 250\";\n\t\t\t\t$this->query($sql2);\n\t\t\t}\n\t\t\tcatch (DatabaseException $e) {}\n\t\t\t$id = $this->getOne($sql);\n\t\t}\n\t\t\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "9f9264f6a26020d9239ab021d1fe601a", "score": "0.6736739", "text": "function nextid($sequence)\n {\n if(array_key_exists($sequence, $this->m_next_ids))\n {\n return $this->m_next_ids[$sequence];\n }\n else\n {\n return 1;\n }\n }", "title": "" }, { "docid": "3758effcaacb62811b84f70e8c279fc0", "score": "0.67349344", "text": "function nextId($seq_name) {\n\t\treturn $this->GenID($seq_name);\n\t}", "title": "" }, { "docid": "bf88706bfa8ca7725fccc1e88777bfe7", "score": "0.6733755", "text": "public static function nextBookingId() {\n $total = self::count() + 1;\n $code = self::BOOKING_ID_PREFIX . date('Ymd') . zero_padding_number($total, 3);\n return $code;\n }", "title": "" }, { "docid": "9d6e0e8bad32577bbf7f3db01514e5cd", "score": "0.67160344", "text": "function generate_invoice_number()\n\t{\n\t\t$last_invoice_id = $this->common_model->get_last_id('ci_invoices', 'invoice_id') + 1;\n\t\treturn $last_invoice_id;\n\t}", "title": "" }, { "docid": "cdf35f8be7cba0d22de1f3ca24eda306", "score": "0.67017585", "text": "public function generateInvoiceNo() { \n\t\t$sql = $this->remoteDb->fetchOne('SELECT invoice_no FROM invoice ORDER BY id DESC');\n\t\t\tif(isset($sql) && !empty($sql)) {\n\t\t\t\t$invoice_no = ++$sql;\n\t\t\t} else {\n\t\t\t\t$invoice_no = 'INV-0000000001';\n\t\t\t}\n\t\t\treturn $invoice_no;\n\t}", "title": "" }, { "docid": "0b1fd7515e29ce7f991c32a859b28d61", "score": "0.66857916", "text": "public function generateNextValue() \n {\n if ($this->has_locked) {\n DB::update($this->table_name)->set(Array('next_value'=>DB::expr('next_value+1')))\n ->where('type', '=', $this->type)\n ->execute();\n }\n return $this;\n }", "title": "" }, { "docid": "9192f8fb8aa40b30518b58eeaa22a6ab", "score": "0.6672587", "text": "function geneate_id($con){\r\n\t\t\t\t\t\t$statement = $con->prepare(\"select nextval('CDC_Seq')\");\r\n\t\t\t\t\t\t$success = $statement->execute();\r\n\t\t\t\t\t\t$ids = $statement->fetch();\r\n\t\t\t\t\t\treturn $ids[0];\r\n\t\t\t\t\t}", "title": "" }, { "docid": "2ae7865ed8bf72ba9e591d87c69c3258", "score": "0.6672577", "text": "function _nextId($name)\n {\n // try to get the 'sequence_lock' lock\n $ok = $this->getOne(\"SELECT GET_LOCK('sequence_lock', 10)\");\n if (DB::isError($ok)) {\n return $this->raiseError($ok);\n }\n if (empty($ok)) {\n // failed to get the lock, bail with a DB_ERROR_NOT_LOCKED error\n return $this->mysqlRaiseError(DB_ERROR_NOT_LOCKED);\n }\n\n // get current value of sequence\n $query = \"\n SELECT id\n FROM \" . SGL_Config::get('table.sequence') . \"\n WHERE name = '$name'\n \";\n $id = $this->getOne($query);\n if (DB::isError($id)) {\n return $this->raiseError($id);\n } else {\n $id += 1;\n }\n\n // increment sequence value\n $query = \"\n REPLACE\n INTO \" . SGL_Config::get('table.sequence') . \"\n VALUES ('$name', '$id')\n \";\n $ok = $this->query($query);\n if (DB::isError($ok)) {\n return $this->raiseError($ok);\n }\n\n // release the lock\n $ok = $this->getOne(\"SELECT RELEASE_LOCK('sequence_lock')\");\n if (DB::isError($ok)) {\n return $this->raiseError($ok);\n }\n\n return $id;\n }", "title": "" }, { "docid": "26f655679612c26fbcfb8dd3e40c8271", "score": "0.6667822", "text": "public function GetNextSeqID()\r\n\t\t{\r\n\t\t\t$ID = 0;\r\n\t\t\tif (count($this->IDSeqHoles) > 0)\r\n\t\t\t{\r\n\t\t\t\t//There are still numbers in the holes\r\n\t\t\t\t$ID = array_pop($this->IDSeqHoles);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Get the next in Seqence\r\n\t\t\t\t$ID = $this->IDSeqNext;\r\n\t\t\t\t$this->IDSeqNext++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $ID;\r\n\t\t}", "title": "" }, { "docid": "3837347d5d0a65fed84eabef47384afe", "score": "0.666775", "text": "protected function getNextPersonID()\n {\n\t\t\t// get the MAX(person_id)... need to determine what insertion person ID will be (used to create new registration record)\n\t\t\t$person = new RowManager_PersonManager();\n\t\t\t$persons = new MultiTableManager();\n\t\t\t$persons->addRowManager($person);\n\t\t\t$persons->setFunctionCall('MAX','person_id');\n\t\t\t$persons->ignoreFields();\t// only leave MAX(person_id) in values to be returned\n\t\t\t\n $personsList = $persons->getListIterator( );\n $personsArray = $personsList->getDataList();\n\n \n $maxID = -1;\n\t reset($personsArray);\n\t \tforeach(array_keys($personsArray) as $k)\n\t\t\t{\n\t\t\t\t$personRecord = current($personsArray);\t\n\t\t\t\t$maxID = $personRecord['MAX(person_id)'];\n\t\t\t\tif ($maxID > -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\t// get out of the loop once MAX is found\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tnext($personsArray);\t\n\t\t\t}\t\n\t\t\treturn $maxID+1;\n\t\t}", "title": "" }, { "docid": "c615837ca315aaad6462e32ee94f2e34", "score": "0.6664355", "text": "public function createNewQpcId(){\n $sql = \"SELECT `user_master`.`user_id` FROM `user_master` WHERE `user_master`.`user_type` = 'QUESTION_PAPER' ORDER BY `created` DESC LIMIT 1\";\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)==1){\n $rows = mysqli_fetch_array($res);\n $currentId = (int) substr($rows[0],3);\n return ++$currentId;\n }\n return 1;\n }", "title": "" }, { "docid": "7fd54e7c2220e6c7604f3e052097992e", "score": "0.6662763", "text": "function newId(){\r\n\t\tstatic $id;\r\n\t\tif (!isset($id) || !$id){\r\n\t\t\t$id=1;\r\n\t\t}\r\n\t\t$id++;\r\n\t\t$unique_id = $id;\r\n\t\treturn $unique_id;\t\r\n\t}", "title": "" }, { "docid": "5d1840d6801833bf19be298beb63e7c7", "score": "0.6655462", "text": "public function sel_next_id()\n\t{\n\t\t$query_str = \"select nextval(pg_catalog.pg_get_serial_sequence('m_text', 'text_id'))\";\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$seq = $query->execute($this->db, true);\n\t\t\n\t\treturn $seq[0]->nextval;\n\t}", "title": "" }, { "docid": "90e15ffc763d32aa71c9daf0057bb2a2", "score": "0.6652958", "text": "protected function _getAutoIncrement(): \\Yana\\Db\\FileDb\\Sequence\n {\n if (!isset($this->_autoIncrement)) {\n assert(!isset($name), 'Cannot redeclare var $name');\n $name = $this->getClass() . '\\\\' . $this->_getDatabaseName() . '\\\\' . $this->_getTableName();\n try {\n assert(!isset($sequence), 'Cannot redeclare var $sequence');\n $sequence = new \\Yana\\Db\\FileDb\\Sequence($name);\n\n } catch (\\Yana\\Db\\Queries\\Exceptions\\NotFoundException $e) {\n \\Yana\\Db\\FileDb\\Sequence::create($name);\n $sequence = new \\Yana\\Db\\FileDb\\Sequence($name);\n unset($e);\n }\n unset($name);\n $this->_setAutoIncrement($sequence);\n unset($sequence);\n }\n return $this->_autoIncrement;\n }", "title": "" }, { "docid": "86d3622b3d81855cc491f639fbae040d", "score": "0.6652698", "text": "function get_next_payslip_no() {\n\n\t$sql = \"SELECT MAX(payslip_no)+1 FROM \".TB_PREF.\"payslip\";\n\t$result = db_query($sql, \"The next payslip number could not be retreived\");\n $row = db_fetch_row($result);\n\n return ($row[0])?$row[0]:1;\n}", "title": "" }, { "docid": "5dfdc9bfb9759b1967890b7a171e0954", "score": "0.6643115", "text": "public function createNewQbcId(){\n $sql = \"SELECT `user_master`.`user_id` FROM `user_master` WHERE `user_master`.`user_type` = 'QUESTION_BANK' ORDER BY `created` DESC LIMIT 1\";\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)==1){\n $rows = mysqli_fetch_array($res);\n $currentId = (int) substr($rows[0],3);\n return ++$currentId;\n }\n return 1;\n }", "title": "" }, { "docid": "dce52764b883e5b2d8fa7212c20b55df", "score": "0.66372114", "text": "public function generateNextBID($value = NULL){\n\t\t\tif(is_numeric($value)){\n\t\t\t\t$query = \"SELECT MAX(work_b.work_b_number) AS `max`\n\t\t\t\t\t\tFROM work_b \n\t\t\t\t\t\tWHERE work_b.work_id = :work_id\";\n\t\t\t\t$this->set($query);\n\t\t\t\t$this->bindParam(':work_id', $value);\n\t\t\t\t$result = $this->returnSingle();\n\t\t\t\t$next = $result['max']+1;\n\t\t\t\treturn($next);\n\t\t\t}else{\n\t\t\t\treturn(NULL);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a8a544e21b642c211bd62276ded96031", "score": "0.6621047", "text": "public function get_next_id($table_name, $field=\"id\")\n\t{\n\n\t\t$query = $this->db->select(\"MAX($field) as last_id\")\n\t\t\t->from($table_name)\n\t\t\t->limit(1)\n\t\t\t->get();\n\n\t\t$row = $query->fetch(\\PDO::FETCH_ASSOC);\n\n\t\tif (empty($row))\n\t\t{\n\t\t\t$id = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$id = intval($row['last_id']) + 1;\n\t\t}\n\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "85646aade05ec88b701f1785070050a5", "score": "0.66067195", "text": "public function getNextJournalTransaction() { \n\t\t$sql = $this->remoteDb->fetchOne('SELECT id FROM journal_entries ORDER BY id DESC LIMIT 1');\n\t\t\tif(isset($sql) && !empty($sql)) {\n\t\t\t\t$jid = ++$sql;\n\t\t\t} else {\n\t\t\t\t$jid = 1;\n\t\t\t}\n\t\t\treturn $jid;\n\t}", "title": "" }, { "docid": "4dde9accd98106281ce1399b75ff56ce", "score": "0.6603157", "text": "protected function _generateNumber() {\n return $this->field('MAX(number)') + 1;\n }", "title": "" }, { "docid": "0a0dd4c57d2c27263da6907b9a307942", "score": "0.65937", "text": "function getNextQuestionAnswerId() {\r\n debug(__METHOD__ . \"()\");\r\n \r\n try {\r\n \r\n // We might have a synchronization\r\n // problem here, but typcial usage pattern doesn't worth the work of creating a \r\n // better auto-incrementing mechanism.\r\n $rs = $this->_db->query('SELECT MAX(Id) AS Id FROM QuestionsAnswers');\r\n $res = $rs->fetch(PDO::FETCH_ASSOC);\r\n if ($res) {\r\n return ($res['Id'] + 1);\r\n }\r\n // Nothing found - starting from 1\r\n return 1;\r\n } catch(PDOException $e) {\r\n logException($e);\r\n return false; \r\n } \r\n }", "title": "" }, { "docid": "8c342d6f69fc66c9d1d0903f1b950313", "score": "0.658863", "text": "public function getUidnext() {\n\t\tif (!isset($this->uidNext)) {\n\t\t\t$status = $this->getStatus(['UIDNEXT']);\n\n\t\t\t$this->uidNext = $status['UIDNEXT'];\n\t\t}\n\n\t\treturn $this->uidNext;\n\t}", "title": "" }, { "docid": "30682c186f75aa9b7da8a7c8e043ddae", "score": "0.65802425", "text": "private function _auto_increment_id() {\n if ($this->engine == 'mysql') {\n return mysql_insert_id($this->c);\n }\n }", "title": "" }, { "docid": "fc1cef6a0c1f5f059393ac50f0194743", "score": "0.65783584", "text": "public function createNewEmployeeId(){\n $sql = \"SELECT `user_master`.`user_id` FROM `user_master` WHERE `user_master`.`user_type` = 'EMPLOYEE' ORDER BY `created` DESC LIMIT 1\";\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)==1){\n $rows = mysqli_fetch_array($res);\n $currentId = (int) substr($rows[0],3);\n return ++$currentId; \n }\n return 1;\n }", "title": "" }, { "docid": "665084a56129daf252ce4c6a87a169c8", "score": "0.6569237", "text": "function getNextOrderID()\n{\n $xml = simplexml_load_file(XML_DB . DS . \"orders.xml\") or die(\"Error: Cannot create object\");\n $nextID = $xml->next[0];\n\n return $nextID;\n}", "title": "" }, { "docid": "0300516416b4b93ff4283828b94f746d", "score": "0.65610695", "text": "public function getNextInvoiceNumber() {\n\t\treturn $this->_sendRequest('GET', '/invoice/number');\n\t}", "title": "" }, { "docid": "119f6910ef710e38d4f898d4fe972e97", "score": "0.65589005", "text": "public function getIncrement()\n {\n return $this->increment;\n }", "title": "" }, { "docid": "119f6910ef710e38d4f898d4fe972e97", "score": "0.65589005", "text": "public function getIncrement()\n {\n return $this->increment;\n }", "title": "" }, { "docid": "346cd53a1a55f26a6b567a8fcf381ba5", "score": "0.6551897", "text": "public function increment();", "title": "" }, { "docid": "46173c099b9a1741c57bf0d57f282df2", "score": "0.6543079", "text": "private static function getAutoIncrement() {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\tif (self::$dbtype === self::$mySQLConnection) {\n\t\t\t$query = 'AUTO_INCREMENT';\n\t\t} else if (self::$dbtype === self::$postgreSQLConnection) {\n\t\t\t$query = '';\n\t\t} else if (self::$dbtype === self::$msSQLConnection) {\n\t\t\t$query = 'IDENTITY (1,1)';\n\t\t}\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $query);\n\t\t$query = self::_applyFilter(get_class(), __FUNCTION__, $query, array('event' => 'return'));\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "32e03173500c2f656e034a7ba7aebeda", "score": "0.6539182", "text": "public function next(): int;", "title": "" }, { "docid": "555e29b0b495f5980fcacb95c113fc3c", "score": "0.6531226", "text": "public function getNextNum() {\r\n\t\t(int)$e = preg_replace('/^[A-Z]/', '', $this->currentSeries);\r\n\t\t//increment it\r\n\t\t$e++;\r\n\t\t//reset it if it passes 1000\r\n\t\tif ($e > 1000) { $e = \"001\"; }\r\n\t\treturn $e;\r\n\t}", "title": "" }, { "docid": "3053c72e0dd1d31bda66b166aa2afb68", "score": "0.65300196", "text": "public function getNextBatchNumber(): int;", "title": "" }, { "docid": "23edbfd311940f0ea50030ad01a0cb4c", "score": "0.65058774", "text": "function newIDdebat($database){\n $idU = \"SELECT max(idDebat) as newID from DEBAT\";\n $stmt = $database->query($idU);\n return $stmt->fetch()['newID']+1;\n}", "title": "" }, { "docid": "b9f7554b9d1bde75776f56a041bafdbc", "score": "0.6494121", "text": "public function getNextId()\n\t{\n\t\t$param = $this->getRequest()->getParam($this->_objectId);\n\t\t$id = Mage::helper('logging/log')->getNextLogId($param);\t\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "fb7a5f8e96b916b27e9f675c4ebc7d67", "score": "0.6492556", "text": "public function next()\n {\n \t$this->iterator_id = dba_nextkey($this->handle);\n \treturn $this->iterator_id;\n }", "title": "" }, { "docid": "1567cae09d06ba2ee71d031b9c12511b", "score": "0.6486143", "text": "function getIncrement()\r\n {\r\n return $this->increment;\r\n }", "title": "" }, { "docid": "2aa33f7b9c97ee5d7243104df93c568e", "score": "0.6484736", "text": "protected function getNextNumber($fieldName) {\n \n // get next number by using special function on NUMMERN\n $nextNo = $this->incrementNumberValue($fieldName);\n \n // return next number\n return $nextNo;\n \n }", "title": "" }, { "docid": "6166737cef59191c95f1fee0a353e457", "score": "0.6484529", "text": "public function incrementAndGet()\n {\n return $this->addAndGet(1);\n }", "title": "" }, { "docid": "b3ffd00f368c46d79198739cde9b3333", "score": "0.6483999", "text": "protected function getNextId($tableName, $newRecordStartValue=0) {\n \n $lastId = $this->selectLastId($tableName);\n \n // if no last used id is returned, set it to 0 (or an optionally given starting value) and insert a new record in table SYNEWNUMBER\n if (is_null($lastId)) {\n $lastId = $newRecordStartValue;\n $this->insertSynewnumberRecord($tableName, $lastId);\n } \n \n // create next id by increasing last used id per one and update SYNEWNUMBER with next id\n $nextId = $this->incrementSynewnumberRecord($tableName);\n \n // return next id\n return $nextId;\n \n }", "title": "" }, { "docid": "4225182bfd15ac3f41f1565ab5fa581c", "score": "0.6478858", "text": "public function createNewStudentId(){\n $sql = \"SELECT `user_master`.`user_id` FROM `user_master` WHERE `user_master`.`user_type` = 'STUDENT' ORDER BY `created` DESC LIMIT 1\";\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)==1){\n $rows = mysqli_fetch_array($res);\n $currentId = (int) substr($rows[0],3);\n return ++$currentId; \n }\n return 1;\n }", "title": "" }, { "docid": "d3093e6289abc2296acd9dff83aee09a", "score": "0.64716476", "text": "function pltz_GetFreeId() {\r\n $query = \"SELECT `id` from `op_transactions` ORDER BY `id` DESC LIMIT 1\";\r\n $result = simple_query($query);\r\n if (!empty($result)) {\r\n $result = $result['id'] + 1;\r\n } else {\r\n $result = 1;\r\n }\r\n return ($result);\r\n}", "title": "" }, { "docid": "b201294ac5364001b240d4a26f1611b6", "score": "0.6458081", "text": "public function nextid($seq_name)\n {\n $this->connect();\n\n if ($this->lock($this->Seq_Table)) {\n /* get sequence number (locked) and increment */\n $q = sprintf(\n \"select nextid from %s where seq_name = '%s'\",\n $this->Seq_Table,\n $seq_name\n );\n $id = @mysqli_query($this->Link_ID, $q);\n $res = @mysqli_fetch_array($id);\n\n /* No current value, make one */\n if (!is_array($res)) {\n $currentid = 0;\n $q = sprintf(\n \"insert into %s values('%s', %s)\",\n $this->Seq_Table,\n $seq_name,\n $currentid\n );\n $id = @mysqli_query($this->Link_ID, $q);\n } else {\n $currentid = $res[\"nextid\"];\n }\n $nextid = $currentid + 1;\n $q = sprintf(\n \"update %s set nextid = '%s' where seq_name = '%s'\",\n $this->Seq_Table,\n $nextid,\n $seq_name\n );\n $id = @mysqli_query($this->Link_ID, $q);\n $this->unlock();\n } else {\n $this->halt(\"cannot lock \".$this->Seq_Table.\" - has it been created?\");\n return 0;\n }\n return $nextid;\n }", "title": "" }, { "docid": "f5913e4e6df761366c00caa9a5d2ce69", "score": "0.64553475", "text": "public function lastId() {\n return $this->_auto_increment_id();\n }", "title": "" }, { "docid": "6e89ab0bb2010cf8169e19d4b2cb747d", "score": "0.64487934", "text": "public function getNextCodeAvailable(Collection $collection): string\n {\n static $nextId = null;\n\n if (!$nextId) {\n $connection = _em()->getConnection();\n $database = $connection->quote($connection->getDatabase());\n\n $sql = \"SELECT `AUTO_INCREMENT`\n FROM INFORMATION_SCHEMA.TABLES\n WHERE TABLE_SCHEMA = $database\n AND TABLE_NAME = 'card'\";\n\n $nextId = (int) $connection->fetchOne($sql);\n } else {\n ++$nextId;\n }\n\n return $collection->getName() . '-' . $nextId;\n }", "title": "" }, { "docid": "e766f2bc7499d371d753ee0e03f698c1", "score": "0.6445558", "text": "public function nextid($sequence)\n {\n /* first connect */\n if ($this->connect() == self::DB_SUCCESS) {\n /* lock sequence table */\n if ($this->lock($this->m_seq_table)) {\n /* get sequence number (locked) and increment */\n $query = 'SELECT '.$this->m_seq_field.' FROM '.$this->m_seq_table.' WHERE '.$this->m_seq_namefield.\" = '$sequence'\";\n\n $id = $this->_query($query, true);\n $result = @mysqli_fetch_array($id);\n\n /* no current value, make one */\n if (!is_array($result)) {\n $query = 'INSERT INTO '.$this->m_seq_table.\" VALUES('$sequence', 1)\";\n $this->_query($query, true);\n $this->unlock();\n\n return 1;\n } /* enter next value */ else {\n $nextid = $result[$this->m_seq_field] + 1;\n $query = 'UPDATE '.$this->m_seq_table.' SET '.$this->m_seq_field.\" = '$nextid' WHERE \".$this->m_seq_namefield.\" = '$sequence'\";\n\n $this->_query($query, true);\n $this->unlock();\n\n return $nextid;\n }\n }\n\n return 0;\n } /* cannot connect */ else {\n $this->halt('cannot connect to '.$this->m_host);\n }\n }", "title": "" }, { "docid": "30645463da4af4243649e79618142a0d", "score": "0.6442402", "text": "protected function getNextNumber()\n\t{\n\t\tglobal $ilDB;\n\n\t\t$event = $this->getEvent();\n\t\tif($event)\n\t\t{\n\t\t\t$set = $ilDB->query(\"SELECT MAX(nr) AS nr\".\n\t\t\t\t\" FROM adn_ep_answer_sheet\".\n\t\t\t\t\" WHERE ep_exam_event_id = \".$ilDB->quote($this->getEvent(), \"integer\"));\n\t\t\t$row = $ilDB->fetchAssoc($set);\n\t\t\treturn $row[\"nr\"]+1;\n\t\t}\n\t}", "title": "" }, { "docid": "ec68aa05e9e4091afe810286afc420c6", "score": "0.6439564", "text": "public function get_new_id()\n {\n $query = \"select MAX(id) as id from foreign_labor\";\n $res = $this->db->query($query);\n $res->result_array();\n $last_id = ($res->result()[0]->id) + 1;\n return $last_id;\n }", "title": "" }, { "docid": "71f47d81be1d93d520dc2debcccd5985", "score": "0.64328474", "text": "public static function getNextIndex(): int\n\t{\n\t\tif (static::$index === PHP_INT_MAX) {\n\t\t\t/*\n\t\t\t * If we reach overflow, we'll reset index to zero, because\n\t\t\t * it's really unlikely that anyone will ever be able to execute\n\t\t\t * that many binded variables within one SQL statement\n\t\t\t */\n\t\t\tstatic::$index = 0;\n\t\t}\n\n\t\treturn static::$index++;\n\t}", "title": "" }, { "docid": "a203546ed11a2063a812e8b231af6234", "score": "0.64321876", "text": "private function generate_id(){\n //Loop through the data to find the highest id\n for($i=0;$i<sizeof($this->working_data);$i++){\n if($this->id < $this->working_data[$i]->id){\n $this->id = $this->working_data[$i]->id;\n }\n }\n\n //Make the newly generated id one number higher\n $this->id = $this->id+1;\n\n //Return id number\n return $this->id;\n }", "title": "" } ]
78a48ae285b1bf3108393123fb998339
Add metadata to an audio file. If no arguments are given then filter will remove all metadata from the audio file
[ { "docid": "b9930e9f4508d61e5f7bea58d43435a9", "score": "0.55262554", "text": "public function addMetadata(? array $data = null) : self\n {\n $this->media->addFilter(new AddMetadataFilter($data));\n\n return $this;\n }", "title": "" } ]
[ { "docid": "a02de85ef0677b5d21099d536a48420f", "score": "0.50715667", "text": "function delMetadata(){}", "title": "" }, { "docid": "28acaeeacb3a46b8f249365d6421ec7d", "score": "0.50573546", "text": "protected function addMetaData(MatchedFileDTO $matchedFileDTO): void\n {\n $this->metaData[] = [\n 'source' => $matchedFileDTO->source,\n 'app' => $matchedFileDTO->app,\n 'type' => static::FILE_TYPE,\n 'path' => $matchedFileDTO->localPath,\n 'example' => $this->buildExample((string) $matchedFileDTO->fqcn),\n ];\n }", "title": "" }, { "docid": "d824363ae4f22722e78de4c3c34f1cc8", "score": "0.49433032", "text": "function addFilter(Filter $filter);", "title": "" }, { "docid": "91a103c0f067446fa25b2d7f5557c157", "score": "0.4932663", "text": "public function delMetadata(){}", "title": "" }, { "docid": "91a103c0f067446fa25b2d7f5557c157", "score": "0.4930151", "text": "public function delMetadata(){}", "title": "" }, { "docid": "1e26404a5d7e5d6d1c4b61e6b53c81da", "score": "0.47481734", "text": "public function addMedia($file, $collectionName, $preserveOriginal = false, $addAsTemporary = false);", "title": "" }, { "docid": "15c0166db23f0f76ee338465bd9b597f", "score": "0.4620924", "text": "function audio($audio = false, $attr = false) {\n\n\tglobal $onload;\n\n\t$edit = false;\n\n\n\t// memberaccess installed\n\t// and logged\n\t// and user is in news access group\n\tif (class_exists(\"ma\\Access\") && ma\\Access::user() && ma\\Groups::user_is_in_group(ma\\Access::user()->username(), audio\\Config::admin_group())) {\n\n\t\t$edit = true;\n\t}\n\n\n\t// add path snippet from http attributes\n\t$path = audio\\Session::get(\"audio_path\");\n\t$root = audio\\Config::root();\n\n\n\n\t// add javascript for delete\n\t$ret = '<script type=\"text/javascript\" src=\"' . AUDIO_PLUGIN_BASE . 'script/audio.js\"></script>';\n\n\t// add to onload\n\t$onload .= \"audio_init('\" . audio\\Text::delete_confirm() . \"');\";\n\n\n\t// init vies\n\taudio\\View::init($root);\n\n\n\t$ret .= '<div class=\"audio_wrapper\">';\n\n\t\t$ret .= audio\\View::file_count();\n\n\t\t$ret .= audio\\View::search();\n\n\n\t\t// ==========================================================\n\t\t// show search result\n\t\tif ($query = audio\\Session::param(\"audio_query\")) {\n\n\t\t\t// search\n\t\t\t$files = audio\\Index::find($query);\n\t\t\t$ret .= audio\\View::files($files);\n\t\t}\n\n\n\t\t// ==========================================================\n\t\t// check for directory\n\t\tif (is_dir(audio\\Path::create([$root, $path]))) {\n\t\t\t$ret .= audio\\View::dir($path, $attr, $edit);\n\t\t}\n\n\t\telse {\n\t\t\t$ret .= audio\\View::file($path, $audio, $attr, $edit);\n\t\t}\n\n\n\t\t// ==========================================================\n\t\t// add upload\n\t\tif (audio\\Config::display_upload() !== \"false\") {\n\t\t\t$ret .= audio\\View::upload();\n\t\t}\n\n\t\t$ret = audio\\Message::render() . $ret;\n\n\t$ret .= '</div>';\n\n\treturn $ret;\n}", "title": "" }, { "docid": "c711e75b9326b142df01f40909b5c715", "score": "0.45994702", "text": "function addASound($sound, $flags){}", "title": "" }, { "docid": "76b4132fdc5f91221a15fc1f9c00135c", "score": "0.45663416", "text": "private function getAudioMetadata($isbn) {\n $cache_key = __METHOD__ . '-' . $isbn;\n\n if ($cached = cache_get($cache_key)) {\n return $cached->data;\n }\n\n try {\n $metadata = [];\n\n $metadataUrl = 'https://audio.api.streaming.pubhub.dk/v1/samples/' . $isbn;\n $audioUrl = 'https://audio.api.streaming.pubhub.dk/Sample.ashx?isbn=' . $isbn;\n\n $client = new Client();\n $response = $client->get($metadataUrl);\n $data = json_decode((string) $response->getBody(), TRUE);\n\n $metadata['length'] = $data['duration'];\n\n // Get size of audio sample.\n $response = $client->head($audioUrl);\n $header = $response->getHeader('content-range');\n $contentRange = reset($header);\n if (preg_match('@bytes (?P<range_start>[0-9]+)-(?P<range_end>[0-9]+)/(?P<size>[0-9]+)@',\n $contentRange, $matches)) {\n $metadata['size'] = (int) $matches['size'];\n }\n\n // Get audio format.\n $header = $response->getHeader('content-type');\n $metadata['format'] = reset($header);\n\n $result = ['url' => $audioUrl, 'metadata' => $metadata];\n\n // Store result in cache.\n cache_set($cache_key, $result);\n\n return $result;\n }\n catch (\\Exception $exception) {\n // We don't want any exceptions to break the feed.\n }\n\n return NULL;\n }", "title": "" }, { "docid": "661c1726105a9b7dc4162fe6f1391dc7", "score": "0.45459673", "text": "function wp_embed_handler_audio($matches, $attr, $url, $rawattr)\n{\n $audio = sprintf('[audio src=\"%s\" /]', esc_url($url));\n\n /**\n * Filters the audio embed output.\n *\n * @since 3.6.0\n *\n * @param string $audio Audio embed output.\n * @param array $attr An array of embed attributes.\n * @param string $url The original URL that was matched by the regex.\n * @param array $rawattr The original unmodified attributes.\n */\n return apply_filters('wp_embed_handler_audio', $audio, $attr, $url, $rawattr);\n}", "title": "" }, { "docid": "3a8f181a74a9c1fb59462e721cbece2d", "score": "0.45416176", "text": "public function addFromRaw($rawData, $filename, $tag = null)\n {\n if (is_null($rawData))\n return;\n\n $tempPath = temp_path($filename);\n File::put($tempPath, $rawData);\n\n $this->addFromFile($tempPath, $tag);\n File::delete($tempPath);\n\n return $this;\n }", "title": "" }, { "docid": "91a828cf12ba02b612a7d1dc379fa81f", "score": "0.45339552", "text": "public function addFilter(FilterInterface $filter): void;", "title": "" }, { "docid": "01fdb248ea0efb09302f9fbd7db54bf4", "score": "0.45308656", "text": "protected function readMetadata()\n {\n if ($this->metadata !== null) {\n return;\n }\n\n $line = fgets($this->getFileHandler());\n\n if (trim($line) !== '[') {\n throw new \\InvalidArgumentException('Given file does not match expected pattern.');\n }\n\n $line = trim(fgets($this->getFileHandler()));\n $this->metadata = json_decode(rtrim($line, ','), true);\n }", "title": "" }, { "docid": "82e548a6e1ed5ad222c6e6e2088eb845", "score": "0.44408128", "text": "public function setCategoryMetaData($event) {\n\n\t\t// Plugin params\n\t\t$category \t\t = $event->getSubject();\n\t\t$params \t\t = clone $category->getParams();\n\t\t$temp_cat\t\t = clone $category;\n\t\t$override \t\t = $this->params->get('override_category_metadata', false);\n\n\n\t\t// META TITLE\n\t\t$key = 'metadata.title';\n\n\t\t// Render content\n\t\t$field = $this->params->get('category_metatitle', false); \n\t\t$content = strip_tags(trim($this->getCategoryField($category, $field)));\n\n\t\t// go on only if data set and override is enabled or param empty\n\t\tif ($content && ($override || $this->_isMetaDataEmpty($params, $key))) {\n\t\t\t$params->remove($key);\n\t\t\t$params->set($key, $content); \n\t\t}\n\n\n\t\t// META DESCRIPTION\n\t\t$key = 'metadata.description';\n\n\t\t// Render content\n\t\t$field = $this->params->get('category_metadescription', false); \n\t\t$content = strip_tags(trim($this->getCategoryField($category, $field)));\n\n\t\t// go on only if data set and override is enabled or param empty\n\t\tif ($content && ($override || $this->_isMetaDataEmpty($params, $key))) {\n\t\t\t$params->remove($key);\n\t\t\t$params->set($key, $content); \n\t\t}\n\n\n\t\t// META KEYWORDS\n\t\t$key = 'metadata.keywords';\n\n\t\t// Render content\n\t\t$field = $this->params->get('category_keywords', false); \n\t\t$content = strip_tags(trim($this->getCategoryField($category, $field)));\n\n\t\t// go on only if data set and override is enabled or param empty\n\t\tif ($content && ($override || $this->_isMetaDataEmpty($params, $key))) {\n\t\t\t$params->remove($key);\n\t\t\t$params->set($key, $content); \n\t\t}\n\n\t\t// META AUTHOR\n\t\tif($global_show_author = $this->joomla->getCfg('MetaAuthor', 0)) {\n\n\t\t\t$key = 'metadata.author';\n\n\t\t\t// Render content\n\t\t\t$field = $this->params->get('category_author', false);\n\t\t\t$content = strip_tags(trim($this->getCategoryField($category, $field)));\n\n\t\t\t// go on only if data set and override is enabled or param empty\n\t\t\tif ($content && ($override || $this->_isMetaDataEmpty($params, $key))) {\n\t\t\t\t$params->remove($key);\n\t\t\t\t$params->set($key, $content);\n\t\t\t}\n\t\t}\n\n\n\t\t// Save only if different, otherwise infinite loop\n\t\tif ($params->serialize() != $category->getParams()->serialize()) {\n\t\t\t$category = $temp_cat;\n\t\t\t$category->params = $params;\n\t\t\t$this->app->table->category->save($category);\n\t\t}\n\t}", "title": "" }, { "docid": "8f15ea4cbed3df1638aecd406565cb6e", "score": "0.44379345", "text": "public function unsetMetadata(): void\n {\n $this->metadata = [];\n }", "title": "" }, { "docid": "8d3d3a6c832dc78832a1020881d92036", "score": "0.4420096", "text": "public abstract function meta(File $source): array<string, mixed>;", "title": "" }, { "docid": "d75bb2e1601b3808717c0fc8037890ce", "score": "0.4418443", "text": "public function addMetadata( $meta ) {\n\t\t$this->byindex[] = $meta;\n\t\t$this->byname[$meta->getName()] = $meta;\n\t}", "title": "" }, { "docid": "bb9ba91a76383bc497298ae286980dd5", "score": "0.44010484", "text": "function setMetaDataFlag($param = false){\n\t\t$this->metaDataFlag=$param;\n\t}", "title": "" }, { "docid": "2548eb5bd7adec744b40b793ff9a5a93", "score": "0.43802974", "text": "public function addMetadata($key, $value)\n {\n $this->metadata[$key] = $value;\n }", "title": "" }, { "docid": "39530ed40d7c3d7c780ab6dd2c2048bb", "score": "0.43752554", "text": "public function fillFromMetadata ( $source_file )\r\n\t{\r\n\t\t$this->duration = -1;\r\n\r\n\t\tif ( $this->duration < 0 )\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$duration_in_milliseconds = myFlvStaticHandler::getLastTimestamp( $source_file );\r\n\t\t\t\tif ( $duration_in_milliseconds > 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->duration = $duration_in_milliseconds;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch ( Exception $ex )\r\n\t\t\t{\r\n\t\t\t\t// nothing much to do here\r\n\t\t\t\t$this->duration = -2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tob_start();\r\n\t\t$cmd_line = kConversionEngineFfmpeg::getCmd() . \" -i \\\"\". $source_file . \"\\\" 2>&1\";\r\n\t\tpassthru( $cmd_line );\r\n\t\t$content = ob_get_contents();\r\n\t\tob_end_clean();\r\n\r\n\t\t// Trying to find the duration from the output\r\n\t\t$subpattern = array ();\r\n\t\t// echo ( $log_file_content );\r\n\t\tif ( preg_match('/Duration: ([^,]*),/', $content , $subpattern) > 0 )\r\n\t\t{\r\n\t\t\t$duration_str = $subpattern[1]; // 00:00:20.1\r\n\t\t\t$arr = explode( \":\" , $duration_str);\r\n\t\t\tif ( count ( $arr ) > 2 )\r\n\t\t\t{\r\n\t\t\t\t$duration_in_seconds = $arr[0] * 3600 + $arr[1] * 60 + $arr[2];\r\n\t\t\t\t$this->duration = $duration_in_seconds * 1000;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "1469ebc5c5c0cdf1bf7844a1a4d03a76", "score": "0.43705538", "text": "public function removeMetadata( $meta ) {\n\t\tunset( $this->byname[$meta->getName()] );\n\t\t// find by index\n\t\t$index = array_search( $meta, $this->byindex );\n\t\tunset( $this->byindex[$index] );\n\t\t// reindex\n\t\t$this->byindex = array_values( $this->byindex );\n\t}", "title": "" }, { "docid": "e583b0054ae03a3a66b957fae9c05465", "score": "0.43658984", "text": "public function withAddedMetadata(string $key, $value): self;", "title": "" }, { "docid": "742132a8b781c6a326131d9894be2481", "score": "0.43592253", "text": "function unset_metadata($key = '', $all = false) {\n\t\t$key = strtolower($key);\n\t\tif ($key == '' && $all == true) {\n\t\t\t$this->metadata_array = array();\n\t\t} elseif ($key != '') {\n\t\t\tif (array_key_exists($key, $this->metadata_array)) {\n\t\t\t\tunset($this->metadata_array[$key]);\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "01310b21290d9cd8dec9b70dbf437206", "score": "0.4350688", "text": "public function addFilter($filter, $options = null, $files = null)\n {\n throw new Zend_File_Transfer_Exception('Method not implemented');\n }", "title": "" }, { "docid": "d63d5bf835a5cf9f78780eae509d8f16", "score": "0.4336407", "text": "public function publishFile($name, $namespace = null, $size = null, $filters = null, $noimage = null);", "title": "" }, { "docid": "d8c6e15a2ad7d0ba23d6a6d512978787", "score": "0.43102205", "text": "public function saveItemMetaData($event)\n\t{\n\t\t// get item\n\t\t$item = $event->getSubject();\n\n\t\t// if all ok, set meta data\n\t\t$this->setItemMetadata($item);\n\t}", "title": "" }, { "docid": "afbb0a798a4859fef16c0d8a176e4929", "score": "0.43036973", "text": "public function append($name, $data)\n {\n if (!$data instanceof \\Vatsimphp\\Filter\\AbstractFilter) {\n $data = new Iterator($data);\n }\n $name = str_replace(' ', '_', $name);\n $this->container[$name] = $data;\n }", "title": "" }, { "docid": "c34f68864e3478ee82b881b2b4480567", "score": "0.43027562", "text": "public function hasMetadata(){}", "title": "" }, { "docid": "c34f68864e3478ee82b881b2b4480567", "score": "0.43027562", "text": "public function hasMetadata(){}", "title": "" }, { "docid": "bf2adf6df2806d3b8a8e0f6083d611ab", "score": "0.426909", "text": "function suppFileAdditionalMetadata($hookName, $args) {\n\t\t$templateMgr =& $args[1];\n\t\t$output =& $args[2];\n\t\t$articleId = $templateMgr->get_template_vars('articleId');\t\t\t\t \n\n\t\t// Include Dataverse data citation, if a study exists for this submission.\n\t\t$dvStudyDao = DAORegistry::getDAO('DataverseStudyDAO');\n\t\t$study = $dvStudyDao->getStudyBySubmissionId($articleId);\n\n\t\tif (isset($study)) {\n\t\t\t$templateMgr->assign('dataCitation', $this->_formatDataCitation($study->getDataCitation(), $study->getPersistentUri()));\n\t\t\t$templateMgr->assign('studyLocked', $this->studyIsLocked($study));\n\t\t}\n\t\t$output .= $templateMgr->fetch($this->getTemplatePath() . 'suppFileAdditionalMetadata.tpl');\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bfc30001de1dcaca2916edbda0442165", "score": "0.42665884", "text": "public function createMeta() {\n $this->message->update(\"Creating the meta.xml file.\");\n\n file_put_contents($this->tmpPath . '/' . $this->getMetaFileName(), $this->classification->getRawMeta());\n }", "title": "" }, { "docid": "b71d62b5805ee460d5e14a56d7ea2b0f", "score": "0.42647168", "text": "private function addFilter(Zend_Search_Lucene_Analysis_TokenFilter $filter)\n\t{\n\t\t\t$this->_filters[] = $filter;\n\t}", "title": "" }, { "docid": "5c547088f00baf93d490c108651b114e", "score": "0.42587382", "text": "function wppa_filter_exif($desc, $photo) {\r\nglobal $wpdb;\r\n\r\n\t$exifdata = $wpdb->get_results($wpdb->prepare(\"SELECT * FROM `\".WPPA_EXIF.\"` WHERE `photo`=%s ORDER BY `id`\", $photo), \"ARRAY_A\");\r\n\tif ( ! $exifdata ) return $desc;\t// Nothing to do\r\n\t\r\n\t// Init\r\n\t$temp = $desc;\r\n\t$prevtag = '';\r\n\t$combined = '';\r\n\t\r\n\t// Process all exiflines of this photo\r\n\tforeach ($exifdata as $exifline) {\r\n\t\t$tag = $exifline['tag'];\r\n\t\tif ($prevtag == $tag) {\t\t\t// add a next item for this tag\r\n\t\t\t$combined .= ', '.htmlspecialchars($exifline['description']);\r\n\t\t}\r\n\t\telse { \t\t\t\t\t\t\t// first item of this tag\r\n\t\t\tif ( $combined ) { \t\t\t// Process if required\r\n\t\t\t\t$pos = strpos($temp, $prevtag);\r\n\t\t\t\twhile ( $pos !== false ) {\r\n\t\t\t\t\t$temp = substr_replace($temp, wppa_format_exif($prevtag, $combined), $pos, strlen($tag));\r\n\t\t\t\t\t$pos = strpos($temp, $prevtag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$combined = htmlspecialchars($exifline['description']);\r\n\t\t\t$prevtag = $tag;\r\n\t\t}\r\n\t}\r\n\t\r\n\t// Process last\r\n\t$pos = strpos($temp, $prevtag);\r\n\twhile ( $pos !== false ) {\r\n\t\t$temp = substr_replace($temp, wppa_format_exif($prevtag, $combined), $pos, strlen($tag));\r\n\t\t$pos = strpos($temp, $prevtag);\r\n\t}\r\n\r\n\t// Remove untranslated\r\n\t$pos = strpos($temp, 'E#');\r\n\twhile ( $pos !== false ) {\r\n\t\t$tmp = substr($temp, 0, $pos).substr($temp, $pos+6);\r\n\t\t$temp = $tmp;\r\n\t\t$pos = strpos($temp, 'E#');\r\n\t}\r\n\r\n\t// Return result\r\n\treturn $temp;\r\n}", "title": "" }, { "docid": "ce7f351d4c74edc78332126a1a92d7ba", "score": "0.4254428", "text": "public function initItemMetaData($event)\n\t{\n\t\t// get item\n\t\t$item = $event->getSubject();\n\n\t\t// abort if not current item, avoiding related ones\n\t\tif ($item->id != $this->app->zlfw->enviroment->params->get('item_id')) return;\n\n\t\t// if all ok, set meta data\n\t\t$this->setItemMetadata($item);\n\t}", "title": "" }, { "docid": "d59e0db50cfae370871e5065794a250b", "score": "0.4251118", "text": "public function applyHeaderFilter(array $fileHeadersInfo) \n {\n }", "title": "" }, { "docid": "debfc63185258e9e83a83ea0e6f761e8", "score": "0.42337856", "text": "function set_metadata($key = '', $value = '', $overwrite = true) {\n\t\n\t\tif ($key != '') {\n\t\t\t$key = strtolower($key);\n\t\t\t$replaced = false;\n\t\t\tif ($overwrite) {\n\t\t\t\tforeach ($this->metadata_array as &$i) {\n\t\t\t\t\tif ($i['fieldname'] == $key) {\n\t\t\t\t\t\t$i['value'] = $value;\n\t\t\t\t\t\t$replaced = true;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!$overwrite || !$replaced) {\n\t\t\t\tarray_push(\n\t\t\t\t\t$this->metadata_array, \n\t\t\t\t\t// To make our lives easier, we always save the fieldname in lowercase. \n\t\t\t\t\t// Let's hope no one objects. :)\n\t\t\t\t\tarray('fieldname' => $key, 'value' => $value)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "22525f772ff57c5bb88d50cf064a56d0", "score": "0.42234653", "text": "function addFilter($filter) {\r\n\t\t\tarray_push($this->filterArray,$filter);\r\n\t\t\t$this->tLog->debug('Filter added...'.$filter->toString());\r\n\t\t}", "title": "" }, { "docid": "97591494641ecf7c2e5dad5251c6f2c7", "score": "0.4223271", "text": "function pre_update_attachment_metadata( $abort, $data, $post_id, $old_provider_object ) {\n\t\t// Example stops movie files from being offloaded when added to library or metadata updated.\n\t\t$file = get_post_meta( $post_id, '_wp_attached_file', true );\n\t\t$extension = is_string( $file ) ? pathinfo( $file, PATHINFO_EXTENSION ) : false;\n\t\tif ( is_string( $extension ) && in_array( $extension, array( 'mp4', 'mov' ) ) ) {\n\t\t\t$abort = true; // abort the upload\n\t\t}\n\n\t\treturn $abort;\n\t}", "title": "" }, { "docid": "cf6d5c8c89ded5b2ffcb5ebed7cbbf56", "score": "0.4220233", "text": "function addMeta($name, $content) {\n $this->metadata->addMeta($name, $content);\n }", "title": "" }, { "docid": "b69fe3efcafa41c15fd46dc1fe07052f", "score": "0.42113477", "text": "public function stripAudio($video_id){\n\t\t$audio_data = null;\n\t\t$arg = escapeshellarg($video_id);\n\t\t$json_data = \"/media/storage/projects/livedescribe/public_html/res-www/yt/downloads/$video_id.json\";\n\n\t\tif(file_exists($json_data)){ //read in json data\n\t\t\t$audio_data = file_get_contents($json_data);\n\t\t}\n\t\telse{\n\t\t\t$cmd = \"/media/storage/projects/livedescribe/public_html/res-www/yt/youtube-dl -o \\\"%(id)s.%(ext)s\\\" $arg --extract-audio\";\n\n\t\t\tif(getcwd() != \"/media/storage/projects/livedescribe/public_html/res-www/yt/downloads/\"){\n\t\t\t\tchdir(\"/media/storage/projects/livedescribe/public_html/res-www/yt/downloads/\");\n\t\t\t}\n\n\t\t\t$ret = shell_exec($cmd);\n\n\t\t\tif( $ret == null ) return;\n\n\t\t\t$inFile = $video_id . '.m4a';\n\t\t\t$outFile = $video_id . '.wav';\n\t\t\t$ffmpeg_cmd =\"/usr/local/bin/ffmpeg -i \" . escapeshellarg($inFile) . \" \" . escapeshellarg($outFile);\n\t\t\t$val = shell_exec($ffmpeg_cmd);\n\n\t\t\tunlink(\"/media/storage/projects/livedescribe/public_html/res-www/yt/downloads/$inFile\"); //remove the video file\n\n\t\t\t$audioFile = \"/media/storage/projects/livedescribe/public_html/res-www/yt/downloads/$outFile\";\n\n\t\t\t$this->audio_model->initialise($audioFile);\n\t\t\t$response = $this->audio_model->readData();\n\n\t\t\tfile_put_contents($json_data, json_encode($response), LOCK_EX);\n\n\t\t\t$audio_data = json_encode($response); //send back a json object that will be used in the javascript file\n\t\t}\n\n\t\treturn $audio_data;\t\n\t}", "title": "" }, { "docid": "a1b68e58aa179c5aefccfe113883b49d", "score": "0.42111605", "text": "public function testIncludeModuleMetaDataIncludeEmptyMetadata() {\n $module = oxNew(Module::class);\n\n $metaDataFile = $this->testModuleDirectory . 'emptyMetaData.php';\n\n $module->includeModuleMetaData($metaDataFile);\n\n $aModules = $module->getModuleData();\n $metaDataVersion = $module->getMetaDataVersion();\n\n $this->assertEmpty($aModules, 'Module::includeModuleMetaData() creates an empty array for ModulData, if metadata.php is empty');\n $this->assertTrue(!isset($metaDataVersion), 'Module::includeModuleMetaData() leaves metaDataVersion unset, if metadata.php is empty');\n }", "title": "" }, { "docid": "8628afc52b3f1233cf76d02d69b7a111", "score": "0.42085773", "text": "function deleteFileMetadata($publicKey, $fileIdentifier);", "title": "" }, { "docid": "1ad838a2d32cf6e72f82325acc398250", "score": "0.41889197", "text": "function mg_library_audio($page = 1, $per_page = 15) {\r\n\t$query_audio_args = array(\r\n\t\t'post_type' => 'attachment', 'post_mime_type' =>'audio', 'post_status' => 'inherit', 'posts_per_page' => $per_page, 'paged' => $page\r\n\t);\r\n\t\r\n\t$query_audio = new WP_Query( $query_audio_args );\r\n\t$tracks = array();\r\n\t\r\n\tforeach ( $query_audio->posts as $audio) { \r\n\t\t$tracks[] = array(\r\n\t\t\t'id'\t=> $audio->ID,\r\n\t\t\t'url' \t=> $audio->guid, \r\n\t\t\t'title' => $audio->post_title\r\n\t\t);\r\n\t}\r\n\t\r\n\t// global images number\r\n\t$track_num = $query_audio->found_posts;\r\n\t\r\n\t// calculate the total\r\n\t$tot_pag = ceil($track_num / $per_page);\r\n\t\r\n\t// can show more?\r\n\t$shown = $per_page * $page;\r\n\t($shown >= $track_num) ? $more = false : $more = true; \r\n\t\r\n\treturn array('tracks' => $tracks, 'pag' => $page, 'tot_pag' =>$tot_pag ,'more' => $more, 'tot' => $track_num);\r\n}", "title": "" }, { "docid": "7fcacc85d02460c977135a606de569d2", "score": "0.41831127", "text": "public function addFilter($extension, $filter)\n\t{\n\t\t$this->filters[$extension][] = $filter;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c33bc07ae8eeaead61caff23a4ebdc3e", "score": "0.41779944", "text": "public function put($filename, array $extra = array()) {}", "title": "" }, { "docid": "b129c30b29ed414313ac4b596954db6a", "score": "0.41737437", "text": "protected abstract function getFile(array $metadata);", "title": "" }, { "docid": "f92d45015e58f131f76cead8a0e7196a", "score": "0.41709605", "text": "public function getMetadata($filter = null)\n {\n $data = $this->getMetadataFromCache();\n // Go to the API to get the metadata. This is an expensive and time\n // consuming call, hence the caching of the data locally.\n if (empty($data)) {\n $api = SugarApiUtil::getInstance();\n $reply = $api->call(\"metadata?platform={$this->platform}\");\n if (!empty($reply['reply'])) {\n $data = $reply['reply'];\n $this->writeMetadataToCache($data);\n }\n }\n\n // Handle languages\n if (isset($data['languages']['enabled'])) {\n $langs = $data['languages']['enabled'];\n if (!in_array('en_us', $langs)) {\n array_unshift($langs, 'en_us');\n }\n\n foreach ($langs as $lang) {\n $obj = new SugarApiLanguage($lang, $this->platform);\n $obj->getLanguage();\n }\n }\n\n // If there is no filter just send back the data as-is\n if (empty($filter)) {\n return $data;\n }\n\n // Handle the filter request. Assumption is it's an array unless it is\n // found to be a string, which could contain multiple filters separated\n // by commas\n if (is_string($filter)) {\n // If it is a comma separated list of filters, handle it\n if (strpos($filter, ',')) {\n $filter = explode(',', $filter);\n } else {\n // Make it an array\n $filter = array($filter);\n }\n }\n\n // Make sure hash is in the return always\n if (array_search('_hash', $filter) === false) {\n $filter[] = '_hash';\n }\n\n // Prepare the return\n $return = array();\n foreach ($filter as $section) {\n if (isset($data[$section])) {\n $return[$section] = $data[$section];\n }\n }\n return $return;\n }", "title": "" }, { "docid": "02ad2f983575630bc53702b5646f49b3", "score": "0.41606426", "text": "public function testUpdateMetaData()\n {\n }", "title": "" }, { "docid": "3c7cd3fc34d85c68d96d1192bf3eebce", "score": "0.4155876", "text": "public function add_data($file, $name, $contents = null);", "title": "" }, { "docid": "2f3dd9a32f6cdbccf3c485dbee163fe2", "score": "0.4150153", "text": "public function updateFileInfo()\n {\n $this->duration = 0;\n $this->file_size = 0;\n $this->video_format = 0;\n $this->bit_rate = 0;\n }", "title": "" }, { "docid": "d7aabb2132181a9ea7699edb4bb4b05f", "score": "0.41476944", "text": "public function addFilter (Filter $filter)\n {\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "7d15d0497bbf62b14dc9a66d2ffc1012", "score": "0.41432196", "text": "static function add_meta($attributes){\n\t\t\n\t\tif(is_array($attributes))\n\t\t\tself::$meta[] = $attributes;\n\t}", "title": "" }, { "docid": "bd6200acc6f9772ae527c75ec5ac1662", "score": "0.41391796", "text": "public function testAddFilter()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "24375a23c361548286181ce8765a3cdd", "score": "0.41374508", "text": "protected function load_metadata_from_configuration() {\n $this->metadata = \\App::make('split_config')->experiment_for($this->name)['metadata'];\n }", "title": "" }, { "docid": "c326f8e1ac92c8e20d8d1e54cc926d15", "score": "0.41367602", "text": "public function add_meta($name, $value)\n {\n if ('' == trim($name) || '' == trim($value)) {\n return;\n }\n\n $this->metas[$name] = $value;\n }", "title": "" }, { "docid": "c67f57bc6d196c176f0a37191683a39b", "score": "0.4120243", "text": "function scanmusic($match = null, $now = null) {\n\tglobal $path, $id3;\n\t$list = shell_exec(\"find $path |grep .mp3\");\n\t$list = explode(\"\\n\", $list);\n\tif($now == null) $now = time();\n\n\techo \"\\nsearching for new music...\";\n\n\tforeach($list as $file) {\n\t\tif(empty($file)) continue;\n\t\t$filesql = mysql_real_escape_string($file);\n\n\t\tif($match != null)\n\t\t\tif(!strstr($filesql, $match))\n\t\t\t\tcontinue;\n\n\t\t// check to see if path already exists\n\t\t$result = mysql_query(\"SELECT ADDED FROM track WHERE PATH = \\\"$filesql\\\"\") or die(mysql_error());\n\t\tif(mysql_num_rows($result) > 0) continue;\n\n\t\t// try filling details with id3 tags\n\t\t$details = $id3->analyze($file);\n\t\tif(array_key_exists(\"error\", $details)) continue;\n\t\t$artist = mysql_real_escape_string($details[\"tags\"][\"id3v2\"][\"artist\"][0]);\n\t\t$album = mysql_real_escape_string($details[\"tags\"][\"id3v2\"][\"album\"][0]);\n\t\t$track = mysql_real_escape_string($details[\"tags\"][\"id3v2\"][\"title\"][0]);\n\t\t$length = round($details[\"playtime_seconds\"]+0);\n\n\t\techo \"\\nadding $artist - $album - $track\";\n\t\tmysql_query(\"INSERT INTO track VALUES (\\\"$artist\\\", \\\"$album\\\", \\\"$track\\\", $length, \\\"$file\\\", $now, 0)\") or die(mysql_error());\n\t}\n\n\techo \"\\ndone!\\n\\n\";\n}", "title": "" }, { "docid": "1e2d413d2c9f2d3955583df4069cd6b3", "score": "0.41143495", "text": "public function metadata($var = null);", "title": "" }, { "docid": "0437f00d1648f34407e5bad786d753ce", "score": "0.41122535", "text": "public function setMetadata($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Struct::class);\n $this->metadata = $var;\n\n return $this;\n }", "title": "" }, { "docid": "c3ed5a390f909cac86762fb498ae1397", "score": "0.41092727", "text": "public function addFilter(TokenFilter $filter)\n {\n $this->_filters[] = $filter;\n }", "title": "" }, { "docid": "817a57f953793e997b412490dc458ab3", "score": "0.41089758", "text": "function wcus_amp_filter_shortcode_podcast( $content ) {\n\tglobal $shortcode_tags;\n\tif ( ! is_amp_endpoint() || empty( $shortcode_tags ) || ! is_array( $shortcode_tags ) ) {\n\t\treturn $content;\n\t}\n\n\t$regex = get_shortcode_regex( array( 'podcast' ) );\n\tif ( ! $url = wcus_amp_get_shortcode_attr( $content, $regex, 'mp3' ) ) {\n\t\t// Strip out the shortcode to prevent errant output.\n\t\treturn preg_replace( \"/$regex/\", '', $content );\n\t}\n\n\t// AMP's amp-audio only supports https:// and //, so ensure we're not using http://.\n\t$url = str_replace( 'http:', '', $url );\n\t$url = trim( $url );\n\n\tob_start();\n\t?>\n\t<amp-audio width=\"auto\"\n\t height=\"50\"\n\t src=\"<?php echo esc_url( $url ); ?>\">\n\t\t<div fallback>\n\t\t\t<p><?php esc_html_e( 'Your browser doesn\\'t support HTML5 audio', 'wcus-amp' ); ?></p>\n\t\t</div>\n\t</amp-audio>\n\t<?php\n\t$amp_audio = ob_get_clean();\n\t$content = preg_replace( \"/$regex/\", $amp_audio, $content );\n\treturn $content;\n}", "title": "" }, { "docid": "4bf8d6aa8a304403dae5c5424885231e", "score": "0.4106138", "text": "private function setMetadata(array $metadata)\n {\n foreach($metadata as $key => &$partial) {\n $this->assertArrayOrScalar($partial, $key);\n }\n\n $this->metadata = new ArrayReader($metadata);\n }", "title": "" }, { "docid": "e6ee35c38eaba70f01d81f83bca5bb2c", "score": "0.4103736", "text": "public function create_meta($logger_log_file_id,$meta)\n {\n $feedname = \"$logger_log_file_id.meta\";\n \n $metafile = fopen($this->dir.$feedname, 'wb');\n \n if (!$metafile) {\n deb_log(\"PHPFIWA:create_meta could not open meta data file logger_log_file_id=\".$meta->logger_log_file_id,0);\n return false;\n }\n \n if (!flock($metafile, LOCK_EX)) {\n deb_log(\"PHPFiwa:create_meta meta file logger_log_file_id=\".$meta->logger_log_file_id.\" is locked by another process\",0);\n fclose($metafile);\n return false;\n }\n \n fwrite($metafile,pack(\"I\",$meta->logger_log_file_id));\n fwrite($metafile,pack(\"I\",$meta->start_time)); \n fwrite($metafile,pack(\"I\",$meta->nlayers));\n foreach ($meta->npoints as $n) fwrite($metafile,pack(\"I\",0)); // Legacy\n foreach ($meta->interval as $d) fwrite($metafile,pack(\"I\",$d));\n \n fclose($metafile);\n }", "title": "" }, { "docid": "b98a72573cc5dad5d961f96de5d557ec", "score": "0.4101726", "text": "function addMeta($name, $content) {\n $name = is_string($name) ? trim($name) : NULL;\n if (isset($name)) {\n $content = is_string($content) ? trim($content) : NULL;\n }\n if (isset($content)) {\n $this->meta[] = [$name => $content];\n }\n }", "title": "" }, { "docid": "f15067c16ce9699407ee6afa5a46b6e4", "score": "0.41016307", "text": "function annotate_song($song, $annotation, $textFile){\n\n\tif(file_exists($textFile)){\n\t\t$mySongsContents = file_get_contents($textFile);\n\t\t$unSerializedMySongs = unserialize($mySongsContents);\n\n\t\tif(!empty($unSerializedMySongs) && in_array($song, $unSerializedMySongs)){\n\t\t\t$index = array_search($song, $unSerializedMySongs);\n\t\t\t$unSerializedMySongs[$annotation] = $unSerializedMySongs[$index];\n\t\t\tunset($unSerializedMySongs[$index]);\n\n\t\t\t$serializedMySongs = serialize($unSerializedMySongs);\n\t\t\tfile_put_contents($textFile, $serializedMySongs);\n\t\t}\n\t\telse{\n\t\t\techo \"<p>Invalid Song: $song</p>\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4deb00cd9f9c089a2728b8c554a9d61f", "score": "0.4101191", "text": "private function addInputFilter() \n {\n $inputFilter = $this->getInputFilter(); \n \n // Add validation rules for the \"file\" field\t \n $inputFilter->add([\n 'type' => FileInput::class,\n 'name' => 'file',\n 'required' => true, \n 'validators' => [\n ['name' => 'FileUploadFile'],\n [\n 'name' => 'FileMimeType', \n 'options' => [ \n 'mimeType' => ['application/pdf']\n ]\n ],\n \n ],\n 'filters' => [ \n [\n 'name' => 'FileRenameUpload',\n 'options' => [ \n 'target'=>'/data/upload',\n 'useUploadName'=>true,\n 'useUploadExtension'=>true,\n 'overwrite'=>true,\n 'randomize'=>false\n ]\n ]\n ], \n ]); \n }", "title": "" }, { "docid": "09fbd688429893a5963f6673af40cf5f", "score": "0.40965173", "text": "public function setMetaData($value);", "title": "" }, { "docid": "583f871556d0011f06b0c437d0a05480", "score": "0.40920994", "text": "public function testFetchMetadata()\n {\n $this->markTestIncomplete('S3 doesn\\'t support storing metadata after an item is created.');\n }", "title": "" }, { "docid": "bdc820040977c609ac228fda8ba7b8b0", "score": "0.4091368", "text": "public function addFilter($filter = null)\n {\n $this->filters[] = $filter;\n\n return $this;\n }", "title": "" }, { "docid": "767d753d69b6c90b58e96abc125890a2", "score": "0.4090741", "text": "protected function setMetadata($metadata)\n {\n if ($metadata !== null && !($metadata instanceof Metadata)) {\n throw new \\InvalidArgumentException('$metadata must be instance of Metadata');\n }\n\n $this->metadata = $metadata;\n }", "title": "" }, { "docid": "94846c0e0be92ba323c26a2b29cb730c", "score": "0.40863433", "text": "protected function readMetadata(&$xmlArr, $filterName, $ruleName)\n {\n $this->objectName = $ruleName;\n $this->mode = isset($xmlArr[\"ATTRIBUTES\"][\"MODE\"]) ? $xmlArr[\"ATTRIBUTES\"][\"MODE\"] : \"DISABLED\";\n if(strtoupper($this->mode) == 'ENABLED' )\n {\n $this->rules \t= new MetaIterator($xmlArr[\"RULE\"],\t $ruleName.\"Rule\",\t$this);\n }\n }", "title": "" }, { "docid": "dc7a87ac13ad963990de1bac9dde86af", "score": "0.40855506", "text": "public function testSave1(): void\n {\n $tmp = tempnam(sys_get_temp_dir(), \"meta-audio-ape-\");\n copy(__DIR__ . \"/../data/no-tags.mp3\", $tmp);\n\n $module = $this->getModule($tmp);\n\n $module\n ->setArtist(\"architects\")\n ->setAlbum(\"lost forever // lost together\")\n ->setTitle(\"naysayer\")\n ->setTrackNumber(2)\n ->setYear(2014)\n ->save();\n\n assertFileEquals(__DIR__ . \"/../data/ape-only.mp3\", $tmp);\n unlink($tmp);\n }", "title": "" }, { "docid": "df3b4edfcba55adf6a045fab2b045c1e", "score": "0.40845722", "text": "function addFilter(Filter $filter) {\r\n\t\t\tarray_push($this->filterArray,$filter);\r\n\t\t\t$this->tLog->debug('Filter added...'.$filter->toString());\r\n\t\t}", "title": "" }, { "docid": "7dcd1303c6cb8afeab5f3e2da6435d30", "score": "0.40844274", "text": "public function tagList(DataEvent $event)\n {\n if ('AppBundle\\Entity\\Media' !== $event->getResource()->getEntityClass()) {\n return;\n }\n\n $queryString = [];\n parse_str($this->requestStack->getMasterRequest()->getQueryString(), $queryString);\n\n if (!isset($queryString['_trigger_update'])) {\n return;\n }\n\n /** @var Paginator $items */\n $items = $event->getData();\n $entityManager = $this->doctrine->getManager();\n $artistRepo = $entityManager->getRepository('AppBundle\\Entity\\Artist');\n\n foreach ($items->getIterator() as $media) {\n /* @var Media $media */\n $this->mediainfo->read($media->getFullPath());\n if ($media->isUntaged()) {\n $media\n ->setTitle($this->mediainfo->getTitle())\n ->setArtist($this->mediainfo->getArtist())\n ->setBpm($this->mediainfo->getBpm())\n ->setYear($this->mediainfo->getYear())\n ;\n\n if ($this->mediainfo->getGenres()) {\n $genres = (array) $this->mediainfo->getGenres();\n foreach ($genres as $genre) {\n if (!$genre) {\n continue;\n }\n\n $existGenre = $this->genreRepo->findOneBy(['name' => $genre]);\n if ($existGenre) {\n $media->addGenre($existGenre);\n continue;\n }\n $genre = new Genre($genre);\n $entityManager->persist($genre);\n $entityManager->flush();\n $media->addGenre($genre);\n }\n }\n if ($artists = $this->mediainfo->getArtists()) {\n foreach ($artists as $artist) {\n if (!$artist) {\n continue;\n }\n $existArtist = $artistRepo->findOneBy(['name' => $artist]);\n if ($existArtist) {\n $media->addArtist($existArtist);\n continue;\n }\n $artist = new Artist($artist);\n\n $entityManager->persist($artist);\n $entityManager->flush();\n $media->addArtist($artist);\n }\n }\n $media->setTagged(true);\n $entityManager->persist($media);\n }\n }\n\n $entityManager->flush();\n }", "title": "" }, { "docid": "efb8935890ab7562596869fb07285ab4", "score": "0.40825632", "text": "function setMetaData($data);", "title": "" }, { "docid": "429035d6ed26f42bfb7d493574415657", "score": "0.4080287", "text": "public function addFilter($filter) {\n\t\treturn $this->_loadFilter($filter);\n\t}", "title": "" }, { "docid": "68e7a7be309f45a1fc364d4ebe0a9afa", "score": "0.40669537", "text": "public function setFilter()\n {\n touch(\"{$this->tempDir}/file.txt\");\n touch(\"{$this->tempDir}/file.csv\");\n touch(\"{$this->tempDir}/file.html\");\n\n $collection = new Collection($this->tempDir, new ExtensionFilter('csv'));\n $actual = array();\n foreach ($collection as $item) {\n $actual[] = $item->getFilename();\n }\n\n $this->assertSame(array('file.csv'), $actual);\n\n $actual = array();\n foreach ($collection->setFilter(new ExtensionFilter('html')) as $item) {\n $actual[] = $item->getFilename();\n }\n\n $this->assertSame(array('file.html'), $actual);\n }", "title": "" }, { "docid": "7e1f7632e855ecbe385d111665484376", "score": "0.4063953", "text": "function emaudio_reverbnation_audio($embed, $width, $height, $field, $item, $node, $autoplay) {\n// is set???\n $item['data'] = array_merge($item['data'], get_player_parameters($width, $height));\n\n return theme('emaudio_reverbnation_flash', $item, $embed, $width, $height, $autoplay);\n}", "title": "" }, { "docid": "b3720200c60f9148c71a826178bdc9cf", "score": "0.406", "text": "public function testFetchMetadata()\n {\n $this->markTestIncomplete('FileSystem doesn\\'t support writable metadata.');\n }", "title": "" }, { "docid": "3630291f2a04253543824ca47d880937", "score": "0.40595037", "text": "public function storeUpload($name, $metadata){}", "title": "" }, { "docid": "50d1389629cf5fbcee2a3ffc4b4bc090", "score": "0.40562794", "text": "public function addFile($filename) {\n\t\t$this->_media[] = $filename;\n\t}", "title": "" }, { "docid": "20ec4c5d4c400b7b289136d4006d4cff", "score": "0.40553656", "text": "public function addName()\n {\n if (!isset($this->filePond['name'])) {\n $this->filePond['name'] = 'File[file]';\n }\n }", "title": "" }, { "docid": "b65aead6e1c57776a101b9173150fc13", "score": "0.40422913", "text": "public function add_meta_data_to_whole_library( $args, $assoc_args ){\n if( isset( $assoc_args['dry-run'] ) ){\n $dryrun = true;\n WP_CLI::warning( \"This is a dry run, nothing will be saved to the database!\" );\n\n }else{\n $dryrun = false;\n }\n\n // Create the logger\n // $logger = new Logger( 'move_wp_media_library_to_s3' );\n //\n // $uploads_directory = wp_upload_dir();\n // $logger->pushHandler(new StreamHandler( $uploads_directory['basedir'] .'/move_wp_media_library_to_s3.log', Logger::DEBUG));\n // $logger->info( '-------- Order placed --------' );\n // $logger->info( 'Order ID: ' . $order_id );\n // // $logger->info( 'Merge fields: ', $merge_fields );\n // $logger->info( 'Timestamp: '. $date->getTimestamp() );\n\n $files = $this->get_files_with_no_meta_data();\n\n // Get offload\n $offload_options = get_option('tantan_wordpress_s3');\n\n if( empty( $offload_options ) ){\n WP_CLI::error( \"Options for 'wp-offload-s3' can't be found. Please make sure it's configured before trying again.\" );\n }\n\n if( $offload_options['region'] == \"\" ){\n WP_CLI::error( \"No region selected.\" );\n }\n\n if( $offload_options['bucket'] == \"\" ){\n WP_CLI::error( \"No bucket selected.\" );\n }\n\n // if( $options != null && $options['bucket'] != '' && $options['object-prefix'] != '' && $options['region'] != '' ){\n if( $files != false ){\n\n foreach( $files as $post ){\n\n $media_url = str_replace( get_bloginfo('url').'/', '', $post->guid );\n\n $data = array(\n 'region' => $offload_options['region'],\n 'bucket' => $offload_options['bucket'],\n 'key' => $media_url,\n );\n\n WP_CLI::success( \"Added meta to attachment with ID: \" . $post->ID );\n\n if( $dryrun != true ){\n update_post_meta( $post->ID, 'amazonS3_info', $data );\n }\n\n }\n\n }else{\n\n WP_CLI::success( \"No files found! Everything is up to date 🙂\" );\n\n }\n\n }", "title": "" }, { "docid": "2560b8178e77130da28a55bac849bce5", "score": "0.40371016", "text": "function process_metadata(&$metadata) {\n global $webrooturl;\n if (!empty($metadata['type'])) { // if there's a type, how to handle?\n switch ($metadata['type']) {\n case 'link': // wrap the title in an anchor tag, manipulate webshot\n $metadata['title'] = '<a href=\"' . $metadata['url'] . '\">' . $metadata['title_text'] . '</a>';\n $metadata['image_url'] = make_webshot($metadata['url'], $metadata['posted']);\n $metadata['post_content'] = '<div class=\"webshot\"><a href=\"' . $metadata['url'] . '\"><img src=\"' . $metadata['image_url'] . '\"></a></div><!-- webshot -->';\n break;\n case 'quote': // pre and post with a div\n $metadata['pre_content'] = '<div class=\"quote\">';\n $metadata['post_content'] = '</div><!-- quote -->';\n break;\n case 'image': // add image to pre-content\n $metadata['image_url'] = cache_image($metadata['url'], $metadata['posted']);\n if (isset($metadata['source'])) { // we've got a source, link it\n $metadata['pre_content'] = '<div class=\"image\"><a href=\"' . $metadata['source'] . '\"><img src=\"' . $metadata['image_url'] . '\"></a></div><!-- image -->';\n }\n else {\n $metadata['pre_content'] = '<div class=\"image\"><img src=\"' . $metadata['image_url'] . '\"></div><!-- image -->';\n } // endifelse source\n break;\n case 'video': // get thumbnail, add embed\n $metadata['image_url'] = get_video_thumbnail($metadata['url'], $metadata['posted']);\n $metadata['pre_content'] = '<div class=\"image\"><img src=\"' . $metadata['image_url'] . '\"></div><!-- image -->';\n $metadata['post_content'] = '<div class=\"embed\">' . make_video_embed($metadata['url']) . '</div><!-- embed -->';\n default:\n break;\n } // endswitch type\n } // endif type\n else { // no type, we'll set it to 'unknown'\n $metadata['type'] = 'unknown';\n } // endifelse type\n\n if (!empty($metadata['source'])) { // Add source and original list to post-content\n $metadata['post_content'] .= '<ul class=\"sources\">';\n $metadata['post_content'] .= '<li><a class=\"source\" href=\"' . $metadata['source'] . '\">(source)</a>';\n $metadata['post_content'] .= isset($metadata['url']) ? '<li><a class=\"original\" href=\"' . $metadata['url'] . '\">(view original)</a>' : '';\n $metadata['post_content'] .= '</ul><!-- sources -->';\n }\n\n // make tags_ul\n $metadata['tags_ul'] = '<ul class=\"tags\">';\n foreach ($metadata['tags'] as $tag) {\n $metadata['tags_ul'] .= '<li><a href=\"' . $webrooturl . '/tags/' . $tag . '.html\">' . $tag . '</a>';\n }\n $metadata['tags_ul'] .= '</ul><!-- tags -->';\n\n return $metadata;\n}", "title": "" }, { "docid": "43dd658c7effd5d818f968c9c223f2dc", "score": "0.4033485", "text": "public function setMetadata(?array $metadata): void\n {\n $this->metadata['value'] = $metadata;\n }", "title": "" }, { "docid": "2f49836a654596c482b358bd9da5f87a", "score": "0.40240484", "text": "protected function AddMediaFilter($query)\n {\n $oGlobal = TGlobal::instance();\n $sAllowedFileTypes = $oGlobal->GetUserData('sAllowedFileTypes');\n if (!is_null($sAllowedFileTypes) && !empty($sAllowedFileTypes)) {\n $sQuery = '';\n $aAllowedFileTypes = explode(',', $sAllowedFileTypes);\n for ($i = 0; $i < count($aAllowedFileTypes); ++$i) {\n if (0 == $i) {\n $sOr = '';\n } else {\n $sOr = ' OR ';\n }\n\n $sQuery .= $sOr.'`file_extension`='.\"'\".MySqlLegacySupport::getInstance()->real_escape_string(strtolower(trim($aAllowedFileTypes[$i]))).\"'\";\n }\n $oAllowedFileTypes = TdbCmsFiletypeList::GetList();\n $oAllowedFileTypes->AddFilterString($sQuery);\n $bIsFirstTime = true;\n if ($oAllowedFileTypes->Length() > 0) {\n while ($oAllowedFileTyp = $oAllowedFileTypes->Next()) {\n if ($bIsFirstTime) {\n $sOr = 'AND (';\n $bIsFirstTime = false;\n } else {\n $sOr = ' OR ';\n }\n $query .= $sOr.'`cms_media`.`cms_filetype_id`='.\"'\".MySqlLegacySupport::getInstance()->real_escape_string($oAllowedFileTyp->id).\"'\";\n }\n $query .= ' OR `cms_media`.`external_embed_code` != \\'\\' )';\n }\n }\n\n return $query;\n }", "title": "" }, { "docid": "8adf00f7bd0b6dfbc9f9da4fe6fb4d8b", "score": "0.40232116", "text": "public function addActionFilter(IActionFilter $filter);", "title": "" }, { "docid": "eed607d06e76932591fae85b91050af5", "score": "0.40227315", "text": "function remove_variation_metadata($value, $term_id, $taxonomy, $context) {\n return preg_replace('/^Metadata: ?([\\d\\w_\\-]+?) ?= ?([\\d\\w_\\-,]+?)[\\r\\n]*/','',$value);\n }", "title": "" }, { "docid": "5ba569ea14e01ac4287635de7dbda004", "score": "0.40176985", "text": "public function emit ($filter='*')\n {\n if ($this->contents_index < $this->size) {\n $file = $this->contents[$this->contents_index]['name'];\n $path = $this->contents[$this->contents_index]['path'];\n $this->contents_index++;\n\n if ($this->glob ($file, $filter)) {\n switch (filetype ($path)) {\n case 'file': return new File ($path); break;\n case 'dir': return new Dir ($path); break;\n }\n }\n\n return $this->emit ($filter);\n }\n\n return false;\n }", "title": "" }, { "docid": "ae6c290fe42d1319c203b016060dca32", "score": "0.40160018", "text": "function makestaticfeed($addstring,$filename) {\n\n $GetQuery = $GLOBALS['settings']['url'].\"/podcast.php\".$addstring;\n $fp = fopen($GetQuery, 'r');\n $contents = '';\n while (!feof($fp)) {\n $contents .= fread($fp, 512);\n }\n\n fclose($fp);\n $fp = fopen($GLOBALS['audiopath'].$filename, 'w');\n fwrite($fp, $contents, strlen($contents) );\n fclose($fp);\n\n}", "title": "" }, { "docid": "0ca6e80ce2818a578b46dc8924442522", "score": "0.4011939", "text": "function get_metadata($file) {\n global $outputdir;\n global $webrooturl;\n $contents = file($file, FILE_IGNORE_NEW_LINES); // whole file is in array by line\n $add_to_metadata = FALSE;\n for ($a = 0; $a < count($contents); $a++) {\n if ($contents[$a] == '-->') { // end of metadata\n $add_to_metadata = FALSE;\n break;\n }\n if ($add_to_metadata) {\n $lines[] = $contents[$a];\n }\n if ($contents[$a] == '<!-- METADATA') { // start of metadata\n $add_to_metadata = TRUE;\n }\n } // endfor looping through file\n foreach ($lines as $line) {\n $data = preg_split('/: /', $line); // split on [colon][space]\n $key = strtolower($data[0]);\n if ($key == 'tags') { // expand tags\n $tags = explode(',', $data[1]);\n array_walk($tags, create_function('&$text', '$text = trim($text);'));\n $metadata['tags'] = $tags;\n }\n else {\n $metadata[$key] = $data[1];\n }\n } //endforeach looping through metadata\n\n // right now, they're the same, but process_metadata() could change that.\n $metadata['title_text'] = strtr($metadata['title'], array('$' => '&#36;'));\n\n // now add stuff we can get from the file itself\n $metadata['infile'] = $file;\n $metadata['filename'] = pathinfo($file, PATHINFO_FILENAME);\n $metadata['outfile_uri'] = $metadata['filename'] . '.html';\n $metadata['outfile_path'] = $outputdir . '/' . $metadata['outfile_uri'];\n\n // posted becomes date, unless there's no date\n $metadata['posted'] = empty($metadata['date']) ? filemtime($file) : $metadata['date'];\n\n // just going to add these, to get rid of potental E_ stuff later\n $metadata['pre_content'] = '';\n $metadata['post_content'] = '';\n\n return process_metadata($metadata);\n}", "title": "" }, { "docid": "10a08c52e53f99db886e74bb8dfd1868", "score": "0.40114492", "text": "public function addFilter($filter, $params=array())\n {\n if (!empty($filter))\n $this->m_filters[] = array('filter' => $filter, 'params' => $params);\n }", "title": "" }, { "docid": "b28036ffdf70894fba90e697d0b169ca", "score": "0.40076932", "text": "public function testCaptionFilter() {\n $manager = $this->container->get('plugin.manager.filter');\n $bag = new FilterPluginCollection($manager, []);\n $filter = $bag->get('filter_caption');\n\n $renderer = $this->container->get('renderer');\n\n $test = function ($input) use ($filter, $renderer) {\n return $renderer->executeInRenderContext(new RenderContext(), function () use ($input, $filter) {\n return $filter->process($input, 'und');\n });\n };\n\n // No data-caption attribute.\n $input = '<img src=\"llama.jpg\" />';\n $expected = $input;\n $this->assertEquals($expected, $test($input)->getProcessedText());\n\n // Data-caption attribute.\n $input = '<img src=\"llama.jpg\" data-caption=\"Loquacious llama!\" />';\n $expected = '<img src=\"llama.jpg\" /><figcaption>Loquacious llama!</figcaption>';\n $output = $test($input)->getProcessedText();\n $this->assertStringContainsString($expected, $output);\n $this->assertStringContainsString(\"<!-- THEME HOOK: 'filter_caption' -->\", $output);\n }", "title": "" }, { "docid": "a66e12ee64e1b53cf9398de7a14c48f1", "score": "0.40074947", "text": "public function putFilter($query, $name, $uuid = NULL, array $metadata = []) {\n $data = [\n 'name' => $name,\n 'data' => [\n 'query' => $query,\n ],\n 'metadata' => (object) $metadata,\n ];\n if (!empty($uuid)) {\n $data['uuid'] = $uuid;\n }\n $options = ['body' => json_encode($data)];\n\n return self::getResponseJson($this->put('filters', $options));\n }", "title": "" }, { "docid": "18a18457791a3a594f2d8f3aff8e67c8", "score": "0.40071246", "text": "function metadata(){\r\n\t\tglobal $mainframe, $option;\r\n\r\n\t\t// if rsg2 isn't the component being displayed, don not append meta data\r\n\t\tif( $option != 'com_rsgallery2' )\r\n\t\t\treturn;\r\n\r\n\t\t$mainframe->setPageTitle( ' '. $this->gallery->get('name') );\r\n\t\t$mainframe->appendMetaTag( 'description', htmlspecialchars(strip_tags($this->gallery->get('description')),ENT_QUOTES) );\r\n\t}", "title": "" }, { "docid": "63e45976502d569845f67aaa43b961c1", "score": "0.40052277", "text": "public function storeTemporaryAudio (Audio $audio)\n {\n $json = $this->storeGenericMedia(MediaType::AUDIO, false, $audio);\n\n return (new Uploaded\\Audio($json->media_id))\n ->withExpiresDate($this->createExpiryDate($json->created_at));\n }", "title": "" }, { "docid": "635b3bae8709ed057b0a79d31540e705", "score": "0.40038943", "text": "function put_photoshop_file_info( $jpeg_header_data, $new_ps_file_info_array, $Old_Exif_array, $Old_XMP_array, $Old_IRB_array )\r\n{\r\n /*******************************************/\r\n // PREPROCESSING\r\n\r\n // Check that the date is in the correct format (YYYY-MM-DD)\r\n\r\n // Explode the date into pieces using the - symbol\r\n $date_pieces = explode( \"-\", $new_ps_file_info_array[ 'date' ] );\r\n\r\n // If there are not 3 pieces to the date, it is invalid\r\n if ( count( $date_pieces ) != 3 )\r\n {\r\n // INVALID DATE\r\n echo \"Invalid Date - must be YYYY-MM-DD format<br>\";\r\n return FALSE;\r\n }\r\n\r\n // Cycle through each piece of the date\r\n foreach( $date_pieces as $piece )\r\n {\r\n // If the piece is not numeric, then the date is invalid.\r\n if ( ! is_numeric( $piece ) )\r\n {\r\n // INVALID DATE\r\n echo \"Invalid Date - must be YYYY-MM-DD format<br>\";\r\n return FALSE;\r\n }\r\n }\r\n\r\n // Make a unix timestamp at midnight on the date specified\r\n $date_stamp = mktime( 0,0,0, $date_pieces[1], $date_pieces[2], $date_pieces[0] );\r\n\r\n\r\n\r\n\r\n // Create a translation table to remove carriage return characters\r\n $trans = array( \"\\x0d\" => \"\" );\r\n\r\n // Cycle through each of the File Info elements\r\n foreach( $new_ps_file_info_array as $valkey => $val )\r\n {\r\n // If the element is 'Keywords' or 'Supplemental Categories', then\r\n // it is an array, and needs to be treated as one\r\n if ( ( $valkey != 'supplementalcategories' ) && ( $valkey != 'keywords' ) )\r\n {\r\n // Not Keywords or Supplemental Categories\r\n // Convert escaped HTML characters to UTF8 and remove carriage returns\r\n $new_ps_file_info_array[ $valkey ] = strtr( HTML_UTF8_UnEscape( $val ), $trans );\r\n }\r\n else\r\n {\r\n // Either Keywords or Supplemental Categories\r\n // Cycle through the array,\r\n foreach( $val as $subvalkey => $subval )\r\n {\r\n // Convert escaped HTML characters to UTF8 and remove carriage returns\r\n $new_ps_file_info_array[ $valkey ][ $subvalkey ] = strtr( HTML_UTF8_UnEscape( $subval ), $trans );\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n\r\n /*******************************************/\r\n\r\n // EXIF Processing\r\n\r\n\r\n // Check if the EXIF array exists\r\n if( $Old_Exif_array == FALSE )\r\n {\r\n // EXIF Array doesn't exist - create a new one\r\n $new_Exif_array = array ( 'Byte_Align' => \"MM\",\r\n 'Makernote_Tag' => false,\r\n 'Tags Name' => \"TIFF\",\r\n 0 => array( \"Tags Name\" => \"TIFF\" ) );\r\n }\r\n else\r\n {\r\n // EXIF Array Does Exist - use it\r\n $new_Exif_array = $Old_Exif_array;\r\n }\r\n\r\n\r\n\r\n // Update the EXIF Image Description Tag with the new value\r\n $new_Exif_array[0][270] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 270 ]['Name'],\r\n \"Tag Number\" => 270,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 270 ]['Type'],\r\n \"Data\" => array( HTML_UTF8_Escape( $new_ps_file_info_array[ 'caption' ]) ));\r\n\r\n // Update the EXIF Artist Name Tag with the new value\r\n $new_Exif_array[0][315] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 315 ]['Name'],\r\n \"Tag Number\" => 315,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 315 ]['Type'],\r\n \"Data\" => array( HTML_UTF8_Escape( $new_ps_file_info_array[ 'author' ] ) ) );\r\n\r\n // Update the EXIF Copyright Information Tag with the new value\r\n $new_Exif_array[0][33432] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 33432 ]['Name'],\r\n \"Tag Number\" => 33432,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 33432 ]['Type'],\r\n \"Data\" => array( HTML_UTF8_Escape( $new_ps_file_info_array[ 'copyrightnotice' ]) ) );\r\n\r\n\r\n // Photoshop checks if the \"Date and Time of Original\" and \"Date and Time when Digitized\" tags exist\r\n // If they don't exist, it means that the EXIF date may be wiped out if it is changed, so Photoshop\r\n // copies the EXIF date to these two tags\r\n\r\n if ( ( array_key_exists( 306, $new_Exif_array[0] ) )&&\r\n ( array_key_exists( 34665, $new_Exif_array[0] ) ) &&\r\n ( array_key_exists( 0, $new_Exif_array[0][34665] ) ) )\r\n {\r\n // Replace \"Date and Time of Original\" if it doesn't exist\r\n if ( ! array_key_exists( 36867, $new_Exif_array[0][34665][0] ) )\r\n {\r\n $new_Exif_array[0][34665][0][36867] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['EXIF'][ 36867 ]['Name'],\r\n \"Tag Number\" => 36867,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['EXIF'][ 36867 ]['Type'],\r\n \"Data\" => $new_Exif_array[0][306]['Data'] );\r\n }\r\n\r\n // Replace \"Date and Time when Digitized\" if it doesn't exist\r\n if ( ! array_key_exists( 36868, $new_Exif_array[0][34665][0] ) )\r\n {\r\n $new_Exif_array[0][34665][0][36868] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['EXIF'][ 36868 ]['Name'],\r\n \"Tag Number\" => 36868,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['EXIF'][ 36868 ]['Type'],\r\n \"Data\" => $new_Exif_array[0][306]['Data'] );\r\n }\r\n }\r\n\r\n\r\n // Photoshop changes the EXIF date Tag (306) to the current date, not the date that was entered in File Info\r\n $exif_date = date ( \"Y:m:d H:i:s\" );\r\n\r\n // Update the EXIF Date and Time Tag with the new value\r\n $new_Exif_array[0][306] = array ( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 306 ]['Name'],\r\n \"Tag Number\" => 306,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 306 ]['Type'],\r\n \"Data\" => array( $exif_date ) );\r\n\r\n\r\n\r\n // Photoshop replaces the EXIF Software or Firmware Tag with \"Adobe Photoshop ...\"\r\n // This toolkit instead preserves existing value and appends the toolkit name to the end of it\r\n\r\n // Check if the EXIF Software or Firmware Tag exists\r\n if ( array_key_exists( 305, $new_Exif_array[0] ) )\r\n {\r\n // An existing EXIF Software or Firmware Tag was found\r\n // Check if the existing Software or Firmware Tag already contains the Toolkit's name\r\n if ( stristr ( $new_Exif_array[0][305]['Data'][0], $GLOBALS['Software Name']) == FALSE )\r\n {\r\n // Toolkit Name string not found in the existing Software/Firmware string - append it.\r\n $firmware_str = $new_Exif_array[0][305]['Data'][0] . \" \" . $GLOBALS['Software Name'];\r\n }\r\n else\r\n {\r\n // Toolkit name already exists in Software/Firmware string - don't put another copy in the string\r\n $firmware_str = $new_Exif_array[0][305]['Data'][0];\r\n }\r\n }\r\n else\r\n {\r\n // No Software/Firmware string exists - create one\r\n $firmware_str = $GLOBALS['Software Name'];\r\n }\r\n\r\n // Update the EXIF Software/Firmware Tag with the new value\r\n $new_Exif_array[0][305] = array( \"Tag Name\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 305 ]['Name'],\r\n \"Tag Number\" => 305,\r\n \"Data Type\" => 2,\r\n \"Type\" => $GLOBALS['IFD_Tag_Definitions']['TIFF'][ 305 ]['Type'],\r\n \"Data\" => array( HTML_UTF8_Escape( $firmware_str ) ) );\r\n\r\n\r\n\r\n\r\n\r\n /*******************************************/\r\n\r\n // Photoshop IRB Processing\r\n\r\n\r\n // Check if there is an existing Photoshop IRB array\r\n if ($Old_IRB_array == FALSE )\r\n {\r\n // No existing IRB array - create one\r\n $new_IRB_array = array();\r\n }\r\n else\r\n {\r\n // There is an existing Photoshop IRB array - use it\r\n $new_IRB_array = $Old_IRB_array;\r\n }\r\n\r\n // Remove any existing Copyright Flag, URL, or IPTC resources - these will be re-written\r\n foreach( $new_IRB_array as $resno => $res )\r\n {\r\n if ( ( $res[ 'ResID' ] == 0x040A ) ||\r\n ( $res[ 'ResID' ] == 0x040B ) ||\r\n ( $res[ 'ResID' ] == 0x0404 ) )\r\n {\r\n array_splice( $new_IRB_array, $resno, 1 );\r\n }\r\n }\r\n\r\n\r\n // Add a new Copyright Flag resource\r\n if ( $new_ps_file_info_array[ 'copyrightstatus' ] == \"Copyrighted Work\" )\r\n {\r\n $PS_copyright_flag = \"\\x01\"; // Copyrighted\r\n }\r\n else\r\n {\r\n $PS_copyright_flag = \"\\x00\"; // Public domain or Unmarked\r\n }\r\n $new_IRB_array[] = array( 'ResID' => 0x040A,\r\n 'ResName' => $GLOBALS['Photoshop_ID_Names'][0x040A],\r\n 'ResDesc' => $GLOBALS['Photoshop_ID_Descriptions'][0x040A],\r\n 'ResEmbeddedName' => \"\",\r\n 'ResData' => $PS_copyright_flag );\r\n\r\n\r\n\r\n // Add a new URL resource\r\n $new_IRB_array[] = array( 'ResID' => 0x040B,\r\n 'ResName' => $GLOBALS['Photoshop_ID_Names'][0x040B],\r\n 'ResDesc' => $GLOBALS['Photoshop_ID_Descriptions'][0x040B],\r\n 'ResEmbeddedName' => \"\",\r\n 'ResData' => $new_ps_file_info_array[ 'ownerurl' ] );\r\n\r\n\r\n\r\n // Create IPTC resource\r\n\r\n // IPTC requires date to be in the following format YYYYMMDD\r\n $iptc_date = date( \"Ymd\", $date_stamp );\r\n\r\n // Create the new IPTC array\r\n $new_IPTC_array = array (\r\n 0 =>\r\n array (\r\n 'IPTC_Type' => '2:00',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:00'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:00'],\r\n 'RecData' => \"\\x00\\x02\",\r\n ),\r\n 1 =>\r\n array (\r\n 'IPTC_Type' => '2:120',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:120'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:120'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'caption' ] ), 0 , 2000 ),\r\n ),\r\n 2 =>\r\n array (\r\n 'IPTC_Type' => '2:122',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:122'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:122'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'captionwriter' ] ), 0 , 32 ),\r\n ),\r\n 3 =>\r\n array (\r\n 'IPTC_Type' => '2:105',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:105'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:105'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'headline' ] ), 0 , 256 ),\r\n ),\r\n 4 =>\r\n array (\r\n 'IPTC_Type' => '2:40',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:40'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:40'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'instructions' ] ), 0, 256 ),\r\n ),\r\n 5 =>\r\n array (\r\n 'IPTC_Type' => '2:80',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:80'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:80'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'author' ] ), 0, 32 ),\r\n ),\r\n 6 =>\r\n array (\r\n 'IPTC_Type' => '2:85',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:85'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:85'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'authorsposition' ] ), 0, 32 ),\r\n ),\r\n 7 =>\r\n array (\r\n 'IPTC_Type' => '2:110',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:110'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:110'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'credit' ] ), 0, 32 ),\r\n ),\r\n 8 =>\r\n array (\r\n 'IPTC_Type' => '2:115',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:115'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:115'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'source' ] ), 0, 32 ),\r\n ),\r\n 9 =>\r\n array (\r\n 'IPTC_Type' => '2:05',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:05'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:05'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'title' ] ), 0, 64 ),\r\n ),\r\n 10 =>\r\n array (\r\n 'IPTC_Type' => '2:55',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:55'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:55'],\r\n 'RecData' => \"$iptc_date\",\r\n ),\r\n 11 =>\r\n array (\r\n 'IPTC_Type' => '2:90',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:90'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:90'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'city' ] ), 0, 32 ),\r\n ),\r\n 12 =>\r\n array (\r\n 'IPTC_Type' => '2:95',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:95'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:95'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'state' ] ), 0, 32 ),\r\n ),\r\n 13 =>\r\n array (\r\n 'IPTC_Type' => '2:101',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:101'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:101'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'country' ] ), 0, 64 ),\r\n ),\r\n 14 =>\r\n array (\r\n 'IPTC_Type' => '2:103',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:103'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:103'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'transmissionreference' ] ), 0, 32 ),\r\n ),\r\n 15 =>\r\n array (\r\n 'IPTC_Type' => '2:15',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:15'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:15'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'category' ] ), 0, 3 ),\r\n ),\r\n 21 =>\r\n array (\r\n 'IPTC_Type' => '2:116',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:10'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:10'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'copyrightnotice' ] ), 0, 128 ),\r\n ),\r\n );\r\n\r\n // Check the value of urgency is valid\r\n if ( ( $new_ps_file_info_array[ 'urgency' ] > 0 ) && ( $new_ps_file_info_array[ 'urgency' ] < 9 ) )\r\n {\r\n // Add the Urgency item to the IPTC array\r\n $new_IPTC_array[] = array (\r\n 'IPTC_Type' => '2:10',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:10'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:10'],\r\n 'RecData' => substr( HTML_UTF8_Escape( $new_ps_file_info_array[ 'urgency' ] ), 0, 1 ),\r\n );\r\n }\r\n\r\n // Cycle through the Supplemental Categories,\r\n foreach( $new_ps_file_info_array[ 'supplementalcategories' ] as $supcat )\r\n {\r\n // Add this Supplemental Category to the IPTC array\r\n $new_IPTC_array[] = array (\r\n 'IPTC_Type' => '2:20',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:20'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:20'],\r\n 'RecData' => HTML_UTF8_Escape( $supcat ),\r\n );\r\n }\r\n\r\n\r\n // Cycle through the Keywords,\r\n foreach( $new_ps_file_info_array[ 'keywords' ] as $keyword )\r\n {\r\n // Add this Keyword to the IPTC array\r\n $new_IPTC_array[] = array (\r\n 'IPTC_Type' => '2:25',\r\n 'RecName' => $GLOBALS['IPTC_Entry_Names']['2:25'],\r\n 'RecDesc' => $GLOBALS['IPTC_Entry_Descriptions']['2:25'],\r\n 'RecData' => $keyword,\r\n );\r\n }\r\n\r\n\r\n /***********************************/\r\n\r\n // XMP Processing\r\n\r\n // Check if XMP existed previously\r\n if ($Old_XMP_array == FALSE )\r\n {\r\n // XMP didn't exist - create a new one based on a blank structure\r\n $new_XMP_array = XMP_Check( $GLOBALS[ 'Blank XMP Structure' ], array( ) );\r\n }\r\n else\r\n {\r\n // XMP does exist\r\n // Some old XMP processors used x:xapmeta, check for this\r\n if ( $Old_XMP_array[0]['tag'] == 'x:xapmeta' )\r\n {\r\n // x:xapmeta found - change it to x:xmpmeta\r\n $Old_XMP_array[0]['tag'] = 'x:xmpmeta';\r\n }\r\n\r\n // Ensure that the existing XMP has all required fields, and add any that are missing\r\n $new_XMP_array = XMP_Check( $GLOBALS[ 'Blank XMP Structure' ], $Old_XMP_array );\r\n }\r\n\r\n\r\n // Process the XMP Photoshop block\r\n\r\n // Find the Photoshop Information within the XMP block\r\n $photoshop_block = & find_XMP_block( $new_XMP_array, \"photoshop\" );\r\n\r\n // The Photoshop CaptionWriter tag contains captionwriter - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:CaptionWriter\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'captionwriter' ];\r\n\r\n // The Photoshop Category tag contains category - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Category\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'category' ];\r\n\r\n // The Photoshop DateCreated tag contains date - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:DateCreated\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'date' ];\r\n\r\n // The Photoshop City tag contains city - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:City\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'city' ];\r\n\r\n // The Photoshop State tag contains state - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:State\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'state' ];\r\n\r\n // The Photoshop Country tag contains country - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Country\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'country' ];\r\n\r\n // The Photoshop AuthorsPosition tag contains authorsposition - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:AuthorsPosition\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'authorsposition' ];\r\n\r\n // The Photoshop Credit tag contains credit - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Credit\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'credit' ];\r\n\r\n // The Photoshop Source tag contains source - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Source\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'source' ];\r\n\r\n // The Photoshop Headline tag contains headline - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Headline\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'headline' ];\r\n\r\n // The Photoshop Instructions tag contains instructions - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Instructions\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'instructions' ];\r\n\r\n // The Photoshop TransmissionReference tag contains transmissionreference - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:TransmissionReference\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'transmissionreference' ];\r\n\r\n // The Photoshop Urgency tag contains urgency - Find it and Update the value\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:Urgency\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'urgency' ];\r\n\r\n // The Photoshop SupplementalCategories tag contains supplementalcategories - Find it\r\n $Item = & find_XMP_item( $photoshop_block, \"photoshop:SupplementalCategories\" );\r\n\r\n // Create an array to receive the XML list items for the Supplemental Categories\r\n $new_supcat_array = array( );\r\n\r\n // Cycle through the Supplemental Categories\r\n foreach ( $new_ps_file_info_array[ 'supplementalcategories' ] as $sup_category )\r\n {\r\n // Add a new list item for this Supplemental Category\r\n $new_supcat_array[] = array( 'tag' => 'rdf:li', 'value' => $sup_category );\r\n }\r\n\r\n // Add the array of Supplemental Category List Items to the Photoshop SupplementalCategories tag\r\n $Item[ 'children' ][ 0 ][ 'children' ] = $new_supcat_array;\r\n\r\n\r\n\r\n // Process the XMP XAP block\r\n\r\n // Find the XAP Information within the XMP block\r\n $XAP_block = & find_XMP_block( $new_XMP_array, \"xap\" );\r\n\r\n // The XAP CreateDate tag contains date XMP was first created - Find it and Update the value\r\n $Item = & find_XMP_item( $XAP_block, \"xap:CreateDate\" );\r\n\r\n // Check if the CreateDate is blank\r\n if ( $Item[ 'value' ] == \"\" )\r\n {\r\n // CreateDate is blank - we must have just added it - set it to the current date\r\n $Item[ 'value' ] = date( \"Y-m-d\\TH:i:s\" );\r\n $Item[ 'value' ] .= get_Local_Timezone_Offset( );\r\n }\r\n\r\n\r\n // The XAP ModifyDate tag contains last resource change date - Find it and Update the value to the current date\r\n $Item = & find_XMP_item( $XAP_block, \"xap:ModifyDate\" );\r\n $Item[ 'value' ] = date( \"Y-m-d\\TH:i:s\" );\r\n $Item[ 'value' ] .= get_Local_Timezone_Offset( );\r\n\r\n // The XAP ModifyDate tag contains last XMP change date - Find it and Update the value to the current date\r\n $Item = & find_XMP_item( $XAP_block, \"xap:MetadataDate\" );\r\n $Item[ 'value' ] = date( \"Y-m-d\\TH:i:s\" );\r\n $Item[ 'value' ] .= get_Local_Timezone_Offset( );\r\n\r\n\r\n\r\n // The XAP CreatorTool tag contains name of the software editor - Find it\r\n $Item = & find_XMP_item( $XAP_block, \"xap:CreatorTool\" );\r\n\r\n // Photoshop replaces the CreatorTool with \"Adobe Photoshop ...\"\r\n // This toolkit instead preserves existing value and appends the toolkit name to the end of it\r\n\r\n // Check if a CreatorTool already exists\r\n if ( $Item[ 'value' ] != \"\" )\r\n {\r\n // An existing CreatorTool was found\r\n // Check if the existing CreatorTool already contains the Toolkit's name\r\n if ( stristr ( $Item[ 'value' ], $GLOBALS['Software Name']) == FALSE )\r\n {\r\n // Toolkit Name string not found in the existing CreatorTool string - append it.\r\n $Item[ 'value' ] = $Item[ 'value' ] . \" \" . $GLOBALS['Software Name'];\r\n }\r\n else\r\n {\r\n // Toolkit name already exists in CreatorTool string - leave as is\r\n }\r\n }\r\n else\r\n {\r\n // No CreatorTool string exists - create one\r\n $Item[ 'value' ] = $GLOBALS['Software Name'];\r\n }\r\n\r\n\r\n\r\n\r\n // Process the XMP Basic Job Information block\r\n\r\n // Find the XAP Basic Job Information within the XMP block\r\n $XAPBJ_block = & find_XMP_block( $new_XMP_array, \"xapBJ\" );\r\n\r\n // The XAP Basic Job JobRef tag contains urgency - Find it and Update the value\r\n $Item = & find_XMP_item( $XAPBJ_block, \"xapBJ:JobRef\" );\r\n $Item[ 'children' ][ 0 ][ 'children' ] =\r\n array( array ( 'tag' => 'rdf:li',\r\n 'attributes' => array ( 'rdf:parseType' => 'Resource' ),\r\n 'children' => array ( 0 => array ( 'tag' => 'stJob:name',\r\n 'value' => $new_ps_file_info_array[ 'jobname' ] ),\r\n ),\r\n ),\r\n );\r\n\r\n\r\n\r\n\r\n // Process the XMP XAP Rights Information block\r\n\r\n // Find the XAP Rights Information within the XMP block\r\n $XAPRights_block = & find_XMP_block( $new_XMP_array, \"xapRights\" );\r\n\r\n\r\n\r\n // The XAP Rights Marked tag should only be present if copyrightstatus is 'Copyrighted Work' or 'Public Domain'\r\n // If copyrightstatus 'Unmarked' or anything else, the XAP Rights Marked tag should be missing\r\n\r\n\r\n // Remove any existing XAP Rights Marked tags - they will be replaced\r\n foreach( $XAPRights_block as $tagno => $tag )\r\n {\r\n if ( $tag[ 'tag' ] == \"xapRights:Marked\" )\r\n {\r\n array_splice( $XAPRights_block, $tagno, 1 );\r\n }\r\n }\r\n\r\n // Check the value of the copyrightstatus flag\r\n if ( $new_ps_file_info_array[ 'copyrightstatus' ] == \"Copyrighted Work\" )\r\n {\r\n // Copyrighted - add the tag\r\n $XAPRights_block[] = array ( 'tag' => 'xapRights:Marked', 'value' => 'True' );\r\n }\r\n else if ( $new_ps_file_info_array[ 'copyrightstatus' ] == \"Public Domain\" )\r\n {\r\n // Public domain - add the tag\r\n $XAPRights_block[] = array ( 'tag' => 'xapRights:Marked', 'value' => 'False' );\r\n }\r\n else\r\n {\r\n // Unmarked or Other - Do nothing - don't add a Marked tag\r\n }\r\n\r\n\r\n // The XAP Rights WebStatement tag contains ownerurl - Find it and Update the value\r\n $Item = & find_XMP_item( $XAPRights_block, \"xapRights:WebStatement\" );\r\n $Item[ 'value' ] = $new_ps_file_info_array[ 'ownerurl' ];\r\n\r\n\r\n\r\n\r\n // Process the XMP Dublin Core block\r\n\r\n // Find the Dublin Core Information within the XMP block\r\n $DC_block = & find_XMP_block( $new_XMP_array, \"dc\" );\r\n\r\n\r\n // The Dublin Core description tag contains caption - Find it and Update the value\r\n $Item = & find_XMP_item( $DC_block, \"dc:description\" );\r\n $Item[ 'children' ][ 0 ][ 'children' ] = array( array( 'tag' => \"rdf:li\",\r\n 'value' => $new_ps_file_info_array[ 'caption' ],\r\n 'attributes' => array( 'xml:lang' => \"x-default\" ) ) );\r\n\r\n\r\n // The Dublin Core title tag contains title - Find it and Update the value\r\n $Item = & find_XMP_item( $DC_block, \"dc:title\" );\r\n $Item[ 'children' ][ 0 ][ 'children' ] = array( array( 'tag' => \"rdf:li\",\r\n 'value' => $new_ps_file_info_array[ 'title' ],\r\n 'attributes' => array( 'xml:lang' => \"x-default\" ) ) );\r\n\r\n\r\n // The Dublin Core rights tag contains copyrightnotice - Find it and Update the value\r\n $Item = & find_XMP_item( $DC_block, \"dc:rights\" );\r\n $Item[ 'children' ][ 0 ][ 'children' ] = array( array( 'tag' => \"rdf:li\",\r\n 'value' => $new_ps_file_info_array[ 'copyrightnotice' ],\r\n 'attributes' => array( 'xml:lang' => \"x-default\" ) ) );\r\n\r\n // The Dublin Core creator tag contains author - Find it and Update the value\r\n $Item = & find_XMP_item( $DC_block, \"dc:creator\" );\r\n $Item[ 'children' ][ 0 ][ 'children' ] = array( array( 'tag' => \"rdf:li\",\r\n 'value' => $new_ps_file_info_array[ 'author' ]) );\r\n\r\n // The Dublin Core subject tag contains keywords - Find it\r\n $Item = & find_XMP_item( $DC_block, \"dc:subject\" );\r\n\r\n // Create an array to receive the Keywords List Items\r\n $new_keywords_array = array( );\r\n\r\n // Cycle through each keyword\r\n foreach( $new_ps_file_info_array[ 'keywords' ] as $keyword )\r\n {\r\n // Add a List item for this keyword\r\n $new_keywords_array[] = array( 'tag' => \"rdf:li\", 'value' => $keyword );\r\n }\r\n // Add the Keywords List Items array to the Dublin Core subject tag\r\n $Item[ 'children' ][ 0 ][ 'children' ] = $new_keywords_array;\r\n\r\n\r\n\r\n /***************************************/\r\n\r\n // FINISHED UPDATING VALUES\r\n\r\n // Insert the new IPTC array into the Photoshop IRB array\r\n $new_IRB_array = put_Photoshop_IPTC( $new_IRB_array, $new_IPTC_array );\r\n\r\n // Write the EXIF array to the JPEG header\r\n $jpeg_header_data = put_EXIF_JPEG( $new_Exif_array, $jpeg_header_data );\r\n\r\n // Convert the XMP array to XMP text\r\n $xmp_text = write_XMP_array_to_text( $new_XMP_array );\r\n\r\n // Write the XMP text to the JPEG Header\r\n $jpeg_header_data = put_XMP_text( $jpeg_header_data, $xmp_text );\r\n\r\n // Write the Photoshop IRB array to the JPEG header\r\n $jpeg_header_data = put_Photoshop_IRB( $jpeg_header_data, $new_IRB_array );\r\n\r\n return $jpeg_header_data;\r\n\r\n}", "title": "" }, { "docid": "80c99c4d6fa2daf19b9bfe0f865307a9", "score": "0.3999768", "text": "public function addContentMeta($name, $value);", "title": "" }, { "docid": "40c09d4f5a592a105ea0845d63154c60", "score": "0.39941576", "text": "public function setMetadata($key, $value)\n {\n $this->eventData['metadata'][$key] = $value;\n return $this;\n }", "title": "" }, { "docid": "c9351dc5e686f877b30201acf07a587b", "score": "0.3992585", "text": "public static function addCustomTag($tag) {\n self::$metatags[] = $tag;\n }", "title": "" }, { "docid": "927f317696ee4003cf3aaaeb9101451a", "score": "0.39908272", "text": "public function process(ContainerBuilder $container)\n {\n if (!$container->hasDefinition('hn_filter.factory')) {\n return;\n }\n $definition = $container->getDefinition('hn_filter.factory');\n\n // add all classes tagged as configuration to our service\n $taggedServices = $container->findTaggedServiceIds('hn_filter.definition');\n foreach ($taggedServices as $id => $attributes) {\n $definition->addMethodCall(\n 'addMetaConfigurator',\n array(new Reference($id))\n );\n }\n }", "title": "" } ]
cadda1bc8deacdb1841f8a86691a3c2a
Returns the localized Verify Email Path value.
[ { "docid": "ab9f3166d6e89e714a939c7f864eeb3e", "score": "0.71508694", "text": "public function getVerifyEmailPath(string $siteHandle = null): string\n {\n return ConfigHelper::localizedValue($this->verifyEmailPath, $siteHandle);\n }", "title": "" } ]
[ { "docid": "6d9d40808195528f6bd8eb870dc75f7b", "score": "0.6368829", "text": "public static function getEmailTemplatePath();", "title": "" }, { "docid": "6731429988a60d3586307d81bf2db0a3", "score": "0.63428706", "text": "public function getSavedSearchEmailPath()\n {\n return sprintf(\"::partials/email-templates/saved-searches/%s/\", $this->getDirectory());\n }", "title": "" }, { "docid": "c44b1246d63e4d40cb128ab797865a12", "score": "0.62892157", "text": "public function getSendmailPath() {}", "title": "" }, { "docid": "dfd8968e4d173c8f3d6915134510e4ed", "score": "0.62695026", "text": "public function getVerifyEmailSuccessPath(string $siteHandle = null): string\n {\n return ConfigHelper::localizedValue($this->verifyEmailSuccessPath, $siteHandle);\n }", "title": "" }, { "docid": "c3b38956c547aa93ec60f0d71f58791c", "score": "0.6127266", "text": "public function getVerificationEmailSubject()\n {\n return Config::get('verifier.subject');\n }", "title": "" }, { "docid": "eb87789da3084f9b72719d222cfaa9ad", "score": "0.6083871", "text": "public function getVerificationURL()\n {\n $customerURL = self::getCustomerURL();\n return $customerURL . 'verification/';\n }", "title": "" }, { "docid": "4b6049a653b8e01650886ef965a4ba73", "score": "0.60591996", "text": "public function getEmailForVerification() {}", "title": "" }, { "docid": "be89a56257982a0ac36cf24459a8a1f2", "score": "0.60080004", "text": "protected function verificationUrl()\n {\n return URL::temporarySignedRoute(\n 'email.verify',\n Carbon::now()->addMinutes(Config::get('auth.verification.expire', 60)),\n [\n 'id' => $this->user->id,\n 'hash' => sha1($this->user->email_pending),\n ],\n );\n }", "title": "" }, { "docid": "7e191d07a92535688190f76ec65ed1d5", "score": "0.5941932", "text": "public function getEmailForVerification()\n {\n return $this->email;\n }", "title": "" }, { "docid": "d4726cd8a25fb12fa90f3f5734e891af", "score": "0.5925976", "text": "public function getURL()\n {\n $url = $this->site->getURL() . 'verify/';\n if ($this->verify_user->id != $this->current_user->id) {\n $url .= $this->verify_user->id . '/';\n }\n \n return $url;\n }", "title": "" }, { "docid": "3012d2f9ead0c0f06ed3fea6a77be198", "score": "0.5898934", "text": "public function EncodedEmailLink()\n {\n if ($email = $this->getBestEmail()) {\n $obj = $this->retrieveEmailObject();\n if ($obj) {\n return $obj->MailTo;\n } else {\n return \"mailto:\".$email;\n }\n }\n }", "title": "" }, { "docid": "46d4417dc5f66e1758774d69c3564f38", "score": "0.5892636", "text": "protected function getTranslationFilePath()\n {\n return '.' . $this->get('request')->getLocale();\n }", "title": "" }, { "docid": "febed6e4abdbfbb858ce17982264e770", "score": "0.5831912", "text": "public function getEmailRef() {\n return \"email\";\n\t}", "title": "" }, { "docid": "f51ab0272ae7e6ab26e9f9a41b780387", "score": "0.58265173", "text": "public static function getEmailLayoutPath();", "title": "" }, { "docid": "1cce57ac50412bee1e5dc3f28579d0d3", "score": "0.58131534", "text": "public function getEmail(){\n\t\t$email = '';\n\t\t$lti_email_vars = array( 'lis_person_contact_email_primary' );\n\t\t$email_found = false;\n\t\tforEach( $lti_email_vars as $check_me ){\n\t\t\t$temp = $this->getLtiDataValue( $check_me, $email_found );\n\t\t\tif( $email_found ){\n\t\t\t\t$email = $temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $email;\n\t}", "title": "" }, { "docid": "bc9f3326dd27c0dd2d5727af32072f2f", "score": "0.5762098", "text": "protected function getEmailSubject()\n {\n return is_null(config('usersys.reset_email_subject')) \n ? \"Your email verification link.\" \n : config('usersys.reset_email_subject');\n }", "title": "" }, { "docid": "71ccbd90124c831f363b35d9984476e1", "score": "0.5747552", "text": "public static function email()\n {\n return config('filament-jet.email', 'email');\n }", "title": "" }, { "docid": "335c7353ff96ff6bf34d73a613302fd9", "score": "0.5702958", "text": "public function getVerificationEmailName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "4d65ca15baadc4017f2d95e2604b02da", "score": "0.56663114", "text": "public function path()\n {\n return config('dhamkith_contactus.path', 'dhamkith');\n }", "title": "" }, { "docid": "4de42e22c49960e6942c7cbdd732a727", "score": "0.5665657", "text": "public function getAltEmail()\n\t{\n\t\treturn $this->alt_email;\n\t}", "title": "" }, { "docid": "a4e310c7702ca0a1addab547cfd8d43c", "score": "0.5617764", "text": "public function verifyUrl()\n {\n return $this->base()['verify_url'];\n }", "title": "" }, { "docid": "72926358cb34afa77a3f5312d7112fc1", "score": "0.560608", "text": "public function razorpayEmail()\n {\n return (string) $this->razorpayInfo()['email'];\n }", "title": "" }, { "docid": "349bf430734d31b5d37565ee8ca4c348", "score": "0.5587083", "text": "public function getNormalizedEmail(): ?string {\n return $this->normalizedEmail;\n }", "title": "" }, { "docid": "072e94a70e75362e7e2ebb34203d8d17", "score": "0.5570222", "text": "public function path()\n {\n $pattern = '/^\\/(' . implode('|', array_keys(config('streams::locales.supported'))) . ')(\\/|$)/';\n\n return preg_replace($pattern, '/', array_get(parse_url($this->getUrl()), 'path'));\n }", "title": "" }, { "docid": "6e91072975edbc77aed517780305835f", "score": "0.5548123", "text": "public function message()\n {\n return trans('laravelblocker::laravelblocker.validation.email');\n }", "title": "" }, { "docid": "6ec1c815616597da5b4a81dd963e8897", "score": "0.5535856", "text": "public function getVirtualEmail() {\n return $this->virtualEmail;\n }", "title": "" }, { "docid": "3e2debbdc9c8c903fcfe577196412a29", "score": "0.5522857", "text": "protected function getFilePath() {\n\t\ttry {\n\t\t\tif (strlen($this->propertyNamePathData) < 1) {\n\t\t\t\tthrow new LBoxExceptionFormProcessor(LBoxExceptionFormProcessor::MSG_INSTANCE_VAR_STRING_NOTNULL, LBoxExceptionFormProcessor::CODE_BAD_INSTANCE_VAR);\n\t\t\t}\n\t\t\t$path\t= LBoxConfigManagerProperties::gpcn($this->propertyNamePathData);\n\t\t\t$path\t= str_replace(\"<project>\", LBOX_PATH_PROJECT, $path);\n\t\t\t$path\t= LBoxUtil::fixPathSlashes($path);\n\t\t\treturn $path;\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "3b76300ed3564fe1cd468541eb1061dc", "score": "0.552274", "text": "public function routeNotificationForMail(): string\n {\n return $this->email;\n }", "title": "" }, { "docid": "82ff54728c08a06a37cc2a67ac6c8edc", "score": "0.5484834", "text": "public function getEmail()\n {\n return $this->getValueByKey($this->response['return'], 'email');\n }", "title": "" }, { "docid": "d964efd3f96711808acc30ecc4d8a487", "score": "0.5483517", "text": "protected function getLocaleFilePath()\r\r\r\n\t{\r\r\r\n return APPLICATION_PATH.\"/../data/locales/\".$this->getRequest()->getModuleName();\t\t\r\r\r\n\t}", "title": "" }, { "docid": "84e0ff623a85d3b35e5f1cc745232a5b", "score": "0.5482352", "text": "public static function get_email_message(){\n\n return get_option(self::$name_email_message_in_option_table, '');\n }", "title": "" }, { "docid": "036a5d12b08c3b440be9986277073330", "score": "0.5471665", "text": "public static function emailVerificationComponent()\n {\n return Features::getOption(Features::emailVerification(), 'page');\n }", "title": "" }, { "docid": "6b24a4917d877698fba2f0982d6df957", "score": "0.54596245", "text": "public function decodedPath()\n {\n return rawurldecode($this->path());\n }", "title": "" }, { "docid": "6b24a4917d877698fba2f0982d6df957", "score": "0.54596245", "text": "public function decodedPath()\n {\n return rawurldecode($this->path());\n }", "title": "" }, { "docid": "6b24a4917d877698fba2f0982d6df957", "score": "0.54596245", "text": "public function decodedPath()\n {\n return rawurldecode($this->path());\n }", "title": "" }, { "docid": "4d42a44853daf197a2f407770bfa901f", "score": "0.5454347", "text": "public function getEmail()\n {\n $value = $this->get(self::EMAIL);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "79b648462ba9857776a85d521959d844", "score": "0.5449676", "text": "private function getUrlPath()\r\n\t{\r\n\t\t$urlPath = $this->currentRequest->path();\r\n\t\tif(class_exists('RainLab\\Translate\\Classes\\Translator'))\r\n\t\t{\r\n\t\t\t$translator = Translator::instance();\r\n\t\t\tif ($translator->isConfigured() && $translator->loadLocaleFromRequest() && ($locale = $translator->getLocale())) \r\n\t\t\t{\r\n\t\t\t\t$segments = explode(\"/\", $urlPath);\r\n\t\t\t\tif(count($segments) > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif($segments[0] == $locale)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tarray_shift($segments);\r\n\t\t\t\t\t\t$urlPath = implode('/', $segments);\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 $urlPath;\r\n\t}", "title": "" }, { "docid": "451ca6fd67a93348a8b47e10737da2ee", "score": "0.5449243", "text": "public function getEmail()\n\t{\n\t\treturn (string)$this->getJson()->resource->email;\n\t}", "title": "" }, { "docid": "58bf484206e9c8b6332828f68458875c", "score": "0.54428333", "text": "public function getEmail()\n {\n return strtolower($this->email->get());\n }", "title": "" }, { "docid": "d3af6d57ec50982d9ef0b80a46ab35f4", "score": "0.5433739", "text": "public function getAlternateEmail()\n {\n return $this->alternate_email;\n }", "title": "" }, { "docid": "7268c2e05c0df915167f114bad7aa28e", "score": "0.54291296", "text": "public function message_file_path() : string\n\t{\n\t\t$ret = $this->data_root.\"/message.txt\";\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "2326e0f2f96534639760398a9676758b", "score": "0.5428585", "text": "private function getFilePath()\n {\n\n return Settings::getSetting('mailer_template_location');\n }", "title": "" }, { "docid": "ad38b5d38c21550a3ae99103adb131fe", "score": "0.5423067", "text": "public static function getEmailLoginUrl()\n\t\t{\n\t\t\treturn self::BX_SERVER . \n\t\t\t\t\t'user-login/' . \n\t\t\t\t\t$_SESSION['bxkey'] . \n\t\t\t\t\t'?callback_url=' . self::$callbackUrl;\n\t\t}", "title": "" }, { "docid": "29818aefb1da4c32f47f82df0749cffa", "score": "0.5411771", "text": "public function getEmailForEmailReminder(): string;", "title": "" }, { "docid": "8f34580378936fa8ce43cdc8d7a3b005", "score": "0.5400611", "text": "public function uriKey()\n {\n return 'emails';\n }", "title": "" }, { "docid": "7f2d97c60efe82d5ef74ab626363bef6", "score": "0.53938985", "text": "public function getReturnPath()\n {\n return $this->getHeaderFieldModel('Return-Path');\n }", "title": "" }, { "docid": "48b99806d453858ed6eddc7b8cab3061", "score": "0.53854096", "text": "public function getEmail()\n {\n return $this->get(self::EMAIL);\n }", "title": "" }, { "docid": "8f5fba202ee880fb6782308fe5d0b5ba", "score": "0.53809905", "text": "public function computePathLang()\n {\n if ($this->pathLang === null) {\n if ($this->store->settings['use_proxy'] && isset($this->env['HTTP_X_FORWARDED_HOST'])) {\n $server_name = $this->env['HTTP_X_FORWARDED_HOST'];\n } else {\n $server_name = $this->env['SERVER_NAME'];\n }\n // get the lang in the path\n $rp = '/' . $this->store->settings['url_pattern_reg'] . '/';\n preg_match($rp, $server_name . $this->env['REQUEST_URI'], $match);\n if (isset($match['lang'])) {\n $lang_code = Lang::formatLangCode($match['lang'], $this->store);\n if (!is_null($lang_code)) {\n $this->pathLang = $lang_code;\n }\n }\n if ($this->pathLang === null) {\n $this->pathLang = '';\n }\n }\n return $this->pathLang;\n }", "title": "" }, { "docid": "a3d04a8d51e66fceb02806984c2e33e3", "score": "0.5376925", "text": "public function getEmail() : ?string\n {\n return $this->getValue();\n }", "title": "" }, { "docid": "ddac49b2011453e51eaab5706720ed2b", "score": "0.5376061", "text": "public function user_from_mail() {\n\t\treturn $this->config['submit']['from_email'];\n\t}", "title": "" }, { "docid": "1e7a32507f03fe7203c0d8b2c3c7b1fd", "score": "0.5369914", "text": "public function resolvedPath()\n {\n return Parse::env($this->path());\n }", "title": "" }, { "docid": "59850e4e4aa0ce4f07083047b5bc859c", "score": "0.53615624", "text": "public static function get_email_subject(){\n\n return get_option(self::$name_email_subject_in_option_table, '');\n }", "title": "" }, { "docid": "3ceeae3f477f1925aabc1179002a290a", "score": "0.5354973", "text": "public function getRecipientEmail(): string\n {\n return $this->getAttribute('email');\n }", "title": "" }, { "docid": "78a643adf77619c6c79d86db5aede6f8", "score": "0.5354074", "text": "public function getEmail() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"email\");\n\t}", "title": "" }, { "docid": "78a643adf77619c6c79d86db5aede6f8", "score": "0.5354074", "text": "public function getEmail() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"email\");\n\t}", "title": "" }, { "docid": "78a643adf77619c6c79d86db5aede6f8", "score": "0.5354074", "text": "public function getEmail() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"email\");\n\t}", "title": "" }, { "docid": "b539e4adafd35655a4751f1e43873bd7", "score": "0.5350955", "text": "public function getEmail()\n {\n if (array_key_exists(\"email\", $this->_propDict)) {\n return $this->_propDict[\"email\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "b539e4adafd35655a4751f1e43873bd7", "score": "0.5350955", "text": "public function getEmail()\n {\n if (array_key_exists(\"email\", $this->_propDict)) {\n return $this->_propDict[\"email\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "b539e4adafd35655a4751f1e43873bd7", "score": "0.5350955", "text": "public function getEmail()\n {\n if (array_key_exists(\"email\", $this->_propDict)) {\n return $this->_propDict[\"email\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "367654e30d87e5317e1a946f2dfb58b1", "score": "0.5345956", "text": "protected function emailVerificationTokenKey()\n {\n return \"user.{$this->id}.email_verification_token\";\n }", "title": "" }, { "docid": "110a6a087710ed461a832c6c7ff73a36", "score": "0.5345224", "text": "public function getEmailCanonical(): ?string;", "title": "" }, { "docid": "110a6a087710ed461a832c6c7ff73a36", "score": "0.5345224", "text": "public function getEmailCanonical(): ?string;", "title": "" }, { "docid": "110a6a087710ed461a832c6c7ff73a36", "score": "0.5345224", "text": "public function getEmailCanonical(): ?string;", "title": "" }, { "docid": "87e9f808e72e1e92dc1efa5e5f1a571c", "score": "0.53380084", "text": "private function getEmailKey()\n {\n if (!$this->emailKey) {\n foreach ($this->fieldMaps as $map) {\n if ($map->isEmail()) {\n $this->emailKey = $map->getCrmKey();\n }\n }\n }\n \n return $this->emailKey;\n }", "title": "" }, { "docid": "f01f5713dec3c1248942f6bfc0c690b2", "score": "0.5335512", "text": "public function getEmailForPasswordReset()\n {\n $field = $this->email;\n\n $route_name = request()->route()->getAction('as');\n\n if ($this->setFieldByPhone($route_name)) { // 使用手机号找回密码\n $field = $this->phone;\n }\n\n return $field;\n }", "title": "" }, { "docid": "0e4f9d1bb50ed4f6414b37c117a50f78", "score": "0.53286064", "text": "function getLangPath()\n {\n return $this->getResourcesPath() . $this->fileSeparator() . $this->getLangName();\n }", "title": "" }, { "docid": "a18393d225e34b381a2ffaa07be0a94f", "score": "0.53197914", "text": "public function getEmail()\n {\n return $this->getVerifier()->claims()->has('email')\n ? $this->getVerifier()->claims()->get('email') : null;\n }", "title": "" }, { "docid": "2347b4de211914a0b556606c0deefd0a", "score": "0.53105056", "text": "public function getFieldPath(): string\n {\n return implode(\n '.',\n $this->getResolveInfo()->path\n );\n }", "title": "" }, { "docid": "62e65bc34f81a77bf3b47ba7054ba5bc", "score": "0.53062516", "text": "public function getMail() : string\r\n {\r\n return $this->mail;\r\n }", "title": "" }, { "docid": "c6a902423569c601e7b5c139435bcd8f", "score": "0.5304783", "text": "public function message()\n {\n if(is_array($this->domain)) {\n return 'The email must be one of ' . implode(', ', $this->domain);\n }\n\n return 'The email must match ' . $this->domain;\n }", "title": "" }, { "docid": "2e4be350c678727f75953827aeb17bdd", "score": "0.52999115", "text": "private function _GetLangPath()\n\t{\n\t\t$lang_path = \"\";\n\t\t$paths = explode(PATH_SEPARATOR,get_include_path());\n\n\t\tforeach ($paths as $path)\n\t\t{\n\t\t\tif (file_exists($path . '/language/phpmailer.lang-en.php'))\n\t\t\t{\n\t\t\t\t$lang_path = $path . '/language/';\n\t\t\t}\n\t\t}\n\t\treturn $lang_path;\n\t}", "title": "" }, { "docid": "eaaf05b448e3acd5137614266fbcd305", "score": "0.529745", "text": "public static function get_verification_endpoint_uri(): string\n {\n return self::VERIFICATION_ENDPOINT_URI;\n }", "title": "" }, { "docid": "63776cab85309b874a55cb7a961a8494", "score": "0.5293794", "text": "public function getEmail()\n {\n\n return view('common.password.email');\n }", "title": "" }, { "docid": "72e17b69b5d768f7c4b797eb54c34dd8", "score": "0.5291933", "text": "function getEnPath()\n {\n return $this->getLangPath() . $this->fileSeparator() . $this->getEnName();\n }", "title": "" }, { "docid": "d708d8ebecb0f675f98d1949a3da480d", "score": "0.52869815", "text": "private function _getMailFromEmail() {\n return $this->getTemplate()->getTemplateSenderEmail();\n }", "title": "" }, { "docid": "a1a108f32727422033bd860eb8154625", "score": "0.5282647", "text": "public static function decodedPath()\n {\n /** @var \\Illuminate\\Http\\Request $instance */\n return $instance->decodedPath();\n }", "title": "" }, { "docid": "d39381d865cc60a148569eaa508928cf", "score": "0.52788246", "text": "public function getVerificationEmailTemplate()\n {\n // Get template.\n $emailTemplate = Mage::getModel('core/email_template')->loadByCode(self::VERIFIACTION_EMAIL_TEMPLATE_NAME);\n\n // Set senders by default.\n $storeId = Mage::app()->getStore()->getStoreId();\n $emailTemplate->setSenderEmail(Mage::getStoreConfig('trans_email/ident_general/email', $storeId));\n $emailTemplate->setSenderName(Mage::getStoreConfig('trans_email/ident_general/name', $storeId));\n\n return $emailTemplate;\n }", "title": "" }, { "docid": "cc306b707cbde2a07ffed20bdb5fdaf1", "score": "0.5278305", "text": "public function routeNotificationForMail()\n {\n return $this->user != null ? $this->user->email : $this->specEmail;\n }", "title": "" }, { "docid": "d76615ad4252b91efcd21d72f20dfbe5", "score": "0.5273331", "text": "public function getEmail() {\n\t\treturn $this->strEmail;\n\t}", "title": "" }, { "docid": "f9dfcb228c837327418ca3f2026ff188", "score": "0.5271412", "text": "public function email()\r\n {\r\n return $this->get('email');\r\n }", "title": "" }, { "docid": "4b56c8a7e9481c04ff50c5dd13fd02cf", "score": "0.52710485", "text": "public function getMerchantEmail()\n {\n if($this->isSandbox()) {\n return $this->scopeConfig->getValue(self::XML_PATH_PAYMENT_PAGSEGURO_SANDBOX_EMAIL, ScopeInterface::SCOPE_WEBSITE);\n }\n\n //Production mode\n return $this->scopeConfig->getValue(self::XML_PATH_PAYMENT_PAGSEGURO_EMAIL, ScopeInterface::SCOPE_WEBSITE);\n }", "title": "" }, { "docid": "f261e76978a38a6d9d09fdf2a943b458", "score": "0.5262612", "text": "public function getPhoneNumberVerificationUrl()\n {\n return isset($this->phone_number_verification_url) ? $this->phone_number_verification_url : '';\n }", "title": "" }, { "docid": "2b1f52ee39f07f0abc4b69ed01c8ad1d", "score": "0.52549714", "text": "public function emailTemplate()\n {\n return static::EMAIL;\n }", "title": "" }, { "docid": "9043156361490462ef169baef411962e", "score": "0.52546656", "text": "public function getEmail(){\n\t\treturn $this->__get('email');\n\t}", "title": "" }, { "docid": "1222f2e186f8437f2cf48726cbc6a66c", "score": "0.5251953", "text": "public function getEmailRedirection(): ?string {\n return $this->emailRedirection;\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.5249487", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.5249487", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.5249487", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.5249487", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "d4ccd081c130f05cf59d9f340f737864", "score": "0.52462333", "text": "public function getRecordedByEmail() : string\n {\n return $this->recordedByEmail;\n }", "title": "" }, { "docid": "d03367436c68a82760f9679872972434", "score": "0.5244098", "text": "public function getEmail()\n {\n return $this->getValueByKey($this->response, 'email');\n }", "title": "" }, { "docid": "186d26f7805e7df2f1e7431d51a07765", "score": "0.52403116", "text": "public function getEmail() : string {\n return $this->email;\n }", "title": "" }, { "docid": "f397e9e22ae03526ad1cd7c4beb0b7b3", "score": "0.523874", "text": "public function email()\n {\n return $this->get('email');\n }", "title": "" }, { "docid": "9355b060b7c4ea58ca781f5bb67013ba", "score": "0.52340674", "text": "public function issuerPath(): CertificationPath\n {\n return $this->issuerPath;\n }", "title": "" }, { "docid": "92a615b947c88118afecc25aa1fa8937", "score": "0.52332145", "text": "public function getContactEmail()\n {\n return $this->options->get(self::OPT_CONTACT_EMAIL, '{undefined}');\n }", "title": "" }, { "docid": "45e74930417c2b3bc5f6806aea61f004", "score": "0.5232066", "text": "public function getPath()\n {\n $value = $this->get(self::path);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "778b8d01457a58b6aff7917b04b22e8a", "score": "0.5231077", "text": "public function getEmailForPasswordReset() : string\n {\n return $this->email;\n }", "title": "" }, { "docid": "ad36bbf9d5c67b251b87bad152cec785", "score": "0.5226656", "text": "public function getEmail()\n {\n return $this->getField('email');\n }", "title": "" }, { "docid": "ad36bbf9d5c67b251b87bad152cec785", "score": "0.5226656", "text": "public function getEmail()\n {\n return $this->getField('email');\n }", "title": "" }, { "docid": "a38c7d11dab7292516637bc8af990109", "score": "0.52263665", "text": "protected function getEmail()\n {\n return AgileCRM\\Main::getCurrentUserEmail();\n }", "title": "" } ]
ea3151f0046a60527934563d064cd577
Riiskit setup. Set up theme defaults and registers support for various WordPress features. Note that this function is hooked into the after_setup_theme hook, which runs before the init hook. The init hook is too late for some features, such as indicating support post thumbnails.
[ { "docid": "7ac2cbd81181bfa45b386d1290991825", "score": "0.81875116", "text": "function riiskit_setup() {\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on twentyfifteen, use a find and replace\n\t\t * to change 'riiskit' to the name of your theme in all the template files\n\t\t */\n\t\tload_theme_textdomain( 'riiskit', get_template_directory() . '/languages' );\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// This theme styles the visual editor to resemble the theme style.\n\t\t//add_editor_style( array( 'inc/admin/css/editor-style.css' ) );\n\n\t\t/**\n\t\t * Enable support for Post Thumbnails, and declare one size.\n\t\t * Larger images should be auto-cropped to fit, smaller ones should be ignored.\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\tset_post_thumbnail_size( 570, 300, true );\n\t\tadd_image_size( 'riiskit-user-logo', 250, 100, false );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Primary menu, typically used in the header etc.', 'riiskit' ),\n\t\t) );\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',\n\t\t) );\n\n\t\t// Remove junk from head\n\t\tremove_action('wp_head', 'rsd_link');\n\t\tremove_action('wp_head', 'wp_generator');\n\t\tremove_action('wp_head', 'feed_links', 2);\n\t\tremove_action('wp_head', 'index_rel_link');\n\t\tremove_action('wp_head', 'wlwmanifest_link');\n\t\tremove_action('wp_head', 'feed_links_extra', 3);\n\t\tremove_action('wp_head', 'start_post_rel_link', 10, 0);\n\t\tremove_action('wp_head', 'parent_post_rel_link', 10, 0);\n\t\tremove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);\n\n\n\t\t// Show second row in wysiwig editor by default (kitchen sink)\n\t\tfunction unhide_kitchensink( $args ) {\n\t\t\t$args['wordpress_adv_hidden'] = false;\n\t\t\treturn $args;\n\t\t}\n\t\tadd_filter( 'tiny_mce_before_init', 'unhide_kitchensink' );\n\n\t\t// This theme uses its own gallery styles\n\t\tadd_filter( 'use_default_gallery_style', '__return_false' );\n\t}", "title": "" } ]
[ { "docid": "350819ccdad4e49f669035c6c359e6bc", "score": "0.7453454", "text": "public function theme_setup()\n {\n\n // This theme styles the visual editor with editor-style.css to match the theme style.\n add_editor_style('editor-style.css');\n\n // This theme uses post thumbnails\n add_theme_support( 'post-thumbnails' );\n\n // Add default posts and comments RSS feed links to head\n add_theme_support( 'automatic-feed-links' );\n\n // This theme uses wp_nav_menu() in one location.\n register_nav_menus( array(\n 'primary' => __( 'Primary Navigation', 'twentyten' ),\n// 'footer' => __( 'Footer Navigation', 'twentyten')\n ) );\n\n // This theme allows users to set a custom background\n add_theme_support( 'custom-background', array(\n 'default-color' => 'ffffff',\n ) );\n\n // Add support for custom headers.\n add_theme_support( 'custom-header', array(\n 'default-text-color' => '000',\n 'default-image' => '',\n// 'default-image' => get_template_directory_uri() . '/lib/images/logo.png',\n 'uploads' => true,\n 'flex-width' => true,\n 'flex-height' => true,\n 'header-text' => true,\n 'height' => '60',\n 'width' => '230',\n ) );\n }", "title": "" }, { "docid": "f70f80b8eb840d279de06a140cf1b352", "score": "0.74212915", "text": "public static function theme_setup() {\n\t\t/**\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// This theme uses wp_nav_menu() in various locations.\n\t\tregister_nav_menus( [\n\t\t\t'primary-desktop' => __( 'Main Desktop', 'nusa' ),\n\t\t\t'primary-footer' => __( 'Main Footer', 'nusa' ),\n\t\t] );\n\n\t\t/**\n\t\t * Switch default core markup for search form, gallery, and caption to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', [\n\t\t\t'search-form',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t] );\n\n\t\t// Allow WordPress to generate the title tag dynamically.\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// Add theme support for Custom Logo.\n\t\tadd_theme_support( 'custom-logo' );\n\t}", "title": "" }, { "docid": "db7e36accf3f5f642d73873e5d0a9e67", "score": "0.72656417", "text": "function keira_setup() {\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on keira, use a find and replace\n\t\t * to change 'keira' to the name of your theme in all the template files.\n\t\t */\n\t\tload_theme_textdomain( 'keira', get_template_directory() . '/languages' );\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t\t'primary-menu' => esc_html__( 'Primary Menu', 'keira' ),\n\t\t\t)\n\t\t);\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'html5',\n\t\t\tarray(\n\t\t\t\t'search-form',\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t\t'style',\n\t\t\t\t'script',\n\t\t\t)\n\t\t);\n\n\t\t// Set up the WordPress core custom background feature.\n\t\tadd_theme_support(\n\t\t\t'custom-background',\n\t\t\tapply_filters(\n\t\t\t\t'keira_custom_background_args',\n\t\t\t\tarray(\n\t\t\t\t\t'default-color' => 'ffffff',\n\t\t\t\t\t'default-image' => '',\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'custom-logo',\n\t\t\tarray(\n\t\t\t\t'height' => 250,\n\t\t\t\t'width' => 250,\n\t\t\t\t'flex-width' => true,\n\t\t\t\t'flex-height' => true,\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "3716e1f18cf07c245dbc933838ba9f5d", "score": "0.7256655", "text": "function theme_setup() {\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t//\tLet WordPress manage the document title.\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t//\tEnable support for Post Thumbnails on posts and pages.\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t//\tSet post Thumbnail size\t\t\n\t\tset_post_thumbnail_size( 825, 510, true );\n\n\t\t// This theme uses wp_nav_menu() in two locations.\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Primary Menu','theme' ),\n\t\t));\n\n\t\tregister_nav_menus( array(\n\t\t\t'footer' => __( 'Menu Footer','theme' ),\n\t\t));\n\n\t\t// Switch default core markup for search form, comment form, and comments to output valid HTML5.\n\t\t\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n\t\t) );\n\n\t\t//\tAnti spam autolink of WordPress.\n\t\tremove_filter('comment_text', 'make_clickable', 9);\n\n\t\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\t\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\t}", "title": "" }, { "docid": "c06d4d50a46cb0b69dad7a20a8c1592f", "score": "0.7235112", "text": "function theme_setup() {\n\tnew Options();\n\tif ( is_admin() ) {\n\t\tnew SettingPage();\n\t}\n\n\t/**\n\t * theme supports\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n}", "title": "" }, { "docid": "f85a00f09417104c258c6bba0dd6fbe5", "score": "0.72169155", "text": "function theme_setup(): void\n {\n add_theme_support('title-tag');\n\n add_theme_support('post-thumbnails');\n\n add_theme_support(\n 'html5',\n array(\n 'gallery',\n 'caption',\n 'search-form',\n 'comment-list',\n 'comment-form',\n ),\n );\n\n register_nav_menu(\n __('main-menu', 'hasnain'),\n __('Main navigation for them theme', 'hasnain'),\n );\n }", "title": "" }, { "docid": "e42ca264248ad3b10e7c0eab3d45fe7f", "score": "0.72010416", "text": "public function theme_init()\n\t{\n\t\t/*\n\t\t * Enqueue assets (css, js)\n\t\t * \n\t\t * Register Custom CSS at a lower priority for CSS specificity\n\t\t */\n\t\tadd_action('wp_enqueue_scripts', array($this, 'register_assets'));\n\t\tadd_action('wp_enqueue_scripts', array($this, 'register_custom_css'), 99);\n\t\t\n\t\t/*\n\t\t * Featured images settings\n\t\t */\n\t\tset_post_thumbnail_size(110, 96, true); // 17:15, also used in 85x75 and more similar aspect ratios\n\n\t\t// 1280x612 images for no cropping of featured and slider image\n\t\tadd_image_size('main-full', 1078, 516, true); // main post image in full width\n\t\tadd_image_size('main-slider', 702, 336, true);\n\t\t\n\t\tadd_image_size('main-block', 351, 185, true); // also usable at 326x160\n\t\tadd_image_size('slider-small', 168, 137, true); // small thumb for slider\n\t\tadd_image_size('gallery-block', 214, 140, true); // small thumb for slider\n\n\t\t// i18n\n\t\tload_theme_textdomain('bunyad', get_template_directory() . '/languages');\n\t\t\n\t\t// setup navigation menu with \"main\" key\n\t\tregister_nav_menu('main', __('Main Navigation', 'bunyad'));\n\t\t\n\t\t/*\n\t\t * Category meta \n\t\t */\n\t\tadd_action('category_edit_form_fields', array($this, 'edit_category_meta'), 10, 2);\n\t\tadd_action('category_add_form_fields', array($this, 'edit_category_meta'), 10, 2);\n\t\t\n\t\tadd_action('edited_category', array($this, 'save_category_meta'), 10, 2);\n\t\tadd_action('create_category', array($this, 'save_category_meta'), 10, 2);\n\t\t\n\t\t// user fields\n\t\tadd_filter('user_contactmethods', array($this, 'add_profile_fields'));\n\t\t\n\t\t/*\n\t\t * Reviews Support\n\t\t */\n\t\tadd_filter('the_content', array($this, 'add_review'));\n\t\tadd_filter('bunyad_review_main_snippet', array($this, 'add_review_snippet'));\n\t\t\n\t\t// 3.5 has content_width removed, add it for oebmed\n\t\tglobal $content_width;\n\t\t\n\t\tif (!isset($content_width)) {\n\t\t\t$content_width = 702;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Register Sidebars\n\t\t */\t\t\n\t\t$this->register_sidebars();\n\n\t\t/*\n\t\t * Mega menu support\n\t\t */\n\t\tadd_filter('bunyad_custom_menu_fields', array($this, 'custom_menu_fields'));\n\t\tadd_filter('bunyad_mega_menu_end_lvl', array($this, 'attach_mega_menu'));\n\t\t\n\t\t/*\n\t\t * Posts related filter\n\t\t */\n\t\t\n\t\t// add authorship\n\t\tadd_filter('wp_head', array($this, 'add_header_meta'));\n\t\t\n\t\t// custom font icons for post formats\n\t\tadd_filter('bunyad_post_formats_icon', array($this, 'post_format_icon'));\n\t\t\n\t\t// video format auto-embed\n\t\tadd_filter('bunyad_featured_video', array($this, 'video_auto_embed'));\n\t\t\n\t\t// fix search for pages\n\t\tadd_filter('pre_get_posts', array($this, 'fix_search'));\n\t\t\n\t\t// remove hentry microformat, we use schema.org/Article\n\t\tadd_action('post_class', array($this, 'fix_post_class'));\n\t\t\n\t\t// add the orig_offset for offset support in blocks\n\t\tadd_filter('bunyad_block_query_args', array(Bunyad::posts(), 'add_query_offset'), 10, 1);\n\t\t\n\t\t/*\n\t\t * Prevent duplicate posts\n\t\t */\n\t\tif (Bunyad::options()->no_home_duplicates) {\n\t\t\t\n\t\t\t// add to removal list on each loop\n\t\t\tadd_filter('loop_end', array($this, 'update_duplicate_posts'));\n\t\t\t\n\t\t\t// exclude on blocks\n\t\t\tadd_filter('bunyad_block_query_args', array($this, 'add_duplicate_exclude'));\n\t\t\t\n\t\t\t// exclude on widgets\n\t\t\tforeach (array('tabbed_recent', 'popular_posts', 'latest_posts') as $widget) {\n\t\t\t\tadd_filter('bunyad_widget_' . $widget . '_query_args', array($this, 'add_duplicate_exclude'));\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * bbPress\n\t\t */\n\t\tadd_theme_support('bbpress');\n\t\t\n\t\t// is bbpress active?\n\t\tif (class_exists('bbpress')) {\n\t\t\tadd_action('wp_footer', array($this, 'bbpress_footer'));\n\t\t}\n\t\t\n\t\tadd_filter('nav_menu_css_class', array($this, 'add_nav_login'), 10, 2);\n\t\t\n\t\t\n\t\t// sample import actions\n\t\tadd_filter('bunyad_import_menu_fields', array($this, 'import_menu_fields'));\n\t\tadd_action('bunyad_import_completed', array($this, 'import_fix_menu'));\n\t\t\n\t\t// setup the init hook\n\t\tadd_action('init', array($this, 'init'));\n\n\t}", "title": "" }, { "docid": "a52fb7eba5a7c3cda2dde3fa2f77129b", "score": "0.71636075", "text": "public function init() {\n\t\tadd_action( 'after_setup_theme', $this->callback( 'add_thumbnail_support' ) );\n\t\tadd_action( 'after_setup_theme', $this->callback( 'add_image_sizes' ) );\n\t}", "title": "" }, { "docid": "5621922e3c0e67342c92f0ccd4091bf8", "score": "0.71446174", "text": "function <%= opts.functionPrefix %>_setup() {\n\t\tadd_theme_support( 'post-formats', array( 'link', 'image', 'quote', 'video', 'audio' ) );\n\t\t// Add theme support for Featured Images\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t// Add theme support for Automatic Feed Links\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\t// Add theme support for HTML5 Semantic Markup\n\t\tadd_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );\n\t\t// Add theme support for document Title tag\n\t\tadd_theme_support( 'title-tag' );\n\t}", "title": "" }, { "docid": "aef6f78ea021287bc3264810621f5074", "score": "0.7119588", "text": "function initial_setup() {\r\n add_theme_support('automatic-feed-links');\r\n \r\n // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images\r\n add_theme_support('post-thumbnails');\r\n \r\n // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.\r\n //set_post_thumbnail_size(80, 80, true);\r\n add_image_size( 'featured', 640, 250, true);\r\n add_image_size( 'header-image', 1366, 800);\r\n //add_image_size( 'attachment', 1000, 750);\r\n //add_image_size( 'thumb-mini', 60, 60, true);\r\n \r\n //add_theme_support( 'custom-background' );\r\n }", "title": "" }, { "docid": "ab553330a3fe9c94a2810a4029d7c6e0", "score": "0.71151227", "text": "function theme_setup() {\n\tadd_theme_support( 'post-thumbnails' );\n\tset_post_thumbnail_size( 1064, 9999 ); // Unlimited height, soft crop\n\n\t// Add RSS feed links to <head> for posts and comments.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// This theme uses wp_nav_menu() in two locations.\n\tregister_nav_menus( array(\n\t\t'primary' => __( 'Top primary menu' )\n\t) );\n\n\t/* Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'search-form', 'gallery', 'caption'\n\t) );\n\n}", "title": "" }, { "docid": "4ea34a8118b480ca982e5d1f0b44022d", "score": "0.7110018", "text": "function ehh_setup() {\n\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Primary Menu', 'ehh' ),\n\t\t) );\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t// Add support for responsive embedded content.\n\t\tadd_theme_support( 'responsive-embeds' );\n\t\t\n\t}", "title": "" }, { "docid": "d01c431b743f06d1b813b15b7782a29d", "score": "0.70986575", "text": "function theme_setup() {\n # Add Menu Support and Register Custom menu\n add_theme_support( 'menus' );\n register_nav_menus(\n [\n 'primary-menu' => 'Primary Menu',\n 'footer-menu' => 'Footer Menu'\n ]\n );\n\n # Add theme support for thumbnails\n add_theme_support( 'post-thumbnails' );\n\n # WordPress now mananges the document title\n add_theme_support( 'title-tag' );\n }", "title": "" }, { "docid": "8620c77b241f56a3da98c801deeaf942", "score": "0.7094018", "text": "public function theme_setup() {\n\t\t$this->require_dependencies();\n\t\tadd_action( 'init', array( $this, 'register_post_thumbnails' ) );\n\t\tadd_action( 'init', array( $this, 'register_theme_settings' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_fonts' ) );\n\t\tadd_action( 'admin_init', array( $this, 'hide_dashboard_meta' ) );\n\t\t// add_action( 'admin_bar_menu', array( $this, 'hide_admin_bar_items' ), 999 );\n\t\t// add_action( 'admin_menu', array( $this, 'remove_admin_pages' ) );\n\t\tadd_action( 'widgets_init', array( $this, 'register_sidebar' ) );\n\t\tadd_action( 'widgets_init', array( $this, 'unregister_widgets' ), 11 );\n\n\t\tadd_filter( 'admin_footer_text', array( $this, 'custom_dashboard_footer' ) );\n\t}", "title": "" }, { "docid": "8e975a46b26b46f34b825ee3963c0f7f", "score": "0.7087268", "text": "function custom_theme_setup() {\n include 'functions/clean-head.php';\n\n //flush_rewrite_rules();\n\n // SUPPORTS - Post Thumbnail, etc.\n // WP Supports\n include 'functions/wp-supports.php';\n\n\n // REGISTRATIONS\n // Menus\n include 'functions/register-menus.php';\n\n\n // CUSTOM SETTINGS\n // Login Page Styles\n include 'functions/custom-login-page.php';\n // Post Editor Styles\n include 'functions/custom-post-editor-styles.php';\n // Get thumbnail function\n include 'functions/get-thumbnail-src.php';\n\n\n // IMAGE SETTINGS\n // Image Upload Settings\n // include 'functions/image-upload-settings.php';\n // Image Output Settings\n include 'functions/image-output-settings.php';\n\n\n // ENQUEUES\n //Enqueue Scripts\n include 'functions/enqueue-scripts.php';\n\n\n // ADVANCED CUSTOM FIELDS\n //Create Options page\n include 'functions/acf-options.php';\n\n\n // HOUSEKEEPING\n //Remove unneeded ui from Admin screen\n include 'functions/remove-menu-items.php';\n\n // Character Limit\n //LImit characters on excerpts\n include 'functions/character-limit.php';\n\n // Add page slug to body tag classList\n include 'functions/body-tag-slug.php';\n}", "title": "" }, { "docid": "052d99122cf732677aa3f7ea0d6e1637", "score": "0.70845735", "text": "function redpanda_setup() {\n\t\tload_theme_textdomain( 'redpanda', get_template_directory() . '/languages' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\tset_post_thumbnail_size( 420, 420, true );\n\n\t\t// This theme uses wp_nav_menu() in two locations.\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t\t'header-primary' => __( 'Header Primary', 'redpanda' ),\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'custom-logo',\n\t\t\tarray(\n\t\t\t\t'height' => 72,\n\t\t\t\t'width' => 216,\n\t\t\t\t'flex-width' => true,\n\t\t\t\t'flex-height' => true,\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "8dfdeccfc89fc338bb7c7f980097f896", "score": "0.7076638", "text": "function tr_setup() {\n\t// launching operation cleanup\n\tadd_action('init', 'tr_head_cleanup');\n\t// remove WP version from RSS\n\tadd_filter('the_generator', 'tr_rss_version');\n\t// remove pesky injected css for recent comments widget\n\tadd_filter( 'wp_head', 'tr_remove_wp_widget_recent_comments_style', 1 );\n\t// clean up comment styles in the head\n\tadd_action('wp_head', 'tr_remove_recent_comments_style', 1);\n\t// clean up gallery output in wp\n\tadd_filter('gallery_style', 'tr_gallery_style');\n\n\t// enqueue base scripts and styles\n\tadd_action('wp_enqueue_scripts', 'tr_scripts_and_styles', 999);\n\t// launching this stuff after theme setup\n\ttr_theme_support();\n\n\t// adding sidebars to Wordpress (these are created in functions.php)\n\t//add_action( 'widgets_init', 'tr_register_sidebars' );\n\n\t// cleaning up random code around images\n\tadd_filter('the_content', 'tr_filter_ptags_on_images');\n}", "title": "" }, { "docid": "3591a295097d6b8ed206d2b9267fa15e", "score": "0.705388", "text": "public function setup() {\n\t\tdefine( 'CHILD_THEME_NAME', 'Vurn Press' );\n\t\tdefine( 'CHILD_THEME_URL', 'http://wp-needs.com/' );\n\t\tdefine( 'CHILD_THEME_VERSION', '0.0.1' );\n\n\t\tadd_theme_support( 'genesis-responsive-viewport' );\n\t\tadd_theme_support( 'genesis-after-entry-widget-area' );\n\t\tadd_theme_support( 'html5' );\n\t\tadd_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'inner', 'footer-widgets', 'footer' ) );\n\t\tremove_theme_support( 'genesis-menus' );\n\t\tadd_theme_support( 'genesis-footer-widgets', 3 );\n\n\t\tgenesis_unregister_layout( 'content-sidebar-sidebar' );\n\t\tgenesis_unregister_layout( 'sidebar-sidebar-content' );\n\t\tgenesis_unregister_layout( 'sidebar-content-sidebar' );\n\n\t\tadd_filter( 'genesis_edit_post_link', '__return_false' );\n\n\t\tunregister_sidebar( 'sidebar-alt' );\n\n\t\tadd_action( 'init', array( $this, 'add_sidebars' ) );\n\n\t\t// Add support for custom logo.\n\t\tadd_theme_support( 'custom-logo', array(\n\t\t\t'width'\t\t\t=> 351,\n\t\t\t'height'\t\t=> 120,\n\t\t\t'flex-width'\t=> true,\n\t\t\t'flex-height'\t=> true,\n\t\t) );\n\n\t\tadd_filter( 'genesis_attr_site-description', array( $this, 'add_site_description_class') );\n\n\t\tadd_filter( 'genesis_seo_title', array( $this, 'inline_logo' ), 10, 3 );\n\n\t\tif ( function_exists( 'add_image_size' ) ) { \n\t\t\tadd_image_size( 'property-list', 500, 300, true );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "333c69bda65b62579af172eb998f4e64", "score": "0.70367485", "text": "function carl_theme_setup() {\n\n\t// Add WP Thumbnail Support\n\tadd_theme_support('post-thumbnails');\n\t\n\t// Default thumbnail size\n\tset_post_thumbnail_size(150, 150, true);\n\tadd_image_size( 'low', 50, 50 );\n\t// Add RSS Support\n\tadd_theme_support('automatic-feed-links');\n\n\t// Add Support for WP Menus\n\tadd_theme_support( 'menus' );\n\t\n\t// Add Support for WP Controlled Title Tag\n\tadd_theme_support( 'title-tag' );\n\t\n\t// Add HTML5 Support\n\tadd_theme_support( 'html5', \n\t array( \n\t \t'comment-list', \n\t \t'comment-form', \n\t \t'search-form', \n\t ) \n\t);\n// Adding post format support\n\t add_theme_support( 'post-formats',\n\t\tarray(\n\t\t\t'aside', // title less blurb\n\t\t\t'gallery', // gallery of images\n\t\t\t'link', // quick link to other site\n\t\t\t'image', // an image\n\t\t\t'quote', // a quick quote\n\t\t\t'status', // a Facebook like status update\n\t\t\t'video', // video\n\t\t\t'audio', // audio\n\t\t\t'chat' // chat transcript\n\t\t)\n\t); \t\n}", "title": "" }, { "docid": "ed9d31fa24907e1c9bd9023fdd217a92", "score": "0.70332897", "text": "function setup_theme(){\n\t\tdefine('THEME_URL', get_template_directory_uri());\n\n\t add_theme_support( 'post-thumbnails' , array( 'post' ));\n\t add_post_type_support( 'post', 'excerpt' );\n\t}", "title": "" }, { "docid": "bc56d7e0aac19b90abf45a40d151866b", "score": "0.70223385", "text": "public function setup() {\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t* Let WordPress manage the document title.\n\t\t* By adding theme support, we declare that this theme does not use a\n\t\t* hard-coded <title> tag in the document head, and expect WordPress to\n\t\t* provide it for us.\n\t\t*/\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t* Enable support for Post Thumbnails on posts and pages.\n\t\t*\n\t\t* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t*/\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// This theme uses wp_nav_menu() in two locations.\n\t\tregister_nav_menus( array(\n\t\t\t'main' => 'Main menu'\n\t\t) );\n\n\t\t/*\n\t\t* Enable support for Post Formats.\n\t\t*\n\t\t* See: https://codex.wordpress.org/Post_Formats\n\t\t*/\n\t\t// add_theme_support( 'post-formats', array(\n\t\t// // 'aside',\n\t\t// // 'image',\n\t\t// // 'video',\n\t\t// // 'quote',\n\t\t// // 'link',\n\t\t// // 'gallery',\n\t\t// // 'audio'\n\t\t// ) );\n\t\t\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n\t\t) );\n\n\t\t// Add theme support for Custom Logo.\n\t\tadd_theme_support( 'custom-logo', array(\n\t\t\t'width' => 228,\n\t\t\t'height' => 57,\n\t\t\t'flex-width' => true,\n\t\t\t'flex-height' => false\n\t\t) );\n\n\t\tadd_theme_support( 'custom-background', array(\n\t\t\t'default-color' => '#ffffff'\n\t\t) );\n\n\t\tadd_post_type_support( 'fw-portfolio', 'comments' );\n\n\t\t$this->editor_styles = array(\n\t\t\t\tself::lib('bootstrap/css/bootstrap.min.css'),\n\t\t\t\tself::url('css/editor-style.css')\n\t\t\t);\n\t\t\n\t\tadd_editor_style( $this->editor_styles );\n\n\t}", "title": "" }, { "docid": "15c1c33003af211d89842d8a717eb4a1", "score": "0.7015024", "text": "function thim_setup() {\n\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on thim, use a find and replace\n\t\t * to change 'charitywp' to the name of your theme in all the template files\n\t\t */\n\t\tload_theme_textdomain( 'charitywp', get_template_directory() . '/languages' );\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t// This theme uses wp_nav_menu() in two location.\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => esc_html__( 'Primary Menu', 'charitywp' ),\n\t\t) );\n\n\t\tregister_nav_menus( array(\n\t\t\t'secondary' => esc_html__( 'Secondary Menu', 'charitywp' ),\n\t\t) );\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t/*\n\t\t * Enable support for Post Formats.\n\t\t * See http://codex.wordpress.org/Post_Formats\n\t\t */\n\t\tadd_theme_support( 'post-formats', array(\n\t\t\t'video',\n\t\t\t'gallery',\n\t\t) );\n\n\t\tadd_theme_support( \"title-tag\" );\n\t\t// Set up the WordPress core custom background feature.\n\t\tadd_theme_support( 'custom-background', apply_filters( 'thim_custom_background_args', array(\n\t\t\t'default-color' => 'ffffff',\n\t\t\t'default-image' => '',\n\t\t) ) );\n\n\t\tadd_post_type_support( 'page', 'excerpt' );\n\n\t\t// Add image size\n\t\tadd_image_size( 'thim-slider-posts-size', 370, 214, true );\n\t\tadd_image_size( 'thim-thumbnail', 120, 100, true );\n\n\t\t$args = array(\n\t\t\t'flex-width' => true,\n\t\t\t'width' => 1350,\n\t\t\t'flex-height' => true,\n\t\t\t'height' => 500,\n\t\t\t'default-image' => get_template_directory_uri() . '/images/bg_header.jpg',\n\t\t);\n\t\tadd_theme_support( 'custom-header', $args );\n\n\t\tadd_editor_style();\n\t}", "title": "" }, { "docid": "e2e31cdc7aeb391e321f1ad395afacaa", "score": "0.70147884", "text": "public static function action_themeSetup() {\n\t\t//load_theme_textdomain( 'twentysixteen' );\n\n\t\tSupport::addFeedLinks();\n\t\tSupport::addTitleTag();\n\n\t\t// Add custom logo feature for theme (Custom logo can be set from theme customization page)\n\t\tadd_theme_support('custom-logo', array(\n\t\t\t'height' => 150,\n\t\t\t'width' => 80,\n\t\t\t// 'flex-height' => true,\n\t\t\t// 'flex-width' => true\n\t\t));\n\n\t\tSupport::addPostThumbnails();\n\t\tadd_image_size('large', 1024, 830, true);\n\t\tadd_image_size('medium', 880, 530, true);\n\t\tadd_image_size('small', 640, 420, true);\n\t\tadd_image_size('thumbnail', 500, 500, true);\n\n\t\tregister_nav_menus(array(\n\t\t\t'main-nav-menu' => __('Main navigation menu', 'empress'),\n\t\t));\n\n\n\t\t// This feature allows themes to explicitly choose to apply HTML5 markup for search forms,\n\t\t// comment forms, comment lists, gallery and caption.\n\t\tadd_theme_support('html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t));\n\n\t\t// Add support for a list of default wordpress post formats, because new post formats\n\t\t// cannot be added to wp, these are a way to implement different types of post presentation\n\t\t// which should be compatible between any type of theme\n\t\tadd_theme_support('post-formats', array(\n\t\t\t'aside',\n\t\t\t'image',\n\t\t\t'video',\n\t\t\t'quote',\n\t\t\t'link',\n\t\t\t'gallery',\n\t\t\t'status',\n\t\t\t'audio',\n\t\t\t'chat',\n\t\t));\n\n\t\t// Add callback for custom TinyMCE editor stylesheets.\n\t\t// add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) );\n\n\t\t// This feature enables Selective Refresh for Widgets being managed within the Customizer.\n\t\t// This feature became available in WordPress 4.5.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\t}", "title": "" }, { "docid": "926d48a7682f042d685568c9ba85e007", "score": "0.7004241", "text": "function wp_theme_setup() {\n\t\t$language_folder = THEME_URL . '/languages';\n\t\tload_theme_textdomain( 'wp', $language_folder );\n\t\t/* Tu dong them link RSS len <head> **/\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/* Them post thumbnail */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/* Post Format */\n\t\tadd_theme_support( 'post-formats', array(\n\t\t\t'image',\n\t\t\t'video',\n\t\t\t'gallery',\n\t\t\t'quote',\n\t\t\t'link'\n\t\t) );\n\n\t\t/* Them title-tag */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/* Them custom background */\n\t\t$default_background = array(\n\t\t\t'default-color' => '#e8e8e8'\n\t\t);\n\t\tadd_theme_support( 'custom-background', $default_background );\n\n\t\t/* Them menu */\n\t\tregister_nav_menu( 'primary-menu', __('Primary Menu', 'wp') );\n\n\t\t/* Tao sidebar */\n\t\t$sidebar = array(\n\t\t\t'name' => __('Main Sidebar', 'wp'),\n\t\t\t'id' => 'main-sidebar',\n\t\t\t'description' => __('Default sidebar'),\n\t\t\t'class' => 'main-sidebar',\n\t\t\t'before_title' => '<h3 class=\"widgettitle\">',\n\t\t\t'after_title' => '</h3>'\n\t\t);\n\t\tregister_sidebar( $sidebar );\n\n\t}", "title": "" }, { "docid": "4b46bd614754a60707a82c5be4f3fcba", "score": "0.69771564", "text": "function prolix_theme_setup() {\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support( 'post-formats', array('image', 'video', 'link', 'gallery') );\n\t/* implement later: status/quote */\n}", "title": "" }, { "docid": "99a8815c414de90e9883d2162add13cf", "score": "0.69643515", "text": "function btk_theme_init() {\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/**\n\t\t * add thumbnails for all post types\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * add custom-logo in customizer\n\t\t */\n\t\tadd_theme_support( 'custom-logo' );\n\n\t\tadd_theme_support( 'menus' );\n\n\t\tregister_nav_menu( 'top-menu', 'Top Menu' );\n\t\tregister_nav_menu( 'main-menu', 'Main Menu' );\n\t\tregister_nav_menu( 'link-menu', 'Link Menu' );\n\n\t\t/**\n\t\t * add html5 support\n\t\t */\n\t\tadd_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );\n\n\t}", "title": "" }, { "docid": "7e32247b099f829476ffa0307dac74e5", "score": "0.6963999", "text": "function picturesque_theme_setup() {\n\n\t/* Get action/filter hook prefix. */\n\t$prefix = hybrid_get_prefix();\n\n\t/* Add theme support for core framework features. */\n\tadd_theme_support( 'hybrid-core-menus', array( 'primary', 'subsidiary' ) );\n\tadd_theme_support( 'hybrid-core-sidebars', array( 'primary' ) );\n\tadd_theme_support( 'hybrid-core-widgets' );\n\tadd_theme_support( 'hybrid-core-shortcodes' );\n\tadd_theme_support( 'hybrid-core-theme-settings', array( 'about', 'footer' ) );\n\tadd_theme_support( 'hybrid-core-drop-downs' );\n\tadd_theme_support( 'hybrid-core-template-hierarchy' );\n\t//add_theme_support( 'hybrid-core-seo' );\n\n\t/* Add theme support for framework extensions. */\n\tadd_theme_support( 'theme-layouts', array( '1c', '2c-l', '2c-r' ) );\n\tadd_theme_support( 'post-stylesheets' );\n\tadd_theme_support( 'dev-stylesheet' );\n\tadd_theme_support( 'loop-pagination' );\n\tadd_theme_support( 'get-the-image' );\n\tadd_theme_support( 'breadcrumb-trail' );\n\tadd_theme_support( 'cleaner-gallery' );\n\n\t/* Add theme support for WordPress features. */\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'post-formats', array( 'image', 'gallery' ) );\n\n\t/* Add support for WordPress custom background. */\n\tadd_theme_support( \n\t\t'custom-background',\n\t\tarray(\n\t\t\t'default-image' => trailingslashit( get_template_directory_uri() ) . 'images/bg.png',\n\t\t\t'wp-head-callback' => 'picturesque_custom_background_callback'\n\t\t)\n\t);\n\n\t/* Add support for WordPress custom header image. */\n\tadd_theme_support(\n\t\t'custom-header',\n\t\tarray(\n\t\t\t'wp-head-callback' => '__return_false',\n\t\t\t'admin-head-callback' => '__return_false',\n\t\t\t'header-text' => false,\n\t\t\t'default-image' => 'remove-header',\n\t\t\t'width' => 1050,\n\t\t\t'height' => 200\n\t\t)\n\t);\n\n\t/* Embed width/height defaults. */\n\tadd_filter( 'embed_defaults', 'picturesque_embed_defaults' );\n\n\t/* Set content width. */\n\thybrid_set_content_width( 600 );\n\n\t/* Filter the sidebar widgets. */\n\tadd_filter( 'sidebars_widgets', 'picturesque_disable_sidebars' );\n\tadd_action( 'template_redirect', 'picturesque_one_column' );\n\n\t/* Add classes to the comments pagination. */\n\tadd_filter( 'previous_comments_link_attributes', 'picturesque_previous_comments_link_attributes' );\n\tadd_filter( 'next_comments_link_attributes', 'picturesque_next_comments_link_attributes' );\n\n\t/* Wraps <blockquote> around quote posts. */\n\tadd_filter( 'the_content', 'picturesque_quote_content' );\n\n\t/* Adds the featured image to image posts if no content is found. */\n\tadd_filter( 'the_content', 'picturesque_image_content' );\n\n\t/* Filters the image/gallery post format archive galleries. */\n\tadd_filter( \"{$prefix}_post_format_archive_gallery_columns\", 'picturesque_archive_gallery_columns' );\n}", "title": "" }, { "docid": "8a4073d7cc5940931710470ad8f94bd8", "score": "0.6954778", "text": "public function init(){\n $this->disable_unwanted_wp();\n \n\t\t#yes, we need thumbnails\n add_theme_support( 'post-thumbnails' );\n\n\t\t#Register Post Types\n $this->register_post_types();\n\t\t\n\t\t#Taxonomies\n $this->register_taxonomies();\n\t\t\n\t\t#Rewrites\n $this->rewrites();\n \n $this->capabilities();\n\n #modify links - what's this?\n add_filter( 'post_type_link', array($this,'modify_links'), 10, 2 );\n add_action( 'wp_enqueue_scripts', array( $this, 'loadStyles' ));\n \n #remove xmlrpc / harden site.\n add_filter( 'xmlrpc_enabled' , '__return_false ' );\n \n \n }", "title": "" }, { "docid": "8acbb972f81ed8d74fdefc0d694c99eb", "score": "0.6940642", "text": "public function setup() {\n /*\n * Load Localisation files.\n *\n * Note: the first-loaded translation file overrides any following ones if the same translation is present.\n */\n\n // Loads wp-content/languages/themes/boilerpress-it_IT.mo.\n load_theme_textdomain( 'boilerpress', trailingslashit( WP_LANG_DIR ) . 'themes/' );\n\n // Loads wp-content/themes/child-theme-name/languages/it_IT.mo.\n load_theme_textdomain( 'boilerpress', get_stylesheet_directory() . '/languages' );\n\n // Loads wp-content/themes/boilerpress/languages/it_IT.mo.\n load_theme_textdomain( 'boilerpress', get_template_directory() . '/languages' );\n\n /**\n * Add default posts and comments RSS feed links to head.\n */\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n */\n add_theme_support( 'post-thumbnails' );\n\n /**\n * Enable support for site logo\n */\n add_theme_support( 'custom-logo', array(\n 'height' => 110,\n 'width' => 470,\n 'flex-width' => TRUE,\n ) );\n\n // This theme uses wp_nav_menu() in two locations.\n register_nav_menus( array(\n 'primary' => __( 'Primary Menu', 'boilerpress' ),\n 'secondary' => __( 'Secondary Menu', 'boilerpress' ),\n 'handheld' => __( 'Handheld Menu', 'boilerpress' ),\n ) );\n\n /*\n * Switch default core markup for search form, comment form, comments, galleries, captions and widgets\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n 'widgets',\n ) );\n\n // Setup the WordPress core custom background feature.\n add_theme_support( 'custom-background', apply_filters( 'boilerpress_custom_background_args', array(\n 'default-color' => apply_filters( 'boilerpress_default_background_color', 'ffffff' ),\n 'default-image' => '',\n ) ) );\n\n /**\n * Add support for the Site Logo plugin and the site logo functionality in JetPack\n * https://github.com/automattic/site-logo\n * http://jetpack.me/\n */\n add_theme_support( 'site-logo', array( 'size' => 'full' ) );\n\n // Declare WooCommerce support.\n add_theme_support( 'woocommerce' );\n\n // Declare support for title theme feature.\n add_theme_support( 'title-tag' );\n\n // Declare support for selective refreshing of widgets.\n add_theme_support( 'customize-selective-refresh-widgets' );\n }", "title": "" }, { "docid": "d265bd6699208306ce87f7e9ee1b8810", "score": "0.6902909", "text": "function towers_setup() {\n\n\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\tadd_editor_style();\n\t\n\t// This theme adds support for page excerpts\n\tadd_post_type_support( 'page', 'excerpt' );\n\n\t// This theme uses post thumbnails\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// Add default posts and comments RSS feed links to head\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Add support for wp_nav_menu() \n\tregister_nav_menus( array(\n\t\t'secondary' => __( 'Sidebar Navigation', 'towers' ),\n\t) );\n\n\t// Can set specified sizes for thumbnails\n\tadd_image_size( 'page-feature', 558, 197, true ); // Page Feature Img\n\tadd_image_size( 'page-feature-wide', 740, 197, true ); // Page Feature Img - Wide\n\t\n global $en;\n global $ru;\n global $zh;\n global $ko;\n\n include('locale/en.php');\n include('locale/ru.php');\n include('locale/zh.php');\n include('locale/ko.php');\n}", "title": "" }, { "docid": "92d5ca8860526668c70086493f3b8644", "score": "0.68892854", "text": "function vitheme_setup() {\n\n /**\n * Make theme available for translation.\n * Translations can be placed in the /languages/ directory.\n */\n load_theme_textdomain( 'vi-theme', get_template_directory() . '/languages' );\n\n /**\n * Add default posts and comments RSS feed links to <head>.\n */\n add_theme_support( 'automatic-feed-links' );\n\n /**\n * Enable support for post thumbnails and featured images.\n */\n add_theme_support( 'post-thumbnails' );\n\n /**\n * Add support for two custom navigation menus.\n */\n register_nav_menus( array(\n 'primary' => __( 'Primary Menu', 'vi-theme' ),\n 'secondary' => __('Secondary Menu', 'vi-theme' )\n ) );\n\n /**\n * Enable support for the following post formats:\n * aside, gallery, quote, image, and video\n */\n add_theme_support( 'post-formats', array ( 'aside', 'gallery', 'quote', 'image', 'video' ) );\n }", "title": "" }, { "docid": "1564753b77df117c2044bfbfc27c7d73", "score": "0.68883735", "text": "protected function setup_features() {\n\t\t/**\n\t\t * Initialize theme customize\n\t\t */\n\t\tMountain_ThemeCustomize::instance();\n\n\t\t/**\n\t\t * Initialize custom sidebars manager\n\t\t */\n\t\tMountain_Sidebars::instance();\n\t\t\n\t\t/**\n\t\t * Initialize theme breadcrumb\n\t\t */\n\t\tMountain_Breadcrumb::instance();\n\n\t\t/**\n\t\t * Initialize search feature\n\t\t */\n\t\tMountain_Search::instance();\n\n\t\t/**\n\t\t * Initialize support for WooCommerce\n\t\t */\n\t\tMountain_Woocommerce::instance();\n\n\t\t/**\n\t\t * Initialize support for Projects\n\t\t */\n\t\tMountain_Projects::instance();\n\t}", "title": "" }, { "docid": "11d246ea957b6bf8bffcbf313ec5f99b", "score": "0.6880821", "text": "function hb_setup_theme( ) {\n /*\n * THEME SCRIPTS & STYLES\n *************************************************************************/\n add_action('wp_enqueue_scripts', 'hb_enqueue_assets');\n\n // Requires (and allows quick install/activation) of plugin dependencies\n $path = THEME_PATH \n . '/includes/tgm-plugin-activation/class-tgm-plugin-activation.php';\n if (file_exists($path)) {\n require_once $path;\n add_action('tgmpa_register', 'hb_register_required_plugins');\n }\n\n // If we're not in dev mode, turn on ACF_LITE\n if (defined('WP_DEBUG') && WP_DEBUG!==TRUE) {\n define('ACF_LITE', TRUE);\n }\n\n /*\n * CUSTOM IMAGE SIZES\n * ------------------\n * Every image size used in the layout should have a custom image size \n * associated with it. Set them here.\n *************************************************************************/\n add_image_size( \"title-image\", 1600, 1000, true );\n}", "title": "" }, { "docid": "e4fae32e93836214877e9f5d93080342", "score": "0.6860874", "text": "function theme_setup(){\n // WordPress Titles\n add_theme_support( 'title-tag' );\n // Support Featured Images\n add_theme_support( 'post-thumbnails' );\n // Adding menu to appear under appearence \n add_theme_support( 'menus' );\n}", "title": "" }, { "docid": "3556d9a6f6778bac6e1f8a56cde07beb", "score": "0.68603474", "text": "function setup() {\n\t\tload_theme_textdomain( 'inp-mc', get_stylesheet_directory_uri() . '/languages' );\n\n\t\t/**\n\t\t * Add default posts and comments RSS feed links to head.\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/**\n\t\t * Let WordPress manage the document title.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/**\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\tadd_image_size( 'full-width', 1920, 1080, false );\n\n\t\t/**\n\t\t * Register navigation menus.\n\t\t */\n\t\tregister_nav_menus(\n\t\t\t[\n\t\t\t\t'primary' => esc_html__( 'Primary Menu', 'inp-mc' ),\n\t\t\t\t'footer' => esc_html__( 'Footer Menu', 'inp-mc' ),\n\t\t\t]\n\t\t);\n\n\t\t/**\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'html5',\n\t\t\t[\n\t\t\t\t'search-form',\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t]\n\t\t);\n\n\t\t/**\n\t\t * Set up the WordPress core custom background feature.\n\t\t */\n\t\t$default_page_background_image = apply_filters( 'inp_mc_default_page_background_image', get_stylesheet_directory_uri() . '/assets/images/page-background-default.jpg' );\n\n\t\tadd_theme_support(\n\t\t\t'custom-background',\n\t\t\tapply_filters(\n\t\t\t\t'inp_mc_custom_background_args',\n\t\t\t\t[\n\t\t\t\t\t'default-color' => 'ffffff',\n\t\t\t\t\t'default-image' => $default_page_background_image,\n\t\t\t\t]\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * Add theme support for selective refresh for widgets.\n\t\t */\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\t}", "title": "" }, { "docid": "46be6fa5be32edefabfa7ab6408b9b8b", "score": "0.68455136", "text": "function ltsbs_theme_setup()\n{\n\t/*\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n\tadd_theme_support('title-tag');\n\n\t// This theme uses wp_nav_menu() in two locations.\n\tregister_nav_menus(array(\n\t\t'main_menu' => __('Main Menu'),\n\t\t'footer_menu' => __('Footer Menu'),\n\t));\n\n\t/*\n\t * Enable support for Post Thumbnails on posts and pages.\n\t *\n\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t */\n\tadd_theme_support('post-thumbnails');\n\n\t/*\n\t * Enable support for Post Formats.\n\t *\n\t * See: https://wordpress.org/support/article/post-formats/\n\t */\n\tadd_theme_support('post-formats', array(\n\t\t'aside',\n\t\t'gallery',\n\t\t'link'\n\t));\n}", "title": "" }, { "docid": "a16789175b2b5569273a106f1bcdcce7", "score": "0.6835433", "text": "function abide_setup() {\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Primary Menu', 'abide' ),\n\t\t) );\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t/*\n\t\t * Adding Thumbnail basic support\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t\n\t\t// Add support for responsive embedded content.\n\t\tadd_theme_support( 'responsive-embeds' );\n\n\t}", "title": "" }, { "docid": "7a19f0e94d95677979fbb9576b56eaa5", "score": "0.6832726", "text": "function theme_setup(){\n\n\t\t// sidebars\n\t\tregister_sidebars(1, array(\n\t\t\t'name' => 'Main Sidebar',\n\t\t\t'id'\t=> \"main-sidebar\",\n\t\t\t'before_widget' => '<div class=\"widget-item\">',\n\t\t\t'after_widget' => '</div>',\n\t\t\t'before_title' => '<h3 class=\"widget-title\">',\n\t\t\t'after_title' => '</h3>',\n\t ));\n\n\t\t// custom nav menus\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t 'public' => 'Public',\n\t\t\t 'private'\t=>\t'Logged In'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "d95cbac355dc0059915b41665dbceaf2", "score": "0.6828243", "text": "function rock_star_setup() {\n\t\t/**\n\t\t * Get Theme Options Values\n\t\t */\n\t\t$options \t= rock_star_get_theme_options();\n\n\t\t/**\n\t\t * Make theme available for translation\n\t\t * Translations can be filed in the /languages/ directory\n\t\t * If you're building a theme based on Rock Star, use a find and replace\n\t\t * to change 'rock-star' to the name of your theme in all the template files\n\t\t */\n\t\tload_theme_textdomain( 'rock-star', get_template_directory() . '/languages' );\n\n\t\t/**\n\t\t * Add default posts and comments RSS feed links to head\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/**\n\t\t * Enable support for Post Thumbnails on posts and pages\n\t\t *\n\t\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * Add excerpt box in pages\n\t\t */\n\t\tadd_post_type_support( 'page', 'excerpt' );\n\n\t\t// used in Header Highlight small image, Featured Content, Post Thumbnail( Except Sticky ) Ratio 4:3\n\t\tset_post_thumbnail_size( 420, 280, true );\n\n\t\t// Add Rock Star's custom image sizes\n\t\tadd_image_size( 'rock-star-slider', 1920, 1080, true ); // Used for Featured slider\n\n\t\t//Archive Images for Archive Image Top Ratio 4:3\n\t\tadd_image_size( 'rock-star-featured', 840, 630, true);\n\n\t\tadd_image_size( 'rock-star-landscape', 385, 257, true ); // used in Archive Image Left/Right Ratio 4:3\n\n\t\t//Small Images for Featured posts widget and widgets 90x68\n\t\tadd_image_size( 'rock-star-small', 90, 68, true );\n\n\n\t\t/**\n\t\t * This theme uses wp_nav_menu() in one location.\n\t\t */\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => esc_html__( 'Primary Menu', 'rock-star' ),\n\t\t) );\n\n\t\t/**\n\t\t * Enable support for Post Formats\n\t\t */\n\t\tadd_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );\n\n\t\t/**\n\t\t * Setup the WordPress core custom background feature.\n\t\t */\n\t\t$default_options = rock_star_get_default_theme_options(); //Get Default Theme Options Values\n\n\t\t/**\n\t\t * Setup the WordPress core custom background feature.\n\t\t */\n\t\t$bg_defaults = array(\n\t\t\t'default-repeat' => 'no-repeat',\n\t\t\t'default-position-x' => 'center',\n\t\t\t'default-attachment' => 'fixed',\n\t\t);\n\n\t\tif ( 'dark' == $options['color_scheme'] ) {\n\t\t\t$default_bg_color = rock_star_get_default_theme_options();\n\n\t\t\t$bg_defaults['default-image'] = trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/gallery/background-dark-1920x1080.jpg';\n\t\t}\n\t\telseif ( 'light' == $options['color_scheme'] ) {\n\t\t\t$default_bg_color = rock_star_default_light_color_options();\n\n\t\t\t$bg_defaults['default-image'] = trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/gallery/background-light-1920x1080.jpg';\n\n\t\t}\n\n\t\t$bg_defaults['default-color'] = $default_bg_color['background_color'];\n\n\t\tadd_theme_support( 'custom-background', apply_filters( 'rock_star_custom_background_args', $bg_defaults ) );\n\n\t\t/**\n\t\t * Setup Editor style\n\t\t */\n\t\tadd_editor_style( 'css/editor-style.css' );\n\n\t\t/**\n\t\t * Setup title support for theme\n\t\t * Supported from WordPress version 4.1 onwards\n\t\t * More Info: https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/**\n\t\t * Setup Custom Logo Support for theme\n\t\t * Supported from WordPress version 4.5 onwards\n\t\t * More Info: https://make.wordpress.org/core/2016/03/10/custom-logo/\n\t\t */\n\t\tadd_theme_support( 'custom-logo' );\n\n\t\t/**\n\t\t * Setup Infinite Scroll using JetPack if navigation type is set\n\t\t */\n\t\t$pagination_type\t= $options['pagination_type'];\n\n\t\tif ( 'infinite-scroll-click' == $pagination_type ) {\n\t\t\tadd_theme_support( 'infinite-scroll', array(\n\t\t\t\t'type'\t\t=> 'click',\n\t\t\t\t'container' => 'archive-blog-wrapper',\n\t\t\t\t'wrapper' => false,\n\t\t\t\t'footer' => 'page'\n\t\t\t) );\n\t\t}\n\t\telseif ( 'infinite-scroll-scroll' == $pagination_type ) {\n\t\t\t//Override infinite scroll disable scroll option\n \tupdate_option('infinite_scroll', true);\n\n\t\t\tadd_theme_support( 'infinite-scroll', array(\n\t\t\t\t'type' => 'scroll',\n\t\t\t\t'container' => 'archive-blog-wrapper',\n\t\t\t\t'wrapper' => false,\n\t\t\t\t'footer' => 'page'\n\t\t\t) );\n\t\t}\n\t}", "title": "" }, { "docid": "2c28d3218c95909cbed5842039fd3bda", "score": "0.68074274", "text": "function danielcowen_setup(){\n\t\t\t\n\t\t\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\t\t\tadd_editor_style();\n\t\t\t\n\t\t\t// This theme uses post thumbnails\n\t\t\tadd_theme_support( 'post-thumbnails' );\n\t\t\t\n\n\t\t}", "title": "" }, { "docid": "db31033a2fcc76c8aa9dd9e345bcd727", "score": "0.6803873", "text": "function theme_setup() {\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'title-tag' );\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support(\n\t\t'html5', array(\n\t\t'search-form',\n\t\t'gallery'\n\t\t)\n\t);\n\n\t// This theme uses wp_nav_menu() in three locations.\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'primary' => esc_html__( 'Primary Menu', 'tenup' ),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "fed62fcbc8d0df04c56866266ef3aa97", "score": "0.6800154", "text": "protected function setup() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'loadTextdomain' ) );\n\t\tadd_action( 'after_switch_theme', array( $this, 'activated' ) );\n\t\tadd_action( 'switch_theme', array( $this, 'deactivated' ) );\n\t\t$this->definitions();\n\t\t$this->actionsAndFilters();\n\t\tadd_action( 'admin_init', [ $this, 'menusAndSettings' ] );\n\t}", "title": "" }, { "docid": "761a6265556e658c797a1260bce9724d", "score": "0.67877114", "text": "public function theme_setup() {\n\t\t\t/**\n\t\t\t * Set the content width based on the theme's design and stylesheet.\n\t\t\t */\n\t\t\tif ( ! isset( $content_width ) ) {\n\t\t\t\t$content_width = 640; /* pixels */\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Make theme available for translation.\n\t\t\t * Translations can be filed in the /languages/ directory.\n\t\t\t * If you're building a theme based on Golfatica, use a find and replace\n\t\t\t * to change $this->text_domain to the name of your theme in all the template files\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tload_theme_textdomain( $this->text_domain, get_template_directory() . '/languages' );\n\n\t\t\t// Add default posts and comments RSS feed links to head.\n\t\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t\t/**\n\t\t\t * Let WordPress manage the document title.\n\t\t\t * By adding theme support, we declare that this theme does not use a\n\t\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t\t * provide it for us.\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tadd_theme_support( 'title-tag' );\n\n\t\t\t/**\n\t\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t\t *\n\t\t\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t\t/**\n\t\t\t * This theme uses wp_nav_menu() in one location.\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tregister_nav_menus( array(\n\t\t\t\t'primary' => __( 'Primary Menu', $this->text_domain ),\n\t\t\t) );\n\n\t\t\t/**\n\t\t\t * Switch default core markup for search form, comment form, and comments\n\t\t\t * to output valid HTML5.\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tadd_theme_support( 'html5', array(\n\t\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',\n\t\t\t) );\n\n\t\t\t/**\n\t\t\t * Enable support for Post Formats.\n\t\t\t * @link http://codex.wordpress.org/Post_Formats\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tadd_theme_support( 'post-formats', array(\n\t\t\t\t'aside', 'image', 'video', 'quote', 'link', 'gallery'\n\t\t\t) );\n\n\t\t\t/**\n\t\t\t * Set up the WordPress core custom background feature.\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\tadd_theme_support( 'custom-background', apply_filters( 'golfatica_custom_background_args', array(\n\t\t\t\t'default-color' => 'ffffff',\n\t\t\t\t'default-image' => '',\n\t\t\t) ) );\n\t\t}", "title": "" }, { "docid": "2233ccbd71797d1ee7ba770eaba3aa1d", "score": "0.677972", "text": "function launch_setup() {\n\tadd_theme_support('title-tag');\n\n // Add custom background support. http://codex.wordpress.org/Custom_Backgrounds\n add_theme_support('custom-background', array(\n \t'default-color' => 'f5f5f5',\n 'default-image' => get_stylesheet_directory_uri() . '/img/hero-bg.jpg',\n 'default-position-x' => 'center',\n 'default-repeat' => 'no-repeat',\n 'default-attachment' => 'fixed'\n ));\n}", "title": "" }, { "docid": "2fa2d583be5121cff90f63acfcb09150", "score": "0.67693096", "text": "function etheme_theme_setup(){\n add_theme_support( 'post-formats', array( 'video', 'quote', 'gallery' ) );\n add_theme_support( 'post-thumbnails', array('post', 'page', 'product', 'etheme_portfolio') );\n add_theme_support( 'automatic-feed-links' );\n add_theme_support( 'title-tag' );\n\n // customizer quick edit widgets \n add_theme_support( 'customize-selective-refresh-widgets' );\n\n // header-footer-elementor plugin\n // https://github.com/Nikschavan/header-footer-elementor/\n // https://wordpress.org/plugins/header-footer-elementor/\n add_theme_support( 'header-footer-elementor' );\n }", "title": "" }, { "docid": "c6e9d7fe1f675c7f9e8557ef5c505e37", "score": "0.67609036", "text": "function karta_setup() {\n\n\t\t/**\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on karta, use a find and replace\n\t\t * to change 'karta' to the name of your theme in all the template files.\n\t\t */\n\t\tload_theme_textdomain( 'karta', get_template_directory() . '/languages' );\n\n\t\t/**\n\t\t * Add default posts and comments RSS feed links to head.\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/**\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/**\n\t\t * Add custom image sizes.\n\t\t */\n\t\tadd_image_size( 'karta-grid-3', 351, 9999 );\n\t\tadd_image_size( 'karta-grid-2', 460, 9999 );\n\n\t\t/**\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * This theme uses wp_nav_menu() in one location.\n\t\t */\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => esc_html__( 'Primary', 'karta' ),\n\t\t\t\n\t\t) );\n\n\t\t/**\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t/**\n\t\t * Enable support for Post Formats.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/post-formats/\n\t\t */\n\t\tadd_theme_support( 'post-formats', array(\n\t\t\t'link',\n\t\t) );\n\n\t\t/**\n\t\t * Enable support for Custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support( 'custom-logo', array(\n\t\t\t'height' => 200,\n\t\t\t'width' => 200,\n\t\t\t'flex-height' => true,\n\t\t\t'flex-width' => true,\n\t\t\t'header-text' => array( 'site-description' ),\n\t\t) );\n\n\t\t// Add editor style.\n\t\tadd_editor_style( array( get_template_directory_uri() . '/admin/css/karta-editor.css' , '//fonts.googleapis.com/css?family=Work+Sans:400,500,600,700,800' ) ) ;\n\t}", "title": "" }, { "docid": "624c5e84d8764184245f9221ee28cb79", "score": "0.6757001", "text": "function themeSetup(){\n $lang_dir = THEMEROOT . '/languages';\n load_theme_textdomain( 'm4h', $lang_dir );\n\n /**\n * Add support for post formats.\n */\n add_theme_support( 'post-formats',\n array(\n 'gallery',\n 'link',\n 'image',\n 'quote',\n 'video',\n 'audio'\n )\n );\n\n /**\n * Add support for automatic feed links.\n */\n add_theme_support( 'automatic-feed-links' );\n\n /**\n * Add support for post thumbnails.\n */\n add_theme_support( 'post-thumbnails' );\n\n /**\n * Register nav menus.\n */\n register_nav_menus(\n array(\n 'main-menu' => __( 'Main Menu', 'socks' )\n )\n );\n /**\n * Add title tag support\n */\n add_theme_support( 'title-tag' );\n }", "title": "" }, { "docid": "0f2f74af11ad3f57553e303f46171ad6", "score": "0.6735422", "text": "function twentyten_setup() {\n\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\tadd_editor_style();\n\n\t// Add featured thumbnails to the index, and header.\n\tif ( function_exists( 'add_image_size' ) ) add_theme_support( 'post-thumbnails' );\n\tif ( function_exists( 'add_image_size' ) ) {\n\t\tadd_image_size( 'banners', 2000, 9999);\n\t\tadd_image_size( 'archive-squares', 400, 400, true);\n\t}\n\n\t// Add default posts and comments RSS feed links to head\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Make theme available for translation\n\t// Translations can be filed in the /languages/ directory\n\tload_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' );\n\n\t$locale = get_locale();\n\t$locale_file = TEMPLATEPATH . \"/languages/$locale.php\";\n\tif ( is_readable( $locale_file ) )\n\t\trequire_once( $locale_file );\n}", "title": "" }, { "docid": "64ba6e1cdbb0d36340162fc13b7ed0af", "score": "0.6713932", "text": "function cookingwp_setup() {\n\n /*\n * Make theme available for translation.\n * Translations can be filed in the /languages/ directory.\n * If you're building a theme based on CookingWp, use a find and replace\n * to change 'cookingwp' to the name of your theme in all the template files\n */\n load_theme_textdomain( 'cookingwp', get_template_directory() . '/languages' );\n\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n */\n add_theme_support( 'post-thumbnails', array( 'post' ) ); // Posts only\n add_image_size( 'blog-slide', 800, 500, true );\n\n // This theme uses wp_nav_menu() in two location.\n register_nav_menus( array(\n 'main-menu' => __( 'Main Menu', 'cookingwp' ),\n ) );\n\n register_nav_menus( array(\n 'footer-menu' => __( 'Footer Menu', 'cookingwp' ),\n ) );\n\n // Enable support for Post Formats.\n add_theme_support( 'post-formats', array( 'aside','audio','chat','gallery','image','link','quote','status','video' ) );\n\n // Enable support for HTML5 markup.\n add_theme_support( 'html5', array(\n 'comment-list',\n 'search-form',\n 'comment-form',\n 'gallery',\n ) );\n\n add_editor_style('');\n\n // Set the content width based on the theme's design and stylesheet.\n if ( ! isset( $content_width ) )\n $content_width = 1170;\n }", "title": "" }, { "docid": "46d8833c5da9bab2435aa2d9d14ba88e", "score": "0.67070436", "text": "function pronamic_setup() {\n\t/* Make theme available for translation */\n\tload_theme_textdomain( 'pronamic', get_template_directory() . '/languages' );\n\n\t/* Editor style */\n\tadd_editor_style();\n\n\t/* Add theme support */\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'post-formats', array( 'image', 'video' ) );\n\tadd_theme_support( 'post-thumbnails' );\n\n\t/* Register navigation menu's */\n\tregister_nav_menus( array( \n\t\t'primary' => __( 'Primary Menu', 'pronamic' ),\n\t\t'utility' => __( 'Utility Menu', 'pronamic' )\n\t) );\n\n\t/* Add image sizes */\n\tadd_image_size( 'featured', 620, 480, true );\n}", "title": "" }, { "docid": "cd7011cd0e4940a32737d2c3900440d6", "score": "0.66986895", "text": "function allthetheme_setup() {\n\t\tload_theme_textdomain( 'allthetheme', get_template_directory() . '/languages' );\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\tadd_theme_support( 'structured-post-formats', array( 'link', 'video' ) );\n\t\tadd_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'quote', 'status' ) );\n\t\tregister_nav_menu( 'primary', __( 'Navigation Menu', 'allthetheme' ) );\n\t\tadd_theme_support( 'post-thumbnails' );\n\t}", "title": "" }, { "docid": "3a7aec3d4b8b74b9a5a786f260ae6e18", "score": "0.6696379", "text": "function lum_setup() {\n\tload_theme_textdomain( 'lum' );\n\n /*\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n add_theme_support('title-tag');\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n */\n add_theme_support('post-thumbnails');\n\n\tadd_image_size( 'lum-featured-image', 2000, 1200, true );\n\n\tadd_image_size( 'lum-thumbnail-avatar', 100, 100, true );\n\n /*\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n}", "title": "" }, { "docid": "ad6a7d3ae76b368cddbff3dfd9ec6a1c", "score": "0.66878176", "text": "function harmonica_theme_setup() {\n\n\t//remove_theme_mods();\n\n\t/* Load harmonica functions */\n\trequire get_template_directory() . '/lib/functions/hooks.php';\n\tadd_theme_support( 'title-tag' ); \n\t\n\t/* Load scripts. */\n\tadd_theme_support( \n\t\t'harmonica-scripts', \n\t\tarray( 'comment-reply' ) \n\t);\n\t\n\tadd_theme_support( 'post-thumbnails' );\n\t\n\tadd_theme_support( 'harmonica-theme-settings' );\n\n\tadd_theme_support( 'harmonica-content-archives' );\n\t\t\n\t/* implement editor styling, so as to make the editor content match the resulting post output in the theme. */\n\tadd_editor_style();\n\n\t/* Add default posts and comments RSS feed links to <head>. */\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t/* Enable wraps */\n\tadd_theme_support( 'harmonica-wraps' );\n\n\t/* Enable custom post */\n\tadd_theme_support( 'harmonica-custom-post' );\n\t\n\t/* Enable custom css */\n\tadd_theme_support( 'harmonica-custom-css' );\n\t\n\t/* Enable custom header */\n\t$header = array(\n\t'default-image'\t\t => get_theme_file_uri('/images/header.jpg'),\n\t'random-default'\t\t => false,\n\t'width'\t\t\t\t => '1920px',\n\t'height'\t\t\t\t => '650px',\n\t'flex-height'\t\t\t=> false,\n\t'flex-width'\t\t\t => false,\n\t'default-text-color'\t => '',\n\t'header-text'\t\t\t=> true,\n\t'uploads'\t\t\t\t=> true,\n\t'wp-head-callback'\t => '',\n\t'admin-head-callback'\t=> '',\n\t'admin-preview-callback' => '',\n);\n\tadd_theme_support( 'custom-header' , $header);\n\t\n\t/* Handle content width for embeds and images. */\n\tharmonica_set_content_width( 700 );\n\nrequire (get_template_directory() . \"/lib/functions/harmonica-settings.php\");\n}", "title": "" }, { "docid": "87708184c6aa7410f2a13fa9ea6dce2b", "score": "0.66775024", "text": "public function setup() {\n\t\t$theme = wp_get_theme();\n\n\t\tif (\n\t\t\t'Storefront' == $theme->name || 'storefront' == $theme->template\n\t\t\t&&\n\t\t\tapply_filters( 'sfx_telephone_supported', true )\n\t\t) {\n\n\t\t\t$this->admin = new SFXTP_Admin( $this->token, $this->plugin_url, $this->plugin_path );\n\t\t\t$this->public = new SFXTP_Public( $this->token, $this->plugin_url, $this->plugin_path );\n\n\t\t\t// Hide the 'More' section in the customizer\n\t\t\tadd_filter( 'storefront_customizer_more', '__return_false' );\n\t\t}\n\t}", "title": "" }, { "docid": "efd2b754f35b3e7d651743e835cce3ad", "score": "0.6666946", "text": "function repairbuddy_theme_after_setup() {\n\t add_theme_support('automatic-feed-links');\n\t \n\t // Add theme support for Featured Images\n\t add_theme_support('post-thumbnails');\n\t set_post_thumbnail_size(740, 475, true);\n\n\t // Add theme support for HTML5 Semantic Markup\n\t add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );\n\t \n\t // Add theme support for document Title tag\n\t add_theme_support('title-tag');\n\t // Add theme support for menus\n\t add_theme_support('menus');\n\t}", "title": "" }, { "docid": "8089087b1c15718b7ab0ba72a6f6ce7b", "score": "0.6644147", "text": "function basic_theme_setup() {\n // Generate wordpress support for menus.\n add_theme_support('menus');\n // Generate a default menu\n register_nav_menu('primary', 'Primary Header Navigation');\n register_nav_menu('secondary', 'Footer Navigation');\n\n /*\n ===================================\n Activate theme support functions\n ===================================\n */\n // Enable custom background support, allowing users to add a custom background to their site.\n add_theme_support('custom-background');\n // Enable custom header support, allowing users to add a custom header image to their site.\n add_theme_support( 'custom-header');\n // Enable post thumbnails, allowing users to add their custom thumbnails to their posts\n add_theme_support('post-thumbnails'); \n // Enable post formats, allowing for different formats for different posts\n add_theme_support('post-formats', array('aside', 'image', 'video'));\n // Enable html5 search support\n add_theme_support('html5', array('search-form'));\n}", "title": "" }, { "docid": "0bcf57e53b482c94bcc8c5977b01605e", "score": "0.6632539", "text": "function <%= themeNameSpace %>_setup() {\n\t\tload_theme_textdomain( '<%= themeNameSpace %>', get_template_directory() . '/languages' );\n\t\t// add_theme_support( 'automatic-feed-links' );\n\t\t// add_theme_support( 'structured-post-formats', array( 'link', 'video' ) );\n\t\t// add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'quote', 'status' ) );\n\t\tregister_nav_menu( 'primary', __( 'Navigation Menu', '<%= themeNameSpace %>' ) );\n\t\tadd_theme_support( 'post-thumbnails' );\n\t}", "title": "" }, { "docid": "ce77969624d90b977f6bb5459c404d69", "score": "0.6623858", "text": "public function initialize() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'action_add_editor_support' ) );\n\t}", "title": "" }, { "docid": "c59e7ca5b5573ab8e0dc2733e5c06112", "score": "0.6618541", "text": "public function setup_features() {\n\n /**\n * Suporte de linguagem para Odin\n */\n load_theme_textdomain( 'odin', get_template_directory() . '/languages' );\n\n /**\n * Registrar Menus\n */\n // register_nav_menus(array(\n // // 'main-menu' => 'Main Menu'\n // ));\n\n /*\n * Adicionar suporte à Imagem Destacada\n */\n add_theme_support( 'post-thumbnails' );\n\n /**\n * Adicionar Feeds automaticamente\n */\n add_theme_support( 'automatic-feed-links' );\n\n /**\n * Support de CSS pesonalizado para o editor\n */\n add_editor_style( get_template_directory_uri() . '/admin/public/css/editor-style.css' );\n\n /*\n * Buscar página que utiliza determinado template\n */\n add_filter( 'get_page_by_template' , array( $this , 'get_page_by_template' ) , 10 , 1 );\n\n }", "title": "" }, { "docid": "1200587ea554d8ccecdbf23d2cfeb082", "score": "0.66160905", "text": "function <%= ThemeUnderscores %>_setup() {\n\t/*\n\t * Make theme available for translation.\n\t * Translations can be filed in the /languages/ directory.\n\t * If you're building a theme based on <%= ThemeFolder %>, use a find and replace\n\t * to change '<%= ThemeFolder %>' to the name of your theme in all the template files\n\t */\n\tload_theme_textdomain( '<%= ThemeFolder %>', get_template_directory() . '/languages' );\n\n\t// Add default posts and comments RSS feed links to head.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t/*\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n\tadd_theme_support( 'title-tag' );\n\n\t/*\n\t * Enable support for Post Thumbnails on posts and pages.\n\t *\n\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menus( array(\n\t\t'primary' => esc_html__( 'Primary Menu', '<%= ThemeFolder %>' ),\n\t) );\n\n\t/*\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n\t/*\n\t * Enable support for Post Formats.\n\t * See http://codex.wordpress.org/Post_Formats\n\t */\n\tadd_theme_support( 'post-formats', array(\n\t\t'aside',\n\t\t'image',\n\t\t'video',\n\t\t'quote',\n\t\t'link',\n\t) );\n\n\t// Set up the WordPress core custom background feature.\n\tadd_theme_support( 'custom-background', apply_filters( '<%= ThemeUnderscores %>_custom_background_args', array(\n\t\t'default-color' => 'ffffff',\n\t\t'default-image' => '',\n\t) ) );\n}", "title": "" }, { "docid": "83055507782103ca9858bf9f52c565e0", "score": "0.6614833", "text": "function schoolstudy_setup()\n\t{\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on schoolstudy, use a find and replace\n\t\t * to change 'schoolstudy' to the name of your theme in all the template files.\n\t\t */\n\t\tload_theme_textdomain('schoolstudy', get_template_directory() . '/languages');\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support('automatic-feed-links');\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support('title-tag');\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support('post-thumbnails');\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus(array(\n\t\t\t'menu-1' => esc_html__('Первичный', 'schoolstudy'),\n\t\t));\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support('html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t));\n\n\t\t// Set up the WordPress core custom background feature.\n\t\tadd_theme_support('custom-background', apply_filters('schoolstudy_custom_background_args', array(\n\t\t\t'default-color' => 'ffffff',\n\t\t\t'default-image' => '',\n\t\t)));\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support('customize-selective-refresh-widgets');\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support('custom-logo', array(\n\t\t\t'height' => 250,\n\t\t\t'width' => 250,\n\t\t\t'flex-width' => true,\n\t\t\t'flex-height' => true,\n\t\t));\n\t}", "title": "" }, { "docid": "bd8ed23309d48d5f59709d34ca838e10", "score": "0.66134953", "text": "function matchmaking_setup() {\n\n\t\t/* Adds dynamic title */ \n\t\t\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/* Support for featured image */\n add_theme_support( 'post-thumbnails' );\n \n // lägger till custom storlek på featured image för ikonerna\n add_image_size( 'icons', 9999, 169 ); // unlimited width and 169 px height\n\n // funktionalitet för custom header \n /* \n$args = array(\n\t'width' => 980,\n\t'height' => 600,\n\t'default-image' => get_template_directory_uri() . '/images/header.jpg',\n\t'uploads' => true,\n);\nadd_theme_support( 'custom-header', $args );\n*/ \n\n\t\t\n// registrerar meny\n\t\tregister_nav_menus(\n\t\t\tarray(\n 'menu-1' => __( 'Primary', 'matchmaking' ),\n 'footer' => __( 'Footer Menu', 'matchmaking' ),\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "8bf5624af26d529e682e6743a2f7c362", "score": "0.66058415", "text": "function basic_setup() {\n\n\tif ( ! isset( $content_width ) ) {\n\t\t$content_width = 725;\n\t}\n\n//\tload_theme_borsha( 'borsha', get_template_directory() . '/languages' );\n\n\tadd_theme_support( 'automatic-feed-links' );\n\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support( 'title-tag' );\n\n\tadd_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );\n\n\tregister_nav_menus( array(\n\t\t'top' => __( 'Main Menu', 'basic' ),\n\t\t'bottom' => __( 'Footer Menu', 'basic' )\n\t) );\n\n}", "title": "" }, { "docid": "17f4227edcb872016936fd8c801a30fa", "score": "0.6603758", "text": "function wpb_ichcha_setup(){\n\t\tadd_theme_support( 'post-thumbnails' );\n\t}", "title": "" }, { "docid": "e2a335208067fe0a2d96fed79b921185", "score": "0.6602494", "text": "function intuitive_setup() {\n\t\tload_theme_textdomain( 'intuitive', get_template_directory() . '/languages' );\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\tset_post_thumbnail_size( 606, 606, true ); // Ratio 4:3\n\n\t\t// Used in Slider and Promotion\n\t\tadd_image_size( 'intuitive-slider', 1920, 1080, true ); // Ratio 16:9\n\n\t\t// Used in Custom Header for single and archive pages\n\t\tadd_image_size( 'intuitive-header-inner', 1920, 540, true );\n\n\t\t// Used in Featured Content\n\t\tadd_image_size( 'intuitive-featured-content', 606, 455, true ); // Ratio 4:3\n\n\t\t// Used in Testimonial size 2 and Stats Section\n\t\tadd_image_size( 'intuitive-testimonial-thumb', 70, 70, true ); // Ratio 1:1\n\n\t\t//Used in Hero Content\n\t\tadd_image_size( 'intuitive-hero-content', 700, 700, true ); // 1:1 Image Ratio\n\n\t\t// Used in Team Section.\n\t\tadd_image_size( 'intuitive-team', 606, 808, true ); // 3:4 Image Ratio\n\n\t\t// Used in Portfolio, Gallery and Service Section.\n\t\tadd_image_size( 'intuitive-portfolio', 666, 500, true ); // 4:3 Image Ratio\n\n\t\t// Used in Logo Slider Section.\n\t\tadd_image_size( 'intuitive-logo', 190, 107, true ); // 4:3 Image Ratio\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus( array(\n\t\t\t'menu-1' => esc_html__( 'Primary', 'intuitive' ),\n\t\t\t'social' => esc_html__( 'Social on Header Left', 'intuitive' ),\n\t\t) );\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support( 'custom-logo', array(\n\t\t\t'height' => 250,\n\t\t\t'width' => 250,\n\t\t\t'flex-width' => true,\n\t\t\t'flex-height' => true,\n\t\t) );\n\n\t\t// Add support for Block Styles.\n\t\tadd_theme_support( 'wp-block-styles' );\n\n\t\t// Add support for full and wide align images.\n\t\tadd_theme_support( 'align-wide' );\n\n\t\t// Add support for editor styles.\n\t\tadd_theme_support( 'editor-styles' );\n\n\t\t// Add support for responsive embeds.\n\t\tadd_theme_support( 'responsive-embeds' );\n\n\t\t// Add custom editor font sizes.\n\t\tadd_theme_support(\n\t\t\t'editor-font-sizes',\n\t\t\tarray(\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_html__( 'Small', 'intuitive' ),\n\t\t\t\t\t'shortName' => esc_html__( 'S', 'intuitive' ),\n\t\t\t\t\t'size' => 14,\n\t\t\t\t\t'slug' => 'small',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_html__( 'Normal', 'intuitive' ),\n\t\t\t\t\t'shortName' => esc_html__( 'M', 'intuitive' ),\n\t\t\t\t\t'size' => 18,\n\t\t\t\t\t'slug' => 'normal',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_html__( 'Large', 'intuitive' ),\n\t\t\t\t\t'shortName' => esc_html__( 'L', 'intuitive' ),\n\t\t\t\t\t'size' => 35,\n\t\t\t\t\t'slug' => 'large',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_html__( 'Huge', 'intuitive' ),\n\t\t\t\t\t'shortName' => esc_html__( 'XL', 'intuitive' ),\n\t\t\t\t\t'size' => 42,\n\t\t\t\t\t'slug' => 'huge',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t// Add support for custom color scheme.\n\t\tadd_theme_support( 'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'White', 'intuitive' ),\n\t\t\t\t'slug' => 'white',\n\t\t\t\t'color' => '#ffffff',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Black', 'intuitive' ),\n\t\t\t\t'slug' => 'black',\n\t\t\t\t'color' => '#000000',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Medium Black', 'intuitive' ),\n\t\t\t\t'slug' => 'medium-black',\n\t\t\t\t'color' => '#333333',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Gray', 'intuitive' ),\n\t\t\t\t'slug' => 'gray',\n\t\t\t\t'color' => '#999999',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Light Gray', 'intuitive' ),\n\t\t\t\t'slug' => 'light-gray',\n\t\t\t\t'color' => '#fafafa',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Yellow', 'intuitive' ),\n\t\t\t\t'slug' => 'yellow',\n\t\t\t\t'color' => '#ffa415',\n\t\t\t),\n\t\t) );\n\n\t\tadd_editor_style( array( 'assets/css/editor-style.css', intuitive_fonts_url() ) );\n\n\t\t// Support Alternate image for services, testimonials when using Essential Content Types Pro.\n\t\tif ( class_exists( 'Essential_Content_Types_Pro' ) ) {\n\t\t\tadd_theme_support( 'ect-alt-featured-image-jetpack-testimonial' );\n\t\t}\n\n\t\t/**\n\t\t * Add Support for Sticky Menu.\n\t\t */\n\t\tadd_theme_support( 'catch-sticky-menu', apply_filters( 'catch_wedding_sticky_menu_args', array(\n\t\t\t'sticky_desktop_menu_selector' => '#masthead',\n\t\t\t'sticky_mobile_menu_selector' => '#masthead',\n\t\t\t'sticky_background_color' => '#ffffff',\n\t\t\t'sticky_text_color' => '#000000',\n\t\t) ) );\n\t}", "title": "" }, { "docid": "32d7fc18c2d319caa5ec1028c07b4918", "score": "0.65900606", "text": "public function internalSetup()\n {\n $this->services[ServiceContainer::THEME] = $this;\n $this->services->extend(ServiceContainer::TWIG_PROXIES, function($proxies, $c){\n $proxies['component'] = new ComponentProxy($c[ServiceContainer::THEME]);\n return $proxies;\n });\n\n $this->wordpressTheme = wp_get_theme();\n $this->textDomain = $this->wordpressTheme->get('TextDomain');\n $this->slug = $this->wordpressTheme->get_stylesheet();\n $this->themeCacheHash = md5(get_stylesheet_directory());\n\n $this->uri = trailingslashit(get_template_directory_uri());\n $this->path = trailingslashit(get_template_directory());\n $this->childUri = trailingslashit(get_stylesheet_directory_uri());\n $this->childPath = trailingslashit(get_stylesheet_directory());\n\n if($this->path != $this->childPath){\n $this->services[ServiceContainer::PATH] = array($this->path, $this->childPath);\n }else{\n $this->services[ServiceContainer::PATH] = $this->path;\n }\n\n\n load_theme_textdomain($this->textDomain, $this->path . 'resources/languages');\n\n add_action('init', array($this, 'init'));\n add_action('widgets_init', array($this, 'widgets'), 0);\n add_filter('template_include', array($this, 'renderView'), 10, 2);\n add_action('wp_enqueue_scripts', array($this, 'assets'));\n add_action('wp_enqueue_scripts', array($this, 'lateAssets'), 50);\n if (is_admin()) {\n add_action('init', array($this, 'adminInit'));\n add_action('admin_enqueue_scripts', array($this, 'adminAssets'));\n add_action('admin_enqueue_scripts', array($this, 'lateAdminAssets'), 50);\n }\n }", "title": "" }, { "docid": "2f416e5318cbbe296c5c669c2f80a9ed", "score": "0.65896624", "text": "function tbdi_setup() {\n\t/*\n\t * Make theme available for translation.\n\t * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/tbdi\n\t * If you're building a theme based on Twenty Sixteen, use a find and replace\n\t * to change 'tbdi' to the name of your theme in all the template files\n\t */\n\tload_theme_textdomain( 'tbdi' );\n\n\t/*\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n\tadd_theme_support('title-tag');\n\n\t// This theme uses wp_nav_menu() in two locations.\n\tregister_nav_menus( array(\n\t\t'primary' => __( 'Primary Menu', 'tbdi' ),\n\t\t'social' => __( 'Social Links Menu', 'tbdi' ),\n\t) );\n\n\t/*\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n\t/*\n\t * Enable support for Post Formats.\n\t *\n\t * See: https://codex.wordpress.org/Post_Formats\n\t */\n\tadd_theme_support( 'post-formats', array(\n\t\t'aside',\n\t\t'svg',\n\t\t'image',\n\t\t'video',\n\t\t'quote',\n\t\t'link',\n\t\t'gallery',\n\t\t'status',\n\t\t'audio',\n\t\t'chat',\n\t) );\n\n\t\n}", "title": "" }, { "docid": "4adfba8b906993b78355f4af0bd5b88b", "score": "0.65856475", "text": "function sq_theme_init()\n {\n add_action('wp_enqueue_scripts', 'sq_scripts_method');\n\n //add some helpers to poor old IE\n add_action('wp_head', 'sq_add_ie_helpers');\n\n //clean up the head\n sq_remove_default_wp_actions();\n\n //register those menus\n sq_register_menus();\n\n //set image max width\n sq_set_max_image_width();\n\n //add thumbnail support and set widths\n sq_post_thumbnail_support();\n\n //add post format support\n sq_post_format_support();\n\n // Link post thumbnail to post permalink\n add_filter('post_thumbnail_html', 'sq_post_image_html', 10, 3);\n\n //initialize the sq widget\n add_action('init', 'sq_widgets_init');\n\n // Remove width/height attribute on inserted images\n add_filter('post_thumbnail_html', 'sq_remove_width_attribute', 10);\n\n // Images are sized via CSS or inline style=\"\" attribute by user.\n add_filter('image_send_to_editor', 'sq_remove_width_attribute', 10);\n\n //Enable custom menus\n add_theme_support('menus');\n\n // Remove the admin bar\n show_admin_bar(false);\n\n // automatic feeds\n add_theme_support('automatic-feed-links');\n\n // Add custom post types\n add_action('init', 'sq_post_type_portfolio');\n add_action('init', 'sq_post_type_socialpost');\n }", "title": "" }, { "docid": "134bc0488eed115ba3d0c3e30f6c0779", "score": "0.6584668", "text": "function wtd_setup() {\r\n\t/**\r\n\t * add_theme_support will be used to add some functionalities\r\n\t * \r\n\t * @see https://developer.wordpress.org/reference/functions/add_theme_support/\r\n\t * @see https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n\t */\r\n add_theme_support( 'post-thumbnails' );\r\n\tadd_theme_support( 'title-tag' );\r\n\tadd_theme_support( 'wp-block-styles' );\r\n\tadd_theme_support( 'align-wide' );\r\n\tadd_theme_support( 'responsive-embeds' );\r\n register_nav_menus(['main_menu' => 'Menu Principale']);\r\n add_theme_support( 'custom-header' );\r\n}", "title": "" }, { "docid": "f4977d113f99a548077575fc9e7fc4ac", "score": "0.6565669", "text": "function kristianiacampusguide_setup() {\n add_theme_support( 'title-tag' );\n \n /*\n * Enable support for Post Thumbnails on posts and pages.\n */\n add_theme_support( 'post-thumbnails' );\n set_post_thumbnail_size( 825, 510, true );\n\n // Add menus.\n register_nav_menus( array(\n 'primary' => __( 'Primary Menu', 'kristianiacampusguide' ),\n ) );\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n ) );\n\n /*\n * Enable support for Post Formats.\n */\n add_theme_support( 'post-formats', array(\n 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'\n ) );\n}", "title": "" }, { "docid": "bc006bb4e0ee42bc96d617a07bf83dec", "score": "0.6562379", "text": "function fluffy_setup() {\n\t// Make theme available for translation\n\tload_theme_textdomain( 'codediva', get_template_directory() . '/languages' );\n\n\t// Add default posts and comments RSS feed links to head\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Lets WordPress manage each page's title\n\tadd_theme_support( 'title-tag' );\n\n\t// Enables Post Thumbnails\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// Registers two menu areas\n\tregister_nav_menus( array(\n\t\t'primary' => __( 'Primary Menu', 'codediva' )\n\t) );\n\n\t// Changes default code to output valid HTML5\n\tadd_theme_support( 'html5', array(\n\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',\n\t) );\n\n\t// Enables Post Formats\n\tadd_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'video', 'quote', 'audio' ) );\n\t\n}", "title": "" }, { "docid": "392c589164856e8922b3841ef058965d", "score": "0.6550319", "text": "function t_seed_theme_support() {\n\n\t// wp thumbnails\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// Custom thumbnail sizes (add as many as you like) - Or use a plugin. It's easier.\n\n\tadd_image_size( 'teaser-half', 524, 270, true );\n\tadd_image_size( 'teaser-full', 1100, 400, true );\n\tadd_image_size( 'teaser-main', 300, 300, true );\n\n\t// rss thingy\n\tadd_theme_support('automatic-feed-links');\n\n\t// wp menus\n\tadd_theme_support( 'menus' );\n\n\t// registering wp3+ menus\n\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'main-nav' => __( 'The Main Menu', 't_seed_theme' ), // main nav in header\n\t\t\t'footer-links' => __( 'Footer Links', 't_seed_theme' ) // secondary nav in footer\n\t\t)\n\t);\n}", "title": "" }, { "docid": "6d7314db50236049f8b7c2561022ad4e", "score": "0.65394145", "text": "function rwmwop_setup() {\n /*\n * Make theme available for translation.\n * Translations can be filed in the /languages/ directory.\n * If you're building a theme based on rwmwop, use a find and replace\n * to change 'rwmwop' to the name of your theme in all the template files.\n */\n load_theme_textdomain( 'rwmwop', get_template_directory() . '/languages' );\n\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support( 'title-tag' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n */\n add_theme_support( 'post-thumbnails' );\n\n // This theme uses wp_nav_menu() in one location.\n register_nav_menus( array(\n 'menu-1' => esc_html__( 'Primary', 'rwmwop' ),\n ) );\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n ) );\n\n // Set up the WordPress core custom background feature.\n add_theme_support( 'custom-background', apply_filters( 'rwmwop_custom_background_args', array(\n 'default-color' => 'ffffff',\n 'default-image' => '',\n ) ) );\n\n // Add theme support for selective refresh for widgets.\n add_theme_support( 'customize-selective-refresh-widgets' );\n\n /**\n * Add support for core custom logo.\n *\n * @link https://codex.wordpress.org/Theme_Logo\n */\n add_theme_support( 'custom-logo', array(\n 'height' => 250,\n 'width' => 250,\n 'flex-width' => true,\n 'flex-height' => true,\n ) );\n }", "title": "" }, { "docid": "e39d0955027cc089c10140fb11b8be13", "score": "0.65375334", "text": "function custom_setup() {\n\n // Oculta a barra de admin no front\n add_filter('show_admin_bar', '__return_false');\n\n // Insere a opção de imagens destacadas\n add_theme_support('post-thumbnails');\n add_image_size('hero-thumb', 1231, 494, array('center'));\n add_image_size('sidebar-thumb', 110, 78, array('center'));\n add_image_size('index-thumb', 757, 304, array('center'));\n\n // Caso seja uma versão anterior ou igual ao 5.0 beta\n //add_filter('gutenberg_can_edit_post', '__return_false', 5);\n\n add_theme_support('post-formats', array('link'));\n\n // Caso seja a versão posterior à 5.0\n add_filter('use_block_editor_for_post', '__return_false', 5);\n}", "title": "" }, { "docid": "84b6d4402e54a9fc1e6ab2ac136f1d8b", "score": "0.6535827", "text": "function cr8_base_theme_setup() {\n //allow custom backgrounds to be set\n add_theme_support( 'custom-background' );\n //enable featured image\n add_theme_support( 'post-thumbnails' );\n}", "title": "" }, { "docid": "cb1559f3e0124482945cded99723906c", "score": "0.653445", "text": "function hwcoe_ufl_setup() {\n\t// Make theme available for translation.\n\tload_theme_textdomain( 'hwcoe-ufl', get_template_directory() . '/languages' );\n\n\t// Add default posts and comments RSS feed links to head.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Let WordPress manage the document title.\n\tadd_theme_support( 'title-tag' );\n\n\t// Enable support for Post Thumbnails on posts and pages.\n\tadd_theme_support( 'post-thumbnails' );\n\t\n\t// Allow partial refreshes of widgets in sidebars\n\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t// Switch default core markup for search form, comment form, and comments to output valid HTML5\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n\t// Set up the WordPress custom background feature \n\t$defaults = array(\n\t\t'default-image' => '',\n\t\t'default-color' => '#faf8f1',\n\t);\n\tadd_theme_support( 'custom-background', $defaults );\n\t\n\t// Add support for custom logos in the Customizer, use flex-width/height to skip cropping\n\tadd_theme_support( 'custom-logo', array(\n\t\t'width' => 240,\n\t\t'height' => 58,\n\t\t'flex-width' => true,\n\t\t'flex-height' => true,\n\t) );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menus( array(\n\t\t'main_menu' => esc_html__( 'Main Menu', 'hwcoe-ufl' ),\n\t\t'global_menu' => esc_html__( 'Global Menu', 'hwcoe-ufl' ),\n\t\t'audience_nav' => esc_html__( 'Audience Navigation', 'hwcoe-ufl' ),\n\t) );\n}", "title": "" }, { "docid": "d1c754c06b84c0aed8b8d3103571ab9a", "score": "0.65314174", "text": "function fishcrab_setup() {\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on FishCrab, use a find and replace\n\t\t * to change 'fishcrab' to the name of your theme in all the template files.\n\t\t */\n\t\tload_theme_textdomain( 'fishcrab', get_template_directory() . '/languages' );\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus(\n\t\t\tarray(\n 'menu-1' => esc_html__( 'Main menu', 'fishcrab' ),\n 'footer-1' => esc_html__( 'Footer1', 'fishcrab' ),\n 'footer-2' => esc_html__( 'Footer2', 'fishcrab' ),\n 'copyright' => esc_html__( 'Copyright', 'fishcrab' ),\n\t\t\t)\n\t\t);\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'html5',\n\t\t\tarray(\n\t\t\t\t'search-form',\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t\t'style',\n\t\t\t\t'script',\n\t\t\t)\n\t\t);\n\n\t\t// Set up the WordPress core custom background feature.\n\t\tadd_theme_support(\n\t\t\t'custom-background',\n\t\t\tapply_filters(\n\t\t\t\t'fishcrab_custom_background_args',\n\t\t\t\tarray(\n\t\t\t\t\t'default-color' => 'ffffff',\n\t\t\t\t\t'default-image' => '',\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'custom-logo',\n\t\t\tarray(\n\t\t\t\t'height' => 293,\n\t\t\t\t'width' => 65,\n\t\t\t\t'flex-width' => true,\n\t\t\t\t'flex-height' => true,\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "4eaead08ac8c0ef70709f93ed8a8971b", "score": "0.6530878", "text": "public function setup_theme() {\n\n add_theme_support( 'title-tag' );\n\n // add_theme_support( 'custom-logo', [\n // 'header-text' => ['site-title', 'site-description'],\n // 'height' => 100,\n // 'width' => 400,\n // 'flex-height' => true,\n // 'flex-width' => true\n // ] );\n\n add_theme_support( 'post-thumbnails' ); \n\n add_image_size( 'featured-thumbnail', 350, 233, true); // get this size from the inspector to see how big the image should be\n\n add_theme_support( 'customize-selective-refresh-widgets' );\n\n add_theme_support( 'automatic-feed-links' );\n\n add_theme_support( \n 'html5', \n [\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n 'script',\n 'style'\n ]\n );\n\n add_theme_support( 'wp-block-style' );\n\n add_theme_support( 'align-wide' );\n\n add_theme_support( 'editor-styles' );\n add_editor_style( 'assets/build/css/editor.css' );\n\n $this->add_options_page();\n\n global $content_width;\n if ( !isset( $content_width ) ) {\n $content_width = 1240;\n }\n\n\n/**================\n * Custom Menu \n================*/\n\n add_filter('custom_menu_order', '__return_true');\n add_filter('menu_order', [$this, 'custom_menu_order']);\n\n add_action( 'admin_menu', [$this, 'control_admin_access']);\n\n\n/**================\n * Data handling\n================*/\n add_filter('upload_mimes', function($mimes) {\n $mimes['svg'] = 'image/svg+xml';\n return $mimes;\n });\n }", "title": "" }, { "docid": "6cf704455c091aa8b8322bca1fbce6e1", "score": "0.65294516", "text": "function jack_setup() {\n\n\t// Support navigation menus\n\tregister_nav_menus(array(\n\t\t'primary' => __( 'Primary Menu'),\n\t\t'footer' => __( 'Footer Menu'),\n\t));\n\t\n\t// Support featured images, and define the theme image pre-defined sizes.\n\tadd_theme_support('post-thumbnails');\n\tadd_theme_support('title-tag');\n\tadd_theme_support('automatic-feed-links');\n\tadd_image_size('standard-blog-thumbnail', 200, 124, true);\n\tadd_image_size('masonry-thumbnail', 245, 184, true);\n\tadd_image_size('category-archive-thumbnail', 650, 140, true);\n\t\n}", "title": "" }, { "docid": "08d8c42085e0aad95229e265ae93d755", "score": "0.65270454", "text": "function oneltd_setup() {\n\n\t\t/**\n\t\t * Custom template tags for this theme.\n\t\t */\n\t\trequire( get_template_directory() . '/inc/template-tags.php' );\n\n\t\t/**\n\t\t * Custom Theme Options (to appear in wordpress backend if needed)\n\t\t */\n\t\t// require( get_template_directory() . '/inc/theme-options.php' );\n\n\n\t\t/**\n\t\t * Theme supports: Feed links in head, post formats (aside/image/gallery), post thumbnails...\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\tadd_theme_support( 'post-formats', array( 'aside', 'image', 'gallery' ) );\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * This theme uses wp_nav_menu() in one location.\n\t\t */\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Main Navigation', 'oneltd' ),\n\t\t) );\n\n\t\t/**\n\t\t * Include category IDs in body_class and post_class\n\t\t */\n\t\tfunction category_id_class($classes) {\n\t\t\tglobal $post;\n\t\t\tforeach((get_the_category($post->ID)) as $category)\n\t\t\t\t$classes [] = 'cat-' . $category->cat_ID . '-id';\n\t\t\t\treturn $classes;\n\t\t}\n\n\t\tadd_filter('post_class', 'category_id_class');\n\t\tadd_filter('body_class', 'category_id_class');\n\n\n\t\t/**\n\t\t * New excerpt length and custom after excerpt!\n\n\t\tfunction new_excerpt_length($length) {\n\t\t\treturn 60;\n\t\t}\n\t\tadd_filter('excerpt_length', 'new_excerpt_length');\n\t\t// ... after excerpt\n\t\tfunction custom_excerpt_more( $more ) {\n\t\t\treturn '...';\n\t\t}\n\t\tadd_filter( 'excerpt_more', 'custom_excerpt_more' );\n\t\t */\n\n\t\t/**\n\t\t * Remove the crap from the wp_head() function\n\t\t */\n\t\tremove_action('wp_head', 'rsd_link');\n\t\tremove_action('wp_head', 'wp_generator');\n\t\tremove_action('wp_head', 'feed_links', 2);\n\t\tremove_action('wp_head', 'index_rel_link');\n\t\tremove_action('wp_head', 'wlwmanifest_link');\n\t\tremove_action('wp_head', 'feed_links_extra', 3);\n\t\tremove_action('wp_head', 'start_post_rel_link', 10, 0);\n\t\tremove_action('wp_head', 'parent_post_rel_link', 10, 0);\n\t\tremove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);\n\n\n\t\t/** WP in the back-end **/\n\n\t\t/**\n\t\t * Disable the Admin bar (courtesy of Paul Davis - Slim Starkers)\n\t\t */\n\t add_filter('show_admin_bar', '__return_false');\n\n\t\t/**\n\t\t * Remove any unwanted menus from the wordpress sidebar\n\t\t */\n\t\tfunction remove_menus ()\n\t\t{\n\t\t\tglobal $menu;\n\t\t\t// remove the Links and Comments menu items as default\n\t\t\t$restricted = array( __('Links'), __('Comments') );\n\t\t\tend ($menu);\n\t\t\twhile (prev($menu))\n\t\t\t{\n\t\t\t\t$value = explode(' ',$menu[key($menu)][0]);\n\t\t\t\tif(in_array($value[0] != NULL?$value[0]:\"\" , $restricted)){unset($menu[key($menu)]);}\n\t\t\t}\n\t\t}\n\t\tadd_action('admin_menu', 'remove_menus');\n\n\t\t/**\n\t\t * Remove any unwanted wordpress dashboard boxes\n\t\t */\n\t\tfunction disable_default_dashboard_widgets() {\n\n\t\t\t// remove_meta_box('dashboard_right_now', 'dashboard', 'core');\n\t\t\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core');\n\t\t\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core');\n\t\t\tremove_meta_box('dashboard_plugins', 'dashboard', 'core');\n\t\t\t// AO: This one could be useful though...\n\t\t\t// remove_meta_box('dashboard_quick_press', 'dashboard', 'core');\n\t\t\t// remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');\n\t\t\t// remove_meta_box('dashboard_primary', 'dashboard', 'core');\n\t\t\t// remove_meta_box('dashboard_secondary', 'dashboard', 'core');\n\t\t}\n\t\tadd_action('admin_menu', 'disable_default_dashboard_widgets');\n\n\t\t/**\n\t\t * Hide the upgrade notices in Wordpress (especially handy for people like Career Innovation etc etc\n\t\t */\n\t\tif (!current_user_can('edit_users')) {\n\t\t\tadd_action('init', create_function('$a', \"remove_action('init', 'wp_version_check');\"), 2);\n\t\t\tadd_filter('pre_option_update_core', create_function('$a', \"return null;\"));\n\t\t}\n\n\t\t/**\n\t\t * Prevent users from being able to use the full content editor in WP, allow only the code view\n\t\t * - handy when you need to add in custom html to the post (which actually shouldn't be done)\n\t\tadd_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );\n\t\t*/\n\n\t\t/** Add featured image to feeds\n\t * http://app.kodery.com/s/1314 (courtesy of Paul Davis)\n\t */\n\t function insertThumbnailRSS($content) {\n\t global $post;\n\t if ( has_post_thumbnail( $post->ID ) ){\n\t $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail', array( 'alt' => get_the_title(), 'title' => get_the_title(), 'style' => 'float:right;' ) ) . '' . $content;\n\t }\n\t return $content;\n\t }\n\t add_filter('the_excerpt_rss', 'insertThumbnailRSS');\n\t add_filter('the_content_feed', 'insertThumbnailRSS');\n\n\t}", "title": "" }, { "docid": "cdf6f292a8b3db47eee0d5c2d5711513", "score": "0.65147096", "text": "public function setup_theme()\n {\n // setting up color customization\n et_apply_customization(array());\n\n $option = ET_GeneralOptions::get_instance();\n $option->set_customization(array(\n 'background' => '#fff',\n 'header' => '#333',\n 'text' => '#333',\n 'heading' => '#333',\n 'action' => '#F28C79',\n 'font-text' => 'Arial, san-serif',\n 'font-text-weight' => 'normal',\n 'font-text-style' => 'normal',\n 'font-text-size' => '14px',\n 'font-heading' => 'Arial, san-serif',\n 'font-heading-weight' => 'normal',\n 'font-heading-size' => '12px',\n 'font-links' => 'Arial, san-serif',\n 'font-links-weight' => 'normal',\n 'font-links-style' => 'normal',\n 'font-links-size' => '12px',\n ));\n\n // remove sidebar\n $sidebars = get_option('sidebars_widgets');\n foreach ((array)$sidebars as $name => $widget) {\n if ($name != 'wp_inactive_widgets') {\n $sidebars[$name] = array();\n }\n }\n update_option('sidebars_widgets', $sidebars);\n }", "title": "" }, { "docid": "17795c166298d49f24129c7c86624bb8", "score": "0.6512291", "text": "function migration_setup() {\n\n\t// This theme styles the visual editor with editor-style.css to give it some niceties.\n\tadd_editor_style();\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menu( 'primary', __( 'Primary Menu', 'migration' ) );\n\tregister_nav_menu( 'secondary', __( 'Secondary Menu', 'migration' ) );\n\n\t// This theme uses a custom image size for featured images, displayed on \"standard\" posts.\n\tadd_theme_support( 'post-thumbnails' );\n\tset_post_thumbnail_size( 500, 9999 ); // Unlimited height, soft crop\n\t\n}", "title": "" }, { "docid": "e47ff3af8dd2fcc22adaf0af44c95246", "score": "0.65118194", "text": "function telespor_setup() {\n\n //Title title\n add_theme_support( 'title-tag' );\n\n //HTML5\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n //Nav menus\n register_nav_menus( array(\n 'primary' => __( 'Header Menu', 'telespor' ),\n 'footernav' => __( 'Footer Menu', 'telespor' ),\n ) );\n\n //Featured image\n add_theme_support( 'post-thumbnails' );\n\tset_post_thumbnail_size( 1200, 9999 );\n add_image_size( 'small-thumbnail', 380, 220, array( 'center', 'center' ) ); // Hard crop left top\n\n}", "title": "" }, { "docid": "748f1b4cf763b3d4472893d2c394b633", "score": "0.650975", "text": "public function setup() {\n\t\t$theme = wp_get_theme();\n\n\t\t/*\n\t\tInclude admin all the time so that the SMM Sidebar stays\n\t\tregistered even if you switch to a non supported theme.\n\t\t*/\n\t\tinclude_once( 'includes/class-smm-admin.php' );\n\n\t\tif ( 'Storefront' === $theme->name || 'storefront' === $theme->template && apply_filters( 'storefront_mega_menus_supported', true ) ) {\n\t\t\tadd_action( 'admin_notices', array( $this, 'customizer_notice' ) );\n\n\t\t\tinclude_once( 'includes/class-smm-customizer.php' );\n\t\t\tinclude_once( 'includes/class-smm-frontend.php' );\n\t\t}\n\t}", "title": "" }, { "docid": "23d4f2f9369ac6212d06b85ffb719b62", "score": "0.6508955", "text": "function shepherd_setup() {\n\n\tglobal $post;\n\n\t/*\n\t * Make theme available for translation.\n\t * Translations can be filed in the /languages/ directory.\n\t * If you're building a theme based on Shepherd, use a find and replace\n\t * to change 'shepherd' to the name of your theme in all the template files\n\t */\n\tload_theme_textdomain( 'shepherd', get_template_directory() . '/languages' );\n\n\t// Add image size for featured images\n\tadd_image_size( 'featured', 1600, 900, 1 );\n\n\t// Add default posts and comments RSS feed links to head.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t/*\n\t * Enable support for Post Thumbnails on posts and pages.\n\t *\n\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menus( array(\n\t\t'primary' => __( 'Primary Menu', 'shepherd' ),\n\t\t'social' => __( 'Social Menu', 'shepherd' ),\n\t) );\n\n\t/*\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n\t) );\n\n\t/*\n\t * Enable support for Post Formats.\n\t * See http://codex.wordpress.org/Post_Formats\n\t */\n\tadd_theme_support( 'post-formats', array(\n\t\t'aside', 'image', 'video', 'quote', 'link'\n\t) );\n\n\t// Setup the WordPress core custom background feature.\n\tadd_theme_support( 'custom-background', apply_filters( 'shepherd_custom_background_args', array(\n\t\t'default-color' => 'ffffff',\n\t\t'default-image' => '',\n\t) ) );\n\n\t// Add support for Jetpack featured content\n\tadd_theme_support( 'featured-content', array(\n\t\t'filter' => 'shepherd_get_featured_posts',\n\t\t'max_posts' => 1,\n\t\t'post_types' => array( 'post', 'page' ),\n\t) );\n\n}", "title": "" }, { "docid": "1861a33212b014d7e44573736952e357", "score": "0.6498714", "text": "public function initSettings() {\r\n\t\t\t$this->theme = wp_get_theme();\r\n\r\n\t\t\t// Set the default arguments\r\n\t\t\t$this->setArguments();\r\n\r\n\t\t\t// Set a few help tabs so you can see how it's done\r\n\t\t\t$this->setHelpTabs();\r\n\r\n\t\t\t// Create the sections and fields\r\n\t\t\t$this->setSections();\r\n\r\n\t\t\tif (!isset($this->args['opt_name'])) { // No errors please\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// If Redux is running as a plugin, this will remove the demo notice and links\r\n\t\t\tadd_action( 'redux/loaded', array( $this, 'remove_demo' ) );\r\n\r\n\t\t\t$this->ReduxFramework = new ReduxFramework($this->sections, $this->args);\r\n\t\t}", "title": "" }, { "docid": "6ce47bfc795129903363d44a2c71c588", "score": "0.649019", "text": "function theme_initialization(){\n add_theme_support('post-thumbnails');\n //add rss feed links/** \n add_theme_support( 'automatic-feed-links' );\n //add the theme domain for translations\n load_theme_textdomain( 'domain', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );\n //register my menus\n register_nav_menus( array(\n 'primary' => __('Primary Navigation'),\n 'footer-menu-left' => __('Footer Menu Left'),\n 'footer-menu-right' => __('Footer Menu Right')\n ));\n }", "title": "" }, { "docid": "9c0cd30afdc07c1f38ecc157c15b7c23", "score": "0.6481747", "text": "function noctilucent_theme_setup() {\n\t\tadd_filter( 'wp_title', 'noctilucent_title_tag', 10, 3 );\n\t\t\n\t\t// Body classes\n\t\tadd_filter( 'body_class', 'noctilucent_body_classes' );\n\t\t\n\t\t// Chromeframe\n\t\tadd_action( 'noctilucent_before_header', 'noctilucent_chromeframe' );\n\t\t\n\t\t// Insert primary nav after header\n\t\tadd_action( 'noctilucent_after_header', 'noctilucent_insert_primary_nav' );\n\n\t\t// Pre-content insertions\n\t\tadd_action( 'noctilucent_prepend_to_content', 'noctilucent_insert_section_header' );\n\t\tadd_action( 'noctilucent_prepend_to_content', 'noctilucent_insert_search_header' );\n\n\t\t// Conditionals for loading content templates\n\t\tadd_filter( 'noctilucent_content_template', 'noctilucent_load_page', 10, 1 );\n\t\tadd_filter( 'noctilucent_content_template', 'noctilucent_load_archive', 10, 1 );\n\t\tadd_filter( 'noctilucent_content_template', 'noctilucent_load_cpt', 15, 1 );\n\n\t\t// Excerpt filters\n\t\tadd_filter( 'excerpt_more', 'noctilucent_excerpt_more' );\n\t\tadd_filter( 'get_the_excerpt', 'noctilucent_excerpt_plus' );\n\n\t\t// Post-content insertions\n\t\tadd_action( 'noctilucent_append_to_content', 'noctilucent_load_comments' );\n\t\tadd_action( 'noctilucent_append_to_content', 'noctilucent_insert_archive_pagination' );\n\n\t\t// Sidebars\n\t\tadd_action( 'noctilucent_after_loop', 'noctilucent_insert_default_sidebar' );\n\t\t\n\t\t// Insert copyright string and credit string after footer\n\t\tadd_action( 'noctilucent_after_footer', 'noctilucent_insert_copyright' );\n\t\tadd_action( 'noctilucent_after_footer', 'noctilucent_insert_credit' );\n\t\t\n\t\t// Unsuck gallery styling\n\t\tadd_filter( 'gallery_style', 'noctilucent_edit_gallery_style' );\n\t\t\n\t}", "title": "" }, { "docid": "413c055e352835ae87b8e0902f1b441e", "score": "0.64769083", "text": "function ulmus_setup() {\n\t\t/*\n\t\t * Make theme available for translation.\n\t\t * Translations can be filed in the /languages/ directory.\n\t\t * If you're building a theme based on Ulmus, use a find and replace\n\t\t * to change 'ulmus' to the name of your theme in all the template files.\n\t\t */\n\t\t load_theme_textdomain( 'ulmus', get_template_directory(). '/languages' );\n\n\t\t // Add default posts and comments RSS feed links to head.\n\t\t add_theme_support( 'automatic-feed-links' );\n\n\t\t /*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\t add_theme_support( 'title-tag' );\n\n\t\t /*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t *\n\t\t */\n\t\t add_theme_support( 'post-thumbnails' );\n\t}", "title": "" }, { "docid": "f66a51c7bc6e66e7f3a6e6768e6a07dd", "score": "0.64760846", "text": "public function initialize() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'action_enqueue_styles' ) );\n\t\tadd_action( 'wp_head', array( $this, 'action_preload_styles' ) );\n//\t\tadd_action( 'after_setup_theme', array( $this, 'action_add_editor_styles' ) );\n\t\tadd_action( 'enqueue_block_editor_assets', array( $this, 'gutenberg_scripts' ) );\n\t\tadd_filter( 'wp_resource_hints', array( $this, 'filter_resource_hints' ), 10, 2 );\n\t}", "title": "" }, { "docid": "7221a6819c2364a58697d4fc423fc2a0", "score": "0.6472076", "text": "function theme_setup() {\n add_theme_support('automatic-feed-links');\n\n register_nav_menus(array(\n 'primary' => __('Primary Menu'),\n ));\n\n add_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "032ca14f398791c3cb72ed9266224984", "score": "0.646657", "text": "function kjgmuggensturm_setup() {\n\n add_theme_support( 'custom-header' );\n add_theme_support( 'custom-logo' );\n\n add_theme_support( 'wp-block-styles' );\n\n add_filter( 'excerpt_length', function($length) {\n return 30;\n });\n\n add_filter( 'img_caption_shortcode_width', '__return_false' );\n\n add_theme_support( 'title-tag' ); \n\n register_nav_menu('header-menu',__( 'Header Menu' ));\n\n }", "title": "" }, { "docid": "628d2d1cb9298e2deb5cf2e7efcb8b1e", "score": "0.6464713", "text": "function st_theme_setup() {\r\n\tload_theme_textdomain( 'framework', get_template_directory() . '/languages' );\r\n\t\r\n\r\n\t/**\r\n\t* Add default posts and comments RSS feed links to head\r\n\t*/\r\n\tadd_theme_support( 'automatic-feed-links' );\r\n\t\r\n\t/**\r\n\t* Enable support for Post Thumbnails\r\n\t*/\r\n\tadd_theme_support( 'post-thumbnails' );\r\n\tset_post_thumbnail_size( 60, 60 );\r\n\tadd_image_size( 'post', 150, 150, false ); // Post thumbnail\t\r\n\t\r\n\t/**\r\n\t* Register menu locations\r\n\t*/\r\n\tregister_nav_menus( array(\r\n\t\t\t'primary-nav' => __( 'Primary Menu', 'framework' ),\r\n\t\t\t'footer-nav' => __( 'Footer Menu', 'framework' )\r\n\t));\r\n\t\r\n\t/**\r\n\t* Add Support for post formarts\r\n\t*/\r\n\tadd_theme_support( 'post-formats', array( 'video' ) );\r\n\t\r\n\t// This theme uses its own gallery styles.\r\n\tadd_filter( 'use_default_gallery_style', '__return_false' );\t\r\n\r\n /*\r\n * Let WordPress manage the document title.\r\n * By adding theme support, we declare that this theme does not use a\r\n * hard-coded <title> tag in the document head, and expect WordPress to\r\n * provide it for us.\r\n */\r\n add_theme_support( 'title-tag' );\r\n\r\n /*\r\n * Switch default core markup for search form, comment form, and comments\r\n * to output valid HTML5.\r\n */\r\n add_theme_support( 'html5', array(\r\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\r\n ) );\r\n\r\n // This is a hero theme\r\n add_theme_support('ht-hero-theme');\r\n\t\r\n}", "title": "" }, { "docid": "4eccba4e746339a03112f147139a71e8", "score": "0.64645493", "text": "function parent_theme_setup() {\n add_theme_support( 'post-formats', 'post-thumbnails', array() );\n add_image_size('post-featured-image', 1920, 800, true); // post featured image\n add_image_size('related-post-image', 372, 372, true); // related post image\n add_image_size('post-slider-image', 1050, 700, true); // post slider image\n add_image_size('our-work-images', 507, 567, true); // our-work\n\n remove_theme_support( 'custom-header', 'header-text', 'custom-background', 'automatic-feed-links', 'analytica-sidebars' );\n }", "title": "" }, { "docid": "1fec0d526398a39a0d6cf6169beeadcb", "score": "0.64627695", "text": "function setup() {\n\t$n = function( $function ) {\n\t\treturn __NAMESPACE__ . \"\\\\$function\";\n\t};\n\n\tadd_action( 'after_setup_theme', $n( 'i18n' ) );\n\tadd_action( 'after_setup_theme', $n( 'theme_setup' ) );\n\tadd_action( 'wp_enqueue_scripts', $n( 'scripts' ) );\n\tadd_action( 'wp_enqueue_scripts', $n( 'styles' ) );\n}", "title": "" }, { "docid": "309888701cdf3929cb972a9fc9e118e2", "score": "0.6460994", "text": "private function setup() {\n\t\t// Display warning if site is private\n\t\tadd_action( 'jetpack_activate_module_photon', array( $this, 'action_jetpack_activate_module_photon' ) );\n\n\t\tif ( ! function_exists( 'jetpack_photon_url' ) )\n\t\t\treturn;\n\n\t\t// Images in post content and galleries\n\t\tadd_filter( 'the_content', array( __CLASS__, 'filter_the_content' ), 999999 );\n\t\tadd_filter( 'get_post_gallery', array( __CLASS__, 'filter_the_content' ), 999999 );\n\n\t\t// Core image retrieval\n\t\tadd_filter( 'image_downsize', array( $this, 'filter_image_downsize' ), 10, 3 );\n\n\t\t// Helpers for maniuplated images\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'action_wp_enqueue_scripts' ), 9 );\n\t}", "title": "" }, { "docid": "2217a4915529364d5554db5e122ef0a4", "score": "0.6460339", "text": "function twentyten_setup() {\n\n\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\tadd_editor_style();\n\n\t// This theme uses post thumbnails\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_image_size( 'featured', '9999', '287', false ); // @Morgan\n\n\t// Add default posts and comments RSS feed links to head\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Make theme available for translation\n\t// Translations can be filed in the /languages/ directory\n\tload_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' );\n\n\t$locale = get_locale();\n\t$locale_file = TEMPLATEPATH . \"/languages/$locale.php\";\n\tif ( is_readable( $locale_file ) )\n\t\trequire_once( $locale_file );\n\n\t// This theme uses wp_nav_menu() in two locations.\n\tif ( function_exists( 'register_nav_menus' ) ):\n\t\tregister_nav_menus( array(\n\t\t\t'top-menu' => __( 'Top Menu', 'twentyten' ),\n\t\t\t'mobile-menu' => __( 'Mobile Menu', 'twentyten' ),\n\t\t\t'main-menu' => __( 'Main Menu', 'twentyten' ),\n\t\t\t'footer-menu' => __( 'Footer Menu', 'twentyten' ),\n\t\t\t\n\t\t) );\n\tendif;\n}", "title": "" }, { "docid": "af61db42f88d85f7e8b5a1b2b78b97bd", "score": "0.6449719", "text": "function portfoliohl_setup() {\n add_theme_support('title-tag');\n\n\n\n\n /*\n * menu par default wordpress\n */\n register_nav_menus( array(\n 'primary' => esc_html__('Primary','portfoliohl'),\n 'footer' => esc_html__( 'Footer', 'portfoliohl' ),\n ));\n\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n ) );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n */\n add_theme_support( 'post-thumbnails' );\n add_image_size( 'portfoliohl-home-small', 200);\n add_image_size( 'portfoliohl-home-large', 280, 280, true );\n add_image_size( 'portfoliohl-image', 690 );\n add_image_size( 'portfoliohl-thumb', 470);\n add_image_size( 'portfoliohl-header', 1920);\n\n /*\n * custum background wordpress function\n */\n add_theme_support('custum-background', apply_filters('portfoliohl_custum_background_arg', array(\n 'default-color' =>'ffffff',\n 'default-image' => '',\n )));\n\n\n /*\n * logo custum\n */\n add_theme_support('custom-logo',array(\n // 'height' => 55,\n // 'width' => 200,\n 'flex-height' => true,\n ));\n\n }", "title": "" }, { "docid": "1c7aee96a164edfcd390914963b793a7", "score": "0.6448521", "text": "public function init() \n\t{\n\t\t\n\t\tif ($this->has_custom_css()) {\t\t\t\n\t\t\tadd_action('template_redirect', array($this, 'global_external_custom_css'), 1);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Setup shortcodes, and page builder assets \n\t\t */\n\t\t\n\t\t// setup theme-specific shortcodes and blocks\n\t\t$this->setup_shortcodes();\n\t\t\n\t\t// setup page builder blocks\n\t\t$this->setup_page_builder();\n\t}", "title": "" }, { "docid": "0803eebceee6637b354db409962e1316", "score": "0.6448019", "text": "function teameight_setup() {\n\t/*\n\t * This theme supports all available post formats by default.\n\t * See http://codex.wordpress.org/Post_Formats\n\t */\n\tadd_theme_support( 'post-formats', array(\n 'aside', 'image', 'quote', 'video'\n //'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'\n\t) );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menu( 'primary', 'Navigation Menu' );\n\n\t/*\n\t * This theme uses a custom image size for featured images, displayed on\n\t * \"standard\" posts and pages.\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n}", "title": "" } ]
e0932e57f42b7b7f095b966ee64f795d
Get the first stylesheet record.
[ { "docid": "f7d7df9d18b2b6cc090ff7e1df992f08", "score": "0.81690806", "text": "public function getFirstStylesheet()\n {\n $sheets = $this->sheetsTable->fetchObjects(\n $this->sheetsTable->getSelect());\n return $sheets[0];\n }", "title": "" } ]
[ { "docid": "6e9c863264b0071f5e192f34f6431eef", "score": "0.6100024", "text": "public function first() {\n\t// first record\n\t\t$this->_index = 0;\n\t\t// load record\n\t\treturn $this->_loadRecord();\n\t}", "title": "" }, { "docid": "9af66d6eda7f80f5228b60b08314a5d9", "score": "0.6095936", "text": "public function first() {\n\t\t\treturn $this->_results[0];\n\t\t}", "title": "" }, { "docid": "a6e94c79adb53edd9eef79a4c66a3be1", "score": "0.6033842", "text": "protected function getDefaultStyle()\n {\n // By construction, the default style has ID 0\n return $this->styleRegistry->getRegisteredStyles()[0];\n }", "title": "" }, { "docid": "e04ef13a09cc97c3bb5513a9644812e8", "score": "0.5999372", "text": "function first() {\n $this->emptyGuard(__METHOD__);\n return $this->head->first;\n }", "title": "" }, { "docid": "a9a68bd6aed9eddfe02340dc42f5de48", "score": "0.59550136", "text": "function load_stylesheet_by_id($id)\n\t{\n\t\treturn cmsms()->stylesheet->find_by_id($id);\n\t}", "title": "" }, { "docid": "d138c4566e2d5f776c9dde35da23fd9b", "score": "0.59011024", "text": "public function first() {\n return $this->seek(0);\n }", "title": "" }, { "docid": "638f2ade39f1d35fe10c5e8135680691", "score": "0.58411074", "text": "function wct_get_stylesheet( $css = 'style' ) {\n\t$style = new WordCamp_Talks_Template_Loader;\n\n\treturn $style->get_stylesheet( $css );\n}", "title": "" }, { "docid": "77897b5d808181c795b7a0d8ba5f3004", "score": "0.57926387", "text": "public function getFirst() {\n return $this->offsetGet(0);\n }", "title": "" }, { "docid": "984446741e7bfb06da7af915142caa9c", "score": "0.57346106", "text": "public function first()\n {\n $this->rewind();\n\n if ($this->valid()) {\n return $this->current();\n }\n }", "title": "" }, { "docid": "2037e4904cdf096edec2cae26f51e847", "score": "0.572587", "text": "public function first()\n {\n $this->rewind();\n return $this->current();\n }", "title": "" }, { "docid": "53c1bc877dd609924691ed2a29aa66e2", "score": "0.57232136", "text": "public function first(){\r\n return $this->results()[0];\r\n }", "title": "" }, { "docid": "5e8c5f9a1c34852777793c5d35a1095f", "score": "0.57210976", "text": "public function getFirst()\n {\n $this->rewind();\n return $this->current();\n }", "title": "" }, { "docid": "22d78ffca4d25c743d9c64940def0a94", "score": "0.5713258", "text": "public function first()\n {\n return $this->get()[0];\n }", "title": "" }, { "docid": "94cd24913f9adcb354a1adcac18be091", "score": "0.56645393", "text": "public function first(){\n\t\treturn $this->item( 0 );\n\t}", "title": "" }, { "docid": "6868d37cf761ad0fba4df959cf54a5a7", "score": "0.56471324", "text": "public function getFirst() {\n return ($this->length > 0?$this->first:null);\n }", "title": "" }, { "docid": "d9e4dd847be9d77c74d5d934ed2195e3", "score": "0.56049544", "text": "public function first()\n {\n $this->queryBuilder->setLimit(1);\n\n $result = $this->get();\n \n return count($result) >= 1 ? $this->bootstrapSelf($result[0]) : null;\n }", "title": "" }, { "docid": "fc80346424ab2d361839b18fcb712ce5", "score": "0.5598627", "text": "public function first()\n {\n if (count($this->elements) > 0) {\n return $this->elements[0];\n }\n }", "title": "" }, { "docid": "c173103c72f00f4c9c35f616460ef0cd", "score": "0.5587544", "text": "function vf_get_stylesheet() {\n if ( ! function_exists('get_field')) {\n return null;\n }\n $url = trim(get_field('vf_cdn_stylesheet', 'option'));\n return empty($url) ? null : $url;\n}", "title": "" }, { "docid": "5f2e0857ce5db714586bdc05d9819ad0", "score": "0.55794084", "text": "public function loadFirst()\n {\n return $this->limit(1)->load()->getFirst();\n }", "title": "" }, { "docid": "e31d7700cf03fbf8a353310ef9c06708", "score": "0.5558411", "text": "static function getStyle() {\n\t\t$style = self::getSite()->getStyle();\n\t\tif ($style == null || !($style instanceof Style)) {\n\t\t\tthrow new ArtphoxException('ERR_STYLE_NOT_LOADED');\n\t\t}\n\t\treturn $style;\n\t}", "title": "" }, { "docid": "b53782fef1219da34632509025b6219d", "score": "0.555764", "text": "public function first()\n {\n $items = $this->values();\n\n return $items[0];\n }", "title": "" }, { "docid": "8de7eed7fa5766f666b4d2d31c342186", "score": "0.55575585", "text": "public function first()\n\t{\n\t\treturn (count($this->trace) > 0) ? $this->trace[0] : null;\n\t}", "title": "" }, { "docid": "e1f485c6e2242c10334333dafa341cec", "score": "0.55345136", "text": "public function first() {\n if (count($this->_objects)>0) {\n if ($this->_objects[0]!==null && isset($this->_objects[0])) {\n $obj = $this->_objects[0];\n return $obj;\n }\n }\n return null;\n }", "title": "" }, { "docid": "c998bed8255ab85722cdbf269eca2cd0", "score": "0.55323184", "text": "public function first() {\n return parent::first();\n }", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "ccd3868ee3f825fd93e2622c0bc76b2e", "score": "0.55175054", "text": "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "title": "" }, { "docid": "a5597ad3745dce32eb5aa11a0b77844a", "score": "0.5512625", "text": "public function first() {\n return $this->all()->current();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "ea230a69fc06f2c004648b6c8014cbce", "score": "0.54797035", "text": "public function first()\n {\n return parent::first();\n }", "title": "" }, { "docid": "3d5b2660ba22722bf344dd0f03a2d2ae", "score": "0.5478564", "text": "public function getFirst ()\r\n {\r\n return $this->first;\r\n }", "title": "" }, { "docid": "0e9563aca6cc8cd8442e6384b5d9660a", "score": "0.54524213", "text": "private function getFirst() {\r\n $first = max(1, min( ($this->getTotalPages() - $this->offset * 2)-1 , max( ($this->currPage - $this->offset), 1) ));\r\n return $first;\r\n }", "title": "" }, { "docid": "7dc996d33baef736407ed8ce4bd8d81a", "score": "0.5446995", "text": "public function getFirst() {\n\t\treturn $this->getPosition(0);\n\t}", "title": "" }, { "docid": "e1fde14de7ff0007658d0d476275c20a", "score": "0.54411167", "text": "function getStyleSheets()\n {\n return null;\n }", "title": "" }, { "docid": "1ccf31a7936f8bce824f716156a54d69", "score": "0.5428203", "text": "private function __getFirstRowFormat() {\n\t\t$firstRow = $this->__excel->addFormat();\n\t\t$firstRow->setBold();\n\t\t$firstRow->setColor('blue');\n\t\t$firstRow->setBottom(2);\n\t\t$firstRow->setBottomColor('black');\n\t\t$firstRow->setBorder(1);\n\t\t$firstRow->setAlign('center');\n\t\t$firstRow->setVAlign('vcenter');\n\t\t$firstRow->setFgColor('#FFAF59');\n\t\treturn $firstRow;\n\t}", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5419399", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5419399", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5419399", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5419399", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5419399", "text": "public function first();", "title": "" }, { "docid": "b5f29e2c43d7a4e6f43835e8e06b6996", "score": "0.5418184", "text": "public function first()\n\t{\n\t\t$array = $this->limit_offset(1,0);\n\t\tif ( count($array) >= 1 )\n\t\t{\n\t\t\treturn $array[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t}", "title": "" }, { "docid": "d148163b89034effcb7cf0ce8ee8acdd", "score": "0.54051125", "text": "function getFirst()\r\n\t{\r\n\t\t$this->first=1;\r\n\t\treturn $this->first;\r\n\t}", "title": "" }, { "docid": "3413daa098fd2c2342ae32bb88cefc69", "score": "0.54027474", "text": "final public function first(){\n $this->next(($this->rs==null ? true : false));\n return $this; \n }", "title": "" }, { "docid": "2d1834fb27aa3ac45fbbbafd123b8f8c", "score": "0.5399975", "text": "public static function first()\n {\n self::$this_event = (__FUNCTION__);\n\n self::$this_query = self::modelGetQuery(self::$static_table);\n\n self::append_orginal_attributes();\n\n return reset(self::$collection);\n }", "title": "" }, { "docid": "7d776ec63b567898e1001cdbcadd49ad", "score": "0.5391407", "text": "public function firstObject()\n\t{\n\t\treturn $this->objectAtIndex(0);\n\t}", "title": "" }, { "docid": "6d63503e3ea00f509adba059e3d79365", "score": "0.5386786", "text": "public function first()\n\t{\n\t\treturn $this->take(1)\n\t\t\t->query()\n\t\t\t->first();\n\t}", "title": "" }, { "docid": "6366b6e71b05e82ebf780389a8b7cecb", "score": "0.53770953", "text": "public function getFirstSpread() {\n return array_values($this->getSpreads())[0];\n }", "title": "" }, { "docid": "9d35a0015715f33e3dae076023908f38", "score": "0.53596395", "text": "function getRule(){\n return array_unshift($this->current_ruleset);\n }", "title": "" }, { "docid": "0be760346a21da3d9097d9e4759d2064", "score": "0.533077", "text": "function get() {\n\t\treturn $this->_styles;\n\t}", "title": "" }, { "docid": "b0b2ade3edd46af9e5159ff8582eae62", "score": "0.53141034", "text": "public function first(): mixed;", "title": "" }, { "docid": "e2984a8919a8526ccb2f58cc1c6d37b7", "score": "0.53133845", "text": "public function getFirstItem()\n {\n if (!isset($this->collection[0])) {\n return $this;\n }\n\n return $this->collection[0];\n }", "title": "" }, { "docid": "ed841532c6d1467e4d7a9ff518917690", "score": "0.5312759", "text": "public function getFirst()\n\t{\n\t\treturn $this->head->value();\n\t}", "title": "" }, { "docid": "b3406fb50e5294b52d4e39201c514779", "score": "0.53119916", "text": "public function first(){\n if ($this->offsetExists(0)) {\n return $this->values[0];\n }\n return null;\n }", "title": "" }, { "docid": "f275d670681dbd06c7795527523ff3c8", "score": "0.5308091", "text": "function &get_first() {\n for ($i=0; $i<count($this->content); $i++) {\n if (!is_whitespace($this->content[$i]) && !$this->content[$i]->is_null()) {\n return $this->content[$i];\n };\n };\n\n // We use this construct to avoid notice messages in PHP 4.4 and PHP 5\n $dummy = null;\n return $dummy;\n }", "title": "" }, { "docid": "cc059faa179988543be86242a1a24556", "score": "0.53043157", "text": "public function first()\n {\n return current($this->collection);\n }", "title": "" }, { "docid": "cbf6a428d010009be0adc5a2b2fe4b23", "score": "0.530341", "text": "public function getFirstRecordID()\n {\n $firstID = null;\n $keyColumn = $this->getKeyColumn();\n $firstIdRaw = $this->getColumnsFromAbraFlexi([$keyColumn],\n ['limit' => 1, 'order' => $keyColumn], $keyColumn);\n if (!empty($firstIdRaw) && isset(current($firstIdRaw)[$keyColumn])) {\n $firstID = current($firstIdRaw)[$keyColumn];\n }\n return is_numeric($firstID) ? intval($firstID) : $firstID;\n }", "title": "" }, { "docid": "0ab30f5ff4c90ebe8d59c9c9727cc17d", "score": "0.53003883", "text": "protected function createXslStylesheet()\n {\n $uris = $this->resourceLoader->getResourceUris('xsl/master.xsl');\n $domDocument = new DOMDocument();\n $domDocument->load($uris[0]);\n return $domDocument;\n }", "title": "" }, { "docid": "c266977ad3454acf00a03341293da396", "score": "0.5300185", "text": "public function get_style () {\n\t\treturn $this->style;\n\t}", "title": "" }, { "docid": "dc29a9bc90fe2bceaf2d0efd23f51f06", "score": "0.52926034", "text": "public function getFirstRest() {\r\n return $this->get(1);\r\n }", "title": "" }, { "docid": "a40e53ead226f2737f29d4954ab98d5f", "score": "0.5285048", "text": "public function first()\n {\n return $this->execute()->fetch();\n }", "title": "" }, { "docid": "df38901d38ae9c24b971bc2bd5501f4d", "score": "0.52812064", "text": "function obtain_default_style($from_cache = false)\n\t{\n\t\tglobal $db, $config;\n\n\t\tif (($default_style = $this->get('config_style')) === false)\n\t\t{\n\t\t\t$default_style = array();\n\t\t\t$style_id = (int) $config['default_style'];\n\t\t\t$default_style = get_style($style_id, $from_cache);\n\n\t\t\t$this->put('config_style', $default_style);\n\t\t}\n\n\t\treturn $default_style;\n\t}", "title": "" }, { "docid": "a6e44467b912364dd36012455b766941", "score": "0.52790034", "text": "public function getStyle() {\n\n $style = '';\n\n if ($loader = $this->getStyleLoader()) {\n\n $style = $loader::load($this->getName());\n }\n\n return $style;\n }", "title": "" }, { "docid": "fb91cc9b4c521dc2aaeb8826964e622c", "score": "0.5268469", "text": "public function getFirst()\n {\n $this->initialize();\n $queryResult = $this->queryResult;\n reset($queryResult);\n $firstResult = current($queryResult);\n if (false === $firstResult) {\n $firstResult = null;\n }\n\n return $firstResult;\n }", "title": "" }, { "docid": "9f040f18bd9a06edf80cb1c9580b139c", "score": "0.5267895", "text": "public function first(): mixed\n {\n if ($this->_dirty) {\n $this->limit(1);\n }\n\n return $this->all()->first();\n }", "title": "" }, { "docid": "666b88cc6c83402a2d1a685fa8fc216f", "score": "0.5266047", "text": "public final function first(){\n return $this->data()->fetch();\n }", "title": "" }, { "docid": "03e0c584e10b305de47933f3c72edb7f", "score": "0.5263038", "text": "function findStylesheet($stylesheet=\"\")\n\t{\n\t\t$defaultHome = \"/\". $this->serviceDirectory;\n\t\t$localisedHome = $defaultHome .\"/\". $this->backendType;\n\n\t\tif (! $stylesheet)\n\t\t\t$stylesheet = $this->defaultStylesheet;\n\n\t\tif (file_exists($this->webRoot . \"$localisedHome/style/$stylesheet\"))\n\t\t\treturn \"/\". $this->webDirName .\"$localisedHome/style/$stylesheet\";\n\n\t\tif (file_exists($this->webRoot . \"$defaultHome/style/$stylesheet\"))\n\t\t\treturn \"/\". $this->webDirName .\"$defaultHome/style/$stylesheet\";\n\t\treturn $stylesheet;\n\t}", "title": "" }, { "docid": "3eeed8977ec135b1e64b75f760b75bfe", "score": "0.5262606", "text": "function get_stylesheet($stylesheet){\r\n\t\t\tif($this->themeShouldBeOverridden){\r\n\t\t\t\t$this->debugLines[]=\"Overriding the stylesheet in the stylesheet filter\";\r\n\t\t\t\treturn $this->themeToOverrideWith->get_stylesheet();\r\n\t\t\t}\r\n\t\t\treturn $stylesheet;\r\n\t\t}", "title": "" }, { "docid": "3d3ba02aae5f9029ae66e67a8ee0a341", "score": "0.52575266", "text": "public function getStyleSheet()\n {\n $out = \"\";\n foreach($this->stylesheet as $stylesheet)\n {\n $out .= \"<link rel=\\\"stylesheet\\\" media=\\\"{$stylesheet['media']}\\\" href=\\\"{$stylesheet['href']}\\\">\\n\";\n }\n echo $out;\n }", "title": "" }, { "docid": "03f35d9c7f1acfb518c44e234bc97eb5", "score": "0.5246477", "text": "public function get_rid_of_default_styles() {\n\t\tglobal $wp_styles;\n\n\t\tif ( is_array( $wp_styles->registered ) ) {\n\t\t\tforeach ( $wp_styles->registered as $registered ) {\n\t\t\t\t$this->styles[ $registered->handle ] = new Toolset_Style( $registered->handle );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f0bc8c249125440ebb14b74c5880bad1", "score": "0.5242154", "text": "public function first()\n {\n return $this->toQuery()->first();\n }", "title": "" }, { "docid": "205e44c063ae3b40ba7d3c1b063d85c5", "score": "0.52406186", "text": "public function __sheet($title='Test Title', $xslt='xslt')\n {\n\n $stylesheet = new TeiDisplayStylesheet;\n $stylesheet->title = $title;\n $stylesheet->xslt = $xslt;\n $stylesheet->save();\n\n return $stylesheet;\n\n }", "title": "" }, { "docid": "74c6fc09a875e19bd3672ad6f41c65eb", "score": "0.5238733", "text": "function first(){\n\t\t$this->idx= 0;\n\t\treturn $this->next();\n\t}", "title": "" }, { "docid": "d5319924da6656ce4bdc4c7ae2434cf5", "score": "0.52361166", "text": "public function first(): mixed\n {\n $key = $this->firstKey();\n if (null === $key) {\n return null;\n }\n\n return $this->elements[$key];\n }", "title": "" }, { "docid": "63c68ddc7a9ecc354aa31369e1fb2fb2", "score": "0.5230972", "text": "public function first()\n {\n return $this->items->getIterator()->current();\n }", "title": "" }, { "docid": "f8d29b639113c74ef6b67d0fbc5f3a85", "score": "0.52226454", "text": "public function getFirstItem()\n {\n return isset($this->data[0]) ? $this->data[0] : null;\n }", "title": "" }, { "docid": "8cbba0a2d8199f54a363e576f84ed844", "score": "0.52038187", "text": "function get_stylesheet() {\n\t\n\t$get_stylesheet = get_option('stylesheet');\n\t\n\treturn apply_filters('stylesheet', $get_stylesheet);\n}", "title": "" }, { "docid": "c496c9491ee034b387555821e2c5e219", "score": "0.52016675", "text": "function &getStyleFile() {\n\t\t$styleFile =& $this->getData('styleFile');\n\t\treturn $styleFile;\n\t}", "title": "" }, { "docid": "2cd4b1cb0328a68d6bb50d0d76427a7e", "score": "0.5194178", "text": "public function getFirst() {\n if($this->head) {\n return $this->head->value;\n }\n return null;\n }", "title": "" }, { "docid": "34a5e1346b582daa3dbc5d0320c77f26", "score": "0.51732403", "text": "public function first(): ?string\n {\n return parent::first();\n }", "title": "" }, { "docid": "34a5e1346b582daa3dbc5d0320c77f26", "score": "0.51732403", "text": "public function first(): ?string\n {\n return parent::first();\n }", "title": "" } ]
fc5dd8a18ca84901e19252c62861c3f2
return an array of the userdefined property keys allowed for this tenant for this entity
[ { "docid": "123af7d27f61e593a15a6bb65a2484b8", "score": "0.75232005", "text": "public function getPropertyKeys() {\n\t\t\t// by default will assume we can query based on entity name; override if you need special handling\n\t\t\t$query = 'call getTenantPropertiesByEntity(' . $this->tenantid . ',' . Database::queryString($this->getName()) . ')';\n\t\t\t$result = Database::executeQuery($query);\n\t\t\t\n\t\t\t$keys=array();\n\t\t\twhile ($r = mysqli_fetch_row($result))\n\t\t\t\t{\n\t\t\t\t$keys[] = $r;\n\t\t\t\t}\n\t\t\treturn $keys;\n\t\t\t}", "title": "" } ]
[ { "docid": "82d908a102c394cf0bf35923cd1ce169", "score": "0.7578573", "text": "public static function getPropertyKeys()\n {\n return array('id', 'user_id', 'email', 'primary');\n }", "title": "" }, { "docid": "07cdff3425fda8d677a68eaf23dcf8bf", "score": "0.696369", "text": "public function getAllowedPropertyValues() : array;", "title": "" }, { "docid": "ba1987c1a52856e74341ff1a6675223b", "score": "0.68465924", "text": "public function getFieldKeys()\n\t{\n\t\t$r = new \\ReflectionObject($this);\n\t\t$props = $r->getProperties(\\ReflectionProperty::IS_PRIVATE | \\ReflectionProperty::IS_PROTECTED);\n\n\t\t$keys = array();\n\t\tforeach ($props as $prop) {\n\t\t\t// Skip _props because they arent entity properties\n\t\t\tif ($prop->name[0] === '_') continue;\n\n\t\t\t$keys[] = $prop->name;\n\t\t}\n\n\t\treturn $keys;\n\t}", "title": "" }, { "docid": "cb6c213e71e03de80609a9183238ed9a", "score": "0.6673253", "text": "protected function getAllowedKeys()\n {\n return [\n self::INLINE_STYLE_BACKUP_ATTRIBUTE => '',\n self::MAX_HERO_IMAGE_COUNT => 2,\n self::OPTIMIZE_HERO_IMAGES => true,\n self::PRELOAD_SRCSET => false,\n ];\n }", "title": "" }, { "docid": "3f96bd3c0381b27edddfc5e42ba22672", "score": "0.664113", "text": "public function keys()\n {\n return array_keys($this->properties);\n }", "title": "" }, { "docid": "6966a3ef124f42fe7700753af090d1ce", "score": "0.6629424", "text": "public function getPropertiesList()\n {\n return array_keys($this->validProperties);\n }", "title": "" }, { "docid": "f57307bf1660cd29f0a4ea72fc698d83", "score": "0.6554301", "text": "public function get_property_keys() {\n $data = $this->get_data();\n $data_keys = $this->get_data_keys();\n\n foreach ( $data_keys as $data_key ) {\n if ( isset( $data[$data_key] ) && is_array( $data[$data_key] ) ) {\n $data_key_index = array_search( $data_key, $data_keys );\n if ( $data_key_index !== false ) {\n unset( $data_keys[$data_key_index] );\n }\n }\n }\n\n $include_db_keys = false;\n if ( has_filter( \"nwsi_include_product_keys_from_database\" ) ) {\n $include_db_keys = (bool) apply_filters( \"nwsi_include_product_keys_from_database\" );\n }\n\n if ( $include_db_keys ) {\n // combine with product meta keys from the database\n require_once( NWSI_DIR_PATH . \"includes/controllers/core/class-nwsi-db.php\" );\n $db = new NWSI_DB();\n $keys = array_merge( $data_keys, $db->get_product_meta_keys() );\n } else {\n $keys = $data_keys;\n }\n\n $unique_keys = array_unique( $keys );\n sort( $unique_keys, SORT_STRING );\n\n if ( has_filter( \"nwsi_product_property_keys\" ) ) {\n $unique_keys = (array) apply_filters( \"nwsi_product_property_keys\", $unique_keys );\n }\n\n return $unique_keys;\n }", "title": "" }, { "docid": "721bf5a1306db8d4da1ec50960e71e94", "score": "0.64925694", "text": "public function getRequiredKeyFields()\n {\n return [\n ];\n }", "title": "" }, { "docid": "7b3ddf155e833be87849434cb0e7f8d9", "score": "0.62914634", "text": "public function getPropertiesAllowableValues()\n {\n return [\n self::PROPERTIES_REDIRECT_APPROACH,\n self::PROPERTIES_DECOUPLED_APPROACH,\n self::PROPERTIES_DETAILED_CONSENT,\n ];\n }", "title": "" }, { "docid": "4d5136694c09491f789fc6f56ce1254a", "score": "0.6250102", "text": "public static function getPersistentPropertyKeys() {\n // The other cookie-only properties are either recomputed or\n // should be overwritten each time.\n return array('openLoginUsed', 'socialUserID');\n }", "title": "" }, { "docid": "0dc3880bca2b43e24ed79418cb580fd0", "score": "0.6249159", "text": "public function getValidPermissionKeys();", "title": "" }, { "docid": "59d5ac5d0c99b93eab5836384bb50e47", "score": "0.62300086", "text": "public static function _getPropertyNames(): array\n {\n return [\n 'id',\n 'type',\n 'title',\n 'username',\n 'first_name',\n 'last_name',\n 'is_forum',\n 'photo',\n 'active_usernames',\n 'emoji_status_custom_emoji_id',\n 'bio',\n 'has_private_forwards',\n 'has_restricted_voice_and_video_messages',\n 'join_to_send_messages',\n 'join_by_request',\n 'description',\n 'invite_link',\n 'pinned_message',\n 'permissions',\n 'slow_mode_delay',\n 'message_auto_delete_time',\n 'has_aggressive_anti_spam_enabled',\n 'has_hidden_members',\n 'has_protected_content',\n 'sticker_set_name',\n 'can_set_sticker_set',\n 'linked_chat_id',\n 'location',\n ];\n }", "title": "" }, { "docid": "e6050958b27158925671c2965ac4ab3f", "score": "0.6211734", "text": "public static function additionalConfigKeys()\n {\n return ['tenant', 'include_tenant_info', 'include_avatar', 'include_avatar_size', 'fields', 'tenant_fields'];\n }", "title": "" }, { "docid": "a5468172c95d3acf26f4ebd19632fb94", "score": "0.61365575", "text": "public function propertyNames() {\n\n return array_keys($this->properties);\n }", "title": "" }, { "docid": "c8f2dfe519fc138776649b9ab8d0b4ae", "score": "0.607744", "text": "public static final function getEntityConfigKeysRequired(): array {\n return [\n static::CROP,\n static::SRC_HEIGHT,\n static::SRC_WIDTH,\n static::THB_HEIGHT,\n static::THB_WIDTH,\n ];\n }", "title": "" }, { "docid": "aa8407e6740a851fd759ee75043f0a99", "score": "0.60116506", "text": "function getKeyValues() {\n $key = [];\n foreach ($this->getKeyNames() as $field) {\n $key[$field] = $this->$field;\n }\n return $key;\n }", "title": "" }, { "docid": "3a3a0219bd01d301816c486bdb7d9aff", "score": "0.6010425", "text": "public function getRequiredKeys()\n {\n return $this->requiredKeys;\n }", "title": "" }, { "docid": "2cfaace797c43d8fd373ed77af0e932c", "score": "0.5963917", "text": "public function getFieldKeys(): array\n {\n return $this->fieldKeys;\n }", "title": "" }, { "docid": "8bb58c2f0e6821d3e634967f55a0ce7b", "score": "0.5963448", "text": "static public function properties()\n\t{\n\t\treturn array('idKey' => '_id');\n\t}", "title": "" }, { "docid": "1cb843ebcb1d866b677b555f0e0e1544", "score": "0.5953838", "text": "public static function getPrimaryKeys()\n {\n return array('settingName');\n }", "title": "" }, { "docid": "fb17a7d1606b81834242b3aecd177c88", "score": "0.59424424", "text": "protected function getAllowedKeys()\n {\n return [\n 'xpath',\n Tag::HTML,\n Tag::HEAD,\n Tag::BODY,\n Attribute::CHARSET,\n Attribute::VIEWPORT,\n 'ampElements',\n 'ampCustomStyle',\n 'ampCustomStyleByteCount',\n 'inlineStyleByteCount',\n 'links',\n ];\n }", "title": "" }, { "docid": "23164b891360e0e9923706693a5ab7f8", "score": "0.59294474", "text": "public function getProperties() {\n $fields = static::_getMetaFields(get_class($this));\n\n return array_keys($fields);\n }", "title": "" }, { "docid": "dbcd72899fa39a91ce5f5adfbf89e9d0", "score": "0.5928353", "text": "public static function _getPropertyNames(): array\n {\n return [\n 'type',\n 'id',\n 'phone_number',\n 'first_name',\n 'last_name',\n 'vcard',\n 'reply_markup',\n 'input_message_content',\n 'thumbnail_url',\n 'thumbnail_width',\n 'thumbnail_height',\n ];\n }", "title": "" }, { "docid": "1376e0959ca9a9f82c003cd6883bd426", "score": "0.59231377", "text": "public function getVarKeys() {\n\t\t$va_keys = array();\n\t\tif (isset($this->opa_user_vars) && is_array($this->opa_user_vars)) {\n\t\t\t$va_keys = array_keys($this->opa_user_vars);\n\t\t}\n\t\tif (isset($this->opa_volatile_user_vars) && is_array($this->opa_volatile_user_vars)) {\n\t\t\t$va_keys = array_merge($va_keys, array_keys($this->opa_volatile_user_vars));\n\t\t}\n\t\t\n\t\treturn $va_keys;\n\t}", "title": "" }, { "docid": "0c544b3a359e1c3e1b04c23009b56201", "score": "0.5918494", "text": "protected function getUserKeys()\n {\n $columns = User::getColumnList();\n\n $columns = array_diff($columns, ['id','created_at','updated_at','remember_token']);\n $columns = array_values(array_filter($columns, function($item)\n {\n return !ends_with($item, '_id');\n }));\n return $columns;\n }", "title": "" }, { "docid": "8ebff654690d482936d399dacb00e246", "score": "0.58984435", "text": "public function getProperties()\n {\n return array_keys($this->_properties);\n }", "title": "" }, { "docid": "eebc6e2d95a5b001193eaf36ebd47fab", "score": "0.58976805", "text": "public static function _getPropertyNames(): array\n {\n return [\n 'force_reply',\n 'input_field_placeholder',\n 'selective',\n ];\n }", "title": "" }, { "docid": "a0444959216c2c96595c8b9b0ec99012", "score": "0.58974993", "text": "protected function getAllowedKeys()\n {\n return [self::VERSION => 1, self::ENFORCED_CSS_MAX_BYTE_COUNT => AmpTransformed::SPEC[SpecRule::MAX_BYTES]];\n }", "title": "" }, { "docid": "1665393c9c85a8328e88e970ec025d7d", "score": "0.5894269", "text": "public function getKeys()\n\t{\n\t\treturn $this->getFieldKeys();\n\t}", "title": "" }, { "docid": "5e137e1ac4956161416ea647b79fdaab", "score": "0.5877007", "text": "protected function getAllowedFields(): array\n {\n return [\n 'users.id',\n 'users.name',\n 'users.email',\n 'users.email_verified_at',\n 'users.password',\n 'users.remember_token',\n 'users.created_at',\n 'users.updated_at',\n ];\n }", "title": "" }, { "docid": "972b8f359e90c3c334768f8af42d71d7", "score": "0.58713824", "text": "protected function properties()\n {\n return [];\n }", "title": "" }, { "docid": "972b8f359e90c3c334768f8af42d71d7", "score": "0.58713824", "text": "protected function properties()\n {\n return [];\n }", "title": "" }, { "docid": "7ede32b128854b16c583dadce2f8fe35", "score": "0.5870703", "text": "public function getProperties()\n {\n return array_keys($this->fields);\n }", "title": "" }, { "docid": "61cbce6e94139ca6794fa0717421dfd4", "score": "0.58683187", "text": "public function getProperties() {\n return array_keys($this->_values);\n }", "title": "" }, { "docid": "c399f775c4cc5451c99f5c0eee2570ab", "score": "0.58677894", "text": "public function getProtectTypeAllowableValues()\r\n {\r\n return [\r\n self::PROTECT_TYPE_BACKUP,\r\n self::PROTECT_TYPE_REPLICATION,\r\n self::PROTECT_TYPE_HYBRID,\r\n ];\r\n }", "title": "" }, { "docid": "39694e8ebfa903bef6a50a343a1221e9", "score": "0.58596885", "text": "protected static function define_properties() {\n return array(\n 'issuerid' => array(\n 'type' => PARAM_INT\n ),\n 'userid' => array(\n 'type' => PARAM_INT\n ),\n 'username' => array(\n 'type' => PARAM_RAW\n ),\n 'email' => array(\n 'type' => PARAM_RAW\n ),\n 'confirmtoken' => array(\n 'type' => PARAM_RAW\n ),\n 'confirmtokenexpires' => array(\n 'type' => PARAM_INT\n )\n );\n }", "title": "" }, { "docid": "a8b81cb39c2d577cb243a245c44f083a", "score": "0.58519894", "text": "public function getApplicableAuthProperties()\n {\n if (is_null($this->vehicleType)) {\n return [];\n }\n\n if ((string)$this->licenceType == Licence::LICENCE_TYPE_SPECIAL_RESTRICTED) {\n return [];\n }\n\n if ((string)$this->vehicleType == RefData::APP_VEHICLE_TYPE_MIXED &&\n is_null($this->totAuthLgvVehicles)\n ) {\n return [\n 'totAuthVehicles',\n 'totAuthTrailers'\n ];\n }\n\n $typeMappings = [\n RefData::APP_VEHICLE_TYPE_PSV => [\n 'totAuthVehicles',\n ],\n RefData::APP_VEHICLE_TYPE_HGV => [\n 'totAuthVehicles',\n 'totAuthTrailers',\n ],\n RefData::APP_VEHICLE_TYPE_MIXED => [\n 'totAuthHgvVehicles',\n 'totAuthLgvVehicles',\n 'totAuthTrailers',\n ],\n RefData::APP_VEHICLE_TYPE_LGV => [\n 'totAuthLgvVehicles',\n ],\n ];\n\n $vehicleTypeId = $this->vehicleType->getId();\n if (!isset($typeMappings[$vehicleTypeId])) {\n throw new RuntimeException('Unrecognised vehicle type id: ' . $vehicleTypeId);\n }\n\n return $typeMappings[$vehicleTypeId];\n }", "title": "" }, { "docid": "a6b0e3a7b1304d02bd99407990432e4e", "score": "0.58452994", "text": "protected function metakeys()\n {\n return collect($this->assettype->metaschema)->pluck('name')->all();\n }", "title": "" }, { "docid": "1cb342270913dbbe518902202715440c", "score": "0.5842317", "text": "function getPropertyNames() {\n\t\treturn array_keys($this->_properties);\n\t}", "title": "" }, { "docid": "a4401e6c67054b2d9885c317b26fe74d", "score": "0.58259887", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getThreeDSReqPriorAuthMethodAllowableValues();\n if (!is_null($this->container['threeDSReqPriorAuthMethod']) && !in_array($this->container['threeDSReqPriorAuthMethod'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'threeDSReqPriorAuthMethod', must be one of '%s'\",\n $this->container['threeDSReqPriorAuthMethod'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "76edb1049350521c9268cb20c9086a33", "score": "0.5814228", "text": "public function getKeys();", "title": "" }, { "docid": "c4fd2781e7df5fa59e8758d02495491c", "score": "0.579168", "text": "public static function get_default_property_names()\n {\n return parent::get_default_property_names(\n array(\n self::PROPERTY_USER_ID, \n self::PROPERTY_COURSE_ID, \n self::PROPERTY_TOOL_ID, \n self::PROPERTY_CATEGORY_ID, \n self::PROPERTY_PUBLICATION_ID, \n self::PROPERTY_ACCESS_DATE));\n }", "title": "" }, { "docid": "1d1a71f07f2c66560560ba471e40ed58", "score": "0.5787197", "text": "public static final function getConfigKeysRequired(): array {\n return [\n static::UPLOADS_BASE_DIR,\n static::RELATIVE_BASE_DIR,\n static::ENTITIES,\n ];\n }", "title": "" }, { "docid": "a94a1f7a7a0b022f01f18bef25b99314", "score": "0.57755953", "text": "public function getKeySpecAllowableValues()\r\n {\r\n return [\r\n self::KEY_SPEC_AES_256,\r\n self::KEY_SPEC_SM4,\r\n self::KEY_SPEC_RSA_2048,\r\n self::KEY_SPEC_RSA_3072,\r\n self::KEY_SPEC_RSA_4096,\r\n self::KEY_SPEC_EC_P256,\r\n self::KEY_SPEC_EC_P384,\r\n self::KEY_SPEC_SM2,\r\n ];\r\n }", "title": "" }, { "docid": "be6f77f8565a374d353319c6c4bb4d09", "score": "0.57742226", "text": "public function getItemMetaOptionKeys() {\n return parent::getItemMetaOptionKeys();\n }", "title": "" }, { "docid": "1a4fd498848e29a9b4f793bde22835e0", "score": "0.57613194", "text": "public function getKeysList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "1a4fd498848e29a9b4f793bde22835e0", "score": "0.57613194", "text": "public function getKeysList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "331e9162f0aacdee619075cc42ab3401", "score": "0.57497704", "text": "public function keyPathsReadOnly(){\n\t\treturn array(\"oid\");\n\t}", "title": "" }, { "docid": "7ca6d7ec381f61292d6dd02c9bdcefa5", "score": "0.57452744", "text": "public static function getAllowedAttachmentKeys()\n {\n return self::$allowedAttachmentKeys ?: self::$allowedAttachmentKeys = [\n 'title', 'text', 'color', 'images'\n ];\n }", "title": "" }, { "docid": "b53c8ed88386cbd8e13dc8748621c5b5", "score": "0.5742902", "text": "public static function _getPropertyNames(): array\n {\n return [\n 'file_id',\n 'file_unique_id',\n 'type',\n 'width',\n 'height',\n 'is_animated',\n 'is_video',\n 'thumbnail',\n 'emoji',\n 'set_name',\n 'premium_animation',\n 'mask_position',\n 'custom_emoji_id',\n 'needs_repainting',\n 'file_size',\n ];\n }", "title": "" }, { "docid": "adca9bf0340f70769458ab28872909c1", "score": "0.5742323", "text": "public function _getCacheTokenArray(): array\n {\n $properties = [];\n $conditionsArray = $this->_getConditionProperties();\n\n foreach ($conditionsArray as $propertyName => $propertyValue){\n if(!in_array($propertyName, $this->propertiesNotUsedForCacheToken)){\n $properties[$propertyName] = $propertyValue;\n }\n }\n\n return $properties;\n }", "title": "" }, { "docid": "93bebd494ac09d200d4e0aa0239ccf34", "score": "0.5710995", "text": "public function getAvailableProperties();", "title": "" }, { "docid": "341b5fabfb30d7e849cf5da7198d4689", "score": "0.5709218", "text": "public function keys(): array;", "title": "" }, { "docid": "341b5fabfb30d7e849cf5da7198d4689", "score": "0.5709218", "text": "public function keys(): array;", "title": "" }, { "docid": "33c867567856e99b91bba868c3ce8ad0", "score": "0.5699636", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getSplashAuthSettingsAllowableValues();\n if (!is_null($this->container['splash_auth_settings']) && !in_array($this->container['splash_auth_settings'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'splash_auth_settings', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "60273921f13fe643184af96fed5ce7cd", "score": "0.5697885", "text": "public function getKeys():array{\n return $this->keys;\n }", "title": "" }, { "docid": "9ec88e955ce1e8020ceaa9107d93f02e", "score": "0.5696839", "text": "public function getBasedOnAllowableValues()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "06912efb2f67bb35ce7099a1f5e3fc7f", "score": "0.5694163", "text": "public function getKeyUsageAllowableValues()\r\n {\r\n return [\r\n self::KEY_USAGE_ENCRYPT_DECRYPT,\r\n self::KEY_USAGE_SIGN_VERIFY,\r\n ];\r\n }", "title": "" }, { "docid": "f51fe22380008cb21eb08bbd0d08ecbc", "score": "0.56941545", "text": "public static function getKeys() {\n $data = parent::get();\n return $data ? $data[0] : array();\n }", "title": "" }, { "docid": "094229eb090347841d9ab8697c1cc577", "score": "0.5693226", "text": "public function getRequiredProperties()\n {\n return array(\n 'VPSProtocol',\n 'TxType',\n 'Vendor',\n 'VendorTxCode',\n 'Amount',\n 'Currency',\n 'Description',\n 'RelatedVPSTxId',\n 'RelatedVendorTxCode',\n 'RelatedSecurityKey',\n 'RelatedTxAuthNo'\n );\n }", "title": "" }, { "docid": "ee0b8d1c4cf4ae8fd0b0a0ff54645f1d", "score": "0.56926376", "text": "public function getPropertyNames(): array;", "title": "" }, { "docid": "144b1d1bbd502afa99e97a6fa05e92a0", "score": "0.56926054", "text": "function keys()\n {\n return array_keys($this->keyTypes());\n }", "title": "" }, { "docid": "144b1d1bbd502afa99e97a6fa05e92a0", "score": "0.56926054", "text": "function keys()\n {\n return array_keys($this->keyTypes());\n }", "title": "" }, { "docid": "4772ca05fa6014ed2ea22736dd2496ee", "score": "0.568741", "text": "function getKeys() : array;", "title": "" }, { "docid": "6b5fcf58f0207d4ce1ae0dc979c9618f", "score": "0.568647", "text": "public function managedProperties()\n {\n return $this->userRepo->managedProperties();\n }", "title": "" }, { "docid": "1d702905ef7e0fef8777e3e14383074b", "score": "0.5684949", "text": "public function getKeysList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "1d702905ef7e0fef8777e3e14383074b", "score": "0.5684949", "text": "public function getKeysList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "b7e64cb5c33a89153aa3ac8287a09909", "score": "0.56744164", "text": "public function keys(): array\n {\n return array_keys($this->userBlocks);\n }", "title": "" }, { "docid": "ca12c7cbf9db81cca50cdccd70888d02", "score": "0.56715924", "text": "public function getKeys()\r\n {\r\n return $this->keys;\r\n }", "title": "" }, { "docid": "d4c8747173010a766259979f6c50ec38", "score": "0.567074", "text": "public function getRestrictionProductAttribute(){\r\n return array_keys(Mage::app()->getConfig()->getNode('product_attribute_restriction')->asArray());\r\n }", "title": "" }, { "docid": "9825fa5d4932508feb4f35b1c73ca480", "score": "0.56701344", "text": "public function getUniqueKeys() {\n return $this->unique_keys;\n }", "title": "" }, { "docid": "ae07287a7fd2da88e54effe14f77b7b7", "score": "0.56667525", "text": "public function properties()\n {\n return array(\n 'id' => new Types\\Sequence(),\n 'testkey' => new Types\\String(),\n 'variantkey' => new Types\\String(),\n 'eventkey' => new Types\\String(),\n 'participantid' => new Types\\String(),\n 'value' => new Types\\Integer(),\n 'timecreated' => new Types\\UnixTimestamp(),\n 'metadata' => new Types\\String(65534),\n );\n }", "title": "" }, { "docid": "e74956ea771f60624bf0f03cf2dc5a2a", "score": "0.56604975", "text": "private function get_user_properties(): array {\n\t\t/**\n\t\t * Current user.\n\t\t *\n\t\t * @var null|WP_User $current_user\n\t\t */\n\t\t$current_user = wp_get_current_user();\n\t\t$roles = $current_user instanceof WP_User ? $current_user->roles : [];\n\t\t$role = ! empty( $roles ) && \\is_array( $roles ) ? array_shift( $roles ) : '';\n\t\t$experiments = implode( ',', $this->experiments->get_enabled_experiments() );\n\n\t\t$active_plugins = [];\n\n\t\t$woocommerce_status = $this->woocommerce->get_plugin_status();\n\t\tif ( $woocommerce_status['active'] ) {\n\t\t\t$active_plugins[] = 'woocommerce';\n\t\t}\n\n\t\t$site_kit_status = $this->site_kit->get_plugin_status();\n\t\t$analytics = $site_kit_status['analyticsActive'] ? 'google-site-kit' : ! empty( $this->settings->get_setting( $this->settings::SETTING_NAME_TRACKING_ID ) );\n\t\tif ( $site_kit_status['active'] ) {\n\t\t\t$active_plugins[] = 'google-site-kit';\n\t\t}\n\n\t\t/**\n\t\t * Ad network type.\n\t\t *\n\t\t * @var string $ad_network\n\t\t */\n\t\t$ad_network = $this->settings->get_setting( $this->settings::SETTING_NAME_AD_NETWORK, 'none' );\n\n\t\treturn [\n\t\t\t'siteLocale' => get_locale(),\n\t\t\t'userLocale' => get_user_locale(),\n\t\t\t'userRole' => $role,\n\t\t\t'enabledExperiments' => $experiments,\n\t\t\t'wpVersion' => (string) get_bloginfo( 'version' ),\n\t\t\t'phpVersion' => (string) PHP_VERSION,\n\t\t\t'isMultisite' => (int) is_multisite(),\n\t\t\t'serverEnvironment' => wp_get_environment_type(),\n\t\t\t'adNetwork' => $ad_network,\n\t\t\t'analytics' => $analytics,\n\t\t\t'activePlugins' => implode( ',', $active_plugins ),\n\t\t];\n\t}", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.5659982", "text": "public function getProperties(): array;", "title": "" }, { "docid": "2adb457459190823217adae10d83f290", "score": "0.5656619", "text": "public function getAllowedFields(): array\n {\n\n return $this->allowedFields;\n }", "title": "" }, { "docid": "2adb457459190823217adae10d83f290", "score": "0.5656619", "text": "public function getAllowedFields(): array\n {\n\n return $this->allowedFields;\n }", "title": "" }, { "docid": "c272d7ca07c7899af78c15ef688cc9a0", "score": "0.56563574", "text": "public function getKeys()\n {\n return $this->keys;\n }", "title": "" }, { "docid": "c272d7ca07c7899af78c15ef688cc9a0", "score": "0.56563574", "text": "public function getKeys()\n {\n return $this->keys;\n }", "title": "" }, { "docid": "c272d7ca07c7899af78c15ef688cc9a0", "score": "0.56563574", "text": "public function getKeys()\n {\n return $this->keys;\n }", "title": "" }, { "docid": "ae87d4d427a9a8f851b45b4f29fdf5f4", "score": "0.56503147", "text": "public function getAllowedValues() : array\n {\n return self::all();\n }", "title": "" }, { "docid": "d8c548a2aa4b3253e186b62d67d33214", "score": "0.56460786", "text": "public function getKeysList()\n {\n return $this->keys;\n }", "title": "" }, { "docid": "da3bb7e04ad572f80eec3ec085d435aa", "score": "0.5643198", "text": "protected function _getPropertiesId()\n {\n $properties = array();\n $returnFields = $this->getFields();\n $subField = self::GET_PROPERTY;\n foreach ($returnFields as $currentField) {\n if (strpos($currentField, $subField) === 0) {\n $properties[] = substr($currentField, mb_strlen(self::GET_PROPERTY));\n }\n }\n return $properties;\n }", "title": "" }, { "docid": "e31ac3b07a6767d14d469249ccee9a90", "score": "0.5630979", "text": "public function getKeys() {\n return $this->keys;\n }", "title": "" }, { "docid": "bc1d29ad0ba731f2683c3c56f2777b7c", "score": "0.5630758", "text": "static function get_default_property_names()\r\n {\r\n return array(self :: PROPERTY_GROUP_ID, self :: PROPERTY_USER_ID);\r\n }", "title": "" }, { "docid": "557290e3e8e2b5a12099af2595a3029e", "score": "0.5621081", "text": "public static function getIgnorableRequiredSettings()\n\t{\n\t\t/**\n\t\t * \n\t\t * @global\tilSetting\n\t\t * \n\t\t */\n\t\tglobal $ilSetting;\n\t\t\n\t\t$ignorableSettings = array();\n\t\n\t\tforeach(self::$user_field as $field => $definition)\n\t\t{\n\t\t\t// !!!username and password must not be ignored!!!\n\t\t\tif( 'username' == $field ||\n\t\t\t\t'password' == $field )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Field is not required -> continue\n\t\t\tif( !$ilSetting->get('require_'.$field) )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif( self::isEditableByUser($field) )\n\t\t\t{\t\t\t\n\t\t\t\t$ignorableSettings[] = $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ignorableSettings;\n\t}", "title": "" }, { "docid": "9e7d227638a41cb812789e263b598a6b", "score": "0.5619179", "text": "public function getKeys() { return $this->keys; }", "title": "" }, { "docid": "2832ffad90ac65f75e484d34c88c9dbe", "score": "0.5617811", "text": "public static function _getPropertyNames(): array\n {\n return [\n 'message_auto_delete_time',\n ];\n }", "title": "" }, { "docid": "2b63d468c45939c2a5d1dcd633637a2e", "score": "0.56142044", "text": "private function getValidatablePropertyIds()\n {\n $result = $this->db->select(\n DUMP_DATA_TABLE,\n array( 'identifier_pid', 'pid' ),\n array(),\n __METHOD__,\n array( 'DISTINCT' )\n );\n\n $validatableProperties = array();\n foreach ( $result as $row ) {\n $validatableProperties[ $row->identifier_pid ][ ] = $row->pid;\n }\n\n return $validatableProperties;\n }", "title": "" }, { "docid": "f4f600826aef6295c171db39981c825d", "score": "0.56065863", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['accessToken'] === null) {\n $invalidProperties[] = \"'accessToken' can't be null\";\n }\n if ($this->container['tokenType'] === null) {\n $invalidProperties[] = \"'tokenType' can't be null\";\n }\n if ($this->container['expiresIn'] === null) {\n $invalidProperties[] = \"'expiresIn' can't be null\";\n }\n return $invalidProperties;\n }", "title": "" }, { "docid": "082e572a19bb795d41e5838508beace0", "score": "0.56044906", "text": "public static function getAvailableSettingsKeys() {\n $settings_keys = [];\n $reflect = new \\ReflectionClass(static::class);\n foreach ($reflect->getConstants() as $key => $value) {\n if (strpos($key, 'SETTINGS_') === 0) {\n $settings_keys[$key] = $value;\n }\n }\n\n return $settings_keys;\n }", "title": "" }, { "docid": "418de65720ad97b99fc1f18115061dfa", "score": "0.56032", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['password'] === null) {\n $invalidProperties[] = \"'password' can't be null\";\n }\n $allowedValues = $this->getAuthTypeAllowableValues();\n if (!is_null($this->container['auth_type']) && !in_array($this->container['auth_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'auth_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "a4723696cacdc9a7f8f4b3b043ccadf3", "score": "0.5601784", "text": "public function encryptableFields()\n {\n return ['secret_key'];\n }", "title": "" }, { "docid": "ec65612ed3ec664731b46c9e3aeac8d6", "score": "0.5591619", "text": "public static function getProperties()\n {\n return [\n 'UnitPrice' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'AccountCode' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'COGSAccountCode' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'UpdatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\\\DateTimeInterface', false, false],\n 'TaxType' => [false, self::PROPERTY_TYPE_ENUM, null, false, false],\n ];\n }", "title": "" }, { "docid": "efb3f32c8e7192e9fd8da1a3521b6254", "score": "0.5590128", "text": "public function getKeys()\n {\n return array_keys($this->_value_);\n }", "title": "" }, { "docid": "cf43277698853d6da67cf8b36eff37fe", "score": "0.5587046", "text": "public function getProtectTypeAllowableValues()\r\n {\r\n return [\r\n self::PROTECT_TYPE_BACKUPREPLICATIONHYBRID,\r\n ];\r\n }", "title": "" }, { "docid": "5f4e7a15f3e05f6324af1c778df236d7", "score": "0.55829006", "text": "public function get_keys()\n\t{\n\t\t$map = array();\n\t\t$l = strlen($this->prefix);\n\t\t$i = new \\APCIterator('user', '/^'.preg_quote($this->prefix).'/', APC_ITER_KEY);\n\t\tforeach ($i as $item)\n\t\t{\n\t\t\t$map[] = substr($item[self::apc_arr_key], $l);\n\t\t}\n\t\treturn $map;\n\t}", "title": "" }, { "docid": "04be44547c6d4bf963781d47173bad48", "score": "0.55794865", "text": "public function getKeys() {\n\t return array_keys($this->data);\n }", "title": "" }, { "docid": "e95a71dfc7555f55ce77e7bb335aff92", "score": "0.55768603", "text": "public function getCategoryMetaOptionKeys() {\n return parent::getCategoryMetaOptionKeys();\n }", "title": "" }, { "docid": "b55a7f959c06c80e92579bb11f4890e0", "score": "0.5574948", "text": "static function getPrimaryKeys() {\n\t\treturn GuestGuestType::$_primaryKeys;\n\t}", "title": "" }, { "docid": "344e768f0dcaf8abbadd5d5e966daf0f", "score": "0.557221", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['useruuid'] === null) {\n $invalidProperties[] = \"'useruuid' can't be null\";\n }\n if ($this->container['status'] === null) {\n $invalidProperties[] = \"'status' can't be null\";\n }\n return $invalidProperties;\n }", "title": "" } ]
a78be0ad921d7c5b67b5637734490022
Search Article method: searches the article Parameter: $articleKeyword, $articleSearchType Return type: string
[ { "docid": "05023b97cb1c79575586dd20b335bc5e", "score": "0.75132656", "text": "function searchArticle($articleKeyword, $articleSearchType)\n {\n // check if the article keyword has a value\n if(trim($articleKeyword) == \"\")\n {\n // return and do not process anything\n return;\n }\n \n // determine the article search type\n if($articleSearchType == \"byTitle\")\n {\n // query all articles that has the same title\n $articlesQuery = mysql_query(\"SELECT article_id, title, account_id, date_submitted, date_modified, status FROM argus_articles WHERE title LIKE '%\".$articleKeyword.\"%'\") or die(mysql_error());\n }\n else\n {\n // query on the accounts based on the given author keyword\n $accountIdQuery = mysql_query(\"SELECT account_id FROM argus_accounts WHERE name LIKE '%\".$articleKeyword.\"%' AND position = 'CONTRIBUTOR'\") or die(mysql_error());\n \n if(mysql_num_rows($accountIdQuery) > 0)\n {\n // set the account id\n $accountId = mysql_result($accountIdQuery,0,\"account_id\");\n }\n \n // query all articles that has the author\n $articlesQuery = mysql_query(\"SELECT article_id, title, account_id, date_submitted, date_modified, status FROM argus_articles WHERE account_id = '\".$accountId.\"'\") or die(mysql_error());\n }\n \n // set the title of the page\n echo \"<h3>Search Result</h3>\";\n echo \"<div class='bg1' id='tablePanel'>\";\n \n // check if there are results\n if(mysql_num_rows($articlesQuery) == 0)\n {\n // notify the user that there are no search result\n echo \"<p><h3 align='center'>There are no search results</h3></p>\";\n }\n else\n {\n // else display the searches found in a table form\n echo \"<table width='100%'>\";\n echo \"<tr>\";\n echo \"<th align='center'>Title</th>\";\n echo \"<th>Author</th>\";\n echo \"<th>Date Submitted</th>\";\n echo \"<th>Date Modified</th>\";\n echo \"<th>Status</th>\";\n echo \"</tr>\";\n \n // display the searches\n $color = true;\n \n for($i=0; $i<mysql_num_rows($articlesQuery); $i++)\n {\n // display the table rows in an alternate color manner\n if($color == true)\n {\n echo \"<tr class='bg1'>\";\n $color = false;\n }\n else\n {\n echo \"<tr>\";\n $color = true;\n }\n \n // set the attributes to be displayed\n $articleId = mysql_result($articlesQuery,$i,\"article_id\");\n $title = $this -> limitTitle(mysql_result($articlesQuery,$i,\"title\"));\n $author = $this -> getAuthorName(mysql_result($articlesQuery,$i,\"account_id\"));\n $dateSubmitted = date(\"m/d/y\", mysql_result($articlesQuery,$i,\"date_submitted\"));\n $dateModified = $this -> getDateModified(mysql_result($articlesQuery,$i,\"date_modified\"));\n $status = mysql_result($articlesQuery,$i,\"status\");\n \n // display the attributes\n echo \"<td align='center'><a href='argusarticles.php?event=view&article=\".$articleId.\"'>\".$title.\"</a></td>\";\n echo \"<td>\".$author.\"</td>\";\n echo \"<td>\".$dateSubmitted.\"</td>\";\n echo \"<td>\".$dateModified.\"</td>\";\n echo \"<td>\".$status.\"</td>\";\n echo \"</tr>\";\n }\n \n echo \"</table>\";\n }\n \n echo \"</div>\";\n \n return;\n }", "title": "" } ]
[ { "docid": "8ae59c8e15ca04779b4c9b0b99a812fd", "score": "0.68442756", "text": "public function search()\n\t\t{\n\t\t\tif ($this->request->is('post')) {\n\t\t\t\tif ($this->request->data) {\n\t\t\t\t\t$q = $this->request->data['Article']['query'];\n\t\t\t\t\t$conditions = array(\n\t\t\t\t\t\t'Article.published' => 1,\n\t\t\t\t\t\t\"OR\" => array(\n\t\t\t\t\t\t\"Article.title LIKE\" => \"%$q%\",\n\t\t\t\t\t\t\"Article.body LIKE\" => \"%$q%\"\n\t\t\t\t\t\t));\n\t\t\t\t\t$result = $this->Article->find('all', array('conditions'=>$conditions));\n\t\t\t\t\tif (!empty($result)){\n\t\t\t\t\t\t$this->set('articles', $result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->Session->setFlash(__('Unable to find the article.'));\n\t\t\t\t\t\t$this->redirect(array('controller' => 'articles', 'action' => 'index'));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash(__('Failed to search for the article.'));\n\t\t\t\t\t$this->redirect(array('controller' => 'articles', 'action' => 'index'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash(__('Failed to search for the article.'));\n\t\t\t\t\t$this->redirect(array('controller' => 'articles', 'action' => 'index'));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f433efa82989a8cffd06d54f8fe04b6b", "score": "0.6839454", "text": "public function search(\\Slim\\Slim $app , $keyword = \"\")\r\n {\r\n //Validate Parameters\r\n\t\t//Validate::validate_empty($keyword,'keyword');\r\n \r\n $type_id = $app->request->get('type_id');\r\n $offset = $app->request->get('offset');\r\n $limit = $app->request->get('limit');\r\n $category_title = $app->request->get(\"category_title\");\r\n\t\t\r\n $params = [];\r\n $sql = \"\r\n SELECT\r\n a.id\r\n FROM\r\n articles a,\r\n categories c\r\n WHERE\r\n a.category_id = c.id AND\r\n\t\t\t\t\ta.status = \".ARTICLE_STATUS_PUBLISH.\" AND \r\n a.published_at <= now() \";\r\n\t\tif(strlen(trim($keyword)) > 0) {\r\n\t\t\t$keyword = '%' . $keyword . '%';\r\n\t\t\t$sql .= \" AND\r\n (\r\n a.title LIKE ? OR a.summary LIKE ? OR a.content LIKE ? OR c.title LIKE ? OR\r\n a.id IN (SELECT at.article_id FROM article_tags at, tags t WHERE at.article_id = a.id AND at.tag_id = t.id AND t.name LIKE ? )\r\n )\r\n\t\t\t\";\r\n \r\n\t\t\t$params = array($keyword, $keyword, $keyword, $keyword, $keyword);\r\n\t\t}\r\n \r\n if(strlen(trim($type_id)) > 0) {\r\n $sql .= \" AND a.type_id = ?\";\r\n $params[] = $type_id;\r\n }\r\n\t\t\r\n\t\t$category = 0;\r\n\t\tif(isset($category_title)) {\r\n $category_obj = Category::where('title', '=', $category_title)->get();\r\n \r\n foreach ($category_obj as $c)\r\n {\r\n if((isset($c->id) && intval($c->id) > 0))\r\n {\r\n $category = $c->id;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n if($category > 0 ) {\r\n\t\t\t$sql .= \" AND a.category_id = ?\";\r\n $params[] = $category;\r\n }\r\n \r\n $select = DB::select($sql, $params);\r\n $article_ids = [];\r\n if(sizeof($select) > 0)\r\n {\r\n foreach($select as $v)\r\n {\r\n $article_ids[] = $v['id'];\r\n }\r\n }\r\n \r\n $articles = Article::whereIn('id', $article_ids)\r\n\t\t\t\t\t\t\t->published()\r\n\t\t\t\t\t\t\t->with('category', 'articletags', 'comments', 'author', 'admin_author')\r\n\t\t\t\t\t\t\t->orderBy('published_at', 'desc')\r\n\t\t\t\t\t\t\t->skip($offset)\r\n\t\t\t\t\t\t\t->take($limit)\r\n\t\t\t\t\t\t\t->get();\r\n \r\n $videos_count = Article::whereIn('id', $article_ids)->where('type_id','=',3)->count();\r\n $articles_count = Article::whereIn('id', $article_ids)->where('type_id','=',1)->count();\r\n $infographics_count = Article::whereIn('id', $article_ids)->where('type_id','=',2)->count();\r\n \r\n $response = new Response();\r\n\t $response->articles = $articles;\r\n $response->count = count($select);\r\n $response->articles_count = $articles_count;\r\n $response->videos_count = $videos_count;\r\n $response->infographics_count = $infographics_count;\r\n \r\n\t $response->send(HTTP_OK);\r\n }", "title": "" }, { "docid": "fe7752ded978067673a6d8a8363215d7", "score": "0.65243083", "text": "public function search(){\n \n $findArticle = $_POST['findArticle'];\n\n //Serach inside Tags\n $findTag = Tag::where('name', $findArticle)->first();\n if (isset($findTag)) {\n $articles1 = $findTag->articles()->get();\n }\n \n //Search inside Articles\n $articles2 = Article::where ( 'title', 'LIKE', '%' . $findArticle . '%' )->orWhere ( 'body', 'LIKE', '%' . $findArticle . '%' )->get ();\n\n //Add articles from both search\n if (isset($articles1)) {\n $allArticles = $articles1->merge($articles2);\n \n } else {\n $allArticles = $articles2;\n\n }\n\n $articles = [];\n foreach($allArticles as $article) {\n\n $articles[$article->id] = $article;\n } \n\n //Verify articles from User\n if (count($articles) > 0) {\n return view('articles.index' , compact('articles'));\n\n } else {\n return view('articles.index');\n }\n }", "title": "" }, { "docid": "64ef6af67091673db453ebe1353028e7", "score": "0.6450843", "text": "public function search($searchTerm)\n {\n $stmt = $this->db->prepare(\n \"SELECT articles.id, articles.title, articles.body, articles.created_at,\n articles.img_path, users.username AS author, article_categories.category_name\n FROM articles\n JOIN users ON articles.author_id = users.id\n JOIN article_categories ON articles.category_id = article_categories.id\n WHERE (articles.title LIKE :searchTerm OR articles.body LIKE :searchTerm)\n LIMIT 50\"\n );\n $stmt->bindParam(':searchTerm', $searchTerm, PDO::PARAM_STR);\n $stmt->execute();\n\n return ($stmt) ? $stmt->fetchAll(PDO::FETCH_ASSOC) : false;\n }", "title": "" }, { "docid": "496efc7c4f8daa40434c49d3b43bc9c5", "score": "0.6402543", "text": "public function search($params);", "title": "" }, { "docid": "496efc7c4f8daa40434c49d3b43bc9c5", "score": "0.6402543", "text": "public function search($params);", "title": "" }, { "docid": "a04bb1dd1db624982b704a228e5d8d03", "score": "0.635002", "text": "protected function actionSearch($params){\n\t\t\n\t\tif(!isset($params['searchString']))\n\t\t\tthrow new \\Exception('No searchstring provided');\n\t\t\n\t\t$searchString = $params['searchString'];\n\t\t\n\t\t\n\t\t$searchParams = \\GO\\Base\\Db\\FindParams::newInstance()\n\t\t\t\t\t\t->select('*')\n\t\t\t\t\t\t->criteria(\\GO\\Base\\Db\\FindCriteria::newInstance()\n\t\t\t\t\t\t\t\t\t\t->addSearchCondition('title', $searchString, false)\n\t\t\t\t\t\t\t\t\t\t->addSearchCondition('meta_title', $searchString, false)\n\t\t\t\t\t\t\t\t\t\t->addSearchCondition('meta_description', $searchString, false)\n\t\t\t\t\t\t\t\t\t\t->addSearchCondition('meta_keywords', $searchString, false)\n\t\t\t\t\t\t\t\t\t\t->addSearchCondition('content', $searchString, false)\n\t\t\t\t\t\t\t);\n\t\t\n\t\t$columnModel = new \\GO\\Base\\Data\\ColumnModel();\n\t\t$store = new \\GO\\Base\\Data\\DbStore('GO\\Site\\Model\\Content',$columnModel,$params,$searchParams);\n\t\n\t\techo $this->render('search', array('searchResults'=>$store));\n\t}", "title": "" }, { "docid": "81847d8f06dfeaa8a4936c68922c7270", "score": "0.63484156", "text": "static public function get_search_by_type($searchType, $searchKeyword)\n {\n\t\tif($searchKeyword == \"\")\n\t\t{\n\t\t\treturn $searchKeyword;\n\t\t}\n\t\tswitch($searchType)\n\t\t{\n\t\t\tcase \"inTitle\":\n\t\t\t$search = \" where music_title like '%\".$searchKeyword.\"%' \";\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"stWith\":\n\t\t\t$search = \" where music_title like '\".$searchKeyword.\"%' \";\n\t\t\tbreak;\n\t\n\t\t\tcase \"exact\":\n\t\t\t$search = \" where music_title like '\".$searchKeyword.\"' \";\n\t\t\tbreak;\n\t\t}\n\t\treturn $search;\n\t}", "title": "" }, { "docid": "dd7421cb68027b64463b7a93482eedc3", "score": "0.62450993", "text": "public function search(Search $search): SearchResult;", "title": "" }, { "docid": "68e5701fac951a385f89a0fc6838e454", "score": "0.622385", "text": "public function search($params = array());", "title": "" }, { "docid": "c87237ca24addd9f816c3dcd8a857957", "score": "0.61061746", "text": "public function searchRecipe($search)\n {\n }", "title": "" }, { "docid": "6345e6df41d49483c6423904ac878b0f", "score": "0.60963154", "text": "public function search($term);", "title": "" }, { "docid": "ea3822a3dd295bbf2122330145363742", "score": "0.6058461", "text": "public function customSearchForArticles($searchQuery) {\n \treturn $this->repository->customSearchForArticles($searchQuery);\n }", "title": "" }, { "docid": "8327df680a05302b996da646eab74692", "score": "0.60542613", "text": "public function search($keywords = '', array $params = array())\n {\n foreach ($params as $alias => $value)\n {\n $this->search_param($alias, $value);\n }\n\n $url = $this->_prepare_request_url($keywords);\n\n $rss = $this->_execute_request($url);\n\n return $this->_parse_search_results($rss);\n }", "title": "" }, { "docid": "8bda62a406e6d5162117537069df4e56", "score": "0.60340786", "text": "public function SearchBy($keyword, $page = 1, $search_in = 'rooms')\n\t{\n\t $lang_id = Application::Get('lang');\n\t\t\n\t\tif($search_in == 'pages'){\n\t\t\t$sql = 'SELECT\n\t\t\t\t\t\tCONCAT(\"page=pages&pid=\", id) as url,\n\t\t\t\t\t\tpage_title as title,\n\t\t\t\t\t\t\"\" as title_image,\n\t\t\t\t\t\tpage_text as text,\n\t\t\t\t\t\tcontent_type,\n\t\t\t\t\t\tlink_url \n\t\t\t\t\tFROM '.TABLE_PAGES.' p\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tlanguage_id = \\''.$lang_id.'\\' AND\n\t\t\t\t\t\tis_published = 1 AND\t\t\t\t\t\t\n\t\t\t\t\t\tshow_in_search = 1 AND\n\t\t\t\t\t\tis_removed = 0 AND\n\t\t\t\t\t\t(finish_publishing IS NULL OR finish_publishing >= \\''.date('Y-m-d').'\\') AND \n\t\t\t\t\t\t(\n\t\t\t\t\t\t page_title LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t page_text LIKE \\'%'.encode_text($keyword).'%\\'\n\t\t\t\t\t\t)';\n\t\t\t$order_field = 'p.id';\t\t\t\n\t\t}else if($search_in == 'news'){\n\t\t\t$sql = 'SELECT\n\t\t\t\t\t\tCONCAT(\"page=news&nid=\", id) as url,\n\t\t\t\t\t\theader_text as title,\n\t\t\t\t\t\t\"\" as title_image,\n\t\t\t\t\t\tbody_text as text,\n\t\t\t\t\t\t\"article\" as content_type,\n\t\t\t\t\t\t\"\" as link_url \n\t\t\t\t\tFROM '.TABLE_NEWS.' n\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tlanguage_id = \\''.$lang_id.'\\' AND\n\t\t\t\t\t\t(\n\t\t\t\t\t\t header_text LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t body_text LIKE \\'%'.encode_text($keyword).'%\\'\n\t\t\t\t\t\t)';\n\t\t\t$order_field = 'n.id';\n\t\t}else if(Modules::IsModuleInstalled('car_rental') && $search_in == 'cars'){\n\t\t\t// cars\n\t\t\t$sql = 'SELECT\n\t\t\t\t\tav.*,\n\t\t\t\t\tCONCAT(\"page=cars&car_id=\", av.id) as url,\n\t\t\t\t\tCONCAT(md.name, \" \", av.model, \" / \", cad.name) as title,\n\t\t\t\t\tCONCAT(\"<img src=images/vehicles/\", IF(av.image_thumb != \"\", av.image_thumb, \"no_image.png\"), \" height=50px width=50px class=search-room-icon />\") as title_image,\n\t\t\t\t\tCONCAT(vcd.name, \" \", vd.description) as text,\n\t\t\t\t\t\"article\" as content_type,\n\t\t\t\t\t\"\" as link_url\n\t\t\t\tFROM '.TABLE_CAR_AGENCY_VEHICLES.' av\n\t\t\t\t\tINNER JOIN '.TABLE_CAR_AGENCIES_DESCRIPTION.' cad ON cad.agency_id = av.agency_id AND cad.language_id = \\''.Application::Get('lang').'\\'\t\n\t\t\t\t\tINNER JOIN '.TABLE_CAR_AGENCY_VEHICLES_DESCRIPTION.' vd ON av.id = vd.agency_vehicle_id AND vd.language_id = \\''.Application::Get('lang').'\\'\t\n\t\t\t\t\tINNER JOIN '.TABLE_CAR_AGENCY_VEHICLE_TYPES.' vt ON av.vehicle_type_id = vt.id\n\t\t\t\t\tINNER JOIN '.TABLE_CAR_AGENCY_VEHICLE_CATEGORIES_DESCRIPTION.' vcd ON vt.vehicle_category_id = vcd.agency_vehicle_category_id AND vcd.language_id = \\''.Application::Get('lang').'\\'\n\t\t\t\t\tINNER JOIN '.TABLE_CAR_AGENCY_MAKES_DESCRIPTION.' md ON av.make_id = md.make_id AND md.language_id = \\''.Application::Get('lang').'\\'\n\t\t\t\tWHERE\n\t\t\t\t\tvd.description LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\tvcd.name LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\tcad.name LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\tmd.name LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\tav.model LIKE \\'%'.encode_text($keyword).'%\\'\n\t\t\t';\n\t\t\t$order_field = 'av.id';\n\t\t}else if($search_in == 'faq'){\n\t\t\t// faq\n\t\t\t$sql = 'SELECT\n\t\t\t\t\t\t\"\" as url,\n\t\t\t\t\t\tfaq_question as title,\n\t\t\t\t\t\t\"\" as title_image,\n\t\t\t\t\t\tfaq_answer as text,\n\t\t\t\t\t\t\"article\" as content_type,\n\t\t\t\t\t\t\"\" as link_url, \n\t\t\t\t\t\t\"1\" as show_all\n\t\t\t\t\tFROM '.TABLE_FAQ_CATEGORY_ITEMS.' fi\n\t\t\t\t\t\tINNER JOIN '.TABLE_FAQ_CATEGORY_ITEMS_DESCRIPTION.' fid ON fi.id = fid.faq_category_item_id AND fid.language_id = \\''.Application::Get('lang').'\\'\t\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tfi.is_active = 1 AND (\n\t\t\t\t\t\t\tfid.faq_question LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t\tfid.faq_answer LIKE \\'%'.encode_text($keyword).'%\\'\n\t\t\t\t\t\t)';\n\t\t\t$order_field = 'fi.id';\t\t\t\n\t\t}else{\n\t\t\t// rooms\n\t\t\t$sql = 'SELECT \n\t\t\t\t\t\tCONCAT(\"page=rooms&room_id=\", r.id) as url,\n\t\t\t\t\t\tCONCAT(rd.room_type, IF(hd.name != \"\", \" | \", \"\"), hd.name, hd.address) as title,\n\t\t\t\t\t\tCONCAT(\"<img src=images/rooms/\", IF(r.room_icon_thumb != \"\", r.room_icon_thumb, \"no_image.png\"), \" height=50px width=50px class=search-room-icon />\") as title_image,\n\t\t\t\t\t\trd.room_short_description as text,\n\t\t\t\t\t\t\"article\" as content_type,\n\t\t\t\t\t\t\"\" as link_url \n\t\t\t\t\tFROM '.TABLE_ROOMS_DESCRIPTION.' rd\n\t\t\t\t\t\tINNER JOIN '.TABLE_ROOMS.' r ON rd.room_id = r.id AND r.is_active = 1\n\t\t\t\t\t\tINNER JOIN '.TABLE_HOTELS.' h ON r.hotel_id = h.id AND h.is_active = 1\n\t\t\t\t\t\tINNER JOIN '.TABLE_HOTELS_DESCRIPTION.' hd ON h.id = hd.hotel_id AND hd.language_id = \\''.$lang_id.'\\'\n\t\t\t\t\tWHERE\n\t\t\t\t\t ( rd.room_type LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t rd.room_long_description LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t hd.name LIKE \\'%'.encode_text($keyword).'%\\' OR\n\t\t\t\t\t\t hd.description LIKE \\'%'.encode_text($keyword).'%\\'\t\t\t\t\t\t \n\t\t\t\t\t\t) AND\n\t\t\t\t\t\trd.language_id = \\''.$lang_id.'\\'';\n\t\t\t$order_field = 'r.id';\n\t\t}\n\n\t\tif(!is_numeric($page) || (int)$page <= 0) $page = 1;\n\t\t$this->totalSearchRecords = (int)database_query($sql, ROWS_ONLY);\n\t\t\n\t\t// echo $sql;\n\t\t// echo database_error();\n\t\t\n\t\t$total_pages = ($this->totalSearchRecords / $this->pageSize);\t\t\t\n\t\tif(($this->totalSearchRecords % $this->pageSize) != 0) $total_pages = (int)$total_pages + 1;\n\t\t$start_row = ($page - 1) * $this->pageSize;\n\t\t\n\t\t$result = database_query($sql.' ORDER BY '.$order_field.' ASC LIMIT '.$start_row.', '.$this->pageSize, DATA_AND_ROWS);\t\t\n\n\t\t// update search results table\t\t\n\t\tif((strtolower(SITE_MODE) != 'demo') && ($result[1] > 0)){\n\t\t\t$sql = 'INSERT INTO '.TABLE_SEARCH_WORDLIST.' (word_text, word_count) VALUES (\\''.$keyword.'\\', 1) ON DUPLICATE KEY UPDATE word_count = word_count + 1';\n\t\t\tdatabase_void_query($sql);\n\n\t\t\t// store table contains up to 1000 records\n\t\t\t$sql = 'SELECT id, COUNT(*) as cnt FROM '.TABLE_SEARCH_WORDLIST.' ORDER BY word_count ASC';\n\t\t\t$res1 = database_query($sql, DATA_AND_ROWS, FIRST_ROW_ONLY);\n\t\t\tif($res1[1] > 0 && $res1[0]['cnt'] > 1000){\n\t\t\t\t$sql = 'DELETE FROM '.TABLE_SEARCH_WORDLIST.' WHERE id = '.(int)$res1[0]['id'];\n\t\t\t\tdatabase_void_query($sql);\n\t\t\t}\t\t\t\t\t\t\n\t\t}\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "83d5b1cf4cc27eb04c3c31c7ba4667e8", "score": "0.60329586", "text": "public function searchResultAction($searchParameter = NULL) {\n\t\t$searchTerm = $searchParameter;\n\t\t$searchArguments = $this->request->getHttpRequest()->getArgument('--lelesys_plugin_indexedsearch-indexedsearch');\n\t\tif ($searchArguments === NULL) {\n\t\t\t$searchArguments = $this->request->getHttpRequest()->getArgument('--typo3_neos_nodetypes-page');\n\t\t\t$searchTerm = $searchArguments['searchParameter'];\n\t\t}\n\t\t$currentNode = $this->request->getInternalArgument('__node');\n\t\tif ($searchTerm !== NULL && $searchTerm !== '') {\n\t\t\t$searchResults = $this->indexedSearchService->search($searchTerm, $currentNode);\n\t\t\t$this->view->assignMultiple(array ('searchResults'=> $searchResults, 'searchParameter' => $searchTerm));\n\t\t}\n\t}", "title": "" }, { "docid": "0be1a4f1e7e1524e47a61458a10f57e9", "score": "0.60290074", "text": "public function msearch($params);", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.6007335", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.6007335", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.6007335", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.6007335", "text": "public function search();", "title": "" }, { "docid": "bc5f7bf4a1cb3a210bb40fbb5fd5e88d", "score": "0.5992283", "text": "public function searchAction()\n {\n if ($this->request->hasQuery('keyword')) {\n // Request variables\n $pageNumber = $this->request->hasQuery('page') ? $this->request->getQuery('page') : 1;\n $keyword = $this->request->getQuery('keyword');\n $sort = $this->request->getQuery('sort', $this->getCategorySortGadget()->getSortOption());\n\n $productManager = $this->getModuleService('productManager');\n\n // Grab and configure pagination component\n $paginator = $productManager->getPaginator();\n $this->tweakPaginator($paginator);\n\n // Finally fetch products\n $products = $productManager->fetchAllPublishedByCategoryIdAndPage(\n null, \n $pageNumber, \n $this->getPerPageCountGadget()->getPerPageCount(), \n $sort,\n $keyword,\n $this->createCustomerId()\n );\n\n // Load site plugins\n $this->loadPlugins();\n $page = $this->createPageEntity();\n\n // Variables to be passed to template\n $vars = array(\n 'paginator' => $paginator,\n 'products' => $products,\n 'page' => $page,\n 'category' => $page,\n 'keyword' => $keyword,\n\n // Form gadgets\n 'ppc' => $this->getPerPageCountGadget(),\n 'sorter' => $this->getCategorySortGadget(),\n 'languages' => $this->getService('Cms', 'languageManager')->fetchAll(true)\n );\n\n if ($this->request->isAjax()){\n // Render shared fragment for AJAX request\n return $this->view->disableLayout()->render('partials/category-products', $vars);\n } else {\n // For regular request, render a category template\n return $this->view->render('shop-category', $vars);\n }\n\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "df046940c240058becf5bf3ed003ca07", "score": "0.59818393", "text": "public function search()\n {\n $rules = [\n 'keywords' => 'required',\n ];\n $validator = Validator::make(Request::all(), $rules);\n //clock()->startEvent('article.update',\"james.yang\");\n //clock(Request::input('tags'));\n //clock()->endEvent('article.update');\n if ($validator->passes()) {\n $keywords = Request::input('keywords');\n $articles = Article::search($keywords)->paginate(env('PAGINATION_NUMBER', 2));\n $tags = Tag::where('count', '>', '0')->orderBy('count', 'desc')->orderBy('updated_at', 'desc')->take(10)->get();\n return view('index')->with('articles', $articles)->with('tags', $tags);\n\n } else {\n return Redirect::to('/')->withInput()->withErrors($validator);\n }\n }", "title": "" }, { "docid": "96a54880596fbf79a5720c8bfbfe1eb0", "score": "0.59762543", "text": "protected function simpleSearch($searchPhrase, $searchField = '', $articles = array(), $notArticles = array(), $locale = 'en_US', $journal = 'lucene-test') {\n\t\t// Translate scalars to arrays.\n\t\tif (!is_array($articles)) $articles = array($articles);\n\t\tif ($notArticles !== '*' && !is_array($notArticles)) $notArticles = array($notArticles);\n\n\t\ttry {\n\t\t\t// Open the \"lucene-test\" journal home page.\n\t\t\t$testJournal = $this->baseUrl . '/index.php/' . $journal;\n\t\t\t$this->verifyAndOpen($testJournal);\n\n\t\t\t// Select the locale.\n\t\t\t$selectedValue = $this->getSelectedValue('name=locale');\n\t\t\tif ($selectedValue != $locale) {\n\t\t\t\t$this->selectAndWait('name=locale', 'value=' . $locale);\n\t\t\t}\n\n\t\t\t// Hack to work around timing problems in phpunit 3.4...\n\t\t\t$this->waitForElementPresent($this->simpleSearchForm . 'input[@id=\"query\"]');\n\t\t\t$this->waitForElementPresent('name=searchField');\n\n\t\t\t// Enter the search phrase into the simple search field.\n\t\t\t$this->type($this->simpleSearchForm . 'input[@id=\"query\"]', $searchPhrase);\n\n\t\t\t// Select the search field.\n\t\t\t$this->select('name=searchField', 'value=' . $searchField);\n\n\t\t\t// Click the \"Search\" button.\n\t\t\t$this->clickAndWait($this->simpleSearchForm . 'input[@type=\"submit\"]');\n\n\t\t\t// Check whether the result set contains the\n\t\t\t// sample articles.\n\t\t\tforeach($articles as $id) {\n\t\t\t\t$this->assertElementPresent('//table[@class=\"listing\"]//a[contains(@href, \"index.php/lucene-test/article/view/' . $id . '\")]');\n\t\t\t}\n\n\t\t\t// Make sure that the result set does not contain\n\t\t\t// the articles in the \"not article\" list.\n\t\t\tif ($notArticles === '*') {\n\n\t\t\t} else {\n\t\t\t\tforeach($notArticles as $id) {\n\t\t\t\t\t$this->assertElementNotPresent('//table[@class=\"listing\"]//a[contains(@href, \"index.php/lucene-test/article/view/' . $id . '\")]');\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception $e) {\n\t\t\tthrow $this->improveException($e, \"example $searchPhrase ($locale)\");\n\t\t}\n\t}", "title": "" }, { "docid": "79cc6f2abda1eaf2642dd22cf42a3279", "score": "0.5961496", "text": "abstract function search();", "title": "" }, { "docid": "774969a73f1eca42ea26b00eca80b246", "score": "0.5954376", "text": "public function searchKeyword($searchKeyword)\n {\n// dd($searchKeyword);\n return $this->where(function ($q) use ($searchKeyword) {\n\n for ($i = 0; $i < sizeof($this->searchable); $i++) {\n $searchField = $this->searchable[$i];\n if ($i == 0) {\n $q->where($searchField, 'LIKE', \"%$searchKeyword%\");\n } else {\n $q->orWhere($searchField, 'LIKE', \"%$searchKeyword%\");\n }\n }\n return $q;\n });\n }", "title": "" }, { "docid": "23057324598f40d8e5d61818501439be", "score": "0.5903549", "text": "public function ExecuteSearch();", "title": "" }, { "docid": "4af2a3e3c48ee0ddaafc91b398874294", "score": "0.5868251", "text": "function getSearchResult($params = '', $urlData = ''){\r\n\t$data\t=\tNULL;\r\n\t$output\t=\tNULL;\r\n\t$url\t=\tgetUrlforOpenSearchServerRequest($urlData);\r\n\t$catfilter = '';\r\n\t$langfilter = '';\r\n\t$agefilter\t=\t'';\r\n\tif(isset($params['catfilter'])){\r\n\t\t$catfilter = $params['catfilter'];\r\n\t}\r\n\tif(isset($params['langfilter'])){\r\n\t\t$langfilter = $params['langfilter'];\r\n\t}\r\n\tif(isset($params['agefilter'])){\r\n\t\t$agefilter = $params['agefilter'];\r\n\t}\r\n\tswitch($urlData['type']){\r\n\t\tcase 'autocomplete' :\r\n\t\t\t$data = array(\r\n\t\t\t\t'http' => array(\r\n\t\t\t\t\t'method' => \"GET\",\r\n\t\t\t\t\t'header' => \"Accept: application/json\"\r\n\t\t\t\t),\r\n\t\t\t);\r\n\t\tbreak;\r\n\t\tcase 'keywordSearch':\r\n\t\t\t$data = array(\r\n\t\t\t\t'http' => array(\r\n\t\t\t\t\t'method' => \"POST\",\r\n\t\t\t\t\t'content' => getSearchDataEncoded(array('searchKeyword' => $params['data'],'startOffset' => $params['start'],'resultRows' => $params['rows'],'catfilter'=>$catfilter,'langfilter'=>$langfilter,'agefilter'=>$agefilter)),\r\n\t\t\t\t\t'header' => \"Content-type: application/json\\r\\n\" .\r\n\t\t\t\t\t\t\t\t \"Accept: application/json\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\tbreak;\r\n\t}\r\n\t\r\n\tif($data != NULL && $url != NULL)\r\n\t\t$output\t=\tsendExternalRequest($data, $url);\r\n\r\n\treturn $output;\r\n}", "title": "" }, { "docid": "e032f2f729bc032115c89f6bb5106c58", "score": "0.58512616", "text": "public function search($params)\n {\n // 1只安卓开启贷超文章 2只苹果开启贷超 3全开贷超 关闭文章 4 展示文章\n $switch_audit = $switch_model = SwitchModel::find()->select('status')->where(['type' => 1, 'id' => 1])->scalar() ?: 4;\n\n $headers = Yii::$app->request->headers;\n $os = $headers->get('os');\n\n $offset = $params['ArticleSearch']['lpop'] ?? '';\n // 状态为1的才显示\n $query = Article::find()->where(['status'=>1])->orderBy('id desc');\n if($offset){\n $max_id = Article::find()->select('id')->orderBy('id desc')->scalar();\n $query = $query->andWhere(['<=', 'id',$max_id - $offset]);\n }\n if($switch_audit == 3){ // 全开贷超\n $query = $query->andWhere(['is_dc' => 1]); // 展示贷超信息\n }elseif ($switch_audit == 4){ // 全部文章\n $query = $query->andWhere(['is_dc' => 0]); // 展示全部文章\n } else if ($switch_audit == 1){\n if($os == 'xijin_android'){\n $query = $query->andWhere(['is_dc' => 1]);\n }else{\n $query = $query->andWhere(['is_dc' => 0]);\n }\n }else if ($switch_audit == 2){\n if($os == 'xijin_ios'){\n $query = $query->andWhere(['is_dc' => 1]);\n }else{\n $query = $query->andWhere(['is_dc' => 0]);\n }\n }\n\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'type' => $this->type,\n 'premium' => $this->premium,\n 'comment_num' => $this->comment_num,\n 'like_num' => $this->like_num,\n 'create_time' => $this->create_time,\n 'update_time' => $this->update_time,\n 'creater' => $this->creater,\n 'admin_id' => $this->admin_id,\n 'status' => $this->status,\n ]);\n\n $query->andFilterWhere(['like', 'origin', $this->origin])\n ->andFilterWhere(['like', 'author', $this->author])\n ->andFilterWhere(['like', 'title', $this->title])\n ->andFilterWhere(['like', 'desc', $this->desc])\n ->andFilterWhere(['like', 'profile', $this->profile])\n ->andFilterWhere(['like', 'content', $this->content])\n ->andFilterWhere(['like', 'preview_image', $this->preview_image]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "102e986e6c664973705deb3781b3ab4e", "score": "0.5845031", "text": "public function searchArticles($aum_id, $search, $take=9)\n\t{\n\t\t// Array Aum Article Category (Each)\n\t\t$arkategori = array();\n\t\t$kategoris \t= ArticleCategory::where('aum_list_id', $aum_id)->get();\n\t\tforeach ($kategoris as $kategori) {\n\t\t\tarray_push($arkategori, $kategori->id);\n\t\t}\n\t\t// Search Article\n\t\t$artikel \t= Article::where([\n\t\t\t\t\t\t\t\t['is_active', 1],\n\t\t\t\t\t\t\t\t['title', 'LIKE', '%'.$search.'%'],\n\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t\t->whereIn('article_category_id', $arkategori)\n\t\t\t\t\t\t\t\t->take($take)\n\t\t\t\t\t\t\t\t->get();\n\t\treturn $artikel;\n\t}", "title": "" }, { "docid": "eba0417cdde741f5a94c17c0cb9ef500", "score": "0.581717", "text": "public function search($query);", "title": "" }, { "docid": "eba0417cdde741f5a94c17c0cb9ef500", "score": "0.581717", "text": "public function search($query);", "title": "" }, { "docid": "a0f74870686cf9d276bac441b4ffb6e2", "score": "0.58130395", "text": "public function search($search, $criteria){\n }", "title": "" }, { "docid": "55d63b84ec36c927b45d3280e30e02e7", "score": "0.580209", "text": "abstract protected function searchData(string $searchTerm, NodeInterface $node = null, array $arguments = []);", "title": "" }, { "docid": "555d3f8d37a1120e027a4854f4da187b", "score": "0.5772308", "text": "public function absoluteSearchByKeyword($keyword);", "title": "" }, { "docid": "27a39f1af19687611832ccd35246058f", "score": "0.5763703", "text": "function search($searchWord = false, $page = 0)\n {\n\n\n $keyword = $this->input->post('search') != '' ? $this->input->post(\"search\") : $searchWord;\n\n\n $this->model_asset->pagination(TRUE);\n $data_info = $this->model_asset->search($keyword, $page);\n $fields = $this->model_asset->fields(TRUE);\n\n //hide show all button on list page\n $this->template->assign('showall', 1);\n $this->template->assign('search_form', $this->displaySearchForm());\n $this->template->assign('pager', $this->model_asset->pager);\n $this->template->assign('asset_fields', $fields);\n $this->template->assign('asset_data', $data_info);\n $this->template->assign('table_name', lang('asset'));\n $this->template->assign('template', 'list_asset');\n $this->template->assign('page_title', lang('asset'));\n\n $this->template->display('frame_admin.tpl');\n }", "title": "" }, { "docid": "14517d0cd45afb343244d3e81baf417e", "score": "0.57393163", "text": "public function search(string $subject);", "title": "" }, { "docid": "d8ed76d2bb21402db761681fd04e6502", "score": "0.57252014", "text": "public function search($searchQuery,$searchType) \n {\n // dd($searchQuery);\n if(!in_array($searchType,$this->validSearchTypes)){\n return response()->json([\"Search Type Is Not Valid\"],$this->unprocessableStatusCode);\n }\n \n if($this->isValidateSearchQuery($searchQuery) == false ){\n return response()->json([\"Search Query Is Not Valid\"],$this->unprocessableStatusCode);\n }\n \n $result = $this->breweryDb->sendRequest('/search', 'GET',[\n 'q'=>$searchQuery,\n 'type'=>$searchType,\n ]);\n $response = json_decode((string) $result->getBody());\n if(!empty($response->data))\n return response()->json($response->data);\n else\n return response()->json([\"empty\"=>\"No Beers Exists\"]);\n }", "title": "" }, { "docid": "cee2b05e2867c25481e18292fead22ff", "score": "0.5719529", "text": "public function search($params)\n {\n $query = Article::find();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'id' => $this->id,\n 'type_id' => $this->type_id,\n 'date' => $this->date,\n 'update_dt' => $this->update_dt,\n 'hits' => $this->hits,\n 'notice_dt' => $this->notice_dt,\n 'review' => $this->review,\n 'is_delete' => $this->is_delete,\n ]);\n\n $query->andFilterWhere(['like', 'title', $this->title])\n ->andFilterWhere(['like', 'content', $this->content])\n ->andFilterWhere(['like', 'attach_id', $this->attach_id]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "0dd06b36c01077ce5bca69ed1110bb90", "score": "0.57181835", "text": "public function actionSearch()\n {\n if (isset($_POST['submitSearch'])) \n {\n $search = $_POST['search'];\n setcookie(\"search\", $search); //Sets a cookie in case the site reloads and the POST disappears.\n }\n else\n {\n $search = $_COOKIE['search']; //Here is the cookie again.\n }\n $result = array();\n \n $info = Products::find(\"descrip LIKE '%$search%'\"); //Same as with actionBargain()\n if (!empty($info)) //Looks if there is something similar in the database\n {\n array_push($result, $info);\n \n $this->setParams('products', $result);\n }\n else\n {\n $this->setParams('products', array());\n viewError(\"Es konnte nichts gefunden werden.\");\n }\n Products::addToCart();\n Products::addToFavorites();\n }", "title": "" }, { "docid": "bb41cce3e7eff9f5f8e3b509649f54c9", "score": "0.5704598", "text": "function _searchArticleFromRow(&$article, &$row) {\r\n\r\n\t\tif (isset($row['status'])) $article->setStatus($row['status']);\r\n\t\tif (isset($row['article_id'])) $article->setId($row['article_id']);\r\n\t\tif (isset($row['whoid'])) $article->setWhoId($row['whoid'], 'en_US');\r\n\t\tif (isset($row['date_submitted'])) $article->setDateSubmitted($this->datetimeFromDB($row['date_submitted']));\t\t\r\n\t\tif (isset($row['engscientifictitle'])) $article->setScientificTitle($row['engscientifictitle'], 'en_US');\r\n\t\tif (isset($row['vietscientifictitle'])) $article->setScientificTitle($row['vietscientifictitle'], 'vi_VN');\r\n\t\tif (isset($row['engpublictitle'])) $article->setPublicTitle($row['engpublictitle'], 'en_US');\r\n\t\tif (isset($row['vietpublictitle'])) $article->setPublicTitle($row['vietpublictitle'], 'vi_VN');\r\n\t\t\r\n\t\tif (isset($row['country'])) $article->setProposalCountry($row['country'], 'en_US');\r\n\t\tif (isset($row['efname']) or isset($row['elname'])) $article->setPrimaryEditor($row['efname'].\" \".$row['elname']);\r\n\t\tif (isset($row['afname']) or isset($row['alname'])) $article->setPrimaryAuthor($row['afname'].\" \".$row['alname']);\r\n\t\tif (isset($row['start_date'])) $article->setStartDate($this->datetimeFromDB($row['start_date']), 'en_US');\r\n\t\tif (isset($row['end_date'])) $article->setEndDate($this->datetimeFromDB($row['end_date']), 'en_US');\r\n\t\tif (isset($row['decision'])) $article->setProposalStatus($row['decision']);\r\n\t\tif (isset($row['date_decided'])) $article->setDateStatusModified($this->datetimeFromDB($row['date_decided']));\r\n\t\tif (isset($row['email'])) $article->setAuthorEmail($row['email']);\r\n\t\tif (isset($row['multicountryresearch'])) $article->setMultiCountryResearch($row['multicountryresearch'], 'en_US');\r\n\t\tif (isset($row['primarysponsor'])) $article->setPrimarySponsor($row['primarysponsor'], 'en_US');\r\n\t\tif (isset($row['otherprimarysponsor'])) $article->setOtherPrimarySponsor($row['otherprimarysponsor'], 'en_US');\r\n\t\tif (isset($row['researchfield'])) $article->setResearchField($row['researchfield'], 'en_US');\r\n\t\tif (isset($row['investigatoraffiliation'])) $article->setInvestigatorAffiliation($row['investigatoraffiliation']);\r\n\t\tif (isset($row['proposaltype'])) $article->setProposalType($row['proposaltype'], 'en_US');\r\n\t\tif (isset($row['datacollection'])) $article->setDataCollection($row['datacollection'], 'en_US');\r\n\t\tif (isset($row['studentinstitution'])) $article->setStudentInstitution($row['studentinstitution'], 'en_US');\r\n\t\tif (isset($row['academicdegree'])) $article->setAcademicDegree($row['academicdegree'], 'en_US');\r\n\t\tif (isset($row['funds'])) $article->setFundsRequired($row['funds'], 'en_US');\r\n\t\tif (isset($row['currency'])) $article->setSelectedCurrency($row['currency'], 'en_US');\r\n\t\t\r\n\t\tHookRegistry::call('ArticleDAO::_returnSearchArticleFromRow', array(&$article, &$row));\r\n\r\n\t}", "title": "" }, { "docid": "e0f0b7ba717875a0671694a89ea367fe", "score": "0.57023734", "text": "public function esIndex($article)\n {\n $elastic_manager = $this->getDI()->get('elastic');\n\n $params = array();\n $params['index'] = 'learningphalcon';\n $params['type'] = 'article';\n $params['id'] = 'article-' . $article->getId();\n $params['body'] = $this->esNormalize($article);\n\n $elastic_manager->index($params);\n\n return true;\n }", "title": "" }, { "docid": "a6592a877c7b40ef48cea6da1309e11b", "score": "0.5701219", "text": "public function search()\n {\n return $this->elastic_client->search($this->params);\n }", "title": "" }, { "docid": "89d4a2674821aa88d31a4e39511aa080", "score": "0.5696617", "text": "public function search($searchTerm)\n {\n if (is_numeric($searchTerm) && $this->_config->get('search.searchForSolutionId')) {\n parent::search($searchTerm);\n } else {\n $enableRelevance = $this->_config->get('search.enableRelevance');\n\n $columns = $this->getResultColumns();\n $columns .= ($enableRelevance) ? $this->getMatchingColumnsAsResult() : '';\n $orderBy = ($enableRelevance) ? 'ORDER BY '.$this->getMatchingOrder() : '';\n\n $query = sprintf(\"\n SELECT\n %s\n FROM\n %s %s %s %s\n WHERE\n (%s) ILIKE ('%%%s%%')\n %s\n %s\",\n $columns,\n $this->getTable(),\n $this->getJoinedTable(),\n $this->getJoinedColumns(),\n ($enableRelevance)\n ? \", plainto_tsquery('\".$this->_config->getDb()->escape($searchTerm).\"') query \"\n : '',\n $this->getMatchingColumns(),\n $this->_config->getDb()->escape($searchTerm),\n $this->getConditions(),\n $orderBy);\n\n $this->resultSet = $this->_config->getDb()->query($query);\n }\n\n return $this->resultSet;\n }", "title": "" }, { "docid": "6245f7e632fb57d37755877bfad0f1e1", "score": "0.56905574", "text": "public function keywordreposearchAction() {\r\n $this->layout('layout/ajax');\r\n\r\n $request = $this->getRequest();\r\n if ($request->isPost()) {\r\n $data = $request->getPost();\r\n $match_param = $data->search_param;\r\n $dq = $this->getEntityManager()->createQueryBuilder();\r\n $dq->select('main', 'rt', 'ars')->from('Admin\\Entity\\ReportManager', 'main')\r\n ->LeftJoin('Admin\\Entity\\ReportType', 'rt', \\Doctrine\\ORM\\Query\\Expr\\Join::WITH, 'main.reportTypeId=rt.id')\r\n ->LeftJoin('Admin\\Entity\\ActivityReportStatus', 'ars', \\Doctrine\\ORM\\Query\\Expr\\Join::WITH, 'main.status=ars.id');\r\n\r\n\r\n if (!empty($match_param) || $match_param != '') {\r\n $dq = $dq->Where(\"rt.type LIKE \" . \"'%\" . $match_param . \"%'\" . \" OR main.name LIKE \" . \"'%\" . $match_param . \"%'\" . \" OR main.type LIKE \" . \"'%\" . $match_param . \"%'\" . \" OR main.userEmail LIKE \" . \"'%\" . $match_param . \"%'\" . \" OR ars.status LIKE \" . \"'%\" . $match_param . \"%'\");\r\n }\r\n $report_manager_data = $dq->getQuery()->getScalarResult();\r\n }\r\n\r\n $result = new ViewModel(array(\r\n 'report_manager_data' => $report_manager_data,\r\n ));\r\n $result->setTerminal(true);\r\n return $result;\r\n }", "title": "" }, { "docid": "113bdabc0af16103b60c8d58e069f7d2", "score": "0.56892115", "text": "public function searchIngredient($search)\n {\n }", "title": "" }, { "docid": "96f7ab5916fd224a4e1dd66f5ad564ab", "score": "0.5681954", "text": "public function simpleSearch()\n {\n // part which is the search text entered by the user.\n $queryTerms = $this->getRequest()->getQuery('query');\n\n // The only thing we need to do to these search terms is to turn them into a wildcard to work correctly with\n // the LIKE clause. Otherwise, it will only search for articles where the title or body is EXACTLY what the\n // user searched, rather than matching articles where the title or body CONTAINS the search terms.\n $queryTermsWithWildCard = '%' . $queryTerms . '%';\n\n // Note that we are happy for either the title or the body to match.\n // If we were to have used: where(['title LIKE' => ..., 'body LIKE' => ...]) without using another array and\n // the OR keyword, then the default query would ask for articles where BOTH the title AND the body match the\n // search terms, which is typically not what the user expects when performing a search.\n $reviews = $this->Review->find()->where([\n 'OR' => [\n 'Client_Name LIKE' => $queryTermsWithWildCard,\n 'Suburb LIKE' => $queryTermsWithWildCard,\n 'Review_Details LIKE' => $queryTermsWithWildCard\n ]\n ]);\n\n // In a large CMS, this search is likely to return a large number of articles, so the results should be\n // paginated.\n $this->loadComponent('Paginator');\n $paginatedReviews = $this->Paginator->paginate($reviews);\n $this->set('reviews', $paginatedReviews);\n\n\n // Pass the query the user asked for to the view, so we can say something like \"Results for 'Blah'...\" to\n // confirm that we did indeed search what they asked us to. It also means that we can populate the search\n // text input with the string, so the user can perform the search again.\n $this->set('query', $queryTerms);\n\n $this->viewBuilder()->setLayout('admin');\n $this->viewBuilder()->setTemplate('search');\n }", "title": "" }, { "docid": "00dd84802b17236f62a148089d96c7cb", "score": "0.56757075", "text": "private function buildSearch($searchStr, $Title, $Content = array(), $From, $fullTextSearch){\n\n\t\t$today = date('Y-m-d');\n\t\t$ExtraSearch = array();\n\t\t$SearchKeywords = false;\n\t\t/**\n\t\t * This is used, for example, to show events. Not showing the page after the event ended for example.\n\t\t * The generic \"PublishFrom\" and \"PublishUntil\" is chosen because it made sense.\n\t\t */\n\t\tif(in_array('PublishFrom', $Content)){\n\t\t\t$ExtraSearch[] = \"PublishFrom <= '$today' OR PublishFrom IS NULL\";\n\t\t}\n\t\tif(in_array('PublishUntil', $Content)){\n\t\t\t$ExtraSearch[] = \"PublishUntil >= '$today' OR PublishUntil IS NULL\";\n\t\t}\n\n\t\tif($From == 'SiteTree'){\n\t\t\t$ExtraSearch[] = \"ShowInSearch = 1\";\n\t\t\t$ExtraSearch[] = \"Status = 'Published'\";\n\t\t}\n\n\t\t$res = new SQLQuery();\n\n\t\t$res->select = array();\n\t\t$res->select[] = \"*\";\n\t\tforeach($Content as $key => $value){\n\t\t\tif($value != 'Title' && $value != 'SearchKeywords'){\n\t\t\t\t$res->select[] = \"CASE WHEN \" . $value . \" LIKE '%\" . $searchStr . \"%' THEN 1 ELSE 0 END AS searchmatch\";\n\t\t\t}\n\t\t\telseif($value == 'Title'){\n\t\t\t\t$res->select[] = \"CASE WHEN \" . $Title . \" LIKE '%\" . $searchStr . \"%' THEN 1 ELSE 0 END AS titlematch\";\t\t\n\t\t\t}\n\t\t\telseif($value == 'SearchKeywords'){\n\t\t\t\t$SearchKeywords = true;\n\t\t\t\t$res->select[] = \"CASE WHEN \" . $value . \" LIKE '%\" . $searchStr . \"%' THEN 1 ELSE 0 END AS keywordmatch\";\n\t\t\t}\n\t\t} \n\t\t$res->select[] = \"MATCH (\" . $fullTextSearch . \") AGAINST ('\" . $searchStr . \"') AS relevance\";\n\n\t\t$res->from = array($From);\n\t\t$res->where = array();\n\t\tforeach($Content as $key => $value){\n\t\t\t$res->where[] = $value . \" LIKE '%\" . $searchStr . \"%' OR \";\n\t\t}\n\t\t$res->where[] = \"MATCH(\" . $fullTextSearch . \") AGAINST ('\" . $searchStr . \"' IN BOOLEAN MODE)\";\n\t\t$res->where = array(implode($res->where));\n\n\t\t$res->where = array_merge($ExtraSearch, $res->where);\n\n\t\t$res->having = array();\n\t\tif($SearchKeywords){\n\t\t\t$res->having[] = \"searchmatch > 0 OR keywordmatch > 0 OR titlematch > 0 OR relevance > 0\";\n\t\t\t$res->orderby = \"searchmatch DESC, keywordmatch DESC, titlematch DESC, relevance DESC\";\n\t\t}\n\t\telse{\n\t\t\t$res->having[] = \"searchmatch > 0 OR titlematch > 0 OR relevance > 0\";\n\t\t\t$res->orderby = \"searchmatch DESC, titlematch DESC, relevance DESC\";\n\t\t}\n\n\t\t$Items = singleton($From)->buildDataObjectSet($res->execute());\n\t\treturn $Items;\n\t\t/**\n\t\t * Thank you!\n\t\t * (Always be polite. This behemoth puts some stress on the database!)\n\t\t */\n\t}", "title": "" }, { "docid": "806c9d84cb98e7946eaabe708ff40ce9", "score": "0.5671038", "text": "public static function searchTitle($search){\n self::getPDO();\n $search = '%' . $search . '%';\n $req = self::$_conn->prepare(\"SELECT * FROM Article JOIN Categorie ON Article.id_categorie = Categorie.id_categorie WHERE Article.titre_article LIKE :search;\");\n $req->bindParam(\":search\", $search);\n $req->execute();\n $articles = $req->fetchAll(PDO::FETCH_OBJ);\n return $articles;\n }", "title": "" }, { "docid": "04fd48ed575ed9c2a623c3c6b68f96ea", "score": "0.5670696", "text": "public function searchAction(){\n // has html view associated with it. Really used for debugging.\n //\n // App step 3: search on the search term that the user wants to see and return some results\n\n $q = $this->_request->getParam( 'q' ); // The search term\n $debug = $this->_request->getParam( 'debug' ); // debug switch\n $searchIndex = $this->_request->getParam( 'searchIndex' ); // The starting point for the product number for pagination\n $numberOfItems = $this->_request->getParam( 'numberOfItems' ); // The number of items you want the search to return\n $priceRange = $this->_request->getParam( 'priceRange' ); // Price range to search for\n\n // Seach Amazon and get display result array\n Zend_Loader::loadClass('ProductSearch');\n\n $productSearch = new ProductSearch();\n\n $productSearch->setAffiliate( 'amazon' );\n \n if( $debug )\n $productSearch->setDebugTrue();\n\n $searchResult = $productSearch->searchAndFilter( $q, $numberOfItems, $searchIndex, $priceRange, $debug ); \n\n $this->view->searchResult = json_encode( $searchResult );\n \n if( $debug == 'true' )\n print_r( $searchResult );\n\n }", "title": "" }, { "docid": "d993efed4a37bd9b4a50993da1a64ede", "score": "0.56618786", "text": "public static function searchProducts() {\n if (isset($_POST['submit'])) {\n // validate search form.\n self::formValidation($_POST['keyword']);\n\n // sanitize user form input\n global $keyword;\n\n // sanitize basic search form fields.\n $keyword = sanitize_text_field($_POST['keyword']);\n\n // submit basic search form.\n self::formSubmit($keyword);\n }\n\n $keyword = isset($keyword) ? $keyword : '';\n\n // display basic search form.\n self::displayForm($keyword);\n\n // display basic search results.\n self::displayResults($keyword);\n }", "title": "" }, { "docid": "0be3eedf9b599f1c8b3f050e8222daf0", "score": "0.5655321", "text": "public function searchAction()\r\n {\r\n \r\n $workNumber=$this->_getParam(\"work_number\");\r\n $typeParam=$this->_getParam('type');\r\n \r\n $objectType=$typeParam[0];\r\n \r\n if ($workNumber) {\r\n $sql = \"SELECT * FROM kb_trans k where term_arg1='{$objectType}' and term_arg2 like '{$workNumber}%' and term_active=1 and term_head='object' order by term_arg2\";\r\n $items = $this->db->fetchAll($sql);\r\n $this->view->items=$items;\r\n $this->view->type=$objectType;\r\n } \r\n \r\n \r\n }", "title": "" }, { "docid": "a9de59107a18abb7b52f817f08a5aeab", "score": "0.5643671", "text": "public function getBySearchLike($keywords);", "title": "" }, { "docid": "fdcc8b96a4b5a9c87a435e64af034e59", "score": "0.5640781", "text": "public function searchAction(Request $request)\n {\n\n $incart = array();\n if(!is_null($this->get('session'))){\n $session = $this->get('session');\n $panier = $session->get('panier');\n if(!empty($panier)){\n foreach ($panier as $key => $value) {\n array_push($incart, $panier[$key]['id']);\n }\n }\n }\n\n /* ======================== Comparaison ids ======================== */\n\n $keyword = $this->getRequest()->query->get('keyword');\n $new_search = true;\n\n $title = 'Resultat de votre recherche';\n\n $em = $this->getDoctrine()->getManager();\n\n $dql = \"SELECT a FROM TMBlogBundle:Article a WHERE a.name LIKE '%\". $keyword .\"%'\";\n $query = $em->createQuery($dql);\n\n if(empty($query->getResult())){\n $dql = \"SELECT a FROM TMBlogBundle:Article a WHERE a.description LIKE '%\". $keyword .\"%'\";\n $query = $em->createQuery($dql);\n }\n\n $paginator = $this->get('knp_paginator');\n $pagination = $paginator->paginate(\n $query,\n $request->query->get('page', 1)/*page number*/,\n 12/*limit per page*/\n );\n\n // parameters to template\n return $this->render('TMBlogBundle:Article:detail.html.twig', array(\n 'title' => $title,\n 'pagination' => $pagination,\n 'incart' => $incart,\n 'new_search' => $new_search,\n ));\n }", "title": "" }, { "docid": "327c81566a872289a164279bcf812be8", "score": "0.56406933", "text": "public function search($search_text = '', $results_per_page = 10, $page = 0) {\n $results = [];\n if (!is_numeric($results_per_page)) {\n $results_per_page = 0;\n }\n if (!is_numeric($page)) {\n $page = 0;\n }\n if ($search_text != '' and $results_per_page > 0 and $page >= 0) {\n try {\n $offset = $results_per_page * $page;\n $url = $this->endpointUri;\n $query = [\n 'query' => [\n 'action' => 'query',\n 'list' => 'search',\n 'utf8' => '',\n 'formatversion' => '2',\n 'prop' => 'info',\n 'format' => 'json',\n 'srwhat' => 'text',\n 'srlimit' => $results_per_page,\n 'srsearch' => $search_text,\n 'sroffset' => $offset,\n ],\n ];\n $request = $this->httpClient->request('GET', $url, $query);\n $results = json_decode($request->getBody());\n if (isset($results->query->search)) {\n foreach ($results->query->search as $key => $result) {\n $article_uri = $this->getPageUri($result->pageid);\n $results->query->search[$key]->uri = $article_uri;\n }\n }\n }\n catch (RequestException $exception) {\n drupal_set_message(t('Failed to complete Wikimedia API request \"%error\"', ['%error' => $exception->getMessage()]), 'error');\n \\Drupal::logger('cfr_wiki')->error('Failed to complete Wikipedia API request \"%error\"', ['%error' => $exception->getMessage()]);\n }\n }\n return $results;\n }", "title": "" }, { "docid": "f87ddc7fb458bbe4274289a3c6faff90", "score": "0.5634693", "text": "public function search()\n {\n \n }", "title": "" }, { "docid": "49856eb5545a6ea958232d060e4392c6", "score": "0.5623466", "text": "function commerce_pos_product_search($keywords) {\n // First try and perform a search through the Search API.\n if (!($results = commerce_pos_product_search_api_search($keywords))) {\n $results = commerce_pos_product_search_basic($keywords);\n }\n\n return $results;\n}", "title": "" }, { "docid": "969170c998b9f227adb8424f3cd00401", "score": "0.56161004", "text": "public function searchAction(Request $request)\n {\n $em = $this->getDoctrine()->getManager();\n $requestString = $request->get('q');\n $entities = $em->getRepository('BlogBundle:Article')->findEntitiesByString($requestString);\n if (!$entities) {\n $result['entities']['error'] = \"not found\";\n } else {\n $result['entities'] = $this->getRealEntities($entities);\n\n }\n return new Response(json_encode($result));\n }", "title": "" }, { "docid": "8f2cb20c611459066f56d8c7697d4ac0", "score": "0.56111646", "text": "public function searchAction(){\n $params = json_decode(file_get_contents('php://input'),true);\n \n //Add a prefix to the params keys\n $params = array_combine(\n array_map(function($k){ return 'p_'.$k; }, array_keys($params)),\n $params\n );\n\n try {\n $rs = $this->getOfferDAO()->search($params);\n $this->jsonSuccessResponse($rs);\n } catch (\\Exception $e){\n $this->jsonErrorResponse($e->getMessage(). json_encode($params));\n }\n\n }", "title": "" }, { "docid": "d2809d83e450ebdd8c38759f2ffc45dc", "score": "0.56023985", "text": "public function search() {\n \n }", "title": "" }, { "docid": "a5972e9aeff960513548355906924bf0", "score": "0.55998737", "text": "public function search($keyword)\n {\n $this->fillSearch($keyword);\n $this->_rootElement->find($this->searchButton, Locator::SELECTOR_CSS)->click();\n }", "title": "" }, { "docid": "86ece2b431fb7e58adff5b576f4b6bda", "score": "0.55951834", "text": "abstract protected function doSearch(Query $query);", "title": "" }, { "docid": "d51ac0906b8561a38971832c790b4164", "score": "0.5591776", "text": "public static function search($keyword){\n\t\treturn Product::where('title', 'LIKE', '%'.$keyword.'%')->get();\n\t}", "title": "" }, { "docid": "20300fdf1bcbb1b9d3d1104c8b27d7ba", "score": "0.55873126", "text": "public function search(SearchQuery $search): array;", "title": "" }, { "docid": "c9f6a93316ffa287e09cb594fa4022de", "score": "0.55777967", "text": "static public function searchContent($searchTerm, $limit = null) {\n\t\tglobal $db;\n\n\t\tif (empty($limit)) {\n\t\t\t$sql = \"SELECT article_id FROM content WHERE searchable LIKE '%{$searchTerm}%' OR title LIKE '%{$searchTerm}%'\";\n\t\t} else {\n\t\t\t$sql = \"SELECT article_id FROM content WHERE searchable LIKE '%{$searchTerm}%' OR title LIKE '%{$searchTerm}%'\" . $limit;\n\t\t}\n\n\t\t$result_set = $db->queryFill($sql);\n\t\treturn $result_set;\n\t}", "title": "" }, { "docid": "3575e302a155a5ec186aa9fc7120a97d", "score": "0.5576426", "text": "public function search($searchParams = array())\n {\n $queryBuilder = $this->createQueryBuilder('e');\n\n if (!empty($searchParams)) {\n $searchAttributes = array(\n 'recipients',\n 'template',\n 'sent',\n 'variables',\n 'token',\n );\n\n foreach ($searchAttributes as $attribute) {\n if (empty($searchParams[$attribute])) {\n continue;\n }\n\n $attributeValue = $searchParams[$attribute];\n\n $queryBuilder->andWhere('e.'.$attribute.' LIKE :'.$attribute)\n ->setParameter($attribute, '%'.$attributeValue.'%');\n }\n }\n\n $queryBuilder->orderBy('e.sent', 'desc');\n\n return $queryBuilder->getQuery();\n }", "title": "" }, { "docid": "3eb649a0f0230ca6aa4410da9bc51e9b", "score": "0.5574066", "text": "function search($search_parameters, $class_type = 0){\n\t\t$searches = $search_parameters->getSearch();\n\t\t$exlusions = $search_parameters->getExclusions();\n\t\t$fulltext = $search_parameters->getFulltext();\n\t\t\n\t\t$searches = ($searches == null ? array() : $searches);\n\t\t$exlusions = ($exlusions == null ? array() : $exlusions);\n\t\t$fulltext = ($fulltext == null ? array() : $fulltext);\n\t\t\n\t\t$myrequest = new steam_request(\n \t\t\t\t\t\t$this->steam_object->get_steam_connector()->get_id(),\n \t\t\t\t\t\t$this->steam_object->get_steam_connector()->get_transaction_id(), \n \t\t\t\t\t\t\t$this->steam_object, \n \t\t\t\t\t\t\tarray(\"searchAsync\", array($searches, \n \t\t\t\t\t\t\t\t\t\t\t\t\t$exlusions, \n \t\t\t\t\t\t\t\t\t\t\t\t\t$fulltext,\n \t\t\t\t\t\t\t\t\t\t\t\t\t$class_type)),\n \t\t\t\t\t\t\tCOAL_COMMAND);\n \t\t\n \t$answer = $this->steam_object->get_steam_connector()->command($myrequest);\n\t\treturn $answer->get_arguments();\n\t}", "title": "" }, { "docid": "865e6c733d9f6d81c720bde02a934a6b", "score": "0.55669534", "text": "function searchActors($searchContent){\n $sql = 'SELECT * FROM actors AS a WHERE a.Name=:searchContent';\n $parameters = array(':searchContent'=>$searchContent);\n $result = getOne($sql, $parameters);\n return $result;\n }", "title": "" }, { "docid": "1dfc02251e10a800177c7c5e4c232823", "score": "0.5552702", "text": "function search($parameters)\n {\n }", "title": "" }, { "docid": "3b6626c0ccec96038d996ce1766b3e3f", "score": "0.5550976", "text": "public function search($params = array())\n {\n $index = $this->extractArgument($params, 'index');\n\n\n $type = $this->extractArgument($params, 'type');\n\n\n $body = $this->extractArgument($params, 'body');\n\n\n\n /** @var callback $endpointBuilder */\n $endpointBuilder = $this->dicEndpoints;\n\n /** @var \\Elasticsearch\\Endpoints\\Search $endpoint */\n $endpoint = $endpointBuilder('Search');\n $endpoint->setIndex($index)\n ->setType($type)\n ->setBody($body);\n $endpoint->setParams($params);\n $response = $endpoint->performRequest();\n return $response['data'];\n }", "title": "" }, { "docid": "e45127da5be5f66e73534986965e325a", "score": "0.5546965", "text": "public function set_search($search) { $this->set_param('Query', $search); }", "title": "" }, { "docid": "e234f218bffc92b5c9bf1235c395a7d2", "score": "0.55449784", "text": "public function search()\n\t{ \n\t\n\t\t $term = trim($this->input->post('term'));\n\t\t \n\t\t if($term){\n\t\t\t \n\t\t\t $data['search_result'] = $this->post_model->search($term);\n\t\t\t $data['count'] = $this->post_model->search_count($term);\n\t\t\t \n\t\t\t }else{\n\t\t\t\t redirect('home', 'refresh');\n\t\t\t\t }\n\t\t \n\t\t $data['title'] = 'search | Notice Board';\n\t\t $data['search_term'] = $term;\n\t\t $data['main'] = 'public/search';\n\t\t $data['sidebar'] = $this->post_model->resently_added_post();\n\t\t $data['navlist'] = $this->category_model->get_category_nav();\n\t\t $this->load->view('template', $data);\n\t\t \t\n\t \n\t \n\t}", "title": "" }, { "docid": "c9a34986ab1d762d47c09bfdd578410b", "score": "0.55404425", "text": "protected function search(ElasticSearchSC $elasticSearchSC){\n\n\t\t$this->hosts = $elasticSearchSC->getHosts(); /*[\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'host' => 'localhost',\n\t\t\t\t\t\t\t'port' => '9200',\n\t\t\t\t\t\t\t'scheme' => 'http',\n\t\t\t\t\t\t\t'user' => null,\n\t\t\t\t\t\t\t'pass' => null\n\t\t\t\t\t\t],\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'host' => 'localhost',\n\t\t\t\t\t\t]\n\t\t\t\t\t];*/\n\n\t\t$this->url_source = $elasticSearchSC->getUrlSource();\n $this->url_criteria = $elasticSearchSC->getCriteria();\n $index = $elasticSearchSC->getIndex();\n $host = $elasticSearchSC->getHost();\n $serverPort = $elasticSearchSC->getPort();\n $type = $elasticSearchSC->getDocType();\n $query = $elasticSearchSC->getQuery();\n\n\n //$url = \"http://\".$host.\":\".$serverPort.\"/\".$index.\"/\".$type.\"/_search\";\n //$result = $this->executeCURLCall($url, $query);\n\n $result = $this->executeCall($query, $index, $type);\n\t\t//\n\t\treturn $result;\n }", "title": "" }, { "docid": "4fa20c2419f29fbb38029f2ad28b83fa", "score": "0.55364746", "text": "public function testSearchWorks()\n {\n $results = SwiftypeEngine::listDocuments(1, 1);\n $this->assertCount(1, $results['results'], 'Only one result');\n\n $query = $results['results'][0]['advisor_name'];\n\n $this->log('Starting testSearchWorks');\n $documents = SwiftypeEngine::searchWithQuery($query);\n $this->assertArrayHasKey('results', $documents, 'We can search engine documents');\n $this->log('Search for '.$query.': ', count($documents['results']));\n }", "title": "" }, { "docid": "35e0aa35f87fed2280eec185b065cd81", "score": "0.55303204", "text": "public function search($description, $start = 0)\n\t{\n\t\t$result = $this->Products->searchSemantics3($description, $start);\n\t\t\n\t\t$this->set('result', $result);\n\t\t$this->set('_serialize', array('result'));\n\t}", "title": "" }, { "docid": "8f89c759209a0593aeb44849a7c44681", "score": "0.55302954", "text": "public function searchAction() {\n // gets the POST-value from the searchformular\n $queryString = $this->request->getArgument('searchBox');\n //trim special and space characters in queryString\n $replace = array(' ','&nbsp;');\n $queryString = trim($queryString);\n $queryString = str_replace($replace,'',$queryString);\n // go to listaction if querystring is false\n if(!isset($queryString) || $queryString == '' || (empty($queryString))) {\n $this->flashMessageContainer->add('Es wurden keine korrekten Suchkriterien eingegeben.');\n $this->redirect('list');\n } else {\n // search table with POST-value\n $foundProducts = $this->productRepository->findByTitle($queryString);\n $this->view->assign('foundProducts', $foundProducts);\n $this->view->assign('queryString', $queryString);\n }\n }", "title": "" }, { "docid": "f732b3b6828c477165a9b44e3994f2e7", "score": "0.5527661", "text": "function searchAmericanMovies($searchContent){\n $sql = 'SELECT * FROM americanmovies AS m WHERE m.Title=:searchContent';\n $parameters = array(':searchContent'=>$searchContent);\n $result = getOne($sql, $parameters);\n return $result;\n }", "title": "" }, { "docid": "8033e138bd9f77ea3845dfa73923d6a7", "score": "0.55262953", "text": "public function search()\n {\n $this->performSearch();\n $this->sanitizeResults();\n $this->updatePagination();\n }", "title": "" }, { "docid": "7f95dddeeac6c1b14ab0f5e92c59b252", "score": "0.5524179", "text": "public function search($params)\n {\n $query = Article::find();\n $query->orderBy(['id' => SORT_DESC]);\n $dataProvider = new ActiveDataProvider(\n [\n 'query' => $query\n ]\n );\n\n if (!($this->load($params) && $this->validate())) {\n return $dataProvider;\n }\n\n $query->andFilterWhere(\n [\n 'id' => $this->id,\n 'cat_id' => $this->cat_id,\n 'game_id' => $this->game_id,\n 'developer_id' => $this->developer_id,\n 'topic_id' => $this->topic_id,\n 'author_id' => $this->author_id,\n 'count' => $this->count,\n 'date' => $this->date,\n 'pub' => $this->pub,\n 'fs' => $this->fs\n ]\n );\n\n $query->andFilterWhere(['like', 'url', $this->url])\n ->andFilterWhere(['like', 'source', $this->source])\n ->andFilterWhere(['like', 'game_old', $this->game_old])\n ->andFilterWhere(['like', 'title', $this->title])\n ->andFilterWhere(['like', 'announce', $this->announce])\n ->andFilterWhere(['like', 'text', $this->text]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "91e525a333d0197057898d6d59a1a725", "score": "0.5514183", "text": "public function showSearchResult()\n {\n $keywords = Request::input('query');\n // clock(\"keywords is \".$keywords);\n $articles = Article::search($keywords)->paginate(env('PAGINATION_NUMBER', 2));\n $tags = Tag::where('count', '>', '0')->orderBy('count', 'desc')->orderBy('updated_at', 'desc')->take(10)->get();\n return view('index')->with('articles', $articles)->with('tags', $tags);\n }", "title": "" }, { "docid": "e7f9d787c63a04216b9094b8bbaec7f9", "score": "0.55085206", "text": "function search() {\n $url['action'] = 'index';\n \n // build a URL will all the search elements in it\n // the resulting URL will be \n // example.com/cake/posts/index/Search.keywords:mykeyword/Search.tag_id:3\n foreach ($this->data as $k=>$v){ \n foreach ($v as $kk=>$vv){ \n if ($vv) {\n $url[$k.'.'.$kk]=$vv; \n }\n } \n }\n\n // redirect the user to the url\n $this->redirect($url, null, true);\n }", "title": "" }, { "docid": "e428cc9acc4c5e61f77434c226b8b305", "score": "0.5504473", "text": "public function search(Request $request)\n {\n $key = trim($request->get('q'));\n\n $articles = Article::query()->where('title', 'like', \"%{$key}%\")\n ->orWhere('content', 'like', \"%{$key}%\")\n ->orderBy('published_at', 'desc')\n ->get();\n\n return view('search', compact('articles'));\n }", "title": "" }, { "docid": "35b0824108cee2cfc39f7b9e2f355674", "score": "0.5502057", "text": "function search($query, $asPaginator);", "title": "" }, { "docid": "aee00209051f440b2079a9f88409422a", "score": "0.5500328", "text": "public function search($params)\n {\n $query = Article::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n ]);\n\n $query->andFilterWhere(['like', 'title_ua', $this->title_ua])\n ->andFilterWhere(['like', 'title_en', $this->title_en])\n ->andFilterWhere(['like', 'short_desc_ua', $this->short_desc_ua])\n ->andFilterWhere(['like', 'short_desc_en', $this->short_desc_en])\n ->andFilterWhere(['like', 'description_ua', $this->description_ua])\n ->andFilterWhere(['like', 'description_en', $this->description_en]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "045264b6c43a1d5fa650c0bd6edde201", "score": "0.5497714", "text": "public function search()\n\t{\n\n\t}", "title": "" }, { "docid": "c07b2de3d803304fe0dc385d155cb4ba", "score": "0.54960203", "text": "function search() {\n\t\t//$menu = &JSite::getMenu();\n\t\t//$items\t= $menu->getItems('link', 'index.php?option=com_portaladv&view=advancedsearch');\n\n\t\t//if(isset($items[0])) {\n\t\t\t//$post['Itemid'] = $items[0]->id;\n\t\t//}\n\t\t\n\t\t//unset($post['task']);\n\t\t//unset($post['submit']);\n\n\t\t//$uri = JURI::getInstance();\n\t\t//$uri->setQuery($post);\n\t\t//$uri->setVar('option', 'com_portaladv');\n\t\t//$uri->setVar('view', 'searchresults');\n\t\t\n\t\t// Create the view\n\t\t$view = & $this->getView('search', 'html');\n\n\t\t// Get/Create the model\n\t\tif ($_GET['task'] == 'search') {\n\t\t\t$model = &$this->getModel('search');\n\t\t}\n\t\t//Record the search\n\t\t//-- records the search criteria and user info to the database\n\t\t//$model->recordSearch();\n\n\t\t// Push the model into the view (as default)\n\t\t$view->setModel($model, true);\n\n\t\t// Set the layout\n\t\t$view->setLayout('default');\n\n\t\t// Display the view\n\t\t$view->display();\n\t\t\n\t}", "title": "" }, { "docid": "9101146bbbfaf3ffc7f8194dcd9f7739", "score": "0.5493922", "text": "function search(){\n /* Search dari Page Vacantsea */\n /** =========================\n * Komponen Pencarian :\n * 1. Department\n * 2. Rank\n * 3. Sallary\n * 4. Keyword\n * */\n $this->search_process();\n }", "title": "" }, { "docid": "d4f288b63091730b33a5f2968775b10c", "score": "0.54851764", "text": "public function searchAction($slug)\n {\n $em = $this->getDoctrine()->getManager();\n $articles = $em->getRepository('PortailBundle:Article')->findbySearch($slug);\n $tags = $em->getRepository('PortailBundle:Tag')->findActiveTags(true);\n \n if (!$articles)\n {\n throw $this->createNotFoundException('Unable to find Article posts.');\n }\n\n if (!$tags)\n {\n throw $this->createNotFoundException('Unable to find actives Tags.');\n }\n\n $tags = $em->getRepository('PortailBundle:Tag')->findActiveTags(true);\n\n return $this->render('PortailBundle:Article:search.html.twig', array(\n 'articles' => $articles,\n 'tags' => $tags\n ));\n }", "title": "" }, { "docid": "6f7d067b44a8cf1287c7ad6149789793", "score": "0.5479368", "text": "public function searchAction()\n {\n // start time measurement\n $timeStart = microtime(true);\n\n $this->saveSession();\n // get search data\n $searchData = $this->getSearchData('search');\n\n // end time measurement\n $timeEnd = microtime(true);\n\n // return data\n return $this->dataResponse(array(\n 'took' => $timeEnd - $timeStart,\n 'query'=> $searchData['query'],\n 'fromCache'=>$searchData['fromCache'],\n ), $searchData['data'], $searchData['key']);\n }", "title": "" }, { "docid": "1cc6019f6410eeb001e7ee7b5c758799", "score": "0.547521", "text": "public function search($string)\n {\n }", "title": "" }, { "docid": "f2b2789acda0b94e2dbeb5038448b9b6", "score": "0.5473931", "text": "public function search($search)\n {\n $search_type = request()->get('search_type');\n\n return $this->builder\n ->where(function ($query) use ($search, $search_type) {\n\n if (!empty($search_type)) {\n\n if ($search_type === 'name') {\n\n if (!empty($search)) {\n $query->where($search_type, $search);\n }\n }\n else {\n $query->where($search_type, 'like', '%' . $search . '%');\n }\n }\n else {\n $query->orWhere('name', 'like', '%' . $search . '%')\n ->orWhere('description', 'like', '%' . $search . '%');\n }\n });\n }", "title": "" }, { "docid": "c44aab5b4805f43f89234e6e61e2aaac", "score": "0.5465085", "text": "function api_do_search($search,$restypes=\"\",$order_by=\"relevance\",$archive=0,$fetchrows=-1,$sort=\"desc\")\n {\n # Search capability.\n # Note the subset of the available parameters. We definitely don't want to allow override of permissions or filters.\n return do_search($search,$restypes,$order_by,$archive,$fetchrows,$sort);\n }", "title": "" }, { "docid": "5cfac56d68d6c6e0903bfb646494f7f3", "score": "0.54623747", "text": "public function actionSearchJson()\n {\n \\Yii::$app->response->format = 'json';\n\n $keyword = Yii::$app->request->get('keyword', \"\");\n $page = (int) Yii::$app->request->get('page', 1);\n $limit = (int) Yii::$app->request->get('limit', Yii::$app->settings->get('paginationSize'));\n\n $searchResultSet = Yii::$app->search->find($keyword, [\n 'model' => \\zikwall\\easyonline\\modules\\community\\models\\Community::class,\n 'page' => $page,\n 'pageSize' => $limit\n ]);\n\n return $this->prepareResult($searchResultSet);\n }", "title": "" }, { "docid": "198b9c31f30da258fe1191d045869930", "score": "0.5460023", "text": "public function search($actif=null,$entite=null,$keywords=null){\r\n if (isAuthorized('architectures', 'index')) :\r\n if(isset($this->params->data['Architecture']['SEARCH'])):\r\n $keywords = $this->params->data['Architecture']['SEARCH'];\r\n elseif (isset($keywords)):\r\n $keywords=$keywords;\r\n else:\r\n $keywords=''; \r\n endif;\r\n $this->set('keywords',$keywords);\r\n if($keywords!= ''):\r\n $arkeywords = explode(' ',trim($keywords)); \r\n $visibility = $this->get_visibility(); \r\n $restriction= $this->get_restriction($visibility);\r\n $getactif = $this->get_architecture_actif_filter($actif);\r\n $getentite = $this->get_architecture_entite_filter($entite, $visibility);\r\n $this->set('strfilter',$getactif['filter'].$getentite['filter']);\r\n $newcondition = array($restriction,$getactif['condition'],$getentite['condition']);\r\n foreach ($arkeywords as $key=>$value):\r\n $ornewconditions[] = array('OR'=>array(\"Architecture.NOM LIKE '%\".$value.\"%'\",\"Architecture.COMMENTAIRE LIKE '%\".$value.\"%'\"));\r\n endforeach;\r\n $conditions = array($newcondition,'OR'=>$ornewconditions);\r\n $this->paginate = array_merge_recursive($this->paginate,array('conditions'=>$conditions,'recursive'=>0)); \r\n $this->set('architectures', $this->paginate());\r\n $ObjEntites = new EntitesController();\t\t\r\n $cercles = $ObjEntites->get_all();\r\n $this->set(compact('cercles')); \r\n else:\r\n $this->redirect(array('action'=>'index',$actif,$entite));\r\n endif;\r\n else :\r\n $this->Session->setFlash(__('Action non autorisée, veuillez contacter l\\'administrateur.',true),'flash_warning');\r\n throw new UnauthorizedException(\"Vous n'êtes pas autorisé à utiliser cette fonctionnalité de l'outil\");\r\n endif; \r\n }", "title": "" }, { "docid": "bffa7fc7176cdb389f66bd687555e10b", "score": "0.54476845", "text": "public function search() {\n\t\t$timeStart = microtime(true);\n\t\t$searchTerm = Input::get(\"term\");\n\t\t$items = [ ];\n\t\t\n\t\tif ($searchTerm) {\n\t\t\t$response = ApiUtility::getSearch($searchTerm);\n\t\t\t\n\t\t\tforeach ( $response [\"results\"] as $result ) {\n\t\t\t\t$item = [ \n\t\t\t\t\t\t\"title\" => $result [\"title\"],\n\t\t\t\t\t\t\"description\" => $result [\"description\"],\n\t\t\t\t\t\t\"as_id\" => $result [\"id\"] \n\t\t\t\t];\n\t\t\t\tarray_push ( $items, $item );\n\t\t\t}\n\t\t\t$timeEnd = microtime(true);\n\t\t\t$executionTime = $timeEnd - $timeStart;\n\t\t\t\n\t\t\treturn view ('search', [ \n\t\t\t\t\t\"term\" => $searchTerm,\n\t\t\t\t\t\"count\" => count($items),\n\t\t\t\t\t\"items\" => $items,\n\t\t\t\t\t\"execution\" => number_format($executionTime, 2, '.', ''),\n\t\t\t\t\t\"noAudio\" => true\n\t\t\t]);\n\t\t} else {\n\t\t\t$data = [\"items\" => $items];\n\t\t\treturn view('search', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "b688d95530ad00795aa10b624b0c6ddd", "score": "0.54310316", "text": "public function getSearch($idType, $idCode);", "title": "" }, { "docid": "d7de55e55678eb50ab33a22d21ad9337", "score": "0.54297423", "text": "public function searchtestAction(){\n // has html view associated with it. Really used for debugging.\n\n $q = $this->_request->getParam( 'q' ); // The search term\n $searchIndex = $this->_request->getParam( 'searchIndex' ); // The starting point for the product number for pagination\n $numberOfItems = $this->_request->getParam( 'numberOfItems' ); // The number of items you want the search to return \n $priceRange = $this->_request->getParam( 'priceRange' ); // Price range to search for\n\n $debug = $this->_request->getParam( 'debug' );\n\n // Seach Amazon and get display result array\n Zend_Loader::loadClass('ProductSearch');\n\n $productSearch = new ProductSearch();\n\n $productSearch->setAffiliate( 'amazon' );\n\n $productSearch->setDebugTrue();\n\n $searchResult = $productSearch->searchAndFilter( $q, $numberOfItems, $searchIndex, $priceRange ); \n\n $this->view->searchResult = $searchResult;\n\n //print_r( $searchResult );\n if( $debug == true ){\n echo '<h3>Results</h3>'; print_r( $searchResult );\n }\n }", "title": "" }, { "docid": "8dde069b2c033d0722a3f1726d47250d", "score": "0.5429578", "text": "public function search($params)\n {\n $query = ArticleImage::find();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n $dataProvider->setSort([\n 'defaultOrder'=>['id'=>SORT_DESC,],\n 'attributes'=>[\n 'id'=>[\n 'default'=>SORT_DESC\n ],\n 'sort'=>[\n 'default'=>SORT_DESC\n ],\n 'expire'=>[\n 'default'=>SORT_DESC\n ],\n ],\n 'enableMultiSort'=>true\n ]);\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n // 根据所属菜单搜索\n $query->andFilterWhere(['category_id'=>$this->category_id])\n ->andFilterWhere(['key_name'=>$this->key_name])\n ->andFilterWhere(['position'=>$this->position])\n ->andFilterWhere(['category_cond'=>$this->category_cond]);\n\n // 根据有效期时间范围搜索\n $query->andFilterWhere(['>=', 'expire', $this->expireFrom])\n ->andFilterWhere(['<=', 'expire', $this->expireTo]);\n\n // 根据文章ID范围搜索\n $query->andFilterWhere(['>=', 'id', $this->idFrom])\n ->andFilterWhere(['<=', 'id', $this->idTo]);\n\n $query->andFilterWhere(['like', 'url', $this->url])\n ->andFilterWhere(['like', 'image_url', $this->image_url])\n ->andFilterWhere(['like', 'title', $this->title]);\n //->andFilterWhere(['like', 'key_name', $this->key_name])\n //->andFilterWhere(['like', 'position', $this->position]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "a91b36255553797129f2b2b287e4cbaa", "score": "0.54239404", "text": "public function setSearch($var)\n {\n GPBUtil::checkString($var, True);\n $this->search = $var;\n\n return $this;\n }", "title": "" }, { "docid": "252f6430fdacb3629557b02818d6bf76", "score": "0.54177606", "text": "public function searchProductsAction($searchText)\n {\n echo $searchText;\n\n //echo json_encode($productsList);\n }", "title": "" } ]
0878be5ce43192c7600ee45ffe93ca61
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
[ { "docid": "bd39d0ae0ef089ed0d3c49ca92ff5862", "score": "0.0", "text": "public static function model($className=__CLASS__)\n\t{\n\t\treturn parent::model($className);\n\t}", "title": "" } ]
[ { "docid": "c61d887d37bd45c4a810ac98a3a62e0e", "score": "0.7426303", "text": "public static function model($className = __CLASS__)\n {\n return parent::model(static::class);\n }", "title": "" }, { "docid": "8014a43cb66ff25aff411ed7c50ef144", "score": "0.7403647", "text": "public static function model() {\r\n $class = get_called_class();\r\n if (!isset(self::$instance[$class])) {\r\n self::$instance[$class] = new $class();\r\n }\r\n return self::$instance[$class];\r\n }", "title": "" }, { "docid": "afde4a0f9754888993914bf0d2bfed11", "score": "0.72726226", "text": "public static function model()\n {\n $class = get_called_class();\n return new $class(array());\n }", "title": "" }, { "docid": "9816d7bf330a9e21d8b3599d73f2e74c", "score": "0.72715706", "text": "public static function model($className=__CLASS__) { return parent::model($className); }", "title": "" }, { "docid": "9816d7bf330a9e21d8b3599d73f2e74c", "score": "0.72715706", "text": "public static function model($className=__CLASS__) { return parent::model($className); }", "title": "" }, { "docid": "b89513e64e5fcdd2618d48b9a2356e70", "score": "0.72700775", "text": "public static function model($className=__CLASS__)\n {\n return CActiveRecord::model($className);\n }", "title": "" }, { "docid": "b89513e64e5fcdd2618d48b9a2356e70", "score": "0.72700775", "text": "public static function model($className=__CLASS__)\n {\n return CActiveRecord::model($className);\n }", "title": "" }, { "docid": "4b59ef424cf7eb5c6c7220a4d49e3565", "score": "0.72631854", "text": "public static function model($class = __CLASS__) {\n return parent::model($class);\n }", "title": "" }, { "docid": "37c82abbbe249cfe9cdc97cddfcdda49", "score": "0.72436523", "text": "public static function model() {\n\t\t$class = get_called_class();\n\t\t\n\t\t$inst = new $class(null);\n\t\t\n\t\treturn $inst;\n\t}", "title": "" }, { "docid": "de8f8e3f52ad1b4fcfe9524c3acb99d7", "score": "0.71314657", "text": "public static function model($class=__class__){\n return parent::model($class);\n }", "title": "" }, { "docid": "ed2f419ac31ca0239077f167b618e992", "score": "0.7128803", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "ed2f419ac31ca0239077f167b618e992", "score": "0.7128803", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "ed2f419ac31ca0239077f167b618e992", "score": "0.7128803", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "ed2f419ac31ca0239077f167b618e992", "score": "0.7128803", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "ed2f419ac31ca0239077f167b618e992", "score": "0.7128803", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "dcbec403d2e049d81725199ab37c97ba", "score": "0.7127616", "text": "public static function model($class = __CLASS__)\n\t{\n\t\treturn parent::model($class);\n\t}", "title": "" }, { "docid": "dcbec403d2e049d81725199ab37c97ba", "score": "0.7127616", "text": "public static function model($class = __CLASS__)\n\t{\n\t\treturn parent::model($class);\n\t}", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "14fb23887a36c60aaaf4599f4a3a9aaf", "score": "0.7102435", "text": "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "1716587f85e87b40024fbd9d29ea137d", "score": "0.7091923", "text": "public static function model($className = __CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "1716587f85e87b40024fbd9d29ea137d", "score": "0.7091923", "text": "public static function model($className = __CLASS__)\n {\n return parent::model($className);\n }", "title": "" }, { "docid": "336543304aa3b8efb7089b878a8b7a70", "score": "0.70773524", "text": "public static function model($className = __CLASS__) {\r\n return parent::model($className);\r\n }", "title": "" }, { "docid": "a5414ed4c55e4ebe1d6b0848b59bd4ad", "score": "0.70747095", "text": "public static function model($className=__CLASS__) {\r\n return parent::model($className);\r\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" }, { "docid": "8fc5cb179e6ca5826414aaf84a9ccdcf", "score": "0.7064216", "text": "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "title": "" } ]
d6cf9e0670c5a8abc7e066263c0d4764
Generate DocBook XML section block header
[ { "docid": "047e6268ea2ae871aac53c23a0e82849", "score": "0.6235639", "text": "static function docHeader($name)\n {\n return \" <variablelist>\\n\";\n }", "title": "" } ]
[ { "docid": "1b1a3e6d1a415143b0b10e9d51fc0de5", "score": "0.64765424", "text": "function makeHeader() {\r\n\t\t\t$headerNode = new HeaderNode($this->doc,'ModBMCD901Header');\r\n\t\t\t$headerNode->addLogo('BMCDLogo','/','/imgdir/50x25_Placeholder.jpg','BMCD',50,25);\r\n\t\t\t$headerNode->addLogo('JaguarLogo','/','/imgdir/50x25_Placeholder.jpg','Jaguar',50,25);\r\n\t\t\t$headerNode->addLogo('LandRoverLogo','/','/imgdir/50x25_Placeholder.jpg','Land Rover',50,25);\r\n\t\t\t$headerNode->addTitle('Title');\r\n\t\t\t$headerNode->addSubtitle('Header Subtitle');\r\n\t\t\t$headerNode->addAddress('Header Address');\r\n\t\t\t$headerNode->addMenu('Header_Menu');\r\n\t\t\t$headerNode->addMenuItem('Section','/home','Home');\r\n\t\t\t$headerNode->addMenuItem('Section','/inventory','Inventory',true);\r\n\t\t\t$headerNode->addSubMenuItem('/inventory','Subsection','/test/data','Test Data');\r\n\t\t\t\r\n\t\t\t$this->headerNode = &$headerNode;\r\n\t\t\t//The parent version needs to be called\r\n\t\t\tparent::appendContent($headerNode);\r\n\t\t}", "title": "" }, { "docid": "f6311608ce00576e2a254e111ab8e491", "score": "0.6179899", "text": "function header_block()\r\n {\r\n $header = html_div('pageheader');\r\n\t\t$header->add(html_comment('HEADER BLOCK AREA')) ;\r\n $logo = html_a('/', html_img('/images/OnYourMarksWhite_080x066.png'), null, null, 'Home') ;\r\n $logo->set_style('headerimage') ;\r\n\r\n $header->add($logo,\r\n html_h2(FT_PAGE_HEADER), html_h4(FT_PAGE_SUBHEADER)) ;\r\n\r\n return $header;\r\n }", "title": "" }, { "docid": "2c87a93aba29d9d5677b8ccc452b8c73", "score": "0.6164602", "text": "function all_sections_start() {\n return '<!-- All sect. start --><table width=\"95%\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\" border=\"0\">';\n }", "title": "" }, { "docid": "1b03315e31d535486a110abade73ac54", "score": "0.6161493", "text": "function makeSectionHeader($id,$sectionTitleLinked,$countResultRows){\n \n # Init Template \n $this->templateCode = $this->pObj->cObj->fileResource($this->pObj->conf[\"templateFile\"]);\n $template = array();\n\n # Get the parts out of the template for viewing\n $template[\"total\"] = $this->pObj->cObj->getSubpart($this->templateCode,\"###SECTIONHEADER###\");\n \n $markerArray['###STYLESECHEAD###'] = $this->pObj->pi_classParam('secHead');\n $markerArray['###SECHEADANCHOR###'] = md5($id);\n $markerArray['###TPARAMSSECHEAD###'] = $this->pObj->conf['tableParams.']['secHead'];\n $markerArray['###SECHEADTTITLE###'] = $sectionTitleLinked;\n $markerArray['###SECHEADCOUNTER###'] = $countResultRows.' '.$this->pObj->pi_getLL($countResultRows>1?'word_pages':'word_page','',1);\n \n # Create the whole table\n $content = $this->pObj->cObj->substituteMarkerArrayCached($template[\"total\"],$markerArray, array(), array()); \n return $content; \n }", "title": "" }, { "docid": "6a2c1e15e7726c64066cec350aacdda3", "score": "0.61401504", "text": "public function write_section_xml() {\n global $DB;\n\n $this->open_xml_writer();\n\n $this->xmlwriter->begin_tag('section', array('id' => $this->data['ID']));\n $this->xmlwriter->full_tag('number', $this->data['NUMBER']);\n $this->xmlwriter->full_tag('name', NULL);\n $this->xmlwriter->full_tag('summary', $this->data['SUMMARY']);\n $this->xmlwriter->full_tag('summaryformat', 1);\n $this->xmlwriter->full_tag('sequence', implode(',', $this->sequence));\n $this->xmlwriter->full_tag('visible', $this->data['VISIBLE']);\n $this->xmlwriter->end_tag('section');\n\n $this->close_xml_writer();\n\n $DB->insert_record('backup_ids_temp', (object) array(\n 'backupid' => $this->get_convertid(),\n 'itemname' => 'section',\n 'itemid' => $this->data['ID'],\n 'info' => base64_encode(serialize(array(\n 'title' => $this->data['NUMBER'], // @todo Correct?\n 'directory' => pathinfo($this->get_xml_filename(), PATHINFO_DIRNAME),\n ))),\n ));\n\n // Reset\n $this->id = 0;\n $this->sequence = array();\n $this->data = array();\n }", "title": "" }, { "docid": "6caea4075deffc92abfe18b0b496db9d", "score": "0.6123881", "text": "private function generateHeader() {\n\t\t$template = new Core_Snippet('BattleReport/header.phtml', PATH_SNIPPET);\n\t\treturn $template->render();\n\t}", "title": "" }, { "docid": "32935f21a3ddf3bf1ebd4c0454df0d2a", "score": "0.6089096", "text": "function inline_header_structure_start() {\n\n\techo '<header id=\"header\">';\n\techo '<div class=\"wrap\">';\n\n}", "title": "" }, { "docid": "e251c394c1139880d77de00ebd8ce78b", "score": "0.60634035", "text": "public function cf_content_header() {\n echo beans_open_markup('cf_content_header_full','div',array('class'=>'cf-header cf-header-'. $this->section_color() ));\n\n //centered container\n echo beans_open_markup('cf_content_header_container','div',array('class'=>'cf-content-header uk-container uk-container-center'));\n\n echo beans_open_markup('cf_content_header_grid','div',array('class'=>'uk-grid'));\n echo beans_open_markup('cf_content_header_cell','div',array('class'=>'uk-width-medium-1-1'));\n\n echo beans_open_markup('cf_content_header_box','div',array('class'=>'uk-panel-box cf-content-header-box uk-padding-remove uk-flex uk-flex-middle uk-flex-center'));\n\n echo beans_close_markup('cf_content_header_box','div');\n echo beans_close_markup('cf_content_header_cell','div');\n echo beans_close_markup('cf_content_header_grid','div');\n\n echo beans_close_markup('cf_content_header_container','div');\n\n echo beans_close_markup('cf_content_header_full','div');\n }", "title": "" }, { "docid": "c722b6acb0126a71ffaf6d4ee9169471", "score": "0.60571355", "text": "public static function header(){\t?>\r\n\t\t\t<header>\r\n\t\t\t\t<figure>\r\n\t\t\t\t\t<a href=\"index.php\">\r\n\t\t\t\t\t\t<img alt=\"logo Cifocar\" title=\"logo Cifocar\" src=\"images/logos/logo-cifocar.png\" />\r\n\t\t\t\t\t</a>\r\n\t\t\t\t</figure>\r\n\t\t\t\t<hgroup>\r\n\t\t\t\t\t<h2>Compra y Venta de vehículos de segunda mano</h2>\r\n\t\t\t\t</hgroup>\r\n\t\t\t</header>\r\n\t\t<?php }", "title": "" }, { "docid": "9af9f07610822007b6e3b09fcbb9185a", "score": "0.6042946", "text": "public function renderHeadSection();", "title": "" }, { "docid": "a74f30293c13fda3320753d4219af738", "score": "0.60335916", "text": "function mosquito_section($element) {\n $output = '<section' . drupal_attributes($element['#attributes']) . '>';\n if (!empty($element['#title'])) {\n $output .= '<header><h3>'.$element['#title'].'</h3></header>';\n }\n $output .= $element['#children'];\n $output .= $element['#value'];\n $output .= \"</section>\\n\";\n\n return $output;\n}", "title": "" }, { "docid": "aa65663a9158de17ad9663c032a3b85c", "score": "0.6008172", "text": "public function GenerateSectionsHtml($pre, $index, $headerLevel) {\r\n \tif($this->variationPoint!=\"Original\"&&$this->variationPoint){\r\n \t\t$variationPoint=\"[\".$this->variationPoint.\"]\";\r\n \t}else \r\n \t\t$variationPoint=\"\";\r\n \tif($this->rev!=\"0\"&&$this->rev){\r\n \t\t$rev=\"(Rev \".$this->rev.\")\";\r\n \t}else\r\n \t\t$rev=\"\";\r\n $chr = chr(ord('a') + $index);\r\n $reqRelatedInfo = $this->reqRelatedInfo;\r\n $priority = $reqRelatedInfo['Priority'];\r\n $scopeSize = $reqRelatedInfo['ScopeSize'];\r\n $riskMultiplier = $reqRelatedInfo['RiskMultiplier'];\r\n $complexity = $reqRelatedInfo['Complexity'];\r\n $leverate = $reqRelatedInfo['Leverage'];\r\n $ritSize = $reqRelatedInfo['RITSize'];\r\n $comment=$reqRelatedInfo['Comment'];\r\n $html = \"\";\r\n $h = $headerLevel;\r\n $hpre = str_replace('-', '.', $pre);\r\n //$hpre.$chr.\r\n $html.= <<<HTML\r\n <section id=\"$pre-$chr\"><div class=\"page-header\"> <h$h> $this->headline <small>$variationPoint$rev</small> <a id=\"k$pre-$chr\" class=\"btn btn-mini btn-ok\" href=\"#\"><i class=\"icon-ok icon-white\"></i></a><a id=\"c$pre-$chr\" class=\"btn btn-mini btn-comment\" data-fieldname=\"$this->headline\" href=\"#commentModal\" data-toggle=\"modal\"><i class=\"icon-comment\"></i></a></h$h></div>\r\n <h$h>Topic ID</h$h>\r\n <pre>$this->id</pre>\r\n <h$h>Test Effort Information</h$h>\r\n <table class=\"table table-bordered table-striped\">\r\n <thead>\r\n <tr>\r\n <th>Priority</th>\r\n <th>Scope <small>eWeeks</small></th>\r\n <th>Risk Multiplier</th>\r\n <th>Complexity</th>\r\n <th>Leverage</th>\r\n <th>EIT Size</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td>$priority</td>\r\n <td>$scopeSize</td>\r\n <td>$riskMultiplier</td>\r\n <td>$complexity</td>\r\n <td>$leverate</td>\r\n <td>$ritSize</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\nHTML;\r\n if(isset($comment)&&str_replace(' ', '', $comment)!=\"\"){\r\n \t$html.=<<<HTML\r\n <h$h>Comment</h$h>\r\n <pre>$comment</pre>\r\nHTML;\r\n }\r\n if(isset($this->content)&&str_replace(' ', '', $this->content)!=\"\"){\r\n \t$content=preg_replace( \"/</\", \"&#60;\",$this->content);\r\n$html.=<<<HTML\r\n <h$h>Test Strategy</h$h>\r\n <pre>$content</pre>\r\nHTML;\r\n }\r\n $testCases = $this->suggestedTestCases;\r\n if (count($testCases) > 0) {\r\n $html.=<<<TESTCASES\r\n <h$h>Suggested Test Cases</h$h>\r\n <table class=\"table table-bordered table-striped\">\r\n <thead>\r\n <tr>\r\n <th>Test Case Name</th>\r\n <th>State</th>\r\n <th>Estimated Duration</th>\r\n <th>Creation Date</th>\r\n <th>Type</th>\r\n <th>Assumption Status</th>\r\n <th>Test Case Type</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\nTESTCASES;\r\n foreach ($testCases as $ts) {\r\n $html.=$ts->GenerateTbRowHtml();\r\n }\r\n\r\n\r\n $html.=<<<TESTCASES\r\n </tbody>\r\n </table>\r\nTESTCASES;\r\n }\r\n\r\n $assoRequirements = $this->associatedRequirements;\r\n if (count($assoRequirements) > 0) {\r\n $html.=<<<TESTCASES\r\n <h$h>Associated Requirements</h$h>\r\n <table class=\"table table-bordered table-striped\">\r\n <thead>\r\n <tr>\r\n <th>Type</th>\r\n <th>Requirement ID</th>\r\n <th>Requirement Title</th>\r\n <th>Doc Number</th>\r\n <th>Doc Title</th>\r\n <th>Doc Rev.</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\nTESTCASES;\r\n foreach ($assoRequirements as $ar) {\r\n $html.=$ar->GenerateTbRowHtml();\r\n }\r\n\r\n $html.=<<<TESTCASES\r\n </tbody>\r\n </table>\r\nTESTCASES;\r\n }\r\n $html.=\"</section>\";\r\n return $html;\r\n }", "title": "" }, { "docid": "ceef296d43a097db221c5aed8175d466", "score": "0.59636563", "text": "public function print_section_info(){\n\t\t\n\t}", "title": "" }, { "docid": "fc0549c5436512dd3b28e7403d857663", "score": "0.59419453", "text": "function addHeader() {\n\t\t$this->page .= <<<EOD\n<html>\n<head>\n<title>$this->title</title>\n</head>\n<body>\n<h1 align=\"center\">$this->title</h1>\nEOD;\n\t}", "title": "" }, { "docid": "d8a787a0d704d84c0c0de020213746c0", "score": "0.5910798", "text": "static function header() {\r\n return '<header class=\"header\" >\r\n <h1><a href=\"'.sq_utils::get_uri().'/admin\"><span class=\"logo-image\">&nbsp;<span class=\"logo-letter\">S</span></span><span class=\"logo-text\">equence</span></a></h1>\r\n</header>'.\"\\n\\n\";\r\n}", "title": "" }, { "docid": "5d83b646c428dbc3f901278134d13c6a", "score": "0.5900434", "text": "function Header() {\r\n\t\t$this->SetFont(\r\n\t\t\t$this->getReportStyle()->getStyleAttribute(reportStyle::SECTION_TITLE, reportStyle::STYLE_ATTRIBUTE_FONT, 'Arial'),\r\n\t\t\t$this->getFpdfFontFormatting($this->getReportStyle()->getStyles(reportStyle::SECTION_TITLE)),\r\n\t\t\t$this->getReportStyle()->getStyleAttribute(reportStyle::SECTION_TITLE, reportStyle::STYLE_ATTRIBUTE_FONT_SIZE, 16)\r\n\t\t);\r\n\t\t$rgb = $this->getReportStyle()->getStyleColourAsRgb(reportStyle::SECTION_TITLE, reportStyle::STYLE_ATTRIBUTE_COLOUR, '000000');\r\n\t\t$this->SetTextColor($rgb['r'], $rgb['g'], $rgb['b']);\r\n\t\t$this->Cell(0, 10, system::getConfig()->getParam('app', 'title', 'Scorpio Framework').': '.$this->getReportTitle(), 0, 0, 'L');\r\n\t\t$this->Ln(5);\r\n\t\t\r\n\t\t$this->SetFont(\r\n\t\t\t$this->getReportStyle()->getStyleAttribute(reportStyle::SECTION_DESC, reportStyle::STYLE_ATTRIBUTE_FONT, 'Arial'),\r\n\t\t\t$this->getFpdfFontFormatting($this->getReportStyle()->getStyles(reportStyle::SECTION_DESC)),\r\n\t\t\t$this->getReportStyle()->getStyleAttribute(reportStyle::SECTION_DESC, reportStyle::STYLE_ATTRIBUTE_FONT_SIZE, 12)\r\n\t\t);\r\n\t\t$rgb = $this->getReportStyle()->getStyleColourAsRgb(reportStyle::SECTION_DESC, reportStyle::STYLE_ATTRIBUTE_COLOUR, '000000');\r\n\t\t$this->SetTextColor($rgb['r'], $rgb['g'], $rgb['b']);\r\n\t\t\r\n\t\tif ( strlen($this->getReportDescription()) < 130 ) {\r\n\t\t\t$this->Cell(0, 10, $this->getReportDescription(), 0, 0, 'L');\r\n\t\t} else {\r\n\t\t\t$text = explode(\"\\n\", wordwrap($this->getReportDescription(), 120, \"\\n\"));\r\n\t\t\tforeach ( $text as $line ) {\r\n\t\t\t\t$this->Cell(0, 10, trim($line), 0, 0, 'L');\r\n\t\t\t\t$this->Ln(5);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->Ln(10);\r\n\t}", "title": "" }, { "docid": "acdfbc2fb42710fdb3a90e8da8089717", "score": "0.5883847", "text": "function header ()\n\t{\n\t\t// Get attributes needed\n\t\t$attributes = $this->get_attributes();\n\n\t\t/*if ( $this->use_classes )\n\t\t{*/\n\t\t\t$ol_attributes = '';\n\t\t/*}\n\t\telse\n\t\t{\n\t\t\t//$ol_attributes = ' style=\"margin: 0;\"';\n\t\t}*/\n\n\t\tif ( $this->line_numbers_start != 1 )\n\t\t{\n\t\t\t$ol_attributes .= ' start=\"' . $this->line_numbers_start . '\"';\n\t\t}\n\n\t\t// Get the header HTML\n\t\t$header = $this->format_header_content();\n\n\t\t// Work out what to return and do it\n\t\tif ( $this->line_numbers != GESHI_NO_LINE_NUMBERS )\n\t\t{\n\t\t\tif ( $this->header_type == GESHI_HEADER_PRE )\n\t\t\t{\n\t\t\t\treturn \"<pre$attributes>$header<ol$ol_attributes>\";\n\t\t\t}\n\t\t\telseif ( $this->header_type == GESHI_HEADER_DIV )\n\t\t\t{\n\t\t\t\treturn \"<div$attributes>$header<ol$ol_attributes>\";\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( $this->header_type == GESHI_HEADER_PRE )\n\t\t\t{\n\t\t\t\treturn \"<pre$attributes>$header\";\n\t\t\t}\n\t\t\telseif ( $this->header_type == GESHI_HEADER_DIV )\n\t\t\t{\n\t\t\t\treturn \"<div$attributes>$header\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5dbceafca5033906af0d58acac2fe021", "score": "0.58618885", "text": "function thmplt_init_section() {\r\n\t\r\n\tthmplt_register_section('thmplt_before_main_header', array(\r\n\t\t'label' => 'Before the header',\r\n\t\t'description' => 'Section before the main header, after the opening \"body\" tag',\r\n\t\t'hook' => 'thmplt_before_main_header'\r\n\t));\r\n\tthmplt_register_section('thmplt_before_main_section', array(\r\n\t\t'label' => 'Before the main section',\r\n\t\t'description' => 'Section right after the header and before the main section',\r\n\t\t'hook' => 'thmplt_before_main_section'\r\n\t));\r\n\tthmplt_register_section('thmplt_after_main_section', array(\r\n\t\t'label' => 'Before the footer',\r\n\t\t'description' => 'Section right after the main section and before the footer',\r\n\t\t'hook' => 'thmplt_after_main_section'\r\n\t));\t\r\n\tthmplt_register_section('thmplt_after_main_footer', array(\r\n\t\t'label' => 'After the footer',\r\n\t\t'description' => 'All content after the main footer before the closing \"body\" tag',\r\n\t\t'hook' => 'thmplt_after_main_footer'\r\n\t));\t\t\t\r\n\r\n}", "title": "" }, { "docid": "e8fffafd314f49ecf0be48b607d7916a", "score": "0.5858964", "text": "public function general_section_info() {}", "title": "" }, { "docid": "785c2f0f8fa4240f96df1de5d26154f1", "score": "0.583732", "text": "public function appendHeader() {\n\t$table = new OaiFinds();\n\tif(array_key_exists('0',$this->item)) {\n\t$itemid = $this->item['0']['id'];\n\t$updated = $this->item['0']['created'];\n\t$collectionId = $this->item['0']['institution'];\n\t} else {\n\t$itemid = $this->item['id'];\n\t$updated = $this->item['created'];\n\t$collectionId = $this->item['institution'];\n\t}\n\t$item = $table->fetchRow($table->select()->where('finds.id = ?',$itemid));\n \t$object = new Pas_OaiPmhRepository_OaiIdentifier();\n \t$itemNumber = $object->itemToOaiId($itemid);\n $headerData['identifier'] = $itemNumber;\n $headerData['datestamp'] = self::dbToUtc($updated);\n\tif ($collectionId)\n $headerData['setSpec'] = $collectionId;\n $this->createElementWithChildren(\n $this->parentElement, 'header', $headerData);\n }", "title": "" }, { "docid": "3297e4095ac06c55b230811c44e18cf0", "score": "0.5827686", "text": "private function createGroupHeader()\n {\n //Retrieve the CstmrDrctDbtInitn node\n $CstmrDrctDbtInitnNode = $this->getCstmrDrctDbtInitnNode();\n\n //Create the required nodes\n $GrpHdrNode = $this->xml->createElement(\"GrpHdr\");\n $MsgIdNode = $this->xml->createElement(\"MsgId\");\n $CreDtTmNode = $this->xml->createElement(\"CreDtTm\");\n $NbOfTxsNode = $this->xml->createElement(\"NbOfTxs\");\n $CtrlSumNode = $this->xml->createElement(\"CtrlSum\");\n $InitgPtyNode = $this->xml->createElement(\"InitgPty\");\n $NmNode = $this->xml->createElement(\"Nm\");\n\n //Set the values for the nodes\n $MsgIdNode->nodeValue = $this->makeMsgId();\n $CreDtTmNode->nodeValue = date(\"c\");\n\n $NmNode->nodeValue = htmlentities($this->configuration->getName(), $this->htmlEntityOptions, 'UTF-8');\n\n //Append the nodes\n $InitgPtyNode->appendChild($NmNode);\n $GrpHdrNode->appendChild($MsgIdNode);\n $GrpHdrNode->appendChild($CreDtTmNode);\n $GrpHdrNode->appendChild($NbOfTxsNode);\n $GrpHdrNode->appendChild($CtrlSumNode);\n $GrpHdrNode->appendChild($InitgPtyNode);\n\n //Append the header to its parent\n $CstmrDrctDbtInitnNode->appendChild($GrpHdrNode);\n }", "title": "" }, { "docid": "a4e45dcd817c896472a805a2a7430a0c", "score": "0.5793286", "text": "public function renderHeadSection()\n\t{\n\t\treturn $this->createTemplate(dirname(__FILE__) . \"/head.latte\")->__toString(TRUE);\n\t}", "title": "" }, { "docid": "371f3a58d2f26dfbceba61aecb128606", "score": "0.5773117", "text": "function template_preprocess_views_data_export_doc_header(&$vars) {\n template_preprocess_views_data_export_msoffice_header($vars);\n}", "title": "" }, { "docid": "1c943e4ec7eb0a566e8ea9479a74a598", "score": "0.57614756", "text": "abstract public function printHeader();", "title": "" }, { "docid": "85ffb48dc6ef2dd5373849fd4937f187", "score": "0.5747407", "text": "function mjf_section_title() {\r\n\t// output title\r\n}", "title": "" }, { "docid": "4a67384a58abe066fb762bc3bc7f4361", "score": "0.57348907", "text": "protected function echo_header() {\r\n\tself::$xml = \"\";\r\n\tself::$xml .= \"<?xml version='1.0' encoding='UTF-8'?>\\n\";\r\n\tself::$xml .=\t\"<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>\\n\";\r\n }", "title": "" }, { "docid": "73a6641f6bbb0ad91a4fcd7bbe113dbb", "score": "0.5709879", "text": "public function section() {\n\t}", "title": "" }, { "docid": "5d56c581a31354c416e8dbb46db71961", "score": "0.5705404", "text": "function xml_format_document( $entry=array() )\n\t{\n\t\t$this->header = '<?xml version=\"1.0\" encoding=\"'.$this->doc_type.'\"?'.'>';\n\t\t\n\t\t$this->xml_document = $this->header ? $this->header.\"\\n\" : '';\n\t\t\n\t\t$this->xml_document .= \"<\".$this->root_tag.$this->root_attributes.\">\\n\";\n\t\t\n\t\t$this->xml_document .= $this->tmp_doc;\n\t\t\n\t\t$this->xml_document .= \"\\n</\".$this->root_tag.\">\";\n\t\t\n\t\t$this->tmp_doc = \"\";\n\t}", "title": "" }, { "docid": "d5c262febac31b9d98e1f76a0e096107", "score": "0.56969416", "text": "function Header() {\n\t\tif($this->ajoute_titre) { //Titre\n\t\t\t$this->AdaptFont(10); // Police 10pt\n\t\t\t$this->Cell(0,6,utf8_decode($GLOBALS['association_metas']['nom']),0,1,'L'); // Nom de l'association a gauche\n\t\t\t$this->AdaptFont(14,'B'); // Police 14pt gras\n\t\t\t$this->Cell(0,6,utf8_decode(html_entity_decode($this->titre)),0,1,'C'); // Titre du document au centre\n\t\t\t$this->Ln(10); // Saut de ligne : 10pt de haut\n\t\t}\n\t\tif($this->ProcessingTable)\n\t\t\t$this->TableHeader(); // Imprime l'en-tete du tableau si necessaire\n\t}", "title": "" }, { "docid": "2107e32e1c5fce381d20b5ac26a3e342", "score": "0.569375", "text": "private function fileDocBlock() {\n\t\tlist($funcs, $classes, $ifaces) = $this->getPrototypes();\n\n\t\t$this->file_contents = explode(\"\\r\\n\", $this->file_contents);\n\t\t$this->file_contents = $this->docBlock($this->file_contents, $funcs, $classes, $ifaces);\n\t\t$this->file_contents = implode(\"\\r\\n\", $this->file_contents);\n\t}", "title": "" }, { "docid": "9bfb2393f3a02d0548d3f94695d26cfc", "score": "0.5686103", "text": "public function print_section_info() {\n\n # print 'Section info here!' ; Not used in my example, but you never know when you will need it\n\n }", "title": "" }, { "docid": "6ca3e23f9908163e5d642fea3c2e8e4d", "score": "0.5677899", "text": "function StartSection($section_name, $table_wrap_style='', $output = true, $headeronly = false)\n{\n\tif($headeronly)\n\t{\n\t\t$r = '<h3 class=\"header blue lighter\">' . $section_name . '</h3>';\n\t}\n\telse\n\t{\n\t\n\t$r = '\n\t\t<!-- Start Table -->\n\t\t<div class=\"table-responsive\">\n\t\t\t<div class=\"table-header\"> ' . $section_name . '</div>';\n\t}\n /*\n $r = '\n <!-- start section -->'.\n (empty($section_name)?'':'<h1'.($table_wrap_style?' style=\"'.$table_wrap_style.'\"':'').'>' . $section_name . '</h1>').'\n <div class=\"table_wrap\"'.($table_wrap_style?' style=\"'.$table_wrap_style.'\"':'').'>\n <div class=\"form_wrap\"'.($table_wrap_style?' style=\"'.$table_wrap_style.'\"':'').'>\n ';\n*/\n if(empty($output)) return $r;\n echo $r;\n}", "title": "" }, { "docid": "027dba35bf02e9241b00e9da50afaa79", "score": "0.5665396", "text": "public function Header()\n {\n $this->SetMargins(7, 0, 0);\n $this->SetFont('Arial','B',10);\n $this->Cell(20, 20, utf8_decode(\"RELATÓRIO DE INVENTARIO POR RUA\" ), 0, 1);\n\n $this->SetFont('Arial', 'B', 8);\n $this->Cell($this->wColEnd, 5, utf8_decode(\"Endereço\") ,1, 0);\n $this->Cell($this->wColCod, 5, utf8_decode(\"Código\") ,1, 0);\n $this->Cell($this->wColDesc, 5, utf8_decode(\"Descrição\") ,1, 0);\n\n if ($this->usaGrade)\n $this->Cell($this->wColGrad, 5, utf8_decode(\"Grade\") ,1, 0);\n\n $this->Cell($this->wColVol, 5, utf8_decode(\"Volume\") ,1, 0);\n $this->Cell($this->wColUnit, 5, utf8_decode(\"Unitizador\") ,1, 0);\n $this->Cell($this->wColLote, 5, utf8_decode(\"Lote\") ,1, 0);\n $this->Cell($this->wColQtd, 5, \"Qtde\" ,1, 1);\n }", "title": "" }, { "docid": "7cc6fe472e7cd46d74b0282f7640ac3a", "score": "0.56548464", "text": "public function getXMLHeader() {\n $XMLheader = <<<XMLHEADER\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xsi:schemaLocation=\"urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 pain.008.001.02.xsd\" xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.008.001.02\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <CstmrDrctDbtInitn>\nXMLHEADER;\n\n return $XMLheader;\n }", "title": "" }, { "docid": "15afa316b780eb8118c102db10c28f5b", "score": "0.5654699", "text": "public function getXMLGroupHeader(){\n $XMLgroupheader = <<<XMLGROUPHEADER\n <GrpHdr>\n <MsgId>{$this->_MsgId}</MsgId>\n <CreDtTm>{$this->_CreDtTm}</CreDtTm>\n <NbOfTxs>{$this->_GrpHdrNbOfTxs}</NbOfTxs>\n <CtrlSum>{$this->_GrpHdrCtrlSum}</CtrlSum>\n <InitgPty>\n <Nm>{$this->_Nm}</Nm>\n </InitgPty>\n </GrpHdr>\nXMLGROUPHEADER;\n return $XMLgroupheader;\n }", "title": "" }, { "docid": "ca7f02e7690274cbcb455dc388e92c47", "score": "0.5635117", "text": "public function Header()\n {\n// $this->SetFont('Arial','B',15);\n// $this->Cell(80);\n// $this->Cell(30,10,'Title',1,0,'C');\n// $this->Ln(20);\n }", "title": "" }, { "docid": "87f8bee8ac071f25e5f71c347405dbc0", "score": "0.55858856", "text": "function headers()\n {\n return \" <div id='header'>\\n\".\"\n <h1>white rabbit</h1>\n <div id='nav'>\n <ul>\n <li>\n </li>\n </ul>\n </div>\n </div>\\n\";\n }", "title": "" }, { "docid": "9c368aec976fecabff90d6ed154c6b29", "score": "0.55703753", "text": "function htmldoc_header($title = \"\")\n {\n print(\"<HTML><HEAD><TITLE>$title - Fooware</TITLE></HEAD><BODY>\\n\");\n }", "title": "" }, { "docid": "83235f28b46b9f0bed14df5b9fefc2cc", "score": "0.55678815", "text": "function Header()\n\t{\n\t\t$this->Cell(15);\n\t\t$this->image('logo1.png',10,10,10);\n\t\t$this->SetFont('Arial','B', 15);\n\n\t\t$this->Cell(130, 5,\" Britcomm Networks Ltd\" ,0,0);\n\t\t$this->Cell(59,5,\"Invoice\",0,1);\n\t}", "title": "" }, { "docid": "826f58fd227d25e2e2297ab29e7100f7", "score": "0.55473125", "text": "function ptko_inc_hdr($ptko_settings){\r\n get_template_part('templates/takeover-hdr');\r\n }", "title": "" }, { "docid": "650641dfc5d8e7d246bb0caa3cc4b015", "score": "0.5541305", "text": "private static function WritePageHeader()\n\t{\n\t\t// Set character set to UTF-8\n\t\theader(\"Content-Type: text/html; charset=UTF-8\");\n\t?><!DOCTYPE html><html lang=\"en\"><head>\n\t\t<meta charset=\"utf-8\">\n\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Aten Software Product Data Exporter for Magento</title>\n\t\t<link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n\t</head><body><div class=\"container\">\n\t\t<h2><a href=\"https://www.atensoftware.com/p187.php\">Aten Software Product Data Exporter for Magento</a></h2><?php\n\t}", "title": "" }, { "docid": "c7377427d288518c2b3acd7ee07af3ba", "score": "0.55212146", "text": "public function genesis_header_markup_open() {\n\n\t\tgenesis_markup(\n\t\t\tarray(\n\t\t\t\t'html5' => '<header %s>',\n\t\t\t\t'xhtml' => '<div id=\"header\">',\n\t\t\t\t'context' => 'site-header',\n\t\t\t)\n\t\t);\n\n\t\tgenesis_structural_wrap( 'header' );\n\n\t}", "title": "" }, { "docid": "ff2136c929b4ed733d016fe27239787c", "score": "0.551796", "text": "function xml_print_header(string $version = '1.0', string $encoding = 'UTF-8') {\n print \"<?xml version=\\\"$version\\\" encoding=\\\"$encoding\\\"?>\";\n }", "title": "" }, { "docid": "91a7d385b426617fe621fd2552a22a6c", "score": "0.5513035", "text": "public function build_header_layout( $section = 'bottom') {\n\n\t\t\t$header_type = Carbonick_Theme_Helper::get_option('header_type');\n\n\t\t\t$sticky = '';\n\n\t\t\tif (empty($this->header_sticky_page_select_id) && $this->html_render == 'sticky') {\n\t\t\t\t$section = 'bottom';\n\t\t\t}\n\n\t\t\tif ($this->html_render == 'sticky') {\n\t\t\t\tif (!empty($this->header_sticky_page_select_id)) {\n\t\t\t\t\t$sticky = '_sticky';\n\t\t\t\t\t$header_type = 'custom';\n\t\t\t\t}\n\t\t\t\t$section = 'bottom';\n\t\t\t}\n\n\t\t\tif ($header_type === 'custom' && $section === 'bottom') {\n\t\t\t\trequire_once ( get_theme_file_path( '/templates/header/elementor-builder/header-builder'.$sticky.'.php' ) );\n\t\t\t} else {\n\t\t\t\t$this->header_default( $section );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f34105fa1fee31877d6df605e709d4ef", "score": "0.5512814", "text": "private function createHeader()\n {\n $output = $this->createLimits();\n $output .= $this->createFilters();\n $output .= $this->createSorted();\n\n return $output;\n }", "title": "" }, { "docid": "ca9c4bd348901908b46414a7d664a60f", "score": "0.55014455", "text": "function amply_frontpage_header_header1_elements_outer_section( $wp_customize ) {\n\t$wp_customize->add_section(\n\t\t'amply_frontpage_header_header1_elements_outer_section',\n\t\tarray(\n\t\t\t'title' => esc_html__( 'Header 1 Elements', 'amply' ),\n\t\t\t'priority' => 0,\n\t\t\t'type' => 'outer',\n\t\t)\n\t);\n}", "title": "" }, { "docid": "0de936295cd9cbaa1fac3e57c8f8569f", "score": "0.5496165", "text": "public function printHeader() {\n $pdf = &$this->pdf;\n $this->printLogo();\n $pdf->Line(0, 24, 139, 24, array('width' => 0.2, 'cap' => 'round', 'join' => 'round', 'color' => array(150, 150, 150))); \n }", "title": "" }, { "docid": "093fc9ebab5bc9b43bb27b5021e54561", "score": "0.54954225", "text": "final public function getHeaderContents()\n {\n return '\nnamespace PH7;\ndefined(\\'PH7\\') or exit(\\'Restricted access\\');\n/*\nCreated on ' . gmdate(self::DATETIME_FORMAT) . '\nCompiled file from: ' . $this->sTemplateDirFile . '\nTemplate Engine: ' . self::NAME . ' version ' . self::VERSION . ' by ' . self::AUTHOR . '\n*/\n/**\n * @author Pierre-Henry Soria\n * @email ' . self::SOFTWARE_EMAIL . '\n * @link ' . self::SOFTWARE_WEBSITE . '\n * @copyright ' . sprintf(self::SOFTWARE_COPYRIGHT, date('Y')) . '\n */\n';\n }", "title": "" }, { "docid": "a1d678697ebdefd1a62897948e10924f", "score": "0.5479274", "text": "function Header()\n{\n\tglobal $title;\n\t$this->Ln(14);\n}", "title": "" }, { "docid": "473a1bfd37452300f2d2554ad0733db1", "score": "0.54674697", "text": "function inline_header_structure_end() {\n\n\techo '</div><!--end #header .wrap-->';\n\techo '</header><!--end #header-->';\n\n}", "title": "" }, { "docid": "24035dd8efffb9ea4702104ead3c13a5", "score": "0.5460017", "text": "function Header()\n\t{\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','C');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(190,5,tipo_serv(),'0','C');\n\t\t\n\t\t$this->Titulo();\n\t\t$this->Fecha();\n\t\t$this->TituloCampos();\n\t}", "title": "" }, { "docid": "24035dd8efffb9ea4702104ead3c13a5", "score": "0.5460017", "text": "function Header()\n\t{\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','C');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(190,5,tipo_serv(),'0','C');\n\t\t\n\t\t$this->Titulo();\n\t\t$this->Fecha();\n\t\t$this->TituloCampos();\n\t}", "title": "" }, { "docid": "71a93865863f836a5b84b8827b7b4e37", "score": "0.54528874", "text": "function displayHeader(){\n $html = '';\n $html .= '<header>';\n $html .= '<p><img src=\"super2-600.png\" width=\"600\" height=\"175\" alt=\"Super Sudoku\"></p>';\n $html .= '</header>';\n\n\n return $html;\n}", "title": "" }, { "docid": "bba23ce98223f92ccbd8986032a7312c", "score": "0.544701", "text": "function header_output() {\n }", "title": "" }, { "docid": "580aa6dd63d34a79caf6f28bf5cf18d3", "score": "0.54446405", "text": "function amply_register_single_header_outer_section( $wp_customize ) {\n\t$wp_customize->add_section(\n\t\t'amply_single_header_outer_section',\n\t\tarray(\n\t\t\t'title' => esc_html__( 'Header type', 'amply' ),\n\t\t\t'priority' => 0,\n\t\t\t'type' => 'outer',\n\t\t)\n\t);\n}", "title": "" }, { "docid": "9a93857bd79e1e4260d8f83c900c6319", "score": "0.54319096", "text": "public function H1H6() {\n $this->views->SetTitle('Theme testing headers and paragraphs')\n ->AddInclude(__DIR__ . '/h1h6.tpl.php', array(), 'primary');\n }", "title": "" }, { "docid": "95ef05dcf78068244d6ab2e952010f4b", "score": "0.542835", "text": "function printTemplateHeader($moduleName, $pageDescription) {\n global $footerText;\n \n // Set the global working prefix\n if (defined(ABSPREFIX)) {\n $prefix = ABSPREFIX;\n } else {\n $prefix = \".\";\n }\n \n $templateFile = \"$prefix/include/neoTemplate.html\";\n if ($filePointer = fopen($templateFile, 'r')) {\n while ($line = fgets($filePointer)) {\n // See if we print out the title\n if (ereg(\"!!title!!\", $line)) {\n print \"Neonet: $moduleName\";\n }\n // This is the banner text that is displayed in the page\n elseif(ereg(\"!!header!!\", $line)) {\n if ($pageDescription != NULL) {\n print \"$moduleName: $pageDescription\";\n } else {\n print \"$moduleName\";\n }\n }\n // Print out the menu for the module\n elseif(ereg(\"!!menu!!\", $line)) {\n $menuFile = \"$prefix/$moduleName/menu.html\";\n if (is_readable($menuFile)) {\n if (!($menuPointer = fopen(\"$menuFile\", 'r'))) {\n print \"Error; cannot open file\";\n }\n $menuText = fread($menuPointer, filesize($menuFile));\n print $menuText;\n fclose($menuPointer);\n } else {\n print \"No menu available\";\n }\n }\n // This is where the body of the document should go, so toss the rest\n // of the text into the $footerText variable, and make sure the calling\n // page echos that out.\n elseif(ereg(\"!!break!!\", $line)) {\n $footerText = \"\";\n while ($line = fgets($filePointer)) {\n $footerText .= $line;\n }\n break;\n } else {\n print \"$line\";\n }\n }\n fclose($filePointer);\n } else {\n print \"Error: Template '$templateFile' could not be opened for loading.<br>\";\n exit();\n }\n }", "title": "" }, { "docid": "19c500ce2a55f8c50e603dc20f289480", "score": "0.54282254", "text": "function get_header() {\n\t\t$header_items = array();\n\n\t\t// Add the abstract keyword\n\t\tif ( $this->node->isAbstract() ) {\n\t\t\t$header_items[] = array(\n\t\t\t\t'content' => esc_html( 'abstract' ),\n\t\t\t\t'style' => array(\n\t\t\t\t\t'code' => true,\n\t\t\t\t\t'classes' => array( 'renderer-class-abstract' ),\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\t$header_items[] = 'class';\n\t\t$header_items[] = array(\n\t\t\t'content' => $this->prefixed_name(),\n\t\t\t'style' => array(\n\t\t\t\t'bold' => true,\n\t\t\t\t'classes' => array( 'renderer-class-name' ),\n\t\t\t),\n\t\t);\n\n\t\t// Add any inheritance\n\t\tif ( ! empty( $this->node->extends ) ) {\n\t\t\t$header_items[] = 'extends';\n\t\t\t$header_items[] = array(\n\t\t\t\t'content' => esc_html( $this->node->extends->toString() ),\n\t\t\t\t'style' => array(\n\t\t\t\t\t'code' => true,\n\t\t\t\t\t'classes' => array( 'renderer-class-parentclass' ),\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn $header_items;\n\t}", "title": "" }, { "docid": "4b4c1cd333357762956ab88e5da8f7e3", "score": "0.5420891", "text": "function HTMLHeader()\n {\n?>\n\n <header class=\"section-header\">\n <h1>Redrock Tavern</h1>\n </header>\n\n<?php \n }", "title": "" }, { "docid": "f5a41a49cb77f6af70d171003415e1d7", "score": "0.5420224", "text": "protected function buildHeader() {\n return [\n 'title' => $this->t('Definition'),\n 'endpoint' => $this->t('Endpoint'),\n 'operations' => $this->t('Operations'),\n ];\n }", "title": "" }, { "docid": "ac73e664e1a1d3765e03ffc5e52d8af8", "score": "0.5417306", "text": "function genesisawesome_html5_header_open() {\n\t\n\techo '<header id=\"header\">';\n\tgenesis_structural_wrap( 'header' );\n\n}", "title": "" }, { "docid": "5f9cd5c66ad2a7c82f0bf996b5814bc0", "score": "0.5415039", "text": "function kleo_show_header() \n{\n\tget_template_part('page-parts/general-header-section');\n}", "title": "" }, { "docid": "d581e19adf1403a1981737e8645e6a4c", "score": "0.54149026", "text": "public function _replyToGetSectionHeaderOutput( $sSectionDescription, $aSection ) {\n \n return $this->oUtil->addAndApplyFilters(\n $this,\n array( 'section_head_' . $this->oProp->sClassName . '_' . $aSection['section_id'] ), // section_ + {extended class name} + _ {section id}\n $sSectionDescription\n ); \n \n }", "title": "" }, { "docid": "026dd2c98c2b5ea7b09cad00d62fd477", "score": "0.541104", "text": "public function Header() {\n $bMargin = $this->getBreakMargin();\n $auto_page_break = $this->AutoPageBreak;\n \n // Logo\n\t\t$image_file = PDF_HEADER_LOGO;\n\t\t$this->Image($image_file, 10, 10, 15, '', 'PNG', '', 'T', false, 300, '', false, false, 0, false, false, false);\n\t\n $this->SetAutoPageBreak(false, 0);\n $this->SetAutoPageBreak($auto_page_break, $bMargin);\n }", "title": "" }, { "docid": "d12e599ec849a539b2e733f49fe23a34", "score": "0.53952223", "text": "function Header() {\r\n $bMargin = $this->getBreakMargin();\r\n // get current auto-page-break mode\r\n $auto_page_break = $this->AutoPageBreak;\r\n // disable auto-page-break\r\n $this->SetAutoPageBreak(false, 0);\r\n // set bacground image\r\n $img_file = '../../config/templates/cmr.png';\r\n $this->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);\r\n // restore auto-page-break status\r\n $this->SetAutoPageBreak($auto_page_break, $bMargin);\r\n // set the starting point for the page content\r\n $this->setPageMark();\r\n }", "title": "" }, { "docid": "83885c06f3ed5677102973bf21911494", "score": "0.53848886", "text": "public function Header() {\n $ormargins = $this->getOriginalMargins();\n $headerfont = $this->getHeaderFont();\n $headerdata = $this->getHeaderData();\n\n if (($headerdata['logo']) AND ($headerdata['logo'] != K_BLANK_IMAGE)) {\n\n // START SUGARPDF\n $logo = K_PATH_CUSTOM_IMAGES.$headerdata['logo'];\n $imsize = @getimagesize($logo);\n if ($imsize === FALSE) {\n // encode spaces on filename\n $logo = str_replace(' ', '%20', $logo);\n $imsize = @getimagesize($logo);\n if ($imsize === FALSE) {\n $logo = K_PATH_IMAGES.$headerdata['logo'];\n }\n }\n // END SUGARPDF\n\n $this->Image($logo, $this->GetX(), $this->getHeaderMargin(), $headerdata['logo_width']);\n $imgy = $this->getImageRBY();\n } else {\n $imgy = $this->GetY();\n }\n $cell_height = round(($this->getCellHeightRatio() * $headerfont[2]) / $this->getScaleFactor(), 2);\n // set starting margin for text data cell\n if ($this->getRTL()) {\n $header_x = $ormargins['right'] + ($headerdata['logo_width'] * 1.1);\n } else {\n $header_x = $ormargins['left'] + ($headerdata['logo_width'] * 1.1);\n }\n $this->SetTextColor(0, 0, 0);\n // header title\n $this->SetFont($headerfont[0], 'B', $headerfont[2] + 1);\n $this->SetX($header_x);\n $this->Cell(0, $cell_height, $headerdata['title'], 0, 1, '', 0, '', 0);\n // header string\n $this->SetFont($headerfont[0], $headerfont[1], $headerfont[2]);\n $this->SetX($header_x);\n $this->MultiCell(0, $cell_height, $headerdata['string'], 0, '', 0, 1, '', '', true, 0, false);\n // print an ending header line\n $this->SetLineStyle(array('width' => 0.85 / $this->getScaleFactor(), 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));\n $this->SetY((2.835 / $this->getScaleFactor()) + max($imgy, $this->GetY()));\n if ($this->getRTL()) {\n $this->SetX($ormargins['right']);\n } else {\n $this->SetX($ormargins['left']);\n }\n $this->Cell(0, 0, '', 'T', 0, 'C');\n }", "title": "" }, { "docid": "d30af664d449183b8861a8ec7fc4d107", "score": "0.538474", "text": "function Header() {\n\t\t\n\t\t$this->SetTextColor(0,80,180);\n\t\t//Ancho del borde (1 mm)\n\t\t\n\t\t//Titulo\n\t\t\n\t\t//salto de linea\n\t\t$this->Ln(20);\n\n\t\t//Logo\n\t\t//Arial bold 15\n\t\t$this->SetFont('Arial','B',20);\n\t\t//Movernos a la derecha\n\t\t$this->Cell(70);\n\t\t//Titulo\n\t\t$this->Cell(60,10, 'REPORTE DE RESIDENCIAS: INGIENERIA TICs',0,0,'c');\n\t\t//salto de linea\n\t\t$this->Ln(17);\n\t}", "title": "" }, { "docid": "0bec8d61290576b63a3a08b6340ad6c4", "score": "0.5380814", "text": "protected function buildHeader() {\n\n $this->headers = new VTCore_Bootstrap_Grid_BsContainerFluid(array(\n 'id' => 'victheme-configuration-header',\n 'type' => 'div',\n 'attributes' => array(\n 'id' => 'victheme-configuration-header',\n 'class' => array(\n 'vtcore-configuration-header-skins',\n ),\n ),\n ));\n\n $this->headers\n\n // Alter point, you can use findChildren method with context id\n // to retrieve this row\n ->addChildren(new VTCore_Bootstrap_Grid_BsRow(array(\n 'id' => 'vtcore-configuration-header-row',\n )))\n ->lastChild()\n\n // Alter point, you can use findChildren method with context id\n // to retrieve this column\n ->addChildren(new VTCore_Bootstrap_Grid_BsColumn(array(\n 'id' => 'vtcore-configuration-header-column-one',\n 'grids' => array(\n 'columns' => array(\n 'mobile' => 12,\n 'tablet' => 12,\n 'small' => 12,\n 'large' => 6,\n )\n ),\n )))\n ->lastChild()\n ->addChildren(new VTCore_Fontawesome_faIcon(array(\n 'icon' => $this->headerIcon,\n 'shape' => 'circle',\n 'position' => 'pull-left',\n )))\n ->addChildren(new VTCore_Bootstrap_Element_BsHeader(array(\n 'text' => $this->headerText,\n )))\n ->getParent()\n\n\n // Alter point, you can use findChildren method with context id\n // to retrieve this column\n ->addChildren(new VTCore_Bootstrap_Grid_BsColumn(array(\n 'id' => 'vtcore-configuration-header-column-two',\n 'grids' => array(\n 'columns' => array(\n 'mobile' => 12,\n 'tablet' => 12,\n 'small' => 12,\n 'large' => 6,\n )\n ),\n )));\n\n return $this;\n }", "title": "" }, { "docid": "0399c9a9d6182af0696921867b99c3c7", "score": "0.537937", "text": "function Header()\n {\n $this->setY(5);\n //$this->SetFillColor($r, $b, $g);\n //$this->SetTextColor(0 , 0, 0);\n //$this->Cell(0,20, '', 0,1,'C', 1);\n //$this->Text(15,26,$this->xheadertext );\n \n \n $this->writeHTML($this->xheadertext, true, false, true, false, '');\n \n // Transformacion para la rotacion de el numero de orden y el contenedor de la muestra\n $this->StartTransform();\n $this->SetFont('freesans', '', 5);\n $this->Rotate(-90, 116, 120);\n //$tcpdf->Rect(39, 50, 40, 10, 'D');\n $this->Text(5, 30, 'Software de Administración Médica \"SAM\" V.1.1 ® - www.gatolocostudios.com ®');\n // Stop Transformation\n $this->StopTransform();\n \n // if ( $this->variable == 1 )\n // {\n // draw jpeg image x, y ancho, alto\n // $this->Image(WWW_ROOT.'/img/BORRADOR.png', 40, 60, 450, 250, '', '', '', true, 72);\n\n // restore full opacity\n $this->SetAlpha(0);\n // }\n \n }", "title": "" }, { "docid": "1e4d5f7e690f06b333908bb278b6fbb5", "score": "0.5374875", "text": "function create_docx_file($header,$header_2,$data,$path,$column_1_header_color,$column_2_header_color){\r\n\t\r\n\t //echo sizeof($header).\"/\".sizeof($path);\r\n\t \r\n\t //echo \"Debug 3<pre>\"; print_r ($column_1_header_color); echo \"</pre>\";\t\t\r\n\t\r\n\t $PHPWord = new PHPWord();\r\n\r\n $sectionStyle = array('orientation' => 'landscape', 'marginLeft'=>600, 'marginRight'=>600, 'marginTop'=>600, 'marginBottom'=>600, 'colsNum' => 2);\r\n $section = $PHPWord->createSection($sectionStyle);\r\n\r\n\t\t// Define table style arrays\r\n\t\t$styleTable = array('borderSize'=>6, 'borderColor'=>'006699', 'cellMargin'=>80, 'width'=>100);\r\n\r\n\t\t// Define font style for first row\r\n\t\t$fontStyle = array('bold'=>true, 'align'=>'center');\r\n\r\n\t\t// Add table style\r\n\t\t$PHPWord->addTableStyle('myOwnTableStyle', $styleTable);\r\n\r\n\t\t// Add table\r\n\t\t$table = $section->addTable('myOwnTableStyle');\r\n\r\n $styleCell2Row = array('bgColor'=>'ffff66');\r\n $styleCell3RowData = array('align'=>'center');\r\n $styleCellRemaining = array('bgColor'=>'0070c0');\r\n\r\n \r\n\t\t$i=0;\r\n\t\tfor($r = 1; $r <= sizeof($header); $r++) { // Loop through rows\r\n\t\t\t// Add row\r\n\t\t\t$table->addRow();\r\n\r\n\t\t\tfor($c = 1; $c <= 3; $c++) { // Loop through cells\r\n\t\t\t\t// Add Cell \r\n\t\t\t\tif($c == 1){\r\n\t\t\t\t\t$col_bg_1 = array('bgColor'=>substr($column_1_header_color[$i+1], 2));\r\n\t\t\t\t\tif($r <= 2)\r\n\t\t\t\t $table->addCell(500,$col_bg_1)->addText(\"$header[$i]\", $fontStyle); \r\n\t\t\t\t else\r\n\t\t\t\t $table->addCell(500,$col_bg_1)->addText(\"$header[$i]\"); \r\n\t\t\t\t}else if($c == 2){\r\n\t\t\t\t\t$col_bg_2 = array('bgColor'=>substr($column_2_header_color[$i+1], 2));\r\n\t\t\t\t\tif($r <= 2)\r\n\t\t\t\t $table->addCell(2000,$col_bg_2)->addText(\"$header_2[$i]\", $fontStyle); // Align center is not working so give Default space\r\n\t\t\t\t else\r\n\t\t\t\t $table->addCell(2000,$col_bg_2)->addText(\"$header_2[$i]\"); \r\n\t\t\t }else{\r\n\t\t\t\t \tif($r == 3){\r\n\t\t\t\t $table->addCell(13300)->addText(\" $data[$i]\",$styleCell3RowData); // Align center is not working so give Default space \t\r\n\t\t\t\t }else{\r\n\t\t\t\t\t $table->addCell(13300)->addText(\"$data[$i]\"); \t\t\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t \r\n\t\t\t} $i++; //echo \"<br />\";\t\r\n\t\t}\r\n \r\n $symbols = array(\"(\", \")\", \" : \", \"&\", \".\", \",\", \"«\", \";\", \"»\", \".\", \"!\", \"/\",\"‘\", \"\\\\\");\r\n $file_name_docx = $data[1].\" \".$data[2].\" \".$data[0];\r\n $file_name_docx = str_replace($symbols, \"\", $file_name_docx);\r\n $file_name_docx = str_replace(\" \", \"-\", $file_name_docx);\r\n $file_name_docx = str_replace(\"--\", \"-\", $file_name_docx);\r\n \r\n //echo \"Debug $file_name_docx\"; \r\n \r\n\t\t// Save File\r\n\t\t$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');\r\n\t\t$objWriter->save($path.$file_name_docx.\".docx\");\r\n\t\t \r\n\t\t return $file_name_docx.\".docx\";\r\n\t }", "title": "" }, { "docid": "baa15adc48f2d127829c2c6dc6b2f3a3", "score": "0.53746253", "text": "public function Header() {\n\t\t$ormargins = $this->getOriginalMargins();\n\t\t$headerfont = $this->getHeaderFont();\n\t\t$headerdata = $this->getHeaderData();\n\t\tif (($headerdata['logo']) AND ($headerdata['logo'] != K_BLANK_IMAGE)) {\n\t\t\t//$this->Image(K_PATH_IMAGES.$headerdata['logo'], $this->GetX(), $this->getHeaderMargin(), $headerdata['logo_width']);\n\t\t\t$imgy = $this->getImageRBY();\n\t\t} else {\n\t\t\t$imgy = 8+$this->GetY();\n\t\t}\n\t\t//error_log(\"img y is $imgy\");\n\t\t$cell_height = round(($this->getCellHeightRatio() * $headerfont[2]) / $this->getScaleFactor(), 2);\n\t\t//ernie:\n\t\t$myy = $imgy - $cell_height;\n\t\t// set starting margin for text data cell\n\t\tif ($this->getRTL()) {\n\t\t\t$header_x = $ormargins['right'] + ($headerdata['logo_width'] * 1.1);\n\t\t} else {\n\t\t\t$header_x = $ormargins['left'] + ($headerdata['logo_width'] * 1.1);\n\t\t}\n\t\t//ernie:\n\t\t$contwidth = ($this->GetPageWidth() - $ormargins['left'] - $ormargins['right'])/3;\n\t\t$ccell = $ormargins['left']+$contwidth;\n\t\t$rcell = $ormargins['left']+2*$contwidth;\n\t\t$this->SetTextColor(0, 0, 3);\n\t\t// header title\n\t\t$this->SetFont($headerfont[0], 'B', $headerfont[2] + 1);\n\t\t//$this->SetX($ccell);\n\t\n\t\t$this->SetY($myy);\n\t\t$this->SetX($header_x + $contwidth/3 );\n\t\t//ERNIE-start\n\t\t$this->SetFillColor(255,255,255);\n\t\t//$pdf->SetTextColor(0);\n\t\t//ERNIE-end\n\t\n\t\t$this->writeHTML($headerdata['string'],true,true);\n\t\n\t\t$this->SetLineStyle(array(\"width\" => 0.85 / $this->getScaleFactor(), \"cap\" => \"butt\", \"join\" => \"miter\", \"dash\" => 0, \"color\" => array(0, 0, 0)));\n\t\t$this->SetY(1 + $imgy);\n\t\tif ($this->getRTL()) {\n\t\t\t$this->SetX($ormargins['right']);\n\t\t} else {\n\t\t\t$this->SetX($ormargins['left']);\n\t\t}\n\t\t$this->Cell(0, 0, '', 'T', 0, 'C');\n\t}", "title": "" }, { "docid": "28a1a3d69433795a69aa7b8f4d0c65e6", "score": "0.53699356", "text": "function getDumpHeaderAndFooter() {\n\t\t\tglobal $moduleRootDir,$osType;\n\t\t\t$header = \"\";\n\t\t\t$footer = \"\";\n\t\t\tif ($osType == \"WINDOWS\") {\n\t\t\t\t$pathToXml = $moduleRootDir.'/WEB-INF/classes/propel/schema.xml';\n\t\t\t\t\n\t\t\t\t$xml = file_get_contents($pathToXml);\t\t\t\n\t\t\t\t\n\t\t\t\trequire_once(\"xml2ary.php\");\n\t\t\t\t$xml2ary = new Xml2ary();\n\t\t\t\t$array = $xml2ary->getArray($xml);\n\t\t\t\t$arrayTables = $array[\"database\"][\"_c\"][\"table\"];\n\t\t\t\t\n\t\t\t\t$tables = array();\t\t\t\t\n\t\t\t\t\n\t\t\t\tforeach ($arrayTables as $tableElement) {\n\t\t\t\t\t$tableName = $tableElement[\"_a\"][\"name\"];\n\t\t\t\t\tif (ereg(\"[A-Z]\",$tableName))\n\t\t\t\t\t\t$tables[] = $tableName;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$header = \"#Eliminacion de tablas con camelcase.\\n\";\n\t\t\t\t$footer = \"#Renombre de tablas con camelcase.\\n\";\n\t\n\t\t\t\tforeach ($tables as $table) {\n\t\t\t\t\t$header .= \"DROP TABLE \". $table .\";\\n\";\n\t\t\t\t\t$footer .= \"RENAME TABLE \". strtolower($table) . \" TO \" . $table .\";\\n\";\n\t\t\t\t}\t\t\t\n\t\n\t\t\t\t$header .= \"\\n\\n\";\n\t\t\t\t$footer .= \"\\n\\n\";\t\t\t\n\t\t\t}\n\t\t\treturn array(\"header\"=>$header, \"footer\"=>$footer);\n\t\t}", "title": "" }, { "docid": "0c6c1dd22c43ba96bffe635af7778482", "score": "0.536778", "text": "function Page_DataRendering(&$header) {\n $logo= ('<img src=\"phpimages/logo.jpg\" style=\"float:left;clear:left;\" \"/>');\n $Escudo= ('<img src=\"phpimages/escudo.jpg\" style=\"float:right;clear:right;\" \" />');\n $Leyenda = \"<br>\".\"DECLARACION JURADA DE INEXISTENCIA DE INCOMPATIBILIDADES ESTABLECIDAS POR LEY <br>\".\"UNIDAD DE RECURSOS HUMANOS <br>\".\"GESTION 2018\";\n //$tabla_funcionario =\"<br>\".\"PARTE I : DATOS DEL FUNCIONARIO <br>\" ;\n $tabla_funcionario ='<br>'.'<div class=\"caja\" style=\"page-break-after:always\">\" Parte I : DATOS DEL FUNCIONARIO </div>';\n $header = $Escudo.$logo.$Leyenda.$tabla_funcionario;\n//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n//echo $this->ExportDoc->Text;\n\n\t}", "title": "" }, { "docid": "a586de48ef00095c849a5c8ab33922fc", "score": "0.53651553", "text": "function Header()\n\t{\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','C');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(190,5,tipo_serv(),'0','C');\n\t\t\n\t\t$this->Fecha();\n\t//\t$this->TituloCampos();\n\t}", "title": "" }, { "docid": "1eaa1d9b38029de964cd071990ce891f", "score": "0.53620744", "text": "function Header()\n\t\t{\n\t\t\t$this->SetFont('Arial','B',10);\n\t\t\t$this->Cell(120,10, 'M&M PRODUCTOS MEDICOS Y FARMACEUTICOS E.I.R.L.',0,0,'I');\n\t\t\t$this->Ln(5);\n\t\t\t$this->Cell(50,10,\"AV PARRA 365 PJE BISHOP #5\",0,0,'L',0);\n\t\t\t$this->Ln(5);\n\t\t\t$this->Cell(50,10,\"RUC : 20370715107\",0,0,'L',0);\n\t\t\t$this->Ln(8); \n\t\t}", "title": "" }, { "docid": "1c13b53cebf377cc6cb6abad0ad25eae", "score": "0.5360278", "text": "private function template($section){\n\t\tif($this->isAdmin())\n\t\t\t$header = file_get_contents('Views/header.html');\n\t\telse if ($this->isUser())\n\t\t\t$header = file_get_contents('Views/headerEmployee.html');\n\t\t$footer = file_get_contents('Views/footer.html');\n\t\t$dicc = array('{user}' => $this->getUserName());\n\t $header = strtr($header, $dicc);\n\t \n\t\techo $header . $section . $footer;\n\t}", "title": "" }, { "docid": "b171847ff43c71aba9bea125af98c73a", "score": "0.5358687", "text": "function removeSectionHeader($pdf, $heightPrevSH) \r\n{\r\n\t// Set number of lines of output that a section header takes up\r\n\t$shLines = 6;\r\n\t// Get output for the current page\r\n\t$pageOutput = $pdf->pages[$pdf->PageNo()];\r\n\t// Split into separate lines\r\n\t$pageOutputLines = explode(\"\\n\", $pageOutput);\r\n\tif (count($pageOutputLines) > $shLines) {\r\n\t\t// Remove last X lines\r\n\t\t$pageOutputLines = array_slice($pageOutputLines, 0, $shLines*-1);\r\n\t\t// Re-add the last line as blank line\r\n\t\t$pageOutputLines[] = '';\r\n\t\t// Add these changes to the $pdf object\r\n\t\t$pdf->pages[$pdf->PageNo()] = $pageOutput = implode(\"\\n\", $pageOutputLines);\r\n\t\t// Reset Y position\r\n\t\tif ($pdf->GetY() > $heightPrevSH) {\r\n\t\t\t$pdf->SetY($pdf->GetY() - $heightPrevSH);\r\n\t\t}\r\n\t}\r\n\t// Return object\r\n\treturn $pdf;\r\n}", "title": "" }, { "docid": "b10a95a0a91fa42ba6fcbc5f57e2342e", "score": "0.53528416", "text": "function magpaper_header_start() {\n\t\t$options = magpaper_get_theme_options();\n\t\t?>\n\t\t<header id=\"masthead\" class=\"site-header\" role=\"banner\">\n\t\t<?php\n\t}", "title": "" }, { "docid": "de889fecfd7bfc58d40c635aa7aa7742", "score": "0.5351163", "text": "function PrintHeader($title,$school){\n$school = !isset($school)?GetSchool():$school;\n$logo = _CONFIGDIR_.$school['logo'];\n$abbr = $school['Abbr'];\n$nm = $school['Name'];\n$shtabbr = $school['ShortAddr'];\n$header = <<<sss\n<div id=\"TitleDiv\">\n <div id=\"InnerDiv\">\n <img src=\"{$logo}\" name=\"SchoolImg\" alt=\"{$abbr}\" />\n <div id=\"TitleBox\">\n <div id=\"SchoolName\">{$nm}</div>\n <div id=\"SchoolAddress\">{$shtabbr}</div>\n <div id=\"payTitle\">{$title}</div>\n </div>\n </div>\n</div>\nsss;\necho $header;\n}", "title": "" }, { "docid": "dab2c6d9cf8db1ca271da11a5a5fa004", "score": "0.53466636", "text": "public function getPDFHeader(){\n\t\t\t\t$h=$this->pageCount==1?$this->config['coverHeaderHeight']:'60px';\n\t\t\t\t$pTpBm=$this->pageCount==1?$this->config['coverHeaderPadding']:'10px';\n\t\t\t\treturn '<div class=\"page-header '.($this->pageCount==1?'page-cover':'').'\" style=\"height:'.$h.'px;background-color:'.$this->config['headerBG'].';\"><div style=\"padding-top:'.$pTpBm.'px;padding-bottom:'.$pTpBm.'px;padding-right:'.$this->config['pageLeftRightPadding'].'px;height:'.($h-$pTpBm*2).'px\" class=\"header-img\"><img src=\"'.$this->config['headerImg'].'\" /></div></div>'.($this->pageCount==1?'<div id=\"reportTitle\" style=\"line-height:'.$this->reportTitleHeight.'px\">'.$this->config['reportTitle'].'</div>':'');\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "cb11e01c0a335c2575db51150e256d7d", "score": "0.53458154", "text": "public static function print_app_header() {\n global $CFG, $OUTPUT;\n if (self::uses_eduvidual()) {\n require_once($CFG->dirroot . '/blocks/eduvidual/block_eduvidual.php');\n block_eduvidual::print_app_header();\n } else {\n echo $OUTPUT->header();\n }\n }", "title": "" }, { "docid": "464d34c07e23149295e73a0b3c7dd17f", "score": "0.5342964", "text": "function tableheader_open($colspan = 1, $align = \"left\", $rowspan = 1){\n $this->doc .= '<table:table-cell office:value-type=\"string\" table:style-name=\"tableheader\" ';\n //$this->doc .= ' table:style-name=\"tablealign'.$align.'\"';\n if ( $colspan > 1 ) {\n $this->doc .= ' table:number-columns-spanned=\"'.$colspan.'\"';\n }\n if ( $rowspan > 1 ) {\n $this->doc .= ' table:number-rows-spanned=\"'.$rowspan.'\"';\n }\n $this->doc .= '>';\n $this->p_open('Table_20_Heading');\n }", "title": "" }, { "docid": "b2c432eca322e993b33b97350b2f5cad", "score": "0.5342084", "text": "private function makeTOC_NCX() {\n\n\t\t$this->toc_ncx = <<<EOT\n<?xml version=\"1.0\"?>\n\n<!DOCTYPE ncx PUBLIC \"-//NISO//DTD ncx 2005-1//EN\" \"http://www.daisy.org/z3986/2005/ncx-2005-1.dtd\">\n\n<ncx xmlns=\"http://www.daisy.org/z3986/2005/ncx/\" version=\"2005-1\">\n\n<head>\n</head>\n\n<docTitle>\n<text>KF8</text>\n</docTitle>\n\n<navMap>\n\nEOT;\n\n\t\t//add Table of Contents\n\t\t$this->toc_ncx .= self::makeNavi(1, \"Table Of Contents\", \"table_of_contents.html#TOC\");\n\t\t$this->toc_ncx .= \"\\n\\n\";\n\n\t\t//add Introduction\n\t\t$this->toc_ncx .= self::makeNavi(2, $this->introduction_title, \"introduction.html#introduction\");\n\t\t$this->toc_ncx .= \"\\n\\n\";\n\n\t\t//add Chapters\n\t\t$cnt = 1;\n\t\twhile (TRUE) {\n\t\t\tif ($cnt === ($this->number_of_chapters + 1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$temp_html = 'chapter' . sprintf(\"%03d\", $cnt) . '.html#C' . strval($cnt);\n\t\t\t$this->toc_ncx .= self::makeNavi($cnt + 2, $this->chapter_titles[$cnt - 1], $temp_html);\n\t\t\t$this->toc_ncx .= \"\\n\\n\";\n\n\t\t\t$cnt += 1;\n\t\t}\n\n\t\t$this->toc_ncx .= \"\\n\\n</navMap>\\n</ncx>\";\n\t}", "title": "" }, { "docid": "0b9e306520c078b573368e24aaa03b53", "score": "0.5334244", "text": "function html_header($type, $title){\n doctype($type);\n html_beg();\n head_beg();\n title($title);\n head_end();\n}", "title": "" }, { "docid": "5830e4fc763ec292de6f5521fd606244", "score": "0.5333232", "text": "function template_preprocess_views_data_export_xml_header(&$vars) {\n $vars['root_node'] = _views_data_export_xml_tag_clean($vars['options']['root_node']);\n}", "title": "" }, { "docid": "53964a365bb200449f445fdfc95004a3", "score": "0.5318834", "text": "function getHeader() {\n return \"<?xml version='1.0' encoding='UTF-8'?>\";\n }", "title": "" }, { "docid": "a7dd9bf4ae96b47a298047551177f5b5", "score": "0.5318612", "text": "private function writeHeader()\n {\n $this->write(DataIO::magic());\n $this->datumWriter->writeData(DataIO::metadataSchema(), $this->metadata, $this->encoder);\n $this->write($this->syncMarker);\n }", "title": "" }, { "docid": "70da00b9dbbb509c5e061489d3b11a95", "score": "0.5317455", "text": "private function buildReportHeaderDetail(){\n $activeSheet = $this->phpExcel->getActiveSheet();\n $activeSheet->setCellValue(\"A1\", $this->getDocumentName());\n }", "title": "" }, { "docid": "313401fed1f93eaaea6268c47d7ba94c", "score": "0.5309232", "text": "function Header() {\n\t\t$this->SetFont ( 'Arial', 'B', 15 );\n\t\t//Framed title\n\t\t$this->Cell ( 30, 10, 'Reporte de Meriendas', 0, 0, 'L' );\n\t\t\n\t\t$this->Image ( 'system/application/libraries/FPDF/logo.png', 150, 4, 45 );\n\t\t\n\t\t$this->Ln ();\n\t\t//Line break\n\t\t$this->SetFont ( 'Arial', 'BU', 8 );\n\t\t\n\t\t$this->Cell ( 60, 10, 'Trabajador', '', 0, 'I' );\n\t\t$this->Cell ( 25, 10, 'NoIdentidad', '', 0, 'I' );\n\t\t$this->Cell ( 20, 10, 'Fecha pasaje', '', 0, 'I' );\n\t\t$this->Cell ( 30, 10, 'Provincia origen', '', 0, 'I' );\n\t\t$this->Cell ( 30, 10, 'Provincia destino', '', 0, 'I' );\n\t\t$this->Cell ( 20, 10, 'Transporte', '', 0, 'I' );\n\t\t\n\t\t$this->Ln ( 7 );\n\t}", "title": "" }, { "docid": "7bd53c2b271cd17c8ea681e699fc617f", "score": "0.53016984", "text": "public function IAM_section_info() {\n\t\tprint '';\n\t}", "title": "" }, { "docid": "729ad9e2bdc663c3883afda2e120ab63", "score": "0.530015", "text": "function section_start($section, $content = '')\n {\n return \\System\\Section::start($section, $content);\n }", "title": "" }, { "docid": "31e58902aceb809b1f96448ff4b662df", "score": "0.5295832", "text": "public function HEADERS () {\r\n \r\n }", "title": "" }, { "docid": "fbdbdd44658d0cd38a6ecc876c139788", "score": "0.5293678", "text": "public function renderSectionHeader(string $sectionName): void\n {\n if ($this->isSilent()) {\n return;\n }\n\n fwrite($this->file, '[' . $sectionName . ']' . PHP_EOL);\n }", "title": "" }, { "docid": "9dddc2a3b7b150ddf4b2e9a151e5c691", "score": "0.52936375", "text": "function create_docx_file($header,$data,$path,$key){\r\n\t\r\n\t //echo \"<pre>\";print_r ($data); echo \"</pre>\"; exit;\r\n\t //echo \"<pre>\";print_r ($header); echo \"</pre>\"; exit;\r\n\t\r\n\t $color_array = array('ff66cc','ff66cc','ff66cc','ff66cc','ff66cc','ff66cc','ff66cc','66ff99','3399ff','3399ff','3399ff');\r\n\t \r\n\t $PHPWord = new PHPWord();\r\n // document style orientation and margin \r\n $sectionStyle = array('orientation' => 'landscape', 'marginLeft'=>600, 'marginRight'=>600, 'marginTop'=>600, 'marginBottom'=>600, 'colsNum' => 2);\r\n $section = $PHPWord->createSection($sectionStyle);\r\n\r\n\t\t// Define table style arrays\r\n\t\t$styleTable = array('borderSize'=>6, 'borderColor'=>'006699', 'cellMargin'=>80, 'width'=>100);\r\n\r\n\t\t// Define font style for first row\r\n\t\t$fontStyle = array('bold'=>true, 'align'=>'center');\r\n\t\t\r\n\t\t$paragraphStyle = array('lineHeight' => '1.0','spaceAfter'=>'0');\r\n\r\n\t\t// Add table style\r\n\t\t$PHPWord->addTableStyle('myOwnTableStyle', $styleTable);\r\n\r\n\t\t// Add table\r\n\t\t$table = $section->addTable('myOwnTableStyle');\r\n\r\n $styleCell2Row = array('bgColor'=>'ffff66');\r\n $styleCell3RowData = array('align'=>'center');\r\n $styleCellRemaining = array('bgColor'=>'0070c0');\r\n\r\n \r\n $i=0;\r\n\t\tforeach($header as $key=>$hd) { // Loop through rows\r\n\t\t\t$table->addRow();\r\n for($c = 1; $c <= 3; $c++) { // Loop through cells\r\n\t\t\t\tif($c == 1){\r\n\t\t\t\t\t$col_bg_1 = array('bgColor'=>$color_array[$i]);\r\n\t\t\t\t\t$table->addCell(500,$col_bg_1)->addText(($i), $fontStyle); \r\n\t\t\t\t}else if($c == 2){\r\n\t\t\t\t $col_bg_2 = array('bgColor'=>$color_array[$i]);\r\n\t\t\t\t //echo $hd;\r\n\t\t\t\t\t$table->addCell(2000,$col_bg_2)->addText(write_to_docx($hd), $fontStyle); \r\n\t\t\t }else{\r\n\t\t\t\t\t$cell = $table->addCell(13300);\r\n\t\t\t\t\tif($i == 10){\r\n\t\t\t\t\t\t$tdata_i = explode(\"\\n\",$data[$i]);\r\n\t\t\t\t\t foreach($tdata_i as $td_i){\r\n\t\t\t\t\t\t\t if((strstr(rtrim($td_i), \"-\")))\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t$td_i = write_to_docx(str_replace(\"-\",\"#-\",$td_i)); \r\n\t\t\t\t\t\t\t else\r\n\t\t\t\t\t\t\t\t$td_i = write_to_docx(\"<strong>\".$td_i.\"</strong>\");\r\n\t\t\t\t\t\t\t $td_i = str_replace(\"<strong></strong>\",\"\",$td_i);\t\r\n\t\t\t\t\t\t\t $cell->addText($td_i,null,$paragraphStyle);\r\n\t\t\t\t\t\t }\t\r\n\t\t\t\t\t}elseif($i == 9){\r\n\t\t\t\t\t\t $tdata = preg_replace(\"/-+\\n/\",\"\",$data[$i]); // replace --- \\n of line one from string\r\n\t\t\t\t\t $tdata = explode(\"\\n\",$tdata);\r\n\t\t\t\t\t foreach($tdata as $td){\r\n\t\t\t\t\t\t\t if((strstr(rtrim($td), \" \")))\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t$td = write_to_docx(str_replace(\" \",\"#- \",$td)); \r\n\t\t\t\t\t\t\t else\r\n\t\t\t\t\t\t\t\t$td = write_to_docx(\"<strong>\".$td.\"</strong>\");\r\n\t\t\t\t\t\t\t $td = str_replace(\"<strong></strong>\",\"\",$td);\t\r\n\t\t\t\t\t\t\t $cell->addText($td,null,$paragraphStyle);\r\n\t\t\t\t\t\t }\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t if($i == 1 || $i == 6)\r\n\t\t\t\t\t\t\t$cell->addLink(write_to_docx($data[$i]), null, 'NLink');\r\n\t\t\t\t\t else\t\r\n\t\t\t\t\t\t\t$cell->addText(write_to_docx($data[$i])); \t\t\t\t\t\t\r\n\t\t\t\t } \r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t\t$i++; \r\n\t }\r\n\r\n //exit;\r\n $file_name_docx = $string = preg_replace('/\\s+/', '', $data[0]);\r\n \r\n\r\n\t\t// Save File\r\n\t\t$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');\r\n\t\t$objWriter->save($path.$file_name_docx.\".docx\");\r\n\t\t//exit; \r\n\t\t return $file_name_docx.\".docx\";\r\n\t }", "title": "" }, { "docid": "6de08e52cee2b5261bf278c110f523a2", "score": "0.52893037", "text": "private function header_style_section() {\n\t\t$this->start_controls_section(\n\t\t\t'section_header_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Header', 'themeisle-companion' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'header_padding',\n\t\t\t[\n\t\t\t\t'label' => __( 'Header Padding', 'themeisle-companion' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .obfx-title-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'plan_title_color',\n\t\t\t[\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'label' => __( 'Title Color', 'themeisle-companion' ),\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => Scheme_Color::get_type(),\n\t\t\t\t\t'value' => Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#464959',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .obfx-pricing-table-title' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'plan_title_typography',\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .obfx-pricing-table-title',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'plan_subtitle_color',\n\t\t\t[\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'label' => __( 'Subtitle Color', 'themeisle-companion' ),\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => Scheme_Color::get_type(),\n\t\t\t\t\t'value' => Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#60647d',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .obfx-pricing-table-subtitle' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'plan_subtitle_typography',\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .obfx-pricing-table-subtitle',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'heading_section_bg',\n\t\t\t\t'label' => __( 'Section Background', 'themeisle-companion' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .obfx-title-wrapper',\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section(); // end section_header_style\n\t}", "title": "" }, { "docid": "06caeff098c149012401f529e9f0c8bc", "score": "0.52796596", "text": "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nProject Management Concepts\nMAINHEADING;\n }", "title": "" }, { "docid": "c7ec32fb46c8952558d5f4b4703b5ca1", "score": "0.5275634", "text": "function shoestrap_title_section( $header = true, $element = 'h1', $link = false, $class = 'entry-title' ) {\n\t$content = $header ? '<header>' : '';\n\t$content .= '<title>' . get_the_title() . '</title>';\n\t$content .= '<' . $element . ' class=\"' . $class . '\">';\n\t$content .= $link ? '<a href=\"' . get_permalink() . '\">' : '';\n\t$content .= is_singular() ? shoestrap_title() : apply_filters( 'shoestrap_title', get_the_title() );\n\t$content .= $link ? '</a>' : '';\n\t$content .= '</' . $element . '>';\n\t$content .= $header ? '</header>' : '';\n\n\techo apply_filters( 'shoestrap_title_section', $content );\n}", "title": "" }, { "docid": "cb1a78e9ed1351e22784072a575f3082", "score": "0.52739584", "text": "abstract protected function WriteHeader();", "title": "" }, { "docid": "86bd3db5c90c61b56d412e4de5894f4b", "score": "0.52734584", "text": "public function renderSection() {\n\t\t\n\t}", "title": "" }, { "docid": "0b956be651a3c6279f4e43d9e80ad07a", "score": "0.52719367", "text": "function formatHeader(&$tpl, $a_obj_id,$a_option)\n\t{\n\t\tglobal $lng, $ilias;\n\t\t\n\t\t$tpl->setCurrentBlock(\"icon\");\n\t\t$tpl->setVariable(\"ICON_IMAGE\" , ilUtil::getImagePath(\"icon_lm_s.png\",false, \"output\", $this->offlineMode()));\n\t\t$tpl->setVariable(\"TXT_ALT_IMG\", $lng->txt(\"obj_\".$this->lm_obj->getType()));\n\t\t$tpl->parseCurrentBlock();\n\n\t\t$tpl->setCurrentBlock(\"link\");\n\t\t$tpl->setVariable(\"TITLE\", ilUtil::shortenText($this->lm_obj->getTitle(), $this->textwidth, true));\n\t\t$tpl->setVariable(\"LINK_TARGET\", $this->buildLinkTarget(\"\",\"\"));\n\t\t$tpl->setVariable(\"TARGET\", \" target=\\\"\".$this->frame_target.\"\\\"\");\n\t\t$tpl->parseCurrentBlock();\n\t\t\n\t\t$tpl->touchBlock(\"element\");\n\t}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "664dc1f9de57c8143a5f7444f3e5627e", "score": "0.0", "text": "public function index()\n {\n $groups = Group::paginate(6);\n if(session('success_message')){\n Alert::success('Success!', session('success_message'));\n };\n if(session('update_message')){\n Alert::success('Updated!', session('update_message'));\n };\n return view('group.index',compact(['groups']));\n }", "title": "" } ]
[ { "docid": "edfccc7675941363f15cdfa73ea568e7", "score": "0.79342735", "text": "public function listAction() {\n\t\t$resourceRecords = $this->repository->findAll();\n\t\t$this->view->assign('content', array(EmberDataUtility::uncamelizeClassName($this->modelName) => $resourceRecords));\n\t}", "title": "" }, { "docid": "fa0267b7eb5f572a15c8a1270ccd60d0", "score": "0.7552338", "text": "public function index() {\n\t\t\n\t\t$this->_listing();\n\t\t$this->set('listing', true);\n\t\t\n\t}", "title": "" }, { "docid": "3119bf4433b0eb6e1e5f5d3aefff8f7c", "score": "0.74976325", "text": "public function listAction()\n {\n header('Content-Type: application/json');\n echo json_encode(self::list($this->table, $_GET, $_GET), JSON_PRETTY_PRINT);\n }", "title": "" }, { "docid": "9af3930a12c4c5b442756b7bbd305ff2", "score": "0.74330676", "text": "public function index()\n {\n $resources = Resource::paginate(env('ROW_PER_PAGE', 10));\n \n return view('resource.index', compact('resources'));\n }", "title": "" }, { "docid": "89a4eb97a6ee51605109f42462c1473d", "score": "0.734927", "text": "public function list() {\n \t\treturn show();\n \t}", "title": "" }, { "docid": "7d3d5ea98fecbcdaa728156240d52501", "score": "0.73178124", "text": "public function index()\n\t{\n\t\t$resources = $this->getResourceRepository()->findAllPaginated()->toArray();\n\n return $this->apiResponse->success($resources['data'], 200, array_except($resources, 'data'));\n\t}", "title": "" }, { "docid": "f1e5379dd522597ce7ba432e2ed2c9f6", "score": "0.72631985", "text": "public function index()\n {\n $resources = QueryBuilder::for(Resource::class)\n ->allowedFilters('name')\n ->defaultSort('name')\n ->allowedSorts(['name', 'description'])\n ->paginate(15);\n\n return view('resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "db140407717335f4b2c74a2a874b1895", "score": "0.7210918", "text": "public function listAction()\n {\n return view(\n 'item.list',\n [\n 'items' => $this -> itemService -> findAll()\n ]\n );\n }", "title": "" }, { "docid": "d1b35503fce76775fd4a174b9c6da027", "score": "0.7168305", "text": "public function index()\n {\n return ListsResource::collection(RecipeList::all());\n }", "title": "" }, { "docid": "0e190fa7a00dd0393b6c0e0a91b52874", "score": "0.71333236", "text": "public function listingAction()\n\t{\n\t\t// Render\n\t\t$this->_helper->content->setNoRender ()->setEnabled ();\n\t}", "title": "" }, { "docid": "9ee2301bbe5ddd99bc48b5c1f13682d6", "score": "0.7125178", "text": "public static function list()\n {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include(__DIR__ . '/../views/books/list.php');\n }", "title": "" }, { "docid": "1a06e6a067265c84505e916acc162f51", "score": "0.71211576", "text": "public function index()\n {\n if ($this->paginate) {\n $data = $this->repository->paginate();\n $data = [\n 'data' => $this->resource::collection($data->items()),\n 'per_page' => $data->perPage(),\n 'total' => $data->total(),\n ];\n } else {\n $data = $this->resource::collection($this->repository->all());\n }\n\n return Responder::respond($data);\n }", "title": "" }, { "docid": "b7a2e5efe030ad0454c4edd967fd4922", "score": "0.7078434", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Listing::find(),\n 'pagination' => $this->module->config['pagination'],\n ]);\n $output = $this->render('list', ['listDataProvider' => $dataProvider]);\n return $output;\n }", "title": "" }, { "docid": "3e3e55306112133885a7b05b73618ea6", "score": "0.70725244", "text": "public function index()\n {\n $resources = QueryBuilder::for(Resource::class)\n ->allowedFilters(['name', 'is_facility', 'categories.id', 'groups.id'])\n ->defaultSort('name')\n ->allowedSorts(['name', 'description', 'is_facility'])\n ->paginate(15);\n\n session()->flash('index-referer-url', request()->fullUrl());\n\n return view('resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "b17b9fb097e089099f7de5f26809b8cb", "score": "0.7014123", "text": "public function index()\n {\n $listings = Listing::all();\n\n return ListingResource::collection($listings);\n }", "title": "" }, { "docid": "a856150f3c67d1457d548f91c75da7da", "score": "0.70038116", "text": "public function index()\n {\n // redirect($this->_url(\"all\"));\n $this->_create_list();\n $this->data['page'] = 'all';\n\n $this->_display();\n }", "title": "" }, { "docid": "8fd9118c1a1310924ffd107785f594c8", "score": "0.6988677", "text": "public function index()\n {\n return ItemListResource::collection(ItemList::where('created_by', Auth::user()->id)->orderBy('order')->get());\n }", "title": "" }, { "docid": "b3c2545a4d088004de8ba6c9a86879be", "score": "0.6960206", "text": "public function showList()\r\n\t{\r\n\t\t$this->items = $this->itemRepo->getAll();\r\n\t}", "title": "" }, { "docid": "acacf315b0baff673a36b2ca7e24d31e", "score": "0.69519275", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'asc')->get();\n return view('resources.index', compact('resources'));\n }", "title": "" }, { "docid": "c2135d6cafa652d036ae3308bd00e68c", "score": "0.69507635", "text": "public function listAction() {\r\n\t\t// Setup DataSource\r\n\t\t$this->_setupDataSource();\r\n\t\t// Setup Grid\r\n\t\t$this->_setupGrid();\r\n\t\t// Build Grid\r\n\t\t$this->_grid->buildTable();\r\n\t\t\r\n\t\t// Setup View Script\r\n\t\t$this->_helper->viewRenderer($this->_listScript);\r\n\t\t$this->view->grid = $this->_grid;\r\n\t\t$this->view->addLink = array('action' => 'add');\r\n\t\t$this->view->moduleName = $this->_moduleName;\r\n\t}", "title": "" }, { "docid": "65fbe1cd513c1906884a8cf3b31fcaf5", "score": "0.69496506", "text": "public function list ()\n {\n $this->jsonResponse($this->model->findAll());\n }", "title": "" }, { "docid": "7982715eae8987f6e04898265db32a84", "score": "0.6934365", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst($this->crud->entity_name_plural);\n\n // get all entries if AJAX is not enabled\n if (! $this->data['crud']->ajaxTable()) {\n $this->data['entries'] = $this->amcRepository->all();\n }\n \n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n }", "title": "" }, { "docid": "f9880ebe5ebd32a272f9c257eefeb7d5", "score": "0.69080645", "text": "public function index()\n {\n $query = Resource::orderBy(\"name\");\n $paginate = new PaginateService($query);\n\n $this->data->resources = $paginate->data();\n $this->data->paging = $paginate->paging();\n\n if(Request::ajax())\n {\n return $this->json();\n }\n return $this->view();\n }", "title": "" }, { "docid": "1965f3d513e903b06cfd331567a24845", "score": "0.6895095", "text": "public function index()\n\t{\n\t\t$resources = $this->resource->get();\n\t\treturn \\Response::json($resources);\n\t}", "title": "" }, { "docid": "787a91f5c43faa5eaa05845dd5ea7560", "score": "0.68846714", "text": "public function index()\n {\n $resources = Resource::all();\n\n return view('admin.resources.index', ['resources' => $resources]);\n }", "title": "" }, { "docid": "4b7e3c233f60e23a7dbb5f593395b76c", "score": "0.6871577", "text": "public function actionIndex() {\r\n\t\t$this -> toPage('list');\r\n\t}", "title": "" }, { "docid": "d1036519a5edd84e78f3b5c9d42b2f9c", "score": "0.6861071", "text": "public function index() {\n\t\treturn \\Response::view('git/listing');\n\t}", "title": "" }, { "docid": "00a08afebd209b80aaef61ff37d6a46b", "score": "0.6853615", "text": "public function index()\n {\n //get records\n $records = Record::paginate(15);\n\n //return collection of records as a resource\n return RecordResource::collection($records);\n\n }", "title": "" }, { "docid": "7df5491fbb664c953c7e5dff4627f1cc", "score": "0.68314284", "text": "public function index()\n {\n $resources = QueryBuilder::for(Resource::class)\n ->allowedFilters(['name', 'is_facility', 'categories.id', 'groups.id'])\n ->defaultSort('name')\n ->allowedSorts(['name', 'description'])\n ->paginate(15);\n\n return new ResourceCollection($resources);\n }", "title": "" }, { "docid": "ac58f83d1b859c8f0c9d002437cb5caa", "score": "0.6806778", "text": "public function index()\n {\n $resources = Resource::get();\n return view('resources.index', ['resources'=>$resources]);\n }", "title": "" }, { "docid": "abaacf9f1fa05faf4fd840689138551b", "score": "0.68013006", "text": "public function index()\n {\n $user = Auth::user();\n\n $recipes = Recipe::where('user_id', $user->id)\n ->orWhere('is_public', true)\n ->paginate(15);\n\n return new CompactRecipeListResource($recipes);\n }", "title": "" }, { "docid": "81a151b5e0337d96155cd41441de4eb3", "score": "0.67928314", "text": "public function index()\n {\n\n $items = Items::paginate(12);\n return ItemsResource::collection($items);\n }", "title": "" }, { "docid": "998c769364dc4c666498430759971c31", "score": "0.67716223", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new UserRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page', 0);\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['user/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "e33620f9e0602f70ef6cab4f1bdb2610", "score": "0.67710763", "text": "public function index()\n\t{\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "c2cb369270f6fcd0fe01f7c05c39893d", "score": "0.6771036", "text": "public function index()\n {\n \t$staff = Staff::paginate(50);\n \treturn StaffResources::collection($staff);\n }", "title": "" }, { "docid": "6d38830f96381c6d3f6705200be0b0ce", "score": "0.6769593", "text": "public function Index() {\n\t\t$list = call_user_func(array($this->model(), 'find'));\n $this->render($this->model().'/index', compact('list'));\n\t}", "title": "" }, { "docid": "928b1775fb4733a239dae4530b7ef807", "score": "0.6768928", "text": "public function listAction()\n {\n $bookList= new Library_Model_ListBooks();\n //bekome a array of books\n $books = $bookList->listBooks($this->_getParam('page', 1));\n \n $this->view->books = $books;\n //apply the paginator to our view\n if(!$this->_request->isXmlHttpRequest()){\n //problem with getPaginator\n $this->view->paginator = $bookList->getPaginator();\n } else {\n $this->view->currentPage = $bookList->getPaginator()->getCurrentPageNumber();\n }\n }", "title": "" }, { "docid": "226f4470a6f32302edcfa713291233ee", "score": "0.67669094", "text": "public function listAction()\n {\n $this->view->persons = PersonCatalog::getInstance()->getActives();\n $this->setTitle('List the Person');\n }", "title": "" }, { "docid": "587f352425474ce109a45e636208d7d7", "score": "0.67461246", "text": "public function list()\n {\n return response()->json($this->listAction->run());\n }", "title": "" }, { "docid": "e350e7299f802c9cf32b414dc945ac34", "score": "0.6743188", "text": "public function listAction()\n {\n try {\n $connection = GeneralUtility::makeInstance(\\Mahu\\SearchAlgolia\\Connection\\Algolia\\Connection::class, $this->configManager);\n $this->client = $connection->getClient();\n $remoteIndexList = $this->getRemoteIndexList();\n $localIndexList = $this->getLocalIndexList();\n\n $this->logService = GeneralUtility::makeInstance(Log::class);\n $logContent = $this->logService->getLogContent();\n } catch (AlgoliaConnectionException $e) {\n $this->view->assignMultiple(['algoliaException' => $e->getMessage()]);\n } catch (\\RuntimeException $e) {\n $this->view->assignMultiple(['logException' => $e->getMessage()]);\n }\n\n $this->view->assignMultiple(\n [\n 'remoteIndexList' => $remoteIndexList,\n 'localIndexList' => $localIndexList,\n 'logContent' => $logContent\n ]\n );\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6742193", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "1fe41c52dd75a6340ba0e7415a6acc25", "score": "0.67415196", "text": "public function index()\n {\n return TodoResource::collection(Todo::paginate(10));\n }", "title": "" }, { "docid": "f5b2a3a3d01e82cedd6efa95f22e9cec", "score": "0.67290956", "text": "public function index()\n {\n return ContactListResource::collection(Contact::all()->paginate(25));\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "106d7df8332c0494258eddc388469da7", "score": "0.6723481", "text": "public function index()\n {\n //Get employees\n $employees = employees::paginate(15);\n\n //return the collection of employees as a resource\n return employeeResource::collection($employees);\n\n\n }", "title": "" }, { "docid": "b3dfa38d778d7b973135f3c279d4eed4", "score": "0.6716988", "text": "public function index()\n\t{\n $model = $this->model;\n $resources = $model::all();\n\t\treturn Response::api(['resources' => $resources]);\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "a8928e5ccc1f4e236f4a00c06b0a7026", "score": "0.6702476", "text": "public function index()\n\t{ \n // Carga el modelo de 'ResourceTypes' para sacar el nombre del tipo de recurso\n $this->loadModel('ResourceTypes'); \n $this->set('resource_types', $this->ResourceTypes->find('all'));\n \n // Consulta Join de recursos con usuarios, saca los recursos asociados al admin\n $query = $this->Resources->find('all');\n $query->innerJoinWith('Users', function ($q)\n {\n return $q->where(['Users.id' => $this->Auth->User('id')]);\n }\n );\n \n // Pagina la tabla de recursos\n $this->set('resources', $this->paginate($query));\n\t}", "title": "" }, { "docid": "b754e829a1afcf5e226b9dd05f87f2e6", "score": "0.66960615", "text": "public function index()\n {\n $this->setResources();\n\n $modelResource = new $this->Model;\n\n $filter = Input::get('filter');\n\n $perPage = Input::get('per_page');\n\n $sort = Input::get('sort');\n\n if ($perPage) $modelResource->setPerPage($perPage);\n\n $filterBy = $modelResource->getFilterBy();\n\n $sortBy = $modelResource->getSortBy() ?: $filterBy;\n\n $sort = $sort ? explode('|', $sort) : [$sortBy, 'asc'];\n\n if (!$filter) {\n return new $this->ResourceCollection(\n $modelResource::orderBy($sort[0], $sort[1])->paginate()\n );\n }\n\n $filter = DB::table('companies')->where('razao_social', 'like', \"%$filter%\")->first()->id;\n\n return new $this->ResourceCollection(\n $modelResource::where(\"$filterBy\", \"$filter\")\n ->orderBy($sort[0], $sort[1])\n ->paginate()\n );\n }", "title": "" }, { "docid": "a10ee9720f3882f9615dc6bd39bf66bb", "score": "0.6695142", "text": "public function index()\n {\n\n return OfferResource::collection(Offer::paginate(10));\n }", "title": "" }, { "docid": "7e86107f54f4f68d3d2ea122badfb72e", "score": "0.6693794", "text": "public function list() {\n include \"ROOT_PATH\" . \"../../../resource/views/user/list.php\";\n }", "title": "" }, { "docid": "d2a02cceaa38bd17888a8559051bf99d", "score": "0.669236", "text": "public function listAction(){\n // Current PO to show.\n $currentSupplier = $this->request->getQuery('supplier', 'int');\n // Pass the general parameters to the view.\n $this->view->setVar('title', 'Supplier #' . $currentSupplier);\n $this->view->setVar('subtitle', 'dat dat dat');\n // @todo::: Define controls.\n $this->view->setVar('show_submit', TRUE);\n $this->view->setVar('submit_text', 'Submit');\n $this->view->setVar('show_cancel', TRUE);\n $this->view->setVar('cancel_text', \"Cancel\");\n $this->view->setVar('main_form_id', '');\n $this->view->setVar('exit_to', $this->url->getBaseUri() . 'po/search');\n }", "title": "" }, { "docid": "a08b224cecded9fbbd98e9690a25697b", "score": "0.66899556", "text": "public function index()\n {\n return TodoResource::collection(Todo::orderBy('id', 'desc')->paginate());\n }", "title": "" }, { "docid": "3d5e84310d037c96dff096d60146afc3", "score": "0.6676491", "text": "public function index()\n {\n $storie = Stories::paginate(15);\n\n return StoriesResource::collection($storie);\n }", "title": "" }, { "docid": "c47e31fef88d7be6059d14e6bf3e7d3b", "score": "0.66763234", "text": "public function actionIndex()\n {\n $searchModel = new SearchListing();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "a0f9ca57ab7f1a43209181dea82c6087", "score": "0.6660814", "text": "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // data\n $data = $dataProvider->getData();\n\n // related data\n $relatedData = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersData = array();\n if (isset($_GET[$this->_model])) {\n $filtersData[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersData[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersData)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $data, $relatedData, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "title": "" }, { "docid": "d80bbdb874c0bc70baa157e026fd4ce0", "score": "0.66533667", "text": "public function listAction()\n {\n $resource = $this->Request()->getParam('resource');\n $limit = $this->Request()->getParam('limit', 25);\n $offset = ($this->Request()->getParam('page', 1) - 1) * $limit;\n\n /** @var \\Shopware\\Components\\MultiEdit\\Resource\\ResourceInterface $resource */\n $resource = $this->container->get('multi_edit.' . $resource);\n $result = $resource->listBackups($offset, $limit);\n $result['success'] = true;\n\n $this->View()->assign($result);\n }", "title": "" }, { "docid": "7b3f65d2cb517845002348a3fb676f3b", "score": "0.6651287", "text": "public function listAction()\n {\n\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "title": "" }, { "docid": "201d2cfcdf8daa4dcc0daec6874168cf", "score": "0.66492194", "text": "function listAction()\n {\n $this->_model->rec = $this->_db->getRec();\n $content = $this->_model->render(STUD_LIST_FILE);\n $this->_templete->content = $content;\n $output = $this->_templete->render(LAYOUT_FILE);\n $this->_fc->setBody($output);\n }", "title": "" }, { "docid": "eebcaa5492eb207e4f7b0028a584708b", "score": "0.6643269", "text": "public function index()\n {\n //\n return Resource::all();\n }", "title": "" }, { "docid": "7a84ee612e4a05b429aaef9c4ed361d6", "score": "0.6639994", "text": "public function ListAll()\n\t{\n\t\t\t\t\n\t\t$data['persons'] = $this->file->load();\n\n\t\t$data['token'] = $this->token->getNewToken();\n\n\t\t$template = View::make('../../templates/list',$data);\n\n\t\treturn $this->response->setContent($template->render());\n\t}", "title": "" }, { "docid": "972eaa033ae88bc016ccf77517a3335b", "score": "0.6634485", "text": "public function index() {\n\t\t\t$datas=DAO::getAll($this->model);\n\t\t\techo $this->responseFormatter->get($datas);\n\t}", "title": "" }, { "docid": "6a16c824a30ff8ee825dac92aef0bc07", "score": "0.66332036", "text": "function overview()\n {\n $data['files'] = $this->files->get_all();\n $this->view('content/files_list', $data);\n }", "title": "" }, { "docid": "cb88c28d2d3774b001750c6aab518891", "score": "0.6621152", "text": "public function list(): Response\n {\n // Récupération du Repository\n $repository = $this->getDoctrine()\n ->getRepository(Article::class);\n // Récupération de tous les articles\n $articles = $repository->findAll();\n // Renvoi des articles à la vue\n return $this->render('index.html.twig', [\n 'articles' => $articles\n ]);\n }", "title": "" }, { "docid": "b5a2dd04865acc0337c46650153e1a4d", "score": "0.66207755", "text": "public function actionList()\n {\n $sliders = Slider::find()\n ->withSlides()\n ->all();\n\n return $this->render('list', [\n 'sliders' => $sliders\n ]);\n }", "title": "" }, { "docid": "f7e69a4504c6eeedcb7bf68ebf86b14d", "score": "0.661989", "text": "public function index()\n {\n return ProviderResource::collection(Provider::paginate());\n }", "title": "" }, { "docid": "64b9fc22016f4b9a739c18a02478cdd0", "score": "0.66172355", "text": "public static function index()\r\n {\r\n $pagination = array(\r\n 'page' => 1,\r\n 'show' => 20\r\n );\r\n\r\n if (isset($_GET['page'])) {\r\n $pagination['page'] = intval($_GET['page']);\r\n }\r\n if (isset($_GET['show'])) {\r\n $pagination['show'] = intval($_GET['show']);\r\n }\r\n\r\n $params = array(\r\n 'action_list' => array(),\r\n 'app_list' => array()\r\n );\r\n $settings = array(\r\n 'action_list' => array(),\r\n 'app_list' => array(\r\n 'index' => 'id',\r\n 'flat' => true\r\n )\r\n );\r\n\r\n $params['action_list'] = array_merge($params['action_list'], $pagination);\r\n\r\n $list_action = api::query('action/list', $params['action_list'], $settings['action_list']);\r\n $list_app = api::query('app/list', $params['app_list'], $settings['app_list']);\r\n\r\n view::load('action/index', array(\r\n 'list' => $list_action,\r\n 'list_app' => $list_app\r\n ));\r\n }", "title": "" }, { "docid": "4b73ff248c275a450b6b06ae7c7d865d", "score": "0.6613253", "text": "public function index()\n {\n $question = QuestionResource::collection(Question::latest()->orderBy('created_at', 'desc')->get());\n if(!$question){\n\n return $this->errorResponse('Unable to display data', Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n return $this->successResponse('Sucessfully retrieved', $question);\n }", "title": "" }, { "docid": "15031eb36d46b41edbdfa84a0c42bb01", "score": "0.6612227", "text": "public function index() {\r\r\n $this->render('list', array(\r\r\n 'model' => SWarehousesQuery::create()->orderByName()->find()\r\r\n ));\r\r\n }", "title": "" }, { "docid": "35692a0ab217d82c0f91016d22be4979", "score": "0.6611719", "text": "public function indexAction()\n {\n\n $query = $this->getEntityManager()->getRepository($this->repository)->findAllQuery();\n\n\n $paginator = $this->get('knp_paginator');\n $pagination = $paginator->paginate($query, $this->get('request')->query->get('page', 1), 10);\n\n return $this->render($this->path_template.':index.html.twig', array('pagination' => $pagination, 'route_prefix'=>$this->route_prefix));\n }", "title": "" }, { "docid": "35f42e407939ea25f4a1c4444087457d", "score": "0.66101444", "text": "public function listAction()\n {\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('AnimalBundle:Animal');\n\n $listAnimals = $repository->findAll();\n\n return $this->render('AnimalBundle:AnimalView:list.html.twig',\n array('listAnimals' => $listAnimals));\n }", "title": "" }, { "docid": "41589d7dcb96a7716421880c470b44b4", "score": "0.66068393", "text": "public function listar() {\n\t\t// Necessita estar logado\n\t\t$this->areaRestrita();\n\t\t// Carrega e Cria objeto LivroDAO e pega o livro através do ID solicitado.\n\t\t$this->carregar->model( 'LivroDAO' );\n\t\t$livroDAO = new LivroDAO();\n\t\t$livros = $livroDAO->getAll();\n\t\t// Configura dados para views\n\t\t$dados['titulo'] = 'Listagem de Livros';\n\t\t$dados['livros'] = $livros;\n\t\t// Carrega views e passa os dados\n\t\t$this->carregar->view( 'header', $dados );\n\t\t$this->carregar->view( 'livro-listagem', $dados );\n\t\t$this->carregar->view( 'footer', $dados );\n\t}", "title": "" }, { "docid": "6c7146b6de1d2af3d9e2d73c479e7aed", "score": "0.6595321", "text": "public function showList(){\n $data = $this->parent->getModel('students')->select(\"select * from students\");\n $this->getView('welcome', $data);\n }", "title": "" }, { "docid": "49a8b829d62fb46df0f6fe939a00450a", "score": "0.6590174", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\tif($page < 1) $page = 1;\n\t\t$perpage = $this->perpage;\n\t\t$search = $this->getInput(array('status', 'name'));\n\t\t$params = array();\n\t\tif ($search['name']) $params['name'] = array('LIKE',$search['name']);\n\t\tif ($search['status']) $params['status'] = $search['status'] - 1;\n\t\t\n\t\tlist($total, $apps) = Resource_Service_Apps::getList($page, $perpage,$params);\n\t\t$this->assign('total', $total);\n\t\t$this->assign('search', $search);\n\t\t$this->assign('apps', $apps);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\n\t\t\n\t}", "title": "" }, { "docid": "f1f43cdbf27fc281ff80e5815bb8570c", "score": "0.658782", "text": "public function index()\n {\n //\n $albums = Album::paginate();\n return AlbumIndexResource::collection($albums);\n }", "title": "" }, { "docid": "5c9e2a1b72736e4dcd1233a696308ec8", "score": "0.6582557", "text": "public function index()\n {\n $records = Record::paginate(10);\n return $this->response->paginator($records,new RecordTransformer());\n }", "title": "" }, { "docid": "d97fb91a2aee3ffda67b936f3ec1530c", "score": "0.65746504", "text": "public function listAction() {\n\t\ttry{\t\t\t\n\t\t\t// Code\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}", "title": "" }, { "docid": "246c2fdf450c470dd098e3882419854d", "score": "0.6574552", "text": "public function index()\n {\n $accounts = Accounts::all()->sortBy('account_id');\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "ec0e4aa9e49eb0795b7e6a8be1b41989", "score": "0.6574522", "text": "public function index()\n {\n $articles = Article::all()->paginate();\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "218a3bcc6c3ba48283149f8614d45562", "score": "0.65740526", "text": "public function index() {\n\t\t$this->get ();\n\t}", "title": "" }, { "docid": "52d4724f47f90e2c76c949609866ae4f", "score": "0.6569384", "text": "public function index()\n {\n $activities = Activity::paginate(10);\n\n return ActivityResource::collection($activities);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "e128a7f6c946e062e77ee7d1989bf5d8", "score": "0.65632993", "text": "public function index()\n {\n $books = BookModel::readlist();\n\n View::render('books', [\n 'books' => $books,\n 'h1' => 'Gelezen boeken'\n ]);\n }", "title": "" }, { "docid": "fc610d852bef476f1af745c4c2af61e5", "score": "0.65593004", "text": "public function actionList() {\n\t\tif (Yii::$app->user->isGuest)\n\t\t\treturn $this->goHome();\n\n\t\t$this->view->title = 'Parkings';\n\n\t\ttry {\n\t\t\t$parkingService = $this->getService('Parking');\n\n\t\t\t$filter = $parkingService->getAmountOfParkings();\n\n\t\t\t$lists = $parkingService->getExtendedParkingsWithPagination();\n\n\t\t\treturn $this->render('list', array_merge($lists, $filter));\n\t\t} catch (Exception $e) {\n\t\t\tdie('You have reached an error');\n\t\t}\n\t}", "title": "" }, { "docid": "c6aa0bf17a52ccba8cef81895f7d4743", "score": "0.6558353", "text": "public function listAction()\n {\n $items = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('dabioRestBundle:Item')\n ->findAll();\n\n return new JsonResponse(\n (new EntityFormatter())->itemsArrayFormat($items)\n );\n }", "title": "" }, { "docid": "8054960a74546fc23b5d2f35f62311f9", "score": "0.655775", "text": "public function index()\n {\n\n $data = array(\n 'objects' => $this->campus_dao->findAll(),\n 'title' => 'Campus',\n 'heading' => 'List'\n );\n $this->load->view('/campus/list_campus.html.php', $data);\n }", "title": "" }, { "docid": "028d46f6e03fe91c0522d5be2a68c84a", "score": "0.65464103", "text": "public function index()\n {\n /** @var TodoListFilter $filter */\n $filter = app(TodoListFilter::class);\n /** @var Builder $filterQuery */\n $filterQuery = TodoList::filtered($filter);\n $todoLists = $filterQuery->get();\n return TodoListResource::collection($todoLists);\n }", "title": "" }, { "docid": "cd869da4373ca1c5aacd86ca9e044733", "score": "0.65443367", "text": "public function index() {\n\t\t$items = Item::orderby('id', 'desc')->get();\n\t\treturn view('back.item.itemList', compact('items'));\n\t}", "title": "" }, { "docid": "6ab14cbe951cf99431f26e856993aeb2", "score": "0.65421754", "text": "public function listAction()\n {\n $id = $this->params()->fromRoute('id');\n $result = [];\n if($id != null)\n {\n //$result = [$this->getEntryMapper()->find($id)];\n $result = [$this->entryService->findById($id)];\n }\n else \n {\n //$result = $this->getEntryMapper()->findAll();\n $result = $this->entryService->getList();\n\n }\n\n\n return new JsonModel($result);\n }", "title": "" }, { "docid": "55d08c8376aee349e27945fa819f675a", "score": "0.6540213", "text": "public function index()\n {\n $skills = $this->paginate($this->Skills);\n\n $this->set(compact('skills'));\n $this->set('_serialize', ['skills']);\n }", "title": "" }, { "docid": "bed8333589debc932ee4e761c485f848", "score": "0.6539858", "text": "public function index()\n {\n $menus = Menu::paginate(5);\n\n return MenuResource::collection($menus);\n }", "title": "" }, { "docid": "bc7e32d2dc7868c5cd4ab0e5ac368f4f", "score": "0.65352106", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:Stage:list.html.twig');\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65288365", "text": "public function list()\n {\n }", "title": "" }, { "docid": "2624e2ced80d3c035b447f1814374386", "score": "0.65278465", "text": "public function indexAction()\n {\n $booksWithPagination = Book::getBooks();\n $books = $booksWithPagination[0];\n $pagination = $booksWithPagination[1];\n View::renderTemplate('Admin/Books/index.html.twig', [\n 'books' => $books,\n 'pagination' => $pagination,\n ]);\n }", "title": "" }, { "docid": "643a311a5374346f79ec6c6c8a6268ed", "score": "0.6525733", "text": "public function index()\n {\n $items = Item::all();\n return response([ 'items' => ItemResource::collection( $items ), 'message' => 'Retrieved successfully.'], 200);\n }", "title": "" }, { "docid": "e6ed7387b2f7ef94c4ddb847772440e7", "score": "0.652384", "text": "public function index()\n {\n $listings = Listing::with('users')->latest()->paginate(10);\n\n return view('listing.index', compact('listings'));\n }", "title": "" }, { "docid": "c233c1a42dce20a9ec5ced0ce2fbcab1", "score": "0.6521962", "text": "public function index()\n {\n // Get Companies\n $companies = Company::with('account')->orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of companies as a resource\n return CompanyResource::collection($companies);\n }", "title": "" }, { "docid": "c7fd0eccaead0fa95ba4acb733bc6a7b", "score": "0.6514799", "text": "public function index()\n\t\n\t{\t\n\t\t\n\t\t$data['lists'] = $this->mdl_visitor->get_all();\n\t\t$this->template->set('title', 'Visitor List');\n\t\t$this->template->load('template', 'contents', 'list', $data);\n\t}", "title": "" }, { "docid": "afe78dff3214bed74d61a58d722b860d", "score": "0.65146184", "text": "public function index()\n {\n $collections = Collection::all();\n return view(\"list.index\",compact(\"collections\"));\n }", "title": "" } ]
039c8cf4b58aa045e0e4ebd0b6368c26
Test load the same execution instance twice
[ { "docid": "92cb7c14fe07f7f1dbfbd6a64329bf9f", "score": "0.73649406", "text": "public function testLoadTheSameExistingInstanceTwice()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $this->engine->setRepository($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Set test data to load the sequential process\n $this->prepareSequentialProcess($bpmnRepository);\n\n //Load the execution instance twice\n $instance1 = $this->engine->loadExecutionInstance('executionInstanceId', $bpmnRepository);\n $instance2 = $this->engine->loadExecutionInstance('executionInstanceId', $bpmnRepository);\n\n //Assertion: Both variables point to the same instance\n $this->assertEquals($instance1, $instance2);\n }", "title": "" } ]
[ { "docid": "049d8c010078d57e0a4eb44b44fb9160", "score": "0.63904995", "text": "public function testLoadExecutionInstanceWithOneToken()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $this->engine->setRepository($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Set test data to load the sequential process\n $this->prepareSequentialProcess($bpmnRepository);\n\n //Load the execution instance\n $instance = $this->engine->loadExecutionInstance('executionInstanceId', $bpmnRepository);\n\n //Get References by id\n $secondActivity = $bpmnRepository->getScriptTask('second');\n\n //Completes the second activity\n $token = $secondActivity->getTokens($instance)->item(0);\n $secondActivity->complete($token);\n $this->engine->runToNextState();\n\n //Assertion: Second activity was completed and closed, then the process has ended.\n $this->assertEvents([\n ActivityInterface::EVENT_ACTIVITY_COMPLETED,\n ActivityInterface::EVENT_ACTIVITY_CLOSED,\n EndEventInterface::EVENT_THROW_TOKEN_ARRIVES,\n EndEventInterface::EVENT_THROW_TOKEN_CONSUMED,\n EventInterface::EVENT_EVENT_TRIGGERED,\n ProcessInterface::EVENT_PROCESS_INSTANCE_COMPLETED,\n ]);\n }", "title": "" }, { "docid": "87a4151b6dae21d5c4ef1e5f44fe6127", "score": "0.6226867", "text": "public function testLoadExecutionInstanceWithMultipleTokens()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $this->engine->setRepository($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Set test data to load the sequential process\n $this->prepareParallelProcess($bpmnRepository);\n\n //Load the execution instance\n $instance = $this->engine->loadExecutionInstance('otherExecutionInstanceId', $bpmnRepository);\n\n //Get References by id\n $secondActivity = $bpmnRepository->getScriptTask('task2');\n $thirdActivity = $bpmnRepository->getScriptTask('task3');\n\n //Completes the second activity\n $token = $secondActivity->getTokens($instance)->item(0);\n $secondActivity->complete($token);\n $this->engine->runToNextState();\n\n //Completes the third activity\n $token = $thirdActivity->getTokens($instance)->item(0);\n $thirdActivity->complete($token);\n $this->engine->runToNextState();\n\n //Assertion: Second and third activity are completed and closed, the gateway is activate, and the process ends.\n $this->assertEvents([\n ActivityInterface::EVENT_ACTIVITY_COMPLETED,\n ActivityInterface::EVENT_ACTIVITY_CLOSED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_ARRIVES,\n ActivityInterface::EVENT_ACTIVITY_COMPLETED,\n ActivityInterface::EVENT_ACTIVITY_CLOSED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_ARRIVES,\n GatewayInterface::EVENT_GATEWAY_ACTIVATED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_CONSUMED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_CONSUMED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_PASSED,\n EndEventInterface::EVENT_THROW_TOKEN_ARRIVES,\n EndEventInterface::EVENT_THROW_TOKEN_CONSUMED,\n EventInterface::EVENT_EVENT_TRIGGERED,\n ProcessInterface::EVENT_PROCESS_INSTANCE_COMPLETED,\n ]);\n }", "title": "" }, { "docid": "0b1d99b228f7d14fcb959c0ec6609ff4", "score": "0.6038857", "text": "public function testExecute() {\n \n }", "title": "" }, { "docid": "aaa7a1fc0226840db46b843722e5dd46", "score": "0.60093343", "text": "public function testLoadExecutionInstanceWithMultipleTokensStates()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $this->engine->setRepository($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Set test data to load the sequential process\n $this->prepareParallelProcessWithActivityCompleted($bpmnRepository);\n\n //Load the execution instance\n $instance = $this->engine->loadExecutionInstance('otherExecutionInstanceId', $bpmnRepository);\n\n //Get References by id\n $secondActivity = $bpmnRepository->getScriptTask('task2');\n $thirdActivity = $bpmnRepository->getScriptTask('task3');\n\n //Completes the third activity\n $token = $thirdActivity->getTokens($instance)->item(0);\n $thirdActivity->complete($token);\n $this->engine->runToNextState();\n\n //Assertion: Second activity is closed and the third activity are completed, then closed, the join gateway is activiate, and finally the process is completed.\n $this->assertEvents([\n ActivityInterface::EVENT_ACTIVITY_CLOSED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_ARRIVES,\n ActivityInterface::EVENT_ACTIVITY_COMPLETED,\n ActivityInterface::EVENT_ACTIVITY_CLOSED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_ARRIVES,\n GatewayInterface::EVENT_GATEWAY_ACTIVATED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_CONSUMED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_CONSUMED,\n GatewayInterface::EVENT_GATEWAY_TOKEN_PASSED,\n EndEventInterface::EVENT_THROW_TOKEN_ARRIVES,\n EndEventInterface::EVENT_THROW_TOKEN_CONSUMED,\n EventInterface::EVENT_EVENT_TRIGGERED,\n ProcessInterface::EVENT_PROCESS_INSTANCE_COMPLETED,\n ]);\n }", "title": "" }, { "docid": "2a7effa868146c43518f40f854e1912c", "score": "0.5857169", "text": "public function testRunEquals(): void\n {\n $lib = new XMultiton();\n $inst1 = $lib->lookup(['storage_key' => [__DIR__, '..', 'data'], 'storage_target' => 'mem']);\n $this->assertEquals($inst1, $lib->lookup(['storage_key' => [__DIR__, '..', 'data'], 'storage_target' => 'mem']));\n $this->assertNotEquals($inst1, $lib->lookup(['storage_key' => [__DIR__, '..', 'data'], 'storage_target' => 'volume']));\n }", "title": "" }, { "docid": "8a0b2d902ce4ec25c1ef1ddf093fa975", "score": "0.58071345", "text": "public function testLoadExecutionInstanceWithMultipleTokensFallingState()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Set test data to load the sequential process\n $this->prepareParallelProcessWithException($bpmnRepository);\n\n //Load the execution instance\n $instance = $this->engine->loadExecutionInstance('otherExecutionInstanceId', $bpmnRepository);\n\n //Get References by id\n $thirdActivity = $bpmnRepository->getActivity('task3');\n\n //Assertion: The third activity is in falling state\n $token = $thirdActivity->getTokens($instance)->item(0);\n $this->assertEquals(ActivityInterface::TOKEN_STATE_FAILING, $token->getStatus());\n }", "title": "" }, { "docid": "03596bf84440ea7a936d4ad155ec8a20", "score": "0.58058524", "text": "function test()\n {\n $result = $this->_execTest();\n $this->_setResult($result);\n\n }", "title": "" }, { "docid": "774189d8cfb86f35a638b2fed698ffe9", "score": "0.58049476", "text": "public function testLoadNonExistingInstance()\n {\n //Load a BpmnFile Repository\n $bpmnRepository = new BpmnDocument();\n $bpmnRepository->setEngine($this->engine);\n $bpmnRepository->setFactory($this->repository);\n $bpmnRepository->load(__DIR__ . '/files/LoadTokens.bpmn');\n\n //Load the execution instance\n $instance = $this->engine->loadExecutionInstance('nonExistingInstance', $bpmnRepository);\n\n //Assertion: The returned value must be null\n $this->assertNull($instance);\n }", "title": "" }, { "docid": "758546694fc07978abf6e5d11b4a0fa3", "score": "0.5796621", "text": "public function testInstance()\n\t{\n\t\t//TODO: Implement\n\t}", "title": "" }, { "docid": "a9e7f91ed781c3df84792a951ad01c52", "score": "0.57836384", "text": "public function testLoad()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "9b058edff1dd3956b05d121c97414186", "score": "0.5736514", "text": "public function runBare(): void\n {\n $instancePath = Environment::getCurrentScript();\n $testbase = new Testbase();\n $container = $testbase->setUpBasicTypo3Bootstrap($instancePath);\n $extbaseContainer = GeneralUtility::getContainer()->get(ExtbaseContainer::class);\n\n $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class, $container, $extbaseContainer);\n\n parent::runBare();\n }", "title": "" }, { "docid": "0c5d1c8c1f7a39a3e4a8c0c81416c186", "score": "0.5729594", "text": "public function configFactoryLoadTwoCallsNewInstances(UnitTester $I)\n {\n $I->wantToTest('Config\\ConfigFactory - load() - two calls new instances');\n\n $factory = new ConfigFactory();\n\n $configFile1 = dataDir('assets/config/config.php');\n $config = $factory->load($configFile1);\n\n $expected = \"/phalcon/\";\n $actual = $config->get('phalcon')->baseUri;\n $I->assertSame($expected, $actual);\n\n $configFile2 = dataDir('assets/config/config-2.php');\n $config2 = $factory->load($configFile2);\n\n $expected = \"/phalcon4/\";\n $actual = $config2->get('phalcon')->baseUri;\n $I->assertSame($expected, $actual);\n }", "title": "" }, { "docid": "37954e8432c04fccff56b99a78510a26", "score": "0.5710696", "text": "function testSharedInstance() {\r\n Flight::register('reg4', 'User');\r\n\r\n $user1 = Flight::reg4();\r\n $user2 = Flight::reg4();\r\n $user3 = Flight::reg4(false);\r\n\r\n $this->assertTrue($user1 === $user2);\r\n $this->assertTrue($user1 !== $user3);\r\n }", "title": "" }, { "docid": "7b1cf953012780a429f1fa3d80c0d0f4", "score": "0.56779224", "text": "public function testExecute()\n\t{\n\t\t$testData = array();\n\n\t\t$closure = function (Module $module, AssetHelper $asset, $foo = null, $bar = null) use (&$testData)\n\t\t{\n\t\t\tif (!$module->inited())\n\t\t\t{\n\t\t\t\t$testData['init'][] = true;\n\n\t\t\t\t$asset->addJS('init.js');\n\t\t\t}\n\n\t\t\tif (!$module->stateInited())\n\t\t\t{\n\t\t\t\t$testData['state'][] = $foo . ' ' . $bar;\n\n\t\t\t\t$asset->internalJS($foo . ' ' . $bar);\n\t\t\t}\n\t\t};\n\n\t\t$this->instance->setHandler($closure);\n\n\t\t$asset = $this->getMock('Windwalker\\Helper\\AssetHelper', array('addJs', 'internalJS'));\n\n\t\t$asset->expects($this->at(0))\n\t\t\t->method('addJs')\n\t\t\t->with('init.js');\n\n\t\t$asset->expects($this->at(1))\n\t\t\t->method('internalJS')\n\t\t\t->with(' ');\n\n\t\t$asset->expects($this->at(2))\n\t\t\t->method('internalJS')\n\t\t\t->with('Arnold ');\n\n\t\t$asset->expects($this->at(3))\n\t\t\t->method('internalJS')\n\t\t\t->with('Arnold T-800');\n\n\t\t// Before execute\n\t\t$this->assertArrayNotHasKey('init', $testData);\n\t\t$this->assertArrayNotHasKey('state', $testData);\n\n\t\t// First execute\n\t\t$this->instance->execute($asset, array());\n\n\t\t$this->assertEquals(array(true), $testData['init']);\n\t\t$this->assertCount(1, $testData['init']);\n\n\t\t$this->assertEquals(array(' '), $testData['state']);\n\t\t$this->assertCount(1, $testData['state']);\n\n\t\t// Do not init again\n\t\t$this->instance->execute($asset, array());\n\n\t\t$this->assertEquals(array(' '), $testData['state']);\n\t\t$this->assertCount(1, $testData['state']);\n\n\t\t// State with one argument\n\t\t$this->instance->execute($asset, array('Arnold'));\n\n\t\t$this->assertEquals(array(' ', 'Arnold '), $testData['state']);\n\t\t$this->assertCount(2, $testData['state']);\n\n\t\t// State with one argument, second executed\n\t\t$this->instance->execute($asset, array('Arnold'));\n\n\t\t$this->assertEquals(array(' ', 'Arnold '), $testData['state']);\n\t\t$this->assertCount(2, $testData['state']);\n\n\t\t// State with two arguments\n\t\t$this->instance->execute($asset, array('Arnold', 'T-800'));\n\n\t\t$this->assertEquals(array(' ', 'Arnold ', 'Arnold T-800'), $testData['state']);\n\t\t$this->assertCount(3, $testData['state']);\n\n\t\t// State with two arguments, second executed\n\t\t$this->instance->execute($asset, array('Arnold', 'T-800'));\n\n\t\t$this->assertEquals(array(' ', 'Arnold ', 'Arnold T-800'), $testData['state']);\n\t\t$this->assertCount(3, $testData['state']);\n\t}", "title": "" }, { "docid": "9969a4c75fb08bc0de8027b94a71ff29", "score": "0.56474227", "text": "public function startTest() {}", "title": "" }, { "docid": "0eed2340e405899489d3f4727ff61011", "score": "0.5602433", "text": "public function testRun()\n\t{\n\t\t// Get a mocked engine, make him return 0 enabled transitions.\n\t\t$engine = $this->getMock('PNEngine', array('refresh', 'pause', 'run'));\n\n\t\t$engine->expects($this->once())\n\t\t\t->method('refresh')\n\t\t\t->will($this->returnValue(array()));\n\n\t\t// Expects the pause method to be called.\n\t\t$engine->expects($this->once())\n\t\t\t->method('pause');\n\n\t\t$engine->expects($this->once())\n\t\t\t->method('run');\n\n\t\t// Inject the mocked engine.\n\t\tTestReflection::setValue($this->object, 'engine', $engine);\n\n\t\t// Run the execution.\n\t\t$this->object->run();\n\n\t\t// Now create a mocked engine executing a net with 2 enabled transitions (returning true).\n\t\t// Create the transitions.\n\t\t$transition1 = $this->getMock('PNTransition');\n\t\t$transition1->expects($this->once())\n\t\t\t->method('execute')\n\t\t\t->will($this->returnValue(true));\n\n\t\t$transition2 = $this->getMock('PNTransition');\n\t\t$transition2->expects($this->once())\n\t\t\t->method('execute')\n\t\t\t->will($this->returnValue(true));\n\n\t\t// Create the mocked engine.\n\t\t$engine = $this->getMock('PNEngine', array('refresh', 'run'));\n\n\t\t// Expect him to return the two transitions.\n\t\t$engine->expects($this->once())\n\t\t\t->method('refresh')\n\t\t\t->will($this->returnValue(array($transition1, $transition2)));\n\n\t\t$engine->expects($this->once())\n\t\t\t->method('run');\n\n\t\t// Inject the engine.\n\t\tTestReflection::setValue($this->object, 'engine', $engine);\n\n\t\t// Run the execution.\n\t\t$this->object->run();\n\n\t\t// Now create a mocked engine executing a net with 2 enabled transitions with the second returning false.\n\t\t// Create the transitions.\n\t\t$transition1 = $this->getMock('PNTransition');\n\t\t$transition1->expects($this->once())\n\t\t\t->method('execute')\n\t\t\t->will($this->returnValue(true));\n\n\t\t$transition2 = $this->getMock('PNTransition');\n\t\t$transition2->expects($this->once())\n\t\t\t->method('execute')\n\t\t\t->will($this->returnValue(false));\n\n\t\t// Create the mocked engine.\n\t\t$engine = $this->getMock('PNEngine', array('refresh', 'end', 'run'));\n\n\t\t// Expect the method refresh to return the two transitions.\n\t\t$engine->expects($this->once())\n\t\t\t->method('refresh')\n\t\t\t->will($this->returnValue(array($transition1, $transition2)));\n\n\t\t// Expect the 'end' method to be called.\n\t\t$engine->expects($this->once())\n\t\t\t->method('end');\n\n\t\t$engine->expects($this->once())\n\t\t\t->method('run');\n\n\t\t// Inject the engine.\n\t\tTestReflection::setValue($this->object, 'engine', $engine);\n\n\t\t// Run the execution.\n\t\t$this->object->run();\n\t}", "title": "" }, { "docid": "ce3912adfb940d4ba71ad3a5e568801c", "score": "0.55854857", "text": "public function runTestMode(): void\n {\n $this->init();\n }", "title": "" }, { "docid": "02236d2637d1e9dc0f702df7361d0b3c", "score": "0.5555293", "text": "public function testInitCreateNewLazyLoaderOnEachCall()\n {\n $this->assertNotSame($this->decorator->init(), $this->decorator->init());\n }", "title": "" }, { "docid": "a3689536f617ddedd2308919aae4ddaa", "score": "0.5539034", "text": "public function testLoadWrongClass()\n {\n $this->FactoryRegistry->load('name1');\n }", "title": "" }, { "docid": "24e5a8fe73f7e0117f35c76b95c58124", "score": "0.5526658", "text": "public function testGet4()\n {\n $this->expectOutputString('a_runMethod1_driverMethod_b_c_');\n\n $this->object->set('newcache', [\n 'class' => 'MyCache',\n 'methods' => [\n ['printf', ['a_']], // a function\n ['runMethod1'], // newcache's method\n [['${#MyCacheDriver}', 'driverMethod'], []], // another service method\n function() { echo \"b_\"; }, // callable\n [function($s) { echo $s; }, [ \"c_\" ]], // callable with args\n ]\n ]);\n\n // only run once !\n $this->object->get('newcache');\n $this->object->get('newcache');\n }", "title": "" }, { "docid": "e8f4a0344a20f65839e527c74c3ab171", "score": "0.5509536", "text": "public function test_execute()\n {\n $CONFIG = ['config'];\n /** === Setup Mocks === */\n // $this->_setAreaCode();\n // $appState = $this->_manObj->get(\\Magento\\Framework\\App\\State::class);\n $mAppState = $this->_mock(\\Magento\\Framework\\App\\State::class);\n $this->mManObj\n ->shouldReceive('get')->once()\n ->andReturn($mAppState);\n // $appState->setAreaCode($areaCode);\n $mAppState->shouldReceive('setAreaCode')->once();\n // $configLoader = $this->_manObj->get(\\Magento\\Framework\\ObjectManager\\ConfigLoaderInterface::class);\n $mConfigLoader = $this->_mock(\\Magento\\Framework\\ObjectManager\\ConfigLoaderInterface::class);\n $this->mManObj\n ->shouldReceive('get')->once()\n ->andReturn($mConfigLoader);\n // $config = $configLoader->load($areaCode);\n $mConfigLoader->shouldReceive('load')->once()\n ->andReturn($CONFIG);\n // $this->_manObj->configure($config);\n $this->mManObj\n ->shouldReceive('configure')->once();\n // return\n //\n // $bundle = $this->_serviceInputProcessor->convertValue(...);\n $mBundle = $this->_mock(\\Praxigento\\Odoo\\Data\\Odoo\\Inventory::class);\n $this->mServiceInputProcessor\n ->shouldReceive('convertValue')->once()\n ->andReturn($mBundle);\n // $def = $this->_manTrans->begin();\n $mDef = $this->_mockTransactionDefinition();\n $this->mManTrans\n ->shouldReceive('begin')->once()\n ->andReturn($mDef);\n // $this->_subInit->warehouse();\n $this->mSubCats\n ->shouldReceive('warehouse')->once();\n // $req = $this->_manObj->create(ProductSaveRequest::class);\n $mReq = $this->_mock(\\Praxigento\\Odoo\\Service\\Replicate\\Request\\ProductSave::class);\n $this->mManObj\n ->shouldReceive('create')->once()\n ->andReturn($mReq);\n // $req->setProductBundle($bundle);\n $mReq->shouldReceive('setProductBundle');\n // $this->_callReplicate->productSave($req);\n $this->mCallReplicate\n ->shouldReceive('productSave')->once();\n // $this->_subCats->enableForAllStoreViews();\n $this->mSubCats\n ->shouldReceive('enableForAllStoreViews')->once();\n // $this->_manTrans->commit($def);\n $this->mManTrans\n ->shouldReceive('commit')->once();\n // $this->_manTrans->end($def);\n $this->mManTrans\n ->shouldReceive('end')->once();\n /** === Call and asserts === */\n $this->obj->launchExecute($this->mInput, $this->mOutput);\n }", "title": "" }, { "docid": "84ef3d7d60c83a210046b975ddd02d75", "score": "0.54941165", "text": "public function testInit() {\n \n }", "title": "" }, { "docid": "8bdb8d5b67974099fb3700bb5eeecc52", "score": "0.54681396", "text": "public function testJigsawTwo() {\r\n $jigsawTwo = self::$objectPool->getInstance('HeavyDutyJigsaw');\n // No initialization here\r\n $jigsawTwo->handleWork('cutting again (no new instance)');\r\n }", "title": "" }, { "docid": "d3a5cbc86dc6e41a138f9c7d318367c2", "score": "0.5459797", "text": "public function disabled_testLoader3() {\n \n \t$o = new Test();\n \t$this->assertEquals( $o instanceof Test, true );\n }", "title": "" }, { "docid": "0826fd14b431150f6d6bc2521e2b7626", "score": "0.54242504", "text": "public function loadExecution($executionId);", "title": "" }, { "docid": "0649e74582a4fc2332ac0c96ad07ca28", "score": "0.5415573", "text": "public function run_tests() {}", "title": "" }, { "docid": "6e517d1dcee93f9b8d4bb3eafc0bb525", "score": "0.540929", "text": "public function testLoad()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "d1160e44604fd0e76d6f423b3d09a8de", "score": "0.54069346", "text": "protected function initNextExecution()\n\t{\n\t\tglobal $ilLog;\n\n\t\t// Start task execution as backend process\n\t\tinclude_once 'Services/WebServices/SOAP/classes/class.ilSoapClient.php';\n\n\t\t$soap_client = new ilSoapClient();\n\t\t$soap_client->setResponseTimeout(1);\n\t\t$soap_client->enableWSDL(true);\n\n\t\t#$ilLog->write(__METHOD__.': Trying to call Soap client...');\n\t\t$new_session_id = ilSession::_duplicate($_COOKIE['PHPSESSID']);\n\t\t$client_id = $_COOKIE['ilClientId'];\n\n\t\tif($soap_client->init() and 0)\n\t\t{\n\t\t\t$ilLog->write(__METHOD__.': Calling soap handleECSTasks method...');\n\t\t\t$res = $soap_client->call('handleECSTasks',array($new_session_id.'::'.$client_id,$this->settings->getServerId()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ilLog->write(__METHOD__.': SOAP call failed. Calling clone method manually. ');\n\t\t\tinclude_once('./webservice/soap/include/inc.soap_functions.php');\n\t\t\t$res = ilSoapFunctions::handleECSTasks($new_session_id.'::'.$client_id,$this->settings->getServerId());\n\t\t}\n\t}", "title": "" }, { "docid": "6a268785e750f0ac5752c5ac6b426101", "score": "0.5405615", "text": "public function testRunEqualsAliases(): void\n {\n $lib = new XMultiton();\n $inst1 = $lib->lookup(['storage_key' => [__DIR__, '..', 'data'], 'storage_target' => 'mem'], 'first');\n $this->assertEquals($inst1, $lib->lookup([], 'first'));\n }", "title": "" }, { "docid": "1b76a000bf8def7881704b1931bee20c", "score": "0.53966826", "text": "public function run()\n {\n $this->createTester1();\n $this->createTester2();\n }", "title": "" }, { "docid": "dc5b77cbb80a7929b6b45551b8a500e7", "score": "0.536731", "text": "public function testGet5()\n {\n $this->expectOutputString('a_b_b_');\n\n // set up common methods\n $this->object->param(\n 'di.common', [\n [\n function($obj) { return $obj instanceof \\MyCacheDriver; },\n function() { echo 'a_'; }\n ],\n [\n function($obj) { return true; },\n function() { echo 'b_'; }\n ],\n ]\n );\n\n // only run once !\n $this->object->get('MyCache');\n }", "title": "" }, { "docid": "c00092e79f7af707a029b612e9afa5a5", "score": "0.53041536", "text": "public function tearDownOnce($class);", "title": "" }, { "docid": "ba7d9a1d6aa2cde7877df5944158f4dd", "score": "0.5298092", "text": "public function testBatchExecute()\r\n {\r\n\r\n }", "title": "" }, { "docid": "7a132c0759565391ba7f1390205befb4", "score": "0.52880096", "text": "public function restoreStepExecution();", "title": "" }, { "docid": "b251b6973a56a0f7e5c421f8d889ec5b", "score": "0.52847517", "text": "public function testHookOrderOfExec()\n {\n $container = $this->container->setMethods(null)->getMock();\n $this->logger->expects($this->exactly(5))->method(\"info\");\n $this->logger->expects($this->exactly(6))->method(\"debug\");\n $container->__construct($this->logger);\n\n $hook = $this->createMock(\"\\\\SlaxWeb\\\\Hooks\\\\Hook\");\n\n for ($hooks = 1; $hooks <= 3; $hooks++) {\n $hook = clone $hook;\n $this->hookName = \"test\";\n $this->hookDefinition = function () use ($hooks) {\n if ($hooks === 3) {\n return null;\n }\n return $hooks;\n };\n $hook->expects($this->any())\n ->method(\"__get\")\n ->will($this->returnCallback([$this, \"hookReturn\"]));\n\n $container->addHook($hook);\n }\n\n $this->assertEquals($container->exec(\"test\"), [1, 2]);\n\n $hook = clone $hook;\n $this->hookName = \"test2\";\n $this->hookDefinition = function () use ($hooks) {\n return true;\n };\n $hook->expects($this->any())\n ->method(\"__get\")\n ->will($this->returnCallback([$this, \"hookReturn\"]));\n\n $container->addHook($hook);\n $this->assertTrue($container->exec(\"test2\"));\n }", "title": "" }, { "docid": "b7a7f9a01f2eb0992416db7485fad1f1", "score": "0.5264195", "text": "private static function beforeRun()\n {\n }", "title": "" }, { "docid": "2fe2ab72de064839193b6b6a2370c2a4", "score": "0.52544475", "text": "public function setUpOnce($class);", "title": "" }, { "docid": "8cb3fe54e77777448d8aae93d5cc4cc4", "score": "0.52404284", "text": "protected function setUp() {\n\t\tob_start ();\n\t\t$this->object = new shared_memory ( \"FICHIER\", \"PROJ\", false );\n\t\t/********************************************/\n\t\t/* CLASS IMPOSSIBLE EN TESTS UNITAIRES */\n\t\t/********************************************/\n\t}", "title": "" }, { "docid": "2d16bf9c4f36ce9cad63d7526e520a7d", "score": "0.5238465", "text": "function ut_run2($bundle)\n\t{\n\t $GLOBALS['oo-mode'] = true;\n\t $oo_result = ut_main($bundle);\n\n\t // Run unit test in procedural mode.\n\t $GLOBALS['oo-mode'] = false;\n\t $proc_result = ut_main($bundle);\n\n\t // Show error if the APIs produce different results.\n\t if( $proc_result !== $oo_result )\n\t {\n\t echo \"ERROR: OO- and procedural APIs produce different results!\\n\";\n\t echo \"OO API output:\\n\";\n\t echo str_repeat( '=', 78 ) . \"\\n\";\n\t echo $oo_result;\n\t echo str_repeat( '=', 78 ) . \"\\n\";\n\t echo \"procedural API output:\\n\";\n\t echo str_repeat( '=', 78 ) . \"\\n\";\n\t echo $proc_result;\n\t echo str_repeat( '=', 78 ) . \"\\n\";\n\t return;\n\t }\n\n\t // Else, if the results are equal, show one of them.\n\t echo $proc_result;\n\t}", "title": "" }, { "docid": "40adf7f9b0fc6b3e967b91f51a564adb", "score": "0.5234501", "text": "public function run()\n {\n\n $this->run_test_sub(10);\n\n// $this->run_test_echo();\n }", "title": "" }, { "docid": "cc40ea71265ba0d3a28252ac64142236", "score": "0.52333033", "text": "public function setUpOnce()\n {\n SyncContext::add(array(\n 'test' => array(\n 'Page' => array(\n 'type' => SYNC_FULL,\n 'fields' => 'ID,LastEdited,Title',\n ),\n 'File' => array(\n 'type' => SYNC_UP,\n 'fields' => 'ID,LastEdited,Name,Title,Filename',\n ),\n ),\n \n 'test2' => array(\n 'Page' => array('type' => SYNC_NONE),\n ),\n ));\n }", "title": "" }, { "docid": "4e89595a17615c891a384b842114eeb0", "score": "0.52253073", "text": "public function testCacheResult(): void\n {\n $somethingStructure = new StructureMetadata();\n $this->loader->load($this->somethingMappingFile, 'page')->willReturn($somethingStructure);\n $this->loader->load($this->somethingMappingFile, 'page')->shouldBeCalledTimes(1);\n\n $this->factory->getStructureMetadata('page');\n $this->factory->getStructureMetadata('page');\n $this->factory->getStructureMetadata('page');\n }", "title": "" }, { "docid": "f7c70a0c2f7f4cb92879f3c308046487", "score": "0.5220024", "text": "public function test_getDuplicateWorkActivityById() {\n\n }", "title": "" }, { "docid": "0f94ccce3bb26a311e74bf2c68259a4b", "score": "0.521553", "text": "public function testExecuteCall()\n\t{\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "f7237fbfa907aa86fe6ac584b71af388", "score": "0.5215231", "text": "protected function pre_execution()\n {\n }", "title": "" }, { "docid": "a34e63a7e2cffcdc2a64c9ae87523fc9", "score": "0.52127737", "text": "protected function setUp() {\n $this->lastUnit = new UnitTestSupport();\n }", "title": "" }, { "docid": "a10d63c3074bb4dfe7599ab3a231d115", "score": "0.51949", "text": "public function runFake() {\n\n }", "title": "" }, { "docid": "e9e47fc37d4b35ff5045c1c2ebaa834b", "score": "0.5188004", "text": "public function testExec()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "e4484d5ab2da114039e5c5237eabd684", "score": "0.51693475", "text": "public function run_and_get_result()\n {\n }", "title": "" }, { "docid": "38a84ab288b91d0388145806cbb5e82f", "score": "0.5169303", "text": "public function testGetProxyTargetWithInstance()\n {\n $proxy = 'Statical\\\\Tests\\\\Fixtures\\\\FooProxy';\n $id = null;\n $target = Utils::fooInstance();\n\n $this->manager->addProxy($proxy, $id, $target);\n $instance = $this->manager->getProxyTarget($proxy);\n\n $this->assertSame($instance, $target);\n }", "title": "" }, { "docid": "72f1a97ccb86a29d5a47932d0f33f43a", "score": "0.51624334", "text": "public static function begin_execution($execution_id = null)\n {\n if (!$execution_id) {\n return false;\n }\n //get execution by id\n $execution = Execution::find($execution_id);\n if (!$execution) {\n throw new Exception('Instance not found');\n }\n //get site info for this execution\n $sites = $execution->sites;\n if (!$sites) {\n throw new Exception('Site not found');\n }\n\n //get url list for thie execution\n $urls = $execution->urls;\n if (!$urls) {\n throw new Exception('Url not found');\n }\n\n //get accessablity standard\n $standard = Standards::find($execution->sites->id_standards);\n if (!$standard) {\n $standard = ExecutionHelper::DEFAULT_STANDARD;\n } else {\n $standard = $standard->name;\n }\n $url_count = 0;\n //create job array;\n foreach ($urls as $url) {\n $data = array();\n if ($url->url || !empty($url->url)) {\n $data['action'] = ExecutionHelper::QUEUE_ACTION_DEFAULT;\n $data['url'] = $url->url;\n if($url->config || !empty($url->config)){$data['config'] = $url->config;}\n $data['site_id'] = $sites->id;\n $data['standard'] = $standard;\n $data['execution_id'] = $execution_id;\n\n dispatch((new RunAccessibilityTests($data)));\n $url_count++;\n }\n }\n\n //update pushed url counts to execution\n Execution::where('id', $execution_id)->update(array('t_pushed' => $urls->count()));\n\n //will add some dummy jobs later\n //once all urls pushed into queue send job for stats collection\n $data = array();\n $data['action'] = ExecutionHelper::QUEUE_ACTION_AFTER;\n $data['site_id'] = $sites->id;\n $data['standard'] = $standard;\n $data['execution_id'] = $execution_id;\n dispatch((new RunAccessibilityTests($data)));\n return true;\n }", "title": "" }, { "docid": "9396f7ea496ddf47c90292384a59378e", "score": "0.5144678", "text": "public function test_tasks() {\n $this->resetAfterTest(true);\n $task = new update_static_page();\n self::assertNotEmpty($task->get_name());\n $task->execute();\n }", "title": "" }, { "docid": "c64228ee9c8768d164ba843d064b3d73", "score": "0.5144047", "text": "public function testGetShared()\n {\n $this->specify(\n \"Resolving shared service does now work correctly\",\n function () {\n $this->phDi->set('dateObject', function () {\n $object = new \\stdClass();\n $object->date = microtime(true);\n return $object;\n });\n\n $dateObject = $this->phDi->getShared('dateObject');\n usleep(5000);\n $dateObject2 = $this->phDi->getShared('dateObject');\n\n expect($dateObject)->equals($dateObject2);\n expect($dateObject->date)->equals($dateObject2->date);\n }\n );\n }", "title": "" }, { "docid": "d0a16478ee270b1527d7b7813793e80f", "score": "0.5141", "text": "public function testExecuteWithCustomStateId()\n\t{\n\t\t$testData = array();\n\n\t\t$closure = function (Module $module, AssetHelper $asset, $foo = null, $bar = null) use (&$testData)\n\t\t{\n\t\t\t$module->setStateId($foo);\n\n\t\t\tif (!$module->stateInited())\n\t\t\t{\n\t\t\t\t$testData['state'][] = $foo . ' ' . $bar;\n\n\t\t\t\t$asset->internalJS($foo . ' ' . $bar);\n\t\t\t}\n\t\t};\n\n\t\t$this->instance->setHandler($closure);\n\n\t\t$asset = $this->getMock('Windwalker\\Helper\\AssetHelper', array('addJs', 'internalJS'));\n\n\t\t$asset->expects($this->at(0))\n\t\t\t->method('internalJS')\n\t\t\t->with(' ');\n\n\t\t$asset->expects($this->at(1))\n\t\t\t->method('internalJS')\n\t\t\t->with('John ');\n\n\t\t$asset->expects($this->at(2))\n\t\t\t->method('internalJS')\n\t\t\t->with('Arnold T-800');\n\n\t\t// Before execute\n\t\t$this->assertArrayNotHasKey('state', $testData);\n\n\t\t// First execute\n\t\t$this->instance->execute($asset, array());\n\n\t\t$this->assertEquals(array(' '), $testData['state']);\n\t\t$this->assertCount(1, $testData['state']);\n\n\t\t// Do not init again\n\t\t$this->instance->execute($asset, array());\n\n\t\t$this->assertEquals(array(' '), $testData['state']);\n\t\t$this->assertCount(1, $testData['state']);\n\n\t\t// State with one argument\n\t\t$this->instance->execute($asset, array('John'));\n\n\t\t$this->assertEquals(array(' ', 'John '), $testData['state']);\n\t\t$this->assertCount(2, $testData['state']);\n\n\t\t// State with one argument, second executed\n\t\t$this->instance->execute($asset, array('John'));\n\n\t\t$this->assertEquals(array(' ', 'John '), $testData['state']);\n\t\t$this->assertCount(2, $testData['state']);\n\n\t\t// State with two arguments\n\t\t$this->instance->execute($asset, array('Arnold', 'T-800'));\n\n\t\t$this->assertEquals(array(' ', 'John ', 'Arnold T-800'), $testData['state']);\n\t\t$this->assertCount(3, $testData['state']);\n\n\t\t// State with two arguments, second executed\n\t\t$this->instance->execute($asset, array('Arnold', 'T-1000'));\n\n\t\t$this->assertEquals(array(' ', 'John ', 'Arnold T-800'), $testData['state']);\n\t\t$this->assertCount(3, $testData['state']);\n\t}", "title": "" }, { "docid": "180419cf69b028ae045296a8ddcdf722", "score": "0.51370996", "text": "public function setUp(): void\n {\n // do somrthing before the benchmark\n }", "title": "" }, { "docid": "451e6a670b8eccc8b9e87c3f84142564", "score": "0.5136362", "text": "abstract function pre_execute();", "title": "" }, { "docid": "f8ad0a755b6c1a0d32f0e495f02e2a58", "score": "0.5129318", "text": "public function run_tests()\n {\n }", "title": "" }, { "docid": "304d138957781970cb5e9449e76ad833", "score": "0.5114442", "text": "public function test()\n {\n $this->executeScenario();\n }", "title": "" }, { "docid": "304d138957781970cb5e9449e76ad833", "score": "0.5114442", "text": "public function test()\n {\n $this->executeScenario();\n }", "title": "" }, { "docid": "05e432992be5683c0f074a0fe8997098", "score": "0.51135546", "text": "public static function once(): \\PHPUnit\\Framework\\MockObject\\Rule\\InvokedCount {}", "title": "" }, { "docid": "5d752d7e34eed67532b555a259c40f5a", "score": "0.5106286", "text": "public function testRun() {\n // Gets the result from couple.\n $coupleResult = $this->couple->run($this->couple, $this->haystack);\n\n // Tests the result is correct.\n $this->assertEquals(true, $coupleResult);\n }", "title": "" }, { "docid": "517e3b2dcfac042181e6c176124642e9", "score": "0.5101289", "text": "function execute()\n {\n $this->createDefaultFactory();\n foreach ($this->trigger as $observer) {\n $observer->init();\n }\n try {\n $this->setUpSuite();\n $this->executeTests();\n $this->tearDownSuite();\n } catch (T_Exception_SuiteSkip $skip) {\n foreach ($this->observers as $observer) {\n $observer->skip($skip,new ReflectionClass($this));\n }\n }\n foreach ($this->trigger as $observer) {\n $observer->complete();\n }\n return $this;\n }", "title": "" }, { "docid": "6160cceed2d47bc0421211049870aa30", "score": "0.5100221", "text": "public function testActualInstance()\n {\n // Get sprinkle manager and make sure `core` is returned\n $sprinklesNames = $this->ci->sprinkleManager->getSprinkleNames();\n $this->assertIsArray($sprinklesNames);\n $this->assertContains('core', $sprinklesNames);\n\n // Create a new MigrationLocator instance with our real SprinkleManager and filesystem\n // and ask to find core sprinkle migration files\n $locator = new MigrationLocator($this->ci->locator);\n $results = $locator->getMigrations();\n\n // We'll need to convert the array returned by `getMigrations` to a\n // collection to make it easier to search\n $this->assertIsArray($results);\n $this->assertContains('\\UserFrosting\\Sprinkle\\Core\\Database\\Migrations\\v400\\SessionsTable', $results);\n }", "title": "" }, { "docid": "6f48919f317b8b9b6d7cb9771265f4a1", "score": "0.509996", "text": "public function testFetchTwiceForMerge()\n {\n $config1 = $this->config->fetch('Ray\\Di\\MockParentClass');\n $config2 = $this->config->fetch('Ray\\Di\\MockParentClass');\n $definition1 = (array) ($config1[2]);\n $definition2 = (array) ($config2[2]);\n $this->assertSame($definition1, $definition2);\n }", "title": "" }, { "docid": "3be7689741cc5bc4139e382daab7790f", "score": "0.50990343", "text": "public function test_sample() {\n\t\t// Replace this with some actual testing code.\n\t\t/*\n\t\t$plugin_loaded = new Elementor_Assignment();\n\t\t$is_loaded = has_action( 'plugins_loaded', array( $plugin_loaded, 'init' ) );\n\t\t$this->assertTrue( 10 === $is_loaded ); \n\t\t*/\n\t\t$this->assertTrue( true );\n\t}", "title": "" }, { "docid": "442b4f0459d38d913e34924ca06cc4a0", "score": "0.509561", "text": "public function testLoadMethodSetsValidSession()\n {\n $payload = $this->getPayload();\n $session = $this->getSession();\n\n $payload->driver->expects($this->any())\n ->method('load')\n ->will($this->returnValue($session));\n\n $payload->load('foo');\n\n $this->assertEquals($session, $payload->session);\n }", "title": "" }, { "docid": "b6e70184333e7005c62acd63dd638002", "score": "0.5085519", "text": "protected function setUp(): void\n {\n $this->object = new Result();\n }", "title": "" }, { "docid": "3e12afc2f9078505337c139a3d9ad152", "score": "0.5085067", "text": "abstract protected function willLoadFixture();", "title": "" }, { "docid": "b77e79cdd0039578b7ff9a7132c5d421", "score": "0.508136", "text": "public function beforeLoad() {}", "title": "" }, { "docid": "50dfc9fe170370a69598f8ce1c2ef88a", "score": "0.5069191", "text": "public function testExecute()\n {\n // part because we instantiate the RouteStack in the class.\n $this->builder->expects($this->at(0))\n ->method('build');\n // ->with($this->builderUnit1, $this->builderContext);\n $this->builder->expects($this->at(1))\n ->method('build');\n // ->with($this->builderUnit2, $this->builderContext);\n\n $this->builderUnitChain->addBuilderUnit('builder_1', $this->builderUnit1);\n $this->builderUnitChain->addBuilderUnit('builder_2', $this->builderUnit2);\n $this->builderUnitChain->executeChain($this->builderContext);\n }", "title": "" }, { "docid": "3a212adc15d5b2efe16d36bfc4c4ec87", "score": "0.50669986", "text": "protected function setUp()\n {\n $this->config = new Yaml( __DIR__.'/Fixtures/config.yml', true);\n $this->uri = new Uri('http://www.example.com/index.html');\n \n $this->configProperties = new Properties($this->config, $this->uri);\n $this->object = new Run($this->configProperties, new HttpClientMockup(new ResponseMockup()));\n }", "title": "" }, { "docid": "c9695c8f7e0e36c34ccaabe0aaa866e1", "score": "0.5065876", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n\t\t$_SERVER['request_time1'] = microtime(true);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "0a5e0cffaf5ba21f357fab1552b7143f", "score": "0.50650793", "text": "public function testExecute()\n {\n //DataFixtures create 4 records\n $this->loadFixtures(array(\n 'JMose\\CommandSchedulerBundle\\Fixtures\\ORM\\LoadScheduledCommandData'\n ));\n\n $client = parent::createClient();\n $client->followRedirects(true);\n\n //call execute now button\n $crawler = $client->request('GET', '/command-scheduler/action/execute/1');\n $this->assertEquals(1, $crawler->filter('a[data-href=\"/command-scheduler/action/execute/1\"] > span[class=\"text-muted glyphicon glyphicon-play\"]')->count());\n }", "title": "" }, { "docid": "b8f4aca7330d21d101c4bacb46047cf7", "score": "0.5063242", "text": "public function test_module_has_changed_after_plugin_activation() {\n $this->setup_datas();\n $this->setUser($this->mockdatas->get_user2()->id);\n $this->mockdatas->create_course();\n $this->mockdatas->create_modules();\n $this->mockdatas->enrol_student();\n // Log store plugins not again activated.\n $this->setUser($this->mockdatas->get_user2()->id);\n $this->waitForSecond();\n resource_view(\n $this->mockdatas->get_resource1(),\n $this->mockdatas->get_course1(),\n $this->mockdatas->get_cmresource1(),\n context_module::instance($this->mockdatas->get_resource1()->cmid)\n );\n resource_view($this->mockdatas->get_resource2(),\n $this->mockdatas->get_course1(),\n $this->mockdatas->get_cmresource2(),\n context_module::instance($this->mockdatas->get_resource2()->cmid)\n );\n // Flush events.\n get_log_manager(true);\n // Now activate stores.\n $this->mockdatas->set_log_store();\n // Default config for unloggedasnew -> old events before log activation not considered as new.\n $this->assertFalse(\n local_digital_training_account_services_tools::module_has_changed(\n $this->mockdatas->get_cmresource1()->id, $this->mockdatas->get_user2()->id)\n );\n $this->assertFalse(\n local_digital_training_account_services_tools::module_has_changed(\n $this->mockdatas->get_cmresource2()->id, $this->mockdatas->get_user2()->id)\n );\n // Change unloggedasnew.\n set_config('unloggedasnew', 1, 'local_digital_training_account_services');\n $this->assertTrue(\n local_digital_training_account_services_tools::module_has_changed(\n $this->mockdatas->get_cmresource1()->id, $this->mockdatas->get_user2()->id)\n );\n $this->assertTrue(\n local_digital_training_account_services_tools::module_has_changed(\n $this->mockdatas->get_cmresource2()->id, $this->mockdatas->get_user2()->id)\n );\n }", "title": "" }, { "docid": "c4ecabe53e64579b339e169ae92bdfad", "score": "0.50602734", "text": "protected function setUp(): void\n\t{\n\t\t$this->time_before_init = microtime(true);\n\t\t$this->object = new CliProgressBarBlocked($this->final);\n\t\t$this->time_after_init = microtime(true);\n\t}", "title": "" }, { "docid": "dd3882328fe09df5a60161a497f78b81", "score": "0.50566477", "text": "public function run()\n {\n \tTest::factory()->count(50)->create();\n }", "title": "" }, { "docid": "15e56351061fc94508e8f660b5eccdc8", "score": "0.5052712", "text": "protected static function _load()\n\t{\n\t\t//Get cached data\n\t\t//9999 sec. of lifetime to return cache each time cause run.php is supposed to be\n\t\t//called each 60 sec. and so Cron::_save() runs every 60 sec which refreshes the cache file)\n\t\tCron::$_times = Kohana::cache(\"Cron::run()\", NULL, 9999); \n\t}", "title": "" }, { "docid": "ddf62371cae36dc6cd04efa96c61f27e", "score": "0.5052554", "text": "public function testLoad() {\n\t\t$reader = new PhpReader();\n\n\t\t$this->object->load('Php', $reader);\n\t\t$this->assertArrayHasKey('Php', $this->object->get());\n\n\t\t$data = $this->object->get('Php');\n\t\tunset($data['initialize']);\n\t\t$this->assertEquals($data, $this->test);\n\n\t\ttry {\n\t\t\t$this->object->load('fakePhp', $reader);\n\t\t\t$this->assertTrue(false);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(true);\n\t\t}\n\t}", "title": "" }, { "docid": "6ffe0b1cbc29addd606a7e3c0aab53ad", "score": "0.5049519", "text": "public function testActionExecutionPostponed() {\n $this->entity->save()->shouldNotBeCalled();\n\n $this->action->setContextValue('entity', $this->entity->reveal());\n $this->action->execute();\n\n $this->assertEquals($this->action->autoSaveContext(), ['entity'], 'Action returns the entity context name for auto saving.');\n }", "title": "" }, { "docid": "8181728c7da1fbe1789ea149658a36df", "score": "0.50472623", "text": "function runInst($inst){\n}", "title": "" }, { "docid": "8f123127a9533016790e0b7c759a36b9", "score": "0.50458497", "text": "public function setUp()\n {\n $this->instance = CellsApiTestBase::getInstance();\n }", "title": "" }, { "docid": "8f123127a9533016790e0b7c759a36b9", "score": "0.50458497", "text": "public function setUp()\n {\n $this->instance = CellsApiTestBase::getInstance();\n }", "title": "" }, { "docid": "8f123127a9533016790e0b7c759a36b9", "score": "0.50458497", "text": "public function setUp()\n {\n $this->instance = CellsApiTestBase::getInstance();\n }", "title": "" }, { "docid": "1f20cc0ff8d597ab196efb6070e07789", "score": "0.5042521", "text": "public function createSingleLoader()\n {\n $loader = new Loader\\Standard(['adapter' => $this->_adapter]);\n $this->assertInstanceOf('Slick\\Database\\Schema\\LoaderInterface', $loader);\n $this->assertEquals($this->_adapter, $loader->getAdapter());\n }", "title": "" }, { "docid": "5f7d47deb1b9422104c07d64df402cb7", "score": "0.50390255", "text": "public function preExecute();", "title": "" }, { "docid": "5f7d47deb1b9422104c07d64df402cb7", "score": "0.50390255", "text": "public function preExecute();", "title": "" }, { "docid": "70386c5b10bc02df23f573b6d1108038", "score": "0.50305766", "text": "protected function executeTests()\n {\n $reflect = new ReflectionObject($this);\n foreach ($reflect->getMethods() as $method) {\n if (!$method->isPublic() ||\n strncmp('test',$method->getName(),4)!==0) continue;\n\n // build a list of args to cycle on\n // $arg[0] = array('arg1'=>'value','arg2'=>'value');\n // $arg[1] = array('arg1'=>'value','arg2'=>'value');\n\n $args = array();\n\n // build args to cycle over\n $params = $method->getParameters();\n foreach ($params as $p) {\n $name = $p->getName();\n if (!isset($this->cycle[$name])) continue;\n $orig = $args;\n $args = array();\n foreach ($this->cycle[$name] as $val) {\n if (count($orig)==0) {\n $args[] = array($name=>$val);\n } else {\n foreach ($orig as $row) {\n $row[$name] = $val;\n $args[] = $row;\n }\n }\n }\n }\n\n // execute tests\n reset($args);\n $params = current($args);\n do {\n try {\n $this->setUp();\n if (is_array($params) && count($params)>0) {\n $method->invokeArgs($this,$params);\n } else {\n $method->invoke($this);\n }\n foreach ($this->observers as $observe) {\n $observe->pass($method);\n }\n } catch (T_Exception_TestFail $fail) {\n foreach ($this->observers as $observe) {\n $observe->fail($fail,$method);\n }\n } catch (T_Exception_TestSkip $skip) {\n foreach ($this->observers as $observe) {\n $observe->skip($skip,$method);\n }\n } catch (Exception $error) {\n foreach ($this->observers as $observe) {\n $observe->error($error,$method);\n }\n }\n $this->tearDown();\n } while($params = next($args));\n\n }\n return $this;\n }", "title": "" }, { "docid": "648c19c67e51bcc2555597d769501e1b", "score": "0.5027123", "text": "public function testSet2()\n {\n $this->object->set('DriverInterface', function() {\n return new \\MyCacheDriver();\n });\n $this->assertTrue($this->object->get('YourCache') instanceof \\YourCache);\n }", "title": "" }, { "docid": "ec9f7f9b990f7fc13c1b4fee6f9c3230", "score": "0.50255877", "text": "public function __doExecute()\n {\n }", "title": "" }, { "docid": "87d2cef9dfd06faa085ed1caa03deb06", "score": "0.50215864", "text": "function testMultipleRequests() {\n $request = new TestRequest();\n $response = $request->execute();\n $this->assertTrue(\n strpos($response->getContent(), 'DokuWiki') >= 0,\n 'DokuWiki was not a word in the output'\n );\n\n $request = new TestRequest();\n $response = $request->execute();\n $this->assertTrue(\n strpos($response->getContent(), 'DokuWiki') >= 0,\n 'DokuWiki was not a word in the output'\n );\n }", "title": "" }, { "docid": "536a845668a99b64525fc9d18a82bda6", "score": "0.5016718", "text": "public function testExecute()\n {\n $orderId = 1;\n $listId = 2;\n $this->requestValidator->expects($this->atLeastOnce())->method('getResult')->willReturn(null);\n $result = $this->getMockBuilder(\\Magento\\Framework\\Controller\\ResultInterface::class)\n ->disableOriginalConstructor()\n ->setMethods(['setRefererUrl'])\n ->getMockForAbstractClass();\n $result->expects($this->atLeastOnce())->method('setRefererUrl')->willReturnSelf();\n $this->resultFactory->expects($this->atLeastOnce())->method('create')->willReturn($result);\n $this->request->expects($this->atLeastOnce())->method('getParam')->withConsecutive(['order_id'], ['list_id'])\n ->willReturnOnConsecutiveCalls($orderId, $listId);\n $order = $this->getMockBuilder(\\Magento\\Sales\\Api\\Data\\OrderInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n $this->orderRepository->expects($this->atLeastOnce())->method('get')->with($orderId)->willReturn($order);\n $requisitionList = $this->getMockBuilder(\\Magento\\RequisitionList\\Api\\Data\\RequisitionListInterface::class)\n ->disableOriginalConstructor()\n ->getMockForAbstractClass();\n $requisitionList->expects($this->atLeastOnce())->method('getName')->willReturn('name');\n $this->requisitionListRepository->expects($this->atLeastOnce())->method('get')->with($listId)\n ->willReturn($requisitionList);\n $requisitionListItem = $this\n ->getMockBuilder(\\Magento\\RequisitionList\\Api\\Data\\RequisitionListItemInterface::class)\n ->disableOriginalConstructor()\n ->getMockForAbstractClass();\n $this->converter->expects($this->atLeastOnce())->method('addItems')->with($order, $requisitionList)\n ->willReturn([$requisitionListItem]);\n $this->messageManager->expects($this->atLeastOnce())->method('addSuccessMessage');\n\n $this->assertInstanceOf(\\Magento\\Framework\\Controller\\ResultInterface::class, $this->fromOrder->execute());\n }", "title": "" }, { "docid": "4c3bebd6aa9078e62c4d85eb982bef0c", "score": "0.50149775", "text": "public function testSingleton() {\n\n\t\t$first = \\Yoast_ACF_Analysis_Facade::get_registry();\n\t\t$second = \\Yoast_ACF_Analysis_Facade::get_registry();\n\n\t\t$this->assertSame( $first, $second );\n\n\t\t$first->add(\n\t\t\t'id',\n\t\t\tnew \\Yoast_ACF_Analysis_Configuration(\n\t\t\t\tnew \\Yoast_ACF_Analysis_String_Store(),\n\t\t\t\tnew \\Yoast_ACF_Analysis_String_Store(),\n\t\t\t\tnew \\Yoast_ACF_Analysis_String_Store()\n\t\t\t)\n\t\t);\n\n\t\t$this->assertSame( $first, $second );\n\t}", "title": "" }, { "docid": "1661ffd9e47aec69138e86de0da3fe01", "score": "0.50047225", "text": "protected function _before()\n {\n $this->instance = new \\Saitow\\Library\\TiresDataSources\\TiresXmlDataSource('./tests/_data/tires-test.xml');\n }", "title": "" }, { "docid": "0bc71a279cf72914e46ac0fd0e76d274", "score": "0.5004169", "text": "public function tearDown() {\n $this->instance = null;\n }", "title": "" }, { "docid": "45511e5c078f8a5a75a5c0c7e16e1d2e", "score": "0.49997216", "text": "public function testClassAutoloadedPreviouslyGetsCorrectlyLoadedByParser(): void\n {\n $child = $this->parseFile($this->fixture('parser_tests' . DS . 'TestWithParentTestTest.php'));\n $parent = $this->parseFile($this->fixture('parser_tests' . DS . 'TestWithChildTestsTest.php'));\n\n static::assertSame(TestWithParentTestTest::class, $child->getName());\n static::assertSame(TestWithChildTestsTest::class, $parent->getName());\n }", "title": "" }, { "docid": "f2b4a2ce3be2c9e8029a5731635486c5", "score": "0.49917546", "text": "public function testGetHistoricProcessInstances()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "4a77f3415074eb03e38fc6ddb1ba9627", "score": "0.49843013", "text": "public function before() {}", "title": "" }, { "docid": "4a77f3415074eb03e38fc6ddb1ba9627", "score": "0.49843013", "text": "public function before() {}", "title": "" }, { "docid": "4a77f3415074eb03e38fc6ddb1ba9627", "score": "0.49843013", "text": "public function before() {}", "title": "" }, { "docid": "847261bf7d5849496ea4386d9d134773", "score": "0.49809417", "text": "protected function setUp() {\n\t\t$this->object = new RunningPrognosis;\n\t}", "title": "" } ]
0d0a0e15615f0a9ec8ff70e7e7c477c9
Lookup a VirtualAttribute value (if applicable). Returns NULL if none found.
[ { "docid": "7914d42e3c10f2b72f0fb2480ed52ed7", "score": "0.6430411", "text": "public function GetVirtualAttribute($strName) {\n\t\t\t$strName = QQ::GetVirtualAlias($strName);\n\t\t\tif (isset($this->__strVirtualAttributeArray[$strName])) {\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" } ]
[ { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "ab0b13baf5ad32ffdc3eb0eab8e96e80", "score": "0.680798", "text": "public function GetVirtualAttribute($strName) {\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray))\n\t\t\t\treturn $this->__strVirtualAttributeArray[$strName];\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "8bc6cb75bf19abdb354727b97daa6388", "score": "0.54826", "text": "public function virtual($value) {\n return $this->setProperty('virtual', $value);\n }", "title": "" }, { "docid": "0ed3c52b6a873895ac6dd9b41988137b", "score": "0.53938246", "text": "function getAttribute($name) {\r\n\t\tif( array_key_exists($name, $this->attributes) )\r\n\t\t\treturn $this->attributes[$name];\t// attributes.get(name)\r\n\t\telse\r\n\t\t\treturn NULL;\r\n\t}", "title": "" }, { "docid": "126d2b5c2b01b67f5813af4ca45a05a5", "score": "0.5380808", "text": "public function find(string $key): ?ReflectionValue\n {\n $stringEntry = new StringEntry($key);\n $pointer = Core::call('zend_hash_find', $this->pointer, Core::addr($stringEntry->getRawValue()));\n\n if ($pointer !== null) {\n $pointer = ReflectionValue::fromValueEntry($pointer);\n }\n\n return $pointer;\n }", "title": "" }, { "docid": "a0f6b580241e17ad152d47ddf0bfe911", "score": "0.5330212", "text": "function lookup($attribute_value, $attribute_id, $can_cache = TRUE)\n\t{\n\t\tif ($can_cache)\n\t\t{\n\t\t\tstatic $cache = array();\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\t$cache = array();\n\t\t}\n\t\t\n\t\tif (isset($cache[$attribute_id.'|'.$attribute_value]))\n\t\t{\n\t\t\treturn $cache[$attribute_id.'|'.$attribute_value];\n\t\t}\n\t\t\t\t\t\n\t\t$this->db->from('attribute_values');\n\t\t$this->db->where('attribute_id',$attribute_id);\n\t\t$this->db->where('name',(string)$attribute_value);\n\t\t\n\t\t$query = $this->db->get();\n\n\t\tif($query->num_rows()==1)\n\t\t{\n\t\t\t$cache[$attribute_id.'|'.$attribute_value] = $query->row();\n\t\t\treturn $cache[$attribute_id.'|'.$attribute_value];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Get empty base parent object, as $item_id is NOT an item\n\t\t\t$attribute_obj=new stdClass();\n\n\t\t\t//Get all the fields from attributes table\n\t\t\t$fields = array('id','ecommerce_attribute_term_id','attribute_id','name','deleted','last_modified');\n\n\t\t\tforeach ($fields as $field)\n\t\t\t{\n\t\t\t\t$attribute_obj->$field='';\n\t\t\t}\n\t\t\t\n\t\t\treturn $attribute_obj;\n\t\t}\n\t}", "title": "" }, { "docid": "1a57880ae1bd492d6f09c58b3fb0cea9", "score": "0.53008306", "text": "public function __get($name)\n {\n // @TODO: Return the value from attributes with a matching $name, if it exists\n // Check for existence of array key $name\n if (array_key_exists($name, $this->attributes)) {\n return $this->attributes[$name]; \n }\n return null;\n }", "title": "" }, { "docid": "abd3d059371fe1fa3c1cc7ba3e49a9a7", "score": "0.5300365", "text": "public function get($attribute) {\n if (isset($this->attributes->$attribute)) {\n return $this->attributes->$attribute;\n }\n return null;\n }", "title": "" }, { "docid": "da75f0ba44516b497312f64b437098f0", "score": "0.52935535", "text": "protected abstract function getValue($instance_id, $attribute);", "title": "" }, { "docid": "88f190a87eb6389f8edea6178f6b4940", "score": "0.5274195", "text": "function &getAttribute($name)\r\n\t{\r\n\t\tif (!array_key_exists($name, $this->attributes))\r\n\t\t{\r\n\t\t\treturn ref(null);\r\n\t\t}\r\n\r\n\t\treturn $this->attributes[$name];\r\n\t}", "title": "" }, { "docid": "e63926fab53c2f43471a9ec75904887d", "score": "0.5265742", "text": "public function MyAttribute($attr_name) {\n $attr = $this->owner->getAttribute($attr_name);\n \n if ($attr) return $attr;\n \n return null;\n \n }", "title": "" }, { "docid": "3442823e41da6d4754ad6ffa237e11a1", "score": "0.52585137", "text": "public function __get($columnName)\r\n {\r\n if (isset($this->findResult[$columnName])) {\r\n return $this->findResult[$columnName];\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "546613d001f3b19aff6928144d64fbc1", "score": "0.5246345", "text": "public function __get($attribute);", "title": "" }, { "docid": "3908714f8d9f3eee8470aa7817ca061c", "score": "0.5240536", "text": "public function get( $key ) {\n\t\t$attributes = $this->attributes;\n\t\tif ( isset( $attributes[ $key ] ) ) {\n\t\t\treturn $attributes[ $key ];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e017fe68744ac0d93edd285b50931f82", "score": "0.52190435", "text": "public function getAttribute($name)\r\n\t{\r\n\t\tif($this->getTagType() == 'attribute')\r\n\t\t{\r\n\t\t\t// We call on the getAttributes method to, well, get the attributes!\r\n\t\t\t$attributes = $this->getAttributes();\r\n\r\n\t\t\t// Make sure the attribute even exists...\r\n\t\t\treturn isset($attributes[$this->strtolower($name)]) ? $attributes[$this->strtolower($name)] : false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3867fef13444c66a48e08dba4c26f423", "score": "0.5213002", "text": "public function __get($name)\n {\n return $this->has($name)\n ? $this->attributes[$name]\n : null;\n }", "title": "" }, { "docid": "e24e04be0b94831b7d2d46404948c9c9", "score": "0.5162525", "text": "function getAttribute($key) {\n // all attribute keys are stored Upper Case,\n // however just to make sure we have not done a typo :)\n $key = strtoupper($key); \n //echo \"looking for $key\\n\";\n //var_dump($this->attributes);\n \n // this is weird case isset() returns false on this being null!\n //smata:\n if (array_key_exists($key, $this->ucAttributes) && $this->ucAttributes[$key] === true) {\n return true;\n }\n//\n// if (@$this->ucAttributes[$key] === true) {\n// return true;\n// }\n \n if (!isset($this->ucAttributes[$key])) {\n return false;\n }\n // general assumption - none of the tools can do much with dynamic\n // attributes - eg. stuff with flexy tags in it.\n if (!is_string($this->ucAttributes[$key])) {\n return false;\n }\n $v = $this->ucAttributes[$key];\n \n // unlikely :)\n if ($v=='') {\n return $v;\n }\n \n switch($v{0}) {\n case \"\\\"\":\n case \"'\":\n return substr($v,1,-1);\n default:\n return $v;\n }\n }", "title": "" }, { "docid": "cb84bf1841abb3426d48263d727f7a6b", "score": "0.51469886", "text": "public function __get($attributeNameOrAlias)\n {\n $attributeName = $this->mapAttribute($attributeNameOrAlias);\n\n // check attributes first\n if (array_key_exists($attributeName, $this->_data)) {\n return $this->_data[$attributeName];\n }\n\n // check links\n if (array_key_exists($attributeName, $this->getScheme()->getRoles())) {\n return $this->getRelated($attributeName);\n }\n\n return null;\n }", "title": "" }, { "docid": "ae5fc8c7767b434a9279ba3ddecebb6f", "score": "0.5121939", "text": "public function __get(string $attr)\n {\n return null;\n }", "title": "" }, { "docid": "5e905da46f5df59db6f18c381a4143e4", "score": "0.5116357", "text": "public static function find($attr, $value, iDatabase $db = NULL);", "title": "" }, { "docid": "5e905da46f5df59db6f18c381a4143e4", "score": "0.5116357", "text": "public static function find($attr, $value, iDatabase $db = NULL);", "title": "" }, { "docid": "5e905da46f5df59db6f18c381a4143e4", "score": "0.5116357", "text": "public static function find($attr, $value, iDatabase $db = NULL);", "title": "" }, { "docid": "5c58b60dccbbe4c68934de4227f3da40", "score": "0.51104444", "text": "public function __get($key)\n {\n return isset($this->attributes[$key]) ? $this->attributes[$key] : null;\n }", "title": "" }, { "docid": "1d426886339a71fa0d8d47e1fed28573", "score": "0.51069164", "text": "public function __get($name)\n {\n if(isset($this->_attributes[$name]))\n return $this->_attributes[$name];\n if(in_array($name,$this->_customAttributeNames))\n return null;\n else\n return parent::__get($name);\n }", "title": "" }, { "docid": "d62cde1705b2fd3e31b5cfd883b78e57", "score": "0.5089668", "text": "public function getAttribute($attr)\n {\n if (array_key_exists($attr, $this->attributes)) {\n return $this->attributes[$attr];\n }\n return null;\n }", "title": "" }, { "docid": "38ec0a8ae99c775e65985b4991723d2b", "score": "0.5079607", "text": "public function __get($key)\n {\n if (! is_null($this->getAttribute($key))) {\n return $this->getAttribute($key);\n }\n\n $value = $this->value();\n if (isset($value->$key)) {\n return $value->$key;\n }\n\n if ($value->hasModifier($key)) {\n return $value->callModifier($key);\n }\n\n return null;\n }", "title": "" }, { "docid": "3dcc55cf140e89acc44d21efda5a6359", "score": "0.50778866", "text": "public function get($key)\n {\n return $this->attributes[$key] ?? null;\n }", "title": "" }, { "docid": "38b525d8fd0e2ad4ba61f8bfbd83d759", "score": "0.5038013", "text": "public function __get($key)\n {\n $attributes = $this->getAttributes();\n return isset($attributes[$key]) ? $attributes[$key]:null;\n }", "title": "" }, { "docid": "b1039c1d812ba48d1a38faa5d5710c15", "score": "0.5029658", "text": "public abstract function getAttribute($key);", "title": "" }, { "docid": "de9f22fc9a1a32b205953ecf95c9df09", "score": "0.5021119", "text": "public function getAttribute($key)\n {\n if (!array_key_exists($key, $this->attributes)) {\n return null;\n }\n return $this->attributes[$key];\n }", "title": "" }, { "docid": "e53a32c9917de382039b67eb3c41cf6e", "score": "0.50183785", "text": "public function getAttribute($key)\n {\n if (isset($this->_attributes[$key])) {\n return $this->_attributes[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "97cd33617199336834740e53b8634c05", "score": "0.5016921", "text": "public function __get($key)\n {\n $attributes = $this->getAttributes();\n\n return isset($attributes[$key]) ? $attributes[$key] : null;\n }", "title": "" }, { "docid": "c0040bff2c31b31c2fc20338b9055054", "score": "0.50127894", "text": "public function getAttribute($key) {\n\t\tif (! array_key_exists ( $key, $this->attributes )) {\n\t\t\treturn null;\n\t\t}\n\t\treturn $this->attributes [$key];\n\t}", "title": "" }, { "docid": "ca3d05beca819db0fbdd338d6422f922", "score": "0.50093377", "text": "public function getValue() {\n\t\t$associatedObject = null;\n\t\t$av = $this->getAttributeValue();\n\t\tif(is_a($av, 'CollectionAttributeValue')) {\n\t\t\t/* @var $av CollectionAttributeValue */\n\t\t\t$associatedObject = $av->getCollection();\n\t\t}\n\t\telseif(is_a($av, 'FileAttributeValue')) {\n\t\t\t/* @var $av FileAttributeValue */\n\t\t\t$associatedObject = $av->getFile();\n\t\t}\n\t\telseif(is_a($av, 'UserAttributeValue')) {\n\t\t\t/* @var $av UserAttributeValue */\n\t\t\t$associatedObject = $av->getUser();\n\t\t}\n\t\t$v = MultilingualAttributeAttributeTypeValue::getByID($this->getAttributeValueID(), $this, $associatedObject);\n\t\treturn $v ? $v : MultilingualAttributeAttributeTypeValue::getEmpty($this, $associatedObject);\n\t}", "title": "" }, { "docid": "04d4f3ad1c7496d1889c39b375c00d83", "score": "0.500056", "text": "public function __get($name)\n {\n return $this->attributes[$name] ?? null;\n }", "title": "" }, { "docid": "015365f8b0869eb89190cee8229907ee", "score": "0.49988383", "text": "public function get_attribute($name)\n {\n if (!$this->loaded) return null;\n $profile_id = $this->id;\n\n $select = $this->db\n ->select('value')\n ->from('profile_attributes')\n ->where('profile_id', $profile_id)\n ->where('name', $name);\n $row = $select->get()->current();\n if (null == $row) return false;\n return $row->value;\n }", "title": "" }, { "docid": "e6f8eb91a90c08c5dacff2d5cba3f87f", "score": "0.4993681", "text": "public function __get($key)\n {\n $relation = $this->$key();\n if (!$relation) {\n return null;\n }\n\n return $relation->value;\n }", "title": "" }, { "docid": "02133578a6789b0271cdf473696f083c", "score": "0.4990244", "text": "public function __get($name)\n\t{\n\t\tif (isset($this->_attributes[$name]))\n\t\t\treturn $this->_attributes[$name];\n\t\telse if (isset($this->getMetaData()->fields[$name]))\n\t\t\treturn null;\n\t\telse\n\t\t\treturn parent::__get($name);\n\t}", "title": "" }, { "docid": "267296a135a66aa3e839774373870e87", "score": "0.498974", "text": "public function __get($name)\n {\n // Check for existence of array key $name\n if (array_key_exists($name, $this->attributes)) {\n return $this->attributes[$name];\n }\n\n return null;\n }", "title": "" }, { "docid": "f5b83bb8da1479a34efab53a819027dd", "score": "0.49843892", "text": "public function __get($name)\n {\n try {\n return parent::__get($name);\n } catch (UnknownPropertyException $exception) {\n if ($this->owner !== null) {\n $model = $this->getDefaultVariationModel();\n if (is_object($model) && $model->hasAttribute($name)) {\n $result = $model->$name;\n if (empty($result) && array_key_exists($name, $this->variationAttributeDefaultValueMap)) {\n return $this->fetchVariationAttributeDefaultValue($name);\n }\n return $result;\n } elseif (array_key_exists($name, $this->variationAttributeDefaultValueMap)) {\n return $this->fetchVariationAttributeDefaultValue($name);\n }\n }\n\n throw $exception;\n }\n }", "title": "" }, { "docid": "8a638106b0bff573671f99d3d2751c53", "score": "0.49696642", "text": "public function get(string $attrName);", "title": "" }, { "docid": "f6f4aaa5534c3381e0352d3a01824725", "score": "0.4959329", "text": "abstract public function getAttribute($key);", "title": "" }, { "docid": "f6f4aaa5534c3381e0352d3a01824725", "score": "0.4959329", "text": "abstract public function getAttribute($key);", "title": "" }, { "docid": "01fd34d5d646e6354f07bdef8c3cb1ad", "score": "0.49553388", "text": "public function getAttribute($key)\n {\n if (!isset($this->attributes[$key])) {\n return null;\n }\n return $this->attributes[$key];\n }", "title": "" }, { "docid": "01fd34d5d646e6354f07bdef8c3cb1ad", "score": "0.49553388", "text": "public function getAttribute($key)\n {\n if (!isset($this->attributes[$key])) {\n return null;\n }\n return $this->attributes[$key];\n }", "title": "" }, { "docid": "a8834459e7d7224d8eb9481a8da8ad54", "score": "0.49403083", "text": "public function getAttribute($key)\n {\n return $this->attributes[$key] ?? null;\n }", "title": "" }, { "docid": "3919dd9e9fb00566a4f2fd5993bf700a", "score": "0.49387404", "text": "public function getAttribute($key) {\t\n\t\t// If the key references an attribute, we can just go ahead and return the\n\t\t// plain attribute value from the model. This allows every attribute to\n\t\t// be dynamically accessed through the _get method without accessors.\n\t\tif (array_key_exists($key, $this->attributes))\n\t\t{\n\t\t\treturn $this->attributes[$key];\n\t\t}\n\t\n\t\t// If the key already exists in the relationships array, it just means the\n\t\t// relationship has already been loaded, so we'll just return it out of\n\t\t// here because there is no need to query within the relations twice.\n\t\tif (array_key_exists($key, $this->relations))\n\t\t{\n\t\t\treturn $this->relations[$key];\n\t\t}\n\t}", "title": "" }, { "docid": "15d39548a09fc7b9be5469c21f987e6a", "score": "0.49313235", "text": "public function search($key, $value)\n {\n foreach ($this->items as $item) {\n if ($item->{'get' . $key}() === $value) {\n return $item;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "0d2b543ceb51da515cd2e5b443285e59", "score": "0.49261484", "text": "abstract public function getAttribute($name, $defaultValue = null);", "title": "" }, { "docid": "eae19bff8fc5c89dcf6d21c5c1f73205", "score": "0.492152", "text": "public function getObjAttrVal($object, $attributeName);", "title": "" }, { "docid": "a43b2cf605329b1954e03f339da07b05", "score": "0.49212453", "text": "public function getAttribute($key)\n {\n // parent call first.\n if (($attr = parent::getAttribute($key)) !== null) {\n return $attr;\n }\n\n // there was no attribute on the model\n // retrieve the data from meta relationship\n return $this->getMeta($key);\n }", "title": "" }, { "docid": "313983ab518aefcc8d84556062aece94", "score": "0.48802617", "text": "public function get($keyword)\n {\n if (!$this->has($keyword)) {\n return null;\n }\n return $this->properties[$keyword];\n }", "title": "" }, { "docid": "6c6c80951ae27122e5d30001e1c5cc8f", "score": "0.48797372", "text": "public function getDomAttVal($element, $attribute, $attributeValue, $searchAttribute)\n {\n $query = '//' . $element . '[@' . $attribute . '=\"' . $attributeValue . '\"]/@' . $searchAttribute;\n $div = $this->xpath->query($query);\n $div = $div->item(0);\n if(!$div)\n return null;\n return $div->value;\n }", "title": "" }, { "docid": "96cc1f9b5ab6003da7de5d13ff333b14", "score": "0.48769543", "text": "function getAttribute($att);", "title": "" }, { "docid": "42e0033ddb76b018e28ac214dc08ad28", "score": "0.48763892", "text": "public function getAttribute($key);", "title": "" }, { "docid": "0707e37929eaea8a91d754057658b36d", "score": "0.48685643", "text": "public function __get($name)\n {\n return isset($this->attributes[$name]) ? $this->attributes[$name] : null;\n }", "title": "" }, { "docid": "0feb3217fba82792e273d16f156214a1", "score": "0.48651484", "text": "public function getAttribute($attr, $default_value);", "title": "" }, { "docid": "51f70c8f3b901f80a7fba1ab218a2ae0", "score": "0.4850275", "text": "public function HasVirtualAttribute($strName) {\n\t\t\t$strName = QQ::GetVirtualAlias($strName);\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "51f70c8f3b901f80a7fba1ab218a2ae0", "score": "0.4850275", "text": "public function HasVirtualAttribute($strName) {\n\t\t\t$strName = QQ::GetVirtualAlias($strName);\n\t\t\tif (array_key_exists($strName, $this->__strVirtualAttributeArray)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "01826e8896fe3f03995f4f52b003fa94", "score": "0.48489997", "text": "public function __get(string $key)\n {\n if($this->attributes->hasKey($key))\n {\n return $this->attributes->get($key);\n }\n }", "title": "" }, { "docid": "75b5d7c0c047fe270191389dbe16d39c", "score": "0.48417944", "text": "public function get($key)\n {\n return ! empty($this->attributes[$key]) ? $this->attributes[$key] : null;\n }", "title": "" }, { "docid": "a22e85f4c0c889c622372f9360bfe647", "score": "0.48416317", "text": "public function getAttribute($key)\n {\n return (isset($this->attributes[$key])) ? $this->attributes[$key] : null;\n }", "title": "" }, { "docid": "7dea82d84d6a4863c0e92b2d359449a2", "score": "0.4825646", "text": "public function getAttribute($name) {\n\t\treturn isset($this->attributes[$name]) ? $this->attributes[$name] : null;\n\t}", "title": "" }, { "docid": "fd88004f4ad83ab4e87575b1a352d72a", "score": "0.4820194", "text": "public function get($attributeName);", "title": "" }, { "docid": "ffec2f4ab41bd52c5982337f53486a91", "score": "0.48174474", "text": "function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('DataObjects_Tag_record',$k,$v); }", "title": "" }, { "docid": "396296861432c51a3ea3de0941d7afa6", "score": "0.47996125", "text": "public function getAttribute( $key ) {\n\t\treturn isset( $this->mAttributes[ $key ] ) ? $this->mAttributes[ $key ] : null;\n\t}", "title": "" }, { "docid": "a6a7f661aef11feef54d598253793a27", "score": "0.4799127", "text": "abstract public function attributesLookup($lookupAttributes = null);", "title": "" }, { "docid": "c8b9816750ab8ffc0bd2e86de35fe201", "score": "0.47983462", "text": "public function getVirtualColumn(string $name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of nonexistent virtual column `%s`.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "c8b9816750ab8ffc0bd2e86de35fe201", "score": "0.47983462", "text": "public function getVirtualColumn(string $name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of nonexistent virtual column `%s`.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "751e230c940c24c3a52aadfb3a44a363", "score": "0.47971925", "text": "function get_product_attribute_by_attribute_name($attribute_name){\n\t\t$query=\"select * from standalone_product_eav_attributes where attribute_name='\".$attribute_name.\"'\";\n\t\t// var_dump($query);\n\t\t$result=$this->db_handle->runQuery($query);\n\t\tif (is_null($result)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\t$attribute_value=$this->get_product_attribute_by_attribute_id($result[0][\"id\"]);\n\t\t\treturn $attribute_value;\n\t\t}\n\t}", "title": "" }, { "docid": "b267a92049f79e1eeace731f9546700a", "score": "0.4795951", "text": "public function __get($key)\n\t{\n\t\tif (isset($this->{$key}))\n\t\t{\n\t\t\treturn $this->{$key};\n\t\t}\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "51b7d22fb28f874082fe65699e934ad7", "score": "0.47798625", "text": "public function __get($key)\n\t{\n\t\treturn $this->attributes[$key];\n\t}", "title": "" }, { "docid": "51b7d22fb28f874082fe65699e934ad7", "score": "0.47798625", "text": "public function __get($key)\n\t{\n\t\treturn $this->attributes[$key];\n\t}", "title": "" }, { "docid": "51b7d22fb28f874082fe65699e934ad7", "score": "0.47798625", "text": "public function __get($key)\n\t{\n\t\treturn $this->attributes[$key];\n\t}", "title": "" }, { "docid": "d401bfacfc9ae73e770d7db7418ff73b", "score": "0.47773975", "text": "function getAttribute($attribute)\n {\n if (isset($this->attributes[$attribute])) {\n return $this->attributes[$attribute];\n }\n return null;\n }", "title": "" }, { "docid": "b42ee863149047523ebaddd653f22b25", "score": "0.4775096", "text": "public function getAttribute( $attr );", "title": "" }, { "docid": "be68d58264baf76f5eb1ff9724479e16", "score": "0.47725663", "text": "abstract public function getValueFromDB($attribute);", "title": "" }, { "docid": "0440f2e71e86a1404efa2e4f34963a0d", "score": "0.4770185", "text": "function getAttribute($attribute);", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "139f1ad6494685f6bf7d857815947061", "score": "0.4761203", "text": "public function getVirtualColumn($name)\n {\n if (!$this->hasVirtualColumn($name)) {\n throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name));\n }\n\n return $this->virtualColumns[$name];\n }", "title": "" }, { "docid": "caa1aa9334c8d0d7da383a28c9473832", "score": "0.4753548", "text": "public function __get($key)\n {\n if (isset($this->attributes[$key])) {\n return $this->attributes[$key];\n }\n }", "title": "" }, { "docid": "a44cb612c5a06a8ee669e6c88d8f9c9a", "score": "0.4747467", "text": "public function getAttribute($name)\n\t{\n\t\treturn (($this->attributeExists($name)) ? $this->__data['attr'][$name] : null);\n\t}", "title": "" }, { "docid": "230264efc395767450b1f0e728eb5010", "score": "0.47444755", "text": "public function getAttribute(string $key);", "title": "" }, { "docid": "e87d69f49d5b13c3bfeb752a58cbba84", "score": "0.47444493", "text": "public function getAttribute($key)\n {\n if (! $key) {\n return null;\n }\n\n if ($this->hasAttribute($key)) {\n return $this->attributes[$key];\n }\n }", "title": "" }, { "docid": "ffce21efc2c2b66d9f0d76465e207444", "score": "0.47346264", "text": "function GetAttributeValue($attribute_name,$OrderBy)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$strSQLFeaturedQuery = (!empty($attribute_name))?(\" where a.attribute_name='\".$attribute_name.\"' and v.Status='1' and locationID='\".$_SESSION['locationID'].\"'\"):(\"\");\r\n\r\n\t\t\t$OrderSql = (!empty($OrderBy))?(\" order by v.\".$OrderBy.\" asc\"):(\" order by v.value_id asc\");\r\n\r\n\t\t\t$strSQLQuery = \"select v.* from w_attribute_value v inner join w_attribute a on v.attribute_id = a.attribute_id \".$strSQLFeaturedQuery.$OrderSql;\r\n\r\n\t\t\treturn $this->query($strSQLQuery, 1);\r\n\t\t}", "title": "" }, { "docid": "a17b619879d411f4a0e6180bc2a1f5b5", "score": "0.4730873", "text": "public function get($key) {\r\n if ($this->exists($key)) {\r\n return $this->_data[$key];\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "b066bf512ffff0c81c25d8f8b54bc9ab", "score": "0.47297698", "text": "public function __get( $key )\n\t\t{\n\t\t\tif( !isset( $this->$key ) && $this->first() !== false )\n\t\t\t{\n\t\t\t\treturn $this->first()->$key;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "4cd017937d62f7fc933352e97c87647b", "score": "0.4724831", "text": "public function getAttribute($attributeName, $hardCheck = false, $defaultValue = null);", "title": "" } ]
adde3fa32c662e8b6e653bcef5189117
Sets the name of the user model
[ { "docid": "62dec79d1f1ef098c259c335587628e1", "score": "0.0", "text": "public function setModel($model)\n {\n $this->model = $model;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "d098621128f4567c0e60935357870811", "score": "0.6983675", "text": "private function setUserName()\n {\n $this->username = User::getUserName();\n }", "title": "" }, { "docid": "19e48ed5ba5f0d064e687b2e89bc0b93", "score": "0.6835396", "text": "public function setModel($name){\n\t\t$this->model=$name;\n\t}", "title": "" }, { "docid": "cbd35de80efb3dcc67fc173a31de4982", "score": "0.6808567", "text": "protected function getModelClassName()\n {\n return 'User';\n }", "title": "" }, { "docid": "a34aa7fe7c91396d3d7340da9a54b5e7", "score": "0.6702812", "text": "public function modelName()\n {\n return User::class;\n }", "title": "" }, { "docid": "e885001210becbce9097d9ad1334c7c3", "score": "0.6689117", "text": "public function getModelName():string{\n return 'User';\n }", "title": "" }, { "docid": "32cf16da0af9493b3f4c0e10ee0e731b", "score": "0.64608824", "text": "protected function setName()\n\t{\n\t\t$this->name = 'My name is: ' . get_class($this);\n\t}", "title": "" }, { "docid": "69a105e36db2617135118e29b2ddcbb0", "score": "0.6425319", "text": "protected function userModel() {\n return (new TAG_GUARD_NAME_UCFIRST())->setAttribute('id', $this->guard()->id());\n }", "title": "" }, { "docid": "f131346da94f44243cdd955b6069218c", "score": "0.6287707", "text": "function model()\n {\n return \"App\\\\Core\\\\Users\\\\User\";\n }", "title": "" }, { "docid": "392aaa245f54344da6b49dfe36d1b49b", "score": "0.62812823", "text": "function User_model() {\n parent::Model();\n\n }", "title": "" }, { "docid": "a390bdfdc33bba6ea4a1c0a9917c7bce", "score": "0.6277264", "text": "private function setName(Model $model) {\n if (method_exists($model, 'getName')) {\n $this->name = $model->getName();\n return;\n }\n if ($model->offsetExists('name')) {\n $this->name = $model->name;\n return;\n }\n throw new Name_Att_Missing(\"name not found in {$this->model_type}\");\n }", "title": "" }, { "docid": "fb436478aa91df65499cf9b5caf00230", "score": "0.62747246", "text": "public function model()\n {\n return 'App\\Models\\User';\n }", "title": "" }, { "docid": "8b8b21d89f41e302cbad22853bee99da", "score": "0.6268243", "text": "public function model()\n {\n return \\App\\Models\\User::class;\n }", "title": "" }, { "docid": "3a97abff0bba785388b27007b46cd7d4", "score": "0.6249825", "text": "protected function getModel()\n {\n $name = $this->getNameInput();\n $rootNamespace = $this->laravel->getNamespace();\n $modelNamespace = $this->laravel['config']->get('datatables-buttons.namespace.model');\n\n return $this->option('model')\n ? $rootNamespace . \"\\\\\" . ($modelNamespace ? $modelNamespace . \"\\\\\" : \"\") . str_singular($name)\n : $rootNamespace . \"\\\\User\";\n }", "title": "" }, { "docid": "76ffe268704c0d42616cfd68f4bd11d1", "score": "0.6209086", "text": "public function setNameAttribute($value){\n //Kita akan mengakses kolom \"nama\" dari tabel users\n //Sehingga NAMAKOLOM = nama (Diawali dengan huruf besar)\n\n $this->attributes['name'] = strtoupper($value);\n }", "title": "" }, { "docid": "58c78226e4b9e10e84700e59717d0686", "score": "0.6204652", "text": "public function setName($newName) {\n\t\t$this->username = $newName;\n\t\t$this->iusername = strtolower($newName);\n\t}", "title": "" }, { "docid": "332811234040a4cbdbfc12e35c19476a", "score": "0.6195825", "text": "public function setUserName(string $userName);", "title": "" }, { "docid": "5af712c953a825501795917d7af25c28", "score": "0.61537313", "text": "public function getName()\n {\n return 'user_form';\n }", "title": "" }, { "docid": "9190b4f2eca171393c9d695d5b10a1a3", "score": "0.61299723", "text": "protected function set_username($name)\n\t{\n\t\tself::$username = $name;\n\t}", "title": "" }, { "docid": "56d3f93d879ffa6348270c47c88b845a", "score": "0.6120639", "text": "public function setName($name){\n $this->auth_name = $name;\n }", "title": "" }, { "docid": "0be0a8ffd383fd590bd062e9a016e9a1", "score": "0.61077166", "text": "public function setNameAttribute($value){\n $this->attributes['name'] = ucfirst($value);\n }", "title": "" }, { "docid": "0e37348041044bb86b313f95ca5f6481", "score": "0.610163", "text": "public function setUserModel($userModel) {\n $this->models['userModel'] = $userModel;\n }", "title": "" }, { "docid": "cd58fdd55204554b581c937296dc6ea2", "score": "0.60999995", "text": "public function getUserNameAttribute()\n {\n return $this->user->name;\n }", "title": "" }, { "docid": "2e7c5e6f7bd2e1b381011b65da78bbaf", "score": "0.6090737", "text": "public function setName($name)\n {\n $this->name = is_string($name) ? ucfirst($name) : $this->name;\n }", "title": "" }, { "docid": "b20c8eb3ca5cc986741a0492e99d60ce", "score": "0.6068289", "text": "public static function getUserModel(): string\n {\n if (! isset(static::$userModel)) {\n $provider = \\config('auth.guards.web.provider');\n\n static::setUserModel(\\config(\"auth.providers.{$provider}.model\"));\n }\n\n return static::$userModel;\n }", "title": "" }, { "docid": "723e96c98d548ad62a0020535a384d1d", "score": "0.6043564", "text": "public function setUserName($val)\n {\n $this->_propDict[\"userName\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "f8ee11a5fcbf5ac650f1097c3ef9d06b", "score": "0.60356545", "text": "public function setNameAttribute($value)\n {\n $this->attributes['name'] = ucfirst($value);\n }", "title": "" }, { "docid": "39033214bcd46ec79f7ce0a0abf14037", "score": "0.60185814", "text": "public function setUser_name($user_name)\n {\n $this->user_name = $user_name;\n\n return $this;\n }", "title": "" }, { "docid": "f06224028b84e4ad346c7502ec47e059", "score": "0.5985272", "text": "public function setUser_name($user_name) {\n $this->_user_name = (string)$user_name;\n $this->_params['user_name'] = (string)$user_name;\n return $this;\n }", "title": "" }, { "docid": "d278e9fe6440e8affc981121f5dd359d", "score": "0.59646136", "text": "public function setUsername($usrName){\n $this->username = $usrName;\n }", "title": "" }, { "docid": "1a1354d3b9d688d965f9af129fb46d25", "score": "0.59374213", "text": "public function setName($name){\n $this->name= $name;\n }", "title": "" }, { "docid": "829db85f4f2deec1eeaca6c2a3a2775a", "score": "0.59363747", "text": "public function set_user_name($p_user_name){\n\t\t$this->v_user_name = $p_user_name;\n\t}", "title": "" }, { "docid": "c557da2e12dc575a9ceefc93a8b9e8f6", "score": "0.5935205", "text": "public function getName()\n {\n return 'kendoctor_app_reset_password_user';\n }", "title": "" }, { "docid": "1e824771310183d59a7274b62a8defa9", "score": "0.5933373", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "8c3a9a269275224171cdfce1f26c05ca", "score": "0.5932928", "text": "public function getName()\n {\n return 'admin_user';\n }", "title": "" }, { "docid": "8dff7304a2da960f664d3dfd0f6c45d0", "score": "0.59224707", "text": "protected function entityName()\n\t{\n\t\treturn DefaultUser::class;\n\t}", "title": "" }, { "docid": "852158830e21fbbd3eb930bf1a5bb47e", "score": "0.59210247", "text": "public function setName($name) {\n \t$this->name = $name;\n }", "title": "" }, { "docid": "ea96bbfb0ac912aa8cd2c9e07b531c48", "score": "0.59208935", "text": "public function setName( $name ) {\n\t\t$this->_name = $name;\n }", "title": "" }, { "docid": "50a08d8ee37df4b3da985534b0be6ee0", "score": "0.591963", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "05ec2d3489ce8029704b78ff96402ea0", "score": "0.5910474", "text": "function setName($name) {\n $this->_name = $name;\n }", "title": "" }, { "docid": "c32b946296677bd1d7d481de58e9ddf8", "score": "0.5909605", "text": "public function setName($name){\n\n\t\t$this->_name = $name;\n\n\t}", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5909408", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.5908993", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.5908993", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.5908993", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "be2ce27ef605083fe3364fce3c147c36", "score": "0.5907393", "text": "function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "588751de826f813f2c12e57d9ceca485", "score": "0.5906859", "text": "protected function setNames()\n {\n $this->actionSlug = 'assign_to_user';\n $this->actionLabel = __('Assign');\n }", "title": "" }, { "docid": "21100dd8ae8c0a41312d34c2fda2d7d4", "score": "0.59046274", "text": "function setName( $value )\n {\n $this->Name = $value;\n }", "title": "" }, { "docid": "0b1107307d83ab14406f699f1d6a77af", "score": "0.59018874", "text": "function setName($data) { $this->name = $data; }", "title": "" }, { "docid": "9cc15f4b373442b2de5d208d3599681c", "score": "0.5900941", "text": "public function setName($name) {\n $this->_name = $name;\n }", "title": "" }, { "docid": "ef243135831f443b9e6cb467ba3fbe48", "score": "0.5899883", "text": "public function setName ($name) {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "d2647839ab2d7faecdc65febb87c2161", "score": "0.58960754", "text": "public function setName($name){\n $this-> name = $name;\n }", "title": "" }, { "docid": "a0a124815b89b77aae3b816063f26b33", "score": "0.5894931", "text": "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "title": "" }, { "docid": "7f7043487fdebe2ccfe0ec24665282e9", "score": "0.58927274", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.58757395", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.58757395", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "0a3ba5747a299e0b3ba8972dad5057f2", "score": "0.5872725", "text": "function setName( $name )\r\n {\r\n $this->Name = $name;\r\n }", "title": "" }, { "docid": "f888c5f1adf905fcb5cd8eeb31df3e4e", "score": "0.5869732", "text": "public function setName( $name ) {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "e0c7ec45493634f4ae148511c1666c43", "score": "0.58611774", "text": "public function setUseName($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->user_name !== $v) {\n $this->user_name = $v;\n $this->modifiedColumns[UserTableMap::COL_USER_NAME] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "0e323ea3d94d4a288733605f3ac9f201", "score": "0.5861122", "text": "public function setModel()\n {\n return UserRole::class;\n }", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5859192", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5859192", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5859192", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.5857437", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "a49915c4858abd61725c67467656dca1", "score": "0.5845739", "text": "public function setModel($name, $model) {\n $this->models[$name] = $model;\n }", "title": "" }, { "docid": "33a2f5bf5f8751efec2bfb790136247a", "score": "0.5841313", "text": "public static function userModel()\n {\n $model = config('admin.modules.users.model');\n return new $model;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "833996aa1701be1f8b358201ea3c9251", "score": "0.5838685", "text": "public function model()\n {\n return User::class;\n }", "title": "" }, { "docid": "05c392aed2ad6f0103e8d9fce0105657", "score": "0.58324355", "text": "public function setName( $name ) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "dedb0d2b519236dc9b5702abcef9a9ca", "score": "0.5831456", "text": "public static function getUserModel(): string\n {\n return config('nova-launch.classes.user');\n }", "title": "" }, { "docid": "d6c5bac15447c3e2cafd0391205b582a", "score": "0.5829626", "text": "public function setName( $name ) {\n $this->name = $name;\n }", "title": "" }, { "docid": "a4b29c7c5cc22debbef6f455d95dd169", "score": "0.5827348", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "a4b29c7c5cc22debbef6f455d95dd169", "score": "0.5827348", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "9fff7aa1186c1261c54668da2e817dda", "score": "0.5826704", "text": "public function setUserName($value)\n {\n return $this->set('UserName', $value);\n }", "title": "" } ]
b91b2cd7938e7e26d494a8e5e8866e28
Responsable d'un dossier | Responsable du Site | Responsable du Client
[ { "docid": "8081e9eb9d9f6fc3186b76f03bb0a692", "score": "0.56227946", "text": "public function getResponsableParDossier(Dossier $dossier)\n {\n $responsables = $this->getEntityManager()\n ->getRepository('AppBundle:ResponsableCsd')\n ->findBy(array(\n 'dossier' => $dossier,\n 'typeCsd' => 2\n ));\n if ($responsables && count($responsables) > 0) {\n return $responsables;\n }\n $responsables = $this->getEntityManager()\n ->getRepository('AppBundle:ResponsableCsd')\n ->findBy(array(\n 'site' => $dossier->getSite(),\n 'typeCsd' => 1\n ));\n if ($responsables && count($responsables) > 0) {\n return $responsables;\n }\n $responsables = $this->getEntityManager()\n ->getRepository('AppBundle:ResponsableCsd')\n ->findBy(array(\n 'client' => $dossier->getSite()->getClient(),\n 'typeCsd' => 0\n ));\n if ($responsables && count($responsables) > 0) {\n return $responsables;\n }\n return [];\n }", "title": "" } ]
[ { "docid": "9ee5632d12a548646e1662c335da96da", "score": "0.6703464", "text": "public function getResponsable() { return $this->_Responsable; }", "title": "" }, { "docid": "b8d13ee9ec596b5c313d5f0a05d1f18a", "score": "0.64563566", "text": "public function isResponsable(): bool\n {\n $userId = SessionController::getValue('idfuncionario');\n return in_array($userId, [$this->propietario, $this->responsable]);\n }", "title": "" }, { "docid": "a13e04b6b61a3c56e8917ccfcd58f24b", "score": "0.6127365", "text": "function cargos_responsables($id_r)//para identificar el proceso.\n\t\t\t\t\t{\n\t\t\t\t\t parent::conectar();\n\t\t\t\t\t $sql=\"SELECT DISTINCT(IDCARGO),NOMBRECARGO FROM `view_empleados` WHERE ID_REALIZA=$id_r order by NOMBRECARGO\";\n\t \t $record_consulta = $this->obj_con->Execute($sql);\n\t\t\t\t\t while (!$record_consulta->EOF)\n\t\t\t\t\t {\n\t\t\t\t\t $id_cargo=$record_consulta->fields[\"IDCARGO\"];\n\t\t\t\t\t $nombrepuesto= $record_consulta->fields[\"NOMBRECARGO\"];\n\t\t\t\t\t\t $data1[] = array('idcargo'=>$id_cargo,'responsable'=>$nombrepuesto);\n\t\t\t\t\t $record_consulta->MoveNext();\n\t\t\t\t\t }\n\t\t\t\t\t $repuesta = array('success'=>true,'data'=>$data1); \n return $repuesta;\n\t\t\t\t\t}", "title": "" }, { "docid": "81e6c0b8d097b0fb99cc959622f34362", "score": "0.6049241", "text": "public function obtemChamadosPendentesSemResponsavel() {\n\t\t\t$filtro = array(\"status\" => \"!in:OK::F\", \"responsavel\" => \"null\");\n\t\t\treturn($this->hdtb_chamado->obtem($filtro));\n\t\t}", "title": "" }, { "docid": "29d8bac854f9f75be3391d35d43fcf3c", "score": "0.59939367", "text": "public function getResponsable(): string\n {\n $data = $this->getRelationFk('Funcionario', 'responsable');\n return $data ? $data->nombres . ' ' . $data->apellidos : '';\n }", "title": "" }, { "docid": "91ff8d46a82836b1841c8e0faf7f4aee", "score": "0.59533197", "text": "public function getFiltreResponsable() {\n\t\n\t\t$this->log->debug(\"Projet::getFiltreResponsable() Début\");\n\t\n\t\t$session = new Session();\n\t\n\t\t// Vérifier si un filtre est spécifié dans la session\n\t\t$filtreResponsable = $session->get(\"pref_filtre_responsable\");\n\t\n\t\t// Vérifier si un filtre est passé en paramètre\n\t\t$filtreResponsableParam = Web::getParam(\"responsable\");\n\t\n\t\t// Déterminer si on utilise la valeur passé en paramètre\n\t\tif ($filtreResponsableParam != \"\") {\n\t\n\t\t\t// Si l'utilisateur veut voir toutes les collections enlever le filtre\n\t\t\tif ($filtreResponsableParam == \"tous\") {\n\t\t\t\t$session->delete(\"pref_filtre_responsable\");\n\t\t\t\t$filtreResponsable = \"\";\n\t\t\t} else {\n\t\t\t\t// Stocker le tri dans la session\n\t\t\t\t$session->set(\"pref_filtre_responsable\", $filtreResponsableParam);\n\t\t\t\t$filtreResponsable = $filtreResponsableParam;\n\t\t\t}\n\t\t}\n\t\n\t\t$this->log->debug(\"Projet::getFiltreResponsable() Fin\");\n\t\n\t\treturn $filtreResponsable;\n\t}", "title": "" }, { "docid": "dbaf4ec8b2051f53615e172ad3d3ac0b", "score": "0.5944414", "text": "public function getResponsable_id()\n {\n return $this->responsable_id;\n }", "title": "" }, { "docid": "a725c525fb9736bd192f7fe89017f6c7", "score": "0.5932614", "text": "public function getListeVisiteurDelegue() {\n $gsbFrais= new GsbFrais();\n $idVisiteur = Session::get('id');\n $mesVisiteurDelegue = $gsbFrais->getListeVisiteurDelegue($idVisiteur);\n $titreVue= \"Liste des visiteurs et délégués de mon secteur\";\n if (Session::get('role') == 'Responsable'){\n return view('listeVisiteurDelegue', compact('mesVisiteurDelegue', 'titreVue'));\n }\n else{\n return view('home');\n }\n }", "title": "" }, { "docid": "f7eb1a35830edf3960f5109cbd74f44b", "score": "0.5871567", "text": "public function envoiCourrielNouveauResponsable($courriel) {\n\t\n\t\t$this->log->debug(\"Projet::envoiCourrielNouveauResponsable() Début courriel : '$courriel'\");\n\t\n\t\t// Préparer le courriel\n\t\t$gabaritCourriel = REPERTOIRE_GABARITS_COURRIELS . \"projet-nouveau-responsable.php\";\n\t\n\t\t// Vérifier si le fichier existe, sinon erreur\n\t\tif (!file_exists($gabaritCourriel)) {\n\t\t\t$this->log->erreur(\"Le gabarit du courriel '$gabaritCourriel' ne peut être localisé.\");\n\t\t}\n\t\n\t\t// Obtenir le contenu\n\t\t$contenu = Fichiers::getContenuElement($gabaritCourriel , $this);\n\t\n\t\t// Envoi du courriel\n\t\t$courrielObj = new Courriel($this->log);\n\t\t$succes = $courrielObj->envoiCourriel($courriel, TXT_COURRIEL_NOUVEAU_RESPONSABLE_OBJET, $contenu);\n\t\t\t\n\t\t$this->log->debug(\"Projet::envoiCourrielNouveauResponsable() Début\");\n\t\n\t\treturn $succes;\n\t}", "title": "" }, { "docid": "3ccdac580712b5138a63c1874917da26", "score": "0.5831722", "text": "public function getFiltreResponsableAdmin() {\n\t\n\t\t$this->log->debug(\"Projet::getFiltreResponsableAdmin() Début\");\n\t\n\t\t$session = new Session();\n\t\n\t\t// Vérifier si un filtre est spécifié dans la session\n\t\t$filtreResponsable = $session->get(\"pref_filtre_responsable_admin\");\n\t\n\t\t// Vérifier si un filtre est passé en paramètre\n\t\t$filtreResponsableParam = Web::getParam(\"responsable\");\n\t\n\t\t// Déterminer si on utilise la valeur passé en paramètre\n\t\tif ($filtreResponsableParam != \"\") {\n\t\n\t\t\t// Si l'utilisateur veut voir toutes les collections enlever le filtre\n\t\t\tif ($filtreResponsableParam == \"tous\") {\n\t\t\t\t$session->delete(\"pref_filtre_responsable_admin\");\n\t\t\t\t$filtreResponsable = \"\";\n\t\t\t} else {\n\t\t\t\t// Stocker le tri dans la session\n\t\t\t\t$session->set(\"pref_filtre_responsable_admin\", $filtreResponsableParam);\n\t\t\t\t$filtreResponsable = $filtreResponsableParam;\n\t\t\t}\n\t\t}\n\t\n\t\t$this->log->debug(\"Projet::getFiltreResponsableAdmin() Fin\");\n\t\n\t\treturn $filtreResponsable;\n\t}", "title": "" }, { "docid": "de88d7dbee5cc9e441f2da9cc090b4d3", "score": "0.58222586", "text": "public function getIdResponsableProjet() {\n\t\n\t\t$this->log->debug(\"Projet::getIdResponsableProjet() Début obtenir le responsable du projet '\" . $this->get(\"id_projet\") . \"'\");\n\t\n\t\t$idResp = 0;\n\t\t\n\t\ttry {\n\t\t\t// SQL de la requête\n\t\t\t$sql = \"select id_usager\n\t\t\t\t\tfrom rprojet_usager_role\n\t\t\t\t\twhere id_projet = ?\n\t\t\t\t\tand id_role = 1\";\n\t\t\t$sth = $this->dbh->prepare($sql);\n\t\t\t$rows = $sth->execute(array($this->get(\"id_projet\")));\n\t\t\t\t\n\t\t\t// Obtenir le prénom et nom du responsable\n\t\t\t$idResp = $sth->fetchColumn();\n\t\n\t\t} catch (Exception $e) {\n\t\t\tErreur::erreurFatal('018', \"Projet::getIdResponsableProjet() - Erreur technique détectée : '\" . $e->getMessage() . $e->getTraceAsString() . \"'\", $this->log);\n\t\t}\n\t\n\t\n\t\t$this->log->debug(\"Projet::getIdResponsableProjet() Fin responsable = '$idResp'\");\n\t\n\t\treturn $idResp;\n\t}", "title": "" }, { "docid": "53608779b2aadf1173586cd4dc50d705", "score": "0.57752347", "text": "function Responder_Responsable($auditoria,$pregunta,$solucion,$responsable){\n $ClsPla = new ClsPlan();\n \n if($auditoria != \"\" && $pregunta != \"\" && $solucion != \"\"){\n $sql = $ClsPla->insert_responsable($auditoria,$pregunta,$solucion,$responsable);\n\t\t$rs = $ClsPla->exec_sql($sql);\n //$respuesta->alert(\"$sql\");\n if($rs == 1){\n \treturn 'Correcto';\n // return $respuesta;\n }else{\n \t$respuesta = 'Error en la transaccion';\n // $respuesta->script('swal(\"Error\", \"Error en la transacci\\u00F3n\", \"error\").then((value)=>{ cerrar(); });');\n }\t\n\t}\n\n\treturn $respuesta;\n}", "title": "" }, { "docid": "176f67a9aecb87a6d2d3bdc19cb0e5e3", "score": "0.57688904", "text": "function setContabilizable(){\r\n $this->procedimiento='vef.ft_venta_ime';\r\n $this->transaccion='VF_VENCONTA_MOD';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_venta','id_venta','int4');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "c72afaad343f144700a17240228b84bf", "score": "0.5757863", "text": "public function findResponsablesAction(){\n $em = $this->getDoctrine()->getManager();\n $personas = $em->getRepository('AcuerdosGestionBundle:Persona')->findAll();\n\n return $this->render('AcuerdosGestionBundle:Persona:responsables.html.twig',array(\n 'responsables' => $personas,\n ));\n }", "title": "" }, { "docid": "bae5e5566aff6c1321379d3e02b4ade8", "score": "0.5666438", "text": "public function remplacerResponsable($idRespOrig, $idRespNouv) {\n\t\n\t\t$this->log->debug(\"Projet::remplacerResponsable() Début id du responsable original '$idRespOrig' id nouveau responsable : '$idRespNouv'\");\n\n\t\t// Ajouter le nouveau rôle de responsable au collaborateur\n\t\t$this->modifierRole($idRespOrig, Projet::ROLE_RESPONSABLE, Projet::ROLE_COLLABORATEUR);\n\t\t\n\t\t// Enlever le rôle de responsable original et le mettre collaborateur\n\t\t$this->modifierRole($idRespNouv, Projet::ROLE_COLLABORATEUR, Projet::ROLE_RESPONSABLE);\n\t\t\t\n\t\t// Envoi courriels aux collaborateurs\n\t\t$this->envoiCourrielCollaborateursModifications();\n\n\t\t// Envoi courriel au nouveau responsable\n\t\t$u = new Usager($this->log, $this->dbh);\n\t\t$u->getUsagerParIdUsager($idRespNouv);\n\t\t\n\t\t// Ajouter le prénom et nom pour le courriel\n\t\t$this->set(\"prenom\", $u->get(\"prenom\"));\n\t\t$this->set(\"nom\", $u->get(\"nom\"));\n\t\t\n\t\t$this->envoiCourrielNouveauResponsable($u->get(\"courriel\"));\n\t\t\n\t\t$this->log->debug(\"Projet::remplacerResponsable() Fin'\");\n\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "08ad02210623051729cce5492f69d106", "score": "0.56314963", "text": "function Responder_Ponderacion($auditoria,$pregunta,$ejecucion,$seccion,$tipo,$peso,$aplica,$ponderacion, $observacion = ''){\n // $respuesta = new xajaxResponse();\n $ClsEje = new ClsEjecucion();\n \n if($auditoria != \"\" && $pregunta != \"\" && $ejecucion != \"\" && $tipo != \"\"){\n \t$sql = $ClsEje->insert_respuesta($auditoria,$pregunta,$ejecucion,$seccion,$tipo,$peso,$aplica,$ponderacion, $observacion);\n\t\t$rs = $ClsEje->exec_sql($sql);\n if($rs == 1){\n \treturn 'Correcto';\n }else{\n \t\treturn 'Error en la transaccion';\n }\t\n\t} else {\n\t\treturn 'Hace falta un dato';\n\t}\n\n\treturn $respuesta;\n}", "title": "" }, { "docid": "f4e1b0a9bab1431b7e50c78a3ddab26f", "score": "0.56190735", "text": "public function encours_espacelivreur_client() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.user_id' => $this->request->data['Commande']['user_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'En Cours'),\n 'order' => array('Commande.created DESC')\n ));\n if (!empty($this->request->data['Commande']['currentDate'])) {\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.modified LIKE' => $this->request->data['Commande']['currentDate'] . \" %\", 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.user_id' => $this->request->data['Commande']['user_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'En Cours'),\n 'order' => array('Commande.created DESC')\n ));\n }\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $encourscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "574712b6c978209cbbd2a6ec273e21bf", "score": "0.5612023", "text": "public function getNomResponsable(): ?string {\n return $this->nomResponsable;\n }", "title": "" }, { "docid": "0997b643251ad79b48bd7ca5335bcbda", "score": "0.56113535", "text": "public function cambiarOrdenClienteAction() {\n if ($this->values['permisos']['permisosModulo']['UP']) {\n $datos = new $this->parentEntity($this->request['Id']);\n $datos->setOrdenCliente($this->request['OrdenCliente']);\n $datos->save();\n return $this->listAction($this->request['IDComercial'], $this->request['dia']);\n } else {\n return array('template' => '_global/forbiden.html.twig');\n }\n }", "title": "" }, { "docid": "b295954dd6e7cbc1438f4e65bfc5337c", "score": "0.56077343", "text": "public function setNomResponsable(?string $nomResponsable): Intervenants {\n $this->nomResponsable = $nomResponsable;\n return $this;\n }", "title": "" }, { "docid": "54df85c2be783295bc78a2d826a3d06a", "score": "0.5603544", "text": "public function attentes_ramassage() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Getby', 'Livreur', 'Historique', 'Historique.User');\n $commandesespaceclient = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'Non Traitée', 'Commande.user_id' => $this->request->data['Commande']['user_id']),\n 'order' => array('Commande.modified DESC')\n ));\n http_response_code(200);\n echo json_encode(array(\n 'data' => $commandesespaceclient,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "8c6f000b08058cce7938edb86da61d03", "score": "0.55468345", "text": "public function encours_espacelivreur() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'En Cours'),\n 'order' => array('Commande.created DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $encourscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "45c7e2b1d6acd3ec20727796c6ef7c65", "score": "0.55419713", "text": "public function respostacontato()\n {\n //\n }", "title": "" }, { "docid": "18b287c5102fcd9ae62080b2bdd88924", "score": "0.5536556", "text": "public function getResponsablesAgencia($id_responsable) {\r\n $dealer_id = $this->getConcesionarioDealerId($id_responsable);\r\n $grupo_id = (int) Yii::app()->user->getState('grupo_id');\r\n $cargo_id = (int) Yii::app()->user->getState('cargo_id');\r\n $cargo_adicional = (int) Yii::app()->user->getState('cargo_adicional');\r\n\r\n if (empty($dealer_id)) {\r\n $array_dealers = $this->getDealerGrupoConc($grupo_id);\r\n $dealer_id = implode(', ', $array_dealers);\r\n }\r\n\r\n /*$cre = new CDbCriteria();\r\n $cre->condition = \" cargo_id = 71 AND dealers_id IN ({$dealer_id}) \";\r\n\r\n if ($grupo_id == 4)// IOKARS\r\n $cre->condition = \" cargo_id IN (71,73) AND dealers_id IN ({$dealer_id}) \";\r\n if ($grupo_id == 9)// MOTRICENTRO\r\n $cre->condition = \" cargo_id IN (71,86) AND dealers_id IN ({$dealer_id}) \";\r\n if(($grupo_id == 2 || $grupo_id == 3) && $cargo_id == 85) // ASIAUTO Y KMOTOR - CARGO JEFE WEB \r\n $cre->condition = \" cargo_id = 86 AND dealers_id IN ({$dealer_id}) \";\r\n if($grupo_id == 2 && $cargo_adicional == 85){ // ASIAUTO - JEFE SHOWROOM/JEFE WEB\r\n $array_dealers = $this->getDealerGrupoConcUsuario($id_responsable,2);\r\n $dealerList = implode(', ', $array_dealers);\r\n $cre->condition = \" cargo_id IN (71,86) AND dealers_id IN ({$dealerList}) \"; \r\n\r\n }\r\n \r\n \r\n $cre->order = \" nombres ASC\";\r\n $asesores = Usuarios::model()->findAll($cre);\r\n $data = '';\r\n foreach ($asesores as $value) {\r\n if($value['cargo_id'] == 86 || $value['cargo_adicional'] == 86){\r\n $data .= '<li><a id=\"' . $value['id'] . '\" onclick=\"asignar(' . $value['id'] . ');\" class=\"asign-lt lt-web\">' . $value['nombres'] . ' ' . $value['apellido'] . '</a></li>';\r\n }else{\r\n $data .= '<li><a id=\"' . $value['id'] . '\" onclick=\"asignar(' . $value['id'] . ');\" class=\"asign-lt\">' . $value['nombres'] . ' ' . $value['apellido'] . '</a></li>';\r\n }\r\n \r\n }\r\n return $data;*/\r\n $cre = new CDbCriteria();\r\n $cre->condition = \" cargo_id = 71 AND dealers_id IN ({$dealer_id}) \";\r\n\r\n if ($grupo_id == 4)// IOKARS\r\n $cre->condition = \" cargo_id IN (71,73) AND dealers_id IN ({$dealer_id}) \";\r\n if ($grupo_id == 9)//\r\n $cre->condition = \" cargo_id IN (71,86) AND dealers_id IN ({$dealer_id}) \";\r\n if(($grupo_id == 2 || $grupo_id == 3) && $cargo_id == 85) \r\n $cre->condition = \" cargo_id = 86 AND dealers_id IN ({$dealer_id}) \";\r\n \r\n $cre->order = \" nombres ASC\";\r\n $asesores = Usuarios::model()->findAll($cre);\r\n $data = '';\r\n foreach ($asesores as $value) {\r\n $data .= '<li><a id=\"' . $value['id'] . '\" onclick=\"asignar(' . $value['id'] . ');\" class=\"asign-lt\">' . $value['nombres'] . ' ' . $value['apellido'] . '</a></li>';\r\n }\r\n return $data;\r\n }", "title": "" }, { "docid": "d8148554b7e1291020b82d29ea96c7f5", "score": "0.5530896", "text": "function GruposesResponsable() {\n\n $this->query = \"\n SELECT id_grupo,nombre FROM grupo\n WHERE\n responsable_grupo LIKE '%\".$this->responsable_grupo.\"%' \n \"\n ;\n $this->get_results_from_query();\n if ($this->feedback['ok']){\n $this->feedback['code'] = '20036'; // Éxito en la búsqueda\n } else {\n if ($this->feedback['code'] != '00005') // Si no fallo de gestor de BD\n $this->feedback['code'] = '20010'; // Error de búsqueda\n }\n return $this->feedback;\n }", "title": "" }, { "docid": "ba5b19f8a50b120df187da8e9cc6dc3c", "score": "0.55225176", "text": "public function bl_espacelivreur_client() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $blscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.receiver_id' => $this->request->data['Commande']['receiver_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'Livrée'),\n 'order' => array('Commande.created DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $blscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "7c3aeb138ac5f8f3801199e2d27e59d6", "score": "0.5500946", "text": "function _set_client_reciever($id_cliente,$bForce = FALSE) \n\t{\n\t\t// Separar este bloque y los 2 del final en 3 metodos? 2 solo para los del final?\n\n\t\tif (!is_numeric($id_cliente)) return FALSE;\n\t\tif (!isset($bForce)) $bForce = FALSE;\n\t\t// Si tenemos un agente seleccionado y el pedido esta marcado como estricto,\n\t\t//\t\tel cliente solo puede ser alguno de los clientes del agente.\n\t\tif ((int)$this->_aPedido[id_agente] AND $this->_fPedido & inmPed_STRICT) { \n\t\t\t// Fixme: Que pasa si un cliente no tiene agentes? podria este agente hacer el pedido?.\n\t\t\tif (is_array($this->_aClientes_agente) AND !is_array($this->_aClientes_agente[$id_cliente])) {\n\t\t\t\t$this->error(500,\"El receptor no se corresponde a ninguno de los clientes del agente seleccionado\");\n\t\t\t\treturn FALSE;\n\t\t\t} else {\n\t\t\t\t$id_cliente = (int)$id_cliente;\n\t\t\t\t$this->_aAgente['comision'] = $this->_aClientes_agente[$id_cliente]['comision'];\n\t\t\t\t$this->_aAgente['comision_repartida'] = $this->_aClientes_agente[$id_cliente]['comision_repartida'];\n\t\t\t}\n\t\t}\n\t\t$oDb = $this->_db;\n\t\tif (!is_object($oDb)) {\n\t\t\t$this->error(1,\"DB connection not instanciated\");\n\t\t\treturn FALSE;\n\t\t}\n\t\t// Fixme: Hacer comprobacion de si el cliente seleccionado es el mismo que el activo ahora mismo.\n\t\t// Fixme: Permitir cambio de cliente, cambiando la tarifa y llamando a eval_conditions()\n\t\t$id_empresa = (int)$this->_aEmisor['id_empresa'];\n\t\t$id_cli = (int)$this->_aPedido['id_cliente'];\n\t\tif ($id_cli != $id_cliente OR $bForce) {\n\t\t\t\t // Caso de compras, id_proveedor\n\t\t\t\t $cons = \"SELECT \".\n\t\t\t\t\t\t\t // Datos del receptor\n\t\t\t\t\t\t\t \"Cli.id_cliente as 'cli_id_cliente', \".\n\t\t\t\t\t\t\t \"Cli.id_cliente as 'cli_id', \".\n\t\t\t\t\t\t\t \"Cli.id_cliente as 'ped_id_cliente', \".\n\t\t\t\t\t\t\t \"Cli.razon_social as 'cli_razon_social', \".\n\t\t\t\t\t\t\t \"Cli.nombre as 'cli_nombre', \".\n\t\t\t\t\t\t\t \"Cli.apellidos as 'cli_apellidos', \".\n\t\t\t\t\t\t\t \"Cli.direccion_facturacion as 'cli_direccion_facturacion', \".\n\t\t\t\t\t\t\t \"Cli.poblacion as 'cli_poblacion', \".\n\t\t\t\t\t\t\t \"Cli.cp as 'cli_cp', \".\n\t\t\t\t\t\t\t \"Cli.prefijo_cif as 'cli_prefijo_cif', \".\n\t\t\t\t\t\t\t \"Cli.cif as 'cli_cif', \".\n\t\t\t\t\t\t\t \"Cli.telefono1 as 'cli_telefono1', \".\n\t\t\t\t\t\t\t \"Cli.fax as 'cli_fax', \".\n\t\t\t\t\t\t\t \"Cli.email as 'cli_email', \".\n\t\t\t\t\t\t\t \"Prov.nombre as 'cli_provincia', \".\n\t\t\t\t\t\t\t \"Div2.id_divisa as 'cli_id_divisa', \".\n\t\t\t\t\t\t\t \"Div2.leyenda as 'cli_div_leyenda', \".\n\t\t\t\t\t\t\t \"Div2.nombre as 'cli_div_nombre', \".\n\t\t\t\t\t\t\t \"(1/Div2.ratio) as 'cli_div_ratio' \".\n\t\t\t\t\t\t\t ( \t($id_empresa) \n\t\t\t\t\t\t\t\t ? \", CliEmp.id_forma_pago as 'ped_id_forma_pago', \".// forma pago defecto receptor\n\t\t\t\t\t\t\t\t \t \"FPago.nombre as 'ped_nombre_forma_pago', \".// forma pago defecto receptor\n\t\t\t\t\t\t\t\t\t\t\"FPago.nombre as 'fpa_nombre', \".\n\t\t\t\t\t\t\t\t\t\t\"FPago.id_forma_pago as 'fpa_id_forma_pago', \".\n\t\t\t\t\t\t\t\t\t\t\"FPago.num_efectos as 'fpa_num_efectos', \".\n\t\t\t\t\t\t\t\t\t\t\"FPago.dias_efectos as 'fpa_dias_efectos', \".\n\t\t\t\t\t\t\t\t\t\t\"FPago.medio_pago as 'fpa_medio_pago', \".\n\t\t\t\t\t\t\t\t\t // Tarifa de precios (solo ventas)\n\t\t\t\t\t\t\t\t\t \"Tar.campo_accion as 'tar_campo_accion', \".\n\t\t\t\t\t\t\t\t\t \"Tar.pto_primero as 'tar_pto_primero', \".\n\t\t\t\t\t\t\t\t\t \"Tar.pto_segundo as 'tar_pto_segundo', \".\n\t\t\t\t\t\t\t\t\t \"Tar.monto as 'tar_monto', \".\n\t\t\t\t\t\t\t\t\t\t\"CliEmp.dia_facturacion_1 as 'fpa_dia_I', \".\t\n\t\t\t\t\t\t\t\t\t\t\"CliEmp.dia_facturacion_2 as 'fpa_dia_II', \".\t\n\t\t\t\t\t\t\t\t\t\t\"CliEmp.dia_facturacion_3 as 'fpa_dia_III', \".\t\n\t\t\t\t\t\t\t\t\t \"CliEmp.id_tarifa as 'ped_id_tarifa', \".\t// defecto cliente\n\t\t\t\t\t\t\t\t\t \"TCli.aplicar_iva as 'cli_aplicar_iva', \".\n\t\t\t\t\t\t\t\t\t \"TCli.aplicar_recargo as 'cli_aplicar_recargo', \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.dto_directo as 'cli_dto_directo', \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.dto_pronto_pago as 'cli_dto_pronto_pago', \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.aplicar_retencion as 'cli_aplicar_retencion', \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.mostrar_ofertas as 'cli_mostrar_ofertas', \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.aplicar_dto_vol as 'cli_aplicar_dto_volumen' \"\n\t\t\t\t\t\t\t\t : \"\").\n\t\t\t\t\t\t\t \"FROM Clientes Cli, Provincias Prov, Divisa Div2 \".\n\t\t\t\t\t\t\t ( \t($id_empresa)\n\t\t\t\t\t\t\t\t ? \t\", Tarifas Tar, Forma_pago FPago, Clientes_empresas CliEmp, \".\n\t\t\t\t\t\t\t\t\t \"Tipo_cliente TCli \"\n\t\t\t\t\t\t\t\t : \"\").\n\t\t\t\t\t\t\t \"WHERE Cli.id_cliente = $id_cliente AND Prov.id_provincia = Cli.id_provincia AND \".\n\t\t\t\t\t\t\t \"Cli.id_divisa = Div2.id_divisa \".\n\t\t\t\t\t\t\t (\t($id_empresa)\n\t\t\t\t\t\t\t\t ? \t\"AND CliEmp.id_cliente = Cli.id_cliente AND CliEmp.id_empresa = $id_empresa AND \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.id_forma_pago = FPago.id_forma_pago AND CliEmp.id_tarifa = Tar.id_tarifa AND \".\n\t\t\t\t\t\t\t\t\t \"CliEmp.id_tipo_cliente = TCli.id_tipo_cliente \"\n\t\t\t\t\t\t\t\t : \"\");\n\n\t\t\t\t $id_rs = $oDb->query($cons);\n\t\t\t\t if ($oDb->num_rows($id_rs)) {\n\t\t\t\t\t\t $aPedido = $oDb->fetch_assoc($id_rs);\n\t\t\t\t\t\t foreach($aPedido as $clave => $valor) {\n\t\t\t\t\t\t\t $ref_arr = substr($clave,0,4);\n\t\t\t\t\t\t\t $ref_resto = substr($clave,4);\n\t\t\t\t\t\t\t // debug(\"parcial = $ref_arr, resto = $ref_resto\");\n\t\t\t\t\t\t\t if (!strcasecmp($ref_arr,'ped_')) {\n\t\t\t\t\t\t\t\t $this->_aPedido[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'cli_')) {\n\t\t\t\t\t\t\t\t $this->_aReceptor[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'emp_')) {\n\t\t\t\t\t\t\t\t $this->_aEmisor[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'tar_')) {\n\t\t\t\t\t\t\t\t $this->_aTarifa[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'div_')) {\n\t\t\t\t\t\t\t\t $this->_aDivisa[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'fpa_')) {\n\t\t\t\t\t\t\t\t $this->_aFPago[$ref_resto] = $valor;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t $this->_seek_discounts(TRUE);\n\t\t\t\t } else return FALSE;\n\t\t\t\t $oDb->libera($id_rs);\n\t\t}\n\n\t\t$this->_possible_agents_clients($id_cliente,0);\n\t\t$this->_possible_addresses($id_cliente);\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "2753c2dec30dd935c7b63b28e2a4f880", "score": "0.5494254", "text": "public function testgetResponsabile(){\n $ctr = new StrutturaInternaController(); \n //Attenzione ai testi con le parentesi \n $persint = $ctr->getResponsabile('Servizio Sistema Informatico di Ateneo');\n $this->assertNotNull($persint->matricola); \n }", "title": "" }, { "docid": "2753c2dec30dd935c7b63b28e2a4f880", "score": "0.5494254", "text": "public function testgetResponsabile(){\n $ctr = new StrutturaInternaController(); \n //Attenzione ai testi con le parentesi \n $persint = $ctr->getResponsabile('Servizio Sistema Informatico di Ateneo');\n $this->assertNotNull($persint->matricola); \n }", "title": "" }, { "docid": "8caeed02e298771d8aae4a0a3414edef", "score": "0.5494131", "text": "public function commandes_encours_espaceclient() {\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Getby', 'Livreur', 'Historique', 'Historique.User');\n $commandesespaceclient = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'En Cours', 'Commande.type_remettre' => 'Ramassage'),\n 'order' => array('Commande.modified DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $commandesespaceclient,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n http_response_code(403);\n echo json_encode(array(\n 'text' => __(\"Not Allowed To Access\"),\n 'status' => 403,\n 'type' => 'error'\n ));\n die();\n }", "title": "" }, { "docid": "8bb95b40c1dd757825e48f46eda86560", "score": "0.5485369", "text": "public function setResponsable($Responsable)\n {\n $this->_Responsable = $Responsable;\n\n return $this;\n }", "title": "" }, { "docid": "8a312f36a0b5eaa6e66dc1b7d1f3941c", "score": "0.54821235", "text": "public function commandes_retour_espaceclient() {\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Getby', 'Livreur', 'Historique', 'Historique.User');\n $commandesespaceclient = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'Retour'),\n 'order' => array('Commande.modified DESC')\n ));\n $countcommandes = $this->Commande->find('count', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'Retour'),\n 'order' => array('Commande.modified DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $commandesespaceclient,\n 'count' => $countcommandes,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n http_response_code(403);\n echo json_encode(array(\n 'text' => __(\"Not Allowed To Access\"),\n 'status' => 403,\n 'type' => 'error'\n ));\n die();\n }", "title": "" }, { "docid": "dc96d7c4892d874f6ec54c35da09ff3b", "score": "0.54647416", "text": "public function getAlumnoResponsables()\r\n {\r\n return $this->alumnoResponsables;\r\n }", "title": "" }, { "docid": "00e7888cabdab0ea9094012fc021487b", "score": "0.54393595", "text": "public function commandes_enattentelivraison_espaceclient() {\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Getby', 'Livreur', 'Historique', 'Historique.User');\n $commandesespaceclient = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'AttenteLivraison'),\n 'order' => array('Commande.modified DESC')\n ));\n $count = $this->Commande->find('count', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'AttenteLivraison'),\n 'order' => array('Commande.modified DESC')\n ));\n http_response_code(200);\n echo json_encode(array(\n 'data' => $commandesespaceclient,\n 'count' => $count,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n http_response_code(403);\n echo json_encode(array(\n 'text' => __(\"Not Allowed To Access\"),\n 'status' => 403,\n 'type' => 'error'\n ));\n die();\n }", "title": "" }, { "docid": "0baf2ff2c87d3543afde57bee7625197", "score": "0.5436639", "text": "public function escreverComentario()\n {\n }", "title": "" }, { "docid": "3355298c5d0c84d9f5df49d59f7c9b2b", "score": "0.54324293", "text": "public function enattentelivraison_espacelivreur_client() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $date1 = date('Y-m-d 00:00:00');\n $date2 = date('Y-m-d 23:59:59');\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array(\n 'Commande.type' => 'Transport',\n 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'],\n 'Commande.receiver_id' => $this->request->data['Commande']['receiver_id'],\n 'Commande.state' => 'AttenteLivraison',\n \"Commande.date_livraison BETWEEN '$date1' AND '$date2'\",\n ),\n 'order' => array('Commande.created DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $encourscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "7c35b842ffbcc2f7a960e7bac97a53ca", "score": "0.5429414", "text": "public function getIdResponsavel()\r\n {\r\n return $this->id_responsavel;\r\n }", "title": "" }, { "docid": "105ced2ef82f606ff41f5684b046a4ed", "score": "0.54145", "text": "public function getFkTcernUnidadeGestoraResponsaveis()\n {\n return $this->fkTcernUnidadeGestoraResponsaveis;\n }", "title": "" }, { "docid": "c00e6923c27434cb634d3877370cf8c6", "score": "0.53713", "text": "public function liste(){\n\n // Set HTTP Response Content Type\n header('Content-Type: application/json');\n //pour indiquer qui p acceder a ces resources\n header('Access-Control-Allow-Origin: *');\n\n $tdb = new ResponsableRepository();\n \n $responsables = $tdb->listeResponsable();\n\n foreach($responsables as $responsable)\n {\n $responsable = [\n \"id\" => $responsable->getId(),\n \"nom\" => $responsable->getNom(),\n \"prenom\" => $responsable->getPrenom(),\n \"email\" => $responsable->getEmail(),\n \"password\" => $responsable->getPassword(),\n \"telephone\" => $responsable->getTelephone(),\n \"typeresponsable\" => $responsable->getType_responsable(),\n ];\n $data['Les Responsables'][] = $responsable;\n }\n http_response_code(200);\n echo json_encode($data);\n }", "title": "" }, { "docid": "e37a22e6b494f8a2f06db1ffe200a717", "score": "0.536936", "text": "public function getListeResponsablesProjets() {\n\t\n\t\t$this->log->debug(\"Projet::getListeResponsablesProjets()\");\n\t\t\n\t\t$listeResponsables = array();\n\t\n\t\ttry {\n\t\t\t// SQL de la requête\n\t\t\t$sql = \"select tusager.id_usager, concat(prenom, ' ', nom) as responsable\n\t\t\t\t\tfrom tusager, rprojet_usager_role as pur\n\t\t\t\t\twhere tusager.id_usager = pur.id_usager\n\t\t\t\t\tand pur.id_role = 1\";\n\t\t\t$sth = $this->dbh->prepare($sql);\n\t\t\t$rows = $sth->execute(array());\n\t\n\t\t\t// Récupérer les informations\n\t\t\twhile ($row = $sth->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$id = $row['id_usager'];\n\t\t\t\t$responsable = $row['responsable'];\n\t\t\t}\t\n\t\t\t\n\n\t\t} catch (Exception $e) {\n\t\t\tErreur::erreurFatal('018', \"Projet::getListeResponsablesProjets() - Erreur technique détectée : '\" . $e->getMessage() . $e->getTraceAsString() . \"'\", $this->log);\n\t\t}\t\t\n\t\n\t\t$this->log->debug(\"Projet::getListeResponsablesProjets() Fin\");\n\t\treturn $listeResponsables;\n\t}", "title": "" }, { "docid": "4c9a6c8fa00fbfc9dda1780f07c20637", "score": "0.53573686", "text": "function responderConvite($convite, $resposta) {\r\n\t\t$bol = $convite->bolao;\r\n\t\t$idBolao = $bol->id;\r\n\t\t$dg = DataGetter::getInstance();\r\n\t\t$notificacoes = $dg->getData('notificacoes_' . $this->cpf);\r\n\t\t$novasNot = array();\r\n\t\tfor ($i = 0; $i<count($notificacoes); $i++){\r\n\t\t\tif ($notificacoes[$i][2]!=$idBolao){\r\n\t\t\t\tarray_push($novasNot, $notificacoes[$i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$remetente = $convite->usuarioRemetente;\r\n\t\t$convitesF = $dg->getData('convitesfeitos_' . $remetente->cpf);\r\n\t\t$novosConv = array();\r\n\t\tfor ($i = 0; $i<count($convitesF); $i++){\r\n\t\t\tif (intval($convitesF[$i][1])!=$idBolao && $convitesF[$i][0]!=$this->cpf){\r\n\t\t\t\tarray_push($novosConv, $convitesF[$i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif($resposta == true){\r\n\t\t\t// procurar bolao do convite que recebeu como parametro no arquivo de boloes\r\n\t\t\t$boloes = $dg->getData('bolao');\r\n\t\t\tfor ($i = 0; $i<count($boloes); $i++){\r\n\t\t\t\tif (intval($boloes[$i][0])==$idBolao){\r\n\t\t\t\t\t$bolao = new Bolao($boloes[$i][0], $boloes[$i][2], $boloes[$i][3], $boloes[$i][4], array(), $boloes[$i][1], explode(',', $boloes[$i][5]), explode(',', $boloes[$i][6]), intval($boloes[$i][7]), intval($boloes[$i][8]), intval($boloes[$i][9]), intval($boloes[$i][10]));\r\n\t\t\t\t\tarray_push($this->boloesParticipa, $bolao);\t\t\t\t\r\n\t\t\t\t\t$apostadores = explode(',', $boloes[$i][5]);\r\n\t\t\t\t\t$pontuacoes = explode(',', $boloes[$i][6]);\r\n\t\t\t\t\tarray_push($pontuacoes, '0');\r\n\t\t\t\t\tarray_push($apostadores, $this->cpf);\r\n\t\t\t\t\t$boloes[$i][5] = implode(',', $apostadores);\r\n\t\t\t\t\t$boloes[$i][6] = implode(',', $pontuacoes);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dg->setData('bolao', $boloes);\r\n\r\n\t\t\t$dg->appendData('boloes_' . $this->cpf, 'ativo;' . $idBolao . ';0;'); //adiciona a boloes que participa\r\n\t\t}\r\n\t\t$dg->setData('notificacoes_' . $this->cpf, $novasNot);\r\n\t\t$dg->setData('convitesfeitos_' . $remetente->cpf, $novosConv);\r\n\t}", "title": "" }, { "docid": "434ae957ad8f26c8904ccfa79deb6a84", "score": "0.5340252", "text": "public function responsable()\n\t{\n\t\treturn $this->belongsTo('App\\Models\\User','respopnsable_id'::class);\n }", "title": "" }, { "docid": "db22982255df63dc3437760184225d70", "score": "0.53294855", "text": "public function confirmer() {\n $id = $this->requete->getParametreId(\"id\");\n // Lire l'item à l'aide du modèle\n $item = $this->item->getItem($id);\n $this->genererVue(['item' => $item]);\n }", "title": "" }, { "docid": "9ba48b110ff6c8da1193b549554a50ee", "score": "0.53274137", "text": "function modificarTipoRelacionContable(){\n\t\t$this->procedimiento='conta.ft_tipo_relacion_contable_ime';\n\t\t$this->transaccion='CONTA_TIPRELCO_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_tipo_relacion_contable','id_tipo_relacion_contable','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('nombre_tipo_relacion','nombre_tipo_relacion','varchar');\n\t\t$this->setParametro('tiene_centro_costo','tiene_centro_costo','varchar');\n\t\t$this->setParametro('codigo_tipo_relacion','codigo_tipo_relacion','varchar');\n\t\t$this->setParametro('id_tabla_relacion_contable','id_tabla_relacion_contable','int4');\n\t\t$this->setParametro('tiene_partida','tiene_partida','varchar');\n\t\t$this->setParametro('tiene_auxiliar','tiene_auxiliar','varchar');\n\t\t$this->setParametro('partida_tipo','partida_tipo','varchar');\n\t\t$this->setParametro('partida_rubro','partida_rubro','varchar');\n\t\t$this->setParametro('tiene_aplicacion','tiene_aplicacion','varchar');\n\t\t$this->setParametro('tiene_moneda','tiene_moneda','varchar');\n\t\t$this->setParametro('tiene_tipo_centro','tiene_tipo_centro','varchar');\n\t\t$this->setParametro('codigo_aplicacion_catalogo','codigo_aplicacion_catalogo','varchar');\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "6e04d7d3a9542b13690fd18a1821a665", "score": "0.53264034", "text": "public function Clientes(){\n\t\techo $this->templates->render('Administracion/clientes');\n\t}", "title": "" }, { "docid": "16703d833c84349a61b7df4d25afa3dd", "score": "0.5300236", "text": "public function afficherListeChapitre()\n {\n $chapitreManager = new ChapitreManager();\n $chapitres = $chapitreManager->read(null);\n\n include 'view/backEnd/administration.php';\n }", "title": "" }, { "docid": "cda0f75e7e5756b5f7543ee6b26943c9", "score": "0.5296164", "text": "public function ramassages_par_client() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Getby', 'Livreur', 'Historique', 'Historique.User');\n $commandesespaceclient = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => array('Non Traitée', 'Non Traitée depot')),\n 'order' => array('Commande.modified DESC')\n ));\n $clientsID = $this->Commande->find('list', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => array('Non Traitée', 'Non Traitée depot')),\n 'order' => array('Commande.modified DESC'),\n 'fields' => array('Commande.user_id')\n ));\n $countcommandes = $this->Commande->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID, 'Commande.state' => array('Non Traitée', 'Non Traitée depot'))\n ));\n// //debug($clientsID); \n $countcommandesaffectees = $this->Commande->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID, 'Commande.state' => 'Non Traitée', 'Commande.livreur_id <>' => 0)\n ));\n $countcommandesnotaffectees = $this->Commande->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID, 'Commande.state' => array('Non Traitée', 'Non Traitée depot'), 'Commande.livreur_id' => 0)\n ));\n $clientscommercials = $this->User->find('all', array(\n 'conditions' => array('User.id IN' => $clientsID)\n ));\n $countclients = $this->User->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID)\n ));\n $clientsNotAffectID = $this->Commande->find('list', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => array('Non Traitée', 'Non Traitée depot'), 'Commande.livreur_id' => 0),\n 'order' => array('Commande.modified DESC'),\n 'fields' => array('Commande.user_id')\n ));\n $clientsNotAffectcommercials = $this->User->find('all', array(\n 'conditions' => array('User.id IN' => $clientsNotAffectID)\n ));\n // count commandes ramassage et depot\n $countRamassage = $this->Commande->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID, 'Commande.state' => array('Non Traitée', 'Non Traitée depot'), 'Commande.type_remettre' => 'Ramassage')\n ));\n $countDepot = $this->Commande->find('count', array(\n 'conditions' => array('User.id IN' => $clientsID, 'Commande.state' => array('Non Traitée', 'Non Traitée depot'), 'Commande.type_remettre' => 'Depot')\n ));\n// //debug($clientsID);\n// debug($clientscommercials);\n// die();\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $clientscommercials,\n 'dataNotAffect' => $clientsNotAffectcommercials,\n 'countclients' => $countclients,\n 'countcommandes' => $countcommandes,\n 'countcommandesaffectees' => $countcommandesaffectees,\n 'countcommandesnotaffectees' => $countcommandesnotaffectees,\n 'countcommandes' => $countcommandes,\n 'countRamassage' => $countRamassage,\n 'countDepot' => $countDepot,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n }", "title": "" }, { "docid": "b0490bcabdc2103a56dccd9e53a3c60f", "score": "0.5288751", "text": "public function parteResponsavel()\r\n {\r\n return $this->hasOne('CapOut\\SsoPartes','idDocProcCont','idDocProcCont')->where('flTipoParte',5);\r\n }", "title": "" }, { "docid": "59ec91a1962af3ace8733bc95f29d0de", "score": "0.52821887", "text": "public function enattentelivraison_espacelivreur() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $date1 = date('Y-m-d 00:00:00');\n $date2 = date('Y-m-d 23:59:59');\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array(\n 'Commande.type' => 'Transport',\n 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'],\n 'Commande.state' => 'AttenteLivraison',\n \"Commande.date_livraison BETWEEN '$date1' AND '$date2'\",\n ),\n 'order' => array('Commande.created DESC')\n ));\n http_response_code(200);\n// echo json_encode($commandesespaceclient);\n echo json_encode(array(\n 'data' => $encourscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "5ecd93ed4fdc54e4997621e90dad14f4", "score": "0.52738184", "text": "public function getResponsavel()\n {\n return $this->responsavel;\n }", "title": "" }, { "docid": "1963b02dec8c58e640f29c4049c64451", "score": "0.52676636", "text": "public function comentarios(){\n return $this->morphMany('App\\Models\\Comentario','comentable');\n }", "title": "" }, { "docid": "07ef0315a68ca7e67c40d7bad389597d", "score": "0.5265959", "text": "public function actionCliente(){\n $cadB = '';\n $height = '2.0em';\n $height2 = '3.0em';\n \n $cadB .= Ayuda::toHtml('panel_clientes');\n \n $cad = '';\n \n $c1 = '#eeffee';\n $c2 = '#f6f6ff';\n $c3 = '#ffffee';\n $c = $c1;\n $vctSt['1'] = '<span style=\"color:#000099;\">Activo</span>';\n $vctSt['2'] = '<span style=\"color:#999900;\">Pendiente</span>';\n \n $proyectos = $this->proyectos();\n \n\n \n foreach( $proyectos as $proyecto ){\n $cad .= '<div class=\"row\" style=\"background-color:#ccc;\"><div class=\"col-sm-12\"> &nbsp; &nbsp; ' .$proyecto->de .'</div></div>';\n \n $sql1 = \"select schema_name from information_schema.schemata where schema_name = '\" .$proyecto->codigo .\"';\";\n $obj = Aux::findBySql($sql1)->one();\n if( isset($obj->schema_name) && $obj->schema_name != '' ){\n $sql2 = \"select id, de, barrida, codigo, st from \" .$obj->schema_name .\".instrumento where st != '0' order by id DESC;\";\n \n $vctInstrumento = Aux::findBySql($sql2)->all();\n \n foreach( $vctInstrumento as $instrumento ){\n if( $c == $c1 ) $c = $c2;\n else if( $c == $c2 ) $c = $c3;\n else $c = $c1;\n \n if( true ){\n \n if( file_exists(Yii::$app->params['baseUrl'] .'controller/proyecto/' .ucFirst($instrumento->codigo) .'Controller') )\n $pathController = Yii::$app->params['baseUrl'] .'index.php?r=proyecto/' .$instrumento->codigo;\n else if( file_exists(Yii::$app->params['baseUrl'] .'controller/proyecto/' .ucFirst($obj->schema_name) .'Controller') )\n $pathController = Yii::$app->params['baseUrl'] .'index.php?r=proyecto/' .$obj->schema_name;\n else\n $pathController = Yii::$app->params['baseUrl'] .'index.php?r=crm/operacion/encuesta';\n \n $estilo = ' style=\"float:left; padding: 0.5em; padding-left: 1.5em; text-align:center;\" ';\n \n $cad .= '<div class=\"row\" style=\"background-color:' .$c .';\"><div class=\"col-sm-9\" style=\"line-height:' .$height2 .';\"> '.$instrumento->de .'</div>';\n $cad .= '<div class=\"col-sm-3\" style=\"\">';\n\n\n $cad .= '<div ' .$estilo .' ><a href=\"'.Yii::$app->params['baseUrl'] .'index.php?r=crm/operacion/encuesta/ver&x3proy=' .$obj->schema_name .'&x3inst=' .$instrumento->id .'\" style=\"color: #0000aa;\" title=\"Ver Instrumento\"> \n<img src=\"'.Yii::$app->params['baseUrl'] .'img/icons/ver.png\" style=\"height:' .$height .';\"/>\n</a></div>';\n \n if( false ) \n $cad .= '<div ' .$estilo .' ><a href=\"'.Yii::$app->params['baseUrl'] .'index.php?r=soporte/carga/xlsup&x3proy=' .$obj->schema_name .'&x3inst=' .$instrumento->id .'\" style=\"color: #0000aa;\" title=\"Cargar data\"> \n<img src=\"'.Yii::$app->params['baseUrl'] .'img/icons/data.png\" style=\"height:' .$height .';\"/>\n</a></div>';\n if( false )\n $cad .= '<div ' .$estilo .'> <a href=\"'.Yii::$app->params['baseUrl'] .'index.php?r=soporte/carga/cuotaform&x3proy=' .$obj->schema_name .'&x3inst=' .$instrumento->id .'\" style=\"color: #0000aa;\" title=\"Cargar cuota\">\n<img src=\"'.Yii::$app->params['baseUrl'] .'img/icons/cuota.png\" style=\"height:' .$height .';\"/>\n</a></div>';\n \n $cad .= '<div ' .$estilo .'><a href=\"'.Yii::$app->params['baseUrl'] .'index.php?r=soporte/carga/viz&x3proy=' .$obj->schema_name .'&x3inst=' .$instrumento->id .'\" style=\"color: #0000aa;\" title=\"Ruta de las preguntas\">\n<img src=\"'.Yii::$app->params['baseUrl'] .'img/icons/ruta.png\" style=\"height:' .$height .';\"/>\n</a></div>';\n \n $cad .= '<div ' .$estilo .'><a href=\"' .$pathController .'/reportes&x3proy=' .$obj->schema_name .'&x3inst=' .$instrumento->id .'\" style=\"color: #0000aa;\" title=\"Acceder al Listado de Reportes\">\n<img src=\"'.Yii::$app->params['baseUrl'] .'img/icons/reportes.png\" style=\"height:' .$height .';\"/>\n</a></div>';\n \n\n \n $cad .= '</div></div>';\n \n }\n \n }\n \n $cad .= '<div class=\"row\"><div class=\"col-sm-12\">&nbsp;</div></div>';\n \n }\n } \n return $this->render('@views/soporte/index',array(\n 'menu' => '',\n 'titulo' => ' Panel de Instrumentos',\n 'txt' => '<div style=\"font-size: 1.2em;\">' .Mensaje::mostrar() .$cadB .'<br/>' .$cad .'</div>',\n 'ayuda' => '',\n )); \n }", "title": "" }, { "docid": "f80ba03151965e6b6f58f2c13c76c302", "score": "0.5264438", "text": "public function commandes_espacelivreur() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n// debug($this->request->data['Commande']['livreur_id']); die();\n $commandescommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'Non Traitée'),\n 'order' => array('Commande.created DESC')\n ));\n if (!empty($commandescommercials)) {\n $clientsID = $this->Commande->find('list', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'Non Traitée'),\n 'order' => array('Commande.modified DESC'),\n 'fields' => array('Commande.user_id')\n ));\n $clientscommercials = $this->User->find('all', array(\n 'conditions' => array('User.id IN' => $clientsID)\n ));\n http_response_code(200);\n echo json_encode(array(\n 'data' => $clientscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n } else {\n http_response_code(200);\n echo json_encode(array(\n 'data' => __('Pas de commandes'),\n 'status' => 200,\n 'type' => 'error'\n ));\n die();\n }\n }\n }", "title": "" }, { "docid": "8e57db5e158dba60436ac0f87389a2b9", "score": "0.5261571", "text": "public function getResponceType()\n {\n return $this->responceType;\n }", "title": "" }, { "docid": "91eeaadcea1407cab7ff3b76e061f188", "score": "0.52607745", "text": "public function retourcommandeExpediteur() {\n $this->autoRender = false;\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n $this->Commande->contain('Receiver', 'Receiver.Ville');\n if ($this->request->is(array('put'))) {\n $data = $this->request->data;\n// debug($data);\n// die();\n $id = $this->request->data['Commande']['id'];\n $this->Commande->id = $id;\n $commandeuserretour = $this->Commande->read()['Commande'];\n// debug($this->request->data['Commande']); die();\n if ($this->Commande->saveField('state', 'Retour Expéditeur') && $this->Commande->saveField('isStock', 0) && $this->Commande->saveField('isFacture', 0)) {\n $historique = array(\n 'Historique' => array(\n 'id' => null,\n 'commande_id' => $id,\n 'user_id' => $commandeuserretour['livreur_id'],\n 'operation' => 'Retour Expéditeur',\n 'cause_operation' => NULL\n )\n );\n $this->Historique->save($historique);\n http_response_code(200);\n header('Content-Type: application/json');\n echo json_encode(array(\n 'text' => __(\"Commande retournée avec succès\"),\n 'status' => 200,\n 'type' => 'success'\n ));\n }\n die();\n }\n }", "title": "" }, { "docid": "f6202fdb97c796fdfad2e97c256582ad", "score": "0.52573043", "text": "public function ListarResponsables()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$result = array();\n\n\t\t\t$stm = $this->pdo->prepare(\"SELECT * FROM usuarios\n\t\t\t\t\t WHERE estado = 1\");\n\t\t\t$stm->execute();\n\n\t\t\treturn $stm->fetchAll(PDO::FETCH_OBJ);\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "5222b482052079d2204386700c273b43", "score": "0.5242037", "text": "public function setContenedor($contenedor){\r\n\t\t$this->_contenedor = $contenedor;\r\n\t}", "title": "" }, { "docid": "344ddc4314b3960732c4e287784662e9", "score": "0.52390236", "text": "function EstaConectado()\n {\n\tif ($this->link)\n {\n return true;\n\t}\n else\n {\n return false;\n\t}\n }", "title": "" }, { "docid": "7a4852a48a2fae1e5469be8edee92c4e", "score": "0.52292156", "text": "function ciautoriser_voir_spip3($faire, $type, $id, $qui, $opt) {\n/*\t\n\tif (function_exists($f='autoriser_'.$type.'_voir') OR function_exists($f='autoriser_'.$type.'_voir_dist')){\n\t\treturn $f($faire, $type, $id, $qui, $opt);\n\t}\n*/\n\tif ($qui['statut'] == '0minirezo') return true;\n\t// seuls les admin peuvent voir un auteur\n\tif ($type == 'auteur')\n\t\treturn false;\n\t// sinon par defaut tout est visible\n\t// sauf cas particuliers traites separemment (ie article)\n\treturn true;\n}", "title": "" }, { "docid": "ca088c9d4ab4408dba3e25fa32b2769e", "score": "0.52266616", "text": "public function recuperaResponsaveis() {\n\t\t\n\t\tif( in_array( ADMINISTRADOR_INST, $this->arPerfil ) ){\n\t\t\t$sql = \"SELECT resid FROM emenda.usuarioresponsabilidade WHERE usucpf = '\".$_SESSION['usucpf'].\"' AND rpustatus = 'A' AND resid is not null\";\n\t\t\t$responsaveis = $this->carregarColuna($sql);\n\t\t} else {\n\t\t\t$responsaveis = array();\n\t\t}\n\t\n\t\treturn $responsaveis;\n\t}", "title": "" }, { "docid": "26f0f18b0ea7cd534dd3a0f0b838fd61", "score": "0.5225829", "text": "public function BuscarCliente()\n {\n $sentenciaSql = \"SELECT \n CONCAT(p.nombre,' ',p.apellido) AS nombre\n ,c.id_cliente \n FROM persona AS p \n INNER JOIN cliente AS c ON p.id_persona = c.id_persona \n WHERE p.estado = '1' AND c.estado = '1' AND nombre LIKE '%$this->descripcion%'\";\n $this->conn->preparar($sentenciaSql);\n $this->conn->ejecutar();\n return true;\n }", "title": "" }, { "docid": "d811189056421110db75f13781d6458a", "score": "0.52119297", "text": "public function comprobar_responsable_proceso($id_usuario, $proceso)\n {\n //Propietarios de los procesos\n if ($proceso->id_propietario == $id_usuario)\n {\n return true;\n }\n //Comprobamos la herencia para los subprocesos\n if ($proceso->id_madre > 0)\n {\n $proceso_madre = new Proceso();\n $proceso_madre->load(\"id=$proceso->id_madre\");\n return $this->comprobar_responsable_proceso($id_usuario, $proceso_madre);\n }\n return false;\n }", "title": "" }, { "docid": "ebb3054da279e7445ffd76df71140004", "score": "0.5193782", "text": "function _set_enterprise_reciever($id_empresa,$bForce = FALSE) \n\t{\n\t\t// Caso de compras, el id_empresa\n\t\tif (!is_numeric($id_empresa)) return FALSE;\n\t\tif (!isset($bForce)) $bForce = FALSE;\n\t\t$oDb = $this->_db;\n\t\tif (!is_object($oDb)) {\n\t\t\t$this->error(1,\"DB connection not instanciated\");\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t/** ** De momento no hay Agentes de Compra.\n\t\t// Si tenemos un agente seleccionado y el pedido esta marcado como estricto,\n\t\t//\t\tel cliente solo puede ser alguno de los clientes del agente.\n\t\tif ((int)$this->_aPedido[id_agente] AND $this->_fPedido & inmPed_STRICT) { \n\t\t\t// Fixme: Que pasa si un cliente no tiene agentes? podria este agente hacer el pedido?.\n\t\t\tif (is_array($this->_aClientes_agente) AND !is_array($this->_aClientes_agente[$id_cliente])) {\n\t\t\t\t$this->error(500,\"El receptor no se corresponde a ninguno de los clientes del agente seleccionado\");\n\t\t\t\treturn FALSE;\n\t\t\t} else {\n\t\t\t\t$id_cliente = (int)$id_cliente;\n\t\t\t\t$this->_aAgente[comision] = $this->_aClientes_agente[$id_cliente][comision];\n\t\t\t\t$this->_aAgente[comision_repartida] = $this->_aClientes_agente[$id_cliente][comision_repartida];\n\t\t\t}\n\t\t}\n\t\t/** **/\n\n\t\t// Fixme: Hacer comprobacion de si el cliente seleccionado es el mismo que el activo ahora mismo.\n\t\t// Fixme: Permitir cambio de cliente, cambiando la tarifa y llamando a eval_conditions()\n\t\tif ($this->_aPedido['id_proveedor'] == $this->_aEmisor['id'])\n\t\t\t$id_proveedor = (int)$this->_aEmisor['id'];\n\t\telse $id_proveedor = NULL;\n\t\tif ($this->_aPedido['id_empresa'] == $this->_aReceptor['id'])\n\t\t\t$id_emp = $this->_aReceptor['id'];\n\t\telse $id_emp = NULL;\n\n\t\tif ($id_emp != $id_empresa OR $bForce) {\n\t\t\t\t // Caso de compras, id_proveedor\n\t\t\t\t $cons = \"SELECT \".\n\t\t\t\t\t\t\t // Datos del receptor\n\t\t\t\t\t\t\t \"Emp.id_empresa as 'ped_id_empresa', \".\n\t\t\t\t\t\t\t \"Emp.id_empresa as 'emp_id_empresa', \".\n\t\t\t\t\t\t\t \"Emp.id_empresa as 'emp_id', \".\n\t\t\t\t\t\t\t \"Emp.razon_social as 'emp_razon_social', \".\n\t\t\t\t\t\t\t \"Emp.nombre as 'emp_nombre', \".\n\t\t\t\t\t\t\t \"Emp.direccion_facturacion as 'emp_direccion_facturacion', \".\n\t\t\t\t\t\t\t \"Emp.poblacion as 'emp_poblacion', \".\n\t\t\t\t\t\t\t \"Emp.cp as 'emp_cp', \".\n\t\t\t\t\t\t\t \"Emp.prefijo_cif as 'emp_prefijo_cif', \".\n\t\t\t\t\t\t\t \"Emp.cif as 'emp_cif', \".\n\t\t\t\t\t\t\t \"Emp.telefono1 as 'emp_telefono1', \".\n\t\t\t\t\t\t\t \"Emp.telefono2 as 'emp_telefono2', \".\n\t\t\t\t\t\t\t \"Emp.fax as 'emp_fax', \".\n\t\t\t\t\t\t\t \"Emp.email as 'emp_email', \".\n\t\t\t\t\t\t\t \"Prov.nombre as 'emp_provincia', \".\n\t\t\t\t\t\t\t \"Div2.id_divisa as 'emp_id_divisa', \".\n\t\t\t\t\t\t\t \"Div2.leyenda as 'emp_div_leyenda', \".\n\t\t\t\t\t\t\t \"Div2.nombre as 'emp_div_nombre' \".\n\t\t\t\t\t\t\t ( \t($id_proveedor) \n\t\t\t\t\t\t\t\t ? \", PrvEmp.id_forma_pago as 'ped_id_forma_pago', \".// forma pago defecto receptor\n\t\t\t\t\t\t\t\t \t \"FPago.nombre as 'ped_nombre_forma_pago', \".// forma pago defecto receptor\n\t\t\t\t\t\t\t\t\t \"FPago.nombre as 'fpa_nombre', \".\n\t\t\t\t\t\t\t\t \t \"FPago.id_forma_pago as 'fpa_id_forma_pago', \".\n\t\t\t\t\t\t\t\t \t \"FPago.num_efectos as 'fpa_num_efectos', \".\n\t\t\t\t\t\t\t\t \t \"FPago.dias_efectos as 'fpa_dias_efectos', \".\n\t\t\t\t\t\t\t\t \t \"FPago.medio_pago as 'fpa_medio_pago', \".\n\t\t\t\t\t\t\t\t \t \"PrvEmp.dia_facturacion_1 as 'fpa_dia_I', \".\t\n\t\t\t\t\t\t\t\t \t \"PrvEmp.dia_facturacion_2 as 'fpa_dia_II', \".\t\n\t\t\t\t\t\t\t \t\t \"PrvEmp.dia_facturacion_3 as 'fpa_dia_III', \".\t\n\t\t\t\t\t\t\t\t\t \"PrvEmp.aplicar_iva as 'emp_aplicar_iva', \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.aplicar_recargo as 'emp_aplicar_recargo', \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.descuento as 'emp_dto_directo', \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.descuento_financiero as 'emp_dto_pronto_pago', \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.aplicar_retencion as 'emp_aplicar_retencion', \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.mantener_ratio_divisa as 'prv_ratio_divisa_dias' \"\n\t\t\t\t\t\t\t\t : \"\").\n\t\t\t\t\t\t\t \"FROM Empresas Emp, Provincias Prov, Divisa Div2 \".\n\t\t\t\t\t\t\t ( \t($id_proveedor)\n\t\t\t\t\t\t\t\t ? \t\", Forma_pago FPago, Proveedores_empresas PrvEmp \"\n\t\t\t\t\t\t\t\t : \"\").\n\t\t\t\t\t\t\t \"WHERE Emp.id_empresa = $id_empresa AND Prov.id_provincia = Emp.id_provincia AND \".\n\t\t\t\t\t\t\t \"Emp.id_divisa = Div2.id_divisa \".\n\t\t\t\t\t\t\t (\t($id_proveedor)\n\t\t\t\t\t\t\t\t ? \t\"AND PrvEmp.id_empresa = Emp.id_empresa AND PrvEmp.id_proveedor = $id_proveedor AND \".\n\t\t\t\t\t\t\t\t\t \"PrvEmp.id_forma_pago = FPago.id_forma_pago \"\n\t\t\t\t\t\t\t\t : \"\");\n\n\t\t\t\t $id_rs = $oDb->query($cons);\n\t\t\t\t if ($oDb->num_rows($id_rs)) {\n\t\t\t\t\t\t $aPedido = $oDb->fetch_assoc($id_rs);\n\t\t\t\t\t\t foreach($aPedido as $clave => $valor) {\n\t\t\t\t\t\t\t $ref_arr = substr($clave,0,4);\n\t\t\t\t\t\t\t $ref_resto = substr($clave,4);\n\t\t\t\t\t\t\t if (!strcasecmp($ref_arr,'ped_')) {\n\t\t\t\t\t\t\t\t $this->_aPedido[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'emp_')) {\n\t\t\t\t\t\t\t\t $this->_aReceptor[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'prv_')) {\n\t\t\t\t\t\t\t\t $this->_aEmisor[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'div_')) {\n\t\t\t\t\t\t\t\t $this->_aDivisa[$ref_resto] = $valor;\n\t\t\t\t\t\t\t } elseif (!strcasecmp($ref_arr,'fpa_')) {\n\t\t\t\t\t\t\t\t $this->_aFPago[$ref_resto] = $valor;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t $this->_seek_discounts(TRUE);\n\t\t\t\t\t\t $this->_aReceptor['mostrar_ofertas'] = 0;\n\t\t\t\t\t\t $this->_aReceptor['aplicar_dto_volumen'] = 1;\n\t\t\t\t } else return FALSE;\n\t\t\t\t $oDb->libera($id_rs);\n\t\t}\n\n\t\t$this->_possible_agents_clients($id_empresa,1);\n\t\t$this->_possible_addresses($id_empresa);\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "1c157e2c384cf2e97723095364a72de1", "score": "0.5192318", "text": "function responderVendedorOriginal($idUsuarioNotif,$consulta,$access_token,$ch,$conn,$api_raiz){\n $seller_id=$consulta->seller_id;\n //busco todos los revendedores\n $array_id_vendedores=array();\n $sqlReventa=\"SELECT USUARIOID FROM revendedores\";\n $r=$conn->query($sqlReventa);\n if($r->num_rows>0){\n while($rw=$r->fetch_assoc()){array_push($array_id_vendedores,$rw['USUARIOID']);}\n }\n //Confirmo que el vendedor sea ReVendedor\n if(in_array($idUsuarioNotif,$array_id_vendedores)){\n $idpublic=$consulta->item_id;\n $respuesta=$consulta->answer->text;\n // la respuesta se debe fitrar\n $respuesta=filtroRespuesta($respuesta);\n $pregunta=$consulta->text;\n //Busco el codigo de la publicacion nuestra\n $sql=\"SELECT CODIGO FROM publicacion WHERE IDUSUARIO=$idUsuarioNotif AND CODIGOORIGINAL='$idpublic'\";\n $result=$conn->query($sql);\n if($result->num_rows>0){while($row=$result->fetch_assoc()){$codigoPublic_BBDD=$row['CODIGO'];}}\n //busco las preguntas sin responder de nuestra publicacion\n $ch=curl_init();\n curl_setopt($ch,CURLOPT_URL,\"$api_raiz/questions/search?item=$codigoPublic_BBDD&status=UNANSWERED&access_token=$access_token\");\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n $resultado_q=curl_exec($ch);\n curl_close($ch);\n $consulta=json_decode($resultado_q);\n $arrayPreguntasSinResp=$consulta->questions;\n // Recorro todas las preguntas sin responder de nuestra publicacion\n foreach($arrayPreguntasSinResp as $value){\n $preguntaSinResp=$value->text;\n if($preguntaSinResp==$pregunta){\n $idPreguntaSinResp=$value->id;\n break;\n }\n }\n //Respondo la pregunta de nuestra publiacion con la respuesta dada por el vendedor original\n $ch=curl_init();\n curl_setopt($ch,CURLOPT_URL,\"$api_raiz/answers?access_token=$access_token\");\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n curl_setopt($ch,CURLOPT_POSTFIELDS,\"{\\\"question_id\\\":$idPreguntaSinResp,\\\"text\\\":\\\"$respuesta\\\"}\");\n curl_setopt($ch,CURLOPT_POST,1);\n $headers=array();$headers[]=\"Content-Type: application/json\";\n curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);\n $result=curl_exec($ch);curl_close($ch);\n echo \"OxasApp - Respondida por Vendedor Original\";\n }\n }", "title": "" }, { "docid": "fd6a3736e381425d665e5c1ea271b152", "score": "0.5179991", "text": "public function sincronizador($idResidencia){\n \tDirectaController::getInstance()->sincronizador($idResidencia);\n AuctionsController::getInstance()->sincronizador($idResidencia);\n\n }", "title": "" }, { "docid": "3d69fcb9c7bfa55d0e57c76728235cb2", "score": "0.51701283", "text": "public function all_commandes_for_client() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('User');\n $clientsID = $this->Commande->find('list', array(\n 'conditions' => array('Commande.type' => 'Transport'),\n 'order' => array('Commande.modified DESC'),\n 'fields' => array('Commande.user_id')\n ));\n $this->User->recursive = -1;\n $clientscommercials = $this->User->find('all', array(\n 'conditions' => array('User.id IN' => $clientsID)\n ));\n http_response_code(200);\n echo json_encode(array(\n 'data' => $clientscommercials,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n }\n }", "title": "" }, { "docid": "19a98f16af0efdec3926211612d09891", "score": "0.51686513", "text": "function spiplistes_destiner_envoi (\n\t$id_courrier\n\t, $id_liste\n\t, $flag_admin\n\t, $flag_moderateur\n\t, $listes_moderees\n\t, $statut\n\t, $type\n\t, $nom_bouton_validation\n\t, $email_test = '') {\n\n\tglobal $spip_lang_left\n\t\t, $spip_lang_right\n\t\t, $options\n\t\t;\n\n\t$id_liste = intval($id_liste);\n\t\n\t$result = \n\t\t$destinataire = '';\n\t\n\tif($id_liste) {\n\t\tif($row = sql_fetsel(\"titre\", \"spip_listes\", \"id_liste=\".sql_quote($id_liste))) {\n\t\t\t$destinataire = $row['titre'];\n\t\t}\n\t}\n\telse if (!empty($email_test)) {\n\t\t$destinataire = $email_test;\n\t}\n\n\tif(empty($destinataire)) {\n\t\t$destinataire = \"<span style='color:gray;font-size:90%;'>\"._T('spiplistes:choix_non_defini').\"</span>\";\n\t}\n\n\t$invite = \"<strong><span class='verdana1' style='text-transform: uppercase;'>\"\n\t\t. _T('spiplistes:destination')\n\t\t. ' : </span> '\n\t\t. $destinataire\n\t\t. \"</strong>\"\n\t\t;\n\t\t\t\n\tif(\n\t\t($flag_admin || $flag_moderateur)\n\t\t&& (($statut == _SPIPLISTES_COURRIER_STATUT_REDAC) || ($statut == _SPIPLISTES_COURRIER_STATUT_READY))\n\t) {\n\n\t\t\t$adresse_test = $GLOBALS['auteur_session']['email'];\n\t\t\t$listes_abos = spiplistes_listes_lister_abos();\n\t\t\t$liste_disabled = $listes_abos ? \"\" : \" disabled='disabled'\";\n\t\t\t// propose l'envoi en test\n\t\t\t$masque = \"\"\n\t\t\t\t. \"<ul class='verdana2' style='list-style-type:none;padding-left:0;'>\"\n\t\t\t\t. \"<li> <input type='radio' name='radio_destination' value='email_test' checked='checked' id='desttest' />\"\n\t\t\t\t. \"<label for='desttest'>\"._T('spiplistes:email_tester').\"</label> : \"\n\t\t\t\t. \"<input type='text' name='email_test' value='$adresse_test' class='fondo' size='35' />\\n\"\n\t\t\t\t. \"</li>\"\n\t\t\t\t. \"<li> <input type='radio' name='radio_destination' value='id_liste' id='destlist' $liste_disabled />\"\n\t\t\t\t. \"<label for='destlist'>\"._T('spiplistes:listes_de_diffusion_').\"</label> : \"\n\t\t\t\t;\n\t\t\t// propose les listes\n\t\t\tif($listes_abos) {\n\t\t\t\t$masque .= \"\"\n\t\t\t\t\t. \"<select class='verdana2' name='id_liste' onchange='document.getElementById(\\\"destlist\\\").checked=true;' >\\n\"\n\t\t\t\t\t;\n\t\t\t\tforeach($listes_abos as $row) {\n\t\t\t\t\tif(\n\t\t\t\t\t\t($row['nb_abos'] > 0)\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t\t$flag_admin\n\t\t\t\t\t\t\t\t|| ($flag_moderateur && in_array($row['id_liste'], $listes_moderees))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t) {\n\t\t\t\t\t\t$checked = ($id_liste == $row['id_liste']) ? \"checked='checked'\" : \"\";\n\t\t\t\t\t\t$nb_abos = spiplistes_singulier_pluriel_str_get(\n\t\t\t\t\t\t\t$row['nb_abos']\n\t\t\t\t\t\t\t, _T('spiplistes:nb_abonnes_sing')\n\t\t\t\t\t\t\t, _T('spiplistes:nb_abonnes_plur')\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t$masque .= \"<option value='\" . $row['id_liste'] . \"' $checked >\" \n\t\t\t\t\t\t\t. spiplistes_calculer_balise_titre(extraire_multi($row['titre'])) \n\t\t\t\t\t\t\t. \" (\" . $nb_abos . \")</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$masque .= \"\"\n\t\t\t\t\t. \"</select>\\n\"\n\t\t\t\t\t;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$masque .= _T('spiplistes:aucune_liste_dispo');\n\t\t\t}\n\t\t\t$masque .= \"\"\n\t\t\t\t. \"</li>\"\n\t\t\t\t. \"</ul>\"\n\t\t\t\t. \"<div style='text-align:right;'>\"\n\t\t\t\t. \"<input type='submit' name='$nom_bouton_validation' value=\\\"\"._T('bouton_valider').\"\\\" class='fondo' /></div>\\n\"\n\t\t\t\t;\n\t\t\n\t\t// enveloppe dans un formulaire\n\t\t$masque = \"\"\n\t\t\t\t. \"<form action='\".generer_url_ecrire(_SPIPLISTES_EXEC_COURRIER_GERER,'id_courrier='.$id_courrier).\"' method='post'>\\n\"\n\t\t\t\t. $masque\n\t\t\t\t. \"</form>\\n\"\n\t\t\t\t;\n\t\t\n\t\t$result = block_parfois_visible('destinerblock', $invite, $masque, 'text-align: left');\n\t}\n\telse {\n\t\t$result = $invite;\n\t}\n\n\tif(!empty($result)) {\n\t\t$result = \"<div style='margin-top:1ex;'>\" . debut_cadre_couleur('',true) . $result . fin_cadre_couleur(true) .\"</div>\\n\";\n\t}\n\n\treturn ($result);\n}", "title": "" }, { "docid": "7bf25f6aea081cafa508ba5014a5115a", "score": "0.51647776", "text": "public function encours_livreur() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $this->Commande->contain('Bon', 'User', 'Receiver', 'Receiver.Ville', 'Receiver.Delegation', 'Receiver.Localite', 'User.Ville', 'Commercial', 'Livreur', 'Historique', 'Historique.User');\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'En Cours'),\n 'order' => array('Commande.created DESC')\n ));\n if (!empty($this->request->data['Commande']['currentDate'])) {\n $encourscommercials = $this->Commande->find('all', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.modified LIKE' => $this->request->data['Commande']['currentDate'] . \" %\", 'Commande.livreur_id' => $this->request->data['Commande']['livreur_id'], 'Commande.type_remettre' => 'Ramassage', 'Commande.state' => 'En Cours'),\n 'order' => array('Commande.created DESC')\n ));\n }\n if (!empty($encourscommercials)) {\n $clientsID = $this->Commande->find('list', array(\n 'conditions' => array('Commande.type' => 'Transport', 'Commande.state' => 'En Cours', $this->request->data['Commande']['livreur_id']),\n 'order' => array('Commande.modified DESC'),\n 'fields' => array('Commande.user_id')\n ));\n $this->User->contain('Ville');\n $clientsencours = $this->User->find('all', array(\n 'conditions' => array('User.id IN' => $clientsID)\n ));\n http_response_code(200);\n echo json_encode(array(\n 'data' => $clientsencours,\n 'status' => 200,\n 'type' => 'success'\n ));\n die();\n } else {\n http_response_code(200);\n echo json_encode(array(\n 'data' => __('Pas de commandes récupérées'),\n 'status' => 200,\n 'type' => 'error'\n ));\n die();\n }\n }\n// http_response_code(403);\n// echo json_encode(array(\n// 'text' => __(\"Not Allowed To Access\"),\n// 'status' => 403,\n// 'type' => 'error'\n// ));\n// die();\n }", "title": "" }, { "docid": "a4df6e2a666a56623c87963e346c6887", "score": "0.5153158", "text": "public function filtrerBien()\n {\n\n $query = $this->getPartnerId();\n $result = $this->sendingDataToSiteController($query);\n return ($result);\n }", "title": "" }, { "docid": "e77188b70eff723f0e0cf01baae82e1f", "score": "0.5150407", "text": "function autoriser_mailsubscriber_voir_dist($faire, $type, $id, $qui, $opt) {\n\treturn $qui['statut'] == '0minirezo' AND !$qui['restreint'];\n}", "title": "" }, { "docid": "ea1bf601a0606f380da47c995c5f8007", "score": "0.5147693", "text": "public function getResponsables()\n {\n return $this->hasMany(Responsable::className(), ['Num_Parent' => 'Num_Parent']);\n }", "title": "" }, { "docid": "bae1d1c3a1d570308ad6f5a31fa27088", "score": "0.5145536", "text": "public function getFkCseResponsavel()\n {\n return $this->fkCseResponsavel;\n }", "title": "" }, { "docid": "a0d3dec372514ee1ac904539f992bebd", "score": "0.514529", "text": "function autoriser_projets_notifier_dist($faire, $type, $id, $qui, $opt){\n\t$autorise = false;\n\n\t// On ne pourra de toute manière être notifié que losque l'on pourra voir le projet\n\tif(autoriser_projets_voir_dist($faire, $type, $id, $qui, $opt)){\n\n\t}\n\n\n\treturn $autorise;\n}", "title": "" }, { "docid": "e19b5999b7b28e578ace62096784f361", "score": "0.5139178", "text": "public function connexionResponsable($login, $mdp){\n\t\t$req = \"SELECT VIS_NOM, VIS_PRENOM FROM RESPONSABLE\n\t\tWHERE VIS_MATRICULE='\".$login.\"' AND VIS_MDP = '\".$mdp.\"'\";\n\t\t$res = PdoMonSite::$monPdo->query($req);\n\t\t$laLigne = $res->fetch();\n\t\treturn $laLigne;\n\t}", "title": "" }, { "docid": "96073eda5dea3877f8f621842c86b676", "score": "0.5138549", "text": "public function clientecadastrado ()\n {\n // Verifica se esta logado\n $this->check_login();\n\n // Verifica as permissoes necessarias\n if ($_SESSION['userdata']['per_pe'] != 1 )\n {\n // Se nao possuir permissao\n // Redireciona para index\n $this->moveHome();\n }\n else\n {\n // Define o titulo da pagina\n $this->title = \"Cliente Cadastrado\";\n\n // Define os parametro da funcao\n $parametros = (func_num_args() >= 1) ? func_get_arg(0) : array();\n\n // Carrega o modelo para este view\n $modelo = $this->load_model('pesquisa/pesquisar-model');\n\n // Carrega view\n require_once EFIPATH . \"/views/_includes/header.php\";\n require_once EFIPATH . \"/views/_includes/menu.php\";\n require_once EFIPATH . \"/views/pesquisar/pesquisaCliente-view.php\";\n require_once EFIPATH . \"/views/_includes/footer.php\";\n }\n }", "title": "" }, { "docid": "149e280e2a3ff38a033e8ccede0e15ec", "score": "0.51332086", "text": "public function comprobar_responsable_entidad($id_usuario, $id_entidad)\n {\n if ($this->load(\"id_usuario=$id_usuario AND id_entidad=$id_entidad AND (id_rol = 1 OR id_rol =2)\"))\n {\n return true;\n }\n //Comprobamos la herencia en las subunidades\n if ($id_entidad != 1)\n {\n $entidad = new Entidad();\n $entidad->load(\"id=$id_entidad\");\n return $this->comprobar_responsable_entidad($id_usuario, $entidad->id_madre);\n }\n return false;\n }", "title": "" }, { "docid": "15384358c74232faa0ba124ca72ec350", "score": "0.51236737", "text": "function modificarTipoComunicacion(){\n\t\t$this->procedimiento='dir.f_tipo_comunicacion_ime';\n\t\t$this->transaccion='DIR_TIC_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_tiipo_comunicacion','id_tiipo_comunicacion','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('obs','obs','text');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "d10c345f4420c078c50bc5ff3c65af27", "score": "0.51142585", "text": "function autoriser_mailsubscribers_menu_dist($faire, $type, $id, $qui, $opts) {\n\treturn $qui['statut'] == '0minirezo' AND !$qui['restreint'];\n}", "title": "" }, { "docid": "77767bfc9714ecea095a109953ead23c", "score": "0.5105386", "text": "function comite($type, $comite = 1, $silent = false) {\n if(!$this->allowed('comite-header', $type)) {\n $this->layout->set('header', 'Nos amis:');\n $comite = 0;\n }\n\n if(!$this->allowed('comite-acl', $type))\n return $this->layout->error_append('Vous devez être connecté pour voir ces membres');\n\n //\n // The sub selected is \"Anciens comités\"\n //\n if($type == 7)\n return $this->oldcomite();\n\n //\n // easter egg: fake sql injection\n //\n if(is_string($type) && $type[0] == \"'\")\n die(\"Bravo, tu as trouvé la faille d'injection SQL, j't'affone !\");\n\n //\n // grabbing users from their type\n //\n $req = $this->sql->prepare('\n SELECT *\n FROM cbs_membres WHERE type = ? AND comite = ?\n ORDER BY ordre DESC, anbapt DESC\n ');\n\n $req->bind_param('ii', $type, $comite);\n $data1 = $this->sql->exec($req);\n\n //\n // grabbing users from additional type\n //\n $req = $this->sql->prepare('\n SELECT m.*, t.type type\n FROM cbs_membres m, cbs_add_types t\n WHERE t.type = ? AND m.id = t.mid\n ORDER BY m.ordre DESC, m.anbapt DESC\n ');\n\n $req->bind_param('i', $type);\n $data2 = $this->sql->exec($req);\n\n $final = array_merge($data1, $data2);\n\n if(!$silent && (count($final) == 0 || isset($this->skiptypes[$type])))\n return $this->layout->error_append('Personne pour le moment');\n\n $suffix = ($type == 0 && $comite == 0) ? '.wasted' : '';\n\n foreach($final as $user)\n $this->user($user, $suffix);\n\n // adding wasted blue\n if($type == 0 && $comite == 1)\n $this->comite($type, 0, true);\n }", "title": "" }, { "docid": "7a19f5a1d01eb970d95de3077ecb1938", "score": "0.50935936", "text": "public static function gerer(){\n\t\tif(Utilisateur::isAllowed(parent::$_pdo,PROFIL_SUPERVISEUR)){\t// Les droits minimums pour la gestion des utilisateurs sont celui du profil superviseur\t\n\t\t\t/* Assigner les différents messages avec GetText */\n\t\t\t$users \t\t\t= Utilisateur::loadAll(parent::$_pdo);\t\t\t\t// Chargement de l'objet utilisateur\n\t\t\t\n\t\t\tparent::$_response->addVar('users'\t\t\t\t\t, $users); \t\t\t\t// Assigner l'objet dans le template correspondant\t\n\t\t\tparent::$_response->addVar('txt_listeUtilisateurs'\t, gettext('Liste des utilisateurs')); \n\t\t\tparent::$_response->addVar('txt_ajouter'\t\t\t, gettext('Ajouter un utilisateur'));\t\n\t\t\tparent::$_response->addVar('txt_editer'\t\t\t\t, gettext('Editer'));\t\n\t\t\tparent::$_response->addVar('txt_confirmSuppression'\t, gettext('Voulez vous vraiment supprimer'));\n\t\t\tparent::$_response->addVar('txt_lienSupprimer'\t\t, gettext('Supprimer'));\t\n\t\t\t\n\t\t\tparent::$_response->addVar('txt_prenom'\t\t\t\t, gettext('Pr&eacute;nom'));\n\t\t\tparent::$_response->addVar('txt_nom'\t\t\t\t, gettext('Nom'));\n\t\t\tparent::$_response->addVar('txt_email'\t\t\t\t, gettext('Email'));\n\t\t\tparent::$_response->addVar('txt_login'\t\t\t\t, gettext('Identifiant'));\n\t\t\tparent::$_response->addVar('txt_templateUtilise'\t, gettext('Template utilis&eacute;'));\n\t\t\tparent::$_response->addVar('txt_preparateur'\t\t, gettext('Pr&eacute;parateur'));\n\t\t\tparent::$_response->addVar('txt_superviseur'\t\t, gettext('Superviseur'));\n\t\t\tparent::$_response->addVar('txt_administrateur'\t\t, gettext('Administrateur'));\n\t\t\tparent::$_response->addVar('txt_fonction'\t\t\t, gettext('Fonction'));\n\t\t\tparent::$_response->addVar('txt_derniereConnexion'\t, gettext('Derni&egrave;re connexion'));\n\n\t\t}\t\n\t}", "title": "" }, { "docid": "f12c8c3ccb1e082149a2a524b0cd970d", "score": "0.50914824", "text": "public static function notifyAnnulation(){\n return['title'=>'Votre chauffeur s\\'est désisté !',\n 'body'=>'Votre demande a automatiquement été remise en attente',\n 'datas'=>['url'=>'courses']];\n }", "title": "" }, { "docid": "13a2e6b9eda47510cc8f335715621bee", "score": "0.5090118", "text": "function busquedaClientesAgenciasVuelosDescendente(){\n $resultado = false;\n $resultado = $this->controlBD->consultarClientesAgenciasVuelosDescendente();\n return $resultado;\n }", "title": "" }, { "docid": "630c92cff2d68bcc489aa6e32ea31ee3", "score": "0.5085747", "text": "public function responden()\n { \n return $this->hasMany(Responden::class, 'ikm_id');\n }", "title": "" }, { "docid": "1ddeec616336c570a32281f05265a4e3", "score": "0.50712425", "text": "Public function acces_membre(){\n\n /** je require L'objet session **/\n require_once(REP_LIB_PHP.\"model_session.php\");\n\n /** je lance l'identification **/\n\n $this->contenu['connection'] = \"coucou\";\n\n\n\n\n }", "title": "" }, { "docid": "a90245e55e06f8748a37c43df2bb7dae", "score": "0.5055727", "text": "function autoriser_projets_voir_dist($faire, $type, $id, $qui, $opt){\n\t$autorise = false;\n\n\t// Eviter toute erreur de configuration\n\n\t// Si on peut creer, on peut voir\n\tif(autoriser_projets_creer_dist($faire, $type, $id, $qui, $opt)){\n\t\treturn autoriser_projets_creer_dist($faire, $type, $id, $qui, $opt);\n\t}\n\t// Si on peut modifier, on peut voir également\n\telse if(autoriser_projets_modifier_dist($faire, $type, $id, $qui, $opt)){\n\t\treturn autoriser_projets_creer_dist($faire, $type, $id, $qui, $opt);\n\t}\n\telse{\n\t\t$type = lire_config('projets/autorisations/creer_type', 'webmestre');\n\t\tswitch($type) {\n\t\t\tcase 'webmestre':\n\t\t\t\t// Webmestres uniquement\n\t\t\t\t$autorise = in_array($qui['id_auteur'], explode(':', _ID_WEBMESTRES));\n\t\t\t\tbreak;\n\t\t\tcase 'par_statut':\n\t\t\t\t// Autorisation par statut\n\t\t\t\t$autorise = in_array($qui['statut'], lire_config('projets/autorisations/voir_statuts',array()));\n\t\t\t\tbreak;\n\t\t\tcase 'par_auteur':\n\t\t\t\t// Autorisation par id d'auteurs\n\t\t\t\t$autorise = in_array($qui['id_auteur'], lire_config('projets/autorisations/voir_auteurs',array()));\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn $autorise;\n}", "title": "" }, { "docid": "f701f30de3a357c3d0c0991b342eb308", "score": "0.50510484", "text": "public function isVisibleForClient() {\n\n $messages = $this->messages;\n\n foreach ($messages as $message) {\n\n $author = $message->author;\n\n if ($author == Message::AUTHOR_CARER) {\n return true; //if at least one reply from carer\n }\n elseif($author == Message::AUTHOR_CLIENT){\n \n if($message->type == Message::TYPE_BOOKING){\n return true; //if at least one booking message (to handle legacy)\n }\n } \n }\n\n return false;\n }", "title": "" }, { "docid": "b3e8cf98da927ed0f0f1a9131377b74b", "score": "0.5044224", "text": "public function cliente(){\n $peticion = $this->uri->uri_to_assoc();\n $token = MIDDLE::verify($peticion);\n\n /**\n * procesa la peticion\n * find all users in ddbb\n */\n\n $res = $this->clientes_model->read($peticion['id']);\n\n // Check if the users data store contains users (in case the database result returns NULL)\n if ($res)\n {\n $data['redireccion'] = $this->redireccion;\n $data['cliente'] = $res;\n $data['token'] = $token;\n $this->load->view('header', $data);\n $this->load->view('detalle_clientes', $data);\n $this->load->view('footer');\n // Set the response and exit\n //$this->response($users, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code\n }\n else\n {\n // Set the response and exit\n //$output['errors'] = '{\"type\": \"No users were found\"}';\n //$this->response($output, 400); // BAD_REQUEST (400)\n $this->output->set_status_header(400);\n $this->output->set_output('No users were found');\n }\n\n }", "title": "" }, { "docid": "1574542dc391d0cc483d4c76b34a64c5", "score": "0.5038962", "text": "function eliminarTipoRelacionContable(){\n\t\t$this->procedimiento='conta.ft_tipo_relacion_contable_ime';\n\t\t$this->transaccion='CONTA_TIPRELCO_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_tipo_relacion_contable','id_tipo_relacion_contable','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "bf9bfaf3605fccedfe899f44e4d04cd1", "score": "0.50316703", "text": "function select_cr_modif()\n{\n\tglobal $crRecupere;\n\t\n\tfor ($i = -1;$i < count ($crRecupere->chapitres) - 1;$i++) \n\t{\n\t\t// récupérer le chapitre courant\n\t\t$chapCourant = &$crRecupere->chapitres[$i];\n\t\t//sélectionner tous les chapitres, sous chapitres et fiches de recettes\n\t\t$chapCourant->select();\n\t} // fin de la boucle for de i\n}", "title": "" }, { "docid": "3ff3903153de9b4420ec126320c7623a", "score": "0.50268406", "text": "function formulaires_editer_partenaires_type_traiter_dist($id_type='new', $retour='', $associer_objet='', $lier_trad=0, $config_fonc='', $row=array(), $hidden=''){\n\t$res = formulaires_editer_objet_traiter('partenaires_type',$id_type,'',$lier_trad,$retour,$config_fonc,$row,$hidden);\n \n\t// Un lien a prendre en compte ?\n\tif ($associer_objet AND $id_type = $res['id_type']) {\n\t\tlist($objet, $id_objet) = explode('|', $associer_objet);\n\n\t\tif ($objet AND $id_objet AND autoriser('modifier', $objet, $id_objet)) {\n\t\t\tinclude_spip('action/editer_liens');\n\t\t\tobjet_associer(array('partenaires_type' => $id_type), array($objet => $id_objet));\n\t\t\tif (isset($res['redirect'])) {\n\t\t\t\t$res['redirect'] = parametre_url ($res['redirect'], \"id_lien_ajoute\", $id_type, '&');\n\t\t\t}\n\t\t}\n\t}\n\treturn $res;\n\n}", "title": "" }, { "docid": "41846520f970a04b6de56477f3e32645", "score": "0.50157106", "text": "public function solicitar()\n {\n\n $cantidad = Session::get('colegio')['entradas'];\n\n //Realizar la inserción de los datos\n $solicitud = (New Solicitud)->ingresar(); //Ingreso de solicitud\n $usuarios = (New Usuarios)->ingresar(); //Ingreso de los invitados\n $conteo = (New Configuracion)->contador_cupos($usuarios);\n if($cantidad == $usuarios){\n Email::gratis();\n }\n $this->data = 1;\n View::select(null, 'json');\n }", "title": "" }, { "docid": "3a6461d6fc043533c3abf194964732bd", "score": "0.5011506", "text": "public function getContenu()\n {\n return $this->contenu;\n }", "title": "" }, { "docid": "3a6461d6fc043533c3abf194964732bd", "score": "0.5011506", "text": "public function getContenu()\n {\n return $this->contenu;\n }", "title": "" }, { "docid": "b2db5130d6bfeb9375a3c0c690156e48", "score": "0.5010866", "text": "public function tp_resp(){\n $ddep = $this->model_proyecto->dep_dist($this->dist);\n if($this->adm==1){\n $titulo='RESPONSABLE NACIONAL';\n }\n elseif($this->adm==2){\n $titulo='RESPONSABLE '.strtoupper($ddep[0]['dist_distrital']);\n }\n\n return $titulo;\n }", "title": "" }, { "docid": "10d141172587f6e1d698ea25c345ebd6", "score": "0.50054574", "text": "public function setChibreAsset_InDonne(){\r\n\t\t// refresh le game\r\n\t\t$this->refreshGame_AfterInput();\r\n\t\t\r\n\t\t$this->getCurrentDonne()->setChibre(true);\r\n\t\t$this->getCurrentDonne()->save();\r\n\t\t\r\n\t\t// reafficher le game\r\n\t\t$this->redirect(\"game\",\"game\");\r\n\t}", "title": "" }, { "docid": "a6f046d7a8ec804032caf6693549b06d", "score": "0.50035983", "text": "public function ricercaClienti(){\n\t\t\n\t\t$connessione = $this->connetti();\n\t\t\n\t\tif(isset($_GET[\"nome\"])){\n\t\t\t\n\t\t\t$value = $this->clean_input($_GET[\"nome\"]);\n\t\t\t\n\t\t\t$value = $this->val_input(\"text\", $value);\n\t\t\t\n\t\t\t$query = 'SELECT nome,cognome,comune,id_cliente FROM cliente WHERE nome=\"' . $value . '\"';\n\t\t}\n\t\t\n\t\tif(isset($_GET[\"cognome\"])){\n\t\t\t\n\t\t\t$value = $this->clean_input($_GET[\"cognome\"]);\n\t\t\t\n\t\t\t$value = $this->val_input(\"text\", $value);\n\t\t\t\n\t\t\t$query = 'SELECT nome,cognome,comune,id_cliente FROM cliente WHERE cognome=\"' . $value . '\"';\n\t\t}\n\t\t\n\t\tif(isset($_GET[\"comune\"])){\n\t\t\t\n\t\t\t$value = $this->clean_input($_GET[\"comune\"]);\n\t\t\t\n\t\t\t$value = $this->val_input(\"text\", $value);\n\t\t\t\n\t\t\t$query = 'SELECT nome,cognome,comune,id_cliente FROM cliente WHERE comune=\"' . $value . '\"';\n\t\t}\n\t\t\n\t\t$response = $connessione->query($query);\n\t\t\n\t\t$data = $response->fetchAll();\n\t\t\n\t\techo(\"<table class='table'>\");\n\t\techo(\"<tr>\");\n\t\techo(\"<th> Nome </th>\");\n\t\techo(\"<th> Cognome </th>\");\n\t\techo(\"<th> Comune </th>\");\n\t\techo(\"<th> </th>\");\n\t\techo(\"</tr>\");\n\t\tforeach($data as $row){\n\t\t\techo(\"<tr>\");\n\t\t\techo('<td>' . $row[\"nome\"] . ' </td>');\n\t\t\techo('<td>' . $row[\"cognome\"] . ' </td>');\n\t\t\techo('<td>' . $row[\"comune\"] . ' </td>');\n\t\t\techo('<td> <a href=\"mostraProfilo.php?id_cliente=' . $row[\"id_cliente\"] . '\"> Mostra </a> </td>');\n\t\t\techo(\"</tr>\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "846f67672d559c3f3d7a6701f81a2cbd", "score": "0.5003459", "text": "public function plantillaContenido(){\n\n\t\t\t\tif (isset($_GET[\"ruta\"])) {\n\t\t\t\t\t\n\t\t\t\t\tswitch ($_GET[\"ruta\"]) {\n\n\t\t\t\t\t case \"ingreso\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"ingreso\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"datosGenerales\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"datosGenerales\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"proyectosUsuarios\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"proyectosUsuarios\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"subsecretario\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"subsecretario\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"directores\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"directores\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"funcionarios\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"funcionarios\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"tramitesRealizados\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesRealizados\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"tramitesRealizados2\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesRealizados2\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"tramitesRealizados3\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesRealizados3\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t \t\tcase \"tramitesNegados\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesNegados\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t \t\t\tcase \"tramitesNegados2\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesNegados2\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t \t\t\tcase \"tramitesNegados3\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesNegados3\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t \t\t\t\tcase \"deportistas\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"deportistas\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t \t\t\t\tcase \"organismos\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"organismos\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t \t\t\t\tcase \"proyectosAdmin\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"proyectosAdmin\".self::$nomenclatura;\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t \t\t\t\tcase \"datosGeneralesModificaciones\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"datosGeneralesModificaciones\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t \t\t\t\tcase \"documentosAnexosEdicion\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"documentosAnexosEdicion\".self::$nomenclatura;\n\t\t\t\t\t break;\t\t\t\t\t \n\n\t \t\t\t\tcase \"directorRecomendado\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"directorRecomendado\".self::$nomenclatura;\n\t\t\t\t\t break;\t\t\n\n\t \t\t\t\tcase \"subseRecomendado\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"subseRecomendado\".self::$nomenclatura;\n\t\t\t\t\t break;\t\t\n\n\t \t\t\t\tcase \"secretariaComite\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"secretariaComite\".self::$nomenclatura;\n\t\t\t\t\t break;\t\n\n\t\t\t\t\t case \"tramitesFirmar\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesFirmar\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"datosGeneralesPrincipal\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"datosGeneralesPrincipal\".self::$nomenclatura;\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t case \"proyectoCrear\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"proyectoCrear\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"tramitesFirmarSubsess\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesFirmarSubsess\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"firmasMinistros\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"firmasMinistros\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"firmasCoordinadores\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"firmasCoordinadores\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"firmasFuncionarios\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"firmasFuncionarios\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"firmasDirectores\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"firmasDirectores\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"creacionComponentes\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"creacionComponentes\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t \n\t\t\t\t\t case \"patrocinador\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"patrocinador\".self::$nomenclatura;\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t case \"subsesRegistros\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"subsesRegistros\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"proyectosCertificarCoordinador\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"proyectosCertificarCoordinador\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"secretariaComiteCertifica\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"secretariaComiteCertifica\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"reporteriaGeneral\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"reporteriaGeneral\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"datosGeneralesModificacionesRectificaciones\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"datosGeneralesModificacionesRectificaciones\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"modificaciones\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"modificaciones\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"tramitesCoordinador\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"tramitesCoordinador\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"directoresComponentes\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"directoresComponentes\".self::$nomenclatura;\n\t\t\t\t\t break;\n\n\t\t\t\t\t case \"salir\":\n\t\t\t\t\t require_once self::$vista.self::$contenidoVistas.\"salir\".self::$nomenclatura;\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t}\n\n\t\t\t\t}else{\n\n\t\t\t\t\trequire_once self::$vista.self::$contenidoVistas.$this->rutaInicial.self::$nomenclatura;\n\n\t\t\t\t}\n\n\n\t\t\t}", "title": "" }, { "docid": "19efaea5fb60e55852370a6067d18d19", "score": "0.50016", "text": "public function conviteDados(ClienteConvite $convite);", "title": "" }, { "docid": "57b18e65bbbc6772238ca292507354c1", "score": "0.50013804", "text": "function listarTipoRelacionContable(){\n\t\t$this->procedimiento='conta.ft_tipo_relacion_contable_sel';\n\t\t$this->transaccion='CONTA_TIPRELCO_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_tipo_relacion_contable','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('nombre_tipo_relacion','varchar');\n\t\t$this->captura('tiene_centro_costo','varchar');\n\t\t$this->captura('codigo_tipo_relacion','varchar');\n\t\t$this->captura('id_tabla_relacion_contable','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('tiene_partida','varchar');\n\t\t$this->captura('tiene_auxiliar','varchar');\n\t\t$this->captura('partida_tipo','varchar');\n\t\t$this->captura('partida_rubro','varchar');\n\t\t$this->captura('tiene_aplicacion','varchar');\n\t\t$this->captura('tiene_moneda','varchar');\n\t\t$this->captura('tiene_tipo_centro','varchar');\n\t\t$this->captura('codigo_aplicacion_catalogo','varchar');\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "12a4630ea9c9f5eed8db5bd8008709c7", "score": "0.5000081", "text": "function autoriser_mailsubscriber_superinstituer_dist($faire, $type, $id, $qui, $opt) {\n\treturn false;\n}", "title": "" } ]
519a19128b76e4c5020c820ee7d82e18
domisili parpol cetak surat domisiliparpol
[ { "docid": "2f57e945f4c0e478e41cdbb9a8e6de42", "score": "0.6723753", "text": "public function domisiliparpolcetakAction() {\n $id_permintaan_domisiliparpol = $this->_getParam(\"id_permintaan_domisiliparpol\");\n $this->view->hasil = $this->surat_serv->getdomisiliparpolcetak($id_permintaan_domisiliparpol);\n }", "title": "" } ]
[ { "docid": "f25aa5f4d6910c3a3dfb5a0268143c3f", "score": "0.59302974", "text": "public function getdomisiliparpolbulan($bln,$thn){\n\t\t$registry = Zend_Registry::getInstance();\n\t\t$db = $registry->get('db');\n\t\ttry {\n\t\t\t$db->setFetchMode(Zend_Db::FETCH_OBJ); \t\t\n\t\t\t\t$result = $db->fetchAll(\"select p.*, a.*,\n\t\t\t\t\t\t\t\t\t\ts.nama_surat,\n\t\t\t\t\t\t\t\t\t\tj.nama_pejabat,j.nip_pejabat,\n\t\t\t\t\t\t\t\t\t\tk.* , \n\t\t\t\t\t\t\t\t\t\tjp.nama_jenis_pengguna,\n\t\t\t\t\t\t\t\t\t\tdp.nama_pengguna as nama_pegawai\n\t\t\t\t\t\t\t\t\t\tfrom data_penduduk p, data_pegawai dp, permintaan_domisili_parpol a, surat s, pejabat_kelurahan j, pengguna u, kelurahan k , jenis_pengguna jp\n\t\t\t\t\t\t\t\t\t\twhere a.nik=p.nik \n\t\t\t\t\t\t\t\t\t\tand a.id_surat = s.id_surat\n\t\t\t\t\t\t\t\t\t\tand a.id_pejabat = j.id_pejabat\n\t\t\t\t\t\t\t\t\t\tand a.id_kelurahan = k.id_kelurahan\n\t\t\t\t\t\t\t\t\t\tand j.id_jenis_pengguna = jp.id_jenis_pengguna \n\t\t\t\t\t\t\t\t\t\tand u.id_data_pegawai = dp.id_data_pegawai\n\t\t\t\t\t\t\t\t\t\tand (a.antrian_oleh = u.id_pengguna or a.proses_oleh = u.id_pengguna) \n\t\t\t\t\t\t\t\t\t\tand date_format(a.tanggal_surat, '%M %Y') = '$bln $thn'\");\n\t\t\t\treturn $result;\n\t\t } catch (Exception $e) {\n\t echo $e->getMessage().'<br>';\n\t\t return 'Data tidak ada <br>';\n\t\t }\n\t}", "title": "" }, { "docid": "b891a506da62340705592d3e46914c5a", "score": "0.58365256", "text": "function poliza($datos)\n{\n\t$datos['Polizas']['Certificado'] = $datos['factura']['certificado'];\n\t$datos['Polizas']['noCertificado'] = $datos['factura']['noCertificado'];\n\tunset($datos['factura']);\n\t\n\tforeach($datos['Polizas']['Poliza'] as $idxp => $poliza)\n\t{\n\t\t$nodos_transaccion = '';\n\t\tforeach($poliza['Transaccion'] as $idxt => $transaccion)\n\t\t{\n\t\t\t$atrs_transaccion = mf_atributos_nodo($transaccion, '');\n\t\t\t\n\t\t\t$nodos_compnal='';\n\t\t\tforeach($transaccion['CompNal'] as $idxcn => $compnal)\n\t\t\t{\n\t\t\t\t$atrs_compnal = mf_atributos_nodo($compnal, '');\n\t\t\t\t$nodos_compnal .= \"<PLZ:CompNal $atrs_compnal></PLZ:CompNal>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_compnalotr='';\n\t\t\tforeach($transaccion['CompNalOtr'] as $idxcno => $compnalotr)\n\t\t\t{\n\t\t\t\t$atrs_compnalotr = mf_atributos_nodo($compnalotr, '');\n\t\t\t\t$nodos_compnalotr .= \"<PLZ:CompNalOtr $atrs_compnalotr></PLZ:CompNalOtr>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_compext='';\n\t\t\tforeach($transaccion['CompExt'] as $idxcme => $compext)\n\t\t\t{\n\t\t\t\t$atrs_compext = mf_atributos_nodo($compext, '');\n\t\t\t\t$nodos_compext .= \"<PLZ:CompExt $atrs_compext></PLZ:CompExt>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_cheque='';\n\t\t\tforeach($transaccion['Cheque'] as $idxcheque => $cheque)\n\t\t\t{\n\t\t\t\t$atrs_cheque = mf_atributos_nodo($cheque, '');\n\t\t\t\t$nodos_cheque .= \"<PLZ:Cheque $atrs_cheque></PLZ:Cheque>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_transferencia='';\n\t\t\tforeach($transaccion['Transferencia'] as $idxcheque => $transferencia)\n\t\t\t{\n\t\t\t\t$atrs_transferencia= mf_atributos_nodo($transferencia, '');\n\t\t\t\t$nodos_cheque .= \"<PLZ:Transferencia $atrs_transferencia></PLZ:Transferencia>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_otrometodopago='';\n\t\t\tforeach($transaccion['OtrMetodoPago'] as $idxcheque => $otrmetodopago)\n\t\t\t{\n\t\t\t\t$atrs_otrmetodopago= mf_atributos_nodo($otrmetodopago, '');\n\t\t\t\t$nodos_otrometodopago .= \"<PLZ:OtrMetodoPago $atrs_otrmetodopago></PLZ:OtrMetodoPago>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nodos_transaccion .= \"<PLZ:Transaccion $atrs_transaccion>$nodos_compnal$nodos_compnalotr$nodos_compext$nodos_cheque$nodos_transferencia$nodos_otrometodopago</PLZ:Transaccion>\";\n\t\t}\n\t\t\n\t\t$atrs_poliza = mf_atributos_nodo($poliza, '');\n\t\t$nodos_poliza .= \"<PLZ:Poliza $atrs_poliza>$nodos_transaccion</PLZ:Poliza>\";\n\t}\n\t\n\t$atrs_polizas = mf_atributos_nodo($datos['Polizas'], '');\n\t$xml_polizas = '<?xml version=\"1.0\" encoding=\"UTF-8\" ?>'.\"\\n<PLZ:Polizas xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:PLZ=\\\"http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo\\\" xsi:schemaLocation=\\\"http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo/PolizasPeriodo_1_3.xsd\\\" Version='1.3' $atrs_polizas Sello='{SELLO}'>$nodos_poliza</PLZ:Polizas>\";\n\treturn $xml_polizas;\n}", "title": "" }, { "docid": "31fcf57eb8a79aa9475a12935e4ea40b", "score": "0.5818305", "text": "public function getdomisiliparpolhari($tanggal,$bln,$thn){\n\t\t$registry = Zend_Registry::getInstance();\n\t\t$db = $registry->get('db');\n\t\ttry {\n\t\t\t$db->setFetchMode(Zend_Db::FETCH_OBJ); \t\t\n\t\t\t\t$result = $db->fetchAll(\"select p.*, a.*,\n\t\t\t\t\t\t\t\t\t\ts.nama_surat,\n\t\t\t\t\t\t\t\t\t\tj.nama_pejabat,j.nip_pejabat,\n\t\t\t\t\t\t\t\t\t\tk.* , \n\t\t\t\t\t\t\t\t\t\tjp.nama_jenis_pengguna,\n\t\t\t\t\t\t\t\t\t\tdp.nama_pengguna as nama_pegawai\n\t\t\t\t\t\t\t\t\t\tfrom data_penduduk p, data_pegawai dp, permintaan_domisili_parpol a, surat s, pejabat_kelurahan j, pengguna u, kelurahan k , jenis_pengguna jp\n\t\t\t\t\t\t\t\t\t\twhere a.nik=p.nik \n\t\t\t\t\t\t\t\t\t\tand a.id_surat = s.id_surat\n\t\t\t\t\t\t\t\t\t\tand a.id_pejabat = j.id_pejabat\n\t\t\t\t\t\t\t\t\t\tand a.id_kelurahan = k.id_kelurahan\n\t\t\t\t\t\t\t\t\t\tand j.id_jenis_pengguna = jp.id_jenis_pengguna \n\t\t\t\t\t\t\t\t\t\tand u.id_data_pegawai = dp.id_data_pegawai\n\t\t\t\t\t\t\t\t\t\tand (a.antrian_oleh = u.id_pengguna or a.proses_oleh = u.id_pengguna)\n\t\t\t\t\t\t\t\t\t\tand date_format(a.tanggal_surat, '%d %M %Y') = '$tanggal $bln $thn'\");\n\t\t\t\treturn $result;\n\t\t } catch (Exception $e) {\n\t echo $e->getMessage().'<br>';\n\t\t return 'Data tidak ada <br>';\n\t\t }\n\t}", "title": "" }, { "docid": "ef481b53830db483afb2b7d972a767fe", "score": "0.5810447", "text": "function intitule_soir(){\n\t//print $GLOBALS['hebdomada'];\n\t//$date=$_GET['date'];\n\t$date_ts=$GLOBALS['date_ts'];\n\t$die=array(\"Dominica\",\"Feria II\",\"Feria III\",\"Feria IV\",\"Feria V\",\"Feria VI\",\"Sabbato\");\n\t$lang=$GLOBALS['lang'];\n\t$xml = $GLOBALS['liturgia'];\n\t$req=\"//ordo[@id='RE']\";\n\t$r=$xml->xpath($req);\n\t//print_r($r[0]);\n\t$hebdomada=$r[0]->hebdomada->la;\n\t\n\t$int=\"\n\t<div class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".$hebdomada.\"</div>\n\t<div class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".ucfirst(get_traduction($hebdomada,$lang)).\"</div>\n\t\";\n\t$int.=\"\n\t<div class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center;\\\">\".$die[date('w',$date_ts)].\"</div>\n\t<div class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center;\\\">\".ucfirst(get_traduction($die[date('w',$date_ts)],$lang)).\"</div>\n\t\";\n\t$intitule_la=$r[0]->intitule_soir->la;\n\t/*\n\tif($lang==\"fr\") $intitule_ver=$r[0]->intitule->fr;\n\tif($lang==\"en\") $intitule_ver=$r[0]->intitule->en;\n\tif($lang==\"ar\") $intitule_ver=$r[0]->intitule->ar;\n\t*/\n\t\n\tif($intitule_la!=\"\") {\n\t\t$int.=\"\n\t\t<div class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".$intitule_la.\"</div>\n\t\t<div class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".get_traduction($intitule_la, $lang).\"</div>\n\t\t\";\n\t\t$rang=$r[0]->rang_soir->la;\n\t\t$rang_ver=get_traduction($rang, $lang);\n\t\tif($rang) $int.=\"\n\t\t<div class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center; font-style:italic\\\">\".$rang.\"</div>\n\t\t<div class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center; font-style:italic\\\">\".$rang_ver.\"</div>\n\t\t\";\n\t}\n\treturn $int;\n}", "title": "" }, { "docid": "6f929f158445c3f8a4dde958ae02d870", "score": "0.5806918", "text": "public function getdomisiliparpoltahun($thn){\n\t\t$registry = Zend_Registry::getInstance();\n\t\t$db = $registry->get('db');\n\t\ttry {\n\t\t\t$db->setFetchMode(Zend_Db::FETCH_OBJ); \t\t\n\t\t\t\t$result = $db->fetchAll(\"select p.*, a.*,\n\t\t\t\t\t\t\t\t\t\ts.nama_surat,\n\t\t\t\t\t\t\t\t\t\tj.nama_pejabat,j.nip_pejabat,\n\t\t\t\t\t\t\t\t\t\tk.* , \n\t\t\t\t\t\t\t\t\t\tjp.nama_jenis_pengguna,\n\t\t\t\t\t\t\t\t\t\tdp.nama_pengguna as nama_pegawai\n\t\t\t\t\t\t\t\t\t\tfrom data_penduduk p, data_pegawai dp, permintaan_domisili_parpol a, surat s, pejabat_kelurahan j, pengguna u, kelurahan k , jenis_pengguna jp\n\t\t\t\t\t\t\t\t\t\twhere a.nik=p.nik \n\t\t\t\t\t\t\t\t\t\tand a.id_surat = s.id_surat\n\t\t\t\t\t\t\t\t\t\tand a.id_pejabat = j.id_pejabat\n\t\t\t\t\t\t\t\t\t\tand a.id_kelurahan = k.id_kelurahan\n\t\t\t\t\t\t\t\t\t\tand j.id_jenis_pengguna = jp.id_jenis_pengguna \n\t\t\t\t\t\t\t\t\t\tand u.id_data_pegawai = dp.id_data_pegawai\n\t\t\t\t\t\t\t\t\t\tand (a.antrian_oleh = u.id_pengguna or a.proses_oleh = u.id_pengguna)\n\t\t\t\t\t\t\t\t\t\tand date_format(a.tanggal_surat, '%Y') = '$thn'\");\n\t\t\t\treturn $result;\n\t\t } catch (Exception $e) {\n\t echo $e->getMessage().'<br>';\n\t\t return 'Data tidak ada <br>';\n\t\t }\n\t}", "title": "" }, { "docid": "038ef28ffd092fe92f9e7504ff83ff02", "score": "0.58053225", "text": "function cogerpreciopantalon($conexion,$precio){\r\n $consulta = \"SELECT DISTINCT Precio FROM spanisharmy.pantalones\";\r\n $resultado = mysqli_query($conexion, $consulta);\r\n return $resultado;\r\n }", "title": "" }, { "docid": "10395300c4dab36cf8d843cddca3f986", "score": "0.5684739", "text": "public function domisiliparpolantrianAction() {\n $nik = $_POST['nik'];\n $this->view->surat = \"Form Antrian Keterangan domisili parpol\";\n $hasil = $this->surat_serv->getPenduduk($nik);\n $this->view->hasil = $hasil;\n\n //mengambil noregistrasi secara automatis\n $no_registrasi = $this->surat_serv->getNoRegistrasi(4, XXX); //4 adalah panjangnya, AN adalah kode huruf\n $this->view->no_registrasi = $no_registrasi;\n\n $this->view->pejabat = $this->surat_serv->getPejabatAll($this->id_kelurahan);\n $this->render('domisiliparpolantrian');\n }", "title": "" }, { "docid": "3afdcb48a01a91fe80f3b5be1b5ebc89", "score": "0.56776774", "text": "function listarObligacionPagoSol()\n {\n\n //Definicion de variables para ejecucion del procedimientp\n $this->procedimiento = 'tes.ft_obligacion_pago_sel';\n $this->transaccion = 'TES_OBPGSOL_SEL';\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\n\n $this->setParametro('id_funcionario_usu', 'id_funcionario_usu', 'int4');\n $this->setParametro('tipo_interfaz', 'tipo_interfaz', 'varchar');\n\n //Definicion de la lista del resultado del query\n $this->captura('id_obligacion_pago', 'int4');\n $this->captura('id_proveedor', 'int4');\n $this->captura('desc_proveedor', 'varchar');\n $this->captura('estado', 'varchar');\n $this->captura('tipo_obligacion', 'varchar');\n $this->captura('id_moneda', 'int4');\n $this->captura('moneda', 'varchar');\n $this->captura('obs', 'varchar');\n $this->captura('porc_retgar', 'numeric');\n $this->captura('id_subsistema', 'int4');\n $this->captura('nombre_subsistema', 'varchar');\n $this->captura('id_funcionario', 'int4');\n $this->captura('desc_funcionario1', 'text');\n $this->captura('estado_reg', 'varchar');\n $this->captura('porc_anticipo', 'numeric');\n $this->captura('id_estado_wf', 'int4');\n $this->captura('id_depto', 'int4');\n $this->captura('nombre_depto', 'varchar');\n $this->captura('num_tramite', 'varchar');\n $this->captura('id_proceso_wf', 'int4');\n $this->captura('fecha_reg', 'timestamp');\n $this->captura('id_usuario_reg', 'int4');\n $this->captura('fecha_mod', 'timestamp');\n $this->captura('id_usuario_mod', 'int4');\n $this->captura('usr_reg', 'varchar');\n $this->captura('usr_mod', 'varchar');\n $this->captura('fecha', 'date');\n $this->captura('numero', 'varchar');\n $this->captura('tipo_cambio_conv', 'numeric');\n $this->captura('id_gestion', 'integer');\n $this->captura('comprometido', 'varchar');\n $this->captura('nro_cuota_vigente', 'numeric');\n $this->captura('tipo_moneda', 'varchar');\n $this->captura('total_pago', 'numeric');\n $this->captura('pago_variable', 'varchar');\n $this->captura('id_depto_conta', 'integer');\n $this->captura('total_nro_cuota', 'integer');\n $this->captura('fecha_pp_ini', 'date');\n $this->captura('rotacion', 'integer');\n $this->captura('id_plantilla', 'integer');\n $this->captura('desc_plantilla', 'varchar');\n $this->captura('desc_funcionario', 'text');\n $this->captura('ultima_cuota_pp', 'numeric');\n $this->captura('ultimo_estado_pp', 'varchar');\n $this->captura('tipo_anticipo', 'varchar');\n $this->captura('ajuste_anticipo', 'numeric');\n $this->captura('ajuste_aplicado', 'numeric');\n $this->captura('monto_estimado_sg', 'numeric');\n $this->captura('id_obligacion_pago_extendida', 'integer');\n $this->captura('desc_contrato', 'text');\n $this->captura('id_contrato', 'integer');\n $this->captura('obs_presupuestos', 'varchar');\n $this->captura('uo_ex', 'varchar');\n $this->captura('presupuesto_aprobado', 'varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n//var_dump('llega maaaaayyyy', $this->respuesta);\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "8b695ce88afb928aab19af7008c9460b", "score": "0.5617216", "text": "function filtropantalonprecio($conexion,$precio){\r\n $consulta = \"SELECT * FROM spanisharmy.pantalones WHERE (Precio = '$precio')\";\r\n $resultado = mysqli_query($conexion, $consulta);\r\n return $resultado;\r\n }", "title": "" }, { "docid": "758f772a1a0d6573da09098de2f8aa4b", "score": "0.560677", "text": "public static function plan_de_pagos($parametros) {\n\n $params = (object) $parametros;\n $rango = $params->rango;\n $frecuencia = $params->frecuencia;\n $dias_mes = 30;\n if (!$rango)\n $rango = 1;\n\n $dias = $rango * $dias_mes;\n $fecha_inicio = $params->fecha_inicio;\n $fecha_pri_cuota = $params->fecha_pri_cuota;\n\n if ($fecha_inicio > $fecha_pri_cuota) {\n $fecha_inicio = $params->fecha_pri_cuota;\n }\n\n $nro_cuota = $params->nro_cuota_inicio;\n\n $_dia = '01';\n if ($frecuencia == 'dia_mes') {\n $afpc = explode('-', $fecha_pri_cuota);\n $_dia = $afpc[2];\n }\n\n\n if ($params->tipo == 'plazo') {\n \n $plazo = $params->plazo;\n $interes_anual = $params->interes_anual;\n $saldo = $params->saldo;\n// $interes_efectivo = (($rango * $interes_anual ) / 12) / 100;\n\n $interes_dia = ($interes_anual / 360) / 100;\n\n $cuota = round(FUNCIONES::get_cuota($saldo, $interes_anual, $plazo, $rango), 2);\n\n $lista_cuotas = array();\n $sw = 1;\n for ($i = 1; $i <= $plazo; $i++) {\n $fila = new stdClass();\n if ($i == 1) {\n $fecha_ant = $fecha_inicio;\n $fecha = $fecha_pri_cuota;\n $dias_interes = FUNCIONES::diferencia_dias($fecha_ant, $fecha);\n } else {\n if ($frecuencia == '30_dias') {\n $fecha = FUNCIONES::sumar_dias(\"+$dias\", $fecha);\n $dias_interes = $dias;\n } elseif ($frecuencia == 'dia_mes') {\n $fecha_ant = $fecha;\n $fecha = FUNCIONES::sumar_meses($fecha, $rango, $_dia);\n $dias_interes = FUNCIONES::diferencia_dias($fecha_ant, $fecha);\n }\n }\n $fila->nro_cuota = $nro_cuota;\n $fila->fecha = $fecha;\n $fila->dias = $dias_interes;\n if ($sw == 1) {\n $interes_efectivo = $dias * $interes_dia;\n } else {\n $interes_efectivo = $dias_interes * $interes_dia;\n }\n\n\n $_interes = $saldo * $interes_efectivo;\n\n $interes = round($_interes, 2);\n\n if ($i == $plazo) {\n $capital = round($saldo, 2);\n $_capital = $saldo;\n } else {\n $capital = $cuota - $interes;\n $_capital = $cuota - $_interes;\n }\n\n if ($sw == 1) {\n if ($fecha_inicio <= $fecha) {\n $interes_efectivo = $dias_interes * $interes_dia;\n $_interes = $saldo * $interes_efectivo;\n $interes = round($_interes, 2);\n $fila->dias = $dias_interes;\n $sw++;\n } else {\n $interes = 0;\n $fila->dias = 0;\n }\n }\n\n if ($fecha_inicio >= $fecha) {\n $interes = 0;\n }\n\n $fila->interes = $interes;\n $fila->capital = $capital;\n $fila->monto = $interes + $capital;\n\n $saldo = $saldo - $capital;\n\n $fila->saldo = round($saldo, 2);\n $lista_cuotas[] = $fila;\n $nro_cuota++;\n }\n return $lista_cuotas;\n } elseif ($params->tipo == 'cuota') {\n \n $interes_anual = $params->interes_anual;\n $saldo = $params->saldo;\n $interes_dia = ($interes_anual / 360) / 100;\n $cuota = round($params->cuota, 2);\n $plazo = 500;\n ;\n if ($params->plazo) {\n $plazo = $params->plazo;\n }\n $lista_cuotas = array();\n $i = 1;\n $sw = 1;\n// echo \"$saldo --- & $nro_cuota <= $plazo\";\n while (round($saldo, 2) > 0 && $nro_cuota <= $plazo && $i <= 500) {\n// echo \"$i <= $plazo<br>\";\n $fila = new stdClass();\n if ($i == 1) {\n $fecha_ant = $fecha_inicio;\n $fecha = $fecha_pri_cuota;\n $dias_interes = FUNCIONES::diferencia_dias($fecha_ant, $fecha);\n } else {\n if ($frecuencia == '30_dias') {\n $fecha = FUNCIONES::sumar_dias(\"+$dias\", $fecha);\n $dias_interes = $dias;\n } elseif ($frecuencia == 'dia_mes') {\n $fecha_ant = $fecha;\n $fecha = FUNCIONES::sumar_meses($fecha, $rango, $_dia);\n $dias_interes = FUNCIONES::diferencia_dias($fecha_ant, $fecha);\n }\n }\n $fila->nro_cuota = $nro_cuota;\n $fila->fecha = $fecha;\n// $interes_efectivo = $dias * $interes_dia;\n if ($sw == 1) {\n $interes_efectivo = $dias * $interes_dia;\n } else {\n $interes_efectivo = $dias_interes * $interes_dia;\n }\n $fila->dias = $dias_interes;\n\n $_interes = $saldo * $interes_efectivo;\n\n $interes = round($_interes, 2);\n\n// if ($saldo < $cuota || $i == $plazo) {\n if ($saldo < $cuota || $nro_cuota == $plazo) {\n $capital = round($saldo, 2);\n $_capital = $saldo;\n } else {\n $capital = $cuota - $interes;\n $_capital = $cuota - $_interes;\n }\n\n if ($sw == 1) {\n if ($fecha_inicio <= $fecha) {\n $interes_efectivo = $dias_interes * $interes_dia;\n $_interes = $saldo * $interes_efectivo;\n $interes = round($_interes, 2);\n $fila->dias = $dias_interes;\n $sw++;\n } else {\n $interes = 0;\n $fila->dias = 0;\n }\n }\n\n $fila->interes = $interes;\n $fila->capital = $capital;\n $fila->monto = $capital + $interes;\n $saldo = $saldo - $capital;\n $fila->saldo = round($saldo, 2);\n $lista_cuotas[] = $fila;\n\n $nro_cuota++;\n $i++;\n }\n return $lista_cuotas;\n } elseif ($params->tipo == 'plazo_cuota') {\n \n $interes_anual = $params->interes_anual;\n $saldo = $params->saldo;\n\n $fecha_inicio = $params->fecha_inicio;\n $fecha_pri_cuota = $params->fecha_pri_cuota;\n $nro_cuota = $params->nro_cuota_inicio;\n\n $interes_dia = ($interes_anual / 360) / 100;\n\n $cuota = round($params->cuota, 2);\n $plazo = $params->plazo;\n $lista_cuotas = array();\n $_afecha = explode('-', $fecha_pri_cuota);\n $dia = $_afecha[2];\n $i = 1;\n $sw = 1;\n while ($i <= $plazo && $i <= 500) {\n $fila = new stdClass();\n if ($i == 1) {\n $fecha = $fecha_pri_cuota;\n// $dias_interes = FUNCIONES::diferencia_dias($fecha_inicio, $fecha_pri_cuota);\n } else {\n $fecha = FUNCIONES::sumar_dias(\"+$dias\", $fecha);\n }\n $fila->nro_cuota = $nro_cuota;\n $fila->fecha = $fecha;\n\n $interes_efectivo = $dias * $interes_dia;\n\n $fila->dias = $dias;\n\n $_interes = $saldo * $interes_efectivo;\n $interes = round($_interes, 2);\n\n if ($saldo < $cuota) {\n $capital = round($saldo, 2);\n $_capital = $saldo;\n } else {\n $capital = $cuota - $interes;\n $_capital = $cuota - $_interes;\n }\n\n if ($sw == 1) {\n if ($fecha_inicio <= $fecha) {\n $interes_efectivo = $dias_interes * $interes_dia;\n $_interes = $saldo * $interes_efectivo;\n $interes = round($_interes, 2);\n $fila->dias = $dias_interes;\n $sw++;\n } else {\n $interes = 0;\n $fila->dias = 0;\n }\n }\n $fila->interes = $interes;\n $fila->capital = $capital;\n\n $fila->monto = $capital + $interes;\n $saldo = $saldo - $capital;\n $fila->saldo = $saldo;\n $lista_cuotas[] = $fila;\n $nro_cuota++;\n $i++;\n }\n return $lista_cuotas;\n }\n }", "title": "" }, { "docid": "655d244b470ac65e7ebdcadd2df09a22", "score": "0.5584936", "text": "function CP_P1($data){\n $view = \"\n<p>Entre los suscritos a saber, <b>\".$data['mi_empresa_rt_nombre'].\"</b>, identificado(a) con Cédula de Ciudadanía Nro. <b>\".$data['mi_empresa_rt_cedula'].\"</b>, en calidad de Gerente y Representante Legal de <b>\".$data['mi_empresa_nombre'].\".</b> Con Nit \".$data['mi_empresa_nit'].\", y quien para efectos del presente contrato se denominará <b>EL CONTRATANTE</b>; y el señor (a) <b>\".$data['contratista_nombre'].\",</b> con Cédula de Ciudadanía. Nro. <b>\".$data['contratista_cedula'].\"</b> expedida en \".$data['contratista_cedula_ref'].\", quien actua como \".$data['contratista_poseedor_or_prop'].\" DEL VEHICULO de servicio público inscrito en el organismo de transito correspondiente.</p>\n\n<p><b>PARAGRAFO 1: \".$data['contratista_poseedor_or_prop'].\"</b> acredita la tenencia de la propiedad del vehiculo y además que, el automotor se encuentra libre de pleitos pendientes, embargos judiciales, condiciones resolutorias, acciones reales y en general, que se encuentra ajustada a derecho y es consecuencia de una cadena lógica de dominio. Así mismo que su patrimonio liquido proviene de actividades lícitas; y quien para los efectos del presente documento se denominará el <b>PROPIETARIO</b>, acuerdan celebrar el presente <b>CONTRATO DE SUMINISTRO DE VEHÍCULO</b>, contrato que se rige por las siguientes estipulaciones:</p>\n\n<p><b>PRIMERA</b>: MOTIVO DE LA CONTRATACIÓN Que la empresa <b>\".$data['mi_empresa_nombre'].\"</b>, tiene contratos suscritos con clientes que demandan cada vez mas servicios en la modalidad de Contrato para transporte empresarial. especialmente de empleados de Fincas, y aunque la empresa presta servicios de transporte público especial, debidamente autorizada y habilitada por el Ministerio de Transporte, en la actualidad no cuenta con la cantidad de vehículos que exige la empresa y sus filiales a la cual le prestamos servicios, para tal objeto contractual.</p>\n\n<p><b>SEGUNDA</b>: OBJETO DEL CONTRATO: Para una eficiente racionalización en el uso del equipo automotor y la mejor prestación del servicio, el PROPIETARIO se obliga para con el contratante a suministrarle y prestar el servicio de transporte a través de los siguientes rodante debidamente inscrito en el Organismo de Tránsito correspondiente, distinguido por las siguientes características así:</p>\n\n \";\n return $view;\n }", "title": "" }, { "docid": "9a23297255bc4bfcbfed8aa94a06588a", "score": "0.5525834", "text": "public function get_Pendientes_X_Plazas($tipoElemento,$uen = '', $tipoSolicitud = 'Nuevo', $consultaProducto = '1', $plaza = '', $regional = '', $anio = '', $tipoCanal = '') {\n $pendientes = Yii::app()->db->createCommand(\"SP_Total_Pendientes '6','$tipoElemento','$uen','$tipoSolicitud','$consultaProducto','$plaza','$regional','$anio','$tipoCanal'\")->queryAll();\n return $pendientes;\n }", "title": "" }, { "docid": "905630fc564fc5e20c491f468a3a1f3f", "score": "0.5517598", "text": "public function prxservicio($idpr, $lugar, $dia, $mes, $anio, $idame){\r\n $con = new ConexionBD;\r\n //usamos el metodo conectar para realizar la conexion\r\n if($con->conectar()==true){\r\n $sql = \"select\r\n count (case when id_area_atencion=1 and id_servicio_externo_estab is null then 'uno' else null end) as uno,\r\n count (case when id_area_atencion=3 and id_servicio_externo_estab is null then 'dos' else null end) as dos,\r\n count (case when id_area_atencion=2 and id_servicio_externo_estab is null then 'tres' else null end) as tres,\r\n count (case when id_servicio_externo_estab is not null then 'cinco' else null end) as cinco\r\n from sec_detallesolicitudestudios t00\r\n join sec_solicitudestudios t01 on (t01.id=t00.idsolicitudestudio)\r\n join lab_resultado_metodologia t0c on (t00.id=t0c.id_detallesolicitudestudio)\r\n join sec_historial_clinico t02 on (t02.id=t01.id_historial_clinico)\r\n join mnt_aten_area_mod_estab t03 on (t03.id=t02.idsubservicio)\r\n join mnt_area_mod_estab\t t04 on (t04.id=t03.id_area_mod_estab)\r\n left join mnt_servicio_externo_establecimiento t06 on (t06.id=t04.id_servicio_externo_estab)\r\n join mnt_empleado\t\t\tt07 on (t07.id=t0c.id_empleado)\r\n join fos_user_user\t\t\tt08 on (t07.id=t08.id_empleado)\r\n where estadodetalle in (6,7)\r\n --and id_servicio_externo_estab is null\r\n and t00.idestablecimiento=$lugar\r\n and id_conf_examen_estab=$idpr\r\n and extract('year' from fecha_resultado)=$anio\r\n and extract('month' from fecha_resultado)=$mes\r\n and extract('day' from fecha_resultado)=$dia \"\r\n . \"and t08.id_area_mod_estab=$idame\";\r\n // echo '<br>'.$sql.'<br/>';\r\n\t$result= pg_query($sql);\r\n\tif (!$result)\r\n\t\treturn false;\r\n\telse\r\n\t\treturn $result;\r\n\t}//fin de la funcion consultarTipoResultado\r\n }", "title": "" }, { "docid": "27d6da80c37a95a55afd6a8a99b6bf88", "score": "0.54786396", "text": "public function getUniversitiesByAproxNameAndDegreeSearchBlank($grau,$pais){\n if(($pais==\"-1\") && ($grau==\"-1\")) {\n\n try{\n\n $consulta = $this->db->prepare('SELECT un.idUniversitat,un.nomUniversitat,un.urlUniversitat,un.urlIntercanvis,un.codiUniversitat, pa.nomPais\n FROM universitats un,pais pa\n WHERE un.idPais = pa.idPais ORDER BY un.nomUniversitat');\n $consulta->execute();\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n }catch (Exception $e) {\n $obj = $e;\n }\n return $obj;\n //SI SOLO SE HA SELECCIONADO GRADO:\n }else if(($pais==\"-1\") && ($grau!=\"-1\")){\n\n try {\n $consulta = $this->db->prepare('SELECT universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis\n FROM pais,universitats,universitat_estudisuab\n WHERE universitat_estudisuab.idUniversitat = universitats.idUniversitat\n and universitats.idPais = pais.idPais\n AND universitat_estudisuab.codiEstudis = ? ORDER BY universitats.nomUniversitat');\n $consulta->execute(array($grau));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n return $obj;\n\n //SI SOLO SE HA SELECCIONADO PAIS:\n }else if(($pais!=\"-1\") && ($grau==\"-1\")) {\n\n try {\n $consulta = $this->db->prepare('SELECT universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis\n FROM pais\n INNER JOIN universitats ON universitats.idPais = pais.idPais\n WHERE pais.idPais = ? ORDER BY universitats.nomUniversitat');\n $consulta->execute(array($pais));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n return $obj;\n }\n //SI SE HA SELECCIONADO TODO\n else {\n\n try {\n $consulta = $this->db->prepare('SELECT universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis,universitat_estudisuab.codiEstudis\n FROM pais,universitat_estudisuab,universitats,estudisuab\n WHERE universitats.idPais = pais.idPais\n AND universitats.idPais = ?\n AND universitat_estudisuab.idUniversitat = universitats.idUniversitat\n AND universitat_estudisuab.codiEstudis= ? \n GROUP BY universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis,universitat_estudisuab.codiEstudis\n ORDER BY universitats.nomUniversitat ');\n $consulta->execute(array($pais, $grau));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n return $obj;\n }\n\n }", "title": "" }, { "docid": "b1ab41539501ab01fae132f83d921447", "score": "0.5462187", "text": "public function get_scraping()\n {\n\n $html = new \\Htmldom('https://productos.ofik.com/el-conjunto-secretarial-trot-pera-negro.html');\n $instancia=$html->find('div[class=\"col-main\"]');\n $bloques_fecha=count($instancia); \n // $instancia[0]->childNodes(0)->childNodes(0)->plaintext\n dd($instancia[0]->childNodes(0)->childNodes(0)->childNodes(0)->childNodes(2)->childNodes(0)->childNodes(0)->plaintext);\n }", "title": "" }, { "docid": "cd2f153f7822a33a86b18ceb48cb15e1", "score": "0.543978", "text": "function puestos(){\n\t\t$id = $this->uri->segment(4);\n\t\t$dia = $this->uri->segment(5);\n\t\t$mes = $this->uri->segment(6);\n\t\t$ano = $this->uri->segment(7);\n\n\t\t$reg = $this->datasis->damereg('SELECT codrut,codofiorg,codofides FROM tbdestinos WHERE id='.$id);\n\n\t\t$codrut = $reg['codrut'];\n\t\t$origen = $reg['codofiorg'];\n\t\t$destino = $reg['codofides'];\n\n\t\t$mSQL = \"SELECT orden FROM tbdestinos WHERE codrut = '${codrut}' AND codofiorg = '${origen}' AND codofides='${origen}' \";\n\t\t$inicio = $this->datasis->dameval($mSQL);\n\n\t\t$mSQL = \"SELECT orden FROM tbdestinos WHERE codrut = '${codrut}' AND codofiorg = '${origen}' AND codofides='${destino}' \";\n\t\t$fin = $this->datasis->dameval($mSQL);\n\n\t\t$mSQL1 = \"\n\t\tSELECT b.indice, b.valor, if(c.nroasi is null, 'L', c.tipven ) estatus, b.id\n\t\tFROM tbrutas a JOIN tbtipbus b ON a.tipuni=b.tipbus \n\t\t\tLEFT JOIN tbpuestos c ON a.codrut=c.codrut \n\t\t\tAND b.valor=c.nroasi \n\t\t\tAND c.fecpas=${ano}${mes}${dia} \n\t\t\tAND c.inicio<${fin} AND c.fin>${inicio} \n\t\tWHERE a.codrut='${codrut}' AND \";\n\n\t\t$rs = \"No hay Disponibilidad\";\n\t\t$bl = \"\\t\\t<td>&nbsp;<td>\\n\";\n\t\t\n\t\t$rs = \"<table style='border-collapse:collapse;'>\";\n\t\t//$rs .= \"<tr><td colspan='3' align='center'>Ruta: \".$codrut.\" Fecha: \".$dia.\"/\".$mes.\"/\".$ano.\"</td></tr>\";\n\t\n\t\t$rs .= \"<tr><td>PLANTA ALTA/UNICA</td><td>&nbsp;&nbsp;</td><td>PLANTA BAJA</td></tr>\";\n\t\t$rs .= \"<tr><td><table style='border-collapse:collapse;'>\\n\\t<tr>\\n\";\n\n\t\t$mSQL = $mSQL1.\" b.indice < 12 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 0);\n\n\t\t$mSQL = $mSQL1.\"b.indice > 11 AND b.indice < 24 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 12);\n\n\t\t$mSQL = $mSQL1.\" b.indice > 23 AND b.indice < 36 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 24);\n\n\t\t$mSQL = $mSQL1.\" b.indice > 35 AND b.indice < 48 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 36);\n\n\t\t$rs .= \"</table>\\n</td>\\n<td>&nbsp;</td>\";\n\n\t\t// SEGUNDO PISO\n\t\t$rs .= \"<td>\\n<table style='border-collapse:collapse;'>\\n\\t<tr>\\n\";\n\n\t\t$mSQL = $mSQL1.\" b.indice >= 100 AND b.indice < 112 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 100);\n\n\t\t$mSQL = $mSQL1.\" b.indice > 111 AND b.indice < 124 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 112);\n\n\t\t$mSQL = $mSQL1.\" b.indice > 123 AND b.indice < 136 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 124);\n\n\t\t$mSQL = $mSQL1.\" b.indice > 135 AND b.indice < 148 ORDER BY b.indice \";\n\t\t$rs .= $this->busfila($mSQL, 136);\n\n\t\t$rs .= \"</table>\\n</td></tr></table>\";\n\n\t\techo $rs;\n\t\t\n\t}", "title": "" }, { "docid": "d24a56c926bd046a618e9d10bf944a0e", "score": "0.5433846", "text": "public static function getPersonasAlcanzadasFiltradas ($filtros){ //porque aqui se llama filtros y en el JS se llama filtro??\n\n $sql = \"select A.region_de_salud, P.poblacion, count(A.id_cedula_persona_receptora) as Total_de_Personas_Alcanzadas\n from \" . Constantes::ALCANZADOS . \" as A,\" . Constantes::PERSONA_RECEPTORA . \" as P \"; // As there is a view created with that purpose \n\n $sql .= \" where A.id_cedula_persona_receptora = P.id_cedula_persona_receptora \"; \n \n // Filtramos por poblacion\n if (sizeof($filtros['poblacion']) >= 0) {\n $sql .= \" and P.poblacion in ('\" . implode(\"','\", $filtros['poblacion']) . \"')\";\n }\n \n // // Fechas \n // Lo primero que haremos será validar las fechas\n if (($fecha_desde = DateTime::createFromFormat(PersonasAlcanzadas::FORMATO_FECHA_JAVASCRIPT, $filtros['fecha']['desde'])) \n && ($fecha_hasta = DateTime::createFromFormat(PersonasAlcanzadas::FORMATO_FECHA_JAVASCRIPT, $filtros['fecha']['hasta'])) ){\n // Las fechas llegan y son válidas, por tanto las ponemos\n $sql .= \" and (A.fecha_alcanzado BETWEEN '\" . $fecha_desde->format(PersonasAlcanzadas::FORMATO_FECHA_MYSQL) . \n \"' AND '\" . $fecha_hasta->format(PersonasAlcanzadas::FORMATO_FECHA_MYSQL) . \"') \";\n }\n\n\n // Regiones\n if (sizeof($filtros['regiones']) > 0) {\n $sql .= \"and A.region_de_salud in ('\" . implode(\"','\", $filtros['regiones']) . \"')\";\n }\n\n // ordenados por poblaciones clave\n $sql .= \" group by P.poblacion, A.region_de_salud \";\n\n // Abrimos la conexion de la base de datos\n // The connection to the database is open\n $db = new DB();\n\n // La siguiente llamada puede generar una excepción\n // The sentence gets prepared in the variable $mysqli\n $mysqli = $db->conecta();\n\n // Creamos un array en el que guardaremos las personas alcanzadas\n // The users get stored in an array\n $array_PersonasAlcanzadas = array();\n \n if ($result = $mysqli->query($sql)) {\n\n // Le pedimos al objeto de resultados que nos devuelva una fila en forma de array asociativo\n // We request the object to return the information in one line for each person\n $array_PersonasAlcanzadas = $result->fetch_all(MYSQLI_ASSOC);\n\n }\n else {\n // por último desconectamos de la base de datos\n // The connection with the database is close and an error messaeg return to the user\n $mysqli->close();\n throw new Exception(\"Error de BD: \" . $mysqli->error);\n }\n // limpiamos los resultados de la memoria\n // The results from the memory gets deleted\n $result->free();\n // por último desconectamos de la base de datos\n // The connection with the database is closed\n $mysqli->close();\n\n // Devolvemos el array\n // We return a array of entrevistas\n //return $array_PersonasAlcanzadas;\n return $array_PersonasAlcanzadas;\n }", "title": "" }, { "docid": "d4fdc32ab6eab446495f6e5df6437764", "score": "0.54246163", "text": "private function setLiquidacion($devengados,$paraficales){\n\t $connection = Yii::app()->db2;\n\t\t $Mensualnominaliquidaciones = new Mensualnominaliquidaciones;\n\t $Mensualnominaparafiscales = new Mensualnominaparafiscales;\n\t\t \n\t\t /**\n\t\t *consulta de los descuentos mensuales del cargo del empleado\n\t\t */\n\t\t $sql='SELECT dm.\"DEME_ID\", dm.\"DEME_DESCRIPCION\", nm.\"NOME_VALOR\"\n\t\t FROM \"TBL_NOMNOVEDADESMENSUALES\" nm, \"TBL_NOMDESCUENTOSMENSUALES\" dm\n\t\t\t WHERE dm.\"DEME_ID\" = nm.\"DEME_ID\" AND nm.\"EMPL_ID\" = '.$this->Empleoplanta->EMPL_ID.'\n\t\t\t ORDER BY dm.\"DEME_ID\" ASC';\n\t\t\t \n\t\t /**\n\t\t *sumatoria de descuentos mensuales del cargo del empleado\n\t\t */\n\t\t $string = 'SELECT SUM(\"NOME_VALOR\") AS \"NOME_VALOR\" FROM ('.$sql.') d';\n\t\t $query = $connection->createCommand($string)->queryRow();\n\t\t \n\t\t \n\t\t $Mensualnominaliquidaciones->MENL_CODIGO = $this->codigo;\n\t\t $Mensualnominaliquidaciones->MENL_DIAS = $this->Empleoplanta->EMPL_DIASAPAGAR;\n\t\t $Mensualnominaliquidaciones->MENL_PUNTOS = $this->Empleoplanta->EMPL_PUNTOS;\n\t\t $Mensualnominaliquidaciones->MENL_SALARIO = $devengados[0];\n\t\t $Mensualnominaliquidaciones->MENL_PRIMAANTIGUEDAD = $devengados[8];\n\t\t $Mensualnominaliquidaciones->MENL_TRANSPORTE = $devengados[9];\n\t\t $Mensualnominaliquidaciones->MENL_ALIMENTACION = $devengados[10];\n\t\t $Mensualnominaliquidaciones->MENL_HED = $this->Horasextrasyrecargos->HOER_HED;\n\t\t $Mensualnominaliquidaciones->MENL_HEDTOTAL = $devengados[1];\n\t\t $Mensualnominaliquidaciones->MENL_HEN = $this->Horasextrasyrecargos->HOER_HEN;\n\t\t $Mensualnominaliquidaciones->MENL_HENTOTAL = $devengados[2];\n\t\t $Mensualnominaliquidaciones->MENL_HEDF = $this->Horasextrasyrecargos->HOER_HEDF;\n\t\t $Mensualnominaliquidaciones->MENL_HEDFTOTAL = $devengados[3];\n\t\t $Mensualnominaliquidaciones->MENL_HENF = $this->Horasextrasyrecargos->HOER_HENF;\n\t\t $Mensualnominaliquidaciones->MENL_HENFTOTAL = $devengados[4];\n\t\t $Mensualnominaliquidaciones->MENL_DYF = $this->Horasextrasyrecargos->HOER_DYF;\n\t\t $Mensualnominaliquidaciones->MENL_DYFTOTAL = $devengados[5];\n\t\t $Mensualnominaliquidaciones->MENL_REN = $this->Horasextrasyrecargos->HOER_REN;\n\t\t $Mensualnominaliquidaciones->MENL_RENTOTAL = $devengados[6];\n\t\t $Mensualnominaliquidaciones->MENL_RENDYF = $this->Horasextrasyrecargos->HOER_RENDYF;\n\t\t $Mensualnominaliquidaciones->MENL_RENDYFTOTAL = $devengados[7];\n\t\t $Mensualnominaliquidaciones->MENL_PRIMATECNICA = $devengados[11];\n\t\t $Mensualnominaliquidaciones->MENL_GASTOSRP = $devengados[12];\n\t\t $Mensualnominaliquidaciones->MENL_BONIFICACION = $devengados[13];\n\t\t $Mensualnominaliquidaciones->MENL_PRIMAVACACIONES = $devengados[14];\n\t\t $Mensualnominaliquidaciones->MENO_ID = $this->MENO_ID;\n\t\t $Mensualnominaliquidaciones->EMPL_ID = $this->Empleoplanta->EMPL_ID;\n\t\t $Mensualnominaliquidaciones->MENL_FECHACAMBIO = date('Y-m-d H:i:s');\n\t\t $Mensualnominaliquidaciones->MENL_REGISTRADOPOR = Yii::app()->user->id;\n\t\t if($Mensualnominaliquidaciones->save()){\n\t\t \n\t\t /**\n\t\t *verificar que los valores de las liquidacion \n\t\t *de los empleados nos sean negativos o contengan algun error\n\t\t */\n\t\t if($devengados[15]<($paraficales[7]+$query[\"NOME_VALOR\"])){\n\t\t $this->w+=1;\n\t \t $this->warning[$this->w-1][0] = $this->Personageneral->PEGE_IDENTIFICACION;\n\t\t $this->warning[$this->w-1][1] = $this->Empleoplanta->EMPL_CARGO;\n\t\t $this->warning[$this->w-1][2] = $this->Personageneral->PEGE_PRIMERNOMBRE.' '.$this->Personageneral->PEGE_PRIMERAPELLIDO;\n\t\t $this->warning[$this->w-1][3] = $devengados[15];\n\t\t $this->warning[$this->w-1][4] = ($paraficales[7]+$query[\"NOME_VALOR\"]);\n\t\t }else{\n\t\t $this->s+=1; \n\t\t\t\t$this->success[$this->s-1][0] = $this->Personageneral->PEGE_IDENTIFICACION;\n\t\t $this->success[$this->s-1][1] = $this->Empleoplanta->EMPL_CARGO;\n\t\t }\t\t\t \n\t\t }else{ \n\t\t $msg = print_r($Mensualnominaliquidaciones->getErrors(),1);\n throw new CHttpException(400,'data not saving: '.$msg );\n\t\t\t $this->f+=1;\n\t \t $this->flag[$this->f-1][0] = $this->Personageneral->PEGE_IDENTIFICACION;\n\t\t $this->flag[$this->f-1][1] = $this->Empleoplanta->EMPL_CARGO;\n\t\t $this->flag[$this->f-1][2] = $this->Personageneral->PEGE_PRIMERNOMBRE.' '.$this->Personageneral->PEGE_PRIMERAPELLIDO;\n\t\t $this->flag[$this->f-1][3] = $Mensualnominaliquidaciones->getErrors();\n\t\t }\n\t \n\t\t $Pension = Pension::model()->findByPk($this->Personageneral->PENS_ID);\n\t\t $Salud = Salud::model()->findByPk($this->Personageneral->SALU_ID);\n\t\t $Sindicato = Sindicatos::model()->findByPk($this->Personageneral->SIND_ID);\n\t\t \n\t\t $Mensualnominaparafiscales->SALU_ID = $Salud->SALU_ID;\n $Mensualnominaparafiscales->MENP_SALUDTOTAL = $paraficales[0];\n $Mensualnominaparafiscales->PENS_ID = $Pension->PENS_ID;\n $Mensualnominaparafiscales->MENP_PENSIONTOTAL = $paraficales[1];\n $Mensualnominaparafiscales->SIND_ID = $Sindicato->SIND_ID;\n $Mensualnominaparafiscales->MENP_SINDICATOTOTAL = $paraficales[3];\n $Mensualnominaparafiscales->MENP_FONDOSP = $paraficales[4];\n $Mensualnominaparafiscales->MENP_SUBSISTENCIA = $paraficales[2];\n $Mensualnominaparafiscales->MENP_ESTAMPILLA = $paraficales[6];\n $Mensualnominaparafiscales->MENP_RETEFUENTETOTAL = $paraficales[5];\n $Mensualnominaparafiscales->MENL_ID = $Mensualnominaliquidaciones->MENL_ID;\n $Mensualnominaparafiscales->MENP_FECHACAMBIO = $Mensualnominaliquidaciones->MENL_FECHACAMBIO;\n $Mensualnominaparafiscales->MENP_REGISTRADOPOR = $Mensualnominaliquidaciones->MENL_REGISTRADOPOR;\n $Mensualnominaparafiscales->save();\t\t \n\t\t \n\t\t\n\t\t\n\t\t\t \n $rows = $connection->createCommand($sql)->queryAll();\n\t\tforeach($rows as $row){\n\t\t $Mensualnominadescuentos = new Mensualnominadescuentos;\n\t\t $Mensualnominadescuentos->MEND_VALOR = $row[\"NOME_VALOR\"];\n $Mensualnominadescuentos->DEME_ID = $row[\"DEME_ID\"];\n $Mensualnominadescuentos->MENL_ID = $Mensualnominaliquidaciones->MENL_ID;\n $Mensualnominadescuentos->MEND_FECHACAMBIO = $Mensualnominaliquidaciones->MENL_FECHACAMBIO;\n $Mensualnominadescuentos->MEND_REGISTRADOPOR = $Mensualnominaliquidaciones->MENL_REGISTRADOPOR;\n $Mensualnominadescuentos->save();\n \n\t\t}\n\t\n }", "title": "" }, { "docid": "23b4e13e653f10a8f4395373637862f6", "score": "0.5411722", "text": "public function domisiliperusahaancetakAction() {\n $id_permintaan_domisili_perusahaan = $this->_getParam(\"id_permintaan_domisili_perusahaan\");\n $this->view->hasil = $this->surat_serv->getdomisiliperusahaancetak($id_permintaan_domisili_perusahaan);\n }", "title": "" }, { "docid": "8602833714ee4009214d7ddbfd5ec66b", "score": "0.54070646", "text": "function seleccionarUsuariosConAuditoriasPagoPendienteFiltros_Coord_v2($paises, $conexion, $data){\n\t\tglobal $usuar_arg_sin_pago;\n\t\t$filtros = \"\";\n\t\tif ($data['fechaI']!='' && $data['fechaF']=='') {\n\t\t\t$filtros .= \"`fInicio` >= '\".$data['fechaI'].\"' AND\"; \n\t\t}\n\t\t$fechaX=explode('-', $data['fechaF']);\n\t\t$temp = $fechaX[2]+1;\n\t\tif($temp>31){\n\t\t\tif($fechaX[1]!=12){\n\t\t\t\t$fechaX=$fechaX[0].\"-\".($fechaX[1]+1).\"-01\";\n\t\t\t}else{\n\t\t\t\t$fechaX=($fechaX[0]+1).\"-01-01\";\n\t\t\t}\n\t\t}else \n\t\t\t$fechaX=$fechaX[0].\"-\".$fechaX[1].\"-\".$temp;\n\n\t\tif ($data['fechaI']=='' && $data['fechaF']!='') {\n\t\t\t$filtros .= \"`fTermino` >= '\".$data['fechaF'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['fechaI']!='' && $data['fechaF']!='') {\n\t\t\t//$filtros .= \"( `fInicio` BETWEEN '\".$data['fechaI'].\"' AND '\".$data['fechaF'].\"') AND\"; \n\t\t\t$filtros .= \"( `i_fechaVisita` BETWEEN '\".$data['fechaI'].\"' AND '\".$data['fechaF'].\"') AND\"; \n\t\t}\n\t\t\n\t\tif ($data['marca']!='Marca') {\n\t\t\t$filtros .= \"`clienteMarca` = '\".$data['marca'].\"' AND\"; \n\t\t}\n\t\tif ($data['pais']!='') {\n\t\t\t$filtros .= \"`clientePais` = '\".$data['pais'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['tipo']!='Tipo') {\n\t\t\t$filtros .= \"`viajeTipo` = '\".$data['tipo'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['visitaEstado']!='Estado' && $data['visitaEstado']!='') {\n\t\t\t$filtros .= \"`statusVisita` = '\".$data['visitaEstado'].\"' AND \"; \n\t\t}\n\n\t\tif ($data['pagoEstado']!='Pago') {\n\t\t\t$filtros .= \"`statusPago` = '\".$data['pagoEstado'].\"' AND\"; \n\t\t}\n\n\t\tif($_POST['keyWord']!='') $filtros .= \" (usuario LIKE '%$_POST[keyWord]%' OR nombre LIKE '%$_POST[keyWord]%' OR auditorEmail LIKE '%$_POST[keyWord]%' OR acceso LIKE '%$_POST[keyWord]%') AND\";\n\n\n\t\t$filtros .=\" 1 AND `level`=2 AND `nombre`!='' AND `status`='Activo' \".$usuar_arg_sin_pago;\n\n\n\n\t\t$query = \"SELECT `id`, `encuestaID`, `auditorEmail`, `nombre`, `clienteMarca`, `clienteNombre`, `clienteNumero`, `clienteDireccionCompleta`, `fInicio`, `fTermino`, `viajeTipo`, `statusVisita`, `statusPago`, `i_fechaVisita`, `i_fechaTermino`, `clienteEstado`, `clienteCiudadPais`, `clientePais`,`modificadorPago`, `tipo_cerrada`, `comentarios`, `visita`, `tipo_auditoria` FROM `auditorias` LEFT JOIN `usuarios` ON (`usuarios`.`email` = `auditorias`.`auditorEmail`) WHERE $filtros AND `clientePais` IN($paises) ORDER BY `usuarios`.`nombre` ASC, `clienteMarca` ASC\";\n\t\t//var_dump($query);\n\n\t\t$resultado = array();\n\n\t\tif ($result = mysqli_query( $conexion, $query)) {\n\t\t while ($row = $result->fetch_assoc()) {\n \t\t\t\t$resultado[] = $row;\n\t\t\t}\n\t\t return $resultado;\n\t\t}\n\t}", "title": "" }, { "docid": "c3756b72d97be7a3fffaba8450841dd9", "score": "0.5403203", "text": "private function _cek_resi_pos($nomor_resi){\n\n $base = \"https://track.aftership.com/pos-indonesia/$nomor_resi?\";\n $parameter = array(\n CURLOPT_SSL_VERIFYPEER=>FALSE,\n CURLOPT_HEADER=>FALSE,\n CURLOPT_FOLLOWLOCATION=>TRUE,\n CURLOPT_RETURNTRANSFER=>TRUE,\n \n );\n $this->curl->create($base);\n $this->curl->options($parameter);\n $response = $this->curl->execute();\n\n // remove unneeded string\n $final_response = $this->_process_html($response);\n\n return $final_response;\n }", "title": "" }, { "docid": "2e3fbaff117fd17e3204956fcfe4abdb", "score": "0.5392123", "text": "function calcul_cotisations_employeur_dom ($salaireBrut) {\n /* Maladie, Maternité, Invalidité, Décès 12.80% */ \n $tabCotEmp['taux']['EMPMaladie01']=\"12,89%\";\n $tabCotEmp['EMPMaladie01'] = round(($salaireBrut * 12.89/100), 2);\n /* Assurance vieillesse déplafonnée 1.60% */ \n $tabCotEmp['taux']['EMPAssVieillesse']=\"1,90%\";\n $tabCotEmp['EMPAssVieillesse'] = round(($salaireBrut * 1.90/100), 2);\n /* Vieillesse plafonnée\t8.40% */ \n $tabCotEmp['taux']['EMPVieillessePlaf']=\"8,55%\";\n $tabCotEmp['EMPVieillessePlaf'] = round(($salaireBrut * 8.55/100), 2);\n /* Accident de travail 2.10% */ \n $tabCotEmp['taux']['EMPAccTravail']=\"2,10%\";\n $tabCotEmp['EMPAccTravail'] = round(($salaireBrut * 2.10/100), 2);\n /* Allocation Familliales\t5.25% */ \n $tabCotEmp['taux']['EMPAllocFam']=\"5,25%\";\n $tabCotEmp['EMPAllocFam'] = round(($salaireBrut * 5.25/100), 2);\n \n $tabCotEmp['taux']['EMPIRCEMRetraite']=\"3,88%\";\n $tabCotEmp['EMPIRCEMRetraite'] = round(($salaireBrut * 3.88/100), 2);\n \n $tabCotEmp['taux']['ARRCO']=\"4,65%\";\n $tabCotEmp['ARRCO']= round(($salaireBrut * 4.65/100),2);\n /* AGFF 1.20% */ \n $tabCotEmp['taux']['EMPAGFF']=\"1,20%\";\n $tabCotEmp['EMPAGFF'] = round(($salaireBrut * 1.20/100), 2);\n /* Assurance chômage 4% */ \n $tabCotEmp['taux']['EMPAssuChomage']=\"4,00%\";\n $tabCotEmp['EMPAssuChomage'] = round(($salaireBrut * 4.00/100), 2);\n /* IRCEM (Prévoyance) 0,91% - AUGMENTATION DU 01/03/2014 */ \n $tabCotEmp['taux']['EMPIRCEMPrev']=\"0,91%\";\n $tabCotEmp['EMPIRCEMPrev'] = round(($salaireBrut * 0.91/100), 2);\n /* Contribution Solidarité Autonomie 0.30% */ \n $tabCotEmp['taux']['EMPContriSoliAuto']=\"0,30%\";\n $tabCotEmp['EMPContriSoliAuto'] = round(($salaireBrut * 0.30/100), 2);\n /* Formation Professionnelle 0.35% */ \n $tabCotEmp['taux']['EMPFormationPro']=\"0,35%\";\n $tabCotEmp['EMPFormationPro'] = round(($salaireBrut * 0.35/100), 2);\n /* Fond National D'aide au Logement 0.10% */ \n $tabCotEmp['taux']['EMPFondNatLogement']=\"0,10%\";\n $tabCotEmp['EMPFondNatLogement'] = round(($salaireBrut * 0.10/100), 2);\n /*NOUVELLE CHARGE - Organisation Syndicales 0.016 %*/ \n $tabCotEmp['taux']['OrgSyn']=\"0,016%\";\n $tabCotEmp['OrgSyn'] = round(($salaireBrut * 0.016/100), 3);\n \n \n return $tabCotEmp;\n}", "title": "" }, { "docid": "298daac061ba5ecdd037324e86c2ae52", "score": "0.53917086", "text": "function retornaConsultaPI($params) {\n /* Unidades Obrigatórias (AD, CAPES, INEP, FNDE, FIES, SUP.MEC, EBSERH */\n $obrigatorias = UNIDADES_OBRIGATORIAS;\n $perfis = pegaPerfilGeral();\n\n /* Variáveis da Consulta */\n $ptrid = $params['v_ptrid'];\n $sbaid = $params['v_sbaid'];\n\n /* por PTRES */\n $filtroNoUnion = $params['filtroNoUnion'];\n $filtroNoUnionSiafi = $params['filtroNoUnionSiafi'];\n\n /* Cabeçalho do SELECT */\n if (!$params['SELECT']) {\n $params['SELECT'] = <<<SQL\nSELECT\n gmb.codigo,\n gmb.titulo,\n COALESCE(SUM(pip.pipvalor),0.00) as dotacao,\n gmb.empenhado,\n COALESCE(SUM(pip.pipvalor) - empenhado, 0.00) as saldo\nSQL;\n }\n /* Filtros */\n if ($params['where']) {\n $where = $params['where'];\n }\n /* Pula se for SU */\n if ($_SESSION['superuser'] != 1) {\n /* Faz filtro para Gabinete */\n if (in_array(PFL_GABINETE, pegaPerfilGeral())) {\n $cpf = $_SESSION['usucpf'];\n $perfil = PFL_GABINETE;\n $sqlFiltro = <<<SQL\n AND sbaid IN (\n SELECT\n sbaid\n FROM\n monitora.pi_subacaounidade sbu\n WHERE\n sbu.ungcod IN\n (\n SELECT\n ungcod\n FROM\n public.unidadegestora\n WHERE\n ungcod IN\n (\n SELECT DISTINCT\n ungcod\n FROM\n planacomorc.usuarioresponsabilidade usr\n WHERE\n usr.usucpf = '{$cpf}'\n AND usr.pflcod = {$perfil} AND usr.rpustatus = 'A') )\n )\n\nSQL;\n $where .= $sqlFiltro;\n }\n\n /* FIM filtro para Gabinete */\n } /* FIM do pular se for SU */\n\n $filtroObrigatorias1 = \"AND (pi.unicod IN ({$obrigatorias}) OR pi.ungcod IN (select ungcod from public.unidadegestora where unicod IN ($obrigatorias)) )\";\n $filtroObrigatorias1 = \"AND ptr.unicod IN ({$obrigatorias})\";\n if (in_array(PFL_GESTAO_ORCAMENTARIA_IFS, $perfis)) {\n $filtroObrigatorias1 = \"\";\n $filtroObrigatorias2 = \"\";\n }\n $sql = <<<SQL\n {$params['SELECT']}\n FROM (\n SELECT\n descricao.pliid,\n descricao.codigo,\n descricao.titulo,\n COALESCE(SUM(descricao.empenhado), 0.00) as empenhado\n FROM ( -- nosimec\n SELECT\n pi.pliid,\n pi.plicod AS codigo,\n CASE\n WHEN trim(pi.plititulo) IS NOT NULL\n THEN pi.plititulo\n ELSE 'Não Preenchido'\n END AS titulo,\n ppe.total AS empenhado\n FROM monitora.pi_planointerno pi\n LEFT JOIN monitora.pi_subacao sa ON sa.sbaid = pi.sbaid\n LEFT JOIN monitora.pi_planointernoptres pip ON pip.pliid = pi.pliid\n LEFT JOIN monitora.ptres ptr USING(ptrid)\n LEFT JOIN siafi.pliptrempenho ppe ON ppe.plicod = pi.plicod AND ppe.ptres = ptr.ptres AND ppe.exercicio = pliano\n WHERE pi.pliano = '{$_SESSION['exercicio']}'\n {$filtroObrigatorias1}\n AND pi.plistatus = 'A'\n {$filtroNoUnion}\n UNION\n -- nosiafi\n SELECT pi.pliid,\n pi.plicod AS codigo,\n CASE WHEN trim(pi.plititulo) IS NOT NULL THEN pi.plititulo ELSE 'Não Preenchido' END AS titulo,\n COALESCE(ppe.total, 0.00) AS empenhado\n FROM monitora.pi_planointerno pi\n LEFT JOIN siafi.pliptrempenho ppe ON pi.plicod = ppe.plicod\n LEFT JOIN monitora.ptres ptr ON ptr.ptres = ppe.ptres AND ppe.exercicio = '{$_SESSION['exercicio']}'\n WHERE\n pi.pliano = '{$_SESSION['exercicio']}'\n {$filtroObrigatorias2}\n AND pi.plistatus = 'A'\n {$filtroNoUnionSiafi}\n ) as descricao\n GROUP BY descricao.codigo, descricao.titulo, descricao.pliid\n ) as gmb\nLEFT JOIN monitora.pi_planointerno pli on pli.pliid = gmb.pliid\nLEFT JOIN monitora.pi_planointernoptres pip ON pip.pliid = gmb.pliid\nLEFT JOIN monitora.ptres ON pip.ptrid = ptres.ptrid\nLEFT JOIN public.unidade uni ON uni.unicod = pli.unicod\nLEFT JOIN public.unidadegestora ung ON ung.ungcod = pli.ungcod\nWHERE pli.pliano = '{$_SESSION['exercicio']}'\n{$where}\nGROUP BY gmb.codigo, gmb.titulo, gmb.pliid, gmb.empenhado, uni.unicod, uni.unidsc, pli.plisituacao, ung.ungabrev, pli.obrid, pli.plicadsiafi\nORDER BY 2\nSQL;\n//ver($sql,d);\n return $sql;\n}", "title": "" }, { "docid": "8a0fe3148bca3c08b35c81eab38ff16f", "score": "0.53770614", "text": "private function adicionarPeriodosComplementares() {\n \n $iCodigoAcordo = $this->oParalizacao->getAcordo()->getCodigoAcordo();\n $oInicioParalisacao = $this->oParalizacao->getDataInicio();\n $oDataReativacao = $this->oDataReativacao;\n $iTotalDiasParalisados = DBDate::calculaIntervaloEntreDatas($oDataReativacao, $oInicioParalisacao, 'd') ;\n\n $oUltimaPosicao = $this->oParalizacao->getAcordo()->getUltimaPosicao(); \n $oDtUltimaPosicao = new DBDate($oUltimaPosicao->getVigenciaFinal());\n \n $oDtUltimaPosicao ->modificarIntervalo(\"+ 1 days\");\n $oNovaDataFinalAcordo = clone $oDtUltimaPosicao;\n \n \n \n $oNovaDataFinalAcordo->modificarIntervalo(\"+ {$iTotalDiasParalisados} days\");\n \n $lPeriodoComercial = $this->oParalizacao->getAcordo()->getPeriodoComercial();\n $aPeriodosComplementares = array();\n if (!$lPeriodoComercial) {\n \n $aPeriodosComplementares = AcordoPosicao::calcularPeriodosMensais($oDtUltimaPosicao->getDate(\"d/m/Y\"), \n $oNovaDataFinalAcordo->getDate(\"d/m/Y\"),\n $iCodigoAcordo\n );\n } else {\n \n $aPeriodosComplementares = AcordoPosicao::calculaPeriodosComerciais($oDtUltimaPosicao->getDate(\"d/m/Y\"),\n $oNovaDataFinalAcordo->getDate(\"d/m/Y\")\n );\n }\n\n $oDaoAcordoVigencia = new cl_acordovigencia();\n \n $sWhereVigencia = \" ac18_acordoposicao = {$oUltimaPosicao->getCodigo()} \";\n $sWhereVigencia .= \" and ac18_ativo is true \";\n \n $sSqlDadosVigencia = $oDaoAcordoVigencia->sql_query_file(null, \"*\", null, $sWhereVigencia);\n $rsVigencia = $oDaoAcordoVigencia->sql_record($sSqlDadosVigencia);\n if (!$rsVigencia || $oDaoAcordoVigencia->numrows == 0) {\n throw new BusinessException(_M(self::CAMINHO_MENSAGEM.\"vigencia_nao_encontrada\"));\n }\n \n $oDadosVigencia = db_utils::fieldsMemory($rsVigencia, 0); \n \n $oDaoAcordoVigencia->ac18_sequencial = $oDadosVigencia->ac18_sequencial;\n $oDaoAcordoVigencia->ac18_datafim = $oNovaDataFinalAcordo->getDate();\n \n $oDaoAcordoVigencia->alterar($oDadosVigencia->ac18_sequencial);\n if ($oDaoAcordoVigencia->erro_status == 0) {\n \n $oErro = new stdClass();\n $oErro->erro = $oDaoAcordoVigencia->erro_msg;\n throw new DBException( _M( self::CAMINHO_MENSAGEM . (\"erro_atualizar_vigencia\"), $oErro ) );\n }\n \n \n $oPeriodo = end($oUltimaPosicao->getPosicaoPeriodo());\n $iUltimaNumeracao = 0;\n if (!empty($oPeriodo)) {\n $iUltimaNumeracao = $oPeriodo->periodo;\n }\n \n $oDaoAcordoPosicaoPeriodo = new cl_acordoposicaoperiodo();\n foreach ($aPeriodosComplementares as $oPeriodo) {\n \n $oDaoAcordoPosicaoPeriodo->ac36_acordoposicao = $oUltimaPosicao->getCodigo();\n $oDaoAcordoPosicaoPeriodo->ac36_datainicial = $oPeriodo->dtIni;\n $oDaoAcordoPosicaoPeriodo->ac36_datafinal = $oPeriodo->dtFin;\n $oDaoAcordoPosicaoPeriodo->ac36_descricao = $oPeriodo->descrPer;\n $oDaoAcordoPosicaoPeriodo->ac36_numero = ++$iUltimaNumeracao;\n $oDaoAcordoPosicaoPeriodo->incluir(null);\n if ( $oDaoAcordoPosicaoPeriodo->erro_status == 0 ) {\n \n $oErro = new stdClass();\n $oErro->erro = $oDaoAcordoPosicaoPeriodo->erro_msg;\n throw new DBException( _M( self::CAMINHO_MENSAGEM . \"erro_incluir_novo_periodo\" ), $oErro );\n }\n \n $this->oParalizacao->adicionarPeriodos($oDaoAcordoPosicaoPeriodo->ac36_sequencial, AcordoParalisacao::PERIODO_COMPLEMENTAR);\n $oPeriodo->codigo = $oDaoAcordoPosicaoPeriodo->ac36_sequencial;\n \n $this->aPeriodosComplementares[] = $oPeriodo;\n }\n $oQuadro = $oUltimaPosicao->getQuadroPrevisao();\n \n foreach ($oQuadro->aItens as $oItem) {\n \n $aItensPrevisao = array();\n foreach ($oItem->previsoes as $oPrevisao) {\n \n if (in_array($oPrevisao->codigovigencia, $this->aPeriodos)) {\n $aItensPrevisao[] = $oPrevisao;\n }\n }\n $this->adicionarNovoPeriodoItem($oItem, $aItensPrevisao);\n }\n }", "title": "" }, { "docid": "30fcd649c02a011bb06904042559af78", "score": "0.5356741", "text": "public function solicitudesPorPeriodoAction()\n {\n $this->importarDataTables();\n $idPeriodo = $this->request->get('idP');\n $periodo = Fechasturnos::findFirstByFechasTurnos_id($idPeriodo);\n\n if ($periodo) {\n $this->view->ffInicioSol = date('d/m/Y', strtotime($periodo->fechasTurnos_inicioSolicitud));\n $this->view->ffFinSol = date('d/m/Y', strtotime($periodo->fechasTurnos_finSolicitud));\n $this->view->ffInicioAtencion = date('d/m/Y', strtotime($periodo->fechasTurnos_diaAtencion));\n $this->view->ffFinAtencion = date('d/m/Y', strtotime($periodo->fechasTurnos_diaAtencionFinal));\n $this->view->idP = $idPeriodo;\n }\n }", "title": "" }, { "docid": "6db5bf1b07a2edf0edc294b91a34b44c", "score": "0.5356489", "text": "function seleccionarUsuariosConAuditoriasPagoPendienteFiltros_Coord($paises, $conexion, $data){\n\t\tglobal $usuar_arg_sin_pago;\n\t\t$filtros = \"\";\n\t\tif ($data['fechaI']!='' && $data['fechaF']=='') {\n\t\t\t$filtros .= \"`fInicio` >= '\".$data['fechaI'].\"' AND\"; \n\t\t}\n\t\t$fechaX=explode('-', $data['fechaF']);\n\t\t$temp = $fechaX[2]+1;\n\t\tif($temp>31){\n\t\t\tif($fechaX[1]!=12){\n\t\t\t\t$fechaX=$fechaX[0].\"-\".($fechaX[1]+1).\"-01\";\n\t\t\t}else{\n\t\t\t\t$fechaX=($fechaX[0]+1).\"-01-01\";\n\t\t\t}\n\t\t}else \n\t\t\t$fechaX=$fechaX[0].\"-\".$fechaX[1].\"-\".$temp;\n\n\t\tif ($data['fechaI']=='' && $data['fechaF']!='') {\n\t\t\t$filtros .= \"`fTermino` >= '\".$data['fechaF'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['fechaI']!='' && $data['fechaF']!='') {\n\t\t\t//$filtros .= \"( `fInicio` BETWEEN '\".$data['fechaI'].\"' AND '\".$data['fechaF'].\"') AND\"; \n\t\t\t$filtros .= \"( `fTermino` BETWEEN '\".$data['fechaI'].\"' AND '\".$data['fechaF'].\"') AND\"; \n\t\t}\n\t\t\n\t\tif ($data['marca']!='Marca') {\n\t\t\t$filtros .= \"`clienteMarca` = '\".$data['marca'].\"' AND\"; \n\t\t}\n\t\tif ($data['pais']!='') {\n\t\t\t$filtros .= \"`clientePais` = '\".$data['pais'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['tipo']!='Tipo') {\n\t\t\t$filtros .= \"`viajeTipo` = '\".$data['tipo'].\"' AND\"; \n\t\t}\n\n\t\tif ($data['visitaEstado']!='Estado' && $data['visitaEstado']!='') {\n\t\t\t$filtros .= \"`statusVisita` = '\".$data['visitaEstado'].\"' AND \"; \n\t\t}\n\n\t\tif ($data['pagoEstado']!='Pago') {\n\t\t\t$filtros .= \"`statusPago` = '\".$data['pagoEstado'].\"' AND\"; \n\t\t}\n\n\t\tif($_POST['keyWord']!='') $filtros .= \" (usuario LIKE '%$_POST[keyWord]%' OR nombre LIKE '%$_POST[keyWord]%' OR auditorEmail LIKE '%$_POST[keyWord]%' OR acceso LIKE '%$_POST[keyWord]%') AND\";\n\n\n\t\t$filtros .=\" 1 AND `level`=2 AND `nombre`!='' AND `status`='Activo' \".$usuar_arg_sin_pago;\n\n\n\n\t\t$query = \"SELECT `id`, `encuestaID`, `auditorEmail`, `nombre`, `clienteMarca`, `clienteNombre`, `clienteNumero`, `clienteDireccionCompleta`, `fInicio`, `fTermino`, `viajeTipo`, `statusVisita`, `statusPago`, `i_fechaTermino`, `clienteEstado`, `clienteCiudadPais`, `clientePais`,`modificadorPago`, `tipo_cerrada`, `comentarios`, `visita`, `tipo_auditoria` FROM `auditorias` LEFT JOIN `usuarios` ON (`usuarios`.`email` = `auditorias`.`auditorEmail`) WHERE $filtros AND `clientePais` IN($paises) ORDER BY `usuarios`.`nombre` ASC, `clienteMarca` ASC\";\n\t\t//var_dump($query);\n\n\t\t$resultado = array();\n\n\t\tif ($result = mysqli_query( $conexion, $query)) {\n\t\t while ($row = $result->fetch_assoc()) {\n \t\t\t\t$resultado[] = $row;\n\t\t\t}\n\t\t return $resultado;\n\t\t}\n\t}", "title": "" }, { "docid": "6e3f52af20829544acfb36ff00b3d61b", "score": "0.53443754", "text": "function reporteSolicitudCentros()\n {\n\n $this->procedimiento = 'tes.ft_obligacion_pago_sel';\n $this->transaccion = 'TES_REPSC_SEL';\n $this->tipo_procedimiento = 'SEL';\n\n $this->setCount(false);\n $this->setParametro('id_proceso_wf', 'id_proceso_wf', 'int4');\n\n //Definicion de la lista del resultado del query\n $this->captura('id_obligacion_pago', 'int4');\n $this->captura('id_proveedor', 'int4');\n $this->captura('desc_proveedor', 'varchar');\n $this->captura('estado', 'varchar');\n $this->captura('tipo_obligacion', 'varchar');\n $this->captura('id_moneda', 'int4');\n $this->captura('moneda', 'varchar');\n $this->captura('obs', 'varchar');\n $this->captura('porc_retgar', 'numeric');\n $this->captura('id_subsistema', 'int4');\n $this->captura('nombre_subsistema', 'varchar');\n $this->captura('porc_anticipo', 'numeric');\n $this->captura('id_depto', 'int4');\n $this->captura('nombre_depto', 'varchar');\n $this->captura('num_tramite', 'varchar');\n $this->captura('fecha', 'date');\n $this->captura('numero', 'varchar');\n $this->captura('tipo_cambio_conv', 'numeric');\n $this->captura('comprometido', 'varchar');\n $this->captura('nro_cuota_vigente', 'numeric');\n $this->captura('tipo_moneda', 'varchar');\n $this->captura('pago_variable', 'varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n\n }", "title": "" }, { "docid": "5b0590dd5d454fc3734758388bc2a117", "score": "0.53429574", "text": "public function prxservicioref($idpr, $lugar, $dia, $mes, $anio, $idame){\r\n $con = new ConexionBD;\r\n //usamos el metodo conectar para realizar la conexion\r\n if($con->conectar()==true){\r\n $sql = \"select count (distinct(t0c.id)) as cuatro\r\n from sec_detallesolicitudestudios t00\r\n join sec_solicitudestudios t01 on (t01.id=t00.idsolicitudestudio)\r\n join lab_resultado_metodologia t0c on (t00.id=t0c.id_detallesolicitudestudio)\r\n join mnt_empleado\t\t\tt03 on (t03.id=t0c.id_empleado)\r\n\t join fos_user_user\t\t\tt04 on (t03.id=t04.id_empleado)\r\n where estadodetalle in (6,7)\r\n and t00.idestablecimiento=$lugar\r\n and id_dato_referencia is not null\r\n and extract('year' from fecha_resultado)=$anio\r\n and extract('month' from fecha_resultado)=$mes\r\n and extract('day' from fecha_resultado)=$dia\r\n and id_conf_examen_estab=$idpr\"\r\n . \" and t04.id_area_mod_estab=$idame\";\r\n // echo '<br>'.$sql.'<br/>';\r\n\t$result= pg_query($sql);\r\n\tif (!$result)\r\n\t\treturn false;\r\n\telse\r\n\t\treturn $result;\r\n\t}//fin de la funcion consultarTipoResultado\r\n }", "title": "" }, { "docid": "7fbc930f025eae9f5c620ae534e2f098", "score": "0.5314936", "text": "function generarHTMLComicsPaquete($paquete_id){\n $arrayComics = obtenerComicsPaquete($paquete_id);\n $suma_precio_portada = 0;\n $suma_precio_salida = 0;\n $suma_precio_tienda = 0;\n \n $visor = \"<div id='slider'>\";\n for($i = 0; $i < count($arrayComics); $i++){\n obtenerDatos($arrayComics[$i]);\n \n //Estas variables nos permiten obtener los datos de cada comic\n $imagen = obtenerImagen();\n $personaje = obtenerPersonaje();\n \n //echo $imagen;\n $visor = $visor .\n \"\n <a href='#' target='_blank'>\n <img src='$imagen'>\n <span>\n $personaje\n </span>\n </a>\";\n \n $suma_precio_portada += obtenerPrecioPortada();\n $suma_precio_salida += obtenerPrecio();\n $suma_precio_tienda += obtenerPrecioTienda();\n }\n \n $titulo = obtenerTitulo();\n //$numero = obtenerNumero();\n $idioma = obtenerIdioma();\n $numero_copias = obtenerCopias();\n $integridad = obtenerIntegridad();\n $descripcion = obtenerDescripcion();\n $nombre_paquete = obtenerNombrePaquete($paquete_id);\n $precio_salida = $suma_precio_salida;\n $precio_portada = $suma_precio_portada;\n $precio_tiendas = $suma_precio_tienda;\n \n $descuento = (($precio_salida * 100) / $precio_tiendas) - 100;\n \n //CONDICIONAMOS EL DESCUENTO\n if($descuento >= 0 ){\n $etiquetaDescuento = \"\";\n }\n else{\n\n $etiquetaDescuento = \"<td class='tip-top' data-toggle='tooltip' data-placement='top' title='Ahorro total con respecto a las otras tiendas'><strong>Ahorro</strong><p style='margin-top: 6px' align='right'><span class='label label-descuento label-lg'>$descuento%</span> </p></td>\";\n }\n \n if($idioma == \"Español\"){\n $moneda = \"MXN\";\n }\n else{\n $moneda = \"USD\";\n }\n \n $visor = $visor . \" </div>\";\n \n echo \"<div class='row'>\n <div class='col-sm-4 col-md-3'>\n $visor\n <h5 align='center'><small>Da click en la imagen para ampliar <span class='glyphicon glyphicon-zoom-in'></span></small></h5>\n </div>\n <div class='col-sm-8 col-md-9'>\n <h1 class='blog-title' id='comic_personaje'>$personaje</h1>\n\n <h1 style='margin-top: 5px'>\n <strong>\n <small>\n <span class='label label-primary tip-top' id='comic_titulo' data-toggle='tooltip' data-placement='top' title='La serie y el número'><span itemprop='name'>$nombre_paquete</span></span>\n </small>\n <small>\n <!--Este se debe generar desde el class, pues es uno diferente para cada caso, y aparte la palabra es diferente y el title lel-->\n <!--<span class='label label-comun tip-top' data-toggle='tooltip' data-placement='top' title='Es normal'>Común</span>-->\n </small>\n </strong>\n <small id='comic_idioma' class='tip-right' data-toggle='tooltip' data-placement='right' title='Idioma del cómic'>$idioma</small>\n </h1>\n\n <hr style='margin-bottom: 0px'></hr>\n <div class='row'>\n <div class='col-md-3 tip-bottom' id='comic_copias' align='left' data-toggle='tooltip' data-placement='bottom' title='Todos los que tenemos en este momento'><h4>Existencias: <small><span itemprop='availability'>$numero_copias</span></small></h4></div>\n <div class='col-md-3 tip-bottom' id='comic_integridad' align='left' data-toggle='tooltip' data-placement='bottom' title='10 si está nuevo, y 0 si está pal boiler'><h4>Integridad: <small>$integridad/10</small></h4></div>\n <!--<div class='col-md-6' id='comic_fecha' align='left'><h4>Fecha de Publicación: <small>11/9/2001</small></h4></div>-->\n </div>\n <p align='justify' style='font-size: 12pt' id='comic_descripcion'><span itemprop='description'>$descripcion</span></p>\n <table style='margin-bottom: 2px' class='table table-condensed'>\n <thead>\n <tr>\n <td class='text-primary tip-bottom' data-toggle='tooltip' data-placement='bottom' title='Precio del cómic cuando fue publicado, puede ser en Pesos o en Dólares'><strong>Precio de Portada</strong><p class='precio' align='right'>$$precio_portada $moneda</p></td>\n <!--<td class='text-danger tip-bottom' data-toggle='tooltip' data-placement='bottom' title='En este precio lo tienen en otras tiendas'><strong>Precio en Tiendas</strong><p class='precio' align='right'>$$precio_tiendas MXN</p></td>-->\n <td class='tip-top' data-toggle='tooltip' data-placement='top' title='Sí, nos volvimos locos!'><strong>Precio Comics Dealer</strong><p class='precio' align='right'>$$precio_salida MXN</p></td>\n \n </tr>\n </thead>\n </table>\n <div class='row' align='right'>\n <div style='margin-top: 1%' class='col-sm-6 col-sm-offset-6 col-md-5 col-md-offset-7'>\";\n if (isset($_SESSION['usuario_email']) && isset($_SESSION['usuario_nombre'])) {\n echo \"<div id='boton_comprar'><button class='btn btn-success btn-comprar btn-block' role='button'>AGREGAR AL <span class='glyphicon glyphicon-shopping-cart'></span></button></div>\n <div id='boton_eliminar'><button class='btn btn-danger btn-eliminar btn-block' role='button'>ELIMINAR DEL <span class='glyphicon glyphicon-shopping-cart'></span></button></div>\n </div>\n </div>\n </div>\n </div>\";\n }\n else{\n echo \"<div id='boton_comprar_nologin'><button class='btn btn-success btn-comprar-nologin btn-block'>AGREGAR AL <span class='glyphicon glyphicon-shopping-cart'></span></button></div>\n </div>\n </div>\n </div>\n </div>\";\n }\n}", "title": "" }, { "docid": "916be1d272ae1bb70261c3190dbc52c5", "score": "0.5309574", "text": "public function devuelvePrecio() {\n $idpiso = $this -> input -> post_get(\"id\");\n\n\t\t$datos[\"precios\"] = $this -> precios_model -> show_precios($idpiso);\n\n\t\t// Cambiamos la cabecera a JSON de respuesta\n header(\"Content-Type: application/json\");\n // Escupimos la respuesta\n echo json_encode($datos);\n\t}", "title": "" }, { "docid": "afe2469aebc80b36aafc60199ff3b265", "score": "0.5304982", "text": "final public function getByCriterios() {\n global $http;\n \n $criterios= $http->query->get('tipo_criterio_proveedores');\n $a = $http->query->get('criterio_proveedores_1');\n $b = $http->query->get('criterio_proveedores_2');\n $c = $http->query->get('criterio_proveedores_3');\n\n\n\n\n if($criterios==\"uno\" AND is_numeric($a) ){\n\n /*Trae los datos del proveedor que tiene dicha orden de compra(numero_orden)*/\n return $this->db->query_select(\n \"SELECT DISTINCT p4.* \n FROM proveedores_4 p4\n INNER JOIN ordenes_compras_4 oc4 ON oc4.rif_proveedor=p4.rif AND oc4.numero_orden=$a\n ;\");\n\n }else\n if($criterios==\"dos\" AND is_numeric($b) AND is_string($a) ){\n\n /*Trae los datos del proveedor que vende $a producto con menor precio a $b*/\n return $this->db->query_select(\n \"SELECT DISTINCT p4.* \n FROM proveedores_4 p4\n INNER JOIN ordenes_compras_4 oc4 ON oc4.rif_proveedor=p4.rif\n INNER JOIN ordenes_productos_4 op4 ON op4.numero_orden=oc4.numero_orden AND op4.precio<=$b\n INNER JOIN productos_4 pd4 ON pd4.codigo_producto=op4.codigo_producto AND pd4.descripcion LIKE ('%$a%')\n ;\");\n\n\n }else\n \n if($criterios==\"tres\" AND is_string($a) AND is_string($b) AND is_string($c)){\n\n //$c=strtotime(str_replace('/', '-', $c));\n //$c=substr($c,0,-6);\n //año-mes-dia\n \n /*Proveedores que hicieron una venta de $a producto a la $b sede la $c fecha*/\n return $this->db->query_select(\n \"SELECT DISTINCT p4.* \n FROM proveedores_4 p4 \n INNER JOIN ordenes_compras_4 oc4 ON oc4.rif_proveedor=p4.rif AND FROM_UNIXTIME(oc4.fecha_compra) LIKE ('$c%')\n INNER JOIN ordenes_productos_4 op4 ON op4.numero_orden=oc4.numero_orden\n INNER JOIN productos_4 pd4 ON pd4.codigo_producto=op4.codigo_producto AND pd4.descripcion LIKE ('%$a%')\n INNER JOIN sedes_4 s4 ON s4.codigo_sede=oc4.codigo_sede AND s4.nombre='$b'\n ;\");\n\n\n }\n\n }", "title": "" }, { "docid": "a46cfc3936d6d0bf29646ec620d1d766", "score": "0.5304472", "text": "public function getUniversitiesByAproxNameAndDegree($search,$grau,$pais){\n if(($pais==\"-1\") && ($grau==\"-1\")) {\n\n try {\n\n $consulta = $this->db->prepare(\"SELECT uni.nomUniversitat,uni.idUniversitat,uni.adreça,pais.nomPais,uni.urlUniversitat,uni.urlIntercanvis\n FROM universitats uni\n INNER JOIN pais ON pais.idPais = uni.idPais\n WHERE uni.nomUniversitat LIKE '%$search%' OR pais.nomPais LIKE '%$search%' ORDER BY uni.nomUniversitat\");\n $consulta->execute();\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n\n } catch (Exception $e) {\n $obj = $e;\n }\n\n //SI SOLO SE HA SELECCIONADO GRADO:\n }else if(($pais==\"-1\") && ($grau!=\"-1\")){\n\n try {\n $consulta = $this->db->prepare(\"SELECT uni.nomUniversitat,uni.idUniversitat,uni.adreça,pais.nomPais,uni.urlUniversitat,uni.urlIntercanvis\n FROM universitats uni\n INNER JOIN pais ON pais.idPais = uni.idPais\n INNER JOIN universitat_estudisuab ON universitat_estudisuab.idUniversitat = uni.idUniversitat\n WHERE uni.nomUniversitat LIKE '%$search%' OR pais.nomPais LIKE '%$search%' AND universitat_estudisuab.codiEstudis=? \n GROUP BY uni.nomUniversitat,uni.idUniversitat,uni.adreça,pais.nomPais,uni.urlUniversitat,uni.urlIntercanvis\n ORDER BY uni.nomUniversitat\");\n $consulta->execute(array($grau));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n\n //SI SOLO SE HA SELECCIONADO PAIS:\n }else if(($pais!=\"-1\") && ($grau==\"-1\")) {\n\n try {\n $consulta = $this->db->prepare(\"SELECT universitats.nomUniversitat,universitats.idUniversitat,universitats.adreça,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis\n FROM pais\n INNER JOIN universitats ON universitats.idPais = pais.idPais\n WHERE pais.idPais = ? AND universitats.nomUniversitat LIKE '%$search%' ORDER BY universitats.nomUniversitat\");\n $consulta->execute(array($pais));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n\n }\n //SI SE HA SELECCIONADO TODO\n else {\n \n try {\n $consulta = $this->db->prepare(\"SELECT universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis,universitat_estudisuab.codiEstudis\n FROM pais,universitat_estudisuab,universitats,estudisuab\n WHERE universitats.idPais = pais.idPais\n AND universitats.idPais = ?\n AND universitat_estudisuab.idUniversitat = universitats.idUniversitat\n AND universitat_estudisuab.codiEstudis= ? AND universitats.nomUniversitat LIKE '%$search%' \n GROUP BY universitats.nomUniversitat,universitats.idUniversitat,pais.nomPais,universitats.urlUniversitat,universitats.urlIntercanvis,universitat_estudisuab.codiEstudis\n ORDER BY universitats.nomUniversitat\");\n $consulta->execute(array($pais, $grau));\n $obj = $consulta->fetchAll(PDO::FETCH_OBJ);\n } catch (Exception $e) {\n $obj = $e;\n }\n }\n\n return $obj;\n\n }", "title": "" }, { "docid": "5751198da7432fad02cce9f0c09d2573", "score": "0.5297117", "text": "function cogerpreciocamiseta($conexion,$precio){\r\n $consulta = \"SELECT DISTINCT Precio FROM spanisharmy.camisetas\";\r\n $resultado = mysqli_query($conexion, $consulta);\r\n return $resultado;\r\n }", "title": "" }, { "docid": "ec8251b08e39b0b072df8c878dce0df9", "score": "0.52856565", "text": "function consulta_google($idpiso) {\n\t\t// Esto hay que innerjoinearlo\n\t\t$sql = \"SELECT calle, numero, cp, idlocalizacion FROM pisos WHERE id_piso=\".$idpiso;\n\t\t$resultado = $this -> db -> query($sql);\n\t\tforeach ($resultado -> result() as $row) {\n\t\t\t// Sacamos las cosas\n\t\t\t$direccion = utf8_encode($row -> calle).\"+\".utf8_encode($row -> numero).\",\".utf8_encode($row->cp);\n\t\t\t$sql2 = \"SELECT localizacion FROM localizaciones WHERE idlocalizacion = \".$row ->idlocalizacion;\n\t\t\t$resultado_1 = $this -> db -> query($sql2);\n\t\t\tforeach ($resultado_1 -> result() as $row2) {\n\t\t\t\t$direccion = $direccion.\"+\".utf8_encode($row2->localizacion);\n\t\t\t}\n\t\t}\n\t\t// Ahora le consultamos al google a ver\n\t\t$url = \"http://maps.google.com/maps/geo?f=q&source=s_q&hl=es&geocode=&q=\".urlencode($direccion).\"&output=csv\";\n\t\t$ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t$raw = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t$datos = explode(\",\", $raw);\n\t\t\n\t\t// Destrozamos los datos y lo insertamos en la BD\n\t\tif ($datos[0] == \"200\") {\n\t\t\t// No peto\n\t\t\t$latitud = $datos[2];\n\t\t\t$longitud = $datos[3];\n\t\t\t\n\t\t\t$sql = \"UPDATE pisos SET lt='\".$latitud.\"', ln='\".$longitud.\"' WHERE id_piso=\".$idpiso;\n\t\t\t$this -> db -> query($sql);\n\t\t} else {\n\t\t\t// Peto\n\t\t\techo \"ERROR para $id: $domicilio,$ciudad con datos $datos\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "ec115c2e4ba2cdbe86335c99711f4e4d", "score": "0.52794564", "text": "function retornaConsultaPTRES($params, $modelo = true) {\n /* Unidades Obrigatórias (AD, CAPES, INEP, FNDE, FIES, SUP.MEC, EBSERH */\n $obrigatorias = UNIDADES_OBRIGATORIAS;\n\n if ($params['obrigatorio'] == 'n') {\n $whereObrigatorio = 'AND aca.unicod NOT IN(' . $obrigatorias . ')';\n $perfis = pegaPerfilGeral();\n\n if (in_array(PFL_GESTAO_ORCAMENTARIA_IFS, $perfis)) {\n $sqlUO = <<<DML\nEXISTS (SELECT 1\n FROM planacomorc.usuarioresponsabilidade rpu\n WHERE rpu.usucpf = '%s'\n AND rpu.pflcod = %d\n AND rpu.rpustatus = 'A'\n AND rpu.unicod = uni.unicod)\nDML;\n $wherePerfil[] = $whereUO = sprintf($sqlUO, $_SESSION['usucpf'], PFL_GESTAO_ORCAMENTARIA_IFS);\n $whereUO = \" AND {$whereUO}\";\n }\n } else {\n $whereObrigatorio = 'AND aca.unicod IN(' . $obrigatorias . ')';\n $whereUO = '';\n }\n // ver($params['obrigatorio'],d);\n\n /* Cabeçalho do SELECT */\n if (!$params['SELECT']) {\n if ($modelo == 'NOVO') {\n if ($params['obrigatorio'] == 'n') {\n $params['SELECT'] = <<<SQL\nSELECT\n dtl.ptrid as codigo,\n dtl.ptres,\n trim(aca.prgcod || '.' || aca.acacod || '.' || aca.unicod || '.' || aca.loccod || ' - ' || aca.acatitulo) AS descricao,\n uni.unicod || ' - ' || uni.unidsc as unidade,\n COALESCE(SUM(dtl.ptrdotacao)+0.00, 0.00) AS dotacaoinicial,\n COALESCE(SUM(dt.valor), 0.00) AS det_subacao,\n COALESCE(SUM(dt2.valorpi), 0.00) AS det_pi,\n COALESCE((pemp.total), 0.00) AS empenhado,\n COALESCE(SUM(dtl.ptrdotacao) - COALESCE(SUM(dt.valor), 0.00), 0.00) AS saldo\nSQL;\n } else {\n $params['SELECT'] = <<<SQL\nSELECT\n dtl.ptrid as codigo,\n dtl.ptres,\n trim(aca.prgcod || '.' || aca.acacod || '.' || aca.unicod || '.' || aca.loccod || ' - ' || aca.acatitulo) AS descricao,\n uni.unicod || ' - ' || uni.unidsc as unidade,\n COALESCE(SUM(dtl.ptrdotacao)+0.00, 0.00) AS dotacaoinicial,\n COALESCE(SUM(dt.valor), 0.00) AS det_subacao,\n COALESCE((pemp.total), 0.00) AS empenhado,\n COALESCE(SUM(dtl.ptrdotacao) - COALESCE(SUM(dt.valor), 0.00), 0.00) AS saldo\nSQL;\n }\n } else {\n if ($params['obrigatorio'] == 'n') {\n $params['SELECT'] = <<<SQL\nSELECT\n dtl.ptres as sbacod,\n trim(aca.prgcod || '.' || aca.acacod || '.' || aca.unicod || '.' || aca.loccod || ' - ' || aca.acatitulo) AS descricao,\n uni.unicod || ' - ' || uni.unidsc as unidade,\n COALESCE(SUM(dtl.ptrdotacao)+0.00, 0.00) AS dotacaoinicial,\n COALESCE(SUM(dt.valor), 0.00) AS det_subacao,\n COALESCE((pemp.total), 0.00) AS empenhado,\n COALESCE(SUM(dtl.ptrdotacao) - COALESCE(SUM(dt.valor), 0.00), 0.00) AS saldo\nSQL;\n }else{\n $params['SELECT'] = <<<SQL\nSELECT\n '<div class=\\\"linkSubacao\\\" onclick=\\\"detalhePtres(\\''|| dtl.ptrid ||'\\');\\\">'|| dtl.ptres ||'</div>'as sbacod,\n trim(aca.prgcod || '.' || aca.acacod || '.' || aca.unicod || '.' || aca.loccod || ' - ' || aca.acatitulo) AS descricao,\n uni.unicod || ' - ' || uni.unidsc as unidade,\n COALESCE(SUM(dtl.ptrdotacao)+0.00, 0.00) AS dotacaoinicial,\n COALESCE(SUM(dt.valor), 0.00) AS det_subacao,\n COALESCE(SUM(dt2.valorpi), 0.00) AS det_pi,\n COALESCE((pemp.total), 0.00) AS empenhado,\n COALESCE(SUM(dtl.ptrdotacao) - COALESCE(SUM(dt.valor), 0.00), 0.00) AS saldo\nSQL;\n }\n }\n }\n /* Filtros */\n if ($params['where']) {\n $where = $params['where'];\n }\n if ($params['obrigatorio'] == 'n') {\n $sql = <<<SQL\n {$params['SELECT']}\n FROM monitora.acao aca\n INNER JOIN monitora.ptres dtl ON aca.acaid = dtl.acaid\n INNER JOIN public.unidade uni ON uni.unicod = dtl.unicod\n LEFT JOIN (SELECT ptrid,\n SUM(sadvalor) AS valor\n FROM monitora.pi_subacaodotacao\n GROUP BY ptrid) dt ON dtl.ptrid = dt.ptrid\n LEFT JOIN (SELECT ptrid,\n SUM(dtl.valorpi) AS valorpi\n FROM monitora.v_pi_detalhepiptres dtl\n WHERE prgano = '{$_SESSION['exercicio']}'\n GROUP BY dtl.ptrid) dt2 ON dtl.ptrid = dt2.ptrid\n LEFT JOIN siafi.uo_ptrempenho pemp\n ON (pemp.ptres = dtl.ptres AND pemp.exercicio = '{$_SESSION['exercicio']}' AND pemp.unicod = dtl.unicod)\n LEFT JOIN (SELECT pliid,\n ptrid,\n SUM(pipvalor) AS valor\n FROM monitora.pi_planointernoptres\n GROUP BY pliid, ptrid) pli ON pli.ptrid = dt.ptrid\n WHERE aca.prgano='{$_SESSION['exercicio']}'\n AND dtl.ptrano='{$_SESSION['exercicio']}'\n {$where}\n AND ptrstatus = 'A'\n AND aca.acasnrap = FALSE\n {$whereObrigatorio}\n {$whereUO}\n GROUP BY dtl.ptrid,dtl.ptres,descricao,uni.unidsc, pemp.total, uni.unicod ORDER BY 1\nSQL;\n }else{\n $sql = <<<SQL\n {$params['SELECT']}\n FROM monitora.acao aca\n INNER JOIN monitora.ptres dtl ON aca.acaid = dtl.acaid\n INNER JOIN public.unidade uni ON uni.unicod = dtl.unicod\n LEFT JOIN (SELECT ptrid,\n SUM(sadvalor) AS valor\n FROM monitora.pi_subacaodotacao\n GROUP BY ptrid) dt ON dtl.ptrid = dt.ptrid\n LEFT JOIN (SELECT ptrid,\n SUM(dtl.valorpi) AS valorpi\n FROM monitora.v_pi_detalhepiptres dtl\n WHERE prgano = '{$_SESSION['exercicio']}'\n GROUP BY dtl.ptrid) dt2 ON dtl.ptrid = dt2.ptrid\n LEFT JOIN siafi.ptrempenho pemp\n ON (pemp.ptres = dtl.ptres AND pemp.exercicio = '{$_SESSION['exercicio']}')\n LEFT JOIN (SELECT pliid,\n ptrid,\n SUM(pipvalor) AS valor\n FROM monitora.pi_planointernoptres\n GROUP BY pliid, ptrid) pli ON pli.ptrid = dt.ptrid\n WHERE aca.prgano='{$_SESSION['exercicio']}'\n AND dtl.ptrano='{$_SESSION['exercicio']}'\n {$where}\n AND ptrstatus = 'A'\n AND aca.acasnrap = FALSE\n {$whereObrigatorio}\n {$whereUO}\n GROUP BY dtl.ptrid,dtl.ptres,descricao,uni.unidsc, pemp.total, uni.unicod ORDER BY 1\nSQL;\n }\n\n//\n//ver($sql,d);\n return $sql;\n}", "title": "" }, { "docid": "246afa212d8bd24e16d861515face284", "score": "0.527893", "text": "function listarSolicitudCEP()\n {\n $this->procedimiento = 'adq.f_solicitud_sel';\n $this->transaccion = 'ADQ_COMEJEPAG_SEL';\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\n $this->setCount(false);\n\n $this->setParametro('id_solicitud', 'id_solicitud', 'int4');\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\n //Definicion de la lista del resultado del query\n $this->captura('id_solicitud_det', 'int4');\n $this->captura('id_partida', 'int4');\n $this->captura('nombre_partida', 'text');\n $this->captura('id_concepto_ingas', 'int4');\n $this->captura('nombre_ingas', 'text');\n $this->captura('id_solicitud', 'int4');\n $this->captura('id_centro_costo', 'int4');\n $this->captura('codigo_cc', 'text');\n $this->captura('id_partida_ejecucion', 'int4');\n $this->captura('descripcion', 'text');\n $this->captura('comprometido', 'numeric');\n $this->captura('ejecutado', 'numeric');\n $this->captura('pagado', 'numeric');\n $this->captura('revertible', 'numeric');\n $this->captura('revertir', 'numeric');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "c7f16fa4639236048beb42c9afc82112", "score": "0.52755034", "text": "public function domisilipendudukcetakAction() {\n $id_permintaan_domisili_penduduk = $this->_getParam(\"id_permintaan_domisili_penduduk\");\n $this->view->hasil = $this->surat_serv->getdomisilipendudukcetak($id_permintaan_domisili_penduduk);\n }", "title": "" }, { "docid": "5c70139aa2bd2b3462c50725924dd07b", "score": "0.5266396", "text": "function showCurrentPlanning() {\n global $DB, $CFG_GLPI, $datecherche;\n\n\t $config = new PluginReservationConfig();\n $methode = $config->getConfigurationMethode();\n \n $date = $datecherche[\"begin\"];\n\n //$date_test = date(\"Y-m-d\");\n $date_test = $datecherche[\"begin\"];\n $good_format = strtotime($date_test);\n $annee = date('Y', $good_format);\n $semaine = date('W', $good_format);\n\n echo \"<div class='search_page'><table class='tab_cadre_pager'><tbody><tr class='tab_bg_2'>\";\n echo \"<td class='b big'>Semaine n°\".$semaine.\"</td>\";\n echo \"</tbody></table></div>\";\n\n $good_format = strtotime ($date);\n $annee = date('Y', $good_format);\n $semaine = date('W', $good_format);\n\n $lundi = new DateTime();\n $datetmp = $lundi->setISOdate($annee, $semaine);\n\n echo \"<table class='tab_cadrehov' width='100%' border='1'>\";\n echo \"<tr>\";\n $datetmp = $lundi;\n $dateentete = $lundi;\n $dateentete = $dateentete->format('d/m/Y');\n echo \"<th width='15%'>LUNDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y');\n echo \"<th width='15%'>MARDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"<th width='15%'>MERCREDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"<th width='15%'>JEUDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"<th width='15%'>VENDREDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"<th width='15%'>SAMEDI</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"<th width='10%'>DIMANCHE</BR></BR>\". $dateentete .\"</th>\";\n $dateentete = $datetmp->add(new DateInterval('P1D'));\n $dateentete = $dateentete->format('d/m/Y'); \n echo \"</tr>\";\n echo \"<tr>\";\n \n $lundi = new DateTime();\n $test = $lundi->setISOdate($annee, $semaine);\n \n for($i = 0; $i <= 6; $i++){\n\n if ($i > 0 ){\n $tmp = $test->add(new DateInterval('P1D'));\n } else {\n $tmp = $test;\n }\n $tmp = $tmp->format('Y-m-d');\n\n $query = \"SELECT DISTINCT `glpi_plugin_rtntestalex_reports_taskslinks`.`id`,\n `glpi_plugin_rtntestalex_reports_taskslinks`.`plugin_rtntestalex_reports_id`,\n `glpi_plugin_rtntestalex_reports_taskslinks`.`is_realized`, \n `glpi_plugin_rtntestalex_tasks`.`name`, \n `glpi_plugin_rtntestalex_reports_taskslinks`.`plugin_rtntestalex_states_id`, \n `glpi_plugin_rtntestalex_tasks`.`id`,\n `glpi_plugin_rtntestalex_tasks`.`cartridges`, \n `glpi_plugin_rtntestalex_reports_taskslinks`.`cartridgeslist`, \n `glpi_plugin_rtntestalex_reports_taskslinks`.`comment`, \n `glpi_plugin_rtntestalex_reports_taskslinks`.`date_checktask` \n FROM `glpi_plugin_rtntestalex_tasks` \n JOIN `glpi_plugin_rtntestalex_reports_taskslinks` \n ON `glpi_plugin_rtntestalex_tasks`.`id` = `glpi_plugin_rtntestalex_reports_taskslinks`.`plugin_rtntestalex_tasks_id`\n JOIN `glpi_plugin_rtntestalex_reports` \n ON `glpi_plugin_rtntestalex_reports_taskslinks`.`plugin_rtntestalex_reports_id` = `glpi_plugin_rtntestalex_reports`.`id`\n JOIN `glpi_plugin_rtntestalex_tasks_items`\n ON `glpi_plugin_rtntestalex_tasks`.`id` = `glpi_plugin_rtntestalex_tasks_items`.`plugin_rtntestalex_tasks_id`\n WHERE `glpi_plugin_rtntestalex_reports_taskslinks`.`date_checktask` LIKE '%\" . $tmp . \"%' AND `glpi_plugin_rtntestalex_reports`.`is_deleted` = 0\n ORDER BY `glpi_plugin_rtntestalex_tasks`.`id`\";\n\n echo \"<td valign='top' align='center'>\";\n echo \"<table>\";\n $result = $DB->query($query); \n if ($DB->numrows($result)) {\n while ($data = $DB->fetch_array($result)) { \n echo \"<tr>\";\n echo \"<td><a href='report.form.php?id=\".$data['plugin_rtntestalex_reports_id'].\"'>\".$data['name'].\"</a></td>\";\n if ($data['plugin_rtntestalex_states_id'] == 1) echo \"<td><img src='/glpi/pics/ok_min.png'/></td>\";\n if ($data['plugin_rtntestalex_states_id'] == 2) echo \"<td><img src='/glpi/pics/warning_min.png'/></td>\";\n if ($data['plugin_rtntestalex_states_id'] == 3) echo \"<td><img src='/glpi/pics/ko_min.png'/></td>\";\n echo \"</tr>\";\n }\n }\n echo \"</table>\"; \n echo \"</td>\";\n }\n\n echo \"</tr>\"; \n echo \"</table><br>\"; \n\n return true;\n }", "title": "" }, { "docid": "1fb268a94c17c78895d8f966863d9937", "score": "0.52641505", "text": "function get_participantes_externos($filtro=array()){\r\n \r\n $where=\" \";\r\n if (isset($filtro['uni_acad']['valor'])) {\r\n $where.= \" and a.uni_acad = \".quote($filtro['uni_acad']['valor']).\" and t_i.uni_acad <> \".quote($filtro['uni_acad']['valor']);\r\n }\r\n if (isset($filtro['anio']['valor'])) {\r\n $pdia = dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\r\n $udia = dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\r\n $where.=\" and t_i.fec_desde<='\".$udia.\"' and (t_i.fec_hasta>='\".$pdia.\"' or t_i.fec_hasta is null)\";\r\n }\r\n $sql=\"select distinct a.id_docente,b.apellido,b.nombre,b.legajo,a.id_designacion,a.uni_acad,t_i.codigo,t_i.denominacion,t_i.uni_acad as uni,t_i.fec_desde,t_i.fec_hasta,funcion_p,i.desde,i.hasta,i.carga_horaria\r\n from designacion a, docente b, integrante_interno_pi i,pinvestigacion t_i \r\n where \r\n a.id_docente=b.id_docente\r\n and i.id_designacion=a.id_designacion\r\n and i.pinvest =t_i.id_pinv\r\n \".$where;\r\n \r\n return toba::db('designa')->consultar($sql); \r\n }", "title": "" }, { "docid": "8eef4b5945ef553ba8658fdca7f5685b", "score": "0.5258487", "text": "function calcularprecio($plazas, $paquete, $aeropuerto, $hotel, $habitaciones, $tarjeta, $complementos, $db)\n{\n function precioaeropuerto($db, $aeropuerto, $paquete, $plazas)\n {\n if ($aeropuerto == null) {\n return 0;\n }\n//Hemos seleccionado algun aeropuerto con suplemento.\n $q = \"select suplemento from posibles where tipo_complemento = 'aero' and id_complemento = '\" . $aeropuerto . \"' and id_paquete = \" . $paquete;\n $precioaero = $db->get_var($q);\n $precioaero *= $plazas;\n return $precioaero;\n }\n\n function precioTarjeta($db, $tarjeta, $paquete, $plazas)\n {\n if ($tarjeta == null) {\n return 0;\n }\n//Hemos seleccionado algun aeropuerto con suplemento.\n $q = \"select suplemento from posibles where tipo_complemento = 'tarjeta' and id_complemento = '\" . $tarjeta . \"' and id_paquete = \" . $paquete;\n $preciotarjeta = $db->get_var($q);\n $preciotarjeta = $preciotarjeta * $plazas;\n return $preciotarjeta;\n }\n\n function precioHotel($db, $hotel, $paquete, $plazas)\n {\n if ($hotel == null) {\n return 0;\n }\n//Hemos seleccionado algun Hotel con suplemento.\n $q = \"select suplemento from posibles where tipo_complemento = 'hotel' and id_complemento = '\" . $hotel . \"' and id_paquete = \" . $paquete;\n $preciohotel = $db->get_var($q);\n $preciohotel = $preciohotel * $plazas;\n return $preciohotel;\n }\n\n function precioHabitaciones($db, $habitaciones, $paquete)\n {\n if ($habitaciones == null) {\n return 0;\n }\n $preciohab = 0;\n $Totalhab = 0;\n $precioTotalhab = 0;\n foreach ($habitaciones as $hab) {\n $q = \"select suplemento from posibles where tipo_complemento = 'hab' and id_complemento = '\" . $hab[\"id\"] . \"' and id_paquete = \" . $paquete;\n $preciohab = $db->get_var($q);\n $preciohab = $preciohab * $hab[\"cantidad\"];\n $precioTotalhab += $preciohab;\n }\n return $precioTotalhab;\n }\n\n function precioComplementos($db, $complementos, $paquete, $plazas)\n {\n if ($complementos == null) {\n return 0;\n }\n $precioComple = 0;\n $precioTotalcomple = 0;\n foreach ($complementos as $complemento) {\n $q = \"select suplemento from posibles where tipo_complemento = 'complemento' and id_complemento = '\" . $complemento . \"' and id_paquete = \" . $paquete;\n $precioComple = $db->get_var($q);\n $precioComple = $precioComple * $plazas;\n $precioTotalcomple += $precioComple;\n }\n return $precioTotalcomple;\n }\n\n $q = \"select precio from paquete where id = \" . $paquete;\n\n $preciobasicopaquete = $db->get_var($q);\n $precioTotal = 0;\n $precioTotal = $preciobasicopaquete * $plazas;\n//Tenemos el precio básico del paquete.\n $precioTotal += precioaeropuerto($db, $aeropuerto, $paquete, $plazas);\n $precioTotal += precioHotel($db,$hotel,$paquete,$plazas);\n $precioTotal += precioHabitaciones($db, $habitaciones, $paquete);\n $precioTotal += precioTarjeta($db, $tarjeta, $paquete, $plazas);\n $precioTotal += precioComplementos($db, $complementos, $paquete, $plazas);\n\n return $precioTotal;\n}", "title": "" }, { "docid": "9a836fe3f3c881b0ed61a97c772fe778", "score": "0.52584386", "text": "function peramalanBerdasarkanRelasi(){\n $data = data(); // data sementara\n\n $f = menghitung_nilai_peramalan(); // f = hitung peramalan\n $jF = count(menghitung_nilai_peramalan()); // jumlah (f = hitung peramalan)\n $fuzzyfikasi = fuzzyfikasi();\n $jFuzzyfikasi = count(fuzzyfikasi());\n $jhitung_interval = count(hitung_interval());\n $hitung_interval = hitung_interval();\n\n // var_dump($fuzzyfikasi[$jFuzzyfikasi-1][1]);\n // die;\n\n// var_dump($jhitung_interval);\n// die;\n for ($i=1; $i < $jFuzzyfikasi ; $i++) {\n for ($j=0; $j < $jF ; $j++) {\n if ($fuzzyfikasi[$i][1] == $f[$j][2]) {\n $peramalan[] = [\n $data[$i]['tanggal'],\n $data[$i]['hasil_panen'],\n $f[$j][1]\n ];\n }\n }\n }\n\n// var_dump($fuzzyfikasi[$jFuzzyfikasi-1][1]);\n// die;\n// menentukan peramlan priode kedepan\n for ($i=0; $i <$jhitung_interval ; $i++) {\n if ($fuzzyfikasi[$jFuzzyfikasi-1][1] == $hitung_interval[$i][3]) {\n // echo $hitung_interval[$i][2];\n $peramalan[] = [\n 'bulan kedepan',\n 'hasil_panen',\n $hitung_interval[$i][2]\n ];\n }\n }\n// end menentukan peramlan priode kedepan\n\n\n\n return $peramalan;\n}", "title": "" }, { "docid": "7c156469acdfc3dd2650c16a07db3342", "score": "0.52534443", "text": "function sus_proyectos_inv_filtro($cuil){\r\n if(!is_null($cuil)){\r\n $where=\"WHERE cuil='\" .$cuil.\"'\";\r\n }else{\r\n $where='';\r\n }\r\n// \r\n// $sql=\"select * from (\r\n// select t_d.id_docente,t_do.nro_cuil1||'-'||t_do.nro_cuil||'-'||t_do.nro_cuil2 as cuil,trim(t_do.tipo_docum)||t_do.nro_docum as id_persona,t_d.cat_estat||t_d.dedic as categoria, t_p.codigo,t_p.denominacion,t_p.nro_resol,t_p.fec_resol,t_p.nro_ord_cs,t_i.funcion_p,t_i.carga_horaria,t_i.ua,t_i.desde,t_i.hasta,t_i.rescd ,t_c.descripcion as cat_inv \r\n// from integrante_interno_pi t_i \r\n// LEFT OUTER JOIN pinvestigacion t_p ON(t_i.pinvest=t_p.id_pinv) \r\n// LEFT OUTER JOIN designacion t_d ON (t_i.id_designacion=t_d.id_designacion)\r\n// LEFT OUTER JOIN categoria_invest t_c ON (t_i.cat_investigador=t_c.cod_cati) \r\n// LEFT OUTER JOIN docente t_do ON (t_do.id_docente=t_d.id_docente) \r\n// UNION\r\n// select t_do.id_docente,trim(t_pe.tipo_docum)||t_pe.nro_docum as id_persona,'' as categoria, t_p.codigo,t_p.denominacion,t_p.nro_resol,t_p.fec_resol,t_p.nro_ord_cs,t_e.funcion_p,t_e.carga_horaria,t_in.nombre_institucion as ua,t_e.desde,t_e.hasta,t_e.rescd ,t_c.descripcion as cat_inv \r\n// from integrante_externo_pi t_e \r\n// LEFT OUTER JOIN pinvestigacion t_p ON(t_e.pinvest=t_p.id_pinv) \r\n// LEFT OUTER JOIN persona t_pe ON(t_pe.tipo_docum=t_e.tipo_docum and t_pe.nro_docum=t_e.nro_docum) \r\n// LEFT OUTER JOIN docente t_do ON(t_pe.tipo_docum=t_do.tipo_docum and t_pe.nro_docum=t_do.nro_docum) \r\n// LEFT OUTER JOIN categoria_invest t_c ON (t_e.cat_invest=t_c.cod_cati) \r\n// LEFT OUTER JOIN institucion t_in ON (t_e.id_institucion=t_in.id_institucion)\r\n// ) sub\"\r\n// .$where\r\n// .\" order by desde\" ;\r\n $sql=\"select * from (\r\n select t_do.nro_cuil1||'-'||t_do.nro_cuil||'-'||t_do.nro_cuil2 as cuil,t_d.cat_estat||t_d.dedic||'('|| t_d.carac||')' as categoria, t_p.codigo,t_p.denominacion,t_p.nro_resol,t_p.fec_resol,t_p.nro_ord_cs,t_i.funcion_p,t_i.carga_horaria,t_i.ua,t_i.desde,t_i.hasta,t_i.rescd ,t_i.rescd_bm,t_c.descripcion as cat_inv \r\n from integrante_interno_pi t_i \r\n LEFT OUTER JOIN pinvestigacion t_p ON(t_i.pinvest=t_p.id_pinv) \r\n LEFT OUTER JOIN designacion t_d ON (t_i.id_designacion=t_d.id_designacion)\r\n LEFT OUTER JOIN categoria_invest t_c ON (t_i.cat_investigador=t_c.cod_cati) \r\n LEFT OUTER JOIN docente t_do ON (t_do.id_docente=t_d.id_docente) \r\n UNION\r\n select case when t_pe.nro_docum>0 then calculo_cuil(t_pe.tipo_sexo,t_pe.nro_docum) else t_pe.docum_extran end as cuil,'' as categoria, t_p.codigo,t_p.denominacion,t_p.nro_resol,t_p.fec_resol,t_p.nro_ord_cs,t_e.funcion_p,t_e.carga_horaria,t_in.nombre_institucion as ua,t_e.desde,t_e.hasta,t_e.rescd,t_e.rescd_bm,t_c.descripcion as cat_inv \r\n from integrante_externo_pi t_e \r\n LEFT OUTER JOIN pinvestigacion t_p ON(t_e.pinvest=t_p.id_pinv) \r\n LEFT OUTER JOIN persona t_pe ON(t_pe.tipo_docum=t_e.tipo_docum and t_pe.nro_docum=t_e.nro_docum) \r\n LEFT OUTER JOIN categoria_invest t_c ON (t_e.cat_invest=t_c.cod_cati) \r\n LEFT OUTER JOIN institucion t_in ON (t_e.id_institucion=t_in.id_institucion)\r\n ) sub \"\r\n .$where\r\n .\" order by desde\" ;\r\n return toba::db('designa')->consultar($sql);\r\n }", "title": "" }, { "docid": "6c1ef7839d0ba88b91692f7be0a4e078", "score": "0.5251909", "text": "public function get_Pendientes_X_Regional($tipoElemento,$uen = '', $tipoSolicitud = 'Nuevo', $consultaProducto = '1', $plaza = '', $regional = '', $anio = '', $tipoCanal = '') {\n $pendientes = Yii::app()->db->createCommand(\"SP_Total_Pendientes '3','$tipoElemento','$uen','$tipoSolicitud','$consultaProducto','$plaza','$regional','$anio','$tipoCanal'\")->queryAll();\n return $pendientes;\n }", "title": "" }, { "docid": "28afc85f555624644c4dcc7e6d2f7adb", "score": "0.52499163", "text": "function modoDePago($pdf,$element,$consumo_dif){\n $categoria = $element['categoria_suministro'];\n $x = 2;\n $yc_inc = 5; // incrememento de espacio para el concepto\n $yc1=64+$yc_inc; $yc2=67+$yc_inc; $yc3=70+$yc_inc;\n $val1 = 0; $val2 = 0; $val3 = 0; $resIGV=0;\n switch ($categoria) {\n case 'Domestico':\n # code...\n if($consumo_dif<=20){\n $val1 = 3.56;\n }else{\n $val1 = 3.56;\n $consumo_dif-=20;\n if($consumo_dif<=20){\n $val2 = $consumo_dif * 0.60; \n }else{\n $val2 = 20 * 0.60;\n $consumo_dif-=20;\n $val3 = $consumo_dif * 0.95;\n }\n }\n $val1 = round($val1, 1);\n $val2 = round($val2, 1);\n $val3 = round($val3, 1);\n\n $resIGV = ($val1+$val2+$val3)*0.18; $resIGV = round($resIGV, 1); \n\n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"(De 0 a 20)m3 * $/ 0.18\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n //segunda fila de \n $pdf->SetXY(85,$yc2+1*$x);\n $pdf->Cell(100,10,\"(De 20 a 40)m3 * $/ 0.60\",0,0,'');\n $pdf->SetXY(130,$yc2+1*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val2,2),0,0,'');\n //tercera fila de \n $pdf->SetXY(85,$yc3+2*$x);\n $pdf->Cell(100,10,\"(De 40 a mas)m3 * $/ 0.95\",0,0,'');\n $pdf->SetXY(130,$yc3+2*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val3,2),0,0,'');\n \n /*\n //IGV\n $pdf->SetXY(85,73+3*$x);\n $pdf->Cell(100,10,\"IGV (18%)\",0,0,'');\n $pdf->SetXY(130,73+3*$x);\n $pdf->Cell(100,10,\"$/ {$resIGV}\",0,0,'');\n */\n\n\n break;\n case 'Comercial':\n # code... \n \n if($consumo_dif<=20){\n $val1=20*0.50;\n }else {\n $val1=10; \n $consumo_dif-=20;\n $val2 = $consumo_dif*0.95;\n }\n $val1 = round($val1,1);\n $val2 = round($val2,1);\n\n $resIGV = ($val1+$val2)*0.18; $resIGV = round($resIGV,1);\n\n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"(De 0 a 20)m3 * $/ 0.50\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n //segunda fila de \n $pdf->SetXY(85,$yc2+1*$x);\n $pdf->Cell(100,10,\"(De 20 a mas)m3 * $/ 0.95\",0,0,'');\n $pdf->SetXY(130,$yc2+1*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val2,2),0,0,'');\n \n /*\n //IGV\n $pdf->SetXY(85,70+2*$x);\n $pdf->Cell(100,10,\"IGV (18%)\",0,0,'');\n $pdf->SetXY(130,70+2*$x);\n $pdf->Cell(100,10,\"$/ {$resIGV}\",0,0,'');\n */\n\n break;\n case 'Estatal':\n # code...\n if($consumo_dif<=20){\n $val1=20*0.60;\n }else {\n $val1=12; \n $consumo_dif-=20;\n $val2 = $consumo_dif*0.95;\n }\n $val1 = round($val1,1);\n $val2 = round($val2,1);\n\n $resIGV = ($val1+$val2)*0.18; $resIGV = round($resIGV,1);\n\n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"(De 0 a 20)m3 * $/ 0.60\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n //segunda fila de \n $pdf->SetXY(85,$yc2+1*$x);\n $pdf->Cell(100,10,\"(De 20 a mas)m3 * $/ 0.95\",0,0,'');\n $pdf->SetXY(130,$yc2+1*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val2,2),0,0,'');\n \n /*\n //IGV\n $pdf->SetXY(85,70+2*$x);\n $pdf->Cell(100,10,\"IGV (18%)\",0,0,'');\n $pdf->SetXY(130,70+2*$x);\n $pdf->Cell(100,10,\"$/ {$resIGV}\",0,0,'');\n */\n\n break;\n case 'Industrial':\n # code...\n $val1 = $consumo_dif * 2.00;\n \n $val1 = round($val1, 1);\n\n $resIGV = $val1 * 0.18; $resIGV = round($resIGV, 1);\n\n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"(De 0 a mas)m3 * $/ 2.00\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n \n \n /* \n //IGV\n $pdf->SetXY(85,67+1*$x);\n $pdf->Cell(100,10,\"IGV (18%)\",0,0,'');\n $pdf->SetXY(130,67+1*$x);\n $pdf->Cell(100,10,\"$/ {$resIGV}\",0,0,'');\n */\n\n break;\n case 'Mantenimiento':\n # code...\n $val1 = 2.11;\n \n $val1 = round($val1, 1);\n\n $resIGV = $val1 * 0.18; $resIGV = round($resIGV, 1);\n\n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"Por mantenimiento\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n \n \n /* \n //IGV\n $pdf->SetXY(85,67+1*$x);\n $pdf->Cell(100,10,\"IGV (18%)\",0,0,'');\n $pdf->SetXY(130,67+1*$x);\n $pdf->Cell(100,10,\"$/ {$resIGV}\",0,0,'');\n */\n\n break;\n case 'Tarifa Plana':\n # code...\n $val1 = number_format($element['monto_pagar'],2);\n \n $val1 = round($val1, 1);\n\n $resIGV = $val1 * 0.18; \n $resIGV = round($resIGV, 1);\n //sacando la diferencia para obtener el subtotal\n $val1 -=$resIGV; \n \n //primera fila de \n $pdf->SetXY(85,$yc1+0*$x);\n $pdf->Cell(100,10,\"Por Tarifa Plana\",0,0,'');\n $pdf->SetXY(130,$yc1+0*$x);\n $pdf->Cell(100,10,\"$/. \".number_format($val1,2),0,0,'');\n \n \n break;\n default:\n # code...\n break;\n }\n $subT = ($val1+$val2+$val3);\n return ['subt'=>$subT,'igvt'=>$resIGV];\n \n}", "title": "" }, { "docid": "ff70f533dd27ed50ab11666bdbe6fbdd", "score": "0.5245509", "text": "function calculer_rubriques_publiees() {\n\n\t// Mettre les compteurs a zero\n\tsql_updateq('spip_rubriques', array('date_tmp' => '0000-00-00 00:00:00', 'statut_tmp' => 'prive'));\n\n\t//\n\t// Publier et dater les rubriques qui ont un article publie\n\t//\n\n\t// Afficher les articles post-dates ?\n\t$postdates = ($GLOBALS['meta'][\"post_dates\"] == \"non\") ?\n\t\t\"AND fille.date <= NOW()\" : '';\n\n\t$r = sql_select(\"rub.id_rubrique AS id, max(fille.date) AS date_h\", \"spip_rubriques AS rub, spip_articles AS fille\", \"rub.id_rubrique = fille.id_rubrique AND fille.statut='publie' $postdates \", \"rub.id_rubrique\");\n\twhile ($row = sql_fetch($r))\n\t\tsql_updateq(\"spip_rubriques\", array(\"statut_tmp\" => 'publie', \"date_tmp\" => $row['date_h']), \"id_rubrique=\".$row['id']);\n\t\n\t// Publier et dater les rubriques qui ont une breve publie\n\t$r = sql_select(\"rub.id_rubrique AS id, max(fille.date_heure) AS date_h\", \"spip_rubriques AS rub, spip_breves AS fille\", \"rub.id_rubrique = fille.id_rubrique AND rub.date_tmp <= fille.date_heure AND fille.statut='publie' \", \"rub.id_rubrique\");\n\twhile ($row = sql_fetch($r))\n\t sql_updateq('spip_rubriques', array('statut_tmp'=>'publie', 'date_tmp'=>$row['date_h']), \"id_rubrique=\".$row['id']);\n\t\n\t// Publier et dater les rubriques qui ont un site publie\n\t$r = sql_select(\"rub.id_rubrique AS id, max(fille.date) AS date_h\", \"spip_rubriques AS rub, spip_syndic AS fille\", \"rub.id_rubrique = fille.id_rubrique AND rub.date_tmp <= fille.date AND fille.statut='publie' \", \"rub.id_rubrique\");\n\twhile ($row = sql_fetch($r))\n\t\tsql_updateq('spip_rubriques', array('statut_tmp'=>'publie', 'date_tmp'=>$row['date_h']),\"id_rubrique=\".$row['id']);\n\t\n\t// Publier et dater les rubriques qui ont un *document* publie\n\t$r = sql_select(\"rub.id_rubrique AS id, max(fille.date) AS date_h\", \"spip_rubriques AS rub, spip_documents AS fille, spip_documents_liens AS lien\", \"rub.id_rubrique = lien.id_objet AND lien.objet='rubrique' AND lien.id_document=fille.id_document AND rub.date_tmp <= fille.date AND fille.mode='document' $postdates \", \"rub.id_rubrique\");\n\twhile ($row = sql_fetch($r))\n\t sql_updateq('spip_rubriques', array('statut_tmp'=>'publie', 'date_tmp'=>$row['date_h']),\"id_rubrique=\".$row['id']);\n\t\n\t\n\t// Les rubriques qui ont une rubrique fille plus recente\n\t// on tourne tant que les donnees remontent vers la racine.\n\tdo {\n\t\t$continuer = false;\n\t\t$r = sql_select(\"rub.id_rubrique AS id, max(fille.date_tmp) AS date_h\", \"spip_rubriques AS rub, spip_rubriques AS fille\", \"rub.id_rubrique = fille.id_parent AND (rub.date_tmp < fille.date_tmp OR rub.statut_tmp<>'publie') AND fille.statut_tmp='publie' \", \"rub.id_rubrique\");\n\t\twhile ($row = sql_fetch($r)) {\n\t\t sql_updateq('spip_rubriques', array('statut_tmp'=>'publie', 'date_tmp'=>$row['date_h']),\"id_rubrique=\".$row['id']);\n\t\t\t$continuer = true;\n\t\t}\n\t} while ($continuer);\n\t// point d'entree pour permettre a des plugins de gerer le statut\n\t// autrement (par ex: toute rubrique est publiee des sa creation)\n\t// Ce pipeline fait ce qu'il veut, mais s'il touche aux statuts/dates\n\t// c'est statut_tmp/date_tmp qu'il doit modifier\n\tpipeline('calculer_rubriques', null);\n\n\t// Enregistrement des modifs\n\tsql_update('spip_rubriques', array('date'=>'date_tmp', 'statut'=>'statut_tmp'));\n}", "title": "" }, { "docid": "844a9a97d7056daf7dcda14ecb4aa9a3", "score": "0.5226259", "text": "function cisquel_url_recherche_mno($p=array(), $touslessites=false, $getdoc=false) {\n\tcisquel_lire_meta();\n\t$qs = $GLOBALS['ciconfig']['cisquelmnogosearch'];\n\n\tif ($touslessites) {\n\t\t$ul = '';\n\t\t$site ='';\n\t\t$categ = '---+Choisissez+une+cat%E9gorie+---';\n\t\t$groupbysite = 'no';\n\t} else {\n\t\t$ul = urlencode($GLOBALS['meta']['adresse_site']);\n\t\t$site = 'u%3A'.urlencode($GLOBALS['meta']['adresse_site']);\n\t\t$categ = '0';\n\t\t$groupbysite = 'no';\n\t}\n\t\n\t// tenir compte des options de recherche\n\t// et les convertir au format attentdu par mnogosearch\n\t$s1 = $qs['s'];\n\t$s2 = $qs['s'];\n\t$db = '';\n\t$de = '';\n\t$type = '';\n\t\n\tif ($p) {\n\t\t// urlencode remplace au passage les espaces par le signe plus\n\t\t// urlencode n'est pas unicode\n\t\tif ($GLOBALS['meta']['charset']=='utf-8')\n\t\t\t$recherche = urlencode(utf8_decode($p['recherche']));\n\t\telse\n\t\t\t$recherche = urlencode($p['recherche']);\n\t\t\n\t\tif ($p['tri']=='date'){\n\t\t\t$s1 = 'dR';\n\t\t\t$s2 = 'dR';\n\t\t\t$qs['avancee'] = 'yes';\n\t\t} elseif ($p['tri']=='datedesc'){\n\t\t\t$s1 = 'DR';\n\t\t\t$s2 = 'DR';\n\t\t\t$qs['avancee'] = 'yes';\n\t\t}\n\n\t\tif ($p['age']) {\n\t\t\t$qs['dp'] = $p['age'].'d';\n\t\t\t$qs['avancee'] = 'yes';\n\t\t}\n\n\t\tif ($p['datedebut']){\n\t\t\t$db = '&db='.$p['datedebut'];\n\t\t\t$qs['dt'] = 'range';\n\t\t\t$qs['avancee'] = 'yes';\n\t\t}\n\n\t\tif ($p['datefin']){\n\t\t\t$de = '&de='.$p['datefin'];\n\t\t\t$qs['dt'] = 'range';\n\t\t\t$qs['avancee'] = 'yes';\n\t\t}\n\n\t\tif ($p['typedoc']){\n\t\t\t$qs['avancee'] = 'yes';\n\t\t\t$row = sql_fetsel(\"mime_type\", \"spip_types_documents\", \"extension=\".sql_quote(strtolower($p['typedoc'])));\n\t\t\tif ($row)\n\t\t\t\t$type = '&type='.$row['mime_type'];\n\t\t} elseif ($getdoc) {\n\t\t\t\tif ($typesdoc = cisquel_config('cisquelmnotypesdocuments')) {\n\t\t\t\t\tif (is_array($typesdoc)) {\n\t\t\t\t\t\t$in = sql_in('extension',$typesdoc);\t\t\n\t\t\t\t\t\t$result = sql_select(\"mime_type\",\"spip_types_documents\",$in);\n\t\t\t\t\t\twhile ($row = sql_fetch($result))\n\t\t\t\t\t\t\t$type .= '&type='.$row['mime_type'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$qs['ps'] = 10;\n\t\t}\t\t\n\t}\n\n\t// liaison\n\t$urlmoteur = cisquel_url_moteur();\n\tif (strpos($urlmoteur,'?')===false)\n\t\t$urlmoteur .= '?';\n\telse\n\t\t$urlmoteur .= '&';\n\t\t\t\n\t\n\t$url = $urlmoteur\n\t.'avancee='.$qs['avancee']\n\t.'&s='.$s1\n\t.'&ps='.$qs['ps']\n\t.'&cat='.$qs['cat']\n\t.'&ul='.$ul\n\t.'&wf='.$qs['wf']\n\t.'&ftm='.$qs['ftm']\n\t.'&GroupBySite='.$groupbysite\n\t.'&tl='.$qs['tl']\n\t.'&categorie='.$qs['categorie']\n\t.'&q='.$recherche\n\t.'&m='.$qs['m']\n\t.'&categ='.$categ\n\t.'&site='.$site\n\t.'&fmt='.$qs['fmt']\n\t.'&s='.$s2\n\t.'&GroupBySite='.$groupbysite\n\t.'&wf='.$qs['wf']\n\t.$type\n\t.'&dp='.$qs['dp']\n\t.'&dt='.$qs['dt']\n\t.'&ps='.$qs['ps']\n\t.$db\n\t.$de;\n\t\n\treturn $url;\n}", "title": "" }, { "docid": "2837198b34a18ab88a920a2954891cde", "score": "0.52252245", "text": "public function _getCoutPortatifs(){\n $parametre = TableRegistry::get('ConfigParametres');\n $parametres = $parametre->find('all')->last();\n /*Coût unitaire d'un portatif + licence*/\n $coutPortatifs = $parametres->cout_portatif;\n\n return $coutPortatifs * $this->nb_portatifs;\n }", "title": "" }, { "docid": "5c484e123bc41907907e4fce76703b40", "score": "0.521652", "text": "function get_reporte_partidas_procesos_nuevo($proy_id,$com_id){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id); //// Datos del Proyecto\n $fase = $this->model_faseetapa->get_id_fase($proyecto[0]['proy_id']); /// Datos de la fase\n $componente = $this->model_componente->get_componente_pi($com_id); //// Datos Componentes\n $mes = $this->mes_nombre();\n\n if($proyecto[0]['tp_id']==1){\n $tit='\n <b>PROYECTO DE INVERSI&Oacute;N : </b>'.$proyecto[0]['aper_programa'].''.$proyecto[0]['aper_proyecto'].''.$proyecto[0]['aper_actividad'].' - '.$proyecto[0]['proy_nombre'].'<br>\n <b>COMPONENTE : </b>'.$componente[0]['com_nro'].'-'.$componente[0]['com_componente'].'';\n }\n else{\n $componente = $this->model_componente->get_componente($com_id); //// Datos Componentes\n $tit='\n <b>ACTIVIDAD : </b>'.$proyecto[0]['aper_programa'].''.$proyecto[0]['aper_proyecto'].''.$proyecto[0]['aper_actividad'].' - '.$proyecto[0]['proy_nombre'].'<br>\n <b>SUB ACTIVIDAD : </b>'.$componente[0]['serv_cod'].'-'.$componente[0]['serv_descripcion'].'';\n }\n\n if($proyecto[0]['proy_act']==0){\n $req=$this->operacion_requerimiento_procesos($proy_id,$com_id);\n // $part=$this->consolidado_partidas_componente($com_id);\n }\n elseif($proyecto[0]['proy_act']==1){\n $req=$this->actividad_requerimiento_procesos($proy_id,$com_id); \n $part=$this->consolidado_partidas_act_componente($com_id);\n }\n else{\n $req='..';\n $part='..';\n }\n\n $html = '\n <html>\n <head>' . $this->estilo_vertical() . '\n <style>\n @page { margin: 130px 20px; }\n #header { position: fixed; left: 0px; top: -110px; right: 0px; height: 20px; background-color: #fff; text-align: center; }\n #footer { position: fixed; left: 0px; bottom: -125px; right: 0px; height: 110px;}\n #footer .page:after { content: counter(page, numeric); }\n </style>\n <body>\n <div id=\"header\">\n <div class=\"verde\"></div>\n <div class=\"blanco\"></div>\n <table width=\"100%\">\n <tr>\n <td width=20%; text-align:center;>\n <center><img src=\"'.base_url().'assets/ifinal/cns_logo.JPG\" alt=\"\" width=\"47px\"></center>\n </td>\n <td width=60%; class=\"titulo_pdf\">\n <FONT FACE=\"courier new\" size=\"1\">\n <b>'.$this->session->userdata('entidad').'</b><br>\n <b>DIR. ADM. : </b> '.strtoupper($proyecto[0]['dep_departamento']).'<br>\n '.$tit.'\n </font>\n </td>\n <td width=20%; text-align:center;>\n </td>\n </tr>\n </table><hr><FONT FACE=\"courier new\" size=\"2\"><b>PLAN OPERATIVO ANUAL '.$this->gestion.' - PROGRAMACI&Oacute;N F&Iacute;SICO FINANCIERO </b></font>\n </div>\n <div id=\"footer\">\n <hr>\n <table>\n <tr>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>JEFATURA DE UNIDAD O AREA / REP. DE AREA REGIONALES</b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>JEFATURAS DE DEPARTAMENTOS / SERV. GENERALES REGIONAL </b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>GERENCIA GENERAL / GERENCIA DE AREA </b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td><p class=\"izq\">POA - '.$this->gestion.', Aprobado mediante RD. Nro 116/18 de 05.09.2018</p></td>\n <td></td>\n <td align=right><p class=\"page\">' .$mes[ltrim(date(\"m\"), \"0\")]. \" / \" . date(\"Y\").', '.$this->session->userdata('funcionario').' - Pagina </p></td>\n </tr>\n </table>\n </div>\n <div id=\"content\">\n <p>\n <div style=\"page-break-after:always;\">\n <br>'.$req.'<br>\n \n </div>\n </p>\n </div>\n </body>\n </html>';\n return $html;\n }", "title": "" }, { "docid": "08514c31e876b1e9dcb2d969ba5507ee", "score": "0.5207815", "text": "function extraerCursos($curso){\t\r\n\t$i = 0;\r\n\tif($curso==1){\r\n\t\t// Creamos un objeto DOM directamente desde una URL\r\n\t\t$html = file_get_html('https://secretaria.uvigo.gal/docnet-nuevo/guia_docent/index.php?centre=103&ensenyament=O03G081V01&consulta=assignatures');\r\n\t\t// buscamos todos los elementos <a> y nos quedamos con los que nos interesan\r\n\t\tforeach($html->find('a') as $element){\r\n\t\t\tif (strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V011') !== false or strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V012') !== false) {\r\n\t\t\t\tif(strpos($element->innertext, ':') !== false){\r\n\t\t\t\t\t$nombre = preg_split('/:\\s/', $element->innertext);\r\n\t\t\t\t\t$array[$i] = $nombre[1];\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$array[$i] = $element->innertext;\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}else{\r\n\t\tif($curso==2){\r\n\t\t\t// Creamos un objeto DOM directamente desde una URL\r\n\t\t\t$html = file_get_html('https://secretaria.uvigo.gal/docnet-nuevo/guia_docent/index.php?centre=103&ensenyament=O03G081V01&consulta=assignatures');\r\n\t\t\t// buscamos todos los elementos <a> y nos quedamos con los que nos interesan\r\n\t\t\tforeach($html->find('a') as $element){\r\n\t\t\t\tif (strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V013') !== false or strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V014') !== false) {\r\n\t\t\t\t\tif(strpos($element->innertext, ':') !== false){\r\n\t\t\t\t\t\t$nombre = preg_split('/:\\s/', $element->innertext);\r\n\t\t\t\t\t\t$array[$i] = $nombre[1];\r\n\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$array[$i] = $element->innertext;\r\n\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($curso==3){\r\n\t\t\t\t// Creamos un objeto DOM directamente desde una URL\r\n\t\t\t\t$html = file_get_html('https://secretaria.uvigo.gal/docnet-nuevo/guia_docent/index.php?centre=103&ensenyament=O03G081V01&consulta=assignatures');\r\n\t\t\t\t// buscamos todos los elementos <a> y nos quedamos con los que nos interesan\r\n\t\t\t\tforeach($html->find('a') as $element){\r\n\t\t\t\t\tif (strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V015') !== false or strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V016') !== false) {\r\n\t\t\t\t\t\tif(strpos($element->innertext, ':') !== false){\r\n\t\t\t\t\t\t\t$nombre = preg_split('/:\\s/', $element->innertext);\r\n\t\t\t\t\t\t\t$array[$i] = $nombre[1];\r\n\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$array[$i] = $element->innertext;\r\n\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif($curso==4){\r\n\t\t\t\t\t// Creamos un objeto DOM directamente desde una URL\r\n\t\t\t\t\t$html = file_get_html('https://secretaria.uvigo.gal/docnet-nuevo/guia_docent/index.php?centre=103&ensenyament=O03G081V01&consulta=assignatures');\r\n\t\t\t\t\t// buscamos todos los elementos <a> y nos quedamos con los que nos interesan\r\n\t\t\t\t\tforeach($html->find('a') as $element){\r\n\t\t\t\t\t\tif (strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V017') !== false or strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V018') !== false or strpos($element->href, '?centre=103&ensenyament=O03G081V01&assignatura=O03G081V019') !== false) {\r\n\t\t\t\t\t\t\tif(strpos($element->innertext, ':') !== false){\r\n\t\t\t\t\t\t\t\t$nombre = preg_split('/:\\s/', $element->innertext);\r\n\t\t\t\t\t\t\t\t$array[$i] = $nombre[1];\r\n\t\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$array[$i] = $element->innertext;\r\n\t\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $array;\r\n}", "title": "" }, { "docid": "5d3f731deca54b2baea04c74bd1debd4", "score": "0.5205435", "text": "function get_personal_pre_planilla($tipo,$nomina){\n\t\t$sql= \"SELECT *, CONCAT(per_nombres,' ',per_apellidos) as nombre_completo, \";\n\t\t///////--- SUBCONSULTAS DE MONTOS DE PLANILLA ----////////////\n\t\t////- Horas Laboradas\n\t\t$sql.=\"(SELECT SUM(hor_cantidad_regulares) FROM sal_horas_laboradas WHERE hor_nomina = '$nomina' AND hor_personal = per_dpi) as cantidad_horas_laboradas,\";\n\t\t$sql.=\"(SELECT SUM((hor_monto_regulares * hor_cambio) * hor_cantidad_regulares) FROM sal_horas_laboradas WHERE hor_nomina = '$nomina' AND hor_personal = per_dpi) as montol_horas_laboradas,\";\n\t\t////- Horas Extras\n\t\t$sql.=\"(SELECT SUM(hor_cantidad_extras) FROM sal_horas_laboradas WHERE hor_nomina = '$nomina' AND hor_personal = per_dpi) as cantidad_horas_extras,\";\n\t\t$sql.=\"(SELECT SUM((hor_monto_extras * hor_cambio) * hor_cantidad_extras) FROM sal_horas_laboradas WHERE hor_nomina = '$nomina' AND hor_personal = per_dpi) as montol_horas_extras,\";\n\t\t////- Bonificaciones Generales\n\t\t$sql.=\"(SELECT SUM(bon_monto * bon_tipo_cambio) FROM sal_bonificaciones_generales WHERE bon_nomina = '$nomina' AND bon_personal = per_dpi) as bonificaciones_generales,\";\n\t\t////- Bonificaciones Emergentes\n\t\t$sql.=\"(SELECT SUM(bon_monto * bon_tipo_cambio) FROM sal_bonificaciones_emeregentes WHERE bon_nomina = '$nomina' AND bon_personal = per_dpi) as bonificaciones_emergentes,\";\n\t\t////- Comisiones\n\t\t$sql.=\"(SELECT SUM(com_monto * com_tipo_cambio) FROM sal_comisiones WHERE com_nomina = '$nomina' AND com_personal = per_dpi) as comisiones,\";\n\t\t////- Descuentos\n\t\t$sql.=\"(SELECT SUM(des_monto * des_tipo_cambio) FROM sal_descuentos WHERE des_nomina = '$nomina' AND des_personal = per_dpi) as descuentos\";\n\t\t///////--- SUBCONSULTAS DE MONTOS DE PLANILLA ----////////////\n\t\t$sql.= \" FROM sal_personal_tipo_nomina,rrhh_personal,sal_tipo_nomina\";\n\t\t$sql.= \" WHERE ptn_personal = per_dpi\";\n\t\t$sql.= \" AND ptn_tipo_nomina = tip_codigo\";\n\t\tif(strlen($personal)>0) { \n\t\t\t $sql.= \" AND ptn_personal = '$personal'\";\n\t\t}\n\t\tif(strlen($tipo)>0) { \n\t\t\t $sql.= \" AND ptn_tipo_nomina = '$tipo'\";\n\t\t}\n\t\t$sql.= \" ORDER BY per_nombres ASC, per_apellidos ASC, per_dpi ASC\";\n\t\t\n\t\t$result = $this->exec_query($sql);\n\t\t//echo $sql;\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "23ecd9f249e4ca5597e451c52407d51f", "score": "0.51934993", "text": "function fantacalcio_find_regulars($vote_round) {\n\n drupal_set_title(t('Risultati: Giornata #@round', array(\n \"@round\" => $vote_round)));\n \n $out = \"\";\n \n // $vote_round = get_last_votes();\n \n $teams = Team::all();\n \n $round = Round::getByRound($vote_round); // print_r($round);die();\n $votes = $round->getVotes(); // get_votes($vote_round);\n// print_r($round);die();\n $pl_votes = array();\n \n foreach ($votes as $vote) {\n if ($vote->has_vote == 1 || $vote->vote > 0) \n $pl_votes[] = $vote->pl_id;\n }\n \n // print_r($pl_votes);die();\n \n // $pl_ids_list = implode(',', $pl_votes);\n \n // $sqlx = \"SELECT * FROM {fanta_rounds_competitions} \" .\n // \"WHERE round = '%d'\";\n // $resultx = db_query($sqlx, $vote_round);\n // while ($row = db_fetch_array($resultx)) {\n \n foreach ($round->competitions as $round_competition) {\n\n $c_id = $round_competition->competition_id;\n $competition_round = $round_competition->competition_round;\n \n $out .= \"<h3>\" . Competition::get($c_id)->name . \"</h3>\";\n \n // resetto i valori\n $query = db_update(\"fanta_lineups\");\n $query->fields(array(\"has_played\" => 0));\n $query->condition(\"round\", $competition_round);\n $query->condition(\"c_id\", $c_id);\n \n $query->execute();\n \n // titolari con voto\n $query = db_update(\"fanta_lineups\");\n $query->fields(array(\"has_played\" => 1));\n $query->condition(\"round\", $competition_round);\n $query->condition(\"c_id\", $c_id);\n $query->condition(\"position\", 1);\n $query->condition(\"pl_id\", $pl_votes, \"IN\");\n \n $result = $query->execute();\n \n // trovo riserve da far entrare\n $query = db_select(\"fanta_lineups\", \"l\");\n $query->condition(\"round\", $competition_round);\n $query->condition(\"c_id\", $c_id);\n $query->distinct();\n $query->fields(\"l\", array(\"t_id\"));\n \n $result = $query->execute();\n \n foreach ($result as $row) {\n Result::getRegularsTeam($row->t_id, $pl_votes, $competition_round, $c_id);\n }\n \n // report\n $query = db_select(\"fanta_lineups\", \"l\");\n $query->addExpression(\"count(*)\", \"n\");\n $query->condition(\"has_played\", 1);\n $query->condition(\"c_id\", 1);\n $query->condition(\"round\", 1);\n $query->fields(\"l\");\n $query->groupBy(\"t_id\");\n \n $result = $query->execute();\n \n $played = array();\n $i = 0;\n \n foreach ($result as $row) {\n $i++;\n $played[$i]['t_id'] = $row->t_id;\n $played[$i]['n'] = $row->n;\n }\n \n $query = db_select(\"fanta_lineups\", \"l\");\n $query->join(\"fanta_players\", \"p\", \"p.pl_id = l.pl_id\");\n $query->condition(\"c_id\", $c_id);\n $query->condition(\"round\", $competition_round);\n $query->fields(\"l\");\n $query->fields(\"p\");\n \n $result = $query->execute();\n \n $lineups = array();\n foreach ($result as $row) {\n \n if (!isset($lineups[$row->t_id][\"regulars\"]))\n $lineups[$row->t_id][\"regulars\"] = array(0, 0, 0, 0);\n if (!isset($lineups[$row->t_id][\"played\"]))\n $lineups[$row->t_id][\"played\"] = array(0, 0, 0, 0);\n \n if ($row->position == 1)\n $lineups[$row->t_id][\"regulars\"][$row->role]++;\n if ($row->has_played == 1)\n $lineups[$row->t_id][\"played\"][$row->role]++;\n }\n \n // riepilogo titolari squadre\n $header = array(\n \"Squadra\", \n \"N&deg; Titolari\", \n \"Modulo Titolari\", \n \"Modulo Formazione\");\n \n $rows = array();\n foreach ($lineups as $key => $value) {\n $n_titolari = array_sum($lineups[$key][\"played\"]);\n \n $style = ($n_titolari == 11) ? \"\" : \"font-weight: bold; color: red;\";\n \n ksort($lineups[$key][\"played\"]);\n ksort($lineups[$key][\"regulars\"]);\n \n $rows[$key][] = $teams[$key]->name;\n $rows[$key][] = array(\"data\" => $n_titolari, \"style\" => $style);\n $rows[$key][] = implode(\"-\", $lineups[$key][\"played\"]);\n $rows[$key][] = implode(\"-\", $lineups[$key][\"regulars\"]);\n }\n \n $out .= theme(\"table\", array(\"header\" => $header, \"rows\" => $rows));\n }\n \n return $out;\n}", "title": "" }, { "docid": "6e8618bc91b9a7bc994c4e937e321f27", "score": "0.5185666", "text": "public function listaItems($id_plantilla,$id_area,$id_subarea,$nacional,$ano,$periodo){\n\n/*$sql=\"SELECT epn.id_plantilla,epn.id_area,epn.id_subarea,epi.id_item,epi.nombre \nFROM evados.eva_plantilla_item epi \nINNER JOIN evados.eva_plantilla_nacional epn ON epn.id_area =$id_area \nand epn.id_subarea = $id_subarea and epn.id_item = epi.id_item \nWHERE epn.id_plantilla = $id_plantilla and epi.id_nacional=1 and epi.nombre is not null; \";*/\n$sql=\"SELECT distinct eib.id_plantilla,eib.id_area,eib.id_subarea,eps.id_item,eps.nombre \nFROM evados.eva_plantilla_item as eps \ninner join evados.eva_item_bloque eib on eib.id_item = eps.id_item\nwhere eib.id_plantilla = $id_plantilla and eib.id_area = $id_area and eib.id_subarea = $id_subarea and eps.id_nacional = $nacional\nand eps.nombre is not null order by eib.id_area,eib.id_subarea,eps.id_item\";\n\n$result = pg_Exec($this->Conec->conectar(),$sql) or die (\"fallo:\".$sql);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ae557111d018608d3a088fcaa18e7bfd", "score": "0.5177013", "text": "public function cierre_evaluado($nacional,$a,$ano){\n\t$sql=\"SELECT id_plantilla,id_bloque FROM evados.eva_plantilla WHERE id_nacional=\".$nacional.\" AND id_plantilla=\".$a.\" ORDER BY id_bloque ASC \";\n\t$rs_plantilla = pg_exec($this->Conec->conectar(),$sql);\n\t$plantilla = pg_result($rs_plantilla,0);\n\t$bloque = pg_result($rs_plantilla,1);\n\t\n\t$sql=\"SELECT id_cierre FROM evados.eva_cierre WHERE id_nacional=\".$nacional.\" AND estado=1\";\n\t$rs_cierre = pg_exec($this->Conec->conectar(),$sql);\n\t$cierre = pg_result($rs_cierre,0);\n\t\n\t$sql=\"SELECT id_periodo FROM periodo WHERE id_ano=\".$ano.\" AND (cerrado=0 or cerrado is null) \";\n\t$rs_periodo = pg_exec($this->Conec->conectar(),$sql);\n\t$periodo = pg_result($rs_periodo,0);\n\t\n\t\n\t/*$sql =\"SELECT count(*) as cantidad,id_cargo,rut_evaluado\n\t\t\t FROM evados.eva_plantilla ep \n\t\t\t INNER JOIN evados.eva_relacion_evaluacion ere ON ere.cargo_evaluado=ep.id_bloque\n\t\t\t WHERE id_plantilla=\".$plantilla.\" and ere.id_ano=\".$ano.\" and ere.id_periodo=\".$periodo.\" and fecha_evaluacion is not null\n\t\t\t GROUP BY id_cargo,rut_evaluado\";*/\n\t $sql=\"SELECT count(*) as cantidad,ebe.id_bloque,rut_evaluado, ere.id_cargo\n\t\t FROM evados.eva_plantilla ep \n\t\t INNER JOIN evados.eva_relacion_evaluacion ere ON ere.cargo_evaluado=ep.id_bloque\n\t\t INNER JOIN evados.eva_bloque_evaluador ebe ON ebe.rut_evaluador=ere.rut_evaluador and ebe.id_cargo=ere.id_cargo\n\t\t WHERE id_plantilla=\".$plantilla.\" and ere.id_ano=\".$ano.\" and ere.id_periodo=\".$periodo.\" and fecha_evaluacion is not null\n\t\t GROUP BY 2,3,4\"; \n\n\t$rs_bloques = pg_exec($this->Conec->conectar(),$sql)or die (\"ERROR 1 \".$sql);\n\t\n\tfor($i=0;$i<pg_numrows($rs_bloques);$i++){\n\t\t$fila_bloque = pg_fetch_array($rs_bloques,$i);\n\t\t\n\t\t$sql=\"SELECT count(*) as cantidad, id_concepto\n\t\t\t\tFROM evados.eva_plantilla_evaluacion epe \n\t\t\t\tWHERE id_ano=\".$ano.\" AND ip_periodo=\".$periodo.\" AND id_plantilla=\".$plantilla.\" AND epe.id_cargo_evaluador=\".$fila_bloque['id_cargo'].\" AND epe.rut_evaluado=\".$fila_bloque['rut_evaluado'].\" \n\t\t\t\tGROUP BY id_concepto\n\t\t\t\tORDER BY id_concepto ASC\";\n\t\t\t\n\t\t\t\t//\n\t\t$rs_evaluacion = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 2 \".$sql);\n\t\t\n\t\t$total_unitario =0;\n\t\t\n\t\tfor($j=0;$j<pg_numrows($rs_evaluacion);$j++){\n\t\t\t$fila_eva = pg_fetch_array($rs_evaluacion,$j);\t\n\t\t\t$valor_unitario =0;\n\t\t\t$sql=\"SELECT peso * \".$fila_eva['cantidad'].\" FROM evados.eva_cierre_concepto WHERE id_plantilla=\".$plantilla.\" and id_cargo=\".$fila_bloque['id_bloque'].\" AND id_concepto=\".$fila_eva['id_concepto'];\n\t\t\t$rs_conceptos = @pg_exec($this->Conec->conectar(),$sql)or die (\"ERROR 3 \".$sql);\n\t\t\t$total_unitario = @pg_result($rs_conceptos,0);\n\t\t\t\n\t\t\t//echo \"<br>valor-->\".$valor_unitario = @($valor / $fila_bloque['cantidad']);\n\t\t\t\n\t\t\t//echo \"<br>total-->\".$total_unitario = $total_unitario + $valor_unitario;\n\t\t\t$sql=\"SELECT valor FROM evados.eva_cierre_evaluado WHERE id_cierre=\".$cierre.\" AND id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND id_plantilla=\".$plantilla.\" AND rut_evaluado=\".$fila_bloque['rut_evaluado'].\" AND id_concepto=\".$fila_eva['id_concepto'].\" AND id_bloque=\".$fila_bloque['id_bloque'];\n\t\t\t$rs_existe = @pg_exec($this->Conec->conectar(),$sql);\t\n\t\t\t$valor_existe = @pg_result($rs_existe,0);\n\t\t\n\t\t\tif(@pg_numrows($rs_existe)==0){\t\t\n\t\t\t\t$sql=\"INSERT INTO evados.eva_cierre_evaluado (id_cierre,id_ano,id_periodo,id_plantilla,rut_evaluado,id_concepto,id_bloque,valor) VALUES (\".$cierre.\",\".$ano.\",\".$periodo.\",\".$plantilla.\",\".$fila_bloque['rut_evaluado'].\",\".$fila_eva['id_concepto'].\",\".$fila_bloque['id_bloque'].\",\".$total_unitario.\")\";\n\t\t\t\t$rs_cierre_evaluado = @pg_exec($this->Conec->conectar(),$sql);\t\n\t\t\t}else{\n\t\t\t\t$sql=\"UPDATE evados.eva_cierre_evaluado SET valor = \".$valor_existe.\" + \".$total_unitario.\" WHERE id_cierre=\".$cierre.\" AND id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND id_plantilla=\".$plantilla.\" AND rut_evaluado=\".$fila_bloque['rut_evaluado'].\" AND id_concepto=\".$fila_eva['id_concepto'].\" AND id_bloque=\".$fila_bloque['id_bloque'];\n\t\t\t\t$rs_cierre_evaluado = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 6 \".$sql);\n\t\t\t}\n\t\t} // fin $rs_evaluacion\n\n\t\t\n\t\t\n\t}\n\t\n\t// -------------- PROCESO DE CIERRE INDIVIDUAL FINAL ------------------------\n\t\t\n\t\t//echo $sql=\"SELECT sum(valor) as cantidad FROM evados.eva_cierre_evaluado WHERE id_cierre=\".$cierre.\" AND id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND id_plantilla=\".$plantilla.\" AND rut_evaluado=\".$fila_bloque['rut_evaluado'];\n\t\t$sql=\"SELECT sum(valor) as cantidad, rut_evaluado\nFROM evados.eva_cierre_evaluado \nWHERE id_cierre=\".$cierre.\" AND id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND id_plantilla=\".$plantilla.\"\nGROUP BY 2\";\n\t\t$rs_total_unitario = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 7 \".$sql);\n\t\t$sumatoria = pg_result($rs_total_unitario,0);\n\t\t\n\t\t//echo \"<br>\".$sql=\"SELECT valor FROM evados.eva_cierre_concepto WHERE id_plantilla=\".$plantilla.\" AND optimo=1\";\n\t\t$sql=\"SELECT sum(valor)\nFROM evados.eva_cierre_concepto ecc\nINNER JOIN evados.eva_concepto ec ON ecc.id_concepto=ec.id_concepto\nWHERE id_plantilla=\".$plantilla.\" and optimo=1\";\n\t\t$rs_valor_concepto = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 8 \".$sql);\n\t\t$optimo = pg_result($rs_valor_concepto,0);\n\t\t\n\t\tfor($g=0;$g<pg_numrows($rs_total_unitario);$g++){\n\t\t\t$fila_sum = pg_fetch_array($rs_total_unitario,$g);\n\t\t\t$sumatoria = $fila_sum['cantidad'];\n\t\n\t\t\t$final = round(($sumatoria * 100) / $optimo);\t\t\n\t\t\t\n\t\t\t$sql=\"SELECT concepto FROM evados.eva_escala WHERE desde<=\".$final.\" AND hasta>=\".$final;\n\t\t\t$rs_escala = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 8 \".$sql);\n\t\t\t$concepto = pg_Result($rs_escala,0);\n\t\t\t\n\t\t\t$sql=\"SELECT ((SELECT count(*)\n\t\t\tFROM evados.eva_relacion_evaluacion\n\t\t\tWHERE id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND rut_evaluado=\".$fila_sum['rut_evaluado'].\" and fecha_evaluacion is not null) * 100) / count(*) as porcentaje\n\t\t\tFROM evados.eva_relacion_evaluacion\n\t\t\tWHERE id_ano=\".$ano.\" AND id_periodo=\".$periodo.\" AND rut_evaluado=\".$fila_sum['rut_evaluado'].\"\";\n\t\t\t$rs_porcentaje = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 8 \".$sql);\n\t\t\t$porcentaje = pg_Result($rs_porcentaje,0);\n\t\t\t\n\t\t\t$sql=\"INSERT INTO evados.eva_cierre_evaluado_final (id_cierre,id_ano,id_periodo,id_plantilla,rut_evaluado,sumatoria,total_concepto,valor_final,evaluacion_final, porcentaje) VALUES(\".$cierre.\",\".$ano.\",\".$periodo.\",\".$plantilla.\",\".$fila_sum['rut_evaluado'].\",\".$sumatoria.\",\".$optimo.\",\".$final.\",'\".$concepto.\"',\".$porcentaje.\")\";\n\t\t\t$rs_insert = pg_exec($this->Conec->conectar(),$sql) or die (\"ERROR 8 \".$sql);\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t\t\n\t\t\n\t\n\t\n\tif($rs_cierre_evaluado){\n\t\treturn $rs_cierre_evaluado;\n\t}else{\n\t\treturn false;\t\n\t}\n}", "title": "" }, { "docid": "89eef0674e73b91fbe53baa3c3671c28", "score": "0.5167317", "text": "public function previewLiquidation($objet,$id){\n\t $connection = Yii::app()->db2; \n\t //echo \"<br><br><br><br><br>\";\n\t $Parametrosglobales = new Parametrosglobales; \t \n $this->valorestablecidos = $Parametrosglobales->getParametrosglobales(date(\"Y\", strtotime($objet->MENO_FECHAPROCESO)));\n\t \n\t $sql = 'SELECT ep.\"EMPL_ID\" FROM \"TBL_NOMEMPLEOSPLANTA\" ep WHERE ep.\"PEGE_ID\" = '.$id.' ORDER BY ep.\"EMPL_FECHAINGRESO\" DESC';\n\t $query = $connection->createCommand($sql)->queryAll();\n\t $iterador = 1;\n\t $this->codigo = 1;\n\t foreach($query as $row){\t \n\t $this->cargarEmpleoPlanta($row[\"EMPL_ID\"]);\n\t // echo $row[\"EMPL_ID\"].\" \".$this->Estadoempleoplanta->ESEP_FECHAREGISTRO.\" \".$this->Estadoempleoplanta->ESEM_ID.\"<br>\";\n\t /*si el empleo no esta activo, se entra en el condicional para ver si se puede liquidar */\n\t $sw = 0;\n\t //echo $this->Estadoempleoplanta->ESEP_ID.' '.$this->Estadoempleoplanta->ESEM_ID.' '.$this->Empleoplanta->EMPL_ID.\"<br>\";\n\t if($this->Estadoempleoplanta->ESEM_ID!=1){\n\t $sw = 1;\n\t if(((date(\"Y\", strtotime($this->Estadoempleoplanta->ESEP_FECHAREGISTRO)))==(date(\"Y\", strtotime($objet->MENO_FECHAPROCESO)))) &\n\t ((date(\"m\", strtotime($this->Estadoempleoplanta->ESEP_FECHAREGISTRO)))==(date(\"m\", strtotime($objet->MENO_FECHAPROCESO))))){\n\t $sw = 0; \t\t\t \n\t }elseif($this->Estadoempleoplanta->ESEM_ID==5){\n\t\t\t$sw = 1;\n\t\t\t}\n\t }\n\t \n\t /*si todo esta bn se procede a calcular la nomina para la persona*/\n\t if($sw==0){\n\t //echo $row[\"EMPL_ID\"].\" \".$this->Estadoempleoplanta->ESEP_FECHAREGISTRO.\" \".$this->Estadoempleoplanta->ESEM_ID.\"<br>\";\n\t $basico = $this->getSueldoBasico();\n\t \n\t $hed=round($this->getHorasExtrasDiurna());\n $shed=$shed+$hed;\n $hen=round($this->getHorasExtrasNocturna());\n $shen=$shen+$hen;\n $hedf=round($this->getHorasExtrasDiurnaFestivo());\n $shedf=$shedf+$hedf;\n $henf=round($this->getHorasExtrasNocturnaFestivo());\n $shenf=$shenf+$henf;\n $dyf=round($this->getDomingosYfestivos());\n $sdyf=$sdyf+$dyf;\n $ren=round($this->getRecargoNocturno());\n $sren=$sren+$ren;\n $rndyf=round($this->getRecargoNocturnoDyF());\n $srndyf=$srndyf+$rndyf;\n\t \n\t $subTransporte = round($this->getSubTransporte());\n $ssubTransporte = $ssubTransporte+$subTransporte;\n $prAlimenta = round($this->getSubAlimentacion());\n $sprAlimenta = $sprAlimenta+$prAlimenta;\n $prvacaciones = round($this->getPrimaVacaciones());\n $sprvacaciones = $sprvacaciones+$prvacaciones;\n $prantiguedad = $this->getPrimaAntiguedad();\n $sprantiguedad = $sprantiguedad+round($prantiguedad[1]);\n\t \n\t $primatec = round($this->getPrimaTecnica());\n\t $sprimatec = $sprimatec+$primatec;\n\t $gastosrp = round($this->getGastosRepresentacion());\n\t $sgastosrp = $sgastosrp+$gastosrp;\n\t \n\t $bonserv = round($this->getBonServiciosPrestados());\n\t $sbonserv=$sbonserv+$bonserv;\n\t \n\t $tdevengado = 0;\n\t $tdevengado=$basico+$hed+$hedf+$hen+$henf+$dyf+$ren+$rndyf;\n\t $tdevengado=$tdevengado+round($primatec)+round($gastosrp)+round($sobrenumera);\n\t \n\t //con devengado sin subsidios ni prima de antiguedad\n\t $estampilla=round($this->getEstampilla($tdevengado));\n\t $sestampilla=$sestampilla+$estampilla;\n\t \n\t $tdevengado=$tdevengado+round($prantiguedad[1]);\n\t //con devengado sin subsidios \n\t $salud=round($this->getSalud($tdevengado));\n\t $ssalud=$ssalud+$salud;\n\t \n\t $pension=round($this->getPension($tdevengado));\n\t $spension=$spension+$pension;\n\t \n\t $subsistencia=round($this->getSubsistencia($tdevengado));\n\t $ssubsistencia=$ssubsistencia+$subsistencia;\n\t\n\t $sindicato=round($this->getSindicato());\n\t $ssindicato=$ssindicato+$sindicato;\n\t\n\t $fondosp=round($this->getFSP($tdevengado));\n\t $sfondosp=$sfondosp+$fondosp;\n\t \n\t $tdevengado=$tdevengado+round($bonserv)+round($prvacaciones)+round($subTransporte)+round($prAlimenta);\n\t $stdevengado=$stdevengado+$tdevengado;\n\t\n\t $retefuente=round($this->getRetefuente($salud,$pension,$fondosp,$tdevengado));\n\t $sretefuente=$sretefuente+$retefuente;\n\t\n\t $tparafiscales = $estampilla+$salud+$pension+$subsistencia+$sindicato+$fondosp+$retefuente;\n\t $stparafiscales = $stparafiscales+$tparafiscales;\n\t\t\t\t \n\t $devengados = array($basico,$hed,$hen,$hedf,$henf,$dyf,$ren,$rndyf,round($prantiguedad[1]),$subTransporte,$prAlimenta,$primatec,$gastosrp,$bonserv,$prvacaciones,$tdevengado);\n\t $this->devengados[$iterador] = array($iterador, $this->codigo,$this->Empleoplanta->EMPL_DIASAPAGAR,$this->Empleoplanta->EMPL_PUNTOS,\n\t $devengados[0],$devengados[8],$devengados[9],$devengados[10],$this->Horasextrasyrecargos->HOER_HED,\n\t\t\t\t\t\t\t\t\t\t\t$devengados[1],$this->Horasextrasyrecargos->HOER_HEN,$devengados[2],$this->Horasextrasyrecargos->HOER_HEDF,\n\t\t\t\t\t\t\t\t\t\t\t$devengados[3],$this->Horasextrasyrecargos->HOER_HENF,$devengados[4],$this->Horasextrasyrecargos->HOER_DYF,\n\t\t\t\t\t\t\t\t\t\t\t$devengados[5],$this->Horasextrasyrecargos->HOER_REN,$devengados[6],$this->Horasextrasyrecargos->HOER_RENDYF,\n\t\t\t\t\t\t\t\t\t\t\t$devengados[7],$devengados[11],$devengados[12],$devengados[13],$devengados[14],$this->MENO_ID,\n\t\t\t\t\t\t\t\t\t\t\t$this->Empleoplanta->EMPL_ID,$devengados[15]);\n\t \n\t \n\t \n\t \n\t $paraficales = array($salud,$pension,$subsistencia,$sindicato,$fondosp,$retefuente,$estampilla,$tparafiscales);\t\t \n\t $this->paraficales[$iterador] = array($iterador,$this->Personageneral->SALU_ID,$paraficales[0],$this->Personageneral->PENS_ID,\n\t $paraficales[1],$this->Personageneral->SIND_ID,$paraficales[3],$paraficales[4],$paraficales[2],\n\t\t\t\t\t\t\t\t\t\t\t $paraficales[6],$paraficales[5],$iterador,$iterador,$iterador,$tparafiscales );\n\t $this->codigo = $this->codigo+1;\t \n $iterador = $iterador+1;\t \n\t }\t \n\t }\n\t \n\t /**\n\t *llenando los arreglos de la liquidacion previa\n\t */\n\t $this->liquidacion = NULL;\n\t $array = array('ID LIQUIDACION','CODIGO','DIAS','PUNTOS','SALARIO','PRIMA ATIGUEDAD','SUBSIDIO TRANSPORTE','SUBSIDIO ALIMENTACION','N.H.E.D',\n\t 'H.E.D','N.H.E.N','H.E.N','N.H.E.D.F','H.E.D.F','N.H.E.N.F','H.E.N.F','N. DOMINGO','DOMINGOS','N.RECARGO NOCT',\n\t\t\t 'RECARGO NOCT','N. REC DOMINGOS','REC DOMINGOS','PRIMA TECNICA','GASTOS REPRESENTACION','BON. DE SERVICIOS',\n\t\t\t\t 'PRIMA DE VACACIONES','ID NOMINA','ID EMPLEO','TOTAL DEVENGADO');\n\t $j=0; $i=0;\n\t foreach ($array as $values=>$value) {\t\n\t $this->liquidacion[$j][$i] = $value;\n\t $i++; \n\t }\n\t \n\t $this->parafiscales = NULL;\n $array = array('ID PARAFISCAL','IDSALUD','SALUD','IDPENSION','PENSION','IDSINDICATO','SINDICATO','FONDO SOL PPENSIONAL','SUBSISTENCIA',\n\t 'ESTAMPILLA','RETEFUENTE', 'ID LIQUIDACION','FECHA LIQUIDADO','USUARIO','TOTAL PARAFISCAL');\n\t\t\t\t \n\t $j=0; $i=0;\n\t foreach ($array as $values=>$value) {\t\n\t $this->parafiscales[$j][$i] = $value;\n\t $i++; \n\t }\n\t \n\t \n\t for($j=1;$j<=count($this->devengados);$j++) {\t\t \n\t for($i=0;$i<=count($this->devengados[$j]);$i++) { \n\t $this->liquidacion[$j][$i] = $this->devengados[$j][$i];\n\t } \n } \n\t \n\t for($j=1;$j<=count($this->paraficales);$j++) {\t\t \n\t for($i=0;$i<=count($this->paraficales[$j]);$i++) { \n\t $this->parafiscales[$j][$i] = $this->paraficales[$j][$i];\n\t } \n } \n\t \n\t $this->getDescuentosPreview($this->Personageneral->PEGE_ID,$objet->MENO_ID);\n\t \n\t}", "title": "" }, { "docid": "b3cae4f2cfdc273a81650029c3295c40", "score": "0.5163439", "text": "public function parsiRuokalista() {\n\t\t\t$ravintola_id = '108';\n\n\t\t\t$listalinkit = file_get_html('http://www.hel.fi/wps/portal/Palmia/Ruokalista');\n\t\t\twhile ($this->palmia_virhesivu($listalinkit->plaintext)) {\n\t\t\t\t$listalinkit = file_get_html('http://www.hel.fi/wps/portal/Palmia/Ruokalista');\n\t\t\t}\n\t\t\t\n\t\t\t$bulevardilinkki = $listalinkit->find('form[id=restaurantlink_28]', 0);\n\t\t\t$link = 'http://www.hel.fi' . $bulevardilinkki->action;\n\t\t\t$request = array(\n\t\t\t\t'http' => array(\n\t\t\t\t\t'method' => 'POST',\n\t\t\t\t\t'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n\t\t\t\t\t'content' => http_build_query(array(\n\t\t\t\t\t\t'id' => $ravintola_id,\n\t\t\t\t\t\t'submit' => 'Hae'\n\t\t\t\t\t)),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$context = stream_context_create($request);\n\n\t\t\t$lista_sivu = file_get_html($link, false, $context);\n\t\t\twhile ($this->palmia_virhesivu($lista_sivu->plaintext)) {\n\t\t\t\t$lista_sivu = file_get_html($link, false, $context);\n\t\t\t}\n\t\t\t$menu = $lista_sivu->find('table.menu_table', 0);\n\t\t\tforeach ($menu->children() as $child) {\n\t\t\t\t$string = trim(str_replace(\"\\xA0\", \" \", html_entity_decode($child->plaintext)));\n\t\t\t\tif (!empty($string) && strtolower($string) != 'hinta') {\n\t\t\t\t\t$date_index = array_search(strtolower($string), $this->paivat);\n\t\t\t\t\tif ($date_index !== false) {\n\t\t\t\t\t\t$date = $date_index;\n\t\t\t\t\t} else if (!empty($date)) {\n\t\t\t\t\t\t$this->ruokalista[$date][] = $string;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7c12374e3b95ff78173a0346f478d6ae", "score": "0.51625395", "text": "function ResultadosPartidosAnterioresPorCategoriaDivision($refCategoria, $refDivision, $idequipo) {\r\n $sql = \"select\r\n r.idfecha, r.fecha, r.resultado\r\n from (\r\n select \r\n f.reffechas as idfecha,f.fecha,\r\n (case when f.puntoslocal > f.puntosvisita then 'G'\r\n when f.puntoslocal < f.puntosvisita then 'P'\r\n when f.puntoslocal = f.puntosvisita then 'E'\r\n end) resultado\r\n from\r\n dbfixture f\r\n inner join dbtorneos tor ON tor.idtorneo = f.reftorneos\r\n inner join tbfechas fec ON fec.idfecha = f.reffechas\r\n inner join tbestadospartidos est ON est.idestadopartido = f.refestadospartidos\r\n where\r\n tor.refcategorias = \".$refCategoria.\" and refdivisiones = \".$refDivision.\" and f.refconectorlocal = \".$idequipo.\" and est.finalizado = 1\r\n union all\r\n select \r\n f.reffechas as idfecha,f.fecha,\r\n (case when f.puntosvisita > f.puntoslocal then 'G'\r\n when f.puntosvisita < f.puntoslocal then 'P'\r\n when f.puntosvisita = f.puntoslocal then 'E'\r\n end) resultado\r\n from\r\n dbfixture f\r\n inner join dbtorneos tor ON tor.idtorneo = f.reftorneos\r\n inner join tbfechas fec ON fec.idfecha = f.reffechas\r\n inner join tbestadospartidos est ON est.idestadopartido = f.refestadospartidos\r\n where\r\n tor.refcategorias = \".$refCategoria.\" and refdivisiones = \".$refDivision.\" and f.refconectorvisitante = \".$idequipo.\" and est.finalizado = 1\r\n ) r\r\n order by r.fecha desc\r\n limit 1,3\"; \r\n \r\n $res = $this->query($sql,0);\r\n return $res;\r\n \r\n}", "title": "" }, { "docid": "b0f3fd8e8092b8336ca07e950eb0a0c6", "score": "0.51571184", "text": "public function divergenciasNfeXSped()\n {\n $sql = \"SELECT c100.NUM_DOC SpedNumDoc,xml.NUM_DOC XmlNumDoc,c100.DT_DOC SpedDtDoc,xml.DT_DOC XmlDtDoc,c100.VL_DOC SpedVlDoc,xml.VL_DOC XmlVlDoc,c100.CHV_NFE SpedChave,c100.linha,c100.COD_SIT FROM reg_c100 c100 INNER JOIN reg_c100xml xml ON c100.CHV_NFE=xml.CHV_NFE where c100.COD_SIT='00'\";\n try {\n $stm = $this->instanciaConexaoPdoAtiva->query($sql);\n $dados = $stm->fetchAll(PDO::FETCH_OBJ);\n return $dados;\n } catch (PDOException $e) {\n echo $e->getMessage();\n echo $sql . \"<br/>\";\n }\n }", "title": "" }, { "docid": "f55e250675f13929d9a5283c7237a9dd", "score": "0.5156153", "text": "public function semestrPrawa(){\n\t\t$index = 0;\n\t\tif (($this->sprawdzPrawa($index)!=\"Prawo do zapisów na kursy\") and ($this->sprawdzPrawa($index)!=\"Zapisany na kursy\")){\n\t\t\t$index++;\n\t\t}\n\t\t$doc = phpQuery::newDocumentHtml($this->HTML);\n\t\t$urlPath = \"https://edukacja.pwr.wroc.pl\" . pq('a[title=\"Wybierz wiersz\"]:eq('.$index.')')->attr('href');\n\t\t$this->semestr = pq('a[title=\"Wybierz wiersz\"]:eq('.$index.')')->parent('td')->nextAll('td')->eq(2)->text();\n\t\tcurl_setopt($this->ch, CURLOPT_URL, $urlPath);\n\t\t$this->setPOST(false);\n\t\t$this->loadPage();\n\t}", "title": "" }, { "docid": "cb2584a363bcd9b4ad5f5f162e0acc72", "score": "0.5152392", "text": "public function getTotalPunteos3(){\n try {\n $query = $this->conn->prepare('SELECT SUM(idOpcionesEvaluacion) FROM resultadoInstructor WHERE numeroPregunta BETWEEN 14 AND 23 AND idEnvio =3 GROUP BY numeroPregunta');\n $query->execute();\n return $query->fetchAll();\n } catch (PDOException $ex) {\n echo \"No se puede mostrar esa informacion\";\n }\n }", "title": "" }, { "docid": "3d93f63b9be0f17859ac78131e050dcc", "score": "0.5144176", "text": "public function getUrl(){\n\t\t\t$this->urlServicios = $this->protocol.\"://\".$this->host.$this->puerto.\"/\".$this->dominio.\"/\"; \n\t\t\t// Cuando es con SubDominio // $this->urlServicios = $this->protocol.\"://\".$this->subdominio.$this->puerto.\"/\";\n\t\t\treturn $this->urlServicios;\n\t\t}", "title": "" }, { "docid": "8cbb7035acb06a09673dea8397a909d4", "score": "0.5138998", "text": "public function visualizzaPagina(){\n $this->impostaPagina();\n $VHome= USingleton::getInstance('VHome');\n $VHome->mostraPagina();\n }", "title": "" }, { "docid": "7d0fa455cf4fe76fa33f6ecc711083ab", "score": "0.5137264", "text": "function cambia_precios($precio){\n $this->precio=$precio;\n }", "title": "" }, { "docid": "c36aa46155b9a1eb59908e6fa3cb5dab", "score": "0.513559", "text": "function get_reporte_partidas_procesos($proy_id,$com_id){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id); //// Datos del Proyecto\n $fase = $this->model_faseetapa->get_id_fase($proyecto[0]['proy_id']); /// Datos de la fase\n $componente = $this->model_componente->get_componente($com_id); //// Datos Componentes\n\n if($proyecto[0]['proy_act']==0){\n $req=$this->operacion_requerimiento_procesos($proy_id,$com_id);\n $part=$this->consolidado_partidas_componente($com_id);\n }\n else{\n if($fase[0]['pfec_ejecucion']==1){\n $req=$this->actividad_requerimiento_procesos($proy_id,$com_id); \n $part=$this->consolidado_partidas_act_componente($com_id);\n }\n else{\n $req=$this->delegado_requerimiento_procesos($proy_id,$com_id);\n $part=$this->consolidado_partidas_delegado($com_id);\n }\n }\n\n $html = '\n <html>\n <head>' . $this->estilo_vertical() . '\n <style>\n @page { margin: 130px 20px; }\n #header { position: fixed; left: 0px; top: -110px; right: 0px; height: 20px; background-color: #fff; text-align: center; }\n #footer { position: fixed; left: 0px; bottom: -125px; right: 0px; height: 110px;}\n #footer .page:after { content: counter(page, numeric); }\n </style>\n <body>\n <div id=\"header\">\n <div class=\"verde\"></div>\n <div class=\"blanco\"></div>\n <table width=\"100%\">\n <tr>\n <td width=20%; text-align:center;\"\">\n <center><img src=\"'.base_url().'assets/ifinal/cns_logo.JPG\" alt=\"\" width=\"65px\"><</center>\n </td>\n <td width=60%; class=\"titulo_pdf\">\n <FONT FACE=\"courier new\" size=\"1\"><b>ENTIDAD : </b>'.$this->session->userdata('entidad').'<br>\n <b>PLAN OPERATIVO ANUAL POA : </b> ' . $this->gestion . '<br>\n <b>REPORTE : </b> REQUERIMIENTOS POR SUB ACTIVIDAD<br>\n <b>ACTIVIDAD : </b>'.$proyecto[0]['aper_programa'].''.$proyecto[0]['aper_proyecto'].''.$proyecto[0]['aper_actividad'].' - '.$proyecto[0]['proy_nombre'].'<br>\n <b>SUB ACTIVIDAD : </b>'.$componente[0]['serv_cod'].' - '.$componente[0]['com_componente'].'<font><br>\n </td>\n <td width=20%; text-align:center;\"\">\n FECH. IMP. : '.date('d/m/Y').'<br>\n RESP. : '.$this->session->userdata('funcionario').'\n </td>\n </tr>\n </table><hr>\n </div>\n <div id=\"footer\">\n <hr>\n <table>\n <tr>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>JEFATURA DE UNIDAD O AREA / REP. DE AREA REGIONALES</b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>JEFATURAS DE DEPARTAMENTOS / SERV. GENERALES REGIONAL </b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n <td width=33%;>\n <table border=1>\n <tr>\n <td><b>GERENCIA GENERAL / GERENCIA DE AREA </b></td>\n </tr>\n <tr>\n <td align=center><br><br><br><b>FIRMA</b></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td><p class=\"izq\">'.$this->session->userdata('sistema_pie').'</p></td>\n <td></td>\n <td align=right><p class=\"page\">Pagina </p></td>\n </tr>\n </table>\n </div>\n <div id=\"content\">\n <p>\n <div style=\"page-break-after;\">\n <br>'.$req.'<br>\n '.$part.'\n </div>\n </p>\n </div>\n </body>\n </html>';\n return $html;\n }", "title": "" }, { "docid": "86d419fbb29e47ff092e12c34e333ef6", "score": "0.513277", "text": "public function get_Pendientes_X_Productos($tipoElemento,$uen = '', $tipoSolicitud = 'Nuevo', $consultaProducto = '1', $plaza = '', $regional = '', $anio = '', $tipoCanal = '') {\n $pendientes = Yii::app()->db->createCommand(\"SP_Total_Pendientes '5','$tipoElemento','$uen','$tipoSolicitud','$consultaProducto','$plaza','$regional','$anio','$tipoCanal'\")->queryAll();\n return $pendientes;\n }", "title": "" }, { "docid": "a31404e817fe59682fe238b3e2c98b87", "score": "0.5132621", "text": "public function queryparameter(Request $request){\n //ANNO_REF indica l'anno di riferimento \n\n $app = $request->json();\n $parameters = $request->json()->all();\n $parameters['includes'] = 'insegnamento,user,validazioni,p2naturarapporto'; \n //distinguere i parametri di ricerca\n //per precontrattuale\n //per contrUgov \n \n //parametri di ricerca per precontrattuale\n $keytoremove = null;\n $collection = collect($parameters['rules']); \n \n $parameters['rules'] = $collection->filter(function ($value, $key) use (&$keytoremove){\n return array_key_exists('type',$value) ? $value['type'] != 'selectrelation' : true; \n })->all();\n\n //aggiungiamo un filtro di default sull'anno\n $ruleanno = $collection->first(function ($value, $key) {\n return $value['field'] == 'insegnamento.aa';\n });\n\n //SE NON C'E' AGGIUNGERE FILTRO ANNO CORRENTE SEMPRE \n if ($ruleanno==null){\n array_push($parameters['rules'],[\n \"operator\" => \"=\",\n \"field\" => \"insegnamento.aa\", \n \"value\" => (now()->month <= 10) ? now()->year-1 : now()->year //anno accademico\n ]);\n }\n\n //ricerca di tutte le precontrattuali \n $findparam = new \\App\\FindParameter($parameters);\n $findparam->limit= 3000;\n $findparam->page = 0;\n $queryBuilder = new QueryBuilder(new Precontrattuale, $request, $findparam); \n $precontrs = $queryBuilder->build()->noPagination(); \n \n $parametersUgov['rules'] = $collection->filter(function ($value, $key) use (&$keytoremove){\n return array_key_exists('type',$value) ? $value['type'] == 'selectrelation' : false; \n })->all();\n \n //creazione parametri di ricerca su ContrUGOV \n //determinazione dei coper_id interessati\n $coper_ids = $precontrs ? $precontrs->pluck('insegnamento.coper_id')->toArray() : [];\n array_push($parametersUgov['rules'],[\n \"operator\" => \"In\",\n \"field\" => \"ID_SIADI\", \n \"value\" => $coper_ids\n ]); \n\n $parametersUgov['includes'] = 'compensi,compensi.ordinativi'; \n $parametersUgov['limit'] = $parameters['limit'];\n if (isset($parameters['page'])) {\n $parametersUgov['page'] = $parameters['page'];\n }else{\n $parametersUgov['page'] = null;\n }\n \n $parametersUgov['order_by'] = 'id_dg,desc';\n \n $findparam =new \\App\\FindParameter($parametersUgov); \n return compact('findparam', 'precontrs'); //$findparam;\n }", "title": "" }, { "docid": "f4a8056400bd554493fdc71c62b6a8c4", "score": "0.51293916", "text": "function paragrapher($letexte, $forcer=true) {\n\tglobal $class_spip;\n\n\t$letexte = trim($letexte);\n\tif (!strlen($letexte))\n\t\treturn '';\n\n\tif ($forcer OR (\n\tstrstr($letexte,'<') AND preg_match(',<p\\b,iS',$letexte)\n\t)) {\n\n\t\t// Ajouter un espace aux <p> et un \"STOP P\"\n\t\t// transformer aussi les </p> existants en <p>, nettoyes ensuite\n\t\t$letexte = preg_replace(',</?p\\b\\s?(.*?)>,iS', '<STOP P><p \\1>',\n\t\t\t'<p>'.$letexte.'<STOP P>');\n\n\t\t// Fermer les paragraphes (y compris sur \"STOP P\")\n\t\t$letexte = preg_replace(',(<p\\s.*)(</?(STOP P|'._BALISES_BLOCS.')[>[:space:]]),UimsS',\n\t\t\t\"\\n\\\\1</p>\\n\\\\2\", $letexte);\n\n\t\t// Supprimer les marqueurs \"STOP P\"\n\t\t$letexte = str_replace('<STOP P>', '', $letexte);\n\n\t\t// Reduire les blancs dans les <p>\n\t\t$u = @$GLOBALS['meta']['pcre_u'];\n\t\t$letexte = preg_replace(',(<p\\b.*>)\\s*,UiS'.$u, '\\1',$letexte);\n\t\t$letexte = preg_replace(',\\s*(</p\\b.*>),UiS'.$u, '\\1',$letexte);\n\n\t\t// Supprimer les <p xx></p> vides\n\t\t$letexte = preg_replace(',<p\\b[^<>]*></p>\\s*,iS'.$u, '',\n\t\t\t$letexte);\n\n\t\t// Renommer les paragraphes normaux\n\t\t$letexte = str_replace('<p >', \"<p$class_spip>\",\n\t\t\t$letexte);\n\n\t}\n\n\treturn $letexte;\n}", "title": "" }, { "docid": "f18e18e77dfca188f375e9a0c7f1f9c8", "score": "0.51283056", "text": "function dominio()\r\n{\r\n\t$dominio = array();\r\n\t$dominio [0] = \"com\";\r\n\t$dominio [1] = \"mx\";\r\n\t$dominio [2] = \"info\";\r\n\t$dominio [3] = \"net\";\r\n\t$dominio [4] = \"edu\";\r\n\t$dominio [5] = \"gob\";\r\n\t$dominio [6] = \"org\";\r\n\t$dominio [7] = \"es\";\r\n\t$dominio [8] = \"eu\";\r\n\t$dominio [9] = \"xxx\";\r\n\t$dominio [10] = \"com.mx\";\r\n\r\n\treturn $dominio;\r\n}", "title": "" }, { "docid": "ebf4d686030ddd5b2b24f187c11882ec", "score": "0.512302", "text": "public function listaSubAreas($pauta,$id_area,$nacional,$ano,$periodo){\n\n /*$sql=\"SELECT distinct epn.id_plantilla,epn.id_area,eps.id_subarea,eps.nombre \nFROM evados.eva_plantilla_subarea as eps \nINNER JOIN evados.eva_plantilla_nacional epn ON epn.id_area = $id_area \nAND eps.id_subarea=epn.id_subarea \nWHERE epn.id_plantilla = $pauta and id_nacional=$nacional and eps.nombre is not null; \";*/\n$sql=\"SELECT distinct eib.id_plantilla,eib.id_area,eps.id_subarea,eps.nombre \nFROM evados.eva_plantilla_subarea as eps \ninner join evados.eva_item_bloque eib on eib.id_subarea = eps.id_subarea\nwhere eib.id_plantilla = $pauta and eib.id_area = $id_area and eps.id_nacional = $nacional\nand eps.nombre is not null order by eib.id_area,eps.id_subarea\";\n\n\n$result = pg_Exec($this->Conec->conectar(),$sql) or die (\"fallo:\".$sql);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d5054b925f479a5c81eb5691955835db", "score": "0.51196504", "text": "public function getDadosValoresPatronais() {\n\n /**\n * Monta SQL dos Valores Patronais\n */\n $sValoresPatronais = \" select distinct \";\n $sValoresPatronais .= \" r33_codtab, \";\n $sValoresPatronais .= \" r33_nome, \";\n $sValoresPatronais .= \" r33_ppatro \";\n $sValoresPatronais .= \" from inssirf \";\n $sValoresPatronais .= \" where r33_anousu = {$this->iAno} \";\n $sValoresPatronais .= \" and r33_mesusu = {$this->iMes} \";\n $sValoresPatronais .= \" and r33_codtab > 2 \";\n $sValoresPatronais .= \" and r33_instit = {$this->iInstituicao} \";\n\n $rsValoresPatronais = db_query($sValoresPatronais);\n $iRowsValoresPatronais = pg_num_rows($rsValoresPatronais);\n\n\n if($rsValoresPatronais && $iRowsValoresPatronais > 0){\n\n /**\n * Valores padrão para base dos valores patronais\n */\n $oValoresPatronais = new stdClass();\n $oValoresPatronais->aBasePrevidencia1 = array(\"sNome\" => \"BASE PREV.1\", \"nValor\" => 0);\n $oValoresPatronais->aBasePrevidencia2 = array(\"sNome\" => \"BASE PREV.2\", \"nValor\" => 0);\n $oValoresPatronais->aBasePrevidencia3 = array(\"sNome\" => \"BASE PREV.3\", \"nValor\" => 0);\n $oValoresPatronais->aBasePrevidencia4 = array(\"sNome\" => \"BASE PREV.4\", \"nValor\" => 0);\n\n $aValoresPatronais = db_utils::getCollectionByRecord($rsValoresPatronais);\n\n foreach ($aValoresPatronais as $oRowValPatronais){\n\n switch ($oRowValPatronais->r33_codtab) {\n case 3:\n\n $oValoresPatronais->aBasePrevidencia1[\"sNome\"] = substr($oRowValPatronais->r33_nome,0,15);\n $oValoresPatronais->aBasePrevidencia1[\"nValor\"] = $oRowValPatronais->r33_ppatro;\n break;\n case 4:\n\n $oValoresPatronais->aBasePrevidencia2[\"sNome\"] = substr($oRowValPatronais->r33_nome,0,15);\n $oValoresPatronais->aBasePrevidencia2[\"nValor\"] = $oRowValPatronais->r33_ppatro;\n break;\n case 5:\n\n $oValoresPatronais->aBasePrevidencia3[\"sNome\"] = substr($oRowValPatronais->r33_nome,0,15);\n $oValoresPatronais->aBasePrevidencia3[\"nValor\"] = $oRowValPatronais->r33_ppatro;\n break;\n case 6:\n\n $oValoresPatronais->aBasePrevidencia4[\"sNome\"] = substr($oRowValPatronais->r33_nome,0,15);\n $oValoresPatronais->aBasePrevidencia4[\"nValor\"] = $oRowValPatronais->r33_ppatro;\n break;\n }\n }\n }\n\n return $oValoresPatronais;\n }", "title": "" }, { "docid": "2b14c624fcfea751790c3de9651e6130", "score": "0.5113438", "text": "public function solicitudesPorPeriodoAjaxAction()\n {\n $this->view->disable();\n\n $id = $this->request->get('id');\n\n $retorno = array();\n $datos = array();\n\n $solicitudes = Solicitudturno::find(array('solicitudTurnos_fechasTurnos = :fechasTurnos_id:',\n 'bind' => array('fechasTurnos_id' => $id),\n 'order' => 'solicitudTurno_id ASC'));\n foreach ($solicitudes as $unaSolicitud) {\n $item = array();\n\n $item[] = '<h4><ins>' . $unaSolicitud->getSolicitudturnoLegajo() . '</ins></h4> ' . $unaSolicitud->getSolicitudturnoNomape();//0 Afiliado\n\n if ($unaSolicitud->getSolicitudturnoEmail() == NULL || trim($unaSolicitud->getSolicitudturnoEmail()) == \"\")\n $email = '';\n else\n $email = \"\" . $unaSolicitud->getSolicitudturnoEmail();\n\n $item[] = \"<i class='fa fa-envelope-o'></i> \" . $email . \" <br/> <i class='fa fa-phone-square'></i> \" . $unaSolicitud->getSolicitudturnoNumtelefono(); //1 Email/Telefono\n\n\n $item[] = $unaSolicitud->getSolicitudturnoNickusuario();// 2 Usuario\n $item[] = $unaSolicitud->getSolicitudturnoEstado();// 3 Estado turno\n $item[] = $unaSolicitud->getSolicitudturnoObservaciones(); // 4 Observaciones\n $item[] = $unaSolicitud->getSolicitudturnoCodigo();//5 Codigo\n\n switch ($unaSolicitud->getSolicitudturnoEstadoasistenciaid()) {\n case 1:\n $estadoAsistencia = 'EN ESPERA';\n break;\n case 2:\n $estadoAsistencia = \"CONFIRMADO\";\n break;\n case 3:\n $estadoAsistencia = \"PLAZO VENCIDO\";\n break;\n case 4:\n $estadoAsistencia = \"CANCELADO\";\n break;\n default :\n $estadoAsistencia = ' ';\n break;\n }\n\n $item[] = $estadoAsistencia; // 6 Estado Asistencia\n $item[] = Tipoturno::buscarTipoPorId($unaSolicitud->getSolicitudturnoTipoturnoid());// 7 tipo solicitud\n\n $datos[] = $item;\n }\n\n $retorno['data'] = $datos;\n echo json_encode($retorno);\n return;\n }", "title": "" }, { "docid": "3eda5f0659a5c624479649bb6d7cfa03", "score": "0.5109157", "text": "function intitule($date){\n\t//print $GLOBALS['hebdomada'];\n\t//$date=$_GET['date'];\n\t$date_ts=date2dateTS($date);\n\t$die=array(\"Dominica\",\"Feria II\",\"Feria III\",\"Feria IV\",\"Feria V\",\"Feria VI\",\"Sabbato\");\n\t$lang=\"fr\";\n\t\n\t$xml=$_SERVER['xml'];\n\t$req=\"//ordo[@id='RE']\";\n\t$r=$xml->xpath($req);\n\t//print_r($r[0]);\n\t$hebdomada=$r[0]->hebdomada->la;\n\t\n\t$int=\"\n\t<tr>\n\t<td class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".$hebdomada.\"</td>\n\t<td class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".ucfirst(get_traduction($hebdomada,$lang)).\"</td>\n\t</tr>\n\t\";\n\t$int.=\"\n\t<tr>\n\t<td class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center;\\\">\".$die[date('w',$date_ts)].\"</td>\n\t<td class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center;\\\">\".ucfirst(get_traduction($die[date('w',$date_ts)],$lang)).\"</td>\n\t</tr>\n\t\";\n\t$intitule_la=$r[0]->intitule->la;\n\tif($lang==\"fr\") $intitule_ver=$r[0]->intitule->fr;\n\tif($lang==\"en\") $intitule_ver=$r[0]->intitule->en;\n\tif($lang==\"ar\") $intitule_ver=$r[0]->intitule->ar;\n\tif($intitule_la!=\"\") {\n\t\t$int.=\"\n\t\t<tr>\n\t\t<td class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".$intitule_la.\"</td>\n\t\t<td class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 900;text-align:center;\\\">\".$intitule_ver.\"</td>\n\t\t</tr>\n\t\t\";\n\t\t$rang=$r[0]->rang->la;\n\t\t$rang_ver=get_traduction($rang, $lang);\n\t\tif($rang) $int.=\"\n\t\t<tr>\n\t\t<td class=\\\"gauche\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center; font-style:italic\\\">\".$rang.\"</td>\n\t\t<td class=\\\"droite\\\" style=\\\"font-size: 1.1em;font-weight: 300;text-align:center; font-style:italic\\\">\".$rang_ver.\"</td>\n\t\t</tr>\";\n\t}\n\treturn $int;\n}", "title": "" }, { "docid": "48c6ff2359602213de5e6cf64061ba6a", "score": "0.5107973", "text": "function sommaire_d_une_page(&$texte, &$nbh3, $page=0, $num_pages=0) {\r\n\tstatic $index = 0;\r\n\tif($page===false) { $index = 0; return; }\r\n\t// trouver quel <hx> est utilise\r\n\tinclude_spip('outils/sommaire');\r\n\t$root = $niveau = $match = sommaire_niveau_intertitres();\r\n\t@define('_sommaire_NB_CARACTERES', 30);\r\n\t@define('_sommaire_PROFONDEUR', 1);\r\n\tif(_sommaire_PROFONDEUR>1)\r\n\t\t$match = $match .'-' . ($match+_sommaire_PROFONDEUR-1);\r\n\t// traitement des intertitres <hx>\r\n\tpreg_match_all(\",(<h([$match])[^>]*)>(.*)</h\\\\2>,Umsi\", $texte, $regs);\r\n\t$nbh3 += count($regs[0]);\r\n\t$pos = 0; $sommaire = '';\r\n\t// calcul de la page\r\n\t$self = sommaire_self();\r\n\t$fct_lien_retour = function_exists('sommaire_lien_retour')?'sommaire_lien_retour':'sommaire_lien_retour_dist';\r\n\t$fct_id_ancre = defined('_sommaire_JOLIES_ANCRES')?'sommaire_id_ancre_ex'\r\n\t\t:(function_exists('sommaire_id_ancre')?'sommaire_id_ancre':'sommaire_id_ancre_dist');\r\n\t$nb = count($regs[0]);\r\n\tfor($i=0;$i<$nb;$i++,$index++){\r\n\t\t$w = &$regs[0][$i]; $h = &$regs[1][$i]; $n = &$regs[2][$i];\r\n\t\tif (($pos2 = strpos($texte, $w, $pos))!==false) {\r\n\t\t\t$t = $regs[3][$i];\r\n\t\t\t// calcul de l'ancre, $t peut etre modifie\r\n\t\t\t$ancre = $fct_id_ancre($index, $t, $n);\r\n\t\t\t$id = \" id=\\\"$ancre\\\">\";\r\n\t\t\t//$titre = preg_replace(',^<p[^>]*>(.*)</p>$,Umsi', '\\\\1', trim($t));\r\n\t\t\t// ancre 'retour au sommaire', sauf :\r\n\t\t\t// si on imprime, ou si les blocs depliables utilisent h{$n}...\r\n\t\t\t$titre = (defined('_CS_PRINT') OR (strpos($w, 'blocs_titre')!==false))\r\n\t\t\t\t?$t//$titre\r\n\t\t\t\t:$fct_lien_retour($self, $t);//$titre);\r\n\t\t\t$texte = substr($texte, 0, $pos2) . $h . $id . $titre\r\n\t\t\t\t. substr($texte, $pos2 + strlen($h)+1 + strlen($regs[3][$i]));\r\n\t\t\t$pos = $pos2 + strlen($id) + strlen($w);\r\n\t\t\t$brut = sommaire_nettoyer_titre($t);\r\n\t\t\t// pas trop long quand meme...\r\n\t\t\t$lien = cs_propre(couper($brut, _sommaire_NB_CARACTERES));\r\n\t\t\t// eviter une ponctuation a la fin, surtout si la page est precisee\r\n\t\t\t$lien = preg_replace('/(&nbsp;|\\s)*'.($page?'[!?,;.:]+$/':'[,;.:]+$/'), '', $lien);\r\n\t\t\t$titre = attribut_html(couper($brut, 100));\r\n\t\t\t// si la decoupe en page est active...\r\n\t\t\t$artpage = (function_exists('decoupe_url') && (strlen(_request('artpage')) || $page>1) )\r\n\t\t\t\t?decoupe_url($self, $page, $num_pages):$self;\r\n\t\t\t$artpage = \"<a title=\\\"$titre\\\" href=\\\"{$artpage}#$ancre\\\">$lien</a>\";\r\n\t\t\t$artpage = \"\\n<li>\" . ( function_exists('sommaire_id_page')\r\n\t\t\t\t?sommaire_id_page($artpage, $page):sommaire_id_page_dist($artpage, $page) );\r\n\t\t\tif($niveau==$n) $sommaire .= ($sommaire?'</li>':'') . $artpage;\r\n\t\t\telseif($niveau<$n) $sommaire .= \"\\n<ul>\".str_repeat('<li><ul>',$n-$niveau-1) . $artpage;\r\n\t\t\telse $sommaire .= '</li>'.str_repeat('</ul></li>',$niveau-$n) . $artpage;\r\n\t\t\t$niveau = $n;\r\n\t\t}\r\n\t}\r\n\treturn $sommaire?$sommaire.'</li>'.($niveau!=$root?'</ul>':''):'';\r\n}", "title": "" }, { "docid": "a2d687aa9f6cc960ab34e0cda8aff7e3", "score": "0.51065135", "text": "function CV_P1($data){\n $view = \"<p>Entre <b>\".$data['mi_empresa_nombre'].\"</b>, Sociedad Comercial con domicilio en Apartado Antioquia, representada legalmente por la señor(a) <b>\".$data['mi_empresa_rt_nombre'].\"</b>, mayor de edad, identificado(a) con la cedula de ciudadanía N° <b>\".$data['mi_empresa_rt_cedula'].\"</b> expedida en <b>\".$data['mi_empresa_rt_cedula_ref'].\"</b>, y que en el presente acto se denominara LA EMPRESA, y el señor(a)\";\n\n if ($data['tipo_proveedor'] == 'Natural') {\n\n $view .= \" <b>\".$data['contratista_nombre'].\"</b>, portador de la cedula de ciudadanía N° <b>\".$data['contratista_cedula'].\"</b>, expedida en \".$data['contratista_cedula_ref'].\", y quien para efectos legales del presente documento se denominara EL CONTRATISTA, se ha celebrado el presente contrato de VINCULACIÓN Y ADMINISTRACIÓN DELEGADA DE UN VEHÍCULO AUTOMOTOR en ejercicio de nuestra libertad contractual, el cual se regirá por las siguientes CLAUSULAS: </p>\n \";\n } else {\n $view .= \"\n<b> \".$data['contratista_nombre'].\"</b>, mayor de edad y vecino de <b>\".$data['mi_empresa_domicilio'].\"</b>, portador de la cedula de ciudadanía N° <b>\".$data['contratista_cedula'].\"</b>, expedida en <b>\".$data['contratista_cedula_ref'].\"</b>, y quien actua en representacion legal de <b>\".$data['contratista_razonsocial'].\"</b> Con Nit <b>\".$data['contratista_nit'].\"</b> y que para todos los efectos legales del presente documento se denominara EL CONTRATISTA, se ha celebrado el presente contrato de VINCULACION Y ADMINISTRACION DELEGADA DE UN VEHÍCULO AUTOMOTOR en ejercicio de nuestra libertad contractual, el cual se regirá por las siguientes CLAUSULAS: </p>\n\n \";\n }\n\n $view .=\"\n<p><b>PRIMERA. OBJETO: EL CONTRATISTA</b>, en calidad de \".$data['contratista_poseedor_or_prop'].\" se obliga a vincular un equipo automotor a <b>LA EMPRESA</b>, con el ánimo de que este último lo incorpore a su parque automotor y lo administre delegadamente. <b>EL CONTRATISTA</b> prestara los servicios de transporte de pasajeros que autorice <b>LA EMPRESA</b>, en los diferentes contratos de Servicio Público de Transporte Terrestre Automotor Especial y con los cuales explota la actividad transportadora de pasajeros en un radio de acción Nacional. Para los efectos referidos, las características del vehículo que se vincula y que será administrado por <b>LA EMPRESA</b> son las siguientes: </p>\n \";\n return $view;\n }", "title": "" }, { "docid": "e78bbf42a9b9194dd048961215cdd79d", "score": "0.51035243", "text": "function xtestPreliquidacionNormalPorHora() { \n\t\t\n\t\t$this->__login();\n\t\t\n\t\t/**\n\t\t* Preparo la data.\n\t\t*/\n\t\t$data['Formulario']['accion'] = \"buscar\";\n\t\t$data['Extras']['Liquidacion-periodo'] = \"2008092Q\";\n\t\t$data['Condicion']['Relacion-id'] = \"2\";\n\t\t$data['Extras']['Liquidacion-tipo'] = \"normal\";\n\t\t\n\t\t$result = $this->testAction('/liquidaciones/preliquidar', \n\t\t\t\t\t\t\t\tarray('connection'\t=> 'test', \n\t\t\t\t\t\t\t\t\t\t'method' \t=> 'post',\n\t\t \t\t\t\t\t\t\t\t'fixturize' => true, \n\t\t \t\t\t\t\t\t\t\t'return'\t=> 'vars',\n\t\t \t\t\t\t\t\t\t\t'data' \t\t=> $data));\n\t\t\n\t\td($result);\n\t\t$this->assertEqual(1244, $result['registros'][0]['Liquidacion']['total_pesos']);\n\t\t$this->assertEqual(1, count($result['registros'][0]['LiquidacionesError']));\n\t\t$this->assertEqual(23, $this->cantidadDetalles);\n\t}", "title": "" }, { "docid": "cd324311c62678ab2694d04704b3a846", "score": "0.51023954", "text": "function dimension_apoyo_familiar_curso_copia($establecimiento, $profesor)\n{\n try {\n //pregunta numero 30\n $suma_1_p30 = 0;\n $suma_2_p30 = 0;\n $suma_3_p30 = 0;\n $suma_4_p30 = 0;\n $suma_5_p30 = 0;\n\n //pregunta numero 31\n $suma_1_p31 = 0;\n $suma_2_p31 = 0;\n $suma_3_p31 = 0;\n $suma_4_p31 = 0;\n $suma_5_p31 = 0;\n\n //pregunta numero 32\n $suma_1_p32 = 0;\n $suma_2_p32 = 0;\n $suma_3_p32 = 0;\n $suma_4_p32 = 0;\n $suma_5_p32 = 0;\n\n $con = connectDB_demos();\n $query = $con->query(\"SELECT ce_encuesta_resultado.ce_p30 AS p30,\n ce_encuesta_resultado.ce_p31 AS p31,\n ce_encuesta_resultado.ce_p32 AS p32\n FROM ce_encuesta_resultado\n INNER JOIN ce_participantes ON ce_encuesta_resultado.ce_participantes_token_fk = ce_participantes.ce_participanes_token\n WHERE ce_participantes.ce_establecimiento_id_ce_establecimiento = '$establecimiento' AND ce_participantes.ce_docente_id_ce_docente = '$profesor'\");\n $con = null;\n $cantidad = $query->RowCount();\n foreach ($query as $fila) {\n $p30 = $fila[\"p30\"];\n if ($p30 == 1) {\n $suma_1_p30++;\n } elseif ($p30 == 2) {\n $suma_2_p30++;\n } elseif ($p30 == 3) {\n $suma_3_p30++;\n } elseif ($p30 == 4) {\n $suma_4_p30++;\n } elseif ($p30 == 5) {\n $suma_5_p30++;\n }\n\n $p31 = $fila[\"p31\"];\n if ($p31 == 1) {\n $suma_1_p31++;\n } elseif ($p31 == 2) {\n $suma_2_p31++;\n } elseif ($p31 == 3) {\n $suma_3_p31++;\n } elseif ($p31 == 4) {\n $suma_4_p31++;\n } elseif ($p31 == 5) {\n $suma_5_p31++;\n }\n\n $p32 = $fila[\"p32\"];\n if ($p32 == 1) {\n $suma_1_p32++;\n } elseif ($p32 == 2) {\n $suma_2_p32++;\n } elseif ($p32 == 3) {\n $suma_3_p32++;\n } elseif ($p32 == 4) {\n $suma_4_p32++;\n } elseif ($p32 == 5) {\n $suma_5_p32++;\n }\n\n }\n\n //pregunta numero 30\n $suma_1_30 = ($suma_1_p30 * 100) / $cantidad;\n $suma_2_30 = ($suma_2_p30 * 100) / $cantidad;\n $suma_3_30 = ($suma_3_p30 * 100) / $cantidad;\n $suma_4_30 = ($suma_4_p30 * 100) / $cantidad;\n $suma_5_30 = ($suma_5_p30 * 100) / $cantidad;\n\n //pregunta numero 31\n $suma_1_31 = ($suma_1_p31 * 100) / $cantidad;\n $suma_2_31 = ($suma_2_p31 * 100) / $cantidad;\n $suma_3_31 = ($suma_3_p31 * 100) / $cantidad;\n $suma_4_31 = ($suma_4_p31 * 100) / $cantidad;\n $suma_5_31 = ($suma_5_p31 * 100) / $cantidad;\n\n //pregunta numero 32\n $suma_1_32 = ($suma_1_p32 * 100) / $cantidad;\n $suma_2_32 = ($suma_2_p32 * 100) / $cantidad;\n $suma_3_32 = ($suma_3_p32 * 100) / $cantidad;\n $suma_4_32 = ($suma_4_p32 * 100) / $cantidad;\n $suma_5_32 = ($suma_5_p32 * 100) / $cantidad;\n\n $pregunta = preguntas_compromiso_escolar();\n\n $dato = '<tr><td style=\"border: 1px solid #fc455c;\">' . $pregunta[\"p030\"] . '</td>'\n\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_1_30, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_2_30, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_3_30, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_4_30, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_5_30, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '</tr>';\n $dato .= '<tr><td style=\"border: 1px solid #fc455c;\">' . $pregunta[\"p031\"] . '</td>'\n\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_1_31, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_2_31, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_3_31, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_4_31, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_5_31, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '</tr>';\n $dato .= '<tr><td style=\"border: 1px solid #fc455c;\">' . $pregunta[\"p032\"] . '</td>'\n\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_1_32, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_2_32, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_3_32, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_4_32, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '<td style=\"border: 1px solid #fc455c;\">' . round($suma_5_32, 1, PHP_ROUND_HALF_UP) . '</td>'\n . '</tr>';\n\n return $dato;\n\n } catch (Exception $e) {\n echo 'Excepción Capturada: ' . $e->getMessage();\n }\n\n\n}", "title": "" }, { "docid": "4189f26b12b78e9b95d42edc3edf1b70", "score": "0.50917244", "text": "public function getPregunta1(){\n try {\n $query = $this->conn->prepare('SELECT c.nombreCompleto, a.numeroPregunta, a.idOpcionesEvaluacion, a.idEnvio, b.descripcion FROM resultadoInstructor a\n INNER JOIN opciones_evaluacion b ON a.idOpcionesEvaluacion = b.idOpcionesEvaluacion\n INNER JOIN instructor c ON a.idInstructor = c.idInstructor WHERE a.numeroPregunta BETWEEN 14 AND 23\n ');\n $query->execute();\n return $query->fetchAll();\n } catch (PDOException $ex) {\n echo \"No se puede mostrar esa informacion\";\n }\n }", "title": "" }, { "docid": "eab11d0e33c9a9a3e8a18115cb387ee3", "score": "0.5090348", "text": "function es_ordenplandepago() {\n $query_ordeneplandepago = \"select op.idordenpagoplandepago\n\t\tfrom ordenpagoplandepago op\n\t\twhere op.codigoestado like '1%'\n\t\tand op.numerorodenpagoplandepagosap = '$this->numeroordenpago'\";\n //and dop.codigoconcepto = '151'\n //echo \"sdas $query_ordeneplandepago<br>\";\n $ordeneplandepago = mysql_query($query_ordeneplandepago, $this->sala) or die(\"$query_ordeneplandepago<br>\" . mysql_error());\n $totalRows_ordeneplandepago = mysql_num_rows($ordeneplandepago);\n\n ///// E.G.R 17-11-2006\n /*\n $query_ordeneplandepago1 = \"SELECT op.idordenpagoplandepago\n FROM ordenpagoplandepago op,ordenpago o,pazysalvoestudiante p,detallepazysalvoestudiante d,estudiantegeneral eg,estudiante e\n WHERE op.codigoestado LIKE '1%'\n AND op.numerorodencoutaplandepagosap = '$this->numeroordenpago'\n AND op.numerorodencoutaplandepagosap = o.numeroordenpago\n AND o.codigoestudiante = e.codigoestudiante\n AND eg.idestudiantegeneral = e.idestudiantegeneral\n AND p.idestudiantegeneral = eg.idestudiantegeneral\n AND d.idpazysalvoestudiante = p.idpazysalvoestudiante\n AND d.codigoestadopazysalvoestudiante LIKE '1%'\";\n //and dop.codigoconcepto = '151'\n //echo \"sdas $query_ordeneplandepago<br>\";\n $ordeneplandepago1 = mysql_query($query_ordeneplandepago1,$this->sala) or die(\"$query_ordeneplandepago1<br>\".mysql_error());\n $totalRows_ordeneplandepago1 = mysql_num_rows($ordeneplandepago1); */\n\n ////// fin E.G.R 17-11-2006\n\n if ($totalRows_ordeneplandepago == \"\") {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "6ab44b452a0e63b4a36765fac8ec2a0d", "score": "0.5085301", "text": "public function listarGeometriaProvincias(){\n $result = $this->_query->select(\"DISTINCT g.*\")\n ->from($this->_tabla . \" g\")\n ->join(\"capas_poligonos_informacion p\", \"g.geometria_id = p.poliprovincias_capitem\", \"INNER\")\n ->getAllResult();\n if (!is_null($result)){\n return $result; \n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "7df10912e04072f2150db832d56b4bb1", "score": "0.50845766", "text": "function insertPeriodoProceso($diasperiodo,$idtipop,$diaspago,$fechainicioPeriodo,$extraordinario){\n\tdate_default_timezone_set('America/Mexico_City');\n\t$configuracion = $this->CatalogosModel->configuracionNominas();\n\t$fechainicio = explode('-',$configuracion->fechainicio);\n\t\n\t/*para periodo quincenal se hara por meses\n\t\t\t * porque en este no se puede unir dos meses en un periodo\n\t\t\t * osea q la segunda quincena debe quedar con el resto de dias ya sean mas de 15 o menos de 15\n\t\t\t * en el mes\n\t\t\t */\n\n\t//$eliminaprevios = $this ->CatalogosModel->eliminaNominasdelperiodo($idtipop);\n\n\n\tif($extraordinario == 0 ){\n\t\tif($diasperiodo == 15){\n\t\t\t$fecha = $fechainicio[0].\"-01-01\";\n\t\t\t$numnomia = 1;\n\t\t\t\n\t\t\t//if( $eliminaprevios==1){\n\t\t\tfor ($peri = 1; $peri <= 12; $peri++) {\n\t\t\t\t$menos = 0;\n\t\t\t\t\t$dias1 = 14;//siempre seran 14 dias para tomar la quincena porque ya estara en dia 1 mas 14 son los 15\n\t\t\t\t\t$menos += 1;\t//sumamos siempre un dia porq asi iniciaria el periodo en 1 o 16 y se debe contar\n\t\t\t\t\tif($peri != 1 ){\n\t\t\t\t\t\t$nuevafecha = strtotime ( '+1 day' , strtotime ( $fecha ) ) ;\n\t\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t\t$fecha = $nuevafecha;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* definimos los inicios de bimestre */\n\t\t\t\t\t$iniciobimentre = 0;\n\t\t\t\t\tif($peri == 1 || $peri == 3 || $peri == 5 || $peri == 7 || $peri == 9 || $peri == 11){\n\t\t\t\t\t\t$iniciobimentre = 1;\n\t\t\t\t\t} \n\t\t\t\t\t/* definimos los fin de bimestre */\n\t\t\t\t\t$finbimentre = 0;\n\t\t\t\t\tif($peri == 2 || $peri == 4 || $peri == 6 || $peri == 8 || $peri == 10 || $peri == 12){\n\t\t\t\t\t\t$finbimentre = 1;\n\t\t\t\t\t} \n\t\t\t\t\t/* definimos los inicio ejercicio */\n\t\t\t\t\t$inicioejercicio = 0;\n\t\t\t\t\tif($peri == 1){\n\t\t\t\t\t\t$inicioejercicio = 1;\n\t\t\t\t\t}\n\t\t\t\t\t/* definimos los fin ejercicio */\n\t\t\t\t\t$finejercicio = 0;\n\t\t\t\t\tif($peri == 12){\n\t\t\t\t\t\t$finejercicio = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t//$array[$peri][] = $fecha;\n\t\t\t\t\t$nuevafecha = strtotime ( '+'.$dias1.' day' , strtotime ( $fecha ) ) ;\n\t\t\t\t\t$menos += $dias1;\n\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t$fecha2 = $nuevafecha;\n\t\t\t\t\t//$array[$peri][] = $fecha;\n\t\t\t\t\t\n\t\t\t\t\t//$sql = $this->CatalogosModel->insertPeriodo($idtipop, $numnomia, $fecha, $fecha2, $fechainicio[0], $peri, $diaspago, 1, $iniciobimentre, $inicioejercicio, 0, 0, 0);\n\t\t\t\t\t$sql .=\"INSERT INTO nomi_nominasperiodo ( idtipop, numnomina, fechainicio, fechafin, ejercicio, mes, diaspago, iniciomes, iniciobimentreimss, inicioejercicio, finmes, finbimentreimss, finejercicio)\n\t\t\t\t\tVALUES\n\t\t\t\t\t( $idtipop, $numnomia, '$fecha', '$fecha2', $fechainicio[0], $peri, $diaspago, 1, $iniciobimentre,$inicioejercicio, 0, 0, 0);\n\t\t\t\t\t\";\n\t\t\t\t\t\n\t\t\t// \t\t\t\n\t\t\t\t\t$nuevafecha = strtotime ( '+1 day' , strtotime ( $fecha2 ) ) ;\n\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t$menos += 1;\n\t\t\t\t\t$fecha3 = $nuevafecha;\n\t\t\t\t\t//$array[$peri][] = $fecha;\n\t\t\t\t\t\n\t\t\t\t\t//sacamos todos los dias del mes para saber de cuanto sera la segunda quincena\n\t\t\t\t\t$numero = cal_days_in_month(CAL_GREGORIAN,$peri, $fechainicio[0]) ;\n\t\t\t\t\t//y restamos a esos dias la primera quincena\n\t\t\t\t\t$numero -= $menos ;\n\t\t\t\t\t$nuevafecha = strtotime ( '+'.$numero.' day' , strtotime ( $fecha3 ) ) ;\n\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t$fecha = $nuevafecha;\n\t\t\t\t\t//$array[$peri][] = $fecha;\n\t\t\t\t\t$numnomia++;\n\t\t\t\t\t//$sql = $this->CatalogosModel->insertPeriodo($idtipop, $numnomia, $fecha3, $fecha, $fechainicio[0], $peri, $diaspago, 0, 0, 0, 1, $finbimentre, $finejercicio);\n\t\t\t\t\t$sql .=\"INSERT INTO nomi_nominasperiodo ( idtipop, numnomina, fechainicio, fechafin, ejercicio, mes, diaspago, iniciomes, iniciobimentreimss, inicioejercicio, finmes, finbimentreimss, finejercicio)\n\t\t\t\t\tVALUES\n\t\t\t\t\t( $idtipop, $numnomia, '$fecha3', '$fecha', $fechainicio[0], $peri, $diaspago, 0, 0,0, 1, $finbimentre, $finejercicio);\n\t\t\t\t\t\";\n\t\t\t// \t\t\t\n\t\t\t\t\t$numnomia++;\n\t\t\t\t}\n\n\t\t\t//}\n\n\t\t\t}else{\n\t\t\t/* para los periodos diferentes de 15 dias se debera tomar en cuenta la fecha de inicio \n\t\t\t\t\t * descontando a los 365 dias del ano los dias transcurridos \n\t\t\t\t\t * de ser asi del periodo y estos seran divididos entre el total de dias\n\t\t\t\t\t * del periodo para sacar el numero de nominas que tendra \n\t\t\t\t\t * el ejercicio\n\t\t\t\t\t * SE HARA SOLO PARA SEMANAL POR QUE KERLAB A SI LO UTILIZA QUINCENAL Y SEMANAL\n\t\t\t\t\t */\n\n\t\t\t$array = array();\t\t\n\t\t\t$datetime1 = new DateTime($configuracion->fechainicio);\n\t\t\t$datetime2 = new DateTime($fechainicioPeriodo);\n\t\t\t$interval = $datetime1->diff($datetime2);\n\t\t\t$diasano = 365 - $interval->format('%R%a');\n\t\t\t\t\t//sacamos el total de nominas del ano\n\t\t\t$totalnomina = $diasano/$diasperiodo;\n\t\t\t$totalnominabimestral = 365/$diasperiodo;\n\t\t\t\t\t//dividimos el total de nominas por los dias trabajados \n\t\t\t\t\t//para saber cuantas nominas iran en un mes\n\t\t\t$nominaenunmes = number_format($totalnomina/12,0);\n\t\t\t$nominaenunmesbimestral = number_format($totalnominabimestral/12,0);\n\n\t\t\t\t\t/* para los periodos que no sean quincena el sistema debe evaluar\n\t\t\t\t\t * los periodos dentro del mes a corde a los dias de periodo\n\t\t\t\t\t * y de estos sacar toda la nomina del ejercicio\n\t\t\t\t\t * \n\t\t\t\t\t */\n\t\t\t\t\t$fecha = $fechainicioPeriodo;\n\t\t\t\t\t$iniciobimentre = 0;\n\t\t\t\t\t$fechaorigen = explode('-', $fecha);\n\t\t\t\t\t$fechacomparacion = $fechacomparacionbimestre =1;\n\t\t\t\t\t$nominaenunbimestre = $nominaenunmesbimestral*2;\n\t\t\t\t\tif($fechaorigen[1] == 2 || $fechaorigen[1] == 4 || $fechaorigen[1] == 6 || $fechaorigen[1] == 8 || $fechaorigen[1] == 10 || $fechaorigen[1] == 12 ){\n\t\t\t\t\t\t$fechacomparacionbimestre = $nominaenunbimestre;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//$eliminaprevios = $this ->CatalogosModel->eliminaNominasdelperiodo($idtipop);\n\t\t\t\t\t//if( $eliminaprevios == 1){\n\t\t\t\t\tfor ($peri = 1; $peri <= number_format($totalnomina); $peri++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$inicioejercicio = 0;\n\t\t\t\t\t\tif($peri == 1 ){\n\t\t\t\t\t\t\t$inicioejercicio = 1;\n\t\t\t\t\t\t\t$iniciomes = 1;\n\t\t\t\t\t\t\t$iniciobimentre = 1;\n\t\t\t\t\t\t\t$finmes = 0;\n\t\t\t\t\t\t\t$finejercicio = 0;\n\t\t\t\t\t\t\t$finbimentre = 0;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tif($peri != 1 ){\n\t\t\t\t\t\t\t$nuevafecha = strtotime ( '+1 day' , strtotime ( $fecha ) ) ;\n\t\t\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t\t\t$fecha = $nuevafecha;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$array[$peri][]=$fecha;\n\t\t\t\t\t\t$dias = $diasperiodo - 1;\n\t\t\t\t\t\t$nuevafecha = strtotime ( '+'.$dias.' day' , strtotime ( $fecha ) ) ;\n\t\t\t\t\t\t$nuevafecha = date ( 'Y-m-j' , $nuevafecha );\n\t\t\t\t\t\t$fecha = $nuevafecha;\n\t\t\t\t\t\t$s = explode('-', $nuevafecha);\n\n\t\t\t\t\t\t$array[$peri][] = $fecha;\n\t\t\t\t\t\t$array[$peri]['iniciomes'] = $iniciomes;\n\t\t\t\t\t\t$array[$peri]['finmes'] = $finmes;\n\t\t\t\t\t\t$array[$peri]['iniciobime'] = $iniciobimentre;\n\t\t\t\t\t\t$array[$peri]['finbime'] = $finbimentre;\n\t\t\t\t\t\t$array[$peri]['inicioejericicio'] = $inicioejercicio;\n\t\t\t\t\t\t$array[$peri]['finejercicio'] = $finejercicio;\n\t\t\t\t\t\tif( $fechacomparacion == $nominaenunmes ){\n\t\t\t\t\t\t\t$array[$peri]['finmes'] = 1;\n\t\t\t\t\t\t\t$iniciomes = 1;\n\t\t\t\t\t\t\t$fechacomparacion = 1;\n\t\t\t\t\t\t\t$finmes = 0;\n\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$iniciomes = 0;\n\t\t\t\t\t\t\t$fechacomparacion++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( $fechacomparacionbimestre == $nominaenunbimestre ){\n\t\t\t\t\t\t\t$array[$peri]['finbime'] = 1;\n\t\t\t\t\t\t\t$finbimentre = 0;\n\t\t\t\t\t\t\t$fechacomparacionbimestre = $iniciobimentre = 1;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$iniciobimentre = 0;\n\t\t\t\t\t\t\t$fechacomparacionbimestre++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(number_format($totalnomina) == $peri){\n\t\t\t\t\t\t\t$array[$peri]['finejercicio'] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// $sql = $this->CatalogosModel->insertPeriodo($idtipop, $peri, $array[$peri][0], $array[$peri][1], $fechainicio[0], $s[1], $diaspago, $array[$peri]['iniciomes'], $array[$peri]['iniciobime'], $array[$peri]['inicioejericicio'], $array[$peri]['finmes'], $array[$peri]['finbime'], $array[$peri]['finejercicio'] );\n\t\t\t\t\t\t$sql .=\"INSERT INTO nomi_nominasperiodo ( idtipop, numnomina, fechainicio, fechafin, ejercicio, mes, diaspago, iniciomes, iniciobimentreimss, inicioejercicio, finmes, finbimentreimss, finejercicio)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t( $idtipop, $peri, '\".$array[$peri][0].\"', '\".$array[$peri][1].\"', $fechainicio[0], $s[1], $diaspago, \".$array[$peri]['iniciomes'].\", \".$array[$peri]['iniciobime'].\",\".$array[$peri]['inicioejericicio'].\", \".$array[$peri]['finmes'].\", \".$array[$peri]['finbime'].\", \".$array[$peri]['finejercicio'].\");\n\t\t\t\t\t\t\";\t\n\t\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$envio = $this->CatalogosModel->insertPeriodo($sql);\n\t\t\t}else{\n\n\t\t\t\t$ejercicioext = explode('-', $fechainicioPeriodo);\n\t\t\t\t$sql = \"INSERT INTO nomi_nominasperiodo ( idtipop, numnomina, fechainicio, fechafin, ejercicio, mes, diaspago, iniciomes, iniciobimentreimss, inicioejercicio, finmes, finbimentreimss, finejercicio)\n\t\t\t\tVALUES\n\t\t\t\t( $idtipop, 1, '$fechainicioPeriodo', '\".$ejercicioext[0].'-12-31'.\"',\". $ejercicioext[0].\", 0, 0, 0, 0,0, 0,0, 0);\n\t\t\t\t\";\t\n\t\t\t\t$envio = $this->CatalogosModel->insertSQL($sql);\n\t\t\t}\n\n\t\t\tif($envio==1){\n\t\t\t\treturn 1;\n\t\t\t}else{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c8e9b1abb39501c2b0db862bf84e8d84", "score": "0.5079618", "text": "function listar_reg_aperturadas($estado)//puede ser 1=aperturada 4=pendiente de aprobacion de gerencia\n\t{\n\t $nocf = new NoConformidad_apertura();\n\t\t$con = new DBmanejador();\n\t\tif($con->conectar()==true)\n\t\t{\n\t\t\t$consulta= \"select nro_registro,tipo,area_observada,area_informada,fec_plan_cierre,accion,motivo,fec_apertura,cierre,imprimir_ap,estado\n from no_conformidad as nc\n where estado='\" .$estado. \"' \n order by nro_registro\";\n\t\t\t$resultado=mysql_query($consulta) or die('La consulta fall&oacute;: ' . mysql_error());\t\n\t\t\tif (!$resultado) return false;\n\t\t\telse\n\t\t\t{ $cont=0;\n\t\t\t\t\twhile($row = mysql_fetch_array($resultado))\n\t\t\t\t\t{\n\t\t\t\t\t$lista[$cont]['nro_registro'] = $row['nro_registro'];\n\t\t\t\t\t$lista[$cont]['tipo'] = $row['tipo'];\n $areaobservadas =$row['area_observada'];\n $area_observada=$nocf->arreglo_areas($areaobservadas);\n foreach($area_observada as $indice => $valor) \n\t\t\t\t {\n if ($indice == 0)\n {\n $observada=$valor;\n $observa=explode('-', $observada);\n $observadas=$observa[0];\n }\n else\n {\n $observada=$valor;\n $observa=explode('-', $observada); \n $observadas=$observadas.\",\".$observa[0];\n }\n\t\t\t\t } \n $lista[$cont]['area_observada'] = $observadas;\n $areainformadas =$row['area_informada'];\n $area_informada=$nocf->arreglo_areas($areainformadas);\n foreach($area_informada as $indice => $valor) \n\t\t\t\t {\n if ($indice == 0)\n {\n $informada=$valor;\n $informa=explode('-', $informada);\n $informadas=$informa[0];\n }\n else\n {\n $informada=$valor;\n $informa=explode('-', $informada); \n $informadas=$informadas.\",\".$informa[0];\n }\n\t\t\t\t } \n $lista[$cont]['area_informada'] = $informadas;\n $lista[$cont]['fec_plan_cierre'] = $row['fec_plan_cierre'];\n\t\t\t\t\t$lista[$cont]['accion'] = $row['accion'];\n\t\t\t\t\t$lista[$cont]['motivo'] = $row['motivo'];\n\t\t\t\t\t$lista[$cont]['fec_apertura'] = $row['fec_apertura'];\n $lista[$cont]['cierre'] = $row['cierre'];\n\t\t\t\t\t$lista[$cont]['imprimir_ap'] = $row['imprimir_ap'];\t\n $lista[$cont]['estado'] = $row['estado'];\t\t\t\n\t\t\t\t\t$cont++;\n\t\t\t\t\t}\n\t\t\t\treturn $lista;\n\t\t\t}\n\t}\n}", "title": "" }, { "docid": "d34a173086e8f7f3e531e259e66cb337", "score": "0.5078333", "text": "function piso_tiene_gps($idpiso) {\n\t\t$sql = \"SELECT lt, ln FROM pisos WHERE id_piso=\".$idpiso;\n\t\t$resultado = $this -> db -> query($sql);\n\t\tif ($resultado -> num_rows()>0) {\n\t\t\t// Ya tiene\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// No tiene\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "dd7f352f4e3cbe057d0b8bbf669cfaef", "score": "0.507393", "text": "function tribunalExp_Fisica(){\n\t\t\t\n\t\t$query_sql = \"SELECT DISTINCT(tt.nrodoc) as dni,\n\t\t\t\t\t\ttt.id_persona as id_persona,\n\t\t\t\t\t\tcid.id_persona as cid_idpersona,\n\t\t\t\t\t\tid_tipo_persona as tipo_per\n\t\t\t\t\tfrom tribunal_jc.expediente as tt\n\t\t\t\t\tLEFT JOIN cidig.persona cid on tt.nrodoc::varchar = cid.cuil_documento\n\t\t\t\t\tWHERE cid.cuil_documento is not null and tt.id_persona is null and tt.id_tipo_persona = 1 and LENGTH(tt.nrodoc::varchar) >= 7\n\t\t\t\t\tORDER BY tt.nrodoc desc\n\t\t\t\t\tLIMIT 1000\";\n\t\t//personas que no estan en cidig\n\t\t$personaNo_cidig = pg_query(connection_200(), $query_sql);\n\t\treturn $personaNo_cidig;\n\t}", "title": "" }, { "docid": "c39e0d4d1540d3101631f2184d4cd86d", "score": "0.50703275", "text": "function balise_CS_SOMMAIRE_dist($p) {\r\n\t\t// id de l'article a trouver pour retourner son texte\r\n\t\t$texte = ($v = interprete_argument_balise(1,$p))!==NULL ? 'cs_champ_sql('.$v.')' : champ_sql('texte', $p);\r\n\t\tif ($p->type_requete == 'articles' || $v!==NULL) {\r\n\t\t\t$p->code = 'cs_supprime_notes('.$texte.')';\r\n\t\t} else {\r\n\t\t\t$p->code = \"''\";\r\n\t\t}\r\n\t\t$p->interdire_scripts = true;\r\n\t\treturn $p;\r\n\t}", "title": "" }, { "docid": "31cf93ec22bd9d11579b4cd9b9573a1c", "score": "0.5069958", "text": "public function getPeriodos(){\n $f=new Factory();\n $obj_sp=$f->returnsQuery();\n $query=\"select DISTINCT periodo from solicitud_capacitacion\".\n \" UNION\".\n \" select DISTINCT periodo from plan_capacitacion\";\n $obj_sp->executeQuery($query);\n return $obj_sp->fetchAll();\n }", "title": "" }, { "docid": "0ec7420a5543b8b8509c85abf6e8a443", "score": "0.50654286", "text": "public function getServiciosProducto(){\n $query = 'SELECT GRAL_PAR_PRO_COD,GRAL_PAR_PRO_DESC, GRAL_PAR_PRO_CTA1 FROM gral_param_propios WHERE GRAL_PAR_PRO_GRP=2400 AND GRAL_PAR_PRO_COD <>0';\n return $this->mysql->query($query);\n }", "title": "" }, { "docid": "1b143b5aa29f97621b58b301dcc6c4ff", "score": "0.5060063", "text": "public function getTotalPunteos2(){\n try {\n $query = $this->conn->prepare('SELECT SUM(idOpcionesEvaluacion) FROM resultadoInstructor WHERE numeroPregunta BETWEEN 14 AND 23 AND idEnvio =2 GROUP BY numeroPregunta');\n $query->execute();\n return $query->fetchAll();\n } catch (PDOException $ex) {\n echo \"No se puede mostrar esa informacion\";\n }\n }", "title": "" }, { "docid": "254e53ff34516a08f508c1f6255d386d", "score": "0.5060008", "text": "function prendaWS($pr_id) {\n if ($pr_id) {\n if ($pr_id > 0) {\n $indice = 0;\n $queryBusqueda = \"SELECT * FROM prenda WHERE pr_id=$pr_id\";\n } else {\n /* $this->arregloPrenda = array();\n $queryBusqueda = \"SELECT * FROM prenda where pr_id=$pr_id AND ca_id=$ca_id AND em_id=$em_id AND us_id=$us_id\";\n $indice = 0; */\n }\n $result = $this->select($queryBusqueda);\n while (!$this->siguiente($result)) {\n $this->setPrenda($result);\n if ($indice != -1)\n $this->arregloPrenda[$indice] = $this->setArregloPrenda($result);\n $result->MoveNext();\n $indice++;\n }\n }\n }", "title": "" }, { "docid": "dcf639e2f0c1d8fd95ebb999af58bd7b", "score": "0.50533533", "text": "public function getFormaPago(){\n $consulta = \"SELECT GRAL_PAR_PRO_COD,GRAL_PAR_PRO_DESC \n FROM gral_param_propios \n WHERE GRAL_PAR_PRO_GRP=2100 AND GRAL_PAR_PRO_COD <>0\";\n return $this->mysql->query($consulta);\n }", "title": "" }, { "docid": "9c9987ef228dee55184dcfb2232eb4db", "score": "0.5048341", "text": "function localidadConsultarCoordenadasGeograficas($criterio) {\n\t$query = \"SELECT coordenadas_Geograficas FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['coordenadas_Geograficas'];\n}", "title": "" }, { "docid": "db9e3ae9044ffb08de78a1b6bc67d615", "score": "0.5047395", "text": "function es_ordenplandepagohijo() {\n\n $query_ordeneplandepago1 = \"SELECT op.idordenpagoplandepago\n\t\tFROM ordenpagoplandepago op,ordenpago o,pazysalvoestudiante p,detallepazysalvoestudiante d,estudiantegeneral eg,estudiante e\n\t\tWHERE op.codigoestado LIKE '1%'\n\t\tAND op.numerorodencoutaplandepagosap = '$this->numeroordenpago'\n\t\tAND op.numerorodencoutaplandepagosap = o.numeroordenpago\n\t\tAND o.codigoestudiante = e.codigoestudiante\n\t\tAND eg.idestudiantegeneral = e.idestudiantegeneral\n\t\tAND p.idestudiantegeneral = eg.idestudiantegeneral\n\t\tAND d.idpazysalvoestudiante = p.idpazysalvoestudiante\n\t\tAND d.codigoestadopazysalvoestudiante LIKE '1%'\";\n //and dop.codigoconcepto = '151'\n //echo \"sdas $query_ordeneplandepago1<br>\";\n $ordeneplandepago1 = mysql_query($query_ordeneplandepago1, $this->sala) or die(\"$query_ordeneplandepago1<br>\" . mysql_error());\n $totalRows_ordeneplandepago1 = mysql_num_rows($ordeneplandepago1);\n\n ////// fin E.G.R 17-11-2006 determina si es hijo y tiene deuda en SALA\n\n if ($totalRows_ordeneplandepago1 <> \"\") {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "43712906a5e29fc1599f78641cf0e3f0", "score": "0.50454295", "text": "public function listarsucursales($l, $p, float $latitud, float $longitud, $nivel)\n {\n\n switch ($nivel) {\n case 1:\n $constante = 0.01;\n break;\n case 2:\n $constante = 0.05;\n break;\n case 3:\n $constante = 0.1;\n break;\n case 4:\n $constante = 0.2;\n break;\n case 5:\n $constante = 0.5;\n break;\n }\n\n $p = $p * $l;\n\n $LatParams = [\n ':lat_min' => $latitud - $constante,\n ':lat_max' => $latitud + $constante\n ];\n\n $LgnParams = [\n ':lng_min' => $longitud - $constante,\n ':lng_max' => $longitud + $constante\n ];\n\n $data =\n $this->db->from($this->table)\n ->limit($l)\n ->select('ubicacion.latitud as latitud, ubicacion.longitud as longitud')\n ->innerJoin('ubicacion ON sucursal.ubicacion_id=ubicacion.id')\n ->where(\"ubicacion.latitud >= :lat_min and ubicacion.latitud <= :lat_max\", $LatParams)\n ->where(\"ubicacion.longitud >= :lng_min and ubicacion.longitud <= :lng_max\", $LgnParams)\n ->offset($p)\n ->fetchAll();\n\t\t\n\n $sucursalConCoordenada = [];\n foreach ($data as $value) {\n\t\t\t\n\t\t\t$total =\n $this->db\n ->from('unproducto')\n ->select('COUNT(*) Total')\n\t\t\t->where(\"sucursal_id\", $value->id)\n ->fetch()\n ->Total;\n\t\t\t\n $sucursalConCoordenada[] = [\n 'sucursal' => $value,\n 'distancia' => $this->harvestine($latitud, $longitud, (float)$value->latitud, (float)$value->longitud),\n\t\t\t\t'cantidaddeproductos'=>$total\n ];\n }\n\n $sucursales = [\n 'data' => $sucursalConCoordenada\n ];\n return $this->response->SetResponse(true, \" \", [\"sucursales\" => $sucursales], \"001\");\n\n }", "title": "" }, { "docid": "88c09619636bcb160fbe3aa23468d7a2", "score": "0.504377", "text": "function lista_consejoDisciplinario(){\n\t\t\t$sql=\"SELECT c.idCadete,c.paterno,c.materno,c.nombres,c.codigo,u.curso2,u.curso,f.idFalta,f.falta,t.clase,d.fechaIngreso,d.idRegistro,d.idConsejo,d.numero,d.gestion\n\t FROM cadetes c, registroCadetes r, gestion g, cursos u,consejoDisciplinario d, faltas f,tipoFaltas t\n\t\t WHERE r.idGestion=g.idGestion and c.idCadete=r.idCadete and u.idCurso=r.idCurso \n\t\t \t\tAND r.idRegistro=d.idRegistro AND f.idFalta=d.idFalta AND t.idTipoFalta=f.idTipoFalta AND d.baja='0'\n\t\t ORDER BY c.paterno\";\n return $this->select ($sql);\n\t}", "title": "" }, { "docid": "890e69c91ad8e16ab3077c56bee06142", "score": "0.50415397", "text": "function es_periodo_ap($anio){\n $sql=\"select * from mocovi_periodo_presupuestario \"\n . \" where ((actual and activo_para_carga_presupuestando) or (presupuestando and activo_para_carga_presupuestando))\"\n . \" and anio=$anio\";\n $res=toba::db('designa')->consultar($sql);\n if(count($res)>0){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "5dd69d7d29a50fa74a9ae1ad60f6277e", "score": "0.5039581", "text": "public function getTotalPunteos1(){\n try {\n $query = $this->conn->prepare('SELECT SUM(idOpcionesEvaluacion) FROM resultadoInstructor WHERE numeroPregunta BETWEEN 14 AND 23 AND idEnvio =1 GROUP BY numeroPregunta');\n $query->execute();\n return $query->fetchAll();\n } catch (PDOException $ex) {\n echo \"No se puede mostrar esa informacion\";\n }\n }", "title": "" }, { "docid": "fd07ffc7fea1c4a38f884e604386ab69", "score": "0.50386864", "text": "public function domisiliyayasancetakAction() {\n $id_permintaan_domisili_yayasan = $this->_getParam(\"id_permintaan_domisili_yayasan\");\n $this->view->hasil = $this->surat_serv->getdomisiliyayasancetak($id_permintaan_domisili_yayasan);\n }", "title": "" }, { "docid": "21637633ab20ec535752f8ecb5361ab4", "score": "0.50344664", "text": "function obtener_info_cursos($idCarrera){\n\t$client = new Client();\n \n\t//Obtengo creditos y validez del curso\n\t$crawler = $client->request('GET', \"http://www1.bedelias.edu.uy/ingenieria/muestra_mats.impr?car=$idCarrera\");\n\n\t//Obtengo las tablas por área, y almaceno los cursos de cada una\n\t$crawler->filter('.unoa')->each(function ($node, $index) use($idCarrera) {\n\n\t\tif($index == 0)\n\t\t\treturn;\n\t\t\n\t\t//De la tabla obtengo la informacion de los cursos\n\t\t$datos_cursos = leer_tabla($node);\n\t\t\n\t\t//Almaceno creditos y validez\n\t\tforeach ($datos_cursos as $datos_curso){\n\t\t\ttry {\n\t\t\t\tguardar_creditos_validez($datos_curso[0], $datos_curso[1], $datos_curso[2]);\n\t\t\t}catch (Exception $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\t\n\t\t}\n\t});\n\t\n\t//Obtengo porcentajes de aprobacion\n\t$crawler = $client->request('GET', \"http://www1.bedelias.edu.uy/ingenieria/actas_curso.sel_per_car\");\n\n\t//Obtengo los meses y obtengo los datos para cada periodo\n\t$crawler->filter('select[name=\"p_permes\"] option')->each(function ($node, $index) use ($crawler, $client, $idCarrera) {\n\t\t$form = $crawler->selectButton('Aceptar')->form();\n\t\t$actas_mes = $client->submit($form, array('p_permes' => $node->text(), \"p_curri\" => \"C\", \"p_carrcic\" => $idCarrera));\n\t\t\n\t\t//Por cada curso del periodo obtengo los datos\n\t\t$actas_mes->filter('select[name=\"p_matnommat\"] option')->each(function ($node, $index) use($actas_mes, $client){\n\t\t\t\n\t\t\t$form = $actas_mes->selectButton('Aceptar')->form();\n\t\t\t$datos_curso = explode(\" - \",$node->html());\n\t\t\t$id_curso = trim($datos_curso[0]);\n\t\t\t$acta_curso = $client->submit($form, array('p_matnommat' => $id_curso));\n\t\t\t$datos = obtener_datos_aprobacion($acta_curso);\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//guardar_datos_aprobacion($id_curso, $datos);\n\t\t\t}catch (Exception $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\t\n\t\t\t\t\n\t\t});\n\t});\n}", "title": "" }, { "docid": "39c4bbe4170782dcda34ca30eb678473", "score": "0.50316215", "text": "function pertenece_periodo($desde,$hasta){\n \n $sql=\"select fecha_inicio,fecha_fin from mocovi_periodo_presupuestario where actual\";\n $actual=toba::db('designa')->consultar($sql);\n $sql=\"select fecha_inicio,fecha_fin from mocovi_periodo_presupuestario where presupuestando\";\n $pres=toba::db('designa')->consultar($sql);\n \n \n $salida=false;\n if(count($actual)>0){//si existe el periodo actual\n if($desde<=$actual[0]['fecha_fin'] && ($hasta>=$actual[0]['fecha_inicio'] || $hasta == null)){//si pertenece al periodo actual\n $salida = true;\n //la designacion corresponde al periodo actual entonces me fijo si esta controlando ese periodo\n $sql=\"select activo_para_carga_presupuestando from mocovi_periodo_presupuestario where actual\";\n $controlando=toba::db('designa')->consultar($sql);\n \n }else{//sino pertenece al periodo actual pregunto si pertenece al periodo presupuestando\n if(count($pres)>0){\n if($desde<=$pres[0]['fecha_fin'] && ($hasta>=$pres[0]['fecha_inicio'] || $hasta == null)){\n $salida=true;\n //la designacion corresponde al periodo presupuestando entonces me fijo si esta controlando ese periodo\n $sql=\"select activo_para_carga_presupuestando from mocovi_periodo_presupuestario where presupuestando\";\n $controlando=toba::db('designa')->consultar($sql);\n }\n }\n } \n }//para poder modificar debe cumplir las dos cosas. Que pertenezca al periodo actual y al presupuestando, y que este activo el activo_para_carga_presupuestando\n $salida=$salida && ($controlando['0']['activo_para_carga_presupuestando']);\n// if($salida){\n// print_r('verdadero');exit;\n// }else{\n// print_r('falso');exit;\n// }\n return $salida;\n }", "title": "" }, { "docid": "b0324f5f60bfddcbacb3d634de76fed2", "score": "0.5030673", "text": "public function getAumentoDescuento($codigoPoliza,$arregloPasajeros)\r\n\t{\r\n\t\ttry{\r\n\t\t\t$porcentajeDescuento=0;\r\n\t\t\t$porcentajeAumento=0;\r\n\t\t\t//DESCUENTOS------------------------------------------------------------------------------------------\r\n\r\n\t\t\t$descuentospoliza= &$this->conexion->conectarse()->Execute('\r\n\t\t\t SELECT Productos.Id AS IdProducto, Categorias.Id AS IdCategoria, TipoDescuento.Id AS TipoDescuento, TipoDescuento.Nombre, Categorias.CantidadEdad, \r\n Categorias.EdadInicial, Categorias.EdadFinal, DescuentoCategoria.Porcentaje, DescuentoCategoria.Nombre AS NombreAumento, DescuentoCategoria.Descripcion, \r\n Categorias.DescuentoMayorEdad, Categorias.DescuentoCantidadPasajeros, DescuentoCategoria.Id, Categorias.Descripcion AS nombrecategoria, \r\n DescuentoCategoria.PasajerosDescuento\r\nFROM Categorias INNER JOIN\r\n DescuentoCategoria ON Categorias.Id = DescuentoCategoria.IdCategoria INNER JOIN\r\n Productos ON Categorias.Id = Productos.Idcategoria INNER JOIN\r\n TipoDescuento ON DescuentoCategoria.IdTipoDescuento = TipoDescuento.Id\r\n\t\t\t\tWHERE (Productos.Id = \\''.$codigoPoliza.'\\') AND (DescuentoCategoria.Estado = \\'TRUE\\')') ;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t\tforeach($descuentospoliza as $k => $row) {\r\n\r\n\t\t\t\t$cantidadPasajeros=0;\r\n\t\t\t\tfor($i=0;$i< count($arregloPasajeros);$i++) if ($arregloPasajeros[$i]!=\"\")$cantidadPasajeros++;\r\n\t\t\t\t//EMPEZAMOS A EVALUAR SEGUN EL TIPO DE DESCUENTO\r\n\t\t\t\tswitch ($row[2]) {\r\n\t\t\t\t\tcase \"1\":\r\n\t\t\t\t\t\t//echo \"CASO 1\";\r\n\t\t\t\t\t\t// CUANDO VIAJAN CUATRO PASAJEROS SE APLICA UN DESCUENTO SOBRE LOS TRES\r\n\t\t\t\t\t\t//echo $row[14];// PASAJEROS DESCUENTO\r\n\t\t\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t\t\tif($cantidadPasajeros==$row[14] && $cantidadPasajeros<5 && $cantidadPasajeros >1){\r\n\t\t\t\t\t\t\t$porcentajeDescuento += $row[7] *($row[14]-1)/$row[14];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\t//echo \"CASO 2\";\r\n\t\t\t\t\t\t// CANTIDAD DE PASAJEROS - GENERA UN PORCENTAJE DE DESCUENTO.\r\n\t\t\t\t\t\tif( $cantidadPasajeros==$row[14]){\r\n\t\t\t\t\t\t\t$porcentajeDescuento += $row[7];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"3\":\r\n\t\t\t\t\t\t//echo \"caso 3\";\r\n\t\t\t\t\t\t// MANEJO PROMOCIONES\r\n\t\t\t\t\t\t//echo \"PROMOCION\";\r\n\t\t\t\t\t\t$porcentajeDescuento += $row[7];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}//FIN SWITCH\r\n\t\t\t\t//echo $row[10];// DESCUENTO MAYOR DE EDAD.\r\n\t\t\t\tif($row[10]==1 && ( count($arregloPasajeros)>1 && count($arregloPasajeros)<5 && count($arregloPasajeros)!=3)){\r\n\t\t\t\t\t$guarda=0;\r\n\t\t\t\t\tfor($i=0;$i< count($arregloPasajeros);$i++){\r\n\t\t\t\t\t\t//RECORREMOS PARA OBTENER LOS MAYORES Y MENORES DE EDAD\r\n\t\t\t\t\t\tif($arregloPasajeros[$i]!=\"\") $guarda = $arregloPasajeros[$i] >= 21 ? ++$guarda : --$guarda;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif($guarda==0){//APLICA EL DESCUENTO POR PARIDAD DE MAYORES DE EDAD Y MENORES DE EDAD\r\n\t\t\t\t\t\t$porcentajeDescuento += 50;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\t//echo $row[10];// DESCUENTO CANTIDAD PASAJEROS.\r\n\t\t\t\tif($row[11]==1 && count($arregloPasajeros)>2){\r\n\r\n\t\t\t\t\t$cantidadMayores=0;\r\n\t\t\t\t\t$cantidadMenores=0;\r\n\t\t\t\t\t//RECORREMOS LOS PASAJEROS\r\n\t\t\t\t\tfor($i=0;$i< count($arregloPasajeros);$i++){\r\n\t\t\t\t\t\t//RECORREMOS PARA OBTENER LOS MAYORES Y MENORES DE EDAD\r\n\t\t\t\t\t\tif($arregloPasajeros[$i]!=\"\") {\r\n\t\t\t\t\t\t\tif ($arregloPasajeros[$i] >= 21) $cantidadMayores++;\r\n\t\t\t\t\t\t\telse if ($arregloPasajeros[$i] < 21) $cantidadMenores++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($cantidadMayores == 2)//SIEMPRE DEBEN HABER DOS MAYORES\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($cantidadMenores == 1) $porcentajeDescuento += 100 / 3;\r\n\t\t\t\t\t\telse if ($cantidadMenores == 2) $porcentajeDescuento += 100 / 2;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}//FIN FOREACH DE DESCUENTOS POR POLIZA\r\n\t\t\t//AUMENTOS----------------------------------------------------------------------------------------------\r\n\t\t\t$aumentosPoliza = &$this->conexion->conectarse()->Execute('\r\n\t\t\t SELECT Productos.Id AS IdProducto, Categorias.Id AS IdCategoria, TipoCondicion.Id AS tipocondicion, TipoCondicion.Nombre, AumentoCategoria.CantidadEdad, \r\n AumentoCategoria.EdadInicial, AumentoCategoria.EdadFinal, AumentoCategoria.Porcentaje, AumentoCategoria.Nombre AS NombreAumento, \r\n AumentoCategoria.Descripcion, Categorias.DescuentoMayorEdad, Categorias.DescuentoCantidadPasajeros, AumentoCategoria.Id, \r\n Categorias.Descripcion AS nombrecategoria\r\n\t\t\t\tFROM Categorias INNER JOIN\r\n\t\t\t\t AumentoCategoria ON Categorias.Id = AumentoCategoria.IdCategoria INNER JOIN\r\n\t\t\t\t Productos ON Categorias.Id = Productos.Idcategoria INNER JOIN\r\n\t\t\t\t TipoCondicion ON AumentoCategoria.IdCondicion = TipoCondicion.Id\r\n\t\t\t\tWHERE (Productos.Id = \\''.$codigoPoliza.'\\') AND (AumentoCategoria.Estado = \\'TRUE\\')') ;\r\n\r\n\r\n\t\t\tforeach($aumentosPoliza as $k => $row) {\r\n\t\t\t\t//echo $row[2];// TIPO AUMENTO\r\n\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t//echo $row[7];// PORCENTAJE AUMENTO\r\n\t\t\t\tfor($i=0;$i< count($arregloPasajeros);$i++){\r\n\r\n\t\t\t\t\t//DEPENDIENDO DEL TIPO DE AUMENTO Y LA CANTIDAD DE PASAJEROS SE OPERA.\r\n\t\t\t\t\tif($arregloPasajeros[$i]!=\"\"){\r\n\t\t\t\t\t\tswitch ($row[2]) {\r\n\t\t\t\t\t\t\tcase \"1\":\r\n\t\t\t\t\t\t\t\t//echo $row[4];// CANTIDAD EDAD\r\n\t\t\t\t\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t\t\t\t\tif($arregloPasajeros[$i]>=$row[4]){\r\n\t\t\t\t\t\t\t\t\t//echo \"SUPERIOR >=\";\r\n\t\t\t\t\t\t\t\t\t$porcentajeAumento += $row[7] / count($arregloPasajeros);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\t\t\t//echo \"HASTA <=\";\r\n\t\t\t\t\t\t\t\t//echo $row[4];// CANTIDAD EDAD\r\n\t\t\t\t\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t\t\t\t\tif($arregloPasajeros[$i]<=$row[4]){\t//echo \"SUPERIOR >=\";\r\n\t\t\t\t\t\t\t\t\t$porcentajeAumento += $row[7] / count($arregloPasajeros);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"3\":\r\n\t\t\t\t\t\t\t\t//echo \"ENTRE\";\r\n\t\t\t\t\t\t\t\t//echo $row[5];// EDAD INICIAL\r\n\t\t\t\t\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t\t\t\t\t//echo $row[6];// EDAD FINAL\r\n\t\t\t\t\t\t\t\t//echo \"<br>\";\r\n\t\t\t\t\t\t\t\tif($arregloPasajeros[$i]>=$row[5] && $arregloPasajeros[$i]<=$row[6] ){\r\n\t\t\t\t\t\t\t\t\t//echo \"SUPERIOR >=\";\r\n\t\t\t\t\t\t\t\t\t$porcentajeAumento += $row[7] / count($arregloPasajeros);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}\r\n\t\t\treturn $porcentajeDescuento.\"-\". $porcentajeAumento ;\r\n\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\techo 'Caught exception: ', $e->getMessage(), \"\\n\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "7b84b093e6999c74bdae3816006911d1", "score": "0.5029283", "text": "function getVueJeux($lignes){\n\n $html = '\n <div id=\"conteneurJeux\">\n <div id=\"lightBox\" class=\"hidden\">\n <button>X Fermer</button>\n <div id=\"containerLightBox\">\n <div id=\"imgLightBox\"></div>\n </div>\n </div>\n <div id=\"partie\">\n <div id=\"containerPartie\">\n <div id=\"formPartie\">\n <label>Pseudonyme</label/>\n <input type=\"text\" id=\"pseudo\" name=\"pseudo\">\n <div id=\"right\">\n <label>Choisir une ligne</label/>\n <select name=\"ligne\" id=\"ligne\">';\n foreach($lignes as $ligne){\n $html .= '<option value=\"'.$ligne[\"idLigne\"].'\">Ligne '.$ligne[\"nomLigne\"].'</option>';\n } \n $html .=' </select><br>\n <button>Débuter une partie</button>\n </div>\n </div>\n </div> \n </div>\n <div id=\"compositionsListe\">\n \n <!--id Station\n <div id=\"1\" class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/atwater_01c.jpg\"></div>\n <div id=\"2\" class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/beaudry_01c.jpg\"></div>\n <div id=\"3\" class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/berriuqam_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/bonaventure_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/champsdemars_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>\n <div class=\"composition\"><img class=\"compo\" src=\"../../public/img/compositions/charlevoix_01c.jpg\"></div>-->\n\n\n \n </div>\n <div id=\"carte\">\n <!--<div id=\"atwaterTgt\" class=\"target\"></div>\n <div id=\"beaudryTgt\" class=\"target\"></div>\n \n <div id=\"ligne01\">\n <div id=\"videGaucheLigne01\"></div>\n <div id=\"montmorency\" class=\"target\"></div>\n <div id=\"nomMontmorency\">\n <p class=\"nomOrange\">Montmorency</p>\n </div>\n </div>\n <div id=\"ligne02\">\n <div id=\"videGaucheLigne02\"></div>\n <div id=\"delaconcorde\" class=\"target\"></div>\n <div id=\"nomDelaconcorde\">\n <p class=\"nomOrange\">De la Concorde</p>\n </div>\n </div>\n <div id=\"ligne03\">\n <div id=\"videGaucheLigne03\"></div>\n <div id=\"cartier\"></div>\n <div id=\"nomCartier\">\n <p class=\"nomOrange\">Cartier</p>\n </div>\n <div id=\"nomHonorebeaugrand\">\n <p class=\"nomVert\">Honoré-Beaugrand</p>\n </div>\n <div id=\"honorebeaugrand\"></div>\n <div id=\"videDroitLigne03\"></div>\n </div>\n <div id=\"ligne04\">\n <div id=\"nomRadisson\">\n <p class=\"nomVert\">Radisson</p>\n </div>\n <div id=\"radisson\"></div>\n <div id=\"videDroitLigne04\"></div>\n </div>\n <div id=\"ligne05\">\n <div id=\"nomHenribourassa\">\n <p class=\"nomOrange\">Henri-Bourassa</p>\n </div>\n <div id=\"henribourassa\"></div>\n <div id=\"nomLangerlier\">\n <p class=\"nomVert\">Langerlier</p>\n </div>\n <div id=\"langelier\"></div>\n <div id=\"videDroitLigne05\"></div>\n </div>\n <div id=\"ligne06\">\n <div id=\"nomSauve\">\n <p class=\"nomOrange\">Sauvé</p>\n </div>\n <div id=\"sauve\"></div>\n <div id=\"videCentreLigne06\"></div>\n <div id=\"saintmichel\"></div>\n <div id=\"nomSaintmichel\">\n <p class=\"nomBleu\">Saint-Michel</p>\n </div>\n <div id=\"nomCadillac\">\n <p class=\"nomVert\">Cadillac</p>\n </div>\n <div id=\"cadillac\"></div>\n <div id=\"videDroitLigne06\"></div>\n </div>\n <div id=\"ligne07\">\n <div id=\"nomCremazie\">\n <p class=\"nomOrange\">Crémazie</p>\n </div>\n <div id=\"cremazie\"></div>\n <div id=\"videCentreLigne07\"></div>\n <div id=\"diberville\"></div>\n <div id=\"nomDibervile\">\n <p class=\"nomBleu\">D’Iberville</p>\n </div>\n <div id=\"nomLassomption\">\n <p class=\"nomVert\">L’Assomption</p>\n </div>\n <div id=\"lassomption\"></div>\n <div id=\"videDroitLigne07\"></div>\n </div>\n <div id=\"ligne08\">\n <div id=\"nomJarry\">\n <p class=\"nomOrange\">Jarry</p>\n </div>\n <div id=\"jarry\"></div>\n <div id=\"videCentreLigne08\"></div>\n <div id=\"fabre\"></div>\n <div id=\"nomFabre\">\n <p class=\"nomBleu\">Fabre</p>\n </div>\n <div id=\"nomViau\">\n <p class=\"nomVert\">Viau</p>\n </div>\n <div id=\"viau\"></div>\n <div id=\"videDroitLigne08\"></div>\n </div>\n <div id=\"ligne09\">\n <div id=\"nomJeantalon\">\n <p class=\"nomOrange\">Jean-Talon</p>\n </div>\n <div id=\"jeantalon\"></div>\n <div id=\"videCentreLigne09\"></div>\n <div id=\"pieix\"></div>\n <div id=\"nomPiex\">\n <p class=\"nomVert\">Pie-X</p>\n </div>\n </div>\n <div id=\"ligne10\">\n <div id=\"nomDecastelneau\">\n <p class=\"nomBleu\">De Casatelneau</p>\n </div>\n <div id=\"decastelneau\"></div>\n <div id=\"videCentreLigne10\"></div>\n <div id=\"beaubien\"></div>\n <div id=\"nomBeaubien\">\n <p class=\"nomOrange\">Beaubien</p>\n </div>\n <div id=\"joliette\"></div>\n <div id=\"nomJoliette\">\n <p class=\"nomVert\">Joliette</p>\n </div>\n </div>\n <div id=\"ligne11\">\n <div id=\"nomParc\">\n <p class=\"nomBleu\">Parc</p>\n </div>\n <div id=\"parc\"></div>\n <div id=\"videCentreLigne11\"></div>\n <div id=\"rosemont\"></div>\n <div id=\"nomRosemont\">\n <p class=\"nomOrange\">Rosemont</p>\n </div>\n <div id=\"prefontaine\"></div>\n <div id=\"nomPrefontaine\">\n <p class=\"nomVert\">Préfontaine</p>\n </div>\n </div>\n <div id=\"ligne12\">\n <div id=\"videGaucheLigne12\"></div>\n <div id=\"laurier\"></div>\n <div id=\"nomLaurier\">\n <p class=\"nomOrange\">Laurier</p>\n </div>\n <div id=\"frontenac\"></div>\n <div id=\"nomFrontenac\">\n <p class=\"nomVert\">Frontenac</p>\n </div>\n </div>\n <div id=\"ligne13\">\n <div id=\"nomCotevertu\">\n <p class=\"nomOrange\">Côte-Vertu</p>\n </div>\n <div id=\"cotevertu\"></div>\n <div id=\"nomAcadie\">\n <p class=\"nomBleu\">Acadie</p>\n </div>\n <div id=\"acadie\"></div>\n <div id=\"nomMontroyal\">\n <p class=\"nomOrange\">Mont-Royal</p>\n </div>\n <div id=\"montroyal\"></div>\n <div id=\"videCentreLigne13\"></div>\n <div id=\"papineau\"></div>\n <div id=\"nomPapineau\">\n <p class=\"nomVert\">Papineau</p>\n </div>\n </div>\n <div id=\"ligne14\">\n <div id=\"nomDucollege\">\n <p class=\"nomOrange\">Du Collège</p>\n </div>\n <div id=\"ducollege\"></div>\n <div id=\"nomSherbrooke\">\n <p class=\"nomOrange\">Sherbrooke</p>\n </div>\n <div id=\"sherbrooke\"></div>\n <div id=\"videCentreLigne14\"></div>\n <div id=\"beaudry\"></div>\n <div id=\"nomBeaudry\">\n <p class=\"nomVert\">Beaudry</p>\n </div>\n </div>\n <div id=\"ligne15\">\n <div id=\"nomDelasavanne\">\n <p class=\"nomOrange\">De la Savanne</p>\n </div>\n <div id=\"delasavanne\"></div>\n <div id=\"nomOutremont\">\n <p class=\"nomBleu\">Outremont</p>\n </div>\n <div id=\"outremont\"></div>\n <div id=\"nomBerriuqam\">\n <p class=\"nomOrange\">Berri / UQAM</p>\n </div>\n <div id=\"berriuqam\"></div>\n <div id=\"videCentreLigne15\"></div>\n <div id=\"parcjeandrapeau\"></div>\n <div id=\"nomParcjeandrapeau\">\n <p class=\"nomJaune\">Parc-Jean-Drapeau</p>\n </div>\n </div>\n <div id=\"ligne16\">\n <div id=\"nomNamur\">\n <p class=\"nomOrange\">Namur</p>\n </div>\n <div id=\"namur\"></div>\n <div id=\"videCentreLigne16\"></div>\n <div id=\"edouardmontpetit\"></div>\n <div id=\"nomEdouardmontpetit\">\n <p class=\"nomBleu\">Édouard-Montpetit</p>\n </div>\n <div id=\"saintlaurent\"></div>\n <div id=\"nomSaintlaurent\">\n <p class=\"nomVert\">Saint-Laurent</p>\n </div>\n </div>\n <div id=\"ligne17\">\n <div id=\"nomPlamondon\">\n <p class=\"nomOrange\">Plamondon</p>\n </div>\n <div id=\"plamondon\"></div>\n <div id=\"videCentreLigne17\"></div>\n <div id=\"universitedemontreal\"></div>\n <div id=\"nomUniversitedemontreal\">\n <p class=\"nomBleu\">Université-de-Montréal</p>\n </div>\n <div id=\"placedesarts\"></div>\n <div id=\"nomPlacedesarts\">\n <p class=\"nomVert\">Place-des-Arts</p>\n </div>\n <div id=\"longueuil\"></div>\n <div id=\"nomLongueuil\">\n <p class=\"nomJaune\">Longueuil</p>\n </div>\n </div>\n <div id=\"ligne18\">\n <div id=\"nomCotesaintecatherine\">\n <p class=\"nomOrange\">Côte-Sainte-Catherine</p>\n </div>\n <div id=\"cotesaintecatherine\"></div>\n <div id=\"videCentreLigne18\"></div>\n <div id=\"cotedesneiges\"></div>\n <div id=\"nomCotedesneiges\">\n <p class=\"nomBleu\">Côte-des-neiges</p>\n </div>\n <div id=\"mcgill\"></div>\n <div id=\"nomMcgill\">\n <p class=\"nomVert\">McGill</p>\n </div>\n <div id=\"champdemars\"></div>\n <div id=\"nomChampdemars\">\n <p class=\"nomOrange\">Champ-de-Mars</p>\n </div>\n </div>\n <div id=\"ligne19\">\n <div id=\"nomSnowdon\">\n <p class=\"nomOrange\">Snowdon</p>\n </div>\n <div id=\"snowdon\"></div>\n <div id=\"videCentreLigne19\"></div>\n <div id=\"peel\"></div>\n <div id=\"nomPeel\">\n <p class=\"nomVert\">Peel</p>\n </div>\n <div id=\"placedarmes\"></div>\n <div id=\"nomPlacedarmes\">\n <p class=\"nomOrange\">Place-d’Armes</p>\n </div>\n </div>\n <div id=\"ligne20\">\n <div id=\"nomVillamaria\">\n <p class=\"nomOrange\">Villa-Maria</p>\n </div>\n <div id=\"villamaria\"></div>\n <div id=\"videCentreLigne20\"></div>\n <div id=\"guyconcordia\"></div>\n <div id=\"nomGuyconcordia\">\n <p class=\"nomVert\">Guy-Concordia</p>\n </div>\n <div id=\"squarevictoriaoaci\"></div>\n <div id=\"nomSuqarevictoriaoaci\">\n <p class=\"nomOrange\">Square-Victoria / OACI</p>\n </div>\n </div>\n <div id=\"ligne21\">\n <div id=\"nomVendome\">\n <p class=\"nomOrange\">Vendôme</p>\n </div>\n <div id=\"vendome\"></div>\n <div id=\"videCentreLigne21\"></div>\n <div id=\"atwaterTgt\"></div>\n <div id=\"nomAtwater\">\n <p class=\"nomVert\">Atwater</p>\n </div>\n <div id=\"bonaventure\"></div>\n <div id=\"nomBonaventure\">\n <p class=\"nomOrange\">Bonaventure</p>\n </div>\n </div>\n <div id=\"ligne22\">\n <div id=\"nomPlacesainthenri\">\n <p class=\"nomOrange\">Place-Saint-Henri</p>\n </div>\n <div id=\"placesainthenri\"></div>\n <div id=\"videCentreLigne22\"></div>\n <div id=\"lucienlallier\"></div>\n <div id=\"nomLucienlallier\">\n <p class=\"nomOrange\">Lucien-L’Allier</p>\n </div>\n </div>\n <div id=\"ligne23\">\n <div id=\"videGaucheLigne23\"></div>\n <div id=\"georgesvanier\"></div>\n <div id=\"nomGeorgesvanier\">\n <p class=\"nomOrange\">Georges-Vanier</p>\n </div>\n </div>\n <div id=\"ligne24\">\n <div id=\"nomLionelgroulx\">\n <p class=\"nomOrange\">Lionel-Groulx</p>\n </div>\n <div id=\"lionelgroulx\"></div>\n <div id=\"videDroiteLigne24\"></div>\n </div>\n <div id=\"ligne25\">\n <div id=\"videGaucheLigne25\"></div>\n <div id=\"charlevoix\"></div>\n <div id=\"nomCharlevoix\">\n <p class=\"nomVerte\">Charlevoix</p>\n </div>\n </div>\n <div id=\"ligne26\">\n <div id=\"videGaucheLigne26\"></div>\n <div id=\"lasalle\"></div>\n <div id=\"nomLasalle\">\n <p class=\"nomVerte\">Lasalle</p>\n </div>\n </div>\n <div id=\"ligne27\">\n <div id=\"nomJolicoeur\">\n <p class=\"nomVert\">Jolicoeur</p>\n </div>\n <div id=\"jolicoeur\"></div>\n <div id=\"videCentreLigne27\"></div>\n <div id=\"deleglise\"></div>\n <div id=\"nomDeleglise\">\n <p class=\"nomVerte\">De l’Église</p>\n </div> \n </div>\n <div id=\"ligne28\">\n <div id=\"nomMonk\">\n <p class=\"nomVert\">Monk</p>\n </div>\n <div id=\"monk\"></div>\n <div id=\"videCentreLigne28\"></div>\n <div id=\"verdun\"></div>\n <div id=\"nomVerdun\">\n <p class=\"nomVerte\">Verdun</p>\n </div>\n </div>\n <div id=\"ligne29\">\n <div id=\"nomAngrignon\">\n <p class=\"nomVert\">Angrignon</p>\n </div>\n <div id=\"angrignon\"></div>\n <div id=\"videDroiteLigne29\"></div>\n </div>-->\n </div>\n \n ';\n\n echo $html;\n }", "title": "" }, { "docid": "830e0bd53eb41365504763992d39750f", "score": "0.5026785", "text": "function calcularPaginas(){\r\n //Retornar el numero total de peliculas en la BD\r\n $queryTotalResultados = $this->connect()->query('SELECT COUNT(*) AS total FROM pelicula');\r\n //Retornar un objeto con el valor de la columna \r\n $this->nResultados = $queryTotalResultados->fetch(PDO::FETCH_OBJ)->total;\r\n //Ejemplo (15/3 = 5 paginas mostrando 3 peliculas cada una)\r\n $this->totalPaginas = round($this->nResultados / $this->resultadosPorPagina);\r\n\r\n //Asignacion de pagina actual e indice\r\n if(isset($_GET['pagina'])){\r\n //Validar que pagina sea un numero\r\n if(is_numeric($_GET['pagina'])){\r\n if($_GET['pagina'] >= 1 && $_GET['pagina'] <= $this->totalPaginas){\r\n $this->paginaActual = $_GET['pagina'];\r\n $this->indice = ($this->paginaActual - 1) * $this->resultadosPorPagina; //(2-1 * 3 = indice 3 y pos 4 del array)\r\n }else{\r\n echo \"No existe esa pagina\";\r\n $this->error = true;\r\n }\r\n }else{\r\n //confirmar error\r\n echo \"error al mostrar la pagina\";\r\n $this->error = true;\r\n }\r\n } \r\n }", "title": "" } ]
4e040bbbb0a2f61130f6ee80d0c2808b
Salva em arquivo um debug
[ { "docid": "bf1031906da0f334b09ff7aebd5f1266", "score": "0.5337371", "text": "public static function saveLogFile($file, $data)\n {\n if (Configure::read('debug') != false)\n {\n $status = debug_backtrace();\n $dir = (php_sapi_name() === 'cli' ? \"logs/\" : \"../logs/\");\n $log = fopen($dir . $file, \"a+\");\n fwrite($log, date('Y-m-d H:i:s') . \"\\n\" . print_r(['file' => $status[0]['file'], 'line' => $status[0]['line'], 'data' => $data], true) . \"\\n\\n\");\n fclose($log);\n }\n }", "title": "" } ]
[ { "docid": "13320b69ba71dc107d6eb1462c952eae", "score": "0.65767497", "text": "function writefile_debug($log)\n{\t\n\t$myFile = _DEBUG_PATH_.session_id().\".txt\";\n\n\t$mode = \"w\";\n\t$file = \"\";\n\t$tabs = \"\";\n\t\n\t\n if (DIRECTORY_SEPARATOR == '\\\\') {\n $file = str_replace(\"\\n\", \"\\r\\n\", $log);\n }\n\t\n\n\tfile_put_contents($myFile, $file);\n}", "title": "" }, { "docid": "485c660e3a9b210871d162fe430756a2", "score": "0.6269548", "text": "function save() {\n $filename = $this->getFileName();\n $file = fopen($filename, \"w+\");\n fputs($file, $this->pack());\n fclose($file);\n unset($this->pack);\n chmod($filename, 0777);\n }", "title": "" }, { "docid": "2cd5e447dc1d4564bb6f5e408085e7ab", "score": "0.6222496", "text": "private function saveFile()\n\t{\n\t\tfile_put_contents($this->filename, serialize($this->persistenceArray));\n\t}", "title": "" }, { "docid": "8b670ed6d66ca269928853acd12232bc", "score": "0.6077431", "text": "private function _save(): void\n {\n $f = fopen($this->filename, 'wb');\n if ($f === false) {\n throw new \\RuntimeException('failed to open file');\n }\n foreach ($this->ini as $key => $value) {\n fwrite($f, $key . '=\"' . str_replace('\"', '\\\\\"', $value) . '\"' . PHP_EOL);\n }\n fclose($f);\n }", "title": "" }, { "docid": "0227f0295ce0f06f84daf9741d90c1dd", "score": "0.6046048", "text": "private static function saveLog($row){ \n $row='\n'.$row;\n ebFiles::fileSaveToEnd(PATH_GENERAL.'debug.txt', $row); \n }", "title": "" }, { "docid": "5e44411fb793ad8918b17ad2c05e01a5", "score": "0.59395415", "text": "protected function saveLog() {\n $invoiceGenerator = new InvoiceGenerator();\n $fileName = $invoiceGenerator->getInvoicePath(false) . DIRECTORY_SEPARATOR;\n $fileName .= 'log.json';\n \n file_put_contents($fileName, CJSON::encode($this->log));\n }", "title": "" }, { "docid": "12ccb7b1bb5bbfbea66c103a509b5e68", "score": "0.5918437", "text": "function __destruct()\n {\n // No los borro si estoy en debug\n if (!ConfigGlobal::is_debug_mode()) {\n $this->deleteFile($this->getFileNew());\n $this->deleteFile($this->getFileRef());\n $this->deleteFile($this->getFileLog());\n }\n }", "title": "" }, { "docid": "10e5f484dd15f0fbc5dc45ae8ca386ad", "score": "0.591822", "text": "public function save ()\n {\n // if (!file_exists($this->dir)) {\n // mkdir($this->dir);\n // }\n\n // $msg = null;\n // if (!file_exists(\"{$this->dir}{$this->fileName}\")) {\n // $msg = App::NAME_FW . \" Framework Generation \" . App::SITE .\" \\n\\n\";\n\n // }\n // $msg .= \"[\".date('Y-m-d H:i:s').\"] :: [\".__FILE__.\"] :: {$this->msg} \\n\";\n\n // try {\n // $file = new SplFileObject(\"{$this->dir}{$this->fileName}\", \"w+\");\n // $file->fwrite($msg);\n // } catch (Exception $e) {\n // echo $e->getMessage(); die;\n // }\n\n }", "title": "" }, { "docid": "7f7a6364ce8043487a3df608a9da99f8", "score": "0.5902925", "text": "public function dumpDebugStorage();", "title": "" }, { "docid": "53132c6bf761db48e15ebfdaa3420925", "score": "0.5895409", "text": "private function saveFile()\n {\n file_put_contents($this->fileDir . $this->fileName, fopen(static::FILE_PATH, 'r'));\n }", "title": "" }, { "docid": "70b3db9cbc6ea29fd80d18d4b9ca8fd4", "score": "0.58869773", "text": "public function SaveDebug($debug=null) {\n if($debug) {\n self::$queries[] = $debug;\n self::$params[] = null;\n }\n \n self::$queries[] = 'Saved debuginformation to session.';\n self::$params[] = null;\n \n $_SESSION['CDatabase']['numQueries'] = self::$numQueries;\n $_SESSION['CDatabase']['queries'] = self::$queries;\n $_SESSION['CDatabase']['params'] = self::$params;\n }", "title": "" }, { "docid": "c4daa3546d700d1f537c2275fa01d1cd", "score": "0.58593494", "text": "function log_to_file($msg)\n{\n global $config;\n\n if (isset($config->debug->logfile)) {\n try {\n file_put_contents($config->debug->logfile, $msg.\"\\n\", FILE_APPEND);\n } catch (FileException $e) {\n error_log(\"caught exception \".$e->getMessage());\n echo \"<p>$msg</p>\";\n }\n #file_put_contents($config['debug']['file'], \"##----- # ----------\\n\", FILE_APPEND);\n } else {\n echo \"debug file not set... \\n\";\n echo $msg,\"\\n\";\n }\n}", "title": "" }, { "docid": "f3d4674a54e62d8e4bd4b9ea41c184de", "score": "0.58267266", "text": "protected static function saveInfile(){\n\t\t\n\t\t$line = '';\n\t\t$i = 1;\n\t\tforeach (self::$currentError as $key => $value) {\n\t\t\tif ($i < self::$lenghtArray) {\n\t\t\t\t$line .= $key .'=>'.str_replace(\"\\n\",\" \",$value).\"\\t\";\n\t\t\t} else {\n\t\t\t\t$line .= $key .'=>'.str_replace(\"\\n\",\" \",$value);\n\t\t\t}\n\t\t\t$i++;\t\n\t\t}\n\t\t$line .= \"\\n\";\n\t\t// write error in the log file\n\t\t@file_put_contents(ROOT.self::$path.self::$file, $line, FILE_APPEND);\n\t}", "title": "" }, { "docid": "5d4d720e49d784c92da50c7d0c4986a6", "score": "0.58216774", "text": "public function save()\n\t{\n\t\t$this->writeINIFile();\n\t}", "title": "" }, { "docid": "4b875bae43d4800a88af9ebba717b580", "score": "0.5804548", "text": "function saveFile(){\n $mainSettingsFile = fopen(\"$this->dirName/$this->fileName.php\", 'w');\n\n //Write each values\n foreach ( $this->sectionsValues as $section => $values ) {\n fwrite($mainSettingsFile, '[' . $section . \"]\\n\");\n foreach ( $values as $key => $value ) {\n fwrite($mainSettingsFile, $key . ' = ' . $value . \"\\n\");\n }\n fwrite($mainSettingsFile, \"\\n\");\n }\n fclose($mainSettingsFile);\n }", "title": "" }, { "docid": "0d4da91cb4d884989fa148f571f27168", "score": "0.57995117", "text": "protected function saveLog()\n {\n if (!$this->isLog()) {\n return;\n }\n $fh = fopen(Yii::getAlias($this->logFilePath), 'wb');\n fwrite($fh, serialize($this->stat));\n fclose($fh);\n }", "title": "" }, { "docid": "4b849db1737e7b46f5357ddb681800bb", "score": "0.57984585", "text": "function my_save_error()\n{\n file_put_contents(dirname(__file__).'/error_activation.txt', ob_get_contents());\n}", "title": "" }, { "docid": "a6b0acedf79d50adb82d51dabe08b0b4", "score": "0.5788992", "text": "public static function CreateFile(){\r\n\t\t$fileName = self::$folder . self::$db . '.sql';\r\n\t\t$fh = fopen($fileName , 'w') or die(\"can't open file\");\r\n\t\tfwrite($fh, self::$code);\r\n\t\tfclose($fh);\r\n\t\tif(is_file($fileName)){\r\n\t\t\tchmod($fileName, 0774);\r\n\t\t}\r\n\t\techo '<b>File created:</b>' . $fileName . '<br />';\r\n\t}", "title": "" }, { "docid": "dcc14dabae93b72402bbb3bf57571735", "score": "0.57550883", "text": "protected function beforesaved()\r\n\t{\r\n\t}", "title": "" }, { "docid": "ae698ea8dc9a68f2caee09392a66aa07", "score": "0.5751123", "text": "private function saveCache(): void\n\t{\n\t\t$file = $this->getCacheFile();\n\t\t$tempFile = $file . uniqid('', true) . '.tmp';\n\t\t$code = \"<?php\\nreturn \" . var_export([$this->classes, $this->missing], true) . \";\\n\";\n\t\tif (file_put_contents($tempFile, $code) !== strlen($code) || !rename($tempFile, $file)) {\n\t\t\t@unlink($tempFile); // @ - file may not exist\n\t\t\tthrow new \\RuntimeException(\"Unable to create '$file'.\");\n\t\t}\n\t\tif (function_exists('opcache_invalidate')) {\n\t\t\t@opcache_invalidate($file, true); // @ can be restricted\n\t\t}\n\t}", "title": "" }, { "docid": "ce8761115664ceea7b093275ac5278a9", "score": "0.5746157", "text": "protected function SaveHashFile()\n\t{\n\t\t// dummy\n\t}", "title": "" }, { "docid": "1e9dc7a9a1a09d0cbed132bb2ffd9aa7", "score": "0.57225007", "text": "function DebugWrite($mixed) {\n\t\tfile_put_contents(DEBUG_LOG, print_r($mixed, true).\"\\n\", FILE_APPEND);\n\t}", "title": "" }, { "docid": "cfe13da9d334efbd6c437f5deee6a2e0", "score": "0.5700661", "text": "public function testDumpFile(){\n $io = new IO($this->logger);\n $path = $this->root.\"TestFileDump\";\n $content = \"TEST\";\n $io->dumpFile($path, $content);\n $this->assertEquals(\\file_get_contents($path), $content);\n \\unlink($path);\n }", "title": "" }, { "docid": "fb13ad8e8e6274c74513287671f702fc", "score": "0.5700627", "text": "private function writeDebug()\n\t{\n\t\tif (!$this->debugEnabled || !defined(\"BX_COMPOSITE_DEBUG\") || BX_COMPOSITE_DEBUG !== true || !$this->storage->exists())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (!$this->storage->shouldCountQuota() || \\CHTMLPagesCache::checkQuota())\n\t\t{\n\t\t\t//temporary check\n\t\t\tif ($this->storage instanceof StaticHtmlFileStorage)\n\t\t\t{\n\t\t\t\t$cacheFile = $this->storage->getCacheFile();\n\t\t\t\t$backupName = $cacheFile->getPath().\".delete.\".microtime(true);\n\t\t\t\tAddMessage2Log($backupName, \"composite\");\n\t\t\t\t$backupFile = new Main\\IO\\File($backupName);\n\t\t\t\t$backupFile->putContents($cacheFile->getContents());\n\t\t\t\t\\CHTMLPagesCache::writeStatistic(0, 0, 0, 0, $cacheFile->getSize());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAddMessage2Log($this->cacheKey.\" was deleted\", \"composite\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tAddMessage2Log($this->cacheKey.\"(quota exceeded)\", \"composite\");\n\t\t}\n\t}", "title": "" }, { "docid": "816b5ee9f45e778490600e9fee441b6a", "score": "0.5654982", "text": "private function writeToDat(){\n $data = $this->m_survei->getAllSurvei();\n\n $result = '';\n foreach ($data as $d ) {\n $result = $result . $d->data_survei . PHP_EOL;\n }\n\n $data = $result;\n if(write_file('./file/data_survei.dat', $data)){\n echo 'File written!';\n }else{\n echo 'Unable to write the file';\n }\n }", "title": "" }, { "docid": "ebce278a037478957876f88e0ccb22fe", "score": "0.563458", "text": "function savefile()\n\t\t\t{\n\t\t\tglobal $basedir;\n\t\t\tglobal $file;\n\t\t\tglobal $code;\n\t\t\thtml_header();\n\t\t\t$fp=fopen($basedir.$file,\"w\");\n\t\t\tfputs($fp,stripslashes($code));\n\t\t\tfclose($fp);\n\t\t\t}", "title": "" }, { "docid": "acfcbce52eb60dac6f0db131dab8d1a1", "score": "0.5612187", "text": "public function close()\n {\n if (!empty($this->_debugDir)) {\n $f = @fopen($this->_debugDir . '/log.txt', 'a');\n if ($f) {\n fwrite($f, $this->_logtext . \"\\n\");\n fclose($f);\n }\n }\n session_write_close();\n }", "title": "" }, { "docid": "2a7aee25d1425847017ca8e91fe4e62f", "score": "0.5603858", "text": "function debug() {\n if (!empty($this->debug)) {\n if ($log=fopen(RES.'logs'.DS.'debug.log','w')) {\n fwrite($log,\"[Debug \".date('d-m-Y H:i:s').\"]\".PHP_EOL.implode(PHP_EOL,$this->debug).PHP_EOL);\n fclose($log);\n }\n }\n if (!empty($this->log)) {\n if ($log=fopen(RES.'logs'.DS.'log.log','a')) {\n for ($i=0;$i<sizeof($this->log);$i++)\n fwrite($log,$this->log[$i].PHP_EOL);\n fclose($log);\n }\n }\n }", "title": "" }, { "docid": "b51c24a9407ebec7c94eac1fafaf7520", "score": "0.55947316", "text": "function save_sysfile() {\n $replacement_text = GetGlobal('replacement_text');\n\t $sFormErr = GetGlobal('sFormErr');\n\t $a = GetReq('a');\t\n\t\n if ($replacement_text) {\n\t $rt = str_replace( \"\\\\\\\\\", \"\", $replacement_text);\n SetGlobal('replacement_text',$rt);\t\n\t\n // save file (if properties & security policy are ok)\n\t $actfile = $this->datadir . _without($a); \n if ($fp = fopen ($actfile , \"w\")) {\n fwrite ($fp, $rt);\n fclose ($fp);\n\t\t\t\t\t\t\t\t SetGlobal('sFormErr',\"Update successfully !\");\n\t\t\t\t\t\t\t\t setInfo(\"Update successfully !\");\n\t }\n\t else {\n\t SetGlobal('sFormErr', \"File creation error !\");\n\t\t setInfo(\"File creation error !\");\n\t\t }\n }\t\n\t}", "title": "" }, { "docid": "f30f9df19a69b4a3f7e613c92782649c", "score": "0.55830693", "text": "public function saveAndRelease($data) {\n\n $this->data = $data;\n \n // write updates to our temp file\n $temp = $this->openTempFile();\n\n $result = fwrite($temp, $data);\n if ( $result != strlen($data) ) {\n throw new \\Exception(\"Error writing to storage file: {$this->path}, data may be incomplete.\");\n }\n fclose($temp);\n \n if ( !rename($this->temp_path, $this->path) ) {\n $this->close(); // close and remove lock on data file\n throw new \\Exception(\"Error renaming tmp file\");\n } \n\n $this->close();\n }", "title": "" }, { "docid": "7d84a9f0f6037016a911c4bfadec5b9f", "score": "0.55530274", "text": "private function debug()\n {\n ob_start();\n print_r($this->stmts);\n file_put_contents(__DIR__.'/../../debug.log', ob_get_clean()); \n }", "title": "" }, { "docid": "a07ca2f4320091448c5856914cf60383", "score": "0.5488447", "text": "public function create()\n {\n if (!file_exists($this->path))\n {\n $new_file = fopen($this->path,'w');\n $initial_info = $this->date_time.'archivo log creado.';\n fwrite($new_file, $initial_info);\n }\n }", "title": "" }, { "docid": "42c82a4bfdac8512983e97759055fcfc", "score": "0.5476637", "text": "private function saveDataBase(){\n file_put_contents($this->path,json_encode($this->data));\n }", "title": "" }, { "docid": "b1a1597745c8e48cf7f0927cdda8bb81", "score": "0.5474138", "text": "public function saveDsoframer() \n\t{\n\n\t\t//dont' take this out, this keeps IE from crashing\n\t\t//echo \"DEBUG!!!\";\n\n\t\t$this->save();\n\n\t\t$err = $this->getError();\n\t\tif ($err) echo $err[0];\n\t\t\n\t\texit(1);\n\n\t}", "title": "" }, { "docid": "4f29228581d5464c11993493801cf237", "score": "0.54591286", "text": "function updateFile(){\n $path = \"../data/\" . $this->pid . \".txt\";\n $file = fopen($path, \"w\") or die(\"Error: Unable to open file\");\n fwrite($file, $this->toJson());\n fclose($file);\n }", "title": "" }, { "docid": "cee992e3a99e9ef3211ba5e2ff02724f", "score": "0.54513496", "text": "protected function writeFile()\n {\n $contents = json_decode($this->getContents(), true);\n if (null === $contents) {\n $contents = array();\n }\n\n $contents['accounts'] = $this->accounts;\n $contents['default_account'] = $this->defaultAccount;\n $this->fs->dumpFile($this->file, json_encode($contents));\n $this->fs->chmod($this->file, 0600);\n }", "title": "" }, { "docid": "a2b342037d8e9734c82c43ae503ebe06", "score": "0.5442086", "text": "public function save() {\n\n $conf_str = var_export($this->data, true);\n foreach ($this->data as $n => $v) {\n\n // Insert back values atribute first level \n if (isset($this->atribute[$n])) {\n $conf_str = preg_replace(\"#([^\\n\\r]*\" . $n . \"[^\\n\\r]*)[\\n\\r]#is\", \"\\\\1//\" . $this->atribute[$n] . \"\\n\", $conf_str);\n }\n\n if (is_array($v)) {\n // Insert atributes second level \n foreach ($v as $ns => $vs) {\n if (isset($this->atribute[$n . \"~\" . $ns])) {\n $conf_str = preg_replace(\"#([^\\n\\r]*\" . $n . \".*\" . $ns . \"[^\\r\\n]*=>[^\\r\\n]*)[\\n\\r]#isU\", \"\\\\1//\" . $this->atribute[$n . \"~\" . $ns] . \"\\n\", $conf_str);\n }\n }\n }\n }\n file_put_contents($this->file_name, \"<?php \\n return \" . $conf_str . \" \\n ?>\");\n }", "title": "" }, { "docid": "fa790f3c590e941cdccbcd7ed3f2298e", "score": "0.5432633", "text": "public function write() {\n\t\t$tmp = '';\n\t\t$this->assert_ready();\n\t\t\n\t\tif (!is_dir(self::get_dir_path($this->id))) {\n\t\t\tmkdir(self::get_dir_path($this->id));\n\t\t}\n\t\tif (!is_dir(self::get_asset_path($this->id))) {\n\t\t\tmkdir(self::get_asset_path($this->id));\n\t\t}\n\n\t\t$tmp = JSONUtils::encode($this->export(TRUE, TRUE));\n\t\tUtil::file_lock_and_put(self::get_conf_path($this->id), $tmp);\n\t}", "title": "" }, { "docid": "fe3326f8ca9c95e06f75a6361df7f7e6", "score": "0.54321736", "text": "public function __destruct() {\n $file_contents = serialize($this->contents);\n file_put_contents($this->path, $file_contents);\n }", "title": "" }, { "docid": "fcea324f71ce30e0f364fa063b636b66", "score": "0.5428348", "text": "public function unload(){\n $path = $this->directory.$this->name;\n if(!$this->deleted){\n if($this->modified)\n {\n if(file_exists($path) && !is_file($path))\n {\n throw new Exception(\"Unable to write the file $path : It's not a file !\");\n }\n file_put_contents($path, serialize($this->content));\n }\n } else {\n\t\t\tif(file_exists($path))\n\t\t\t\tunlink($path);\n }\n $this->content = [];\n $this->loaded = false;\n }", "title": "" }, { "docid": "984e8349b56220110fdb6791be5a4696", "score": "0.5411808", "text": "public static function touch() { touch(self::$INI_FILE); }", "title": "" }, { "docid": "b3f5a9e981789c617a419afaff182e78", "score": "0.5398542", "text": "public function save()\r\n {\r\n global $c5t;\r\n\r\n $path = $this->options['path'];\r\n if (isset($c5t['_post']['saveas'])) {\r\n $path = dirname($path) . '/' . $c5t['_post']['file']; \r\n }\r\n if (isset($c5t['_post']['backup'])) {\r\n $pos = strrpos($this->options['path'], '.');\r\n if ($pos !== false) {\r\n $backup = substr_replace($this->options['path'], '.bak', $pos, 0);\r\n }\r\n if (is_file($backup)) {\r\n $pos = strrpos($backup, '.');\r\n if ($pos !== false) {\r\n $backup = substr_replace($backup, '.bak', $pos, 0);\r\n }\r\n }\r\n copy($this->options['path'], $backup); \r\n }\r\n\r\n file_put_contents($path, $this->finish());\r\n copy('../include2.php', dirname($this->options['path']) . 'include.php');\r\n }", "title": "" }, { "docid": "7dff8bd7e3d08c6dca06efa22dd1a45a", "score": "0.5394008", "text": "function save_festDetails()\n {\n //error_log(\"[ ivy ] \".\"CsitePrez-save_festDetails : tring to save festDetails\");\n $this->resPath = $this->C->Module_Get_pathRes($this, 'festDetails');\n file_put_contents($this->resPath, stripslashes(trim($_POST['details_en'])));\n }", "title": "" }, { "docid": "5482778b14aa6f8031e2abdf70b7de31", "score": "0.53877306", "text": "function myLog ($thisText) {\n$myFileHndl = fopen($GLOBALS['logFileName'], \"a\");\nfwrite($myFileHndl, $thisText);\nfclose($myFileHndl);\n}", "title": "" }, { "docid": "6fe73df00f2642dc5132ed6dafc80eeb", "score": "0.5366574", "text": "public function __destruct() {\n $file_contents = json_encode($this->contents, JSON_PRETTY_PRINT);\n file_put_contents($this->path, $file_contents);\n }", "title": "" }, { "docid": "068f3223c19a027fcc2abb977b310ae9", "score": "0.5359265", "text": "protected function store()\n {\n $raw_data = serialize($this->data);\n $result = @file_put_contents($this->_getFile(), $raw_data);\n if ($result === false) {\n $error = error_get_last();\n if (isset($this->logger)) {\n $this->logger->warn(sprintf('Horde_Kolab_Server_file failed to store the database in %s. Error was: %s',\n $this->_getFile(), $error['message']));\n }\n }\n }", "title": "" }, { "docid": "65610f296b1eaca83bd0bff5a7aa601f", "score": "0.5359059", "text": "protected function writeConfig() {\n\t\t$config = $GLOBALS['fedSASS']['config'];\n\t\t$path = $this->getPath();\n\t\t$configPath = \"{$path}/config.rb\";\n\t\tfile_put_contents($configPath, $config);\n\t}", "title": "" }, { "docid": "c8d3002dec4eed2caded90c21dff65da", "score": "0.53577554", "text": "private function createFile()\n {\n $myfile = fopen(\".env.example\", \"w\") or die(\"Unable to open file!\");\n foreach ($this->settings as $setting)\n {\n fwrite($myfile, $setting . \"\\n\");\n }\n fclose($myfile);\n }", "title": "" }, { "docid": "91ecc1678620347796eef9b81a230f06", "score": "0.53458965", "text": "public function saveFile();", "title": "" }, { "docid": "a91ed190ecfb77229f5a0998ced91b6d", "score": "0.53388345", "text": "public function __destruct()\n {\n if (null !== $this->file) {\n $this->dump($this->file);\n }\n }", "title": "" }, { "docid": "7cdf87767e5c9d6a3de0eeb2a279ef65", "score": "0.532002", "text": "public function tearDown() {\n file_put_contents($this->iniFile, $this->origIniString);\n }", "title": "" }, { "docid": "6769bfa21483deeb9ba0893be793d299", "score": "0.5319352", "text": "public function save()\n {\n $array = $this->_buildArrayToWrite();\n\n $this->_path = sfConfig::get('sf_app_dir').'/config/app.yml';\n\n file_put_contents($this->_path, sfYaml::dump($array, 4));\n\n chdir(sfConfig::get('sf_root_dir'));\n $task = new sfCacheClearTask(sfApplicationConfiguration::getActive()->getEventDispatcher(), new sfFormatter());\n $task->run(array(), array('type' => 'config'));\n }", "title": "" }, { "docid": "ee9f5df0b6f49b4639f1e30cacd537f4", "score": "0.5311307", "text": "public function reescreve (){\n\t// abre o arquivo, caso não exista tenta crialo\n\t$aberto = fopen($this->arquivo, \"w\");\n\t//essa é a quebra de linha\n\t$quebra = chr(13).chr(10);\n\t//escreve o texto no arquivo\n\t$escreve = fwrite($aberto, $this->texto.$quebra);\n\t//fecha o arquivo\n\tfclose($aberto);\n\n}", "title": "" }, { "docid": "eec75a640f76bb56e67349779631edec", "score": "0.52947485", "text": "public function save() {\n\t\tif(!$this->filename) {\n\t\t\tthrow new \\Exception('Filename has to be set in order to save cache file');\n\t\t}\n\t\tif(!$this->upToDate) {\n\t\t\tfile_put_contents($this->filename, serialize($this->getArrayCopy()));\n\t\t\t$this->upToDate\t= true;\n\t\t}\n\t}", "title": "" }, { "docid": "a71a628b11fa7feb75bcf1741ebb446e", "score": "0.5290989", "text": "private function writeToDisk()\n {\n if (file_exists($this->filename)) {\n unlink($this->filename);\n }\n if (count($this->files) > 0) {\n $fp = fopen($this->filename, \"wb\");\n if ($fp === false) {\n throw new BagItException(\"Unable to write {$this->filename}\");\n }\n foreach ($this->files as $fileData) {\n $line = \"{$fileData['uri']} {$fileData['size']} {$fileData['destination']}\" . PHP_EOL;\n $line = $this->bag->encodeText($line);\n fwrite($fp, $line);\n }\n fclose($fp);\n }\n }", "title": "" }, { "docid": "995144c45ffb4508635a9edfafa3586d", "score": "0.5289713", "text": "public function setDebugFile($debug_file){\n $this->debug_file = $debug_file;\n }", "title": "" }, { "docid": "d68d18c1625e2e1f0bfed24d598ad6dc", "score": "0.5278913", "text": "protected function store()\n\t{\n\t\t$options = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0;\n\t\tfile_put_contents($this->filename, json_encode($this->settings, $options));\n\t}", "title": "" }, { "docid": "1cde39d657e891c9fe99bb3f94606ca6", "score": "0.5264874", "text": "public function saveVerbose()\n {\n }", "title": "" }, { "docid": "8fed1f63a0d5ad26bc6c5e809ce32d61", "score": "0.52543366", "text": "function __destruct() {\n $this->add('odissea_log4p: Closing log file', 'DEBUG');\n if ($this->filelogpointer && !fclose($this->filelogpointer)) {\n $this->add('Logger: trying to close file log pointer failed');\n }\n $this->filelogpointer = false;\n $this->savetofile = false;\n }", "title": "" }, { "docid": "d1e6474f6d8a74adc94cca6edd056998", "score": "0.5242014", "text": "function dump ($data){\n\t\tdate_default_timezone_set(\"America/New_York\");\n\t ob_start();\n\t var_dump($data);\n\t $data = ob_get_clean();\n\t $logFile = fopen(__DIR__ . './' . PLUGIN_NAME . '_log.txt', 'a');\n\t fwrite($logFile, date('Y-m-d h:i:s') . \"(EST): \" . $data);\n\t fclose($logFile);\n\t}", "title": "" }, { "docid": "0ee2d2529ac48a4e67d72ce15e6e72c5", "score": "0.5234545", "text": "public function createFile()\n {\n if (file_exists(getcwd() . \"/{$this->fileName}\")) {\n echo \"File Config already exists \\n\";\n exit();\n }\n\n file_put_contents(getcwd() . \"/{$this->fileName}\", $this->getStructure());\n }", "title": "" }, { "docid": "14bbc242d898836f344f76f54266f63d", "score": "0.5231236", "text": "function sp_writeFile($fileName, $content)\r\n {\n \t\t//echo \"writing to file $fileName : <br> $content<br>\";\r\n $fp = fopen($fileName, 'w'); \r\n fwrite($fp, $content); \r\n fclose($fp);\r\n }", "title": "" }, { "docid": "153ad68abf955059b2ae3687284ac9e8", "score": "0.5197026", "text": "public function writeData()\n {\n // Filter function to remove empty arrays/objects from the generated JSON\n $filterFunction = function ($element) {\n return !(is_array($element) && empty($element));\n };\n\n $cleanData = $this->arrayFilterRecursive($this->data, $filterFunction);\n\n $json = json_encode($cleanData, JSON_PRETTY_PRINT);\n file_put_contents($this->dataFile, $json);\n\n // Updating the last modification time to avoid instant reload, and forcing stat cache reload to avoid getting bad times\n clearstatcache(true, $this->dataFile);\n $this->lastModification = filemtime($this->dataFile);\n\n HedgeBot::message(\"Saved data to file.\", [], E_DEBUG);\n }", "title": "" }, { "docid": "d76be125b277c3adbbfd2f1e16205795", "score": "0.51937836", "text": "function save(){\r\n\t\t$XMLContent = $this->toString();\r\n\r\n\t\t$xmlFile = new File($this->DIRXML.\"/\".$this->FILENAME, TRUE);\r\n\t\tif ($xmlFile->exists()) {\r\n\t\t\t$xmlFile->delFile();\r\n\t\t\t$xmlFile->createFile();\r\n\t\t}\r\n\t\t\r\n\t\t$xmlFile->writeData($XMLContent);\r\n\t}", "title": "" }, { "docid": "bb64c22c3441a3fbcbee7b3866c156e9", "score": "0.51846486", "text": "function DodajZapis()\r\n{\r\n global $direktorij;\r\n $zapisiRef = $_SERVER[\"HTTP_CONNECTION\"];\r\n $sada = date(\"d.m.Y H:i:s\");\r\n $fp = fopen(\"test.log\", \"a+\");\r\n fwrite($fp, $sada);\r\n fwrite($fp, \", \");\r\n fwrite($fp, $zapisiRef);\r\n fwrite($fp, \"\\n\");\r\n fclose($fp);\r\n}", "title": "" }, { "docid": "47c852c4b951af2d2b36683f7b3f13e0", "score": "0.5180196", "text": "function testFile($update) {\n $file = \"test.php\";\n if (!file_exists($file)) {\n $fp = fopen($file, \"rw\");\n fwrite($fp, \"Created file!\\n\\n\");\n fclose($fp);\n }\n file_put_contents('test.php', print_r($update, 1), FILE_APPEND);\n}", "title": "" }, { "docid": "52f8167d6c730bbea05c6358c8e4a804", "score": "0.5177306", "text": "public function createFile() :void\n\t{\n\t\t//get data from file\n\t\t$str = file_get_contents($this->templatePath);\n\n\t\tforeach ($this->mappings as $keyTemplate => $keyEvent) {\n\t\t\t$value = $this->getConfigVal($keyEvent);\n\t\t\t\n\t\t\t//replace something in the file string \n\t\t\t$str = str_replace(\"$keyTemplate\", $value, $str);\n\n\t\t}\n\t\t//write the entire string\n\t\tfile_put_contents($this->destinationPath, $str);\n\t\t\n\t}", "title": "" }, { "docid": "7a912f3ed11ce94bcf2a2fac577dba1b", "score": "0.51754665", "text": "function log_OK($x){\n // \"a\" representa que o arquivo é aberto para ser escrito\n $data = date(\"d/m/Y H:i:s\");\n $fp = fopen(\"log_provisao_de_gastos_limpar.txt\", \"a\");\n $txt = \"\n--------------------------------------------------------------------------------\n ($data)\n $x Realizado corretamente.\n--------------------------------------------------------------------------------\\n\\n\";\n // Escreve \"exemplo de escrita\" no bloco1.txt\n $escreve = fwrite($fp, $txt);\n\n // Fecha o arquivo\n fclose($fp);\n}", "title": "" }, { "docid": "699eb754ca0e1e477b2b0636b70fa603", "score": "0.5173203", "text": "public function logdebug($data)\n\t{\n\t\tif($this->_debug)\n\t\t{\n\t\t\t$f=fopen($this->_debugfile,\"a\");\n\t\t\tfwrite($f,microtime());\n\t\t\tfwrite($f,$data);\n\t\t\tfwrite($f,\"\\n\");\n\t\t\tfclose($f);\n\t\t}\n\t}", "title": "" }, { "docid": "ad5820aeea331d12015fb66beee220e5", "score": "0.51701814", "text": "function Save() {\n \tio_saveFile($this->Vc_DataFileLocation, serialize($this->Vc_RedirectData));\n }", "title": "" }, { "docid": "c931fe9be0ce9a839c81478d9277de45", "score": "0.51661617", "text": "function save(){\n\t\t\t$txt=\"$this->num_empleado,$this->carrera,$this->nombre,$this->telefono\".PHP_EOL;\n\t\t\t$file = fopen(\"maestros.txt\", \"a\") or die(\"No se pudo abrir archivo\");\n\t\t\tfwrite($file, $txt);\n\t\t\tfclose($file);\n\t\t}", "title": "" }, { "docid": "ebcabf12992375f88520f54245530970", "score": "0.51639587", "text": "protected function saveToFile($data,$file)\n\t{\n\t\tfile_put_contents($file,\"<?php\\nreturn \".var_export($data,true).\";\\n\");\n\t}", "title": "" }, { "docid": "7a5e31462d087aca77ca4793aaefbec7", "score": "0.5150463", "text": "function _LOG_CLEAR ()/*{{{*/\n{\n global $_LOG_FILE;\n\n if ( !empty($GLOBALS['_LOG_ENABLED']) ) {\n // file_put_contents($GLOBALS['_LOG_FILE'], \"\", LOCK_EX);\n // flush();\n if ( is_file($_LOG_FILE) ) {\n unlink($_LOG_FILE);\n }\n }\n}", "title": "" }, { "docid": "49aa63638b75403a83fd8af14a279cb4", "score": "0.5149033", "text": "public function printLogToFile()\n {\n file_put_contents(self::LOGFILENAME, \"=== \" . date('Y-m-d H:i:s') . \" === \\n\");\n if (!empty($this->brockenData)) {\n file_put_contents(self::LOGFILENAME, var_export($this->brockenData, TRUE), FILE_APPEND);\n }\n printf(\"Printed all not valid data to '%s' file. \\n\", self::LOGFILENAME);\n }", "title": "" }, { "docid": "f739eaea70bde0560b77bf8abc044eb9", "score": "0.51473045", "text": "public function guardarEstado() {\n\n $this->estadoDispositivo=new Properties();\n $this->estadoDispositivo->load(file_get_contents(\"./estadoDispositivos.properties\"));\n $this->estadoDispositivo->setProperty($this->disp.\".preset\",$this->presetActual);\n // file_put_contents('./estadoDispositivos.properties', $this->estadoDispositivo->toString(true));\n\n }", "title": "" }, { "docid": "935c90b6c5fa9c896827568dee62d5dd", "score": "0.5143689", "text": "public function guardarEstado() {\n\n $this->estadoDispositivo=new Properties();\n $this->estadoDispositivo->load(file_get_contents(\"./estadoDispositivos.properties\"));\n $this->estadoDispositivo->setProperty('Visor.encendido',$this->encendido);\n $this->estadoDispositivo->setProperty('Visor.estado',$this->estado);\n file_put_contents('./estadoDispositivos.properties', $this->estadoDispositivo->toString(true));\n\n }", "title": "" }, { "docid": "7c48164a4b4c23748554db508a638968", "score": "0.5143009", "text": "function saverr($data, $name) {\n if (!is_dir('error_log')) {\n mkdir('error_log');\n }\n $file = @fopen('error_log/'.$name, \"a+\");\n @fwrite($file, $data . \"\\r\\n\");\n @fclose($file);\n}", "title": "" }, { "docid": "e53bc95bfb96b6ef0466f0539008c001", "score": "0.51428914", "text": "public function activation_error() {\n if ($ob = ob_get_contents()) {\n file_put_contents(dirname(__file__) . '/error_activation.txt', $ob);\n }\n }", "title": "" }, { "docid": "46f911c07475ccf3e58bc61d22e7806b", "score": "0.51419586", "text": "function saveDatabase() {\n $this->checkTestInstance();\n\t// get date in the default format, with spaces replaced\n\t$datetime = str_replace(' ', '_', \n\t date($this->DhairDateTime->getDefaultFormat()));\n\n\t$filename = WWW_ROOT . self::DB_SNAPSHOT_DIR . '/' .\n\t self::SNAPSHOT_PREFIX . \".$datetime.sql\";\n\n exec('mysqldump -u ' . self::DB_USER . \" -p{$this->testPassword} \" .\n TEST_DB_NAME . \" > $filename\");\n $this->redirect($this->referer());\n }", "title": "" }, { "docid": "07eb5d6c2e22fe38a8b4e8f16dca853d", "score": "0.51395553", "text": "function writeDataToStore($rm) {\n\t\t$str = serialize($rm);\n\t\tfile_put_contents($this->filename, $str);\n\t}", "title": "" }, { "docid": "90494a9b74e2eefa5e50059ff61dc386", "score": "0.513692", "text": "private function writeToTheFile(){\n\t\t\n\t\tif(!fwrite($this->classFile, $this->txt)){\n\t\t\t$this->$error = \"There was an error creating the file\";\n\t\t return fasle;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a457197128822a045310606713c5327c", "score": "0.51310444", "text": "public function escreve (){\n\t// abre o arquivo, caso não exista tenta crialo\n\t$aberto = fopen($this->arquivo, \"a+\");\n\t//essa é a quebra de linha\n\t$quebra = chr(13).chr(10);\n\t//escreve o texto no arquivo\n\t$escreve = fwrite($aberto, $this->texto.$quebra);\n\t//fecha o arquivo\n\tfclose($aberto);\n\n}", "title": "" }, { "docid": "46c94cae2923a3d6511424a79c048202", "score": "0.5123491", "text": "public static function save()\n {\n if(XMLcore::write_xml_file(static::$XML_FILE, $_SESSION[static::$VAR_NAME]) == FALSE)\n Errors::send(500, \"Error while saving to xml file\");\n }", "title": "" }, { "docid": "145caf198fd6addb16d22825052e1e63", "score": "0.51225036", "text": "function log_error_py_dump($var, $log_name) {\n\t\t$myFile = \"./bizDataLayer/logs/\".$log_name.\".log\";\n\t\t$fh = fopen($myFile, \"a+\") or die(\"can't open file\");\n\t\t\n\t\ttry {\n\t\t\tfwrite($fh, \"Dump @\".date(\"H:i:s m.d.y\").\"\\n\");\n\t\t\tfwrite($fh, $var);\n\t\t\tfwrite($fh, \"===========================================\\n\");\n\t\t\tfclose($fh);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\techo \"error\";\n\t\t}\n\t}", "title": "" }, { "docid": "eeb15ef3275c3074666e775a0639030d", "score": "0.5112723", "text": "public function resetLogFile() {\n\n $fp = fopen($this->log_file, 'w');\n\n if (!$fp) {\n\n echo \"Couldn't open log file\";\n die;\n }\n\n fputs($fp, \"<?php if ( !isset($\" . \"_GET\" . \"['key']) && $\" . \"_GET\" . \"['key'] != 'log' ) die; ?>\");\n\n fclose($fp);\n }", "title": "" }, { "docid": "5f7a5bf3e38846d2171c19814dd1b6f5", "score": "0.5111868", "text": "public function writeToDatabase()\n {\n $result = $this->curlVarleLtPage();\n $fileName = $result[0];\n $timestamp = $result[1];\n $this->readFile($fileName, $timestamp, true);\n }", "title": "" }, { "docid": "9df5ee01825783844bca93df0da53969", "score": "0.5104723", "text": "function saveUserCode() {\n\t\t$fileName = $this->getFilename();\n\t\t$f = fopen(\"./solution/\" . $fileName . \".\" . $this->ext,\"w+\");\n\t\t$userCode = $this->getUserCode();\n\t\tfwrite($f,$userCode);\n\t\tfclose($f); \n }", "title": "" }, { "docid": "81ea242e0449164f2abd69fc3bcc69df", "score": "0.51011264", "text": "public function logFile() {\n\t\tif ( !file_exists( $this->sFilePathIndexLogFile ) ){\n\t\t\ttouch( $this->sFilePathIndexLogFile );\n\t\t} else {\n\t\t\tunlink( $this->sFilePathIndexLogFile );\n\t\t\t$this->logFile();\n\t\t}\n\t}", "title": "" }, { "docid": "b98fa3dbb9f1ec2bdf3a5103818c8e43", "score": "0.50989527", "text": "public function __destruct()\r\n {\r\n $mode = $this->_clear ? 'w' : 'a';\r\n if ($fp = fopen($this->_logFile, $mode)) {\r\n fwrite($fp, implode('', $this->_logs));\r\n fclose($fp);\r\n }\r\n }", "title": "" }, { "docid": "1d065bf99c9d7603bab7dec0d4baf9a9", "score": "0.5094536", "text": "private function save($file) {\n file_put_contents('../database/' . $file . '.json', json_encode($this->memory[$file]));\n }", "title": "" }, { "docid": "4494165a6d0501f2fbdfd9d34cc69575", "score": "0.50864476", "text": "private function dumpRegistry() {\n $fp = fopen($this->mappingRegistryDirectory, \"w\");\n if ($fp) {\n fwrite($fp, serialize($this->registry));\n fclose($fp);\n } else {\n echo \"Failed to write mapping info to file. Please make sure Apache has the write permision.\";\n exit();\n } \n }", "title": "" }, { "docid": "d9c4f152f849211166e68186af07c2ed", "score": "0.5085926", "text": "private function write_lock_file() {\n if (file_exists($this->LOCK_FILE)) {\n echo \"Found lock file ... aborting\".PHP_EOL;\n readfile($this->LOCK_FILE);\n echo PHP_EOL;\n echo \"Current time: \".date('Y-m-d H:i:s').PHP_EOL;\n die();\n }\n $fh = fopen($this->LOCK_FILE, 'w') or die(\"Can't create lock file \".$this->LOCK_FILE.PHP_EOL);\n $stringData = \"Started at: \".date('Y-m-d H:i:s');\n fwrite($fh, $stringData);\n fclose($fh);\n }", "title": "" }, { "docid": "01e0cbe7ef1731649a96455ae182ca4e", "score": "0.5085259", "text": "public function testAppendFile(){\n $io = new IO($this->logger);\n $path = $this->root.\"TestFileDump\";\n $content = \"TEST\";\n $io->dumpFile($path, $content);\n $io->appendToFile($path, $content);\n $content = $content.$content;\n $this->assertEquals(\\file_get_contents($path), $content);\n \\unlink($path);\n }", "title": "" }, { "docid": "378094ddd144c936442eb3d19ea8f5f9", "score": "0.50845027", "text": "public function tearDown()\n {\n if (file_exists(self::$outfile)) {\n unlink(self::$outfile);\n }\n }", "title": "" }, { "docid": "8510ea35a3186fb09e7c2908f2a5d3fc", "score": "0.5077091", "text": "function cleanOutputFile() {\n file_put_contents(DRD_FILE_OUT, '');\n }", "title": "" }, { "docid": "1b0cdc54f5f5958d69e64d5fc65f1ed6", "score": "0.50688416", "text": "public function testDebugOut()\n {\n $sMsg = 'Erik was here..';\n $sFileName = 'oxexceptionsTest_test_debugOut.txt';\n $oTestObject = oxNew('oxException', $sMsg);\n $oTestObject->setLogFileName($sFileName);\n $this->assertEquals('OxidEsales\\EshopCommunity\\Core\\Exception\\StandardException', get_class($oTestObject));\n\n try {\n $oTestObject->debugOut(1); // actuall test\n } catch (Exception $e) {\n // Lets try to delete an eventual left over file\n unlink($this->getConfig()->getConfigParam('sShopDir') . 'log/' . $sFileName);\n $this->fail();\n\n return;\n }\n $sFile = file_get_contents($this->getConfig()->getConfigParam('sShopDir') . 'log/' . $sFileName);\n unlink($this->getConfig()->getConfigParam('sShopDir') . 'log/' . $sFileName);\n // we check on class name and message - rest is not checked yet\n $this->assertContains($sMsg, $sFile);\n $this->assertContains('oxException', $sFile);\n }", "title": "" }, { "docid": "ca35e5c25ab0d1ee7db0d769e4ba919b", "score": "0.50657105", "text": "public function __destruct() {\n if (!empty($this->filepath) && is_dir(dirname($this->filepath))) {\n $data = json_encode($this->data);\n if (FALSE !== $data) {\n file_put_contents($this->filepath, $data);\n }\n }\n }", "title": "" }, { "docid": "466fc6831aea17d94408242f5a05dca5", "score": "0.5065099", "text": "public function write()\n {\n $this->filesystem->put($this->path, json_encode($this->settings));\n }", "title": "" }, { "docid": "bea7c903d4b6c4c44ee863fc84f1c3e9", "score": "0.50615937", "text": "public function saveOnJson(){\r\n $articleJson = $this->getJson();\r\n\r\n $fp = fopen ($this->datafile, \"w+\"); \r\n fputs($fp, $articleJson); \r\n fclose($fp); \r\n }", "title": "" }, { "docid": "fa70a4678a30f89ed366ea168b4eee50", "score": "0.50601506", "text": "public function save($filePath = '');", "title": "" } ]
5f3f714981d1766f2ee9e4cbc63fe573
Hydrates an entity with a provided array of data
[ { "docid": "9614c2ce75bebc57f68b9894606d543c", "score": "0.65398544", "text": "public function hydrate(array $data, EntityInterface $entity): EntityInterface\n {\n foreach ($data as $key => $value) {\n if (!method_exists($entity, $this->getSetterMethodName($key))) {\n throw new \\InvalidArgumentException(sprintf(\n 'The method %s does not exist in %s',\n $this->getSetterMethodName($key),\n get_class($entity)\n ));\n }\n if ($this->strategies[$key]) {\n $strategy = $this->strategies[$key];\n $value = $strategy->hydrate($value);\n }\n $entity->{$this->getSetterMethodName($key)}($value);\n\n }\n\n return $entity;\n }", "title": "" } ]
[ { "docid": "de770a6976eda4bae1bf6c6a39d5edb2", "score": "0.8161738", "text": "public function hydrate($entity, array $data);", "title": "" }, { "docid": "a61cb63fd189f9fe1a932b527cbc17f9", "score": "0.72175163", "text": "public function hydrate(array $data) : void;", "title": "" }, { "docid": "9dfc03bb29a48799a3d0ac22ceca74b1", "score": "0.68530697", "text": "public function build(array $data): EntityInterface;", "title": "" }, { "docid": "7257121690c6bc9082a112ba35417a0d", "score": "0.6810202", "text": "public function hydrate(array $data, object $object);", "title": "" }, { "docid": "9ec44fb54a4c0e4aebe87c978bb3d85a", "score": "0.6779309", "text": "public function hydrate(array $data)\n {\n foreach($data as $element => $value)\n {\n $method = 'set'.ucfirst($element);\n if(method_exists($this,$method))\n $this->$method($value);\n }\n }", "title": "" }, { "docid": "8b20c70f3566a641bcd84cbaa0459794", "score": "0.6758413", "text": "public function hydrate($data = [])\n {\n }", "title": "" }, { "docid": "eb30b9e3fced524e5a0c15065b1abefd", "score": "0.6686523", "text": "public function toEntity($array)\n {\n $hydrator = new DoctrineHydrator($this->entityManager);\n return $hydrator->hydrate($array, $this->exportEntity);\n }", "title": "" }, { "docid": "248a2d9aa11286194e3dc1ccad2991a7", "score": "0.6675691", "text": "public function hydrate(array $data = array())\n {\n return $this->getHydrator()->hydrate($data, $this);\n }", "title": "" }, { "docid": "64a28d987e15f45c6ec0b230e35f7f43", "score": "0.6643275", "text": "public function hydrate (array $data){\n foreach( $data as $key => $value){\n\n $method = 'set'. ucfirst($key); \n\n if (method_exists($this, $method)){\n\n $this->$method($value); \n }\n }\n }", "title": "" }, { "docid": "4d5518261a7f7293a9204fdc66a069c7", "score": "0.6577614", "text": "public function fromArray(array $data): AbstractEntity\n {\n if (empty($this->fillable)) {\n return $this;\n }\n\n foreach ($this->fillable as $field) {\n if (array_has($data, $field)) {\n $this->$field = $data[$field];\n } elseif (array_has($data, snake_case($field))) {\n $this->$field = $data[snake_case($field)];\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "b88e362388f181b6bf24a0cd0a61f1e8", "score": "0.6569589", "text": "public function hydrate(array $data)\n\t{\n\t\t$this->storage = $data;\n\t\t\n\t\tforeach(array_keys($data) as $field) {\n\t\t\t$this->modified_fields[$field] = false;\n\t\t}\n\t\t\n\t\t$this->modified = false;\n\t\t$this->is_loaded = true; // assume the object is loaded from database\n\t}", "title": "" }, { "docid": "90585ed9a1f4faa552af44493060b284", "score": "0.6527857", "text": "function hydrate(array $data)\n {\n foreach($data as $key => $value) \n {\n /* modified $key string into a method by add set and uppercase the first letter */\n $method = 'set' . ucfirst($key);\n if (method_exists($this, $method))\n {\n $this->$method($value);\n }\n }\n }", "title": "" }, { "docid": "d06896f45e8763e0a5337efcc2c87de4", "score": "0.64868706", "text": "public function hydrate(array $pData) {\n foreach($pData as $key => $value) {\n\n $method = 'set' . ucfirst($key);\n if (method_exists($this,$method)) {\n $this->$method($value);\n }\n }\n }", "title": "" }, { "docid": "dc3e06044588a289469de86fe17d0ee8", "score": "0.6407941", "text": "public function hydrate($data)\n {\n }", "title": "" }, { "docid": "f9adfde9820b32acbca87bf2f78d3ee9", "score": "0.6406382", "text": "public function hydrate(array $data)\n\t{\n\t\t// Création de la boucle qui vérifie si la clé correspond à un setter\n\t\tforeach ($data as $key => $value)\n\t\t{\n\t\t\t//ucfirst met le premier caractère en majuscule\n\t\t\t$method = 'set'.ucfirst($key);\n\n\t\t\t// On vérifie si la method set$method existe avec method_exists() qui pend en premier l'instance de la classe et un deux le nom de la method\n\t\t\tif (method_exists($this, $method))\n\t\t\t{\n\n\t\t\t\t// On appelle le setter\n $this->$method($value);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "dafc03ac1743f211390e1ae51b3c9005", "score": "0.64011604", "text": "public function hydrate(array $data) {\n // créer variable $method = \"set\". ucfirst($key); (accéder aux méthodes grace à la suntaxe 'set' + nom de la clé dans le tableau en mettant la première en maj. )\n // if(method_exist($this, $method))\n // retourner la méthode sous la forme : $this->$method($value);\n // end if \n // end foreach\n \n foreach($data as $key => $value) \n {\n $method = 'set' . ucfirst($key);\n if(method_exists($this, $method)) \n {\n $this->$method($value);\n }\n }\n }", "title": "" }, { "docid": "94f368f38b6e55933f6e29c8941d3d54", "score": "0.63489145", "text": "protected function hydrate(array $array)\n\t{\n\t\treturn $this->model->hydrate($array);\n\t}", "title": "" }, { "docid": "6d53e1614e651db3cfaef09f585c39e9", "score": "0.63233465", "text": "public function hydrate(array $data) : self {\n foreach( $data as $key => $value) {\n $methodName = 'set' . ucfirst($key);\n if(method_exists($this->$methodName)) {\n $this->$methodName($value);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "258217bd50103ffec7b30b6de122bb89", "score": "0.6279935", "text": "public function preHydrate($data) { }", "title": "" }, { "docid": "f67206d6583494966e33aa515ab5f8c3", "score": "0.6266017", "text": "public static function map(array $data)\n {\n $instance = new static;\n \n $entity = $instance->findEntity($data['entity_code']);\n \n $attribute = $instance->findAttribute($data['attribute_code'], $entity);\n \n $set = $instance->findOrCreateSet($data['attribute_set'], $entity);\n \n $group = $instance->findOrCreateGroup($data['attribute_group'], $set);\n \n $instance->fill([\n 'entity_id' => $entity->entity_id,\n 'attribute_set_id' => $set->attribute_set_id,\n 'attribute_group_id' => $group->attribute_group_id,\n 'attribute_id' => $attribute->attribute_id\n ])->save();\n }", "title": "" }, { "docid": "0834cd12bc83eb7ce81a82acc9803db3", "score": "0.62027335", "text": "public static function hydrate($data)\n {\n if (!is_array($data)) {\n return $data;\n }\n\n $class = static::class;\n $model = new $class();\n\n foreach ($data as $key => $value) {\n if (property_exists($model, $key)) {\n $model->$key = $value;\n }\n }\n\n return $model;\n }", "title": "" }, { "docid": "1a17b72143cf9554759aed90c09332bd", "score": "0.6181994", "text": "protected function mapDataToEntities(array $data, $entity)\n\t{\n\t\t// Use DataMapper/* classes to form entities, then create a collection of them.\n\t\tthrow new \\BadMethodCallException('Not implemented yet');\n\n\t\treturn new Collection();\n\t}", "title": "" }, { "docid": "69c1b47f313628d912535f80e3bdbf3f", "score": "0.6153132", "text": "public function hydrate(array $data, $object)\n {\n $object->id = $data['id'];\n $object->name = $data['name'];\n $object->description = $data['description'];\n $object->price = $data['price'];\n return $object;\n }", "title": "" }, { "docid": "adfaa74a7e6663282c9da4c4067b96ed", "score": "0.61266035", "text": "public function hydrate($object, array $data): void;", "title": "" }, { "docid": "5d727a8311be270183e6e345220387fe", "score": "0.60879546", "text": "public function __construct(array $data){\n\t\t\t$this->hydrate($data);\t\n\t\t}", "title": "" }, { "docid": "4f249d369a2bb0aed95162c08d620b60", "score": "0.6077244", "text": "function entity($array) {\n $e = construct(EntityType);\n foreach($array as $key => $value) {\n if(is_array($value)) {\n $value = entity($value);\n }\n $e->$key = $value;\n }\n return $e;\n}", "title": "" }, { "docid": "a9b2b0eb87f886fe8e024a301bd4f144", "score": "0.60558206", "text": "private function hydrate($data = array())\n {\n foreach ($data as $key => $value) {\n $method = \"set\" . ucfirst($key);\n if (method_exists($this, $method)) {\n call_user_func(array($this, $method), $value);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "886b54f065f142244b8163e84386669e", "score": "0.5996299", "text": "public function hydrate() {\n }", "title": "" }, { "docid": "7ece7dfb3b22b3d65b9681d944f0c87c", "score": "0.5944471", "text": "public function __construct(array $data)\n {\n $this->hydrate($data);\n }", "title": "" }, { "docid": "5119e8766fed58670803e8d67de6f8b0", "score": "0.5917444", "text": "public function hydrate(array $data, $object)\n {\n // TODO: Implement hydrate() method.\n if(!$object instanceof Prestation) {\n return $object;\n }\n $object->setId(isset($data['p_id']) ? $data['p_id'] : null);\n $object->setName(isset($data['p_name']) ? $data['p_name'] : null);\n $object->setKId( isset($data['k_id'])? $data['k_id']: null );\n $object->setPrice( isset($data['p_price'])? $data['p_price'] : null);\n $object->setOwner( isset($data['p_owner'])? $data['p_owner'] : null);\n $object->setQuantity( isset($data['p_quantity']) ? $data['p_quantity'] : null);\n $object->setCreated( isset($data['p_created']) ? $data['p_created']: null);\n\n if (isset($data['age_categories'])) {\n $ageCategories = [];\n foreach ( explode(',', $data['age_categories']) as $key => $value) {\n list($c_a_id, $c_a_name) = explode(':', $value);\n $ageCategory = new AgeCategory();\n $ageCategory->setId($c_a_id);\n $ageCategory->setName($c_a_name);\n $ageCategories[] = $ageCategory;\n }\n if( count($ageCategories) > 0 )$object->setAgeCategory($ageCategories);\n }\n\n if (isset($data['level_categories'])) {\n $levelCategories = [];\n foreach (explode(',', $data['level_categories']) as $key => $value) {\n list($c_l_id, $c_l_name) = explode(':', $value);\n $levelCategory = new LevelCategory();\n $levelCategory->setId($c_l_id);\n $levelCategory->setName($c_l_name);\n $levelCategories[] = $levelCategory;\n }\n if( count($levelCategories) > 0 )$object->setLevelCategory($levelCategories);\n }\n\n if (isset($data['sub_types'])) {\n $subTypes = [];\n foreach (explode(',', $data['sub_types']) as $key => $value) {\n list($st_id, $st_name) = explode(':', $value);\n $subtype = new SubType();\n $subtype->setId($st_id);\n $subtype->setName($st_name);\n $subTypes[] = $subtype;\n }\n if( count($subTypes) > 0 )$object->setSubTypes($subTypes);\n }\n\n/* if( isset($data['m_id'])) {\n $marker = new Marker();\n $marker->setId($data['m_id']);\n $marker->setLat($data['lat']);\n $marker->setLng($data['lng']);\n\n $object->setMarker($marker);\n }*/\n /*\n $type = new Type();\n $type->setId(isset($data['t_id']) ? $data['t_id'] : null );\n $type->setName( isset( $data['t_name']) ? $data['t_name'] : null );\n $object->setType($type);\n\n if( isset($data['lat']) && isset( $data['lng']) ) {\n\n $locality = new Locality();\n $locality->setId( isset( $data['l_id'])? $data['l_id']: null);\n $locality->setName( isset($data['l_name']) ? $data['l_name']: null);\n $locality->setPostcode( isset($data['l_postcode'])? $data['l_postcode']: null);\n\n\n $country = new Country();\n $country->setId(isset($data['c_id']) ? $data['c_id'] : null);\n $country->setName( isset($data['c_name']) ? $data['c_name']: null );\n $country->setCode(isset($data['c_code']) ? $data['c_code']: null);\n\n $department = null;\n if( isset($data['d_id']) ) {\n $department = new Departement();\n $department->setId(isset($data['d_id']) ? $data['d_id']: null);\n $department->setName(isset($data['d_name']) ? $data['d_name']: null);\n }\n\n $region = null;\n if( isset($data['r_id']) ) {\n $region = new Region();\n $region->setId(isset($data['r_id']) ? $data['r_id']: null);\n $region->setName(isset($data['r_name']) ? $data['r_name']: null);\n }\n\n $marker = new Marker();\n $marker->setId($data['m_id']);\n $marker->setLat($data['lat']);\n $marker->setLng($data['lng']);\n $marker->setLocality($locality);\n $marker->setDepartement($department);\n $marker->setRegion($region);\n $marker->setCountry($country);\n $object->setMarker($marker);\n }*/\n\n return $object;\n }", "title": "" }, { "docid": "c1ca876d65dfe19bc16816607bef9319", "score": "0.58708763", "text": "public static function fromArray(array $_arr): EntityInterface\n {\n // Make Relations Entities\n /** @var CompanyEntity[]|null[] $relatedEntities */\n $relatedEntities = self::makeRelatedEntitiesFromArray([\n 'company' => CompanyEntity::class,\n ], $_arr);\n\n return new static ($_arr['id'], $_arr['email'], $_arr['name'], $_arr['second_name'], ...$relatedEntities);\n }", "title": "" }, { "docid": "3bcefd3b4ae7a52040f8f7808cb01dcc", "score": "0.5853411", "text": "public function EntitiesUpdate($arrayFromClient);", "title": "" }, { "docid": "20f06dc9fe06b16fd230710aa9ef8ac7", "score": "0.58328396", "text": "public function fromArray(array $data): void\n {\n foreach ($this->getModelDefinition() as $field => $definition) {\n if (! isset($data[$field])) {\n continue;\n }\n\n if ($definition['model'] == null) {\n $this->$field = $data[$field];\n } elseif ($definition['array']) {\n $this->$field = array_map(function ($data) use ($definition) {\n if ($data instanceof AbstractModel) {\n return $data;\n } else {\n return $definition['model']::constructFromArray($data);\n }\n }, $data[$field]);\n } else {\n if ($data[$field] instanceof AbstractModel) {\n $this->$field = $data[$field];\n } else {\n $this->$field = $definition['model']::constructFromArray($data[$field]);\n }\n }\n }\n }", "title": "" }, { "docid": "794fff43a27a85104507fa2b5f5034f3", "score": "0.5823572", "text": "abstract protected function createEntity(array $row);", "title": "" }, { "docid": "74f1c0291e76a73391a8d44487e7506a", "score": "0.5785962", "text": "private function createEntity(array $key, array $data)\n {\n list($partitonKey, $rowKey) = array_values($key);\n\n $entity = new Entity();\n $entity->setPartitionKey((string) $partitonKey);\n $entity->setRowKey((string) $rowKey);\n\n foreach ($data as $variable => $value) {\n $type = $this->getPropertyType($value);\n $entity->addProperty($variable, $type, $value);\n }\n\n return $entity;\n }", "title": "" }, { "docid": "319a369538cd5cfdf102e5b7d610e23a", "score": "0.5767039", "text": "public function exchangeArray($data)\r\n {\r\n if(isset($data['id']))\r\n {\r\n $this->id = $data['id'];\r\n unset($data['id']);\r\n } \r\n if(isset($data['definition_id']))\r\n {\r\n $this->definition_id = $data['definition_id'];\r\n unset($data['definition_id']);\r\n } \r\n if(isset($data['guid']))\r\n {\r\n $this->guid = $data['guid'];\r\n unset($data['guid']);\r\n } \r\n if(isset($data['status']))\r\n {\r\n $this->status = $data['status'];\r\n unset($data['status']);\r\n } \r\n if(isset($data['status_id']))\r\n {\r\n $this->status_id = $data['status_id'];\r\n unset($data['status_id']);\r\n } \r\n if(count($data) > 0)\r\n {\r\n foreach($data as $key=>$value)\r\n {\r\n if(isset($this->attributes) && array_key_exists($key, $this->attributes))\r\n {\r\n $attribute = $this->attributes[$key];\r\n $attribute->setValue($data[$key]);\r\n }\r\n// else \r\n// {\r\n// $attribute = new AttributeValueModel($this->dbAdapter);\r\n// $attribute->setData($value);\r\n// }\r\n }\r\n } \r\n }", "title": "" }, { "docid": "63f64ef366dc0c7b9a53a90e173f4163", "score": "0.5749146", "text": "public function hydrate(array $data, $object)\n {\n $object->id = $data['id'];\n $object->username = $data['username'];\n $object->password = $data['password'];\n $object->firstName = $data['first_name'];\n $object->lastName = $data['last_name'];\n $object->role = $data['role'];\n return $object;\n }", "title": "" }, { "docid": "ed0e5bec10ce47298eadfc62122cfa5b", "score": "0.57485706", "text": "public function __construct(array $donnees) {\n $this->hydrate($donnees);\n\n }", "title": "" }, { "docid": "ed0e5bec10ce47298eadfc62122cfa5b", "score": "0.57485706", "text": "public function __construct(array $donnees) {\n $this->hydrate($donnees);\n\n }", "title": "" }, { "docid": "c14135bed816aa5c263a959dec2e867d", "score": "0.57411057", "text": "protected function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->label = $dataSet['label'];\r\n $this->description = $dataSet['description'];\r\n $this->chemin = $dataSet['chemin'];\r\n }", "title": "" }, { "docid": "06c20a32ed8fab5d188b29dec3744b07", "score": "0.5733532", "text": "public function hydrate(array $data, $object)\n {\n return $this->wrappedHydrator->hydrate($data, $object);\n }", "title": "" }, { "docid": "275cb75431d2639b54e9270c47eacafb", "score": "0.57307684", "text": "public function hydrator(): Hydrates;", "title": "" }, { "docid": "6a134f99dee41077b428a4920b533e69", "score": "0.569812", "text": "#[WriteOperation]\n public function update(array $data)\n {\n foreach ($this as $entity) {\n $entity->import($data);\n }\n\n $this->query()->update($data);\n\n return $this;\n }", "title": "" }, { "docid": "8f2b25170b58327b5912d9786f2988d7", "score": "0.56976485", "text": "public function __construct($entity,array $data)\n { \n $this->data=$data;\n $this->entity=$entity;\n }", "title": "" }, { "docid": "f64a7d2396ac66e4d311dee0d16fd55a", "score": "0.5696389", "text": "public function __construct($entity,array $data)\n {\n $this->data=$data;\n $this->entity=$entity;\n }", "title": "" }, { "docid": "f688392d31c04f5235c86e000f0e2718", "score": "0.56959534", "text": "public function hydrate($array)\n\t{\n\t\tforeach($array as $n => $v)\n\t\t{\n\t\t\t$this->$n = $v;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "88d6c6809f848ac126c63f08e9767f6e", "score": "0.56793815", "text": "public function hydrate()\n {\n $this->updateChecksum();\n $this->updateCreatedAt();\n $this->updateName();\n $this->updatePath();\n $this->updateSize();\n $this->updateType();\n $this->updateUpdatedAt();\n $this->updateVersion();\n }", "title": "" }, { "docid": "40cbf1439c79a24794b5b1c8aae9fa6c", "score": "0.5666549", "text": "public function setFromArray($data) {\r\n $data_clear = array ( );\r\n foreach ( $this->_table->getMetadata () as $name => $value ) {\r\n if ($name == \"id\")\r\n continue;\r\n if (isset($data [$name]))\r\n $data_clear [$name] = $data [$name];\r\n }\r\n foreach ( $this->_table->getManyToManyTables () as $manyTable => $toManyTable ) {\r\n $this->_manyToManyData [$manyTable] = $data [$manyTable];\r\n }\r\n\r\n return parent::setFromArray ( $data_clear );\r\n }", "title": "" }, { "docid": "56e9609659a960d16c55d6d09863fa11", "score": "0.5663298", "text": "protected function loadRawEntity(array $data = array())\n {\n\n // laod the callbacks for the actual attribute code\n $callbacks = $this->getCallbacksByType($this->attributeCode);\n\n // invoke the pre-cast callbacks\n foreach ($callbacks as $callback) {\n $this->attributeValue = $callback->handle($this);\n }\n\n // load the default value\n $defaultValue = isset($this->attribute[MemberNames::DEFAULT_VALUE]) ? $this->attribute[MemberNames::DEFAULT_VALUE] : '';\n\n // load the value that has to be casted\n $value = $this->attributeValue === '' || $this->attributeValue === null ? $defaultValue : $this->attributeValue;\n\n // cast the value\n $castedValue = $this->castValueByBackendType($this->backendType, $value);\n\n // merge the casted value into the passed data and return it\n return array_merge(array(MemberNames::VALUE => $castedValue), $data);\n }", "title": "" }, { "docid": "a247b3d168239b505281cc5f6eb88e68", "score": "0.56376714", "text": "public function mapArrayToEntity(array $row)\n {\n $entity = $this->createNewInstance();\n\n foreach ($row as $key => $value) {\n if ($key[0] != '_') {\n continue;\n }\n $mappedKey = $this->applyReversedMapping($key);\n $this->autoMapper->autoSet($mappedKey, $value, $entity);\n }\n\n return $entity;\n }", "title": "" }, { "docid": "75b362fc01bf8b07731a6403bc3b52b7", "score": "0.5635893", "text": "protected function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->label = $dataSet['label'];\r\n $this->affiche = $dataSet['affiche'];\r\n $this->dateCreation = $dataSet['date_creation'];\r\n $this->description = $dataSet['description'];\r\n $this->number = $dataSet['number'];\r\n $this->bareme = $dataSet['bareme_id'];\r\n $this->assignment = $dataSet['assignment_id'];\r\n $this->exam = $dataSet['exam_id'];\r\n //to do: retourner les id assign et exam dans le dataSet\r\n }", "title": "" }, { "docid": "64781d4227646b82b5bfaf75107d0b5f", "score": "0.56252414", "text": "public function initFromArray($entityArray) {\n $properties = get_object_vars($this);\n // Grab JSON array elements for which we have properties.\n foreach($properties as $key=>$value) {\n // Nullify properties not in the source.\n $this->$key = NULL;\n if (isset($entityArray[$key])) {\n $this->$key = $entityArray[$key];\n // Special case for 'entities', so we can serialize it.\n // @TODO: can Doctrine do this for us?\n if ($key == 'entities') {\n $this->$key = serialize($entityArray[$key]);\n }\n }\n }\n // Allow chaining.\n return $this;\n }", "title": "" }, { "docid": "371cbd06cb7d10c4fd2731f06048eea6", "score": "0.56123376", "text": "protected function mapToEntities($data) {\n\t\t$entities = array();\n\t\tif (is_array($data) || $data instanceof \\Traversable)\n\t\t\tforeach ($data as $row) {\n\t\t\t\t$entities[] = $this->mapToEntity($row);\n\t\t\t}\n\t\treturn $entities;\n\t}", "title": "" }, { "docid": "47b529509ab87be2c641eb19b9148976", "score": "0.55933", "text": "public function convertArrayToEntityAndValidate($data, $class, $mode = self::MODE_CREATE, &$entity = null)\n {\n if ($mode != self::MODE_UPDATE || empty($entity)) {\n $entity = new $class();\n }\n $entity = $this->arrayToObject($data, $class, $entity);\n if ($mode != self::MODE_RETRIEVE) {\n $this->validateAccessibleProperties($entity, $data);\n }\n return $entity;\n }", "title": "" }, { "docid": "5bf265b9b4bc7e17c743c931bc3705d5", "score": "0.558341", "text": "public function loadFromArray(array $data);", "title": "" }, { "docid": "2735caf410e42ba0a1bbf86840f43c4e", "score": "0.55703276", "text": "protected function process(array $data)\n {\n $processedData = array();\n\n if (!empty($data)) {\n foreach ($data as $item) {\n try {\n $entity = clone $this->loaderEntity;\n $processedData[] = $entity->init($item);\n unset($entity);\n\n } catch (InvalidArgumentException $e) {\n // ToDo: Log here\n }\n }\n }\n\n return $processedData;\n }", "title": "" }, { "docid": "779cdbead43948061f1153dd693b2609", "score": "0.5566813", "text": "public function __construct($data){\r\n parent::hydrate($data, $this);\r\n }", "title": "" }, { "docid": "e3ff7995e812e1d483b31866b869c602", "score": "0.5565108", "text": "private function hydrate ($args)\n\t{\n\t\tif (is_array($args)){\n if (isset($args['id'])) {\n $this->id = $args['id'];\n\t\t\t}\n\t\t\tif (isset($args['action'])) {\n $this->setAction($args['action']);\n\t\t\t}\n\t\t\tif (isset($args['subject'])) {\n $this->setSubject($args['subject']);\n\t\t\t}\n\t\t\tif (isset($args['startOrigin'])) {\n $this->setStartOrigin($args['startOrigin']);\n\t\t\t}\n\t\t\tif (isset($args['startPos'])) {\n $this->setStartPos($args['startPos']);\n\t\t\t}\n\t\t\tif (isset($args['targetOrigin'])) {\n $this->setTargetOrigin($args['targetOrigin']);\n\t\t\t}\n\t\t\tif (isset($args['targetPos'])) {\n $this->setTargetPos($args['targetPos']);\n\t\t\t}\n\t\t\tif (isset($args['endTime'])) {\n $this->setEndTime($args['endTime']);\n }\n if (isset($args['startTime'])) {\n $this->setStartTime($args['startTime']);\n\t\t\t}\n\t\t\tif (isset($args['author'])) {\n $this->setAuthor($args['author']);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "65717a16e8938a46fc579479f9b642fa", "score": "0.555465", "text": "public function hydrate(array $recipe): Recipe\n {\n $entity = new Recipe();\n $entity->setTitle($recipe['title']);\n\n return $entity;\n }", "title": "" }, { "docid": "f0420edea4869c013449449b103a495f", "score": "0.55287975", "text": "public function onBeforeHydrate(ClassMetadata $metadata, array $data): void;", "title": "" }, { "docid": "7091013170cc24320f530b76c64ed1ee", "score": "0.5504945", "text": "public function hydrate(array $items)\n {\n $instance = $this->model->newInstance();\n\n return $instance->newCollection(array_map(function ($item) use ($instance) {\n\n return $instance->newFromBuilder($item);\n }, $items));\n }", "title": "" }, { "docid": "36d1a23b65afb9601ff05ffed3806608", "score": "0.5503364", "text": "public function populate(array $data) {\n if (!is_array($data)) {\n throw new Jg_DomainObject_Exception('Data to populate must be an array');\n }\n\n foreach ($data as $key => $value) {\n $this->$key = $value;\n }\n return $this;\n }", "title": "" }, { "docid": "0d160327dacfb2342bd6c8a59d4aa9cb", "score": "0.54935735", "text": "public function fill($entity): array;", "title": "" }, { "docid": "89f0f5de2fb8ab0bb3bdd4b5ae86fe7f", "score": "0.5492022", "text": "public function hydrate($value)\n {\n if (empty($value)) {\n return null;\n }\n\n return is_array($value)\n ? $this->getEm()->getRepository($this->entityClass)->findBy([$this->identifier => $value])\n : $this->getEm()->getRepository($this->entityClass)->findOneBy([$this->identifier => $value]);\n }", "title": "" }, { "docid": "a3f5b8a8aa9290fc6be1dd0b0758f1bd", "score": "0.54285365", "text": "public function setFromArray(array $data)\n {\n $primaryKeys = $this->getTable()->getPrimaryKeys();\n\n foreach ($data as $datum) {\n if (is_object($datum) && get_class($datum) == $this->_rowClass) {\n $this->addRow($datum);\n continue;\n }\n\n $keys = array();\n foreach ($primaryKeys as $primaryKey) {\n if (array_key_exists($primaryKey, $datum) && $datum[$primaryKey] !== null) {\n $keys[$primaryKey] = $datum[$primaryKey];\n }\n }\n\n try {\n $row = $this->getRowByPrimaryKeys($keys);\n } catch (Zend_Db_Table_Rowset_Exception $e) {\n $row = $this->createRow();\n $this->addRow($row);\n }\n\n $row->setFromArray($datum);\n }\n }", "title": "" }, { "docid": "ae561f5144beeab438055d6df22ca8dd", "score": "0.5421558", "text": "public function fromArray($data = array())\n {\n foreach ($data as $property => $value) {\n $method = \"set{$property}\";\n $this->$method($value);\n }\n }", "title": "" }, { "docid": "ae561f5144beeab438055d6df22ca8dd", "score": "0.5421558", "text": "public function fromArray($data = array())\n {\n foreach ($data as $property => $value) {\n $method = \"set{$property}\";\n $this->$method($value);\n }\n }", "title": "" }, { "docid": "c2017b5dfc64ce90b1a7e35a655a607c", "score": "0.5418395", "text": "public function fromArray(array $data): self;", "title": "" }, { "docid": "ddb134b9c37b38bdabb1a875a00dcb7c", "score": "0.54152995", "text": "public function convertToEntity($data) {\n\t\tif (is_null($data) || empty($data[$this->alias]['id'])) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->entity($data);\n\t}", "title": "" }, { "docid": "789b6e98e3a1f3752ad720f761d91656", "score": "0.5404293", "text": "public function __construct(array $data)\n {\n\n $this->hydration($data);\n\n }", "title": "" }, { "docid": "c0b96dc8ff5679f21a9ce3d8272bc653", "score": "0.54031634", "text": "public function getObject($array,&$class){\n $this->name = get_class($class);\n $entity = $this->newInstance();\n $this->toObject($array, $entity);\n $reflection = new \\ReflectionObject($entity);\n $property = $reflection->getProperty('id');\n $property->setAccessible(true);\n $property->setValue($entity, $array['id']);\n $class = $entity;\n }", "title": "" }, { "docid": "392e9ccb899ccea8f6514333e2f3cc1e", "score": "0.53991365", "text": "public function setData($array) {\n if (isset($array['id'])) {\n $this->setId($array['id']);\n } else {\n $this->data['id'] = null;\n }\n $this->setName($array['name'] ?? null);\n $this->setSurname($array['surname'] ?? null);\n $this->setCity($array['city'] ?? null);\n }", "title": "" }, { "docid": "28a65d4e293d63818767d35a2c5e2bf8", "score": "0.5385635", "text": "protected function entityToArray(): array\n {\n return [\n \"id\" => (string) $this->id,\n \"attributes\" => $this->attributes->toArray()\n ];\n }", "title": "" }, { "docid": "0f8379b8cca6780e6f6a7fbdbd11a05c", "score": "0.5380616", "text": "public function __construct($data){\n\t\t \n\t\t $this->hydrate($data);\n\t }", "title": "" }, { "docid": "34f249994d945eda43444ee25658459e", "score": "0.5378607", "text": "public function toBigCommerceEntity(): array\n {\n $entityArray = $this->toArray();\n \n $this->propertyUnsetter($entityArray);\n \n return $entityArray;\n }", "title": "" }, { "docid": "a28eecac33d5d777e4b09f9594af3f13", "score": "0.5374411", "text": "protected function hydrate(array $hotels)\r\n {\r\n $hydrated = [];\r\n foreach ($hotels as $hotel) {\r\n $hydrated[] = new Hotel($hotel);\r\n }\r\n return $hydrated;\r\n }", "title": "" }, { "docid": "6b6b20e1a10caf7307b10991fc5c29fb", "score": "0.53711355", "text": "public function __unserialize(array $entities): void\n {\n if (!isset($this->type)) {\n $this->__construct(); // Call the constructor explicitly to set the type if needed.\n }\n\n $setState = [$this->type, '__set_state'];\n\n $pipe = Pipeline::with($entities);\n if (is_callable($setState)) {\n $pipe->map(fn($entity) => is_array($entity) ? $setState($entity) : $entity);\n }\n $pipe->typeCheck($this->type, new \\UnexpectedValueException(\"Expected array of {$this->type} objects, got %s\"));\n\n $this->setEntities($pipe);\n }", "title": "" }, { "docid": "bed2f159fd114dee770b27d8b312f72a", "score": "0.53628004", "text": "public function hydrate(){\n\t\t$query = \"SELECT * \n\t\tFROM `\".$this->tableName.\"`\";\n\t\n\t\t$pk = $this->primaryKey;\n\t\tif (!is_null($this->$pk)){ // si la primarykey a une valeur\n\t\t\t$query .= \" WHERE `\".$this->primaryKey.\"` = '\".$this->$pk.\"'\";\n\t\t}\n\t\telseif(!empty($this->email)){ // sinon on regarde si l'email a une valeur\n\t\t\t$query = \"SELECT * \n\t\t\tFROM `\".$this->tableName.\"`\n\t\t\tWHERE `email`='\".myRealString($this->email).\"'\";\n\t\t}\n\t\telse{\n\t\t\ttrigger_error('Error : You don\\'t have set a primary key');\n\t\t}\n\t\t\n\t\t$data = myFetchAssoc($query);\n\t\tif(count($data) > 0){ // si il n'y a au moins une ligne de resultat\n\t\t\tforeach ($data[0] as $key => $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t\t$this->state_hydrate=true;\n\t\t}\n\t\telse{\n\t\t\t$this->state_hydrate=false;\n\t\t}\n\t}", "title": "" }, { "docid": "d3b595c1cb530b448168ce9753889372", "score": "0.53561234", "text": "public function extract($entity)\n {\n if (get_class($entity) !== $this->entityName &&\n in_array($this->entityName, class_implements($entity))) {\n throw new InvalidArgumentException(\"Expected \".$this->entityName.\" type, but \".get_class($entity).\" type given\");\n }\n\n $data = new Hydrator($this->entityManager);\n\n $localExtractor = function ($item) use (&$localExtractor, $data){\n if (is_object($item)) {\n if ($item instanceof \\DateTime) {\n return $item->format('Y-m-d H:i:s');\n } else if (in_array('getId', get_class_methods($item))) {\n return $item->getId();\n } else {\n return null;\n }\n } else {\n return $item;\n }\n };\n\n return array_map($localExtractor, $data->extract($entity));\n }", "title": "" }, { "docid": "bf9dd1e681dce5396aa8642ce36cd65a", "score": "0.5352566", "text": "public function __construct(array $donnees) {\n $this->hydrate($donnees);\n\n }", "title": "" }, { "docid": "627cc5906f863ae0822ee351584b9929", "score": "0.53491104", "text": "public function getEntityFromDatabaseArray(array $data): Cms\n {\n $entity = new Cms();\n $entity->setId((int) $data['id']);\n $entity->setSlug((string) $data['slug']);\n $entity->setTitle(empty($data['title']) ? [] : \\json_decode($data['title'], true));\n $entity->setContent(empty($data['content']) ? [] : \\json_decode($data['content'], true));\n $entity->setMeta(empty($data['meta']) ? [] : \\json_decode($data['meta'], true));\n\n return $entity;\n }", "title": "" }, { "docid": "5b667283731e0edbc23d11051d3703d4", "score": "0.53475887", "text": "public function hydrate(array $data, $object)\n {\n $object->id_configuracao = $data['id_configuracao'];\n $object->nu_dia_antecedencia = $data['nu_dia_antecedencia'];\n $object->qtd_reserva_mes = $data['qtd_reserva_mes'];\n $object->perm_varias_reserva_dia = $data['perm_varias_reserva_dia'];\n\n return $object;\n }", "title": "" }, { "docid": "6d963bc2cf08bcb62980bad134dbb1ad", "score": "0.5344268", "text": "public function store(array $data) : Model\n {\n return $this->getRepository()->store($data);\n }", "title": "" }, { "docid": "dfe24982f310a5c87b48bad9fd2ce160", "score": "0.53172845", "text": "abstract protected function setEntities(iterable $entities): void;", "title": "" }, { "docid": "6791530c941c42789f17963bc1861eb3", "score": "0.5313507", "text": "public function hydrate(array $donnees)\n {\n foreach ($donnees as $key => $value)\n {\n $method = 'set'.ucfirst($key);\n \n if (method_exists($this, $method))\n {\n $this->$method($value);\n }\n }\n }", "title": "" }, { "docid": "5bfed41d8e1693665d0de18c06310736", "score": "0.5306358", "text": "public function setData($data)\r\n {\r\n if(isset($data['id']))\r\n {\r\n $this->id = $data['id'];\r\n }\r\n \r\n if(isset($data['definition_id']))\r\n {\r\n $this->definition_id = $data['definition_id'];\r\n }\r\n \r\n if(isset($data['guid']))\r\n {\r\n $this->guid = $data['guid'];\r\n }\r\n \r\n if(isset($data['status']))\r\n {\r\n $this->status = $data['status'];\r\n }\r\n \r\n if(isset($data['SValue']))\r\n {\r\n $this->status = $data['SValue'];\r\n }\r\n \r\n if(isset($data['status_id']))\r\n {\r\n $this->status_id = $data['status_id'];\r\n } \r\n \r\n if(isset($data['attributes']))\r\n {\r\n $this->attributes = array();\r\n foreach($data['attributes'] as $attributeData)\r\n {\r\n $aModel = new AttributeValueModel($this->dbAdapter, 'entity', 'entity_id');\r\n $aModel->setData($attributeData);\r\n $this->attributes[$aModel->code] = $aModel;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "785c4a36def78942a3baa906b202255b", "score": "0.530592", "text": "public function hydrate(array $donnees)\n\t{\n\t\t\tforeach ($donnees as $key => $value)\n\t\t\t{\n\t\t\t$method = 'set'.ucfirst($key);\n\t\t\t\n\t\t\tif (method_exists($this, $method))\n\t\t\t{\n\t\t\t\t$this->$method($value);\n\t\t\t}\n\t\t\t}\n\t}", "title": "" }, { "docid": "559afb142e08019cee7227cddb1d827b", "score": "0.5303393", "text": "public function fill(array $data) : Model;", "title": "" }, { "docid": "771e3700406d48a5c2cc7158a8096af5", "score": "0.5303052", "text": "public function hydrate(array $account)\n {\n foreach ($account as $key => $value) {\n $method= \"set\".ucfirst($key);\n if (method_exists($this, $method)) {\n $this->$method($value);\n }\n }\n }", "title": "" }, { "docid": "484a46c2a8647704f50753ee730d101e", "score": "0.5303035", "text": "public function setEntityIds(array $ids) {\n $this->entityIds = $ids;\n return $this;\n }", "title": "" }, { "docid": "ecc73c3e4683f62b7ba51dfd1de61cc5", "score": "0.52856266", "text": "abstract public function transform($entity): array;", "title": "" }, { "docid": "60f9b3abcbca92a52d6d3ebfad833a0f", "score": "0.5283358", "text": "public function dataProviderEntityImport() {\n return [\n 'entity_test' => [\n 'entity_type' => 'entity_test',\n ],\n 'entity_test_no_bundle' => [\n 'entity_type' => 'entity_test_no_bundle',\n 'mapping' => [],\n 'feed_type_config' => [\n 'processor_configuration' => [\n 'authorize' => FALSE,\n ],\n ],\n ],\n 'entity_test_no_label' => [\n 'entity_type' => 'entity_test_no_label',\n ],\n 'entity_test_no_uuid' => [\n 'entity_type' => 'entity_test_no_uuid',\n ],\n 'entity_test_rev' => [\n 'entity_type' => 'entity_test_rev',\n ],\n 'entity_test_with_bundle' => [\n 'entity_type' => 'entity_test_with_bundle',\n 'mapping' => [\n 'name' => 'title',\n 'field_test_text' => 'alpha',\n ],\n 'feed_type_config' => [\n 'processor_configuration' => [\n 'authorize' => FALSE,\n 'values' => [\n 'type' => 'test',\n ],\n ],\n ],\n 'settings' => [\n 'field_test_text' => ['format' => 'plain_text'],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "51f1cafe6964e495f526bc40df76db4d", "score": "0.5266179", "text": "public function mapArrayDataToModel(array $data = [])\n {\n // Convert array to Object.\n $objectData = json_decode(json_encode($data), false);\n\n // Json is not valid.\n if (json_last_error() !== JSON_ERROR_NONE) {\n $this->sendInvalidDataError('Array string supplied to model \"'.get_class($this).'\" is not valid.');\n }\n\n return $this->mapObjectDataToModel($objectData);\n }", "title": "" }, { "docid": "b01b9509dce32bbff87d8ee5aedb5564", "score": "0.5259987", "text": "public function create(): VirtualArrayEntity\n {\n return new VirtualArrayEntity($this->fields);\n }", "title": "" }, { "docid": "4ee76ac3d2c6253a2d95ee58f835716e", "score": "0.52589065", "text": "public function hydrateCollection(array $rows, $entity, $aliased = FALSE, $key)\n\t{\n\t\t$className = $entity;\n\t\t$mappings = $this->mapping->loadMappings($entity);\n\t\t\n\t\t// create object collection\n\t\t$collectionClass = $className.'Collection';\n\t\t\n\t\t$this->identityMap->addCollection($key);\n\t\t\n\t\t// creates objects\n\t\tforeach ($rows as $row) {\n\t\t\t$obj = $this->hydrate($row, $entity, $mappings, $aliased);\n\t\t\t$this->identityMap->addCollection($key, $obj);\n\t\t}\n\t\t\n\t\tif (class_exists($collectionClass)) {\n\t\t\t$objects = new $collectionClass($this->identityMap->getCollection($key));\n\t\t} else {\n\t\t\t$objects = new ObjectCollection($this->identityMap->getCollection($key));\n\t\t}\n\t\t\n\t\treturn $objects;\n\t}", "title": "" }, { "docid": "d0bb85a6502489e0d91185b0fa4644e8", "score": "0.52529293", "text": "public function hydrate(array $donnees) {\n\t\tforeach($donnees as $key => $value) {\n\t\t\t$method = 'set'.ucfirst($key);\n\t\t\tif (method_exists($this, $method)) {\n\t\t\t\t$this->$method($value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f753bd576ba93b5316cf5fb851fac9f5", "score": "0.52509433", "text": "public function setData(Array $data = array())\r\n {\r\n // Entity map for this UntiOfWork\r\n $RoleCollectionEM = array();\r\n // build the Role References\r\n foreach($data as $i => $_data) {\r\n $roles = $_data['RoleCollection'];\r\n $RoleCollection = Factory::createModelCollection('Fiji\\App\\AccessControl\\Model\\Role');\r\n\r\n foreach($roles as $role) {\r\n // get role from Entity Map\r\n $key = serialize($role);\r\n if (!isset($RoleCollectionEM[$key])) {\r\n $Role = Factory::createModel('Fiji\\App\\AccessControl\\Model\\Role')->find($role)->setData($role);\r\n $RoleCollectionEM[$key] = $Role;\r\n }\r\n $RoleCollection->push($RoleCollectionEM[$key]);\r\n }\r\n $data[$i]['RoleCollection'] = $RoleCollection;\r\n }\r\n\r\n // now set the data and allow RoleCollecton \r\n parent::setDynamic($data);\r\n }", "title": "" }, { "docid": "c073a28adb2abf193d38ac45d94ecf2b", "score": "0.5249571", "text": "public function getHydrator();", "title": "" }, { "docid": "77d65c79ffe4870a645ca740c88a5643", "score": "0.5238073", "text": "public function hydrate(array $donnees)\r\n {\r\n foreach ($donnees as $key => $value) {\r\n $method = 'set' . ucfirst($key);\r\n \r\n if (method_exists($this, $method)) {\r\n $this->$method($value);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2003dc14b73c128e06ec87aed496d358", "score": "0.52271235", "text": "abstract protected function arrayableItemsToEntities(array $items): array;", "title": "" } ]
403a2c9c9dd1ef532095befef0f1e00d
Set value in settings
[ { "docid": "adb8c09061e7eadd09953acdefceb26f", "score": "0.0", "text": "public static function set($key, $value, $options = []) {\n\t\t// store value in session\n\t\tif (!empty($options['session'])) {\n\t\t\t$key = array_key_convert_key($key);\n\t\t\tarray_unshift($key, 'registry');\n\t\t\tarray_unshift($key, 'numbers');\n\t\t\t\\Session::set($key, $value);\n\t\t}\n\t\tarray_key_set(self::$settings, $key, $value);\n\t}", "title": "" } ]
[ { "docid": "9e253d47c7d6bf54a8532bb6934ee13f", "score": "0.762531", "text": "static public function set($settings) {}", "title": "" }, { "docid": "8947695065a569bb78ff14a5c2753caa", "score": "0.7060421", "text": "public function set($aSetting);", "title": "" }, { "docid": "c432f1f60e894464f5f2545293d8c214", "score": "0.7046252", "text": "function set_settings($settings)\r\n {\r\n $this->settings = $settings;\r\n }", "title": "" }, { "docid": "dde1132dd26df3fc39da9ce237455f47", "score": "0.70112956", "text": "public function set(string $setting, $value);", "title": "" }, { "docid": "84b01fc50f54f2a41f71b57bac8eb113", "score": "0.69610566", "text": "public function setSettings(?SiteSettings $value): void {\n $this->getBackingStore()->set('settings', $value);\n }", "title": "" }, { "docid": "7d5138b8fefccae6ecbbe28050b72050", "score": "0.6822021", "text": "public function registerSetting();", "title": "" }, { "docid": "ee3e88f416316c3ca7718437f6aeb52b", "score": "0.6816378", "text": "function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6758282", "text": "public function setValue($value);", "title": "" }, { "docid": "24bf6ae9f79332f766c95b1c1912f7f0", "score": "0.674153", "text": "public function setValue( $value );", "title": "" }, { "docid": "9e69c3497cd35d078e2586c3cbb831e1", "score": "0.6552731", "text": "public function setting_change(){\r\n\r\n\t}", "title": "" }, { "docid": "ebdc50f86ae2f467aa3cf1ad022b9383", "score": "0.65496296", "text": "function setValue($value)\n\t{\t\t\n\t\t$this->value = $value;\n\t}", "title": "" }, { "docid": "0246cce9c6ed243e3c9c8f5d317c6f15", "score": "0.6529527", "text": "public function setSettings($settings)\n {\n\n $this->settings = $settings;\n\n }", "title": "" }, { "docid": "2724e075ba4ebc5c70b0c5928b087784", "score": "0.65025103", "text": "public function setSettingsId($value)\n {\n $this->_settingsId = $value;\n }", "title": "" }, { "docid": "fa6ed00b07ad71a781ed6906b9b55917", "score": "0.6475993", "text": "public function setSettings(?array $value): void {\n $this->getBackingStore()->set('settings', $value);\n }", "title": "" }, { "docid": "99bae0ac056ca8a6baa233173507fef7", "score": "0.64730984", "text": "public static function set($key, $value)\n {\n if(SettingsModel::where('name', $key)->get()->first()) {\n $settings = SettingsModel::where('name', $key)->get()->first();\n } else {\n $settings = new SettingsModel;\n $settings->name = $key;\n }\n $settings->value = $value;\n $settings->save();\n }", "title": "" }, { "docid": "0a3f460437e1c5616e1bafdc8ede3b8b", "score": "0.6469196", "text": "public function set(array $settings): void\n {\n }", "title": "" }, { "docid": "adc597c3b4224be92f2b63d318235068", "score": "0.6466015", "text": "function set_value() {\n //\n //The value setting is conditional\n $fname = $this->name;\n //\n //get teh recrod driving this page\n $record = $this->wreading->driver;\n //\n //Return if the values are not set\n if (!isset($record->values)) {\n return;\n }\n //\n //If the named value is not set, return\n if (!isset($record->values->$fname)) {\n return;\n }\n //\n //Oherwise set the value\n $this->value = $record->values->$fname;\n }", "title": "" }, { "docid": "5d18b47ef30b60e7ebe4b3103ceb42ac", "score": "0.6456763", "text": "function _setting($var,$val){\n $this->$var = $val;\n }", "title": "" }, { "docid": "a90a2a2d278c3707abebdd39181b4344", "score": "0.64227116", "text": "public function setSetting($path, $value)\n {\n if ($value === 'false') {\n $value = false;\n } else if ($value === 'true') {\n $value = true;\n } else if ($value === 'null') {\n $value = null;\n }\n \n $parts = explode('.', $path);\n $settings = $this->updateSetting($this->settings, $parts, $value);\n \n if (is_array($settings)) {\n $this->settings = $settings;\n }\n }", "title": "" }, { "docid": "2fc282483c6356ec316fd7af1f2286cd", "score": "0.63691676", "text": "public function setValue($value) { \n\t\t$this->_value = $value; \n\t}", "title": "" }, { "docid": "e781f078af16119e618d704be858c151", "score": "0.6350333", "text": "public function setValue($value){\n $this->value = $value;\n }", "title": "" }, { "docid": "3f6c4a41f2e3f351bb4ed9893aaa145d", "score": "0.6347671", "text": "public static function set($p_key, $p_value, $p_usersettings = false)\n {\n self::$m_changed = true;\n\n if (!isset(static::$m_settings[$p_key]))\n {\n static::$m_dao->set($p_key, $p_value, $p_usersettings)\n ->apply_update();\n } // if\n\n static::$m_settings[$p_key] = $p_value;\n }", "title": "" }, { "docid": "30c2e60021996811e101027aff08f30a", "score": "0.63430816", "text": "function environments_ajax_task_settings_variable_set_value($form, &$form_state) {\n return $form['settings']['value'];\n}", "title": "" }, { "docid": "7014cbc8cecd476d36b5bfbd57b8685f", "score": "0.6333948", "text": "public function testUpdateSettings()\n {\n $this->actingAs($this->user)\n ->visit('/settings')\n ->type('34', 'next_invoice_number')\n ->type('20', 'markup')\n ->press('btnSubmit')\n ->see(trans('settings.update_success'));\n }", "title": "" }, { "docid": "6fa30ad596bf93a36cd4160f8c4b4c66", "score": "0.63145584", "text": "function setUserSetting($id, $setting, $change){\n\tpostThing(userPath($id).\"/\".$setting,$change);\n}", "title": "" }, { "docid": "4867623a0a47cd0030723dbb390672fc", "score": "0.630287", "text": "function setValue($value)\n {\n $this->_value = $value;\n }", "title": "" }, { "docid": "f610aeb09337eaa94b997957450e2293", "score": "0.6297962", "text": "function setValue($value) {\n\t\t$this->setData('value', $value);\n\t}", "title": "" }, { "docid": "e038cd77baf0d39cf9881216b3630124", "score": "0.62888986", "text": "abstract public function setValue($value);", "title": "" }, { "docid": "a808f2fb51a738558d6e393ae9467148", "score": "0.62823915", "text": "public function setValue($value = null);", "title": "" }, { "docid": "a91a9f147d6ea8805176984a0eeda8e9", "score": "0.6274821", "text": "public function setting($settings, $key, $default = null);", "title": "" }, { "docid": "c1c3aaea234b9457a7b1b50588ad286d", "score": "0.6263085", "text": "public function set($name, $value, SettingsOwnerInterface $owner = null);", "title": "" }, { "docid": "083540badb4fc6f65d03e6a33665dc0c", "score": "0.6256042", "text": "public function action_settings()\r\n\t{\r\n\t\tif ($this->valid_post())\r\n\t\t{\r\n\t\t\t$options_post = Arr::get($this->request->post(), 'options', array());\r\n\t\t\t\r\n\t\t\tforeach ($options_post as $group => $setting)\r\n\t\t\t{\r\n\t\t\t\t$config = Kohana::$config->load($group);\r\n\t\t\t\t\r\n\t\t\t\tforeach ($setting as $option => $value)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Probably a better way to do this\r\n\t\t\t\t\tif (strpos($value, 'bool') !== FALSE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$value = (bool) substr($value, 0, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$config->set($option, $value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tNotices::info('admin.settings.set.success');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a07a9b3d8269fe2c237689c0e2ef0c7e", "score": "0.6252727", "text": "public function set(string $key, $value): void\n {\n $this->userSettingsSource->set($key, $value);\n }", "title": "" }, { "docid": "f364743dd7fc1de05e4576f10011beda", "score": "0.625103", "text": "function setting_set($widget_id, array $setting)\n\t{\n\t\t$data = array();\n\t\t$data['setting'] = $setting;\n\t\t$data = $this->handle_data_input($data);\n\t\t\n\t\t$this->update($widget_id, $data);\n\t}", "title": "" }, { "docid": "6f1b1da956b3503bde26cd79621dbab4", "score": "0.6249979", "text": "public function setSettings()\r\n {\r\n $sqlRows = $this->conf->getInternalWPDB()->get_results(\"\r\n\t\t\tSELECT conf_key, conf_value\r\n\t\t\tFROM {$this->conf->getPrefix()}settings\r\n\t\t\tWHERE blog_id='{$this->conf->getBlogId()}'\r\n\t\t\", ARRAY_A);\r\n\r\n foreach ($sqlRows AS $currentRow)\r\n {\r\n if($currentRow['conf_key'])\r\n {\r\n // make edit ready\r\n $this->settings[sanitize_key($currentRow['conf_key'])] = stripslashes(trim($currentRow['conf_value']));\r\n }\r\n }\r\n\r\n if(isset($this->settings['conf_short_date_format']))\r\n {\r\n // Add datepicker format\r\n $datePickerFormat = \"yy/mm/dd\";\r\n if($this->settings['conf_short_date_format'] == \"Y-m-d\")\r\n {\r\n $datePickerFormat = \"yy-mm-dd\";\r\n } else if($this->settings['conf_short_date_format'] == \"d/m/Y\")\r\n {\r\n $datePickerFormat = \"dd/mm/yy\";\r\n } else if($this->settings['conf_short_date_format'] == \"m/d/Y\")\r\n {\r\n $datePickerFormat = \"mm/dd/yy\";\r\n }\r\n $this->settings['conf_datepicker_date_format'] = $datePickerFormat;\r\n }\r\n }", "title": "" }, { "docid": "921c257332223421e2afc210b6594b01", "score": "0.6248199", "text": "public function setFieldSettings($settings = array()) {\n\t\t$this->CustomSettings = serialize($settings);\n\t}", "title": "" }, { "docid": "186d7eb664da26169f32e2b1fca5281f", "score": "0.6242008", "text": "function setting($setting, $status){\n $status = getNumFromStatusBool($status);\n $this->conn->send(\"world.setting\", $setting, $status);\n }", "title": "" }, { "docid": "cd8d8ef476d2540ca8678125fa974e9f", "score": "0.62418705", "text": "public function setValue($value) {\n $this->value = $value;\n }", "title": "" }, { "docid": "cd8d8ef476d2540ca8678125fa974e9f", "score": "0.62418705", "text": "public function setValue($value) {\n $this->value = $value;\n }", "title": "" }, { "docid": "6c12003d10d66a85dc81b081b2451028", "score": "0.6241368", "text": "public function setSettings(array $settings): void;", "title": "" }, { "docid": "d2ba2a77f61cbcba1101c45a1d06dee4", "score": "0.62335306", "text": "function set_cfg($setting,$value)\n\t\t{\n\t\t\tif(isset($this->settings[$setting]) && $value !== '')\n\t\t\t{\n\t\t\t\t$this->settings[$setting] = $value;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "572ee5daaa6035bd170f887a88c2b6df", "score": "0.6219295", "text": "function set_user_setting( $name, $value ) {\n\tif ( headers_sent() ) {\n\t\treturn false;\n\t}\n\n\t$all_user_settings = get_all_user_settings();\n\t$all_user_settings[$name] = $value;\n\n\treturn wp_set_all_user_settings( $all_user_settings );\n}", "title": "" }, { "docid": "c3c649b38700e4125694bc58433c6daa", "score": "0.6208585", "text": "public function set($name, $value)\n {\n if (strpos($name, 'customcss') !== false) {\n $value = strip_tags($value);\n $value = htmlspecialchars($value, ENT_HTML5 | ENT_NOQUOTES | ENT_SUBSTITUTE, 'utf-8');\n }\n\n $this->_settingsDao->updateSetting($name, $value);\n }", "title": "" }, { "docid": "cc34d8a3c08c08d2c70620974259a43d", "score": "0.6199059", "text": "public function set($value){\n\t\t//apc_store($this->prefix.$this->var,$value);\n\t}", "title": "" }, { "docid": "f57d55a014e146e05701c26ae7bd4d67", "score": "0.6169252", "text": "public function save_settings() {\r\n\t\t$this->update_site_option( static::SETTINGS_KEY, $this->settings );\r\n\t}", "title": "" }, { "docid": "16f3079814371b032eee50855a9c2445", "score": "0.61674213", "text": "public function setSetting($name, $value)\n {\n $this->settings[$name] = $value;\n }", "title": "" }, { "docid": "4a7965a7b85b2cccbf475b53ac4fe002", "score": "0.61612314", "text": "public function setSettings($data = [])\n {\n foreach($data as $name => $value)\n {\n $this->storeSetting($name, $value);\n }\n// $this->setCache();\n }", "title": "" }, { "docid": "7b0aa84f57dd17451147447094a2d549", "score": "0.6160768", "text": "function setValue($a_value)\n\t{\n\t\t$this->value = $a_value;\n\t}", "title": "" }, { "docid": "b380be6fe2483d0aebd1ca1ead55a110", "score": "0.6154874", "text": "function setting($setting, $status){\n $status = getNumFromStatusBool($status);\n $this->conn->send($this->pkg. \".setting\", $setting, $status); \n }", "title": "" }, { "docid": "c823bfd5aea6133ca7d5a52c374e2d13", "score": "0.6134835", "text": "function updateSetting($name, $value, $type = null) {\n\t\tparent::updateSetting(array(), $name, $value, $type);\n\t}", "title": "" }, { "docid": "08e8493ece887523bfc9a945eccafd93", "score": "0.61252534", "text": "function bb_update_user_setting( $name, $value )\n{\n\tif ( is_null( $value ) || $value === '' ) {\n\t\treturn;\n\t}\n\n\tif ( !$user = bb_get_current_user() ) {\n\t\treturn;\n\t}\n\n\t$name = (string) $name;\n\t$name = preg_replace( '/[^A-Za-z0-9_]/', '', $name );\n\n\t$value = (string) $value;\n\t$value = preg_replace( '/[^A-Za-z0-9_]/', '', $value );\n\n\t$arr = bb_get_all_user_settings();\n\t$arr[$name] = $value;\n\n\tforeach ( $arr as $k => $v ) {\n\t\t$settings .= $k . '=' . $v . '&';\n\t}\n\t$settings = rtrim( $settings, '&' );\n\n\tbb_update_usermeta( $user->ID, 'bb_user_settings', $settings );\n\tsetcookie( 'bb-user-settings-' . $user->ID, $settings, time() + 31536000, $bb->cookiepath );\n}", "title": "" }, { "docid": "d0d8742f9b038b4835965edde7d00efb", "score": "0.61173594", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "185e2252265f588e92c61eb74f34e9fd", "score": "0.6116488", "text": "private function _settings()\n\t{\n\n\t}", "title": "" }, { "docid": "c0acc14e8b962bc0d8a7e941a5430736", "score": "0.6111994", "text": "public function set_setting($key = '', $val = '')\n\t{\n\t\t$this->settings[$key] = $val;\n\t}", "title": "" }, { "docid": "fa1d359a6dd316d6cfc70529df747f3a", "score": "0.611071", "text": "function cms_setting($id, $value = -1)\n\t{\n\t\t$set = new settings;\n\t\t\n\t\tif ($value != -1)\n\t\t{\n\t\t\t// Gemmer værdi\n\t\t\t$set->set($id, $value);\n\t\t}\n\t\t\n\t\t// Henter værdi\n\t\treturn $set->get($id);\n\t}", "title": "" }, { "docid": "118bcb95bed7e0ebfdb30acc34d0a612", "score": "0.60927826", "text": "public function setValue($value) {\n $this->value = $value;\n }", "title": "" }, { "docid": "118bcb95bed7e0ebfdb30acc34d0a612", "score": "0.60927826", "text": "public function setValue($value) {\n $this->value = $value;\n }", "title": "" }, { "docid": "31fb8a1ebed63bcde746ac208fa3d56b", "score": "0.6092064", "text": "public function savesettings()\n {\n if ($id = $this->input->post('id')) {\n $this->usero->set($id, $this->input->post('value'));\n echo $this->input->post('value');\n }\n else {\n redirect('/user');\n }\n }", "title": "" }, { "docid": "41613ea9edae34c71025bdcd2b8dad52", "score": "0.6078975", "text": "public function set($value)\n {\n }", "title": "" }, { "docid": "fcd091bbb1a8555eeef423fb8204c821", "score": "0.60778147", "text": "protected function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "5e2d7aca9069e56beb3f6dbd5ed320e8", "score": "0.60549754", "text": "public function set_featured_settings( $value )\n\t{\n\t\t$this->_data['featured_settings'] = ( \\is_array( $value ) ? json_encode( $value ) : $value );\n\t}", "title": "" }, { "docid": "69d785b9be206c27d8cfb4167844239c", "score": "0.6050035", "text": "public static function setSettings($values) {\n\t\t$uid = UserModel::getUserID(Environment::getUser()->getIdentity());\n\t\treturn dibi::query('UPDATE `settings` SET ', $values, 'WHERE `User_id`=%i', $uid);\n\t}", "title": "" }, { "docid": "7508626ee9d6657dd5d6733899d266ee", "score": "0.6045913", "text": "public function setValue($value)\n\t{\n\t\t$this->value = $value;\n\t}", "title": "" }, { "docid": "7508626ee9d6657dd5d6733899d266ee", "score": "0.6045913", "text": "public function setValue($value)\n\t{\n\t\t$this->value = $value;\n\t}", "title": "" }, { "docid": "4e6bbcd44bca0961ec953b1b6141d34d", "score": "0.6035433", "text": "function setValue($value){\n\t\t$this->setAttributes([\"value\" => $value]);\n\t}", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "562c102a6fcadf3ebb49a059d7481485", "score": "0.6032075", "text": "public function setValue($value)\n {\n $this->value = $value;\n }", "title": "" }, { "docid": "df017865bc2965b7fbf21ff6f476c2a1", "score": "0.60318196", "text": "protected function defineSettings(){\n $this->settings(array());\n }", "title": "" }, { "docid": "df017865bc2965b7fbf21ff6f476c2a1", "score": "0.60318196", "text": "protected function defineSettings(){\n $this->settings(array());\n }", "title": "" }, { "docid": "df017865bc2965b7fbf21ff6f476c2a1", "score": "0.60318196", "text": "protected function defineSettings(){\n $this->settings(array());\n }", "title": "" }, { "docid": "ce5f2c5ea1e3d1c355b2d209a3f8f00e", "score": "0.60252535", "text": "function Set($id, $name, $value)\n {\n $query = \"INSERT INTO UserSettings VALUES ($id, '$name', '$value') ON DUPLICATE KEY UPDATE value = '$value';\";\n $this->s->ExecQuery($query);\n }", "title": "" }, { "docid": "a1da255038ad627ced958a629bcb59e0", "score": "0.6015108", "text": "function smartcrawl_set_value( $meta, $val, $post_id ) {\n\tupdate_post_meta( $post_id, \"_wds_{$meta}\", $val );\n}", "title": "" }, { "docid": "6ce56c4a512219923d27951f47ab313f", "score": "0.5991759", "text": "public function setSettings($userId, array $settings, $key = null): void\n {\n\n }", "title": "" }, { "docid": "a9e207f3317a110f2d15a2ddeb6fce27", "score": "0.59904784", "text": "public function set($key, $value) {\n\t\tif ( $this->accessLevel == self::ACL_PRIVATE ) {\n\t\t\tthrow new Exception\\Configuration\\ConfigurationAccessException(\"Plugin container for domain \\\"{$this->domain}\\\" has access level set to ACL_PRIVATE.\");\n\t\t}\n\n\t\t$this->settings[$key] = $value;\n\t}", "title": "" }, { "docid": "570cab9062275749299f4810571f33aa", "score": "0.5990091", "text": "public function setSettings($settings = array())\n\t\t{\n\t\t\tforeach ($settings as $k => $v) {\n\t\t\t\t$prop = '_' . $k;\n\t\t\t\tif (property_exists($this, $prop)) {\n\t\t\t\t\t$this->{$prop} = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dacd03cbee4b62cc0cdb364ee7e35f83", "score": "0.5979777", "text": "public function SetValue($valueIn){ $this->value = $valueIn; }", "title": "" }, { "docid": "a0021279b28076b3f710851a904b5a4c", "score": "0.5964811", "text": "function set_value($name,$value){\n\t\tLogMaster::log(\"change value of: \".$name.\" as: \".$value);\n\t\t$this->data[$name]=$value;\n\t}", "title": "" }, { "docid": "ec607a1a1e87aff6964d3af24ce3ff4b", "score": "0.5963303", "text": "protected function _setValue($value)\r\n {\r\n $this->_value = $value;\r\n $this->_messages = array();\r\n }", "title": "" }, { "docid": "0609eca5c6c6feb5b38b8d1ff768b89d", "score": "0.5956949", "text": "public function settings();", "title": "" }, { "docid": "0609eca5c6c6feb5b38b8d1ff768b89d", "score": "0.5956949", "text": "public function settings();", "title": "" }, { "docid": "a9a1f3e6ac3ab61e46ef7f554eff895b", "score": "0.5948601", "text": "public function setValue($val) {\n\t\t$this->value = $val;\n\t}", "title": "" }, { "docid": "1fda31e6dfac8619e9e873aebf785af5", "score": "0.5943704", "text": "public final function setValue($value)\n {\n $this->_value = $value;\n }", "title": "" } ]
50d4da6e963c37a159a401f79e41c767
Logs a user in right after they've created an account
[ { "docid": "71127b01c0e7ddce76bc28c6db7dde35", "score": "0.0", "text": "public function confirmationLoginAction() {\n $config = Zend_Registry::get('app_config');\n $confirmation = $this->_cart_svc->getConfirmation();\n if (!$confirmation) {\n //throw new Exception('User tried to log in from confirmation page but ' .\n // 'confirmation object has expired');\n $this->_redirect($config['wp_url']);\n }\n $token = $this->_request->getParam('token');\n if ($token != $this->_cart_svc->generateConfirmationLoginToken()) {\n throw new Exception('Confirmation login tokens do not match');\n }\n $login_data = array('username' => $confirmation->cart->user->username);\n if (!$this->_users_svc->login($login_data, false, true)) {\n throw new Exception('Confirmation login failed');\n }\n // Redirect to wordpress site\n $this->_redirect($config['wp_url']);\n }", "title": "" } ]
[ { "docid": "1fa259ce0e78451c0200ff12ba9101d0", "score": "0.7079848", "text": "public function loginUser() {\n\t\t// if($this->wire(\"user\")->isLoggedin())\n\t\t// {\n\t\t// \t$session->redirect($this->wire(\"config\")->urls->httpRoot);\n\t\t// }\n\t\tif($this->wire(\"input\")->post->submit && $this->wire(\"input\")->post->user && $this->wire(\"input\")->post->pass) {\n\t\t\t$username = $this->wire(\"sanitizer\")->pageName($this->wire(\"input\")->post->user);\n\t\t\t$pass = $this->wire(\"input\")->post->pass;\n\t\t\t$u = $this->wire(\"pages\")->get(\"template=user, name={$username}\");\n\t\t\tif($this->wire(\"session\")->login($username, $pass)) {\n\t\t\t\t$redirectTo = $this->wire(\"page\")->parent->url;\n\t\t\t\t$this->wire(\"session\")->redirect(\"{$redirectTo}profile\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1224c1c37455020148fb96baf646169b", "score": "0.7011651", "text": "function login_user() {\n\t\tif ( is_user_logged_in() ) {\n\t\t\t// Forward them off to their profile\n\t\t\theader( 'Location: ' . $this->profile_slug );\n\t\t}\n\t\tif ( $_POST && isset( $_POST['your_custom_login'] ) && wp_verify_nonce( $_POST['your_custom_login'], 'your_custom_login' ) ) {\n\t\t\tif ( ! empty( $_POST['log'] ) && ! empty( $_POST['pwd'] ) ) {\n\t\t\t\t// Sign in the user\n\t\t\t\t$user = wp_signon();\n\t\t\t\tif ( ! is_wp_error( $user ) ) {\n\t\t\t\t\t// Forward them off to their profile\n\t\t\t\t\theader( 'Location: ' . $this->profile_slug );\n\t\t\t\t}\n\t\t\t\treturn $user;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d61787886208ae80e0855a8afa4c8d8d", "score": "0.690785", "text": "public function logInUser() {\n\t\t$this->session = $this->getSession();\n\t\tif (!isset($this->session['userId'])) {\n\t\t\t$URLRequest\t\t\t\t= new URLRequest();\n\t\t\t$params \t\t\t\t= $URLRequest->getPostParams();\n\t\t\t$nickname\t\t\t\t= $params['nickName'];\n\t\t\t$lastname\t\t\t\t= $params['lastName'];\n\t\t\t$email\t\t\t\t\t= $params['email'];\n\t\t\t$points\t\t\t\t\t= $params['points'];\n\t\t\t$this->checkAndSaveUser($nickname, $lastname, $email, 0);\n\t\t\t$this->session = $this->setSession();\n\t\t}\n\t\t$response['response'] = 1;\n\t\t$response['maxScore'] = $this->serviceRanking\n\t\t\t->updateUserMaxPoints($this->session['userId'], $points);\n\t\t$this->serviceRanking->saveGameLog(\n\t\t\t$this->session['userId'], $points\n\t\t);\n\t\t$this->rankUser($points);\n\t\tView::jsonEncode($response);\n\t}", "title": "" }, { "docid": "1b3d42b871544efb4bf44829be3dc2d0", "score": "0.6875455", "text": "private function user_do_login()\n {\n $session = Mage::getSingleton('customer/session');\n $temp = Mage::getModel('customer/customer')->load($this->customer_id);\n if($temp->getId())\n {\n $session->setCustomerAsLoggedIn($temp);\n }\n }", "title": "" }, { "docid": "441e88bdcbaf37a2e6a7716be897be9f", "score": "0.68140185", "text": "public function it_logs_in_the_user()\n {\n $user = factory(User::class)->create([\n 'password' => '123123',\n ]);\n\n $this->browse(function ($browser) use ($user) {\n $browser->visit(new Login)\n ->type('@email', $user->email)\n ->type('@password', '123123')\n ->click('@submit')\n ->assertPathIs('/app');\n });\n }", "title": "" }, { "docid": "908f9941a7fd5bf0687b2425b7ab7b96", "score": "0.677114", "text": "public function logIn()\n {\n }", "title": "" }, { "docid": "2440eb85b553edba336500a87f1a5918", "score": "0.6755398", "text": "private function sign_in_post() {\n $user = User::find_by_attribute('email', $this->params['email']);\n\n // No user with the given email or wrong password or the user is\n // blocked/unconfirmed: render the sign-in form with an error.\n $this->detect_sign_in_errors($user);\n\n Session::store_user($user);\n\n // Take care of when an user is redirected here because she tried to access\n // an authenticated url (see the Router).\n $default_url = $user->can_access_backend() ? '/backend' : '/';\n $new_url = Session::referer_and_reset_or_url($default_url);\n\n redirect($new_url, ['notice' => 'Successfully logged in.']);\n }", "title": "" }, { "docid": "5a75b191be1e78dabd4e866037f3dfb6", "score": "0.67001826", "text": "public function login()\n {\n $authorized = $this->authorize( $_POST );\n if( !empty( $authorized ) && $authorized !== false ){\n $this->register_login_datetime( $authorized );\n ( new Events() )->trigger( 1, true );\n } else {\n ( new Events() )->trigger( 2, true );\n }\n }", "title": "" }, { "docid": "dcd64405ec45e3da3f1527d5e5e04797", "score": "0.6689324", "text": "public function user_login()\n {\n $this->feedback('user_login', \"Enter your username : \", array('lb' => null));\n }", "title": "" }, { "docid": "cd4f8222a54e249a6b8c3211c191c82c", "score": "0.6667004", "text": "public function login(){\r\n\r\n\t\t\t//call auth_user here\r\n\t\t\t//$this is used to access any method or properties\r\n\t\t\t\r\n\t\t\t$this->auth_user();\r\n\t\t}", "title": "" }, { "docid": "6467bc1c5bc04cbc2effd76ed5b40d7f", "score": "0.66475016", "text": "public function loginAfterRegistered($account, Request $request)\n {\n if (!Auth::check()) {\n $users = User::whereDomain($account)->get();\n \n if ($users->isNotEmpty() && $users->count() == 1 && !$users->first()->remember_token) {\n //Auth user with id\n Auth::loginUsingId($users->first()->id, true);\n }\n }\n return redirect('/');\n }", "title": "" }, { "docid": "3bdb9991a8872f74f50f25ec5695547e", "score": "0.6645556", "text": "private function login() {\n //Look for this username in the database\n $params = array($this->auth_username);\n $sql = \"SELECT id, password, salt \n FROM user \n WHERE username = ? \n AND deleted = 0\";\n //If there is a User with this name\n if ($row = $this->db->fetch_array($sql, $params)) {\n //And if password matches\n if (password_verify($this->auth_password.$row[0] ['salt'], $row[0] ['password'])) {\n $params = array(\n session_id(), //Session ID\n $row[0] ['id'], //User ID\n self::ISLOGGEDIN, //Login Status\n time() //Timestamp for last action\n );\n $sql = \"INSERT INTO user_session (session_id, user_id, logged_in, last_action) \n VALUES (?,?,?,?)\";\n $this->db->query($sql, $params);\n header('Location: ' . $_SERVER['HTTP_REFERER']);\n //User now officially logged in\n }\n //If password doesn't match\n else {\n //Send user back to login with error\n $this->login_form(self::ERR_NOUSERFOUND);\n }\n }\n //If there isn't a User with this name\n else {\n //Send user back to login with error\n $this->login_form(self::ERR_NOUSERFOUND);\n }\n }", "title": "" }, { "docid": "fab117df32beda994365a0a10e1533ba", "score": "0.6639447", "text": "public function auth_user(){\r\n\t\t\techo $this->username. ' is now authenticated. <br>';\r\n\t\t}", "title": "" }, { "docid": "a695dcffa1dc7f0c8b43cd26624adf85", "score": "0.6628036", "text": "public function do_login()\n {\n $this->userObject = new User();\n\n // grab the uID of the person signing in\n $uid = $this->userObject->checkUser($_POST['user_email'], $_POST['user_password']);\n\n // if the uID exists\n if ($uid) {\n\n $this->set('message', 'You logged in!');\n\n // grab the array of user-data from the database\n $user = $this->userObject->getUser($uid);\n\n // leave out the password\n unset($user['password']);\n unset($user[4]);\n\n // if (strlen($_SESSION['redirect']i) > 0) { // basically, if someone types in the url with the funciton after,\n // // supposed to redirect people to the pages they want.\n // $view = $_SESSION['redirect'];\n // unset($_SESSION['redirect']);\n // header('Location: ' . BASE_URL . $view);\n\n // make the SESSION key 'user' and set it equal to the aray of user-data\n $_SESSION['user'] = $user;\n\n header('Location: /index.php/');\n\n } else {\n\n $this->set('error', 'Sorry! Looks like something might be messed up with your Username or Password! :p');\n }\n }", "title": "" }, { "docid": "6e04308a84d879aaf7fba9f420a516ed", "score": "0.6626817", "text": "function log_me_the_f_in( $user_id ) {\n $user = get_user_by('id',$user_id);\n $username = $user->user_nicename;\n $user_id = $user->ID;\n wp_set_current_user($user_id, $username);\n wp_set_auth_cookie($user_id);\n do_action('wp_login', $username, $user);\n}", "title": "" }, { "docid": "911c6ed1ef1cce24830ccded5542d92a", "score": "0.6622976", "text": "public function complete_login()\n\t{\n\t\tif ($this->loaded())\n\t\t{\n\t\t\t// Update the number of logins\n\t\t\t$this->logins = $this->logins + 1;\n\n\t\t\t// Set the last login date\n\t\t\t$this->last_login = time();\n\n\t\t\t// Save the user\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "911c6ed1ef1cce24830ccded5542d92a", "score": "0.6622976", "text": "public function complete_login()\n\t{\n\t\tif ($this->loaded())\n\t\t{\n\t\t\t// Update the number of logins\n\t\t\t$this->logins = $this->logins + 1;\n\n\t\t\t// Set the last login date\n\t\t\t$this->last_login = time();\n\n\t\t\t// Save the user\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "a2a8261559f04a91206797d484320aa8", "score": "0.66184527", "text": "public function login()\n {\n Kant::$app->admin->on(User::EVENT_BEFORE_LOGIN, [\n $this->getUser(),\n 'generateAuthKey'\n ]);\n return Kant::$app->admin->login($this->getUser(), 60);\n }", "title": "" }, { "docid": "a1a93dc7dd028c4201d48f15d08de89c", "score": "0.65949315", "text": "private function adminLogIn()\n {\n $this->user = factory(Efed\\Models\\Wrestler::class)->create(['admin' => 1]);\n Auth::loginUsingId($this->user->id);\n }", "title": "" }, { "docid": "7585f840fb0be328d70a6f5352737a5a", "score": "0.6580735", "text": "public function loggedinAction(): void\n {\n if(!Auth::reCaptchaCheck())\n $this->redirect('/'.Config::APP_NAME.'/login');\n \t\n $user = User::authenticate($_POST['email'], $_POST['password']);\n \n $remember_me = isset($_POST['remember_me']);\n\n if($user){\n \t\n\t Auth::login($user, $remember_me);\n\t \n\t Flash::addMessage('Login successful');\n \t\n $this->redirect(Auth::getReturnToPage());\n \n }else\n \t\n \tFlash::addMessage('Login unsuccessful, please try again', Flash::WARNING);\n \t\n View::renderTemplate('Accounts/login.html.twig', [\n 'email' => $_POST['email'],\n\t 'remember_me' => $remember_me\n ]);\n }", "title": "" }, { "docid": "7a0692c91edb2a8e799a89ffeb1d7579", "score": "0.65505", "text": "function signInAsUser($args, &$request) {\n\t\t$this->addCheck(new HandlerValidatorJournal($this));\n\t\t// only managers and admins have permission\n\t\t$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_JOURNAL_MANAGER)));\n\t\t$this->validate();\n\n\t\tif (isset($args[0]) && !empty($args[0])) {\n\t\t\t$userId = (int)$args[0];\n\t\t\t$journal =& $request->getJournal();\n\n\t\t\tif (!Validation::canAdminister($journal->getId(), $userId)) {\n\t\t\t\t$this->setupTemplate($request);\n\t\t\t\t// We don't have administrative rights\n\t\t\t\t// over this user. Display an error.\n\t\t\t\t$templateMgr =& TemplateManager::getManager();\n\t\t\t\t$templateMgr->assign('pageTitle', 'manager.people');\n\t\t\t\t$templateMgr->assign('errorMsg', 'manager.people.noAdministrativeRights');\n\t\t\t\t$templateMgr->assign('backLink', $request->url(null, 'manager', 'people', 'all'));\n\t\t\t\t$templateMgr->assign('backLinkLabel', 'manager.people.allUsers');\n\t\t\t\treturn $templateMgr->display('common/error.tpl');\n\t\t\t}\n\n\t\t\t$userDao =& DAORegistry::getDAO('UserDAO');\n\t\t\t$newUser =& $userDao->getUser($userId);\n\t\t\t$session =& $request->getSession();\n\n\t\t\t// FIXME Support \"stack\" of signed-in-as user IDs?\n\t\t\tif (isset($newUser) && $session->getUserId() != $newUser->getId()) {\n\t\t\t\t$session->setSessionVar('signedInAs', $session->getUserId());\n\t\t\t\t$session->setSessionVar('userId', $userId);\n\t\t\t\t$session->setUserId($userId);\n\t\t\t\t$session->setSessionVar('username', $newUser->getUsername());\n\t\t\t\t$request->redirect(null, 'user');\n\t\t\t}\n\t\t}\n\t\t$request->redirect(null, $request->getRequestedPage());\n\t}", "title": "" }, { "docid": "b81e801ad73b3c3cea3bacb23a43fbc2", "score": "0.654723", "text": "private function logInSUUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(1258);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $this->user->setOpRoles('cclavoisier01.in2p3.fr');\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "bda6549dd56969f608a5b42d6fa88146", "score": "0.65380824", "text": "function login()\n\t{\n\t\tif ($this->auth->isLogged()) {\n\t\t\tredirect('user/profile');\n\t\t} else {\n\t\t\tif ($this->validateLogin()) {\n\t\t\t\t$logininfo = $this->getLoginInfo();\n\t\t\t\t$user_info = $this->auth->getUserByLogin($logininfo);\n\t\t\t\tif ($user_info !== false) {\n\t\t\t\t\t$this->auth->setLogIn($user_info);\n\t\t\t\t\tredirect('/portada');\n\t\t\t\t} else {\n\t\t\t\t\t$this->layout->aLE('login_error_message', 'Usuario incorrecto. Intentalo de nuevo.');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->showLoginForm();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "dac937502bb8b10e00d6e13f411260ab", "score": "0.6532587", "text": "public function login() {\n\t\tif ( $this->request->is( 'post' ) ) {\n\t\t\tif ( $this->Auth->login() ) {\n\t\t\t\t$this->Report->success( __( 'Logged in successfuly', true ), array(\n\t\t\t\t\t'autohide' => true,\n\t\t\t\t\t'redirect' => $this->Auth->redirect()\n\t\t\t\t) );\n\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tunset( $this->request->data['User']['password'] );\n\t\t\t\t$this->Report->error( __( 'Invalid username or password, try again' ), array( 'redirect' => false ) );\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9776b0fa8bd54795373350062b2bd0a5", "score": "0.64970684", "text": "public function postLogin() {\n $this->updateLastLogin();\n }", "title": "" }, { "docid": "a42ae27c3533b5bee44648a33f6891d7", "score": "0.648973", "text": "static function login_as_user() {\n // Only act if the nonce verifies (i.e. that this request came from this website)\n if( !wp_verify_nonce( $_REQUEST['_wpnonce'], 'login_as_user' ) ) {\n die( \"false\" );\n }\n // Only act if the currently logged in user is a Super Administrator\n if( !is_super_admin() ) {\n die( \"false\" );\n }\n\n // Sanitize the requested User ID\n $user_id = intval( $_REQUEST['user_id'] );\n\n // Don't allow logging in as another Super Administrator\n if( is_super_admin( $user_id ) ) {\n die( \"false\" );\n }\n\n // Look up the requested User\n $user = new WP_User( $user_id );\n\n // Set the currently logged in user to the requested User\n wp_set_current_user( $user->ID, $user->user_login );\n // Change the currently logged in user's auth cookies\n wp_set_auth_cookie( $user->ID );\n // Do any other login actions\n do_action( 'wp_login', $user->user_login );\n\n // Redirect to the home page\n wp_redirect( '/' );\n\n // Always exit after initiating wp_redirect() or you run into \"Headers Already Sent\" errors\n exit;\n }", "title": "" }, { "docid": "7cc15a3710336c3ebbce0276f18c49de", "score": "0.64776516", "text": "public function login_attempt() {\n //redirect to auth/login if failed.\n \n $post = (object) $this->input->post();\n \n $user = db_get_record(\"users\", array(\"name\" => $post->username, \"password\" => md5($post->pwd)));\n \n \n if(!empty($user)) {\n //$_SESSION['loggedin'] = 1;\n $this->nativesession->set('loggedin', 1);\n } \n \n redirect('admin');\n \n }", "title": "" }, { "docid": "a1c783eda6b5027785a1f8ae6241c94a", "score": "0.6471004", "text": "public function action_login()\n {\n $referrer = Request::$referrer;\n\n $this->template->view = View::factory('account/login')\n ->bind('user', $user)\n ->bind('referrer', $referrer)\n ->bind('errors', $errors);\n\n\n if ($_POST)\n {\n $username = $_POST['username'];\n $password = $_POST['password'];\n\n $user = new Model_User;\n $loggeduser = $user->login($username, $password);\n\n $admin = new Model_Administrator;\n $loggedadmin = $admin->login ($username,$password);\n\n if ($loggeduser) {\n foreach ($loggeduser as $user) {\n $session = Session::instance();\n $session->set('username', $user['username']);\n }\n //redirect to user profile i.e login as user\n $this->request->redirect('user_profile/index/');\n }\n elseif ($loggedadmin) {\n foreach ($loggedadmin as $admin) {\n $session = Session::instance();\n $session->set('username', $admin['username']);\n }\n //redirect to user profile i.e login as admin\n $this->request->redirect('property');\n }\n\n if (!$loggeduser && !$loggedadmin) {\n $invalidlogins = true;\n $this->template->view = View::factory('account/login')\n ->bind('user', $user)\n ->bind('referrer', $referrer)\n ->bind('errors', $invalidlogins);\n }\n }\n }", "title": "" }, { "docid": "03ba36fad31674698be10a38661915a7", "score": "0.6453739", "text": "function userLoggedIn()\n{\n\tif(Auth::check()) {\n\t\t// Log::info('');\n\t\theader('Location: /users/account?id=' . Auth::id() );\n\t\tdie();\n\t}\n}", "title": "" }, { "docid": "b61e18b4c9167219e7e9a92c138098d9", "score": "0.6451511", "text": "function loginUser() {\n}", "title": "" }, { "docid": "24737f9705674b1610b363222d9b8cd6", "score": "0.6440426", "text": "public function login()\n\t{\n\t\tif($this->_identity===null)\n\t\t{\n\t\t\t$this->_identity=new UserIdentity($this->username,$this->password);\n\t\t\t$this->_identity->authenticate();\n\t\t}\n\t\tif($this->_identity->errorCode===UserIdentity::ERROR_NONE)\n\t\t{\n $duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days\n\n\t\t\tYii::app()->user->login($this->_identity,$duration);\n\n $lastLogin = date(\"Y-m-d H:i:s\");\n\n if(Yii::app()->user->tableName === 'tbl_user'){\n $sql = \"UPDATE tbl_user_dynamic SET ulast_login = :lastLogin WHERE user_id = :userid\";\n }\n if(Yii::app()->user->tableName === 'tbl_personnel'){\n $sql = \"UPDATE tbl_user_dynamic SET plast_login = :lastLogin WHERE user_id = :userid\";\n }\n if(Yii::app()->user->tableName === 'tbl_reader'){\n $sql = \"UPDATE tbl_user_dynamic SET rlast_login = :lastLogin WHERE user_id = :userid\";\n }\n $command = Yii::app()->db->createCommand($sql);\n $command->bindValue(\":userid\", $this->_identity->id, PDO::PARAM_STR);\n $command->bindValue(\":lastLogin\", $lastLogin, PDO::PARAM_STR);\n $command->execute();\n Tank::wipeStats();\n Yii::app()->user->setState('todayHasRecord',User::todayHasRecord());\n return true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "ff51312a763600137303e6f5238d8a24", "score": "0.6433071", "text": "public function authAction(){\n $data=$this->model->logging($_POST['email'], $_POST['pass']);\n //If no user returned then throw an error\n if(!is_array($data)){\n View::redirect('/learning/network/public_html/application/views/main/start');\n } else{\n //If it is a user, then set sessions\n $this->user = $data;\n \n //Start session\n Session::sessionStart($this->user[0]);\n \n View::redirect('../views/main/start');\n }\n }", "title": "" }, { "docid": "91cc2485bc46146c958f027f36844dfc", "score": "0.6422611", "text": "public function login()\n\t{\n\t\t//Compute the hash code of the password submited by user\n\t\t$user_password_hash = $this->passwordEncrypt($this->user_info['user_password']);\n\t\t\n\t\t//Do datebase query to get the hash code of the password\n\t\t$db = BFL_Database :: getInstance();\n\t\t$stmt = $db->factory('select `user_id`,`user_password` from '.DB_TABLE_USER.' WHERE `user_name` = :user_name');\n\t\t$stmt->bindParam(':user_name', $this->user_info['user_name']);\n\t\t$stmt->execute();\n\t\t$rs = $stmt->fetch();\n\t\tif (empty($rs))\n\t\t\tthrow new MDL_Exception_User_Passport('user_name');\n\t\t\n\t\tif ($rs['user_password'] != $user_password_hash)\n\t\t\tthrow new MDL_Exception_User_Passport('user_password');\n\n\t\t//Set user session\n\t\t$auth = BFL_ACL :: getInstance();\n\t\t$auth->setUserID($rs['user_id']);\n\t}", "title": "" }, { "docid": "5eb5150490bb926d875b502463683669", "score": "0.6408087", "text": "public static function LoggedIn() {\n\t\tif (empty($_SESSION['current_user'])) {\n\t\t\tnotfound();\n\t\t}\n\t}", "title": "" }, { "docid": "b6d4fe1dae69b1a94f6769abb6d50125", "score": "0.6385948", "text": "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "title": "" }, { "docid": "6e8d9fb50c60ff5222ac3ccb386d6c15", "score": "0.6379766", "text": "private function logIn()\n {\n $element = new Submit('login');\n $element->setAttribute('class', 'btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light');\n $element->setUserOption('mainClass', 'form-group text-center m-t-20');\n $this->add($element);\n }", "title": "" }, { "docid": "5a215e6114c14e49d0c2f3be65a59880", "score": "0.6378643", "text": "public function login(User $user, Request $request): void;", "title": "" }, { "docid": "17bc37eb518b6f408f8fcaa5b0b0e075", "score": "0.63743585", "text": "private function logInSimpleUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(41);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "d7ad502b0a10a94b74847c7d8ed31979", "score": "0.63517505", "text": "protected function login()\n {\n $this->send(Response::nick($this->config['nick']));\n $this->send(Response::user(\n $this->config['nick'],\n $this->config['hostname'],\n $this->config['servername'],\n $this->config['realname']\n ));\n }", "title": "" }, { "docid": "bb3a911e92fe51cb6e2dd440a0dffcce", "score": "0.63362163", "text": "public function login()\n {\n $return_to = $this->input->get('return_to');\n $this->aad_auth->login($return_to === NULL ? site_url() : $return_to);\n }", "title": "" }, { "docid": "3fbaa12feafc47ac5a15b302bc329084", "score": "0.63133335", "text": "function loggedin() {\n $this->checkAccess('user',false,false);\n\n $template = new Template;\n $user = new User($this->db);\n\n //get user details\n $user->getByEmail($this->f3->get('SESSION.email'));\n $this->f3->set('user', $user);\n\n //get user followers\n $this->f3->set('followers', $user->getUserFollowers($this->f3->get('SESSION.cid'))[0]);\n\n //get user waiting position\n $this->f3->set('waitrank', $user->getUserWaitPosition($this->f3->get('SESSION.cid'))[0]);\n\n echo $template->render('header.html');\n echo $template->render('user/user.html');\n echo $template->render('footer.html');\n }", "title": "" }, { "docid": "0c6fde3d608d5de5a986c1ad501cef7c", "score": "0.6303471", "text": "public function complete_login() : void\n {\n if ($this->_loaded) {\n // Update the number of logins\n $this->logins = new Exception('logins + 1');\n\n // Set the last login date\n $this->last_login = time();\n\n // Save the user\n $this->update();\n }\n }", "title": "" }, { "docid": "5c1280add9dd5d606ea9a4b158bb1ad4", "score": "0.62990254", "text": "private function loginUser($user) {\n $this->Session->write('Auth.User.Id', $user['id']);\n $this->Session->write('Auth.User.Email', $user['email']);\n $this->Session->write('Auth.User.Password', $user['password']);\n\n if($user['first_login'] == 1){\n $this->redirect(['controller' => 'users', 'action' => 'activeAccount']);\n }\n\n try {\n $this->User->save(['id'=> $user['id'], 'last_login' => date('Y-m-d H:i:s', time())]);\n $this->redirect(\n [\n 'controller' => 'home',\n 'action' => 'index'\n ]\n );\n } catch (Exception $e) {\n $this->Session->delete('Auth');\n throw $e;\n }\n }", "title": "" }, { "docid": "7bc5988dd32f9af4d63bec01bdebe637", "score": "0.6297868", "text": "public function login() {\n //if ($this->chkLimitErrTime() && $this->allowMulAdm() &&\n // $this->validUserAndPwd()) {\n if ($this->validUserAndPwd()) {\n $this->isValidUser = true;\n $this->leftmenu =\n leftmenu::instance()->getLeftmenuHtml();\n //$this->getOutOrInHost();\n } else {\n $this->isValidUser = false;\n }\n }", "title": "" }, { "docid": "1d6cc91e09ef328f50da8db9dc9a6588", "score": "0.62905556", "text": "function loginUser($uname, $rememberMe)\n\t{\n\t\t// Due to privileges being elevated, create a new session ID for the user\n\t\tsession_regenerate_id();\n\t\t\n\t\t// Log the user in\n\t\t$_SESSION['uname'] = $uname;\n\t\t\n\t\t// Remember the user if they agreed to it\n\t\tif (isset($rememberMe))\n\t\t{\n\t\t\tcreatePersistentSession($uname);\n\t\t}\n\t}", "title": "" }, { "docid": "f59ac6b2855187b4dec7e49f0a61b84f", "score": "0.62879205", "text": "public function login()\n\t{\n\t\t\\System::loadLanguageFile('default');\n\n\t\t// Do not continue if username or password are missing\n\t\tif (empty($_POST['username']) || empty($_POST['password']))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Load the user object\n\t\tif ($this->findBy('username', \\Input::post('username', true)) == false)\n\t\t{\n\t\t\t$blnLoaded = false;\n\n\t\t\t// HOOK: pass credentials to callback functions\n\t\t\tif (isset($GLOBALS['TL_HOOKS']['importUser']) && is_array($GLOBALS['TL_HOOKS']['importUser']))\n\t\t\t{\n\t\t\t\tforeach ($GLOBALS['TL_HOOKS']['importUser'] as $callback)\n\t\t\t\t{\n\t\t\t\t\t$this->import($callback[0], 'objImport', true);\n\t\t\t\t\t$blnLoaded = $this->objImport->{$callback[1]}(\\Input::post('username', true), \\Input::postUnsafeRaw('password'), $this->strTable);\n\n\t\t\t\t\t// Load successfull\n\t\t\t\t\tif ($blnLoaded === true)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Return if the user still cannot be loaded\n\t\t\tif (!$blnLoaded || $this->findBy('username', \\Input::post('username', true)) == false)\n\t\t\t{\n\t\t\t\t\\Message::addError($GLOBALS['TL_LANG']['ERR']['invalidLogin']);\n\t\t\t\t$this->log('Could not find user \"' . \\Input::post('username', true) . '\"', __METHOD__, TL_ACCESS);\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t$time = time();\n\n\t\t// Set the user language\n\t\tif (\\Input::post('language'))\n\t\t{\n\t\t\t$this->language = \\Input::post('language');\n\t\t}\n\n\t\t// Lock the account if there are too many login attempts\n\t\tif ($this->loginCount < 1)\n\t\t{\n\t\t\t$this->locked = $time;\n\t\t\t$this->loginCount = \\Config::get('loginCount');\n\t\t\t$this->save();\n\n\t\t\t// Add a log entry and the error message, because checkAccountStatus() will not be called (see #4444)\n\t\t\t$this->log('User \"' . $this->username . '\" has been locked for ' . ceil(\\Config::get('lockPeriod') / 60) . ' minutes', __METHOD__, TL_ACCESS);\n\t\t\t\\Message::addError(sprintf($GLOBALS['TL_LANG']['ERR']['accountLocked'], ceil((($this->locked + \\Config::get('lockPeriod')) - $time) / 60)));\n\n\t\t\t// Send admin notification\n\t\t\tif (\\Config::get('adminEmail') != '')\n\t\t\t{\n\t\t\t\t$objEmail = new \\Email();\n\t\t\t\t$objEmail->subject = $GLOBALS['TL_LANG']['MSC']['lockedAccount'][0];\n\t\t\t\t$objEmail->text = sprintf($GLOBALS['TL_LANG']['MSC']['lockedAccount'][1], $this->username, ((TL_MODE == 'FE') ? $this->firstname . \" \" . $this->lastname : $this->name), \\Idna::decode(\\Environment::get('base')), ceil(\\Config::get('lockPeriod') / 60));\n\t\t\t\t$objEmail->sendTo(\\Config::get('adminEmail'));\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check the account status\n\t\tif ($this->checkAccountStatus() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// The password has been generated with crypt()\n\t\tif (\\Encryption::test($this->password))\n\t\t{\n\t\t\t$blnAuthenticated = \\Encryption::verify(\\Input::postUnsafeRaw('password'), $this->password);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlist($strPassword, $strSalt) = explode(':', $this->password);\n\t\t\t$blnAuthenticated = ($strSalt == '') ? ($strPassword === sha1(\\Input::postUnsafeRaw('password'))) : ($strPassword === sha1($strSalt . \\Input::postUnsafeRaw('password')));\n\n\t\t\t// Store a SHA-512 encrpyted version of the password\n\t\t\tif ($blnAuthenticated)\n\t\t\t{\n\t\t\t\t$this->password = \\Encryption::hash(\\Input::postUnsafeRaw('password'));\n\t\t\t}\n\t\t}\n\n\t\t// HOOK: pass credentials to callback functions\n\t\tif (!$blnAuthenticated && isset($GLOBALS['TL_HOOKS']['checkCredentials']) && is_array($GLOBALS['TL_HOOKS']['checkCredentials']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['checkCredentials'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0], 'objAuth', true);\n\t\t\t\t$blnAuthenticated = $this->objAuth->{$callback[1]}(\\Input::post('username', true), \\Input::postUnsafeRaw('password'), $this);\n\n\t\t\t\t// Authentication successfull\n\t\t\t\tif ($blnAuthenticated === true)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Redirect if the user could not be authenticated\n\t\tif (!$blnAuthenticated)\n\t\t{\n\t\t\t--$this->loginCount;\n\t\t\t$this->save();\n\n\t\t\t\\Message::addError($GLOBALS['TL_LANG']['ERR']['invalidLogin']);\n\t\t\t$this->log('Invalid password submitted for username \"' . $this->username . '\"', __METHOD__, TL_ACCESS);\n\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->setUserFromDb();\n\n\t\t// Update the record\n\t\t$this->lastLogin = $this->currentLogin;\n\t\t$this->currentLogin = $time;\n\t\t$this->loginCount = \\Config::get('loginCount');\n\t\t$this->save();\n\n\t\t// Generate the session\n\t\tsession_regenerate_id();\n\t\t$this->generateSession();\n\n\t\t$this->log('User \"' . $this->username . '\" has logged in', __METHOD__, TL_ACCESS);\n\n\t\t// HOOK: post login callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['postLogin']) && is_array($GLOBALS['TL_HOOKS']['postLogin']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['postLogin'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0], 'objLogin', true);\n\t\t\t\t$this->objLogin->{$callback[1]}($this);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c92e577167a761f78059a10a13b52ad9", "score": "0.6280749", "text": "public function p_login() {\n\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t\t# If we didn't find a matching token in the database, it means login failed\n\t\tif(!$token) {\n\n\t\t\t# Send them back to the login page\n\t\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t# But if we did, login succeeded! \n\t\t} else {\n\t\t\tsetcookie(\"token\", $token, strtotime('+1 year'), '/');\n\t\t\t# Send them to the main page - or whever you want them to go\n\t\t\tRouter::redirect(\"/\");\n\t\t}\n\t}", "title": "" }, { "docid": "83a60ef4f5582d99c9c507abc2194fec", "score": "0.62722546", "text": "private function login() {\r\n\t\tif (isset($_SESSION[$this->app->config->get('auth.session')])) {\r\n\t\t\t//find user data and set to the app auth\r\n\t\t\t$user = $this->app->user->find($_SESSION[$this->app->config->get('auth.session')]);\r\n\r\n\t\t\tif ($user && !$user->isBan()) {\r\n\t\t\t\t$this->app->auth = $user;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bb63434ea884199b426c90394ecb02c5", "score": "0.6269214", "text": "private function auto_Login($user) {\n $this->session->unset_userdata('session_login_in');\n $session_data = array(\n 'user_id' => $user->user_id,\n 'logged_in' => TRUE,\n 'mail' => $user->mail\n );\n $this->session->set_userdata('session_login_in', $session_data);\n }", "title": "" }, { "docid": "107b20f7f3fff6814530098fccbeb3cf", "score": "0.62617564", "text": "private function logInVOUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(44);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "0d3960d488906f650004db18eae253d9", "score": "0.624936", "text": "public function loginUser()\n {\n $validate = $this->loginValidator->validate();\n $user = $this->userRepository->getUserWithEmail($validate[\"email\"]);\n\n if ($this->userCorrect($validate, $user)) {\n $user['api_token'] = $this->getToken();\n $user->save();\n\n return $this->successResponse('user', $user, 200)\n ->header('Token', $user['api_token']);\n }\n }", "title": "" }, { "docid": "27587ae9dfccc21206559b683b5e08ef", "score": "0.6246181", "text": "public function onUserLogin($event)\n {\n // \\Log::info('User has logged in');\n $event->user->last_login = Carbon::now();\n $event->user->ip = \\Request::ip();\n $event->user->save();\n }", "title": "" }, { "docid": "b64d6b54dae6e9682b56fc4c6a8ad7b6", "score": "0.6245636", "text": "public function rzr_login(){\n\t\t\t$email = wp_strip_all_tags($_POST['email']);\n\t $pass = wp_strip_all_tags($_POST['pass']);\n\t $remember = ($_POST['terms']=='agree'?true:false);\n\t $creds = array();\n\t $creds['user_login'] = $email;\n\t $creds['user_password'] = $pass;\n\t $creds['remember'] = $remember;\n\t $user = wp_signon( $creds, false );\n\t \n\t if ( is_wp_error($user) ){\n\t echo $user->get_error_message();\n\t }\n\t else{\n\t wp_redirect(admin_url());\n\t die;\n\t }\n\t\t}", "title": "" }, { "docid": "cd236f25c004de17545d60dbcfdad09a", "score": "0.62367845", "text": "public function login()\n\t{\n\t\t$account = $_POST['account'];\n\t\t$password = $_POST['password'];\n\t\t$staff = D('Staff');\n\t\t$sql = \"select * from lib_staff where staff_id = '{$account}' and password='{$password}'\";\n\t\t$return = $staff->query($sql);\n\t\tif ($return) {\n\n\t\t\tcookie('staffAccount', $account, 3600 * 24);\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'success',\n\t\t\t\t'msg' => 'Welcome!'\n\t\t\t));\n\t\t\techo $json;\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "title": "" }, { "docid": "12f21c418f27faef9204fd029aa97139", "score": "0.6235343", "text": "public function login()\n {\n }", "title": "" }, { "docid": "105d511ec4a0377f0536f1414c6ea731", "score": "0.62285846", "text": "public function login()\n\t{\n\t\t$mtg_login_failed = I18n::__('mtg_login_failed');\n\t\tR::selectDatabase('oxid');\n\t\t$sql = 'SELECT oxid, oxfname, oxlname FROM oxuser WHERE oxusername = ? AND oxactive = 1 AND oxpassword = MD5(CONCAT(?, UNHEX(oxpasssalt)))';\n\t\t$users = R::getAll($sql, array(\n\t\t\tFlight::request()->data->uname,\n\t\t\tFlight::request()->data->pw\n\t\t));\n\t\tR::selectDatabase('default');//before doing session stuff we have to return to db\n\t\tif ( ! empty($users) && count($users) == 1) {\n\t\t\t$_SESSION['oxuser'] = array(\n\t\t\t\t'id' => $users[0]['oxid'],\n\t\t\t\t'name' => $users[0]['oxfname'].' '.$users[0]['oxlname']\n\t\t\t);\n\t\t} else {\n\t\t\t$_SESSION['msg'] = $mtg_login_failed;\n\t\t}\n\t\t$this->redirect(Flight::request()->data->goto, true);\n\t}", "title": "" }, { "docid": "6bf73773c9f8eee569de8e96c500e17e", "score": "0.62253577", "text": "public function login (){\n\t\t$user = $this->get_by(array(\n\t\t\t'email' => $this->input->post('email'),\n\t\t\t'password' => $this->hash($this->input->post('password')),\n\t\t\t), TRUE);\n\t\t\n\t\tif (count($user)) {\n\t\t\t// Log in user\n\t\t\t$data = array(\n\t\t\t\t'username' => $user->username,\n\t\t\t\t'email' => $user->email,\n\t\t\t\t'id' => $user->id,\n\t\t\t\t'loggedin' => TRUE,\n\t\t\t);\n\t\t\t$this->session->set_userdata($data);\n\t\t}\n\t\t}", "title": "" }, { "docid": "de4bb6c24c4dad9a0d9fc744e3966885", "score": "0.6225068", "text": "public function actionLogin() {\n if (WebApp::get()->user()->isConnected()) { // can't login if is already connected\n WebApp::get()->request()->goToPage('home');\n }\n $user = \\app\\models\\User::model('login');\n if ((isset($_POST['login']) || isset($_POST['resend'])) && $user->setAttributes($_POST['User'])->validate()) {\n if ($user->login()) {\n WebApp::get()->request()->goBack(); // refresh so that it will be redirected back where it has to go.\n }\n }\n $this->assign('model', $user);\n }", "title": "" }, { "docid": "3d77829a151db8b3265503ba1dbe00be", "score": "0.6224957", "text": "public function login() {\n\t\tif ($this->request->is('post')) {\n\t\t\t$isValidUser = $this->User->find('first', array('conditions' => array('User.email' => $this->request->data['Login']['email'], 'User.password' => md5($this->request->data['Login']['password']))));\n\t\t\tif (!empty($isValidUser)) {\n\t\t\t\t$this->setUserSession($isValidUser['User']);\n\t\t\t\tif (!empty($this->request->data['Login']['remember_me'])) {\n\t\t\t\t\t$this->RememberMe->rememberUser($isValidUser['User']['email'], \"14 Days\");\n\t\t\t\t}\n\t\t\t\t$this->Session->setFlash(\"Successfully logged in!\");\n\t\t\t\t$this->redirect('/dashboard');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(\"Email address or password is wrong.\");\n\t\t\t}\n\t\t}\n\t\t$this->set('title_for_layout', 'Login');\n\t\t$this->layout = 'signin';\n\t}", "title": "" }, { "docid": "d2aaa335a8f22906ed2a277efe1396e5", "score": "0.622189", "text": "public function loginAction()\n {\n $account = new AccountModel();\n $account = $account->loadFromUsername($_POST['username']);\n $password = $_POST['password'];\n error_log($account->getId());\n\n if ($account->getId() == null) {\n return($this->indexActionWithError(\"That username doesn't exist\"));\n } else if (!password_verify($password, $account->getPassword())) {\n return($this->indexActionWithError(\"Incorrect Password\"));\n } else {\n $accountCookie = array('id' => $account->getId(),\n 'name' => $account->getName(),\n 'username' => $account->getUsername(),\n 'email' => $account->getEmail());\n setcookie(\"account\", json_encode($accountCookie), time() + (86400 * 30), \"/\");\n// error_log(json_encode($accountCookie));\n $view = new View('welcome');\n $view->addData(\"accountName\", $accountCookie['name']);\n echo $view->render();\n }\n }", "title": "" }, { "docid": "54397542cc638a514ed145773c78be34", "score": "0.6218302", "text": "public function handleUserLogin($event) {\n //Log user login\n $activity = new Activity;\n $activity->activity_type = 'login';\n $activity->actor_id = $event->user->id;\n $activity->actor_type = 'user';\n $activity->activity_data = '';\n $activity->user_agent = $this->request->header('User-Agent');\n $activity->actor_ip = $this->request->ip();\n $activity->save();\n }", "title": "" }, { "docid": "c8f99f39a286c8c394dcb9cae17dcf1d", "score": "0.6199673", "text": "public function doLogin()\n {\n $repo = App::make('UserRepository');\n $input = Input::all();\n\n if ($repo->login($input)) {\n return Redirect::intended('/dashboard');\n\n Audit::logaudit('System', 'login', 'Logged in: '.Confide::user()->username);\n\n } else {\n if ($repo->isThrottled($input)) {\n $err_msg = Lang::get('confide::confide.alerts.too_many_attempts');\n\n Audit::logaudit('System', 'login', 'failed log in attempt');\n } elseif ($repo->existsButNotConfirmed($input)) {\n $err_msg = Lang::get('confide::confide.alerts.not_confirmed');\n } else {\n $err_msg = Lang::get('confide::confide.alerts.wrong_credentials');\n }\n\n return Redirect::action('UsersController@login')\n ->withInput(Input::except('password'))\n ->with('error', $err_msg);\n }\n }", "title": "" }, { "docid": "ae6fca863d3f0c44b7aef29443271e7e", "score": "0.61959565", "text": "public function post_login()\n\t{\n\t\t\n\t\t$remember = Input::get('remember');\n \t\t$credentials = array(\n \t\t\t'username' => Input::get('username'), \n \t\t\t'password' => Input::get('password'),\n \t\t\t'remember' => !empty($remember) ? $remember : null\n \t\t);\n \t\t\n \tif (Auth::attempt( $credentials ))\n\t\t{\n\t\t \treturn Redirect::to_action('home@index');\n\t\t}else{\n\t\t\treturn Redirect::to_action('home@login')\n\t\t\t->with_input()\n\t\t\t->with('login_errors', true);\n }\n\t}", "title": "" }, { "docid": "908aa3cc6a08a3cbf67d586004cb5b3c", "score": "0.6190983", "text": "public function signIn($user)\n {\n $this->setAuthenticated(true);\n\n $this->setAttribute('loggedin', true, 'user');\n $this->setAttribute('remoteaddress', $_SERVER['REMOTE_ADDR'], 'user');\n $this->setAttribute('useragent', $_SERVER['HTTP_USER_AGENT'], 'user');\n\n $this->initializeUser($user);\n }", "title": "" }, { "docid": "acdfd8ffa0b70ed21ca0ebd41c8faeb9", "score": "0.61853516", "text": "public function signIn()\r\n {\r\n // echo 'User Sign In!';\r\n $this->show( );\r\n }", "title": "" }, { "docid": "36947059c85b38c57dc67c45e4c106a8", "score": "0.61799926", "text": "function userLogin($userData)\n\t\t{\n\t\t\t//at first we are checking that the input value is username or email id\n\t\t\t$presenceChar = strpos($userData['username'],'@');\n\t\t\tif(empty($presenceChar))\n\t\t\t{\n\t\t\t\t$column_name = 'username';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$column_name = 'email_id';\n\t\t\t}\n\t\t\t//getting the password from database\n\t\t\t$userCreden = $this->manageContent->getValue_where('user_credentials','*',$column_name,$userData['username']);\n\t\t\tif(!empty($userCreden[0]))\n\t\t\t{\n\t\t\t\t//checking for password field\n\t\t\t\tif($userCreden[0]['password'] == md5($userData['password']))\n\t\t\t\t{\n\t\t\t\t\tif($userCreden[0]['status'] == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//setting cookie expiry time\n\t\t\t\t\t\tif($userData['loggedin_time'] == 'on')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$cookie_exp_time = time() + (2*7*24*3600);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$cookie_exp_time = time() + (24*3600);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//creating the cookie\n\t\t\t\t\t\t$set_cookie = $this->createCookie('uid',$userCreden[0]['user_id'],$cookie_exp_time);\n\t\t\t\t\t\t//calculating total number of sign in\n\t\t\t\t\t\t$sign_in = $userCreden[0]['sign_in_count'] + 1;\n\t\t\t\t\t\t//getting last sign in ip\n\t\t\t\t\t\t$last_sign_in_ip = $this->manageUtility->getIpAddress();\n\t\t\t\t\t\t//updating the values\n\t\t\t\t\t\t$update1 = $this->manageContent->updateValueWhere(\"user_credentials\",\"sign_in_count\",$sign_in,\"user_id\",$userCreden[0]['user_id']);\n\t\t\t\t\t\t$update2 = $this->manageContent->updateValueWhere(\"user_credentials\",\"last_sign_in_ip\",$last_sign_in_ip,\"user_id\",$userCreden[0]['user_id']);\n\t\t\t\t\t\t$update1 = $this->manageContent->updateValueWhere(\"user_credentials\",\"date\",date(\"Y-m-d g:i:s\"),\"user_id\",$userCreden[0]['user_id']);\n\t\t\t\t\t\treturn array(1,'Login Successfull!!',$userCreden[0]['user_id'],$userCreden[0]['category']);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn array(0,'You Have Been Deactivated By Admin.. Please Contact To The Admin!!');\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\treturn array(0,'Username or Password Is Incorrect!!');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array(0,'Username or Password Is Incorrect!!');\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e453615d1076cabdcacfbdf2118bec07", "score": "0.6179628", "text": "function login() {\n \t$this->set('indata',$this->data);\n\t\tif(empty($this->data)){\n\t\t\t$this->pageTitle = 'Log in';\n\t\t\t$cookie = $this->Cookie->read('Auth.User');\n\t\t}\n }", "title": "" }, { "docid": "7fb6f56a76284873f796d8923c733967", "score": "0.6179465", "text": "public function flexLogin() {\n\t\t// go under $this->user, as they all implement the same interface\n\t\t$this->load->model($this->_userModel,'user');\n\t\t\n\t\t// does the account exsist\n\t\t\n\t\t$loginEmail = $this->input->post(EB_Login::FORM_EMAIL_FIELD);\n\t\t\n\t\tif(!$this->user->retrieve($loginEmail)) {\n\t\t\t$this->_flexFail();\n\t\t\treturn;\n\t\t}\n\t\t// does the password match, and is everything good with the account\n\t\tif (($loginResult = $this->user->loginAttempt($this->input->post(EB_Login::FORM_PASSWORD_FIELD)))===Account::SUCCESS) {\n\t\t\t// login user\n\t\t\t$this->_setUser($loginEmail);\n\t\t\t$this->_flexLogin();\n\t\t\treturn;\n\t\t}\n\t\t$this->_flexFail();\n\t}", "title": "" }, { "docid": "7d89ffd3144a1c783fee624f53e4af45", "score": "0.6178634", "text": "private function _processLogin() {\n $dbh = Db::getDbh();\n\n $query = $dbh->prepare(sprintf(\n \"SELECT user_id,\n first_name,\n last_name,\n email,\n username,\n password,\n member,\n date_joined\n FROM users_table\n WHERE username ='%s'\n AND password = '%s'\n AND member = 'student'\",\n $this->_formFields->username,\n $this->_formFields->password\n ));\n $query->execute();\n\n while ( $user = $query->fetch(PDO::FETCH_ASSOC) ) {\n $_SESSION['userId'] = $dbh->lastInsertId('user_id');\n $_SESSION['logged'] = 'true';\n\n if ( $query->rowCount() > 0 ) {\n header('Location: http://localhost/studentDashboard.html');\n }\n }\n }", "title": "" }, { "docid": "3407fa7146c3da4e77daa60fff3822b8", "score": "0.61776274", "text": "public function doLogin()\r\n {\r\n $input = Request::all();\r\n \r\n if (Auth::attempt(['username' => $input['email'], 'password' => $input['password'], 'deleted_at' => null, 'user_type' => 1]))\r\n {\r\n \r\n $user = Auth::user();\r\n Session::set('current_user_id',$user->id);\r\n return Redirect::intended('/dashboard');\r\n }\r\n else { \r\n Session::flash(\r\n 'systemMessages', ['error' => Lang::get('pages.login.errors.wrong_credentials')]\r\n );\r\n return Redirect::action('UserController@login')\r\n ->withInput(Request::except('password'));\r\n }\r\n }", "title": "" }, { "docid": "de95cabc1d2b73174a00cc00fa512f1b", "score": "0.61740494", "text": "public function login()\n {\n $user = facory(App\\User::class)->create();\n return $this->actingAs($user, 'api');\n\n// $this->actingAs($user);\n\n }", "title": "" }, { "docid": "f2db843d0d3f1f69b1ccf29896b407fe", "score": "0.616931", "text": "public function api_entry_signin() {\n //parent::returnWithErr(\"Opps. ipray service is expired... sorry.\");\n parent::validateParams(array('email', 'password'));\n\n $users = $this->Mdl_Users->getAll(\"email\", $_POST[\"email\"]);\n\n if (count($users) == 0) parent::returnWithErr(\"User not found.\");\n\n $user = $users[0];\n\n if (!$user->verified) parent::returnWithErr(\"This account is not verified yet.\");\n if ($user->suspended) parent::returnWithErr(\"This account is under suspension.\");\n if ($user->password != md5($_POST[\"password\"])) parent::returnWithErr(\"Invalid password.\");\n\n parent::returnWithoutErr(\"Signin succeed.\", $user);\n }", "title": "" }, { "docid": "63be0a81dd0b0936e69fa9a8fa57825a", "score": "0.61690366", "text": "public function handleUserLogin($event)\n {\n // Log the activity\n $event->user->logSuccessfulLogin();\n\n // Clear any failed login attempts\n $event->user->clearFailedLoginAttempts();\n }", "title": "" }, { "docid": "97c8d342d69020d84204d986d561fdaf", "score": "0.6164923", "text": "function login()\r\n {\r\n if ($this->data)\r\n {\r\n // Use the AuthComponent's login action\r\n if ($this->Auth->login($this->data))\r\n {\r\n // Retrieve user data\r\n $results = $this->User->find(array('User.username' => $this->data['User']['username']), array('User.active'), null, false);\r\n // Check to see if the User's account isn't active\r\n\r\n if ($results['User']['active'] == 0)\r\n {\r\n // account has not been activated\r\n $this->Auth->logout();\r\n $this->flashNotice('Hello ' . $this->Session->read('Auth.User.username') . '. Your account has not been activated yet! Please check your mail and activate your account.', 'login');\r\n }\r\n // user is active, redirect post login\r\n else\r\n {\r\n $this->User->id = $this->Auth->user('id');\r\n $this->flashSuccess('Hello ' . $this->Session->read('Auth.User.username') . '. You have successfully logged in. Please choose your destination on the left menu.');\r\n $this->User->saveField('last_login', date('Y-m-d H:i:s') );\r\n $this->redirect(array('controller' => 'users', 'action' => 'login'));\r\n }\r\n }\r\n $this->flashWarning('You could not be logged in. Maybe wrong username or password?');\r\n }\r\n }", "title": "" }, { "docid": "2abcdb58fb8f54fedd36a83f4ee20f21", "score": "0.6164581", "text": "private function _userLoggedIn()\n {\n $this->utility->redirect('write');\n }", "title": "" }, { "docid": "35002d02def609223afe0819bfa5a64b", "score": "0.61566937", "text": "public function login()\n {\n if(is_logged_in()) {\n redirect_to(url('thread/index'));\n }\n\n $user = new User;\n $page = Param::get('page_next', 'login');\n\n switch($page) {\n case 'login':\n break;\n\n case 'lobby':\n $user->username = Param::get('username');\n $user->password = Param::get('password');\n\n try {\n $user = $user->verify();\n $_SESSION['id'] = $user['id'];\n } catch (UserNotFoundException $e) {\n $page = 'login';\n }\n break;\n\n default:\n throw new UserNotFoundException(\"User not found\");\n }\n\n $this->set(get_defined_vars());\n $this->render($page);\n }", "title": "" }, { "docid": "c91c4d51ac4afbfcf1e1515a49824b6b", "score": "0.61526364", "text": "function loginasEvent($req, &$t) {\n\t\t$id = $req->cleanInt('id');\n\t\t$oldUser = &$req->getUser();\n\t\t$newUser = new Cgn_User();\n\t\t$newUser = $newUser->load($id);\n\t\t$u = $newUser;\n\t\t$newUser->bindSession();\n\n\t\t$this->presenter = 'redirect';\n\t\t$t['url'] = cgn_url();\n\t}", "title": "" }, { "docid": "c0e1e6d7560c5f97e1cd200b9bdc7a84", "score": "0.6140715", "text": "public function doLogin()\n\t{\n\t\t$error = false;\n\n\t\tif (!$this->verifyCsrfToken('lgn')) {\n\t\t\t$error = 'Security error: CSRF token validation failed.';\n\t\t}\n\n\t\tif (!$error && empty($name = trim($_POST['user']))) {\n\t\t\t$error = 'No username or email address specified.';\n\t\t}\n\n\t\tif (!$error && empty($pass = trim($_POST['pass']))) {\n\t\t\t$error = 'No password specified.';\n\t\t}\n\n\t\tif (!$error) {\n\t\t\t$users = (new User($this))->getAll('name = ? or email = ?', [$name, $name]);\n\n\t\t\tif (empty($users)) {\n\t\t\t\t$error = 'Specified username or password is incorrect.';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$user = $users[0];\n\t\t\t}\n\t\t}\n\n\t\tif (!$error && !$user->verifyPassword($pass)) {\n\t\t\t$error = 'Specified username or password is incorrect.';\n\t\t}\n\n\t\tif (!$error) {\n\t\t\t$_SESSION['user'] = $user->toArray();\n\t\t\t$_SESSION['user']['time'] = time();\n\n\t\t\tif ($_POST['remember'] == 'on') {\n\t\t\t\tsetcookie('pid', self::base64Encode(self::encrypt($user->id . '|' . $user->password)), 2000000000);\n\t\t\t}\n\t\t}\n\n\t\t$this->app->view->make('header', $this->getHeaderVariables());\n\n\t\tif ($error) {\n\t\t\t$this->app->view->make('loginForm', ['errmsg' => $error]);\n\t\t}\n\t\telse {\n\t\t\t$this->app->view->make('successForm', [\n\t\t\t\t'title' => 'Signed In',\n\t\t\t\t'type' => 'success',\n\t\t\t\t'icon' => 'ok',\n\t\t\t\t'text' => 'Welcome back, <strong>'.htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8').'</strong>!',\n\t\t\t\t'url_href' => 'index',\n\t\t\t\t'url_text' => 'Go to Front Page'\n\t\t\t]);\n\t\t}\n\n\t\t$this->app->view->make('footer');\n\t}", "title": "" }, { "docid": "6b2179f93a69b793d50d4f7f9ccbd8c0", "score": "0.6139589", "text": "public function login(): void\n {\n $loggedIn = $this->manager->checkLogin($this->token);\n \n if ($loggedIn === \"ok\") {\n header('location: /');\n exit();\n }\n\n if ($loggedIn === \"user\" || $loggedIn === \"pwd\") {\n $this->setLog(\"0\");\n }\n\n if ($loggedIn === \"token\") {\n $this->setLog(\"1\");\n }\n\n $template = 'admin/user/login.twig.html';\n $data = ['token0' => $this->token->generateString(0)]; \n $this->render($template, $data); \n }", "title": "" }, { "docid": "846ebe43cc2b412bfae3b0a6e5060990", "score": "0.6138863", "text": "public function Login(AuthUser $user) \n {\n $_SESSION[\"valid_login\"] = true;\n $_SESSION[\"user_id\"] = $user->id;\n }", "title": "" }, { "docid": "815b5399bf14fca93638984bdcb7c0a0", "score": "0.61370605", "text": "public static function LogIn ($userName = '', $password = '');", "title": "" }, { "docid": "436ff51174e091f5cad545dd4f69967d", "score": "0.6137017", "text": "public function touchLogin() {\n $this->last_login = date( 'Y-m-d H:i:s' );\n $this->save();\n }", "title": "" }, { "docid": "a6277ed13bf35ba9030c65c50c4a61ec", "score": "0.6135981", "text": "public function login()\n\t{\n $identity = $this->getIdentity();\n if ($identity->ok) {\n\t\t\t$duration = $this->rememberMe ? 3600*24*30 : 0; // 30 days\n\t\t\tYii::app()->user->login($this->getIdentity(), $duration);\n\t\t\treturn true;\n \n\t\t} else\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "1a2d59207fed4171fae2385457346348", "score": "0.6130998", "text": "public static function userLoginSuccess(){\n self::$IntelligenceService->addToIntelligenceStack(self::USER_INTELLIGENCE_LOGIN_KEY, self::USER_INTELLIGENCE_SUCCESS);\n }", "title": "" }, { "docid": "c21825088f9d8980384ca53a30d48559", "score": "0.612532", "text": "public function signin()\n\t{\n $user = new User();\n\n // If user can succesfully signin then signin\n if ($user->signin(Database::connection(), $_POST['username'], $_POST['password']))\n {\n $_SESSION['id'] = $user->id;\n return True;\n }\n\n return False;\n\t}", "title": "" }, { "docid": "37dd55cde43510ae5d16ae53cf502e35", "score": "0.6119779", "text": "public function loginAction() {\n $data = array();\n $seq = $this->_getParam(\"seq\");\n if (empty($seq)) {\n Engine_Api_Headers::_404();\n }\n\n $data[\"user_mail\"] = $this->_getParam(\"usermail\");\n $data[\"user_pass\"] = $this->_getParam(\"p455w0rd\");\n $tUser = new Users_Model_DbTable_Users();\n if (!empty($data[\"user_mail\"]) && !empty($data[\"user_pass\"]) && $tUser->isLoginOk($data)) {\n //cancello l'attuale token\n Engine_Api_Logintokens::deleteUserToken($data[\"user_id\"]);\n //genero nuovo token\n $token = Engine_Api_Logintokens::setAndGetNewToken($data[\"user_id\"]);\n } else {\n sleep(5);\n Engine_Api_Headers::_404();\n }\n $this->_return($token);\n }", "title": "" }, { "docid": "c928e5e589052ad930eb88e2f4b31d44", "score": "0.6117945", "text": "public function login() {\n $this->db->sql = 'SELECT * FROM '.$this->db->dbTbl['users'].' WHERE username = :username LIMIT 1';\n\n $user = $this->db->fetch(array(\n ':username' => $this->getData('un')\n ));\n\n if($user['hash'] === $this->hashPw($user['salt'], $this->getData('pw'))) {\n $this->sessionId = md5($user['id']);\n $_SESSION['user'] = $user['username'];\n $_SESSION['valid'] = true;\n $this->output = array(\n 'success' => true,\n 'sKey' => $this->sessionId\n );\n } else {\n $this->logout();\n $this->output = array(\n 'success' => false,\n 'key' => 'WfzBq'\n );\n }\n\n $this->renderOutput();\n }", "title": "" }, { "docid": "e55425be33b3ff1b25d20db481ceaa30", "score": "0.61178213", "text": "public function doLogin() {\r\n if (DBHandler::getDB()->num_rows(\"SELECT id FROM account WHERE (username = ? OR email = ?) AND password = ? LIMIT 1\", array(\r\n $this->id, $this->id,\r\n sha1($this->pw)\r\n )) == 1) {\r\n\t\t\t\r\n $data = DBHandler::getDB()->fetch_assoc(\"SELECT id, username, createTime, email FROM account WHERE (username = ? OR email = ?)\", array(\r\n $this->id, \r\n $this->id\r\n ));\t\r\n\t\t\r\n\t\t\t\r\n $_SESSION['username'] = $data['username'];\r\n $_SESSION['user_id'] = $data['id'];\r\n\t\t\t$_SESSION['email'] = $data['email'];\r\n $_SESSION['createTime'] = $data['createTime'];\r\n\t\t\t\r\n return true;\r\n\t\t\t\r\n\t\t\t\r\n } else {\r\n Error::$error[] = \"Login nicht erfolgreich. Überprüfe deine Logindaten.\";\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "ccb89bfc8b82c87ffa720834e11481ea", "score": "0.6115179", "text": "protected function _logInAdminUser()\r\n {\r\n $authAdapter = new Auth_Adapter('admin', 'admin');\r\n Zend_Auth::getInstance()->authenticate($authAdapter);\r\n $this->assertTrue(Zend_Auth::getInstance()->hasIdentity());\r\n }", "title": "" }, { "docid": "43e5f6e6f40717d3824d7e3876042a75", "score": "0.6113842", "text": "function userLogin()\n\t{\n\t\t$userName = $_POST['userName'];\n\t\t$password = $_POST['userPassword'];\n\t\t$rememberData = $_POST['rememberData'];\n\n\t\t# Verify if the user currently exists in the Database\n\t\t$result = validateUserCredentials($userName);\n\n\t\tif ($result['status'] == 'COMPLETE')\n\t\t{\n\t\t\t$decryptedPassword = decryptPassword($result['password']);\n\n\t\t\t# Compare the decrypted password with the one provided by the user\n\t\t \tif ($decryptedPassword === $password)\n\t\t \t{\n\t\t \t$response = array(\"status\" => \"COMPLETE\");\n\n\t\t\t # Starting the sesion\n\t\t \tstartSession($result['fName'], $result['lName'], $userName);\n\n\t\t\t # Setting the cookies\n\t\t\t if ($rememberData)\n\t\t\t\t{\n\t\t\t\t\tsetcookie(\"cookieUserName\", $userName);\n\t\t\t \t}\n\t\t\t echo json_encode($response);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdie(json_encode(errors(306)));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie(json_encode($result));\n\t\t}\n\t}", "title": "" }, { "docid": "2c1e3f3c40b18b9b1ef9431c36efae21", "score": "0.6106635", "text": "public function p_login() {\n\t \n\t # Sanitize Data Entry\n \t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t \n\t # Compare password to database\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t \n\t # Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \n\t\t\t'SELECT token\n\t\t\tFROM users \n\t\t\tWHERE email = \"'.$_POST['email'].'\" \n\t\t\tAND password = \"'.$_POST['password'].'\"';\n\t\n\t \n\t # If there was, this will return the token\n\t $token = DB::instance(DB_NAME)->select_field($q);\n\t \n\t # Login failed\n\t\tif(!$token) {\n \n\t\t\t # Note the addition of the parameter \"error\"\n\t\t\t Router::redirect('/users/login/invalid-login'); \n\t\t}\t\n \n\t\t# Login passed\n\t\telse {\n \tsetcookie('token', $token, strtotime('+2 weeks'), '/');\n\t\t\tRouter::redirect('/');\n\t\t}\n }", "title": "" }, { "docid": "af25b9f1ebf213f2e7c549b44f19354e", "score": "0.61047095", "text": "public function postLogin()\n\t{\n\n\t\t$input = array(\n\t\t 'email' => \\Input::get( 'email' ),\n\t\t 'password' => \\Input::get( 'password' ),\n\t\t 'remember' => \\Input::get( 'remember' ),\n\t\t);\n\n\t\t// If you wish to only allow login from confirmed users, call logAttempt\n\t\t// with the second parameter as true.\n\t\t// logAttempt will check if the 'email' perhaps is the username.\n\t\tif ( \\Confide::logAttempt( $input, true ) ) \n\t\t{\n\t\t return \\Redirect::intended('/company'); \n\t\t}\n\t\telse\n\t\t{\n\t\t $user = new \\User;\n\n\t\t // Check if there was too many login attempts\n\t\t if( \\Confide::isThrottled( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.too_many_attempts');\n\t\t }\n\t\t elseif( $user->checkUserExists( $input ) and ! $user->isConfirmed( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.not_confirmed');\n\t\t }\n\t\t else\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.wrong_credentials');\n\t\t }\n\n\t\t return \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t ->withInput(\\Input::except('password'))\n\t\t ->with( 'error', $err_msg );\n\t\t}\n\n\t}", "title": "" }, { "docid": "5786c8242232f8bb453fd70967b085e0", "score": "0.6103998", "text": "function login() {\n\t\t//$salt = Configure::read('Security.salt');\n\t\t//echo md5('password'.$salt);\n\n\t\t// redirect user if already logged in\n\t\tif( $this->Session->check('User') ) {\n\t\t\t$this->redirect(array('controller'=>'dashboard','action'=>'index','admin'=>true));\n\t\t}\n\n\t\tif(!empty($this->data)) {\n\t\t\t// set the form data to enable validation\n\t\t\t$this->User->set( $this->data );\n\t\t\t// see if the data validates\n\t\t\tif($this->User->validates()) {\n\t\t\t\t// check user is valid\n\t\t\t\t$result = $this->User->check_user_data($this->data);\n\n\t\t\t\tif( $result !== FALSE ) {\n\t\t\t\t\t// update login time\n\t\t\t\t\t$this->User->id = $result['User']['id'];\n\t\t\t\t\t$this->User->saveField('last_login',date(\"Y-m-d H:i:s\"));\n\t\t\t\t\t// save to session\n\t\t\t\t\t$this->Session->write('User',$result);\n\t\t\t\t\t//$this->Session->setFlash('You have successfully logged in');\n\t\t\t\t\t$this->redirect(array('controller'=>'dashboard','action'=>'index','admin'=>true));\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash('Either your Username of Password is incorrect');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f8e5a9e695cd60167d8741cba148a8fd", "score": "0.6103919", "text": "public function logInAsUser($overrides = [])\n {\n $this->user = factory('App\\Models\\User')->create($overrides);\n $this->be($this->user);\n }", "title": "" }, { "docid": "fb50714b3418d992eb8f405aa5433da3", "score": "0.6099776", "text": "public function login()\n {\n \t$sql = 'SELECT * ';\n \t$sql .= 'FROM user ';\n \t$sql .= 'WHERE email = :email ';\n \t$sql .= 'AND password = :password ';\n\n $sth = $this->db->prepare( $sql );\n $sth->execute(array(\n ':email' \t=> $_POST['email'],\n ':password' => $_POST['password']\n ));\n\n $data = $sth->fetch();\n\n if ( $sth->rowCount() > 0 )\n {\n // login\n Session::init();\n Session::set( 'loggedIn', true );\n Session::set( 'user_name', $data['name']);\n Session::set( 'userid', $data['id_user'] );\n header('location: '.URL.'index/carrinho/');\n }\n else\n {\n \t$msg = base64_encode( 'LOGIN_INCORRETO' );\n header('location: '.URL.'index/finalizar_compra/?st=' . $msg );\n }\n }", "title": "" }, { "docid": "cbc62665e57cf47280af7081306ef7e3", "score": "0.60935175", "text": "private function loginWithCookie()\n {\n }", "title": "" }, { "docid": "390130ae945eded171df46998be5ab28", "score": "0.6090054", "text": "public function signin(){\t\t\n\n\t\tif($this->account_model->isLoggedIn()){\n\t\t\t$this->dashboard();\n\t\t}\n\t\telse{\n\t\t\t$this->layouts->setTitle('Sign-In');\n\t\t\t$this->__loadJsAndCSS();\t\t\n\t\t\t$this->layouts->view('account/signin','','signin');\n\t\t}\n\t}", "title": "" }, { "docid": "e694eab73cdc58448eb5a902531fae56", "score": "0.60846305", "text": "private function staffLogIn()\n {\n $this->user = factory(Efed\\Models\\Wrestler::class)->create();\n Auth::loginUsingId($this->user->id);\n factory(Efed\\Models\\Staff::class)->create(['wrestler_id' => $this->user->id]);\n }", "title": "" }, { "docid": "75a659442e5da022f991ac55d441e8a9", "score": "0.6083123", "text": "public function log_user_in(&$Obj_User)\n\t{\n\t\tglobal $CMD;\n\n\t\t//*!*I need to test here for a session id.\n\t\t//There is a need to optimise my session setting/getting using isset($_SESSION['SESSIONID'])\n\t\t//I'm not sure if his is best done here of in the session object itself\n\t\t//It might need to be done in initialise_user() metyhod instead, I'll come back to this\n\n\n\t\t//*!*These checks are yet to be done!\n\t\t//Check that object supplied is of correct type.\n\t\t//Check user credentials against database entries.\n\n\t\t//Get user from the database.\n\t\tif (!$Obj_User->data('id'))\n\t\t{\n\t\t\t$Obj_User = $CMD->model('user', $Obj_User->data('username'));\n\t\t}\n\n\t\t//Set user sesion values.\n\t\t$Int_Timeout = ($Obj_User->data('disable'))? $Obj_User->data('disable'): true;\n\t\t$this->set_session(MW_STR_SESSION_USERLOGN, $Int_Timeout);\n\t\t$this->set_session(MW_STR_SESSION_USERIDEN, $Obj_User->data('id'));\n\t\t$this->set_session(MW_STR_SESSION_USERNAME, $Obj_User->data('username'));\n\t\t$this->set_session(MW_STR_SESSION_USERMAIL, $Obj_User->data('email'));\n\t\t$this->set_session(MW_STR_SESSION_USERSTAT, $Obj_User->data('status'));\n\t\t$this->set_session(MW_STR_SESSION_USERLOCK, $Obj_User->data('lock'));\n\t\t$this->set_session(MW_STR_SESSION_USERVIEW, $Obj_User->data('access'));\n\t\t$this->set_session(MW_STR_SESSION_USEREDIT, $Obj_User->data('access'));\n\t\t//*!*These are the defaults but can be changed.\n\t\t$this->set_session(MW_STR_SESSION_USERVRSN, $CMD->config('version'));\n\t\t$this->set_session(MW_STR_SESSION_USERZONE, $CMD->config('timezone'));\n\t\t$this->set_session(MW_STR_SESSION_USERLANG, $CMD->config('language'));\n\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "3344f420c5ec77d82009223205fca2c5", "score": "0.6081431", "text": "private function logado() {\n //Verifica se o usuário enviou o formulário\n if ($_SERVER['REQUEST_METHOD'] == \"POST\") {\n $login = $this->Delegator('ConcreteLogin', 'Logado', $this->getPost());\n }\n }", "title": "" }, { "docid": "4024c197a4b36a4cc530ae6deb59f7ee", "score": "0.6079559", "text": "public function doLogin() {\n $filterTemplate = array(\n \"usernameField\" => FILTER_SANITIZE_STRING,\n \"passwordField\" => FILTER_SANITIZE_STRING,\n );\n\n $filteredData = filter_input_array(INPUT_POST, $filterTemplate);\n $userController = new Controllers\\UserController();\n $result = $userController->login($filteredData['usernameField'], $filteredData['passwordField']);\n header(\"Refresh:0\");\n }", "title": "" } ]
8f25bf28c7495a2819033dd6eef3c7cc
Creates a message factory mock.
[ { "docid": "0fbb51fda00a7acc11dacae20f1da54c", "score": "0.8829718", "text": "private function createMessageFactoryMock()\n {\n return $this->getMock('Ivory\\HttpAdapter\\Message\\MessageFactoryInterface');\n }", "title": "" } ]
[ { "docid": "28edaf685b170344b7fefa334745c235", "score": "0.84829134", "text": "private function getMockMessageFactory()\n {\n $factory = $this->getMockBuilder(MessageFactory::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $request = $this->getMockBuilder(RequestInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $request\n ->method('withHeader')\n ->willReturn($request);\n\n $factory\n ->method('createRequest')\n ->willReturn($request);\n\n return $factory;\n }", "title": "" }, { "docid": "b4bda6d3a847da9c2e2782855e632e24", "score": "0.7549672", "text": "public function getMessageFactory()\n {\n }", "title": "" }, { "docid": "42bb33cb2e46e107959838b8c9592e1c", "score": "0.71395975", "text": "public function getMessageFactory()\n {\n return $this->messageFactory;\n }", "title": "" }, { "docid": "5ae1d19241d51b27ebc988bb37184e47", "score": "0.68538594", "text": "public function test_create_token_factory()\n {\n\n $payumBuilder = m::mock('Payum\\Core\\PayumBuilder');\n $filesystem = m::mock('Illuminate\\Filesystem\\Filesystem');\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $config = [];\n $manager = new PayumBuilderManager($payumBuilder, $filesystem, $app, $config);\n\n $storageInterface = m::mock('Payum\\Core\\Storage\\StorageInterface');\n $storageRegistryInterface = m::mock('Payum\\Core\\Registry\\StorageRegistryInterface');\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $app->shouldReceive('make')->with('Recca0120\\LaravelPayum\\Security\\TokenFactory', [\n $storageInterface,\n $storageRegistryInterface,\n ])->once();\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $manager->createTokenFactory($storageInterface, $storageRegistryInterface);\n }", "title": "" }, { "docid": "cb5aaf3a2348a2fa6e320e53ce3bc9f1", "score": "0.6839383", "text": "public function createMessage(): MessageInterface;", "title": "" }, { "docid": "8c450f68a5c139a6c757e90ab3cfa2f4", "score": "0.67510283", "text": "public function createInstance()\n {\n $mock = $this->getMockForTrait(static::TEST_SUBJECT_CLASSNAME);\n $mock->method('_createInvalidArgumentException')\n ->will($this->returnCallback(function ($message) {\n return $this->createInvalidArgumentException($message);\n }));\n $mock->method('__')\n ->will($this->returnArgument(0));\n $mock->method('_normalizeString')\n ->will($this->returnCallback(function ($val) {\n return (string) $val;\n }));\n\n return $mock;\n }", "title": "" }, { "docid": "d538b5ecca4e207a6bff111d98931923", "score": "0.67299277", "text": "public function createMessage()\n {\n $class = $this->getClass();\n\n return new $class();\n }", "title": "" }, { "docid": "127d1abfff2a1a41087bdb74504db830", "score": "0.6575748", "text": "public function setUp()\n {\n $this->factory = new MessageFactory;\n }", "title": "" }, { "docid": "f4ddebfd99e10d97bb05edf469413810", "score": "0.65591085", "text": "public function testCreateMessage()\n {\n $pushwooshMock = new PushwooshMock();\n\n // At the beginning no pushwoosh requests have been sent\n $this->assertCount(0, $pushwooshMock->getPushwooshRequests());\n\n // Test call\n $createMessageRequest = CreateMessageRequest::create();\n $createMessageResponse = $pushwooshMock->createMessage($createMessageRequest);\n\n $this->assertNotNull($createMessageResponse);\n $this->assertSame(200, $createMessageResponse->getStatusCode());\n $this->assertSame('OK', $createMessageResponse->getStatusMessage());\n $this->assertTrue($createMessageResponse->isOk());\n\n $createMessageResponseResponse = $createMessageResponse->getResponse();\n $this->assertNotNull($createMessageResponseResponse);\n $this->assertCount(0, $createMessageResponseResponse->getMessages());\n\n // One more requests has been send\n $this->assertCount(1, $pushwooshMock->getPushwooshRequests());\n $this->assertSame($createMessageRequest, $pushwooshMock->getPushwooshRequests()[0]);\n }", "title": "" }, { "docid": "31f4b3326f2d4dcbb553d4abdc41d5a0", "score": "0.65255207", "text": "public function test_create()\n {\n\n $this->expectsJobs(SendMailMessage::class);\n\n $repo = resolve(MailMessageRepository::class);\n $faker = resolve(Faker::class);\n\n $senders = Sender::factory(1)->create();\n $rcpts = Recipient::factory(1)->create();\n\n\n $messageObj = $repo->create(\n [\n 'sender_id' => $senders->first()->id,\n 'recipient_id' => $rcpts->first()->id,\n 'subject' => $faker->text(100),\n 'plain_content' => $faker->text(300),\n 'html_content' => $faker->text(300),\n 'status' => \\Arr::random(['posted', 'sent', 'failed'])\n ]\n );\n\n $this->assertDatabaseHas('mail_messages', ['id' => $messageObj->id]);\n\n }", "title": "" }, { "docid": "fbe6b4690557fd1de1245cf9f43ea433", "score": "0.6469016", "text": "private function createHttpAdapterMock(MessageFactoryInterface $messageFactory = null)\n {\n $httpAdapter = $this->getMock('Ivory\\HttpAdapter\\HttpAdapterInterface');\n $httpAdapter\n ->expects($this->any())\n ->method('getName')\n ->will($this->returnValue('http_adapter'));\n\n $httpAdapter\n ->expects($this->any())\n ->method('getConfiguration')\n ->will($this->returnValue($configuration = $this->getMock('Ivory\\HttpAdapter\\ConfigurationInterface')));\n\n $configuration\n ->expects($this->any())\n ->method('getMessageFactory')\n ->will($this->returnValue($messageFactory ?: $this->createMessageFactoryMock()));\n\n return $httpAdapter;\n }", "title": "" }, { "docid": "3dd1b776e23461d95e9c146abb4b8f1b", "score": "0.6442271", "text": "public function testMessageInstantiation()\n {\n $message_data = [\n 'version' => 'v_0_1',\n 'messageTime' => date('Y-m-d H:i:s'),\n 'roboId' => 'test',\n 'purpose' => 'buddy.find',\n 'data' => ['reason' => 'lost in space'],\n 'priority' => '3',\n 'tags' => ['tag1', 'tag2'],\n 'responseTo' => 'response-to-message-id',\n 'recipients' => ['test.robo.1', 'test.robo.2'],\n 'recipientsWildcard' => 'test.robo.*',\n ];\n\n $message = new RoboMessage($message_data);\n\n $this->assertNotEmpty($message->getMessageId(), 'Message Id was generated');\n\n foreach ($message_data as $key => $value) {\n $this->assertEquals($value, $message->{\"get\" . ucfirst($key)}());\n }\n }", "title": "" }, { "docid": "093e6bca2b16ee25803e224f969ce250", "score": "0.64243984", "text": "public function createMessage()\n {\n $config = $this->messageConfig;\n if (!array_key_exists('class', $config)) {\n $config['class'] = $this->messageClass;\n }\n $config['mailer'] = $this;\n return Creator::createObject($config);\n }", "title": "" }, { "docid": "432e65bcb9fdd0def198c787e73113fe", "score": "0.6402994", "text": "protected function createMessage($data) {\n $data += ['type' => 'message'];\n $class = $data['type'] == 'exclusion' ? Exclusion::class : Message::class;\n return $this->getMockBuilder($class)\n ->setConstructorArgs([$data])\n ->setMethods(['replaceTokens'])\n ->getMock();\n }", "title": "" }, { "docid": "4d21c1ba1f1ce9513e4666e80e0a4614", "score": "0.6402431", "text": "public function createInstance($message = null, $code = null, $previous = null)\n {\n $mock = $this->getMockBuilder(static::TEST_SUBJECT_CLASSNAME)\n ->disableOriginalConstructor()\n ->getMockForAbstractClass();\n\n return $mock;\n }", "title": "" }, { "docid": "40b340ae3c7dea9d84ccf3419b7328b0", "score": "0.6356176", "text": "public function testCreateMessageTemplate()\n {\n }", "title": "" }, { "docid": "378ae795a2b260861a05bd991a02cd24", "score": "0.63467264", "text": "public function testMessageManager() {\n // Mock webform.\n $webform = $this->getMockBuilder(WebformInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n $webform->method('getSettings')\n ->will($this->returnCallback(function () {\n return [\n WebformMessageManagerInterface::DRAFT_PENDING_SINGLE => '{single}',\n WebformMessageManagerInterface::DRAFT_PENDING_MULTIPLE => '[none]',\n ];\n }));\n\n // Mock url.\n $url = $this->getMockBuilder('\\Drupal\\Core\\Url')\n ->disableOriginalConstructor()\n ->getMock();\n $url->method('toString')\n ->willReturn('http://example.com/');\n\n /**************************************************************************/\n\n // Mock current user.\n $current_user = $this->getMockBuilder(AccountInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n // Mock config factory.\n $config_factory = $this->getConfigFactoryStub(\n [\n 'webform.settings' => [\n 'html_editor.tidy' => TRUE,\n 'html_editor.element_format' => '',\n 'element.allowed_tags' => 'p',\n ],\n ]\n );\n\n // Mock webform submission storage.\n $webform_submission_storage = $this->getMockBuilder(WebformSubmissionStorageInterface::class)\n ->getMock();\n\n // Mock entity type manager.\n $entity_type_manager = $this->getMockBuilder(EntityTypeManagerInterface::class)\n ->getMock();\n $entity_type_manager->method('getStorage')\n ->willReturnMap([\n ['webform_submission', $webform_submission_storage],\n ]);\n\n // Mock logger.\n $logger = $this->getMockBuilder(LoggerInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n // Mock renderer.\n $renderer = $this->getMockBuilder(RendererInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n // Mock messenger.\n $messenger = $this->getMockBuilder(MessengerInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n // Mock webform request handler.\n $request_handler = $this->getMockBuilder(WebformRequestInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n $request_handler->method('getUrl')\n ->willReturn($url);\n\n // Mock webform token manager.\n $token_manager = $this->getMockBuilder(WebformTokenManagerInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n $token_manager->method('replace')\n ->will($this->returnCallback(function ($text) {\n return $text;\n }));\n\n // Mock Drupal's container.\n $container = new ContainerBuilder();\n $container->set('string_translation', $this->getStringTranslationStub());\n $container->set('config.factory', $config_factory);\n \\Drupal::setContainer($container);\n\n // Create webform message manager.\n $message_manager = new WebformMessageManager(\n $current_user,\n $config_factory,\n $entity_type_manager,\n $logger,\n $renderer,\n $messenger,\n $request_handler,\n $token_manager);\n\n // Set message manager mock webform.\n $message_manager->setWebform($webform);\n\n /**************************************************************************/\n\n // Check custom single message.\n $expected = [\n '#theme' => 'webform_html_editor_markup',\n '#markup' => '{single}',\n '#allowed_tags' => [0 => 'p'],\n ];\n $result = $message_manager->get(WebformMessageManagerInterface::DRAFT_PENDING_SINGLE);\n $this->assertEquals($expected, $result);\n\n // Check [none] for multiple message returns an empty string.\n $result = $message_manager->get(WebformMessageManagerInterface::DRAFT_PENDING_MULTIPLE);\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "c7deebf61291ff0e47f3dcaadbb685a0", "score": "0.629099", "text": "public function createInstance()\n {\n $mock = $this->getMockBuilder(static::TEST_SUBJECT_CLASSNAME)\n ->setMethods(array('getConfig'))\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "3424a2a804709a1aaf1d7fc54fafcb4b", "score": "0.62811404", "text": "public function createFake();", "title": "" }, { "docid": "4e67adee23522e6fb7929ea868606eab", "score": "0.6278665", "text": "protected function getFactoryMock()\n {\n $factoryNamespace = $this->getFactoryNamespace();\n\n return $this->getMock($factoryNamespace, [\n 'now',\n 'getEntityNamespace',\n ], [], '', false);\n }", "title": "" }, { "docid": "674faf548f5766bb3f5c5234b2de3438", "score": "0.62248707", "text": "public function setUp() {\n\t\t$this->mockMessage = $this->getMockBuilder('jjok\\Flasher\\Messages\\AbstractMessage')\n\t\t\t\t\t\t\t\t ->disableOriginalConstructor()\n\t\t\t\t\t\t\t\t ->getMock();\n\t}", "title": "" }, { "docid": "ef74b5b90bea8aa7c0d7a54fd846db92", "score": "0.61803544", "text": "public function newMessage()\n {\n $headers = new Headers(new HeaderFactory);\n $cookies = new Cookies(new CookieFactory);\n return new Message($headers, $cookies);\n }", "title": "" }, { "docid": "e2df7b328a50852f5bb599ca71f14691", "score": "0.6166811", "text": "protected static function newFactory()\n {\n return MemberFactory::new();\n }", "title": "" }, { "docid": "8438a456bff089ed0b6b64a4977ce580", "score": "0.6099972", "text": "public function testGetMessageTemplate()\n {\n }", "title": "" }, { "docid": "f6527cf477bc8eec3a24359d8289d8af", "score": "0.6088883", "text": "public function createFromMessage(Message $message) : Service;", "title": "" }, { "docid": "b5e71721f05822a689b25eea84546d22", "score": "0.60189927", "text": "public function test__construct()\n {\n $obj = Solar::factory('Solar_Mail_Message');\n $this->assertInstance($obj, 'Solar_Mail_Message');\n }", "title": "" }, { "docid": "9c8ef4397ac62a7c4ed4a53c5ede99d2", "score": "0.59726083", "text": "protected function setUp()\n {\n $this->flashMessageQueueProphecy = $this->prophesize(FlashMessageQueue::class);\n $this->flashMessageServiceProphecy = $this->prophesize(FlashMessageService::class);\n $this->flashMessageServiceProphecy\n ->getMessageQueueByIdentifier()\n ->shouldBeCalled()\n ->willReturn($this->flashMessageQueueProphecy->reveal());\n\n $this->subject = new MessageHelper($this->flashMessageServiceProphecy->reveal());\n }", "title": "" }, { "docid": "cfb27598e4dd4570fa5fbff57bdbd4cb", "score": "0.5957113", "text": "public function testGetMessageFromManager()\n {\n $manager = new Manager();\n\n $manager = $manager->setMessage(new Message());\n\n $message = $manager->getMessage();\n\n $this->assertInstanceOf(Message::class, $message);\n }", "title": "" }, { "docid": "3f0750d7a187ef73b0140c2d5aa581e7", "score": "0.5956704", "text": "protected static function factory() {}", "title": "" }, { "docid": "d536249efdcac704c44dc6420226c488", "score": "0.5955529", "text": "public function createInstance()\n {\n $mock = $this->getMockBuilder(TestSubject::class)\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "e34d54373c74d7b13e9a5b1a427d5cd1", "score": "0.5947485", "text": "public function setMessageData(array $data): MessageFactoryInterface;", "title": "" }, { "docid": "08d2d004a2f92985069f93c9ae7b4de4", "score": "0.594513", "text": "protected static function newFactory()\n {\n //\n }", "title": "" }, { "docid": "b9f5b1c43686bbfdbe1bdf981436d768", "score": "0.5937781", "text": "public function testGetMessageTemplates()\n {\n }", "title": "" }, { "docid": "7eea582cf12dece817c8cc3d9a95ce8b", "score": "0.59346956", "text": "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n ->count()\n ->current()\n ->next()\n ->key()\n ->valid()\n ->rewind()\n ->new();\n\n return $mock;\n }", "title": "" }, { "docid": "cd17db358ffb6b51cf0d5f7e9484276e", "score": "0.59168375", "text": "public function createInstance(string $message, int $code, Throwable $previous, RendererInterface $renderer, $context)\n {\n $mock = $this->getMockBuilder(TestSubject::class)\n ->setConstructorArgs([$message, $code, $previous, $renderer, $context])\n ->setMethods(null)\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "ba44b493afb2a151bd0f74b15a4a629c", "score": "0.58860385", "text": "function newMessage() {\n\t\tif(is_null($this->Mailer)) $this->initMailer();\n\t\t$this->trace(LOG_DEBUG, 1, __FUNCTION__);\n\t\treturn Swift_Message::newInstance();\n\t}", "title": "" }, { "docid": "111c62f1aa11b042477586aea7434244", "score": "0.58601826", "text": "private function createDispatcherMock()\n {\n $this->eventDispatcherMock = $this->buildMock(EventDispatcher::class);\n $this->eventDispatcherMock->expects($this->any())->method('dispatch');\n }", "title": "" }, { "docid": "9336b09d553a8a986f5bb4dfa642b2dd", "score": "0.58489865", "text": "private function createKeyConfigurationFactoryInterfaceMock()\n {\n return $this->getMockBuilder(KeyConfigurationFactoryInterface::class)->getMock();\n }", "title": "" }, { "docid": "be3039f86e513284f721efc64c1d8a06", "score": "0.58394057", "text": "public function testFactoryReturnsSlackHandler(): void\n {\n $slackHandler = SlackHandlerFactory::create();\n $this->assertInstanceOf(SlackHandler::class, $slackHandler);\n }", "title": "" }, { "docid": "bcdfe02473e62f6e9258874738a602ca", "score": "0.58360267", "text": "private function createExceptionMock()\n {\n return $this->getMock('Ivory\\HttpAdapter\\HttpAdapterException');\n }", "title": "" }, { "docid": "5a28537fabc27399da07f05025eea766", "score": "0.5816055", "text": "private function createResponseMock()\n {\n return $this->getMock('Http\\Adapter\\Message\\ResponseInterface');\n }", "title": "" }, { "docid": "19158d21109491fa5290f57c18d2a044", "score": "0.5812894", "text": "public function testCallbackFactoryAccessors()\n {\n $config = $this->getMock('\\Backend\\Interfaces\\ConfigInterface');\n $factory = $this->getMock('Backend\\Interfaces\\CallbackFactoryInterface');\n $router = new Router($config, $factory);\n $this->assertSame($factory, $router->getCallbackFactory());\n $router->setCallbackFactory($factory);\n $this->assertSame($factory, $router->getCallbackFactory());\n }", "title": "" }, { "docid": "5f23b5e1fc523ada3f5c77c53f75009a", "score": "0.5809193", "text": "private function getFactory()\n {\n $factory = $this\n ->getMockBuilder(TaskFactoryInterface::class)\n ->getMockForAbstractClass();\n\n $factory->method('isTypeSupported')->willReturnCallback(\n function ($taskType) {\n return $taskType !== 'unknown-type';\n }\n );\n\n $factory->method('createInstance')->willReturnCallback(\n function ($taskType, JsonArray $metaData) {\n if ($taskType === 'unknown-type') {\n throw new \\InvalidArgumentException('UNSUPPORTED TYPE');\n }\n $task = $this\n ->getMockBuilder(Task::class)\n ->setConstructorArgs([$metaData])\n ->setMethods(['getType', 'perform'])\n ->getMockForAbstractClass();\n\n $task->method('getType')->willReturn($metaData->get(Task::SETTING_TYPE));\n\n return $task;\n }\n );\n\n return $factory;\n }", "title": "" }, { "docid": "8e99551a36467fb0d28ac555f86bfb07", "score": "0.579676", "text": "protected static function newFactory(): ResponseFactory\n {\n return ResponseFactory::new();\n }", "title": "" }, { "docid": "4c368a80c48b78aafde5311b969fc836", "score": "0.5795113", "text": "public function createMessage()\n {\n throw new \\RuntimeException('Not supported yet');\n }", "title": "" }, { "docid": "47e93eba69dadc749cbbb4c69cd4e961", "score": "0.5791844", "text": "public function test_create_core_gateway_factory_config()\n {\n\n $payumBuilder = m::mock('Payum\\Core\\PayumBuilder');\n $filesystem = m::mock('Illuminate\\Filesystem\\Filesystem');\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $config = [];\n $manager = new PayumBuilderManager($payumBuilder, $filesystem, $app, $config);\n\n $storageInterface = m::mock('Payum\\Core\\Storage\\StorageInterface');\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $app->shouldReceive('make')->with('Recca0120\\LaravelPayum\\CoreGatewayFactory', [\n 'defaultConfig' => [],\n ])->once();\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $manager->createCoreGatewayFactoryConfig([]);\n }", "title": "" }, { "docid": "4a3c074f9deafe547dd76b3c46b58465", "score": "0.57723176", "text": "public function test_factory_create_instance_with_basic_library_config()\n {\n $factory = new Factory();\n $client = $factory->createInstance(LibraryConfig::new('coris-monet-client', 'composer'));\n $client->setCredentialsFactory(static function () {\n return Credentials::empty();\n });\n $this->assertInstanceOf(Client::class, $client);\n $this->assertInstanceOf(ProcessorLibraryInterface::class, $client);\n $this->assertTrue(null === $client->getApiClient());\n $this->assertTrue(null === $client->getApiToken());\n }", "title": "" }, { "docid": "910ffc4d6f4a7564da8f4b3a2f6bc5af", "score": "0.5767262", "text": "public function createException($message = '')\n {\n $mock = $this->getMockBuilder('Exception')\n ->setConstructorArgs([$message])\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "61aed38a1396f58f34d2b638ecfa1095", "score": "0.57576406", "text": "public static function make(Message $message)\n {\n return new static($message);\n }", "title": "" }, { "docid": "500af4951cfa1f00f51e8c709ca33a86", "score": "0.5746017", "text": "public function testCreateMessage()\n {\n $user = $this->userRepository->findOneBy(array('username' => 'jim'));\n $phone = $_ENV['TWILLO_TEST_NO'];\n $text = 'hello';\n $message = $this->messageService->createMessage($user, $phone, $text);\n $this->assertEquals(true, $message instanceof Message);\n\n sleep(16);\n\n $text = null;\n $exception = false;\n try {\n $message = $this->messageService->createMessage($user, $phone, $text);\n } catch (\\Exception $e) {\n $exception = true;\n }\n $this->assertEquals(true, $exception, \"No text should have thrown an exception\");\n\n /*\n * Test min and max text validation\n */\n sleep(16);\n\n $text = \"11111111111111111111\" . \"11111111111111111111\" . \"11111111111111111111\" .\n \"11111111111111111111\" . \"11111111111111111111\" . \"11111111111111111111\" .\n \"11111111111111111111\";\n $exception = false;\n try {\n $message = $this->messageService->createMessage($user, $phone, $text);\n } catch (\\Exception $e) {\n $exception = true;\n }\n $this->assertEquals(false, $exception, \"140 chr text should NOT have thrown an exception\");\n\n sleep(16);\n\n $text .= \"X\";\n $exception = false;\n try {\n $message = $this->messageService->createMessage($user, $phone, $text);\n } catch (\\Exception $e) {\n $exception = true;\n }\n $this->assertEquals(true, $exception, \"140 chr text should have thrown an exception\");\n\n /*\n * Test phone number validation\n */\n sleep(16);\n\n $text = \"hello\";\n $phone = 'rubbish';\n $exception = false;\n try {\n $message = $this->messageService->createMessage($user, $phone, $text);\n } catch (\\Exception $e) {\n $exception = true;\n }\n $this->assertEquals(true, $exception, \"rubbish phone should have thrown an exception\");\n\n /*\n * Test 15 second message delay is working\n */\n\n $phone = $_ENV['TWILLO_TEST_NO'];\n $text = 'hello';\n $message = $this->messageService->createMessage($user, $phone, $text);\n $this->assertEquals(true, $message instanceof Message);\n\n sleep(16);\n\n $text = null;\n $exception = false;\n try {\n $message = $this->messageService->createMessage($user, $phone, $text);\n } catch (\\Exception $e) {\n $exception = true;\n }\n $this->assertEquals(true, $exception,\n \"An exception should be thrown if the delay is less than 15 sec\");\n }", "title": "" }, { "docid": "ab93903bfd892ac0a3cd0cae6d914e4e", "score": "0.57338876", "text": "private function createRequestMock()\n {\n return $this->getMock('Http\\Adapter\\Message\\InternalRequestInterface');\n }", "title": "" }, { "docid": "48a91de3db42c5bc44a2e1f8e10fbd8e", "score": "0.5723405", "text": "public function mockGetEventDemandFromFactory()\n {\n $this->eventDemandFactory = $this->getMockBuilder(EventDemandFactory::class)\n ->disableOriginalConstructor()\n ->setMethods(['createFromSettings'])->getMock();\n $mockEventDemand = $this->getMockEventDemand();\n $this->eventDemandFactory->expects($this->once())\n ->method('createFromSettings')\n ->will($this->returnValue($mockEventDemand));\n $this->subject->injectEventDemandFactory($this->eventDemandFactory);\n return $mockEventDemand;\n }", "title": "" }, { "docid": "ce474fa559d02a4ec421d826b4ecd915", "score": "0.57099396", "text": "private function createResponseMock()\n {\n return $this->getMock('Ivory\\HttpAdapter\\Message\\ResponseInterface');\n }", "title": "" }, { "docid": "ce474fa559d02a4ec421d826b4ecd915", "score": "0.57099396", "text": "private function createResponseMock()\n {\n return $this->getMock('Ivory\\HttpAdapter\\Message\\ResponseInterface');\n }", "title": "" }, { "docid": "39d8d28f007f2d4881fd62bece85f64b", "score": "0.57026476", "text": "public function createException($message = '')\n {\n $mock = $this->getMockBuilder('Exception')\n ->setConstructorArgs([$message])\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "39d8d28f007f2d4881fd62bece85f64b", "score": "0.57026476", "text": "public function createException($message = '')\n {\n $mock = $this->getMockBuilder('Exception')\n ->setConstructorArgs([$message])\n ->getMock();\n\n return $mock;\n }", "title": "" }, { "docid": "72d12353d02e377475759e959290599c", "score": "0.56982666", "text": "public function testCreationTruncatesMessage(): void\n {\n $provider = new Provider('1', 'test-provider');\n $logLineFactory = $this->getInstance();\n\n $dto = $logLineFactory->create(\n $provider,\n '127.0.0.1',\n new DateTime(),\n new RequestStub(200000),\n new ResponseStub(200000)\n );\n\n self::assertSame(100000, \\strlen($dto->getRequestData() ?? ''));\n self::assertSame(100000, \\strlen($dto->getResponseData() ?? ''));\n }", "title": "" }, { "docid": "861f163d3d32043dbd324d788a99a245", "score": "0.56819564", "text": "private function getMockTipFactory()\n {\n $factory = $this->getMockBuilder(TipFactory::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $factory\n ->method('create')\n ->willReturn($this->getMockTip());\n\n return $factory;\n }", "title": "" }, { "docid": "2b8329b1e27be38d8db3e5e216b31f83", "score": "0.5679071", "text": "public static function newFactory()\n {\n return OrderFactory::new();\n }", "title": "" }, { "docid": "450ff4c72b30fcf8df08bd0d657fdaf2", "score": "0.56711644", "text": "private function _createMessage($type, $name=null) {\n return new Message($type, $this->_namespace, $name);\n }", "title": "" }, { "docid": "ed1ef68b53a8943ca2b032d7b7c9b993", "score": "0.56550395", "text": "protected static function newFactory()\n {\n return ContactFactory::new();\n }", "title": "" }, { "docid": "7f0fad9064513951148c773c54bcd3de", "score": "0.5627386", "text": "protected function createMailMessage()\n {\n return $this->objectManager->get(MailMessage::class);\n }", "title": "" }, { "docid": "0dd46ecf719a10f2dd74b867b116e35a", "score": "0.5620514", "text": "public function setUp(): void\n {\n parent::setUp();\n\n $this->normalizer = Mockery::mock(DataNormalizer::class);\n $this->transformerResolver = Mockery::mock(TransformerResolver::class);\n $this->resourceKeyResolver = Mockery::mock(ResourceKeyResolver::class);\n $this->factory = new ResourceFactory($this->normalizer, $this->transformerResolver, $this->resourceKeyResolver);\n }", "title": "" }, { "docid": "97bd045c4b92c145898f394b368d5bff", "score": "0.56199425", "text": "public function __construct(\n MessengerInterface $messenger,\n LoggerChannelFactoryInterface $logger_factory,\n PrivateTempStoreFactory $tempStoreFactory\n ) {\n $this->messenger = $messenger;\n $this->loggerFactory = $logger_factory;\n $this->tempStoreFactory = $tempStoreFactory;\n }", "title": "" }, { "docid": "50a7a83b563f1a921fad4539ac96b565", "score": "0.5619659", "text": "public function createException($message = '')\n {\n $mock = $this->mock('Exception')\n ->new($message);\n\n return $mock;\n }", "title": "" }, { "docid": "19e44fc1f0b9496842db2362f294ab67", "score": "0.56191295", "text": "protected function getNewPayloadFactory()\n {\n return new PayloadFactory();\n }", "title": "" }, { "docid": "897649491f7859faafb4aa330b6454e8", "score": "0.5615848", "text": "private function createDecrypterHandlerInterfaceMock()\n {\n return $this->getMockBuilder(DecrypterHandlerInterface::class)->getMock();\n }", "title": "" }, { "docid": "0e2fc42170839952a9aca224e468fc13", "score": "0.5610398", "text": "public function testCreate()\n {\n $key = 'feeddeadbeef';\n $factory = new LoggerFactory();\n\n $client = $factory->create($key);\n\n $this->assertInstanceOf(Logger::class, $client);\n }", "title": "" }, { "docid": "f0632a7c001b7abfce5ddcc83a252d76", "score": "0.5591321", "text": "public function test_create_filesystem_storage()\n {\n\n $payumBuilder = m::mock('Payum\\Core\\PayumBuilder');\n $filesystem = m::mock('Illuminate\\Filesystem\\Filesystem');\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $config = [\n 'path' => 'fooPath',\n ];\n $manager = new PayumBuilderManager($payumBuilder, $filesystem, $app, $config);\n\n $modelClass = 'fooClass';\n $idProperty = 'fooId';\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $app->shouldReceive('make')->with('Payum\\Core\\Storage\\FilesystemStorage', [\n $config['path'],\n $modelClass,\n $idProperty,\n ])->once();\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $manager->createFilesystemStorage($modelClass, $idProperty);\n }", "title": "" }, { "docid": "f8b86cf62e7d2588baa92704ac033ad5", "score": "0.5591299", "text": "private function getMockVenueFactory()\n {\n return $this->getMockBuilder(VenueFactory::class)\n ->disableOriginalConstructor()\n ->getMock();\n }", "title": "" }, { "docid": "f3934d95ccc9273144a7badb00f00aa5", "score": "0.55806315", "text": "public function testSetMessage() {\n $message = $this->createMock('Drupal\\migrate\\MigrateMessageInterface');\n $id_map = $this->getIdMap();\n $id_map->setMessage($message);\n $this->assertEquals($message, $id_map->message);\n }", "title": "" }, { "docid": "426cdb35fe4485b7db143122cef2978a", "score": "0.5576951", "text": "public function mockMailViewMessage()\n {\n $mailViewMessageMock = $this->test->getMockBuilder(\\AclUser\\Mail\\MailMessage::class)->disableOriginalConstructor()->getMock();\n $mailViewMessageMock->expects($this->test->any())->method('setTo')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('setSubject')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('setViewScript')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('setViewParams')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('embedImageFromSrc')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('setLayoutTemplate')->willReturn($mailViewMessageMock);\n $mailViewMessageMock->expects($this->test->any())->method('sendEmailBasedOnViewScript')->willReturn(null);\n $this->setService('mailViewMessage', $mailViewMessageMock);\n }", "title": "" }, { "docid": "d1dffff5715cc69caab5173183b5c7f3", "score": "0.5569918", "text": "public static function factory($string)\n {\n $msg_parts = explode(':', $string);\n \n $priority = $msg_parts[0];\n $name = $msg_parts[1];\n \n $message = new self($priority, $name);\n $message->setDirection(self::MSG_IN);\n $message->setSuccess(('true' == $msg_parts[2]));\n \n return $message;\n }", "title": "" }, { "docid": "fa3369f822e0526d8e30ad5cdd3c0e9f", "score": "0.55640936", "text": "public function createMessage($subject, $message, array $placeholders = []);", "title": "" }, { "docid": "da06bc31cab3557282547e59c18011ca", "score": "0.5543237", "text": "public function testFactory()\n {\n $subscriptionType = factory(SubscriptionType::class)->make();\n\n $this->assertTrue(isset($subscriptionType->id));\n $this->assertTrue(isset($subscriptionType->type));\n }", "title": "" }, { "docid": "a958f86ba06110851562b81e02566cce", "score": "0.55422556", "text": "public function testFactory()\n {\n $entity = $this->account->getServiceManager()->get(\"EntityFactory\")->create(\"file\");\n $this->assertInstanceOf('\\Netric\\Entity\\ObjType\\FileEntity', $entity);\n }", "title": "" }, { "docid": "014db8a3956ffa0d731135f1ca3ef9ae", "score": "0.55420595", "text": "protected static function newFactory()\n {\n return MediaFactory::new();\n }", "title": "" }, { "docid": "e7577b89b0df08d40767d1c834129ee2", "score": "0.5538853", "text": "public static function create(string $message = ''): self\n {\n return new self($message);\n }", "title": "" }, { "docid": "98b5e1fc08f4cdb589218692545f842c", "score": "0.55383646", "text": "public function testCreate()\n {\n $factory = $this->getFactoryMock();\n $factory\n ->method('now')\n ->will($this->returnValue(new DateTime()));\n\n $factory\n ->method('getEntityNamespace')\n ->will($this->returnValue($this->getEntityNamespace()));\n\n $instance = $factory->create();\n $this->assertInstanceOf(\n $this->getEntityNamespace(),\n $instance\n );\n }", "title": "" }, { "docid": "888456ec1a19d07813b7596f0673d310", "score": "0.55282426", "text": "public static function getFactoryMethods()\n {\n return array(\n new ReflectionMethod(get_called_class(), 'createMessage'),\n new ReflectionMethod(get_called_class(), 'createFromString')\n );\n }", "title": "" }, { "docid": "f9c9d8fdbb72a0ecdc654554db58b067", "score": "0.5520852", "text": "protected static function newFactory(): Factory\n {\n return MediumFactory::new();\n }", "title": "" }, { "docid": "7e3729c59d8d5c200b6a31aaef667942", "score": "0.5518069", "text": "public function testAnalyseMissingFactory()\n {\n $this->setExpectedException('RuntimeException');\n $this->_object->setSplitter($this->getMock('CommitMessage_Splitter'));\n $this->_object->setHandlerStack(\n $this->getMock(\n 'CommitMessage_HandlerStack',\n array(\n 'setCaller'\n )\n )\n );\n $this->_object->analyse();\n }", "title": "" }, { "docid": "c16e8beb13da6d195affa5043760b2d1", "score": "0.5509097", "text": "private function createResponseFactory(): Psr17Factory\n {\n return new Psr17Factory();\n }", "title": "" }, { "docid": "0880872dc83abaadc51bf13ffb3cd7e7", "score": "0.5501935", "text": "public static function factory();", "title": "" }, { "docid": "f66d982e80a8adaa89d4fc26e15bc4a4", "score": "0.5499511", "text": "public function testConstruct() {\n $container = new ContainerBuilder();\n $container->set('event_dispatcher', $this->getMock(EventDispatcherInterface::class));\n\n $mock = $this->getMockForAbstractClass(FeedHandlerBase::class, [], '', FALSE);\n $mock_class = get_class($mock);\n $handler = $mock_class::createInstance($container, $this->getMock(EntityTypeInterface::class));\n $this->assertInstanceOf(FeedHandlerBase::class, $handler);\n }", "title": "" }, { "docid": "e5ea61e4068015a5e51fa1b60e542969", "score": "0.5477373", "text": "public function testCreate()\n {\n $this->c->mailer\n ->expects($this->at(0))\n ->method('send')\n ->willReturn(true);\n\n $this->c->mailer\n ->expects($this->at(1))\n ->method('send')\n ->willReturn(false);\n\n $this->assertTrue(Email::create($this->c, '[email protected]', 'George Webb', 'test_email'));\n $this->assertFalse(Email::create($this->c, '[email protected]', 'George Webb', 'test_email'));\n }", "title": "" }, { "docid": "c18fe0ee82a51a1da60522089355e14b", "score": "0.5475893", "text": "protected static function newFactory()\n {\n $factory_classname = str_replace(\n '\\\\Models\\\\',\n '\\\\Database\\\\Factories\\\\',\n get_called_class()\n ).'Factory';\n\n return call_user_func($factory_classname.'::new');\n }", "title": "" }, { "docid": "703d6d1d4c521a6c82583c2fcb0d2db5", "score": "0.5470202", "text": "public function __construct(Protocol\\IFactory $factory) {\n $this->_factory = $factory;\n }", "title": "" }, { "docid": "a4847175fbeb0cc3a14170df8ec0b926", "score": "0.5444233", "text": "public function testFactoryGeneratesHibpObjectForTesting()\n {\n $hibp = HibpFactory::createTestClient();\n $this->assertInstanceOf(Hibp::class, $hibp);\n }", "title": "" }, { "docid": "1e44bb0c64605cb16eef606a9e5cf1b9", "score": "0.54413027", "text": "public function test_get_builder()\n {\n\n $payumBuilder = m::mock('Payum\\Core\\PayumBuilder');\n $filesystem = m::mock('Illuminate\\Filesystem\\Filesystem');\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $config = [\n 'path' => 'fooPath',\n ];\n $manager = new PayumBuilderManager($payumBuilder, $filesystem, $app, $config);\n\n $storageInterface = m::mock('Payum\\Core\\Storage\\StorageInterface');\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $app\n ->shouldReceive('make')->with('Payum\\Core\\Storage\\FilesystemStorage', [\n $config['path'],\n 'Payum\\Core\\Model\\Token',\n 'hash',\n ])->once()->andReturn($storageInterface)\n ->shouldReceive('make')->with('Payum\\Core\\Storage\\FilesystemStorage', [\n $config['path'],\n 'Payum\\Core\\Model\\Payment',\n 'number',\n ])->once()->andReturn($storageInterface)\n ->shouldReceive('make')->with('Payum\\Core\\Storage\\FilesystemStorage', [\n $config['path'],\n 'Payum\\Core\\Model\\ArrayObject',\n 'payum_id',\n ])->once()->andReturn($storageInterface);\n\n $filesystem\n ->shouldReceive('isDirectory')->with($config['path'])->andReturn(false)\n ->shouldReceive('makeDirectory')->with($config['path'], 0777, true)->andReturn(true);\n\n $payumBuilder\n ->shouldReceive('setTokenFactory')->with([$manager, 'createTokenFactory'])->once()\n ->shouldReceive('setHttpRequestVerifier')->with([$manager, 'createHttpRequestVerifier'])->once()\n ->shouldReceive('setCoreGatewayFactory')->with([$manager, 'createCoreGatewayFactoryConfig'])->once()\n ->shouldReceive('setCoreGatewayFactoryConfig')->with([\n 'payum.action.obtain_credit_card' => 'payum.action.obtain_credit_card',\n 'payum.action.render_template' => 'payum.action.render_template',\n 'payum.extension.update_payment_status' => 'payum.extension.update_payment_status',\n ])->once()\n ->shouldReceive('setGenericTokenFactoryPaths')\n ->shouldReceive('setTokenStorage')->with($storageInterface)->andReturnSelf()\n ->shouldReceive('addStorage')->with('Payum\\Core\\Model\\Payment', $storageInterface)->andReturnSelf()\n ->shouldReceive('addStorage')->with('Payum\\Core\\Model\\ArrayObject', $storageInterface)->andReturnSelf();\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $this->assertSame($payumBuilder, $manager->getBuilder());\n }", "title": "" }, { "docid": "b28aeaf8bca797f76deeb0be8d8dd052", "score": "0.5441087", "text": "private function mockViewFactory()\n {\n $this->viewFactory = $this->getMock('Illuminate\\View\\Factory', ['make'], [\n $this->getMock('Illuminate\\View\\Engines\\EngineResolver'),\n $this->getMock('Illuminate\\View\\ViewFinderInterface'),\n $this->getMock('Illuminate\\Contracts\\Events\\Dispatcher')\n ]);\n\n }", "title": "" }, { "docid": "3d46e8b344527b344f6690f09a54e403", "score": "0.54268676", "text": "protected function getMockSocket()\n {\n return $this->getMock('Wrench\\Socket\\ClientSocket', array(), array('wss://localhost:8000'));\n }", "title": "" }, { "docid": "04c7f5de40447f9d4d3cfd4915befbe3", "score": "0.5424421", "text": "public function testInstantiateMailer()\n {\n $stub = $this->createMock(MailerAdapter::class);\n $mailer = new Mailer($stub);\n $this->assertInstanceOf(Mailer::class, $mailer);\n }", "title": "" }, { "docid": "f4555034b6df5aeba78cd446b3a7efd4", "score": "0.5415769", "text": "public function testCreate()\n {\n $object = new ErrorHandler($this->createMock('Evoke\\Service\\Log\\LoggingIface'));\n $this->assertInstanceOf('Evoke\\Service\\ErrorHandler', $object);\n }", "title": "" }, { "docid": "518dd6339dd0a571d414857572796887", "score": "0.5412664", "text": "public function createInvalidArgumentException($message = '')\n {\n $mock = $this->getMockBuilder('InvalidArgumentException')\n ->setConstructorArgs([$message])\n ->getMockForAbstractClass();\n\n return $mock;\n }", "title": "" }, { "docid": "6e72ffba9279e56acb558a2321ed3465", "score": "0.5407549", "text": "public function testGetByFactory()\r\n {\r\n $sl = $this->account->getServiceManager();\r\n $svc = $sl->get(\"Netric/ServiceManager/Test/Service\");\r\n $this->assertInstanceOf('\\Netric\\ServiceManager\\Test\\Service', $svc);\r\n $this->assertEquals(\"TEST\", $svc->getTestString());\r\n }", "title": "" }, { "docid": "0f24fb189b681c2a74e74d66781e507b", "score": "0.54030544", "text": "private function createDecrypterInterfaceMock()\n {\n return $this->getMockBuilder(DecrypterInterface::class)->getMock();\n }", "title": "" }, { "docid": "4b0485cdc301c368339f33de32c52544", "score": "0.53933966", "text": "protected function setUp() {\n\n\t\t// \\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump(class_implements($this->transportMock)); exit;\n\n\t\t// $nullTransport = \\Swift_NullTransport::newInstance();\n\n\t\t// $this->transportMock = $this->getMock('Swift_Transport_NullTransport', array('send', 'registerPlugin'), array(), '', FALSE);\n\n\t\t// $this->transportMock = new \\Swift_Transport_NullTransport(new \\Swift_Events_EventDispatcher);\n\n\t\t// $this->subject = new \\MONOGON\\QueueMailer\\Mail\\Mailer($this->transportMock);\n\n\t\t$this->subject = new MailerMock();\n\t\t// $this->subject = new \\MONOGON\\QueueMailer\\Mail\\Mailer($nullTransport);\n\n\n\t\t// $this->subject = $this->getMock('MONOGON\\\\QueueMailer\\\\Mail\\\\Mailer', array(), array(), '', FALSE);\n\n\t\t// $this->inject($this->subject, '_transport', $this->transportMock);\n\n\t\t$this->mailServiceMock = $this->getMock('MONOGON\\\\QueueMailer\\\\Service\\\\MailService', array('send', 'queue', 'log'), array(), '', FALSE);\n\n\t\tMailUtility::setMockInstance($this->mailServiceMock);\n\t\t// \\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump(class_implements($mailServiceMock)); exit;\n\t\t$this->extConf = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][ExtConf::EXT_KEY];\n\t\t$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][ExtConf::EXT_KEY] = serialize(array(\n\t\t\t'queueAllMessages' => '0',\n\t\t\t'logAllMessages' => '0',\n\t\t));\n\t}", "title": "" }, { "docid": "85a0adce12c78b5b22caa97f2483e72b", "score": "0.53830945", "text": "private function getNewFactory()\n {\n return $this->class->newInstance();\n }", "title": "" }, { "docid": "d660a918a6c467d062e2dd650c36322e", "score": "0.53818715", "text": "public function testGetMessage() {\n\t\t$data = [\n\t\t\t'title' => 'testbericht',\n\t\t\t'text' => 'Mi estas Pedro',\n\t\t\t'date' => date(\"Y-m-d\")];\n\t\t\t\n\t\t\n\t\t$user = factory(App\\User::class)->create();\n\t\t\n\t\t$this->actingAs($user)->json('POST', '/bericht', $data)\n\t\t\t->seeJsonEquals(['created' => 'true']);\n\t\t\n\t\t$this->actingAs($user)->json('GET', '/bericht', ['first' => 'true'])\n\t\t\t\t->seeJson(['title' => 'testbericht']);\n\t\t\n\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "2cf61f3a8a422878faa9c1f707673b91", "score": "0.0", "text": "public function run()\n {\n DB::table('sales')->truncate();\nDB::table('sales')->insert(['Codigo' =>'4108451','Precio'=>'3917.74','CodigoDeBarra'=>'7796930007310','Pvp'=>'3917.74']);\nDB::table('sales')->insert(['Codigo' =>'4108371','Precio'=>'1715.85','CodigoDeBarra'=>'7796930007303','Pvp'=>'1715.85']);\nDB::table('sales')->insert(['Codigo' =>'4408181','Precio'=>'8884.51','CodigoDeBarra'=>'7796930003336','Pvp'=>'8884.51']);\nDB::table('sales')->insert(['Codigo' =>'3313721','Precio'=>'1453.74','CodigoDeBarra'=>'7795327061164','Pvp'=>'1453.74']);\nDB::table('sales')->insert(['Codigo' =>'3313722','Precio'=>'2764.12','CodigoDeBarra'=>'7795327061171','Pvp'=>'2764.12']);\nDB::table('sales')->insert(['Codigo' =>'5820131','Precio'=>'1544.42','CodigoDeBarra'=>'7795327063625','Pvp'=>'1544.42']);\nDB::table('sales')->insert(['Codigo' =>'5820132','Precio'=>'2780.04','CodigoDeBarra'=>'7795327063632','Pvp'=>'2780.04']);\nDB::table('sales')->insert(['Codigo' =>'5820001','Precio'=>'2470.97','CodigoDeBarra'=>'7795327063670','Pvp'=>'2470.97']);\nDB::table('sales')->insert(['Codigo' =>'5820002','Precio'=>'4273.19','CodigoDeBarra'=>'7795327063687','Pvp'=>'4273.19']);\nDB::table('sales')->insert(['Codigo' =>'6393421','Precio'=>'2768.32','CodigoDeBarra'=>'7795327064622','Pvp'=>'2768.32']);\nDB::table('sales')->insert(['Codigo' =>'6393551','Precio'=>'5121.71','CodigoDeBarra'=>'7795327064639','Pvp'=>'5121.71']);\nDB::table('sales')->insert(['Codigo' =>'3314131','Precio'=>'665.98','CodigoDeBarra'=>'7795327061188','Pvp'=>'665.98']);\nDB::table('sales')->insert(['Codigo' =>'3314132','Precio'=>'1906.44','CodigoDeBarra'=>'7795327061195','Pvp'=>'1906.44']);\nDB::table('sales')->insert(['Codigo' =>'2168891','Precio'=>'286.50','CodigoDeBarra'=>'7795327060006','Pvp'=>'286.50']);\nDB::table('sales')->insert(['Codigo' =>'2168971','Precio'=>'339.09','CodigoDeBarra'=>'7795327060020','Pvp'=>'339.09']);\nDB::table('sales')->insert(['Codigo' =>'2062361','Precio'=>'371.39','CodigoDeBarra'=>'7795327060037','Pvp'=>'371.39']);\nDB::table('sales')->insert(['Codigo' =>'3444242','Precio'=>'675.41','CodigoDeBarra'=>'7795327060051','Pvp'=>'675.41']);\nDB::table('sales')->insert(['Codigo' =>'3068041','Precio'=>'659.44','CodigoDeBarra'=>'7795327060044','Pvp'=>'659.44']);\nDB::table('sales')->insert(['Codigo' =>'4809631','Precio'=>'20228.87','CodigoDeBarra'=>'7795326006616','Pvp'=>'20228.87']);\nDB::table('sales')->insert(['Codigo' =>'8040236','Precio'=>'672.31','CodigoDeBarra'=>'6121970000000','Pvp'=>'672.31']);\nDB::table('sales')->insert(['Codigo' =>'6228711','Precio'=>'151297.13','CodigoDeBarra'=>'7798084683464','Pvp'=>'151297.13']);\nDB::table('sales')->insert(['Codigo' =>'9991503','Precio'=>'177.99','CodigoDeBarra'=>'7798095260098','Pvp'=>'177.99']);\nDB::table('sales')->insert(['Codigo' =>'8023135','Precio'=>'3835.48','CodigoDeBarra'=>'7795380002104','Pvp'=>'3835.48']);\nDB::table('sales')->insert(['Codigo' =>'4324010','Precio'=>'394.98','CodigoDeBarra'=>'7795380004092','Pvp'=>'394.98']);\nDB::table('sales')->insert(['Codigo' =>'4324011','Precio'=>'641.94','CodigoDeBarra'=>'7795380004108','Pvp'=>'641.94']);\nDB::table('sales')->insert(['Codigo' =>'8009308','Precio'=>'3835.49','CodigoDeBarra'=>'7795380001466','Pvp'=>'3835.49']);\nDB::table('sales')->insert(['Codigo' =>'5916002','Precio'=>'405.47','CodigoDeBarra'=>'7795380042780','Pvp'=>'405.47']);\nDB::table('sales')->insert(['Codigo' =>'8011148','Precio'=>'1900.26','CodigoDeBarra'=>'7795380000230','Pvp'=>'1900.26']);\nDB::table('sales')->insert(['Codigo' =>'8006817','Precio'=>'633.88','CodigoDeBarra'=>'7798007804648','Pvp'=>'633.88']);\nDB::table('sales')->insert(['Codigo' =>'5499261','Precio'=>'400.42','CodigoDeBarra'=>'7791829000694','Pvp'=>'400.42']);\nDB::table('sales')->insert(['Codigo' =>'3444321','Precio'=>'296.66','CodigoDeBarra'=>'7795327000040','Pvp'=>'296.66']);\nDB::table('sales')->insert(['Codigo' =>'3444322','Precio'=>'499.31','CodigoDeBarra'=>'7795327000057','Pvp'=>'499.31']);\nDB::table('sales')->insert(['Codigo' =>'3978451','Precio'=>'385.66','CodigoDeBarra'=>'7795327060082','Pvp'=>'385.66']);\nDB::table('sales')->insert(['Codigo' =>'3978452','Precio'=>'656.58','CodigoDeBarra'=>'7795327060099','Pvp'=>'656.58']);\nDB::table('sales')->insert(['Codigo' =>'4465431','Precio'=>'588.91','CodigoDeBarra'=>'7795327061300','Pvp'=>'588.91']);\nDB::table('sales')->insert(['Codigo' =>'4465432','Precio'=>'964.49','CodigoDeBarra'=>'7795327061317','Pvp'=>'964.49']);\nDB::table('sales')->insert(['Codigo' =>'5097631','Precio'=>'557.89','CodigoDeBarra'=>'7795327061980','Pvp'=>'557.89']);\nDB::table('sales')->insert(['Codigo' =>'5097632','Precio'=>'950.54','CodigoDeBarra'=>'7795327061997','Pvp'=>'950.54']);\nDB::table('sales')->insert(['Codigo' =>'6400971','Precio'=>'566.86','CodigoDeBarra'=>'7795327064684','Pvp'=>'566.86']);\nDB::table('sales')->insert(['Codigo' =>'6400972','Precio'=>'1026.21','CodigoDeBarra'=>'7795327064691','Pvp'=>'1026.21']);\nDB::table('sales')->insert(['Codigo' =>'4930571','Precio'=>'385.35','CodigoDeBarra'=>'7795327060167','Pvp'=>'385.35']);\nDB::table('sales')->insert(['Codigo' =>'5472971','Precio'=>'12606.15','CodigoDeBarra'=>'7795306045659','Pvp'=>'12606.15']);\nDB::table('sales')->insert(['Codigo' =>'560171','Precio'=>'487.87','CodigoDeBarra'=>'7798021111470','Pvp'=>'487.87']);\nDB::table('sales')->insert(['Codigo' =>'5900681','Precio'=>'11749.74','CodigoDeBarra'=>'7792371933843','Pvp'=>'11749.74']);\nDB::table('sales')->insert(['Codigo' =>'5900841','Precio'=>'58749.15','CodigoDeBarra'=>'7792371933881','Pvp'=>'58749.15']);\nDB::table('sales')->insert(['Codigo' =>'5900711','Precio'=>'29374.43','CodigoDeBarra'=>'7792371933867','Pvp'=>'29374.43']);\nDB::table('sales')->insert(['Codigo' =>'6360551','Precio'=>'79898.51','CodigoDeBarra'=>'7792371417961','Pvp'=>'79898.51']);\nDB::table('sales')->insert(['Codigo' =>'423411','Precio'=>'6449.29','CodigoDeBarra'=>'7798006870323','Pvp'=>'6449.29']);\nDB::table('sales')->insert(['Codigo' =>'2057251','Precio'=>'5649.76','CodigoDeBarra'=>'7798006870576','Pvp'=>'5649.76']);\nDB::table('sales')->insert(['Codigo' =>'613513','Precio'=>'6281.57','CodigoDeBarra'=>'7798021440136','Pvp'=>'6281.57']);\nDB::table('sales')->insert(['Codigo' =>'3098822','Precio'=>'142145.09','CodigoDeBarra'=>'7795304866836','Pvp'=>'142145.09']);\nDB::table('sales')->insert(['Codigo' =>'8023037','Precio'=>'391528.71','CodigoDeBarra'=>'7795300001125','Pvp'=>'391528.71']);\nDB::table('sales')->insert(['Codigo' =>'8028407','Precio'=>'160891.60','CodigoDeBarra'=>'7795320000603','Pvp'=>'160891.60']);\nDB::table('sales')->insert(['Codigo' =>'8028408','Precio'=>'160891.60','CodigoDeBarra'=>'7795320000610','Pvp'=>'160891.60']);\nDB::table('sales')->insert(['Codigo' =>'6373552','Precio'=>'321783.18','CodigoDeBarra'=>'7795320000641','Pvp'=>'321783.18']);\nDB::table('sales')->insert(['Codigo' =>'8028409','Precio'=>'160891.60','CodigoDeBarra'=>'7795320000627','Pvp'=>'160891.60']);\nDB::table('sales')->insert(['Codigo' =>'6373682','Precio'=>'321783.18','CodigoDeBarra'=>'7795320000658','Pvp'=>'321783.18']);\nDB::table('sales')->insert(['Codigo' =>'8028410','Precio'=>'160891.60','CodigoDeBarra'=>'7795320000634','Pvp'=>'160891.60']);\nDB::table('sales')->insert(['Codigo' =>'8026126','Precio'=>'321783.18','CodigoDeBarra'=>'7795320000665','Pvp'=>'321783.18']);\nDB::table('sales')->insert(['Codigo' =>'8043317','Precio'=>'5947.95','CodigoDeBarra'=>'7798032935973','Pvp'=>'5947.95']);\nDB::table('sales')->insert(['Codigo' =>'8043318','Precio'=>'1498.40','CodigoDeBarra'=>'7798032935980','Pvp'=>'1498.40']);\nDB::table('sales')->insert(['Codigo' =>'8022086','Precio'=>'2644.06','CodigoDeBarra'=>'7798038280213','Pvp'=>'2644.06']);\nDB::table('sales')->insert(['Codigo' =>'6052391','Precio'=>'756.12','CodigoDeBarra'=>'7798161930030','Pvp'=>'756.12']);\nDB::table('sales')->insert(['Codigo' =>'6052392','Precio'=>'1471.01','CodigoDeBarra'=>'7798161930047','Pvp'=>'1471.01']);\nDB::table('sales')->insert(['Codigo' =>'6052393','Precio'=>'1746.82','CodigoDeBarra'=>'7798161930283','Pvp'=>'1746.82']);\nDB::table('sales')->insert(['Codigo' =>'6052421','Precio'=>'1204.93','CodigoDeBarra'=>'7798161930054','Pvp'=>'1204.93']);\nDB::table('sales')->insert(['Codigo' =>'6052422','Precio'=>'2374.00','CodigoDeBarra'=>'7798161930061','Pvp'=>'2374.00']);\nDB::table('sales')->insert(['Codigo' =>'178822','Precio'=>'2505.89','CodigoDeBarra'=>'7798161930290','Pvp'=>'2505.89']);\nDB::table('sales')->insert(['Codigo' =>'8006907','Precio'=>'561.68','CodigoDeBarra'=>'7798083959898','Pvp'=>'561.68']);\nDB::table('sales')->insert(['Codigo' =>'8006908','Precio'=>'2325.63','CodigoDeBarra'=>'7798083959904','Pvp'=>'2325.63']);\nDB::table('sales')->insert(['Codigo' =>'5593681','Precio'=>'98046.25','CodigoDeBarra'=>'642621023152','Pvp'=>'98046.25']);\nDB::table('sales')->insert(['Codigo' =>'8039335','Precio'=>'24511.58','CodigoDeBarra'=>'642621023138','Pvp'=>'24511.58']);\nDB::table('sales')->insert(['Codigo' =>'8038918','Precio'=>'49023.12','CodigoDeBarra'=>'642621023145','Pvp'=>'49023.12']);\nDB::table('sales')->insert(['Codigo' =>'6371263','Precio'=>'18693.38','CodigoDeBarra'=>'7791829001165','Pvp'=>'18693.38']);\nDB::table('sales')->insert(['Codigo' =>'3377761','Precio'=>'477.67','CodigoDeBarra'=>'7791763002358','Pvp'=>'477.67']);\nDB::table('sales')->insert(['Codigo' =>'8019359','Precio'=>'393.77','CodigoDeBarra'=>'7794207000729','Pvp'=>'393.77']);\nDB::table('sales')->insert(['Codigo' =>'6123551','Precio'=>'108260.94','CodigoDeBarra'=>'7795306010572','Pvp'=>'108260.94']);\nDB::table('sales')->insert(['Codigo' =>'5895391','Precio'=>'218526.57','CodigoDeBarra'=>'7795306000085','Pvp'=>'218526.57']);\nDB::table('sales')->insert(['Codigo' =>'5895261','Precio'=>'324652.19','CodigoDeBarra'=>'7795306000962','Pvp'=>'324652.19']);\nDB::table('sales')->insert(['Codigo' =>'6084133','Precio'=>'225.36','CodigoDeBarra'=>'7795327063779','Pvp'=>'225.36']);\nDB::table('sales')->insert(['Codigo' =>'6084131','Precio'=>'560.16','CodigoDeBarra'=>'7795327063755','Pvp'=>'560.16']);\nDB::table('sales')->insert(['Codigo' =>'6084132','Precio'=>'1064.52','CodigoDeBarra'=>'7795327063762','Pvp'=>'1064.52']);\nDB::table('sales')->insert(['Codigo' =>'813492','Precio'=>'89.01','CodigoDeBarra'=>'7791763001160','Pvp'=>'89.01']);\nDB::table('sales')->insert(['Codigo' =>'813493','Precio'=>'162.22','CodigoDeBarra'=>'7791763001177','Pvp'=>'162.22']);\nDB::table('sales')->insert(['Codigo' =>'5855130','Precio'=>'6039.28','CodigoDeBarra'=>'7793397050897','Pvp'=>'6039.28']);\nDB::table('sales')->insert(['Codigo' =>'5855260','Precio'=>'4021.98','CodigoDeBarra'=>'7793397050903','Pvp'=>'4021.98']);\nDB::table('sales')->insert(['Codigo' =>'5580681','Precio'=>'182.64','CodigoDeBarra'=>'7795378003618','Pvp'=>'182.64']);\nDB::table('sales')->insert(['Codigo' =>'5580682','Precio'=>'335.61','CodigoDeBarra'=>'7795378003625','Pvp'=>'335.61']);\nDB::table('sales')->insert(['Codigo' =>'5463971','Precio'=>'7312.92','CodigoDeBarra'=>'7795349168988','Pvp'=>'7312.92']);\nDB::table('sales')->insert(['Codigo' =>'5464001','Precio'=>'9847.56','CodigoDeBarra'=>'7795349169046','Pvp'=>'9847.56']);\nDB::table('sales')->insert(['Codigo' =>'8039432','Precio'=>'28148.54','CodigoDeBarra'=>'7795306512298','Pvp'=>'28148.54']);\nDB::table('sales')->insert(['Codigo' =>'4106473','Precio'=>'1850.34','CodigoDeBarra'=>'7798260150285','Pvp'=>'1850.34']);\nDB::table('sales')->insert(['Codigo' =>'5818683','Precio'=>'2472.43','CodigoDeBarra'=>'7798260150292','Pvp'=>'2472.43']);\nDB::table('sales')->insert(['Codigo' =>'8042861','Precio'=>'44.67','CodigoDeBarra'=>'7791290000674','Pvp'=>'44.67']);\nDB::table('sales')->insert(['Codigo' =>'8042862','Precio'=>'59.66','CodigoDeBarra'=>'7791290000681','Pvp'=>'59.66']);\nDB::table('sales')->insert(['Codigo' =>'8042883','Precio'=>'153.78','CodigoDeBarra'=>'7791290787230','Pvp'=>'153.78']);\nDB::table('sales')->insert(['Codigo' =>'8042881','Precio'=>'46.10','CodigoDeBarra'=>'7791290788480','Pvp'=>'46.10']);\nDB::table('sales')->insert(['Codigo' =>'8042649','Precio'=>'89.83','CodigoDeBarra'=>'7791290011496','Pvp'=>'89.83']);\nDB::table('sales')->insert(['Codigo' =>'8042882','Precio'=>'89.83','CodigoDeBarra'=>'7791290787520','Pvp'=>'89.83']);\nDB::table('sales')->insert(['Codigo' =>'5983260','Precio'=>'2089.75','CodigoDeBarra'=>'7793397050989','Pvp'=>'2089.75']);\nDB::table('sales')->insert(['Codigo' =>'6162263','Precio'=>'401458.07','CodigoDeBarra'=>'7793236000670','Pvp'=>'401458.07']);\nDB::table('sales')->insert(['Codigo' =>'3720452','Precio'=>'3973.25','CodigoDeBarra'=>'7798019610398','Pvp'=>'3973.25']);\nDB::table('sales')->insert(['Codigo' =>'3720871','Precio'=>'9933.13','CodigoDeBarra'=>'7798019610374','Pvp'=>'9933.13']);\nDB::table('sales')->insert(['Codigo' =>'8041333','Precio'=>'278213.94','CodigoDeBarra'=>'7796285283551','Pvp'=>'278213.94']);\nDB::table('sales')->insert(['Codigo' =>'8041739','Precio'=>'58.28','CodigoDeBarra'=>'1000000034806','Pvp'=>'58.28']);\nDB::table('sales')->insert(['Codigo' =>'8027089','Precio'=>'1165.56','CodigoDeBarra'=>'7792378001743','Pvp'=>'1165.56']);\nDB::table('sales')->insert(['Codigo' =>'8029543','Precio'=>'1795.07','CodigoDeBarra'=>'7790139004743','Pvp'=>'1795.07']);\nDB::table('sales')->insert(['Codigo' =>'8042741','Precio'=>'920.84','CodigoDeBarra'=>'','Pvp'=>'920.84']);\nDB::table('sales')->insert(['Codigo' =>'8027090','Precio'=>'1589.09','CodigoDeBarra'=>'7792378000036','Pvp'=>'1589.09']);\nDB::table('sales')->insert(['Codigo' =>'8029544','Precio'=>'1690.52','CodigoDeBarra'=>'7790139004767','Pvp'=>'1690.52']);\nDB::table('sales')->insert(['Codigo' =>'8042742','Precio'=>'1116.09','CodigoDeBarra'=>'1000000036602','Pvp'=>'1116.09']);\nDB::table('sales')->insert(['Codigo' =>'8015327','Precio'=>'2323.64','CodigoDeBarra'=>'7792378000111','Pvp'=>'2323.64']);\nDB::table('sales')->insert(['Codigo' =>'8041735','Precio'=>'127.02','CodigoDeBarra'=>'1000000034769','Pvp'=>'127.02']);\nDB::table('sales')->insert(['Codigo' =>'8041741','Precio'=>'195.95','CodigoDeBarra'=>'1000000034820','Pvp'=>'195.95']);\nDB::table('sales')->insert(['Codigo' =>'8023765','Precio'=>'1828.58','CodigoDeBarra'=>'7790139000486','Pvp'=>'1828.58']);\nDB::table('sales')->insert(['Codigo' =>'8015328','Precio'=>'2351.42','CodigoDeBarra'=>'7792378000159','Pvp'=>'2351.42']);\nDB::table('sales')->insert(['Codigo' =>'8013307','Precio'=>'1702.99','CodigoDeBarra'=>'7790139003661','Pvp'=>'1702.99']);\nDB::table('sales')->insert(['Codigo' =>'8019959','Precio'=>'1148.40','CodigoDeBarra'=>'7790139000271','Pvp'=>'1148.40']);\nDB::table('sales')->insert(['Codigo' =>'8026791','Precio'=>'3375.85','CodigoDeBarra'=>'7790139004675','Pvp'=>'3375.85']);\nDB::table('sales')->insert(['Codigo' =>'8024095','Precio'=>'1656.85','CodigoDeBarra'=>'7790139004439','Pvp'=>'1656.85']);\nDB::table('sales')->insert(['Codigo' =>'8024097','Precio'=>'4278.83','CodigoDeBarra'=>'7790139004422','Pvp'=>'4278.83']);\nDB::table('sales')->insert(['Codigo' =>'8024096','Precio'=>'1656.85','CodigoDeBarra'=>'7790139004385','Pvp'=>'1656.85']);\nDB::table('sales')->insert(['Codigo' =>'8024098','Precio'=>'4278.83','CodigoDeBarra'=>'7790139004378','Pvp'=>'4278.83']);\nDB::table('sales')->insert(['Codigo' =>'8013309','Precio'=>'1640.04','CodigoDeBarra'=>'7790139000196','Pvp'=>'1640.04']);\nDB::table('sales')->insert(['Codigo' =>'8019958','Precio'=>'1020.80','CodigoDeBarra'=>'7790139000288','Pvp'=>'1020.80']);\nDB::table('sales')->insert(['Codigo' =>'8018952','Precio'=>'179.82','CodigoDeBarra'=>'7798014060204','Pvp'=>'179.82']);\nDB::table('sales')->insert(['Codigo' =>'9999362','Precio'=>'1171.14','CodigoDeBarra'=>'7790139003654','Pvp'=>'1171.14']);\nDB::table('sales')->insert(['Codigo' =>'8023011','Precio'=>'1486.74','CodigoDeBarra'=>'7790139000493','Pvp'=>'1486.74']);\nDB::table('sales')->insert(['Codigo' =>'8042065','Precio'=>'1478.30','CodigoDeBarra'=>'1000000036442','Pvp'=>'1478.30']);\nDB::table('sales')->insert(['Codigo' =>'8019957','Precio'=>'1664.71','CodigoDeBarra'=>'7790139003647','Pvp'=>'1664.71']);\nDB::table('sales')->insert(['Codigo' =>'8040282','Precio'=>'1185.60','CodigoDeBarra'=>'7790139100438','Pvp'=>'1185.60']);\nDB::table('sales')->insert(['Codigo' =>'8042063','Precio'=>'1524.98','CodigoDeBarra'=>'','Pvp'=>'1524.98']);\nDB::table('sales')->insert(['Codigo' =>'8040373','Precio'=>'267.95','CodigoDeBarra'=>'7798014068354','Pvp'=>'267.95']);\nDB::table('sales')->insert(['Codigo' =>'8042064','Precio'=>'1487.71','CodigoDeBarra'=>'1000000036664','Pvp'=>'1487.71']);\nDB::table('sales')->insert(['Codigo' =>'8042504','Precio'=>'4199.00','CodigoDeBarra'=>'7792378001637','Pvp'=>'4199.00']);\nDB::table('sales')->insert(['Codigo' =>'8024676','Precio'=>'66.23','CodigoDeBarra'=>'7798014060945','Pvp'=>'66.23']);\nDB::table('sales')->insert(['Codigo' =>'8007852','Precio'=>'1143.25','CodigoDeBarra'=>'7792378001644','Pvp'=>'1143.25']);\nDB::table('sales')->insert(['Codigo' =>'8041736','Precio'=>'80.89','CodigoDeBarra'=>'1000000034776','Pvp'=>'80.89']);\nDB::table('sales')->insert(['Codigo' =>'6232137','Precio'=>'970.85','CodigoDeBarra'=>'7792378000562','Pvp'=>'970.85']);\nDB::table('sales')->insert(['Codigo' =>'8041740','Precio'=>'120.34','CodigoDeBarra'=>'1000000034813','Pvp'=>'120.34']);\nDB::table('sales')->insert(['Codigo' =>'8024585','Precio'=>'721.99','CodigoDeBarra'=>'7792378001750','Pvp'=>'721.99']);\nDB::table('sales')->insert(['Codigo' =>'8013363','Precio'=>'1196.96','CodigoDeBarra'=>'7792378001668','Pvp'=>'1196.96']);\nDB::table('sales')->insert(['Codigo' =>'8029542','Precio'=>'1096.56','CodigoDeBarra'=>'7790139004750','Pvp'=>'1096.56']);\nDB::table('sales')->insert(['Codigo' =>'8042700','Precio'=>'46.70','CodigoDeBarra'=>'7790139003616','Pvp'=>'46.70']);\nDB::table('sales')->insert(['Codigo' =>'8013287','Precio'=>'518.70','CodigoDeBarra'=>'7798014062444','Pvp'=>'518.70']);\nDB::table('sales')->insert(['Codigo' =>'8038447','Precio'=>'700.38','CodigoDeBarra'=>'1000000033236','Pvp'=>'700.38']);\nDB::table('sales')->insert(['Codigo' =>'6232139','Precio'=>'1418.79','CodigoDeBarra'=>'7792378000104','Pvp'=>'1418.79']);\nDB::table('sales')->insert(['Codigo' =>'6310170','Precio'=>'1342.95','CodigoDeBarra'=>'7792378000142','Pvp'=>'1342.95']);\nDB::table('sales')->insert(['Codigo' =>'8042701','Precio'=>'70.74','CodigoDeBarra'=>'7790139003630','Pvp'=>'70.74']);\nDB::table('sales')->insert(['Codigo' =>'8013286','Precio'=>'839.18','CodigoDeBarra'=>'7798014062376','Pvp'=>'839.18']);\nDB::table('sales')->insert(['Codigo' =>'8040283','Precio'=>'848.89','CodigoDeBarra'=>'7790139100377','Pvp'=>'848.89']);\nDB::table('sales')->insert(['Codigo' =>'8038448','Precio'=>'848.89','CodigoDeBarra'=>'1000000027969','Pvp'=>'848.89']);\nDB::table('sales')->insert(['Codigo' =>'6232136','Precio'=>'2159.11','CodigoDeBarra'=>'7792378000012','Pvp'=>'2159.11']);\nDB::table('sales')->insert(['Codigo' =>'8027092','Precio'=>'1963.81','CodigoDeBarra'=>'7792378000128','Pvp'=>'1963.81']);\nDB::table('sales')->insert(['Codigo' =>'6232140','Precio'=>'2155.74','CodigoDeBarra'=>'7792378000074','Pvp'=>'2155.74']);\nDB::table('sales')->insert(['Codigo' =>'8041734','Precio'=>'140.52','CodigoDeBarra'=>'1000000034752','Pvp'=>'140.52']);\nDB::table('sales')->insert(['Codigo' =>'8041737','Precio'=>'170.65','CodigoDeBarra'=>'1000000034783','Pvp'=>'170.65']);\nDB::table('sales')->insert(['Codigo' =>'6232142','Precio'=>'1540.34','CodigoDeBarra'=>'7790139003623','Pvp'=>'1540.34']);\nDB::table('sales')->insert(['Codigo' =>'8027091','Precio'=>'2047.86','CodigoDeBarra'=>'7792378000135','Pvp'=>'2047.86']);\nDB::table('sales')->insert(['Codigo' =>'8025253','Precio'=>'1432.20','CodigoDeBarra'=>'7798014062413','Pvp'=>'1432.20']);\nDB::table('sales')->insert(['Codigo' =>'8041738','Precio'=>'46.18','CodigoDeBarra'=>'1000000034790','Pvp'=>'46.18']);\nDB::table('sales')->insert(['Codigo' =>'8042835','Precio'=>'73.93','CodigoDeBarra'=>'','Pvp'=>'73.93']);\nDB::table('sales')->insert(['Codigo' =>'648097','Precio'=>'344968.38','CodigoDeBarra'=>'7792371672605','Pvp'=>'344968.38']);\nDB::table('sales')->insert(['Codigo' =>'5416001','Precio'=>'419.54','CodigoDeBarra'=>'7792175008204','Pvp'=>'419.54']);\nDB::table('sales')->insert(['Codigo' =>'4513601','Precio'=>'299.14','CodigoDeBarra'=>'7795347900108','Pvp'=>'299.14']);\nDB::table('sales')->insert(['Codigo' =>'4513602','Precio'=>'827.90','CodigoDeBarra'=>'7795347900115','Pvp'=>'827.90']);\nDB::table('sales')->insert(['Codigo' =>'4578391','Precio'=>'487.19','CodigoDeBarra'=>'7795347900146','Pvp'=>'487.19']);\nDB::table('sales')->insert(['Codigo' =>'4578392','Precio'=>'787.02','CodigoDeBarra'=>'7795347900153','Pvp'=>'787.02']);\nDB::table('sales')->insert(['Codigo' =>'4803851','Precio'=>'305.26','CodigoDeBarra'=>'7795347900085','Pvp'=>'305.26']);\nDB::table('sales')->insert(['Codigo' =>'5885421','Precio'=>'378.86','CodigoDeBarra'=>'7795347900986','Pvp'=>'378.86']);\nDB::table('sales')->insert(['Codigo' =>'8035538','Precio'=>'108.13','CodigoDeBarra'=>'7798006302275','Pvp'=>'108.13']);\nDB::table('sales')->insert(['Codigo' =>'8011244','Precio'=>'93.85','CodigoDeBarra'=>'7798006302022','Pvp'=>'93.85']);\nDB::table('sales')->insert(['Codigo' =>'8011245','Precio'=>'249.94','CodigoDeBarra'=>'7798006302039','Pvp'=>'249.94']);\nDB::table('sales')->insert(['Codigo' =>'4018022','Precio'=>'164.46','CodigoDeBarra'=>'7795378000822','Pvp'=>'164.46']);\nDB::table('sales')->insert(['Codigo' =>'3854781','Precio'=>'227.24','CodigoDeBarra'=>'7795378001584','Pvp'=>'227.24']);\nDB::table('sales')->insert(['Codigo' =>'8025953','Precio'=>'122.30','CodigoDeBarra'=>'7798180960285','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025949','Precio'=>'122.30','CodigoDeBarra'=>'7798180960278','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025951','Precio'=>'122.30','CodigoDeBarra'=>'7798180960292','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8029979','Precio'=>'122.30','CodigoDeBarra'=>'7798180960711','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8029978','Precio'=>'122.30','CodigoDeBarra'=>'7798180960636','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025961','Precio'=>'122.30','CodigoDeBarra'=>'7798180960261','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025960','Precio'=>'122.30','CodigoDeBarra'=>'7798180960254','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8039701','Precio'=>'199.80','CodigoDeBarra'=>'7798180961107','Pvp'=>'199.80']);\nDB::table('sales')->insert(['Codigo' =>'8040966','Precio'=>'187.50','CodigoDeBarra'=>'7899884200858','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8040963','Precio'=>'187.50','CodigoDeBarra'=>'7898468519928','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8040964','Precio'=>'187.50','CodigoDeBarra'=>'7899884209493','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8025974','Precio'=>'137.68','CodigoDeBarra'=>'7798180960490','Pvp'=>'137.68']);\nDB::table('sales')->insert(['Codigo' =>'8025973','Precio'=>'187.50','CodigoDeBarra'=>'7798180960445','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8025962','Precio'=>'137.60','CodigoDeBarra'=>'7798180960384','Pvp'=>'137.60']);\nDB::table('sales')->insert(['Codigo' =>'8025971','Precio'=>'187.50','CodigoDeBarra'=>'7798180960421','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8025969','Precio'=>'187.50','CodigoDeBarra'=>'7798180960407','Pvp'=>'187.50']);\nDB::table('sales')->insert(['Codigo' =>'8025963','Precio'=>'155.07','CodigoDeBarra'=>'7798180960353','Pvp'=>'155.07']);\nDB::table('sales')->insert(['Codigo' =>'8025958','Precio'=>'155.07','CodigoDeBarra'=>'7798180960339','Pvp'=>'155.07']);\nDB::table('sales')->insert(['Codigo' =>'8025968','Precio'=>'155.07','CodigoDeBarra'=>'7798180960322','Pvp'=>'155.07']);\nDB::table('sales')->insert(['Codigo' =>'8040967','Precio'=>'178.16','CodigoDeBarra'=>'7798180961114','Pvp'=>'178.16']);\nDB::table('sales')->insert(['Codigo' =>'8025950','Precio'=>'122.30','CodigoDeBarra'=>'7798180960223','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025939','Precio'=>'122.30','CodigoDeBarra'=>'7798180960209','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025941','Precio'=>'122.30','CodigoDeBarra'=>'7798180960230','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8029980','Precio'=>'122.30','CodigoDeBarra'=>'7798180960704','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8029977','Precio'=>'122.30','CodigoDeBarra'=>'7798180960629','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025957','Precio'=>'122.30','CodigoDeBarra'=>'7798180960193','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025956','Precio'=>'122.30','CodigoDeBarra'=>'7798180960186','Pvp'=>'122.30']);\nDB::table('sales')->insert(['Codigo' =>'8025970','Precio'=>'178.16','CodigoDeBarra'=>'7798180960476','Pvp'=>'178.16']);\nDB::table('sales')->insert(['Codigo' =>'8042255','Precio'=>'223.15','CodigoDeBarra'=>'7795380043220','Pvp'=>'223.15']);\nDB::table('sales')->insert(['Codigo' =>'8042254','Precio'=>'416.04','CodigoDeBarra'=>'7795380043213','Pvp'=>'416.04']);\nDB::table('sales')->insert(['Codigo' =>'5263701','Precio'=>'181872.06','CodigoDeBarra'=>'7795990001481','Pvp'=>'181872.06']);\nDB::table('sales')->insert(['Codigo' =>'4405871','Precio'=>'316.63','CodigoDeBarra'=>'7795312001359','Pvp'=>'316.63']);\nDB::table('sales')->insert(['Codigo' =>'5730131','Precio'=>'435.09','CodigoDeBarra'=>'7795312100090','Pvp'=>'435.09']);\nDB::table('sales')->insert(['Codigo' =>'4761021','Precio'=>'305.84','CodigoDeBarra'=>'7795312020138','Pvp'=>'305.84']);\nDB::table('sales')->insert(['Codigo' =>'5734711','Precio'=>'240.41','CodigoDeBarra'=>'7795368055290','Pvp'=>'240.41']);\nDB::table('sales')->insert(['Codigo' =>'5816551','Precio'=>'6886.89','CodigoDeBarra'=>'7795336292658','Pvp'=>'6886.89']);\nDB::table('sales')->insert(['Codigo' =>'4536631','Precio'=>'544.65','CodigoDeBarra'=>'7798069050243','Pvp'=>'544.65']);\nDB::table('sales')->insert(['Codigo' =>'8038461','Precio'=>'4525.16','CodigoDeBarra'=>'7791992885180','Pvp'=>'4525.16']);\nDB::table('sales')->insert(['Codigo' =>'5867002','Precio'=>'352223.65','CodigoDeBarra'=>'7798113890306','Pvp'=>'352223.65']);\nDB::table('sales')->insert(['Codigo' =>'5867001','Precio'=>'179325.35','CodigoDeBarra'=>'7798113890290','Pvp'=>'179325.35']);\nDB::table('sales')->insert(['Codigo' =>'8038573','Precio'=>'72781.68','CodigoDeBarra'=>'7798113890542','Pvp'=>'72781.68']);\nDB::table('sales')->insert(['Codigo' =>'8020850','Precio'=>'134.58','CodigoDeBarra'=>'7506339391541','Pvp'=>'134.58']);\nDB::table('sales')->insert(['Codigo' =>'6533251','Precio'=>'80.66','CodigoDeBarra'=>'7506339391527','Pvp'=>'80.66']);\nDB::table('sales')->insert(['Codigo' =>'8022552','Precio'=>'140.21','CodigoDeBarra'=>'7506339391572','Pvp'=>'140.21']);\nDB::table('sales')->insert(['Codigo' =>'6533252','Precio'=>'88.48','CodigoDeBarra'=>'7501065922755','Pvp'=>'88.48']);\nDB::table('sales')->insert(['Codigo' =>'8010774','Precio'=>'45.73','CodigoDeBarra'=>'7500435140577','Pvp'=>'45.73']);\nDB::table('sales')->insert(['Codigo' =>'8033310','Precio'=>'132.89','CodigoDeBarra'=>'7500435125840','Pvp'=>'132.89']);\nDB::table('sales')->insert(['Codigo' =>'8033308','Precio'=>'132.89','CodigoDeBarra'=>'7500435125826','Pvp'=>'132.89']);\nDB::table('sales')->insert(['Codigo' =>'8037064','Precio'=>'132.91','CodigoDeBarra'=>'7500435135771','Pvp'=>'132.91']);\nDB::table('sales')->insert(['Codigo' =>'8027670','Precio'=>'132.89','CodigoDeBarra'=>'7506295338901','Pvp'=>'132.89']);\nDB::table('sales')->insert(['Codigo' =>'6301001','Precio'=>'634.78','CodigoDeBarra'=>'7792175009423','Pvp'=>'634.78']);\nDB::table('sales')->insert(['Codigo' =>'3806001','Precio'=>'13272.56','CodigoDeBarra'=>'7792183100082','Pvp'=>'13272.56']);\nDB::table('sales')->insert(['Codigo' =>'8043178','Precio'=>'52253.07','CodigoDeBarra'=>'7798337900119','Pvp'=>'52253.07']);\nDB::table('sales')->insert(['Codigo' =>'3235191','Precio'=>'533.87','CodigoDeBarra'=>'7795336247542','Pvp'=>'533.87']);\nDB::table('sales')->insert(['Codigo' =>'8007121','Precio'=>'629.80','CodigoDeBarra'=>'7798061750424','Pvp'=>'629.80']);\nDB::table('sales')->insert(['Codigo' =>'8023059','Precio'=>'5189.59','CodigoDeBarra'=>'4034341000050','Pvp'=>'5189.59']);\nDB::table('sales')->insert(['Codigo' =>'9999109','Precio'=>'492.12','CodigoDeBarra'=>'7791763000521','Pvp'=>'492.12']);\nDB::table('sales')->insert(['Codigo' =>'361436','Precio'=>'1502.63','CodigoDeBarra'=>'7791763001184','Pvp'=>'1502.63']);\nDB::table('sales')->insert(['Codigo' =>'3614366','Precio'=>'615.72','CodigoDeBarra'=>'7791763000873','Pvp'=>'615.72']);\nDB::table('sales')->insert(['Codigo' =>'334443','Precio'=>'1175.31','CodigoDeBarra'=>'7791763000569','Pvp'=>'1175.31']);\nDB::table('sales')->insert(['Codigo' =>'3614361','Precio'=>'1384.50','CodigoDeBarra'=>'7791763000880','Pvp'=>'1384.50']);\nDB::table('sales')->insert(['Codigo' =>'5217951','Precio'=>'411.41','CodigoDeBarra'=>'7792175007542','Pvp'=>'411.41']);\nDB::table('sales')->insert(['Codigo' =>'5266083','Precio'=>'438.95','CodigoDeBarra'=>'7795336291323','Pvp'=>'438.95']);\nDB::table('sales')->insert(['Codigo' =>'5265953','Precio'=>'268.04','CodigoDeBarra'=>'7795336291309','Pvp'=>'268.04']);\nDB::table('sales')->insert(['Codigo' =>'5594391','Precio'=>'145.47','CodigoDeBarra'=>'7798113691286','Pvp'=>'145.47']);\nDB::table('sales')->insert(['Codigo' =>'4677210','Precio'=>'499.31','CodigoDeBarra'=>'7795336291354','Pvp'=>'499.31']);\nDB::table('sales')->insert(['Codigo' =>'5293422','Precio'=>'409.12','CodigoDeBarra'=>'7795336291446','Pvp'=>'409.12']);\nDB::table('sales')->insert(['Codigo' =>'8001780','Precio'=>'252.01','CodigoDeBarra'=>'7795336290876','Pvp'=>'252.01']);\nDB::table('sales')->insert(['Codigo' =>'4677130','Precio'=>'251.21','CodigoDeBarra'=>'7795336291361','Pvp'=>'251.21']);\nDB::table('sales')->insert(['Codigo' =>'4677053','Precio'=>'389.94','CodigoDeBarra'=>'7795336291392','Pvp'=>'389.94']);\nDB::table('sales')->insert(['Codigo' =>'8001776','Precio'=>'196.63','CodigoDeBarra'=>'7795336074438','Pvp'=>'196.63']);\nDB::table('sales')->insert(['Codigo' =>'8003848','Precio'=>'472.09','CodigoDeBarra'=>'7795336074223','Pvp'=>'472.09']);\nDB::table('sales')->insert(['Codigo' =>'8001768','Precio'=>'401.33','CodigoDeBarra'=>'7795336234184','Pvp'=>'401.33']);\nDB::table('sales')->insert(['Codigo' =>'8001801','Precio'=>'192.03','CodigoDeBarra'=>'7795336234221','Pvp'=>'192.03']);\nDB::table('sales')->insert(['Codigo' =>'5955001','Precio'=>'215.11','CodigoDeBarra'=>'7795336292900','Pvp'=>'215.11']);\nDB::table('sales')->insert(['Codigo' =>'8001800','Precio'=>'192.12','CodigoDeBarra'=>'7795336234191','Pvp'=>'192.12']);\nDB::table('sales')->insert(['Codigo' =>'8001802','Precio'=>'246.41','CodigoDeBarra'=>'7795336234238','Pvp'=>'246.41']);\nDB::table('sales')->insert(['Codigo' =>'3839192','Precio'=>'455.74','CodigoDeBarra'=>'7795336074124','Pvp'=>'455.74']);\nDB::table('sales')->insert(['Codigo' =>'3754291','Precio'=>'130.77','CodigoDeBarra'=>'7798006300929','Pvp'=>'130.77']);\nDB::table('sales')->insert(['Codigo' =>'3754292','Precio'=>'180.45','CodigoDeBarra'=>'7798006300950','Pvp'=>'180.45']);\nDB::table('sales')->insert(['Codigo' =>'3754373','Precio'=>'256.20','CodigoDeBarra'=>'7798006302114','Pvp'=>'256.20']);\nDB::table('sales')->insert(['Codigo' =>'3754032','Precio'=>'125.41','CodigoDeBarra'=>'7798006300943','Pvp'=>'125.41']);\nDB::table('sales')->insert(['Codigo' =>'3754031','Precio'=>'72.16','CodigoDeBarra'=>'7798006300936','Pvp'=>'72.16']);\nDB::table('sales')->insert(['Codigo' =>'3754371','Precio'=>'132.89','CodigoDeBarra'=>'7798006300967','Pvp'=>'132.89']);\nDB::table('sales')->insert(['Codigo' =>'3754372','Precio'=>'208.71','CodigoDeBarra'=>'7798006300974','Pvp'=>'208.71']);\nDB::table('sales')->insert(['Codigo' =>'5637551','Precio'=>'213.77','CodigoDeBarra'=>'7798006302060','Pvp'=>'213.77']);\nDB::table('sales')->insert(['Codigo' =>'563768','Precio'=>'245.09','CodigoDeBarra'=>'7798006302077','Pvp'=>'245.09']);\nDB::table('sales')->insert(['Codigo' =>'2884901','Precio'=>'232.98','CodigoDeBarra'=>'7795336234177','Pvp'=>'232.98']);\nDB::table('sales')->insert(['Codigo' =>'2885232','Precio'=>'269.84','CodigoDeBarra'=>'7795336234085','Pvp'=>'269.84']);\nDB::table('sales')->insert(['Codigo' =>'3779700','Precio'=>'164.50','CodigoDeBarra'=>'7795336234214','Pvp'=>'164.50']);\nDB::table('sales')->insert(['Codigo' =>'2886062','Precio'=>'138.71','CodigoDeBarra'=>'7795336234160','Pvp'=>'138.71']);\nDB::table('sales')->insert(['Codigo' =>'8015030','Precio'=>'196.99','CodigoDeBarra'=>'7795336292894','Pvp'=>'196.99']);\nDB::table('sales')->insert(['Codigo' =>'8013446','Precio'=>'629.49','CodigoDeBarra'=>'7795345000459','Pvp'=>'629.49']);\nDB::table('sales')->insert(['Codigo' =>'3160511','Precio'=>'256.93','CodigoDeBarra'=>'7795336201162','Pvp'=>'256.93']);\nDB::table('sales')->insert(['Codigo' =>'3160512','Precio'=>'497.63','CodigoDeBarra'=>'7795336201179','Pvp'=>'497.63']);\nDB::table('sales')->insert(['Codigo' =>'2188432','Precio'=>'329.33','CodigoDeBarra'=>'7795336201148','Pvp'=>'329.33']);\nDB::table('sales')->insert(['Codigo' =>'4969301','Precio'=>'5605.70','CodigoDeBarra'=>'7798021440563','Pvp'=>'5605.70']);\nDB::table('sales')->insert(['Codigo' =>'5124361','Precio'=>'477.23','CodigoDeBarra'=>'7798088120347','Pvp'=>'477.23']);\nDB::table('sales')->insert(['Codigo' =>'5121881','Precio'=>'958.32','CodigoDeBarra'=>'7798006871047','Pvp'=>'958.32']);\nDB::table('sales')->insert(['Codigo' =>'647455','Precio'=>'589.97','CodigoDeBarra'=>'7798180920746','Pvp'=>'589.97']);\nDB::table('sales')->insert(['Codigo' =>'8006920','Precio'=>'257.69','CodigoDeBarra'=>'7791829009468','Pvp'=>'257.69']);\nDB::table('sales')->insert(['Codigo' =>'544000','Precio'=>'254.89','CodigoDeBarra'=>'7798035313693','Pvp'=>'254.89']);\nDB::table('sales')->insert(['Codigo' =>'8007098','Precio'=>'3378.14','CodigoDeBarra'=>'7798021442482','Pvp'=>'3378.14']);\nDB::table('sales')->insert(['Codigo' =>'5356844','Precio'=>'94.01','CodigoDeBarra'=>'7795371458903','Pvp'=>'94.01']);\nDB::table('sales')->insert(['Codigo' =>'5356841','Precio'=>'197.94','CodigoDeBarra'=>'7795371458873','Pvp'=>'197.94']);\nDB::table('sales')->insert(['Codigo' =>'8001803','Precio'=>'850.83','CodigoDeBarra'=>'7795336064002','Pvp'=>'850.83']);\nDB::table('sales')->insert(['Codigo' =>'814065','Precio'=>'106.82','CodigoDeBarra'=>'7795319050053','Pvp'=>'106.82']);\nDB::table('sales')->insert(['Codigo' =>'814066','Precio'=>'165.93','CodigoDeBarra'=>'7791763001665','Pvp'=>'165.93']);\nDB::table('sales')->insert(['Codigo' =>'4627973','Precio'=>'539.78','CodigoDeBarra'=>'7791763001931','Pvp'=>'539.78']);\nDB::table('sales')->insert(['Codigo' =>'5276163','Precio'=>'850.04','CodigoDeBarra'=>'7795367054065','Pvp'=>'850.04']);\nDB::table('sales')->insert(['Codigo' =>'457350','Precio'=>'605.30','CodigoDeBarra'=>'7798009272537','Pvp'=>'605.30']);\nDB::table('sales')->insert(['Codigo' =>'8027346','Precio'=>'402.28','CodigoDeBarra'=>'7798122341110','Pvp'=>'402.28']);\nDB::table('sales')->insert(['Codigo' =>'598197','Precio'=>'611.06','CodigoDeBarra'=>'7798006300318','Pvp'=>'611.06']);\nDB::table('sales')->insert(['Codigo' =>'598184','Precio'=>'498.52','CodigoDeBarra'=>'7798006300387','Pvp'=>'498.52']);\nDB::table('sales')->insert(['Codigo' =>'649568','Precio'=>'655.94','CodigoDeBarra'=>'7798006302336','Pvp'=>'655.94']);\nDB::table('sales')->insert(['Codigo' =>'649555','Precio'=>'554.56','CodigoDeBarra'=>'7798006302305','Pvp'=>'554.56']);\nDB::table('sales')->insert(['Codigo' =>'4781900','Precio'=>'2359.43','CodigoDeBarra'=>'7793397050767','Pvp'=>'2359.43']);\nDB::table('sales')->insert(['Codigo' =>'4781820','Precio'=>'897.18','CodigoDeBarra'=>'7793397050750','Pvp'=>'897.18']);\nDB::table('sales')->insert(['Codigo' =>'8039466','Precio'=>'13.56','CodigoDeBarra'=>'1000000029178','Pvp'=>'13.56']);\nDB::table('sales')->insert(['Codigo' =>'5666682','Precio'=>'1295.45','CodigoDeBarra'=>'7791763001832','Pvp'=>'1295.45']);\nDB::table('sales')->insert(['Codigo' =>'5666971','Precio'=>'1974.58','CodigoDeBarra'=>'7791763001818','Pvp'=>'1974.58']);\nDB::table('sales')->insert(['Codigo' =>'5666972','Precio'=>'3658.78','CodigoDeBarra'=>'7791763001788','Pvp'=>'3658.78']);\nDB::table('sales')->insert(['Codigo' =>'5666711','Precio'=>'985.63','CodigoDeBarra'=>'7791763001856','Pvp'=>'985.63']);\nDB::table('sales')->insert(['Codigo' =>'5666712','Precio'=>'1915.09','CodigoDeBarra'=>'7791763001795','Pvp'=>'1915.09']);\nDB::table('sales')->insert(['Codigo' =>'5490841','Precio'=>'89661.19','CodigoDeBarra'=>'7795304866881','Pvp'=>'89661.19']);\nDB::table('sales')->insert(['Codigo' =>'8034888','Precio'=>'1093.38','CodigoDeBarra'=>'7703281002024','Pvp'=>'1093.38']);\nDB::table('sales')->insert(['Codigo' =>'8024554','Precio'=>'281.91','CodigoDeBarra'=>'7798122340977','Pvp'=>'281.91']);\nDB::table('sales')->insert(['Codigo' =>'8039906','Precio'=>'305.14','CodigoDeBarra'=>'7798195030768','Pvp'=>'305.14']);\nDB::table('sales')->insert(['Codigo' =>'8039905','Precio'=>'305.14','CodigoDeBarra'=>'7798195030782','Pvp'=>'305.14']);\nDB::table('sales')->insert(['Codigo' =>'8039897','Precio'=>'251.30','CodigoDeBarra'=>'7798195030034','Pvp'=>'251.30']);\nDB::table('sales')->insert(['Codigo' =>'8039898','Precio'=>'353.01','CodigoDeBarra'=>'7798195030157','Pvp'=>'353.01']);\nDB::table('sales')->insert(['Codigo' =>'8039899','Precio'=>'412.85','CodigoDeBarra'=>'7798195030041','Pvp'=>'412.85']);\nDB::table('sales')->insert(['Codigo' =>'8039900','Precio'=>'493.62','CodigoDeBarra'=>'7798195031062','Pvp'=>'493.62']);\nDB::table('sales')->insert(['Codigo' =>'8039896','Precio'=>'128.64','CodigoDeBarra'=>'7798195030201','Pvp'=>'128.64']);\nDB::table('sales')->insert(['Codigo' =>'8039892','Precio'=>'239.32','CodigoDeBarra'=>'7798195030065','Pvp'=>'239.32']);\nDB::table('sales')->insert(['Codigo' =>'8039895','Precio'=>'122.65','CodigoDeBarra'=>'7798195031109','Pvp'=>'122.65']);\nDB::table('sales')->insert(['Codigo' =>'8039894','Precio'=>'278.22','CodigoDeBarra'=>'7798195030072','Pvp'=>'278.22']);\nDB::table('sales')->insert(['Codigo' =>'8039902','Precio'=>'284.20','CodigoDeBarra'=>'7798195030010','Pvp'=>'284.20']);\nDB::table('sales')->insert(['Codigo' =>'8039903','Precio'=>'433.78','CodigoDeBarra'=>'7798195030164','Pvp'=>'433.78']);\nDB::table('sales')->insert(['Codigo' =>'8039904','Precio'=>'460.70','CodigoDeBarra'=>'7798195030027','Pvp'=>'460.70']);\nDB::table('sales')->insert(['Codigo' =>'8039901','Precio'=>'161.55','CodigoDeBarra'=>'7798195030218','Pvp'=>'161.55']);\nDB::table('sales')->insert(['Codigo' =>'8039891','Precio'=>'358.98','CodigoDeBarra'=>'7798195030058','Pvp'=>'358.98']);\nDB::table('sales')->insert(['Codigo' =>'8039893','Precio'=>'257.29','CodigoDeBarra'=>'7798195031031','Pvp'=>'257.29']);\nDB::table('sales')->insert(['Codigo' =>'8006910','Precio'=>'2883.72','CodigoDeBarra'=>'7798083959935','Pvp'=>'2883.72']);\nDB::table('sales')->insert(['Codigo' =>'6113551','Precio'=>'4428.68','CodigoDeBarra'=>'7791829000762','Pvp'=>'4428.68']);\nDB::table('sales')->insert(['Codigo' =>'4541081','Precio'=>'556.15','CodigoDeBarra'=>'7798069050014','Pvp'=>'556.15']);\nDB::table('sales')->insert(['Codigo' =>'6238971','Precio'=>'563.06','CodigoDeBarra'=>'4030571003328','Pvp'=>'563.06']);\nDB::table('sales')->insert(['Codigo' =>'8026277','Precio'=>'326.26','CodigoDeBarra'=>'7798122341059','Pvp'=>'326.26']);\nDB::table('sales')->insert(['Codigo' =>'8020137','Precio'=>'232.60','CodigoDeBarra'=>'7795371000980','Pvp'=>'232.60']);\nDB::table('sales')->insert(['Codigo' =>'6160712','Precio'=>'142334.70','CodigoDeBarra'=>'7794640820342','Pvp'=>'142334.70']);\nDB::table('sales')->insert(['Codigo' =>'616071','Precio'=>'42700.38','CodigoDeBarra'=>'7794640820359','Pvp'=>'42700.38']);\nDB::table('sales')->insert(['Codigo' =>'8026999','Precio'=>'186.62','CodigoDeBarra'=>'7798140252221','Pvp'=>'186.62']);\nDB::table('sales')->insert(['Codigo' =>'8038694','Precio'=>'239.70','CodigoDeBarra'=>'7798140259442','Pvp'=>'239.70']);\nDB::table('sales')->insert(['Codigo' =>'8035216','Precio'=>'157.28','CodigoDeBarra'=>'650240035401','Pvp'=>'157.28']);\nDB::table('sales')->insert(['Codigo' =>'8038695','Precio'=>'292.55','CodigoDeBarra'=>'7798140259435','Pvp'=>'292.55']);\nDB::table('sales')->insert(['Codigo' =>'8038696','Precio'=>'300.13','CodigoDeBarra'=>'7798140259459','Pvp'=>'300.13']);\nDB::table('sales')->insert(['Codigo' =>'8013434','Precio'=>'283.58','CodigoDeBarra'=>'65024000967','Pvp'=>'283.58']);\nDB::table('sales')->insert(['Codigo' =>'8007921','Precio'=>'259.96','CodigoDeBarra'=>'650240014734','Pvp'=>'259.96']);\nDB::table('sales')->insert(['Codigo' =>'8007924','Precio'=>'292.18','CodigoDeBarra'=>'7798140250807','Pvp'=>'292.18']);\nDB::table('sales')->insert(['Codigo' =>'8007923','Precio'=>'292.18','CodigoDeBarra'=>'650240004001','Pvp'=>'292.18']);\nDB::table('sales')->insert(['Codigo' =>'8012433','Precio'=>'130.68','CodigoDeBarra'=>'650240007828','Pvp'=>'130.68']);\nDB::table('sales')->insert(['Codigo' =>'8042469','Precio'=>'157.28','CodigoDeBarra'=>'650240036965','Pvp'=>'157.28']);\nDB::table('sales')->insert(['Codigo' =>'8007919','Precio'=>'130.68','CodigoDeBarra'=>'650240004643','Pvp'=>'130.68']);\nDB::table('sales')->insert(['Codigo' =>'8037577','Precio'=>'61.01','CodigoDeBarra'=>'7798140259336','Pvp'=>'61.01']);\nDB::table('sales')->insert(['Codigo' =>'8007915','Precio'=>'130.68','CodigoDeBarra'=>'650240004292','Pvp'=>'130.68']);\nDB::table('sales')->insert(['Codigo' =>'8037575','Precio'=>'61.01','CodigoDeBarra'=>'7798140259343','Pvp'=>'61.01']);\nDB::table('sales')->insert(['Codigo' =>'8012857','Precio'=>'130.68','CodigoDeBarra'=>'650240009563','Pvp'=>'130.68']);\nDB::table('sales')->insert(['Codigo' =>'8037576','Precio'=>'61.01','CodigoDeBarra'=>'7798140259350','Pvp'=>'61.01']);\nDB::table('sales')->insert(['Codigo' =>'8037574','Precio'=>'61.01','CodigoDeBarra'=>'7798140259329','Pvp'=>'61.01']);\nDB::table('sales')->insert(['Codigo' =>'8007918','Precio'=>'130.68','CodigoDeBarra'=>'7798140250852','Pvp'=>'130.68']);\nDB::table('sales')->insert(['Codigo' =>'8036336','Precio'=>'283.58','CodigoDeBarra'=>'7798140259060','Pvp'=>'283.58']);\nDB::table('sales')->insert(['Codigo' =>'8034911','Precio'=>'358.11','CodigoDeBarra'=>'650240032479','Pvp'=>'358.11']);\nDB::table('sales')->insert(['Codigo' =>'8038253','Precio'=>'162.27','CodigoDeBarra'=>'7798140259572','Pvp'=>'162.27']);\nDB::table('sales')->insert(['Codigo' =>'8034912','Precio'=>'358.11','CodigoDeBarra'=>'650240032486','Pvp'=>'358.11']);\nDB::table('sales')->insert(['Codigo' =>'8038254','Precio'=>'162.27','CodigoDeBarra'=>'7798140259589','Pvp'=>'162.27']);\nDB::table('sales')->insert(['Codigo' =>'8034913','Precio'=>'358.11','CodigoDeBarra'=>'650240032493','Pvp'=>'358.11']);\nDB::table('sales')->insert(['Codigo' =>'8038255','Precio'=>'162.27','CodigoDeBarra'=>'7798140259596','Pvp'=>'162.27']);\nDB::table('sales')->insert(['Codigo' =>'8034914','Precio'=>'358.11','CodigoDeBarra'=>'650240032509','Pvp'=>'358.11']);\nDB::table('sales')->insert(['Codigo' =>'8038348','Precio'=>'162.27','CodigoDeBarra'=>'7798140259602','Pvp'=>'162.27']);\nDB::table('sales')->insert(['Codigo' =>'8034305','Precio'=>'216.88','CodigoDeBarra'=>'7798140258698','Pvp'=>'216.88']);\nDB::table('sales')->insert(['Codigo' =>'8034306','Precio'=>'216.88','CodigoDeBarra'=>'7798140258704','Pvp'=>'216.88']);\nDB::table('sales')->insert(['Codigo' =>'8034307','Precio'=>'1571.44','CodigoDeBarra'=>'7798140258735','Pvp'=>'1571.44']);\nDB::table('sales')->insert(['Codigo' =>'8034308','Precio'=>'3142.89','CodigoDeBarra'=>'7798140258742','Pvp'=>'3142.89']);\nDB::table('sales')->insert(['Codigo' =>'8034304','Precio'=>'216.88','CodigoDeBarra'=>'7798140258681','Pvp'=>'216.88']);\nDB::table('sales')->insert(['Codigo' =>'8034915','Precio'=>'235.33','CodigoDeBarra'=>'650240032424','Pvp'=>'235.33']);\nDB::table('sales')->insert(['Codigo' =>'8034917','Precio'=>'235.33','CodigoDeBarra'=>'650240032431','Pvp'=>'235.33']);\nDB::table('sales')->insert(['Codigo' =>'8034916','Precio'=>'235.33','CodigoDeBarra'=>'650240032462','Pvp'=>'235.33']);\nDB::table('sales')->insert(['Codigo' =>'8010445','Precio'=>'176.79','CodigoDeBarra'=>'7798140251002','Pvp'=>'176.79']);\nDB::table('sales')->insert(['Codigo' =>'8034918','Precio'=>'235.33','CodigoDeBarra'=>'650240032455','Pvp'=>'235.33']);\nDB::table('sales')->insert(['Codigo' =>'8040785','Precio'=>'136.53','CodigoDeBarra'=>'7798140253594','Pvp'=>'136.53']);\nDB::table('sales')->insert(['Codigo' =>'8040784','Precio'=>'136.53','CodigoDeBarra'=>'7798140253587','Pvp'=>'136.53']);\nDB::table('sales')->insert(['Codigo' =>'8040786','Precio'=>'136.53','CodigoDeBarra'=>'7798140253570','Pvp'=>'136.53']);\nDB::table('sales')->insert(['Codigo' =>'8031887','Precio'=>'108.47','CodigoDeBarra'=>'7798140258483','Pvp'=>'108.47']);\nDB::table('sales')->insert(['Codigo' =>'8033765','Precio'=>'78.60','CodigoDeBarra'=>'7798140258186','Pvp'=>'78.60']);\nDB::table('sales')->insert(['Codigo' =>'8033766','Precio'=>'125.03','CodigoDeBarra'=>'7798140258520','Pvp'=>'125.03']);\nDB::table('sales')->insert(['Codigo' =>'8008935','Precio'=>'98.57','CodigoDeBarra'=>'7798140251026','Pvp'=>'98.57']);\nDB::table('sales')->insert(['Codigo' =>'8007914','Precio'=>'165.51','CodigoDeBarra'=>'650240004216','Pvp'=>'165.51']);\nDB::table('sales')->insert(['Codigo' =>'8038562','Precio'=>'100.18','CodigoDeBarra'=>'7798140259411','Pvp'=>'100.18']);\nDB::table('sales')->insert(['Codigo' =>'8038563','Precio'=>'168.02','CodigoDeBarra'=>'7798140259428','Pvp'=>'168.02']);\nDB::table('sales')->insert(['Codigo' =>'6018392','Precio'=>'864.29','CodigoDeBarra'=>'7795378000921','Pvp'=>'864.29']);\nDB::table('sales')->insert(['Codigo' =>'6018552','Precio'=>'829.02','CodigoDeBarra'=>'7795378000914','Pvp'=>'829.02']);\nDB::table('sales')->insert(['Codigo' =>'6018262','Precio'=>'931.23','CodigoDeBarra'=>'7795378000907','Pvp'=>'931.23']);\nDB::table('sales')->insert(['Codigo' =>'6018422','Precio'=>'994.02','CodigoDeBarra'=>'7795378000938','Pvp'=>'994.02']);\nDB::table('sales')->insert(['Codigo' =>'4679953','Precio'=>'368.62','CodigoDeBarra'=>'7791763000255','Pvp'=>'368.62']);\nDB::table('sales')->insert(['Codigo' =>'4679955','Precio'=>'588.53','CodigoDeBarra'=>'7791763000262','Pvp'=>'588.53']);\nDB::table('sales')->insert(['Codigo' =>'3333521','Precio'=>'1428.42','CodigoDeBarra'=>'7798084684768','Pvp'=>'1428.42']);\nDB::table('sales')->insert(['Codigo' =>'4271891','Precio'=>'2431.05','CodigoDeBarra'=>'7798084684775','Pvp'=>'2431.05']);\nDB::table('sales')->insert(['Codigo' =>'8014164','Precio'=>'481.40','CodigoDeBarra'=>'7791940000290','Pvp'=>'481.40']);\nDB::table('sales')->insert(['Codigo' =>'8013079','Precio'=>'334.28','CodigoDeBarra'=>'7791940000023','Pvp'=>'334.28']);\nDB::table('sales')->insert(['Codigo' =>'8010881','Precio'=>'297.70','CodigoDeBarra'=>'7791940000191','Pvp'=>'297.70']);\nDB::table('sales')->insert(['Codigo' =>'9993427','Precio'=>'347.66','CodigoDeBarra'=>'7791940123623','Pvp'=>'347.66']);\nDB::table('sales')->insert(['Codigo' =>'8013971','Precio'=>'367.39','CodigoDeBarra'=>'7791940000283','Pvp'=>'367.39']);\nDB::table('sales')->insert(['Codigo' =>'6447841','Precio'=>'152835.26','CodigoDeBarra'=>'7795326003646','Pvp'=>'152835.26']);\nDB::table('sales')->insert(['Codigo' =>'8020543','Precio'=>'1347.36','CodigoDeBarra'=>'7795345001531','Pvp'=>'1347.36']);\nDB::table('sales')->insert(['Codigo' =>'8004069','Precio'=>'1277.89','CodigoDeBarra'=>'7795345013923','Pvp'=>'1277.89']);\nDB::table('sales')->insert(['Codigo' =>'4775221','Precio'=>'134.42','CodigoDeBarra'=>'7794207000248','Pvp'=>'134.42']);\nDB::table('sales')->insert(['Codigo' =>'5699253','Precio'=>'1040.72','CodigoDeBarra'=>'7791763001894','Pvp'=>'1040.72']);\nDB::table('sales')->insert(['Codigo' =>'5699523','Precio'=>'1709.47','CodigoDeBarra'=>'7791763001870','Pvp'=>'1709.47']);\nDB::table('sales')->insert(['Codigo' =>'5699613','Precio'=>'2198.52','CodigoDeBarra'=>'7795367055369','Pvp'=>'2198.52']);\nDB::table('sales')->insert(['Codigo' =>'5308842','Precio'=>'1774.50','CodigoDeBarra'=>'7795336291484','Pvp'=>'1774.50']);\nDB::table('sales')->insert(['Codigo' =>'5308711','Precio'=>'603.97','CodigoDeBarra'=>'7795336291453','Pvp'=>'603.97']);\nDB::table('sales')->insert(['Codigo' =>'5308712','Precio'=>'1166.09','CodigoDeBarra'=>'7795336291460','Pvp'=>'1166.09']);\nDB::table('sales')->insert(['Codigo' =>'5308841','Precio'=>'1009.38','CodigoDeBarra'=>'7795336291477','Pvp'=>'1009.38']);\nDB::table('sales')->insert(['Codigo' =>'5308971','Precio'=>'1170.44','CodigoDeBarra'=>'7795336291583','Pvp'=>'1170.44']);\nDB::table('sales')->insert(['Codigo' =>'5912261','Precio'=>'36114.08','CodigoDeBarra'=>'7792183000443','Pvp'=>'36114.08']);\nDB::table('sales')->insert(['Codigo' =>'6226421','Precio'=>'227687.76','CodigoDeBarra'=>'7798122020404','Pvp'=>'227687.76']);\nDB::table('sales')->insert(['Codigo' =>'6230551','Precio'=>'7681.21','CodigoDeBarra'=>'7795356001117','Pvp'=>'7681.21']);\nDB::table('sales')->insert(['Codigo' =>'6230681','Precio'=>'15365.95','CodigoDeBarra'=>'7795356001124','Pvp'=>'15365.95']);\nDB::table('sales')->insert(['Codigo' =>'8027831','Precio'=>'53064.09','CodigoDeBarra'=>'7795356001926','Pvp'=>'53064.09']);\nDB::table('sales')->insert(['Codigo' =>'5426681','Precio'=>'34009.00','CodigoDeBarra'=>'7792371698100','Pvp'=>'34009.00']);\nDB::table('sales')->insert(['Codigo' =>'5426711','Precio'=>'123876.40','CodigoDeBarra'=>'7792371698155','Pvp'=>'123876.40']);\nDB::table('sales')->insert(['Codigo' =>'5395712','Precio'=>'218175.69','CodigoDeBarra'=>'7798144380036','Pvp'=>'218175.69']);\nDB::table('sales')->insert(['Codigo' =>'8043304','Precio'=>'855.07','CodigoDeBarra'=>'7798239770285','Pvp'=>'855.07']);\nDB::table('sales')->insert(['Codigo' =>'8038812','Precio'=>'3945.45','CodigoDeBarra'=>'7798180921323','Pvp'=>'3945.45']);\nDB::table('sales')->insert(['Codigo' =>'8034482','Precio'=>'78857.72','CodigoDeBarra'=>'7795326003110','Pvp'=>'78857.72']);\nDB::table('sales')->insert(['Codigo' =>'3343681','Precio'=>'2579.25','CodigoDeBarra'=>'7798084684928','Pvp'=>'2579.25']);\nDB::table('sales')->insert(['Codigo' =>'4141861','Precio'=>'257.69','CodigoDeBarra'=>'7795336079617','Pvp'=>'257.69']);\nDB::table('sales')->insert(['Codigo' =>'4141863','Precio'=>'332.19','CodigoDeBarra'=>'7795336003438','Pvp'=>'332.19']);\nDB::table('sales')->insert(['Codigo' =>'4141862','Precio'=>'370.78','CodigoDeBarra'=>'7795336079624','Pvp'=>'370.78']);\nDB::table('sales')->insert(['Codigo' =>'8001778','Precio'=>'310.32','CodigoDeBarra'=>'7795336079709','Pvp'=>'310.32']);\nDB::table('sales')->insert(['Codigo' =>'4032041','Precio'=>'2993.23','CodigoDeBarra'=>'7795336290036','Pvp'=>'2993.23']);\nDB::table('sales')->insert(['Codigo' =>'6145391','Precio'=>'565.82','CodigoDeBarra'=>'7792175009331','Pvp'=>'565.82']);\nDB::table('sales')->insert(['Codigo' =>'2313662','Precio'=>'488.27','CodigoDeBarra'=>'7795378000198','Pvp'=>'488.27']);\nDB::table('sales')->insert(['Codigo' =>'2426523','Precio'=>'333.26','CodigoDeBarra'=>'7795378005100','Pvp'=>'333.26']);\nDB::table('sales')->insert(['Codigo' =>'2426522','Precio'=>'501.75','CodigoDeBarra'=>'7795378000242','Pvp'=>'501.75']);\nDB::table('sales')->insert(['Codigo' =>'5684971','Precio'=>'345.81','CodigoDeBarra'=>'7795378003847','Pvp'=>'345.81']);\nDB::table('sales')->insert(['Codigo' =>'5738711','Precio'=>'382.27','CodigoDeBarra'=>'7795378003854','Pvp'=>'382.27']);\nDB::table('sales')->insert(['Codigo' =>'4666321','Precio'=>'344.88','CodigoDeBarra'=>'7795347000891','Pvp'=>'344.88']);\nDB::table('sales')->insert(['Codigo' =>'5885391','Precio'=>'385.77','CodigoDeBarra'=>'7795347000952','Pvp'=>'385.77']);\nDB::table('sales')->insert(['Codigo' =>'8036069','Precio'=>'366.23','CodigoDeBarra'=>'7790375267766','Pvp'=>'366.23']);\nDB::table('sales')->insert(['Codigo' =>'8019223','Precio'=>'471.66','CodigoDeBarra'=>'7790375003043','Pvp'=>'471.66']);\nDB::table('sales')->insert(['Codigo' =>'8021232','Precio'=>'526.11','CodigoDeBarra'=>'7790375003449','Pvp'=>'526.11']);\nDB::table('sales')->insert(['Codigo' =>'8036258','Precio'=>'467.53','CodigoDeBarra'=>'7790375003456','Pvp'=>'467.53']);\nDB::table('sales')->insert(['Codigo' =>'8019224','Precio'=>'512.83','CodigoDeBarra'=>'7790375003142','Pvp'=>'512.83']);\nDB::table('sales')->insert(['Codigo' =>'8021141','Precio'=>'548.17','CodigoDeBarra'=>'7790375003159','Pvp'=>'548.17']);\nDB::table('sales')->insert(['Codigo' =>'8040563','Precio'=>'496.38','CodigoDeBarra'=>'7790375268473','Pvp'=>'496.38']);\nDB::table('sales')->insert(['Codigo' =>'8031292','Precio'=>'461.52','CodigoDeBarra'=>'7798140258377','Pvp'=>'461.52']);\nDB::table('sales')->insert(['Codigo' =>'8031291','Precio'=>'504.03','CodigoDeBarra'=>'7798140258384','Pvp'=>'504.03']);\nDB::table('sales')->insert(['Codigo' =>'8031319','Precio'=>'553.05','CodigoDeBarra'=>'7790375268428','Pvp'=>'553.05']);\nDB::table('sales')->insert(['Codigo' =>'8031316','Precio'=>'519.61','CodigoDeBarra'=>'7798140258407','Pvp'=>'519.61']);\nDB::table('sales')->insert(['Codigo' =>'8040564','Precio'=>'548.13','CodigoDeBarra'=>'7790375268398','Pvp'=>'548.13']);\nDB::table('sales')->insert(['Codigo' =>'5435971','Precio'=>'14201.51','CodigoDeBarra'=>'3000031611227','Pvp'=>'14201.51']);\nDB::table('sales')->insert(['Codigo' =>'5436001','Precio'=>'21165.52','CodigoDeBarra'=>'3000031612200','Pvp'=>'21165.52']);\nDB::table('sales')->insert(['Codigo' =>'3479312','Precio'=>'473.68','CodigoDeBarra'=>'7795327061225','Pvp'=>'473.68']);\nDB::table('sales')->insert(['Codigo' =>'5580551','Precio'=>'1734.88','CodigoDeBarra'=>'7795327062000','Pvp'=>'1734.88']);\nDB::table('sales')->insert(['Codigo' =>'3479313','Precio'=>'682.12','CodigoDeBarra'=>'7795327061232','Pvp'=>'682.12']);\nDB::table('sales')->insert(['Codigo' =>'3479314','Precio'=>'1411.24','CodigoDeBarra'=>'7795327061249','Pvp'=>'1411.24']);\nDB::table('sales')->insert(['Codigo' =>'3479311','Precio'=>'1701.60','CodigoDeBarra'=>'7795327061218','Pvp'=>'1701.60']);\nDB::table('sales')->insert(['Codigo' =>'5638421','Precio'=>'1226.83','CodigoDeBarra'=>'7795327091345','Pvp'=>'1226.83']);\nDB::table('sales')->insert(['Codigo' =>'5638422','Precio'=>'2208.42','CodigoDeBarra'=>'7795327091352','Pvp'=>'2208.42']);\nDB::table('sales')->insert(['Codigo' =>'5638423','Precio'=>'2760.55','CodigoDeBarra'=>'7795327064080','Pvp'=>'2760.55']);\nDB::table('sales')->insert(['Codigo' =>'5638424','Precio'=>'657.30','CodigoDeBarra'=>'7795327065643','Pvp'=>'657.30']);\nDB::table('sales')->insert(['Codigo' =>'9991236','Precio'=>'133.58','CodigoDeBarra'=>'7791199000256','Pvp'=>'133.58']);\nDB::table('sales')->insert(['Codigo' =>'9991126','Precio'=>'192.55','CodigoDeBarra'=>'7791199000249','Pvp'=>'192.55']);\nDB::table('sales')->insert(['Codigo' =>'670','Precio'=>'192.55','CodigoDeBarra'=>'7791199000263','Pvp'=>'192.55']);\nDB::table('sales')->insert(['Codigo' =>'8039761','Precio'=>'63219.05','CodigoDeBarra'=>'4054839461941','Pvp'=>'63219.05']);\nDB::table('sales')->insert(['Codigo' =>'4232361','Precio'=>'31502.38','CodigoDeBarra'=>'7795342003071','Pvp'=>'31502.38']);\nDB::table('sales')->insert(['Codigo' =>'4900458','Precio'=>'125.48','CodigoDeBarra'=>'7796363002418','Pvp'=>'125.48']);\nDB::table('sales')->insert(['Codigo' =>'4900459','Precio'=>'250.14','CodigoDeBarra'=>'7796363002425','Pvp'=>'250.14']);\nDB::table('sales')->insert(['Codigo' =>'4900456','Precio'=>'378.84','CodigoDeBarra'=>'7796363001077','Pvp'=>'378.84']);\nDB::table('sales')->insert(['Codigo' =>'5754421','Precio'=>'144.34','CodigoDeBarra'=>'7796363002975','Pvp'=>'144.34']);\nDB::table('sales')->insert(['Codigo' =>'5754422','Precio'=>'240.19','CodigoDeBarra'=>'7796363002982','Pvp'=>'240.19']);\nDB::table('sales')->insert(['Codigo' =>'5612842','Precio'=>'211705.04','CodigoDeBarra'=>'7798038289148','Pvp'=>'211705.04']);\nDB::table('sales')->insert(['Codigo' =>'5612841','Precio'=>'106302.96','CodigoDeBarra'=>'7798038289117','Pvp'=>'106302.96']);\nDB::table('sales')->insert(['Codigo' =>'8043319','Precio'=>'14587.12','CodigoDeBarra'=>'7798032936062','Pvp'=>'14587.12']);\nDB::table('sales')->insert(['Codigo' =>'6272001','Precio'=>'4887.99','CodigoDeBarra'=>'7795348002191','Pvp'=>'4887.99']);\nDB::table('sales')->insert(['Codigo' =>'6271971','Precio'=>'1748.98','CodigoDeBarra'=>'7795348002184','Pvp'=>'1748.98']);\nDB::table('sales')->insert(['Codigo' =>'6201001','Precio'=>'2044.12','CodigoDeBarra'=>'7795367001472','Pvp'=>'2044.12']);\nDB::table('sales')->insert(['Codigo' =>'6201131','Precio'=>'7142.18','CodigoDeBarra'=>'7795367001571','Pvp'=>'7142.18']);\nDB::table('sales')->insert(['Codigo' =>'8031846','Precio'=>'2619.48','CodigoDeBarra'=>'7798088120217','Pvp'=>'2619.48']);\nDB::table('sales')->insert(['Codigo' =>'610271','Precio'=>'500.61','CodigoDeBarra'=>'7798035310807','Pvp'=>'500.61']);\nDB::table('sales')->insert(['Codigo' =>'610268','Precio'=>'1993.80','CodigoDeBarra'=>'7798035310814','Pvp'=>'1993.80']);\nDB::table('sales')->insert(['Codigo' =>'8038813','Precio'=>'2198.58','CodigoDeBarra'=>'7798180921040','Pvp'=>'2198.58']);\nDB::table('sales')->insert(['Codigo' =>'4732812','Precio'=>'80069.75','CodigoDeBarra'=>'7795381000895','Pvp'=>'80069.75']);\nDB::table('sales')->insert(['Codigo' =>'4732732','Precio'=>'40036.33','CodigoDeBarra'=>'7795381000888','Pvp'=>'40036.33']);\nDB::table('sales')->insert(['Codigo' =>'8034301','Precio'=>'273.48','CodigoDeBarra'=>'7798140258605','Pvp'=>'273.48']);\nDB::table('sales')->insert(['Codigo' =>'8020029','Precio'=>'298.34','CodigoDeBarra'=>'7798140250616','Pvp'=>'298.34']);\nDB::table('sales')->insert(['Codigo' =>'8013627','Precio'=>'326.75','CodigoDeBarra'=>'650240006647','Pvp'=>'326.75']);\nDB::table('sales')->insert(['Codigo' =>'8013628','Precio'=>'412.67','CodigoDeBarra'=>'650240006678','Pvp'=>'412.67']);\nDB::table('sales')->insert(['Codigo' =>'6165551','Precio'=>'12514.77','CodigoDeBarra'=>'7794640820434','Pvp'=>'12514.77']);\nDB::table('sales')->insert(['Codigo' =>'6165681','Precio'=>'42526.56','CodigoDeBarra'=>'7794640820427','Pvp'=>'42526.56']);\nDB::table('sales')->insert(['Codigo' =>'6176970','Precio'=>'8737.08','CodigoDeBarra'=>'7798061752435','Pvp'=>'8737.08']);\nDB::table('sales')->insert(['Codigo' =>'6176841','Precio'=>'2912.76','CodigoDeBarra'=>'7798061752428','Pvp'=>'2912.76']);\n#VALUE!\nDB::table('sales')->insert(['Codigo' =>'6221000','Precio'=>'53981.30','CodigoDeBarra'=>'7798021440211','Pvp'=>'53981.30']);\nDB::table('sales')->insert(['Codigo' =>'4900792','Precio'=>'44836.84','CodigoDeBarra'=>'7798098720155','Pvp'=>'44836.84']);\nDB::table('sales')->insert(['Codigo' =>'4900612','Precio'=>'22433.44','CodigoDeBarra'=>'7798098720148','Pvp'=>'22433.44']);\nDB::table('sales')->insert(['Codigo' =>'4915482','Precio'=>'97364.42','CodigoDeBarra'=>'7798098720216','Pvp'=>'97364.42']);\nDB::table('sales')->insert(['Codigo' =>'8034908','Precio'=>'45076.13','CodigoDeBarra'=>'7798098720209','Pvp'=>'45076.13']);\nDB::table('sales')->insert(['Codigo' =>'3639031','Precio'=>'27638.54','CodigoDeBarra'=>'7798098720247','Pvp'=>'27638.54']);\nDB::table('sales')->insert(['Codigo' =>'3638961','Precio'=>'9212.80','CodigoDeBarra'=>'7798098720230','Pvp'=>'9212.80']);\nDB::table('sales')->insert(['Codigo' =>'497151','Precio'=>'30760.83','CodigoDeBarra'=>'','Pvp'=>'30760.83']);\nDB::table('sales')->insert(['Codigo' =>'5883263','Precio'=>'218.31','CodigoDeBarra'=>'7792175008990','Pvp'=>'218.31']);\nDB::table('sales')->insert(['Codigo' =>'5883266','Precio'=>'343.93','CodigoDeBarra'=>'7792175009010','Pvp'=>'343.93']);\nDB::table('sales')->insert(['Codigo' =>'5883393','Precio'=>'275.21','CodigoDeBarra'=>'7792175009027','Pvp'=>'275.21']);\nDB::table('sales')->insert(['Codigo' =>'5883396','Precio'=>'448.27','CodigoDeBarra'=>'7792175009034','Pvp'=>'448.27']);\nDB::table('sales')->insert(['Codigo' =>'4139064','Precio'=>'170455.40','CodigoDeBarra'=>'7795320051124','Pvp'=>'170455.40']);\nDB::table('sales')->insert(['Codigo' =>'6044971','Precio'=>'314.20','CodigoDeBarra'=>'7795336293136','Pvp'=>'314.20']);\nDB::table('sales')->insert(['Codigo' =>'6045001','Precio'=>'457.17','CodigoDeBarra'=>'7795336293143','Pvp'=>'457.17']);\nDB::table('sales')->insert(['Codigo' =>'6044841','Precio'=>'268.25','CodigoDeBarra'=>'7795336293129','Pvp'=>'268.25']);\nDB::table('sales')->insert(['Codigo' =>'8028332','Precio'=>'32351.06','CodigoDeBarra'=>'7796285277833','Pvp'=>'32351.06']);\nDB::table('sales')->insert(['Codigo' =>'8028333','Precio'=>'117837.37','CodigoDeBarra'=>'7796285277840','Pvp'=>'117837.37']);\nDB::table('sales')->insert(['Codigo' =>'8007072','Precio'=>'1841.07','CodigoDeBarra'=>'7795356999858','Pvp'=>'1841.07']);\nDB::table('sales')->insert(['Codigo' =>'646926','Precio'=>'590.27','CodigoDeBarra'=>'7798180920654','Pvp'=>'590.27']);\nDB::table('sales')->insert(['Codigo' =>'8006832','Precio'=>'255.57','CodigoDeBarra'=>'7798035313600','Pvp'=>'255.57']);\nDB::table('sales')->insert(['Codigo' =>'562713','Precio'=>'198.88','CodigoDeBarra'=>'7798006301940','Pvp'=>'198.88']);\nDB::table('sales')->insert(['Codigo' =>'565155','Precio'=>'179.90','CodigoDeBarra'=>'7798006301933','Pvp'=>'179.90']);\nDB::table('sales')->insert(['Codigo' =>'8008425','Precio'=>'163.74','CodigoDeBarra'=>'7798006300240','Pvp'=>'163.74']);\nDB::table('sales')->insert(['Codigo' =>'8029307','Precio'=>'163.74','CodigoDeBarra'=>'7798006300790','Pvp'=>'163.74']);\nDB::table('sales')->insert(['Codigo' =>'489011','Precio'=>'163.74','CodigoDeBarra'=>'7798006300066','Pvp'=>'163.74']);\nDB::table('sales')->insert(['Codigo' =>'8006887','Precio'=>'4525.25','CodigoDeBarra'=>'7798021442499','Pvp'=>'4525.25']);\nDB::table('sales')->insert(['Codigo' =>'4432842','Precio'=>'73.78','CodigoDeBarra'=>'7791171100349','Pvp'=>'73.78']);\nDB::table('sales')->insert(['Codigo' =>'4432847','Precio'=>'296.54','CodigoDeBarra'=>'7791171100806','Pvp'=>'296.54']);\nDB::table('sales')->insert(['Codigo' =>'4432922','Precio'=>'100.40','CodigoDeBarra'=>'7791171100356','Pvp'=>'100.40']);\nDB::table('sales')->insert(['Codigo' =>'4432923','Precio'=>'163.35','CodigoDeBarra'=>'7791171100325','Pvp'=>'163.35']);\nDB::table('sales')->insert(['Codigo' =>'4432927','Precio'=>'398.37','CodigoDeBarra'=>'7791171002384','Pvp'=>'398.37']);\nDB::table('sales')->insert(['Codigo' =>'4432929','Precio'=>'781.50','CodigoDeBarra'=>'7791171100882','Pvp'=>'781.50']);\nDB::table('sales')->insert(['Codigo' =>'4433092','Precio'=>'142.33','CodigoDeBarra'=>'7791171100363','Pvp'=>'142.33']);\nDB::table('sales')->insert(['Codigo' =>'4433093','Precio'=>'237.39','CodigoDeBarra'=>'7791171100332','Pvp'=>'237.39']);\nDB::table('sales')->insert(['Codigo' =>'4433097','Precio'=>'568.63','CodigoDeBarra'=>'7791171100820','Pvp'=>'568.63']);\nDB::table('sales')->insert(['Codigo' =>'8028516','Precio'=>'986.00','CodigoDeBarra'=>'7791171001325','Pvp'=>'986.00']);\nDB::table('sales')->insert(['Codigo' =>'8001122','Precio'=>'771.06','CodigoDeBarra'=>'7791171101469','Pvp'=>'771.06']);\nDB::table('sales')->insert(['Codigo' =>'8001123','Precio'=>'111.66','CodigoDeBarra'=>'7791171101452','Pvp'=>'111.66']);\nDB::table('sales')->insert(['Codigo' =>'5250112','Precio'=>'97.48','CodigoDeBarra'=>'7791171101155','Pvp'=>'97.48']);\nDB::table('sales')->insert(['Codigo' =>'5250113','Precio'=>'163.35','CodigoDeBarra'=>'7791171101230','Pvp'=>'163.35']);\nDB::table('sales')->insert(['Codigo' =>'5250119','Precio'=>'723.97','CodigoDeBarra'=>'7791171101162','Pvp'=>'723.97']);\nDB::table('sales')->insert(['Codigo' =>'8040643','Precio'=>'36114.08','CodigoDeBarra'=>'7792183489736','Pvp'=>'36114.08']);\nDB::table('sales')->insert(['Codigo' =>'9369121','Precio'=>'1962.38','CodigoDeBarra'=>'7795342001565','Pvp'=>'1962.38']);\nDB::table('sales')->insert(['Codigo' =>'8039434','Precio'=>'516913.24','CodigoDeBarra'=>'7798035314157','Pvp'=>'516913.24']);\nDB::table('sales')->insert(['Codigo' =>'8039410','Precio'=>'398632.77','CodigoDeBarra'=>'7798035314140','Pvp'=>'398632.77']);\nDB::table('sales')->insert(['Codigo' =>'636413','Precio'=>'6045.43','CodigoDeBarra'=>'7798021443656','Pvp'=>'6045.43']);\nDB::table('sales')->insert(['Codigo' =>'535455','Precio'=>'235.57','CodigoDeBarra'=>'7794207000491','Pvp'=>'235.57']);\nDB::table('sales')->insert(['Codigo' =>'3284361','Precio'=>'471.02','CodigoDeBarra'=>'7795355000159','Pvp'=>'471.02']);\nDB::table('sales')->insert(['Codigo' =>'3203831','Precio'=>'777.04','CodigoDeBarra'=>'7795356907709','Pvp'=>'777.04']);\nDB::table('sales')->insert(['Codigo' =>'3284521','Precio'=>'1310.75','CodigoDeBarra'=>'7795356907808','Pvp'=>'1310.75']);\nDB::table('sales')->insert(['Codigo' =>'4692641','Precio'=>'306.79','CodigoDeBarra'=>'7795371458361','Pvp'=>'306.79']);\nDB::table('sales')->insert(['Codigo' =>'3959982','Precio'=>'15549.62','CodigoDeBarra'=>'7795342001718','Pvp'=>'15549.62']);\nDB::table('sales')->insert(['Codigo' =>'2736811','Precio'=>'149.76','CodigoDeBarra'=>'7795335001145','Pvp'=>'149.76']);\nDB::table('sales')->insert(['Codigo' =>'4595622','Precio'=>'453.51','CodigoDeBarra'=>'7794207084156','Pvp'=>'453.51']);\nDB::table('sales')->insert(['Codigo' =>'654571','Precio'=>'453.34','CodigoDeBarra'=>'7798006302398','Pvp'=>'453.34']);\nDB::table('sales')->insert(['Codigo' =>'8041026','Precio'=>'193.80','CodigoDeBarra'=>'7798006302374','Pvp'=>'193.80']);\nDB::table('sales')->insert(['Codigo' =>'8040977','Precio'=>'363.37','CodigoDeBarra'=>'7798006302381','Pvp'=>'363.37']);\nDB::table('sales')->insert(['Codigo' =>'8035080','Precio'=>'266.87','CodigoDeBarra'=>'7795312108843','Pvp'=>'266.87']);\nDB::table('sales')->insert(['Codigo' =>'9994569','Precio'=>'273.39','CodigoDeBarra'=>'7795312108348','Pvp'=>'273.39']);\nDB::table('sales')->insert(['Codigo' =>'8024802','Precio'=>'282.35','CodigoDeBarra'=>'7795312108812','Pvp'=>'282.35']);\nDB::table('sales')->insert(['Codigo' =>'6318420','Precio'=>'13796.58','CodigoDeBarra'=>'7793397051344','Pvp'=>'13796.58']);\nDB::table('sales')->insert(['Codigo' =>'5269246','Precio'=>'180884.50','CodigoDeBarra'=>'7795355000500','Pvp'=>'180884.50']);\nDB::table('sales')->insert(['Codigo' =>'5269316','Precio'=>'184920.87','CodigoDeBarra'=>'7795355000517','Pvp'=>'184920.87']);\nDB::table('sales')->insert(['Codigo' =>'8042789','Precio'=>'203404.88','CodigoDeBarra'=>'7798337900010','Pvp'=>'203404.88']);\nDB::table('sales')->insert(['Codigo' =>'8028540','Precio'=>'394.19','CodigoDeBarra'=>'648260490935','Pvp'=>'394.19']);\nDB::table('sales')->insert(['Codigo' =>'8034485','Precio'=>'6048.16','CodigoDeBarra'=>'7798180920586','Pvp'=>'6048.16']);\nDB::table('sales')->insert(['Codigo' =>'636468','Precio'=>'25047.35','CodigoDeBarra'=>'7798180920463','Pvp'=>'25047.35']);\nDB::table('sales')->insert(['Codigo' =>'8011952','Precio'=>'1028.48','CodigoDeBarra'=>'7798082443503','Pvp'=>'1028.48']);\nDB::table('sales')->insert(['Codigo' =>'8008016','Precio'=>'1028.48','CodigoDeBarra'=>'7798082443497','Pvp'=>'1028.48']);\nDB::table('sales')->insert(['Codigo' =>'8011953','Precio'=>'1028.48','CodigoDeBarra'=>'7798082443480','Pvp'=>'1028.48']);\nDB::table('sales')->insert(['Codigo' =>'8011954','Precio'=>'1028.48','CodigoDeBarra'=>'7798082443510','Pvp'=>'1028.48']);\nDB::table('sales')->insert(['Codigo' =>'8031439','Precio'=>'2011.26','CodigoDeBarra'=>'7798082442223','Pvp'=>'2011.26']);\nDB::table('sales')->insert(['Codigo' =>'8023845','Precio'=>'2011.26','CodigoDeBarra'=>'7798082442209','Pvp'=>'2011.26']);\nDB::table('sales')->insert(['Codigo' =>'8017661','Precio'=>'2011.26','CodigoDeBarra'=>'7798082442230','Pvp'=>'2011.26']);\nDB::table('sales')->insert(['Codigo' =>'8017662','Precio'=>'2011.26','CodigoDeBarra'=>'7798082442247','Pvp'=>'2011.26']);\nDB::table('sales')->insert(['Codigo' =>'8034180','Precio'=>'2011.26','CodigoDeBarra'=>'7798082442254','Pvp'=>'2011.26']);\nDB::table('sales')->insert(['Codigo' =>'8018559','Precio'=>'1589.54','CodigoDeBarra'=>'7798082446887','Pvp'=>'1589.54']);\nDB::table('sales')->insert(['Codigo' =>'8018558','Precio'=>'1589.54','CodigoDeBarra'=>'7798082446870','Pvp'=>'1589.54']);\nDB::table('sales')->insert(['Codigo' =>'8018557','Precio'=>'1589.54','CodigoDeBarra'=>'7798082446863','Pvp'=>'1589.54']);\nDB::table('sales')->insert(['Codigo' =>'8018560','Precio'=>'1627.38','CodigoDeBarra'=>'7798082446894','Pvp'=>'1627.38']);\nDB::table('sales')->insert(['Codigo' =>'8018564','Precio'=>'1658.94','CodigoDeBarra'=>'7798082446849','Pvp'=>'1658.94']);\nDB::table('sales')->insert(['Codigo' =>'8018562','Precio'=>'1658.94','CodigoDeBarra'=>'7798082446832','Pvp'=>'1658.94']);\nDB::table('sales')->insert(['Codigo' =>'8018561','Precio'=>'1658.94','CodigoDeBarra'=>'7798082446825','Pvp'=>'1658.94']);\nDB::table('sales')->insert(['Codigo' =>'8018565','Precio'=>'1658.94','CodigoDeBarra'=>'7798082446856','Pvp'=>'1658.94']);\nDB::table('sales')->insert(['Codigo' =>'8014117','Precio'=>'1357.57','CodigoDeBarra'=>'7798082446023','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8014118','Precio'=>'1389.89','CodigoDeBarra'=>'7798082446016','Pvp'=>'1389.89']);\nDB::table('sales')->insert(['Codigo' =>'8019267','Precio'=>'1389.89','CodigoDeBarra'=>'7798082446009','Pvp'=>'1389.89']);\nDB::table('sales')->insert(['Codigo' =>'8020633','Precio'=>'1389.89','CodigoDeBarra'=>'7798082446030','Pvp'=>'1389.89']);\nDB::table('sales')->insert(['Codigo' =>'8030128','Precio'=>'1389.89','CodigoDeBarra'=>'7798082446948','Pvp'=>'1389.89']);\nDB::table('sales')->insert(['Codigo' =>'8011960','Precio'=>'1357.57','CodigoDeBarra'=>'7798082445279','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8011959','Precio'=>'1357.57','CodigoDeBarra'=>'7798082445262','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8010315','Precio'=>'1357.57','CodigoDeBarra'=>'7798082445255','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8011961','Precio'=>'1357.57','CodigoDeBarra'=>'7798082445286','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8109296','Precio'=>'1357.57','CodigoDeBarra'=>'7798082445293','Pvp'=>'1357.57']);\nDB::table('sales')->insert(['Codigo' =>'8015727','Precio'=>'758.03','CodigoDeBarra'=>'7793066242004','Pvp'=>'758.03']);\nDB::table('sales')->insert(['Codigo' =>'6283003','Precio'=>'276.64','CodigoDeBarra'=>'7793066241007','Pvp'=>'276.64']);\nDB::table('sales')->insert(['Codigo' =>'6283002','Precio'=>'344.53','CodigoDeBarra'=>'7793066241021','Pvp'=>'344.53']);\nDB::table('sales')->insert(['Codigo' =>'6283001','Precio'=>'393.09','CodigoDeBarra'=>'7793066241038','Pvp'=>'393.09']);\nDB::table('sales')->insert(['Codigo' =>'8025309','Precio'=>'431.21','CodigoDeBarra'=>'7793066243032','Pvp'=>'431.21']);\nDB::table('sales')->insert(['Codigo' =>'8015728','Precio'=>'635.06','CodigoDeBarra'=>'7793066243025','Pvp'=>'635.06']);\nDB::table('sales')->insert(['Codigo' =>'8025310','Precio'=>'441.87','CodigoDeBarra'=>'7790902223456','Pvp'=>'441.87']);\nDB::table('sales')->insert(['Codigo' =>'6283000','Precio'=>'416.43','CodigoDeBarra'=>'7793066242028','Pvp'=>'416.43']);\nDB::table('sales')->insert(['Codigo' =>'6285710','Precio'=>'10468.72','CodigoDeBarra'=>'7793397035238','Pvp'=>'10468.72']);\nDB::table('sales')->insert(['Codigo' =>'8038462','Precio'=>'7487.27','CodigoDeBarra'=>'7795306758351','Pvp'=>'7487.27']);\nDB::table('sales')->insert(['Codigo' =>'6175559','Precio'=>'180129.97','CodigoDeBarra'=>'7790375001841','Pvp'=>'180129.97']);\nDB::table('sales')->insert(['Codigo' =>'4820261','Precio'=>'11072.11','CodigoDeBarra'=>'','Pvp'=>'11072.11']);\nDB::table('sales')->insert(['Codigo' =>'4820262','Precio'=>'21479.34','CodigoDeBarra'=>'7795316000372','Pvp'=>'21479.34']);\nDB::table('sales')->insert(['Codigo' =>'635842','Precio'=>'12200.75','CodigoDeBarra'=>'7795367008785','Pvp'=>'12200.75']);\nDB::table('sales')->insert(['Codigo' =>'635926','Precio'=>'479.01','CodigoDeBarra'=>'7798006300226','Pvp'=>'479.01']);\nDB::table('sales')->insert(['Codigo' =>'635939','Precio'=>'250.54','CodigoDeBarra'=>'7798006300189','Pvp'=>'250.54']);\nDB::table('sales')->insert(['Codigo' =>'8009304','Precio'=>'198.06','CodigoDeBarra'=>'7798006302091','Pvp'=>'198.06']);\nDB::table('sales')->insert(['Codigo' =>'595997','Precio'=>'56730.88','CodigoDeBarra'=>'7793081057348','Pvp'=>'56730.88']);\nDB::table('sales')->insert(['Codigo' =>'5556552','Precio'=>'118169.55','CodigoDeBarra'=>'7793397090114','Pvp'=>'118169.55']);\nDB::table('sales')->insert(['Codigo' =>'632742','Precio'=>'201269.35','CodigoDeBarra'=>'7790375004095','Pvp'=>'201269.35']);\nDB::table('sales')->insert(['Codigo' =>'6049842','Precio'=>'721.24','CodigoDeBarra'=>'7798137190093','Pvp'=>'721.24']);\nDB::table('sales')->insert(['Codigo' =>'8039093','Precio'=>'10513.37','CodigoDeBarra'=>'7798260150407','Pvp'=>'10513.37']);\nDB::table('sales')->insert(['Codigo' =>'8039094','Precio'=>'7003.61','CodigoDeBarra'=>'7798260150391','Pvp'=>'7003.61']);\nDB::table('sales')->insert(['Codigo' =>'638584','Precio'=>'72854.16','CodigoDeBarra'=>'7793397090329','Pvp'=>'72854.16']);\nDB::table('sales')->insert(['Codigo' =>'638571','Precio'=>'48704.38','CodigoDeBarra'=>'7793397090312','Pvp'=>'48704.38']);\nDB::table('sales')->insert(['Codigo' =>'8011934','Precio'=>'96.77','CodigoDeBarra'=>'7798034740346','Pvp'=>'96.77']);\nDB::table('sales')->insert(['Codigo' =>'8024814','Precio'=>'96.77','CodigoDeBarra'=>'7798158483266','Pvp'=>'96.77']);\nDB::table('sales')->insert(['Codigo' =>'8023884','Precio'=>'109.25','CodigoDeBarra'=>'7798158483549','Pvp'=>'109.25']);\nDB::table('sales')->insert(['Codigo' =>'8001405','Precio'=>'136.71','CodigoDeBarra'=>'7798034743118','Pvp'=>'136.71']);\nDB::table('sales')->insert(['Codigo' =>'8009653','Precio'=>'121.73','CodigoDeBarra'=>'7798158482481','Pvp'=>'121.73']);\nDB::table('sales')->insert(['Codigo' =>'8009650','Precio'=>'121.73','CodigoDeBarra'=>'7798158482474','Pvp'=>'121.73']);\nDB::table('sales')->insert(['Codigo' =>'8026931','Precio'=>'186.66','CodigoDeBarra'=>'7798158481453','Pvp'=>'186.66']);\nDB::table('sales')->insert(['Codigo' =>'8022041','Precio'=>'186.66','CodigoDeBarra'=>'7798158481699','Pvp'=>'186.66']);\nDB::table('sales')->insert(['Codigo' =>'6479971','Precio'=>'271.88','CodigoDeBarra'=>'7798006302268','Pvp'=>'271.88']);\nDB::table('sales')->insert(['Codigo' =>'8026855','Precio'=>'103.91','CodigoDeBarra'=>'7798006300141','Pvp'=>'103.91']);\nDB::table('sales')->insert(['Codigo' =>'8042534','Precio'=>'97.91','CodigoDeBarra'=>'7798006302459','Pvp'=>'97.91']);\nDB::table('sales')->insert(['Codigo' =>'165021','Precio'=>'210.96','CodigoDeBarra'=>'7795312108393','Pvp'=>'210.96']);\nDB::table('sales')->insert(['Codigo' =>'3617412','Precio'=>'338.55','CodigoDeBarra'=>'7795312108805','Pvp'=>'338.55']);\nDB::table('sales')->insert(['Codigo' =>'3035871','Precio'=>'294.29','CodigoDeBarra'=>'7795312108782','Pvp'=>'294.29']);\nDB::table('sales')->insert(['Codigo' =>'8020611','Precio'=>'242.35','CodigoDeBarra'=>'7795312108539','Pvp'=>'242.35']);\nDB::table('sales')->insert(['Codigo' =>'8020551','Precio'=>'207066.48','CodigoDeBarra'=>'7798067990039','Pvp'=>'207066.48']);\nDB::table('sales')->insert(['Codigo' =>'8041175','Precio'=>'136035.40','CodigoDeBarra'=>'7798035313914','Pvp'=>'136035.40']);\nDB::table('sales')->insert(['Codigo' =>'8022402','Precio'=>'880.18','CodigoDeBarra'=>'7798111820251','Pvp'=>'880.18']);\nDB::table('sales')->insert(['Codigo' =>'8019936','Precio'=>'880.18','CodigoDeBarra'=>'7798111820244','Pvp'=>'880.18']);\nDB::table('sales')->insert(['Codigo' =>'8022615','Precio'=>'880.18','CodigoDeBarra'=>'7798111820268','Pvp'=>'880.18']);\nDB::table('sales')->insert(['Codigo' =>'8042844','Precio'=>'112.00','CodigoDeBarra'=>'7798111820541','Pvp'=>'112.00']);\nDB::table('sales')->insert(['Codigo' =>'8025561','Precio'=>'920.22','CodigoDeBarra'=>'7798111820312','Pvp'=>'920.22']);\nDB::table('sales')->insert(['Codigo' =>'8028070','Precio'=>'1560.93','CodigoDeBarra'=>'7798111820329','Pvp'=>'1560.93']);\nDB::table('sales')->insert(['Codigo' =>'8019524','Precio'=>'1480.84','CodigoDeBarra'=>'7798111820220','Pvp'=>'1480.84']);\nDB::table('sales')->insert(['Codigo' =>'6310878','Precio'=>'1240.57','CodigoDeBarra'=>'7798111820114','Pvp'=>'1240.57']);\nDB::table('sales')->insert(['Codigo' =>'6310876','Precio'=>'752.04','CodigoDeBarra'=>'7798111820121','Pvp'=>'752.04']);\nDB::table('sales')->insert(['Codigo' =>'8041570','Precio'=>'359.59','CodigoDeBarra'=>'7798111820534','Pvp'=>'359.59']);\nDB::table('sales')->insert(['Codigo' =>'8016749','Precio'=>'800.08','CodigoDeBarra'=>'7798111820190','Pvp'=>'800.08']);\nDB::table('sales')->insert(['Codigo' =>'8005300','Precio'=>'840.13','CodigoDeBarra'=>'7798111820145','Pvp'=>'840.13']);\nDB::table('sales')->insert(['Codigo' =>'8034473','Precio'=>'760.03','CodigoDeBarra'=>'7798111820381','Pvp'=>'760.03']);\nDB::table('sales')->insert(['Codigo' =>'8034472','Precio'=>'760.03','CodigoDeBarra'=>'7798111820398','Pvp'=>'760.03']);\nDB::table('sales')->insert(['Codigo' =>'6310057','Precio'=>'1440.79','CodigoDeBarra'=>'7798111820039','Pvp'=>'1440.79']);\nDB::table('sales')->insert(['Codigo' =>'6310063','Precio'=>'1560.93','CodigoDeBarra'=>'7798111820022','Pvp'=>'1560.93']);\nDB::table('sales')->insert(['Codigo' =>'8041018','Precio'=>'776.06','CodigoDeBarra'=>'7798111820510','Pvp'=>'776.06']);\nDB::table('sales')->insert(['Codigo' =>'8034178','Precio'=>'920.22','CodigoDeBarra'=>'7798111820374','Pvp'=>'920.22']);\nDB::table('sales')->insert(['Codigo' =>'8034177','Precio'=>'1240.57','CodigoDeBarra'=>'7798111820336','Pvp'=>'1240.57']);\nDB::table('sales')->insert(['Codigo' =>'6310058','Precio'=>'1240.57','CodigoDeBarra'=>'7798111820077','Pvp'=>'1240.57']);\nDB::table('sales')->insert(['Codigo' =>'8030110','Precio'=>'695.97','CodigoDeBarra'=>'7798111820305','Pvp'=>'695.97']);\nDB::table('sales')->insert(['Codigo' =>'8018806','Precio'=>'960.26','CodigoDeBarra'=>'7798111820213','Pvp'=>'960.26']);\nDB::table('sales')->insert(['Codigo' =>'9931919','Precio'=>'495.75','CodigoDeBarra'=>'7798111820152','Pvp'=>'495.75']);\nDB::table('sales')->insert(['Codigo' =>'8038823','Precio'=>'1120.44','CodigoDeBarra'=>'7798111820503','Pvp'=>'1120.44']);\nDB::table('sales')->insert(['Codigo' =>'6310059','Precio'=>'1200.52','CodigoDeBarra'=>'7798111820015','Pvp'=>'1200.52']);\nDB::table('sales')->insert(['Codigo' =>'6310060','Precio'=>'1120.44','CodigoDeBarra'=>'7798111820046','Pvp'=>'1120.44']);\nDB::table('sales')->insert(['Codigo' =>'8018450','Precio'=>'1120.44','CodigoDeBarra'=>'7798111820206','Pvp'=>'1120.44']);\nDB::table('sales')->insert(['Codigo' =>'8038824','Precio'=>'1040.35','CodigoDeBarra'=>'7798111820497','Pvp'=>'1040.35']);\nDB::table('sales')->insert(['Codigo' =>'8037598','Precio'=>'1032.34','CodigoDeBarra'=>'7798111820404','Pvp'=>'1032.34']);\nDB::table('sales')->insert(['Codigo' =>'8034179','Precio'=>'1480.84','CodigoDeBarra'=>'7798111820367','Pvp'=>'1480.84']);\nDB::table('sales')->insert(['Codigo' =>'8037809','Precio'=>'399.65','CodigoDeBarra'=>'7798111820459','Pvp'=>'399.65']);\nDB::table('sales')->insert(['Codigo' =>'8037903','Precio'=>'639.92','CodigoDeBarra'=>'7798111820466','Pvp'=>'639.92']);\nDB::table('sales')->insert(['Codigo' =>'8037808','Precio'=>'399.65','CodigoDeBarra'=>'7798111820473','Pvp'=>'399.65']);\nDB::table('sales')->insert(['Codigo' =>'8016750','Precio'=>'1440.79','CodigoDeBarra'=>'7798111820091','Pvp'=>'1440.79']);\nDB::table('sales')->insert(['Codigo' =>'8024368','Precio'=>'511.77','CodigoDeBarra'=>'7798111820282','Pvp'=>'511.77']);\nDB::table('sales')->insert(['Codigo' =>'8024369','Precio'=>'720.01','CodigoDeBarra'=>'7798111820275','Pvp'=>'720.01']);\nDB::table('sales')->insert(['Codigo' =>'8024370','Precio'=>'720.01','CodigoDeBarra'=>'7798111820299','Pvp'=>'720.01']);\nDB::table('sales')->insert(['Codigo' =>'8019120','Precio'=>'1600.97','CodigoDeBarra'=>'7798111820237','Pvp'=>'1600.97']);\nDB::table('sales')->insert(['Codigo' =>'8033416','Precio'=>'1560.93','CodigoDeBarra'=>'7798111820343','Pvp'=>'1560.93']);\nDB::table('sales')->insert(['Codigo' =>'8033417','Precio'=>'1320.67','CodigoDeBarra'=>'7798111820350','Pvp'=>'1320.67']);\nDB::table('sales')->insert(['Codigo' =>'8040894','Precio'=>'192.87','CodigoDeBarra'=>'7798008294707','Pvp'=>'192.87']);\nDB::table('sales')->insert(['Codigo' =>'8039498','Precio'=>'66980.02','CodigoDeBarra'=>'7798035314058','Pvp'=>'66980.02']);\nDB::table('sales')->insert(['Codigo' =>'8041194','Precio'=>'74774.25','CodigoDeBarra'=>'7798088128930','Pvp'=>'74774.25']);\nDB::table('sales')->insert(['Codigo' =>'6413684','Precio'=>'374.17','CodigoDeBarra'=>'7795380002357','Pvp'=>'374.17']);\nDB::table('sales')->insert(['Codigo' =>'6413844','Precio'=>'375.79','CodigoDeBarra'=>'7795380002364','Pvp'=>'375.79']);\nDB::table('sales')->insert(['Codigo' =>'6413974','Precio'=>'372.65','CodigoDeBarra'=>'7795380002340','Pvp'=>'372.65']);\nDB::table('sales')->insert(['Codigo' =>'8039328','Precio'=>'373.48','CodigoDeBarra'=>'7795380043107','Pvp'=>'373.48']);\nDB::table('sales')->insert(['Codigo' =>'8016741','Precio'=>'47.76','CodigoDeBarra'=>'7790770003143','Pvp'=>'47.76']);\nDB::table('sales')->insert(['Codigo' =>'8016740','Precio'=>'26.50','CodigoDeBarra'=>'7790770000517','Pvp'=>'26.50']);\nDB::table('sales')->insert(['Codigo' =>'8027209','Precio'=>'71.21','CodigoDeBarra'=>'7790770004010','Pvp'=>'71.21']);\nDB::table('sales')->insert(['Codigo' =>'8014432','Precio'=>'40.26','CodigoDeBarra'=>'7790770002252','Pvp'=>'40.26']);\nDB::table('sales')->insert(['Codigo' =>'8014433','Precio'=>'29.70','CodigoDeBarra'=>'7790770002986','Pvp'=>'29.70']);\nDB::table('sales')->insert(['Codigo' =>'9991103','Precio'=>'161.72','CodigoDeBarra'=>'7798024570014','Pvp'=>'161.72']);\nDB::table('sales')->insert(['Codigo' =>'8039159','Precio'=>'519.09','CodigoDeBarra'=>'7791171102053','Pvp'=>'519.09']);\nDB::table('sales')->insert(['Codigo' =>'8039160','Precio'=>'786.10','CodigoDeBarra'=>'7791171102060','Pvp'=>'786.10']);\nDB::table('sales')->insert(['Codigo' =>'3105661','Precio'=>'376.29','CodigoDeBarra'=>'7791171100493','Pvp'=>'376.29']);\nDB::table('sales')->insert(['Codigo' =>'3105662','Precio'=>'645.45','CodigoDeBarra'=>'7791171100608','Pvp'=>'645.45']);\nDB::table('sales')->insert(['Codigo' =>'5409261','Precio'=>'353.17','CodigoDeBarra'=>'7791171101278','Pvp'=>'353.17']);\nDB::table('sales')->insert(['Codigo' =>'5409262','Precio'=>'692.13','CodigoDeBarra'=>'7791171101346','Pvp'=>'692.13']);\nDB::table('sales')->insert(['Codigo' =>'5409263','Precio'=>'877.67','CodigoDeBarra'=>'7791171000335','Pvp'=>'877.67']);\nDB::table('sales')->insert(['Codigo' =>'4668722','Precio'=>'438.86','CodigoDeBarra'=>'7791171000755','Pvp'=>'438.86']);\nDB::table('sales')->insert(['Codigo' =>'8041150','Precio'=>'722759.38','CodigoDeBarra'=>'5000456032872','Pvp'=>'722759.38']);\nDB::table('sales')->insert(['Codigo' =>'5722001','Precio'=>'456.81','CodigoDeBarra'=>'7792175008792','Pvp'=>'456.81']);\nDB::table('sales')->insert(['Codigo' =>'8006906','Precio'=>'7236.43','CodigoDeBarra'=>'7798083959942','Pvp'=>'7236.43']);\nDB::table('sales')->insert(['Codigo' =>'4904591','Precio'=>'17458.06','CodigoDeBarra'=>'7797991146659','Pvp'=>'17458.06']);\nDB::table('sales')->insert(['Codigo' =>'4904671','Precio'=>'20414.02','CodigoDeBarra'=>'7797991146673','Pvp'=>'20414.02']);\nDB::table('sales')->insert(['Codigo' =>'6071682','Precio'=>'926.01','CodigoDeBarra'=>'7795336293051','Pvp'=>'926.01']);\nDB::table('sales')->insert(['Codigo' =>'6071712','Precio'=>'1461.45','CodigoDeBarra'=>'7795336293068','Pvp'=>'1461.45']);\nDB::table('sales')->insert(['Codigo' =>'5163561','Precio'=>'5102.01','CodigoDeBarra'=>'7795367054102','Pvp'=>'5102.01']);\nDB::table('sales')->insert(['Codigo' =>'5150008','Precio'=>'6330.70','CodigoDeBarra'=>'7795348251056','Pvp'=>'6330.70']);\nDB::table('sales')->insert(['Codigo' =>'609555','Precio'=>'4958.32','CodigoDeBarra'=>'7798088120620','Pvp'=>'4958.32']);\nDB::table('sales')->insert(['Codigo' =>'8028418','Precio'=>'7561.98','CodigoDeBarra'=>'7798006871641','Pvp'=>'7561.98']);\nDB::table('sales')->insert(['Codigo' =>'484755','Precio'=>'1604.44','CodigoDeBarra'=>'7798035310692','Pvp'=>'1604.44']);\nDB::table('sales')->insert(['Codigo' =>'5855847','Precio'=>'6522.73','CodigoDeBarra'=>'7791829000625','Pvp'=>'6522.73']);\nDB::table('sales')->insert(['Codigo' =>'5683841','Precio'=>'18144.36','CodigoDeBarra'=>'7792219911842','Pvp'=>'18144.36']);\nDB::table('sales')->insert(['Codigo' =>'8042456','Precio'=>'7105.18','CodigoDeBarra'=>'7797416012996','Pvp'=>'7105.18']);\nDB::table('sales')->insert(['Codigo' =>'8002249','Precio'=>'185.72','CodigoDeBarra'=>'7792640004519','Pvp'=>'185.72']);\nDB::table('sales')->insert(['Codigo' =>'6034306','Precio'=>'176.09','CodigoDeBarra'=>'7792640000313','Pvp'=>'176.09']);\nDB::table('sales')->insert(['Codigo' =>'6300428','Precio'=>'170.42','CodigoDeBarra'=>'7792640007169','Pvp'=>'170.42']);\nDB::table('sales')->insert(['Codigo' =>'8042106','Precio'=>'736.38','CodigoDeBarra'=>'7792640001877','Pvp'=>'736.38']);\nDB::table('sales')->insert(['Codigo' =>'6034311','Precio'=>'123.59','CodigoDeBarra'=>'7792640007145','Pvp'=>'123.59']);\nDB::table('sales')->insert(['Codigo' =>'6034110','Precio'=>'185.72','CodigoDeBarra'=>'7792640002744','Pvp'=>'185.72']);\nDB::table('sales')->insert(['Codigo' =>'8032012','Precio'=>'185.72','CodigoDeBarra'=>'7792640004557','Pvp'=>'185.72']);\nDB::table('sales')->insert(['Codigo' =>'6034300','Precio'=>'176.09','CodigoDeBarra'=>'7792640000320','Pvp'=>'176.09']);\nDB::table('sales')->insert(['Codigo' =>'6300418','Precio'=>'170.42','CodigoDeBarra'=>'7792640007152','Pvp'=>'170.42']);\nDB::table('sales')->insert(['Codigo' =>'8023857','Precio'=>'197.69','CodigoDeBarra'=>'7792640008159','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023877','Precio'=>'197.69','CodigoDeBarra'=>'7792640008357','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023878','Precio'=>'197.69','CodigoDeBarra'=>'7792640008364','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023858','Precio'=>'197.69','CodigoDeBarra'=>'7792640000078','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023859','Precio'=>'197.69','CodigoDeBarra'=>'7792640008173','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023860','Precio'=>'197.69','CodigoDeBarra'=>'7792640008180','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023861','Precio'=>'197.69','CodigoDeBarra'=>'7792640008227','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023879','Precio'=>'197.69','CodigoDeBarra'=>'7792640008371','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023862','Precio'=>'197.69','CodigoDeBarra'=>'7792640008197','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023863','Precio'=>'197.69','CodigoDeBarra'=>'7792640008234','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023864','Precio'=>'197.69','CodigoDeBarra'=>'7792640008319','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023880','Precio'=>'197.69','CodigoDeBarra'=>'7792640008388','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023865','Precio'=>'197.69','CodigoDeBarra'=>'7792640008203','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023866','Precio'=>'197.69','CodigoDeBarra'=>'7792640008241','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023867','Precio'=>'197.69','CodigoDeBarra'=>'7792640008326','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023868','Precio'=>'197.69','CodigoDeBarra'=>'7792640008272','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023869','Precio'=>'197.69','CodigoDeBarra'=>'7792640008302','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023870','Precio'=>'197.69','CodigoDeBarra'=>'7792640008210','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023871','Precio'=>'197.69','CodigoDeBarra'=>'7792640008258','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023872','Precio'=>'197.69','CodigoDeBarra'=>'7792640008333','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023873','Precio'=>'197.69','CodigoDeBarra'=>'7792640008289','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023874','Precio'=>'197.69','CodigoDeBarra'=>'7792640008265','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023875','Precio'=>'197.69','CodigoDeBarra'=>'7792640008340','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'8023876','Precio'=>'197.69','CodigoDeBarra'=>'7792640008296','Pvp'=>'197.69']);\nDB::table('sales')->insert(['Codigo' =>'541900','Precio'=>'540.97','CodigoDeBarra'=>'7798021110121','Pvp'=>'540.97']);\nDB::table('sales')->insert(['Codigo' =>'541913','Precio'=>'464.18','CodigoDeBarra'=>'7798021111401','Pvp'=>'464.18']);\nDB::table('sales')->insert(['Codigo' =>'9993019','Precio'=>'215.06','CodigoDeBarra'=>'7798021110114','Pvp'=>'215.06']);\nDB::table('sales')->insert(['Codigo' =>'8001793','Precio'=>'96.69','CodigoDeBarra'=>'7795336003544','Pvp'=>'96.69']);\nDB::table('sales')->insert(['Codigo' =>'541482','Precio'=>'84.54','CodigoDeBarra'=>'7794207000767','Pvp'=>'84.54']);\nDB::table('sales')->insert(['Codigo' =>'8040021','Precio'=>'88.65','CodigoDeBarra'=>'7798006302411','Pvp'=>'88.65']);\nDB::table('sales')->insert(['Codigo' =>'8020331','Precio'=>'88.65','CodigoDeBarra'=>'7798006300110','Pvp'=>'88.65']);\nDB::table('sales')->insert(['Codigo' =>'8020270','Precio'=>'94.22','CodigoDeBarra'=>'7794207084064','Pvp'=>'94.22']);\nDB::table('sales')->insert(['Codigo' =>'8018739','Precio'=>'96.65','CodigoDeBarra'=>'7798006300103','Pvp'=>'96.65']);\nDB::table('sales')->insert(['Codigo' =>'8040713','Precio'=>'96.65','CodigoDeBarra'=>'7798006302404','Pvp'=>'96.65']);\nDB::table('sales')->insert(['Codigo' =>'8007071','Precio'=>'2356.97','CodigoDeBarra'=>'7795356999889','Pvp'=>'2356.97']);\nDB::table('sales')->insert(['Codigo' =>'4441251','Precio'=>'8567.45','CodigoDeBarra'=>'7795356999896','Pvp'=>'8567.45']);\nDB::table('sales')->insert(['Codigo' =>'8007070','Precio'=>'821.08','CodigoDeBarra'=>'7796035474154','Pvp'=>'821.08']);\nDB::table('sales')->insert(['Codigo' =>'613268','Precio'=>'534.92','CodigoDeBarra'=>'7793569000330','Pvp'=>'534.92']);\nDB::table('sales')->insert(['Codigo' =>'613271','Precio'=>'848.10','CodigoDeBarra'=>'7793569000873','Pvp'=>'848.10']);\nDB::table('sales')->insert(['Codigo' =>'5002751','Precio'=>'865.40','CodigoDeBarra'=>'7798088120033','Pvp'=>'865.40']);\nDB::table('sales')->insert(['Codigo' =>'5002801','Precio'=>'2184.55','CodigoDeBarra'=>'7798088120040','Pvp'=>'2184.55']);\nDB::table('sales')->insert(['Codigo' =>'3471391','Precio'=>'899.19','CodigoDeBarra'=>'7795367000215','Pvp'=>'899.19']);\nDB::table('sales')->insert(['Codigo' =>'4367681','Precio'=>'1227.64','CodigoDeBarra'=>'7791829008317','Pvp'=>'1227.64']);\nDB::table('sales')->insert(['Codigo' =>'436776','Precio'=>'3411.02','CodigoDeBarra'=>'7791829008584','Pvp'=>'3411.02']);\nDB::table('sales')->insert(['Codigo' =>'3638040','Precio'=>'1372.19','CodigoDeBarra'=>'7793397050170','Pvp'=>'1372.19']);\nDB::table('sales')->insert(['Codigo' =>'8006794','Precio'=>'4134.62','CodigoDeBarra'=>'7793397050248','Pvp'=>'4134.62']);\nDB::table('sales')->insert(['Codigo' =>'8007049','Precio'=>'821.88','CodigoDeBarra'=>'7793397050316','Pvp'=>'821.88']);\nDB::table('sales')->insert(['Codigo' =>'8007064','Precio'=>'578.01','CodigoDeBarra'=>'7798035313341','Pvp'=>'578.01']);\nDB::table('sales')->insert(['Codigo' =>'488545','Precio'=>'1322.60','CodigoDeBarra'=>'7798035313358','Pvp'=>'1322.60']);\nDB::table('sales')->insert(['Codigo' =>'3060361','Precio'=>'4203.04','CodigoDeBarra'=>'7798021442512','Pvp'=>'4203.04']);\nDB::table('sales')->insert(['Codigo' =>'8022245','Precio'=>'65.71','CodigoDeBarra'=>'7790010616829','Pvp'=>'65.71']);\nDB::table('sales')->insert(['Codigo' =>'6034503','Precio'=>'105.33','CodigoDeBarra'=>'7790010570213','Pvp'=>'105.33']);\nDB::table('sales')->insert(['Codigo' =>'8014088','Precio'=>'289.56','CodigoDeBarra'=>'7790010570220','Pvp'=>'289.56']);\nDB::table('sales')->insert(['Codigo' =>'6300174','Precio'=>'86.01','CodigoDeBarra'=>'7790010888912','Pvp'=>'86.01']);\nDB::table('sales')->insert(['Codigo' =>'5542553','Precio'=>'269.86','CodigoDeBarra'=>'7795336292061','Pvp'=>'269.86']);\nDB::table('sales')->insert(['Codigo' =>'5542683','Precio'=>'363.30','CodigoDeBarra'=>'7795336292115','Pvp'=>'363.30']);\nDB::table('sales')->insert(['Codigo' =>'5542684','Precio'=>'385.90','CodigoDeBarra'=>'7795336292122','Pvp'=>'385.90']);\nDB::table('sales')->insert(['Codigo' =>'5542423','Precio'=>'221.26','CodigoDeBarra'=>'7795336292016','Pvp'=>'221.26']);\nDB::table('sales')->insert(['Codigo' =>'4839331','Precio'=>'14344.49','CodigoDeBarra'=>'7795302180064','Pvp'=>'14344.49']);\nDB::table('sales')->insert(['Codigo' =>'404749','Precio'=>'4794.75','CodigoDeBarra'=>'7794220000584','Pvp'=>'4794.75']);\nDB::table('sales')->insert(['Codigo' =>'9998541','Precio'=>'198.08','CodigoDeBarra'=>'7798006300097','Pvp'=>'198.08']);\nDB::table('sales')->insert(['Codigo' =>'8027693','Precio'=>'51378.38','CodigoDeBarra'=>'7790375003944','Pvp'=>'51378.38']);\nDB::table('sales')->insert(['Codigo' =>'6355397','Precio'=>'205513.65','CodigoDeBarra'=>'7798313410038','Pvp'=>'205513.65']);\nDB::table('sales')->insert(['Codigo' =>'8041567','Precio'=>'675.61','CodigoDeBarra'=>'7798120265869','Pvp'=>'675.61']);\nDB::table('sales')->insert(['Codigo' =>'8033341','Precio'=>'903.35','CodigoDeBarra'=>'7798120265555','Pvp'=>'903.35']);\nDB::table('sales')->insert(['Codigo' =>'8033344','Precio'=>'1252.55','CodigoDeBarra'=>'7798120265524','Pvp'=>'1252.55']);\nDB::table('sales')->insert(['Codigo' =>'8033343','Precio'=>'1252.55','CodigoDeBarra'=>'7798120265531','Pvp'=>'1252.55']);\nDB::table('sales')->insert(['Codigo' =>'8037969','Precio'=>'1282.92','CodigoDeBarra'=>'7798120265715','Pvp'=>'1282.92']);\nDB::table('sales')->insert(['Codigo' =>'8035153','Precio'=>'1252.55','CodigoDeBarra'=>'7798120265609','Pvp'=>'1252.55']);\nDB::table('sales')->insert(['Codigo' =>'8033709','Precio'=>'827.45','CodigoDeBarra'=>'7798120265579','Pvp'=>'827.45']);\nDB::table('sales')->insert(['Codigo' =>'8039411','Precio'=>'903.35','CodigoDeBarra'=>'7798120265777','Pvp'=>'903.35']);\nDB::table('sales')->insert(['Codigo' =>'8033345','Precio'=>'872.98','CodigoDeBarra'=>'7798120265562','Pvp'=>'872.98']);\nDB::table('sales')->insert(['Codigo' =>'8039412','Precio'=>'903.35','CodigoDeBarra'=>'7798120265814','Pvp'=>'903.35']);\nDB::table('sales')->insert(['Codigo' =>'8037970','Precio'=>'1252.55','CodigoDeBarra'=>'7798120265654','Pvp'=>'1252.55']);\nDB::table('sales')->insert(['Codigo' =>'8037784','Precio'=>'1586.57','CodigoDeBarra'=>'7798120265616','Pvp'=>'1586.57']);\nDB::table('sales')->insert(['Codigo' =>'643197','Precio'=>'69802.43','CodigoDeBarra'=>'7793397051696','Pvp'=>'69802.43']);\nDB::table('sales')->insert(['Codigo' =>'4381282','Precio'=>'120.71','CodigoDeBarra'=>'7793569001894','Pvp'=>'120.71']);\nDB::table('sales')->insert(['Codigo' =>'2835493','Precio'=>'461.58','CodigoDeBarra'=>'7795336003483','Pvp'=>'461.58']);\nDB::table('sales')->insert(['Codigo' =>'8000419','Precio'=>'1712.86','CodigoDeBarra'=>'7798129410666','Pvp'=>'1712.86']);\nDB::table('sales')->insert(['Codigo' =>'8018298','Precio'=>'2573.09','CodigoDeBarra'=>'7798129412271','Pvp'=>'2573.09']);\nDB::table('sales')->insert(['Codigo' =>'5069532','Precio'=>'253.29','CodigoDeBarra'=>'7798006300424','Pvp'=>'253.29']);\nDB::table('sales')->insert(['Codigo' =>'5069811','Precio'=>'204.78','CodigoDeBarra'=>'7798006300479','Pvp'=>'204.78']);\nDB::table('sales')->insert(['Codigo' =>'5069531','Precio'=>'133.99','CodigoDeBarra'=>'7798006300417','Pvp'=>'133.99']);\nDB::table('sales')->insert(['Codigo' =>'5069812','Precio'=>'278.69','CodigoDeBarra'=>'7798006300486','Pvp'=>'278.69']);\nDB::table('sales')->insert(['Codigo' =>'4114470','Precio'=>'235.56','CodigoDeBarra'=>'7795336033206','Pvp'=>'235.56']);\nDB::table('sales')->insert(['Codigo' =>'2835492','Precio'=>'474.11','CodigoDeBarra'=>'7795336233149','Pvp'=>'474.11']);\nDB::table('sales')->insert(['Codigo' =>'283549','Precio'=>'248.07','CodigoDeBarra'=>'7795336233132','Pvp'=>'248.07']);\nDB::table('sales')->insert(['Codigo' =>'2835073','Precio'=>'151.34','CodigoDeBarra'=>'7795336233194','Pvp'=>'151.34']);\nDB::table('sales')->insert(['Codigo' =>'2835312','Precio'=>'245.07','CodigoDeBarra'=>'7795336233125','Pvp'=>'245.07']);\nDB::table('sales')->insert(['Codigo' =>'8001774','Precio'=>'312.43','CodigoDeBarra'=>'7795336033220','Pvp'=>'312.43']);\nDB::table('sales')->insert(['Codigo' =>'2835311','Precio'=>'136.77','CodigoDeBarra'=>'7795336233118','Pvp'=>'136.77']);\nDB::table('sales')->insert(['Codigo' =>'8001781','Precio'=>'246.42','CodigoDeBarra'=>'7795336033213','Pvp'=>'246.42']);\nDB::table('sales')->insert(['Codigo' =>'8001769','Precio'=>'593.48','CodigoDeBarra'=>'7795336257008','Pvp'=>'593.48']);\nDB::table('sales')->insert(['Codigo' =>'8001805','Precio'=>'322.17','CodigoDeBarra'=>'7795336231039','Pvp'=>'322.17']);\nDB::table('sales')->insert(['Codigo' =>'4194170','Precio'=>'1026.91','CodigoDeBarra'=>'7795336290999','Pvp'=>'1026.91']);\nDB::table('sales')->insert(['Codigo' =>'4194250','Precio'=>'1681.48','CodigoDeBarra'=>'7795336291002','Pvp'=>'1681.48']);\nDB::table('sales')->insert(['Codigo' =>'4592572','Precio'=>'988.16','CodigoDeBarra'=>'7795336294638','Pvp'=>'988.16']);\nDB::table('sales')->insert(['Codigo' =>'2246346','Precio'=>'203.59','CodigoDeBarra'=>'7795371000270','Pvp'=>'203.59']);\nDB::table('sales')->insert(['Codigo' =>'2246345','Precio'=>'127.24','CodigoDeBarra'=>'7795371000263','Pvp'=>'127.24']);\nDB::table('sales')->insert(['Codigo' =>'3118790','Precio'=>'697.37','CodigoDeBarra'=>'7795336238014','Pvp'=>'697.37']);\nDB::table('sales')->insert(['Codigo' =>'8001770','Precio'=>'291.32','CodigoDeBarra'=>'7795336255202','Pvp'=>'291.32']);\nDB::table('sales')->insert(['Codigo' =>'3699692','Precio'=>'539.23','CodigoDeBarra'=>'7795336254403','Pvp'=>'539.23']);\nDB::table('sales')->insert(['Codigo' =>'3699691','Precio'=>'399.33','CodigoDeBarra'=>'7795336254304','Pvp'=>'399.33']);\nDB::table('sales')->insert(['Codigo' =>'8001795','Precio'=>'723.92','CodigoDeBarra'=>'7795336070416','Pvp'=>'723.92']);\nDB::table('sales')->insert(['Codigo' =>'8001794','Precio'=>'1105.96','CodigoDeBarra'=>'7795336070201','Pvp'=>'1105.96']);\nDB::table('sales')->insert(['Codigo' =>'641584','Precio'=>'39954.66','CodigoDeBarra'=>'7798035311125','Pvp'=>'39954.66']);\nDB::table('sales')->insert(['Codigo' =>'4079671','Precio'=>'4554.91','CodigoDeBarra'=>'7792371015167','Pvp'=>'4554.91']);\nDB::table('sales')->insert(['Codigo' =>'4249451','Precio'=>'4554.91','CodigoDeBarra'=>'7792371015150','Pvp'=>'4554.91']);\nDB::table('sales')->insert(['Codigo' =>'5726421','Precio'=>'42061.08','CodigoDeBarra'=>'7795381411219','Pvp'=>'42061.08']);\nDB::table('sales')->insert(['Codigo' =>'5726551','Precio'=>'42061.08','CodigoDeBarra'=>'7794640820076','Pvp'=>'42061.08']);\nDB::table('sales')->insert(['Codigo' =>'4785540','Precio'=>'424.92','CodigoDeBarra'=>'7793397050774','Pvp'=>'424.92']);\nDB::table('sales')->insert(['Codigo' =>'9931929','Precio'=>'2612.26','CodigoDeBarra'=>'7795380004597','Pvp'=>'2612.26']);\nDB::table('sales')->insert(['Codigo' =>'3065072','Precio'=>'574.85','CodigoDeBarra'=>'7795380003637','Pvp'=>'574.85']);\nDB::table('sales')->insert(['Codigo' =>'8000306','Precio'=>'1739.79','CodigoDeBarra'=>'7795380003774','Pvp'=>'1739.79']);\nDB::table('sales')->insert(['Codigo' =>'5283761','Precio'=>'14419.23','CodigoDeBarra'=>'7792069066020','Pvp'=>'14419.23']);\nDB::table('sales')->insert(['Codigo' =>'5283811','Precio'=>'28838.98','CodigoDeBarra'=>'7795306365092','Pvp'=>'28838.98']);\nDB::table('sales')->insert(['Codigo' =>'8001841','Precio'=>'43258.33','CodigoDeBarra'=>'7795306365115','Pvp'=>'43258.33']);\nDB::table('sales')->insert(['Codigo' =>'5739261','Precio'=>'159.06','CodigoDeBarra'=>'7795371459290','Pvp'=>'159.06']);\nDB::table('sales')->insert(['Codigo' =>'5739264','Precio'=>'318.11','CodigoDeBarra'=>'7795371459306','Pvp'=>'318.11']);\nDB::table('sales')->insert(['Codigo' =>'8038055','Precio'=>'6044.26','CodigoDeBarra'=>'7798321180022','Pvp'=>'6044.26']);\nDB::table('sales')->insert(['Codigo' =>'3462722','Precio'=>'1045.92','CodigoDeBarra'=>'7798084680180','Pvp'=>'1045.92']);\nDB::table('sales')->insert(['Codigo' =>'4672181','Precio'=>'2795.95','CodigoDeBarra'=>'7730949046694','Pvp'=>'2795.95']);\nDB::table('sales')->insert(['Codigo' =>'8035393','Precio'=>'46.84','CodigoDeBarra'=>'7792129004009','Pvp'=>'46.84']);\nDB::table('sales')->insert(['Codigo' =>'9998831','Precio'=>'129.68','CodigoDeBarra'=>'7792129001275','Pvp'=>'129.68']);\nDB::table('sales')->insert(['Codigo' =>'8028286','Precio'=>'198.04','CodigoDeBarra'=>'7798140259244','Pvp'=>'198.04']);\nDB::table('sales')->insert(['Codigo' =>'8026100','Precio'=>'198.04','CodigoDeBarra'=>'7798140259237','Pvp'=>'198.04']);\nDB::table('sales')->insert(['Codigo' =>'8026101','Precio'=>'198.04','CodigoDeBarra'=>'7798140252962','Pvp'=>'198.04']);\nDB::table('sales')->insert(['Codigo' =>'8038252','Precio'=>'197.22','CodigoDeBarra'=>'7798140259633','Pvp'=>'197.22']);\nDB::table('sales')->insert(['Codigo' =>'8040781','Precio'=>'313.67','CodigoDeBarra'=>'7798140259978','Pvp'=>'313.67']);\nDB::table('sales')->insert(['Codigo' =>'8041330','Precio'=>'2651.16','CodigoDeBarra'=>'7798140253778','Pvp'=>'2651.16']);\nDB::table('sales')->insert(['Codigo' =>'8040779','Precio'=>'313.67','CodigoDeBarra'=>'7798140253372','Pvp'=>'313.67']);\nDB::table('sales')->insert(['Codigo' =>'8040780','Precio'=>'313.67','CodigoDeBarra'=>'7798140259985','Pvp'=>'313.67']);\nDB::table('sales')->insert(['Codigo' =>'8025515','Precio'=>'308.22','CodigoDeBarra'=>'7798140252047','Pvp'=>'308.22']);\nDB::table('sales')->insert(['Codigo' =>'8027625','Precio'=>'619.41','CodigoDeBarra'=>'7798140252351','Pvp'=>'619.41']);\nDB::table('sales')->insert(['Codigo' =>'8034303','Precio'=>'417.70','CodigoDeBarra'=>'7798140258254','Pvp'=>'417.70']);\nDB::table('sales')->insert(['Codigo' =>'8034302','Precio'=>'405.70','CodigoDeBarra'=>'7798140258261','Pvp'=>'405.70']);\nDB::table('sales')->insert(['Codigo' =>'8020533','Precio'=>'477.41','CodigoDeBarra'=>'7798140250371','Pvp'=>'477.41']);\nDB::table('sales')->insert(['Codigo' =>'8038840','Precio'=>'242.52','CodigoDeBarra'=>'7798140259404','Pvp'=>'242.52']);\nDB::table('sales')->insert(['Codigo' =>'8032548','Precio'=>'496.51','CodigoDeBarra'=>'7798140258230','Pvp'=>'496.51']);\nDB::table('sales')->insert(['Codigo' =>'8037849','Precio'=>'223.98','CodigoDeBarra'=>'7798140259565','Pvp'=>'223.98']);\nDB::table('sales')->insert(['Codigo' =>'8012856','Precio'=>'496.51','CodigoDeBarra'=>'650240006753','Pvp'=>'496.51']);\nDB::table('sales')->insert(['Codigo' =>'8041097','Precio'=>'701.78','CodigoDeBarra'=>'7798140253310','Pvp'=>'701.78']);\nDB::table('sales')->insert(['Codigo' =>'8014644','Precio'=>'258.18','CodigoDeBarra'=>'7798140252320','Pvp'=>'258.18']);\nDB::table('sales')->insert(['Codigo' =>'8014643','Precio'=>'258.18','CodigoDeBarra'=>'7798140252337','Pvp'=>'258.18']);\nDB::table('sales')->insert(['Codigo' =>'8011177','Precio'=>'592.17','CodigoDeBarra'=>'650240003196','Pvp'=>'592.17']);\nDB::table('sales')->insert(['Codigo' =>'8024902','Precio'=>'284.64','CodigoDeBarra'=>'7798140252122','Pvp'=>'284.64']);\nDB::table('sales')->insert(['Codigo' =>'8014645','Precio'=>'258.18','CodigoDeBarra'=>'7798140252313','Pvp'=>'258.18']);\nDB::table('sales')->insert(['Codigo' =>'8031179','Precio'=>'575.25','CodigoDeBarra'=>'7798140253198','Pvp'=>'575.25']);\nDB::table('sales')->insert(['Codigo' =>'8009679','Precio'=>'212.91','CodigoDeBarra'=>'650240003974','Pvp'=>'212.91']);\nDB::table('sales')->insert(['Codigo' =>'8008710','Precio'=>'284.36','CodigoDeBarra'=>'650240001864','Pvp'=>'284.36']);\nDB::table('sales')->insert(['Codigo' =>'8037580','Precio'=>'299.13','CodigoDeBarra'=>'7798140259107','Pvp'=>'299.13']);\nDB::table('sales')->insert(['Codigo' =>'8037581','Precio'=>'410.06','CodigoDeBarra'=>'7798140259114','Pvp'=>'410.06']);\nDB::table('sales')->insert(['Codigo' =>'8038839','Precio'=>'835.65','CodigoDeBarra'=>'7798140259381','Pvp'=>'835.65']);\nDB::table('sales')->insert(['Codigo' =>'8038838','Precio'=>'835.65','CodigoDeBarra'=>'7798140259398','Pvp'=>'835.65']);\nDB::table('sales')->insert(['Codigo' =>'8012357','Precio'=>'819.20','CodigoDeBarra'=>'650240004209','Pvp'=>'819.20']);\nDB::table('sales')->insert(['Codigo' =>'8025783','Precio'=>'423.43','CodigoDeBarra'=>'7798140252399','Pvp'=>'423.43']);\nDB::table('sales')->insert(['Codigo' =>'8033181','Precio'=>'328.13','CodigoDeBarra'=>'7798140258438','Pvp'=>'328.13']);\nDB::table('sales')->insert(['Codigo' =>'8028809','Precio'=>'500.41','CodigoDeBarra'=>'7798140253075','Pvp'=>'500.41']);\nDB::table('sales')->insert(['Codigo' =>'8036428','Precio'=>'355.80','CodigoDeBarra'=>'7798140259138','Pvp'=>'355.80']);\nDB::table('sales')->insert(['Codigo' =>'8041025','Precio'=>'570.32','CodigoDeBarra'=>'7798140253433','Pvp'=>'570.32']);\nDB::table('sales')->insert(['Codigo' =>'8041019','Precio'=>'570.32','CodigoDeBarra'=>'7798140253440','Pvp'=>'570.32']);\nDB::table('sales')->insert(['Codigo' =>'8039708','Precio'=>'570.32','CodigoDeBarra'=>'7798140259800','Pvp'=>'570.32']);\nDB::table('sales')->insert(['Codigo' =>'8023740','Precio'=>'468.97','CodigoDeBarra'=>'7798140251651','Pvp'=>'468.97']);\nDB::table('sales')->insert(['Codigo' =>'8032930','Precio'=>'720.84','CodigoDeBarra'=>'7798140258247','Pvp'=>'720.84']);\nDB::table('sales')->insert(['Codigo' =>'8037336','Precio'=>'96.53','CodigoDeBarra'=>'7798140259374','Pvp'=>'96.53']);\nDB::table('sales')->insert(['Codigo' =>'8041380','Precio'=>'100.21','CodigoDeBarra'=>'7798140253396','Pvp'=>'100.21']);\nDB::table('sales')->insert(['Codigo' =>'8030924','Precio'=>'172.53','CodigoDeBarra'=>'7798140252740','Pvp'=>'172.53']);\nDB::table('sales')->insert(['Codigo' =>'341298','Precio'=>'535.75','CodigoDeBarra'=>'7791763000132','Pvp'=>'535.75']);\nDB::table('sales')->insert(['Codigo' =>'8020335','Precio'=>'689.80','CodigoDeBarra'=>'7798021110657','Pvp'=>'689.80']);\nDB::table('sales')->insert(['Codigo' =>'8030178','Precio'=>'1872.42','CodigoDeBarra'=>'7798180920166','Pvp'=>'1872.42']);\nDB::table('sales')->insert(['Codigo' =>'3678221','Precio'=>'3308.62','CodigoDeBarra'=>'7798006871832','Pvp'=>'3308.62']);\nDB::table('sales')->insert(['Codigo' =>'8006824','Precio'=>'3208.67','CodigoDeBarra'=>'7798006871825','Pvp'=>'3208.67']);\nDB::table('sales')->insert(['Codigo' =>'3680282','Precio'=>'2733.05','CodigoDeBarra'=>'7798006871818','Pvp'=>'2733.05']);\nDB::table('sales')->insert(['Codigo' =>'6390001','Precio'=>'1308.24','CodigoDeBarra'=>'7798180920173','Pvp'=>'1308.24']);\nDB::table('sales')->insert(['Codigo' =>'8001560','Precio'=>'835.77','CodigoDeBarra'=>'7795367000864','Pvp'=>'835.77']);\nDB::table('sales')->insert(['Codigo' =>'8006931','Precio'=>'788.11','CodigoDeBarra'=>'7791829009826','Pvp'=>'788.11']);\nDB::table('sales')->insert(['Codigo' =>'5368133','Precio'=>'1894.30','CodigoDeBarra'=>'7791829018361','Pvp'=>'1894.30']);\nDB::table('sales')->insert(['Codigo' =>'8031149','Precio'=>'59776.47','CodigoDeBarra'=>'7793397051580','Pvp'=>'59776.47']);\nDB::table('sales')->insert(['Codigo' =>'8030104','Precio'=>'29887.90','CodigoDeBarra'=>'7793397051573','Pvp'=>'29887.90']);\nDB::table('sales')->insert(['Codigo' =>'8042863','Precio'=>'50.50','CodigoDeBarra'=>'7791290012226','Pvp'=>'50.50']);\nDB::table('sales')->insert(['Codigo' =>'8042646','Precio'=>'50.50','CodigoDeBarra'=>'7791290012189','Pvp'=>'50.50']);\nDB::table('sales')->insert(['Codigo' =>'8042864','Precio'=>'96.81','CodigoDeBarra'=>'7791290786479','Pvp'=>'96.81']);\nDB::table('sales')->insert(['Codigo' =>'8042642','Precio'=>'50.50','CodigoDeBarra'=>'7791290012158','Pvp'=>'50.50']);\nDB::table('sales')->insert(['Codigo' =>'8042647','Precio'=>'57.98','CodigoDeBarra'=>'7791290787568','Pvp'=>'57.98']);\nDB::table('sales')->insert(['Codigo' =>'8042867','Precio'=>'100.68','CodigoDeBarra'=>'7791290787575','Pvp'=>'100.68']);\nDB::table('sales')->insert(['Codigo' =>'8042866','Precio'=>'96.84','CodigoDeBarra'=>'7791290786493','Pvp'=>'96.84']);\nDB::table('sales')->insert(['Codigo' =>'4063491','Precio'=>'574.38','CodigoDeBarra'=>'7795348002382','Pvp'=>'574.38']);\nDB::table('sales')->insert(['Codigo' =>'6246133','Precio'=>'1206.41','CodigoDeBarra'=>'7795336003339','Pvp'=>'1206.41']);\nDB::table('sales')->insert(['Codigo' =>'6246132','Precio'=>'587.79','CodigoDeBarra'=>'7795336003322','Pvp'=>'587.79']);\nDB::table('sales')->insert(['Codigo' =>'5527001','Precio'=>'245799.61','CodigoDeBarra'=>'7796285110062','Pvp'=>'245799.61']);\nDB::table('sales')->insert(['Codigo' =>'3706011','Precio'=>'876.49','CodigoDeBarra'=>'7798035310111','Pvp'=>'876.49']);\nDB::table('sales')->insert(['Codigo' =>'3939421','Precio'=>'359.97','CodigoDeBarra'=>'7795336061216','Pvp'=>'359.97']);\nDB::table('sales')->insert(['Codigo' =>'3939422','Precio'=>'666.62','CodigoDeBarra'=>'7795336061223','Pvp'=>'666.62']);\nDB::table('sales')->insert(['Codigo' =>'8007073','Precio'=>'3089.09','CodigoDeBarra'=>'7795356999995','Pvp'=>'3089.09']);\nDB::table('sales')->insert(['Codigo' =>'8007130','Precio'=>'1258.19','CodigoDeBarra'=>'7791829008089','Pvp'=>'1258.19']);\nDB::table('sales')->insert(['Codigo' =>'6370392','Precio'=>'1831.66','CodigoDeBarra'=>'7798260150162','Pvp'=>'1831.66']);\nDB::table('sales')->insert(['Codigo' =>'8006843','Precio'=>'1084.63','CodigoDeBarra'=>'7796035472969','Pvp'=>'1084.63']);\nDB::table('sales')->insert(['Codigo' =>'4471291','Precio'=>'313.47','CodigoDeBarra'=>'7796035472952','Pvp'=>'313.47']);\nDB::table('sales')->insert(['Codigo' =>'6133391','Precio'=>'636.05','CodigoDeBarra'=>'7793569003584','Pvp'=>'636.05']);\nDB::table('sales')->insert(['Codigo' =>'5366681','Precio'=>'1288.49','CodigoDeBarra'=>'7798088120064','Pvp'=>'1288.49']);\nDB::table('sales')->insert(['Codigo' =>'8007131','Precio'=>'817.02','CodigoDeBarra'=>'7791829008102','Pvp'=>'817.02']);\nDB::table('sales')->insert(['Codigo' =>'3577581','Precio'=>'697.07','CodigoDeBarra'=>'7793397050149','Pvp'=>'697.07']);\nDB::table('sales')->insert(['Codigo' =>'3577583','Precio'=>'1059.21','CodigoDeBarra'=>'7793397050163','Pvp'=>'1059.21']);\nDB::table('sales')->insert(['Codigo' =>'611655','Precio'=>'6650.72','CodigoDeBarra'=>'7798035310821','Pvp'=>'6650.72']);\nDB::table('sales')->insert(['Codigo' =>'8034457','Precio'=>'506.81','CodigoDeBarra'=>'7798122341233','Pvp'=>'506.81']);\nDB::table('sales')->insert(['Codigo' =>'8001199','Precio'=>'416.71','CodigoDeBarra'=>'7798122340281','Pvp'=>'416.71']);\nDB::table('sales')->insert(['Codigo' =>'8013673','Precio'=>'917.89','CodigoDeBarra'=>'7798122340632','Pvp'=>'917.89']);\nDB::table('sales')->insert(['Codigo' =>'4109861','Precio'=>'481.24','CodigoDeBarra'=>'7795367000932','Pvp'=>'481.24']);\nDB::table('sales')->insert(['Codigo' =>'8006809','Precio'=>'865.80','CodigoDeBarra'=>'7795367000963','Pvp'=>'865.80']);\nDB::table('sales')->insert(['Codigo' =>'8001835','Precio'=>'208.02','CodigoDeBarra'=>'7791829009734','Pvp'=>'208.02']);\nDB::table('sales')->insert(['Codigo' =>'5339421','Precio'=>'483.56','CodigoDeBarra'=>'7791829009758','Pvp'=>'483.56']);\nDB::table('sales')->insert(['Codigo' =>'630884','Precio'=>'34369.65','CodigoDeBarra'=>'7792183002171','Pvp'=>'34369.65']);\nDB::table('sales')->insert(['Codigo' =>'630897','Precio'=>'99151.31','CodigoDeBarra'=>'7792183002188','Pvp'=>'99151.31']);\nDB::table('sales')->insert(['Codigo' =>'5516391','Precio'=>'279.69','CodigoDeBarra'=>'7795378003434','Pvp'=>'279.69']);\nDB::table('sales')->insert(['Codigo' =>'5516421','Precio'=>'541.26','CodigoDeBarra'=>'7795378003427','Pvp'=>'541.26']);\nDB::table('sales')->insert(['Codigo' =>'5516261','Precio'=>'400.14','CodigoDeBarra'=>'7795378003465','Pvp'=>'400.14']);\nDB::table('sales')->insert(['Codigo' =>'5516263','Precio'=>'667.82','CodigoDeBarra'=>'7795378003472','Pvp'=>'667.82']);\nDB::table('sales')->insert(['Codigo' =>'6555422','Precio'=>'986.19','CodigoDeBarra'=>'7795378005872','Pvp'=>'986.19']);\nDB::table('sales')->insert(['Codigo' =>'6555421','Precio'=>'494.12','CodigoDeBarra'=>'7795378005865','Pvp'=>'494.12']);\nDB::table('sales')->insert(['Codigo' =>'5516551','Precio'=>'191.47','CodigoDeBarra'=>'7795378003441','Pvp'=>'191.47']);\nDB::table('sales')->insert(['Codigo' =>'5516553','Precio'=>'375.39','CodigoDeBarra'=>'7795378003458','Pvp'=>'375.39']);\nDB::table('sales')->insert(['Codigo' =>'6155131','Precio'=>'503.66','CodigoDeBarra'=>'7795371000539','Pvp'=>'503.66']);\nDB::table('sales')->insert(['Codigo' =>'4478980','Precio'=>'0.00','CodigoDeBarra'=>'7795336085304','Pvp'=>'0.00']);\nDB::table('sales')->insert(['Codigo' =>'5112191','Precio'=>'476.44','CodigoDeBarra'=>'7795336291071','Pvp'=>'476.44']);\nDB::table('sales')->insert(['Codigo' =>'8006711','Precio'=>'714.44','CodigoDeBarra'=>'7795336085007','Pvp'=>'714.44']);\nDB::table('sales')->insert(['Codigo' =>'4479053','Precio'=>'579.76','CodigoDeBarra'=>'7795336085229','Pvp'=>'579.76']);\nDB::table('sales')->insert(['Codigo' =>'4479051','Precio'=>'338.56','CodigoDeBarra'=>'7795336085205','Pvp'=>'338.56']);\nDB::table('sales')->insert(['Codigo' =>'6172001','Precio'=>'166.29','CodigoDeBarra'=>'7795336000475','Pvp'=>'166.29']);\nDB::table('sales')->insert(['Codigo' =>'6172002','Precio'=>'324.02','CodigoDeBarra'=>'7795336000468','Pvp'=>'324.02']);\nDB::table('sales')->insert(['Codigo' =>'4008120','Precio'=>'431.74','CodigoDeBarra'=>'7795336068406','Pvp'=>'431.74']);\nDB::table('sales')->insert(['Codigo' =>'8001771','Precio'=>'41.39','CodigoDeBarra'=>'7795336068000','Pvp'=>'41.39']);\nDB::table('sales')->insert(['Codigo' =>'6249970','Precio'=>'143832.61','CodigoDeBarra'=>'7798021440228','Pvp'=>'143832.61']);\nDB::table('sales')->insert(['Codigo' =>'6250000','Precio'=>'97178.71','CodigoDeBarra'=>'7798021440235','Pvp'=>'97178.71']);\nDB::table('sales')->insert(['Codigo' =>'3117462','Precio'=>'454.25','CodigoDeBarra'=>'7795380042162','Pvp'=>'454.25']);\nDB::table('sales')->insert(['Codigo' =>'6040551','Precio'=>'48410.12','CodigoDeBarra'=>'7798084682832','Pvp'=>'48410.12']);\nDB::table('sales')->insert(['Codigo' =>'6040552','Precio'=>'149748.14','CodigoDeBarra'=>'7798084682849','Pvp'=>'149748.14']);\nDB::table('sales')->insert(['Codigo' =>'5699713','Precio'=>'1312.47','CodigoDeBarra'=>'7795336000437','Pvp'=>'1312.47']);\nDB::table('sales')->insert(['Codigo' =>'5699712','Precio'=>'971.12','CodigoDeBarra'=>'7795336292511','Pvp'=>'971.12']);\nDB::table('sales')->insert(['Codigo' =>'8027584','Precio'=>'65.75','CodigoDeBarra'=>'7791293034553','Pvp'=>'65.75']);\nDB::table('sales')->insert(['Codigo' =>'8027583','Precio'=>'65.75','CodigoDeBarra'=>'7791293034546','Pvp'=>'65.75']);\nDB::table('sales')->insert(['Codigo' =>'8027582','Precio'=>'65.75','CodigoDeBarra'=>'7791293034539','Pvp'=>'65.75']);\nDB::table('sales')->insert(['Codigo' =>'8027579','Precio'=>'94.74','CodigoDeBarra'=>'7791293034485','Pvp'=>'94.74']);\nDB::table('sales')->insert(['Codigo' =>'8027581','Precio'=>'65.75','CodigoDeBarra'=>'7791293034522','Pvp'=>'65.75']);\nDB::table('sales')->insert(['Codigo' =>'8034849','Precio'=>'164.60','CodigoDeBarra'=>'7891024019610','Pvp'=>'164.60']);\nDB::table('sales')->insert(['Codigo' =>'8036329','Precio'=>'78.83','CodigoDeBarra'=>'7891024034590','Pvp'=>'78.83']);\nDB::table('sales')->insert(['Codigo' =>'8026153','Precio'=>'58.60','CodigoDeBarra'=>'7509546068558','Pvp'=>'58.60']);\nDB::table('sales')->insert(['Codigo' =>'8014146','Precio'=>'98.44','CodigoDeBarra'=>'7702010631207','Pvp'=>'98.44']);\nDB::table('sales')->insert(['Codigo' =>'8026151','Precio'=>'56.45','CodigoDeBarra'=>'7509546066776','Pvp'=>'56.45']);\nDB::table('sales')->insert(['Codigo' =>'8030114','Precio'=>'147.94','CodigoDeBarra'=>'7509546066486','Pvp'=>'147.94']);\nDB::table('sales')->insert(['Codigo' =>'8033431','Precio'=>'225.25','CodigoDeBarra'=>'7891024005064','Pvp'=>'225.25']);\nDB::table('sales')->insert(['Codigo' =>'8015555','Precio'=>'152.41','CodigoDeBarra'=>'7891024123027','Pvp'=>'152.41']);\nDB::table('sales')->insert(['Codigo' =>'8040047','Precio'=>'42.26','CodigoDeBarra'=>'6920354824388','Pvp'=>'42.26']);\nDB::table('sales')->insert(['Codigo' =>'8034850','Precio'=>'169.96','CodigoDeBarra'=>'7793100130243','Pvp'=>'169.96']);\nDB::table('sales')->insert(['Codigo' =>'8020592','Precio'=>'143.94','CodigoDeBarra'=>'7891024100431','Pvp'=>'143.94']);\nDB::table('sales')->insert(['Codigo' =>'8019581','Precio'=>'104.89','CodigoDeBarra'=>'7891024123744','Pvp'=>'104.89']);\nDB::table('sales')->insert(['Codigo' =>'8013459','Precio'=>'244.70','CodigoDeBarra'=>'7891024124628','Pvp'=>'244.70']);\nDB::table('sales')->insert(['Codigo' =>'8012988','Precio'=>'244.70','CodigoDeBarra'=>'7891024132647','Pvp'=>'244.70']);\nDB::table('sales')->insert(['Codigo' =>'6030256','Precio'=>'138.06','CodigoDeBarra'=>'7793100111761','Pvp'=>'138.06']);\nDB::table('sales')->insert(['Codigo' =>'8043401','Precio'=>'138.06','CodigoDeBarra'=>'7509546654034','Pvp'=>'138.06']);\nDB::table('sales')->insert(['Codigo' =>'8038719','Precio'=>'138.06','CodigoDeBarra'=>'7891024135020','Pvp'=>'138.06']);\nDB::table('sales')->insert(['Codigo' =>'8022562','Precio'=>'108.83','CodigoDeBarra'=>'7891024135358','Pvp'=>'108.83']);\nDB::table('sales')->insert(['Codigo' =>'8033811','Precio'=>'103.34','CodigoDeBarra'=>'7891024028834','Pvp'=>'103.34']);\nDB::table('sales')->insert(['Codigo' =>'8006793','Precio'=>'2282.51','CodigoDeBarra'=>'7793397050378','Pvp'=>'2282.51']);\nDB::table('sales')->insert(['Codigo' =>'5537131','Precio'=>'655.25','CodigoDeBarra'=>'7795336291927','Pvp'=>'655.25']);\nDB::table('sales')->insert(['Codigo' =>'5751551','Precio'=>'484.10','CodigoDeBarra'=>'7798051851704','Pvp'=>'484.10']);\nDB::table('sales')->insert(['Codigo' =>'8042623','Precio'=>'134.82','CodigoDeBarra'=>'7791290788183','Pvp'=>'134.82']);\nDB::table('sales')->insert(['Codigo' =>'8042852','Precio'=>'134.82','CodigoDeBarra'=>'7791290788268','Pvp'=>'134.82']);\nDB::table('sales')->insert(['Codigo' =>'8042851','Precio'=>'134.82','CodigoDeBarra'=>'7791290788220','Pvp'=>'134.82']);\nDB::table('sales')->insert(['Codigo' =>'8042624','Precio'=>'114.16','CodigoDeBarra'=>'7791290010444','Pvp'=>'114.16']);\nDB::table('sales')->insert(['Codigo' =>'637642','Precio'=>'45523.51','CodigoDeBarra'=>'7792183002539','Pvp'=>'45523.51']);\nDB::table('sales')->insert(['Codigo' =>'4736292','Precio'=>'1265.86','CodigoDeBarra'=>'7798260150308','Pvp'=>'1265.86']);\nDB::table('sales')->insert(['Codigo' =>'4736293','Precio'=>'2061.95','CodigoDeBarra'=>'7798260150315','Pvp'=>'2061.95']);\nDB::table('sales')->insert(['Codigo' =>'6299131','Precio'=>'72859.18','CodigoDeBarra'=>'7795326004209','Pvp'=>'72859.18']);\nDB::table('sales')->insert(['Codigo' =>'8009871','Precio'=>'65069.75','CodigoDeBarra'=>'7795326000232','Pvp'=>'65069.75']);\nDB::table('sales')->insert(['Codigo' =>'8038114','Precio'=>'622.96','CodigoDeBarra'=>'7798113693228','Pvp'=>'622.96']);\nDB::table('sales')->insert(['Codigo' =>'4443492','Precio'=>'153.43','CodigoDeBarra'=>'7798113691347','Pvp'=>'153.43']);\nDB::table('sales')->insert(['Codigo' =>'2127463','Precio'=>'176.80','CodigoDeBarra'=>'7795378001652','Pvp'=>'176.80']);\nDB::table('sales')->insert(['Codigo' =>'2127702','Precio'=>'288.27','CodigoDeBarra'=>'7795378000495','Pvp'=>'288.27']);\nDB::table('sales')->insert(['Codigo' =>'8029070','Precio'=>'48393.75','CodigoDeBarra'=>'7795306393675','Pvp'=>'48393.75']);\nDB::table('sales')->insert(['Codigo' =>'8024835','Precio'=>'96787.53','CodigoDeBarra'=>'7795306318036','Pvp'=>'96787.53']);\nDB::table('sales')->insert(['Codigo' =>'677291','Precio'=>'28344.50','CodigoDeBarra'=>'7798021443526','Pvp'=>'28344.50']);\nDB::table('sales')->insert(['Codigo' =>'4468581','Precio'=>'1504.85','CodigoDeBarra'=>'7798299850118','Pvp'=>'1504.85']);\nDB::table('sales')->insert(['Codigo' =>'641439','Precio'=>'244117.40','CodigoDeBarra'=>'7792371060013','Pvp'=>'244117.40']);\nDB::table('sales')->insert(['Codigo' =>'4033407','Precio'=>'797.16','CodigoDeBarra'=>'7798038280237','Pvp'=>'797.16']);\nDB::table('sales')->insert(['Codigo' =>'6406551','Precio'=>'347.82','CodigoDeBarra'=>'7791171001431','Pvp'=>'347.82']);\nDB::table('sales')->insert(['Codigo' =>'6406392','Precio'=>'827.81','CodigoDeBarra'=>'7791171001400','Pvp'=>'827.81']);\nDB::table('sales')->insert(['Codigo' =>'6406422','Precio'=>'655.00','CodigoDeBarra'=>'7791171001417','Pvp'=>'655.00']);\nDB::table('sales')->insert(['Codigo' =>'6406424','Precio'=>'1036.05','CodigoDeBarra'=>'7791171001424','Pvp'=>'1036.05']);\nDB::table('sales')->insert(['Codigo' =>'8038665','Precio'=>'154.57','CodigoDeBarra'=>'37000956648','Pvp'=>'154.57']);\nDB::table('sales')->insert(['Codigo' =>'8038666','Precio'=>'154.57','CodigoDeBarra'=>'37000956662','Pvp'=>'154.57']);\nDB::table('sales')->insert(['Codigo' =>'8042837','Precio'=>'219.53','CodigoDeBarra'=>'37000852261','Pvp'=>'219.53']);\nDB::table('sales')->insert(['Codigo' =>'8042838','Precio'=>'225.24','CodigoDeBarra'=>'37000852179','Pvp'=>'225.24']);\nDB::table('sales')->insert(['Codigo' =>'8042839','Precio'=>'225.24','CodigoDeBarra'=>'37000851936','Pvp'=>'225.24']);\nDB::table('sales')->insert(['Codigo' =>'4619052','Precio'=>'3507.52','CodigoDeBarra'=>'7730949048087','Pvp'=>'3507.52']);\nDB::table('sales')->insert(['Codigo' =>'8000176','Precio'=>'401.13','CodigoDeBarra'=>'7798034742708','Pvp'=>'401.13']);\nDB::table('sales')->insert(['Codigo' =>'8007050','Precio'=>'4480.18','CodigoDeBarra'=>'7793397473160','Pvp'=>'4480.18']);\nDB::table('sales')->insert(['Codigo' =>'4399361','Precio'=>'1070.14','CodigoDeBarra'=>'7795367546836','Pvp'=>'1070.14']);\nDB::table('sales')->insert(['Codigo' =>'4399441','Precio'=>'778.16','CodigoDeBarra'=>'7795367001595','Pvp'=>'778.16']);\nDB::table('sales')->insert(['Codigo' =>'8006796','Precio'=>'2160.35','CodigoDeBarra'=>'7793397473382','Pvp'=>'2160.35']);\nDB::table('sales')->insert(['Codigo' =>'3367861','Precio'=>'347.56','CodigoDeBarra'=>'7795378000532','Pvp'=>'347.56']);\nDB::table('sales')->insert(['Codigo' =>'8028021','Precio'=>'9542.40','CodigoDeBarra'=>'7791171001264','Pvp'=>'9542.40']);\nDB::table('sales')->insert(['Codigo' =>'5588841','Precio'=>'4783.34','CodigoDeBarra'=>'7793081000146','Pvp'=>'4783.34']);\nDB::table('sales')->insert(['Codigo' =>'5432421','Precio'=>'341.60','CodigoDeBarra'=>'7792175008235','Pvp'=>'341.60']);\nDB::table('sales')->insert(['Codigo' =>'8042055','Precio'=>'383.28','CodigoDeBarra'=>'7798122341431','Pvp'=>'383.28']);\nDB::table('sales')->insert(['Codigo' =>'8032227','Precio'=>'76781.22','CodigoDeBarra'=>'7795990000941','Pvp'=>'76781.22']);\nDB::table('sales')->insert(['Codigo' =>'8032229','Precio'=>'383907.02','CodigoDeBarra'=>'7795990000965','Pvp'=>'383907.02']);\nDB::table('sales')->insert(['Codigo' =>'8019291','Precio'=>'7990.65','CodigoDeBarra'=>'7798122340601','Pvp'=>'7990.65']);\nDB::table('sales')->insert(['Codigo' =>'548000','Precio'=>'960.02','CodigoDeBarra'=>'7798035314003','Pvp'=>'960.02']);\nDB::table('sales')->insert(['Codigo' =>'5691711','Precio'=>'127923.66','CodigoDeBarra'=>'7795314023472','Pvp'=>'127923.66']);\nDB::table('sales')->insert(['Codigo' =>'8006905','Precio'=>'10305.51','CodigoDeBarra'=>'7798083950840','Pvp'=>'10305.51']);\nDB::table('sales')->insert(['Codigo' =>'8006914','Precio'=>'5152.75','CodigoDeBarra'=>'7798083950833','Pvp'=>'5152.75']);\nDB::table('sales')->insert(['Codigo' =>'6342681','Precio'=>'387888.84','CodigoDeBarra'=>'7798008272064','Pvp'=>'387888.84']);\nDB::table('sales')->insert(['Codigo' =>'6342711','Precio'=>'387888.84','CodigoDeBarra'=>'7798008272071','Pvp'=>'387888.84']);\nDB::table('sales')->insert(['Codigo' =>'8027825','Precio'=>'4702.46','CodigoDeBarra'=>'7793397090251','Pvp'=>'4702.46']);\nDB::table('sales')->insert(['Codigo' =>'8027826','Precio'=>'9406.50','CodigoDeBarra'=>'7793397090268','Pvp'=>'9406.50']);\nDB::table('sales')->insert(['Codigo' =>'8001704','Precio'=>'1537.13','CodigoDeBarra'=>'7798061750035','Pvp'=>'1537.13']);\nDB::table('sales')->insert(['Codigo' =>'4652121','Precio'=>'1742.35','CodigoDeBarra'=>'7798061750240','Pvp'=>'1742.35']);\nDB::table('sales')->insert(['Codigo' =>'8040592','Precio'=>'2250.01','CodigoDeBarra'=>'7796285279929','Pvp'=>'2250.01']);\nDB::table('sales')->insert(['Codigo' =>'631913','Precio'=>'119950.42','CodigoDeBarra'=>'7798021440303','Pvp'=>'119950.42']);\nDB::table('sales')->insert(['Codigo' =>'8031259','Precio'=>'119950.42','CodigoDeBarra'=>'7798021440310','Pvp'=>'119950.42']);\nDB::table('sales')->insert(['Codigo' =>'6187683','Precio'=>'993.76','CodigoDeBarra'=>'7791171101858','Pvp'=>'993.76']);\nDB::table('sales')->insert(['Codigo' =>'6187553','Precio'=>'717.39','CodigoDeBarra'=>'7791171101834','Pvp'=>'717.39']);\nDB::table('sales')->insert(['Codigo' =>'9998271','Precio'=>'323.99','CodigoDeBarra'=>'7791763000750','Pvp'=>'323.99']);\nDB::table('sales')->insert(['Codigo' =>'6465551','Precio'=>'36205.03','CodigoDeBarra'=>'7795314170817','Pvp'=>'36205.03']);\nDB::table('sales')->insert(['Codigo' =>'6465552','Precio'=>'139922.53','CodigoDeBarra'=>'7795314170824','Pvp'=>'139922.53']);\nDB::table('sales')->insert(['Codigo' =>'8043172','Precio'=>'9104.62','CodigoDeBarra'=>'7797416013214','Pvp'=>'9104.62']);\nDB::table('sales')->insert(['Codigo' =>'8043173','Precio'=>'11314.62','CodigoDeBarra'=>'7797416013207','Pvp'=>'11314.62']);\nDB::table('sales')->insert(['Codigo' =>'6186712','Precio'=>'123857.30','CodigoDeBarra'=>'7791829000809','Pvp'=>'123857.30']);\nDB::table('sales')->insert(['Codigo' =>'6358131','Precio'=>'15926.62','CodigoDeBarra'=>'7798084684874','Pvp'=>'15926.62']);\nDB::table('sales')->insert(['Codigo' =>'6358132','Precio'=>'31853.24','CodigoDeBarra'=>'7798084684881','Pvp'=>'31853.24']);\nDB::table('sales')->insert(['Codigo' =>'625226','Precio'=>'4832.64','CodigoDeBarra'=>'7793569004925','Pvp'=>'4832.64']);\nDB::table('sales')->insert(['Codigo' =>'625239','Precio'=>'2639.22','CodigoDeBarra'=>'7793569004932','Pvp'=>'2639.22']);\nDB::table('sales')->insert(['Codigo' =>'8043174','Precio'=>'3364.84','CodigoDeBarra'=>'7798180921743','Pvp'=>'3364.84']);\nDB::table('sales')->insert(['Codigo' =>'3766831','Precio'=>'18622.29','CodigoDeBarra'=>'7798084683433','Pvp'=>'18622.29']);\nDB::table('sales')->insert(['Codigo' =>'4544131','Precio'=>'50280.38','CodigoDeBarra'=>'7798084683440','Pvp'=>'50280.38']);\nDB::table('sales')->insert(['Codigo' =>'5868711','Precio'=>'973.75','CodigoDeBarra'=>'7798122341066','Pvp'=>'973.75']);\nDB::table('sales')->insert(['Codigo' =>'8034615','Precio'=>'5530.89','CodigoDeBarra'=>'7793397051795','Pvp'=>'5530.89']);\nDB::table('sales')->insert(['Codigo' =>'8034616','Precio'=>'10786.02','CodigoDeBarra'=>'7793397051801','Pvp'=>'10786.02']);\nDB::table('sales')->insert(['Codigo' =>'8034617','Precio'=>'19254.73','CodigoDeBarra'=>'7793397051818','Pvp'=>'19254.73']);\nDB::table('sales')->insert(['Codigo' =>'3054182','Precio'=>'259.81','CodigoDeBarra'=>'7795347920533','Pvp'=>'259.81']);\nDB::table('sales')->insert(['Codigo' =>'3054261','Precio'=>'214.33','CodigoDeBarra'=>'7795347972716','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'9999306','Precio'=>'107.72','CodigoDeBarra'=>'7792175008174','Pvp'=>'107.72']);\nDB::table('sales')->insert(['Codigo' =>'8000047','Precio'=>'193.03','CodigoDeBarra'=>'7792175008297','Pvp'=>'193.03']);\nDB::table('sales')->insert(['Codigo' =>'9999307','Precio'=>'264.49','CodigoDeBarra'=>'7792175008181','Pvp'=>'264.49']);\nDB::table('sales')->insert(['Codigo' =>'9998848','Precio'=>'107.72','CodigoDeBarra'=>'7792175007702','Pvp'=>'107.72']);\nDB::table('sales')->insert(['Codigo' =>'8000046','Precio'=>'193.03','CodigoDeBarra'=>'7792175008280','Pvp'=>'193.03']);\nDB::table('sales')->insert(['Codigo' =>'9997716','Precio'=>'264.49','CodigoDeBarra'=>'7792175001762','Pvp'=>'264.49']);\nDB::table('sales')->insert(['Codigo' =>'6212711','Precio'=>'222.90','CodigoDeBarra'=>'7795327063830','Pvp'=>'222.90']);\nDB::table('sales')->insert(['Codigo' =>'6212712','Precio'=>'491.17','CodigoDeBarra'=>'7795327063847','Pvp'=>'491.17']);\nDB::table('sales')->insert(['Codigo' =>'5870130','Precio'=>'5286.21','CodigoDeBarra'=>'7793397050927','Pvp'=>'5286.21']);\nDB::table('sales')->insert(['Codigo' =>'9996084','Precio'=>'529.78','CodigoDeBarra'=>'7793742007897','Pvp'=>'529.78']);\nDB::table('sales')->insert(['Codigo' =>'8013774','Precio'=>'561.42','CodigoDeBarra'=>'7793742007637','Pvp'=>'561.42']);\nDB::table('sales')->insert(['Codigo' =>'8000169','Precio'=>'350.72','CodigoDeBarra'=>'7793742005008','Pvp'=>'350.72']);\nDB::table('sales')->insert(['Codigo' =>'8013588','Precio'=>'594.41','CodigoDeBarra'=>'7793742007644','Pvp'=>'594.41']);\nDB::table('sales')->insert(['Codigo' =>'8008168','Precio'=>'211.38','CodigoDeBarra'=>'7793742007910','Pvp'=>'211.38']);\nDB::table('sales')->insert(['Codigo' =>'8041505','Precio'=>'508.24','CodigoDeBarra'=>'7793742007378','Pvp'=>'508.24']);\nDB::table('sales')->insert(['Codigo' =>'9996082','Precio'=>'387.75','CodigoDeBarra'=>'7793742007323','Pvp'=>'387.75']);\nDB::table('sales')->insert(['Codigo' =>'9996083','Precio'=>'499.50','CodigoDeBarra'=>'7793742007569','Pvp'=>'499.50']);\nDB::table('sales')->insert(['Codigo' =>'8019116','Precio'=>'387.75','CodigoDeBarra'=>'7793742007330','Pvp'=>'387.75']);\nDB::table('sales')->insert(['Codigo' =>'8037601','Precio'=>'321.10','CodigoDeBarra'=>'7793742007767','Pvp'=>'321.10']);\nDB::table('sales')->insert(['Codigo' =>'8037602','Precio'=>'463.14','CodigoDeBarra'=>'7793742007774','Pvp'=>'463.14']);\nDB::table('sales')->insert(['Codigo' =>'8037600','Precio'=>'369.57','CodigoDeBarra'=>'7793742007682','Pvp'=>'369.57']);\nDB::table('sales')->insert(['Codigo' =>'8037599','Precio'=>'544.60','CodigoDeBarra'=>'7793742007675','Pvp'=>'544.60']);\nDB::table('sales')->insert(['Codigo' =>'8009741','Precio'=>'562.10','CodigoDeBarra'=>'7793742007606','Pvp'=>'562.10']);\nDB::table('sales')->insert(['Codigo' =>'8015997','Precio'=>'561.42','CodigoDeBarra'=>'7793742002915','Pvp'=>'561.42']);\nDB::table('sales')->insert(['Codigo' =>'8015998','Precio'=>'561.42','CodigoDeBarra'=>'7793742002922','Pvp'=>'561.42']);\nDB::table('sales')->insert(['Codigo' =>'8019004','Precio'=>'371.60','CodigoDeBarra'=>'7793742007590','Pvp'=>'371.60']);\nDB::table('sales')->insert(['Codigo' =>'9996085','Precio'=>'529.78','CodigoDeBarra'=>'7793742007903','Pvp'=>'529.78']);\nDB::table('sales')->insert(['Codigo' =>'8000170','Precio'=>'350.72','CodigoDeBarra'=>'7793742005015','Pvp'=>'350.72']);\nDB::table('sales')->insert(['Codigo' =>'8021700','Precio'=>'350.72','CodigoDeBarra'=>'7793742007934','Pvp'=>'350.72']);\nDB::table('sales')->insert(['Codigo' =>'9996420','Precio'=>'594.41','CodigoDeBarra'=>'7793742007576','Pvp'=>'594.41']);\nDB::table('sales')->insert(['Codigo' =>'8009742','Precio'=>'575.56','CodigoDeBarra'=>'7793742007620','Pvp'=>'575.56']);\nDB::table('sales')->insert(['Codigo' =>'8009740','Precio'=>'350.72','CodigoDeBarra'=>'7793742007583','Pvp'=>'350.72']);\nDB::table('sales')->insert(['Codigo' =>'9996081','Precio'=>'317.74','CodigoDeBarra'=>'7793742007927','Pvp'=>'317.74']);\nDB::table('sales')->insert(['Codigo' =>'8041201','Precio'=>'688.88','CodigoDeBarra'=>'7793742007972','Pvp'=>'688.88']);\nDB::table('sales')->insert(['Codigo' =>'8026699','Precio'=>'446.50','CodigoDeBarra'=>'7509552911992','Pvp'=>'446.50']);\nDB::table('sales')->insert(['Codigo' =>'8026702','Precio'=>'446.50','CodigoDeBarra'=>'7509552912005','Pvp'=>'446.50']);\nDB::table('sales')->insert(['Codigo' =>'8026703','Precio'=>'446.50','CodigoDeBarra'=>'7509552912012','Pvp'=>'446.50']);\nDB::table('sales')->insert(['Codigo' =>'4000022','Precio'=>'394.31','CodigoDeBarra'=>'7791763000088','Pvp'=>'394.31']);\nDB::table('sales')->insert(['Codigo' =>'3733821','Precio'=>'217.30','CodigoDeBarra'=>'7798006300196','Pvp'=>'217.30']);\nDB::table('sales')->insert(['Codigo' =>'6080261','Precio'=>'722.06','CodigoDeBarra'=>'7795347001027','Pvp'=>'722.06']);\nDB::table('sales')->insert(['Codigo' =>'5609131','Precio'=>'580.28','CodigoDeBarra'=>'7795347000563','Pvp'=>'580.28']);\nDB::table('sales')->insert(['Codigo' =>'8039064','Precio'=>'246.04','CodigoDeBarra'=>'7798113693341','Pvp'=>'246.04']);\nDB::table('sales')->insert(['Codigo' =>'6452391','Precio'=>'25285.44','CodigoDeBarra'=>'7792183489569','Pvp'=>'25285.44']);\nDB::table('sales')->insert(['Codigo' =>'8037746','Precio'=>'25285.44','CodigoDeBarra'=>'7792183489576','Pvp'=>'25285.44']);\nDB::table('sales')->insert(['Codigo' =>'6038682','Precio'=>'215.65','CodigoDeBarra'=>'7795336293099','Pvp'=>'215.65']);\nDB::table('sales')->insert(['Codigo' =>'6038681','Precio'=>'120.44','CodigoDeBarra'=>'7795336293082','Pvp'=>'120.44']);\nDB::table('sales')->insert(['Codigo' =>'585342','Precio'=>'21756.40','CodigoDeBarra'=>'7798061751414','Pvp'=>'21756.40']);\nDB::table('sales')->insert(['Codigo' =>'4255471','Precio'=>'445.34','CodigoDeBarra'=>'7795312108546','Pvp'=>'445.34']);\nDB::table('sales')->insert(['Codigo' =>'2689131','Precio'=>'399.96','CodigoDeBarra'=>'7795336229012','Pvp'=>'399.96']);\nDB::table('sales')->insert(['Codigo' =>'4541241','Precio'=>'381.22','CodigoDeBarra'=>'7798069050045','Pvp'=>'381.22']);\nDB::table('sales')->insert(['Codigo' =>'4493651','Precio'=>'420.69','CodigoDeBarra'=>'7795327061560','Pvp'=>'420.69']);\nDB::table('sales')->insert(['Codigo' =>'4493731','Precio'=>'721.17','CodigoDeBarra'=>'7795327061591','Pvp'=>'721.17']);\nDB::table('sales')->insert(['Codigo' =>'4493732','Precio'=>'1738.33','CodigoDeBarra'=>'7795327061607','Pvp'=>'1738.33']);\nDB::table('sales')->insert(['Codigo' =>'6512841','Precio'=>'1424.82','CodigoDeBarra'=>'7795327065223','Pvp'=>'1424.82']);\nDB::table('sales')->insert(['Codigo' =>'8041554','Precio'=>'161.27','CodigoDeBarra'=>'7798140259763','Pvp'=>'161.27']);\nDB::table('sales')->insert(['Codigo' =>'3036601','Precio'=>'377.45','CodigoDeBarra'=>'7896116861948','Pvp'=>'377.45']);\nDB::table('sales')->insert(['Codigo' =>'6111261','Precio'=>'318.56','CodigoDeBarra'=>'7795378001317','Pvp'=>'318.56']);\nDB::table('sales')->insert(['Codigo' =>'6111262','Precio'=>'623.24','CodigoDeBarra'=>'7795378001423','Pvp'=>'623.24']);\nDB::table('sales')->insert(['Codigo' =>'6111391','Precio'=>'414.05','CodigoDeBarra'=>'7795378001430','Pvp'=>'414.05']);\nDB::table('sales')->insert(['Codigo' =>'6111392','Precio'=>'774.38','CodigoDeBarra'=>'7795378001492','Pvp'=>'774.38']);\nDB::table('sales')->insert(['Codigo' =>'6519001','Precio'=>'1042.30','CodigoDeBarra'=>'7795378005742','Pvp'=>'1042.30']);\nDB::table('sales')->insert(['Codigo' =>'6519261','Precio'=>'999.81','CodigoDeBarra'=>'7795378005735','Pvp'=>'999.81']);\nDB::table('sales')->insert(['Codigo' =>'6170391','Precio'=>'641.15','CodigoDeBarra'=>'7795378004899','Pvp'=>'641.15']);\nDB::table('sales')->insert(['Codigo' =>'6170421','Precio'=>'793.54','CodigoDeBarra'=>'7795378004905','Pvp'=>'793.54']);\nDB::table('sales')->insert(['Codigo' =>'6170551','Precio'=>'956.30','CodigoDeBarra'=>'7795378004912','Pvp'=>'956.30']);\nDB::table('sales')->insert(['Codigo' =>'8038319','Precio'=>'965.86','CodigoDeBarra'=>'7795368547412','Pvp'=>'965.86']);\nDB::table('sales')->insert(['Codigo' =>'3743641','Precio'=>'113.81','CodigoDeBarra'=>'7795371458743','Pvp'=>'113.81']);\nDB::table('sales')->insert(['Codigo' =>'3743726','Precio'=>'143.50','CodigoDeBarra'=>'7795371458781','Pvp'=>'143.50']);\nDB::table('sales')->insert(['Codigo' =>'3743721','Precio'=>'237.51','CodigoDeBarra'=>'7795371000089','Pvp'=>'237.51']);\nDB::table('sales')->insert(['Codigo' =>'3743722','Precio'=>'395.86','CodigoDeBarra'=>'7795371000096','Pvp'=>'395.86']);\nDB::table('sales')->insert(['Codigo' =>'3743803','Precio'=>'153.39','CodigoDeBarra'=>'7795371459269','Pvp'=>'153.39']);\nDB::table('sales')->insert(['Codigo' =>'3743981','Precio'=>'153.75','CodigoDeBarra'=>'7795371458675','Pvp'=>'153.75']);\nDB::table('sales')->insert(['Codigo' =>'4195403','Precio'=>'148.45','CodigoDeBarra'=>'7795371458958','Pvp'=>'148.45']);\nDB::table('sales')->insert(['Codigo' =>'4195401','Precio'=>'273.04','CodigoDeBarra'=>'7795371458187','Pvp'=>'273.04']);\nDB::table('sales')->insert(['Codigo' =>'4195402','Precio'=>'503.66','CodigoDeBarra'=>'7795371458194','Pvp'=>'503.66']);\nDB::table('sales')->insert(['Codigo' =>'6338711','Precio'=>'47519.65','CodigoDeBarra'=>'7792183002126','Pvp'=>'47519.65']);\nDB::table('sales')->insert(['Codigo' =>'6338681','Precio'=>'190078.79','CodigoDeBarra'=>'7792183002133','Pvp'=>'190078.79']);\nDB::table('sales')->insert(['Codigo' =>'8039360','Precio'=>'33557.91','CodigoDeBarra'=>'7798084685581','Pvp'=>'33557.91']);\nDB::table('sales')->insert(['Codigo' =>'8039361','Precio'=>'103990.89','CodigoDeBarra'=>'7798084685598','Pvp'=>'103990.89']);\nDB::table('sales')->insert(['Codigo' =>'5971391','Precio'=>'1268.07','CodigoDeBarra'=>'7795327000019','Pvp'=>'1268.07']);\nDB::table('sales')->insert(['Codigo' =>'5638551','Precio'=>'2111.30','CodigoDeBarra'=>'7795327000026','Pvp'=>'2111.30']);\nDB::table('sales')->insert(['Codigo' =>'5638711','Precio'=>'2992.59','CodigoDeBarra'=>'7795327000088','Pvp'=>'2992.59']);\nDB::table('sales')->insert(['Codigo' =>'5378002','Precio'=>'2137.19','CodigoDeBarra'=>'7791992000279','Pvp'=>'2137.19']);\nDB::table('sales')->insert(['Codigo' =>'1707541','Precio'=>'130.39','CodigoDeBarra'=>'7795378003410','Pvp'=>'130.39']);\nDB::table('sales')->insert(['Codigo' =>'2235372','Precio'=>'227.81','CodigoDeBarra'=>'7795378003403','Pvp'=>'227.81']);\nDB::table('sales')->insert(['Codigo' =>'2912451','Precio'=>'242.42','CodigoDeBarra'=>'7795378003830','Pvp'=>'242.42']);\nDB::table('sales')->insert(['Codigo' =>'2912452','Precio'=>'371.92','CodigoDeBarra'=>'7795378003397','Pvp'=>'371.92']);\nDB::table('sales')->insert(['Codigo' =>'9996432','Precio'=>'388.42','CodigoDeBarra'=>'7790375252021','Pvp'=>'388.42']);\nDB::table('sales')->insert(['Codigo' =>'8026350','Precio'=>'659.60','CodigoDeBarra'=>'7790375004217','Pvp'=>'659.60']);\nDB::table('sales')->insert(['Codigo' =>'6244392','Precio'=>'266.67','CodigoDeBarra'=>'7794207000705','Pvp'=>'266.67']);\nDB::table('sales')->insert(['Codigo' =>'6244391','Precio'=>'153.75','CodigoDeBarra'=>'7794207000699','Pvp'=>'153.75']);\nDB::table('sales')->insert(['Codigo' =>'4491831','Precio'=>'1119.16','CodigoDeBarra'=>'7795356002053','Pvp'=>'1119.16']);\nDB::table('sales')->insert(['Codigo' =>'4491911','Precio'=>'2685.21','CodigoDeBarra'=>'7795356002060','Pvp'=>'2685.21']);\nDB::table('sales')->insert(['Codigo' =>'5006671','Precio'=>'835.75','CodigoDeBarra'=>'7798088120071','Pvp'=>'835.75']);\nDB::table('sales')->insert(['Codigo' =>'5006721','Precio'=>'1252.15','CodigoDeBarra'=>'7798088120088','Pvp'=>'1252.15']);\nDB::table('sales')->insert(['Codigo' =>'533213','Precio'=>'818.96','CodigoDeBarra'=>'7798006871146','Pvp'=>'818.96']);\nDB::table('sales')->insert(['Codigo' =>'533226','Precio'=>'1207.81','CodigoDeBarra'=>'7798006871153','Pvp'=>'1207.81']);\nDB::table('sales')->insert(['Codigo' =>'8036964','Precio'=>'635.34','CodigoDeBarra'=>'7798180920784','Pvp'=>'635.34']);\nDB::table('sales')->insert(['Codigo' =>'9954783','Precio'=>'977.32','CodigoDeBarra'=>'7798180920791','Pvp'=>'977.32']);\nDB::table('sales')->insert(['Codigo' =>'480442','Precio'=>'682.21','CodigoDeBarra'=>'7791829008607','Pvp'=>'682.21']);\nDB::table('sales')->insert(['Codigo' =>'4804501','Precio'=>'987.31','CodigoDeBarra'=>'7791829008614','Pvp'=>'987.31']);\nDB::table('sales')->insert(['Codigo' =>'4808220','Precio'=>'2799.96','CodigoDeBarra'=>'7793397051153','Pvp'=>'2799.96']);\nDB::table('sales')->insert(['Codigo' =>'4808300','Precio'=>'5485.43','CodigoDeBarra'=>'7793397051160','Pvp'=>'5485.43']);\nDB::table('sales')->insert(['Codigo' =>'8020002','Precio'=>'299.01','CodigoDeBarra'=>'7798122340953','Pvp'=>'299.01']);\nDB::table('sales')->insert(['Codigo' =>'8034958','Precio'=>'307.26','CodigoDeBarra'=>'7798122341127','Pvp'=>'307.26']);\nDB::table('sales')->insert(['Codigo' =>'4526812','Precio'=>'611.36','CodigoDeBarra'=>'7795367053983','Pvp'=>'611.36']);\nDB::table('sales')->insert(['Codigo' =>'8006803','Precio'=>'4380.52','CodigoDeBarra'=>'7795367053976','Pvp'=>'4380.52']);\nDB::table('sales')->insert(['Codigo' =>'6202971','Precio'=>'669.67','CodigoDeBarra'=>'7798161930139','Pvp'=>'669.67']);\nDB::table('sales')->insert(['Codigo' =>'6202972','Precio'=>'803.85','CodigoDeBarra'=>'7798161930146','Pvp'=>'803.85']);\nDB::table('sales')->insert(['Codigo' =>'6202973','Precio'=>'1268.10','CodigoDeBarra'=>'7798161930153','Pvp'=>'1268.10']);\nDB::table('sales')->insert(['Codigo' =>'4887771','Precio'=>'6429.85','CodigoDeBarra'=>'7798021442536','Pvp'=>'6429.85']);\nDB::table('sales')->insert(['Codigo' =>'4887851','Precio'=>'25157.11','CodigoDeBarra'=>'7798021442543','Pvp'=>'25157.11']);\nDB::table('sales')->insert(['Codigo' =>'6273841','Precio'=>'1052.33','CodigoDeBarra'=>'779176300153','Pvp'=>'1052.33']);\nDB::table('sales')->insert(['Codigo' =>'8041922','Precio'=>'367.47','CodigoDeBarra'=>'7795378005957','Pvp'=>'367.47']);\nDB::table('sales')->insert(['Codigo' =>'8041923','Precio'=>'459.23','CodigoDeBarra'=>'7795378005964','Pvp'=>'459.23']);\nDB::table('sales')->insert(['Codigo' =>'8013354','Precio'=>'526.57','CodigoDeBarra'=>'7795345000435','Pvp'=>'526.57']);\nDB::table('sales')->insert(['Codigo' =>'9998530','Precio'=>'165.37','CodigoDeBarra'=>'7795345010694','Pvp'=>'165.37']);\nDB::table('sales')->insert(['Codigo' =>'6330713','Precio'=>'1591.37','CodigoDeBarra'=>'7798161930160','Pvp'=>'1591.37']);\nDB::table('sales')->insert(['Codigo' =>'6330715','Precio'=>'1591.37','CodigoDeBarra'=>'7798161930313','Pvp'=>'1591.37']);\nDB::table('sales')->insert(['Codigo' =>'6330711','Precio'=>'554.01','CodigoDeBarra'=>'7798161930184','Pvp'=>'554.01']);\nDB::table('sales')->insert(['Codigo' =>'6330843','Precio'=>'1665.75','CodigoDeBarra'=>'7798161930177','Pvp'=>'1665.75']);\nDB::table('sales')->insert(['Codigo' =>'6330845','Precio'=>'1665.75','CodigoDeBarra'=>'7798161930337','Pvp'=>'1665.75']);\nDB::table('sales')->insert(['Codigo' =>'3837871','Precio'=>'7660.70','CodigoDeBarra'=>'7795337911428','Pvp'=>'7660.70']);\nDB::table('sales')->insert(['Codigo' =>'8014861','Precio'=>'94.38','CodigoDeBarra'=>'7891150017375','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8014866','Precio'=>'164.51','CodigoDeBarra'=>'7891150017337','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8013930','Precio'=>'197.53','CodigoDeBarra'=>'7791293030142','Pvp'=>'197.53']);\nDB::table('sales')->insert(['Codigo' =>'8013464','Precio'=>'94.38','CodigoDeBarra'=>'7891150008816','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'6310523','Precio'=>'164.51','CodigoDeBarra'=>'7791293004976','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8042047','Precio'=>'94.38','CodigoDeBarra'=>'7791293038742','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8042048','Precio'=>'166.54','CodigoDeBarra'=>'7791293038759','Pvp'=>'166.54']);\nDB::table('sales')->insert(['Codigo' =>'8039786','Precio'=>'164.51','CodigoDeBarra'=>'7891150062764','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8039597','Precio'=>'164.51','CodigoDeBarra'=>'7891150062771','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8031361','Precio'=>'164.51','CodigoDeBarra'=>'7891150053090','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8040805','Precio'=>'82.55','CodigoDeBarra'=>'7791293039091','Pvp'=>'82.55']);\nDB::table('sales')->insert(['Codigo' =>'8031364','Precio'=>'94.38','CodigoDeBarra'=>'7891150053151','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8031365','Precio'=>'164.51','CodigoDeBarra'=>'7891150053120','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8039953','Precio'=>'168.01','CodigoDeBarra'=>'7891150058590','Pvp'=>'168.01']);\nDB::table('sales')->insert(['Codigo' =>'8039952','Precio'=>'168.01','CodigoDeBarra'=>'7891150058613','Pvp'=>'168.01']);\nDB::table('sales')->insert(['Codigo' =>'8042050','Precio'=>'168.01','CodigoDeBarra'=>'7891150066069','Pvp'=>'168.01']);\nDB::table('sales')->insert(['Codigo' =>'8014878','Precio'=>'110.14','CodigoDeBarra'=>'7791293014012','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8040688','Precio'=>'143.46','CodigoDeBarra'=>'7791293037882','Pvp'=>'143.46']);\nDB::table('sales')->insert(['Codigo' =>'8039183','Precio'=>'103.73','CodigoDeBarra'=>'7791293036656','Pvp'=>'103.73']);\nDB::table('sales')->insert(['Codigo' =>'8008268','Precio'=>'110.14','CodigoDeBarra'=>'7791293033259','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8000319','Precio'=>'110.14','CodigoDeBarra'=>'7506306241169','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8036269','Precio'=>'110.14','CodigoDeBarra'=>'7791293033266','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8035621','Precio'=>'110.12','CodigoDeBarra'=>'7791293036458','Pvp'=>'110.12']);\nDB::table('sales')->insert(['Codigo' =>'8003955','Precio'=>'110.14','CodigoDeBarra'=>'7506306241176','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8039184','Precio'=>'103.63','CodigoDeBarra'=>'7791293036663','Pvp'=>'103.63']);\nDB::table('sales')->insert(['Codigo' =>'8040024','Precio'=>'110.14','CodigoDeBarra'=>'7791293038155','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8000318','Precio'=>'110.14','CodigoDeBarra'=>'7506306241183','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8031360','Precio'=>'110.14','CodigoDeBarra'=>'7791293034584','Pvp'=>'110.14']);\nDB::table('sales')->insert(['Codigo' =>'8036804','Precio'=>'109.35','CodigoDeBarra'=>'7506306211209','Pvp'=>'109.35']);\nDB::table('sales')->insert(['Codigo' =>'8036807','Precio'=>'165.24','CodigoDeBarra'=>'7506306211261','Pvp'=>'165.24']);\nDB::table('sales')->insert(['Codigo' =>'8036806','Precio'=>'109.35','CodigoDeBarra'=>'7506306211223','Pvp'=>'109.35']);\nDB::table('sales')->insert(['Codigo' =>'8036809','Precio'=>'165.24','CodigoDeBarra'=>'7506306211285','Pvp'=>'165.24']);\nDB::table('sales')->insert(['Codigo' =>'8031615','Precio'=>'165.24','CodigoDeBarra'=>'7501056346126','Pvp'=>'165.24']);\nDB::table('sales')->insert(['Codigo' =>'8039603','Precio'=>'109.35','CodigoDeBarra'=>'7506306215887','Pvp'=>'109.35']);\nDB::table('sales')->insert(['Codigo' =>'8039601','Precio'=>'165.24','CodigoDeBarra'=>'7506306215740','Pvp'=>'165.24']);\nDB::table('sales')->insert(['Codigo' =>'8016365','Precio'=>'109.35','CodigoDeBarra'=>'7501056346140','Pvp'=>'109.35']);\nDB::table('sales')->insert(['Codigo' =>'8016368','Precio'=>'165.24','CodigoDeBarra'=>'7501056346157','Pvp'=>'165.24']);\nDB::table('sales')->insert(['Codigo' =>'8016367','Precio'=>'109.35','CodigoDeBarra'=>'7501056346188','Pvp'=>'109.35']);\nDB::table('sales')->insert(['Codigo' =>'8032576','Precio'=>'82.55','CodigoDeBarra'=>'7891150054844','Pvp'=>'82.55']);\nDB::table('sales')->insert(['Codigo' =>'8014858','Precio'=>'94.38','CodigoDeBarra'=>'7891150017351','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8014859','Precio'=>'164.51','CodigoDeBarra'=>'7891150017368','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8013929','Precio'=>'197.53','CodigoDeBarra'=>'7791293030135','Pvp'=>'197.53']);\nDB::table('sales')->insert(['Codigo' =>'8013471','Precio'=>'94.38','CodigoDeBarra'=>'7891150008953','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'6310519','Precio'=>'164.51','CodigoDeBarra'=>'7791293005010','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8042051','Precio'=>'94.38','CodigoDeBarra'=>'7791293038766','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8042052','Precio'=>'166.54','CodigoDeBarra'=>'7791293038773','Pvp'=>'166.54']);\nDB::table('sales')->insert(['Codigo' =>'8039785','Precio'=>'164.51','CodigoDeBarra'=>'7891150062788','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8039600','Precio'=>'164.51','CodigoDeBarra'=>'7891150062801','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8031369','Precio'=>'164.51','CodigoDeBarra'=>'7891150053113','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'8040806','Precio'=>'82.55','CodigoDeBarra'=>'7791293039084','Pvp'=>'82.55']);\nDB::table('sales')->insert(['Codigo' =>'8031366','Precio'=>'94.38','CodigoDeBarra'=>'7891150053144','Pvp'=>'94.38']);\nDB::table('sales')->insert(['Codigo' =>'8031363','Precio'=>'164.51','CodigoDeBarra'=>'7891150053083','Pvp'=>'164.51']);\nDB::table('sales')->insert(['Codigo' =>'4543561','Precio'=>'618.16','CodigoDeBarra'=>'7795348002924','Pvp'=>'618.16']);\nDB::table('sales')->insert(['Codigo' =>'8007090','Precio'=>'1162.07','CodigoDeBarra'=>'7795348002955','Pvp'=>'1162.07']);\nDB::table('sales')->insert(['Codigo' =>'8037065','Precio'=>'409.65','CodigoDeBarra'=>'7798021298270','Pvp'=>'409.65']);\nDB::table('sales')->insert(['Codigo' =>'8006892','Precio'=>'5478.98','CodigoDeBarra'=>'7798084684072','Pvp'=>'5478.98']);\nDB::table('sales')->insert(['Codigo' =>'4444301','Precio'=>'341.07','CodigoDeBarra'=>'7795356002077','Pvp'=>'341.07']);\nDB::table('sales')->insert(['Codigo' =>'8006844','Precio'=>'1009.67','CodigoDeBarra'=>'7795356002084','Pvp'=>'1009.67']);\nDB::table('sales')->insert(['Codigo' =>'6139711','Precio'=>'551.49','CodigoDeBarra'=>'7793569003638','Pvp'=>'551.49']);\nDB::table('sales')->insert(['Codigo' =>'5003091','Precio'=>'956.34','CodigoDeBarra'=>'7798088120101','Pvp'=>'956.34']);\nDB::table('sales')->insert(['Codigo' =>'6097421','Precio'=>'3889.13','CodigoDeBarra'=>'7795367000352','Pvp'=>'3889.13']);\nDB::table('sales')->insert(['Codigo' =>'8006884','Precio'=>'1527.15','CodigoDeBarra'=>'7798021442567','Pvp'=>'1527.15']);\nDB::table('sales')->insert(['Codigo' =>'5469422','Precio'=>'232.22','CodigoDeBarra'=>'7798122340168','Pvp'=>'232.22']);\nDB::table('sales')->insert(['Codigo' =>'5469421','Precio'=>'165.41','CodigoDeBarra'=>'7798122340151','Pvp'=>'165.41']);\nDB::table('sales')->insert(['Codigo' =>'5382001','Precio'=>'793.69','CodigoDeBarra'=>'7798084684294','Pvp'=>'793.69']);\nDB::table('sales')->insert(['Codigo' =>'5382003','Precio'=>'3090.45','CodigoDeBarra'=>'7798084682900','Pvp'=>'3090.45']);\nDB::table('sales')->insert(['Codigo' =>'5382131','Precio'=>'3889.21','CodigoDeBarra'=>'7798084684300','Pvp'=>'3889.21']);\nDB::table('sales')->insert(['Codigo' =>'8013343','Precio'=>'15143.76','CodigoDeBarra'=>'7798084682917','Pvp'=>'15143.76']);\nDB::table('sales')->insert(['Codigo' =>'5818973','Precio'=>'20924.84','CodigoDeBarra'=>'7798084682924','Pvp'=>'20924.84']);\nDB::table('sales')->insert(['Codigo' =>'5818971','Precio'=>'5166.63','CodigoDeBarra'=>'7798084682757','Pvp'=>'5166.63']);\nDB::table('sales')->insert(['Codigo' =>'5819001','Precio'=>'6603.73','CodigoDeBarra'=>'7798084682764','Pvp'=>'6603.73']);\nDB::table('sales')->insert(['Codigo' =>'5382261','Precio'=>'9532.31','CodigoDeBarra'=>'7798084684317','Pvp'=>'9532.31']);\nDB::table('sales')->insert(['Codigo' =>'5776551','Precio'=>'1015.67','CodigoDeBarra'=>'7798061751384','Pvp'=>'1015.67']);\nDB::table('sales')->insert(['Codigo' =>'8007089','Precio'=>'1160.52','CodigoDeBarra'=>'7795348002580','Pvp'=>'1160.52']);\nDB::table('sales')->insert(['Codigo' =>'4019191','Precio'=>'383.02','CodigoDeBarra'=>'7795348001583','Pvp'=>'383.02']);\nDB::table('sales')->insert(['Codigo' =>'6202841','Precio'=>'482.92','CodigoDeBarra'=>'7798161930092','Pvp'=>'482.92']);\nDB::table('sales')->insert(['Codigo' =>'6202842','Precio'=>'977.33','CodigoDeBarra'=>'7798161930108','Pvp'=>'977.33']);\nDB::table('sales')->insert(['Codigo' =>'6420681','Precio'=>'25710.49','CodigoDeBarra'=>'7795348003198','Pvp'=>'25710.49']);\nDB::table('sales')->insert(['Codigo' =>'8018522','Precio'=>'163.31','CodigoDeBarra'=>'7798006300493','Pvp'=>'163.31']);\nDB::table('sales')->insert(['Codigo' =>'377285','Precio'=>'173.72','CodigoDeBarra'=>'7798006300370','Pvp'=>'173.72']);\nDB::table('sales')->insert(['Codigo' =>'6100391','Precio'=>'173.72','CodigoDeBarra'=>'7798006300127','Pvp'=>'173.72']);\nDB::table('sales')->insert(['Codigo' =>'3772772','Precio'=>'173.72','CodigoDeBarra'=>'7798006300653','Pvp'=>'173.72']);\nDB::table('sales')->insert(['Codigo' =>'9996003','Precio'=>'428.58','CodigoDeBarra'=>'7795312108577','Pvp'=>'428.58']);\nDB::table('sales')->insert(['Codigo' =>'164372','Precio'=>'149.75','CodigoDeBarra'=>'7795312108560','Pvp'=>'149.75']);\nDB::table('sales')->insert(['Codigo' =>'164371','Precio'=>'275.75','CodigoDeBarra'=>'7795312108584','Pvp'=>'275.75']);\nDB::table('sales')->insert(['Codigo' =>'2022423','Precio'=>'198.11','CodigoDeBarra'=>'7795312108553','Pvp'=>'198.11']);\nDB::table('sales')->insert(['Codigo' =>'6315841','Precio'=>'160.21','CodigoDeBarra'=>'7795356001872','Pvp'=>'160.21']);\nDB::table('sales')->insert(['Codigo' =>'6315842','Precio'=>'294.10','CodigoDeBarra'=>'7795356001582','Pvp'=>'294.10']);\nDB::table('sales')->insert(['Codigo' =>'8041054','Precio'=>'140733.36','CodigoDeBarra'=>'7798122020497','Pvp'=>'140733.36']);\nDB::table('sales')->insert(['Codigo' =>'4741301','Precio'=>'11421.34','CodigoDeBarra'=>'7795309000440','Pvp'=>'11421.34']);\nDB::table('sales')->insert(['Codigo' =>'5646971','Precio'=>'12765.50','CodigoDeBarra'=>'7795381411165','Pvp'=>'12765.50']);\nDB::table('sales')->insert(['Codigo' =>'5478550','Precio'=>'2556.95','CodigoDeBarra'=>'7793397077269','Pvp'=>'2556.95']);\nDB::table('sales')->insert(['Codigo' =>'6285391','Precio'=>'1288.02','CodigoDeBarra'=>'7798061752541','Pvp'=>'1288.02']);\nDB::table('sales')->insert(['Codigo' =>'8006904','Precio'=>'870.33','CodigoDeBarra'=>'7798061750271','Pvp'=>'870.33']);\nDB::table('sales')->insert(['Codigo' =>'8037510','Precio'=>'8910.61','CodigoDeBarra'=>'7795348421091','Pvp'=>'8910.61']);\nDB::table('sales')->insert(['Codigo' =>'6449131','Precio'=>'150.53','CodigoDeBarra'=>'7798067996369','Pvp'=>'150.53']);\nDB::table('sales')->insert(['Codigo' =>'6469711','Precio'=>'443.11','CodigoDeBarra'=>'7798067996383','Pvp'=>'443.11']);\nDB::table('sales')->insert(['Codigo' =>'6449261','Precio'=>'209.42','CodigoDeBarra'=>'7798067996376','Pvp'=>'209.42']);\nDB::table('sales')->insert(['Codigo' =>'8007111','Precio'=>'41029.58','CodigoDeBarra'=>'7798084684232','Pvp'=>'41029.58']);\nDB::table('sales')->insert(['Codigo' =>'6097841','Precio'=>'74835.74','CodigoDeBarra'=>'7795362000012','Pvp'=>'74835.74']);\nDB::table('sales')->insert(['Codigo' =>'4238561','Precio'=>'10663.68','CodigoDeBarra'=>'7795342003088','Pvp'=>'10663.68']);\nDB::table('sales')->insert(['Codigo' =>'6043551','Precio'=>'48533.23','CodigoDeBarra'=>'7795318000066','Pvp'=>'48533.23']);\nDB::table('sales')->insert(['Codigo' =>'6043681','Precio'=>'48533.23','CodigoDeBarra'=>'7795318000073','Pvp'=>'48533.23']);\nDB::table('sales')->insert(['Codigo' =>'8028994','Precio'=>'147.35','CodigoDeBarra'=>'7509552800371','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018820','Precio'=>'140.33','CodigoDeBarra'=>'7898587762106','Pvp'=>'140.33']);\nDB::table('sales')->insert(['Codigo' =>'8018809','Precio'=>'147.35','CodigoDeBarra'=>'7898587761888','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8038102','Precio'=>'147.35','CodigoDeBarra'=>'7509552838947','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8041890','Precio'=>'147.35','CodigoDeBarra'=>'7509552843101','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8024973','Precio'=>'147.35','CodigoDeBarra'=>'7899706118804','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018698','Precio'=>'147.35','CodigoDeBarra'=>'7899026486959','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018700','Precio'=>'147.35','CodigoDeBarra'=>'7899026487055','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8032526','Precio'=>'125.24','CodigoDeBarra'=>'7509552861075','Pvp'=>'125.24']);\nDB::table('sales')->insert(['Codigo' =>'8021078','Precio'=>'147.35','CodigoDeBarra'=>'7898587775021','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8021072','Precio'=>'147.35','CodigoDeBarra'=>'7898587774925','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018838','Precio'=>'147.35','CodigoDeBarra'=>'7898587761925','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8027062','Precio'=>'147.35','CodigoDeBarra'=>'7509552914535','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8019879','Precio'=>'147.35','CodigoDeBarra'=>'7898587772570','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8021080','Precio'=>'236.74','CodigoDeBarra'=>'7898587775083','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8019085','Precio'=>'236.74','CodigoDeBarra'=>'7899026485129','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8024977','Precio'=>'236.74','CodigoDeBarra'=>'7899706118866','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8018705','Precio'=>'236.74','CodigoDeBarra'=>'7899026486997','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8018707','Precio'=>'236.74','CodigoDeBarra'=>'7899026487093','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8019119','Precio'=>'236.74','CodigoDeBarra'=>'7899026485167','Pvp'=>'236.74']);\nDB::table('sales')->insert(['Codigo' =>'8028993','Precio'=>'147.35','CodigoDeBarra'=>'7509552800296','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8028992','Precio'=>'147.35','CodigoDeBarra'=>'7509552800135','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018818','Precio'=>'147.35','CodigoDeBarra'=>'7898587762069','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018833','Precio'=>'147.35','CodigoDeBarra'=>'7898587762380','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018807','Precio'=>'147.35','CodigoDeBarra'=>'7898587761826','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8038103','Precio'=>'147.35','CodigoDeBarra'=>'7509552838879','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8041888','Precio'=>'147.35','CodigoDeBarra'=>'7509552843071','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8024970','Precio'=>'147.35','CodigoDeBarra'=>'7899706118743','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018697','Precio'=>'147.35','CodigoDeBarra'=>'7899026486911','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018699','Precio'=>'147.35','CodigoDeBarra'=>'7899026487017','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8032525','Precio'=>'125.24','CodigoDeBarra'=>'7509552860993','Pvp'=>'125.24']);\nDB::table('sales')->insert(['Codigo' =>'8021076','Precio'=>'147.35','CodigoDeBarra'=>'7898587775120','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8018836','Precio'=>'147.35','CodigoDeBarra'=>'7898587761864','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8027059','Precio'=>'147.35','CodigoDeBarra'=>'7509552914504','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8019876','Precio'=>'147.35','CodigoDeBarra'=>'7898587772518','Pvp'=>'147.35']);\nDB::table('sales')->insert(['Codigo' =>'8039342','Precio'=>'23366.50','CodigoDeBarra'=>'7795326010118','Pvp'=>'23366.50']);\nDB::table('sales')->insert(['Codigo' =>'8039343','Precio'=>'30821.52','CodigoDeBarra'=>'7795326010125','Pvp'=>'30821.52']);\nDB::table('sales')->insert(['Codigo' =>'6127261','Precio'=>'7509.90','CodigoDeBarra'=>'7797991000364','Pvp'=>'7509.90']);\nDB::table('sales')->insert(['Codigo' =>'6447391','Precio'=>'559.74','CodigoDeBarra'=>'7795327064820','Pvp'=>'559.74']);\nDB::table('sales')->insert(['Codigo' =>'9998652','Precio'=>'197.60','CodigoDeBarra'=>'7793640215561','Pvp'=>'197.60']);\nDB::table('sales')->insert(['Codigo' =>'8033764','Precio'=>'144316.04','CodigoDeBarra'=>'7798008272149','Pvp'=>'144316.04']);\nDB::table('sales')->insert(['Codigo' =>'634926','Precio'=>'13023.67','CodigoDeBarra'=>'7798035311101','Pvp'=>'13023.67']);\nDB::table('sales')->insert(['Codigo' =>'3365883','Precio'=>'192.65','CodigoDeBarra'=>'7795336003681','Pvp'=>'192.65']);\nDB::table('sales')->insert(['Codigo' =>'3365884','Precio'=>'295.91','CodigoDeBarra'=>'7795336252324','Pvp'=>'295.91']);\nDB::table('sales')->insert(['Codigo' =>'3365885','Precio'=>'363.99','CodigoDeBarra'=>'7795336003698','Pvp'=>'363.99']);\nDB::table('sales')->insert(['Codigo' =>'4602461','Precio'=>'41173.38','CodigoDeBarra'=>'7792499696200','Pvp'=>'41173.38']);\nDB::table('sales')->insert(['Codigo' =>'4602462','Precio'=>'41173.38','CodigoDeBarra'=>'7795381000635','Pvp'=>'41173.38']);\nDB::table('sales')->insert(['Codigo' =>'5459713','Precio'=>'83945.60','CodigoDeBarra'=>'7795381000659','Pvp'=>'83945.60']);\nDB::table('sales')->insert(['Codigo' =>'619197','Precio'=>'6705.86','CodigoDeBarra'=>'7793236000120','Pvp'=>'6705.86']);\nDB::table('sales')->insert(['Codigo' =>'619184','Precio'=>'1879.89','CodigoDeBarra'=>'7793236000113','Pvp'=>'1879.89']);\nDB::table('sales')->insert(['Codigo' =>'8038619','Precio'=>'31415.98','CodigoDeBarra'=>'7798163500798','Pvp'=>'31415.98']);\nDB::table('sales')->insert(['Codigo' =>'8038611','Precio'=>'64051.91','CodigoDeBarra'=>'7798163500804','Pvp'=>'64051.91']);\nDB::table('sales')->insert(['Codigo' =>'8022031','Precio'=>'1654.58','CodigoDeBarra'=>'7506205806506','Pvp'=>'1654.58']);\nDB::table('sales')->insert(['Codigo' =>'8022034','Precio'=>'1518.44','CodigoDeBarra'=>'7506205806520','Pvp'=>'1518.44']);\nDB::table('sales')->insert(['Codigo' =>'8022032','Precio'=>'1537.99','CodigoDeBarra'=>'7506205806490','Pvp'=>'1537.99']);\nDB::table('sales')->insert(['Codigo' =>'8022033','Precio'=>'2093.00','CodigoDeBarra'=>'8712045031605','Pvp'=>'2093.00']);\nDB::table('sales')->insert(['Codigo' =>'8022155','Precio'=>'1565.28','CodigoDeBarra'=>'7506205806698','Pvp'=>'1565.28']);\nDB::table('sales')->insert(['Codigo' =>'8022156','Precio'=>'1252.23','CodigoDeBarra'=>'7506205806711','Pvp'=>'1252.23']);\nDB::table('sales')->insert(['Codigo' =>'58268','Precio'=>'173351.78','CodigoDeBarra'=>'7791171101810','Pvp'=>'173351.78']);\nDB::table('sales')->insert(['Codigo' =>'8040241','Precio'=>'1152.88','CodigoDeBarra'=>'612198000000','Pvp'=>'1152.88']);\nDB::table('sales')->insert(['Codigo' =>'8040881','Precio'=>'298.84','CodigoDeBarra'=>'7795312109017','Pvp'=>'298.84']);\nDB::table('sales')->insert(['Codigo' =>'5935711','Precio'=>'617.69','CodigoDeBarra'=>'7795312108317','Pvp'=>'617.69']);\nDB::table('sales')->insert(['Codigo' =>'8036415','Precio'=>'261839.38','CodigoDeBarra'=>'7795300001170','Pvp'=>'261839.38']);\nDB::table('sales')->insert(['Codigo' =>'5868681','Precio'=>'2048.16','CodigoDeBarra'=>'7795367002301','Pvp'=>'2048.16']);\nDB::table('sales')->insert(['Codigo' =>'8007467','Precio'=>'7638.78','CodigoDeBarra'=>'7798138890046','Pvp'=>'7638.78']);\nDB::table('sales')->insert(['Codigo' =>'6471131','Precio'=>'614881.92','CodigoDeBarra'=>'7792183489286','Pvp'=>'614881.92']);\nDB::table('sales')->insert(['Codigo' =>'3983981','Precio'=>'2062.36','CodigoDeBarra'=>'7795367000796','Pvp'=>'2062.36']);\nDB::table('sales')->insert(['Codigo' =>'4423691','Precio'=>'2386.29','CodigoDeBarra'=>'7795356002107','Pvp'=>'2386.29']);\nDB::table('sales')->insert(['Codigo' =>'4423511','Precio'=>'791.39','CodigoDeBarra'=>'7795356002091','Pvp'=>'791.39']);\nDB::table('sales')->insert(['Codigo' =>'5618391','Precio'=>'1174.67','CodigoDeBarra'=>'7798088122822','Pvp'=>'1174.67']);\nDB::table('sales')->insert(['Codigo' =>'5753001','Precio'=>'1151.94','CodigoDeBarra'=>'7795373099753','Pvp'=>'1151.94']);\nDB::table('sales')->insert(['Codigo' =>'5735262','Precio'=>'7874.99','CodigoDeBarra'=>'7795373099777','Pvp'=>'7874.99']);\nDB::table('sales')->insert(['Codigo' =>'8041987','Precio'=>'27256.31','CodigoDeBarra'=>'','Pvp'=>'27256.31']);\nDB::table('sales')->insert(['Codigo' =>'8031250','Precio'=>'126.92','CodigoDeBarra'=>'7792129003729','Pvp'=>'126.92']);\nDB::table('sales')->insert(['Codigo' =>'8031521','Precio'=>'204.61','CodigoDeBarra'=>'7792129003644','Pvp'=>'204.61']);\nDB::table('sales')->insert(['Codigo' =>'9998182','Precio'=>'93.59','CodigoDeBarra'=>'7792129001015','Pvp'=>'93.59']);\nDB::table('sales')->insert(['Codigo' =>'644813','Precio'=>'460.50','CodigoDeBarra'=>'7798006302251','Pvp'=>'460.50']);\nDB::table('sales')->insert(['Codigo' =>'644800','Precio'=>'2092.44','CodigoDeBarra'=>'7798006302244','Pvp'=>'2092.44']);\nDB::table('sales')->insert(['Codigo' =>'5736881','Precio'=>'32679.91','CodigoDeBarra'=>'7795317004874','Pvp'=>'32679.91']);\nDB::table('sales')->insert(['Codigo' =>'5736683','Precio'=>'163393.26','CodigoDeBarra'=>'7795317004713','Pvp'=>'163393.26']);\nDB::table('sales')->insert(['Codigo' =>'8006888','Precio'=>'300.76','CodigoDeBarra'=>'7798021442581','Pvp'=>'300.76']);\nDB::table('sales')->insert(['Codigo' =>'8006882','Precio'=>'379.10','CodigoDeBarra'=>'7798021442598','Pvp'=>'379.10']);\nDB::table('sales')->insert(['Codigo' =>'8006883','Precio'=>'918.09','CodigoDeBarra'=>'7798021442604','Pvp'=>'918.09']);\nDB::table('sales')->insert(['Codigo' =>'4551221','Precio'=>'566.54','CodigoDeBarra'=>'7798069050236','Pvp'=>'566.54']);\nDB::table('sales')->insert(['Codigo' =>'6341711','Precio'=>'520489.23','CodigoDeBarra'=>'7792371370358','Pvp'=>'520489.23']);\nDB::table('sales')->insert(['Codigo' =>'8038601','Precio'=>'335380.57','CodigoDeBarra'=>'7795314194394','Pvp'=>'335380.57']);\nDB::table('sales')->insert(['Codigo' =>'632284','Precio'=>'13963.55','CodigoDeBarra'=>'7793397051375','Pvp'=>'13963.55']);\nDB::table('sales')->insert(['Codigo' =>'632271','Precio'=>'16754.13','CodigoDeBarra'=>'7793397051382','Pvp'=>'16754.13']);\nDB::table('sales')->insert(['Codigo' =>'604339','Precio'=>'695351.57','CodigoDeBarra'=>'7798084685505','Pvp'=>'695351.57']);\nDB::table('sales')->insert(['Codigo' =>'639326','Precio'=>'236978.39','CodigoDeBarra'=>'7792371040947','Pvp'=>'236978.39']);\nDB::table('sales')->insert(['Codigo' =>'6187261','Precio'=>'76752.76','CodigoDeBarra'=>'7798084683273','Pvp'=>'76752.76']);\nDB::table('sales')->insert(['Codigo' =>'618726','Precio'=>'78700.55','CodigoDeBarra'=>'7798084685444','Pvp'=>'78700.55']);\nDB::table('sales')->insert(['Codigo' =>'5699395','Precio'=>'800.30','CodigoDeBarra'=>'7791763001702','Pvp'=>'800.30']);\nDB::table('sales')->insert(['Codigo' =>'5699425','Precio'=>'1299.18','CodigoDeBarra'=>'7791763001719','Pvp'=>'1299.18']);\nDB::table('sales')->insert(['Codigo' =>'8032043','Precio'=>'162989.73','CodigoDeBarra'=>'7795355000760','Pvp'=>'162989.73']);\nDB::table('sales')->insert(['Codigo' =>'6207420','Precio'=>'4818.97','CodigoDeBarra'=>'7793397051184','Pvp'=>'4818.97']);\nDB::table('sales')->insert(['Codigo' =>'6207390','Precio'=>'2471.21','CodigoDeBarra'=>'7793397051177','Pvp'=>'2471.21']);\nDB::table('sales')->insert(['Codigo' =>'6354712','Precio'=>'291016.79','CodigoDeBarra'=>'7792219001055','Pvp'=>'291016.79']);\nDB::table('sales')->insert(['Codigo' =>'8041176','Precio'=>'291016.79','CodigoDeBarra'=>'7792219911859','Pvp'=>'291016.79']);\nDB::table('sales')->insert(['Codigo' =>'6163845','Precio'=>'1271.92','CodigoDeBarra'=>'7795356000783','Pvp'=>'1271.92']);\nDB::table('sales')->insert(['Codigo' =>'6116261','Precio'=>'433.54','CodigoDeBarra'=>'7795336000031','Pvp'=>'433.54']);\nDB::table('sales')->insert(['Codigo' =>'6116262','Precio'=>'602.51','CodigoDeBarra'=>'7795336000048','Pvp'=>'602.51']);\nDB::table('sales')->insert(['Codigo' =>'6116391','Precio'=>'577.16','CodigoDeBarra'=>'7795336000055','Pvp'=>'577.16']);\nDB::table('sales')->insert(['Codigo' =>'6116392','Precio'=>'864.47','CodigoDeBarra'=>'7795336000062','Pvp'=>'864.47']);\nDB::table('sales')->insert(['Codigo' =>'8043486','Precio'=>'190.52','CodigoDeBarra'=>'7798339190204','Pvp'=>'190.52']);\nDB::table('sales')->insert(['Codigo' =>'8006859','Precio'=>'76.60','CodigoDeBarra'=>'7795348001118','Pvp'=>'76.60']);\nDB::table('sales')->insert(['Codigo' =>'8021576','Precio'=>'270.01','CodigoDeBarra'=>'7795371001024','Pvp'=>'270.01']);\nDB::table('sales')->insert(['Codigo' =>'8021578','Precio'=>'371.53','CodigoDeBarra'=>'7795371001031','Pvp'=>'371.53']);\nDB::table('sales')->insert(['Codigo' =>'8021580','Precio'=>'363.66','CodigoDeBarra'=>'7795371001000','Pvp'=>'363.66']);\nDB::table('sales')->insert(['Codigo' =>'8024167','Precio'=>'94.50','CodigoDeBarra'=>'7790064000124','Pvp'=>'94.50']);\nDB::table('sales')->insert(['Codigo' =>'8014438','Precio'=>'124.98','CodigoDeBarra'=>'7790064000247','Pvp'=>'124.98']);\nDB::table('sales')->insert(['Codigo' =>'8014436','Precio'=>'62.42','CodigoDeBarra'=>'7790064000230','Pvp'=>'62.42']);\nDB::table('sales')->insert(['Codigo' =>'6039266','Precio'=>'56.69','CodigoDeBarra'=>'7790064001701','Pvp'=>'56.69']);\nDB::table('sales')->insert(['Codigo' =>'6039276','Precio'=>'108.51','CodigoDeBarra'=>'7790064001718','Pvp'=>'108.51']);\nDB::table('sales')->insert(['Codigo' =>'6039277','Precio'=>'209.39','CodigoDeBarra'=>'7790064001725','Pvp'=>'209.39']);\nDB::table('sales')->insert(['Codigo' =>'8017457','Precio'=>'48.88','CodigoDeBarra'=>'7790064101814','Pvp'=>'48.88']);\nDB::table('sales')->insert(['Codigo' =>'8003305','Precio'=>'70.11','CodigoDeBarra'=>'7790064001954','Pvp'=>'70.11']);\nDB::table('sales')->insert(['Codigo' =>'6310035','Precio'=>'114.06','CodigoDeBarra'=>'7790064000186','Pvp'=>'114.06']);\nDB::table('sales')->insert(['Codigo' =>'8036433','Precio'=>'39.57','CodigoDeBarra'=>'7790064104518','Pvp'=>'39.57']);\nDB::table('sales')->insert(['Codigo' =>'8036434','Precio'=>'39.57','CodigoDeBarra'=>'7790064104522','Pvp'=>'39.57']);\nDB::table('sales')->insert(['Codigo' =>'8036432','Precio'=>'39.57','CodigoDeBarra'=>'7790064104501','Pvp'=>'39.57']);\nDB::table('sales')->insert(['Codigo' =>'6301004','Precio'=>'96.37','CodigoDeBarra'=>'7790064001039','Pvp'=>'96.37']);\nDB::table('sales')->insert(['Codigo' =>'8033112','Precio'=>'142.91','CodigoDeBarra'=>'410000010100','Pvp'=>'142.91']);\nDB::table('sales')->insert(['Codigo' =>'6533313','Precio'=>'142.91','CodigoDeBarra'=>'7790064001046','Pvp'=>'142.91']);\nDB::table('sales')->insert(['Codigo' =>'8013717','Precio'=>'217.80','CodigoDeBarra'=>'7790064100091','Pvp'=>'217.80']);\nDB::table('sales')->insert(['Codigo' =>'8003892','Precio'=>'104.65','CodigoDeBarra'=>'7790064003736','Pvp'=>'104.65']);\nDB::table('sales')->insert(['Codigo' =>'8003893','Precio'=>'166.29','CodigoDeBarra'=>'7790064003743','Pvp'=>'166.29']);\nDB::table('sales')->insert(['Codigo' =>'8022321','Precio'=>'148.45','CodigoDeBarra'=>'7790064002173','Pvp'=>'148.45']);\nDB::table('sales')->insert(['Codigo' =>'6300704','Precio'=>'85.04','CodigoDeBarra'=>'7790064002104','Pvp'=>'85.04']);\nDB::table('sales')->insert(['Codigo' =>'8042100','Precio'=>'67.17','CodigoDeBarra'=>'7790064104549','Pvp'=>'67.17']);\nDB::table('sales')->insert(['Codigo' =>'8042101','Precio'=>'67.17','CodigoDeBarra'=>'7790064003958','Pvp'=>'67.17']);\nDB::table('sales')->insert(['Codigo' =>'8042099','Precio'=>'67.17','CodigoDeBarra'=>'7790064104556','Pvp'=>'67.17']);\nDB::table('sales')->insert(['Codigo' =>'6300702','Precio'=>'59.86','CodigoDeBarra'=>'7790064001909','Pvp'=>'59.86']);\nDB::table('sales')->insert(['Codigo' =>'8033110','Precio'=>'34.02','CodigoDeBarra'=>'410000000135','Pvp'=>'34.02']);\nDB::table('sales')->insert(['Codigo' =>'8042559','Precio'=>'46.11','CodigoDeBarra'=>'7790064004580','Pvp'=>'46.11']);\nDB::table('sales')->insert(['Codigo' =>'8042557','Precio'=>'46.11','CodigoDeBarra'=>'7790064004566','Pvp'=>'46.11']);\nDB::table('sales')->insert(['Codigo' =>'8042558','Precio'=>'46.11','CodigoDeBarra'=>'7790064004573','Pvp'=>'46.11']);\nDB::table('sales')->insert(['Codigo' =>'8042562','Precio'=>'47.89','CodigoDeBarra'=>'7790064104631','Pvp'=>'47.89']);\nDB::table('sales')->insert(['Codigo' =>'8042560','Precio'=>'47.89','CodigoDeBarra'=>'7790064104617','Pvp'=>'47.89']);\nDB::table('sales')->insert(['Codigo' =>'8042563','Precio'=>'47.89','CodigoDeBarra'=>'7790064104648','Pvp'=>'47.89']);\nDB::table('sales')->insert(['Codigo' =>'8042561','Precio'=>'47.89','CodigoDeBarra'=>'7790064104624','Pvp'=>'47.89']);\nDB::table('sales')->insert(['Codigo' =>'8033108','Precio'=>'34.02','CodigoDeBarra'=>'7790064104174','Pvp'=>'34.02']);\nDB::table('sales')->insert(['Codigo' =>'8033111','Precio'=>'34.02','CodigoDeBarra'=>'7790064104143','Pvp'=>'34.02']);\nDB::table('sales')->insert(['Codigo' =>'8033107','Precio'=>'26.05','CodigoDeBarra'=>'410000000132','Pvp'=>'26.05']);\nDB::table('sales')->insert(['Codigo' =>'8042098','Precio'=>'576.72','CodigoDeBarra'=>'7790064006010','Pvp'=>'576.72']);\nDB::table('sales')->insert(['Codigo' =>'8042097','Precio'=>'576.72','CodigoDeBarra'=>'7790064006003','Pvp'=>'576.72']);\nDB::table('sales')->insert(['Codigo' =>'8042096','Precio'=>'576.72','CodigoDeBarra'=>'7790064006027','Pvp'=>'576.72']);\nDB::table('sales')->insert(['Codigo' =>'8028362','Precio'=>'625.59','CodigoDeBarra'=>'7790064004061','Pvp'=>'625.59']);\nDB::table('sales')->insert(['Codigo' =>'8028976','Precio'=>'142.42','CodigoDeBarra'=>'7790064004054','Pvp'=>'142.42']);\nDB::table('sales')->insert(['Codigo' =>'8040274','Precio'=>'625.59','CodigoDeBarra'=>'7790064004122','Pvp'=>'625.59']);\nDB::table('sales')->insert(['Codigo' =>'8040930','Precio'=>'142.42','CodigoDeBarra'=>'7790064104600','Pvp'=>'142.42']);\nDB::table('sales')->insert(['Codigo' =>'8028360','Precio'=>'360.47','CodigoDeBarra'=>'7790064004023','Pvp'=>'360.47']);\nDB::table('sales')->insert(['Codigo' =>'8028363','Precio'=>'625.59','CodigoDeBarra'=>'7790064004085','Pvp'=>'625.59']);\nDB::table('sales')->insert(['Codigo' =>'8038777','Precio'=>'625.59','CodigoDeBarra'=>'7790064004136','Pvp'=>'625.59']);\nDB::table('sales')->insert(['Codigo' =>'8028979','Precio'=>'142.42','CodigoDeBarra'=>'7790064004092','Pvp'=>'142.42']);\nDB::table('sales')->insert(['Codigo' =>'6300703','Precio'=>'64.90','CodigoDeBarra'=>'7790064002029','Pvp'=>'64.90']);\nDB::table('sales')->insert(['Codigo' =>'8043199','Precio'=>'71.33','CodigoDeBarra'=>'7790064004702','Pvp'=>'71.33']);\nDB::table('sales')->insert(['Codigo' =>'8043194','Precio'=>'47.97','CodigoDeBarra'=>'7790064004665','Pvp'=>'47.97']);\nDB::table('sales')->insert(['Codigo' =>'8043201','Precio'=>'71.30','CodigoDeBarra'=>'7790064004726','Pvp'=>'71.30']);\nDB::table('sales')->insert(['Codigo' =>'8043197','Precio'=>'47.97','CodigoDeBarra'=>'7790064004689','Pvp'=>'47.97']);\nDB::table('sales')->insert(['Codigo' =>'8043198','Precio'=>'71.33','CodigoDeBarra'=>'7790064004696','Pvp'=>'71.33']);\nDB::table('sales')->insert(['Codigo' =>'8043193','Precio'=>'47.97','CodigoDeBarra'=>'7790064004658','Pvp'=>'47.97']);\nDB::table('sales')->insert(['Codigo' =>'8043200','Precio'=>'71.33','CodigoDeBarra'=>'7790064004719','Pvp'=>'71.33']);\nDB::table('sales')->insert(['Codigo' =>'8043196','Precio'=>'47.97','CodigoDeBarra'=>'7790064004672','Pvp'=>'47.97']);\nDB::table('sales')->insert(['Codigo' =>'877011','Precio'=>'808.41','CodigoDeBarra'=>'7795336203012','Pvp'=>'808.41']);\nDB::table('sales')->insert(['Codigo' =>'4284421','Precio'=>'2274.40','CodigoDeBarra'=>'7795336250313','Pvp'=>'2274.40']);\nDB::table('sales')->insert(['Codigo' =>'8039790','Precio'=>'26510.20','CodigoDeBarra'=>'7798147400311','Pvp'=>'26510.20']);\nDB::table('sales')->insert(['Codigo' =>'8007078','Precio'=>'422.45','CodigoDeBarra'=>'7796035469730','Pvp'=>'422.45']);\nDB::table('sales')->insert(['Codigo' =>'5006511','Precio'=>'492.51','CodigoDeBarra'=>'7798088120118','Pvp'=>'492.51']);\nDB::table('sales')->insert(['Codigo' =>'8006929','Precio'=>'333.40','CodigoDeBarra'=>'7791829008515','Pvp'=>'333.40']);\nDB::table('sales')->insert(['Codigo' =>'8010773','Precio'=>'1409.22','CodigoDeBarra'=>'7795380000063','Pvp'=>'1409.22']);\nDB::table('sales')->insert(['Codigo' =>'8007703','Precio'=>'2588.33','CodigoDeBarra'=>'7795380010444','Pvp'=>'2588.33']);\nDB::table('sales')->insert(['Codigo' =>'3564877','Precio'=>'876.08','CodigoDeBarra'=>'7793397050101','Pvp'=>'876.08']);\nDB::table('sales')->insert(['Codigo' =>'8043285','Precio'=>'808.36','CodigoDeBarra'=>'7796285285135','Pvp'=>'808.36']);\nDB::table('sales')->insert(['Codigo' =>'8043286','Precio'=>'808.36','CodigoDeBarra'=>'7796285285999','Pvp'=>'808.36']);\nDB::table('sales')->insert(['Codigo' =>'8043287','Precio'=>'808.36','CodigoDeBarra'=>'7796285286002','Pvp'=>'808.36']);\nDB::table('sales')->insert(['Codigo' =>'8039589','Precio'=>'50100.60','CodigoDeBarra'=>'7797416012811','Pvp'=>'50100.60']);\nDB::table('sales')->insert(['Codigo' =>'637639','Precio'=>'21795.26','CodigoDeBarra'=>'7798008272125','Pvp'=>'21795.26']);\nDB::table('sales')->insert(['Codigo' =>'8032503','Precio'=>'3938.48','CodigoDeBarra'=>'7798140258629','Pvp'=>'3938.48']);\nDB::table('sales')->insert(['Codigo' =>'8018979','Precio'=>'593.24','CodigoDeBarra'=>'7798178620221','Pvp'=>'593.24']);\nDB::table('sales')->insert(['Codigo' =>'8038981','Precio'=>'836.63','CodigoDeBarra'=>'7798178623505','Pvp'=>'836.63']);\nDB::table('sales')->insert(['Codigo' =>'8038979','Precio'=>'759.81','CodigoDeBarra'=>'7798178623369','Pvp'=>'759.81']);\nDB::table('sales')->insert(['Codigo' =>'8038976','Precio'=>'874.65','CodigoDeBarra'=>'7798178623321','Pvp'=>'874.65']);\nDB::table('sales')->insert(['Codigo' =>'8038977','Precio'=>'893.67','CodigoDeBarra'=>'7798178623338','Pvp'=>'893.67']);\nDB::table('sales')->insert(['Codigo' =>'8036517','Precio'=>'395.50','CodigoDeBarra'=>'7798178629187','Pvp'=>'395.50']);\nDB::table('sales')->insert(['Codigo' =>'8038817','Precio'=>'455.58','CodigoDeBarra'=>'7798178622355','Pvp'=>'455.58']);\nDB::table('sales')->insert(['Codigo' =>'8018972','Precio'=>'409.95','CodigoDeBarra'=>'7798178620023','Pvp'=>'409.95']);\nDB::table('sales')->insert(['Codigo' =>'8018971','Precio'=>'409.95','CodigoDeBarra'=>'7798178620030','Pvp'=>'409.95']);\nDB::table('sales')->insert(['Codigo' =>'8018970','Precio'=>'409.95','CodigoDeBarra'=>'7798178620047','Pvp'=>'409.95']);\nDB::table('sales')->insert(['Codigo' =>'8026191','Precio'=>'409.95','CodigoDeBarra'=>'7798178620573','Pvp'=>'409.95']);\nDB::table('sales')->insert(['Codigo' =>'8038983','Precio'=>'836.63','CodigoDeBarra'=>'7798178623406','Pvp'=>'836.63']);\nDB::table('sales')->insert(['Codigo' =>'8038459','Precio'=>'532.40','CodigoDeBarra'=>'7798178622591','Pvp'=>'532.40']);\nDB::table('sales')->insert(['Codigo' =>'8037021','Precio'=>'532.40','CodigoDeBarra'=>'7798178622607','Pvp'=>'532.40']);\nDB::table('sales')->insert(['Codigo' =>'8026213','Precio'=>'722.55','CodigoDeBarra'=>'7798178621495','Pvp'=>'722.55']);\nDB::table('sales')->insert(['Codigo' =>'8026208','Precio'=>'623.66','CodigoDeBarra'=>'7798178620436','Pvp'=>'623.66']);\nDB::table('sales')->insert(['Codigo' =>'8037619','Precio'=>'707.32','CodigoDeBarra'=>'7798178622195','Pvp'=>'707.32']);\nDB::table('sales')->insert(['Codigo' =>'8037755','Precio'=>'532.40','CodigoDeBarra'=>'7798178622287','Pvp'=>'532.40']);\nDB::table('sales')->insert(['Codigo' =>'8026200','Precio'=>'912.69','CodigoDeBarra'=>'7798178620146','Pvp'=>'912.69']);\nDB::table('sales')->insert(['Codigo' =>'8026201','Precio'=>'912.69','CodigoDeBarra'=>'7798178620153','Pvp'=>'912.69']);\nDB::table('sales')->insert(['Codigo' =>'8026204','Precio'=>'897.46','CodigoDeBarra'=>'7798178620887','Pvp'=>'897.46']);\nDB::table('sales')->insert(['Codigo' =>'8026205','Precio'=>'707.32','CodigoDeBarra'=>'7798178620894','Pvp'=>'707.32']);\nDB::table('sales')->insert(['Codigo' =>'8026206','Precio'=>'912.69','CodigoDeBarra'=>'7798178620207','Pvp'=>'912.69']);\nDB::table('sales')->insert(['Codigo' =>'8038975','Precio'=>'897.46','CodigoDeBarra'=>'7798178621525','Pvp'=>'897.46']);\nDB::table('sales')->insert(['Codigo' =>'8036545','Precio'=>'623.66','CodigoDeBarra'=>'7798178622225','Pvp'=>'623.66']);\nDB::table('sales')->insert(['Codigo' =>'8026207','Precio'=>'623.66','CodigoDeBarra'=>'7798178620443','Pvp'=>'623.66']);\nDB::table('sales')->insert(['Codigo' =>'8026194','Precio'=>'493.60','CodigoDeBarra'=>'7798178622140','Pvp'=>'493.60']);\nDB::table('sales')->insert(['Codigo' =>'8038980','Precio'=>'950.76','CodigoDeBarra'=>'7798178623376','Pvp'=>'950.76']);\nDB::table('sales')->insert(['Codigo' =>'8039048','Precio'=>'1140.91','CodigoDeBarra'=>'7798178623307','Pvp'=>'1140.91']);\nDB::table('sales')->insert(['Codigo' =>'8038978','Precio'=>'969.73','CodigoDeBarra'=>'7798178623352','Pvp'=>'969.73']);\nDB::table('sales')->insert(['Codigo' =>'8018978','Precio'=>'623.66','CodigoDeBarra'=>'7798178620214','Pvp'=>'623.66']);\nDB::table('sales')->insert(['Codigo' =>'8026196','Precio'=>'417.55','CodigoDeBarra'=>'7798178621082','Pvp'=>'417.55']);\nDB::table('sales')->insert(['Codigo' =>'8026195','Precio'=>'493.60','CodigoDeBarra'=>'7798178621105','Pvp'=>'493.60']);\nDB::table('sales')->insert(['Codigo' =>'8018974','Precio'=>'493.60','CodigoDeBarra'=>'7798178620061','Pvp'=>'493.60']);\nDB::table('sales')->insert(['Codigo' =>'8038982','Precio'=>'1140.91','CodigoDeBarra'=>'7798178623390','Pvp'=>'1140.91']);\nDB::table('sales')->insert(['Codigo' =>'8038974','Precio'=>'897.46','CodigoDeBarra'=>'7798178621846','Pvp'=>'897.46']);\nDB::table('sales')->insert(['Codigo' =>'8018976','Precio'=>'897.46','CodigoDeBarra'=>'7798178620160','Pvp'=>'897.46']);\nDB::table('sales')->insert(['Codigo' =>'8018977','Precio'=>'912.69','CodigoDeBarra'=>'7798178620184','Pvp'=>'912.69']);\nDB::table('sales')->insert(['Codigo' =>'8026192','Precio'=>'409.95','CodigoDeBarra'=>'7798178620597','Pvp'=>'409.95']);\nDB::table('sales')->insert(['Codigo' =>'8026197','Precio'=>'661.70','CodigoDeBarra'=>'7798178620177','Pvp'=>'661.70']);\nDB::table('sales')->insert(['Codigo' =>'8037716','Precio'=>'459.38','CodigoDeBarra'=>'7798178622683','Pvp'=>'459.38']);\nDB::table('sales')->insert(['Codigo' =>'8026212','Precio'=>'532.40','CodigoDeBarra'=>'7798178621143','Pvp'=>'532.40']);\nDB::table('sales')->insert(['Codigo' =>'8037726','Precio'=>'333.89','CodigoDeBarra'=>'7798178622621','Pvp'=>'333.89']);\nDB::table('sales')->insert(['Codigo' =>'8037724','Precio'=>'358.99','CodigoDeBarra'=>'7798178621761','Pvp'=>'358.99']);\nDB::table('sales')->insert(['Codigo' =>'8037710','Precio'=>'250.22','CodigoDeBarra'=>'7798178621785','Pvp'=>'250.22']);\nDB::table('sales')->insert(['Codigo' =>'8037717','Precio'=>'384.09','CodigoDeBarra'=>'7798178621792','Pvp'=>'384.09']);\nDB::table('sales')->insert(['Codigo' =>'8037722','Precio'=>'400.82','CodigoDeBarra'=>'7798178622171','Pvp'=>'400.82']);\nDB::table('sales')->insert(['Codigo' =>'8037718','Precio'=>'400.82','CodigoDeBarra'=>'7798178621808','Pvp'=>'400.82']);\nDB::table('sales')->insert(['Codigo' =>'8037719','Precio'=>'400.82','CodigoDeBarra'=>'7798178621815','Pvp'=>'400.82']);\nDB::table('sales')->insert(['Codigo' =>'8035189','Precio'=>'304.23','CodigoDeBarra'=>'7798178629149','Pvp'=>'304.23']);\nDB::table('sales')->insert(['Codigo' =>'8026214','Precio'=>'927.89','CodigoDeBarra'=>'7798178621471','Pvp'=>'927.89']);\nDB::table('sales')->insert(['Codigo' =>'5542841','Precio'=>'14866.91','CodigoDeBarra'=>'7795306094947','Pvp'=>'14866.91']);\nDB::table('sales')->insert(['Codigo' =>'5542971','Precio'=>'29734.12','CodigoDeBarra'=>'7795306094961','Pvp'=>'29734.12']);\nDB::table('sales')->insert(['Codigo' =>'5543001','Precio'=>'59467.87','CodigoDeBarra'=>'7795306094954','Pvp'=>'59467.87']);\nDB::table('sales')->insert(['Codigo' =>'5021211','Precio'=>'105.61','CodigoDeBarra'=>'7795347970859','Pvp'=>'105.61']);\nDB::table('sales')->insert(['Codigo' =>'5503421','Precio'=>'114.47','CodigoDeBarra'=>'7795347972624','Pvp'=>'114.47']);\nDB::table('sales')->insert(['Codigo' =>'6233001','Precio'=>'71526.50','CodigoDeBarra'=>'7795320000320','Pvp'=>'71526.50']);\nDB::table('sales')->insert(['Codigo' =>'6500841','Precio'=>'26577.45','CodigoDeBarra'=>'7793397051832','Pvp'=>'26577.45']);\nDB::table('sales')->insert(['Codigo' =>'869931','Precio'=>'186.94','CodigoDeBarra'=>'7791763000408','Pvp'=>'186.94']);\nDB::table('sales')->insert(['Codigo' =>'869932','Precio'=>'275.13','CodigoDeBarra'=>'7791763000422','Pvp'=>'275.13']);\nDB::table('sales')->insert(['Codigo' =>'4079251','Precio'=>'159.78','CodigoDeBarra'=>'7791763004000','Pvp'=>'159.78']);\nDB::table('sales')->insert(['Codigo' =>'8040054','Precio'=>'1213.78','CodigoDeBarra'=>'7791909106698','Pvp'=>'1213.78']);\nDB::table('sales')->insert(['Codigo' =>'6132391','Precio'=>'1926.06','CodigoDeBarra'=>'7793569000194','Pvp'=>'1926.06']);\nDB::table('sales')->insert(['Codigo' =>'521382','Precio'=>'1883.01','CodigoDeBarra'=>'7793569000057','Pvp'=>'1883.01']);\nDB::table('sales')->insert(['Codigo' =>'6026711','Precio'=>'382.89','CodigoDeBarra'=>'7798017201994','Pvp'=>'382.89']);\nDB::table('sales')->insert(['Codigo' =>'6487971','Precio'=>'381.73','CodigoDeBarra'=>'7795371459467','Pvp'=>'381.73']);\nDB::table('sales')->insert(['Codigo' =>'6487841','Precio'=>'1583.45','CodigoDeBarra'=>'7795371459450','Pvp'=>'1583.45']);\nDB::table('sales')->insert(['Codigo' =>'5311844','Precio'=>'539.36','CodigoDeBarra'=>'7795371459191','Pvp'=>'539.36']);\nDB::table('sales')->insert(['Codigo' =>'5311841','Precio'=>'76.69','CodigoDeBarra'=>'7795371459184','Pvp'=>'76.69']);\nDB::table('sales')->insert(['Codigo' =>'5620712','Precio'=>'79.17','CodigoDeBarra'=>'7795371459283','Pvp'=>'79.17']);\nDB::table('sales')->insert(['Codigo' =>'5620714','Precio'=>'541.84','CodigoDeBarra'=>'7795371459276','Pvp'=>'541.84']);\nDB::table('sales')->insert(['Codigo' =>'8012841','Precio'=>'127.61','CodigoDeBarra'=>'7795371000423','Pvp'=>'127.61']);\nDB::table('sales')->insert(['Codigo' =>'8007251','Precio'=>'146.93','CodigoDeBarra'=>'7795371459245','Pvp'=>'146.93']);\nDB::table('sales')->insert(['Codigo' =>'6412391','Precio'=>'13810.53','CodigoDeBarra'=>'7792183002751','Pvp'=>'13810.53']);\nDB::table('sales')->insert(['Codigo' =>'6412392','Precio'=>'27621.14','CodigoDeBarra'=>'7792183002768','Pvp'=>'27621.14']);\nDB::table('sales')->insert(['Codigo' =>'6238422','Precio'=>'39961.75','CodigoDeBarra'=>'7798144380050','Pvp'=>'39961.75']);\nDB::table('sales')->insert(['Codigo' =>'6328421','Precio'=>'19984.17','CodigoDeBarra'=>'7798144380043','Pvp'=>'19984.17']);\nDB::table('sales')->insert(['Codigo' =>'8011611','Precio'=>'109.92','CodigoDeBarra'=>'7795347000976','Pvp'=>'109.92']);\nDB::table('sales')->insert(['Codigo' =>'8042641','Precio'=>'681.49','CodigoDeBarra'=>'7798120265876','Pvp'=>'681.49']);\nDB::table('sales')->insert(['Codigo' =>'4005571','Precio'=>'49957.09','CodigoDeBarra'=>'7798019610237','Pvp'=>'49957.09']);\nDB::table('sales')->insert(['Codigo' =>'8032136','Precio'=>'74933.66','CodigoDeBarra'=>'7798019610497','Pvp'=>'74933.66']);\nDB::table('sales')->insert(['Codigo' =>'8007485','Precio'=>'68.06','CodigoDeBarra'=>'7791520003086','Pvp'=>'68.06']);\nDB::table('sales')->insert(['Codigo' =>'6033164','Precio'=>'68.06','CodigoDeBarra'=>'7791520003093','Pvp'=>'68.06']);\nDB::table('sales')->insert(['Codigo' =>'8011458','Precio'=>'98.63','CodigoDeBarra'=>'7791520025033','Pvp'=>'98.63']);\nDB::table('sales')->insert(['Codigo' =>'8011457','Precio'=>'98.63','CodigoDeBarra'=>'7791520025125','Pvp'=>'98.63']);\nDB::table('sales')->insert(['Codigo' =>'2918651','Precio'=>'2830.37','CodigoDeBarra'=>'7795310000217','Pvp'=>'2830.37']);\nDB::table('sales')->insert(['Codigo' =>'5330212','Precio'=>'74828.41','CodigoDeBarra'=>'7795302000171','Pvp'=>'74828.41']);\nDB::table('sales')->insert(['Codigo' =>'505140','Precio'=>'70404.77','CodigoDeBarra'=>'3582910032465','Pvp'=>'70404.77']);\nDB::table('sales')->insert(['Codigo' =>'9998391','Precio'=>'713.35','CodigoDeBarra'=>'7795345011189','Pvp'=>'713.35']);\nDB::table('sales')->insert(['Codigo' =>'8007465','Precio'=>'1203.77','CodigoDeBarra'=>'7795345120591','Pvp'=>'1203.77']);\nDB::table('sales')->insert(['Codigo' =>'8007120','Precio'=>'870.53','CodigoDeBarra'=>'7798061750417','Pvp'=>'870.53']);\nDB::table('sales')->insert(['Codigo' =>'2511249','Precio'=>'106688.44','CodigoDeBarra'=>'642621017830','Pvp'=>'106688.44']);\nDB::table('sales')->insert(['Codigo' =>'6057263','Precio'=>'18729.03','CodigoDeBarra'=>'7793397077238','Pvp'=>'18729.03']);\nDB::table('sales')->insert(['Codigo' =>'4174111','Precio'=>'303.83','CodigoDeBarra'=>'7896116861979','Pvp'=>'303.83']);\nDB::table('sales')->insert(['Codigo' =>'6550970','Precio'=>'699.62','CodigoDeBarra'=>'7795336294591','Pvp'=>'699.62']);\nDB::table('sales')->insert(['Codigo' =>'6550971','Precio'=>'1210.10','CodigoDeBarra'=>'7795336294607','Pvp'=>'1210.10']);\nDB::table('sales')->insert(['Codigo' =>'6106712','Precio'=>'504.31','CodigoDeBarra'=>'7798006300073','Pvp'=>'504.31']);\nDB::table('sales')->insert(['Codigo' =>'6106711','Precio'=>'256.89','CodigoDeBarra'=>'7798006300059','Pvp'=>'256.89']);\nDB::table('sales')->insert(['Codigo' =>'5216303','Precio'=>'747.55','CodigoDeBarra'=>'7791763001955','Pvp'=>'747.55']);\nDB::table('sales')->insert(['Codigo' =>'395378','Precio'=>'256.68','CodigoDeBarra'=>'7793742000478','Pvp'=>'256.68']);\nDB::table('sales')->insert(['Codigo' =>'5639001','Precio'=>'1356.68','CodigoDeBarra'=>'7795327091338','Pvp'=>'1356.68']);\nDB::table('sales')->insert(['Codigo' =>'6167261','Precio'=>'71083.93','CodigoDeBarra'=>'7798061752442','Pvp'=>'71083.93']);\nDB::table('sales')->insert(['Codigo' =>'6168263','Precio'=>'121577.96','CodigoDeBarra'=>'7798061752473','Pvp'=>'121577.96']);\nDB::table('sales')->insert(['Codigo' =>'6272261','Precio'=>'222078.58','CodigoDeBarra'=>'7798313410014','Pvp'=>'222078.58']);\nDB::table('sales')->insert(['Codigo' =>'4834962','Precio'=>'4564.18','CodigoDeBarra'=>'7798021440181','Pvp'=>'4564.18']);\nDB::table('sales')->insert(['Codigo' =>'4834961','Precio'=>'928.59','CodigoDeBarra'=>'7798021442659','Pvp'=>'928.59']);\nDB::table('sales')->insert(['Codigo' =>'2481633','Precio'=>'332.98','CodigoDeBarra'=>'7795380002098','Pvp'=>'332.98']);\nDB::table('sales')->insert(['Codigo' =>'1527523','Precio'=>'334.23','CodigoDeBarra'=>'7795380002081','Pvp'=>'334.23']);\nDB::table('sales')->insert(['Codigo' =>'8007134','Precio'=>'439.64','CodigoDeBarra'=>'7791829009000','Pvp'=>'439.64']);\nDB::table('sales')->insert(['Codigo' =>'8006925','Precio'=>'49.98','CodigoDeBarra'=>'7791829008027','Pvp'=>'49.98']);\nDB::table('sales')->insert(['Codigo' =>'8006924','Precio'=>'233.46','CodigoDeBarra'=>'7791829008492','Pvp'=>'233.46']);\nDB::table('sales')->insert(['Codigo' =>'8006812','Precio'=>'1761.27','CodigoDeBarra'=>'7795367054171','Pvp'=>'1761.27']);\nDB::table('sales')->insert(['Codigo' =>'8033763','Precio'=>'34569.65','CodigoDeBarra'=>'7795326004803','Pvp'=>'34569.65']);\nDB::table('sales')->insert(['Codigo' =>'5970001','Precio'=>'30104.70','CodigoDeBarra'=>'7795309002628','Pvp'=>'30104.70']);\nDB::table('sales')->insert(['Codigo' =>'5969972','Precio'=>'21570.50','CodigoDeBarra'=>'7795309000426','Pvp'=>'21570.50']);\nDB::table('sales')->insert(['Codigo' =>'9998478','Precio'=>'1612.46','CodigoDeBarra'=>'7792234000033','Pvp'=>'1612.46']);\nDB::table('sales')->insert(['Codigo' =>'4463111','Precio'=>'132.66','CodigoDeBarra'=>'7792234088611','Pvp'=>'132.66']);\nDB::table('sales')->insert(['Codigo' =>'4463113','Precio'=>'547.37','CodigoDeBarra'=>'7792234088635','Pvp'=>'547.37']);\nDB::table('sales')->insert(['Codigo' =>'4463114','Precio'=>'1117.53','CodigoDeBarra'=>'7792234891600','Pvp'=>'1117.53']);\nDB::table('sales')->insert(['Codigo' =>'8031150','Precio'=>'156893.25','CodigoDeBarra'=>'7798019610336','Pvp'=>'156893.25']);\nDB::table('sales')->insert(['Codigo' =>'6175683','Precio'=>'78446.63','CodigoDeBarra'=>'7798019610329','Pvp'=>'78446.63']);\nDB::table('sales')->insert(['Codigo' =>'1003138','Precio'=>'1005.08','CodigoDeBarra'=>'7795356922207','Pvp'=>'1005.08']);\nDB::table('sales')->insert(['Codigo' =>'5852972','Precio'=>'450.34','CodigoDeBarra'=>'7795356000615','Pvp'=>'450.34']);\nDB::table('sales')->insert(['Codigo' =>'8030524','Precio'=>'895.55','CodigoDeBarra'=>'7795356001902','Pvp'=>'895.55']);\nDB::table('sales')->insert(['Codigo' =>'6239261','Precio'=>'1434.09','CodigoDeBarra'=>'7791763002365','Pvp'=>'1434.09']);\nDB::table('sales')->insert(['Codigo' =>'6092551','Precio'=>'2637.55','CodigoDeBarra'=>'7795367000246','Pvp'=>'2637.55']);\nDB::table('sales')->insert(['Codigo' =>'8009739','Precio'=>'322.30','CodigoDeBarra'=>'7798113690050','Pvp'=>'322.30']);\nDB::table('sales')->insert(['Codigo' =>'2788631','Precio'=>'268.22','CodigoDeBarra'=>'7795347000273','Pvp'=>'268.22']);\nDB::table('sales')->insert(['Codigo' =>'2788633','Precio'=>'180.53','CodigoDeBarra'=>'7795347971498','Pvp'=>'180.53']);\nDB::table('sales')->insert(['Codigo' =>'4990325','Precio'=>'259.99','CodigoDeBarra'=>'7796363001701','Pvp'=>'259.99']);\nDB::table('sales')->insert(['Codigo' =>'3956094','Precio'=>'2312.46','CodigoDeBarra'=>'7795336063340','Pvp'=>'2312.46']);\nDB::table('sales')->insert(['Codigo' =>'3955924','Precio'=>'1583.41','CodigoDeBarra'=>'7795336063142','Pvp'=>'1583.41']);\nDB::table('sales')->insert(['Codigo' =>'3964752','Precio'=>'288.13','CodigoDeBarra'=>'7795336063227','Pvp'=>'288.13']);\nDB::table('sales')->insert(['Codigo' =>'3964753','Precio'=>'462.58','CodigoDeBarra'=>'7795336000079','Pvp'=>'462.58']);\nDB::table('sales')->insert(['Codigo' =>'8001792','Precio'=>'1018.14','CodigoDeBarra'=>'7795336063708','Pvp'=>'1018.14']);\nDB::table('sales')->insert(['Codigo' =>'8006927','Precio'=>'6215.98','CodigoDeBarra'=>'7791829009802','Pvp'=>'6215.98']);\nDB::table('sales')->insert(['Codigo' =>'5275613','Precio'=>'9246.44','CodigoDeBarra'=>'7791829009611','Pvp'=>'9246.44']);\nDB::table('sales')->insert(['Codigo' =>'5275611','Precio'=>'1895.16','CodigoDeBarra'=>'7791829009604','Pvp'=>'1895.16']);\nDB::table('sales')->insert(['Codigo' =>'568626','Precio'=>'476.87','CodigoDeBarra'=>'7798035313884','Pvp'=>'476.87']);\nDB::table('sales')->insert(['Codigo' =>'6520261','Precio'=>'123800.33','CodigoDeBarra'=>'7798313410069','Pvp'=>'123800.33']);\nDB::table('sales')->insert(['Codigo' =>'3817231','Precio'=>'168.50','CodigoDeBarra'=>'7792175001892','Pvp'=>'168.50']);\nDB::table('sales')->insert(['Codigo' =>'2787641','Precio'=>'169.80','CodigoDeBarra'=>'7792175001878','Pvp'=>'169.80']);\nDB::table('sales')->insert(['Codigo' =>'2787642','Precio'=>'256.79','CodigoDeBarra'=>'7792175001885','Pvp'=>'256.79']);\nDB::table('sales')->insert(['Codigo' =>'6139001','Precio'=>'748.40','CodigoDeBarra'=>'7793569004369','Pvp'=>'748.40']);\nDB::table('sales')->insert(['Codigo' =>'8029534','Precio'=>'2883.03','CodigoDeBarra'=>'7798180920357','Pvp'=>'2883.03']);\nDB::table('sales')->insert(['Codigo' =>'3628645','Precio'=>'2589.60','CodigoDeBarra'=>'7793397050286','Pvp'=>'2589.60']);\nDB::table('sales')->insert(['Codigo' =>'516978','Precio'=>'7332.16','CodigoDeBarra'=>'7798061750974','Pvp'=>'7332.16']);\nDB::table('sales')->insert(['Codigo' =>'5169781','Precio'=>'2403.68','CodigoDeBarra'=>'7798061750875','Pvp'=>'2403.68']);\nDB::table('sales')->insert(['Codigo' =>'8006917','Precio'=>'644.21','CodigoDeBarra'=>'7791829008508','Pvp'=>'644.21']);\nDB::table('sales')->insert(['Codigo' =>'8038958','Precio'=>'2350.58','CodigoDeBarra'=>'7798299850163','Pvp'=>'2350.58']);\nDB::table('sales')->insert(['Codigo' =>'8038814','Precio'=>'2367.82','CodigoDeBarra'=>'7798299850170','Pvp'=>'2367.82']);\nDB::table('sales')->insert(['Codigo' =>'8007099','Precio'=>'1103.53','CodigoDeBarra'=>'7798021442703','Pvp'=>'1103.53']);\nDB::table('sales')->insert(['Codigo' =>'6394682','Precio'=>'384.22','CodigoDeBarra'=>'7797416012743','Pvp'=>'384.22']);\nDB::table('sales')->insert(['Codigo' =>'6394423','Precio'=>'989.22','CodigoDeBarra'=>'7797416012736','Pvp'=>'989.22']);\nDB::table('sales')->insert(['Codigo' =>'639455','Precio'=>'704.81','CodigoDeBarra'=>'7797416012712','Pvp'=>'704.81']);\nDB::table('sales')->insert(['Codigo' =>'6394552','Precio'=>'1187.07','CodigoDeBarra'=>'7797416012705','Pvp'=>'1187.07']);\nDB::table('sales')->insert(['Codigo' =>'6389841','Precio'=>'587.61','CodigoDeBarra'=>'7798122341035','Pvp'=>'587.61']);\nDB::table('sales')->insert(['Codigo' =>'6036682','Precio'=>'9604.60','CodigoDeBarra'=>'7795348000159','Pvp'=>'9604.60']);\nDB::table('sales')->insert(['Codigo' =>'6036422','Precio'=>'9604.60','CodigoDeBarra'=>'7795348000142','Pvp'=>'9604.60']);\nDB::table('sales')->insert(['Codigo' =>'5144052','Precio'=>'43199.49','CodigoDeBarra'=>'7795990001351','Pvp'=>'43199.49']);\nDB::table('sales')->insert(['Codigo' =>'8020385','Precio'=>'614.10','CodigoDeBarra'=>'4008976681854','Pvp'=>'614.10']);\nDB::table('sales')->insert(['Codigo' =>'8020386','Precio'=>'1228.08','CodigoDeBarra'=>'4008976681878','Pvp'=>'1228.08']);\nDB::table('sales')->insert(['Codigo' =>'8020384','Precio'=>'614.10','CodigoDeBarra'=>'4008976681861','Pvp'=>'614.10']);\nDB::table('sales')->insert(['Codigo' =>'4983772','Precio'=>'5536.94','CodigoDeBarra'=>'7795336292962','Pvp'=>'5536.94']);\nDB::table('sales')->insert(['Codigo' =>'8026544','Precio'=>'7196.03','CodigoDeBarra'=>'7793397051474','Pvp'=>'7196.03']);\nDB::table('sales')->insert(['Codigo' =>'5608261','Precio'=>'896.75','CodigoDeBarra'=>'7795327062017','Pvp'=>'896.75']);\nDB::table('sales')->insert(['Codigo' =>'4129241','Precio'=>'454.27','CodigoDeBarra'=>'7795327000118','Pvp'=>'454.27']);\nDB::table('sales')->insert(['Codigo' =>'5779391','Precio'=>'3445.67','CodigoDeBarra'=>'7798038289162','Pvp'=>'3445.67']);\nDB::table('sales')->insert(['Codigo' =>'5377681','Precio'=>'1825.40','CodigoDeBarra'=>'7791992000187','Pvp'=>'1825.40']);\nDB::table('sales')->insert(['Codigo' =>'531284','Precio'=>'745.36','CodigoDeBarra'=>'7793569000187','Pvp'=>'745.36']);\nDB::table('sales')->insert(['Codigo' =>'6132130','Precio'=>'375.67','CodigoDeBarra'=>'7793569000170','Pvp'=>'375.67']);\nDB::table('sales')->insert(['Codigo' =>'8021822','Precio'=>'407.66','CodigoDeBarra'=>'7795373030510','Pvp'=>'407.66']);\nDB::table('sales')->insert(['Codigo' =>'8022014','Precio'=>'714.03','CodigoDeBarra'=>'7795373030497','Pvp'=>'714.03']);\nDB::table('sales')->insert(['Codigo' =>'9998945','Precio'=>'252.90','CodigoDeBarra'=>'7795373030411','Pvp'=>'252.90']);\nDB::table('sales')->insert(['Codigo' =>'9998946','Precio'=>'458.01','CodigoDeBarra'=>'7795373030428','Pvp'=>'458.01']);\nDB::table('sales')->insert(['Codigo' =>'644171','Precio'=>'26337.07','CodigoDeBarra'=>'7796285279899','Pvp'=>'26337.07']);\nDB::table('sales')->insert(['Codigo' =>'8015729','Precio'=>'590.63','CodigoDeBarra'=>'7791763002211','Pvp'=>'590.63']);\nDB::table('sales')->insert(['Codigo' =>'8017435','Precio'=>'1012.30','CodigoDeBarra'=>'7791763002242','Pvp'=>'1012.30']);\nDB::table('sales')->insert(['Codigo' =>'8040524','Precio'=>'1133.52','CodigoDeBarra'=>'','Pvp'=>'1133.52']);\nDB::table('sales')->insert(['Codigo' =>'8040522','Precio'=>'1133.52','CodigoDeBarra'=>'','Pvp'=>'1133.52']);\nDB::table('sales')->insert(['Codigo' =>'8040523','Precio'=>'1133.52','CodigoDeBarra'=>'','Pvp'=>'1133.52']);\nDB::table('sales')->insert(['Codigo' =>'8035536','Precio'=>'2721.62','CodigoDeBarra'=>'7798321180015','Pvp'=>'2721.62']);\nDB::table('sales')->insert(['Codigo' =>'8040520','Precio'=>'1133.52','CodigoDeBarra'=>'7798321180091','Pvp'=>'1133.52']);\nDB::table('sales')->insert(['Codigo' =>'8040521','Precio'=>'1133.52','CodigoDeBarra'=>'','Pvp'=>'1133.52']);\nDB::table('sales')->insert(['Codigo' =>'5051352','Precio'=>'162.48','CodigoDeBarra'=>'7795345012315','Pvp'=>'162.48']);\nDB::table('sales')->insert(['Codigo' =>'8023735','Precio'=>'230.46','CodigoDeBarra'=>'7798097942503','Pvp'=>'230.46']);\nDB::table('sales')->insert(['Codigo' =>'8019530','Precio'=>'287.14','CodigoDeBarra'=>'7798097942220','Pvp'=>'287.14']);\nDB::table('sales')->insert(['Codigo' =>'8019356','Precio'=>'287.14','CodigoDeBarra'=>'7798097942237','Pvp'=>'287.14']);\nDB::table('sales')->insert(['Codigo' =>'6336551','Precio'=>'396.42','CodigoDeBarra'=>'7792796000625','Pvp'=>'396.42']);\nDB::table('sales')->insert(['Codigo' =>'8039485','Precio'=>'8670.77','CodigoDeBarra'=>'7798180921453','Pvp'=>'8670.77']);\nDB::table('sales')->insert(['Codigo' =>'8039679','Precio'=>'7781.32','CodigoDeBarra'=>'7798180921422','Pvp'=>'7781.32']);\nDB::table('sales')->insert(['Codigo' =>'8039672','Precio'=>'8670.98','CodigoDeBarra'=>'7798180921439','Pvp'=>'8670.98']);\nDB::table('sales')->insert(['Codigo' =>'8039486','Precio'=>'8665.26','CodigoDeBarra'=>'7798180921446','Pvp'=>'8665.26']);\nDB::table('sales')->insert(['Codigo' =>'8039205','Precio'=>'116.32','CodigoDeBarra'=>'7509552831016','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031041','Precio'=>'116.32','CodigoDeBarra'=>'7509552805307','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031054','Precio'=>'116.32','CodigoDeBarra'=>'7509552805383','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8034693','Precio'=>'116.32','CodigoDeBarra'=>'7509552827019','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031025','Precio'=>'116.32','CodigoDeBarra'=>'7509552805628','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031047','Precio'=>'116.32','CodigoDeBarra'=>'7509552805918','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8039203','Precio'=>'199.13','CodigoDeBarra'=>'7509552830644','Pvp'=>'199.13']);\nDB::table('sales')->insert(['Codigo' =>'8031050','Precio'=>'199.13','CodigoDeBarra'=>'7509552914696','Pvp'=>'199.13']);\nDB::table('sales')->insert(['Codigo' =>'8031028','Precio'=>'201.72','CodigoDeBarra'=>'7509552916065','Pvp'=>'201.72']);\nDB::table('sales')->insert(['Codigo' =>'8039204','Precio'=>'116.32','CodigoDeBarra'=>'7509552830965','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031059','Precio'=>'133.79','CodigoDeBarra'=>'7509552805833','Pvp'=>'133.79']);\nDB::table('sales')->insert(['Codigo' =>'8031038','Precio'=>'116.32','CodigoDeBarra'=>'7509552805260','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031052','Precio'=>'116.32','CodigoDeBarra'=>'7509552805345','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8034692','Precio'=>'116.32','CodigoDeBarra'=>'7509552827002','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031022','Precio'=>'116.32','CodigoDeBarra'=>'7509552805581','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'8031044','Precio'=>'116.32','CodigoDeBarra'=>'7509552805871','Pvp'=>'116.32']);\nDB::table('sales')->insert(['Codigo' =>'3901961','Precio'=>'827.33','CodigoDeBarra'=>'7792371906229','Pvp'=>'827.33']);\nDB::table('sales')->insert(['Codigo' =>'3150531','Precio'=>'805.04','CodigoDeBarra'=>'7798260150087','Pvp'=>'805.04']);\nDB::table('sales')->insert(['Codigo' =>'3150611','Precio'=>'805.04','CodigoDeBarra'=>'7798260150155','Pvp'=>'805.04']);\nDB::table('sales')->insert(['Codigo' =>'8041055','Precio'=>'11446.67','CodigoDeBarra'=>'7795306440829','Pvp'=>'11446.67']);\nDB::table('sales')->insert(['Codigo' =>'3951043','Precio'=>'1738.23','CodigoDeBarra'=>'7795347933489','Pvp'=>'1738.23']);\nDB::table('sales')->insert(['Codigo' =>'3951208','Precio'=>'896.81','CodigoDeBarra'=>'7795347933472','Pvp'=>'896.81']);\nDB::table('sales')->insert(['Codigo' =>'3951123','Precio'=>'1984.85','CodigoDeBarra'=>'7795347933465','Pvp'=>'1984.85']);\nDB::table('sales')->insert(['Codigo' =>'3950972','Precio'=>'325.09','CodigoDeBarra'=>'7795347933496','Pvp'=>'325.09']);\nDB::table('sales')->insert(['Codigo' =>'8008917','Precio'=>'157.84','CodigoDeBarra'=>'7798006301988','Pvp'=>'157.84']);\nDB::table('sales')->insert(['Codigo' =>'8008426','Precio'=>'157.84','CodigoDeBarra'=>'7798006301971','Pvp'=>'157.84']);\nDB::table('sales')->insert(['Codigo' =>'9993044','Precio'=>'214.31','CodigoDeBarra'=>'7798006300202','Pvp'=>'214.31']);\nDB::table('sales')->insert(['Codigo' =>'5397423','Precio'=>'405.76','CodigoDeBarra'=>'7795371458774','Pvp'=>'405.76']);\nDB::table('sales')->insert(['Codigo' =>'8041323','Precio'=>'50581.30','CodigoDeBarra'=>'7798035314218','Pvp'=>'50581.30']);\nDB::table('sales')->insert(['Codigo' =>'5204811','Precio'=>'101594.84','CodigoDeBarra'=>'7792371649973','Pvp'=>'101594.84']);\nDB::table('sales')->insert(['Codigo' =>'8026556','Precio'=>'18723.81','CodigoDeBarra'=>'4034341002337','Pvp'=>'18723.81']);\nDB::table('sales')->insert(['Codigo' =>'8038006','Precio'=>'24634.58','CodigoDeBarra'=>'4034341002344','Pvp'=>'24634.58']);\nDB::table('sales')->insert(['Codigo' =>'8043231','Precio'=>'1824240.94','CodigoDeBarra'=>'7798147400526','Pvp'=>'1824240.94']);\nDB::table('sales')->insert(['Codigo' =>'5048140','Precio'=>'4770.04','CodigoDeBarra'=>'7793397075005','Pvp'=>'4770.04']);\nDB::table('sales')->insert(['Codigo' =>'8039429','Precio'=>'1597.45','CodigoDeBarra'=>'7795336290937','Pvp'=>'1597.45']);\nDB::table('sales')->insert(['Codigo' =>'5614391','Precio'=>'900.89','CodigoDeBarra'=>'7795316915225','Pvp'=>'900.89']);\nDB::table('sales')->insert(['Codigo' =>'8038732','Precio'=>'376.79','CodigoDeBarra'=>'3600541744523','Pvp'=>'376.79']);\nDB::table('sales')->insert(['Codigo' =>'8037583','Precio'=>'376.79','CodigoDeBarra'=>'3600541594937','Pvp'=>'376.79']);\nDB::table('sales')->insert(['Codigo' =>'8037235','Precio'=>'376.79','CodigoDeBarra'=>'7509552455557','Pvp'=>'376.79']);\nDB::table('sales')->insert(['Codigo' =>'8033012','Precio'=>'494.85','CodigoDeBarra'=>'7798129413759','Pvp'=>'494.85']);\nDB::table('sales')->insert(['Codigo' =>'8041869','Precio'=>'951.28','CodigoDeBarra'=>'7798129414275','Pvp'=>'951.28']);\nDB::table('sales')->insert(['Codigo' =>'642968','Precio'=>'318861.48','CodigoDeBarra'=>'7792371512253','Pvp'=>'318861.48']);\nDB::table('sales')->insert(['Codigo' =>'642542','Precio'=>'36289.42','CodigoDeBarra'=>'7795367009621','Pvp'=>'36289.42']);\nDB::table('sales')->insert(['Codigo' =>'6289262','Precio'=>'30002.52','CodigoDeBarra'=>'7793397051351','Pvp'=>'30002.52']);\nDB::table('sales')->insert(['Codigo' =>'8040539','Precio'=>'21314.27','CodigoDeBarra'=>'7798035314041','Pvp'=>'21314.27']);\nDB::table('sales')->insert(['Codigo' =>'4769703','Precio'=>'330.79','CodigoDeBarra'=>'7795367053679','Pvp'=>'330.79']);\nDB::table('sales')->insert(['Codigo' =>'595368','Precio'=>'14967.97','CodigoDeBarra'=>'7798021443588','Pvp'=>'14967.97']);\nDB::table('sales')->insert(['Codigo' =>'595355','Precio'=>'3291.12','CodigoDeBarra'=>'7798021443571','Pvp'=>'3291.12']);\nDB::table('sales')->insert(['Codigo' =>'595055','Precio'=>'1893.61','CodigoDeBarra'=>'7798088128909','Pvp'=>'1893.61']);\nDB::table('sales')->insert(['Codigo' =>'595042','Precio'=>'523.39','CodigoDeBarra'=>'7798088128893','Pvp'=>'523.39']);\nDB::table('sales')->insert(['Codigo' =>'502239','Precio'=>'936.96','CodigoDeBarra'=>'7798035313525','Pvp'=>'936.96']);\nDB::table('sales')->insert(['Codigo' =>'502223','Precio'=>'187.46','CodigoDeBarra'=>'7798035313518','Pvp'=>'187.46']);\nDB::table('sales')->insert(['Codigo' =>'4060761','Precio'=>'14849.12','CodigoDeBarra'=>'7795990000293','Pvp'=>'14849.12']);\nDB::table('sales')->insert(['Codigo' =>'4060681','Precio'=>'3037.52','CodigoDeBarra'=>'7795990000309','Pvp'=>'3037.52']);\nDB::table('sales')->insert(['Codigo' =>'8023013','Precio'=>'570.88','CodigoDeBarra'=>'7795379100897','Pvp'=>'570.88']);\nDB::table('sales')->insert(['Codigo' =>'8008709','Precio'=>'53.04','CodigoDeBarra'=>'7798140258308','Pvp'=>'53.04']);\nDB::table('sales')->insert(['Codigo' =>'8031480','Precio'=>'105.38','CodigoDeBarra'=>'7798140258315','Pvp'=>'105.38']);\nDB::table('sales')->insert(['Codigo' =>'8007128','Precio'=>'17157.84','CodigoDeBarra'=>'7791824117502','Pvp'=>'17157.84']);\nDB::table('sales')->insert(['Codigo' =>'2285613','Precio'=>'38605.20','CodigoDeBarra'=>'7791824117519','Pvp'=>'38605.20']);\nDB::table('sales')->insert(['Codigo' =>'2351862','Precio'=>'370.93','CodigoDeBarra'=>'7795336204118','Pvp'=>'370.93']);\nDB::table('sales')->insert(['Codigo' =>'8001766','Precio'=>'893.16','CodigoDeBarra'=>'7795336204125','Pvp'=>'893.16']);\nDB::table('sales')->insert(['Codigo' =>'8008936','Precio'=>'645.34','CodigoDeBarra'=>'7798021110220','Pvp'=>'645.34']);\nDB::table('sales')->insert(['Codigo' =>'644968','Precio'=>'36114.08','CodigoDeBarra'=>'7792183002843','Pvp'=>'36114.08']);\nDB::table('sales')->insert(['Codigo' =>'5328971','Precio'=>'14620.61','CodigoDeBarra'=>'7792069094023','Pvp'=>'14620.61']);\nDB::table('sales')->insert(['Codigo' =>'8006873','Precio'=>'4892.52','CodigoDeBarra'=>'7792069005708','Pvp'=>'4892.52']);\nDB::table('sales')->insert(['Codigo' =>'4182451','Precio'=>'1168.11','CodigoDeBarra'=>'7795367055277','Pvp'=>'1168.11']);\nDB::table('sales')->insert(['Codigo' =>'4182371','Precio'=>'722.40','CodigoDeBarra'=>'7795367054898','Pvp'=>'722.40']);\nDB::table('sales')->insert(['Codigo' =>'8006863','Precio'=>'1434.24','CodigoDeBarra'=>'7795348250370','Pvp'=>'1434.24']);\nDB::table('sales')->insert(['Codigo' =>'4544891','Precio'=>'564.89','CodigoDeBarra'=>'7795348250387','Pvp'=>'564.89']);\nDB::table('sales')->insert(['Codigo' =>'6081977','Precio'=>'220386.25','CodigoDeBarra'=>'7795306997675','Pvp'=>'220386.25']);\nDB::table('sales')->insert(['Codigo' =>'8038644','Precio'=>'256.52','CodigoDeBarra'=>'47400188082','Pvp'=>'256.52']);\nDB::table('sales')->insert(['Codigo' =>'8041169','Precio'=>'120.56','CodigoDeBarra'=>'7500435140928','Pvp'=>'120.56']);\nDB::table('sales')->insert(['Codigo' =>'8041168','Precio'=>'171.20','CodigoDeBarra'=>'7500435140591','Pvp'=>'171.20']);\nDB::table('sales')->insert(['Codigo' =>'8038372','Precio'=>'171.18','CodigoDeBarra'=>'7702018913688','Pvp'=>'171.18']);\nDB::table('sales')->insert(['Codigo' =>'8038373','Precio'=>'120.56','CodigoDeBarra'=>'7500435129947','Pvp'=>'120.56']);\nDB::table('sales')->insert(['Codigo' =>'8032286','Precio'=>'171.20','CodigoDeBarra'=>'7500435113465','Pvp'=>'171.20']);\nDB::table('sales')->insert(['Codigo' =>'8013427','Precio'=>'255.04','CodigoDeBarra'=>'7702018037865','Pvp'=>'255.04']);\nDB::table('sales')->insert(['Codigo' =>'8013428','Precio'=>'498.98','CodigoDeBarra'=>'7702018037896','Pvp'=>'498.98']);\nDB::table('sales')->insert(['Codigo' =>'8013426','Precio'=>'290.67','CodigoDeBarra'=>'7702018037803','Pvp'=>'290.67']);\nDB::table('sales')->insert(['Codigo' =>'8038645','Precio'=>'450.45','CodigoDeBarra'=>'47400131903','Pvp'=>'450.45']);\nDB::table('sales')->insert(['Codigo' =>'8031430','Precio'=>'254.71','CodigoDeBarra'=>'7500435121002','Pvp'=>'254.71']);\nDB::table('sales')->insert(['Codigo' =>'8031429','Precio'=>'279.27','CodigoDeBarra'=>'7500435120920','Pvp'=>'279.27']);\nDB::table('sales')->insert(['Codigo' =>'8016948','Precio'=>'164.16','CodigoDeBarra'=>'7702018072392','Pvp'=>'164.16']);\nDB::table('sales')->insert(['Codigo' =>'4856662','Precio'=>'233.73','CodigoDeBarra'=>'7795328051522','Pvp'=>'233.73']);\nDB::table('sales')->insert(['Codigo' =>'6269421','Precio'=>'296439.44','CodigoDeBarra'=>'4048846007766','Pvp'=>'296439.44']);\nDB::table('sales')->insert(['Codigo' =>'6269551','Precio'=>'304240.79','CodigoDeBarra'=>'4048846007759','Pvp'=>'304240.79']);\nDB::table('sales')->insert(['Codigo' =>'6269681','Precio'=>'321534.52','CodigoDeBarra'=>'4048846007742','Pvp'=>'321534.52']);\nDB::table('sales')->insert(['Codigo' =>'6269711','Precio'=>'327643.68','CodigoDeBarra'=>'4048846007735','Pvp'=>'327643.68']);\nDB::table('sales')->insert(['Codigo' =>'6190130','Precio'=>'80362.92','CodigoDeBarra'=>'7793397090206','Pvp'=>'80362.92']);\nDB::table('sales')->insert(['Codigo' =>'3028789','Precio'=>'558.78','CodigoDeBarra'=>'7790375003296','Pvp'=>'558.78']);\nDB::table('sales')->insert(['Codigo' =>'5224032','Precio'=>'72183.74','CodigoDeBarra'=>'7795306294750','Pvp'=>'72183.74']);\nDB::table('sales')->insert(['Codigo' =>'5224191','Precio'=>'144367.50','CodigoDeBarra'=>'7795306365085','Pvp'=>'144367.50']);\nDB::table('sales')->insert(['Codigo' =>'8040240','Precio'=>'442.96','CodigoDeBarra'=>'612197755559','Pvp'=>'442.96']);\nDB::table('sales')->insert(['Codigo' =>'4109022','Precio'=>'33308.55','CodigoDeBarra'=>'7798025130163','Pvp'=>'33308.55']);\nDB::table('sales')->insert(['Codigo' =>'8028062','Precio'=>'56380.47','CodigoDeBarra'=>'324359574037','Pvp'=>'56380.47']);\nDB::table('sales')->insert(['Codigo' =>'440470','Precio'=>'400.87','CodigoDeBarra'=>'7798021110183','Pvp'=>'400.87']);\nDB::table('sales')->insert(['Codigo' =>'8042830','Precio'=>'129.37','CodigoDeBarra'=>'7798140253860','Pvp'=>'129.37']);\nDB::table('sales')->insert(['Codigo' =>'8042832','Precio'=>'129.37','CodigoDeBarra'=>'7798140253877','Pvp'=>'129.37']);\nDB::table('sales')->insert(['Codigo' =>'8028510','Precio'=>'167.47','CodigoDeBarra'=>'779814025928','Pvp'=>'167.47']);\nDB::table('sales')->insert(['Codigo' =>'8013679','Precio'=>'275.87','CodigoDeBarra'=>'7798140251552','Pvp'=>'275.87']);\nDB::table('sales')->insert(['Codigo' =>'8019502','Precio'=>'329.68','CodigoDeBarra'=>'7798140251514','Pvp'=>'329.68']);\nDB::table('sales')->insert(['Codigo' =>'8023133','Precio'=>'173.67','CodigoDeBarra'=>'7798140251729','Pvp'=>'173.67']);\nDB::table('sales')->insert(['Codigo' =>'8027509','Precio'=>'319.99','CodigoDeBarra'=>'7798140259077','Pvp'=>'319.99']);\nDB::table('sales')->insert(['Codigo' =>'8034924','Precio'=>'146.46','CodigoDeBarra'=>'7798140253082','Pvp'=>'146.46']);\nDB::table('sales')->insert(['Codigo' =>'8009525','Precio'=>'371.66','CodigoDeBarra'=>'7798140251910','Pvp'=>'371.66']);\nDB::table('sales')->insert(['Codigo' =>'8038710','Precio'=>'118.14','CodigoDeBarra'=>'7798140259688','Pvp'=>'118.14']);\nDB::table('sales')->insert(['Codigo' =>'8038711','Precio'=>'118.14','CodigoDeBarra'=>'7798140259671','Pvp'=>'118.14']);\nDB::table('sales')->insert(['Codigo' =>'8016011','Precio'=>'283.99','CodigoDeBarra'=>'7798140251521','Pvp'=>'283.99']);\nDB::table('sales')->insert(['Codigo' =>'8012624','Precio'=>'160.03','CodigoDeBarra'=>'7798140251545','Pvp'=>'160.03']);\nDB::table('sales')->insert(['Codigo' =>'8028739','Precio'=>'283.99','CodigoDeBarra'=>'7798140251040','Pvp'=>'283.99']);\nDB::table('sales')->insert(['Codigo' =>'8038883','Precio'=>'166.92','CodigoDeBarra'=>'7798140259558','Pvp'=>'166.92']);\nDB::table('sales')->insert(['Codigo' =>'8007406','Precio'=>'146.26','CodigoDeBarra'=>'7798140251569','Pvp'=>'146.26']);\nDB::table('sales')->insert(['Codigo' =>'8007408','Precio'=>'275.87','CodigoDeBarra'=>'7798140251576','Pvp'=>'275.87']);\nDB::table('sales')->insert(['Codigo' =>'8019503','Precio'=>'329.68','CodigoDeBarra'=>'7798140251309','Pvp'=>'329.68']);\nDB::table('sales')->insert(['Codigo' =>'8028509','Precio'=>'133.75','CodigoDeBarra'=>'7798140259282','Pvp'=>'133.75']);\nDB::table('sales')->insert(['Codigo' =>'8023132','Precio'=>'150.06','CodigoDeBarra'=>'7798140251705','Pvp'=>'150.06']);\nDB::table('sales')->insert(['Codigo' =>'8007407','Precio'=>'275.87','CodigoDeBarra'=>'7798140251583','Pvp'=>'275.87']);\nDB::table('sales')->insert(['Codigo' =>'8036427','Precio'=>'329.68','CodigoDeBarra'=>'7798140259084','Pvp'=>'329.68']);\nDB::table('sales')->insert(['Codigo' =>'8040604','Precio'=>'284.21','CodigoDeBarra'=>'7798140259992','Pvp'=>'284.21']);\nDB::table('sales')->insert(['Codigo' =>'8033864','Precio'=>'459.11','CodigoDeBarra'=>'7798140258285','Pvp'=>'459.11']);\nDB::table('sales')->insert(['Codigo' =>'8026720','Precio'=>'557.49','CodigoDeBarra'=>'7798140252597','Pvp'=>'557.49']);\nDB::table('sales')->insert(['Codigo' =>'8030565','Precio'=>'335.23','CodigoDeBarra'=>'7798140253181','Pvp'=>'335.23']);\nDB::table('sales')->insert(['Codigo' =>'8017071','Precio'=>'275.87','CodigoDeBarra'=>'7798140251682','Pvp'=>'275.87']);\nDB::table('sales')->insert(['Codigo' =>'8031676','Precio'=>'275.80','CodigoDeBarra'=>'7798140258223','Pvp'=>'275.80']);\nDB::table('sales')->insert(['Codigo' =>'8040051','Precio'=>'183.37','CodigoDeBarra'=>'7798140259794','Pvp'=>'183.37']);\nDB::table('sales')->insert(['Codigo' =>'8040050','Precio'=>'197.43','CodigoDeBarra'=>'7798140253266','Pvp'=>'197.43']);\nDB::table('sales')->insert(['Codigo' =>'8010361','Precio'=>'11036.01','CodigoDeBarra'=>'7798025130408','Pvp'=>'11036.01']);\nDB::table('sales')->insert(['Codigo' =>'4741221','Precio'=>'23476.70','CodigoDeBarra'=>'7798025130248','Pvp'=>'23476.70']);\nDB::table('sales')->insert(['Codigo' =>'8006802','Precio'=>'705.62','CodigoDeBarra'=>'7793397050798','Pvp'=>'705.62']);\nDB::table('sales')->insert(['Codigo' =>'6291420','Precio'=>'22722.35','CodigoDeBarra'=>'7793397077276','Pvp'=>'22722.35']);\nDB::table('sales')->insert(['Codigo' =>'8021102','Precio'=>'208.68','CodigoDeBarra'=>'7795368001372','Pvp'=>'208.68']);\nDB::table('sales')->insert(['Codigo' =>'8018329','Precio'=>'197.36','CodigoDeBarra'=>'7795368001105','Pvp'=>'197.36']);\nDB::table('sales')->insert(['Codigo' =>'5713552','Precio'=>'113.32','CodigoDeBarra'=>'7798113691354','Pvp'=>'113.32']);\nDB::table('sales')->insert(['Codigo' =>'8029596','Precio'=>'7267.99','CodigoDeBarra'=>'7792183002522','Pvp'=>'7267.99']);\nDB::table('sales')->insert(['Codigo' =>'8006871','Precio'=>'13563.28','CodigoDeBarra'=>'7792069282024','Pvp'=>'13563.28']);\nDB::table('sales')->insert(['Codigo' =>'5390711','Precio'=>'2751.43','CodigoDeBarra'=>'7792069282017','Pvp'=>'2751.43']);\nDB::table('sales')->insert(['Codigo' =>'8024930','Precio'=>'64.20','CodigoDeBarra'=>'7794207000903','Pvp'=>'64.20']);\nDB::table('sales')->insert(['Codigo' =>'5425393','Precio'=>'50140.52','CodigoDeBarra'=>'7798019610473','Pvp'=>'50140.52']);\nDB::table('sales')->insert(['Codigo' =>'5425394','Precio'=>'75211.45','CodigoDeBarra'=>'7798019610541','Pvp'=>'75211.45']);\nDB::table('sales')->insert(['Codigo' =>'8032829','Precio'=>'483.70','CodigoDeBarra'=>'7798129413667','Pvp'=>'483.70']);\nDB::table('sales')->insert(['Codigo' =>'8007296','Precio'=>'279.20','CodigoDeBarra'=>'70942901536','Pvp'=>'279.20']);\nDB::table('sales')->insert(['Codigo' =>'8018294','Precio'=>'332.97','CodigoDeBarra'=>'70942003193','Pvp'=>'332.97']);\nDB::table('sales')->insert(['Codigo' =>'8017424','Precio'=>'332.97','CodigoDeBarra'=>'70942003247','Pvp'=>'332.97']);\nDB::table('sales')->insert(['Codigo' =>'8038941','Precio'=>'240.65','CodigoDeBarra'=>'70942125925','Pvp'=>'240.65']);\nDB::table('sales')->insert(['Codigo' =>'8026846','Precio'=>'180.90','CodigoDeBarra'=>'7798142350499','Pvp'=>'180.90']);\nDB::table('sales')->insert(['Codigo' =>'8005524','Precio'=>'220.35','CodigoDeBarra'=>'70942122863','Pvp'=>'220.35']);\nDB::table('sales')->insert(['Codigo' =>'8012581','Precio'=>'113.51','CodigoDeBarra'=>'70942304344','Pvp'=>'113.51']);\nDB::table('sales')->insert(['Codigo' =>'2317461','Precio'=>'1038.20','CodigoDeBarra'=>'7792796484111','Pvp'=>'1038.20']);\nDB::table('sales')->insert(['Codigo' =>'2317462','Precio'=>'2335.71','CodigoDeBarra'=>'7792796484135','Pvp'=>'2335.71']);\nDB::table('sales')->insert(['Codigo' =>'630255','Precio'=>'16336.18','CodigoDeBarra'=>'7798061751780','Pvp'=>'16336.18']);\nDB::table('sales')->insert(['Codigo' =>'310764','Precio'=>'81564.13','CodigoDeBarra'=>'7798098720353','Pvp'=>'81564.13']);\nDB::table('sales')->insert(['Codigo' =>'8038505','Precio'=>'40782.14','CodigoDeBarra'=>'7798098720346','Pvp'=>'40782.14']);\nDB::table('sales')->insert(['Codigo' =>'8008133','Precio'=>'339.06','CodigoDeBarra'=>'7795379120017','Pvp'=>'339.06']);\nDB::table('sales')->insert(['Codigo' =>'8041527','Precio'=>'39115.73','CodigoDeBarra'=>'7795367548786','Pvp'=>'39115.73']);\nDB::table('sales')->insert(['Codigo' =>'8040961','Precio'=>'147.10','CodigoDeBarra'=>'8427426026766','Pvp'=>'147.10']);\nDB::table('sales')->insert(['Codigo' =>'642413','Precio'=>'595072.38','CodigoDeBarra'=>'7792183002744','Pvp'=>'595072.38']);\nDB::table('sales')->insert(['Codigo' =>'594513','Precio'=>'818.57','CodigoDeBarra'=>'7798006871597','Pvp'=>'818.57']);\nDB::table('sales')->insert(['Codigo' =>'5945261','Precio'=>'1478.46','CodigoDeBarra'=>'7798006871603','Pvp'=>'1478.46']);\nDB::table('sales')->insert(['Codigo' =>'8037132','Precio'=>'229.61','CodigoDeBarra'=>'7500435019491','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8042435','Precio'=>'220.77','CodigoDeBarra'=>'7500435147583','Pvp'=>'220.77']);\nDB::table('sales')->insert(['Codigo' =>'8041346','Precio'=>'214.33','CodigoDeBarra'=>'7500435147484','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'8042437','Precio'=>'220.78','CodigoDeBarra'=>'7500435147521','Pvp'=>'220.78']);\nDB::table('sales')->insert(['Codigo' =>'8041354','Precio'=>'214.33','CodigoDeBarra'=>'7500435147569','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'8041350','Precio'=>'214.33','CodigoDeBarra'=>'7500435147507','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'8041355','Precio'=>'214.33','CodigoDeBarra'=>'7500435147576','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'8041353','Precio'=>'214.33','CodigoDeBarra'=>'7500435147552','Pvp'=>'214.33']);\nDB::table('sales')->insert(['Codigo' =>'8037149','Precio'=>'229.61','CodigoDeBarra'=>'7500435019514','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037112','Precio'=>'229.61','CodigoDeBarra'=>'7500435020084','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8039050','Precio'=>'229.61','CodigoDeBarra'=>'7500435138000','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8042432','Precio'=>'236.47','CodigoDeBarra'=>'7500435142557','Pvp'=>'236.47']);\nDB::table('sales')->insert(['Codigo' =>'8037143','Precio'=>'229.61','CodigoDeBarra'=>'7500435019750','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037108','Precio'=>'229.61','CodigoDeBarra'=>'7500435020008','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037114','Precio'=>'229.61','CodigoDeBarra'=>'7500435019880','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037123','Precio'=>'229.61','CodigoDeBarra'=>'7500435020169','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037144','Precio'=>'229.61','CodigoDeBarra'=>'7500435019620','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037113','Precio'=>'229.61','CodigoDeBarra'=>'7500435019583','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037110','Precio'=>'229.61','CodigoDeBarra'=>'7500435019545','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037105','Precio'=>'229.61','CodigoDeBarra'=>'7500435019712','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037124','Precio'=>'229.61','CodigoDeBarra'=>'7500435020671','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'8037145','Precio'=>'229.61','CodigoDeBarra'=>'7500435125130','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'5834712','Precio'=>'258922.37','CodigoDeBarra'=>'7798122690119','Pvp'=>'258922.37']);\nDB::table('sales')->insert(['Codigo' =>'58102','Precio'=>'479.95','CodigoDeBarra'=>'7795349011659','Pvp'=>'479.95']);\nDB::table('sales')->insert(['Codigo' =>'637939','Precio'=>'351963.93','CodigoDeBarra'=>'7795326006791','Pvp'=>'351963.93']);\nDB::table('sales')->insert(['Codigo' =>'637968','Precio'=>'362626.26','CodigoDeBarra'=>'7795326006807','Pvp'=>'362626.26']);\nDB::table('sales')->insert(['Codigo' =>'637955','Precio'=>'371227.89','CodigoDeBarra'=>'7795326006814','Pvp'=>'371227.89']);\nDB::table('sales')->insert(['Codigo' =>'637942','Precio'=>'340684.03','CodigoDeBarra'=>'7795326006784','Pvp'=>'340684.03']);\nDB::table('sales')->insert(['Codigo' =>'619671','Precio'=>'1550.67','CodigoDeBarra'=>'7798163500118','Pvp'=>'1550.67']);\nDB::table('sales')->insert(['Codigo' =>'619655','Precio'=>'189.05','CodigoDeBarra'=>'7798163500095','Pvp'=>'189.05']);\nDB::table('sales')->insert(['Codigo' =>'8038746','Precio'=>'4726.28','CodigoDeBarra'=>'7798163500194','Pvp'=>'4726.28']);\nDB::table('sales')->insert(['Codigo' =>'619668','Precio'=>'363.92','CodigoDeBarra'=>'7798163500101','Pvp'=>'363.92']);\nDB::table('sales')->insert(['Codigo' =>'6196683','Precio'=>'9097.87','CodigoDeBarra'=>'7798163500200','Pvp'=>'9097.87']);\nDB::table('sales')->insert(['Codigo' =>'5664681','Precio'=>'4508.00','CodigoDeBarra'=>'7795355998098','Pvp'=>'4508.00']);\nDB::table('sales')->insert(['Codigo' =>'5664711','Precio'=>'9573.18','CodigoDeBarra'=>'7795355998104','Pvp'=>'9573.18']);\nDB::table('sales')->insert(['Codigo' =>'8039704','Precio'=>'642975.66','CodigoDeBarra'=>'7792371092786','Pvp'=>'642975.66']);\nDB::table('sales')->insert(['Codigo' =>'8039789','Precio'=>'918537.93','CodigoDeBarra'=>'7792371092779','Pvp'=>'918537.93']);\nDB::table('sales')->insert(['Codigo' =>'8039703','Precio'=>'183707.60','CodigoDeBarra'=>'792371092793','Pvp'=>'183707.60']);\nDB::table('sales')->insert(['Codigo' =>'8039762','Precio'=>'367415.19','CodigoDeBarra'=>'7792371092809','Pvp'=>'367415.19']);\nDB::table('sales')->insert(['Codigo' =>'5231161','Precio'=>'11618.86','CodigoDeBarra'=>'7794640408069','Pvp'=>'11618.86']);\nDB::table('sales')->insert(['Codigo' =>'8033822','Precio'=>'185.36','CodigoDeBarra'=>'190679000118','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8033828','Precio'=>'185.36','CodigoDeBarra'=>'190679000170','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8033817','Precio'=>'185.36','CodigoDeBarra'=>'190679000187','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8033821','Precio'=>'185.36','CodigoDeBarra'=>'190679000019','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8033827','Precio'=>'185.36','CodigoDeBarra'=>'190679000071','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8033816','Precio'=>'185.36','CodigoDeBarra'=>'190679000088','Pvp'=>'185.36']);\nDB::table('sales')->insert(['Codigo' =>'8009870','Precio'=>'171431.12','CodigoDeBarra'=>'7792371238931','Pvp'=>'171431.12']);\nDB::table('sales')->insert(['Codigo' =>'6354681','Precio'=>'171431.12','CodigoDeBarra'=>'7792371410931','Pvp'=>'171431.12']);\nDB::table('sales')->insert(['Codigo' =>'5286711','Precio'=>'170.06','CodigoDeBarra'=>'7795380003941','Pvp'=>'170.06']);\nDB::table('sales')->insert(['Codigo' =>'5286712','Precio'=>'302.59','CodigoDeBarra'=>'7795380003958','Pvp'=>'302.59']);\nDB::table('sales')->insert(['Codigo' =>'5681971','Precio'=>'327.37','CodigoDeBarra'=>'7795380010512','Pvp'=>'327.37']);\nDB::table('sales')->insert(['Codigo' =>'5681843','Precio'=>'275.84','CodigoDeBarra'=>'7795380010529','Pvp'=>'275.84']);\nDB::table('sales')->insert(['Codigo' =>'5672392','Precio'=>'372.12','CodigoDeBarra'=>'7795380004580','Pvp'=>'372.12']);\nDB::table('sales')->insert(['Codigo' =>'8015102','Precio'=>'1414.60','CodigoDeBarra'=>'7795380000834','Pvp'=>'1414.60']);\nDB::table('sales')->insert(['Codigo' =>'5941421','Precio'=>'13438.46','CodigoDeBarra'=>'7795355000104','Pvp'=>'13438.46']);\nDB::table('sales')->insert(['Codigo' =>'4253651','Precio'=>'3358.87','CodigoDeBarra'=>'7795355000036','Pvp'=>'3358.87']);\nDB::table('sales')->insert(['Codigo' =>'637097','Precio'=>'60626.62','CodigoDeBarra'=>'7795355000685','Pvp'=>'60626.62']);\nDB::table('sales')->insert(['Codigo' =>'2351601','Precio'=>'672.97','CodigoDeBarra'=>'7795336218023','Pvp'=>'672.97']);\nDB::table('sales')->insert(['Codigo' =>'4491752','Precio'=>'2211.67','CodigoDeBarra'=>'7796035474147','Pvp'=>'2211.67']);\nDB::table('sales')->insert(['Codigo' =>'639997','Precio'=>'3159.43','CodigoDeBarra'=>'7798180920265','Pvp'=>'3159.43']);\nDB::table('sales')->insert(['Codigo' =>'562471','Precio'=>'2550.41','CodigoDeBarra'=>'7798035313778','Pvp'=>'2550.41']);\nDB::table('sales')->insert(['Codigo' =>'3813931','Precio'=>'341.83','CodigoDeBarra'=>'7791763001191','Pvp'=>'341.83']);\nDB::table('sales')->insert(['Codigo' =>'3813932','Precio'=>'498.68','CodigoDeBarra'=>'7791763001214','Pvp'=>'498.68']);\nDB::table('sales')->insert(['Codigo' =>'4700471','Precio'=>'258.65','CodigoDeBarra'=>'7791763337726','Pvp'=>'258.65']);\nDB::table('sales')->insert(['Codigo' =>'8024322','Precio'=>'114.58','CodigoDeBarra'=>'7794640171536','Pvp'=>'114.58']);\nDB::table('sales')->insert(['Codigo' =>'4037911','Precio'=>'214.56','CodigoDeBarra'=>'7795378001690','Pvp'=>'214.56']);\nDB::table('sales')->insert(['Codigo' =>'4037912','Precio'=>'405.71','CodigoDeBarra'=>'7795378001706','Pvp'=>'405.71']);\nDB::table('sales')->insert(['Codigo' =>'4038081','Precio'=>'208.24','CodigoDeBarra'=>'7795378001713','Pvp'=>'208.24']);\nDB::table('sales')->insert(['Codigo' =>'6210001','Precio'=>'13754.52','CodigoDeBarra'=>'7798098720599','Pvp'=>'13754.52']);\nDB::table('sales')->insert(['Codigo' =>'6210002','Precio'=>'27509.03','CodigoDeBarra'=>'7798098720605','Pvp'=>'27509.03']);\nDB::table('sales')->insert(['Codigo' =>'6210004','Precio'=>'55018.06','CodigoDeBarra'=>'7798098720629','Pvp'=>'55018.06']);\nDB::table('sales')->insert(['Codigo' =>'611226','Precio'=>'1451.27','CodigoDeBarra'=>'7793569003751','Pvp'=>'1451.27']);\nDB::table('sales')->insert(['Codigo' =>'4187581','Precio'=>'176.08','CodigoDeBarra'=>'7791763337603','Pvp'=>'176.08']);\nDB::table('sales')->insert(['Codigo' =>'4187582','Precio'=>'306.23','CodigoDeBarra'=>'7791763337610','Pvp'=>'306.23']);\nDB::table('sales')->insert(['Codigo' =>'4187583','Precio'=>'528.97','CodigoDeBarra'=>'7791763337658','Pvp'=>'528.97']);\nDB::table('sales')->insert(['Codigo' =>'4187584','Precio'=>'819.16','CodigoDeBarra'=>'7791763337924','Pvp'=>'819.16']);\nDB::table('sales')->insert(['Codigo' =>'8042546','Precio'=>'168.70','CodigoDeBarra'=>'7794626997921','Pvp'=>'168.70']);\nDB::table('sales')->insert(['Codigo' =>'8030567','Precio'=>'434.21','CodigoDeBarra'=>'7794626997952','Pvp'=>'434.21']);\nDB::table('sales')->insert(['Codigo' =>'8042545','Precio'=>'168.70','CodigoDeBarra'=>'7794626997914','Pvp'=>'168.70']);\nDB::table('sales')->insert(['Codigo' =>'8009270','Precio'=>'162.96','CodigoDeBarra'=>'7794626008252','Pvp'=>'162.96']);\nDB::table('sales')->insert(['Codigo' =>'8027681','Precio'=>'575.11','CodigoDeBarra'=>'7794626008269','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8022313','Precio'=>'302.97','CodigoDeBarra'=>'7794626008276','Pvp'=>'302.97']);\nDB::table('sales')->insert(['Codigo' =>'8022314','Precio'=>'575.11','CodigoDeBarra'=>'7794626008283','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8042543','Precio'=>'434.21','CodigoDeBarra'=>'7794626997976','Pvp'=>'434.21']);\nDB::table('sales')->insert(['Codigo' =>'8042547','Precio'=>'168.70','CodigoDeBarra'=>'7794626997938','Pvp'=>'168.70']);\nDB::table('sales')->insert(['Codigo' =>'8042544','Precio'=>'434.21','CodigoDeBarra'=>'7794626997983','Pvp'=>'434.21']);\nDB::table('sales')->insert(['Codigo' =>'8042548','Precio'=>'168.70','CodigoDeBarra'=>'7794626997945','Pvp'=>'168.70']);\nDB::table('sales')->insert(['Codigo' =>'8038957','Precio'=>'119.63','CodigoDeBarra'=>'7794626996900','Pvp'=>'119.63']);\nDB::table('sales')->insert(['Codigo' =>'8041391','Precio'=>'119.63','CodigoDeBarra'=>'7794626996917','Pvp'=>'119.63']);\nDB::table('sales')->insert(['Codigo' =>'8041390','Precio'=>'119.63','CodigoDeBarra'=>'7794626996931','Pvp'=>'119.63']);\nDB::table('sales')->insert(['Codigo' =>'8029462','Precio'=>'119.63','CodigoDeBarra'=>'7794626009181','Pvp'=>'119.63']);\nDB::table('sales')->insert(['Codigo' =>'8029463','Precio'=>'119.63','CodigoDeBarra'=>'7794626009198','Pvp'=>'119.63']);\nDB::table('sales')->insert(['Codigo' =>'8026490','Precio'=>'575.11','CodigoDeBarra'=>'7794626007576','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8026488','Precio'=>'575.11','CodigoDeBarra'=>'7794626007552','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8026492','Precio'=>'575.11','CodigoDeBarra'=>'7794626007590','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8030733','Precio'=>'575.11','CodigoDeBarra'=>'7794626009259','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8026491','Precio'=>'575.11','CodigoDeBarra'=>'7794626007583','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8026489','Precio'=>'575.11','CodigoDeBarra'=>'7794626007569','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8027676','Precio'=>'302.97','CodigoDeBarra'=>'7794626008191','Pvp'=>'302.97']);\nDB::table('sales')->insert(['Codigo' =>'8027678','Precio'=>'575.11','CodigoDeBarra'=>'7794626008214','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8026493','Precio'=>'575.11','CodigoDeBarra'=>'7794626007606','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8030734','Precio'=>'575.11','CodigoDeBarra'=>'7794626009266','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8027672','Precio'=>'302.97','CodigoDeBarra'=>'7794626008177','Pvp'=>'302.97']);\nDB::table('sales')->insert(['Codigo' =>'8027673','Precio'=>'575.11','CodigoDeBarra'=>'7794626008184','Pvp'=>'575.11']);\nDB::table('sales')->insert(['Codigo' =>'8024100','Precio'=>'104.16','CodigoDeBarra'=>'7794626007170','Pvp'=>'104.16']);\nDB::table('sales')->insert(['Codigo' =>'8024101','Precio'=>'189.07','CodigoDeBarra'=>'7794626007187','Pvp'=>'189.07']);\nDB::table('sales')->insert(['Codigo' =>'8038668','Precio'=>'220.76','CodigoDeBarra'=>'7794626996672','Pvp'=>'220.76']);\nDB::table('sales')->insert(['Codigo' =>'8038669','Precio'=>'318.72','CodigoDeBarra'=>'7794626996689','Pvp'=>'318.72']);\nDB::table('sales')->insert(['Codigo' =>'8024105','Precio'=>'272.02','CodigoDeBarra'=>'7794626007217','Pvp'=>'272.02']);\nDB::table('sales')->insert(['Codigo' =>'8024106','Precio'=>'406.87','CodigoDeBarra'=>'7794626007224','Pvp'=>'406.87']);\nDB::table('sales')->insert(['Codigo' =>'8040471','Precio'=>'220.76','CodigoDeBarra'=>'7794626997099','Pvp'=>'220.76']);\nDB::table('sales')->insert(['Codigo' =>'8040472','Precio'=>'318.72','CodigoDeBarra'=>'7794626997051','Pvp'=>'318.72']);\nDB::table('sales')->insert(['Codigo' =>'8042395','Precio'=>'513.65','CodigoDeBarra'=>'7794626009372','Pvp'=>'513.65']);\nDB::table('sales')->insert(['Codigo' =>'8042246','Precio'=>'513.65','CodigoDeBarra'=>'7794626009365','Pvp'=>'513.65']);\nDB::table('sales')->insert(['Codigo' =>'8042251','Precio'=>'513.65','CodigoDeBarra'=>'7794626009389','Pvp'=>'513.65']);\nDB::table('sales')->insert(['Codigo' =>'8042248','Precio'=>'513.65','CodigoDeBarra'=>'7794626009396','Pvp'=>'513.65']);\nDB::table('sales')->insert(['Codigo' =>'8039909','Precio'=>'41827.79','CodigoDeBarra'=>'8054083017068','Pvp'=>'41827.79']);\nDB::table('sales')->insert(['Codigo' =>'8032099','Precio'=>'76457.93','CodigoDeBarra'=>'8054083014050','Pvp'=>'76457.93']);\nDB::table('sales')->insert(['Codigo' =>'8038729','Precio'=>'72068.95','CodigoDeBarra'=>'8054083017648','Pvp'=>'72068.95']);\nDB::table('sales')->insert(['Codigo' =>'8031841','Precio'=>'76457.93','CodigoDeBarra'=>'8054083009810','Pvp'=>'76457.93']);\nDB::table('sales')->insert(['Codigo' =>'4139141','Precio'=>'28270.31','CodigoDeBarra'=>'7795990000767','Pvp'=>'28270.31']);\nDB::table('sales')->insert(['Codigo' =>'4139221','Precio'=>'56509.06','CodigoDeBarra'=>'7795990000774','Pvp'=>'56509.06']);\nDB::table('sales')->insert(['Codigo' =>'4860781','Precio'=>'844.76','CodigoDeBarra'=>'7798069050472','Pvp'=>'844.76']);\nDB::table('sales')->insert(['Codigo' =>'2622542','Precio'=>'599.71','CodigoDeBarra'=>'7798069050182','Pvp'=>'599.71']);\nDB::table('sales')->insert(['Codigo' =>'8042592','Precio'=>'588.50','CodigoDeBarra'=>'7795378005988','Pvp'=>'588.50']);\nDB::table('sales')->insert(['Codigo' =>'8042593','Precio'=>'884.33','CodigoDeBarra'=>'7795378005995','Pvp'=>'884.33']);\nDB::table('sales')->insert(['Codigo' =>'8042591','Precio'=>'524.87','CodigoDeBarra'=>'7795378005971','Pvp'=>'524.87']);\nDB::table('sales')->insert(['Codigo' =>'6426841','Precio'=>'496.39','CodigoDeBarra'=>'7795327064738','Pvp'=>'496.39']);\nDB::table('sales')->insert(['Codigo' =>'6426842','Precio'=>'875.42','CodigoDeBarra'=>'7795327064745','Pvp'=>'875.42']);\nDB::table('sales')->insert(['Codigo' =>'6426971','Precio'=>'644.02','CodigoDeBarra'=>'7795327064752','Pvp'=>'644.02']);\nDB::table('sales')->insert(['Codigo' =>'6426972','Precio'=>'1250.41','CodigoDeBarra'=>'7795327064769','Pvp'=>'1250.41']);\nDB::table('sales')->insert(['Codigo' =>'645942','Precio'=>'1666.10','CodigoDeBarra'=>'7798180920647','Pvp'=>'1666.10']);\nDB::table('sales')->insert(['Codigo' =>'645939','Precio'=>'451.94','CodigoDeBarra'=>'7798180920630','Pvp'=>'451.94']);\nDB::table('sales')->insert(['Codigo' =>'8024931','Precio'=>'226717.10','CodigoDeBarra'=>'7795381001724','Pvp'=>'226717.10']);\nDB::table('sales')->insert(['Codigo' =>'8024932','Precio'=>'232530.34','CodigoDeBarra'=>'7795381001731','Pvp'=>'232530.34']);\nDB::table('sales')->insert(['Codigo' =>'637697','Precio'=>'220903.87','CodigoDeBarra'=>'7795381001717','Pvp'=>'220903.87']);\nDB::table('sales')->insert(['Codigo' =>'8032267','Precio'=>'124.91','CodigoDeBarra'=>'7794640172021','Pvp'=>'124.91']);\nDB::table('sales')->insert(['Codigo' =>'8034946','Precio'=>'155.12','CodigoDeBarra'=>'7794640172601','Pvp'=>'155.12']);\nDB::table('sales')->insert(['Codigo' =>'9998749','Precio'=>'107.44','CodigoDeBarra'=>'7794640141911','Pvp'=>'107.44']);\nDB::table('sales')->insert(['Codigo' =>'9994903','Precio'=>'99.38','CodigoDeBarra'=>'7794640141720','Pvp'=>'99.38']);\nDB::table('sales')->insert(['Codigo' =>'8017247','Precio'=>'66.75','CodigoDeBarra'=>'7794207000071','Pvp'=>'66.75']);\nDB::table('sales')->insert(['Codigo' =>'598068','Precio'=>'143.72','CodigoDeBarra'=>'7794207083975','Pvp'=>'143.72']);\nDB::table('sales')->insert(['Codigo' =>'3223713','Precio'=>'55.56','CodigoDeBarra'=>'7795347934783','Pvp'=>'55.56']);\nDB::table('sales')->insert(['Codigo' =>'8021739','Precio'=>'126.04','CodigoDeBarra'=>'7795347934820','Pvp'=>'126.04']);\nDB::table('sales')->insert(['Codigo' =>'554742','Precio'=>'115.50','CodigoDeBarra'=>'7798006301810','Pvp'=>'115.50']);\nDB::table('sales')->insert(['Codigo' =>'3629132','Precio'=>'86.44','CodigoDeBarra'=>'7798006300554','Pvp'=>'86.44']);\nDB::table('sales')->insert(['Codigo' =>'614000','Precio'=>'192.81','CodigoDeBarra'=>'7798006300547','Pvp'=>'192.81']);\nDB::table('sales')->insert(['Codigo' =>'564468','Precio'=>'105.85','CodigoDeBarra'=>'7798006301957','Pvp'=>'105.85']);\nDB::table('sales')->insert(['Codigo' =>'5644681','Precio'=>'201.02','CodigoDeBarra'=>'7798006301964','Pvp'=>'201.02']);\nDB::table('sales')->insert(['Codigo' =>'3694221','Precio'=>'49.19','CodigoDeBarra'=>'7796363000186','Pvp'=>'49.19']);\nDB::table('sales')->insert(['Codigo' =>'3694222','Precio'=>'97.73','CodigoDeBarra'=>'7796363000148','Pvp'=>'97.73']);\nDB::table('sales')->insert(['Codigo' =>'4693551','Precio'=>'90.06','CodigoDeBarra'=>'7796363001329','Pvp'=>'90.06']);\nDB::table('sales')->insert(['Codigo' =>'4693552','Precio'=>'178.09','CodigoDeBarra'=>'7796363000650','Pvp'=>'178.09']);\nDB::table('sales')->insert(['Codigo' =>'5559681','Precio'=>'120.05','CodigoDeBarra'=>'7796363002647','Pvp'=>'120.05']);\nDB::table('sales')->insert(['Codigo' =>'4110592','Precio'=>'79.84','CodigoDeBarra'=>'77935690056','Pvp'=>'79.84']);\nDB::table('sales')->insert(['Codigo' =>'4847591','Precio'=>'145.21','CodigoDeBarra'=>'7794207084217','Pvp'=>'145.21']);\nDB::table('sales')->insert(['Codigo' =>'488561','Precio'=>'2484.75','CodigoDeBarra'=>'7798035313303','Pvp'=>'2484.75']);\nDB::table('sales')->insert(['Codigo' =>'596455','Precio'=>'5943.92','CodigoDeBarra'=>'7798021440020','Pvp'=>'5943.92']);\nDB::table('sales')->insert(['Codigo' =>'8109662','Precio'=>'626407.79','CodigoDeBarra'=>'7798035314225','Pvp'=>'626407.79']);\nDB::table('sales')->insert(['Codigo' =>'8109663','Precio'=>'626407.79','CodigoDeBarra'=>'7798035314232','Pvp'=>'626407.79']);\nDB::table('sales')->insert(['Codigo' =>'4581181','Precio'=>'868.21','CodigoDeBarra'=>'7796035474222','Pvp'=>'868.21']);\nDB::table('sales')->insert(['Codigo' =>'8006928','Precio'=>'545.63','CodigoDeBarra'=>'7791829018378','Pvp'=>'545.63']);\nDB::table('sales')->insert(['Codigo' =>'8006837','Precio'=>'595.67','CodigoDeBarra'=>'7798035310500','Pvp'=>'595.67']);\nDB::table('sales')->insert(['Codigo' =>'8039326','Precio'=>'127878.83','CodigoDeBarra'=>'7798087803517','Pvp'=>'127878.83']);\nDB::table('sales')->insert(['Codigo' =>'8039504','Precio'=>'31969.68','CodigoDeBarra'=>'7798087803524','Pvp'=>'31969.68']);\nDB::table('sales')->insert(['Codigo' =>'8039334','Precio'=>'63939.40','CodigoDeBarra'=>'7798087803500','Pvp'=>'63939.40']);\nDB::table('sales')->insert(['Codigo' =>'372102','Precio'=>'36115.39','CodigoDeBarra'=>'7798019610121','Pvp'=>'36115.39']);\nDB::table('sales')->insert(['Codigo' =>'531413','Precio'=>'9062.36','CodigoDeBarra'=>'7798019610428','Pvp'=>'9062.36']);\nDB::table('sales')->insert(['Codigo' =>'5053912','Precio'=>'415.90','CodigoDeBarra'=>'7798006301766','Pvp'=>'415.90']);\nDB::table('sales')->insert(['Codigo' =>'5053914','Precio'=>'241.16','CodigoDeBarra'=>'7798006300721','Pvp'=>'241.16']);\nDB::table('sales')->insert(['Codigo' =>'5337002','Precio'=>'331.28','CodigoDeBarra'=>'7798006301759','Pvp'=>'331.28']);\nDB::table('sales')->insert(['Codigo' =>'5337004','Precio'=>'198.51','CodigoDeBarra'=>'7798006300752','Pvp'=>'198.51']);\nDB::table('sales')->insert(['Codigo' =>'8000744','Precio'=>'155.97','CodigoDeBarra'=>'7798006301803','Pvp'=>'155.97']);\nDB::table('sales')->insert(['Codigo' =>'8033711','Precio'=>'426.05','CodigoDeBarra'=>'8022297034287','Pvp'=>'426.05']);\nDB::table('sales')->insert(['Codigo' =>'8033717','Precio'=>'376.56','CodigoDeBarra'=>'8022297043746','Pvp'=>'376.56']);\nDB::table('sales')->insert(['Codigo' =>'8033712','Precio'=>'376.56','CodigoDeBarra'=>'8022297034324','Pvp'=>'376.56']);\nDB::table('sales')->insert(['Codigo' =>'8033716','Precio'=>'376.56','CodigoDeBarra'=>'8022297043722','Pvp'=>'376.56']);\nDB::table('sales')->insert(['Codigo' =>'8033714','Precio'=>'376.56','CodigoDeBarra'=>'8022297034300','Pvp'=>'376.56']);\nDB::table('sales')->insert(['Codigo' =>'8033713','Precio'=>'426.05','CodigoDeBarra'=>'8022297034256','Pvp'=>'426.05']);\nDB::table('sales')->insert(['Codigo' =>'8033715','Precio'=>'426.05','CodigoDeBarra'=>'8022297043807','Pvp'=>'426.05']);\nDB::table('sales')->insert(['Codigo' =>'8033710','Precio'=>'426.05','CodigoDeBarra'=>'8022297034249','Pvp'=>'426.05']);\nDB::table('sales')->insert(['Codigo' =>'8039251','Precio'=>'1117051.54','CodigoDeBarra'=>'7795306471403','Pvp'=>'1117051.54']);\nDB::table('sales')->insert(['Codigo' =>'5953711','Precio'=>'721875.24','CodigoDeBarra'=>'7795306001198','Pvp'=>'721875.24']);\nDB::table('sales')->insert(['Codigo' =>'8040579','Precio'=>'72336.63','CodigoDeBarra'=>'7793397051894','Pvp'=>'72336.63']);\nDB::table('sales')->insert(['Codigo' =>'8040580','Precio'=>'223210.12','CodigoDeBarra'=>'7793397051900','Pvp'=>'223210.12']);\nDB::table('sales')->insert(['Codigo' =>'8037880','Precio'=>'60261.00','CodigoDeBarra'=>'7798061752640','Pvp'=>'60261.00']);\nDB::table('sales')->insert(['Codigo' =>'6123711','Precio'=>'9363.73','CodigoDeBarra'=>'7798006870194','Pvp'=>'9363.73']);\nDB::table('sales')->insert(['Codigo' =>'6123841','Precio'=>'5366.00','CodigoDeBarra'=>'7798006870163','Pvp'=>'5366.00']);\nDB::table('sales')->insert(['Codigo' =>'8025159','Precio'=>'579090.83','CodigoDeBarra'=>'7795314027517','Pvp'=>'579090.83']);\nDB::table('sales')->insert(['Codigo' =>'8025158','Precio'=>'434318.10','CodigoDeBarra'=>'7795314027500','Pvp'=>'434318.10']);\nDB::table('sales')->insert(['Codigo' =>'8043376','Precio'=>'62773.17','CodigoDeBarra'=>'5000456032070','Pvp'=>'62773.17']);\nDB::table('sales')->insert(['Codigo' =>'8043377','Precio'=>'261554.89','CodigoDeBarra'=>'5000456032087','Pvp'=>'261554.89']);\nDB::table('sales')->insert(['Codigo' =>'3840662','Precio'=>'1724.50','CodigoDeBarra'=>'7795336291569','Pvp'=>'1724.50']);\nDB::table('sales')->insert(['Codigo' =>'5483841','Precio'=>'19129.83','CodigoDeBarra'=>'7791992885067','Pvp'=>'19129.83']);\nDB::table('sales')->insert(['Codigo' =>'4749581','Precio'=>'27228.63','CodigoDeBarra'=>'642621039665','Pvp'=>'27228.63']);\nDB::table('sales')->insert(['Codigo' =>'9997226','Precio'=>'54457.72','CodigoDeBarra'=>'642621039795','Pvp'=>'54457.72']);\nDB::table('sales')->insert(['Codigo' =>'3660061','Precio'=>'78293.52','CodigoDeBarra'=>'642621042245','Pvp'=>'78293.52']);\nDB::table('sales')->insert(['Codigo' =>'8041326','Precio'=>'540347.58','CodigoDeBarra'=>'7798084685369','Pvp'=>'540347.58']);\nDB::table('sales')->insert(['Codigo' =>'8041327','Precio'=>'557059.35','CodigoDeBarra'=>'7798084685376','Pvp'=>'557059.35']);\nDB::table('sales')->insert(['Codigo' =>'8041328','Precio'=>'574287.99','CodigoDeBarra'=>'7798084685383','Pvp'=>'574287.99']);\nDB::table('sales')->insert(['Codigo' =>'8030020','Precio'=>'592049.47','CodigoDeBarra'=>'7798084685390','Pvp'=>'592049.47']);\nDB::table('sales')->insert(['Codigo' =>'6116000','Precio'=>'6373.16','CodigoDeBarra'=>'7798021440099','Pvp'=>'6373.16']);\nDB::table('sales')->insert(['Codigo' =>'6116130','Precio'=>'8498.93','CodigoDeBarra'=>'7798021440105','Pvp'=>'8498.93']);\nDB::table('sales')->insert(['Codigo' =>'8038415','Precio'=>'180031.36','CodigoDeBarra'=>'7793397051917','Pvp'=>'180031.36']);\nDB::table('sales')->insert(['Codigo' =>'3407111','Precio'=>'518.62','CodigoDeBarra'=>'7795378005827','Pvp'=>'518.62']);\nDB::table('sales')->insert(['Codigo' =>'3407031','Precio'=>'312.50','CodigoDeBarra'=>'7795378005810','Pvp'=>'312.50']);\nDB::table('sales')->insert(['Codigo' =>'8037840','Precio'=>'132.03','CodigoDeBarra'=>'7794740081223','Pvp'=>'132.03']);\nDB::table('sales')->insert(['Codigo' =>'8037838','Precio'=>'132.03','CodigoDeBarra'=>'7794740081209','Pvp'=>'132.03']);\nDB::table('sales')->insert(['Codigo' =>'8037839','Precio'=>'132.03','CodigoDeBarra'=>'7794740081216','Pvp'=>'132.03']);\nDB::table('sales')->insert(['Codigo' =>'6033398','Precio'=>'91.16','CodigoDeBarra'=>'7794740003522','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033397','Precio'=>'91.16','CodigoDeBarra'=>'7794740003515','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033399','Precio'=>'91.16','CodigoDeBarra'=>'7794740003539','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033400','Precio'=>'91.16','CodigoDeBarra'=>'7794740003546','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033406','Precio'=>'86.15','CodigoDeBarra'=>'7794740003607','Pvp'=>'86.15']);\nDB::table('sales')->insert(['Codigo' =>'6033401','Precio'=>'91.16','CodigoDeBarra'=>'7794740003553','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033423','Precio'=>'91.16','CodigoDeBarra'=>'7794740003775','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033402','Precio'=>'91.16','CodigoDeBarra'=>'7794740003560','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033407','Precio'=>'91.16','CodigoDeBarra'=>'7794740003614','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6530467','Precio'=>'84.20','CodigoDeBarra'=>'7794740003874','Pvp'=>'84.20']);\nDB::table('sales')->insert(['Codigo' =>'6033408','Precio'=>'91.16','CodigoDeBarra'=>'7794740003621','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033429','Precio'=>'91.16','CodigoDeBarra'=>'7794740003836','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033413','Precio'=>'91.16','CodigoDeBarra'=>'7794740003676','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033415','Precio'=>'91.16','CodigoDeBarra'=>'7794740003690','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6530464','Precio'=>'91.16','CodigoDeBarra'=>'7794740003904','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033403','Precio'=>'91.16','CodigoDeBarra'=>'7794740003577','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033409','Precio'=>'91.16','CodigoDeBarra'=>'7794740003638','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033430','Precio'=>'91.16','CodigoDeBarra'=>'7794740003843','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033416','Precio'=>'91.16','CodigoDeBarra'=>'7794740003706','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033417','Precio'=>'91.16','CodigoDeBarra'=>'7794740003713','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6030468','Precio'=>'91.16','CodigoDeBarra'=>'7794740003898','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033404','Precio'=>'91.16','CodigoDeBarra'=>'7794740003584','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033419','Precio'=>'91.16','CodigoDeBarra'=>'7794740003737','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033431','Precio'=>'91.16','CodigoDeBarra'=>'7794740003850','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033421','Precio'=>'91.16','CodigoDeBarra'=>'7794740003751','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033405','Precio'=>'91.16','CodigoDeBarra'=>'7794740003591','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6033410','Precio'=>'91.16','CodigoDeBarra'=>'7794740003645','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6530465','Precio'=>'91.16','CodigoDeBarra'=>'7794740003881','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'8002904','Precio'=>'91.16','CodigoDeBarra'=>'7794740003669','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'8024812','Precio'=>'91.16','CodigoDeBarra'=>'7794740313935','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'8032145','Precio'=>'91.16','CodigoDeBarra'=>'7794740003959','Pvp'=>'91.16']);\nDB::table('sales')->insert(['Codigo' =>'6213841','Precio'=>'99662.55','CodigoDeBarra'=>'7795381001236','Pvp'=>'99662.55']);\nDB::table('sales')->insert(['Codigo' =>'6213971','Precio'=>'307529.83','CodigoDeBarra'=>'7795381001243','Pvp'=>'307529.83']);\nDB::table('sales')->insert(['Codigo' =>'490350','Precio'=>'72954.55','CodigoDeBarra'=>'7798028710188','Pvp'=>'72954.55']);\nDB::table('sales')->insert(['Codigo' =>'8013661','Precio'=>'18238.60','CodigoDeBarra'=>'7798028710201','Pvp'=>'18238.60']);\nDB::table('sales')->insert(['Codigo' =>'490342','Precio'=>'36477.27','CodigoDeBarra'=>'7798028710195','Pvp'=>'36477.27']);\nDB::table('sales')->insert(['Codigo' =>'605297','Precio'=>'253220.50','CodigoDeBarra'=>'7798163500057','Pvp'=>'253220.50']);\nDB::table('sales')->insert(['Codigo' =>'605300','Precio'=>'258806.05','CodigoDeBarra'=>'7798163500071','Pvp'=>'258806.05']);\nDB::table('sales')->insert(['Codigo' =>'628213','Precio'=>'295856.69','CodigoDeBarra'=>'7798163500125','Pvp'=>'295856.69']);\nDB::table('sales')->insert(['Codigo' =>'628226','Precio'=>'302382.72','CodigoDeBarra'=>'7798163500132','Pvp'=>'302382.72']);\nDB::table('sales')->insert(['Codigo' =>'6266971','Precio'=>'64762.51','CodigoDeBarra'=>'7795314023762','Pvp'=>'64762.51']);\nDB::table('sales')->insert(['Codigo' =>'8035024','Precio'=>'228.01','CodigoDeBarra'=>'8427426033276','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8035023','Precio'=>'228.01','CodigoDeBarra'=>'8427426033306','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8040960','Precio'=>'228.01','CodigoDeBarra'=>'8427426033290','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8040675','Precio'=>'228.01','CodigoDeBarra'=>'8427426033283','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8035022','Precio'=>'228.01','CodigoDeBarra'=>'8427426005938','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8035026','Precio'=>'228.01','CodigoDeBarra'=>'8427426005952','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8035027','Precio'=>'228.01','CodigoDeBarra'=>'8427426006058','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8035025','Precio'=>'228.01','CodigoDeBarra'=>'8427426006010','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'4139981','Precio'=>'19476.64','CodigoDeBarra'=>'7795356000400','Pvp'=>'19476.64']);\nDB::table('sales')->insert(['Codigo' =>'4139982','Precio'=>'136177.25','CodigoDeBarra'=>'7795356997298','Pvp'=>'136177.25']);\nDB::table('sales')->insert(['Codigo' =>'6321421','Precio'=>'370.98','CodigoDeBarra'=>'7795345002422','Pvp'=>'370.98']);\nDB::table('sales')->insert(['Codigo' =>'5141201','Precio'=>'136941.87','CodigoDeBarra'=>'7795302180316','Pvp'=>'136941.87']);\nDB::table('sales')->insert(['Codigo' =>'8007102','Precio'=>'12434.70','CodigoDeBarra'=>'7798021442826','Pvp'=>'12434.70']);\nDB::table('sales')->insert(['Codigo' =>'4742631','Precio'=>'4754.60','CodigoDeBarra'=>'7796035482678','Pvp'=>'4754.60']);\nDB::table('sales')->insert(['Codigo' =>'487331','Precio'=>'535.23','CodigoDeBarra'=>'7793569000040','Pvp'=>'535.23']);\nDB::table('sales')->insert(['Codigo' =>'5183251','Precio'=>'993.03','CodigoDeBarra'=>'7798088120262','Pvp'=>'993.03']);\nDB::table('sales')->insert(['Codigo' =>'648555','Precio'=>'861.36','CodigoDeBarra'=>'7798180920777','Pvp'=>'861.36']);\nDB::table('sales')->insert(['Codigo' =>'8021142','Precio'=>'181.64','CodigoDeBarra'=>'7794207000743','Pvp'=>'181.64']);\nDB::table('sales')->insert(['Codigo' =>'9998141','Precio'=>'181.64','CodigoDeBarra'=>'7794207000330','Pvp'=>'181.64']);\nDB::table('sales')->insert(['Codigo' =>'8010171','Precio'=>'1026.43','CodigoDeBarra'=>'8470001509833','Pvp'=>'1026.43']);\nDB::table('sales')->insert(['Codigo' =>'8025534','Precio'=>'1322.76','CodigoDeBarra'=>'8470003245920','Pvp'=>'1322.76']);\nDB::table('sales')->insert(['Codigo' =>'8000999','Precio'=>'1025.72','CodigoDeBarra'=>'8470002000698','Pvp'=>'1025.72']);\nDB::table('sales')->insert(['Codigo' =>'8010729','Precio'=>'997.60','CodigoDeBarra'=>'8470003233941','Pvp'=>'997.60']);\nDB::table('sales')->insert(['Codigo' =>'8017188','Precio'=>'1544.36','CodigoDeBarra'=>'7898939803174','Pvp'=>'1544.36']);\nDB::table('sales')->insert(['Codigo' =>'8010730','Precio'=>'878.34','CodigoDeBarra'=>'8470002296336','Pvp'=>'878.34']);\nDB::table('sales')->insert(['Codigo' =>'8019648','Precio'=>'889.52','CodigoDeBarra'=>'8470001631718','Pvp'=>'889.52']);\nDB::table('sales')->insert(['Codigo' =>'8024188','Precio'=>'946.03','CodigoDeBarra'=>'8470001674258','Pvp'=>'946.03']);\nDB::table('sales')->insert(['Codigo' =>'8036019','Precio'=>'1079.50','CodigoDeBarra'=>'8429420142312','Pvp'=>'1079.50']);\nDB::table('sales')->insert(['Codigo' =>'8039130','Precio'=>'1168.19','CodigoDeBarra'=>'8429420161214','Pvp'=>'1168.19']);\nDB::table('sales')->insert(['Codigo' =>'8031622','Precio'=>'1173.44','CodigoDeBarra'=>'8470001838919','Pvp'=>'1173.44']);\nDB::table('sales')->insert(['Codigo' =>'8039998','Precio'=>'1173.44','CodigoDeBarra'=>'8429420161245','Pvp'=>'1173.44']);\nDB::table('sales')->insert(['Codigo' =>'8024186','Precio'=>'1218.86','CodigoDeBarra'=>'8429420077959','Pvp'=>'1218.86']);\nDB::table('sales')->insert(['Codigo' =>'8019649','Precio'=>'1215.97','CodigoDeBarra'=>'8470001631688','Pvp'=>'1215.97']);\nDB::table('sales')->insert(['Codigo' =>'9999569','Precio'=>'1687.43','CodigoDeBarra'=>'8429420175372','Pvp'=>'1687.43']);\nDB::table('sales')->insert(['Codigo' =>'8009773','Precio'=>'1576.69','CodigoDeBarra'=>'8429420175303','Pvp'=>'1576.69']);\nDB::table('sales')->insert(['Codigo' =>'8009774','Precio'=>'1576.69','CodigoDeBarra'=>'8429420175310','Pvp'=>'1576.69']);\nDB::table('sales')->insert(['Codigo' =>'8031104','Precio'=>'2729.20','CodigoDeBarra'=>'8429420124776','Pvp'=>'2729.20']);\nDB::table('sales')->insert(['Codigo' =>'8028190','Precio'=>'1756.50','CodigoDeBarra'=>'8429420095731','Pvp'=>'1756.50']);\nDB::table('sales')->insert(['Codigo' =>'8025008','Precio'=>'1457.86','CodigoDeBarra'=>'8470001612175','Pvp'=>'1457.86']);\nDB::table('sales')->insert(['Codigo' =>'8025532','Precio'=>'1718.33','CodigoDeBarra'=>'8470001614841','Pvp'=>'1718.33']);\nDB::table('sales')->insert(['Codigo' =>'8029965','Precio'=>'1129.95','CodigoDeBarra'=>'8470001649799','Pvp'=>'1129.95']);\nDB::table('sales')->insert(['Codigo' =>'8034569','Precio'=>'1495.46','CodigoDeBarra'=>'8470001685254','Pvp'=>'1495.46']);\nDB::table('sales')->insert(['Codigo' =>'8017389','Precio'=>'1008.95','CodigoDeBarra'=>'8470001527349','Pvp'=>'1008.95']);\nDB::table('sales')->insert(['Codigo' =>'5742001','Precio'=>'39214.21','CodigoDeBarra'=>'7797991150199','Pvp'=>'39214.21']);\nDB::table('sales')->insert(['Codigo' =>'8037300','Precio'=>'39215.53','CodigoDeBarra'=>'7793081098334','Pvp'=>'39215.53']);\nDB::table('sales')->insert(['Codigo' =>'6274391','Precio'=>'9511.45','CodigoDeBarra'=>'7797991000678','Pvp'=>'9511.45']);\nDB::table('sales')->insert(['Codigo' =>'6274261','Precio'=>'2450.93','CodigoDeBarra'=>'7797991000661','Pvp'=>'2450.93']);\nDB::table('sales')->insert(['Codigo' =>'5556974','Precio'=>'728.43','CodigoDeBarra'=>'7795380004412','Pvp'=>'728.43']);\nDB::table('sales')->insert(['Codigo' =>'8010410','Precio'=>'7073.07','CodigoDeBarra'=>'7795380000131','Pvp'=>'7073.07']);\nDB::table('sales')->insert(['Codigo' =>'5556975','Precio'=>'1110.19','CodigoDeBarra'=>'7795380004474','Pvp'=>'1110.19']);\nDB::table('sales')->insert(['Codigo' =>'8018548','Precio'=>'1463.53','CodigoDeBarra'=>'7795380001374','Pvp'=>'1463.53']);\nDB::table('sales')->insert(['Codigo' =>'5556971','Precio'=>'657.42','CodigoDeBarra'=>'7795380004184','Pvp'=>'657.42']);\nDB::table('sales')->insert(['Codigo' =>'8010866','Precio'=>'6384.43','CodigoDeBarra'=>'7795380002784','Pvp'=>'6384.43']);\nDB::table('sales')->insert(['Codigo' =>'5556972','Precio'=>'1008.27','CodigoDeBarra'=>'7795380004191','Pvp'=>'1008.27']);\nDB::table('sales')->insert(['Codigo' =>'8018547','Precio'=>'1322.19','CodigoDeBarra'=>'7795380001381','Pvp'=>'1322.19']);\nDB::table('sales')->insert(['Codigo' =>'8010532','Precio'=>'5807.52','CodigoDeBarra'=>'7795380000117','Pvp'=>'5807.52']);\nDB::table('sales')->insert(['Codigo' =>'5238242','Precio'=>'905.06','CodigoDeBarra'=>'7795380003644','Pvp'=>'905.06']);\nDB::table('sales')->insert(['Codigo' =>'8018546','Precio'=>'1204.98','CodigoDeBarra'=>'7795380001367','Pvp'=>'1204.98']);\nDB::table('sales')->insert(['Codigo' =>'8043618','Precio'=>'154.72','CodigoDeBarra'=>'7798008293885','Pvp'=>'154.72']);\nDB::table('sales')->insert(['Codigo' =>'601771','Precio'=>'7953.19','CodigoDeBarra'=>'7793397051054','Pvp'=>'7953.19']);\nDB::table('sales')->insert(['Codigo' =>'4395721','Precio'=>'719.25','CodigoDeBarra'=>'7795367001601','Pvp'=>'719.25']);\nDB::table('sales')->insert(['Codigo' =>'8042340','Precio'=>'219552.23','CodigoDeBarra'=>'7792183489248','Pvp'=>'219552.23']);\nDB::table('sales')->insert(['Codigo' =>'648142','Precio'=>'185111.25','CodigoDeBarra'=>'7793397090343','Pvp'=>'185111.25']);\nDB::table('sales')->insert(['Codigo' =>'8041991','Precio'=>'121515.84','CodigoDeBarra'=>'7798084686151','Pvp'=>'121515.84']);\nDB::table('sales')->insert(['Codigo' =>'8041992','Precio'=>'162021.12','CodigoDeBarra'=>'7798084686168','Pvp'=>'162021.12']);\nDB::table('sales')->insert(['Codigo' =>'644371','Precio'=>'264.10','CodigoDeBarra'=>'7798006300806','Pvp'=>'264.10']);\nDB::table('sales')->insert(['Codigo' =>'6443711','Precio'=>'503.05','CodigoDeBarra'=>'7798006300868','Pvp'=>'503.05']);\nDB::table('sales')->insert(['Codigo' =>'5734841','Precio'=>'50284.77','CodigoDeBarra'=>'7798260150278','Pvp'=>'50284.77']);\nDB::table('sales')->insert(['Codigo' =>'5734971','Precio'=>'132741.60','CodigoDeBarra'=>'7798260150339','Pvp'=>'132741.60']);\nDB::table('sales')->insert(['Codigo' =>'8029073','Precio'=>'26664.87','CodigoDeBarra'=>'7795306351408','Pvp'=>'26664.87']);\nDB::table('sales')->insert(['Codigo' =>'8029075','Precio'=>'53329.47','CodigoDeBarra'=>'7795306351385','Pvp'=>'53329.47']);\nDB::table('sales')->insert(['Codigo' =>'8029072','Precio'=>'13332.39','CodigoDeBarra'=>'7795306351392','Pvp'=>'13332.39']);\nDB::table('sales')->insert(['Codigo' =>'622713','Precio'=>'154841.81','CodigoDeBarra'=>'7795306011166','Pvp'=>'154841.81']);\nDB::table('sales')->insert(['Codigo' =>'6361421','Precio'=>'309683.63','CodigoDeBarra'=>'7795306320381','Pvp'=>'309683.63']);\nDB::table('sales')->insert(['Codigo' =>'6227261','Precio'=>'309683.63','CodigoDeBarra'=>'7795306011180','Pvp'=>'309683.63']);\nDB::table('sales')->insert(['Codigo' =>'8022513','Precio'=>'309683.63','CodigoDeBarra'=>'7795306011117','Pvp'=>'309683.63']);\nDB::table('sales')->insert(['Codigo' =>'5973261','Precio'=>'17263.13','CodigoDeBarra'=>'7798067990237','Pvp'=>'17263.13']);\nDB::table('sales')->insert(['Codigo' =>'5973391','Precio'=>'86315.69','CodigoDeBarra'=>'7798067990251','Pvp'=>'86315.69']);\nDB::table('sales')->insert(['Codigo' =>'651500','Precio'=>'13443.95','CodigoDeBarra'=>'7798180921002','Pvp'=>'13443.95']);\nDB::table('sales')->insert(['Codigo' =>'6089711','Precio'=>'364311.79','CodigoDeBarra'=>'7795312001120','Pvp'=>'364311.79']);\nDB::table('sales')->insert(['Codigo' =>'6530392','Precio'=>'109.40','CodigoDeBarra'=>'7891010031060','Pvp'=>'109.40']);\nDB::table('sales')->insert(['Codigo' =>'8016965','Precio'=>'128.32','CodigoDeBarra'=>'7891010980078','Pvp'=>'128.32']);\nDB::table('sales')->insert(['Codigo' =>'6039951','Precio'=>'117.60','CodigoDeBarra'=>'7790010891462','Pvp'=>'117.60']);\nDB::table('sales')->insert(['Codigo' =>'8020632','Precio'=>'133.86','CodigoDeBarra'=>'7891010568757','Pvp'=>'133.86']);\nDB::table('sales')->insert(['Codigo' =>'6301005','Precio'=>'133.86','CodigoDeBarra'=>'7891010568764','Pvp'=>'133.86']);\nDB::table('sales')->insert(['Codigo' =>'8039640','Precio'=>'88.13','CodigoDeBarra'=>'7891010247324','Pvp'=>'88.13']);\nDB::table('sales')->insert(['Codigo' =>'6271261','Precio'=>'164040.05','CodigoDeBarra'=>'7792371465351','Pvp'=>'164040.05']);\nDB::table('sales')->insert(['Codigo' =>'6271291','Precio'=>'262464.06','CodigoDeBarra'=>'7792371419767','Pvp'=>'262464.06']);\nDB::table('sales')->insert(['Codigo' =>'5604121','Precio'=>'574.52','CodigoDeBarra'=>'7792175008570','Pvp'=>'574.52']);\nDB::table('sales')->insert(['Codigo' =>'5618971','Precio'=>'617.26','CodigoDeBarra'=>'7792175008815','Pvp'=>'617.26']);\nDB::table('sales')->insert(['Codigo' =>'5469681','Precio'=>'519.97','CodigoDeBarra'=>'7792175008273','Pvp'=>'519.97']);\nDB::table('sales')->insert(['Codigo' =>'5762391','Precio'=>'8690.10','CodigoDeBarra'=>'8054083003382','Pvp'=>'8690.10']);\nDB::table('sales')->insert(['Codigo' =>'5515131','Precio'=>'19663.85','CodigoDeBarra'=>'8054083003474','Pvp'=>'19663.85']);\nDB::table('sales')->insert(['Codigo' =>'8032901','Precio'=>'9279.15','CodigoDeBarra'=>'8054083006406','Pvp'=>'9279.15']);\nDB::table('sales')->insert(['Codigo' =>'4554371','Precio'=>'6085.79','CodigoDeBarra'=>'7793397050521','Pvp'=>'6085.79']);\nDB::table('sales')->insert(['Codigo' =>'8109541','Precio'=>'112883.83','CodigoDeBarra'=>'7798337900133','Pvp'=>'112883.83']);\nDB::table('sales')->insert(['Codigo' =>'8041489','Precio'=>'314105.39','CodigoDeBarra'=>'7795367548885','Pvp'=>'314105.39']);\nDB::table('sales')->insert(['Codigo' =>'4953','Precio'=>'1951.83','CodigoDeBarra'=>'7795323770503','Pvp'=>'1951.83']);\nDB::table('sales')->insert(['Codigo' =>'8029503','Precio'=>'13544.32','CodigoDeBarra'=>'7798180920340','Pvp'=>'13544.32']);\nDB::table('sales')->insert(['Codigo' =>'8031635','Precio'=>'5250.54','CodigoDeBarra'=>'7798180920401','Pvp'=>'5250.54']);\nDB::table('sales')->insert(['Codigo' =>'8032137','Precio'=>'1422.42','CodigoDeBarra'=>'7798180920388','Pvp'=>'1422.42']);\nDB::table('sales')->insert(['Codigo' =>'8032138','Precio'=>'4053.77','CodigoDeBarra'=>'7798180920395','Pvp'=>'4053.77']);\nDB::table('sales')->insert(['Codigo' =>'8032139','Precio'=>'416.84','CodigoDeBarra'=>'7798180920371','Pvp'=>'416.84']);\nDB::table('sales')->insert(['Codigo' =>'8032140','Precio'=>'2931.32','CodigoDeBarra'=>'7798180920418','Pvp'=>'2931.32']);\nDB::table('sales')->insert(['Codigo' =>'8032141','Precio'=>'2226.40','CodigoDeBarra'=>'7798180920364','Pvp'=>'2226.40']);\nDB::table('sales')->insert(['Codigo' =>'8015615','Precio'=>'463.85','CodigoDeBarra'=>'7798021110145','Pvp'=>'463.85']);\nDB::table('sales')->insert(['Codigo' =>'8016127','Precio'=>'500.97','CodigoDeBarra'=>'7798021110602','Pvp'=>'500.97']);\nDB::table('sales')->insert(['Codigo' =>'8014112','Precio'=>'500.97','CodigoDeBarra'=>'7798021110138','Pvp'=>'500.97']);\nDB::table('sales')->insert(['Codigo' =>'639426','Precio'=>'194012.17','CodigoDeBarra'=>'7798021440471','Pvp'=>'194012.17']);\nDB::table('sales')->insert(['Codigo' =>'392340','Precio'=>'135.05','CodigoDeBarra'=>'7794207000484','Pvp'=>'135.05']);\nDB::table('sales')->insert(['Codigo' =>'5818711','Precio'=>'208.46','CodigoDeBarra'=>'7795336292757','Pvp'=>'208.46']);\nDB::table('sales')->insert(['Codigo' =>'8040237','Precio'=>'85275.95','CodigoDeBarra'=>'324359503037','Pvp'=>'85275.95']);\nDB::table('sales')->insert(['Codigo' =>'8026286','Precio'=>'62919.90','CodigoDeBarra'=>'324359501033','Pvp'=>'62919.90']);\nDB::table('sales')->insert(['Codigo' =>'8026285','Precio'=>'62919.90','CodigoDeBarra'=>'324359502030','Pvp'=>'62919.90']);\nDB::table('sales')->insert(['Codigo' =>'8041324','Precio'=>'77211.91','CodigoDeBarra'=>'7798122020503','Pvp'=>'77211.91']);\nDB::table('sales')->insert(['Codigo' =>'6514261','Precio'=>'77211.91','CodigoDeBarra'=>'7798122020473','Pvp'=>'77211.91']);\nDB::table('sales')->insert(['Codigo' =>'8041325','Precio'=>'77211.91','CodigoDeBarra'=>'7798122020510','Pvp'=>'77211.91']);\nDB::table('sales')->insert(['Codigo' =>'6514391','Precio'=>'77211.91','CodigoDeBarra'=>'7798122020480','Pvp'=>'77211.91']);\nDB::table('sales')->insert(['Codigo' =>'6378711','Precio'=>'206333.40','CodigoDeBarra'=>'7793081000139','Pvp'=>'206333.40']);\nDB::table('sales')->insert(['Codigo' =>'2809251','Precio'=>'26838.42','CodigoDeBarra'=>'7798021443540','Pvp'=>'26838.42']);\nDB::table('sales')->insert(['Codigo' =>'631697','Precio'=>'32484.89','CodigoDeBarra'=>'7798061752527','Pvp'=>'32484.89']);\nDB::table('sales')->insert(['Codigo' =>'8030392','Precio'=>'253.51','CodigoDeBarra'=>'7798113691361','Pvp'=>'253.51']);\nDB::table('sales')->insert(['Codigo' =>'8022411','Precio'=>'142.21','CodigoDeBarra'=>'7798113690609','Pvp'=>'142.21']);\nDB::table('sales')->insert(['Codigo' =>'8023881','Precio'=>'140.86','CodigoDeBarra'=>'7798113690630','Pvp'=>'140.86']);\nDB::table('sales')->insert(['Codigo' =>'5840681','Precio'=>'288.64','CodigoDeBarra'=>'7798113690067','Pvp'=>'288.64']);\nDB::table('sales')->insert(['Codigo' =>'531821','Precio'=>'243.20','CodigoDeBarra'=>'7798113690029','Pvp'=>'243.20']);\nDB::table('sales')->insert(['Codigo' =>'8009456','Precio'=>'163.16','CodigoDeBarra'=>'7798113690012','Pvp'=>'163.16']);\nDB::table('sales')->insert(['Codigo' =>'8039063','Precio'=>'167.49','CodigoDeBarra'=>'7798113693235','Pvp'=>'167.49']);\nDB::table('sales')->insert(['Codigo' =>'8032831','Precio'=>'532.55','CodigoDeBarra'=>'7798129413605','Pvp'=>'532.55']);\nDB::table('sales')->insert(['Codigo' =>'5701971','Precio'=>'99489.99','CodigoDeBarra'=>'642621007558','Pvp'=>'99489.99']);\nDB::table('sales')->insert(['Codigo' =>'5702001','Precio'=>'198979.97','CodigoDeBarra'=>'642621007565','Pvp'=>'198979.97']);\nDB::table('sales')->insert(['Codigo' =>'5701841','Precio'=>'49744.75','CodigoDeBarra'=>'642621007541','Pvp'=>'49744.75']);\nDB::table('sales')->insert(['Codigo' =>'633384','Precio'=>'3180.66','CodigoDeBarra'=>'7798035311088','Pvp'=>'3180.66']);\nDB::table('sales')->insert(['Codigo' =>'8036965','Precio'=>'6361.99','CodigoDeBarra'=>'7798035311095','Pvp'=>'6361.99']);\nDB::table('sales')->insert(['Codigo' =>'8032633','Precio'=>'68663.35','CodigoDeBarra'=>'7795306471236','Pvp'=>'68663.35']);\nDB::table('sales')->insert(['Codigo' =>'8039971','Precio'=>'126526.60','CodigoDeBarra'=>'7795306472103','Pvp'=>'126526.60']);\nDB::table('sales')->insert(['Codigo' =>'8032634','Precio'=>'205989.99','CodigoDeBarra'=>'7795306472097','Pvp'=>'205989.99']);\nDB::table('sales')->insert(['Codigo' =>'5426261','Precio'=>'23186.81','CodigoDeBarra'=>'7794640401701','Pvp'=>'23186.81']);\nDB::table('sales')->insert(['Codigo' =>'3101780','Precio'=>'17329.50','CodigoDeBarra'=>'7793397049099','Pvp'=>'17329.50']);\nDB::table('sales')->insert(['Codigo' =>'3101600','Precio'=>'8656.34','CodigoDeBarra'=>'7793397049082','Pvp'=>'8656.34']);\nDB::table('sales')->insert(['Codigo' =>'5011131','Precio'=>'40005.80','CodigoDeBarra'=>'7793640215653','Pvp'=>'40005.80']);\nDB::table('sales')->insert(['Codigo' =>'5011081','Precio'=>'20000.72','CodigoDeBarra'=>'7793640215646','Pvp'=>'20000.72']);\nDB::table('sales')->insert(['Codigo' =>'8033050','Precio'=>'182.36','CodigoDeBarra'=>'8699568507421','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033051','Precio'=>'182.36','CodigoDeBarra'=>'8699568507445','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033053','Precio'=>'182.36','CodigoDeBarra'=>'8699568507476','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033055','Precio'=>'182.36','CodigoDeBarra'=>'8699568507490','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033056','Precio'=>'182.36','CodigoDeBarra'=>'8699568507513','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033064','Precio'=>'182.36','CodigoDeBarra'=>'8699568507698','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033057','Precio'=>'182.36','CodigoDeBarra'=>'8699568507537','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033058','Precio'=>'182.36','CodigoDeBarra'=>'8699568507551','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033059','Precio'=>'182.36','CodigoDeBarra'=>'8699568507575','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033060','Precio'=>'182.36','CodigoDeBarra'=>'8699568507599','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033061','Precio'=>'182.36','CodigoDeBarra'=>'8699568507612','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033062','Precio'=>'182.36','CodigoDeBarra'=>'8699568507636','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033063','Precio'=>'182.36','CodigoDeBarra'=>'8699568507650','Pvp'=>'182.36']);\nDB::table('sales')->insert(['Codigo' =>'8033728','Precio'=>'228.70','CodigoDeBarra'=>'8699568515761','Pvp'=>'228.70']);\nDB::table('sales')->insert(['Codigo' =>'8033730','Precio'=>'228.70','CodigoDeBarra'=>'8699568515785','Pvp'=>'228.70']);\nDB::table('sales')->insert(['Codigo' =>'8033731','Precio'=>'228.70','CodigoDeBarra'=>'8699568515792','Pvp'=>'228.70']);\nDB::table('sales')->insert(['Codigo' =>'8033729','Precio'=>'228.70','CodigoDeBarra'=>'8699568515778','Pvp'=>'228.70']);\nDB::table('sales')->insert(['Codigo' =>'8033732','Precio'=>'228.70','CodigoDeBarra'=>'8699568515808','Pvp'=>'228.70']);\nDB::table('sales')->insert(['Codigo' =>'6031055','Precio'=>'205.74','CodigoDeBarra'=>'726669089414','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8021051','Precio'=>'205.74','CodigoDeBarra'=>'726669012290','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8021052','Precio'=>'205.74','CodigoDeBarra'=>'726669012252','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031063','Precio'=>'205.74','CodigoDeBarra'=>'726669089391','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'9999531','Precio'=>'205.74','CodigoDeBarra'=>'726669089681','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031062','Precio'=>'205.74','CodigoDeBarra'=>'4056800020683','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031061','Precio'=>'205.74','CodigoDeBarra'=>'726669089667','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8029185','Precio'=>'205.74','CodigoDeBarra'=>'726669089643','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8000815','Precio'=>'205.74','CodigoDeBarra'=>'726669089636','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031060','Precio'=>'205.74','CodigoDeBarra'=>'726669089629','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031059','Precio'=>'205.74','CodigoDeBarra'=>'726669089599','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031050','Precio'=>'205.74','CodigoDeBarra'=>'4056800021246','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8021054','Precio'=>'205.74','CodigoDeBarra'=>'7506309846323','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031037','Precio'=>'205.74','CodigoDeBarra'=>'726669089568','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8034552','Precio'=>'205.74','CodigoDeBarra'=>'726669011217','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031058','Precio'=>'205.74','CodigoDeBarra'=>'726669089544','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031049','Precio'=>'205.74','CodigoDeBarra'=>'4056800021741','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031043','Precio'=>'205.74','CodigoDeBarra'=>'726669089520','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6302220','Precio'=>'205.74','CodigoDeBarra'=>'726669089506','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8021055','Precio'=>'205.74','CodigoDeBarra'=>'3614228801416','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031057','Precio'=>'205.74','CodigoDeBarra'=>'4056800022663','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031048','Precio'=>'205.74','CodigoDeBarra'=>'726669089483','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031056','Precio'=>'205.74','CodigoDeBarra'=>'726669089452','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'6031047','Precio'=>'205.74','CodigoDeBarra'=>'726669089445','Pvp'=>'205.74']);\nDB::table('sales')->insert(['Codigo' =>'8016454','Precio'=>'70.15','CodigoDeBarra'=>'7793620003515','Pvp'=>'70.15']);\nDB::table('sales')->insert(['Codigo' =>'8016455','Precio'=>'197.43','CodigoDeBarra'=>'7793620003522','Pvp'=>'197.43']);\nDB::table('sales')->insert(['Codigo' =>'8020700','Precio'=>'86.92','CodigoDeBarra'=>'7793620000125','Pvp'=>'86.92']);\nDB::table('sales')->insert(['Codigo' =>'8026487','Precio'=>'248.93','CodigoDeBarra'=>'7793620003652','Pvp'=>'248.93']);\nDB::table('sales')->insert(['Codigo' =>'8016459','Precio'=>'338.35','CodigoDeBarra'=>'7793620003560','Pvp'=>'338.35']);\nDB::table('sales')->insert(['Codigo' =>'8016457','Precio'=>'81.29','CodigoDeBarra'=>'7793620001344','Pvp'=>'81.29']);\nDB::table('sales')->insert(['Codigo' =>'8016458','Precio'=>'241.03','CodigoDeBarra'=>'7793620001351','Pvp'=>'241.03']);\nDB::table('sales')->insert(['Codigo' =>'8038667','Precio'=>'99.06','CodigoDeBarra'=>'7702425807648','Pvp'=>'99.06']);\nDB::table('sales')->insert(['Codigo' =>'8022383','Precio'=>'167.06','CodigoDeBarra'=>'7793620003133','Pvp'=>'167.06']);\nDB::table('sales')->insert(['Codigo' =>'8016451','Precio'=>'94.34','CodigoDeBarra'=>'7793620003232','Pvp'=>'94.34']);\nDB::table('sales')->insert(['Codigo' =>'8016446','Precio'=>'133.60','CodigoDeBarra'=>'7793620003256','Pvp'=>'133.60']);\nDB::table('sales')->insert(['Codigo' =>'8016443','Precio'=>'76.00','CodigoDeBarra'=>'7793620003249','Pvp'=>'76.00']);\nDB::table('sales')->insert(['Codigo' =>'8042396','Precio'=>'53.39','CodigoDeBarra'=>'7794626999253','Pvp'=>'53.39']);\nDB::table('sales')->insert(['Codigo' =>'8042398','Precio'=>'96.38','CodigoDeBarra'=>'7794626999260','Pvp'=>'96.38']);\nDB::table('sales')->insert(['Codigo' =>'8016450','Precio'=>'154.96','CodigoDeBarra'=>'7793620003218','Pvp'=>'154.96']);\nDB::table('sales')->insert(['Codigo' =>'8016449','Precio'=>'85.88','CodigoDeBarra'=>'7793620000675','Pvp'=>'85.88']);\nDB::table('sales')->insert(['Codigo' =>'6039712','Precio'=>'256241.36','CodigoDeBarra'=>'5391524460452','Pvp'=>'256241.36']);\nDB::table('sales')->insert(['Codigo' =>'6309921','Precio'=>'381.94','CodigoDeBarra'=>'7891010005047','Pvp'=>'381.94']);\nDB::table('sales')->insert(['Codigo' =>'628455','Precio'=>'386158.76','CodigoDeBarra'=>'7798337900034','Pvp'=>'386158.76']);\nDB::table('sales')->insert(['Codigo' =>'6245841','Precio'=>'445.95','CodigoDeBarra'=>'7795336003377','Pvp'=>'445.95']);\nDB::table('sales')->insert(['Codigo' =>'8026175','Precio'=>'119.52','CodigoDeBarra'=>'7794207000934','Pvp'=>'119.52']);\nDB::table('sales')->insert(['Codigo' =>'645100','Precio'=>'27036.10','CodigoDeBarra'=>'7798180920531','Pvp'=>'27036.10']);\nDB::table('sales')->insert(['Codigo' =>'8000481','Precio'=>'152.47','CodigoDeBarra'=>'7794207000552','Pvp'=>'152.47']);\nDB::table('sales')->insert(['Codigo' =>'5543841','Precio'=>'1236.68','CodigoDeBarra'=>'7798069050663','Pvp'=>'1236.68']);\nDB::table('sales')->insert(['Codigo' =>'8020868','Precio'=>'278.74','CodigoDeBarra'=>'7891058018665','Pvp'=>'278.74']);\nDB::table('sales')->insert(['Codigo' =>'5408971','Precio'=>'595.10','CodigoDeBarra'=>'7795327060921','Pvp'=>'595.10']);\nDB::table('sales')->insert(['Codigo' =>'4987111','Precio'=>'276.48','CodigoDeBarra'=>'7795327060891','Pvp'=>'276.48']);\nDB::table('sales')->insert(['Codigo' =>'5408972','Precio'=>'1264.68','CodigoDeBarra'=>'7795327060945','Pvp'=>'1264.68']);\nDB::table('sales')->insert(['Codigo' =>'589084','Precio'=>'539925.66','CodigoDeBarra'=>'7795367546997','Pvp'=>'539925.66']);\nDB::table('sales')->insert(['Codigo' =>'589097','Precio'=>'574329.58','CodigoDeBarra'=>'7795367547017','Pvp'=>'574329.58']);\nDB::table('sales')->insert(['Codigo' =>'589100','Precio'=>'576834.58','CodigoDeBarra'=>'7795367547031','Pvp'=>'576834.58']);\nDB::table('sales')->insert(['Codigo' =>'589071','Precio'=>'543113.87','CodigoDeBarra'=>'7795367546973','Pvp'=>'543113.87']);\nDB::table('sales')->insert(['Codigo' =>'4830161','Precio'=>'1804.22','CodigoDeBarra'=>'7798061750516','Pvp'=>'1804.22']);\nDB::table('sales')->insert(['Codigo' =>'8001889','Precio'=>'10761.91','CodigoDeBarra'=>'7798138890886','Pvp'=>'10761.91']);\nDB::table('sales')->insert(['Codigo' =>'9998906','Precio'=>'1282.02','CodigoDeBarra'=>'7795345012902','Pvp'=>'1282.02']);\nDB::table('sales')->insert(['Codigo' =>'8038808','Precio'=>'353.03','CodigoDeBarra'=>'7803510003218','Pvp'=>'353.03']);\nDB::table('sales')->insert(['Codigo' =>'8037837','Precio'=>'540.51','CodigoDeBarra'=>'7803510003386','Pvp'=>'540.51']);\nDB::table('sales')->insert(['Codigo' =>'8034647','Precio'=>'233.58','CodigoDeBarra'=>'7803510003379','Pvp'=>'233.58']);\nDB::table('sales')->insert(['Codigo' =>'9993945','Precio'=>'421.72','CodigoDeBarra'=>'7798023940399','Pvp'=>'421.72']);\nDB::table('sales')->insert(['Codigo' =>'9992727','Precio'=>'601.29','CodigoDeBarra'=>'7803510001467','Pvp'=>'601.29']);\nDB::table('sales')->insert(['Codigo' =>'5602396','Precio'=>'1537.30','CodigoDeBarra'=>'7795348250943','Pvp'=>'1537.30']);\nDB::table('sales')->insert(['Codigo' =>'636439','Precio'=>'22175.09','CodigoDeBarra'=>'7792219001062','Pvp'=>'22175.09']);\nDB::table('sales')->insert(['Codigo' =>'8041056','Precio'=>'27840.65','CodigoDeBarra'=>'7795306845976','Pvp'=>'27840.65']);\nDB::table('sales')->insert(['Codigo' =>'4783641','Precio'=>'13416.74','CodigoDeBarra'=>'7798113530233','Pvp'=>'13416.74']);\nDB::table('sales')->insert(['Codigo' =>'4783561','Precio'=>'5335.78','CodigoDeBarra'=>'7798095410967','Pvp'=>'5335.78']);\nDB::table('sales')->insert(['Codigo' =>'8008918','Precio'=>'85.53','CodigoDeBarra'=>'7798006301872','Pvp'=>'85.53']);\nDB::table('sales')->insert(['Codigo' =>'282762','Precio'=>'205.75','CodigoDeBarra'=>'7798006300011','Pvp'=>'205.75']);\nDB::table('sales')->insert(['Codigo' =>'6167421','Precio'=>'94702.62','CodigoDeBarra'=>'7798061752459','Pvp'=>'94702.62']);\nDB::table('sales')->insert(['Codigo' =>'616755','Precio'=>'96307.19','CodigoDeBarra'=>'7798061752534','Pvp'=>'96307.19']);\nDB::table('sales')->insert(['Codigo' =>'6167681','Precio'=>'95565.55','CodigoDeBarra'=>'7798061752466','Pvp'=>'95565.55']);\nDB::table('sales')->insert(['Codigo' =>'8039347','Precio'=>'110358.44','CodigoDeBarra'=>'7798035314133','Pvp'=>'110358.44']);\nDB::table('sales')->insert(['Codigo' =>'8039348','Precio'=>'42326.91','CodigoDeBarra'=>'7798035314126','Pvp'=>'42326.91']);\nDB::table('sales')->insert(['Codigo' =>'5673421','Precio'=>'5596.36','CodigoDeBarra'=>'7795367054881','Pvp'=>'5596.36']);\nDB::table('sales')->insert(['Codigo' =>'8021930','Precio'=>'1974.79','CodigoDeBarra'=>'7791171001042','Pvp'=>'1974.79']);\nDB::table('sales')->insert(['Codigo' =>'594539','Precio'=>'756.88','CodigoDeBarra'=>'7798006871580','Pvp'=>'756.88']);\nDB::table('sales')->insert(['Codigo' =>'5495551','Precio'=>'344.71','CodigoDeBarra'=>'7798088120439','Pvp'=>'344.71']);\nDB::table('sales')->insert(['Codigo' =>'8006923','Precio'=>'258.48','CodigoDeBarra'=>'7791829009253','Pvp'=>'258.48']);\nDB::table('sales')->insert(['Codigo' =>'545668','Precio'=>'351.47','CodigoDeBarra'=>'7798035313709','Pvp'=>'351.47']);\nDB::table('sales')->insert(['Codigo' =>'8026186','Precio'=>'24634.58','CodigoDeBarra'=>'4034341002375','Pvp'=>'24634.58']);\nDB::table('sales')->insert(['Codigo' =>'8006791','Precio'=>'401.55','CodigoDeBarra'=>'7793397050088','Pvp'=>'401.55']);\nDB::table('sales')->insert(['Codigo' =>'5096091','Precio'=>'715.09','CodigoDeBarra'=>'7795336294027','Pvp'=>'715.09']);\nDB::table('sales')->insert(['Codigo' =>'8007074','Precio'=>'463.62','CodigoDeBarra'=>'7795356999957','Pvp'=>'463.62']);\nDB::table('sales')->insert(['Codigo' =>'8006846','Precio'=>'433.21','CodigoDeBarra'=>'7795356002046','Pvp'=>'433.21']);\nDB::table('sales')->insert(['Codigo' =>'743521','Precio'=>'3511.76','CodigoDeBarra'=>'7798035311002','Pvp'=>'3511.76']);\nDB::table('sales')->insert(['Codigo' =>'8039362','Precio'=>'5669.10','CodigoDeBarra'=>'7798035311057','Pvp'=>'5669.10']);\nDB::table('sales')->insert(['Codigo' =>'8039680','Precio'=>'5670.49','CodigoDeBarra'=>'7798035311033','Pvp'=>'5670.49']);\nDB::table('sales')->insert(['Codigo' =>'8031260','Precio'=>'5662.14','CodigoDeBarra'=>'7798035311040','Pvp'=>'5662.14']);\nDB::table('sales')->insert(['Codigo' =>'8013305','Precio'=>'2619.61','CodigoDeBarra'=>'7795348251223','Pvp'=>'2619.61']);\nDB::table('sales')->insert(['Codigo' =>'4950111','Precio'=>'304.05','CodigoDeBarra'=>'7795336291712','Pvp'=>'304.05']);\nDB::table('sales')->insert(['Codigo' =>'6171261','Precio'=>'336.45','CodigoDeBarra'=>'7795336000413','Pvp'=>'336.45']);\nDB::table('sales')->insert(['Codigo' =>'6247421','Precio'=>'111.34','CodigoDeBarra'=>'7795371000966','Pvp'=>'111.34']);\nDB::table('sales')->insert(['Codigo' =>'643084','Precio'=>'9315.26','CodigoDeBarra'=>'7798180920739','Pvp'=>'9315.26']);\nDB::table('sales')->insert(['Codigo' =>'8031262','Precio'=>'67.87','CodigoDeBarra'=>'7795371459399','Pvp'=>'67.87']);\nDB::table('sales')->insert(['Codigo' =>'4342251','Precio'=>'491.63','CodigoDeBarra'=>'7798183830011','Pvp'=>'491.63']);\nDB::table('sales')->insert(['Codigo' =>'3890321','Precio'=>'182.03','CodigoDeBarra'=>'7795345013145','Pvp'=>'182.03']);\nDB::table('sales')->insert(['Codigo' =>'597800','Precio'=>'8937.40','CodigoDeBarra'=>'7793397050965','Pvp'=>'8937.40']);\nDB::table('sales')->insert(['Codigo' =>'5377971','Precio'=>'4781.80','CodigoDeBarra'=>'7791992000255','Pvp'=>'4781.80']);\nDB::table('sales')->insert(['Codigo' =>'5377841','Precio'=>'2510.21','CodigoDeBarra'=>'7791992000231','Pvp'=>'2510.21']);\nDB::table('sales')->insert(['Codigo' =>'8038715','Precio'=>'76596.30','CodigoDeBarra'=>'7795348421718','Pvp'=>'76596.30']);\nDB::table('sales')->insert(['Codigo' =>'8038730','Precio'=>'237845.92','CodigoDeBarra'=>'7795348421732','Pvp'=>'237845.92']);\nDB::table('sales')->insert(['Codigo' =>'8038716','Precio'=>'76596.30','CodigoDeBarra'=>'7795348421725','Pvp'=>'76596.30']);\nDB::table('sales')->insert(['Codigo' =>'8038717','Precio'=>'237845.92','CodigoDeBarra'=>'7795348421749','Pvp'=>'237845.92']);\nDB::table('sales')->insert(['Codigo' =>'8043324','Precio'=>'64.64','CodigoDeBarra'=>'7794626997440','Pvp'=>'64.64']);\nDB::table('sales')->insert(['Codigo' =>'8016228','Precio'=>'56.59','CodigoDeBarra'=>'7794626996771','Pvp'=>'56.59']);\nDB::table('sales')->insert(['Codigo' =>'8016227','Precio'=>'29.80','CodigoDeBarra'=>'7794626004414','Pvp'=>'29.80']);\nDB::table('sales')->insert(['Codigo' =>'8016229','Precio'=>'29.76','CodigoDeBarra'=>'7793620003393','Pvp'=>'29.76']);\nDB::table('sales')->insert(['Codigo' =>'5302551','Precio'=>'7572.93','CodigoDeBarra'=>'7795336291408','Pvp'=>'7572.93']);\nDB::table('sales')->insert(['Codigo' =>'4076861','Precio'=>'6121.12','CodigoDeBarra'=>'7795306365399','Pvp'=>'6121.12']);\nDB::table('sales')->insert(['Codigo' =>'4361642','Precio'=>'880.98','CodigoDeBarra'=>'7791171002346','Pvp'=>'880.98']);\nDB::table('sales')->insert(['Codigo' =>'4361643','Precio'=>'1464.42','CodigoDeBarra'=>'7791171101025','Pvp'=>'1464.42']);\nDB::table('sales')->insert(['Codigo' =>'4361722','Precio'=>'1436.86','CodigoDeBarra'=>'7791171002353','Pvp'=>'1436.86']);\nDB::table('sales')->insert(['Codigo' =>'4311723','Precio'=>'2413.13','CodigoDeBarra'=>'7791171101032','Pvp'=>'2413.13']);\nDB::table('sales')->insert(['Codigo' =>'4361802','Precio'=>'1599.96','CodigoDeBarra'=>'7791171101193','Pvp'=>'1599.96']);\nDB::table('sales')->insert(['Codigo' =>'5482422','Precio'=>'782.08','CodigoDeBarra'=>'7791171101322','Pvp'=>'782.08']);\nDB::table('sales')->insert(['Codigo' =>'5482552','Precio'=>'894.60','CodigoDeBarra'=>'7791171101339','Pvp'=>'894.60']);\nDB::table('sales')->insert(['Codigo' =>'5717392','Precio'=>'864.42','CodigoDeBarra'=>'7791171101605','Pvp'=>'864.42']);\nDB::table('sales')->insert(['Codigo' =>'5717422','Precio'=>'1206.69','CodigoDeBarra'=>'7791171101612','Pvp'=>'1206.69']);\nDB::table('sales')->insert(['Codigo' =>'2137442','Precio'=>'64278.23','CodigoDeBarra'=>'7795337911039','Pvp'=>'64278.23']);\nDB::table('sales')->insert(['Codigo' =>'4359682','Precio'=>'852.45','CodigoDeBarra'=>'7792175001656','Pvp'=>'852.45']);\nDB::table('sales')->insert(['Codigo' =>'4359762','Precio'=>'1360.47','CodigoDeBarra'=>'7792175001663','Pvp'=>'1360.47']);\nDB::table('sales')->insert(['Codigo' =>'4359842','Precio'=>'1521.86','CodigoDeBarra'=>'7792175009232','Pvp'=>'1521.86']);\nDB::table('sales')->insert(['Codigo' =>'5812551','Precio'=>'671.10','CodigoDeBarra'=>'7798006302138','Pvp'=>'671.10']);\nDB::table('sales')->insert(['Codigo' =>'5812681','Precio'=>'1150.17','CodigoDeBarra'=>'7798006302183','Pvp'=>'1150.17']);\nDB::table('sales')->insert(['Codigo' =>'6487421','Precio'=>'709.49','CodigoDeBarra'=>'7798006302282','Pvp'=>'709.49']);\nDB::table('sales')->insert(['Codigo' =>'6487551','Precio'=>'975.36','CodigoDeBarra'=>'7798006302299','Pvp'=>'975.36']);\nDB::table('sales')->insert(['Codigo' =>'5578423','Precio'=>'692.99','CodigoDeBarra'=>'7791171001929','Pvp'=>'692.99']);\nDB::table('sales')->insert(['Codigo' =>'5578422','Precio'=>'474.82','CodigoDeBarra'=>'7791171101513','Pvp'=>'474.82']);\nDB::table('sales')->insert(['Codigo' =>'3822682','Precio'=>'373.92','CodigoDeBarra'=>'7791171002025','Pvp'=>'373.92']);\nDB::table('sales')->insert(['Codigo' =>'3822683','Precio'=>'502.08','CodigoDeBarra'=>'7791171001950','Pvp'=>'502.08']);\nDB::table('sales')->insert(['Codigo' =>'5940131','Precio'=>'53385.37','CodigoDeBarra'=>'7798084682870','Pvp'=>'53385.37']);\nDB::table('sales')->insert(['Codigo' =>'5940261','Precio'=>'51922.07','CodigoDeBarra'=>'7798084682887','Pvp'=>'51922.07']);\nDB::table('sales')->insert(['Codigo' =>'5940392','Precio'=>'52867.07','CodigoDeBarra'=>'7798084682894','Pvp'=>'52867.07']);\nDB::table('sales')->insert(['Codigo' =>'8007066','Precio'=>'1919.86','CodigoDeBarra'=>'7798035310555','Pvp'=>'1919.86']);\nDB::table('sales')->insert(['Codigo' =>'6503972','Precio'=>'184728.11','CodigoDeBarra'=>'7792219001178','Pvp'=>'184728.11']);\nDB::table('sales')->insert(['Codigo' =>'6503842','Precio'=>'74049.64','CodigoDeBarra'=>'7792219001154','Pvp'=>'74049.64']);\nDB::table('sales')->insert(['Codigo' =>'8034067','Precio'=>'290.43','CodigoDeBarra'=>'7798140253105','Pvp'=>'290.43']);\nDB::table('sales')->insert(['Codigo' =>'8043216','Precio'=>'232.21','CodigoDeBarra'=>'7798140253426','Pvp'=>'232.21']);\nDB::table('sales')->insert(['Codigo' =>'8033049','Precio'=>'234.82','CodigoDeBarra'=>'7798140253099','Pvp'=>'234.82']);\nDB::table('sales')->insert(['Codigo' =>'8036416','Precio'=>'21570.58','CodigoDeBarra'=>'7795326005602','Pvp'=>'21570.58']);\nDB::table('sales')->insert(['Codigo' =>'8030775','Precio'=>'116801.05','CodigoDeBarra'=>'7795384000502','Pvp'=>'116801.05']);\nDB::table('sales')->insert(['Codigo' =>'8030776','Precio'=>'347125.37','CodigoDeBarra'=>'7795384000519','Pvp'=>'347125.37']);\nDB::table('sales')->insert(['Codigo' =>'8030777','Precio'=>'116801.05','CodigoDeBarra'=>'7795384000526','Pvp'=>'116801.05']);\nDB::table('sales')->insert(['Codigo' =>'8030778','Precio'=>'347125.37','CodigoDeBarra'=>'7795384000533','Pvp'=>'347125.37']);\nDB::table('sales')->insert(['Codigo' =>'2954111','Precio'=>'149.32','CodigoDeBarra'=>'7795336292177','Pvp'=>'149.32']);\nDB::table('sales')->insert(['Codigo' =>'5315552','Precio'=>'600.19','CodigoDeBarra'=>'7795336291699','Pvp'=>'600.19']);\nDB::table('sales')->insert(['Codigo' =>'5315553','Precio'=>'1178.22','CodigoDeBarra'=>'7795336291705','Pvp'=>'1178.22']);\nDB::table('sales')->insert(['Codigo' =>'5315423','Precio'=>'926.89','CodigoDeBarra'=>'7795336294225','Pvp'=>'926.89']);\nDB::table('sales')->insert(['Codigo' =>'5315422','Precio'=>'477.63','CodigoDeBarra'=>'7795336291668','Pvp'=>'477.63']);\nDB::table('sales')->insert(['Codigo' =>'4506693','Precio'=>'489.83','CodigoDeBarra'=>'7795302058462','Pvp'=>'489.83']);\nDB::table('sales')->insert(['Codigo' =>'4548512','Precio'=>'547.38','CodigoDeBarra'=>'7798069050021','Pvp'=>'547.38']);\nDB::table('sales')->insert(['Codigo' =>'8013945','Precio'=>'423.34','CodigoDeBarra'=>'7795345121253','Pvp'=>'423.34']);\nDB::table('sales')->insert(['Codigo' =>'8013371','Precio'=>'739.00','CodigoDeBarra'=>'7795345000411','Pvp'=>'739.00']);\nDB::table('sales')->insert(['Codigo' =>'6471001','Precio'=>'397.09','CodigoDeBarra'=>'7795356002213','Pvp'=>'397.09']);\nDB::table('sales')->insert(['Codigo' =>'6245002','Precio'=>'561.88','CodigoDeBarra'=>'7795356001094','Pvp'=>'561.88']);\nDB::table('sales')->insert(['Codigo' =>'8041122','Precio'=>'194682.79','CodigoDeBarra'=>'7792183489255','Pvp'=>'194682.79']);\nDB::table('sales')->insert(['Codigo' =>'648155','Precio'=>'259577.07','CodigoDeBarra'=>'7792183489194','Pvp'=>'259577.07']);\nDB::table('sales')->insert(['Codigo' =>'5615421','Precio'=>'85135.64','CodigoDeBarra'=>'7795306437904','Pvp'=>'85135.64']);\nDB::table('sales')->insert(['Codigo' =>'3886882','Precio'=>'804.99','CodigoDeBarra'=>'7791763000347','Pvp'=>'804.99']);\nDB::table('sales')->insert(['Codigo' =>'651813','Precio'=>'28207.45','CodigoDeBarra'=>'7796285278526','Pvp'=>'28207.45']);\nDB::table('sales')->insert(['Codigo' =>'6025261','Precio'=>'926.35','CodigoDeBarra'=>'7795316000082','Pvp'=>'926.35']);\nDB::table('sales')->insert(['Codigo' =>'8038137','Precio'=>'214970.26','CodigoDeBarra'=>'7793397090510','Pvp'=>'214970.26']);\nDB::table('sales')->insert(['Codigo' =>'621226','Precio'=>'55868.27','CodigoDeBarra'=>'7793397051214','Pvp'=>'55868.27']);\nDB::table('sales')->insert(['Codigo' =>'621239','Precio'=>'61461.09','CodigoDeBarra'=>'7793397051221','Pvp'=>'61461.09']);\nDB::table('sales')->insert(['Codigo' =>'621242','Precio'=>'61379.70','CodigoDeBarra'=>'7793397051238','Pvp'=>'61379.70']);\nDB::table('sales')->insert(['Codigo' =>'621213','Precio'=>'55828.42','CodigoDeBarra'=>'7793397051207','Pvp'=>'55828.42']);\nDB::table('sales')->insert(['Codigo' =>'6175971','Precio'=>'286.67','CodigoDeBarra'=>'7795378004950','Pvp'=>'286.67']);\nDB::table('sales')->insert(['Codigo' =>'6176002','Precio'=>'873.70','CodigoDeBarra'=>'7795378004974','Pvp'=>'873.70']);\nDB::table('sales')->insert(['Codigo' =>'6176131','Precio'=>'1352.31','CodigoDeBarra'=>'7795378004981','Pvp'=>'1352.31']);\nDB::table('sales')->insert(['Codigo' =>'6431392','Precio'=>'909.03','CodigoDeBarra'=>'7795378005629','Pvp'=>'909.03']);\nDB::table('sales')->insert(['Codigo' =>'6452421','Precio'=>'43086.82','CodigoDeBarra'=>'7798006872174','Pvp'=>'43086.82']);\nDB::table('sales')->insert(['Codigo' =>'6265971','Precio'=>'14956.23','CodigoDeBarra'=>'7798006872136','Pvp'=>'14956.23']);\nDB::table('sales')->insert(['Codigo' =>'8028433','Precio'=>'475174.35','CodigoDeBarra'=>'5000456012683','Pvp'=>'475174.35']);\nDB::table('sales')->insert(['Codigo' =>'8020887','Precio'=>'1069.32','CodigoDeBarra'=>'7798140250562','Pvp'=>'1069.32']);\nDB::table('sales')->insert(['Codigo' =>'8020890','Precio'=>'875.06','CodigoDeBarra'=>'7798140251484','Pvp'=>'875.06']);\nDB::table('sales')->insert(['Codigo' =>'8020894','Precio'=>'2566.89','CodigoDeBarra'=>'7798140250609','Pvp'=>'2566.89']);\nDB::table('sales')->insert(['Codigo' =>'8020893','Precio'=>'1069.32','CodigoDeBarra'=>'7798140250579','Pvp'=>'1069.32']);\nDB::table('sales')->insert(['Codigo' =>'8020886','Precio'=>'1069.32','CodigoDeBarra'=>'7798140250593','Pvp'=>'1069.32']);\nDB::table('sales')->insert(['Codigo' =>'8024364','Precio'=>'207.10','CodigoDeBarra'=>'7798140251927','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8019485','Precio'=>'207.10','CodigoDeBarra'=>'7798140251279','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8019483','Precio'=>'207.10','CodigoDeBarra'=>'650240026805','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8024046','Precio'=>'302.16','CodigoDeBarra'=>'7798140251620','Pvp'=>'302.16']);\nDB::table('sales')->insert(['Codigo' =>'8019484','Precio'=>'207.10','CodigoDeBarra'=>'7798140251262','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8024782','Precio'=>'207.10','CodigoDeBarra'=>'7798140252023','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8024798','Precio'=>'207.10','CodigoDeBarra'=>'7798140252016','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8016372','Precio'=>'207.10','CodigoDeBarra'=>'7798140251637','Pvp'=>'207.10']);\nDB::table('sales')->insert(['Codigo' =>'8009872','Precio'=>'48599.08','CodigoDeBarra'=>'7792371074034','Pvp'=>'48599.08']);\nDB::table('sales')->insert(['Codigo' =>'6350551','Precio'=>'170096.70','CodigoDeBarra'=>'7792371422385','Pvp'=>'170096.70']);\nDB::table('sales')->insert(['Codigo' =>'8035947','Precio'=>'170096.70','CodigoDeBarra'=>'7792371502513','Pvp'=>'170096.70']);\nDB::table('sales')->insert(['Codigo' =>'8009869','Precio'=>'121497.67','CodigoDeBarra'=>'7792371074102','Pvp'=>'121497.67']);\nDB::table('sales')->insert(['Codigo' =>'2562573','Precio'=>'397.36','CodigoDeBarra'=>'7793742001437','Pvp'=>'397.36']);\nDB::table('sales')->insert(['Codigo' =>'5816261','Precio'=>'923.17','CodigoDeBarra'=>'7791763000095','Pvp'=>'923.17']);\nDB::table('sales')->insert(['Codigo' =>'5816262','Precio'=>'1775.19','CodigoDeBarra'=>'7791763000118','Pvp'=>'1775.19']);\nDB::table('sales')->insert(['Codigo' =>'574071','Precio'=>'208.35','CodigoDeBarra'=>'7798006302107','Pvp'=>'208.35']);\nDB::table('sales')->insert(['Codigo' =>'2285531','Precio'=>'374.13','CodigoDeBarra'=>'7795327060709','Pvp'=>'374.13']);\nDB::table('sales')->insert(['Codigo' =>'2285532','Precio'=>'814.12','CodigoDeBarra'=>'7795327060716','Pvp'=>'814.12']);\nDB::table('sales')->insert(['Codigo' =>'4926792','Precio'=>'927.17','CodigoDeBarra'=>'7795356997854','Pvp'=>'927.17']);\nDB::table('sales')->insert(['Codigo' =>'4926791','Precio'=>'185.44','CodigoDeBarra'=>'7795356997847','Pvp'=>'185.44']);\nDB::table('sales')->insert(['Codigo' =>'4926951','Precio'=>'100.94','CodigoDeBarra'=>'7795356997885','Pvp'=>'100.94']);\nDB::table('sales')->insert(['Codigo' =>'4926952','Precio'=>'504.71','CodigoDeBarra'=>'7795356997892','Pvp'=>'504.71']);\nDB::table('sales')->insert(['Codigo' =>'4926958','Precio'=>'1514.12','CodigoDeBarra'=>'7795356999766','Pvp'=>'1514.12']);\nDB::table('sales')->insert(['Codigo' =>'6312133','Precio'=>'2476.31','CodigoDeBarra'=>'7795356001827','Pvp'=>'2476.31']);\nDB::table('sales')->insert(['Codigo' =>'6312261','Precio'=>'288.05','CodigoDeBarra'=>'7795356001834','Pvp'=>'288.05']);\nDB::table('sales')->insert(['Codigo' =>'6312262','Precio'=>'562.15','CodigoDeBarra'=>'7795356001520','Pvp'=>'562.15']);\nDB::table('sales')->insert(['Codigo' =>'6312263','Precio'=>'1093.18','CodigoDeBarra'=>'7795356001803','Pvp'=>'1093.18']);\nDB::table('sales')->insert(['Codigo' =>'6312264','Precio'=>'2436.05','CodigoDeBarra'=>'7795356001537','Pvp'=>'2436.05']);\nDB::table('sales')->insert(['Codigo' =>'4926871','Precio'=>'131.80','CodigoDeBarra'=>'7795356997908','Pvp'=>'131.80']);\nDB::table('sales')->insert(['Codigo' =>'4926872','Precio'=>'659.04','CodigoDeBarra'=>'7795356997915','Pvp'=>'659.04']);\nDB::table('sales')->insert(['Codigo' =>'4926877','Precio'=>'1318.07','CodigoDeBarra'=>'7795356998769','Pvp'=>'1318.07']);\nDB::table('sales')->insert(['Codigo' =>'5658133','Precio'=>'927.17','CodigoDeBarra'=>'7795356999605','Pvp'=>'927.17']);\nDB::table('sales')->insert(['Codigo' =>'5658132','Precio'=>'185.44','CodigoDeBarra'=>'7795356999599','Pvp'=>'185.44']);\nDB::table('sales')->insert(['Codigo' =>'5431003','Precio'=>'659.04','CodigoDeBarra'=>'7795356999308','Pvp'=>'659.04']);\nDB::table('sales')->insert(['Codigo' =>'5431002','Precio'=>'131.80','CodigoDeBarra'=>'7795356994297','Pvp'=>'131.80']);\nDB::table('sales')->insert(['Codigo' =>'5431004','Precio'=>'1318.07','CodigoDeBarra'=>'7795356999315','Pvp'=>'1318.07']);\nDB::table('sales')->insert(['Codigo' =>'5148232','Precio'=>'346.11','CodigoDeBarra'=>'7795380003422','Pvp'=>'346.11']);\nDB::table('sales')->insert(['Codigo' =>'8038460','Precio'=>'102.05','CodigoDeBarra'=>'7798028002757','Pvp'=>'102.05']);\nDB::table('sales')->insert(['Codigo' =>'8033621','Precio'=>'1033.81','CodigoDeBarra'=>'7798028009992','Pvp'=>'1033.81']);\nDB::table('sales')->insert(['Codigo' =>'2896202','Precio'=>'223.87','CodigoDeBarra'=>'7795380002142','Pvp'=>'223.87']);\nDB::table('sales')->insert(['Codigo' =>'6280841','Precio'=>'148.98','CodigoDeBarra'=>'7795380042872','Pvp'=>'148.98']);\nDB::table('sales')->insert(['Codigo' =>'6211422','Precio'=>'19253.58','CodigoDeBarra'=>'7793397090367','Pvp'=>'19253.58']);\nDB::table('sales')->insert(['Codigo' =>'621139','Precio'=>'16057.54','CodigoDeBarra'=>'7793397090350','Pvp'=>'16057.54']);\nDB::table('sales')->insert(['Codigo' =>'9994145','Precio'=>'84.70','CodigoDeBarra'=>'7794207000149','Pvp'=>'84.70']);\nDB::table('sales')->insert(['Codigo' =>'8011495','Precio'=>'82.65','CodigoDeBarra'=>'7798140251873','Pvp'=>'82.65']);\nDB::table('sales')->insert(['Codigo' =>'8007845','Precio'=>'59.88','CodigoDeBarra'=>'7798140251880','Pvp'=>'59.88']);\nDB::table('sales')->insert(['Codigo' =>'628171','Precio'=>'64884.70','CodigoDeBarra'=>'7798021440242','Pvp'=>'64884.70']);\nDB::table('sales')->insert(['Codigo' =>'8037301','Precio'=>'251177.79','CodigoDeBarra'=>'4054839504334','Pvp'=>'251177.79']);\nDB::table('sales')->insert(['Codigo' =>'8033845','Precio'=>'9685.03','CodigoDeBarra'=>'7791829001196','Pvp'=>'9685.03']);\nDB::table('sales')->insert(['Codigo' =>'8033846','Precio'=>'15219.04','CodigoDeBarra'=>'7791829001202','Pvp'=>'15219.04']);\nDB::table('sales')->insert(['Codigo' =>'6506421','Precio'=>'419077.84','CodigoDeBarra'=>'8054083015330','Pvp'=>'419077.84']);\nDB::table('sales')->insert(['Codigo' =>'6430552','Precio'=>'870.10','CodigoDeBarra'=>'7795378005582','Pvp'=>'870.10']);\nDB::table('sales')->insert(['Codigo' =>'6430392','Precio'=>'574.52','CodigoDeBarra'=>'7795378005568','Pvp'=>'574.52']);\nDB::table('sales')->insert(['Codigo' =>'6430423','Precio'=>'630.42','CodigoDeBarra'=>'7795378005575','Pvp'=>'630.42']);\nDB::table('sales')->insert(['Codigo' =>'456021','Precio'=>'2214.44','CodigoDeBarra'=>'7798035310357','Pvp'=>'2214.44']);\nDB::table('sales')->insert(['Codigo' =>'3749261','Precio'=>'1275.12','CodigoDeBarra'=>'7798035310197','Pvp'=>'1275.12']);\nDB::table('sales')->insert(['Codigo' =>'8021595','Precio'=>'752.02','CodigoDeBarra'=>'41554238723','Pvp'=>'752.02']);\nDB::table('sales')->insert(['Codigo' =>'8021596','Precio'=>'752.02','CodigoDeBarra'=>'41554238730','Pvp'=>'752.02']);\nDB::table('sales')->insert(['Codigo' =>'8014218','Precio'=>'752.02','CodigoDeBarra'=>'41554238679','Pvp'=>'752.02']);\nDB::table('sales')->insert(['Codigo' =>'8014216','Precio'=>'752.02','CodigoDeBarra'=>'41554238747','Pvp'=>'752.02']);\nDB::table('sales')->insert(['Codigo' =>'8021598','Precio'=>'752.02','CodigoDeBarra'=>'41554238778','Pvp'=>'752.02']);\nDB::table('sales')->insert(['Codigo' =>'8041211','Precio'=>'462.46','CodigoDeBarra'=>'3600531325114','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8040132','Precio'=>'462.46','CodigoDeBarra'=>'3600531325121','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041212','Precio'=>'462.46','CodigoDeBarra'=>'3600531369392','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8040133','Precio'=>'462.46','CodigoDeBarra'=>'3600531325138','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041213','Precio'=>'462.46','CodigoDeBarra'=>'3600531429539','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041214','Precio'=>'462.46','CodigoDeBarra'=>'3600531369026','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8036901','Precio'=>'462.46','CodigoDeBarra'=>'41554562477','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8040131','Precio'=>'462.46','CodigoDeBarra'=>'3600531325060','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8036903','Precio'=>'462.46','CodigoDeBarra'=>'3600531325077','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041215','Precio'=>'462.46','CodigoDeBarra'=>'3600531395544','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8040135','Precio'=>'462.46','CodigoDeBarra'=>'3600531453404','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041216','Precio'=>'462.46','CodigoDeBarra'=>'3600531324896','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041217','Precio'=>'462.46','CodigoDeBarra'=>'3600531453442','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8040134','Precio'=>'462.46','CodigoDeBarra'=>'3600531369484','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8041218','Precio'=>'462.46','CodigoDeBarra'=>'3600531359072','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8027046','Precio'=>'536.57','CodigoDeBarra'=>'41554466157','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8027050','Precio'=>'536.57','CodigoDeBarra'=>'41554466171','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8027047','Precio'=>'536.57','CodigoDeBarra'=>'41554466195','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8027048','Precio'=>'536.57','CodigoDeBarra'=>'41554466188','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8020199','Precio'=>'519.45','CodigoDeBarra'=>'7509552903195','Pvp'=>'519.45']);\nDB::table('sales')->insert(['Codigo' =>'8020192','Precio'=>'536.57','CodigoDeBarra'=>'7509552907698','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8020195','Precio'=>'536.57','CodigoDeBarra'=>'7509552907735','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8020194','Precio'=>'536.57','CodigoDeBarra'=>'7509552907704','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8023005','Precio'=>'536.57','CodigoDeBarra'=>'41554441277','Pvp'=>'536.57']);\nDB::table('sales')->insert(['Codigo' =>'8029050','Precio'=>'462.46','CodigoDeBarra'=>'41554492187','Pvp'=>'462.46']);\nDB::table('sales')->insert(['Codigo' =>'8012015','Precio'=>'798.96','CodigoDeBarra'=>'41554209549','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8012013','Precio'=>'798.96','CodigoDeBarra'=>'41554209570','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8012017','Precio'=>'798.96','CodigoDeBarra'=>'41554209617','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8034679','Precio'=>'798.96','CodigoDeBarra'=>'41554209556','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8012014','Precio'=>'798.96','CodigoDeBarra'=>'41554209563','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8014133','Precio'=>'798.96','CodigoDeBarra'=>'41554209587','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8034680','Precio'=>'798.96','CodigoDeBarra'=>'41554209600','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8036890','Precio'=>'551.65','CodigoDeBarra'=>'3600531417734','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8036891','Precio'=>'551.65','CodigoDeBarra'=>'3600531417758','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8036892','Precio'=>'551.65','CodigoDeBarra'=>'3600531417765','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8043632','Precio'=>'551.65','CodigoDeBarra'=>'41554544923','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8043634','Precio'=>'551.65','CodigoDeBarra'=>'41554545876','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8043633','Precio'=>'551.65','CodigoDeBarra'=>'41554545005','Pvp'=>'551.65']);\nDB::table('sales')->insert(['Codigo' =>'8039196','Precio'=>'487.54','CodigoDeBarra'=>'41554551174','Pvp'=>'487.54']);\nDB::table('sales')->insert(['Codigo' =>'8039195','Precio'=>'487.54','CodigoDeBarra'=>'41554551167','Pvp'=>'487.54']);\nDB::table('sales')->insert(['Codigo' =>'8014135','Precio'=>'320.46','CodigoDeBarra'=>'7899026420458','Pvp'=>'320.46']);\nDB::table('sales')->insert(['Codigo' =>'8040136','Precio'=>'512.59','CodigoDeBarra'=>'41554550467','Pvp'=>'512.59']);\nDB::table('sales')->insert(['Codigo' =>'8014221','Precio'=>'512.59','CodigoDeBarra'=>'41554247718','Pvp'=>'512.59']);\nDB::table('sales')->insert(['Codigo' =>'8014220','Precio'=>'512.59','CodigoDeBarra'=>'41554247725','Pvp'=>'512.59']);\nDB::table('sales')->insert(['Codigo' =>'8014219','Precio'=>'512.59','CodigoDeBarra'=>'41554247732','Pvp'=>'512.59']);\nDB::table('sales')->insert(['Codigo' =>'8040853','Precio'=>'600.00','CodigoDeBarra'=>'41554267204','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8040855','Precio'=>'600.00','CodigoDeBarra'=>'41554546811','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8016424','Precio'=>'600.00','CodigoDeBarra'=>'41554259247','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8040854','Precio'=>'600.00','CodigoDeBarra'=>'41554546804','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8016425','Precio'=>'600.00','CodigoDeBarra'=>'41554259254','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8016426','Precio'=>'600.00','CodigoDeBarra'=>'41554259261','Pvp'=>'600.00']);\nDB::table('sales')->insert(['Codigo' =>'8016427','Precio'=>'562.78','CodigoDeBarra'=>'41554267198','Pvp'=>'562.78']);\nDB::table('sales')->insert(['Codigo' =>'8024260','Precio'=>'494.54','CodigoDeBarra'=>'41554429695','Pvp'=>'494.54']);\nDB::table('sales')->insert(['Codigo' =>'8041940','Precio'=>'319.80','CodigoDeBarra'=>'41554486131','Pvp'=>'319.80']);\nDB::table('sales')->insert(['Codigo' =>'8041941','Precio'=>'319.80','CodigoDeBarra'=>'41554486100','Pvp'=>'319.80']);\nDB::table('sales')->insert(['Codigo' =>'8041939','Precio'=>'319.80','CodigoDeBarra'=>'41554486056','Pvp'=>'319.80']);\nDB::table('sales')->insert(['Codigo' =>'8041942','Precio'=>'319.80','CodigoDeBarra'=>'41554492859','Pvp'=>'319.80']);\nDB::table('sales')->insert(['Codigo' =>'8030366','Precio'=>'319.80','CodigoDeBarra'=>'41554203271','Pvp'=>'319.80']);\nDB::table('sales')->insert(['Codigo' =>'8035249','Precio'=>'487.18','CodigoDeBarra'=>'3600531443436','Pvp'=>'487.18']);\nDB::table('sales')->insert(['Codigo' =>'8109465','Precio'=>'561.04','CodigoDeBarra'=>'3600531502768','Pvp'=>'561.04']);\nDB::table('sales')->insert(['Codigo' =>'8014551','Precio'=>'548.57','CodigoDeBarra'=>'3600530729425','Pvp'=>'548.57']);\nDB::table('sales')->insert(['Codigo' =>'8014549','Precio'=>'561.04','CodigoDeBarra'=>'3600530730308','Pvp'=>'561.04']);\nDB::table('sales')->insert(['Codigo' =>'8028483','Precio'=>'543.26','CodigoDeBarra'=>'41554460834','Pvp'=>'543.26']);\nDB::table('sales')->insert(['Codigo' =>'8026606','Precio'=>'487.49','CodigoDeBarra'=>'41554442182','Pvp'=>'487.49']);\nDB::table('sales')->insert(['Codigo' =>'8026607','Precio'=>'487.49','CodigoDeBarra'=>'41554442205','Pvp'=>'487.49']);\nDB::table('sales')->insert(['Codigo' =>'6301599','Precio'=>'300.25','CodigoDeBarra'=>'7790033206489','Pvp'=>'300.25']);\nDB::table('sales')->insert(['Codigo' =>'8012325','Precio'=>'560.62','CodigoDeBarra'=>'41554220186','Pvp'=>'560.62']);\nDB::table('sales')->insert(['Codigo' =>'8012271','Precio'=>'511.04','CodigoDeBarra'=>'7899026423541','Pvp'=>'511.04']);\nDB::table('sales')->insert(['Codigo' =>'8012270','Precio'=>'511.04','CodigoDeBarra'=>'7899026423534','Pvp'=>'511.04']);\nDB::table('sales')->insert(['Codigo' =>'8012906','Precio'=>'543.40','CodigoDeBarra'=>'7899026426481','Pvp'=>'543.40']);\nDB::table('sales')->insert(['Codigo' =>'8109467','Precio'=>'382.49','CodigoDeBarra'=>'41554429633','Pvp'=>'382.49']);\nDB::table('sales')->insert(['Codigo' =>'8109466','Precio'=>'382.49','CodigoDeBarra'=>'41554429640','Pvp'=>'382.49']);\nDB::table('sales')->insert(['Codigo' =>'8018692','Precio'=>'605.68','CodigoDeBarra'=>'3600530791903','Pvp'=>'605.68']);\nDB::table('sales')->insert(['Codigo' =>'8018691','Precio'=>'605.68','CodigoDeBarra'=>'3600530791897','Pvp'=>'605.68']);\nDB::table('sales')->insert(['Codigo' =>'8009972','Precio'=>'377.74','CodigoDeBarra'=>'3600530554126','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8000711','Precio'=>'377.74','CodigoDeBarra'=>'3600530125005','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8000714','Precio'=>'377.74','CodigoDeBarra'=>'3600530282418','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8009974','Precio'=>'377.74','CodigoDeBarra'=>'3600530554140','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8000462','Precio'=>'377.74','CodigoDeBarra'=>'3600530124848','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8000474','Precio'=>'377.74','CodigoDeBarra'=>'3600530125104','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8000463','Precio'=>'377.74','CodigoDeBarra'=>'3600530124862','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8029180','Precio'=>'377.74','CodigoDeBarra'=>'3600531318949','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8032380','Precio'=>'377.74','CodigoDeBarra'=>'3600531354534','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8041444','Precio'=>'377.74','CodigoDeBarra'=>'3600531568801','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8041446','Precio'=>'377.74','CodigoDeBarra'=>'3600531568825','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8041447','Precio'=>'377.74','CodigoDeBarra'=>'3600531568832','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8041448','Precio'=>'377.74','CodigoDeBarra'=>'3600531568849','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8034268','Precio'=>'377.74','CodigoDeBarra'=>'3600531401245','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8034267','Precio'=>'377.74','CodigoDeBarra'=>'3600531401139','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8039374','Precio'=>'377.74','CodigoDeBarra'=>'3600531560409','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8039375','Precio'=>'377.74','CodigoDeBarra'=>'3600531560416','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8039376','Precio'=>'377.74','CodigoDeBarra'=>'3600531560423','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8039372','Precio'=>'377.74','CodigoDeBarra'=>'3600531560379','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8039373','Precio'=>'377.74','CodigoDeBarra'=>'3600531560386','Pvp'=>'377.74']);\nDB::table('sales')->insert(['Codigo' =>'8031689','Precio'=>'762.59','CodigoDeBarra'=>'41554434866','Pvp'=>'762.59']);\nDB::table('sales')->insert(['Codigo' =>'8109468','Precio'=>'762.59','CodigoDeBarra'=>'41554419184','Pvp'=>'762.59']);\nDB::table('sales')->insert(['Codigo' =>'8032843','Precio'=>'680.35','CodigoDeBarra'=>'41554486155','Pvp'=>'680.35']);\nDB::table('sales')->insert(['Codigo' =>'8032844','Precio'=>'680.35','CodigoDeBarra'=>'41554486162','Pvp'=>'680.35']);\nDB::table('sales')->insert(['Codigo' =>'8034260','Precio'=>'597.26','CodigoDeBarra'=>'41554237764','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8034261','Precio'=>'597.26','CodigoDeBarra'=>'41554237825','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8034241','Precio'=>'597.26','CodigoDeBarra'=>'41554237726','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8034262','Precio'=>'597.26','CodigoDeBarra'=>'41554237948','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8034263','Precio'=>'597.26','CodigoDeBarra'=>'41554335897','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8033460','Precio'=>'597.26','CodigoDeBarra'=>'3600531365790','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8033459','Precio'=>'597.26','CodigoDeBarra'=>'3600531365783','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8033464','Precio'=>'597.26','CodigoDeBarra'=>'41554494976','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8033461','Precio'=>'597.26','CodigoDeBarra'=>'3600531365806','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8033462','Precio'=>'597.26','CodigoDeBarra'=>'41554494990','Pvp'=>'597.26']);\nDB::table('sales')->insert(['Codigo' =>'8036777','Precio'=>'604.61','CodigoDeBarra'=>'3600531411107','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036778','Precio'=>'604.61','CodigoDeBarra'=>'3600531411114','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036779','Precio'=>'604.61','CodigoDeBarra'=>'3600531411121','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036780','Precio'=>'604.61','CodigoDeBarra'=>'3600531411138','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036781','Precio'=>'604.61','CodigoDeBarra'=>'3600531411169','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036783','Precio'=>'604.61','CodigoDeBarra'=>'3600531411091','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8036782','Precio'=>'604.61','CodigoDeBarra'=>'3600531411176','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8037747','Precio'=>'604.61','CodigoDeBarra'=>'3600531411183','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041222','Precio'=>'604.61','CodigoDeBarra'=>'3600531469450','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8037748','Precio'=>'604.61','CodigoDeBarra'=>'3600531411145','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8037749','Precio'=>'604.61','CodigoDeBarra'=>'3600531411152','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8038165','Precio'=>'604.61','CodigoDeBarra'=>'3600531469429','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8038167','Precio'=>'604.61','CodigoDeBarra'=>'3600531469467','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8038168','Precio'=>'604.61','CodigoDeBarra'=>'3600531469498','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041219','Precio'=>'604.61','CodigoDeBarra'=>'3600531469412','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8038166','Precio'=>'604.61','CodigoDeBarra'=>'3600531469436','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8039175','Precio'=>'604.61','CodigoDeBarra'=>'3600531469481','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041220','Precio'=>'604.61','CodigoDeBarra'=>'3600531469443','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041221','Precio'=>'604.61','CodigoDeBarra'=>'3600531469504','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041223','Precio'=>'604.61','CodigoDeBarra'=>'3600531513399','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041224','Precio'=>'604.61','CodigoDeBarra'=>'3600531513405','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041225','Precio'=>'604.61','CodigoDeBarra'=>'3600531513412','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041228','Precio'=>'604.61','CodigoDeBarra'=>'3600531513474','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041226','Precio'=>'604.61','CodigoDeBarra'=>'3600531513382','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8041227','Precio'=>'604.61','CodigoDeBarra'=>'3600531513429','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8043208','Precio'=>'604.61','CodigoDeBarra'=>'3600531579036','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8043211','Precio'=>'604.61','CodigoDeBarra'=>'3600531579043','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8043209','Precio'=>'604.61','CodigoDeBarra'=>'3600531579050','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8043210','Precio'=>'604.61','CodigoDeBarra'=>'3600531579067','Pvp'=>'604.61']);\nDB::table('sales')->insert(['Codigo' =>'8020751','Precio'=>'487.10','CodigoDeBarra'=>'3600530958221','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8020752','Precio'=>'487.10','CodigoDeBarra'=>'3600530958238','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8017741','Precio'=>'487.10','CodigoDeBarra'=>'3600530851805','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8037253','Precio'=>'487.10','CodigoDeBarra'=>'41554464245','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032748','Precio'=>'539.77','CodigoDeBarra'=>'3600531393847','Pvp'=>'539.77']);\nDB::table('sales')->insert(['Codigo' =>'8032747','Precio'=>'539.77','CodigoDeBarra'=>'3600531393748','Pvp'=>'539.77']);\nDB::table('sales')->insert(['Codigo' =>'8032746','Precio'=>'539.77','CodigoDeBarra'=>'3600531393809','Pvp'=>'539.77']);\nDB::table('sales')->insert(['Codigo' =>'8039197','Precio'=>'487.10','CodigoDeBarra'=>'3600531543310','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8039198','Precio'=>'487.10','CodigoDeBarra'=>'3600531543327','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8039200','Precio'=>'487.10','CodigoDeBarra'=>'3600531543341','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8039201','Precio'=>'487.10','CodigoDeBarra'=>'3600531543358','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8039202','Precio'=>'487.10','CodigoDeBarra'=>'3600531543365','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8039199','Precio'=>'487.10','CodigoDeBarra'=>'3600531543334','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8041934','Precio'=>'487.10','CodigoDeBarra'=>'3600531464189','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8041935','Precio'=>'487.10','CodigoDeBarra'=>'3600531464219','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8041933','Precio'=>'487.10','CodigoDeBarra'=>'3600531464110','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032744','Precio'=>'549.13','CodigoDeBarra'=>'41554459784','Pvp'=>'549.13']);\nDB::table('sales')->insert(['Codigo' =>'8012166','Precio'=>'487.10','CodigoDeBarra'=>'41554198232','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8012159','Precio'=>'487.10','CodigoDeBarra'=>'41554198522','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8012158','Precio'=>'487.10','CodigoDeBarra'=>'41554198553','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8018317','Precio'=>'367.56','CodigoDeBarra'=>'7899026476882','Pvp'=>'367.56']);\nDB::table('sales')->insert(['Codigo' =>'8014925','Precio'=>'367.56','CodigoDeBarra'=>'7899026450196','Pvp'=>'367.56']);\nDB::table('sales')->insert(['Codigo' =>'8014926','Precio'=>'367.56','CodigoDeBarra'=>'7899026450202','Pvp'=>'367.56']);\nDB::table('sales')->insert(['Codigo' =>'8014928','Precio'=>'367.56','CodigoDeBarra'=>'7899026450226','Pvp'=>'367.56']);\nDB::table('sales')->insert(['Codigo' =>'8000380','Precio'=>'367.56','CodigoDeBarra'=>'7899026416567','Pvp'=>'367.56']);\nDB::table('sales')->insert(['Codigo' =>'8032790','Precio'=>'487.10','CodigoDeBarra'=>'3600531363857','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8029182','Precio'=>'487.10','CodigoDeBarra'=>'3600531352431','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8029183','Precio'=>'487.10','CodigoDeBarra'=>'3600531352363','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032792','Precio'=>'487.10','CodigoDeBarra'=>'3600531363888','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032788','Precio'=>'487.10','CodigoDeBarra'=>'3600531363819','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032789','Precio'=>'487.10','CodigoDeBarra'=>'3600531363826','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032791','Precio'=>'487.10','CodigoDeBarra'=>'3600531363864','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032793','Precio'=>'487.10','CodigoDeBarra'=>'3600531364458','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032583','Precio'=>'549.13','CodigoDeBarra'=>'41554459746','Pvp'=>'549.13']);\nDB::table('sales')->insert(['Codigo' =>'8028050','Precio'=>'487.10','CodigoDeBarra'=>'41554453621','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8022147','Precio'=>'487.10','CodigoDeBarra'=>'41554429886','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8022142','Precio'=>'487.10','CodigoDeBarra'=>'41554429961','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032582','Precio'=>'549.13','CodigoDeBarra'=>'41554459722','Pvp'=>'549.13']);\nDB::table('sales')->insert(['Codigo' =>'8032581','Precio'=>'549.13','CodigoDeBarra'=>'41554459715','Pvp'=>'549.13']);\nDB::table('sales')->insert(['Codigo' =>'8022143','Precio'=>'487.10','CodigoDeBarra'=>'41554429954','Pvp'=>'487.10']);\nDB::table('sales')->insert(['Codigo' =>'8032745','Precio'=>'549.13','CodigoDeBarra'=>'41554459760','Pvp'=>'549.13']);\nDB::table('sales')->insert(['Codigo' =>'8005489','Precio'=>'320.46','CodigoDeBarra'=>'7899026417496','Pvp'=>'320.46']);\nDB::table('sales')->insert(['Codigo' =>'8032391','Precio'=>'680.30','CodigoDeBarra'=>'41554493719','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8034768','Precio'=>'680.30','CodigoDeBarra'=>'41554540321','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8034769','Precio'=>'680.30','CodigoDeBarra'=>'41554542837','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8032392','Precio'=>'680.30','CodigoDeBarra'=>'41554493856','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8041746','Precio'=>'680.67','CodigoDeBarra'=>'3600531584696','Pvp'=>'680.67']);\nDB::table('sales')->insert(['Codigo' =>'8027643','Precio'=>'680.30','CodigoDeBarra'=>'41554443479','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8026560','Precio'=>'680.30','CodigoDeBarra'=>'41554443493','Pvp'=>'680.30']);\nDB::table('sales')->insert(['Codigo' =>'8014137','Precio'=>'396.58','CodigoDeBarra'=>'41554209310','Pvp'=>'396.58']);\nDB::table('sales')->insert(['Codigo' =>'8000339','Precio'=>'396.58','CodigoDeBarra'=>'41554519457','Pvp'=>'396.58']);\nDB::table('sales')->insert(['Codigo' =>'8013691','Precio'=>'468.11','CodigoDeBarra'=>'3600531507244','Pvp'=>'468.11']);\nDB::table('sales')->insert(['Codigo' =>'8013689','Precio'=>'468.11','CodigoDeBarra'=>'3600531507268','Pvp'=>'468.11']);\nDB::table('sales')->insert(['Codigo' =>'8032839','Precio'=>'871.82','CodigoDeBarra'=>'41554455595','Pvp'=>'871.82']);\nDB::table('sales')->insert(['Codigo' =>'8032840','Precio'=>'871.82','CodigoDeBarra'=>'41554455601','Pvp'=>'871.82']);\nDB::table('sales')->insert(['Codigo' =>'8037255','Precio'=>'871.82','CodigoDeBarra'=>'41554496475','Pvp'=>'871.82']);\nDB::table('sales')->insert(['Codigo' =>'8038737','Precio'=>'656.64','CodigoDeBarra'=>'41554548266','Pvp'=>'656.64']);\nDB::table('sales')->insert(['Codigo' =>'8038736','Precio'=>'656.64','CodigoDeBarra'=>'41554548242','Pvp'=>'656.64']);\nDB::table('sales')->insert(['Codigo' =>'8038740','Precio'=>'656.64','CodigoDeBarra'=>'41554548280','Pvp'=>'656.64']);\nDB::table('sales')->insert(['Codigo' =>'8038739','Precio'=>'656.64','CodigoDeBarra'=>'41554548273','Pvp'=>'656.64']);\nDB::table('sales')->insert(['Codigo' =>'8038735','Precio'=>'656.64','CodigoDeBarra'=>'41554548235','Pvp'=>'656.64']);\nDB::table('sales')->insert(['Codigo' =>'8033921','Precio'=>'612.83','CodigoDeBarra'=>'41554499742','Pvp'=>'612.83']);\nDB::table('sales')->insert(['Codigo' =>'8033922','Precio'=>'612.83','CodigoDeBarra'=>'41554499780','Pvp'=>'612.83']);\nDB::table('sales')->insert(['Codigo' =>'8040527','Precio'=>'878.62','CodigoDeBarra'=>'41554563290','Pvp'=>'878.62']);\nDB::table('sales')->insert(['Codigo' =>'8036894','Precio'=>'368.70','CodigoDeBarra'=>'7509552830064','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8036895','Precio'=>'368.70','CodigoDeBarra'=>'7509552830071','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'6302125','Precio'=>'368.70','CodigoDeBarra'=>'7790033215832','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8000352','Precio'=>'368.70','CodigoDeBarra'=>'7790033215849','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8109464','Precio'=>'655.06','CodigoDeBarra'=>'7509552839333','Pvp'=>'655.06']);\nDB::table('sales')->insert(['Codigo' =>'8109463','Precio'=>'655.06','CodigoDeBarra'=>'7509552839234','Pvp'=>'655.06']);\nDB::table('sales')->insert(['Codigo' =>'8000355','Precio'=>'368.70','CodigoDeBarra'=>'7790033213326','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8027962','Precio'=>'519.45','CodigoDeBarra'=>'7702433312004','Pvp'=>'519.45']);\nDB::table('sales')->insert(['Codigo' =>'8029045','Precio'=>'368.70','CodigoDeBarra'=>'7702433312172','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8029046','Precio'=>'368.70','CodigoDeBarra'=>'7702433312189','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8029047','Precio'=>'368.70','CodigoDeBarra'=>'7702433312196','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8029048','Precio'=>'368.70','CodigoDeBarra'=>'7702433312202','Pvp'=>'368.70']);\nDB::table('sales')->insert(['Codigo' =>'8036899','Precio'=>'471.50','CodigoDeBarra'=>'41554503135','Pvp'=>'471.50']);\nDB::table('sales')->insert(['Codigo' =>'8036898','Precio'=>'471.50','CodigoDeBarra'=>'41554503111','Pvp'=>'471.50']);\nDB::table('sales')->insert(['Codigo' =>'8036900','Precio'=>'471.50','CodigoDeBarra'=>'41554503524','Pvp'=>'471.50']);\nDB::table('sales')->insert(['Codigo' =>'8035118','Precio'=>'798.96','CodigoDeBarra'=>'41554541441','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8035117','Precio'=>'798.96','CodigoDeBarra'=>'41554541427','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8035116','Precio'=>'798.96','CodigoDeBarra'=>'41554541397','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8035143','Precio'=>'798.96','CodigoDeBarra'=>'41554541472','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8035119','Precio'=>'798.96','CodigoDeBarra'=>'41554541458','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8035144','Precio'=>'798.96','CodigoDeBarra'=>'41554541496','Pvp'=>'798.96']);\nDB::table('sales')->insert(['Codigo' =>'8039194','Precio'=>'548.34','CodigoDeBarra'=>'3600531531065','Pvp'=>'548.34']);\nDB::table('sales')->insert(['Codigo' =>'8039192','Precio'=>'548.34','CodigoDeBarra'=>'3600531531133','Pvp'=>'548.34']);\nDB::table('sales')->insert(['Codigo' =>'8039193','Precio'=>'548.34','CodigoDeBarra'=>'3600531531188','Pvp'=>'548.34']);\nDB::table('sales')->insert(['Codigo' =>'8041745','Precio'=>'561.23','CodigoDeBarra'=>'3600531571726','Pvp'=>'561.23']);\nDB::table('sales')->insert(['Codigo' =>'5182181','Precio'=>'423.09','CodigoDeBarra'=>'7798122340106','Pvp'=>'423.09']);\nDB::table('sales')->insert(['Codigo' =>'5182182','Precio'=>'782.36','CodigoDeBarra'=>'7798122340113','Pvp'=>'782.36']);\nDB::table('sales')->insert(['Codigo' =>'696001','Precio'=>'239.59','CodigoDeBarra'=>'7795356000882','Pvp'=>'239.59']);\nDB::table('sales')->insert(['Codigo' =>'8000135','Precio'=>'225.37','CodigoDeBarra'=>'7795356999377','Pvp'=>'225.37']);\nDB::table('sales')->insert(['Codigo' =>'6282394','Precio'=>'64192.85','CodigoDeBarra'=>'7798163500279','Pvp'=>'64192.85']);\nDB::table('sales')->insert(['Codigo' =>'8026974','Precio'=>'69044.77','CodigoDeBarra'=>'7795306352849','Pvp'=>'69044.77']);\nDB::table('sales')->insert(['Codigo' =>'8026975','Precio'=>'276179.16','CodigoDeBarra'=>'7795306352832','Pvp'=>'276179.16']);\nDB::table('sales')->insert(['Codigo' =>'2414481','Precio'=>'894.29','CodigoDeBarra'=>'7795327060778','Pvp'=>'894.29']);\nDB::table('sales')->insert(['Codigo' =>'8031264','Precio'=>'3004.23','CodigoDeBarra'=>'7798035310708','Pvp'=>'3004.23']);\nDB::table('sales')->insert(['Codigo' =>'8040877','Precio'=>'881.62','CodigoDeBarra'=>'7798061752060','Pvp'=>'881.62']);\nDB::table('sales')->insert(['Codigo' =>'6156265','Precio'=>'598.15','CodigoDeBarra'=>'7795336000376','Pvp'=>'598.15']);\nDB::table('sales')->insert(['Codigo' =>'6156266','Precio'=>'1195.96','CodigoDeBarra'=>'7795336000383','Pvp'=>'1195.96']);\nDB::table('sales')->insert(['Codigo' =>'6156395','Precio'=>'899.19','CodigoDeBarra'=>'7795336000390','Pvp'=>'899.19']);\nDB::table('sales')->insert(['Codigo' =>'6156396','Precio'=>'1743.78','CodigoDeBarra'=>'7795336000406','Pvp'=>'1743.78']);\nDB::table('sales')->insert(['Codigo' =>'660521','Precio'=>'378.77','CodigoDeBarra'=>'7795378001812','Pvp'=>'378.77']);\nDB::table('sales')->insert(['Codigo' =>'660522','Precio'=>'646.87','CodigoDeBarra'=>'7795378001829','Pvp'=>'646.87']);\nDB::table('sales')->insert(['Codigo' =>'658562','Precio'=>'305.12','CodigoDeBarra'=>'7795378000839','Pvp'=>'305.12']);\nDB::table('sales')->insert(['Codigo' =>'6232','Precio'=>'213.30','CodigoDeBarra'=>'7792098362285','Pvp'=>'213.30']);\nDB::table('sales')->insert(['Codigo' =>'6170261','Precio'=>'64671.02','CodigoDeBarra'=>'7795309000181','Pvp'=>'64671.02']);\nDB::table('sales')->insert(['Codigo' =>'4999231','Precio'=>'33203.13','CodigoDeBarra'=>'7798025130354','Pvp'=>'33203.13']);\nDB::table('sales')->insert(['Codigo' =>'8026113','Precio'=>'292374.80','CodigoDeBarra'=>'7795300001132','Pvp'=>'292374.80']);\nDB::table('sales')->insert(['Codigo' =>'4642482','Precio'=>'178.16','CodigoDeBarra'=>'7795336290074','Pvp'=>'178.16']);\nDB::table('sales')->insert(['Codigo' =>'8001782','Precio'=>'364.39','CodigoDeBarra'=>'7795336290104','Pvp'=>'364.39']);\nDB::table('sales')->insert(['Codigo' =>'8001783','Precio'=>'993.64','CodigoDeBarra'=>'7795336290128','Pvp'=>'993.64']);\nDB::table('sales')->insert(['Codigo' =>'8038300','Precio'=>'109.00','CodigoDeBarra'=>'7896075709053','Pvp'=>'109.00']);\nDB::table('sales')->insert(['Codigo' =>'8038303','Precio'=>'484.47','CodigoDeBarra'=>'7896075712442','Pvp'=>'484.47']);\nDB::table('sales')->insert(['Codigo' =>'8038302','Precio'=>'121.12','CodigoDeBarra'=>'7896075757474','Pvp'=>'121.12']);\nDB::table('sales')->insert(['Codigo' =>'8038301','Precio'=>'339.14','CodigoDeBarra'=>'7896075701040','Pvp'=>'339.14']);\nDB::table('sales')->insert(['Codigo' =>'4142190','Precio'=>'4082.18','CodigoDeBarra'=>'7795336079204','Pvp'=>'4082.18']);\nDB::table('sales')->insert(['Codigo' =>'4142011','Precio'=>'1868.85','CodigoDeBarra'=>'7795336079006','Pvp'=>'1868.85']);\nDB::table('sales')->insert(['Codigo' =>'8042491','Precio'=>'75.89','CodigoDeBarra'=>'7791984000966','Pvp'=>'75.89']);\nDB::table('sales')->insert(['Codigo' =>'8010292','Precio'=>'172.46','CodigoDeBarra'=>'7791984000218','Pvp'=>'172.46']);\nDB::table('sales')->insert(['Codigo' =>'8027362','Precio'=>'62.00','CodigoDeBarra'=>'7791984000782','Pvp'=>'62.00']);\nDB::table('sales')->insert(['Codigo' =>'8014342','Precio'=>'213.85','CodigoDeBarra'=>'7792374000047','Pvp'=>'213.85']);\nDB::table('sales')->insert(['Codigo' =>'5585001','Precio'=>'724.28','CodigoDeBarra'=>'7791171000298','Pvp'=>'724.28']);\nDB::table('sales')->insert(['Codigo' =>'5585002','Precio'=>'1158.35','CodigoDeBarra'=>'7791171000304','Pvp'=>'1158.35']);\nDB::table('sales')->insert(['Codigo' =>'3299631','Precio'=>'164.26','CodigoDeBarra'=>'7795320034912','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'586968','Precio'=>'5267.61','CodigoDeBarra'=>'7798035313983','Pvp'=>'5267.61']);\nDB::table('sales')->insert(['Codigo' =>'586971','Precio'=>'2939.80','CodigoDeBarra'=>'7798035313990','Pvp'=>'2939.80']);\nDB::table('sales')->insert(['Codigo' =>'5728134','Precio'=>'608.51','CodigoDeBarra'=>'7791171000267','Pvp'=>'608.51']);\nDB::table('sales')->insert(['Codigo' =>'5728264','Precio'=>'1095.27','CodigoDeBarra'=>'7791171000274','Pvp'=>'1095.27']);\nDB::table('sales')->insert(['Codigo' =>'5728004','Precio'=>'401.48','CodigoDeBarra'=>'7791171000243','Pvp'=>'401.48']);\nDB::table('sales')->insert(['Codigo' =>'4204801','Precio'=>'115.89','CodigoDeBarra'=>'7795378004424','Pvp'=>'115.89']);\nDB::table('sales')->insert(['Codigo' =>'4632321','Precio'=>'263.71','CodigoDeBarra'=>'7795378004479','Pvp'=>'263.71']);\nDB::table('sales')->insert(['Codigo' =>'4632322','Precio'=>'524.48','CodigoDeBarra'=>'7795378001997','Pvp'=>'524.48']);\nDB::table('sales')->insert(['Codigo' =>'4632324','Precio'=>'1018.92','CodigoDeBarra'=>'7795378002000','Pvp'=>'1018.92']);\nDB::table('sales')->insert(['Codigo' =>'4497531','Precio'=>'460.75','CodigoDeBarra'=>'7795378004202','Pvp'=>'460.75']);\nDB::table('sales')->insert(['Codigo' =>'5896262','Precio'=>'171.65','CodigoDeBarra'=>'7795378004639','Pvp'=>'171.65']);\nDB::table('sales')->insert(['Codigo' =>'5896263','Precio'=>'341.75','CodigoDeBarra'=>'7795378004660','Pvp'=>'341.75']);\nDB::table('sales')->insert(['Codigo' =>'6283552','Precio'=>'1053.99','CodigoDeBarra'=>'7795378005124','Pvp'=>'1053.99']);\nDB::table('sales')->insert(['Codigo' =>'6283551','Precio'=>'532.31','CodigoDeBarra'=>'7795378005117','Pvp'=>'532.31']);\nDB::table('sales')->insert(['Codigo' =>'5899552','Precio'=>'406.22','CodigoDeBarra'=>'7795378004646','Pvp'=>'406.22']);\nDB::table('sales')->insert(['Codigo' =>'5899553','Precio'=>'753.46','CodigoDeBarra'=>'7795378004653','Pvp'=>'753.46']);\nDB::table('sales')->insert(['Codigo' =>'4897251','Precio'=>'182.43','CodigoDeBarra'=>'7795378003045','Pvp'=>'182.43']);\nDB::table('sales')->insert(['Codigo' =>'4897252','Precio'=>'361.12','CodigoDeBarra'=>'7795378003052','Pvp'=>'361.12']);\nDB::table('sales')->insert(['Codigo' =>'5641261','Precio'=>'229.61','CodigoDeBarra'=>'7795378003816','Pvp'=>'229.61']);\nDB::table('sales')->insert(['Codigo' =>'5641262','Precio'=>'449.57','CodigoDeBarra'=>'7795378003823','Pvp'=>'449.57']);\nDB::table('sales')->insert(['Codigo' =>'3981901','Precio'=>'431.49','CodigoDeBarra'=>'7795378004448','Pvp'=>'431.49']);\nDB::table('sales')->insert(['Codigo' =>'3981902','Precio'=>'755.91','CodigoDeBarra'=>'7795378004431','Pvp'=>'755.91']);\nDB::table('sales')->insert(['Codigo' =>'8006799','Precio'=>'1836.04','CodigoDeBarra'=>'7793397050446','Pvp'=>'1836.04']);\nDB::table('sales')->insert(['Codigo' =>'8006798','Precio'=>'1448.62','CodigoDeBarra'=>'7793397050439','Pvp'=>'1448.62']);\nDB::table('sales')->insert(['Codigo' =>'8029156','Precio'=>'930.81','CodigoDeBarra'=>'7798161930238','Pvp'=>'930.81']);\nDB::table('sales')->insert(['Codigo' =>'4279154','Precio'=>'1628.96','CodigoDeBarra'=>'7798161930252','Pvp'=>'1628.96']);\nDB::table('sales')->insert(['Codigo' =>'6171973','Precio'=>'301.17','CodigoDeBarra'=>'7795380001084','Pvp'=>'301.17']);\nDB::table('sales')->insert(['Codigo' =>'6171974','Precio'=>'572.28','CodigoDeBarra'=>'7795380001091','Pvp'=>'572.28']);\nDB::table('sales')->insert(['Codigo' =>'5232511','Precio'=>'283.93','CodigoDeBarra'=>'7795380010475','Pvp'=>'283.93']);\nDB::table('sales')->insert(['Codigo' =>'5232512','Precio'=>'567.85','CodigoDeBarra'=>'7795380010482','Pvp'=>'567.85']);\nDB::table('sales')->insert(['Codigo' =>'5169991','Precio'=>'372.41','CodigoDeBarra'=>'7795380000049','Pvp'=>'372.41']);\nDB::table('sales')->insert(['Codigo' =>'5169992','Precio'=>'695.83','CodigoDeBarra'=>'7795380000056','Pvp'=>'695.83']);\nDB::table('sales')->insert(['Codigo' =>'8010738','Precio'=>'1013.54','CodigoDeBarra'=>'7795380000087','Pvp'=>'1013.54']);\nDB::table('sales')->insert(['Codigo' =>'8006795','Precio'=>'678.49','CodigoDeBarra'=>'7793397050064','Pvp'=>'678.49']);\nDB::table('sales')->insert(['Codigo' =>'8007047','Precio'=>'1237.50','CodigoDeBarra'=>'7793397050071','Pvp'=>'1237.50']);\nDB::table('sales')->insert(['Codigo' =>'3145421','Precio'=>'1232.91','CodigoDeBarra'=>'7795367000086','Pvp'=>'1232.91']);\nDB::table('sales')->insert(['Codigo' =>'5186411','Precio'=>'833.47','CodigoDeBarra'=>'7791829009079','Pvp'=>'833.47']);\nDB::table('sales')->insert(['Codigo' =>'8006922','Precio'=>'240.96','CodigoDeBarra'=>'7791829009055','Pvp'=>'240.96']);\nDB::table('sales')->insert(['Codigo' =>'9933225','Precio'=>'530.32','CodigoDeBarra'=>'7791829009062','Pvp'=>'530.32']);\nDB::table('sales')->insert(['Codigo' =>'3524010','Precio'=>'181.45','CodigoDeBarra'=>'7795336205139','Pvp'=>'181.45']);\nDB::table('sales')->insert(['Codigo' =>'6187001','Precio'=>'2217.41','CodigoDeBarra'=>'7791829000878','Pvp'=>'2217.41']);\nDB::table('sales')->insert(['Codigo' =>'6186971','Precio'=>'1826.36','CodigoDeBarra'=>'7791829000861','Pvp'=>'1826.36']);\nDB::table('sales')->insert(['Codigo' =>'542839','Precio'=>'5256.28','CodigoDeBarra'=>'7798035313754','Pvp'=>'5256.28']);\nDB::table('sales')->insert(['Codigo' =>'542842','Precio'=>'5256.28','CodigoDeBarra'=>'7798035313761','Pvp'=>'5256.28']);\nDB::table('sales')->insert(['Codigo' =>'2786811','Precio'=>'179.56','CodigoDeBarra'=>'7798009278621','Pvp'=>'179.56']);\nDB::table('sales')->insert(['Codigo' =>'2787141','Precio'=>'221.15','CodigoDeBarra'=>'7798009278683','Pvp'=>'221.15']);\nDB::table('sales')->insert(['Codigo' =>'2781281','Precio'=>'299.45','CodigoDeBarra'=>'7798009274555','Pvp'=>'299.45']);\nDB::table('sales')->insert(['Codigo' =>'2781362','Precio'=>'428.99','CodigoDeBarra'=>'7795380042469','Pvp'=>'428.99']);\nDB::table('sales')->insert(['Codigo' =>'4000441','Precio'=>'295.32','CodigoDeBarra'=>'7795380042452','Pvp'=>'295.32']);\nDB::table('sales')->insert(['Codigo' =>'4646285','Precio'=>'294.37','CodigoDeBarra'=>'7795300739837','Pvp'=>'294.37']);\nDB::table('sales')->insert(['Codigo' =>'4646286','Precio'=>'465.63','CodigoDeBarra'=>'7795372460257','Pvp'=>'465.63']);\nDB::table('sales')->insert(['Codigo' =>'5164632','Precio'=>'347.44','CodigoDeBarra'=>'7795372460271','Pvp'=>'347.44']);\nDB::table('sales')->insert(['Codigo' =>'6148711','Precio'=>'515.35','CodigoDeBarra'=>'7795372460233','Pvp'=>'515.35']);\nDB::table('sales')->insert(['Codigo' =>'5911841','Precio'=>'7437.30','CodigoDeBarra'=>'7795367546959','Pvp'=>'7437.30']);\nDB::table('sales')->insert(['Codigo' =>'6040711','Precio'=>'26345.27','CodigoDeBarra'=>'7798084683068','Pvp'=>'26345.27']);\nDB::table('sales')->insert(['Codigo' =>'6040841','Precio'=>'49687.52','CodigoDeBarra'=>'7798084683075','Pvp'=>'49687.52']);\nDB::table('sales')->insert(['Codigo' =>'8009660','Precio'=>'149.84','CodigoDeBarra'=>'7798034749257','Pvp'=>'149.84']);\nDB::table('sales')->insert(['Codigo' =>'8016509','Precio'=>'149.84','CodigoDeBarra'=>'7798034749240','Pvp'=>'149.84']);\nDB::table('sales')->insert(['Codigo' =>'4583163','Precio'=>'857.60','CodigoDeBarra'=>'7795336000352','Pvp'=>'857.60']);\nDB::table('sales')->insert(['Codigo' =>'5768971','Precio'=>'3243.03','CodigoDeBarra'=>'7792371879400','Pvp'=>'3243.03']);\nDB::table('sales')->insert(['Codigo' =>'5769971','Precio'=>'5707.77','CodigoDeBarra'=>'7792371852984','Pvp'=>'5707.77']);\nDB::table('sales')->insert(['Codigo' =>'6371131','Precio'=>'40231.09','CodigoDeBarra'=>'7793397090282','Pvp'=>'40231.09']);\nDB::table('sales')->insert(['Codigo' =>'6371132','Precio'=>'74981.87','CodigoDeBarra'=>'7793397090299','Pvp'=>'74981.87']);\nDB::table('sales')->insert(['Codigo' =>'4071231','Precio'=>'347.64','CodigoDeBarra'=>'7792175001847','Pvp'=>'347.64']);\nDB::table('sales')->insert(['Codigo' =>'4071233','Precio'=>'389.73','CodigoDeBarra'=>'7792175007894','Pvp'=>'389.73']);\nDB::table('sales')->insert(['Codigo' =>'4071232','Precio'=>'469.71','CodigoDeBarra'=>'7792175001786','Pvp'=>'469.71']);\nDB::table('sales')->insert(['Codigo' =>'8007133','Precio'=>'1083.62','CodigoDeBarra'=>'7798091910010','Pvp'=>'1083.62']);\nDB::table('sales')->insert(['Codigo' =>'8007129','Precio'=>'583.75','CodigoDeBarra'=>'7798091910027','Pvp'=>'583.75']);\nDB::table('sales')->insert(['Codigo' =>'4440841','Precio'=>'1384.35','CodigoDeBarra'=>'7796035469792','Pvp'=>'1384.35']);\nDB::table('sales')->insert(['Codigo' =>'8007076','Precio'=>'4309.01','CodigoDeBarra'=>'7795356002145','Pvp'=>'4309.01']);\nDB::table('sales')->insert(['Codigo' =>'3720371','Precio'=>'1409.20','CodigoDeBarra'=>'7795367000109','Pvp'=>'1409.20']);\nDB::table('sales')->insert(['Codigo' =>'4829351','Precio'=>'1470.28','CodigoDeBarra'=>'7791829008690','Pvp'=>'1470.28']);\nDB::table('sales')->insert(['Codigo' =>'502265','Precio'=>'389.73','CodigoDeBarra'=>'7798035313488','Pvp'=>'389.73']);\nDB::table('sales')->insert(['Codigo' =>'8006877','Precio'=>'11585.41','CodigoDeBarra'=>'7798021442857','Pvp'=>'11585.41']);\nDB::table('sales')->insert(['Codigo' =>'6105001','Precio'=>'5067.29','CodigoDeBarra'=>'7795348000326','Pvp'=>'5067.29']);\nDB::table('sales')->insert(['Codigo' =>'8029994','Precio'=>'219340.44','CodigoDeBarra'=>'7793236000137','Pvp'=>'219340.44']);\nDB::table('sales')->insert(['Codigo' =>'8029995','Precio'=>'223200.30','CodigoDeBarra'=>'7793236000144','Pvp'=>'223200.30']);\nDB::table('sales')->insert(['Codigo' =>'662171','Precio'=>'232114.83','CodigoDeBarra'=>'7793236000151','Pvp'=>'232114.83']);\nDB::table('sales')->insert(['Codigo' =>'8029996','Precio'=>'209863.47','CodigoDeBarra'=>'7793236000656','Pvp'=>'209863.47']);\nDB::table('sales')->insert(['Codigo' =>'6214972','Precio'=>'3500.72','CodigoDeBarra'=>'7792069000239','Pvp'=>'3500.72']);\nDB::table('sales')->insert(['Codigo' =>'5869551','Precio'=>'3500.72','CodigoDeBarra'=>'7792069422024','Pvp'=>'3500.72']);\nDB::table('sales')->insert(['Codigo' =>'633971','Precio'=>'27848.67','CodigoDeBarra'=>'7795367008815','Pvp'=>'27848.67']);\nDB::table('sales')->insert(['Codigo' =>'639413','Precio'=>'20453.53','CodigoDeBarra'=>'7793397090336','Pvp'=>'20453.53']);\nDB::table('sales')->insert(['Codigo' =>'5800421','Precio'=>'265.66','CodigoDeBarra'=>'7795380042766','Pvp'=>'265.66']);\nDB::table('sales')->insert(['Codigo' =>'5800422','Precio'=>'481.43','CodigoDeBarra'=>'7795380042773','Pvp'=>'481.43']);\nDB::table('sales')->insert(['Codigo' =>'5800552','Precio'=>'427.16','CodigoDeBarra'=>'7795380000254','Pvp'=>'427.16']);\nDB::table('sales')->insert(['Codigo' =>'6213715','Precio'=>'18655.49','CodigoDeBarra'=>'7795348001521','Pvp'=>'18655.49']);\nDB::table('sales')->insert(['Codigo' =>'6283262','Precio'=>'1346.28','CodigoDeBarra'=>'7795378005148','Pvp'=>'1346.28']);\nDB::table('sales')->insert(['Codigo' =>'6097000','Precio'=>'787.85','CodigoDeBarra'=>'7795336293174','Pvp'=>'787.85']);\nDB::table('sales')->insert(['Codigo' =>'6097130','Precio'=>'781.27','CodigoDeBarra'=>'7795336293167','Pvp'=>'781.27']);\nDB::table('sales')->insert(['Codigo' =>'6097260','Precio'=>'784.15','CodigoDeBarra'=>'7795336293150','Pvp'=>'784.15']);\nDB::table('sales')->insert(['Codigo' =>'8030016','Precio'=>'18723.81','CodigoDeBarra'=>'4034341002078','Pvp'=>'18723.81']);\nDB::table('sales')->insert(['Codigo' =>'8040647','Precio'=>'24634.58','CodigoDeBarra'=>'4034341002382','Pvp'=>'24634.58']);\nDB::table('sales')->insert(['Codigo' =>'8027566','Precio'=>'267.43','CodigoDeBarra'=>'7795312108607','Pvp'=>'267.43']);\nDB::table('sales')->insert(['Codigo' =>'8009977','Precio'=>'273.08','CodigoDeBarra'=>'7795304000650','Pvp'=>'273.08']);\nDB::table('sales')->insert(['Codigo' =>'2168711','Precio'=>'66.78','CodigoDeBarra'=>'7795347000334','Pvp'=>'66.78']);\nDB::table('sales')->insert(['Codigo' =>'2168712','Precio'=>'112.43','CodigoDeBarra'=>'7795347000341','Pvp'=>'112.43']);\nDB::table('sales')->insert(['Codigo' =>'554432','Precio'=>'133.54','CodigoDeBarra'=>'7795347000327','Pvp'=>'133.54']);\nDB::table('sales')->insert(['Codigo' =>'2847452','Precio'=>'175.81','CodigoDeBarra'=>'7795347939016','Pvp'=>'175.81']);\nDB::table('sales')->insert(['Codigo' =>'8019169','Precio'=>'279.94','CodigoDeBarra'=>'7798140258155','Pvp'=>'279.94']);\nDB::table('sales')->insert(['Codigo' =>'8017560','Precio'=>'279.94','CodigoDeBarra'=>'7798140258124','Pvp'=>'279.94']);\nDB::table('sales')->insert(['Codigo' =>'8017559','Precio'=>'279.94','CodigoDeBarra'=>'7798140258131','Pvp'=>'279.94']);\nDB::table('sales')->insert(['Codigo' =>'8009895','Precio'=>'332.82','CodigoDeBarra'=>'7791829000557','Pvp'=>'332.82']);\nDB::table('sales')->insert(['Codigo' =>'8033907','Precio'=>'12246.50','CodigoDeBarra'=>'7795326006593','Pvp'=>'12246.50']);\nDB::table('sales')->insert(['Codigo' =>'6220470','Precio'=>'143.38','CodigoDeBarra'=>'7798028522224','Pvp'=>'143.38']);\nDB::table('sales')->insert(['Codigo' =>'6220469','Precio'=>'143.38','CodigoDeBarra'=>'7798028520305','Pvp'=>'143.38']);\nDB::table('sales')->insert(['Codigo' =>'6220468','Precio'=>'143.38','CodigoDeBarra'=>'7798028520343','Pvp'=>'143.38']);\nDB::table('sales')->insert(['Codigo' =>'6220467','Precio'=>'143.38','CodigoDeBarra'=>'7798028520350','Pvp'=>'143.38']);\nDB::table('sales')->insert(['Codigo' =>'4865811','Precio'=>'490.63','CodigoDeBarra'=>'7798069050106','Pvp'=>'490.63']);\nDB::table('sales')->insert(['Codigo' =>'6220466','Precio'=>'189.21','CodigoDeBarra'=>'7798028522101','Pvp'=>'189.21']);\nDB::table('sales')->insert(['Codigo' =>'6220465','Precio'=>'189.21','CodigoDeBarra'=>'7798028520282','Pvp'=>'189.21']);\nDB::table('sales')->insert(['Codigo' =>'6220464','Precio'=>'189.21','CodigoDeBarra'=>'7798028520299','Pvp'=>'189.21']);\nDB::table('sales')->insert(['Codigo' =>'8008937','Precio'=>'552.48','CodigoDeBarra'=>'7798021111500','Pvp'=>'552.48']);\nDB::table('sales')->insert(['Codigo' =>'6201261','Precio'=>'1552.47','CodigoDeBarra'=>'7795367001069','Pvp'=>'1552.47']);\nDB::table('sales')->insert(['Codigo' =>'4960552','Precio'=>'293.24','CodigoDeBarra'=>'7795367053815','Pvp'=>'293.24']);\nDB::table('sales')->insert(['Codigo' =>'8041156','Precio'=>'523867.77','CodigoDeBarra'=>'7798021440334','Pvp'=>'523867.77']);\nDB::table('sales')->insert(['Codigo' =>'8041157','Precio'=>'548766.68','CodigoDeBarra'=>'7798021440341','Pvp'=>'548766.68']);\nDB::table('sales')->insert(['Codigo' =>'8041158','Precio'=>'495843.47','CodigoDeBarra'=>'7798021443687','Pvp'=>'495843.47']);\nDB::table('sales')->insert(['Codigo' =>'5116912','Precio'=>'12273.29','CodigoDeBarra'=>'7795306001976','Pvp'=>'12273.29']);\nDB::table('sales')->insert(['Codigo' =>'5117023','Precio'=>'24545.66','CodigoDeBarra'=>'7795306001983','Pvp'=>'24545.66']);\nDB::table('sales')->insert(['Codigo' =>'8034279','Precio'=>'437015.59','CodigoDeBarra'=>'7795300740536','Pvp'=>'437015.59']);\nDB::table('sales')->insert(['Codigo' =>'8034280','Precio'=>'437015.59','CodigoDeBarra'=>'7795300740543','Pvp'=>'437015.59']);\nDB::table('sales')->insert(['Codigo' =>'8034281','Precio'=>'437015.59','CodigoDeBarra'=>'7795300740550','Pvp'=>'437015.59']);\nDB::table('sales')->insert(['Codigo' =>'4837851','Precio'=>'757.92','CodigoDeBarra'=>'7791829019320','Pvp'=>'757.92']);\nDB::table('sales')->insert(['Codigo' =>'4837931','Precio'=>'1227.86','CodigoDeBarra'=>'7791829019337','Pvp'=>'1227.86']);\nDB::table('sales')->insert(['Codigo' =>'590813','Precio'=>'3968.52','CodigoDeBarra'=>'7798038280015','Pvp'=>'3968.52']);\nDB::table('sales')->insert(['Codigo' =>'626013','Precio'=>'81.84','CodigoDeBarra'=>'7794207000736','Pvp'=>'81.84']);\nDB::table('sales')->insert(['Codigo' =>'558039','Precio'=>'81.84','CodigoDeBarra'=>'7794207003997','Pvp'=>'81.84']);\nDB::table('sales')->insert(['Codigo' =>'8020827','Precio'=>'436.56','CodigoDeBarra'=>'7795379100880','Pvp'=>'436.56']);\nDB::table('sales')->insert(['Codigo' =>'9995366','Precio'=>'270.74','CodigoDeBarra'=>'7795379100033','Pvp'=>'270.74']);\nDB::table('sales')->insert(['Codigo' =>'9995465','Precio'=>'109.32','CodigoDeBarra'=>'7795379100149','Pvp'=>'109.32']);\nDB::table('sales')->insert(['Codigo' =>'8009453','Precio'=>'146.57','CodigoDeBarra'=>'7795379100767','Pvp'=>'146.57']);\nDB::table('sales')->insert(['Codigo' =>'9999201','Precio'=>'155.83','CodigoDeBarra'=>'7795379100583','Pvp'=>'155.83']);\nDB::table('sales')->insert(['Codigo' =>'9995535','Precio'=>'335.99','CodigoDeBarra'=>'7795379100392','Pvp'=>'335.99']);\nDB::table('sales')->insert(['Codigo' =>'9995461','Precio'=>'228.10','CodigoDeBarra'=>'7795379100804','Pvp'=>'228.10']);\nDB::table('sales')->insert(['Codigo' =>'8024844','Precio'=>'244.23','CodigoDeBarra'=>'7795379100927','Pvp'=>'244.23']);\nDB::table('sales')->insert(['Codigo' =>'9997235','Precio'=>'250.21','CodigoDeBarra'=>'7795379100439','Pvp'=>'250.21']);\nDB::table('sales')->insert(['Codigo' =>'9995464','Precio'=>'100.54','CodigoDeBarra'=>'7795379400034','Pvp'=>'100.54']);\nDB::table('sales')->insert(['Codigo' =>'9995462','Precio'=>'151.76','CodigoDeBarra'=>'7795379200108','Pvp'=>'151.76']);\nDB::table('sales')->insert(['Codigo' =>'9997234','Precio'=>'248.78','CodigoDeBarra'=>'7795379100248','Pvp'=>'248.78']);\nDB::table('sales')->insert(['Codigo' =>'9992596','Precio'=>'134.08','CodigoDeBarra'=>'7795379100156','Pvp'=>'134.08']);\nDB::table('sales')->insert(['Codigo' =>'9998888','Precio'=>'277.46','CodigoDeBarra'=>'7795379100552','Pvp'=>'277.46']);\nDB::table('sales')->insert(['Codigo' =>'9995374','Precio'=>'306.22','CodigoDeBarra'=>'7795379100446','Pvp'=>'306.22']);\nDB::table('sales')->insert(['Codigo' =>'8024636','Precio'=>'178.87','CodigoDeBarra'=>'7795379100934','Pvp'=>'178.87']);\nDB::table('sales')->insert(['Codigo' =>'9994779','Precio'=>'137.17','CodigoDeBarra'=>'7795379400164','Pvp'=>'137.17']);\nDB::table('sales')->insert(['Codigo' =>'9994938','Precio'=>'134.08','CodigoDeBarra'=>'7795379100132','Pvp'=>'134.08']);\nDB::table('sales')->insert(['Codigo' =>'8009223','Precio'=>'186.31','CodigoDeBarra'=>'7795379100743','Pvp'=>'186.31']);\nDB::table('sales')->insert(['Codigo' =>'9995457','Precio'=>'314.39','CodigoDeBarra'=>'7795379400195','Pvp'=>'314.39']);\nDB::table('sales')->insert(['Codigo' =>'8000807','Precio'=>'205.79','CodigoDeBarra'=>'7795379100644','Pvp'=>'205.79']);\nDB::table('sales')->insert(['Codigo' =>'9998504','Precio'=>'163.60','CodigoDeBarra'=>'7795379100545','Pvp'=>'163.60']);\nDB::table('sales')->insert(['Codigo' =>'8025374','Precio'=>'359.32','CodigoDeBarra'=>'7795379100965','Pvp'=>'359.32']);\nDB::table('sales')->insert(['Codigo' =>'8024630','Precio'=>'191.73','CodigoDeBarra'=>'7795379100910','Pvp'=>'191.73']);\nDB::table('sales')->insert(['Codigo' =>'9995456','Precio'=>'153.37','CodigoDeBarra'=>'7795379100170','Pvp'=>'153.37']);\nDB::table('sales')->insert(['Codigo' =>'8018990','Precio'=>'95.40','CodigoDeBarra'=>'7795379100866','Pvp'=>'95.40']);\nDB::table('sales')->insert(['Codigo' =>'9995463','Precio'=>'68.15','CodigoDeBarra'=>'7795379200245','Pvp'=>'68.15']);\nDB::table('sales')->insert(['Codigo' =>'8004184','Precio'=>'95.40','CodigoDeBarra'=>'7795379100712','Pvp'=>'95.40']);\nDB::table('sales')->insert(['Codigo' =>'8024640','Precio'=>'501.06','CodigoDeBarra'=>'7795379100972','Pvp'=>'501.06']);\nDB::table('sales')->insert(['Codigo' =>'9995460','Precio'=>'311.95','CodigoDeBarra'=>'7795379100637','Pvp'=>'311.95']);\nDB::table('sales')->insert(['Codigo' =>'9992841','Precio'=>'147.31','CodigoDeBarra'=>'7795379100620','Pvp'=>'147.31']);\nDB::table('sales')->insert(['Codigo' =>'3156731','Precio'=>'1310.16','CodigoDeBarra'=>'7798067995348','Pvp'=>'1310.16']);\nDB::table('sales')->insert(['Codigo' =>'8006915','Precio'=>'5679.86','CodigoDeBarra'=>'7798067995355','Pvp'=>'5679.86']);\nDB::table('sales')->insert(['Codigo' =>'9937976','Precio'=>'13560.56','CodigoDeBarra'=>'7798067995423','Pvp'=>'13560.56']);\nDB::table('sales')->insert(['Codigo' =>'546939','Precio'=>'20340.45','CodigoDeBarra'=>'7798067995430','Pvp'=>'20340.45']);\nDB::table('sales')->insert(['Codigo' =>'4332691','Precio'=>'252.11','CodigoDeBarra'=>'7795347939412','Pvp'=>'252.11']);\nDB::table('sales')->insert(['Codigo' =>'4332692','Precio'=>'399.30','CodigoDeBarra'=>'7795347939436','Pvp'=>'399.30']);\nDB::table('sales')->insert(['Codigo' =>'603684','Precio'=>'386.54','CodigoDeBarra'=>'7798161930023','Pvp'=>'386.54']);\nDB::table('sales')->insert(['Codigo' =>'6036841','Precio'=>'782.56','CodigoDeBarra'=>'7798161930078','Pvp'=>'782.56']);\nDB::table('sales')->insert(['Codigo' =>'8041195','Precio'=>'59520.29','CodigoDeBarra'=>'7798035311149','Pvp'=>'59520.29']);\nDB::table('sales')->insert(['Codigo' =>'8042781','Precio'=>'595.72','CodigoDeBarra'=>'7798006302435','Pvp'=>'595.72']);\nDB::table('sales')->insert(['Codigo' =>'4644202','Precio'=>'2629.80','CodigoDeBarra'=>'7795373014190','Pvp'=>'2629.80']);\nDB::table('sales')->insert(['Codigo' =>'4644201','Precio'=>'605.73','CodigoDeBarra'=>'7795373014183','Pvp'=>'605.73']);\nDB::table('sales')->insert(['Codigo' =>'4644381','Precio'=>'5041.89','CodigoDeBarra'=>'','Pvp'=>'5041.89']);\nDB::table('sales')->insert(['Codigo' =>'6033478','Precio'=>'140.78','CodigoDeBarra'=>'7891010099480','Pvp'=>'140.78']);\nDB::table('sales')->insert(['Codigo' =>'8030088','Precio'=>'481.13','CodigoDeBarra'=>'7891010882983','Pvp'=>'481.13']);\nDB::table('sales')->insert(['Codigo' =>'8035049','Precio'=>'481.13','CodigoDeBarra'=>'7891010887742','Pvp'=>'481.13']);\nDB::table('sales')->insert(['Codigo' =>'8039480','Precio'=>'309.71','CodigoDeBarra'=>'7702031310914','Pvp'=>'309.71']);\nDB::table('sales')->insert(['Codigo' =>'8039481','Precio'=>'295.87','CodigoDeBarra'=>'3574661426624','Pvp'=>'295.87']);\nDB::table('sales')->insert(['Codigo' =>'8039574','Precio'=>'211.89','CodigoDeBarra'=>'7891010247898','Pvp'=>'211.89']);\nDB::table('sales')->insert(['Codigo' =>'8011313','Precio'=>'151.86','CodigoDeBarra'=>'70501051054','Pvp'=>'151.86']);\nDB::table('sales')->insert(['Codigo' =>'4001853','Precio'=>'8447.24','CodigoDeBarra'=>'7795355000135','Pvp'=>'8447.24']);\nDB::table('sales')->insert(['Codigo' =>'4001933','Precio'=>'13554.16','CodigoDeBarra'=>'7795356000134','Pvp'=>'13554.16']);\nDB::table('sales')->insert(['Codigo' =>'6058133','Precio'=>'4930.70','CodigoDeBarra'=>'7798163500224','Pvp'=>'4930.70']);\nDB::table('sales')->insert(['Codigo' =>'605813','Precio'=>'1031.26','CodigoDeBarra'=>'7798163500088','Pvp'=>'1031.26']);\nDB::table('sales')->insert(['Codigo' =>'644571','Precio'=>'62377.11','CodigoDeBarra'=>'7798061752657','Pvp'=>'62377.11']);\nDB::table('sales')->insert(['Codigo' =>'644568','Precio'=>'43189.07','CodigoDeBarra'=>'7798061752602','Pvp'=>'43189.07']);\nDB::table('sales')->insert(['Codigo' =>'4490761','Precio'=>'225.64','CodigoDeBarra'=>'7798009279673','Pvp'=>'225.64']);\nDB::table('sales')->insert(['Codigo' =>'5541001','Precio'=>'394558.50','CodigoDeBarra'=>'7793640215585','Pvp'=>'394558.50']);\nDB::table('sales')->insert(['Codigo' =>'8043280','Precio'=>'148.20','CodigoDeBarra'=>'7798140254157','Pvp'=>'148.20']);\nDB::table('sales')->insert(['Codigo' =>'8109523','Precio'=>'55.92','CodigoDeBarra'=>'7798140254126','Pvp'=>'55.92']);\nDB::table('sales')->insert(['Codigo' =>'8109524','Precio'=>'150.89','CodigoDeBarra'=>'7798140254133','Pvp'=>'150.89']);\nDB::table('sales')->insert(['Codigo' =>'8043256','Precio'=>'159.83','CodigoDeBarra'=>'7798140254058','Pvp'=>'159.83']);\nDB::table('sales')->insert(['Codigo' =>'8042025','Precio'=>'179.37','CodigoDeBarra'=>'7798140253761','Pvp'=>'179.37']);\nDB::table('sales')->insert(['Codigo' =>'8015897','Precio'=>'132.24','CodigoDeBarra'=>'650240010538','Pvp'=>'132.24']);\nDB::table('sales')->insert(['Codigo' =>'6380261','Precio'=>'206.72','CodigoDeBarra'=>'7798140251170','Pvp'=>'206.72']);\nDB::table('sales')->insert(['Codigo' =>'8029065','Precio'=>'257.74','CodigoDeBarra'=>'7798140252900','Pvp'=>'257.74']);\nDB::table('sales')->insert(['Codigo' =>'8029064','Precio'=>'1288.68','CodigoDeBarra'=>'7798140252917','Pvp'=>'1288.68']);\nDB::table('sales')->insert(['Codigo' =>'6277130','Precio'=>'14590.22','CodigoDeBarra'=>'7793397051245','Pvp'=>'14590.22']);\nDB::table('sales')->insert(['Codigo' =>'629542','Precio'=>'100767.32','CodigoDeBarra'=>'7792183001976','Pvp'=>'100767.32']);\nDB::table('sales')->insert(['Codigo' =>'8040663','Precio'=>'6780.28','CodigoDeBarra'=>'7791829019573','Pvp'=>'6780.28']);\nDB::table('sales')->insert(['Codigo' =>'399776','Precio'=>'442.56','CodigoDeBarra'=>'7798021110053','Pvp'=>'442.56']);\nDB::table('sales')->insert(['Codigo' =>'399784','Precio'=>'471.95','CodigoDeBarra'=>'7798021110060','Pvp'=>'471.95']);\nDB::table('sales')->insert(['Codigo' =>'8043378','Precio'=>'97321.33','CodigoDeBarra'=>'7798087280226','Pvp'=>'97321.33']);\nDB::table('sales')->insert(['Codigo' =>'8043507','Precio'=>'243301.68','CodigoDeBarra'=>'7798087280233','Pvp'=>'243301.68']);\nDB::table('sales')->insert(['Codigo' =>'5002071','Precio'=>'1476.32','CodigoDeBarra'=>'7795327060730','Pvp'=>'1476.32']);\nDB::table('sales')->insert(['Codigo' =>'8039544','Precio'=>'272.44','CodigoDeBarra'=>'4005900632289','Pvp'=>'272.44']);\nDB::table('sales')->insert(['Codigo' =>'8009905','Precio'=>'157.51','CodigoDeBarra'=>'4005808315093','Pvp'=>'157.51']);\nDB::table('sales')->insert(['Codigo' =>'8009904','Precio'=>'221.25','CodigoDeBarra'=>'4005808319695','Pvp'=>'221.25']);\nDB::table('sales')->insert(['Codigo' =>'8013522','Precio'=>'113.95','CodigoDeBarra'=>'4005808980239','Pvp'=>'113.95']);\nDB::table('sales')->insert(['Codigo' =>'8020730','Precio'=>'102.33','CodigoDeBarra'=>'4005808910328','Pvp'=>'102.33']);\nDB::table('sales')->insert(['Codigo' =>'8033879','Precio'=>'113.95','CodigoDeBarra'=>'4005900515865','Pvp'=>'113.95']);\nDB::table('sales')->insert(['Codigo' =>'8000988','Precio'=>'102.33','CodigoDeBarra'=>'4005808837311','Pvp'=>'102.33']);\nDB::table('sales')->insert(['Codigo' =>'6302029','Precio'=>'85.78','CodigoDeBarra'=>'4005808257607','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'6300593','Precio'=>'85.78','CodigoDeBarra'=>'4005808816101','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'8013523','Precio'=>'85.78','CodigoDeBarra'=>'4005900036759','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'6300594','Precio'=>'85.78','CodigoDeBarra'=>'4005808257584','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'6300597','Precio'=>'85.78','CodigoDeBarra'=>'4005808257591','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'8022166','Precio'=>'85.78','CodigoDeBarra'=>'4005900130785','Pvp'=>'85.78']);\nDB::table('sales')->insert(['Codigo' =>'8033877','Precio'=>'499.50','CodigoDeBarra'=>'7702003006845','Pvp'=>'499.50']);\nDB::table('sales')->insert(['Codigo' =>'8020215','Precio'=>'662.87','CodigoDeBarra'=>'4005808843039','Pvp'=>'662.87']);\nDB::table('sales')->insert(['Codigo' =>'8020216','Precio'=>'662.87','CodigoDeBarra'=>'4005808843053','Pvp'=>'662.87']);\nDB::table('sales')->insert(['Codigo' =>'8023668','Precio'=>'287.73','CodigoDeBarra'=>'4005900189820','Pvp'=>'287.73']);\nDB::table('sales')->insert(['Codigo' =>'8039545','Precio'=>'316.65','CodigoDeBarra'=>'4005900640987','Pvp'=>'316.65']);\nDB::table('sales')->insert(['Codigo' =>'8024886','Precio'=>'287.73','CodigoDeBarra'=>'7791969000776','Pvp'=>'287.73']);\nDB::table('sales')->insert(['Codigo' =>'6533140','Precio'=>'499.50','CodigoDeBarra'=>'4005808179534','Pvp'=>'499.50']);\nDB::table('sales')->insert(['Codigo' =>'6300304','Precio'=>'499.50','CodigoDeBarra'=>'4005808179879','Pvp'=>'499.50']);\nDB::table('sales')->insert(['Codigo' =>'8007702','Precio'=>'499.50','CodigoDeBarra'=>'4005900083333','Pvp'=>'499.50']);\nDB::table('sales')->insert(['Codigo' =>'8031392','Precio'=>'139.93','CodigoDeBarra'=>'4005900413901','Pvp'=>'139.93']);\nDB::table('sales')->insert(['Codigo' =>'8039546','Precio'=>'139.93','CodigoDeBarra'=>'4005900499264','Pvp'=>'139.93']);\nDB::table('sales')->insert(['Codigo' =>'8038488','Precio'=>'260.02','CodigoDeBarra'=>'4005900590152','Pvp'=>'260.02']);\nDB::table('sales')->insert(['Codigo' =>'8038487','Precio'=>'260.02','CodigoDeBarra'=>'4005900592675','Pvp'=>'260.02']);\nDB::table('sales')->insert(['Codigo' =>'8034969','Precio'=>'34636.68','CodigoDeBarra'=>'7798058931720','Pvp'=>'34636.68']);\nDB::table('sales')->insert(['Codigo' =>'8034970','Precio'=>'51955.17','CodigoDeBarra'=>'7798058931737','Pvp'=>'51955.17']);\nDB::table('sales')->insert(['Codigo' =>'8034971','Precio'=>'17317.95','CodigoDeBarra'=>'7798058931713','Pvp'=>'17317.95']);\nDB::table('sales')->insert(['Codigo' =>'3764351','Precio'=>'277.79','CodigoDeBarra'=>'7795336258050','Pvp'=>'277.79']);\nDB::table('sales')->insert(['Codigo' =>'3764352','Precio'=>'526.75','CodigoDeBarra'=>'7795336258104','Pvp'=>'526.75']);\nDB::table('sales')->insert(['Codigo' =>'5609841','Precio'=>'114.80','CodigoDeBarra'=>'7796363002722','Pvp'=>'114.80']);\nDB::table('sales')->insert(['Codigo' =>'8016221','Precio'=>'69.27','CodigoDeBarra'=>'7702027440175','Pvp'=>'69.27']);\nDB::table('sales')->insert(['Codigo' =>'8014425','Precio'=>'52.24','CodigoDeBarra'=>'7790770003129','Pvp'=>'52.24']);\nDB::table('sales')->insert(['Codigo' =>'8014424','Precio'=>'142.22','CodigoDeBarra'=>'7790770002900','Pvp'=>'142.22']);\nDB::table('sales')->insert(['Codigo' =>'8019580','Precio'=>'42.51','CodigoDeBarra'=>'7790770000074','Pvp'=>'42.51']);\nDB::table('sales')->insert(['Codigo' =>'8021966','Precio'=>'169.69','CodigoDeBarra'=>'7702027042010','Pvp'=>'169.69']);\nDB::table('sales')->insert(['Codigo' =>'8014416','Precio'=>'62.97','CodigoDeBarra'=>'7790770001095','Pvp'=>'62.97']);\nDB::table('sales')->insert(['Codigo' =>'8014418','Precio'=>'51.50','CodigoDeBarra'=>'7790770002870','Pvp'=>'51.50']);\nDB::table('sales')->insert(['Codigo' =>'8014420','Precio'=>'67.37','CodigoDeBarra'=>'7702027430657','Pvp'=>'67.37']);\nDB::table('sales')->insert(['Codigo' =>'379122','Precio'=>'383.05','CodigoDeBarra'=>'7795312000079','Pvp'=>'383.05']);\nDB::table('sales')->insert(['Codigo' =>'377721','Precio'=>'145.46','CodigoDeBarra'=>'7795312020756','Pvp'=>'145.46']);\nDB::table('sales')->insert(['Codigo' =>'377727','Precio'=>'414.74','CodigoDeBarra'=>'7795312002233','Pvp'=>'414.74']);\nDB::table('sales')->insert(['Codigo' =>'6265421','Precio'=>'43613.09','CodigoDeBarra'=>'7796285274535','Pvp'=>'43613.09']);\nDB::table('sales')->insert(['Codigo' =>'6268551','Precio'=>'109032.64','CodigoDeBarra'=>'7796285275464','Pvp'=>'109032.64']);\nDB::table('sales')->insert(['Codigo' =>'8006918','Precio'=>'233.38','CodigoDeBarra'=>'7798091910041','Pvp'=>'233.38']);\nDB::table('sales')->insert(['Codigo' =>'8028268','Precio'=>'51702.15','CodigoDeBarra'=>'7798058931638','Pvp'=>'51702.15']);\nDB::table('sales')->insert(['Codigo' =>'8028269','Precio'=>'77553.25','CodigoDeBarra'=>'7798058931645','Pvp'=>'77553.25']);\nDB::table('sales')->insert(['Codigo' =>'8028270','Precio'=>'12925.49','CodigoDeBarra'=>'7798058931614','Pvp'=>'12925.49']);\nDB::table('sales')->insert(['Codigo' =>'6341421','Precio'=>'1794.22','CodigoDeBarra'=>'7795327064226','Pvp'=>'1794.22']);\nDB::table('sales')->insert(['Codigo' =>'8035943','Precio'=>'48135.06','CodigoDeBarra'=>'7798058931744','Pvp'=>'48135.06']);\nDB::table('sales')->insert(['Codigo' =>'8035946','Precio'=>'240678.28','CodigoDeBarra'=>'7798058931751','Pvp'=>'240678.28']);\nDB::table('sales')->insert(['Codigo' =>'6350391','Precio'=>'126169.41','CodigoDeBarra'=>'7793081000122','Pvp'=>'126169.41']);\nDB::table('sales')->insert(['Codigo' =>'5893681','Precio'=>'126169.41','CodigoDeBarra'=>'5012376031095','Pvp'=>'126169.41']);\nDB::table('sales')->insert(['Codigo' =>'6344841','Precio'=>'39485.94','CodigoDeBarra'=>'7793081000030','Pvp'=>'39485.94']);\nDB::table('sales')->insert(['Codigo' =>'6052001','Precio'=>'89740.89','CodigoDeBarra'=>'7798084683112','Pvp'=>'89740.89']);\nDB::table('sales')->insert(['Codigo' =>'6466001','Precio'=>'54143.86','CodigoDeBarra'=>'7794640820922','Pvp'=>'54143.86']);\nDB::table('sales')->insert(['Codigo' =>'5154603','Precio'=>'247.74','CodigoDeBarra'=>'7795327013477','Pvp'=>'247.74']);\nDB::table('sales')->insert(['Codigo' =>'5154601','Precio'=>'664.12','CodigoDeBarra'=>'7795327063267','Pvp'=>'664.12']);\nDB::table('sales')->insert(['Codigo' =>'5154602','Precio'=>'1286.86','CodigoDeBarra'=>'7795327063274','Pvp'=>'1286.86']);\nDB::table('sales')->insert(['Codigo' =>'6160391','Precio'=>'38434.41','CodigoDeBarra'=>'7798008271937','Pvp'=>'38434.41']);\nDB::table('sales')->insert(['Codigo' =>'8021761','Precio'=>'3378.27','CodigoDeBarra'=>'7506205806483','Pvp'=>'3378.27']);\nDB::table('sales')->insert(['Codigo' =>'8019459','Precio'=>'278.00','CodigoDeBarra'=>'7798181640032','Pvp'=>'278.00']);\nDB::table('sales')->insert(['Codigo' =>'8019457','Precio'=>'470.46','CodigoDeBarra'=>'7798181640018','Pvp'=>'470.46']);\nDB::table('sales')->insert(['Codigo' =>'8019458','Precio'=>'882.12','CodigoDeBarra'=>'7798181640025','Pvp'=>'882.12']);\nDB::table('sales')->insert(['Codigo' =>'8019462','Precio'=>'265.17','CodigoDeBarra'=>'7798181640087','Pvp'=>'265.17']);\nDB::table('sales')->insert(['Codigo' =>'8019460','Precio'=>'449.08','CodigoDeBarra'=>'7798181640063','Pvp'=>'449.08']);\nDB::table('sales')->insert(['Codigo' =>'8019461','Precio'=>'842.02','CodigoDeBarra'=>'7798181640070','Pvp'=>'842.02']);\nDB::table('sales')->insert(['Codigo' =>'8019464','Precio'=>'237.38','CodigoDeBarra'=>'7798181640131','Pvp'=>'237.38']);\nDB::table('sales')->insert(['Codigo' =>'8019463','Precio'=>'676.48','CodigoDeBarra'=>'7798181640124','Pvp'=>'676.48']);\nDB::table('sales')->insert(['Codigo' =>'8038533','Precio'=>'220.98','CodigoDeBarra'=>'7798181640780','Pvp'=>'220.98']);\nDB::table('sales')->insert(['Codigo' =>'8034813','Precio'=>'627.29','CodigoDeBarra'=>'7798181640773','Pvp'=>'627.29']);\nDB::table('sales')->insert(['Codigo' =>'8019466','Precio'=>'992.96','CodigoDeBarra'=>'7798181640186','Pvp'=>'992.96']);\nDB::table('sales')->insert(['Codigo' =>'8019465','Precio'=>'1604.57','CodigoDeBarra'=>'7798181640162','Pvp'=>'1604.57']);\nDB::table('sales')->insert(['Codigo' =>'8019468','Precio'=>'918.12','CodigoDeBarra'=>'7798181640230','Pvp'=>'918.12']);\nDB::table('sales')->insert(['Codigo' =>'8019467','Precio'=>'1478.41','CodigoDeBarra'=>'7798181640216','Pvp'=>'1478.41']);\nDB::table('sales')->insert(['Codigo' =>'8019470','Precio'=>'1285.24','CodigoDeBarra'=>'7798181640285','Pvp'=>'1285.24']);\nDB::table('sales')->insert(['Codigo' =>'8019469','Precio'=>'2059.36','CodigoDeBarra'=>'7798181640261','Pvp'=>'2059.36']);\nDB::table('sales')->insert(['Codigo' =>'8036271','Precio'=>'81.97','CodigoDeBarra'=>'7804655060319','Pvp'=>'81.97']);\nDB::table('sales')->insert(['Codigo' =>'8036270','Precio'=>'81.97','CodigoDeBarra'=>'7804655060326','Pvp'=>'81.97']);\nDB::table('sales')->insert(['Codigo' =>'8019472','Precio'=>'1072.09','CodigoDeBarra'=>'7798181640339','Pvp'=>'1072.09']);\nDB::table('sales')->insert(['Codigo' =>'8019471','Precio'=>'1727.18','CodigoDeBarra'=>'7798181640315','Pvp'=>'1727.18']);\nDB::table('sales')->insert(['Codigo' =>'8020361','Precio'=>'505.40','CodigoDeBarra'=>'7798181640384','Pvp'=>'505.40']);\nDB::table('sales')->insert(['Codigo' =>'8020359','Precio'=>'586.66','CodigoDeBarra'=>'7798181640360','Pvp'=>'586.66']);\nDB::table('sales')->insert(['Codigo' =>'8020362','Precio'=>'573.11','CodigoDeBarra'=>'7798181640438','Pvp'=>'573.11']);\nDB::table('sales')->insert(['Codigo' =>'8020360','Precio'=>'634.42','CodigoDeBarra'=>'7798181640414','Pvp'=>'634.42']);\nDB::table('sales')->insert(['Codigo' =>'8032382','Precio'=>'2738.88','CodigoDeBarra'=>'7795323003434','Pvp'=>'2738.88']);\nDB::table('sales')->insert(['Codigo' =>'9939203','Precio'=>'1604.57','CodigoDeBarra'=>'7795323772804','Pvp'=>'1604.57']);\nDB::table('sales')->insert(['Codigo' =>'8014738','Precio'=>'2841.76','CodigoDeBarra'=>'7795323002994','Pvp'=>'2841.76']);\nDB::table('sales')->insert(['Codigo' =>'8024091','Precio'=>'424.77','CodigoDeBarra'=>'7795323002895','Pvp'=>'424.77']);\nDB::table('sales')->insert(['Codigo' =>'8011351','Precio'=>'1478.42','CodigoDeBarra'=>'8712400801065','Pvp'=>'1478.42']);\nDB::table('sales')->insert(['Codigo' =>'8037757','Precio'=>'1171.39','CodigoDeBarra'=>'7795323773658','Pvp'=>'1171.39']);\nDB::table('sales')->insert(['Codigo' =>'8037758','Precio'=>'1157.43','CodigoDeBarra'=>'7795323773665','Pvp'=>'1157.43']);\nDB::table('sales')->insert(['Codigo' =>'8010816','Precio'=>'1228.91','CodigoDeBarra'=>'7795323000273','Pvp'=>'1228.91']);\nDB::table('sales')->insert(['Codigo' =>'8012032','Precio'=>'3556.07','CodigoDeBarra'=>'8712400801089','Pvp'=>'3556.07']);\nDB::table('sales')->insert(['Codigo' =>'8018346','Precio'=>'3128.33','CodigoDeBarra'=>'8718117601066','Pvp'=>'3128.33']);\nDB::table('sales')->insert(['Codigo' =>'9999999','Precio'=>'1618.94','CodigoDeBarra'=>'8712400779302','Pvp'=>'1618.94']);\nDB::table('sales')->insert(['Codigo' =>'8015128','Precio'=>'1513.11','CodigoDeBarra'=>'7795323001973','Pvp'=>'1513.11']);\nDB::table('sales')->insert(['Codigo' =>'8021743','Precio'=>'54.18','CodigoDeBarra'=>'7795323002529','Pvp'=>'54.18']);\nDB::table('sales')->insert(['Codigo' =>'8021723','Precio'=>'485.01','CodigoDeBarra'=>'7795323002413','Pvp'=>'485.01']);\nDB::table('sales')->insert(['Codigo' =>'8021518','Precio'=>'784.10','CodigoDeBarra'=>'7795323002420','Pvp'=>'784.10']);\nDB::table('sales')->insert(['Codigo' =>'8021814','Precio'=>'53.64','CodigoDeBarra'=>'7795323002475','Pvp'=>'53.64']);\nDB::table('sales')->insert(['Codigo' =>'8028105','Precio'=>'462.98','CodigoDeBarra'=>'7795323003410','Pvp'=>'462.98']);\nDB::table('sales')->insert(['Codigo' =>'8021519','Precio'=>'771.62','CodigoDeBarra'=>'7795323002437','Pvp'=>'771.62']);\nDB::table('sales')->insert(['Codigo' =>'8021813','Precio'=>'50.71','CodigoDeBarra'=>'7795323002482','Pvp'=>'50.71']);\nDB::table('sales')->insert(['Codigo' =>'8021520','Precio'=>'690.78','CodigoDeBarra'=>'7795323002444','Pvp'=>'690.78']);\nDB::table('sales')->insert(['Codigo' =>'8021830','Precio'=>'201.35','CodigoDeBarra'=>'7795323002512','Pvp'=>'201.35']);\nDB::table('sales')->insert(['Codigo' =>'8021829','Precio'=>'47.77','CodigoDeBarra'=>'7795323002550','Pvp'=>'47.77']);\nDB::table('sales')->insert(['Codigo' =>'8022466','Precio'=>'646.70','CodigoDeBarra'=>'7795323002451','Pvp'=>'646.70']);\nDB::table('sales')->insert(['Codigo' =>'8005134','Precio'=>'2123.42','CodigoDeBarra'=>'7795323772798','Pvp'=>'2123.42']);\nDB::table('sales')->insert(['Codigo' =>'8028107','Precio'=>'3068.11','CodigoDeBarra'=>'7795323003359','Pvp'=>'3068.11']);\nDB::table('sales')->insert(['Codigo' =>'9993157','Precio'=>'961.95','CodigoDeBarra'=>'8712400771313','Pvp'=>'961.95']);\nDB::table('sales')->insert(['Codigo' =>'6530522','Precio'=>'327.99','CodigoDeBarra'=>'7899706114998','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530525','Precio'=>'327.99','CodigoDeBarra'=>'7896014191482','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530527','Precio'=>'327.99','CodigoDeBarra'=>'7790033239562','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8007502','Precio'=>'327.99','CodigoDeBarra'=>'7898587761161','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8007035','Precio'=>'327.99','CodigoDeBarra'=>'7899706115056','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530529','Precio'=>'327.99','CodigoDeBarra'=>'7899706115063','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530530','Precio'=>'327.99','CodigoDeBarra'=>'7899706115155','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6300993','Precio'=>'327.99','CodigoDeBarra'=>'7899706115179','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530533','Precio'=>'327.99','CodigoDeBarra'=>'7899706115186','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530534','Precio'=>'327.99','CodigoDeBarra'=>'7899706115193','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6310304','Precio'=>'327.99','CodigoDeBarra'=>'7899706115216','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530536','Precio'=>'327.99','CodigoDeBarra'=>'7899706115223','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530537','Precio'=>'327.99','CodigoDeBarra'=>'7899706115230','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8022417','Precio'=>'327.99','CodigoDeBarra'=>'7899706114622','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530538','Precio'=>'327.99','CodigoDeBarra'=>'7899706115247','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530539','Precio'=>'327.99','CodigoDeBarra'=>'7899706115353','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530540','Precio'=>'327.99','CodigoDeBarra'=>'7899706115377','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8029874','Precio'=>'327.99','CodigoDeBarra'=>'7509552800760','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8022416','Precio'=>'327.99','CodigoDeBarra'=>'7899706114790','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530542','Precio'=>'327.99','CodigoDeBarra'=>'7896014191789','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530543','Precio'=>'327.99','CodigoDeBarra'=>'7899706115407','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6309908','Precio'=>'327.99','CodigoDeBarra'=>'7899706115414','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6301264','Precio'=>'327.99','CodigoDeBarra'=>'7899706115421','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530544','Precio'=>'327.99','CodigoDeBarra'=>'7899706115445','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6530545','Precio'=>'327.99','CodigoDeBarra'=>'7899706115452','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'6301263','Precio'=>'327.99','CodigoDeBarra'=>'7899706115469','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8040003','Precio'=>'327.99','CodigoDeBarra'=>'7509552841169','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8040004','Precio'=>'327.99','CodigoDeBarra'=>'7509552841176','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8011598','Precio'=>'327.99','CodigoDeBarra'=>'7899706119931','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8011597','Precio'=>'327.99','CodigoDeBarra'=>'7899706119948','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8011596','Precio'=>'327.99','CodigoDeBarra'=>'7899706119924','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8011600','Precio'=>'327.99','CodigoDeBarra'=>'7899706119955','Pvp'=>'327.99']);\nDB::table('sales')->insert(['Codigo' =>'8039147','Precio'=>'18723.81','CodigoDeBarra'=>'4034341002399','Pvp'=>'18723.81']);\nDB::table('sales')->insert(['Codigo' =>'8028153','Precio'=>'24634.58','CodigoDeBarra'=>'4034341002405','Pvp'=>'24634.58']);\nDB::table('sales')->insert(['Codigo' =>'8039705','Precio'=>'676603.95','CodigoDeBarra'=>'7792371069818','Pvp'=>'676603.95']);\nDB::table('sales')->insert(['Codigo' =>'626655','Precio'=>'99627.82','CodigoDeBarra'=>'7798035310944','Pvp'=>'99627.82']);\nDB::table('sales')->insert(['Codigo' =>'8039336','Precio'=>'199255.65','CodigoDeBarra'=>'7798035314027','Pvp'=>'199255.65']);\nDB::table('sales')->insert(['Codigo' =>'8040878','Precio'=>'99627.82','CodigoDeBarra'=>'7798035310753','Pvp'=>'99627.82']);\nDB::table('sales')->insert(['Codigo' =>'594971','Precio'=>'2198.24','CodigoDeBarra'=>'7798006871573','Pvp'=>'2198.24']);\nDB::table('sales')->insert(['Codigo' =>'748313','Precio'=>'169.00','CodigoDeBarra'=>'7794207000507','Pvp'=>'169.00']);\nDB::table('sales')->insert(['Codigo' =>'4852601','Precio'=>'702.50','CodigoDeBarra'=>'7798069050571','Pvp'=>'702.50']);\nDB::table('sales')->insert(['Codigo' =>'5383421','Precio'=>'1227.69','CodigoDeBarra'=>'7798069050625','Pvp'=>'1227.69']);\nDB::table('sales')->insert(['Codigo' =>'641000','Precio'=>'313354.62','CodigoDeBarra'=>'4048846011954','Pvp'=>'313354.62']);\nDB::table('sales')->insert(['Codigo' =>'641013','Precio'=>'460632.27','CodigoDeBarra'=>'4048846011985','Pvp'=>'460632.27']);\nDB::table('sales')->insert(['Codigo' =>'8037692','Precio'=>'224.02','CodigoDeBarra'=>'7790520991362','Pvp'=>'224.02']);\nDB::table('sales')->insert(['Codigo' =>'8037691','Precio'=>'235.22','CodigoDeBarra'=>'7790520991355','Pvp'=>'235.22']);\nDB::table('sales')->insert(['Codigo' =>'4598271','Precio'=>'220.56','CodigoDeBarra'=>'7797416000337','Pvp'=>'220.56']);\nDB::table('sales')->insert(['Codigo' =>'8008938','Precio'=>'612.89','CodigoDeBarra'=>'7798021111517','Pvp'=>'612.89']);\nDB::table('sales')->insert(['Codigo' =>'650784','Precio'=>'70099.42','CodigoDeBarra'=>'7795990002211','Pvp'=>'70099.42']);\nDB::table('sales')->insert(['Codigo' =>'650797','Precio'=>'70099.42','CodigoDeBarra'=>'7795990002228','Pvp'=>'70099.42']);\nDB::table('sales')->insert(['Codigo' =>'6247002','Precio'=>'15061.68','CodigoDeBarra'=>'7795367001755','Pvp'=>'15061.68']);\nDB::table('sales')->insert(['Codigo' =>'8036769','Precio'=>'183.01','CodigoDeBarra'=>'614143473463','Pvp'=>'183.01']);\nDB::table('sales')->insert(['Codigo' =>'8036770','Precio'=>'570.16','CodigoDeBarra'=>'614143474064','Pvp'=>'570.16']);\nDB::table('sales')->insert(['Codigo' =>'4583240','Precio'=>'1038.62','CodigoDeBarra'=>'7795336087001','Pvp'=>'1038.62']);\nDB::table('sales')->insert(['Codigo' =>'4583583','Precio'=>'848.30','CodigoDeBarra'=>'7795336087322','Pvp'=>'848.30']);\nDB::table('sales')->insert(['Codigo' =>'8007082','Precio'=>'956.65','CodigoDeBarra'=>'7795348002771','Pvp'=>'956.65']);\nDB::table('sales')->insert(['Codigo' =>'4354391','Precio'=>'2648.59','CodigoDeBarra'=>'7795348002788','Pvp'=>'2648.59']);\nDB::table('sales')->insert(['Codigo' =>'5865971','Precio'=>'31395.04','CodigoDeBarra'=>'7792069951098','Pvp'=>'31395.04']);\nDB::table('sales')->insert(['Codigo' =>'5865841','Precio'=>'15697.69','CodigoDeBarra'=>'7792069951081','Pvp'=>'15697.69']);\nDB::table('sales')->insert(['Codigo' =>'5286032','Precio'=>'85.00','CodigoDeBarra'=>'7798088122877','Pvp'=>'85.00']);\nDB::table('sales')->insert(['Codigo' =>'528603','Precio'=>'416.16','CodigoDeBarra'=>'7798088120330','Pvp'=>'416.16']);\nDB::table('sales')->insert(['Codigo' =>'5220953','Precio'=>'1641.00','CodigoDeBarra'=>'7795336291279','Pvp'=>'1641.00']);\nDB::table('sales')->insert(['Codigo' =>'4672423','Precio'=>'878.86','CodigoDeBarra'=>'7791763001740','Pvp'=>'878.86']);\nDB::table('sales')->insert(['Codigo' =>'4672343','Precio'=>'695.69','CodigoDeBarra'=>'7791763001757','Pvp'=>'695.69']);\nDB::table('sales')->insert(['Codigo' =>'4704351','Precio'=>'533.47','CodigoDeBarra'=>'7791829018453','Pvp'=>'533.47']);\nDB::table('sales')->insert(['Codigo' =>'8007135','Precio'=>'783.42','CodigoDeBarra'=>'7791829008546','Pvp'=>'783.42']);\nDB::table('sales')->insert(['Codigo' =>'6381712','Precio'=>'130809.39','CodigoDeBarra'=>'7798008272118','Pvp'=>'130809.39']);\nDB::table('sales')->insert(['Codigo' =>'6381711','Precio'=>'52322.18','CodigoDeBarra'=>'7798008272101','Pvp'=>'52322.18']);\nDB::table('sales')->insert(['Codigo' =>'633742','Precio'=>'320731.01','CodigoDeBarra'=>'7640111931249','Pvp'=>'320731.01']);\nDB::table('sales')->insert(['Codigo' =>'8024372','Precio'=>'161.55','CodigoDeBarra'=>'7798122340946','Pvp'=>'161.55']);\nDB::table('sales')->insert(['Codigo' =>'8021363','Precio'=>'297.75','CodigoDeBarra'=>'7798122340861','Pvp'=>'297.75']);\nDB::table('sales')->insert(['Codigo' =>'8020013','Precio'=>'167.89','CodigoDeBarra'=>'7798122340823','Pvp'=>'167.89']);\nDB::table('sales')->insert(['Codigo' =>'8019525','Precio'=>'319.93','CodigoDeBarra'=>'7798122340793','Pvp'=>'319.93']);\nDB::table('sales')->insert(['Codigo' =>'5791132','Precio'=>'46415.54','CodigoDeBarra'=>'7798006870231','Pvp'=>'46415.54']);\nDB::table('sales')->insert(['Codigo' =>'8020830','Precio'=>'23207.79','CodigoDeBarra'=>'7798006870200','Pvp'=>'23207.79']);\nDB::table('sales')->insert(['Codigo' =>'6330002','Precio'=>'613.72','CodigoDeBarra'=>'7795316004646','Pvp'=>'613.72']);\nDB::table('sales')->insert(['Codigo' =>'5660842','Precio'=>'416.03','CodigoDeBarra'=>'7795316000105','Pvp'=>'416.03']);\nDB::table('sales')->insert(['Codigo' =>'8026508','Precio'=>'186.78','CodigoDeBarra'=>'7506195129128','Pvp'=>'186.78']);\nDB::table('sales')->insert(['Codigo' =>'8029121','Precio'=>'178.09','CodigoDeBarra'=>'7500435110662','Pvp'=>'178.09']);\nDB::table('sales')->insert(['Codigo' =>'6031090','Precio'=>'127.54','CodigoDeBarra'=>'300410826154','Pvp'=>'127.54']);\nDB::table('sales')->insert(['Codigo' =>'8013650','Precio'=>'164.61','CodigoDeBarra'=>'3014260839437','Pvp'=>'164.61']);\nDB::table('sales')->insert(['Codigo' =>'8022548','Precio'=>'130.72','CodigoDeBarra'=>'7506309898407','Pvp'=>'130.72']);\nDB::table('sales')->insert(['Codigo' =>'8018324','Precio'=>'183.63','CodigoDeBarra'=>'7800005093570','Pvp'=>'183.63']);\nDB::table('sales')->insert(['Codigo' =>'8032149','Precio'=>'98.84','CodigoDeBarra'=>'7500435122399','Pvp'=>'98.84']);\nDB::table('sales')->insert(['Codigo' =>'6300578','Precio'=>'92.43','CodigoDeBarra'=>'3014260279264','Pvp'=>'92.43']);\nDB::table('sales')->insert(['Codigo' =>'8013399','Precio'=>'92.13','CodigoDeBarra'=>'3014260278922','Pvp'=>'92.13']);\nDB::table('sales')->insert(['Codigo' =>'8034666','Precio'=>'92.13','CodigoDeBarra'=>'7500435017046','Pvp'=>'92.13']);\nDB::table('sales')->insert(['Codigo' =>'8034670','Precio'=>'161.90','CodigoDeBarra'=>'7500435125000','Pvp'=>'161.90']);\nDB::table('sales')->insert(['Codigo' =>'8042104','Precio'=>'202.52','CodigoDeBarra'=>'7500435142700','Pvp'=>'202.52']);\nDB::table('sales')->insert(['Codigo' =>'8019417','Precio'=>'164.28','CodigoDeBarra'=>'7506295388517','Pvp'=>'164.28']);\nDB::table('sales')->insert(['Codigo' =>'8019416','Precio'=>'98.73','CodigoDeBarra'=>'7506295388487','Pvp'=>'98.73']);\nDB::table('sales')->insert(['Codigo' =>'8038367','Precio'=>'186.51','CodigoDeBarra'=>'7500435127646','Pvp'=>'186.51']);\nDB::table('sales')->insert(['Codigo' =>'8023972','Precio'=>'135.15','CodigoDeBarra'=>'7506309816258','Pvp'=>'135.15']);\nDB::table('sales')->insert(['Codigo' =>'8015757','Precio'=>'68.52','CodigoDeBarra'=>'7506195131640','Pvp'=>'68.52']);\nDB::table('sales')->insert(['Codigo' =>'8038369','Precio'=>'186.51','CodigoDeBarra'=>'7500435130554','Pvp'=>'186.51']);\nDB::table('sales')->insert(['Codigo' =>'8024552','Precio'=>'93.13','CodigoDeBarra'=>'7506339398427','Pvp'=>'93.13']);\nDB::table('sales')->insert(['Codigo' =>'8000739','Precio'=>'93.08','CodigoDeBarra'=>'3014260670986','Pvp'=>'93.08']);\nDB::table('sales')->insert(['Codigo' =>'8034667','Precio'=>'93.13','CodigoDeBarra'=>'7500435017053','Pvp'=>'93.13']);\nDB::table('sales')->insert(['Codigo' =>'6034458','Precio'=>'204.00','CodigoDeBarra'=>'7501086495122','Pvp'=>'204.00']);\nDB::table('sales')->insert(['Codigo' =>'6310042','Precio'=>'204.00','CodigoDeBarra'=>'7501086495139','Pvp'=>'204.00']);\nDB::table('sales')->insert(['Codigo' =>'8018325','Precio'=>'212.90','CodigoDeBarra'=>'7501086495146','Pvp'=>'212.90']);\nDB::table('sales')->insert(['Codigo' =>'8021802','Precio'=>'1682.74','CodigoDeBarra'=>'7506309864938','Pvp'=>'1682.74']);\nDB::table('sales')->insert(['Codigo' =>'8019422','Precio'=>'1316.61','CodigoDeBarra'=>'7506295399544','Pvp'=>'1316.61']);\nDB::table('sales')->insert(['Codigo' =>'5700551','Precio'=>'642.00','CodigoDeBarra'=>'7795367055284','Pvp'=>'642.00']);\nDB::table('sales')->insert(['Codigo' =>'6195391','Precio'=>'95162.13','CodigoDeBarra'=>'7798008271951','Pvp'=>'95162.13']);\nDB::table('sales')->insert(['Codigo' =>'5593391','Precio'=>'43155.31','CodigoDeBarra'=>'3000032187127','Pvp'=>'43155.31']);\nDB::table('sales')->insert(['Codigo' =>'4869451','Precio'=>'2977.63','CodigoDeBarra'=>'7795318001261','Pvp'=>'2977.63']);\nDB::table('sales')->insert(['Codigo' =>'8038867','Precio'=>'191160.99','CodigoDeBarra'=>'7793397051979','Pvp'=>'191160.99']);\nDB::table('sales')->insert(['Codigo' =>'5295250','Precio'=>'41805.53','CodigoDeBarra'=>'7793397080160','Pvp'=>'41805.53']);\nDB::table('sales')->insert(['Codigo' =>'5295110','Precio'=>'11677.38','CodigoDeBarra'=>'7793397080122','Pvp'=>'11677.38']);\nDB::table('sales')->insert(['Codigo' =>'6108131','Precio'=>'300.80','CodigoDeBarra'=>'7795378001225','Pvp'=>'300.80']);\nDB::table('sales')->insert(['Codigo' =>'6558001','Precio'=>'287.36','CodigoDeBarra'=>'7795378005728','Pvp'=>'287.36']);\nDB::table('sales')->insert(['Codigo' =>'6558002','Precio'=>'506.19','CodigoDeBarra'=>'7795378005933','Pvp'=>'506.19']);\nDB::table('sales')->insert(['Codigo' =>'6183551','Precio'=>'36674.57','CodigoDeBarra'=>'7795355000494','Pvp'=>'36674.57']);\nDB::table('sales')->insert(['Codigo' =>'6486131','Precio'=>'62329.34','CodigoDeBarra'=>'7798084685871','Pvp'=>'62329.34']);\nDB::table('sales')->insert(['Codigo' =>'4966563','Precio'=>'3065.35','CodigoDeBarra'=>'7730949043815','Pvp'=>'3065.35']);\nDB::table('sales')->insert(['Codigo' =>'5623421','Precio'=>'264.31','CodigoDeBarra'=>'7792175008631','Pvp'=>'264.31']);\nDB::table('sales')->insert(['Codigo' =>'5623422','Precio'=>'479.31','CodigoDeBarra'=>'7792175008648','Pvp'=>'479.31']);\nDB::table('sales')->insert(['Codigo' =>'4419151','Precio'=>'8292.20','CodigoDeBarra'=>'7795356999988','Pvp'=>'8292.20']);\nDB::table('sales')->insert(['Codigo' =>'4419071','Precio'=>'4147.03','CodigoDeBarra'=>'7795356999964','Pvp'=>'4147.03']);\nDB::table('sales')->insert(['Codigo' =>'486119','Precio'=>'790.65','CodigoDeBarra'=>'7793569000088','Pvp'=>'790.65']);\nDB::table('sales')->insert(['Codigo' =>'486101','Precio'=>'505.87','CodigoDeBarra'=>'7793569000071','Pvp'=>'505.87']);\nDB::table('sales')->insert(['Codigo' =>'5010321','Precio'=>'1036.53','CodigoDeBarra'=>'7798088120125','Pvp'=>'1036.53']);\nDB::table('sales')->insert(['Codigo' =>'5010481','Precio'=>'1379.99','CodigoDeBarra'=>'7798088120132','Pvp'=>'1379.99']);\nDB::table('sales')->insert(['Codigo' =>'514201','Precio'=>'773.77','CodigoDeBarra'=>'7798006871283','Pvp'=>'773.77']);\nDB::table('sales')->insert(['Codigo' =>'514217','Precio'=>'1424.76','CodigoDeBarra'=>'7798006871290','Pvp'=>'1424.76']);\nDB::table('sales')->insert(['Codigo' =>'641513','Precio'=>'1196.88','CodigoDeBarra'=>'7798180920319','Pvp'=>'1196.88']);\nDB::table('sales')->insert(['Codigo' =>'643955','Precio'=>'630.73','CodigoDeBarra'=>'7798180920296','Pvp'=>'630.73']);\nDB::table('sales')->insert(['Codigo' =>'8006885','Precio'=>'7823.23','CodigoDeBarra'=>'7798021442864','Pvp'=>'7823.23']);\nDB::table('sales')->insert(['Codigo' =>'4675071','Precio'=>'15895.84','CodigoDeBarra'=>'7798021442871','Pvp'=>'15895.84']);\nDB::table('sales')->insert(['Codigo' =>'8029608','Precio'=>'111738.41','CodigoDeBarra'=>'7795367548496','Pvp'=>'111738.41']);\nDB::table('sales')->insert(['Codigo' =>'8043321','Precio'=>'6673.47','CodigoDeBarra'=>'7798180921835','Pvp'=>'6673.47']);\nDB::table('sales')->insert(['Codigo' =>'8043322','Precio'=>'10486.87','CodigoDeBarra'=>'77880921842','Pvp'=>'10486.87']);\nDB::table('sales')->insert(['Codigo' =>'4450081','Precio'=>'4020.13','CodigoDeBarra'=>'7795356002169','Pvp'=>'4020.13']);\nDB::table('sales')->insert(['Codigo' =>'4450161','Precio'=>'6030.21','CodigoDeBarra'=>'7795356002176','Pvp'=>'6030.21']);\nDB::table('sales')->insert(['Codigo' =>'8006847','Precio'=>'1320.45','CodigoDeBarra'=>'7796035469853','Pvp'=>'1320.45']);\nDB::table('sales')->insert(['Codigo' =>'8006848','Precio'=>'12523.68','CodigoDeBarra'=>'7795356002183','Pvp'=>'12523.68']);\nDB::table('sales')->insert(['Codigo' =>'5003211','Precio'=>'1140.43','CodigoDeBarra'=>'7798088120156','Pvp'=>'1140.43']);\nDB::table('sales')->insert(['Codigo' =>'5003351','Precio'=>'1508.57','CodigoDeBarra'=>'7798088120163','Pvp'=>'1508.57']);\nDB::table('sales')->insert(['Codigo' =>'5003141','Precio'=>'417.92','CodigoDeBarra'=>'7798088120149','Pvp'=>'417.92']);\nDB::table('sales')->insert(['Codigo' =>'5003401','Precio'=>'2205.85','CodigoDeBarra'=>'7798088120170','Pvp'=>'2205.85']);\nDB::table('sales')->insert(['Codigo' =>'519131','Precio'=>'989.70','CodigoDeBarra'=>'7798006871313','Pvp'=>'989.70']);\nDB::table('sales')->insert(['Codigo' =>'519145','Precio'=>'1346.91','CodigoDeBarra'=>'7798006871320','Pvp'=>'1346.91']);\nDB::table('sales')->insert(['Codigo' =>'519150','Precio'=>'1886.44','CodigoDeBarra'=>'7798006871337','Pvp'=>'1886.44']);\nDB::table('sales')->insert(['Codigo' =>'519124','Precio'=>'557.21','CodigoDeBarra'=>'7798006871306','Pvp'=>'557.21']);\nDB::table('sales')->insert(['Codigo' =>'8033123','Precio'=>'1033.80','CodigoDeBarra'=>'7798180920609','Pvp'=>'1033.80']);\nDB::table('sales')->insert(['Codigo' =>'8033126','Precio'=>'1454.30','CodigoDeBarra'=>'7798180920616','Pvp'=>'1454.30']);\nDB::table('sales')->insert(['Codigo' =>'8033124','Precio'=>'451.43','CodigoDeBarra'=>'7798180920593','Pvp'=>'451.43']);\nDB::table('sales')->insert(['Codigo' =>'8033125','Precio'=>'2670.54','CodigoDeBarra'=>'7798180920623','Pvp'=>'2670.54']);\nDB::table('sales')->insert(['Codigo' =>'480426','Precio'=>'1009.30','CodigoDeBarra'=>'7791829008638','Pvp'=>'1009.30']);\nDB::table('sales')->insert(['Codigo' =>'5106971','Precio'=>'1349.99','CodigoDeBarra'=>'7791829008966','Pvp'=>'1349.99']);\nDB::table('sales')->insert(['Codigo' =>'8006919','Precio'=>'2424.40','CodigoDeBarra'=>'7791829008645','Pvp'=>'2424.40']);\nDB::table('sales')->insert(['Codigo' =>'4804181','Precio'=>'515.14','CodigoDeBarra'=>'7791829008621','Pvp'=>'515.14']);\nDB::table('sales')->insert(['Codigo' =>'4454460','Precio'=>'1585.53','CodigoDeBarra'=>'7793397051122','Pvp'=>'1585.53']);\nDB::table('sales')->insert(['Codigo' =>'5278880','Precio'=>'1915.38','CodigoDeBarra'=>'7793397051139','Pvp'=>'1915.38']);\nDB::table('sales')->insert(['Codigo' =>'9934617','Precio'=>'4029.45','CodigoDeBarra'=>'7793397050880','Pvp'=>'4029.45']);\nDB::table('sales')->insert(['Codigo' =>'4454380','Precio'=>'925.30','CodigoDeBarra'=>'7793397051115','Pvp'=>'925.30']);\nDB::table('sales')->insert(['Codigo' =>'8007062','Precio'=>'357.29','CodigoDeBarra'=>'7798035310487','Pvp'=>'357.29']);\nDB::table('sales')->insert(['Codigo' =>'8006827','Precio'=>'545.43','CodigoDeBarra'=>'7798035310494','Pvp'=>'545.43']);\nDB::table('sales')->insert(['Codigo' =>'8006828','Precio'=>'254.78','CodigoDeBarra'=>'7798035310470','Pvp'=>'254.78']);\nDB::table('sales')->insert(['Codigo' =>'8006833','Precio'=>'1050.97','CodigoDeBarra'=>'7798035313679','Pvp'=>'1050.97']);\nDB::table('sales')->insert(['Codigo' =>'5684391','Precio'=>'412.85','CodigoDeBarra'=>'7795380000193','Pvp'=>'412.85']);\nDB::table('sales')->insert(['Codigo' =>'6248131','Precio'=>'553.18','CodigoDeBarra'=>'7795380001596','Pvp'=>'553.18']);\nDB::table('sales')->insert(['Codigo' =>'8013267','Precio'=>'908.66','CodigoDeBarra'=>'7798138590052','Pvp'=>'908.66']);\nDB::table('sales')->insert(['Codigo' =>'8014619','Precio'=>'1559.98','CodigoDeBarra'=>'7798138590069','Pvp'=>'1559.98']);\nDB::table('sales')->insert(['Codigo' =>'8014620','Precio'=>'1721.89','CodigoDeBarra'=>'7798138590076','Pvp'=>'1721.89']);\nDB::table('sales')->insert(['Codigo' =>'8014621','Precio'=>'2582.84','CodigoDeBarra'=>'7798138590083','Pvp'=>'2582.84']);\nDB::table('sales')->insert(['Codigo' =>'8025443','Precio'=>'2764.28','CodigoDeBarra'=>'7798138590168','Pvp'=>'2764.28']);\nDB::table('sales')->insert(['Codigo' =>'590155','Precio'=>'736.23','CodigoDeBarra'=>'7798017280111','Pvp'=>'736.23']);\nDB::table('sales')->insert(['Codigo' =>'4527062','Precio'=>'819.95','CodigoDeBarra'=>'7791763001733','Pvp'=>'819.95']);\nDB::table('sales')->insert(['Codigo' =>'4527222','Precio'=>'1297.04','CodigoDeBarra'=>'7791763001726','Pvp'=>'1297.04']);\nDB::table('sales')->insert(['Codigo' =>'8036368','Precio'=>'131.34','CodigoDeBarra'=>'7500435133166','Pvp'=>'131.34']);\nDB::table('sales')->insert(['Codigo' =>'8036367','Precio'=>'131.34','CodigoDeBarra'=>'7500435133159','Pvp'=>'131.34']);\nDB::table('sales')->insert(['Codigo' =>'8036366','Precio'=>'131.34','CodigoDeBarra'=>'7500435133142','Pvp'=>'131.34']);\nDB::table('sales')->insert(['Codigo' =>'8028355','Precio'=>'274.74','CodigoDeBarra'=>'7500435113779','Pvp'=>'274.74']);\nDB::table('sales')->insert(['Codigo' =>'8036369','Precio'=>'131.34','CodigoDeBarra'=>'7500435133173','Pvp'=>'131.34']);\nDB::table('sales')->insert(['Codigo' =>'8036370','Precio'=>'131.34','CodigoDeBarra'=>'7500435133180','Pvp'=>'131.34']);\nDB::table('sales')->insert(['Codigo' =>'8037221','Precio'=>'104.28','CodigoDeBarra'=>'7500435133326','Pvp'=>'104.28']);\nDB::table('sales')->insert(['Codigo' =>'8037220','Precio'=>'104.28','CodigoDeBarra'=>'7500435133319','Pvp'=>'104.28']);\nDB::table('sales')->insert(['Codigo' =>'8037191','Precio'=>'104.28','CodigoDeBarra'=>'7500435133302','Pvp'=>'104.28']);\nDB::table('sales')->insert(['Codigo' =>'8037222','Precio'=>'104.28','CodigoDeBarra'=>'7500435133333','Pvp'=>'104.28']);\nDB::table('sales')->insert(['Codigo' =>'8037223','Precio'=>'104.28','CodigoDeBarra'=>'7500435133340','Pvp'=>'104.28']);\nDB::table('sales')->insert(['Codigo' =>'8042449','Precio'=>'73.47','CodigoDeBarra'=>'7500435148450','Pvp'=>'73.47']);\nDB::table('sales')->insert(['Codigo' =>'5330001','Precio'=>'16151.64','CodigoDeBarra'=>'7798096990406','Pvp'=>'16151.64']);\nDB::table('sales')->insert(['Codigo' =>'8006889','Precio'=>'24986.44','CodigoDeBarra'=>'7798096990420','Pvp'=>'24986.44']);\nDB::table('sales')->insert(['Codigo' =>'8007103','Precio'=>'2355.38','CodigoDeBarra'=>'7798096990390','Pvp'=>'2355.38']);\nDB::table('sales')->insert(['Codigo' =>'5699132','Precio'=>'3351.67','CodigoDeBarra'=>'7791829018910','Pvp'=>'3351.67']);\nDB::table('sales')->insert(['Codigo' =>'8033351','Precio'=>'615.63','CodigoDeBarra'=>'7798069050090','Pvp'=>'615.63']);\nDB::table('sales')->insert(['Codigo' =>'9999310','Precio'=>'248.82','CodigoDeBarra'=>'7798069050588','Pvp'=>'248.82']);\nDB::table('sales')->insert(['Codigo' =>'6300202','Precio'=>'183.92','CodigoDeBarra'=>'7500435012669','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'8031249','Precio'=>'160.88','CodigoDeBarra'=>'7500435116718','Pvp'=>'160.88']);\nDB::table('sales')->insert(['Codigo' =>'8025911','Precio'=>'160.87','CodigoDeBarra'=>'7500435106405','Pvp'=>'160.87']);\nDB::table('sales')->insert(['Codigo' =>'8025909','Precio'=>'160.87','CodigoDeBarra'=>'7500435106382','Pvp'=>'160.87']);\nDB::table('sales')->insert(['Codigo' =>'8004043','Precio'=>'183.92','CodigoDeBarra'=>'7501007457826','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6310200','Precio'=>'129.30','CodigoDeBarra'=>'7501001303501','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8029627','Precio'=>'183.92','CodigoDeBarra'=>'7500435020299','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'8019435','Precio'=>'129.30','CodigoDeBarra'=>'7500435013048','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8000772','Precio'=>'183.92','CodigoDeBarra'=>'7500435012355','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6031502','Precio'=>'129.30','CodigoDeBarra'=>'7500435012508','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'6537003','Precio'=>'183.92','CodigoDeBarra'=>'7500435018418','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'8035346','Precio'=>'129.30','CodigoDeBarra'=>'7500435128636','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8043385','Precio'=>'454.34','CodigoDeBarra'=>'80878186815','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8043383','Precio'=>'454.34','CodigoDeBarra'=>'80878186433','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8043381','Precio'=>'454.34','CodigoDeBarra'=>'80878187034','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8011145','Precio'=>'183.92','CodigoDeBarra'=>'7500435012089','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6030433','Precio'=>'129.30','CodigoDeBarra'=>'7500435012379','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8029622','Precio'=>'169.89','CodigoDeBarra'=>'7500435118293','Pvp'=>'169.89']);\nDB::table('sales')->insert(['Codigo' =>'8019438','Precio'=>'169.89','CodigoDeBarra'=>'7506309840628','Pvp'=>'169.89']);\nDB::table('sales')->insert(['Codigo' =>'6301030','Precio'=>'169.89','CodigoDeBarra'=>'7501001170073','Pvp'=>'169.89']);\nDB::table('sales')->insert(['Codigo' =>'8022174','Precio'=>'169.89','CodigoDeBarra'=>'7506309837246','Pvp'=>'169.89']);\nDB::table('sales')->insert(['Codigo' =>'6301023','Precio'=>'169.89','CodigoDeBarra'=>'7501001170080','Pvp'=>'169.89']);\nDB::table('sales')->insert(['Codigo' =>'8004047','Precio'=>'183.92','CodigoDeBarra'=>'7506309845234','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6310203','Precio'=>'129.30','CodigoDeBarra'=>'7506309878126','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'6300093','Precio'=>'129.30','CodigoDeBarra'=>'7500435012478','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8037066','Precio'=>'229.28','CodigoDeBarra'=>'7500435131025','Pvp'=>'229.28']);\nDB::table('sales')->insert(['Codigo' =>'8029624','Precio'=>'183.92','CodigoDeBarra'=>'7500435020244','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'8019432','Precio'=>'129.30','CodigoDeBarra'=>'7500435012720','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8000775','Precio'=>'183.92','CodigoDeBarra'=>'7500435012287','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6031503','Precio'=>'129.30','CodigoDeBarra'=>'7500435012454','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'6300097','Precio'=>'183.92','CodigoDeBarra'=>'7500435018388','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'8035343','Precio'=>'129.30','CodigoDeBarra'=>'7500435128599','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'8038364','Precio'=>'160.88','CodigoDeBarra'=>'7500435136921','Pvp'=>'160.88']);\nDB::table('sales')->insert(['Codigo' =>'8038362','Precio'=>'160.88','CodigoDeBarra'=>'7500435136907','Pvp'=>'160.88']);\nDB::table('sales')->insert(['Codigo' =>'8043384','Precio'=>'454.34','CodigoDeBarra'=>'80878186808','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8043382','Precio'=>'454.34','CodigoDeBarra'=>'80878186426','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8043380','Precio'=>'454.34','CodigoDeBarra'=>'80878187027','Pvp'=>'454.34']);\nDB::table('sales')->insert(['Codigo' =>'8011147','Precio'=>'183.92','CodigoDeBarra'=>'7500435012041','Pvp'=>'183.92']);\nDB::table('sales')->insert(['Codigo' =>'6030432','Precio'=>'129.30','CodigoDeBarra'=>'7500435012300','Pvp'=>'129.30']);\nDB::table('sales')->insert(['Codigo' =>'2847112','Precio'=>'104.70','CodigoDeBarra'=>'7798084680548','Pvp'=>'104.70']);\nDB::table('sales')->insert(['Codigo' =>'4686963','Precio'=>'93.09','CodigoDeBarra'=>'7798084681491','Pvp'=>'93.09']);\nDB::table('sales')->insert(['Codigo' =>'5716425','Precio'=>'387.02','CodigoDeBarra'=>'7795356001599','Pvp'=>'387.02']);\nDB::table('sales')->insert(['Codigo' =>'8014165','Precio'=>'546.95','CodigoDeBarra'=>'779182000083','Pvp'=>'546.95']);\nDB::table('sales')->insert(['Codigo' =>'5716685','Precio'=>'980.29','CodigoDeBarra'=>'7791829000939','Pvp'=>'980.29']);\nDB::table('sales')->insert(['Codigo' =>'8038463','Precio'=>'3309.44','CodigoDeBarra'=>'7795306802436','Pvp'=>'3309.44']);\nDB::table('sales')->insert(['Codigo' =>'639897','Precio'=>'2371.87','CodigoDeBarra'=>'7793397051658','Pvp'=>'2371.87']);\nDB::table('sales')->insert(['Codigo' =>'8038747','Precio'=>'15043.59','CodigoDeBarra'=>'7798084685970','Pvp'=>'15043.59']);\nDB::table('sales')->insert(['Codigo' =>'8038748','Precio'=>'29543.59','CodigoDeBarra'=>'7798084685987','Pvp'=>'29543.59']);\nDB::table('sales')->insert(['Codigo' =>'8040104','Precio'=>'35890.68','CodigoDeBarra'=>'7793397052051','Pvp'=>'35890.68']);\nDB::table('sales')->insert(['Codigo' =>'6281550','Precio'=>'6283.60','CodigoDeBarra'=>'7793397052082','Pvp'=>'6283.60']);\nDB::table('sales')->insert(['Codigo' =>'6281680','Precio'=>'12562.68','CodigoDeBarra'=>'7793397052099','Pvp'=>'12562.68']);\nDB::table('sales')->insert(['Codigo' =>'8020600','Precio'=>'307.36','CodigoDeBarra'=>'7795356001230','Pvp'=>'307.36']);\nDB::table('sales')->insert(['Codigo' =>'437386','Precio'=>'210.48','CodigoDeBarra'=>'7798006301650','Pvp'=>'210.48']);\nDB::table('sales')->insert(['Codigo' =>'8001647','Precio'=>'210.48','CodigoDeBarra'=>'7798006301667','Pvp'=>'210.48']);\nDB::table('sales')->insert(['Codigo' =>'6058001','Precio'=>'20078.32','CodigoDeBarra'=>'7798163500033','Pvp'=>'20078.32']);\nDB::table('sales')->insert(['Codigo' =>'612468','Precio'=>'685.63','CodigoDeBarra'=>'7798088120637','Pvp'=>'685.63']);\nDB::table('sales')->insert(['Codigo' =>'612471','Precio'=>'1794.38','CodigoDeBarra'=>'7798088120644','Pvp'=>'1794.38']);\nDB::table('sales')->insert(['Codigo' =>'632897','Precio'=>'3281.51','CodigoDeBarra'=>'7798006871689','Pvp'=>'3281.51']);\nDB::table('sales')->insert(['Codigo' =>'623442','Precio'=>'1606.93','CodigoDeBarra'=>'7798035310890','Pvp'=>'1606.93']);\nDB::table('sales')->insert(['Codigo' =>'6441551','Precio'=>'36300.21','CodigoDeBarra'=>'7798084685642','Pvp'=>'36300.21']);\nDB::table('sales')->insert(['Codigo' =>'3154412','Precio'=>'332.05','CodigoDeBarra'=>'7795336239059','Pvp'=>'332.05']);\nDB::table('sales')->insert(['Codigo' =>'8001815','Precio'=>'189.85','CodigoDeBarra'=>'7795336239042','Pvp'=>'189.85']);\nDB::table('sales')->insert(['Codigo' =>'8001816','Precio'=>'281.34','CodigoDeBarra'=>'7795336239110','Pvp'=>'281.34']);\nDB::table('sales')->insert(['Codigo' =>'8001817','Precio'=>'499.53','CodigoDeBarra'=>'7795336239127','Pvp'=>'499.53']);\nDB::table('sales')->insert(['Codigo' =>'3234520','Precio'=>'342.48','CodigoDeBarra'=>'7795336248105','Pvp'=>'342.48']);\nDB::table('sales')->insert(['Codigo' =>'3234600','Precio'=>'529.12','CodigoDeBarra'=>'7795336248112','Pvp'=>'529.12']);\nDB::table('sales')->insert(['Codigo' =>'8033127','Precio'=>'48187.04','CodigoDeBarra'=>'4036124008345','Pvp'=>'48187.04']);\nDB::table('sales')->insert(['Codigo' =>'8001796','Precio'=>'4657.29','CodigoDeBarra'=>'7795336290982','Pvp'=>'4657.29']);\nDB::table('sales')->insert(['Codigo' =>'4551801','Precio'=>'179.58','CodigoDeBarra'=>'7795378001928','Pvp'=>'179.58']);\nDB::table('sales')->insert(['Codigo' =>'4551802','Precio'=>'339.84','CodigoDeBarra'=>'7795378001935','Pvp'=>'339.84']);\nDB::table('sales')->insert(['Codigo' =>'4136591','Precio'=>'277.47','CodigoDeBarra'=>'7795378001836','Pvp'=>'277.47']);\nDB::table('sales')->insert(['Codigo' =>'4136592','Precio'=>'533.13','CodigoDeBarra'=>'7795378001843','Pvp'=>'533.13']);\nDB::table('sales')->insert(['Codigo' =>'636868','Precio'=>'335960.95','CodigoDeBarra'=>'7790375003715','Pvp'=>'335960.95']);\nDB::table('sales')->insert(['Codigo' =>'8040456','Precio'=>'335960.95','CodigoDeBarra'=>'7790375268053','Pvp'=>'335960.95']);\nDB::table('sales')->insert(['Codigo' =>'5826841','Precio'=>'6575.35','CodigoDeBarra'=>'7730949049503','Pvp'=>'6575.35']);\nDB::table('sales')->insert(['Codigo' =>'53539','Precio'=>'338499.36','CodigoDeBarra'=>'7792371412980','Pvp'=>'338499.36']);\nDB::table('sales')->insert(['Codigo' =>'6232971','Precio'=>'252262.36','CodigoDeBarra'=>'7792371398369','Pvp'=>'252262.36']);\nDB::table('sales')->insert(['Codigo' =>'8037529','Precio'=>'255.84','CodigoDeBarra'=>'7792175009768','Pvp'=>'255.84']);\nDB::table('sales')->insert(['Codigo' =>'8037528','Precio'=>'306.80','CodigoDeBarra'=>'7792175009775','Pvp'=>'306.80']);\nDB::table('sales')->insert(['Codigo' =>'8037530','Precio'=>'255.81','CodigoDeBarra'=>'7792175009782','Pvp'=>'255.81']);\nDB::table('sales')->insert(['Codigo' =>'8037525','Precio'=>'297.75','CodigoDeBarra'=>'7792175009799','Pvp'=>'297.75']);\nDB::table('sales')->insert(['Codigo' =>'5991686','Precio'=>'564.41','CodigoDeBarra'=>'7792175009652','Pvp'=>'564.41']);\nDB::table('sales')->insert(['Codigo' =>'5991684','Precio'=>'189.48','CodigoDeBarra'=>'7792175009645','Pvp'=>'189.48']);\nDB::table('sales')->insert(['Codigo' =>'5991712','Precio'=>'225.95','CodigoDeBarra'=>'7792175009669','Pvp'=>'225.95']);\nDB::table('sales')->insert(['Codigo' =>'5991713','Precio'=>'424.76','CodigoDeBarra'=>'7792175009676','Pvp'=>'424.76']);\nDB::table('sales')->insert(['Codigo' =>'5991715','Precio'=>'742.72','CodigoDeBarra'=>'7792175009683','Pvp'=>'742.72']);\nDB::table('sales')->insert(['Codigo' =>'6485685','Precio'=>'257.04','CodigoDeBarra'=>'7792175009706','Pvp'=>'257.04']);\nDB::table('sales')->insert(['Codigo' =>'6485684','Precio'=>'183.61','CodigoDeBarra'=>'7792175009690','Pvp'=>'183.61']);\nDB::table('sales')->insert(['Codigo' =>'8043303','Precio'=>'92.87','CodigoDeBarra'=>'7791848286581','Pvp'=>'92.87']);\nDB::table('sales')->insert(['Codigo' =>'8004153','Precio'=>'165.42','CodigoDeBarra'=>'7791848054487','Pvp'=>'165.42']);\nDB::table('sales')->insert(['Codigo' =>'8010493','Precio'=>'75.09','CodigoDeBarra'=>'7791848055132','Pvp'=>'75.09']);\nDB::table('sales')->insert(['Codigo' =>'8027506','Precio'=>'5292.51','CodigoDeBarra'=>'7798061752481','Pvp'=>'5292.51']);\nDB::table('sales')->insert(['Codigo' =>'6236682','Precio'=>'518.21','CodigoDeBarra'=>'7795380001565','Pvp'=>'518.21']);\nDB::table('sales')->insert(['Codigo' =>'6236684','Precio'=>'1083.91','CodigoDeBarra'=>'7795380001572','Pvp'=>'1083.91']);\nDB::table('sales')->insert(['Codigo' =>'3990231','Precio'=>'484.51','CodigoDeBarra'=>'7795304866492','Pvp'=>'484.51']);\nDB::table('sales')->insert(['Codigo' =>'8043175','Precio'=>'461.48','CodigoDeBarra'=>'7795312108935','Pvp'=>'461.48']);\nDB::table('sales')->insert(['Codigo' =>'8042808','Precio'=>'1831.32','CodigoDeBarra'=>'8710103853084','Pvp'=>'1831.32']);\nDB::table('sales')->insert(['Codigo' =>'8042815','Precio'=>'2445.10','CodigoDeBarra'=>'8710103853091','Pvp'=>'2445.10']);\nDB::table('sales')->insert(['Codigo' =>'8109557','Precio'=>'3157.22','CodigoDeBarra'=>'8710103904465','Pvp'=>'3157.22']);\nDB::table('sales')->insert(['Codigo' =>'8109556','Precio'=>'2232.93','CodigoDeBarra'=>'8710103900016','Pvp'=>'2232.93']);\nDB::table('sales')->insert(['Codigo' =>'8000817','Precio'=>'204.22','CodigoDeBarra'=>'7798140250425','Pvp'=>'204.22']);\nDB::table('sales')->insert(['Codigo' =>'8021763','Precio'=>'190.28','CodigoDeBarra'=>'7798140251071','Pvp'=>'190.28']);\nDB::table('sales')->insert(['Codigo' =>'9996177','Precio'=>'217.46','CodigoDeBarra'=>'7798140250432','Pvp'=>'217.46']);\nDB::table('sales')->insert(['Codigo' =>'9996179','Precio'=>'240.47','CodigoDeBarra'=>'7798140251781','Pvp'=>'240.47']);\nDB::table('sales')->insert(['Codigo' =>'5510971','Precio'=>'883.16','CodigoDeBarra'=>'7798161990089','Pvp'=>'883.16']);\nDB::table('sales')->insert(['Codigo' =>'5511001','Precio'=>'917.33','CodigoDeBarra'=>'7798161990102','Pvp'=>'917.33']);\nDB::table('sales')->insert(['Codigo' =>'6182551','Precio'=>'281.42','CodigoDeBarra'=>'7798161990249','Pvp'=>'281.42']);\nDB::table('sales')->insert(['Codigo' =>'6182552','Precio'=>'530.62','CodigoDeBarra'=>'7798161990256','Pvp'=>'530.62']);\nDB::table('sales')->insert(['Codigo' =>'6182681','Precio'=>'1130.46','CodigoDeBarra'=>'7798161990263','Pvp'=>'1130.46']);\nDB::table('sales')->insert(['Codigo' =>'6182682','Precio'=>'2034.61','CodigoDeBarra'=>'7798161990270','Pvp'=>'2034.61']);\nDB::table('sales')->insert(['Codigo' =>'4128090','Precio'=>'1412.07','CodigoDeBarra'=>'7795336076012','Pvp'=>'1412.07']);\nDB::table('sales')->insert(['Codigo' =>'8001636','Precio'=>'1163.07','CodigoDeBarra'=>'7795348003082','Pvp'=>'1163.07']);\nDB::table('sales')->insert(['Codigo' =>'8040879','Precio'=>'35913.27','CodigoDeBarra'=>'7791171102169','Pvp'=>'35913.27']);\nDB::table('sales')->insert(['Codigo' =>'8040458','Precio'=>'81927.87','CodigoDeBarra'=>'7791171102145','Pvp'=>'81927.87']);\nDB::table('sales')->insert(['Codigo' =>'8007871','Precio'=>'119.16','CodigoDeBarra'=>'7794207083852','Pvp'=>'119.16']);\nDB::table('sales')->insert(['Codigo' =>'8007870','Precio'=>'73.91','CodigoDeBarra'=>'7794207083913','Pvp'=>'73.91']);\nDB::table('sales')->insert(['Codigo' =>'8000103','Precio'=>'164.48','CodigoDeBarra'=>'7794207000545','Pvp'=>'164.48']);\nDB::table('sales')->insert(['Codigo' =>'9931907','Precio'=>'282.42','CodigoDeBarra'=>'7891024179925','Pvp'=>'282.42']);\nDB::table('sales')->insert(['Codigo' =>'8026005','Precio'=>'95.28','CodigoDeBarra'=>'7891024030813','Pvp'=>'95.28']);\nDB::table('sales')->insert(['Codigo' =>'8034483','Precio'=>'208305.16','CodigoDeBarra'=>'7798144380098','Pvp'=>'208305.16']);\nDB::table('sales')->insert(['Codigo' =>'8034484','Precio'=>'208305.16','CodigoDeBarra'=>'7798144380081','Pvp'=>'208305.16']);\nDB::table('sales')->insert(['Codigo' =>'8028150','Precio'=>'706.85','CodigoDeBarra'=>'7896007547173','Pvp'=>'706.85']);\nDB::table('sales')->insert(['Codigo' =>'8028151','Precio'=>'706.85','CodigoDeBarra'=>'7896007547128','Pvp'=>'706.85']);\nDB::table('sales')->insert(['Codigo' =>'8008339','Precio'=>'105.00','CodigoDeBarra'=>'7794626006388','Pvp'=>'105.00']);\nDB::table('sales')->insert(['Codigo' =>'8012383','Precio'=>'115.62','CodigoDeBarra'=>'7794626006395','Pvp'=>'115.62']);\nDB::table('sales')->insert(['Codigo' =>'8020228','Precio'=>'401.20','CodigoDeBarra'=>'7794626006371','Pvp'=>'401.20']);\nDB::table('sales')->insert(['Codigo' =>'8008342','Precio'=>'216.05','CodigoDeBarra'=>'7794626006364','Pvp'=>'216.05']);\nDB::table('sales')->insert(['Codigo' =>'8026357','Precio'=>'1002.35','CodigoDeBarra'=>'7794626007392','Pvp'=>'1002.35']);\nDB::table('sales')->insert(['Codigo' =>'8026358','Precio'=>'442.20','CodigoDeBarra'=>'7794626007385','Pvp'=>'442.20']);\nDB::table('sales')->insert(['Codigo' =>'8028205','Precio'=>'319.77','CodigoDeBarra'=>'7794626008559','Pvp'=>'319.77']);\nDB::table('sales')->insert(['Codigo' =>'8008341','Precio'=>'171.96','CodigoDeBarra'=>'7794626006333','Pvp'=>'171.96']);\nDB::table('sales')->insert(['Codigo' =>'8016028','Precio'=>'589.96','CodigoDeBarra'=>'7441008155386','Pvp'=>'589.96']);\nDB::table('sales')->insert(['Codigo' =>'8016029','Precio'=>'263.08','CodigoDeBarra'=>'7794626003011','Pvp'=>'263.08']);\nDB::table('sales')->insert(['Codigo' =>'8016429','Precio'=>'1330.61','CodigoDeBarra'=>'7794626006746','Pvp'=>'1330.61']);\nDB::table('sales')->insert(['Codigo' =>'8007415','Precio'=>'706.83','CodigoDeBarra'=>'7793620000118','Pvp'=>'706.83']);\nDB::table('sales')->insert(['Codigo' =>'8016428','Precio'=>'1330.61','CodigoDeBarra'=>'7794626006739','Pvp'=>'1330.61']);\nDB::table('sales')->insert(['Codigo' =>'8007414','Precio'=>'706.83','CodigoDeBarra'=>'7794626006708','Pvp'=>'706.83']);\nDB::table('sales')->insert(['Codigo' =>'8019282','Precio'=>'1330.61','CodigoDeBarra'=>'7794626006753','Pvp'=>'1330.61']);\nDB::table('sales')->insert(['Codigo' =>'8019281','Precio'=>'706.83','CodigoDeBarra'=>'7794626006722','Pvp'=>'706.83']);\nDB::table('sales')->insert(['Codigo' =>'8039628','Precio'=>'1085.19','CodigoDeBarra'=>'7896007550449','Pvp'=>'1085.19']);\nDB::table('sales')->insert(['Codigo' =>'8039608','Precio'=>'571.16','CodigoDeBarra'=>'7896007550050','Pvp'=>'571.16']);\nDB::table('sales')->insert(['Codigo' =>'8039611','Precio'=>'1085.19','CodigoDeBarra'=>'7896007550432','Pvp'=>'1085.19']);\nDB::table('sales')->insert(['Codigo' =>'8039609','Precio'=>'571.16','CodigoDeBarra'=>'7896007550043','Pvp'=>'571.16']);\nDB::table('sales')->insert(['Codigo' =>'8036580','Precio'=>'1386.79','CodigoDeBarra'=>'7896007547210','Pvp'=>'1386.79']);\nDB::table('sales')->insert(['Codigo' =>'8036581','Precio'=>'1386.79','CodigoDeBarra'=>'7896007547203','Pvp'=>'1386.79']);\nDB::table('sales')->insert(['Codigo' =>'5967841','Precio'=>'456.61','CodigoDeBarra'=>'7798006300295','Pvp'=>'456.61']);\nDB::table('sales')->insert(['Codigo' =>'8038868','Precio'=>'1472.63','CodigoDeBarra'=>'7798061752046','Pvp'=>'1472.63']);\nDB::table('sales')->insert(['Codigo' =>'555684','Precio'=>'3728.83','CodigoDeBarra'=>'7798061751292','Pvp'=>'3728.83']);\nDB::table('sales')->insert(['Codigo' =>'4607091','Precio'=>'1014.59','CodigoDeBarra'=>'7798061750127','Pvp'=>'1014.59']);\nDB::table('sales')->insert(['Codigo' =>'4607171','Precio'=>'1306.82','CodigoDeBarra'=>'7798061750134','Pvp'=>'1306.82']);\nDB::table('sales')->insert(['Codigo' =>'8109666','Precio'=>'325.17','CodigoDeBarra'=>'7798137190079','Pvp'=>'325.17']);\nDB::table('sales')->insert(['Codigo' =>'8031845','Precio'=>'171246.16','CodigoDeBarra'=>'7790375003951','Pvp'=>'171246.16']);\nDB::table('sales')->insert(['Codigo' =>'4261731','Precio'=>'355.19','CodigoDeBarra'=>'7798009272988','Pvp'=>'355.19']);\nDB::table('sales')->insert(['Codigo' =>'635642','Precio'=>'206.41','CodigoDeBarra'=>'7794207000941','Pvp'=>'206.41']);\nDB::table('sales')->insert(['Codigo' =>'8042342','Precio'=>'431175.34','CodigoDeBarra'=>'7792183002669','Pvp'=>'431175.34']);\nDB::table('sales')->insert(['Codigo' =>'640355','Precio'=>'651141.45','CodigoDeBarra'=>'7792183002676','Pvp'=>'651141.45']);\nDB::table('sales')->insert(['Codigo' =>'8040594','Precio'=>'1864493.33','CodigoDeBarra'=>'7798035314195','Pvp'=>'1864493.33']);\nDB::table('sales')->insert(['Codigo' =>'8109664','Precio'=>'1753503.61','CodigoDeBarra'=>'7798035314201','Pvp'=>'1753503.61']);\nDB::table('sales')->insert(['Codigo' =>'6301903','Precio'=>'119.35','CodigoDeBarra'=>'7501065633033','Pvp'=>'119.35']);\nDB::table('sales')->insert(['Codigo' =>'6030057','Precio'=>'119.35','CodigoDeBarra'=>'7501056324889','Pvp'=>'119.35']);\nDB::table('sales')->insert(['Codigo' =>'8028832','Precio'=>'166.11','CodigoDeBarra'=>'7501056330309','Pvp'=>'166.11']);\nDB::table('sales')->insert(['Codigo' =>'6310247','Precio'=>'166.11','CodigoDeBarra'=>'7501056330491','Pvp'=>'166.11']);\nDB::table('sales')->insert(['Codigo' =>'8007188','Precio'=>'166.11','CodigoDeBarra'=>'7501056332075','Pvp'=>'166.11']);\nDB::table('sales')->insert(['Codigo' =>'6030618','Precio'=>'119.35','CodigoDeBarra'=>'7501056326142','Pvp'=>'119.35']);\nDB::table('sales')->insert(['Codigo' =>'6205422','Precio'=>'18058.27','CodigoDeBarra'=>'7790375002992','Pvp'=>'18058.27']);\nDB::table('sales')->insert(['Codigo' =>'8036291','Precio'=>'157.38','CodigoDeBarra'=>'7794207000927','Pvp'=>'157.38']);\nDB::table('sales')->insert(['Codigo' =>'8028145','Precio'=>'283.85','CodigoDeBarra'=>'7794207000972','Pvp'=>'283.85']);\nDB::table('sales')->insert(['Codigo' =>'8017246','Precio'=>'152.25','CodigoDeBarra'=>'7794207000583','Pvp'=>'152.25']);\nDB::table('sales')->insert(['Codigo' =>'8040664','Precio'=>'37383.08','CodigoDeBarra'=>'7795312003209','Pvp'=>'37383.08']);\nDB::table('sales')->insert(['Codigo' =>'8035097','Precio'=>'37383.08','CodigoDeBarra'=>'7795312003193','Pvp'=>'37383.08']);\nDB::table('sales')->insert(['Codigo' =>'5798001','Precio'=>'362.21','CodigoDeBarra'=>'7791763001689','Pvp'=>'362.21']);\nDB::table('sales')->insert(['Codigo' =>'5798002','Precio'=>'690.40','CodigoDeBarra'=>'7791763001696','Pvp'=>'690.40']);\nDB::table('sales')->insert(['Codigo' =>'5798261','Precio'=>'1043.31','CodigoDeBarra'=>'7791763001672','Pvp'=>'1043.31']);\nDB::table('sales')->insert(['Codigo' =>'5797842','Precio'=>'261.70','CodigoDeBarra'=>'7791763338037','Pvp'=>'261.70']);\nDB::table('sales')->insert(['Codigo' =>'5797971','Precio'=>'525.71','CodigoDeBarra'=>'7791763338020','Pvp'=>'525.71']);\nDB::table('sales')->insert(['Codigo' =>'8012538','Precio'=>'2935.17','CodigoDeBarra'=>'7795381002028','Pvp'=>'2935.17']);\nDB::table('sales')->insert(['Codigo' =>'5854973','Precio'=>'167.76','CodigoDeBarra'=>'7798021292391','Pvp'=>'167.76']);\nDB::table('sales')->insert(['Codigo' =>'5854843','Precio'=>'184.76','CodigoDeBarra'=>'7798021293091','Pvp'=>'184.76']);\nDB::table('sales')->insert(['Codigo' =>'6474974','Precio'=>'775.22','CodigoDeBarra'=>'7795336294300','Pvp'=>'775.22']);\nDB::table('sales')->insert(['Codigo' =>'9932000','Precio'=>'277.96','CodigoDeBarra'=>'7702018874750','Pvp'=>'277.96']);\nDB::table('sales')->insert(['Codigo' =>'8038441','Precio'=>'13887.32','CodigoDeBarra'=>'7795348421602','Pvp'=>'13887.32']);\nDB::table('sales')->insert(['Codigo' =>'6119681','Precio'=>'65516.64','CodigoDeBarra'=>'7795314023700','Pvp'=>'65516.64']);\nDB::table('sales')->insert(['Codigo' =>'5960711','Precio'=>'44989.96','CodigoDeBarra'=>'7795314023694','Pvp'=>'44989.96']);\nDB::table('sales')->insert(['Codigo' =>'5915841','Precio'=>'67482.08','CodigoDeBarra'=>'7795314023458','Pvp'=>'67482.08']);\nDB::table('sales')->insert(['Codigo' =>'6390971','Precio'=>'123.57','CodigoDeBarra'=>'7798016922036','Pvp'=>'123.57']);\nDB::table('sales')->insert(['Codigo' =>'2894143','Precio'=>'219.19','CodigoDeBarra'=>'7798016922043','Pvp'=>'219.19']);\nDB::table('sales')->insert(['Codigo' =>'6391001','Precio'=>'200.81','CodigoDeBarra'=>'7798016922050','Pvp'=>'200.81']);\nDB::table('sales')->insert(['Codigo' =>'6391002','Precio'=>'371.39','CodigoDeBarra'=>'7798016922067','Pvp'=>'371.39']);\nDB::table('sales')->insert(['Codigo' =>'6391131','Precio'=>'314.58','CodigoDeBarra'=>'7798016922074','Pvp'=>'314.58']);\nDB::table('sales')->insert(['Codigo' =>'6391132','Precio'=>'559.22','CodigoDeBarra'=>'7798016922081','Pvp'=>'559.22']);\nDB::table('sales')->insert(['Codigo' =>'6128973','Precio'=>'205503.81','CodigoDeBarra'=>'7798098720780','Pvp'=>'205503.81']);\nDB::table('sales')->insert(['Codigo' =>'612897','Precio'=>'411007.62','CodigoDeBarra'=>'7798098720797','Pvp'=>'411007.62']);\nDB::table('sales')->insert(['Codigo' =>'8019891','Precio'=>'102752.08','CodigoDeBarra'=>'7798098720773','Pvp'=>'102752.08']);\nDB::table('sales')->insert(['Codigo' =>'8024795','Precio'=>'108.48','CodigoDeBarra'=>'7501006711387','Pvp'=>'108.48']);\nDB::table('sales')->insert(['Codigo' =>'8024793','Precio'=>'56.46','CodigoDeBarra'=>'7501086453931','Pvp'=>'56.46']);\nDB::table('sales')->insert(['Codigo' =>'8015214','Precio'=>'111.64','CodigoDeBarra'=>'7501086454617','Pvp'=>'111.64']);\nDB::table('sales')->insert(['Codigo' =>'8033617','Precio'=>'102.47','CodigoDeBarra'=>'7506295385424','Pvp'=>'102.47']);\nDB::table('sales')->insert(['Codigo' =>'5724681','Precio'=>'1691.38','CodigoDeBarra'=>'7795378004042','Pvp'=>'1691.38']);\nDB::table('sales')->insert(['Codigo' =>'5724711','Precio'=>'1848.37','CodigoDeBarra'=>'7795378004066','Pvp'=>'1848.37']);\nDB::table('sales')->insert(['Codigo' =>'5816971','Precio'=>'1491.96','CodigoDeBarra'=>'7795378004356','Pvp'=>'1491.96']);\nDB::table('sales')->insert(['Codigo' =>'5816841','Precio'=>'1510.79','CodigoDeBarra'=>'7795378004363','Pvp'=>'1510.79']);\nDB::table('sales')->insert(['Codigo' =>'5354681','Precio'=>'165.21','CodigoDeBarra'=>'7795378003342','Pvp'=>'165.21']);\nDB::table('sales')->insert(['Codigo' =>'5354682','Precio'=>'283.74','CodigoDeBarra'=>'7795378002932','Pvp'=>'283.74']);\nDB::table('sales')->insert(['Codigo' =>'637255','Precio'=>'50828.37','CodigoDeBarra'=>'7795348002979','Pvp'=>'50828.37']);\nDB::table('sales')->insert(['Codigo' =>'4381941','Precio'=>'429.48','CodigoDeBarra'=>'7795331006717','Pvp'=>'429.48']);\nDB::table('sales')->insert(['Codigo' =>'227813','Precio'=>'266.73','CodigoDeBarra'=>'7795331000203','Pvp'=>'266.73']);\nDB::table('sales')->insert(['Codigo' =>'227814','Precio'=>'393.77','CodigoDeBarra'=>'7795331000210','Pvp'=>'393.77']);\nDB::table('sales')->insert(['Codigo' =>'6115971','Precio'=>'1762.36','CodigoDeBarra'=>'7795367000376','Pvp'=>'1762.36']);\nDB::table('sales')->insert(['Codigo' =>'4943021','Precio'=>'6341.14','CodigoDeBarra'=>'7792183487268','Pvp'=>'6341.14']);\nDB::table('sales')->insert(['Codigo' =>'4164472','Precio'=>'19527.57','CodigoDeBarra'=>'7792183002928','Pvp'=>'19527.57']);\nDB::table('sales')->insert(['Codigo' =>'4164551','Precio'=>'48826.63','CodigoDeBarra'=>'7792183002935','Pvp'=>'48826.63']);\nDB::table('sales')->insert(['Codigo' =>'4164632','Precio'=>'8137.14','CodigoDeBarra'=>'7792183486728','Pvp'=>'8137.14']);\nDB::table('sales')->insert(['Codigo' =>'5729552','Precio'=>'6658.88','CodigoDeBarra'=>'7792183488807','Pvp'=>'6658.88']);\nDB::table('sales')->insert(['Codigo' =>'572968','Precio'=>'10241.62','CodigoDeBarra'=>'7792183488814','Pvp'=>'10241.62']);\nDB::table('sales')->insert(['Codigo' =>'6252002','Precio'=>'31956.10','CodigoDeBarra'=>'7792183000764','Pvp'=>'31956.10']);\nDB::table('sales')->insert(['Codigo' =>'5729712','Precio'=>'51213.80','CodigoDeBarra'=>'7792183488821','Pvp'=>'51213.80']);\nDB::table('sales')->insert(['Codigo' =>'377657','Precio'=>'108502.50','CodigoDeBarra'=>'7798019610558','Pvp'=>'108502.50']);\nDB::table('sales')->insert(['Codigo' =>'6512001','Precio'=>'506.94','CodigoDeBarra'=>'7791763338068','Pvp'=>'506.94']);\nDB::table('sales')->insert(['Codigo' =>'6512002','Precio'=>'880.19','CodigoDeBarra'=>'7791763338075','Pvp'=>'880.19']);\nDB::table('sales')->insert(['Codigo' =>'628697','Precio'=>'7584.63','CodigoDeBarra'=>'7793569005496','Pvp'=>'7584.63']);\nDB::table('sales')->insert(['Codigo' =>'4856246','Precio'=>'1572.89','CodigoDeBarra'=>'7795348003419','Pvp'=>'1572.89']);\nDB::table('sales')->insert(['Codigo' =>'8008107','Precio'=>'112.40','CodigoDeBarra'=>'7798028522774','Pvp'=>'112.40']);\nDB::table('sales')->insert(['Codigo' =>'8012042','Precio'=>'170.57','CodigoDeBarra'=>'7798028522367','Pvp'=>'170.57']);\nDB::table('sales')->insert(['Codigo' =>'8012041','Precio'=>'170.57','CodigoDeBarra'=>'7798028522781','Pvp'=>'170.57']);\nDB::table('sales')->insert(['Codigo' =>'8043407','Precio'=>'202.92','CodigoDeBarra'=>'7891024039571','Pvp'=>'202.92']);\nDB::table('sales')->insert(['Codigo' =>'6474261','Precio'=>'1058.06','CodigoDeBarra'=>'7795327064882','Pvp'=>'1058.06']);\nDB::table('sales')->insert(['Codigo' =>'4213891','Precio'=>'97.38','CodigoDeBarra'=>'7795356001766','Pvp'=>'97.38']);\nDB::table('sales')->insert(['Codigo' =>'4213892','Precio'=>'179.02','CodigoDeBarra'=>'7795356001773','Pvp'=>'179.02']);\nDB::table('sales')->insert(['Codigo' =>'8016027','Precio'=>'163.01','CodigoDeBarra'=>'7796363002906','Pvp'=>'163.01']);\nDB::table('sales')->insert(['Codigo' =>'8020790','Precio'=>'248.06','CodigoDeBarra'=>'7792369033647','Pvp'=>'248.06']);\nDB::table('sales')->insert(['Codigo' =>'9999043','Precio'=>'298.95','CodigoDeBarra'=>'7792369023907','Pvp'=>'298.95']);\nDB::table('sales')->insert(['Codigo' =>'9995272','Precio'=>'279.87','CodigoDeBarra'=>'7792369002605','Pvp'=>'279.87']);\nDB::table('sales')->insert(['Codigo' =>'9995968','Precio'=>'289.42','CodigoDeBarra'=>'7792369002346','Pvp'=>'289.42']);\nDB::table('sales')->insert(['Codigo' =>'8029104','Precio'=>'311.67','CodigoDeBarra'=>'7792369004449','Pvp'=>'311.67']);\nDB::table('sales')->insert(['Codigo' =>'8109542','Precio'=>'243878.24','CodigoDeBarra'=>'7790375268275','Pvp'=>'243878.24']);\nDB::table('sales')->insert(['Codigo' =>'8109543','Precio'=>'266048.99','CodigoDeBarra'=>'7790375268282','Pvp'=>'266048.99']);\nDB::table('sales')->insert(['Codigo' =>'3768491','Precio'=>'8495.87','CodigoDeBarra'=>'7792371017109','Pvp'=>'8495.87']);\nDB::table('sales')->insert(['Codigo' =>'4977241','Precio'=>'11065.51','CodigoDeBarra'=>'7795318001285','Pvp'=>'11065.51']);\nDB::table('sales')->insert(['Codigo' =>'4796011','Precio'=>'1711.48','CodigoDeBarra'=>'7795318001179','Pvp'=>'1711.48']);\nDB::table('sales')->insert(['Codigo' =>'497311','Precio'=>'22131.08','CodigoDeBarra'=>'7795318001292','Pvp'=>'22131.08']);\nDB::table('sales')->insert(['Codigo' =>'744011','Precio'=>'3461.50','CodigoDeBarra'=>'7798035310982','Pvp'=>'3461.50']);\nDB::table('sales')->insert(['Codigo' =>'556091','Precio'=>'265.08','CodigoDeBarra'=>'7795347000501','Pvp'=>'265.08']);\nDB::table('sales')->insert(['Codigo' =>'8033116','Precio'=>'230.01','CodigoDeBarra'=>'7798140258353','Pvp'=>'230.01']);\nDB::table('sales')->insert(['Codigo' =>'5742711','Precio'=>'2068.89','CodigoDeBarra'=>'7795380001114','Pvp'=>'2068.89']);\nDB::table('sales')->insert(['Codigo' =>'5742841','Precio'=>'2674.06','CodigoDeBarra'=>'7795380001121','Pvp'=>'2674.06']);\nDB::table('sales')->insert(['Codigo' =>'5742682','Precio'=>'1257.29','CodigoDeBarra'=>'7795380001107','Pvp'=>'1257.29']);\nDB::table('sales')->insert(['Codigo' =>'771242','Precio'=>'287.55','CodigoDeBarra'=>'7795327063953','Pvp'=>'287.55']);\nDB::table('sales')->insert(['Codigo' =>'8015633','Precio'=>'1167.44','CodigoDeBarra'=>'7798069050786','Pvp'=>'1167.44']);\nDB::table('sales')->insert(['Codigo' =>'5175262','Precio'=>'199.49','CodigoDeBarra'=>'7792175007474','Pvp'=>'199.49']);\nDB::table('sales')->insert(['Codigo' =>'4422281','Precio'=>'2678.79','CodigoDeBarra'=>'7792219911903','Pvp'=>'2678.79']);\nDB::table('sales')->insert(['Codigo' =>'8007104','Precio'=>'7834.16','CodigoDeBarra'=>'7792219911910','Pvp'=>'7834.16']);\nDB::table('sales')->insert(['Codigo' =>'6108421','Precio'=>'36593.71','CodigoDeBarra'=>'7795381000284','Pvp'=>'36593.71']);\nDB::table('sales')->insert(['Codigo' =>'4928851','Precio'=>'36593.71','CodigoDeBarra'=>'7795381000369','Pvp'=>'36593.71']);\nDB::table('sales')->insert(['Codigo' =>'8007123','Precio'=>'36593.71','CodigoDeBarra'=>'7795381000376','Pvp'=>'36593.71']);\nDB::table('sales')->insert(['Codigo' =>'4717141','Precio'=>'36593.71','CodigoDeBarra'=>'7795381000475','Pvp'=>'36593.71']);\nDB::table('sales')->insert(['Codigo' =>'8042594','Precio'=>'1057.75','CodigoDeBarra'=>'7798113691323','Pvp'=>'1057.75']);\nDB::table('sales')->insert(['Codigo' =>'121122','Precio'=>'86.60','CodigoDeBarra'=>'7792058104016','Pvp'=>'86.60']);\nDB::table('sales')->insert(['Codigo' =>'5791683','Precio'=>'203326.84','CodigoDeBarra'=>'7730949049718','Pvp'=>'203326.84']);\nDB::table('sales')->insert(['Codigo' =>'5791712','Precio'=>'207811.76','CodigoDeBarra'=>'7730949049015','Pvp'=>'207811.76']);\nDB::table('sales')->insert(['Codigo' =>'5791713','Precio'=>'207811.76','CodigoDeBarra'=>'7730949049619','Pvp'=>'207811.76']);\nDB::table('sales')->insert(['Codigo' =>'8030889','Precio'=>'4480.99','CodigoDeBarra'=>'7793569005489','Pvp'=>'4480.99']);\nDB::table('sales')->insert(['Codigo' =>'5092643','Precio'=>'55.68','CodigoDeBarra'=>'7795371458613','Pvp'=>'55.68']);\nDB::table('sales')->insert(['Codigo' =>'5092644','Precio'=>'153.75','CodigoDeBarra'=>'7795371458620','Pvp'=>'153.75']);\nDB::table('sales')->insert(['Codigo' =>'5092711','Precio'=>'111.34','CodigoDeBarra'=>'7795371458637','Pvp'=>'111.34']);\nDB::table('sales')->insert(['Codigo' =>'5092712','Precio'=>'291.59','CodigoDeBarra'=>'7795371458644','Pvp'=>'291.59']);\nDB::table('sales')->insert(['Codigo' =>'8008964','Precio'=>'1052.92','CodigoDeBarra'=>'7798021111531','Pvp'=>'1052.92']);\nDB::table('sales')->insert(['Codigo' =>'8020337','Precio'=>'682.44','CodigoDeBarra'=>'7798021110626','Pvp'=>'682.44']);\nDB::table('sales')->insert(['Codigo' =>'8020336','Precio'=>'741.02','CodigoDeBarra'=>'7798021110619','Pvp'=>'741.02']);\nDB::table('sales')->insert(['Codigo' =>'8020338','Precio'=>'758.25','CodigoDeBarra'=>'7798021110633','Pvp'=>'758.25']);\nDB::table('sales')->insert(['Codigo' =>'8008965','Precio'=>'810.74','CodigoDeBarra'=>'7798021111555','Pvp'=>'810.74']);\nDB::table('sales')->insert(['Codigo' =>'8008966','Precio'=>'726.09','CodigoDeBarra'=>'7798021111548','Pvp'=>'726.09']);\nDB::table('sales')->insert(['Codigo' =>'8008967','Precio'=>'533.48','CodigoDeBarra'=>'7798021111562','Pvp'=>'533.48']);\nDB::table('sales')->insert(['Codigo' =>'4562291','Precio'=>'513.31','CodigoDeBarra'=>'7798069050076','Pvp'=>'513.31']);\nDB::table('sales')->insert(['Codigo' =>'6559841','Precio'=>'598.06','CodigoDeBarra'=>'7795316915720','Pvp'=>'598.06']);\nDB::table('sales')->insert(['Codigo' =>'4412622','Precio'=>'379.44','CodigoDeBarra'=>'7795316915195','Pvp'=>'379.44']);\nDB::table('sales')->insert(['Codigo' =>'2492281','Precio'=>'191.73','CodigoDeBarra'=>'7795378001263','Pvp'=>'191.73']);\nDB::table('sales')->insert(['Codigo' =>'2492362','Precio'=>'186.18','CodigoDeBarra'=>'7795378000716','Pvp'=>'186.18']);\nDB::table('sales')->insert(['Codigo' =>'4679872','Precio'=>'191.73','CodigoDeBarra'=>'7795378002734','Pvp'=>'191.73']);\nDB::table('sales')->insert(['Codigo' =>'4469491','Precio'=>'200.41','CodigoDeBarra'=>'7795378001881','Pvp'=>'200.41']);\nDB::table('sales')->insert(['Codigo' =>'4469572','Precio'=>'186.87','CodigoDeBarra'=>'7795378000815','Pvp'=>'186.87']);\nDB::table('sales')->insert(['Codigo' =>'4014802','Precio'=>'138.88','CodigoDeBarra'=>'7795347000822','Pvp'=>'138.88']);\nDB::table('sales')->insert(['Codigo' =>'4336231','Precio'=>'198.70','CodigoDeBarra'=>'7791171002315','Pvp'=>'198.70']);\nDB::table('sales')->insert(['Codigo' =>'2323981','Precio'=>'165.78','CodigoDeBarra'=>'7791171000427','Pvp'=>'165.78']);\nDB::table('sales')->insert(['Codigo' =>'8031221','Precio'=>'2180.87','CodigoDeBarra'=>'7791171101766','Pvp'=>'2180.87']);\nDB::table('sales')->insert(['Codigo' =>'2323982','Precio'=>'297.34','CodigoDeBarra'=>'7791171101476','Pvp'=>'297.34']);\nDB::table('sales')->insert(['Codigo' =>'2323983','Precio'=>'323.52','CodigoDeBarra'=>'7791171102084','Pvp'=>'323.52']);\nDB::table('sales')->insert(['Codigo' =>'8040925','Precio'=>'163.58','CodigoDeBarra'=>'7798008294448','Pvp'=>'163.58']);\nDB::table('sales')->insert(['Codigo' =>'8040926','Precio'=>'250.80','CodigoDeBarra'=>'7798008295506','Pvp'=>'250.80']);\nDB::table('sales')->insert(['Codigo' =>'623500','Precio'=>'7986.45','CodigoDeBarra'=>'7798035310869','Pvp'=>'7986.45']);\nDB::table('sales')->insert(['Codigo' =>'623513','Precio'=>'9327.07','CodigoDeBarra'=>'7798035310876','Pvp'=>'9327.07']);\nDB::table('sales')->insert(['Codigo' =>'6246551','Precio'=>'10667.56','CodigoDeBarra'=>'7795367001328','Pvp'=>'10667.56']);\nDB::table('sales')->insert(['Codigo' =>'6246681','Precio'=>'10652.17','CodigoDeBarra'=>'7795367001342','Pvp'=>'10652.17']);\nDB::table('sales')->insert(['Codigo' =>'6246841','Precio'=>'10667.56','CodigoDeBarra'=>'7795367001397','Pvp'=>'10667.56']);\nDB::table('sales')->insert(['Codigo' =>'4594891','Precio'=>'54373.78','CodigoDeBarra'=>'7795314025445','Pvp'=>'54373.78']);\nDB::table('sales')->insert(['Codigo' =>'616600','Precio'=>'4434.55','CodigoDeBarra'=>'7793569004550','Pvp'=>'4434.55']);\nDB::table('sales')->insert(['Codigo' =>'633800','Precio'=>'17918.72','CodigoDeBarra'=>'7796285277314','Pvp'=>'17918.72']);\nDB::table('sales')->insert(['Codigo' =>'5686395','Precio'=>'718.68','CodigoDeBarra'=>'7795378005650','Pvp'=>'718.68']);\nDB::table('sales')->insert(['Codigo' =>'6453715','Precio'=>'1303.43','CodigoDeBarra'=>'7795378005667','Pvp'=>'1303.43']);\nDB::table('sales')->insert(['Codigo' =>'8033737','Precio'=>'49618.47','CodigoDeBarra'=>'7795376003498','Pvp'=>'49618.47']);\nDB::table('sales')->insert(['Codigo' =>'5813681','Precio'=>'18521.79','CodigoDeBarra'=>'7798122020183','Pvp'=>'18521.79']);\nDB::table('sales')->insert(['Codigo' =>'6148681','Precio'=>'30560.91','CodigoDeBarra'=>'7795312001939','Pvp'=>'30560.91']);\nDB::table('sales')->insert(['Codigo' =>'4066121','Precio'=>'46633.74','CodigoDeBarra'=>'7795314183404','Pvp'=>'46633.74']);\nDB::table('sales')->insert(['Codigo' =>'8020431','Precio'=>'135.31','CodigoDeBarra'=>'7795347000969','Pvp'=>'135.31']);\nDB::table('sales')->insert(['Codigo' =>'6281421','Precio'=>'10485.99','CodigoDeBarra'=>'7795367003544','Pvp'=>'10485.99']);\nDB::table('sales')->insert(['Codigo' =>'8017383','Precio'=>'421.48','CodigoDeBarra'=>'7791763002297','Pvp'=>'421.48']);\nDB::table('sales')->insert(['Codigo' =>'6206681','Precio'=>'131313.85','CodigoDeBarra'=>'7792183000955','Pvp'=>'131313.85']);\nDB::table('sales')->insert(['Codigo' =>'5724971','Precio'=>'521639.23','CodigoDeBarra'=>'7798084685055','Pvp'=>'521639.23']);\nDB::table('sales')->insert(['Codigo' =>'5725001','Precio'=>'529807.60','CodigoDeBarra'=>'7798084685062','Pvp'=>'529807.60']);\nDB::table('sales')->insert(['Codigo' =>'5725131','Precio'=>'550725.71','CodigoDeBarra'=>'7798084685079','Pvp'=>'550725.71']);\nDB::table('sales')->insert(['Codigo' =>'8028898','Precio'=>'497613.56','CodigoDeBarra'=>'7798084685048','Pvp'=>'497613.56']);\nDB::table('sales')->insert(['Codigo' =>'6051551','Precio'=>'74087.46','CodigoDeBarra'=>'7794640820021','Pvp'=>'74087.46']);\nDB::table('sales')->insert(['Codigo' =>'8038574','Precio'=>'148174.88','CodigoDeBarra'=>'7795306486735','Pvp'=>'148174.88']);\nDB::table('sales')->insert(['Codigo' =>'8028331','Precio'=>'13560.64','CodigoDeBarra'=>'7795348003013','Pvp'=>'13560.64']);\nDB::table('sales')->insert(['Codigo' =>'8039810','Precio'=>'94.72','CodigoDeBarra'=>'7791293038223','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'8014876','Precio'=>'94.72','CodigoDeBarra'=>'7791293022581','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'8039813','Precio'=>'88.09','CodigoDeBarra'=>'7791293038216','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8037269','Precio'=>'94.72','CodigoDeBarra'=>'7791293037790','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'6030214','Precio'=>'94.72','CodigoDeBarra'=>'7791293990644','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'8008483','Precio'=>'94.72','CodigoDeBarra'=>'7791293022635','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'6300998','Precio'=>'94.72','CodigoDeBarra'=>'7791293990613','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'8003947','Precio'=>'94.72','CodigoDeBarra'=>'7791293022567','Pvp'=>'94.72']);\nDB::table('sales')->insert(['Codigo' =>'8027033','Precio'=>'88.09','CodigoDeBarra'=>'7791293032443','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8032484','Precio'=>'88.09','CodigoDeBarra'=>'7791293036069','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8027036','Precio'=>'88.09','CodigoDeBarra'=>'7791293032467','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8042278','Precio'=>'88.09','CodigoDeBarra'=>'7791293036045','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8027037','Precio'=>'88.09','CodigoDeBarra'=>'7791293032481','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'8027035','Precio'=>'88.09','CodigoDeBarra'=>'7791293032405','Pvp'=>'88.09']);\nDB::table('sales')->insert(['Codigo' =>'5177351','Precio'=>'21795.26','CodigoDeBarra'=>'7795305963367','Pvp'=>'21795.26']);\nDB::table('sales')->insert(['Codigo' =>'5696421','Precio'=>'21795.26','CodigoDeBarra'=>'3000033622634','Pvp'=>'21795.26']);\nDB::table('sales')->insert(['Codigo' =>'6175681','Precio'=>'64047.69','CodigoDeBarra'=>'7795314025483','Pvp'=>'64047.69']);\nDB::table('sales')->insert(['Codigo' =>'6175551','Precio'=>'16011.96','CodigoDeBarra'=>'7795314025476','Pvp'=>'16011.96']);\nDB::table('sales')->insert(['Codigo' =>'3894543','Precio'=>'1103.50','CodigoDeBarra'=>'7795327061270','Pvp'=>'1103.50']);\nDB::table('sales')->insert(['Codigo' =>'3894541','Precio'=>'3541.25','CodigoDeBarra'=>'7795327061263','Pvp'=>'3541.25']);\nDB::table('sales')->insert(['Codigo' =>'6246392','Precio'=>'688.52','CodigoDeBarra'=>'7795327063892','Pvp'=>'688.52']);\nDB::table('sales')->insert(['Codigo' =>'6246393','Precio'=>'1755.79','CodigoDeBarra'=>'7795327063908','Pvp'=>'1755.79']);\nDB::table('sales')->insert(['Codigo' =>'6246391','Precio'=>'2984.84','CodigoDeBarra'=>'7795327063854','Pvp'=>'2984.84']);\nDB::table('sales')->insert(['Codigo' =>'5736003','Precio'=>'516.96','CodigoDeBarra'=>'7795327063878','Pvp'=>'516.96']);\nDB::table('sales')->insert(['Codigo' =>'5736004','Precio'=>'982.16','CodigoDeBarra'=>'7795327063885','Pvp'=>'982.16']);\nDB::table('sales')->insert(['Codigo' =>'3235931','Precio'=>'279.42','CodigoDeBarra'=>'7795336251563','Pvp'=>'279.42']);\nDB::table('sales')->insert(['Codigo' =>'8001785','Precio'=>'472.54','CodigoDeBarra'=>'7795336053365','Pvp'=>'472.54']);\nDB::table('sales')->insert(['Codigo' =>'8007125','Precio'=>'11521.00','CodigoDeBarra'=>'7791992885036','Pvp'=>'11521.00']);\nDB::table('sales')->insert(['Codigo' =>'4145161','Precio'=>'29190.76','CodigoDeBarra'=>'7795312001465','Pvp'=>'29190.76']);\nDB::table('sales')->insert(['Codigo' =>'8042455','Precio'=>'49083.13','CodigoDeBarra'=>'8054083018706','Pvp'=>'49083.13']);\nDB::table('sales')->insert(['Codigo' =>'4995101','Precio'=>'205.93','CodigoDeBarra'=>'7792371009289','Pvp'=>'205.93']);\nDB::table('sales')->insert(['Codigo' =>'2290563','Precio'=>'297.17','CodigoDeBarra'=>'7792371086228','Pvp'=>'297.17']);\nDB::table('sales')->insert(['Codigo' =>'2290562','Precio'=>'376.51','CodigoDeBarra'=>'7792371086259','Pvp'=>'376.51']);\nDB::table('sales')->insert(['Codigo' =>'2290564','Precio'=>'431.41','CodigoDeBarra'=>'7792371086266','Pvp'=>'431.41']);\nDB::table('sales')->insert(['Codigo' =>'2238261','Precio'=>'312.55','CodigoDeBarra'=>'7792371086211','Pvp'=>'312.55']);\nDB::table('sales')->insert(['Codigo' =>'2238263','Precio'=>'401.60','CodigoDeBarra'=>'7792371086235','Pvp'=>'401.60']);\nDB::table('sales')->insert(['Codigo' =>'2238264','Precio'=>'432.84','CodigoDeBarra'=>'7792371086204','Pvp'=>'432.84']);\nDB::table('sales')->insert(['Codigo' =>'8031633','Precio'=>'10229.88','CodigoDeBarra'=>'7798180920470','Pvp'=>'10229.88']);\nDB::table('sales')->insert(['Codigo' =>'8031634','Precio'=>'11559.30','CodigoDeBarra'=>'7798180920487','Pvp'=>'11559.30']);\nDB::table('sales')->insert(['Codigo' =>'6220476','Precio'=>'167.97','CodigoDeBarra'=>'7798028520114','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'6220475','Precio'=>'167.97','CodigoDeBarra'=>'7798028520190','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'6220474','Precio'=>'167.97','CodigoDeBarra'=>'7798028520206','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'6220473','Precio'=>'167.97','CodigoDeBarra'=>'7798028520251','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'6220472','Precio'=>'167.97','CodigoDeBarra'=>'7798028520268','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'6220471','Precio'=>'167.97','CodigoDeBarra'=>'7798028520275','Pvp'=>'167.97']);\nDB::table('sales')->insert(['Codigo' =>'5188311','Precio'=>'1361.52','CodigoDeBarra'=>'7798006870309','Pvp'=>'1361.52']);\nDB::table('sales')->insert(['Codigo' =>'6496001','Precio'=>'515.96','CodigoDeBarra'=>'7798006302312','Pvp'=>'515.96']);\nDB::table('sales')->insert(['Codigo' =>'6196131','Precio'=>'921.11','CodigoDeBarra'=>'7798006302329','Pvp'=>'921.11']);\nDB::table('sales')->insert(['Codigo' =>'5781551','Precio'=>'497.36','CodigoDeBarra'=>'7795302304040','Pvp'=>'497.36']);\nDB::table('sales')->insert(['Codigo' =>'5781681','Precio'=>'590.11','CodigoDeBarra'=>'7795302303128','Pvp'=>'590.11']);\nDB::table('sales')->insert(['Codigo' =>'5781682','Precio'=>'1134.35','CodigoDeBarra'=>'7795302000331','Pvp'=>'1134.35']);\nDB::table('sales')->insert(['Codigo' =>'5781711','Precio'=>'1032.15','CodigoDeBarra'=>'7795302303159','Pvp'=>'1032.15']);\nDB::table('sales')->insert(['Codigo' =>'5493553','Precio'=>'1693.34','CodigoDeBarra'=>'7795336291910','Pvp'=>'1693.34']);\nDB::table('sales')->insert(['Codigo' =>'5493423','Precio'=>'526.87','CodigoDeBarra'=>'7795336291859','Pvp'=>'526.87']);\nDB::table('sales')->insert(['Codigo' =>'8015208','Precio'=>'947.97','CodigoDeBarra'=>'7795336291880','Pvp'=>'947.97']);\nDB::table('sales')->insert(['Codigo' =>'5493394','Precio'=>'531.78','CodigoDeBarra'=>'7795336294362','Pvp'=>'531.78']);\nDB::table('sales')->insert(['Codigo' =>'5493424','Precio'=>'1011.19','CodigoDeBarra'=>'7795336294379','Pvp'=>'1011.19']);\nDB::table('sales')->insert(['Codigo' =>'631642','Precio'=>'7999.03','CodigoDeBarra'=>'7798035311071','Pvp'=>'7999.03']);\nDB::table('sales')->insert(['Codigo' =>'8031842','Precio'=>'12583.63','CodigoDeBarra'=>'7798021443595','Pvp'=>'12583.63']);\nDB::table('sales')->insert(['Codigo' =>'8031843','Precio'=>'25167.87','CodigoDeBarra'=>'7798021443601','Pvp'=>'25167.87']);\nDB::table('sales')->insert(['Codigo' =>'8031844','Precio'=>'50335.38','CodigoDeBarra'=>'7798021443618','Pvp'=>'50335.38']);\nDB::table('sales')->insert(['Codigo' =>'8006852','Precio'=>'344.57','CodigoDeBarra'=>'7795348001217','Pvp'=>'344.57']);\nDB::table('sales')->insert(['Codigo' =>'8007081','Precio'=>'912.72','CodigoDeBarra'=>'7795348002900','Pvp'=>'912.72']);\nDB::table('sales')->insert(['Codigo' =>'2824842','Precio'=>'922.43','CodigoDeBarra'=>'7798067995300','Pvp'=>'922.43']);\nDB::table('sales')->insert(['Codigo' =>'6082710','Precio'=>'890.21','CodigoDeBarra'=>'7793397052037','Pvp'=>'890.21']);\nDB::table('sales')->insert(['Codigo' =>'6082680','Precio'=>'469.89','CodigoDeBarra'=>'7793397052020','Pvp'=>'469.89']);\nDB::table('sales')->insert(['Codigo' =>'6082970','Precio'=>'2657.75','CodigoDeBarra'=>'7793397052044','Pvp'=>'2657.75']);\nDB::table('sales')->insert(['Codigo' =>'8032356','Precio'=>'776808.87','CodigoDeBarra'=>'300780698023','Pvp'=>'776808.87']);\nDB::table('sales')->insert(['Codigo' =>'8040165','Precio'=>'388404.42','CodigoDeBarra'=>'7795306512212','Pvp'=>'388404.42']);\nDB::table('sales')->insert(['Codigo' =>'6053681','Precio'=>'1605.41','CodigoDeBarra'=>'7798299850149','Pvp'=>'1605.41']);\nDB::table('sales')->insert(['Codigo' =>'6145681','Precio'=>'41907.33','CodigoDeBarra'=>'7730949043211','Pvp'=>'41907.33']);\nDB::table('sales')->insert(['Codigo' =>'6145551','Precio'=>'20953.70','CodigoDeBarra'=>'7730949043112','Pvp'=>'20953.70']);\nDB::table('sales')->insert(['Codigo' =>'8015176','Precio'=>'318.10','CodigoDeBarra'=>'7795356000288','Pvp'=>'318.10']);\nDB::table('sales')->insert(['Codigo' =>'6228553','Precio'=>'1035.12','CodigoDeBarra'=>'7791763001054','Pvp'=>'1035.12']);\nDB::table('sales')->insert(['Codigo' =>'6228554','Precio'=>'1266.31','CodigoDeBarra'=>'7791763001061','Pvp'=>'1266.31']);\nDB::table('sales')->insert(['Codigo' =>'6228552','Precio'=>'590.97','CodigoDeBarra'=>'7791763001047','Pvp'=>'590.97']);\nDB::table('sales')->insert(['Codigo' =>'8034752','Precio'=>'1020.96','CodigoDeBarra'=>'7798061752336','Pvp'=>'1020.96']);\nDB::table('sales')->insert(['Codigo' =>'607371','Precio'=>'3877.75','CodigoDeBarra'=>'7798061752053','Pvp'=>'3877.75']);\nDB::table('sales')->insert(['Codigo' =>'574197','Precio'=>'352.73','CodigoDeBarra'=>'7798021111524','Pvp'=>'352.73']);\nDB::table('sales')->insert(['Codigo' =>'8023024','Precio'=>'89.36','CodigoDeBarra'=>'7798176000872','Pvp'=>'89.36']);\nDB::table('sales')->insert(['Codigo' =>'9999238','Precio'=>'552.90','CodigoDeBarra'=>'7798176000407','Pvp'=>'552.90']);\nDB::table('sales')->insert(['Codigo' =>'8023023','Precio'=>'85.87','CodigoDeBarra'=>'7798176000889','Pvp'=>'85.87']);\nDB::table('sales')->insert(['Codigo' =>'9998737','Precio'=>'527.60','CodigoDeBarra'=>'7790080043914','Pvp'=>'527.60']);\nDB::table('sales')->insert(['Codigo' =>'8016852','Precio'=>'695.70','CodigoDeBarra'=>'7798176000018','Pvp'=>'695.70']);\nDB::table('sales')->insert(['Codigo' =>'8024337','Precio'=>'120.35','CodigoDeBarra'=>'7798176000612','Pvp'=>'120.35']);\nDB::table('sales')->insert(['Codigo' =>'8016853','Precio'=>'695.70','CodigoDeBarra'=>'7798176000025','Pvp'=>'695.70']);\nDB::table('sales')->insert(['Codigo' =>'8024338','Precio'=>'116.29','CodigoDeBarra'=>'7798176000629','Pvp'=>'116.29']);\nDB::table('sales')->insert(['Codigo' =>'2952131','Precio'=>'7150.22','CodigoDeBarra'=>'7795383000350','Pvp'=>'7150.22']);\nDB::table('sales')->insert(['Codigo' =>'3117041','Precio'=>'12269.23','CodigoDeBarra'=>'7795383000374','Pvp'=>'12269.23']);\nDB::table('sales')->insert(['Codigo' =>'4419651','Precio'=>'2088.22','CodigoDeBarra'=>'7795306292466','Pvp'=>'2088.22']);\nDB::table('sales')->insert(['Codigo' =>'3116971','Precio'=>'3977.51','CodigoDeBarra'=>'7795383000367','Pvp'=>'3977.51']);\nDB::table('sales')->insert(['Codigo' =>'3443912','Precio'=>'6769.88','CodigoDeBarra'=>'7795383000534','Pvp'=>'6769.88']);\nDB::table('sales')->insert(['Codigo' =>'2952051','Precio'=>'13514.08','CodigoDeBarra'=>'7795383000381','Pvp'=>'13514.08']);\nDB::table('sales')->insert(['Codigo' =>'3185861','Precio'=>'2356.49','CodigoDeBarra'=>'7795383000435','Pvp'=>'2356.49']);\nDB::table('sales')->insert(['Codigo' =>'3185941','Precio'=>'4406.16','CodigoDeBarra'=>'7795383000589','Pvp'=>'4406.16']);\nDB::table('sales')->insert(['Codigo' =>'4463872','Precio'=>'73755.55','CodigoDeBarra'=>'7795306011203','Pvp'=>'73755.55']);\nDB::table('sales')->insert(['Codigo' =>'4463952','Precio'=>'110633.47','CodigoDeBarra'=>'7795306011210','Pvp'=>'110633.47']);\nDB::table('sales')->insert(['Codigo' =>'4945261','Precio'=>'1001.16','CodigoDeBarra'=>'7798091910034','Pvp'=>'1001.16']);\nDB::table('sales')->insert(['Codigo' =>'4622841','Precio'=>'1035.06','CodigoDeBarra'=>'7791763000651','Pvp'=>'1035.06']);\nDB::table('sales')->insert(['Codigo' =>'4770272','Precio'=>'516.85','CodigoDeBarra'=>'7795354820192','Pvp'=>'516.85']);\nDB::table('sales')->insert(['Codigo' =>'8029526','Precio'=>'81.34','CodigoDeBarra'=>'7791293034904','Pvp'=>'81.34']);\nDB::table('sales')->insert(['Codigo' =>'8032457','Precio'=>'83.72','CodigoDeBarra'=>'7791293036328','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8038789','Precio'=>'83.72','CodigoDeBarra'=>'7791293038308','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025417','Precio'=>'83.72','CodigoDeBarra'=>'7791293030661','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025418','Precio'=>'83.72','CodigoDeBarra'=>'7791293030654','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8036312','Precio'=>'83.72','CodigoDeBarra'=>'7791293037288','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025415','Precio'=>'83.72','CodigoDeBarra'=>'7791293030708','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025424','Precio'=>'83.72','CodigoDeBarra'=>'7791293030722','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025416','Precio'=>'83.72','CodigoDeBarra'=>'7791293030753','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025421','Precio'=>'83.72','CodigoDeBarra'=>'7791293030746','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8029523','Precio'=>'81.34','CodigoDeBarra'=>'7791293034935','Pvp'=>'81.34']);\nDB::table('sales')->insert(['Codigo' =>'8032284','Precio'=>'83.72','CodigoDeBarra'=>'7791293036304','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8038790','Precio'=>'83.72','CodigoDeBarra'=>'7791293038278','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025395','Precio'=>'83.72','CodigoDeBarra'=>'7791293030555','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025396','Precio'=>'83.72','CodigoDeBarra'=>'7791293030586','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8036315','Precio'=>'83.72','CodigoDeBarra'=>'7791293037257','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025382','Precio'=>'83.72','CodigoDeBarra'=>'7791293030609','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025402','Precio'=>'83.72','CodigoDeBarra'=>'7791293030623','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025399','Precio'=>'83.72','CodigoDeBarra'=>'7791293030630','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'8025394','Precio'=>'83.72','CodigoDeBarra'=>'7791293030647','Pvp'=>'83.72']);\nDB::table('sales')->insert(['Codigo' =>'5374681','Precio'=>'144.76','CodigoDeBarra'=>'7798084684324','Pvp'=>'144.76']);\nDB::table('sales')->insert(['Codigo' =>'6054841','Precio'=>'3063.85','CodigoDeBarra'=>'7795348000258','Pvp'=>'3063.85']);\nDB::table('sales')->insert(['Codigo' =>'8001541','Precio'=>'314.37','CodigoDeBarra'=>'7792175008488','Pvp'=>'314.37']);\nDB::table('sales')->insert(['Codigo' =>'8001551','Precio'=>'434.77','CodigoDeBarra'=>'7792175008495','Pvp'=>'434.77']);\nDB::table('sales')->insert(['Codigo' =>'8001540','Precio'=>'211.81','CodigoDeBarra'=>'7792175008471','Pvp'=>'211.81']);\nDB::table('sales')->insert(['Codigo' =>'8027663','Precio'=>'339.85','CodigoDeBarra'=>'7798069050250','Pvp'=>'339.85']);\nDB::table('sales')->insert(['Codigo' =>'5512844','Precio'=>'766.97','CodigoDeBarra'=>'7795356001933','Pvp'=>'766.97']);\nDB::table('sales')->insert(['Codigo' =>'5512843','Precio'=>'491.43','CodigoDeBarra'=>'7795356999438','Pvp'=>'491.43']);\nDB::table('sales')->insert(['Codigo' =>'5658002','Precio'=>'565.62','CodigoDeBarra'=>'7795356999629','Pvp'=>'565.62']);\nDB::table('sales')->insert(['Codigo' =>'6020421','Precio'=>'382.63','CodigoDeBarra'=>'7798006300349','Pvp'=>'382.63']);\nDB::table('sales')->insert(['Codigo' =>'635913','Precio'=>'127.58','CodigoDeBarra'=>'7798006300684','Pvp'=>'127.58']);\nDB::table('sales')->insert(['Codigo' =>'9998882','Precio'=>'983.24','CodigoDeBarra'=>'7795345012995','Pvp'=>'983.24']);\nDB::table('sales')->insert(['Codigo' =>'8013433','Precio'=>'2748.54','CodigoDeBarra'=>'7795345000374','Pvp'=>'2748.54']);\nDB::table('sales')->insert(['Codigo' =>'8031581','Precio'=>'1239.70','CodigoDeBarra'=>'7795345121529','Pvp'=>'1239.70']);\nDB::table('sales')->insert(['Codigo' =>'6316261','Precio'=>'869.28','CodigoDeBarra'=>'7795378005353','Pvp'=>'869.28']);\nDB::table('sales')->insert(['Codigo' =>'6316131','Precio'=>'738.35','CodigoDeBarra'=>'7795378005346','Pvp'=>'738.35']);\nDB::table('sales')->insert(['Codigo' =>'8043323','Precio'=>'6248.63','CodigoDeBarra'=>'7798091910447','Pvp'=>'6248.63']);\nDB::table('sales')->insert(['Codigo' =>'3815671','Precio'=>'8417.68','CodigoDeBarra'=>'8054083015156','Pvp'=>'8417.68']);\nDB::table('sales')->insert(['Codigo' =>'8006797','Precio'=>'1931.28','CodigoDeBarra'=>'7793397050453','Pvp'=>'1931.28']);\nDB::table('sales')->insert(['Codigo' =>'9999673','Precio'=>'51.50','CodigoDeBarra'=>'7790010669061','Pvp'=>'51.50']);\nDB::table('sales')->insert(['Codigo' =>'8020603','Precio'=>'131.10','CodigoDeBarra'=>'7790010596602','Pvp'=>'131.10']);\nDB::table('sales')->insert(['Codigo' =>'8020601','Precio'=>'68.43','CodigoDeBarra'=>'7790010595698','Pvp'=>'68.43']);\nDB::table('sales')->insert(['Codigo' =>'8020602','Precio'=>'68.43','CodigoDeBarra'=>'7790010596619','Pvp'=>'68.43']);\nDB::table('sales')->insert(['Codigo' =>'6032604','Precio'=>'80.55','CodigoDeBarra'=>'7891010599294','Pvp'=>'80.55']);\nDB::table('sales')->insert(['Codigo' =>'626600','Precio'=>'237134.42','CodigoDeBarra'=>'7795306011227','Pvp'=>'237134.42']);\nDB::table('sales')->insert(['Codigo' =>'6266113','Precio'=>'265541.17','CodigoDeBarra'=>'7795306011234','Pvp'=>'265541.17']);\nDB::table('sales')->insert(['Codigo' =>'626626','Precio'=>'305361.71','CodigoDeBarra'=>'7795306011241','Pvp'=>'305361.71']);\nDB::table('sales')->insert(['Codigo' =>'8037302','Precio'=>'156858.75','CodigoDeBarra'=>'7795306394641','Pvp'=>'156858.75']);\nDB::table('sales')->insert(['Codigo' =>'8037353','Precio'=>'188230.49','CodigoDeBarra'=>'7795306394658','Pvp'=>'188230.49']);\nDB::table('sales')->insert(['Codigo' =>'8039678','Precio'=>'84549.61','CodigoDeBarra'=>'7798021440266','Pvp'=>'84549.61']);\nDB::table('sales')->insert(['Codigo' =>'8032859','Precio'=>'7250.41','CodigoDeBarra'=>'7796285279905','Pvp'=>'7250.41']);\nDB::table('sales')->insert(['Codigo' =>'6019262','Precio'=>'104559.55','CodigoDeBarra'=>'7795314025452','Pvp'=>'104559.55']);\nDB::table('sales')->insert(['Codigo' =>'6019261','Precio'=>'104559.55','CodigoDeBarra'=>'7795314025506','Pvp'=>'104559.55']);\nDB::table('sales')->insert(['Codigo' =>'6019391','Precio'=>'176604.86','CodigoDeBarra'=>'7795314025605','Pvp'=>'176604.86']);\nDB::table('sales')->insert(['Codigo' =>'6449971','Precio'=>'69706.32','CodigoDeBarra'=>'7795314025704','Pvp'=>'69706.32']);\nDB::table('sales')->insert(['Codigo' =>'4442081','Precio'=>'90152.59','CodigoDeBarra'=>'7795306290271','Pvp'=>'90152.59']);\nDB::table('sales')->insert(['Codigo' =>'3519402','Precio'=>'290.02','CodigoDeBarra'=>'7792175001809','Pvp'=>'290.02']);\nDB::table('sales')->insert(['Codigo' =>'3519581','Precio'=>'276.42','CodigoDeBarra'=>'7792175000789','Pvp'=>'276.42']);\nDB::table('sales')->insert(['Codigo' =>'3519582','Precio'=>'447.74','CodigoDeBarra'=>'7792175001816','Pvp'=>'447.74']);\nDB::table('sales')->insert(['Codigo' =>'4665332','Precio'=>'257.39','CodigoDeBarra'=>'7792175005128','Pvp'=>'257.39']);\nDB::table('sales')->insert(['Codigo' =>'4665333','Precio'=>'494.94','CodigoDeBarra'=>'7792175005135','Pvp'=>'494.94']);\nDB::table('sales')->insert(['Codigo' =>'8016533','Precio'=>'2428.72','CodigoDeBarra'=>'7798161930085','Pvp'=>'2428.72']);\nDB::table('sales')->insert(['Codigo' =>'3290123','Precio'=>'239.37','CodigoDeBarra'=>'7795331000104','Pvp'=>'239.37']);\nDB::table('sales')->insert(['Codigo' =>'3680022','Precio'=>'241.10','CodigoDeBarra'=>'7795331000197','Pvp'=>'241.10']);\nDB::table('sales')->insert(['Codigo' =>'5799970','Precio'=>'10446.42','CodigoDeBarra'=>'7798021443564','Pvp'=>'10446.42']);\nDB::table('sales')->insert(['Codigo' =>'5172831','Precio'=>'218.07','CodigoDeBarra'=>'7796363001831','Pvp'=>'218.07']);\nDB::table('sales')->insert(['Codigo' =>'5172832','Precio'=>'258.76','CodigoDeBarra'=>'7796363001848','Pvp'=>'258.76']);\nDB::table('sales')->insert(['Codigo' =>'8008134','Precio'=>'339.06','CodigoDeBarra'=>'7795379120024','Pvp'=>'339.06']);\nDB::table('sales')->insert(['Codigo' =>'8042913','Precio'=>'192.85','CodigoDeBarra'=>'7791290787223','Pvp'=>'192.85']);\nDB::table('sales')->insert(['Codigo' =>'8042912','Precio'=>'53.91','CodigoDeBarra'=>'7791290788497','Pvp'=>'53.91']);\nDB::table('sales')->insert(['Codigo' =>'8042653','Precio'=>'381.02','CodigoDeBarra'=>'7791290010079','Pvp'=>'381.02']);\nDB::table('sales')->insert(['Codigo' =>'8042652','Precio'=>'110.46','CodigoDeBarra'=>'7791290011526','Pvp'=>'110.46']);\nDB::table('sales')->insert(['Codigo' =>'5256891','Precio'=>'450.86','CodigoDeBarra'=>'7795327060518','Pvp'=>'450.86']);\nDB::table('sales')->insert(['Codigo' =>'5256892','Precio'=>'783.96','CodigoDeBarra'=>'7795327060525','Pvp'=>'783.96']);\nDB::table('sales')->insert(['Codigo' =>'8036106','Precio'=>'226.75','CodigoDeBarra'=>'7798140258773','Pvp'=>'226.75']);\nDB::table('sales')->insert(['Codigo' =>'8019045','Precio'=>'282.36','CodigoDeBarra'=>'7798140258193','Pvp'=>'282.36']);\nDB::table('sales')->insert(['Codigo' =>'8019043','Precio'=>'306.89','CodigoDeBarra'=>'7798140258209','Pvp'=>'306.89']);\nDB::table('sales')->insert(['Codigo' =>'8010407','Precio'=>'632.51','CodigoDeBarra'=>'7794428011870','Pvp'=>'632.51']);\nDB::table('sales')->insert(['Codigo' =>'8010408','Precio'=>'574.94','CodigoDeBarra'=>'7794428011863','Pvp'=>'574.94']);\nDB::table('sales')->insert(['Codigo' =>'9997056','Precio'=>'332.91','CodigoDeBarra'=>'7794428011597','Pvp'=>'332.91']);\nDB::table('sales')->insert(['Codigo' =>'6185393','Precio'=>'1149.03','CodigoDeBarra'=>'7795356002268','Pvp'=>'1149.03']);\nDB::table('sales')->insert(['Codigo' =>'6185263','Precio'=>'1013.84','CodigoDeBarra'=>'7795356002251','Pvp'=>'1013.84']);\nDB::table('sales')->insert(['Codigo' =>'6068551','Precio'=>'4141.76','CodigoDeBarra'=>'7798138890374','Pvp'=>'4141.76']);\nDB::table('sales')->insert(['Codigo' =>'6068552','Precio'=>'7726.62','CodigoDeBarra'=>'7798138890381','Pvp'=>'7726.62']);\nDB::table('sales')->insert(['Codigo' =>'628200','Precio'=>'1550.07','CodigoDeBarra'=>'7798163500156','Pvp'=>'1550.07']);\nDB::table('sales')->insert(['Codigo' =>'5126501','Precio'=>'145069.35','CodigoDeBarra'=>'3582185728957','Pvp'=>'145069.35']);\nDB::table('sales')->insert(['Codigo' =>'5126311','Precio'=>'80594.18','CodigoDeBarra'=>'3582185728728','Pvp'=>'80594.18']);\nDB::table('sales')->insert(['Codigo' =>'5126451','Precio'=>'120889.01','CodigoDeBarra'=>'3582185728896','Pvp'=>'120889.01']);\nDB::table('sales')->insert(['Codigo' =>'5345841','Precio'=>'225229.30','CodigoDeBarra'=>'7795381410731','Pvp'=>'225229.30']);\nDB::table('sales')->insert(['Codigo' =>'534597','Precio'=>'337843.29','CodigoDeBarra'=>'7795381410724','Pvp'=>'337843.29']);\nDB::table('sales')->insert(['Codigo' =>'8024255','Precio'=>'293800.48','CodigoDeBarra'=>'7792183002485','Pvp'=>'293800.48']);\nDB::table('sales')->insert(['Codigo' =>'8021928','Precio'=>'253.40','CodigoDeBarra'=>'7798122340892','Pvp'=>'253.40']);\nDB::table('sales')->insert(['Codigo' =>'5569711','Precio'=>'94088.50','CodigoDeBarra'=>'3000030527154','Pvp'=>'94088.50']);\nDB::table('sales')->insert(['Codigo' =>'5824001','Precio'=>'211064.86','CodigoDeBarra'=>'3000030852348','Pvp'=>'211064.86']);\nDB::table('sales')->insert(['Codigo' =>'5569841','Precio'=>'211069.21','CodigoDeBarra'=>'3000030528151','Pvp'=>'211069.21']);\nDB::table('sales')->insert(['Codigo' =>'5569971','Precio'=>'217596.37','CodigoDeBarra'=>'3000030524153','Pvp'=>'217596.37']);\nDB::table('sales')->insert(['Codigo' =>'8038869','Precio'=>'31761.55','CodigoDeBarra'=>'7798061752381','Pvp'=>'31761.55']);\nDB::table('sales')->insert(['Codigo' =>'8031996','Precio'=>'409.20','CodigoDeBarra'=>'7798113691309','Pvp'=>'409.20']);\nDB::table('sales')->insert(['Codigo' =>'8031995','Precio'=>'343.80','CodigoDeBarra'=>'7798113691316','Pvp'=>'343.80']);\nDB::table('sales')->insert(['Codigo' =>'5946682','Precio'=>'290577.70','CodigoDeBarra'=>'7795314023779','Pvp'=>'290577.70']);\nDB::table('sales')->insert(['Codigo' =>'8039972','Precio'=>'353051.92','CodigoDeBarra'=>'7795314192567','Pvp'=>'353051.92']);\nDB::table('sales')->insert(['Codigo' =>'8040538','Precio'=>'353051.92','CodigoDeBarra'=>'7795314177069','Pvp'=>'353051.92']);\nDB::table('sales')->insert(['Codigo' =>'6254261','Precio'=>'456131.60','CodigoDeBarra'=>'7795320000528','Pvp'=>'456131.60']);\nDB::table('sales')->insert(['Codigo' =>'5047611','Precio'=>'9357.51','CodigoDeBarra'=>'7797991146819','Pvp'=>'9357.51']);\nDB::table('sales')->insert(['Codigo' =>'8011080','Precio'=>'60.98','CodigoDeBarra'=>'7795371459382','Pvp'=>'60.98']);\nDB::table('sales')->insert(['Codigo' =>'4009031','Precio'=>'155.85','CodigoDeBarra'=>'7791763001634','Pvp'=>'155.85']);\nDB::table('sales')->insert(['Codigo' =>'4009032','Precio'=>'280.50','CodigoDeBarra'=>'7795367000734','Pvp'=>'280.50']);\nDB::table('sales')->insert(['Codigo' =>'6268681','Precio'=>'42438.19','CodigoDeBarra'=>'7792183001945','Pvp'=>'42438.19']);\nDB::table('sales')->insert(['Codigo' =>'6523841','Precio'=>'314.64','CodigoDeBarra'=>'7792175009805','Pvp'=>'314.64']);\nDB::table('sales')->insert(['Codigo' =>'6523842','Precio'=>'503.14','CodigoDeBarra'=>'7792175009812','Pvp'=>'503.14']);\nDB::table('sales')->insert(['Codigo' =>'6299391','Precio'=>'292.91','CodigoDeBarra'=>'7792175009430','Pvp'=>'292.91']);\nDB::table('sales')->insert(['Codigo' =>'9993163','Precio'=>'93.55','CodigoDeBarra'=>'7792129000339','Pvp'=>'93.55']);\nDB::table('sales')->insert(['Codigo' =>'9992804','Precio'=>'57.82','CodigoDeBarra'=>'7792129000346','Pvp'=>'57.82']);\nDB::table('sales')->insert(['Codigo' =>'9998854','Precio'=>'140.05','CodigoDeBarra'=>'7792129001299','Pvp'=>'140.05']);\nDB::table('sales')->insert(['Codigo' =>'8011176','Precio'=>'104.85','CodigoDeBarra'=>'7792129002142','Pvp'=>'104.85']);\nDB::table('sales')->insert(['Codigo' =>'8031536','Precio'=>'134.54','CodigoDeBarra'=>'7792129003545','Pvp'=>'134.54']);\nDB::table('sales')->insert(['Codigo' =>'8001789','Precio'=>'568.65','CodigoDeBarra'=>'7795336075114','Pvp'=>'568.65']);\nDB::table('sales')->insert(['Codigo' =>'8006814','Precio'=>'896.36','CodigoDeBarra'=>'7795367054522','Pvp'=>'896.36']);\nDB::table('sales')->insert(['Codigo' =>'6450841','Precio'=>'1907.01','CodigoDeBarra'=>'7795327065292','Pvp'=>'1907.01']);\nDB::table('sales')->insert(['Codigo' =>'4007212','Precio'=>'497.86','CodigoDeBarra'=>'7795336069328','Pvp'=>'497.86']);\nDB::table('sales')->insert(['Codigo' =>'816203','Precio'=>'153.78','CodigoDeBarra'=>'7791763001122','Pvp'=>'153.78']);\nDB::table('sales')->insert(['Codigo' =>'816202','Precio'=>'248.76','CodigoDeBarra'=>'7791763001146','Pvp'=>'248.76']);\nDB::table('sales')->insert(['Codigo' =>'283091','Precio'=>'190.67','CodigoDeBarra'=>'7798006300509','Pvp'=>'190.67']);\nDB::table('sales')->insert(['Codigo' =>'282921','Precio'=>'190.67','CodigoDeBarra'=>'7798006300516','Pvp'=>'190.67']);\nDB::table('sales')->insert(['Codigo' =>'8034902','Precio'=>'292.37','CodigoDeBarra'=>'7795328054738','Pvp'=>'292.37']);\nDB::table('sales')->insert(['Codigo' =>'8034903','Precio'=>'432.09','CodigoDeBarra'=>'7795328054745','Pvp'=>'432.09']);\nDB::table('sales')->insert(['Codigo' =>'6146841','Precio'=>'144.25','CodigoDeBarra'=>'7795328054769','Pvp'=>'144.25']);\nDB::table('sales')->insert(['Codigo' =>'6146843','Precio'=>'274.30','CodigoDeBarra'=>'7795328054776','Pvp'=>'274.30']);\nDB::table('sales')->insert(['Codigo' =>'6234262','Precio'=>'258.76','CodigoDeBarra'=>'7795328054714','Pvp'=>'258.76']);\nDB::table('sales')->insert(['Codigo' =>'6234264','Precio'=>'495.19','CodigoDeBarra'=>'7795328054721','Pvp'=>'495.19']);\nDB::table('sales')->insert(['Codigo' =>'4827530','Precio'=>'8966.29','CodigoDeBarra'=>'7795336290890','Pvp'=>'8966.29']);\nDB::table('sales')->insert(['Codigo' =>'4827790','Precio'=>'16391.73','CodigoDeBarra'=>'7795336290913','Pvp'=>'16391.73']);\nDB::table('sales')->insert(['Codigo' =>'4827610','Precio'=>'12299.92','CodigoDeBarra'=>'7795336290906','Pvp'=>'12299.92']);\nDB::table('sales')->insert(['Codigo' =>'4827450','Precio'=>'7450.57','CodigoDeBarra'=>'7795336290883','Pvp'=>'7450.57']);\nDB::table('sales')->insert(['Codigo' =>'3614281','Precio'=>'10311.61','CodigoDeBarra'=>'8054083004105','Pvp'=>'10311.61']);\nDB::table('sales')->insert(['Codigo' =>'5506711','Precio'=>'66656.86','CodigoDeBarra'=>'7798083951298','Pvp'=>'66656.86']);\nDB::table('sales')->insert(['Codigo' =>'5506841','Precio'=>'133313.52','CodigoDeBarra'=>'7798083951304','Pvp'=>'133313.52']);\nDB::table('sales')->insert(['Codigo' =>'5506971','Precio'=>'266627.14','CodigoDeBarra'=>'7798083951311','Pvp'=>'266627.14']);\nDB::table('sales')->insert(['Codigo' =>'8032986','Precio'=>'560.31','CodigoDeBarra'=>'7798122341165','Pvp'=>'560.31']);\nDB::table('sales')->insert(['Codigo' =>'8028188','Precio'=>'560.31','CodigoDeBarra'=>'7798122341097','Pvp'=>'560.31']);\nDB::table('sales')->insert(['Codigo' =>'8028189','Precio'=>'585.65','CodigoDeBarra'=>'7798122341103','Pvp'=>'585.65']);\nDB::table('sales')->insert(['Codigo' =>'8039505','Precio'=>'40756.42','CodigoDeBarra'=>'7795314572338','Pvp'=>'40756.42']);\nDB::table('sales')->insert(['Codigo' =>'4560711','Precio'=>'64330.73','CodigoDeBarra'=>'8054083007632','Pvp'=>'64330.73']);\nDB::table('sales')->insert(['Codigo' =>'6204261','Precio'=>'36990.11','CodigoDeBarra'=>'8002660010063','Pvp'=>'36990.11']);\nDB::table('sales')->insert(['Codigo' =>'6350421','Precio'=>'2229.80','CodigoDeBarra'=>'7798260150360','Pvp'=>'2229.80']);\nDB::table('sales')->insert(['Codigo' =>'5802681','Precio'=>'2229.80','CodigoDeBarra'=>'7798260150018','Pvp'=>'2229.80']);\nDB::table('sales')->insert(['Codigo' =>'4740492','Precio'=>'599.57','CodigoDeBarra'=>'7795367053778','Pvp'=>'599.57']);\nDB::table('sales')->insert(['Codigo' =>'4740493','Precio'=>'1142.77','CodigoDeBarra'=>'7795367053785','Pvp'=>'1142.77']);\nDB::table('sales')->insert(['Codigo' =>'6120131','Precio'=>'5136.63','CodigoDeBarra'=>'7792069000123','Pvp'=>'5136.63']);\nDB::table('sales')->insert(['Codigo' =>'8038689','Precio'=>'17076.08','CodigoDeBarra'=>'7792069951104','Pvp'=>'17076.08']);\nDB::table('sales')->insert(['Codigo' =>'6120261','Precio'=>'15831.58','CodigoDeBarra'=>'7792069000185','Pvp'=>'15831.58']);\nDB::table('sales')->insert(['Codigo' =>'8038690','Precio'=>'35086.26','CodigoDeBarra'=>'7792066951111','Pvp'=>'35086.26']);\nDB::table('sales')->insert(['Codigo' =>'6120391','Precio'=>'39584.30','CodigoDeBarra'=>'7792069000192','Pvp'=>'39584.30']);\nDB::table('sales')->insert(['Codigo' =>'629984','Precio'=>'81692.99','CodigoDeBarra'=>'7795306330724','Pvp'=>'81692.99']);\nDB::table('sales')->insert(['Codigo' =>'8033785','Precio'=>'490157.47','CodigoDeBarra'=>'7795306473933','Pvp'=>'490157.47']);\nDB::table('sales')->insert(['Codigo' =>'629997','Precio'=>'122539.34','CodigoDeBarra'=>'7795306730739','Pvp'=>'122539.34']);\nDB::table('sales')->insert(['Codigo' =>'8019955','Precio'=>'2016.93','CodigoDeBarra'=>'7798140250401','Pvp'=>'2016.93']);\nDB::table('sales')->insert(['Codigo' =>'8019952','Precio'=>'151.27','CodigoDeBarra'=>'7798140250470','Pvp'=>'151.27']);\nDB::table('sales')->insert(['Codigo' =>'9997419','Precio'=>'504.24','CodigoDeBarra'=>'7795356998875','Pvp'=>'504.24']);\nDB::table('sales')->insert(['Codigo' =>'4996756','Precio'=>'130.92','CodigoDeBarra'=>'7798140253334','Pvp'=>'130.92']);\nDB::table('sales')->insert(['Codigo' =>'4996752','Precio'=>'285.33','CodigoDeBarra'=>'7798140251118','Pvp'=>'285.33']);\nDB::table('sales')->insert(['Codigo' =>'4996755','Precio'=>'456.69','CodigoDeBarra'=>'7795356333827','Pvp'=>'456.69']);\nDB::table('sales')->insert(['Codigo' =>'8041149','Precio'=>'2016.93','CodigoDeBarra'=>'7798140253389','Pvp'=>'2016.93']);\nDB::table('sales')->insert(['Codigo' =>'5466973','Precio'=>'410.02','CodigoDeBarra'=>'7795356999407','Pvp'=>'410.02']);\nDB::table('sales')->insert(['Codigo' =>'8019954','Precio'=>'1793.40','CodigoDeBarra'=>'7798140250418','Pvp'=>'1793.40']);\nDB::table('sales')->insert(['Codigo' =>'8019935','Precio'=>'179.34','CodigoDeBarra'=>'7798140250395','Pvp'=>'179.34']);\nDB::table('sales')->insert(['Codigo' =>'8035435','Precio'=>'188.84','CodigoDeBarra'=>'7798140258872','Pvp'=>'188.84']);\nDB::table('sales')->insert(['Codigo' =>'8034923','Precio'=>'102.84','CodigoDeBarra'=>'7798140258667','Pvp'=>'102.84']);\nDB::table('sales')->insert(['Codigo' =>'8000134','Precio'=>'162.64','CodigoDeBarra'=>'7798140251231','Pvp'=>'162.64']);\nDB::table('sales')->insert(['Codigo' =>'9998356','Precio'=>'232.37','CodigoDeBarra'=>'7798140251224','Pvp'=>'232.37']);\nDB::table('sales')->insert(['Codigo' =>'8033454','Precio'=>'137.21','CodigoDeBarra'=>'7798140258636','Pvp'=>'137.21']);\nDB::table('sales')->insert(['Codigo' =>'8033453','Precio'=>'72.85','CodigoDeBarra'=>'7798140258445','Pvp'=>'72.85']);\nDB::table('sales')->insert(['Codigo' =>'8037850','Precio'=>'2036.87','CodigoDeBarra'=>'7798140259251','Pvp'=>'2036.87']);\nDB::table('sales')->insert(['Codigo' =>'8039926','Precio'=>'184.91','CodigoDeBarra'=>'7798140252849','Pvp'=>'184.91']);\nDB::table('sales')->insert(['Codigo' =>'5566977','Precio'=>'4974.06','CodigoDeBarra'=>'7791829018606','Pvp'=>'4974.06']);\nDB::table('sales')->insert(['Codigo' =>'5567001','Precio'=>'3128.96','CodigoDeBarra'=>'7791829018613','Pvp'=>'3128.96']);\nDB::table('sales')->insert(['Codigo' =>'647242','Precio'=>'469306.00','CodigoDeBarra'=>'5000456018050','Pvp'=>'469306.00']);\nDB::table('sales')->insert(['Codigo' =>'8027086','Precio'=>'406.07','CodigoDeBarra'=>'7798084681781','Pvp'=>'406.07']);\nDB::table('sales')->insert(['Codigo' =>'8026112','Precio'=>'4060.70','CodigoDeBarra'=>'7798084684621','Pvp'=>'4060.70']);\nDB::table('sales')->insert(['Codigo' =>'8034968','Precio'=>'84218.63','CodigoDeBarra'=>'7795990002051','Pvp'=>'84218.63']);\nDB::table('sales')->insert(['Codigo' =>'8040581','Precio'=>'125374.75','CodigoDeBarra'=>'7795381411592','Pvp'=>'125374.75']);\nDB::table('sales')->insert(['Codigo' =>'8040593','Precio'=>'376124.22','CodigoDeBarra'=>'7795381411608','Pvp'=>'376124.22']);\nDB::table('sales')->insert(['Codigo' =>'4342673','Precio'=>'3445.62','CodigoDeBarra'=>'7795348000098','Pvp'=>'3445.62']);\nDB::table('sales')->insert(['Codigo' =>'8006921','Precio'=>'318.19','CodigoDeBarra'=>'7791829009345','Pvp'=>'318.19']);\nDB::table('sales')->insert(['Codigo' =>'8006826','Precio'=>'286.90','CodigoDeBarra'=>'7798035310302','Pvp'=>'286.90']);\nDB::table('sales')->insert(['Codigo' =>'8006879','Precio'=>'402.08','CodigoDeBarra'=>'7798021442949','Pvp'=>'402.08']);\nDB::table('sales')->insert(['Codigo' =>'5963552','Precio'=>'764.93','CodigoDeBarra'=>'7795336292948','Pvp'=>'764.93']);\nDB::table('sales')->insert(['Codigo' =>'6380551','Precio'=>'1486.60','CodigoDeBarra'=>'7798161930269','Pvp'=>'1486.60']);\nDB::table('sales')->insert(['Codigo' =>'6380552','Precio'=>'2587.80','CodigoDeBarra'=>'7798161930276','Pvp'=>'2587.80']);\nDB::table('sales')->insert(['Codigo' =>'871653','Precio'=>'217.85','CodigoDeBarra'=>'7791763001375','Pvp'=>'217.85']);\nDB::table('sales')->insert(['Codigo' =>'867154','Precio'=>'343.97','CodigoDeBarra'=>'7791763001382','Pvp'=>'343.97']);\nDB::table('sales')->insert(['Codigo' =>'4902191','Precio'=>'224.82','CodigoDeBarra'=>'7791763337825','Pvp'=>'224.82']);\nDB::table('sales')->insert(['Codigo' =>'6278262','Precio'=>'576.59','CodigoDeBarra'=>'7791763001306','Pvp'=>'576.59']);\nDB::table('sales')->insert(['Codigo' =>'6278264','Precio'=>'972.22','CodigoDeBarra'=>'7791763001313','Pvp'=>'972.22']);\nDB::table('sales')->insert(['Codigo' =>'872305','Precio'=>'483.28','CodigoDeBarra'=>'7791763001511','Pvp'=>'483.28']);\nDB::table('sales')->insert(['Codigo' =>'872303','Precio'=>'817.98','CodigoDeBarra'=>'7791763337740','Pvp'=>'817.98']);\nDB::table('sales')->insert(['Codigo' =>'4365282','Precio'=>'253.05','CodigoDeBarra'=>'7791763337665','Pvp'=>'253.05']);\nDB::table('sales')->insert(['Codigo' =>'4365283','Precio'=>'336.16','CodigoDeBarra'=>'7791763337757','Pvp'=>'336.16']);\nDB::table('sales')->insert(['Codigo' =>'4365362','Precio'=>'340.31','CodigoDeBarra'=>'7791763337672','Pvp'=>'340.31']);\nDB::table('sales')->insert(['Codigo' =>'4365363','Precio'=>'387.70','CodigoDeBarra'=>'7791763337764','Pvp'=>'387.70']);\nDB::table('sales')->insert(['Codigo' =>'5089382','Precio'=>'390.06','CodigoDeBarra'=>'7791763337832','Pvp'=>'390.06']);\nDB::table('sales')->insert(['Codigo' =>'5089383','Precio'=>'721.00','CodigoDeBarra'=>'7791763337849','Pvp'=>'721.00']);\nDB::table('sales')->insert(['Codigo' =>'5089432','Precio'=>'196.34','CodigoDeBarra'=>'7791763001528','Pvp'=>'196.34']);\nDB::table('sales')->insert(['Codigo' =>'9999683','Precio'=>'275.76','CodigoDeBarra'=>'7791763337894','Pvp'=>'275.76']);\nDB::table('sales')->insert(['Codigo' =>'9997643','Precio'=>'303.07','CodigoDeBarra'=>'7791763337863','Pvp'=>'303.07']);\nDB::table('sales')->insert(['Codigo' =>'9998567','Precio'=>'490.74','CodigoDeBarra'=>'7791763337870','Pvp'=>'490.74']);\nDB::table('sales')->insert(['Codigo' =>'6150002','Precio'=>'475.77','CodigoDeBarra'=>'7791763000866','Pvp'=>'475.77']);\nDB::table('sales')->insert(['Codigo' =>'6150001','Precio'=>'265.97','CodigoDeBarra'=>'7791763000859','Pvp'=>'265.97']);\nDB::table('sales')->insert(['Codigo' =>'5452261','Precio'=>'146121.85','CodigoDeBarra'=>'7792371675583','Pvp'=>'146121.85']);\nDB::table('sales')->insert(['Codigo' =>'5452391','Precio'=>'180061.32','CodigoDeBarra'=>'7792371697684','Pvp'=>'180061.32']);\nDB::table('sales')->insert(['Codigo' =>'2653152','Precio'=>'625.68','CodigoDeBarra'=>'7798067995492','Pvp'=>'625.68']);\nDB::table('sales')->insert(['Codigo' =>'5195581','Precio'=>'443636.06','CodigoDeBarra'=>'7798021441874','Pvp'=>'443636.06']);\nDB::table('sales')->insert(['Codigo' =>'6028002','Precio'=>'191123.81','CodigoDeBarra'=>'7795306010558','Pvp'=>'191123.81']);\nDB::table('sales')->insert(['Codigo' =>'5708972','Precio'=>'247329.66','CodigoDeBarra'=>'7795306010565','Pvp'=>'247329.66']);\nDB::table('sales')->insert(['Codigo' =>'3763521','Precio'=>'327.66','CodigoDeBarra'=>'7795345001111','Pvp'=>'327.66']);\nDB::table('sales')->insert(['Codigo' =>'6041712','Precio'=>'456.42','CodigoDeBarra'=>'7795345000756','Pvp'=>'456.42']);\nDB::table('sales')->insert(['Codigo' =>'9997775','Precio'=>'150.45','CodigoDeBarra'=>'7793569000965','Pvp'=>'150.45']);\nDB::table('sales')->insert(['Codigo' =>'4588871','Precio'=>'177.15','CodigoDeBarra'=>'7793569479457','Pvp'=>'177.15']);\nDB::table('sales')->insert(['Codigo' =>'5323971','Precio'=>'303.75','CodigoDeBarra'=>'7795378005766','Pvp'=>'303.75']);\nDB::table('sales')->insert(['Codigo' =>'5323972','Precio'=>'595.74','CodigoDeBarra'=>'7795378005773','Pvp'=>'595.74']);\nDB::table('sales')->insert(['Codigo' =>'5323973','Precio'=>'762.81','CodigoDeBarra'=>'7795378005780','Pvp'=>'762.81']);\nDB::table('sales')->insert(['Codigo' =>'4506431','Precio'=>'888.33','CodigoDeBarra'=>'7795367001694','Pvp'=>'888.33']);\nDB::table('sales')->insert(['Codigo' =>'4636701','Precio'=>'2499.22','CodigoDeBarra'=>'7795367001816','Pvp'=>'2499.22']);\nDB::table('sales')->insert(['Codigo' =>'4079171','Precio'=>'364.48','CodigoDeBarra'=>'7795367000673','Pvp'=>'364.48']);\nDB::table('sales')->insert(['Codigo' =>'6022421','Precio'=>'5321.82','CodigoDeBarra'=>'7795312001489','Pvp'=>'5321.82']);\nDB::table('sales')->insert(['Codigo' =>'6022551','Precio'=>'19882.05','CodigoDeBarra'=>'7795312001496','Pvp'=>'19882.05']);\nDB::table('sales')->insert(['Codigo' =>'9992398','Precio'=>'98.13','CodigoDeBarra'=>'7798140251194','Pvp'=>'98.13']);\nDB::table('sales')->insert(['Codigo' =>'8035122','Precio'=>'132.97','CodigoDeBarra'=>'650240032684','Pvp'=>'132.97']);\nDB::table('sales')->insert(['Codigo' =>'8035121','Precio'=>'210.79','CodigoDeBarra'=>'650240027468','Pvp'=>'210.79']);\nDB::table('sales')->insert(['Codigo' =>'8035123','Precio'=>'132.97','CodigoDeBarra'=>'650240032691','Pvp'=>'132.97']);\nDB::table('sales')->insert(['Codigo' =>'8035124','Precio'=>'210.79','CodigoDeBarra'=>'650240032738','Pvp'=>'210.79']);\nDB::table('sales')->insert(['Codigo' =>'8035120','Precio'=>'168.34','CodigoDeBarra'=>'650240027727','Pvp'=>'168.34']);\nDB::table('sales')->insert(['Codigo' =>'8035126','Precio'=>'93.37','CodigoDeBarra'=>'650240032677','Pvp'=>'93.37']);\nDB::table('sales')->insert(['Codigo' =>'8035125','Precio'=>'155.61','CodigoDeBarra'=>'650240027581','Pvp'=>'155.61']);\nDB::table('sales')->insert(['Codigo' =>'8109473','Precio'=>'1365.03','CodigoDeBarra'=>'7798140254096','Pvp'=>'1365.03']);\nDB::table('sales')->insert(['Codigo' =>'8041034','Precio'=>'283.05','CodigoDeBarra'=>'7798140253464','Pvp'=>'283.05']);\nDB::table('sales')->insert(['Codigo' =>'8041033','Precio'=>'202.85','CodigoDeBarra'=>'7798140253457','Pvp'=>'202.85']);\nDB::table('sales')->insert(['Codigo' =>'8033349','Precio'=>'370638.67','CodigoDeBarra'=>'7792371676245','Pvp'=>'370638.67']);\nDB::table('sales')->insert(['Codigo' =>'8041332','Precio'=>'247092.42','CodigoDeBarra'=>'7792371992543','Pvp'=>'247092.42']);\nDB::table('sales')->insert(['Codigo' =>'6358261','Precio'=>'50831.70','CodigoDeBarra'=>'7798144380067','Pvp'=>'50831.70']);\nDB::table('sales')->insert(['Codigo' =>'6358391','Precio'=>'203348.77','CodigoDeBarra'=>'7798144380074','Pvp'=>'203348.77']);\nDB::table('sales')->insert(['Codigo' =>'8033348','Precio'=>'6669.25','CodigoDeBarra'=>'7795367010030','Pvp'=>'6669.25']);\nDB::table('sales')->insert(['Codigo' =>'8001787','Precio'=>'3153.72','CodigoDeBarra'=>'7795336290401','Pvp'=>'3153.72']);\nDB::table('sales')->insert(['Codigo' =>'8025819','Precio'=>'54.85','CodigoDeBarra'=>'7798026346594','Pvp'=>'54.85']);\nDB::table('sales')->insert(['Codigo' =>'6232135','Precio'=>'50.20','CodigoDeBarra'=>'7798026345252','Pvp'=>'50.20']);\nDB::table('sales')->insert(['Codigo' =>'6232131','Precio'=>'73.77','CodigoDeBarra'=>'7798026345313','Pvp'=>'73.77']);\nDB::table('sales')->insert(['Codigo' =>'8025820','Precio'=>'78.00','CodigoDeBarra'=>'7798026346600','Pvp'=>'78.00']);\nDB::table('sales')->insert(['Codigo' =>'6232134','Precio'=>'63.05','CodigoDeBarra'=>'7798026345269','Pvp'=>'63.05']);\nDB::table('sales')->insert(['Codigo' =>'6232132','Precio'=>'93.06','CodigoDeBarra'=>'7798026345320','Pvp'=>'93.06']);\nDB::table('sales')->insert(['Codigo' =>'8025821','Precio'=>'148.09','CodigoDeBarra'=>'7798026346617','Pvp'=>'148.09']);\nDB::table('sales')->insert(['Codigo' =>'6232133','Precio'=>'126.27','CodigoDeBarra'=>'7798026345276','Pvp'=>'126.27']);\nDB::table('sales')->insert(['Codigo' =>'8009235','Precio'=>'635.25','CodigoDeBarra'=>'7798026346129','Pvp'=>'635.25']);\nDB::table('sales')->insert(['Codigo' =>'6232130','Precio'=>'175.89','CodigoDeBarra'=>'7798026345337','Pvp'=>'175.89']);\nDB::table('sales')->insert(['Codigo' =>'6200711','Precio'=>'1964.26','CodigoDeBarra'=>'7795367001038','Pvp'=>'1964.26']);\nDB::table('sales')->insert(['Codigo' =>'5267991','Precio'=>'20286.22','CodigoDeBarra'=>'7794640408021','Pvp'=>'20286.22']);\nDB::table('sales')->insert(['Codigo' =>'4539361','Precio'=>'55292.20','CodigoDeBarra'=>'7793081000054','Pvp'=>'55292.20']);\nDB::table('sales')->insert(['Codigo' =>'579713','Precio'=>'66825.07','CodigoDeBarra'=>'7793081086393','Pvp'=>'66825.07']);\nDB::table('sales')->insert(['Codigo' =>'5797261','Precio'=>'84355.72','CodigoDeBarra'=>'7793081000078','Pvp'=>'84355.72']);\nDB::table('sales')->insert(['Codigo' =>'4539281','Precio'=>'8506.74','CodigoDeBarra'=>'7793081000047','Pvp'=>'8506.74']);\nDB::table('sales')->insert(['Codigo' =>'8007137','Precio'=>'115316.82','CodigoDeBarra'=>'7793081086331','Pvp'=>'115316.82']);\nDB::table('sales')->insert(['Codigo' =>'5898711','Precio'=>'1412.81','CodigoDeBarra'=>'7798061751629','Pvp'=>'1412.81']);\nDB::table('sales')->insert(['Codigo' =>'5898841','Precio'=>'2208.19','CodigoDeBarra'=>'7798061751636','Pvp'=>'2208.19']);\nDB::table('sales')->insert(['Codigo' =>'6327681','Precio'=>'1564.50','CodigoDeBarra'=>'7797416012750','Pvp'=>'1564.50']);\nDB::table('sales')->insert(['Codigo' =>'6327711','Precio'=>'2873.64','CodigoDeBarra'=>'7797416012767','Pvp'=>'2873.64']);\nDB::table('sales')->insert(['Codigo' =>'8034129','Precio'=>'84.76','CodigoDeBarra'=>'7702027470028','Pvp'=>'84.76']);\nDB::table('sales')->insert(['Codigo' =>'8034128','Precio'=>'177.26','CodigoDeBarra'=>'7702026179571','Pvp'=>'177.26']);\nDB::table('sales')->insert(['Codigo' =>'8034130','Precio'=>'245.57','CodigoDeBarra'=>'7702027470226','Pvp'=>'245.57']);\nDB::table('sales')->insert(['Codigo' =>'8040955','Precio'=>'751.87','CodigoDeBarra'=>'7702027470233','Pvp'=>'751.87']);\nDB::table('sales')->insert(['Codigo' =>'8034131','Precio'=>'315.60','CodigoDeBarra'=>'7702027470424','Pvp'=>'315.60']);\nDB::table('sales')->insert(['Codigo' =>'8040956','Precio'=>'751.87','CodigoDeBarra'=>'7702027470448','Pvp'=>'751.87']);\nDB::table('sales')->insert(['Codigo' =>'8040954','Precio'=>'602.52','CodigoDeBarra'=>'7702026181390','Pvp'=>'602.52']);\nDB::table('sales')->insert(['Codigo' =>'8040953','Precio'=>'602.52','CodigoDeBarra'=>'7702026180881','Pvp'=>'602.52']);\nDB::table('sales')->insert(['Codigo' =>'8037062','Precio'=>'451.87','CodigoDeBarra'=>'7702026174156','Pvp'=>'451.87']);\nDB::table('sales')->insert(['Codigo' =>'8037061','Precio'=>'451.87','CodigoDeBarra'=>'7702026174149','Pvp'=>'451.87']);\nDB::table('sales')->insert(['Codigo' =>'8040950','Precio'=>'1172.88','CodigoDeBarra'=>'7702027478710','Pvp'=>'1172.88']);\nDB::table('sales')->insert(['Codigo' =>'8034125','Precio'=>'599.67','CodigoDeBarra'=>'7702027478703','Pvp'=>'599.67']);\nDB::table('sales')->insert(['Codigo' =>'8040949','Precio'=>'1172.88','CodigoDeBarra'=>'7702027478611','Pvp'=>'1172.88']);\nDB::table('sales')->insert(['Codigo' =>'8034124','Precio'=>'599.67','CodigoDeBarra'=>'7702027478604','Pvp'=>'599.67']);\nDB::table('sales')->insert(['Codigo' =>'8027828','Precio'=>'4909.94','CodigoDeBarra'=>'7793397051535','Pvp'=>'4909.94']);\nDB::table('sales')->insert(['Codigo' =>'8027829','Precio'=>'9811.65','CodigoDeBarra'=>'7793397051542','Pvp'=>'9811.65']);\nDB::table('sales')->insert(['Codigo' =>'8021926','Precio'=>'1702.78','CodigoDeBarra'=>'7795380001855','Pvp'=>'1702.78']);\nDB::table('sales')->insert(['Codigo' =>'589872','Precio'=>'5688.09','CodigoDeBarra'=>'7798061751650','Pvp'=>'5688.09']);\nDB::table('sales')->insert(['Codigo' =>'589900','Precio'=>'9304.84','CodigoDeBarra'=>'7798061752282','Pvp'=>'9304.84']);\nDB::table('sales')->insert(['Codigo' =>'8001852','Precio'=>'195.59','CodigoDeBarra'=>'7796363000872','Pvp'=>'195.59']);\nDB::table('sales')->insert(['Codigo' =>'4773662','Precio'=>'306.95','CodigoDeBarra'=>'7796363000780','Pvp'=>'306.95']);\nDB::table('sales')->insert(['Codigo' =>'4773741','Precio'=>'181.70','CodigoDeBarra'=>'7796363000889','Pvp'=>'181.70']);\nDB::table('sales')->insert(['Codigo' =>'6122551','Precio'=>'8775.88','CodigoDeBarra'=>'7796285054489','Pvp'=>'8775.88']);\nDB::table('sales')->insert(['Codigo' =>'8041334','Precio'=>'16737.59','CodigoDeBarra'=>'7795306997736','Pvp'=>'16737.59']);\nDB::table('sales')->insert(['Codigo' =>'6533421','Precio'=>'73669.53','CodigoDeBarra'=>'7795348421572','Pvp'=>'73669.53']);\nDB::table('sales')->insert(['Codigo' =>'4904411','Precio'=>'600.01','CodigoDeBarra'=>'7792175007283','Pvp'=>'600.01']);\nDB::table('sales')->insert(['Codigo' =>'4904412','Precio'=>'1098.61','CodigoDeBarra'=>'7792175007306','Pvp'=>'1098.61']);\nDB::table('sales')->insert(['Codigo' =>'6290133','Precio'=>'1137.14','CodigoDeBarra'=>'7792175009454','Pvp'=>'1137.14']);\nDB::table('sales')->insert(['Codigo' =>'8023673','Precio'=>'488.63','CodigoDeBarra'=>'7795336291613','Pvp'=>'488.63']);\nDB::table('sales')->insert(['Codigo' =>'4842962','Precio'=>'954.82','CodigoDeBarra'=>'7795336291620','Pvp'=>'954.82']);\nDB::table('sales')->insert(['Codigo' =>'638384','Precio'=>'59981.87','CodigoDeBarra'=>'7793397090305','Pvp'=>'59981.87']);\nDB::table('sales')->insert(['Codigo' =>'8043505','Precio'=>'84463.47','CodigoDeBarra'=>'7796285284336','Pvp'=>'84463.47']);\nDB::table('sales')->insert(['Codigo' =>'8043506','Precio'=>'250419.37','CodigoDeBarra'=>'7796285284343','Pvp'=>'250419.37']);\nDB::table('sales')->insert(['Codigo' =>'8009976','Precio'=>'813.94','CodigoDeBarra'=>'7795345012988','Pvp'=>'813.94']);\nDB::table('sales')->insert(['Codigo' =>'8043742','Precio'=>'9494.99','CodigoDeBarra'=>'7798355630036','Pvp'=>'9494.99']);\nDB::table('sales')->insert(['Codigo' =>'8010787','Precio'=>'216.13','CodigoDeBarra'=>'7791763000583','Pvp'=>'216.13']);\nDB::table('sales')->insert(['Codigo' =>'8011222','Precio'=>'224.66','CodigoDeBarra'=>'7791763000606','Pvp'=>'224.66']);\nDB::table('sales')->insert(['Codigo' =>'8010788','Precio'=>'224.66','CodigoDeBarra'=>'7791763000620','Pvp'=>'224.66']);\nDB::table('sales')->insert(['Codigo' =>'1725104','Precio'=>'1183.14','CodigoDeBarra'=>'7795380043008','Pvp'=>'1183.14']);\nDB::table('sales')->insert(['Codigo' =>'6333398','Precio'=>'55329.14','CodigoDeBarra'=>'7790375003722','Pvp'=>'55329.14']);\nDB::table('sales')->insert(['Codigo' =>'5881001','Precio'=>'857.26','CodigoDeBarra'=>'7791829000601','Pvp'=>'857.26']);\nDB::table('sales')->insert(['Codigo' =>'5881131','Precio'=>'1050.49','CodigoDeBarra'=>'7791829000595','Pvp'=>'1050.49']);\nDB::table('sales')->insert(['Codigo' =>'5881251','Precio'=>'1987.08','CodigoDeBarra'=>'7791829000588','Pvp'=>'1987.08']);\nDB::table('sales')->insert(['Codigo' =>'8028812','Precio'=>'18613.87','CodigoDeBarra'=>'7795336003292','Pvp'=>'18613.87']);\nDB::table('sales')->insert(['Codigo' =>'642342','Precio'=>'17716.50','CodigoDeBarra'=>'7793397090411','Pvp'=>'17716.50']);\nDB::table('sales')->insert(['Codigo' =>'642355','Precio'=>'61321.54','CodigoDeBarra'=>'7793397090381','Pvp'=>'61321.54']);\nDB::table('sales')->insert(['Codigo' =>'8012986','Precio'=>'7172.99','CodigoDeBarra'=>'7795367054843','Pvp'=>'7172.99']);\nDB::table('sales')->insert(['Codigo' =>'5612422','Precio'=>'2085.07','CodigoDeBarra'=>'7795367054850','Pvp'=>'2085.07']);\nDB::table('sales')->insert(['Codigo' =>'4849071','Precio'=>'1226.74','CodigoDeBarra'=>'7798069050489','Pvp'=>'1226.74']);\nDB::table('sales')->insert(['Codigo' =>'3848761','Precio'=>'25067.10','CodigoDeBarra'=>'7795312002226','Pvp'=>'25067.10']);\nDB::table('sales')->insert(['Codigo' =>'3981401','Precio'=>'722.60','CodigoDeBarra'=>'7798299850132','Pvp'=>'722.60']);\nDB::table('sales')->insert(['Codigo' =>'8028287','Precio'=>'170.62','CodigoDeBarra'=>'7798140252641','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8040601','Precio'=>'170.62','CodigoDeBarra'=>'7798140259923','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8040603','Precio'=>'272.85','CodigoDeBarra'=>'7798140259916','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8016512','Precio'=>'272.85','CodigoDeBarra'=>'650240014581','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8017727','Precio'=>'272.85','CodigoDeBarra'=>'650240024689','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8028022','Precio'=>'272.85','CodigoDeBarra'=>'7798140252528','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8028310','Precio'=>'170.62','CodigoDeBarra'=>'7798140252702','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8023856','Precio'=>'272.85','CodigoDeBarra'=>'7798140251699','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8022276','Precio'=>'272.85','CodigoDeBarra'=>'7798140251286','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8028309','Precio'=>'170.62','CodigoDeBarra'=>'7798140252689','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8041372','Precio'=>'117.65','CodigoDeBarra'=>'7798140253419','Pvp'=>'117.65']);\nDB::table('sales')->insert(['Codigo' =>'8038834','Precio'=>'191.01','CodigoDeBarra'=>'7798140259732','Pvp'=>'191.01']);\nDB::table('sales')->insert(['Codigo' =>'8039418','Precio'=>'170.62','CodigoDeBarra'=>'7798140259756','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8032779','Precio'=>'272.85','CodigoDeBarra'=>'7798140258506','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8040783','Precio'=>'205.76','CodigoDeBarra'=>'7798140253242','Pvp'=>'205.76']);\nDB::table('sales')->insert(['Codigo' =>'8033183','Precio'=>'205.76','CodigoDeBarra'=>'7798140258339','Pvp'=>'205.76']);\nDB::table('sales')->insert(['Codigo' =>'8110279','Precio'=>'235.06','CodigoDeBarra'=>'7798140253839','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8110280','Precio'=>'235.06','CodigoDeBarra'=>'7798140253815','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8110281','Precio'=>'235.06','CodigoDeBarra'=>'7798140253792','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8110276','Precio'=>'235.06','CodigoDeBarra'=>'7798140253822','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8110277','Precio'=>'235.06','CodigoDeBarra'=>'7798140253808','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8110278','Precio'=>'235.06','CodigoDeBarra'=>'7798140253785','Pvp'=>'235.06']);\nDB::table('sales')->insert(['Codigo' =>'8035729','Precio'=>'403.18','CodigoDeBarra'=>'7798140258858','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8030925','Precio'=>'403.18','CodigoDeBarra'=>'7798140258216','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8030076','Precio'=>'427.61','CodigoDeBarra'=>'7798140253150','Pvp'=>'427.61']);\nDB::table('sales')->insert(['Codigo' =>'8037334','Precio'=>'403.18','CodigoDeBarra'=>'7798140259053','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8040372','Precio'=>'188.15','CodigoDeBarra'=>'7798140259954','Pvp'=>'188.15']);\nDB::table('sales')->insert(['Codigo' =>'8040348','Precio'=>'188.15','CodigoDeBarra'=>'7798140259947','Pvp'=>'188.15']);\nDB::table('sales')->insert(['Codigo' =>'8040289','Precio'=>'183.43','CodigoDeBarra'=>'7798140253273','Pvp'=>'183.43']);\nDB::table('sales')->insert(['Codigo' =>'8025990','Precio'=>'403.18','CodigoDeBarra'=>'7798140253068','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8025174','Precio'=>'403.18','CodigoDeBarra'=>'7798140253051','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8041162','Precio'=>'403.18','CodigoDeBarra'=>'7798140253327','Pvp'=>'403.18']);\nDB::table('sales')->insert(['Codigo' =>'8027574','Precio'=>'169.95','CodigoDeBarra'=>'7798140252801','Pvp'=>'169.95']);\nDB::table('sales')->insert(['Codigo' =>'8037613','Precio'=>'146.04','CodigoDeBarra'=>'7798140259510','Pvp'=>'146.04']);\nDB::table('sales')->insert(['Codigo' =>'8037615','Precio'=>'146.04','CodigoDeBarra'=>'7798140259497','Pvp'=>'146.04']);\nDB::table('sales')->insert(['Codigo' =>'8037617','Precio'=>'146.04','CodigoDeBarra'=>'7798140259473','Pvp'=>'146.04']);\nDB::table('sales')->insert(['Codigo' =>'8037616','Precio'=>'146.04','CodigoDeBarra'=>'7798140259480','Pvp'=>'146.04']);\nDB::table('sales')->insert(['Codigo' =>'8028742','Precio'=>'170.62','CodigoDeBarra'=>'7798140252634','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8040600','Precio'=>'178.26','CodigoDeBarra'=>'7798140259909','Pvp'=>'178.26']);\nDB::table('sales')->insert(['Codigo' =>'8040782','Precio'=>'285.08','CodigoDeBarra'=>'7798140259893','Pvp'=>'285.08']);\nDB::table('sales')->insert(['Codigo' =>'8015910','Precio'=>'272.85','CodigoDeBarra'=>'650240011832','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8015909','Precio'=>'272.85','CodigoDeBarra'=>'650240010736','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8028020','Precio'=>'272.85','CodigoDeBarra'=>'7798140252511','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8023795','Precio'=>'285.08','CodigoDeBarra'=>'7798140251644','Pvp'=>'285.08']);\nDB::table('sales')->insert(['Codigo' =>'8039483','Precio'=>'178.26','CodigoDeBarra'=>'7798140252696','Pvp'=>'178.26']);\nDB::table('sales')->insert(['Codigo' =>'8015905','Precio'=>'285.08','CodigoDeBarra'=>'650240015670','Pvp'=>'285.08']);\nDB::table('sales')->insert(['Codigo' =>'8039484','Precio'=>'178.26','CodigoDeBarra'=>'7798140252672','Pvp'=>'178.26']);\nDB::table('sales')->insert(['Codigo' =>'8041373','Precio'=>'117.65','CodigoDeBarra'=>'7798140253402','Pvp'=>'117.65']);\nDB::table('sales')->insert(['Codigo' =>'8038833','Precio'=>'191.01','CodigoDeBarra'=>'7798140259725','Pvp'=>'191.01']);\nDB::table('sales')->insert(['Codigo' =>'8032778','Precio'=>'272.85','CodigoDeBarra'=>'7798140258490','Pvp'=>'272.85']);\nDB::table('sales')->insert(['Codigo' =>'8039419','Precio'=>'170.62','CodigoDeBarra'=>'7798140259749','Pvp'=>'170.62']);\nDB::table('sales')->insert(['Codigo' =>'8024047','Precio'=>'260.63','CodigoDeBarra'=>'7798140251750','Pvp'=>'260.63']);\nDB::table('sales')->insert(['Codigo' =>'8023794','Precio'=>'321.38','CodigoDeBarra'=>'7798140252030','Pvp'=>'321.38']);\nDB::table('sales')->insert(['Codigo' =>'8033182','Precio'=>'289.39','CodigoDeBarra'=>'7798140258346','Pvp'=>'289.39']);\nDB::table('sales')->insert(['Codigo' =>'8028023','Precio'=>'242.34','CodigoDeBarra'=>'7798140252559','Pvp'=>'242.34']);\nDB::table('sales')->insert(['Codigo' =>'8024048','Precio'=>'254.10','CodigoDeBarra'=>'7798140251743','Pvp'=>'254.10']);\nDB::table('sales')->insert(['Codigo' =>'8032780','Precio'=>'254.10','CodigoDeBarra'=>'7798140258513','Pvp'=>'254.10']);\nDB::table('sales')->insert(['Codigo' =>'8041161','Precio'=>'289.39','CodigoDeBarra'=>'7798140259930','Pvp'=>'289.39']);\nDB::table('sales')->insert(['Codigo' =>'8043255','Precio'=>'186.21','CodigoDeBarra'=>'7798140253884','Pvp'=>'186.21']);\nDB::table('sales')->insert(['Codigo' =>'4794031','Precio'=>'1183.31','CodigoDeBarra'=>'7791763001139','Pvp'=>'1183.31']);\nDB::table('sales')->insert(['Codigo' =>'8006801','Precio'=>'152.94','CodigoDeBarra'=>'7793397473214','Pvp'=>'152.94']);\nDB::table('sales')->insert(['Codigo' =>'637455','Precio'=>'23477.10','CodigoDeBarra'=>'7795367009232','Pvp'=>'23477.10']);\nDB::table('sales')->insert(['Codigo' =>'637468','Precio'=>'31666.35','CodigoDeBarra'=>'7795367009249','Pvp'=>'31666.35']);\nDB::table('sales')->insert(['Codigo' =>'6296841','Precio'=>'27588.30','CodigoDeBarra'=>'7794640820793','Pvp'=>'27588.30']);\nDB::table('sales')->insert(['Codigo' =>'4528470','Precio'=>'239702.85','CodigoDeBarra'=>'7793397090008','Pvp'=>'239702.85']);\nDB::table('sales')->insert(['Codigo' =>'6144711','Precio'=>'268336.73','CodigoDeBarra'=>'7795306010664','Pvp'=>'268336.73']);\nDB::table('sales')->insert(['Codigo' =>'6220411','Precio'=>'137.26','CodigoDeBarra'=>'7798028520053','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'6220412','Precio'=>'137.26','CodigoDeBarra'=>'7798028520060','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'6220413','Precio'=>'137.26','CodigoDeBarra'=>'7798028520077','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'6220414','Precio'=>'137.26','CodigoDeBarra'=>'7798028520084','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'6220415','Precio'=>'137.26','CodigoDeBarra'=>'7798028520091','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'6220416','Precio'=>'137.26','CodigoDeBarra'=>'7798028520107','Pvp'=>'137.26']);\nDB::table('sales')->insert(['Codigo' =>'5376261','Precio'=>'33874.39','CodigoDeBarra'=>'7798061752565','Pvp'=>'33874.39']);\nDB::table('sales')->insert(['Codigo' =>'5376262','Precio'=>'66049.14','CodigoDeBarra'=>'7798061752572','Pvp'=>'66049.14']);\nDB::table('sales')->insert(['Codigo' =>'6336972','Precio'=>'108348.80','CodigoDeBarra'=>'7798061752558','Pvp'=>'108348.80']);\nDB::table('sales')->insert(['Codigo' =>'5195421','Precio'=>'15283.85','CodigoDeBarra'=>'7795373022409','Pvp'=>'15283.85']);\nDB::table('sales')->insert(['Codigo' =>'5681261','Precio'=>'408.93','CodigoDeBarra'=>'7795367055208','Pvp'=>'408.93']);\nDB::table('sales')->insert(['Codigo' =>'5681391','Precio'=>'1841.52','CodigoDeBarra'=>'7795367055215','Pvp'=>'1841.52']);\nDB::table('sales')->insert(['Codigo' =>'6027681','Precio'=>'2456.47','CodigoDeBarra'=>'7795367000260','Pvp'=>'2456.47']);\nDB::table('sales')->insert(['Codigo' =>'5671131','Precio'=>'4291.50','CodigoDeBarra'=>'7795367055222','Pvp'=>'4291.50']);\nDB::table('sales')->insert(['Codigo' =>'5081752','Precio'=>'108281.77','CodigoDeBarra'=>'7798096990376','Pvp'=>'108281.77']);\nDB::table('sales')->insert(['Codigo' =>'5969683','Precio'=>'31055.33','CodigoDeBarra'=>'7798061752015','Pvp'=>'31055.33']);\nDB::table('sales')->insert(['Codigo' =>'5969713','Precio'=>'33897.01','CodigoDeBarra'=>'7798061752022','Pvp'=>'33897.01']);\nDB::table('sales')->insert(['Codigo' =>'8029457','Precio'=>'78735.35','CodigoDeBarra'=>'7798061752589','Pvp'=>'78735.35']);\nDB::table('sales')->insert(['Codigo' =>'9999260','Precio'=>'712.18','CodigoDeBarra'=>'7791940000078','Pvp'=>'712.18']);\nDB::table('sales')->insert(['Codigo' =>'8008336','Precio'=>'585.12','CodigoDeBarra'=>'7791940133028','Pvp'=>'585.12']);\nDB::table('sales')->insert(['Codigo' =>'5275563','Precio'=>'1865.34','CodigoDeBarra'=>'7791829009499','Pvp'=>'1865.34']);\nDB::table('sales')->insert(['Codigo' =>'8028069','Precio'=>'350.13','CodigoDeBarra'=>'7791829009628','Pvp'=>'350.13']);\nDB::table('sales')->insert(['Codigo' =>'5778391','Precio'=>'65761.26','CodigoDeBarra'=>'7792499701003','Pvp'=>'65761.26']);\nDB::table('sales')->insert(['Codigo' =>'8001640','Precio'=>'198.38','CodigoDeBarra'=>'7798113690807','Pvp'=>'198.38']);\nDB::table('sales')->insert(['Codigo' =>'8038115','Precio'=>'198.38','CodigoDeBarra'=>'7798113690814','Pvp'=>'198.38']);\nDB::table('sales')->insert(['Codigo' =>'8042057','Precio'=>'514.30','CodigoDeBarra'=>'7798113693204','Pvp'=>'514.30']);\nDB::table('sales')->insert(['Codigo' =>'5882422','Precio'=>'72546.69','CodigoDeBarra'=>'7795314177342','Pvp'=>'72546.69']);\nDB::table('sales')->insert(['Codigo' =>'5882391','Precio'=>'71203.14','CodigoDeBarra'=>'8470007599289','Pvp'=>'71203.14']);\nDB::table('sales')->insert(['Codigo' =>'8023262','Precio'=>'53939.93','CodigoDeBarra'=>'7795326003554','Pvp'=>'53939.93']);\nDB::table('sales')->insert(['Codigo' =>'5832001','Precio'=>'3901.73','CodigoDeBarra'=>'7795348251179','Pvp'=>'3901.73']);\nDB::table('sales')->insert(['Codigo' =>'6464130','Precio'=>'1363069.11','CodigoDeBarra'=>'7793397090398','Pvp'=>'1363069.11']);\nDB::table('sales')->insert(['Codigo' =>'8028044','Precio'=>'221.51','CodigoDeBarra'=>'7798140252207','Pvp'=>'221.51']);\nDB::table('sales')->insert(['Codigo' =>'8027070','Precio'=>'164.33','CodigoDeBarra'=>'7798140252382','Pvp'=>'164.33']);\nDB::table('sales')->insert(['Codigo' =>'8028284','Precio'=>'201.92','CodigoDeBarra'=>'7798140252894','Pvp'=>'201.92']);\nDB::table('sales')->insert(['Codigo' =>'8026076','Precio'=>'321.52','CodigoDeBarra'=>'7798140252115','Pvp'=>'321.52']);\nDB::table('sales')->insert(['Codigo' =>'8028285','Precio'=>'149.89','CodigoDeBarra'=>'7798140252887','Pvp'=>'149.89']);\nDB::table('sales')->insert(['Codigo' =>'8023662','Precio'=>'308.32','CodigoDeBarra'=>'650240031359','Pvp'=>'308.32']);\nDB::table('sales')->insert(['Codigo' =>'8023663','Precio'=>'212.01','CodigoDeBarra'=>'7798140252092','Pvp'=>'212.01']);\nDB::table('sales')->insert(['Codigo' =>'528125','Precio'=>'189.08','CodigoDeBarra'=>'7794207000316','Pvp'=>'189.08']);\nDB::table('sales')->insert(['Codigo' =>'4897171','Precio'=>'23353.34','CodigoDeBarra'=>'7796930008003','Pvp'=>'23353.34']);\nDB::table('sales')->insert(['Codigo' =>'4805672','Precio'=>'236.95','CodigoDeBarra'=>'7791763337801','Pvp'=>'236.95']);\nDB::table('sales')->insert(['Codigo' =>'3456381','Precio'=>'136.67','CodigoDeBarra'=>'7791763002747','Pvp'=>'136.67']);\nDB::table('sales')->insert(['Codigo' =>'3727723','Precio'=>'280.20','CodigoDeBarra'=>'7792098000231','Pvp'=>'280.20']);\nDB::table('sales')->insert(['Codigo' =>'4536393','Precio'=>'311.60','CodigoDeBarra'=>'7792098362575','Pvp'=>'311.60']);\nDB::table('sales')->insert(['Codigo' =>'3914251','Precio'=>'168.55','CodigoDeBarra'=>'7798113693136','Pvp'=>'168.55']);\nDB::table('sales')->insert(['Codigo' =>'637413','Precio'=>'23517.84','CodigoDeBarra'=>'7791829001226','Pvp'=>'23517.84']);\nDB::table('sales')->insert(['Codigo' =>'4945182','Precio'=>'806.34','CodigoDeBarra'=>'7798091910072','Pvp'=>'806.34']);\nDB::table('sales')->insert(['Codigo' =>'4177181','Precio'=>'328.41','CodigoDeBarra'=>'7795356000929','Pvp'=>'328.41']);\nDB::table('sales')->insert(['Codigo' =>'4177182','Precio'=>'366.26','CodigoDeBarra'=>'7792412000879','Pvp'=>'366.26']);\nDB::table('sales')->insert(['Codigo' =>'4177183','Precio'=>'441.97','CodigoDeBarra'=>'7795356998967','Pvp'=>'441.97']);\nDB::table('sales')->insert(['Codigo' =>'4600301','Precio'=>'233.64','CodigoDeBarra'=>'7795356000943','Pvp'=>'233.64']);\nDB::table('sales')->insert(['Codigo' =>'4600302','Precio'=>'439.48','CodigoDeBarra'=>'7795356998820','Pvp'=>'439.48']);\nDB::table('sales')->insert(['Codigo' =>'6374841','Precio'=>'37622.51','CodigoDeBarra'=>'7794640820854','Pvp'=>'37622.51']);\nDB::table('sales')->insert(['Codigo' =>'8029076','Precio'=>'15013.94','CodigoDeBarra'=>'7795348003242','Pvp'=>'15013.94']);\nDB::table('sales')->insert(['Codigo' =>'8006896','Precio'=>'2464.32','CodigoDeBarra'=>'7798084681262','Pvp'=>'2464.32']);\nDB::table('sales')->insert(['Codigo' =>'4112311','Precio'=>'935.56','CodigoDeBarra'=>'7798299850125','Pvp'=>'935.56']);\nDB::table('sales')->insert(['Codigo' =>'5505551','Precio'=>'24470.82','CodigoDeBarra'=>'7792183488647','Pvp'=>'24470.82']);\nDB::table('sales')->insert(['Codigo' =>'9934036','Precio'=>'33361.32','CodigoDeBarra'=>'7795367053969','Pvp'=>'33361.32']);\nDB::table('sales')->insert(['Codigo' =>'6273715','Precio'=>'590.97','CodigoDeBarra'=>'7791763001320','Pvp'=>'590.97']);\nDB::table('sales')->insert(['Codigo' =>'6273716','Precio'=>'759.47','CodigoDeBarra'=>'7791763338044','Pvp'=>'759.47']);\nDB::table('sales')->insert(['Codigo' =>'8042510','Precio'=>'298.94','CodigoDeBarra'=>'7798140253563','Pvp'=>'298.94']);\nDB::table('sales')->insert(['Codigo' =>'8025471','Precio'=>'239.55','CodigoDeBarra'=>'7798140251590','Pvp'=>'239.55']);\nDB::table('sales')->insert(['Codigo' =>'8033863','Precio'=>'277.71','CodigoDeBarra'=>'7798140258711','Pvp'=>'277.71']);\nDB::table('sales')->insert(['Codigo' =>'5473391','Precio'=>'10782.53','CodigoDeBarra'=>'7795381000871','Pvp'=>'10782.53']);\nDB::table('sales')->insert(['Codigo' =>'5660262','Precio'=>'126660.06','CodigoDeBarra'=>'7795306332469','Pvp'=>'126660.06']);\nDB::table('sales')->insert(['Codigo' =>'8039148','Precio'=>'24634.58','CodigoDeBarra'=>'4034341002412','Pvp'=>'24634.58']);\nDB::table('sales')->insert(['Codigo' =>'5926971','Precio'=>'298320.65','CodigoDeBarra'=>'7798144380029','Pvp'=>'298320.65']);\nDB::table('sales')->insert(['Codigo' =>'5525972','Precio'=>'447.50','CodigoDeBarra'=>'7795378004592','Pvp'=>'447.50']);\nDB::table('sales')->insert(['Codigo' =>'8040225','Precio'=>'1507.06','CodigoDeBarra'=>'7795371459504','Pvp'=>'1507.06']);\nDB::table('sales')->insert(['Codigo' =>'8031741','Precio'=>'1343.53','CodigoDeBarra'=>'7795371459443','Pvp'=>'1343.53']);\nDB::table('sales')->insert(['Codigo' =>'8031205','Precio'=>'1068.61','CodigoDeBarra'=>'7703281002031','Pvp'=>'1068.61']);\nDB::table('sales')->insert(['Codigo' =>'5559711','Precio'=>'369.64','CodigoDeBarra'=>'7796363002692','Pvp'=>'369.64']);\nDB::table('sales')->insert(['Codigo' =>'6480551','Precio'=>'369.64','CodigoDeBarra'=>'7796363003736','Pvp'=>'369.64']);\nDB::table('sales')->insert(['Codigo' =>'8019720','Precio'=>'345.44','CodigoDeBarra'=>'650240011351','Pvp'=>'345.44']);\nDB::table('sales')->insert(['Codigo' =>'8040105','Precio'=>'553624.44','CodigoDeBarra'=>'7795314193649','Pvp'=>'553624.44']);\nDB::table('sales')->insert(['Codigo' =>'8042790','Precio'=>'263317.20','CodigoDeBarra'=>'7795314193670','Pvp'=>'263317.20']);\nDB::table('sales')->insert(['Codigo' =>'8033701','Precio'=>'18723.81','CodigoDeBarra'=>'4034341002535','Pvp'=>'18723.81']);\nDB::table('sales')->insert(['Codigo' =>'8035192','Precio'=>'1327.04','CodigoDeBarra'=>'8470001771049','Pvp'=>'1327.04']);\nDB::table('sales')->insert(['Codigo' =>'6176711','Precio'=>'893.16','CodigoDeBarra'=>'7798122340373','Pvp'=>'893.16']);\nDB::table('sales')->insert(['Codigo' =>'5650681','Precio'=>'946.90','CodigoDeBarra'=>'7798122340366','Pvp'=>'946.90']);\nDB::table('sales')->insert(['Codigo' =>'6203001','Precio'=>'1373.21','CodigoDeBarra'=>'7798161930122','Pvp'=>'1373.21']);\nDB::table('sales')->insert(['Codigo' =>'6203002','Precio'=>'2575.18','CodigoDeBarra'=>'7798161930115','Pvp'=>'2575.18']);\nDB::table('sales')->insert(['Codigo' =>'418922','Precio'=>'215.21','CodigoDeBarra'=>'7798006300592','Pvp'=>'215.21']);\nDB::table('sales')->insert(['Codigo' =>'5732392','Precio'=>'70910.80','CodigoDeBarra'=>'7798084685024','Pvp'=>'70910.80']);\nDB::table('sales')->insert(['Codigo' =>'8006709','Precio'=>'10192.61','CodigoDeBarra'=>'7792069000581','Pvp'=>'10192.61']);\nDB::table('sales')->insert(['Codigo' =>'4422101','Precio'=>'20556.34','CodigoDeBarra'=>'7792069000598','Pvp'=>'20556.34']);\nDB::table('sales')->insert(['Codigo' =>'5192731','Precio'=>'7456.45','CodigoDeBarra'=>'7795381410441','Pvp'=>'7456.45']);\nDB::table('sales')->insert(['Codigo' =>'5192891','Precio'=>'31905.29','CodigoDeBarra'=>'7795381410458','Pvp'=>'31905.29']);\nDB::table('sales')->insert(['Codigo' =>'5192941','Precio'=>'10011.96','CodigoDeBarra'=>'7795381410465','Pvp'=>'10011.96']);\nDB::table('sales')->insert(['Codigo' =>'4497371','Precio'=>'2205.92','CodigoDeBarra'=>'7795355998050','Pvp'=>'2205.92']);\nDB::table('sales')->insert(['Codigo' =>'4456282','Precio'=>'490.48','CodigoDeBarra'=>'7791763337696','Pvp'=>'490.48']);\nDB::table('sales')->insert(['Codigo' =>'4456281','Precio'=>'279.84','CodigoDeBarra'=>'7791763337689','Pvp'=>'279.84']);\nDB::table('sales')->insert(['Codigo' =>'8016138','Precio'=>'263.69','CodigoDeBarra'=>'7792796000298','Pvp'=>'263.69']);\nDB::table('sales')->insert(['Codigo' =>'6418421','Precio'=>'252.20','CodigoDeBarra'=>'7791171001295','Pvp'=>'252.20']);\nDB::table('sales')->insert(['Codigo' =>'6418422','Precio'=>'720.56','CodigoDeBarra'=>'7791171001301','Pvp'=>'720.56']);\nDB::table('sales')->insert(['Codigo' =>'6418551','Precio'=>'423.33','CodigoDeBarra'=>'7791171001318','Pvp'=>'423.33']);\nDB::table('sales')->insert(['Codigo' =>'8007096','Precio'=>'69696.26','CodigoDeBarra'=>'7792371477798','Pvp'=>'69696.26']);\nDB::table('sales')->insert(['Codigo' =>'3791240','Precio'=>'573.23','CodigoDeBarra'=>'7795336256001','Pvp'=>'573.23']);\nDB::table('sales')->insert(['Codigo' =>'3791320','Precio'=>'978.93','CodigoDeBarra'=>'7795336256056','Pvp'=>'978.93']);\nDB::table('sales')->insert(['Codigo' =>'639900','Precio'=>'626107.82','CodigoDeBarra'=>'4048846011978','Pvp'=>'626107.82']);\nDB::table('sales')->insert(['Codigo' =>'639913','Precio'=>'460190.21','CodigoDeBarra'=>'4048846011961','Pvp'=>'460190.21']);\nDB::table('sales')->insert(['Codigo' =>'8006831','Precio'=>'1760.19','CodigoDeBarra'=>'7798035313327','Pvp'=>'1760.19']);\nDB::table('sales')->insert(['Codigo' =>'557884','Precio'=>'340.66','CodigoDeBarra'=>'7798035313792','Pvp'=>'340.66']);\nDB::table('sales')->insert(['Codigo' =>'8007063','Precio'=>'2214.73','CodigoDeBarra'=>'7798035310265','Pvp'=>'2214.73']);\nDB::table('sales')->insert(['Codigo' =>'8006825','Precio'=>'2659.17','CodigoDeBarra'=>'7798035310241','Pvp'=>'2659.17']);\nDB::table('sales')->insert(['Codigo' =>'449969','Precio'=>'1874.79','CodigoDeBarra'=>'7798035310289','Pvp'=>'1874.79']);\nDB::table('sales')->insert(['Codigo' =>'556268','Precio'=>'132900.48','CodigoDeBarra'=>'7798035314164','Pvp'=>'132900.48']);\nDB::table('sales')->insert(['Codigo' =>'605284','Precio'=>'216.42','CodigoDeBarra'=>'7798035310036','Pvp'=>'216.42']);\nDB::table('sales')->insert(['Codigo' =>'605268','Precio'=>'970.10','CodigoDeBarra'=>'7798035310050','Pvp'=>'970.10']);\nDB::table('sales')->insert(['Codigo' =>'605271','Precio'=>'1759.46','CodigoDeBarra'=>'7798035310098','Pvp'=>'1759.46']);\nDB::table('sales')->insert(['Codigo' =>'5656553','Precio'=>'604.38','CodigoDeBarra'=>'7792175008754','Pvp'=>'604.38']);\nDB::table('sales')->insert(['Codigo' =>'5656683','Precio'=>'738.69','CodigoDeBarra'=>'7792175008761','Pvp'=>'738.69']);\nDB::table('sales')->insert(['Codigo' =>'5730714','Precio'=>'687.70','CodigoDeBarra'=>'7792175008778','Pvp'=>'687.70']);\nDB::table('sales')->insert(['Codigo' =>'5730844','Precio'=>'759.14','CodigoDeBarra'=>'7792175008785','Pvp'=>'759.14']);\nDB::table('sales')->insert(['Codigo' =>'8041143','Precio'=>'217278.53','CodigoDeBarra'=>'7793397051856','Pvp'=>'217278.53']);\nDB::table('sales')->insert(['Codigo' =>'8041144','Precio'=>'204443.07','CodigoDeBarra'=>'7793397051863','Pvp'=>'204443.07']);\nDB::table('sales')->insert(['Codigo' =>'8041145','Precio'=>'237325.21','CodigoDeBarra'=>'7793397051870','Pvp'=>'237325.21']);\nDB::table('sales')->insert(['Codigo' =>'6501710','Precio'=>'237274.75','CodigoDeBarra'=>'7793397051887','Pvp'=>'237274.75']);\nDB::table('sales')->insert(['Codigo' =>'630400','Precio'=>'1508.19','CodigoDeBarra'=>'7798035311064','Pvp'=>'1508.19']);\nDB::table('sales')->insert(['Codigo' =>'6226391','Precio'=>'212976.77','CodigoDeBarra'=>'7796285110109','Pvp'=>'212976.77']);\nDB::table('sales')->insert(['Codigo' =>'6040681','Precio'=>'127640.74','CodigoDeBarra'=>'7798084683051','Pvp'=>'127640.74']);\nDB::table('sales')->insert(['Codigo' =>'8021781','Precio'=>'284.22','CodigoDeBarra'=>'8410104882143','Pvp'=>'284.22']);\nDB::table('sales')->insert(['Codigo' =>'8011152','Precio'=>'284.07','CodigoDeBarra'=>'3059944021104','Pvp'=>'284.07']);\nDB::table('sales')->insert(['Codigo' =>'8031397','Precio'=>'277.74','CodigoDeBarra'=>'7791130003131','Pvp'=>'277.74']);\nDB::table('sales')->insert(['Codigo' =>'8019383','Precio'=>'277.89','CodigoDeBarra'=>'7805010001909','Pvp'=>'277.89']);\nDB::table('sales')->insert(['Codigo' =>'8009205','Precio'=>'277.89','CodigoDeBarra'=>'8410104882136','Pvp'=>'277.89']);\nDB::table('sales')->insert(['Codigo' =>'8019499','Precio'=>'358.68','CodigoDeBarra'=>'7805010002135','Pvp'=>'358.68']);\nDB::table('sales')->insert(['Codigo' =>'8024174','Precio'=>'207.64','CodigoDeBarra'=>'7702626206752','Pvp'=>'207.64']);\nDB::table('sales')->insert(['Codigo' =>'8032254','Precio'=>'801.70','CodigoDeBarra'=>'7702626214597','Pvp'=>'801.70']);\nDB::table('sales')->insert(['Codigo' =>'6114003','Precio'=>'6618.94','CodigoDeBarra'=>'7798061752213','Pvp'=>'6618.94']);\nDB::table('sales')->insert(['Codigo' =>'5273471','Precio'=>'133242.81','CodigoDeBarra'=>'7795314026961','Pvp'=>'133242.81']);\nDB::table('sales')->insert(['Codigo' =>'636613','Precio'=>'13921.94','CodigoDeBarra'=>'7795314177397','Pvp'=>'13921.94']);\nDB::table('sales')->insert(['Codigo' =>'636626','Precio'=>'36198.65','CodigoDeBarra'=>'7795314177380','Pvp'=>'36198.65']);\nDB::table('sales')->insert(['Codigo' =>'6494001','Precio'=>'15028.18','CodigoDeBarra'=>'7792183489507','Pvp'=>'15028.18']);\nDB::table('sales')->insert(['Codigo' =>'642384','Precio'=>'524453.51','CodigoDeBarra'=>'8054083013336','Pvp'=>'524453.51']);\nDB::table('sales')->insert(['Codigo' =>'8028608','Precio'=>'113191.40','CodigoDeBarra'=>'8054083013343','Pvp'=>'113191.40']);\nDB::table('sales')->insert(['Codigo' =>'8007527','Precio'=>'149.48','CodigoDeBarra'=>'7798028522453','Pvp'=>'149.48']);\nDB::table('sales')->insert(['Codigo' =>'8007528','Precio'=>'188.25','CodigoDeBarra'=>'7798028522460','Pvp'=>'188.25']);\nDB::table('sales')->insert(['Codigo' =>'8007529','Precio'=>'212.25','CodigoDeBarra'=>'7798028522477','Pvp'=>'212.25']);\nDB::table('sales')->insert(['Codigo' =>'8007530','Precio'=>'245.14','CodigoDeBarra'=>'7798028522484','Pvp'=>'245.14']);\nDB::table('sales')->insert(['Codigo' =>'8038749','Precio'=>'138972.12','CodigoDeBarra'=>'7795320052015','Pvp'=>'138972.12']);\nDB::table('sales')->insert(['Codigo' =>'5297341','Precio'=>'99266.05','CodigoDeBarra'=>'7795320051018','Pvp'=>'99266.05']);\nDB::table('sales')->insert(['Codigo' =>'8038866','Precio'=>'138972.12','CodigoDeBarra'=>'7795320052008','Pvp'=>'138972.12']);\nDB::table('sales')->insert(['Codigo' =>'6103261','Precio'=>'2081.33','CodigoDeBarra'=>'7791829000700','Pvp'=>'2081.33']);\nDB::table('sales')->insert(['Codigo' =>'4124113','Precio'=>'149.70','CodigoDeBarra'=>'7794207084019','Pvp'=>'149.70']);\nDB::table('sales')->insert(['Codigo' =>'4503043','Precio'=>'145.81','CodigoDeBarra'=>'7795371458293','Pvp'=>'145.81']);\nDB::table('sales')->insert(['Codigo' =>'4503045','Precio'=>'259.79','CodigoDeBarra'=>'7795371458309','Pvp'=>'259.79']);\nDB::table('sales')->insert(['Codigo' =>'8007245','Precio'=>'54.72','CodigoDeBarra'=>'7791520004137','Pvp'=>'54.72']);\nDB::table('sales')->insert(['Codigo' =>'8011639','Precio'=>'54.72','CodigoDeBarra'=>'7791520004151','Pvp'=>'54.72']);\nDB::table('sales')->insert(['Codigo' =>'8011638','Precio'=>'54.72','CodigoDeBarra'=>'7791520004144','Pvp'=>'54.72']);\nDB::table('sales')->insert(['Codigo' =>'8007246','Precio'=>'54.72','CodigoDeBarra'=>'7791520004120','Pvp'=>'54.72']);\nDB::table('sales')->insert(['Codigo' =>'8007247','Precio'=>'54.72','CodigoDeBarra'=>'7791520004113','Pvp'=>'54.72']);\nDB::table('sales')->insert(['Codigo' =>'8011456','Precio'=>'136.52','CodigoDeBarra'=>'7791520007299','Pvp'=>'136.52']);\nDB::table('sales')->insert(['Codigo' =>'8018958','Precio'=>'104.74','CodigoDeBarra'=>'7791520009729','Pvp'=>'104.74']);\nDB::table('sales')->insert(['Codigo' =>'8018961','Precio'=>'104.74','CodigoDeBarra'=>'7791520009750','Pvp'=>'104.74']);\nDB::table('sales')->insert(['Codigo' =>'8018960','Precio'=>'104.74','CodigoDeBarra'=>'7791520009743','Pvp'=>'104.74']);\nDB::table('sales')->insert(['Codigo' =>'8018959','Precio'=>'104.74','CodigoDeBarra'=>'7791520009736','Pvp'=>'104.74']);\nDB::table('sales')->insert(['Codigo' =>'8018963','Precio'=>'104.74','CodigoDeBarra'=>'7791520009767','Pvp'=>'104.74']);\nDB::table('sales')->insert(['Codigo' =>'8040457','Precio'=>'52221.81','CodigoDeBarra'=>'7795990002266','Pvp'=>'52221.81']);\nDB::table('sales')->insert(['Codigo' =>'8041120','Precio'=>'52221.81','CodigoDeBarra'=>'7795990002273','Pvp'=>'52221.81']);\nDB::table('sales')->insert(['Codigo' =>'8041121','Precio'=>'52221.81','CodigoDeBarra'=>'7795990002280','Pvp'=>'52221.81']);\nDB::table('sales')->insert(['Codigo' =>'8042457','Precio'=>'36015.05','CodigoDeBarra'=>'7795990002259','Pvp'=>'36015.05']);\nDB::table('sales')->insert(['Codigo' =>'8000418','Precio'=>'1305.00','CodigoDeBarra'=>'7798129410680','Pvp'=>'1305.00']);\nDB::table('sales')->insert(['Codigo' =>'3929441','Precio'=>'83423.66','CodigoDeBarra'=>'779802140259','Pvp'=>'83423.66']);\nDB::table('sales')->insert(['Codigo' =>'8042189','Precio'=>'488.16','CodigoDeBarra'=>'7798122341417','Pvp'=>'488.16']);\nDB::table('sales')->insert(['Codigo' =>'8042190','Precio'=>'488.16','CodigoDeBarra'=>'7798122341424','Pvp'=>'488.16']);\nDB::table('sales')->insert(['Codigo' =>'8040502','Precio'=>'598.49','CodigoDeBarra'=>'7798122341394','Pvp'=>'598.49']);\nDB::table('sales')->insert(['Codigo' =>'9993452','Precio'=>'52.09','CodigoDeBarra'=>'75046330','Pvp'=>'52.09']);\nDB::table('sales')->insert(['Codigo' =>'9996425','Precio'=>'177.64','CodigoDeBarra'=>'7506309897813','Pvp'=>'177.64']);\nDB::table('sales')->insert(['Codigo' =>'8009757','Precio'=>'138.24','CodigoDeBarra'=>'7506195183359','Pvp'=>'138.24']);\nDB::table('sales')->insert(['Codigo' =>'9999656','Precio'=>'1382.48','CodigoDeBarra'=>'7506309892795','Pvp'=>'1382.48']);\nDB::table('sales')->insert(['Codigo' =>'8009756','Precio'=>'126.17','CodigoDeBarra'=>'7501006745160','Pvp'=>'126.17']);\nDB::table('sales')->insert(['Codigo' =>'9995242','Precio'=>'1243.15','CodigoDeBarra'=>'7506195172889','Pvp'=>'1243.15']);\nDB::table('sales')->insert(['Codigo' =>'6172681','Precio'=>'64137.54','CodigoDeBarra'=>'7797991000388','Pvp'=>'64137.54']);\nDB::table('sales')->insert(['Codigo' =>'6250133','Precio'=>'899.80','CodigoDeBarra'=>'7791829018903','Pvp'=>'899.80']);\nDB::table('sales')->insert(['Codigo' =>'571171','Precio'=>'19980.35','CodigoDeBarra'=>'7798035313921','Pvp'=>'19980.35']);\nDB::table('sales')->insert(['Codigo' =>'6420551','Precio'=>'359988.68','CodigoDeBarra'=>'7793397051931','Pvp'=>'359988.68']);\nDB::table('sales')->insert(['Codigo' =>'6420550','Precio'=>'269978.80','CodigoDeBarra'=>'7793397051924','Pvp'=>'269978.80']);\nDB::table('sales')->insert(['Codigo' =>'2489731','Precio'=>'136.33','CodigoDeBarra'=>'7795331006601','Pvp'=>'136.33']);\nDB::table('sales')->insert(['Codigo' =>'8013558','Precio'=>'1548.71','CodigoDeBarra'=>'7795345121314','Pvp'=>'1548.71']);\nDB::table('sales')->insert(['Codigo' =>'8013344','Precio'=>'1548.72','CodigoDeBarra'=>'7795345000350','Pvp'=>'1548.72']);\nDB::table('sales')->insert(['Codigo' =>'5917007','Precio'=>'1165.76','CodigoDeBarra'=>'7795345002637','Pvp'=>'1165.76']);\nDB::table('sales')->insert(['Codigo' =>'8013078','Precio'=>'1548.72','CodigoDeBarra'=>'7795345121178','Pvp'=>'1548.72']);\nDB::table('sales')->insert(['Codigo' =>'8008969','Precio'=>'339.03','CodigoDeBarra'=>'7795345120850','Pvp'=>'339.03']);\nDB::table('sales')->insert(['Codigo' =>'8034103','Precio'=>'1908.72','CodigoDeBarra'=>'','Pvp'=>'1908.72']);\nDB::table('sales')->insert(['Codigo' =>'8033455','Precio'=>'1670.63','CodigoDeBarra'=>'7798180920524','Pvp'=>'1670.63']);\nDB::table('sales')->insert(['Codigo' =>'641655','Precio'=>'812.07','CodigoDeBarra'=>'7798180920326','Pvp'=>'812.07']);\nDB::table('sales')->insert(['Codigo' =>'5977681','Precio'=>'2098.72','CodigoDeBarra'=>'7795367000239','Pvp'=>'2098.72']);\nDB::table('sales')->insert(['Codigo' =>'4636381','Precio'=>'4797.92','CodigoDeBarra'=>'7795304866133','Pvp'=>'4797.92']);\nDB::table('sales')->insert(['Codigo' =>'8006942','Precio'=>'14221.25','CodigoDeBarra'=>'7792183487787','Pvp'=>'14221.25']);\nDB::table('sales')->insert(['Codigo' =>'6351971','Precio'=>'14355.49','CodigoDeBarra'=>'7795348002825','Pvp'=>'14355.49']);\nDB::table('sales')->insert(['Codigo' =>'624071','Precio'=>'23163.39','CodigoDeBarra'=>'7795348001705','Pvp'=>'23163.39']);\nDB::table('sales')->insert(['Codigo' =>'8007080','Precio'=>'733.91','CodigoDeBarra'=>'7795348250189','Pvp'=>'733.91']);\nDB::table('sales')->insert(['Codigo' =>'6264394','Precio'=>'892.17','CodigoDeBarra'=>'7791763000989','Pvp'=>'892.17']);\nDB::table('sales')->insert(['Codigo' =>'5819974','Precio'=>'985.10','CodigoDeBarra'=>'7791763000071','Pvp'=>'985.10']);\nDB::table('sales')->insert(['Codigo' =>'8043515','Precio'=>'237.98','CodigoDeBarra'=>'7798008295605','Pvp'=>'237.98']);\nDB::table('sales')->insert(['Codigo' =>'637739','Precio'=>'133.95','CodigoDeBarra'=>'7794207000958','Pvp'=>'133.95']);\nDB::table('sales')->insert(['Codigo' =>'655171','Precio'=>'103.97','CodigoDeBarra'=>'7794207084316','Pvp'=>'103.97']);\nDB::table('sales')->insert(['Codigo' =>'4798090','Precio'=>'158.66','CodigoDeBarra'=>'7794207084071','Pvp'=>'158.66']);\nDB::table('sales')->insert(['Codigo' =>'8023753','Precio'=>'160.93','CodigoDeBarra'=>'7795323002789','Pvp'=>'160.93']);\nDB::table('sales')->insert(['Codigo' =>'8031146','Precio'=>'37.85','CodigoDeBarra'=>'7795323003465','Pvp'=>'37.85']);\nDB::table('sales')->insert(['Codigo' =>'8024435','Precio'=>'1372.01','CodigoDeBarra'=>'7795323002925','Pvp'=>'1372.01']);\nDB::table('sales')->insert(['Codigo' =>'8023882','Precio'=>'1462.03','CodigoDeBarra'=>'7795323002802','Pvp'=>'1462.03']);\nDB::table('sales')->insert(['Codigo' =>'8021521','Precio'=>'43.36','CodigoDeBarra'=>'7795323002352','Pvp'=>'43.36']);\nDB::table('sales')->insert(['Codigo' =>'8021127','Precio'=>'381.41','CodigoDeBarra'=>'7795323002260','Pvp'=>'381.41']);\nDB::table('sales')->insert(['Codigo' =>'8020982','Precio'=>'638.62','CodigoDeBarra'=>'7795323002253','Pvp'=>'638.62']);\nDB::table('sales')->insert(['Codigo' =>'8013612','Precio'=>'719.44','CodigoDeBarra'=>'7795323002314','Pvp'=>'719.44']);\nDB::table('sales')->insert(['Codigo' =>'8021522','Precio'=>'41.52','CodigoDeBarra'=>'7795323002369','Pvp'=>'41.52']);\nDB::table('sales')->insert(['Codigo' =>'8020964','Precio'=>'605.53','CodigoDeBarra'=>'7795323002239','Pvp'=>'605.53']);\nDB::table('sales')->insert(['Codigo' =>'8021523','Precio'=>'39.68','CodigoDeBarra'=>'7795323002192','Pvp'=>'39.68']);\nDB::table('sales')->insert(['Codigo' =>'8021193','Precio'=>'543.08','CodigoDeBarra'=>'7795323002208','Pvp'=>'543.08']);\nDB::table('sales')->insert(['Codigo' =>'8029164','Precio'=>'510.01','CodigoDeBarra'=>'7795323002970','Pvp'=>'510.01']);\nDB::table('sales')->insert(['Codigo' =>'8013939','Precio'=>'1341.15','CodigoDeBarra'=>'7795323001010','Pvp'=>'1341.15']);\nDB::table('sales')->insert(['Codigo' =>'8110385','Precio'=>'528.44','CodigoDeBarra'=>'7795323773801','Pvp'=>'528.44']);\nDB::table('sales')->insert(['Codigo' =>'8110353','Precio'=>'183.89','CodigoDeBarra'=>'7798122341509','Pvp'=>'183.89']);\nDB::table('sales')->insert(['Codigo' =>'8035019','Precio'=>'171.60','CodigoDeBarra'=>'8427426008335','Pvp'=>'171.60']);\nDB::table('sales')->insert(['Codigo' =>'8035017','Precio'=>'164.26','CodigoDeBarra'=>'8427426008007','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035028','Precio'=>'147.10','CodigoDeBarra'=>'8427426047174','Pvp'=>'147.10']);\nDB::table('sales')->insert(['Codigo' =>'8035014','Precio'=>'164.26','CodigoDeBarra'=>'8427426006485','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035020','Precio'=>'164.26','CodigoDeBarra'=>'8427426006492','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035018','Precio'=>'164.26','CodigoDeBarra'=>'8427426008380','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035016','Precio'=>'164.26','CodigoDeBarra'=>'8427426008311','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035015','Precio'=>'164.26','CodigoDeBarra'=>'8427426006461','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8035021','Precio'=>'164.26','CodigoDeBarra'=>'8427426006478','Pvp'=>'164.26']);\nDB::table('sales')->insert(['Codigo' =>'8040676','Precio'=>'269.67','CodigoDeBarra'=>'8427426029774','Pvp'=>'269.67']);\nDB::table('sales')->insert(['Codigo' =>'8040674','Precio'=>'228.01','CodigoDeBarra'=>'8427426005914','Pvp'=>'228.01']);\nDB::table('sales')->insert(['Codigo' =>'8040678','Precio'=>'318.72','CodigoDeBarra'=>'8427426040595','Pvp'=>'318.72']);\nDB::table('sales')->insert(['Codigo' =>'8040677','Precio'=>'269.67','CodigoDeBarra'=>'8427426042889','Pvp'=>'269.67']);\nDB::table('sales')->insert(['Codigo' =>'8003591','Precio'=>'206.65','CodigoDeBarra'=>'7791520065503','Pvp'=>'206.65']);\nDB::table('sales')->insert(['Codigo' =>'8003590','Precio'=>'206.65','CodigoDeBarra'=>'22400150932','Pvp'=>'206.65']);\nDB::table('sales')->insert(['Codigo' =>'8003589','Precio'=>'206.65','CodigoDeBarra'=>'7791520065527','Pvp'=>'206.65']);\nDB::table('sales')->insert(['Codigo' =>'8003595','Precio'=>'214.98','CodigoDeBarra'=>'22400210254','Pvp'=>'214.98']);\nDB::table('sales')->insert(['Codigo' =>'8003581','Precio'=>'214.98','CodigoDeBarra'=>'22400210261','Pvp'=>'214.98']);\nDB::table('sales')->insert(['Codigo' =>'8037578','Precio'=>'136.75','CodigoDeBarra'=>'7798113693280','Pvp'=>'136.75']);\nDB::table('sales')->insert(['Codigo' =>'8007034','Precio'=>'198.54','CodigoDeBarra'=>'7798113691200','Pvp'=>'198.54']);\nDB::table('sales')->insert(['Codigo' =>'5594261','Precio'=>'227.02','CodigoDeBarra'=>'7798113691217','Pvp'=>'227.02']);\nDB::table('sales')->insert(['Codigo' =>'8012709','Precio'=>'268.45','CodigoDeBarra'=>'7798113693143','Pvp'=>'268.45']);\nDB::table('sales')->insert(['Codigo' =>'5866131','Precio'=>'73136.42','CodigoDeBarra'=>'7794640227509','Pvp'=>'73136.42']);\nDB::table('sales')->insert(['Codigo' =>'5866261','Precio'=>'106298.31','CodigoDeBarra'=>'7794640820267','Pvp'=>'106298.31']);\nDB::table('sales')->insert(['Codigo' =>'563397','Precio'=>'27445.04','CodigoDeBarra'=>'7795336294393','Pvp'=>'27445.04']);\nDB::table('sales')->insert(['Codigo' =>'8038522','Precio'=>'16302.06','CodigoDeBarra'=>'7795306997729','Pvp'=>'16302.06']);\nDB::table('sales')->insert(['Codigo' =>'8038523','Precio'=>'5237.85','CodigoDeBarra'=>'7795306740318','Pvp'=>'5237.85']);\nDB::table('sales')->insert(['Codigo' =>'648955','Precio'=>'195553.08','CodigoDeBarra'=>'7795306794229','Pvp'=>'195553.08']);\nDB::table('sales')->insert(['Codigo' =>'8038524','Precio'=>'3900.48','CodigoDeBarra'=>'7795306997712','Pvp'=>'3900.48']);\nDB::table('sales')->insert(['Codigo' =>'8038691','Precio'=>'44640.48','CodigoDeBarra'=>'7795306997705','Pvp'=>'44640.48']);\nDB::table('sales')->insert(['Codigo' =>'627671','Precio'=>'10382.51','CodigoDeBarra'=>'7792219000690','Pvp'=>'10382.51']);\nDB::table('sales')->insert(['Codigo' =>'6276841','Precio'=>'18961.08','CodigoDeBarra'=>'7792219000683','Pvp'=>'18961.08']);\nDB::table('sales')->insert(['Codigo' =>'4433172','Precio'=>'85.16','CodigoDeBarra'=>'7792175005388','Pvp'=>'85.16']);\nDB::table('sales')->insert(['Codigo' =>'4433175','Precio'=>'233.12','CodigoDeBarra'=>'7792175005067','Pvp'=>'233.12']);\nDB::table('sales')->insert(['Codigo' =>'4433252','Precio'=>'99.36','CodigoDeBarra'=>'7792175005418','Pvp'=>'99.36']);\nDB::table('sales')->insert(['Codigo' =>'4433253','Precio'=>'177.83','CodigoDeBarra'=>'7792175005425','Pvp'=>'177.83']);\nDB::table('sales')->insert(['Codigo' =>'4433255','Precio'=>'262.82','CodigoDeBarra'=>'7792175005210','Pvp'=>'262.82']);\nDB::table('sales')->insert(['Codigo' =>'4433259','Precio'=>'808.71','CodigoDeBarra'=>'7792175007511','Pvp'=>'808.71']);\nDB::table('sales')->insert(['Codigo' =>'4433333','Precio'=>'249.11','CodigoDeBarra'=>'7792175005456','Pvp'=>'249.11']);\nDB::table('sales')->insert(['Codigo' =>'4433335','Precio'=>'362.15','CodigoDeBarra'=>'7792175005340','Pvp'=>'362.15']);\nDB::table('sales')->insert(['Codigo' =>'4433332','Precio'=>'138.60','CodigoDeBarra'=>'7792175005449','Pvp'=>'138.60']);\nDB::table('sales')->insert(['Codigo' =>'6397711','Precio'=>'220.61','CodigoDeBarra'=>'7792175009577','Pvp'=>'220.61']);\nDB::table('sales')->insert(['Codigo' =>'6397714','Precio'=>'1781.59','CodigoDeBarra'=>'7792175009607','Pvp'=>'1781.59']);\nDB::table('sales')->insert(['Codigo' =>'6397712','Precio'=>'406.38','CodigoDeBarra'=>'7792175009584','Pvp'=>'406.38']);\nDB::table('sales')->insert(['Codigo' =>'6397713','Precio'=>'783.43','CodigoDeBarra'=>'7792175009591','Pvp'=>'783.43']);\nDB::table('sales')->insert(['Codigo' =>'6397682','Precio'=>'1856.20','CodigoDeBarra'=>'7792175009560','Pvp'=>'1856.20']);\nDB::table('sales')->insert(['Codigo' =>'5067652','Precio'=>'103.19','CodigoDeBarra'=>'7792175007078','Pvp'=>'103.19']);\nDB::table('sales')->insert(['Codigo' =>'5067655','Precio'=>'267.92','CodigoDeBarra'=>'7792175007092','Pvp'=>'267.92']);\nDB::table('sales')->insert(['Codigo' =>'5067659','Precio'=>'877.23','CodigoDeBarra'=>'7792175007733','Pvp'=>'877.23']);\nDB::table('sales')->insert(['Codigo' =>'8042341','Precio'=>'466462.15','CodigoDeBarra'=>'7792183489743','Pvp'=>'466462.15']);\nDB::table('sales')->insert(['Codigo' =>'6008551','Precio'=>'54265.12','CodigoDeBarra'=>'7794640231353','Pvp'=>'54265.12']);\nDB::table('sales')->insert(['Codigo' =>'6008681','Precio'=>'108530.55','CodigoDeBarra'=>'7795306333121','Pvp'=>'108530.55']);\nDB::table('sales')->insert(['Codigo' =>'6266391','Precio'=>'12645.16','CodigoDeBarra'=>'7795367003339','Pvp'=>'12645.16']);\nDB::table('sales')->insert(['Codigo' =>'6266421','Precio'=>'26540.48','CodigoDeBarra'=>'7795367003360','Pvp'=>'26540.48']);\nDB::table('sales')->insert(['Codigo' =>'3384271','Precio'=>'616.75','CodigoDeBarra'=>'7798021442987','Pvp'=>'616.75']);\nDB::table('sales')->insert(['Codigo' =>'6101971','Precio'=>'555.08','CodigoDeBarra'=>'7795348000357','Pvp'=>'555.08']);\nDB::table('sales')->insert(['Codigo' =>'6286841','Precio'=>'401772.54','CodigoDeBarra'=>'7795381001397','Pvp'=>'401772.54']);\nDB::table('sales')->insert(['Codigo' =>'8039493','Precio'=>'131064.51','CodigoDeBarra'=>'7798035310920','Pvp'=>'131064.51']);\nDB::table('sales')->insert(['Codigo' =>'8039494','Precio'=>'65532.23','CodigoDeBarra'=>'7798035310913','Pvp'=>'65532.23']);\nDB::table('sales')->insert(['Codigo' =>'8006855','Precio'=>'632.47','CodigoDeBarra'=>'7795348002863','Pvp'=>'632.47']);\nDB::table('sales')->insert(['Codigo' =>'8006857','Precio'=>'1310.09','CodigoDeBarra'=>'7795348002856','Pvp'=>'1310.09']);\nDB::table('sales')->insert(['Codigo' =>'6163391','Precio'=>'302283.11','CodigoDeBarra'=>'7795381000406','Pvp'=>'302283.11']);\nDB::table('sales')->insert(['Codigo' =>'6163421','Precio'=>'320247.38','CodigoDeBarra'=>'7795381000413','Pvp'=>'320247.38']);\nDB::table('sales')->insert(['Codigo' =>'6236391','Precio'=>'82433.69','CodigoDeBarra'=>'7795381001328','Pvp'=>'82433.69']);\nDB::table('sales')->insert(['Codigo' =>'8032221','Precio'=>'82433.69','CodigoDeBarra'=>'7795381002042','Pvp'=>'82433.69']);\nDB::table('sales')->insert(['Codigo' =>'4463031','Precio'=>'24326.29','CodigoDeBarra'=>'7792371177650','Pvp'=>'24326.29']);\nDB::table('sales')->insert(['Codigo' =>'8041151','Precio'=>'304777.16','CodigoDeBarra'=>'7795367547949','Pvp'=>'304777.16']);\nDB::table('sales')->insert(['Codigo' =>'8041152','Precio'=>'304766.24','CodigoDeBarra'=>'7795367547956','Pvp'=>'304766.24']);\nDB::table('sales')->insert(['Codigo' =>'8040772','Precio'=>'312999.29','CodigoDeBarra'=>'7795367547963','Pvp'=>'312999.29']);\nDB::table('sales')->insert(['Codigo' =>'8039344','Precio'=>'312995.77','CodigoDeBarra'=>'7795367547970','Pvp'=>'312995.77']);\nDB::table('sales')->insert(['Codigo' =>'6130391','Precio'=>'34613.57','CodigoDeBarra'=>'7798337900058','Pvp'=>'34613.57']);\nDB::table('sales')->insert(['Codigo' =>'5362681','Precio'=>'2787.95','CodigoDeBarra'=>'7798006871993','Pvp'=>'2787.95']);\nDB::table('sales')->insert(['Codigo' =>'6130260','Precio'=>'28046.85','CodigoDeBarra'=>'7798021440129','Pvp'=>'28046.85']);\nDB::table('sales')->insert(['Codigo' =>'8032770','Precio'=>'40344.74','CodigoDeBarra'=>'7795306379532','Pvp'=>'40344.74']);\nDB::table('sales')->insert(['Codigo' =>'5449421','Precio'=>'40344.74','CodigoDeBarra'=>'7795306059991','Pvp'=>'40344.74']);\nDB::table('sales')->insert(['Codigo' =>'8026456','Precio'=>'18825.62','CodigoDeBarra'=>'4250174110890','Pvp'=>'18825.62']);\nDB::table('sales')->insert(['Codigo' =>'8026457','Precio'=>'18825.62','CodigoDeBarra'=>'4250174110876','Pvp'=>'18825.62']);\nDB::table('sales')->insert(['Codigo' =>'8024061','Precio'=>'10723.55','CodigoDeBarra'=>'4250174110647','Pvp'=>'10723.55']);\nDB::table('sales')->insert(['Codigo' =>'8024060','Precio'=>'10723.55','CodigoDeBarra'=>'4250174110661','Pvp'=>'10723.55']);\nDB::table('sales')->insert(['Codigo' =>'8040648','Precio'=>'9912.44','CodigoDeBarra'=>'4250174111002','Pvp'=>'9912.44']);\nDB::table('sales')->insert(['Codigo' =>'8040649','Precio'=>'87062.75','CodigoDeBarra'=>'9800125460','Pvp'=>'87062.75']);\nDB::table('sales')->insert(['Codigo' =>'8040650','Precio'=>'87062.75','CodigoDeBarra'=>'9800125451','Pvp'=>'87062.75']);\nDB::table('sales')->insert(['Codigo' =>'6263681','Precio'=>'394196.28','CodigoDeBarra'=>'7798084683587','Pvp'=>'394196.28']);\nDB::table('sales')->insert(['Codigo' =>'8036966','Precio'=>'1964.72','CodigoDeBarra'=>'7798180920760','Pvp'=>'1964.72']);\nDB::table('sales')->insert(['Codigo' =>'4920591','Precio'=>'57488.98','CodigoDeBarra'=>'7795381000925','Pvp'=>'57488.98']);\nDB::table('sales')->insert(['Codigo' =>'4920411','Precio'=>'28753.69','CodigoDeBarra'=>'7795381000918','Pvp'=>'28753.69']);\nDB::table('sales')->insert(['Codigo' =>'4928011','Precio'=>'576.11','CodigoDeBarra'=>'7795320050912','Pvp'=>'576.11']);\nDB::table('sales')->insert(['Codigo' =>'612971','Precio'=>'248424.62','CodigoDeBarra'=>'3000032327349','Pvp'=>'248424.62']);\nDB::table('sales')->insert(['Codigo' =>'5833001','Precio'=>'231562.73','CodigoDeBarra'=>'7795314023403','Pvp'=>'231562.73']);\nDB::table('sales')->insert(['Codigo' =>'8022785','Precio'=>'163743.97','CodigoDeBarra'=>'7795342003392','Pvp'=>'163743.97']);\nDB::table('sales')->insert(['Codigo' =>'8040644','Precio'=>'857.72','CodigoDeBarra'=>'7798021298003','Pvp'=>'857.72']);\nDB::table('sales')->insert(['Codigo' =>'8040645','Precio'=>'916.20','CodigoDeBarra'=>'7798021298201','Pvp'=>'916.20']);\nDB::table('sales')->insert(['Codigo' =>'8039788','Precio'=>'341609.43','CodigoDeBarra'=>'7796285283483','Pvp'=>'341609.43']);\nDB::table('sales')->insert(['Codigo' =>'8040540','Precio'=>'199583.79','CodigoDeBarra'=>'7793397051986','Pvp'=>'199583.79']);\nDB::table('sales')->insert(['Codigo' =>'3118371','Precio'=>'5683.32','CodigoDeBarra'=>'7798083955944','Pvp'=>'5683.32']);\nDB::table('sales')->insert(['Codigo' =>'606539','Precio'=>'627722.52','CodigoDeBarra'=>'7795314177366','Pvp'=>'627722.52']);\nDB::table('sales')->insert(['Codigo' =>'6508681','Precio'=>'114681.23','CodigoDeBarra'=>'7795381411394','Pvp'=>'114681.23']);\nDB::table('sales')->insert(['Codigo' =>'636184','Precio'=>'10468.82','CodigoDeBarra'=>'7793569006790','Pvp'=>'10468.82']);\nDB::table('sales')->insert(['Codigo' =>'5554841','Precio'=>'15942.26','CodigoDeBarra'=>'8054083012032','Pvp'=>'15942.26']);\nDB::table('sales')->insert(['Codigo' =>'4929501','Precio'=>'7258.33','CodigoDeBarra'=>'8054083003566','Pvp'=>'7258.33']);\nDB::table('sales')->insert(['Codigo' =>'8027692','Precio'=>'4954.18','CodigoDeBarra'=>'7795318000042','Pvp'=>'4954.18']);\nDB::table('sales')->insert(['Codigo' =>'645397','Precio'=>'350389.49','CodigoDeBarra'=>'7793081000160','Pvp'=>'350389.49']);\nDB::table('sales')->insert(['Codigo' =>'8006865','Precio'=>'2296.68','CodigoDeBarra'=>'7795348003501','Pvp'=>'2296.68']);\nDB::table('sales')->insert(['Codigo' =>'8032230','Precio'=>'63400.02','CodigoDeBarra'=>'7793081098303','Pvp'=>'63400.02']);\nDB::table('sales')->insert(['Codigo' =>'8006856','Precio'=>'1240.93','CodigoDeBarra'=>'7795348003037','Pvp'=>'1240.93']);\nDB::table('sales')->insert(['Codigo' =>'4124613','Precio'=>'955.49','CodigoDeBarra'=>'7795348001859','Pvp'=>'955.49']);\nDB::table('sales')->insert(['Codigo' =>'6400711','Precio'=>'25052.85','CodigoDeBarra'=>'7798011832538','Pvp'=>'25052.85']);\nDB::table('sales')->insert(['Codigo' =>'8039492','Precio'=>'23650.82','CodigoDeBarra'=>'7795348421831','Pvp'=>'23650.82']);\nDB::table('sales')->insert(['Codigo' =>'4549841','Precio'=>'12435.86','CodigoDeBarra'=>'7796930003978','Pvp'=>'12435.86']);\nDB::table('sales')->insert(['Codigo' =>'4549761','Precio'=>'4575.09','CodigoDeBarra'=>'7796930003985','Pvp'=>'4575.09']);\nDB::table('sales')->insert(['Codigo' =>'5522425','Precio'=>'9621.83','CodigoDeBarra'=>'7795348250844','Pvp'=>'9621.83']);\nDB::table('sales')->insert(['Codigo' =>'5522553','Precio'=>'5649.87','CodigoDeBarra'=>'7795348250851','Pvp'=>'5649.87']);\nDB::table('sales')->insert(['Codigo' =>'5723683','Precio'=>'3012.39','CodigoDeBarra'=>'7795367055390','Pvp'=>'3012.39']);\nDB::table('sales')->insert(['Codigo' =>'487969','Precio'=>'589.02','CodigoDeBarra'=>'7798061750837','Pvp'=>'589.02']);\nDB::table('sales')->insert(['Codigo' =>'3648521','Precio'=>'1143.88','CodigoDeBarra'=>'7798006872037','Pvp'=>'1143.88']);\nDB::table('sales')->insert(['Codigo' =>'3281711','Precio'=>'5319.28','CodigoDeBarra'=>'7798006872006','Pvp'=>'5319.28']);\nDB::table('sales')->insert(['Codigo' =>'3648281','Precio'=>'5361.10','CodigoDeBarra'=>'7798007801838','Pvp'=>'5361.10']);\nDB::table('sales')->insert(['Codigo' =>'6353845','Precio'=>'41864.13','CodigoDeBarra'=>'7798313410045','Pvp'=>'41864.13']);\nDB::table('sales')->insert(['Codigo' =>'6350681','Precio'=>'53575.90','CodigoDeBarra'=>'7795326004278','Pvp'=>'53575.90']);\nDB::table('sales')->insert(['Codigo' =>'6263551','Precio'=>'31737.53','CodigoDeBarra'=>'7795302000324','Pvp'=>'31737.53']);\nDB::table('sales')->insert(['Codigo' =>'5780551','Precio'=>'381.70','CodigoDeBarra'=>'7792175008938','Pvp'=>'381.70']);\nDB::table('sales')->insert(['Codigo' =>'642200','Precio'=>'126073.23','CodigoDeBarra'=>'7795367009805','Pvp'=>'126073.23']);\nDB::table('sales')->insert(['Codigo' =>'3198571','Precio'=>'18787.94','CodigoDeBarra'=>'7794220000485','Pvp'=>'18787.94']);\nDB::table('sales')->insert(['Codigo' =>'4112491','Precio'=>'53544.36','CodigoDeBarra'=>'7794220000607','Pvp'=>'53544.36']);\nDB::table('sales')->insert(['Codigo' =>'5870001','Precio'=>'1101638.37','CodigoDeBarra'=>'7797991000180','Pvp'=>'1101638.37']);\nDB::table('sales')->insert(['Codigo' =>'6159551','Precio'=>'43724.02','CodigoDeBarra'=>'7795309000129','Pvp'=>'43724.02']);\nDB::table('sales')->insert(['Codigo' =>'595626','Precio'=>'17489.59','CodigoDeBarra'=>'7795309002604','Pvp'=>'17489.59']);\nDB::table('sales')->insert(['Codigo' =>'5257331','Precio'=>'9861.94','CodigoDeBarra'=>'7795306293043','Pvp'=>'9861.94']);\nDB::table('sales')->insert(['Codigo' =>'5959421','Precio'=>'1121.73','CodigoDeBarra'=>'7791829019344','Pvp'=>'1121.73']);\nDB::table('sales')->insert(['Codigo' =>'6339681','Precio'=>'307781.62','CodigoDeBarra'=>'7795306325324','Pvp'=>'307781.62']);\nDB::table('sales')->insert(['Codigo' =>'5546551','Precio'=>'404.01','CodigoDeBarra'=>'7798069050748','Pvp'=>'404.01']);\nDB::table('sales')->insert(['Codigo' =>'6063421','Precio'=>'833.81','CodigoDeBarra'=>'7795316000136','Pvp'=>'833.81']);\nDB::table('sales')->insert(['Codigo' =>'6194391','Precio'=>'963.47','CodigoDeBarra'=>'7795316000259','Pvp'=>'963.47']);\nDB::table('sales')->insert(['Codigo' =>'648084','Precio'=>'225148.55','CodigoDeBarra'=>'7795314176338','Pvp'=>'225148.55']);\nDB::table('sales')->insert(['Codigo' =>'6247261','Precio'=>'12562.78','CodigoDeBarra'=>'7795367001885','Pvp'=>'12562.78']);\nDB::table('sales')->insert(['Codigo' =>'4824221','Precio'=>'7778.03','CodigoDeBarra'=>'7791824116994','Pvp'=>'7778.03']);\nDB::table('sales')->insert(['Codigo' =>'4828601','Precio'=>'9585.38','CodigoDeBarra'=>'7798004153756','Pvp'=>'9585.38']);\n\n \n\n\n }", "title": "" } ]
[ { "docid": "1dcddd9fc4f2fbc62e484166f7f3332c", "score": "0.802869", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('roles')->truncate();\n DB::table('role_user')->truncate();\n\n // SEEDS\n $this->call(RolesTableSeeder::class);\n\n // FACTORIES\n /*\n factory(App\\User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(App\\Post:class)->make());\n });*/\n\n //$roles = factory(App\\Role::class, 3)->create();\n\n $users = factory(User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(Post::class)->make());\n $user->roles()->attach(Role::findOrFail(rand(1, 3)));\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n }", "title": "" }, { "docid": "6242c83182914af1dca6a8760034eb1d", "score": "0.8013324", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $ross = User::create([\n 'email' => '[email protected]',\n 'name' => 'Ross Bartlett',\n 'password' => Hash::make('password')\n ]);\n\n $dyl = User::create([\n 'email' => '[email protected]',\n 'name' => 'Dylan Gordon',\n 'password' => Hash::make('password')\n ]);\n\n Interest::create([\n 'user_id'=>$ross->id,\n 'interest'=>'Calgary Flames'\n ]);\n Interest::create([\n 'user_id'=>$ross->id,\n 'interest'=>'Rugby'\n ]);\n\n Like::create([\n 'user_id'=>$ross->id,\n 'item'=>'rVynOFlmK_Q',\n 'platform'=> 0 //youtube\n ]);\n\n\n }", "title": "" }, { "docid": "189174cea9e9e7145c489e18fd0089a4", "score": "0.79804534", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "6d65d81db98c4e3d10f6aa402d6393d9", "score": "0.79774004", "text": "public function run()\n {\n if (App::environment() == 'production') {\n exit(\"You shouldn't run seeds on production databases\");\n }\n\n DB::table('roles')->truncate();\n\n Role::create([\n 'id' => 3,\n 'name' => 'Root',\n 'description' => 'God user. Access to everything.'\n ]);\n\n Role::create([\n 'id' => 2,\n 'name' => 'Administrator',\n 'description' => 'Administrator user. Many privileges.'\n ]);\n\n Role::create([\n 'id' => 1,\n 'name' => 'Guest',\n 'description' => 'Basic user.'\n ]);\n\n }", "title": "" }, { "docid": "b0c4f271872f35f165325de519bb487f", "score": "0.7976992", "text": "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "37a0b6a3e76804710ff7c9469eab40c2", "score": "0.79632276", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n factory(App\\User::class, 1)->create();\n factory(App\\Supplier::class, 10)->create();\n $categories = factory(App\\Category::class, 5)->create();\n \t$categories->each(function ($category) {\n factory('App\\SubCategory', 2)->create(['category_id' => $category->id]);\n });\n factory(App\\Warehouse::class, 5)->create();\n factory(App\\Employee::class, 10)->create();\n factory(App\\Customer::class, 10)->create();\n factory(App\\Income::class, 10)->create();\n factory(App\\Expense::class, 10)->create();\n factory(App\\Product::class, 20)->create();\n factory(App\\Purchase::class, 5)->create();\n factory(App\\Sale::class, 5)->create();\n }", "title": "" }, { "docid": "c8b0d4df0b00483f5e354b9b76b4f370", "score": "0.7955267", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Réén Pock',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456')\n ]);\n factory(Category::class, 5)->create();\n factory(Product::class, 100)->create()->each(function($product){\n for ($i=0; $i < 3; $i++) { \n $product->categories()->attach(Category::inRandomOrder()->first()->id);\n }\n });\n }", "title": "" }, { "docid": "810e2984e6eded128ac32a3c06fe3e23", "score": "0.7949612", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "title": "" }, { "docid": "338cba437c44387add3ca68b7433a1d6", "score": "0.794459", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "title": "" }, { "docid": "33dbfbc00700305306745acd24e39069", "score": "0.7938189", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "title": "" }, { "docid": "ff581332117c5a8ceb165939e5861a64", "score": "0.79368967", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "title": "" }, { "docid": "a3350553b93dfb0209ddf6ddfd533d8d", "score": "0.79337025", "text": "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "title": "" }, { "docid": "fa8f6aeb20ad773ecabd02bb875a6c88", "score": "0.79219097", "text": "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n DB::table('sections')->truncate();\n\n Section::create([\n 'id' => 1,\n 'name' => 'Lifestyle Habits',\n 'description' => 'This section focuses on lifestyle and habits of a patient']);\n Section::create([\n 'id' => 2,\n 'name' => 'Family History',\n 'description' => 'This section focuses on medical history of family of a patient']);\n Section::create([\n 'id' => 3,\n 'name' => 'Complaints',\n 'description' => 'This section deals with recent complaints of pateint']);\n Section::create([\n 'id' => 4,\n 'name' => 'Clinical Examination',\n 'description' => 'This section deals with various clinical reports of a patient']);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "d683182ec8b2d791dddbb2f54ba8f8b3", "score": "0.7919681", "text": "public function run()\n {\n //Assign dummy Roles for users with in UsersTableSeeder\n DB::table('roles')->insert([\n 'title' => 'Admin',\n ]);\n\n DB::table('roles')->insert([\n 'title' => 'Employee',\n ]);\n\n //assigned user a Role\n DB::table('role_user')->insert([\n 'role_id' => '1',\n 'user_id' => '1',\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => '2',\n 'user_id' => '2',\n ]);\n\n $faker = Faker::create();\n foreach (range(3, 20) as $index) {\n DB::table('role_user')->insert([\n 'role_id' => rand(1, 2),\n 'user_id' => $index,\n ]);\n }\n }", "title": "" }, { "docid": "22408a54239aeef49683358b8f38db07", "score": "0.7906679", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // create categories\n \t$categories = factory('App\\Category', 10)->create();\n // create posts\n $posts = factory('App\\Post', 50)->create();\n // fore each post, populate 1-3 cates\n $posts->each(function ($post) use ($categories) {\n \t$post->categories()->attach(\n \t\t$categories->random(rand(1, 3))->pluck('id')->toArray()\n \t);\n });\n }", "title": "" }, { "docid": "64ddc727eef6e28c29db4c4be58c3578", "score": "0.78924936", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "title": "" }, { "docid": "4f1d5d37635c3d5345f27254da911e96", "score": "0.78846294", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n \\App\\Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 15; $i++) {\n \\App\\Article::create([\n 'title' => $faker->sentence,\n 'content' => $faker->paragraphs($nb = 4, $asText = true),\n 'author' => $faker->name,\n 'num_views' => $faker->randomNumber($nbDigits = 4),\n 'publish_state' => $faker->boolean,\n 'publish_date' => ($faker->dateTimeThisYear($max = 'now'))->format('c')\n ]);\n }\n }", "title": "" }, { "docid": "b993bdb17f6322a43f700f6d1f5b1006", "score": "0.7882899", "text": "public function run()\n {\n // Trunkate the databse so we don;t repeat the seed\n DB::table('roles')->delete();\n\n Role::create(['name' => 'root']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'supervisor']);\n Role::create(['name' => 'officer']);\n Role::create(['name' => 'user']);\n }", "title": "" }, { "docid": "3c219ba37518a110e693986f93eb9e5e", "score": "0.7877671", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::table('roles')->insert([\n 'name' => 'prof',\n 'display_name' => 'professor',\n 'description' => 'Perfil professor',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Marcos André',\n 'email' => '[email protected]',\n 'password' => bcrypt('marcos123'),\n 'first_login' => 0,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('professores')->insert([\n 'nome' => 'Marcos André',\n 'matricula' => '12.3456-7',\n 'data_nascimento' => '1969-11-30',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('role_user')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "e78ec24a86879882dd348d32e57ca04d", "score": "0.7877498", "text": "public function run()\n {\n /* factory(\\App\\Models\\Category::class, 5)->create()->each(function ($category) {\n factory(\\App\\Models\\Category::class, random_int(0, 3))->create(['parent_id' => $category->id]);\n });\n\n factory(App\\Models\\User::class, 10)->create()->each(function ($user) {\n factory(App\\Models\\Post::class, random_int(0, 10))->create(['user_id' => $user->id])->each(function ($post) {\n $post->postContent()->save(factory(PostContent::class)->make());\n });\n });\n\n DB::table('users')->where('id', 1)->update(['user_name' => 'tiny', 'email' => '[email protected]', 'locked_at' => null]);\n\n $this->call(PermissionsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(TypesTableSeeder::class);*/\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "5b880595ea5798cabac1baebe896e5e7", "score": "0.7871811", "text": "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "title": "" }, { "docid": "17dca3224f1ceff9e07014643cc0ecc7", "score": "0.78660107", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /* role seeder */\n DB::table('roles')->insert([\n 'id' => 1,\n 'title' => 'Customer',\n ]);\n\n DB::table('roles')->insert([\n 'id' => 2,\n 'title' => 'Seller',\n ]);\n\n \n /* seller category seeder */\n factory(App\\SellerCategory::class, 10)->create();\n\n /* user seeder */\n factory(App\\User::class, 20)->create();\n\n /* request seeder */\n factory(App\\Request::class, 10)->create();\n }", "title": "" }, { "docid": "900d2a6c98a63207bb98e4476f29b982", "score": "0.7853861", "text": "public function run()\n {\n DB::table('users')->truncate();\n DB::table('roles')->truncate();\n\n // $this->call(UsersTableSeeder::class);\n Role::create([\n 'name' => 'admin'\n ]);\n Role::create([\n 'name' => 'author'\n ]);\n Role::create([\n 'name' => 'user'\n ]);\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('test12345'),\n 'role' => 1\n ]);\n User::create([\n 'name' => 'User',\n 'email' => '[email protected]',\n 'password' => bcrypt('test12345'),\n ]);\n \n $this->call([\n DishCategorySeeder::class,\n DishesSeeder::class\n ]);\n }", "title": "" }, { "docid": "d7bb625a9812b9cb6a9362070a5950ee", "score": "0.7852421", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Add Company\n $company = Company::create([\n 'name' => 'IAPP',\n 'employee_count' => 100,\n 'size' => 'Large'\n ]);\n\n $secondCompany = Company::create([\n 'name' => 'ABC',\n 'employee_count' => 20,\n 'size' => 'Small'\n ]);\n\n // Add user\n $general_user = User::create([\n 'name' => 'Shayna Sylvia',\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n 'street' => '9 Mill Pond Rd',\n 'city' => 'Northwood',\n 'state' => 'NH',\n 'zip' => '03261',\n 'company_id' => $company->id,\n 'type' => 'admin'\n ]);\n\n // Add Challenge\n $challenge = Challenge::create([\n 'name' => 'Conquer the Cold 2018',\n 'slug' => 'conquer',\n 'start_date' => '2018-11-01',\n 'end_date' => '2018-12-31',\n 'type' => 'Individual',\n 'image_url' => '/images/conquer-the-cold-banner.png'\n ]);\n }", "title": "" }, { "docid": "b33aa01f2832813762ccbfb3d2d3532d", "score": "0.7846495", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(5)->create();\n $this->call(MenuCategoryTableSeeder::class);\n $this->call(AttributeTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n \\App\\Models\\Product::factory(50)->create();\n \\App\\Models\\AttributeProduct::factory(500)->create();\n \n // Circles\n $this->call(CircleTableSeeder::class);\n\n // Top Products\n $this->call(TopProductTableSeeder::class);\n\n // Random Products\n $this->call(RandomProductTableSeeder::class);\n }", "title": "" }, { "docid": "b6032e82ff7748213ddc30ee53d1f11b", "score": "0.7830752", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('roles')->insert(\n [\n [\n 'title' => 'Директор',\n 'name' => 'Director',\n 'parent_id' => '0'\n ],\n [\n 'title' => 'Зам директор',\n 'name' => 'Deputy director',\n 'parent_id' => '1'\n ],\n [\n 'title' => 'Начальник',\n 'name' => 'Director',\n 'parent_id' => '2'\n ],\n [\n 'title' => 'ЗАм начальник',\n 'name' => 'Deputy сhief',\n 'parent_id' => '3'\n ],\n [\n 'title' => 'Работник',\n 'name' => 'Employee',\n 'parent_id' => '4'\n ]\n ]);\n\n\n $this->call(departmentsTableSeeder::class);\n $this->call(employeesTableSeeder::class);\n }", "title": "" }, { "docid": "f72b073f1562b517a5cbd8caadf6f8b1", "score": "0.78215635", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1, 50) as $index) {\n\n Category::create([\n 'title' => $faker->jobTitle,\n ]);\n }\n }", "title": "" }, { "docid": "16547d5faa64dc71264cbf37cd0a5a22", "score": "0.7819104", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "title": "" }, { "docid": "7e80466dc8005ac35863dfc3e5c7c169", "score": "0.7817918", "text": "public function run()\n {\n User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => Hash::make('adminadmin'),\n ]);\n\n Genre::factory(5)->create();\n Classification::factory(5)->create();\n Actor::factory()->count(50)->create();\n Director::factory(20)->create();\n Movie::factory(30)->create()->each(function ($movie) {\n $movie->actors(['actorable_id' => rand(30, 50)])->attach($this->array(rand(1, 50)));\n });\n Serie::factory(10)->create();\n Season::factory(20)->create();\n Episode::factory(200)->create()->each(function ($episode) {\n $episode->actors(['actorable_id' => rand(15, 30)])->attach($this->array(rand(1, 50)));\n });\n }", "title": "" }, { "docid": "c621382a9007bb3f312489ab7da81f56", "score": "0.7814175", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n // DB::table('user_roles')->delete();\n\n $roles = [\n ['id' => 1, 'name' => 'Director'],\n ['id' => 2, 'name' => 'Chair'],\n ['id' => 3, 'name' => 'Secretary'],\n ['id' => 4, 'name' => 'Faculty'],\n ];\n\n // Uncomment the below to run the seeder\n DB::table('user_roles')->insert($roles);\n }", "title": "" }, { "docid": "405076a95a7f251d6fa3259dc0d9fb6a", "score": "0.7811153", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n // factory(Category::class, 25)->create();\n factory(Category::class, 10)->create();\n factory(Post::class, 50)->create();\n factory(Video::class, 5)->create();\n }", "title": "" }, { "docid": "40a0e12ed745bd76bf6ddbc9fe97e1a8", "score": "0.78103507", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert([\n // 'name' => 'employee',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('roles')->insert([\n // 'name' => 'admin',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('units')->insert([\n // 'name' => 'kg',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'litre',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'dozen',\n // ]);\n }", "title": "" }, { "docid": "7c1b3b143dd76d76cb8edbf417f06a8e", "score": "0.7806364", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n // create 6 users\n // User::factory(1)->create()->each(function ($user){\n\n // // create 15 posts for each user\n // $post = Post::factory(1)->create()->each(function ($post){\n // // /create 5 comments for each post\n // $comment = Comment::factory(1)->make();\n // $post->comments()->saveMany($comment);\n // });\n // $user->posts()->saveMany($post);\n // }); \n \n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Post::truncate();\n Comment::truncate();\n User::factory(10)->create();\n Post::factory(50)->create();\n Comment::factory(100)->create();\n // Enable it back\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n \n }", "title": "" }, { "docid": "3a3dbeb16bee414c118c000c37fbbdf7", "score": "0.7802872", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "title": "" }, { "docid": "84a2fe5ce7256b53cae2bd09c99e6aaf", "score": "0.7802348", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "title": "" }, { "docid": "b2a340012128cdc0ce9898ea0cc3c209", "score": "0.77989215", "text": "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "title": "" }, { "docid": "48fe7d1d0d33106e3241378b6668a775", "score": "0.7796966", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 50)->create();\n factory(Post::class, 500)->create();\n factory(Category::class, 10)->create();\n factory(Tag::class, 150)->create();\n factory(Image::class, 1500)->create();\n factory(Video::class, 500)->create();\n factory(Comment::class, 1500)->create();\n }", "title": "" }, { "docid": "461c8a228780b7db8fef36082242e109", "score": "0.7795819", "text": "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "title": "" }, { "docid": "706ff7ec69aebe11396b7ff7e05d374c", "score": "0.77862066", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "title": "" }, { "docid": "d807dce754ed136319cb37b9a9be6494", "score": "0.77856374", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Localizacao::class, 5)->create();\n factory(Estado::class, 2)->create();\n factory(Tamanho::class, 4)->create();\n factory(Cacifo::class, 20)->create();\n factory(Cliente::class, 10)->create();\n factory(UserType::class, 2)->create();\n factory(User::class, 8)->create();\n factory(Encomenda::class, 25)->create();\n factory(LogCacifo::class, 20)->create();\n\n foreach (Encomenda::all() as $encomenda) {\n $user = User::all()->random();\n DB::table('encomenda_user')->insert(\n [\n 'user_id' => $user->id,\n 'encomenda_id' => $encomenda->id,\n 'user_type' => $user->tipo_id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]\n );\n }\n\n }", "title": "" }, { "docid": "4a8a5f2d0bf57a648aa039d994ba098c", "score": "0.7780426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $spec = [\n [\n 'name'=>'Dokter Umum',\n 'title_start'=> 'dr.',\n \"title_end\"=>null,\n ],[\n 'name'=>\"Spesialis Kebidanan Kandungan\",\n 'title_start'=>\"dr.\",\n 'title_end'=>\"Sp.OG\",\n ],[\n \"name\"=>\"Spesialis Anak\",\n \"title_start\"=>\"dr.\",\n \"title_end\"=>\"Sp.A\",\n ],[\n \"name\"=>\"Spesialis penyakit mulut\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>\"Sp.PM\"\n ],[\n \"name\"=>\"Dokter Gigi\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>null,\n ]\n ];\n\n DB::table(\"specializations\")->insert($spec);\n\n \n factory(User::class, 10)->create([\n 'type'=>\"doctor\",\n ]);\n factory(User::class, 10)->create([\n 'type'=>\"user\",\n ]);\n factory(Message::class, 100)->create();\n }", "title": "" }, { "docid": "e9a395588cf010ce0bc08d6b3e36927d", "score": "0.7777486", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "title": "" }, { "docid": "b32c8e0e5988bd2cbc8f9b3c1069084f", "score": "0.7775103", "text": "public function run()\n {\n //這邊用到集合 pluck() 將全部User id取出並轉為陣列,如 [1,2,3,4,5]\n $user_ids = User::all()->pluck('id')->toArray();\n\n //同上\n $topic_id = Topic::all()->pluck('id')->toArray();\n\n //取Faker 實例化\n $faker = app(Faker\\Generator::class);\n\n //生成100筆假數據\n $posts = factory(Post::class)->times(100)\n ->make()->each(function ($post,$index) use ($user_ids,$topic_id,$faker)\n {\n //用User id隨機取一個並賦值\n $post->user_id = $faker->randomElement($user_ids);\n //用Topic id隨機取一個並賦值\n $post->topic_id = $faker->randomElement($topic_id);\n });\n //將數據轉為陣列在插入資料庫\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "0ac3bd79ccafd183f64a83daa8e8b734", "score": "0.77742934", "text": "public function run()\n {\n //\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'level' => 'admin',\n 'password' => Hash::make('12345678'),\n ]);\n\n factory(App\\User::class, 9)->create([\n 'password' => Hash::make('12345678')\n ]);\n\n factory(App\\Author::class, 10)->create();\n\n factory(App\\Book::class, 10)->create();\n\n $author = App\\Author::all();\n\n App\\Book::all()->each(function ($book) use ($author) { \n $book->author()->attach(\n $author->random(rand(1, 3))->pluck('id')->toArray()\n ); \n });\n \n }", "title": "" }, { "docid": "10bba340ceff4aa7654e77f3264df8b2", "score": "0.7765202", "text": "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "e4a3f3c54eb1dbfbeaf14daf25634bfc", "score": "0.7762492", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "title": "" }, { "docid": "0350e1fc9ed9c9553317db568c12e5ba", "score": "0.77623445", "text": "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "title": "" }, { "docid": "80029eda94306be7dd06321a86e96e4f", "score": "0.77621746", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "title": "" }, { "docid": "2f5b59082890fe6ed7dc8f5c50b7611e", "score": "0.77610433", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // seed users\n factory(\\App\\User::class, 1)->create(['name' => 'test', 'email' => '[email protected]', 'password' => bcrypt('test')]);\n factory(\\App\\User::class, 50)->create();\n\n // seed channels\n factory(\\App\\Channel::class, 20)->create();\n\n // seed threads\n factory(\\App\\Thread::class, 10)->create();\n\n // seed replies\n factory(\\App\\Reply::class, 10)->create();\n\n\n }", "title": "" }, { "docid": "7124f0c07efbf29272763999a735a94f", "score": "0.77606887", "text": "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "title": "" }, { "docid": "5c8214e2d3c221fbe38a112c0256f06f", "score": "0.7759768", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'role' => 1,\n 'email' => '[email protected]',\n 'password' => '$2y$10$UT2JvBOse3.6uuElsmqDpOhvp8d5PkoRdmbIHDMwOJmr226GRrmKe',\n ]);\n\n DB::table('programs')->insert([\n ['name' => 'Ingeniería de sistemas'],\n ['name' => 'Ingeniería electrónica'],\n ['name' => 'Ingeniería industrial'],\n ['name' => 'Diseño gráfico'],\n ['name' => 'Psicología'],\n ['name' => 'Administración de empresas'],\n ['name' => 'Negocios internacionales'],\n ['name' => 'Criminalística'],\n ]);\n }", "title": "" }, { "docid": "6f031bf4bd571edf71627cb6a09568cd", "score": "0.77596676", "text": "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "title": "" }, { "docid": "2290f88bd069e9499c0321a79bda7083", "score": "0.7759102", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('filials')->insert([\n 'nome' => 'Filial 1',\n 'endereco' => 'Endereco, 1',\n 'bairro' => 'Bairro',\n 'cidade' => 'Cidade',\n 'uf' => 'ES',\n 'inscricao_estadual' => 'ISENTO',\n 'cnpj' => '00123456000178'\n ]);\n DB::table('users')->insert([\n 'name' => 'Vitor Braga',\n 'data_nascimento' => '1991-03-16',\n 'sexo' => 'M',\n 'cpf' => '12345678900',\n 'endereco' => 'Rua Luiz Murad, 2',\n 'bairro' => 'Vista da Serra',\n 'cidade' => 'Colatina',\n 'uf' => 'ES',\n 'cargo' => 'Desenvolvedor',\n 'salario' => '100.00',\n 'situacao' => '1',\n 'password' => bcrypt('123456'),\n 'id_filial' => '1'\n ]);\n }", "title": "" }, { "docid": "b8c622da980d0f20206cf3c497b69940", "score": "0.7754705", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n Role::truncate();\n User::truncate();\n DB::table('category_posts')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Post::flushEventListeners();\n Comment::flushEventListeners();\n Game::flushEventListeners();\n Newsletter::flushEventListeners();\n Client::flushEventListeners();\n // $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n // factory(User::class, 50)->create();\n $this->call(BannersTableSeeder::class);\n $this->call(BasicsTableseeder::class);\n $this->call(SocialsTableseeder::class);\n $this->call(ContactInformationsTableseeder::class);\n $this->call(ClientsTableseeder::class);\n $this->call(AboutsTableseeder::class);\n $this->call(ContactusSeeder::class);\n $this->call(NewslettersSeeder::class);\n $this->call(GamesSeederTable::class);\n $this->call(PagesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);\n $this->call(CategoryPostsTableSeeder::class);\n $this->call(GalleriesTableSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n \n }", "title": "" }, { "docid": "81e5569fa61ad16b28597151ca8922ab", "score": "0.7731372", "text": "public function run()\n {\n $faker = Faker\\Factory::create('fr_FR');\n $user = App\\User::pluck('id')->toArray();\n $data = [];\n\n for ($i = 1; $i <= 100; $i++) {\n $title = $faker->sentence(rand(4, 10)); // astuce pour le slug\n array_push($data, [\n 'title' => $title,\n 'sub_title' => $faker->sentence(rand(10, 15)),\n 'slug' => Str::slug($title),\n 'body' => $faker->realText(4000),\n 'published_at' => $faker->dateTime(),\n 'user_id' => $faker->randomElement($user),\n ]);\n }\n DB::table('articles')->insert($data);\n }", "title": "" }, { "docid": "c74d696e8998a24c61e719b8157653fa", "score": "0.772796", "text": "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "title": "" }, { "docid": "3d873be91ed6d1da3295d915f287cf94", "score": "0.77274096", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //Seeding the database\n \\DB::table('authors')->insert([\n [\n 'name' => 'Diane Brody',\n 'occupation' => 'Software Architect, Freelancer',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'name' => 'Andrew Quentin',\n 'occupation' => 'Cognitive Scientist',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publications')->insert([\n [\n 'title' => 'AI Consciousness Level',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Book',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'Software Architecture for the experienced',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Report of a conference',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publication_authors')->insert([\n [\n 'publication_id' => 1,\n 'author_id' => 2\n ],\n [\n 'publication_id' => 2,\n 'author_id' => 1\n ]\n ]);\n }", "title": "" }, { "docid": "aee9f58c36821ccc960ba32ca0f7c676", "score": "0.77264154", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Kategorija::class, 10)->create();\n factory(App\\Proizvod::class, 50)->create();\n\n foreach(Proizvod::all() as $proizvod)\n {\n $proizvod->kategorije()->sync(kategorija::pluck('id')->random(rand(1,5)));\n $proizvod->save();\n }\n }", "title": "" }, { "docid": "2ecfbbe58300fc8debd0410b17f21e9d", "score": "0.771693", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('users')->insert([\n 'name' => 'Demo',\n 'phone' => '0737116001',\n 'email' => '[email protected]',\n 'password' => Hash::make('demo'),\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'admin',\n 'slug' => 'admin',\n ]);\n\n\n DB::table('roles')->insert([\n 'name' => 'user',\n 'slug' => 'user',\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'manager',\n 'slug' => 'manager',\n ]);\n\n DB::table('roles_users')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "01970702dcc3d254417ea716f48f61ba", "score": "0.77157193", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(ProductsTableSeeder::class);\n $this->call(SettingTableSeeder::class);\n // DB::table('orders')->insert([\n // 'name' => 'Tran Minh Luan',\n // 'address' => 'So 19, duong 13',\n // 'number' => '0163375305',\n // 'products' => 'lamp'\n // ]);\n //$this->call(OrdersTableSeeder::class);\n }", "title": "" }, { "docid": "603a2ad87e835d00866a742b9f5d2a52", "score": "0.77141565", "text": "public function run()\n {\n $users = User::factory()->count(10)->create();\n\n $categoriesNames = [\n 'Programación',\n 'Desarrollo Web',\n 'Desarrollo Movil',\n 'Inteligencia Artificial',\n ];\n $collection = collect($categoriesNames);\n $categories = $collection->map(function ($category, $key){\n return Category::factory()->create(['name' => $category]);\n });\n\n Post::factory()\n ->count(10)\n ->make()\n ->each(function($post) use ($users, $categories){\n $post->author_id = $users->random()->id;\n $post->category_id = $categories->random()->id;\n $post->save();\n });\n \n $user = User::factory()->create();\n $user->name = 'Jesús Ramírez';\n $user->email = '[email protected]';\n $user->password = Hash::make('jamon123');\n $user->save();\n }", "title": "" }, { "docid": "006d108790ce64b4ef4a883f12760a4c", "score": "0.77140933", "text": "public function run()\n {\n $this->call(GenreSeeder::class);\n \\App\\Models\\User::factory(20)->create();\n \\App\\Models\\User::factory()->create([\n 'username' => 'admin',\n 'name' => 'Admin User',\n 'email' => '[email protected]',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', //password\n 'is_admin' => true\n ]);\n \\App\\Models\\Movie::factory(100)->create();\n \\App\\Models\\Review::factory(1000)->create();\n \\App\\Models\\Celeb::factory(100)->create();\n \\App\\Models\\CelebMovie::factory(500)->create();\n \\App\\Models\\GenreMovie::factory(200)->create();\n \\App\\Models\\MovieUser::factory(100)->create();\n }", "title": "" }, { "docid": "b775152e814ada39237f6d02a27c5392", "score": "0.77140456", "text": "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "title": "" }, { "docid": "49da62fe0218d7ae61e34a8c8728ab7e", "score": "0.771243", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "title": "" }, { "docid": "67228a7edb1e67f6bdd0b8d19bb2b59a", "score": "0.7705309", "text": "public function run()\n {\n Model::unguard();\n $faker = Faker::create();\n for ($i = 0; $i <= 100; $i++) {\n DB::table('posts')->insert([\n 'published' => 1,\n 'title' => $faker->sentence(),\n 'body' => $faker->text(500),\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "deefe59dca3f24e874dfffb1bb15beeb", "score": "0.7704354", "text": "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "title": "" }, { "docid": "c3bf798056554c74cc9ea30b5654cf7d", "score": "0.7704061", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "title": "" }, { "docid": "cb57daba0c53f155a9c942af3dc024bd", "score": "0.7703433", "text": "public function run()\n {\n // 指令::php artisan db:seed --class=day20180611_campaign_event_table_seeder\n // 第一次執行,執行前全部資料庫清空\n $now_date = date('Y-m-d h:i:s');\n // 角色\n DB::table('campaign_event')->truncate();\n DB::table('campaign_event')->insert([\n // system\n ['id' => '1', 'keyword' => 'reg', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '2', 'keyword' => 'order', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '3', 'keyword' => 'complete', 'created_at' => $now_date, 'updated_at' => $now_date],\n ]);\n }", "title": "" }, { "docid": "cf7fcb1fe5570ba6a475aaf00815d6f6", "score": "0.7701871", "text": "public function run()\n {\n\n //SEEDING MASTER DATA\n $this->call([\n BadgeSeeder::class,\n AchievementSeeder::class\n ]);\n\n //SEEDING FAKER DATA\n Lesson::factory()\n ->count(20)\n ->create();\n\n Comment::factory()->count(2)->create();\n\n }", "title": "" }, { "docid": "36020ec2fbcaf681814118ed22133007", "score": "0.77008796", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "title": "" }, { "docid": "b44c7d8fac5a941c491e731eceea38f2", "score": "0.76985973", "text": "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "title": "" }, { "docid": "09fe947dea0cf1a8047d0c9bb4bf806d", "score": "0.76984954", "text": "public function run()\n {\n // gọi tới file UserTableSeeder nếu bạn muốn chạy users seed\n // $this->call(UsersTableSeeder::class);\n // gọi tới file PostsTableSeeder nếu bạn muốn chạy posts seed\n $this->call(PostsTableSeeder::class); \n // gọi tới file CategoriesTableSeeder nếu bạn muốn chạy categories seed\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostTagsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(ProjectTableSeeder::class);\n }", "title": "" }, { "docid": "ada5d5fc3637b7a815b289340c1ad5fe", "score": "0.76982635", "text": "public function run()\n {\n $users = $this->getSeedUsers();\n $size = count($users);\n for ($i = 0; $i < $size; $i++) {\n DB::table('users')->insert($users[$i]);\n }\n\n $court = $this->getSeedCourt();\n DB::table('courts')->insert($court);\n\n $reserves = $this->getSeedReserves();\n $size = count($reserves);\n for ($i = 1; $i <= $size; $i++) {\n DB::table('reserves')->insert($reserves[$i]);\n }\n\n }", "title": "" }, { "docid": "980af6960bda0fc5e03df83c2b9e41cc", "score": "0.7698196", "text": "public function run()\n {\n // $categories = factory(App\\Category::class, 10)->create();\n\n $categories = ['Appetizers', 'Beverages', 'Breakfast', 'Detox Water', 'Fresh Juice', 'Main Course', 'Pasta', 'Pizza', 'Salad', 'Sandwiches', 'Soups', 'Special Desserts', 'Hot Drinks', 'Mocktails', 'Shakes', 'Water and Softdrinks'];\n foreach( $categories as $category )\n { \n Category::create([\n 'name' => $category\n ]);\n }\n\n $categories = Category::all();\n\n foreach( $categories as $category )\n {\n factory(App\\Menu::class, 10)->create([\n 'category_id' => $category->id\n ]);\n }\n \t\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "eae1af9587a5c752d73027a3d713fa13", "score": "0.76964504", "text": "public function run()\n {\n User::firstOrCreate([\n 'email' => '[email protected]'\n ], [\n 'name' => 'admin',\n 'password' => Hash::make('admin'),\n ]);\n\n $users =\\App\\Models\\User::factory(1)->create();\n $schools =\\App\\Models\\School::factory(10)->create();\n $employee = \\App\\Models\\Employee::factory(100)->make(['school_id' => null])->each(function ($employee) use($schools){\n $employee->school_id = $schools->random()->id;\n $employee->save();\n\n });\n }", "title": "" }, { "docid": "45367153bbaff6732338651be0b5630f", "score": "0.7696405", "text": "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "title": "" }, { "docid": "1a75d4c49ea06f308772e6345b798116", "score": "0.7695935", "text": "public function run()\n {\n //metodo para eiminar una carpeta en storage antes de ejecutar loos seeders\n Storage::deleteDirectory('posts');\n //metodo para crear una carpeta en storage antes de ejecutar loos seeders\n Storage::makeDirectory('posts');\n\n //llamar al seeder de rolSeeder quiere decir el de roles\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Tag::factory(8)->create();\n $this->call(PostSeeder::class);\n \n }", "title": "" }, { "docid": "1c93783c2ea23b1bcf0fcecb87e597a1", "score": "0.7693655", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('planeta')->insert([\n\n 'name'=>'Jupiter',\n 'peso'=>'1321'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Saturno',\n 'peso'=>'6546'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Urano',\n 'peso'=>'564564'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'netuno',\n 'peso'=>'5213'\n \n ]);\n }", "title": "" }, { "docid": "cdec075ee5f589f68df7d8e373f800d0", "score": "0.76934415", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n for ($i=0; $i<100; $i++) {\n $faker = Faker\\Factory::create();\n \\App\\Models\\Agencies::create([\n 'name'=>$faker->name\n ]);\n }\n\n for ($i=0; $i<100000; $i++){\n $faker = Faker\\Factory::create();\n \\App\\Models\\User::create([\n 'first_name'=>$faker->firstName,\n 'last_name'=>$faker->lastName,\n 'email'=>$faker->email,\n 'agencies_id'=>$faker->numberBetween(1,10)\n ]);\n }\n\n }", "title": "" }, { "docid": "016c973d20f43327498477b8b0832042", "score": "0.7692694", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "title": "" }, { "docid": "9c0db96925dc1f490c921bb00a04e003", "score": "0.7691264", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "title": "" }, { "docid": "7cfbc2c0b0ca1e8d2a8048e9780086c8", "score": "0.7690576", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "title": "" }, { "docid": "1b46fa2a96790281813264fc3f8288b5", "score": "0.76882726", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "title": "" }, { "docid": "3cd1f7a4183660348d9343661c46ac18", "score": "0.7687553", "text": "public function run()\n {\n Eloquent::unguard();\n\n $path = 'resources/sql/seed.sql';\n DB::unprepared(file_get_contents($path));\n $manager = new User();\n $manager->username = 'root';\n $manager->email = '[email protected]';\n $manager->password_hash = bcrypt('rootroot');\n $manager->date = '1920-01-01';\n $manager->user_role = 'Manager';\n $manager->id_image = 81;\n $manager->save();\n $user = new User();\n $user->username = 'johndoe';\n $user->email = '[email protected]';\n $user->address = 'John Doe Village';\n $user->password_hash = bcrypt('johndoe');\n $user->date = '1920-01-01';\n $user->user_role = 'Customer';\n $user->id_image = 81;\n $user->security_question = 'Socks';\n $user->save();\n $wishlist = new Wishlist();\n $wishlist->name = 'Favorites';\n $wishlist->id_user = $user->id;\n $wishlist->save();\n\n $this->command->info('Database seeded!');\n }", "title": "" }, { "docid": "98c57ab9dc9353ad077141992a0dd327", "score": "0.7687021", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n $this->call(GenreSeeder::class);\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n Schema::enableForeignKeyConstraints();\n \n // create an admin user with email [email protected] and password secret\n User::truncate();\n User::create(array('name' => 'Administrator',\n 'email' => '[email protected]', \n 'password' => bcrypt('secret'),\n 'role' => 1)); \n }", "title": "" }, { "docid": "bba2ff1a30d0719e1aa8364f25fac587", "score": "0.7686844", "text": "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "title": "" }, { "docid": "39bb4261d54256e6189d729e7893cf92", "score": "0.7685065", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "title": "" }, { "docid": "6f4cd475360e7bf0d5a1fe2752972955", "score": "0.76846963", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(KategoriSeeder::class);\n $this->call(UsersTableSeeder::class);\n $roles = \\App\\Models\\Role::all();\n \\App\\Models\\User::All()->each(function ($user) use ($roles){\n // $user->roles()->saveMany($roles);\n $user->roles()->attach(\\App\\Models\\Role::where('name', 'admin')->first());\n });\n // \\App\\Models\\User::all()->each(function ($user) use ($roles) { \n // $user->roles()->attach(\n // $roles->random(rand(1, 2))->pluck('id')->toArray()\n // ); \n // });\n }", "title": "" }, { "docid": "05fe3186975dd67e97302afe2c8d7e44", "score": "0.7683827", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "title": "" }, { "docid": "54370a0836434e352058b6fa0c527ca2", "score": "0.7678287", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "title": "" }, { "docid": "202189ac5e6ae1c3d158da4dfad00e74", "score": "0.767549", "text": "public function run()\n {\n\t\t\tProject::truncate();\n\t\t\t\n\t\t\tfactory(Project::class, 20) -> create();\n\t\t\t/*$faker = Faker::create('en_US');\n\n\t\t\tfor($i = 0; $i < 10; $i++){\n\t\t\t\tProject::create([\n\t\t\t\t\t'title' => $faker -> name\n\t\t\t\t\t$table->string('title');\n\t\t\t\t\t$table->string('comment');\n\t\t\t\t\t$table->integer('min_price');\n\t\t\t\t\t$table->integer('max_price');\n\t\t\t\t\t$table->integer('category_id');\n\t\t\t\t\t$table->integer('user_id');\n\t\t\t\t\t$table->boolean('delete_flg');\n\t\t\t\t])\n\t\t\t}*/\n }", "title": "" }, { "docid": "4c4d418f65a57b515570be7482a92877", "score": "0.76726556", "text": "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "title": "" }, { "docid": "619d6d0bb4a4cea6758274cbd4639711", "score": "0.76711684", "text": "public function run()\n {\n // Use the factory to create a Faker\\Generator instance.\n $faker = \\Faker\\Factory::create('en_NG');\n\n /**\n * Loop through and insert the dummy data into the users table\n */\n for ($i = 0; $i < 10; $i++) {\n Interest::create([\n 'interest_description' => $faker->word(7),\n 'interest_name' => $faker->sentence(5)\n ]);\n }\n }", "title": "" }, { "docid": "2e8c9674b5b47271246bd3c5d33867fc", "score": "0.7670721", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n\n $faker = Factory::create();\n $users = array_merge(\n factory(User::class, 9)->create()->toArray(),\n factory(User::class, 1)->create(['role_id' => Role::where('name', 'admin')->first()->id])->toArray()\n );\n $categories = factory(Category::class, 6)->create()->toArray();\n\n foreach ($users as $user) {\n /** @var Post $posts */\n $posts = factory(Post::class, rand(1, 5))->create(['user_id' => $user['id']]);\n\n foreach ($posts as $post) {\n $post->categories()->attach([\n $faker->randomElements($categories)[0]['id'],\n $faker->randomElements($categories)[0]['id'],\n ]);\n\n factory(Comment::class, rand(1, 5))->create([\n 'post_id' => $post['id'],\n 'user_id' => $user['id'],\n ]);\n }\n }\n }", "title": "" }, { "docid": "9f18c5c0d91d41c0a8c01c0872701c3c", "score": "0.76674765", "text": "public function run()\n {\n //Trucates exising records to start from scratch\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n User::create([\n 'username'=> \"[email protected]\",\n 'email' => \"[email protected]\",\n 'password'=>bcrypt(\"[email protected]\")\n ]);\n\n DB::table(\"activations\")->insert([\n 'user_id'=>1,\n 'code'=>'4rxpG9JWnDDTv3SNUHjsC3RsUwhlZgez',\n 'completed'=> 1,\n 'completed_at'=>Carbon::now(),\n 'created_at'=> Carbon::now(),\n 'updated_at'=> Carbon::now()\n ]);\n\n\n }", "title": "" }, { "docid": "b8a2d239e166712dd77165697867a5de", "score": "0.76674277", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n// Task::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 20; $i++) {\n Task::create([\n 'name' => $faker->name,\n 'status' => $faker->randomElement($array = array ('to-do','doing','done')),\n 'description' => $faker->paragraph,\n 'start' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'end' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'assignee' => $faker->randomElement(User::pluck('id')->toArray()),\n 'assigner' => $faker->randomElement(User::pluck('id')->toArray()),\n ]);\n }\n }", "title": "" }, { "docid": "861976ea353841a1120d5e19df4f5651", "score": "0.7667395", "text": "public function run()\n {\n // $this->call(GroupsTableSeeder::class);\n // $this->call(UsersTableSeeder::class);\n // $this->call(AdminsTableSeeder::class);\n // $this->call(SellersTableSeeder::class);\n\n $this->call(AboutsTableSeeder::class);\n // $this->call(AdvertisesTableSeeder::class);\n $this->call(ContactsTableSeeder::class);\n $this->call(HowToshopsTableSeeder::class);\n $this->call(HowTosellsTableSeeder::class);\n $this->call(OfficialPartnersTableSeeder::class);\n $this->call(OurActivitiesTableSeeder::class);\n $this->call(PaymentsTableSeeder::class);\n $this->call(RefundsTableSeeder::class);\n $this->call(SellerStoriesTableSeeder::class);\n $this->call(WithdrawalsTableSeeder::class);\n\n // factory(App\\User::class,5)->create();\n // factory(App\\Model\\Product::class,50)->create();\n // factory(App\\Model\\Review::class,300)->create();\n }", "title": "" }, { "docid": "06f416db2b8ef80c81b9ff3ec0e65217", "score": "0.7661292", "text": "public function run()\n {\n $this->call([\n ContentSeeder::class,\n MetadataSeeder::class,\n// CategorySeeder::class,\n SliderSeeder::class,\n UserSeeder::class,\n ]);\n// factory('App\\Termination',10)->create();\n// factory('App\\Subcategory',10)->create();\n// factory('App\\Closure',10)->create();\n// factory('App\\Capacity',10)->create();\n $this->call(ContentsTableSeeder::class);\n $this->call(SlidersTableSeeder::class);\n }", "title": "" }, { "docid": "30dac972abaa34409e5f3917314fcb65", "score": "0.7659881", "text": "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "title": "" }, { "docid": "e508532bee1083b015a68a8047e78ca6", "score": "0.76597446", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Dominic',\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Kira',\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Less',\n ]);\n }", "title": "" }, { "docid": "c5a6368cf4078a0a4d8b652f1ce43194", "score": "0.7657722", "text": "public function run()\n {\n // Create roles\n $this->call(RoleTableSeeder::class);\n // Create example users\n $this->call(UserTableSeeder::class);\n // Create example city\n $this->call(CitiesTableSeeder::class);\n // Create example restaurant type\n $this->call(RestaurantsTypesSeeder::class);\n // Create example restaurant\n $this->call(RestaurantsSeeder::class);\n }", "title": "" } ]
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "8b2994ae8bb53a4cc3befeb14a5962bd", "score": "0.0", "text": "public function boot()\n\t{\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "008ac8e98cc52b99ef5d620fb71c3080", "score": "0.7733094", "text": "public function boot()\n {\n $this->bootServices();\n }", "title": "" }, { "docid": "3f6c05fce7f7735e6c824b4fb0aef0ec", "score": "0.7417795", "text": "public function boot()\n {\n $this->app->configure('services');\n\n $this->registerServiceRedirects();\n }", "title": "" }, { "docid": "fe08939c056e1aaf293ceb5ee0ac64f5", "score": "0.7128334", "text": "public function boot()\n {\n $path = realpath(__DIR__.'/../../config/services.php');\n $config = $this->app['config']->get('services', []);\n $this->app['config']->set('services', array_merge(require $path, $config));\n\n Auth::extend('jwt', function ($app, $name, array $config) {\n return $app->make(JWTGuard::class);\n });\n // this is to resolve jwt auth conflict in SSO in a non-breaking fasion\n Auth::extend('jwtx', function ($app, $name, array $config) {\n return $app->make(JWTGuard::class);\n });\n Auth::extend('token', function($app, $name, array $config) {\n return $app->make(TokenGuard::class);\n });\n }", "title": "" }, { "docid": "7f58e2863e602cefb31ee23dff6668cb", "score": "0.7116051", "text": "public function bootstrap()\n {\n $this->app->bootstrapWith($this->bootstrappers, $this);\n }", "title": "" }, { "docid": "49cf29174feba988c15abadb7f86f07a", "score": "0.71031344", "text": "public function boot()\n {\n $this->bindService();\n $this->bindRepositories();\n }", "title": "" }, { "docid": "317258508498a09946b6fe594d30220f", "score": "0.7099728", "text": "public function boot(): void\n {\n // publish migrations\n $this->bootMigrations();\n\n // boot translations\n $this->bootTranslations();\n\n // boot Blade directive and components\n $this->bootBladeDirective();\n\n // boot Validators\n $this->bootValidators();\n\n // boot middleware\n $this->bootMiddleware();\n\n // boot observers\n $this->bootObservers();\n\n // boot Services\n $this->bootServices();\n\n // boot Factories\n $this->bootFactories();\n\n // boot Policies\n $this->bootPolicies();\n\n // boot Views\n $this->bootViews();\n }", "title": "" }, { "docid": "5d76afc2ee22659c2cbf0078019d466a", "score": "0.7081085", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "5d76afc2ee22659c2cbf0078019d466a", "score": "0.7081085", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "698ca6c80c3c1a27249464db028f9b2e", "score": "0.706464", "text": "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->publishConfiguration();\n }\n\n $this->bootAuthProviders();\n }", "title": "" }, { "docid": "20d94bfd2bc75789bec9fde72f4d4606", "score": "0.6981093", "text": "public function boot()\n {\n $this->app->singleton(UrlServices::class);\n $this->app->singleton(MetaDataService::class);\n }", "title": "" }, { "docid": "c430b64149fbf723eba50ee04eb88d33", "score": "0.6968189", "text": "public function boot()\n\t{\n\t\t// Register classes and commands\n\t\t$this->app = static::make($this->app);\n\t}", "title": "" }, { "docid": "3d2419184def162588f77ac9de0e207f", "score": "0.69559884", "text": "public function boot()\n {\n if ( $this->app->environment() === 'local' ) {\n $this->registerServiceProviders();\n $this->registerFacadeAliases();\n }\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "066c5cca52c3bf350762cb32408c16d2", "score": "0.694813", "text": "protected function swooleBootstrap()\n {\n $this->app->bootstrapWith([\n RegisterFacades::class,\n RegisterProviders::class,\n ]);\n }", "title": "" }, { "docid": "d54c58ff5af2562976baeb41f91c70e5", "score": "0.6927926", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n $this->setupEvents($this->app->events);\n $this->setupQueue($this->app->queue);\n }", "title": "" }, { "docid": "41f72b02078d8e7817666034fd6f8b1d", "score": "0.6917839", "text": "public function boot()\r\n\t{\r\n\t\t$this->app->register('Intervention\\Image\\ImageServiceProvider');\r\n\t\t$this->package('raftalks/ravel');\r\n\r\n\t\t$this->registerCommands();\r\n\r\n\t\t$auth = $this->app['auth'];\r\n\t\t$rolesConfig = $this->getAppConfig('roles');\r\n\t\t$this->app['acl'] = new Acl\\Acl($auth, $rolesConfig);\r\n\t\t$this->app['acl']->setModuleModel(); \r\n\t\t$this->app['acl']->setUsergroupModel(); \r\n\t\t$this->app['acl']->setRoleModel(); \r\n\r\n\t\t$this->loadFilesRequired();\r\n\r\n\t}", "title": "" }, { "docid": "f83488741c695037fa419b58a665fb79", "score": "0.69145995", "text": "public function boot()\n\t{\n\t\t$this->package('wardrobe/cabinet');\n\n\t\t$this->bindRepositories();\n\n\t\trequire_once __DIR__.'/../../helpers.php';\n\t\trequire_once __DIR__.'/../../routes.php';\n\t\trequire_once __DIR__.'/../../filters.php';\n\t}", "title": "" }, { "docid": "157feb4dac41d42306cb8a74279d891b", "score": "0.6908571", "text": "public function boot(): void\n {\n $this->app->singleton(PhpConfig::class, static function () {\n return new PhpConfig;\n });\n\n if (config('profiling.enabled')) {\n $this->app->singleton(ProfileRequest::class);\n $this->app->singleton(XHProf::class);\n }\n\n $this->app->bind(LengthAwarePaginator::class);\n }", "title": "" }, { "docid": "a6eb83b73f38a5c2545ebfbda28b0006", "score": "0.6905511", "text": "public function boot()\n {\n\n // Scout Engines\n resolve(EngineManager::class)->extend('localized-algolia', function () {\n return new LocalizedAlgoliaEngine(Algolia::create(\n config('scout.algolia.id'), config('scout.algolia.secret')\n ));\n });\n\n }", "title": "" }, { "docid": "59821e90ce6a281c64858c5a8540a608", "score": "0.69048125", "text": "public function boot()\n {\n // Add dirs from config\n foreach (config('modules.dirs') as $dir)\n {\n Modules::addDir(base_path($dir));\n }\n\n // Boot modules\n foreach (Modules::getInstalledModules() as $module)\n {\n // Register module service providers\n $providers = $module->getProviders();\n\n if (is_array($providers))\n {\n foreach($providers as $provider)\n {\n $this->app->register($provider);\n }\n }\n\n // Require files\n $files = $module->getFiles();\n\n if (is_array($files))\n {\n foreach ($files as $file)\n {\n require_once $file;\n }\n }\n }\n }", "title": "" }, { "docid": "1882f82508af78fbf97fedaeafe26256", "score": "0.69047016", "text": "public function bootstrap()\n {\n $this->container->isInstalled() && $this->extension->repository()->each(function (Extension $extension) {\n $providers = collect($this->config->get('app.providers'));\n $providers->push($extension->service());\n $this->config->set('app.providers', $providers->toArray());\n });\n }", "title": "" }, { "docid": "8ad0a8381f4e0f6665a80c1a582b380d", "score": "0.6880896", "text": "public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'fereloper');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'fereloper');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n\n $this->bootMigrations();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "9af44d0880e64b2b6da62df58b757d89", "score": "0.6858665", "text": "public function boot()\n {\n $this->getContainer()\n ->add(\n 'console',\n Kernel::class,\n true\n )\n ->addArguments([\n config('app.name', 'bb'),\n $this->getContainer()->version(),\n ]);\n\n $this->getContainer()->get('console')->bootstrap();\n }", "title": "" }, { "docid": "e08d1b1681680937e689cc658cfd3c75", "score": "0.6855621", "text": "public function bootstrap()\n {\n $config = new ConfigRepository(base_path() . '/config');\n\n // Initialize container for dependency injection\n $container = $this->initContainer($config);\n\n // Instantiate Slim\n $slim = new Slim($container);\n\n // Load routes into Slim router\n $this->initRoutes($config, $container, $slim->router);\n\n // Run app\n $slim->run();\n }", "title": "" }, { "docid": "2d06d5d78765593662fffe166228e359", "score": "0.6848095", "text": "public function boot()\n {\n $this->app->singleton(PlanetRepositoryInterface::class, SwapiPlanetRepository::class);\n $this->app->singleton(Client::class, function(){\n return new Client([\n 'base_uri' => env('GUZZLE_BASE_URI', '')\n ]);\n });\n }", "title": "" }, { "docid": "cc726cde758d19bb588823de8418f975", "score": "0.6846149", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Commands\\ChapolimCommand::class,\n Commands\\ControllerMakeCommand::class,\n Commands\\MigrationMakeCommand::class,\n Commands\\ModelMakeCommand::class,\n Commands\\RepositoryMakeCommand::class,\n Commands\\ServiceMakeCommand::class,\n ]);\n }\n }", "title": "" }, { "docid": "f0bc695d2fc2837d51fbe2e80d87ec2f", "score": "0.6844318", "text": "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'early-access');\n\n $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'early-access');\n\n $this->app['router']->namespace('Neo\\\\EarlyAccess\\\\Http\\\\Controllers')\n ->middleware(['web'])\n ->group(function () {\n $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');\n });\n\n $this->registerEventListeners();\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "0c389cfecb2be25d78299d88957ce188", "score": "0.6835151", "text": "public function boot()\n {\n MenuService::addProvider(MenuProviderPipe::class);\n $this->app->bind('view.finder', function ($app) {\n return new DayByDayViewFinder($app['files'], $app['config']['view.paths']);\n });\n $this->app->bind(\\App\\Http\\Controllers\\LeadsController::class, LeadsController::class);\n $this->app->bind(\\App\\Http\\Controllers\\IntegrationsController::class, IntegrationsController::class);\n $this->app->bind(\\App\\Http\\Controllers\\PagesController::class, PagesController::class);\n $this->app->bind(\\App\\Http\\Requests\\Lead\\StoreLeadRequest::class, \\SpiritSystems\\DayByDay\\Core\\Http\\Requests\\StoreLeadRequest::class);\n\n Livewire::component('outcome-by-period', OutcomeByPeriod::class);\n\n $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');\n }", "title": "" }, { "docid": "35d240254d782f31b969eb44bebad4dd", "score": "0.6834078", "text": "public function boot()\n {\n $this->publishes([\n __DIR__.'/Config/bkstar123_apibuddy.php' => config_path('bkstar123_apibuddy.php'),\n ]);\n\n if ($this->app->runningInConsole()) {\n $this->commands([\n PublishConfiguration::class,\n Scalfoldings::class,\n ]);\n }\n\n if (config('bkstar123_apibuddy.replace_exceptionhandler')) {\n $this->app->singleton(ExceptionHandler::class, Handler::class);\n }\n }", "title": "" }, { "docid": "d8391a23e534e91a225a7a82e8383282", "score": "0.6819767", "text": "public function boot()\n {\n\n $this->app->bind(IAuthService::class, AuthService::class);\n\n // Custom Service\n }", "title": "" }, { "docid": "e2f5bfee6e22133812a3098be217343a", "score": "0.6806028", "text": "public function boot()\n {\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'template-operation');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'template-operation');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "79b40fa2bd593740817e747e3839024b", "score": "0.6794247", "text": "public function boot()\n {\n if( file_exists('env') ) {\n App::setLocale(Language::default());\n }\n JsonResource::withoutWrapping();\n Schema::defaultStringLength(191);\n $this->commands([\n InstallCommand::class,\n ClientCommand::class,\n KeysCommand::class,\n ]);\n }", "title": "" }, { "docid": "b05cc94e5573c300f82ba137a39b2bcc", "score": "0.67871755", "text": "public function boot(){\n\n // Enable Custom Serializer\n if(env(EnvVariables::API_CUSTOM_SERIALIZER, false)) {\n $this->app[Factory::class]->setAdapter(function ($app) {\n $fractal = new Manager;\n $fractal->setSerializer(new CustomDingoDataArraySerializer);\n return new Fractal($fractal);\n });\n }\n\n // Enable JWT with Dingo API\n if(env(EnvVariables::ENABLE_JWT, false)) {\n /** @var Auth $dingo_auth */\n $this->app[Auth::class]->extend('jwt', function ($app) {\n return new JWT($app[JWTAuth::class]);\n });\n }\n }", "title": "" }, { "docid": "8005e7f28b51348b67f4f5cc90355b78", "score": "0.6786179", "text": "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n Gateway::register('vonage', new Vonage);\n Gateway::register('twilio', new Twilio);\n }", "title": "" }, { "docid": "87453691da1f25940205d1fa7aba88ef", "score": "0.67850524", "text": "public function boot()\n {\n $this->app->bind('rpc_proxy', new Proxy($this->services));\n }", "title": "" }, { "docid": "3fb0f09dcdf15f0c95cc504f05d322d2", "score": "0.67820543", "text": "public function boot()\n {\n //Merge crudadmin configs\n $this->mergeAdminConfigs(require __DIR__.'/../Config/admin.php');\n\n //Merge adminpayments configs\n $this->mergeConfigs(\n require $this->getPaymentsConfigPath(),\n $this->packageConfigKey,\n [],\n [],\n );\n\n $this->pushComponentsPaths();\n\n $this->addPaymentLogChannel();\n\n $this->enablePaymentHooksCors();\n }", "title": "" }, { "docid": "d3a2e2a829d8d139fe83769e4578470f", "score": "0.6767572", "text": "private function boot(): void\n {\n // First check if the application is already booted\n if ($this->isBooted) {\n return;\n }\n\n // Boot all registered providers\n foreach ($this->registeredProviders as $provider) {\n $this->bootServiceProvider($provider);\n }\n\n $this->isBooted = true;\n }", "title": "" }, { "docid": "3e672e4020eed103df85359a0f91b0c7", "score": "0.67670965", "text": "public function boot()\n {\n if (!$this->booted) {\n foreach ($this->providers as $provider) {\n $provider->boot($this->container);\n }\n $this->booted = true;\n }\n }", "title": "" }, { "docid": "57000f305b89a5a2c7098b5c1269ce2d", "score": "0.6765844", "text": "public function boot()\n {\n $container = $this->getContainer();\n $container->share(ConfigFactory::class)\n ->addMethodCall('create', [base_path('config')]);\n $providers = $container->get(ConfigFactory::class)->get('app.providers');\n foreach ($providers as $provider) {\n $container->addServiceProvider($provider);\n }\n }", "title": "" }, { "docid": "5c2c15452e6efd947f4ac679c18031bc", "score": "0.67483187", "text": "public function boot()\n {\n $this->app->bind('App\\Services\\OauthTokenService', function() {\n return new OauthTokenService;\n });\n\n $this->app->bind('oauthclient', function () {\n return new OauthClientService;\n });\n }", "title": "" }, { "docid": "90da5422178f70c34f3e3a00a202ed67", "score": "0.6738128", "text": "public function boot()\n {\n $this->loadRoutesFrom(__DIR__ . '/routes/routes.php');\n\n $this->loadViewsFrom(__DIR__ . '/views', 'slakstrap');\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/views' => resource_path('views/vendor/slakstrap'),\n ]);\n }\n\n $this->bladeDirectives();\n\n $this->customComponents();\n }", "title": "" }, { "docid": "65e82c4b2fc0f870ce912d24a599e6ff", "score": "0.67376566", "text": "public function boot(): void\n {\n // Observers\n User::observe(UserObserver::class);\n\n // Load the API routes if enabled\n if (config('contact-manager.enable_api_routes')) {\n $this->loadRoutesFrom(__DIR__ . '/routes/api.php');\n }\n\n // Migrations\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n }", "title": "" }, { "docid": "a3b8ce303c6cee02fa87290931aef977", "score": "0.6732414", "text": "public function boot() {\n // TODO: Move this out of here.\n $base_path = base_path();\n AnnotationRegistry::registerAutoloadNamespace('FOS\\ElasticaBundle\\Configuration', \"$base_path/vendor/friendsofsymfony/elastica-bundle\");\n AnnotationRegistry::registerAutoloadNamespace('JMS\\Serializer\\Annotation', \"$base_path/vendor/jms/serializer/src\");\n\n if ($this->app['config']->get('laravel-elastic-search::disabled', FALSE)) {\n return;\n }\n\n $this->loadIndexes();\n $this->transformerPass();\n $this->providersPass();\n $this->doctrineSubscribersPass();\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "e5a53e999bb04389084056f06742fde7", "score": "0.6723685", "text": "public function boot()\n {\n Blade::if('admin', function () {\n return Auth::check() && Auth::user()->role == 'admin';\n });\n\n $this->app->singleton(PricingService::class, function($app) {\n return $app->make(CachedPricingService::class);\n });\n }", "title": "" }, { "docid": "1ffc8309ae39923470c7c38318a59ee0", "score": "0.6723314", "text": "public function boot()\n {\n view()->composer('layouts.app', function($view){\n $view->with('menuPages', Page::whereIsRoot()->defaultOrder()->getModels());\n });\n\n $this->app->singleton(CostCalculator::class, function ($app) {\n $config = $app->make('config')->get('banner');\n return new CostCalculator($config['price']);\n });\n\n }", "title": "" }, { "docid": "c3f0b1cda1f0704e5d2a312e8cf683b1", "score": "0.67174083", "text": "public function boot()\n {\n if ($this->booted) return;\n \n $this->container = $container = new Container();\n \n $this->registerServices ($container);\n $this->registerRoutes ($container);\n $this->registerEventListeners($container);\n \n $this->booted = true;\n }", "title": "" }, { "docid": "87e1fe8aaa72f9c2a11b12f36ed37400", "score": "0.6716905", "text": "public function boot()\n {\n $this->app->bind(IDeliveryService::class,DeliveryService::class);\n $this->app->bind(IDeliveryRepository::class,DeliveryRepository::class);\n $this->app->bind(IRouteService::class,RouteService::class);\n $this->app->bind(IRouteRepository::class,RouteRepository::class);\n }", "title": "" }, { "docid": "92f64861f459361068315737108b3e00", "score": "0.6716502", "text": "public function boot()\n {\n // Macros\n Response::mixin(new ResponseMixins());\n\n // Facades\n $this->app->singleton('MemberRequest', function ($app) {\n return new MemberRequestRepository();\n });\n $this->app->singleton('Invite', function ($app) {\n return new InviteRepository();\n });\n $this->app->singleton('Account', function ($app) {\n return new AccountRepository();\n });\n $this->app->singleton('AccountType', function ($app) {\n return new AccountTypeRepository();\n });\n $this->app->singleton('Email', function ($app) {\n return new EmailRepository();\n });\n $this->app->singleton('Profile', function ($app) {\n return new ProfileRepository();\n });\n $this->app->singleton('Token', function ($app) {\n return new TokenRepository();\n });\n }", "title": "" }, { "docid": "80aa29228bd49b32e45fec441bfd2360", "score": "0.67148966", "text": "public function boot(): void\n {\n $this->loadMigrations();\n $this->registerCommands();\n $this->mergeConfigurations();\n $this->configureDependencyInjection();\n }", "title": "" }, { "docid": "2b7faf7b71a71a55e0a4605c60a8765e", "score": "0.67147845", "text": "public function boot()\n {\n // Registering how command bus should map to their handlers.\n $this->app->make(Dispatcher::class)->mapUsing(function ($command) {\n return get_class($command) . 'Handler@handle';\n });\n\n $this->registerSharedVariables();\n $this->registerDevProviders();\n }", "title": "" }, { "docid": "11d561785bc596e3295d8426da3b9a00", "score": "0.670992", "text": "public function boot()\n {\n // Not really anything to boot.\n }", "title": "" }, { "docid": "de313c61e7354bf8becdb5d3838edc7a", "score": "0.67071766", "text": "public function boot()\n {\n $this->loadEnvironmentSpecificEnvFile();\n\n $this->addWithoutEventsMacroToFactory();\n }", "title": "" }, { "docid": "79d8ee011a6f475ece5739f4cd4d5a27", "score": "0.67023015", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n\n $this->commands([ScaffoldCommand::class]);\n\n }\n }", "title": "" }, { "docid": "a1d2fd88a1e4e97d5134c838c931b404", "score": "0.67012036", "text": "public function boot()\n {\n Schema::defaultStringLength(191);\n $fooService = new \\App\\Services\\TestingService();\n return $this->app->bind('Testing', \\App\\Services\\TestingService::class);\n\n }", "title": "" }, { "docid": "ae44475e685cb2aa840157b3b0b56c5b", "score": "0.67007583", "text": "public function boot()\n {\n $this->configurePublishing();\n $this->configureBlade();\n $this->configureAssetBuilders();\n }", "title": "" }, { "docid": "9cc8f94704c4318261a8645e8e22f948", "score": "0.66829646", "text": "public function boot()\n {\n //\n $myService = new MyService();\n $this->app->instance(MyService::class, $myService);\n\n $jWTService = new JWTService();\n $this->app->instance(JWTService::class, $jWTService);\n\n $db_host=env('DB_HOST', '');\n $db_user=env('DB_USERNAME', '');\n $db_pass=env('DB_PASSWORD', '');\n $db_name=env('DB_DATABASE', '');\n $db_charset='utf-8';\n $db_port=env('DB_PORT', '');\n $db_main=new Model();\n $db_main->connect($db_host,$db_user,$db_pass,$db_name,$db_charset,$db_port);\n $this->app->instance(Model::class, $db_main);\n }", "title": "" }, { "docid": "605911944be1f19e942d496d27550729", "score": "0.6672465", "text": "public function boot(Application $app)\n {\n\n }", "title": "" }, { "docid": "d112138ecac704134cd0efae619b934e", "score": "0.6672248", "text": "public function boot()\n {\n $this->publishes([\n __DIR__.'/../config/microservice-monitor.php' => config_path('microservice-monitor.php'),\n ], 'microservice-monitor');\n\n $this->publishes([\n __DIR__.'/../database/migrations/2021_08_04_145607_create_microservices_table.php' => database_path('migrations/2021_08_04_145607_create_microservices_table.php'),\n ], 'microservice-monitor');\n\n $this->publishes([\n __DIR__.'/../database/seeders/MicroserviceSeeder.php' => database_path('seeders/MicroserviceSeeder.php'),\n ], 'microservice-monitor');\n\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'microservice-monitor');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n Nova::serving(function (ServingNova $event) {\n //\n });\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "66d64ff3ca35b312cbf1a7b4ee4e525a", "score": "0.6672181", "text": "public function boot()\n {\n // Could not figure out whether there is a way to switch off the automatic instantiation of classes.\n // Therefore hooked into injection and replaced the $code with values\n $this->app->when('App\\BusinessLogic\\UssdService')->needs('$codes')->give(function ($app){\n $codes = config('codes');\n foreach(config('codes') as $key => $code){\n $codes[$key] = str_replace(['phoneNumber'], $app->request->input('phoneNumber'), $code);\n }\n return $codes;\n });\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" }, { "docid": "9b79eee2223d277de4236424a96989cb", "score": "0.6671432", "text": "public function boot() {\n //\n }", "title": "" } ]
9f956d33e6b02d0a79ce74c228c17435
Make Document Available to all
[ { "docid": "1ece28d210bf610843b4d3c31ef288e1", "score": "0.0", "text": "function setGlobal($global){\n\t\t$this->_document_global = ($global===true || $global=='yes') ? true : false;\n\t}", "title": "" } ]
[ { "docid": "21469bd61715a781625d7b203365fc4f", "score": "0.60011595", "text": "protected function setDocument() \n\t{\n\t\t$isNew = $this->item->id == 0;\n\t\t$document = Factory::getDocument();\n\t\t$document->setTitle($isNew ? Text::_('COM_HELLOWORLD_HELLOWORLD_CREATING') : Text::_('COM_HELLOWORLD_HELLOWORLD_EDITING'));\n\t\t$document->addScript(Uri::root() . $this->script);\n\t\t$document->addScript(Uri::root() . \"/administrator/components/com_sportsmanagement/views/sportsmanagement/submitbutton.js\");\n\t\tText::script('COM_HELLOWORLD_HELLOWORLD_ERROR_UNACCEPTABLE');\n\t}", "title": "" }, { "docid": "c244d11c4b7adc4b27790d32851b5d31", "score": "0.5992205", "text": "protected function setDocument()\n\t{\n\t\t// Set the title of the document\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle(JText::_('COM_CLUB_MEMBERS'));\n\t\t\n\t\t// Add the script for clearing out all info fields\n\t\t$script = array(\n\t\t\t\"jQuery(document).ready(function(){\",\n\t\t\t// \"jQuery('[type=radio][id^=filter]').click(function(){this.form.submit();});\",\n\t\t\t// \"jQuery('[name^=\\\"info[fields]\\\"]').change(function(){this.form.submit();});\",\n\t\t\t\"jQuery('.js-info-btn-apply').click(function(){this.form.submit();});\",\n\t\t\t\"jQuery('.js-info-btn-clear').click(function(){\",\n\t\t\t\"jQuery('[name^=info] option:selected').attr('selected', false);\",\n\t\t\t\"this.form.submit();\",\n\t\t\t\"});\",\n\t\t\t\"});\"\n\t\t);\n\t\t$document->addScriptDeclaration(implode('', $script));\n\t}", "title": "" }, { "docid": "1e7fad62ad8bddb3e189e847d0b23afb", "score": "0.59758556", "text": "public function anular(Document $document);", "title": "" }, { "docid": "eea40b2da367675b8fecd83ecef2f0a7", "score": "0.59564084", "text": "public function initDocument()\n {\n\n }", "title": "" }, { "docid": "18193c7a48efc2a430b32d4c8bab9291", "score": "0.580801", "text": "public function startDocument() {\n }", "title": "" }, { "docid": "fefd2fb71093441b79648d386baed7fa", "score": "0.57758856", "text": "public function start_document() {\n\t}", "title": "" }, { "docid": "0eeb75a7a6a61ba8927f2324d3a17b25", "score": "0.5669929", "text": "function update(){\n\t\t$this->_update_document();\n\t}", "title": "" }, { "docid": "d4c5ca7703f3c0121c1c2c3a30c7ed76", "score": "0.5621227", "text": "protected function setDocument() \r\n {\r\n $doc = JFactory::getDocument();\r\n $doc->addStyleSheet(JURI::base().'components/com_odyssey/css/odyssey.css');\r\n }", "title": "" }, { "docid": "9b434237ffed46943b91dd4abfd426d7", "score": "0.56193525", "text": "abstract protected function supports($document);", "title": "" }, { "docid": "f639ff0aed3735f4db02ff949a3076b1", "score": "0.56150115", "text": "public function accept() {\n \t$this->loadDoc($this->doc);\n \t\n \t// make sure doc file has been created\n \tif (file_exists(\"docs/{$this->template}{$this->filend}\")) {\n \t\tprint \"Word Document <a href=\\\"docs/{$this->template}{$this->filend}\\\" target=\\\"_blank\\\">{$this->template}</a> hast been saved!\";\n \t} else {\n \t\tdie(\"Sorry, file could not be created!\");\n \t} \t\n\t}", "title": "" }, { "docid": "c55acdcb46afbc345276454db0d07965", "score": "0.56117696", "text": "protected function setDocument() \n\t{\n \t\t// Get a refrence of the page instance in joomla\n\t\t$document\t= JFactory::getDocument();\n // Set toolbar items for the page\n $stylelink = '<link rel=\"stylesheet\" href=\"'.JURI::root().'administrator/components/com_sportsmanagement/assets/css/jlextusericons.css'.'\" type=\"text/css\" />' .\"\\n\";\n $document->addCustomTag($stylelink);\n \n\t\t$isNew = $this->item->id == 0;\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle($isNew ? JText::_('COM_SPORTSMANAGEMENT_DIVISIONS_NEW') : JText::_('COM_SPORTSMANAGEMENT_DIVISIONS_EDIT'),'divison');\n\t\t$document->addScript(JURI::root() . $this->script);\n\t\t$document->addScript(JURI::root() . \"/administrator/components/com_sportsmanagement/views/sportsmanagement/submitbutton.js\");\n\t\tJText::script('COM_HELLOWORLD_HELLOWORLD_ERROR_UNACCEPTABLE');\n\t}", "title": "" }, { "docid": "802f888b08575314aa406c5dd3454b15", "score": "0.55313313", "text": "protected function setDocument()\n\t{\n\t\t$isNew = (!JRequest::get('template_id', false) );\n\t\t$document = JFactory::getDocument();\n\t\t$document->setTitle($isNew ? JText::_('COM_NEWSLETTER_TEMPLATE_CREATING') : JText::_('COM_NEWSLETTER_TEMPLATE_EDITING'));\n\n\t\t$document->addStylesheet(JURI::root() . '/media/com_newsletter/css/admin.css');\n\t\t$document->addStylesheet(JURI::root() . '/media/com_newsletter/css/templates.css');\n\n\t\t$document->addScript(JURI::root() . '/media/com_newsletter/js/migur/js/core.js');\n\t\t$document->addScript(JURI::root() . '/administrator/components/com_newsletter/views/template/template.js');\n\t\t$document->addScript(JURI::root() . \"/administrator/components/com_newsletter/views/template/submitbutton.js\");\n\t\t$document->addScript(JURI::root() . \"/administrator/components/com_newsletter/models/forms/template.js\");\n\n\t\tJText::script('COM_NEWSLETTER_SUBSCRIBER_ERROR_UNACCEPTABLE');\n\t}", "title": "" }, { "docid": "0b1b1d8a931d4fd3aa54bf175cd33451", "score": "0.5527325", "text": "function checkPermission(){\n\t//check to make sure document exists\n\t//Check for permissions\n}", "title": "" }, { "docid": "43dae1febcbbb3cb614da52f1d62bc91", "score": "0.54848117", "text": "protected function setDocument() {\n\t \n\t\t$this->document->setTitle($this->documentTitle);\n \n\t\t// Add scripts\n JHtml::_('behavior.keepalive');\n JHtml::_('behavior.formvalidation');\n JHtml::_('behavior.tooltip');\n \n JHtml::_('formbehavior.chosen', 'select');\n \n JHtml::_('bootstrap.tooltip');\n JHtml::_('itprism.ui.bootstrap_fileuploadstyle');\n \n\t\t$this->document->addScript('../media/'.$this->option.'/js/admin/'.JString::strtolower($this->getName()).'.js');\n \n\t\t$this->document->addStyleSheet(\"../media/\".$this->option.'/css/admin/style.css');\n\t}", "title": "" }, { "docid": "43c90c5ebd6083855e926f7832c3394a", "score": "0.5465665", "text": "function project_project_modifier(&$node)\n {\n useattrib(\"docmanager.projectdocumentmanager\");\n $node->add(new projectDocumentManager(\"documents\", AF_HIDE_LIST|AF_HIDE_SEARCH), \"documents\");\n }", "title": "" }, { "docid": "ddbd13b6ddab17ea065b6b0e9650a672", "score": "0.5464383", "text": "public function getDocuments();", "title": "" }, { "docid": "b1bfbb39fffeec5c7f94a747312ba029", "score": "0.5438703", "text": "public function run()\n {\n $document_list = array(\n array(\n 'name' => 'Deployment Architecture'\n ),\n\n array(\n 'name' => 'Technical Architecture'\n\n ),\n\n array(\n 'name' => 'Service Catalogue'\n\n ),\n\n array(\n 'name' => 'Integration Arhitecture'\n\n ),\n\n array(\n 'name' => 'Capability Plan'\n\n )\n );\n\n foreach($document_list as $document){\n \\App\\DocumentList::create($document);\n }\n }", "title": "" }, { "docid": "def80ff64b83cf22505ca48eabe9cf62", "score": "0.5438085", "text": "function __construct(){\r\n $this->createDocument();\r\n }", "title": "" }, { "docid": "781a6611ecafb9fdc1a24bf919306b8d", "score": "0.5427514", "text": "public static function scopeDocument()\n {\n return self::where('type', self::DOCUMENT);\n }", "title": "" }, { "docid": "5a10d74519b4740edd481e5e1d3c38ac", "score": "0.542233", "text": "protected function setDocument() {\n $isNew = isset($this->item) && ($this->item->id < 1);\n $document = JFactory::getDocument();\n $document->setTitle(JText::_('COM_WIMTVPRO_STATE_ADD'));\n\n $document->addStyleSheet(JURI::base() . \"components/com_wimtvpro/assets/css/wimtvpro.css\");\n $document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/jquery-2.0.2.min.js\");\n $document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/wimtvpro.js\");\n $document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/jwplayer/jwplayer.js\");\n }", "title": "" }, { "docid": "b4cc87a1f7fd785ca469d552b83432a6", "score": "0.5412689", "text": "function __construct() {\n\t\tparent::__construct(\"documents\");\n\t}", "title": "" }, { "docid": "21d4be7c3ace013eb1f86af1f00b6887", "score": "0.5402874", "text": "public function activate () {\r\n\r\n // create documents table if doesn't already exist\r\n if ($this->db->get_var (\"SHOW TABLES LIKE '\" . DDS_TABLE_DOCUMENTS . \"'\") != DDS_TABLE_DOCUMENTS) {\r\n\r\n $sql = '\r\n CREATE TABLE ' . DDS_TABLE_DOCUMENTS . '\r\n ( id mediumint(8) NOT NULL AUTO_INCREMENT\r\n , type varchar(32) NOT NULL\r\n , author bigint(20) NOT NULL\r\n , file_name varchar(255) NOT NULL\r\n , title varchar(255) NOT NULL\r\n , description longtext\r\n , date_updated datetime NOT NULL\r\n , UNIQUE KEY id (id))\r\n ';\r\n $this->db->query ($sql);\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "dff142527dfa007112795ac205d515e6", "score": "0.5399683", "text": "function initDocFields () {\n $this->docRoot = \"biblCollection\";\n $this->docItem = \"biblRecord\";\n }", "title": "" }, { "docid": "6c47000cd199683da548a828b7337803", "score": "0.53948617", "text": "protected function registerDocumentIndexing(): void\n {\n $this->app->bind(Logging\\ConsoleChannel::class, function ($app) {\n return new Logging\\ConsoleChannel(new ConsoleOutput);\n }); \n\n $this->app->bind(Logging\\SlackChannel::class, function ($app) {\n return new Logging\\SlackChannel(new SlackClient(\n config('elasticsearch.logging.slack.webhook'), \n config('elasticsearch.logging.slack')\n ));\n });\n\n $this->app->bind(Logging\\Logger::class, function ($app) {\n return new Logging\\Logger([\n $app[Logging\\SlackChannel::class],\n $app[Logging\\ConsoleChannel::class],\n ]);\n });\n\n $this->app->bind(Indexer::class, function ($app) {\n return new Indexer(\n $app[Client::class],\n $app[Logging\\Logger::class],\n $app[Index::class]->getIndexName()\n );\n });\n }", "title": "" }, { "docid": "dca53d9e6f636000af1af5fc8e3db20b", "score": "0.53798527", "text": "public function manageAction() { \n\n //CHECK USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n //GET VIEWER DETAILS\n\t\t$viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\t\t$level_id = $viewer->level_id;\n\n //GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation('document_main', array(), 'document_main_manage');\n\n //VIEW, EDIT, DELETE AND PROFILE DOCUMENT CHECKS FOR DOCUMENT\n $this->view->can_view = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'view');\n $this->view->can_edit = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'edit');\n $this->view->can_delete = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'delete');\n\t\t$this->view->can_profile_doc = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'profile_doc');\n\n //CHECK VIEWER CAN CREATE DOCUMENT\n $this->view->can_create = $this->_helper->requireAuth()->setAuthParams('document', null, 'create')->checkRequire();\n\n //CHECK THAT RATING IS VIEABLE OR NOT\n $this->view->show_rate = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.rating', 1);\n\n //GET SEARCH FORM\n $this->view->form = $form = new Document_Form_Search();\n $form->removeElement('show');\n\n\t\t//GET FORM VALUES\n if( $form->isValid($this->_getAllParams()) ) {\n $values = $form->getValues();\n } else {\n $values = array();\n }\n $this->view->formValues = $values;\n\n $values['user_id'] = $viewer_id;\n $this->view->assign($values);\n\n\t\t$documentTable = Engine_Api::_()->getDbtable('documents', 'document');\n\n //GET DOCUMENTS FOR CONVERSION\n $doc_forUpdate = $documentTable->updateDocs($viewer_id);\n\n foreach ($doc_forUpdate as $value) {\n\n\t\t\tif (empty($value->doc_id)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n //SET SCRIBD MY_USER_ID\n $this->scribd->my_user_id = $value->owner_id;\n\n try {\n $stat = trim($this->scribd->getConversionStatus($value->doc_id));\n }\n\t\t\tcatch (Exception $e) {\n $message = $e->getMessage();\n }\n\n if ($stat == 'DONE') {\n try {\n //GETTING DOCUMENT'S FULL TEXT\n $texturl = $this->scribd->getDownloadUrl($value->doc_id, 'txt');\n //for some reason, the URL comes back with leading and trailing spaces\n $texturl = trim($texturl['download_link']);\n\n $file_contents = file_get_contents($texturl);\n if (empty($file_contents)) {\n $site_url = $texturl;\n $ch = curl_init();\n $timeout = 0; // set to zero for no timeout\n curl_setopt($ch, CURLOPT_URL, $site_url);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n\n ob_start();\n curl_exec($ch);\n curl_close($ch);\n $file_contents = ob_get_contents();\n ob_end_clean();\n }\n $full_text = $file_contents;\n\n $setting = $this->scribd->getSettings($value->doc_id);\n $thumbnail_url = trim($setting['thumbnail_url']);\n\n //UPDATING DOCUMENT STATUS, THUMBNAIL AND FULL TEXT\n $value->fulltext = $full_text;\n $value->thumbnail = $thumbnail_url;\n $value->status = 1;\n\n\t\t\t\t\t//ADD ACTIVITY ONLY IF DOCUMENT IS PUBLISHED\n\t\t\t\t\t$document_model = Engine_Api::_()->getItem('document', $value->document_id);\n\t\t\t\t\tif ($document_model->draft == 0 && $document_model->approved == 1 && $value->status == 1 && $document_model->activity_feed == 0) {\n\n\t\t\t\t\t\t//GET DOCUMENT OWNER OBJECT\n\t\t\t\t\t\t$creator = Engine_Api::_()->getItem('user', $document_model->owner_id);\n\n\t\t\t\t\t\t//GET ACTIVITY TABLE\n\t\t\t\t\t\t$activityTable = Engine_Api::_()->getDbtable('actions', 'activity');\n\n\t\t\t\t\t\t$action = $activityTable->addActivity($creator, $document_model, 'document_new');\n\n\t\t\t\t\t\t//MAKE SURE ACTION EXISTS BEFORE ATTACHING THE DOUCMENT TO THE ACTIVITY\n\t\t\t\t\t\tif ($action != null) {\n\t\t\t\t\t\t\t$activityTable->attachActivity($action, $document_model);\n\t\t\t\t\t\t\t$document_model->activity_feed = 1;\n\t\t\t\t\t\t\t$document_model->save();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$value->save();\n\n } catch (Exception $e) {\n if ($e->getCode() == 619) {\n $value->status = 3;\n $value->save();\n\n\t\t\t\t\t\t//SEND EMAIL TO DOCUMENT OWNER IF DOCUMENT HAS BEEN DELETED FROM SCRIBD\n\t\t\t\t\t\tEngine_Api::_()->document()->emailDocumentDelete($value);\n }\n }\n } elseif ($stat == 'ERROR') {\n $value->status = 2;\n $value->save();\t\t\t\t\n }\n\n\t\t\tif(Engine_Api::_()->getApi('settings', 'core')->getSetting('document.thumbs', 0) && empty($value->photo_id) && $value->status == 1 && !empty($value->thumbnail)) {\n\t\t\t\t$value->photo_id = $value->setPhoto();\n\t\t\t\t$value->save();\n\t\t\t}\n\n\t\t\t//DELETE DOCUMENT FROM SERVER IF ALLOWED BY ADMIN AND HAS STATUS ONE OR TWO\n\t\t\t$document_save_local_server = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.save.local.server', 1);\n\t\t\tif($document_save_local_server == 0 && ($value->status == 1 || $value->status == 2)) {\n\t\t\t\tEngine_Api::_()->document()->deleteServerDocument($value->document_id);\n\t\t\t}\n }\n\n\t\t//GET CUSTOM FIELD VALUES\n $customFieldValues = array_intersect_key($values, $form->getFieldElements());\n\n //GET PAGINATOR\n $this->view->paginator = $documentTable->getDocumentsPaginator($values, $customFieldValues);\n $items_per_page = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.page', 10);\n $this->view->paginator->setItemCountPerPage($items_per_page);\n $this->view->paginator->setCurrentPageNumber($this->_getParam('page', 1));\n \n //SITEMOBILE CODE, IN MOBILE MODE ITS A WIDGETIZE PAGE, SO RENDER TPL\n if (!Engine_API::_()->seaocore()->checkSitemobileMode('fullsite-mode')) {\n $this->_helper->content\n //->setNoRender()\n ->setEnabled()\n ;\n }\n }", "title": "" }, { "docid": "ffac728d7745f60901b34cfd912f3a13", "score": "0.533889", "text": "public static function getAllDocuments() {\n // TODO: to be implemented later\n }", "title": "" }, { "docid": "cae1fce342443fb448687851c4a0f758", "score": "0.5332643", "text": "public function setDocuments($documents);", "title": "" }, { "docid": "eaf2cba0be9df1f9392554c57971c865", "score": "0.53233", "text": "abstract static function conductDocument($arFields);", "title": "" }, { "docid": "469da21659b3a4499bd6c4a895e0a677", "score": "0.5304832", "text": "public function register_document_controls($document)\n {\n }", "title": "" }, { "docid": "ab8ba5683fdff8486ac0beb48aeabafa", "score": "0.53025806", "text": "public function canCreateDocuments() {\n\n\t\t//GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n\t\t//CHECK DOCUMENT CREATION PRIVACY\n if (!Engine_Api::_()->authorization()->isAllowed('document', $viewer, 'create')) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "07807dcd12f4710124b8cfb73bbc0309", "score": "0.52767324", "text": "public function createDoc(){\n $doc = new Docs();\n $user = Auth::user();\n $doc->doc_content = request(\"doc_content\");\n $doc->doc_owner_id = $user->id;\n $doc->doc_title = request(\"doc_title\");\n $doc->doc_accessibility = \"Private\";\n $doc->doc_access_code = Str::random(40);\n $docChecker = DB::table('docs')->where('doc_access_code', $doc->doc_access_code)->exists();\n while($docChecker === true){\n $doc->doc_access_code = Str::random(40);\n $docChecker = DB::table('docs')->where('doc_access_code', $doc->doc_access_code)->exists();\n }\n $doc->save();\n return redirect('/');\n }", "title": "" }, { "docid": "ea227e4ea9ee70eaa5160778560fca75", "score": "0.52529365", "text": "protected function setDocument() \n {\n jimport('joomla.environment.uri'); \n $document = JFactory::getDocument(); \n\t\t$document->setTitle(JText::_('Catálogo de clientes la poblana')); \n $document->addStyleSheet(JURI::root().'media/com_lapoblana/css/style.css'); \n $document->addScript(JURI::root().'media/com_lapoblana/js/jquery.js'); \n $document->addScript(JURI::root().'media/com_lapoblana/js/jquery.validate.js'); \n $document->addScript(JURI::root().'media/com_lapoblana/js/function.js'); \n }", "title": "" }, { "docid": "8d78b04fd5a8e5f2c661b519e31f1fbe", "score": "0.52519786", "text": "protected function setDocument()\n\t{\n\t\t// Get the document object.\n\t\t$document = & JFactory::getDocument();\n\n\t\t// Set the MIME type for JSON output.\n\t\t$document->setMimeEncoding('application/json');\n\n\t\t// Change the suggested filename.\n\t\tJResponse::setHeader('Content-Disposition', 'attachment; filename=\"' . $view->getName() . '.json\"');\n\t}", "title": "" }, { "docid": "595a5c6c58536bfb8844e20d5b508678", "score": "0.52425694", "text": "protected function setDocument() {\n\n $document = JFactory::getDocument();\n $document->setTitle(JText::_('COM_WIMTVPRO_ADMINISTRATION'));\n $document->addStyleSheet(JURI::base() . \"components/com_wimtvpro/assets/css/wimtvpro.css\");\n $document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/jquery-2.0.2.min.js\");\n $document->addScript(JURI::base() . \"components/com_wimtvpro/assets/js/wimtvpro.js\");\n JHTML::_('behavior.modal');\n }", "title": "" }, { "docid": "bb577521dfd7579baaa0faf78d6c158f", "score": "0.52277124", "text": "public function index()\n {\n if (null !== $this->document) {\n $this->document->id = uniqid(); //or something else suitably unique\n\n try {\n foreach ($this->getFieldsAssoc() as $key => $value) {\n $this->document->$key = $value;\n }\n return true;\n } catch (\\RuntimeException $e) {\n return false;\n }\n } else {\n throw new \\RuntimeException(\"No Solr document available for current NodeSource\", 1);\n }\n }", "title": "" }, { "docid": "565d9d4c5ae954c896f11d2183a3e882", "score": "0.52177954", "text": "function document($do = '', $document_id = '')\n {\n if ($this->session->userdata('parent_login') != 1)\n redirect('login', 'refresh');\n \n $page_data['page_name'] = 'manage_document';\n $page_data['page_title'] = get_phrase('manage_documents');\n $page_data['documents'] = $this->db->get('document')->result_array();\n $this->load->view('backend/index', $page_data);\n }", "title": "" }, { "docid": "4b246af78a89e62063d52a5a67d4798c", "score": "0.52109236", "text": "public function getDocument();", "title": "" }, { "docid": "4b246af78a89e62063d52a5a67d4798c", "score": "0.52109236", "text": "public function getDocument();", "title": "" }, { "docid": "b021cc317818bf6465f7382b5c015854", "score": "0.5205912", "text": "function IngresarDatosDocumentos(){\n \n \n \n \n \n \n}", "title": "" }, { "docid": "d30773b14512f92ecfeb7d33ba1f20b1", "score": "0.51915705", "text": "public function disable_doc(){\n\t\t\n\t\t$version_act = Modgdversiones::where('gdver_id','=',Input::get('geddoc_id'))->first();\n\t\t$documento = Modgddocumentos::find($version_act->gddoc_id);\n\t\t// obtengo la subcategoria para sacar la tura general\n\t\t$subcategoria = $documento->subcategorias;\n\n\t\t/*$ruta_final = str_replace(\"activos\", \"obsoletos\", $subcategoria->gdsub_directorio);\n\t\t\n\t\t// antes de mover los archivos verifico si la ruta existe, si no existe se crea\n\t\tif(file_exists($ruta_final)==false){ File::makeDirectory($ruta_final, 0755, true, true); }\n\n\t\tif (File::exists($version_act->gdver_ruta_archivo)){\n\t\t\t$archivo_final = str_replace(\"activos\", \"obsoletos\", $version_act->gdver_ruta_archivo);\n\t\t\t$archivo_final = str_replace(\".\", \"_v\".$version_act->gdver_version.\".\", $archivo_final);\n\t\t\tif(File::move($version_act->gdver_ruta_archivo, $archivo_final)){File::delete($version_act->gdver_ruta_archivo);}\n\t\t}\t\n\n\t\tif (File::exists($version_act->gdver_ruta_preview)){\n\t\t\t$preview_final = str_replace(\"activos\", \"obsoletos\", $version_act->gdver_ruta_preview);\n\t\t\t$preview_final = str_replace(\".\", \"_v\".$version_act->gdver_version.\".\", $preview_final);\n\t\t\tif(File::move($version_act->gdver_ruta_preview, $preview_final)){File::delete($version_act->gdver_ruta_preview);}\n\t\t}*/\n\n\t\t$version_act->gdver_estado = 'inactivo';\n\t\t//$documento->gddoc_estado = 'inactivo';\n\n\t\tif($version_act->save()){\n\t\t\treturn View::make('administrador.cosas.resultado_volver')->with('funcion', true)->with('mensaje', 'Documento Inabilitado con éxito!!');\n\t\t}else{\n\t\t\treturn View::make('administrador.cosas.resultado_volver')->with('funcion', false)->with('mensaje', 'Error Inabilitado el documento!!');\n\t\t}\n\n\t}", "title": "" }, { "docid": "066c22e8523748a1d9bb03d8d4192a03", "score": "0.5185514", "text": "public function index()\n {\n return $documentData=$this->documentService->index();\n if(count($documentData)>0){\n return DocumentsResource::collection($documentData);\n }else{\n return response()->json([ 'success' => ['message' => 'Aucun document' ]], Response::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "2e5605a83a38a851fee288c448a5250c", "score": "0.5181647", "text": "public function documentAction(){\n \t$request = $this->getRequest();\n \t$itemid = $request->getParam('id', null);\n \t$documentType = $request->getParam('type', null);\n \t\n \t\n \tif($documentType and $itemid){\n \t\t\n \t\t$docTypeList = Priam_Util::getSessData('doc_type_list');\n \t\t$fieldList =\tPriam_Util::getSessData('field_list');\t\n \t\t$plateList =\tPriam_Util::getSessData('plate_list');\n \t\t\n\t \tif(!$docTypeList or 'development' == APPLICATION_ENV){ \n\t \t\t$docTable = Priam_Constant::MODEL_PREFIX . 'Type';\n\t \t\t$query = Doctrine_Query::create()\n\t \t\t\t\t->from(\"$docTable t INDEXBY t.id\");\n\t \t\t\t\t\n\t \t\t$docTypeList = $query->execute(array(), Doctrine_Core::HYDRATE_ARRAY);\n\t \t\t\n\t \t\tPriam_Util::setSessData('doc_type_list', $docTypeList);\t\t\n\t \t}\n\t \t\t\t\t\n\n\t\t\tif(!$fieldList or 'development' == APPLICATION_ENV){ \n\t \t\t$fieldTable = Priam_Constant::MODEL_PREFIX . 'Field';\n\t \t\t$query = Doctrine_Query::create()\n\t \t\t\t\t->from(\"$fieldTable t INDEXBY t.id\");\n\t \t\t\t\t\n\t \t\t$fieldList = $query->execute(array(), Doctrine_Core::HYDRATE_ARRAY);\n\t \t\t\n\t \t\tPriam_Util::setSessData('field_list', $fieldList);\t\t\n\t \t} \n\n\t \tif(!$plateList or 'development' == APPLICATION_ENV){ \n\t \t\t$plateTable = Priam_Constant::MODEL_PREFIX . 'BoilerPlate';\n\t \t\t$query = Doctrine_Query::create()\n\t \t\t\t\t->from(\"$plateTable t INDEXBY t.id\");\n\t \t\t\t\t\n\t \t\t$plateList = $query->execute(array(), Doctrine_Core::HYDRATE_ARRAY);\n\t \t\t\n\t \t\tPriam_Util::setSessData('plate_list', $plateList);\t\t\n\t \t} \n\t \t\n\t \t$templateId \t\t\t= isset($docTypeList[$documentType]) ? $docTypeList[$documentType]['template_id'] : null; \n\t \t$layout \t\t\t= $currentLayout = Priam_Util::getLayout($templateId); \n\n \t\t$table \t\t\t\t= Priam_Constant::MODEL_PREFIX . 'Document'; \n \t\t$row \t\t\t\t\t= Doctrine_Core::getTable($table)->find($itemid, Doctrine_Core::HYDRATE_ARRAY);\n \t\t$this->view->section \t= $this->buildDocument($layout , $row, $fieldList, $plateList); \n \n \t\t$output \t\t\t= $this->view->render('search/document.tpl');\n\t \t\n \t\n\t }else{\n\t \t$output = 'Document not found';\n\t }\n \t\n\t Priam_Util::setAjaxData($output);\n }", "title": "" }, { "docid": "c7e09f15301145f79f55e7df14035f53", "score": "0.51776445", "text": "public function hasDocument(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "c7e09f15301145f79f55e7df14035f53", "score": "0.51776445", "text": "public function hasDocument(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "c7e09f15301145f79f55e7df14035f53", "score": "0.51776445", "text": "public function hasDocument(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "c7e09f15301145f79f55e7df14035f53", "score": "0.51776445", "text": "public function hasDocument(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "c7e09f15301145f79f55e7df14035f53", "score": "0.51776445", "text": "public function hasDocument(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "942ba5bdf6a8a849d92054b419c11cd7", "score": "0.5175962", "text": "public function actionDocuments() {\n\n $userId = Yii::app()->admin->id;\n $model = PackageSubscriptionDocuments::getUserDocuments($userId);\n\n $this->render('documents', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "d63a2a67fafaa298c426aeb62dbbfdff", "score": "0.5171125", "text": "public function searchableAs()\n {\n return '_doc';\n }", "title": "" }, { "docid": "37f0b0c0c72179b30915646c15e3f178", "score": "0.5149997", "text": "function startDocument()\r\n\t{\r\n\t\t; // default implementation does nothing\r\n\t}", "title": "" }, { "docid": "4457e3004bbd566b7f2f51a0d41ab035", "score": "0.5146406", "text": "public function administrativedocumentsAction()\n {\n $this->_initProduct();\n $this->loadLayout();\n $this->getLayout()->getBlock('product.edit.tab.administrativedocument')\n ->setProductAdministrativedocuments($this->getRequest()->getPost('product_administrativedocuments', null));\n $this->renderLayout();\n }", "title": "" }, { "docid": "65987841ab221cf1dde4f68f5ef4fc81", "score": "0.5143887", "text": "public function setDocument($document)\n {\n $this->document = $document;\n }", "title": "" }, { "docid": "ab78d8c5d7e2e0a053078b824b565017", "score": "0.5135751", "text": "public function scope(Nodes\\DocumentNode $document): void\n {\n $this->scope = $document;\n $this->unresolvedDependencies = [];\n $this->originalDependencyNames = [];\n $this->invalidLinks = [];\n }", "title": "" }, { "docid": "2d4370fe359f8a1061216974996754f1", "score": "0.51308566", "text": "function create() {\n $this->dCreated = getCurrentDateTime();\n $res = parent::create();\n\n if ($res === true) {\n Permission::updateSearchPermissionsForDocument($this->getID());\n }\n return $res;\n\n }", "title": "" }, { "docid": "7443a31e3b15e06aaf3e6b9c518f500a", "score": "0.5127197", "text": "function document($do = '', $document_id = '')\n {\n if ($this->session->userdata('student_login') != 1)\n redirect('login', 'refresh');\n\n $page_data['page_name'] = 'manage_document';\n $page_data['active_link'] = 'manage_document';\n $page_data['page_title'] = get_phrase('manage_documents');\n $page_data['documents'] = $this->db->get('document')->result_array();\n $this->load->view('backend/index', $page_data);\n }", "title": "" }, { "docid": "01e6173629cd6cc907236c5e9f514301", "score": "0.5125913", "text": "public function indexAll()\n {\n if (Article::typeExists()) {\n Article::deleteIndex();\n }\n Article::createIndex($shards = null, $replicas = null);\n Article::addAllToIndex();\n }", "title": "" }, { "docid": "6d68dd8b516de0ee26a864013ab05364", "score": "0.51188946", "text": "public function onMenuInitialize_DocumentGutterPublish() {\n\n\t\t//RETURN FALSE IF SUBJECT IS NOT SET\n if (!Engine_Api::_()->core()->hasSubject()) {\n return false;\n }\n\n\t\t//GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$viewer_id = $viewer->getIdentity();\n\n\t\t//GET SUBJECT\n $document = Engine_Api::_()->core()->getSubject();\n if ($document->getType() !== 'document' || empty($document->draft) || empty($viewer_id)) {\n return false;\n }\n\n //USER IS ALLOWED FOR PUBLISH OR NOT\n $can_edit = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'document', 'edit');\n\t\tif(empty($can_edit) || ($can_edit == 1 && $viewer_id != $document->owner_id)) {\n\t\t\treturn false;\n\t\t}\n\n return array(\n 'class' => 'buttonlink smoothbox icon_document_publish',\n 'route' => 'document_publish',\n 'params' => array(\n 'document_id' => $document->getIdentity(),\n ),\n );\n }", "title": "" }, { "docid": "282d13d5d52e2869326f84b7c7784618", "score": "0.51152635", "text": "public static function readAll()\n {\n if (isset($_SESSION['login'])) {\n $tab = ModelDocument::selectAll();\n if ($tab == false) {\n ControllerMain::erreur(\"Il n'y a pas de documents\");\n } else {\n $view = 'list';\n $pagetitle = 'Liste des documents';\n require_once File::build_path(array('view', 'view.php'));\n }\n } else {\n ControllerUser::connect();\n }\n }", "title": "" }, { "docid": "ee61c4c7d9c52a437374dcdd31f7f180", "score": "0.5111929", "text": "public function process(Document $document);", "title": "" }, { "docid": "675278b21c2988706808ce0a141bd1e7", "score": "0.5105425", "text": "private function openDocument()\n {\n $fullPathFile = ($this->component->tempDir ? $this->component->tempDir : $this->component->pathSitemapFiles)\n . '/'\n . $this->component->baseNameFile\n . (self::$docPrefixName >= 1 ? self::$docPrefixName : null)\n . '.xml';\n\n if (!is_file($fullPathFile)) {\n $fs = fopen($fullPathFile, 'w+');\n fclose($fs);\n\n @chmod($fullPathFile, 0777);\n } else {\n self::$docPrefixName++;\n $this->openDocument();\n }\n\n $this->xml->openURI($fullPathFile);\n $this->xml->startDocument('1.0', 'UTF-8');\n $this->xml->setIndent(true);\n $this->xml->startElement('urlset');\n $this->xml->writeAttribute('xmlns', $this->component->xmlns);\n }", "title": "" }, { "docid": "3535a9ad4a6d7fbfaf2d2782651842bb", "score": "0.5075891", "text": "public function authorize()\n {\n return hasPermission('api.document.store');\n }", "title": "" }, { "docid": "d61dceb0b20113030154bb99255a019f", "score": "0.50733256", "text": "public function SetDocument ($document)\n\t{\n\t\t$this->_document = $document;\n\t}", "title": "" }, { "docid": "78f772584905539fe759ee66fd2f574e", "score": "0.5064402", "text": "public static function bootIsSwiftypeDocument()\n {\n static::saved(function ($model) {\n $model->maybeIndexWithSwiftype();\n });\n static::deleted(function ($model) {\n dispatch(new DeleteDocument($model->getKey()));\n });\n }", "title": "" }, { "docid": "eb05020c50954e81cc4cfa1525680882", "score": "0.5045215", "text": "public function install() {\n \t$query = \"CREATE TABLE IF NOT EXISTS `doc_container` (\" .\n \t\t\t\" `id` int(11) NOT NULL AUTO_INCREMENT,\" .\n\t\t \t\t\" `name` varchar(120) NOT NULL,\" .\n\t\t \t\t\" `description` varchar(120) DEFAULT NULL,\" .\n\t\t \t\t\" `type` varchar(10) NOT NULL DEFAULT 'file',\" .\n\t\t \t\t\" `link` varchar(360) DEFAULT NULL,\" .\n\t\t \t\t\" `parent_id` int(11) NOT NULL,\" .\n\t\t \t\t\" `parent_category` varchar(11) NOT NULL DEFAULT 'folder',\" .\n\t\t \t\t\" PRIMARY KEY (`id`)\" .\n\t\t \t\t\") ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;\";\n\t\t$this->db->query($query);\n\t\t//check if documents exists in table module\n\t\t$query = \"SELECT * FROM \".TB_MODULE.\" WHERE name = 'docs' LIMIT 1\";\n\t\t$this->db->query($query);\n\t\tif($this->db->num_rows() == 0) {\n\t\t\t//if its not insert it \n\t\t\t$query = \"INSERT INTO `\".TB_MODULE.\"` (name) VALUES ('docs')\";\n\t\t\t$this->db->query($query);\n\t\t}\n }", "title": "" }, { "docid": "572065a34bba4582614015f8cbf7d4c7", "score": "0.5041852", "text": "public function registerControl($document)\n {\n }", "title": "" }, { "docid": "9d35c624b71b74f8e552877ca9b6301e", "score": "0.50396365", "text": "public function initRikssymDocumentEntitys()\n\t{\n\t\t$this->collRikssymDocumentEntitys = array();\n\t}", "title": "" }, { "docid": "227d8e6a5f8e45c423bee3977adf58d8", "score": "0.5038807", "text": "public function setDocument(Document $document) {\n\t\t$this->document = $document;\n\t}", "title": "" }, { "docid": "0347fa23f3f24f7a01741d96136bb095", "score": "0.50347173", "text": "public function index()\n {\n //\n return view('officer.internship_document')->with('document',Document::all());\n }", "title": "" }, { "docid": "8e91ba8db2ab41a3cf013ffe76cbcc49", "score": "0.5032387", "text": "public function add(Document $document);", "title": "" }, { "docid": "b11974da8c5bd89b78a1b055048fd5e4", "score": "0.50198686", "text": "public function createDocument(Document $document, object $result, bool $embedded = false): void\n {\n $class = $this->getClassMetadata($result);\n\n $typeManager = $this->manager->getTypeManager();\n $documentData = $document->getData();\n\n assert(is_array($documentData));\n\n // inject ObjectManager upon refresh.\n if ($result instanceof ObjectManagerAware) {\n $result->injectObjectManager($this->manager, $class);\n }\n\n foreach ($class->attributesMetadata as $fieldMetadata) {\n if ($fieldMetadata instanceof FieldMetadata) {\n if ($fieldMetadata->identifier) {\n $fieldMetadata->setValue($result, $document->getId());\n continue;\n }\n\n if ($fieldMetadata->indexName) {\n $fieldMetadata->setValue($result, $document->getIndex());\n continue;\n }\n\n if ($fieldMetadata->typeName && method_exists($document, 'getType')) {\n $fieldMetadata->setValue($result, $document->getType());\n continue;\n }\n\n if ($fieldMetadata->seqNo) {\n $fieldMetadata->setValue($result, $document->getParam('_seq_no'));\n continue;\n }\n\n if ($fieldMetadata->primaryTerm) {\n $fieldMetadata->setValue($result, $document->getParam('_primary_term'));\n continue;\n }\n\n if ($fieldMetadata->version) {\n $fieldMetadata->setValue($result, $document->getParam('_version'));\n continue;\n }\n }\n\n if (! $fieldMetadata instanceof FieldMetadata && ! $fieldMetadata instanceof EmbeddedMetadata) {\n continue;\n }\n\n if (! $fieldMetadata->multiple || ! in_array($fieldMetadata->name, $class->eagerFieldNames, true)) {\n continue;\n }\n\n $fieldMetadata->setValue($result, new ArrayCollection());\n }\n\n foreach ($documentData as $key => &$value) {\n $field = $class->getField($key);\n\n if ($field instanceof EmbeddedMetadata) {\n if ($field->multiple) {\n $value = (new ArrayCollection((array) $value))\n ->map(function ($item) use ($field, $document) {\n $embeddedObject = $field->newInstance();\n $embeddedDocument = clone $document;\n $embeddedDocument->setId('');\n $embeddedDocument->setData($item);\n $this->createDocument($embeddedDocument, $embeddedObject, true);\n\n return $embeddedObject;\n });\n } else {\n $embeddedObject = $field->newInstance();\n $embeddedDocument = clone $document;\n $embeddedDocument->setId('');\n $embeddedDocument->setData($value);\n $this->createDocument($embeddedDocument, $embeddedObject, true);\n\n $value = $embeddedObject;\n }\n } elseif ($field instanceof FieldMetadata) {\n $fieldType = $typeManager->getType($field->type);\n if ($field->multiple) {\n $value = (new ArrayCollection((array) $value))\n ->map(static fn ($item) => $fieldType->toPHP($item, $field->options));\n } else {\n $value = $fieldType->toPHP($value, $field->options);\n }\n } elseif ($key === $class->joinField && $class->joinParentClass !== null) {\n $value = $this->manager->getReference($class->joinParentClass, $value['parent']);\n $field = $class->getParentDocumentField();\n } else {\n continue;\n }\n\n assert($field !== null);\n $field->setValue($result, $value);\n }\n\n unset($value);\n if ($embedded) {\n return;\n }\n\n foreach ($class->getFieldNames() as $fieldName) {\n if (array_key_exists($fieldName, $documentData)) {\n continue;\n }\n\n $documentData[$fieldName] = null;\n }\n\n foreach ($class->embeddedFieldNames as $embeddedFieldName) {\n if (array_key_exists($embeddedFieldName, $documentData)) {\n $data = $documentData[$embeddedFieldName];\n if (is_array($data)) {\n $data = array_map(static fn ($v) => clone $v, $data);\n } else {\n $data = clone $data;\n }\n\n $documentData[$embeddedFieldName] = $data;\n } else {\n $documentData[$embeddedFieldName] = null;\n }\n }\n\n $this->originalDocumentData[spl_object_id($result)] = $documentData;\n $this->addToIdentityMap($result);\n }", "title": "" }, { "docid": "0d9c7aa3d4cf4805f2c8f3bfc0010dce", "score": "0.5017555", "text": "public function index($bulk = false) {\n if (!empty( $this->documentToIndex )) {\n if ($this->elasticClient == null) {\n $this->initialize();\n }\n $elasticaIndex = $this->elasticaClient->getIndex($this->documentIndex);\n $elasticaType = $elasticaIndex->getType($this->documentType);\n if ($bulk) {\n $i = 0;\n foreach ($this->documentToIndex as $doc) {\n $documents[] = new Elastica_Document($this->documentPrefix . $doc['id'], $doc);\n $i++;\n //bulk index is better than unit index.\n if ($i % ModelBase::$_CHUNK_SIZE == 0) {\n $elasticaType->addDocuments($documents);\n $documents = array();\n }\n }\n if (!empty($documents)) {\n $elasticaType->addDocuments($documents);\n }\n } else {\n $document = new Elastica_Document($this->documentPrefix . $this->documentToIndex['id'], $this->documentToIndex);\n $elasticaType->addDocument($document);\n }\n $elasticaType->getIndex()->refresh();\n }\n }", "title": "" }, { "docid": "21330d78bd702ec200f5ccae39894dbb", "score": "0.5011232", "text": "public function onBeginDocument()\n\t{\n\t\t$this->triples = array();\n\t}", "title": "" }, { "docid": "311e447ed337370e6333aea6f20e0324", "score": "0.5008653", "text": "public function setTargetDocument($targetDocument);", "title": "" }, { "docid": "1cf8d085595fefd206cbf25e374e2321", "score": "0.5004809", "text": "protected function setDocument() \n\t{\n\t\t$document = JFactory::getDocument();\n\t\t$document->addStyleDeclaration('.icon-48-bizview {background-image: url(../media/com_bizview/images/logo-48x48.png);}');\n\t}", "title": "" }, { "docid": "8253c9c0812c0cead560e2467245b156", "score": "0.49972218", "text": "public function index() : object\n {\n return $this->documentService->getAllDocuments();\n }", "title": "" }, { "docid": "b87f68448d325da0c2602806ff2acc61", "score": "0.49967298", "text": "private function Document_Action()\n\t{\n\t\tif(!isset($this->doc_action))\n\t\t{\n\t\t\t$this->doc_action = Document_Action::Singleton($this->sql, $this->db['database']);\n\t\t}\n\t}", "title": "" }, { "docid": "c3e489ed38e2a1cffb3c2b250e7b8a4f", "score": "0.4966659", "text": "public function publishAction() {\n\n //CHECK USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n //LAYOUT\n if (null === $this->_helper->ajaxContext->getCurrentContext()) {\n $this->_helper->layout->setLayout('default-simple');\n } else {\n $this->_helper->layout->disableLayout(true);\n }\n\n\t\t//GET DOCUMENT ID AND OBJECT\n $document_id = $this->view->document_id = $this->getRequest()->getParam('document_id');\n\t\t$document = Engine_Api::_()->getItem('document', $document_id);\n\n if (!$this->getRequest()->isPost())\n return;\n\n\t\t//GET VIEWER DETAIL\n\t\t$viewer = Engine_Api::_()->user()->getViewer();\n\n\t\t//WHO CAN EDIT THE DOCUMENT\n $can_edit = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'document', 'edit');\n\n if (!empty($can_edit)) { \n\n\t\t\t$document->modified_date = new Zend_Db_Expr('NOW()');\n\t\t\t$document->draft = 0;\n\t\t\t$document->save();\n\n\t\t\t$this->view->success = true;\n\n\t\t\t//ADD ACTIVITY ONLY IF DOCUMENT IS PUBLISHED\n\t\t\tif ($document->draft == 0 && $document->approved == 1 && $document->status == 1 && $document->activity_feed == 0) {\n\n\t\t\t\t//GET DOCUMENT OWNER OBJECT\n\t\t\t\t$creator = Engine_Api::_()->getItem('user', $document->owner_id);\n\n\t\t\t\t//GET ACTIVITY TABLE\n\t\t\t\t$activityTable = Engine_Api::_()->getDbtable('actions', 'activity');\n\n\t\t\t\t$action = $activityTable->addActivity($creator, $document, 'document_new');\n\n\t\t\t\t//MAKE SURE ACTION EXISTS BEFORE ATTACHING THE DOUCMENT TO THE ACTIVITY\n\t\t\t\tif ($action != null) {\n\t\t\t\t\t$activityTable->attachActivity($action, $document);\n\t\t\t\t\t$document->activity_feed = 1;\n\t\t\t\t\t$document->save();\n\t\t\t\t}\n\t\t\t}\n }\n\n $this->_forward('success', 'utility', 'core', array(\n 'smoothboxClose' => 10,\n 'parentRefresh' => 10,\n 'messages' => array('')\n ));\n }", "title": "" }, { "docid": "1544b66f856eb176f0445be4801564dc", "score": "0.49580932", "text": "public function __construct(Document $document)\n {\n parent::__construct($document);\n }", "title": "" }, { "docid": "7ae3bf0e31f4424e9cd47aebde4f0a4f", "score": "0.49576908", "text": "public function testInitializeCollectionWithDocumentType()\n {\n $collection = new \\triagens\\ArangoDb\\Collection();\n $collection->setType(Collection::TYPE_DOCUMENT);\n\n $this->assertEquals(Collection::TYPE_DOCUMENT, $collection->getType());\n }", "title": "" }, { "docid": "571a220fa6ef7ff35276d3ff6decb913", "score": "0.49553454", "text": "public function proprietor_pending_documents() {\n $this->load->view($this->vendors_url . \"header\");\n $this->load->view($this->vendors_url . \"proprietor_pending_documents\", [\"documents\" => $this->documents_model->get_pending_proprietor_documents()]);\n $this->load->view($this->vendors_url . \"footer\");\n }", "title": "" }, { "docid": "e1bd33580559f174bb3a9854bc2ed306", "score": "0.49550998", "text": "public function createAction() {\n\n //CHECK USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n //CHECK IF USER CAN CREATE DOCUMENTS\n if (!$this->_helper->requireAuth()->setAuthParams('document', null, 'create')->isValid())\n return;\n\n //GET VIEWER DETAIL\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n $level_id = $viewer->level_id;\n\n\t\t$document_identity = Zend_Registry::get('document_identity');\n\t\t$document_host = str_replace('www.','',strtolower($_SERVER['HTTP_HOST']));\n\n //GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation('document_main', array(), 'document_main_create');\n\n\t\t//GET DOCUMENT TABLE\n\t\t$documentTable = Engine_Api::_()->getDbtable('documents', 'document');\n\n //NUMBER OF DOCUMENTS SHOULD NOT EXCEED FROM ALLOWED LIMIT FOR THIS USER LEVEL\n $this->view->entries = $entries = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'entries');\n $total_entries = $documentTable->totalUserDocuments($viewer_id);\n if ($entries != 0 && $total_entries >= $entries) {\n\t\t\t$this->view->error_doc_limit = 1;\n\t\t\treturn;\n }\n\n\t\t//GET DEFAULT PROFILE ID\n\t\t$this->view->defaultProfileId = $defaultProfileId = Engine_Api::_()->getDbTable('metas', 'document')->defaultProfileId();\n\n //SHOW DOCUMENT CREATE FORM\n $this->view->form = $form = new Document_Form_Create(array('defaultProfileId' => $defaultProfileId));\n\n\t\tif(empty($document_identity)){ return; }\n //CHECK THAT CREATOR ALREADY HAVE DOCUMENTS AT SCRIBD SITE\n try {\n $result = $this->scribd->getList();\n } catch (Exception $e) {\n $code = $e->getCode();\n if ($code == 401) {\n $message = $e->getMessage();\n\n $error = $message . $this->view->translate(': API key is not correct');\n $error = Zend_Registry::get('Zend_Translate')->_($error);\n\n $form->getDecorator('errors')->setOption('escape', false);\n $form->addError($error);\n return;\n }\n }\n\t\t$this->view->create_api = Zend_Registry::get('document_create_api');\n\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n\n\t\t\t$license_key = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.controllersettings');\n\t\t\t$keyLength = strlen($license_key);\n\t\t\t$upgrade_time = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.upgrade.time');\n\t\t\t$current_time = time();\n\t\t\t$myvars = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.myvars');\n \n\t\t\t//BEGIN TRANSCATION\n $db = $documentTable->getAdapter();\n $db->beginTransaction();\n\n //GET FROM VALUES\n $values = $form->getValues();\n\n //CATEGORY IS REQUIRED FIELD\n if (empty($values['category_id'])) {\n $error = $this->view->translate('Please complete Category field - it is required.');\n $error = Zend_Registry::get('Zend_Translate')->_($error);\n\n $form->getDecorator('errors')->setOption('escape', false);\n $form->addError($error);\n return;\n }\n\n //SET SCRIBD MY_USER_ID\n $this->scribd->my_user_id = $viewer_id;\n\n //DOCUMENT CREATION CODE\n try {\n $values = array_merge($form->getValues(), array(\n 'owner_type' => $viewer->getType(),\n 'owner_id' => $viewer_id,\n ));\n $this->view->is_error = 0;\n $this->view->excep_error = 0;\n\n\t\t\t\t//FILE SIZE SHOULD NOT EXCEED FROM ALLOWED LIMIT FOR THIS LEVEL\n $filesize = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'filesize');\n $filesize = $filesize * 1024;\n if ($filesize < 0) {\n $filesize = (int) ini_get('upload_max_filesize') * 1024 * 1024;\n }\n if ($_FILES['filename']['size'] > $filesize) {\n $error = $this->view->translate('File size can not be exceed from ') . ($filesize / 1024) . $this->view->translate(' KB for this user level');\n $error = Zend_Registry::get('Zend_Translate')->_($error);\n\n $form->getDecorator('errors')->setOption('escape', false);\n $form->addError($error);\n return;\n }\n\n //FILE EXTENSION SHOULD NOT DIFFER FROM ALLOWED TYPE\n $ext = str_replace(\".\", \"\", strrchr($_FILES['filename']['name'], \".\"));\n if (!in_array($ext, array('pdf', 'txt', 'ps', 'rtf', 'epub', 'odt', 'odp', 'ods', 'odg', 'odf', 'sxw', 'sxc', 'sxi', 'sxd', 'doc', 'ppt', 'pps', 'xls', 'docx', 'pptx', 'ppsx', 'xlsx', 'tif', 'tiff'))) {\n $error = $this->view->translate(\"Invalid file extension. Allowed extensions are :'pdf', 'txt', 'ps', 'rtf', 'epub', 'odt', 'odp', 'ods', 'odg', 'odf', 'sxw', 'sxc', 'sxi', 'sxd', 'doc', 'ppt', 'pps', 'xls', 'docx', 'pptx', 'ppsx', 'xlsx', 'tif', 'tiff'\");\n $error = Zend_Registry::get('Zend_Translate')->_($error);\n\n $form->getDecorator('errors')->setOption('escape', false);\n $form->addError($error);\n return;\n }\n\n //CHECKS FOR SCRIBD LICENSE AND LICENSE OPTION\n $licensing_option = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.licensing.option', 1);\n $licensing_scribd = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.licensing.scribd', 'ns');\n\t\t\t\t$document_myinfo = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.myviewinfo', 0);\n\t\t\t\tif( !empty($document_host) && empty($document_myinfo) ) {\n\t\t\t\t\t$document_tag_attempt = convert_uuencode($document_host);\n\t\t\t\t\tEngine_Api::_()->getApi('settings', 'core')->setSetting('document.tags.attempt', $document_tag_attempt);\n\t\t\t\t}\n\n if (empty($licensing_option)) {\n $license_document = $licensing_scribd;\n\t\t\t\t\t$values['document_license'] = $licensing_scribd;\n } else {\n $license_document = $values['document_license'];\n }\n\n if ($license_document == 'ns') {\n $scribd_license = null;\n } else {\n $scribd_license = $license_document;\n }\n\n if (empty($values['subcategory_id'])) {\n $values['subcategory_id'] = 0;\n }\n if (empty($values['subsubcategory_id'])) {\n $values['subsubcategory_id'] = 0;\n }\n \n if (Engine_Api::_()->document()->documentBaseNetworkEnable()) {\n if (isset($values['networks_privacy']) && !empty($values['networks_privacy'])) {\n if (in_array(0, $values['networks_privacy'])) {\n unset($values['networks_privacy']);\n }\n }\n } \n \n //CREATE THE MAIN DOCUMENT\n $documentRow = $documentTable->createRow();\n $documentRow->setFromArray($values);\n $documentRow->owner_id = $viewer_id;\n\n\t\t\t\t//MAKE PROFILE DOCUMENT WORK\n\t\t\t\t$profile_doc = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'profile_doc');\n\t\t\t\t$profile_doc_show = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'profile_doc_show');\n\t\t\t\tif($profile_doc == 1 && $profile_doc_show == 1 && !empty($documentRow->profile_doc)){\n\t\t\t\t\t//REMOVE OTHER DOCUMENT AS A PROFILE DOCUMENT\n\t\t\t\t\t$documentTable->removeProfileDoc($documentRow->owner_id);\n\t\t\t\t}\n\n $documentRow->save();\n\n //SECURE IPAPER CHECK\n $secure_allow = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'secure_allow');\n $secure_show = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'secure_show');\n if (empty($secure_allow)) {\n $documentRow->secure_allow = 0;\n } elseif (empty($secure_show)) {\n $documentRow->secure_allow = 1;\n } else {\n $documentRow->secure_allow = $values['secure_allow'];\n }\n\n\t\t\t\t//DOWNLOAD ALLOW CHECK\n\t\t\t\t$download_allow = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'download_allow');\n $download_show = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'download_show');\n if (empty($download_allow)) {\n $documentRow->download_allow = 0;\n } elseif (empty($download_show)) {\n $documentRow->download_allow = 1;\n } else {\n $documentRow->download_allow = $values['download_allow'];\n }\n\n //CHECKS FOR DEFAULT VISIBILITY\n $document_default_visibility = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.default.visibility', 'private');\n\t\t\t\t$document_visibility_option = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.visibility.option', 1);\n if ($document_default_visibility == 'private') {\n $access = 'private';\n } elseif($document_visibility_option == 1) {\n $access = $values['default_visibility'];\n } else {\n\t\t\t\t\t$access = 'public';\n\t\t\t\t}\n $documentRow->document_private = $access;\n\n\t\t\t\tif($documentRow->document_private == 'public') {\n\t\t\t\t\t$documentRow->secure_allow = 0;\n\t\t\t\t}\n\n\t\t\t\tif($documentRow->document_private == 'public') {\n\t\t\t\t\t$documentRow->download_allow = 1;\n\t\t\t\t}\n\n //IF FILENAME IS NOT EMPTY THAN BEGIN THE SCRIBD WORK\n if (!empty($values['filename'])) {\n\t\t\t\t\tif( ($current_time - $upgrade_time > $this->TIME_LIMIT) && empty($myvars) ) {\n\t\t\t\t\t\tif( $keyLength != 20 ) {\n\t\t\t\t\t\t\tEngine_Api::_()->getApi('settings', 'core')->setSetting('document.tags.attempt', 1);\n\t\t\t\t\t\t\tEngine_Api::_()->getApi('settings', 'core')->setSetting('document.myviewinfo', 1);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tEngine_Api::_()->getApi('settings', 'core')->setSetting('document.myvars', 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n $local_info = $documentRow->setFile($form->filename);\n\t\t\t\t\t$secure_allow = $documentRow->secure_allow;\n\t\t\t\t\t$download = \"view-only\";\n\t\t\t\t\t$rev_id = NULL;\n $data = $this->scribdUpload($local_info, $rev_id, $access, $secure_allow, $download, $documentRow->filename_id);\n }\n\n $doc_title = $values['document_title'];\n $description = $values['document_description'];\n try {\n $changesetting = $this->scribd->changeSettings($data['doc_id'], $doc_title, $description, $access, $scribd_license, $documentRow->download_allow);\n $setting = $this->scribd->getSettings($data['doc_id']);\n } catch (Exception $e) {\n $this->view->excep_message = $message = $e->getMessage();\n $this->view->excep_error = 1;\n }\n\n //CHECKS FOR DOCUMENT APPROVEL AT CREATION TIME\n $document_approved = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'approved');\n if ($document_approved == 1) {\n $documentRow->approved = 1;\n } else {\n $documentRow->approved = 0;\n }\n\n //CHECKS FOR DOCUMENT FEATURED AT CREATION TIME\n $document_featured = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'featured');\n if ($document_featured == 1) {\n $documentRow->featured = 1;\n } else {\n $documentRow->featured = 0;\n }\n\n //CHECKS FOR DOCUMENT SPONSORED AT CREATION TIME\n $document_sponsored = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'sponsored');\n if ($document_sponsored == 1) {\n $documentRow->sponsored = 1;\n } else {\n $documentRow->sponsored = 0;\n }\n\n //EMAIL ALLOW CHECK\n $email_allow = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'email_allow');\n $email_show = Engine_Api::_()->authorization()->getPermission($level_id, 'document', 'email_show');\n if (empty($email_allow)) {\n $documentRow->email_allow = 0;\n } elseif (empty($email_show)) {\n $documentRow->email_allow = 1;\n } else {\n $documentRow->email_allow = $values['email_allow'];\n }\n\n\t\t\t\tif($documentRow->document_private == 'public') {\n\t\t\t\t\t$documentRow->email_allow = 1;\n\t\t\t\t}\n\n\t\t\t\tif (isset($values['category_id']) && !empty($values['category_id'])) {\n\t\t\t\t\t$documentRow->profile_type = Engine_Api::_()->getDbTable('profilemaps', 'document')->getProfileType($values['category_id']);\n\t\t\t\t}\n\n $documentRow->doc_id = $data['doc_id'];\n $documentRow->access_key = $data['access_key'];\n $documentRow->secret_password = $data['secret_password'];\n $documentRow->filemime = $_FILES['filename']['type'];\n $documentRow->filesize = $_FILES['filename']['size'];\n $documentRow->save();\n\n //DOCUMENT VIEW PRIVACY WORK\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n if ($values['auth_view'])\n $auth_view = $values['auth_view'];\n else\n $auth_view = \"everyone\";\n $viewMax = array_search($auth_view, $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($documentRow, $role, 'view', ($i <= $viewMax));\n }\n\n //DOCUMENT COMMENT PRIVACY WORK\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n if ($values['auth_comment'])\n $auth_comment = $values['auth_comment'];\n else\n $auth_comment = \"registered\";\n $commentMax = array_search($auth_comment, $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($documentRow, $role, 'comment', ($i <= $commentMax));\n }\n\n //ADDING TAGS\n if (!empty($values['tags'])) {\n $tags = preg_split('/[,]+/', $values['tags']);\n\t\t\t\t\t$tags = array_filter(array_map(\"trim\", $tags));\n $documentRow->tags()->addTagMaps($viewer, $tags);\n }\n\n\t\t\t\t//CUSTOM FIELD WORK\n $customfieldform = $form->getSubForm('fields');\n $customfieldform->setItem($documentRow);\n $customfieldform->saveValues();\n\n //START PAGE INTEGRATION WORK\n $page_id = $this->_getParam('page_id');\n if (!empty($page_id)) {\n\t\t\t\t\t$viewer_id = Engine_Api::_()->user()->getViewer()->getIdentity();\n\t\t\t\t\t$moduleEnabled = Engine_Api::_()->getDbtable( 'modules' , 'core' )->isModuleEnabled( 'sitepageintegration' ) ;\n\t\t\t\t\tif (!empty($moduleEnabled)) {\n\t\t\t\t\t\t$contentsTable = Engine_Api::_()->getDbtable('contents', 'sitepageintegration');\n\t\t\t\t\t\t$row = $contentsTable->createRow();\n\t\t\t\t\t\t$row->owner_id = $viewer_id;\n\t\t\t\t\t\t$row->resource_owner_id = $documentRow->owner_id;\n\t\t\t\t\t\t$row->page_id = $page_id;\n\t\t\t\t\t\t$row->resource_type = 'document';\n\t\t\t\t\t\t$row->resource_id = $documentRow->document_id;;\n\t\t\t\t\t\t$row->save();\n\t\t\t\t\t}\n }\n //END PAGE INTEGRATION WORK\n \n\t\t\t\t//COMMIT\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n\n\t\t\t//RETRUN TO MANAGE DOCUMENT\n\t\t\t$routeStartP = Engine_Api::_()->getApi('settings', 'core')->getSetting('document.manifestUrlP', \"documents\");\n return $this->_redirect(\"$routeStartP\".\"/manage\");\n }\n }", "title": "" }, { "docid": "aa7e30157c14e76f2dc43013b14bcd3d", "score": "0.49538836", "text": "public function run()\n {\n //\n $documents = array(\n \t'Identificación',\n \t'IFE',\n \t'Escrituras',\n \t'Recibo de luz',\n \t'Recibo de Agua',\n \t'Recibo de Mantenimiento',\n \t'Acta de Nacimiento',\n \t'Avaluo',\n \t'Objeto Social',\n \t'Monto de Capital',\n \t'Regimen de sociedad',\n \t'Certificado De Libertad Degradable',\n \t'Predial',\n \t'Terminos de Contrato',\n \t'Expediente de Jusgado',\n \t'Poder Anterior',\n 'Testamento',\n \t'Acta de Matrimonio',\n \t'Documentos Originales',\n \t'Copia de Documentos',\n \t'Acta de Asamble',\n \t'Antecedentes',\n \t'Subdivicion',\n \t'Alineamiento',\n \t'Antecendentes de Credito',\n \t'Certificado de Cadanen',\n \t'Certificado Libertad de Gravamen',\n \t'Orden de Cancelacion',\n \t'Carta de No Adeudo',\n \t'Expediente del Jusgado',\n \t);\n\n \tforeach ($documents as $document => $name){\n\n \t$document = new Document;\n\n \t\t$document->document_name = $name;\n\n \t$document->save();\n\n \t}\n\n\n }", "title": "" }, { "docid": "51dda28dd1e86974723c453c4a48dc41", "score": "0.49502712", "text": "public function doc()\n\t{\n $data['title'] = 'Documentation';\n $data['content'] = 'pages/doc';\n $data['versions'] = $this->pages_model->get_all_version_info();\n // Regular fields/keys (table values)\n $data['reg_fields'] = array(\n 'id' => 'Internal; used to organize data.',\n 'hgvs_protein_change' => 'HGVS Protein Change',\n 'hgvs_nucleotide_change' => 'HGVS Nucleotide Change',\n 'variantlocale' => 'Exonic or Intronic position of variant',\n 'variation' => 'HGVS Genomic Position',\n 'pathogenicity' => 'Pathogenicity',\n 'disease' => 'Disease',\n 'pubmed_id' => 'Pubmed ID',\n 'dbsnp' => 'dbSNP ID',\n 'gene' => 'Gene',\n 'phylop_score' => 'PhyloP Score',\n 'phylop_pred' => 'PhyloP Prediction',\n 'sift_score' => 'SIFT Score',\n 'sift_pred' => 'SIFT Prediction',\n 'polyphen2_score' => 'PolyPhen2 Score',\n 'polyphen2_pred' => 'PolyPhen2 Prediction',\n 'lrt_score' => 'LRT Score',\n 'lrt_pred' => 'LRT Prediction',\n 'mutationtaster_score' => 'MutationTaster Score',\n 'mutationtaster_pred' => 'MutationTaster Prediction',\n 'gerp_rs' => 'GERP++ Rejected Substitutions Score',\n 'gerp_nr' => 'GERP++ Neutral Rate',\n 'gerp_pred' => 'GERP++ Prediction',\n );\n $data['reg_keys'] = array_keys($data['reg_fields']);\n // Population fields/keys (table values)\n $data['pop_fields'] = array(\n 'evs_ea_*' => 'European American Alternate Allele Count',\n 'evs_aa_*' => 'African American Total Allele Count',\n 'tg_acb_*' => 'African Caribbean in Barbados',\n 'tg_asw_*' => 'African Ancestry in Southwest US',\n 'tg_cdx_*' => 'Chinese Dai in Xishuangbanna',\n 'tg_ceu_*' => 'Utah residents, Northern and Western European ancestry',\n 'tg_chb_*' => 'Han Chinese in Beijing, China',\n 'tg_chs_*' => 'Han Chinese South',\n 'tg_clm_*' => 'Colombian in Medellin, Colombia ',\n 'tg_fin_*' => 'Finnish from Finland',\n 'tg_gbr_*' => 'British from England and Scotland',\n 'tg_gih_*' => 'Gujarati Indian in Houston, TX',\n 'tg_ibs_*' => 'Iberian populations in Spain',\n 'tg_jpt_*' => 'Japanese in Toyko, Japan',\n 'tg_khv_*' => 'Kinh in Ho Chi Minh City, Vietnam',\n 'tg_lwk_*' => 'Luhya in Webuye, Kenya',\n 'tg_mxl_*' => 'Mexican Ancestry in Los Angeles, CA',\n 'tg_pel_*' => 'Peruvian in Lima, Peru',\n 'tg_pur_*' => 'Puerto Rican in Puerto Rico',\n 'tg_tsi_*' => 'Toscani in Italia',\n 'tg_yri_*' => 'Yoruba in Ibadan, Nigeria ',\n 'otoscope_*' => 'OtoSCOPE&#174;',\n );\n $data['pop_keys'] = array_keys($data['pop_fields']);\n $this->load->view($this->public_layout, $data);\n\t}", "title": "" }, { "docid": "27762cde5b9317ca1c70adfab2b4aa76", "score": "0.4948061", "text": "public function renderDocument()\n {\n\n }", "title": "" }, { "docid": "dbf731db61da17c19671c1496b4d3cc5", "score": "0.494631", "text": "public function sharedocAction()\n {\n if (!$this->session->get('userid') || $this->session->get(\"comptabilite\") == \"0\") {\n return $this->response->redirect(\"session/logout\");\n }\n $iduser = $this->session->get('userid');\n\n $docId = base64_decode($this->request->get('id'));\n if (!(int) $docId) {\n return $this->response->redirect(\"comptabilite/newfolder\");\n }\n $docs = dossier::findFirst($docId);\n $opendocs = dossier::find([\"parent=:p:\", \"bind\" => ['p' => $docId]]);\n $openfile = fichier::find([\"iddos=:d:\", \"bind\" => ['d' => $docId]]);\n $users = user::find([\"actif=:act: and iduser <>:us:\", \"bind\" => ['act' => 1, 'us' => $iduser]]);\n\n\n $this->view->docs = ($docs) ? $docs : [];\n $this->view->users = ($users) ? $users : [];\n $this->view->opendocs = ($opendocs) ? $opendocs : [];\n $this->view->openfile = ($openfile) ? $openfile : [];\n $this->view->page = \"comptabilite\";\n }", "title": "" }, { "docid": "e1961405618841891dbd9dac617c35b9", "score": "0.49449378", "text": "protected function getAddIndexesForProminentWordsOnIndexablesService()\n {\n }", "title": "" }, { "docid": "736620aef6d6937b8abc2fc07c67ae61", "score": "0.4939931", "text": "public function private_pending_documents() {\n $this->load->view($this->vendors_url . \"header\");\n $this->load->view($this->vendors_url . \"private_pending_documents\", [\"documents\" => $this->documents_model->get_pending_private_documents()]);\n $this->load->view($this->vendors_url . \"footer\");\n }", "title": "" }, { "docid": "9a4fe42120ae305f63b66c436ce82efd", "score": "0.4928392", "text": "public function makeAvailable()\n {\n }", "title": "" }, { "docid": "82edc735107f18323744a6d537d304cf", "score": "0.49281806", "text": "public function createDocuments(DocumentListDataProvider $listDataProvider): void;", "title": "" }, { "docid": "fefb28e2576108da726e6a0e91130e09", "score": "0.49265906", "text": "public function getDocumentAll()\n {\n $view = GeneralUtility::makeInstance('Netcreators\\\\NcgovPermits\\\\View\\\\PermitView');\n $view->initialize($this, 'document');\n $this->permitsModel->loadRecordById(\n $this->getPiVar('id')\n );\n $content = $view->getDocumentAll();\n return $content;\n }", "title": "" }, { "docid": "572a9ae7360f5b0dbe90e401f94eb2ae", "score": "0.49186495", "text": "public function eligibleDocs(): array {\n $used_docs = [];\n foreach ($this->docs as $doc_usage) {\n $used_docs[] = $doc_usage->doc;\n }\n $storage = \\Drupal::entityTypeManager()->getStorage('ebms_doc');\n $query = $storage->getQuery()->accessCheck(FALSE);\n $query->condition($query->andConditionGroup()->condition('tags.entity.field_text_id', 'summary'));\n $query->condition($query->andConditionGroup()->condition('tags.entity.field_text_id', 'support'));\n $query->condition('boards', $this->board->target_id);\n $query->condition('dropped', 0);\n $query->sort('description');\n $eligible_docs = [];\n $ids = $query->execute();\n foreach ($storage->loadMultiple($ids) as $doc) {\n if (!in_array($doc->id(), $used_docs)) {\n $label = $doc->description->value;\n if (empty($label)) {\n $label = $doc->file->entity->filename->value;\n }\n $eligible_docs[$doc->id()] = $label;\n }\n }\n return $eligible_docs;\n }", "title": "" }, { "docid": "3fdfb4356e3f2ba64a4454415dd008af", "score": "0.49172038", "text": "public function viewDocument()\n {\n return view('document_management.document_management');\n }", "title": "" }, { "docid": "0739974be5eeca640d786c40f8c5fdb4", "score": "0.4909456", "text": "public function actionSetupDocs()\n {\n $this->composer(\n 'require --dev \"cebe/markdown-latex:dev-master\" \"yiisoft/yii2-apidoc:2.*\"'\n );\n }", "title": "" }, { "docid": "a7177ccf02f53c1ee87be04ecd1e65eb", "score": "0.4903822", "text": "function create_docs(){\n // check if command exists\n $command = \"whereis phpdoc\";\n $ret = common::execCommand($command);\n if ($ret){\n common::echoMessage(\"Could not find command phpdoc on your system\");\n common::echoMessage(\"If the command phpdoc is not on your system we will not be able to create documentation.\");\n common::echoMessage(\"One way to do this is to: pear install PhpDocumentor\");\n exit(127);\n }\n\n $command = \"phpdoc run \";\n $command.= \"-d coslib \";\n $command.= \"--template abstract -t \" . conf::pathBase() . \"/htdocs/phpdocs \";\n common::systemCommand($command);\n}", "title": "" }, { "docid": "ba9cc2f03e0fb645834e5a0ddac76a21", "score": "0.4900987", "text": "public static function ImportDocuments()\n {\n $query = new Query();\n\n $query->select('*')->from('PersonDocument')->orderBy('userId')->where(['statusId' => self::DOCUMENT_STATUS_ACTIVE]);\n $originDocuments = $query->createCommand(Yii::$app->db2)->queryAll();\n\n\n\n\n foreach ($originDocuments as $originDocument) {\n //print_r($originPerson);\n if ($originDocument['statusId'] != self::DOCUMENT_STATUS_ACTIVE)\n continue;\n\n if (!array_key_exists( $originDocument['docTypeId'], Document::getTypesForCombo()))\n continue;\n $prisoner = Prisoner::findOne(['origin_id' => $originDocument['userId']]);\n if (is_null($prisoner))\n continue;\n $document = new Document();\n $document->person_id = $prisoner->primaryKey;\n $document->type_id = $originDocument['docTypeId'];\n if (is_null($originDocument['seria']))\n continue;\n $document->seria = $originDocument['seria'];\n $document->country = Country::findOne(['iso'=>'md']);\n\n\n if ($objDateIssue = \\DateTime::createFromFormat('Y-m-d H:i:s' ,$originDocument['dateIssue']))\n $document->date_issue = $objDateIssue->getTimestamp();\n\n if ($objDateExpiration = \\DateTime::createFromFormat('Y-m-d H:i:s' ,$originDocument['dateExpiration']))\n $document->date_expiration = $objDateExpiration->getTimestamp();\n\n\n// $personDocument->date_expiration = $originDocument['dateExpiration'];\n //\\DateTime::\n $document->status_id = Document::STATUS_ACTIVE;//$originDocument['statusId'];\n\n try{\n\n\n $document->save();\n\n }\n //catch (IntegrityException $exception)\n catch (\\Exception $exception)\n {\n print_r($exception);\n }\n\n if ($document->firstErrors)\n print_r($document->getFirstErrors());\n\n\n }\n }", "title": "" }, { "docid": "d4ef94ae52698f9fbc4666341e171f76", "score": "0.489811", "text": "function _import_docs()\n {\n global $conf;\n $mediapath = $this->_strip_doubleslashes($conf['savedir'] . '/media/');\n $pagespath = $this->_strip_doubleslashes($conf['savedir'] . '/pages/');\n # determine upload dir from conf\n $file_upload = $this->_strip_doubleslashes($conf['savedir'] . '/media/' . $this->getConf('sourcetree') . '/');\n $subpath = str_replace(\":\", \"/\", $this->getConf('destination_namespace'));\n $media_dest = $this->_strip_doubleslashes($mediapath . \"/\" . $subpath . \"/\");\n $pagesdir = $this->_strip_doubleslashes($pagespath . \"/\" . $subpath . \"/\");\n\n # delete old media and pages dir\n if (is_dir($media_dest)) {\n $this->_deltree($media_dest);\n }\n if (is_dir($pagesdir)) {\n $this->_deltree($pagesdir);\n }\n\n # create fresh namespacedirs for media an pages\n io_createNamespace($this->getConf('destination_namespace') . \":xx\");\n io_createNamespace($this->getConf('destination_namespace') . \":xx\", 'media');\n\n // copy files recursively\n $this->_copytree($file_upload, $media_dest);\n // create startpages\n $this->create_startpages($media_dest);\n\n # determine if we are running under openschulportfolio\n if (file_exists(DOKU_INC . \"/lib/tpl/portfolio2/ospversion.php\")) {\n $pfstartfile_in = realpath(dirname(__FILE__)) . \"/start.txt\";\n $pfstartfile_out = $pagespath . \"portfolio/start.txt\";\n copy($pfstartfile_in, $pfstartfile_out);\n }\n $this->_save_status(\"IMPORTED\");\n }", "title": "" }, { "docid": "cd484e094fcbff5f8ccf318517fe3f69", "score": "0.48855284", "text": "public function supplyDefenseDocument($params)\n {\n return $this->supplyDefenseDocument->request($params);\n }", "title": "" }, { "docid": "cf71d0b4412046e9ae548eeb0f6c2497", "score": "0.48834336", "text": "function saveDocument($doc)\n{\n file_put_contents($GLOBALS['options']['basepath'].pathinfo($doc, PATHINFO_FILENAME).'.html', renderDocumentPage($doc));\n}", "title": "" }, { "docid": "0975fb3c74ee56301edf40a574b5c895", "score": "0.4876992", "text": "public function onAfterWrite() {\n $lucene = Lucene::singleton();\n $lucene->index($this->owner);\n parent::onAfterWrite();\n }", "title": "" }, { "docid": "77f3c8cc4e2d2bbb89d46018bd0f2740", "score": "0.48764598", "text": "protected function syncDocument(Model\\DocumentInterface $document, Result $result): void\n {\n if (!$this->synchronize) {\n return;\n }\n\n $gross = $result->getGross();\n $final = $result->getFinal();\n\n // Document goods base (after discounts)\n if ($this->compareAmount($document->getGoodsBase(), $final->getGross())) {\n $document->setGoodsBase($gross->getBase());\n $this->changed = true;\n }\n\n // Document discount base.\n if ($this->compareAmount($document->getDiscountBase(), $final->getDiscount())) {\n $document->setDiscountBase($final->getDiscount());\n $this->changed = true;\n }\n\n // Document shipment base.\n if ($this->compareAmount($document->getShipmentBase(), $result->getShipment())) {\n $document->setShipmentBase($result->getShipment());\n $this->changed = true;\n }\n\n // Document taxes total\n if ($this->compareAmount($document->getTaxesTotal(), $final->getTax())) {\n $document->setTaxesTotal($final->getTax());\n $this->changed = true;\n }\n\n // Taxes details\n $taxesDetails = [];\n foreach ($final->getTaxAdjustments() as $tax) {\n $taxesDetails[] = [\n 'name' => $tax->getName(),\n 'rate' => $tax->getRate(),\n 'amount' => $tax->getAmount(),\n ];\n }\n if ($document->getTaxesDetails() !== $taxesDetails) {\n $document->setTaxesDetails($taxesDetails);\n $this->changed = true;\n }\n\n // Document grand total\n if ($this->compareAmount($document->getGrandTotal(), $final->getTotal())) {\n $document->setGrandTotal($final->getTotal());\n $this->changed = true;\n }\n }", "title": "" }, { "docid": "7e9dffa3750efd07644bfc2d3f4bfc50", "score": "0.48753747", "text": "public function index()\n {\n if(auth()->user()->hasPermissionTo('Add Document') OR \n (Gate::allows('Administrator', auth()->user()))){\n $document = PropertyDocuments::orderBy('document_name', 'asc')->get();\n return view(\"administrator.documents.create\")->with([\n 'document' => $document,\n ]);\n } else{\n return redirect()->back()->with([\n 'error' => \"You Dont have Access To View The Property Documents\",\n ]);\n }\n }", "title": "" } ]
4c24f5fb0d6bd70edb904994e188eb86
If it's not a relation we treat it as an attribute. There is currently no method to determine the attributes of a model without querying the database.
[ { "docid": "d11a5fccccefb8b8b52e1831fd906a9a", "score": "0.5635623", "text": "protected function modelHasAttribute(Model $model, string $attribute): bool\n {\n return !$this->modelHasRelation($model, $attribute);\n }", "title": "" } ]
[ { "docid": "b14f3efd5a1ea1b646382a515da379ba", "score": "0.6868517", "text": "protected abstract function getModelAttributes();", "title": "" }, { "docid": "418915ad47e2c55e1365add49d528d02", "score": "0.6378789", "text": "public function attributes() { return $this->hasMany('App\\Attribute'); }", "title": "" }, { "docid": "2e79a6f13f09212dcae1b7709c33a62f", "score": "0.62632257", "text": "protected function attributes() {\n\t\t$attributes = array();\n\t\tforeach($this->db_fields[0] as $field) {\n\t\t\tif(property_exists($this, $field))\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t}\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "0dbd7b768211fc27b3585f0c8148927f", "score": "0.62616336", "text": "protected function attributes() {\r\t $attributes = array();\r\t foreach(self::$db_fields as $field) {\r\t if(property_exists($this, $field)) {\r\t $attributes[$field] = $this->$field;\r\t }\r\t }\r\t return $attributes;\r\t}", "title": "" }, { "docid": "507ff97e435dc65e57b1b1578acc2536", "score": "0.62603855", "text": "public function attribute()\n {\n return $this->belongsTo('App\\Attribute', 'attribute_id', 'id');\n }", "title": "" }, { "docid": "492986fec466f153b9a71103d117cdec", "score": "0.6215336", "text": "public function modelAttributes() {\n \n return self::$_attributes;\n }", "title": "" }, { "docid": "492986fec466f153b9a71103d117cdec", "score": "0.6215336", "text": "public function modelAttributes() {\n \n return self::$_attributes;\n }", "title": "" }, { "docid": "492986fec466f153b9a71103d117cdec", "score": "0.6215336", "text": "public function modelAttributes() {\n \n return self::$_attributes;\n }", "title": "" }, { "docid": "492986fec466f153b9a71103d117cdec", "score": "0.6215336", "text": "public function modelAttributes() {\n \n return self::$_attributes;\n }", "title": "" }, { "docid": "9669f01785919822eb0fe737cf95da70", "score": "0.6209734", "text": "abstract public function getAttributes();", "title": "" }, { "docid": "9669f01785919822eb0fe737cf95da70", "score": "0.6209734", "text": "abstract public function getAttributes();", "title": "" }, { "docid": "9f911bfcd9b64b3532ca42d1e2ecde2c", "score": "0.62071604", "text": "abstract function getPrimaryAttribute();", "title": "" }, { "docid": "6a47cba4ab0bb70bbafc381124e14c2c", "score": "0.62035686", "text": "public function attribute()\n {\n return $this->belongsTo(Attribute::class);\n }", "title": "" }, { "docid": "6a47cba4ab0bb70bbafc381124e14c2c", "score": "0.62035686", "text": "public function attribute()\n {\n return $this->belongsTo(Attribute::class);\n }", "title": "" }, { "docid": "f45be638dc4d0648408857c933f97f8a", "score": "0.6168833", "text": "public function __get($key)\n\t{\n\t\t// -----------------------------------------------------\n\t\t// Check the ignored attributes first.\n\t\t// -----------------------------------------------------\n\t\tif (array_key_exists($key, $this->ignore))\n\t\t{\n\t\t\treturn $this->ignore[$key];\n\t\t}\n\n\t\t// -----------------------------------------------------\n\t\t// Is the attribute actually a relationship?\n\t\t// -----------------------------------------------------\n\t\tif (method_exists($this, $key))\n\t\t{\n\t\t\t// -----------------------------------------------------\n\t\t\t// Get the query / model for the relationship.\n\t\t\t// -----------------------------------------------------\n\t\t\t$model = $this->$key();\n\n\t\t\t// -----------------------------------------------------\n\t\t\t// Return the relationship results.\n\t\t\t// -----------------------------------------------------\n\t\t\treturn ($this->relating == 'has_one' or $this->relating == 'belongs_to')\n\t\t\t\t\t\t\t\t\t\t\t\t\t? $this->ignore[$key] = $model->first()\n\t\t\t\t\t\t\t\t\t\t\t\t\t: $this->ignore[$key] = $model->get();\n\t\t}\n\n\t\t// -----------------------------------------------------\n\t\t// Check the \"regular\" attributes.\n\t\t// -----------------------------------------------------\n\t\treturn (array_key_exists($key, $this->attributes)) ? $this->attributes[$key] : null;\n\t}", "title": "" }, { "docid": "054c7867070928b1f5551013253c75c3", "score": "0.6167846", "text": "public abstract function getAttributes();", "title": "" }, { "docid": "7024a8ad9a06aaddcd0246c56895aa3b", "score": "0.6149453", "text": "public function attributeType()\n {\n return $this->belongsTo(AttributeType::class);\n }", "title": "" }, { "docid": "a168b28a4fcc6f43e7d4b73e6eec84ad", "score": "0.614221", "text": "private function isModelAttribute($key)\n\t{\n\t\treturn array_key_exists($key, $this->getModelAttributes());\n\t}", "title": "" }, { "docid": "d2ecadb4eac1ecc50cede5c88c486b4d", "score": "0.6135759", "text": "public function attributes(){\n\t//return get_object_vars($this);\n\n\t//Second method\n\t$attributes = array();\n\t// return an array of attribute names and their values\n\t// which r in the obect and also have DB fields.\n\tforeach (self::$db_fields as $field) {\n\t\tif (property_exists($this, $field)) {\n\t// will assign the value of this object field attribute to the\n\t// $attributes array\n\t\t$attributes[$field] = $this->$field;\n\t\t}\n\t}\n\treturn $attributes;\t// Be careful while returning here....\n}", "title": "" }, { "docid": "846dbf06c9055322115d24138717f48a", "score": "0.61331576", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach($this->dbfields() as $field) {\n\t if(property_exists($this, $field)) {\n\t\t\t$attributes[$field] = $this->$field;\n\t\t}\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "6ad0dceb8bdbc931f82af292fd6fb9a3", "score": "0.61109865", "text": "protected function attributes() {\n\t\t$attributes = array();\n\t\t\n\t\tforeach(static::$tblFields as $field ) {\n\t\t\tif(property_exists($this, $field)) {\n\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "547a4dfea81055396d157fa2e8c2d60a", "score": "0.6095307", "text": "public function get_attributes() { return $this->attributes;}", "title": "" }, { "docid": "91131e6c06268b3ef9c6b986ebd05a55", "score": "0.60832274", "text": "public function attributes() {\r\n\r\n $attributes = array();\r\n foreach(self::$db_fields as $field) {\r\n if(property_exists($this, $field)) {\r\n $attributes[$field] = $this->$field;\r\n }\r\n }\r\n return $attributes;\r\n // return get_object_vars($this);\r\n }", "title": "" }, { "docid": "1c5d9c96bef9d71d57d6f3c4471a1b17", "score": "0.6054517", "text": "public function attribute()\n {\n return $this->hasOne('App\\Attribute', 'id', 'attribute_id');\n }", "title": "" }, { "docid": "4bb590ffda1c4fc66b9a752bf5168421", "score": "0.60519075", "text": "protected function attributes() {\r\n\t $attributes = array();\r\n\t foreach(self::$db_fields as $field) {\r\n\t if(property_exists($this, $field)) {\r\n\t $attributes[$field] = $this->$field;\r\n\t }\r\n\t }\r\n\t return $attributes;\r\n\t}", "title": "" }, { "docid": "4bb590ffda1c4fc66b9a752bf5168421", "score": "0.60519075", "text": "protected function attributes() {\r\n\t $attributes = array();\r\n\t foreach(self::$db_fields as $field) {\r\n\t if(property_exists($this, $field)) {\r\n\t $attributes[$field] = $this->$field;\r\n\t }\r\n\t }\r\n\t return $attributes;\r\n\t}", "title": "" }, { "docid": "802248d0d423583da0e4971e4c71420c", "score": "0.60506904", "text": "public function getAttribute();", "title": "" }, { "docid": "df8eb19445de820736250ba8333c94d0", "score": "0.6038699", "text": "public function getAttributeAble($key)\n {\n if (!$key) {\n return null;\n }\n // If the attribute exists in the attribute array or has a \"get\" mutator we will\n // get the attribute's value. Otherwise, we will proceed as if the developers\n // are asking for a relationship's value. This covers both types of values.\n if (array_key_exists($key, $this->attributesToArray())) {\n return $this->getAttributeValue($key);\n }\n return null;\n // Here we will determine if the model base class itself contains this given key\n // since we don't want to treat any of those methods as relationships because\n // they are all intended as helper methods and none of these are relations.\n if (method_exists(self::class, $key)) {\n return null;\n }\n return $this->getRelationValueAble($key);\n }", "title": "" }, { "docid": "b4646af9e74dcfed653b12275b725276", "score": "0.60285103", "text": "public function attributes(){\n\t\t\t$attributes=array();\n\t\t\tforeach ( self::$db_fields as $field) {\n\t\t\t\tif (property_exists($this, $field)) {\n\t\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $attributes;\n\t\t}", "title": "" }, { "docid": "4b4d9796f1d508c17894a43d508777b8", "score": "0.6027973", "text": "protected function attributes() {\n\t\t$attributes = array();\n\t\tforeach(static::$db_fields as $field) {\n\t\t\tif(property_exists($this, $field)) {\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "dfa6de7d28ea6317181bcf800d86bb1d", "score": "0.60116667", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach(static::$db_fields as $field) {\n\t if(property_exists($this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "d63d1d0016bdd3bb4a10e8cb754d222b", "score": "0.6009105", "text": "public function getAttributes() {}", "title": "" }, { "docid": "fbda4e74026efed2f6de72bd7b5ed805", "score": "0.5995413", "text": "protected function attributes()\n\t{\n\t\t$attributes = [];\n\n\t\tforeach (static::$tableFields as $field) {\n\t\t\tif (property_exists($this, $field)) {\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "8056c439cf0d18ee82c35598e459736f", "score": "0.59944284", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach(self::$db_fields as $field) {\n\t if(property_exists($this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "8056c439cf0d18ee82c35598e459736f", "score": "0.59944284", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach(self::$db_fields as $field) {\n\t if(property_exists($this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "8056c439cf0d18ee82c35598e459736f", "score": "0.59944284", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach(self::$db_fields as $field) {\n\t if(property_exists($this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "9ba00e1104d72875f690db670627217e", "score": "0.5965522", "text": "public function getHasAttributes()\n {\n return $this->hasAttributes;\n }", "title": "" }, { "docid": "a55fbebdcdd2d767a38061c2074804a3", "score": "0.59622127", "text": "protected function attributes() {\n\t\t$attributes = array();\n\t\tforeach(self::$dbFields as $field) {\n\t\t\tif (property_exists($this, $field)) {\n\t\t\t\t// note below: $this->$field dynamically naming the attribute by $field variable value\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\treturn $attributes;\n\t}", "title": "" }, { "docid": "0ec437fdb217ff178a421c00a4395a62", "score": "0.5961523", "text": "public function getAttribute($key) {\n\t\t// Ottengo l'istanza dell'attributo dal metodo erediato dalla classe Model\n\t\t$value = parent::getAttribute ( $key );\n\t\ttry {\n\t\t\t\n\t\t\t// Controllo che l'array encryptable esista, che contenga l'attributo passato al metodo e che non sia un null object\n\t\t\tif (isset ( $this->encryptable ) && in_array ( $key, $this->encryptable ) && (! is_null ( $value ))) {\n\t\t\t\t\n\t\t\t\t// Effettuo la crittografia e la serializzazione per poter crittografare anche oggetti non string type\n\t\t\t\t$value = unserialize ( \\Crypt::decrypt ( $value ) );\n\t\t\t}\n\t\t} catch ( \\Exception $e ) {\n\t\t\treturn $value;\n\t\t}\n\t\t\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "0087882597360e185133ffe5e51d0f7c", "score": "0.5952817", "text": "abstract protected function getAttribute($attribute);", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.59448874", "text": "public function getAttributes();", "title": "" }, { "docid": "8a1705643584529cb3e7d8b9400b43db", "score": "0.5942071", "text": "protected function attributes() {\n\t $attributes = array();\n\t foreach($this->getFieldNames() as $field) {\n\t if(property_exists($this, $field)) { \n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "title": "" }, { "docid": "3e2029b8c57588c051efce6a91ee673e", "score": "0.59375685", "text": "public function attrs();", "title": "" }, { "docid": "e9ad827539d3a3b364ada4178fb19cb0", "score": "0.5925956", "text": "public function attribut_value()\n {\n return $this->belongsTo(Attribute_value::class);\n }", "title": "" }, { "docid": "bcf3df82c3dfbcb768b6c809e8ae6185", "score": "0.59187067", "text": "public function getAttribute()\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "fc9e924902f23a2165d31b7fd0ba53c7", "score": "0.5903389", "text": "public function attributes()\n {\n return $this->attributes;\n\n // getAttributes\n // withAttribute\n // withoutAttribute\n }", "title": "" }, { "docid": "5cc97723f97e0e955750b9f061bf0bc1", "score": "0.5896696", "text": "protected function _getAttributes()\n {\n die(\"fetching attributes not yet implemented!\\n\");\n }", "title": "" }, { "docid": "b65e6548fe5f607b164338ad6dbdae64", "score": "0.58750504", "text": "public function getAttributes(){ }", "title": "" }, { "docid": "ab804b0e195bf2a9b607345c570c778e", "score": "0.58655614", "text": "public function attributes()\n {\n return $this->hasManyThrough(Attribute::class, EntityAttribute::class, 'attribute_group_id', 'attribute_id');\n }", "title": "" }, { "docid": "f501212f19ca46a752326bdfbd2ee861", "score": "0.585289", "text": "public function getApplicableAttributes();", "title": "" }, { "docid": "0c2f892dc6651df86f60634994a25e08", "score": "0.5841293", "text": "public function isProductAttribute()\n {\n return $this->_productAttribute;\n }", "title": "" }, { "docid": "e424d9cbb8f6efa96083921cbba63989", "score": "0.58260363", "text": "private function attributes()\n {\n $attributes = array();\n foreach (static::$db_fields as $field) {\n if (property_exists($this, $field)) {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "title": "" }, { "docid": "6a7a4c04ef262f9466f7fb92a3979e2b", "score": "0.5810084", "text": "public function getAttributi() {\r\n return $this->attr;\r\n }", "title": "" }, { "docid": "beaafc1738658df8e504ee7581e7c3d8", "score": "0.5806668", "text": "public function getAttributes()\n {\n }", "title": "" }, { "docid": "431b0cdb3c6702d94ecd2148e26be843", "score": "0.5800469", "text": "public static function getAttributes() {\n\t\tstatic $triedToRetrieve = false;\n\t\tif (static::$attributes == null) {\n\t\t\t// The attributes are not specified, try to get it from the DB\n\t\t\tif ($triedToRetrieve == false) {\n\t\t\t\tif (static::retrieveAttributes()) {\n\t\t\t\t\treturn static::$attributes;\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// We already tried it\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn static::$attributes;\n\t\t}\n\t}", "title": "" }, { "docid": "4eb89f87e46bf376ef56e52172516694", "score": "0.5792521", "text": "public function attributes()\n {\n return parent::attributes();\n }", "title": "" }, { "docid": "4eb89f87e46bf376ef56e52172516694", "score": "0.5792521", "text": "public function attributes()\n {\n return parent::attributes();\n }", "title": "" }, { "docid": "5a6e7745f425619fe596f1e9f9b82af2", "score": "0.57920575", "text": "protected function attributes()\n {\n $attributes = array();\n foreach (self::$db_fields as $field) {\n if (property_exists($this, $field)) {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "title": "" }, { "docid": "4c2a644a126352371755eac64f33ff3a", "score": "0.57860124", "text": "protected function _getIndexableAttributes()\n {\n $adapter = $this->_getReadAdapter();\n $select = $adapter->select()\n ->from(array('ca' => $this->getTable('catalog/eav_attribute')), 'attribute_id')\n ->join(\n array('ea' => $this->getTable('eav/attribute')),\n 'ca.attribute_id = ea.attribute_id',\n array())\n ->where('ea.attribute_code != ?', 'price')\n ->where($this->_getIndexableAttributesCondition())\n ->where('ea.backend_type=?', 'decimal');\n\n return $adapter->fetchCol($select);\n }", "title": "" }, { "docid": "cfce9e07f5f44bcdafced2c8d2910197", "score": "0.5785528", "text": "public function getAttribute() {\n\n\t\treturn $this->attribute;\n\t}", "title": "" }, { "docid": "497818c09dbc5e4e7b50ddc71eac8102", "score": "0.57758445", "text": "public function isAttributeValueContext()\n {\n return ($this->getValueOrigin() == BL_CustomGrid_Model_Grid_Editor_Abstract::EDITABLE_TYPE_ATTRIBUTE);\n }", "title": "" }, { "docid": "531c8c7aa28a072d5fd07b5f59cd30a4", "score": "0.57689756", "text": "public function getIsCoolAttribute()\n {\n //is cool if the author of the post is me\n return $this->attributes['author'] == 1;\n }", "title": "" }, { "docid": "62293d29995e4c22e5facdd20110b83c", "score": "0.57478344", "text": "public function getAttr()\n {\n return $this->get(self::ATTR);\n }", "title": "" }, { "docid": "b0d964632ce8ef4c4b90852f7c86df99", "score": "0.57473695", "text": "public function getResourceAttributes()\n {\n $attributes = $this->attributesToArray();\n\n // detect any translated attributes\n if (in_array(config('jsonapi.encoding.translatable_trait'), class_uses($this))) {\n\n foreach ($this->translatedAttributes as $key) {\n\n $attributes[ $key ] = $this->$key;\n }\n }\n\n // unset primary key field\n unset($attributes[ $this->getKeyName() ]);\n\n // unset reserved fieldname \"type\"\n // reset it as modelname-type if that is not in use yet\n if (array_key_exists('type', $attributes)) {\n $typeRecast = Str::snake(class_basename($this) . '-type', '-');\n\n if ( ! array_key_exists($typeRecast, $attributes)) {\n $attributes[ $typeRecast ] = $attributes['type'];\n }\n\n unset($attributes['type']);\n }\n\n\n // map all fieldnames to dasherized case\n foreach ($attributes as $key => $value) {\n\n $dasherized = str_replace('_', '-', $key);\n\n if ($key !== $dasherized) {\n $attributes[ $dasherized ] = $value;\n unset($attributes[ $key ]);\n }\n }\n\n return $attributes;\n }", "title": "" }, { "docid": "48bd02bb93edc402c83c76033f39ba47", "score": "0.5743505", "text": "function getAttributes()\n {\n }", "title": "" }, { "docid": "524d1cc2b07fd9f9b1f8b4dc4e8b3053", "score": "0.5743082", "text": "public function attribute_value()\n {\n return $this->belongsTo(AttributeValue::class);\n }", "title": "" }, { "docid": "2ce7e0fa76b26adada1060871508a67c", "score": "0.5720986", "text": "public function attribute()\n {\n return $this->belongsToMany(Attribute::class);\n }", "title": "" }, { "docid": "3a64ce03c14dd066907959cd5eb0819c", "score": "0.5700321", "text": "private function attributes(){\n $attr = array();\n\n foreach(static::$db_fields as $field){\n $attr[$field] = $this->$field;\n }\n \n return $attr;\n }", "title": "" }, { "docid": "c3d91dafd561be276c12dda0f3aed9d3", "score": "0.56955904", "text": "public function get_attribute($aWhere = array())\n\t{\n\t\tif ($this->attribute === null) {\n\n\t\t\t$oOrm = new Orm;\n\n\t\t\t$oOrm->select(array('*'))\n\t\t\t\t ->from('attribute');\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t $aWhere['id'] = $this->get_id_attribute();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n $aResult = $oOrm->where($aWhere)\n\t\t\t\t\t\t ->load(false, '\\Venus\\src\\Helium\\Entity');\n\n if (count($aResult) > 0) { $this->attribute = $aResult[0]; }\n else { $this->attribute = array(); }\n }\n\n\t\treturn $this->attribute;\n\t}", "title": "" }, { "docid": "4c3792e99b8df8f16ab0a4d8c4bcf6e5", "score": "0.5693683", "text": "private function _getAttributes()\r\n {\r\n $attributes = Mage::getResourceModel('eav/entity_attribute_collection')\r\n ->setEntityTypeFilter($this->_entityTypeId)\r\n ->addStoreLabel(Mage::app()->getStore()->getId())\r\n ->addSetInfo(false) //no set data needed\r\n ->getData();\r\n\r\n return $attributes;\r\n }", "title": "" }, { "docid": "e5c98360756a8497b868b2429ef00cfd", "score": "0.5677716", "text": "protected function get_attributes()\n {\n $attributes = array();\n foreach (self::$db_fields as $field) {\n if (property_exists($this, $field)) {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "title": "" }, { "docid": "e5c98360756a8497b868b2429ef00cfd", "score": "0.5677716", "text": "protected function get_attributes()\n {\n $attributes = array();\n foreach (self::$db_fields as $field) {\n if (property_exists($this, $field)) {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "title": "" }, { "docid": "b6080021c12a5bac4985dd3f893cc82e", "score": "0.56704265", "text": "public function attributes() {\n return $this->attributes;\n }", "title": "" }, { "docid": "31b1dede033a2167c66502319abebbd4", "score": "0.56551564", "text": "public function getAttrs() { return $this->data['attrs']; }", "title": "" }, { "docid": "9b5b14d7587d4a008e379e799dae618f", "score": "0.5650944", "text": "public function getAttribute($key)\n {\n $inAttributes = array_key_exists($key, $this->attributes);\n\n // If the key references an attribute, we can just go ahead and return the\n // plain attribute value from the model. This allows every attribute to\n // be dynamically accessed through the _get method without accessors.\n if ($inAttributes || $this->hasGetMutator($key))\n {\n return $this->getAttributeValue($key);\n }\n else\n {\n $i18nKey = $key . '_' . App::getLocale();\n $enKey = $key . '_ru';\n\n $inAttributes = array_key_exists($i18nKey, $this->attributes);\n\n if ($inAttributes || $this->hasGetMutator($i18nKey))\n {\n $value = $this->getAttributeValue($i18nKey);\n\n return $value ? $value : $this->getAttributeValue($enKey);\n }\n }\n\n // If the key already exists in the relationships array, it just means the\n // relationship has already been loaded, so we'll just return it out of\n // here because there is no need to query within the relations twice.\n if (array_key_exists($key, $this->relations))\n {\n return $this->relations[$key];\n }\n\n // If the \"attribute\" exists as a method on the model, we will just assume\n // it is a relationship and will load and return results from the query\n // and hydrate the relationship's value on the \"relationships\" array.\n if (method_exists($this, $key))\n {\n return $this->getRelationshipFromMethod($key);\n }\n }", "title": "" }, { "docid": "f9fb731ef98b68dec538635b3ca01fcf", "score": "0.564542", "text": "public function getAttributes() {\n return $this->attributes;\n }", "title": "" }, { "docid": "2d48966a1e0a460336adba6cdd69611b", "score": "0.564161", "text": "public function getAttributes(){\n \t\t\treturn Mage::getSingleton('eav/config')\n\t\t\t ->getEntityType(Mage_Catalog_Model_Product::ENTITY)->getAttributeCollection();\n \t}", "title": "" }, { "docid": "3f1fdacd43c7bfaa5cc8aec7bdc9c78a", "score": "0.56381696", "text": "function hasAttributes()\r\n {\r\n return (bool) $this->attributes;\r\n }", "title": "" }, { "docid": "efbd478518d192610f88a298b043214e", "score": "0.56235236", "text": "private function getAttributeModel($attribute): EavAttribute\n {\n if ($attribute instanceof EavAttribute) {\n return $attribute;\n }\n $attributeId = $attribute->getAttributeId();\n\n if (!array_key_exists($attributeId, $this->attributesCache)) {\n $this->attributesCache[$attributeId] = $this->eavAttributeFactory->create()->load($attributeId);\n }\n\n return $this->attributesCache[$attributeId];\n }", "title": "" }, { "docid": "a89a4b129c7ffb4e81e1656ddd86b9a7", "score": "0.5618634", "text": "public function getRelatedModelsAttributes()\n\t{\n\t\t$relationName = $this->relationName;\n\n\t\t$indexedModelsAttributes = array();\n\t\tforeach ($this->owner->$relationName as $relatedModel) {\n\t\t\t$indexedModelsAttributes[$relatedModel->id] = $relatedModel->attributes;\n\t\t}\n\n\t\treturn $indexedModelsAttributes;\n\t}", "title": "" }, { "docid": "f5d5972547e99256dc773335fcafe16b", "score": "0.5613272", "text": "public function getAttributes()\n {\n return array_keys($this->attributeToColumn);\n }", "title": "" }, { "docid": "6de1a37ab3de17850ac2c059fba115f8", "score": "0.56129223", "text": "public function getAttribute($key)\n\t{\n\t\t$inAttributes = array_key_exists($key, $this->attributes);\n\t\t\n\t\t// If the key references an attribute, we can just go ahead and return the\n\t\t// plain attribute value from the model. This allows every attribute to\n\t\t// be dynamically accessed through the _get method without accessors.\n\t\tif ($inAttributes or $this->hasGetMutator($key)) {\n\t\t\treturn $this->getAttributeValue($key);\n\t\t}\n\t}", "title": "" }, { "docid": "133cee63afbbcec190314e1af2599f70", "score": "0.5611816", "text": "public function attribute($name)\n {\n if (isset($this->definition['fields'][$name]))\n {\n return $this->$name;\n }\n }", "title": "" }, { "docid": "97d1a0bb17f7e7eb2446bf68bc43ed0d", "score": "0.56012565", "text": "public function getAttributes()\r\n {\r\n return $this->attributes;\r\n }", "title": "" }, { "docid": "67e5aa9aaa620a2cdd0234b1a9e1ce38", "score": "0.5600709", "text": "public function availableAttributes(): array;", "title": "" }, { "docid": "c1af5f4d8d0cca5dd619f8bbfa5e202a", "score": "0.5596862", "text": "function getAttribute($name)\n\t{\n\t\t//return isset($this->attributeMeta[$name])&&isset($this->attributes[$name])\n\t\treturn isset($this->attributes[$name])\n\t\t?$this->attributes[$name]:'';\n\t}", "title": "" }, { "docid": "3671f30df8a653dae9444cab4383635a", "score": "0.55914986", "text": "public function &read_attribute(string $name)\n {\n // check for aliased attribute\n if (array_key_exists($name, static::$alias_attribute)) {\n $name = static::$alias_attribute[$name];\n }\n\n // check for attribute\n if (array_key_exists($name, $this->attributes)) {\n return $this->attributes[$name];\n }\n\n // check relationships if no attribute\n if (array_key_exists($name, $this->__relationships)) {\n return $this->__relationships[$name];\n }\n\n $table = static::table();\n\n // this may be first access to the relationship so check Table\n if ($table->get_relationship($name)) {\n $res = $this->initRelationships($name);\n\n return $res;\n }\n\n if ('id' == $name) {\n $pk = $this->get_primary_key(true);\n if (isset($this->attributes[$pk])) {\n return $this->attributes[$pk];\n }\n }\n\n // do not remove - have to return null by reference in strict mode\n $null = null;\n\n foreach (static::$delegate as $delegateName => $item) {\n if ('processed' == $delegateName) {\n continue;\n }\n if ($delegated_name = $this->is_delegated($name, $item)) {\n $to = $item['to'];\n if ($this->$to) {\n $val = &$this->$to->__get($delegated_name);\n\n return $val;\n }\n\n return $null;\n }\n }\n\n throw new UndefinedPropertyException(get_called_class(), $name);\n }", "title": "" }, { "docid": "d5b6443295ff9ba76160be08ee3d5ffd", "score": "0.5585863", "text": "protected function getAttributesForInsert()\n {\n return parent::getAttributes();\n }", "title": "" }, { "docid": "57a4f190cc3814124e838f0f788bf1ef", "score": "0.55755293", "text": "public function getEntityAttribute()\n {\n // return $this->belongsTo('Uccello\\Core\\Models\\Entity');\n return uccello()->getRecordByUuid($this->entity_id);\n }", "title": "" }, { "docid": "c33949aa3c2db3364ca3589d6dbd7564", "score": "0.5567706", "text": "public function getAttribute($key)\n {\n if ( ! $key) {\n return;\n }\n \n // If the key references an attribute, return its plain value from the model.\n if (array_key_exists($key, $this->attributes) || $this->hasGetMutator($key)) {\n return $this->getAttributeValue($key);\n }\n \n if (method_exists(self::class, $key)) {\n return;\n }\n \n return $this->getRelationValue($key);\n }", "title": "" }, { "docid": "e6c4e8b1f02e75f1c7647878a87dfc32", "score": "0.5565238", "text": "function getUserAttributes()\n {\n }", "title": "" }, { "docid": "3ee16480f01e6e976bd6557d82ae2b50", "score": "0.5563634", "text": "public function mappedAttributes()\n {\n return $this->productType->mappedAttributes;\n }", "title": "" }, { "docid": "ee888e7dfd63cee3a4524716f561b912", "score": "0.55627584", "text": "public function test__GetAttribute() {\n\t\t// Verify the method checks class-level properties first\n\t\tverify( $this->_rr->getAttribute( \"_attributes\" ) )->equals( array() );\n\n\t\t// Set attribute\n\t\t$this->_rr->setAttribute( \"foo\", \"bar\" );\n\n\t\t// Verify attributes are checked after class-level properties\n\t\tverify( $this->_rr->getAttribute( \"foo\" ) )->equals( \"bar\" );\n\n\t\t// Verify unset attributes return false\n\t\tverify( $this->_rr->getAttribute( \"test\" ) )->false();\n\t}", "title": "" } ]
88283176a9be19d094e24c0e5caf1e1b
Relationship between a Map.
[ { "docid": "034254fd05e09db569da301d54ab5ecd", "score": "0.5811835", "text": "public function map()\n {\n return $this->belongsTo(Map::class);\n }", "title": "" } ]
[ { "docid": "a3657d3ad7f11389ca332789c46b60c2", "score": "0.6239063", "text": "public function foreignKeyEntityMap();", "title": "" }, { "docid": "d3bc26e9b0cebfc79352ae4b62f1d390", "score": "0.60995895", "text": "public function getAssociationMapping();", "title": "" }, { "docid": "3c4eb48d8c6b939070335deff3b7b92a", "score": "0.5983261", "text": "abstract protected function getMap();", "title": "" }, { "docid": "a1854fc1879901c6c81f111cd5bd9371", "score": "0.5883069", "text": "public function specificMaps()\n {\n return $this->belongsToMany(Map::class, 'op_map_variant');\n }", "title": "" }, { "docid": "47c8bc4b727b7efb7ad44ba998e446b4", "score": "0.5835352", "text": "public function set_maps();", "title": "" }, { "docid": "522d13b585847e1c86a6a6e5a7df9163", "score": "0.5687717", "text": "public function setMap($map)\n\t{\n\t\t/* $this->map = array(\n\t\t array('from' => '{EventId}', 'to' => $fk),\n\t\tarray('from' => '{Genre}', 'to' => 'genres'),\n\t\tarray('from' => '{DoorOpen}', 'to' => 'Event_date'),\n\t\tarray('from' => '{DoorClosed}', 'to' => 'Event_date_end'),\n\t\tarray('from' => '{DoorClosed}', 'to' => 'Event_publish_end'),\n\t\tarray('from' => '{IsFreeEntrance}', 'to' => 'ticket_cost', 'value' => 0, 'match' => 'true'),\n\t\tarray('from' => '{AvailabilityStatus}', 'to' => 'ticket_cost', 'value' => 3, 'match' => 'false'),\n\t\tarray('from' => '{ShortText}', 'to' => 'Event_description_short'),\n\t\tarray('from' => '{Title} ({SubTitle})', 'to' => 'Event_title'),\n\t\tarray('from' => '{Price}', 'to' => 'Event_price_presale', 'match' => 'foreach($d->Price as $p) { if($p->TicketType == \\'Normaal\\') { return $p->Price;}} return false;', 'eval' => true),\n\t\tarray('from' => '{Price}', 'to' => 'Event_price_door', 'match' => 'foreach($d->Price as $p) { if($p->TicketType == \\'Dagkassa\\') { return $p->Price;}} return false;', 'eval' => true)\n\t\t); */\n\t\t$this->map = $map;\n\t}", "title": "" }, { "docid": "58fc1f3941beffd48d108800682b2310", "score": "0.5505602", "text": "public function getMap();", "title": "" }, { "docid": "358d92342ef464f629c71df30df10f1b", "score": "0.55031055", "text": "public function contains(Map $otherMap) {\n foreach ($otherMap->values as $k => $v) {\n if (!$this->containsKey($k)) {\n return false;\n }\n if ($this->get($k) != $v) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "4a9adf6ce7649b155f6413bb3e8f6117", "score": "0.5485897", "text": "public function getRelation(string $relation): RelationMap;", "title": "" }, { "docid": "5042104a3012a9715095effa93148128", "score": "0.5463249", "text": "public function getRelatedArticlesMapping()\n {\n return $this->_gtmHelper->getRelatedArticlesMapping();\n }", "title": "" }, { "docid": "0a5f054bed115de5a78d6ace94aedc18", "score": "0.54393697", "text": "function putMap($m)\n\t{\n\t\tforeach($m->slots as $slot)\n\t\t\tfor($i = phplint_count($slot)-1; $i >= 0; $i--)\n\t\t\t\t$this->put($slot[$i]->getA(), $slot[$i]->getB());\n\t}", "title": "" }, { "docid": "7992496fd21621b929b1ba53f3e08c4c", "score": "0.54014933", "text": "function putAll( Map $map );", "title": "" }, { "docid": "a87f4d5e818a95bc3829346290b000b8", "score": "0.53826296", "text": "public function setMap($map) {\n $map = \n $this->map = $map;\n }", "title": "" }, { "docid": "5a5b21bf92aabec43216b47e1c91053a", "score": "0.53626245", "text": "public function changeMap($NewMap){\n $this->map = $NewMap;\n //on mémorise çà en base\n $sql = \"UPDATE `Entite` SET `idMap`='\".$NewMap->getId().\"' WHERE `id`='\".$this->_id.\"'\";\n $this->_bdd->query($sql);\n }", "title": "" }, { "docid": "0a40eb5e9b293be21596f68f2bc3dd77", "score": "0.5262966", "text": "public function loadMap() {\r\n\t\tif(!$this->mapLoaded) {\r\n\t\t\t$this->mapLoaded = true;\r\n\t\t\tImperator::getDatabaseManager()->getTerritoriesTable()->loadMap($this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1acf95b7f68b9974d04b94297352e953", "score": "0.5248382", "text": "public function equals(self $map): bool\n {\n return $this->implementation->equals($map->implementation);\n }", "title": "" }, { "docid": "6169136520b8ebc8b95efbdff9182666", "score": "0.5235647", "text": "public function buildLinkedItemMaps()\n {\n $api = $this->getServiceLocator()->get('Omeka\\ApiManager');\n foreach ($this->links as $index => $link) {\n\n // Cache the property entities.\n $this->links[$index]['linked_id_property'] = $this->getProperty($link['linked_id_property_term']);\n $this->links[$index]['linking_property'] = $this->getProperty($link['linking_property_term']);\n\n // Get all linked item entities.\n $linkedItems = $api->search(\n 'items',\n $link['linked_items_query'],\n ['responseContent' => 'resource']\n )->getContent();\n\n // Build the map between the linked item ID and the linked ID.\n foreach ($linkedItems as $linkedItem) {\n $values = $linkedItem->getValues();\n $criteria = Criteria::create()\n ->where(Criteria::expr()->eq('property', $this->links[$index]['linked_id_property']));\n $linkedValue = $values->matching($criteria)[0];\n $linkedId = $linkedValue ? trim($linkedValue->getValue()) : null;\n $this->linkedItemMaps[$link['linking_property_term']][$linkedItem->getId()] = $linkedId;\n }\n }\n }", "title": "" }, { "docid": "263fad54fc8d2e5163c548b51bdf6ff4", "score": "0.5232518", "text": "public function map()\n\t{\n\t\t$this->map['id'] = $this->id();\n\t\tforeach ($this->node->getProperties() as $key => $value)\n\t\t{\n\t\t\t$this->map[$key] = $value;\n\t\t}\n\t\treturn $this->map;\n\t}", "title": "" }, { "docid": "84c42354c34e8ca3d83394ac891016b9", "score": "0.5108416", "text": "public function gameMap()\n {\n return $this->belongsTo('App\\Models\\Game\\GameMap');\n }", "title": "" }, { "docid": "8febc5fc81903f83584dd8ff437d47d1", "score": "0.5076306", "text": "public function hasMapId(){\r\n return $this->_has(3);\r\n }", "title": "" }, { "docid": "8febc5fc81903f83584dd8ff437d47d1", "score": "0.5076306", "text": "public function hasMapId(){\r\n return $this->_has(3);\r\n }", "title": "" }, { "docid": "f1905b057fc7c8004e242ef1a77187c1", "score": "0.5066915", "text": "public function getMapEntity()\n {\n return $this->mapEntity;\n }", "title": "" }, { "docid": "494a54423c4a9468cffffd7a9401660c", "score": "0.5062955", "text": "public function hasMapping(): bool;", "title": "" }, { "docid": "3aa14c49cf25edd853fb28cb14888aaa", "score": "0.50549614", "text": "abstract protected function setDataMapping();", "title": "" }, { "docid": "9545cefdf7a7bde630fd8e754424c116", "score": "0.5046566", "text": "public function setMap(Map $map)\n {\n $this->map = $map;\n }", "title": "" }, { "docid": "9279d0be2190d3681d8d66e9423dfc83", "score": "0.5014228", "text": "abstract public function push(AbstractMap $map, AbstractValue $entity) : bool;", "title": "" }, { "docid": "25351c8b95f781a97a3464ab6c745fed", "score": "0.49767235", "text": "public function setRelations(PinqModelRelationalMap $relations) {\n\t\t$this->_relations = $relations;\n\t}", "title": "" }, { "docid": "c81ccf0dce86016500fdc65facbcf2e3", "score": "0.49761215", "text": "public static function getMap()\n {\n return array(\n new Entity\\IntegerField('ID', array(\n 'primary' => true,\n 'autocomplete' => true\n )),\n new Entity\\StringField('NAME', array(\n 'required' => true\n )),\n new Entity\\IntegerField('MODEL_ID'),\n (new Reference(\n 'MODEL',\n ModelTable::class,\n Join::on('this.MODEL_ID', 'ref.ID')\n ))\n ->configureJoinType('inner'),\n (new OneToMany('CARS', CarTable::class, 'SET'))->configureJoinType('inner'),\n (new ManyToMany('OPTION', OptionTable::class))\n ->configureTableName('kodix_option_set')\n\t\t);\n }", "title": "" }, { "docid": "b9075909bf13e6164ffb7a073f716d6c", "score": "0.4972349", "text": "public function getRef_map()\n {\n return $this->ref_map;\n }", "title": "" }, { "docid": "35a4d5025733f782319bf2c529b8d918", "score": "0.4963778", "text": "public function getCategoryRelationMap()\r\n {\r\n return $this->catRelationMap;\r\n }", "title": "" }, { "docid": "cad85534d2b07b460e1f807bce3fc2c9", "score": "0.49514237", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t),\n\t\t\t'TIMESTAMP_X' => array(\n\t\t\t\t'data_type' => 'datetime',\n\t\t\t),\n\t\t\t'CONTACT_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'LINK_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'CONTACT_PROFILE_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\t'CONTACT_PORTAL' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\t'LAST_AUTHORIZE' => array(\n\t\t\t\t'data_type' => 'datetime',\n\t\t\t),\n\t\t\t'CONNECT_TYPE' => array(\n\t\t\t\t'data_type' => 'enum',\n\t\t\t\t'values' => array(static::TYPE_PORTAL, static::TYPE_EXTERNAL),\n\t\t\t),\n\t\t\t'CONTACT' => array(\n\t\t\t\t\t'data_type' => 'Bitrix\\Socialservices\\ContactTable',\n\t\t\t\t\t'reference' => array('=this.CONTACT_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'LINK' => array(\n\t\t\t\t\t'data_type' => 'Bitrix\\Socialservices\\UserLinkTable',\n\t\t\t\t\t'reference' => array('=this.LINK_ID' => 'ref.ID'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "52541c188ac38afe8bcaf45486a7fcbf", "score": "0.49075806", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'TASK_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('TASKS_TASK_FAVORITE_ENTITY_TASK_ID_FIELD'),\n\t\t\t),\n\t\t\t'USER_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('TASKS_TASK_FAVORITE_ENTITY_USER_ID_FIELD'),\n\t\t\t),\n\n\t\t\t// references\n\t\t\t'USER' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\UserTable',\n\t\t\t\t'reference' => array('=this.USER_ID' => 'ref.ID')\n\t\t\t),\n\t\t\t'TASK' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Tasks\\Internals\\TaskTable',\n\t\t\t\t'reference' => array('=this.TASK_ID' => 'ref.ID')\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "eeff64d1a9d6464dde28dd84f9ea02bf", "score": "0.4902251", "text": "public static function get_other_mapping() {\n $othermapped = [];\n $othermapped['messageid'] = ['db' => 'messages', 'restore' => base::NOT_MAPPED];\n\n return $othermapped;\n }", "title": "" }, { "docid": "36a7a8158ee07b9f2cdac0b4f3ae8cb9", "score": "0.4900395", "text": "public function mapFor();", "title": "" }, { "docid": "3ec68f3e9daca484fb3289eeb96cf09c", "score": "0.48991722", "text": "public function /*Map*<String!,String!>!*/ getAttributeMap() ;", "title": "" }, { "docid": "57d2ce714771e35b8a6e2bf9a3d4d854", "score": "0.4882441", "text": "public function setAssociationMapping($associationMapping);", "title": "" }, { "docid": "ec1c0b874a9ad4e45796b9d2f636731d", "score": "0.4874524", "text": "private function mapData($map, $data, $table=null) { // rekursiv\n\t\t$j=count($this->mappedData['foreign'][$table][$j])+1;\n\t\t$keys = array();\n\t\tif (is_array($map)) {\n\t\t\tforeach ($map as $key => $value) {\n\t\t\t\t$k = trim($key, \".\");\n\t\t\t\tif (in_array($k, $keys)) { continue; }\n\t\t\t\t$keys[] = $k;\n\n\t\t\t\tif ($map[$k.'.']) { // hat unterstrukturen in der mapping-konfiguration -> rekursiver aufruf\n\t\t\t\t\t$this->mapData($map[$k.'.'], $data[$k], $map[$k]);\n\t\t\t\t} else { // keine unterstrukturen. zuordnung 1:1 (fe_user) oder 1:n (fremdtabellen)\n\t\t\t\t\tif ($table) { // 1:n to $table\n\t\t\t\t\t\tif (!$data[0]) { $data = array($data); } // 1:n aus einer 1:1 beziehung machen -> primary_company\n\t\t\t\t\t\tforeach ($data as $i=>$subdata) {\n\t\t\t\t\t\t\t$this->mappedData['foreign'][$table][$j+$i][$map[$k]] = $subdata[$k];\n\t\t\t\t\t\t}\n\t\t\t\t\t} else { // 1:1 fe_users\n\t\t\t\t\t\t// in rare cases you get an array, then the first element is used.\n\t\t\t\t\t\tif (is_array($data[$k])) {$data[$k]=$data[$k][0];}\n\t\t\t\t\t\t$this->mappedData['fe_users'][$map[$k]] = $data[$k];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bab17a0a0ed2c043e7d81a1f2716a13d", "score": "0.48638672", "text": "private function loadParentRef(array $mapProperties, EntityInterface $bpmnElement)\n {\n foreach ($mapProperties as $name => $property) {\n $isThisProperty = $property === BpmnDocument::PARENT_NODE;\n if ($isThisProperty) {\n $bpmnElement->setProperty($name, $this->parentNode->getBpmnElementInstance());\n }\n }\n }", "title": "" }, { "docid": "fc7a13b77e3b65863d0fccdb4b9ad19f", "score": "0.48613423", "text": "abstract protected function _getMappingProperties();", "title": "" }, { "docid": "25f972a7b2b06aecfb0b568bd66510dd", "score": "0.48532522", "text": "public function getMap(): MapInterface;", "title": "" }, { "docid": "9e94b6f4c50353c1a3aefbe6e8dbfacc", "score": "0.48403776", "text": "public function getRelationMappings()\n {\n return $this->relations;\n }", "title": "" }, { "docid": "1f26407d62154955a28857807a094a5d", "score": "0.48331967", "text": "private function loadMap() {\n return Database::getConnection(\n $this->configuration['connection']['target'] ?? 'default',\n $this->configuration['connection']['key'] ?? 'migrate'\n )\n ->select($this->configuration['table'], 't')\n ->fields('t', [$this->configuration['from'], $this->configuration['to']])\n ->execute()->fetchAllKeyed();\n }", "title": "" }, { "docid": "1d1d7c716c108071c4c80b4ec81f4052", "score": "0.4827616", "text": "function map_to($map, $key, $default=NULL) {\n \n if ( empty($map) || empty($key) )\n return $default; // both $map and $key must not be empty.\n \n if ( isset($map[$key]) )\n return $map[$key];\n else\n return $default;\n}", "title": "" }, { "docid": "510425e59963878ed1bfd7530938ad63", "score": "0.4821058", "text": "public function setMap($dbmap)\r\n {\r\n $this->map = $dbmap;\r\n }", "title": "" }, { "docid": "16bc6d8432876c24d112cc490e5c2960", "score": "0.48093146", "text": "public function mapTo();", "title": "" }, { "docid": "e885445cedca8847b3a9df4d55e577ec", "score": "0.48065463", "text": "public static function getMap()\r\n\t{\r\n\t\treturn array(\r\n\t\t\t'ID' => array(\r\n\t\t\t\t'data_type' => 'integer',\r\n\t\t\t\t'primary' => true,\r\n\t\t\t\t'autocomplete' => true\r\n\t\t\t),\r\n\t\t\t'UF_TITLE' => array(\r\n\t\t\t\t'data_type' => 'string',\r\n 'required' => true\r\n\t\t\t),\r\n 'UF_CODE' => array(\r\n\t\t\t\t'data_type' => 'string',\r\n 'required' => true\r\n\t\t\t),\r\n\t\t\t'UF_DESC' => array(\r\n\t\t\t\t'data_type' => 'text',\r\n\t\t\t\t'title' => Localization\\Loc::getMessage('prog_entity_desc_field'),\r\n\t\t\t),\r\n 'UF_EPG_ID' => array(\r\n\t\t\t\t'data_type' => 'string',\r\n\t\t\t\t'title' => Localization\\Loc::getMessage('prog_entity_epg_id_field'),\r\n 'required' => true\r\n\t\t\t),\r\n 'UF_IMG_ID' => array(\r\n\t\t\t\t'data_type' => 'integer'\r\n\t\t\t),\r\n 'UF_IMG' => array(\r\n\t\t\t\t'data_type' => '\\Hawkart\\Megatv\\ImageTable',\r\n\t\t\t\t'reference' => array('=this.UF_IMG_ID' => 'ref.ID'),\r\n\t\t\t),\r\n 'UF_CHANNEL_ID' => array(\r\n\t\t\t\t'data_type' => 'string',\r\n 'serialized' => true\r\n\t\t\t),\r\n 'UF_CHANNEL' => array(\r\n\t\t\t\t'data_type' => '\\Hawkart\\Megatv\\ChannelTable',\r\n\t\t\t\t'reference' => array('=this.UF_CHANNEL_ID' => 'ref.ID'),\r\n\t\t\t),\r\n 'UF_EXTERNAL_TITLE' => array(\r\n\t\t\t\t'data_type' => 'string'\r\n\t\t\t),\r\n 'UF_EXTERNAL_URL' => array(\r\n\t\t\t\t'data_type' => 'string'\r\n\t\t\t)\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "5d4a58297ca5a2e28aa51828ec22641b", "score": "0.48035616", "text": "abstract protected function map();", "title": "" }, { "docid": "07ec7356ba386fa0e5eb41a7400a8bda", "score": "0.4787192", "text": "public function merge(self $map): self\n {\n return new self($this->implementation->merge($map->implementation));\n }", "title": "" }, { "docid": "fd77038b8e4b4cbdfacc5204982eac20", "score": "0.4781415", "text": "public function hasRelated($builder, EntityMapping $entityMapping, EntityMapping $relatedMapping): void;", "title": "" }, { "docid": "64701c78b4423d39c41ebada77bdf0a2", "score": "0.4777803", "text": "public static function getMap()\n {\n return array(\n new Entity\\IntegerField('ID', array(\n 'primary' => true,\n 'autocomplete' => true\n )),\n new Entity\\StringField('NAME', array(\n 'required' => true\n )),\n (new OneToMany('MODELS', ModelTable::class, 'BRAND'))->configureJoinType('inner')\n\t\t);\n }", "title": "" }, { "docid": "c78e7e2a716ad265a567e594f34978e3", "score": "0.4767042", "text": "public static function getMap()\n\t{\n\t\t// to avoid warnings in php7\n\t\t$entityName = '\\\\Bitrix\\\\Tasks\\\\Internals\\\\TaskTable';\n\t\tif(func_num_args() > 0)\n\t\t{\n\t\t\t$entityName = func_get_arg(0);\n\t\t}\n\n\t\t$map = array_merge(array(\n\t\t\tnew Entity\\IntegerField('TASK_ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('DEPENDENCE_ENTITY_TASK_ID_FIELD'),\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\tnew Entity\\IntegerField('DEPENDS_ON_ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('DEPENDENCE_ENTITY_DEPENDS_ON_ID_FIELD'),\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\tnew Entity\\IntegerField('TYPE', array(\n\t\t\t\t'title' => Loc::getMessage('DEPENDENCE_ENTITY_TYPE_FIELD'),\n\t\t\t\t//'validation' => array(__CLASS__, 'validateType'),\n\t\t\t)),\n\t\t\tnew Entity\\IntegerField('CREATOR_ID', array(\n\t\t\t)),\n\t\t\tnew Entity\\ReferenceField(\n\t\t\t\t'TASK',\n\t\t\t\t$entityName,\n\t\t\t\tarray(\n\t\t\t\t\t'=this.TASK_ID' => 'ref.ID',\n\t\t\t\t)\n\t\t\t),\n\t\t\tnew Entity\\ReferenceField(\n\t\t\t\t'DEPENDS_ON',\n\t\t\t\t$entityName,\n\t\t\t\tarray(\n\t\t\t\t\t'=this.DEPENDS_ON_ID' => 'ref.ID',\n\t\t\t\t)\n\t\t\t)\n\t\t), parent::getMap('\\\\Bitrix\\\\Tasks\\\\Task\\\\Dependence'));\n\n\t\treturn $map;\n\t}", "title": "" }, { "docid": "9f78f16dbfc078cabc0352642dfef38d", "score": "0.4761903", "text": "public function mappings()\n {\n return $this->hasMany(Mapping::class);\n }", "title": "" }, { "docid": "cd0d143cf5d7d071a8643dd217634c5b", "score": "0.4727417", "text": "public function isMap()\r\n\t{\r\n\t\treturn $this->isMap;\r\n\t}", "title": "" }, { "docid": "846ab0c1d8c431261eae5a8eebbf9fb4", "score": "0.4722855", "text": "public function __construct(Map $map)\n {\n $this->map = $map;\n }", "title": "" }, { "docid": "a0d7d164606919a7f496b0fcc3170b4a", "score": "0.47198632", "text": "public function setRef_map($ref_map)\n {\n $this->ref_map = $ref_map;\n\n return $this;\n }", "title": "" }, { "docid": "20c35d1eb88457b1860cd44c73ba06cf", "score": "0.47095907", "text": "public function link_relationship(){\n if( $this->get_transient('relationship_id') ){\n\t\t\t$this->add_log('linking relationship');\t\n\n\t\t\t$collections = $this->get_collections();\n\n\t\t\tif ( isset($collections[0]) && $collections[0]['source_id'] === 'col1' ) {\n\n\t\t\t\t$col1 = new Entities\\Collection($collections[0]['id']);\n\t\t\t\t$items_first = $this->items_repo->fetch( ['order'=> 'DESC', 'orderby' => 'ID'], $col1, 'OBJECT' );\n\n\t\t\t\t$col2 = new Entities\\Collection($collections[1]['id']);\n\t\t\t\t$items_second = $this->items_repo->fetch( ['order'=> 'DESC', 'orderby' => 'ID'], $col2, 'OBJECT' );\n\n\t\t\t\t$metadatum = new Entities\\Metadatum($this->get_transient('relationship_id'));\n\n\t\t\t\t// iterate over all items in first collection and randomly finds\n\t\t\t\t// an item in second collection\n\t\t\t\t\n\t\t\t\tif( $metadatum && $items_first && count($items_first) > 0 && count($items_second) > 0 ){\n\t\t\t\t\tforeach ($items_first as $item_first) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$item_metadata = new Entities\\Item_Metadata_Entity($item_first, $metadatum);\n\t\t\t\t\t\t$rand_item = $items_second[array_rand($items_second)];\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$item_metadata->set_value($rand_item->get_id());\n\n\t\t\t\t\t\tif($item_metadata->validate()){\n\t\t\t\t\t\t\t$item_metadata = $this->item_metadata_repo->insert($item_metadata);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->set_in_step_count(1);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3d3eacb27e643e62cc9d952ac8625eb8", "score": "0.47094488", "text": "public function getRelationshipPermissionMap(): array\n {\n return [\n 'members' => 'teams-membership',\n 'attendance' => 'attendance',\n ];\n }", "title": "" }, { "docid": "a44788abdb210f78a2c8875b1572992f", "score": "0.47072995", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'FORUM_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_FORUM_ID'),\n\t\t\t),\n\t\t\t'SITE_ID' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'primary' => true,\n\t\t\t\t'size' => 2,\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),\n\t\t\t),\n\t\t\t'PATH2FORUM_MESSAGE' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),\n\t\t\t),\n\t\t\t'FORUM' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Forum\\Forum',\n\t\t\t\t'reference' => array('=this.FORUM_ID' => 'ref.ID')\n\t\t\t),\n\t\t\t'SITE' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\Site',\n\t\t\t\t'reference' => array('=this.SITE_ID' => 'ref.LID'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "54ca21fc1e43617e4199f896f354b1cd", "score": "0.46850657", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t\t'title' => Loc::getMessage('SMARTSEO_FILTER_IBLOCK_SECTIONS_ENTITY_ID_FIELD'),\n\t\t\t),\n\t\t\t'FILTER_RULE_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t\t'title' => Loc::getMessage('SMARTSEO_FILTER_IBLOCK_SECTIONS_ENTITY_FILTER_RULE_ID_FIELD'),\n\t\t\t),\n\t\t\t'SECTION_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t\t'title' => Loc::getMessage('SMARTSEO_FILTER_IBLOCK_SECTIONS_ENTITY_SECTION_ID_FIELD'),\n\t\t\t),\n (new Reference('FILTER_RULE', SmartseoFilterRuleTable::class, Join::on('this.FILTER_RULE_ID', 'ref.ID')))\n ->configureJoinType('left'),\n (new Reference('SECTION', \\Bitrix\\Iblock\\SectionTable::class, Join::on('this.SECTION_ID', 'ref.ID')))\n ->configureJoinType('left'),\n\t\t);\n\t}", "title": "" }, { "docid": "4d39c09043097a2ecf874b39719bcace", "score": "0.46826655", "text": "function testGroupMap() {\n\t\t/* Group::map() returns an SQLMap object implementing iterator. You can use foreach to get ID-Title pairs. */\n\t\t\n\t\t// We will iterate over the map and build mapOuput to more easily call assertions on the result.\n\t\t$map = Group::map();\n\t\t$mapOutput = $map->getItems()->map('ID', 'Title');\n\t\t\n\t\t$group1 = $this->objFromFixture('Group', 'group1');\n\t\t$group2 = $this->objFromFixture('Group', 'group2');\n\n\t\t/* We have added 2 groups to our fixture. They should both appear in $mapOutput. */\n\t\t$this->assertEquals($mapOutput[$group1->ID], $group1->Title);\n\t\t$this->assertEquals($mapOutput[$group2->ID], $group2->Title);\n\t}", "title": "" }, { "docid": "c9dabceba2db7d2a4950ad6ca635421d", "score": "0.46711838", "text": "function setMap($data) {\n $this->catMap = $data;\n $this->reload();\n }", "title": "" }, { "docid": "18a84388d621a9401a26185705dea80c", "score": "0.4666968", "text": "public function mapFrom();", "title": "" }, { "docid": "1770f4b0864971045afa41889256b171", "score": "0.4659018", "text": "public function getEntityRelationships();", "title": "" }, { "docid": "1faeca553352ea0f78efbe2bf7552394", "score": "0.46501726", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t),\n\t\t\t'USER_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'USER' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\UserTable',\n\t\t\t\t'reference' => array('=this.USER_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'DATE_SIGNED' => array(\n\t\t\t\t'data_type' => 'datetime'\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "93ed66f4b8400a399f233247cb01bbd7", "score": "0.4647629", "text": "public static function validate_map() {\n }", "title": "" }, { "docid": "2fb105fd9dfa74adb80664d246a2e54a", "score": "0.46382597", "text": "public function map()\n {\n return $this->map;\n }", "title": "" }, { "docid": "83c2e23da732e52ccb6d777a1a7ee27d", "score": "0.46372873", "text": "public function toMap() {\n\t\t\treturn new Common\\HashMap($this->toDictionary());\n\t\t}", "title": "" }, { "docid": "d9a2a8df6467c83f5039f12bfddd7044", "score": "0.4635282", "text": "public function setMapEntity(array $mapEntity)\n {\n $this->mapEntity = $mapEntity;\n\n return $this;\n }", "title": "" }, { "docid": "0441cc8eb49564a212b6c119b5030e37", "score": "0.4610533", "text": "public function getTableMap()\n {\n return $this->tableMap;\n }", "title": "" }, { "docid": "73c38b5a52e4c78a656f701c854f3ff0", "score": "0.4599039", "text": "public static function import(array $map){\n $map and self::$map = array_merge(self::$map,$map);\n }", "title": "" }, { "docid": "aa5f35118db8fcd0833dffcfa4fdcd93", "score": "0.45914423", "text": "protected function addTagMap($relId, $typeId, $tagId)\n\t{\n\t\t$this->db->where('relId', $relId);\n\t\t$this->db->where('typeId', $typeId);\n\t\t$this->db->where('tagId', $tagId);\n\t\t$result = $this->db->query(\"SELECT id FROM $this->tableTagMaps\",1);\t\t// Check for existing map.\n\t\tif (empty($result)) {\n\t\t\t$insertData = array(\n\t\t\t\t'relId' => $relId,\n\t\t\t\t'typeId' => $typeId,\n\t\t\t\t'tagId' => $tagId);\n\t\t\t$result = $this->db->insert($this->tableTagMaps, $insertData);\t\t// Add new map.\n\t\t} else {\n\t\t\t$result = $result[0]['id'];\t\t// Get the id of existing the map.\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b81ec7e09dbe68763198b5e850a5e567", "score": "0.45880616", "text": "abstract public function pushAll(AbstractMap $map, array $entities) : bool;", "title": "" }, { "docid": "f6aff55bb965f88c131dd1e0967e0901", "score": "0.45808965", "text": "public function getRelationshipPermissionMap()\n {\n return [\n 'creator' => 'users',\n ];\n }", "title": "" }, { "docid": "37007619b660c8c3fe77973aaa5cecc7", "score": "0.45766154", "text": "public function mapKegiatan()\n {\n return $this->belongsTo('App\\Models\\MapKegiatan');\n }", "title": "" }, { "docid": "bca56391f3b0a61dbf072ba361fddb2a", "score": "0.45657852", "text": "public function getRelationships();", "title": "" }, { "docid": "f87445c9b82b84597d657888070e457e", "score": "0.45648947", "text": "public function getParentMap()\n\t{\n\t\tif ($this->parent_map !== null) {\n\t\t\treturn $this->parent_map;\n\t\t}\n\n\t\t$this->parent_map = array();\n\n\t\tforeach ($this->cats as $cat) {\n\t\t\t$this->parent_map[$cat[$this->id_key]] = $cat[$this->parent_key];\n\t\t}\n\n\t\treturn $this->parent_map;\n\t}", "title": "" }, { "docid": "23132da31e6371d64326160fcb8ae75e", "score": "0.45590806", "text": "private function treateMapping($object, $old, $new = null)\r\n {\r\n // return the created relation object id, else save it for after use\r\n \r\n if (!isset($this->new_object_mapping[$object])) {\r\n $this->new_object_mapping[$object] = array();\r\n }\r\n \r\n if (array_key_exists($old, $this->new_object_mapping[$object])) {\r\n return $this->new_object_mapping[$object][$old];\r\n } else {\r\n if (isset($new)) {\r\n $this->new_object_mapping[$object][$old] = $new;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "119b9d3d303b44fdfe111dda30ca02bf", "score": "0.45529526", "text": "public function loadMap($mapName){\n $this->setMap(new Map($mapName));\n }", "title": "" }, { "docid": "09dc98290b32d52ca91ae439bd970d1f", "score": "0.4545093", "text": "protected function processDocumentDataMapProperty()\n {\n $dataMap = array();\n\n // fields\n $dataMap['fields'] = $this->configClass['fields'];\n\n // references\n $dataMap['references'] = $this->configClass['references'];\n\n // embeddeds\n $dataMap['embeddeds'] = $this->configClass['embeddeds'];\n\n // relations\n if (!$this->configClass['is_embedded']) {\n $dataMap['relations'] = $this->configClass['relations'];\n }\n\n $property = new Property('protected', 'dataMap', $dataMap);\n $property->setIsStatic(true);\n\n $this->definitions['document_base']->addProperty($property);\n }", "title": "" }, { "docid": "da5bebed33ed1d799330bc6691f81369", "score": "0.4543346", "text": "public function map()\n\t{\n\t\treturn $this->map;\n\t}", "title": "" }, { "docid": "3a087efd63e816e74e0e18cd39755174", "score": "0.45387194", "text": "private function addRouteMap(array &$routeMap, string $method, string $route, array $entity) :void\n {\n if(!isset($routeMap[$method])) {\n $routeMap[$method] = [];\n }\n $routeMap[$method][$route] = $entity;\n }", "title": "" }, { "docid": "d4c9bbeaee799a3c29bea91c898a3ba8", "score": "0.45378697", "text": "public function getMap()\n {\n return $this->_getValue('Map');\n }", "title": "" }, { "docid": "1a7e123fe282eb58099d3cf1b9bf05a9", "score": "0.4536692", "text": "function AddMapping($object, $otherObject)\n\t{\n\t\tif ($object instanceof Region && $object->regionId != '')\n\t\t{\n\t\t\t$this->regionId = $object->regionId;\n\t\t\t$this->supplierId = $otherObject->supplierId;\n\t\t\treturn $this->Save();\n\t\t}\n\t\telse if ($object instanceof Supplier && $object->supplierId != '')\n\t\t{\n\t\t\t$this->supplierId = $object->supplierId;\n\t\t\t$this->regionId = $otherObject->regionId;\n\t\t\treturn $this->Save();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a08328500af7491929cb77270c5d3ccc", "score": "0.45351994", "text": "public static function getMap()\n {\n \\Bitrix\\Main\\Loader::includeModule('iblock');\n\n static::$_metadata = static::getMetadata();\n\n $map = array(\n 'ID' => array(\n 'data_type' => 'integer',\n 'primary' => true,\n 'autocomplete' => true,\n ),\n 'NAME' => array(\n 'data_type' => 'string',\n ),\n 'CODE' => array(\n 'data_type' => 'string',\n ),\n 'PREVIEW_PICTURE' => array(\n 'data_type' => 'integer',\n ),\n 'DETAIL_PICTURE' => array(\n 'data_type' => 'integer',\n ),\n 'PREVIEW_TEXT' => array(\n 'data_type' => 'string',\n ),\n 'DETAIL_TEXT' => array(\n 'data_type' => 'string',\n ),\n 'IBLOCK_ID' => array(\n 'data_type' => 'integer',\n ),\n 'IBLOCK' => array(\n 'data_type' => 'Iblock',\n 'reference' => array('=this.IBLOCK_ID' => 'ref.ID'),\n ),\n 'ACTIVE' => array(\n 'data_type' => 'boolean',\n 'values' => array('N','Y'),\n ),\n 'IBLOCK_SECTION_ID' => array(\n 'data_type' => 'integer',\n ),\n 'SORT' => array(\n 'data_type' => 'integer',\n ),\n 'XML_ID' => array(\n 'data_type' => 'string',\n ),\n 'WF_STATUS_ID' => array(\n 'data_type' => 'integer',\n ),\n 'WF_PARENT_ELEMENT_ID' => array(\n 'data_type' => 'integer',\n ),\n new Entity\\ExpressionField(\n 'DETAIL_PAGE_URL',\n \"''\"\n ),\n new Entity\\ExpressionField(\n 'DISTINCT',\n 'DISTINCT %s',\n 'ID'\n ),\n );\n\n\n $singleEntity = SinglePropertyElementTable::createEntity(static::$_iblockId);\n\n $map[] = new Entity\\ReferenceField(\n 'PROPERTY',\n $singleEntity->getDataClass(),\n array(\n 'ref.IBLOCK_ELEMENT_ID' => 'this.ID'\n ),\n array('join_type' => 'INNER')\n );\n\n $multiEntity = MultiplePropertyElementTable::createEntity(static::$_iblockId);\n\n foreach (static::$_metadata['props'] as $arProp) {\n if ($arProp['MULTIPLE'] == 'Y') {\n $map[] = new Entity\\ReferenceField(\n 'PROPERTY_' . $arProp['CODE'] . '_ENTITY',\n $multiEntity->getDataClass(),\n array(\n 'ref.IBLOCK_ELEMENT_ID' => 'this.ID',\n 'ref.IBLOCK_PROPERTY_ID' => array('?i', $arProp['ID'])\n ),\n array('join_type' => 'INNER')\n );\n\n $map[] = new Entity\\ExpressionField(\n 'PROPERTY_' . $arProp['CODE'],\n '%s',\n 'PROPERTY_' . $arProp['CODE'] . '_ENTITY.VALUE'\n );\n\n $map[] = new Entity\\ExpressionField(\n 'PROPERTY_' . $arProp['CODE'] . '_DESCRIPTION',\n '%s',\n 'PROPERTY_' . $arProp['CODE'] . '_ENTITY.DESCRIPTION'\n );\n } else {\n $map[] = new Entity\\ExpressionField(\n 'PROPERTY_' . $arProp['CODE'],\n '%s',\n 'PROPERTY.' . $arProp['CODE']\n );\n\n $map[] = new Entity\\ExpressionField(\n 'PROPERTY_' . $arProp['CODE'] . '_DESCRIPTION',\n '%s',\n 'PROPERTY.' . $arProp['CODE'] . '_DESCRIPTION'\n );\n }\n }\n\n// p($map,1);\n return $map;\n }", "title": "" }, { "docid": "6a39990b791438396c3d55d9a6cf554d", "score": "0.45224392", "text": "public static function merge(ObjectArray $map_a, ObjectArray $map_b): ObjectArray\n {\n $map = new self();\n\n foreach ($map_a as $a) {\n $map->replace($a);\n }\n\n foreach ($map_b as $b) {\n $map->replace($b);\n }\n\n return $map;\n }", "title": "" }, { "docid": "d9b038e4875d32ab96442f7de68307fc", "score": "0.45209804", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\IntegerField('ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t)),\n\t\t\tnew Main\\Entity\\IntegerField('FILE_ID'),\n\t\t\tnew Main\\Entity\\IntegerField('FACE_ID'),\n\t\t\tnew Main\\Entity\\IntegerField('CRM_ID'),\n\t\t\tnew Main\\Entity\\StringField('VK_ID'),\n\t\t\tnew Main\\Entity\\DatetimeField('FIRST_VISIT'),\n\t\t\tnew Main\\Entity\\DatetimeField('PRELAST_VISIT'),\n\t\t\tnew Main\\Entity\\DatetimeField('LAST_VISIT'),\n\t\t\tnew Main\\Entity\\IntegerField('LAST_VISIT_ID'),\n\t\t\tnew Main\\Entity\\IntegerField('VISITS_COUNT'),\n\t\t);\n\t}", "title": "" }, { "docid": "76445da694595e49f9f9ea6b525268b6", "score": "0.450649", "text": "private function setBpmnPropertyRef(DOMAttr $node, array $mapProperties, EntityInterface $bpmnElement)\n {\n foreach ($mapProperties as $name => $property) {\n list($multiplicity, $type) = $property;\n $isThisProperty = (is_array($type) && ($node->namespaceURI === $type[0] || $node->namespaceURI === null)\n && $node->localName === $type[1]);\n if ($isThisProperty && $multiplicity == '1') {\n $id = $node->value;\n $ref = $this->ownerDocument->getElementInstanceById($id);\n $setter = 'set' . $name;\n method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($ref)\n : $bpmnElement->setProperty($name, $ref);\n\n return;\n }\n if ($node->name === $name && $property === BpmnDocument::IS_BOOLEAN) {\n $value = strtolower($node->value) === 'true';\n $setter = 'set' . $name;\n method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($value)\n : $bpmnElement->setProperty($name, $value);\n\n return;\n }\n }\n $setter = 'set' . $node->name;\n method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($node->value)\n : $bpmnElement->setProperty($node->name, $node->value);\n }", "title": "" }, { "docid": "18a364969b1bb1563128aa2a07e61775", "score": "0.45020425", "text": "public function getTableMap()\r\n {\r\n return $this->tableMap;\r\n }", "title": "" }, { "docid": "e20bef8908c3219e9737bc3a2c19d39e", "score": "0.4501357", "text": "function getDBMap(){\n return $this->map;\n }", "title": "" }, { "docid": "3996b8ae46d7f1a83b603dcea5940f98", "score": "0.45008892", "text": "public function testUpdateMapping()\n {\n $manager = $this->getManager('bar');\n $connection = $manager->getConnection();\n\n $this->assertEquals(-1, $connection->updateMapping(), 'Connection does not have any mapping loaded.');\n\n $connection = $this->getManager(\n 'bar',\n false,\n $this->getTestMapping()\n )->getConnection();\n $this->assertEquals(1, $connection->updateMapping(), 'Mapping should be updated');\n\n $connection->forceMapping($this->getTestLessMapping());\n $this->assertEquals(1, $connection->updateMapping(), 'Mapping should be updated');\n\n $clientMapping = $connection->getClient()->indices()->getMapping(\n [\n 'index' => $connection->getIndexName(),\n 'type' => 'product',\n ]\n );\n\n $this->assertArrayNotHasKey('category', $clientMapping[$connection->getIndexName()]['mappings']);\n }", "title": "" }, { "docid": "b389a1a8688f8d9a9f67e5442d358a42", "score": "0.44988245", "text": "public static function mapping();", "title": "" }, { "docid": "f49fa11b010d0f66b172c99e28d006ec", "score": "0.44985062", "text": "public function loadFromMap($data)\r\n {\r\n $this->uid = $data->uid;\r\n $this->userId = $data->userid;\r\n $this->email = $data->email;\r\n $this->usid = $data->usid;\r\n $this->status = $data->status;\r\n $this->firstName = $data->firstName;\r\n $this->lastName = $data->lastName;\r\n $this->otherName = $data->otherName;\r\n }", "title": "" }, { "docid": "5602229dcf2144052bcd216c2b0cb95e", "score": "0.4492947", "text": "protected function populateRelationshipJoin(\n PropertyMapping $propertyMapping\n ): void {\n if ($propertyMapping->isLateBound(true)) {\n return;\n }\n\n $ons = [];\n if ($propertyMapping->relationship->joinSql) {\n $join = $this->populateCustomJoinSql($propertyMapping, $ons);\n } elseif ($propertyMapping->relationship->isScalarJoin()) {\n $join = $this->populateScalarJoin($propertyMapping, $ons);\n } elseif ($propertyMapping->relationship->targetJoinColumn) {\n $join = $this->populateMappedJoin($propertyMapping, $ons);\n } else {\n $join = $this->populatePkPropertyJoin($propertyMapping, $ons);\n }\n\n if (!empty($join) && count($ons) > 0) {\n $join->propertyMapping = $propertyMapping;\n $this->joins[] = $join;\n foreach ($ons as $on) {\n $this->joins[] = $on;\n }\n }\n }", "title": "" }, { "docid": "04e4dd6a2138ad39a66fb6763e961c70", "score": "0.44903117", "text": "public static function attributeMap();", "title": "" }, { "docid": "e552caf31cdf7c73ddbc63e68c643684", "score": "0.4488943", "text": "function siteMap() {\n\t\n\t}", "title": "" }, { "docid": "fb3b242541eb36f648e5eb0f99ed8464", "score": "0.4487142", "text": "public function show(Campaign $campaign, Map $map)\n {\n return new MapResource($map);\n }", "title": "" }, { "docid": "439b9105559d77966e94c41f46c29b64", "score": "0.44787082", "text": "public function putAll(MapInterface $map): void\n {\n /** @var MapEntry $entrySet */\n foreach ($map->entrySet() as $entrySet) {\n $this->put($entrySet->key, $entrySet->value);\n }\n }", "title": "" }, { "docid": "2525d9e09bedf2e90bdc6060b2438bc8", "score": "0.4474432", "text": "private function create_map_for_object_ar($dbaccess)\n {\n foreach ($this->retained_objects as $obj_name) {\n $this->map_for_object_ar[$obj_name] = new MapForObject($dbaccess, $obj_name, $this->source[$obj_name],\n $this->target[$obj_name]);\n if (!$this->map_for_object_ar[$obj_name]->check_keys()) {\n $this->errors .= \"Errors for $obj_name: \" . $map_for_object_ar[$obj_name]->errors;\n $this->site_state = 'illegal';\n continue;\n }\n if ($this->map_for_object_ar[$obj_name]->need_mapP()) {\n if ($this->site_state == 'no-map')\n $this->site_state = 'need-map';\n $this->map_for_object_ar[$obj_name]->create_map_instructions();\n $this->errors .= $this->map_for_object_ar[$obj_name]->errors;\n }\n }\n }", "title": "" }, { "docid": "db9bb9c7e707d0a76994df47f1e69483", "score": "0.44718534", "text": "public function getArrivalsByMapId($mapId)\n {\n\n }", "title": "" }, { "docid": "049c4175820ea515097c0da8aa1ffa7f", "score": "0.4468529", "text": "public function map()\n {\n $post_types = $this->post_types = SettingsManager::get_instance()->get_post_types();\n\n // mapping builder\n $post_mapping_builder = $this->mapping_builder_factory->create('WP_Post');\n $term_mapping_builder = $this->mapping_builder_factory->create('WP_Term');\n $site_mapping_builder = $this->mapping_builder_factory->create('WP_Site');\n\n $properties = array();\n\n foreach ($post_types as $post_type) {\n $properties = array_merge(\n $properties,\n $post_mapping_builder->build($post_type)\n );\n }\n\n //error_log(json_encode($mapping));\n\n // create mappings for each taxonomy\n $taxonomies = get_taxonomies();\n foreach ($taxonomies as $taxonomy) {\n $properties = array_merge(\n $properties,\n $term_mapping_builder->build($taxonomy)\n );\n }\n\n // create mappings for sites if this is a multisite\n if (is_multisite()) {\n $properties = array_merge(\n $properties,\n $site_mapping_builder->build()\n );\n }\n\n $this->create_mapping($properties);\n }", "title": "" } ]
360b681b8d68521d54d0a48ef90fc54e
Run Maintenance through the WEB portal
[ { "docid": "27a49038b25a9971f275f2022504d3db", "score": "0.67448026", "text": "public function run()\n {\n // Output HTML Headers\n print '<html>';\n print ' <head>';\n print ' <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />';\n print ' <title>Maintenance</title>';\n print ' </head>';\n print '<body>';\n\n // Should the Scheduled Task script be running at all?\n if ($this->getConfig()->getSetting(\"MAINTENANCE_ENABLED\") == \"Off\") {\n print \"<h1>\" . __(\"Maintenance Disabled\") . \"</h1>\";\n print __(\"Maintenance tasks are disabled at the moment. Please enable them in the &quot;Settings&quot; dialog.\");\n\n } else {\n $quick = ($this->getSanitizer()->getCheckbox('quick') == 1);\n\n // Set defaults that don't match on purpose!\n $key = 1;\n $aKey = 2;\n $pKey = 3;\n\n if ($this->getConfig()->getSetting(\"MAINTENANCE_ENABLED\")==\"Protected\") {\n // Check that the magic parameter is set\n $key = $this->getConfig()->getSetting(\"MAINTENANCE_KEY\");\n\n // Get key from arguments\n $pKey = $this->getSanitizer()->getString('key');\n }\n\n if (($aKey == $key) || ($pKey == $key) || ($this->getConfig()->getSetting(\"MAINTENANCE_ENABLED\")==\"On\")) {\n\n // Are we full maintenance?\n if (!$quick) {\n $this->runTask('MaintenanceDailyTask');\n }\n\n // Always run quick tasks\n $this->runTask('MaintenanceRegularTask');\n $this->runTask('EmailNotificationsTask');\n }\n else {\n print __(\"Maintenance key invalid.\");\n }\n }\n\n // Output HTML Footers\n print \"\\n </body>\\n\";\n print \"</html>\";\n\n $this->getLog()->debug('Maintenance Complete');\n\n // No output\n $this->setNoOutput(true);\n }", "title": "" } ]
[ { "docid": "17f8b4aea114df830f36242870949394", "score": "0.6692293", "text": "public static function run() {\n\n $now = time();\n $lastRun = Configuration::get('SHOP_MAINTENANCE_LAST_RUN');\n\n if ($now - $lastRun > 86400) {\n // Run daily tasks.\n static::adjustThemeHeaders();\n static::optinShop();\n static::cleanAdminControllerMessages();\n\n Configuration::updateGlobalValue('SHOP_MAINTENANCE_LAST_RUN', $now);\n }\n\n }", "title": "" }, { "docid": "53c392a26820c7028b8ac496457acf0a", "score": "0.6326012", "text": "public function maintenance() {\n\n }", "title": "" }, { "docid": "9979e31067056644ea6c8edf3795379c", "score": "0.63182276", "text": "public function runAdminProcess()\n\t{\n\n\t}", "title": "" }, { "docid": "e5502d72de01be81056b34897899b656", "score": "0.62512743", "text": "public function launch_maintenance() {\n $maintenance_template = $this->get_maintenance_template();\n if ($maintenance_template) {\n $this->header_503();\n include $maintenance_template;\n die;\n }\n // Or include the default maintenance page\n\n /* Page title */\n $page_title = apply_filters('wpumaintenance_pagetitle', get_bloginfo('name'));\n\n /* Default content */\n $default_content = '<h1>' . $page_title . '</h1>';\n $default_sentence = $this->get_page_content();\n $default_content .= $default_sentence;\n\n // Use WordPress handler if available\n if (function_exists('_default_wp_die_handler')) {\n _default_wp_die_handler($default_content, $page_title, array('response' => 503));\n }\n\n $this->header_503();\n include dirname(__FILE__) . '/includes/maintenance.php';\n die;\n }", "title": "" }, { "docid": "56b092dd6a6a61d7bb480e258ff78b4f", "score": "0.6111667", "text": "public static function MaintenanceStuff() {\n\t\t// Check Bancho maintenance\n\t\tif (checkBanchoMaintenance()) {\n\t\t\tself::BanchoMaintenanceAlert();\n\t\t}\n\t\t// Game maintenance check\n\t\tif (checkGameMaintenance()) {\n\t\t\tself::GameMaintenanceAlert();\n\t\t}\n\t\t// Check website maintenance\n\t\tif (checkWebsiteMaintenance()) {\n\t\t\tself::MaintenanceAlert();\n\t\t}\n\t}", "title": "" }, { "docid": "229ea44783cc2ec674e5c70b72baacf6", "score": "0.60822064", "text": "public function doMaintenance() {\n\t\treturn $this->setTimer();\n\t}", "title": "" }, { "docid": "2fdcdd0d3e6c8af9b58d32f256b8c8b1", "score": "0.6031239", "text": "public function run()\n {\n $admin = $this->createAdminAccount();\n $admin->assign('admin');\n }", "title": "" }, { "docid": "6564e4973ebd27ef241250738ce6b52a", "score": "0.583976", "text": "public function actionIndex()\n {\n echo \"Cron started\\n\";\n ini_set('max_execution_time', 30000);\n $this->trainingDayBefore();\n $this->trainingSmsDayBefore();\n $this->deleteUsersNotActive();\n }", "title": "" }, { "docid": "ce8352ec9260f4a431adc11e6c7df571", "score": "0.5827238", "text": "public function run()\n\t{\n\t\tif(!Security::singleton()->is_admin())\n\t\t{\n\t\t\tError::do403();\n\t\t}\n\t\t$this->get_admin($this->page_details['value']);\n\t}", "title": "" }, { "docid": "12a1e242ee94e36cfebb42c264e6a4c4", "score": "0.5824017", "text": "public static function MaintenanceAlert() {\n\t\ttry {\n\t\t\t// Check if we are logged in\n\t\t\tif (!checkLoggedIn()) {\n\t\t\t\tthrow new Exception();\n\t\t\t}\n\t\t\t// Check our rank\n\t\t\tif (getUserRank($_SESSION['username']) < 3) {\n\t\t\t\tthrow new Exception();\n\t\t\t}\n\t\t\t// Mod/admin, show alert and continue\n\t\t\techo '<div class=\"alert alert-warning\" role=\"alert\"><p align=\"center\"><i class=\"fa fa-cog fa-spin\"></i>\tRipple\\'s website is in <b>maintenance mode</b>. Only mods and admins have access to the full website.</p></div>';\n\t\t}\n\t\tcatch(Exception $e) {\n\t\t\t// Normal user, show alert and die\n\t\t\techo '<div class=\"alert alert-warning\" role=\"alert\"><p align=\"center\"><i class=\"fa fa-cog fa-spin\"></i>\tRipple\\'s website is in <b>maintenance mode</b>. We are working for you, <b>please come back later.</b></p></div>';\n\t\t\tdie();\n\t\t}\n\t}", "title": "" }, { "docid": "696fdef8b826264320d3d0019d1a7be7", "score": "0.5791095", "text": "public function index()\n\t{\n\t\t$this->load->model('dashboardmodel','dm');\n\t\t$now = new DateTime();\n\t\t$now->setTimezone(new DateTimezone('Asia/Kolkata'));\n\t\t$today = $now->format('Y-m-d H:i:s');\n\t\t$today = strtotime($today);\n\t\t$services = $this->dm->get_services();\n\t\t\n\t\tforeach ($services as $key) {\n\t\t\t$expiry_date = strtotime($key->expiry_date);\n\t\t\t$timeDiff = abs($expiry_date - $today);\n\t\t\t$days_left = $timeDiff/86400;\n\t\t\techo $days_left = intval($days_left);\n\t\t\t$service_id = $key->service_id;\n\t\t\t$execute = $this->dm->update_expiry($service_id,$days_left);\n\t\t}\n\n\t\t//---------------- CRON JOB for service expiry --------------//\n\n\t\t$this->load->view('admin/dashboard');\n\t}", "title": "" }, { "docid": "9f0c4606cd8461f11eb0139a4717407e", "score": "0.5757403", "text": "public function runMaintenance($arrSetings)\n {\n $arrReturn = array(\n \"success\" => false,\n \"info_msg\" => array()\n );\n\n $this->import('Automator');\n $this->import('StyleSheets');\n $this->import(\"Database\");\n\n foreach ($arrSetings as $value)\n {\n try\n {\n switch ($value)\n {\n // Database table\n // Get all cachable tables from TL_CACHE\n case \"temp_tables\":\n foreach ($GLOBALS['TL_CACHE'] as $k => $v)\n {\n if (in_array($v, array(\"tl_ctocom_cache\", \"tl_requestcache \")))\n {\n continue;\n }\n\n $this->Database->execute(\"TRUNCATE TABLE \" . $v);\n }\n break;\n\n case \"temp_folders\":\n // Html folder\n $this->Automator->purgeHtmlFolder();\n // Scripts folder\n $this->Automator->purgeScriptsFolder();\n // Temporary folder\n $this->Automator->purgeTempFolder();\n break;\n\n // CSS files\n case \"css_create\":\n $this->StyleSheets->updateStyleSheets();\n break;\n\n case \"xml_create\":\n try\n {\n // XML files\n // HOOK: use the googlesitemap module\n if (in_array('googlesitemap', $this->Config->getActiveModules()))\n {\n $this->import('GoogleSitemap');\n $this->GoogleSitemap->generateSitemap();\n }\n else\n {\n $this->Automator->generateSitemap();\n }\n }\n catch (Exception $exc)\n {\n $arrReturn[\"info_msg\"][] = \"Error by: $value with Msg: \" . $exc->getMessage();\n }\n\n try\n {\n // HOOK: recreate news feeds\n if (in_array('news', $this->Config->getActiveModules()))\n {\n $this->import('News');\n $this->News->generateFeeds();\n }\n }\n catch (Exception $exc)\n {\n $arrReturn[\"info_msg\"][] = \"Error by: $value with Msg: \" . $exc->getMessage();\n }\n\n try\n {\n // HOOK: recreate calendar feeds\n if (in_array('calendar', $this->Config->getActiveModules()))\n {\n $this->import('Calendar');\n $this->Calendar->generateFeeds();\n }\n }\n catch (Exception $exc)\n {\n $arrReturn[\"info_msg\"][] = \"Error by: $value with Msg: \" . $exc->getMessage();\n }\n default:\n break;\n }\n }\n catch (Exception $exc)\n {\n $arrReturn[\"info_msg\"][] = \"Error by: $value with Msg: \" . $exc->getMessage();\n }\n }\n\n // HOOK: take additional maintenance\n if (isset($GLOBALS['TL_HOOKS']['syncAdditionalMaintenance']) && is_array($GLOBALS['TL_HOOKS']['syncAdditionalMaintenance']))\n {\n foreach ($GLOBALS['TL_HOOKS']['syncAdditionalMaintenance'] as $callback)\n {\n try\n {\n $this->import($callback[0]);\n $this->$callback[0]->$callback[1]($arrSetings);\n }\n catch (Exception $exc)\n {\n $arrReturn[\"info_msg\"][] = \"Error by: TL_HOOK $callback[0] | $callback[1] with Msg: \" . $exc->getMessage();\n }\n }\n }\n\n if (count($arrReturn[\"info_msg\"]) != 0)\n {\n return $arrReturn;\n }\n else\n {\n return true;\n }\n }", "title": "" }, { "docid": "13a3e44325847537346f25286ab45f7a", "score": "0.5746264", "text": "public function analysisEngine()\n {\n if ($this->auth->isAdmin()) {\n // get data from database to make statistics\n $result = exec('/usr/bin/python2.7 /home/skolepc/analysiswebapp/src/webapp/templates/mailTrends/main.py --server=e36.ehosts.com --use_ssl [email protected] --skip_labels');\n\n $data = [\n 'msg' => 'Analysis has been completed, and email trends generated',\n ];\n\n $this->app->response->headers->set('Content-Type', 'application/json');\n $this->app->response->write(json_encode($data));\n }\n }", "title": "" }, { "docid": "853c7b9c2b2139df175a7875ba937190", "score": "0.57153165", "text": "public function index() {\n $query = db::build()\n ->update(\"tasks\")\n ->set(\"state\", \"stalled\")\n ->where(\"done\", \"=\", 0)\n ->where(\"state\", \"<>\", \"stalled\")\n ->where(new Database_Expression(\"UNIX_TIMESTAMP(NOW()) - `updated` > 15\"))\n ->execute();\n $stalled_count = $query->count();\n if ($stalled_count) {\n log::warning(\"tasks\",\n t2(\"One task is stalled\",\n \"%count tasks are stalled\",\n $stalled_count),\n t('<a href=\"%url\">view</a>',\n array(\"url\" => html::mark_clean(url::site(\"admin/maintenance\")))));\n }\n\n $view = new Admin_View(\"admin.html\");\n $view->page_title = t(\"Maintenance tasks\");\n $view->content = new View(\"admin_schedule.html\");\n $view->content->task_definitions = task::get_definitions();\n $view->content->running_tasks = ORM::factory(\"task\")\n ->where(\"done\", \"=\", 0)->order_by(\"updated\", \"DESC\")->find_all();\n $view->content->finished_tasks = ORM::factory(\"task\")\n ->where(\"done\", \"=\", 1)->order_by(\"updated\", \"DESC\")->find_all();\n $view->content->schedule_definitions = scheduler::get_definitions();\n print $view;\n }", "title": "" }, { "docid": "320b174562b3e2bf2759a804c957369f", "score": "0.57124054", "text": "function index()\n\t{\n\t\tif(!$this->_permit('admin')) { $this->_denied(); return; }\n\t\t\n\t\t// Work outside the web root\n\t\tchdir('../..');\n\t\t\n\t\t// delete the old backup & create a new one\n\t\tsystem('rm -rf www_backup');\n\n\t\tsystem('mv public_html/www www_backup/');\n\t\t\n\t\tsystem('cp -r public_html/beta public_html/www');\n\t\n\t\t// delete the logs copied from beta site\n\t\tsystem('rm -f public_html/www/application/logs/*.log.php');\n\t\t\n\t\t// copy the correct www/ database config file\n\t\tsystem('cp www_backup/application/config/database.php public_html/www/application/config/database.php');\n\t\t\n\t\t// copy the original files\n\t\tsystem('cp www_backup/application/logs/* public_html/www/application/logs/');\n\t\t\n\t\t// Call upgrade on the main site\n\t\tsystem('wget http://www.thelakshyafoundation.org/upgrade/');\n\t}", "title": "" }, { "docid": "18be9b81fa0c7673fcd4492ea02fad56", "score": "0.5710423", "text": "public function execute()\n {\n /* Check if test script is active. */\n if (empty($GLOBALS['conf']['testdisable'])) {\n $GLOBALS['notification']->push(_(\"The test script is currently enabled. For security reasons, disable test scripts when you are done testing (see horde/docs/INSTALL).\"), 'horde.warning');\n }\n\n if (!empty($GLOBALS['conf']['sql']['phptype'])) {\n /* Check for outdated DB schemas. */\n $migration = new Horde_Core_Db_Migration();\n foreach ($migration->apps as $app) {\n $migrator = $migration->getMigrator($app);\n if ($migrator->getTargetVersion() > $migrator->getCurrentVersion()) {\n $GLOBALS['notification']->push(\n Horde::link(Horde::url('admin/config/index.php', false, array('app' => 'horde'))) . _(\"At least one database schema is outdated.\") . '</a>',\n 'horde.warning',\n array('content.raw', 'sticky')\n );\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "3cf5ba2302a8fb9a245443b63d3f7896", "score": "0.56896406", "text": "private static function maintenance() {\n // Checks if site is locked by request method, Regular or API.\n if (self::config()->get('maintenance/locked/' . self::$request)) {\n $client_ip_parts = explode('.', ip());\n $client_ip[] = ip();\n $client_ip[] = \"{$client_ip_parts[0]}.{$client_ip_parts[1]}.{$client_ip_parts[2]}.%\";\n $client_ip[] = \"{$client_ip_parts[0]}.{$client_ip_parts[1]}.%.%\";\n \n // Check visitor IP address if in list of exceptions.\n // If so, let visitor pass.\n if (is_array(self::config()->get('maintenance/exceptions'))) {\n foreach ($client_ip as $ip) {\n if (in_array($ip, self::config()->get('maintenance/exceptions'))) {\n return;\n }\n }\n }\n \n // Inform visitor, either in Regular way or API method.\n if (self::$request === 'api') {\n if (ob_get_length()) {\n ob_end_clean();\n }\n exit(json_encode(array(\n 'maintenance' => true,\n 'message' => 'Sidan är offline.',\n )));\n } else {\n manta::message('Site in maintenance mode.', null, KILL_CLEAN);\n }\n }\n }", "title": "" }, { "docid": "fbad36ecddcf181022db139972a4d24d", "score": "0.5676828", "text": "public function checkMaintenance()\n\t{\n\t\t// prevent looping.\n\t\tif(strpos(defset('e_SELF'), 'admin.php') !== FALSE || strpos(defset('e_SELF'), 'sitedown.php') !== FALSE)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(e107::getPref('maintainance_flag') && defset('e_PAGE') != 'secure_img_render.php')\n\t\t{\n\t\t\t// if not admin\n\t\t\tif(!ADMIN \n\t\t\t// or if not mainadmin - ie e_UC_MAINADMIN\n\t\t\t|| (e_UC_MAINADMIN == e107::getPref('maintainance_flag') && !getperms('0')))\n\t\t\t{\n\t\t\t\t// 307 Temporary Redirect\n\t\t\t\t$this->redirect(SITEURL.'sitedown.php', TRUE, 307);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "06fe032faf20404549d8728f0e741427", "score": "0.56375086", "text": "public abstract function adminExecute();", "title": "" }, { "docid": "09c78913e340960dd7d20af32a0fef03", "score": "0.56080425", "text": "public function actionIndex()\n {\n echo \"wget.exe -q -O NUL http://domain.name/webapp/tools/cron.php\";\n\n $command = Yii::$app->db->createCommand(\"select * from XHME\");\n $posts = $command->queryColumn();\n\n var_dump($posts);\n\n\n //return 'ddddddddddddd';\n }", "title": "" }, { "docid": "fa792890ea958696afafd594c0243827", "score": "0.56058526", "text": "public function webActionManagement(){\n\t\t$data['page_title'] = $this->page_title;\n\t\t$data['module_name']= \"Cpanel\";\n\t\t$data['sub_module']= \"Web Actions\";\n\t\t$data['setting'] = Setting::first();\n\t\t// action permissions\n $admin_user_id = Auth::user()->id;\n $add_action_id = 30;\n $add_permisiion = $this->PermissionHasOrNot($admin_user_id,$add_action_id );\n $data['actions']['add_permisiion']= $add_permisiion;\n\t\treturn view('setting.web_action_management',$data);\n\t}", "title": "" }, { "docid": "9073849f9a4366e0a61d961427bd3637", "score": "0.5590704", "text": "function actionMaintenance($twig){\n echo $twig->render('maintenance.html.twig', array());\n }", "title": "" }, { "docid": "57d6c0a5c7facf83b1e0f178993dec2e", "score": "0.55859125", "text": "public function administrar()\r\n\t{\r\n\t}", "title": "" }, { "docid": "049f076fc5bb3c331819e6583bc2f76e", "score": "0.5572963", "text": "public function run()\n {\n if ($this->plan->count() === 0 && config('common.site.demo')) {\n $permissions = app(Permission::class)->pluck('id', 'name');\n\n $this->createPlan($permissions, [\n 'name' => 'Basic',\n 'amount' => 7.99,\n 'position' => 1,\n 'visitors' => 1000,\n 'screens' => 1,\n ]);\n\n $this->createPlan($permissions, [\n 'name' => 'Standard',\n 'amount' => 9.99,\n 'position' => 2,\n 'recommended' => true,\n 'screens' => 2,\n 'hd' => true,\n ]);\n\n $this->createPlan($permissions, [\n 'name' => 'Pro',\n 'amount' => 11.99,\n 'position' => 3,\n 'screens' => 4,\n 'hd' => true,\n 'ultra-hd' => true,\n ]);\n }\n }", "title": "" }, { "docid": "6ab8b083dedacdac7a482f885c7052f9", "score": "0.5564503", "text": "public function maintenance() {\n foreach ($this->_plugins as $plugin) {\n try {\n if(method_exists($plugin, \"maintainance\")) {\n $plugin->maintainance();\n } else if(method_exists($plugin, \"maintenance\")) {\n $plugin->maintenance();\n }\n } catch (Exception $e) {\n Logger::error(\"Plugin \" . get_class($plugin) . \" threw Exception in maintenance\");\n }\n }\n }", "title": "" }, { "docid": "4d80f1a0774cb680f0ff4d7d0d00d598", "score": "0.5514218", "text": "public function adminscript()\r\n\t{\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "a00fd73d61105fdc60848401690402d1", "score": "0.5512396", "text": "function site_maintenance(){\n\t\t/********* If page is active that means the site for temporarily down for maintenance *******************/\n\t\t$path_parts = pathinfo($_SERVER['PHP_SELF']);\n\n\t\t//echo $path_parts[\"dirname\"] . \"\\n\";\n\t\t//echo $path_parts[\"basename\"] . \"\\n\";\n\t\t//exit();\n\t\tif($path_parts[\"basename\"]!=\"site_down.php\"){\n\t\t\t$sql=\"select status from yp_site_down\";\n\t\t\t$page_status=getSingleResult($sql);\n\t\t\tif($page_status=='Inactive'){\n\t\t\t\theader(\"Location: site_down.php\");\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t\t/********* End ***********/\n\t}", "title": "" }, { "docid": "352f18034d03fd9fe0ffca00c34be703", "score": "0.5505215", "text": "public function run()\n {\n // Default admin panel account\n $admin = new Admin;\n $admin->email = '[email protected]';\n $admin->password = Hash::make('password');\n $admin->save();\n }", "title": "" }, { "docid": "60671114d51b176cb3feeb9fdbce2d19", "score": "0.5487185", "text": "public static function initiate_production() {\n self::initiate('core/settings/settings.php', Logger::WARNING);\n self::log_info('Engine initiate_production');\n }", "title": "" }, { "docid": "855afeed7ece86d5b1bbe09cef177873", "score": "0.5477648", "text": "private function _check_for_maintenance() {\r\n if ($this->router->fetch_class() != 'login' && $this->router->fetch_class() != 'maintenance') {\r\n if (config_item('site_in_maintenance') && !$this->session->userdata('id_admin')) {\r\n redirect(base_url('maintenance', FALSE) . '?redirect=' . base64_encode(current_url()), 'refresh', 503);\r\n exit;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "511b6a76196f4c823030841384d02dc6", "score": "0.54695386", "text": "public function admin() {\r\n $rows = $this->godsql->environment->select();\r\n $template = $this->parser->template('admin/environment/template', TRUE);\r\n foreach ($rows as &$value) {\r\n $value['created'] = date($this->config->date_format, $value['created']);\r\n $value['ip'] = $this->system->inet_ntoa($value['ip']);\r\n }\r\n $this->father->render(NULL, $template->view(array('environment_items' => $rows)), 'admin/environment/admin');\r\n }", "title": "" }, { "docid": "6c7ed1e135968b6cd3ce6ecc1a99fda0", "score": "0.5457597", "text": "public function actions() {\n if ( ! empty( $_GET['warranty_update'] ) ) {\n $this->run_updates();\n\n // Update complete\n delete_option( 'warranty_needs_update' );\n\n wp_redirect( admin_url( 'index.php?page=warranties&warranty-updated=true' ) );\n exit;\n }\n\n }", "title": "" }, { "docid": "e621b27b53bf724e28af4445cbf8deda", "score": "0.544958", "text": "private function runWeb()\n {\n $router = new Router();\n $controllerNamespace = $router->getControllerNamespace();\n $controller = new $controllerNamespace();\n $action = $router->getAction();\n $controller->$action();\n }", "title": "" }, { "docid": "462e1828e9fff1834d4acb8fcb26ee51", "score": "0.54469675", "text": "function doConsumptionReports()\n{\nglobal $conn, $hhID, $themeId, $pantryID, $accessLevelRow, $hostPantryId;\n\n\tif (! $accessLevelRow['al_reports_con_browse']) {\t\n\t $errCode=8;\n\t\tdisplayErr($errCode); \t// insufficient access level to view reports\n\t\t\n\t} else \n\t\n\t consumptionReportsMenu();\t\t\n}", "title": "" }, { "docid": "e661baa07b673e133097827ce1671b85", "score": "0.54411733", "text": "public function run()\n {\n $this->stage = 2;\n try {\n // Run template as required.\n $this->core->startController();\n // Write collected logs to database.\n $this->PHPDS_user()->logActions();\n $this->db->endTransaction();\n } catch (Exception $e) {\n $this->PHPDS_errorHandler()->doHandleException($e);\n }\n }", "title": "" }, { "docid": "6636a1e94758c2e6319fcc7ed3dbca42", "score": "0.54372174", "text": "public function pagarendCronAction(){\n \n $objCore = Engine_Core_Core::getInstance();\n $realobj = $objCore->getAppSetting();\n $apikey = $realobj->pagar->ApiKey;\n $warningdays = $realobj->warningdays;\n $host = $realobj->hostLink;\n $paymentnewModal = Application_Model_PaymentNew::getinstance();\n $plandetailsmodal = Application_Model_Plans::getinstance();\n $paymentcardsmodal = Application_Model_PaymentCards::getinstance();\n $couponsModal = Application_Model_Coupons::getinstance();\n $transmodel=Application_Model_FashionTransactions::getinstance();\n $mailer = Engine_Mailer_Mailer::getInstance();\n $allplaninfo = $plandetailsmodal->getAllPlanDetails();\n $plan[1] = $allplaninfo[0];\n $plan[2] = $allplaninfo[1];\n $warningdays = $realobj->warningdays;\n $currentDate = date('Y-m-d');\n $alertdate = date('Y-m-d', strtotime($currentDate.'-7days'));\n $warntrialusers = $paymentnewModal->getAllWarnTrialUsers($alertdate);\n $warnsubscribedusers = $paymentnewModal->getAllWarnSubscribeUsers($alertdate);\n \n echo '<-------------------------------------Trial and Subscription end exceeded cron started ------------------------------------------->';\n echo '<html><table border=\"1\">';\n print '<th>userid</th><th>email</th><th>status</th><th>comments</th>';\n if($warntrialusers){\n echo \"<tbody>\"; \n foreach ($warntrialusers as $v) {\n echo \"<tr>\"; \n $data['customer_status'] = 8;\n if(!empty($v[\"user_id\"])){\n $updatedresult = $paymentnewModal->updateUserPaymentInfo($v[\"user_id\"],$data);\n print \"<td> \" . $v['user_id'] . \"</td>\" . \"<td> \" . $v['email'] . \"</td>\" . \"<td>trailuser</td>\" . \"<td>excceeded trial period , payment not yet done,changing to free user</td>\"; \n }\n echo \"</tr>\"; \n }\n echo \"</tbody>\"; \n }\n else{\n echo \"<tbody>\";\n print '<td>NO CURRENT TRIAL END EXCEEDED USERS EXITS FOR THIS DAY</td><td>-</td><td>-</td><td>-</td>'; \n echo \"</tbody>\";\n \n }\n if($warnsubscribedusers){\n echo \"<tbody>\"; \n foreach ($warnsubscribedusers as $val) {\n echo \"<tr>\"; \n $data['customer_status'] = 8;\n if(!empty($val[\"user_id\"])){\n $updatedresult = $paymentnewModal->updateUserPaymentInfo($val[\"user_id\"],$data);\n print \"<td> \" . $val[\"user_id\"] . \"</td>\" . \"<td> \" . $val[\"email\"] . \"</td>\" . \"<td>subscribed user </td>\" . \"<td>exceeded subscription end period , payment not yet done,changing to free user</td>\"; \n }\n echo \"</tr>\"; \n }\n echo \"</tbody>\"; \n }\n else{\n echo \"<tbody>\";\n print '<td>NO CURRENT SUBSCRIPTION END EXCEEDED USERS EXITS FOR THIS DAY</td><td>-</td><td>-</td><td>-</td>'; \n echo \"</tbody>\";\n } \n echo \"</table></html>\";\n echo '<-------------------------------------cron executed successfully-------------------------------------------->';\n die(); \n \n}", "title": "" }, { "docid": "27a97a9c103db5b0fc1c3028afd60d6d", "score": "0.5422568", "text": "public function run()\n {\n Bouncer::allow('admin')->to('access-admin');\n Bouncer::allow('admin')->to('access-site');\n Bouncer::allow('customer')->to('access-site');\n\n DB::table('users')->insert([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => bcrypt('al24u85jcxka'),\n ]);\n\n $user = User::where('email', '[email protected]')->first();\n\n Bouncer::assign('admin')->to($user);\n }", "title": "" }, { "docid": "1eb43019362680f8b2b7cc408c057590", "score": "0.5418528", "text": "public function run()\n {\n $this->criarAdminFull();\n $this->criarAdminVagas();\n }", "title": "" }, { "docid": "9e0d9410f159e858072a1df60845c0b9", "score": "0.5416531", "text": "public function resetActionPost() : object\n {\n $response = $this->app->response;\n\n if ($_SERVER[\"SERVER_NAME\"] === \"www.student.bth.se\") {\n $command = \"mysql -hblu-ray.student.bth.se -uarts19 -pFHvy4Gx85J6E arts19 < ../sql/content/setup.sql 2>&1\";\n } else {\n $command = \"mysql -uuser -ppass oophp < ../sql/content/setup.sql 2>&1\";\n }\n\n $output = [];\n $status = null;\n exec($command, $output, $status);\n\n return $response->redirect(\"cms/showall\");\n }", "title": "" }, { "docid": "7945d00e840e076f043034e6fc091821", "score": "0.5412809", "text": "public function run()\n {\n\t $entities = SysCrontab::all();\n\t if(!empty($entities)) {\n\t\t $entities->each(function ($item) {\n\t\t\t $item->delete();\n\t\t });\n\t }\n\t //\n //\n\n\t SysCrontab::create([\n\t\t 'name' => 'attendance_polling',\n\t\t 'command' => 'command:attendance_polling',\n\t\t 'desc' => '日完成提醒'\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'att-stc',\n\t\t 'command' => 'gen:att-stc',\n\t\t 'desc' => '生成考勤统计'\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'att-rpt',\n\t\t 'command' => 'gen:att-rpt',\n\t\t 'desc' => '生成考勤月报表'\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'visit-calendar-week',\n\t\t 'command' => 'function',\n\t\t 'desc' => '每周日00:00执行 生成下一周的拜访日记'\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'visit-calendar-day',\n\t\t 'command' => 'function',\n\t\t 'desc' => '每天00:00点执行 生成拜访日记'\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'check-store-signed',\n\t\t 'command' => 'function',\n\t\t 'desc' => '每天01:00点执行, 检查更新门店每天的签约状态 '\n\t ]);\n\n\t SysCrontab::create([\n\t\t 'name' => 'check-stock',\n\t\t 'command' => 'function',\n\t\t 'desc' => '每天01:00点执行, 自动审核库存盘点数据 '\n\t ]);\n\n }", "title": "" }, { "docid": "a1910d538092775002f92cf2d69df710", "score": "0.54098046", "text": "public function run()\n {\n // Default Webmaster Settings\n\n $settings = new WebmasterSetting();\n $settings->ar_box_status = true;\n $settings->en_box_status = true;\n $settings->seo_status = true;\n $settings->analytics_status = true;\n $settings->banners_status = true;\n $settings->inbox_status = true;\n $settings->calendar_status = true;\n $settings->settings_status = true;\n $settings->newsletter_status = true;\n $settings->members_status = false;\n $settings->orders_status = false;\n $settings->shop_status = false;\n $settings->shop_settings_status = false;\n $settings->default_currency_id = \"0\";\n $settings->languages_ar_status = \"2\";\n $settings->languages_ar_status = true;\n $settings->languages_en_status = true;\n $settings->languages_by_default = \"en\";\n\n $settings->header_menu_id = \"1\";\n $settings->footer_menu_id = \"2\";\n $settings->home_banners_section_id = \"1\";\n $settings->home_text_banners_section_id = \"2\";\n $settings->side_banners_section_id = \"3\";\n $settings->contact_page_id = \"2\";\n $settings->newsletter_contacts_group = \"1\";\n $settings->new_comments_status = true;\n $settings->home_content1_section_id = \"7\";\n $settings->home_content2_section_id = \"4\";\n $settings->home_content3_section_id = \"9\";\n $settings->home_contents_per_page = \"20\";\n $settings->latest_news_section_id = \"3\";\n $settings->links_status = false;\n $settings->register_status = false;\n $settings->permission_group = \"3\";\n $settings->api_status = false;\n $settings->api_key = rand(000000000000000, 999999999999999);\n\n $settings->mail_driver = \"smtp\";\n $settings->mail_host = \"\";\n $settings->mail_port = \"\";\n $settings->mail_username = \"\";\n $settings->mail_password = \"\";\n $settings->mail_encryption = \"\";\n $settings->mail_no_replay = \"[email protected]\";\n $settings->nocaptcha_status = false;\n $settings->nocaptcha_secret = \"\";\n $settings->nocaptcha_sitekey = \"\";\n $settings->google_tags_status = false;\n $settings->google_tags_id = \"\";\n $settings->google_analytics_code = \"\";\n\n $settings->login_facebook_status = false;\n $settings->login_facebook_client_id = \"\";\n $settings->login_facebook_client_secret = \"\";\n\n $settings->login_twitter_status = false;\n $settings->login_twitter_client_id = \"\";\n $settings->login_twitter_client_secret = \"\";\n\n $settings->login_google_status = false;\n $settings->login_google_client_id = \"\";\n $settings->login_google_client_secret = \"\";\n\n $settings->login_linkedin_status = false;\n $settings->login_linkedin_client_id = \"\";\n $settings->login_linkedin_client_secret = \"\";\n\n $settings->login_github_status = false;\n $settings->login_github_client_id = \"\";\n $settings->login_github_client_secret = \"\";\n\n $settings->login_bitbucket_status = false;\n $settings->login_bitbucket_client_id = \"\";\n $settings->login_bitbucket_client_secret = \"\";\n\n $settings->dashboard_link_status = true;\n $settings->timezone = \"UTC\";\n\n\n $settings->created_by = 1;\n\n $settings->save();\n }", "title": "" }, { "docid": "5332b6dc635f070365c0fd57d135ccba", "score": "0.5402654", "text": "public function admin_page()\n\t{\n\t\t$command = null;\n\t\t$results = null;\n\t\t$directory = null;\n\t\t$show_errors = 1;\n\t\t$show_warnings = 1;\n\n\t\tif ( 'POST' == $_SERVER['REQUEST_METHOD'] )\n\t\t{\n\t\t\t$show_errors = isset( $_POST['show-errors'] ) ? $_POST['show-errors'] : 0;\n\t\t\t$show_warnings = isset( $_POST['show-warnings'] ) ? $_POST['show-warnings'] : 0;\n\n\t\t\t$type = sanitize_key( $_POST['type'] );\n\n\t\t\t$sniff = new GO_Code_Scanner_Sniff( 'GigaOM', $type, $_POST );\n\t\t\t$results = $sniff->execute();\n\t\t\t$target = $sniff->target;\n\t\t}//end if\n\n\t\tinclude_once __DIR__ . '/templates/admin.php';\n\t}", "title": "" }, { "docid": "ecf084cd379cdc4892e70843911647eb", "score": "0.5387918", "text": "public function maintenance()\n\t{\n\t\t// Check maintenance mode\n $settings = DB::table('settings_general')->where('id', 1)->first();\n\n if ($settings->is_maintenance) {\n \n // Check if want to disable maintenance via token\n $token = request('token');\n\n if ($token && ($token == config('maintenance.token'))) {\n \t\n \t// Disable maintenance\n \tDB::table('settings_general')->where('id', 1)->update([\n\t\t\t\t\t'is_maintenance' => 0\n\t\t\t\t]);\n\n\t\t\t\t// Remove token\n\t\t\t\tConfig::write('maintenance', [\n\t\t\t\t\t'token' => null\n\t\t\t\t]); \n\n\t\t\t\treturn redirect('/');\n\n }\n\n // Site is under maintenance\n return view($this->theme.'.maintenance');\n\n }else{\n\n\t\t\t// Site is working\n\t\t\treturn redirect('/');\n\n\t\t}\n\t}", "title": "" }, { "docid": "96209c4c900468752284422b02945c28", "score": "0.5369618", "text": "public function runAction()\n {\n try {\n Mage::helper('bronto_reminder')->writeDebug(\"Admin pressed 'Run Now'...\");\n $model = $this->_initRule();\n $result = $model->sendReminderEmails();\n if ($result) {\n $total = $result['total'];\n $success = $result['success'];\n $error = $result['error'];\n Mage::getSingleton('adminhtml/session')->addSuccess(sprintf(\"Processed %d Customers (%d Error / %d Success)\", $total, $error, $success));\n } else {\n Mage::getSingleton('adminhtml/session')->addError('Reminder rule sending failed.');\n }\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n Mage::helper('bronto_reminder')->writeError($e);\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addException($e, $this->__('Reminder rule matching error.'));\n Mage::helper('bronto_reminder')->writeError($e);\n }\n $this->_redirect('*/*/edit', array('id' => $model->getId(), 'active_tab' => 'matched_customers'));\n }", "title": "" }, { "docid": "0f8a947ac4e91ea8832b8fae90ecbc96", "score": "0.53674716", "text": "public function run()\n {\n $this->createRecord(\n ucfirst(Permission::ADMIN_PERMISSION),\n Permission::ADMIN_PERMISSION,\n 'Total administrate of users and content'\n );\n\n $this->createRecord(\n 'View record',\n 'view-record',\n 'Permission to view record'\n );\n\n $this->createRecord(\n 'Create record',\n 'create-record',\n 'Permission to create record'\n );\n\n $this->createRecord(\n 'Update record',\n 'update-record',\n 'Permission to update record'\n );\n\n $this->createRecord(\n 'Delete record',\n 'delete-record',\n 'Permission to delete record'\n );\n\n $this->createRecord(\n 'Publish record',\n 'publish-record',\n 'Permission to publish record'\n );\n }", "title": "" }, { "docid": "b02346dafa391b1ab98eaa9a30611c38", "score": "0.5365159", "text": "function admin()\n{\n\n\t$postManager = new PostManager();\n\t$posts = $postManager->getPosts();\n\n\t$adminManager = new AdminManager();\n\t$reportComments = $adminManager->reportComment();\n\n\t$adminManager = new AdminManager();\n\t$comments = $adminManager->comment();\n\n\trequire('./view/admin.php');\n}", "title": "" }, { "docid": "68e24acf9c31787f4bade40922ea9918", "score": "0.5363943", "text": "public function main()\n {\n // Security check will be done in modifyconfig()\n $this->redirect(ModUtil::url('SecurityCenter', 'admin', 'modifyconfig'));\n }", "title": "" }, { "docid": "143688da92bb97cfecbfb9b6db11009c", "score": "0.5361954", "text": "function ManageSchedules()\n\t{\n\t\t$user = &GetUser();\n\t\t$jobsApi = $this->GetApi('Jobs');\n\n\t\t$settingsApi = $this->GetApi('Settings');\n\t\t$cron_check = $settingsApi->CheckCron();\n\n\t\t$cron_run1 = $settingsApi->Get('cronrun1');\n\t\t$cron_run2 = $settingsApi->Get('cronrun2');\n\n\t\tif ($cron_run1 > 0 && $cron_run2 > 0) {\n\t\t\t$schedule = $settingsApi->Get('Schedule');\n\t\t\t$send_schedule = $schedule['send'];\n\t\t\t$cron_diff = SENDSTUDIO_CRON_SEND * 60;\n\n\t\t\t$next_run = $send_schedule['lastrun'] + ($cron_diff);\n\n\t\t\t$now = time();\n\t\t\t$time_to_wait = $next_run - $now;\n\t\t\t$update_cron_time = 'true';\n\t\t} else {\n\t\t\t$time_to_wait = GetLang('Unknown');\n\t\t\t$cron_diff = 0;\n\t\t\t$next_run = 0;\n\t\t\t$update_cron_time = 'false';\n\t\t}\n\n\t\t$this->DisplayCronWarning(false);\n\n\t\tif ($update_cron_time && $cron_diff > 0) {\n\t\t\twhile ($time_to_wait < 0) {\n\t\t\t\t$time_to_wait += $cron_diff;\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['UpdateCronTime'] = $update_cron_time;\n\t\t$GLOBALS['CronTimeLeft'] = $time_to_wait;\n\t\t$GLOBALS['CronTimeDifference'] = $cron_diff;\n\n\t\t$perpage = $this->GetPerPage();\n\n\t\t$DisplayPage = $this->GetCurrentPage();\n\t\t$start = 0;\n\t\tif ($perpage != 'all') {\n\t\t\t$start = ($DisplayPage - 1) * $perpage;\n\t\t}\n\n\t\t$lists = $user->GetLists();\n\n\t\t$listids = array_keys($lists);\n\n\t\tif ($user->HasAccess('Newsletters', 'Send')) {\n\t\t\t$GLOBALS['Newsletters_SendButton'] = $this->ParseTemplate('Newsletter_Send_Button', true, false);\n\t\t}\n\n\t\t$include_unapproved = false;\n\t\tif ($user->Admin()) {\n\t\t\t$include_unapproved = true;\n\t\t\t$numJobs = $jobsApi->GetJobList('send', 'newsletter', $listids, true, 0, 0, $include_unapproved, false);\n\t\t} else {\n\t\t\t$numJobs = $jobsApi->GetJobList('send', 'newsletter', $listids, true, 0, 0, $include_unapproved, false, $user->userid);\n\t\t}\n\n\t\tif ($numJobs < 1) {\n\t\t\tif ($user->HasAccess('Newsletters', 'Send')) {\n\t\t\t\t$msg = $this->PrintSuccess('Schedule_Empty', GetLang('NoSchedules_HasAccess'));\n\t\t\t} else {\n\t\t\t\t$msg = $this->PrintSuccess('Schedule_Empty', '');\n\t\t\t}\n\t\t\tif (!isset($GLOBALS['Message'])) {\n\t\t\t\t$GLOBALS['Message'] = '';\n\t\t\t}\n\t\t\t$GLOBALS['Message'] .= $msg;\n\t\t\techo $this->ParseTemplate('Schedule_Manage_Row_Empty', true, false);\n\t\t\treturn;\n\t\t}\n\n\t\tif ($user->Admin()) {\n\t\t\t$jobs = $jobsApi->GetJobList('send', 'newsletter', $listids, false, $start, $perpage, $include_unapproved, false);\n\t\t} else {\n\t\t\t$jobs = $jobsApi->GetJobList('send', 'newsletter', $listids, false, $start, $perpage, $include_unapproved, false, $user->userid);\n\t\t}\n\t\t$this->SetupPaging($numJobs, $DisplayPage, $perpage);\n\t\t$GLOBALS['FormAction'] = 'Action=ProcessPaging';\n\t\t$paging = $this->ParseTemplate('Paging', true, false);\n\n\t\t$manage_row = '';\n\n\t\t$timenow = AdjustTime();\n\n\t\t$rid = 0;\n\n\t\tforeach ($jobs as $p => $details) {\n\t\t\t$rid++;\n\t\t\t$GLOBALS['JobID'] = (int)$details['jobid'];\n\t\t\t$GLOBALS['Status'] = $jobsApi->GetJobStatus($details['jobstatus']);\n\t\t\t$GLOBALS['JobTime'] = $this->PrintTime($details['jobtime'], true);\n\t\t\t$GLOBALS['ListName'] = htmlspecialchars($details['listname'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\t\t\t$GLOBALS['NewsletterName'] = htmlspecialchars($details['name'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\n\t\t\t$GLOBALS['NewsletterSubject'] = '';\n\t\t\tif ($details['subject'] !== null) {\n\t\t\t\t$GLOBALS['NewsletterSubject'] = ' - ' . htmlspecialchars($details['subject'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\t\t\t}\n\n\t\t\t$GLOBALS['NewsletterType'] = GetLang('Schedule_NewsletterType_Newsletter');\n\t\t\tif ($details['jobdescription'] !== null) {\n\t\t\t\t$GLOBALS['NewsletterType'] = htmlspecialchars($details['jobdescription'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\t\t\t}\n\n\t\t\t$action = sprintf(GetLang('Schedule_ViewNewsletter'), 'index.php?Page=Newsletters&Action=View&id=' . (int)$details['newsletterid']);\n\t\t\tif ($details['jobtype'] != 'send') {\n\t\t\t\t$action = '';\n\t\t\t}\n\n\t\t\t$GLOBALS['RowID'] = $rid;\n\n\t\t\t$GLOBALS['RefreshLink'] = $GLOBALS['AlreadySent'] = '';\n\n\t\t\t/**\n\t\t\t * If a job is not 'p'aused or 'c'omplete, or 'i'n progress,\n\t\t\t * show the \"countdown\" for when it will send.\n\t\t\t *\n\t\t\t * This allows addons to have their own \"status\" and still show a countdown for when it will send.\n\t\t\t */\n\t\t\tif (!in_array($details['jobstatus'], array ('p', 'c', 'i'))) {\n\t\t\t\tif ($details['jobstatus'] == 'w' && ($user->Admin() && $details['approved'] <= 0)) {\n\t\t\t\t\t$GLOBALS['TipName'] = $this->GetRandomId();\n\t\t\t\t\t$GLOBALS['ScheduleTip'] = GetLang('WaitingForApproval_Description');\n\n\t\t\t\t\t$need_approval_tip = $this->ParseTemplate('Schedule_Needs_Approval_Tip', true, false);\n\t\t\t\t\t$GLOBALS['Status'] = $need_approval_tip;\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ApproveLink', true, false);\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\n\t\t\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($next_run > 0) {\n\t\t\t\t\t$details['jobtime'] = FixBrokenGMTTime($details['jobtime']);\n\t\t\t\t\t$send_in_time_difference = $details['jobtime'] - time();\n\n\t\t\t\t\t// if we're below 0, that means we should send next time cron runs.\n\t\t\t\t\tif ($send_in_time_difference < 0) {\n\t\t\t\t\t\t$send_in_time_difference = $time_to_wait;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($next_run > 0 && $details['jobtime'] <= $next_run) {\n\t\t\t\t\t\t$send_in_time_difference = $next_run - time();\n\t\t\t\t\t}\n\n\t\t\t\t\twhile ($send_in_time_difference < 0) {\n\t\t\t\t\t\t$send_in_time_difference += $cron_diff;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($send_in_time_difference > 0) {\n\t\t\t\t\t\t$have_refreshed = (isset($_GET['R'])) ? 1 : 0;\n\n\t\t\t\t\t\t$GLOBALS['RefreshLink'] = \"<script>UpdateMyTimer('\" . $GLOBALS['JobID'] . \"_\" . $rid . \"', \" . (int)$send_in_time_difference . \", \" . $have_refreshed . \");</script>\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($details['jobstatus'] == 'w') {\n\t\t\t\t\t\t\t$GLOBALS['Status'] = GetLang('WaitingToSend');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ($details['jobstatus'] == 'w') {\n\t\t\t\t\t\t$GLOBALS['Status'] = GetLang('WaitingToSend');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($details['jobstatus'] == 'i') {\n\t\t\t\tif ($user->Admin() && $details['approved'] <= 0) {\n\t\t\t\t\t$GLOBALS['TipName'] = $this->GetRandomId();\n\t\t\t\t\t$GLOBALS['ScheduleTip'] = GetLang('WaitingForApproval_Description');\n\n\t\t\t\t\t$need_approval_tip = $this->ParseTemplate('Schedule_Needs_Approval_Tip', true, false);\n\t\t\t\t\t$GLOBALS['Status'] = $need_approval_tip;\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ApproveLink', true, false);\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\n\t\t\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$queueinfo = $jobsApi->GetJobQueueSize($details['jobid']);\n\n\t\t\t\tif (!empty($queueinfo)) {\n\t\t\t\t\t$GLOBALS['AlreadySent'] = sprintf(GetLang('AlreadySentTo'), $this->FormatNumber($queueinfo['totalsent']), $this->FormatNumber($queueinfo['sendsize']));\n\t\t\t\t}\n\t\t\t\t$GLOBALS['RefreshDisplayPage'] = $DisplayPage;\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_RefreshLink', true, false);\n\t\t\t}\n\n\t\t\t// if the job is paused, we can resume it.\n\t\t\tif ($details['jobstatus'] == 'p') {\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ResumeLink', true, false);\n\t\t\t}\n\n\t\t\t// if the job is in progress we can pause it.\n\t\t\t// or if it's in progress.\n\t\t\t// that will allow us to delay it without losing all of the info....\n\t\t\tif ($details['jobstatus'] == 'i' || $details['jobstatus'] == 'w') {\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_PauseLink', true, false);\n\t\t\t}\n\n\t\t\t// if it's not in progress, we can edit or delete the scheduled event.\n\t\t\t// but only if it has not started yet (the queueid will be > 0 for started events).\n\t\t\tif ($details['jobstatus'] != 'i') {\n\t\t\t\tif ($details['queueid'] == 0 && $details['jobstatus'] != 'c') {\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_EditLink', true, false);\n\t\t\t\t}\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\t\t\t}\n\n\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t}\n\n\t\t$template = $this->ParseTemplate('Schedule_Manage', true, false);\n\t\t$template = str_replace('%%TPL_Schedule_Manage_Row%%', $manage_row, $template);\n\n\t\t$template = str_replace('%%TPL_Paging%%', $paging, $template);\n\t\t$template = str_replace('%%TPL_Paging_Bottom%%', $GLOBALS['PagingBottom'], $template);\n\n\t\techo $template;\n\t}", "title": "" }, { "docid": "89a3ffd1bef891651e88d53a9de97d3c", "score": "0.5343877", "text": "function run( $key ){\n\t\tglobal $gl_oVars;\n\n\t\t// objects/classes\t\t\n\t\t$cMCServer = new ManagedCronsServer( $gl_oVars->cDBInterface );\n\t\t\n\t\t// try fetching registered service/user\n\t\t$oMCUserService = $cMCServer->GetServiceByKey( $key );\n\t\t\n\t\t#---------------------------------------------------\n\t\t# access to current user available??\n\t\t#---------------------------------------------------\n\t\tif( $oMCUserService )\n\t\t{\n\t\t\t$output_tasks \t= array();\n\t\t\t$aManagedCronsList\t= array();\n\t\t\t\n\t\t\t$aTaskList = $cMCServer->GetTasksByMemberId( $oMCUserService->member_id );\n\t\t\t\n\t\t\t#======================================================\n\t\t\t# filter ´registered crons, to essential information\n\t\t\t#\n\t\t\t#\n\t\t\t# \n\t\t\t#======================================================\n\t\t\tfor( $c=0; $c < sizeof($aTaskList); $c++ )\n\t\t\t{\n\t\t\t\t$bActivated = false;\n\t\t\t\tif( $aTaskList[$c]->member_id == $oMCUserService->member_id )\n\t\t\t\t\t$bActivated = true;\n\t\t\t\t\t\n\t\t\t\t$output_tasks[$c] = array( \t'managedcron_id' \t\t=> $aTaskList[$c]->managedcron_id,\n\t\t\t\t\t\t\t\t\t\t\t'name'\t\t\t\t\t=> $aTaskList[$c]->name,\n\t\t\t\t\t\t\t\t\t\t\t'required_moduleid'\t\t=> $aTaskList[$c]->required_moduleid,\n\t\t\t\t\t\t\t\t\t\t\t'required_version'\t\t=> $aTaskList[$c]->required_version,\n\t\t\t\t\t\t\t\t\t\t\t'update_rate'\t\t\t=> $aTaskList[$c]->update_rate,\n\t\t\t\t\t\t\t\t\t\t\t'uri_type'\t\t\t\t=> $aTaskList[$c]->uri_type,\n\t\t\t\t\t\t\t\t\t\t\t'uri'\t\t\t\t\t=> $aTaskList[$c]->uri,\n\t\t\t\t\t\t\t\t\t\t\t'description'\t\t\t=> $aTaskList[$c]->description,\n\t\t\t\t\t\t\t\t\t\t\t'image'\t\t\t\t\t=> $aTaskList[$c]->image,\n\t\t\t\t\t\t\t\t\t\t\t'activated'\t\t\t\t=> $bActivated,\n\t\t\t\t\t\t\t\t\t\t\t'calls'\t\t\t\t\t=> $aTaskList[$c]->calls,\n\t\t\t\t\t\t\t\t\t\t\t'calls_failed'\t\t\t=> $aTaskList[$c]->calls_failed,\n\t\t\t\t\t\t\t\t\t\t\t'last_call'\t\t\t\t=> $aTaskList[$c]->last_call,\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t}//for\n\t\t\treturn $output_tasks;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//return run('aAjs8311000Oshuzt63js76k6i74sg015233');\n\t\t\treturn new soap_fault( 'unknownkey_request', 'ManagedCrons-Server', 'Unknown key request', '' );\n\t\t}//if\n\t\t\n\t}", "title": "" }, { "docid": "11068d3ea50d7b314ba3f8ff0e68f5cf", "score": "0.5337764", "text": "function __generalCron()\n {\n\n //profiling\n $this->data['controller_profiling'][] = __function__;\n\n //flow control\n $next = true;\n\n //check authentication key\n if ($this->uri->segment(4) == $this->config->item('security_key')) {\n\n //refresh milestone\n $this->refresh->milestones('all');\n\n //refresh tasks\n $this->refresh->taskStatus('all');\n\n //refresh tasks\n $this->refresh->projectStatus('all');\n\n //refresh invoice status\n $this->refresh->basicInvoiceStatus();\n\n //send emails that are in the queue\n $this->__emailQueue();\n\n } else {\n echo 'Permission Denied';\n }\n }", "title": "" }, { "docid": "4ad76c7e6486de6fb70dcaa103bbbae3", "score": "0.5334535", "text": "public function run()\n {\n \n \t$pc = ProcessCatalog::where('name','ClaimsReviewDocuments')\n \t\t\t\t\t\t\t->first();\n \t$pc->link = \"root.seguros.revision-clasificacion\";\n \t$pc->save();\n\n $pc = ProcessCatalog::where('name','SettlementRegister')\n ->first();\n $pc->link = \"root.seguros.registrar-liquidacion\";\n $pc->save();\n \t\n }", "title": "" }, { "docid": "a4b4e1ff41579635a927fe4de64b2b27", "score": "0.5331879", "text": "public function runReport()\n {\n //clean up site info\n $site_ids = $this->getSiteIds();\n\n $start_date = $this->config['startDate'];\n $end_date = $this->config['endDate'];\n\n $student_id = array($this->config['student']);\n\n $repo = \\Fisdap\\EntityUtils::getRepository('Report');\n\n $diagnosticEndoData = $repo->getSurgTechScrubRoleData($this->diagnosticEndoIds, $student_id, $start_date, $end_date, $site_ids);\n\n $this->addTallyTable(\"Diagnostic Endoscopy\", $diagnosticEndoData);\n\n $surgicalData = $repo->getSurgTechScrubRoleData($this->surgicalIds, $student_id, $start_date, $end_date, $site_ids);\n\n $this->addTallyTable(\"Surgical Specialties\", $surgicalData);\n\n $laborData = $repo->getSurgTechScrubRoleData($this->laborDeliveryId, $student_id, $start_date, $end_date, $site_ids);\n\n $this->addTallyTable(\"Labor & Delivery\", $laborData);\n\n $generalSurgData = $repo->getSurgTechScrubRoleData($this->generalSurgeryId, $student_id, $start_date, $end_date, $site_ids);\n\n $this->addTallyTable(\"General Surgery\", $generalSurgData);\n\n $this->addSumTable(\"Surgical Specialties (all except General Surgery)\", $this->surgicalSpecialtiesTotal);\n\n $this->addSumTable(\"Grand Total\", $this->grandTotal);\n }", "title": "" }, { "docid": "5185af2180449dcf329ca907a0bd06c9", "score": "0.53305596", "text": "function run(){\r\n\t\t//make sure we know of all themes\r\n\t\tthemeLibrary::scanForThemes();\r\n\r\n\t\t//setup a default site status\r\n\t\tunset($siteStatus);\r\n\t\t$siteStatus = new siteStatus();\r\n\t\t$siteStatus->load();\r\n\t\tif($siteStatus->id == \"\") {\r\n\t\t\t$siteStatus->defaultTheme = theme::getThemeIdBySystemName(\"default\");\r\n\t\t\t$siteStatus->setup = 0;\r\n\t\t\t$siteStatus->saveNew();\r\n\t\t\t$siteStatus->load();\r\n\t\t}\r\n\r\n\t\t//setup default user groups\r\n\t\tunset($usergroup);\r\n\t\t$usergroup = new userGroup();\r\n\t\t$usergroup->name = \"Visitor\";\r\n\t\t$usergroup->visitor = 1;\r\n\t\t$usergroup->system = 0;\r\n\t\t$usergroup->saveNew();\r\n\r\n\t\tunset($usergroup);\r\n\t\t$usergroup = new userGroup();\r\n\t\t$usergroup->name = \"User\";\r\n\t\t$usergroup->default = 1;\r\n\t\t$usergroup->system = 0;\r\n\t\t$usergroup->saveNew();\r\n\r\n\t\t$usergroup->name = \"Admin\";\r\n\t\t$usergroup->system = 1;\r\n\t\t$usergroup->saveNew();\r\n\r\n\t\t//set flag that setup is complete.\r\n\t\t$siteStatus->setup = 1;\r\n\t\t$siteStatus->save();\r\n\t}", "title": "" }, { "docid": "6d35e7130df2abb4358f754e4d546139", "score": "0.5321881", "text": "public function run()\n {\n \\Illuminate\\Support\\Facades\\DB::table('teladent_admin')->delete();\n \\App\\TeladentAdmin::create(\n array(\n 'username' => 'teladent-admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('UnlockMeImAdmin'),\n )\n );\n }", "title": "" }, { "docid": "4a6b92ff4be722f328ae506b5dacde1a", "score": "0.5318757", "text": "public function run() {\n\t\tModel::unguard();\n\n\t\t$admin = $this->adminRepository->create([\n\n\t\t\t'full_name' => 'احمد بركات',\n\t\t\t'email' => '[email protected]',\n\t\t\t'password' => bcrypt('admin'),\n\n\t\t]);\n $admin->assignRole('super_admin');\n\n\t}", "title": "" }, { "docid": "1b64baec2a8845bd4863dae6297bef19", "score": "0.53138715", "text": "public function doWebWeb(){\n include IA_ROOT . '/addons/sm_shop/init.php';\n }", "title": "" }, { "docid": "a75de2094cdf94160e610d20a2f18905", "score": "0.53125143", "text": "function actionIndex()\n\t{\n\t\t// $crons = new UCrons($this->taskName,$this->lockProcess,$this->echoLog);\n\t\t\n\t\t// if($crons->start()){\n\t\t\t// $crons->log(\"Hello World\");\n\t\t// }\n\t\t\n\t\t$this->addCss('css/hk-suggest-browser.css');\n\t\t\n\t\t// $crons->end();\n\t\t//header(\"HTTP/1.1 404 Not Found\");\n\t\t$msg = $this->getFlash('error','Error page!');\n\t\t$this->assign('message',$msg);\n\t\t$this->layout = 'responsive2';\n\t\t$this->display();\n\t\t\n\t}", "title": "" }, { "docid": "b416563ba966016184f9f368693e1443", "score": "0.53123933", "text": "public function MyExecute()\r\n\t{\r\n \r\n $this->bDoNeedCleanup=FALSE; \r\n Utility::turnDebugOff();\r\n /*\r\n * 1. Prepare the mobility domain as in the documentation .other necessary steps are implenment in preTest\r\n */\r\n Step::start(\"Prepare the mobility domain as in the documentation\"); \r\n $return_code=$this->createMobilityDomain();\r\n $this->preTest();\r\n if($return_code==FALSE)\r\n {\r\n Step::error(\"fail to prepare the mobility domain as in the documentation\");\r\n return FAIL;\r\n }\r\n else\r\n {\r\n Step::ok(\"Prepare the mobility domain as in the documentation\"); \r\n } \r\n \r\n $vlan_for_vsc1=substr($this->sHomeVlanForAp1,4,4); //21##\r\n $vlan_for_vsc2=$vlan_for_vsc1+100; //22##\r\n \r\n $ssid1=\"MTM_VLAN_\".$vlan_for_vsc1;\r\n $ssid2=\"MTM_VLAN_\".$vlan_for_vsc2;\r\n \r\n $username1=\"user\".$vlan_for_vsc1;\r\n $username2=\"user\".$vlan_for_vsc2;\r\n \r\n \r\n //Create a user that will egress to that network (21##)\r\n $user1=new User($username1,$username1,\"Enabled\"); \r\n $user1->updateEgressVlan($vlan_for_vsc1); \r\n \r\n //AP2 has the homework(23##) ,not 21## ,22##\r\n //$this->turnOnAP(AP2); to simulate the roaming\r\n $this->apRadioControl($this->scenario->GetDevice('AP2'),\"Enabled\"); \r\n $this->apRadioControl($this->scenario->GetDevice('AP1'),\"Disabled\"); \r\n /*\r\n *simulate the step2:\r\n * Associate user21## to VSC1 on AP2. User is away, verify traffic is tunneled as you did previously. \r\n * \r\n */ \r\n \r\n Step::start(\"Roaming, data should be tunned\"); \r\n \r\n $this->wcbAssociateAndAuth(\"wpa2_dynamic\",$username1,$username1,$ssid1,\"PEAPVER0\"); \r\n \r\n if($this->checkContentInPage(\"/stat/l3_overview.asp\",\"Data tunnel\")==FALSE)\r\n {\r\n Step::error(\"Roaming, data should be tunned,but not tunned\");\r\n return FAIL;\r\n }\r\n else\r\n {\r\n Step::ok(\"Roaming, data tunned\"); \r\n }\r\n /*\r\n * 5,Associate the new user user22## . User is away, verify traffic is tunneled.\r\n * \r\n */\r\n Step::start(\"User is away, verify traffic is tunneled\"); \r\n $this->wcbAssociateAndAuth(\"wpa2_dynamic\",$username1,$username1,$ssid2,\"PEAPVER0\"); \r\n \r\n if($this->checkContentInPage(\"/stat/l3_overview.asp\",\"Data tunnel\")==FALSE)\r\n {\r\n Step::error(\"Roaming, data should be tunned,but not tunned\");\r\n return FAIL;\r\n }\r\n else\r\n {\r\n Step::ok(\"Roaming, data tunned\"); \r\n }\r\n \r\n return PASS;\r\n \r\n\t}", "title": "" }, { "docid": "4ae769bf8f8e919a7e75afb7164b9520", "score": "0.5311734", "text": "public function deploy()\n {\n $this->compressStagingSite();\n\n $this->output->writeln('');\n $this->output->writeln('Deployment finished to <comment>'. $this->project->getProductionUrl() .'</comment>');\n if (!$this->no && ($this->yes || $this->dialog->askConfirmation(\n $this->output,\n '<question>Do you want to open your webbrowser now?</question> ',\n true\n )))\n {\n $process = new Process((defined('PHP_WINDOWS_VERSION_BUILD') ? 'start' : 'open') . ' ' . $this->project->getProductionUrl());\n $process->run();\n }\n }", "title": "" }, { "docid": "b6d4da1f70d2133bd74319908c38adda", "score": "0.5307041", "text": "public function cron_exec() {\n\n\t\t$jetpack = Jetpack::init();\n\n\t\t/*\n\t\t * This should run daily. Figuring in for variances in\n\t\t * WP_CRON, don't let it run more than every 23 hours at most.\n\t\t *\n\t\t * i.e. if it ran less than 23 hours ago, fail out.\n\t\t */\n\t\t$last = (int) Jetpack_Options::get_option( 'last_heartbeat' );\n\t\tif ( $last && ( $last + DAY_IN_SECONDS - HOUR_IN_SECONDS > time() ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * Check for an identity crisis\n\t\t *\n\t\t * If one exists:\n\t\t * - Bump stat for ID crisis\n\t\t * - Email site admin about potential ID crisis\n\t\t */\n\n\t\t// Coming Soon!\n\n\t\tforeach ( self::generate_stats_array( 'v2-' ) as $key => $value ) {\n\t\t\t$jetpack->stat( $key, $value );\n\t\t}\n\n\t\tJetpack_Options::update_option( 'last_heartbeat', time() );\n\n\t\t$jetpack->do_stats( 'server_side' );\n\n\t\t/**\n\t\t * Fires when we synchronize all registered options on heartbeat.\n\t\t *\n\t\t * @since 3.3.0\n\t\t */\n\t\tdo_action( 'jetpack_heartbeat' );\n\t}", "title": "" }, { "docid": "b37ddfd560a64004d32dfddc98082595", "score": "0.5305953", "text": "public function run()\n {\n $providerPanel = ProviderPanel::create([\n 'name' => 'LOLLIPOP SMM PANEL',\n 'website' => 'https://lollipop-smm.com/',\n 'get_profile_url' => 'https://lollipop-smm.com/api/profile',\n 'get_services_url' => 'https://lollipop-smm.com/api/services',\n 'check_status_url' => 'https://lollipop-smm.com/api/order',\n 'create_order_url' => 'https://lollipop-smm.com/api/status',\n 'is_active' => true\n ]);\n\n SMMFactory::make($providerPanel)->syncServices();\n }", "title": "" }, { "docid": "3f498c920aefdda94da85f86ef826a9b", "score": "0.53020227", "text": "public function run()\n {\n \t$gateway_free_plan = new Plan([\n \t\t'name' => 'free',\n 'price_cents' => 0, \n 'period_days' => 30, \n 'trial_days' => 30, \n \t\t]);\n\n \t$gateway_pro_plan = new Plan([\n \t\t'name' => 'pro', \n 'price_cents' => 2000, \n 'period_days' => 30, \n 'trial_days' => 30, \n \t\t]);\n\n \t$gateway_ultra_plan = new Plan([\n \t\t'name' => 'ultra', \n 'price_cents' => 3000, \n 'period_days' => 30, \n 'trial_days' => 30, \n \t\t]);\n\n\n \t$gateway_free_plan->save();\n \t$gateway_pro_plan->save();\n \t$gateway_ultra_plan->save();\n }", "title": "" }, { "docid": "da761177c855cfa0720a39044452cb44", "score": "0.52955574", "text": "public function run()\n {\n //\n DB::table('app_admin_rs')->insert([\n 'email_admin' => '[email protected]',\n 'password' => Hash::make('rsud4dmin!!!!?papua!?@'),\n 'is_active' => true,\n 'level' => 'ADMIN',\n 'username' => 'admin',\n 'nama' => 'admin',\n ]);\n }", "title": "" }, { "docid": "e2f665e361f5324bfb7f9bea0ec1f08f", "score": "0.5288814", "text": "public function run()\n {\n $site = new Site;\n $site->name = '后盾人';\n $site->description = '后盾人专注互联网开发';\n $site->save();\n $site->user()->attach(User::first(), ['role' => 'admin']);\n }", "title": "" }, { "docid": "547c09c44ca5c0efc5e9d4cee4afdaf5", "score": "0.528876", "text": "public function run()\n {\n // Create Super admin\n User::factory()->create([\n 'name' => 'SuperAdmin',\n 'email' => '[email protected]',\n ]);\n // Create admin\n $admin = User::factory()->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n ]);\n $admin_role = Role::where(['name' => \"Admin\"])->first();\n $admin->assignRole($admin_role->name);\n\n // Create Sub admin\n $sub_admin = User::factory()->create([\n 'name' => 'SubAdmin',\n 'email' => '[email protected]',\n ]);\n $sub_role = Role::where(['name' => \"SubAdmin\"])->first();\n $sub_admin->assignRole($sub_role->name);\n }", "title": "" }, { "docid": "cfe8d8a906d644a6e0642daace25c2cf", "score": "0.5287144", "text": "public function action() {\n\t\t$information = array();\n\t\tif ( ! class_exists( '\\ITSEC_Core' ) || ! class_exists( '\\ITSEC_Modules' ) ) {\n\t\t\t$information['error'] = 'NO_ITHEME';\n\t\t\tMainWP_Helper::write( $information );\n\t\t}\n\n\t /** @global string $mainwp_itsec_modules_path MainWP itsec modules path. */\n\t\tglobal $mainwp_itsec_modules_path;\n\n\t\t$mainwp_itsec_modules_path = \\ITSEC_Core::get_core_dir() . '/modules/';\n\n\t\tif ( isset( $_POST['mwp_action'] ) ) {\n\t\t\t$mwp_action = ! empty( $_POST['mwp_action'] ) ? sanitize_text_field( wp_unslash( $_POST['mwp_action'] ) ) : '';\n\t\t\tswitch ( $mwp_action ) {\n\t\t\t\tcase 'set_showhide':\n\t\t\t\t\t$information = $this->set_showhide();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'save_settings':\n\t\t\t\t\t$information = $this->save_settings();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'whitelist_release':\n\t\t\t\t\t$information = $this->whitelist_release();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'backup_db':\n\t\t\t\t\t$information = $this->backup_db();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'admin_user':\n\t\t\t\t\t$information = $this->admin_user();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'database_prefix':\n\t\t\t\t\t$information = $this->change_database_prefix();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'reset_api_key':\n\t\t\t\t\t$information = $this->reset_api_key();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'malware_scan':\n\t\t\t\t\t$information = $this->malware_scan();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'clear_all_logs':\n\t\t\t\t\t$information = $this->purge_logs();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'file_change':\n\t\t\t\t\t$information = $this->file_change();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'release_lockout':\n\t\t\t\t\t$information = $this->release_lockout();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'module_status':\n\t\t\t\t\t$information = $this->update_module_status();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'wordpress_salts':\n\t\t\t\t\t$information = $this->wordpress_salts();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'file_permissions':\n\t\t\t\t\t$information = $this->file_permissions();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'reload_backup_exclude':\n\t\t\t\t\t$information = $this->reload_backup_exclude();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'security_site':\n\t\t\t\t\t$information = $this->security_site();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'activate_network_brute_force':\n\t\t\t\t\t$information = $this->activate_network_brute_force();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tMainWP_Helper::write( $information );\n\t}", "title": "" }, { "docid": "a0a31a0172c997ea9cd0387cb52601c4", "score": "0.5286929", "text": "public function execute()\n {\n $params = $this->getRequest()->getParams();\n $website = $this->getRequest()->getParam('website');\n if (isset($params['store'])) {\n $storeId = $params['store'];\n } else {\n $storeId = 1;\n }\n $logsArray['job_code'] = 'testconnection';\n $logsArray['status'] = 'started';\n $logsArray['messages'] = 'Test connection initiated';\n $logsArray['created_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['run_mode'] = 'Manual';\n $logsArray['auto_log'] = 'Complete';\n $logsArray['store_id'] = $storeId;\n $logsArray['website_id'] = $website;\n $logId = $this->logsHelper->manualLogs($logsArray);\n\n $username = trim($params['username']);\n $password = trim($params['password']);\n $endpoint = trim($params['endpoint']);\n $url = trim($params['url']);\n\n if ($username != \"\" && $password != '') {\n $scopeType = 'websites';\n $scopeId = $website;\n if ($website == '') {\n $scopeType = 'default';\n $scopeId = 0;\n }\n\n $this->api->setWebsiteId($website);\n $response = $this->api->sendRequest('GET', 'settings');\n\n if (isset($response['status']) && $response['status'] == 200\n && isset($response['body']['replyCode']) && $response['body']['replyCode'] == 0\n && isset($response['body']['replyText']) && $response['body']['replyText'] == \"OK\"\n ) {\n try {\n //save information in respected configuration.\n $this->config->saveConfig(\n 'emartech/emarsys_setting/enable',\n 1,\n $scopeType,\n $scopeId\n );\n\n $logsArray['id'] = $logId;\n $logsArray['emarsys_info'] = 'Test connection';\n $logsArray['description'] = \"Inserted status enbale\";\n $logsArray['action'] = 'Synced to Magento';\n $logsArray['message_type'] = 'Success';\n $logsArray['log_action'] = 'sync';\n $this->logsHelper->manualLogs($logsArray);\n\n //save api_endpoint information in respected configuration.\n $this->config->saveConfig(\n 'emartech/emarsys_setting/emarsys_api_endpoint',\n $endpoint,\n $scopeType,\n $scopeId\n );\n\n $logsArray['id'] = $logId;\n $logsArray['emarsys_info'] = 'Test connection';\n $logsArray['description'] = \"Inserted endpoint.\";\n $logsArray['action'] = 'Synced to Magento';\n $logsArray['message_type'] = 'Success';\n $logsArray['log_action'] = 'sync';\n $this->logsHelper->manualLogs($logsArray);\n\n if ($endpoint == 'custom') {\n //save custom_url information in respected configuration.\n $this->config->saveConfig(\n 'emartech/emarsys_setting/emarsys_custom_url',\n $url,\n $scopeType,\n $scopeId\n );\n\n $logsArray['id'] = $logId;\n $logsArray['emarsys_info'] = 'Test connection';\n $logsArray['description'] = \"Inserted custom url\";\n $logsArray['action'] = 'Synced to Magento';\n $logsArray['message_type'] = 'Success';\n $logsArray['log_action'] = 'sync';\n $this->logsHelper->manualLogs($logsArray);\n }\n\n //save api username information in respected configuration.\n $this->config->saveConfig(\n 'emartech/emarsys_setting/emarsys_api_username',\n $username,\n $scopeType,\n $scopeId\n );\n\n $logsArray['id'] = $logId;\n $logsArray['emarsys_info'] = 'Test connection';\n $logsArray['description'] = \"Inserted username\";\n $logsArray['action'] = 'Synced to Magento';\n $logsArray['message_type'] = 'Success';\n $logsArray['log_action'] = 'sync';\n $this->logsHelper->manualLogs($logsArray);\n\n //save api password information in respected configuration.\n $this->config->saveConfig(\n 'emartech/emarsys_setting/emarsys_api_password',\n $password,\n $scopeType,\n $scopeId\n );\n\n $logsArray['id'] = $logId;\n $logsArray['emarsys_info'] = 'Test connection';\n $logsArray['description'] = \"Inserted Password\";\n $logsArray['action'] = 'Synced to Magento';\n $logsArray['message_type'] = 'Success';\n $logsArray['log_action'] = 'sync';\n $this->logsHelper->manualLogs($logsArray);\n $this->messageManager->addSuccessMessage(__('Test connection is successful.'));\n\n $logsArray['id'] = $logId;\n $logsArray['executed_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['finished_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['status'] = 'success';\n $logsArray['messages'] = 'Test connection Completed';\n $this->logsHelper->manualLogs($logsArray);\n } catch (\\Exception $e) {\n $this->messageManager->addErrorMessage($e->getMessage());\n $this->messageManager->addErrorMessage('Test connection is failed.');\n $logsArray['id'] = $logId;\n $logsArray['executed_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['finished_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['status'] = 'error';\n $logsArray['messages'] = 'Test connection failed';\n $this->logsHelper->manualLogs($logsArray);\n }\n } else {\n //test api connecton failed.\n $this->messageManager->addErrorMessage(\n __(\n 'Connection failed. Please check your credentials and try again.'\n )\n );\n $logsArray['id'] = $logId;\n $logsArray['executed_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['finished_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['status'] = 'error';\n $logsArray['messages'] = 'Connection failed. Please check your credentials and try again.'\n . ' | ' . \\Zend_Json::encode($response);\n $this->logsHelper->manualLogs($logsArray);\n }\n } else {\n //no api credentials found.\n $this->messageManager->addErrorMessage(__('Please enter the api credentials'));\n $logsArray['id'] = $logId;\n $logsArray['executed_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['finished_at'] = $this->date->date('Y-m-d H:i:s', time());\n $logsArray['status'] = 'error';\n $logsArray['messages'] = 'Connection failed. Please enter the api credentials.';\n $this->logsHelper->manualLogs($logsArray);\n }\n }", "title": "" }, { "docid": "4f76c8ed399fa2876b4b05f3e7a93e2e", "score": "0.52830786", "text": "public function run()\n {\n # 生成开发用户\n $this->makeDevelopUser();\n }", "title": "" }, { "docid": "a796abfaf824500adaad8cec92d93ff3", "score": "0.5281945", "text": "public function run()\n {\n //\n $administrator = new \\App\\User;\n $administrator->username = \"administrator\";\n $administrator->name = \"Site Administrator\";\n $administrator->email = \"[email protected]\";\n $administrator->role_id = 1;\n $administrator->password = \\Hash::make(\"erporate\");\n $administrator->avatar = \"saat-ini-tidak-ada-file.png\";\n $administrator->status = \"ACTIVE\";\n $administrator->save();\n $this->command->info(\"User Admin berhasil diinsert\");\n }", "title": "" }, { "docid": "256f0e92ce7244f9172417d3649e53f7", "score": "0.52787644", "text": "public function run()\n {\n $status=new Status;\n $status->name='PHP';\n $status->save();\n\n $status1=new Status;\n $status1->name='Python';\n $status1->save();\n\n $status2=new Status;\n $status2->name='Linux';\n $status2->save();\n\n $status3=new Status;\n $status3->name='JavaScript';\n $status3->save();\n }", "title": "" }, { "docid": "f3213b3693ea306b6a137d9ea3a706a4", "score": "0.52778363", "text": "public function run()\n {\n //\n \t$settings=new Sitesetting;\n\n \t$settings->save();\n }", "title": "" }, { "docid": "4b0017e13b22d5666079681c948bffc7", "score": "0.52770144", "text": "public function run()\n {\n Permission::create([\"name\" => \"views_full\"]);\n\n $role = Role::create([\"name\" => \"administrator\"]);\n $role->givePermissionTo(\"views_full\");\n $role = Role::create([\"name\" => \"staff\"]);\n\n $admin = User::create([\n \"name\" => \"Administrator\",\n \"email\" => \"[email protected]\",\n \"password\" => bcrypt(\"123456\")\n ]);\n $admin->assignRole(\"administrator\");\n }", "title": "" }, { "docid": "cdcb5eb810d8106abdfb1ffe6db04775", "score": "0.5273025", "text": "public function triggerUpdate()\n {\n // Trigger Update of Live Data\n $url = $this->domain . '/FixedPages/HoManEnergyRedesign.aspx/UpdateLiveData';\n $this->json($url, '{}');\n $this->lastUpdate = new \\DateTime();\n }", "title": "" }, { "docid": "f5a4bbc2c43bd385c0ca63f883568f34", "score": "0.52546644", "text": "public function run()\n {\n $superAdminRole = Role::create(['name' => 'Super Admin']);\n Role::create(['name' => 'Reporter'])->givePermissionTo(Permission::create(['name' => 'export employees']));\n Role::create(['name' => 'Accountant'])->givePermissionTo(Permission::create(['name' => 'view payments']));\n\n Permission::create(['name' => 'edit employees']);\n\n $superAdminUser = User::where('email', env('SUPER_ADMIN_USER', '[email protected]'))->first();\n if (!is_null($superAdminUser)) $superAdminUser->assignRole($superAdminRole);\n }", "title": "" }, { "docid": "cfa021cd77618be77427c0e5ba9e5d92", "score": "0.52506065", "text": "public function run()\n {\n $website_settings = [\n [\n 'config' => 'head office',\n 'type' => 'address',\n 'value' => 'Jl. Danau Indah Raya No.5 Blok C2 RT.12/RW.13, Sunter Jaya, Tj. Priok, Kota Jkt Utara, Daerah Khusus Ibukota Jakarta 14360'\n ],\n [\n 'config' => 'mobile phone',\n 'type' => 'phone',\n 'value' => '+6221 220 650 68'\n ],\n [\n 'config' => 'phone',\n 'type' => 'phone',\n 'value' => '+6221 220 650 68'\n ],\n [\n 'config' => 'whatsapp url',\n 'type' => 'url',\n 'value' => 'www.web.whatsapp.com'\n ],\n [\n 'config' => 'helpdesk email',\n 'type' => 'email',\n 'value' => '[email protected]'\n ],\n [\n 'config' => 'marketplace blibli',\n 'type' => 'url',\n 'value' => 'www.blibli.com'\n ],\n [\n 'config' => 'marketplace lazada',\n 'type' => 'url',\n 'value' => 'www.lazada.com'\n ]\n ];\n\n foreach ($website_settings as $setting) {\n WebSetting::create($setting);\n }\n }", "title": "" }, { "docid": "30014d25a79b3827e397641c5d94bdda", "score": "0.5250391", "text": "public function testUpdateScheduledPlan()\n {\n }", "title": "" }, { "docid": "d60b3f3f913dc25e73a4d65ef5f5bc94", "score": "0.524908", "text": "public function runMaintenance($arrSettings)\n {\n $arrData = array(\n array(\n \"name\" => \"options\",\n \"value\" => $arrSettings,\n )\n );\n\n return $this->run(\"SYNCCTO_MAINTENANCE\", $arrData);\n }", "title": "" }, { "docid": "6784e39ce9f3df31127378b1d4c70d63", "score": "0.52480245", "text": "public function process()\n\t{\n\t\t$this->status = 1;\n\t\t$errorsSecurity = \\App\\Utils\\ConfReport::getErrors('security', true);\n\t\tunset($errorsSecurity['HTTPS']);\n\t\t$errorsText = '<br><pre>';\n\t\tif (!empty($errorsSecurity)) {\n\t\t\t$errorsText .= '<strong>' . \\App\\Language::translate('LBL_SECURITY', 'Settings:SystemWarnings') . ':</strong>';\n\t\t\tforeach ($errorsSecurity as $key => $value) {\n\t\t\t\t$errorsText .= \\PHP_EOL . \" {$key} = \" . \\yii\\helpers\\VarDumper::dumpAsString($value['val']) .\n\t\t\t\t\t' (' . \\App\\Language::translate('LBL_RECOMMENDED_VALUE', 'Settings:SystemWarnings') .\n\t\t\t\t\t\": '\" . ($value['recommended'] ?? '') . \"')\";\n\t\t\t}\n\t\t\t$errorsText .= \\PHP_EOL . \\PHP_EOL;\n\t\t\t$this->status = 0;\n\t\t}\n\t\t$errorsWritableFilesAndFolders = \\App\\Utils\\ConfReport::getErrors('writableFilesAndFolders');\n\t\tif (!empty($errorsWritableFilesAndFolders)) {\n\t\t\t$errorsText .= '<strong>' . \\App\\Language::translate('LBL_NO_FILE_WRITE_RIGHTS', 'Settings:SystemWarnings') . ':</strong>';\n\t\t\tforeach ($errorsWritableFilesAndFolders as $key => $value) {\n\t\t\t\t$errorsText .= \\PHP_EOL . \" {$key}\";\n\t\t\t}\n\t\t\t$this->status = 0;\n\t\t}\n\t\t$errorsText .= \\PHP_EOL . \\PHP_EOL;\n\t\tif (!$this->status) {\n\t\t\t$errorsText .= '</pre>';\n\t\t\t$this->link = 'https://yetiforce.com/en/knowledge-base/documentation/implementer-documentation/item/web-server-requirements';\n\t\t\t$this->linkTitle = \\App\\Language::translate('LBL_CONFIG_REPORT_LINK', 'Settings:SystemWarnings');\n\t\t\t$this->description = \\App\\Language::translateArgs(\n\t\t\t\t'LBL_SECURITY_CONF_DESC',\n\t\t\t\t'Settings:SystemWarnings',\n\t\t\t\t'<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https://yetiforce.com/en/knowledge-base/documentation/implementer-documentation/item/web-server-requirement\"><u>' . \\App\\Language::translate('LBL_CONFIG_DOC_URL_LABEL', 'Settings:SystemWarnings') . '</u></a>',\n\t\t\t\t$errorsText\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "a779ad4279a86d518f5ac75ba06d9ae0", "score": "0.5247567", "text": "public function liberteautopublishAction()\n\t{ \n\t\t$cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('liberteautopublish');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('liberteautopublish', 'locked'); \n\t\t\t$article_obj=new Ep_Ao_Article();\n\t\t\t$articles=$article_obj->checkPublishArticle(); \n\t\t\tprint_r($articles);//exit;\n\t\t\tfor($a=0;$a<count($articles);$a++)\n\t\t\t{\n\t\t\t\t$part_obj=new Ep_Ao_Participation();\n\t\t\t\t$participate_obj=new Ep_Participation_Participation();\n\t\t\t\t$royalty_obj=new Ep_Royalty_Royalties();\n\t\t\t\t\t\n\t\t\t\t\t$paricipationdetails=$participate_obj->getParticipateDetails($articles[$a]['partid']);\n\t\t\t\t\tif($royalty_obj->checkRoyaltyExists($articles[$a]['id'])=='NO')\n\t\t\t\t\t{ \n\t\t\t\t\t\t$royalty_obj->participate_id=$paricipationdetails[0]['participateId'];\n\t\t\t\t\t\t$royalty_obj->article_id=$paricipationdetails[0]['article_id'];\n\t\t\t\t\t\t$royalty_obj->user_id=$paricipationdetails[0]['user_id'];\n\t\t\t\t\t\t$royalty_obj->price=$paricipationdetails[0]['price_user'];\n\t\t\t\t\t\t$royalty_obj->insert();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Client name\n\t\t\t\t\t\t$client_obj=new Ep_User_Client();\n\t\t\t\t\t\t$clientdetails=$client_obj->getClientFulldetails($paricipationdetails[0]['clientId']);\n\t\t\t\t\t\tif($clientdetails[0]['company_name']!=\"\")\n\t\t\t\t\t\t\t$cname=$clientdetails[0]['company_name'];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$cname=$clientdetails[0]['email'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Writer info\t\t\t\t\t\n\t\t\t\t\t\t$user_obj=new Ep_User_UserPlus();\n\t\t\t\t\t\t$writerdetails=$user_obj->getUserPlus($paricipationdetails[0]['user_id']);\n\t\t\t\t\t\t//print_r($writerdetails);\n\t\t\t\t\t\t$body='<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n\t\t\t\t\t\t\t\t<tr><td><b>Article title :</b></td><td> '.$paricipationdetails[0]['title'].'</td></tr>\n\t\t\t\t\t\t\t\t<tr><td><b>AO title :</b> </td><td>'.$paricipationdetails[0]['deliveryTitle'].'</td></tr>\n\t\t\t\t\t\t\t\t<tr><td><b>Client :</b> </td><td>'.$cname.'</td></tr>\n\t\t\t\t\t\t\t\t<tr><td><b>Writer :</b> </td><td>'.$writerdetails[0]['first_name'].'&nbsp;'.$writerdetails[0]['last_name'].'</td></tr>\n\t\t\t\t\t\t\t\t<tr><td><b>Writer email :</b> </td><td>'.$writerdetails[0]['email'].'</td></tr>\n\t\t\t\t\t\t\t\t<tr><td><b>Royalties</b> :</b> </td><td>'.$paricipationdetails[0]['price_user'].'&euro; </td></tr>\n\t\t\t\t\t\t\t</table>\t';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$mail = new Zend_Mail();\n\t\t\t\t\t\t$mail->addHeader('Reply-To','[email protected]');\n\t\t\t\t\t\t$mail->setBodyHtml($body)\n\t\t\t\t\t\t\t ->setFrom('[email protected]','Support Edit-place')\n\t\t\t\t\t\t\t ->addTo('[email protected]')\n\t\t\t\t\t\t\t //->addCc('[email protected]') \n\t\t\t\t\t\t\t->setSubject('Royalty added through cron test site');\n\t\t\t\t\t\tif($mail->send())\n\t\t\t\t\t\t\treturn true; \n\t\t\t\t\t\t\t//exit;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Update Participation\n\t\t\t\t\t$where_art=\" id='\".$articles[$a]['partid'].\"'\";\n\t\t\t\t\t$arr_art=array();\n\t\t\t\t\t$arr_art['status']='published';\n\t\t\t\t\t$arr_art['current_stage']='client';\n\t\t\t\t\t$part_obj->updateparticipation($arr_art,$where_art); \n\t\t\t\t\t\n\t\t\t\t\t$invoiceid= $articles[$a]['id'];\n\t\t\t\t\t$invoicedir='/home/sites/site5/web/FO/invoice/client/'.$articles[$a]['user_id'].'/';\n\t\t\t\t\t\n\t\t\t\t\t//echo $invoicedir.$invoiceid.'.pdf'; \n\t\t\t\t\tif(!file_exists($invoicedir.$invoiceid.'.pdf'))\n\t\t\t\t\t{ //echo \"vbnvbnvbv\";//exit;\n\t\t\t\t\t\t$pay_obj = new Ep_Ao_PaymentArticle();\n\t\t\t\t\t\t$art_obj = new Ep_Ao_Article();\n\t\t\t\t\t\t$country_array=$this->_arrayDb->loadArrayv2(\"countryList\", $this->_lang);\n\t\n\t\t\t\t\t\t//Payment details\n\t\t\t\t\t\t$payment=$pay_obj->getpaymentdetails($invoiceid);\n\t\t\t\t\t\n\t\t\t\t\t\t//Dates\n\t\t\t\t\t\tsetlocale(LC_TIME, 'fr_FR');\n\t\t\t\t\t\t$date_invoice_full= strftime(\"%e %B %Y\",strtotime($payment[0]['delivery_date']));\n\t\t\t\t\t\t$date_invocie = date(\"d/m/Y\",strtotime($payment[0]['delivery_date']));\n\t\t\t\t\t\t$date_invoice_ep=date(\"Y/m\",strtotime($payment[0]['delivery_date']));\n\t\n\t\t\t\t\t //Address\n\t\t\t\t\t\t$profileinfo=$pay_obj->getClientdetails($articles[$a]['user_id']);\n\t\t\t\t\t\t$address=$profileinfo[0]['company_name'].'<br>';\n\t\t\t\t\t\t$address.=$profileinfo[0]['address'].'<br>';\n\t\t\t\t\t\t$address.=$profileinfo[0]['zipcode'].' '.$profileinfo[0]['city'].' '.$country_array[$profileinfo[0]['country']].'<br>';\n\t\n\t\t\t\t\t\t//Invoice details\n\t\t\t\t\t\t$invoice_details_pdf='\n\t\t\t\t\t\t\t<div align=\"center\" style=\"font-size:16pt;\"><b>Appel d\\'offres : '.$payment[0]['title'].'</b></div>\n\t\t\t\t\t\t\t\t<table class=\"change_order_items\">\n\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>DESIGNATION</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>MONTANT</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>MONTANT PAY&Eacute;</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>';\n\t\n\t\t\t\t\t\t\t$total=0;\n\t\t\t\t\t\t\t$total=number_format($payment[0]['amount'],2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$invoice_details_pdf.='<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>'.$payment[0]['title'].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"change_order_total_col\">'.number_format($total,2,',','').'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"change_order_total_col\">'.number_format($total,2,',','').'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>';\n\t\n\t\t\t\t\t\t\t$invoice_details_pdf.='<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"border-top:1pt solid black;text-align:right;margin-right:10px;font-size: 12pt;\" colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal de la prestation HT\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"border-top:1pt solid black;font-size: 12pt;\" class=\"change_order_total_col\" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'.number_format($total,1,',','').'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t</table>';\n\t\n\t\t\t\t\t\t//Pay info number\n\t\t\t\t\t\t$payinfo_number=\"\";\n\t\n\t\t\t\t\t\tif($payment[0]['amount']!=\"\" && $payment[0]['client_type']!=\"personal\")\t\t\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t //Tax details\n\t\t\t\t\t\t $tax=(($total*$payment[0]['tax'])/100);\n\t\t\t\t\t\t $tax_details_pdf='<table class=\"change_order_items\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>TVA</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>taux : '.str_replace('.', ',',$payment[0]['tax']).'%</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"change_order_total_col\" style=\"border-top:1pt solid black;text-align:right;font-size: 12pt;\">'.number_format($tax,2,',','').' &#x80; </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$tax=0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t/**Final Total**/\n\t\t\t\t\t\t$final_invoice_amount='<table class=\"change_order_items\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"width:82%;font-size:12pt;font-weight:bold;background-color:#BDBDBD;border-top:1pt solid black;border-right:1pt solid black;text-align:right;padding:0.5em 1.5em 0.5em 0.5em;\">Montant TTC</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"width:18%;font-weight:bold;border-top:1pt solid black;padding:0.5em;padding-right:10pt;font-size: 12pt;text-align: right\" >'.number_format(($total+$tax),2,',','').' &#x80;</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>';\n\t\t\t\t\t\tif(!is_dir($invoicedir))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t mkdir($invoicedir,0777);\n\t\t\t\t\t\t chmod($invoicedir,0777);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinclude('/home/sites/site5/web/FO/dompdf/dompdf_config.inc.php');\n\t\t\t\t\t\t$html=file_get_contents('/home/sites/site5/web/FO/views/scripts/Client/Client_invoice_pdf.phtml');\n\t\t\t\t\t\t$html=str_replace('$$$$invoice_details_pdf$$$$',$invoice_details_pdf,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$tax_details_pdf$$$$',$tax_details_pdf,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$final_invoice_amount$$$$',$final_invoice_amount,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$date_invoice_full$$$$',$date_invoice_full,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$date_invoice$$$$',$date_invocie,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$address$$$$',$address,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$payinfo_number$$$$',$payinfo_number,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$date_invoice_ep$$$$',$date_invoice_ep,$html);\n\t\t\t\t\t\t$html=str_replace('$$$$invoice_identifier$$$$',$payment[0]['payid'],$html);\n\t\n\t\t\t\t\t\t\t if ( get_magic_quotes_gpc() )\n\t\t\t\t\t\t\t\t $html = stripslashes($html);\n\t\n\t\t\t\t\t\t\t\t//echo $html;exit;\n\t\t\t\t\t\t\t //$old_limit = ini_set(\"memory_limit\", \"16M\");\n\t\n\t\t\t\t\t\t\t\t$dompdf = new DOMPDF();\n\t\t\t\t\t\t\t\t$dompdf->load_html( $html);\n\t\t\t\t\t\t\t\t$dompdf->set_paper(\"a4\");\n\t\t\t\t\t\t\t\t$dompdf->render();error_reporting(0);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$pdf = $dompdf->output();\n\t\n\t\t\t\t\t\tfile_put_contents($invoicedir.'/'.$invoiceid.'.pdf', $pdf);\n\t\t\t\t\t\tob_clean();\n\t\t\t\t\t\tflush();\n\t\t\t\t\t}\t\n\t\t\t}\n\t\t\t$this->updateCronLock('liberteautopublish', 'unlocked');\n\t\t}\n\t}", "title": "" }, { "docid": "719a608f3cd2039f6a39bff134ad7e72", "score": "0.52455574", "text": "public function cron()\n\t\t{\n\t\t\t$this->layout = null;\n\t\t\t\n\t\t\tif (Core_CronManager::access_allowed())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tSystem_Backup_Archive::backup(true, true);\n\t\t\t\t\techo \"Success\";\n\t\t\t\t}\n\t\t\t\tcatch (Exception $ex)\n\t\t\t\t{\n\t\t\t\t\techo $ex->getMessage();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4794c29b39dc16a68b3015bd81eae7f5", "score": "0.5244557", "text": "public function run()\n {\n $roleSuperAdmin = Role::findByName('Super Administrador');\n $roleAdmin = Role::findByName('Administrador');\n\n $roleSuperAdmin->givePermissionTo(Permission::all());\n $roleAdmin->givePermissionTo('access-admin-dashboard');\n\n }", "title": "" }, { "docid": "2a8e409028196074a802ed74b1f090b1", "score": "0.5242087", "text": "private function _updatePage() {\n \n global $StatsUpdateTasks;\n \n $tasksToRun = explode('|', $_GET['stats']);\n \n foreach ( $StatsUpdateTasks as $taskName => $task ) {\n \n if ( ! in_array($taskName, $tasksToRun) ) continue;\n \n try {\n $task->exec();\n $taskSuccessful = true;\n }\n catch ( UpdateTaskException $e ) {\n $taskSuccessful = false;\n $this->_triggerError( \"Exception thrown in task {$taskName}: <div class=\\\"exception-msg\\\">\" . $e->getMessage() . '</div>' );\n }\n \n file_put_contents( dirname(__DIR__) . '\\\\status\\\\status.txt', $taskName . '|' . (int) $taskSuccessful . \"\\r\\n\", FILE_APPEND );\n \n }\n \n }", "title": "" }, { "docid": "ae29cc97346b1ab6e9d0834f61c7ba9a", "score": "0.52419066", "text": "public function admin_page() {\n\t\t\t?>\n\n\t\t\t<table id=\"learndash-data-upgrades\" class=\"wc_status_table widefat\" cellspacing=\"0\">\n\t\t\t<?php\n\t\t\tforeach ( self::$upgrade_actions as $upgrade_action_slug => $upgrade_action ) {\n\t\t\t\t$upgrade_action['instance']->show_upgrade_action();\n\t\t\t}\n\t\t\t?>\n\t\t\t</table>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "da257c56cf64c5917f2b284e5aa1fb9f", "score": "0.5241072", "text": "public function cron_jobs() {\n\n // Process the subscriptions\n (new MidrubBasePaymentsCollectionPaypalControllers\\Cron)->subscriptions(); \n \n }", "title": "" }, { "docid": "8d343aaf4744d3f5cf390901d9dbb89f", "score": "0.5237582", "text": "function adminEscalation() {\n $travellings = Mytravelling::where('want_visa', '=', 1)->where('end_escalation', '=', 0)->where('admin_escalated', '=', 0)->whereNull('total_cost')->where('created_at', '<=', date(\"Y-m-d H:i:s\", time() - 14400))->get(); // 4 hours\n if (!$travellings->isEmpty()) {\n foreach ($travellings as $travelling) {\n $travelling->admin_escalated = 1;\n $travelling->save();\n\n $admin = User::find(ADMIN_USER_ID);\n $subject = \"New Escalation in our admin \" . $admin->first_name . \" \" . $admin->last_name . \" to not decision to this travelling before 2 hours\";\n $link = 'mytravelling/cfo/' . $travelling->id;\n \\SiteHelpers::addNotification(1, CFO_USER_ID, $subject, $link);\n\n // send SMS TO CFO\n $CFO = User::where('id', CFO_USER_ID)->first();\n $phone = $CFO->phone_number;\n $this->send_sms($phone,$subject,$link);\n\n // send SMS TO CFO Backup\n $CFOBackup = User::where('id', CFO_BACKUP_ID)->first();\n $phone = $CFOBackup->phone_number;\n $this->send_sms($phone,$subject,$link);\n\n }\n // echo \"Escalated admin\" . \"<br/>\";\n $this->sendMail($subject . ' Check at: ' . url($link), '[email protected]');\n }\n }", "title": "" }, { "docid": "5602ee9a6e2174e3542bb063b85be35c", "score": "0.52341974", "text": "public function execute()\n {\n try {\n $resultPage = $this->resultPageFactory->create();\n $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);\n $resultPage->getConfig()->getTitle()->prepend(__('Cron Listing'));\n $jobUrl = $this->_request->getParam('joburl');\n $jobName = $this->_request->getParam('jobname');\n $storeId = $this->_request->getParam('store');\n $scope = $this->_request->getParam('scope');\n $storeData = null;\n\n if (empty($scope) && empty($storeId)) {\n $storeId = $this->getDefaultWebsiteId();\n $resultRedirect->setPath(\n 'ls_repl/cron/grid',\n ['website' => $storeId, '_current' => true, 'scope' => 'website']\n );\n\n return $resultRedirect;\n }\n\n if ($jobUrl != \"\") {\n // @codingStandardsIgnoreStart\n $cron = $this->objectManager->create($jobUrl);\n // @codingStandardsIgnoreEnd\n if (!empty($storeId)) {\n $storeData = $scope == 'website' ?\n $this->storeManager->getWebsite($storeId) :\n $this->storeManager->getStore($storeId);\n }\n $info = $cron->executeManually($storeData);\n if (!empty($info)) {\n $executeMoreData = '';\n if ($info[0] > 0) {\n $executeMoreData = $this->_url->getUrl(\n LSR::URL_PATH_EXECUTE,\n ['joburl' => $jobUrl, 'jobname' => $jobName, 'store' => $storeId, 'scope' => $scope]\n );\n }\n $this->messageManager->addComplexSuccessMessage(\n 'cronlinkmessage',\n ['url' => $executeMoreData, 'jobName' => $jobName, 'remaining' => $info[0]]\n );\n }\n\n $resultRedirect->setUrl($this->_redirect->getRefererUrl());\n return $resultRedirect;\n }\n return $resultPage;\n } catch (Exception $e) {\n $this->logger->debug($e->getMessage());\n $this->messageManager->addErrorMessage($e->getMessage());\n $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);\n $resultRedirect->setUrl($this->_redirect->getRefererUrl());\n return $resultRedirect;\n }\n }", "title": "" }, { "docid": "d882bdafda2eb63c17d18db542c197dc", "score": "0.5233431", "text": "public function run()\n {\n $this->systemManage();\n $this->menus();\n $this->adminUser();\n $this->permission();\n $this->role();\n\n $this->user();\n\n $this->document();\n }", "title": "" }, { "docid": "be0ce6b4e92e941ee513662edc48ce87", "score": "0.5231686", "text": "public function freemiumendCronAction(){\n \n \n $objCore = Engine_Core_Core::getInstance();\n $realobj = $objCore->getAppSetting();\n $apikey = $realobj->pagar->ApiKey;\n $warningdays = $realobj->warningdays;\n $host = $realobj->hostLink;\n $paymentnewModal = Application_Model_PaymentNew::getinstance();\n $plandetailsmodal = Application_Model_Plans::getinstance();\n $paymentcardsmodal = Application_Model_PaymentCards::getinstance();\n $couponsModal = Application_Model_Coupons::getinstance();\n $transmodel=Application_Model_FashionTransactions::getinstance();\n $mailer = Engine_Mailer_Mailer::getInstance();\n $allplaninfo = $plandetailsmodal->getAllPlanDetails();\n $plan[1] = $allplaninfo[0];\n $plan[2] = $allplaninfo[1];\n $currentDate = date('Y-m-d');\n $warningdays = $realobj->warningdays;\n $freemiumendusers = $paymentnewModal->getFreemiumEndUsers();\n \n echo '<-------------------------------------Freemium subscription cron started ------------------------------------------->';\n echo '<html><table border=\"1\">';\n print '<th>userid</th><th>email</th>status<th>comments</th>';\n if($freemiumendusers){\n echo \"<tbody>\"; \n foreach ($freemiumendusers as $value) {\n echo \"<tr>\"; \n $payin['customer_status']= 8;\n $updatedresult = $paymentnewModal->updateUserPaymentInfo($value[\"user_id\"],$payin);\n $template_name = 'Blank-transaction';\n \n $name = \"test\";\n $email = $value['email'];\n $subject = \"payment\";\n\n $mergers = array(\n array(\n 'name' => 'text',\n 'content' => \"Your freemium usage is ended ,Now you are a free user, to enjoy unlimited services from us please subscribe now and become premium users\",\n )\n );\n\n $mresult = $mailer->sendtemplates($template_name, $email, $name, $subject,$mergers, \"[email protected]\");\n print \"<td> \" . $value[\"user_id\"] . \"</td>\" . \"<td> \" . $value[\"email\"] . \"</td>\" . \"<td>freemium user</td>\" . \"<td>changing to free user</td>\"; \n \n echo \"</tr>\"; \n }\n echo \"</tbody>\"; \n }else{\n echo \"</tbody>\";\n print '<td>NO CURRENT FREEMIUM END USERS FOR THIS DAY</td><td>-</td><td>-</td>'; \n echo \"</tbody>\";\n }\n echo \"</table></html>\";\n echo '<-------------------------------------cron executed successfully-------------------------------------------->';\n die(); \n }", "title": "" }, { "docid": "22bf5a5294f2eb9c5c9ed7363f71bc6b", "score": "0.52266675", "text": "public function run()\n {\n $add_admin_informatie = new Admin;\n $add_admin_informatie ->name = \"Ibrahim Sadour\";\n $add_admin_informatie ->description = \"Ibrahim Sadour is a material CV / Resume / Vcard / Portfolio HTML5 template by Sadour.\";\n $add_admin_informatie ->keywords = \"material design, resume, responsive template, cv, multipurpose, portfolio, html5 template, themeforest.net, bootstrap, html5, creative, landing page, sass, clean, design, modern, angular js,\";\n $add_admin_informatie ->date = \"1995\";\n $add_admin_informatie ->Address = \"Jan Bestevaerstraat 6 , 1541KP Koog aan de zaan\";\n $add_admin_informatie ->Email = \"[email protected]\";\n $add_admin_informatie ->Phone = \"+31 685 125822\";\n $add_admin_informatie ->function = \"BACK END & FRONT END DEVELOPER\";\n $add_admin_informatie ->view = \"1\";\n $add_admin_informatie->save();\n }", "title": "" }, { "docid": "c031f9015a2b8a47b25f99608128826b", "score": "0.52247304", "text": "public function run()\n {\n $groupService = ManageNodeGroupService::getInstance();\n $group = $groupService->updateOrCreate('站台管理', NodeCodeConstants::MANAGE_BRANCH);\n if ($group) {\n $roleService = new AdminRoleService();\n $nodeService = ManageNodeService::getInstance();\n $nodeRead = $nodeService->edit(\n $group,\n '站台管理-讀取',\n NodeCodeConstants::MANAGE_BRANCH_READ\n );\n if ($nodeRead) {\n $roleService->bindNode(RoleInherentConstants::ADMIN, $nodeRead);\n $roleService->bindNode(RoleInherentConstants::SYSTEM_MANAGER, $nodeRead);\n }\n $nodeCreate = $nodeService->edit(\n $group,\n '站台管理-新增',\n NodeCodeConstants::MANAGE_BRANCH_CREATE\n );\n if ($nodeCreate) {\n $roleService->bindNode(RoleInherentConstants::ADMIN, $nodeCreate);\n $roleService->bindNode(RoleInherentConstants::SYSTEM_MANAGER, $nodeCreate);\n }\n $nodeUpdate = $nodeService->edit(\n $group,\n '站台管理-編輯',\n NodeCodeConstants::MANAGE_BRANCH_UPDATE\n );\n if ($nodeUpdate) {\n $roleService->bindNode(RoleInherentConstants::ADMIN, $nodeUpdate);\n $roleService->bindNode(RoleInherentConstants::SYSTEM_MANAGER, $nodeUpdate);\n }\n $nodeDel = $nodeService->edit(\n $group,\n '站台管理-刪除',\n NodeCodeConstants::MANAGE_BRANCH_DELETE\n );\n if ($nodeDel) {\n $roleService->bindNode(RoleInherentConstants::ADMIN, $nodeDel);\n $roleService->bindNode(RoleInherentConstants::SYSTEM_MANAGER, $nodeDel);\n }\n }\n }", "title": "" }, { "docid": "0f1df4c1c44cedccf2e340daece05dae", "score": "0.5223421", "text": "public function run()\n {\n //\n $subservice = new Subservice;\n $subservice->name = 'Android Backend Development';\n $subservice->service_id = 1;\n $subservice->save();\n\n $subservice = new Subservice;\n $subservice->name = 'Android Frontend Development';\n $subservice->service_id = 1;\n $subservice->save();\n\n }", "title": "" }, { "docid": "89761bac3bb1f99fc01eac79b2d9c306", "score": "0.52231693", "text": "public function dee_deployment()\n {\n $this->load->library('session');\n $emis_loggedin = $this->session->userdata('emis_loggedin');\n if($emis_loggedin) {\n $this->load->view('Collector/dee_deployment');\n }else { redirect('/', 'refresh'); }\n }", "title": "" }, { "docid": "e586adc88c24de1907a471bf8a7cc441", "score": "0.52215916", "text": "public function missionalertAction()\n {\n $cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('missionalert');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('missionalert', 'locked'); \n\t\t\t$ao_obj=new Ep_Ao_Delivery();\n\t\t\t\n\t\t\t$missions=$ao_obj->publishtimeao();\n\t\t\tprint_r($missions);//exit; \n\t\t\tif(count($missions)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missions);$m++)\n\t\t\t\t{\n\t\t\t\t\tif($missions[$m]['premium_option']=='0')\n\t\t\t\t\t\t$mailId=14;\n\t\t\t\t\telse\n\t\t\t\t\t\t$mailId=15;\n\t\t\t\t\t\t\n\t\t\t\t\t$parameters['AO_title']=$missions[$m]['title'];\n\t\t\t\t\t\t$expires=$missions[$m]['publishtime']+(60*$missions[$m]['participation_time']);\n\t\t\t\t\t$parameters['submitdate_bo']=date('d/m/Y H:i', $expires);\n\t\t\t\t\t$parameters['subject']=$missions[$m]['mailsubject'];\n\t\t\t\t\t$parameters['content']=$missions[$m]['mailcontent'];\n\t\t\t\t\t\n\t\t\t\t\tif($missions[$m]['mail_sender']=='me')\n\t\t\t\t\t\t$parameters['sender_id']=$missions[$m]['created_user'];\n\t\t\t\t\t\n\t\t\t\t\tif($missions[0]['alertuser']!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$alertcontribs=explode(\",\",$missions[$m]['alertuser']);\n\t\t\t\t\t\t//print_r($alertcontribs);\n\t\t\t\t\t\tforeach($alertcontribs as $alert)\n\t\t\t\t\t\t\t$this->messageToEPMail($alert,$mailId,$parameters); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/** Post comments on FB**/ \n\t\t\t\t\t\n\t\t\t\t\t$array['cronmail_publish']='yes';\n\t\t\t\t\t$where=\" id='\".$missions[$m]['id'].\"'\";\n\t\t\t\t\t$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t//Correction alert\n\t\t\t$missioncorrection=$ao_obj->publishtimeaocorrection();\n\t\t\tprint_r($missioncorrection);//exit;\n\t\t\tif(count($missioncorrection)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missioncorrection);$m++)\n\t\t\t\t{\n\t\t\t\t\t$parameterscorr['subject']=$missioncorrection[$m]['correctormailsubject'];\n\t\t\t\t\t$parameterscorr['content']=$missioncorrection[$m]['correctormailcontent'];\n\t\t\t\t\t\n\t\t\t\t\tif($missioncorrection[$m]['correctorsendfrom']=='me')\n\t\t\t\t\t\t$parameterscorr['sender_id']=$missioncorrection[$m]['created_user'];\n\t\t\t\t\t\n\t\t\t\t\tif($missioncorrection[0]['alertuser']!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$alertcontribs=explode(\",\",$missioncorrection[$m]['alertuser']);\n\t\t\t\t\t\t//print_r($alertcontribs);\n\t\t\t\t\t\tforeach($alertcontribs as $alert)\n\t\t\t\t\t\t\t$this->messageToEPMail($alert,178,$parameterscorr); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/** Post comments on FB**/ \n\t\t\t\t\t\n\t\t\t\t\t$array['cronmail_publishcorrection']='yes';\n\t\t\t\t\t$where=\" id='\".$missioncorrection[$m]['id'].\"'\";\n\t\t\t\t\t$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t$this->updateCronLock('missionalert', 'unlocked');\n\t\t} \n }", "title": "" }, { "docid": "cb54c387a87e12d154d40a04373496af", "score": "0.522024", "text": "function yourls_check_maintenance_mode() {\n\n\t$file = YOURLS_ABSPATH . '/.maintenance' ;\n\tif ( !file_exists( $file ) || yourls_is_upgrading() || yourls_is_installing() )\n\t\treturn;\n\t\n\tglobal $maintenance_start;\n\n\tinclude_once( $file );\n\t// If the $maintenance_start timestamp is older than 10 minutes, don't die.\n\tif ( ( time() - $maintenance_start ) >= 600 )\n\t\treturn;\n\n\t// Use any /user/maintenance.php file\n\tif( file_exists( YOURLS_USERDIR.'/maintenance.php' ) ) {\n\t\tinclude_once( YOURLS_USERDIR.'/maintenance.php' );\n\t\tdie();\n\t}\n\t\n\t// https://www.youtube.com/watch?v=Xw-m4jEY-Ns\n\t$title = yourls__( 'Service temporarily unavailable' );\n\t$message = yourls__( 'Our service is currently undergoing scheduled maintenance.' ) . \"</p>\\n<p>\" .\n\tyourls__( 'Things should not last very long, thank you for your patience and please excuse the inconvenience' );\n\tyourls_die( $message, $title , 503 );\n\n}", "title": "" }, { "docid": "2c69b9d3a11fea248b948a74171f3113", "score": "0.5218257", "text": "function scribite_admin_main()\r\n{\r\n // Security check - important to do this as early as possible to avoid\r\n // potential security holes or just too much wasted processing. For the\r\n // main function we want to check that the user has at least edit privilege\r\n // for some item within this component, or else they won't be able to do\r\n // anything and so we refuse access altogether. The lowest level of access\r\n // for administration depends on the particular module, but it is generally\r\n // either 'edit' or 'delete'\r\n if (!pnSecAuthAction(0, 'scribite::', '::', ACCESS_ADMIN)) {\r\n return pnVarPrepHTMLDisplay(_BADAUTHKEY);\r\n }\r\n // Create output object - this object will store all of our output so that\r\n // we can return it easily when required\r\n $pnRender =& new pnRender();\r\n $pnRender->caching = false;\r\n\t // get the output of the main function\r\n\t $pnRender->assign('main', scribite_admin_modifyconfig(array()));\r\n // Return the output that has been generated by this function\r\n return $pnRender->fetch('scribite_admin_main.htm');\r\n\r\n}", "title": "" }, { "docid": "8f48e0796a8e80268b2f70df70748fa1", "score": "0.52166903", "text": "public function run()\n {\n ReportContent::create([\n 'endorsement' => '', \n 'daily_request' => '', \n 'proof_enrollment' => '', \n 'admin_id' => 1\n ]);\n\n }", "title": "" }, { "docid": "e534e79bccc043566fe891c641ac66f1", "score": "0.5215672", "text": "public function run()\n {\n $admin = Sentinel::registerAndActivate(array(\n\t\t\t'email' => '[email protected]',\n\t\t\t'password' => \"admin\",\n\t\t\t'first_name' => 'victory',\n\t\t\t'last_name' => 'selva',\n\t\t));\n\n $adminRole = Sentinel::getRoleRepository()->createModel()->create([\n\t\t\t'name' => 'Admin',\n\t\t\t'slug' => 'admin',\n\t\t\t'permissions' => array('admin' => 1),\n\t\t]);\n $admin->roles()->attach($adminRole);\n }", "title": "" }, { "docid": "d234e8d05caef8781e2df6163cf20eed", "score": "0.52142423", "text": "public function run()\n {\n $advance = new TechnicalAdvance();\n $advance->receive_order = 0;\n $advance->engineering_release = 0;\n $advance->work_progress = 0;\n $advance->delivery_customer = 0;\n $advance->project_id = 1;\n $advance->save();\n }", "title": "" }, { "docid": "48bd99c5331f7d47956be33753216af8", "score": "0.52110875", "text": "public function run()\n {\n Admin::create([\n 'username' => 'olshop1',\n 'email' => '[email protected]',\n 'password' => 'password',\n 'website' => 'olshop1.com',\n 'storename' => 'olshop1',\n 'role' => 'admin',\n ]);\n Admin::create([\n 'username' => 'olshop2',\n 'email' => '[email protected]',\n 'password' => 'password',\n 'website' => 'olshop2.com',\n 'storename' => 'olshop2',\n 'role' => 'admin',\n ]);\n }", "title": "" }, { "docid": "78f4c1145f796011cddd22249f5572b5", "score": "0.5210926", "text": "public static function Changelogpage() {\n\t\t// Maintenance check\n\t\tself::MaintenanceStuff();\n\t\t// Global alert\n\t\tself::GlobalAlert();\n\t\t// Changelog\n\t\tgetChangelog();\n\t}", "title": "" } ]
6077118a583a1276037a319c45a60e4a
$params can be an array, which will generate "WHERE foo='bar' and 'bork'='baz'...." Alternatively, you may pass a WHERE clause as $params
[ { "docid": "64dd815a9bb50b2ce608ef13622bdd7e", "score": "0.0", "text": "public function fetch($params = array(), $orderby = false, $count = false, $offset = false) {\n\t\tif ($orderby == false) {\n\t\t\tif (static::isSortable() && static::$default_orderby == '') {\n\t\t\t\t$orderby = \"priority\";\n\t\t\t} elseif (static::$default_orderby != '') {\n\t\t\t\t$orderby = static::$default_orderby;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If pagination mode is on, we need to know how many rows are in the full set.\n\t\tif ($this->paginationOn) {\n\t\t\t// the number of records to actually return\n\t\t\t$count = $this->paginationPerSlice;\n\t\t\t\n\t\t\t// default starting point\n\t\t\t$offset = ($this->paginationSlice - 1) * $this->paginationPerSlice;\n\t\t\t\n\t\t\t// in 'overlap' mode, start one record sooner than we ordinarily would\n\t\t\tif ($this->paginationOverlap) {\n\t\t\t\tif ($this->paginationSlice > 1) {\n\t\t\t\t\t$offset = $offset - ($this->paginationSlice -1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// run the fetch, returning in the process the total number of records the search\n\t\t\t// would have returned if we didn't use a limit\n\t\t\t$records = db()->getRows(static::$table, $params, get_class($this), false, $orderby, $count, $offset, true, $paginationCount);\n\t\t\t$this->paginationCount = $paginationCount;\t\t\t\t\n\t\t\t\n\t\t\t// in overlap mode, make a backup of the actual \"found rows\" value, then adjust the value\n\t\t\t// to account for all the extra records we're adding with this stepstool approach\n\t\t\tif ($this->paginationOverlap) {\n\t\t\t\t$this->paginationCountPreOverlap = $this->paginationCount;\n\t\t\t\t$this->paginationCount = $this->paginationCountPreOverlap + $this->paginationNumSlices();\n\t\t\t} else {\n\t\t\t\t$this->paginationCount = $paginationCount;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\ttry {\n\t\t\t\t$records = db()->getRows(static::$table, $params, get_class($this), false, $orderby, $count, $offset);\n\t\t\t} catch (PDOException $e) {\n\t\t\t\thandle_pdo_exception($e, get_called_class());\n\t\t\t}\n\t\t}\n\t\treturn $records;\n\t}", "title": "" } ]
[ { "docid": "0ad146e25fba5f27b6e98ef361c88737", "score": "0.77757007", "text": "private function createRequestWhere($params)\n {\n if(!empty($params))\n {\n $where = array();\n\n // Check the first element to understand the format. 2 possibilities :\n // - $where = array(\"col1\" => \"value1\", \"col2\" => \"value2\")\n // - $where = array(array(\"type\" => \"type1\", \"col\" => \"col1\", \"value\" => \"value1\"), array(...), ...)\n\n if(!isset($params[0]) || !is_array($params[0]))\n {\n foreach($params as $name => $value)\n $where[] = \"a.\".$name.\"=\".$this->pdo->quote($value);\n }\n else\n {\n foreach($params as $where_field){\n if(!isset($where_field[\"type\"]))\n {\n $where[] = \"a.\".$where_field[\"col\"].\"=\".$this->pdo->quote($where_field[\"value\"]);\n }\n if($where_field[\"type\"] == \"text\" ||\n $where_field[\"type\"] == \"email\" ||\n $where_field[\"type\"] == \"url\" ||\n $where_field[\"type\"] == \"tel\" ||\n $where_field[\"type\"] == \"textarea\")\n {\n $where[] = \"a.\".$where_field[\"col\"].\" LIKE \".$this->pdo->quote(\"%\".$where_field[\"value\"].\"%\");\n }\n else if($where_field[\"type\"] == \"number\")\n {\n $where[] = \"a.\".$where_field[\"col\"].\"=\".$this->pdo->quote($where_field[\"value\"]);\n }\n else if($where_field[\"type\"] == \"select\")\n {\n $where[] = \"a.\".$where_field[\"col\"].\"=\".$this->pdo->quote($where_field[\"value\"]);\n }\n else if($where_field[\"type\"] == \"date\")\n {\n $sign = \"=\";\n if(isset($where_field[\"info\"])){\n if($where_field[\"info\"] == \"-1\") $sign = \"<=\";\n else if($where_field[\"info\"] == \"1\") $sign = \">=\";\n }\n $where[] = \"a.\".$where_field[\"col\"].$sign.$this->pdo->quote($where_field[\"value\"]);\n }\n else if($where_field[\"type\"] == \"checkbox\")\n {\n if($where_field[\"value\"] == \"1\")\n $where[] = \"a.\".$where_field[\"col\"].\"=1\";\n else if($where_field[\"value\"] == \"-1\")\n $where[] = \"a.\".$where_field[\"col\"].\"=0\";\n }\n }\n }\n if(!empty($where))\n {\n $where = \" WHERE \".implode(\" AND \", $where);\n return $where;\n }\n }\n return \"\";\n }", "title": "" }, { "docid": "128be9a4c117a0eef8e256341c5abc3b", "score": "0.7594441", "text": "private function _set_where($params)\n {\n if (count($params) === 1) {\n $this->db->where($params[0]);\n } else {\n $this->db->where($params[0], $params[1]);\n }\n }", "title": "" }, { "docid": "ebe7a3a15ee9f0c3bfdb2c8987ad29fd", "score": "0.75211066", "text": "private static function genGetAllObjectsByParamsQuery($params) {\n $query = \"SELECT * FROM \" . static::$tableName . \" WHERE \";\n foreach ($params as $k => $v) {\n $query .= $k .\"='\".$v.\"' AND \";\n }\n $query = substr($query, 0, -5);\n return $query;\n }", "title": "" }, { "docid": "2e8cd13d0ded28e2d8f0afa121a385f2", "score": "0.7519231", "text": "protected function setWhereValues($params) {\n if (count($params) == 1) {\n //We have only one parameter\n if (is_array($params[0])) {\n //The parameter is an array\n $this->setWhereValuesArray($params[0]);\n } else {\n //The parameter is not an array\n //Condition like xxxx->getListRecordCond('status'); \n $this->getQueryBuilder()->where($params[0]); // WHERE status = ''\n }\n } else if (count($params) == 2) {\n //We have two parameters\n if (is_array($params[1])) {\n //2nd param is an array\n //Condition like xxxx->getListRecordCond('id', array(1,3,2));\n $this->getQueryBuilder()->in($params[0], $params[1]); //WHERE id IN (1, 3, 2)\n } else {\n //2nd param is not an array \n //Condition like xxxx->getListRecordCond('status', 1);\n $this->getQueryBuilder()->where($params[0], $params[1]); //WHERE status = 1\n }\n } else if (count($params) == 3) {\n //We have three parameters\n //1st param is field\n //2nd param is operator\n //3rd param is the value\n //Condition like xxxx->getListRecordCond('id', '>', 3);\n $this->getQueryBuilder()->where($params[0], $params[1], $params[2]); //WHERE id > 3\n } \n }", "title": "" }, { "docid": "e0538dc89beae07b7b0417ec571024d8", "score": "0.736148", "text": "protected function _set_where($params)\n\t{\n\t\t// kmh_print($params);\n\t\tif (count($params) == 1 && is_array($params[0]))\n\t\t{\n\t\t\tforeach ($params[0] as $field => $filter)\n\t\t\t{\n\t\t\t\tif (is_array($filter))\n\t\t\t\t{\n\t\t\t\t\t$this->_database->where_in($field, $filter);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (is_int($field))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_database->where($filter);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_database->where($field, $filter);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (count($params) == 1)\n\t\t{\n\t\t\t$this->_database->where($params[0]);\n\t\t}\n\t\telse if(count($params) == 2)\n\t\t{\n\t\t\tif (is_array($params[1]))\n\t\t\t{\n\t\t\t\t$this->_database->where_in($params[0], $params[1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->_database->where($params[0], $params[1]);\n\t\t\t}\n\t\t}\n\t\telse if(count($params) == 3)\n\t\t{\n\t\t\t$this->_database->where($params[0], $params[1], $params[2]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (is_array($params[1]))\n\t\t\t{\n\t\t\t\t$this->_database->where_in($params[0], $params[1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->_database->where($params[0], $params[1]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5453c295023c16ee1c5af08196d16e5d", "score": "0.72816795", "text": "function createSqlParts( $params )\n {\n $db = eZDB::instance();\n\n $sqlCondArray = array();\n $sqlTables = ' ';\n $sqlJoins = ' ';\n\n // $known_param_names=array('city','state','country','production','coordinator');\n // $known_param_ids=array('333','334','336','329','338');\n $attributes=array( array( 'city', 333 ), array( 'state', 334 ), array( 'country', 336 ), array( 'production', 329 ), array( 'coordinator', 338) );\n\n foreach( $attributes as $attribute )\n {\n $_name = $attribute[0];\n if ( isset( $params[$_name] ) )\n {\n $_id = $db->escapeString( $attribute[1] );\n $_value = $db->escapeString( $params[$_name] );\n if ( $_value != \"all\" )\n {\n $sqlCondArray[] = \"l ezmyfiltertable.contentclassattribute_id = '$_id' AND ezmyfiltertable.data_text = '$_value'\";\n // $sqlCondArray[] = \"( ezmyfiltertable.contentclassattribute_id = '$_id' AND ezmyfiltertable.data_text = '$_value' )\";\n }\n }\n }\n\n if( !empty( $sqlCondArray ) )\n {\n $sqlTables= ', ezcontentobject_attribute as ezmyfiltertable ';\n $sqlJoins = ' ezcontentobject_tree.contentobject_id = ezmyfiltertable.contentobject_id AND ezcontentobject_tree.contentobject_version = ezmyfiltertable.version AND ezmyfiltertable.data_type_string = \"ezstring\" AND ';\n\n // $sqlCond = implode( ' or ', $sqlCondArray );\n $sqlCond = implode( ' and ', $sqlCondArray );\n // $sqlCond = ' ( ' . $sqlCond . ' ) AND ' . $sqlJoins . ' ';\n $sqlCond = ' ' . $sqlCond . ' AND ' . $sqlJoins . ' ';\n\n $sqlJoins = $sqlCond;\n\n /* print_r( $sqlCondArray );\n print_r( \"<hr />\");\n */\n\n print_r( $sqlCond );\n print_r( \"<hr />\");\n }\n // $sqlJoins = \" ezcontentobject_tree.contentobject_id = ezmyfiltertable.contentobject_id AND ezcontentobject_tree.contentobject_version = ezmyfiltertable.version AND ezmyfiltertable.data_type_string = 'ezstring' AND ezmyfiltertable.contentclassattribute_id IN ('333','334','336','329','338') AND ezmyfiltertable.data_text IN ('Anchorage','Alaska', 'USA') AND \";\n // $sqlJoins = \" ezcontentobject_tree.contentobject_id = ezmyfiltertable.contentobject_id AND ezcontentobject_tree.contentobject_version = ezmyfiltertable.version AND ezmyfiltertable.data_type_string = 'ezstring' AND ezmyfiltertable.contentclassattribute_id IN ('333','334','336') AND ezmyfiltertable.data_text IN ('Anchorage','Alaska', 'USA') AND \";\n\n $sqlJoins = \" ezcontentobject_tree.contentobject_id = ezmyfiltertable.contentobject_id AND ezcontentobject_tree.contentobject_version = ezmyfiltertable.version AND ezmyfiltertable.data_type_string = 'ezstring' AND ezmyfiltertable.contentclassattribute_id IN ('333','334','336') AND ezmyfiltertable.data_text IN ('Anchorage','Alaska', 'USA') AND \";\n\n return array( 'tables' => $sqlTables,\n 'joins' => $sqlJoins );\n }", "title": "" }, { "docid": "2d210c7a3028f8e213de1ab89ccc7a31", "score": "0.7185443", "text": "protected function _set_where($params) {\n if (count($params) == 1) {\n foreach ($params[0] as $column => $value) {\n if (is_array($value)) {\n $this->db->where_in($column, $value);\n }\n else {\n $this->db->where($column, $value);\n }\n }\n }\n else {\n $column = $params[0];\n $value = $params[1];\n if (is_array($value)) {\n $this->db->where_in($column, $value);\n }\n else {\n $this->db->where($column, $value);\n }\n }\n }", "title": "" }, { "docid": "a67b1c3aae18afac1ad7511e10b8b94c", "score": "0.71093774", "text": "public function setWhereParams($params)\n {\n }", "title": "" }, { "docid": "9a45a4bb793ceee35ec840c55b09a0c3", "score": "0.70705974", "text": "private function _set_where($params)\n {\n if (count($params) == 1)\n {\n $this->{$this->_interface}->where($params[0]);\n }\n else\n {\n if ($this->_mongodb && preg_match('/^\\/.*\\/[a-z]*$/', $params[1]))\n {\n $params[1] = new MongoRegex($params[1]);\n }\n\n $this->{$this->_interface}->where($params[0], $params[1]);\n }\n }", "title": "" }, { "docid": "421fb0f49ce8c0f2a4ee46acd57b85b3", "score": "0.7000706", "text": "public static function buildQuery($params)\n {\n $query = '';\n if (is_array($params)) {\n foreach ($params as $name => $param) {\n $logic = isset($param[1]) ? $param[1] : 'AND';\n $pre = $query ? $query . ' ' . $logic : '';\n if (is_array($param[0][0])) {\n $query = $pre . ' (' . self::buildQuery($param[0]) . ')';\n } else {\n $query = $pre . ' (' . $param[0][0] . ':' . $param[0][1] . ')';\n }\n }\n }\n\n return trim($query);\n }", "title": "" }, { "docid": "fa38b010e16c3fd3f7e32a2dd6d2f7b1", "score": "0.6935194", "text": "public function query($sql, $params=array());", "title": "" }, { "docid": "4c489256e79b2ca83c351ca1433920f6", "score": "0.6885231", "text": "public function getWhereMultiple(...$params)\n {\n $resultModel = $this->getModel();\n // foreach condition\n if(count($params) > 0){\n foreach ($params as $key => $statement) {\n $condition = $statement[0];\n $operator = (in_array($statement[1], $this->operators) ? $statement[1] : '=');\n $value = (in_array($statement[1], $this->operators) ? (isset($statement[2]) ? $statement[2] : '') : $statement[1]);\n $clause = isset($statement[3]) ? $statement[3] : 'and';\n $relation = isset($statement[4]) ? $statement[4] : '';\n $id = isset($statement[5]) ? $statement[5] : '';\n $resultModel = $this->getData($resultModel, $condition,$operator,$value,$clause,$relation,$id);\n }\n }\n // return paginate\n return $resultModel->get();\n }", "title": "" }, { "docid": "cc06e55821ee8d8a524b7515fa70a119", "score": "0.682139", "text": "public function query($params)\n {\n $query = '';\n if (!empty($params)) {\n $query = '?' . http_build_query($params);\n }\n return $query;\n }", "title": "" }, { "docid": "518812e6e76ff9c2d758d5be2fa9793d", "score": "0.6811471", "text": "public function generateQueryFromParams($params, $column) {\n\t\t$queryParams = array();\n\t\t$statements = array();\n\t\tforeach ($params as $key => $value) {\n\t\t\tif ($value[0] == \"-\" && strlen($value) > 1) {\n\t\t\t\t$value = substr($value, 1);\n\t\t\t\t$op = \"NOT LIKE\";\n\t\t\t} else {\n\t\t\t\t$op = \"LIKE\";\n\t\t\t}\n\t\t\t$statements []= \"$column $op ?\";\n\t\t\t$queryParams []= '%' . $value . '%';\n\t\t}\n\t\treturn array(join(\" AND \", $statements), $queryParams);\n\t}", "title": "" }, { "docid": "b9f9ec39da8e16744eee4243eb714b89", "score": "0.6708834", "text": "private function createElasticSearchQuery(array $params, ?string $operator = 'AND'): string\n {\n $filteredParams = [];\n foreach ($params as $name => $value) {\n if (empty($name) || empty($value)) {\n continue;\n }\n\n $filteredParams[] = \"$name:$value\";\n }\n\n return implode(\" $operator \", $filteredParams);\n }", "title": "" }, { "docid": "5b5da777c07f5dd36746c5a419e50145", "score": "0.66292363", "text": "private function createConditionWhere($conditions = NULL, $where = NULL, $where_params = NULL){\n\t\t$sql_where = '';\n\t\tif(isset($conditions)){\n\n\t\t\t//$conditions => array(key1[:operator1] => value1, key2[:operator2] => value2)\n\t\t\t//(operatorを省略するとデフォルトは\"=\")\n\t\t\t//配列の場合、key1 operator1 value1 AND key2 operator2 value2\n\t\t\t//(IS NULL or IS NOT NULL はオペランドなし)\n\t\t\tif(is_array($conditions)){\n\n\t\t\t\tforeach($conditions as $key => $value){\n\t\t\t\t\tpreg_match('/([^:]+):?([^:]*)/', $key, $matches);\n\t\t\t\t\t$column = $matches[1];\n\t\t\t\t\t$operator = $matches[2];\n\t\t\t\t\tif( $operator == '' ){\n\t\t\t\t\t\tif ( is_array( $value ) ){\n\t\t\t\t\t\t\t$operator = 'in';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$operator = '=';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif( preg_match('/IS\\s+NULL|IS\\s+NOT\\s+NULL/i', $operator) ){\n\t\t\t\t\t\t//IS NULL or IS NOT NULL はオペランドなし\n\t\t\t\t\t\t$operand = '';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( is_array( $value ) ) {\n\t\t\t\t\t\t\t$buf = array();\n\t\t\t\t\t\t\t$null_flg = 0;\n\t\t\t\t\t\t\tforeach( $value as $key ){\n\t\t\t\t\t\t\t\tif( strtoupper( $key ) == 'NULL' ) $null_flg = 1;\n\t\t\t\t\t\t\t\telse $buf[] = \"'\" . $this->db_read->escape($key) . \"'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( $buf ) {\n\t\t\t\t\t\t\t\t$operand = '(' . join( ',', $buf ) . ') ' ;\n\t\t\t\t\t\t\t\tif ( $null_flg ) {\n\t\t\t\t\t\t\t\t\t$operand .= ' or ' . $column . ' is null ) ';\n\t\t\t\t\t\t\t\t\t$column = '(' . $column;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$operand = '1';\n\t\t\t\t\t\t\t\t$operator = '=';\n\t\t\t\t\t\t\t\t$column = '1';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( is_null ( $value ) ) continue;\n\t\t\t\t\t\t\t$operand = \"'\" . $this->db_read->escape($value) . \"'\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($sql_where == ''){\n\t\t\t\t\t\t$sql_where = \"WHERE $column $operator $operand \";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$sql_where .= \" AND $column $operator $operand \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//$conditions => value\n\t\t\t\t//配列でない場合で$key_listが単数の場合、key=value、$key_listが単数出ない場合はエラー\n\t\t\t\tif(count($this->key_list) == 1){\n\t\t\t\t\t$sql_where = \"WHERE \" . $this->key_list[0] . \" = '\" . $this->db_read->escape($conditions) . \"'\";\n\t\t\t\t}else{\n\t\t\t\t\t//エラー\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($this->column_delete_flg != '' and isset($this->table_info[$this->column_delete_flg])){\n\t\t\tif($sql_where == ''){\n\t\t\t\t$sql_where = \"WHERE $this->column_delete_flg = '0' \";\n\t\t\t}else{\n\t\t\t\t$sql_where .= \" AND $this->column_delete_flg = '0' \";\n\t\t\t}\n\t\t}\n\n\t\tif($where != ''){\n\t\t\tif(is_array($where_params)){\n\t\t\t\tforeach($where_params as $key => $value){\n\t\t\t\t\tif ( is_array ( $value ) ) {\n\t\t\t\t\t\t$vals = array();\n\t\t\t\t\t\tforeach ( $value as $val ) $vals[] = \"'\" . $this->db_read->escape ( $val ) . \"'\";\n\t\t\t\t\t\t$where = str_replace( $key, join ( ',', $vals ), $where );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$where = str_replace($key, $this->db_read->escape($value), $where);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($sql_where == ''){\n\t\t\t\t$sql_where = \"WHERE $where \";\n\t\t\t}else{\n\t\t\t\t$sql_where .= \" AND $where \";\n\t\t\t}\n\t\t}\n\t\t// self::$whereCache[$this->table_name][serialize( $conditions )][$where][serialize( $where_params)] =$sql_where;\n\t\treturn $sql_where;\n\t}", "title": "" }, { "docid": "abcdbdab00971e715470b7df3434714f", "score": "0.66037357", "text": "public function setupQuery ($params) {\r\n if($this->sql !== $params->sql) { \r\n $this->sql = $params->sql; \r\n $this->prepared = false; \r\n }\r\n $this->prepareStatement();\r\n /*\r\n * bind values to prepared statements\r\n * if explicitly stated in $params\r\n */\r\n if (isset($params->bindValue) && $params->bindValue) { \r\n $this->bindValue($params->data);\r\n }\r\n }", "title": "" }, { "docid": "a6f4f03d05aee124fef02b93fcfc12b3", "score": "0.6591082", "text": "static function buildWhereSql($requiredwhereparams, $optionalwhereparams)\n {\n //no query if no where params\n if (count($requiredwhereparams) + count($optionalwhereparams) == 0) return \"\";\n\n $where = \" WHERE \";\n \n //required params\n foreach($requiredwhereparams as $p => $c)\n $where .= $c.\"=:\".strtolower($c).\" AND \"; \n\n //optional params\n foreach($optionalwhereparams as $p => $c) \n if (isset($_REQUEST[$p])) $where .= $c.\"=:\".strtolower($c).\" AND \"; \n\n //returns string without last \" AND \"\n return ($where != \" WHERE \") ? substr($where, 0, -5) : \"\";\n }", "title": "" }, { "docid": "a01613bdd828305c8a8c074b48fbcac7", "score": "0.6580893", "text": "abstract protected function querySearch(Params $params);", "title": "" }, { "docid": "a5ed75c85ef1b1061920987a171e1793", "score": "0.6572629", "text": "public function db_select($table,$params){\n\t\t\t$fields=' * ';\n\t\t\tif(isset($params['fields'])){\n\t\t\t\t$fields='';\n\t\t\t\tforeach($params['fields'] as $key => $field){\n\t\t\t\t\t$fields=$fields.($key==0?'':',').$field;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$condition=''; \n\t\t\tif(isset($params['condition'])){ /* creation query conditions part from paramters array */\n\t\t\t\t$condition=' WHERE ';\n\t\t\t\tif(isset($params['condition']['AND'])||(isset($params['condition']['OR']))){\n\t\t\t\t\t$isAnd=false;\n\t\t\t\t\tif(isset($params['condition']['AND'])){\n\t\t\t\t\t\tforeach($params['condition']['AND'] as $Akey => $Avalue){\n\t\t\t\t\t\t\t$temp=Model::parseCondition($Avalue);\n\t\t\t\t\t\t\t$condition=$condition.($Akey==0?'':' AND ').$temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$isAnd=true;\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($params['condition']['OR'])){\n\t\t\t\t\t\tforeach($params['condition']['OR'] as $Okey => $Ovalue){\n\t\t\t\t\t\t\t$temp=Model::parseCondition($Avalue);\n\t\t\t\t\t\t\t$condition=$condition.((($Okey==0)&&(!$isAnd))?'':' OR ').$temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$temp=Model::parseCondition($params['condition']); \n\t\t\t\t\t$condition=$condition.$temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* create ordering part of query form params */\n\t\t\t$order=''; \n\t\t\tif(isset($params['order'])){\n\t\t\t\t$direct=' ASC ';\n\t\t\t\tif(isset($params['order']['asc'])){\n\t\t\t\t\t$direct=($params['order']['asc']==0?' ASC':' DESC');\n\t\t\t\t}\n\t\t\t\t$order='Order By '.$params['order']['field'].$direct;\n\t\t\t}\n\t\t\t/* creation join parts of query from params */\n\t\t\t$join=' ';\n\t\t\tif(isset($params['join'])){\n\t\t\t\t$isSimple=false;\n\t\t\t\tforeach($params['join'] as $_join){\n\t\t\t\t\tif(is_array($_join)){\n\t\t\t\t\t\t$join=$join.(isset($_join['type'])?(' '.$_join['type']):'').' JOIN '.$_join['table'].' ON('.$_join['source'].'='.$_join['target'].') ';\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$isSimple=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($isSimple){\n\t\t\t\t\t$join=$join.(isset($params['join']['type'])?(' '.$params['join']['type']):'').' JOIN '.$params['join']['table'].' ON('.$params['join']['source'].'='.$params['join']['target'].') ';\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* generation limit parts of query from params */\n\t\t\t$limit='';\n\t\t\tif(isset($params['limit'])){\n\t\t\t\t$limit=' LIMIT '.$params['limit'];\n\t\t\t}\n\t\t\t$offset='';\n\t\t\tif(isset($params['offset'])){\n\t\t\t\t$limit=' OFFSET '.$params['offset'];\n\t\t\t}\n\t\t\t$group='';\n\t\t\tif(isset($params['group'])){\n\t\t\t\t$group=' GROUP BY '.$params['group'];\n\t\t\t}\n\t\t\t/* join of all query parts and executing SQL query */\n\t\t\t$SQL=\"SELECT $fields FROM $table $join $condition $group $order $limit $offset\";\n\t\t\t$result=$this->db_query($SQL);\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "b7e83831d7aa2ca464eaa518621f19a8", "score": "0.64997774", "text": "protected function build_query( $params ){\n\t\t$url = $this->api_url . '?';\n\n\t\tforeach( $params as $p => $v ){\n\t\t\t$url .= $p . '=';\n\t\t\tif( is_array( $v ) ){\n\t\t\t\t$v = implode( '|', $v );\n\t\t\t}\n\t\t\t$url .= $v . '&';\n\t\t}\n\t\t$url = rtrim( $url, '&' );\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "548c70679e2afc11dba5f2dd812efa13", "score": "0.64505655", "text": "function conditionSQL(&$parameters);", "title": "" }, { "docid": "3027d4d2f0920c80646b117668a7e078", "score": "0.6435011", "text": "public function search(array $params);", "title": "" }, { "docid": "332847c4a87d27812778ba35f8feb5ec", "score": "0.6416294", "text": "protected function setWhereValuesArray(array $params) {\n foreach ($params as $field => $value) {\n if (is_array($value)) {\n //Condition like xxxx->getListRecordCond(array('id' => array(1,3)));\n $this->getQueryBuilder()->in($field, $value); // WHERE id IN (1, 3)\n } else {\n if (is_int($field)) {\n //Condition like xxxx->getListRecordCond(array('id'));\n $this->getQueryBuilder()->where($value); // WHERE id = ''\n } else {\n //Condition like xxxx->getListRecordCond(array('status' => 0));\n $this->getQueryBuilder()->where($field, $value); // WHERE status = 0\n }\n }\n }\n return $this;\n }", "title": "" }, { "docid": "797b591d91737e5f35e8649b461c29b4", "score": "0.64144444", "text": "public function query( $query, $params );", "title": "" }, { "docid": "c73c2285f023c3608d79c5755e9d80ff", "score": "0.64112085", "text": "public static function select($params){\n\t\tif(!isset($params['table'])){\n\t\t\treturn false;\n\t\t}\n\t\tif(!isset($params['rows']) or is_null($params['rows'])){\n\t\t\t$params['rows'] = '*';\n\t\t}else{\n\t\t\t$count = count($params['rows']);\n\t\t\tfor($i=0;$i<$count;$i++){\n\t\t\t\t$params['rows'][$i] = addslashes($params['rows'][$i]);\n\t\t\t}\n\t\t\t$params['rows'] = implode('`,`',$params['rows']);\n\t\t\t$params['rows'] = '`'.$params['rows'].'`';\n\t\t}\n\n\t\t$sql = 'SELECT '.$params['rows'].' FROM `'.addslashes($params['table']).'`';\n\t\t$sql2 = '';\n\t\tif(isset($params['where']) and is_array($params['where'])){\n\t\t\t$sql2 .= self::arrToSqlWhere($params['where']);\n\t\t}\n\t\t\n\t\tif(isset($params['order']) and is_array($params['order']))\n\t\t\t$sql2 .= ' ORDER BY `'.addslashes($params['order'][0]).'` '.addslashes($params['order'][1]);\n\t\tif(isset($params['limit']) and is_array($params['limit']))\n\t\t\t$sql2 .= ' LIMIT '.addslashes($params['limit'][0]).','.addslashes($params['limit'][1]);\n\t\t$sql .= $sql2;\n\t\t\n\t\treturn self::fq($sql);\n\t}", "title": "" }, { "docid": "e3d84a0594f4e1784d4816aa145e7049", "score": "0.6406854", "text": "function _where($parameters)\n\t{\n\t\t$valid_columns = array('layout_id', 'site_id', 'member_group', 'channel_id');\n\n\t\tforeach ($parameters as $column_name => $value)\n\t\t{\n\t\t\tif (in_array($column_name, $valid_columns))\n\t\t\t{\n\t\t\t\t$this->db->where($column_name, $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aca97fca06ae91754aea6f86e24c8c47", "score": "0.6391768", "text": "public function generateSQL($params=array()){\t\t\t\n\n\t\t$select = new hmdSqlSelect($this->_db, $this->_tbl, \"t\", true);\n\t\t$select->addField(\"*\",\"t\");\n\t\tif($params[\"id\"]){\n\t\t\t$select->where->addEquals(\"id\", $params[\"id\"], \"t\");\n\t\t\treturn $select;\n\t\t}\n\t\t\n\t\tif ($params[\"status\"]){\n\t\t\t$select->where->addEquals(\"status\", $params[\"status\"], \"t\");\n\t\t}\n\t\t\n\t\tif($params[\"transaction\"]){\n\t\t\t$select->where->addLike(\"transnum\", $params[\"transaction\"], \"t\", true);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn $select;\n\t}", "title": "" }, { "docid": "e416fddba1ff90de3117117691ff4218", "score": "0.63660383", "text": "public function deleteByParams($params = array()) {\n\n $start = microtime(true);\n\n $query = 'DELETE FROM `'. $this->table .'` WHERE ';\n\n try {\n if(is_array($params) AND count($params) > 0) {\n $i = 1;\n foreach ($params as $row => $value) {\n\n if(in_array($value, array('IS NULL'))) {\n $query .= \" `{$row}` IS NULL\";\n\n } else if(in_array($value, array('IS NOT NULL'))) {\n $query .= \" `{$row}` IS NOT NULL\";\n\n } else {\n $query .= \"`{$row}` = :{$row}\";\n }\n\n if ($i < count($params)) {\n $query .= \" AND \";\n }\n\n ++$i;\n }\n\n $queryParams = array();\n foreach ($params as $row => $value) {\n if(!in_array($value, array('IS NULL', 'IS NOT NULL'))) {\n $queryParams[\":{$row}\"] = $value;\n }\n }\n\n if(false) {\n Utils::printR($query);\n Utils::printR($queryParams, true);\n }\n\n if($this->exec($query, $queryParams)) {\n $this->stop($start, $query);\n return true;\n } else {\n $this->stop($start, $query);\n return false;\n }\n }\n\n } catch (Exception $e) {\n return Exceptionhandler::myErrorHandler($e->getCode(), $e->getMessage(), __FILE__, __LINE__, $e);\n }\n }", "title": "" }, { "docid": "48a96d17a167f32fe7826b46d7e4847a", "score": "0.6353577", "text": "function queryParameters($params=array())\n {\n if(isset($params['status']) && isset($params['status'])){\n $this->db->where(array('img_ads.status'=>$params['status']));\n }\n\n // filter by merchant Type\n if(isset($params['merchanttype']) && isset($params['merchanttype'])){\n $this->db->where(array('restaurants.merchanttype'=>$params['merchanttype']));\n }\n \n \n // filter by banner Type ; this would perform a general search like filter\n if(isset($params['bannertype']) && isset($params['bannertype'])){\n $this->db->where(array('bannertype.id'=>$params['bannertype']));\n }\n\n // filter by banner bannertypename ; this would perform a general search like filter\n if(isset($params['bannertypename']) && isset($params['bannertypename'])){\n $this->db->where(array('bannertype.bannertypename'=>$params['bannertypename']));\n }\n\n // filter by bannertype jollofsitetypeid ; this would perform a general search like filter\n if(isset($params['bannertypejollofsitetypeid']) && isset($params['bannertypejollofsitetypeid'])){\n $this->db->where(array('bannertype.jollofsitetypeid'=>$params['bannertypejollofsitetypeid']));\n }\n\n // filter by durationname ; this would perform a general search like filter\n if(isset($params['durationname']) && isset($params['durationname'])){\n $this->db->where(array('promo_duration.durationname'=>$params['durationname']));\n }\n\n // filter by promo banner id ; this would perform a general search like filter\n if(isset($params['bannertypeid']) && isset($params['bannertypeid'])){\n $this->db->where(array('img_ads.bannertypeid'=>$params['bannertypeid']));\n }\n\n // filter by Promo Price ; this would perform a general search like filter\n if(isset($params['promoprice']) && isset($params['promoprice'])){\n $this->db->where(array('promo_price.price'=>$params['promoprice']));\n }\n\n // filter by Promo Price Status ; this would perform a general search like filter\n if(isset($params['promopricestatus']) && isset($params['promopricestatus'])){\n $this->db->where(array('promo_price.status'=>$params['promopricestatus']));\n }\n\n // filter by promo user Type ; this would perform a general search like filter\n if(isset($params['usertype']) && isset($params['usertype'])){\n $this->db->where(array('img_ads.usertype'=>$params['usertype']));\n }\n\n // filter by Company name name; this would perform a general search like filter\n if(isset($params['companyname']) && isset($params['companyname'])){\n //$this->db->where(\"(restaurants.companynamee LIKE'%$params[companyname]%' OR restaurants.phone LIKE'%$params[companyname]%' OR restaurants.email LIKE'%$params[companyname]%')\");\n $this->db->where(array('restaurants.companyname'=>$params['companyname']));\n }\n\n // filter by merchant creation date\n if(isset($params['createdat']) && isset($params['createdat']))\n {\n //$t_date = explode(\"-\", $params['createdat']);\n //$startdate = date(\"yyyy-mm-dd\", strtotime($t_date[0]));\n //$enddate = date(\"yyyy-mm-dd\", strtotime($t_date[1]));\n //$this->db->where(array('img_ads.createdat >='=>$startdate, 'img_ads.createdat <='=>$enddate.' 23:59:59' ));\n $this->db->like('img_ads.createdat ',$params['createdat']);\n }\n }", "title": "" }, { "docid": "44bde1cf37cbc83eb1be4a02d0fbf484", "score": "0.6336851", "text": "public function setWhereClauseParams($query, array $params)\n {\n $count = 0;\n foreach ($params as $key => $param) {\n $queryString = $this->entitySimpleName . '.' . $key . '=:' . $key;\n\n if ($count == 0) {\n $query->where($queryString);\n continue;\n }\n\n $query->andWhere($queryString);\n\n }\n\n $query->setParameters($params);\n }", "title": "" }, { "docid": "1fad412645e2f4114e487e8056be3cb1", "score": "0.6321307", "text": "static function get_update($table, $params, $where = \"\") {\n\t\t\t$q = 'update ' . $table . ' set ';\n\t\t\t$pp = array();\n\t\t\tforeach ($params as $k => $v) {\n\t\t\t\t$pp[] = \"$k = $v\";\n\t\t\t}\n\t\t\t$q .= implode(\", \", $pp);\n\t\t\tif($where != \"\") {\n\t\t\t\t$q .= \" where $where\";\n\t\t\t}\n\t\t\treturn $q;\n\t\t}", "title": "" }, { "docid": "a04a54cfc5e9d27bd994fde05bc63a5a", "score": "0.63082194", "text": "public static function _prepare_filtering_params($params=array())\r\n {\r\n if (isset($params['query_params_match']))\r\n {\r\n if ($params['query_params_match'] != true)\r\n {\r\n throw new InvalidArgumentException('query_params_match can only be `True`');\r\n }\r\n }\r\n \r\n if (isset($params['query_person_match']))\r\n {\r\n if ($params['query_person_match'] != true)\r\n {\r\n throw new InvalidArgumentException('query_person_match can only be `True`');\r\n }\r\n }\r\n \r\n $outparams = array();\r\n \r\n if (isset($params['domain']))\r\n {\r\n $outparams[] = sprintf('domain:%s', $params['domain']);\r\n }\r\n\r\n if (isset($params['category']))\r\n {\r\n PiplApi_Source::validate_categories(array($params['category']));\r\n $outparams[] = sprintf('category:%s', $params['category']);\r\n }\r\n \r\n if (isset($params['sponsored_source']))\r\n {\r\n $outparams[] = sprintf('sponsored_source:%s', $params['sponsored_source'] ? 'true' : 'false');\r\n }\r\n \r\n if (isset($params['query_params_match']))\r\n {\r\n $outparams[] = 'query_params_match';\r\n }\r\n \r\n if (isset($params['query_person_match']))\r\n {\r\n $outparams[] = 'query_person_match';\r\n }\r\n \r\n $params['has_fields'] = isset($params['has_fields']) ? $params['has_fields'] : array();\r\n\r\n if (isset($params['has_field']))\r\n {\r\n $params['has_fields'][] = $params['has_field'];\r\n }\r\n \r\n // Make sure we only take the class name for the string\r\n $params['has_fields'] = array_filter($params['has_fields'], create_function('$x', 'return strpos((string)$x, \\'_\\') !== false;'));\r\n \r\n foreach ($params['has_fields'] as $x)\r\n {\r\n $splitted = explode('_', (string)$x);\r\n $outparams[] = sprintf('has_field:%s', $splitted[1]);\r\n }\r\n return $outparams;\r\n }", "title": "" }, { "docid": "b40708f487c9379d9261013fa79f61ed", "score": "0.6302152", "text": "static public function createInClausePlaceholders($params)\n {\n return implode(',', array_fill(0, count($params), '?'));\n }", "title": "" }, { "docid": "1aa7ad34bb0ba93211b641501f72f74e", "score": "0.63013035", "text": "public function findBy(array $params)\n {\n\n }", "title": "" }, { "docid": "ccd353374933c800513984b744144614", "score": "0.6289744", "text": "protected function fetchQuery(&$params)\n {\n }", "title": "" }, { "docid": "92062ab5effc361af1803a7a67b9810c", "score": "0.62893206", "text": "public function escape(&$params) {\n\n\t\tforeach ($params as $key => $param) {\n\t\t\tif (is_array($param)) {\n\t\t\t\t$this->escape($param);\n\t\t\t\t$params[$key] = '(' . implode(',', $param) . ')';\n\t\t\t} else if ($param === null) {\n\t\t\t\t$params[$key] = 'NULL';\n\t\t\t} else if ($param === false) {\n\t\t\t\t$params[$key] = \"0\";\n\t\t\t} else if ($param === true) {\n\t\t\t\t$params[$key] = \"1\";\n\t\t\t} else {\n\t\t\t\t$params[$key] = \"'\" . $this->mysqli->real_escape_string($param) . \"'\";\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "52cd1b62a38474e79aa36e24b5191b48", "score": "0.626967", "text": "function get_set($params)\n\t\t{\n\t\t\tif( !is_array( $params ) )\n\t\t\t{\n\t\t\t\t$this->register_error( 'get_set() parameter invalid. Expected array in '.__FILE__.' on line '.__LINE__);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$sql = array();\n\t\t\tforeach ( $params as $field => $val )\n\t\t\t{\n\t\t\t\tif ( $val === 'true' || $val === true )\n\t\t\t\t\t$val = 1;\n\t\t\t\tif ( $val === 'false' || $val === false )\n\t\t\t\t\t$val = 0;\n\n\t\t\t\tswitch( $val ){\n\t\t\t\t\tcase 'NOW()' :\n\t\t\t\t\tcase 'NULL' :\n\t\t\t\t\t $sql[] = \"$field = $val\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\t$sql[] = \"$field = '\".$this->escape( $val ).\"'\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn implode( ', ' , $sql );\n\t\t}", "title": "" }, { "docid": "8da06ff6e0697c253e3d9ef4676713f5", "score": "0.62608266", "text": "function findAll( $params = array() ){\n\t\t\n\t\t$conditions = '';\n\t\t\n\t\tif( array_key_exists('fields',$params) ){\n\t\t\t$fields = $this->_formatFields( $params['fields']);\n\t\t}\n\t\telse{\n\t\t\t$fields = $this->_formatFields();\n\t\t}\n\t\t\n\t\tif( array_key_exists('conditions',$params) ){\n\t\t\t$conditions = $this->_formatConditions($params['conditions']);\n\t\t}\n\t\n\t\tif( array_key_exists('order', $params) ){\n\t\t\t$conditions .= ' ORDER ' . $this->_formatOrder( $param['order'] );\n\t\t}\n\t\tif( array_key_exists('limit', $params) ){\n\t\t\t$conditions .= ' LIMIT ' . $params['limit'] ;\n\t\t}\n\t\t\n\t\t$query = sprintf(FR_SELECT,$fields, $this->tableName, $conditions );\n\t\t$this->debug( $query, 'Query');\n\t\treturn $this->query( $query );\n\t}", "title": "" }, { "docid": "2c88c0102fc030803b7ef632fa3ff2f0", "score": "0.6259718", "text": "public function get_by($params, $result_set='row') {\n if ($params) {\n if(is_array($params)){\n return self::result($this->db->get_where(static::$table_name, $params), get_called_class(),$result_set);\n //var_export( $query);die;\n }else{\n throw new Exception(\"parameters in get_by() must be passed as an array<br> sql: \" .$this->db->get_compiled_select());\n }\n }else{\n throw new Exception(\"No parameter is set for get_by() <br> sql: \" .$this->db->get_compiled_select());\n }\n }", "title": "" }, { "docid": "1f261cb599a1644f1dfc420e66372ba4", "score": "0.6258676", "text": "function bibdk_searchhistory_parse_params($params) {\n if (isset($params['cql'])) {\n return $params['cql'];\n }\n $string = '';\n\n $accepted_params = explode(',', variable_get('search_history_accepted_params', 'dkcclterm,term'));\n\n if (!empty($params['qe'])) {\n foreach ($params['qe'] as $param => $value) {\n if (_bibdk_searchhistory_accecpted_param($param, $accepted_params)) {\n if (!empty($string)) {\n $string .= '<br />';\n }\n $string .= $param . ' = ' . implode(', ', $value);\n }\n }\n }\n return $string;\n}", "title": "" }, { "docid": "7e39b0ce7bd2431a5d1b6ed7357e64fa", "score": "0.6240822", "text": "public function searchAllQuery($params)\n {\n $query = $this->baseSearch($params);\n $query->andWhere(['!=', self::tableName() . '.status', self::EXPRESSIONS_OF_INTEREST_WORKFLOW_STATUS_DRAFT]);\n return $query;\n }", "title": "" }, { "docid": "c0a38860df65503d5dacfeb0d54ce202", "score": "0.62272346", "text": "private static function fullFind(array $params) {\n $filtered = filter(Company::TABLE_FIELDS, $params);\n // query builder must be included in another file\n $qb = QueryBuilder::select(Company::TABLE_NAME, Company::TABLE_FIELDS);\n $first = true;\n foreach ($filtered as $field => $value) {\n if ($first) {\n $qb->where(Company::TABLE_NAME.\".{$field} = \\\"{$value}\\\"\");\n $first = false;\n } else {\n $qb->and(Company::TABLE_NAME.\".{$field} = \\\"{$value}\\\"\");\n }\n }\n\n return $qb->execute();\n }", "title": "" }, { "docid": "7668eb0d1ca2d34e469c682bbe3d1337", "score": "0.62062436", "text": "function dbQueryParam ($sql, $params, $max_rows = -1)\n {\n global $sql_evaluations;\n\n $results = dbQueryParam_helper ($sql, $params, $max_rows);\n\n // Debugging of SQL statements\n\n if (isSQLdebugger () && !preg_match (\"/^[ ]*SHOW /i\", $sql))\n {\n $explain_results = dbQueryParam_helper ('EXPLAIN ' . $sql, $params); // no limit on rows\n $sql_evaluations [] = array ( 'sql' => $sql, 'explanation' => $explain_results );\n } // end of isAdmin\n\n\n return $results;\n }", "title": "" }, { "docid": "ecea01039302d3214c7ac8d8cabc92e0", "score": "0.6196394", "text": "public function findBy(array $params)\n {\n $query = $this->newQuery();\n foreach ($params as $key => $value) {\n $query->where($key, '=', $value);\n }\n\n return $this->doQuery($query, false, false);\n }", "title": "" }, { "docid": "ad1c9d0e656cf460d945f816a29ad852", "score": "0.6168515", "text": "public function testRequestExecuteWithParams()\n {\n $statement = $this->generateStatement(\n 'SELECT * FROM contacts\n WHERE id = :id OR nickname = :nickname OR\n email = :email OR phone = :phone',\n [\n ':id' => 1,\n ':nickname' => 'name',\n ':email' => new \\DateTime(),\n ':phone' => null\n ]\n );\n $this->assertInstanceOf(Statement::class, $statement);\n }", "title": "" }, { "docid": "1e9b6225f2498f49ec61151088609675", "score": "0.61604375", "text": "abstract protected function do_query( $params );", "title": "" }, { "docid": "8499555790db34e60e44fe21d3612844", "score": "0.61505145", "text": "protected function prepareQuery(array $params)\n {\n $query = http_build_query(array_filter(\n array_merge($params, $this->getDefaultQueryParams())\n ));\n\n return empty($query) ? '' : '?'.$query;\n }", "title": "" }, { "docid": "3b1e18dbc55e58b2d2ba4c0c652bc47c", "score": "0.61394614", "text": "public function exec($sql, $params=array());", "title": "" }, { "docid": "ed9940e1f4225098350364677e0eaa13", "score": "0.6117769", "text": "abstract protected function query($parameters);", "title": "" }, { "docid": "993a2f13bf65c53ff5a04972f860e1ba", "score": "0.6103098", "text": "public function generateSQL($params=array()){\t\t\t\r\n\r\n\t\t$select = new hmdSqlSelect($this->_db, $this->_db->prefix . \"posts\", \"p\", true);\r\n\t\t$select->addField(\"*\",\"p\");\r\n\t\t$select->where->addEquals(\"post_status\", \"publish\", \"p\");\r\n\t\t$select->where->addEquals(\"post_type\", \"post\", \"p\");\r\n\t\t\r\n\t\t\r\n\t\t$searchWhere = new hmdSqlWhere(\"OR\");\r\n\t\t\r\n\t\tif($params[\"categories\"] && is_array($params[\"categories\"])){\r\n\t\t\t$select->addLeftJoin($this->mainFrame->db->prefix . \"term_relationships\", \"tr\", \"object_id\", \"p\", \"ID\");\r\n\t\t\t$select->addLeftJoin($this->mainFrame->db->prefix . \"term_taxonomy\",\"ttc\", \"term_taxonomy_id\", \"tr\", \"term_taxonomy_id\");\r\n\t\t\t$select->where->addEquals(\"taxonomy\", \"category\", \"ttc\");\t\t\t\r\n\t\t\r\n\t\t\t$cats = implode(\",\", $params[\"categories\"]);\r\n\t\t\t$searchWhere->addIn(\"term_id\", $cats, \"ttc\");\r\n\t\t}\r\n\t\t\r\n\t\tif($params[\"tags\"]){\r\n\t\t\t$select->addLeftJoin($this->mainFrame->db->prefix . \"term_relationships\", \"tr_tag\", \"object_id\", \"p\", \"ID\");\r\n\t\t\t$select->addLeftJoin($this->mainFrame->db->prefix . \"term_taxonomy\",\"tt_tag\", \"term_taxonomy_id\", \"tr_tag\", \"term_taxonomy_id\");\r\n\t\t\t$select->addLeftJoin($this->mainFrame->db->prefix . \"terms\",\"t\", \"term_id\", \"tt_tag\", \"term_id\");\r\n\t\t\t$select->where->addEquals(\"taxonomy\", \"post_tag\", \"tt_tag\");\r\n\r\n\t\t\t$params[\"tags\"] = trim(str_replace(\",\", '\",\"', $params[\"tags\"]));\r\n\t\t\t$params[\"tags\"] = '\"' . $params[\"tags\"] . '\"';\t\t\r\n\t\t\t$searchWhere->add(\"`t`.`name` IN ($params[tags])\");\t\t\t\r\n\t\t}\t\t\t\t\r\n\r\n\t\t// add the search text\r\n\t\tif (!empty($params[\"highlight\"])){\r\n\t\t\t$params[\"highlight\"] = jtUtility::cleanTxt($params[\"highlight\"], \"\");\r\n\t\t\t$searchWhere->addLike(\"post_title\", $params[\"highlight\"],\"p\", true);\r\n\t\t\t$searchWhere->addLike(\"post_excerpt\", $params[\"highlight\"],\"p\", true);\r\n\t\t\t$searchWhere->addLike(\"post_content\", $params[\"highlight\"],\"p\", true);\r\n\t\t\t$searchWhere->addLike(\"post_name\", $params[\"highlight\"],\"p\", true);\r\n\t\t}\r\n\r\n\t\t$select->where->addWhere($searchWhere);\r\n\t\t//echo $select->toString();\t\t\r\n\t\treturn $select;\r\n\t}", "title": "" }, { "docid": "e8d6a201b4de819ad884f099fa006ef1", "score": "0.60521775", "text": "public function updateQueryParameters(array &$params) {\n\t\t$fields = [];\n\t\t/** @var \\Modular\\Model|\\Quaff\\Interfaces\\Quaffable $model */\n\t\t$model = singleton($this->endpoint()->getModelClass());\n\t\tif ($model) {\n\t\t\t// TODO handle recursive mapping for arrays/collections.\n\t\t\t// add model fields which are in the field map to the parameters as a name=value entry.\n\t\t\t$fields += array_filter(\n\t\t\t\tarray_intersect_key(\n\t\t\t\t\t$model->toMap(),\n\t\t\t\t\tarray_flip(\n\t\t\t\t\t\tarray_keys(\n\t\t\t\t\t\t\t$model->quaffMapForEndpoint(\n\t\t\t\t\t\t\t\t$this->endpoint(),\n\t\t\t\t\t\t\t\tQuaffable::MapOwnFieldsOnly\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tfunction ($value) {\n\t\t\t\t\treturn urlencode(trim($value));\n\t\t\t\t}\n\t\t\t);\n\t\t\tforeach ($fields as $name => $value) {\n\t\t\t\t$params[$name] = $value;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "26ea168a47425d95b297f4510b441d82", "score": "0.60460675", "text": "public function filter(array $params)\n\t\t{\n\t\t\t// exit early if no params\n\t\t\tif(count($params) == 0)\n\t\t\t{\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t// filter\n\t\t\t$fields = $this->getFields('all');\n\t\t\t$fields = array_combine($fields, $fields);\n\t\t\t$where = array_intersect_key($params, $fields);\n\n\t\t\t// query\n\t\t\t$this->builder->where($where);\n\n\t\t\t// return\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "e26a9325606ab8aefb1adb03b9daf62b", "score": "0.60458964", "text": "private function getWhereAndParams($conditions=array())\n {\n $wheres = array();\n $params = array();\n $suffix = 0;\n if(isset($conditions['wheres']) && is_array($conditions['wheres'])>0 && count($conditions['wheres'])>0) {\n foreach($conditions['wheres'] as $k => $v) {\n $k_escaped = str_replace('.', 'DOT', $k);\n if(is_array($v) && count($v)>0) {\n $placeholders = array();\n foreach($v as $vv) {\n $placeholders[] = \":{$k_escaped}{$suffix}\";\n $params[\":{$k_escaped}{$suffix}\"] = $vv;\n $suffix++;\n }\n $implode_placeholders = implode(',', $placeholders);\n $wheres[] = \"{$k} IN({$implode_placeholders})\";\n } else {\n $wheres[] = \"{$k}=:{$k_escaped}\";\n $params[\":{$k_escaped}\"] = $v;\n }\n }\n }\n if(isset($conditions['wheres_not']) && is_array($conditions['wheres_not'])>0 && count($conditions['wheres_not'])>0) {\n foreach($conditions['wheres_not'] as $k => $v) {\n $k_escaped = str_replace('.', 'DOT', $k);\n if(is_array($v) && count($v)>0) {\n $placeholders = array();\n foreach($v as $vv) {\n $placeholders[] = \":{$k_escaped}{$suffix}\";\n $params[\":{$k_escaped}{$suffix}\"] = $vv;\n $suffix++;\n }\n $implode_placeholders = implode(',', $placeholders);\n $wheres[] = \"{$k} NOT IN({$implode_placeholders})\";\n } else {\n $wheres[] = \"{$k}!=:{$k_escaped}\";\n $params[\":{$k_escaped}\"] = $v;\n }\n }\n }\n\n $where = '';\n if(count($wheres)>0) {\n $where = 'WHERE '.implode(' AND ', $wheres);\n }\n\n return array(\n 'where' => $where,\n 'params' => $params,\n );\n }", "title": "" }, { "docid": "78e725e441d5f5b135b4dcdc909599a7", "score": "0.60419583", "text": "private function _interpolateQuery($sql, $params = array())\n {\n $keys = array();\n if(!is_array($params)) return $sql;\n\n foreach($params as $key => $value){\n if (is_string($key)) {\n $keys[] = '/:'.$key.'/';\n }else{\n $keys[] = '/[?]/';\n }\n }\n\n return preg_replace($keys, $params, $sql, 1, $count);\n }", "title": "" }, { "docid": "ed646641c48fa8bf110328acb24f1186", "score": "0.60401607", "text": "public function where(array $array) \n {\n \t$strQuery = '';\n\n \t//crear un array definitivo con los arrays anteriores\n \tforeach($array as $key => $value) {\n \t\tif (is_numeric($value)) {\n \t\t\t$value = '{table}.'.$key . ' = ' . \"{$value}\";\n \t\t}\n \t\telse{\n \t\t\t$value = '{table}.'.$key . ' = ' . \"'{$value}'\";\n \t\t}\n \t\t$strQuery .= $value . ' and ';\n \t}\n \t\n \t//creo el sql definitivo\n \t$this->where = rtrim($strQuery, ' and ');\n }", "title": "" }, { "docid": "d5c71f3b1fadcc49eaa7c2a69793f5cc", "score": "0.6028694", "text": "function whereArray($array, &$values) {\r\n $sql = \"\";\r\n if (!is_array($array)) {\r\n return \"$sql $array\";\r\n }\r\n foreach ($array as $name => $value) {\r\n $sql = \"$sql AND $name = :$name\";\r\n $values[$name] = $value;\r\n }\r\n return $sql;\r\n}", "title": "" }, { "docid": "5772bc5c91488ec100f96d98baf52d94", "score": "0.6014165", "text": "function getQuery($params = array(), $count = false)\n\t{\n\t\t#region Parametros\n\n\t\t#region Distinct\n\n\t\t$distinct = (array_key_exists(\"distinct\", $params) ? $params['distinct'] : false);\n\n\t\t#endregion\n\n\t\t#region Fields\n\n\t\tif ($count == true)\n\t\t\t$fields = \"count(*)\";\n\t\telse\n\t\t\t$fields = (array_key_exists(\"fields\", $params) ? implode(',', $params['fields']) : \"*\");\n\n\t\t#endregion\n\n\t\t#region From\n\n\t\t$from = (array_key_exists(\"from\", $params) ? $params['from'] : null);\n\n\t\t#endregion\n\n\t\t#region Where\n\n\t\t$where = (array_key_exists(\"where\", $params) ? $params['where'] : null);\n\t\t$orWhere = (array_key_exists(\"or_where\", $params) ? $params['or_where'] : null);\n\n\t\t#region Where In\n\n\t\t$whereIn = (array_key_exists(\"where_in\", $params) ? $params['where_in'] : null);\n\t\t$orWhereIn = (array_key_exists(\"or_where_in\", $params) ? $params['or_where_in'] : null);\n\n\t\t#endregion\n\n\t\t#region Where Not In\n\n\t\t$whereNotIn = (array_key_exists(\"where_not_in\", $params) ? $params['where_not_in'] : null);\n\t\t$orWhereNotIn = (array_key_exists(\"or_where_not_in\", $params) ? $params['or_where_not_in'] : null);\n\n\t\t#endregion\n\n\t\t#endregion\n\n\t\t#region Join\n\n\t\t//array('tabela'=> array('tabela.id = tabela2.id2','left'))\n\t\t//Option: left | right | outer | inner | left outer | right outer\t\t\t\n\t\t$join = (array_key_exists(\"join\", $params) ? $params['join'] : null);\n\n\t\t#endregion\n\n\t\t#region Group BY\n\n\t\t$groupBy = (array_key_exists(\"group_by\", $params) ? $params['group_by'] : null);\n\n\t\t#endregion\n\n\t\t#region Having\n\n\t\t$having = (array_key_exists(\"having\", $params) ? $params['having'] : null);\n\t\t$orHaving = (array_key_exists(\"or_having\", $params) ? $params['or_having'] : null);\n\n\t\t#endregion\n\n\t\t#region Like \n\n\t\t$like = (array_key_exists(\"like\", $params) ? $params['like'] : null);\n\t\t$likeMatch = (array_key_exists(\"like_match\", $params) ? $params['like_match'] : \"\");\n\t\t//Side: before -> %match | after -> match% | none -> match | both -> %match%\n\t\t$likeSide = (array_key_exists(\"like_side\", $params) ? $params['like_side'] : \"both\");\n\n\t\t#region Or Like\n\n\t\t$orLike = (array_key_exists(\"or_like\", $params) ? $params['or_like'] : null);\n\t\t$orLikeMatch = (array_key_exists(\"or_like_match\", $params) ? $params['or_like_match'] : \"\");\n\t\t//Side: before -> %match | after -> match% | none -> match | both -> %match%\n\t\t$orLikeSide = (array_key_exists(\"or_like_side\", $params) ? $params['or_like_side'] : \"both\");\n\n\t\t#endregion\n\n\t\t#region Not Like\n\n\t\t$notlike = (array_key_exists(\"not_like\", $params) ? $params['not_like'] : null);\n\t\t$notlikeMatch = (array_key_exists(\"not_like_match\", $params) ? $params['not_like_match'] : \"\");\n\t\t//Side: before -> %match | after -> match% | none -> match | both -> %match%\n\t\t$notlikeSide = (array_key_exists(\"not_like_side\", $params) ? $params['not_like_side'] : \"both\");\n\n\t\t#endregion\n\n\t\t#region Not Or Like\n\n\t\t$notOrLike = (array_key_exists(\"not_or_like\", $params) ? $params['or_like'] : null);\n\t\t$notOrLikeMatch = (array_key_exists(\"not_or_like_match\", $params) ? $params['not_or_like_match'] : \"\");\n\t\t//Side: before -> %match | after -> match% | none -> match | both -> %match%\n\t\t$notOrLikeSide = (array_key_exists(\"not_or_like_side\", $params) ? $params['not_or_like_side'] : \"both\");\n\n\t\t#endregion\n\n\t\t#endregion\n\n\t\t#region Order By\n\t\tif ($count != true) {\n\t\t\t$orderBy = array_key_exists(\"order_by\", $params) ? $params['order_by'] : null;\n\t\t\t//Direction: ASC | DESC | RANDOM\n\t\t\t$orderByDirection = array_key_exists(\"order_by_direction\", $params) ? $params['order_by_direction'] : null;\n\t\t}\n\n\t\t#endregion\n\n\t\t#region Paginacao\n\n\t\tif ($count != true) {\n\t\t\t$limit = array_key_exists(\"limit\", $params) ? $params['limit'] : null;\n\t\t\t$offset = array_key_exists(\"offset\", $params) ? $params['offset'] : null;\n\t\t}\n\n\t\t#endregion\n\n\t\t#endregion\n\n\t\t#region Comandos\n\n\t\t$db = db_connect('default');\n\t\t$builder = $db->table($from);\n\n\t\t#region SELECT\n\n\t\t$builder->select($fields);\n\n\t\t#endregion\n\n\t\t#region DISTINCT\n\n\t\tif ($distinct == true) {\n\t\t\t$builder->distinct();\n\t\t}\n\n\t\t#endregion\n\n\t\t#region WHERE\n\n\t\tif ($where != null) {\n\t\t\tforeach ($where as $key => $value) {\n\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t$builder->where($key, $value);\n\t\t\t}\n\t\t\tif ($orWhere != null) {\n\t\t\t\tforeach ($orWhere as $key => $value) {\n\t\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t\t$builder->orWhere($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//WHERE IN\n\t\tif ($whereIn != null) {\n\t\t\tforeach ($whereIn as $key => $value) {\n\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t$builder->whereIn($key, $value);\n\t\t\t}\n\t\t\tif ($orWhereIn != null) {\n\t\t\t\tforeach ($orWhereIn as $key => $value) {\n\t\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t\t$builder->orWhereIn($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//WHERE NOT IN\n\t\tif ($whereNotIn != null) {\n\t\t\tforeach ($whereNotIn as $key => $value) {\n\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t$builder->whereNotIn($key, $value);\n\t\t\t}\n\t\t\tif ($orWhereNotIn != null) {\n\t\t\t\tforeach ($orWhereNotIn as $key => $value) {\n\t\t\t\t\tif ($value != null && $value != '')\n\t\t\t\t\t\t$builder->orWhereNotIn($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t#endregion\n\n\t\t#region JOIN\n\n\t\tif ($join != null) {\n\n\t\t\t//array('tabela'=> array('tabela.id = tabela2.id2','left')),//Option: left | right | outer | inner | left outer | right outer\t\t\t\n\t\t\tforeach ($join as $key => $value) {\n\t\t\t\tif ($value[0] != null && $value[1] != null) {\n\t\t\t\t\t$builder->join($key, $value[0], $value[1]);\n\t\t\t\t\t//print_r($key . ' ON ' . $value[0]. ' OPTION ' .$value[1]);\n\t\t\t\t\t//die;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t#endregion\n\n\t\t#region LIKE\n\n\t\tif ($like != null && $likeMatch != null && $likeSide != null) {\n\t\t\t$indiceLike = 0;\n\t\t\t$indiceOrLike = 0;\n\n\t\t\tforeach ($like as $value) {\n\t\t\t\tif ($value != null && $likeMatch[$indiceLike] != null && $likeSide[$indiceLike] != null) {\n\t\t\t\t\t$builder->like($value, $likeMatch[$indiceLike], $likeSide[$indiceLike]);\n\t\t\t\t}\n\t\t\t\t$indiceLike++;\n\t\t\t}\n\n\t\t\tif ($orLike != null && $orLikeMatch != null && $orLikeSide != null) {\n\t\t\t\tforeach ($orLike as $value) {\n\t\t\t\t\tif ($value != null && $orLikeMatch[$indiceOrLike] != null && $orLikeSide[$indiceOrLike] != null) {\n\t\t\t\t\t\t$builder->orLike($value, $orLikeMatch[$indiceOrLike], $orLikeSide[$indiceOrLike]);\n\t\t\t\t\t}\n\t\t\t\t\t$indiceOrLike++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//NOT LIKE\n\n\t\tif ($notlike != null && $notlikeMatch != null && $notlikeSide != null) {\n\t\t\t$indiceNotlike = 0;\n\t\t\t$indiceNotOrLike = 0;\n\n\t\t\tforeach ($notlike as $value) {\n\t\t\t\tif ($value != null && $notlikeMatch[$indiceNotlike] != null && $notlikeSide[$indiceNotlike] != null) {\n\t\t\t\t\t$builder->notLike($value, $notlikeMatch[$indiceNotlike], $notlikeSide[$indiceNotlike]);\n\t\t\t\t}\n\t\t\t\t$indiceNotlike++;\n\t\t\t}\n\n\t\t\tif ($notOrLike != null && $notOrLikeMatch != null && $notOrLikeSide != null) {\n\t\t\t\tforeach ($notOrLike as $value) {\n\t\t\t\t\tif ($value != null && $notOrLikeMatch[$indiceNotOrLike] != null && $notOrLikeSide[$indiceNotOrLike] != null) {\n\t\t\t\t\t\t$builder->orNotLike($value, $notOrLikeMatch[$indiceNotOrLike], $notOrLikeSide[$indiceNotOrLike]);\n\t\t\t\t\t}\n\t\t\t\t\t$indiceNotOrLike++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t#endregion\t\n\n\t\t#region GROUP BY\n\n\t\t//having so funciona se tiver group\n\t\tif ($groupBy != null) {\n\t\t\tforeach ($groupBy as $value) {\n\t\t\t\t$builder->groupBy($value);\n\t\t\t}\n\t\t}\n\n\t\t#endregion\n\n\t\t#region HAVING\n\n\t\t//having so funciona se tiver group\n\t\tif ($groupBy != null && $having != null) {\n\t\t\t$builder->having($having);\n\n\t\t\tif ($orHaving != null) {\n\t\t\t\t$builder->orHaving($orHaving);\n\t\t\t}\n\t\t}\n\n\t\t#endregion\n\n\t\t#region ORDER BY\t\t\n\t\tif ($count != true && $orderBy != null && $orderByDirection != null) {\n\t\t\t$builder->orderBy($orderBy, $orderByDirection);\n\t\t}\n\n\t\t#endregion\n\n\t\t#region LIMIT\n\n\t\tif ($count != true && $limit != null) {\n\t\t\t$builder->limit($limit);\n\n\t\t\tif ($offset != null) {\n\t\t\t\t$builder->limit($limit, $offset);\n\t\t\t}\n\t\t}\n\n\t\t#endregion\n\n\t\t#endregion\n\n\t\t//Where para Soft Delete\n\t\tif ($this->deletedField != null) {\n\t\t\t$builder->where(($join != null ? ($from . '.' . $this->deletedField) : $this->deletedField) . ' IS NULL');\n\t\t}\n\n\t\t//Get records\n\t\t$results = $builder->get()->getResultArray();\n\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "9531a681c00cb632beac6027928fb077", "score": "0.6007423", "text": "public function convertBoundParams($sql, array $params=[]) {}", "title": "" }, { "docid": "955650f5601449222ee0faaadeb89a04", "score": "0.60019183", "text": "function where($statement, $params = null)\n {\n $this->where[] = $statement;\n\n // add param(s) to stack\n if ($params !== null) {\n if (is_array($params)) {\n foreach ($params as $param) {\n $this->params[] = $param;\n }\n } else {\n $this->params[] = $params;\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "5c45793282371136f0b894023675218d", "score": "0.5984537", "text": "static function offerFilterJoin($params){\n return \"of.`active`='1' AND ou.`active`='1' AND ( NOW() < of.`end_date`) AND of.`start_date` IS NOT NULL AND of.`end_date` IS NOT NULL\";\n }", "title": "" }, { "docid": "fd7c6590913a9d0115057ad032292a82", "score": "0.598278", "text": "public function query(string $sql, array $params=[]) {\n // Original Parameter in Methoden/Funktionen IMMER unangetastet lassen\n /**\n * str_replace tauscht die ? aus dem SQL-Query gegen %s.\n * vsprintf iteriert das in $params übergebene Array und tauscht der Reihe nach die %s aus dem String \n * gegen den Inhalt des Arrays\n */\n $sqlNew = str_replace('?', \"'%s'\", $sql);\n $sqlNew = vsprintf($sqlNew, $params);\n\n\n //$sqlNew = vsprintf($sqlNew, $newParams);\n $res = $this->connection->query($sqlNew);\n\n if ($res === false) {\n $this->error = $this->connection->error;\n $this->errorNo = $this->connection->connect_errno;\n }\n \n return $res;\n }", "title": "" }, { "docid": "495c38acccb9f7e86d8320e930d7c779", "score": "0.5974878", "text": "public function setWhere($query, $dtParams, $allFields)\n {\n $searchVal = $dtParams['search']['value'];\n $sWhere = '';\n\n //It will add where condition for those which are\n if (!empty($searchVal))\n {\n $searchData = $searchVal . '%';\n $searchDataArray = array();\n\n foreach ($dtParams['columns'] as $key => $eachCol)\n {\n if ('true' === $eachCol['searchable'])\n {\n $usedFieldName = $dtParams['columns'][$key]['data'];\n $dbCol = $allFields[$usedFieldName];\n\n $sWhere .= $dbCol . ' LIKE ? OR ';\n $searchDataArray[] = $searchData;\n }\n }\n\n $query->whereRaw(rtrim($sWhere, ' OR'), $searchDataArray);\n }\n return $query;\n }", "title": "" }, { "docid": "6118d94919825a711c20c5c16d4cf154", "score": "0.5974785", "text": "public function get_sql_filter($extra='', array $params=null) {\n list($wherefilter, $whereparams) = $this->get_sql_where($extra, $params);\n list($havingfilter, $havingparams) = $this->get_sql_having($extra, $params);\n\n if ($this->_optionsform) {\n list($optionsfilter, $optionsparams) = $this->_optionsform->get_sql();\n $wherefilter .= $optionsfilter;\n $whereparams += $optionsparams;\n }\n\n // remove empty \" AND \" conditions at start, middle and end of filter\n $search = array('/^(?: AND )+/', '/(<= AND )(?: AND )+/', '/(?: AND )+$/');\n\n $wherefilter = preg_replace($search, '', $wherefilter);\n $havingfilter = preg_replace($search, '', $havingfilter);\n\n if ($whereparams || $havingparams) {\n if ($params===null) {\n $params = array();\n }\n if ($whereparams) {\n $params += $whereparams;\n }\n if ($havingparams) {\n $params += $havingparams;\n }\n }\n\n return array($wherefilter, $havingfilter, $params);\n }", "title": "" }, { "docid": "918e9797aff9113addd77cd9b9c5d363", "score": "0.597478", "text": "protected function prepareSearch(Params $params)\n {\n }", "title": "" }, { "docid": "8d32dc9d8f6e78c026b02034ed3f1d70", "score": "0.5974171", "text": "public static function generateQueryParameters(array $params): string {\n if ( ! $params) {\n return '';\n }\n\n return '/?' . http_build_query($params);\n }", "title": "" }, { "docid": "efd2bc94ae7696f1e700369ce2532937", "score": "0.59731764", "text": "public function buildQueryFromParameters($builder, array $input)\n {\n \n $this->checkBuilderType($builder);\n\n $searchParams = $input['searchParams'];\n \n //initial query custom condition\n $builder = $builder->where(\n $searchParams[$this->SEARCH_PROPERTY_KEY],\n $searchParams[$this->SEARCH_OPERATOR_KEY],\n $searchParams[$this->SEARCH_VALUE_KEY]\n );\n\n return $builder;\n\n }", "title": "" }, { "docid": "d2ab47bab027f5fc0598d2558d94ac13", "score": "0.59726715", "text": "public static function build_http_query( $params ) {\n\t\tif ( ! $params )\n\t\t\treturn '';\n\n\t\t// Urlencode both keys and values.\n\t\t$keys = OAuthUtil::urlencode_rfc3986( array_keys( $params ) );\n\t\t$values = OAuthUtil::urlencode_rfc3986( array_values( $params ) );\n\t\t$params = array_combine( $keys, $values );\n\n\t\t// Parameters are sorted by name, using lexicographical byte value ordering.\n\t\t// Ref: Spec: 9.1.1 (1)\n\t\tuksort( $params, 'strcmp' );\n\n\t\t$pairs = array();\n\t\tforeach ( $params as $p => $v ) {\n\t\t\tif ( is_array( $v ) ) {\n\t\t\t\t// If two or more parameters share the same name, they are sorted by their value.\n\t\t\t\t// Ref: Spec: 9.1.1 (1).\n\t\t\t\tsort( $v, SORT_STRING );\n\t\t\t\tforeach ( $v as $duplicate_v )\n\t\t\t\t\t$pairs[] = $p . '=' . $duplicate_v;\n\t\t\t} else {\n\t\t\t\t$pairs[] = $p . '=' . $v;\n\t\t\t}\n\t\t}\n\n\t\t// For each parameter, the name is separated from the corresponding value by an '=' character (ASCII code 61).\n\t\t// Each name-value pair is separated by an '&' character (ASCII code 38).\n\t\treturn implode( '&', $pairs );\n\t}", "title": "" }, { "docid": "56a7a93d8953a973f1c3ab6dcc3e854f", "score": "0.5932164", "text": "function prepare($table,$params = false,$values = false,$get = \"all\", $on = \"select\", $wheres = false, $is = null, $orderBy = null,$from = 'static',$options = null)\n\t\t{\n\t\t\tif($params)\n\t\t\t{\n\t\t\t\t//create a snippet for each type of params we may need.\n\t\t\t\t$insertParams = (count($params) > 1) ? implode('`,`', $params) : false;\n\t\t\t\t$updateParams = (count($params) > 1) ? implode('` = ?, `', $params) : false;\n\t\t\t\t$whereParams = ((count($params) > 1) && ($wheres)) ? implode('` = ? AND `', $wheres) : false;\n\t\t\t}\n\n\t\t\t$selectParams = ((count($wheres) >= 1) && ($wheres)) ? implode('` = ? AND `', $wheres) : false;\n\n\t\t\t//if we are doing a where lets add it to a find by array\n\t\t\tif(($wheres) && ($on != 'select'))\n\t\t\t{\n\t\t\t\t$findBy = array();\n\t\t\t\t//while we are listing a where for each wheres\n\t\t\t\tforeach($wheres as $col=>$where)\n\t\t\t\t{\t\n\t\t\t\t\t//add the col number to the findby and set the value of the passed in values to it.\n\t\t\t\t\t$findBy[$col] = ($from == 'static') ? $values[$where] : $options[$where];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//create a specific dlimiter so we can implode the array to a string than explode it back out to array, this will eliminate any keys we dont use (saving process)\n\t\t\t$values = (is_string($values)) ? explode('[--block--]', implode('[--block--]', $values)) : ($values) ? $values : false;\n\n\t\t\t//if we need to find by, merge it to the values as with pdo we will append a where clause to the q statement\n\t\t\t$values = ($values) ? ((isset($findBy)) ? array_merge($values,$findBy) : $values) : $is;\n\n\t\t\t//this will hold the \"?\" params that we need\n\t\t\t$secure = array();\n\n\t\t\t//we will count based off values as it also accounts for any where clauses we may merge.\n\t\t\tfor($i = 0;$i < count($values);$i++)\n\t\t\t{\n\t\t\t\t$secure[$i] = \"?\";\n\t\t\t}\n\t\t\t//implode them to string so that we can use them with mysql.\n\t\t\t$secure = implode(',', $secure);\n\t\t\t//statements we might need to use with the query\n\t\t\t\t\n\t\t\t$insert = (isset($insertParams)) ? \"INSERT INTO $table (`$insertParams`) VALUES ($secure)\" : false;\n\t\t\t$update = (isset($updateParams)) ? \"UPDATE $table SET `$updateParams` = ? WHERE `$whereParams` = ?\" : false;\n\t\t\t$select = (!is_string($selectParams)) ? \"SELECT * FROM $table $this->limit\" : \"SELECT * FROM $table WHERE `$selectParams` = ? $this->limit\";\n\t\t\t//switch on query type\n\t\t\tswitch($on)\n\t\t\t{\n\t\t\t\tcase \"insert\":\n\t\t\t\t\t$q = $insert;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"update\":\n\t\t\t\t\t$q = $update;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$q = $select;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$values = (is_null($values)) ? null : array_values($values);\n\n\t\t\t$q = ($orderBy) ? \"$q ORDER BY $orderBy\" : $q;\n\n\t\t\t$query = array(\"sql\" => $q,\n\t\t\t\t\t\t\t\"values\" => $values,\n\t\t\t\t\t\t\t\"get\" => $get);\n\n\t\t\t// print_r($query);\n\n\t\t\treturn $this->doThis($query);\n\t\t}", "title": "" }, { "docid": "0894f4e4e3a8d821cbfcbc3b537b9f4f", "score": "0.59287083", "text": "public function execute( $query, $params );", "title": "" }, { "docid": "775f56642c1bb7ebe2f14cc28a172c90", "score": "0.5925429", "text": "function magic_multisql_where($conn, $input_where_json)\n{\n\tglobal $where_str;\n\n$json_where_array = json_decode($input_where_json, true);\n\n\n\t$magic_where_str=array();\n\n\tforeach ($json_where_array as $key => $value) \n\t{\n\n\t\tif($json_where_array[$key]==\"?\"){\n\n\t\t\t$magic_where_str[]=\"`\".$key.\"`='\".mysqli_real_escape_string($conn, $_POST[\"txt_\".$key]).\"'\";\n\n\t\t}else{\n\n\t\t\t$magic_where_str[]=\"`\".$key.\"`='\".mysqli_real_escape_string($conn, $json_where_array[$key]).\"'\";\n\n\t\t}\n\n\t}\n\n\t$prepared_where_str=implode(\" AND \", $magic_where_str);\n\n\t$where_str=$prepared_where_str;\n\n\treturn $where_str;\n\n}", "title": "" }, { "docid": "40212d71e312a95a9cb5ee55684c0d99", "score": "0.59221965", "text": "function insert_params($query,$params) {\r\n\t\t\r\n\t\t$chars=$perrors=array(); \r\n\t\t$ch= range('a','z'); $ch[]= '_'; \t\r\n\t\tforeach($ch as $c) {$chars[$c]=1;}\r\n\r\n\t\t$i=$m=0; $out=$p=''; \r\n\t\twhile ($i<strlen($query)) {\r\n\t\t\t$l= substr($query,$i,1);\r\n\t\t\tif ($m) {\r\n\t\t\t\tif (isset($chars[$l])) $p.=$l;\r\n\t\t\t\telse {\r\n\t\t\t\t\tif ($p and isset($params[$p])) {\r\n\t\t\t\t\t\t$sql_p= $this->quote($params[$p]);\r\n\t\t\t\t\t\t$len_r= strlen($sql_p);\r\n\t\t\t\t\t\t$out.= $sql_p.$l;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse $out.=\":$l$p\";\r\n\t\t\t\t\t$m=0;$p='';\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\telseif ($l==':') $m=1;\r\n\t\t\telse $out.=$l;\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\tif ($perrors) {\r\n\t\t\t$this->error= implode(\",\", $perrors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "e2424333974f50f1d576202e00d8ac9b", "score": "0.5917746", "text": "private function buildQuery($table,$params,$skipMore=false) {\n\t\t$columns = $this->showColumns($table);\n\t\t\n\t\t$skipFields = array(\"id\",\"password\",\"fk_customer\");\n\t\tif ($skipMore)\n\t\t{\n\t\t\tforeach ($skipMore as $key => $value) \n\t\t\t{\n\t\t\t\tarray_push($skipFields,$value);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//create query\n\t\t$queryAdd = '';\n\t\tforeach ($columns as $columnKey => $columnVal) \n\t\t{\n\t\t\t\n\t\t\tif (!in_array($columnVal['Field'], $skipFields))\n\t\t\t{\n\t\t\t\t//state is a checkbox with enum value\n\t\t\t\tif ($columnVal['Field']=='state' || $columnVal['Field']=='is_menu')\n\t\t\t\t{\n\t\t\t\t\tif (isset($params[$columnVal['Field']]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$queryAdd .= $columnVal['Field'].\"=1,\";\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$queryAdd .= $columnVal['Field'].\"=0,\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ($columnVal['Field']=='publish_date' || $columnVal['Field']=='archive_date')\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t($columnVal['Field']=='publish_date' && empty($params[$columnVal['Field']]))? ($params[$columnVal['Field']]= date(\"Y-m-d H:i:s\")):false;\n\t\t\t\t\t\n\t\t\t\t\tif ($columnVal['Field']=='archive_date' && empty($params[$columnVal['Field']]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$queryAdd .= $columnVal['Field'].\"='0000-00-00 00:00:00',\";\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$params[$columnVal['Field']] = str_replace(\"/\", \"-\",$params[$columnVal['Field']]);\n\t\t\t\t\t\tif (!empty($params[$columnVal['Field']]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$queryAdd .= $columnVal['Field'].\"='\".date(\"Y-m-d H:i:s\", strtotime($params[$columnVal['Field']])).\"',\";\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ($columnVal['Field']=='page_url' && strpos($params[$columnVal['Field']], \"/\")===false)\n\t\t\t\t{\n\t\t\t\t\t$queryAdd .= $columnVal['Field'].\"='/\".$params[$columnVal['Field']].\"',\";\n\t\t\t\t}\n\t\t\t\telse if (isset($params[$columnVal['Field']]) && !in_array($columnVal['Field'], $skipFields))\n\t\t\t\t{\n\t\t\t\t\t$queryAdd .= $columnVal['Field'].\"='\".$params[$columnVal['Field']].\"',\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $queryAdd;\n\t\n\t}", "title": "" }, { "docid": "1ff1960bd154e505aaf92a1b5355d2dd", "score": "0.59067714", "text": "private function _generateWhere($where = [])\n {\n if (count($where) == 0) return NULL;\n\n $count = 0;\n $req = ' WHERE ';\n foreach ($where as $key => $value) {\n if ($count > 0) $req .= ' AND ';\n $count++;\n $req .= $key . '=?';\n $this->_params[] = $value;\n }\n return $req;\n }", "title": "" }, { "docid": "55c9f52bf892b01d51844ce34286012b", "score": "0.5897502", "text": "function orderbox_http_build_query($params)\n\t{\n\t\t$params_str = array();\n\n\t\tforeach ($params as $key => $value)\n\t\t{\n\t\t\t$key = rawurlencode($key);\n\t\t\tif (is_array($value)) $params_str[] = \"$key=\".implode(\"&$key=\", $value);\n\t\t\telse $params_str[] = \"$key=\".urlencode($value);\n\t\t}\n\n\t\treturn implode('&', $params_str);\n\t}", "title": "" }, { "docid": "7d74e5b99eb426b32773a822d98514b9", "score": "0.5878633", "text": "public static function prepareParamsForQuery(array $params) : array {\n\n foreach ($params as $key => &$value) {\n switch ($key) {\n // 1-dimension json arrays\n case 'competitorExp':\n case 'teacherDesc':\n foreach ($value as $key2 => $value2) {\n $params[\"{$key}_{$key2}\"] = $value2;\n }\n unset($params[$key]);\n break;\n // 2-dimension json arrays\n case 'languages':\n foreach ($value as $key2 => $value2) {\n if (strpos($key2, 'Other') !== false) {\n $params[\"{$key}_{$key2}\"] = \"'%$value2%'\";\n } else {\n foreach ($value2 as $key3 => $value3) {\n $params[\"{$key}_{$key2}_{$key3}\"] = $value3;\n }\n }\n }\n unset($params[$key]);\n break;\n }\n }\n\n return $params;\n\n }", "title": "" }, { "docid": "75d8ed3f9afc76c3e6c88ffaa9f60d0a", "score": "0.58753127", "text": "function makeSQL(){\n\t\t\t$search = $this->getSearchString();\n\t\t\t$fields = $this->getFields();\n\t\t\t\n\t\t\tif($search!=\"\"){\n\t\t\t\t//build array from input..\n\t\t\t\t$params = split(\" \", $search);\n\t\t\t\t$InQuotedString = 0;\n \n\t\t\t\t//now, build tokens from array (watch the \"\")\n\t\t\t\t$tokNum = 0;\n\t\t\t\t$tokens = array();\n \n\t\t\t\t$tokens[$tokNum] = \"\";\n\t\t\t\tfor($i=0;$i<count($params);$i++){\n\t\t\t\t\tif(isset($tokens[$tokNum])){\n\t\t\t\t\t\t$tokens[$tokNum] = \"\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$param = $params[$i];\n\t\t\t\t\tif(ereg(\"^\\\"\",$param) || ereg(\"^[+-]\\\"\",$param)){\n \t\t$InQuotedString = 1;\n \t\t}\n \n\t\t\t\t\tif($InQuotedString==1){\n\t\t\t\t\t\t$tokens[$tokNum] .= ereg_replace(\"\\\"\",\"\",$param) . \" \";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$tokens[$tokNum++] = $param;\n\t\t\t\t\t}\n \n\t\t\t\t\tif(ereg(\"\\\"$\", $param)){\n\t\t\t\t\t\t$InQuotedString = 0;\n\t\t\t\t\t\t$tokens[$tokNum] = chop($tokens[$tokNum]);\n\t\t\t\t\t\t$tokNum++;\n\t\t\t\t\t} \n\t\t\t\t}//end for \n \n\t\t\t\t//build SQL\n\t\t\t\t$SQL = \"\";\t\t\t\t\t\t\t\t\n\n\t\t\t\tfor($i=0; $i<count($tokens); $i++){\n\t\t\t\t\tfor($x=0; $x<count($fields); $x++){\n\t\t\t\t\t\t$token = ereg_replace(\" $\", \"\", $tokens[$i]);\n\t\t\t\t\t\tif(ereg(\"^\\\\+\",$token)){\n\t\t\t\t\t\t\t$token = ereg_replace(\"^\\\\+\",\"\",$token);\n\t\t\t\t\t\t\t$SQL .= \"$fields[$x] like '%$token%'\";\n\t\t\t\t\t\t\tif($x<count($fields)-1){\n\t\t\t\t\t\t\t\t$SQL .= \" OR \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}elseif(ereg(\"^\\\\-\",$token)){\n\t\t\t\t\t\t\t$token = ereg_replace(\"^\\\\-\",\"\",$token);\n\t\t\t\t\t\t\t$SQL .= \"$fields[$x] NOT like '%$token%'\";\n\t\t\t\t\t\t\tif($x<count($fields)-1){\n\t\t\t\t\t\t\t\t$SQL .= \" AND \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$SQL .= \"$fields[$x] like '%$token%'\";\n\t\t\t\t\t\t\tif($x<count($fields)-1){\n\t\t\t\t\t\t\t\t$SQL .= \" OR \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n \t\t}//end inner for\n \n\t\t\t\t\tif($i<count($tokens)-1){\n\t\t\t\t\t\t$SQL .= \") AND (\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$SQL .= \")\";\n\t\t\t\t\t}\n \t\t}//end outer for\n\t\t\t\t\n\t\t\t\t//check constraints\n\t\t\t\tif($this->getConstraints()){\n\t\t\t\t\t$SQL .= \" AND \" . $this->getConstraints(1);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t//check groups\n\t\t\t\tif($this->getGroup()){\n\t\t\t\t\t$SQL .= \" GROUP BY \" . $this->getGroup();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check order by\n\t\t\t\tif($this->getOrder()){\n\t\t\t\t\t$SQL .= \" ORDER BY \" . $this->getOrder(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check limits\n\t\t\t\tif($this->getLimitEnd()){\n\t\t\t\t\t$SQL .= \" LIMIT \" . $this->getLimitStart() . \", \" . $this->getLimitEnd();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$SQL = \"SELECT \" . $this->getSelect(1) . \" FROM \" . $this->getTable() . \" WHERE (\" . $SQL;\n\t\t\t\t\n\t\t\t\t$this->sql = $SQL;\n\t\t\t\treturn $SQL;\n\t\t\t\t\n \t\t}else{\n\t\t\t\t//check constraints\n\t\t\t\tif($this->getConstraints()){\n\t\t\t\t\t$SQL .= \" WHERE \" . $this->getConstraints(1);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t//check groups\n\t\t\t\tif($this->getGroup()){\n\t\t\t\t\t$SQL .= \" GROUP BY \" . $this->getGroup();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check order by\n\t\t\t\tif($this->getOrder()){\n\t\t\t\t\t$SQL .= \" ORDER BY \" . $this->getOrder(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check limits\n\t\t\t\tif($this->getLimitEnd()){\n\t\t\t\t\t$SQL .= \" LIMIT \" . $this->getLimitStart() . \", \" . $this->getLimitEnd();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$SQL = \"SELECT \" . $this->getSelect(1) . \" FROM \" . $this->getTable() . $SQL;\n\t\t\t\t$this->sql = $SQL;\n\t\t\t\treturn $SQL;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a2ef6acb445fff4f6f0250db56e2f902", "score": "0.58751416", "text": "public function test_build_sql_search_query(){\n $search= new search('sem001');\n //select all column\n $search->select(); \n //filter\n $search->setSqlfilter('institution','Obafemi Awolowo University');\n //sort\n $search->sortResultBy('date');\n //sort direction\n $search->sortDirection('ASC');\n //limit result to 3\n $search->setResultLimit(3);\n //offset result by 2\n $search->setOffset(2);\n \n //build search string\n $search->buildQuery();\n $output=$search->get_sql_query_string();\n //expected query\n $query=\"select * from courses where (institution like :searchterm or course_code like :searchterm or course_title like :searchterm or department like :searchterm) and institution=:institution order by :sortby ASC LIMIT :limit OFFSET :offset\";\n //assert\n $this->assertEquals($query,$output,\"expecting $query\");\n\n $outputparam=$search->get_sql_query_param_array();\n //expected query\n $param=[':searchterm' => '%sem001%',':institution' => 'Obafemi Awolowo University',':sortby' => 'when_added',':limit' => 3,':offset' => 2];\n //assert\n $this->assertEquals($param,$outputparam,\"expecting parameterised array\");\n }", "title": "" }, { "docid": "51204d0740dcc0ace972d7c2c5a76792", "score": "0.5874518", "text": "function comb_query_where($data) {\n\t$query_where = \"\";\n\tif (is_array ( $data )) {\n\t\tforeach ( $data as $key => $value ) {\n\t\t\tif (! empty ( $value )) {\n\t\t\t\t$query_where .= \" and \" . get_real_column_name ( $key ) . \" like '%$value%' \";\n\t\t\t}\n\t\t}\n\t}\n\treturn $query_where;\n}", "title": "" }, { "docid": "484e2cbba1b3e65c4a6e26a0b87b447f", "score": "0.5845018", "text": "protected function getQuery(array $params)\n {\n $query = $this->traduccion->newQuery();\n if(! is_null($params['clave']))\n {\n $query->where('clave', 'LIKE', '%' . $params['clave'] . '%');\n }\n\n return $query;\n }", "title": "" }, { "docid": "f09a50c7686cc4d4f1e7a41cd48daacb", "score": "0.5842961", "text": "public function build_where($where) {\n if (empty($where)) {\n return '';\n }\n $where_sql = '';\n $comma = '';\n foreach ($where as $k => $v) {\n if (is_array($v) && isset($v[0])) {\n if (!isset($v[2]) && !is_array($v[1])) {\n //array('d', 4)\n $tmp_value = $this->raw_quote($v[1]);\n if (empty($tmp_value)) {\n $tmp_value = '';\n }\n $where_sql .= $comma . \" `\" . addslashes($v[0]) . \"` = \" . $tmp_value;\n }if (isset($v[2]) && !isset($v[3])) {\n //array('a', '>', 1),\n $tmp_value = $this->raw_quote($v[2]);\n if (empty($tmp_value)) {\n $tmp_value = '';\n }\n $where_sql .= $comma . \" `\" . addslashes($v[0]) . \"` {$v[1]} \" . $tmp_value;\n } elseif (isset($v[3])) {\n //array('and', 'b', '!=', '2'),\n $tmp_value = $this->raw_quote($v[3]);\n if (empty($tmp_value)) {\n $tmp_value = '';\n }\n $where_sql .= $comma . \" \" . addslashes($v[0]) . \" `\" . addslashes($v[1]) . \"` {$v[2]} \" . $tmp_value;\n } elseif (is_array($v[1])) {\n $where_sql .= $comma . \" \" . addslashes($v[0]) . \" (\" . $this->build_where($v[1]) . \")\";\n }\n } elseif (is_array($v)) {\n //array(k=>v)\n foreach ($v as $k1 => $v1) {\n $tmp_value = $this->raw_quote($v1);\n $where_sql .= $comma . \" `\" . addslashes($k1) . \"` = \" . $tmp_value;\n $comma = ' and ';\n }\n } else {\n //$where = array(k=>v,kk=>vv)\n $tmp_value = $this->raw_quote($v);\n if (empty($tmp_value)) {\n $tmp_value = '';\n }\n $where_sql .= $comma . \" `\" . addslashes($k) . \"` = \" . $tmp_value;\n }\n $comma = ' and ';\n }\n return $where_sql;\n }", "title": "" }, { "docid": "3c21bf607c84506d34195460ee2086da", "score": "0.5841586", "text": "private function prepareWhere(object $entity, ClassMeta $classMeta, string|array|null &$where, array|null &$params): void\n {\n $where ??= [];\n\n if (is_string($where)) {\n $where = trim($where);\n $params = (array) $params;\n } else {\n foreach ($classMeta->getPropertyMetas() as $propertyMeta) {\n // Skip entity properties & non-fields (with no \"field\" definition).\n if ($propertyMeta->hasEntityClass() || !($field = $propertyMeta->getField())) {\n continue;\n }\n\n // When \"where\" does not contains a condition already.\n if (!array_key_exists($field, $where)) {\n $value = $this->getPropertyValue($entity, $propertyMeta->getReflection());\n // Skip nulls.\n if ($value !== null) {\n $where[$field] = $value;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "2787a59699e84d16b638a845add0efcb", "score": "0.5841074", "text": "static function replaceFilterParams(string $sql, array &$values) : string {\n $finalValues = [];\n foreach($values as $k=>$v) {\n if(strpos($k, $sql)) {\n $sql = str_replace($k, '?', $sql);\n $finalValues[] = $v;\n }\n }\n $values = $finalValues;\n return $sql;\n }", "title": "" }, { "docid": "415aaf472e14e00c27f5beaaaf7ed0cf", "score": "0.5834345", "text": "function condition_query($where = 'where') {\n $clauses = array();\n foreach ($this->$where as $group => $info) {\n if (empty($info['clauses'])) {\n continue;\n }\n $clause = implode(\") \" . $info['type'] . \" (\", $info['clauses']);\n if (count($info['clauses']) > 1) {\n $clause = '(' . $clause . ')';\n }\n $clauses[] = $clause;\n }\n\n if ($clauses) {\n $keyword = drupal_strtoupper($where);\n if (count($clauses) > 1) {\n return \"$keyword (\" . implode(\")\\n \" . $this->group_operator . ' (', array_filter($clauses)) . \")\\n\";\n }\n else {\n return \"$keyword \" . array_shift($clauses) . \"\\n\";\n }\n }\n return \"\";\n }", "title": "" }, { "docid": "054101b2c1e853a29515539d1c9127fa", "score": "0.58279437", "text": "function search_advanced_get_where_sql($table, $fields, $params, $use_fulltext = TRUE) {\n\t$query = elgg_extract(\"query\", $params, \"\");\n\tif (empty($query)) {\n\t\treturn \"\";\n\t}\n\t\n\t$query_array = explode(\" \", $query);\n\t\n\tif (count($query_array) > 1) {\n\t\t$multi_query = array();\n\t\tforeach ($query_array as $value) {\n\t\t\t$temp_field = trim($value);\n\t\t\tif (!empty($temp_field)) {\n\t\t\t\t$multi_query[] = $temp_field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (count($multi_query) > 1) {\n\t\t\t$query = $multi_query;\n\t\t}\n\t}\n\t\n\t// add the table prefix to the fields\n\tif ($table) {\n\t\tforeach ($fields as $i => $field) {\n\t\t\t$fields[$i] = \"$table.$field\";\n\t\t}\n\t}\n\t\n\tif (!is_array($query)) {\n\t\t$query = array($query);\n\t}\n\n\t$likes = array();\n\tforeach ($fields as $field) {\n\t\t$field_likes = array();\n\t\tforeach ($query as $query_part) {\n\t\t\t$query_part = sanitise_string($query_part);\n\t\t\n\t\t\t$field_likes[] = \"$field LIKE '%$query_part%'\";\n\t\t}\n\t\t$likes[] = \"(\" . implode(' AND ', $field_likes) . \")\";\n\t}\n\t$likes_str = implode(' OR ', $likes);\n\t$where = \"($likes_str)\";\n\n\treturn $where;\n}", "title": "" }, { "docid": "c8b84b4d2e233adb05930fb54cc61eec", "score": "0.58174944", "text": "public function addQuery(array $params)\n {\n $this->query->add($params);\n }", "title": "" }, { "docid": "7de5684437245910aaaf879c01fa92d7", "score": "0.5817382", "text": "public function fetchGridUniqueValues($params)\r\n\t{\r\n\t\t$select = $this->dm->createQueryBuilder($this->getDocumentName()); // si deve configurare qua il document manager si puo prendere dal bootstrap\r\n\r\n\t\t \r\n\t\t$field = isset($params['field']) && is_array($params['field']) ? $params['field'] : array($params['field']);\r\n\t\t$value = isset($params['value']) && is_array($params['value']) ? $params['value'] : array($params['value']);\r\n\r\n\t\t$f = array_pop($field);\r\n\t\t$v = array_pop($value);\r\n\r\n\t\t// Qui devi inserire nella query di estrarre solo il campo $f\r\n\r\n\t\t// $select->select('a.' . $f);\r\n\t\t// $select->distinct(true);\r\n\t\t// $select->from($this->getEntityName(), 'a');\r\n\r\n\t\t// $select->add('where', 'a.' . $f . ' LIKE :value', true);\r\n\t\t// $select->setParameter('value', $v . '%');\r\n\t\t// Nome parametro per binding\r\n\t\t$paramName = '';\r\n\t\tforeach($field AS $x => $y) {\r\n\t\t\t$paramName = 'param' . $x;\r\n\r\n\t\t\t// Get logical operator\r\n\t\t\t$logical = null;\r\n\t\t\tif(isset($params['op-field']) &&\r\n\t\t\t\t\tarray_key_exists('op-value', $params)) {\r\n\t\t\t\t$opField = $params['op-field'];\r\n\t\t\t\t$opField = !is_array($opField) && !is_object($opField) ? array($opField) : (array) $opField;\r\n\t\t\t\t$opValue = $params['op-value'];\r\n\t\t\t\t$opValue = !is_array($opValue) && !is_object($opValue) ? array($opValue) : (array) $opValue;\r\n\r\n\t\t\t\tif(count($opField) == count($opValue)) {\r\n\t\t\t\t\tforeach($opField AS $ok => $ov) {\r\n\t\t\t\t\t\tif($y == $ov) {\r\n\t\t\t\t\t\t\t$logical = isset($opValue[$ok]) ? $opValue[$ok] : null;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tswitch($logical) {\r\n\t\t\t\tcase 'MAG':\r\n\t\t\t\t\t$select->field($y)->gt($value[$x]);\r\n\t\t\t\t\t//$select->addAnd($select->expr()->gt('a.' . $v, ':' . $paramName));\r\n\t\t\t\t\t//$select->add('where', 'a.' . $v . ' > :logical', true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'MIN':\r\n\t\t\t\t\t$select->field($y)->lt($value[$x]);\r\n\t\t\t\t\t//$select->addAnd($select->expr()->lt('a.' . $v, ':' . $paramName));\r\n\t\t\t\t\t//$select->add('where', 'a.' . $v . ' < :logical', true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'NOT':\r\n\t\t\t\t\t$select->field($y)->notEqual($value[$x]);\r\n\t\t\t\t\t// $select->addAnd($select->expr()->neq('a.' . $v, ':' . $paramName));\r\n\t\t\t\t\t//$select->add('where', 'a.' . $v . ' != :logical', true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'EQU':\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$select->field($y)->equals($value[$x]);\r\n\t\t\t\t\t//$select->addAnd($select->expr()->eq('a.' . $v, ':' . $paramName));\r\n\t\t\t\t\t//$select->add('where', 'a.' . $v . ' = :logical', true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t// $select->setParameter($paramName, $value[$x]);\r\n\t\t}\r\n\r\n\t\t//$result = new Collections\\ArrayCollection($query->execute());\r\n\t\t$query = $select->getQuery();\r\n\t\t$results = $query->getSingleResult();\r\n\r\n\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "9505eb92be66389aa6a0e74468ee3e7a", "score": "0.5810861", "text": "private function createRequestOrderBy($params)\n {\n if(!empty($params))\n {\n $orderby = array();\n foreach($params as $order)\n {\n //if(!isset($order[\"col\"]))\n // throw new Exception(serialize($params));\n $orderby[] = $order[\"col\"].\" \".($order['asc'] == \"true\" ? \"ASC\" : \"DESC\");\n }\n if(!empty($orderby))\n return \" ORDER BY \".implode(\", \", $orderby);\n }\n return \"\";\n }", "title": "" }, { "docid": "e4b51601784f509cb479633f6718703f", "score": "0.58087814", "text": "public static function delete($tableName,$params){\n\t\t$values=array();\n\t\t$columns=array();\n\t\t\n\t\t$query = \"DELETE FROM $tableName WHERE \";\n\t\t$ctr=0;\n\t\t$counter = count($params)-1;\t\t\n\t\t\n\t\t$where = \"\";\n\t\tforeach($params as $datas){\n\t\t\t\n\t\t\tif($where !=\"\"){\n\t\t\t\t$where+=\" OR \";\n\t\t\t}\n\t\t\t$and = \"\";\n\t\t\tif(is_array($datas)){\n\t\t\t\t\n\t\t\t\tforeach($datas as $key=>$newDatas){\n\t\t\t\t\t\n\t\t\t\t\tif(is_array($newDatas)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(isset($newDatas[$key]['not'])){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(is_array($newDatas[$key]['not'])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($and == \"\"){\n\t\t\t\t\t\t\t\t\t$and = \" \".$key.\" not in(\".implode(\",\",$newDatas[$key]['not']).\") \";\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$and = \" AND \".$key.\" in(\".implode(\",\",$newDatas[$key]['not']).\") \";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif($and == \"\"){\n\t\t\t\t\t\t\t\t\t$and = \" \".$key.\" in(\".implode(\",\",$newDatas[$key]['equal']).\") \";\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$and = \" AND \".$key.\" in(\".implode(\",\",$newDatas[$key]['equal']).\") \";\n\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\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($and == \"\"){\n\t\t\t\t\t\t\t$and = \" \".$key.\"=\".$newDatas;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$and = \" AND \".$key.\"=\".$newDatas;\n\t\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}\n\t\t\t$where+=$and;\n\t\t}\n\t\t\n\t\t$query+=$where;\n\t\t\t\n\t\tif($conn->query($query) === TRUE){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "title": "" }, { "docid": "5feb8c3d3894716bc7a27e4dfa9c9e39", "score": "0.57999915", "text": "protected function softDeleteParams($params) {\n if ($this->soft_delete) {\n if (array_key_exists('conditions', $params)) {\n if (is_array($params['conditions']))\n $params['conditions'][] = \"deleted != 1\";\n else\n $params['conditions'] .= \" AND deleted != 1\";\n }\n else\n $params['conditions'] = \"deleted != 1\";\n }\n return $params;\n }", "title": "" }, { "docid": "e6a7da7d71163e36b58a45cb35770580", "score": "0.5798062", "text": "function f_searchBuilder()\n\t{\n\t\t$columns = array('iseappname','instancename','instanceversion','timestamp','instancenode','type','environment');\n\t\t$output = \"\";\n\t\t$sqlor = 0; //stupid flag to see if 'and' is needed in sql query, meaning, if there's already a condition there\n\t\t$textstring = $_GET['textstring'];\n\t\t\n\t\tif($textstring)\n\t\t{\n\t\t\tforeach($columns as $column)\n\t\t\t{\n\t\t\t\t//loop through all the columns(also the GET var names), and if GET has that var, then add to the 'where' condition\n\t\t\t\t//if $and is defined, meaning there's existing condition, then add that before the condition\n\t\t\t\t//increment $and only if the column is valid and non-empty, meaning, there's filter specified\n\t\t\t\tif($sqlor) $output .= ' or '; //if there's more condition before this one.\n\t\t\t\tif(get_magic_quotes_gpc) $output .= \"$column like '%\".$textstring.\"%'\";\n\t\t\t\telse $output .= \"$column like '\".addslashes($textstring).\"%'\";\n\t\t\t\t$sqlor++;\n\t\t\t} //End of foreach\n\t\t}//end of if textstring\n\t\t\n\t\tif($output) return 'where (' . $output . ')'; //if output is not empty then prefix it with where, and return it\n\t}", "title": "" }, { "docid": "f7931c1e54e5c06d85f4979f1ec33769", "score": "0.5794255", "text": "public function query( $sql, array $parameters = null );", "title": "" }, { "docid": "3c0c08ec25389b38017c29a47c515523", "score": "0.57847536", "text": "public function findByParams(array $params)\n {\n $query = $this->newQuery()\n ->where($params);\n return $this->getQueryBuilderFor($query)\n ->get();\n }", "title": "" }, { "docid": "0071c62d435168bfe4c79049a6398e1d", "score": "0.5773882", "text": "private function addWhere(&$queryArr) {\n if (!empty($this->clauses['where'])) {\n $queryArr[] = 'WHERE ' . implode(' ', $this->clauses['where']);\n }\n }", "title": "" }, { "docid": "dc81ea481553e703788c4fe2a21fa346", "score": "0.5773711", "text": "public function getData($params = array())\n {\n\t\t$query = \"\n SELECT ROWIDTOCHAR(norma.ROWID) row_id, rownum, \n\t\t\t\t to_char(norma.PERIOD_BUDGET,'RRRR') PERIOD_BUDGET, norma.BA_CODE, \n\t\t\t\t norma.JOB_CODE, norma.EMPLOYEE_STATUS, norma.GP, norma.MPP_AKTUAL, norma.MPP_PERIOD_BUDGET, norma.MPP_REKRUT, \n\t\t\t\t job.JOB_DESCRIPTION, grupjob.PARAMETER_VALUE GROUP_CHECKROLL_DESC, norma.FLAG_TEMP\n\t\t\tFROM TN_CHECKROLL norma\n\t\t\tLEFT JOIN TM_JOB_TYPE job\n\t\t\t\tON norma.JOB_CODE = job.JOB_CODE\n\t\t\tLEFT JOIN T_PARAMETER_VALUE grupjob\n\t\t\t\tON grupjob.PARAMETER_VALUE_CODE = job.GROUP_CHECKROLL_CODE\n\t\t\t\tAND grupjob.PARAMETER_CODE = 'GROUP_JOB'\n\t\t\tLEFT JOIN TM_ORGANIZATION ORG\n\t\t\t\tON norma.BA_CODE = ORG.BA_CODE\n\t\t\tWHERE norma.DELETE_USER IS NULL\n \";\n\t\t\n\t\tif($this->_siteCode <> 'ALL'){\n\t\t\tif ($this->_referenceRole == 'REGION_CODE')\n\t\t\t\t$query .= \"AND UPPER('\".$this->_siteCode.\"') LIKE '%'||UPPER(ORG.REGION_CODE)||'%'\";\n\t\t\telseif ($this->_referenceRole == 'BA_CODE')\n\t\t\t\t$query .= \"AND UPPER('\".$this->_siteCode.\"') LIKE '%'||UPPER(norma.BA_CODE)||'%'\";\n\t\t}\n\t\t\n\t\tif($params['budgetperiod'] != ''){\n\t\t\t$query .= \"\n AND to_char(norma.PERIOD_BUDGET,'RRRR') = '\".$params['budgetperiod'].\"'\n \";\n\t\t}elseif($params['PERIOD_BUDGET'] != ''){\n\t\t\t$query .= \"\n AND to_char(norma.PERIOD_BUDGET,'RRRR') = '\".$params['PERIOD_BUDGET'].\"'\n \";\n\t\t}else{\n\t\t\t$query .= \"\n AND to_char(norma.PERIOD_BUDGET,'DD-MM-RRRR') = '\".$this->_period.\"'\n \";\n\t\t}\n\t\t\n\t\t//filter region\n\t\tif ($params['src_region_code'] != '') {\n\t\t\t$query .= \"\n AND UPPER(ORG.REGION_CODE) LIKE UPPER('%\".$params['src_region_code'].\"%')\n \";\n }\n\t\t\n\t\tif ($params['key_find'] != '') {\n\t\t\t$query .= \"\n AND UPPER(norma.BA_CODE) LIKE UPPER('%\".$params['key_find'].\"%')\n \";\n }\n\t\t\n\t\tif ($params['BA_CODE'] != '') {\n\t\t\t$query .= \"\n AND UPPER(norma.BA_CODE) IN ('\".$params['BA_CODE'].\"')\n \";\n }\n\t\t\n\t\t//filter employee status\n\t\tif ($params['employee_status'] != '') {\n\t\t\t$query .= \"\n AND UPPER(norma.EMPLOYEE_STATUS) LIKE UPPER('%\".$params['employee_status'].\"%')\n \";\n }\n\t\t\n\t\t//filter employee status\n\t\tif ($params['job_code'] != '') {\n\t\t\t$query .= \"\n AND UPPER(norma.JOB_CODE) LIKE UPPER('%\".$params['job_code'].\"%')\n \";\n }\n\t\t\n\t\tif ($params['controller'] == 'download') {\n\t\t\t$params['search'] = ($params['search'] == 'AA==') ? \"\" : rawurldecode(base64_decode($params['search']));\n\t\t}\n\t\t\t\t\n\t\tif ($params['search'] != '') {\n\t\t\t$query .= \"\n\t\t\t\tAND (\n\t\t\t\t\tUPPER(norma.PERIOD_BUDGET) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.BA_CODE) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.JOB_CODE) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.EMPLOYEE_STATUS) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.GP) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.MPP_AKTUAL) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.MPP_PERIOD_BUDGET) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(norma.MPP_REKRUT) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(job.JOB_DESCRIPTION) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\tOR UPPER(grupjob.PARAMETER_VALUE) LIKE UPPER('%\".$params['search'].\"%')\n\t\t\t\t\t\n\t\t\t\t)\n \";\n }\n\t\t\n\t\t$query .= \"\n\t\t\tORDER BY norma.JOB_CODE\n\t\t\";\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "554c0af328631efee85bc34364bb8678", "score": "0.5770389", "text": "static public function fetchAllWhere($SQLfragment = '', $params = array())\n {\n return static::fetchWhere($SQLfragment, $params, false);\n }", "title": "" }, { "docid": "feb9b52284ec5a4ed610a723ffefe8b4", "score": "0.5769845", "text": "public function search($parameters = array());", "title": "" }, { "docid": "c31cb8c1429e442bcf80472150365e49", "score": "0.5760863", "text": "function bindAllValues($sql, $params){\n\tforeach($params as $param => $value){\n\t\t$sql->bindValue(':'.$param, $value);\n\t}\n\treturn $sql;\n}", "title": "" }, { "docid": "2e0b948256da515d60192460c110d563", "score": "0.5758307", "text": "private function conditions($conditions = []) {\n $out = \" WHERE\";\n $arOut = [];\n foreach ($conditions as $key => $condition) {\n $out .= ' '.$key. ' = ? AND';\n $arOut[] = $condition;\n }\n $out = rtrim($out, ' AND');\n return ['statement'=>$out, 'bind'=>$arOut];\n }", "title": "" }, { "docid": "9c793a0ef2988abcbdb2056125a18137", "score": "0.575566", "text": "protected function inline ($params)\n {\n $string = '';\n\n foreach ($params as $k => $v)\n {\n $string .= (empty($string) ? '' : ',') . $k . '=' . $v;\n }\n\n return $string;\n }", "title": "" }, { "docid": "2a259b2770bdeae7ff52a919542afeed", "score": "0.5752642", "text": "private function where($where) {\r\n if (!isset($where) || empty($where)) {\r\n $whr = \"\";\r\n } elseif (isset($where['raw']) && !empty($where['raw'])) {\r\n $whr = \"WHERE \" . $where['raw'];\r\n } elseif (is_array($where)) {\r\n $whr = \"\";\r\n foreach ($where as $key => $value) {\r\n if (is_numeric($value)) {\r\n $whr .= \"`\" . $key . \"` = '\" . $this->real_escape_string($value) . \"' AND\";\r\n } else {\r\n $whr .= \"`\" . $key . \"` LIKE '\" . $this->real_escape_string($value) . \"' AND\";\r\n }\r\n }\r\n $whr = \"WHERE \" . rtrim($whr, \"AND\");\r\n } else {\r\n return \"\";\r\n }\r\n return $whr;\r\n }", "title": "" } ]
ccd7460d31cb44f1f3cbf63c22640c19
Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.
[ { "docid": "8ea0a88a05b0cc4e00b20efb736bca30", "score": "0.0", "text": "public function getData()\n {\n $this->validate(\n 'merchant_reference',\n 'secret'\n );\n\n $data = array(\n \"merchant_reference\" => $this->getMerchantReference(),\n \"secret\" => $this->getSecret(),\n \"gateway_url\" => $this->getEndpoint('query'),\n );\n\n return $data;\n }", "title": "" } ]
[ { "docid": "b5c15200bc88ab4fa236afaaed47eca8", "score": "0.72097826", "text": "public function getRawData()\n {\n return $this->_rawData;\n }", "title": "" }, { "docid": "a4bdb5f9d373bf670ba43ecba987c4a5", "score": "0.71432817", "text": "public function getRawData()\n {\n return $this->data;\n }", "title": "" }, { "docid": "d2eade4ef5ad9d50e704875379e4de27", "score": "0.71321577", "text": "public function asRawData() {\n\t\treturn $this->_rawData;\n\t}", "title": "" }, { "docid": "607246c2dcdd738c7e7884550d2fd2cd", "score": "0.7131042", "text": "public function getRawData() {\n return $this->rawData;\n }", "title": "" }, { "docid": "f89966c40a435f8dfcb1e0d715e5ade1", "score": "0.71297485", "text": "public function getRawData()\n {\n return $this->_data;\n }", "title": "" }, { "docid": "a8927373212150e1357c8d50622c8fed", "score": "0.70733786", "text": "protected function getRawData()\n\t{\n\t\treturn $this->getModel()->getAttribute($this->getArrayFieldName());\n\t}", "title": "" }, { "docid": "c5909e4a14230db111b034ba1f8da05a", "score": "0.7068036", "text": "public function getData()\n {\n return !empty($this->body['data']) ? (array)$this->body['data'] : [];\n }", "title": "" }, { "docid": "feddac37e7037304c7c40b5aef9dd8a7", "score": "0.7050406", "text": "public function getRawData()\n {\n if (!$this->rawData) {\n $this->rawData = new \\SplFixedArray(0);\n }\n\n return $this->rawData;\n }", "title": "" }, { "docid": "d5d2d6279f3f53bc5048a6cfacab3a65", "score": "0.70298576", "text": "public function GetRaw() {\n\t\t\treturn $this->_RawData;\n\t\t}", "title": "" }, { "docid": "ed59b48a965b86f3333d1582373dcead", "score": "0.69702154", "text": "public function toData()\n {\n return [\n 'recipient' => [\n 'id' => $this->getSender()\n ],\n 'message' => [\n 'attachment' => [\n 'type' => $this->type,\n 'payload' => $this->getPayload(),\n ],\n ],\n ];\n }", "title": "" }, { "docid": "354f9db49d7b04395ff6613494814565", "score": "0.692095", "text": "public function getData()\n {\n return ($this->data) ? unserialize($this->data) : array();\n }", "title": "" }, { "docid": "ff346db0e87c5b6b7bce12913b57212f", "score": "0.67559814", "text": "final protected function getMessageData() {\r\n return $this->_message->getData();\r\n }", "title": "" }, { "docid": "d6eeb6e800958496b736e33ad607b423", "score": "0.67552716", "text": "public function getRawData();", "title": "" }, { "docid": "4621c192f956b1cabff8facf36c2d706", "score": "0.6739525", "text": "public function getData()\n {\n $this->validateData();\n\n $data = array (\n //商户订单号\n 'order_no' => $this->getOrderNo(),\n //交易金额,单位分\n 'amount' => $this->getAmount(),\n //主题\n 'subject' => $this->getSubject(),\n //内容\n 'body' => $this->getBody(),\n //app_id\n 'app' => $this->getApp(),\n //支付方式\n 'channel' => $this->getChannel(),\n //callback地址\n 'callback' => $this->getCallback(),\n //app_key\n 'app_key' => $this->getAppKey(),\n //货币\n 'currency' => $this->getCurrency(),\n //私钥地址\n 'private_key_path' => $this->getPrivateKeyPath()\n );\n\n return $data;\n }", "title": "" }, { "docid": "d274866df19dea268ea447a66acd776c", "score": "0.6736134", "text": "public function _getData(): array\n {\n $result = [\n 'type' => $this->getType(),\n 'id' => $this->getId(),\n 'latitude' => $this->getLatitude(),\n 'longitude' => $this->getLongitude(),\n 'title' => $this->getTitle(),\n 'address' => $this->getAddress(),\n 'foursquare_id' => $this->getFoursquareId(),\n 'foursquare_type' => $this->getFoursquareType(),\n 'google_place_id' => $this->getGooglePlaceId(),\n 'google_place_type' => $this->getGooglePlaceType(),\n 'reply_markup' => $this->getReplyMarkup(),\n 'input_message_content' => $this->getInputMessageContent(),\n 'thumbnail_url' => $this->getThumbnailUrl(),\n 'thumbnail_width' => $this->getThumbnailWidth(),\n 'thumbnail_height' => $this->getThumbnailHeight(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "e545068ba44123e44af617ffccf14adb", "score": "0.6680164", "text": "public function getRawData(): string\n {\n return $this->rawData;\n }", "title": "" }, { "docid": "700331e60a817a7eb80a469f092f3587", "score": "0.6679795", "text": "public function getData(){\n $data = null;\n \n if($this->data instanceof DataRecord){\n $data = $this->data->pack();\n }elseif(is_array($this->data)){\n $data = DataRecord::packArray($this->data);\n }else{\n $data = $this->data;\n }\n \n return $data;\n }", "title": "" }, { "docid": "865ae660dd4dcb5a6a55e86b3d923001", "score": "0.66629994", "text": "public function getData() : array {\n\n\t\t\treturn $this->data;\n\t\t}", "title": "" }, { "docid": "ef146b3a2d6e4875f8d6430ad1db565b", "score": "0.6658919", "text": "public function GetDataForResponse()\n {\n // @TODO Create real XML-string\n return serialize($this->Data);\n }", "title": "" }, { "docid": "98b72809d2fb1f87fb472a48a8413ae7", "score": "0.6574096", "text": "public function getData()\n {\n $data = array(\n 'transactionId' => isset($this->_transactionId) ? $this->_transactionId : null,\n 'transactionShortId' => isset($this->_transactionShortId) ? $this->_transactionShortId : null,\n 'subtype' => isset($this->_subtype) ? $this->_subtype : null,\n 'profileId' => $this->_profileId,\n 'securityCode' => $this->_securityCode,\n 'orderId' => isset($this->_orderId) ? $this->_orderId : null,\n 'systemId' => !empty($this->_systemId) ? $this->_systemId : 'Not Available',\n 'shopSystem' => $this->_shopSystem,\n 'moduleVersion' => $this->_moduleVersion,\n 'shopVersion' => $this->_shopVersion\n );\n\n return $data;\n }", "title": "" }, { "docid": "dfc97f2969f17d6093738bb49a282dbb", "score": "0.65355504", "text": "public function raw()\n {\n return $this->arr;\n }", "title": "" }, { "docid": "b9151d7c02629195655d4a2074f64921", "score": "0.65217507", "text": "protected function getSerializeData()\n\t{\n\t\treturn $this->getRawValues();\n\t}", "title": "" }, { "docid": "cae5f6e6eaa7f1df44b664ac8ca6e95a", "score": "0.651994", "text": "public function getData()\n {\n return [\n 'receipt-data' => $this->getReceipt()\n ];\n }", "title": "" }, { "docid": "3225e6224b090df5eda7806636993079", "score": "0.6502799", "text": "public function getMappedData(): array\n {\n return $this->getAttribute(self::PAYLOAD_MAPPED_DATA);\n }", "title": "" }, { "docid": "75855e9f75d24c5238aff69ccbc50d21", "score": "0.649871", "text": "public function getPayloadData();", "title": "" }, { "docid": "f7fbd767b4eac9e00318aabb2ff9fb4f", "score": "0.6492844", "text": "public function getData(){\n\t\ttry{\n\t\t\treturn json_decode($this->data);\n\t\t}catch(Exception $e){\n\t\t\treturn array();\n\t\t}\n\n\t}", "title": "" }, { "docid": "5d1e9566571db7125ccfe44dc78befe2", "score": "0.647575", "text": "public function getData(): array\n {\n return $this->_data;\n }", "title": "" }, { "docid": "f9db97e8e5b6b178fbab26722419b448", "score": "0.64646196", "text": "public function getData() : array\n {\n return $this->data;\n }", "title": "" }, { "docid": "f9db97e8e5b6b178fbab26722419b448", "score": "0.64646196", "text": "public function getData() : array\n {\n return $this->data;\n }", "title": "" }, { "docid": "3eb72041c5355b5bab5a225814986e12", "score": "0.6461869", "text": "public function getData()\n {\n $this->validateData();\n $data = array(\n \"service\" => $this->getService(),\n \"partner\" => $this->getPartner(),\n \"payment_type\" => 1,\n \"notify_url\" => $this->getNotifyUrl(),\n \"return_url\" => $this->getReturnUrl(),\n \"seller_email\" => $this->getSellerEmail(),\n \"out_trade_no\" => $this->getOutTradeNo(),\n \"subject\" => $this->getSubject(),\n \"price\" => $this->getPrice(),\n \"quantity\" => $this->getQuantity(),\n \"logistics_fee\" => $this->getLogisticsFee(),\n \"logistics_type\" => $this->getLogisticsType(),\n \"logistics_payment\" => $this->getLogisticsPayment(),\n \"body\" => $this->getBody(),\n \"show_url\" => $this->getShowUrl(),\n \"receive_name\" => $this->getReceiveName(),\n \"receive_address\" => $this->getReceiveAddress(),\n \"receive_zip\" => $this->getReceiveZip(),\n \"receive_phone\" => $this->getReceivePhone(),\n \"receive_mobile\" => $this->getReceiveMobile(),\n \"_input_charset\" => $this->getInputCharset()\n );\n $data = array_filter($data);\n $data['sign'] = $this->getParamsSignature($data);\n $data['sign_type'] = $this->getSignType();\n return $data;\n }", "title": "" }, { "docid": "baa50ac3b51831aa5edd3ceb9ded6457", "score": "0.64495814", "text": "public function getData()\n\t{\n\t\tif ($this->getRowCount() === 1) {\n\t\t\treturn $this->body[0];\n\t\t} else {\n\t\t\treturn $this->body;\n\t\t}\n\t}", "title": "" }, { "docid": "46cc564c216fd8ead76997e50506db4a", "score": "0.6449002", "text": "protected function getRawData()\n {\n return json_decode($this->model->getAttributes()[$this->getConfigKey()] ?? '{}', true);\n }", "title": "" }, { "docid": "44723c2f4e37b37c0e7c9b1f880d66e7", "score": "0.6425622", "text": "protected function getData() {\n $data[0] = \"PostID\"; $data[1] = \"Posts.UserID\"; $data[2] = \"MainPostImage\";\n $data[3] = \"Posts.Title\"; $data[4] = \"Message\"; $data[5] = \"PostTime\";\n \n return $data;\n }", "title": "" }, { "docid": "d344f605dcf6cad10330998eba1ee16f", "score": "0.6419839", "text": "public function to_array() {\n $array = [\n 'message_id' => $this->message_id,\n 'sender_name' => $this->sender_name,\n 'timestamp' => $this->timestamp,\n 'body' => $this->body\n ];\n return $array;\n }", "title": "" }, { "docid": "34a5443973ab3772c3045cf8709b9e6f", "score": "0.64174116", "text": "public function getDataArray()\n {\n return array(\n \"post\" => $this->getPost(),\n );\n }", "title": "" }, { "docid": "52812dbd2edfc847c8b7f81b2a4de1a4", "score": "0.6411425", "text": "public function toArray() {\n return array(\n 'message' => $this->message,\n 'code' => $this->code,\n 'data' => $this->data,\n ); \n }", "title": "" }, { "docid": "e5491af906f0db347d1fa0a0776c47d0", "score": "0.639266", "text": "public function getData()\n {\n $this->validate(\n 'partner',\n 'out_trade_no',\n 'total_fee',\n 'notifyUrl'\n );\n\n $text = 'MerId=' . $this->getPartner() . '&' .\n 'OrderNo=' . $this->getOutTradeNo() . '&' .\n 'OrderAmount=' . $this->getTotalFee() . '&' .\n 'CurrCode=' . $this->getCurrency() . '&' .\n 'CallBackUrl=' . $this->getNotifyUrl() . '&' .\n 'BankCode=' . $this->getBankCode() . '&' .\n 'ResultMode=' . $this->getResultMode() . '&' .\n 'Reserved01=' . $this->getDescription() . '&' .\n 'Reserved02=';\n $obj = new NetTran();\n\n $encodeMsg = $obj->EncryptMsg($text, $this->getCertFile()) ? $obj->getLastResult() : '';\n $signedMsg = $obj->SignMsg($text, $this->getKeyFile(), \"12345678\") ? $obj->getLastResult() : '';\n return [\n 'EncodeMsg' => $encodeMsg,\n 'SignMsg' => $signedMsg\n ];\n }", "title": "" }, { "docid": "b55de62cf2b70a533d828e3441817405", "score": "0.63805664", "text": "public function getData(): array {\n return $this->parse()['data'];\n }", "title": "" }, { "docid": "01472140f37e96da68c9cd386e67ef40", "score": "0.63792884", "text": "public function getData()\n {\n $this->validate('amount', 'currency',\n 'confirmationType', 'returnUrl');\n\n $data = [\n 'amount' => [\n 'value' => $this->getAmount(),\n 'currency' => $this->getCurrency()\n ],\n 'client_ip' => $this->getClientIp(),\n 'description' => $this->getDescription()\n ];\n\n if ($this->getItems()) {\n $data['receipt']['items'] = $this->getItems();\n\n if ($this->getTaxSystemCode()) {\n $data['receipt']['tax_system_code'] = $this->getTaxSystemCode();\n }\n\n if ($this->getPhone()) {\n $data['receipt']['phone'] = $this->getPhone();\n } elseif ($this->getEmail()) {\n $data['receipt']['email'] = $this->getEmail();\n }\n }\n\n if ($this->getConfirmationType()) {\n $data['confirmation']['type'] = $this->getConfirmationType();\n $data['confirmation']['return_url'] = $this->getReturnUrl();\n }\n\n if ($this->getGatewayId()) {\n $data['recipient']['gateway_id'] = $this->getGatewayId();\n }\n\n if ($this->getPaymentMethodId()) {\n $data['payment_method_id'] = $this->getPaymentMethodId();\n }\n\n if ($this->getSavePaymentMethod()) {\n $data['save_payment_method'] = $this->getSavePaymentMethod();\n }\n\n if ($this->getCapture()) {\n $data['capture'] = $this->getCapture();\n }\n\n if ($this->getMetadata()) {\n $data['metadata'] = $this->getMetadata();\n }\n\n return $data;\n }", "title": "" }, { "docid": "1a89129fb06db27a6942257070a6bf83", "score": "0.6375309", "text": "public function getPayload(): array\n {\n return \\is_string($this->payload) ? json_decode($this->payload, true) : $this->payload;\n }", "title": "" }, { "docid": "eadc2e86c5f139c7c6a1eef6533e5d77", "score": "0.6368706", "text": "public function asArray() {\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "b5f4693c16c66e46b8653ed5e022de5c", "score": "0.6359853", "text": "public function toArray()\n {\n $data = array(\n 'code' => $this->getCode(),\n 'message' => $this->getMessage(),\n 'data' => $this->getData(),\n );\n\n if (null === $data['data']) {\n unset($data['data']);\n }\n\n return $data;\n }", "title": "" }, { "docid": "b86d06d031e941c1e1a2da7104f46964", "score": "0.6358839", "text": "public function getData()\n {\n return array(\n 'orderId' => $this->getTransactionReference(),\n 'amount' => $this->getAmount()\n );\n }", "title": "" }, { "docid": "3e894a38fbc7a848ac14156ea7ccaba5", "score": "0.635579", "text": "public function getData(): array {\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "1734bff27491360a46d6b8ec9ed789ac", "score": "0.63528323", "text": "public function getData()\n {\n $this->validate('amount', 'transactionReference');\n\n $data = array(\n 'amount' => $this->getAmount(),\n 'transactionid' => $this->getTransactionReference(),\n 'type' => 'refund'\n );\n\n return $data;\n }", "title": "" }, { "docid": "6892d6f246aa31e5390d3f8a394c13f4", "score": "0.63229525", "text": "public function getData () {\n return $this->toArray ();\n }", "title": "" }, { "docid": "5ad1841bf16990ba094f50875c4418f5", "score": "0.6319365", "text": "public static function getData(): array\n {\n if (!isset(self::$data)) {\n self::parseData();\n }\n\n return self::$data;\n }", "title": "" }, { "docid": "464962ef6f6a08f272b32a2bf62b39b7", "score": "0.63159037", "text": "public function getData()\n {\n $this->validate('amount', 'currency', 'paymentMethodId');\n\n $data = [\n 'amount' => [\n 'value' => $this->getAmount(),\n 'currency' => $this->getCurrency()\n ],\n 'paymentMethodId' => $this->getPaymentMethodId()\n ];\n\n return $data;\n }", "title": "" }, { "docid": "7b4d9dc2d89abd4a2ca6a6444e0b316c", "score": "0.6308852", "text": "public function getData () {\r\n \treturn $this->toArray ();\r\n }", "title": "" }, { "docid": "20be5abd4603baecd8a7ebe329f7d06c", "score": "0.6308131", "text": "public function getData(): array\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "faf7672522d9e334039f2b2edd8ee898", "score": "0.6300871", "text": "public function getBody()\n {\n return [\n Message::getNsKey('guid') => $this->guid,\n Message::getNsKey('appType') => $this->appType,\n Message::getNsKey('appTime') => $this->appTime,\n Message::getNsKey('appStatus') => $this->appStatus,\n Message::getNsKey('logisticsCode') => $this->logisticsCode,\n Message::getNsKey('logisticsName') => $this->logisticsName,\n Message::getNsKey('logisticsNo') => $this->logisticsNo,\n Message::getNsKey('freight') => $this->freight,\n Message::getNsKey('insuredFee') => $this->insuredFee,\n Message::getNsKey('currency') => $this->currency,\n Message::getNsKey('grossWeight') => $this->grossWeight,\n Message::getNsKey('packNo') => $this->packNo,\n Message::getNsKey('goodsInfo') => $this->goodsInfo,\n Message::getNsKey('ebcCode') => $this->ebcCode,\n Message::getNsKey('ebcName') => $this->ebcName,\n Message::getNsKey('ebcTelephone') => $this->ebcTelephone,\n ];\n }", "title": "" }, { "docid": "1552732160db5adfce0e9c107ecd89db", "score": "0.6297272", "text": "public function getDataArray() {\n return $this->data['data'];\n }", "title": "" }, { "docid": "2d72955a469501f7856f86dbcf124b15", "score": "0.6297183", "text": "public function get_data()\n\t{\n\t\treturn json_decode( $this->_data['data'], TRUE );\n\t}", "title": "" }, { "docid": "1d1c9f15a0b16a7dee0fd079f440c1fa", "score": "0.62969816", "text": "public function getDataArray()\n {\n\n return $this->_bourbon_orm_object_record_details;\n\n }", "title": "" }, { "docid": "3d38941ca042d4874b0c81f6529b05b1", "score": "0.62949467", "text": "public function getData()\r\n\t\t{\r\n\t\t\treturn $this->_data;\r\n\t\t}", "title": "" }, { "docid": "b11e45b86f4e6fdb8bec35f5a50da357", "score": "0.62869567", "text": "public function getData(): array {\n \n return $this->data;\n }", "title": "" }, { "docid": "2f6b70268b98d44204fa16b4cdd9e3bd", "score": "0.6280026", "text": "public function getResponseData()\n\t{\n\t\tswitch ($this->getAttribute('status'))\n\t\t{\n\t\t\tcase static::StatusError:\n\t\t\t{\n\t\t\t\treturn array_merge($this->_data, array(static::StatusError => $this->getAttribute('errorMessage')));\n\t\t\t}\n\n\t\t\tcase static::StatusSuccess:\n\t\t\t{\n\t\t\t\treturn array_merge($this->_data, array(static::StatusSuccess => true));\n\t\t\t}\n\n\t\t\tcase static::StatusConflict:\n\t\t\t{\n\t\t\t\treturn $this->_data;\n\t\t\t}\n\n\t\t}\n\n\t\treturn array();\n\t}", "title": "" }, { "docid": "f7d6d871f11f6106a72548aa34fd283f", "score": "0.6258734", "text": "public function getData() {\n\t\treturn $this->_data;\n\t}", "title": "" }, { "docid": "d3ea96e9e7f3eafba47dabfad643eed2", "score": "0.62497354", "text": "public function getData() {\n return $this->_data;\n }", "title": "" }, { "docid": "4dbef531e337d043cff621a62888ed6d", "score": "0.62455267", "text": "public function data() {\n\t\ttry {\n\t\t\treturn json_decode($this->_body);\n\t\t} catch (Exception $exception) {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a0b5dfe31d1ee5b71a9b5404bd53a26f", "score": "0.6239981", "text": "public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "cef2bf12dfc9e52755ee7ba37149ba10", "score": "0.62345386", "text": "function getData()\n {\n return json_decode($this->data);\n }", "title": "" }, { "docid": "a619d347ad9d87605aeed4a47e001fd1", "score": "0.6227802", "text": "public function getData() {\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "a619d347ad9d87605aeed4a47e001fd1", "score": "0.6227802", "text": "public function getData() {\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "e38b53443b2a1062adc35df6580903dd", "score": "0.62265867", "text": "public function getData()\n {\n $this->validateData();\n\n $data = array (\n 'certificateVerifyPeer' => false,\n 'certificateVerifyHost' => 0,\n 'gatewayUrl' => $this->getEndpoint('pay'),\n 'merchantId' => $this->getMerchantId(),\n 'apiUsername' => $this->getApiUsername(),\n 'password' => $this->getPassword(),\n 'debug' => false,\n 'version' => $this->getVersion(),\n 'proxyServer' => '',\n 'proxyAuth' => '',\n 'proxyCurlOption' => '',\n 'proxyCurlValue' => '',\n 'certificatePath' => '',\n\n //商户订单号\n 'order_id' => $this->getOrderId(),\n //交易金额,单位分\n 'amount' => $this->getAmount(),\n 'checkout_method' => $this->getCheckoutMethod(),\n 'currency' => $this->getCurrency(),\n 'return_url' => $this->getReturnUrl()\n );\n\n return $data;\n }", "title": "" }, { "docid": "6fae571b8f922ea13d993c3db979427e", "score": "0.6220388", "text": "public function get_array() {\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "7528bd05f32ac158f393f74dfa314d64", "score": "0.62118113", "text": "public function getData() {\n $this->validate('currency', 'merchantAccount', 'amount', 'skinCode', 'transactionId', 'sessionLifetime');\n\n $data = [];\n\n $data['paymentAmount'] = $this->getAmountInteger();\n $data['currencyCode'] = $this->getCurrency();\n $data['merchantReference'] = $this->getTransactionId();\n $data['skinCode'] = $this->getSkinCode();\n $data['merchantAccount'] = $this->getMerchantAccount();\n $data['sessionValidity'] = $this->getSessionValidity();\n $data['merchantSig'] = $this->generateSignature($data);\n\n return $data;\n }", "title": "" }, { "docid": "c07a5120ad0f54a486f5b49f4671c710", "score": "0.62084794", "text": "public function getPayload() : array\n {\n return $this->payload;\n }", "title": "" }, { "docid": "38811d042a93ac0544ec3cb493c7566a", "score": "0.61938673", "text": "public function getData()\n {\n return $this->_data;\n }", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "75cbc34b3e8203a089a678d5fe21386b", "score": "0.6193058", "text": "public function getData()\n\t{\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "2e1c0e73e5a76419663d53ab33dcd578", "score": "0.61926407", "text": "public function getData ()\n {\n\n return array(\n \"currency\" => $this->getCurrency(),\n \"value\" => $this->getValue(),\n );\n }", "title": "" }, { "docid": "d6df1f81ad486cd8d62a4b3c0967fab4", "score": "0.6187241", "text": "function getRawData(){\n\n$this->mkHeaders();\n\n$out=\"\";\n\n\tif ($this->mailto) {\n\n\t\tforeach($this->mailto as $res) $out.=\"TO: \".$res.\"<br /><br />\\n\";\n\n\t}\n\n$out.=\"SUBJECT: \".$this->mailsubj.\"<br /><br />\\n\";\n\n$out.=\"MESSAGE: \".$this->mailbody.\"<br /><br />\\n\";\n\n$out.=\"HEADERS: \".htmlentities($this->mailheaders).\"<br /><br />\\n\";\n\nreturn $out;\n\n}", "title": "" }, { "docid": "12e6d99cba7f254b666763dac1514c77", "score": "0.6186611", "text": "public function getData()\n {\n return $this->_data;\n }", "title": "" }, { "docid": "c4a915ae59852a14d2f9eba90f7cec44", "score": "0.618391", "text": "public function getData() {\n\t\treturn $this -> data;\n\t}", "title": "" }, { "docid": "918daeee61003ca877b44a64cdaed1c5", "score": "0.6183314", "text": "final public function getData(): array\n {\n return $this->data;\n }", "title": "" }, { "docid": "a8eee1deb55748124cbd6436a650db71", "score": "0.6183213", "text": "public function getData()\n {\n $this->validate('mch_id', 'bill_date', 'bill_type');\n\n $data = array(\n 'appid' => $this->getAppId(),\n 'mch_id' => $this->getMchId(),\n 'sub_appid' => $this->getSubAppId(),\n 'sub_mch_id' => $this->getSubMchId(),\n 'device_info' => $this->getDeviceInfo(),\n 'bill_date' => $this->getBillDate(),\n 'bill_type' => $this->getBillType(),//<>\n 'tar_type' => $this->getTarType(),\n 'nonce_str' => md5(uniqid()),\n );\n\n $data = array_filter($data);\n\n $data['sign'] = Helper::sign($data, $this->getApiKey());\n\n return $data;\n }", "title": "" }, { "docid": "4d3d360c11df9e097d1fff239ab78962", "score": "0.61810374", "text": "protected function get_raw_data() {\n\t\tglobal $HTTP_RAW_POST_DATA;\n\n\t\t// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,\n\t\t// but we can do it ourself.\n\t\tif ( !isset( $HTTP_RAW_POST_DATA ) ) {\n\t\t\t$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );\n\t\t}\n\n\t\treturn $HTTP_RAW_POST_DATA;\n\t}", "title": "" }, { "docid": "7c0cad5691b755932060a73ee355f459", "score": "0.6177993", "text": "public function toArray()\n {\n if (empty($this->_data)) {\n $this->process();\n }\n\n return $this->_data;\n }", "title": "" }, { "docid": "0c6ca5e5253373d63fc4f1575910ffdb", "score": "0.6170103", "text": "public function data() : array\n {\n return $this->data;\n }", "title": "" }, { "docid": "8cf2b5a103a2dfd79f32643776281f48", "score": "0.6166548", "text": "public function toArray()\n {\n return (array) $this->objPayload;\n }", "title": "" }, { "docid": "3b12c516910bcc63369c8c8ae9fe5f1c", "score": "0.6162525", "text": "public function prepareData()\n {\n return [\n 'message' => $this->message,\n ];\n }", "title": "" }, { "docid": "c46386e6246a87772cd52861f133945c", "score": "0.61544055", "text": "public function toArray()\n {\n return $this->data['data'];\n }", "title": "" }, { "docid": "cdbf50e3aae7d4168580463b05b35e27", "score": "0.6150041", "text": "public function getData()\n {\n return $this->Data;\n }", "title": "" }, { "docid": "c0b12f0fd897f5d2ba69ef05c14a21d8", "score": "0.61484", "text": "public function getData() {\n\n return $this->_data;\n\n }", "title": "" }, { "docid": "ab64367eeabe48779a5864a0eebf80f5", "score": "0.61343104", "text": "private function formatDataForXmlOutput(): ?array\n {\n $responseType = $this->detectResponseType();\n $data = $this->response;\n $data->message = (array) $data->message;\n\n // restructure data a bit so that xml outputs correctly\n switch ($responseType) {\n case 'breedOneDimensional':\n $data->breeds['breed'] = $data->message;\n unset($data->message);\n break;\n case 'breedTwoDimensional':\n $data->breeds['breed'] = array_keys($data->message);\n $subBreeds = array_filter(array_map('array_filter', $data->message));\n $data->subbreeds = $subBreeds;\n $data->allbreeds = $data->message;\n unset($data->message);\n break;\n case 'imageSingle':\n // deal with alts\n if (isset($data->message['altText'])) {\n $data->message['alt'] = $data->message['altText'];\n unset($data->message['altText']);\n }\n $data->images['image'] = [$data->message];\n unset($data->message);\n break;\n case 'imageMulti':\n // deal with alts\n foreach (array_keys($data->message) as $key) {\n if (isset($data->message[$key]['altText'])) {\n $data->message[$key]['alt'] = $data->message[$key]['altText'];\n unset($data->message[$key]['altText']);\n }\n }\n $data->images['image'] = $data->message;\n unset($data->message);\n break;\n case 'breedInfo':\n $data->breed = $data->message;\n unset($data->message);\n break;\n }\n\n return (array) $data;\n }", "title": "" }, { "docid": "77462711c87486f33740bbeddf3977d7", "score": "0.6119162", "text": "public function getData()\n {\n return $this->fields['data'];\n }", "title": "" }, { "docid": "ff8d19920a6bf6fc021f2fbcea895884", "score": "0.6118436", "text": "public function GetData()\n {\n return($this->arrData);\n }", "title": "" }, { "docid": "b29bba727a73af249429d4bcc20bccff", "score": "0.6116455", "text": "public function getData() {\n return $this->data;\n }", "title": "" }, { "docid": "b29bba727a73af249429d4bcc20bccff", "score": "0.6116455", "text": "public function getData() {\n return $this->data;\n }", "title": "" }, { "docid": "b29bba727a73af249429d4bcc20bccff", "score": "0.6116455", "text": "public function getData() {\n return $this->data;\n }", "title": "" } ]
8cc16573213f8d7243ada04906fc1a57
Create a new Pager
[ { "docid": "89ec7adbe0ee846ad7314ea811a9d2d6", "score": "0.0", "text": "public function __construct( $total, $page_size, $current_page = 1 ){\n if( $current_page < 0 ){\n throw new Exception( 'Current page may not be < 1' );\n }\n\n $this->_total = $total;\n $this->_pageSize = $page_size;\n\n $this->_currentPage = min( $this->lastPage, $current_page );\n }", "title": "" } ]
[ { "docid": "2f1a2104e2a03de122e24399bdfa76a1", "score": "0.7939571", "text": "public function create()\n {\n return new Pager($this->getCommand($this->_strategy));\n }", "title": "" }, { "docid": "7a4f37f884881c457e0891258d207bb2", "score": "0.6453546", "text": "function Paginator1()\n\t{\n\t\tparent::WebPage('Basic Usage of Paginator');\n\t\t//Create Data::$Link to Demo databases\n\t\tData::$Links->DB1 = new DataConnection(Data::Postgres, 'demo_1', 'demo_1');\n\t\t//object where our paginated results will show\n\t\t$resultsPanel = new Panel(10, 50, 200, 300);\n\t\t$resultsPanel->BackColor = Color::Bisque;\n\t\t//Then we construct our Paginator and pass in $resultsPanel\n \t\t$pages = new Paginator($resultsPanel, 10, 30);\n \t\t//Create the DataCommand we want to page through\n\t\t$command = Data::$Links->DB1->CreateCommand(Data::SQL, 'SELECT * FROM persons');\n\t\t/*we then Bind the Paginator to the newly created $command\n\t\t * and set the callback for each row of data. We also set\n\t\t * a limit of 8 results per page*/\n \t\t $pages->Bind($command, new ServerEvent($this, 'CreatePerson'), 8);\n \t\t //Add Controls to the WebPage's Controls. Shows the Controls.\n\t\t $this->Controls->AddRange($pages, $resultsPanel);\n\t}", "title": "" }, { "docid": "5b5b352162688569cbc6b7088cbb660d", "score": "0.6440996", "text": "protected function createComponentVpOnePage()\n\t{\n\t\t$vp = new VencaX\\NettePagination\\BootstrapRendererV3();\n\t\t$vp->setMaximalPagesCount(5);\n\t\t$paginator = $vp->getPaginator();\n\t\t$paginator->itemsPerPage = 20;\n\t\t$paginator->itemCount = 20;\n\n\t\treturn $vp;\n\t}", "title": "" }, { "docid": "bf536a2d7bb3654175f3557378d6d680", "score": "0.643033", "text": "protected function createPagination(array $data = null)\n {\n $pagination = new Pagination();\n if ($data !== null) {\n $pagination->setData($data);\n }\n return $pagination;\n }", "title": "" }, { "docid": "c7238db7b0454b33b0b80294b7de55b1", "score": "0.6429404", "text": "public function createPager($contextId = null)\n {\n $pager = new Pager($this);\n $pager->setFor($contextId);\n\n return $this->pagers[$this->makeParameterId($contextId)] = $pager;\n }", "title": "" }, { "docid": "0cd1f30a13841b8fc167fd0eb3b0fa4e", "score": "0.64098763", "text": "public static function createInstance()\n {\n return new RepeaterPagingManager('ISerializable');\n }", "title": "" }, { "docid": "07d9421e761f6d7609fb144862f42c76", "score": "0.63240737", "text": "public function createPageObject()\n {\n $classname = $this->getRoute()->getClassname();\n\n return new $classname($this);\n }", "title": "" }, { "docid": "38ff2670af55040f35aa0f7714c22d00", "score": "0.6223304", "text": "protected function makePagerFromArray($data, $page = 1, $limit = 10)\n {\n $adapter = new ArrayAdapter($data);\n $pager = new Pagerfanta($adapter);\n $pager->setMaxPerPage($limit);\n $pager->setCurrentPage($page);\n\n return $pager;\n }", "title": "" }, { "docid": "4ea85a0414b4971a21da0baa621c96de", "score": "0.6164532", "text": "public function createPaginator(string $parameter, int $limit = 25): PaginatorInterface;", "title": "" }, { "docid": "2510d11dc4bd89b1fbe8c17fabfc50dd", "score": "0.6156924", "text": "protected function _createPages($scrollingStyle = null)\r\n {\r\n \t$this->getCurrentItems();\r\n \t\r\n \t// after loading the items, we can call the adapter to get the total count\r\n \t$this->_pageCount = $this->_calculatePageCount();\r\n \t \r\n \t/*\r\n \t * reproduce the original paginator behavior, for example:\r\n \t * if we have a total of 2 pages, but the user requested page number 3, the original paginator will return the last page (number 2).\r\n \t * \r\n \t * this is needed bacause the previous request for getCurrentItems was made when we didn't know the total pages count. \r\n \t * when page number is not normalized, we should get the items again.\r\n \t */\r\n \t$normalizedPageNumber = $this->normalizePageNumber($this->_currentPageNumber);\r\n \tif ($normalizedPageNumber != $this->_currentPageNumber) \r\n \t{\r\n \t\t$this->_currentItems = null;\r\n \t\t$this->getCurrentItems();\r\n \t\t$this->_pageCount = $this->_calculatePageCount();\r\n \t}\r\n \t\r\n return parent::_createPages($scrollingStyle);\r\n }", "title": "" }, { "docid": "f494f4ebcab907e6ed3eb00a2d97e85e", "score": "0.604763", "text": "public static function the_pager() {\n\t\t_deprecated_function( 'Habakiri::the_pager()', 'Habakiri 2.0.0', \"get_template_part( 'modules/pagination' )\" );\n\t\tget_template_part( 'modules/pagination' );\n\t}", "title": "" }, { "docid": "cd79eea54e1062802a5e4696ea1da6b8", "score": "0.6012963", "text": "public function create($total, $limitstart, $limit, $name = '', $type = '') {\n\n\t\tif (empty($type)) {\n\n\t\t\t// load class\n\t\t\tjimport('joomla.html.pagination');\n\n\t\t\treturn new JPagination($total, $limitstart, $limit);\n\n\t\t}\n\n\t\t// load Pagination class\n\t\t$class = $type.'Pagination';\n\t\t$this->app->loader->register($class, 'classes:pagination.php');\n\t\t\n\t\treturn $this->app->object->create($class, array($name, $total, $limitstart, $limit));\n\t\t\n\t}", "title": "" }, { "docid": "fc41f3c3433e5264644aaf35262ddc19", "score": "0.6008324", "text": "function create_pager ($pageNumber, $current_page, $pageSize, $count, $js_callback_paging_clicked) {\r\n\t$search = trim($_REQUEST['search']);\r\n\t$pageNumber = (int)$pageNumber;\r\n\t$b = (($pageNumber+1) * $pageSize) ;\r\n\t$b = min ( $b , $count ); // don't let the page-end be bigger than the total count\r\n\t$a = min($pageNumber * $pageSize + 1,$count - ($count % $pageSize) + 1);\r\n\t$veryLastPage = (int)($count / $pageSize);\r\n\t$veryLastPage += ($count % $pageSize == 0) ? 0 : 1;\r\n\tif($pageNumber == $veryLastPage) {\r\n\t\t$pageToGoTo = $pageNumber;\r\n\t\t$pageToGoTo += (($pageNumber + 1) * $pageSize > $count) ? 0 : 1;\r\n\t}\r\n\telse\r\n\t\t$pageToGoTo = $pageNumber + 1;\r\n\tif ($pageToGoTo == $current_page)\r\n\t\t$str = \"[<a title='{$pageToGoTo}' href='javascript:{$js_callback_paging_clicked} ($pageToGoTo, \\\"$search\\\")'>{$a}-{$b}</a>] \";\r\n\telse\r\n\t\t$str = \"<a title='{$pageToGoTo}' href='javascript:{$js_callback_paging_clicked} ($pageToGoTo, \\\"$search\\\")'>{$a}-{$b}</a> \";\r\n\treturn $str;\r\n}", "title": "" }, { "docid": "b90cd056cb60e564d3db6beab6f98f8d", "score": "0.5980914", "text": "public static function CreateFromArray($array) {\n\t\t$page = new ViewedPage($array['type'], $array['link_id'], $array['owner'], $array['id']);\n\t\t$page->setLabel($array['label']);\n\t\treturn $page;\n\t}", "title": "" }, { "docid": "4763550abe3120d225cedc125a6b2f81", "score": "0.5963533", "text": "public function getPager($query)\n {\n $pager = new Pagerfanta(new DoctrineORMAdapter($query, true, false));\n return $pager->setNormalizeOutOfRangePages(true);\n }", "title": "" }, { "docid": "5cf6bf084311e60d683923bb3f8d278d", "score": "0.5916669", "text": "public function create()\n {\n return view('pages::Page.create')\n ->withParents($this->pages->findByParentId(0));\n }", "title": "" }, { "docid": "04e8f83ee7b78a6de3d161be66a29f68", "score": "0.5903878", "text": "public function testPagerApi() {\n $view = Views::getView('test_pager_full');\n $view->setDisplay();\n // On the first round don't initialize the pager.\n\n $this->assertNull($view->getItemsPerPage(), 'If the pager is not initialized and no manual override there is no items per page.');\n $rand_number = rand(1, 5);\n $view->setItemsPerPage($rand_number);\n $this->assertEquals($rand_number, $view->getItemsPerPage(), 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');\n\n $this->assertNull($view->getOffset(), 'If the pager is not initialized and no manual override there is no offset.');\n $rand_number = rand(1, 5);\n $view->setOffset($rand_number);\n $this->assertEquals($rand_number, $view->getOffset(), 'Make sure getOffset uses the settings of setOffset.');\n\n $this->assertNull($view->getCurrentPage(), 'If the pager is not initialized and no manual override there is no current page.');\n $rand_number = rand(1, 5);\n $view->setCurrentPage($rand_number);\n $this->assertEquals($rand_number, $view->getCurrentPage(), 'Make sure getCurrentPage uses the settings of set_current_page.');\n\n $view->destroy();\n\n // On this round enable the pager.\n $view->initDisplay();\n $view->initQuery();\n $view->initPager();\n\n $this->assertEquals(5, $view->getItemsPerPage(), 'Per default the view has 5 items per page.');\n $rand_number = rand(1, 5);\n $view->setItemsPerPage($rand_number);\n $rand_number = rand(6, 11);\n $view->pager->setItemsPerPage($rand_number);\n $this->assertEquals($rand_number, $view->getItemsPerPage(), 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');\n\n $this->assertEquals(0, $view->getOffset(), 'Per default a view has a 0 offset.');\n $rand_number = rand(1, 5);\n $view->setOffset($rand_number);\n $rand_number = rand(6, 11);\n $view->pager->setOffset($rand_number);\n $this->assertEquals($rand_number, $view->getOffset(), 'Make sure getOffset uses the settings of setOffset.');\n\n $this->assertEquals(0, $view->getCurrentPage(), 'Per default the current page is 0.');\n $rand_number = rand(1, 5);\n $view->setCurrentPage($rand_number);\n $rand_number = rand(6, 11);\n $view->pager->setCurrentPage($rand_number);\n $this->assertEquals($rand_number, $view->getCurrentPage(), 'Make sure getCurrentPage uses the settings of set_current_page.');\n\n // Set an invalid page and make sure the method takes care about it.\n $view->setCurrentPage(-1);\n $this->assertEquals(0, $view->getCurrentPage(), 'Make sure setCurrentPage always sets a valid page number.');\n }", "title": "" }, { "docid": "c265700225e9d4769aaa7172c99d701b", "score": "0.5902903", "text": "function getPager($item,$perPage,$mode,$delta)\r\n{\r\n\tif($mode == \"\")\r\n\t{\r\n\t\t$mode = 'Sliding';\r\n\t}\r\n\t\r\n\t// setting the default delta value as 2\r\n\t// delta means the width of pagination\r\n\t// more delta value results more width\r\n\tif($delta == \"\")\r\n\t{\r\n\t\t$delta = '2';\r\n\t}\r\n\t\r\n\t$params = array(\r\n\t\t\t\t'mode'=>$mode,\r\n\t\t\t\t'perPage'=>$perPage,\r\n\t\t\t\t'delta'=>$delta,\r\n\t\t\t\t'itemData'=>$item);\r\n\t$pager =& Pager::factory($params);\r\n\t$data = $pager->getPageData();\r\n\t$links = $pager->getLinks();\r\n\t$links = $pager->links;\r\n\treturn array($data,$links);\r\n}", "title": "" }, { "docid": "f2fca3d7ed6e76ecfc984a182f1f366a", "score": "0.59020066", "text": "public function test_PagerInterface_1()\n { \n $this->pager->init(150);\n\n $this->assertEquals(20, $this->pager->getItemPerPageParam(), \n 'La valeur de getCurPageParam ne correspond pas à celle attendue');\n $this->assertEquals(0, $this->pager->getOffset(), \n 'La valeur de getOffset ne correspond pas à celle attendue');\n }", "title": "" }, { "docid": "d2f9040392bc25da8c18f78ffc2e8f29", "score": "0.58965635", "text": "static function initFrom($data) {\n\t\treturn new MnMangaPage($data['page_nb'] + 0, $data['link']);\n\t}", "title": "" }, { "docid": "e43ad0c8e6d10f9d520d1ce638e2c52f", "score": "0.5877476", "text": "public function __construct($viewName = \"pager_standard\") {\n\t\t$this->viewName = $viewName;\n\t\t$this->renderer = new StandardPagerRenderer();\n\t}", "title": "" }, { "docid": "894d85cca64b55888132437b7beceb2a", "score": "0.58589095", "text": "public static function create($config){\n self::$config = array_merge(self::$config, $config);\n \n $totalPages = ceil(self::$config['total_items'] / self::$config['per_page']);\n $currentPage = self::$config['current_page'];\n $previousPage = ($currentPage <= 1) ? null : $currentPage-1;\n $nextPage = ($currentPage >= $totalPages) ? null : $currentPage+1; \n \n self::$paginationData = array( \n 'total_pages' => $totalPages,\n 'current_page' => $currentPage,\n 'previous_page' => $previousPage,\n 'next_page' => $nextPage\n ); \n \n self::$paginationData['render'] = self::render();\n \n return self::$paginationData;\n \n }", "title": "" }, { "docid": "fe1c9f27c5f3e2db9a407a68f16610fc", "score": "0.58571696", "text": "function create_pagination()\n{\n $currentPage = isset($_GET['page']) ? (int)$_GET['page'] : 1;\n // Items per page\n $perPage = isset($_GET['perpage']) ? (int)$_GET['perpage'] : 20;\n //set the offset\n $offset = $perPage * ($currentPage - 1);\n\n $pagination = array(\n 'offset' => $offset,\n 'per_page' => $perPage\n );\n\n return $pagination;\n}", "title": "" }, { "docid": "d401f5dac6e25ada76183657b9c74951", "score": "0.58538437", "text": "private function buildPagination()\n {\n $pages = array();\n\n if ($this->total <= 1) {\n return array();\n }\n\n if ($this->total <= $this->maxPagesToShow) {\n \n for ($i = 1; $i <= $this->total; $i++) {\n $pages[] = $this->createPage($i, $i == $this->page);\n }\n\n } else {\n\n /* Determine the sliding range, centered around the current page. */\n $numAdjacents = (int) floor(($this->maxPagesToShow - 3) / 2);\n\n if ($this->page + $numAdjacents > $this->total) {\n $slidingStart = $this->total - $this->maxPagesToShow + 2;\n } else {\n $slidingStart = $this->page - $numAdjacents;\n }\n\n if ($slidingStart < 2) $slidingStart = 2;\n \n $slidingEnd = $slidingStart + $this->maxPagesToShow - 3;\n \n if ($slidingEnd >= $this->total) $slidingEnd = $this->total - 1;\n \n /* Build the list of pages. */\n $pages[] = $this->createPage(1, $this->page == 1);\n \n if ($slidingStart > 2) {\n $pages[] = $this->createPageEllipsis();\n }\n\n for ($i = $slidingStart; $i <= $slidingEnd; $i++) {\n $pages[] = $this->createPage($i, $i == $this->page);\n }\n\n if ($slidingEnd < $this->total - 1) {\n $pages[] = $this->createPageEllipsis();\n }\n\n $pages[] = $this->createPage($this->total, $this->page == $this->total);\n }\n\n $this->pagination = $pages;\n }", "title": "" }, { "docid": "0dc8df79b8f57c039a24505778843894", "score": "0.5833329", "text": "function genPager($url, $pages = 1, $page = 1, $bound = 5,$img_path='/images/'){\n\t\t$pager = array();\n\t\t$start = $page - $bound;\n\t\tif($start < 1) $start = 1;\n\t\t$end = $page + $bound;\n\t\tif($end > $pages) $end = $pages;\n\t\t$pager[] = array('name' => '<img src=\"'.$img_path.'ico_first.png\" alt=\"first\" >','url' => sprintf($url,1), 'current' => 0);\n\t\t$pager[] = array('name' => '<img src=\"'.$img_path.'ico_prev.png\" alt=\"previous\">','url' => sprintf($url,$page-1), 'current' => 0);\n\t\tfor($i=$start; $i<=$end; $i++) {\n\t\t\t$current = 0;\n\t\t\tif($i==$page) $current = 1;\n\t\t\t$pager[] = array('name' => $i,'url' => sprintf($url,$i), 'current' => $current);\n\t\t}\n\t\t$pager[] = array('name' => '<img src=\"'.$img_path.'ico_next.png\" alt=\"next\" >','url' => sprintf($url,$page+1), 'current' => 0);\n\t\t$pager[] = array('name' => '<img src=\"'.$img_path.'ico_last.png\" alt=\"last\" >','url' => sprintf($url,$pages), 'current' => 0);\n\t\treturn $pager;\n\t}", "title": "" }, { "docid": "21d6af8f42390a1081a81f3901f7d168", "score": "0.5822273", "text": "protected function paginationFactory(): PaginationFactory\n {\n return new PaginationFactory();\n }", "title": "" }, { "docid": "ecdb4f6766120f09dc0ac58a8be0d68d", "score": "0.58168244", "text": "function __construct($page_size = 20, $page = 1)\n {\n $this->page = $page;\n $this->page_size = $page_size;\n }", "title": "" }, { "docid": "fa500dfa1e13e52aee2306520c440905", "score": "0.57931644", "text": "function instertPaginationItem($index, $currentPage, $maxPage) {\n global $baseUrl;\n $currentPageMark = ($index==$currentPage) ? 'pager__item_active' : '';\n echo \"<li class='pager__item $currentPageMark'>\n <a href='$baseUrl?page=$index' class='pager__link'>$index</a>\n </li>\";\n}", "title": "" }, { "docid": "d8d80cf7af762710883f0bbd9caee127", "score": "0.5792356", "text": "function &_createPage($response) {\r\n return new SimplePage($response);\r\n }", "title": "" }, { "docid": "1e7b567773b0557a9e3e14c12ea2333f", "score": "0.57617414", "text": "public static function getPager($count, $pagenum, $pagesize=NULL){\n if (is_null($pagesize)) $pagesize = fw::i()->config->MAX_PAGE_ITEMS;\n\n $PAD_PAGES = 5; #show up to this number of pages before/after current page\n\n $pager = array();\n if ($count>$pagesize){\n $page_count = ceil($count/$pagesize);\n\n $from_page = $pagenum - $PAD_PAGES;\n if ($from_page < 0) $from_page = 0;\n\n $to_page = $pagenum + $PAD_PAGES;\n if ($to_page > $page_count - 1) $to_page = $page_count - 1;\n\n for ($i=$from_page; $i <= $to_page; $i++) {\n $pg=array(\n 'pagenum' => $i,\n 'pagenum_show' => $i+1,\n 'is_cur_page' => ($pagenum==$i) ? true : false,\n );\n if ($i == $from_page){\n if ($pagenum > $PAD_PAGES) $pg['is_show_first']=true;\n if ($pagenum > 0) {\n $pg['is_show_prev'] = true;\n $pg['pagenum_prev'] = $pagenum - 1;\n }\n }elseif ($i == $to_page) {\n if ($pagenum < $page_count - 1) {\n $pg['is_show_next'] = true;\n $pg['pagenum_next'] = $pagenum + 1;\n }\n }\n $pager[]=$pg;\n }\n }\n\n return $pager;\n }", "title": "" }, { "docid": "b6261cad20fcab8984789f42c59a88a2", "score": "0.5760223", "text": "protected function newPdiPage($pageNumber, array $options)\n {\n return new PdiPage($this->adapter, $this, $pageNumber, $options);\n }", "title": "" }, { "docid": "d2b64d02f75ada9023fa8a0f413b46a6", "score": "0.5745805", "text": "function PagesConstruct()\n\t{\t\n\t}", "title": "" }, { "docid": "822a4afdc56ca162695cb6b512a63386", "score": "0.57453537", "text": "public function create()\n {\n\n $this->data = [\n 'templates' => \\Pageblok::getTemplates('page'),\n 'contentTypes' => \\Pageblok::getContentTypes(),\n 'defaultTemplate' => \\Page::getDefaultTemplate(),\n ];\n\n return parent::create();\n }", "title": "" }, { "docid": "60508be7718a65553205899c9159f01c", "score": "0.5744502", "text": "private function setPage()\n\t{\n\t\t$this->page = new Page;\n\t}", "title": "" }, { "docid": "76179e85240b9d510c8a72d0b003cbc3", "score": "0.57431036", "text": "private function createPages($order) {\n if ($this->papaya()->request->isPreview) {\n $pages = new PapayaContentPages();\n } else {\n $pages = new PapayaContentPagesPublications();\n }\n if ($orderBy = $this->getOrderBy($order, $pages)) {\n $pages->orderBy($orderBy);\n }\n $pages->papaya($this->papaya());\n return $pages;\n }", "title": "" }, { "docid": "7789668bb39c44f571c4550a1d60b004", "score": "0.5726728", "text": "public function custom_pager($url,$per_page,$total_rows)\n\t{\n\t\t\n\t\t$this->load->library('pagination');\n\t\t$config['base_url'] = $url;\n\t\t$config['total_rows'] =$total_rows;\n\t\t$config['per_page'] = $per_page;\n\t\t$config['use_page_numbers'] = TRUE;\n\t\t$config['first_url'] = $url.'1'; \n\t\t$config['first_link'] = 'First';\n\t\t$config['full_tag_open'] = '<ul class=\"pagination\">';\n\t\t$config['full_tag_close'] = '</ul>';\n\t\t$this->pagination->initialize($config);\n\t\treturn $this->pagination;\n\t}", "title": "" }, { "docid": "2ad562c84131f911bf3a89c1f6b891af", "score": "0.57243854", "text": "public static function create()\n {\n $page = new Page();\n $page->site_id = CMS\\Bazalt::getSiteId();\n return $page;\n }", "title": "" }, { "docid": "ad8d1779955091c40bbd33549b5b598a", "score": "0.5700835", "text": "protected function createComponentVp10()\n\t{\n\t\t$vp = new VencaX\\NettePagination\\BootstrapRendererV3();\n\t\t$vp->setMaximalPagesCount(10);\n\t\t$paginator = $vp->getPaginator();\n\t\t$paginator->itemsPerPage = 20;\n\t\t$paginator->itemCount = 10000;\n\n\t\treturn $vp;\n\t}", "title": "" }, { "docid": "7490a12952b409545f7cf47daddbb88c", "score": "0.5699494", "text": "function addPagination(){\n echo \"<div id='pagination-info'>\n <div id='pages-label'>\n <strong>Page \".getPageNumbers().\"</strong>\n </div>\n <ul class='pagination'>\n \".showFirst().\"\n \t<li \".disablePrevious().\">\n \t <a \".showPrevious().\">Previous</a>\n \t</li>\n \".showPageNumberLinks().\"\n \t<li \".disableNext().\">\n \t <a \".showNext().\">Next</a>\n \t</li>\n \".showLast().\"\n </ul>\n </div>\n \";\n }", "title": "" }, { "docid": "42b7cda08805992fb82a602d5d1de7f1", "score": "0.56887203", "text": "function fett_pager($vars) {\n $tags = $vars['tags'];\n $element = $vars['element'];\n $parameters = $vars['parameters'];\n $quantity = $vars['quantity'];\n global $pager_page_array, $pager_total;\n\n // Calculate various markers within this pager piece:\n // Middle is used to \"center\" pages around the current page.\n $pager_middle = ceil($quantity / 2);\n // Current is the page we are currently paged to.\n $pager_current = $pager_page_array[$element] + 1;\n // First is the first page listed by this pager piece (re-quantify).\n $pager_first = $pager_current - $pager_middle + 1;\n // Last is the last page listed by this pager piece (re-quantify)\n $pager_last = $pager_current + $quantity - $pager_middle;\n // Max is the maximum page number.\n $pager_max = $pager_total[$element];\n // End of marker calculations.\n\n // Prepare for generation loop.\n $i = $pager_first;\n if ($pager_last > $pager_max) {\n // Adjust \"center\" if at end of query.\n $i = $i + ($pager_max - $pager_last);\n $pager_last = $pager_max;\n }\n if ($i <= 0) {\n // Adjust \"center\" if at start of query.\n $pager_last = $pager_last + (1 - $i);\n $i = 1;\n }\n // End of generation loop preparation.\n\n $li_first = theme('pager_first', array('text' => (isset($tags[0]) ? $tags[0] : t('« first')), 'element' => $element, 'parameters' => $parameters));\n $li_previous = theme('pager_previous', array('text' => (isset($tags[1]) ? $tags[1] : t('‹ previous')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_next = theme('pager_next', array('text' => (isset($tags[3]) ? $tags[3] : t('next ›')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_last = theme('pager_last', array('text' => (isset($tags[4]) ? $tags[4] : t('last »')), 'element' => $element, 'parameters' => $parameters));\n\n if ($pager_total[$element] > 1) {\n if ($li_first) {\n $items[] = array(\n 'class' => array('arrow'),\n 'data' => $li_first,\n );\n }\n if ($li_previous) {\n $items[] = array(\n 'class' => array('arrow'),\n 'data' => $li_previous,\n );\n }\n\n // When there is more than one page, create the pager list.\n if ($i != $pager_max) {\n if ($i > 1) {\n $items[] = array(\n 'class' => array('unavailable'),\n 'data' => '<a href=\"\">&hellip;</a>',\n );\n }\n // Now generate the actual pager piece.\n for (; $i <= $pager_last && $i <= $pager_max; $i++) {\n if ($i < $pager_current) {\n $items[] = array(\n 'data' => theme('pager_previous', array('text' => $i, 'element' => $element, 'interval' => ($pager_current - $i), 'parameters' => $parameters)),\n );\n }\n if ($i == $pager_current) {\n $items[] = array(\n 'class' => array('current'),\n 'data' => '<a href=\"\">' . $i . '</a>',\n );\n }\n if ($i > $pager_current) {\n $items[] = array(\n 'data' => theme('pager_next', array('text' => $i, 'element' => $element, 'interval' => ($i - $pager_current), 'parameters' => $parameters)),\n );\n }\n }\n if ($i < $pager_max) {\n $items[] = array(\n 'class' => array('unavailable'),\n 'data' => '<a href=\"\">&hellip;</a>',\n );\n }\n }\n // End generation.\n if ($li_next) {\n $items[] = array(\n 'class' => array('arrow'),\n 'data' => $li_next,\n );\n }\n if ($li_last) {\n $items[] = array(\n 'class' => array('arrow'),\n 'data' => $li_last,\n );\n }\n\n $pager_links = array(\n '#theme' => 'item_list',\n '#items' => $items,\n '#attributes' => array('class' => array('pagination', 'pager')),\n );\n\n if (theme_get_setting('fett_pager_center')) {\n $pager_links['#prefix'] = '<div class=\"pagination-centered\">';\n $pager_links['#suffix'] = '</div>';\n }\n\n $pager_links = drupal_render($pager_links);\n\n return '<h2 class=\"element-invisible\">' . t('Pages') . '</h2>' . $pager_links;\n }\n}", "title": "" }, { "docid": "1e28bade3d2c82de9d6f671a481d1a67", "score": "0.5688623", "text": "public function getView()\n {\n if ($this->pages < 1) {\n $this->pages = 1;\n }\n\n if ($this->page < 1 || $this->page > $this->pages) {\n $this->page = 1;\n }\n\n $view = new View(__DIR__ . '/Pagination/View');\n $view->setParams($this->getViewParams());\n return $view;\n }", "title": "" }, { "docid": "2df6c73711a75f117378c19fc109bae6", "score": "0.5657695", "text": "public function paginate($currentPage = 1, $rowsPerPage = 10){\r\n \r\n return new \\flat\\sql\\Pagination($this, $currentPage, $rowsPerPage);\r\n \r\n }", "title": "" }, { "docid": "bda04272d3389ecb4b9926c45d961a07", "score": "0.56568503", "text": "private function createPagination(\n $entities,\n Request $request,\n $itemPerPage = null,\n $customPaginationTheme = null\n ) {\n if (!empty($itemPerPage)) {\n $ITEM_PER_PAGE = $itemPerPage;\n } else {\n $ITEM_PER_PAGE = self::$DEFAULT_ITEM_PER_PAGE;\n }\n\n /** @var Paginator $paginator */\n $paginator = $this->get('knp_paginator');\n\n /** @var SlidingPagination $pagination */\n $pagination = $paginator->paginate(\n $entities,\n $request->query->get('page', 1),\n $ITEM_PER_PAGE\n );\n\n if (!empty($customPaginationTheme)) {\n $paginationTheme = $customPaginationTheme;\n } else {\n $paginationTheme = self::$DEFAULT_PAGINATION_THEME;\n }\n\n $pagination->setTemplate(self::$DIR_PAGINATION.$paginationTheme);\n\n return $pagination;\n }", "title": "" }, { "docid": "920955dd8a69215105c44b827bdb519c", "score": "0.56552017", "text": "function getPagerPageSize() ;", "title": "" }, { "docid": "c302f8d0a0f241dcc406ad2a6ab9dafd", "score": "0.56318045", "text": "private function createPagination($filter, $where, $currentPage){\r\n\t\tglobal $pdoHandlerObject;\r\n\t\t$total = $pdoHandlerObject->executeQuery(\"SELECT COUNT(id) as total FROM \".self::TASK_TABLE.$where)->fetch(PDO::FETCH_OBJ)->total;\r\n\t\t\r\n\t\tif($total > self::RECORDS_PER_PAGE){\r\n\t\t\t$paginationHtml = '<nav aria-label=\"...\">\r\n \t\t\t\t\t\t <ul class=\"pagination\">';\r\n\t\t\t$numberOfPages = ceil($total/self::RECORDS_PER_PAGE);\r\n\t\t\t\r\n\t\t\t$prevLink = \"#\";\r\n\t\t\t$prevClass = \"disabled\";\r\n\t\t\t$nextLink = \"#\";\r\n\t\t\t$nextClass = \"disabled\";\r\n\t\t\t\r\n\t\t\tif($currentPage > 1){\r\n\t\t\t\t$prevLink = \"?status=\".$filter.\"&page=\".($currentPage-1);\r\n\t\t\t\t$prevClass = \"\";\r\n\t\t\t}\r\n\t\t\tif($currentPage < $numberOfPages){\r\n\t\t\t\t$nextLink = \"?status=\".$filter.\"&page=\".($currentPage+1);\r\n\t\t\t\t$nextClass = \"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$paginationHtml .= '<li class=\"'.$prevClass.'\"><a href=\"'.$prevLink.'\" aria-label=\"Previous\"><span aria-hidden=\"true\">«</span></a></li>';\r\n\t\t\t\t\t\t\t\t\r\n\t\t\tfor($i=1; $i <= $numberOfPages; $i++){\r\n\t\t\t\t$activeClass = \"\";\r\n\t\t\t\tif($i == $currentPage){\r\n\t\t\t\t\t$activeClass = \"active\";\r\n\t\t\t\t}\r\n\t\t\t\t$link = \"?status=\".$filter.\"&page=\".$i;\r\n\t\t\t\t$paginationHtml .= '<li class=\"'.$activeClass.'\"><a href=\"'.$link.'\">'.$i.' <span class=\"sr-only\">(current)</span></a></li>';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$paginationHtml .= '<li class=\"'.$nextClass.'\"><a href=\"'.$nextLink.'\" aria-label=\"Next\"><span aria-hidden=\"true\">»</span></a></li>';\r\n\t\t\t$paginationHtml .= '</ul>.\r\n\t\t\t\t\t\t\t\t</nav>';\r\n\t\t\t$this->pagination = $paginationHtml;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "996544fc9068699ca6667db079a134d3", "score": "0.56073177", "text": "public function __construct($page = 1)\n {\n $this->page = $page;\n }", "title": "" }, { "docid": "1bb87f7b3738ea1c55edd5c53d924bf9", "score": "0.56017613", "text": "public function __construct()\n\t{\n\t\t$this->setPage($this);\n\t}", "title": "" }, { "docid": "61f86948d6412c6a0d9ec3344d856a8b", "score": "0.5594705", "text": "public function create()\n {\n return view('admin.pages.create', [\n 'page' => new Page\n ]);\n }", "title": "" }, { "docid": "060a961274ae3ffb88394ccb6940cb91", "score": "0.5591725", "text": "function oxo_pagination( $args ) \n\t{\n\t\treturn new oxoPagination( $args );\n\t}", "title": "" }, { "docid": "af0d3220028256215e608757659890d0", "score": "0.55880785", "text": "private function create_page_list() {\n switch ( $this->style ) {\n case 'list':\n case 'bullet':\n return $this->create_bullet_list();\n\n case 'full':\n return $this->create_full_list();\n\n case 'summary':\n return $this->create_summary_list();\n\n\t default:\n\t \treturn $this->create_custom_list();\n }\n }", "title": "" }, { "docid": "1f709a3db00f0cfc59f141515923dc34", "score": "0.5587876", "text": "function pages(){\n\t$pages = floor($this->totalrecords/$this->limit); \n\tfor ($i=1;$i<=$pages+1;$i++) { \n\t\tif($this->page != $i ) { \n\t\t\t$after=($this->page+($this->NumberOfPagesToShow));\n\t\t\t$befor=($this->page-($this->NumberOfPagesToShow));\n\t\t\tif($i<$after && $i>$befor) {\n\t\t\t\tif((empty($this->page)) && ($i==1)) {\n\t\t\t\t$pagelist .=\"<b><font color=\\\"blue\\\" size=\\\"4\\\">&nbsp;\".$i.\"&nbsp;</b></font>|\"; \n\t\t\t\t} else {\n\t\t\t\t\t$url =$this->CheckPageOne($i);\n\t\t\t\t\t$pagelist .=\"&nbsp;<a href=\\\"\".$url.\"\\\" style='text-decoration: none; font-family:\\\"Microsoft Sans Serif\\\"; font-size:12px; color:#646464;'>\".$i.\"</a>&nbsp;|\"; \n\t\t\t\t}// End :if(empty($page) && $i==1) {\n\t\t\t} // End of : if ($i < $b && $i > $a)\n\t\t} // End of : if ($page != $i)\n\t\telse\n\t\t{ \n\t\t\t$pagelist .=\"<b><font color=\\\"blue\\\" size=\\\"4\\\">&nbsp;\".$i.\"&nbsp;</b></font>|\"; \n\t\t} // End of : else\n\t} // End of : for ($i = 2; $i <= $pages; $i++)\n\treturn $pagelist;\n}", "title": "" }, { "docid": "8b7d76914479c9be627e8e6cf3270e06", "score": "0.55877453", "text": "public function test_PagerInterface_3()\n {\n $_REQUEST['REQUESTED_URI'] = '/rebolon/pager/test';\n $_REQUEST[self::__SUFFIX_ITEMPERPAGE__ . self::$suffixName] = 10;\n $_REQUEST[self::__SUFFIX_GOTOPAGE__ . self::$suffixName] = 2;\n \n $this->pager->init(150);\n\n $this->assertEquals(10, $this->pager->getItemPerPageParam(), \n 'La valeur de getItemPerPageParam ne correspond pas à celle attendue');\n $this->assertEquals(20, $this->pager->getOffset(), \n 'La valeur de getOffset ne correspond pas à celle attendue');\n }", "title": "" }, { "docid": "09dfaff2fc14fbaa79fc697d37fad618", "score": "0.5579918", "text": "public function getPaging();", "title": "" }, { "docid": "ef37aa789a4779b85315b8ba52700df1", "score": "0.55667585", "text": "public function create($items, $total, $per_page, $current_page);", "title": "" }, { "docid": "2c6790e2d33886b7228f80cb73941b8e", "score": "0.5560555", "text": "protected function addPage()\r\n\t{\r\n\t\tglobal $tpl, $lng, $ilTabs, $ilCtrl;\r\n\r\n\t\t$ilTabs->clearTargets();\r\n\t\t$ilTabs->setBackTarget($lng->txt(\"back\"),\r\n\t\t\t$ilCtrl->getLinkTarget($this, \"pages\"));\r\n\r\n\t\t$form = $this->initPageForm(\"create\");\r\n\t\t$tpl->setContent($form->getHTML());\r\n\t}", "title": "" }, { "docid": "4581726411a71ef835c5c13041499791", "score": "0.5555574", "text": "private function createPages() {\n\n\t\t// 7. ###### Create needed parent pages and some example child pages (total pages vary depending on blogStyle selected) ######\n\t\t// array of pages to add\n\t\t// first create 'blog' page if applicable; then other parent pages; then child pages\n\n\t\t$parents = $this->parents;\n\t\t$blogPagesIDs = array();\n\t\t$pages = $this->wire('pages');\n\t\t$templates = $this->wire('templates');\n\n\t\t$parent = $pages->get('/');// if $this->blogStyle == 3 || $this->blogStyle == 4 parent is 'root'\n\n\t\t// the 'Blog' page\n\t\tif ($this->blogStyle == 1 || $this->blogStyle == 2) {\n\n\t\t\t\t$p = new Page();\n\t\t\t\t$p->template = $templates->get('blog');\n\t\t\t\t$p->parent = $parent;\n\t\t\t\t$p->title = $parents['blog'];// set by user or defaults to 'Blog' - see verifyInstall();\n\t\t\t\t$p->save();\n\n\t\t\t\t// save the ID of the 'blog' page for later saving to module config\n\t\t\t\t$blogPagesIDs['blog'] = $p->id;\n\n\t\t\t\t// unset $parents['blog'] since we no longer need it here. For blogStyle == 3 || blogStyle == 4 we already unset it earlier in verifyInstall()\n\t\t\t\tunset($parents['blog']);\n\n\t\t\t\t$parent = $pages->get($blogPagesIDs['blog']);// if $this->blogStyle == 1 || $this->blogStyle == 2 parent is 'blog'\n\n\n\t\t}\n\n\t\t// The remaining parent pages. Their parent here will be the above created blog page\n\t\t$parentPages = $parents;\n\n\t\t// create the remaining parent pages (i.e. minus 'blog' which we created before)\n\n\t\t// now $k = template and $v = title; $k will also refer to identfier in $blogPagesIDs\n\t\tforeach ($parentPages as $k => $v) {\n\n\t\t\t\t$p = new Page();\n\t\t\t\t$p->template = $templates->get($k);\n\t\t\t\t$p->parent = $parent;\n\t\t\t\t$p->title = $v;\n\t\t\t\tif ($k == 'blog-widgets' || $k == 'blog-settings') $p->addStatus(Page::statusHidden);// hidden page - using $k since $v will vary\n\n\t\t\t\t// for 'Example Post' page, we need to add the demo date properly. Otherwise, normally, the date field will be populated when post published\n\t\t\t\tif ($k == 'blog-post') $p->blog_date = date('j F Y g:i a');// e.g '8 April 2012 11:15 am'\n\t\t\t\t$p->save();\n\n\t\t\t\t/*\twe grab the id of each top page for later saving to module config\n\t\t\t\t\te.g. $blogPagesIDs['blog-settings'] will store ID of 'Settings' page\n\t\t\t\t\tbut we skip 'Example Post' {available if blogStyle = 2} since not needed\n\t\t\t\t*/\n\t\t\t\tif ($k!= 'blog-post') $blogPagesIDs[$k] = $p->id;// no ID to be saved if 'Example Post'\n\t\t}\n\n\t\t// set parent pages IDs of below $childPages\n\t\t$posts = $this->blogStyle == 1 || $this->blogStyle == 3 ? $blogPagesIDs['blog-posts'] : '';\n\t\t$categories = $blogPagesIDs['blog-categories'];\n\t\t$tags = $blogPagesIDs['blog-tags'];\n\t\t$comments = $this->commentsUse == 1 ? $blogPagesIDs['blog-comments'] : '';\n\t\t$widgets = $blogPagesIDs['blog-widgets'];\n\n\t\t// $k=for parentsID [where applicable] => $v[0]=title; $v[1]=template; $v[2]=parent page ID\n\t\t$childPages = array(\n\n\t\t\t\t\t\t\t'Example Post' => array('Example Post', 'blog-post', $posts),// if blogStyle = 2 or 4, already created! so unset below\n\t\t\t\t\t\t\t'Example Category' => array('Example Category', 'blog-category', $categories),\n\t\t\t\t\t\t\t'Example Tag' => array('Example Tag', 'blog-tag', $tags),\n\t\t\t\t\t\t\t'blog-asc' => array('Always Show Comments', 'blog-basic', $comments),\n\t\t\t\t\t\t\t'blog-dnc' => array('Disable New Comments', 'blog-basic', $comments),\n\t\t\t\t\t\t\t'blog-dc' => array('Disable Comments', 'blog-basic', $comments),\n\t\t\t\t\t\t\t'blog-rposts' => array('Recent Posts', 'blog-recent-posts', $widgets),\n\t\t\t\t\t\t\t'blog-rcomments' => array('Recent Comments', 'blog-recent-comments', $widgets),\n\t\t\t\t\t\t\t'blog-broll' => array('Blogroll', 'blog-links', $widgets),\n\t\t\t\t\t\t\t'blog-tweets' => array('Recent Tweets', 'blog-recent-tweets', $widgets),\n\t\t\t\t\t\t\t'blog-pauthor' => array('Post Author', 'blog-widget-basic', $widgets),\n\t\t);\n\n\n\t\t// unset 'Example Post' if blogSyle = 2 || blogSyle = 4 since already created earlier as 'parent page'\n\t\tif ($this->blogStyle == 2 || $this->blogStyle == 4) {unset($childPages['Example Post']);}\n\n\t\t// unset comments-related child pages if commenting feature is off, i.e. if commentsUse !=1\n\t\tif ($this->commentsUse !=1) {\n\n\t\t\t\tunset($childPages['blog-asc']);\n\t\t\t\tunset($childPages['blog-dnc']);\n\t\t\t\tunset($childPages['blog-dc']);\n\t\t\t\tunset($childPages['blog-rcomments']);\n\n\t\t}\n\n\t\t// create the child pages: // $k=for parentsID [where applicable] => $v[0]=title; $v[1]=template; $v[2]=parent page (OBJECT)\n\t\tforeach ($childPages as $k => $v) {\n\n\t\t\t\t\t$p = new Page();\n\t\t\t\t\t$p->template = $templates->get($v[1]);\n\t\t\t\t\t$p->parent = $pages->get($v[2]);// get parent\n\t\t\t\t\t$p->title = $v[0];\n\t\t\t\t\t// for 'Example Post' page, we need to add the demo date properly. Otherwise, normally, the date field will be populated when post published\n\t\t\t\t\tif($k == 'Example Post') $p->blog_date = date('j F Y g:i a');// e.g '8 April 2012 11:15 am'\n\t\t\t\t\t$p->save();\n\n\t\t\t\t\t/*\twe grab the id of each child page for later saving to module config\n\t\t\t\t\te.g. $blogPagesIDs['blog-rcomments'] will store ID of 'Recent Comments' page\n\t\t\t\t\tbut we skip 'Example Post' {available if blogStyle = 1 OR 3}, 'Example Category' and 'Example Tag' since not needed and can be deleted by user\n\t\t\t\t\t*/\n\t\t\t\t\tif (!in_array($k, array('Example Post', 'Example Category', 'Example Tag'))) $blogPagesIDs[$k] = $p->id;\n\t\t}\n\n\n\t\t// we save this to a class property. We'll use this later to save to module config\n\t\t$this->blogPagesIDs = $blogPagesIDs;\n\n\t\treturn $this->extraPageSettings();\n\n\t}", "title": "" }, { "docid": "6ab0fe562ffbab82a9b25f6edd3c9352", "score": "0.5551905", "text": "static public function makePagerXML(DOMDocument $xml, $count, $per_page_count=20, $current_page){\n\t\t$pager = $xml->createElement('pager');\n\t\t$pager->setAttribute('count', $count);\n\t\t$pager->setAttribute('per-page-count', $per_page_count);\n\t\t$pager->setAttribute('offset', $per_page_count * ($current_page - 1));\n\t\tfor ($i = 1; $i <= ceil($count / $per_page_count); $i++){\n\t\t\t$page = $pager->appendChild($xml->createElement('page', $i));\n\t\t\tif($i == $current_page){\n\t\t\t\t$page->setAttribute('current', 'true');\n\t\t\t}\n\t\t}\n\t\treturn $pager;\n\t}", "title": "" }, { "docid": "b93eb8218051ca73c4c3863f4a6bda86", "score": "0.55478567", "text": "public function pagination()\n {\n }", "title": "" }, { "docid": "b93eb8218051ca73c4c3863f4a6bda86", "score": "0.55478567", "text": "public function pagination()\n {\n }", "title": "" }, { "docid": "fb23cc8447fa336966e18e6748f9909b", "score": "0.5545121", "text": "public function generatePage();", "title": "" }, { "docid": "67354a7f506fc85a382360d87c3140d4", "score": "0.5534092", "text": "public function setCurrentPage(int $page): PaginatorInterface;", "title": "" }, { "docid": "3fb1344f08e76535a558c9b235864e96", "score": "0.5527519", "text": "public function getInitialisedPager($request, $category, $page, $isRss = false)\n {\n $manager = listingManager::getInstance();\n $template = $this->template;\n $pagerClass = $manager->getDisplayPagerClass($template);\n\n // make our pager\n $pager = new $pagerClass($this);\n\n // do the page number\n $maxPerPage = $this->results_per_page;\n\n if ($page == 0)\n { \n // page == 0 means view all\n $page = 1;\n $maxPerPage = 0;\n }\n\n $pager->setPage($page);\n\n // restrict to items from this content listing\n $this->addListItemRestrictions($pager, $category);\n\n // add in ordering clause\n $q = $pager->getQuery();\n\n if ($this->use_custom_order)\n {\n $q->orderBy('position');\n }\n elseif ($isRss)\n {\n $q->orderBy($manager->getRssItemOrdering($template));\n }\n else\n {\n $q->orderBy($manager->getListItemOrdering($template));\n }\n\n $pager->setMaxPerPage($maxPerPage);\n\n // get the pager to add the filter form values\n $pager->addFilterValuesToQuery($request);\n\n // do the pager query\n $pager->init();\n\n return $pager;\n }", "title": "" }, { "docid": "5df60f5d15112e39a53295266c3b439b", "score": "0.5524045", "text": "protected function initializePager() {\n $entity = ($this->errorsFor == 'contact' ? 'AccountContact' : 'AccountInvoice');\n $totalitems = civicrm_api3($entity, 'getcount', [\n 'error_data' => ['NOT LIKE' => '%error_cleared%'],\n 'plugin' => 'xero',\n ]);\n $params = [\n 'total' => $totalitems,\n 'rowCount' => CRM_Utils_Pager::ROWCOUNT,\n 'status' => ts('Synchronization Errors %%StatusMessage%%'),\n 'buttonBottom' => 'PagerBottomButton',\n 'buttonTop' => 'PagerTopButton',\n 'pageID' => $this->get(CRM_Utils_Pager::PAGE_ID),\n ];\n $this->_pager = new CRM_Utils_Pager($params);\n $this->assign_by_ref('pager', $this->_pager);\n }", "title": "" }, { "docid": "f081dc18172d2ebd61f63dc7edd4d2da", "score": "0.55220175", "text": "public function pagination() {\n\n\t\t\n\t}", "title": "" }, { "docid": "7b8e2c33473d47d04c88cdf82b2b5feb", "score": "0.5516777", "text": "public function startNewPage()\n {\n }", "title": "" }, { "docid": "8aa86ef2e6935cef1929c7661f81e364", "score": "0.55123097", "text": "public function __construct () {\n $this->template = new PageTemplate ();\n }", "title": "" }, { "docid": "7dceec3ee6f7a6e675b280b278f19adf", "score": "0.55084956", "text": "function rapid_pager($variables) {\n $tags = $variables['tags'];\n $element = $variables['element'];\n $parameters = $variables['parameters'];\n $quantity = $variables['quantity'];\n global $pager_page_array, $pager_total;\n\n // Calculate various markers within this pager piece:\n // Middle is used to \"center\" pages around the current page.\n $pager_middle = ceil($quantity / 2);\n // current is the page we are currently paged to\n $pager_current = $pager_page_array[$element] + 1;\n // first is the first page listed by this pager piece (re quantity)\n $pager_first = $pager_current - $pager_middle + 1;\n // last is the last page listed by this pager piece (re quantity)\n $pager_last = $pager_current + $quantity - $pager_middle;\n // max is the maximum page number\n $pager_max = $pager_total[$element];\n // End of marker calculations.\n\n // Prepare for generation loop.\n $i = $pager_first;\n if ($pager_last > $pager_max) {\n // Adjust \"center\" if at end of query.\n $i = $i + ($pager_max - $pager_last);\n $pager_last = $pager_max;\n }\n if ($i <= 0) {\n // Adjust \"center\" if at start of query.\n $pager_last = $pager_last + (1 - $i);\n $i = 1;\n }\n // End of generation loop preparation.\n\n $li_first = theme('pager_first', array('text' => (isset($tags[0]) ? $tags[0] : t('first')), 'element' => $element, 'parameters' => $parameters));\n $li_previous = theme('pager_previous', array('text' => (isset($tags[1]) ? $tags[1] : t('previous')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_next = theme('pager_next', array('text' => (isset($tags[3]) ? $tags[3] : t('next')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_last = theme('pager_last', array('text' => (isset($tags[4]) ? $tags[4] : t('last')), 'element' => $element, 'parameters' => $parameters));\n\n if ($pager_total[$element] > 1) {\n if ($li_first) {\n $items[] = array(\n 'class' => array('pager__first'),\n 'data' => $li_first,\n );\n }\n if ($li_previous) {\n $items[] = array(\n 'class' => array('pager__previous'),\n 'data' => $li_previous,\n );\n }\n\n // When there is more than one page, create the pager list.\n if ($i != $pager_max) {\n if ($i > 1) {\n $items[] = array(\n 'class' => array('pager__ellipsis'),\n 'data' => '…',\n );\n }\n // Now generate the actual pager piece.\n for (; $i <= $pager_last && $i <= $pager_max; $i++) {\n if ($i < $pager_current) {\n $items[] = array(\n 'class' => array('pager__item'),\n 'data' => theme('pager_previous', array('text' => $i, 'element' => $element, 'interval' => ($pager_current - $i), 'parameters' => $parameters)),\n );\n }\n if ($i == $pager_current) {\n $items[] = array(\n 'class' => array('pager__current'),\n 'data' => $i,\n );\n }\n if ($i > $pager_current) {\n $items[] = array(\n 'class' => array('pager__item'),\n 'data' => theme('pager_next', array('text' => $i, 'element' => $element, 'interval' => ($i - $pager_current), 'parameters' => $parameters)),\n );\n }\n }\n if ($i < $pager_max) {\n $items[] = array(\n 'class' => array('pager__ellipsis'),\n 'data' => '…',\n );\n }\n }\n // End generation.\n if ($li_next) {\n $items[] = array(\n 'class' => array('pager__next'),\n 'data' => $li_next,\n );\n }\n if ($li_last) {\n $items[] = array(\n 'class' => array('pager__last'),\n 'data' => $li_last,\n );\n }\n return '<h2 class=\"element-invisible\">' . t('Pages') . '</h2>' . theme('item_list', array(\n 'items' => $items,\n 'attributes' => array('class' => array('pager')),\n ));\n }\n}", "title": "" }, { "docid": "dfe22466682324520a70531f1058b5f1", "score": "0.5503793", "text": "function makePager($currentpage, $pages, $script, $formname): void \n{\n $marger = 'style=\"margin-left: 4px; margin-right: 4px;\"';\n if ($currentpage > 1) { \n ?>\n<a href=\"<?php echo $script; ?>?page=1\" <?php echo $marger; ?>>\n <img src=\"icn/control-stop-180.png\" title=\"First Page\" alt=\"First Page\" />\n</a>\n<a href=\"<?php echo $script; ?>?page=<?php echo $currentpage-1; ?>\" <?php echo $marger; ?>>\n <img src=\"icn/control-180.png\" title=\"Previous Page\" alt=\"Previous Page\" />\n</a>\n <?php\n }\n ?>\nPage\n <?php\n if ($pages == 1) { \n echo '1'; \n }\n else {\n ?>\n<select name=\"page\" onchange=\"{val=document.<?php echo $formname; ?>.page.options[document.<?php echo $formname; ?>.page.selectedIndex].value; location.href='<?php echo $script; ?>?page=' + val;}\">\n <?php echo get_paging_selectoptions($currentpage, $pages); ?>\n</select>\n <?php\n }\n echo ' of ' . $pages . ' ';\n if ($currentpage < $pages) { \n ?>\n<a href=\"<?php echo $script; ?>?page=<?php echo $currentpage+1; ?>\" <?php echo $marger; ?>>\n <img src=\"icn/control.png\" title=\"Next Page\" alt=\"Next Page\" />\n</a>\n<a href=\"<?php echo $script; ?>?page=<?php echo $pages; ?>\" <?php echo $marger; ?>>\n <img src=\"icn/control-stop.png\" title=\"Last Page\" alt=\"Last Page\" />\n</a>\n <?php \n }\n}", "title": "" }, { "docid": "a6f002c3a30a40fe8c6c640aa14a2658", "score": "0.5499828", "text": "public function create()\n {\n return view(\"page.new\");\n }", "title": "" }, { "docid": "063534e4ca6e6910bb007364254f7e66", "score": "0.54947734", "text": "function insertPagination($currentPage, $maxPage) {\n // list as whole\n echo \"<ul class='pager main__top-pager'>\";\n instertPaginationItem(1, $currentPage, $maxPage); // the first item - show always\n // show ellipses if it is necessary\n if($currentPage >= 4 && $maxPage > 4) {\n insertPaginationEllepsis();\n }\n for($i=2; $i<$maxPage; $i++) { // center items\n if(abs($currentPage-$i)<2\n || ($currentPage<3 && $i <= 4)\n || ($maxPage-$currentPage<3 && $i> $maxPage-4)) {\n instertPaginationItem($i, $currentPage, $maxPage);\n }\n }\n // show ellipses if it is necessary\n if($maxPage - $currentPage >= 3 && $maxPage > 4) {\n insertPaginationEllepsis();\n }\n // the last item - show always, except there is only one page\n if($maxPage>1) {\n instertPaginationItem($maxPage, $currentPage, $maxPage);\n }\n echo '</ul>';\n}", "title": "" }, { "docid": "23b911c81dd262ec606914085f90aa52", "score": "0.54927", "text": "public function test_PagerInterface_2()\n {\n $_REQUEST['REQUESTED_URI'] = '/rebolon/pager/test';\n $_REQUEST[self::__SUFFIX_ITEMPERPAGE__ . self::$suffixName] = 1;\n\n $this->pager->init(150);\n\n $this->assertEquals(1, $this->pager->getItemPerPageParam(), \n 'La valeur de getItemPerPageParam ne correspond pas à celle attendue');\n $this->assertEquals(0, $this->pager->getOffset(), \n 'La valeur de getOffset ne correspond pas à celle attendue');\n }", "title": "" }, { "docid": "5f33a901aa99b3a7fc77b1b42ae71b88", "score": "0.5482748", "text": "function __construct($pageid);", "title": "" }, { "docid": "cff99cb5f559766aa94817c8e321962d", "score": "0.5475107", "text": "protected function createComponentVp500()\n\t{\n\t\t$vp = new VencaX\\NettePagination\\BootstrapRendererV3();\n\t\t$vp->setMaximalPagesCount(500);\n\t\t$paginator = $vp->getPaginator();\n\t\t$paginator->itemsPerPage = 20;\n\t\t$paginator->itemCount = 10000;\n\n\t\treturn $vp;\n\t}", "title": "" }, { "docid": "a1b1d45719601cccee2a2b57f932371f", "score": "0.5469105", "text": "protected function buildPage($pageData)\n { \n $page = new Page();\n $page->setId($pageData['page_id']);\n $page->setTitle($pageData['title']);\n $page->setDescription($pageData['description']);\n $page->setContenu($pageData['contenu']);\n return $page;\n }", "title": "" }, { "docid": "7709458026d5789ba2d2beda31bcb3fc", "score": "0.5468124", "text": "public function create()\n {\n return $this->view_('page.update',[\n 'object'=> new Page(),\n ]);\n }", "title": "" }, { "docid": "018b6be262cd048e9dfd0b5790d63ffc", "score": "0.5459673", "text": "public function getPager(): ?IPager;", "title": "" }, { "docid": "827b022eae1daf9ef7236db9c3ddfa16", "score": "0.5453196", "text": "public function paginatorAction() {\r\n // Set pagination settings\r\n $page = $this->_getParam('page', 1);\r\n $itemCountPerPage = 15;\r\n $pageRange = 20;\r\n\r\n require_once 'Prueba.php';\r\n $avisos = new Prueba();\r\n $query = $avisos->getAvisosBusqueda();\r\n\r\n // Create paginator\r\n $paginator = Zend_Paginator::factory($query);\r\n $paginator->setItemCountPerPage($itemCountPerPage)\r\n ->setCurrentPageNumber($page)\r\n ->setPageRange($pageRange);\r\n\r\n // Create paginator control partial view\r\n Zend_View_Helper_PaginationControl::setDefaultViewPartial('general/search_pagination_control.phtml');\r\n\r\n // Assign paginator to view\r\n $this->view->paginator = $paginator;\r\n }", "title": "" }, { "docid": "2a35b43653e5331b7839cf0381b7bfbf", "score": "0.5441396", "text": "static function pager($table,$criteria,$pageSize = 10){\n\t\t return static::find($table,$criteria,$pager = true,$pageSize); \n\t}", "title": "" }, { "docid": "92692134f15869481dfd930e6b091716", "score": "0.5435994", "text": "protected function paginator($items, $perPage, $currentPage, $options)\n {\n return Container::getInstance()->makeWith(Paginator::class, compact(\n 'items', 'perPage', 'currentPage', 'options'\n ));\n }", "title": "" }, { "docid": "ae5b9c88f444d4f747e649587ae6c13e", "score": "0.5434725", "text": "public function paginator($result, $page){\r\n\t\t// Crée un objet Pagination, en connectant la requete avec l'adaptateur de Zend Paginator\r\n\t\t$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_DbTableSelect($result));\r\n\t\t// Détermine le nombre d'item par page\r\n\t\t$paginator ->setItemCountPerPage($this->_nbItemByPage);\r\n\t\t// Détermine la page en courrante\r\n\t\t$paginator ->setCurrentPageNumber($page);\r\n\t\t// Indique le nombre de numéro de page qu'on affiche\r\n\t\t$paginator->setPageRange($this->_nbPagePrint);\r\n\t\t// Retourne le resultat\r\n\t\treturn $paginator;\r\n\t}", "title": "" }, { "docid": "fdd9133393f5303b1166440cdeda9b55", "score": "0.54329425", "text": "public function setPaging($paging)\n {\n // Rather than forcing php 7 type declaration\n $this->paging = (int) $paging;\n if ($this->paging == 0) {\n $this->paging = 10;\n }\n return $this;\n }", "title": "" }, { "docid": "df6a1c4dc68aad41d99ac7ea2b1ef21f", "score": "0.5429945", "text": "private function doPager() {\n\n\t\t$totalPages = floor($this->recordCount / $this->recordsPerPage);\n\t\n\t\tif ($this->recordCount < $this->recordsPerPage) {\n\t\t\treturn;\n\t\t}\n\t\n\t\t$current_pos = $this->page;\n\t\t\n\t\t$nextpos = $current_pos + 1;\n\t\t$backpos = $current_pos - 1;\n\t\t\n\t\t\n\t\tif ($this->isCategoryList) {\n\t\t\t$listType = 'category_id';\n\t\t} elseif ($this->isStudioList) {\n\t\t\t$listType = 'studio_id';\n\t\t}\n\t\t\n\t\n\t\tif ($current_pos > 0) {\n\t\t\t$first = \"<a href=\\\"?page=adultcategory&amp;{$listType}={$this->list_id}&amp;batch=0\\\">&lt;</a>\";\n\t\t} else {\n\t\t\t$first = \"&lt;\";\n\t\t}\n\t\n\t\tif ($current_pos >= $totalPages) {\n\t\t\t$last = \"&gt;\";\n\t\t} else {\n\t\t\t$last = \"<a href=\\\"?page=adultcategory&amp;{$listType}={$this->list_id}&amp;batch=$totalPages\\\">&gt;</a>\";\n\t\t}\n\t\n\t\tif ($current_pos > 0) {\n\t\t\t$back = \"<a href=\\\"?page=adultcategory&amp;{$listType}={$this->list_id}&amp;batch=$backpos\\\">&lt;</a>\";\n\t\t} else {\n\t\t\t$back = \"&lt;\";\n\t\t}\n\t\n\t\n\t\tif ($current_pos >= $totalPages) {\n\t\t\t$next = \"&gt;\";\n\t\t} else {\n\t\t\t$next = \"<a href=\\\"?page=adultcategory&amp;{$listType}={$this->list_id}&amp;batch=$nextpos\\\">&gt;</a>\";\n\t\t}\n\t\n\t\t$page = ($current_pos+1) . \" of \" . ($totalPages+1);\n\t\n\t\t$html = \"<div id=\\\"pager\\\">\" . $first . $back .\" [$page] \" . $next . $last . \"</div>\";\n\t\t\n\t\t$this->assign('categoryPager',$html);\n\t\n\t}", "title": "" }, { "docid": "bce4f3141bf40ada4c1718cf703d13d8", "score": "0.54273695", "text": "public function create()\n {\n return view('pages.page.add-page');\n }", "title": "" }, { "docid": "3c58fa57900ea415caf505a31ae1cd51", "score": "0.5427285", "text": "public function createPagination ($prevOrNext)\r\n\t{\r\n\t\tif ($prevOrNext) {\r\n\t\t\t// next\r\n\t\t\t$src = '/images/find/pagination/next.png';\r\n\t\t\t$class = 'find-pagination-next';\r\n\t\t\t$id = 'pagination-next';\r\n\t\t} else {\r\n\t\t\t// last\r\n\t\t\t$src = '/images/find/pagination/prev.png';\r\n\t\t\t$class = 'find-pagination-prev';\r\n\t\t\t$id = 'pagination-prev';\r\n\t\t}\r\n\t\t\r\n\t\t$output = ''; \r\n\t\t$output .= \"<div class='width-100 find-results-pagination-container left'>\";\r\n\t\t$output .=\t\t\"<div class='left find-pagination-first find-pagination-firstLast pointer animate-darker \" . $id . \"'><img class='pagination-img' src='/images/find/pagination/first.png'/></div>\";\r\n\t\t$output .= \"<div class='left \" . $class . \" pointer animate-darker \" . $id . \"'><img class='pagination-img' src='\" . $src . \"'/></div>\";\r\n\t\t$output .= \t\"<div class='left find-pagination-last find-pagination-firstLast pointer animate-darker \" . $id . \"'><img class='pagination-img' src='/images/find/pagination/last.png'/></div>\";\r\n\t\t$output .= \"</div>\";\r\n\t\t\r\n\t\treturn $output;\r\n\t}", "title": "" }, { "docid": "9e157296d72ef0c6bdc8dbcd10eec82b", "score": "0.54256815", "text": "public function get_new(){\n\t\t/*The following creates an empty class object*/\n\t\t$page = new stdClass();\n\t\t$page->title = '';\n\t\t$page->slug = '';\n\t\t$page->order = '';\n\t\t$page->body = '';\n\t\t$page->parent_id = 0;\n\t\t$page->template = 'page';\n\t\treturn $page;\n\t}", "title": "" }, { "docid": "1a7b4630f7995263a3e4f78b339e5a43", "score": "0.54248756", "text": "private function _getPageNumbers()\n {\n \t$html = '<ul class=\"pagination\">'; \n \t//previous link button\n\t\t\tif($this->textNav&&($this->currentPage>1)){\n\t\t\t\t$html = $html.'<li><a href=\"'.$this->_link .'?current='.($this->currentPage-1);\n //added by vinod kumar\n foreach ($this->_queryIdsValue as $key => $value) {\n $html = $html.'&'.$key.'='.$value;\n }\n $html = $html.'\"';\n\t\t\t\t$html = $html.'>'.$this->_navigation['pre'].'</a></li>';\n\t\t\t} \t\n \t//do ranged pagination only when total pages is greater than the range\n \tif($this->total > $this->range){\t\t\t\t\n\t\t\t\t$start = ($this->currentPage <= $this->range)?1:($this->currentPage - $this->range);\n\t\t\t\t$end = ($this->total - $this->currentPage >= $this->range)?($this->currentPage+$this->range): $this->total;\n \t}else{\n \t\t$start = 1;\n\t\t\t\t$end = $this->total;\n \t} \n \t//loop through page numbers\n \tfor($i = $start; $i <= $end; $i++){\n\t\t\t\t\tif($i==$this->currentPage)$html = $html.'<li class=\"active\">';\n\t\t\t\t\telse\n\t\t\t\t\t$html = $html.'<li>';\n\t\t\t\t\t\n\t\t\t\t\t$html = $html.'<a href=\"'.$this->_link .'?current='.$i;\n foreach ($this->_queryIdsValue as $key => $value) {\n $html = $html.'&'.$key.'='.$value;\n }\n $html = $html.'\"';\n\t\t\t\t\tif($i==$this->currentPage) $html = $html. \"class='current'\";\n\t\t\t\t\t$html = $html.'>'.$i.'</a></li>';\n\t\t\t} \t\n \t//next link button\n \tif($this->textNav&&($this->currentPage<$this->total)){\n\t\t\t\t$html = $html.'<li><a href=\"'.$this->_link .'?current='.($this->currentPage+1);\n //added by vinod kumar\n foreach ($this->_queryIdsValue as $key => $value) {\n $html = $html.'&'.$key.'='.$value;\n }\n $html = $html.'\"';\n\t\t\t\t$html = $html. '>'.$this->_navigation['next'].'</a></li>';\n\t\t\t}\n \t$html .= '</ul>';\n \treturn $html;\n }", "title": "" }, { "docid": "14e4541e12625cef080acb55c66de574", "score": "0.541966", "text": "public function getPages();", "title": "" }, { "docid": "2ded4745f86e6cea09aecb4e493ba92e", "score": "0.5415228", "text": "public function createLinks()\n {\n $pager = $this->_getPager();\n $numPages = count($pager->getPages());\n\n //Need this to add the links to later on\n $headBlock = Mage::app()->getLayout()->getBlock('head');\n \n //Determine exactly what needs to be output and \n //add to the head block\n if (!$pager->isFirstPage() && !$pager->isLastPage() && $numPages > 2 ) {\n $headBlock->addLinkRel('prev', $pager->getPreviousPageUrl());\n $headBlock->addLinkRel('next', $pager->getNextPageUrl());\n }\n elseif($pager->isFirstPage() && $numPages > 1) {\n $headBlock->addLinkRel('next', $pager->getNextPageUrl());\n }\n elseif($pager->isLastPage() && $numPages > 1) {\n $headBlock->addLinkRel('prev', $pager->getPreviousPageUrl());\n }\n \n /*if (! Mage::helper('seopagination')->useCanonical()) {\n $this->removeCanonical($headBlock);\n }*/\n \n return $this;\n }", "title": "" }, { "docid": "1be9487300a06e4e8c157227427916a9", "score": "0.5414627", "text": "public function create() {\n\n return view ('pages.create');\n }", "title": "" }, { "docid": "77dd980673a5a914ee027210fcccbf92", "score": "0.5411739", "text": "public static function createPage(\n string $title,\n string $description,\n string $capability,\n string $slug,\n string $type,\n string $icon = '',\n int $position = null\n ): Adapter {\n return new Adapter(new Page(new PageOptions(\n $title,\n $description,\n $capability,\n $slug,\n $type,\n $icon,\n $position\n )));\n }", "title": "" }, { "docid": "e5765239f20dd93dfa36ffed9083613a", "score": "0.5409591", "text": "public function getPage();", "title": "" }, { "docid": "76b3c868c372f1243a696bddfb49b450", "score": "0.5408505", "text": "public function __construct(){\r\n\t\t$this->__getPage();\r\n\t}", "title": "" }, { "docid": "d7bdb2269c8ea8580356ff82826b57f8", "score": "0.5406451", "text": "public function getCreate()\n {\n return view('flare::admin.pages.create', ['page' => new Page()]);\n }", "title": "" }, { "docid": "8e89d77c441df80df853aa16b2211ef2", "score": "0.5401948", "text": "public function __construct($page, $per_page, $num_records)\n\t\t\t\t{\n\t\t\t\t\t\t$this->page = $page;\n\t\t\t\t\t\t$this->perPage = $per_page;\n\t\t\t\t\t\t$this->numRecords = $num_records;\n\t\t\t\t\t\t$this->calculate();\n\t\t\t\t}", "title": "" }, { "docid": "1eb134e52d397bcad14af27b53f7ec1d", "score": "0.5398908", "text": "protected function pager($pages)\n\t{\n\t\t$out = '<div style=\"text-align:center;display:inline-block;\">';\n\t\t$pageList = Util::pagesToShow($this->page,$pages);\n\t\t$pageParam = $this->inPrefix . 'page';\n\t\t\n\t\t$queryString = $this->show_querybuilder ? ('&amp;ki_querybuilder_' . $this->title . '_filterResult=' . urlencode($this->queryBuilder->previousResultJSON)) : '';\n\t\t\n\t\t//first row: arrows and direct page input\n\t\t$out .= '<span style=\"float:left;\">';\n\t\tif($this->page > 1)\n\t\t{\n\t\t\t$out .= '<a href=\"?' . $pageParam . '=1' . $queryString . '\">⇤</a> &nbsp; ';\n\t\t\t$out .= '<a href=\"?' . $pageParam . '=' . ($this->page - 1) . $queryString . '\">⬅</a> &nbsp; ';\n\t\t}else{\n\t\t\t$out .= '⇤ &nbsp; ';\n\t\t\t$out .= '⬅ &nbsp; ';\n\t\t}\n\t\t$out .= '</span>';\n\t\t$out .= '<form method=\"get\" style=\"display:inline-block;margin:0;\">'\n\t\t\t. '<input name=\"' . $pageParam . '\" '\n\t\t\t\t. 'type=\"number\" min=\"0\" max=\"' . $pages . '\" value=\"' . $this->page . '\" '\n\t\t\t\t. 'size=\"5\" style=\"width:4em;\"/>'\n\t\t\t. '<input type=\"submit\" name=\"go\" value=\"Page\"/>'\n\t\t\t. ($this->show_querybuilder ? ('<input type=\"hidden\" name=\"ki_querybuilder_' . $this->title . '_filterResult\" value=\"' . htmlspecialchars($this->queryBuilder->previousResultJSON) . '\"/>') : '')\n\t\t\t. '</form> &nbsp; ';\n\t\t\n\t\t$out .= '<span style=\"float:right;\">';\n\t\tif($this->page < $pages)\n\t\t{\n\t\t\t$out .= '<a href=\"?' . $pageParam . '=' . ($this->page + 1) . $queryString . '\">➡</a> &nbsp; ';\n\t\t\t$out .= '<a href=\"?' . $pageParam . '=' . $pages . $queryString . '\">⇥</a>';\n\t\t}else{\n\t\t\t$out .= '➡ &nbsp; ';\n\t\t\t$out .= '⇥';\n\t\t}\n\t\t$out .= '</span><br/>';\n\t\t\n\t\t//second row: search engine style page number links\n\t\t$last = 1;\n\t\tforeach($pageList as $pnum)\n\t\t{\n\t\t\tif($pnum > ($last + 1)) $out .= '…&nbsp;&nbsp;&nbsp;';\n\t\t\tif($pnum == $this->page)\n\t\t\t{\n\t\t\t\t$out .= $pnum;\n\t\t\t}else{\n\t\t\t\t$out .= '<a href=\"?' . $pageParam . '=' . $pnum\n\t\t\t\t\t. $queryString\n\t\t\t\t\t. '\">' . $pnum . '</a>';\n\t\t\t}\n\t\t\tif($pnum != $pages) $out .= '&nbsp;&nbsp;&nbsp;';\n\t\t\t$last = $pnum;\n\t\t}\n\t\t\n\t\t$out .= '</div>';\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "0da54344bc07a81d7382b7d43cc3baed", "score": "0.53988874", "text": "public function create(ReadCommandInterface $query, string $class = 'paginator', ?int $maxRows = null, ?int $page = null): PaginatorInterface\n {\n if (isset($this->paginatorAliases[$class])) {\n $class = $this->paginatorAliases[$class];\n }\n\n if (!isset($this->paginatorFactories[$class])) {\n return new $class($query, $maxRows, $page);\n }\n\n return ($this->paginatorFactories[$class])($query, $maxRows, $page);\n }", "title": "" }, { "docid": "a9dc2faf776d1803bf715d0edbaebeeb", "score": "0.5393852", "text": "public function getPager()\n\t{\n\t\tif(!$this->adapter->getSource()) {\n\t\t\tthrow new SourceNotSetException('Please set a source to fetch the results from');\n\t\t}\n\n $this->adapter->setFilters($this->filters);\n $this->adapter->setOrderBy($this->orderByPropertyPath, $this->sortOrder);\n\n return $this->adapter->getPager();\n }", "title": "" }, { "docid": "3ccc3e2dcd09e2a49eab65599ddd4823", "score": "0.53928894", "text": "public function paginate();", "title": "" }, { "docid": "1ebb656c69d42660049a8c83a956a11d", "score": "0.5381933", "text": "public function create()\n {\n $pages = Page::orderBy('id', 'ASC')->pluck('title', 'id');\n\n return View('institution.partials.page.create')\n ->with('item', ['item_sidebar'=>'pages'])\n ->with('pages', $pages);\n }", "title": "" }, { "docid": "107aa761b6e6698769fa60659dc2b0cc", "score": "0.5381426", "text": "public function getPerPage();", "title": "" }, { "docid": "72eb2def522c0ed189661aad9512f395", "score": "0.53780985", "text": "public function withDefaultPageSize($pageSize) {}", "title": "" } ]
e69b23f5ae16a4894fe95895c989a17c
Creates a new model. If creation is successful, the browser will be redirected to the 'view' page.
[ { "docid": "2dfafb2a082ba0439325144f99d53881", "score": "0.0", "text": "public function actionCreate()\n\t{\n\t\t$model=new Usergroup;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Usergroup']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Usergroup'];\n\t\t\tif($model->save()) {\n\t\t\t\tYii::app()->user->setFlash('success', \"Create Successfully\");\n\t\t\t\t$this->redirect(array('view','id'=>$model->usergroup_id));\n\t\t\t}\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" } ]
[ { "docid": "6e487b8bc1d985ea6a9054b108f5fe74", "score": "0.81316656", "text": "public function actionCreate()\n {\n $model = $this->getModel();\n\n if ($model->load($this->getRequest()->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "a8849fee92e90b321dccf71867d3d9c7", "score": "0.79264784", "text": "public function actionCreate()\n {\n $model = $this->getModel('model');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if(Yii::$app->request->post('save-add'))\n return $this->redirect(['create']);\n if(Yii::$app->request->post('save-exit'))\n return $this->redirect(['index']);\n if(Yii::$app->request->post('save-show') && method_exists($model, 'getUrl'))\n return $this->redirect($model->getUrl());\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "91334976d4d9e349d8048f7c4f70868f", "score": "0.7637607", "text": "public function actionCreate()\n {\n $model = new Objects();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "136e4a887137fcac8167c2472c6a015d", "score": "0.7620579", "text": "public function actionCreate()\n {\n $model = new Request();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e3b2e95de3fd508e3113f95ca5afc646", "score": "0.7615368", "text": "public function actionCreate()\n {\n $model= $this->finder->create();\n\n if(isset($model->M_id)){\n return $this->redirect(['view','M_id' => $model->M_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "fbd6d75032f3b8379d85dd309c22ae89", "score": "0.7502908", "text": "public function actionCreate()\n {\n $model = new user();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "64df3a7eb6df93342e6ce8b4501aaed5", "score": "0.7502846", "text": "public function actionCreate()\n {\n $model = new Konsultasi();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.7460332", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.7460332", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e49971d14061dfe36dca9dc6dd418f5e", "score": "0.74118316", "text": "public function actionCreate()\n {\n $model = new Article();\n\n $model->user_id = Yii::$app->user->id;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) \n {\n return $this->redirect(['view', 'id' => $model->id]);\n } \n else \n {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f19311bfa26f82213255c717b64f0514", "score": "0.7349171", "text": "public function actionCreate() {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->userid]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "da1a115bbb69eed537fcb97e84ceab9d", "score": "0.7318441", "text": "public function actionCreate()\n {\n $model = new Engineers();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->user_id = Yii::$app->user->id;\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->id]);\n } \n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6423a67d2896830d289753efb7cbdde3", "score": "0.7313531", "text": "public function actionCreate() {\r\n $model = new $this->modelName;\r\n\r\n // Uncomment the following line if AJAX validation is needed\r\n // $this->performAjaxValidation($model);\r\n if (isset($_POST[$this->modelName])) {\r\n $model->attributes = $this->processData($_POST[$this->modelName]);\r\n\r\n if ($model->save()){\r\n\r\n if ($this->usePhotoProcess){\r\n Picture::writeImageFilenames($model);\r\n $model->save();\r\n\r\n Picture::moveUploadedImages($model->id, $this->modelName);\r\n }\r\n if ($this->updateRelData($model)){\r\n $this->redirect(array('view', 'id' => $model->id));\r\n }\r\n }\r\n }\r\n \r\n $data = array_merge(array('model' => $model), $this->initRelData($model)); \r\n $this->render('create', $data);\r\n }", "title": "" }, { "docid": "c6de54ea70dd0d1350fff6a985a9deeb", "score": "0.7311105", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->user_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "5d70b062e70556335c785bb8f414b1eb", "score": "0.72924757", "text": "public function actionCreate()\n {\n /*\n $model = new Customer();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n */\n }", "title": "" }, { "docid": "931d2b5e6a078ac48d60d4d8f31cb522", "score": "0.72903186", "text": "public function actionCreate()\n {\n exit;\n // $this->layout = 'default'; \n // $model = new Userpay();\n\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->id]);\n // } else {\n // return $this->render('create', [\n // 'model' => $model,\n // ]);\n // }\n }", "title": "" }, { "docid": "846a6a6a14d05a23d98edc7986880438", "score": "0.72770643", "text": "public function actionCreate()\n {\n $model = new Device();\n\t\t\t\t\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "b4f2dc3299dd26f1f80df9a39919d6c5", "score": "0.7274031", "text": "public function actionCreate()\n {\n $model = new Salerecord();\n\n if ($model->load(Yii::$app->request->post())) {\n\n $model->display_date = (date('Y-m-d'));\n $model->save();\n // return $this->redirect(['view', 'id' => $model->id, 'plant_id' => $model->plant_id, 'customer_id' => $model->customer_id, 'grade_id' => $model->grade_id]);\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "a4fab9fa98827e4438ec3fd99bf55405", "score": "0.72706145", "text": "public function actionCreate()\n {\n $model = new Absensi();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "573a757913527081f8ce5a01cef4a5b9", "score": "0.72632706", "text": "public function actionCreate()\n {\n $model = new Action();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2bb5fd5ba7cbbb45caad0c873b6d525f", "score": "0.72442955", "text": "public function actionCreate() {\r\n $model = new User;\r\n\r\n\r\n if (isset($_POST['User'])) {\r\n $model->attributes = $_POST['User'];\r\n if ($model->save()) {\r\n $this->redirect(array('view', 'id' => $model->id));\r\n }\r\n }\r\n\r\n $this->render('create', array(\r\n 'model' => $model,\r\n ));\r\n }", "title": "" }, { "docid": "35b16a2ba4ba05bc3268d7bff1824902", "score": "0.7236029", "text": "public function actionCreate()\n {\n $model = new Laporan();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "19ceb685029d4bebe8ce8dcbc99bb16f", "score": "0.7222246", "text": "public function actionCreate()\n {\n $model = new Comsave();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'usuario_id' => $model->usuario_id, 'comentario_id' => $model->comentario_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "5bcfb19509c80a31b9808c975388800a", "score": "0.72193253", "text": "public function actionCreate()\n {\n $model = new Comment();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d4e0d75e26faa81b2a0e1b815d044582", "score": "0.7205064", "text": "public function actionCreate()\n\t{\n\t\t$model=new Post;\n\t\tif(isset($_POST['Post']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Post'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "4ee0f728470685507b561c552e50b818", "score": "0.71921253", "text": "public function actionCreate()\n {\n $model = new Student();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c29a065c6fef79f94bfac0d3e65c11a6", "score": "0.7185735", "text": "public function actionCreate()\n {\n $model = new News();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "89e9952ce96a4e029903561704c3ac5d", "score": "0.7185244", "text": "public function actionCreate()\n\t{\n $model=new Post;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Post']))\n {\n $model->attributes=$_POST['Post'];\n if($model->save())\n $this->redirect(array('view','id'=>$model->id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n\t}", "title": "" }, { "docid": "cec3a6529e1db3c631b55c9e2ef6674e", "score": "0.71754205", "text": "public function actionCreate()\n {\n $model = new AccountingMounth();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "b1e67a5877683fdc4c4d414fe2e014bd", "score": "0.71700215", "text": "public function actionCreate() {\n $model = $this->createModel();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $modelName = ucfirst($this->getUniqueId());\n Yii::$app->session->addFlash('success', \"$modelName created!\");\n if ($this->isAjax()) {\n return $this->asJson([\n 'success' => true,\n 'model' => $model->getAttributes()\n ]);\n } else {\n /** @noinspection PhpPossiblePolymorphicInvocationInspection */\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n if ($this->isAjax()) {\n return $this->asJson([\n 'success' => false,\n 'errors' => $model->getErrors()\n ]);\n } else {\n return $this->render('create', [\n 'model' => $model\n ]);\n }\n }", "title": "" }, { "docid": "64a6a51cb4e4b962408e448d0c1399e9", "score": "0.71570885", "text": "public function actionCreate()\r\n {\r\n $model = new Resource();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "205e0fa6d263b40f31ec88a116aa5ac9", "score": "0.7156747", "text": "public function actionCreate() {\n $model = new User;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['User'])) {\n $model->attributes = $_POST['User'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "3e017150fdeebff4fa5019b728d1a2c5", "score": "0.7153975", "text": "public function actionCreate()\n {\n $model = new Admin();\n $model->loadDefaultValues();\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \n Yii::$app->getSession()->setFlash('success', $model->username.' 已经添加成功!');\n \n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "4af6ff19ab04bed743c4c6948ca623aa", "score": "0.7152327", "text": "public function actionCreate()\n {\n $modelClass = $this->modelClass;\n /** @var Category $model */\n $model = new $modelClass;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('@app/core/modules/category/views/category/create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "652deed6a18ea6e50111136fcc208dd4", "score": "0.7148218", "text": "public function actionCreate()\n {\n $model = new Post();\n\n if (Yii::$app->request->isPost) \n {\n $model->attributes = Yii::$app->request->post('Post');\n\n $transaction = Yii::$app->db->beginTransaction();\n\n try \n {\n if($model->save())\n {\n $transaction->commit();\n }\n\n return $this->redirect(['manage']);\n }\n catch (\\Exception $e) \n {\n $transaction->rollBack();\n throw $e;\n }\n } \n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "ce5e6b5f04a58acaed8c3649743e08c6", "score": "0.7136981", "text": "public function actionCreate()\r\n {\r\n $model = new Profile();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "a970afd3a5d634a8688708381017e02a", "score": "0.7126735", "text": "public function actionCreate()\n {\n $model = new Dashboard;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "5e9870c92a77e84778a2f147c82e3b65", "score": "0.7125054", "text": "public function actionCreate()\n {\n $model = new TblDaftarharga();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->kode_pekerjaan]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "521366b38e28d66215fa5f94115ac265", "score": "0.71208775", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "521366b38e28d66215fa5f94115ac265", "score": "0.71208775", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "dfb7303a65e09fbb43d06ab8b7494b45", "score": "0.7120415", "text": "public function actionCreate()\n {\n $model = new UserForm();\n $model->approved = 1;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\"model\" => $model]);\n }", "title": "" }, { "docid": "4fea4eb7cf0ab9f3363da20299711c7a", "score": "0.71171737", "text": "public function actionCreate() {\r\n $model = new QuestionSave();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "8493aafa67f6867eb6a441b9fd905ebe", "score": "0.7115588", "text": "public function actionCreate()\n {\n $model = new Bienes();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->cod]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fe46359574f113296f1f160a20c0d69d", "score": "0.7114329", "text": "public function actionCreate() {\n $model = new Karyawan();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_karyawan]);\n } else {\n return $this->render(\n 'create', [\n 'model' => $model,\n ]\n );\n }\n }", "title": "" }, { "docid": "7d71d665e9186f495233dd9bb56c57d0", "score": "0.7108144", "text": "public function actionCreate()\n {\n $model = new Udashboard();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->recid]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "13aa0aa77dfaa4409bbaaf2da61fe56a", "score": "0.7104396", "text": "public function actionCreate()\n {\n $model = new DataAntrian();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "591ce4fe55ab9ab577c649a0a6710dd3", "score": "0.7101057", "text": "public function actionCreate()\n {\n $model = new Question();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ef70744ec3ceb853dc6192096f5aed00", "score": "0.7098903", "text": "public function actionCreate()\n {\n $model = new Penerbit();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "64e5eb210cb30bc384e4e7a73865479b", "score": "0.7096493", "text": "public function actionCreate()\n {\n $model = new Test();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->codtest]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "6f43b1a6f3df359a77bbaac7953f10d2", "score": "0.7092066", "text": "public function actionCreate()\r\n {\r\n $model = new Profile();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->user_id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "6e515f72261427e1aefaf974da21ee07", "score": "0.70880085", "text": "public function actionCreate()\n {\n $model = new Reservacion();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c941b353c81c972f3d6b9e746c03ff80", "score": "0.70804226", "text": "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "17f4c29acbfd287a53c05e26b46499cd", "score": "0.70789284", "text": "public function actionCreate()\n {\n $model = new Ambil();\n\n /*if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->no_ambil]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);*/\n\n if ($model->load(Yii::$app->request->post())) {\n try{\n if($model->save()){\n Yii::$app->getSession()->setFlash(\n 'success','Data saved!'\n );\n return $this->redirect(['index']);\n }\n }catch(Exception $e){\n Yii::$app->getSession()->setFlash(\n 'error',\"{$e->getMessage()}\"\n );\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "5e407c84d35d5de7e160994f9c2c1f7c", "score": "0.70747715", "text": "public function actionCreate()\n {\n $model = new AlertMaster();\n\n if ($model->load(Yii::$app->request->post())) { \n $model->created_at = date('Y-m-d H:i:s');\n if($model->save()) {\n return $this->redirect(['index']);\n } else {\n echo '<pre>';print_r($model->errors);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "a0ecd3563d0d21adba80838e113355b9", "score": "0.70746636", "text": "public function actionCreate()\n {\n $model = new User();\n $post = Yii::$app->request->post();\n\n $modelForm = new UserForm();\n $modelForm->status = User::STATUS_NEW;\n if ($modelForm->load($post)) {\n if ($model = $modelForm->process()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n return $this->render('create', [\n 'modelForm' => $modelForm,\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "d8a359c98b13199039633d4559b368c9", "score": "0.70678097", "text": "public function actionCreate()\n {\n $model = new SgtSocieta;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6b90b9a74e40ffc55d6ce89085768f19", "score": "0.7056169", "text": "public function actionCreate()\n {\n $model = new ReportModel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "8e1cfc8a9ae1bf4c556bee7936de3932", "score": "0.70477116", "text": "public function actionCreate()\n {\n $model = new Customer();\n\n if ($model->load(Yii::$app->request->post()) ) {\n\n if( $model->create()){\n $model->sendSuccess();\n return $this->redirect(['index']);\n }else{\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "98bd6f89f8bab054425ba4deefe849b9", "score": "0.7044533", "text": "public function actionCreate()\n {\n $model = HotelProfile::find()->where(['hotel_hotel_id'=>Yii::$app->user->identity->hotelid])->one();\n if(!$model)\n $model = new HotelProfile();\n\n if ($model->load(Yii::$app->request->post())) { \n $model->hotel_hotel_id = Yii::$app->user->identity->hotelid;\n if($model->save()){ \t \t\n \treturn $this->redirect(['view', 'id' => $model->id]);\n }else{\n print_r($model->errors); \n }\n \n \t\t\t//$model->file->saveAs('uploads/' . $this->file->baseName . '.' . $this->file->extension); \n\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "2e479f6e8308e1e72badb3c30ea8471d", "score": "0.7042428", "text": "public function actionCreate()\n {\n $model = new Orders();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c4a34458c0d51658aad1cc049d2c4375", "score": "0.7041088", "text": "public function actionCreate()\n {\n $model = new Name();\n $model_img = new UploadImage();\n $modelsPhone = [new Phone()];\n\n if ($model->load(Yii::$app->request->post())) {\n $modelsPhone = Model::createMultiple(Phone::classname());\n Model::loadMultiple($modelsPhone, Yii::$app->request->post());\n\n // validate all models\n $valid = $model->validate();\n $valid = Model::validateMultiple($modelsPhone) && $valid;\n\n if ($valid) {\n $transaction = \\Yii::$app->db->beginTransaction();\n\n try {\n if ($flag = $model->save(false)) {\n foreach ($modelsPhone as $modelPhone) {\n $modelPhone->name_id = $model->id;\n if (! ($flag = $modelPhone->save(false))) {\n $transaction->rollBack();\n break;\n }\n }\n }\n\n if ($flag) {\n $transaction->commit();\n $url = Url::previous(Yii::$app->controller->id.'_create');\n return $this->redirect(isset($url) ? $url : ['index']);\n }\n } catch (Exception $e) {\n $transaction->rollBack();\n }\n }\n }\n Url::remember(Yii::$app->request->referrer,Yii::$app->controller->id.'_create');\n return $this->render('create', [\n 'model' => $model,\n 'model_img' => $model_img,\n 'modelsPhone' => (empty($modelsPhone)) ? [new Phone()] : $modelsPhone\n ]); \n }", "title": "" }, { "docid": "7e78510285c7bbf440f118ed1c05f02b", "score": "0.7035636", "text": "public function actionCreate()\n {\n $model = new Payments();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3215199675dabe9cdaf0bd875a3ce472", "score": "0.70331544", "text": "public function actionCreate()\n {\n $model = new Dosen();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->kd_dosen]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "1a5d2585027491dc14b131fd4e5d2b00", "score": "0.70308375", "text": "public function actionCreate()\n {\n $model = new Dbf();\n\n if ($model->load(Yii::$app->request->post()) && $model->save() && $model->processDbf()) {\n return $this->redirect(['index']);\n //return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e35ae7a3d8da8ec3f886f360b8682d40", "score": "0.7028624", "text": "public function actionCreate() {\n $model = new StudentClass();\n if ($model->load(Yii::$app->request->post())) {\n $model->uid = Yii::$app->user->id;\n if ($model->validate()) {\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "1eabf890965b5fae31aa1a2bc705b7dd", "score": "0.7027601", "text": "public function actionCreate()\n {\n $modelClass = $this->modelClass;\n\n $element = new $modelClass;\n $element->load(\\Yii::$app->request->get());\n $this->_save($element);\n\n $this->_registerJs('create');\n $this->_registerJs('form');\n\n $viewData = $this->_getCreateData($element);\n return $this->render($this->_resolveView('create'), $viewData);\n }", "title": "" }, { "docid": "e8b34bddec3d212daeeed319b8d67a09", "score": "0.7022342", "text": "public function actionCreate()\n\t{\n\t\t$model=new Vehiculos;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Vehiculos']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Vehiculos'];\n\t\t\t$model->marca = $_POST['Vehiculos']['marca'];\n\t\t\t$model->modelo_anio = $_POST['Vehiculos']['modelo_anio'];\n\t\t\t$model->propietario = $_POST['Vehiculos']['propietario'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "192c1bd1d72d6e15356e84217156b658", "score": "0.70118535", "text": "public function actionCreate()\n {\n $model = new Album();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'slug' => $model->slug]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "49199f702257cf29352be22dcff69e56", "score": "0.7011193", "text": "public function actionCreate()\n {\n $model = new House();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \\Yii::$app->session->addFlash('success', 'Успех! Приступите к заполнению данных по квартирам.');\n //var_dump($model->id);die;\n\n return $this->redirect(['filling', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "2a951c897ba355f801e329ba766e3e06", "score": "0.7005874", "text": "public function actionCreate()\n {\n $model = new UserBaseInfo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3fe4876ebcdec5593609fc808874504b", "score": "0.700091", "text": "public function actionCreate() {\n\t\t$model = new General();\n\t\tif (Yii::$app->request->isAjax && $model->load($_POST)) {\n\t\t\tYii::$app->response->format = 'json';\n\t\t\treturn \\yii\\bootstrap\\ActiveForm::validate($model);\n\t\t}\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t} else {\n\t\t\treturn $this->render('create', [\n\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "66b2e7044460351de5a4962154cf9c05", "score": "0.699642", "text": "public function actionCreate()\n\t{\n\t\t$model = new Entities();\n\n\t\tif($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t}\n\n\t\treturn $this->render('create', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}", "title": "" }, { "docid": "0eb5c8f3ff6118ca1a4a1e89669e948b", "score": "0.6991341", "text": "public function actionCreate()\n\t{\n\t\t$model=new Suara;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Suara']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Suara'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id_keldesa));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "b5f198fd3e57da78258d4efdb73f45cf", "score": "0.69905704", "text": "public function actionCreate()\n {\n $model = new Menu();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n// return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect(['menu/new']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d94f8234523233fd72b17106ffce7159", "score": "0.6985433", "text": "public function actionCreate()\n { \n $model = new Payment();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3dbb3d853493e4b4cbe964987a714453", "score": "0.69761497", "text": "public function actionCreate()\n\t{\n\t\t$model = new User('create');\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t$this->performAjaxValidation($model);\n\n\t\tif (isset($_POST['User'])) {\n\t\t\t$model->attributes = $_POST['User'];\n\t\t\tif ($model->save())\n\t\t\t\t$this->redirect('index');\n\t\t}\n\n\t\t$this->render('create', array(\n\t\t\t'model' => $model,\n\t\t));\n\t}", "title": "" }, { "docid": "6b14166d9dd546de962e9b51d53c8417", "score": "0.697451", "text": "public function actionCreate()\n\t{\n\t\t$model=new User;\n\t\t$model->active=true;\n\n\t\tif(isset($_POST['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('/user/admin'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "cbd84e4b8bd46a77527b930a6ff7fed6", "score": "0.6970611", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "aa537540e71dce05aee6c8b8d2beccd8", "score": "0.69648147", "text": "public function actionCreate()\n {\n $model = new Persona();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ID_PER]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "86654c8c25bfee5536c5408bfeb09ec6", "score": "0.69646114", "text": "public function actionCreate()\n {\n $model = new TestContacts;\n $model->load($_GET);\n $relAttributes = $model->attributes;\n \n try {\n if ($model->load($_POST) && $model->save()) {\n if($relAttributes){\n return $this->goBack();\n } \n return $this->redirect(['view', 'id' => $model->id]);\n } elseif (!\\Yii::$app->request->isPost) {\n $model->load($_GET);\n }\n } catch (\\Exception $e) {\n $msg = (isset($e->errorInfo[2]))?$e->errorInfo[2]:$e->getMessage();\n $model->addError('_exception', $msg);\n }\n \n return $this->render('create', [\n 'model' => $model,\n 'relAttributes' => $relAttributes, \n ]);\n }", "title": "" }, { "docid": "bd45c20731830b3d868d2b452b742a00", "score": "0.69645524", "text": "public function actionCreate()\n {\n $model = new ScbStudentHasActivityMain();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect([\n 'activity/index#jtab2_nobg',\n 'model_upload' => ScbStudentHasActivityMain::find()->all()]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e1d50ff773e49fac2af9a53eebca3efe", "score": "0.6957484", "text": "public function actionCreate()\n {\n $model = new BaseStation();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "0f7c2044f3025fae6148dcae9e3e6b65", "score": "0.69571054", "text": "public function actionCreate()\n {\n if (Yii::$app->user->isGuest)\n return $this->redirect(['login']);\n\n $model = new UserForm();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->create()) {\n return $this->redirect(['index']);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2442ef16786463fffeaf1bcc93bbac2d", "score": "0.6955262", "text": "public function create()\n\t{\n\t\t$this->load->view('create');\n\t\t\n\t}", "title": "" }, { "docid": "61917d2cb3522f3b8dda02b426a54a35", "score": "0.6949941", "text": "public function actionCreate()\n {\n $model = new Hospitals();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "7ff06f7fbbb71b55e9bafdf9e87bf2ca", "score": "0.69465333", "text": "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "7ff06f7fbbb71b55e9bafdf9e87bf2ca", "score": "0.69465333", "text": "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "0ac2e34200ec0466c73e7831bda1ead9", "score": "0.6941456", "text": "public function actionCreate()\n\t{\n\t\t$model=new Entity;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Entity']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Entity'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->idEntity));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "dfdab51f6fa5405a8d15a3b6b4f67ffa", "score": "0.694023", "text": "public function actionCreate() {\n $model = new Carer;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Carer'])) {\n $model->attributes = $_POST['Carer'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('/carer/create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "260aa994ce57ee9b45e1ca6e80727cae", "score": "0.693911", "text": "public function actionCreate()\n {\n $model = new StoreCabinet();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d74641d3a41539f88290bc3b06dd9978", "score": "0.6936891", "text": "public function actionCreate()\n {\n $model = new User();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this\n ->addFlashMessage('User created: ' . $model->username, self::FLASH_SUCCESS)\n ->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c963fc81de66ebaf2d0ff2c9aba36c24", "score": "0.69351524", "text": "public function actionCreate()\n {\n $model = new Estructura();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->idestructura]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "438fa81aebafd47ac80f5719430e7221", "score": "0.69330204", "text": "public function actionCreate()\n {\n $model = new Goodseedinfocheck();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d79073992ef4699124a81282a99cbdb2", "score": "0.6932957", "text": "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "23440282625df15edaff9c5e34794079", "score": "0.69323695", "text": "public function actionCreate()\n {\n $model = new Tenses();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "357ff86f00b747499023c93482af617a", "score": "0.6932333", "text": "public function actionCreate()\n {\n $model = new Manufacturer();\n\n if ($model->load(Yii::$app->request->post())) {\n if($model->validate()){\n $model->save(false);\n \\backend\\models\\Log::add(Yii::t('app', 'Добавление производителя ID').$model->id);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "b66aaf627491f5202ed6cffae2f15c12", "score": "0.69317806", "text": "public function actionCreate()\n {\n $model = new BaiduorderZhb();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ad65fe4d6abfdff18e28e77eba91ff87", "score": "0.6927538", "text": "public function actionCreate() {\n $model = new vm();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->vm_host_name]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fe497172ab399bdefb983dc1ededea4e", "score": "0.6920672", "text": "public function actionCreate()\n {\n $model = new PasienBaru();\n\n if ($model->load(Yii::$app->request->post())) {\n\n return $this->redirect(['view', 'id' => $model->kode]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "883c105d459608c89c07b4bb7a563d6d", "score": "0.69193774", "text": "public function actionCreate()\n {\n $model = new Menu();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3aa1fc0a5d091a3d996a3b459982c2c8", "score": "0.69105697", "text": "public function actionCreate()\n {\n $model = new Hosxp();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "f7783477629f5ffbc1ccd550742e02f4", "score": "0.0", "text": "public function index()\n {\n //\n $data['webpage']='Audit';\n $data['action']='Audit';\n $data['menu']='master';\n return view('admin.audit.index')->with($data);\n }", "title": "" } ]
[ { "docid": "a8219f7511c208b206421d7070626481", "score": "0.76236707", "text": "public function index() {\r\n $this->listing();\r\n }", "title": "" }, { "docid": "3119bf4433b0eb6e1e5f5d3aefff8f7c", "score": "0.74976325", "text": "public function listAction()\n {\n header('Content-Type: application/json');\n echo json_encode(self::list($this->table, $_GET, $_GET), JSON_PRETTY_PRINT);\n }", "title": "" }, { "docid": "0af0bed2cb54202b9b5f635b805dd270", "score": "0.7456269", "text": "public function index() {\n $this->list();\n }", "title": "" }, { "docid": "fc22d7eb65a1457db19e4e0a158758ae", "score": "0.7440038", "text": "public function indexAction()\n {\n // fetch list with pagination\n $data = $this->service->fetchList($this->getRequest()->getQuery(), [\n 'baseUri' => $this->getBaseUri()\n ]);\n\n // Title for the resource list\n $data['title'] = sprintf('%s List', $this->getResourceTitle());\n $data['pagination'] = $this->getPaginationControl($data['paginator']);\n\n return new ViewModel($data);\n }", "title": "" }, { "docid": "2626767a2d50900ecf067648343b72f2", "score": "0.7381333", "text": "public function index()\n {\n if ($this->perPage) {\n $items = $this->model->paginate($this->perPage);\n } else {\n $items = $this->model->all();\n }\n\n return $this->getViewByAction('index')->with([str_plural($this->resourceName) => $items]);\n }", "title": "" }, { "docid": "91b29c734dd33fa6ab5758c46e47554b", "score": "0.73258376", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\n $optin = $this->Request()->getParam('optin', 2);\n $result = $this->resource->getList($offset, $limit, $filter, $sort, $optin);\n $this->View()->assign(['success' => true, 'data' => $result]);\n }", "title": "" }, { "docid": "042ad4983b357357fa2fc3e7b732ee82", "score": "0.72482914", "text": "public function index()\n\t{\n\t\t$resources = $this->resource->all();\n\n\t\treturn View::make('backend.resources.index', compact('resources'));\n\t}", "title": "" }, { "docid": "1169ce14cfc5668f5eea745b36a1f890", "score": "0.721445", "text": "public function index()\n {\n $recipeLists = RecipeList::paginate(5);\n return RecipeListResource::collection($recipeLists);\n }", "title": "" }, { "docid": "035f6de7d67b67c8aac107864bb88b5b", "score": "0.71630436", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:Feast:list.html.twig');\n }", "title": "" }, { "docid": "fc107b824969a23c68c0c5f2741cd1c6", "score": "0.71610266", "text": "public function index()\n {\n $perPage = request()->get('perPage') ?? 45;\n $with = request()->get('with') ?? [];\n $sanitized = request()->except(['perPage', 'with']);\n return $this->resource::collection($this->repository->list($sanitized, $with, $perPage));\n }", "title": "" }, { "docid": "187ec101935a79ed032959ef1b75d4ae", "score": "0.7118817", "text": "public function actionList()\n {\n \n return $this->render('_list');\n }", "title": "" }, { "docid": "1f35abb1b2dfde3d664df626615da04d", "score": "0.7097277", "text": "public function index()\n {\n //\n return view('admin.resources.index')->with('resources', Resource::all());\n }", "title": "" }, { "docid": "d29399034be7f5e56ab0c5ec77f7aa5a", "score": "0.6957485", "text": "public function listAction()\n {\n $repository = $this->getDoctrine()\n ->getRepository('MyRecipesDosBundle:Recipe');\n \n $recipe = $repository->findAll();\n return $this->render('MyRecipesDosBundle:Recipe:list.html.twig', array('recipes' => $recipe));\n }", "title": "" }, { "docid": "7c5436fac4c77ee77f00987408854421", "score": "0.6907326", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_book->get_all();\n\t\t$this->template->set('title', 'Book List');\n\t\t$this->template->load('template', 'contents', 'book/book_list', $data);\n\t}", "title": "" }, { "docid": "2be70a4426b327e1d03c05eabde9d81b", "score": "0.6904068", "text": "public function index()\n {\n $this->getLists($this->table);\n }", "title": "" }, { "docid": "99d0096711c4ac4c16aec6ead9d6f9cb", "score": "0.69036937", "text": "public function index()\n {\n // Get Entries\n $entries = Entry::paginate(15);\n\n // Return Collection of entries as a resource\n return EntryResource::collection($entries);\n }", "title": "" }, { "docid": "a3d61b5afcf1642fed8df944d4b81b6f", "score": "0.68887955", "text": "public function listAction()\n {\n return $this->render(\n 'BingoBundle:Page:clicks.html.twig',\n array(\n 'name' => 'FreakXoHBingo',\n 'version' => Kernel::VERSION,\n )\n );\n }", "title": "" }, { "docid": "561046d6e9e022bfc2781d4da04f6f0e", "score": "0.68827784", "text": "public function listAction() {\n\t\treturn $this->render('::base.html.twig');\n\t}", "title": "" }, { "docid": "95f382e4dda4333116a338434b4adcb7", "score": "0.6859838", "text": "public function index()\n {\n return view('resources.index', ['resources' => Resource::orderBy('title')->get()]);\n }", "title": "" }, { "docid": "c72ddbe4283fe8d28a198836a20283ca", "score": "0.6857927", "text": "public function listAction()\n {\n $this->_forward('index');\n }", "title": "" }, { "docid": "374f77abe39cc273e93ae71403c0135d", "score": "0.68395513", "text": "public function index()\n {\n $user = Auth::user();\n $taskLists = TaskList::where('user_id', $user->id)->orderBy('title')->paginate(100);\n return TaskListResource::collection($taskLists);\n }", "title": "" }, { "docid": "a3720146415f23c943668d82d74b6ddc", "score": "0.6833012", "text": "public function indexAction() {\n\t\t$this->initInstance();\n\t\t//récupère les ressources disponibles\n\t\t//http://localhost/omeka-s/api/item_sets?resource_class_label=MediaResource\n\t}", "title": "" }, { "docid": "9051fd38b8c975ac149dd081631df266", "score": "0.68245953", "text": "public function index()\n {\n return $this->fetch('lst');\n }", "title": "" }, { "docid": "6348b646e527696af99b800ca8365e10", "score": "0.68105257", "text": "public function show()\n {\n //\n return BasicResource::collection(Basic::all());\n }", "title": "" }, { "docid": "ab587658e56065a3311a7edf4c3c2213", "score": "0.6784784", "text": "public function index()\n {\n return CollectionResource::collection(Collection::paginate(100));\n }", "title": "" }, { "docid": "9bbc51747f3455267943436dda172ca2", "score": "0.6783519", "text": "public function index()\n {\n $data['resource'] = Resource::all();\n return view('admin.resource.index',$data);\n }", "title": "" }, { "docid": "1ec8c70afa71a91f40bcd16f4d0c6776", "score": "0.67766154", "text": "public function list()\n {\n $datas = $this->model->getBooks(null, $this->level);\n $this->createView($this->_tab . DS . 'list', $datas);\n $this->view->page_title = 'BIBLIOGRAPHIE';\n \n $this->view->render($datas);\n }", "title": "" }, { "docid": "efb2c483c24911e6f2a3d9046c1ef1ef", "score": "0.67576295", "text": "public function listAction()\n {\n $list = $this->listFactory->createList($this->dataBackend, $this->configurationBuilder);\n\n if ($list->count() == 0) {\n $this->addFlashMessage(\\TYPO3\\CMS\\Extbase\\Utility\\LocalizationUtility::translate('general.emptyList', 'PtExtlist'), '', \\TYPO3\\CMS\\Core\\Messaging\\FlashMessage::INFO);\n }\n\n $this->view->assign('config', $this->configurationBuilder);\n $this->view->assign('listHeader', $list->getListHeader());\n $this->view->assign('listCaptions', $list->getRenderedListHeader());\n $this->view->assign('listData', $list->getRenderedListData());\n $this->view->assign('aggregateRows', $list->getRenderedAggregateListData());\n\n $this->view->assign('exportIdentifiers', $this->exportIdentifiers);\n\n if ($this->filterbox) {\n $this->view->assign('filterBoxCollection', $this->filterboxCollection);\n $this->view->assign('filterbox', $this->filterbox);\n }\n\n if ($this->pagerIdentifier) {\n $this->view->assign('pagerCollection', $this->pagerCollection);\n $this->view->assign('pager', $this->pagerCollection->getPagerByIdentifier($this->pagerIdentifier));\n }\n }", "title": "" }, { "docid": "1fe41c52dd75a6340ba0e7415a6acc25", "score": "0.67415196", "text": "public function index()\n {\n return TodoResource::collection(Todo::paginate(10));\n }", "title": "" }, { "docid": "43f39595a775a167f28377481ffc4a07", "score": "0.673642", "text": "public function index()\n {\n $list = $this->repo->allPaged();\n\n if ( ! $list)\n {\n return $this->respondNotFound('Unable to fetch the selected resource');\n }\n\n $resource = new Fractal\\Resource\\Collection($list->getCollection(), new $this->transformerClass);\n $resource->setPaginator(new Fractal\\Pagination\\IlluminatePaginatorAdapter($list));\n\n return $this->fractal->createData($resource)->toArray();\n// return $this->response->collection($list, new $this->transformerClass);\n }", "title": "" }, { "docid": "f58dba1d10587784466e2956148410a7", "score": "0.6732629", "text": "public function index()\n {\n return RapportResource::collection(Rapport::paginate());\n }", "title": "" }, { "docid": "d267abfc43200f6a283a55648822e91b", "score": "0.6730257", "text": "public function index()\n\t{\n\t\t$this->listar();\t\n\t}", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "59aa91737bf5b1a4cfdace1c9bec4b48", "score": "0.6722742", "text": "public function index()\n {\n $cars = Car::paginate(25);\n\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "2de5d92ccf694ea64c2b87a4044bdfed", "score": "0.671587", "text": "public function index()\n {\n $resources = Resource::all();\n return view('Resource.index',['resources' => $resources]);\n }", "title": "" }, { "docid": "d6fb6897e87bd5dae4bbc01d2557f9de", "score": "0.6715235", "text": "public function index()\n {\n return $this->getList();\n }", "title": "" }, { "docid": "26f3b9a4c8b215d418e8d18a1ba08064", "score": "0.67125565", "text": "public function listAction(){\n\t\t$view = Zend_Registry::get('view');\n\t\t$table = new ProfessorAluno();\n\t\t$table->getCollection();\n\t\t$this->_response->setBody($view->render('default.phtml'));\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "3005a7694daa66d5411575d09a01fd3c", "score": "0.6711127", "text": "public function indexAction()\r\n\t{\r\n\t\t$this->_view->_title = ucfirst($this->_controller) . ' Manager :: List';\r\n\r\n\t\t$totalItems = $this->_model->countItems($this->_arrParam);\r\n\t\t$configPagination = ['totalItemsPerPage' => 3, 'pageRange' => 3];\r\n\t\t$this->setPagination($configPagination);\r\n\t\t$this->_view->pagination = new Pagination($totalItems, $this->_pagination);\r\n\r\n\t\t$this->_view->countActive = $this->_model->countItems($this->_arrParam, ['task' => 'count-active']);\r\n\t\t$this->_view->countInactive = $this->_model->countItems($this->_arrParam, ['task' => 'count-inactive']);\r\n\t\t$this->_view->Items = $this->_model->listItem($this->_arrParam, null);\r\n\t\t$this->_view->render($this->_controller . '/index');\r\n\t}", "title": "" }, { "docid": "a061f90100fcefc770084243e89cb657", "score": "0.67049634", "text": "public function index()\n {\n\t\t\treturn RentalResource::collection(Rental::with()->paginate(25));\n }", "title": "" }, { "docid": "ce69134742a988b497785376ad59ad49", "score": "0.6700845", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->permission_model->get_all();\n\t\t$this->template->set('title', 'Permission List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "e20bfea5cc73d4e9dc13d2e0589cf474", "score": "0.6689846", "text": "public function index()\n {\n // Get hospitals -- paginate\n $hospitals = Hospital::paginate(20);\n\n // Return collection of hospitals as a resource\n return HospitalResource::collection($hospitals);\n }", "title": "" }, { "docid": "b33ee86168eb0ade086aca85bd07f060", "score": "0.66757935", "text": "public function list()\n {\n $CRUDList = $this->crudHandler->list();\n\n return $this->handleResult($CRUDList);\n }", "title": "" }, { "docid": "c4f993dfe3f1f7bd25662bc6f177e545", "score": "0.66563594", "text": "public function index()\n {\n $items = Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "a9152291e72de561c907f0d16b4dd8e9", "score": "0.6654788", "text": "public function indexAction()\n {\n // Get the entity we are making the list of\n $this->entity = $this->params()->fromRoute('entity');\n if (!isset($this->entity))\n {\n return $this->getResponse()->setStatusCode(404);\n }\n\n // Get information about the entity to display to view\n if (empty($info = $this->entity_table[$this->entity]))\n {\n return false;\n }\n\n // Change the view strategy if it is set to use a different one\n if (!empty($info['view_strategy']))\n {\n $view_strategy_class = $info['view_strategy'];\n if (!class_exists($view_strategy_class))\n {\n throw new \\Exception(\"The view strategy class being used to render this page cannot be found.\");\n }\n\n $view_strategy = new $view_strategy_class;\n if (!($view_strategy instanceof IViewStrategy))\n {\n throw new \\Exception(\"The view strategy being used must implement the IViewStrategy interface.\");\n }\n\n $this->setViewStrategy($view_strategy);\n }\n\n // Render the list using the strategy given\n $view_results = $this->view_strategy->render($this);\n if (false === $view_results)\n {\n return $this->getResponse()->setStatusCode(404);\n }\n\n // Attach javascript\n $this->getServiceLocator()->get('ViewRenderer')->headScript()->appendFile('/js/backend/list.js');\n\n return $view_results;\n }", "title": "" }, { "docid": "2193e1e8cdcf85402ba6929069f31734", "score": "0.6635656", "text": "public function index()\n {\n // Get assetModels\n $assetModels = AssetModel::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of assetModels as a resource\n return AssetModelResource::collection($assetModels);\n }", "title": "" }, { "docid": "ea55c90db1e5317add55946b5021b00c", "score": "0.6629907", "text": "public function index()\n {\n //get students\n $students = student::all();\n\n return StudentResource::collection($students);\n }", "title": "" }, { "docid": "0da8ac4a2988814b2e9c07b535204492", "score": "0.6628081", "text": "public function index()\n {\n $cars = Car::all();\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "5722fce7447cf2831c8c8b4f00a1c30e", "score": "0.66276073", "text": "public function index()\n {\n $entries = Entry::all();\n\n return EntryResource::collection($entries);\n }", "title": "" }, { "docid": "bfcfe58010865f047fee4363102ac43d", "score": "0.66167", "text": "public function index()\n {\n //\n $students = Student::all();\n return StudentResource::collection($students);\n }", "title": "" }, { "docid": "6df1194a3c23fe8044d8a812c5bc1c7a", "score": "0.6610945", "text": "public function index()\n {\n $students = Student::all();\n\n return ResourcesStudent::collection($students);\n }", "title": "" }, { "docid": "daaefee9c34d3101903bfac8a955fb09", "score": "0.66073436", "text": "public function _index()\n {\n // The get_entries function in the\n // entries Streams API drivers grabs\n // entries from a stream.\n // The only really required parameters are\n // stream and namespace.\n\n $params = array(\n 'stream' => 'service',\n 'namespace' => 'service',\n 'paginate' => 'yes',\n 'page_segment' => 3\n );\n\n $this->data->service = $this->streams->entries->get_entries($params);\n \n // Build the page\n $this->template->title($this->module_details['name'])\n ->build('admin/index', $this->data);\n }", "title": "" }, { "docid": "8f2f77c8b6e53012c03b4a96f9c83b40", "score": "0.6598037", "text": "public function showAction()\n {\n $this->forward('list');\n }", "title": "" }, { "docid": "de31ab079d9e333a0d8dac4edd6e4827", "score": "0.6597582", "text": "public function index(Request $request, $resource = null)\n {\n $resource = $this->getResource($resource);\n $cards = $resource->renderCards($request);\n\n $resources = $resource->paginator($request)\n ->getCollection()\n ->mapInto($resource)\n ->map->indexFields($request);\n\n $paginationLinks = $resource->getPaginationLinks($request);\n $modelId = null;\n\n return view('orm.listado',\n compact('resource', 'cards', 'resources', 'paginationLinks', 'modelId')\n );\n }", "title": "" }, { "docid": "987ab94de2b0e9b4db0aa8318acfa28e", "score": "0.6596193", "text": "public function actionIndex() {\n\n\t\t// Setup page title and first breadcrumb\n\t\t$this->view->title = yii::t( 'radtools', '{object} Overview', [\n\t\t\t'object' => $this->model_name,\n\t\t] );\n\t\t$this->addBreadCrumbs( [ $this->view->title ] );\n\n\t\t// Setup data feed\n\t\t$searchModel = new $this->searchModelClass();\n\t\t$dataProvider = $this->indexDataProvider( $searchModel );\n\n\t\t$this->beforeCrudValidation(\n\t\t\t$this->action->id,\n\t\t\t$this->model\n\t\t);\n\n\t\treturn $this->render( 'index', $this->indexRenderData( $searchModel, $dataProvider ) );\n\t}", "title": "" }, { "docid": "11f2bcdc890680ff98f96dec711093ed", "score": "0.6585215", "text": "public function index()\n {\n // Look for overriden views\n $this->overrideViews();\n\n // Get models to show\n $results = $this->makeIndexQuery()->paginate($this->perPage());\n\n // Render the view using the `listing` builder\n $listing = Listing::createFromController($this, $results);\n if ($this->parent) {\n $listing->parent($this->parent);\n\n // The layout header may have a many to many autocomplete\n $this->layout->with($this->autocompleteViewVars());\n }\n\n // Render view\n return $this->populateView($listing);\n }", "title": "" }, { "docid": "e5485fb94e84d7f1a64ec7a4f239f625", "score": "0.6583983", "text": "public function list()\n\t{\n\t\tif(!$this->user->loggedIn())\n\t\t{\n\t\t\t$this->addHTTPStatusCode('401');\n\t\t\t$this->addMessage('danger', 'You are not logged in. Please log in.');\n\t\t\t$this->addTpl('messages');\n\n\t\t\t$this->runHTML();\n\t\t}\n\n\t\t$arrivals = new arrivalModel($this->db);\n\n\t\t# Load GET variables\n\t\t$type_id \t= ! empty($this->params[0]) ? $this->params[0] : false;\n\t\t$name \t\t= ! empty($this->params[1]) ? $this->params[1] : false;\n\n\t\t$data['arrivals'] \t\t\t= $arrivals->getArrivals($type_id, $name);\n\t\t$data['arrival_statistics'] = $arrivals->getArrivalStatistics($type_id, $name);\n\n\t\tif(empty($data['arrivals']))\n\t\t{\n\t\t\t$this->addMessage('danger', 'There are no search results available.');\n\t\t}\n\n\t\t$this->addTpl('messages');\n\t\t$this->addView('search-results');\n\n\t\t$this->runHTML($data);\n\t}", "title": "" }, { "docid": "a3e1dd116a18a3fe10d66cbd4874818b", "score": "0.65685564", "text": "public function index()\n {\n $taskList = Task::with\n (\n [\n 'taskVersionInfo',\n 'userTaskAssignee',\n 'user',\n 'taskVersionInfo',\n 'taskVersionInfo.projectInfo'\n ]\n )->get();\n if(!empty($taskList)){\n return $this->sendSuccessResponse(200,TaskListResource::collection($taskList));\n } else {\n return $this->sendCustomMessage(404,'Sorry! No record found');\n }\n }", "title": "" }, { "docid": "578a96f128221bf5bcf98a2a211cadf8", "score": "0.65538025", "text": "public function listAction()\n {\n if ($this->checkApi->checkKey()) {\n return new JsonResponse($this->checkApi->checkKey());\n }\n\n $em = $this->getDoctrine()->getManager();\n $books = $em->getRepository('BookBundle:Book')->findBy([], ['readIt' => 'DESC']);\n\n return $this->sucessfullResponse($books);\n }", "title": "" }, { "docid": "faa4b62fb90476f0f5cc5f9d659baab7", "score": "0.6550044", "text": "public function index()\n {\n $this->list = $this->role->select();\n $this->display();\n }", "title": "" }, { "docid": "6eadfe639301106d65142408b4536a7d", "score": "0.65397066", "text": "public function index()\n {\n return CentroResource::collection(Centro::paginate());\n }", "title": "" }, { "docid": "df222e53d0f8cd5226717538186f640b", "score": "0.6537331", "text": "public function index()\n {\n return RepresentativeResource::collection($this->representativeRepository->list());\n }", "title": "" }, { "docid": "1265756e79b7627e4f5013af9b86193c", "score": "0.65358984", "text": "public function index()\n {\n $cards = Card::latest()->get();\n return CardResource::collection($cards);\n }", "title": "" }, { "docid": "b2667c25fd50ab1551a340a8fc91baf0", "score": "0.65343034", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\t\t\n\t\t$param = $this->getInput(array('id', 'category_id', 'title', 'phone', 'status', 'user_id'));\n\t\t\n\t\t$search = array();\n\t\tif ($param['user_id']) $search['user_id'] = $param['user_id'];\n\t\tif ($param['category_id']) $search['category_id'] = $param['category_id'];\n\t\tif ($param['title']) $search['title'] = array('LIKE', $param['title']);\n\t\tif ($param['status']) $search['status'] = $param['status'];\n\t\tif ($param['phone']) $search['phone'] = $param['phone'];\n\t\t\n\t\t$perpage = $this->perpage;\n\t\tlist($total, $jobs) = Ola_Service_Job::getList($page, $perpage, $search, array('sort'=>'DESC', 'id'=>'DESC'));\n\t\tlist(, $categorys) = Ola_Service_Category::getList(1, 100);\n\t\t\n\t\t$this->assign('jobs', $jobs);\n\t\t$this->assign('categorys', Common::resetKey($categorys, 'id'));\n\t\t$this->assign('status', $this->status);\n\t\t$this->assign('param', $param);\n\t\t\n\t\t$this->cookieParams();\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($param) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t\t$this->assign('total', $total);\n\t}", "title": "" }, { "docid": "fe378ccbbcf7c936d31c946fb0a1abe1", "score": "0.6515067", "text": "public static function index()\r\n {\r\n $pagination = array(\r\n 'page' => 1,\r\n 'show' => 20\r\n );\r\n\r\n if (isset($_GET['page'])) {\r\n $pagination['page'] = intval($_GET['page']);\r\n }\r\n if (isset($_GET['show'])) {\r\n $pagination['show'] = intval($_GET['show']);\r\n }\r\n\r\n $params = array(\r\n 'controller_list' => array(),\r\n 'app_list' => array()\r\n );\r\n $settings = array(\r\n 'controller_list' => array(),\r\n 'app_list' => array(\r\n 'index' => 'id',\r\n 'flat' => true\r\n )\r\n );\r\n\r\n $params['controller_list'] = array_merge($params['controller_list'], $pagination);\r\n\r\n $list_controller = api::query('controller/list', $params['controller_list'], $settings['controller_list']);\r\n $list_app = api::query('app/list', $params['app_list'], $settings['app_list']);\r\n\r\n view::load('controller/index', array(\r\n 'list' => $list_controller,\r\n 'list_app' => $list_app\r\n ));\r\n }", "title": "" }, { "docid": "5a83f2442eb3f462ff43689e90b37f4f", "score": "0.65103835", "text": "public function index()\n {\n $perfil = Perfil::paginate(10);\n return PerfilResource::collection($perfil);\n }", "title": "" }, { "docid": "09c0cdc32d290582c28c25cdde95a5d3", "score": "0.65102404", "text": "public function index()\n {\n $model = D('Shop');\n $list = $model->search(I());\n $this->assign(array(\n 'list' => $list,\n 'page' => $model->getPage()\n ));\n $this->display();\n }", "title": "" }, { "docid": "985830e6ee02598e997add9d706d5174", "score": "0.65037256", "text": "private function index() {\n $this->showPropertyList();\n }", "title": "" }, { "docid": "adc0929400b9ac560a34d7c75ca9432b", "score": "0.6500579", "text": "public function index()\n {\n //returns list of all todos\n return response(TodoResource::collection(Todo::all(),200));\n }", "title": "" }, { "docid": "702e474e3ad456bc6e922fd8cfae7ff3", "score": "0.6497448", "text": "public function index()\n {\n return TodolistResource::collection($request->user()->todolists);\n }", "title": "" }, { "docid": "157540995e279e1c89b30e8f20197d5d", "score": "0.64969057", "text": "public function index()\n {\n // Get some users\n $users = User::paginate(1);\n\n // Return collection of users as a resource\n return UserResource::collection($users);\n }", "title": "" }, { "docid": "7c3ea8e36693455e99cc4db69f0a7d10", "score": "0.64932173", "text": "public function indexAction ()\n {\n $this->_pageTitle = ['Hardware Library', 'Manufacturers'];\n // Display all of the manufacturers\n $mapper = ManufacturerMapper::getInstance();\n $paginator = new Zend_Paginator(new My_Paginator_MapperAdapter($mapper));\n\n // Set the current page we're on\n $paginator->setCurrentPageNumber($this->_getParam('page', 1));\n\n // Set how many items to show\n $paginator->setItemCountPerPage(100);\n\n // Pass the view the paginator\n $this->view->paginator = $paginator;\n $this->view->canEdit = $this->view->IsAllowed(ProposalgenAclModel::RESOURCE_PROPOSALGEN_ADMIN_SAVEANDAPPROVE, AppAclModel::PRIVILEGE_ADMIN);\n }", "title": "" }, { "docid": "7da1d53b99713be47f9b9e48be3777c8", "score": "0.649269", "text": "public function index()\n {\n return SummaryResource::collection(Summary::latest()->paginate(16));\n }", "title": "" }, { "docid": "9c8446bdda246c4d668c853fcd5f4072", "score": "0.649241", "text": "public function actionList()\n { \n $model = new Tag();\n $params = \\Yii::$app->request->getBodyParams();\n $dataProvider = $model->searchList($params);\n\n return $this->renderList('list', [\n 'model' => $model,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "3c6cae22c627d1ece2035bcbd89096b4", "score": "0.6485393", "text": "public function indexAction()\n {\n $listing = $this->createListing(new TokenOptions($this->getDoctrine()->getEntityManager()));\n\n return array(\n 'listing' => $listing\n );\n }", "title": "" }, { "docid": "bf8285b7ef2df61a00673a171e608d25", "score": "0.6477109", "text": "public function index()\n {\n return $this->showAll(Libro::all());\n }", "title": "" }, { "docid": "f691e682eec0d2b53a65e9e0d6e040f5", "score": "0.6469914", "text": "public function index()\n {\n $listings = Listing::orderBy('created_at', 'desc')->paginate(5);\n\n return view('listings')->with('listings', $listings);\n }", "title": "" }, { "docid": "9255fd66973761a2e3741769b5ec9434", "score": "0.64697826", "text": "public function index()\n {\n $listings = Listing::orderBy('created_at', 'desc')->get();\n return view('listings')->with('listings', $listings);\n }", "title": "" }, { "docid": "34ada56858882a77b2fb954f2f9ca76c", "score": "0.6465993", "text": "public function index()\n {\n $list = $this->surl->all();\n return view('surl::list', compact('list'));\n }", "title": "" }, { "docid": "c839caf8071b295e2edd8ff7dae1d275", "score": "0.64640033", "text": "public function overviewAction()\n\t{\n\n\t\t$subSiteKey = '*';\n\t\tif (Site::isSiteRequest()) {\n\t\t\t$subSiteKey = Site::getCurrentSite()->getRootDocument()->getKey();\n\t\t}\n\t\t$language = $this->language;\n\n\t\t// Retrieve items from object list\n\t\t$newsList = new Object_News_List();\n\t\t$newsList->setOrderKey(\"date\");\n\t\t$newsList->setOrder(\"desc\");\n\t\t$newsList->setLocale($language);\n\t\tif (Site::isSiteRequest()) {\n\t\t\t$newsList->setCondition('subsites LIKE ? AND title != \"\"', '%' . $subSiteKey . '%');\n\t\t}\n\n\t\t$paginator = Zend_Paginator::factory($newsList);\n\t\t$paginator->setCurrentPageNumber($this->_getParam('page', 1));\n\t\t$paginator->setItemCountPerPage(10);\n\t\t$this->view->paginator = $paginator;\n\t}", "title": "" }, { "docid": "2d1d93e01feb274bbc89ed5d265eb12e", "score": "0.6463779", "text": "public function index()\n {\n $listings = Listing::latest()->paginate(5);\n return view('frontend.listings.index',compact('listings'));\n }", "title": "" }, { "docid": "15d0c11efdda27cd3d3db89cdd68dc5e", "score": "0.6463192", "text": "public function index()\n {\n $lists = ListModel::paginate();\n\n return response()->json([\n 'lists' => $lists,\n ],200);\n }", "title": "" }, { "docid": "d3bdd3e6d0c926fc9a4a00e01d03f377", "score": "0.64611477", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $links) = Gou_Service_Links::getList($page, $perpage);\r\n\t\t\r\n\t\t$this->assign('links', $links);\r\n\t\t$this->assign('types', $this->link_type);\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl']));\r\n\t}", "title": "" }, { "docid": "7772c381ff4b5a7b8e508efe879c68e0", "score": "0.64556235", "text": "public function index()\n {\n return BookResource::collection($this->bookRepo->get());\n }", "title": "" }, { "docid": "2f4d4a0caa725d66f7ce8489ee1f24d9", "score": "0.6455147", "text": "public function index (): AnonymousResourceCollection {\n return RecipeResource::collection(Recipe::paginate(25));\n }", "title": "" }, { "docid": "4592b6588dd629125090dcc48a6bcc63", "score": "0.6452056", "text": "public function index()\n {\n $labels = Label::paginate(10);\n\n return LabelResource::collection($labels);\n }", "title": "" }, { "docid": "71dbc6c395500f777fbf4ca2d2f41ee2", "score": "0.6447849", "text": "public function index()\n {\n $this->list->setText(trans('mconsole::gallery.form.title'), 'title')\n ->setText(trans('mconsole::gallery.form.slug'), 'slug')\n ->setSelect(trans('mconsole::settings.options.enabled'), 'enabled', [\n '1' => trans('mconsole::settings.options.on'),\n '0' => trans('mconsole::settings.options.off'),\n ], true);\n \n return $this->list->setQuery($this->repository->index())->setAddAction('gallery/create')->render(function ($item) {\n return [\n trans('mconsole::tables.id') => $item->id,\n trans('mconsole::gallery.table.updated') => $item->updated_at->format('m.d.Y'),\n trans('mconsole::gallery.table.slug') => $item->slug,\n trans('mconsole::gallery.table.title') => $item->title,\n ];\n });\n }", "title": "" }, { "docid": "6611f31e08d219eb38ba36cc62c071e1", "score": "0.6447639", "text": "public function index()\n {\n $Entreprises = Entreprise::paginate(15);\n\n \n return EntrepriseResource::collection($Entreprises);\n }", "title": "" }, { "docid": "b8ef0597ffab483dc42bf522e376a0f9", "score": "0.64469534", "text": "public function index()\n {\n return $this->showAll(Libreria::all());\n }", "title": "" }, { "docid": "131082979c43e5665d6efcb3e04fa7ec", "score": "0.6443054", "text": "public function index()\n {\n // get hotels\n $hotels = Hotels::orderBy('created_at','desc')->paginate(50);\n // returnn collection of hotels as a resource\n return HotelResource::collection($hotels);\n }", "title": "" }, { "docid": "f787cf0275f5c622f8f691b59884e61b", "score": "0.64424", "text": "public function resources(){\n\t\n\t\tif($this->secureCheck()){\n\t\t\treturn;\n\t\t}\n\t\n\t\t$sortEntry = 'id';\n\t\tif ($this->request->isParameterNotEmpty ( 'actionid' )) {\n\t\t\t$sortEntry = $this->request->getParameter ( \"actionid\" );\n\t\t}\n\t\n\t\t$modelResources = new SyResource();\n\t\t$resourcesArray = $modelResources->resourcesInfo($sortEntry);\n\t\n\t\t$navBar = $this->navBar();\n\t\t$this->generateView ( array (\n\t\t\t\t'navBar' => $navBar, 'resourcesArray' => $resourcesArray\n\t\t) );\n\t\n\t}", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.64421135", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.64421135", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b0fb738cbb82acd366e1a8234e16b18a", "score": "0.6437053", "text": "public function listAction() {\n\t\t$this->view->setVariablesToRender(array('ideas'));\n\n\t\t$ideas = $this->ideaRepository->findAll();\n\t\t$this->view->assign('ideas', $ideas);\n\t}", "title": "" }, { "docid": "12275dd16579b5f5bbc0fd01c4c0372b", "score": "0.6435585", "text": "public function index()\n {\n $users = $this->paginate($this->Users);\n\n $this->set(compact('users'));\n }", "title": "" }, { "docid": "5395605a12301b3a21ad602afe2ffc04", "score": "0.6432393", "text": "public function index()\n\t{\n\t\treturn View::make('Ucionica.index')\n\t\t->with('list', $this->_list());\n\t}", "title": "" }, { "docid": "17ab781471a36ee728b0e79e5f76d380", "score": "0.64322966", "text": "public function lists() {\r\n\t\t$args = array();\r\n\t\t$args['method'] = 'lists';\r\n\r\n\t\treturn $this->callServer( $args );\r\n\t}", "title": "" }, { "docid": "3bc1ba2777d39aa58a5ff9ee7b0585e8", "score": "0.64308184", "text": "public function index()\n {\n $articles = Article::paginate(5);\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "c0ac87b1ec946c408fda431b615e8496", "score": "0.64249504", "text": "public function indexAction()\n {\n /**\n * Adding new Listing\n * IE hack to process image buttons\n */\n if($this -> _request -> getParam('add_listing')\n && !$this -> _request -> getParam('ListingValidated')\n && !$this -> _request -> getParam('ListingAdded'))\n $this -> _forward('ValidateListing');\n\n else\n {\n /** If Listing submition is validated with errors */\n if($this -> _request -> getParam('ListingValidated'))\n {\n $Err = new Zend_Config_Xml(ROOT . 'configs/error_messages/messages.xml', 'errors');\n /** Preparing warning block */\n $this -> smarty -> assign('WarnTitle', $Err -> error_block_title);\n $this -> smarty -> assign('WarnMessages', $this -> _request -> getParam('Errors'));\n $errBlock = $this -> smarty -> fetch('warningBlock.tpl');\n \n $this -> smarty -> assign('warningBlock', $errBlock);\n }\n \n $this -> smarty -> assign('PageBody', 'area/listings.tpl');\n /** Use Calendar js lib */\n $this -> smarty -> assign('UseCalendar', true);\n /** Use Interface js lib */\n $this -> smarty -> assign('UseInterface', true);\n\n $listings = $this -> Listings -> getListingsByUserId($this -> AreaControl -> getUserData() -> id) -> toArray();\n $this -> smarty -> assign('Listings', array_reverse($listings));\n \n $this -> smarty -> assign('CategoryList', $this -> Options -> getCategoryList());\n $this -> smarty -> assign('IndustryList', $this -> Options -> getIndustiresList());\n $this -> smarty -> assign('ListingType', $this -> Options -> getListingTypesList());\n \n $this -> smarty -> assign('EducationLevel', $this -> Options -> getDegreeEducationList());\n $this -> smarty -> assign('Experience', $this -> Options -> getExperienceList());\n $this -> smarty -> assign('Salary', $this -> Options -> getSalaryList());\n \n $this -> smarty -> assign('ProfileType', $this -> AreaControl -> getUserData() -> acc_type);\n\n $this -> smarty -> assign('Title', 'Listings');\n\n $this -> smarty -> display('layouts/main.tpl');\n }\n }", "title": "" }, { "docid": "2e42503d55824f0e5ba1fe3b836c57d4", "score": "0.6420493", "text": "public function indexAction()\n {\n $this->_forward('list');\n }", "title": "" }, { "docid": "2e42503d55824f0e5ba1fe3b836c57d4", "score": "0.6420493", "text": "public function indexAction()\n {\n $this->_forward('list');\n }", "title": "" } ]
fc1854ae5061994c2f70a96d4c19b573
Create a new job instance.
[ { "docid": "3ccaaa7e3b33eb13e2dc9690d6fd9714", "score": "0.0", "text": "public function __construct(User $user)\n {\n $this->_user = $user;\n }", "title": "" } ]
[ { "docid": "2ee0c83b68251cf820c543798485ac09", "score": "0.6920272", "text": "public function createJob( $creationParameters ){ return $this->APICallSub( '/jobs', array( 'create' => $creationParameters ), \"Could not create new job with query \" . $creationParameters['query'] . \" and operation \" . $creationParameters['operation'] ); }", "title": "" }, { "docid": "00ce4b30e7dd8fae60989c44f499ce77", "score": "0.6905722", "text": "abstract public function makeJob();", "title": "" }, { "docid": "00ce4b30e7dd8fae60989c44f499ce77", "score": "0.6905722", "text": "abstract public function makeJob();", "title": "" }, { "docid": "5fa98f83507cab38c95567757b64a164", "score": "0.6869542", "text": "private function createSearchJob() {\n $response = $this->client->request('POST','search/jobs', [\n 'json' => [\n 'query' => $this->getSumoQuery(),\n 'from' => $this->start->format(DateTime::ATOM),\n 'to' => $this->end->format(DateTime::ATOM),\n 'timeZone' => $this->profile->getTimezone()\n ]\n ]);\n $code = $response->getStatusCode();\n if ($code !== 202) {\n throw new \\Exception('Error getting data from Sumologic, error was HTTP ' . $code . ' - ' . $response->getBody() . '.');\n }\n $data = json_decode($response->getBody());\n $this->jobId = $data->id;\n if ($this->output->isVerbose()) {\n $this->output->writeln(\" > Debug: Search job ID {$this->jobId} created.\");\n }\n }", "title": "" }, { "docid": "db836035171e9b82e63464cf8223fdbf", "score": "0.6808916", "text": "public function createJobObject($payload)\n {\n $job = new Job([\n 'title' => $payload['title'],\n 'name' => $payload['title'],\n 'description' => $payload['description'],\n 'url' => $payload['url'],\n 'location' => $payload['locations'],\n ]);\n\n $job->setCompany($payload['company'])\n ->setDatePostedAsString($payload['date'])\n ->setBaseSalary($payload['salary']);\n\n return $job;\n }", "title": "" }, { "docid": "a5c361840cd9a786d6b63ee3e6326c17", "score": "0.65271425", "text": "public function createJobExecution(JobInstance $job)\n {\n return new JobExecution();\n }", "title": "" }, { "docid": "35fa2816bb4accf16b3c82d494435a37", "score": "0.65184414", "text": "public function setJobName(string $jobName): JobInstanceInterface;", "title": "" }, { "docid": "cfe360d3e698f44b884d369bc97c191d", "score": "0.64918077", "text": "public function __construct(Job $job)\n {\n $this->job = $job;\n }", "title": "" }, { "docid": "57c7006e69bb8714c773ec1b6736512d", "score": "0.6489135", "text": "public static function createJob($project, $jobOptions, $parentJob = null) {\n\n // Check if the job must be CC\n $isCC = ($jobOptions->getProjectJobFileType() && $jobOptions->getProjectJobFileType() == ProjectJobFile::TYPE_CC);\n\n if ($jobOptions->getJobType())\n Subtitle::defineSubtitleExtension($jobOptions->getJobType());\n\n // Get job type service id\n $jobOptionsTypeService = JobTypeService::model()->byJobTypeAndService(\n $jobOptions->getJobType(),\n $jobOptions->getService()\n )->find();\n\n // Set attributes\n $projectJob = new PRMProjectJob();\n $projectJob->source_lang_id = $jobOptions->getSourceLanguage();\n $projectJob->target_lang_id = $jobOptions->getTargetLanguage();\n $projectJob->project_id = $project->id;\n $projectJob->job_type_id = $jobOptions->getJobType();\n $projectJob->job_type_service_id = $jobOptionsTypeService->id;\n $projectJob->subtitle_provided = $jobOptions->isSubtitleProvided() ? 1 : 0;\n $projectJob->status = parent::STATUS_NEW;\n $projectJob->due_date = $jobOptions->getDueDate();\n $projectJob->is_billable = ($jobOptions->getJobType() != JobType::TYPE_ACCEPTANCE) ? 1 : 0;\n $projectJob->is_cc = (int) $isCC;\n $projectJob->forced_subtitle = $jobOptions->getIsForced() ? 1 : 0;\n $projectJob->job_meta_type_id = $jobOptions->getMetaType();\n\n if($projectJob->save(false)) {\n\n $deliverySpecComponent = new DeliverySpecComponent();\n $projectJobPreference = $deliverySpecComponent->copyTerritoriesToJobPreferences($projectJob, $project->delivery_spec_id);\n // Set max_box_lines = 3 for CC jobs\n if($projectJobPreference instanceof ProjectJobPreference && $isCC) {\n $projectJobPreference->max_box_lines = 3;\n $projectJobPreference->save(false);\n }\n\n ProjectBreakdownReport::create(ProjectBreakdownReportActions::TASK_ADDED)\n ->forProjectJob($projectJob)\n ->save();\n\n if ($project->user_id){\n PUserJob::model()->assignJob($project->user_id, $projectJob->id);\n }\n\n ProjectJobParent::link($parentJob ? $parentJob->id : 0, $projectJob->id);\n\n if ($jobOptions->getOutputSupportedFile() instanceof ProjectSupportedFile) {\n $deliverableFile = new ProjectJobDeliverableFiles();\n $deliverableFile->project_job_id = $projectJob->id;\n $deliverableFile->project_supported_file_id = $jobOptions->getOutputSupportedFile()->id;\n $deliverableFile->file_name = $jobOptions->getOutputFileName();\n\n if ($jobOptions->getOutputPositioningType()){\n $deliverableFile->positioning_profile = \"0;{$jobOptions->getOutputPositioningType()};{$jobOptions->getOutputAspect()};{$jobOptions->getOutputAspectRatio()}\";\n }\n\n $deliverableFile->save(false);\n }\n\n // Return job\n return $projectJob;\n }\n\n return false;\n }", "title": "" }, { "docid": "018e7f9806bbb3272652847fe434f4b1", "score": "0.6468623", "text": "public function createJobObject($payload)\n {\n $job = new Job;\n\n $map = $this->getJobSetterMap();\n\n array_walk($map, function ($path, $setter) use ($payload, &$job) {\n try {\n $value = static::getValue(explode('.', $path), $payload);\n $job->$setter($value);\n } catch (\\OutOfRangeException $e) {\n // do nothing\n }\n });\n\n return $job;\n }", "title": "" }, { "docid": "7a54bfca3f766ebfd911345a30f2cb33", "score": "0.6425879", "text": "public function create(JobRequest $jobRequest)\n {\n $job = new Job();\n\n $job->business_person = $jobRequest->business_person;\n $job->principal_phone = $jobRequest->principal_phone;\n $job->optional_phone = $jobRequest->optional_phone;\n $job->init_date = $jobRequest->init_date;\n $job->finish_date = $jobRequest->finish_date;\n $job->city = $jobRequest->city;\n\n $job->save();\n\n return compact('job');\n }", "title": "" }, { "docid": "dd58c12d4192c5311726b6e59ce72273", "score": "0.64058304", "text": "public function createNewJob($jobBody, $queue)\n {\n $job = new Job($jobBody, $queue);\n\n if ($this->jobHasBeenAddedFromOutside($job)) {\n $this->addMissingJobTimeData($job);\n }\n\n return $job;\n }", "title": "" }, { "docid": "1ec65ce2887dc962a79350d706b825b0", "score": "0.63938236", "text": "protected function createJobFromPayload($payload = [])\n {\n return new Job([\n 'title' => $payload['jobTitle'],\n 'name' => $payload['jobTitle'],\n 'description' => $payload['descriptionFragment'],\n 'url' => $payload['jobViewUrl'],\n 'sourceId' => $payload['jobListingId'],\n 'location' => $payload['location'],\n 'industry' => $payload['jobCategory']\n ]);\n }", "title": "" }, { "docid": "587ba826938350d2f7cb5642d2bff8eb", "score": "0.63899404", "text": "public function created(Job $job)\n {\n //\n }", "title": "" }, { "docid": "4d0bd800154c68649b50b8a4c77c6805", "score": "0.63753885", "text": "protected function generateJob()\n\t{\n\t\t$name = $this->inflector->getJob();\n\n\t\t$this->call('make:job', compact('name'));\n\t}", "title": "" }, { "docid": "ab5d0af4bfb6adff442d858f4c81ea9c", "score": "0.6304669", "text": "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "title": "" }, { "docid": "2b59fce419b6ba5bcaa1151d885342cd", "score": "0.6256802", "text": "static public function factory($job, $conn, $handle, $initParams=array())\n {\n if (empty($initParams['path'])) {\n $paths = explode(',', NET_GEARMAN_JOB_PATH);\n $file = null;\n\n foreach ($paths as $path) {\n $tmpFile = $path . '/' . $job . '.php';\n\n if (file_exists(realpath($tmpFile))) {\n $file = $tmpFile;\n break;\n }\n }\n }\n else {\n $file = $initParams['path'];\n }\n\n if ( ! file_exists($file) ) {\n throw new Net_Gearman_Job_Exception('Invalid Job class file: ' . (empty($file) ? '<empty>' : $file));\n }\n\n include_once $file;\n\n if (empty($initParams['class_name'])) {\n $class = NET_GEARMAN_JOB_CLASS_PREFIX . $job;\n }\n else {\n $class = $initParams['class_name'];\n }\n\n if (!class_exists($class)) {\n throw new Net_Gearman_Job_Exception('Invalid Job class: ' . (empty($class) ? '<empty>' : $class) . ' in ' . (empty($file) ? '<empty>' : $file) );\n }\n\n $instance = new $class($conn, $handle, $initParams);\n if (!$instance instanceof Net_Gearman_Job_Common) {\n throw new Net_Gearman_Job_Exception('Job is of invalid type: ' . get_class($instance));\n }\n\n return $instance;\n }", "title": "" }, { "docid": "8b7db99e4c206ebf75115fcdce27a96d", "score": "0.6241474", "text": "public function creating(Job $job)\n {\n $job->setTokenValue();\n $job->setExpiresAtValue();\n $job->is_activated = 1;\n }", "title": "" }, { "docid": "6ee007b9ac61e4e49a27fc4b1674365e", "score": "0.620155", "text": "private function createJob (string $cronTab) : CronJobInterface\n {\n return new class ($cronTab) implements CronJobInterface\n {\n /** @var string */\n private $cronTab;\n\n\n /**\n */\n public function __construct (string $cronTab)\n {\n $this->cronTab = $cronTab;\n }\n\n\n /**\n */\n public function getCronTab () : string\n {\n return $this->cronTab;\n }\n\n\n /**\n */\n public function getName () : string\n {\n return \"My Job\";\n }\n\n\n /**\n */\n public function execute (BufferedSymfonyStyle $io) : CronStatus\n {\n return new CronStatus(true);\n }\n };\n }", "title": "" }, { "docid": "d0d12677004ffa6627d40e6ea3c5b27c", "score": "0.61789167", "text": "private function createJob(array $data = [])\n {\n $workflow = fake(WorkflowModel::class);\n $stage = fake(StageModel::class, [\n 'action_id' => 'info',\n 'workflow_id' => $workflow->id,\n 'required' => 1,\n ]);\n fake(StageModel::class, [\n 'action_id' => 'button',\n 'workflow_id' => $workflow->id,\n 'required' => 0,\n ]);\n\n $data = array_merge([\n 'workflow_id' => $workflow->id,\n 'stage_id' => $stage->id,\n ], $data);\n\n return fake(JobModel::class, $data);\n }", "title": "" }, { "docid": "961f3febfa4f74353e5e983d749d7966", "score": "0.60741454", "text": "public function getNewJob() {\n # we can grab a locked job if we own the lock\n $rs = $this->runQuery(\"\n SELECT id\n FROM \" . self::$jobsTable . \"\n WHERE queue = ?\n AND (run_at IS NULL OR NOW() >= run_at)\n AND (locked_at IS NULL OR locked_by = ?)\n AND failed_at IS NULL\n AND attempts < ?\n ORDER BY created_at DESC\n LIMIT 10\n \", array($this->queue, $this->name, $this->max_attempts));\n\n // randomly order the 10 to prevent lock contention among workers\n shuffle($rs);\n\n foreach ($rs as $r) {\n $job = new DJJob($this->name, $r[\"id\"], array(\n \"max_attempts\" => $this->max_attempts,\n \"fail_on_output\" => $this->fail_on_output\n ));\n if ($job->acquireLock()) return $job;\n }\n\n return false;\n }", "title": "" }, { "docid": "566a156e30f7bb89711850382db9d3c2", "score": "0.60695714", "text": "public function store(Request $request): JobResource\n {\n $jobTypes = Factory::listTypes();\n $validValues = $this->validate(\n $request,\n [\n 'sample_code' => ['filled', 'string', 'alpha_dash'],\n 'name' => ['required', 'string'],\n 'type' => ['required', 'string', Rule::in($jobTypes->pluck('id'))],\n 'parameters' => ['filled', 'array'],\n ]\n );\n $parametersValidation = $this->_prepareNestedValidation(\n Factory::validationSpec($validValues['type'], $request)\n );\n $validParameters = $this->validate($request, $parametersValidation);\n $type = $validValues['type'];\n $validParameters = $validParameters['parameters'] ?? [];\n $job = Job::create(\n [\n 'sample_code' => $validValues['sample_code'] ?? null,\n 'name' => $validValues['name'],\n 'job_type' => $type,\n 'status' => Job::READY,\n 'job_parameters' => [],\n 'job_output' => [],\n 'log' => '',\n 'user_id' => \\Auth::guard('api')->id(),\n ]\n );\n $job->setParameters(Arr::dot($validParameters));\n $job->save();\n $job->getJobDirectory();\n\n return new JobResource($job);\n }", "title": "" }, { "docid": "b0aa3f2e205b2e540298e229f203c7b4", "score": "0.6047274", "text": "public function __construct(JobPoster $job)\n {\n $this->job = $job;\n }", "title": "" }, { "docid": "e3e1e9fcdac657c49c7820e5d5690ece", "score": "0.60462874", "text": "public function create()\n {\n // Display form to create a new job\n return view('jobs.create');\n }", "title": "" }, { "docid": "4f469c5f6eea70448e3a6eee98295388", "score": "0.6028435", "text": "public function __construct(Job $job)\n {\n parent::__construct();\n\n $this->job = $job;\n }", "title": "" }, { "docid": "ae1dbd2895c348b50b09804fb2762d0b", "score": "0.6027225", "text": "protected function getJobInstance(): JobInstance\n {\n if (!isset($this->jobInstance)) {\n $id = $this->argument('instanceId');\n /** @noinspection PhpIncompatibleReturnTypeInspection */\n $this->jobInstance = JobInstance::findOrFail(intval($id));\n }\n\n return $this->jobInstance;\n }", "title": "" }, { "docid": "e94d8221a4f0dccd7b2b58b5d65d0c0c", "score": "0.6021894", "text": "public function getInstance()\n {\n if (!is_null($this->instance)) {\n return $this->instance;\n }\n\n if (!class_exists($this->class)) {\n throw new \\RuntimeException('Could not find job class \"'.$this->class.'\"');\n }\n\n if (!method_exists($this->class, $this->method) or !is_callable(array($this->class, $this->method))) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" does not contain a public \"'.$this->method.'\" method');\n }\n\n $class = new \\ReflectionClass($this->class);\n\n if ($class->isAbstract()) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" cannot be an abstract class');\n }\n\n $instance = $class->newInstance();\n\n return $this->instance = $instance;\n }", "title": "" }, { "docid": "238a143c80e26c98c4346efad4d978a4", "score": "0.60214204", "text": "static function createJobDescriptorFromInput()\n {\n $obj = b2input()->json();\n $job = new \\scheduler\\JobDescriptor();\n\n $job->group = trim($obj->group) ?: b2config()->scheduler['defaultGroupName'];\n $job->name = $obj->name;\n $job->type = $obj->type;\n $job->description = $obj->description;\n\n if ($obj->data) {\n $job->data = parse_ini_string($obj->data);\n }\n if (empty($job->data)) {\n $job->data = null;\n }\n\n// var_dump($job);\n\n return $job;\n }", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.59231514", "text": "public function create() {}", "title": "" }, { "docid": "3e3e2d0b4d03ffd3801e853630bfe30c", "score": "0.58802027", "text": "public function __construct()\n {\n $this->jobService = new JobService();\n }", "title": "" }, { "docid": "08ea4ff8899d89757cf532fc300a171d", "score": "0.5874528", "text": "public function create()\n {\n $job=new Job;\n return view('jobs.create',[\n 'job'=>$job,]);\n //\n }", "title": "" }, { "docid": "0fab1882ef18e9167461af910b726c07", "score": "0.58576655", "text": "public function store(CreateJobFormRequest $request)\n {\n $job = Job::create($request->input());\n\n return response()->json($job, 201);\n\n }", "title": "" }, { "docid": "e66918cdec31b90d14b3f2e2422c3636", "score": "0.58098435", "text": "public function create()\n {\n return view('admin.job.create');\n }", "title": "" }, { "docid": "7f94309b318d64f8c726d5072d4a383c", "score": "0.5805053", "text": "public function createAction(Request $request)\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('job_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "77bc1784f9d5dd81ded5590f02a1bbe0", "score": "0.58005697", "text": "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "616bcc51937d45ebc7f98e585988fa9b", "score": "0.57851434", "text": "public function create(Request $request) {\n $jobPost = new Job();\n $jobPost->user_id = Auth::user()->id;\n\n // Substract one credit from user's subscription\n $userPlans = Auth::user()->plans;\n\n foreach ($userPlans as $plan) {\n if ($plan->credits > 0) {\n $plan->credits = $plan->credits - 1;\n $plan->save();\n }\n }\n\n $jobPostData = $request::input('jobPost');\n foreach ($jobPostData as $key => $value) {\n $jobPost[$key] = $value;\n }\n\n $jobPost->save();\n\n return $jobPost;\n }", "title": "" }, { "docid": "cef50161af0cbb56756a5d1ae546e4d1", "score": "0.57767034", "text": "public function __construct($job)\n {\n $payload = [];\n $this->job = $job;\n $payload['data'] = json_encode($this->job);\n\n $payload['classname'] = $this->job->getNameOfClass();\n $this->payload = $payload;\n\n }", "title": "" }, { "docid": "4efcf462993c793d8af647938ae9e796", "score": "0.5775661", "text": "public function create()\n {\n return view('profile.job.create');\n }", "title": "" }, { "docid": "442ccd554b1ef45674994fd6323d27a3", "score": "0.5755982", "text": "public function create()\n {\n return view('job.add_job');\n }", "title": "" }, { "docid": "86f2bf3ca55bd673e5a57cae6a8ed33a", "score": "0.5702295", "text": "public function store(CreateRequest $request, Job $job)\n {\n $newTask = $request->validated();\n $newTask['job_id'] = $job->id;\n $task = Task::create($newTask);\n\n flash(__('task.created'), 'success');\n\n return redirect()->route('jobs.show', $job);\n }", "title": "" }, { "docid": "779c8e897c4b8463bb0027e0ccb89725", "score": "0.5683395", "text": "public static function create() {}", "title": "" }, { "docid": "779c8e897c4b8463bb0027e0ccb89725", "score": "0.5683395", "text": "public static function create() {}", "title": "" }, { "docid": "779c8e897c4b8463bb0027e0ccb89725", "score": "0.5683395", "text": "public static function create() {}", "title": "" }, { "docid": "1351d1a017631af03b7c451e76141c55", "score": "0.5683376", "text": "public function create()\n {}", "title": "" }, { "docid": "c237de09f0753014cefded3ecfe5f702", "score": "0.5679739", "text": "public function createTask()\n {\n return factory($this->model)->create();\n }", "title": "" }, { "docid": "3c44f44217ee87162378dd54fe8eb501", "score": "0.5678496", "text": "public function newAction()\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "0afdd63e879d01455b887ea13f82fc3b", "score": "0.5659406", "text": "public function createJob(array $settings, $metaData = [], $priority = 0)\n {\n return $this->client->createJob([\n 'Role' => config('media-converter.iam_arn'),\n 'Settings' => $settings,\n 'Queue' => config('media-converter.queue_arn'),\n 'UserMetadata' => $metaData,\n 'StatusUpdateInterval' => $this->getStatusUpdateInterval(),\n 'Priority' => $priority,\n ]);\n }", "title": "" }, { "docid": "b84cc9b9de37dd2b9bd50a9f768dd142", "score": "0.56529284", "text": "public function addNewJobOpo()\n {\n }", "title": "" }, { "docid": "b273c7b4ccfb31ed1cf2db87a232c156", "score": "0.56470996", "text": "public function insert($projectId, Google_Job $postBody, $optParams = array()) {\n $params = array('projectId' => $projectId, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n $data = $this->__call('insert', array($params));\n if ($this->useObjects()) {\n return new Google_Job($data);\n } else {\n return $data;\n }\n }", "title": "" }, { "docid": "a98ebad012a796c9e4885b0ed4e203ee", "score": "0.5634536", "text": "public function run()\n {\n Job::create([\n \"name\" => \"Wirausaha\"\n ]);\n\n Job::create([\n \"name\" => \"Wiraswasta\"\n ]);\n\n Job::create([\n \"name\" => \"Freelance\"\n ]);\n\n Job::create([\n \"name\" => \"Pelajar\"\n ]);\n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \n }", "title": "" }, { "docid": "e0ad6d57263d7912a383728b0453fa4e", "score": "0.5628215", "text": "public static function createJob($mysqli,$name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate){\n $insert = \"INSERT INTO job (job_name,job_desc,cust_email,trade_name,area,preferred_cost,date_needed,offer_end_date) VALUES (?,?,?,?,?,?,?,?)\";\n $stmt = $mysqli->prepare($insert);\n $stmt->bind_param('sssssiss', $name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate); \n $stmt->execute();\n $stmt->close();\n $job = new Job(['JobName'],['JobDesc'],['Email'],['Trade'],['Area'],['JobCost'],['JobDate'],['EstDate']);\n return $job;\n }", "title": "" }, { "docid": "dd853df85a03337434ff199d533ed4c5", "score": "0.5625956", "text": "public function store(Request $request)\n {\n $job = new Job();\n $job->title = $request->title;\n $job->description = $request->description;\n $job->company_name = $request->company_name;\n $this->repo->save($job);\n return new JobsResources($job);\n }", "title": "" }, { "docid": "8aac9415cb071568247ce9bb154c2867", "score": "0.5621957", "text": "public function create()\n {\n $fields = Field::all();\n $jobTypes = config('user.job_type');\n\n return view('job.create', [\n 'fields' => $fields,\n 'jobTypes' => $jobTypes,\n ]);\n }", "title": "" }, { "docid": "00c8c8d172db9c029770bd1755550b36", "score": "0.56141514", "text": "public static function create($queue, $class, array $data = null, $run_at = 0)\n {\n $id = static::createId($queue, $class, $data, $run_at);\n\n $job = new static($queue, $id, $class, $data);\n\n if ($run_at > 0) {\n if (!$job->delay($run_at)) {\n return false;\n }\n } elseif (!$job->queue()) {\n return false;\n }\n\n Stats::incr('total', 1);\n Stats::incr('total', 1, Queue::redisKey($queue, 'stats'));\n\n return $job;\n }", "title": "" }, { "docid": "8900729e289cbeca6e79e0033641206a", "score": "0.56048644", "text": "public function create()\n {\n return $this->objectManager->create($this->className);\n }", "title": "" }, { "docid": "7377758c959c218dc50e7c226e7ec123", "score": "0.5604791", "text": "public function create() {\r\n }", "title": "" }, { "docid": "1705fe9395287df348375b4243a50e81", "score": "0.5601149", "text": "public function create()\n {\n //TODO\n }", "title": "" }, { "docid": "63e2c63b3a361a4aff18383b1a7ea115", "score": "0.5601067", "text": "public function submit(Job $job): JobResource\n {\n if (!$job->canBeModified()) {\n abort(400, 'Unable to submit a job that is already submitted.');\n }\n $job->setStatus(Job::QUEUED);\n JobRequest::dispatch($job);\n\n return new JobResource($job);\n }", "title": "" }, { "docid": "d31aa5ef5f04ed52b94af3a66e5f6518", "score": "0.5599652", "text": "public function __construct(int $status, Job $job)\n {\n $this->status = $status;\n $this->job = $job;\n\n $this->updateTask($this->status, $this->job);\n }", "title": "" }, { "docid": "af628c776e0f0de5124893ae81a7e970", "score": "0.5595376", "text": "public function create()\n {\n return new $this->class;\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.55932534", "text": "public function create() {\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.55932534", "text": "public function create() {\n }", "title": "" }, { "docid": "c333c23ea7ab960d667245ad8e5de114", "score": "0.55932015", "text": "public function create() {\n\t \n }", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "4b844db077ced5c4221280925e7ed5fa", "score": "0.55362236", "text": "public function create()\n {\n return view('admin.jobs.create');\n }", "title": "" }, { "docid": "6baef5a1c3af7838c44b0b96e46025ec", "score": "0.5534658", "text": "public function fake(Generator &$faker): Job\n {\n return new Job([\n 'name' => $faker->catchPhrase,\n 'summary' => $faker->sentence,\n 'workflow_id' => random_int(1, Fabricator::getCount('workflows') ?: 4),\n 'stage_id' => random_int(1, Fabricator::getCount('stages') ?: 99),\n ]);\n }", "title": "" }, { "docid": "1e8a068d5e368f2936afc275a39a7e9b", "score": "0.5531583", "text": "public function run()\n {\n Job::factory()->count(100)->create();\n \n }", "title": "" }, { "docid": "f08b4eeed180abcce07804c845ce48c6", "score": "0.55224913", "text": "public function create() {\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "1d49e781a44c4e31dd43eb205232054e", "score": "0.5522197", "text": "public function create()\n {\n return view('admin.jobs.create');\n\n }", "title": "" }, { "docid": "031a12821347d1189c50c4e1d6a93e7c", "score": "0.5517534", "text": "public function create() {\n\n\t\t\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "d7cbb2bd3ed23b325611ae696b88c615", "score": "0.5514842", "text": "protected function _createJob($type, $job)\n\t{\n\t\treturn strtoupper($type) . ' ' . json_encode($job);\n\t}", "title": "" }, { "docid": "7a5d2ac2de1fa08f01b4b402c56bc511", "score": "0.549955", "text": "public function createJobWithSalesPrices(array $inputData): Job;", "title": "" }, { "docid": "5757bc169a87b78055e9bec75d439296", "score": "0.5497938", "text": "public function create(Job $job)\n {\n $states = $job->prepareStates();\n $countries = $job->prepareCountries();\n $hours = $job->prepareHours();\n $minutes = $job->prepareMinutes();\n $ampm = $job->prepareAmpm();\n $open = $job->prepareOpen();\n return view('companies.create', compact(['states','countries','hours','minutes','ampm','open']));\n }", "title": "" }, { "docid": "a2f6ff4afbb6989a3888f28cd0eaac50", "score": "0.54876786", "text": "public function create()\n {\n return view('jobs.create');\n }", "title": "" }, { "docid": "a2f6ff4afbb6989a3888f28cd0eaac50", "score": "0.54876786", "text": "public function create()\n {\n return view('jobs.create');\n }", "title": "" }, { "docid": "a2f6ff4afbb6989a3888f28cd0eaac50", "score": "0.54876786", "text": "public function create()\n {\n return view('jobs.create');\n }", "title": "" } ]
743792d55e42748d4f7b92eee7b2947e
Gets the public 'TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository' shared autowired service.
[ { "docid": "00bb15e81c404d96dfae7082831b034b", "score": "0.8294175", "text": "protected function getRepositoryRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extensionmanager\\\\Domain\\\\Repository\\\\RepositoryRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\RepositoryRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" } ]
[ { "docid": "1bd6264a8b633e3da93c9b3e9bef5bb0", "score": "0.81208783", "text": "protected function getExtensionRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extensionmanager\\\\Domain\\\\Repository\\\\ExtensionRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\ExtensionRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "d60937e4ccc04733f052d381caadc58a", "score": "0.8051347", "text": "protected function getRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Repository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Persistence\\Repository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n\n return $instance;\n }", "title": "" }, { "docid": "b06c101bb27da504987729bdb6e62fcb", "score": "0.7403164", "text": "private function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "ef925f0278e509a3f7eaebbe42b7d45a", "score": "0.7371671", "text": "protected function getStorageRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Core\\\\Resource\\\\StorageRepository'] = \\TYPO3\\CMS\\Core\\ServiceProvider::getStorageRepository($this);\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "b2a2ac6bad38a044d8ca0d61b3e0bc31", "score": "0.730894", "text": "public function getRepository()\n {\n return $this->repository;\n }", "title": "" }, { "docid": "44e1b98a56c8cb04262b50f347c3e404", "score": "0.73023176", "text": "private function getRepository()\n {\n if ($this->repository === null) {\n $this->repository = Shopware()->Models()->getRepository('Shopware\\Models\\Article\\Article');\n }\n\n return $this->repository;\n }", "title": "" }, { "docid": "98f0faf4d24f532cb424bf1d25e0d1df", "score": "0.7264849", "text": "protected function getRepository()\n {\n return $this->getHelper()\n ->getRepository(get_class($this));\n }", "title": "" }, { "docid": "bb48e68b803da360ab84a286da73b4b8", "score": "0.7206189", "text": "protected function getFileRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Core\\\\Resource\\\\FileRepository'] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Core\\Resource\\FileRepository::class);\n }", "title": "" }, { "docid": "244adeede470d7fd861090ba2d6dc646", "score": "0.71829224", "text": "public function getRepository() {\n\t\treturn $this->repository;\n\t}", "title": "" }, { "docid": "244adeede470d7fd861090ba2d6dc646", "score": "0.71829224", "text": "public function getRepository() {\n\t\treturn $this->repository;\n\t}", "title": "" }, { "docid": "7159fb73e2285a9f280ee004256df117", "score": "0.7178932", "text": "public function getRepository()\n {\n if ($this->repository === null) {\n $this->repository = Shopware()->Models()->getRepository(\n 'Shopware\\CustomModels\\MoptPayoneConfig\\MoptPayoneConfig'\n );\n }\n return $this->repository;\n }", "title": "" }, { "docid": "29005d9688033a2bff44ba04658e5bc7", "score": "0.71726507", "text": "private function getRepository() {\n if ($this->repository)\n return $this->repository;\n\n return app('smart.seed.repository');\n }", "title": "" }, { "docid": "bc76e1cdb8b5237e650028e55919ae36", "score": "0.7156373", "text": "private function _repository()\n {\n return $this->doctrine->getRepository($this->repository_name);\n }", "title": "" }, { "docid": "d64742bdcf63d88804c2a9158eb2f75c", "score": "0.71507865", "text": "public function getRepository()\n {\n if (null == $this->repository) {\n $this->setRepository(Orm::getRepository($this->type));\n }\n return $this->repository;\n }", "title": "" }, { "docid": "e17473059cfcfb04679779c92a1f02cc", "score": "0.7134881", "text": "protected function getBackendModuleRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Backend\\\\Domain\\\\Repository\\\\Module\\\\BackendModuleRepository'] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Backend\\Domain\\Repository\\Module\\BackendModuleRepository::class);\n }", "title": "" }, { "docid": "a2347c4f552ecfbce41eb1717d6a586e", "score": "0.7087874", "text": "public function get(): Repository\n {\n return $this->repository;\n }", "title": "" }, { "docid": "34adb4f39d37cba21d68e08e6108735e", "score": "0.7080616", "text": "private static function _getRepositoryManager()\n\t{\n\t\tself::_init();\n\t\tif (!self::$repositoryManager)\n\t\t{\n\t\t\tself::$repositoryManager = self::$composer->getRepositoryManager();\n\t\t}\n\t\treturn self::$repositoryManager;\n\t}", "title": "" }, { "docid": "6f7a9970b860fe1988ca7dcc1908e2a1", "score": "0.70475256", "text": "public function getRepository()\n {\n if (!$this->repository) {\n return $this->dm->getRepository($this->class);\n }\n\n return $this->repository;\n }", "title": "" }, { "docid": "0aeb0ceecc4a9ed10c89d8f5237bef67", "score": "0.70358866", "text": "public static function getRepository(){\n if (self::$repository === null){\n self::$repository = new JsonRepository(new DefaultModelConfiguration('\\\\compact\\\\mvvm\\impl\\\\Model', 'guid'), new \\SplFileInfo(__DIR__.\"/phpconsole-aliasses.json\"));\n }\n \n return self::$repository;\n }", "title": "" }, { "docid": "40c36f18caf1347dfeabd16eeaa5b27b", "score": "0.70191014", "text": "public function getBaseRepo()\n {\n return $this->container->get('base_repository_factory');\n }", "title": "" }, { "docid": "46e5714d3db53337182ce093fa7e9184", "score": "0.6971597", "text": "protected function getWorkspaceRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Belog\\\\Domain\\\\Repository\\\\WorkspaceRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Belog\\Domain\\Repository\\WorkspaceRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "fffae6028271034fd6d35efd506772e8", "score": "0.69665086", "text": "public static function getRepository(): UserRepository\n {\n // Validates if static instance has been created already.\n if (self::$repository == null) {\n self::$repository = self::createRepository();\n }\n\n // Returns instance.\n return self::$repository;\n }", "title": "" }, { "docid": "7b3fddc9b6209255ab37e017c880d86f", "score": "0.6944089", "text": "public function getRepository()\n {\n return $this->getObjectManager()->getRepository($this->class);\n }", "title": "" }, { "docid": "bf7b625d56aa4910b5283bf5374f1dda", "score": "0.69363284", "text": "public function getRepository() : RepositoryInterface;", "title": "" }, { "docid": "489c1694d109590276f68bd985f903a4", "score": "0.6793672", "text": "protected function getUserRepositoryService()\n {\n return $this->services['App\\\\Client\\\\User\\\\Persistence\\\\UserRepository'] = new \\App\\Client\\User\\Persistence\\UserRepository(($this->services['App\\\\Client\\\\User\\\\Persistence\\\\Mapper\\\\UserMapper'] ?? ($this->services['App\\\\Client\\\\User\\\\Persistence\\\\Mapper\\\\UserMapper'] = new \\App\\Client\\User\\Persistence\\Mapper\\UserMapper())), ($this->privates['Cycle\\\\ORM\\\\ORM'] ?? $this->getORMService()));\n }", "title": "" }, { "docid": "4ac2b4043c1a929a45544c1f6485f847", "score": "0.6741161", "text": "public function getRepository()\n {\n if (self::$repositoryInstance == null) {\n self::$repositoryInstance = $this->getEntityManager()->getRepository(CmsUserIdentity::class);\n }\n\n return self::$repositoryInstance;\n }", "title": "" }, { "docid": "307134bdfd01827ac41a1adc6f226de2", "score": "0.67387474", "text": "public function getRepository(): ?Repository\n {\n return $this->repository;\n }", "title": "" }, { "docid": "403d58d36b777cf824e264b779958713", "score": "0.67252094", "text": "protected function getProductRepositoryService()\n {\n return $this->services['App\\\\Client\\\\Product\\\\Persistence\\\\ProductRepository'] = new \\App\\Client\\Product\\Persistence\\ProductRepository(($this->services['App\\\\Client\\\\Product\\\\Persistence\\\\Mapper\\\\ProductMapper'] ?? ($this->services['App\\\\Client\\\\Product\\\\Persistence\\\\Mapper\\\\ProductMapper'] = new \\App\\Client\\Product\\Persistence\\Mapper\\ProductMapper())), ($this->privates['Cycle\\\\ORM\\\\ORM'] ?? $this->getORMService()));\n }", "title": "" }, { "docid": "f17b32f5f316537239f5181a564bacd7", "score": "0.67201525", "text": "public function getRepository()\n {\n return $this->getEntityManager()->getRepository($this->getEntityClassName());\n }", "title": "" }, { "docid": "1b2e4c24d9b28998254b81fc3843f3db", "score": "0.67190343", "text": "protected function getRepository()\n {\n return $this->get('doctrine_mongodb')->getManager()->getRepository('App:User');\n }", "title": "" }, { "docid": "ab5bf449941bf4eb10303644b514baf5", "score": "0.6718011", "text": "protected function getFrontendUserRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\FrontendUserRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\FrontendUserRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n\n return $instance;\n }", "title": "" }, { "docid": "4dbc6804b87558134e269c45ba843f3c", "score": "0.67167115", "text": "public function repository()\n {\n return $this->project()->repository;\n }", "title": "" }, { "docid": "060c76892ba1f6f1a2fd7585cc1e660b", "score": "0.6690796", "text": "abstract public function getRepository();", "title": "" }, { "docid": "7bf35d24de6b9d6219de76c5614c4d26", "score": "0.6682649", "text": "public function getRepo() {\n return $this->repo;\n }", "title": "" }, { "docid": "cead2b33ce23f4750fd3a754b53d47b7", "score": "0.66574025", "text": "protected function registerRepository()\n\t{\n\t\t$this->app['platform.installer.repository'] = $this->app->share(function()\n\t\t{\n\t\t\treturn new Repository;\n\t\t});\n\n\t\t$this->app->alias('platform.installer.repository', 'Platform\\Installer\\Repository');\n\t}", "title": "" }, { "docid": "4389abf90a1a61f3b1a1721a75f06bc2", "score": "0.66555655", "text": "public function getRepository()\n {\n $repositoryGenerator = new RepositoryInterfaceGenerator([\n 'name' => $this->name,\n ]);\n\n $repository = $repositoryGenerator->getRootNamespace() . '\\\\' . $repositoryGenerator->getName();\n\n return str_replace([\n \"\\\\\",\n '/'\n ], '\\\\', $repository) . 'Repository';\n }", "title": "" }, { "docid": "379a93bdc20524b859135146d5f89f2c", "score": "0.664815", "text": "function getRepositoryClass()\n {\n return $this->repositoryClass;\n }", "title": "" }, { "docid": "d4f556bad383f6afa45cb71d7af72e4d", "score": "0.66480076", "text": "public function getRepository() {\n\t\tif(!$this->SHA) {\n\t\t\treturn null;\n\t\t}\n\t\treturn $this->Environment()->Project()->getRepository();\n\t}", "title": "" }, { "docid": "2e9a77c38736768d7ffd8f97579f654a", "score": "0.6633713", "text": "private function getRepositoryInstance()\r\n {\r\n if (class_exists($this->request->getRepository()))\r\n {\r\n Debug::add(\"debug::repository\", \"Repository örneği oluşturuluyor.\");\r\n $name = $this->request->getRepository();\r\n return new $name;\r\n }\r\n }", "title": "" }, { "docid": "41df33d7399da7f5a24be20e170ab497", "score": "0.65973604", "text": "protected function getDashboardRepositoryService()\n {\n return $this->privates['TYPO3\\\\CMS\\\\Dashboard\\\\DashboardRepository'] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Dashboard\\DashboardRepository::class, ($this->privates['TYPO3\\\\CMS\\\\Core\\\\Database\\\\ConnectionPool'] ?? ($this->privates['TYPO3\\\\CMS\\\\Core\\\\Database\\\\ConnectionPool'] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Core\\Database\\ConnectionPool::class))), ($this->services['TYPO3\\\\CMS\\\\Dashboard\\\\WidgetRegistry'] ?? $this->getWidgetRegistryService()), $this);\n }", "title": "" }, { "docid": "df5d23bb97442e9a170658ec2f03ceaf", "score": "0.65867025", "text": "private function getDeviceRepository()\n {\n if (!($this->deviceRepository instanceof DeviceRepository)) {\n $this->deviceRepository = $this->getDoctrine()->getRepository('DevicesMyDevicesBundle:Device');\n }\n\n return $this->deviceRepository;\n }", "title": "" }, { "docid": "b2fc093ec823bbb715249ee954420141", "score": "0.65863776", "text": "private function getSiteRepository()\n {\n if ($this->siteRepository === null) {\n $this->siteRepository = Shopware()->Models()->getRepository(\\Shopware\\Models\\Site\\Site::class);\n }\n\n return $this->siteRepository;\n }", "title": "" }, { "docid": "55d940933d3c91489313ac9a19a8f001", "score": "0.6579572", "text": "protected function getMetaDataRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Core\\\\Resource\\\\Index\\\\MetaDataRepository'] = \\TYPO3\\CMS\\Core\\ServiceProvider::getMetaDataRepository($this);\n }", "title": "" }, { "docid": "c759ea26664817f43dfe1f5f24a3e543", "score": "0.65648633", "text": "function getRepositoryType() {\n\t\treturn static::repoType;\n\t}", "title": "" }, { "docid": "40200b3ae303b88b1fddd9d9f7b5d760", "score": "0.6544437", "text": "public function getPageRepository()\n {\n return $this->pageRepository;\n }", "title": "" }, { "docid": "8a1c28a56535b6b360012db3964ea37d", "score": "0.65128887", "text": "protected function getCategoryRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\CategoryRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\CategoryRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "6131fcf6f86651c349a52f230809aced", "score": "0.64903736", "text": "public function getStoreWebsiteRepository()\n {\n return $this->storeWebsiteRepository;\n }", "title": "" }, { "docid": "9ed67cb2dfc6612b728ee4dfc4e104c6", "score": "0.6486195", "text": "function getRepo() {\n\t\treturn $this->repo;\n\t}", "title": "" }, { "docid": "f12076b6a9cba938edeab90d652cec26", "score": "0.6479801", "text": "public function getRepository()\n {\n return $this->em->getRepository('MauticRecommenderBundle:Item');\n }", "title": "" }, { "docid": "0d44a5cb6920b9174af825a9d56282f5", "score": "0.64788806", "text": "public function getRepository()\n {\n return $this->statusRepository;\n }", "title": "" }, { "docid": "769678c39e91050eddd9985ebea0ecae", "score": "0.64559925", "text": "protected function getFileMountRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\FileMountRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\FileMountRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "33bbc27242b72c2cef8c0dd86391dc7c", "score": "0.6411043", "text": "public function getAccountRepository(){\n if(null === $this->accountRepository)\n $this->accountRepository = $this->getEntityManager()->getRepository('\\Account\\Entity\\Account');\n return $this->accountRepository;\n }", "title": "" }, { "docid": "6ae2f1b5fc6ced24b106b2c9127b6fc1", "score": "0.64055383", "text": "public function getUserRepository() {\n if ($this->userRepository === null) {\n throw new NotFoundException();\n }\n return $this->userRepository;\n }", "title": "" }, { "docid": "d1c588bb85f7b5fb2195291ac5d72c66", "score": "0.63841206", "text": "public function getRepositoryFactory()\n {\n return $this->repositoryFactory;\n }", "title": "" }, { "docid": "1c07721b416b4256094b73f894a6e447", "score": "0.63827693", "text": "public function getRepository()\n {\n return app('App\\Core\\V201\\Repositories\\Activity\\ChangeActivityDefault');\n }", "title": "" }, { "docid": "33670c3ebae44a33e70c882ca37cd020", "score": "0.63706493", "text": "protected function getBackendUserRepository2Service()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\BackendUserRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\BackendUserRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "338a32612c974f7da980ad3a3a92200e", "score": "0.63684225", "text": "protected function getUserRepository ()\n\t{\n\t\treturn $this->userService->getRepository();\n\t}", "title": "" }, { "docid": "ffe5e0fa89020a7e3ef5b52aa69b3bda", "score": "0.6334659", "text": "private function getModuleRepository()\n {\n $repository = $this->app->make(\"modules\");\n return $repository;\n }", "title": "" }, { "docid": "d45c3902c10b980127531b63de444a37", "score": "0.6332967", "text": "public function getRepository() : string;", "title": "" }, { "docid": "4c42f82154958648a8f338b9313d517c", "score": "0.6311091", "text": "public function getRepo();", "title": "" }, { "docid": "c1db6283628ebf11ae964adda0eb3487", "score": "0.63102156", "text": "protected static function getInstance() {\n\n if (self::$oInstance == null) {\n self::$oInstance = new LicencaEmpreendimentoRepository();\n }\n return self::$oInstance;\n }", "title": "" }, { "docid": "2e0be555b12418a6692b7b84935db988", "score": "0.6306317", "text": "protected function getCategoryRepositoryService()\n {\n return $this->services['App\\\\Client\\\\Category\\\\Persistence\\\\CategoryRepository'] = new \\App\\Client\\Category\\Persistence\\CategoryRepository(($this->services['App\\\\Client\\\\Category\\\\Persistence\\\\Mapper\\\\CategoryMapper'] ?? ($this->services['App\\\\Client\\\\Category\\\\Persistence\\\\Mapper\\\\CategoryMapper'] = new \\App\\Client\\Category\\Persistence\\Mapper\\CategoryMapper())), ($this->privates['Cycle\\\\ORM\\\\ORM'] ?? $this->getORMService()));\n }", "title": "" }, { "docid": "84fccfa55e3923996a42a8b904c89867", "score": "0.63046443", "text": "public function getDefaultRepository(): DefaultRepository\n {\n return $this->repository;\n }", "title": "" }, { "docid": "bca9721569b31cdb54869e4a9a0bd035", "score": "0.6292574", "text": "private static function _getLocalRepository()\n\t{\n\t\tself::_init();\n\t\tif (!self::$localRepository)\n\t\t{\n\t\t\tself::$localRepository = self::_getRepositoryManager()->getLocalRepository();\n\t\t}\n\t\treturn self::$localRepository;\n\t}", "title": "" }, { "docid": "22932719ecfa83712e440e735c7576ac", "score": "0.62902474", "text": "protected function getDoctrinePhpcr_Jackalope_Repository_DefaultService()\n {\n return $this->services['doctrine_phpcr.jackalope.repository.default'] = call_user_func(array('Jackalope\\\\RepositoryFactoryDoctrineDBAL', 'getRepository'), array('jackalope.doctrine_dbal_connection' => $this->get('doctrine.dbal.default_connection'), 'jackalope.check_login_on_server' => false));\n }", "title": "" }, { "docid": "f041f3850deacc036811aa7a660e41a3", "score": "0.6290189", "text": "protected function getFrontendUserGroupRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\FrontendUserGroupRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\FrontendUserGroupRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n\n return $instance;\n }", "title": "" }, { "docid": "d8de2483308363738f7cdcb9a1273a17", "score": "0.6287538", "text": "protected function getProcessedFileRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Core\\\\Resource\\\\ProcessedFileRepository'] = \\TYPO3\\CMS\\Core\\ServiceProvider::getProcessedFileRepository($this);\n }", "title": "" }, { "docid": "77522f2c4ce3e5baeaf22f1ffeeaaddc", "score": "0.626373", "text": "protected function getBackendUserRepositoryService()\n {\n $this->services['TYPO3\\\\CMS\\\\Beuser\\\\Domain\\\\Repository\\\\BackendUserRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Beuser\\Domain\\Repository\\BackendUserRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "2082a9e2349f37d32db36062d8dab1ee", "score": "0.6220236", "text": "protected function getFileIndexRepositoryService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Core\\\\Resource\\\\Index\\\\FileIndexRepository'] = \\TYPO3\\CMS\\Core\\ServiceProvider::getFileIndexRepository($this);\n }", "title": "" }, { "docid": "bda5cb868006194a672b8d8b7e5ab322", "score": "0.6210944", "text": "public function getObjectsRepository()\n {\n return $this->objectsRepository;\n }", "title": "" }, { "docid": "fa3935d4ace141e519bab690f8cad169", "score": "0.62085146", "text": "public function getRepo()\n {\n return $this->repo = $this->repo ?: $this->getEntityManager()->getRepository('CronBundle:Cron');\n }", "title": "" }, { "docid": "9df641cd2a50e452c61c3d49d1ac2e9e", "score": "0.6208294", "text": "protected function registerRepository()\n\t{\n\t\t$this->app->singleton('oauth.clients', function ($app) {\n\t\t\treturn new ClientRepository($app['events']);\n\t\t});\n\t}", "title": "" }, { "docid": "0545f2f0ae7883e9eb42484946d12cdd", "score": "0.6195105", "text": "public function getSummonerRepository(){\n if(null === $this->summonerRepository)\n $this->summonerRepository = $this->getEntityManager()->getRepository('\\League\\Entity\\Summoner');\n return $this->summonerRepository;\n }", "title": "" }, { "docid": "091b3bdc6756524a212b15a8c39ec020", "score": "0.61926824", "text": "public function getProductRepository()\r\n {\r\n return new ProductRepository();\r\n }", "title": "" }, { "docid": "281aedbc4cf2e8dae8b2fb8a70449a36", "score": "0.61897653", "text": "protected function getEntityRepository()\n {\n return $this->objectManager->getRepository($this->className);\n }", "title": "" }, { "docid": "b58c973c5753dceefa71852c9c37ee68", "score": "0.61889344", "text": "protected function getContentRepository(): ContentRepository\n {\n ControllerUtil::requireActionController($this);\n \n return $this->getService(ContentRepository::class);\n }", "title": "" }, { "docid": "d8d14d387595d2fb06ba28d7dbe82998", "score": "0.6167822", "text": "public function getUserRepository()\n {\n if ($this->userRepository === null) {\n $this->userRepository = $this->entityManager->getRepository(User::class);\n }\n return $this->userRepository;\n }", "title": "" }, { "docid": "657da3c0ae8df363760f0fb76480e02d", "score": "0.61653644", "text": "protected static function getInstance() {\n\n if (self::$oInstance == null) {\n\n self::$oInstance = new SalaRepository();\n }\n return self::$oInstance;\n }", "title": "" }, { "docid": "6dd906a32eb9302f4a21da73b34a96e5", "score": "0.6160543", "text": "public function repositories()\n {\n return new Repositories($this, $this);\n }", "title": "" }, { "docid": "f80c8bd3cd7a15802a8bb8514b095f10", "score": "0.6141618", "text": "protected function getDoctrine_Orm_ContainerRepositoryFactoryService()\n {\n return $this->privates['doctrine.orm.container_repository_factory'] = new \\Doctrine\\Bundle\\DoctrineBundle\\Repository\\ContainerRepositoryFactory(new \\Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator($this->getService, [\n 'App\\\\Repository\\\\ChangeEntryRepository' => ['privates', 'App\\\\Repository\\\\ChangeEntryRepository', 'getChangeEntryRepositoryService', true],\n 'App\\\\Repository\\\\CommentRepository' => ['privates', 'App\\\\Repository\\\\CommentRepository', 'getCommentRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\AdditionalFieldRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\AdditionalFieldRepository', 'getAdditionalFieldRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\AssociationSubtypeRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\AssociationSubtypeRepository', 'getAssociationSubtypeRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionLevelRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionLevelRepository', 'getCfRubricCriterionLevelRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionRepository', 'getCfRubricCriterionRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\CfRubricRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\CfRubricRepository', 'getCfRubricRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\FrameworkTypeRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\FrameworkTypeRepository', 'getFrameworkTypeRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsAssociationRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsAssociationRepository', 'getLsAssociationRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefAssociationGroupingRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefAssociationGroupingRepository', 'getLsDefAssociationGroupingRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefConceptRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefConceptRepository', 'getLsDefConceptRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefGradeRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefGradeRepository', 'getLsDefGradeRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefItemTypeRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefItemTypeRepository', 'getLsDefItemTypeRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefLicenceRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefLicenceRepository', 'getLsDefLicenceRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDefSubjectRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDefSubjectRepository', 'getLsDefSubjectRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDocAttributeRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDocAttributeRepository', 'getLsDocAttributeRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsDocRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsDocRepository', 'getLsDocRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\LsItemRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\LsItemRepository', 'getLsItemRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\FrameworkRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\Mirror\\\\FrameworkRepository', 'getFrameworkRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\LogRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\Mirror\\\\LogRepository', 'getLogRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\OAuthCredentialRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\Mirror\\\\OAuthCredentialRepository', 'getOAuthCredentialRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\ServerRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\Mirror\\\\ServerRepository', 'getServerRepositoryService', true],\n 'App\\\\Repository\\\\Framework\\\\ObjectLockRepository' => ['privates', 'App\\\\Repository\\\\Framework\\\\ObjectLockRepository', 'getObjectLockRepositoryService', true],\n 'App\\\\Repository\\\\SessionRepository' => ['privates', 'App\\\\Repository\\\\SessionRepository', 'getSessionRepositoryService', true],\n 'App\\\\Repository\\\\User\\\\OrganizationRepository' => ['privates', 'App\\\\Repository\\\\User\\\\OrganizationRepository', 'getOrganizationRepositoryService', true],\n 'App\\\\Repository\\\\User\\\\UserDocAclRepository' => ['privates', 'App\\\\Repository\\\\User\\\\UserDocAclRepository', 'getUserDocAclRepositoryService', true],\n 'App\\\\Repository\\\\User\\\\UserRepository' => ['privates', 'App\\\\Repository\\\\User\\\\UserRepository', 'getUserRepositoryService', true],\n ], [\n 'App\\\\Repository\\\\ChangeEntryRepository' => '?',\n 'App\\\\Repository\\\\CommentRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\AdditionalFieldRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\AssociationSubtypeRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionLevelRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\CfRubricCriterionRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\CfRubricRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\FrameworkTypeRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsAssociationRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefAssociationGroupingRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefConceptRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefGradeRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefItemTypeRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefLicenceRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDefSubjectRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDocAttributeRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsDocRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\LsItemRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\FrameworkRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\LogRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\OAuthCredentialRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\Mirror\\\\ServerRepository' => '?',\n 'App\\\\Repository\\\\Framework\\\\ObjectLockRepository' => '?',\n 'App\\\\Repository\\\\SessionRepository' => '?',\n 'App\\\\Repository\\\\User\\\\OrganizationRepository' => '?',\n 'App\\\\Repository\\\\User\\\\UserDocAclRepository' => '?',\n 'App\\\\Repository\\\\User\\\\UserRepository' => '?',\n ]));\n }", "title": "" }, { "docid": "e421a5e48426cd5482e230ba5b34998d", "score": "0.6140412", "text": "protected function registerRepository() {\n\n $this->app['zipcode.repository'] = $this->app->share(function ($app) {\n\n $repository = $app['config']->get('ardyn/zipcode::repository');\n\n return new $repository(\n $app['zipcode.model'],\n $app['config']\n );\n\n });\n\n }", "title": "" }, { "docid": "10e29a991e2735d33ab5b3c5da0b2689", "score": "0.612727", "text": "protected function getSubscriberRepository()\n {\n return \\DMK\\Mkpostman\\Factory::getSubscriberRepository();\n }", "title": "" }, { "docid": "9d10d5f08e49dedd31136c65ed65f053", "score": "0.61256695", "text": "protected function getPageRepository()\n {\n return $GLOBALS['TSFE']->sys_page;\n }", "title": "" }, { "docid": "a9d6ef1cb13555600584f60ba9e18877", "score": "0.61204535", "text": "protected function getAddressRepositoryService()\n {\n return $this->services['App\\\\Client\\\\Address\\\\Persistence\\\\AddressRepository'] = new \\App\\Client\\Address\\Persistence\\AddressRepository(($this->services['App\\\\Client\\\\Address\\\\Persistence\\\\Mapper\\\\AddressMapper'] ?? ($this->services['App\\\\Client\\\\Address\\\\Persistence\\\\Mapper\\\\AddressMapper'] = new \\App\\Client\\Address\\Persistence\\Mapper\\AddressMapper())), ($this->privates['Cycle\\\\ORM\\\\ORM'] ?? $this->getORMService()));\n }", "title": "" }, { "docid": "916f6123cbaf4e563da4f47cb9c5020f", "score": "0.6100509", "text": "protected function getTranslationRepository()\n {\n return $this->getManager()->getRepository($this->classes['translation']);\n }", "title": "" }, { "docid": "9ee2517477d85724bfdd60cdb3b99ed5", "score": "0.6093257", "text": "public function getRepository()\n {\n return $this->em->getRepository('AppBundle:Build');\n }", "title": "" }, { "docid": "4cb457c721fdd3e05a5cc6a6fd7ab8f9", "score": "0.60842514", "text": "public function getRepository()\n {\n return $this->em->getRepository('AppBundle:TypeFile');\n }", "title": "" }, { "docid": "75971338cfc8239dfba38cc90f9323ca", "score": "0.6053127", "text": "public function getRepository(){\n\t\t$beginQuery = \"\";\n\t\tif (!is_file(Context::get()->getBasePath(self::FILES_DB))){\n\t\t\t\n\t\t\t$beginQuery = file_get_contents( Context::get()->getBasePath(self::FILES_CREATE_QUERY) );\n\t\t}\n\t\t\n\t\t$repository = new SQLiteRepository(new SQLiteDynamicModelConfiguration(\"files\"), 'sqlite:'.Context::get()->getBasePath(self::FILES_DB), $beginQuery );\n\t\t$repository->getModelConfiguration()->setPrimaryKeyFieldName(\"guid\");\n\t\t$repository->getModelConfiguration()->setIdGeneration(\"guid\");\n\t\t\n\t\treturn $repository;\n\t}", "title": "" }, { "docid": "5798cc109da07a1cdc2dbaa03cdb4139", "score": "0.6050039", "text": "public function getGroupRepository(){\n if(null === $this->groupRepository)\n $this->groupRepository = $this->getEntityManager()->getRepository('\\Account\\Entity\\Group');\n return $this->groupRepository;\n }", "title": "" }, { "docid": "a12946fea193db627871d2ea10653e7e", "score": "0.60419595", "text": "protected function getPageRepository() {\n\t\treturn $GLOBALS['TSFE']->sys_page;\n\t}", "title": "" }, { "docid": "440590de0bade44b2b77d875c34bc553", "score": "0.6033614", "text": "protected function registerRepository()\r\n {\r\n $this->app->singleton('entity.repository', function($app){\r\n return new DatabaseEntityRepository($app['db']);\r\n });\r\n }", "title": "" }, { "docid": "6aa0512104a7cf684cb900f2889195c0", "score": "0.60327095", "text": "protected function getBackendUserGroupRepository2Service()\n {\n $this->services['TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Repository\\\\BackendUserGroupRepository'] = $instance = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\BackendUserGroupRepository::class, ($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager'] ?? $this->getObjectManagerService()));\n\n $instance->injectPersistenceManager(($this->services['TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager'] ?? $this->getPersistenceManagerService()));\n $instance->initializeObject();\n\n return $instance;\n }", "title": "" }, { "docid": "7ceca99b7d3ebb181a32c63e83c0ff91", "score": "0.6025499", "text": "public function getPaymentMethodRepository()\r\n {\r\n return new PaymentMethodRepository();\r\n }", "title": "" }, { "docid": "341aff11e1358230e126b6208980cabe", "score": "0.60106194", "text": "public static function getChannelRepository()\n {\n if (! isset(static::$channelRepository)) {\n throw new \\Exception('The ChannelRepository is not set.');\n }\n\n return static::$channelRepository;\n }", "title": "" }, { "docid": "2f771a6ecffef5919a4be34f6bf90358", "score": "0.59976095", "text": "protected function setRepository()\n {\n $this->repository = $this->_container()->get('pi_app_admin.repository');\n }", "title": "" } ]
fbd3e4275ab66a553c4c4c721ceab1bd
Helper function for asserting structure of parsed node
[ { "docid": "dc6955763416c53ba3bb74221f16fd73", "score": "0.0", "text": "public function assertCoffeeNode($test, Twig_Node $node)\n {\n $this->assertInstanceOf('TwigCoffee_Node', $node);\n\n foreach (array('minify', 'bare') as $attr) {\n if (isset($test[$attr])) {\n $this->assertEquals($test[$attr], $node->getAttribute($attr));\n }\n }\n\n if (isset($test['script'])) {\n $this->assertEquals(\n trim($test['script']),\n trim($node->getAttribute('script'))\n );\n }\n }", "title": "" } ]
[ { "docid": "65448dab6d65cf83b410f31a00956f6a", "score": "0.57769746", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->printableNewAnonClassNode->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "421090da106554eca970eae32e47274c", "score": "0.57590437", "text": "public function isValidNode();", "title": "" }, { "docid": "90d715967568212366e57e775169c089", "score": "0.5748848", "text": "public function testGetType0()\n{\n\n $actual = $this->printableNewAnonClassNode->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "b0921359362fa47c9113455f14e68950", "score": "0.5677518", "text": "public function test_accessing() {\n $this->\n assert_equal($this->entity->__type, 'Campaign')->\n assert_equal($this->nested_entity->__type, 'TestType')->\n assert_true((boolean) $this->entity->__type('NewType'))->\n assert_equal($this->entity->__type, 'NewType')->\n assert_class('SoapVar', $this->entity->__value);\n }", "title": "" }, { "docid": "171ee549cd2968f3247408ae7732b927", "score": "0.55674696", "text": "function _checkIdentical($xml, $value, $name, $errormessage){\n $nodename = dom_import_simplexml($xml)->nodeName;\n switch($nodename){\n case 'object':\n if (isset($xml['class'])) {\n $this->assertInstanceOf((string)$xml['class'], $value, $name.': not a '.(string)$xml['class'].' object'.$errormessage);\n } else {\n $this->assertTrue(is_object($value), $name.': not an object'.$errormessage);\n }\n\n foreach ($xml->children() as $child) {\n if(isset($child['property'])){\n $n = (string)$child['property'];\n $v = $value->$n;\n }elseif(isset($child['p'])){\n $n = (string)$child['p'];\n $v = $value->$n;\n }elseif(isset($child['method'])){\n $n = (string)$child['method'];\n if(preg_match('/\\(\\)$/', $n)) {\n $n = substr($n,0,-2);\n }\n $n=trim($n);\n $v = $value->$n();\n }elseif(isset($child['m'])){\n $n = (string)$child['m'];\n if(preg_match('/\\(\\)$/', $n)) {\n $n = substr($n,0,-2);\n }\n $n=trim($n);\n $v = $value->$n();\n }else{\n trigger_error('no method or attribute on '.(dom_import_simplexml($child)->nodeName), E_USER_WARNING);\n continue;\n }\n $this->_checkIdentical($child, $v, $name.'->'.$n,$errormessage);\n }\n return true;\n\n case 'array':\n $this->assertInternalType('array', $value, $name.': not an array'.$errormessage);\n if(trim((string)$xml) != ''){\n $v = json_decode((string)$xml, true);\n if ($v === null || !is_array($v)) {\n $this->fail(\"invalid php array syntax \".(string)$xml);\n return false;\n }\n $this->assertEquals($v,$value,'negative test on '.$name.': '.$errormessage);\n }else{\n $key=0;\n foreach ($xml->children() as $child) {\n if(isset($child['key'])){\n $n = (string)$child['key'];\n if(is_numeric($n))\n $key = intval($n);\n }else{\n $n = $key ++;\n }\n $this->assertTrue(array_key_exists($n,$value),$name.'['.$n.'] doesn\\'t exist arrrg'.$errormessage);\n $v = $value[$n];\n $this->_checkIdentical($child, $v, $name.'['.$n.']',$errormessage);\n }\n }\n return true;\n\n case 'string':\n $this->assertInternalType('string', $value, $name.': not a string'.$errormessage);\n if(isset($xml['value'])){\n $this->assertEquals((string)$xml['value'],$value, $name.': bad value. '.$errormessage);\n }\n return true;\n case 'int':\n case 'integer':\n $this->assertTrue(is_integer($value), $name.': not an integer ('.$value.') '.$errormessage);\n if (isset($xml['value'])) {\n $this->assertEquals(intval((string)$xml['value']),$value, $name.': bad value. '.$errormessage);\n }\n return true;\n case 'float':\n case 'double':\n $this->assertInternalType('float', $value,$name.': not a float ('.$value.') '.$errormessage);\n if(isset($xml['value'])){\n $this->assertEquals( floatval((string)$xml['value']),$value,$name.': bad value. '.$errormessage);\n }\n return true;\n case 'boolean':\n $this->assertInternalType('boolean', $value,$name.': not a boolean ('.$value.') '.$errormessage);\n if(isset($xml['value'])){\n $v = ((string)$xml['value'] == 'true');\n $this->assertEquals($v ,$value, $name.': bad value. '.$errormessage);\n }\n return true;\n case 'null':\n $this->assertNull($value, $name.': not null ('.$value.') '.$errormessage);\n return true;\n case 'notnull':\n $this->assertNotNull($value, $name.' is null'.$errormessage);\n return true;\n case 'resource':\n $this->assertInternalType('resource', $value,$name.': not a resource'.$errormessage);\n return true;\n default:\n $this->fail(\"_checkIdentical: balise inconnue \".$nodename.$errormessage);\n return false;\n }\n }", "title": "" }, { "docid": "5da7d57b7ee54913b7473d6057971158", "score": "0.55365556", "text": "#[@test]\n public function withOne() {\n $this->name('Node', 'xml.Node');\n $this->assertConversion(\n 'with ($a= new xml.Node(\"root\")) { $a.setContent($c); }',\n 'with ($a= new Node(\"root\")); { $a->setContent($c); }',\n SourceConverter::ST_FUNC_BODY\n );\n }", "title": "" }, { "docid": "07954244c86b108c123b0abda07081a6", "score": "0.55308294", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->preDec->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "b7cdd2da08d327fc8486d84e7da3108c", "score": "0.55067635", "text": "public function testNodeFunctionsReturnGtObjects() {\n\t\t$objectsThatShouldBeElements = [];\n\t\t$document = new HTMLDocument(Helper::HTML);\n\t\t$h1 = $document->querySelector(\"h1\");\n\t\t$objectsThatShouldBeElements[\"h1\"] = $h1;\n\t\t$objectsThatShouldBeElements[\"h1Clone\"] = $h1->cloneNode(true);\n\t\t$objectsThatShouldBeElements[\"parent\"] = $h1->parentNode;\n\t\t$objectsThatShouldBeElements[\"firstChild\"] = $document->body->firstChild;\n\n\t\t$otherDocument = new HTMLDocument();\n\t\t$otherDiv = $otherDocument->createElement(\"div\");\n\t\t$objectsThatShouldBeElements[\"imported\"] = $document->importNode($otherDiv);\n\t\t$objectsThatShouldBeElements[\"imported-appended\"] = $document->appendChild(\n\t\t\t$objectsThatShouldBeElements[\"imported\"]);\n\n\t\tforeach($objectsThatShouldBeElements as $key => $object) {\n\t\t\t$this->assertInstanceOf(\n\t\t\t\tElement::class,\n\t\t\t\t$object,\n\t\t\t\t\"$key instance of \" . gettype($object));\n\t\t}\n\t}", "title": "" }, { "docid": "875f7bcd7e23e5363865f540bbe19140", "score": "0.53937095", "text": "#[@test]\n public function withMore() {\n $this->name('Node', 'xml.Node');\n $this->assertConversion(\n 'with ($a= new xml.Node(\"root\"), $b= $a.addChild(\"doc\")) { $b.setContent($c); }',\n 'with ($a= new Node(\"root\"), $b= $a->addChild(\"doc\")); { $b->setContent($c); }',\n SourceConverter::ST_FUNC_BODY\n );\n }", "title": "" }, { "docid": "cc7ac49bd30485d32c03fb4d8d82c4be", "score": "0.53832287", "text": "abstract public function validateNode(array &$form);", "title": "" }, { "docid": "c6bf6cd9d03c4718885d5390b0f700a6", "score": "0.5354318", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->propertyProperty->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "17783897a2204561b4d80aa84df8a84e", "score": "0.53370726", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->label->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e48dee729c09cdc4259d66716645c017", "score": "0.5316767", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->switch_->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "92cc96b757c810ba4f055ce16d62afae", "score": "0.5301782", "text": "abstract function assertToken($tokenStr);", "title": "" }, { "docid": "c2d30a612c4b835b069f702c47ea3b09", "score": "0.5268514", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->lNumber->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "6328aca0f9fe6b02cc4a95c25951da0c", "score": "0.52298665", "text": "public function testGetSubNodeNames0()\n{\n\n $actual = $this->dNumber->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "97137bfcc35cab99243c836ba4033d1e", "score": "0.52204394", "text": "public function testLoad()\n {\n $dom = NodeFactory::load('<b>Test</b>');\n $this->assertInstanceOf(NodeContract::class, $dom);\n }", "title": "" }, { "docid": "ef04c05427833baa10360eb0fee4e985", "score": "0.5217268", "text": "public function testDump(): void\n {\n $node = new ClassNode('MyObject', 1);\n $node->addProperty(new PropertyNode('stringProp', 'public', new ScalarNode('string', 'value')));\n $node->addProperty(new PropertyNode('intProp', 'protected', new ScalarNode('int', 1)));\n $node->addProperty(new PropertyNode('floatProp', 'protected', new ScalarNode('float', 1.1)));\n $node->addProperty(new PropertyNode('boolProp', 'protected', new ScalarNode('bool', true)));\n $node->addProperty(new PropertyNode('nullProp', 'private', new ScalarNode('null', null)));\n $arrayNode = new ArrayNode([\n new ArrayItemNode(new ScalarNode('string', ''), new SpecialNode('too much')),\n new ArrayItemNode(new ScalarNode('int', 1), new ReferenceNode('MyObject', 1)),\n ]);\n $node->addProperty(new PropertyNode('arrayProp', 'public', $arrayNode));\n\n $formatter = new HtmlFormatter();\n $result = $formatter->dump($node);\n\n // Check important classnames\n $this->assertStringContainsString('class=\"cake-debug-const\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-string\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-number\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-array-items\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-array-item\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-array\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-object\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-object-props\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-special\"', $result);\n $this->assertStringContainsString('class=\"cake-debug-ref\"', $result);\n\n // Check valid HTML\n $dom = new DomDocument();\n $dom->loadHtml($result);\n $this->assertGreaterThan(0, count($dom->childNodes));\n\n $expected = <<<TEXT\nobject(MyObject) id:1 {\n stringProp =&gt; &#039;value&#039;\n protected intProp =&gt; (int) 1\n protected floatProp =&gt; (float) 1.1\n protected boolProp =&gt; true\n private nullProp =&gt; null\n arrayProp =&gt; [\n &#039;&#039; =&gt; too much,\n (int) 1 =&gt; object(MyObject) id: 1 {},\n ]\n}\nTEXT;\n $this->assertStringContainsString($expected, strip_tags($result));\n }", "title": "" }, { "docid": "77559503a16f2c57cb47afcd9a3bef26", "score": "0.5191142", "text": "public function testNodeAttributes() {\n // Create node with single quotation mark title to ensure it does not get\n // escaped more than once.\n $node = $this->drupalCreateNode([\n 'type' => 'article',\n 'title' => $this->randomMachineName(8) . \"'\",\n ]);\n $node_uri = $node->toUrl('canonical', ['absolute' => TRUE])->toString();\n\n $this->drupalGet($node->toUrl());\n // Inspects RDF graph output.\n // Node type.\n $expected_value = [\n 'type' => 'uri',\n 'value' => 'http://rdfs.org/sioc/ns#Item',\n ];\n $this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(), $this->baseUri, $node_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Node type found in RDF output (sioc:Item).');\n // Node type.\n $expected_value = [\n 'type' => 'uri',\n 'value' => 'http://xmlns.com/foaf/0.1/Document',\n ];\n $this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(), $this->baseUri, $node_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Node type found in RDF output (foaf:Document).');\n // Node title.\n $expected_value = [\n 'type' => 'literal',\n 'value' => $node->getTitle(),\n 'lang' => 'en',\n ];\n $this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(), $this->baseUri, $node_uri, 'http://purl.org/dc/terms/title', $expected_value), 'Node title found in RDF output (dc:title).');\n // Node date (date format must be UTC).\n $expected_value = [\n 'type' => 'literal',\n 'value' => \\Drupal::service('date.formatter')->format($node->getCreatedTime(), 'custom', 'c', 'UTC'),\n 'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime',\n ];\n $this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(), $this->baseUri, $node_uri, 'http://purl.org/dc/terms/date', $expected_value), 'Node date found in RDF output (dc:date).');\n // Node date (date format must be UTC).\n $expected_value = [\n 'type' => 'literal',\n 'value' => \\Drupal::service('date.formatter')->format($node->getCreatedTime(), 'custom', 'c', 'UTC'),\n 'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime',\n ];\n $this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(), $this->baseUri, $node_uri, 'http://purl.org/dc/terms/created', $expected_value), 'Node date found in RDF output (dc:created).');\n }", "title": "" }, { "docid": "28f2071d029933ec9de1b0589b3abc0e", "score": "0.5133585", "text": "public function test_parse_general_use_case() {\n\n $rawText = <<<RECIPE\nMore text over\n\nmultiple paragraphs\n\n=== Ingredients ===\nDummy Ingredient\n\n=== Tips ===\n - This helps\n - So does this\n - This too\n\n=== Method ===\n- Do this\n- Then this, but this\n - Subtask 1\n - Subtask 2\nRECIPE;\n\n $expectedData = array(\n array(\n 'item' => 'This helps',\n 'subitems' => null\n ),\n array(\n 'item' => 'So does this',\n 'subitems' => array(\n array(\n 'item' => 'This too',\n 'subitems' => null\n )\n )\n )\n );\n\n $this->component->setRawText($rawText);\n $this->component->parse();\n $this->assertEquals($expectedData, $this->component->getParsedData());\n }", "title": "" }, { "docid": "e5a1c9a2592e99066aa48f34d2ac1b8c", "score": "0.512261", "text": "public function testGetFoundNodes0()\n{\n\n $actual = $this->findingVisitor->getFoundNodes();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "68a9ae84fe54f478d0d19a15251ca326", "score": "0.50868523", "text": "public function testTypeOfNode_Fail()\n {\n \t$file = $this->getMock('Q\\Fs_Node', array('__toString', 'path'), array(''), 'StrangeFsNode', array(), '', false);\n \t$file->expects($this->any())->method('__toString')->will($this->returnValue('/something'));\n \t$file->expects($this->any())->method('path')->will($this->returnValue('/something'));\n \t\n \t$this->setExpectedException('Q\\Exception', \"Unable to determine type of '/something': Class 'StrangeFsNode' is not any of the known types\");\n \tFs::typeOfNode($file);\n }", "title": "" }, { "docid": "98903fbc2eac3864acab8aa43685da1b", "score": "0.50762653", "text": "public function test_parse_with_extra_tips() {\n\n $rawText = <<<RECIPE\nMore text over\n\nmultiple paragraphs\n\n=== Ingredients ===\nDummy Ingredient\n\n=== Tips ===\n - This helps\n - So does this\n - This too\n\n=== Tips for Test ===\n- Another method item\n - And another\n\n=== Random for Random ===\nTest\nRECIPE;\n\n $expectedData = array(\n array(\n 'item' => 'This helps',\n 'subitems' => null\n ),\n array(\n 'item' => 'So does this',\n 'subitems' => array(\n array(\n 'item' => 'This too',\n 'subitems' => null\n )\n )\n )\n );\n\n $this->setExpectedException('InvalidArgumentException');\n $this->assertEquals($expectedData, $this->component->parse($rawText));\n }", "title": "" }, { "docid": "c4259aeef34a6c308972b3338736c350", "score": "0.506859", "text": "public function testIsThereAnySyntaxError(): void\n {\n $obj = new Skeleton();\n $this->assertInternalType('object', $obj);\n }", "title": "" }, { "docid": "f2c5e7d3f453da06b439fd493776de5a", "score": "0.50580853", "text": "public function testThreeArgNotNodeConstructorFail()\n {\n $this->expectException('Arguments must be of type Node');\n $statement = new Statement($this->source->__toString(),\n $this->predicate,\n $this->target);\n }", "title": "" }, { "docid": "9c77372742b25c97fc0a1786c544eda5", "score": "0.50092274", "text": "#[@test]\n public function instanceOfVariable() {\n $this->assertEquals(array(new DynamicInstanceOfNode(array(\n 'expression' => new VariableNode('a'),\n 'variable' => 'type'\n ))), $this->parse('$a instanceof $type;'));\n }", "title": "" }, { "docid": "f7ec13457f9d67a6602d7508290e1acc", "score": "0.49985245", "text": "public function testInValidConstraints()\n {\n $xml = '<query id=\"test\">\n <test>\n <primary-key>\n <column>type_code</column>\n </primary-key>\n </test></query>';\n\n $exception = FALSE;\n try {\n $doc = new DomDocument();\n $doc->loadXML($xml);\n $parent = $doc->getElementsByTagName('test')->item(0);\n $result = DALSchemaParser::validateConstraints($parent);\n } catch (DALParserException $e) {\n $exception = TRUE;\n }\n\n PHPUnit_Framework_Assert::assertTrue($exception);\n\n }", "title": "" }, { "docid": "d468302b9699684be9454a95d981de62", "score": "0.49933004", "text": "public function testValidConstraints()\n {\n $xml = '<query id=\"test\">\n <test>\n <primary-key name=\"asset_type_pk\">\n <column>type_code</column>\n </primary-key>\n <foreign-key foreign-table=\"asset_type\" name=\"asset_type_fk1\" on-delete=\"CASCADE\">\n <column references=\"type_code\">parent_type</column>\n </foreign-key>\n <unique name=\"unique\">\n <column>col2</column>\n </unique>\n </test></query>';\n\n $exception = FALSE;\n try {\n $doc = new DomDocument();\n $doc->loadXML($xml);\n $parent = $doc->getElementsByTagName('test')->item(0);\n $result = DALSchemaParser::validateConstraints($parent);\n } catch (DALParserException $e) {\n PHPUnit_Framework_Assert::fail($e->getMessage());\n }\n\n PHPUnit_Framework_Assert::assertFalse($exception);\n\n }", "title": "" }, { "docid": "dcc0f6369940a6ea71c3acfd54e55759", "score": "0.49907494", "text": "public function assertEqualXMLStructure(\\DOMElement $expectedElement, $checkAttributes = false) {\n $this->callAssertMethod(__FUNCTION__, [\n 'expected' => $expectedElement,\n 'options' => [\n $checkAttributes,\n ],\n ]);\n }", "title": "" }, { "docid": "6bf27fc395e161e60f59b64a98da24a8", "score": "0.49788296", "text": "protected function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = FALSE, $message = '') {\n\t\treturn self::fail('@TODO: assertEqualXMLStructure compatibility method is not implemented. ' . $message);\n\t}", "title": "" }, { "docid": "f1b03ecc0749212824bf1c808117428e", "score": "0.49720433", "text": "public function test_getNodeValues_return_no_nodes_as_they_are_not_leaf_nodes()\n {\n // are actually leaf nodes since they contain an extra metadata node\n $result = (new JsonParser)->getNodeValues('labour_type');\n\n $this->assertIsArray($result);\n $this->assertEquals([], $result);\n }", "title": "" }, { "docid": "1748db596fe394e1f712423c57e48a8c", "score": "0.49377093", "text": "public function visit(Node $node);", "title": "" }, { "docid": "9a656532ee4b140620ad0ac787c42bd0", "score": "0.49119326", "text": "private function isNodeOffset($offset) {\n if (is_int($offset) || ctype_digit((string)$offset)) {\n return TRUE;\n } elseif ($this->isAttributeOffset($offset)) {\n return FALSE;\n }\n throw new \\InvalidArgumentException(\n 'Invalid offset. Use integer for child nodes and strings for attributes.'\n );\n }", "title": "" }, { "docid": "125088c097cca30399e8f722148763eb", "score": "0.4883125", "text": "function dom_import_simplexml($node) {}", "title": "" }, { "docid": "cfe73476880a8a6d292f0ff374d2d360", "score": "0.48562267", "text": "function deal_node( Node $node )\n{\n return $node->val;\n}", "title": "" }, { "docid": "d40f4842f3995d10c885f1b44e40241b", "score": "0.48487693", "text": "#[@test]\n public function complexXPathAnnotation() {\n $this->assertEquals(\n array(0 => array('fromXml' => array('xpath' => '/parent[@attr=\"value\"]/child[@attr1=\"val1\" and @attr2=\"val2\"]')), 1 => array()),\n $this->parse(\"#[@fromXml(xpath= '/parent[@attr=\\\"value\\\"]/child[@attr1=\\\"val1\\\" and @attr2=\\\"val2\\\"]')]\")\n );\n }", "title": "" }, { "docid": "c681bdd099e62542d84152e4ea73e7fd", "score": "0.48414534", "text": "abstract protected function assertEndpointBaseStructure(TestResponse $response);", "title": "" }, { "docid": "a7dcac873a9d384b45fcb0674d0bc727", "score": "0.48409462", "text": "public function testSimpleTypeElementWhenAddedToElementElement(): void\n {\n $parent = new ElementElement();\n $parent->setTypeElement($this->sut);\n self::assertTrue($this->sut->hasParent());\n self::assertSame($parent, $this->sut->getParent());\n }", "title": "" }, { "docid": "8b7dce6bf047ad1268db655804bc9dbb", "score": "0.482686", "text": "public function testTypeOfNode_Description()\n {\n \t$this->assertEquals('file', Fs::typeOfNode($this->getMock('Q\\Fs_File', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('directory', Fs::typeOfNode($this->getMock('Q\\Fs_Dir', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('block device', Fs::typeOfNode($this->getMock('Q\\Fs_Block', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('character device', Fs::typeOfNode($this->getMock('Q\\Fs_Char', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('named pipe', Fs::typeOfNode($this->getMock('Q\\Fs_Fifo', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('socket', Fs::typeOfNode($this->getMock('Q\\Fs_Socket', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('unknown filetype', Fs::typeOfNode($this->getMock('Q\\Fs_Unknown', array(), array(), '', false), Fs::DESCRIPTION));\n \t\n \t$this->assertEquals('broken symlink', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Broken', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a file', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_File', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a directory', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Dir', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a block device', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Block', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a character device', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Char', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a named pipe', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Fifo', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to a socket', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Socket', array(), array(), '', false), Fs::DESCRIPTION));\n \t$this->assertEquals('symlink to an unknown filetype', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Unknown', array(), array(), '', false), Fs::DESCRIPTION));\n\t}", "title": "" }, { "docid": "0f4a42dc1ae1f864dda535a7e1384a9a", "score": "0.4806915", "text": "public function testParseMicroData() {\n $config = $this->getConfig('person.html');\n $microdata = new MicrodataPhp($config);\n $data = $microdata->obj();\n\n $name = $data->items[0]->properties['name'][0];\n\n $this->assertEquals($name, \"Jane Doe\", \"The name matches.\");\n }", "title": "" }, { "docid": "87bb3a093d0b8244cc4394ce1f78bf2d", "score": "0.479664", "text": "private function parse_node() {\n if($this->nodeType !== XMLReader::ELEMENT) return;\n \n switch($this->name) {\n case 'data': \n return base64_decode($this->getNodeText());\n break;\n case 'real':\n return floatval($this->getNodeText());\n break;\n case 'string':\n return $this->getNodeText();\n break;\n case 'integer':\n return intval($this->getNodeText());\n break;\n case 'date':\n return $this->getNodeText();\n break;\n case 'true':\n return true;\n break;\n case 'false':\n return false;\n break;\n case 'array':\n return $this->parse_array();\n break;\n case 'dict':\n return $this->parse_dict();\n break;\n default:\n // per DTD, the above is the only valid types\n throw new Exception(sprintf(\"Not a valid plist. %s is not a valid type\", $this->name), 4);\n } \n }", "title": "" }, { "docid": "89f352304356b201c0ef4e9c2e7f2c3c", "score": "0.47773588", "text": "public function testBuildInvalidDataSimpleXml(): void\n {\n $this->expectException(XmlException::class);\n $input = '<derp';\n Xml::build($input, ['return' => 'simplexml']);\n }", "title": "" }, { "docid": "a03c34dae8364f76defb4d7ef675ddb4", "score": "0.4774114", "text": "public function testParseWithViewsRealtyPult()\n {\n\n $onItemSuccessWithViews = function ($item) {\n\n $this->assertInternalType('string', $item->id);\n\n $result = new \\stdClass();\n\n $result->url = 'http://your-site.ru/item-' . $item->id;\n $result->views = 15;\n\n return $result;\n };\n\n $onEnd = function ($report) {\n\n $this->assertInternalType('object', $report);\n $this->assertInternalType('object', $report->statictics);\n\n $this->assertInternalType('string', $report->location);\n\n $this->assertEquals(2, $report->statictics->total);\n $this->assertEquals(2, $report->statictics->success);\n $this->assertEquals(0, $report->statictics->rejected);\n $this->assertEquals(0, $report->statictics->errors);\n\n $reportObject = simplexml_load_file($report->location);\n\n $this->assertEquals(2, count($reportObject->object));\n\n $this->assertEquals(679511, (string)$reportObject->object[0]->attributes()['id'][0]);\n $this->assertEquals('http://your-site.ru/item-679511', (string)$reportObject->object[0]->url);\n $this->assertEquals(15, (string)$reportObject->object[0]->views);\n $this->assertNotNull($reportObject->object[0]->error);\n $this->assertNotNull($reportObject->object[0]->similarUrl);\n $this->assertNotNull($reportObject->object[0]->rejectReason);\n\n $this->assertEquals(679512, (string)$reportObject->object[1]->attributes()['id'][0]);\n $this->assertEquals('http://your-site.ru/item-679512', (string)$reportObject->object[1]->url);\n $this->assertEquals(15, (string)$reportObject->object[1]->views);\n $this->assertNotNull($reportObject->object[1]->error);\n $this->assertNotNull($reportObject->object[1]->similarUrl);\n $this->assertNotNull($reportObject->object[1]->rejectReason);\n };\n\n $onError = function ($error) {\n\n $this->assertEquals('I\\'m here!', 'Should not be here!');\n };\n\n $options = new \\stdClass();\n $options->xmlFeedUrl = 'https://realtypult.ru/xml/import-feed-realtypult.xml';\n $options->reportFileLocation = tempnam(sys_get_temp_dir(), 'xml-report');\n $options->format = 'realtypult';\n $options->onItem = $onItemSuccessWithViews;\n $options->onEnd = $onEnd;\n $options->onError = $onError;\n\n $importer = new \\RealtyPultImporter($options);\n\n $importer->run();\n }", "title": "" }, { "docid": "438e2f4535f0e39121f0017f3a73d112", "score": "0.47715834", "text": "public function testTextFromStart()\n {\n $html = <<<HTML\n<html>\n<body>\na &amp;\n<div>\n 1\n <div>b</div>\n 2\n</div>\nc\n</body>\n</html>\nHTML;\n\n $document = Parser::load($html);\n\n static::assertEquals(1, $document->childNodes->length);\n\n $htmlNode = $document->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $htmlNode);\n static::assertEquals('html', $htmlNode->nodeName);\n static::assertEquals(1, $htmlNode->childNodes->length);\n static::assertEquals(0, $htmlNode->attributes->length);\n\n $bodyNode = $htmlNode->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $bodyNode);\n static::assertEquals('body', $bodyNode->nodeName);\n static::assertEquals(3, $bodyNode->childNodes->length);\n static::assertEquals(0, $bodyNode->attributes->length);\n\n $textNode1 = $bodyNode->childNodes->item(0);\n\n static::assertInstanceOf('DOMText', $textNode1);\n static::assertEquals(PHP_EOL . 'a &amp;' . PHP_EOL, $textNode1->textContent);\n\n $divNode = $bodyNode->childNodes->item(1);\n\n static::assertInstanceOf('DOMElement', $divNode);\n static::assertEquals(3, $divNode->childNodes->length);\n static::assertEquals(0, $divNode->attributes->length);\n\n $innerNode = $divNode->childNodes->item(1);\n\n static::assertInstanceOf('DOMElement', $innerNode);\n static::assertEquals(1, $innerNode->childNodes->length);\n static::assertEquals(0, $innerNode->attributes->length);\n static::assertEquals('b', $innerNode->textContent);\n\n $textNode2 = $bodyNode->childNodes->item(2);\n\n static::assertInstanceOf('DOMText', $textNode2);\n static::assertEquals(PHP_EOL . 'c' . PHP_EOL, $textNode2->textContent);\n }", "title": "" }, { "docid": "45b492b91f55bfb87537e426933c8842", "score": "0.47676483", "text": "public function __construct(stdClass $node) {\n $this->node = $node;\n }", "title": "" }, { "docid": "11bb653612de84fcc92101dc5ac129e4", "score": "0.47627604", "text": "public function testParse()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "fa2a5fcfddd1ec6e74f29b3deb545033", "score": "0.4758501", "text": "abstract public function assert(string $input): mixed;", "title": "" }, { "docid": "b1a16419cba8d39622207bde84e80a1c", "score": "0.47307667", "text": "public function test_accessing() {\n $this->asserts->accessing->\n assert_read($this->object, $r = array(\n 'construct' => 'value',\n 'to_camel_case' => 'camelValue',\n 'test_date' => Time::DateTime('20101231'),\n 'update_with' => 'update value',\n 'test_nested_object' => Service_Google_AdWords::Entity('', array('key' => 'value')),\n 'test_nested_array' => array ('to_camel_case' => 'value')\n ))->\n assert_write($this->object, array('new_key' => 'new value'));\n }", "title": "" }, { "docid": "fd1900e665f3e2b492fca7476ed94b60", "score": "0.47183785", "text": "function dump_html_tree($node, $show_attr=true, $deep=0)\r\n{\r\n $node->dump($node);\r\n}", "title": "" }, { "docid": "a43ae1dd97b0415a1ca74f963a607451", "score": "0.4717029", "text": "public function testGet_post_templates36()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == true (line 1126)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "b68fdbb131a3d783bf42d1430f67f8a9", "score": "0.47093314", "text": "public function dump($node) {\n if ($node instanceof Node) {\n $r = $node->getType() . '(';\n\n foreach ($node->getSubNodeNames() as $key) {\n $r .= \"\\n \" . $key . ': ';\n\n $value = $node->$key;\n if (null === $value) {\n $r .= 'null';\n } elseif (false === $value) {\n $r .= 'false';\n } elseif (true === $value) {\n $r .= 'true';\n } elseif (is_scalar($value)) {\n if ('flags' === $key || 'newModifier' === $key) {\n $r .= $this->dumpFlags($value);\n } else if ('type' === $key && $node instanceof Include_) {\n $r .= $this->dumpIncludeType($value);\n } else if ('type' === $key\n && ($node instanceof Use_ || $node instanceof UseUse || $node instanceof GroupUse)) {\n $r .= $this->dumpUseType($value);\n } else {\n $r .= $value;\n }\n } else {\n $r .= str_replace(\"\\n\", \"\\n \", $this->dump($value));\n }\n }\n\n if ($this->dumpComments && $comments = $node->getAttribute('comments')) {\n $r .= \"\\n comments: \" . str_replace(\"\\n\", \"\\n \", $this->dump($comments));\n }\n } elseif (is_array($node)) {\n $r = 'array(';\n\n foreach ($node as $key => $value) {\n $r .= \"\\n \" . $key . ': ';\n\n if (null === $value) {\n $r .= 'null';\n } elseif (false === $value) {\n $r .= 'false';\n } elseif (true === $value) {\n $r .= 'true';\n } elseif (is_scalar($value)) {\n $r .= $value;\n } else {\n $r .= str_replace(\"\\n\", \"\\n \", $this->dump($value));\n }\n }\n } elseif ($node instanceof Comment) {\n return $node->getReformattedText();\n } else {\n throw new \\InvalidArgumentException('Can only dump nodes and arrays.');\n }\n\n return $r . \"\\n)\";\n }", "title": "" }, { "docid": "7613a34473930f4a05c8ab63a0eeccfa", "score": "0.4706626", "text": "public function testParseRawElement()\n {\n $element_hex = '64627567000000000000000400003000';\n\n $property = Property::parseRawElement(hex2bin($element_hex));\n\n $this->assertEquals('dbug', $property->name);\n $this->assertEquals(0x3000, $property->value);\n }", "title": "" }, { "docid": "61bf62f1dd7e7bf994b45c96cb8902a1", "score": "0.46983308", "text": "public function testComplexHierarchy() {\n $root = new TreeNode();\n $story_7 = $this->GivenANodeInAparent($root);\n $task_5 = $this->GivenANodeInAparent($story_7);\n $risk_11 = $this->GivenANodeInAparent($task_5);\n $story_6 = $this->GivenANodeInAparent($root);\n \n $visitor = $this->GivenAVisitor($root);\n \n $this->assertNodeHasState($visitor, $story_7, array(self::STATE_NODE));\n $this->assertNodeHasState($visitor, $task_5, array(self::STATE_PIPE, self::STATE_LAST));\n $this->assertNodeHasState($visitor, $risk_11, array(self::STATE_PIPE, self::STATE_BLANK, self::STATE_LAST));\n $this->assertNodeHasState($visitor, $story_6, array(self::STATE_LAST));\n }", "title": "" }, { "docid": "9a6a4139e9f0febf809a42ea0f450011", "score": "0.46954292", "text": "#[@test]\n public function typedArray() {\n $this->assertEquals(array(new ArrayNode(array(\n 'values' => array(\n new IntegerNode('1'),\n new IntegerNode('2'),\n new IntegerNode('3'),\n ),\n 'type' => new TypeName('int[]'),\n ))), $this->parse('\n new int[] {1, 2, 3};\n '));\n }", "title": "" }, { "docid": "0b0b3c5652ae51d6a7771da392c4abfe", "score": "0.46909124", "text": "public function testGetType0()\n{\n\n $actual = $this->label->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "82f9aaffa22d87fc9963abf0df3c555c", "score": "0.46871495", "text": "function load($node) {\n $this->name = '';\n $this->uri = '';\n $this->email = '';\n if ($node->hasChildNodes()) {\n for ($i = 0; $i < $node->childNodes->length; $i++) {\n $childNode = $node->childNodes->item($i);\n if ($childNode->nodeType == XML_ELEMENT_NODE &&\n in_array($childNode->nodeName, array('name', 'uri', 'email'))) {\n if (method_exists($childNode, 'valueOf')) {\n $buffer = $childNode->valueOf();\n } else {\n $buffer = $childNode->nodeValue;\n }\n switch ($childNode->nodeName) {\n case 'name' :\n $this->name = $buffer;\n break;\n case 'uri' :\n $this->name = $buffer;\n break;\n case 'email' :\n $this->name = $buffer;\n break;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ba8a3cb3757dc01764690ff14794acef", "score": "0.468704", "text": "#[@test]\n public function untypedArray() {\n $this->assertEquals(array(new ArrayNode(array(\n 'values' => array(\n new IntegerNode('1'),\n new IntegerNode('2'),\n new IntegerNode('3'),\n ),\n 'type' => NULL,\n ))), $this->parse('\n [1, 2, 3];\n '));\n }", "title": "" }, { "docid": "7891d08b54136ccfade60ae6344cd369", "score": "0.46827593", "text": "function visit(Expr\\Part $part);", "title": "" }, { "docid": "247ecd0bb076223fa33a11921cc41fd5", "score": "0.46759608", "text": "#[@test]\n public function arrayValueWithNestedArray() {\n $this->assertEquals(\n array(0 => array('versions' => array(array(3))), 1 => array()),\n $this->parse('#[@versions(array(array(3)))]')\n );\n }", "title": "" }, { "docid": "09e24eba560ea12cf9fd9f236df1c22d", "score": "0.46651313", "text": "public function testSomething() {\n\t\t$this->assert(true);\n\t}", "title": "" }, { "docid": "5dad3736f2ac679ae774ef839f39d91f", "score": "0.46557432", "text": "public function testSyntaxError()\n {\n $var = new LinkTable();\n $this->assertTrue(is_object($var));\n }", "title": "" }, { "docid": "3aab29a346f1717692754162a2471d57", "score": "0.46543416", "text": "public function testTypeOfNode_Description_AlwayFollow()\n {\n \t$this->assertEquals('file', Fs::typeOfNode($this->getMock('Q\\Fs_File', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('directory', Fs::typeOfNode($this->getMock('Q\\Fs_Dir', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('block device', Fs::typeOfNode($this->getMock('Q\\Fs_Block', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('character device', Fs::typeOfNode($this->getMock('Q\\Fs_Char', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('named pipe', Fs::typeOfNode($this->getMock('Q\\Fs_Fifo', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('socket', Fs::typeOfNode($this->getMock('Q\\Fs_Socket', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('unknown filetype', Fs::typeOfNode($this->getMock('Q\\Fs_Unknown', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t\n \t$this->assertEquals('file', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_File', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('directory', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Dir', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('block device', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Block', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('character device', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Char', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('named pipe', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Fifo', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('socket', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Socket', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('unknown filetype', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Unknown', array(), array(), '', false), Fs::DESCRIPTION | Fs::ALWAYS_FOLLOW));\n\t}", "title": "" }, { "docid": "f43d9d0a9c94c750b5e2f630cd3b3342", "score": "0.4653944", "text": "public function test_as_array() {\n $this->assert_equal(\n $this->entity->as_array(),\n array (\n 'construct' => 'value',\n 'testNestedEntity' => $this->nested_value\n )\n );\n }", "title": "" }, { "docid": "c3dd97f8460e1c172c3416d84d19827b", "score": "0.46474242", "text": "public function testValidStructure()\r\n {\r\n //Create a structure to put the container on\r\n $structure = new Structure();\r\n $structure->getDescription(\"Test structure\");\r\n\r\n //assign the structure to the container\r\n $this->container->setStructure($structure);\r\n\r\n //Check that there are no errors on the container\r\n $error = $this->validator->validate($this->container);\r\n $this->assertEquals(0, count($error));\r\n }", "title": "" }, { "docid": "3842be49184ba9751ebdc04064579260", "score": "0.46443865", "text": "public function testGetHtmlCallGraph0()\n{\n\n $actual = $this->twigDataCollector->getHtmlCallGraph();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "638983a0d71962669b7fe0ca97f370a7", "score": "0.4643925", "text": "public function testGet_post_templates5()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == true (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "22186981d799ea09f647cf45fb559aad", "score": "0.46438834", "text": "protected function normalizeNode($node) {\n\tif ($node instanceof PHPParser_Builder) {\n\t return $node->getNode();\n\t} elseif ($node instanceof PHPParser_Node) {\n\t return $node;\n\t}\n\n\tthrow new LogicException('Expected node or builder object');\n }", "title": "" }, { "docid": "e8b427035a0f929eadcaa71ae287e02c", "score": "0.46408918", "text": "public function testGet_post_templates2()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == false (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "d0b2fde5e469a4d85c4189bc5745f90a", "score": "0.46398917", "text": "public function test_getNodeValues_returns_a_single_leaf_node()\n {\n // without any children, making it a leaf node.\n $expected = [\n [\n \"type\" => \"DateTime\",\n \"name\" => \"start_time\",\n \"label\" => \"Start Time\",\n \"clampedTimeReference\" => null,\n \"isRequired\" => true,\n \"value\" => \"2019-02-12T18:00:00+00:00\",\n \"uuid\" => \"f958e764-b0db-4370-8945-8f1a2c2fee49\",\n ]\n ];\n\n $result = (new JsonParser)->getNodeValues('start_time');\n $this->assertIsArray($result);\n $this->assertEquals($expected, $result);\n }", "title": "" }, { "docid": "d140169a6f3f88d202b49b34d2f6f522", "score": "0.46384862", "text": "public function testGet_post_templates1()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == false (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "158e2c1d5e26b15ed6e6b70037ccd355", "score": "0.4635479", "text": "public function test_parse_when_only_one_tip() {\n\n $rawText = <<<RECIPE\nMore text over\n\nmultiple paragraphs\n\n=== Ingredients ===\nDummy Ingredient\n\n=== Method ===\n- Do this\n- Then this, but this\n - Subtask 1\n - Subtask 2\n\n=== Tips ===\n - This helps\n\nRECIPE;\n\n $expectedData = array(\n array(\n 'item' => 'This helps',\n 'subitems' => null\n )\n );\n\n $this->component->setRawText($rawText);\n $this->component->parse();\n $this->assertEquals($expectedData, $this->component->getParsedData());\n }", "title": "" }, { "docid": "4375652ae4d59a413b0ec58af9bf6258", "score": "0.46336973", "text": "public function testGetBlockPrefix0()\n{\n\n $actual = $this->entityType->getBlockPrefix();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "9ccf6247c507428385377d4879c52071", "score": "0.4633106", "text": "#[@test]\n public function sqStringValue() {\n $this->assertEquals(\n array(0 => array('hello' => 'World'), 1 => array()),\n $this->parse(\"#[@hello('World')]\")\n );\n }", "title": "" }, { "docid": "9f60b0e1727d95713364e44b5f04aa9c", "score": "0.46323928", "text": "private function parseNode() {\n if($this->reader->nodeType !== XMLReader::ELEMENT) return;\n \n switch($this->reader->name) {\n case 'data': \n return base64_decode($this->getNodeText());\n break;\n case 'real':\n return floatval($this->getNodeText());\n break;\n case 'string':\n return $this->getNodeText();\n break;\n case 'integer':\n return intval($this->getNodeText());\n break;\n case 'date':\n return $this->getNodeText();\n break;\n case 'true':\n return true;\n break;\n case 'false':\n return false;\n break;\n case 'array':\n return $this->parseArray();\n break;\n case 'dict':\n return $this->parseDict();\n break;\n default:\n // per DTD, the above is the only valid types\n throw new Exception(sprintf(\"Not a valid plist. %s is not a valid type\", $this->name), 4);\n }\t\t\t\n }", "title": "" }, { "docid": "15aaee58e3bf2c4ba010cd1cca03bef8", "score": "0.46313018", "text": "public function testGet_post_templates6()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == true (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "b6970ea26a0cc2bda38b148ad5b69371", "score": "0.46312797", "text": "public function testGet_post_templates7()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == true (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e6779d32cb2b7d15484ed6bc86c489bd", "score": "0.4629995", "text": "public function testXmlConvertedConfigurationAndCompereStructure()\n {\n $actual = $this->reader->readFiles(['actual' => $this->getActualContent()]);\n\n $document = new \\DOMDocument();\n $document->loadXML($this->getExpectedContent());\n\n $expected = $this->converter->getArrayData($document);\n\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "2a9ce46f20979b718a762220b8333e98", "score": "0.4626979", "text": "public function testDTOStructure()\n {\n // test obligatory fields\n $txData = [\n \"rentalFeeSink\" => \"TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35\",\n \"rentalFee\" => 10000000,\n \"parent\" => \"evias\",\n \"newPart\" => \"sdk\",\n ];\n\n $transaction = new NamespaceProvision($txData);\n $transactionNIS = $transaction->toDTO();\n\n $meta = $transactionNIS[\"meta\"];\n $content = $transactionNIS[\"transaction\"];\n\n $this->assertArrayHasKey(\"rentalFeeSink\", $content);\n $this->assertArrayHasKey(\"rentalFee\", $content);\n $this->assertArrayHasKey(\"parent\", $content);\n $this->assertArrayHasKey(\"newPart\", $content);\n\n $expectAccount = \"TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35\";\n $expectParent = \"evias\";\n $expectNewPart = \"sdk\";\n $expectFee = 10000000; // 10 XEM\n\n $this->assertEquals($expectAccount, $content[\"rentalFeeSink\"]);\n $this->assertEquals($expectParent, $content[\"parent\"]);\n $this->assertEquals($expectNewPart, $content[\"newPart\"]);\n $this->assertEquals($expectFee, $content[\"rentalFee\"]);\n }", "title": "" }, { "docid": "38914c7a278fda85a8d0434a6153c8cd", "score": "0.46242923", "text": "public function testGet_post_templates4()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == true (line 1132)\n // if ($this->load_textdomain()) == false (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "53a3394a9526811f7c9040280f93e292", "score": "0.46199045", "text": "public function testCreate()\n {\n /** @var Logo $element */\n $element = $this->createElement('atom:logo');\n static::assertInstanceOf(Logo::class, $element);\n\n $element->setUri('http://example.com/logo.png');\n\n static::assertEquals('<logo>http://example.com/logo.png</logo>', $this->getXML($element));\n }", "title": "" }, { "docid": "a9421950c2b55535d4554136935cfb4a", "score": "0.46170318", "text": "public function testGet_post_templates3()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == false (line 1132)\n // if ($this->load_textdomain()) == true (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "1d63f989ccb44e25cb163528ecb1caa2", "score": "0.46145493", "text": "#[@test]\n public function arrayValueWithStringsContainingBraces() {\n $this->assertEquals(\n array(0 => array('versions' => array('(3..4]')), 1 => array()),\n $this->parse('#[@versions(array(\"(3..4]\"))]')\n );\n }", "title": "" }, { "docid": "74c684b42cb9b92c19ee54f272a03276", "score": "0.46103156", "text": "function testParsing()\n {\n $commandInfo = CommandInfo::create('\\Consolidation\\TestUtils\\ExampleCommandFile', 'testArithmatic');\n $this->assertCommandInfoIsAsExpected($commandInfo);\n\n $serializer = new CommandInfoSerializer();\n $serialized = $serializer->serialize($commandInfo);\n\n $deserializer = new CommandInfoDeserializer();\n\n $deserializedCommandInfo = $deserializer->deserialize($serialized);\n $this->assertCommandInfoIsAsExpected($deserializedCommandInfo);\n }", "title": "" }, { "docid": "844fde267eb6b96520881e9789d305bb", "score": "0.4608824", "text": "public function testGetType0()\n{\n\n $actual = $this->preDec->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "30052c5939491e8d54a59161aed1da47", "score": "0.46065", "text": "public function testNodeWithTag() {\n\t \t$feature = new WebmappOSMNode(1950330571);\n\t \t$url = 'https://www.openstreetmap.org/api/0.6/node/1950330571';\n\t\t$this->process($url,$feature);\n\t}", "title": "" }, { "docid": "b89e7558a7ce93bd62cb9eaedff394f7", "score": "0.4604469", "text": "#[@test]\n public function simpleXPathAnnotation() {\n $this->assertEquals(\n array(0 => array('fromXml' => array('xpath' => '/parent/child/@attribute')), 1 => array()),\n $this->parse(\"#[@fromXml(xpath= '/parent/child/@attribute')]\")\n );\n }", "title": "" }, { "docid": "59ba2017ecc14f66febf192da6928042", "score": "0.45941627", "text": "public function testHasNodeType()\n {\n $this->assertTrue($this->nodeTypeManager->hasNodeType('nt:file'));\n $this->assertFalse($this->nodeTypeManager->hasNodeType('no-such-type'));\n }", "title": "" }, { "docid": "73d1858d9b60875246ed228151706bdb", "score": "0.45874223", "text": "public function testTypeOfNode_AlwayFollow()\n {\n \t$this->assertEquals('file', Fs::typeOfNode($this->getMock('Q\\Fs_File', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('dir', Fs::typeOfNode($this->getMock('Q\\Fs_Dir', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('block', Fs::typeOfNode($this->getMock('Q\\Fs_Block', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('char', Fs::typeOfNode($this->getMock('Q\\Fs_Char', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('fifo', Fs::typeOfNode($this->getMock('Q\\Fs_Fifo', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('socket', Fs::typeOfNode($this->getMock('Q\\Fs_Socket', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('unknown', Fs::typeOfNode($this->getMock('Q\\Fs_Unknown', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t\n \t$this->assertEquals('file', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_File', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('dir', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Dir', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('block', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Block', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('char', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Char', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('fifo', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Fifo', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('socket', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Socket', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n \t$this->assertEquals('unknown', Fs::typeOfNode($this->getMock('Q\\Fs_Symlink_Unknown', array(), array(), '', false), Fs::ALWAYS_FOLLOW));\n\t}", "title": "" }, { "docid": "e44c88e7fe3bf0d4361e67d3a1bc10f4", "score": "0.45859894", "text": "public function testParse()\n {\n $data = [\n 'version' => 3,\n 'sources' => ['a.js', 'b.js'],\n 'names' => ['one', 'two', 'three', 'four', 'five'],\n 'mappings' => 'A',\n ];\n $context = new Context($data);\n $mappings = new Mappings('AAAA,YAAY,CAAC;;;;;;;;AAEb,IAAOC,GAAG,WAAWE', $context);\n $this->assertEquals($this->struct, Represent::mappings($mappings));\n }", "title": "" }, { "docid": "7dfdbe9c7b65869152437fb21e98009b", "score": "0.45841742", "text": "function dump_html_tree($node, $show_attr=true, $deep=0)\n{\n\t$node->dump($node);\n}", "title": "" }, { "docid": "ce7e147ef2f1bd9b8ae4cdd9e799cd16", "score": "0.45823506", "text": "public function testValidateDocument()\n\t {\n\t\t$schemas = array(\"test\" => __DIR__ . \"/XMLparserTestSchema.xsd\");\n\t\t$xml = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\n\t\t$xml .= \"<test><mandatory>text</mandatory></test>\";\n\t\t$type = $this->validateDocument($xml, $schemas);\n\t\t$this->assertEquals(\"test\", $type);\n\t }", "title": "" }, { "docid": "f27e312789bff7af0cd25fe9ff094126", "score": "0.45744762", "text": "public function testIsThereAnySyntaxError(){\n \t$var = new Maneuver\\Channel(['uri' => '/']);\n \t$this->assertTrue(is_object($var));\n }", "title": "" }, { "docid": "488f120fdb14cadb86c63b4597b73670", "score": "0.45740217", "text": "public function testParseNested(): void\n {\n $content = \\file_get_contents(self::FIXTURE_DIRECTORY . 'input/google_bookmarks_nested.htm');\n $result = $this->decoder->decode($content);\n\n $this->assertSame(self::EXPECTED, $result);\n }", "title": "" }, { "docid": "5baee810c056a24540f50b132aa68d04", "score": "0.45736328", "text": "public function testSVGError()\n {\n $html = <<<HTML\n<html><body><svg><rect/></svg><path>error</path></body></html>\nHTML;\n $document = Parser::load($html);\n\n // Base tests.\n\n static::assertEquals(1, $document->childNodes->length);\n\n // TODO: SVG xmlns\n //static::assertEquals($html . chr(10), $document->saveHTML());\n\n // Tests for child nodes.\n\n $html = $document->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $html);\n static::assertEquals('html', $html->nodeName);\n static::assertEquals('error', $html->textContent);\n static::assertEquals(1, $html->childNodes->length);\n static::assertEquals(0, $html->attributes->length);\n\n $body = $html->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $body);\n static::assertEquals('body', $body->nodeName);\n static::assertEquals('error', $body->textContent);\n static::assertEquals(2, $body->childNodes->length);\n static::assertEquals(0, $body->attributes->length);\n\n $svg = $body->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $svg);\n static::assertEquals('svg', $svg->nodeName);\n static::assertEquals('', $svg->textContent);\n static::assertEquals(1, $svg->childNodes->length);\n static::assertEquals(0, $svg->attributes->length);\n\n $rect = $svg->childNodes->item(0);\n\n static::assertInstanceOf('DOMElement', $rect);\n static::assertEquals('rect', $rect->nodeName);\n static::assertEquals('', $rect->textContent);\n static::assertEquals(0, $rect->childNodes->length);\n static::assertEquals(0, $rect->attributes->length);\n\n $path = $body->childNodes->item(1);\n\n static::assertInstanceOf('DOMElement', $path);\n static::assertEquals('path', $path->nodeName);\n static::assertEquals('error', $path->textContent);\n static::assertEquals(0, $path->attributes->length);\n }", "title": "" }, { "docid": "687fa66561d898351542cf33eff2fa87", "score": "0.45730847", "text": "function test_create_sub_node()\r\n\t{\r\n\t\t$rnc = 2;\r\n\t\t$depth = 2;\r\n\t\t$npl = 3;\r\n\t\treturn $this->_create_sub_node($rnc, $depth, $npl);\r\n\t}", "title": "" }, { "docid": "fad07b0d4b923876bbcb28b1daa2674f", "score": "0.45665023", "text": "#[@test]\n public function noValue() {\n $this->assertEquals(\n array(0 => array('hello' => NULL), 1 => array()),\n $this->parse(\"#[@hello]\")\n );\n }", "title": "" }, { "docid": "d992fbbe7709d0c59a6f67d5be2803cb", "score": "0.45644692", "text": "public function testGet_post_templates0()\n{\n\n // Traversed conditions\n // if ($this->errors() && $this->errors()->get_error_codes() !== array('theme_parent_invalid')) == false (line 1126)\n // if (!\\is_array($post_templates)) == false (line 1132)\n // if ($this->load_textdomain()) == false (line 1160)\n\n $actual = $this->wP_Theme->get_post_templates();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "ab91a5ad073af9625b6bbc839ab779f4", "score": "0.45614296", "text": "public function testGetType0()\n{\n\n $actual = $this->varLikeIdentifier->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "9d4ab5740cee8fd04969189cee0f5a09", "score": "0.45574328", "text": "public function testValidLayoutXmlFile()\n {\n $validationStateMock = $this->createMock(\\Magento\\Framework\\Config\\ValidationStateInterface::class);\n $validationStateMock->method('isValidationRequired')->willReturn(true);\n $domConfig = new \\Magento\\Framework\\Config\\Dom(\n '<referenceBlock name=\"product.info.something\" group=\"column_left\"></referenceBlock>',\n $validationStateMock\n );\n $result = $domConfig->validate($this->schemaFile, $errors);\n $this->assertTrue($result);\n $this->assertEmpty($errors);\n }", "title": "" }, { "docid": "1a93967423debe5191e3b9eaef125ecb", "score": "0.4553387", "text": "#[@test]\n public function arrayValueWithNestedArrays() {\n $this->assertEquals(\n array(0 => array('versions' => array(array(3), array(4))), 1 => array()),\n $this->parse('#[@versions(array(array(3), array(4)))]')\n );\n }", "title": "" }, { "docid": "bae4637fa2904fe1c8015019d5f26e43", "score": "0.4551339", "text": "public function isErrorByParsing();", "title": "" } ]
68aec4a6c240590885b89a2ef422c8e1
cek nip dan password dosen
[ { "docid": "0f69115c7cf87b7b4308c7072b4cab78", "score": "0.0", "text": "function auth_admin($username,$password){\n        $query=$this->db->query(\"SELECT * FROM admin WHERE nip='$username' AND pass=MD5('$password') LIMIT 1\");\n        return $query;\n    }", "title": "" } ]
[ { "docid": "202fbcc532fe7cf4d7e65103dd13cb2c", "score": "0.7733847", "text": "public function olvidoPassword(){\n\t}", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "a23e5f91b8a2c69cf2ce80ea20e1fe86", "score": "0.7330226", "text": "public function getPassword();", "title": "" }, { "docid": "5a2954899382bd73e59e020879477d64", "score": "0.7297499", "text": "public function getPassword() {}", "title": "" }, { "docid": "f5840b0460d9ab365da207d7bf25d53e", "score": "0.7193247", "text": "protected function changePassword() {}", "title": "" }, { "docid": "84f094e41e57182807b053d1c4e41ced", "score": "0.71613854", "text": "public function password()\n {\n }", "title": "" }, { "docid": "9ea97fc53d6a5ac56515de3b4e0c9239", "score": "0.7100079", "text": "function getPassword(){\n\n}", "title": "" }, { "docid": "13e56fa5d7e6c30ec5dc60ed6f07fd3c", "score": "0.7070895", "text": "public function checkPassword($value);", "title": "" }, { "docid": "f1c509e93d2609caa08914692a658f90", "score": "0.7039674", "text": "public function setPassword($value);", "title": "" }, { "docid": "e88fab21c5a4bfce54ef517fa6885276", "score": "0.7014121", "text": "public static function option_neopress_password() {\n printf(\n '<input type=\"password\" id=\"neopress_password\" name=\"neopress_password\" value=\"%s\" />',\n get_option('neopress_password')\n );\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "65f16c2fff24396abcee8b51036fd235", "score": "0.6997824", "text": "public function getPassword()\n {\n }", "title": "" }, { "docid": "c8e135f08dae891e6b12a89f5f9ffe70", "score": "0.69483405", "text": "public function getPW() {}", "title": "" }, { "docid": "bff6185e67c5020b442c578f1e35a135", "score": "0.6890257", "text": "public function password(){\n $_error = \"enter the password\";\n\t\treturn $_error;\n\t}", "title": "" }, { "docid": "129907e7a3f43b42cbb7f177f466ea4e", "score": "0.68635595", "text": "public function password()\n {\n return 'plaid_good';\n }", "title": "" }, { "docid": "c3bdbb07229c034ab5e6c64edb44b56d", "score": "0.68002355", "text": "public function password($password = null);", "title": "" }, { "docid": "a60ff974ec4d5d6d388f254fe043b104", "score": "0.6799911", "text": "public function passwordValide () {\n $password = $this->donnees[self::PASSWORD_REF];\n // Le champ password ne doit pas ?tre vide\n if ($password == null) {\n $this->erreur[self::PASSWORD_REF] = \"Veuillez remplir le champ password\";\n return false;\n }\n // Si le password entr? correspond au password contenu dans la base de donn?es on retourne true\n if ($this->utilisateurs->identificationUser($this->donnees[self::LOGIN_REF], $this->donnees[self::PASSWORD_REF])) {\n return true;\n // Sinon on cr?e une erreur et on renvoie false\n } else {\n $this->erreur[self::PASSWORD_REF] .= \"Mot de passe erron?\";\n return false;\n }\n }", "title": "" }, { "docid": "cc0e80f05a16757c54ee202e751d5704", "score": "0.67608595", "text": "public function generatePassword();", "title": "" }, { "docid": "d368bbffcae8504387404f922418eb15", "score": "0.6732175", "text": "public function Password(){\n\t\t\trequire_once( SROOT . '/engine/mail/Mail.php');\n\t\t\tglobal $spath;\n\t\t\t\n\t\t\tif(isset($spath[2])){\n\t\t\t\t//print_r($spath[2]);\n\t\t\t\t//die();\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "80be745278b12cd2d147a81eb021c926", "score": "0.6729227", "text": "public function editPassword()\n {\n $this->load_view('Profil Akun', 'user/gantiPassword');\n }", "title": "" }, { "docid": "d96d9b6fac3590c60180915d3ea4bfa6", "score": "0.671796", "text": "public function setpassword(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUserDataByRenewToken(UserController::getRenewTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "title": "" }, { "docid": "079dd9d12f2f6c51f7e79c441ef60784", "score": "0.6689225", "text": "function savePassword()\n {\n // get real current password from database\n $realPassword = null;\n $dataReturn = $this->model->khachhang->getCustomerPassword($_SESSION['idUser']);\n if (!empty($dataReturn)) {\n $realPassword = $dataReturn['matKhau'];\n }\n // data user enter in form change password\n $currentPasswordText = isset($_POST['customer_password_current']) ? $_POST['customer_password_current'] : '';\n // kiem tra mat khau hien tai nhap vao co giong voi mat khau trong CSDL la $realPassword hay khong ?\n if (!password_verify(addslashes($currentPasswordText . $_SESSION['email']), $realPassword)) {\n // neu khong trung khop\n $_SESSION['error-changePassCustomer'] = 'Mật khẩu hiện tại không đúng !';\n redirect('user/changePassword');\n } else {\n $newPasswordText = isset($_POST['customer_password_new']) ? $_POST['customer_password_new'] : '';\n $resultUpdate = $this->model->khachhang->updateCustomerPassword($_SESSION['idUser'], $newPasswordText);\n if ($resultUpdate) {\n // neu luu mat khau moi thanh cong\n $_SESSION['success-changePassCustomer'] = 'Đổi mật khẩu mới thành công !';\n redirect('user/index');\n } else {\n\n }\n }\n }", "title": "" }, { "docid": "e60a1b970278f2a6236e0c0c866f4935", "score": "0.666464", "text": "public function getPlainPassword();", "title": "" }, { "docid": "28053a0c9adc15915a4e01175b9878bf", "score": "0.665428", "text": "function getPassword()\n{\n return \"88888888\";\n}", "title": "" }, { "docid": "62ce7aa6c2030995f8f8385d076a8794", "score": "0.66532284", "text": "function validasiPassword($pass) //password minimal mengandung huruf dan angka\n\t{\n\t\tif (!preg_match(\"/([0-9])/\", $pass) || !preg_match(\"/([a-zA-Z])/\", $pass))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "06ba73028ba61d972562d60abc6f05da", "score": "0.6633794", "text": "public function newPassword()\n {\n if ($_POST == []) {\n die($this->error('500'));\n }\n $authenticationService = new AuthenticationService();\n $securityService = new SecurityService;\n\n $user = $securityService->sanitize($_GET['user']);\n $password = $securityService->sanitize($_GET['password']);\n\n if ($user === false || $password === false){\n die($this->error('403'));\n }\n\n $authenticationService->resetPassword($user, $password);\n $title = \"Mot de passe réinitialisé\";\n $customStyle = $this->setCustomStyle('form');\n $content = \"<p>Nouveau mot de passe actualisé.</p>\n <a href=\\\"?p=home\\\" class=\\\"btn btn-primary\\\">Retour</a>\";\n require('../src/View/base.php');\n }", "title": "" }, { "docid": "a2987800619220cfb8e9e6392227ad6b", "score": "0.66198045", "text": "public function ga_password_callback()\n {\n printf(\n '<input type=\"password\" id=\"ga_password\" name=\"bpp_setting_options[ga_password]\" value=\"%s\" />',\n isset( $this->options['ga_password'] ) ? esc_attr( $this->options['ga_password']) : ''\n );\n }", "title": "" }, { "docid": "7ff292ef17a66859e9d56bcc53fa4d65", "score": "0.6594961", "text": "public function modifpassword($user,$passwd){\n \n }", "title": "" }, { "docid": "32f6ab987c266de464d20dfabdc049d8", "score": "0.6586701", "text": "public function changePasswordAction()\r\n\t{\r\n\t\t$this->_view->_title = 'Thay đổi mật khẩu';\r\n\r\n\t\tif ($this->_arrParam['form']['token'] > 0) {\r\n\r\n\t\t\t$new = $this->_arrParam['form']['new-password'];\r\n\t\t\t$enter = $this->_arrParam['form']['enter-password'];\r\n\r\n\t\t\tif ($new != $enter) {\r\n\t\t\t\t$this->_view->error = 'Mật khẩu không khớp. Xin kiểm tra lại';\r\n\t\t\t} else {\r\n\r\n\t\t\t\t$this->_model->changePassword($this->_arrParam);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// URL::redirect($this->_arrParam['module'], $this->_controller, 'index');\r\n\r\n\r\n\r\n\t\t$this->_view->render(\"{$this->_controller}/change_password\");\r\n\t}", "title": "" }, { "docid": "cd94780cbcbc99e9fbf1bba30ff9ff6d", "score": "0.65745777", "text": "public function password_input()\n\t{\n\t\t$input_config = array(\n 'name' => $this->name,\n 'id' => $this->name,\n 'value' => $this->value\n );\n\n\t\treturn form_password( $input_config );\n\t}", "title": "" }, { "docid": "49ed7c56cce2484d9f30260bf05e1520", "score": "0.65692884", "text": "function p_modificar_txt_password(\n\t\t\t\t$txt_password\t\t\t\t\t,\n\t\t\t\t$cod_usuario\t\t\t\t\n\t\t){\n\t\t\tglobal $db;\n\t\t\t$query =\"\n\t\t\tupdate\tseg_usuario\n\t\t\tset\t\ttxt_password \t= password(SHA('$txt_password'))\n\t\t\twhere\tcod_usuario_pk\t\t='$cod_usuario'\";\n\t\t\t$db->consultar($query);\t\n\t\t}", "title": "" }, { "docid": "ba03b175d29de18bbe5c3e36816b5179", "score": "0.656109", "text": "public function actionProfiepassword()\n {\n $model = new PasswortVerandern();\n \n if ($model->load(Yii::$app->request->post())) {\n \n if($model->passwortZurucksetzen(\\Yii::$app->user->getId()))\n {\n return $this->redirect(['index']);\n }\n }\n \n return $this->render('profiepassword',[\n 'model'=>$model\n \n ]);\n }", "title": "" }, { "docid": "fdcb937bf7a79d246928e68376be666e", "score": "0.65589136", "text": "function alumno_modificar_password($codigo,$password,$nuevo_password){\r\n\t\t\t\t$cn = $this->conexion();\r\n \r\n if($cn!=\"no_conexion\"){\r\n \t$sql=\"update $this->nombre_tabla_alumnos set password='$nuevo_password' where codigo='$codigo' and password='$password'\";\r\n\t\t\t$rs = mysql_query($sql,$cn);\r\n\t\t\t\t\t\t \r\n\t\t\tmysql_close($cn);\t\t\t \r\n\t\t\treturn \"mysql_si\";\r\n\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\treturn \"mysql_no\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1aea3ddb6ddcac208d293182cca6e0f0", "score": "0.65576917", "text": "public function updatepassword(){\r\n if (isset($_POST[\"updatemdp\"])) {\r\n //comparaison du mot de passe avec l'ancien\r\n if($_POST['NEWMDP'] == $_POST['password']) {\r\n //mise a jour dans la base du nouveau mot de passe\r\n $rep = $this->_bdd->query(\"UPDATE `User` SET `mdp`='\".$_POST['NEWMDP'].\"' WHERE id=\".$this->_id.\" \");\r\n if($rep){\r\n //succées\r\n ?>\r\n <p>Mot de passe changé.</p>\r\n <?php\r\n }else{\r\n ?>\r\n //erreur a l'update dans la base\r\n <p>Une erreur est survenue.</p>\r\n <?php\r\n }\r\n } else{\r\n //message d'erreur\r\n ?>\r\n <p>Les mot de passe ne correspondent pas.</p>\r\n <?php\r\n }\r\n }\r\n }", "title": "" }, { "docid": "af852e6186ed4c4ff43626b435186b1f", "score": "0.6546669", "text": "public function setPW($dw) {}", "title": "" }, { "docid": "a4151c68dce823dbd862f3ec9e44790a", "score": "0.65436023", "text": "public function getPassword():? string;", "title": "" }, { "docid": "5abbd9199307ee9f045a9d20e7977015", "score": "0.6542323", "text": "public function getPasswordAdapter();", "title": "" }, { "docid": "7d1b9575f25dc44639ab39bffe22abac", "score": "0.65223384", "text": "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "title": "" }, { "docid": "7d1b9575f25dc44639ab39bffe22abac", "score": "0.65223384", "text": "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "title": "" }, { "docid": "7d1b9575f25dc44639ab39bffe22abac", "score": "0.6521524", "text": "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "title": "" }, { "docid": "5b62f5ee76639b853b91921d9393cbde", "score": "0.6510091", "text": "function generaPass(){\n $cadena = \"1234567890\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n \n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass=5;\n \n //Creamos la contraseña\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n \n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "173ef36410ba61a5457a38ebb9b8995d", "score": "0.6506269", "text": "function generaPass() {\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n \n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass=10;\n \n //Creamos la contraseña\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n \n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "b513289d52b89880e53092de32bbd204", "score": "0.6499757", "text": "public function authenticationWithValidAlphaCharClassPassword() {}", "title": "" }, { "docid": "b513289d52b89880e53092de32bbd204", "score": "0.6499708", "text": "public function authenticationWithValidAlphaCharClassPassword() {}", "title": "" }, { "docid": "b513289d52b89880e53092de32bbd204", "score": "0.6499708", "text": "public function authenticationWithValidAlphaCharClassPassword() {}", "title": "" }, { "docid": "3413d8237f189655acc489dc90bf2f38", "score": "0.6486172", "text": "public function testNewPassword()\n {\n }", "title": "" }, { "docid": "71147e8770dde8c32b821a3bfddaf13c", "score": "0.6484062", "text": "public function getpasswordAction()\n {\n\t\t$form = new Labtab_Form_Password();\n\t\t$request = $this->getRequest();\n \tif ($request->isPost()) \n \t{\n\t\t\t$postData = $request->getPost();\n\n \t\tif ($form->isValid($postData)) \n \t\t{\t \t\t\t\n \t\t\t// Labtab_Entity_PortalUser\n \t\t\t$user = $this->_repo->find($postData['email']);\t\n \t\t\t\n \t\t\t// Labtab_Entity_PwReset\n \t\t\t$reset = new \\Labtab\\Entity\\PwReset($user->getEmail());\n\t\t\t\t$this->_em->persist($reset);\n\t\t\t\t$this->_em->flush();\n\n\t\t\t\t// send the link\n\t\t\t\t$reset->send();\n\t\t\t\t\n\t\t\t\tdie(\"success\");\n \t\t}\n\t }\t \t\t\n }", "title": "" }, { "docid": "5cdf095c187aa251374be1085b7d264c", "score": "0.64838177", "text": "function the_post_password()\n {\n }", "title": "" }, { "docid": "28c43f9df5308cb1970199d5b859869a", "score": "0.64791125", "text": "public function getPassword() : ?string ;", "title": "" }, { "docid": "8714d2e04d09ba98c627d507fb8218c6", "score": "0.6464836", "text": "public function cngpassword()\n {\n return view('scout.CngPassword');\n }", "title": "" }, { "docid": "3dd302736fa089a9d26aaec665a92c02", "score": "0.6460757", "text": "public function editPassword(){\n \treturn view('auth.passwords.changePass');\n }", "title": "" }, { "docid": "0fc5506788ab69f70d1b40b42f8effa3", "score": "0.64591604", "text": "protected function getConfiguredPassword() {}", "title": "" }, { "docid": "3492d2aefc05967f5b661fb923da564f", "score": "0.6455998", "text": "public function setpasswordAction(){\n $req=$this->getRequest();\n $cu=$this->aaac->getCurrentUser();\n $password=$this->getRequest()->getParam('password');\n $record=Doctrine_Query::create()->from('Users')->addWhere('ID=?')->fetchOne(array($req->getParam('id'))); \n $record->password=md5($password);\n if(!$record->trySave()){\n $this->errors->addValidationErrors($record);\n }\n $this->emitSaveData(); \n }", "title": "" }, { "docid": "ad5d7f0c8e25d482e47c2b41762a30ea", "score": "0.64542305", "text": "function generaPass(){\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()?/\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n \n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass=10;\n \n //Creamos la contraseña\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n \n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n }", "title": "" }, { "docid": "51ee40992b35ed45f6191779b547746e", "score": "0.64523447", "text": "public function restPassword(){\n\t}", "title": "" }, { "docid": "f6fa457950473642f18e74bad44028d6", "score": "0.6451381", "text": "public function activatePassword() {\n\t\tif ($this->request -> isPost()) {\n\t\t\tif (!empty($this->data['User']['ident']) && !empty($this->data['User']['activate'])) {\n\t\t\t\t$this->set('ident',$this->data['User']['ident']);\n\t\t\t\t$this->set('activate',$this->data['User']['activate']);\n\t\t\t\t$this->User->set($this->data);\n\t\t\t\tif ($this->User->RegisterValidate()) {\n\t\t\t\t\t$this->log('holis 1');\n\t\t\t\t\t$userId= $this->data['User']['ident'];\n\t\t\t\t\t$activateKey= $this->data['User']['activate'];\n\t\t\t\t\t$user = $this->User->read(null, $userId);\n\t\t\t\t\tif (!empty($user)) {\n\t\t\t\t\t$this->log('holis 2');\n\t\t\t\t\t\t$password = $user['User']['password'];\n\t\t\t\t\t\t$thekey =$this->User->getActivationKey($password);\n\t\t\t\t\t\tif ($thekey==$activateKey) {\n\t\t\t\t\t$this->log('holis 3');\n\t\t\t\t\t\t\t$user['User']['password']=$this->data['User']['password'];\n\t\t\t\t\t\t\t$salt=$this->UserAuth->makeSalt();\n\t\t\t\t\t\t\t$user['User']['salt'] = $salt;\n\t\t\t\t\t\t\t$user['User']['password'] = $this->UserAuth->makePassword($user['User']['password'], $salt);\n\t\t\t\t\t\t\t$this->User->save($user,false);\n\t\t\t\t\t\t\t$this->Session->setFlash('Su contraseña se ha restablecido con éxito.', 'default', array('class' => 'success_message'));\n\t\t\t\t\t\t\t$this->redirect('/login');\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t$this->Session->setFlash('Algo salió mal, por favor haga click en el enlace de restablecimiento de contraseña nuevamente.', 'default', array('class' => 'error_message'));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t$this->Session->setFlash('Algo salió mal, por favor haga click en el enlace de restablecimiento de contraseña nuevamente.', 'default', array('class' => 'error_message'));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t\t\t$this->Session->setFlash('Algo salió mal, por favor haga click en el enlace de restablecimiento de contraseña nuevamente.', 'default', array('class' => 'error_message'));\n\t\t\t}\n\t\t} else {\n\t\t\t\t\t$this->log('holis 4');\n\t\t\tif (isset($_GET['ident']) && isset($_GET['activate'])) {\n\t\t\t\t$this->set('ident',$_GET['ident']);\n\t\t\t\t$this->set('activate',$_GET['activate']);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a741898fb4fce6afc6fc98b7f57a021a", "score": "0.64497435", "text": "private function pre_defined_password(): string\r\n {\r\n $regx = \"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[#$@!%&*?])[A-Za-z\\d#$@!%&*?]{6,30}$/\";\r\n if (!preg_match($regx, $this->field)) {\r\n return $this->message(\"must 1 uppercase, lowercase, number & special char\");\r\n }\r\n }", "title": "" }, { "docid": "54472d56bf642a84ef0f028c73f10bac", "score": "0.6444656", "text": "function user_pass_ok($user_login, $user_pass)\n {\n }", "title": "" }, { "docid": "b41800974775bdb3eff4cb6af5bc3e68", "score": "0.64431554", "text": "public function changePassword() \n {\n $this->show('password-change', []);\n }", "title": "" }, { "docid": "867085fa0c48be7ab7b1ab7003ffa0ea", "score": "0.6441662", "text": "public function password() {\n return view('user.settings.password', ['user' => $this->user]);\n }", "title": "" }, { "docid": "91cb6ca397131f828bc4a03f74b8e7f6", "score": "0.64264375", "text": "public function editpassword(){\n\n $this->autoRender = false; /* NO VIEW */\n\n if ($this->request->is('post')) { /* IF REQUEST IS POST */\n\n $id = $this->request->session()->read('Auth.User.id'); /* USER ID */\n\n /* POSTS DATA */\n $newpassword = $this->request->data['newpassword'];\n $newpasswordbis = $this->request->data['newpasswordbis'];\n\n /* IF FIELD NOT EMPTY */\n if(!empty($newpassword) && !empty($newpasswordbis)){\n if($newpassword == $newpasswordbis){\n\n /* EDIT PASSWORD */\n $usersTable = TableRegistry::get('Users');\n $user = $usersTable->get($id);\n $user->password = $newpassword;\n $usersTable->save($user);\n $this->Flash->success('Password updated.');\n return $this->redirect(['controller' => 'Settings', 'action' => 'password']);\n\n }else{\n $this->Flash->error('Password not same, try again.');\n return $this->redirect(['controller' => 'Settings', 'action' => 'password']);\n }\n }else{\n $this->Flash->error('Empty field, try again.');\n return $this->redirect(['controller' => 'categories', 'action' => 'password']);\n }\n }\n }", "title": "" }, { "docid": "8b71b0f46e03a7fe8abc08c9d620d7b6", "score": "0.642385", "text": "public function new_user_pw($Perfil){\n\n\t\t$required_fields = array('password','password2','old_password','old_password2');\n\n\t\t\t//si todos los campos requeridos estan continuamos\n\t\tif($Perfil->campos_requeridos($required_fields,true) == true){\n\t\t\t$Perfil->validar_old_passwords();\t\t//pasword actuales existen y coinciden\t\n\t\t\t$Perfil->validar_passwords();\t\t\t//pasword existen y coinciden\n\t\t}else{\n\t\t\treturn $Perfil->error;\t\t\t\t\t//deben completarse los campos requeridos\n\t\t}\n\n\t\tif(is_null($Perfil->error)){\n\t\t\t\n\t\t\t$Perfil->where('id',$this->user);\n\t\t\t$cols = array('salt','pass','verificado');\n\t\t\tif($salida = $Perfil->getOne('usuarios',$cols)){\n\t\t\t\t//var_dump('es bienn');\n\t\t\t\t$old_pass = hash('sha512', $_POST['old_password'].$salida['salt']);\n\t\t\t\t$new_pass = hash('sha512', $_POST['password'].$salida['salt']);\n\t\t\t\tif($old_pass == $salida['pass']){\n\t\t\t\t\t//var_dump('pass antiguo coincide');\n\t\t\t\t\tif($salida['verificado'] != 1){\treturn $Perfil->errores[8];\t}\n\t\t\t\t\t//var_dump('llegado aqui se cambiara su contraseña');\n\t\t\t\t\t$campos = array('pass' => $new_pass);\n\t\t\t\t\t$Perfil->where('id',$this->user);\n\t\t\t\t\t$Perfil->update('usuarios',$campos);\n\n\t\t\t\t\t$Perfil->movimientoStats('Cambiado password');\n\t\t\t\t\theader('location:index.php?perfil=9');\n\t\t\t\t\texit;\n\n\t\t\t\t}else{\n\t\t\t\t\t//var_dump('pass no coincide');\n\t\t\t\t\treturn $Perfil->errores[5];\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t//var_dump('no es bien');\n\t\t\treturn $Perfil->error;\n\t\t}\n\t}", "title": "" }, { "docid": "77e263e197a795bafb28ed11d9986deb", "score": "0.6421562", "text": "public function getPassword()\n {\n return $this->noSenha;\n }", "title": "" }, { "docid": "2ae3797707d04dcc3c99e75bf18d4f24", "score": "0.6419665", "text": "function getPassword(){\n $options = sciploreDataAccessBundle::getGeneralOptions();\n //$options = $container->get('sciplore.options')->getGeneralOptions();\n $require_password = $options['authentifiaction_requires_password']; \n if($require_password==1){\n return $this->passphrase;\n }\n else{\n //hardcoded random default password. Must be sent by the authentification form in a hidden field.\n return 'WnDadvfhWqoJnHuXtyxwZxGbfHsXrNwI3Idns4d2Ie9BnEjYnr14ijyCr0YPg7i';\n }\n }", "title": "" }, { "docid": "4149481b9a1053b5829d6a5b69c723d9", "score": "0.64138734", "text": "public function ModifierPassword(){\r\n\r\n\t\t\tif(isset($_POST['password'], $_POST['password2'])){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tValidation::ValiderPasswordInscriptionModification($_POST['password'], $_POST['password2']);\r\n\t\t\t\t} catch (Exception $e) { $tableauErreurs[] = $e->getMessage(); }\r\n\r\n\t\t\t\tif(empty($tableauErreurs)){\r\n\t\t\t\t\t$ModeleMembre = new ModeleMembre();\r\n\t\t\t\t\t$ModeleMembre->ModifierPassword($_SESSION['login'], $_POST['password']);\r\n\t\t\t\t\t$_REQUEST['action'] = \"SansAction\";\r\n\t\t\t\t\t$CtrlUser = new CtrlUser();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$d[\"tableauErreurs\"] = $tableauErreurs;\r\n\t\t\t\t\t$this->set($d);\r\n\t\t\t\t\t$this->render('vueMonCompte');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "5a36914fa2da63802aadaf0d093e1afc", "score": "0.6409315", "text": "public function changepass($id=null){\n\n }", "title": "" }, { "docid": "cef0aa4c4d608eeb57d136bbe22bed6a", "score": "0.64092076", "text": "public function passwordForm(){\n return view('admin.change_password');\n }", "title": "" }, { "docid": "dca8cfac639c3f7dbe806ffc4bb98a16", "score": "0.6407741", "text": "public function absen(){\n $pass = $this->request->getVar('pass'); \n $pass = preg_replace('/\\s+/', '', $pass); // hapus whitespace \n $pass = strtolower($pass); // konversi lowercase\n\n $absen_id = $this->request->getVar('absen_id');\n if($absen_id == 1 && $pass == strtolower(preg_replace('/\\s+/', '', info('webinar_pass_1')))){\n $kode = 2;\n } elseif($absen_id == 2 && $pass == strtolower(preg_replace('/\\s+/', '', info('webinar_pass_2')))){\n $kode = 2;\n } elseif($absen_id == 3 && $pass == strtolower(preg_replace('/\\s+/', '', info('webinar_pass_3')))){\n $kode = 2;\n } elseif($absen_id == 4 && $pass == strtolower(preg_replace('/\\s+/', '', info('webinar_pass_4')))){\n $kode = 2;\n } else {\n $kode = $this->request->getVar('pass');\n }\n // === END VALIDASI PASSWORD === //\n\n $data = [\n 'id' => $this->request->getVar('peserta_id'),\n 'webinar_'.$absen_id => $kode,\n ];\n $model = new M_Webinar();\n $model->save($data);\n $judul = $this->request->getVar('judul');\n if($kode == 2){\n if($absen_id == 4){\n session()->setFlashdata('pesan-success', \"Absen $judul berhasil.\");\n } else {\n session()->setFlashdata('pesan-success', \"Absen $judul berhasil. Silakan Anda mengunduh sertifikat pada tautan yang telah disediakan\");\n }\n } else {\n session()->setFlashdata('pesan-error', \"Maaf, password yang Anda input salah. Silakan Anda menghubungi CP agar panitia dapat memvalidasi password Anda secara manual.\");\n }\n return redirect()->to(base_url('webinar/dashboard'));\n\n }", "title": "" }, { "docid": "3f31e715149f370213d67e1d8d5ad5e9", "score": "0.6403457", "text": "public function authenticationWithValidLatin1UmlautCharClassPassword() {}", "title": "" }, { "docid": "3f31e715149f370213d67e1d8d5ad5e9", "score": "0.6403457", "text": "public function authenticationWithValidLatin1UmlautCharClassPassword() {}", "title": "" }, { "docid": "3f31e715149f370213d67e1d8d5ad5e9", "score": "0.6403305", "text": "public function authenticationWithValidLatin1UmlautCharClassPassword() {}", "title": "" }, { "docid": "72acefe0d7d08b65a0eac6d383111f08", "score": "0.63910645", "text": "public function getUsuario_pass(){\n return $this->usuario_pass;\n }", "title": "" }, { "docid": "d227ff3cd92c8dbb30f0c6e60e1983e9", "score": "0.6386203", "text": "public function getPassword(): ?string;", "title": "" }, { "docid": "b06c83cbdb9f1518b60b82b5b8563280", "score": "0.6386162", "text": "function password($pass)\n\t{\n\t\tif (strcmp($pass, AUCTION_PASSWORD))\n\t\t\texit(\"Wrong password\");\n\t}", "title": "" }, { "docid": "880620057487488d22dc1e5f92b63d4f", "score": "0.63810605", "text": "public function getIveriPassword()\n {\n return $this->iveriPassword;\n }", "title": "" }, { "docid": "cd502c25fc787a28149c046409041720", "score": "0.63803476", "text": "function getPasswordFieldName() { return $this->_passwordfieldname; }", "title": "" }, { "docid": "6cc6bd90fe79bfd253340f50c31047e1", "score": "0.6379167", "text": "public function pwd()\n\t\t{\n\t\t\t$this->set('usrid',$this->Auth->User('id'));\t\t\t\t\n\t\t\tif ($this->request->is('post'))\n\t\t\t{\n\t\t\t\t$this->User->create();\n\t\t\t\t\n\t\t\t\tif ($this->User->save($this->data)) \n\t\t\t\t{\n\t\t\t\t\t$this->Session->setFlash(__('The Password has been changed'));\n\t\t\t\t\t$this->redirect(array('controller' => 'blogs','action' => 'index'));\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t\t$this->Session->setFlash(__('The Password could not be changed. Please, try again.'));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b7f2755fb4d2ae49826541278044245b", "score": "0.63780826", "text": "public function editPassword($pword)\n\t\t{\n\t\t\tglobal $password;\n\t\t\tglobal $user_id;\n\t\t\n\t\t\t$pword = addslashes($pword);\n\n\t\t\tif(strlen($pword) <= 32)\n\t\t\t{\n\t\t\t$qry = 'UPDATE admin_table SET password = \"' . $pword . '\" WHERE user_id = '. $user_id;\n\t\t\t$result = mysql_query($qry, $GLOBALS['connection']);\n\t\t\t}\n\t\t\n\t\t\t$password = $pword;\n\t\t}", "title": "" }, { "docid": "439f67dcb6aa3f00b2733b96b01d6140", "score": "0.6376803", "text": "private function getPassword()\n {\n\n return Hashes::randomBytes( rand(6,18 ) );\n }", "title": "" }, { "docid": "fc830012e65b96c3b7b89d8dc2fd88b9", "score": "0.63748413", "text": "function generaPass() {\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena = strlen($cadena);\n\n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass = 10;\n\n //Creamos la contraseña\n for ($i = 1; $i <= $longitudPass; $i++) {\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos = rand(0, $longitudCadena - 1);\n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena, $pos, 1);\n }\n return $pass;\n}", "title": "" }, { "docid": "b8fee3c45f62177664e792ed9597e4ec", "score": "0.6367834", "text": "function temp_pass(){\n\treturn 'password199';\n}", "title": "" }, { "docid": "240dfc40502d17d0dcb175758d768833", "score": "0.63662857", "text": "function wp_get_password_hint()\n {\n }", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6365755", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6365755", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6365755", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6365755", "text": "public function setPassword($password);", "title": "" }, { "docid": "58286e0c42f4f6a709b54554b220e74a", "score": "0.6365009", "text": "public function password()\n {\n return view('admin.pages.updatepass');\n }", "title": "" }, { "docid": "c9b5fb12a5e9425661db11950a97e950", "score": "0.6361521", "text": "public function input2($champs){\n echo \"<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 form-row'>\n <input type='password' name='$champs' placeholder='$champs' class='form-control normal'>\n \n </div>\";\n }", "title": "" }, { "docid": "f7c5119bebc0f49dd72469768b5c2fa8", "score": "0.6355759", "text": "public function password($username)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "85967218cc943948c3ee45bfcd2c2809", "score": "0.63517946", "text": "public function getpassword(){\n return $this->password;\n }", "title": "" }, { "docid": "908a296ffc7d118633f412642bf7abe5", "score": "0.6347928", "text": "function zen_draw_password_field($name, $value = '', $parameters = 'maxlength=\"40\"') {\n return zen_draw_input_field($name, $value, $parameters, 'password', true);\n }", "title": "" } ]
41b12e050b9d0e7b8c1fb621a27d5b7a
Create triggeranchor and personalacnhor for triggers.
[ { "docid": "caedd59624b1bd5f0494687038a5a9f3", "score": "0.5217084", "text": "public function __invoke(IItem &$createdItem, IItem $sourceItem, ?IRepository $repository = null): void\r\n {\r\n $anchorService = new AnchorService();\r\n $anchorService->createTriggerAnchor($createdItem->getId(), 0);\r\n $anchorService->createPersonalAnchor($createdItem->getId(), $createdItem->buildVendor()->getName(), 0);\r\n }", "title": "" } ]
[ { "docid": "a20188cb722ee9c42f5e7db4af1a1439", "score": "0.62772316", "text": "public function addTrigger()\n\t{\n\t\t// now it can be just one button\n\t\t$this->triggers = array(func_get_args());\n\t}", "title": "" }, { "docid": "c8bb367b9cefb29c59d9df27f2184099", "score": "0.58795905", "text": "function getTriggerDef($trigger) {\n\n\t\t$this->fieldArrayClean($trigger);\n\t\t// Constants to figure out tgtype\n\t\tif (!defined('TRIGGER_TYPE_ROW')) define ('TRIGGER_TYPE_ROW', (1 << 0));\n\t\tif (!defined('TRIGGER_TYPE_BEFORE')) define ('TRIGGER_TYPE_BEFORE', (1 << 1));\n\t\tif (!defined('TRIGGER_TYPE_INSERT')) define ('TRIGGER_TYPE_INSERT', (1 << 2));\n\t\tif (!defined('TRIGGER_TYPE_DELETE')) define ('TRIGGER_TYPE_DELETE', (1 << 3));\n\t\tif (!defined('TRIGGER_TYPE_UPDATE')) define ('TRIGGER_TYPE_UPDATE', (1 << 4));\n\n\t\t$trigger['tgisconstraint'] = $this->phpBool($trigger['tgisconstraint']);\n\t\t$trigger['tgdeferrable'] = $this->phpBool($trigger['tgdeferrable']);\n\t\t$trigger['tginitdeferred'] = $this->phpBool($trigger['tginitdeferred']);\n\n\t\t// Constraint trigger or normal trigger\n\t\tif ($trigger['tgisconstraint'])\n\t\t\t$tgdef = 'CREATE CONSTRAINT TRIGGER ';\n\t\telse\n\t\t\t$tgdef = 'CREATE TRIGGER ';\n\n\t\t$tgdef .= \"\\\"{$trigger['tgname']}\\\" \";\n\n\t\t// Trigger type\n\t\t$findx = 0;\n\t\tif (($trigger['tgtype'] & TRIGGER_TYPE_BEFORE) == TRIGGER_TYPE_BEFORE)\n\t\t\t$tgdef .= 'BEFORE';\n\t\telse\n\t\t\t$tgdef .= 'AFTER';\n\n\t\tif (($trigger['tgtype'] & TRIGGER_TYPE_INSERT) == TRIGGER_TYPE_INSERT) {\n\t\t\t$tgdef .= ' INSERT';\n\t\t\t$findx++;\n\t\t}\n\t\tif (($trigger['tgtype'] & TRIGGER_TYPE_DELETE) == TRIGGER_TYPE_DELETE) {\n\t\t\tif ($findx > 0)\n\t\t\t\t$tgdef .= ' OR DELETE';\n\t\t\telse {\n\t\t\t\t$tgdef .= ' DELETE';\n\t\t\t\t$findx++;\n\t\t\t}\n\t\t}\n\t\tif (($trigger['tgtype'] & TRIGGER_TYPE_UPDATE) == TRIGGER_TYPE_UPDATE) {\n\t\t\tif ($findx > 0)\n\t\t\t\t$tgdef .= ' OR UPDATE';\n\t\t\telse\n\t\t\t\t$tgdef .= ' UPDATE';\n\t\t}\n\n\t\t$f_schema = $this->_schema;\n\t\t$this->fieldClean($f_schema);\n\t\t// Table name\n\t\t$tgdef .= \" ON \\\"{$f_schema}\\\".\\\"{$trigger['relname']}\\\" \";\n\n\t\t// Deferrability\n\t\tif ($trigger['tgisconstraint']) {\n\t\t\tif ($trigger['tgconstrrelid'] != 0) {\n\t\t\t\t// Assume constrelname is not null\n\t\t\t\t$tgdef .= \" FROM \\\"{$trigger['tgconstrrelname']}\\\" \";\n\t\t\t}\n\t\t\tif (!$trigger['tgdeferrable'])\n\t\t\t\t$tgdef .= 'NOT ';\n\t\t\t$tgdef .= 'DEFERRABLE INITIALLY ';\n\t\t\tif ($trigger['tginitdeferred'])\n\t\t\t\t$tgdef .= 'DEFERRED ';\n\t\t\telse\n\t\t\t\t$tgdef .= 'IMMEDIATE ';\n\t\t}\n\n\t\t// Row or statement\n\t\tif ($trigger['tgtype'] & TRIGGER_TYPE_ROW == TRIGGER_TYPE_ROW)\n\t\t\t$tgdef .= 'FOR EACH ROW ';\n\t\telse\n\t\t\t$tgdef .= 'FOR EACH STATEMENT ';\n\n\t\t// Execute procedure\n\t\t$tgdef .= \"EXECUTE PROCEDURE \\\"{$trigger['tgfname']}\\\"(\";\n\n\t\t// Parameters\n\t\t// Escape null characters\n\t\t$v = addCSlashes($trigger['tgargs'], \"\\0\");\n\t\t// Split on escaped null characters\n\t\t$params = explode('\\\\000', $v);\n\t\tfor ($findx = 0; $findx < $trigger['tgnargs']; $findx++) {\n\t\t\t$param = \"'\" . str_replace('\\'', '\\\\\\'', $params[$findx]) . \"'\";\n\t\t\t$tgdef .= $param;\n\t\t\tif ($findx < ($trigger['tgnargs'] - 1))\n\t\t\t\t$tgdef .= ', ';\n\t\t}\n\n\t\t// Finish it off\n\t\t$tgdef .= ')';\n\n\t\treturn $tgdef;\n\t}", "title": "" }, { "docid": "343fee4931812dd58e39caeca8a471db", "score": "0.5877882", "text": "function codegenerator_sethtmlattachanchors ($instance,$arg) {}", "title": "" }, { "docid": "0a4523ee98c7369a789742c471cd6685", "score": "0.5656491", "text": "protected function setAnchorTag()\n {\n $class = implode(' ', $this->cssClasses);\n $display = $this->useDisplayImage ? $this->imageHtml : $this->displayText;\n if ($this->navBarType == \"buttonbar\") {\n $this->anchorTag = \"<a href='\" . $this->getUrl() . \"' id='pcnav_ical' class='$class' title='$this->imageTitleText'>$display</a>\";\n } else {\n $this->anchorTag = \"<a href='#pcnav_ical_dialog' id='pcnav_ical' class='$class' title='$this->imageTitleText'>$display</a>\";\n }\n }", "title": "" }, { "docid": "866ed7705cc3eead8aaf658c58257bbd", "score": "0.5452533", "text": "function badgeos_gravityforms_activity_triggers( $triggers ) {\n\n\t$triggers[ 'gravityforms_trigger' ] = __( 'GravityForms Activity', 'badgeos-gravityforms' );\n\n\treturn $triggers;\n\n}", "title": "" }, { "docid": "f213a4e9992680d98974a366ecf181f4", "score": "0.5359117", "text": "protected function createTriggerTableForAllTables()\n {\n $allTables = $this->getAllTables();\n foreach ($allTables as $eachTable) {\n if (strpos($eachTable, 'trigger') === false) {\n $this->creatTriggerTable($eachTable);\n }\n }\n }", "title": "" }, { "docid": "ef7838f001b63fc2159eaf39995ca606", "score": "0.5300493", "text": "function cake_trigger_Create($params = array(), $locale = \"en_US\") {\n\treturn require(LIB_CAKE . \"Trigger/Create.php\");\n}", "title": "" }, { "docid": "c53dd0f8fa155e8bd2cca4a330125c6b", "score": "0.52328897", "text": "function addraid_note_triggers () {\r\n include_once($this->_eqdkp->root_path.'plugins/'.$this->_pm->get_data('ctrt','path').'/admin/raidnotetriggers/add.php');\r\n $extension = new CTRT_AddRaidNoteTrigger;\r\n $extension->process();\r\n }", "title": "" }, { "docid": "bc629d2e4785a6bab94e8348093978f1", "score": "0.52157366", "text": "function codegenerator_sethtmlanchorprefix ($instance,$arg) {}", "title": "" }, { "docid": "086b4f20863e0626e1bf23763611faad", "score": "0.51280147", "text": "function panamazonica_pointer_agenda( $p ) {\n\n $p['pointer-agenda'] = array(\n 'target' => '#agenda_tipo',\n 'options' => array(\n 'content' => sprintf( '<h3>%s</h3><p>%s</p>',\n __( 'About the Agenda', 'panamazonica' ),\n __( 'Select the event type (event or meeting) and enter the area above, along other data you consider important.', 'panamazonica' )\n ),\n 'position' => array( 'edge' => 'right', 'align' => 'top' )\n )\n );\n\n return $p;\n}", "title": "" }, { "docid": "da602ec724774abbecfb304ece7fc374", "score": "0.5085249", "text": "public function createTrigger($table_name,$fields_to_except_to_hash){\n $sql = \" CREATE TRIGGER Hash_\".$table_name.\" BEFORE INSERT ON \".$table_name.\" FOR EACH ROW BEGIN SET NEW.HASH_SAT = MD5(concat(\";\n $fields_from_table = $this->getTableColumns($table_name);\n $fields_to_use_from_table = $this->evaluateFieldsToExcept($fields_from_table,$fields_to_except_to_hash);\n foreach($fields_to_use_from_table as $field_to_use){\n if($this->evaluateFieldNameExceptionToHash($field_to_use,$fields_to_except_to_hash) == true){\n $sql = $sql.\"NEW.\".$field_to_use.\",\";\n }\n }\n $sql =substr($sql, 0, -1) . \")); END\";\n DB::unprepared($sql);\n }", "title": "" }, { "docid": "bd5501e9b9fce9900ac6845df57778b1", "score": "0.50295943", "text": "protected function GetTriggersDefinition()\n\t{\n\t\t$sTable = $this->GetDataTable();\n\t\t$sReplicaTable = MetaModel::DBGetTable('SynchroReplica');\n\t\t$aColumns = $this->GetSQLColumns();\n\t\t$aResult = array();\n\n\t\t$sTriggerInsert = \"CREATE TRIGGER `{$sTable}_bi` BEFORE INSERT ON `$sTable`\";\n\t\t$sTriggerInsert .= \" FOR EACH ROW\";\n\t\t$sTriggerInsert .= \" BEGIN\";\n\t\t$sTriggerInsert .= \" INSERT INTO `{$sReplicaTable}` (`sync_source_id`, `status_last_seen`, `status`) VALUES ({$this->GetKey()}, NOW(), 'new');\";\n\t\t$sTriggerInsert .= \" SET NEW.id = LAST_INSERT_ID();\";\n\t\t$sTriggerInsert .= \" END;\";\n\t\t$aResult['bi'] = $sTriggerInsert;\n\n\t\t$aModified = array();\n\t\tforeach($aColumns as $sColumn => $ColSpec)\n\t\t{\n\t\t\t// <=> is a null-safe 'EQUALS' operator (there is no equivalent for \"DIFFERS FROM\")\n\t\t\t$aModified[] = \"NOT(NEW.`$sColumn` <=> OLD.`$sColumn`)\";\n\t\t}\n\t\t$sIsModified = '('.implode(') OR (', $aModified).')';\n\n\t\t// Update the replica\n\t\t//\n\t\t// status is forced to \"new\" if the replica was obsoleted directly from the state \"new\" (dest_id = null)\n\t\t// otherwise, if status was either 'obsolete' or 'synchronized' it is turned into 'modified' or 'synchronized' depending on the changes\n\t\t// otherwise, the status is left as is\n\t\t$sTriggerUpdate = \"CREATE TRIGGER `{$sTable}_bu` BEFORE UPDATE ON `$sTable`\";\n\t\t$sTriggerUpdate .= \" FOR EACH ROW\";\n\t\t$sTriggerUpdate .= \" BEGIN\";\n\t\t$sTriggerUpdate .= \" IF @itopuser is null THEN\";\n\t\t$sTriggerUpdate .= \" UPDATE `{$sReplicaTable}` SET status_last_seen = NOW(), `status` = IF(`status` = 'obsolete', IF(`dest_id` IS NULL, 'new', 'modified'), IF(`status` IN ('synchronized') AND ($sIsModified), 'modified', `status`)) WHERE sync_source_id = {$this->GetKey()} AND id = OLD.id;\";\n\t\t$sTriggerUpdate .= \" SET NEW.id = OLD.id;\"; // make sure this id won't change\n\t\t$sTriggerUpdate .= \" END IF;\";\n\t\t$sTriggerUpdate .= \" END;\";\n\t\t$aResult['bu'] = $sTriggerUpdate;\n\n\t\t$sTriggerDelete = \"CREATE TRIGGER `{$sTable}_ad` AFTER DELETE ON `$sTable`\";\n\t\t$sTriggerDelete .= \" FOR EACH ROW\";\n\t\t$sTriggerDelete .= \" BEGIN\";\n\t\t$sTriggerDelete .= \" DELETE FROM `{$sReplicaTable}` WHERE id = OLD.id;\";\n\t\t$sTriggerDelete .= \" END;\";\n\t\t$aResult['ad'] = $sTriggerDelete;\n\t\treturn $aResult;\n\t}", "title": "" }, { "docid": "ade34fd9dfe673d26f0dc5721b503df5", "score": "0.5024662", "text": "function myTriggers($params = array()) {\n\t\t\treturn $this->get(\"/triggers\", $params);\n\t\t}", "title": "" }, { "docid": "aefdf14fda154ed5fbf6083f996db52b", "score": "0.5016447", "text": "public static function getEventAnchors(): PluggableAnchorsInterface;", "title": "" }, { "docid": "67448c732feb72f447317e26a2d43974", "score": "0.4941418", "text": "public function createTriggers($config, $parent_config, $pfac_data)\r\n {\r\n // if it is billing level, move to Fee Account, otherwise, roll up to parent.\r\n $billing_level = (bool) ($config['config']['billing_flag'] ?? 0);\r\n if ($billing_level) {\r\n $this->createSidewaysTrigger(AccountType::FEE_ACCOUNT, $config, TransactionCategory::FEE);\r\n }\r\n else {\r\n //TODO should we rollup here if we rollup on Fee already? or vice versa\r\n $this->createRollupTrigger($config, $parent_config);\r\n }\r\n }", "title": "" }, { "docid": "714575d2e593838480dde3bcc5af2ecd", "score": "0.49035957", "text": "public function set_trigger( $trigger ) {\n\t\tif ( $trigger instanceof ES_Workflow_Trigger ) {\n\t\t\t$this->trigger = $trigger->get_name();\n\t\t} else {\n\t\t\t$this->trigger = $trigger;\n\t\t}\n\t}", "title": "" }, { "docid": "34f8767a1f8f56bad15eb03c0d10d521", "score": "0.4877084", "text": "public function setTriggers($val)\n {\n $this->_propDict[\"triggers\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "bf50d58ee2ca41ee5cef91680b1ac5b4", "score": "0.48257118", "text": "private function createTriggers(Table $table) {\n\t \t\n\t \t\t foreach($table->getForeignKeyColumns() as $column) {\n\n\t\t \t\t\t// Create default restrict triggers for inserts, updates, and deletes to referenced column\n\t\t \t\t\t$this->createInsertRestrictTrigger($column->getForeignKey()->getName() . '_fkInsert', $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t$this->createUpdateRestrictTrigger($column->getForeignKey()->getName() . '_refUpdate', $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t$this->createDeleteRestrictTrigger($column->getForeignKey()->getName() . '_refDelete', $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\n\t\t \t\t\t// Set appropriate ON UPDATE clause based on orm.xml configuration\n\t\t \t\t\tswitch($column->getForeignKey()->getOnUpdate()) {\n\n\t\t \t\t\t\tcase 'NO ACTION':\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'RESTRICT':\n\t\t \t\t\t\t\t$this->createUpdateRestrictTrigger($column->getForeignKey()->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $table->getName(), $column->getName(), $column->isRequired());\t\t\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'CASCADE':\n\t\t \t\t\t\t\t$this->createUpdateCascadeTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'SET NULL':\n\t\t\t\t\t\t\t$this->createUpdateSetNullTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'SET DEFAULT':\n\t\t \t\t\t\t\t$this->createUpdateSetDefaultTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired(), $column->getDefault());\n\t\t \t\t\t\t\tbreak;\n\t\t \t\t\t}\n\n\t\t \t\t\t// Set appropriate ON DELETE clause based on orm.xml configuration\n\t\t \t\t\tswitch($column->getForeignKey()->getOnDelete()) {\n\n\t\t \t\t\t\tcase 'NO ACTION':\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'RESTRICT':\n\t\t \t\t\t\t\t$this->createDeleteRestrictTrigger($column->getForeignKey()->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $table->getName(), $column->getName(), $column->isRequired());\t\t\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'CASCADE':\n\t\t \t\t\t\t\t$this->createDeleteCascadeTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'SET NULL':\n\t\t \t\t\t\t\t$this->createDeleteSetNullTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired());\n\t\t \t\t\t\t\tbreak;\n\n\t\t \t\t\t\tcase 'SET_DEFAULT':\n\t\t\t\t\t\t\t$this->createDeleteSetDefaultTrigger($column->getForeignKey()->getName(), $table->getName(), $column->getName(), $column->getForeignKey()->getReferencedTable(), $column->getForeignKey()->getReferencedColumn(), $column->isRequired(), $column->getDefault());\n\t\t \t\t\t\t\tbreak;\n\t\t \t\t\t}\n\t\t }\n\t }", "title": "" }, { "docid": "4efab1575dbbb0c94376f8662c487f1d", "score": "0.48145562", "text": "public function triggers()\n {\n $pageConfigs = ['pageHeader' => false];\n return view('content.query-builder.triggers.index', ['pageConfigs' => $pageConfigs]);\n }", "title": "" }, { "docid": "acf405fd81024098cd9fc8cbcdc3cb5f", "score": "0.4807266", "text": "function wnanchor($uri = '', $title = '', $attributes = '')\r\n\t{\r\n\t\t$title = (string) $title;\r\n\r\n\t\tif ($title === '')\r\n\t\t{\r\n\t\t\t$title = $uri;\r\n\t\t}\r\n\r\n\t\tif ($attributes !== '')\r\n\t\t{\r\n\t\t\t$attributes = _stringify_attributes($attributes);\r\n\t\t}\r\n\r\n\t\treturn '<a href=\"javascript:void(0)\"'.$attributes.'>'.$title.'</a>';\r\n\t}", "title": "" }, { "docid": "e3097b1de3524451d5f9fa94f212ac3e", "score": "0.4804085", "text": "function setTriggerType($a_trigger_type)\n\t{\n\t\treturn $this->trigger_type = $a_trigger_type;\n\t}", "title": "" }, { "docid": "f909527e7013efa574f4677da9155ce6", "score": "0.47924352", "text": "public function starttriggerAction(){\r\n $data = IS::app()->request()->postData();\r\n if($data['trigget_start']){\r\n $tablesInfo = $this->model->getScanerTables('main_db');\r\n $tables = explode(' ', $tablesInfo[0]['tables']);\r\n foreach ($tables as $table){\r\n $fields = $this->model->getScanerField($tablesInfo[0]['prefix'].$table);\r\n $this->model->createTriggerTable($tablesInfo[0]['prefix'].$table,$fields);\r\n $this->model->createTrigger($tablesInfo[0]['prefix'].$table,$fields);\r\n }\r\n $_SESSION['success'] = 'Таблици и тригеры созданы';\r\n }\r\n \r\n header('Location: /trigger');\r\n exit();\r\n }", "title": "" }, { "docid": "31002818d44eb637406cb41d6204d9be", "score": "0.47812766", "text": "function admin_anchor($uri = '', $title = '', $attrs = '')\n\t{\n\t\t$uri = ($uri == '') ? 'admin' : 'admin/'.$uri;\n\t\treturn anchor($uri, $title, $attrs);\n\t}", "title": "" }, { "docid": "0881a6ece75c9a2be7cab439ebdf85b5", "score": "0.4750513", "text": "protected function addTrigger(Trigger $trigger) {\n $this->triggers[] = $trigger;\n }", "title": "" }, { "docid": "30e9921c89c4ab6e4863a5289e94d3eb", "score": "0.4744074", "text": "function setAnchor($anchor)\n {\n $this->anchor = $anchor;\n }", "title": "" }, { "docid": "98c6b54b9ded2c75f71ce271e80286c4", "score": "0.4699302", "text": "function get_AnchorWord() {\n $anchor_word = array(\n \"To\",\n //\"To Have\",\n \"That\",\n \"That Can\",\n \"That Might\",\n \"That Should\",\n \"That Will\",\n );\n\n return $anchor_word;\n }", "title": "" }, { "docid": "84d4fb25e09fc3ac11179211f89e88c7", "score": "0.469921", "text": "function getTriggerObjId()\n\t{\n\t\treturn $this->trigger_obj_id;\n\t}", "title": "" }, { "docid": "6c201a0a7e5ea2737f868263660142fd", "score": "0.46940586", "text": "function setTriggerRefId($a_trigger_ref_id)\n\t{\n\t\treturn $this->trigger_ref_id = $a_trigger_ref_id;\n\t}", "title": "" }, { "docid": "5324922384b9178774e3ea7f94b2d799", "score": "0.46756577", "text": "public function setTriggers($triggers)\n {\n $this->triggers = $triggers;\n\n return $this;\n }", "title": "" }, { "docid": "434e21b8206f07417d48c0a94dadbeed", "score": "0.4675262", "text": "function getTriggerRefId()\n\t{\n\t\treturn $this->trigger_ref_id;\n\t}", "title": "" }, { "docid": "b5ff67fa7f9b5d5e0741fb0ca03c8d8a", "score": "0.46533352", "text": "function addAnchors(&$page_dom) {\n\t// Ignore <h1> as it is the title of the page\n\t$headings = $page_dom->find('h2, h3, h4, h5, h6');\n\t$htexts = array();\n\t\n\tfor($h = 0, $hs = count($headings); $h < $hs; $h++) {\n\t\t$anchor = anchorencode($headings[$h]->plaintext);\n\t\t$htexts[$h] = $headings[$h]->tag . ':' . $headings[$h]->plaintext;\n\t\t$headings[$h]->id = $anchor;\n\t\t$headings[$h]->innertext = $headings[$h]->plaintext.' <a class=\"permalink\" href=\"#'.$anchor.'\" title=\"Permalink to this section\">§</a>';\n\t}\n\treturn $headings;\n}", "title": "" }, { "docid": "e17d685e829dd9a9a882a0c5465ad852", "score": "0.4652779", "text": "protected abstract function _trigger();", "title": "" }, { "docid": "a7d05f8ec3bac1c0d33da58db38f9ebd", "score": "0.46459892", "text": "public function testEventsTrigger()\n {\n $events = new Events('onInit', ['onBoot', 'onInit', 'onEventsManagerRun'], 'onInit');\n $events->setTrigger('onRouterInit');\n static::assertContains('onRouterInit', $events->getTrigger());\n }", "title": "" }, { "docid": "d93b94a16bc8ed2aa2d87bc7da65ab62", "score": "0.46090543", "text": "function dstanchors($parameter){}", "title": "" }, { "docid": "c7f10f2e5afcc1602f2e3bbb2b105db2", "score": "0.4597977", "text": "function setTriggerObjId($a_trigger_obj_id)\n\t{\n\t\treturn $this->trigger_obj_id = $a_trigger_obj_id;\n\t}", "title": "" }, { "docid": "ba1862af35b3563aaa083a3a145ab638", "score": "0.4586053", "text": "public function setTriggers($triggers)\n {\n if (!is_array($triggers)) {\n throw new InvalidArgumentException(\n 'Triggers must be passed as an array'\n );\n }\n\n $strings = array();\n foreach ($triggers as $trigger) {\n // Normalize Trigger entries to array format for validation\n if (is_string($trigger)) {\n $trigger = $this->_toTriggerArray($trigger);\n }\n\n $strings[] = $this->_fromTriggerArray($trigger);\n }\n\n $this->_setValue('Triggers', $strings);\n\n return $this;\n }", "title": "" }, { "docid": "6c3d0e113c046e64493cf93dd5d5c2e2", "score": "0.4584259", "text": "function opensrs_gomobi_CreateAlias($params)\n{\n $domain = opensrs_gomobi_getDomain($params['serviceid']);\n $hostname = $params['hostname'];\n \n $openSRS = new OpenSRS($params['configoption1'], 0, $params['configoption2'], $params['configoption3'] == 'on' ? 0 : 1);\n $send = array\n (\n 'action' => 'create_alias',\n 'object' => 'publishing',\n 'attributes' => array\n (\n 'service_type' => 'gomobi',\n 'domain' => $domain,\n 'hostname' => $hostname\n )\n );\n \n $openSRS->send($send);\n if(!$openSRS->isSuccess())\n {\n return array\n (\n 'status' => 0,\n 'message' => $openSRS->getError(),\n );\n }\n \n return array\n (\n 'status' => 1,\n 'message' => $openSRS->getInfo(),\n );\n}", "title": "" }, { "docid": "bcb20dfb1d94fa2cc429433ff0a842c6", "score": "0.45668152", "text": "function overlay_href($event='onclick') {\r\n\r\n\t\t$href_ID='';\r\n \t\t$this->htmlexpand='return hs.expand(this, {'.$this->outlineType.$this->captionText.$this->align.'})';\r\n\r\n\t\treturn\t\"\\n\".'<a href=\"'.$this->main_url.'\" title=\"'.$this->title.'\" class=\"'.$this->myclasshref.'\" '.$href_ID.\r\n \t\t$event.'=\"'.$this->htmlexpand.'\">';\r\n\t}", "title": "" }, { "docid": "a969398efd4dad59ad91032a238a64f5", "score": "0.45623192", "text": "private function generateTemplateWordRelsHeaderRels()\n {\n $this->_wordRelsHeaderRelsT =\n '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' .\n '<Relationships xmlns=\"http://schemas.openxmlformats.org/' .\n 'package/2006/relationships\">' . $this->_wordRelsHeaderRelsC .\n '</Relationships>';\n }", "title": "" }, { "docid": "fb3951c5bada891f7a844fdb08773079", "score": "0.45566842", "text": "private function addAnchorsToHeadings($html)\n {\n $toc = \"\";\n $lines = explode(\"\\n\", $html);\n for ($i = 0; $i < count($lines); $i++) {\n $line = $lines[$i];\n\n $isHeaderLine = (substr($line, 0, 2) == \"<h\" && substr($line, 3, 1) == \">\");\n if ($isHeaderLine == false)\n continue;\n\n $headerLevel = substr($line, 2, 1);\n $headerLabel = substr($line, 4, strlen($line) - 9);\n $url = $this->sanitizeLinkUrl($headerLabel);\n\n $anchor = \"<a class='anchorLink' href='#$url'><svg mr='2' height='16' viewBox='0 0 16 16' version='1.1' width='16' \" .\n \"aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 \" .\n \"2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 \" .\n \"2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 \" .\n \"4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg></a>\";\n $text = \"<span class='anchorText'>$headerLabel</span>\";\n $lines[$i] = \"<h$headerLevel id='$url'>$anchor$text</h$headerLevel>\";\n\n $tocIndent = \"&nbsp;&nbsp;&nbsp;&nbsp;\";\n $tocIndent = str_repeat($tocIndent, $headerLevel - 1);\n $toc .= \"<div>$tocIndent<a href='#$url'>$text</a></div>\";\n }\n $html = join(\"\\n\", $lines);\n $html = str_replace(\"<!--TOC-->\", $toc, $html);\n return $html;\n }", "title": "" }, { "docid": "0196326fcdce0d7f1abba292b14b3daf", "score": "0.455243", "text": "function panamazonica_pointer_documento( $p ) {\n $p['pointer-documento'] = array(\n 'target' => '#panamazonica-documentos',\n 'options' => array(\n 'content' => sprintf( '<h3>%s</h3><p>%s</p>',\n __( 'About the Document', 'panamazonica' ),\n __( 'Provide the document data, such as source, year of publication, authors and collaborators. Remember: the more information you add, the easier will be to find this document through the search.', 'panamazonica' )\n ),\n 'position' => array( 'edge' => 'right', 'align' => 'top' )\n )\n );\n\n return $p;\n}", "title": "" }, { "docid": "b9014824837b8826de60613a8655121c", "score": "0.45384008", "text": "function PDF_create_bookmark($pdfdoc, $text, $optlist){}", "title": "" }, { "docid": "0fe48ebf9abe2f70f86d8733889dff20", "score": "0.45275697", "text": "function srcanchors($parameter){}", "title": "" }, { "docid": "77802b8ccd8014027763056e66834944", "score": "0.45233572", "text": "public function pluggableAnchorsMethod(): string;", "title": "" }, { "docid": "83a3eda91f50747c7ae94b7ad727c41a", "score": "0.45181733", "text": "public function getTriggers()\n {\n if (array_key_exists(\"triggers\", $this->_propDict)) {\n return $this->_propDict[\"triggers\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "32514b332af205046a0ed732f572f13e", "score": "0.45153973", "text": "function trace_anchor($uri = '', $title = '', $trk = '', $attributes = '')\n {\n\t\t$title = (string) $title;\n\n\t\t$site_url = is_array($uri)\n\t\t\t? trace_url($uri, $trk)\n\t\t\t: (preg_match('#^(\\w+:)?//#i', $uri) ? $uri : trace_url($uri, $trk));\n\n\t\tif ($title === '')\n\t\t{\n\t\t\t$title = $site_url;\n\t\t}\n\n\t\tif ($attributes !== '')\n\t\t{\n\t\t\t$attributes = _stringify_attributes($attributes);\n\t\t}\n\n\t\treturn '<a href=\"'.$site_url.'\"'.$attributes.'>'.$title.'</a>';\n }", "title": "" }, { "docid": "b581a35125f3e5a73d25b077d951bc4f", "score": "0.45127434", "text": "protected function writeAllTriggers()\n {\n $this->createTriggerTableForAllTables();\n $allTriggersName = $this->getAllTriggers();\n $allTables = $this->getAllTables();\n foreach ($allTables as $eachTable) {\n if (strpos($eachTable, 'trigger') === false) {//todo joda kardan 7 charakter akhar va moghaayese kardn.\n $this->writeAllTriggersForOneTable($eachTable,$allTriggersName);\n }\n }\n }", "title": "" }, { "docid": "154eed1ab69abbe20b4a57f081607adf", "score": "0.4507023", "text": "function apdcronjob_trigger() {\n\n\t//cache cronjob\n\t$name = ApdAmazonCache::getCronjobName();\n\t$interval = ( new ApdAmazonCacheDatabase() )->getOption( 'interval_minutes' );\n\t$cronjob = new ApdCronjob( $name, $interval );\n\t$cronjob->setCronjob();\n\n\t//asin table cronjob\n\t$name = ApdAsinTable::getCronjobName();\n\t$cronjob = new ApdCronjob( $name, 5 );\n\t$cronjob->setCronjob();\n\n\t//database consistency cronjob\n\t$name = APD_DB_CONSISTENCY_CRON;\n\t$cronjob = new ApdCronjob( $name, 15 );\n\t$cronjob->setCronjob();\n}", "title": "" }, { "docid": "101eba72577d9a4db3fa3261675e7611", "score": "0.44876674", "text": "protected function createLink() {\n\t\t$link = $this->pObj->pi_getPageLink(\n\t\t\t$GLOBALS['TSFE']->id,\n\t\t\t'',\n\t\t\tarray(\n\t\t\t\t'action' => $this->pObj->piVars['action'],\n\t\t\t\t'user' => $this->pObj->userArray['uid'],\n\t\t\t\t'authCode' => $this->getAuthCode()\n\t\t\t)\n\t\t);\n\t\treturn t3lib_div::locationHeaderUrl($link);\n\t}", "title": "" }, { "docid": "eefeaac93305f9f9e9086f59b5ea56e1", "score": "0.44848615", "text": "public static function generate(array &$a): void\n\t{\n\t\tif(!$tooltip = $a['tooltip']){\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * If the tooltip is boolean, it will assume the\n\t\t * element alt or title is the tooltip itself.\n\t\t */\n\t\tif(is_bool($tooltip)){\n\t\t\t$tooltip = [\n\t\t\t\t\"title\" => $a['alt'] ?: $a['title'],\n\t\t\t];\n\t\t}\n\n\t\telse if(!is_array($tooltip)){\n\t\t\t$tooltip = [\"title\" => $tooltip];\n\t\t}\n\n\t\t# Ensure the class value is an array\n\t\tif(!is_array($a['class'])){\n\t\t\t$a['class'] = [$a['class']];\n\t\t}\n\n\t\t# We need to add a class to the parent\n\t\t$a['class'][] = \"tooltip-trigger\";\n\n\t\t# Set the tooltip as a data attribute\n\t\t$a['data']['bs-original-title'] = $tooltip['title'];\n\n\t\t# Settings\n\t\t$a['data']['bs-toggle'] = \"tooltip\";\n\t\t$a['data']['bs-html'] = \"true\";\n\t\t$a['data']['bs-placement'] = $tooltip['placement'] ?: \"top\";\n\n\t\t# Tooltips can also have their own custom classes\n\t\tif($tooltip['class']){\n\t\t\t$a['data']['bs-custom-class'] = $tooltip['class'];\n\t\t}\n\t}", "title": "" }, { "docid": "ad3584539789e84e141a98aac54fa4bc", "score": "0.4480904", "text": "public function getTriggerTemplate()\n {\n return $this->trigger_template;\n }", "title": "" }, { "docid": "d90230e24acfb12d99eb4bf91025011b", "score": "0.44756797", "text": "function vcff_map_trigger($mapping) {\r\n $vcff_events = vcff_get_library('vcff_events');\r\n \r\n $_type = $mapping['type'];\r\n \r\n $mapping = apply_filters('vcff_trigger_map',$mapping);\r\n \r\n $vcff_events->triggers[$_type] = $mapping;\r\n}", "title": "" }, { "docid": "b7e104385e69923dfb46c01a7e10ad62", "score": "0.44522333", "text": "function generateHomeButtons() {\r\n\t\t$this->buttons[$GLOBALS['mod_strings']['LBL_STUDIO']] = array ('action' => \"ModuleBuilder.main('studio')\", 'imageTitle' => 'Studio', 'size' => '128', 'help'=>'studioBtn');\r\n\t\t$this->buttons[$GLOBALS['mod_strings']['LBL_MODULEBUILDER']] = array ('action' => \"ModuleBuilder.main('mb')\", 'imageTitle' => 'ModuleBuilder', 'size' => '128', 'help'=>'mbBtn');\r\n\r\n\r\n\r\n\t\t$this->buttons[$GLOBALS['mod_strings']['LBL_DROPDOWNEDITOR']] = array ('action' => \"ModuleBuilder.main('dropdowns')\", 'imageTitle' => $GLOBALS['mod_strings']['LBL_HOME_EDIT_DROPDOWNS'], 'imageName' => 'DropDownEditor', 'size' => '128', 'help'=>'dropDownEditorBtn');\r\n\t}", "title": "" }, { "docid": "03f94495e174a4ba0906a1c7165f3a3c", "score": "0.44491026", "text": "function menu_anchor_attributes ( $atts, $item, $args ) {\n $atts['data-menuanchor'] = ( ! empty( $item->attr_title ) ) ? $item->attr_title : 'test';\n return $atts;\n}", "title": "" }, { "docid": "3d37264cb688cbd8f36fe57aabae5a7b", "score": "0.44347814", "text": "public function getTriggers($prefix = '') {\n // TODO: Method to be implemented\n\t}", "title": "" }, { "docid": "d2dbad9ed2ac8be005d92f3324c3384e", "score": "0.4417513", "text": "public function getAnchor(): string\n {\n\n return ( null === $this->anchor ) ? '' : ( '#' . $this->anchor );\n\n }", "title": "" }, { "docid": "d4fe3a7ecad797bda235a22fc2402bfc", "score": "0.4416413", "text": "function create_insert($tblname)\n\t{\n\t\t\t$this->_tbl_handler = $tblname;\t\t// Set the table handler\n\t\t\t$this->_op_handler = 'INSERT';\t// Set the triggers for INSERT\n\t\t\t$this->_op_insert = array();\t\t// (re)Initiate the insert array list\n\t}", "title": "" }, { "docid": "eb8be726b17e828c3a99b9fef6324c7e", "score": "0.4415258", "text": "function notifications_admin_event_triggers($type) {\n static $action_info, $trigger_info;\n if (!isset($action_info)) {\n $action_info = module_invoke_all('action_info');\n // We need to index trigger info by actual trigger key\n foreach (module_invoke_all('trigger_info') as $trigger_type => $type_info) {\n foreach ($type_info as $key => $key_info) {\n $trigger_info[$key] = $key_info;\n }\n }\n }\n $event_triggers = array();\n $event_actions = notifications_event_type($type, 'actions', array());\n foreach ($event_actions as $action) {\n foreach ($action_info[$action]['triggers'] as $trigger) {\n foreach (trigger_get_assigned_actions($trigger) as $trigger_action) {\n if (in_array($trigger_action['aid'], $event_actions)) {\n $event_triggers[$trigger] = $trigger_info[$trigger]['label'];\n }\n }\n }\n }\n return $event_triggers;\n}", "title": "" }, { "docid": "0d9c157ee2a3ff8e4235c5ddff344693", "score": "0.44063437", "text": "public static function create($referent){}", "title": "" }, { "docid": "8dc86e4edb8da0f788bce55ddd4fd23b", "score": "0.44040668", "text": "public function create()\n {\n //Create new event (admins)\n }", "title": "" }, { "docid": "a8386caf03a526c4d85e7c1f9b4d4672", "score": "0.43918344", "text": "public function setUp()\n {\n $this->object = new TransactionTrigger;\n }", "title": "" }, { "docid": "f7e2821797452783562730b0e731205c", "score": "0.43868074", "text": "function onAfterInitialise() {\r\n \r\n $app = &JFactory::getApplication('administrator');\r\n \r\n $triggers = $GLOBALS['JWFGlobals']['Triggers'];\r\n \r\n $registeredEvents = array();\r\n \r\n foreach($triggers as $t) {\r\n \r\n list($name,$component,$category) = explode('-', $t);\r\n \r\n if( in_array($name,$registeredEvents))continue;\r\n \r\n $registeredEvents[] = $name;\r\n \r\n $app->registerEvent( $name, 'plgJWFGlobalHandler' );\r\n \r\n }\r\n \r\n }", "title": "" }, { "docid": "9bddc2cfb138fb58d9fb16af92dc7732", "score": "0.43799365", "text": "private function buildPublic($public)\n {\n if (EL::isStringWithTrigger($public)) {\n $expression = $this->expressionConverter->convert($public);\n $arrow = ArrowFunction::new(Literal::new($expression));\n\n if (EL::expressionContainsVar('fieldName', $public)) {\n $arrow->addArgument('fieldName');\n }\n\n if (EL::expressionContainsVar('typeName', $public)) {\n $arrow->addArgument('fieldName');\n $arrow->addArgument('typeName', '', new Literal('self::NAME'));\n }\n\n return $arrow;\n }\n\n return $public;\n }", "title": "" }, { "docid": "d1e1df11497a1fb0077bb32689b12d58", "score": "0.4379519", "text": "private function addConditionsToTrigger(string $trigger): string\n {\n $tableName = $this->resource->getTableName($this->getTableName());\n if ($this->connection->isTableExists($tableName)\n && $describe = $this->connection->describeTable($tableName)\n ) {\n $columnNames = array_column($describe, 'COLUMN_NAME');\n $columnNames = array_diff($columnNames, $this->ignoredUpdateColumns);\n if ($columnNames) {\n $columns = [];\n foreach ($columnNames as $columnName) {\n $columns[] = sprintf(\n 'NEW.%1$s <=> OLD.%1$s',\n $this->connection->quoteIdentifier($columnName)\n );\n }\n $trigger = sprintf(\n \"IF (%s) THEN %s END IF;\",\n implode(' OR ', $columns),\n $trigger\n );\n }\n }\n\n return $trigger;\n }", "title": "" }, { "docid": "e0a9108481bf3d6c4c9ca739fdd42ba6", "score": "0.43783718", "text": "private function generateTemplateRelsRels()\n {\n $this->_relsRelsT =\n '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' .\n '<Relationships xmlns=\"http://schemas.openxmlformats.org/package/' .\n '2006/relationships\">' .\n $this->generateRELATIONSHIP(\n 'rId3', 'extended-properties', 'docProps/app.xml'\n ) .\n '<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats' .\n '.org/package/2006/relationships/metadata/core-properties\"' .\n ' Target=\"docProps/core.xml\"/>' .\n $this->generateRELATIONSHIP(\n 'rId1', 'officeDocument', 'word/document.xml'\n );\n if ($this->_markAsFinal) {\n $this->_relsRelsT .=\n '<Relationship Id=\"rId4\" Type=\"http://schemas' .\n '.openxmlformats.org/officeDocument/2006/relationships/' .\n 'custom-properties\" Target=\"docProps/custom.xml\"/>';\n }\n $this->_relsRelsT .= '</Relationships>';\n }", "title": "" }, { "docid": "95b488bb2fa0cbcea95c9e603e608cc7", "score": "0.43764737", "text": "function bookmark_anchor($anchor)\n\t{\n\t\t$this->options['bookmark']['anchor'] = $anchor;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2db2b8a4e8460c80082265caa5f1c040", "score": "0.43749475", "text": "public function set_trigger($function, $kind='', $moment='', $tables='*' )\n\t{\n if ( is_callable($function) ){\n $kinds = ['select', 'insert', 'update', 'delete'];\n $moments = ['before', 'after'];\n if ( empty($kind) ){\n $kind = $kinds;\n }\n else if ( !is_array($kind) ){\n $kind = [strtolower($kind)];\n }\n else{\n $kind = array_map(function($a){\n return strtolower($a);\n }, $kind);\n }\n if ( empty($moment) ){\n $moment = $moments;\n }\n else if ( !is_array($moment) ){\n $moment = [strtolower($moment)];\n }\n else{\n $moment = array_map(function($a){\n return strtolower($a);\n }, $moment);\n }\n foreach ( $kind as $k ){\n if ( in_array($k, $kinds) ){\n foreach ( $moment as $m ){\n if ( in_array($m, $moments) && isset($this->triggers[$k][$m]) ){\n if ( $tables === '*' ){\n $tables = $this->get_tables();\n }\n else if ( \\bbn\\str\\text::check_name($tables) ){\n $tables = [$tables];\n }\n if ( is_array($tables) ){\n foreach ( $tables as $table ){\n $t = $this->table_full_name($table);\n if ( !isset($this->triggers[$k][$m][$t]) ){\n $this->triggers[$k][$m][$t] = [];\n }\n array_push($this->triggers[$k][$m][$t], $function);\n }\n }\n }\n }\n }\n }\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cbd521de26ebf8f2703896d2279210ca", "score": "0.4373232", "text": "public function getTriggerUrl () {\n return $this->image->getRegistryUrl()\n . '/trigger/' . $this->token . '/';\n }", "title": "" }, { "docid": "ca5105297f759365a854c89d8a5c822b", "score": "0.4357443", "text": "function createLinkAnnotation($rectangle, $destination){}", "title": "" }, { "docid": "5158d7edbfd3d0db2d2695e1070fdb46", "score": "0.43527833", "text": "private function generateTemplateWordRelsDocumentRels()\n {\n $this->_wordRelsDocumentRelsT =\n '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' .\n '<Relationships xmlns=\"http://schemas.openxmlformats.org/' .\n 'package/2006/relationships\">' . $this->_wordRelsDocumentRelsC .\n '</Relationships>';\n }", "title": "" }, { "docid": "6d12f9f669b3a79a1b0e5d12da99eff8", "score": "0.43485877", "text": "private function createAuthorityUrl() {\n return 'https://' . $this->url['host'] . '/' . $this->tenant . Constants::constant('AADConstants')['AUTHORIZE_ENDPOINT_PATH'];\n }", "title": "" }, { "docid": "3fb02b325e4dc6aa71a01579793a41de", "score": "0.43473786", "text": "protected static function getAnchorPoint()\n {\n return self::$anchor;\n }", "title": "" }, { "docid": "df5f65818648a5df5105a8ade282c4c1", "score": "0.4343894", "text": "function create_caller_table($id = NULL)\n\t{\n\t\t$CI =& get_instance();\n\t\tbase_table($id);\n\t\t$heading = array(lang('experiment'), lang('caller'), lang('actions'));\n\t\t//if (empty($id)) array_unshift($heading, lang('experiment'));\n\t\t$CI->table->set_heading($heading);\n\t}", "title": "" }, { "docid": "0ecf1a9957bb41a68f0dc0df6a2c1d1b", "score": "0.43410784", "text": "function glue_triggers($past_object, $future_object){\n\t\t\n\t\t$glue_object = new WorkFlowGlue();\n\t\t\n\t\t$workflow_object = $this->get_workflow_type();\n\t\t$the_type = $workflow_object->type;\n\n\t\tif($the_type==\"Normal\"){\n\t\t\t\n\t\t\t\n\t\t\tif($this->type==\"compare_specific\"){\n\t\t\t\n\t\t\t\t$this->eval = $glue_object->glue_normal_type($this, $past_object, $future_object);\n\t\t\t//end if compare_specific\n\t\t\t}\n\t\t\tif($this->type==\"compare_change\"){\n\t\t\t\t\n\t\t\t\t$this->eval = $glue_object->glue_normal_compare_change($this);\n\t\t\t//end if compare_change\n\t\t\t}\t\n\t\t\n\t\t\tif($this->type==\"compare_count\"){\n\t\t\t\t$this->eval = \"\";\n\t\t\t\t\n\t\t\t//end if compare_count\n\t\t\t}\t\n\t\t\n\n\t\t\n\t\t}\n\t\tif($the_type==\"Time\"){\n\t\t\t\n\t\t\tif($this->type==\"compare_any_time\"){\n\t\t\t\t\n\t\t\t\t$this->eval = $glue_object->glue_normal_compare_any_time($this);\n\t\t\t//end if compare_change\n\t\t\t} else {\n\t\t\t\t$this->eval = $glue_object->glue_time_type($this, $future_object);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $workflow_object;\n\t\t\t\t\n\t//end function glue_triggers\n\t}", "title": "" }, { "docid": "225d23e65d04d757519bb04433daa56d", "score": "0.43367577", "text": "public function __construct($chainingMode = RuleTrigger::FORWARD_CHAINING_MODE){\n\t\t$this->ruleTrigger = new RuleTrigger($chainingMode);\n\t}", "title": "" }, { "docid": "38d49ed7163d756fb9f485766f0968e2", "score": "0.43344525", "text": "public function attachCreateEvents()\n {\n $this->event->attach(Task::EVENT_CREATE, new WebhookListener($this->url_task_creation, $this));\n }", "title": "" }, { "docid": "ca6815ffc2d2b05fb0e1ae2251807616", "score": "0.43307394", "text": "function gasap_autoriser() {}", "title": "" }, { "docid": "f214bbadce40b64e71f7544e1a67360a", "score": "0.43296808", "text": "function create_event($type, $data = null, $createdBy = null, $ref = null, $recorded = null)\n {\n $ci =& get_instance();\n return $ci->event->create($type, $data, $createdBy, $ref, $recorded);\n }", "title": "" }, { "docid": "dfe88827849c5d6e9e38f7b5851ab4e6", "score": "0.43243408", "text": "function objectbyanchor($parameter){}", "title": "" }, { "docid": "a6a683e7f11e7735a1aec2492dfaf692", "score": "0.4323042", "text": "function keyword_list_add_admin_button($href,$title,$target,$link)\r\n{\r\n global $template_sys_menu, $template_sys_menu_spacer;\r\nrequire ('plugins/keyword_list/include/init.inc.php');\r\n $new_template=$template_sys_menu;\r\n $button=template_extract_block($new_template,'faq');\r\n \r\n $params = array(\r\n '{FAQ_LNK}' => $target,\r\n '{FAQ_TITLE}' => $title,\r\n '{FAQ_TGT}' => $href,\r\n 'faq' => $link,\r\n );\r\n $new_button=\"<!-- BEGIN $link -->\".template_eval($button,$params).\"<!-- END $link -->\\n\";\r\n template_extract_block($template_sys_menu,'faq',\"<!-- BEGIN faq -->\" . $button . \"<!-- END faq -->\\n\" .$new_button);\r\n}", "title": "" }, { "docid": "a0a4297ba0b48784d6a36893b72e687b", "score": "0.4316593", "text": "public static function builder(): TriggerRequestBuilder\n\t{\n\t\treturn new TriggerRequestBuilder();\n\t}", "title": "" }, { "docid": "f91bbd96e5abda7e39e6d5b91032c1c4", "score": "0.431588", "text": "function app_event_default($template, $values){\n $template->write('<b>Example Landing</b>');\n}", "title": "" }, { "docid": "348b2c89972f430c8414ef0342b58f74", "score": "0.43155023", "text": "abstract protected function createAquifer(array $aquiferData);", "title": "" }, { "docid": "b62e956f3331a5687e11b883ecf0b957", "score": "0.4315125", "text": "public function attachTrigger(TriggerInterface $trigger, $eventNameOrClass, $priority = 1);", "title": "" }, { "docid": "acc0dc0262cb6c7d8903f8bd6d7a361f", "score": "0.43138552", "text": "abstract protected function _buildTourney();", "title": "" }, { "docid": "f1811b52c3c59a00d46f62769d2b7346", "score": "0.43078628", "text": "public function getAnchors($page) {\n $this->loadTemplatePart('anchors', array('page' => $page));\n }", "title": "" }, { "docid": "d494f476e573f28fdf6ea8359e6d3d05", "score": "0.4302478", "text": "function PMA_DBI_get_triggers($db, $table, $delimiter = '//')\n{\n $result = array();\n\n if (! $GLOBALS['cfg']['Server']['DisableIS']) {\n // Note: in http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html\n // their example uses WHERE TRIGGER_SCHEMA='dbname' so let's use this\n // instead of WHERE EVENT_OBJECT_SCHEMA='dbname'\n $triggers = PMA_DBI_fetch_result(\"SELECT TRIGGER_SCHEMA, TRIGGER_NAME, EVENT_MANIPULATION, ACTION_TIMING, ACTION_STATEMENT, EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA= '\" . PMA_sqlAddslashes($db,true) . \"' and EVENT_OBJECT_TABLE = '\" . PMA_sqlAddslashes($table, true) . \"';\");\n } else {\n $triggers = PMA_DBI_fetch_result(\"SHOW TRIGGERS FROM \" . PMA_backquote(PMA_sqlAddslashes($db,true)) . \" LIKE '\" . PMA_sqlAddslashes($table, true) . \"';\");\n }\n\n if ($triggers) {\n foreach ($triggers as $trigger) {\n if ($GLOBALS['cfg']['Server']['DisableIS']) {\n $trigger['TRIGGER_NAME'] = $trigger['Trigger'];\n $trigger['ACTION_TIMING'] = $trigger['Timing'];\n $trigger['EVENT_MANIPULATION'] = $trigger['Event'];\n $trigger['EVENT_OBJECT_TABLE'] = $trigger['Table'];\n $trigger['ACTION_STATEMENT'] = $trigger['Statement'];\n }\n $one_result = array();\n $one_result['name'] = $trigger['TRIGGER_NAME'];\n $one_result['action_timing'] = $trigger['ACTION_TIMING'];\n $one_result['event_manipulation'] = $trigger['EVENT_MANIPULATION'];\n\n // do not prepend the schema name; this way, importing the\n // definition into another schema will work\n $one_result['full_trigger_name'] = PMA_backquote($trigger['TRIGGER_NAME']);\n $one_result['drop'] = 'DROP TRIGGER IF EXISTS ' . $one_result['full_trigger_name'];\n $one_result['create'] = 'CREATE TRIGGER ' . $one_result['full_trigger_name'] . ' ' . $trigger['ACTION_TIMING']. ' ' . $trigger['EVENT_MANIPULATION'] . ' ON ' . PMA_backquote($trigger['EVENT_OBJECT_TABLE']) . \"\\n\" . ' FOR EACH ROW ' . $trigger['ACTION_STATEMENT'] . \"\\n\" . $delimiter . \"\\n\";\n\n $result[] = $one_result;\n }\n }\n return($result);\n}", "title": "" }, { "docid": "c8b8fa51624b8e17675bda85167c2a80", "score": "0.4285376", "text": "public function createStaffMenu()\n {\n /* Application::registerStaffApp('FileDrive', ROOT_PATH.\"fd/\", array(\n iconclass => 'logs',\n ));*/\n Application::registerStaffApp('FileDrive - Embebed', ROOT_PATH.\"fd/FileDrive.php\", array(\n iconclass => 'faq-categories',\n ));\n }", "title": "" }, { "docid": "0dde1598c80f5d9d4c2b960b093c0e5e", "score": "0.42640474", "text": "public function setLabelAnchor( EGMapPoint $anchor ){\n \t\n \t\t$this->options['labelAnchor'] = $anchor;\n \t}", "title": "" }, { "docid": "5cb44266117c275da1ea94b2e0bdb4bf", "score": "0.42571765", "text": "function view_macro_anchor($args)\n{\n\tpreg_match('/^([A-Za-z][-A-Za-z0-9_:.]*)$/', $args, $result);\n\n\tif($result[1] != '')\n\t\t{ return html_anchor($result[1]); }\n\telse\n\t\t{ return ''; }\n}", "title": "" }, { "docid": "d7b78bbdc60bd20d42c181661713e4b0", "score": "0.42543074", "text": "public function event(string $anchor, array $data = []): void;", "title": "" }, { "docid": "93a4efd326eb1e79cb9fa6eb0ac77e01", "score": "0.42449233", "text": "function openal_source_create(){}", "title": "" }, { "docid": "45e4a65d9195e474df9dfd7860ece1c6", "score": "0.424487", "text": "function anchor_popup($uri = '', $title = '', $attributes = FALSE)\n\t{\n\t\t$title = (string) $title;\n\t\t$site_url = preg_match('#^(\\w+:)?//#i', $uri) ? $uri : site_url($uri);\n\n\t\tif ($title === '')\n\t\t{\n\t\t\t$title = $site_url;\n\t\t}\n\n\t\tif ($attributes === FALSE)\n\t\t{\n\t\t\treturn '<a href=\"'.$site_url.'\" onclick=\"window.open(\\''.$site_url.\"', '_blank'); return false;\\\">\".$title.'</a>';\n\t\t}\n\n\t\tif ( ! is_array($attributes))\n\t\t{\n\t\t\t$attributes = array($attributes);\n\n\t\t\t// Ref: http://www.w3schools.com/jsref/met_win_open.asp\n\t\t\t$window_name = '_blank';\n\t\t}\n\t\telseif ( ! empty($attributes['window_name']))\n\t\t{\n\t\t\t$window_name = $attributes['window_name'];\n\t\t\tunset($attributes['window_name']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$window_name = '_blank';\n\t\t}\n\n\t\tforeach (array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'menubar' => 'no', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0') as $key => $val)\n\t\t{\n\t\t\t$atts[$key] = isset($attributes[$key]) ? $attributes[$key] : $val;\n\t\t\tunset($attributes[$key]);\n\t\t}\n\n\t\t$attributes = _stringify_attributes($attributes);\n\n\t\treturn '<a href=\"'.$site_url\n\t\t\t.'\" onclick=\"window.open(\\''.$site_url.\"', '\".$window_name.\"', '\"._stringify_attributes($atts, TRUE).\"'); return false;\\\"\"\n\t\t\t.$attributes.'>'.$title.'</a>';\n\t}", "title": "" }, { "docid": "34e883544d1bcae2d327d2a9c7d7c8b7", "score": "0.4241558", "text": "public function create()\n {\n $script = \"<script>\\n\\t$(function(){ \\n\\t\\t\";\n\n if($this->click)\n {\n $script.=\"\\t$('\".$this->click[0].\"').on('\".$this->click[1].\"',function(){ \\n\\t\\t\\t\\t $.amaran(\". json_encode($this->amaran).\") \\n\\t\\t\\t}); \\n\\t\\t});\\n\\t</script>\\n\";\n }\n else\n {\n $script.=\"$.amaran(\".json_encode($this->amaran).\"); \\n\\t });\\n</script>\\n\";\n }\n\n if($this->flash)\n {\n $this->session->flash('amaranjs.content',$script);\n }\n else \n {\n $this->viewBinder->bind($script); \n }\n \n }", "title": "" }, { "docid": "925a15f640ab85a28c3f9e9d79b001be", "score": "0.42309076", "text": "public function Create()\n\t\t{\n\t\t\tparent::Create();\n\n\t\t\t$this->ConnectParent(\"{7AABF817-B04B-4A68-A1F6-BCE8EF7B3B87}\");\n\t\t}", "title": "" }, { "docid": "8c380b716acdde93d171863459cf8d3e", "score": "0.422832", "text": "function enableAnchorJump($a_enable = true)\n\t{\n\t\t$this->anchor_jump = $a_enable;\n\t}", "title": "" }, { "docid": "c3b08f7c8657a0d8a8e9aae5966fbe9a", "score": "0.4228197", "text": "function getTriggerType()\n\t{\n\t\treturn $this->trigger_type;\n\t}", "title": "" }, { "docid": "a8cc837da4275008ce1e123ccc475471", "score": "0.42231002", "text": "public function install()\n {\n $this->uninstall();\n $sql = \"CREATE TRIGGER `persistentGroups` \n AFTER INSERT ON `groupMembers` \n FOR EACH ROW\n BEGIN\n\n SET @myHostID = `NEW`.`gmHostID`;\n SET @myGroupID = `NEW`.`gmGroupID`;\n\n SET @myTemplateID = (SELECT `hostID` FROM `groups` INNER JOIN `hosts` ON (`groupName` = `hostName`) WHERE `groupID`=@myGroupID);\n\n IF (@myTemplateID IS NOT NULL) AND (@myHostID <> @myTemplateID) THEN\n UPDATE `hosts` `d`, (SELECT `hostImage`, `hostBuilding`, `hostUseAD`, `hostADDomain`, `hostADOU`, \n `hostADUser`, `hostADPass`, `hostADPassLegacy`, `hostProductKey`, `hostPrinterLevel`, `hostKernelArgs`, \n `hostExitBios`, `hostExitEfi`, `hostEnforce` FROM `hosts` WHERE `hostID`=@myTemplateID) `s`\n SET `d`.`hostImage`=`s`.`hostImage`, `d`.`hostBuilding`=`s`.`hostBuilding`, `d`.`hostUseAD`=`s`.`hostUseAD`, `d`.`hostADDomain`=`s`.`hostADDomain`,\n `d`.`hostADOU`=`s`.`hostADOU`, `d`.`hostADUser`=`s`.`hostADUser`, `d`.`hostADPass`=`s`.`hostADPass`, `d`.`hostADPassLegacy`=`s`.`hostADPassLegacy`,\n `d`.`hostProductKey`=`s`.`hostProductKey`, `d`.`hostPrinterLevel`=`s`.`hostPrinterLevel`, `d`.`hostKernelArgs`=`s`.`hostKernelArgs`,\n `d`.`hostExitBios`=`s`.`hostExitBios`, `d`.`hostExitEfi`=`s`.`hostExitEfi`, `d`.`hostEnforce`=`s`.`hostEnforce`\n WHERE `d`.`hostID`=@myHostID;\n\n SET @myDBTest = (SELECT count(`table_name`) FROM information_schema.tables WHERE `table_schema` = 'fog' AND `table_name` = 'locationAssoc' LIMIT 1);\n if (@myDBTest > 0) THEN\n INSERT INTO `locationAssoc` (`laHostID`,`laLocationID`)\n SELECT @myHostID as `laHostID`,`laLocationID`\n FROM `locationAssoc` WHERE `laHostID`=@myTemplateID;\n END IF;\n\n INSERT INTO `printerAssoc` (`paHostID`,`paPrinterID`,`paIsDefault`,`paAnon1`,`paAnon2`,`paAnon3`,`paAnon4`)\n SELECT @myHostID as `paHostID`,`paPrinterID`,`paIsDefault`,`paAnon1`,`paAnon2`,`paAnon3`,`paAnon4`\n FROM `printerAssoc` WHERE `paHostID`=@myTemplateID;\n\n INSERT INTO `snapinAssoc` (`saHostID`,`saSnapinID`)\n SELECT @myHostID as `saHostID`,`saSnapinID` \n FROM `snapinAssoc` WHERE `saHostID`=@myTemplateID;\n\n INSERT INTO `moduleStatusByHost` (`msHostID`,`msModuleID`,`msState`)\n SELECT @myHostID as `msHostID`,`msModuleID`,`msState`\n FROM `moduleStatusByHost` WHERE `msHostID`=@myTemplateID;\n\n END IF;\n\n END;\";\n return self::$DB->query($sql);\n }", "title": "" }, { "docid": "93411693aa2565d3169afe8cb0c6c7b9", "score": "0.42229497", "text": "function abus_autoriser(){}", "title": "" }, { "docid": "bb45115415d2e5b48b7e2d98ba4b92e0", "score": "0.42205295", "text": "public function onCreate ($params)\n\t{\n\t\t$this->raiseEvent('OnCreate', $this, $params);\n\t}", "title": "" } ]